diff --git a/.github/workflows/generate.yml b/.github/workflows/generate.yml index 45b3b48849..89841cfc31 100644 --- a/.github/workflows/generate.yml +++ b/.github/workflows/generate.yml @@ -7,10 +7,20 @@ on: type: string required: true description: 'The remote kubernetes release branch to fetch openapi spec. .e.g. "release-1.23"' - + dry_run: + type: boolean + required: true + default: false + description: Dry run, will not send a PR + skip_patches: + type: boolean + required: true + default: false + description: If true, skip patching code after generation permissions: contents: read + pull-requests: write jobs: generate: @@ -25,7 +35,7 @@ jobs: uses: actions/setup-java@v4 with: distribution: 'temurin' - java-version: 11 + java-version: 17.0.x - name: Checkout Gen uses: actions/checkout@v4 with: @@ -59,14 +69,28 @@ jobs: export PACKAGE_NAME="io.kubernetes.client.openapi" EOF - bash java.sh ../../kubernetes/ settings + USE_SINGLE_PARAMETER=false OPENAPI_GENERATOR_COMMIT=v4.3.1 bash java.sh ../../kubernetes/ settings popd rm -rf gen + git config user.email "k8s-publishing-bot@users.noreply.github.com" + git config user.name "Kubernetes Publisher" + git checkout -b "$BRANCH" + git add . + git commit -s -m 'Automated openapi generation from ${{ github.event.inputs.kubernetesBranch }}' + - name: Apply Manual Diffs + if: ${{ github.event.inputs.skip_patches != 'true' }} + run: | + ls scripts/patches/*.diff | xargs git apply + git add . + git commit -s -m 'Applied patches under scripts/patches/*.diff' - name: Generate Fluent run: | # Only install the generated openapi module because the higher modules' compile # may fail due to api-changes. - mvn -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn -Pfluent-gen -pl kubernetes -am clean install + mvn -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn \ + -Dmaven.test.skip=true \ + -Pfluent-gen \ + -pl kubernetes -am clean install pushd fluent-gen bash -x generate.sh popd @@ -74,22 +98,17 @@ jobs: run: | mvn spotless:apply - name: Commit and push + if: ${{ github.event.inputs.dry_run != 'true' }} run: | # Commit and push - git config user.email "k8s.ci.robot@gmail.com" - git config user.name "Kubernetes Prow Robot" - git checkout -b "$BRANCH" git add . - git commit -s -m 'Automated openapi generation from ${{ github.event.inputs.kubernetesBranch }}' + git commit -s -m 'Format and fluent-gen from ${{ github.event.inputs.kubernetesBranch }}' git push origin "$BRANCH" - name: Pull Request + if: ${{ github.event.inputs.dry_run != 'true' }} uses: repo-sync/pull-request@v2 with: source_branch: ${{ env.BRANCH }} destination_branch: ${{ github.ref_name }} github_token: ${{ secrets.GITHUB_TOKEN }} pr_title: "Automated Generate from openapi ${{ github.event.inputs.kubernetesBranch }}" - - - - diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml index ff1a61e516..5c6f6857f8 100644 --- a/.github/workflows/maven.yml +++ b/.github/workflows/maven.yml @@ -5,9 +5,9 @@ name: build on: push: - branches: [ "master", "release-**" ] + branches: [ "master", "master-java8", "release-**" ] pull_request: - branches: [ "master", "release-**" ] + branches: [ "master", "master-java8", "release-**" ] jobs: verify-format: @@ -27,8 +27,8 @@ jobs: strategy: matrix: # Test against the LTS Java versions. TODO: add JDK18 when it becomes available. - java: [ 8.0.x, 11.0.x, 17.0.x ] - os: [ macos-latest, windows-latest, ubuntu-latest ] + java: [ 8.0.x ] + os: [ windows-latest, ubuntu-latest ] runs-on: ${{ matrix.os }} steps: - uses: actions/checkout@v4 diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 9fa0a3a7ee..8bc6a1124f 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -23,9 +23,9 @@ jobs: - name: Validate Input run: | echo "${{ github.ref_type }}" | perl -ne 'die unless m/^branch$/' - echo "${{ github.ref_name }}" | perl -ne 'die unless m/^release-\d+$/' - echo "${{ github.event.inputs.releaseVersion }}" | perl -ne 'die unless m/^\d+\.\d+\.\d+$/' - echo "${{ github.event.inputs.nextDevelopmentVersion }}" | perl -ne 'die unless m/^\d+\.\d+\.\d+-SNAPSHOT$/' + echo "${{ github.ref_name }}" | perl -ne 'die unless m/^release-legacy-.+$/' + echo "${{ github.event.inputs.releaseVersion }}" | perl -ne 'die unless m/^\d+\.\d+\.\d+-legacy$/' + echo "${{ github.event.inputs.nextDevelopmentVersion }}" | perl -ne 'die unless m/^\d+\.\d+\.\d+-legacy-SNAPSHOT$/' - name: Checkout uses: actions/checkout@v4 - name: Check Actor @@ -47,8 +47,8 @@ jobs: export GPG_TTY=$(tty) (echo 5; echo y; echo save) | gpg --command-fd 0 --no-tty --pinentry-mode loopback --passphrase ${{ secrets.GPG_PASSWORD }} --no-greeting --edit-key 'Kubernetes Client Publishers' trust (echo 0; echo y; echo save) | gpg --command-fd 0 --no-tty --pinentry-mode loopback --passphrase ${{ secrets.GPG_PASSWORD }} --no-greeting --edit-key 'Kubernetes Client Publishers' expire - git config user.email "k8s.ci.robot@gmail.com" - git config user.name "Kubernetes Prow Robot" + git config user.email "k8s-publishing-bot@users.noreply.github.com" + git config user.name "Kubernetes Publisher" - name: Check Current Version run: | mvn -q \ diff --git a/client-java-contrib/admissionreview/pom.xml b/client-java-contrib/admissionreview/pom.xml index 0690d2cde0..3b9c1177db 100644 --- a/client-java-contrib/admissionreview/pom.xml +++ b/client-java-contrib/admissionreview/pom.xml @@ -7,10 +7,10 @@ io.kubernetes client-java-parent - 20.0.0-SNAPSHOT + 24.0.1-legacy-SNAPSHOT ../../pom.xml - 20.0.0-SNAPSHOT + 24.0.1-legacy-SNAPSHOT @@ -45,7 +45,7 @@ com.diffplug.spotless spotless-maven-plugin - 2.41.1 + 2.44.4 true diff --git a/client-java-contrib/cert-manager/pom.xml b/client-java-contrib/cert-manager/pom.xml index 80a2982571..5268fcaf7f 100644 --- a/client-java-contrib/cert-manager/pom.xml +++ b/client-java-contrib/cert-manager/pom.xml @@ -6,11 +6,11 @@ io.kubernetes client-java-parent - 20.0.0-SNAPSHOT + 24.0.1-legacy-SNAPSHOT ../../pom.xml - 20.0.0-SNAPSHOT + 24.0.1-legacy-SNAPSHOT io.kubernetes diff --git a/client-java-contrib/prometheus-operator/pom.xml b/client-java-contrib/prometheus-operator/pom.xml index 3afcf4b5f3..884f96f7f1 100644 --- a/client-java-contrib/prometheus-operator/pom.xml +++ b/client-java-contrib/prometheus-operator/pom.xml @@ -3,13 +3,13 @@ client-java-parent io.kubernetes - 20.0.0-SNAPSHOT + 24.0.1-legacy-SNAPSHOT ../../pom.xml 4.0.0 client-java-prometheus-operator-models - 20.0.0-SNAPSHOT + 24.0.1-legacy-SNAPSHOT io.kubernetes diff --git a/e2e/pom.xml b/e2e/pom.xml index 0884ae8207..65f59c6f10 100644 --- a/e2e/pom.xml +++ b/e2e/pom.xml @@ -10,7 +10,7 @@ client-java-parent io.kubernetes - 20.0.0-SNAPSHOT + 24.0.1-legacy-SNAPSHOT ../pom.xml @@ -59,7 +59,7 @@ org.junit.vintage junit-vintage-engine - 5.10.1 + 5.11.4 test diff --git a/e2e/src/test/groovy/io/kubernetes/client/e2e/basic/CoreV1ApiTest.groovy b/e2e/src/test/groovy/io/kubernetes/client/e2e/basic/CoreV1ApiTest.groovy index a8af805c93..054e3cd37e 100644 --- a/e2e/src/test/groovy/io/kubernetes/client/e2e/basic/CoreV1ApiTest.groovy +++ b/e2e/src/test/groovy/io/kubernetes/client/e2e/basic/CoreV1ApiTest.groovy @@ -32,7 +32,7 @@ class CoreV1ApiTest extends Specification { then: created != null when: - V1Status deleted = corev1api.deleteNamespace("e2e-basic", null, null, null, null, null, null) + V1Status deleted = corev1api.deleteNamespace("e2e-basic", null, null, null, null, null, null, null) then: deleted != null } diff --git a/e2e/src/test/java/io/kubernetes/client/e2e/extended/leaderelection/LeaderElectorTest.java b/e2e/src/test/java/io/kubernetes/client/e2e/extended/leaderelection/LeaderElectorTest.java index eba058f2b8..acd4fff84f 100644 --- a/e2e/src/test/java/io/kubernetes/client/e2e/extended/leaderelection/LeaderElectorTest.java +++ b/e2e/src/test/java/io/kubernetes/client/e2e/extended/leaderelection/LeaderElectorTest.java @@ -277,7 +277,7 @@ private void deleteConfigMapLockResource() throws Exception { try { CoreV1Api coreV1Api = new CoreV1Api(apiClient); coreV1Api.deleteNamespacedConfigMap( - LOCK_RESOURCE_NAME, NAMESPACE, null, null, null, null, null, null); + LOCK_RESOURCE_NAME, NAMESPACE, null, null, null, null, null, null, null); } catch (ApiException ex) { if (ex.getCode() != HttpURLConnection.HTTP_NOT_FOUND) { throw ex; @@ -289,7 +289,7 @@ private void deleteEndpointsLockResource() throws Exception { try { CoreV1Api coreV1Api = new CoreV1Api(apiClient); coreV1Api.deleteNamespacedEndpoints( - LOCK_RESOURCE_NAME, NAMESPACE, null, null, null, null, null, null); + LOCK_RESOURCE_NAME, NAMESPACE, null, null, null, null, null, null, null); } catch (ApiException ex) { if (ex.getCode() != HttpURLConnection.HTTP_NOT_FOUND) { throw ex; @@ -301,7 +301,7 @@ private void deleteLeaseLockResource() throws Exception { try { CoordinationV1Api coordinationV1Api = new CoordinationV1Api(apiClient); coordinationV1Api.deleteNamespacedLease( - LOCK_RESOURCE_NAME, NAMESPACE, null, null, null, null, null, null); + LOCK_RESOURCE_NAME, NAMESPACE, null, null, null, null, null, null, null); } catch (ApiException ex) { if (ex.getCode() != HttpURLConnection.HTTP_NOT_FOUND) { throw ex; diff --git a/examples/examples-release-16/pom.xml b/examples/examples-release-16/pom.xml index 1c512fd2f4..b823e9d4a6 100644 --- a/examples/examples-release-16/pom.xml +++ b/examples/examples-release-16/pom.xml @@ -1,12 +1,10 @@ - + 4.0.0 io.kubernetes client-java-examples-parent - 20.0.0-SNAPSHOT + 24.0.1-legacy-SNAPSHOT .. @@ -22,12 +20,12 @@ io.prometheus simpleclient - 0.15.0 + 0.16.0 io.prometheus simpleclient_httpserver - 0.15.0 + 0.16.0 io.kubernetes @@ -107,7 +105,7 @@ org.apache.maven.plugins maven-deploy-plugin - 3.1.1 + 3.1.4 true diff --git a/examples/examples-release-17/pom.xml b/examples/examples-release-17/pom.xml index f9e27001d9..9d7d72fa3a 100644 --- a/examples/examples-release-17/pom.xml +++ b/examples/examples-release-17/pom.xml @@ -1,12 +1,10 @@ - + 4.0.0 io.kubernetes client-java-examples-parent - 20.0.0-SNAPSHOT + 24.0.1-legacy-SNAPSHOT .. @@ -22,12 +20,12 @@ io.prometheus simpleclient - 0.15.0 + 0.16.0 io.prometheus simpleclient_httpserver - 0.15.0 + 0.16.0 io.kubernetes @@ -107,7 +105,7 @@ org.apache.maven.plugins maven-deploy-plugin - 3.1.1 + 3.1.4 true diff --git a/examples/examples-release-18/pom.xml b/examples/examples-release-18/pom.xml index 88de644913..34d5c165d6 100644 --- a/examples/examples-release-18/pom.xml +++ b/examples/examples-release-18/pom.xml @@ -1,12 +1,10 @@ - + 4.0.0 io.kubernetes client-java-examples-parent - 20.0.0-SNAPSHOT + 24.0.1-legacy-SNAPSHOT .. @@ -22,12 +20,12 @@ io.prometheus simpleclient - 0.15.0 + 0.16.0 io.prometheus simpleclient_httpserver - 0.15.0 + 0.16.0 io.kubernetes @@ -107,7 +105,7 @@ org.apache.maven.plugins maven-deploy-plugin - 3.1.1 + 3.1.4 true diff --git a/examples/examples-release-19/pom.xml b/examples/examples-release-19/pom.xml index 70af0d7774..7d6ebda4b6 100644 --- a/examples/examples-release-19/pom.xml +++ b/examples/examples-release-19/pom.xml @@ -1,12 +1,10 @@ - + 4.0.0 io.kubernetes client-java-examples-parent - 20.0.0-SNAPSHOT + 24.0.1-legacy-SNAPSHOT .. @@ -22,12 +20,12 @@ io.prometheus simpleclient - 0.15.0 + 0.16.0 io.prometheus simpleclient_httpserver - 0.15.0 + 0.16.0 io.kubernetes @@ -111,7 +109,7 @@ org.apache.maven.plugins maven-deploy-plugin - 3.1.1 + 3.1.4 true diff --git a/examples/examples-release-19/src/main/java/io/kubernetes/client/examples/ExpandedExample.java b/examples/examples-release-19/src/main/java/io/kubernetes/client/examples/ExpandedExample.java index e74fdb85f9..cea509a0fc 100644 --- a/examples/examples-release-19/src/main/java/io/kubernetes/client/examples/ExpandedExample.java +++ b/examples/examples-release-19/src/main/java/io/kubernetes/client/examples/ExpandedExample.java @@ -270,6 +270,7 @@ public static void printLog(String namespace, String podName) throws ApiExceptio null, Boolean.FALSE, Integer.MAX_VALUE, + null, 40, Boolean.FALSE); System.out.println(readNamespacedPodLog); diff --git a/examples/examples-release-19/src/main/java/io/kubernetes/client/examples/YamlExample.java b/examples/examples-release-19/src/main/java/io/kubernetes/client/examples/YamlExample.java index b3f0dc6626..9e12aa6f84 100644 --- a/examples/examples-release-19/src/main/java/io/kubernetes/client/examples/YamlExample.java +++ b/examples/examples-release-19/src/main/java/io/kubernetes/client/examples/YamlExample.java @@ -103,6 +103,7 @@ public static void main(String[] args) throws IOException, ApiException, ClassNo null, null, null, + null, new V1DeleteOptions()); System.out.println(deleteResult); } diff --git a/examples/pom.xml b/examples/pom.xml index 23ff603b3d..ca63abeb9f 100644 --- a/examples/pom.xml +++ b/examples/pom.xml @@ -1,16 +1,14 @@ - + 4.0.0 io.kubernetes client-java-parent - 20.0.0-SNAPSHOT + 24.0.1-legacy-SNAPSHOT ../pom.xml - 20.0.0-SNAPSHOT + 24.0.1-legacy-SNAPSHOT client-java-examples-parent pom diff --git a/extended/pom.xml b/extended/pom.xml index 263e94a1a0..2e0753beac 100644 --- a/extended/pom.xml +++ b/extended/pom.xml @@ -9,7 +9,7 @@ client-java-parent io.kubernetes - 20.0.0-SNAPSHOT + 24.0.1-legacy-SNAPSHOT ../pom.xml @@ -83,7 +83,7 @@ org.jacoco jacoco-maven-plugin - 0.8.11 + 0.8.13 jacoco-initialize diff --git a/extended/src/main/java/io/kubernetes/client/extended/kubectl/KubectlDrain.java b/extended/src/main/java/io/kubernetes/client/extended/kubectl/KubectlDrain.java index efa79a4240..3709157384 100644 --- a/extended/src/main/java/io/kubernetes/client/extended/kubectl/KubectlDrain.java +++ b/extended/src/main/java/io/kubernetes/client/extended/kubectl/KubectlDrain.java @@ -113,7 +113,7 @@ private void validatePods(List pods) throws KubectlException { private void deletePod(CoreV1Api api, String name, String namespace) throws ApiException, IOException, KubectlException { - api.deleteNamespacedPod(name, namespace, null, null, this.gracePeriodSeconds, null, null, null); + api.deleteNamespacedPod(name, namespace, null, null, this.gracePeriodSeconds, null, null, null, null); waitForPodDelete(api, name, namespace); } diff --git a/fluent-gen/pom.xml b/fluent-gen/pom.xml index 192060a097..57e9503d38 100644 --- a/fluent-gen/pom.xml +++ b/fluent-gen/pom.xml @@ -10,7 +10,7 @@ io.kubernetes client-java-parent - 20.0.0-SNAPSHOT + 24.0.0-legacy-SNAPSHOT ../pom.xml diff --git a/fluent/pom.xml b/fluent/pom.xml index d9ecc89298..cd0c3a9f10 100644 --- a/fluent/pom.xml +++ b/fluent/pom.xml @@ -8,7 +8,7 @@ io.kubernetes client-java-parent - 20.0.0-SNAPSHOT + 24.0.1-legacy-SNAPSHOT ../pom.xml @@ -39,7 +39,7 @@ com.diffplug.spotless spotless-maven-plugin - 2.41.1 + 2.44.4 true diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/CoreV1EventListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/CoreV1EventListFluent.java index d99778674b..de6986876b 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/CoreV1EventListFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/CoreV1EventListFluent.java @@ -54,14 +54,26 @@ public boolean hasApiVersion() { public A addToItems(int index,CoreV1Event item) { if (this.items == null) {this.items = new ArrayList();} CoreV1EventBuilder builder = new CoreV1EventBuilder(item); - if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); items.add(builder); } else { _visitables.get("items").add(index, builder); items.add(index, builder);} + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.add(index, builder); + } return (A)this; } public A setToItems(int index,CoreV1Event item) { if (this.items == null) {this.items = new ArrayList();} CoreV1EventBuilder builder = new CoreV1EventBuilder(item); - if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); items.add(builder); } else { _visitables.get("items").set(index, builder); items.set(index, builder);} + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.set(index, builder); + } return (A)this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/EventsV1EventListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/EventsV1EventListFluent.java index c95dacce3f..248d7684dd 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/EventsV1EventListFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/EventsV1EventListFluent.java @@ -54,14 +54,26 @@ public boolean hasApiVersion() { public A addToItems(int index,EventsV1Event item) { if (this.items == null) {this.items = new ArrayList();} EventsV1EventBuilder builder = new EventsV1EventBuilder(item); - if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); items.add(builder); } else { _visitables.get("items").add(index, builder); items.add(index, builder);} + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.add(index, builder); + } return (A)this; } public A setToItems(int index,EventsV1Event item) { if (this.items == null) {this.items = new ArrayList();} EventsV1EventBuilder builder = new EventsV1EventBuilder(item); - if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); items.add(builder); } else { _visitables.get("items").set(index, builder); items.set(index, builder);} + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.set(index, builder); + } return (A)this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/FlowcontrolV1SubjectBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/FlowcontrolV1SubjectBuilder.java new file mode 100644 index 0000000000..599a1e635e --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/FlowcontrolV1SubjectBuilder.java @@ -0,0 +1,34 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +public class FlowcontrolV1SubjectBuilder extends FlowcontrolV1SubjectFluent implements VisitableBuilder{ + public FlowcontrolV1SubjectBuilder() { + this(new FlowcontrolV1Subject()); + } + + public FlowcontrolV1SubjectBuilder(FlowcontrolV1SubjectFluent fluent) { + this(fluent, new FlowcontrolV1Subject()); + } + + public FlowcontrolV1SubjectBuilder(FlowcontrolV1SubjectFluent fluent,FlowcontrolV1Subject instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public FlowcontrolV1SubjectBuilder(FlowcontrolV1Subject instance) { + this.fluent = this; + this.copyInstance(instance); + } + FlowcontrolV1SubjectFluent fluent; + + public FlowcontrolV1Subject build() { + FlowcontrolV1Subject buildable = new FlowcontrolV1Subject(); + buildable.setGroup(fluent.buildGroup()); + buildable.setKind(fluent.getKind()); + buildable.setServiceAccount(fluent.buildServiceAccount()); + buildable.setUser(fluent.buildUser()); + return buildable; + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/FlowcontrolV1SubjectFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/FlowcontrolV1SubjectFluent.java new file mode 100644 index 0000000000..448e798945 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/FlowcontrolV1SubjectFluent.java @@ -0,0 +1,243 @@ +package io.kubernetes.client.openapi.models; + +import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.Nested; +import java.lang.String; +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Object; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class FlowcontrolV1SubjectFluent> extends BaseFluent{ + public FlowcontrolV1SubjectFluent() { + } + + public FlowcontrolV1SubjectFluent(FlowcontrolV1Subject instance) { + this.copyInstance(instance); + } + private V1GroupSubjectBuilder group; + private String kind; + private V1ServiceAccountSubjectBuilder serviceAccount; + private V1UserSubjectBuilder user; + + protected void copyInstance(FlowcontrolV1Subject instance) { + instance = (instance != null ? instance : new FlowcontrolV1Subject()); + if (instance != null) { + this.withGroup(instance.getGroup()); + this.withKind(instance.getKind()); + this.withServiceAccount(instance.getServiceAccount()); + this.withUser(instance.getUser()); + } + } + + public V1GroupSubject buildGroup() { + return this.group != null ? this.group.build() : null; + } + + public A withGroup(V1GroupSubject group) { + this._visitables.remove("group"); + if (group != null) { + this.group = new V1GroupSubjectBuilder(group); + this._visitables.get("group").add(this.group); + } else { + this.group = null; + this._visitables.get("group").remove(this.group); + } + return (A) this; + } + + public boolean hasGroup() { + return this.group != null; + } + + public GroupNested withNewGroup() { + return new GroupNested(null); + } + + public GroupNested withNewGroupLike(V1GroupSubject item) { + return new GroupNested(item); + } + + public GroupNested editGroup() { + return withNewGroupLike(java.util.Optional.ofNullable(buildGroup()).orElse(null)); + } + + public GroupNested editOrNewGroup() { + return withNewGroupLike(java.util.Optional.ofNullable(buildGroup()).orElse(new V1GroupSubjectBuilder().build())); + } + + public GroupNested editOrNewGroupLike(V1GroupSubject item) { + return withNewGroupLike(java.util.Optional.ofNullable(buildGroup()).orElse(item)); + } + + public String getKind() { + return this.kind; + } + + public A withKind(String kind) { + this.kind = kind; + return (A) this; + } + + public boolean hasKind() { + return this.kind != null; + } + + public V1ServiceAccountSubject buildServiceAccount() { + return this.serviceAccount != null ? this.serviceAccount.build() : null; + } + + public A withServiceAccount(V1ServiceAccountSubject serviceAccount) { + this._visitables.remove("serviceAccount"); + if (serviceAccount != null) { + this.serviceAccount = new V1ServiceAccountSubjectBuilder(serviceAccount); + this._visitables.get("serviceAccount").add(this.serviceAccount); + } else { + this.serviceAccount = null; + this._visitables.get("serviceAccount").remove(this.serviceAccount); + } + return (A) this; + } + + public boolean hasServiceAccount() { + return this.serviceAccount != null; + } + + public ServiceAccountNested withNewServiceAccount() { + return new ServiceAccountNested(null); + } + + public ServiceAccountNested withNewServiceAccountLike(V1ServiceAccountSubject item) { + return new ServiceAccountNested(item); + } + + public ServiceAccountNested editServiceAccount() { + return withNewServiceAccountLike(java.util.Optional.ofNullable(buildServiceAccount()).orElse(null)); + } + + public ServiceAccountNested editOrNewServiceAccount() { + return withNewServiceAccountLike(java.util.Optional.ofNullable(buildServiceAccount()).orElse(new V1ServiceAccountSubjectBuilder().build())); + } + + public ServiceAccountNested editOrNewServiceAccountLike(V1ServiceAccountSubject item) { + return withNewServiceAccountLike(java.util.Optional.ofNullable(buildServiceAccount()).orElse(item)); + } + + public V1UserSubject buildUser() { + return this.user != null ? this.user.build() : null; + } + + public A withUser(V1UserSubject user) { + this._visitables.remove("user"); + if (user != null) { + this.user = new V1UserSubjectBuilder(user); + this._visitables.get("user").add(this.user); + } else { + this.user = null; + this._visitables.get("user").remove(this.user); + } + return (A) this; + } + + public boolean hasUser() { + return this.user != null; + } + + public UserNested withNewUser() { + return new UserNested(null); + } + + public UserNested withNewUserLike(V1UserSubject item) { + return new UserNested(item); + } + + public UserNested editUser() { + return withNewUserLike(java.util.Optional.ofNullable(buildUser()).orElse(null)); + } + + public UserNested editOrNewUser() { + return withNewUserLike(java.util.Optional.ofNullable(buildUser()).orElse(new V1UserSubjectBuilder().build())); + } + + public UserNested editOrNewUserLike(V1UserSubject item) { + return withNewUserLike(java.util.Optional.ofNullable(buildUser()).orElse(item)); + } + + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + if (!super.equals(o)) return false; + FlowcontrolV1SubjectFluent that = (FlowcontrolV1SubjectFluent) o; + if (!java.util.Objects.equals(group, that.group)) return false; + if (!java.util.Objects.equals(kind, that.kind)) return false; + if (!java.util.Objects.equals(serviceAccount, that.serviceAccount)) return false; + if (!java.util.Objects.equals(user, that.user)) return false; + return true; + } + + public int hashCode() { + return java.util.Objects.hash(group, kind, serviceAccount, user, super.hashCode()); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (group != null) { sb.append("group:"); sb.append(group + ","); } + if (kind != null) { sb.append("kind:"); sb.append(kind + ","); } + if (serviceAccount != null) { sb.append("serviceAccount:"); sb.append(serviceAccount + ","); } + if (user != null) { sb.append("user:"); sb.append(user); } + sb.append("}"); + return sb.toString(); + } + public class GroupNested extends V1GroupSubjectFluent> implements Nested{ + GroupNested(V1GroupSubject item) { + this.builder = new V1GroupSubjectBuilder(this, item); + } + V1GroupSubjectBuilder builder; + + public N and() { + return (N) FlowcontrolV1SubjectFluent.this.withGroup(builder.build()); + } + + public N endGroup() { + return and(); + } + + + } + public class ServiceAccountNested extends V1ServiceAccountSubjectFluent> implements Nested{ + ServiceAccountNested(V1ServiceAccountSubject item) { + this.builder = new V1ServiceAccountSubjectBuilder(this, item); + } + V1ServiceAccountSubjectBuilder builder; + + public N and() { + return (N) FlowcontrolV1SubjectFluent.this.withServiceAccount(builder.build()); + } + + public N endServiceAccount() { + return and(); + } + + + } + public class UserNested extends V1UserSubjectFluent> implements Nested{ + UserNested(V1UserSubject item) { + this.builder = new V1UserSubjectBuilder(this, item); + } + V1UserSubjectBuilder builder; + + public N and() { + return (N) FlowcontrolV1SubjectFluent.this.withUser(builder.build()); + } + + public N endUser() { + return and(); + } + + + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/RbacV1SubjectBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/RbacV1SubjectBuilder.java new file mode 100644 index 0000000000..b9e7561b13 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/RbacV1SubjectBuilder.java @@ -0,0 +1,34 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +public class RbacV1SubjectBuilder extends RbacV1SubjectFluent implements VisitableBuilder{ + public RbacV1SubjectBuilder() { + this(new RbacV1Subject()); + } + + public RbacV1SubjectBuilder(RbacV1SubjectFluent fluent) { + this(fluent, new RbacV1Subject()); + } + + public RbacV1SubjectBuilder(RbacV1SubjectFluent fluent,RbacV1Subject instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public RbacV1SubjectBuilder(RbacV1Subject instance) { + this.fluent = this; + this.copyInstance(instance); + } + RbacV1SubjectFluent fluent; + + public RbacV1Subject build() { + RbacV1Subject buildable = new RbacV1Subject(); + buildable.setApiGroup(fluent.getApiGroup()); + buildable.setKind(fluent.getKind()); + buildable.setName(fluent.getName()); + buildable.setNamespace(fluent.getNamespace()); + return buildable; + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/RbacV1SubjectFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/RbacV1SubjectFluent.java new file mode 100644 index 0000000000..5bd2b1ec2c --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/RbacV1SubjectFluent.java @@ -0,0 +1,114 @@ +package io.kubernetes.client.openapi.models; + +import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Object; +import java.lang.String; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class RbacV1SubjectFluent> extends BaseFluent{ + public RbacV1SubjectFluent() { + } + + public RbacV1SubjectFluent(RbacV1Subject instance) { + this.copyInstance(instance); + } + private String apiGroup; + private String kind; + private String name; + private String namespace; + + protected void copyInstance(RbacV1Subject instance) { + instance = (instance != null ? instance : new RbacV1Subject()); + if (instance != null) { + this.withApiGroup(instance.getApiGroup()); + this.withKind(instance.getKind()); + this.withName(instance.getName()); + this.withNamespace(instance.getNamespace()); + } + } + + public String getApiGroup() { + return this.apiGroup; + } + + public A withApiGroup(String apiGroup) { + this.apiGroup = apiGroup; + return (A) this; + } + + public boolean hasApiGroup() { + return this.apiGroup != null; + } + + public String getKind() { + return this.kind; + } + + public A withKind(String kind) { + this.kind = kind; + return (A) this; + } + + public boolean hasKind() { + return this.kind != null; + } + + public String getName() { + return this.name; + } + + public A withName(String name) { + this.name = name; + return (A) this; + } + + public boolean hasName() { + return this.name != null; + } + + public String getNamespace() { + return this.namespace; + } + + public A withNamespace(String namespace) { + this.namespace = namespace; + return (A) this; + } + + public boolean hasNamespace() { + return this.namespace != null; + } + + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + if (!super.equals(o)) return false; + RbacV1SubjectFluent that = (RbacV1SubjectFluent) o; + if (!java.util.Objects.equals(apiGroup, that.apiGroup)) return false; + if (!java.util.Objects.equals(kind, that.kind)) return false; + if (!java.util.Objects.equals(name, that.name)) return false; + if (!java.util.Objects.equals(namespace, that.namespace)) return false; + return true; + } + + public int hashCode() { + return java.util.Objects.hash(apiGroup, kind, name, namespace, super.hashCode()); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (apiGroup != null) { sb.append("apiGroup:"); sb.append(apiGroup + ","); } + if (kind != null) { sb.append("kind:"); sb.append(kind + ","); } + if (name != null) { sb.append("name:"); sb.append(name + ","); } + if (namespace != null) { sb.append("namespace:"); sb.append(namespace); } + sb.append("}"); + return sb.toString(); + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIGroupFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIGroupFluent.java index 875f4c278d..4122a11635 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIGroupFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIGroupFluent.java @@ -124,14 +124,26 @@ public PreferredVersionNested editOrNewPreferredVersionLike(V1GroupVersionFor public A addToServerAddressByClientCIDRs(int index,V1ServerAddressByClientCIDR item) { if (this.serverAddressByClientCIDRs == null) {this.serverAddressByClientCIDRs = new ArrayList();} V1ServerAddressByClientCIDRBuilder builder = new V1ServerAddressByClientCIDRBuilder(item); - if (index < 0 || index >= serverAddressByClientCIDRs.size()) { _visitables.get("serverAddressByClientCIDRs").add(builder); serverAddressByClientCIDRs.add(builder); } else { _visitables.get("serverAddressByClientCIDRs").add(index, builder); serverAddressByClientCIDRs.add(index, builder);} + if (index < 0 || index >= serverAddressByClientCIDRs.size()) { + _visitables.get("serverAddressByClientCIDRs").add(builder); + serverAddressByClientCIDRs.add(builder); + } else { + _visitables.get("serverAddressByClientCIDRs").add(builder); + serverAddressByClientCIDRs.add(index, builder); + } return (A)this; } public A setToServerAddressByClientCIDRs(int index,V1ServerAddressByClientCIDR item) { if (this.serverAddressByClientCIDRs == null) {this.serverAddressByClientCIDRs = new ArrayList();} V1ServerAddressByClientCIDRBuilder builder = new V1ServerAddressByClientCIDRBuilder(item); - if (index < 0 || index >= serverAddressByClientCIDRs.size()) { _visitables.get("serverAddressByClientCIDRs").add(builder); serverAddressByClientCIDRs.add(builder); } else { _visitables.get("serverAddressByClientCIDRs").set(index, builder); serverAddressByClientCIDRs.set(index, builder);} + if (index < 0 || index >= serverAddressByClientCIDRs.size()) { + _visitables.get("serverAddressByClientCIDRs").add(builder); + serverAddressByClientCIDRs.add(builder); + } else { + _visitables.get("serverAddressByClientCIDRs").add(builder); + serverAddressByClientCIDRs.set(index, builder); + } return (A)this; } @@ -275,14 +287,26 @@ public ServerAddressByClientCIDRsNested editMatchingServerAddressByClientCIDR public A addToVersions(int index,V1GroupVersionForDiscovery item) { if (this.versions == null) {this.versions = new ArrayList();} V1GroupVersionForDiscoveryBuilder builder = new V1GroupVersionForDiscoveryBuilder(item); - if (index < 0 || index >= versions.size()) { _visitables.get("versions").add(builder); versions.add(builder); } else { _visitables.get("versions").add(index, builder); versions.add(index, builder);} + if (index < 0 || index >= versions.size()) { + _visitables.get("versions").add(builder); + versions.add(builder); + } else { + _visitables.get("versions").add(builder); + versions.add(index, builder); + } return (A)this; } public A setToVersions(int index,V1GroupVersionForDiscovery item) { if (this.versions == null) {this.versions = new ArrayList();} V1GroupVersionForDiscoveryBuilder builder = new V1GroupVersionForDiscoveryBuilder(item); - if (index < 0 || index >= versions.size()) { _visitables.get("versions").add(builder); versions.add(builder); } else { _visitables.get("versions").set(index, builder); versions.set(index, builder);} + if (index < 0 || index >= versions.size()) { + _visitables.get("versions").add(builder); + versions.add(builder); + } else { + _visitables.get("versions").add(builder); + versions.set(index, builder); + } return (A)this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIGroupListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIGroupListFluent.java index d60e3d8b8d..9fe96debed 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIGroupListFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIGroupListFluent.java @@ -52,14 +52,26 @@ public boolean hasApiVersion() { public A addToGroups(int index,V1APIGroup item) { if (this.groups == null) {this.groups = new ArrayList();} V1APIGroupBuilder builder = new V1APIGroupBuilder(item); - if (index < 0 || index >= groups.size()) { _visitables.get("groups").add(builder); groups.add(builder); } else { _visitables.get("groups").add(index, builder); groups.add(index, builder);} + if (index < 0 || index >= groups.size()) { + _visitables.get("groups").add(builder); + groups.add(builder); + } else { + _visitables.get("groups").add(builder); + groups.add(index, builder); + } return (A)this; } public A setToGroups(int index,V1APIGroup item) { if (this.groups == null) {this.groups = new ArrayList();} V1APIGroupBuilder builder = new V1APIGroupBuilder(item); - if (index < 0 || index >= groups.size()) { _visitables.get("groups").add(builder); groups.add(builder); } else { _visitables.get("groups").set(index, builder); groups.set(index, builder);} + if (index < 0 || index >= groups.size()) { + _visitables.get("groups").add(builder); + groups.add(builder); + } else { + _visitables.get("groups").add(builder); + groups.set(index, builder); + } return (A)this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIResourceListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIResourceListFluent.java index 489fca8a00..da990a89a3 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIResourceListFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIResourceListFluent.java @@ -80,14 +80,26 @@ public boolean hasKind() { public A addToResources(int index,V1APIResource item) { if (this.resources == null) {this.resources = new ArrayList();} V1APIResourceBuilder builder = new V1APIResourceBuilder(item); - if (index < 0 || index >= resources.size()) { _visitables.get("resources").add(builder); resources.add(builder); } else { _visitables.get("resources").add(index, builder); resources.add(index, builder);} + if (index < 0 || index >= resources.size()) { + _visitables.get("resources").add(builder); + resources.add(builder); + } else { + _visitables.get("resources").add(builder); + resources.add(index, builder); + } return (A)this; } public A setToResources(int index,V1APIResource item) { if (this.resources == null) {this.resources = new ArrayList();} V1APIResourceBuilder builder = new V1APIResourceBuilder(item); - if (index < 0 || index >= resources.size()) { _visitables.get("resources").add(builder); resources.add(builder); } else { _visitables.get("resources").set(index, builder); resources.set(index, builder);} + if (index < 0 || index >= resources.size()) { + _visitables.get("resources").add(builder); + resources.add(builder); + } else { + _visitables.get("resources").add(builder); + resources.set(index, builder); + } return (A)this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIServiceListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIServiceListFluent.java index abc026424b..da675dfe1a 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIServiceListFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIServiceListFluent.java @@ -54,14 +54,26 @@ public boolean hasApiVersion() { public A addToItems(int index,V1APIService item) { if (this.items == null) {this.items = new ArrayList();} V1APIServiceBuilder builder = new V1APIServiceBuilder(item); - if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); items.add(builder); } else { _visitables.get("items").add(index, builder); items.add(index, builder);} + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.add(index, builder); + } return (A)this; } public A setToItems(int index,V1APIService item) { if (this.items == null) {this.items = new ArrayList();} V1APIServiceBuilder builder = new V1APIServiceBuilder(item); - if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); items.add(builder); } else { _visitables.get("items").set(index, builder); items.set(index, builder);} + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.set(index, builder); + } return (A)this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIServiceStatusFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIServiceStatusFluent.java index c7329a52a1..347f61bd5e 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIServiceStatusFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIServiceStatusFluent.java @@ -35,14 +35,26 @@ protected void copyInstance(V1APIServiceStatus instance) { public A addToConditions(int index,V1APIServiceCondition item) { if (this.conditions == null) {this.conditions = new ArrayList();} V1APIServiceConditionBuilder builder = new V1APIServiceConditionBuilder(item); - if (index < 0 || index >= conditions.size()) { _visitables.get("conditions").add(builder); conditions.add(builder); } else { _visitables.get("conditions").add(index, builder); conditions.add(index, builder);} + if (index < 0 || index >= conditions.size()) { + _visitables.get("conditions").add(builder); + conditions.add(builder); + } else { + _visitables.get("conditions").add(builder); + conditions.add(index, builder); + } return (A)this; } public A setToConditions(int index,V1APIServiceCondition item) { if (this.conditions == null) {this.conditions = new ArrayList();} V1APIServiceConditionBuilder builder = new V1APIServiceConditionBuilder(item); - if (index < 0 || index >= conditions.size()) { _visitables.get("conditions").add(builder); conditions.add(builder); } else { _visitables.get("conditions").set(index, builder); conditions.set(index, builder);} + if (index < 0 || index >= conditions.size()) { + _visitables.get("conditions").add(builder); + conditions.add(builder); + } else { + _visitables.get("conditions").add(builder); + conditions.set(index, builder); + } return (A)this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIVersionsFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIVersionsFluent.java index 6c573b738a..83c3058def 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIVersionsFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIVersionsFluent.java @@ -67,14 +67,26 @@ public boolean hasKind() { public A addToServerAddressByClientCIDRs(int index,V1ServerAddressByClientCIDR item) { if (this.serverAddressByClientCIDRs == null) {this.serverAddressByClientCIDRs = new ArrayList();} V1ServerAddressByClientCIDRBuilder builder = new V1ServerAddressByClientCIDRBuilder(item); - if (index < 0 || index >= serverAddressByClientCIDRs.size()) { _visitables.get("serverAddressByClientCIDRs").add(builder); serverAddressByClientCIDRs.add(builder); } else { _visitables.get("serverAddressByClientCIDRs").add(index, builder); serverAddressByClientCIDRs.add(index, builder);} + if (index < 0 || index >= serverAddressByClientCIDRs.size()) { + _visitables.get("serverAddressByClientCIDRs").add(builder); + serverAddressByClientCIDRs.add(builder); + } else { + _visitables.get("serverAddressByClientCIDRs").add(builder); + serverAddressByClientCIDRs.add(index, builder); + } return (A)this; } public A setToServerAddressByClientCIDRs(int index,V1ServerAddressByClientCIDR item) { if (this.serverAddressByClientCIDRs == null) {this.serverAddressByClientCIDRs = new ArrayList();} V1ServerAddressByClientCIDRBuilder builder = new V1ServerAddressByClientCIDRBuilder(item); - if (index < 0 || index >= serverAddressByClientCIDRs.size()) { _visitables.get("serverAddressByClientCIDRs").add(builder); serverAddressByClientCIDRs.add(builder); } else { _visitables.get("serverAddressByClientCIDRs").set(index, builder); serverAddressByClientCIDRs.set(index, builder);} + if (index < 0 || index >= serverAddressByClientCIDRs.size()) { + _visitables.get("serverAddressByClientCIDRs").add(builder); + serverAddressByClientCIDRs.add(builder); + } else { + _visitables.get("serverAddressByClientCIDRs").add(builder); + serverAddressByClientCIDRs.set(index, builder); + } return (A)this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AggregationRuleFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AggregationRuleFluent.java index 5861b381e9..1a703f8ab0 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AggregationRuleFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AggregationRuleFluent.java @@ -35,14 +35,26 @@ protected void copyInstance(V1AggregationRule instance) { public A addToClusterRoleSelectors(int index,V1LabelSelector item) { if (this.clusterRoleSelectors == null) {this.clusterRoleSelectors = new ArrayList();} V1LabelSelectorBuilder builder = new V1LabelSelectorBuilder(item); - if (index < 0 || index >= clusterRoleSelectors.size()) { _visitables.get("clusterRoleSelectors").add(builder); clusterRoleSelectors.add(builder); } else { _visitables.get("clusterRoleSelectors").add(index, builder); clusterRoleSelectors.add(index, builder);} + if (index < 0 || index >= clusterRoleSelectors.size()) { + _visitables.get("clusterRoleSelectors").add(builder); + clusterRoleSelectors.add(builder); + } else { + _visitables.get("clusterRoleSelectors").add(builder); + clusterRoleSelectors.add(index, builder); + } return (A)this; } public A setToClusterRoleSelectors(int index,V1LabelSelector item) { if (this.clusterRoleSelectors == null) {this.clusterRoleSelectors = new ArrayList();} V1LabelSelectorBuilder builder = new V1LabelSelectorBuilder(item); - if (index < 0 || index >= clusterRoleSelectors.size()) { _visitables.get("clusterRoleSelectors").add(builder); clusterRoleSelectors.add(builder); } else { _visitables.get("clusterRoleSelectors").set(index, builder); clusterRoleSelectors.set(index, builder);} + if (index < 0 || index >= clusterRoleSelectors.size()) { + _visitables.get("clusterRoleSelectors").add(builder); + clusterRoleSelectors.add(builder); + } else { + _visitables.get("clusterRoleSelectors").add(builder); + clusterRoleSelectors.set(index, builder); + } return (A)this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AppArmorProfileBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AppArmorProfileBuilder.java new file mode 100644 index 0000000000..859c9c3603 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AppArmorProfileBuilder.java @@ -0,0 +1,32 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +public class V1AppArmorProfileBuilder extends V1AppArmorProfileFluent implements VisitableBuilder{ + public V1AppArmorProfileBuilder() { + this(new V1AppArmorProfile()); + } + + public V1AppArmorProfileBuilder(V1AppArmorProfileFluent fluent) { + this(fluent, new V1AppArmorProfile()); + } + + public V1AppArmorProfileBuilder(V1AppArmorProfileFluent fluent,V1AppArmorProfile instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1AppArmorProfileBuilder(V1AppArmorProfile instance) { + this.fluent = this; + this.copyInstance(instance); + } + V1AppArmorProfileFluent fluent; + + public V1AppArmorProfile build() { + V1AppArmorProfile buildable = new V1AppArmorProfile(); + buildable.setLocalhostProfile(fluent.getLocalhostProfile()); + buildable.setType(fluent.getType()); + return buildable; + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AppArmorProfileFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AppArmorProfileFluent.java new file mode 100644 index 0000000000..492f716cdc --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AppArmorProfileFluent.java @@ -0,0 +1,80 @@ +package io.kubernetes.client.openapi.models; + +import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Object; +import java.lang.String; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1AppArmorProfileFluent> extends BaseFluent{ + public V1AppArmorProfileFluent() { + } + + public V1AppArmorProfileFluent(V1AppArmorProfile instance) { + this.copyInstance(instance); + } + private String localhostProfile; + private String type; + + protected void copyInstance(V1AppArmorProfile instance) { + instance = (instance != null ? instance : new V1AppArmorProfile()); + if (instance != null) { + this.withLocalhostProfile(instance.getLocalhostProfile()); + this.withType(instance.getType()); + } + } + + public String getLocalhostProfile() { + return this.localhostProfile; + } + + public A withLocalhostProfile(String localhostProfile) { + this.localhostProfile = localhostProfile; + return (A) this; + } + + public boolean hasLocalhostProfile() { + return this.localhostProfile != null; + } + + public String getType() { + return this.type; + } + + public A withType(String type) { + this.type = type; + return (A) this; + } + + public boolean hasType() { + return this.type != null; + } + + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + if (!super.equals(o)) return false; + V1AppArmorProfileFluent that = (V1AppArmorProfileFluent) o; + if (!java.util.Objects.equals(localhostProfile, that.localhostProfile)) return false; + if (!java.util.Objects.equals(type, that.type)) return false; + return true; + } + + public int hashCode() { + return java.util.Objects.hash(localhostProfile, type, super.hashCode()); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (localhostProfile != null) { sb.append("localhostProfile:"); sb.append(localhostProfile + ","); } + if (type != null) { sb.append("type:"); sb.append(type); } + sb.append("}"); + return sb.toString(); + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AuditAnnotationBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AuditAnnotationBuilder.java new file mode 100644 index 0000000000..64105e3042 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AuditAnnotationBuilder.java @@ -0,0 +1,32 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +public class V1AuditAnnotationBuilder extends V1AuditAnnotationFluent implements VisitableBuilder{ + public V1AuditAnnotationBuilder() { + this(new V1AuditAnnotation()); + } + + public V1AuditAnnotationBuilder(V1AuditAnnotationFluent fluent) { + this(fluent, new V1AuditAnnotation()); + } + + public V1AuditAnnotationBuilder(V1AuditAnnotationFluent fluent,V1AuditAnnotation instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1AuditAnnotationBuilder(V1AuditAnnotation instance) { + this.fluent = this; + this.copyInstance(instance); + } + V1AuditAnnotationFluent fluent; + + public V1AuditAnnotation build() { + V1AuditAnnotation buildable = new V1AuditAnnotation(); + buildable.setKey(fluent.getKey()); + buildable.setValueExpression(fluent.getValueExpression()); + return buildable; + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AuditAnnotationFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AuditAnnotationFluent.java new file mode 100644 index 0000000000..f02d591733 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AuditAnnotationFluent.java @@ -0,0 +1,80 @@ +package io.kubernetes.client.openapi.models; + +import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Object; +import java.lang.String; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1AuditAnnotationFluent> extends BaseFluent{ + public V1AuditAnnotationFluent() { + } + + public V1AuditAnnotationFluent(V1AuditAnnotation instance) { + this.copyInstance(instance); + } + private String key; + private String valueExpression; + + protected void copyInstance(V1AuditAnnotation instance) { + instance = (instance != null ? instance : new V1AuditAnnotation()); + if (instance != null) { + this.withKey(instance.getKey()); + this.withValueExpression(instance.getValueExpression()); + } + } + + public String getKey() { + return this.key; + } + + public A withKey(String key) { + this.key = key; + return (A) this; + } + + public boolean hasKey() { + return this.key != null; + } + + public String getValueExpression() { + return this.valueExpression; + } + + public A withValueExpression(String valueExpression) { + this.valueExpression = valueExpression; + return (A) this; + } + + public boolean hasValueExpression() { + return this.valueExpression != null; + } + + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + if (!super.equals(o)) return false; + V1AuditAnnotationFluent that = (V1AuditAnnotationFluent) o; + if (!java.util.Objects.equals(key, that.key)) return false; + if (!java.util.Objects.equals(valueExpression, that.valueExpression)) return false; + return true; + } + + public int hashCode() { + return java.util.Objects.hash(key, valueExpression, super.hashCode()); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (key != null) { sb.append("key:"); sb.append(key + ","); } + if (valueExpression != null) { sb.append("valueExpression:"); sb.append(valueExpression); } + sb.append("}"); + return sb.toString(); + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSIDriverListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSIDriverListFluent.java index 2f4f1e6a25..30a6043a29 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSIDriverListFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSIDriverListFluent.java @@ -54,14 +54,26 @@ public boolean hasApiVersion() { public A addToItems(int index,V1CSIDriver item) { if (this.items == null) {this.items = new ArrayList();} V1CSIDriverBuilder builder = new V1CSIDriverBuilder(item); - if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); items.add(builder); } else { _visitables.get("items").add(index, builder); items.add(index, builder);} + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.add(index, builder); + } return (A)this; } public A setToItems(int index,V1CSIDriver item) { if (this.items == null) {this.items = new ArrayList();} V1CSIDriverBuilder builder = new V1CSIDriverBuilder(item); - if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); items.add(builder); } else { _visitables.get("items").set(index, builder); items.set(index, builder);} + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.set(index, builder); + } return (A)this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSIDriverSpecBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSIDriverSpecBuilder.java index 49c119e80d..c699b75b75 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSIDriverSpecBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSIDriverSpecBuilder.java @@ -25,6 +25,7 @@ public V1CSIDriverSpec build() { V1CSIDriverSpec buildable = new V1CSIDriverSpec(); buildable.setAttachRequired(fluent.getAttachRequired()); buildable.setFsGroupPolicy(fluent.getFsGroupPolicy()); + buildable.setNodeAllocatableUpdatePeriodSeconds(fluent.getNodeAllocatableUpdatePeriodSeconds()); buildable.setPodInfoOnMount(fluent.getPodInfoOnMount()); buildable.setRequiresRepublish(fluent.getRequiresRepublish()); buildable.setSeLinuxMount(fluent.getSeLinuxMount()); diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSIDriverSpecFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSIDriverSpecFluent.java index 9956a1edb3..462a73bf53 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSIDriverSpecFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSIDriverSpecFluent.java @@ -7,6 +7,7 @@ import java.lang.String; import java.util.function.Predicate; import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Long; import java.util.Iterator; import java.util.Collection; import java.lang.Object; @@ -26,6 +27,7 @@ public V1CSIDriverSpecFluent(V1CSIDriverSpec instance) { } private Boolean attachRequired; private String fsGroupPolicy; + private Long nodeAllocatableUpdatePeriodSeconds; private Boolean podInfoOnMount; private Boolean requiresRepublish; private Boolean seLinuxMount; @@ -38,6 +40,7 @@ protected void copyInstance(V1CSIDriverSpec instance) { if (instance != null) { this.withAttachRequired(instance.getAttachRequired()); this.withFsGroupPolicy(instance.getFsGroupPolicy()); + this.withNodeAllocatableUpdatePeriodSeconds(instance.getNodeAllocatableUpdatePeriodSeconds()); this.withPodInfoOnMount(instance.getPodInfoOnMount()); this.withRequiresRepublish(instance.getRequiresRepublish()); this.withSeLinuxMount(instance.getSeLinuxMount()); @@ -73,6 +76,19 @@ public boolean hasFsGroupPolicy() { return this.fsGroupPolicy != null; } + public Long getNodeAllocatableUpdatePeriodSeconds() { + return this.nodeAllocatableUpdatePeriodSeconds; + } + + public A withNodeAllocatableUpdatePeriodSeconds(Long nodeAllocatableUpdatePeriodSeconds) { + this.nodeAllocatableUpdatePeriodSeconds = nodeAllocatableUpdatePeriodSeconds; + return (A) this; + } + + public boolean hasNodeAllocatableUpdatePeriodSeconds() { + return this.nodeAllocatableUpdatePeriodSeconds != null; + } + public Boolean getPodInfoOnMount() { return this.podInfoOnMount; } @@ -128,14 +144,26 @@ public boolean hasStorageCapacity() { public A addToTokenRequests(int index,StorageV1TokenRequest item) { if (this.tokenRequests == null) {this.tokenRequests = new ArrayList();} StorageV1TokenRequestBuilder builder = new StorageV1TokenRequestBuilder(item); - if (index < 0 || index >= tokenRequests.size()) { _visitables.get("tokenRequests").add(builder); tokenRequests.add(builder); } else { _visitables.get("tokenRequests").add(index, builder); tokenRequests.add(index, builder);} + if (index < 0 || index >= tokenRequests.size()) { + _visitables.get("tokenRequests").add(builder); + tokenRequests.add(builder); + } else { + _visitables.get("tokenRequests").add(builder); + tokenRequests.add(index, builder); + } return (A)this; } public A setToTokenRequests(int index,StorageV1TokenRequest item) { if (this.tokenRequests == null) {this.tokenRequests = new ArrayList();} StorageV1TokenRequestBuilder builder = new StorageV1TokenRequestBuilder(item); - if (index < 0 || index >= tokenRequests.size()) { _visitables.get("tokenRequests").add(builder); tokenRequests.add(builder); } else { _visitables.get("tokenRequests").set(index, builder); tokenRequests.set(index, builder);} + if (index < 0 || index >= tokenRequests.size()) { + _visitables.get("tokenRequests").add(builder); + tokenRequests.add(builder); + } else { + _visitables.get("tokenRequests").add(builder); + tokenRequests.set(index, builder); + } return (A)this; } @@ -377,6 +405,7 @@ public boolean equals(Object o) { V1CSIDriverSpecFluent that = (V1CSIDriverSpecFluent) o; if (!java.util.Objects.equals(attachRequired, that.attachRequired)) return false; if (!java.util.Objects.equals(fsGroupPolicy, that.fsGroupPolicy)) return false; + if (!java.util.Objects.equals(nodeAllocatableUpdatePeriodSeconds, that.nodeAllocatableUpdatePeriodSeconds)) return false; if (!java.util.Objects.equals(podInfoOnMount, that.podInfoOnMount)) return false; if (!java.util.Objects.equals(requiresRepublish, that.requiresRepublish)) return false; if (!java.util.Objects.equals(seLinuxMount, that.seLinuxMount)) return false; @@ -387,7 +416,7 @@ public boolean equals(Object o) { } public int hashCode() { - return java.util.Objects.hash(attachRequired, fsGroupPolicy, podInfoOnMount, requiresRepublish, seLinuxMount, storageCapacity, tokenRequests, volumeLifecycleModes, super.hashCode()); + return java.util.Objects.hash(attachRequired, fsGroupPolicy, nodeAllocatableUpdatePeriodSeconds, podInfoOnMount, requiresRepublish, seLinuxMount, storageCapacity, tokenRequests, volumeLifecycleModes, super.hashCode()); } public String toString() { @@ -395,6 +424,7 @@ public String toString() { sb.append("{"); if (attachRequired != null) { sb.append("attachRequired:"); sb.append(attachRequired + ","); } if (fsGroupPolicy != null) { sb.append("fsGroupPolicy:"); sb.append(fsGroupPolicy + ","); } + if (nodeAllocatableUpdatePeriodSeconds != null) { sb.append("nodeAllocatableUpdatePeriodSeconds:"); sb.append(nodeAllocatableUpdatePeriodSeconds + ","); } if (podInfoOnMount != null) { sb.append("podInfoOnMount:"); sb.append(podInfoOnMount + ","); } if (requiresRepublish != null) { sb.append("requiresRepublish:"); sb.append(requiresRepublish + ","); } if (seLinuxMount != null) { sb.append("seLinuxMount:"); sb.append(seLinuxMount + ","); } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSINodeListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSINodeListFluent.java index 3199e0216c..1c711b4e14 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSINodeListFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSINodeListFluent.java @@ -54,14 +54,26 @@ public boolean hasApiVersion() { public A addToItems(int index,V1CSINode item) { if (this.items == null) {this.items = new ArrayList();} V1CSINodeBuilder builder = new V1CSINodeBuilder(item); - if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); items.add(builder); } else { _visitables.get("items").add(index, builder); items.add(index, builder);} + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.add(index, builder); + } return (A)this; } public A setToItems(int index,V1CSINode item) { if (this.items == null) {this.items = new ArrayList();} V1CSINodeBuilder builder = new V1CSINodeBuilder(item); - if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); items.add(builder); } else { _visitables.get("items").set(index, builder); items.set(index, builder);} + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.set(index, builder); + } return (A)this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSINodeSpecFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSINodeSpecFluent.java index 9cebd63fe5..a756c26ee7 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSINodeSpecFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSINodeSpecFluent.java @@ -35,14 +35,26 @@ protected void copyInstance(V1CSINodeSpec instance) { public A addToDrivers(int index,V1CSINodeDriver item) { if (this.drivers == null) {this.drivers = new ArrayList();} V1CSINodeDriverBuilder builder = new V1CSINodeDriverBuilder(item); - if (index < 0 || index >= drivers.size()) { _visitables.get("drivers").add(builder); drivers.add(builder); } else { _visitables.get("drivers").add(index, builder); drivers.add(index, builder);} + if (index < 0 || index >= drivers.size()) { + _visitables.get("drivers").add(builder); + drivers.add(builder); + } else { + _visitables.get("drivers").add(builder); + drivers.add(index, builder); + } return (A)this; } public A setToDrivers(int index,V1CSINodeDriver item) { if (this.drivers == null) {this.drivers = new ArrayList();} V1CSINodeDriverBuilder builder = new V1CSINodeDriverBuilder(item); - if (index < 0 || index >= drivers.size()) { _visitables.get("drivers").add(builder); drivers.add(builder); } else { _visitables.get("drivers").set(index, builder); drivers.set(index, builder);} + if (index < 0 || index >= drivers.size()) { + _visitables.get("drivers").add(builder); + drivers.add(builder); + } else { + _visitables.get("drivers").add(builder); + drivers.set(index, builder); + } return (A)this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSIStorageCapacityListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSIStorageCapacityListFluent.java index 4c8bdb074f..c5da6bceee 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSIStorageCapacityListFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSIStorageCapacityListFluent.java @@ -54,14 +54,26 @@ public boolean hasApiVersion() { public A addToItems(int index,V1CSIStorageCapacity item) { if (this.items == null) {this.items = new ArrayList();} V1CSIStorageCapacityBuilder builder = new V1CSIStorageCapacityBuilder(item); - if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); items.add(builder); } else { _visitables.get("items").add(index, builder); items.add(index, builder);} + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.add(index, builder); + } return (A)this; } public A setToItems(int index,V1CSIStorageCapacity item) { if (this.items == null) {this.items = new ArrayList();} V1CSIStorageCapacityBuilder builder = new V1CSIStorageCapacityBuilder(item); - if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); items.add(builder); } else { _visitables.get("items").set(index, builder); items.set(index, builder);} + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.set(index, builder); + } return (A)this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CertificateSigningRequestListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CertificateSigningRequestListFluent.java index f578f55581..76d916cfa6 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CertificateSigningRequestListFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CertificateSigningRequestListFluent.java @@ -54,14 +54,26 @@ public boolean hasApiVersion() { public A addToItems(int index,V1CertificateSigningRequest item) { if (this.items == null) {this.items = new ArrayList();} V1CertificateSigningRequestBuilder builder = new V1CertificateSigningRequestBuilder(item); - if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); items.add(builder); } else { _visitables.get("items").add(index, builder); items.add(index, builder);} + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.add(index, builder); + } return (A)this; } public A setToItems(int index,V1CertificateSigningRequest item) { if (this.items == null) {this.items = new ArrayList();} V1CertificateSigningRequestBuilder builder = new V1CertificateSigningRequestBuilder(item); - if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); items.add(builder); } else { _visitables.get("items").set(index, builder); items.set(index, builder);} + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.set(index, builder); + } return (A)this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CertificateSigningRequestStatusFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CertificateSigningRequestStatusFluent.java index 12cc0067e7..3942bb0428 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CertificateSigningRequestStatusFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CertificateSigningRequestStatusFluent.java @@ -99,14 +99,26 @@ public boolean hasCertificate() { public A addToConditions(int index,V1CertificateSigningRequestCondition item) { if (this.conditions == null) {this.conditions = new ArrayList();} V1CertificateSigningRequestConditionBuilder builder = new V1CertificateSigningRequestConditionBuilder(item); - if (index < 0 || index >= conditions.size()) { _visitables.get("conditions").add(builder); conditions.add(builder); } else { _visitables.get("conditions").add(index, builder); conditions.add(index, builder);} + if (index < 0 || index >= conditions.size()) { + _visitables.get("conditions").add(builder); + conditions.add(builder); + } else { + _visitables.get("conditions").add(builder); + conditions.add(index, builder); + } return (A)this; } public A setToConditions(int index,V1CertificateSigningRequestCondition item) { if (this.conditions == null) {this.conditions = new ArrayList();} V1CertificateSigningRequestConditionBuilder builder = new V1CertificateSigningRequestConditionBuilder(item); - if (index < 0 || index >= conditions.size()) { _visitables.get("conditions").add(builder); conditions.add(builder); } else { _visitables.get("conditions").set(index, builder); conditions.set(index, builder);} + if (index < 0 || index >= conditions.size()) { + _visitables.get("conditions").add(builder); + conditions.add(builder); + } else { + _visitables.get("conditions").add(builder); + conditions.set(index, builder); + } return (A)this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ClaimSourceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ClaimSourceBuilder.java deleted file mode 100644 index af06c7eea8..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ClaimSourceBuilder.java +++ /dev/null @@ -1,32 +0,0 @@ -package io.kubernetes.client.openapi.models; - -import io.kubernetes.client.fluent.VisitableBuilder; -public class V1ClaimSourceBuilder extends V1ClaimSourceFluent implements VisitableBuilder{ - public V1ClaimSourceBuilder() { - this(new V1ClaimSource()); - } - - public V1ClaimSourceBuilder(V1ClaimSourceFluent fluent) { - this(fluent, new V1ClaimSource()); - } - - public V1ClaimSourceBuilder(V1ClaimSourceFluent fluent,V1ClaimSource instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - - public V1ClaimSourceBuilder(V1ClaimSource instance) { - this.fluent = this; - this.copyInstance(instance); - } - V1ClaimSourceFluent fluent; - - public V1ClaimSource build() { - V1ClaimSource buildable = new V1ClaimSource(); - buildable.setResourceClaimName(fluent.getResourceClaimName()); - buildable.setResourceClaimTemplateName(fluent.getResourceClaimTemplateName()); - return buildable; - } - - -} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ClaimSourceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ClaimSourceFluent.java deleted file mode 100644 index c91ddb7043..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ClaimSourceFluent.java +++ /dev/null @@ -1,80 +0,0 @@ -package io.kubernetes.client.openapi.models; - -import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.BaseFluent; -import java.lang.Object; -import java.lang.String; - -/** - * Generated - */ -@SuppressWarnings("unchecked") -public class V1ClaimSourceFluent> extends BaseFluent{ - public V1ClaimSourceFluent() { - } - - public V1ClaimSourceFluent(V1ClaimSource instance) { - this.copyInstance(instance); - } - private String resourceClaimName; - private String resourceClaimTemplateName; - - protected void copyInstance(V1ClaimSource instance) { - instance = (instance != null ? instance : new V1ClaimSource()); - if (instance != null) { - this.withResourceClaimName(instance.getResourceClaimName()); - this.withResourceClaimTemplateName(instance.getResourceClaimTemplateName()); - } - } - - public String getResourceClaimName() { - return this.resourceClaimName; - } - - public A withResourceClaimName(String resourceClaimName) { - this.resourceClaimName = resourceClaimName; - return (A) this; - } - - public boolean hasResourceClaimName() { - return this.resourceClaimName != null; - } - - public String getResourceClaimTemplateName() { - return this.resourceClaimTemplateName; - } - - public A withResourceClaimTemplateName(String resourceClaimTemplateName) { - this.resourceClaimTemplateName = resourceClaimTemplateName; - return (A) this; - } - - public boolean hasResourceClaimTemplateName() { - return this.resourceClaimTemplateName != null; - } - - public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; - V1ClaimSourceFluent that = (V1ClaimSourceFluent) o; - if (!java.util.Objects.equals(resourceClaimName, that.resourceClaimName)) return false; - if (!java.util.Objects.equals(resourceClaimTemplateName, that.resourceClaimTemplateName)) return false; - return true; - } - - public int hashCode() { - return java.util.Objects.hash(resourceClaimName, resourceClaimTemplateName, super.hashCode()); - } - - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("{"); - if (resourceClaimName != null) { sb.append("resourceClaimName:"); sb.append(resourceClaimName + ","); } - if (resourceClaimTemplateName != null) { sb.append("resourceClaimTemplateName:"); sb.append(resourceClaimTemplateName); } - sb.append("}"); - return sb.toString(); - } - - -} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ClusterRoleBindingFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ClusterRoleBindingFluent.java index c8cac2aa71..2d85140561 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ClusterRoleBindingFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ClusterRoleBindingFluent.java @@ -27,7 +27,7 @@ public V1ClusterRoleBindingFluent(V1ClusterRoleBinding instance) { private String kind; private V1ObjectMetaBuilder metadata; private V1RoleRefBuilder roleRef; - private ArrayList subjects; + private ArrayList subjects; protected void copyInstance(V1ClusterRoleBinding instance) { instance = (instance != null ? instance : new V1ClusterRoleBinding()); @@ -146,46 +146,58 @@ public RoleRefNested editOrNewRoleRefLike(V1RoleRef item) { return withNewRoleRefLike(java.util.Optional.ofNullable(buildRoleRef()).orElse(item)); } - public A addToSubjects(int index,V1Subject item) { - if (this.subjects == null) {this.subjects = new ArrayList();} - V1SubjectBuilder builder = new V1SubjectBuilder(item); - if (index < 0 || index >= subjects.size()) { _visitables.get("subjects").add(builder); subjects.add(builder); } else { _visitables.get("subjects").add(index, builder); subjects.add(index, builder);} + public A addToSubjects(int index,RbacV1Subject item) { + if (this.subjects == null) {this.subjects = new ArrayList();} + RbacV1SubjectBuilder builder = new RbacV1SubjectBuilder(item); + if (index < 0 || index >= subjects.size()) { + _visitables.get("subjects").add(builder); + subjects.add(builder); + } else { + _visitables.get("subjects").add(builder); + subjects.add(index, builder); + } return (A)this; } - public A setToSubjects(int index,V1Subject item) { - if (this.subjects == null) {this.subjects = new ArrayList();} - V1SubjectBuilder builder = new V1SubjectBuilder(item); - if (index < 0 || index >= subjects.size()) { _visitables.get("subjects").add(builder); subjects.add(builder); } else { _visitables.get("subjects").set(index, builder); subjects.set(index, builder);} + public A setToSubjects(int index,RbacV1Subject item) { + if (this.subjects == null) {this.subjects = new ArrayList();} + RbacV1SubjectBuilder builder = new RbacV1SubjectBuilder(item); + if (index < 0 || index >= subjects.size()) { + _visitables.get("subjects").add(builder); + subjects.add(builder); + } else { + _visitables.get("subjects").add(builder); + subjects.set(index, builder); + } return (A)this; } - public A addToSubjects(io.kubernetes.client.openapi.models.V1Subject... items) { - if (this.subjects == null) {this.subjects = new ArrayList();} - for (V1Subject item : items) {V1SubjectBuilder builder = new V1SubjectBuilder(item);_visitables.get("subjects").add(builder);this.subjects.add(builder);} return (A)this; + public A addToSubjects(io.kubernetes.client.openapi.models.RbacV1Subject... items) { + if (this.subjects == null) {this.subjects = new ArrayList();} + for (RbacV1Subject item : items) {RbacV1SubjectBuilder builder = new RbacV1SubjectBuilder(item);_visitables.get("subjects").add(builder);this.subjects.add(builder);} return (A)this; } - public A addAllToSubjects(Collection items) { - if (this.subjects == null) {this.subjects = new ArrayList();} - for (V1Subject item : items) {V1SubjectBuilder builder = new V1SubjectBuilder(item);_visitables.get("subjects").add(builder);this.subjects.add(builder);} return (A)this; + public A addAllToSubjects(Collection items) { + if (this.subjects == null) {this.subjects = new ArrayList();} + for (RbacV1Subject item : items) {RbacV1SubjectBuilder builder = new RbacV1SubjectBuilder(item);_visitables.get("subjects").add(builder);this.subjects.add(builder);} return (A)this; } - public A removeFromSubjects(io.kubernetes.client.openapi.models.V1Subject... items) { + public A removeFromSubjects(io.kubernetes.client.openapi.models.RbacV1Subject... items) { if (this.subjects == null) return (A)this; - for (V1Subject item : items) {V1SubjectBuilder builder = new V1SubjectBuilder(item);_visitables.get("subjects").remove(builder); this.subjects.remove(builder);} return (A)this; + for (RbacV1Subject item : items) {RbacV1SubjectBuilder builder = new RbacV1SubjectBuilder(item);_visitables.get("subjects").remove(builder); this.subjects.remove(builder);} return (A)this; } - public A removeAllFromSubjects(Collection items) { + public A removeAllFromSubjects(Collection items) { if (this.subjects == null) return (A)this; - for (V1Subject item : items) {V1SubjectBuilder builder = new V1SubjectBuilder(item);_visitables.get("subjects").remove(builder); this.subjects.remove(builder);} return (A)this; + for (RbacV1Subject item : items) {RbacV1SubjectBuilder builder = new RbacV1SubjectBuilder(item);_visitables.get("subjects").remove(builder); this.subjects.remove(builder);} return (A)this; } - public A removeMatchingFromSubjects(Predicate predicate) { + public A removeMatchingFromSubjects(Predicate predicate) { if (subjects == null) return (A) this; - final Iterator each = subjects.iterator(); + final Iterator each = subjects.iterator(); final List visitables = _visitables.get("subjects"); while (each.hasNext()) { - V1SubjectBuilder builder = each.next(); + RbacV1SubjectBuilder builder = each.next(); if (predicate.test(builder)) { visitables.remove(builder); each.remove(); @@ -194,24 +206,24 @@ public A removeMatchingFromSubjects(Predicate predicate) { return (A)this; } - public List buildSubjects() { + public List buildSubjects() { return this.subjects != null ? build(subjects) : null; } - public V1Subject buildSubject(int index) { + public RbacV1Subject buildSubject(int index) { return this.subjects.get(index).build(); } - public V1Subject buildFirstSubject() { + public RbacV1Subject buildFirstSubject() { return this.subjects.get(0).build(); } - public V1Subject buildLastSubject() { + public RbacV1Subject buildLastSubject() { return this.subjects.get(subjects.size() - 1).build(); } - public V1Subject buildMatchingSubject(Predicate predicate) { - for (V1SubjectBuilder item : subjects) { + public RbacV1Subject buildMatchingSubject(Predicate predicate) { + for (RbacV1SubjectBuilder item : subjects) { if (predicate.test(item)) { return item.build(); } @@ -219,8 +231,8 @@ public V1Subject buildMatchingSubject(Predicate predicate) { return null; } - public boolean hasMatchingSubject(Predicate predicate) { - for (V1SubjectBuilder item : subjects) { + public boolean hasMatchingSubject(Predicate predicate) { + for (RbacV1SubjectBuilder item : subjects) { if (predicate.test(item)) { return true; } @@ -228,13 +240,13 @@ public boolean hasMatchingSubject(Predicate predicate) { return false; } - public A withSubjects(List subjects) { + public A withSubjects(List subjects) { if (this.subjects != null) { this._visitables.get("subjects").clear(); } if (subjects != null) { this.subjects = new ArrayList(); - for (V1Subject item : subjects) { + for (RbacV1Subject item : subjects) { this.addToSubjects(item); } } else { @@ -243,13 +255,13 @@ public A withSubjects(List subjects) { return (A) this; } - public A withSubjects(io.kubernetes.client.openapi.models.V1Subject... subjects) { + public A withSubjects(io.kubernetes.client.openapi.models.RbacV1Subject... subjects) { if (this.subjects != null) { this.subjects.clear(); _visitables.remove("subjects"); } if (subjects != null) { - for (V1Subject item : subjects) { + for (RbacV1Subject item : subjects) { this.addToSubjects(item); } } @@ -264,11 +276,11 @@ public SubjectsNested addNewSubject() { return new SubjectsNested(-1, null); } - public SubjectsNested addNewSubjectLike(V1Subject item) { + public SubjectsNested addNewSubjectLike(RbacV1Subject item) { return new SubjectsNested(-1, item); } - public SubjectsNested setNewSubjectLike(int index,V1Subject item) { + public SubjectsNested setNewSubjectLike(int index,RbacV1Subject item) { return new SubjectsNested(index, item); } @@ -288,7 +300,7 @@ public SubjectsNested editLastSubject() { return setNewSubjectLike(index, buildSubject(index)); } - public SubjectsNested editMatchingSubject(Predicate predicate) { + public SubjectsNested editMatchingSubject(Predicate predicate) { int index = -1; for (int i=0;i extends V1SubjectFluent> implements Nested{ - SubjectsNested(int index,V1Subject item) { + public class SubjectsNested extends RbacV1SubjectFluent> implements Nested{ + SubjectsNested(int index,RbacV1Subject item) { this.index = index; - this.builder = new V1SubjectBuilder(this, item); + this.builder = new RbacV1SubjectBuilder(this, item); } - V1SubjectBuilder builder; + RbacV1SubjectBuilder builder; int index; public N and() { diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ClusterRoleBindingListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ClusterRoleBindingListFluent.java index 512606fbe1..c78dd852d6 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ClusterRoleBindingListFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ClusterRoleBindingListFluent.java @@ -54,14 +54,26 @@ public boolean hasApiVersion() { public A addToItems(int index,V1ClusterRoleBinding item) { if (this.items == null) {this.items = new ArrayList();} V1ClusterRoleBindingBuilder builder = new V1ClusterRoleBindingBuilder(item); - if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); items.add(builder); } else { _visitables.get("items").add(index, builder); items.add(index, builder);} + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.add(index, builder); + } return (A)this; } public A setToItems(int index,V1ClusterRoleBinding item) { if (this.items == null) {this.items = new ArrayList();} V1ClusterRoleBindingBuilder builder = new V1ClusterRoleBindingBuilder(item); - if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); items.add(builder); } else { _visitables.get("items").set(index, builder); items.set(index, builder);} + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.set(index, builder); + } return (A)this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ClusterRoleFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ClusterRoleFluent.java index f74daa68fc..d46ff852ea 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ClusterRoleFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ClusterRoleFluent.java @@ -149,14 +149,26 @@ public MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { public A addToRules(int index,V1PolicyRule item) { if (this.rules == null) {this.rules = new ArrayList();} V1PolicyRuleBuilder builder = new V1PolicyRuleBuilder(item); - if (index < 0 || index >= rules.size()) { _visitables.get("rules").add(builder); rules.add(builder); } else { _visitables.get("rules").add(index, builder); rules.add(index, builder);} + if (index < 0 || index >= rules.size()) { + _visitables.get("rules").add(builder); + rules.add(builder); + } else { + _visitables.get("rules").add(builder); + rules.add(index, builder); + } return (A)this; } public A setToRules(int index,V1PolicyRule item) { if (this.rules == null) {this.rules = new ArrayList();} V1PolicyRuleBuilder builder = new V1PolicyRuleBuilder(item); - if (index < 0 || index >= rules.size()) { _visitables.get("rules").add(builder); rules.add(builder); } else { _visitables.get("rules").set(index, builder); rules.set(index, builder);} + if (index < 0 || index >= rules.size()) { + _visitables.get("rules").add(builder); + rules.add(builder); + } else { + _visitables.get("rules").add(builder); + rules.set(index, builder); + } return (A)this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ClusterRoleListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ClusterRoleListFluent.java index ff85a58d9e..5a3817bff3 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ClusterRoleListFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ClusterRoleListFluent.java @@ -54,14 +54,26 @@ public boolean hasApiVersion() { public A addToItems(int index,V1ClusterRole item) { if (this.items == null) {this.items = new ArrayList();} V1ClusterRoleBuilder builder = new V1ClusterRoleBuilder(item); - if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); items.add(builder); } else { _visitables.get("items").add(index, builder); items.add(index, builder);} + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.add(index, builder); + } return (A)this; } public A setToItems(int index,V1ClusterRole item) { if (this.items == null) {this.items = new ArrayList();} V1ClusterRoleBuilder builder = new V1ClusterRoleBuilder(item); - if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); items.add(builder); } else { _visitables.get("items").set(index, builder); items.set(index, builder);} + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.set(index, builder); + } return (A)this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ClusterTrustBundleProjectionBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ClusterTrustBundleProjectionBuilder.java new file mode 100644 index 0000000000..0d359a231f --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ClusterTrustBundleProjectionBuilder.java @@ -0,0 +1,35 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +public class V1ClusterTrustBundleProjectionBuilder extends V1ClusterTrustBundleProjectionFluent implements VisitableBuilder{ + public V1ClusterTrustBundleProjectionBuilder() { + this(new V1ClusterTrustBundleProjection()); + } + + public V1ClusterTrustBundleProjectionBuilder(V1ClusterTrustBundleProjectionFluent fluent) { + this(fluent, new V1ClusterTrustBundleProjection()); + } + + public V1ClusterTrustBundleProjectionBuilder(V1ClusterTrustBundleProjectionFluent fluent,V1ClusterTrustBundleProjection instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1ClusterTrustBundleProjectionBuilder(V1ClusterTrustBundleProjection instance) { + this.fluent = this; + this.copyInstance(instance); + } + V1ClusterTrustBundleProjectionFluent fluent; + + public V1ClusterTrustBundleProjection build() { + V1ClusterTrustBundleProjection buildable = new V1ClusterTrustBundleProjection(); + buildable.setLabelSelector(fluent.buildLabelSelector()); + buildable.setName(fluent.getName()); + buildable.setOptional(fluent.getOptional()); + buildable.setPath(fluent.getPath()); + buildable.setSignerName(fluent.getSignerName()); + return buildable; + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ClusterTrustBundleProjectionFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ClusterTrustBundleProjectionFluent.java new file mode 100644 index 0000000000..5fdc3effec --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ClusterTrustBundleProjectionFluent.java @@ -0,0 +1,179 @@ +package io.kubernetes.client.openapi.models; + +import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.Nested; +import java.lang.String; +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Object; +import java.lang.Boolean; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1ClusterTrustBundleProjectionFluent> extends BaseFluent{ + public V1ClusterTrustBundleProjectionFluent() { + } + + public V1ClusterTrustBundleProjectionFluent(V1ClusterTrustBundleProjection instance) { + this.copyInstance(instance); + } + private V1LabelSelectorBuilder labelSelector; + private String name; + private Boolean optional; + private String path; + private String signerName; + + protected void copyInstance(V1ClusterTrustBundleProjection instance) { + instance = (instance != null ? instance : new V1ClusterTrustBundleProjection()); + if (instance != null) { + this.withLabelSelector(instance.getLabelSelector()); + this.withName(instance.getName()); + this.withOptional(instance.getOptional()); + this.withPath(instance.getPath()); + this.withSignerName(instance.getSignerName()); + } + } + + public V1LabelSelector buildLabelSelector() { + return this.labelSelector != null ? this.labelSelector.build() : null; + } + + public A withLabelSelector(V1LabelSelector labelSelector) { + this._visitables.remove("labelSelector"); + if (labelSelector != null) { + this.labelSelector = new V1LabelSelectorBuilder(labelSelector); + this._visitables.get("labelSelector").add(this.labelSelector); + } else { + this.labelSelector = null; + this._visitables.get("labelSelector").remove(this.labelSelector); + } + return (A) this; + } + + public boolean hasLabelSelector() { + return this.labelSelector != null; + } + + public LabelSelectorNested withNewLabelSelector() { + return new LabelSelectorNested(null); + } + + public LabelSelectorNested withNewLabelSelectorLike(V1LabelSelector item) { + return new LabelSelectorNested(item); + } + + public LabelSelectorNested editLabelSelector() { + return withNewLabelSelectorLike(java.util.Optional.ofNullable(buildLabelSelector()).orElse(null)); + } + + public LabelSelectorNested editOrNewLabelSelector() { + return withNewLabelSelectorLike(java.util.Optional.ofNullable(buildLabelSelector()).orElse(new V1LabelSelectorBuilder().build())); + } + + public LabelSelectorNested editOrNewLabelSelectorLike(V1LabelSelector item) { + return withNewLabelSelectorLike(java.util.Optional.ofNullable(buildLabelSelector()).orElse(item)); + } + + public String getName() { + return this.name; + } + + public A withName(String name) { + this.name = name; + return (A) this; + } + + public boolean hasName() { + return this.name != null; + } + + public Boolean getOptional() { + return this.optional; + } + + public A withOptional(Boolean optional) { + this.optional = optional; + return (A) this; + } + + public boolean hasOptional() { + return this.optional != null; + } + + public String getPath() { + return this.path; + } + + public A withPath(String path) { + this.path = path; + return (A) this; + } + + public boolean hasPath() { + return this.path != null; + } + + public String getSignerName() { + return this.signerName; + } + + public A withSignerName(String signerName) { + this.signerName = signerName; + return (A) this; + } + + public boolean hasSignerName() { + return this.signerName != null; + } + + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + if (!super.equals(o)) return false; + V1ClusterTrustBundleProjectionFluent that = (V1ClusterTrustBundleProjectionFluent) o; + if (!java.util.Objects.equals(labelSelector, that.labelSelector)) return false; + if (!java.util.Objects.equals(name, that.name)) return false; + if (!java.util.Objects.equals(optional, that.optional)) return false; + if (!java.util.Objects.equals(path, that.path)) return false; + if (!java.util.Objects.equals(signerName, that.signerName)) return false; + return true; + } + + public int hashCode() { + return java.util.Objects.hash(labelSelector, name, optional, path, signerName, super.hashCode()); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (labelSelector != null) { sb.append("labelSelector:"); sb.append(labelSelector + ","); } + if (name != null) { sb.append("name:"); sb.append(name + ","); } + if (optional != null) { sb.append("optional:"); sb.append(optional + ","); } + if (path != null) { sb.append("path:"); sb.append(path + ","); } + if (signerName != null) { sb.append("signerName:"); sb.append(signerName); } + sb.append("}"); + return sb.toString(); + } + + public A withOptional() { + return withOptional(true); + } + public class LabelSelectorNested extends V1LabelSelectorFluent> implements Nested{ + LabelSelectorNested(V1LabelSelector item) { + this.builder = new V1LabelSelectorBuilder(this, item); + } + V1LabelSelectorBuilder builder; + + public N and() { + return (N) V1ClusterTrustBundleProjectionFluent.this.withLabelSelector(builder.build()); + } + + public N endLabelSelector() { + return and(); + } + + + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ComponentStatusFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ComponentStatusFluent.java index 7af8fbdcd3..37afe668ca 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ComponentStatusFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ComponentStatusFluent.java @@ -54,14 +54,26 @@ public boolean hasApiVersion() { public A addToConditions(int index,V1ComponentCondition item) { if (this.conditions == null) {this.conditions = new ArrayList();} V1ComponentConditionBuilder builder = new V1ComponentConditionBuilder(item); - if (index < 0 || index >= conditions.size()) { _visitables.get("conditions").add(builder); conditions.add(builder); } else { _visitables.get("conditions").add(index, builder); conditions.add(index, builder);} + if (index < 0 || index >= conditions.size()) { + _visitables.get("conditions").add(builder); + conditions.add(builder); + } else { + _visitables.get("conditions").add(builder); + conditions.add(index, builder); + } return (A)this; } public A setToConditions(int index,V1ComponentCondition item) { if (this.conditions == null) {this.conditions = new ArrayList();} V1ComponentConditionBuilder builder = new V1ComponentConditionBuilder(item); - if (index < 0 || index >= conditions.size()) { _visitables.get("conditions").add(builder); conditions.add(builder); } else { _visitables.get("conditions").set(index, builder); conditions.set(index, builder);} + if (index < 0 || index >= conditions.size()) { + _visitables.get("conditions").add(builder); + conditions.add(builder); + } else { + _visitables.get("conditions").add(builder); + conditions.set(index, builder); + } return (A)this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ComponentStatusListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ComponentStatusListFluent.java index 3ad99c611a..2b3dde4692 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ComponentStatusListFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ComponentStatusListFluent.java @@ -54,14 +54,26 @@ public boolean hasApiVersion() { public A addToItems(int index,V1ComponentStatus item) { if (this.items == null) {this.items = new ArrayList();} V1ComponentStatusBuilder builder = new V1ComponentStatusBuilder(item); - if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); items.add(builder); } else { _visitables.get("items").add(index, builder); items.add(index, builder);} + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.add(index, builder); + } return (A)this; } public A setToItems(int index,V1ComponentStatus item) { if (this.items == null) {this.items = new ArrayList();} V1ComponentStatusBuilder builder = new V1ComponentStatusBuilder(item); - if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); items.add(builder); } else { _visitables.get("items").set(index, builder); items.set(index, builder);} + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.set(index, builder); + } return (A)this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapListFluent.java index 4fddf5d3ef..b57b7107a5 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapListFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapListFluent.java @@ -54,14 +54,26 @@ public boolean hasApiVersion() { public A addToItems(int index,V1ConfigMap item) { if (this.items == null) {this.items = new ArrayList();} V1ConfigMapBuilder builder = new V1ConfigMapBuilder(item); - if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); items.add(builder); } else { _visitables.get("items").add(index, builder); items.add(index, builder);} + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.add(index, builder); + } return (A)this; } public A setToItems(int index,V1ConfigMap item) { if (this.items == null) {this.items = new ArrayList();} V1ConfigMapBuilder builder = new V1ConfigMapBuilder(item); - if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); items.add(builder); } else { _visitables.get("items").set(index, builder); items.set(index, builder);} + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.set(index, builder); + } return (A)this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapProjectionFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapProjectionFluent.java index 5ff77dea09..790ccebd72 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapProjectionFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapProjectionFluent.java @@ -40,14 +40,26 @@ protected void copyInstance(V1ConfigMapProjection instance) { public A addToItems(int index,V1KeyToPath item) { if (this.items == null) {this.items = new ArrayList();} V1KeyToPathBuilder builder = new V1KeyToPathBuilder(item); - if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); items.add(builder); } else { _visitables.get("items").add(index, builder); items.add(index, builder);} + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.add(index, builder); + } return (A)this; } public A setToItems(int index,V1KeyToPath item) { if (this.items == null) {this.items = new ArrayList();} V1KeyToPathBuilder builder = new V1KeyToPathBuilder(item); - if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); items.add(builder); } else { _visitables.get("items").set(index, builder); items.set(index, builder);} + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.set(index, builder); + } return (A)this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapVolumeSourceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapVolumeSourceFluent.java index 5d22844b80..24e3717a68 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapVolumeSourceFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapVolumeSourceFluent.java @@ -56,14 +56,26 @@ public boolean hasDefaultMode() { public A addToItems(int index,V1KeyToPath item) { if (this.items == null) {this.items = new ArrayList();} V1KeyToPathBuilder builder = new V1KeyToPathBuilder(item); - if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); items.add(builder); } else { _visitables.get("items").add(index, builder); items.add(index, builder);} + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.add(index, builder); + } return (A)this; } public A setToItems(int index,V1KeyToPath item) { if (this.items == null) {this.items = new ArrayList();} V1KeyToPathBuilder builder = new V1KeyToPathBuilder(item); - if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); items.add(builder); } else { _visitables.get("items").set(index, builder); items.set(index, builder);} + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.set(index, builder); + } return (A)this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerFluent.java index 09339e3a03..4f9eeb9558 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerFluent.java @@ -270,14 +270,26 @@ public boolean hasCommand() { public A addToEnv(int index,V1EnvVar item) { if (this.env == null) {this.env = new ArrayList();} V1EnvVarBuilder builder = new V1EnvVarBuilder(item); - if (index < 0 || index >= env.size()) { _visitables.get("env").add(builder); env.add(builder); } else { _visitables.get("env").add(index, builder); env.add(index, builder);} + if (index < 0 || index >= env.size()) { + _visitables.get("env").add(builder); + env.add(builder); + } else { + _visitables.get("env").add(builder); + env.add(index, builder); + } return (A)this; } public A setToEnv(int index,V1EnvVar item) { if (this.env == null) {this.env = new ArrayList();} V1EnvVarBuilder builder = new V1EnvVarBuilder(item); - if (index < 0 || index >= env.size()) { _visitables.get("env").add(builder); env.add(builder); } else { _visitables.get("env").set(index, builder); env.set(index, builder);} + if (index < 0 || index >= env.size()) { + _visitables.get("env").add(builder); + env.add(builder); + } else { + _visitables.get("env").add(builder); + env.set(index, builder); + } return (A)this; } @@ -421,14 +433,26 @@ public EnvNested editMatchingEnv(Predicate predicate) { public A addToEnvFrom(int index,V1EnvFromSource item) { if (this.envFrom == null) {this.envFrom = new ArrayList();} V1EnvFromSourceBuilder builder = new V1EnvFromSourceBuilder(item); - if (index < 0 || index >= envFrom.size()) { _visitables.get("envFrom").add(builder); envFrom.add(builder); } else { _visitables.get("envFrom").add(index, builder); envFrom.add(index, builder);} + if (index < 0 || index >= envFrom.size()) { + _visitables.get("envFrom").add(builder); + envFrom.add(builder); + } else { + _visitables.get("envFrom").add(builder); + envFrom.add(index, builder); + } return (A)this; } public A setToEnvFrom(int index,V1EnvFromSource item) { if (this.envFrom == null) {this.envFrom = new ArrayList();} V1EnvFromSourceBuilder builder = new V1EnvFromSourceBuilder(item); - if (index < 0 || index >= envFrom.size()) { _visitables.get("envFrom").add(builder); envFrom.add(builder); } else { _visitables.get("envFrom").set(index, builder); envFrom.set(index, builder);} + if (index < 0 || index >= envFrom.size()) { + _visitables.get("envFrom").add(builder); + envFrom.add(builder); + } else { + _visitables.get("envFrom").add(builder); + envFrom.set(index, builder); + } return (A)this; } @@ -691,14 +715,26 @@ public boolean hasName() { public A addToPorts(int index,V1ContainerPort item) { if (this.ports == null) {this.ports = new ArrayList();} V1ContainerPortBuilder builder = new V1ContainerPortBuilder(item); - if (index < 0 || index >= ports.size()) { _visitables.get("ports").add(builder); ports.add(builder); } else { _visitables.get("ports").add(index, builder); ports.add(index, builder);} + if (index < 0 || index >= ports.size()) { + _visitables.get("ports").add(builder); + ports.add(builder); + } else { + _visitables.get("ports").add(builder); + ports.add(index, builder); + } return (A)this; } public A setToPorts(int index,V1ContainerPort item) { if (this.ports == null) {this.ports = new ArrayList();} V1ContainerPortBuilder builder = new V1ContainerPortBuilder(item); - if (index < 0 || index >= ports.size()) { _visitables.get("ports").add(builder); ports.add(builder); } else { _visitables.get("ports").set(index, builder); ports.set(index, builder);} + if (index < 0 || index >= ports.size()) { + _visitables.get("ports").add(builder); + ports.add(builder); + } else { + _visitables.get("ports").add(builder); + ports.set(index, builder); + } return (A)this; } @@ -882,14 +918,26 @@ public ReadinessProbeNested editOrNewReadinessProbeLike(V1Probe item) { public A addToResizePolicy(int index,V1ContainerResizePolicy item) { if (this.resizePolicy == null) {this.resizePolicy = new ArrayList();} V1ContainerResizePolicyBuilder builder = new V1ContainerResizePolicyBuilder(item); - if (index < 0 || index >= resizePolicy.size()) { _visitables.get("resizePolicy").add(builder); resizePolicy.add(builder); } else { _visitables.get("resizePolicy").add(index, builder); resizePolicy.add(index, builder);} + if (index < 0 || index >= resizePolicy.size()) { + _visitables.get("resizePolicy").add(builder); + resizePolicy.add(builder); + } else { + _visitables.get("resizePolicy").add(builder); + resizePolicy.add(index, builder); + } return (A)this; } public A setToResizePolicy(int index,V1ContainerResizePolicy item) { if (this.resizePolicy == null) {this.resizePolicy = new ArrayList();} V1ContainerResizePolicyBuilder builder = new V1ContainerResizePolicyBuilder(item); - if (index < 0 || index >= resizePolicy.size()) { _visitables.get("resizePolicy").add(builder); resizePolicy.add(builder); } else { _visitables.get("resizePolicy").set(index, builder); resizePolicy.set(index, builder);} + if (index < 0 || index >= resizePolicy.size()) { + _visitables.get("resizePolicy").add(builder); + resizePolicy.add(builder); + } else { + _visitables.get("resizePolicy").add(builder); + resizePolicy.set(index, builder); + } return (A)this; } @@ -1231,14 +1279,26 @@ public boolean hasTty() { public A addToVolumeDevices(int index,V1VolumeDevice item) { if (this.volumeDevices == null) {this.volumeDevices = new ArrayList();} V1VolumeDeviceBuilder builder = new V1VolumeDeviceBuilder(item); - if (index < 0 || index >= volumeDevices.size()) { _visitables.get("volumeDevices").add(builder); volumeDevices.add(builder); } else { _visitables.get("volumeDevices").add(index, builder); volumeDevices.add(index, builder);} + if (index < 0 || index >= volumeDevices.size()) { + _visitables.get("volumeDevices").add(builder); + volumeDevices.add(builder); + } else { + _visitables.get("volumeDevices").add(builder); + volumeDevices.add(index, builder); + } return (A)this; } public A setToVolumeDevices(int index,V1VolumeDevice item) { if (this.volumeDevices == null) {this.volumeDevices = new ArrayList();} V1VolumeDeviceBuilder builder = new V1VolumeDeviceBuilder(item); - if (index < 0 || index >= volumeDevices.size()) { _visitables.get("volumeDevices").add(builder); volumeDevices.add(builder); } else { _visitables.get("volumeDevices").set(index, builder); volumeDevices.set(index, builder);} + if (index < 0 || index >= volumeDevices.size()) { + _visitables.get("volumeDevices").add(builder); + volumeDevices.add(builder); + } else { + _visitables.get("volumeDevices").add(builder); + volumeDevices.set(index, builder); + } return (A)this; } @@ -1382,14 +1442,26 @@ public VolumeDevicesNested editMatchingVolumeDevice(Predicate();} V1VolumeMountBuilder builder = new V1VolumeMountBuilder(item); - if (index < 0 || index >= volumeMounts.size()) { _visitables.get("volumeMounts").add(builder); volumeMounts.add(builder); } else { _visitables.get("volumeMounts").add(index, builder); volumeMounts.add(index, builder);} + if (index < 0 || index >= volumeMounts.size()) { + _visitables.get("volumeMounts").add(builder); + volumeMounts.add(builder); + } else { + _visitables.get("volumeMounts").add(builder); + volumeMounts.add(index, builder); + } return (A)this; } public A setToVolumeMounts(int index,V1VolumeMount item) { if (this.volumeMounts == null) {this.volumeMounts = new ArrayList();} V1VolumeMountBuilder builder = new V1VolumeMountBuilder(item); - if (index < 0 || index >= volumeMounts.size()) { _visitables.get("volumeMounts").add(builder); volumeMounts.add(builder); } else { _visitables.get("volumeMounts").set(index, builder); volumeMounts.set(index, builder);} + if (index < 0 || index >= volumeMounts.size()) { + _visitables.get("volumeMounts").add(builder); + volumeMounts.add(builder); + } else { + _visitables.get("volumeMounts").add(builder); + volumeMounts.set(index, builder); + } return (A)this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerStatusBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerStatusBuilder.java index 2443c60dc5..4d45d1c1b3 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerStatusBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerStatusBuilder.java @@ -24,6 +24,7 @@ public V1ContainerStatusBuilder(V1ContainerStatus instance) { public V1ContainerStatus build() { V1ContainerStatus buildable = new V1ContainerStatus(); buildable.setAllocatedResources(fluent.getAllocatedResources()); + buildable.setAllocatedResourcesStatus(fluent.buildAllocatedResourcesStatus()); buildable.setContainerID(fluent.getContainerID()); buildable.setImage(fluent.getImage()); buildable.setImageID(fluent.getImageID()); @@ -34,6 +35,9 @@ public V1ContainerStatus build() { buildable.setRestartCount(fluent.getRestartCount()); buildable.setStarted(fluent.getStarted()); buildable.setState(fluent.buildState()); + buildable.setStopSignal(fluent.getStopSignal()); + buildable.setUser(fluent.buildUser()); + buildable.setVolumeMounts(fluent.buildVolumeMounts()); return buildable; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerStatusFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerStatusFluent.java index e5ff1ef278..6a3ceaad8d 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerStatusFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerStatusFluent.java @@ -1,14 +1,20 @@ package io.kubernetes.client.openapi.models; +import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; -import io.kubernetes.client.custom.Quantity; +import java.util.ArrayList; import java.lang.String; import java.util.LinkedHashMap; -import java.lang.Integer; +import java.util.function.Predicate; import io.kubernetes.client.fluent.BaseFluent; -import java.lang.Object; +import java.util.Iterator; +import java.util.List; import java.lang.Boolean; +import io.kubernetes.client.custom.Quantity; +import java.lang.Integer; +import java.util.Collection; +import java.lang.Object; import java.util.Map; /** @@ -23,6 +29,7 @@ public V1ContainerStatusFluent(V1ContainerStatus instance) { this.copyInstance(instance); } private Map allocatedResources; + private ArrayList allocatedResourcesStatus; private String containerID; private String image; private String imageID; @@ -33,11 +40,15 @@ public V1ContainerStatusFluent(V1ContainerStatus instance) { private Integer restartCount; private Boolean started; private V1ContainerStateBuilder state; + private String stopSignal; + private V1ContainerUserBuilder user; + private ArrayList volumeMounts; protected void copyInstance(V1ContainerStatus instance) { instance = (instance != null ? instance : new V1ContainerStatus()); if (instance != null) { this.withAllocatedResources(instance.getAllocatedResources()); + this.withAllocatedResourcesStatus(instance.getAllocatedResourcesStatus()); this.withContainerID(instance.getContainerID()); this.withImage(instance.getImage()); this.withImageID(instance.getImageID()); @@ -48,6 +59,9 @@ protected void copyInstance(V1ContainerStatus instance) { this.withRestartCount(instance.getRestartCount()); this.withStarted(instance.getStarted()); this.withState(instance.getState()); + this.withStopSignal(instance.getStopSignal()); + this.withUser(instance.getUser()); + this.withVolumeMounts(instance.getVolumeMounts()); } } @@ -88,6 +102,169 @@ public boolean hasAllocatedResources() { return this.allocatedResources != null; } + public A addToAllocatedResourcesStatus(int index,V1ResourceStatus item) { + if (this.allocatedResourcesStatus == null) {this.allocatedResourcesStatus = new ArrayList();} + V1ResourceStatusBuilder builder = new V1ResourceStatusBuilder(item); + if (index < 0 || index >= allocatedResourcesStatus.size()) { + _visitables.get("allocatedResourcesStatus").add(builder); + allocatedResourcesStatus.add(builder); + } else { + _visitables.get("allocatedResourcesStatus").add(builder); + allocatedResourcesStatus.add(index, builder); + } + return (A)this; + } + + public A setToAllocatedResourcesStatus(int index,V1ResourceStatus item) { + if (this.allocatedResourcesStatus == null) {this.allocatedResourcesStatus = new ArrayList();} + V1ResourceStatusBuilder builder = new V1ResourceStatusBuilder(item); + if (index < 0 || index >= allocatedResourcesStatus.size()) { + _visitables.get("allocatedResourcesStatus").add(builder); + allocatedResourcesStatus.add(builder); + } else { + _visitables.get("allocatedResourcesStatus").add(builder); + allocatedResourcesStatus.set(index, builder); + } + return (A)this; + } + + public A addToAllocatedResourcesStatus(io.kubernetes.client.openapi.models.V1ResourceStatus... items) { + if (this.allocatedResourcesStatus == null) {this.allocatedResourcesStatus = new ArrayList();} + for (V1ResourceStatus item : items) {V1ResourceStatusBuilder builder = new V1ResourceStatusBuilder(item);_visitables.get("allocatedResourcesStatus").add(builder);this.allocatedResourcesStatus.add(builder);} return (A)this; + } + + public A addAllToAllocatedResourcesStatus(Collection items) { + if (this.allocatedResourcesStatus == null) {this.allocatedResourcesStatus = new ArrayList();} + for (V1ResourceStatus item : items) {V1ResourceStatusBuilder builder = new V1ResourceStatusBuilder(item);_visitables.get("allocatedResourcesStatus").add(builder);this.allocatedResourcesStatus.add(builder);} return (A)this; + } + + public A removeFromAllocatedResourcesStatus(io.kubernetes.client.openapi.models.V1ResourceStatus... items) { + if (this.allocatedResourcesStatus == null) return (A)this; + for (V1ResourceStatus item : items) {V1ResourceStatusBuilder builder = new V1ResourceStatusBuilder(item);_visitables.get("allocatedResourcesStatus").remove(builder); this.allocatedResourcesStatus.remove(builder);} return (A)this; + } + + public A removeAllFromAllocatedResourcesStatus(Collection items) { + if (this.allocatedResourcesStatus == null) return (A)this; + for (V1ResourceStatus item : items) {V1ResourceStatusBuilder builder = new V1ResourceStatusBuilder(item);_visitables.get("allocatedResourcesStatus").remove(builder); this.allocatedResourcesStatus.remove(builder);} return (A)this; + } + + public A removeMatchingFromAllocatedResourcesStatus(Predicate predicate) { + if (allocatedResourcesStatus == null) return (A) this; + final Iterator each = allocatedResourcesStatus.iterator(); + final List visitables = _visitables.get("allocatedResourcesStatus"); + while (each.hasNext()) { + V1ResourceStatusBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A)this; + } + + public List buildAllocatedResourcesStatus() { + return this.allocatedResourcesStatus != null ? build(allocatedResourcesStatus) : null; + } + + public V1ResourceStatus buildAllocatedResourcesStatus(int index) { + return this.allocatedResourcesStatus.get(index).build(); + } + + public V1ResourceStatus buildFirstAllocatedResourcesStatus() { + return this.allocatedResourcesStatus.get(0).build(); + } + + public V1ResourceStatus buildLastAllocatedResourcesStatus() { + return this.allocatedResourcesStatus.get(allocatedResourcesStatus.size() - 1).build(); + } + + public V1ResourceStatus buildMatchingAllocatedResourcesStatus(Predicate predicate) { + for (V1ResourceStatusBuilder item : allocatedResourcesStatus) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; + } + + public boolean hasMatchingAllocatedResourcesStatus(Predicate predicate) { + for (V1ResourceStatusBuilder item : allocatedResourcesStatus) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public A withAllocatedResourcesStatus(List allocatedResourcesStatus) { + if (this.allocatedResourcesStatus != null) { + this._visitables.get("allocatedResourcesStatus").clear(); + } + if (allocatedResourcesStatus != null) { + this.allocatedResourcesStatus = new ArrayList(); + for (V1ResourceStatus item : allocatedResourcesStatus) { + this.addToAllocatedResourcesStatus(item); + } + } else { + this.allocatedResourcesStatus = null; + } + return (A) this; + } + + public A withAllocatedResourcesStatus(io.kubernetes.client.openapi.models.V1ResourceStatus... allocatedResourcesStatus) { + if (this.allocatedResourcesStatus != null) { + this.allocatedResourcesStatus.clear(); + _visitables.remove("allocatedResourcesStatus"); + } + if (allocatedResourcesStatus != null) { + for (V1ResourceStatus item : allocatedResourcesStatus) { + this.addToAllocatedResourcesStatus(item); + } + } + return (A) this; + } + + public boolean hasAllocatedResourcesStatus() { + return this.allocatedResourcesStatus != null && !this.allocatedResourcesStatus.isEmpty(); + } + + public AllocatedResourcesStatusNested addNewAllocatedResourcesStatus() { + return new AllocatedResourcesStatusNested(-1, null); + } + + public AllocatedResourcesStatusNested addNewAllocatedResourcesStatusLike(V1ResourceStatus item) { + return new AllocatedResourcesStatusNested(-1, item); + } + + public AllocatedResourcesStatusNested setNewAllocatedResourcesStatusLike(int index,V1ResourceStatus item) { + return new AllocatedResourcesStatusNested(index, item); + } + + public AllocatedResourcesStatusNested editAllocatedResourcesStatus(int index) { + if (allocatedResourcesStatus.size() <= index) throw new RuntimeException("Can't edit allocatedResourcesStatus. Index exceeds size."); + return setNewAllocatedResourcesStatusLike(index, buildAllocatedResourcesStatus(index)); + } + + public AllocatedResourcesStatusNested editFirstAllocatedResourcesStatus() { + if (allocatedResourcesStatus.size() == 0) throw new RuntimeException("Can't edit first allocatedResourcesStatus. The list is empty."); + return setNewAllocatedResourcesStatusLike(0, buildAllocatedResourcesStatus(0)); + } + + public AllocatedResourcesStatusNested editLastAllocatedResourcesStatus() { + int index = allocatedResourcesStatus.size() - 1; + if (index < 0) throw new RuntimeException("Can't edit last allocatedResourcesStatus. The list is empty."); + return setNewAllocatedResourcesStatusLike(index, buildAllocatedResourcesStatus(index)); + } + + public AllocatedResourcesStatusNested editMatchingAllocatedResourcesStatus(Predicate predicate) { + int index = -1; + for (int i=0;i editOrNewStateLike(V1ContainerState item) { return withNewStateLike(java.util.Optional.ofNullable(buildState()).orElse(item)); } + public String getStopSignal() { + return this.stopSignal; + } + + public A withStopSignal(String stopSignal) { + this.stopSignal = stopSignal; + return (A) this; + } + + public boolean hasStopSignal() { + return this.stopSignal != null; + } + + public V1ContainerUser buildUser() { + return this.user != null ? this.user.build() : null; + } + + public A withUser(V1ContainerUser user) { + this._visitables.remove("user"); + if (user != null) { + this.user = new V1ContainerUserBuilder(user); + this._visitables.get("user").add(this.user); + } else { + this.user = null; + this._visitables.get("user").remove(this.user); + } + return (A) this; + } + + public boolean hasUser() { + return this.user != null; + } + + public UserNested withNewUser() { + return new UserNested(null); + } + + public UserNested withNewUserLike(V1ContainerUser item) { + return new UserNested(item); + } + + public UserNested editUser() { + return withNewUserLike(java.util.Optional.ofNullable(buildUser()).orElse(null)); + } + + public UserNested editOrNewUser() { + return withNewUserLike(java.util.Optional.ofNullable(buildUser()).orElse(new V1ContainerUserBuilder().build())); + } + + public UserNested editOrNewUserLike(V1ContainerUser item) { + return withNewUserLike(java.util.Optional.ofNullable(buildUser()).orElse(item)); + } + + public A addToVolumeMounts(int index,V1VolumeMountStatus item) { + if (this.volumeMounts == null) {this.volumeMounts = new ArrayList();} + V1VolumeMountStatusBuilder builder = new V1VolumeMountStatusBuilder(item); + if (index < 0 || index >= volumeMounts.size()) { + _visitables.get("volumeMounts").add(builder); + volumeMounts.add(builder); + } else { + _visitables.get("volumeMounts").add(builder); + volumeMounts.add(index, builder); + } + return (A)this; + } + + public A setToVolumeMounts(int index,V1VolumeMountStatus item) { + if (this.volumeMounts == null) {this.volumeMounts = new ArrayList();} + V1VolumeMountStatusBuilder builder = new V1VolumeMountStatusBuilder(item); + if (index < 0 || index >= volumeMounts.size()) { + _visitables.get("volumeMounts").add(builder); + volumeMounts.add(builder); + } else { + _visitables.get("volumeMounts").add(builder); + volumeMounts.set(index, builder); + } + return (A)this; + } + + public A addToVolumeMounts(io.kubernetes.client.openapi.models.V1VolumeMountStatus... items) { + if (this.volumeMounts == null) {this.volumeMounts = new ArrayList();} + for (V1VolumeMountStatus item : items) {V1VolumeMountStatusBuilder builder = new V1VolumeMountStatusBuilder(item);_visitables.get("volumeMounts").add(builder);this.volumeMounts.add(builder);} return (A)this; + } + + public A addAllToVolumeMounts(Collection items) { + if (this.volumeMounts == null) {this.volumeMounts = new ArrayList();} + for (V1VolumeMountStatus item : items) {V1VolumeMountStatusBuilder builder = new V1VolumeMountStatusBuilder(item);_visitables.get("volumeMounts").add(builder);this.volumeMounts.add(builder);} return (A)this; + } + + public A removeFromVolumeMounts(io.kubernetes.client.openapi.models.V1VolumeMountStatus... items) { + if (this.volumeMounts == null) return (A)this; + for (V1VolumeMountStatus item : items) {V1VolumeMountStatusBuilder builder = new V1VolumeMountStatusBuilder(item);_visitables.get("volumeMounts").remove(builder); this.volumeMounts.remove(builder);} return (A)this; + } + + public A removeAllFromVolumeMounts(Collection items) { + if (this.volumeMounts == null) return (A)this; + for (V1VolumeMountStatus item : items) {V1VolumeMountStatusBuilder builder = new V1VolumeMountStatusBuilder(item);_visitables.get("volumeMounts").remove(builder); this.volumeMounts.remove(builder);} return (A)this; + } + + public A removeMatchingFromVolumeMounts(Predicate predicate) { + if (volumeMounts == null) return (A) this; + final Iterator each = volumeMounts.iterator(); + final List visitables = _visitables.get("volumeMounts"); + while (each.hasNext()) { + V1VolumeMountStatusBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A)this; + } + + public List buildVolumeMounts() { + return this.volumeMounts != null ? build(volumeMounts) : null; + } + + public V1VolumeMountStatus buildVolumeMount(int index) { + return this.volumeMounts.get(index).build(); + } + + public V1VolumeMountStatus buildFirstVolumeMount() { + return this.volumeMounts.get(0).build(); + } + + public V1VolumeMountStatus buildLastVolumeMount() { + return this.volumeMounts.get(volumeMounts.size() - 1).build(); + } + + public V1VolumeMountStatus buildMatchingVolumeMount(Predicate predicate) { + for (V1VolumeMountStatusBuilder item : volumeMounts) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; + } + + public boolean hasMatchingVolumeMount(Predicate predicate) { + for (V1VolumeMountStatusBuilder item : volumeMounts) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public A withVolumeMounts(List volumeMounts) { + if (this.volumeMounts != null) { + this._visitables.get("volumeMounts").clear(); + } + if (volumeMounts != null) { + this.volumeMounts = new ArrayList(); + for (V1VolumeMountStatus item : volumeMounts) { + this.addToVolumeMounts(item); + } + } else { + this.volumeMounts = null; + } + return (A) this; + } + + public A withVolumeMounts(io.kubernetes.client.openapi.models.V1VolumeMountStatus... volumeMounts) { + if (this.volumeMounts != null) { + this.volumeMounts.clear(); + _visitables.remove("volumeMounts"); + } + if (volumeMounts != null) { + for (V1VolumeMountStatus item : volumeMounts) { + this.addToVolumeMounts(item); + } + } + return (A) this; + } + + public boolean hasVolumeMounts() { + return this.volumeMounts != null && !this.volumeMounts.isEmpty(); + } + + public VolumeMountsNested addNewVolumeMount() { + return new VolumeMountsNested(-1, null); + } + + public VolumeMountsNested addNewVolumeMountLike(V1VolumeMountStatus item) { + return new VolumeMountsNested(-1, item); + } + + public VolumeMountsNested setNewVolumeMountLike(int index,V1VolumeMountStatus item) { + return new VolumeMountsNested(index, item); + } + + public VolumeMountsNested editVolumeMount(int index) { + if (volumeMounts.size() <= index) throw new RuntimeException("Can't edit volumeMounts. Index exceeds size."); + return setNewVolumeMountLike(index, buildVolumeMount(index)); + } + + public VolumeMountsNested editFirstVolumeMount() { + if (volumeMounts.size() == 0) throw new RuntimeException("Can't edit first volumeMounts. The list is empty."); + return setNewVolumeMountLike(0, buildVolumeMount(0)); + } + + public VolumeMountsNested editLastVolumeMount() { + int index = volumeMounts.size() - 1; + if (index < 0) throw new RuntimeException("Can't edit last volumeMounts. The list is empty."); + return setNewVolumeMountLike(index, buildVolumeMount(index)); + } + + public VolumeMountsNested editMatchingVolumeMount(Predicate predicate) { + int index = -1; + for (int i=0;i extends V1ResourceStatusFluent> implements Nested{ + AllocatedResourcesStatusNested(int index,V1ResourceStatus item) { + this.index = index; + this.builder = new V1ResourceStatusBuilder(this, item); + } + V1ResourceStatusBuilder builder; + int index; + + public N and() { + return (N) V1ContainerStatusFluent.this.setToAllocatedResourcesStatus(index,builder.build()); + } + + public N endAllocatedResourcesStatus() { + return and(); + } + + } public class LastStateNested extends V1ContainerStateFluent> implements Nested{ LastStateNested(V1ContainerState item) { @@ -394,6 +813,40 @@ public N endState() { } + } + public class UserNested extends V1ContainerUserFluent> implements Nested{ + UserNested(V1ContainerUser item) { + this.builder = new V1ContainerUserBuilder(this, item); + } + V1ContainerUserBuilder builder; + + public N and() { + return (N) V1ContainerStatusFluent.this.withUser(builder.build()); + } + + public N endUser() { + return and(); + } + + + } + public class VolumeMountsNested extends V1VolumeMountStatusFluent> implements Nested{ + VolumeMountsNested(int index,V1VolumeMountStatus item) { + this.index = index; + this.builder = new V1VolumeMountStatusBuilder(this, item); + } + V1VolumeMountStatusBuilder builder; + int index; + + public N and() { + return (N) V1ContainerStatusFluent.this.setToVolumeMounts(index,builder.build()); + } + + public N endVolumeMount() { + return and(); + } + + } } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerUserBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerUserBuilder.java new file mode 100644 index 0000000000..02099ff499 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerUserBuilder.java @@ -0,0 +1,31 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +public class V1ContainerUserBuilder extends V1ContainerUserFluent implements VisitableBuilder{ + public V1ContainerUserBuilder() { + this(new V1ContainerUser()); + } + + public V1ContainerUserBuilder(V1ContainerUserFluent fluent) { + this(fluent, new V1ContainerUser()); + } + + public V1ContainerUserBuilder(V1ContainerUserFluent fluent,V1ContainerUser instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1ContainerUserBuilder(V1ContainerUser instance) { + this.fluent = this; + this.copyInstance(instance); + } + V1ContainerUserFluent fluent; + + public V1ContainerUser build() { + V1ContainerUser buildable = new V1ContainerUser(); + buildable.setLinux(fluent.buildLinux()); + return buildable; + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerUserFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerUserFluent.java new file mode 100644 index 0000000000..548c27eb76 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerUserFluent.java @@ -0,0 +1,106 @@ +package io.kubernetes.client.openapi.models; + +import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Object; +import java.lang.String; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1ContainerUserFluent> extends BaseFluent{ + public V1ContainerUserFluent() { + } + + public V1ContainerUserFluent(V1ContainerUser instance) { + this.copyInstance(instance); + } + private V1LinuxContainerUserBuilder linux; + + protected void copyInstance(V1ContainerUser instance) { + instance = (instance != null ? instance : new V1ContainerUser()); + if (instance != null) { + this.withLinux(instance.getLinux()); + } + } + + public V1LinuxContainerUser buildLinux() { + return this.linux != null ? this.linux.build() : null; + } + + public A withLinux(V1LinuxContainerUser linux) { + this._visitables.remove("linux"); + if (linux != null) { + this.linux = new V1LinuxContainerUserBuilder(linux); + this._visitables.get("linux").add(this.linux); + } else { + this.linux = null; + this._visitables.get("linux").remove(this.linux); + } + return (A) this; + } + + public boolean hasLinux() { + return this.linux != null; + } + + public LinuxNested withNewLinux() { + return new LinuxNested(null); + } + + public LinuxNested withNewLinuxLike(V1LinuxContainerUser item) { + return new LinuxNested(item); + } + + public LinuxNested editLinux() { + return withNewLinuxLike(java.util.Optional.ofNullable(buildLinux()).orElse(null)); + } + + public LinuxNested editOrNewLinux() { + return withNewLinuxLike(java.util.Optional.ofNullable(buildLinux()).orElse(new V1LinuxContainerUserBuilder().build())); + } + + public LinuxNested editOrNewLinuxLike(V1LinuxContainerUser item) { + return withNewLinuxLike(java.util.Optional.ofNullable(buildLinux()).orElse(item)); + } + + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + if (!super.equals(o)) return false; + V1ContainerUserFluent that = (V1ContainerUserFluent) o; + if (!java.util.Objects.equals(linux, that.linux)) return false; + return true; + } + + public int hashCode() { + return java.util.Objects.hash(linux, super.hashCode()); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (linux != null) { sb.append("linux:"); sb.append(linux); } + sb.append("}"); + return sb.toString(); + } + public class LinuxNested extends V1LinuxContainerUserFluent> implements Nested{ + LinuxNested(V1LinuxContainerUser item) { + this.builder = new V1LinuxContainerUserBuilder(this, item); + } + V1LinuxContainerUserBuilder builder; + + public N and() { + return (N) V1ContainerUserFluent.this.withLinux(builder.build()); + } + + public N endLinux() { + return and(); + } + + + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ControllerRevisionListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ControllerRevisionListFluent.java index b36e63d7af..056e791efe 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ControllerRevisionListFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ControllerRevisionListFluent.java @@ -54,14 +54,26 @@ public boolean hasApiVersion() { public A addToItems(int index,V1ControllerRevision item) { if (this.items == null) {this.items = new ArrayList();} V1ControllerRevisionBuilder builder = new V1ControllerRevisionBuilder(item); - if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); items.add(builder); } else { _visitables.get("items").add(index, builder); items.add(index, builder);} + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.add(index, builder); + } return (A)this; } public A setToItems(int index,V1ControllerRevision item) { if (this.items == null) {this.items = new ArrayList();} V1ControllerRevisionBuilder builder = new V1ControllerRevisionBuilder(item); - if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); items.add(builder); } else { _visitables.get("items").set(index, builder); items.set(index, builder);} + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.set(index, builder); + } return (A)this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CronJobListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CronJobListFluent.java index 9773ba7050..888611c026 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CronJobListFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CronJobListFluent.java @@ -54,14 +54,26 @@ public boolean hasApiVersion() { public A addToItems(int index,V1CronJob item) { if (this.items == null) {this.items = new ArrayList();} V1CronJobBuilder builder = new V1CronJobBuilder(item); - if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); items.add(builder); } else { _visitables.get("items").add(index, builder); items.add(index, builder);} + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.add(index, builder); + } return (A)this; } public A setToItems(int index,V1CronJob item) { if (this.items == null) {this.items = new ArrayList();} V1CronJobBuilder builder = new V1CronJobBuilder(item); - if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); items.add(builder); } else { _visitables.get("items").set(index, builder); items.set(index, builder);} + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.set(index, builder); + } return (A)this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CronJobStatusFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CronJobStatusFluent.java index c2fc48c96d..24d43de8fc 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CronJobStatusFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CronJobStatusFluent.java @@ -40,14 +40,26 @@ protected void copyInstance(V1CronJobStatus instance) { public A addToActive(int index,V1ObjectReference item) { if (this.active == null) {this.active = new ArrayList();} V1ObjectReferenceBuilder builder = new V1ObjectReferenceBuilder(item); - if (index < 0 || index >= active.size()) { _visitables.get("active").add(builder); active.add(builder); } else { _visitables.get("active").add(index, builder); active.add(index, builder);} + if (index < 0 || index >= active.size()) { + _visitables.get("active").add(builder); + active.add(builder); + } else { + _visitables.get("active").add(builder); + active.add(index, builder); + } return (A)this; } public A setToActive(int index,V1ObjectReference item) { if (this.active == null) {this.active = new ArrayList();} V1ObjectReferenceBuilder builder = new V1ObjectReferenceBuilder(item); - if (index < 0 || index >= active.size()) { _visitables.get("active").add(builder); active.add(builder); } else { _visitables.get("active").set(index, builder); active.set(index, builder);} + if (index < 0 || index >= active.size()) { + _visitables.get("active").add(builder); + active.add(builder); + } else { + _visitables.get("active").add(builder); + active.set(index, builder); + } return (A)this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionListFluent.java index aff849500f..adac11c26c 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionListFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionListFluent.java @@ -54,14 +54,26 @@ public boolean hasApiVersion() { public A addToItems(int index,V1CustomResourceDefinition item) { if (this.items == null) {this.items = new ArrayList();} V1CustomResourceDefinitionBuilder builder = new V1CustomResourceDefinitionBuilder(item); - if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); items.add(builder); } else { _visitables.get("items").add(index, builder); items.add(index, builder);} + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.add(index, builder); + } return (A)this; } public A setToItems(int index,V1CustomResourceDefinition item) { if (this.items == null) {this.items = new ArrayList();} V1CustomResourceDefinitionBuilder builder = new V1CustomResourceDefinitionBuilder(item); - if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); items.add(builder); } else { _visitables.get("items").set(index, builder); items.set(index, builder);} + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.set(index, builder); + } return (A)this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionSpecFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionSpecFluent.java index ac19ae4b7c..1c96eea495 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionSpecFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionSpecFluent.java @@ -165,14 +165,26 @@ public boolean hasScope() { public A addToVersions(int index,V1CustomResourceDefinitionVersion item) { if (this.versions == null) {this.versions = new ArrayList();} V1CustomResourceDefinitionVersionBuilder builder = new V1CustomResourceDefinitionVersionBuilder(item); - if (index < 0 || index >= versions.size()) { _visitables.get("versions").add(builder); versions.add(builder); } else { _visitables.get("versions").add(index, builder); versions.add(index, builder);} + if (index < 0 || index >= versions.size()) { + _visitables.get("versions").add(builder); + versions.add(builder); + } else { + _visitables.get("versions").add(builder); + versions.add(index, builder); + } return (A)this; } public A setToVersions(int index,V1CustomResourceDefinitionVersion item) { if (this.versions == null) {this.versions = new ArrayList();} V1CustomResourceDefinitionVersionBuilder builder = new V1CustomResourceDefinitionVersionBuilder(item); - if (index < 0 || index >= versions.size()) { _visitables.get("versions").add(builder); versions.add(builder); } else { _visitables.get("versions").set(index, builder); versions.set(index, builder);} + if (index < 0 || index >= versions.size()) { + _visitables.get("versions").add(builder); + versions.add(builder); + } else { + _visitables.get("versions").add(builder); + versions.set(index, builder); + } return (A)this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionStatusFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionStatusFluent.java index b72a6572f9..54c220a537 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionStatusFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionStatusFluent.java @@ -79,14 +79,26 @@ public AcceptedNamesNested editOrNewAcceptedNamesLike(V1CustomResourceDefinit public A addToConditions(int index,V1CustomResourceDefinitionCondition item) { if (this.conditions == null) {this.conditions = new ArrayList();} V1CustomResourceDefinitionConditionBuilder builder = new V1CustomResourceDefinitionConditionBuilder(item); - if (index < 0 || index >= conditions.size()) { _visitables.get("conditions").add(builder); conditions.add(builder); } else { _visitables.get("conditions").add(index, builder); conditions.add(index, builder);} + if (index < 0 || index >= conditions.size()) { + _visitables.get("conditions").add(builder); + conditions.add(builder); + } else { + _visitables.get("conditions").add(builder); + conditions.add(index, builder); + } return (A)this; } public A setToConditions(int index,V1CustomResourceDefinitionCondition item) { if (this.conditions == null) {this.conditions = new ArrayList();} V1CustomResourceDefinitionConditionBuilder builder = new V1CustomResourceDefinitionConditionBuilder(item); - if (index < 0 || index >= conditions.size()) { _visitables.get("conditions").add(builder); conditions.add(builder); } else { _visitables.get("conditions").set(index, builder); conditions.set(index, builder);} + if (index < 0 || index >= conditions.size()) { + _visitables.get("conditions").add(builder); + conditions.add(builder); + } else { + _visitables.get("conditions").add(builder); + conditions.set(index, builder); + } return (A)this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionVersionBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionVersionBuilder.java index c4f56d2f2d..63d4d3dab4 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionVersionBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionVersionBuilder.java @@ -28,6 +28,7 @@ public V1CustomResourceDefinitionVersion build() { buildable.setDeprecationWarning(fluent.getDeprecationWarning()); buildable.setName(fluent.getName()); buildable.setSchema(fluent.buildSchema()); + buildable.setSelectableFields(fluent.buildSelectableFields()); buildable.setServed(fluent.getServed()); buildable.setStorage(fluent.getStorage()); buildable.setSubresources(fluent.buildSubresources()); diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionVersionFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionVersionFluent.java index d45b108854..50e38b2beb 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionVersionFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionVersionFluent.java @@ -29,6 +29,7 @@ public V1CustomResourceDefinitionVersionFluent(V1CustomResourceDefinitionVersion private String deprecationWarning; private String name; private V1CustomResourceValidationBuilder schema; + private ArrayList selectableFields; private Boolean served; private Boolean storage; private V1CustomResourceSubresourcesBuilder subresources; @@ -41,6 +42,7 @@ protected void copyInstance(V1CustomResourceDefinitionVersion instance) { this.withDeprecationWarning(instance.getDeprecationWarning()); this.withName(instance.getName()); this.withSchema(instance.getSchema()); + this.withSelectableFields(instance.getSelectableFields()); this.withServed(instance.getServed()); this.withStorage(instance.getStorage()); this.withSubresources(instance.getSubresources()); @@ -50,14 +52,26 @@ protected void copyInstance(V1CustomResourceDefinitionVersion instance) { public A addToAdditionalPrinterColumns(int index,V1CustomResourceColumnDefinition item) { if (this.additionalPrinterColumns == null) {this.additionalPrinterColumns = new ArrayList();} V1CustomResourceColumnDefinitionBuilder builder = new V1CustomResourceColumnDefinitionBuilder(item); - if (index < 0 || index >= additionalPrinterColumns.size()) { _visitables.get("additionalPrinterColumns").add(builder); additionalPrinterColumns.add(builder); } else { _visitables.get("additionalPrinterColumns").add(index, builder); additionalPrinterColumns.add(index, builder);} + if (index < 0 || index >= additionalPrinterColumns.size()) { + _visitables.get("additionalPrinterColumns").add(builder); + additionalPrinterColumns.add(builder); + } else { + _visitables.get("additionalPrinterColumns").add(builder); + additionalPrinterColumns.add(index, builder); + } return (A)this; } public A setToAdditionalPrinterColumns(int index,V1CustomResourceColumnDefinition item) { if (this.additionalPrinterColumns == null) {this.additionalPrinterColumns = new ArrayList();} V1CustomResourceColumnDefinitionBuilder builder = new V1CustomResourceColumnDefinitionBuilder(item); - if (index < 0 || index >= additionalPrinterColumns.size()) { _visitables.get("additionalPrinterColumns").add(builder); additionalPrinterColumns.add(builder); } else { _visitables.get("additionalPrinterColumns").set(index, builder); additionalPrinterColumns.set(index, builder);} + if (index < 0 || index >= additionalPrinterColumns.size()) { + _visitables.get("additionalPrinterColumns").add(builder); + additionalPrinterColumns.add(builder); + } else { + _visitables.get("additionalPrinterColumns").add(builder); + additionalPrinterColumns.set(index, builder); + } return (A)this; } @@ -277,6 +291,169 @@ public SchemaNested editOrNewSchemaLike(V1CustomResourceValidation item) { return withNewSchemaLike(java.util.Optional.ofNullable(buildSchema()).orElse(item)); } + public A addToSelectableFields(int index,V1SelectableField item) { + if (this.selectableFields == null) {this.selectableFields = new ArrayList();} + V1SelectableFieldBuilder builder = new V1SelectableFieldBuilder(item); + if (index < 0 || index >= selectableFields.size()) { + _visitables.get("selectableFields").add(builder); + selectableFields.add(builder); + } else { + _visitables.get("selectableFields").add(builder); + selectableFields.add(index, builder); + } + return (A)this; + } + + public A setToSelectableFields(int index,V1SelectableField item) { + if (this.selectableFields == null) {this.selectableFields = new ArrayList();} + V1SelectableFieldBuilder builder = new V1SelectableFieldBuilder(item); + if (index < 0 || index >= selectableFields.size()) { + _visitables.get("selectableFields").add(builder); + selectableFields.add(builder); + } else { + _visitables.get("selectableFields").add(builder); + selectableFields.set(index, builder); + } + return (A)this; + } + + public A addToSelectableFields(io.kubernetes.client.openapi.models.V1SelectableField... items) { + if (this.selectableFields == null) {this.selectableFields = new ArrayList();} + for (V1SelectableField item : items) {V1SelectableFieldBuilder builder = new V1SelectableFieldBuilder(item);_visitables.get("selectableFields").add(builder);this.selectableFields.add(builder);} return (A)this; + } + + public A addAllToSelectableFields(Collection items) { + if (this.selectableFields == null) {this.selectableFields = new ArrayList();} + for (V1SelectableField item : items) {V1SelectableFieldBuilder builder = new V1SelectableFieldBuilder(item);_visitables.get("selectableFields").add(builder);this.selectableFields.add(builder);} return (A)this; + } + + public A removeFromSelectableFields(io.kubernetes.client.openapi.models.V1SelectableField... items) { + if (this.selectableFields == null) return (A)this; + for (V1SelectableField item : items) {V1SelectableFieldBuilder builder = new V1SelectableFieldBuilder(item);_visitables.get("selectableFields").remove(builder); this.selectableFields.remove(builder);} return (A)this; + } + + public A removeAllFromSelectableFields(Collection items) { + if (this.selectableFields == null) return (A)this; + for (V1SelectableField item : items) {V1SelectableFieldBuilder builder = new V1SelectableFieldBuilder(item);_visitables.get("selectableFields").remove(builder); this.selectableFields.remove(builder);} return (A)this; + } + + public A removeMatchingFromSelectableFields(Predicate predicate) { + if (selectableFields == null) return (A) this; + final Iterator each = selectableFields.iterator(); + final List visitables = _visitables.get("selectableFields"); + while (each.hasNext()) { + V1SelectableFieldBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A)this; + } + + public List buildSelectableFields() { + return this.selectableFields != null ? build(selectableFields) : null; + } + + public V1SelectableField buildSelectableField(int index) { + return this.selectableFields.get(index).build(); + } + + public V1SelectableField buildFirstSelectableField() { + return this.selectableFields.get(0).build(); + } + + public V1SelectableField buildLastSelectableField() { + return this.selectableFields.get(selectableFields.size() - 1).build(); + } + + public V1SelectableField buildMatchingSelectableField(Predicate predicate) { + for (V1SelectableFieldBuilder item : selectableFields) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; + } + + public boolean hasMatchingSelectableField(Predicate predicate) { + for (V1SelectableFieldBuilder item : selectableFields) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public A withSelectableFields(List selectableFields) { + if (this.selectableFields != null) { + this._visitables.get("selectableFields").clear(); + } + if (selectableFields != null) { + this.selectableFields = new ArrayList(); + for (V1SelectableField item : selectableFields) { + this.addToSelectableFields(item); + } + } else { + this.selectableFields = null; + } + return (A) this; + } + + public A withSelectableFields(io.kubernetes.client.openapi.models.V1SelectableField... selectableFields) { + if (this.selectableFields != null) { + this.selectableFields.clear(); + _visitables.remove("selectableFields"); + } + if (selectableFields != null) { + for (V1SelectableField item : selectableFields) { + this.addToSelectableFields(item); + } + } + return (A) this; + } + + public boolean hasSelectableFields() { + return this.selectableFields != null && !this.selectableFields.isEmpty(); + } + + public SelectableFieldsNested addNewSelectableField() { + return new SelectableFieldsNested(-1, null); + } + + public SelectableFieldsNested addNewSelectableFieldLike(V1SelectableField item) { + return new SelectableFieldsNested(-1, item); + } + + public SelectableFieldsNested setNewSelectableFieldLike(int index,V1SelectableField item) { + return new SelectableFieldsNested(index, item); + } + + public SelectableFieldsNested editSelectableField(int index) { + if (selectableFields.size() <= index) throw new RuntimeException("Can't edit selectableFields. Index exceeds size."); + return setNewSelectableFieldLike(index, buildSelectableField(index)); + } + + public SelectableFieldsNested editFirstSelectableField() { + if (selectableFields.size() == 0) throw new RuntimeException("Can't edit first selectableFields. The list is empty."); + return setNewSelectableFieldLike(0, buildSelectableField(0)); + } + + public SelectableFieldsNested editLastSelectableField() { + int index = selectableFields.size() - 1; + if (index < 0) throw new RuntimeException("Can't edit last selectableFields. The list is empty."); + return setNewSelectableFieldLike(index, buildSelectableField(index)); + } + + public SelectableFieldsNested editMatchingSelectableField(Predicate predicate) { + int index = -1; + for (int i=0;i extends V1SelectableFieldFluent> implements Nested{ + SelectableFieldsNested(int index,V1SelectableField item) { + this.index = index; + this.builder = new V1SelectableFieldBuilder(this, item); + } + V1SelectableFieldBuilder builder; + int index; + + public N and() { + return (N) V1CustomResourceDefinitionVersionFluent.this.setToSelectableFields(index,builder.build()); + } + + public N endSelectableField() { + return and(); + } + + } public class SubresourcesNested extends V1CustomResourceSubresourcesFluent> implements Nested{ SubresourcesNested(V1CustomResourceSubresources item) { diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DaemonSetListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DaemonSetListFluent.java index 391155241a..cb151a6284 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DaemonSetListFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DaemonSetListFluent.java @@ -54,14 +54,26 @@ public boolean hasApiVersion() { public A addToItems(int index,V1DaemonSet item) { if (this.items == null) {this.items = new ArrayList();} V1DaemonSetBuilder builder = new V1DaemonSetBuilder(item); - if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); items.add(builder); } else { _visitables.get("items").add(index, builder); items.add(index, builder);} + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.add(index, builder); + } return (A)this; } public A setToItems(int index,V1DaemonSet item) { if (this.items == null) {this.items = new ArrayList();} V1DaemonSetBuilder builder = new V1DaemonSetBuilder(item); - if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); items.add(builder); } else { _visitables.get("items").set(index, builder); items.set(index, builder);} + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.set(index, builder); + } return (A)this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DaemonSetStatusFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DaemonSetStatusFluent.java index 5f0555edb2..030c8417a7 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DaemonSetStatusFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DaemonSetStatusFluent.java @@ -68,14 +68,26 @@ public boolean hasCollisionCount() { public A addToConditions(int index,V1DaemonSetCondition item) { if (this.conditions == null) {this.conditions = new ArrayList();} V1DaemonSetConditionBuilder builder = new V1DaemonSetConditionBuilder(item); - if (index < 0 || index >= conditions.size()) { _visitables.get("conditions").add(builder); conditions.add(builder); } else { _visitables.get("conditions").add(index, builder); conditions.add(index, builder);} + if (index < 0 || index >= conditions.size()) { + _visitables.get("conditions").add(builder); + conditions.add(builder); + } else { + _visitables.get("conditions").add(builder); + conditions.add(index, builder); + } return (A)this; } public A setToConditions(int index,V1DaemonSetCondition item) { if (this.conditions == null) {this.conditions = new ArrayList();} V1DaemonSetConditionBuilder builder = new V1DaemonSetConditionBuilder(item); - if (index < 0 || index >= conditions.size()) { _visitables.get("conditions").add(builder); conditions.add(builder); } else { _visitables.get("conditions").set(index, builder); conditions.set(index, builder);} + if (index < 0 || index >= conditions.size()) { + _visitables.get("conditions").add(builder); + conditions.add(builder); + } else { + _visitables.get("conditions").add(builder); + conditions.set(index, builder); + } return (A)this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeleteOptionsBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeleteOptionsBuilder.java index 537848a977..8223cd5455 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeleteOptionsBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeleteOptionsBuilder.java @@ -26,6 +26,7 @@ public V1DeleteOptions build() { buildable.setApiVersion(fluent.getApiVersion()); buildable.setDryRun(fluent.getDryRun()); buildable.setGracePeriodSeconds(fluent.getGracePeriodSeconds()); + buildable.setIgnoreStoreReadErrorWithClusterBreakingPotential(fluent.getIgnoreStoreReadErrorWithClusterBreakingPotential()); buildable.setKind(fluent.getKind()); buildable.setOrphanDependents(fluent.getOrphanDependents()); buildable.setPreconditions(fluent.buildPreconditions()); diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeleteOptionsFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeleteOptionsFluent.java index e2ac73a4fc..0c34bce462 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeleteOptionsFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeleteOptionsFluent.java @@ -26,6 +26,7 @@ public V1DeleteOptionsFluent(V1DeleteOptions instance) { private String apiVersion; private List dryRun; private Long gracePeriodSeconds; + private Boolean ignoreStoreReadErrorWithClusterBreakingPotential; private String kind; private Boolean orphanDependents; private V1PreconditionsBuilder preconditions; @@ -37,6 +38,7 @@ protected void copyInstance(V1DeleteOptions instance) { this.withApiVersion(instance.getApiVersion()); this.withDryRun(instance.getDryRun()); this.withGracePeriodSeconds(instance.getGracePeriodSeconds()); + this.withIgnoreStoreReadErrorWithClusterBreakingPotential(instance.getIgnoreStoreReadErrorWithClusterBreakingPotential()); this.withKind(instance.getKind()); this.withOrphanDependents(instance.getOrphanDependents()); this.withPreconditions(instance.getPreconditions()); @@ -164,6 +166,19 @@ public boolean hasGracePeriodSeconds() { return this.gracePeriodSeconds != null; } + public Boolean getIgnoreStoreReadErrorWithClusterBreakingPotential() { + return this.ignoreStoreReadErrorWithClusterBreakingPotential; + } + + public A withIgnoreStoreReadErrorWithClusterBreakingPotential(Boolean ignoreStoreReadErrorWithClusterBreakingPotential) { + this.ignoreStoreReadErrorWithClusterBreakingPotential = ignoreStoreReadErrorWithClusterBreakingPotential; + return (A) this; + } + + public boolean hasIgnoreStoreReadErrorWithClusterBreakingPotential() { + return this.ignoreStoreReadErrorWithClusterBreakingPotential != null; + } + public String getKind() { return this.kind; } @@ -251,6 +266,7 @@ public boolean equals(Object o) { if (!java.util.Objects.equals(apiVersion, that.apiVersion)) return false; if (!java.util.Objects.equals(dryRun, that.dryRun)) return false; if (!java.util.Objects.equals(gracePeriodSeconds, that.gracePeriodSeconds)) return false; + if (!java.util.Objects.equals(ignoreStoreReadErrorWithClusterBreakingPotential, that.ignoreStoreReadErrorWithClusterBreakingPotential)) return false; if (!java.util.Objects.equals(kind, that.kind)) return false; if (!java.util.Objects.equals(orphanDependents, that.orphanDependents)) return false; if (!java.util.Objects.equals(preconditions, that.preconditions)) return false; @@ -259,7 +275,7 @@ public boolean equals(Object o) { } public int hashCode() { - return java.util.Objects.hash(apiVersion, dryRun, gracePeriodSeconds, kind, orphanDependents, preconditions, propagationPolicy, super.hashCode()); + return java.util.Objects.hash(apiVersion, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, kind, orphanDependents, preconditions, propagationPolicy, super.hashCode()); } public String toString() { @@ -268,6 +284,7 @@ public String toString() { if (apiVersion != null) { sb.append("apiVersion:"); sb.append(apiVersion + ","); } if (dryRun != null && !dryRun.isEmpty()) { sb.append("dryRun:"); sb.append(dryRun + ","); } if (gracePeriodSeconds != null) { sb.append("gracePeriodSeconds:"); sb.append(gracePeriodSeconds + ","); } + if (ignoreStoreReadErrorWithClusterBreakingPotential != null) { sb.append("ignoreStoreReadErrorWithClusterBreakingPotential:"); sb.append(ignoreStoreReadErrorWithClusterBreakingPotential + ","); } if (kind != null) { sb.append("kind:"); sb.append(kind + ","); } if (orphanDependents != null) { sb.append("orphanDependents:"); sb.append(orphanDependents + ","); } if (preconditions != null) { sb.append("preconditions:"); sb.append(preconditions + ","); } @@ -276,6 +293,10 @@ public String toString() { return sb.toString(); } + public A withIgnoreStoreReadErrorWithClusterBreakingPotential() { + return withIgnoreStoreReadErrorWithClusterBreakingPotential(true); + } + public A withOrphanDependents() { return withOrphanDependents(true); } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeploymentListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeploymentListFluent.java index 21a0b288c3..e34e5030ac 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeploymentListFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeploymentListFluent.java @@ -54,14 +54,26 @@ public boolean hasApiVersion() { public A addToItems(int index,V1Deployment item) { if (this.items == null) {this.items = new ArrayList();} V1DeploymentBuilder builder = new V1DeploymentBuilder(item); - if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); items.add(builder); } else { _visitables.get("items").add(index, builder); items.add(index, builder);} + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.add(index, builder); + } return (A)this; } public A setToItems(int index,V1Deployment item) { if (this.items == null) {this.items = new ArrayList();} V1DeploymentBuilder builder = new V1DeploymentBuilder(item); - if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); items.add(builder); } else { _visitables.get("items").set(index, builder); items.set(index, builder);} + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.set(index, builder); + } return (A)this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeploymentStatusBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeploymentStatusBuilder.java index 677b024c81..8a0a746a05 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeploymentStatusBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeploymentStatusBuilder.java @@ -29,6 +29,7 @@ public V1DeploymentStatus build() { buildable.setObservedGeneration(fluent.getObservedGeneration()); buildable.setReadyReplicas(fluent.getReadyReplicas()); buildable.setReplicas(fluent.getReplicas()); + buildable.setTerminatingReplicas(fluent.getTerminatingReplicas()); buildable.setUnavailableReplicas(fluent.getUnavailableReplicas()); buildable.setUpdatedReplicas(fluent.getUpdatedReplicas()); return buildable; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeploymentStatusFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeploymentStatusFluent.java index c808791715..9adadb9a59 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeploymentStatusFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeploymentStatusFluent.java @@ -31,6 +31,7 @@ public V1DeploymentStatusFluent(V1DeploymentStatus instance) { private Long observedGeneration; private Integer readyReplicas; private Integer replicas; + private Integer terminatingReplicas; private Integer unavailableReplicas; private Integer updatedReplicas; @@ -43,6 +44,7 @@ protected void copyInstance(V1DeploymentStatus instance) { this.withObservedGeneration(instance.getObservedGeneration()); this.withReadyReplicas(instance.getReadyReplicas()); this.withReplicas(instance.getReplicas()); + this.withTerminatingReplicas(instance.getTerminatingReplicas()); this.withUnavailableReplicas(instance.getUnavailableReplicas()); this.withUpdatedReplicas(instance.getUpdatedReplicas()); } @@ -77,14 +79,26 @@ public boolean hasCollisionCount() { public A addToConditions(int index,V1DeploymentCondition item) { if (this.conditions == null) {this.conditions = new ArrayList();} V1DeploymentConditionBuilder builder = new V1DeploymentConditionBuilder(item); - if (index < 0 || index >= conditions.size()) { _visitables.get("conditions").add(builder); conditions.add(builder); } else { _visitables.get("conditions").add(index, builder); conditions.add(index, builder);} + if (index < 0 || index >= conditions.size()) { + _visitables.get("conditions").add(builder); + conditions.add(builder); + } else { + _visitables.get("conditions").add(builder); + conditions.add(index, builder); + } return (A)this; } public A setToConditions(int index,V1DeploymentCondition item) { if (this.conditions == null) {this.conditions = new ArrayList();} V1DeploymentConditionBuilder builder = new V1DeploymentConditionBuilder(item); - if (index < 0 || index >= conditions.size()) { _visitables.get("conditions").add(builder); conditions.add(builder); } else { _visitables.get("conditions").set(index, builder); conditions.set(index, builder);} + if (index < 0 || index >= conditions.size()) { + _visitables.get("conditions").add(builder); + conditions.add(builder); + } else { + _visitables.get("conditions").add(builder); + conditions.set(index, builder); + } return (A)this; } @@ -264,6 +278,19 @@ public boolean hasReplicas() { return this.replicas != null; } + public Integer getTerminatingReplicas() { + return this.terminatingReplicas; + } + + public A withTerminatingReplicas(Integer terminatingReplicas) { + this.terminatingReplicas = terminatingReplicas; + return (A) this; + } + + public boolean hasTerminatingReplicas() { + return this.terminatingReplicas != null; + } + public Integer getUnavailableReplicas() { return this.unavailableReplicas; } @@ -301,13 +328,14 @@ public boolean equals(Object o) { if (!java.util.Objects.equals(observedGeneration, that.observedGeneration)) return false; if (!java.util.Objects.equals(readyReplicas, that.readyReplicas)) return false; if (!java.util.Objects.equals(replicas, that.replicas)) return false; + if (!java.util.Objects.equals(terminatingReplicas, that.terminatingReplicas)) return false; if (!java.util.Objects.equals(unavailableReplicas, that.unavailableReplicas)) return false; if (!java.util.Objects.equals(updatedReplicas, that.updatedReplicas)) return false; return true; } public int hashCode() { - return java.util.Objects.hash(availableReplicas, collisionCount, conditions, observedGeneration, readyReplicas, replicas, unavailableReplicas, updatedReplicas, super.hashCode()); + return java.util.Objects.hash(availableReplicas, collisionCount, conditions, observedGeneration, readyReplicas, replicas, terminatingReplicas, unavailableReplicas, updatedReplicas, super.hashCode()); } public String toString() { @@ -319,6 +347,7 @@ public String toString() { if (observedGeneration != null) { sb.append("observedGeneration:"); sb.append(observedGeneration + ","); } if (readyReplicas != null) { sb.append("readyReplicas:"); sb.append(readyReplicas + ","); } if (replicas != null) { sb.append("replicas:"); sb.append(replicas + ","); } + if (terminatingReplicas != null) { sb.append("terminatingReplicas:"); sb.append(terminatingReplicas + ","); } if (unavailableReplicas != null) { sb.append("unavailableReplicas:"); sb.append(unavailableReplicas + ","); } if (updatedReplicas != null) { sb.append("updatedReplicas:"); sb.append(updatedReplicas); } sb.append("}"); diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DownwardAPIProjectionFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DownwardAPIProjectionFluent.java index 154d417d45..aed47a02e2 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DownwardAPIProjectionFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DownwardAPIProjectionFluent.java @@ -35,14 +35,26 @@ protected void copyInstance(V1DownwardAPIProjection instance) { public A addToItems(int index,V1DownwardAPIVolumeFile item) { if (this.items == null) {this.items = new ArrayList();} V1DownwardAPIVolumeFileBuilder builder = new V1DownwardAPIVolumeFileBuilder(item); - if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); items.add(builder); } else { _visitables.get("items").add(index, builder); items.add(index, builder);} + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.add(index, builder); + } return (A)this; } public A setToItems(int index,V1DownwardAPIVolumeFile item) { if (this.items == null) {this.items = new ArrayList();} V1DownwardAPIVolumeFileBuilder builder = new V1DownwardAPIVolumeFileBuilder(item); - if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); items.add(builder); } else { _visitables.get("items").set(index, builder); items.set(index, builder);} + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.set(index, builder); + } return (A)this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DownwardAPIVolumeSourceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DownwardAPIVolumeSourceFluent.java index cf2afd1f5f..74f6f08cee 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DownwardAPIVolumeSourceFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DownwardAPIVolumeSourceFluent.java @@ -51,14 +51,26 @@ public boolean hasDefaultMode() { public A addToItems(int index,V1DownwardAPIVolumeFile item) { if (this.items == null) {this.items = new ArrayList();} V1DownwardAPIVolumeFileBuilder builder = new V1DownwardAPIVolumeFileBuilder(item); - if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); items.add(builder); } else { _visitables.get("items").add(index, builder); items.add(index, builder);} + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.add(index, builder); + } return (A)this; } public A setToItems(int index,V1DownwardAPIVolumeFile item) { if (this.items == null) {this.items = new ArrayList();} V1DownwardAPIVolumeFileBuilder builder = new V1DownwardAPIVolumeFileBuilder(item); - if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); items.add(builder); } else { _visitables.get("items").set(index, builder); items.set(index, builder);} + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.set(index, builder); + } return (A)this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EndpointHintsBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EndpointHintsBuilder.java index a72325c2d9..1819048478 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EndpointHintsBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EndpointHintsBuilder.java @@ -23,6 +23,7 @@ public V1EndpointHintsBuilder(V1EndpointHints instance) { public V1EndpointHints build() { V1EndpointHints buildable = new V1EndpointHints(); + buildable.setForNodes(fluent.buildForNodes()); buildable.setForZones(fluent.buildForZones()); return buildable; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EndpointHintsFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EndpointHintsFluent.java index 26dc2f8a50..1e75b0ab8d 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EndpointHintsFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EndpointHintsFluent.java @@ -23,26 +23,203 @@ public V1EndpointHintsFluent() { public V1EndpointHintsFluent(V1EndpointHints instance) { this.copyInstance(instance); } + private ArrayList forNodes; private ArrayList forZones; protected void copyInstance(V1EndpointHints instance) { instance = (instance != null ? instance : new V1EndpointHints()); if (instance != null) { + this.withForNodes(instance.getForNodes()); this.withForZones(instance.getForZones()); } } + public A addToForNodes(int index,V1ForNode item) { + if (this.forNodes == null) {this.forNodes = new ArrayList();} + V1ForNodeBuilder builder = new V1ForNodeBuilder(item); + if (index < 0 || index >= forNodes.size()) { + _visitables.get("forNodes").add(builder); + forNodes.add(builder); + } else { + _visitables.get("forNodes").add(builder); + forNodes.add(index, builder); + } + return (A)this; + } + + public A setToForNodes(int index,V1ForNode item) { + if (this.forNodes == null) {this.forNodes = new ArrayList();} + V1ForNodeBuilder builder = new V1ForNodeBuilder(item); + if (index < 0 || index >= forNodes.size()) { + _visitables.get("forNodes").add(builder); + forNodes.add(builder); + } else { + _visitables.get("forNodes").add(builder); + forNodes.set(index, builder); + } + return (A)this; + } + + public A addToForNodes(io.kubernetes.client.openapi.models.V1ForNode... items) { + if (this.forNodes == null) {this.forNodes = new ArrayList();} + for (V1ForNode item : items) {V1ForNodeBuilder builder = new V1ForNodeBuilder(item);_visitables.get("forNodes").add(builder);this.forNodes.add(builder);} return (A)this; + } + + public A addAllToForNodes(Collection items) { + if (this.forNodes == null) {this.forNodes = new ArrayList();} + for (V1ForNode item : items) {V1ForNodeBuilder builder = new V1ForNodeBuilder(item);_visitables.get("forNodes").add(builder);this.forNodes.add(builder);} return (A)this; + } + + public A removeFromForNodes(io.kubernetes.client.openapi.models.V1ForNode... items) { + if (this.forNodes == null) return (A)this; + for (V1ForNode item : items) {V1ForNodeBuilder builder = new V1ForNodeBuilder(item);_visitables.get("forNodes").remove(builder); this.forNodes.remove(builder);} return (A)this; + } + + public A removeAllFromForNodes(Collection items) { + if (this.forNodes == null) return (A)this; + for (V1ForNode item : items) {V1ForNodeBuilder builder = new V1ForNodeBuilder(item);_visitables.get("forNodes").remove(builder); this.forNodes.remove(builder);} return (A)this; + } + + public A removeMatchingFromForNodes(Predicate predicate) { + if (forNodes == null) return (A) this; + final Iterator each = forNodes.iterator(); + final List visitables = _visitables.get("forNodes"); + while (each.hasNext()) { + V1ForNodeBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A)this; + } + + public List buildForNodes() { + return this.forNodes != null ? build(forNodes) : null; + } + + public V1ForNode buildForNode(int index) { + return this.forNodes.get(index).build(); + } + + public V1ForNode buildFirstForNode() { + return this.forNodes.get(0).build(); + } + + public V1ForNode buildLastForNode() { + return this.forNodes.get(forNodes.size() - 1).build(); + } + + public V1ForNode buildMatchingForNode(Predicate predicate) { + for (V1ForNodeBuilder item : forNodes) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; + } + + public boolean hasMatchingForNode(Predicate predicate) { + for (V1ForNodeBuilder item : forNodes) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public A withForNodes(List forNodes) { + if (this.forNodes != null) { + this._visitables.get("forNodes").clear(); + } + if (forNodes != null) { + this.forNodes = new ArrayList(); + for (V1ForNode item : forNodes) { + this.addToForNodes(item); + } + } else { + this.forNodes = null; + } + return (A) this; + } + + public A withForNodes(io.kubernetes.client.openapi.models.V1ForNode... forNodes) { + if (this.forNodes != null) { + this.forNodes.clear(); + _visitables.remove("forNodes"); + } + if (forNodes != null) { + for (V1ForNode item : forNodes) { + this.addToForNodes(item); + } + } + return (A) this; + } + + public boolean hasForNodes() { + return this.forNodes != null && !this.forNodes.isEmpty(); + } + + public ForNodesNested addNewForNode() { + return new ForNodesNested(-1, null); + } + + public ForNodesNested addNewForNodeLike(V1ForNode item) { + return new ForNodesNested(-1, item); + } + + public ForNodesNested setNewForNodeLike(int index,V1ForNode item) { + return new ForNodesNested(index, item); + } + + public ForNodesNested editForNode(int index) { + if (forNodes.size() <= index) throw new RuntimeException("Can't edit forNodes. Index exceeds size."); + return setNewForNodeLike(index, buildForNode(index)); + } + + public ForNodesNested editFirstForNode() { + if (forNodes.size() == 0) throw new RuntimeException("Can't edit first forNodes. The list is empty."); + return setNewForNodeLike(0, buildForNode(0)); + } + + public ForNodesNested editLastForNode() { + int index = forNodes.size() - 1; + if (index < 0) throw new RuntimeException("Can't edit last forNodes. The list is empty."); + return setNewForNodeLike(index, buildForNode(index)); + } + + public ForNodesNested editMatchingForNode(Predicate predicate) { + int index = -1; + for (int i=0;i();} V1ForZoneBuilder builder = new V1ForZoneBuilder(item); - if (index < 0 || index >= forZones.size()) { _visitables.get("forZones").add(builder); forZones.add(builder); } else { _visitables.get("forZones").add(index, builder); forZones.add(index, builder);} + if (index < 0 || index >= forZones.size()) { + _visitables.get("forZones").add(builder); + forZones.add(builder); + } else { + _visitables.get("forZones").add(builder); + forZones.add(index, builder); + } return (A)this; } public A setToForZones(int index,V1ForZone item) { if (this.forZones == null) {this.forZones = new ArrayList();} V1ForZoneBuilder builder = new V1ForZoneBuilder(item); - if (index < 0 || index >= forZones.size()) { _visitables.get("forZones").add(builder); forZones.add(builder); } else { _visitables.get("forZones").set(index, builder); forZones.set(index, builder);} + if (index < 0 || index >= forZones.size()) { + _visitables.get("forZones").add(builder); + forZones.add(builder); + } else { + _visitables.get("forZones").add(builder); + forZones.set(index, builder); + } return (A)this; } @@ -188,20 +365,40 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) return false; if (!super.equals(o)) return false; V1EndpointHintsFluent that = (V1EndpointHintsFluent) o; + if (!java.util.Objects.equals(forNodes, that.forNodes)) return false; if (!java.util.Objects.equals(forZones, that.forZones)) return false; return true; } public int hashCode() { - return java.util.Objects.hash(forZones, super.hashCode()); + return java.util.Objects.hash(forNodes, forZones, super.hashCode()); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); + if (forNodes != null && !forNodes.isEmpty()) { sb.append("forNodes:"); sb.append(forNodes + ","); } if (forZones != null && !forZones.isEmpty()) { sb.append("forZones:"); sb.append(forZones); } sb.append("}"); return sb.toString(); + } + public class ForNodesNested extends V1ForNodeFluent> implements Nested{ + ForNodesNested(int index,V1ForNode item) { + this.index = index; + this.builder = new V1ForNodeBuilder(this, item); + } + V1ForNodeBuilder builder; + int index; + + public N and() { + return (N) V1EndpointHintsFluent.this.setToForNodes(index,builder.build()); + } + + public N endForNode() { + return and(); + } + + } public class ForZonesNested extends V1ForZoneFluent> implements Nested{ ForZonesNested(int index,V1ForZone item) { diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EndpointSliceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EndpointSliceFluent.java index 34b0625a8e..31552415d2 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EndpointSliceFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EndpointSliceFluent.java @@ -71,14 +71,26 @@ public boolean hasApiVersion() { public A addToEndpoints(int index,V1Endpoint item) { if (this.endpoints == null) {this.endpoints = new ArrayList();} V1EndpointBuilder builder = new V1EndpointBuilder(item); - if (index < 0 || index >= endpoints.size()) { _visitables.get("endpoints").add(builder); endpoints.add(builder); } else { _visitables.get("endpoints").add(index, builder); endpoints.add(index, builder);} + if (index < 0 || index >= endpoints.size()) { + _visitables.get("endpoints").add(builder); + endpoints.add(builder); + } else { + _visitables.get("endpoints").add(builder); + endpoints.add(index, builder); + } return (A)this; } public A setToEndpoints(int index,V1Endpoint item) { if (this.endpoints == null) {this.endpoints = new ArrayList();} V1EndpointBuilder builder = new V1EndpointBuilder(item); - if (index < 0 || index >= endpoints.size()) { _visitables.get("endpoints").add(builder); endpoints.add(builder); } else { _visitables.get("endpoints").set(index, builder); endpoints.set(index, builder);} + if (index < 0 || index >= endpoints.size()) { + _visitables.get("endpoints").add(builder); + endpoints.add(builder); + } else { + _visitables.get("endpoints").add(builder); + endpoints.set(index, builder); + } return (A)this; } @@ -275,14 +287,26 @@ public MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { public A addToPorts(int index,DiscoveryV1EndpointPort item) { if (this.ports == null) {this.ports = new ArrayList();} DiscoveryV1EndpointPortBuilder builder = new DiscoveryV1EndpointPortBuilder(item); - if (index < 0 || index >= ports.size()) { _visitables.get("ports").add(builder); ports.add(builder); } else { _visitables.get("ports").add(index, builder); ports.add(index, builder);} + if (index < 0 || index >= ports.size()) { + _visitables.get("ports").add(builder); + ports.add(builder); + } else { + _visitables.get("ports").add(builder); + ports.add(index, builder); + } return (A)this; } public A setToPorts(int index,DiscoveryV1EndpointPort item) { if (this.ports == null) {this.ports = new ArrayList();} DiscoveryV1EndpointPortBuilder builder = new DiscoveryV1EndpointPortBuilder(item); - if (index < 0 || index >= ports.size()) { _visitables.get("ports").add(builder); ports.add(builder); } else { _visitables.get("ports").set(index, builder); ports.set(index, builder);} + if (index < 0 || index >= ports.size()) { + _visitables.get("ports").add(builder); + ports.add(builder); + } else { + _visitables.get("ports").add(builder); + ports.set(index, builder); + } return (A)this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EndpointSliceListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EndpointSliceListFluent.java index 892fd476d7..d4eb7fa430 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EndpointSliceListFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EndpointSliceListFluent.java @@ -54,14 +54,26 @@ public boolean hasApiVersion() { public A addToItems(int index,V1EndpointSlice item) { if (this.items == null) {this.items = new ArrayList();} V1EndpointSliceBuilder builder = new V1EndpointSliceBuilder(item); - if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); items.add(builder); } else { _visitables.get("items").add(index, builder); items.add(index, builder);} + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.add(index, builder); + } return (A)this; } public A setToItems(int index,V1EndpointSlice item) { if (this.items == null) {this.items = new ArrayList();} V1EndpointSliceBuilder builder = new V1EndpointSliceBuilder(item); - if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); items.add(builder); } else { _visitables.get("items").set(index, builder); items.set(index, builder);} + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.set(index, builder); + } return (A)this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EndpointSubsetFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EndpointSubsetFluent.java index c3e0b82036..a3809c477c 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EndpointSubsetFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EndpointSubsetFluent.java @@ -39,14 +39,26 @@ protected void copyInstance(V1EndpointSubset instance) { public A addToAddresses(int index,V1EndpointAddress item) { if (this.addresses == null) {this.addresses = new ArrayList();} V1EndpointAddressBuilder builder = new V1EndpointAddressBuilder(item); - if (index < 0 || index >= addresses.size()) { _visitables.get("addresses").add(builder); addresses.add(builder); } else { _visitables.get("addresses").add(index, builder); addresses.add(index, builder);} + if (index < 0 || index >= addresses.size()) { + _visitables.get("addresses").add(builder); + addresses.add(builder); + } else { + _visitables.get("addresses").add(builder); + addresses.add(index, builder); + } return (A)this; } public A setToAddresses(int index,V1EndpointAddress item) { if (this.addresses == null) {this.addresses = new ArrayList();} V1EndpointAddressBuilder builder = new V1EndpointAddressBuilder(item); - if (index < 0 || index >= addresses.size()) { _visitables.get("addresses").add(builder); addresses.add(builder); } else { _visitables.get("addresses").set(index, builder); addresses.set(index, builder);} + if (index < 0 || index >= addresses.size()) { + _visitables.get("addresses").add(builder); + addresses.add(builder); + } else { + _visitables.get("addresses").add(builder); + addresses.set(index, builder); + } return (A)this; } @@ -190,14 +202,26 @@ public AddressesNested editMatchingAddress(Predicate();} V1EndpointAddressBuilder builder = new V1EndpointAddressBuilder(item); - if (index < 0 || index >= notReadyAddresses.size()) { _visitables.get("notReadyAddresses").add(builder); notReadyAddresses.add(builder); } else { _visitables.get("notReadyAddresses").add(index, builder); notReadyAddresses.add(index, builder);} + if (index < 0 || index >= notReadyAddresses.size()) { + _visitables.get("notReadyAddresses").add(builder); + notReadyAddresses.add(builder); + } else { + _visitables.get("notReadyAddresses").add(builder); + notReadyAddresses.add(index, builder); + } return (A)this; } public A setToNotReadyAddresses(int index,V1EndpointAddress item) { if (this.notReadyAddresses == null) {this.notReadyAddresses = new ArrayList();} V1EndpointAddressBuilder builder = new V1EndpointAddressBuilder(item); - if (index < 0 || index >= notReadyAddresses.size()) { _visitables.get("notReadyAddresses").add(builder); notReadyAddresses.add(builder); } else { _visitables.get("notReadyAddresses").set(index, builder); notReadyAddresses.set(index, builder);} + if (index < 0 || index >= notReadyAddresses.size()) { + _visitables.get("notReadyAddresses").add(builder); + notReadyAddresses.add(builder); + } else { + _visitables.get("notReadyAddresses").add(builder); + notReadyAddresses.set(index, builder); + } return (A)this; } @@ -341,14 +365,26 @@ public NotReadyAddressesNested editMatchingNotReadyAddress(Predicate();} CoreV1EndpointPortBuilder builder = new CoreV1EndpointPortBuilder(item); - if (index < 0 || index >= ports.size()) { _visitables.get("ports").add(builder); ports.add(builder); } else { _visitables.get("ports").add(index, builder); ports.add(index, builder);} + if (index < 0 || index >= ports.size()) { + _visitables.get("ports").add(builder); + ports.add(builder); + } else { + _visitables.get("ports").add(builder); + ports.add(index, builder); + } return (A)this; } public A setToPorts(int index,CoreV1EndpointPort item) { if (this.ports == null) {this.ports = new ArrayList();} CoreV1EndpointPortBuilder builder = new CoreV1EndpointPortBuilder(item); - if (index < 0 || index >= ports.size()) { _visitables.get("ports").add(builder); ports.add(builder); } else { _visitables.get("ports").set(index, builder); ports.set(index, builder);} + if (index < 0 || index >= ports.size()) { + _visitables.get("ports").add(builder); + ports.add(builder); + } else { + _visitables.get("ports").add(builder); + ports.set(index, builder); + } return (A)this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EndpointsFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EndpointsFluent.java index 14e9bfcc47..5089ceeaa1 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EndpointsFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EndpointsFluent.java @@ -107,14 +107,26 @@ public MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { public A addToSubsets(int index,V1EndpointSubset item) { if (this.subsets == null) {this.subsets = new ArrayList();} V1EndpointSubsetBuilder builder = new V1EndpointSubsetBuilder(item); - if (index < 0 || index >= subsets.size()) { _visitables.get("subsets").add(builder); subsets.add(builder); } else { _visitables.get("subsets").add(index, builder); subsets.add(index, builder);} + if (index < 0 || index >= subsets.size()) { + _visitables.get("subsets").add(builder); + subsets.add(builder); + } else { + _visitables.get("subsets").add(builder); + subsets.add(index, builder); + } return (A)this; } public A setToSubsets(int index,V1EndpointSubset item) { if (this.subsets == null) {this.subsets = new ArrayList();} V1EndpointSubsetBuilder builder = new V1EndpointSubsetBuilder(item); - if (index < 0 || index >= subsets.size()) { _visitables.get("subsets").add(builder); subsets.add(builder); } else { _visitables.get("subsets").set(index, builder); subsets.set(index, builder);} + if (index < 0 || index >= subsets.size()) { + _visitables.get("subsets").add(builder); + subsets.add(builder); + } else { + _visitables.get("subsets").add(builder); + subsets.set(index, builder); + } return (A)this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EndpointsListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EndpointsListFluent.java index 64c6cc03ce..04bb39aad3 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EndpointsListFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EndpointsListFluent.java @@ -54,14 +54,26 @@ public boolean hasApiVersion() { public A addToItems(int index,V1Endpoints item) { if (this.items == null) {this.items = new ArrayList();} V1EndpointsBuilder builder = new V1EndpointsBuilder(item); - if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); items.add(builder); } else { _visitables.get("items").add(index, builder); items.add(index, builder);} + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.add(index, builder); + } return (A)this; } public A setToItems(int index,V1Endpoints item) { if (this.items == null) {this.items = new ArrayList();} V1EndpointsBuilder builder = new V1EndpointsBuilder(item); - if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); items.add(builder); } else { _visitables.get("items").set(index, builder); items.set(index, builder);} + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.set(index, builder); + } return (A)this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EphemeralContainerFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EphemeralContainerFluent.java index 690ec004a0..7cbe7d75f1 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EphemeralContainerFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EphemeralContainerFluent.java @@ -272,14 +272,26 @@ public boolean hasCommand() { public A addToEnv(int index,V1EnvVar item) { if (this.env == null) {this.env = new ArrayList();} V1EnvVarBuilder builder = new V1EnvVarBuilder(item); - if (index < 0 || index >= env.size()) { _visitables.get("env").add(builder); env.add(builder); } else { _visitables.get("env").add(index, builder); env.add(index, builder);} + if (index < 0 || index >= env.size()) { + _visitables.get("env").add(builder); + env.add(builder); + } else { + _visitables.get("env").add(builder); + env.add(index, builder); + } return (A)this; } public A setToEnv(int index,V1EnvVar item) { if (this.env == null) {this.env = new ArrayList();} V1EnvVarBuilder builder = new V1EnvVarBuilder(item); - if (index < 0 || index >= env.size()) { _visitables.get("env").add(builder); env.add(builder); } else { _visitables.get("env").set(index, builder); env.set(index, builder);} + if (index < 0 || index >= env.size()) { + _visitables.get("env").add(builder); + env.add(builder); + } else { + _visitables.get("env").add(builder); + env.set(index, builder); + } return (A)this; } @@ -423,14 +435,26 @@ public EnvNested editMatchingEnv(Predicate predicate) { public A addToEnvFrom(int index,V1EnvFromSource item) { if (this.envFrom == null) {this.envFrom = new ArrayList();} V1EnvFromSourceBuilder builder = new V1EnvFromSourceBuilder(item); - if (index < 0 || index >= envFrom.size()) { _visitables.get("envFrom").add(builder); envFrom.add(builder); } else { _visitables.get("envFrom").add(index, builder); envFrom.add(index, builder);} + if (index < 0 || index >= envFrom.size()) { + _visitables.get("envFrom").add(builder); + envFrom.add(builder); + } else { + _visitables.get("envFrom").add(builder); + envFrom.add(index, builder); + } return (A)this; } public A setToEnvFrom(int index,V1EnvFromSource item) { if (this.envFrom == null) {this.envFrom = new ArrayList();} V1EnvFromSourceBuilder builder = new V1EnvFromSourceBuilder(item); - if (index < 0 || index >= envFrom.size()) { _visitables.get("envFrom").add(builder); envFrom.add(builder); } else { _visitables.get("envFrom").set(index, builder); envFrom.set(index, builder);} + if (index < 0 || index >= envFrom.size()) { + _visitables.get("envFrom").add(builder); + envFrom.add(builder); + } else { + _visitables.get("envFrom").add(builder); + envFrom.set(index, builder); + } return (A)this; } @@ -693,14 +717,26 @@ public boolean hasName() { public A addToPorts(int index,V1ContainerPort item) { if (this.ports == null) {this.ports = new ArrayList();} V1ContainerPortBuilder builder = new V1ContainerPortBuilder(item); - if (index < 0 || index >= ports.size()) { _visitables.get("ports").add(builder); ports.add(builder); } else { _visitables.get("ports").add(index, builder); ports.add(index, builder);} + if (index < 0 || index >= ports.size()) { + _visitables.get("ports").add(builder); + ports.add(builder); + } else { + _visitables.get("ports").add(builder); + ports.add(index, builder); + } return (A)this; } public A setToPorts(int index,V1ContainerPort item) { if (this.ports == null) {this.ports = new ArrayList();} V1ContainerPortBuilder builder = new V1ContainerPortBuilder(item); - if (index < 0 || index >= ports.size()) { _visitables.get("ports").add(builder); ports.add(builder); } else { _visitables.get("ports").set(index, builder); ports.set(index, builder);} + if (index < 0 || index >= ports.size()) { + _visitables.get("ports").add(builder); + ports.add(builder); + } else { + _visitables.get("ports").add(builder); + ports.set(index, builder); + } return (A)this; } @@ -884,14 +920,26 @@ public ReadinessProbeNested editOrNewReadinessProbeLike(V1Probe item) { public A addToResizePolicy(int index,V1ContainerResizePolicy item) { if (this.resizePolicy == null) {this.resizePolicy = new ArrayList();} V1ContainerResizePolicyBuilder builder = new V1ContainerResizePolicyBuilder(item); - if (index < 0 || index >= resizePolicy.size()) { _visitables.get("resizePolicy").add(builder); resizePolicy.add(builder); } else { _visitables.get("resizePolicy").add(index, builder); resizePolicy.add(index, builder);} + if (index < 0 || index >= resizePolicy.size()) { + _visitables.get("resizePolicy").add(builder); + resizePolicy.add(builder); + } else { + _visitables.get("resizePolicy").add(builder); + resizePolicy.add(index, builder); + } return (A)this; } public A setToResizePolicy(int index,V1ContainerResizePolicy item) { if (this.resizePolicy == null) {this.resizePolicy = new ArrayList();} V1ContainerResizePolicyBuilder builder = new V1ContainerResizePolicyBuilder(item); - if (index < 0 || index >= resizePolicy.size()) { _visitables.get("resizePolicy").add(builder); resizePolicy.add(builder); } else { _visitables.get("resizePolicy").set(index, builder); resizePolicy.set(index, builder);} + if (index < 0 || index >= resizePolicy.size()) { + _visitables.get("resizePolicy").add(builder); + resizePolicy.add(builder); + } else { + _visitables.get("resizePolicy").add(builder); + resizePolicy.set(index, builder); + } return (A)this; } @@ -1246,14 +1294,26 @@ public boolean hasTty() { public A addToVolumeDevices(int index,V1VolumeDevice item) { if (this.volumeDevices == null) {this.volumeDevices = new ArrayList();} V1VolumeDeviceBuilder builder = new V1VolumeDeviceBuilder(item); - if (index < 0 || index >= volumeDevices.size()) { _visitables.get("volumeDevices").add(builder); volumeDevices.add(builder); } else { _visitables.get("volumeDevices").add(index, builder); volumeDevices.add(index, builder);} + if (index < 0 || index >= volumeDevices.size()) { + _visitables.get("volumeDevices").add(builder); + volumeDevices.add(builder); + } else { + _visitables.get("volumeDevices").add(builder); + volumeDevices.add(index, builder); + } return (A)this; } public A setToVolumeDevices(int index,V1VolumeDevice item) { if (this.volumeDevices == null) {this.volumeDevices = new ArrayList();} V1VolumeDeviceBuilder builder = new V1VolumeDeviceBuilder(item); - if (index < 0 || index >= volumeDevices.size()) { _visitables.get("volumeDevices").add(builder); volumeDevices.add(builder); } else { _visitables.get("volumeDevices").set(index, builder); volumeDevices.set(index, builder);} + if (index < 0 || index >= volumeDevices.size()) { + _visitables.get("volumeDevices").add(builder); + volumeDevices.add(builder); + } else { + _visitables.get("volumeDevices").add(builder); + volumeDevices.set(index, builder); + } return (A)this; } @@ -1397,14 +1457,26 @@ public VolumeDevicesNested editMatchingVolumeDevice(Predicate();} V1VolumeMountBuilder builder = new V1VolumeMountBuilder(item); - if (index < 0 || index >= volumeMounts.size()) { _visitables.get("volumeMounts").add(builder); volumeMounts.add(builder); } else { _visitables.get("volumeMounts").add(index, builder); volumeMounts.add(index, builder);} + if (index < 0 || index >= volumeMounts.size()) { + _visitables.get("volumeMounts").add(builder); + volumeMounts.add(builder); + } else { + _visitables.get("volumeMounts").add(builder); + volumeMounts.add(index, builder); + } return (A)this; } public A setToVolumeMounts(int index,V1VolumeMount item) { if (this.volumeMounts == null) {this.volumeMounts = new ArrayList();} V1VolumeMountBuilder builder = new V1VolumeMountBuilder(item); - if (index < 0 || index >= volumeMounts.size()) { _visitables.get("volumeMounts").add(builder); volumeMounts.add(builder); } else { _visitables.get("volumeMounts").set(index, builder); volumeMounts.set(index, builder);} + if (index < 0 || index >= volumeMounts.size()) { + _visitables.get("volumeMounts").add(builder); + volumeMounts.add(builder); + } else { + _visitables.get("volumeMounts").add(builder); + volumeMounts.set(index, builder); + } return (A)this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ExemptPriorityLevelConfigurationBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ExemptPriorityLevelConfigurationBuilder.java new file mode 100644 index 0000000000..8d3e75279a --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ExemptPriorityLevelConfigurationBuilder.java @@ -0,0 +1,32 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +public class V1ExemptPriorityLevelConfigurationBuilder extends V1ExemptPriorityLevelConfigurationFluent implements VisitableBuilder{ + public V1ExemptPriorityLevelConfigurationBuilder() { + this(new V1ExemptPriorityLevelConfiguration()); + } + + public V1ExemptPriorityLevelConfigurationBuilder(V1ExemptPriorityLevelConfigurationFluent fluent) { + this(fluent, new V1ExemptPriorityLevelConfiguration()); + } + + public V1ExemptPriorityLevelConfigurationBuilder(V1ExemptPriorityLevelConfigurationFluent fluent,V1ExemptPriorityLevelConfiguration instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1ExemptPriorityLevelConfigurationBuilder(V1ExemptPriorityLevelConfiguration instance) { + this.fluent = this; + this.copyInstance(instance); + } + V1ExemptPriorityLevelConfigurationFluent fluent; + + public V1ExemptPriorityLevelConfiguration build() { + V1ExemptPriorityLevelConfiguration buildable = new V1ExemptPriorityLevelConfiguration(); + buildable.setLendablePercent(fluent.getLendablePercent()); + buildable.setNominalConcurrencyShares(fluent.getNominalConcurrencyShares()); + return buildable; + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ExemptPriorityLevelConfigurationFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ExemptPriorityLevelConfigurationFluent.java new file mode 100644 index 0000000000..ca4c09bc93 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ExemptPriorityLevelConfigurationFluent.java @@ -0,0 +1,81 @@ +package io.kubernetes.client.openapi.models; + +import java.lang.Integer; +import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Object; +import java.lang.String; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1ExemptPriorityLevelConfigurationFluent> extends BaseFluent{ + public V1ExemptPriorityLevelConfigurationFluent() { + } + + public V1ExemptPriorityLevelConfigurationFluent(V1ExemptPriorityLevelConfiguration instance) { + this.copyInstance(instance); + } + private Integer lendablePercent; + private Integer nominalConcurrencyShares; + + protected void copyInstance(V1ExemptPriorityLevelConfiguration instance) { + instance = (instance != null ? instance : new V1ExemptPriorityLevelConfiguration()); + if (instance != null) { + this.withLendablePercent(instance.getLendablePercent()); + this.withNominalConcurrencyShares(instance.getNominalConcurrencyShares()); + } + } + + public Integer getLendablePercent() { + return this.lendablePercent; + } + + public A withLendablePercent(Integer lendablePercent) { + this.lendablePercent = lendablePercent; + return (A) this; + } + + public boolean hasLendablePercent() { + return this.lendablePercent != null; + } + + public Integer getNominalConcurrencyShares() { + return this.nominalConcurrencyShares; + } + + public A withNominalConcurrencyShares(Integer nominalConcurrencyShares) { + this.nominalConcurrencyShares = nominalConcurrencyShares; + return (A) this; + } + + public boolean hasNominalConcurrencyShares() { + return this.nominalConcurrencyShares != null; + } + + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + if (!super.equals(o)) return false; + V1ExemptPriorityLevelConfigurationFluent that = (V1ExemptPriorityLevelConfigurationFluent) o; + if (!java.util.Objects.equals(lendablePercent, that.lendablePercent)) return false; + if (!java.util.Objects.equals(nominalConcurrencyShares, that.nominalConcurrencyShares)) return false; + return true; + } + + public int hashCode() { + return java.util.Objects.hash(lendablePercent, nominalConcurrencyShares, super.hashCode()); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (lendablePercent != null) { sb.append("lendablePercent:"); sb.append(lendablePercent + ","); } + if (nominalConcurrencyShares != null) { sb.append("nominalConcurrencyShares:"); sb.append(nominalConcurrencyShares); } + sb.append("}"); + return sb.toString(); + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ExpressionWarningBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ExpressionWarningBuilder.java new file mode 100644 index 0000000000..9c9c2f4421 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ExpressionWarningBuilder.java @@ -0,0 +1,32 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +public class V1ExpressionWarningBuilder extends V1ExpressionWarningFluent implements VisitableBuilder{ + public V1ExpressionWarningBuilder() { + this(new V1ExpressionWarning()); + } + + public V1ExpressionWarningBuilder(V1ExpressionWarningFluent fluent) { + this(fluent, new V1ExpressionWarning()); + } + + public V1ExpressionWarningBuilder(V1ExpressionWarningFluent fluent,V1ExpressionWarning instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1ExpressionWarningBuilder(V1ExpressionWarning instance) { + this.fluent = this; + this.copyInstance(instance); + } + V1ExpressionWarningFluent fluent; + + public V1ExpressionWarning build() { + V1ExpressionWarning buildable = new V1ExpressionWarning(); + buildable.setFieldRef(fluent.getFieldRef()); + buildable.setWarning(fluent.getWarning()); + return buildable; + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ExpressionWarningFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ExpressionWarningFluent.java new file mode 100644 index 0000000000..b97d8e8413 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ExpressionWarningFluent.java @@ -0,0 +1,80 @@ +package io.kubernetes.client.openapi.models; + +import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Object; +import java.lang.String; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1ExpressionWarningFluent> extends BaseFluent{ + public V1ExpressionWarningFluent() { + } + + public V1ExpressionWarningFluent(V1ExpressionWarning instance) { + this.copyInstance(instance); + } + private String fieldRef; + private String warning; + + protected void copyInstance(V1ExpressionWarning instance) { + instance = (instance != null ? instance : new V1ExpressionWarning()); + if (instance != null) { + this.withFieldRef(instance.getFieldRef()); + this.withWarning(instance.getWarning()); + } + } + + public String getFieldRef() { + return this.fieldRef; + } + + public A withFieldRef(String fieldRef) { + this.fieldRef = fieldRef; + return (A) this; + } + + public boolean hasFieldRef() { + return this.fieldRef != null; + } + + public String getWarning() { + return this.warning; + } + + public A withWarning(String warning) { + this.warning = warning; + return (A) this; + } + + public boolean hasWarning() { + return this.warning != null; + } + + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + if (!super.equals(o)) return false; + V1ExpressionWarningFluent that = (V1ExpressionWarningFluent) o; + if (!java.util.Objects.equals(fieldRef, that.fieldRef)) return false; + if (!java.util.Objects.equals(warning, that.warning)) return false; + return true; + } + + public int hashCode() { + return java.util.Objects.hash(fieldRef, warning, super.hashCode()); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (fieldRef != null) { sb.append("fieldRef:"); sb.append(fieldRef + ","); } + if (warning != null) { sb.append("warning:"); sb.append(warning); } + sb.append("}"); + return sb.toString(); + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FieldSelectorAttributesBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FieldSelectorAttributesBuilder.java new file mode 100644 index 0000000000..52d95047e9 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FieldSelectorAttributesBuilder.java @@ -0,0 +1,32 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +public class V1FieldSelectorAttributesBuilder extends V1FieldSelectorAttributesFluent implements VisitableBuilder{ + public V1FieldSelectorAttributesBuilder() { + this(new V1FieldSelectorAttributes()); + } + + public V1FieldSelectorAttributesBuilder(V1FieldSelectorAttributesFluent fluent) { + this(fluent, new V1FieldSelectorAttributes()); + } + + public V1FieldSelectorAttributesBuilder(V1FieldSelectorAttributesFluent fluent,V1FieldSelectorAttributes instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1FieldSelectorAttributesBuilder(V1FieldSelectorAttributes instance) { + this.fluent = this; + this.copyInstance(instance); + } + V1FieldSelectorAttributesFluent fluent; + + public V1FieldSelectorAttributes build() { + V1FieldSelectorAttributes buildable = new V1FieldSelectorAttributes(); + buildable.setRawSelector(fluent.getRawSelector()); + buildable.setRequirements(fluent.buildRequirements()); + return buildable; + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FieldSelectorAttributesFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FieldSelectorAttributesFluent.java new file mode 100644 index 0000000000..4e22189422 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FieldSelectorAttributesFluent.java @@ -0,0 +1,254 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.Nested; +import java.util.ArrayList; +import java.lang.String; +import java.util.function.Predicate; +import io.kubernetes.client.fluent.BaseFluent; +import java.util.Iterator; +import java.util.Collection; +import java.lang.Object; +import java.util.List; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1FieldSelectorAttributesFluent> extends BaseFluent{ + public V1FieldSelectorAttributesFluent() { + } + + public V1FieldSelectorAttributesFluent(V1FieldSelectorAttributes instance) { + this.copyInstance(instance); + } + private String rawSelector; + private ArrayList requirements; + + protected void copyInstance(V1FieldSelectorAttributes instance) { + instance = (instance != null ? instance : new V1FieldSelectorAttributes()); + if (instance != null) { + this.withRawSelector(instance.getRawSelector()); + this.withRequirements(instance.getRequirements()); + } + } + + public String getRawSelector() { + return this.rawSelector; + } + + public A withRawSelector(String rawSelector) { + this.rawSelector = rawSelector; + return (A) this; + } + + public boolean hasRawSelector() { + return this.rawSelector != null; + } + + public A addToRequirements(int index,V1FieldSelectorRequirement item) { + if (this.requirements == null) {this.requirements = new ArrayList();} + V1FieldSelectorRequirementBuilder builder = new V1FieldSelectorRequirementBuilder(item); + if (index < 0 || index >= requirements.size()) { + _visitables.get("requirements").add(builder); + requirements.add(builder); + } else { + _visitables.get("requirements").add(builder); + requirements.add(index, builder); + } + return (A)this; + } + + public A setToRequirements(int index,V1FieldSelectorRequirement item) { + if (this.requirements == null) {this.requirements = new ArrayList();} + V1FieldSelectorRequirementBuilder builder = new V1FieldSelectorRequirementBuilder(item); + if (index < 0 || index >= requirements.size()) { + _visitables.get("requirements").add(builder); + requirements.add(builder); + } else { + _visitables.get("requirements").add(builder); + requirements.set(index, builder); + } + return (A)this; + } + + public A addToRequirements(io.kubernetes.client.openapi.models.V1FieldSelectorRequirement... items) { + if (this.requirements == null) {this.requirements = new ArrayList();} + for (V1FieldSelectorRequirement item : items) {V1FieldSelectorRequirementBuilder builder = new V1FieldSelectorRequirementBuilder(item);_visitables.get("requirements").add(builder);this.requirements.add(builder);} return (A)this; + } + + public A addAllToRequirements(Collection items) { + if (this.requirements == null) {this.requirements = new ArrayList();} + for (V1FieldSelectorRequirement item : items) {V1FieldSelectorRequirementBuilder builder = new V1FieldSelectorRequirementBuilder(item);_visitables.get("requirements").add(builder);this.requirements.add(builder);} return (A)this; + } + + public A removeFromRequirements(io.kubernetes.client.openapi.models.V1FieldSelectorRequirement... items) { + if (this.requirements == null) return (A)this; + for (V1FieldSelectorRequirement item : items) {V1FieldSelectorRequirementBuilder builder = new V1FieldSelectorRequirementBuilder(item);_visitables.get("requirements").remove(builder); this.requirements.remove(builder);} return (A)this; + } + + public A removeAllFromRequirements(Collection items) { + if (this.requirements == null) return (A)this; + for (V1FieldSelectorRequirement item : items) {V1FieldSelectorRequirementBuilder builder = new V1FieldSelectorRequirementBuilder(item);_visitables.get("requirements").remove(builder); this.requirements.remove(builder);} return (A)this; + } + + public A removeMatchingFromRequirements(Predicate predicate) { + if (requirements == null) return (A) this; + final Iterator each = requirements.iterator(); + final List visitables = _visitables.get("requirements"); + while (each.hasNext()) { + V1FieldSelectorRequirementBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A)this; + } + + public List buildRequirements() { + return this.requirements != null ? build(requirements) : null; + } + + public V1FieldSelectorRequirement buildRequirement(int index) { + return this.requirements.get(index).build(); + } + + public V1FieldSelectorRequirement buildFirstRequirement() { + return this.requirements.get(0).build(); + } + + public V1FieldSelectorRequirement buildLastRequirement() { + return this.requirements.get(requirements.size() - 1).build(); + } + + public V1FieldSelectorRequirement buildMatchingRequirement(Predicate predicate) { + for (V1FieldSelectorRequirementBuilder item : requirements) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; + } + + public boolean hasMatchingRequirement(Predicate predicate) { + for (V1FieldSelectorRequirementBuilder item : requirements) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public A withRequirements(List requirements) { + if (this.requirements != null) { + this._visitables.get("requirements").clear(); + } + if (requirements != null) { + this.requirements = new ArrayList(); + for (V1FieldSelectorRequirement item : requirements) { + this.addToRequirements(item); + } + } else { + this.requirements = null; + } + return (A) this; + } + + public A withRequirements(io.kubernetes.client.openapi.models.V1FieldSelectorRequirement... requirements) { + if (this.requirements != null) { + this.requirements.clear(); + _visitables.remove("requirements"); + } + if (requirements != null) { + for (V1FieldSelectorRequirement item : requirements) { + this.addToRequirements(item); + } + } + return (A) this; + } + + public boolean hasRequirements() { + return this.requirements != null && !this.requirements.isEmpty(); + } + + public RequirementsNested addNewRequirement() { + return new RequirementsNested(-1, null); + } + + public RequirementsNested addNewRequirementLike(V1FieldSelectorRequirement item) { + return new RequirementsNested(-1, item); + } + + public RequirementsNested setNewRequirementLike(int index,V1FieldSelectorRequirement item) { + return new RequirementsNested(index, item); + } + + public RequirementsNested editRequirement(int index) { + if (requirements.size() <= index) throw new RuntimeException("Can't edit requirements. Index exceeds size."); + return setNewRequirementLike(index, buildRequirement(index)); + } + + public RequirementsNested editFirstRequirement() { + if (requirements.size() == 0) throw new RuntimeException("Can't edit first requirements. The list is empty."); + return setNewRequirementLike(0, buildRequirement(0)); + } + + public RequirementsNested editLastRequirement() { + int index = requirements.size() - 1; + if (index < 0) throw new RuntimeException("Can't edit last requirements. The list is empty."); + return setNewRequirementLike(index, buildRequirement(index)); + } + + public RequirementsNested editMatchingRequirement(Predicate predicate) { + int index = -1; + for (int i=0;i extends V1FieldSelectorRequirementFluent> implements Nested{ + RequirementsNested(int index,V1FieldSelectorRequirement item) { + this.index = index; + this.builder = new V1FieldSelectorRequirementBuilder(this, item); + } + V1FieldSelectorRequirementBuilder builder; + int index; + + public N and() { + return (N) V1FieldSelectorAttributesFluent.this.setToRequirements(index,builder.build()); + } + + public N endRequirement() { + return and(); + } + + + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FieldSelectorRequirementBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FieldSelectorRequirementBuilder.java new file mode 100644 index 0000000000..d27008e977 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FieldSelectorRequirementBuilder.java @@ -0,0 +1,33 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +public class V1FieldSelectorRequirementBuilder extends V1FieldSelectorRequirementFluent implements VisitableBuilder{ + public V1FieldSelectorRequirementBuilder() { + this(new V1FieldSelectorRequirement()); + } + + public V1FieldSelectorRequirementBuilder(V1FieldSelectorRequirementFluent fluent) { + this(fluent, new V1FieldSelectorRequirement()); + } + + public V1FieldSelectorRequirementBuilder(V1FieldSelectorRequirementFluent fluent,V1FieldSelectorRequirement instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1FieldSelectorRequirementBuilder(V1FieldSelectorRequirement instance) { + this.fluent = this; + this.copyInstance(instance); + } + V1FieldSelectorRequirementFluent fluent; + + public V1FieldSelectorRequirement build() { + V1FieldSelectorRequirement buildable = new V1FieldSelectorRequirement(); + buildable.setKey(fluent.getKey()); + buildable.setOperator(fluent.getOperator()); + buildable.setValues(fluent.getValues()); + return buildable; + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FieldSelectorRequirementFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FieldSelectorRequirementFluent.java new file mode 100644 index 0000000000..7bc5adc71c --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FieldSelectorRequirementFluent.java @@ -0,0 +1,182 @@ +package io.kubernetes.client.openapi.models; + +import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; +import java.util.ArrayList; +import java.util.Collection; +import java.lang.Object; +import java.util.List; +import java.lang.String; +import java.util.function.Predicate; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1FieldSelectorRequirementFluent> extends BaseFluent{ + public V1FieldSelectorRequirementFluent() { + } + + public V1FieldSelectorRequirementFluent(V1FieldSelectorRequirement instance) { + this.copyInstance(instance); + } + private String key; + private String operator; + private List values; + + protected void copyInstance(V1FieldSelectorRequirement instance) { + instance = (instance != null ? instance : new V1FieldSelectorRequirement()); + if (instance != null) { + this.withKey(instance.getKey()); + this.withOperator(instance.getOperator()); + this.withValues(instance.getValues()); + } + } + + public String getKey() { + return this.key; + } + + public A withKey(String key) { + this.key = key; + return (A) this; + } + + public boolean hasKey() { + return this.key != null; + } + + public String getOperator() { + return this.operator; + } + + public A withOperator(String operator) { + this.operator = operator; + return (A) this; + } + + public boolean hasOperator() { + return this.operator != null; + } + + public A addToValues(int index,String item) { + if (this.values == null) {this.values = new ArrayList();} + this.values.add(index, item); + return (A)this; + } + + public A setToValues(int index,String item) { + if (this.values == null) {this.values = new ArrayList();} + this.values.set(index, item); return (A)this; + } + + public A addToValues(java.lang.String... items) { + if (this.values == null) {this.values = new ArrayList();} + for (String item : items) {this.values.add(item);} return (A)this; + } + + public A addAllToValues(Collection items) { + if (this.values == null) {this.values = new ArrayList();} + for (String item : items) {this.values.add(item);} return (A)this; + } + + public A removeFromValues(java.lang.String... items) { + if (this.values == null) return (A)this; + for (String item : items) { this.values.remove(item);} return (A)this; + } + + public A removeAllFromValues(Collection items) { + if (this.values == null) return (A)this; + for (String item : items) { this.values.remove(item);} return (A)this; + } + + public List getValues() { + return this.values; + } + + public String getValue(int index) { + return this.values.get(index); + } + + public String getFirstValue() { + return this.values.get(0); + } + + public String getLastValue() { + return this.values.get(values.size() - 1); + } + + public String getMatchingValue(Predicate predicate) { + for (String item : values) { + if (predicate.test(item)) { + return item; + } + } + return null; + } + + public boolean hasMatchingValue(Predicate predicate) { + for (String item : values) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public A withValues(List values) { + if (values != null) { + this.values = new ArrayList(); + for (String item : values) { + this.addToValues(item); + } + } else { + this.values = null; + } + return (A) this; + } + + public A withValues(java.lang.String... values) { + if (this.values != null) { + this.values.clear(); + _visitables.remove("values"); + } + if (values != null) { + for (String item : values) { + this.addToValues(item); + } + } + return (A) this; + } + + public boolean hasValues() { + return this.values != null && !this.values.isEmpty(); + } + + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + if (!super.equals(o)) return false; + V1FieldSelectorRequirementFluent that = (V1FieldSelectorRequirementFluent) o; + if (!java.util.Objects.equals(key, that.key)) return false; + if (!java.util.Objects.equals(operator, that.operator)) return false; + if (!java.util.Objects.equals(values, that.values)) return false; + return true; + } + + public int hashCode() { + return java.util.Objects.hash(key, operator, values, super.hashCode()); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (key != null) { sb.append("key:"); sb.append(key + ","); } + if (operator != null) { sb.append("operator:"); sb.append(operator + ","); } + if (values != null && !values.isEmpty()) { sb.append("values:"); sb.append(values); } + sb.append("}"); + return sb.toString(); + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FlowDistinguisherMethodBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FlowDistinguisherMethodBuilder.java new file mode 100644 index 0000000000..7c916c0081 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FlowDistinguisherMethodBuilder.java @@ -0,0 +1,31 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +public class V1FlowDistinguisherMethodBuilder extends V1FlowDistinguisherMethodFluent implements VisitableBuilder{ + public V1FlowDistinguisherMethodBuilder() { + this(new V1FlowDistinguisherMethod()); + } + + public V1FlowDistinguisherMethodBuilder(V1FlowDistinguisherMethodFluent fluent) { + this(fluent, new V1FlowDistinguisherMethod()); + } + + public V1FlowDistinguisherMethodBuilder(V1FlowDistinguisherMethodFluent fluent,V1FlowDistinguisherMethod instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1FlowDistinguisherMethodBuilder(V1FlowDistinguisherMethod instance) { + this.fluent = this; + this.copyInstance(instance); + } + V1FlowDistinguisherMethodFluent fluent; + + public V1FlowDistinguisherMethod build() { + V1FlowDistinguisherMethod buildable = new V1FlowDistinguisherMethod(); + buildable.setType(fluent.getType()); + return buildable; + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FlowDistinguisherMethodFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FlowDistinguisherMethodFluent.java new file mode 100644 index 0000000000..2776c02bb5 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FlowDistinguisherMethodFluent.java @@ -0,0 +1,63 @@ +package io.kubernetes.client.openapi.models; + +import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Object; +import java.lang.String; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1FlowDistinguisherMethodFluent> extends BaseFluent{ + public V1FlowDistinguisherMethodFluent() { + } + + public V1FlowDistinguisherMethodFluent(V1FlowDistinguisherMethod instance) { + this.copyInstance(instance); + } + private String type; + + protected void copyInstance(V1FlowDistinguisherMethod instance) { + instance = (instance != null ? instance : new V1FlowDistinguisherMethod()); + if (instance != null) { + this.withType(instance.getType()); + } + } + + public String getType() { + return this.type; + } + + public A withType(String type) { + this.type = type; + return (A) this; + } + + public boolean hasType() { + return this.type != null; + } + + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + if (!super.equals(o)) return false; + V1FlowDistinguisherMethodFluent that = (V1FlowDistinguisherMethodFluent) o; + if (!java.util.Objects.equals(type, that.type)) return false; + return true; + } + + public int hashCode() { + return java.util.Objects.hash(type, super.hashCode()); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (type != null) { sb.append("type:"); sb.append(type); } + sb.append("}"); + return sb.toString(); + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FlowSchemaBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FlowSchemaBuilder.java new file mode 100644 index 0000000000..53497f2d58 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FlowSchemaBuilder.java @@ -0,0 +1,35 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +public class V1FlowSchemaBuilder extends V1FlowSchemaFluent implements VisitableBuilder{ + public V1FlowSchemaBuilder() { + this(new V1FlowSchema()); + } + + public V1FlowSchemaBuilder(V1FlowSchemaFluent fluent) { + this(fluent, new V1FlowSchema()); + } + + public V1FlowSchemaBuilder(V1FlowSchemaFluent fluent,V1FlowSchema instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1FlowSchemaBuilder(V1FlowSchema instance) { + this.fluent = this; + this.copyInstance(instance); + } + V1FlowSchemaFluent fluent; + + public V1FlowSchema build() { + V1FlowSchema buildable = new V1FlowSchema(); + buildable.setApiVersion(fluent.getApiVersion()); + buildable.setKind(fluent.getKind()); + buildable.setMetadata(fluent.buildMetadata()); + buildable.setSpec(fluent.buildSpec()); + buildable.setStatus(fluent.buildStatus()); + return buildable; + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FlowSchemaConditionBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FlowSchemaConditionBuilder.java new file mode 100644 index 0000000000..34aa8213a1 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FlowSchemaConditionBuilder.java @@ -0,0 +1,35 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +public class V1FlowSchemaConditionBuilder extends V1FlowSchemaConditionFluent implements VisitableBuilder{ + public V1FlowSchemaConditionBuilder() { + this(new V1FlowSchemaCondition()); + } + + public V1FlowSchemaConditionBuilder(V1FlowSchemaConditionFluent fluent) { + this(fluent, new V1FlowSchemaCondition()); + } + + public V1FlowSchemaConditionBuilder(V1FlowSchemaConditionFluent fluent,V1FlowSchemaCondition instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1FlowSchemaConditionBuilder(V1FlowSchemaCondition instance) { + this.fluent = this; + this.copyInstance(instance); + } + V1FlowSchemaConditionFluent fluent; + + public V1FlowSchemaCondition build() { + V1FlowSchemaCondition buildable = new V1FlowSchemaCondition(); + buildable.setLastTransitionTime(fluent.getLastTransitionTime()); + buildable.setMessage(fluent.getMessage()); + buildable.setReason(fluent.getReason()); + buildable.setStatus(fluent.getStatus()); + buildable.setType(fluent.getType()); + return buildable; + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FlowSchemaConditionFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FlowSchemaConditionFluent.java new file mode 100644 index 0000000000..30608937a6 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FlowSchemaConditionFluent.java @@ -0,0 +1,132 @@ +package io.kubernetes.client.openapi.models; + +import java.time.OffsetDateTime; +import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Object; +import java.lang.String; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1FlowSchemaConditionFluent> extends BaseFluent{ + public V1FlowSchemaConditionFluent() { + } + + public V1FlowSchemaConditionFluent(V1FlowSchemaCondition instance) { + this.copyInstance(instance); + } + private OffsetDateTime lastTransitionTime; + private String message; + private String reason; + private String status; + private String type; + + protected void copyInstance(V1FlowSchemaCondition instance) { + instance = (instance != null ? instance : new V1FlowSchemaCondition()); + if (instance != null) { + this.withLastTransitionTime(instance.getLastTransitionTime()); + this.withMessage(instance.getMessage()); + this.withReason(instance.getReason()); + this.withStatus(instance.getStatus()); + this.withType(instance.getType()); + } + } + + public OffsetDateTime getLastTransitionTime() { + return this.lastTransitionTime; + } + + public A withLastTransitionTime(OffsetDateTime lastTransitionTime) { + this.lastTransitionTime = lastTransitionTime; + return (A) this; + } + + public boolean hasLastTransitionTime() { + return this.lastTransitionTime != null; + } + + public String getMessage() { + return this.message; + } + + public A withMessage(String message) { + this.message = message; + return (A) this; + } + + public boolean hasMessage() { + return this.message != null; + } + + public String getReason() { + return this.reason; + } + + public A withReason(String reason) { + this.reason = reason; + return (A) this; + } + + public boolean hasReason() { + return this.reason != null; + } + + public String getStatus() { + return this.status; + } + + public A withStatus(String status) { + this.status = status; + return (A) this; + } + + public boolean hasStatus() { + return this.status != null; + } + + public String getType() { + return this.type; + } + + public A withType(String type) { + this.type = type; + return (A) this; + } + + public boolean hasType() { + return this.type != null; + } + + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + if (!super.equals(o)) return false; + V1FlowSchemaConditionFluent that = (V1FlowSchemaConditionFluent) o; + if (!java.util.Objects.equals(lastTransitionTime, that.lastTransitionTime)) return false; + if (!java.util.Objects.equals(message, that.message)) return false; + if (!java.util.Objects.equals(reason, that.reason)) return false; + if (!java.util.Objects.equals(status, that.status)) return false; + if (!java.util.Objects.equals(type, that.type)) return false; + return true; + } + + public int hashCode() { + return java.util.Objects.hash(lastTransitionTime, message, reason, status, type, super.hashCode()); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (lastTransitionTime != null) { sb.append("lastTransitionTime:"); sb.append(lastTransitionTime + ","); } + if (message != null) { sb.append("message:"); sb.append(message + ","); } + if (reason != null) { sb.append("reason:"); sb.append(reason + ","); } + if (status != null) { sb.append("status:"); sb.append(status + ","); } + if (type != null) { sb.append("type:"); sb.append(type); } + sb.append("}"); + return sb.toString(); + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FlowSchemaFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FlowSchemaFluent.java new file mode 100644 index 0000000000..9ad7159195 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FlowSchemaFluent.java @@ -0,0 +1,260 @@ +package io.kubernetes.client.openapi.models; + +import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.Nested; +import java.lang.String; +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Object; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1FlowSchemaFluent> extends BaseFluent{ + public V1FlowSchemaFluent() { + } + + public V1FlowSchemaFluent(V1FlowSchema instance) { + this.copyInstance(instance); + } + private String apiVersion; + private String kind; + private V1ObjectMetaBuilder metadata; + private V1FlowSchemaSpecBuilder spec; + private V1FlowSchemaStatusBuilder status; + + protected void copyInstance(V1FlowSchema instance) { + instance = (instance != null ? instance : new V1FlowSchema()); + if (instance != null) { + this.withApiVersion(instance.getApiVersion()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); + this.withSpec(instance.getSpec()); + this.withStatus(instance.getStatus()); + } + } + + public String getApiVersion() { + return this.apiVersion; + } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + + public boolean hasApiVersion() { + return this.apiVersion != null; + } + + public String getKind() { + return this.kind; + } + + public A withKind(String kind) { + this.kind = kind; + return (A) this; + } + + public boolean hasKind() { + return this.kind != null; + } + + public V1ObjectMeta buildMetadata() { + return this.metadata != null ? this.metadata.build() : null; + } + + public A withMetadata(V1ObjectMeta metadata) { + this._visitables.remove("metadata"); + if (metadata != null) { + this.metadata = new V1ObjectMetaBuilder(metadata); + this._visitables.get("metadata").add(this.metadata); + } else { + this.metadata = null; + this._visitables.get("metadata").remove(this.metadata); + } + return (A) this; + } + + public boolean hasMetadata() { + return this.metadata != null; + } + + public MetadataNested withNewMetadata() { + return new MetadataNested(null); + } + + public MetadataNested withNewMetadataLike(V1ObjectMeta item) { + return new MetadataNested(item); + } + + public MetadataNested editMetadata() { + return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(null)); + } + + public MetadataNested editOrNewMetadata() { + return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(new V1ObjectMetaBuilder().build())); + } + + public MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { + return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(item)); + } + + public V1FlowSchemaSpec buildSpec() { + return this.spec != null ? this.spec.build() : null; + } + + public A withSpec(V1FlowSchemaSpec spec) { + this._visitables.remove("spec"); + if (spec != null) { + this.spec = new V1FlowSchemaSpecBuilder(spec); + this._visitables.get("spec").add(this.spec); + } else { + this.spec = null; + this._visitables.get("spec").remove(this.spec); + } + return (A) this; + } + + public boolean hasSpec() { + return this.spec != null; + } + + public SpecNested withNewSpec() { + return new SpecNested(null); + } + + public SpecNested withNewSpecLike(V1FlowSchemaSpec item) { + return new SpecNested(item); + } + + public SpecNested editSpec() { + return withNewSpecLike(java.util.Optional.ofNullable(buildSpec()).orElse(null)); + } + + public SpecNested editOrNewSpec() { + return withNewSpecLike(java.util.Optional.ofNullable(buildSpec()).orElse(new V1FlowSchemaSpecBuilder().build())); + } + + public SpecNested editOrNewSpecLike(V1FlowSchemaSpec item) { + return withNewSpecLike(java.util.Optional.ofNullable(buildSpec()).orElse(item)); + } + + public V1FlowSchemaStatus buildStatus() { + return this.status != null ? this.status.build() : null; + } + + public A withStatus(V1FlowSchemaStatus status) { + this._visitables.remove("status"); + if (status != null) { + this.status = new V1FlowSchemaStatusBuilder(status); + this._visitables.get("status").add(this.status); + } else { + this.status = null; + this._visitables.get("status").remove(this.status); + } + return (A) this; + } + + public boolean hasStatus() { + return this.status != null; + } + + public StatusNested withNewStatus() { + return new StatusNested(null); + } + + public StatusNested withNewStatusLike(V1FlowSchemaStatus item) { + return new StatusNested(item); + } + + public StatusNested editStatus() { + return withNewStatusLike(java.util.Optional.ofNullable(buildStatus()).orElse(null)); + } + + public StatusNested editOrNewStatus() { + return withNewStatusLike(java.util.Optional.ofNullable(buildStatus()).orElse(new V1FlowSchemaStatusBuilder().build())); + } + + public StatusNested editOrNewStatusLike(V1FlowSchemaStatus item) { + return withNewStatusLike(java.util.Optional.ofNullable(buildStatus()).orElse(item)); + } + + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + if (!super.equals(o)) return false; + V1FlowSchemaFluent that = (V1FlowSchemaFluent) o; + if (!java.util.Objects.equals(apiVersion, that.apiVersion)) return false; + if (!java.util.Objects.equals(kind, that.kind)) return false; + if (!java.util.Objects.equals(metadata, that.metadata)) return false; + if (!java.util.Objects.equals(spec, that.spec)) return false; + if (!java.util.Objects.equals(status, that.status)) return false; + return true; + } + + public int hashCode() { + return java.util.Objects.hash(apiVersion, kind, metadata, spec, status, super.hashCode()); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (apiVersion != null) { sb.append("apiVersion:"); sb.append(apiVersion + ","); } + if (kind != null) { sb.append("kind:"); sb.append(kind + ","); } + if (metadata != null) { sb.append("metadata:"); sb.append(metadata + ","); } + if (spec != null) { sb.append("spec:"); sb.append(spec + ","); } + if (status != null) { sb.append("status:"); sb.append(status); } + sb.append("}"); + return sb.toString(); + } + public class MetadataNested extends V1ObjectMetaFluent> implements Nested{ + MetadataNested(V1ObjectMeta item) { + this.builder = new V1ObjectMetaBuilder(this, item); + } + V1ObjectMetaBuilder builder; + + public N and() { + return (N) V1FlowSchemaFluent.this.withMetadata(builder.build()); + } + + public N endMetadata() { + return and(); + } + + + } + public class SpecNested extends V1FlowSchemaSpecFluent> implements Nested{ + SpecNested(V1FlowSchemaSpec item) { + this.builder = new V1FlowSchemaSpecBuilder(this, item); + } + V1FlowSchemaSpecBuilder builder; + + public N and() { + return (N) V1FlowSchemaFluent.this.withSpec(builder.build()); + } + + public N endSpec() { + return and(); + } + + + } + public class StatusNested extends V1FlowSchemaStatusFluent> implements Nested{ + StatusNested(V1FlowSchemaStatus item) { + this.builder = new V1FlowSchemaStatusBuilder(this, item); + } + V1FlowSchemaStatusBuilder builder; + + public N and() { + return (N) V1FlowSchemaFluent.this.withStatus(builder.build()); + } + + public N endStatus() { + return and(); + } + + + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FlowSchemaListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FlowSchemaListBuilder.java new file mode 100644 index 0000000000..0d75a42920 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FlowSchemaListBuilder.java @@ -0,0 +1,34 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +public class V1FlowSchemaListBuilder extends V1FlowSchemaListFluent implements VisitableBuilder{ + public V1FlowSchemaListBuilder() { + this(new V1FlowSchemaList()); + } + + public V1FlowSchemaListBuilder(V1FlowSchemaListFluent fluent) { + this(fluent, new V1FlowSchemaList()); + } + + public V1FlowSchemaListBuilder(V1FlowSchemaListFluent fluent,V1FlowSchemaList instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1FlowSchemaListBuilder(V1FlowSchemaList instance) { + this.fluent = this; + this.copyInstance(instance); + } + V1FlowSchemaListFluent fluent; + + public V1FlowSchemaList build() { + V1FlowSchemaList buildable = new V1FlowSchemaList(); + buildable.setApiVersion(fluent.getApiVersion()); + buildable.setItems(fluent.buildItems()); + buildable.setKind(fluent.getKind()); + buildable.setMetadata(fluent.buildMetadata()); + return buildable; + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FlowSchemaListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FlowSchemaListFluent.java new file mode 100644 index 0000000000..74c192900d --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FlowSchemaListFluent.java @@ -0,0 +1,331 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.Nested; +import java.util.ArrayList; +import java.lang.String; +import java.util.function.Predicate; +import io.kubernetes.client.fluent.BaseFluent; +import java.util.Iterator; +import java.util.Collection; +import java.lang.Object; +import java.util.List; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1FlowSchemaListFluent> extends BaseFluent{ + public V1FlowSchemaListFluent() { + } + + public V1FlowSchemaListFluent(V1FlowSchemaList instance) { + this.copyInstance(instance); + } + private String apiVersion; + private ArrayList items; + private String kind; + private V1ListMetaBuilder metadata; + + protected void copyInstance(V1FlowSchemaList instance) { + instance = (instance != null ? instance : new V1FlowSchemaList()); + if (instance != null) { + this.withApiVersion(instance.getApiVersion()); + this.withItems(instance.getItems()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); + } + } + + public String getApiVersion() { + return this.apiVersion; + } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + + public boolean hasApiVersion() { + return this.apiVersion != null; + } + + public A addToItems(int index,V1FlowSchema item) { + if (this.items == null) {this.items = new ArrayList();} + V1FlowSchemaBuilder builder = new V1FlowSchemaBuilder(item); + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.add(index, builder); + } + return (A)this; + } + + public A setToItems(int index,V1FlowSchema item) { + if (this.items == null) {this.items = new ArrayList();} + V1FlowSchemaBuilder builder = new V1FlowSchemaBuilder(item); + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.set(index, builder); + } + return (A)this; + } + + public A addToItems(io.kubernetes.client.openapi.models.V1FlowSchema... items) { + if (this.items == null) {this.items = new ArrayList();} + for (V1FlowSchema item : items) {V1FlowSchemaBuilder builder = new V1FlowSchemaBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; + } + + public A addAllToItems(Collection items) { + if (this.items == null) {this.items = new ArrayList();} + for (V1FlowSchema item : items) {V1FlowSchemaBuilder builder = new V1FlowSchemaBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; + } + + public A removeFromItems(io.kubernetes.client.openapi.models.V1FlowSchema... items) { + if (this.items == null) return (A)this; + for (V1FlowSchema item : items) {V1FlowSchemaBuilder builder = new V1FlowSchemaBuilder(item);_visitables.get("items").remove(builder); this.items.remove(builder);} return (A)this; + } + + public A removeAllFromItems(Collection items) { + if (this.items == null) return (A)this; + for (V1FlowSchema item : items) {V1FlowSchemaBuilder builder = new V1FlowSchemaBuilder(item);_visitables.get("items").remove(builder); this.items.remove(builder);} return (A)this; + } + + public A removeMatchingFromItems(Predicate predicate) { + if (items == null) return (A) this; + final Iterator each = items.iterator(); + final List visitables = _visitables.get("items"); + while (each.hasNext()) { + V1FlowSchemaBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A)this; + } + + public List buildItems() { + return this.items != null ? build(items) : null; + } + + public V1FlowSchema buildItem(int index) { + return this.items.get(index).build(); + } + + public V1FlowSchema buildFirstItem() { + return this.items.get(0).build(); + } + + public V1FlowSchema buildLastItem() { + return this.items.get(items.size() - 1).build(); + } + + public V1FlowSchema buildMatchingItem(Predicate predicate) { + for (V1FlowSchemaBuilder item : items) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; + } + + public boolean hasMatchingItem(Predicate predicate) { + for (V1FlowSchemaBuilder item : items) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public A withItems(List items) { + if (this.items != null) { + this._visitables.get("items").clear(); + } + if (items != null) { + this.items = new ArrayList(); + for (V1FlowSchema item : items) { + this.addToItems(item); + } + } else { + this.items = null; + } + return (A) this; + } + + public A withItems(io.kubernetes.client.openapi.models.V1FlowSchema... items) { + if (this.items != null) { + this.items.clear(); + _visitables.remove("items"); + } + if (items != null) { + for (V1FlowSchema item : items) { + this.addToItems(item); + } + } + return (A) this; + } + + public boolean hasItems() { + return this.items != null && !this.items.isEmpty(); + } + + public ItemsNested addNewItem() { + return new ItemsNested(-1, null); + } + + public ItemsNested addNewItemLike(V1FlowSchema item) { + return new ItemsNested(-1, item); + } + + public ItemsNested setNewItemLike(int index,V1FlowSchema item) { + return new ItemsNested(index, item); + } + + public ItemsNested editItem(int index) { + if (items.size() <= index) throw new RuntimeException("Can't edit items. Index exceeds size."); + return setNewItemLike(index, buildItem(index)); + } + + public ItemsNested editFirstItem() { + if (items.size() == 0) throw new RuntimeException("Can't edit first items. The list is empty."); + return setNewItemLike(0, buildItem(0)); + } + + public ItemsNested editLastItem() { + int index = items.size() - 1; + if (index < 0) throw new RuntimeException("Can't edit last items. The list is empty."); + return setNewItemLike(index, buildItem(index)); + } + + public ItemsNested editMatchingItem(Predicate predicate) { + int index = -1; + for (int i=0;i withNewMetadata() { + return new MetadataNested(null); + } + + public MetadataNested withNewMetadataLike(V1ListMeta item) { + return new MetadataNested(item); + } + + public MetadataNested editMetadata() { + return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(null)); + } + + public MetadataNested editOrNewMetadata() { + return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(new V1ListMetaBuilder().build())); + } + + public MetadataNested editOrNewMetadataLike(V1ListMeta item) { + return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(item)); + } + + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + if (!super.equals(o)) return false; + V1FlowSchemaListFluent that = (V1FlowSchemaListFluent) o; + if (!java.util.Objects.equals(apiVersion, that.apiVersion)) return false; + if (!java.util.Objects.equals(items, that.items)) return false; + if (!java.util.Objects.equals(kind, that.kind)) return false; + if (!java.util.Objects.equals(metadata, that.metadata)) return false; + return true; + } + + public int hashCode() { + return java.util.Objects.hash(apiVersion, items, kind, metadata, super.hashCode()); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (apiVersion != null) { sb.append("apiVersion:"); sb.append(apiVersion + ","); } + if (items != null && !items.isEmpty()) { sb.append("items:"); sb.append(items + ","); } + if (kind != null) { sb.append("kind:"); sb.append(kind + ","); } + if (metadata != null) { sb.append("metadata:"); sb.append(metadata); } + sb.append("}"); + return sb.toString(); + } + public class ItemsNested extends V1FlowSchemaFluent> implements Nested{ + ItemsNested(int index,V1FlowSchema item) { + this.index = index; + this.builder = new V1FlowSchemaBuilder(this, item); + } + V1FlowSchemaBuilder builder; + int index; + + public N and() { + return (N) V1FlowSchemaListFluent.this.setToItems(index,builder.build()); + } + + public N endItem() { + return and(); + } + + + } + public class MetadataNested extends V1ListMetaFluent> implements Nested{ + MetadataNested(V1ListMeta item) { + this.builder = new V1ListMetaBuilder(this, item); + } + V1ListMetaBuilder builder; + + public N and() { + return (N) V1FlowSchemaListFluent.this.withMetadata(builder.build()); + } + + public N endMetadata() { + return and(); + } + + + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FlowSchemaSpecBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FlowSchemaSpecBuilder.java new file mode 100644 index 0000000000..e877eb7a68 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FlowSchemaSpecBuilder.java @@ -0,0 +1,34 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +public class V1FlowSchemaSpecBuilder extends V1FlowSchemaSpecFluent implements VisitableBuilder{ + public V1FlowSchemaSpecBuilder() { + this(new V1FlowSchemaSpec()); + } + + public V1FlowSchemaSpecBuilder(V1FlowSchemaSpecFluent fluent) { + this(fluent, new V1FlowSchemaSpec()); + } + + public V1FlowSchemaSpecBuilder(V1FlowSchemaSpecFluent fluent,V1FlowSchemaSpec instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1FlowSchemaSpecBuilder(V1FlowSchemaSpec instance) { + this.fluent = this; + this.copyInstance(instance); + } + V1FlowSchemaSpecFluent fluent; + + public V1FlowSchemaSpec build() { + V1FlowSchemaSpec buildable = new V1FlowSchemaSpec(); + buildable.setDistinguisherMethod(fluent.buildDistinguisherMethod()); + buildable.setMatchingPrecedence(fluent.getMatchingPrecedence()); + buildable.setPriorityLevelConfiguration(fluent.buildPriorityLevelConfiguration()); + buildable.setRules(fluent.buildRules()); + return buildable; + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FlowSchemaSpecFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FlowSchemaSpecFluent.java new file mode 100644 index 0000000000..f47400aeb4 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FlowSchemaSpecFluent.java @@ -0,0 +1,375 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.Nested; +import java.util.ArrayList; +import java.lang.String; +import java.util.function.Predicate; +import io.kubernetes.client.fluent.BaseFluent; +import java.util.Iterator; +import java.util.List; +import java.lang.Integer; +import java.util.Collection; +import java.lang.Object; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1FlowSchemaSpecFluent> extends BaseFluent{ + public V1FlowSchemaSpecFluent() { + } + + public V1FlowSchemaSpecFluent(V1FlowSchemaSpec instance) { + this.copyInstance(instance); + } + private V1FlowDistinguisherMethodBuilder distinguisherMethod; + private Integer matchingPrecedence; + private V1PriorityLevelConfigurationReferenceBuilder priorityLevelConfiguration; + private ArrayList rules; + + protected void copyInstance(V1FlowSchemaSpec instance) { + instance = (instance != null ? instance : new V1FlowSchemaSpec()); + if (instance != null) { + this.withDistinguisherMethod(instance.getDistinguisherMethod()); + this.withMatchingPrecedence(instance.getMatchingPrecedence()); + this.withPriorityLevelConfiguration(instance.getPriorityLevelConfiguration()); + this.withRules(instance.getRules()); + } + } + + public V1FlowDistinguisherMethod buildDistinguisherMethod() { + return this.distinguisherMethod != null ? this.distinguisherMethod.build() : null; + } + + public A withDistinguisherMethod(V1FlowDistinguisherMethod distinguisherMethod) { + this._visitables.remove("distinguisherMethod"); + if (distinguisherMethod != null) { + this.distinguisherMethod = new V1FlowDistinguisherMethodBuilder(distinguisherMethod); + this._visitables.get("distinguisherMethod").add(this.distinguisherMethod); + } else { + this.distinguisherMethod = null; + this._visitables.get("distinguisherMethod").remove(this.distinguisherMethod); + } + return (A) this; + } + + public boolean hasDistinguisherMethod() { + return this.distinguisherMethod != null; + } + + public DistinguisherMethodNested withNewDistinguisherMethod() { + return new DistinguisherMethodNested(null); + } + + public DistinguisherMethodNested withNewDistinguisherMethodLike(V1FlowDistinguisherMethod item) { + return new DistinguisherMethodNested(item); + } + + public DistinguisherMethodNested editDistinguisherMethod() { + return withNewDistinguisherMethodLike(java.util.Optional.ofNullable(buildDistinguisherMethod()).orElse(null)); + } + + public DistinguisherMethodNested editOrNewDistinguisherMethod() { + return withNewDistinguisherMethodLike(java.util.Optional.ofNullable(buildDistinguisherMethod()).orElse(new V1FlowDistinguisherMethodBuilder().build())); + } + + public DistinguisherMethodNested editOrNewDistinguisherMethodLike(V1FlowDistinguisherMethod item) { + return withNewDistinguisherMethodLike(java.util.Optional.ofNullable(buildDistinguisherMethod()).orElse(item)); + } + + public Integer getMatchingPrecedence() { + return this.matchingPrecedence; + } + + public A withMatchingPrecedence(Integer matchingPrecedence) { + this.matchingPrecedence = matchingPrecedence; + return (A) this; + } + + public boolean hasMatchingPrecedence() { + return this.matchingPrecedence != null; + } + + public V1PriorityLevelConfigurationReference buildPriorityLevelConfiguration() { + return this.priorityLevelConfiguration != null ? this.priorityLevelConfiguration.build() : null; + } + + public A withPriorityLevelConfiguration(V1PriorityLevelConfigurationReference priorityLevelConfiguration) { + this._visitables.remove("priorityLevelConfiguration"); + if (priorityLevelConfiguration != null) { + this.priorityLevelConfiguration = new V1PriorityLevelConfigurationReferenceBuilder(priorityLevelConfiguration); + this._visitables.get("priorityLevelConfiguration").add(this.priorityLevelConfiguration); + } else { + this.priorityLevelConfiguration = null; + this._visitables.get("priorityLevelConfiguration").remove(this.priorityLevelConfiguration); + } + return (A) this; + } + + public boolean hasPriorityLevelConfiguration() { + return this.priorityLevelConfiguration != null; + } + + public PriorityLevelConfigurationNested withNewPriorityLevelConfiguration() { + return new PriorityLevelConfigurationNested(null); + } + + public PriorityLevelConfigurationNested withNewPriorityLevelConfigurationLike(V1PriorityLevelConfigurationReference item) { + return new PriorityLevelConfigurationNested(item); + } + + public PriorityLevelConfigurationNested editPriorityLevelConfiguration() { + return withNewPriorityLevelConfigurationLike(java.util.Optional.ofNullable(buildPriorityLevelConfiguration()).orElse(null)); + } + + public PriorityLevelConfigurationNested editOrNewPriorityLevelConfiguration() { + return withNewPriorityLevelConfigurationLike(java.util.Optional.ofNullable(buildPriorityLevelConfiguration()).orElse(new V1PriorityLevelConfigurationReferenceBuilder().build())); + } + + public PriorityLevelConfigurationNested editOrNewPriorityLevelConfigurationLike(V1PriorityLevelConfigurationReference item) { + return withNewPriorityLevelConfigurationLike(java.util.Optional.ofNullable(buildPriorityLevelConfiguration()).orElse(item)); + } + + public A addToRules(int index,V1PolicyRulesWithSubjects item) { + if (this.rules == null) {this.rules = new ArrayList();} + V1PolicyRulesWithSubjectsBuilder builder = new V1PolicyRulesWithSubjectsBuilder(item); + if (index < 0 || index >= rules.size()) { + _visitables.get("rules").add(builder); + rules.add(builder); + } else { + _visitables.get("rules").add(builder); + rules.add(index, builder); + } + return (A)this; + } + + public A setToRules(int index,V1PolicyRulesWithSubjects item) { + if (this.rules == null) {this.rules = new ArrayList();} + V1PolicyRulesWithSubjectsBuilder builder = new V1PolicyRulesWithSubjectsBuilder(item); + if (index < 0 || index >= rules.size()) { + _visitables.get("rules").add(builder); + rules.add(builder); + } else { + _visitables.get("rules").add(builder); + rules.set(index, builder); + } + return (A)this; + } + + public A addToRules(io.kubernetes.client.openapi.models.V1PolicyRulesWithSubjects... items) { + if (this.rules == null) {this.rules = new ArrayList();} + for (V1PolicyRulesWithSubjects item : items) {V1PolicyRulesWithSubjectsBuilder builder = new V1PolicyRulesWithSubjectsBuilder(item);_visitables.get("rules").add(builder);this.rules.add(builder);} return (A)this; + } + + public A addAllToRules(Collection items) { + if (this.rules == null) {this.rules = new ArrayList();} + for (V1PolicyRulesWithSubjects item : items) {V1PolicyRulesWithSubjectsBuilder builder = new V1PolicyRulesWithSubjectsBuilder(item);_visitables.get("rules").add(builder);this.rules.add(builder);} return (A)this; + } + + public A removeFromRules(io.kubernetes.client.openapi.models.V1PolicyRulesWithSubjects... items) { + if (this.rules == null) return (A)this; + for (V1PolicyRulesWithSubjects item : items) {V1PolicyRulesWithSubjectsBuilder builder = new V1PolicyRulesWithSubjectsBuilder(item);_visitables.get("rules").remove(builder); this.rules.remove(builder);} return (A)this; + } + + public A removeAllFromRules(Collection items) { + if (this.rules == null) return (A)this; + for (V1PolicyRulesWithSubjects item : items) {V1PolicyRulesWithSubjectsBuilder builder = new V1PolicyRulesWithSubjectsBuilder(item);_visitables.get("rules").remove(builder); this.rules.remove(builder);} return (A)this; + } + + public A removeMatchingFromRules(Predicate predicate) { + if (rules == null) return (A) this; + final Iterator each = rules.iterator(); + final List visitables = _visitables.get("rules"); + while (each.hasNext()) { + V1PolicyRulesWithSubjectsBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A)this; + } + + public List buildRules() { + return this.rules != null ? build(rules) : null; + } + + public V1PolicyRulesWithSubjects buildRule(int index) { + return this.rules.get(index).build(); + } + + public V1PolicyRulesWithSubjects buildFirstRule() { + return this.rules.get(0).build(); + } + + public V1PolicyRulesWithSubjects buildLastRule() { + return this.rules.get(rules.size() - 1).build(); + } + + public V1PolicyRulesWithSubjects buildMatchingRule(Predicate predicate) { + for (V1PolicyRulesWithSubjectsBuilder item : rules) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; + } + + public boolean hasMatchingRule(Predicate predicate) { + for (V1PolicyRulesWithSubjectsBuilder item : rules) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public A withRules(List rules) { + if (this.rules != null) { + this._visitables.get("rules").clear(); + } + if (rules != null) { + this.rules = new ArrayList(); + for (V1PolicyRulesWithSubjects item : rules) { + this.addToRules(item); + } + } else { + this.rules = null; + } + return (A) this; + } + + public A withRules(io.kubernetes.client.openapi.models.V1PolicyRulesWithSubjects... rules) { + if (this.rules != null) { + this.rules.clear(); + _visitables.remove("rules"); + } + if (rules != null) { + for (V1PolicyRulesWithSubjects item : rules) { + this.addToRules(item); + } + } + return (A) this; + } + + public boolean hasRules() { + return this.rules != null && !this.rules.isEmpty(); + } + + public RulesNested addNewRule() { + return new RulesNested(-1, null); + } + + public RulesNested addNewRuleLike(V1PolicyRulesWithSubjects item) { + return new RulesNested(-1, item); + } + + public RulesNested setNewRuleLike(int index,V1PolicyRulesWithSubjects item) { + return new RulesNested(index, item); + } + + public RulesNested editRule(int index) { + if (rules.size() <= index) throw new RuntimeException("Can't edit rules. Index exceeds size."); + return setNewRuleLike(index, buildRule(index)); + } + + public RulesNested editFirstRule() { + if (rules.size() == 0) throw new RuntimeException("Can't edit first rules. The list is empty."); + return setNewRuleLike(0, buildRule(0)); + } + + public RulesNested editLastRule() { + int index = rules.size() - 1; + if (index < 0) throw new RuntimeException("Can't edit last rules. The list is empty."); + return setNewRuleLike(index, buildRule(index)); + } + + public RulesNested editMatchingRule(Predicate predicate) { + int index = -1; + for (int i=0;i extends V1FlowDistinguisherMethodFluent> implements Nested{ + DistinguisherMethodNested(V1FlowDistinguisherMethod item) { + this.builder = new V1FlowDistinguisherMethodBuilder(this, item); + } + V1FlowDistinguisherMethodBuilder builder; + + public N and() { + return (N) V1FlowSchemaSpecFluent.this.withDistinguisherMethod(builder.build()); + } + + public N endDistinguisherMethod() { + return and(); + } + + + } + public class PriorityLevelConfigurationNested extends V1PriorityLevelConfigurationReferenceFluent> implements Nested{ + PriorityLevelConfigurationNested(V1PriorityLevelConfigurationReference item) { + this.builder = new V1PriorityLevelConfigurationReferenceBuilder(this, item); + } + V1PriorityLevelConfigurationReferenceBuilder builder; + + public N and() { + return (N) V1FlowSchemaSpecFluent.this.withPriorityLevelConfiguration(builder.build()); + } + + public N endPriorityLevelConfiguration() { + return and(); + } + + + } + public class RulesNested extends V1PolicyRulesWithSubjectsFluent> implements Nested{ + RulesNested(int index,V1PolicyRulesWithSubjects item) { + this.index = index; + this.builder = new V1PolicyRulesWithSubjectsBuilder(this, item); + } + V1PolicyRulesWithSubjectsBuilder builder; + int index; + + public N and() { + return (N) V1FlowSchemaSpecFluent.this.setToRules(index,builder.build()); + } + + public N endRule() { + return and(); + } + + + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FlowSchemaStatusBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FlowSchemaStatusBuilder.java new file mode 100644 index 0000000000..2c38494609 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FlowSchemaStatusBuilder.java @@ -0,0 +1,31 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +public class V1FlowSchemaStatusBuilder extends V1FlowSchemaStatusFluent implements VisitableBuilder{ + public V1FlowSchemaStatusBuilder() { + this(new V1FlowSchemaStatus()); + } + + public V1FlowSchemaStatusBuilder(V1FlowSchemaStatusFluent fluent) { + this(fluent, new V1FlowSchemaStatus()); + } + + public V1FlowSchemaStatusBuilder(V1FlowSchemaStatusFluent fluent,V1FlowSchemaStatus instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1FlowSchemaStatusBuilder(V1FlowSchemaStatus instance) { + this.fluent = this; + this.copyInstance(instance); + } + V1FlowSchemaStatusFluent fluent; + + public V1FlowSchemaStatus build() { + V1FlowSchemaStatus buildable = new V1FlowSchemaStatus(); + buildable.setConditions(fluent.buildConditions()); + return buildable; + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FlowSchemaStatusFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FlowSchemaStatusFluent.java new file mode 100644 index 0000000000..02526cc52a --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FlowSchemaStatusFluent.java @@ -0,0 +1,237 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.Nested; +import java.util.ArrayList; +import java.lang.String; +import java.util.function.Predicate; +import io.kubernetes.client.fluent.BaseFluent; +import java.util.Iterator; +import java.util.Collection; +import java.lang.Object; +import java.util.List; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1FlowSchemaStatusFluent> extends BaseFluent{ + public V1FlowSchemaStatusFluent() { + } + + public V1FlowSchemaStatusFluent(V1FlowSchemaStatus instance) { + this.copyInstance(instance); + } + private ArrayList conditions; + + protected void copyInstance(V1FlowSchemaStatus instance) { + instance = (instance != null ? instance : new V1FlowSchemaStatus()); + if (instance != null) { + this.withConditions(instance.getConditions()); + } + } + + public A addToConditions(int index,V1FlowSchemaCondition item) { + if (this.conditions == null) {this.conditions = new ArrayList();} + V1FlowSchemaConditionBuilder builder = new V1FlowSchemaConditionBuilder(item); + if (index < 0 || index >= conditions.size()) { + _visitables.get("conditions").add(builder); + conditions.add(builder); + } else { + _visitables.get("conditions").add(builder); + conditions.add(index, builder); + } + return (A)this; + } + + public A setToConditions(int index,V1FlowSchemaCondition item) { + if (this.conditions == null) {this.conditions = new ArrayList();} + V1FlowSchemaConditionBuilder builder = new V1FlowSchemaConditionBuilder(item); + if (index < 0 || index >= conditions.size()) { + _visitables.get("conditions").add(builder); + conditions.add(builder); + } else { + _visitables.get("conditions").add(builder); + conditions.set(index, builder); + } + return (A)this; + } + + public A addToConditions(io.kubernetes.client.openapi.models.V1FlowSchemaCondition... items) { + if (this.conditions == null) {this.conditions = new ArrayList();} + for (V1FlowSchemaCondition item : items) {V1FlowSchemaConditionBuilder builder = new V1FlowSchemaConditionBuilder(item);_visitables.get("conditions").add(builder);this.conditions.add(builder);} return (A)this; + } + + public A addAllToConditions(Collection items) { + if (this.conditions == null) {this.conditions = new ArrayList();} + for (V1FlowSchemaCondition item : items) {V1FlowSchemaConditionBuilder builder = new V1FlowSchemaConditionBuilder(item);_visitables.get("conditions").add(builder);this.conditions.add(builder);} return (A)this; + } + + public A removeFromConditions(io.kubernetes.client.openapi.models.V1FlowSchemaCondition... items) { + if (this.conditions == null) return (A)this; + for (V1FlowSchemaCondition item : items) {V1FlowSchemaConditionBuilder builder = new V1FlowSchemaConditionBuilder(item);_visitables.get("conditions").remove(builder); this.conditions.remove(builder);} return (A)this; + } + + public A removeAllFromConditions(Collection items) { + if (this.conditions == null) return (A)this; + for (V1FlowSchemaCondition item : items) {V1FlowSchemaConditionBuilder builder = new V1FlowSchemaConditionBuilder(item);_visitables.get("conditions").remove(builder); this.conditions.remove(builder);} return (A)this; + } + + public A removeMatchingFromConditions(Predicate predicate) { + if (conditions == null) return (A) this; + final Iterator each = conditions.iterator(); + final List visitables = _visitables.get("conditions"); + while (each.hasNext()) { + V1FlowSchemaConditionBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A)this; + } + + public List buildConditions() { + return this.conditions != null ? build(conditions) : null; + } + + public V1FlowSchemaCondition buildCondition(int index) { + return this.conditions.get(index).build(); + } + + public V1FlowSchemaCondition buildFirstCondition() { + return this.conditions.get(0).build(); + } + + public V1FlowSchemaCondition buildLastCondition() { + return this.conditions.get(conditions.size() - 1).build(); + } + + public V1FlowSchemaCondition buildMatchingCondition(Predicate predicate) { + for (V1FlowSchemaConditionBuilder item : conditions) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; + } + + public boolean hasMatchingCondition(Predicate predicate) { + for (V1FlowSchemaConditionBuilder item : conditions) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public A withConditions(List conditions) { + if (this.conditions != null) { + this._visitables.get("conditions").clear(); + } + if (conditions != null) { + this.conditions = new ArrayList(); + for (V1FlowSchemaCondition item : conditions) { + this.addToConditions(item); + } + } else { + this.conditions = null; + } + return (A) this; + } + + public A withConditions(io.kubernetes.client.openapi.models.V1FlowSchemaCondition... conditions) { + if (this.conditions != null) { + this.conditions.clear(); + _visitables.remove("conditions"); + } + if (conditions != null) { + for (V1FlowSchemaCondition item : conditions) { + this.addToConditions(item); + } + } + return (A) this; + } + + public boolean hasConditions() { + return this.conditions != null && !this.conditions.isEmpty(); + } + + public ConditionsNested addNewCondition() { + return new ConditionsNested(-1, null); + } + + public ConditionsNested addNewConditionLike(V1FlowSchemaCondition item) { + return new ConditionsNested(-1, item); + } + + public ConditionsNested setNewConditionLike(int index,V1FlowSchemaCondition item) { + return new ConditionsNested(index, item); + } + + public ConditionsNested editCondition(int index) { + if (conditions.size() <= index) throw new RuntimeException("Can't edit conditions. Index exceeds size."); + return setNewConditionLike(index, buildCondition(index)); + } + + public ConditionsNested editFirstCondition() { + if (conditions.size() == 0) throw new RuntimeException("Can't edit first conditions. The list is empty."); + return setNewConditionLike(0, buildCondition(0)); + } + + public ConditionsNested editLastCondition() { + int index = conditions.size() - 1; + if (index < 0) throw new RuntimeException("Can't edit last conditions. The list is empty."); + return setNewConditionLike(index, buildCondition(index)); + } + + public ConditionsNested editMatchingCondition(Predicate predicate) { + int index = -1; + for (int i=0;i extends V1FlowSchemaConditionFluent> implements Nested{ + ConditionsNested(int index,V1FlowSchemaCondition item) { + this.index = index; + this.builder = new V1FlowSchemaConditionBuilder(this, item); + } + V1FlowSchemaConditionBuilder builder; + int index; + + public N and() { + return (N) V1FlowSchemaStatusFluent.this.setToConditions(index,builder.build()); + } + + public N endCondition() { + return and(); + } + + + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ForNodeBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ForNodeBuilder.java new file mode 100644 index 0000000000..a8acd0a38f --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ForNodeBuilder.java @@ -0,0 +1,31 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +public class V1ForNodeBuilder extends V1ForNodeFluent implements VisitableBuilder{ + public V1ForNodeBuilder() { + this(new V1ForNode()); + } + + public V1ForNodeBuilder(V1ForNodeFluent fluent) { + this(fluent, new V1ForNode()); + } + + public V1ForNodeBuilder(V1ForNodeFluent fluent,V1ForNode instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1ForNodeBuilder(V1ForNode instance) { + this.fluent = this; + this.copyInstance(instance); + } + V1ForNodeFluent fluent; + + public V1ForNode build() { + V1ForNode buildable = new V1ForNode(); + buildable.setName(fluent.getName()); + return buildable; + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ForNodeFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ForNodeFluent.java new file mode 100644 index 0000000000..93ad3484d0 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ForNodeFluent.java @@ -0,0 +1,63 @@ +package io.kubernetes.client.openapi.models; + +import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Object; +import java.lang.String; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1ForNodeFluent> extends BaseFluent{ + public V1ForNodeFluent() { + } + + public V1ForNodeFluent(V1ForNode instance) { + this.copyInstance(instance); + } + private String name; + + protected void copyInstance(V1ForNode instance) { + instance = (instance != null ? instance : new V1ForNode()); + if (instance != null) { + this.withName(instance.getName()); + } + } + + public String getName() { + return this.name; + } + + public A withName(String name) { + this.name = name; + return (A) this; + } + + public boolean hasName() { + return this.name != null; + } + + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + if (!super.equals(o)) return false; + V1ForNodeFluent that = (V1ForNodeFluent) o; + if (!java.util.Objects.equals(name, that.name)) return false; + return true; + } + + public int hashCode() { + return java.util.Objects.hash(name, super.hashCode()); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (name != null) { sb.append("name:"); sb.append(name); } + sb.append("}"); + return sb.toString(); + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1GroupSubjectBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1GroupSubjectBuilder.java new file mode 100644 index 0000000000..72503449c3 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1GroupSubjectBuilder.java @@ -0,0 +1,31 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +public class V1GroupSubjectBuilder extends V1GroupSubjectFluent implements VisitableBuilder{ + public V1GroupSubjectBuilder() { + this(new V1GroupSubject()); + } + + public V1GroupSubjectBuilder(V1GroupSubjectFluent fluent) { + this(fluent, new V1GroupSubject()); + } + + public V1GroupSubjectBuilder(V1GroupSubjectFluent fluent,V1GroupSubject instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1GroupSubjectBuilder(V1GroupSubject instance) { + this.fluent = this; + this.copyInstance(instance); + } + V1GroupSubjectFluent fluent; + + public V1GroupSubject build() { + V1GroupSubject buildable = new V1GroupSubject(); + buildable.setName(fluent.getName()); + return buildable; + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1GroupSubjectFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1GroupSubjectFluent.java new file mode 100644 index 0000000000..10d63f70bd --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1GroupSubjectFluent.java @@ -0,0 +1,63 @@ +package io.kubernetes.client.openapi.models; + +import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Object; +import java.lang.String; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1GroupSubjectFluent> extends BaseFluent{ + public V1GroupSubjectFluent() { + } + + public V1GroupSubjectFluent(V1GroupSubject instance) { + this.copyInstance(instance); + } + private String name; + + protected void copyInstance(V1GroupSubject instance) { + instance = (instance != null ? instance : new V1GroupSubject()); + if (instance != null) { + this.withName(instance.getName()); + } + } + + public String getName() { + return this.name; + } + + public A withName(String name) { + this.name = name; + return (A) this; + } + + public boolean hasName() { + return this.name != null; + } + + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + if (!super.equals(o)) return false; + V1GroupSubjectFluent that = (V1GroupSubjectFluent) o; + if (!java.util.Objects.equals(name, that.name)) return false; + return true; + } + + public int hashCode() { + return java.util.Objects.hash(name, super.hashCode()); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (name != null) { sb.append("name:"); sb.append(name); } + sb.append("}"); + return sb.toString(); + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HTTPGetActionFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HTTPGetActionFluent.java index f14cf4d554..0f52c2dea1 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HTTPGetActionFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HTTPGetActionFluent.java @@ -57,14 +57,26 @@ public boolean hasHost() { public A addToHttpHeaders(int index,V1HTTPHeader item) { if (this.httpHeaders == null) {this.httpHeaders = new ArrayList();} V1HTTPHeaderBuilder builder = new V1HTTPHeaderBuilder(item); - if (index < 0 || index >= httpHeaders.size()) { _visitables.get("httpHeaders").add(builder); httpHeaders.add(builder); } else { _visitables.get("httpHeaders").add(index, builder); httpHeaders.add(index, builder);} + if (index < 0 || index >= httpHeaders.size()) { + _visitables.get("httpHeaders").add(builder); + httpHeaders.add(builder); + } else { + _visitables.get("httpHeaders").add(builder); + httpHeaders.add(index, builder); + } return (A)this; } public A setToHttpHeaders(int index,V1HTTPHeader item) { if (this.httpHeaders == null) {this.httpHeaders = new ArrayList();} V1HTTPHeaderBuilder builder = new V1HTTPHeaderBuilder(item); - if (index < 0 || index >= httpHeaders.size()) { _visitables.get("httpHeaders").add(builder); httpHeaders.add(builder); } else { _visitables.get("httpHeaders").set(index, builder); httpHeaders.set(index, builder);} + if (index < 0 || index >= httpHeaders.size()) { + _visitables.get("httpHeaders").add(builder); + httpHeaders.add(builder); + } else { + _visitables.get("httpHeaders").add(builder); + httpHeaders.set(index, builder); + } return (A)this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HTTPIngressRuleValueFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HTTPIngressRuleValueFluent.java index f5cc4e30a9..dd61581664 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HTTPIngressRuleValueFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HTTPIngressRuleValueFluent.java @@ -35,14 +35,26 @@ protected void copyInstance(V1HTTPIngressRuleValue instance) { public A addToPaths(int index,V1HTTPIngressPath item) { if (this.paths == null) {this.paths = new ArrayList();} V1HTTPIngressPathBuilder builder = new V1HTTPIngressPathBuilder(item); - if (index < 0 || index >= paths.size()) { _visitables.get("paths").add(builder); paths.add(builder); } else { _visitables.get("paths").add(index, builder); paths.add(index, builder);} + if (index < 0 || index >= paths.size()) { + _visitables.get("paths").add(builder); + paths.add(builder); + } else { + _visitables.get("paths").add(builder); + paths.add(index, builder); + } return (A)this; } public A setToPaths(int index,V1HTTPIngressPath item) { if (this.paths == null) {this.paths = new ArrayList();} V1HTTPIngressPathBuilder builder = new V1HTTPIngressPathBuilder(item); - if (index < 0 || index >= paths.size()) { _visitables.get("paths").add(builder); paths.add(builder); } else { _visitables.get("paths").set(index, builder); paths.set(index, builder);} + if (index < 0 || index >= paths.size()) { + _visitables.get("paths").add(builder); + paths.add(builder); + } else { + _visitables.get("paths").add(builder); + paths.set(index, builder); + } return (A)this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HorizontalPodAutoscalerListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HorizontalPodAutoscalerListFluent.java index 80c7d86a4e..d115cd2481 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HorizontalPodAutoscalerListFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HorizontalPodAutoscalerListFluent.java @@ -54,14 +54,26 @@ public boolean hasApiVersion() { public A addToItems(int index,V1HorizontalPodAutoscaler item) { if (this.items == null) {this.items = new ArrayList();} V1HorizontalPodAutoscalerBuilder builder = new V1HorizontalPodAutoscalerBuilder(item); - if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); items.add(builder); } else { _visitables.get("items").add(index, builder); items.add(index, builder);} + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.add(index, builder); + } return (A)this; } public A setToItems(int index,V1HorizontalPodAutoscaler item) { if (this.items == null) {this.items = new ArrayList();} V1HorizontalPodAutoscalerBuilder builder = new V1HorizontalPodAutoscalerBuilder(item); - if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); items.add(builder); } else { _visitables.get("items").set(index, builder); items.set(index, builder);} + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.set(index, builder); + } return (A)this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IPAddressBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IPAddressBuilder.java new file mode 100644 index 0000000000..260534c46c --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IPAddressBuilder.java @@ -0,0 +1,34 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +public class V1IPAddressBuilder extends V1IPAddressFluent implements VisitableBuilder{ + public V1IPAddressBuilder() { + this(new V1IPAddress()); + } + + public V1IPAddressBuilder(V1IPAddressFluent fluent) { + this(fluent, new V1IPAddress()); + } + + public V1IPAddressBuilder(V1IPAddressFluent fluent,V1IPAddress instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1IPAddressBuilder(V1IPAddress instance) { + this.fluent = this; + this.copyInstance(instance); + } + V1IPAddressFluent fluent; + + public V1IPAddress build() { + V1IPAddress buildable = new V1IPAddress(); + buildable.setApiVersion(fluent.getApiVersion()); + buildable.setKind(fluent.getKind()); + buildable.setMetadata(fluent.buildMetadata()); + buildable.setSpec(fluent.buildSpec()); + return buildable; + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IPAddressFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IPAddressFluent.java new file mode 100644 index 0000000000..5e1c11d3b8 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IPAddressFluent.java @@ -0,0 +1,200 @@ +package io.kubernetes.client.openapi.models; + +import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.Nested; +import java.lang.String; +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Object; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1IPAddressFluent> extends BaseFluent{ + public V1IPAddressFluent() { + } + + public V1IPAddressFluent(V1IPAddress instance) { + this.copyInstance(instance); + } + private String apiVersion; + private String kind; + private V1ObjectMetaBuilder metadata; + private V1IPAddressSpecBuilder spec; + + protected void copyInstance(V1IPAddress instance) { + instance = (instance != null ? instance : new V1IPAddress()); + if (instance != null) { + this.withApiVersion(instance.getApiVersion()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); + this.withSpec(instance.getSpec()); + } + } + + public String getApiVersion() { + return this.apiVersion; + } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + + public boolean hasApiVersion() { + return this.apiVersion != null; + } + + public String getKind() { + return this.kind; + } + + public A withKind(String kind) { + this.kind = kind; + return (A) this; + } + + public boolean hasKind() { + return this.kind != null; + } + + public V1ObjectMeta buildMetadata() { + return this.metadata != null ? this.metadata.build() : null; + } + + public A withMetadata(V1ObjectMeta metadata) { + this._visitables.remove("metadata"); + if (metadata != null) { + this.metadata = new V1ObjectMetaBuilder(metadata); + this._visitables.get("metadata").add(this.metadata); + } else { + this.metadata = null; + this._visitables.get("metadata").remove(this.metadata); + } + return (A) this; + } + + public boolean hasMetadata() { + return this.metadata != null; + } + + public MetadataNested withNewMetadata() { + return new MetadataNested(null); + } + + public MetadataNested withNewMetadataLike(V1ObjectMeta item) { + return new MetadataNested(item); + } + + public MetadataNested editMetadata() { + return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(null)); + } + + public MetadataNested editOrNewMetadata() { + return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(new V1ObjectMetaBuilder().build())); + } + + public MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { + return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(item)); + } + + public V1IPAddressSpec buildSpec() { + return this.spec != null ? this.spec.build() : null; + } + + public A withSpec(V1IPAddressSpec spec) { + this._visitables.remove("spec"); + if (spec != null) { + this.spec = new V1IPAddressSpecBuilder(spec); + this._visitables.get("spec").add(this.spec); + } else { + this.spec = null; + this._visitables.get("spec").remove(this.spec); + } + return (A) this; + } + + public boolean hasSpec() { + return this.spec != null; + } + + public SpecNested withNewSpec() { + return new SpecNested(null); + } + + public SpecNested withNewSpecLike(V1IPAddressSpec item) { + return new SpecNested(item); + } + + public SpecNested editSpec() { + return withNewSpecLike(java.util.Optional.ofNullable(buildSpec()).orElse(null)); + } + + public SpecNested editOrNewSpec() { + return withNewSpecLike(java.util.Optional.ofNullable(buildSpec()).orElse(new V1IPAddressSpecBuilder().build())); + } + + public SpecNested editOrNewSpecLike(V1IPAddressSpec item) { + return withNewSpecLike(java.util.Optional.ofNullable(buildSpec()).orElse(item)); + } + + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + if (!super.equals(o)) return false; + V1IPAddressFluent that = (V1IPAddressFluent) o; + if (!java.util.Objects.equals(apiVersion, that.apiVersion)) return false; + if (!java.util.Objects.equals(kind, that.kind)) return false; + if (!java.util.Objects.equals(metadata, that.metadata)) return false; + if (!java.util.Objects.equals(spec, that.spec)) return false; + return true; + } + + public int hashCode() { + return java.util.Objects.hash(apiVersion, kind, metadata, spec, super.hashCode()); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (apiVersion != null) { sb.append("apiVersion:"); sb.append(apiVersion + ","); } + if (kind != null) { sb.append("kind:"); sb.append(kind + ","); } + if (metadata != null) { sb.append("metadata:"); sb.append(metadata + ","); } + if (spec != null) { sb.append("spec:"); sb.append(spec); } + sb.append("}"); + return sb.toString(); + } + public class MetadataNested extends V1ObjectMetaFluent> implements Nested{ + MetadataNested(V1ObjectMeta item) { + this.builder = new V1ObjectMetaBuilder(this, item); + } + V1ObjectMetaBuilder builder; + + public N and() { + return (N) V1IPAddressFluent.this.withMetadata(builder.build()); + } + + public N endMetadata() { + return and(); + } + + + } + public class SpecNested extends V1IPAddressSpecFluent> implements Nested{ + SpecNested(V1IPAddressSpec item) { + this.builder = new V1IPAddressSpecBuilder(this, item); + } + V1IPAddressSpecBuilder builder; + + public N and() { + return (N) V1IPAddressFluent.this.withSpec(builder.build()); + } + + public N endSpec() { + return and(); + } + + + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IPAddressListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IPAddressListBuilder.java new file mode 100644 index 0000000000..4ad79531bc --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IPAddressListBuilder.java @@ -0,0 +1,34 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +public class V1IPAddressListBuilder extends V1IPAddressListFluent implements VisitableBuilder{ + public V1IPAddressListBuilder() { + this(new V1IPAddressList()); + } + + public V1IPAddressListBuilder(V1IPAddressListFluent fluent) { + this(fluent, new V1IPAddressList()); + } + + public V1IPAddressListBuilder(V1IPAddressListFluent fluent,V1IPAddressList instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1IPAddressListBuilder(V1IPAddressList instance) { + this.fluent = this; + this.copyInstance(instance); + } + V1IPAddressListFluent fluent; + + public V1IPAddressList build() { + V1IPAddressList buildable = new V1IPAddressList(); + buildable.setApiVersion(fluent.getApiVersion()); + buildable.setItems(fluent.buildItems()); + buildable.setKind(fluent.getKind()); + buildable.setMetadata(fluent.buildMetadata()); + return buildable; + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IPAddressListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IPAddressListFluent.java new file mode 100644 index 0000000000..b0cd655bfa --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IPAddressListFluent.java @@ -0,0 +1,331 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.Nested; +import java.util.ArrayList; +import java.lang.String; +import java.util.function.Predicate; +import io.kubernetes.client.fluent.BaseFluent; +import java.util.Iterator; +import java.util.Collection; +import java.lang.Object; +import java.util.List; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1IPAddressListFluent> extends BaseFluent{ + public V1IPAddressListFluent() { + } + + public V1IPAddressListFluent(V1IPAddressList instance) { + this.copyInstance(instance); + } + private String apiVersion; + private ArrayList items; + private String kind; + private V1ListMetaBuilder metadata; + + protected void copyInstance(V1IPAddressList instance) { + instance = (instance != null ? instance : new V1IPAddressList()); + if (instance != null) { + this.withApiVersion(instance.getApiVersion()); + this.withItems(instance.getItems()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); + } + } + + public String getApiVersion() { + return this.apiVersion; + } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + + public boolean hasApiVersion() { + return this.apiVersion != null; + } + + public A addToItems(int index,V1IPAddress item) { + if (this.items == null) {this.items = new ArrayList();} + V1IPAddressBuilder builder = new V1IPAddressBuilder(item); + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.add(index, builder); + } + return (A)this; + } + + public A setToItems(int index,V1IPAddress item) { + if (this.items == null) {this.items = new ArrayList();} + V1IPAddressBuilder builder = new V1IPAddressBuilder(item); + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.set(index, builder); + } + return (A)this; + } + + public A addToItems(io.kubernetes.client.openapi.models.V1IPAddress... items) { + if (this.items == null) {this.items = new ArrayList();} + for (V1IPAddress item : items) {V1IPAddressBuilder builder = new V1IPAddressBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; + } + + public A addAllToItems(Collection items) { + if (this.items == null) {this.items = new ArrayList();} + for (V1IPAddress item : items) {V1IPAddressBuilder builder = new V1IPAddressBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; + } + + public A removeFromItems(io.kubernetes.client.openapi.models.V1IPAddress... items) { + if (this.items == null) return (A)this; + for (V1IPAddress item : items) {V1IPAddressBuilder builder = new V1IPAddressBuilder(item);_visitables.get("items").remove(builder); this.items.remove(builder);} return (A)this; + } + + public A removeAllFromItems(Collection items) { + if (this.items == null) return (A)this; + for (V1IPAddress item : items) {V1IPAddressBuilder builder = new V1IPAddressBuilder(item);_visitables.get("items").remove(builder); this.items.remove(builder);} return (A)this; + } + + public A removeMatchingFromItems(Predicate predicate) { + if (items == null) return (A) this; + final Iterator each = items.iterator(); + final List visitables = _visitables.get("items"); + while (each.hasNext()) { + V1IPAddressBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A)this; + } + + public List buildItems() { + return this.items != null ? build(items) : null; + } + + public V1IPAddress buildItem(int index) { + return this.items.get(index).build(); + } + + public V1IPAddress buildFirstItem() { + return this.items.get(0).build(); + } + + public V1IPAddress buildLastItem() { + return this.items.get(items.size() - 1).build(); + } + + public V1IPAddress buildMatchingItem(Predicate predicate) { + for (V1IPAddressBuilder item : items) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; + } + + public boolean hasMatchingItem(Predicate predicate) { + for (V1IPAddressBuilder item : items) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public A withItems(List items) { + if (this.items != null) { + this._visitables.get("items").clear(); + } + if (items != null) { + this.items = new ArrayList(); + for (V1IPAddress item : items) { + this.addToItems(item); + } + } else { + this.items = null; + } + return (A) this; + } + + public A withItems(io.kubernetes.client.openapi.models.V1IPAddress... items) { + if (this.items != null) { + this.items.clear(); + _visitables.remove("items"); + } + if (items != null) { + for (V1IPAddress item : items) { + this.addToItems(item); + } + } + return (A) this; + } + + public boolean hasItems() { + return this.items != null && !this.items.isEmpty(); + } + + public ItemsNested addNewItem() { + return new ItemsNested(-1, null); + } + + public ItemsNested addNewItemLike(V1IPAddress item) { + return new ItemsNested(-1, item); + } + + public ItemsNested setNewItemLike(int index,V1IPAddress item) { + return new ItemsNested(index, item); + } + + public ItemsNested editItem(int index) { + if (items.size() <= index) throw new RuntimeException("Can't edit items. Index exceeds size."); + return setNewItemLike(index, buildItem(index)); + } + + public ItemsNested editFirstItem() { + if (items.size() == 0) throw new RuntimeException("Can't edit first items. The list is empty."); + return setNewItemLike(0, buildItem(0)); + } + + public ItemsNested editLastItem() { + int index = items.size() - 1; + if (index < 0) throw new RuntimeException("Can't edit last items. The list is empty."); + return setNewItemLike(index, buildItem(index)); + } + + public ItemsNested editMatchingItem(Predicate predicate) { + int index = -1; + for (int i=0;i withNewMetadata() { + return new MetadataNested(null); + } + + public MetadataNested withNewMetadataLike(V1ListMeta item) { + return new MetadataNested(item); + } + + public MetadataNested editMetadata() { + return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(null)); + } + + public MetadataNested editOrNewMetadata() { + return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(new V1ListMetaBuilder().build())); + } + + public MetadataNested editOrNewMetadataLike(V1ListMeta item) { + return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(item)); + } + + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + if (!super.equals(o)) return false; + V1IPAddressListFluent that = (V1IPAddressListFluent) o; + if (!java.util.Objects.equals(apiVersion, that.apiVersion)) return false; + if (!java.util.Objects.equals(items, that.items)) return false; + if (!java.util.Objects.equals(kind, that.kind)) return false; + if (!java.util.Objects.equals(metadata, that.metadata)) return false; + return true; + } + + public int hashCode() { + return java.util.Objects.hash(apiVersion, items, kind, metadata, super.hashCode()); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (apiVersion != null) { sb.append("apiVersion:"); sb.append(apiVersion + ","); } + if (items != null && !items.isEmpty()) { sb.append("items:"); sb.append(items + ","); } + if (kind != null) { sb.append("kind:"); sb.append(kind + ","); } + if (metadata != null) { sb.append("metadata:"); sb.append(metadata); } + sb.append("}"); + return sb.toString(); + } + public class ItemsNested extends V1IPAddressFluent> implements Nested{ + ItemsNested(int index,V1IPAddress item) { + this.index = index; + this.builder = new V1IPAddressBuilder(this, item); + } + V1IPAddressBuilder builder; + int index; + + public N and() { + return (N) V1IPAddressListFluent.this.setToItems(index,builder.build()); + } + + public N endItem() { + return and(); + } + + + } + public class MetadataNested extends V1ListMetaFluent> implements Nested{ + MetadataNested(V1ListMeta item) { + this.builder = new V1ListMetaBuilder(this, item); + } + V1ListMetaBuilder builder; + + public N and() { + return (N) V1IPAddressListFluent.this.withMetadata(builder.build()); + } + + public N endMetadata() { + return and(); + } + + + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IPAddressSpecBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IPAddressSpecBuilder.java new file mode 100644 index 0000000000..f5425e5a44 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IPAddressSpecBuilder.java @@ -0,0 +1,31 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +public class V1IPAddressSpecBuilder extends V1IPAddressSpecFluent implements VisitableBuilder{ + public V1IPAddressSpecBuilder() { + this(new V1IPAddressSpec()); + } + + public V1IPAddressSpecBuilder(V1IPAddressSpecFluent fluent) { + this(fluent, new V1IPAddressSpec()); + } + + public V1IPAddressSpecBuilder(V1IPAddressSpecFluent fluent,V1IPAddressSpec instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1IPAddressSpecBuilder(V1IPAddressSpec instance) { + this.fluent = this; + this.copyInstance(instance); + } + V1IPAddressSpecFluent fluent; + + public V1IPAddressSpec build() { + V1IPAddressSpec buildable = new V1IPAddressSpec(); + buildable.setParentRef(fluent.buildParentRef()); + return buildable; + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IPAddressSpecFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IPAddressSpecFluent.java new file mode 100644 index 0000000000..8794359a69 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IPAddressSpecFluent.java @@ -0,0 +1,106 @@ +package io.kubernetes.client.openapi.models; + +import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Object; +import java.lang.String; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1IPAddressSpecFluent> extends BaseFluent{ + public V1IPAddressSpecFluent() { + } + + public V1IPAddressSpecFluent(V1IPAddressSpec instance) { + this.copyInstance(instance); + } + private V1ParentReferenceBuilder parentRef; + + protected void copyInstance(V1IPAddressSpec instance) { + instance = (instance != null ? instance : new V1IPAddressSpec()); + if (instance != null) { + this.withParentRef(instance.getParentRef()); + } + } + + public V1ParentReference buildParentRef() { + return this.parentRef != null ? this.parentRef.build() : null; + } + + public A withParentRef(V1ParentReference parentRef) { + this._visitables.remove("parentRef"); + if (parentRef != null) { + this.parentRef = new V1ParentReferenceBuilder(parentRef); + this._visitables.get("parentRef").add(this.parentRef); + } else { + this.parentRef = null; + this._visitables.get("parentRef").remove(this.parentRef); + } + return (A) this; + } + + public boolean hasParentRef() { + return this.parentRef != null; + } + + public ParentRefNested withNewParentRef() { + return new ParentRefNested(null); + } + + public ParentRefNested withNewParentRefLike(V1ParentReference item) { + return new ParentRefNested(item); + } + + public ParentRefNested editParentRef() { + return withNewParentRefLike(java.util.Optional.ofNullable(buildParentRef()).orElse(null)); + } + + public ParentRefNested editOrNewParentRef() { + return withNewParentRefLike(java.util.Optional.ofNullable(buildParentRef()).orElse(new V1ParentReferenceBuilder().build())); + } + + public ParentRefNested editOrNewParentRefLike(V1ParentReference item) { + return withNewParentRefLike(java.util.Optional.ofNullable(buildParentRef()).orElse(item)); + } + + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + if (!super.equals(o)) return false; + V1IPAddressSpecFluent that = (V1IPAddressSpecFluent) o; + if (!java.util.Objects.equals(parentRef, that.parentRef)) return false; + return true; + } + + public int hashCode() { + return java.util.Objects.hash(parentRef, super.hashCode()); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (parentRef != null) { sb.append("parentRef:"); sb.append(parentRef); } + sb.append("}"); + return sb.toString(); + } + public class ParentRefNested extends V1ParentReferenceFluent> implements Nested{ + ParentRefNested(V1ParentReference item) { + this.builder = new V1ParentReferenceBuilder(this, item); + } + V1ParentReferenceBuilder builder; + + public N and() { + return (N) V1IPAddressSpecFluent.this.withParentRef(builder.build()); + } + + public N endParentRef() { + return and(); + } + + + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ImageVolumeSourceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ImageVolumeSourceBuilder.java new file mode 100644 index 0000000000..1a0359aa1a --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ImageVolumeSourceBuilder.java @@ -0,0 +1,32 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +public class V1ImageVolumeSourceBuilder extends V1ImageVolumeSourceFluent implements VisitableBuilder{ + public V1ImageVolumeSourceBuilder() { + this(new V1ImageVolumeSource()); + } + + public V1ImageVolumeSourceBuilder(V1ImageVolumeSourceFluent fluent) { + this(fluent, new V1ImageVolumeSource()); + } + + public V1ImageVolumeSourceBuilder(V1ImageVolumeSourceFluent fluent,V1ImageVolumeSource instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1ImageVolumeSourceBuilder(V1ImageVolumeSource instance) { + this.fluent = this; + this.copyInstance(instance); + } + V1ImageVolumeSourceFluent fluent; + + public V1ImageVolumeSource build() { + V1ImageVolumeSource buildable = new V1ImageVolumeSource(); + buildable.setPullPolicy(fluent.getPullPolicy()); + buildable.setReference(fluent.getReference()); + return buildable; + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ImageVolumeSourceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ImageVolumeSourceFluent.java new file mode 100644 index 0000000000..d1527cefc0 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ImageVolumeSourceFluent.java @@ -0,0 +1,80 @@ +package io.kubernetes.client.openapi.models; + +import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Object; +import java.lang.String; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1ImageVolumeSourceFluent> extends BaseFluent{ + public V1ImageVolumeSourceFluent() { + } + + public V1ImageVolumeSourceFluent(V1ImageVolumeSource instance) { + this.copyInstance(instance); + } + private String pullPolicy; + private String reference; + + protected void copyInstance(V1ImageVolumeSource instance) { + instance = (instance != null ? instance : new V1ImageVolumeSource()); + if (instance != null) { + this.withPullPolicy(instance.getPullPolicy()); + this.withReference(instance.getReference()); + } + } + + public String getPullPolicy() { + return this.pullPolicy; + } + + public A withPullPolicy(String pullPolicy) { + this.pullPolicy = pullPolicy; + return (A) this; + } + + public boolean hasPullPolicy() { + return this.pullPolicy != null; + } + + public String getReference() { + return this.reference; + } + + public A withReference(String reference) { + this.reference = reference; + return (A) this; + } + + public boolean hasReference() { + return this.reference != null; + } + + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + if (!super.equals(o)) return false; + V1ImageVolumeSourceFluent that = (V1ImageVolumeSourceFluent) o; + if (!java.util.Objects.equals(pullPolicy, that.pullPolicy)) return false; + if (!java.util.Objects.equals(reference, that.reference)) return false; + return true; + } + + public int hashCode() { + return java.util.Objects.hash(pullPolicy, reference, super.hashCode()); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (pullPolicy != null) { sb.append("pullPolicy:"); sb.append(pullPolicy + ","); } + if (reference != null) { sb.append("reference:"); sb.append(reference); } + sb.append("}"); + return sb.toString(); + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressClassListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressClassListFluent.java index 6ca6dcd9b0..d83a3dafa6 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressClassListFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressClassListFluent.java @@ -54,14 +54,26 @@ public boolean hasApiVersion() { public A addToItems(int index,V1IngressClass item) { if (this.items == null) {this.items = new ArrayList();} V1IngressClassBuilder builder = new V1IngressClassBuilder(item); - if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); items.add(builder); } else { _visitables.get("items").add(index, builder); items.add(index, builder);} + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.add(index, builder); + } return (A)this; } public A setToItems(int index,V1IngressClass item) { if (this.items == null) {this.items = new ArrayList();} V1IngressClassBuilder builder = new V1IngressClassBuilder(item); - if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); items.add(builder); } else { _visitables.get("items").set(index, builder); items.set(index, builder);} + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.set(index, builder); + } return (A)this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressListFluent.java index 5abcc24ede..deb60fc2b5 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressListFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressListFluent.java @@ -54,14 +54,26 @@ public boolean hasApiVersion() { public A addToItems(int index,V1Ingress item) { if (this.items == null) {this.items = new ArrayList();} V1IngressBuilder builder = new V1IngressBuilder(item); - if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); items.add(builder); } else { _visitables.get("items").add(index, builder); items.add(index, builder);} + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.add(index, builder); + } return (A)this; } public A setToItems(int index,V1Ingress item) { if (this.items == null) {this.items = new ArrayList();} V1IngressBuilder builder = new V1IngressBuilder(item); - if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); items.add(builder); } else { _visitables.get("items").set(index, builder); items.set(index, builder);} + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.set(index, builder); + } return (A)this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressLoadBalancerIngressFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressLoadBalancerIngressFluent.java index ee22c6a824..17a38f9c86 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressLoadBalancerIngressFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressLoadBalancerIngressFluent.java @@ -65,14 +65,26 @@ public boolean hasIp() { public A addToPorts(int index,V1IngressPortStatus item) { if (this.ports == null) {this.ports = new ArrayList();} V1IngressPortStatusBuilder builder = new V1IngressPortStatusBuilder(item); - if (index < 0 || index >= ports.size()) { _visitables.get("ports").add(builder); ports.add(builder); } else { _visitables.get("ports").add(index, builder); ports.add(index, builder);} + if (index < 0 || index >= ports.size()) { + _visitables.get("ports").add(builder); + ports.add(builder); + } else { + _visitables.get("ports").add(builder); + ports.add(index, builder); + } return (A)this; } public A setToPorts(int index,V1IngressPortStatus item) { if (this.ports == null) {this.ports = new ArrayList();} V1IngressPortStatusBuilder builder = new V1IngressPortStatusBuilder(item); - if (index < 0 || index >= ports.size()) { _visitables.get("ports").add(builder); ports.add(builder); } else { _visitables.get("ports").set(index, builder); ports.set(index, builder);} + if (index < 0 || index >= ports.size()) { + _visitables.get("ports").add(builder); + ports.add(builder); + } else { + _visitables.get("ports").add(builder); + ports.set(index, builder); + } return (A)this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressLoadBalancerStatusFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressLoadBalancerStatusFluent.java index b0dc9c1360..40c2d84b44 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressLoadBalancerStatusFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressLoadBalancerStatusFluent.java @@ -35,14 +35,26 @@ protected void copyInstance(V1IngressLoadBalancerStatus instance) { public A addToIngress(int index,V1IngressLoadBalancerIngress item) { if (this.ingress == null) {this.ingress = new ArrayList();} V1IngressLoadBalancerIngressBuilder builder = new V1IngressLoadBalancerIngressBuilder(item); - if (index < 0 || index >= ingress.size()) { _visitables.get("ingress").add(builder); ingress.add(builder); } else { _visitables.get("ingress").add(index, builder); ingress.add(index, builder);} + if (index < 0 || index >= ingress.size()) { + _visitables.get("ingress").add(builder); + ingress.add(builder); + } else { + _visitables.get("ingress").add(builder); + ingress.add(index, builder); + } return (A)this; } public A setToIngress(int index,V1IngressLoadBalancerIngress item) { if (this.ingress == null) {this.ingress = new ArrayList();} V1IngressLoadBalancerIngressBuilder builder = new V1IngressLoadBalancerIngressBuilder(item); - if (index < 0 || index >= ingress.size()) { _visitables.get("ingress").add(builder); ingress.add(builder); } else { _visitables.get("ingress").set(index, builder); ingress.set(index, builder);} + if (index < 0 || index >= ingress.size()) { + _visitables.get("ingress").add(builder); + ingress.add(builder); + } else { + _visitables.get("ingress").add(builder); + ingress.set(index, builder); + } return (A)this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressSpecFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressSpecFluent.java index 5439552f48..769beb7c15 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressSpecFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressSpecFluent.java @@ -94,14 +94,26 @@ public boolean hasIngressClassName() { public A addToRules(int index,V1IngressRule item) { if (this.rules == null) {this.rules = new ArrayList();} V1IngressRuleBuilder builder = new V1IngressRuleBuilder(item); - if (index < 0 || index >= rules.size()) { _visitables.get("rules").add(builder); rules.add(builder); } else { _visitables.get("rules").add(index, builder); rules.add(index, builder);} + if (index < 0 || index >= rules.size()) { + _visitables.get("rules").add(builder); + rules.add(builder); + } else { + _visitables.get("rules").add(builder); + rules.add(index, builder); + } return (A)this; } public A setToRules(int index,V1IngressRule item) { if (this.rules == null) {this.rules = new ArrayList();} V1IngressRuleBuilder builder = new V1IngressRuleBuilder(item); - if (index < 0 || index >= rules.size()) { _visitables.get("rules").add(builder); rules.add(builder); } else { _visitables.get("rules").set(index, builder); rules.set(index, builder);} + if (index < 0 || index >= rules.size()) { + _visitables.get("rules").add(builder); + rules.add(builder); + } else { + _visitables.get("rules").add(builder); + rules.set(index, builder); + } return (A)this; } @@ -245,14 +257,26 @@ public RulesNested editMatchingRule(Predicate predicate public A addToTls(int index,V1IngressTLS item) { if (this.tls == null) {this.tls = new ArrayList();} V1IngressTLSBuilder builder = new V1IngressTLSBuilder(item); - if (index < 0 || index >= tls.size()) { _visitables.get("tls").add(builder); tls.add(builder); } else { _visitables.get("tls").add(index, builder); tls.add(index, builder);} + if (index < 0 || index >= tls.size()) { + _visitables.get("tls").add(builder); + tls.add(builder); + } else { + _visitables.get("tls").add(builder); + tls.add(index, builder); + } return (A)this; } public A setToTls(int index,V1IngressTLS item) { if (this.tls == null) {this.tls = new ArrayList();} V1IngressTLSBuilder builder = new V1IngressTLSBuilder(item); - if (index < 0 || index >= tls.size()) { _visitables.get("tls").add(builder); tls.add(builder); } else { _visitables.get("tls").set(index, builder); tls.set(index, builder);} + if (index < 0 || index >= tls.size()) { + _visitables.get("tls").add(builder); + tls.add(builder); + } else { + _visitables.get("tls").add(builder); + tls.set(index, builder); + } return (A)this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1JSONSchemaPropsFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1JSONSchemaPropsFluent.java index d78dfe1e8c..8bb8b7a62d 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1JSONSchemaPropsFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1JSONSchemaPropsFluent.java @@ -164,14 +164,26 @@ public boolean hasAdditionalProperties() { public A addToAllOf(int index,V1JSONSchemaProps item) { if (this.allOf == null) {this.allOf = new ArrayList();} V1JSONSchemaPropsBuilder builder = new V1JSONSchemaPropsBuilder(item); - if (index < 0 || index >= allOf.size()) { _visitables.get("allOf").add(builder); allOf.add(builder); } else { _visitables.get("allOf").add(index, builder); allOf.add(index, builder);} + if (index < 0 || index >= allOf.size()) { + _visitables.get("allOf").add(builder); + allOf.add(builder); + } else { + _visitables.get("allOf").add(builder); + allOf.add(index, builder); + } return (A)this; } public A setToAllOf(int index,V1JSONSchemaProps item) { if (this.allOf == null) {this.allOf = new ArrayList();} V1JSONSchemaPropsBuilder builder = new V1JSONSchemaPropsBuilder(item); - if (index < 0 || index >= allOf.size()) { _visitables.get("allOf").add(builder); allOf.add(builder); } else { _visitables.get("allOf").set(index, builder); allOf.set(index, builder);} + if (index < 0 || index >= allOf.size()) { + _visitables.get("allOf").add(builder); + allOf.add(builder); + } else { + _visitables.get("allOf").add(builder); + allOf.set(index, builder); + } return (A)this; } @@ -315,14 +327,26 @@ public AllOfNested editMatchingAllOf(Predicate pred public A addToAnyOf(int index,V1JSONSchemaProps item) { if (this.anyOf == null) {this.anyOf = new ArrayList();} V1JSONSchemaPropsBuilder builder = new V1JSONSchemaPropsBuilder(item); - if (index < 0 || index >= anyOf.size()) { _visitables.get("anyOf").add(builder); anyOf.add(builder); } else { _visitables.get("anyOf").add(index, builder); anyOf.add(index, builder);} + if (index < 0 || index >= anyOf.size()) { + _visitables.get("anyOf").add(builder); + anyOf.add(builder); + } else { + _visitables.get("anyOf").add(builder); + anyOf.add(index, builder); + } return (A)this; } public A setToAnyOf(int index,V1JSONSchemaProps item) { if (this.anyOf == null) {this.anyOf = new ArrayList();} V1JSONSchemaPropsBuilder builder = new V1JSONSchemaPropsBuilder(item); - if (index < 0 || index >= anyOf.size()) { _visitables.get("anyOf").add(builder); anyOf.add(builder); } else { _visitables.get("anyOf").set(index, builder); anyOf.set(index, builder);} + if (index < 0 || index >= anyOf.size()) { + _visitables.get("anyOf").add(builder); + anyOf.add(builder); + } else { + _visitables.get("anyOf").add(builder); + anyOf.set(index, builder); + } return (A)this; } @@ -948,14 +972,26 @@ public boolean hasNullable() { public A addToOneOf(int index,V1JSONSchemaProps item) { if (this.oneOf == null) {this.oneOf = new ArrayList();} V1JSONSchemaPropsBuilder builder = new V1JSONSchemaPropsBuilder(item); - if (index < 0 || index >= oneOf.size()) { _visitables.get("oneOf").add(builder); oneOf.add(builder); } else { _visitables.get("oneOf").add(index, builder); oneOf.add(index, builder);} + if (index < 0 || index >= oneOf.size()) { + _visitables.get("oneOf").add(builder); + oneOf.add(builder); + } else { + _visitables.get("oneOf").add(builder); + oneOf.add(index, builder); + } return (A)this; } public A setToOneOf(int index,V1JSONSchemaProps item) { if (this.oneOf == null) {this.oneOf = new ArrayList();} V1JSONSchemaPropsBuilder builder = new V1JSONSchemaPropsBuilder(item); - if (index < 0 || index >= oneOf.size()) { _visitables.get("oneOf").add(builder); oneOf.add(builder); } else { _visitables.get("oneOf").set(index, builder); oneOf.set(index, builder);} + if (index < 0 || index >= oneOf.size()) { + _visitables.get("oneOf").add(builder); + oneOf.add(builder); + } else { + _visitables.get("oneOf").add(builder); + oneOf.set(index, builder); + } return (A)this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1JobListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1JobListFluent.java index 68dd859754..4a0075a987 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1JobListFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1JobListFluent.java @@ -54,14 +54,26 @@ public boolean hasApiVersion() { public A addToItems(int index,V1Job item) { if (this.items == null) {this.items = new ArrayList();} V1JobBuilder builder = new V1JobBuilder(item); - if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); items.add(builder); } else { _visitables.get("items").add(index, builder); items.add(index, builder);} + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.add(index, builder); + } return (A)this; } public A setToItems(int index,V1Job item) { if (this.items == null) {this.items = new ArrayList();} V1JobBuilder builder = new V1JobBuilder(item); - if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); items.add(builder); } else { _visitables.get("items").set(index, builder); items.set(index, builder);} + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.set(index, builder); + } return (A)this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1JobSpecBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1JobSpecBuilder.java index 5253d67bc8..540f5ea045 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1JobSpecBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1JobSpecBuilder.java @@ -28,12 +28,14 @@ public V1JobSpec build() { buildable.setBackoffLimitPerIndex(fluent.getBackoffLimitPerIndex()); buildable.setCompletionMode(fluent.getCompletionMode()); buildable.setCompletions(fluent.getCompletions()); + buildable.setManagedBy(fluent.getManagedBy()); buildable.setManualSelector(fluent.getManualSelector()); buildable.setMaxFailedIndexes(fluent.getMaxFailedIndexes()); buildable.setParallelism(fluent.getParallelism()); buildable.setPodFailurePolicy(fluent.buildPodFailurePolicy()); buildable.setPodReplacementPolicy(fluent.getPodReplacementPolicy()); buildable.setSelector(fluent.buildSelector()); + buildable.setSuccessPolicy(fluent.buildSuccessPolicy()); buildable.setSuspend(fluent.getSuspend()); buildable.setTemplate(fluent.buildTemplate()); buildable.setTtlSecondsAfterFinished(fluent.getTtlSecondsAfterFinished()); diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1JobSpecFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1JobSpecFluent.java index 3101894fc4..f086b5f714 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1JobSpecFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1JobSpecFluent.java @@ -25,12 +25,14 @@ public V1JobSpecFluent(V1JobSpec instance) { private Integer backoffLimitPerIndex; private String completionMode; private Integer completions; + private String managedBy; private Boolean manualSelector; private Integer maxFailedIndexes; private Integer parallelism; private V1PodFailurePolicyBuilder podFailurePolicy; private String podReplacementPolicy; private V1LabelSelectorBuilder selector; + private V1SuccessPolicyBuilder successPolicy; private Boolean suspend; private V1PodTemplateSpecBuilder template; private Integer ttlSecondsAfterFinished; @@ -43,12 +45,14 @@ protected void copyInstance(V1JobSpec instance) { this.withBackoffLimitPerIndex(instance.getBackoffLimitPerIndex()); this.withCompletionMode(instance.getCompletionMode()); this.withCompletions(instance.getCompletions()); + this.withManagedBy(instance.getManagedBy()); this.withManualSelector(instance.getManualSelector()); this.withMaxFailedIndexes(instance.getMaxFailedIndexes()); this.withParallelism(instance.getParallelism()); this.withPodFailurePolicy(instance.getPodFailurePolicy()); this.withPodReplacementPolicy(instance.getPodReplacementPolicy()); this.withSelector(instance.getSelector()); + this.withSuccessPolicy(instance.getSuccessPolicy()); this.withSuspend(instance.getSuspend()); this.withTemplate(instance.getTemplate()); this.withTtlSecondsAfterFinished(instance.getTtlSecondsAfterFinished()); @@ -120,6 +124,19 @@ public boolean hasCompletions() { return this.completions != null; } + public String getManagedBy() { + return this.managedBy; + } + + public A withManagedBy(String managedBy) { + this.managedBy = managedBy; + return (A) this; + } + + public boolean hasManagedBy() { + return this.managedBy != null; + } + public Boolean getManualSelector() { return this.manualSelector; } @@ -252,6 +269,46 @@ public SelectorNested editOrNewSelectorLike(V1LabelSelector item) { return withNewSelectorLike(java.util.Optional.ofNullable(buildSelector()).orElse(item)); } + public V1SuccessPolicy buildSuccessPolicy() { + return this.successPolicy != null ? this.successPolicy.build() : null; + } + + public A withSuccessPolicy(V1SuccessPolicy successPolicy) { + this._visitables.remove("successPolicy"); + if (successPolicy != null) { + this.successPolicy = new V1SuccessPolicyBuilder(successPolicy); + this._visitables.get("successPolicy").add(this.successPolicy); + } else { + this.successPolicy = null; + this._visitables.get("successPolicy").remove(this.successPolicy); + } + return (A) this; + } + + public boolean hasSuccessPolicy() { + return this.successPolicy != null; + } + + public SuccessPolicyNested withNewSuccessPolicy() { + return new SuccessPolicyNested(null); + } + + public SuccessPolicyNested withNewSuccessPolicyLike(V1SuccessPolicy item) { + return new SuccessPolicyNested(item); + } + + public SuccessPolicyNested editSuccessPolicy() { + return withNewSuccessPolicyLike(java.util.Optional.ofNullable(buildSuccessPolicy()).orElse(null)); + } + + public SuccessPolicyNested editOrNewSuccessPolicy() { + return withNewSuccessPolicyLike(java.util.Optional.ofNullable(buildSuccessPolicy()).orElse(new V1SuccessPolicyBuilder().build())); + } + + public SuccessPolicyNested editOrNewSuccessPolicyLike(V1SuccessPolicy item) { + return withNewSuccessPolicyLike(java.util.Optional.ofNullable(buildSuccessPolicy()).orElse(item)); + } + public Boolean getSuspend() { return this.suspend; } @@ -328,12 +385,14 @@ public boolean equals(Object o) { if (!java.util.Objects.equals(backoffLimitPerIndex, that.backoffLimitPerIndex)) return false; if (!java.util.Objects.equals(completionMode, that.completionMode)) return false; if (!java.util.Objects.equals(completions, that.completions)) return false; + if (!java.util.Objects.equals(managedBy, that.managedBy)) return false; if (!java.util.Objects.equals(manualSelector, that.manualSelector)) return false; if (!java.util.Objects.equals(maxFailedIndexes, that.maxFailedIndexes)) return false; if (!java.util.Objects.equals(parallelism, that.parallelism)) return false; if (!java.util.Objects.equals(podFailurePolicy, that.podFailurePolicy)) return false; if (!java.util.Objects.equals(podReplacementPolicy, that.podReplacementPolicy)) return false; if (!java.util.Objects.equals(selector, that.selector)) return false; + if (!java.util.Objects.equals(successPolicy, that.successPolicy)) return false; if (!java.util.Objects.equals(suspend, that.suspend)) return false; if (!java.util.Objects.equals(template, that.template)) return false; if (!java.util.Objects.equals(ttlSecondsAfterFinished, that.ttlSecondsAfterFinished)) return false; @@ -341,7 +400,7 @@ public boolean equals(Object o) { } public int hashCode() { - return java.util.Objects.hash(activeDeadlineSeconds, backoffLimit, backoffLimitPerIndex, completionMode, completions, manualSelector, maxFailedIndexes, parallelism, podFailurePolicy, podReplacementPolicy, selector, suspend, template, ttlSecondsAfterFinished, super.hashCode()); + return java.util.Objects.hash(activeDeadlineSeconds, backoffLimit, backoffLimitPerIndex, completionMode, completions, managedBy, manualSelector, maxFailedIndexes, parallelism, podFailurePolicy, podReplacementPolicy, selector, successPolicy, suspend, template, ttlSecondsAfterFinished, super.hashCode()); } public String toString() { @@ -352,12 +411,14 @@ public String toString() { if (backoffLimitPerIndex != null) { sb.append("backoffLimitPerIndex:"); sb.append(backoffLimitPerIndex + ","); } if (completionMode != null) { sb.append("completionMode:"); sb.append(completionMode + ","); } if (completions != null) { sb.append("completions:"); sb.append(completions + ","); } + if (managedBy != null) { sb.append("managedBy:"); sb.append(managedBy + ","); } if (manualSelector != null) { sb.append("manualSelector:"); sb.append(manualSelector + ","); } if (maxFailedIndexes != null) { sb.append("maxFailedIndexes:"); sb.append(maxFailedIndexes + ","); } if (parallelism != null) { sb.append("parallelism:"); sb.append(parallelism + ","); } if (podFailurePolicy != null) { sb.append("podFailurePolicy:"); sb.append(podFailurePolicy + ","); } if (podReplacementPolicy != null) { sb.append("podReplacementPolicy:"); sb.append(podReplacementPolicy + ","); } if (selector != null) { sb.append("selector:"); sb.append(selector + ","); } + if (successPolicy != null) { sb.append("successPolicy:"); sb.append(successPolicy + ","); } if (suspend != null) { sb.append("suspend:"); sb.append(suspend + ","); } if (template != null) { sb.append("template:"); sb.append(template + ","); } if (ttlSecondsAfterFinished != null) { sb.append("ttlSecondsAfterFinished:"); sb.append(ttlSecondsAfterFinished); } @@ -403,6 +464,22 @@ public N endSelector() { } + } + public class SuccessPolicyNested extends V1SuccessPolicyFluent> implements Nested{ + SuccessPolicyNested(V1SuccessPolicy item) { + this.builder = new V1SuccessPolicyBuilder(this, item); + } + V1SuccessPolicyBuilder builder; + + public N and() { + return (N) V1JobSpecFluent.this.withSuccessPolicy(builder.build()); + } + + public N endSuccessPolicy() { + return and(); + } + + } public class TemplateNested extends V1PodTemplateSpecFluent> implements Nested{ TemplateNested(V1PodTemplateSpec item) { diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1JobStatusFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1JobStatusFluent.java index 3db6517921..b0b067428a 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1JobStatusFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1JobStatusFluent.java @@ -96,14 +96,26 @@ public boolean hasCompletionTime() { public A addToConditions(int index,V1JobCondition item) { if (this.conditions == null) {this.conditions = new ArrayList();} V1JobConditionBuilder builder = new V1JobConditionBuilder(item); - if (index < 0 || index >= conditions.size()) { _visitables.get("conditions").add(builder); conditions.add(builder); } else { _visitables.get("conditions").add(index, builder); conditions.add(index, builder);} + if (index < 0 || index >= conditions.size()) { + _visitables.get("conditions").add(builder); + conditions.add(builder); + } else { + _visitables.get("conditions").add(builder); + conditions.add(index, builder); + } return (A)this; } public A setToConditions(int index,V1JobCondition item) { if (this.conditions == null) {this.conditions = new ArrayList();} V1JobConditionBuilder builder = new V1JobConditionBuilder(item); - if (index < 0 || index >= conditions.size()) { _visitables.get("conditions").add(builder); conditions.add(builder); } else { _visitables.get("conditions").set(index, builder); conditions.set(index, builder);} + if (index < 0 || index >= conditions.size()) { + _visitables.get("conditions").add(builder); + conditions.add(builder); + } else { + _visitables.get("conditions").add(builder); + conditions.set(index, builder); + } return (A)this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LabelSelectorAttributesBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LabelSelectorAttributesBuilder.java new file mode 100644 index 0000000000..56ee7a3e57 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LabelSelectorAttributesBuilder.java @@ -0,0 +1,32 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +public class V1LabelSelectorAttributesBuilder extends V1LabelSelectorAttributesFluent implements VisitableBuilder{ + public V1LabelSelectorAttributesBuilder() { + this(new V1LabelSelectorAttributes()); + } + + public V1LabelSelectorAttributesBuilder(V1LabelSelectorAttributesFluent fluent) { + this(fluent, new V1LabelSelectorAttributes()); + } + + public V1LabelSelectorAttributesBuilder(V1LabelSelectorAttributesFluent fluent,V1LabelSelectorAttributes instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1LabelSelectorAttributesBuilder(V1LabelSelectorAttributes instance) { + this.fluent = this; + this.copyInstance(instance); + } + V1LabelSelectorAttributesFluent fluent; + + public V1LabelSelectorAttributes build() { + V1LabelSelectorAttributes buildable = new V1LabelSelectorAttributes(); + buildable.setRawSelector(fluent.getRawSelector()); + buildable.setRequirements(fluent.buildRequirements()); + return buildable; + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LabelSelectorAttributesFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LabelSelectorAttributesFluent.java new file mode 100644 index 0000000000..100d4c355d --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LabelSelectorAttributesFluent.java @@ -0,0 +1,254 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.Nested; +import java.util.ArrayList; +import java.lang.String; +import java.util.function.Predicate; +import io.kubernetes.client.fluent.BaseFluent; +import java.util.Iterator; +import java.util.Collection; +import java.lang.Object; +import java.util.List; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1LabelSelectorAttributesFluent> extends BaseFluent{ + public V1LabelSelectorAttributesFluent() { + } + + public V1LabelSelectorAttributesFluent(V1LabelSelectorAttributes instance) { + this.copyInstance(instance); + } + private String rawSelector; + private ArrayList requirements; + + protected void copyInstance(V1LabelSelectorAttributes instance) { + instance = (instance != null ? instance : new V1LabelSelectorAttributes()); + if (instance != null) { + this.withRawSelector(instance.getRawSelector()); + this.withRequirements(instance.getRequirements()); + } + } + + public String getRawSelector() { + return this.rawSelector; + } + + public A withRawSelector(String rawSelector) { + this.rawSelector = rawSelector; + return (A) this; + } + + public boolean hasRawSelector() { + return this.rawSelector != null; + } + + public A addToRequirements(int index,V1LabelSelectorRequirement item) { + if (this.requirements == null) {this.requirements = new ArrayList();} + V1LabelSelectorRequirementBuilder builder = new V1LabelSelectorRequirementBuilder(item); + if (index < 0 || index >= requirements.size()) { + _visitables.get("requirements").add(builder); + requirements.add(builder); + } else { + _visitables.get("requirements").add(builder); + requirements.add(index, builder); + } + return (A)this; + } + + public A setToRequirements(int index,V1LabelSelectorRequirement item) { + if (this.requirements == null) {this.requirements = new ArrayList();} + V1LabelSelectorRequirementBuilder builder = new V1LabelSelectorRequirementBuilder(item); + if (index < 0 || index >= requirements.size()) { + _visitables.get("requirements").add(builder); + requirements.add(builder); + } else { + _visitables.get("requirements").add(builder); + requirements.set(index, builder); + } + return (A)this; + } + + public A addToRequirements(io.kubernetes.client.openapi.models.V1LabelSelectorRequirement... items) { + if (this.requirements == null) {this.requirements = new ArrayList();} + for (V1LabelSelectorRequirement item : items) {V1LabelSelectorRequirementBuilder builder = new V1LabelSelectorRequirementBuilder(item);_visitables.get("requirements").add(builder);this.requirements.add(builder);} return (A)this; + } + + public A addAllToRequirements(Collection items) { + if (this.requirements == null) {this.requirements = new ArrayList();} + for (V1LabelSelectorRequirement item : items) {V1LabelSelectorRequirementBuilder builder = new V1LabelSelectorRequirementBuilder(item);_visitables.get("requirements").add(builder);this.requirements.add(builder);} return (A)this; + } + + public A removeFromRequirements(io.kubernetes.client.openapi.models.V1LabelSelectorRequirement... items) { + if (this.requirements == null) return (A)this; + for (V1LabelSelectorRequirement item : items) {V1LabelSelectorRequirementBuilder builder = new V1LabelSelectorRequirementBuilder(item);_visitables.get("requirements").remove(builder); this.requirements.remove(builder);} return (A)this; + } + + public A removeAllFromRequirements(Collection items) { + if (this.requirements == null) return (A)this; + for (V1LabelSelectorRequirement item : items) {V1LabelSelectorRequirementBuilder builder = new V1LabelSelectorRequirementBuilder(item);_visitables.get("requirements").remove(builder); this.requirements.remove(builder);} return (A)this; + } + + public A removeMatchingFromRequirements(Predicate predicate) { + if (requirements == null) return (A) this; + final Iterator each = requirements.iterator(); + final List visitables = _visitables.get("requirements"); + while (each.hasNext()) { + V1LabelSelectorRequirementBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A)this; + } + + public List buildRequirements() { + return this.requirements != null ? build(requirements) : null; + } + + public V1LabelSelectorRequirement buildRequirement(int index) { + return this.requirements.get(index).build(); + } + + public V1LabelSelectorRequirement buildFirstRequirement() { + return this.requirements.get(0).build(); + } + + public V1LabelSelectorRequirement buildLastRequirement() { + return this.requirements.get(requirements.size() - 1).build(); + } + + public V1LabelSelectorRequirement buildMatchingRequirement(Predicate predicate) { + for (V1LabelSelectorRequirementBuilder item : requirements) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; + } + + public boolean hasMatchingRequirement(Predicate predicate) { + for (V1LabelSelectorRequirementBuilder item : requirements) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public A withRequirements(List requirements) { + if (this.requirements != null) { + this._visitables.get("requirements").clear(); + } + if (requirements != null) { + this.requirements = new ArrayList(); + for (V1LabelSelectorRequirement item : requirements) { + this.addToRequirements(item); + } + } else { + this.requirements = null; + } + return (A) this; + } + + public A withRequirements(io.kubernetes.client.openapi.models.V1LabelSelectorRequirement... requirements) { + if (this.requirements != null) { + this.requirements.clear(); + _visitables.remove("requirements"); + } + if (requirements != null) { + for (V1LabelSelectorRequirement item : requirements) { + this.addToRequirements(item); + } + } + return (A) this; + } + + public boolean hasRequirements() { + return this.requirements != null && !this.requirements.isEmpty(); + } + + public RequirementsNested addNewRequirement() { + return new RequirementsNested(-1, null); + } + + public RequirementsNested addNewRequirementLike(V1LabelSelectorRequirement item) { + return new RequirementsNested(-1, item); + } + + public RequirementsNested setNewRequirementLike(int index,V1LabelSelectorRequirement item) { + return new RequirementsNested(index, item); + } + + public RequirementsNested editRequirement(int index) { + if (requirements.size() <= index) throw new RuntimeException("Can't edit requirements. Index exceeds size."); + return setNewRequirementLike(index, buildRequirement(index)); + } + + public RequirementsNested editFirstRequirement() { + if (requirements.size() == 0) throw new RuntimeException("Can't edit first requirements. The list is empty."); + return setNewRequirementLike(0, buildRequirement(0)); + } + + public RequirementsNested editLastRequirement() { + int index = requirements.size() - 1; + if (index < 0) throw new RuntimeException("Can't edit last requirements. The list is empty."); + return setNewRequirementLike(index, buildRequirement(index)); + } + + public RequirementsNested editMatchingRequirement(Predicate predicate) { + int index = -1; + for (int i=0;i extends V1LabelSelectorRequirementFluent> implements Nested{ + RequirementsNested(int index,V1LabelSelectorRequirement item) { + this.index = index; + this.builder = new V1LabelSelectorRequirementBuilder(this, item); + } + V1LabelSelectorRequirementBuilder builder; + int index; + + public N and() { + return (N) V1LabelSelectorAttributesFluent.this.setToRequirements(index,builder.build()); + } + + public N endRequirement() { + return and(); + } + + + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LabelSelectorFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LabelSelectorFluent.java index ccfb28f31f..97d9c35b52 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LabelSelectorFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LabelSelectorFluent.java @@ -39,14 +39,26 @@ protected void copyInstance(V1LabelSelector instance) { public A addToMatchExpressions(int index,V1LabelSelectorRequirement item) { if (this.matchExpressions == null) {this.matchExpressions = new ArrayList();} V1LabelSelectorRequirementBuilder builder = new V1LabelSelectorRequirementBuilder(item); - if (index < 0 || index >= matchExpressions.size()) { _visitables.get("matchExpressions").add(builder); matchExpressions.add(builder); } else { _visitables.get("matchExpressions").add(index, builder); matchExpressions.add(index, builder);} + if (index < 0 || index >= matchExpressions.size()) { + _visitables.get("matchExpressions").add(builder); + matchExpressions.add(builder); + } else { + _visitables.get("matchExpressions").add(builder); + matchExpressions.add(index, builder); + } return (A)this; } public A setToMatchExpressions(int index,V1LabelSelectorRequirement item) { if (this.matchExpressions == null) {this.matchExpressions = new ArrayList();} V1LabelSelectorRequirementBuilder builder = new V1LabelSelectorRequirementBuilder(item); - if (index < 0 || index >= matchExpressions.size()) { _visitables.get("matchExpressions").add(builder); matchExpressions.add(builder); } else { _visitables.get("matchExpressions").set(index, builder); matchExpressions.set(index, builder);} + if (index < 0 || index >= matchExpressions.size()) { + _visitables.get("matchExpressions").add(builder); + matchExpressions.add(builder); + } else { + _visitables.get("matchExpressions").add(builder); + matchExpressions.set(index, builder); + } return (A)this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LeaseListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LeaseListFluent.java index a8c3b7cc96..0a0497d6c2 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LeaseListFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LeaseListFluent.java @@ -54,14 +54,26 @@ public boolean hasApiVersion() { public A addToItems(int index,V1Lease item) { if (this.items == null) {this.items = new ArrayList();} V1LeaseBuilder builder = new V1LeaseBuilder(item); - if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); items.add(builder); } else { _visitables.get("items").add(index, builder); items.add(index, builder);} + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.add(index, builder); + } return (A)this; } public A setToItems(int index,V1Lease item) { if (this.items == null) {this.items = new ArrayList();} V1LeaseBuilder builder = new V1LeaseBuilder(item); - if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); items.add(builder); } else { _visitables.get("items").set(index, builder); items.set(index, builder);} + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.set(index, builder); + } return (A)this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LeaseSpecBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LeaseSpecBuilder.java index ac17791b2d..683ba2945c 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LeaseSpecBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LeaseSpecBuilder.java @@ -27,7 +27,9 @@ public V1LeaseSpec build() { buildable.setHolderIdentity(fluent.getHolderIdentity()); buildable.setLeaseDurationSeconds(fluent.getLeaseDurationSeconds()); buildable.setLeaseTransitions(fluent.getLeaseTransitions()); + buildable.setPreferredHolder(fluent.getPreferredHolder()); buildable.setRenewTime(fluent.getRenewTime()); + buildable.setStrategy(fluent.getStrategy()); return buildable; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LeaseSpecFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LeaseSpecFluent.java index e4b244a865..836e85b141 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LeaseSpecFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LeaseSpecFluent.java @@ -22,7 +22,9 @@ public V1LeaseSpecFluent(V1LeaseSpec instance) { private String holderIdentity; private Integer leaseDurationSeconds; private Integer leaseTransitions; + private String preferredHolder; private OffsetDateTime renewTime; + private String strategy; protected void copyInstance(V1LeaseSpec instance) { instance = (instance != null ? instance : new V1LeaseSpec()); @@ -31,7 +33,9 @@ protected void copyInstance(V1LeaseSpec instance) { this.withHolderIdentity(instance.getHolderIdentity()); this.withLeaseDurationSeconds(instance.getLeaseDurationSeconds()); this.withLeaseTransitions(instance.getLeaseTransitions()); + this.withPreferredHolder(instance.getPreferredHolder()); this.withRenewTime(instance.getRenewTime()); + this.withStrategy(instance.getStrategy()); } } @@ -87,6 +91,19 @@ public boolean hasLeaseTransitions() { return this.leaseTransitions != null; } + public String getPreferredHolder() { + return this.preferredHolder; + } + + public A withPreferredHolder(String preferredHolder) { + this.preferredHolder = preferredHolder; + return (A) this; + } + + public boolean hasPreferredHolder() { + return this.preferredHolder != null; + } + public OffsetDateTime getRenewTime() { return this.renewTime; } @@ -100,6 +117,19 @@ public boolean hasRenewTime() { return this.renewTime != null; } + public String getStrategy() { + return this.strategy; + } + + public A withStrategy(String strategy) { + this.strategy = strategy; + return (A) this; + } + + public boolean hasStrategy() { + return this.strategy != null; + } + public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; @@ -109,12 +139,14 @@ public boolean equals(Object o) { if (!java.util.Objects.equals(holderIdentity, that.holderIdentity)) return false; if (!java.util.Objects.equals(leaseDurationSeconds, that.leaseDurationSeconds)) return false; if (!java.util.Objects.equals(leaseTransitions, that.leaseTransitions)) return false; + if (!java.util.Objects.equals(preferredHolder, that.preferredHolder)) return false; if (!java.util.Objects.equals(renewTime, that.renewTime)) return false; + if (!java.util.Objects.equals(strategy, that.strategy)) return false; return true; } public int hashCode() { - return java.util.Objects.hash(acquireTime, holderIdentity, leaseDurationSeconds, leaseTransitions, renewTime, super.hashCode()); + return java.util.Objects.hash(acquireTime, holderIdentity, leaseDurationSeconds, leaseTransitions, preferredHolder, renewTime, strategy, super.hashCode()); } public String toString() { @@ -124,7 +156,9 @@ public String toString() { if (holderIdentity != null) { sb.append("holderIdentity:"); sb.append(holderIdentity + ","); } if (leaseDurationSeconds != null) { sb.append("leaseDurationSeconds:"); sb.append(leaseDurationSeconds + ","); } if (leaseTransitions != null) { sb.append("leaseTransitions:"); sb.append(leaseTransitions + ","); } - if (renewTime != null) { sb.append("renewTime:"); sb.append(renewTime); } + if (preferredHolder != null) { sb.append("preferredHolder:"); sb.append(preferredHolder + ","); } + if (renewTime != null) { sb.append("renewTime:"); sb.append(renewTime + ","); } + if (strategy != null) { sb.append("strategy:"); sb.append(strategy); } sb.append("}"); return sb.toString(); } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LifecycleBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LifecycleBuilder.java index ea3ea94fc3..b16f0f9327 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LifecycleBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LifecycleBuilder.java @@ -25,6 +25,7 @@ public V1Lifecycle build() { V1Lifecycle buildable = new V1Lifecycle(); buildable.setPostStart(fluent.buildPostStart()); buildable.setPreStop(fluent.buildPreStop()); + buildable.setStopSignal(fluent.getStopSignal()); return buildable; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LifecycleFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LifecycleFluent.java index 77fd29f5b2..20566927f5 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LifecycleFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LifecycleFluent.java @@ -19,12 +19,14 @@ public V1LifecycleFluent(V1Lifecycle instance) { } private V1LifecycleHandlerBuilder postStart; private V1LifecycleHandlerBuilder preStop; + private String stopSignal; protected void copyInstance(V1Lifecycle instance) { instance = (instance != null ? instance : new V1Lifecycle()); if (instance != null) { this.withPostStart(instance.getPostStart()); this.withPreStop(instance.getPreStop()); + this.withStopSignal(instance.getStopSignal()); } } @@ -108,6 +110,19 @@ public PreStopNested editOrNewPreStopLike(V1LifecycleHandler item) { return withNewPreStopLike(java.util.Optional.ofNullable(buildPreStop()).orElse(item)); } + public String getStopSignal() { + return this.stopSignal; + } + + public A withStopSignal(String stopSignal) { + this.stopSignal = stopSignal; + return (A) this; + } + + public boolean hasStopSignal() { + return this.stopSignal != null; + } + public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; @@ -115,18 +130,20 @@ public boolean equals(Object o) { V1LifecycleFluent that = (V1LifecycleFluent) o; if (!java.util.Objects.equals(postStart, that.postStart)) return false; if (!java.util.Objects.equals(preStop, that.preStop)) return false; + if (!java.util.Objects.equals(stopSignal, that.stopSignal)) return false; return true; } public int hashCode() { - return java.util.Objects.hash(postStart, preStop, super.hashCode()); + return java.util.Objects.hash(postStart, preStop, stopSignal, super.hashCode()); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (postStart != null) { sb.append("postStart:"); sb.append(postStart + ","); } - if (preStop != null) { sb.append("preStop:"); sb.append(preStop); } + if (preStop != null) { sb.append("preStop:"); sb.append(preStop + ","); } + if (stopSignal != null) { sb.append("stopSignal:"); sb.append(stopSignal); } sb.append("}"); return sb.toString(); } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LifecycleHandlerBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LifecycleHandlerBuilder.java index 421c4976e6..69b74be574 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LifecycleHandlerBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LifecycleHandlerBuilder.java @@ -25,6 +25,7 @@ public V1LifecycleHandler build() { V1LifecycleHandler buildable = new V1LifecycleHandler(); buildable.setExec(fluent.buildExec()); buildable.setHttpGet(fluent.buildHttpGet()); + buildable.setSleep(fluent.buildSleep()); buildable.setTcpSocket(fluent.buildTcpSocket()); return buildable; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LifecycleHandlerFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LifecycleHandlerFluent.java index 34d4b1f6ee..55d16c57e3 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LifecycleHandlerFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LifecycleHandlerFluent.java @@ -19,6 +19,7 @@ public V1LifecycleHandlerFluent(V1LifecycleHandler instance) { } private V1ExecActionBuilder exec; private V1HTTPGetActionBuilder httpGet; + private V1SleepActionBuilder sleep; private V1TCPSocketActionBuilder tcpSocket; protected void copyInstance(V1LifecycleHandler instance) { @@ -26,6 +27,7 @@ protected void copyInstance(V1LifecycleHandler instance) { if (instance != null) { this.withExec(instance.getExec()); this.withHttpGet(instance.getHttpGet()); + this.withSleep(instance.getSleep()); this.withTcpSocket(instance.getTcpSocket()); } } @@ -110,6 +112,46 @@ public HttpGetNested editOrNewHttpGetLike(V1HTTPGetAction item) { return withNewHttpGetLike(java.util.Optional.ofNullable(buildHttpGet()).orElse(item)); } + public V1SleepAction buildSleep() { + return this.sleep != null ? this.sleep.build() : null; + } + + public A withSleep(V1SleepAction sleep) { + this._visitables.remove("sleep"); + if (sleep != null) { + this.sleep = new V1SleepActionBuilder(sleep); + this._visitables.get("sleep").add(this.sleep); + } else { + this.sleep = null; + this._visitables.get("sleep").remove(this.sleep); + } + return (A) this; + } + + public boolean hasSleep() { + return this.sleep != null; + } + + public SleepNested withNewSleep() { + return new SleepNested(null); + } + + public SleepNested withNewSleepLike(V1SleepAction item) { + return new SleepNested(item); + } + + public SleepNested editSleep() { + return withNewSleepLike(java.util.Optional.ofNullable(buildSleep()).orElse(null)); + } + + public SleepNested editOrNewSleep() { + return withNewSleepLike(java.util.Optional.ofNullable(buildSleep()).orElse(new V1SleepActionBuilder().build())); + } + + public SleepNested editOrNewSleepLike(V1SleepAction item) { + return withNewSleepLike(java.util.Optional.ofNullable(buildSleep()).orElse(item)); + } + public V1TCPSocketAction buildTcpSocket() { return this.tcpSocket != null ? this.tcpSocket.build() : null; } @@ -157,12 +199,13 @@ public boolean equals(Object o) { V1LifecycleHandlerFluent that = (V1LifecycleHandlerFluent) o; if (!java.util.Objects.equals(exec, that.exec)) return false; if (!java.util.Objects.equals(httpGet, that.httpGet)) return false; + if (!java.util.Objects.equals(sleep, that.sleep)) return false; if (!java.util.Objects.equals(tcpSocket, that.tcpSocket)) return false; return true; } public int hashCode() { - return java.util.Objects.hash(exec, httpGet, tcpSocket, super.hashCode()); + return java.util.Objects.hash(exec, httpGet, sleep, tcpSocket, super.hashCode()); } public String toString() { @@ -170,6 +213,7 @@ public String toString() { sb.append("{"); if (exec != null) { sb.append("exec:"); sb.append(exec + ","); } if (httpGet != null) { sb.append("httpGet:"); sb.append(httpGet + ","); } + if (sleep != null) { sb.append("sleep:"); sb.append(sleep + ","); } if (tcpSocket != null) { sb.append("tcpSocket:"); sb.append(tcpSocket); } sb.append("}"); return sb.toString(); @@ -205,6 +249,22 @@ public N endHttpGet() { } + } + public class SleepNested extends V1SleepActionFluent> implements Nested{ + SleepNested(V1SleepAction item) { + this.builder = new V1SleepActionBuilder(this, item); + } + V1SleepActionBuilder builder; + + public N and() { + return (N) V1LifecycleHandlerFluent.this.withSleep(builder.build()); + } + + public N endSleep() { + return and(); + } + + } public class TcpSocketNested extends V1TCPSocketActionFluent> implements Nested{ TcpSocketNested(V1TCPSocketAction item) { diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LimitRangeListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LimitRangeListFluent.java index 455b347d74..2dea986026 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LimitRangeListFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LimitRangeListFluent.java @@ -54,14 +54,26 @@ public boolean hasApiVersion() { public A addToItems(int index,V1LimitRange item) { if (this.items == null) {this.items = new ArrayList();} V1LimitRangeBuilder builder = new V1LimitRangeBuilder(item); - if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); items.add(builder); } else { _visitables.get("items").add(index, builder); items.add(index, builder);} + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.add(index, builder); + } return (A)this; } public A setToItems(int index,V1LimitRange item) { if (this.items == null) {this.items = new ArrayList();} V1LimitRangeBuilder builder = new V1LimitRangeBuilder(item); - if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); items.add(builder); } else { _visitables.get("items").set(index, builder); items.set(index, builder);} + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.set(index, builder); + } return (A)this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LimitRangeSpecFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LimitRangeSpecFluent.java index e741aac1ff..e66238eb04 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LimitRangeSpecFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LimitRangeSpecFluent.java @@ -35,14 +35,26 @@ protected void copyInstance(V1LimitRangeSpec instance) { public A addToLimits(int index,V1LimitRangeItem item) { if (this.limits == null) {this.limits = new ArrayList();} V1LimitRangeItemBuilder builder = new V1LimitRangeItemBuilder(item); - if (index < 0 || index >= limits.size()) { _visitables.get("limits").add(builder); limits.add(builder); } else { _visitables.get("limits").add(index, builder); limits.add(index, builder);} + if (index < 0 || index >= limits.size()) { + _visitables.get("limits").add(builder); + limits.add(builder); + } else { + _visitables.get("limits").add(builder); + limits.add(index, builder); + } return (A)this; } public A setToLimits(int index,V1LimitRangeItem item) { if (this.limits == null) {this.limits = new ArrayList();} V1LimitRangeItemBuilder builder = new V1LimitRangeItemBuilder(item); - if (index < 0 || index >= limits.size()) { _visitables.get("limits").add(builder); limits.add(builder); } else { _visitables.get("limits").set(index, builder); limits.set(index, builder);} + if (index < 0 || index >= limits.size()) { + _visitables.get("limits").add(builder); + limits.add(builder); + } else { + _visitables.get("limits").add(builder); + limits.set(index, builder); + } return (A)this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LimitResponseBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LimitResponseBuilder.java new file mode 100644 index 0000000000..1da3558187 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LimitResponseBuilder.java @@ -0,0 +1,32 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +public class V1LimitResponseBuilder extends V1LimitResponseFluent implements VisitableBuilder{ + public V1LimitResponseBuilder() { + this(new V1LimitResponse()); + } + + public V1LimitResponseBuilder(V1LimitResponseFluent fluent) { + this(fluent, new V1LimitResponse()); + } + + public V1LimitResponseBuilder(V1LimitResponseFluent fluent,V1LimitResponse instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1LimitResponseBuilder(V1LimitResponse instance) { + this.fluent = this; + this.copyInstance(instance); + } + V1LimitResponseFluent fluent; + + public V1LimitResponse build() { + V1LimitResponse buildable = new V1LimitResponse(); + buildable.setQueuing(fluent.buildQueuing()); + buildable.setType(fluent.getType()); + return buildable; + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LimitResponseFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LimitResponseFluent.java new file mode 100644 index 0000000000..726ee855d9 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LimitResponseFluent.java @@ -0,0 +1,123 @@ +package io.kubernetes.client.openapi.models; + +import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Object; +import java.lang.String; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1LimitResponseFluent> extends BaseFluent{ + public V1LimitResponseFluent() { + } + + public V1LimitResponseFluent(V1LimitResponse instance) { + this.copyInstance(instance); + } + private V1QueuingConfigurationBuilder queuing; + private String type; + + protected void copyInstance(V1LimitResponse instance) { + instance = (instance != null ? instance : new V1LimitResponse()); + if (instance != null) { + this.withQueuing(instance.getQueuing()); + this.withType(instance.getType()); + } + } + + public V1QueuingConfiguration buildQueuing() { + return this.queuing != null ? this.queuing.build() : null; + } + + public A withQueuing(V1QueuingConfiguration queuing) { + this._visitables.remove("queuing"); + if (queuing != null) { + this.queuing = new V1QueuingConfigurationBuilder(queuing); + this._visitables.get("queuing").add(this.queuing); + } else { + this.queuing = null; + this._visitables.get("queuing").remove(this.queuing); + } + return (A) this; + } + + public boolean hasQueuing() { + return this.queuing != null; + } + + public QueuingNested withNewQueuing() { + return new QueuingNested(null); + } + + public QueuingNested withNewQueuingLike(V1QueuingConfiguration item) { + return new QueuingNested(item); + } + + public QueuingNested editQueuing() { + return withNewQueuingLike(java.util.Optional.ofNullable(buildQueuing()).orElse(null)); + } + + public QueuingNested editOrNewQueuing() { + return withNewQueuingLike(java.util.Optional.ofNullable(buildQueuing()).orElse(new V1QueuingConfigurationBuilder().build())); + } + + public QueuingNested editOrNewQueuingLike(V1QueuingConfiguration item) { + return withNewQueuingLike(java.util.Optional.ofNullable(buildQueuing()).orElse(item)); + } + + public String getType() { + return this.type; + } + + public A withType(String type) { + this.type = type; + return (A) this; + } + + public boolean hasType() { + return this.type != null; + } + + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + if (!super.equals(o)) return false; + V1LimitResponseFluent that = (V1LimitResponseFluent) o; + if (!java.util.Objects.equals(queuing, that.queuing)) return false; + if (!java.util.Objects.equals(type, that.type)) return false; + return true; + } + + public int hashCode() { + return java.util.Objects.hash(queuing, type, super.hashCode()); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (queuing != null) { sb.append("queuing:"); sb.append(queuing + ","); } + if (type != null) { sb.append("type:"); sb.append(type); } + sb.append("}"); + return sb.toString(); + } + public class QueuingNested extends V1QueuingConfigurationFluent> implements Nested{ + QueuingNested(V1QueuingConfiguration item) { + this.builder = new V1QueuingConfigurationBuilder(this, item); + } + V1QueuingConfigurationBuilder builder; + + public N and() { + return (N) V1LimitResponseFluent.this.withQueuing(builder.build()); + } + + public N endQueuing() { + return and(); + } + + + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LimitedPriorityLevelConfigurationBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LimitedPriorityLevelConfigurationBuilder.java new file mode 100644 index 0000000000..fbe4d4fe94 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LimitedPriorityLevelConfigurationBuilder.java @@ -0,0 +1,34 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +public class V1LimitedPriorityLevelConfigurationBuilder extends V1LimitedPriorityLevelConfigurationFluent implements VisitableBuilder{ + public V1LimitedPriorityLevelConfigurationBuilder() { + this(new V1LimitedPriorityLevelConfiguration()); + } + + public V1LimitedPriorityLevelConfigurationBuilder(V1LimitedPriorityLevelConfigurationFluent fluent) { + this(fluent, new V1LimitedPriorityLevelConfiguration()); + } + + public V1LimitedPriorityLevelConfigurationBuilder(V1LimitedPriorityLevelConfigurationFluent fluent,V1LimitedPriorityLevelConfiguration instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1LimitedPriorityLevelConfigurationBuilder(V1LimitedPriorityLevelConfiguration instance) { + this.fluent = this; + this.copyInstance(instance); + } + V1LimitedPriorityLevelConfigurationFluent fluent; + + public V1LimitedPriorityLevelConfiguration build() { + V1LimitedPriorityLevelConfiguration buildable = new V1LimitedPriorityLevelConfiguration(); + buildable.setBorrowingLimitPercent(fluent.getBorrowingLimitPercent()); + buildable.setLendablePercent(fluent.getLendablePercent()); + buildable.setLimitResponse(fluent.buildLimitResponse()); + buildable.setNominalConcurrencyShares(fluent.getNominalConcurrencyShares()); + return buildable; + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LimitedPriorityLevelConfigurationFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LimitedPriorityLevelConfigurationFluent.java new file mode 100644 index 0000000000..42092a7596 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LimitedPriorityLevelConfigurationFluent.java @@ -0,0 +1,158 @@ +package io.kubernetes.client.openapi.models; + +import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.Nested; +import java.lang.String; +import java.lang.Integer; +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Object; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1LimitedPriorityLevelConfigurationFluent> extends BaseFluent{ + public V1LimitedPriorityLevelConfigurationFluent() { + } + + public V1LimitedPriorityLevelConfigurationFluent(V1LimitedPriorityLevelConfiguration instance) { + this.copyInstance(instance); + } + private Integer borrowingLimitPercent; + private Integer lendablePercent; + private V1LimitResponseBuilder limitResponse; + private Integer nominalConcurrencyShares; + + protected void copyInstance(V1LimitedPriorityLevelConfiguration instance) { + instance = (instance != null ? instance : new V1LimitedPriorityLevelConfiguration()); + if (instance != null) { + this.withBorrowingLimitPercent(instance.getBorrowingLimitPercent()); + this.withLendablePercent(instance.getLendablePercent()); + this.withLimitResponse(instance.getLimitResponse()); + this.withNominalConcurrencyShares(instance.getNominalConcurrencyShares()); + } + } + + public Integer getBorrowingLimitPercent() { + return this.borrowingLimitPercent; + } + + public A withBorrowingLimitPercent(Integer borrowingLimitPercent) { + this.borrowingLimitPercent = borrowingLimitPercent; + return (A) this; + } + + public boolean hasBorrowingLimitPercent() { + return this.borrowingLimitPercent != null; + } + + public Integer getLendablePercent() { + return this.lendablePercent; + } + + public A withLendablePercent(Integer lendablePercent) { + this.lendablePercent = lendablePercent; + return (A) this; + } + + public boolean hasLendablePercent() { + return this.lendablePercent != null; + } + + public V1LimitResponse buildLimitResponse() { + return this.limitResponse != null ? this.limitResponse.build() : null; + } + + public A withLimitResponse(V1LimitResponse limitResponse) { + this._visitables.remove("limitResponse"); + if (limitResponse != null) { + this.limitResponse = new V1LimitResponseBuilder(limitResponse); + this._visitables.get("limitResponse").add(this.limitResponse); + } else { + this.limitResponse = null; + this._visitables.get("limitResponse").remove(this.limitResponse); + } + return (A) this; + } + + public boolean hasLimitResponse() { + return this.limitResponse != null; + } + + public LimitResponseNested withNewLimitResponse() { + return new LimitResponseNested(null); + } + + public LimitResponseNested withNewLimitResponseLike(V1LimitResponse item) { + return new LimitResponseNested(item); + } + + public LimitResponseNested editLimitResponse() { + return withNewLimitResponseLike(java.util.Optional.ofNullable(buildLimitResponse()).orElse(null)); + } + + public LimitResponseNested editOrNewLimitResponse() { + return withNewLimitResponseLike(java.util.Optional.ofNullable(buildLimitResponse()).orElse(new V1LimitResponseBuilder().build())); + } + + public LimitResponseNested editOrNewLimitResponseLike(V1LimitResponse item) { + return withNewLimitResponseLike(java.util.Optional.ofNullable(buildLimitResponse()).orElse(item)); + } + + public Integer getNominalConcurrencyShares() { + return this.nominalConcurrencyShares; + } + + public A withNominalConcurrencyShares(Integer nominalConcurrencyShares) { + this.nominalConcurrencyShares = nominalConcurrencyShares; + return (A) this; + } + + public boolean hasNominalConcurrencyShares() { + return this.nominalConcurrencyShares != null; + } + + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + if (!super.equals(o)) return false; + V1LimitedPriorityLevelConfigurationFluent that = (V1LimitedPriorityLevelConfigurationFluent) o; + if (!java.util.Objects.equals(borrowingLimitPercent, that.borrowingLimitPercent)) return false; + if (!java.util.Objects.equals(lendablePercent, that.lendablePercent)) return false; + if (!java.util.Objects.equals(limitResponse, that.limitResponse)) return false; + if (!java.util.Objects.equals(nominalConcurrencyShares, that.nominalConcurrencyShares)) return false; + return true; + } + + public int hashCode() { + return java.util.Objects.hash(borrowingLimitPercent, lendablePercent, limitResponse, nominalConcurrencyShares, super.hashCode()); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (borrowingLimitPercent != null) { sb.append("borrowingLimitPercent:"); sb.append(borrowingLimitPercent + ","); } + if (lendablePercent != null) { sb.append("lendablePercent:"); sb.append(lendablePercent + ","); } + if (limitResponse != null) { sb.append("limitResponse:"); sb.append(limitResponse + ","); } + if (nominalConcurrencyShares != null) { sb.append("nominalConcurrencyShares:"); sb.append(nominalConcurrencyShares); } + sb.append("}"); + return sb.toString(); + } + public class LimitResponseNested extends V1LimitResponseFluent> implements Nested{ + LimitResponseNested(V1LimitResponse item) { + this.builder = new V1LimitResponseBuilder(this, item); + } + V1LimitResponseBuilder builder; + + public N and() { + return (N) V1LimitedPriorityLevelConfigurationFluent.this.withLimitResponse(builder.build()); + } + + public N endLimitResponse() { + return and(); + } + + + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LinuxContainerUserBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LinuxContainerUserBuilder.java new file mode 100644 index 0000000000..e4bb0d5301 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LinuxContainerUserBuilder.java @@ -0,0 +1,33 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +public class V1LinuxContainerUserBuilder extends V1LinuxContainerUserFluent implements VisitableBuilder{ + public V1LinuxContainerUserBuilder() { + this(new V1LinuxContainerUser()); + } + + public V1LinuxContainerUserBuilder(V1LinuxContainerUserFluent fluent) { + this(fluent, new V1LinuxContainerUser()); + } + + public V1LinuxContainerUserBuilder(V1LinuxContainerUserFluent fluent,V1LinuxContainerUser instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1LinuxContainerUserBuilder(V1LinuxContainerUser instance) { + this.fluent = this; + this.copyInstance(instance); + } + V1LinuxContainerUserFluent fluent; + + public V1LinuxContainerUser build() { + V1LinuxContainerUser buildable = new V1LinuxContainerUser(); + buildable.setGid(fluent.getGid()); + buildable.setSupplementalGroups(fluent.getSupplementalGroups()); + buildable.setUid(fluent.getUid()); + return buildable; + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LinuxContainerUserFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LinuxContainerUserFluent.java new file mode 100644 index 0000000000..283fa19f5e --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LinuxContainerUserFluent.java @@ -0,0 +1,183 @@ +package io.kubernetes.client.openapi.models; + +import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Long; +import java.util.ArrayList; +import java.util.Collection; +import java.lang.Object; +import java.util.List; +import java.lang.String; +import java.util.function.Predicate; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1LinuxContainerUserFluent> extends BaseFluent{ + public V1LinuxContainerUserFluent() { + } + + public V1LinuxContainerUserFluent(V1LinuxContainerUser instance) { + this.copyInstance(instance); + } + private Long gid; + private List supplementalGroups; + private Long uid; + + protected void copyInstance(V1LinuxContainerUser instance) { + instance = (instance != null ? instance : new V1LinuxContainerUser()); + if (instance != null) { + this.withGid(instance.getGid()); + this.withSupplementalGroups(instance.getSupplementalGroups()); + this.withUid(instance.getUid()); + } + } + + public Long getGid() { + return this.gid; + } + + public A withGid(Long gid) { + this.gid = gid; + return (A) this; + } + + public boolean hasGid() { + return this.gid != null; + } + + public A addToSupplementalGroups(int index,Long item) { + if (this.supplementalGroups == null) {this.supplementalGroups = new ArrayList();} + this.supplementalGroups.add(index, item); + return (A)this; + } + + public A setToSupplementalGroups(int index,Long item) { + if (this.supplementalGroups == null) {this.supplementalGroups = new ArrayList();} + this.supplementalGroups.set(index, item); return (A)this; + } + + public A addToSupplementalGroups(java.lang.Long... items) { + if (this.supplementalGroups == null) {this.supplementalGroups = new ArrayList();} + for (Long item : items) {this.supplementalGroups.add(item);} return (A)this; + } + + public A addAllToSupplementalGroups(Collection items) { + if (this.supplementalGroups == null) {this.supplementalGroups = new ArrayList();} + for (Long item : items) {this.supplementalGroups.add(item);} return (A)this; + } + + public A removeFromSupplementalGroups(java.lang.Long... items) { + if (this.supplementalGroups == null) return (A)this; + for (Long item : items) { this.supplementalGroups.remove(item);} return (A)this; + } + + public A removeAllFromSupplementalGroups(Collection items) { + if (this.supplementalGroups == null) return (A)this; + for (Long item : items) { this.supplementalGroups.remove(item);} return (A)this; + } + + public List getSupplementalGroups() { + return this.supplementalGroups; + } + + public Long getSupplementalGroup(int index) { + return this.supplementalGroups.get(index); + } + + public Long getFirstSupplementalGroup() { + return this.supplementalGroups.get(0); + } + + public Long getLastSupplementalGroup() { + return this.supplementalGroups.get(supplementalGroups.size() - 1); + } + + public Long getMatchingSupplementalGroup(Predicate predicate) { + for (Long item : supplementalGroups) { + if (predicate.test(item)) { + return item; + } + } + return null; + } + + public boolean hasMatchingSupplementalGroup(Predicate predicate) { + for (Long item : supplementalGroups) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public A withSupplementalGroups(List supplementalGroups) { + if (supplementalGroups != null) { + this.supplementalGroups = new ArrayList(); + for (Long item : supplementalGroups) { + this.addToSupplementalGroups(item); + } + } else { + this.supplementalGroups = null; + } + return (A) this; + } + + public A withSupplementalGroups(java.lang.Long... supplementalGroups) { + if (this.supplementalGroups != null) { + this.supplementalGroups.clear(); + _visitables.remove("supplementalGroups"); + } + if (supplementalGroups != null) { + for (Long item : supplementalGroups) { + this.addToSupplementalGroups(item); + } + } + return (A) this; + } + + public boolean hasSupplementalGroups() { + return this.supplementalGroups != null && !this.supplementalGroups.isEmpty(); + } + + public Long getUid() { + return this.uid; + } + + public A withUid(Long uid) { + this.uid = uid; + return (A) this; + } + + public boolean hasUid() { + return this.uid != null; + } + + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + if (!super.equals(o)) return false; + V1LinuxContainerUserFluent that = (V1LinuxContainerUserFluent) o; + if (!java.util.Objects.equals(gid, that.gid)) return false; + if (!java.util.Objects.equals(supplementalGroups, that.supplementalGroups)) return false; + if (!java.util.Objects.equals(uid, that.uid)) return false; + return true; + } + + public int hashCode() { + return java.util.Objects.hash(gid, supplementalGroups, uid, super.hashCode()); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (gid != null) { sb.append("gid:"); sb.append(gid + ","); } + if (supplementalGroups != null && !supplementalGroups.isEmpty()) { sb.append("supplementalGroups:"); sb.append(supplementalGroups + ","); } + if (uid != null) { sb.append("uid:"); sb.append(uid); } + sb.append("}"); + return sb.toString(); + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LoadBalancerIngressBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LoadBalancerIngressBuilder.java index 34c50901cf..c6e92bc430 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LoadBalancerIngressBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LoadBalancerIngressBuilder.java @@ -25,6 +25,7 @@ public V1LoadBalancerIngress build() { V1LoadBalancerIngress buildable = new V1LoadBalancerIngress(); buildable.setHostname(fluent.getHostname()); buildable.setIp(fluent.getIp()); + buildable.setIpMode(fluent.getIpMode()); buildable.setPorts(fluent.buildPorts()); return buildable; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LoadBalancerIngressFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LoadBalancerIngressFluent.java index 31896d5c42..af7eca76de 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LoadBalancerIngressFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LoadBalancerIngressFluent.java @@ -25,6 +25,7 @@ public V1LoadBalancerIngressFluent(V1LoadBalancerIngress instance) { } private String hostname; private String ip; + private String ipMode; private ArrayList ports; protected void copyInstance(V1LoadBalancerIngress instance) { @@ -32,6 +33,7 @@ protected void copyInstance(V1LoadBalancerIngress instance) { if (instance != null) { this.withHostname(instance.getHostname()); this.withIp(instance.getIp()); + this.withIpMode(instance.getIpMode()); this.withPorts(instance.getPorts()); } } @@ -62,17 +64,42 @@ public boolean hasIp() { return this.ip != null; } + public String getIpMode() { + return this.ipMode; + } + + public A withIpMode(String ipMode) { + this.ipMode = ipMode; + return (A) this; + } + + public boolean hasIpMode() { + return this.ipMode != null; + } + public A addToPorts(int index,V1PortStatus item) { if (this.ports == null) {this.ports = new ArrayList();} V1PortStatusBuilder builder = new V1PortStatusBuilder(item); - if (index < 0 || index >= ports.size()) { _visitables.get("ports").add(builder); ports.add(builder); } else { _visitables.get("ports").add(index, builder); ports.add(index, builder);} + if (index < 0 || index >= ports.size()) { + _visitables.get("ports").add(builder); + ports.add(builder); + } else { + _visitables.get("ports").add(builder); + ports.add(index, builder); + } return (A)this; } public A setToPorts(int index,V1PortStatus item) { if (this.ports == null) {this.ports = new ArrayList();} V1PortStatusBuilder builder = new V1PortStatusBuilder(item); - if (index < 0 || index >= ports.size()) { _visitables.get("ports").add(builder); ports.add(builder); } else { _visitables.get("ports").set(index, builder); ports.set(index, builder);} + if (index < 0 || index >= ports.size()) { + _visitables.get("ports").add(builder); + ports.add(builder); + } else { + _visitables.get("ports").add(builder); + ports.set(index, builder); + } return (A)this; } @@ -220,12 +247,13 @@ public boolean equals(Object o) { V1LoadBalancerIngressFluent that = (V1LoadBalancerIngressFluent) o; if (!java.util.Objects.equals(hostname, that.hostname)) return false; if (!java.util.Objects.equals(ip, that.ip)) return false; + if (!java.util.Objects.equals(ipMode, that.ipMode)) return false; if (!java.util.Objects.equals(ports, that.ports)) return false; return true; } public int hashCode() { - return java.util.Objects.hash(hostname, ip, ports, super.hashCode()); + return java.util.Objects.hash(hostname, ip, ipMode, ports, super.hashCode()); } public String toString() { @@ -233,6 +261,7 @@ public String toString() { sb.append("{"); if (hostname != null) { sb.append("hostname:"); sb.append(hostname + ","); } if (ip != null) { sb.append("ip:"); sb.append(ip + ","); } + if (ipMode != null) { sb.append("ipMode:"); sb.append(ipMode + ","); } if (ports != null && !ports.isEmpty()) { sb.append("ports:"); sb.append(ports); } sb.append("}"); return sb.toString(); diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LoadBalancerStatusFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LoadBalancerStatusFluent.java index 088467bb84..03405ecaf7 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LoadBalancerStatusFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LoadBalancerStatusFluent.java @@ -35,14 +35,26 @@ protected void copyInstance(V1LoadBalancerStatus instance) { public A addToIngress(int index,V1LoadBalancerIngress item) { if (this.ingress == null) {this.ingress = new ArrayList();} V1LoadBalancerIngressBuilder builder = new V1LoadBalancerIngressBuilder(item); - if (index < 0 || index >= ingress.size()) { _visitables.get("ingress").add(builder); ingress.add(builder); } else { _visitables.get("ingress").add(index, builder); ingress.add(index, builder);} + if (index < 0 || index >= ingress.size()) { + _visitables.get("ingress").add(builder); + ingress.add(builder); + } else { + _visitables.get("ingress").add(builder); + ingress.add(index, builder); + } return (A)this; } public A setToIngress(int index,V1LoadBalancerIngress item) { if (this.ingress == null) {this.ingress = new ArrayList();} V1LoadBalancerIngressBuilder builder = new V1LoadBalancerIngressBuilder(item); - if (index < 0 || index >= ingress.size()) { _visitables.get("ingress").add(builder); ingress.add(builder); } else { _visitables.get("ingress").set(index, builder); ingress.set(index, builder);} + if (index < 0 || index >= ingress.size()) { + _visitables.get("ingress").add(builder); + ingress.add(builder); + } else { + _visitables.get("ingress").add(builder); + ingress.set(index, builder); + } return (A)this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1MatchResourcesBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1MatchResourcesBuilder.java new file mode 100644 index 0000000000..fdae6d54dc --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1MatchResourcesBuilder.java @@ -0,0 +1,35 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +public class V1MatchResourcesBuilder extends V1MatchResourcesFluent implements VisitableBuilder{ + public V1MatchResourcesBuilder() { + this(new V1MatchResources()); + } + + public V1MatchResourcesBuilder(V1MatchResourcesFluent fluent) { + this(fluent, new V1MatchResources()); + } + + public V1MatchResourcesBuilder(V1MatchResourcesFluent fluent,V1MatchResources instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1MatchResourcesBuilder(V1MatchResources instance) { + this.fluent = this; + this.copyInstance(instance); + } + V1MatchResourcesFluent fluent; + + public V1MatchResources build() { + V1MatchResources buildable = new V1MatchResources(); + buildable.setExcludeResourceRules(fluent.buildExcludeResourceRules()); + buildable.setMatchPolicy(fluent.getMatchPolicy()); + buildable.setNamespaceSelector(fluent.buildNamespaceSelector()); + buildable.setObjectSelector(fluent.buildObjectSelector()); + buildable.setResourceRules(fluent.buildResourceRules()); + return buildable; + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1MatchResourcesFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1MatchResourcesFluent.java new file mode 100644 index 0000000000..6bb1ba5bd2 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1MatchResourcesFluent.java @@ -0,0 +1,559 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.Nested; +import java.util.ArrayList; +import java.lang.String; +import java.util.function.Predicate; +import io.kubernetes.client.fluent.BaseFluent; +import java.util.Iterator; +import java.util.List; +import java.util.Collection; +import java.lang.Object; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1MatchResourcesFluent> extends BaseFluent{ + public V1MatchResourcesFluent() { + } + + public V1MatchResourcesFluent(V1MatchResources instance) { + this.copyInstance(instance); + } + private ArrayList excludeResourceRules; + private String matchPolicy; + private V1LabelSelectorBuilder namespaceSelector; + private V1LabelSelectorBuilder objectSelector; + private ArrayList resourceRules; + + protected void copyInstance(V1MatchResources instance) { + instance = (instance != null ? instance : new V1MatchResources()); + if (instance != null) { + this.withExcludeResourceRules(instance.getExcludeResourceRules()); + this.withMatchPolicy(instance.getMatchPolicy()); + this.withNamespaceSelector(instance.getNamespaceSelector()); + this.withObjectSelector(instance.getObjectSelector()); + this.withResourceRules(instance.getResourceRules()); + } + } + + public A addToExcludeResourceRules(int index,V1NamedRuleWithOperations item) { + if (this.excludeResourceRules == null) {this.excludeResourceRules = new ArrayList();} + V1NamedRuleWithOperationsBuilder builder = new V1NamedRuleWithOperationsBuilder(item); + if (index < 0 || index >= excludeResourceRules.size()) { + _visitables.get("excludeResourceRules").add(builder); + excludeResourceRules.add(builder); + } else { + _visitables.get("excludeResourceRules").add(builder); + excludeResourceRules.add(index, builder); + } + return (A)this; + } + + public A setToExcludeResourceRules(int index,V1NamedRuleWithOperations item) { + if (this.excludeResourceRules == null) {this.excludeResourceRules = new ArrayList();} + V1NamedRuleWithOperationsBuilder builder = new V1NamedRuleWithOperationsBuilder(item); + if (index < 0 || index >= excludeResourceRules.size()) { + _visitables.get("excludeResourceRules").add(builder); + excludeResourceRules.add(builder); + } else { + _visitables.get("excludeResourceRules").add(builder); + excludeResourceRules.set(index, builder); + } + return (A)this; + } + + public A addToExcludeResourceRules(io.kubernetes.client.openapi.models.V1NamedRuleWithOperations... items) { + if (this.excludeResourceRules == null) {this.excludeResourceRules = new ArrayList();} + for (V1NamedRuleWithOperations item : items) {V1NamedRuleWithOperationsBuilder builder = new V1NamedRuleWithOperationsBuilder(item);_visitables.get("excludeResourceRules").add(builder);this.excludeResourceRules.add(builder);} return (A)this; + } + + public A addAllToExcludeResourceRules(Collection items) { + if (this.excludeResourceRules == null) {this.excludeResourceRules = new ArrayList();} + for (V1NamedRuleWithOperations item : items) {V1NamedRuleWithOperationsBuilder builder = new V1NamedRuleWithOperationsBuilder(item);_visitables.get("excludeResourceRules").add(builder);this.excludeResourceRules.add(builder);} return (A)this; + } + + public A removeFromExcludeResourceRules(io.kubernetes.client.openapi.models.V1NamedRuleWithOperations... items) { + if (this.excludeResourceRules == null) return (A)this; + for (V1NamedRuleWithOperations item : items) {V1NamedRuleWithOperationsBuilder builder = new V1NamedRuleWithOperationsBuilder(item);_visitables.get("excludeResourceRules").remove(builder); this.excludeResourceRules.remove(builder);} return (A)this; + } + + public A removeAllFromExcludeResourceRules(Collection items) { + if (this.excludeResourceRules == null) return (A)this; + for (V1NamedRuleWithOperations item : items) {V1NamedRuleWithOperationsBuilder builder = new V1NamedRuleWithOperationsBuilder(item);_visitables.get("excludeResourceRules").remove(builder); this.excludeResourceRules.remove(builder);} return (A)this; + } + + public A removeMatchingFromExcludeResourceRules(Predicate predicate) { + if (excludeResourceRules == null) return (A) this; + final Iterator each = excludeResourceRules.iterator(); + final List visitables = _visitables.get("excludeResourceRules"); + while (each.hasNext()) { + V1NamedRuleWithOperationsBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A)this; + } + + public List buildExcludeResourceRules() { + return this.excludeResourceRules != null ? build(excludeResourceRules) : null; + } + + public V1NamedRuleWithOperations buildExcludeResourceRule(int index) { + return this.excludeResourceRules.get(index).build(); + } + + public V1NamedRuleWithOperations buildFirstExcludeResourceRule() { + return this.excludeResourceRules.get(0).build(); + } + + public V1NamedRuleWithOperations buildLastExcludeResourceRule() { + return this.excludeResourceRules.get(excludeResourceRules.size() - 1).build(); + } + + public V1NamedRuleWithOperations buildMatchingExcludeResourceRule(Predicate predicate) { + for (V1NamedRuleWithOperationsBuilder item : excludeResourceRules) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; + } + + public boolean hasMatchingExcludeResourceRule(Predicate predicate) { + for (V1NamedRuleWithOperationsBuilder item : excludeResourceRules) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public A withExcludeResourceRules(List excludeResourceRules) { + if (this.excludeResourceRules != null) { + this._visitables.get("excludeResourceRules").clear(); + } + if (excludeResourceRules != null) { + this.excludeResourceRules = new ArrayList(); + for (V1NamedRuleWithOperations item : excludeResourceRules) { + this.addToExcludeResourceRules(item); + } + } else { + this.excludeResourceRules = null; + } + return (A) this; + } + + public A withExcludeResourceRules(io.kubernetes.client.openapi.models.V1NamedRuleWithOperations... excludeResourceRules) { + if (this.excludeResourceRules != null) { + this.excludeResourceRules.clear(); + _visitables.remove("excludeResourceRules"); + } + if (excludeResourceRules != null) { + for (V1NamedRuleWithOperations item : excludeResourceRules) { + this.addToExcludeResourceRules(item); + } + } + return (A) this; + } + + public boolean hasExcludeResourceRules() { + return this.excludeResourceRules != null && !this.excludeResourceRules.isEmpty(); + } + + public ExcludeResourceRulesNested addNewExcludeResourceRule() { + return new ExcludeResourceRulesNested(-1, null); + } + + public ExcludeResourceRulesNested addNewExcludeResourceRuleLike(V1NamedRuleWithOperations item) { + return new ExcludeResourceRulesNested(-1, item); + } + + public ExcludeResourceRulesNested setNewExcludeResourceRuleLike(int index,V1NamedRuleWithOperations item) { + return new ExcludeResourceRulesNested(index, item); + } + + public ExcludeResourceRulesNested editExcludeResourceRule(int index) { + if (excludeResourceRules.size() <= index) throw new RuntimeException("Can't edit excludeResourceRules. Index exceeds size."); + return setNewExcludeResourceRuleLike(index, buildExcludeResourceRule(index)); + } + + public ExcludeResourceRulesNested editFirstExcludeResourceRule() { + if (excludeResourceRules.size() == 0) throw new RuntimeException("Can't edit first excludeResourceRules. The list is empty."); + return setNewExcludeResourceRuleLike(0, buildExcludeResourceRule(0)); + } + + public ExcludeResourceRulesNested editLastExcludeResourceRule() { + int index = excludeResourceRules.size() - 1; + if (index < 0) throw new RuntimeException("Can't edit last excludeResourceRules. The list is empty."); + return setNewExcludeResourceRuleLike(index, buildExcludeResourceRule(index)); + } + + public ExcludeResourceRulesNested editMatchingExcludeResourceRule(Predicate predicate) { + int index = -1; + for (int i=0;i withNewNamespaceSelector() { + return new NamespaceSelectorNested(null); + } + + public NamespaceSelectorNested withNewNamespaceSelectorLike(V1LabelSelector item) { + return new NamespaceSelectorNested(item); + } + + public NamespaceSelectorNested editNamespaceSelector() { + return withNewNamespaceSelectorLike(java.util.Optional.ofNullable(buildNamespaceSelector()).orElse(null)); + } + + public NamespaceSelectorNested editOrNewNamespaceSelector() { + return withNewNamespaceSelectorLike(java.util.Optional.ofNullable(buildNamespaceSelector()).orElse(new V1LabelSelectorBuilder().build())); + } + + public NamespaceSelectorNested editOrNewNamespaceSelectorLike(V1LabelSelector item) { + return withNewNamespaceSelectorLike(java.util.Optional.ofNullable(buildNamespaceSelector()).orElse(item)); + } + + public V1LabelSelector buildObjectSelector() { + return this.objectSelector != null ? this.objectSelector.build() : null; + } + + public A withObjectSelector(V1LabelSelector objectSelector) { + this._visitables.remove("objectSelector"); + if (objectSelector != null) { + this.objectSelector = new V1LabelSelectorBuilder(objectSelector); + this._visitables.get("objectSelector").add(this.objectSelector); + } else { + this.objectSelector = null; + this._visitables.get("objectSelector").remove(this.objectSelector); + } + return (A) this; + } + + public boolean hasObjectSelector() { + return this.objectSelector != null; + } + + public ObjectSelectorNested withNewObjectSelector() { + return new ObjectSelectorNested(null); + } + + public ObjectSelectorNested withNewObjectSelectorLike(V1LabelSelector item) { + return new ObjectSelectorNested(item); + } + + public ObjectSelectorNested editObjectSelector() { + return withNewObjectSelectorLike(java.util.Optional.ofNullable(buildObjectSelector()).orElse(null)); + } + + public ObjectSelectorNested editOrNewObjectSelector() { + return withNewObjectSelectorLike(java.util.Optional.ofNullable(buildObjectSelector()).orElse(new V1LabelSelectorBuilder().build())); + } + + public ObjectSelectorNested editOrNewObjectSelectorLike(V1LabelSelector item) { + return withNewObjectSelectorLike(java.util.Optional.ofNullable(buildObjectSelector()).orElse(item)); + } + + public A addToResourceRules(int index,V1NamedRuleWithOperations item) { + if (this.resourceRules == null) {this.resourceRules = new ArrayList();} + V1NamedRuleWithOperationsBuilder builder = new V1NamedRuleWithOperationsBuilder(item); + if (index < 0 || index >= resourceRules.size()) { + _visitables.get("resourceRules").add(builder); + resourceRules.add(builder); + } else { + _visitables.get("resourceRules").add(builder); + resourceRules.add(index, builder); + } + return (A)this; + } + + public A setToResourceRules(int index,V1NamedRuleWithOperations item) { + if (this.resourceRules == null) {this.resourceRules = new ArrayList();} + V1NamedRuleWithOperationsBuilder builder = new V1NamedRuleWithOperationsBuilder(item); + if (index < 0 || index >= resourceRules.size()) { + _visitables.get("resourceRules").add(builder); + resourceRules.add(builder); + } else { + _visitables.get("resourceRules").add(builder); + resourceRules.set(index, builder); + } + return (A)this; + } + + public A addToResourceRules(io.kubernetes.client.openapi.models.V1NamedRuleWithOperations... items) { + if (this.resourceRules == null) {this.resourceRules = new ArrayList();} + for (V1NamedRuleWithOperations item : items) {V1NamedRuleWithOperationsBuilder builder = new V1NamedRuleWithOperationsBuilder(item);_visitables.get("resourceRules").add(builder);this.resourceRules.add(builder);} return (A)this; + } + + public A addAllToResourceRules(Collection items) { + if (this.resourceRules == null) {this.resourceRules = new ArrayList();} + for (V1NamedRuleWithOperations item : items) {V1NamedRuleWithOperationsBuilder builder = new V1NamedRuleWithOperationsBuilder(item);_visitables.get("resourceRules").add(builder);this.resourceRules.add(builder);} return (A)this; + } + + public A removeFromResourceRules(io.kubernetes.client.openapi.models.V1NamedRuleWithOperations... items) { + if (this.resourceRules == null) return (A)this; + for (V1NamedRuleWithOperations item : items) {V1NamedRuleWithOperationsBuilder builder = new V1NamedRuleWithOperationsBuilder(item);_visitables.get("resourceRules").remove(builder); this.resourceRules.remove(builder);} return (A)this; + } + + public A removeAllFromResourceRules(Collection items) { + if (this.resourceRules == null) return (A)this; + for (V1NamedRuleWithOperations item : items) {V1NamedRuleWithOperationsBuilder builder = new V1NamedRuleWithOperationsBuilder(item);_visitables.get("resourceRules").remove(builder); this.resourceRules.remove(builder);} return (A)this; + } + + public A removeMatchingFromResourceRules(Predicate predicate) { + if (resourceRules == null) return (A) this; + final Iterator each = resourceRules.iterator(); + final List visitables = _visitables.get("resourceRules"); + while (each.hasNext()) { + V1NamedRuleWithOperationsBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A)this; + } + + public List buildResourceRules() { + return this.resourceRules != null ? build(resourceRules) : null; + } + + public V1NamedRuleWithOperations buildResourceRule(int index) { + return this.resourceRules.get(index).build(); + } + + public V1NamedRuleWithOperations buildFirstResourceRule() { + return this.resourceRules.get(0).build(); + } + + public V1NamedRuleWithOperations buildLastResourceRule() { + return this.resourceRules.get(resourceRules.size() - 1).build(); + } + + public V1NamedRuleWithOperations buildMatchingResourceRule(Predicate predicate) { + for (V1NamedRuleWithOperationsBuilder item : resourceRules) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; + } + + public boolean hasMatchingResourceRule(Predicate predicate) { + for (V1NamedRuleWithOperationsBuilder item : resourceRules) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public A withResourceRules(List resourceRules) { + if (this.resourceRules != null) { + this._visitables.get("resourceRules").clear(); + } + if (resourceRules != null) { + this.resourceRules = new ArrayList(); + for (V1NamedRuleWithOperations item : resourceRules) { + this.addToResourceRules(item); + } + } else { + this.resourceRules = null; + } + return (A) this; + } + + public A withResourceRules(io.kubernetes.client.openapi.models.V1NamedRuleWithOperations... resourceRules) { + if (this.resourceRules != null) { + this.resourceRules.clear(); + _visitables.remove("resourceRules"); + } + if (resourceRules != null) { + for (V1NamedRuleWithOperations item : resourceRules) { + this.addToResourceRules(item); + } + } + return (A) this; + } + + public boolean hasResourceRules() { + return this.resourceRules != null && !this.resourceRules.isEmpty(); + } + + public ResourceRulesNested addNewResourceRule() { + return new ResourceRulesNested(-1, null); + } + + public ResourceRulesNested addNewResourceRuleLike(V1NamedRuleWithOperations item) { + return new ResourceRulesNested(-1, item); + } + + public ResourceRulesNested setNewResourceRuleLike(int index,V1NamedRuleWithOperations item) { + return new ResourceRulesNested(index, item); + } + + public ResourceRulesNested editResourceRule(int index) { + if (resourceRules.size() <= index) throw new RuntimeException("Can't edit resourceRules. Index exceeds size."); + return setNewResourceRuleLike(index, buildResourceRule(index)); + } + + public ResourceRulesNested editFirstResourceRule() { + if (resourceRules.size() == 0) throw new RuntimeException("Can't edit first resourceRules. The list is empty."); + return setNewResourceRuleLike(0, buildResourceRule(0)); + } + + public ResourceRulesNested editLastResourceRule() { + int index = resourceRules.size() - 1; + if (index < 0) throw new RuntimeException("Can't edit last resourceRules. The list is empty."); + return setNewResourceRuleLike(index, buildResourceRule(index)); + } + + public ResourceRulesNested editMatchingResourceRule(Predicate predicate) { + int index = -1; + for (int i=0;i extends V1NamedRuleWithOperationsFluent> implements Nested{ + ExcludeResourceRulesNested(int index,V1NamedRuleWithOperations item) { + this.index = index; + this.builder = new V1NamedRuleWithOperationsBuilder(this, item); + } + V1NamedRuleWithOperationsBuilder builder; + int index; + + public N and() { + return (N) V1MatchResourcesFluent.this.setToExcludeResourceRules(index,builder.build()); + } + + public N endExcludeResourceRule() { + return and(); + } + + + } + public class NamespaceSelectorNested extends V1LabelSelectorFluent> implements Nested{ + NamespaceSelectorNested(V1LabelSelector item) { + this.builder = new V1LabelSelectorBuilder(this, item); + } + V1LabelSelectorBuilder builder; + + public N and() { + return (N) V1MatchResourcesFluent.this.withNamespaceSelector(builder.build()); + } + + public N endNamespaceSelector() { + return and(); + } + + + } + public class ObjectSelectorNested extends V1LabelSelectorFluent> implements Nested{ + ObjectSelectorNested(V1LabelSelector item) { + this.builder = new V1LabelSelectorBuilder(this, item); + } + V1LabelSelectorBuilder builder; + + public N and() { + return (N) V1MatchResourcesFluent.this.withObjectSelector(builder.build()); + } + + public N endObjectSelector() { + return and(); + } + + + } + public class ResourceRulesNested extends V1NamedRuleWithOperationsFluent> implements Nested{ + ResourceRulesNested(int index,V1NamedRuleWithOperations item) { + this.index = index; + this.builder = new V1NamedRuleWithOperationsBuilder(this, item); + } + V1NamedRuleWithOperationsBuilder builder; + int index; + + public N and() { + return (N) V1MatchResourcesFluent.this.setToResourceRules(index,builder.build()); + } + + public N endResourceRule() { + return and(); + } + + + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ModifyVolumeStatusBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ModifyVolumeStatusBuilder.java new file mode 100644 index 0000000000..b7ad467ebd --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ModifyVolumeStatusBuilder.java @@ -0,0 +1,32 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +public class V1ModifyVolumeStatusBuilder extends V1ModifyVolumeStatusFluent implements VisitableBuilder{ + public V1ModifyVolumeStatusBuilder() { + this(new V1ModifyVolumeStatus()); + } + + public V1ModifyVolumeStatusBuilder(V1ModifyVolumeStatusFluent fluent) { + this(fluent, new V1ModifyVolumeStatus()); + } + + public V1ModifyVolumeStatusBuilder(V1ModifyVolumeStatusFluent fluent,V1ModifyVolumeStatus instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1ModifyVolumeStatusBuilder(V1ModifyVolumeStatus instance) { + this.fluent = this; + this.copyInstance(instance); + } + V1ModifyVolumeStatusFluent fluent; + + public V1ModifyVolumeStatus build() { + V1ModifyVolumeStatus buildable = new V1ModifyVolumeStatus(); + buildable.setStatus(fluent.getStatus()); + buildable.setTargetVolumeAttributesClassName(fluent.getTargetVolumeAttributesClassName()); + return buildable; + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ModifyVolumeStatusFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ModifyVolumeStatusFluent.java new file mode 100644 index 0000000000..35135c122d --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ModifyVolumeStatusFluent.java @@ -0,0 +1,80 @@ +package io.kubernetes.client.openapi.models; + +import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Object; +import java.lang.String; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1ModifyVolumeStatusFluent> extends BaseFluent{ + public V1ModifyVolumeStatusFluent() { + } + + public V1ModifyVolumeStatusFluent(V1ModifyVolumeStatus instance) { + this.copyInstance(instance); + } + private String status; + private String targetVolumeAttributesClassName; + + protected void copyInstance(V1ModifyVolumeStatus instance) { + instance = (instance != null ? instance : new V1ModifyVolumeStatus()); + if (instance != null) { + this.withStatus(instance.getStatus()); + this.withTargetVolumeAttributesClassName(instance.getTargetVolumeAttributesClassName()); + } + } + + public String getStatus() { + return this.status; + } + + public A withStatus(String status) { + this.status = status; + return (A) this; + } + + public boolean hasStatus() { + return this.status != null; + } + + public String getTargetVolumeAttributesClassName() { + return this.targetVolumeAttributesClassName; + } + + public A withTargetVolumeAttributesClassName(String targetVolumeAttributesClassName) { + this.targetVolumeAttributesClassName = targetVolumeAttributesClassName; + return (A) this; + } + + public boolean hasTargetVolumeAttributesClassName() { + return this.targetVolumeAttributesClassName != null; + } + + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + if (!super.equals(o)) return false; + V1ModifyVolumeStatusFluent that = (V1ModifyVolumeStatusFluent) o; + if (!java.util.Objects.equals(status, that.status)) return false; + if (!java.util.Objects.equals(targetVolumeAttributesClassName, that.targetVolumeAttributesClassName)) return false; + return true; + } + + public int hashCode() { + return java.util.Objects.hash(status, targetVolumeAttributesClassName, super.hashCode()); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (status != null) { sb.append("status:"); sb.append(status + ","); } + if (targetVolumeAttributesClassName != null) { sb.append("targetVolumeAttributesClassName:"); sb.append(targetVolumeAttributesClassName); } + sb.append("}"); + return sb.toString(); + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1MutatingWebhookConfigurationFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1MutatingWebhookConfigurationFluent.java index ce6c4dac62..1fff741550 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1MutatingWebhookConfigurationFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1MutatingWebhookConfigurationFluent.java @@ -107,14 +107,26 @@ public MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { public A addToWebhooks(int index,V1MutatingWebhook item) { if (this.webhooks == null) {this.webhooks = new ArrayList();} V1MutatingWebhookBuilder builder = new V1MutatingWebhookBuilder(item); - if (index < 0 || index >= webhooks.size()) { _visitables.get("webhooks").add(builder); webhooks.add(builder); } else { _visitables.get("webhooks").add(index, builder); webhooks.add(index, builder);} + if (index < 0 || index >= webhooks.size()) { + _visitables.get("webhooks").add(builder); + webhooks.add(builder); + } else { + _visitables.get("webhooks").add(builder); + webhooks.add(index, builder); + } return (A)this; } public A setToWebhooks(int index,V1MutatingWebhook item) { if (this.webhooks == null) {this.webhooks = new ArrayList();} V1MutatingWebhookBuilder builder = new V1MutatingWebhookBuilder(item); - if (index < 0 || index >= webhooks.size()) { _visitables.get("webhooks").add(builder); webhooks.add(builder); } else { _visitables.get("webhooks").set(index, builder); webhooks.set(index, builder);} + if (index < 0 || index >= webhooks.size()) { + _visitables.get("webhooks").add(builder); + webhooks.add(builder); + } else { + _visitables.get("webhooks").add(builder); + webhooks.set(index, builder); + } return (A)this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1MutatingWebhookConfigurationListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1MutatingWebhookConfigurationListFluent.java index ab01818fde..2b5da2a2c3 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1MutatingWebhookConfigurationListFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1MutatingWebhookConfigurationListFluent.java @@ -54,14 +54,26 @@ public boolean hasApiVersion() { public A addToItems(int index,V1MutatingWebhookConfiguration item) { if (this.items == null) {this.items = new ArrayList();} V1MutatingWebhookConfigurationBuilder builder = new V1MutatingWebhookConfigurationBuilder(item); - if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); items.add(builder); } else { _visitables.get("items").add(index, builder); items.add(index, builder);} + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.add(index, builder); + } return (A)this; } public A setToItems(int index,V1MutatingWebhookConfiguration item) { if (this.items == null) {this.items = new ArrayList();} V1MutatingWebhookConfigurationBuilder builder = new V1MutatingWebhookConfigurationBuilder(item); - if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); items.add(builder); } else { _visitables.get("items").set(index, builder); items.set(index, builder);} + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.set(index, builder); + } return (A)this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1MutatingWebhookFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1MutatingWebhookFluent.java index ce0404d8e3..693793b3b3 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1MutatingWebhookFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1MutatingWebhookFluent.java @@ -205,14 +205,26 @@ public boolean hasFailurePolicy() { public A addToMatchConditions(int index,V1MatchCondition item) { if (this.matchConditions == null) {this.matchConditions = new ArrayList();} V1MatchConditionBuilder builder = new V1MatchConditionBuilder(item); - if (index < 0 || index >= matchConditions.size()) { _visitables.get("matchConditions").add(builder); matchConditions.add(builder); } else { _visitables.get("matchConditions").add(index, builder); matchConditions.add(index, builder);} + if (index < 0 || index >= matchConditions.size()) { + _visitables.get("matchConditions").add(builder); + matchConditions.add(builder); + } else { + _visitables.get("matchConditions").add(builder); + matchConditions.add(index, builder); + } return (A)this; } public A setToMatchConditions(int index,V1MatchCondition item) { if (this.matchConditions == null) {this.matchConditions = new ArrayList();} V1MatchConditionBuilder builder = new V1MatchConditionBuilder(item); - if (index < 0 || index >= matchConditions.size()) { _visitables.get("matchConditions").add(builder); matchConditions.add(builder); } else { _visitables.get("matchConditions").set(index, builder); matchConditions.set(index, builder);} + if (index < 0 || index >= matchConditions.size()) { + _visitables.get("matchConditions").add(builder); + matchConditions.add(builder); + } else { + _visitables.get("matchConditions").add(builder); + matchConditions.set(index, builder); + } return (A)this; } @@ -475,14 +487,26 @@ public boolean hasReinvocationPolicy() { public A addToRules(int index,V1RuleWithOperations item) { if (this.rules == null) {this.rules = new ArrayList();} V1RuleWithOperationsBuilder builder = new V1RuleWithOperationsBuilder(item); - if (index < 0 || index >= rules.size()) { _visitables.get("rules").add(builder); rules.add(builder); } else { _visitables.get("rules").add(index, builder); rules.add(index, builder);} + if (index < 0 || index >= rules.size()) { + _visitables.get("rules").add(builder); + rules.add(builder); + } else { + _visitables.get("rules").add(builder); + rules.add(index, builder); + } return (A)this; } public A setToRules(int index,V1RuleWithOperations item) { if (this.rules == null) {this.rules = new ArrayList();} V1RuleWithOperationsBuilder builder = new V1RuleWithOperationsBuilder(item); - if (index < 0 || index >= rules.size()) { _visitables.get("rules").add(builder); rules.add(builder); } else { _visitables.get("rules").set(index, builder); rules.set(index, builder);} + if (index < 0 || index >= rules.size()) { + _visitables.get("rules").add(builder); + rules.add(builder); + } else { + _visitables.get("rules").add(builder); + rules.set(index, builder); + } return (A)this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NamedRuleWithOperationsBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NamedRuleWithOperationsBuilder.java new file mode 100644 index 0000000000..7b7592469d --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NamedRuleWithOperationsBuilder.java @@ -0,0 +1,36 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +public class V1NamedRuleWithOperationsBuilder extends V1NamedRuleWithOperationsFluent implements VisitableBuilder{ + public V1NamedRuleWithOperationsBuilder() { + this(new V1NamedRuleWithOperations()); + } + + public V1NamedRuleWithOperationsBuilder(V1NamedRuleWithOperationsFluent fluent) { + this(fluent, new V1NamedRuleWithOperations()); + } + + public V1NamedRuleWithOperationsBuilder(V1NamedRuleWithOperationsFluent fluent,V1NamedRuleWithOperations instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1NamedRuleWithOperationsBuilder(V1NamedRuleWithOperations instance) { + this.fluent = this; + this.copyInstance(instance); + } + V1NamedRuleWithOperationsFluent fluent; + + public V1NamedRuleWithOperations build() { + V1NamedRuleWithOperations buildable = new V1NamedRuleWithOperations(); + buildable.setApiGroups(fluent.getApiGroups()); + buildable.setApiVersions(fluent.getApiVersions()); + buildable.setOperations(fluent.getOperations()); + buildable.setResourceNames(fluent.getResourceNames()); + buildable.setResources(fluent.getResources()); + buildable.setScope(fluent.getScope()); + return buildable; + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NamedRuleWithOperationsFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NamedRuleWithOperationsFluent.java new file mode 100644 index 0000000000..d76ebb3c3e --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NamedRuleWithOperationsFluent.java @@ -0,0 +1,557 @@ +package io.kubernetes.client.openapi.models; + +import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; +import java.util.ArrayList; +import java.util.Collection; +import java.lang.Object; +import java.util.List; +import java.lang.String; +import java.util.function.Predicate; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1NamedRuleWithOperationsFluent> extends BaseFluent{ + public V1NamedRuleWithOperationsFluent() { + } + + public V1NamedRuleWithOperationsFluent(V1NamedRuleWithOperations instance) { + this.copyInstance(instance); + } + private List apiGroups; + private List apiVersions; + private List operations; + private List resourceNames; + private List resources; + private String scope; + + protected void copyInstance(V1NamedRuleWithOperations instance) { + instance = (instance != null ? instance : new V1NamedRuleWithOperations()); + if (instance != null) { + this.withApiGroups(instance.getApiGroups()); + this.withApiVersions(instance.getApiVersions()); + this.withOperations(instance.getOperations()); + this.withResourceNames(instance.getResourceNames()); + this.withResources(instance.getResources()); + this.withScope(instance.getScope()); + } + } + + public A addToApiGroups(int index,String item) { + if (this.apiGroups == null) {this.apiGroups = new ArrayList();} + this.apiGroups.add(index, item); + return (A)this; + } + + public A setToApiGroups(int index,String item) { + if (this.apiGroups == null) {this.apiGroups = new ArrayList();} + this.apiGroups.set(index, item); return (A)this; + } + + public A addToApiGroups(java.lang.String... items) { + if (this.apiGroups == null) {this.apiGroups = new ArrayList();} + for (String item : items) {this.apiGroups.add(item);} return (A)this; + } + + public A addAllToApiGroups(Collection items) { + if (this.apiGroups == null) {this.apiGroups = new ArrayList();} + for (String item : items) {this.apiGroups.add(item);} return (A)this; + } + + public A removeFromApiGroups(java.lang.String... items) { + if (this.apiGroups == null) return (A)this; + for (String item : items) { this.apiGroups.remove(item);} return (A)this; + } + + public A removeAllFromApiGroups(Collection items) { + if (this.apiGroups == null) return (A)this; + for (String item : items) { this.apiGroups.remove(item);} return (A)this; + } + + public List getApiGroups() { + return this.apiGroups; + } + + public String getApiGroup(int index) { + return this.apiGroups.get(index); + } + + public String getFirstApiGroup() { + return this.apiGroups.get(0); + } + + public String getLastApiGroup() { + return this.apiGroups.get(apiGroups.size() - 1); + } + + public String getMatchingApiGroup(Predicate predicate) { + for (String item : apiGroups) { + if (predicate.test(item)) { + return item; + } + } + return null; + } + + public boolean hasMatchingApiGroup(Predicate predicate) { + for (String item : apiGroups) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public A withApiGroups(List apiGroups) { + if (apiGroups != null) { + this.apiGroups = new ArrayList(); + for (String item : apiGroups) { + this.addToApiGroups(item); + } + } else { + this.apiGroups = null; + } + return (A) this; + } + + public A withApiGroups(java.lang.String... apiGroups) { + if (this.apiGroups != null) { + this.apiGroups.clear(); + _visitables.remove("apiGroups"); + } + if (apiGroups != null) { + for (String item : apiGroups) { + this.addToApiGroups(item); + } + } + return (A) this; + } + + public boolean hasApiGroups() { + return this.apiGroups != null && !this.apiGroups.isEmpty(); + } + + public A addToApiVersions(int index,String item) { + if (this.apiVersions == null) {this.apiVersions = new ArrayList();} + this.apiVersions.add(index, item); + return (A)this; + } + + public A setToApiVersions(int index,String item) { + if (this.apiVersions == null) {this.apiVersions = new ArrayList();} + this.apiVersions.set(index, item); return (A)this; + } + + public A addToApiVersions(java.lang.String... items) { + if (this.apiVersions == null) {this.apiVersions = new ArrayList();} + for (String item : items) {this.apiVersions.add(item);} return (A)this; + } + + public A addAllToApiVersions(Collection items) { + if (this.apiVersions == null) {this.apiVersions = new ArrayList();} + for (String item : items) {this.apiVersions.add(item);} return (A)this; + } + + public A removeFromApiVersions(java.lang.String... items) { + if (this.apiVersions == null) return (A)this; + for (String item : items) { this.apiVersions.remove(item);} return (A)this; + } + + public A removeAllFromApiVersions(Collection items) { + if (this.apiVersions == null) return (A)this; + for (String item : items) { this.apiVersions.remove(item);} return (A)this; + } + + public List getApiVersions() { + return this.apiVersions; + } + + public String getApiVersion(int index) { + return this.apiVersions.get(index); + } + + public String getFirstApiVersion() { + return this.apiVersions.get(0); + } + + public String getLastApiVersion() { + return this.apiVersions.get(apiVersions.size() - 1); + } + + public String getMatchingApiVersion(Predicate predicate) { + for (String item : apiVersions) { + if (predicate.test(item)) { + return item; + } + } + return null; + } + + public boolean hasMatchingApiVersion(Predicate predicate) { + for (String item : apiVersions) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public A withApiVersions(List apiVersions) { + if (apiVersions != null) { + this.apiVersions = new ArrayList(); + for (String item : apiVersions) { + this.addToApiVersions(item); + } + } else { + this.apiVersions = null; + } + return (A) this; + } + + public A withApiVersions(java.lang.String... apiVersions) { + if (this.apiVersions != null) { + this.apiVersions.clear(); + _visitables.remove("apiVersions"); + } + if (apiVersions != null) { + for (String item : apiVersions) { + this.addToApiVersions(item); + } + } + return (A) this; + } + + public boolean hasApiVersions() { + return this.apiVersions != null && !this.apiVersions.isEmpty(); + } + + public A addToOperations(int index,String item) { + if (this.operations == null) {this.operations = new ArrayList();} + this.operations.add(index, item); + return (A)this; + } + + public A setToOperations(int index,String item) { + if (this.operations == null) {this.operations = new ArrayList();} + this.operations.set(index, item); return (A)this; + } + + public A addToOperations(java.lang.String... items) { + if (this.operations == null) {this.operations = new ArrayList();} + for (String item : items) {this.operations.add(item);} return (A)this; + } + + public A addAllToOperations(Collection items) { + if (this.operations == null) {this.operations = new ArrayList();} + for (String item : items) {this.operations.add(item);} return (A)this; + } + + public A removeFromOperations(java.lang.String... items) { + if (this.operations == null) return (A)this; + for (String item : items) { this.operations.remove(item);} return (A)this; + } + + public A removeAllFromOperations(Collection items) { + if (this.operations == null) return (A)this; + for (String item : items) { this.operations.remove(item);} return (A)this; + } + + public List getOperations() { + return this.operations; + } + + public String getOperation(int index) { + return this.operations.get(index); + } + + public String getFirstOperation() { + return this.operations.get(0); + } + + public String getLastOperation() { + return this.operations.get(operations.size() - 1); + } + + public String getMatchingOperation(Predicate predicate) { + for (String item : operations) { + if (predicate.test(item)) { + return item; + } + } + return null; + } + + public boolean hasMatchingOperation(Predicate predicate) { + for (String item : operations) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public A withOperations(List operations) { + if (operations != null) { + this.operations = new ArrayList(); + for (String item : operations) { + this.addToOperations(item); + } + } else { + this.operations = null; + } + return (A) this; + } + + public A withOperations(java.lang.String... operations) { + if (this.operations != null) { + this.operations.clear(); + _visitables.remove("operations"); + } + if (operations != null) { + for (String item : operations) { + this.addToOperations(item); + } + } + return (A) this; + } + + public boolean hasOperations() { + return this.operations != null && !this.operations.isEmpty(); + } + + public A addToResourceNames(int index,String item) { + if (this.resourceNames == null) {this.resourceNames = new ArrayList();} + this.resourceNames.add(index, item); + return (A)this; + } + + public A setToResourceNames(int index,String item) { + if (this.resourceNames == null) {this.resourceNames = new ArrayList();} + this.resourceNames.set(index, item); return (A)this; + } + + public A addToResourceNames(java.lang.String... items) { + if (this.resourceNames == null) {this.resourceNames = new ArrayList();} + for (String item : items) {this.resourceNames.add(item);} return (A)this; + } + + public A addAllToResourceNames(Collection items) { + if (this.resourceNames == null) {this.resourceNames = new ArrayList();} + for (String item : items) {this.resourceNames.add(item);} return (A)this; + } + + public A removeFromResourceNames(java.lang.String... items) { + if (this.resourceNames == null) return (A)this; + for (String item : items) { this.resourceNames.remove(item);} return (A)this; + } + + public A removeAllFromResourceNames(Collection items) { + if (this.resourceNames == null) return (A)this; + for (String item : items) { this.resourceNames.remove(item);} return (A)this; + } + + public List getResourceNames() { + return this.resourceNames; + } + + public String getResourceName(int index) { + return this.resourceNames.get(index); + } + + public String getFirstResourceName() { + return this.resourceNames.get(0); + } + + public String getLastResourceName() { + return this.resourceNames.get(resourceNames.size() - 1); + } + + public String getMatchingResourceName(Predicate predicate) { + for (String item : resourceNames) { + if (predicate.test(item)) { + return item; + } + } + return null; + } + + public boolean hasMatchingResourceName(Predicate predicate) { + for (String item : resourceNames) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public A withResourceNames(List resourceNames) { + if (resourceNames != null) { + this.resourceNames = new ArrayList(); + for (String item : resourceNames) { + this.addToResourceNames(item); + } + } else { + this.resourceNames = null; + } + return (A) this; + } + + public A withResourceNames(java.lang.String... resourceNames) { + if (this.resourceNames != null) { + this.resourceNames.clear(); + _visitables.remove("resourceNames"); + } + if (resourceNames != null) { + for (String item : resourceNames) { + this.addToResourceNames(item); + } + } + return (A) this; + } + + public boolean hasResourceNames() { + return this.resourceNames != null && !this.resourceNames.isEmpty(); + } + + public A addToResources(int index,String item) { + if (this.resources == null) {this.resources = new ArrayList();} + this.resources.add(index, item); + return (A)this; + } + + public A setToResources(int index,String item) { + if (this.resources == null) {this.resources = new ArrayList();} + this.resources.set(index, item); return (A)this; + } + + public A addToResources(java.lang.String... items) { + if (this.resources == null) {this.resources = new ArrayList();} + for (String item : items) {this.resources.add(item);} return (A)this; + } + + public A addAllToResources(Collection items) { + if (this.resources == null) {this.resources = new ArrayList();} + for (String item : items) {this.resources.add(item);} return (A)this; + } + + public A removeFromResources(java.lang.String... items) { + if (this.resources == null) return (A)this; + for (String item : items) { this.resources.remove(item);} return (A)this; + } + + public A removeAllFromResources(Collection items) { + if (this.resources == null) return (A)this; + for (String item : items) { this.resources.remove(item);} return (A)this; + } + + public List getResources() { + return this.resources; + } + + public String getResource(int index) { + return this.resources.get(index); + } + + public String getFirstResource() { + return this.resources.get(0); + } + + public String getLastResource() { + return this.resources.get(resources.size() - 1); + } + + public String getMatchingResource(Predicate predicate) { + for (String item : resources) { + if (predicate.test(item)) { + return item; + } + } + return null; + } + + public boolean hasMatchingResource(Predicate predicate) { + for (String item : resources) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public A withResources(List resources) { + if (resources != null) { + this.resources = new ArrayList(); + for (String item : resources) { + this.addToResources(item); + } + } else { + this.resources = null; + } + return (A) this; + } + + public A withResources(java.lang.String... resources) { + if (this.resources != null) { + this.resources.clear(); + _visitables.remove("resources"); + } + if (resources != null) { + for (String item : resources) { + this.addToResources(item); + } + } + return (A) this; + } + + public boolean hasResources() { + return this.resources != null && !this.resources.isEmpty(); + } + + public String getScope() { + return this.scope; + } + + public A withScope(String scope) { + this.scope = scope; + return (A) this; + } + + public boolean hasScope() { + return this.scope != null; + } + + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + if (!super.equals(o)) return false; + V1NamedRuleWithOperationsFluent that = (V1NamedRuleWithOperationsFluent) o; + if (!java.util.Objects.equals(apiGroups, that.apiGroups)) return false; + if (!java.util.Objects.equals(apiVersions, that.apiVersions)) return false; + if (!java.util.Objects.equals(operations, that.operations)) return false; + if (!java.util.Objects.equals(resourceNames, that.resourceNames)) return false; + if (!java.util.Objects.equals(resources, that.resources)) return false; + if (!java.util.Objects.equals(scope, that.scope)) return false; + return true; + } + + public int hashCode() { + return java.util.Objects.hash(apiGroups, apiVersions, operations, resourceNames, resources, scope, super.hashCode()); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (apiGroups != null && !apiGroups.isEmpty()) { sb.append("apiGroups:"); sb.append(apiGroups + ","); } + if (apiVersions != null && !apiVersions.isEmpty()) { sb.append("apiVersions:"); sb.append(apiVersions + ","); } + if (operations != null && !operations.isEmpty()) { sb.append("operations:"); sb.append(operations + ","); } + if (resourceNames != null && !resourceNames.isEmpty()) { sb.append("resourceNames:"); sb.append(resourceNames + ","); } + if (resources != null && !resources.isEmpty()) { sb.append("resources:"); sb.append(resources + ","); } + if (scope != null) { sb.append("scope:"); sb.append(scope); } + sb.append("}"); + return sb.toString(); + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NamespaceListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NamespaceListFluent.java index 62dbf51cf7..d4c5a873f7 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NamespaceListFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NamespaceListFluent.java @@ -54,14 +54,26 @@ public boolean hasApiVersion() { public A addToItems(int index,V1Namespace item) { if (this.items == null) {this.items = new ArrayList();} V1NamespaceBuilder builder = new V1NamespaceBuilder(item); - if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); items.add(builder); } else { _visitables.get("items").add(index, builder); items.add(index, builder);} + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.add(index, builder); + } return (A)this; } public A setToItems(int index,V1Namespace item) { if (this.items == null) {this.items = new ArrayList();} V1NamespaceBuilder builder = new V1NamespaceBuilder(item); - if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); items.add(builder); } else { _visitables.get("items").set(index, builder); items.set(index, builder);} + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.set(index, builder); + } return (A)this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NamespaceStatusFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NamespaceStatusFluent.java index 4b5f226506..26a45072cd 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NamespaceStatusFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NamespaceStatusFluent.java @@ -37,14 +37,26 @@ protected void copyInstance(V1NamespaceStatus instance) { public A addToConditions(int index,V1NamespaceCondition item) { if (this.conditions == null) {this.conditions = new ArrayList();} V1NamespaceConditionBuilder builder = new V1NamespaceConditionBuilder(item); - if (index < 0 || index >= conditions.size()) { _visitables.get("conditions").add(builder); conditions.add(builder); } else { _visitables.get("conditions").add(index, builder); conditions.add(index, builder);} + if (index < 0 || index >= conditions.size()) { + _visitables.get("conditions").add(builder); + conditions.add(builder); + } else { + _visitables.get("conditions").add(builder); + conditions.add(index, builder); + } return (A)this; } public A setToConditions(int index,V1NamespaceCondition item) { if (this.conditions == null) {this.conditions = new ArrayList();} V1NamespaceConditionBuilder builder = new V1NamespaceConditionBuilder(item); - if (index < 0 || index >= conditions.size()) { _visitables.get("conditions").add(builder); conditions.add(builder); } else { _visitables.get("conditions").set(index, builder); conditions.set(index, builder);} + if (index < 0 || index >= conditions.size()) { + _visitables.get("conditions").add(builder); + conditions.add(builder); + } else { + _visitables.get("conditions").add(builder); + conditions.set(index, builder); + } return (A)this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicyEgressRuleFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicyEgressRuleFluent.java index 1ff9ebdce2..2fa4527247 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicyEgressRuleFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicyEgressRuleFluent.java @@ -37,14 +37,26 @@ protected void copyInstance(V1NetworkPolicyEgressRule instance) { public A addToPorts(int index,V1NetworkPolicyPort item) { if (this.ports == null) {this.ports = new ArrayList();} V1NetworkPolicyPortBuilder builder = new V1NetworkPolicyPortBuilder(item); - if (index < 0 || index >= ports.size()) { _visitables.get("ports").add(builder); ports.add(builder); } else { _visitables.get("ports").add(index, builder); ports.add(index, builder);} + if (index < 0 || index >= ports.size()) { + _visitables.get("ports").add(builder); + ports.add(builder); + } else { + _visitables.get("ports").add(builder); + ports.add(index, builder); + } return (A)this; } public A setToPorts(int index,V1NetworkPolicyPort item) { if (this.ports == null) {this.ports = new ArrayList();} V1NetworkPolicyPortBuilder builder = new V1NetworkPolicyPortBuilder(item); - if (index < 0 || index >= ports.size()) { _visitables.get("ports").add(builder); ports.add(builder); } else { _visitables.get("ports").set(index, builder); ports.set(index, builder);} + if (index < 0 || index >= ports.size()) { + _visitables.get("ports").add(builder); + ports.add(builder); + } else { + _visitables.get("ports").add(builder); + ports.set(index, builder); + } return (A)this; } @@ -188,14 +200,26 @@ public PortsNested editMatchingPort(Predicate pre public A addToTo(int index,V1NetworkPolicyPeer item) { if (this.to == null) {this.to = new ArrayList();} V1NetworkPolicyPeerBuilder builder = new V1NetworkPolicyPeerBuilder(item); - if (index < 0 || index >= to.size()) { _visitables.get("to").add(builder); to.add(builder); } else { _visitables.get("to").add(index, builder); to.add(index, builder);} + if (index < 0 || index >= to.size()) { + _visitables.get("to").add(builder); + to.add(builder); + } else { + _visitables.get("to").add(builder); + to.add(index, builder); + } return (A)this; } public A setToTo(int index,V1NetworkPolicyPeer item) { if (this.to == null) {this.to = new ArrayList();} V1NetworkPolicyPeerBuilder builder = new V1NetworkPolicyPeerBuilder(item); - if (index < 0 || index >= to.size()) { _visitables.get("to").add(builder); to.add(builder); } else { _visitables.get("to").set(index, builder); to.set(index, builder);} + if (index < 0 || index >= to.size()) { + _visitables.get("to").add(builder); + to.add(builder); + } else { + _visitables.get("to").add(builder); + to.set(index, builder); + } return (A)this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicyIngressRuleFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicyIngressRuleFluent.java index af14ae961d..bb412dc230 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicyIngressRuleFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicyIngressRuleFluent.java @@ -37,14 +37,26 @@ protected void copyInstance(V1NetworkPolicyIngressRule instance) { public A addToFrom(int index,V1NetworkPolicyPeer item) { if (this.from == null) {this.from = new ArrayList();} V1NetworkPolicyPeerBuilder builder = new V1NetworkPolicyPeerBuilder(item); - if (index < 0 || index >= from.size()) { _visitables.get("from").add(builder); from.add(builder); } else { _visitables.get("from").add(index, builder); from.add(index, builder);} + if (index < 0 || index >= from.size()) { + _visitables.get("from").add(builder); + from.add(builder); + } else { + _visitables.get("from").add(builder); + from.add(index, builder); + } return (A)this; } public A setToFrom(int index,V1NetworkPolicyPeer item) { if (this.from == null) {this.from = new ArrayList();} V1NetworkPolicyPeerBuilder builder = new V1NetworkPolicyPeerBuilder(item); - if (index < 0 || index >= from.size()) { _visitables.get("from").add(builder); from.add(builder); } else { _visitables.get("from").set(index, builder); from.set(index, builder);} + if (index < 0 || index >= from.size()) { + _visitables.get("from").add(builder); + from.add(builder); + } else { + _visitables.get("from").add(builder); + from.set(index, builder); + } return (A)this; } @@ -188,14 +200,26 @@ public FromNested editMatchingFrom(Predicate pred public A addToPorts(int index,V1NetworkPolicyPort item) { if (this.ports == null) {this.ports = new ArrayList();} V1NetworkPolicyPortBuilder builder = new V1NetworkPolicyPortBuilder(item); - if (index < 0 || index >= ports.size()) { _visitables.get("ports").add(builder); ports.add(builder); } else { _visitables.get("ports").add(index, builder); ports.add(index, builder);} + if (index < 0 || index >= ports.size()) { + _visitables.get("ports").add(builder); + ports.add(builder); + } else { + _visitables.get("ports").add(builder); + ports.add(index, builder); + } return (A)this; } public A setToPorts(int index,V1NetworkPolicyPort item) { if (this.ports == null) {this.ports = new ArrayList();} V1NetworkPolicyPortBuilder builder = new V1NetworkPolicyPortBuilder(item); - if (index < 0 || index >= ports.size()) { _visitables.get("ports").add(builder); ports.add(builder); } else { _visitables.get("ports").set(index, builder); ports.set(index, builder);} + if (index < 0 || index >= ports.size()) { + _visitables.get("ports").add(builder); + ports.add(builder); + } else { + _visitables.get("ports").add(builder); + ports.set(index, builder); + } return (A)this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicyListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicyListFluent.java index 543d682116..0e35d3bed2 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicyListFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicyListFluent.java @@ -54,14 +54,26 @@ public boolean hasApiVersion() { public A addToItems(int index,V1NetworkPolicy item) { if (this.items == null) {this.items = new ArrayList();} V1NetworkPolicyBuilder builder = new V1NetworkPolicyBuilder(item); - if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); items.add(builder); } else { _visitables.get("items").add(index, builder); items.add(index, builder);} + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.add(index, builder); + } return (A)this; } public A setToItems(int index,V1NetworkPolicy item) { if (this.items == null) {this.items = new ArrayList();} V1NetworkPolicyBuilder builder = new V1NetworkPolicyBuilder(item); - if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); items.add(builder); } else { _visitables.get("items").set(index, builder); items.set(index, builder);} + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.set(index, builder); + } return (A)this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicySpecFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicySpecFluent.java index f4c76872df..313a84ecc5 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicySpecFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicySpecFluent.java @@ -41,14 +41,26 @@ protected void copyInstance(V1NetworkPolicySpec instance) { public A addToEgress(int index,V1NetworkPolicyEgressRule item) { if (this.egress == null) {this.egress = new ArrayList();} V1NetworkPolicyEgressRuleBuilder builder = new V1NetworkPolicyEgressRuleBuilder(item); - if (index < 0 || index >= egress.size()) { _visitables.get("egress").add(builder); egress.add(builder); } else { _visitables.get("egress").add(index, builder); egress.add(index, builder);} + if (index < 0 || index >= egress.size()) { + _visitables.get("egress").add(builder); + egress.add(builder); + } else { + _visitables.get("egress").add(builder); + egress.add(index, builder); + } return (A)this; } public A setToEgress(int index,V1NetworkPolicyEgressRule item) { if (this.egress == null) {this.egress = new ArrayList();} V1NetworkPolicyEgressRuleBuilder builder = new V1NetworkPolicyEgressRuleBuilder(item); - if (index < 0 || index >= egress.size()) { _visitables.get("egress").add(builder); egress.add(builder); } else { _visitables.get("egress").set(index, builder); egress.set(index, builder);} + if (index < 0 || index >= egress.size()) { + _visitables.get("egress").add(builder); + egress.add(builder); + } else { + _visitables.get("egress").add(builder); + egress.set(index, builder); + } return (A)this; } @@ -192,14 +204,26 @@ public EgressNested editMatchingEgress(Predicate();} V1NetworkPolicyIngressRuleBuilder builder = new V1NetworkPolicyIngressRuleBuilder(item); - if (index < 0 || index >= ingress.size()) { _visitables.get("ingress").add(builder); ingress.add(builder); } else { _visitables.get("ingress").add(index, builder); ingress.add(index, builder);} + if (index < 0 || index >= ingress.size()) { + _visitables.get("ingress").add(builder); + ingress.add(builder); + } else { + _visitables.get("ingress").add(builder); + ingress.add(index, builder); + } return (A)this; } public A setToIngress(int index,V1NetworkPolicyIngressRule item) { if (this.ingress == null) {this.ingress = new ArrayList();} V1NetworkPolicyIngressRuleBuilder builder = new V1NetworkPolicyIngressRuleBuilder(item); - if (index < 0 || index >= ingress.size()) { _visitables.get("ingress").add(builder); ingress.add(builder); } else { _visitables.get("ingress").set(index, builder); ingress.set(index, builder);} + if (index < 0 || index >= ingress.size()) { + _visitables.get("ingress").add(builder); + ingress.add(builder); + } else { + _visitables.get("ingress").add(builder); + ingress.set(index, builder); + } return (A)this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeAffinityFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeAffinityFluent.java index d97dfc8c7d..30c16ca41e 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeAffinityFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeAffinityFluent.java @@ -37,14 +37,26 @@ protected void copyInstance(V1NodeAffinity instance) { public A addToPreferredDuringSchedulingIgnoredDuringExecution(int index,V1PreferredSchedulingTerm item) { if (this.preferredDuringSchedulingIgnoredDuringExecution == null) {this.preferredDuringSchedulingIgnoredDuringExecution = new ArrayList();} V1PreferredSchedulingTermBuilder builder = new V1PreferredSchedulingTermBuilder(item); - if (index < 0 || index >= preferredDuringSchedulingIgnoredDuringExecution.size()) { _visitables.get("preferredDuringSchedulingIgnoredDuringExecution").add(builder); preferredDuringSchedulingIgnoredDuringExecution.add(builder); } else { _visitables.get("preferredDuringSchedulingIgnoredDuringExecution").add(index, builder); preferredDuringSchedulingIgnoredDuringExecution.add(index, builder);} + if (index < 0 || index >= preferredDuringSchedulingIgnoredDuringExecution.size()) { + _visitables.get("preferredDuringSchedulingIgnoredDuringExecution").add(builder); + preferredDuringSchedulingIgnoredDuringExecution.add(builder); + } else { + _visitables.get("preferredDuringSchedulingIgnoredDuringExecution").add(builder); + preferredDuringSchedulingIgnoredDuringExecution.add(index, builder); + } return (A)this; } public A setToPreferredDuringSchedulingIgnoredDuringExecution(int index,V1PreferredSchedulingTerm item) { if (this.preferredDuringSchedulingIgnoredDuringExecution == null) {this.preferredDuringSchedulingIgnoredDuringExecution = new ArrayList();} V1PreferredSchedulingTermBuilder builder = new V1PreferredSchedulingTermBuilder(item); - if (index < 0 || index >= preferredDuringSchedulingIgnoredDuringExecution.size()) { _visitables.get("preferredDuringSchedulingIgnoredDuringExecution").add(builder); preferredDuringSchedulingIgnoredDuringExecution.add(builder); } else { _visitables.get("preferredDuringSchedulingIgnoredDuringExecution").set(index, builder); preferredDuringSchedulingIgnoredDuringExecution.set(index, builder);} + if (index < 0 || index >= preferredDuringSchedulingIgnoredDuringExecution.size()) { + _visitables.get("preferredDuringSchedulingIgnoredDuringExecution").add(builder); + preferredDuringSchedulingIgnoredDuringExecution.add(builder); + } else { + _visitables.get("preferredDuringSchedulingIgnoredDuringExecution").add(builder); + preferredDuringSchedulingIgnoredDuringExecution.set(index, builder); + } return (A)this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeFeaturesBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeFeaturesBuilder.java new file mode 100644 index 0000000000..a15a12aa6c --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeFeaturesBuilder.java @@ -0,0 +1,31 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +public class V1NodeFeaturesBuilder extends V1NodeFeaturesFluent implements VisitableBuilder{ + public V1NodeFeaturesBuilder() { + this(new V1NodeFeatures()); + } + + public V1NodeFeaturesBuilder(V1NodeFeaturesFluent fluent) { + this(fluent, new V1NodeFeatures()); + } + + public V1NodeFeaturesBuilder(V1NodeFeaturesFluent fluent,V1NodeFeatures instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1NodeFeaturesBuilder(V1NodeFeatures instance) { + this.fluent = this; + this.copyInstance(instance); + } + V1NodeFeaturesFluent fluent; + + public V1NodeFeatures build() { + V1NodeFeatures buildable = new V1NodeFeatures(); + buildable.setSupplementalGroupsPolicy(fluent.getSupplementalGroupsPolicy()); + return buildable; + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeFeaturesFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeFeaturesFluent.java new file mode 100644 index 0000000000..fcf4992e62 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeFeaturesFluent.java @@ -0,0 +1,68 @@ +package io.kubernetes.client.openapi.models; + +import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Object; +import java.lang.String; +import java.lang.Boolean; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1NodeFeaturesFluent> extends BaseFluent{ + public V1NodeFeaturesFluent() { + } + + public V1NodeFeaturesFluent(V1NodeFeatures instance) { + this.copyInstance(instance); + } + private Boolean supplementalGroupsPolicy; + + protected void copyInstance(V1NodeFeatures instance) { + instance = (instance != null ? instance : new V1NodeFeatures()); + if (instance != null) { + this.withSupplementalGroupsPolicy(instance.getSupplementalGroupsPolicy()); + } + } + + public Boolean getSupplementalGroupsPolicy() { + return this.supplementalGroupsPolicy; + } + + public A withSupplementalGroupsPolicy(Boolean supplementalGroupsPolicy) { + this.supplementalGroupsPolicy = supplementalGroupsPolicy; + return (A) this; + } + + public boolean hasSupplementalGroupsPolicy() { + return this.supplementalGroupsPolicy != null; + } + + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + if (!super.equals(o)) return false; + V1NodeFeaturesFluent that = (V1NodeFeaturesFluent) o; + if (!java.util.Objects.equals(supplementalGroupsPolicy, that.supplementalGroupsPolicy)) return false; + return true; + } + + public int hashCode() { + return java.util.Objects.hash(supplementalGroupsPolicy, super.hashCode()); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (supplementalGroupsPolicy != null) { sb.append("supplementalGroupsPolicy:"); sb.append(supplementalGroupsPolicy); } + sb.append("}"); + return sb.toString(); + } + + public A withSupplementalGroupsPolicy() { + return withSupplementalGroupsPolicy(true); + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeListFluent.java index 6c0de6e617..1f57bd9d23 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeListFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeListFluent.java @@ -54,14 +54,26 @@ public boolean hasApiVersion() { public A addToItems(int index,V1Node item) { if (this.items == null) {this.items = new ArrayList();} V1NodeBuilder builder = new V1NodeBuilder(item); - if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); items.add(builder); } else { _visitables.get("items").add(index, builder); items.add(index, builder);} + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.add(index, builder); + } return (A)this; } public A setToItems(int index,V1Node item) { if (this.items == null) {this.items = new ArrayList();} V1NodeBuilder builder = new V1NodeBuilder(item); - if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); items.add(builder); } else { _visitables.get("items").set(index, builder); items.set(index, builder);} + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.set(index, builder); + } return (A)this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeRuntimeHandlerBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeRuntimeHandlerBuilder.java new file mode 100644 index 0000000000..333cb9ff0a --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeRuntimeHandlerBuilder.java @@ -0,0 +1,32 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +public class V1NodeRuntimeHandlerBuilder extends V1NodeRuntimeHandlerFluent implements VisitableBuilder{ + public V1NodeRuntimeHandlerBuilder() { + this(new V1NodeRuntimeHandler()); + } + + public V1NodeRuntimeHandlerBuilder(V1NodeRuntimeHandlerFluent fluent) { + this(fluent, new V1NodeRuntimeHandler()); + } + + public V1NodeRuntimeHandlerBuilder(V1NodeRuntimeHandlerFluent fluent,V1NodeRuntimeHandler instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1NodeRuntimeHandlerBuilder(V1NodeRuntimeHandler instance) { + this.fluent = this; + this.copyInstance(instance); + } + V1NodeRuntimeHandlerFluent fluent; + + public V1NodeRuntimeHandler build() { + V1NodeRuntimeHandler buildable = new V1NodeRuntimeHandler(); + buildable.setFeatures(fluent.buildFeatures()); + buildable.setName(fluent.getName()); + return buildable; + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeRuntimeHandlerFeaturesBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeRuntimeHandlerFeaturesBuilder.java new file mode 100644 index 0000000000..12d9d75401 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeRuntimeHandlerFeaturesBuilder.java @@ -0,0 +1,32 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +public class V1NodeRuntimeHandlerFeaturesBuilder extends V1NodeRuntimeHandlerFeaturesFluent implements VisitableBuilder{ + public V1NodeRuntimeHandlerFeaturesBuilder() { + this(new V1NodeRuntimeHandlerFeatures()); + } + + public V1NodeRuntimeHandlerFeaturesBuilder(V1NodeRuntimeHandlerFeaturesFluent fluent) { + this(fluent, new V1NodeRuntimeHandlerFeatures()); + } + + public V1NodeRuntimeHandlerFeaturesBuilder(V1NodeRuntimeHandlerFeaturesFluent fluent,V1NodeRuntimeHandlerFeatures instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1NodeRuntimeHandlerFeaturesBuilder(V1NodeRuntimeHandlerFeatures instance) { + this.fluent = this; + this.copyInstance(instance); + } + V1NodeRuntimeHandlerFeaturesFluent fluent; + + public V1NodeRuntimeHandlerFeatures build() { + V1NodeRuntimeHandlerFeatures buildable = new V1NodeRuntimeHandlerFeatures(); + buildable.setRecursiveReadOnlyMounts(fluent.getRecursiveReadOnlyMounts()); + buildable.setUserNamespaces(fluent.getUserNamespaces()); + return buildable; + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeRuntimeHandlerFeaturesFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeRuntimeHandlerFeaturesFluent.java new file mode 100644 index 0000000000..cd39a00aab --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeRuntimeHandlerFeaturesFluent.java @@ -0,0 +1,89 @@ +package io.kubernetes.client.openapi.models; + +import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Object; +import java.lang.String; +import java.lang.Boolean; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1NodeRuntimeHandlerFeaturesFluent> extends BaseFluent{ + public V1NodeRuntimeHandlerFeaturesFluent() { + } + + public V1NodeRuntimeHandlerFeaturesFluent(V1NodeRuntimeHandlerFeatures instance) { + this.copyInstance(instance); + } + private Boolean recursiveReadOnlyMounts; + private Boolean userNamespaces; + + protected void copyInstance(V1NodeRuntimeHandlerFeatures instance) { + instance = (instance != null ? instance : new V1NodeRuntimeHandlerFeatures()); + if (instance != null) { + this.withRecursiveReadOnlyMounts(instance.getRecursiveReadOnlyMounts()); + this.withUserNamespaces(instance.getUserNamespaces()); + } + } + + public Boolean getRecursiveReadOnlyMounts() { + return this.recursiveReadOnlyMounts; + } + + public A withRecursiveReadOnlyMounts(Boolean recursiveReadOnlyMounts) { + this.recursiveReadOnlyMounts = recursiveReadOnlyMounts; + return (A) this; + } + + public boolean hasRecursiveReadOnlyMounts() { + return this.recursiveReadOnlyMounts != null; + } + + public Boolean getUserNamespaces() { + return this.userNamespaces; + } + + public A withUserNamespaces(Boolean userNamespaces) { + this.userNamespaces = userNamespaces; + return (A) this; + } + + public boolean hasUserNamespaces() { + return this.userNamespaces != null; + } + + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + if (!super.equals(o)) return false; + V1NodeRuntimeHandlerFeaturesFluent that = (V1NodeRuntimeHandlerFeaturesFluent) o; + if (!java.util.Objects.equals(recursiveReadOnlyMounts, that.recursiveReadOnlyMounts)) return false; + if (!java.util.Objects.equals(userNamespaces, that.userNamespaces)) return false; + return true; + } + + public int hashCode() { + return java.util.Objects.hash(recursiveReadOnlyMounts, userNamespaces, super.hashCode()); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (recursiveReadOnlyMounts != null) { sb.append("recursiveReadOnlyMounts:"); sb.append(recursiveReadOnlyMounts + ","); } + if (userNamespaces != null) { sb.append("userNamespaces:"); sb.append(userNamespaces); } + sb.append("}"); + return sb.toString(); + } + + public A withRecursiveReadOnlyMounts() { + return withRecursiveReadOnlyMounts(true); + } + + public A withUserNamespaces() { + return withUserNamespaces(true); + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeRuntimeHandlerFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeRuntimeHandlerFluent.java new file mode 100644 index 0000000000..5fd2d64b3e --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeRuntimeHandlerFluent.java @@ -0,0 +1,123 @@ +package io.kubernetes.client.openapi.models; + +import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Object; +import java.lang.String; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1NodeRuntimeHandlerFluent> extends BaseFluent{ + public V1NodeRuntimeHandlerFluent() { + } + + public V1NodeRuntimeHandlerFluent(V1NodeRuntimeHandler instance) { + this.copyInstance(instance); + } + private V1NodeRuntimeHandlerFeaturesBuilder features; + private String name; + + protected void copyInstance(V1NodeRuntimeHandler instance) { + instance = (instance != null ? instance : new V1NodeRuntimeHandler()); + if (instance != null) { + this.withFeatures(instance.getFeatures()); + this.withName(instance.getName()); + } + } + + public V1NodeRuntimeHandlerFeatures buildFeatures() { + return this.features != null ? this.features.build() : null; + } + + public A withFeatures(V1NodeRuntimeHandlerFeatures features) { + this._visitables.remove("features"); + if (features != null) { + this.features = new V1NodeRuntimeHandlerFeaturesBuilder(features); + this._visitables.get("features").add(this.features); + } else { + this.features = null; + this._visitables.get("features").remove(this.features); + } + return (A) this; + } + + public boolean hasFeatures() { + return this.features != null; + } + + public FeaturesNested withNewFeatures() { + return new FeaturesNested(null); + } + + public FeaturesNested withNewFeaturesLike(V1NodeRuntimeHandlerFeatures item) { + return new FeaturesNested(item); + } + + public FeaturesNested editFeatures() { + return withNewFeaturesLike(java.util.Optional.ofNullable(buildFeatures()).orElse(null)); + } + + public FeaturesNested editOrNewFeatures() { + return withNewFeaturesLike(java.util.Optional.ofNullable(buildFeatures()).orElse(new V1NodeRuntimeHandlerFeaturesBuilder().build())); + } + + public FeaturesNested editOrNewFeaturesLike(V1NodeRuntimeHandlerFeatures item) { + return withNewFeaturesLike(java.util.Optional.ofNullable(buildFeatures()).orElse(item)); + } + + public String getName() { + return this.name; + } + + public A withName(String name) { + this.name = name; + return (A) this; + } + + public boolean hasName() { + return this.name != null; + } + + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + if (!super.equals(o)) return false; + V1NodeRuntimeHandlerFluent that = (V1NodeRuntimeHandlerFluent) o; + if (!java.util.Objects.equals(features, that.features)) return false; + if (!java.util.Objects.equals(name, that.name)) return false; + return true; + } + + public int hashCode() { + return java.util.Objects.hash(features, name, super.hashCode()); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (features != null) { sb.append("features:"); sb.append(features + ","); } + if (name != null) { sb.append("name:"); sb.append(name); } + sb.append("}"); + return sb.toString(); + } + public class FeaturesNested extends V1NodeRuntimeHandlerFeaturesFluent> implements Nested{ + FeaturesNested(V1NodeRuntimeHandlerFeatures item) { + this.builder = new V1NodeRuntimeHandlerFeaturesBuilder(this, item); + } + V1NodeRuntimeHandlerFeaturesBuilder builder; + + public N and() { + return (N) V1NodeRuntimeHandlerFluent.this.withFeatures(builder.build()); + } + + public N endFeatures() { + return and(); + } + + + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeSelectorFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeSelectorFluent.java index 7c00dd3a12..d4d79d7ef8 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeSelectorFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeSelectorFluent.java @@ -35,14 +35,26 @@ protected void copyInstance(V1NodeSelector instance) { public A addToNodeSelectorTerms(int index,V1NodeSelectorTerm item) { if (this.nodeSelectorTerms == null) {this.nodeSelectorTerms = new ArrayList();} V1NodeSelectorTermBuilder builder = new V1NodeSelectorTermBuilder(item); - if (index < 0 || index >= nodeSelectorTerms.size()) { _visitables.get("nodeSelectorTerms").add(builder); nodeSelectorTerms.add(builder); } else { _visitables.get("nodeSelectorTerms").add(index, builder); nodeSelectorTerms.add(index, builder);} + if (index < 0 || index >= nodeSelectorTerms.size()) { + _visitables.get("nodeSelectorTerms").add(builder); + nodeSelectorTerms.add(builder); + } else { + _visitables.get("nodeSelectorTerms").add(builder); + nodeSelectorTerms.add(index, builder); + } return (A)this; } public A setToNodeSelectorTerms(int index,V1NodeSelectorTerm item) { if (this.nodeSelectorTerms == null) {this.nodeSelectorTerms = new ArrayList();} V1NodeSelectorTermBuilder builder = new V1NodeSelectorTermBuilder(item); - if (index < 0 || index >= nodeSelectorTerms.size()) { _visitables.get("nodeSelectorTerms").add(builder); nodeSelectorTerms.add(builder); } else { _visitables.get("nodeSelectorTerms").set(index, builder); nodeSelectorTerms.set(index, builder);} + if (index < 0 || index >= nodeSelectorTerms.size()) { + _visitables.get("nodeSelectorTerms").add(builder); + nodeSelectorTerms.add(builder); + } else { + _visitables.get("nodeSelectorTerms").add(builder); + nodeSelectorTerms.set(index, builder); + } return (A)this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeSelectorTermFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeSelectorTermFluent.java index 511ec51695..532398e0b6 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeSelectorTermFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeSelectorTermFluent.java @@ -37,14 +37,26 @@ protected void copyInstance(V1NodeSelectorTerm instance) { public A addToMatchExpressions(int index,V1NodeSelectorRequirement item) { if (this.matchExpressions == null) {this.matchExpressions = new ArrayList();} V1NodeSelectorRequirementBuilder builder = new V1NodeSelectorRequirementBuilder(item); - if (index < 0 || index >= matchExpressions.size()) { _visitables.get("matchExpressions").add(builder); matchExpressions.add(builder); } else { _visitables.get("matchExpressions").add(index, builder); matchExpressions.add(index, builder);} + if (index < 0 || index >= matchExpressions.size()) { + _visitables.get("matchExpressions").add(builder); + matchExpressions.add(builder); + } else { + _visitables.get("matchExpressions").add(builder); + matchExpressions.add(index, builder); + } return (A)this; } public A setToMatchExpressions(int index,V1NodeSelectorRequirement item) { if (this.matchExpressions == null) {this.matchExpressions = new ArrayList();} V1NodeSelectorRequirementBuilder builder = new V1NodeSelectorRequirementBuilder(item); - if (index < 0 || index >= matchExpressions.size()) { _visitables.get("matchExpressions").add(builder); matchExpressions.add(builder); } else { _visitables.get("matchExpressions").set(index, builder); matchExpressions.set(index, builder);} + if (index < 0 || index >= matchExpressions.size()) { + _visitables.get("matchExpressions").add(builder); + matchExpressions.add(builder); + } else { + _visitables.get("matchExpressions").add(builder); + matchExpressions.set(index, builder); + } return (A)this; } @@ -188,14 +200,26 @@ public MatchExpressionsNested editMatchingMatchExpression(Predicate();} V1NodeSelectorRequirementBuilder builder = new V1NodeSelectorRequirementBuilder(item); - if (index < 0 || index >= matchFields.size()) { _visitables.get("matchFields").add(builder); matchFields.add(builder); } else { _visitables.get("matchFields").add(index, builder); matchFields.add(index, builder);} + if (index < 0 || index >= matchFields.size()) { + _visitables.get("matchFields").add(builder); + matchFields.add(builder); + } else { + _visitables.get("matchFields").add(builder); + matchFields.add(index, builder); + } return (A)this; } public A setToMatchFields(int index,V1NodeSelectorRequirement item) { if (this.matchFields == null) {this.matchFields = new ArrayList();} V1NodeSelectorRequirementBuilder builder = new V1NodeSelectorRequirementBuilder(item); - if (index < 0 || index >= matchFields.size()) { _visitables.get("matchFields").add(builder); matchFields.add(builder); } else { _visitables.get("matchFields").set(index, builder); matchFields.set(index, builder);} + if (index < 0 || index >= matchFields.size()) { + _visitables.get("matchFields").add(builder); + matchFields.add(builder); + } else { + _visitables.get("matchFields").add(builder); + matchFields.set(index, builder); + } return (A)this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeSpecFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeSpecFluent.java index 293f2f7b44..748b6e2a78 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeSpecFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeSpecFluent.java @@ -221,14 +221,26 @@ public boolean hasProviderID() { public A addToTaints(int index,V1Taint item) { if (this.taints == null) {this.taints = new ArrayList();} V1TaintBuilder builder = new V1TaintBuilder(item); - if (index < 0 || index >= taints.size()) { _visitables.get("taints").add(builder); taints.add(builder); } else { _visitables.get("taints").add(index, builder); taints.add(index, builder);} + if (index < 0 || index >= taints.size()) { + _visitables.get("taints").add(builder); + taints.add(builder); + } else { + _visitables.get("taints").add(builder); + taints.add(index, builder); + } return (A)this; } public A setToTaints(int index,V1Taint item) { if (this.taints == null) {this.taints = new ArrayList();} V1TaintBuilder builder = new V1TaintBuilder(item); - if (index < 0 || index >= taints.size()) { _visitables.get("taints").add(builder); taints.add(builder); } else { _visitables.get("taints").set(index, builder); taints.set(index, builder);} + if (index < 0 || index >= taints.size()) { + _visitables.get("taints").add(builder); + taints.add(builder); + } else { + _visitables.get("taints").add(builder); + taints.set(index, builder); + } return (A)this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeStatusBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeStatusBuilder.java index e4483779a8..4ee08c2208 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeStatusBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeStatusBuilder.java @@ -29,9 +29,11 @@ public V1NodeStatus build() { buildable.setConditions(fluent.buildConditions()); buildable.setConfig(fluent.buildConfig()); buildable.setDaemonEndpoints(fluent.buildDaemonEndpoints()); + buildable.setFeatures(fluent.buildFeatures()); buildable.setImages(fluent.buildImages()); buildable.setNodeInfo(fluent.buildNodeInfo()); buildable.setPhase(fluent.getPhase()); + buildable.setRuntimeHandlers(fluent.buildRuntimeHandlers()); buildable.setVolumesAttached(fluent.buildVolumesAttached()); buildable.setVolumesInUse(fluent.getVolumesInUse()); return buildable; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeStatusFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeStatusFluent.java index 7f2aa9832f..b2b4d65857 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeStatusFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeStatusFluent.java @@ -32,9 +32,11 @@ public V1NodeStatusFluent(V1NodeStatus instance) { private ArrayList conditions; private V1NodeConfigStatusBuilder config; private V1NodeDaemonEndpointsBuilder daemonEndpoints; + private V1NodeFeaturesBuilder features; private ArrayList images; private V1NodeSystemInfoBuilder nodeInfo; private String phase; + private ArrayList runtimeHandlers; private ArrayList volumesAttached; private List volumesInUse; @@ -47,9 +49,11 @@ protected void copyInstance(V1NodeStatus instance) { this.withConditions(instance.getConditions()); this.withConfig(instance.getConfig()); this.withDaemonEndpoints(instance.getDaemonEndpoints()); + this.withFeatures(instance.getFeatures()); this.withImages(instance.getImages()); this.withNodeInfo(instance.getNodeInfo()); this.withPhase(instance.getPhase()); + this.withRuntimeHandlers(instance.getRuntimeHandlers()); this.withVolumesAttached(instance.getVolumesAttached()); this.withVolumesInUse(instance.getVolumesInUse()); } @@ -58,14 +62,26 @@ protected void copyInstance(V1NodeStatus instance) { public A addToAddresses(int index,V1NodeAddress item) { if (this.addresses == null) {this.addresses = new ArrayList();} V1NodeAddressBuilder builder = new V1NodeAddressBuilder(item); - if (index < 0 || index >= addresses.size()) { _visitables.get("addresses").add(builder); addresses.add(builder); } else { _visitables.get("addresses").add(index, builder); addresses.add(index, builder);} + if (index < 0 || index >= addresses.size()) { + _visitables.get("addresses").add(builder); + addresses.add(builder); + } else { + _visitables.get("addresses").add(builder); + addresses.add(index, builder); + } return (A)this; } public A setToAddresses(int index,V1NodeAddress item) { if (this.addresses == null) {this.addresses = new ArrayList();} V1NodeAddressBuilder builder = new V1NodeAddressBuilder(item); - if (index < 0 || index >= addresses.size()) { _visitables.get("addresses").add(builder); addresses.add(builder); } else { _visitables.get("addresses").set(index, builder); addresses.set(index, builder);} + if (index < 0 || index >= addresses.size()) { + _visitables.get("addresses").add(builder); + addresses.add(builder); + } else { + _visitables.get("addresses").add(builder); + addresses.set(index, builder); + } return (A)this; } @@ -283,14 +299,26 @@ public boolean hasCapacity() { public A addToConditions(int index,V1NodeCondition item) { if (this.conditions == null) {this.conditions = new ArrayList();} V1NodeConditionBuilder builder = new V1NodeConditionBuilder(item); - if (index < 0 || index >= conditions.size()) { _visitables.get("conditions").add(builder); conditions.add(builder); } else { _visitables.get("conditions").add(index, builder); conditions.add(index, builder);} + if (index < 0 || index >= conditions.size()) { + _visitables.get("conditions").add(builder); + conditions.add(builder); + } else { + _visitables.get("conditions").add(builder); + conditions.add(index, builder); + } return (A)this; } public A setToConditions(int index,V1NodeCondition item) { if (this.conditions == null) {this.conditions = new ArrayList();} V1NodeConditionBuilder builder = new V1NodeConditionBuilder(item); - if (index < 0 || index >= conditions.size()) { _visitables.get("conditions").add(builder); conditions.add(builder); } else { _visitables.get("conditions").set(index, builder); conditions.set(index, builder);} + if (index < 0 || index >= conditions.size()) { + _visitables.get("conditions").add(builder); + conditions.add(builder); + } else { + _visitables.get("conditions").add(builder); + conditions.set(index, builder); + } return (A)this; } @@ -511,17 +539,69 @@ public DaemonEndpointsNested editOrNewDaemonEndpointsLike(V1NodeDaemonEndpoin return withNewDaemonEndpointsLike(java.util.Optional.ofNullable(buildDaemonEndpoints()).orElse(item)); } + public V1NodeFeatures buildFeatures() { + return this.features != null ? this.features.build() : null; + } + + public A withFeatures(V1NodeFeatures features) { + this._visitables.remove("features"); + if (features != null) { + this.features = new V1NodeFeaturesBuilder(features); + this._visitables.get("features").add(this.features); + } else { + this.features = null; + this._visitables.get("features").remove(this.features); + } + return (A) this; + } + + public boolean hasFeatures() { + return this.features != null; + } + + public FeaturesNested withNewFeatures() { + return new FeaturesNested(null); + } + + public FeaturesNested withNewFeaturesLike(V1NodeFeatures item) { + return new FeaturesNested(item); + } + + public FeaturesNested editFeatures() { + return withNewFeaturesLike(java.util.Optional.ofNullable(buildFeatures()).orElse(null)); + } + + public FeaturesNested editOrNewFeatures() { + return withNewFeaturesLike(java.util.Optional.ofNullable(buildFeatures()).orElse(new V1NodeFeaturesBuilder().build())); + } + + public FeaturesNested editOrNewFeaturesLike(V1NodeFeatures item) { + return withNewFeaturesLike(java.util.Optional.ofNullable(buildFeatures()).orElse(item)); + } + public A addToImages(int index,V1ContainerImage item) { if (this.images == null) {this.images = new ArrayList();} V1ContainerImageBuilder builder = new V1ContainerImageBuilder(item); - if (index < 0 || index >= images.size()) { _visitables.get("images").add(builder); images.add(builder); } else { _visitables.get("images").add(index, builder); images.add(index, builder);} + if (index < 0 || index >= images.size()) { + _visitables.get("images").add(builder); + images.add(builder); + } else { + _visitables.get("images").add(builder); + images.add(index, builder); + } return (A)this; } public A setToImages(int index,V1ContainerImage item) { if (this.images == null) {this.images = new ArrayList();} V1ContainerImageBuilder builder = new V1ContainerImageBuilder(item); - if (index < 0 || index >= images.size()) { _visitables.get("images").add(builder); images.add(builder); } else { _visitables.get("images").set(index, builder); images.set(index, builder);} + if (index < 0 || index >= images.size()) { + _visitables.get("images").add(builder); + images.add(builder); + } else { + _visitables.get("images").add(builder); + images.set(index, builder); + } return (A)this; } @@ -715,17 +795,192 @@ public boolean hasPhase() { return this.phase != null; } + public A addToRuntimeHandlers(int index,V1NodeRuntimeHandler item) { + if (this.runtimeHandlers == null) {this.runtimeHandlers = new ArrayList();} + V1NodeRuntimeHandlerBuilder builder = new V1NodeRuntimeHandlerBuilder(item); + if (index < 0 || index >= runtimeHandlers.size()) { + _visitables.get("runtimeHandlers").add(builder); + runtimeHandlers.add(builder); + } else { + _visitables.get("runtimeHandlers").add(builder); + runtimeHandlers.add(index, builder); + } + return (A)this; + } + + public A setToRuntimeHandlers(int index,V1NodeRuntimeHandler item) { + if (this.runtimeHandlers == null) {this.runtimeHandlers = new ArrayList();} + V1NodeRuntimeHandlerBuilder builder = new V1NodeRuntimeHandlerBuilder(item); + if (index < 0 || index >= runtimeHandlers.size()) { + _visitables.get("runtimeHandlers").add(builder); + runtimeHandlers.add(builder); + } else { + _visitables.get("runtimeHandlers").add(builder); + runtimeHandlers.set(index, builder); + } + return (A)this; + } + + public A addToRuntimeHandlers(io.kubernetes.client.openapi.models.V1NodeRuntimeHandler... items) { + if (this.runtimeHandlers == null) {this.runtimeHandlers = new ArrayList();} + for (V1NodeRuntimeHandler item : items) {V1NodeRuntimeHandlerBuilder builder = new V1NodeRuntimeHandlerBuilder(item);_visitables.get("runtimeHandlers").add(builder);this.runtimeHandlers.add(builder);} return (A)this; + } + + public A addAllToRuntimeHandlers(Collection items) { + if (this.runtimeHandlers == null) {this.runtimeHandlers = new ArrayList();} + for (V1NodeRuntimeHandler item : items) {V1NodeRuntimeHandlerBuilder builder = new V1NodeRuntimeHandlerBuilder(item);_visitables.get("runtimeHandlers").add(builder);this.runtimeHandlers.add(builder);} return (A)this; + } + + public A removeFromRuntimeHandlers(io.kubernetes.client.openapi.models.V1NodeRuntimeHandler... items) { + if (this.runtimeHandlers == null) return (A)this; + for (V1NodeRuntimeHandler item : items) {V1NodeRuntimeHandlerBuilder builder = new V1NodeRuntimeHandlerBuilder(item);_visitables.get("runtimeHandlers").remove(builder); this.runtimeHandlers.remove(builder);} return (A)this; + } + + public A removeAllFromRuntimeHandlers(Collection items) { + if (this.runtimeHandlers == null) return (A)this; + for (V1NodeRuntimeHandler item : items) {V1NodeRuntimeHandlerBuilder builder = new V1NodeRuntimeHandlerBuilder(item);_visitables.get("runtimeHandlers").remove(builder); this.runtimeHandlers.remove(builder);} return (A)this; + } + + public A removeMatchingFromRuntimeHandlers(Predicate predicate) { + if (runtimeHandlers == null) return (A) this; + final Iterator each = runtimeHandlers.iterator(); + final List visitables = _visitables.get("runtimeHandlers"); + while (each.hasNext()) { + V1NodeRuntimeHandlerBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A)this; + } + + public List buildRuntimeHandlers() { + return this.runtimeHandlers != null ? build(runtimeHandlers) : null; + } + + public V1NodeRuntimeHandler buildRuntimeHandler(int index) { + return this.runtimeHandlers.get(index).build(); + } + + public V1NodeRuntimeHandler buildFirstRuntimeHandler() { + return this.runtimeHandlers.get(0).build(); + } + + public V1NodeRuntimeHandler buildLastRuntimeHandler() { + return this.runtimeHandlers.get(runtimeHandlers.size() - 1).build(); + } + + public V1NodeRuntimeHandler buildMatchingRuntimeHandler(Predicate predicate) { + for (V1NodeRuntimeHandlerBuilder item : runtimeHandlers) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; + } + + public boolean hasMatchingRuntimeHandler(Predicate predicate) { + for (V1NodeRuntimeHandlerBuilder item : runtimeHandlers) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public A withRuntimeHandlers(List runtimeHandlers) { + if (this.runtimeHandlers != null) { + this._visitables.get("runtimeHandlers").clear(); + } + if (runtimeHandlers != null) { + this.runtimeHandlers = new ArrayList(); + for (V1NodeRuntimeHandler item : runtimeHandlers) { + this.addToRuntimeHandlers(item); + } + } else { + this.runtimeHandlers = null; + } + return (A) this; + } + + public A withRuntimeHandlers(io.kubernetes.client.openapi.models.V1NodeRuntimeHandler... runtimeHandlers) { + if (this.runtimeHandlers != null) { + this.runtimeHandlers.clear(); + _visitables.remove("runtimeHandlers"); + } + if (runtimeHandlers != null) { + for (V1NodeRuntimeHandler item : runtimeHandlers) { + this.addToRuntimeHandlers(item); + } + } + return (A) this; + } + + public boolean hasRuntimeHandlers() { + return this.runtimeHandlers != null && !this.runtimeHandlers.isEmpty(); + } + + public RuntimeHandlersNested addNewRuntimeHandler() { + return new RuntimeHandlersNested(-1, null); + } + + public RuntimeHandlersNested addNewRuntimeHandlerLike(V1NodeRuntimeHandler item) { + return new RuntimeHandlersNested(-1, item); + } + + public RuntimeHandlersNested setNewRuntimeHandlerLike(int index,V1NodeRuntimeHandler item) { + return new RuntimeHandlersNested(index, item); + } + + public RuntimeHandlersNested editRuntimeHandler(int index) { + if (runtimeHandlers.size() <= index) throw new RuntimeException("Can't edit runtimeHandlers. Index exceeds size."); + return setNewRuntimeHandlerLike(index, buildRuntimeHandler(index)); + } + + public RuntimeHandlersNested editFirstRuntimeHandler() { + if (runtimeHandlers.size() == 0) throw new RuntimeException("Can't edit first runtimeHandlers. The list is empty."); + return setNewRuntimeHandlerLike(0, buildRuntimeHandler(0)); + } + + public RuntimeHandlersNested editLastRuntimeHandler() { + int index = runtimeHandlers.size() - 1; + if (index < 0) throw new RuntimeException("Can't edit last runtimeHandlers. The list is empty."); + return setNewRuntimeHandlerLike(index, buildRuntimeHandler(index)); + } + + public RuntimeHandlersNested editMatchingRuntimeHandler(Predicate predicate) { + int index = -1; + for (int i=0;i();} V1AttachedVolumeBuilder builder = new V1AttachedVolumeBuilder(item); - if (index < 0 || index >= volumesAttached.size()) { _visitables.get("volumesAttached").add(builder); volumesAttached.add(builder); } else { _visitables.get("volumesAttached").add(index, builder); volumesAttached.add(index, builder);} + if (index < 0 || index >= volumesAttached.size()) { + _visitables.get("volumesAttached").add(builder); + volumesAttached.add(builder); + } else { + _visitables.get("volumesAttached").add(builder); + volumesAttached.add(index, builder); + } return (A)this; } public A setToVolumesAttached(int index,V1AttachedVolume item) { if (this.volumesAttached == null) {this.volumesAttached = new ArrayList();} V1AttachedVolumeBuilder builder = new V1AttachedVolumeBuilder(item); - if (index < 0 || index >= volumesAttached.size()) { _visitables.get("volumesAttached").add(builder); volumesAttached.add(builder); } else { _visitables.get("volumesAttached").set(index, builder); volumesAttached.set(index, builder);} + if (index < 0 || index >= volumesAttached.size()) { + _visitables.get("volumesAttached").add(builder); + volumesAttached.add(builder); + } else { + _visitables.get("volumesAttached").add(builder); + volumesAttached.set(index, builder); + } return (A)this; } @@ -971,16 +1226,18 @@ public boolean equals(Object o) { if (!java.util.Objects.equals(conditions, that.conditions)) return false; if (!java.util.Objects.equals(config, that.config)) return false; if (!java.util.Objects.equals(daemonEndpoints, that.daemonEndpoints)) return false; + if (!java.util.Objects.equals(features, that.features)) return false; if (!java.util.Objects.equals(images, that.images)) return false; if (!java.util.Objects.equals(nodeInfo, that.nodeInfo)) return false; if (!java.util.Objects.equals(phase, that.phase)) return false; + if (!java.util.Objects.equals(runtimeHandlers, that.runtimeHandlers)) return false; if (!java.util.Objects.equals(volumesAttached, that.volumesAttached)) return false; if (!java.util.Objects.equals(volumesInUse, that.volumesInUse)) return false; return true; } public int hashCode() { - return java.util.Objects.hash(addresses, allocatable, capacity, conditions, config, daemonEndpoints, images, nodeInfo, phase, volumesAttached, volumesInUse, super.hashCode()); + return java.util.Objects.hash(addresses, allocatable, capacity, conditions, config, daemonEndpoints, features, images, nodeInfo, phase, runtimeHandlers, volumesAttached, volumesInUse, super.hashCode()); } public String toString() { @@ -992,9 +1249,11 @@ public String toString() { if (conditions != null && !conditions.isEmpty()) { sb.append("conditions:"); sb.append(conditions + ","); } if (config != null) { sb.append("config:"); sb.append(config + ","); } if (daemonEndpoints != null) { sb.append("daemonEndpoints:"); sb.append(daemonEndpoints + ","); } + if (features != null) { sb.append("features:"); sb.append(features + ","); } if (images != null && !images.isEmpty()) { sb.append("images:"); sb.append(images + ","); } if (nodeInfo != null) { sb.append("nodeInfo:"); sb.append(nodeInfo + ","); } if (phase != null) { sb.append("phase:"); sb.append(phase + ","); } + if (runtimeHandlers != null && !runtimeHandlers.isEmpty()) { sb.append("runtimeHandlers:"); sb.append(runtimeHandlers + ","); } if (volumesAttached != null && !volumesAttached.isEmpty()) { sb.append("volumesAttached:"); sb.append(volumesAttached + ","); } if (volumesInUse != null && !volumesInUse.isEmpty()) { sb.append("volumesInUse:"); sb.append(volumesInUse); } sb.append("}"); @@ -1067,6 +1326,22 @@ public N endDaemonEndpoints() { } + } + public class FeaturesNested extends V1NodeFeaturesFluent> implements Nested{ + FeaturesNested(V1NodeFeatures item) { + this.builder = new V1NodeFeaturesBuilder(this, item); + } + V1NodeFeaturesBuilder builder; + + public N and() { + return (N) V1NodeStatusFluent.this.withFeatures(builder.build()); + } + + public N endFeatures() { + return and(); + } + + } public class ImagesNested extends V1ContainerImageFluent> implements Nested{ ImagesNested(int index,V1ContainerImage item) { @@ -1101,6 +1376,24 @@ public N endNodeInfo() { } + } + public class RuntimeHandlersNested extends V1NodeRuntimeHandlerFluent> implements Nested{ + RuntimeHandlersNested(int index,V1NodeRuntimeHandler item) { + this.index = index; + this.builder = new V1NodeRuntimeHandlerBuilder(this, item); + } + V1NodeRuntimeHandlerBuilder builder; + int index; + + public N and() { + return (N) V1NodeStatusFluent.this.setToRuntimeHandlers(index,builder.build()); + } + + public N endRuntimeHandler() { + return and(); + } + + } public class VolumesAttachedNested extends V1AttachedVolumeFluent> implements Nested{ VolumesAttachedNested(int index,V1AttachedVolume item) { diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeSwapStatusBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeSwapStatusBuilder.java new file mode 100644 index 0000000000..d0972bf737 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeSwapStatusBuilder.java @@ -0,0 +1,31 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +public class V1NodeSwapStatusBuilder extends V1NodeSwapStatusFluent implements VisitableBuilder{ + public V1NodeSwapStatusBuilder() { + this(new V1NodeSwapStatus()); + } + + public V1NodeSwapStatusBuilder(V1NodeSwapStatusFluent fluent) { + this(fluent, new V1NodeSwapStatus()); + } + + public V1NodeSwapStatusBuilder(V1NodeSwapStatusFluent fluent,V1NodeSwapStatus instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1NodeSwapStatusBuilder(V1NodeSwapStatus instance) { + this.fluent = this; + this.copyInstance(instance); + } + V1NodeSwapStatusFluent fluent; + + public V1NodeSwapStatus build() { + V1NodeSwapStatus buildable = new V1NodeSwapStatus(); + buildable.setCapacity(fluent.getCapacity()); + return buildable; + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeSwapStatusFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeSwapStatusFluent.java new file mode 100644 index 0000000000..f058a6369a --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeSwapStatusFluent.java @@ -0,0 +1,64 @@ +package io.kubernetes.client.openapi.models; + +import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Long; +import java.lang.Object; +import java.lang.String; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1NodeSwapStatusFluent> extends BaseFluent{ + public V1NodeSwapStatusFluent() { + } + + public V1NodeSwapStatusFluent(V1NodeSwapStatus instance) { + this.copyInstance(instance); + } + private Long capacity; + + protected void copyInstance(V1NodeSwapStatus instance) { + instance = (instance != null ? instance : new V1NodeSwapStatus()); + if (instance != null) { + this.withCapacity(instance.getCapacity()); + } + } + + public Long getCapacity() { + return this.capacity; + } + + public A withCapacity(Long capacity) { + this.capacity = capacity; + return (A) this; + } + + public boolean hasCapacity() { + return this.capacity != null; + } + + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + if (!super.equals(o)) return false; + V1NodeSwapStatusFluent that = (V1NodeSwapStatusFluent) o; + if (!java.util.Objects.equals(capacity, that.capacity)) return false; + return true; + } + + public int hashCode() { + return java.util.Objects.hash(capacity, super.hashCode()); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (capacity != null) { sb.append("capacity:"); sb.append(capacity); } + sb.append("}"); + return sb.toString(); + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeSystemInfoBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeSystemInfoBuilder.java index f3b2873617..aa3b9bac14 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeSystemInfoBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeSystemInfoBuilder.java @@ -32,6 +32,7 @@ public V1NodeSystemInfo build() { buildable.setMachineID(fluent.getMachineID()); buildable.setOperatingSystem(fluent.getOperatingSystem()); buildable.setOsImage(fluent.getOsImage()); + buildable.setSwap(fluent.buildSwap()); buildable.setSystemUUID(fluent.getSystemUUID()); return buildable; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeSystemInfoFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeSystemInfoFluent.java index 5b3cae2927..71e108de03 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeSystemInfoFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeSystemInfoFluent.java @@ -2,6 +2,7 @@ import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; import java.lang.Object; import java.lang.String; @@ -25,6 +26,7 @@ public V1NodeSystemInfoFluent(V1NodeSystemInfo instance) { private String machineID; private String operatingSystem; private String osImage; + private V1NodeSwapStatusBuilder swap; private String systemUUID; protected void copyInstance(V1NodeSystemInfo instance) { @@ -39,6 +41,7 @@ protected void copyInstance(V1NodeSystemInfo instance) { this.withMachineID(instance.getMachineID()); this.withOperatingSystem(instance.getOperatingSystem()); this.withOsImage(instance.getOsImage()); + this.withSwap(instance.getSwap()); this.withSystemUUID(instance.getSystemUUID()); } } @@ -160,6 +163,46 @@ public boolean hasOsImage() { return this.osImage != null; } + public V1NodeSwapStatus buildSwap() { + return this.swap != null ? this.swap.build() : null; + } + + public A withSwap(V1NodeSwapStatus swap) { + this._visitables.remove("swap"); + if (swap != null) { + this.swap = new V1NodeSwapStatusBuilder(swap); + this._visitables.get("swap").add(this.swap); + } else { + this.swap = null; + this._visitables.get("swap").remove(this.swap); + } + return (A) this; + } + + public boolean hasSwap() { + return this.swap != null; + } + + public SwapNested withNewSwap() { + return new SwapNested(null); + } + + public SwapNested withNewSwapLike(V1NodeSwapStatus item) { + return new SwapNested(item); + } + + public SwapNested editSwap() { + return withNewSwapLike(java.util.Optional.ofNullable(buildSwap()).orElse(null)); + } + + public SwapNested editOrNewSwap() { + return withNewSwapLike(java.util.Optional.ofNullable(buildSwap()).orElse(new V1NodeSwapStatusBuilder().build())); + } + + public SwapNested editOrNewSwapLike(V1NodeSwapStatus item) { + return withNewSwapLike(java.util.Optional.ofNullable(buildSwap()).orElse(item)); + } + public String getSystemUUID() { return this.systemUUID; } @@ -187,12 +230,13 @@ public boolean equals(Object o) { if (!java.util.Objects.equals(machineID, that.machineID)) return false; if (!java.util.Objects.equals(operatingSystem, that.operatingSystem)) return false; if (!java.util.Objects.equals(osImage, that.osImage)) return false; + if (!java.util.Objects.equals(swap, that.swap)) return false; if (!java.util.Objects.equals(systemUUID, that.systemUUID)) return false; return true; } public int hashCode() { - return java.util.Objects.hash(architecture, bootID, containerRuntimeVersion, kernelVersion, kubeProxyVersion, kubeletVersion, machineID, operatingSystem, osImage, systemUUID, super.hashCode()); + return java.util.Objects.hash(architecture, bootID, containerRuntimeVersion, kernelVersion, kubeProxyVersion, kubeletVersion, machineID, operatingSystem, osImage, swap, systemUUID, super.hashCode()); } public String toString() { @@ -207,10 +251,26 @@ public String toString() { if (machineID != null) { sb.append("machineID:"); sb.append(machineID + ","); } if (operatingSystem != null) { sb.append("operatingSystem:"); sb.append(operatingSystem + ","); } if (osImage != null) { sb.append("osImage:"); sb.append(osImage + ","); } + if (swap != null) { sb.append("swap:"); sb.append(swap + ","); } if (systemUUID != null) { sb.append("systemUUID:"); sb.append(systemUUID); } sb.append("}"); return sb.toString(); } + public class SwapNested extends V1NodeSwapStatusFluent> implements Nested{ + SwapNested(V1NodeSwapStatus item) { + this.builder = new V1NodeSwapStatusBuilder(this, item); + } + V1NodeSwapStatusBuilder builder; + + public N and() { + return (N) V1NodeSystemInfoFluent.this.withSwap(builder.build()); + } + + public N endSwap() { + return and(); + } + + } } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NonResourcePolicyRuleBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NonResourcePolicyRuleBuilder.java new file mode 100644 index 0000000000..05a18445de --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NonResourcePolicyRuleBuilder.java @@ -0,0 +1,32 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +public class V1NonResourcePolicyRuleBuilder extends V1NonResourcePolicyRuleFluent implements VisitableBuilder{ + public V1NonResourcePolicyRuleBuilder() { + this(new V1NonResourcePolicyRule()); + } + + public V1NonResourcePolicyRuleBuilder(V1NonResourcePolicyRuleFluent fluent) { + this(fluent, new V1NonResourcePolicyRule()); + } + + public V1NonResourcePolicyRuleBuilder(V1NonResourcePolicyRuleFluent fluent,V1NonResourcePolicyRule instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1NonResourcePolicyRuleBuilder(V1NonResourcePolicyRule instance) { + this.fluent = this; + this.copyInstance(instance); + } + V1NonResourcePolicyRuleFluent fluent; + + public V1NonResourcePolicyRule build() { + V1NonResourcePolicyRule buildable = new V1NonResourcePolicyRule(); + buildable.setNonResourceURLs(fluent.getNonResourceURLs()); + buildable.setVerbs(fluent.getVerbs()); + return buildable; + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NonResourcePolicyRuleFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NonResourcePolicyRuleFluent.java new file mode 100644 index 0000000000..1ea96e5420 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NonResourcePolicyRuleFluent.java @@ -0,0 +1,246 @@ +package io.kubernetes.client.openapi.models; + +import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; +import java.util.ArrayList; +import java.util.Collection; +import java.lang.Object; +import java.util.List; +import java.lang.String; +import java.util.function.Predicate; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1NonResourcePolicyRuleFluent> extends BaseFluent{ + public V1NonResourcePolicyRuleFluent() { + } + + public V1NonResourcePolicyRuleFluent(V1NonResourcePolicyRule instance) { + this.copyInstance(instance); + } + private List nonResourceURLs; + private List verbs; + + protected void copyInstance(V1NonResourcePolicyRule instance) { + instance = (instance != null ? instance : new V1NonResourcePolicyRule()); + if (instance != null) { + this.withNonResourceURLs(instance.getNonResourceURLs()); + this.withVerbs(instance.getVerbs()); + } + } + + public A addToNonResourceURLs(int index,String item) { + if (this.nonResourceURLs == null) {this.nonResourceURLs = new ArrayList();} + this.nonResourceURLs.add(index, item); + return (A)this; + } + + public A setToNonResourceURLs(int index,String item) { + if (this.nonResourceURLs == null) {this.nonResourceURLs = new ArrayList();} + this.nonResourceURLs.set(index, item); return (A)this; + } + + public A addToNonResourceURLs(java.lang.String... items) { + if (this.nonResourceURLs == null) {this.nonResourceURLs = new ArrayList();} + for (String item : items) {this.nonResourceURLs.add(item);} return (A)this; + } + + public A addAllToNonResourceURLs(Collection items) { + if (this.nonResourceURLs == null) {this.nonResourceURLs = new ArrayList();} + for (String item : items) {this.nonResourceURLs.add(item);} return (A)this; + } + + public A removeFromNonResourceURLs(java.lang.String... items) { + if (this.nonResourceURLs == null) return (A)this; + for (String item : items) { this.nonResourceURLs.remove(item);} return (A)this; + } + + public A removeAllFromNonResourceURLs(Collection items) { + if (this.nonResourceURLs == null) return (A)this; + for (String item : items) { this.nonResourceURLs.remove(item);} return (A)this; + } + + public List getNonResourceURLs() { + return this.nonResourceURLs; + } + + public String getNonResourceURL(int index) { + return this.nonResourceURLs.get(index); + } + + public String getFirstNonResourceURL() { + return this.nonResourceURLs.get(0); + } + + public String getLastNonResourceURL() { + return this.nonResourceURLs.get(nonResourceURLs.size() - 1); + } + + public String getMatchingNonResourceURL(Predicate predicate) { + for (String item : nonResourceURLs) { + if (predicate.test(item)) { + return item; + } + } + return null; + } + + public boolean hasMatchingNonResourceURL(Predicate predicate) { + for (String item : nonResourceURLs) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public A withNonResourceURLs(List nonResourceURLs) { + if (nonResourceURLs != null) { + this.nonResourceURLs = new ArrayList(); + for (String item : nonResourceURLs) { + this.addToNonResourceURLs(item); + } + } else { + this.nonResourceURLs = null; + } + return (A) this; + } + + public A withNonResourceURLs(java.lang.String... nonResourceURLs) { + if (this.nonResourceURLs != null) { + this.nonResourceURLs.clear(); + _visitables.remove("nonResourceURLs"); + } + if (nonResourceURLs != null) { + for (String item : nonResourceURLs) { + this.addToNonResourceURLs(item); + } + } + return (A) this; + } + + public boolean hasNonResourceURLs() { + return this.nonResourceURLs != null && !this.nonResourceURLs.isEmpty(); + } + + public A addToVerbs(int index,String item) { + if (this.verbs == null) {this.verbs = new ArrayList();} + this.verbs.add(index, item); + return (A)this; + } + + public A setToVerbs(int index,String item) { + if (this.verbs == null) {this.verbs = new ArrayList();} + this.verbs.set(index, item); return (A)this; + } + + public A addToVerbs(java.lang.String... items) { + if (this.verbs == null) {this.verbs = new ArrayList();} + for (String item : items) {this.verbs.add(item);} return (A)this; + } + + public A addAllToVerbs(Collection items) { + if (this.verbs == null) {this.verbs = new ArrayList();} + for (String item : items) {this.verbs.add(item);} return (A)this; + } + + public A removeFromVerbs(java.lang.String... items) { + if (this.verbs == null) return (A)this; + for (String item : items) { this.verbs.remove(item);} return (A)this; + } + + public A removeAllFromVerbs(Collection items) { + if (this.verbs == null) return (A)this; + for (String item : items) { this.verbs.remove(item);} return (A)this; + } + + public List getVerbs() { + return this.verbs; + } + + public String getVerb(int index) { + return this.verbs.get(index); + } + + public String getFirstVerb() { + return this.verbs.get(0); + } + + public String getLastVerb() { + return this.verbs.get(verbs.size() - 1); + } + + public String getMatchingVerb(Predicate predicate) { + for (String item : verbs) { + if (predicate.test(item)) { + return item; + } + } + return null; + } + + public boolean hasMatchingVerb(Predicate predicate) { + for (String item : verbs) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public A withVerbs(List verbs) { + if (verbs != null) { + this.verbs = new ArrayList(); + for (String item : verbs) { + this.addToVerbs(item); + } + } else { + this.verbs = null; + } + return (A) this; + } + + public A withVerbs(java.lang.String... verbs) { + if (this.verbs != null) { + this.verbs.clear(); + _visitables.remove("verbs"); + } + if (verbs != null) { + for (String item : verbs) { + this.addToVerbs(item); + } + } + return (A) this; + } + + public boolean hasVerbs() { + return this.verbs != null && !this.verbs.isEmpty(); + } + + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + if (!super.equals(o)) return false; + V1NonResourcePolicyRuleFluent that = (V1NonResourcePolicyRuleFluent) o; + if (!java.util.Objects.equals(nonResourceURLs, that.nonResourceURLs)) return false; + if (!java.util.Objects.equals(verbs, that.verbs)) return false; + return true; + } + + public int hashCode() { + return java.util.Objects.hash(nonResourceURLs, verbs, super.hashCode()); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (nonResourceURLs != null && !nonResourceURLs.isEmpty()) { sb.append("nonResourceURLs:"); sb.append(nonResourceURLs + ","); } + if (verbs != null && !verbs.isEmpty()) { sb.append("verbs:"); sb.append(verbs); } + sb.append("}"); + return sb.toString(); + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ObjectMetaFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ObjectMetaFluent.java index 84e9d44754..a2a857b24b 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ObjectMetaFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ObjectMetaFluent.java @@ -300,14 +300,26 @@ public boolean hasLabels() { public A addToManagedFields(int index,V1ManagedFieldsEntry item) { if (this.managedFields == null) {this.managedFields = new ArrayList();} V1ManagedFieldsEntryBuilder builder = new V1ManagedFieldsEntryBuilder(item); - if (index < 0 || index >= managedFields.size()) { _visitables.get("managedFields").add(builder); managedFields.add(builder); } else { _visitables.get("managedFields").add(index, builder); managedFields.add(index, builder);} + if (index < 0 || index >= managedFields.size()) { + _visitables.get("managedFields").add(builder); + managedFields.add(builder); + } else { + _visitables.get("managedFields").add(builder); + managedFields.add(index, builder); + } return (A)this; } public A setToManagedFields(int index,V1ManagedFieldsEntry item) { if (this.managedFields == null) {this.managedFields = new ArrayList();} V1ManagedFieldsEntryBuilder builder = new V1ManagedFieldsEntryBuilder(item); - if (index < 0 || index >= managedFields.size()) { _visitables.get("managedFields").add(builder); managedFields.add(builder); } else { _visitables.get("managedFields").set(index, builder); managedFields.set(index, builder);} + if (index < 0 || index >= managedFields.size()) { + _visitables.get("managedFields").add(builder); + managedFields.add(builder); + } else { + _visitables.get("managedFields").add(builder); + managedFields.set(index, builder); + } return (A)this; } @@ -477,14 +489,26 @@ public boolean hasNamespace() { public A addToOwnerReferences(int index,V1OwnerReference item) { if (this.ownerReferences == null) {this.ownerReferences = new ArrayList();} V1OwnerReferenceBuilder builder = new V1OwnerReferenceBuilder(item); - if (index < 0 || index >= ownerReferences.size()) { _visitables.get("ownerReferences").add(builder); ownerReferences.add(builder); } else { _visitables.get("ownerReferences").add(index, builder); ownerReferences.add(index, builder);} + if (index < 0 || index >= ownerReferences.size()) { + _visitables.get("ownerReferences").add(builder); + ownerReferences.add(builder); + } else { + _visitables.get("ownerReferences").add(builder); + ownerReferences.add(index, builder); + } return (A)this; } public A setToOwnerReferences(int index,V1OwnerReference item) { if (this.ownerReferences == null) {this.ownerReferences = new ArrayList();} V1OwnerReferenceBuilder builder = new V1OwnerReferenceBuilder(item); - if (index < 0 || index >= ownerReferences.size()) { _visitables.get("ownerReferences").add(builder); ownerReferences.add(builder); } else { _visitables.get("ownerReferences").set(index, builder); ownerReferences.set(index, builder);} + if (index < 0 || index >= ownerReferences.size()) { + _visitables.get("ownerReferences").add(builder); + ownerReferences.add(builder); + } else { + _visitables.get("ownerReferences").add(builder); + ownerReferences.set(index, builder); + } return (A)this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ParamKindBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ParamKindBuilder.java new file mode 100644 index 0000000000..1800023ec1 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ParamKindBuilder.java @@ -0,0 +1,32 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +public class V1ParamKindBuilder extends V1ParamKindFluent implements VisitableBuilder{ + public V1ParamKindBuilder() { + this(new V1ParamKind()); + } + + public V1ParamKindBuilder(V1ParamKindFluent fluent) { + this(fluent, new V1ParamKind()); + } + + public V1ParamKindBuilder(V1ParamKindFluent fluent,V1ParamKind instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1ParamKindBuilder(V1ParamKind instance) { + this.fluent = this; + this.copyInstance(instance); + } + V1ParamKindFluent fluent; + + public V1ParamKind build() { + V1ParamKind buildable = new V1ParamKind(); + buildable.setApiVersion(fluent.getApiVersion()); + buildable.setKind(fluent.getKind()); + return buildable; + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ParamKindFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ParamKindFluent.java new file mode 100644 index 0000000000..f99f5d41d0 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ParamKindFluent.java @@ -0,0 +1,80 @@ +package io.kubernetes.client.openapi.models; + +import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Object; +import java.lang.String; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1ParamKindFluent> extends BaseFluent{ + public V1ParamKindFluent() { + } + + public V1ParamKindFluent(V1ParamKind instance) { + this.copyInstance(instance); + } + private String apiVersion; + private String kind; + + protected void copyInstance(V1ParamKind instance) { + instance = (instance != null ? instance : new V1ParamKind()); + if (instance != null) { + this.withApiVersion(instance.getApiVersion()); + this.withKind(instance.getKind()); + } + } + + public String getApiVersion() { + return this.apiVersion; + } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + + public boolean hasApiVersion() { + return this.apiVersion != null; + } + + public String getKind() { + return this.kind; + } + + public A withKind(String kind) { + this.kind = kind; + return (A) this; + } + + public boolean hasKind() { + return this.kind != null; + } + + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + if (!super.equals(o)) return false; + V1ParamKindFluent that = (V1ParamKindFluent) o; + if (!java.util.Objects.equals(apiVersion, that.apiVersion)) return false; + if (!java.util.Objects.equals(kind, that.kind)) return false; + return true; + } + + public int hashCode() { + return java.util.Objects.hash(apiVersion, kind, super.hashCode()); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (apiVersion != null) { sb.append("apiVersion:"); sb.append(apiVersion + ","); } + if (kind != null) { sb.append("kind:"); sb.append(kind); } + sb.append("}"); + return sb.toString(); + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ParamRefBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ParamRefBuilder.java new file mode 100644 index 0000000000..e4a453db6d --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ParamRefBuilder.java @@ -0,0 +1,34 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +public class V1ParamRefBuilder extends V1ParamRefFluent implements VisitableBuilder{ + public V1ParamRefBuilder() { + this(new V1ParamRef()); + } + + public V1ParamRefBuilder(V1ParamRefFluent fluent) { + this(fluent, new V1ParamRef()); + } + + public V1ParamRefBuilder(V1ParamRefFluent fluent,V1ParamRef instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1ParamRefBuilder(V1ParamRef instance) { + this.fluent = this; + this.copyInstance(instance); + } + V1ParamRefFluent fluent; + + public V1ParamRef build() { + V1ParamRef buildable = new V1ParamRef(); + buildable.setName(fluent.getName()); + buildable.setNamespace(fluent.getNamespace()); + buildable.setParameterNotFoundAction(fluent.getParameterNotFoundAction()); + buildable.setSelector(fluent.buildSelector()); + return buildable; + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ParamRefFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ParamRefFluent.java new file mode 100644 index 0000000000..a83db9fe05 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ParamRefFluent.java @@ -0,0 +1,157 @@ +package io.kubernetes.client.openapi.models; + +import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Object; +import java.lang.String; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1ParamRefFluent> extends BaseFluent{ + public V1ParamRefFluent() { + } + + public V1ParamRefFluent(V1ParamRef instance) { + this.copyInstance(instance); + } + private String name; + private String namespace; + private String parameterNotFoundAction; + private V1LabelSelectorBuilder selector; + + protected void copyInstance(V1ParamRef instance) { + instance = (instance != null ? instance : new V1ParamRef()); + if (instance != null) { + this.withName(instance.getName()); + this.withNamespace(instance.getNamespace()); + this.withParameterNotFoundAction(instance.getParameterNotFoundAction()); + this.withSelector(instance.getSelector()); + } + } + + public String getName() { + return this.name; + } + + public A withName(String name) { + this.name = name; + return (A) this; + } + + public boolean hasName() { + return this.name != null; + } + + public String getNamespace() { + return this.namespace; + } + + public A withNamespace(String namespace) { + this.namespace = namespace; + return (A) this; + } + + public boolean hasNamespace() { + return this.namespace != null; + } + + public String getParameterNotFoundAction() { + return this.parameterNotFoundAction; + } + + public A withParameterNotFoundAction(String parameterNotFoundAction) { + this.parameterNotFoundAction = parameterNotFoundAction; + return (A) this; + } + + public boolean hasParameterNotFoundAction() { + return this.parameterNotFoundAction != null; + } + + public V1LabelSelector buildSelector() { + return this.selector != null ? this.selector.build() : null; + } + + public A withSelector(V1LabelSelector selector) { + this._visitables.remove("selector"); + if (selector != null) { + this.selector = new V1LabelSelectorBuilder(selector); + this._visitables.get("selector").add(this.selector); + } else { + this.selector = null; + this._visitables.get("selector").remove(this.selector); + } + return (A) this; + } + + public boolean hasSelector() { + return this.selector != null; + } + + public SelectorNested withNewSelector() { + return new SelectorNested(null); + } + + public SelectorNested withNewSelectorLike(V1LabelSelector item) { + return new SelectorNested(item); + } + + public SelectorNested editSelector() { + return withNewSelectorLike(java.util.Optional.ofNullable(buildSelector()).orElse(null)); + } + + public SelectorNested editOrNewSelector() { + return withNewSelectorLike(java.util.Optional.ofNullable(buildSelector()).orElse(new V1LabelSelectorBuilder().build())); + } + + public SelectorNested editOrNewSelectorLike(V1LabelSelector item) { + return withNewSelectorLike(java.util.Optional.ofNullable(buildSelector()).orElse(item)); + } + + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + if (!super.equals(o)) return false; + V1ParamRefFluent that = (V1ParamRefFluent) o; + if (!java.util.Objects.equals(name, that.name)) return false; + if (!java.util.Objects.equals(namespace, that.namespace)) return false; + if (!java.util.Objects.equals(parameterNotFoundAction, that.parameterNotFoundAction)) return false; + if (!java.util.Objects.equals(selector, that.selector)) return false; + return true; + } + + public int hashCode() { + return java.util.Objects.hash(name, namespace, parameterNotFoundAction, selector, super.hashCode()); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (name != null) { sb.append("name:"); sb.append(name + ","); } + if (namespace != null) { sb.append("namespace:"); sb.append(namespace + ","); } + if (parameterNotFoundAction != null) { sb.append("parameterNotFoundAction:"); sb.append(parameterNotFoundAction + ","); } + if (selector != null) { sb.append("selector:"); sb.append(selector); } + sb.append("}"); + return sb.toString(); + } + public class SelectorNested extends V1LabelSelectorFluent> implements Nested{ + SelectorNested(V1LabelSelector item) { + this.builder = new V1LabelSelectorBuilder(this, item); + } + V1LabelSelectorBuilder builder; + + public N and() { + return (N) V1ParamRefFluent.this.withSelector(builder.build()); + } + + public N endSelector() { + return and(); + } + + + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ParentReferenceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ParentReferenceBuilder.java new file mode 100644 index 0000000000..bd002edbab --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ParentReferenceBuilder.java @@ -0,0 +1,34 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +public class V1ParentReferenceBuilder extends V1ParentReferenceFluent implements VisitableBuilder{ + public V1ParentReferenceBuilder() { + this(new V1ParentReference()); + } + + public V1ParentReferenceBuilder(V1ParentReferenceFluent fluent) { + this(fluent, new V1ParentReference()); + } + + public V1ParentReferenceBuilder(V1ParentReferenceFluent fluent,V1ParentReference instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1ParentReferenceBuilder(V1ParentReference instance) { + this.fluent = this; + this.copyInstance(instance); + } + V1ParentReferenceFluent fluent; + + public V1ParentReference build() { + V1ParentReference buildable = new V1ParentReference(); + buildable.setGroup(fluent.getGroup()); + buildable.setName(fluent.getName()); + buildable.setNamespace(fluent.getNamespace()); + buildable.setResource(fluent.getResource()); + return buildable; + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ParentReferenceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ParentReferenceFluent.java new file mode 100644 index 0000000000..0102d4d1b7 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ParentReferenceFluent.java @@ -0,0 +1,114 @@ +package io.kubernetes.client.openapi.models; + +import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Object; +import java.lang.String; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1ParentReferenceFluent> extends BaseFluent{ + public V1ParentReferenceFluent() { + } + + public V1ParentReferenceFluent(V1ParentReference instance) { + this.copyInstance(instance); + } + private String group; + private String name; + private String namespace; + private String resource; + + protected void copyInstance(V1ParentReference instance) { + instance = (instance != null ? instance : new V1ParentReference()); + if (instance != null) { + this.withGroup(instance.getGroup()); + this.withName(instance.getName()); + this.withNamespace(instance.getNamespace()); + this.withResource(instance.getResource()); + } + } + + public String getGroup() { + return this.group; + } + + public A withGroup(String group) { + this.group = group; + return (A) this; + } + + public boolean hasGroup() { + return this.group != null; + } + + public String getName() { + return this.name; + } + + public A withName(String name) { + this.name = name; + return (A) this; + } + + public boolean hasName() { + return this.name != null; + } + + public String getNamespace() { + return this.namespace; + } + + public A withNamespace(String namespace) { + this.namespace = namespace; + return (A) this; + } + + public boolean hasNamespace() { + return this.namespace != null; + } + + public String getResource() { + return this.resource; + } + + public A withResource(String resource) { + this.resource = resource; + return (A) this; + } + + public boolean hasResource() { + return this.resource != null; + } + + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + if (!super.equals(o)) return false; + V1ParentReferenceFluent that = (V1ParentReferenceFluent) o; + if (!java.util.Objects.equals(group, that.group)) return false; + if (!java.util.Objects.equals(name, that.name)) return false; + if (!java.util.Objects.equals(namespace, that.namespace)) return false; + if (!java.util.Objects.equals(resource, that.resource)) return false; + return true; + } + + public int hashCode() { + return java.util.Objects.hash(group, name, namespace, resource, super.hashCode()); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (group != null) { sb.append("group:"); sb.append(group + ","); } + if (name != null) { sb.append("name:"); sb.append(name + ","); } + if (namespace != null) { sb.append("namespace:"); sb.append(namespace + ","); } + if (resource != null) { sb.append("resource:"); sb.append(resource); } + sb.append("}"); + return sb.toString(); + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimListFluent.java index 7f8d33bafa..92ba2b1a2e 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimListFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimListFluent.java @@ -54,14 +54,26 @@ public boolean hasApiVersion() { public A addToItems(int index,V1PersistentVolumeClaim item) { if (this.items == null) {this.items = new ArrayList();} V1PersistentVolumeClaimBuilder builder = new V1PersistentVolumeClaimBuilder(item); - if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); items.add(builder); } else { _visitables.get("items").add(index, builder); items.add(index, builder);} + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.add(index, builder); + } return (A)this; } public A setToItems(int index,V1PersistentVolumeClaim item) { if (this.items == null) {this.items = new ArrayList();} V1PersistentVolumeClaimBuilder builder = new V1PersistentVolumeClaimBuilder(item); - if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); items.add(builder); } else { _visitables.get("items").set(index, builder); items.set(index, builder);} + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.set(index, builder); + } return (A)this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimSpecBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimSpecBuilder.java index bf94295b01..effa6daefb 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimSpecBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimSpecBuilder.java @@ -29,6 +29,7 @@ public V1PersistentVolumeClaimSpec build() { buildable.setResources(fluent.buildResources()); buildable.setSelector(fluent.buildSelector()); buildable.setStorageClassName(fluent.getStorageClassName()); + buildable.setVolumeAttributesClassName(fluent.getVolumeAttributesClassName()); buildable.setVolumeMode(fluent.getVolumeMode()); buildable.setVolumeName(fluent.getVolumeName()); return buildable; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimSpecFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimSpecFluent.java index 3ee0d31b9c..755ea57e7d 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimSpecFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimSpecFluent.java @@ -24,9 +24,10 @@ public V1PersistentVolumeClaimSpecFluent(V1PersistentVolumeClaimSpec instance) { private List accessModes; private V1TypedLocalObjectReferenceBuilder dataSource; private V1TypedObjectReferenceBuilder dataSourceRef; - private V1ResourceRequirementsBuilder resources; + private V1VolumeResourceRequirementsBuilder resources; private V1LabelSelectorBuilder selector; private String storageClassName; + private String volumeAttributesClassName; private String volumeMode; private String volumeName; @@ -39,6 +40,7 @@ protected void copyInstance(V1PersistentVolumeClaimSpec instance) { this.withResources(instance.getResources()); this.withSelector(instance.getSelector()); this.withStorageClassName(instance.getStorageClassName()); + this.withVolumeAttributesClassName(instance.getVolumeAttributesClassName()); this.withVolumeMode(instance.getVolumeMode()); this.withVolumeName(instance.getVolumeName()); } @@ -218,14 +220,14 @@ public DataSourceRefNested editOrNewDataSourceRefLike(V1TypedObjectReference return withNewDataSourceRefLike(java.util.Optional.ofNullable(buildDataSourceRef()).orElse(item)); } - public V1ResourceRequirements buildResources() { + public V1VolumeResourceRequirements buildResources() { return this.resources != null ? this.resources.build() : null; } - public A withResources(V1ResourceRequirements resources) { + public A withResources(V1VolumeResourceRequirements resources) { this._visitables.remove("resources"); if (resources != null) { - this.resources = new V1ResourceRequirementsBuilder(resources); + this.resources = new V1VolumeResourceRequirementsBuilder(resources); this._visitables.get("resources").add(this.resources); } else { this.resources = null; @@ -242,7 +244,7 @@ public ResourcesNested withNewResources() { return new ResourcesNested(null); } - public ResourcesNested withNewResourcesLike(V1ResourceRequirements item) { + public ResourcesNested withNewResourcesLike(V1VolumeResourceRequirements item) { return new ResourcesNested(item); } @@ -251,10 +253,10 @@ public ResourcesNested editResources() { } public ResourcesNested editOrNewResources() { - return withNewResourcesLike(java.util.Optional.ofNullable(buildResources()).orElse(new V1ResourceRequirementsBuilder().build())); + return withNewResourcesLike(java.util.Optional.ofNullable(buildResources()).orElse(new V1VolumeResourceRequirementsBuilder().build())); } - public ResourcesNested editOrNewResourcesLike(V1ResourceRequirements item) { + public ResourcesNested editOrNewResourcesLike(V1VolumeResourceRequirements item) { return withNewResourcesLike(java.util.Optional.ofNullable(buildResources()).orElse(item)); } @@ -311,6 +313,19 @@ public boolean hasStorageClassName() { return this.storageClassName != null; } + public String getVolumeAttributesClassName() { + return this.volumeAttributesClassName; + } + + public A withVolumeAttributesClassName(String volumeAttributesClassName) { + this.volumeAttributesClassName = volumeAttributesClassName; + return (A) this; + } + + public boolean hasVolumeAttributesClassName() { + return this.volumeAttributesClassName != null; + } + public String getVolumeMode() { return this.volumeMode; } @@ -348,13 +363,14 @@ public boolean equals(Object o) { if (!java.util.Objects.equals(resources, that.resources)) return false; if (!java.util.Objects.equals(selector, that.selector)) return false; if (!java.util.Objects.equals(storageClassName, that.storageClassName)) return false; + if (!java.util.Objects.equals(volumeAttributesClassName, that.volumeAttributesClassName)) return false; if (!java.util.Objects.equals(volumeMode, that.volumeMode)) return false; if (!java.util.Objects.equals(volumeName, that.volumeName)) return false; return true; } public int hashCode() { - return java.util.Objects.hash(accessModes, dataSource, dataSourceRef, resources, selector, storageClassName, volumeMode, volumeName, super.hashCode()); + return java.util.Objects.hash(accessModes, dataSource, dataSourceRef, resources, selector, storageClassName, volumeAttributesClassName, volumeMode, volumeName, super.hashCode()); } public String toString() { @@ -366,6 +382,7 @@ public String toString() { if (resources != null) { sb.append("resources:"); sb.append(resources + ","); } if (selector != null) { sb.append("selector:"); sb.append(selector + ","); } if (storageClassName != null) { sb.append("storageClassName:"); sb.append(storageClassName + ","); } + if (volumeAttributesClassName != null) { sb.append("volumeAttributesClassName:"); sb.append(volumeAttributesClassName + ","); } if (volumeMode != null) { sb.append("volumeMode:"); sb.append(volumeMode + ","); } if (volumeName != null) { sb.append("volumeName:"); sb.append(volumeName); } sb.append("}"); @@ -403,11 +420,11 @@ public N endDataSourceRef() { } - public class ResourcesNested extends V1ResourceRequirementsFluent> implements Nested{ - ResourcesNested(V1ResourceRequirements item) { - this.builder = new V1ResourceRequirementsBuilder(this, item); + public class ResourcesNested extends V1VolumeResourceRequirementsFluent> implements Nested{ + ResourcesNested(V1VolumeResourceRequirements item) { + this.builder = new V1VolumeResourceRequirementsBuilder(this, item); } - V1ResourceRequirementsBuilder builder; + V1VolumeResourceRequirementsBuilder builder; public N and() { return (N) V1PersistentVolumeClaimSpecFluent.this.withResources(builder.build()); diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimStatusBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimStatusBuilder.java index d742b5e876..ed81387b44 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimStatusBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimStatusBuilder.java @@ -28,6 +28,8 @@ public V1PersistentVolumeClaimStatus build() { buildable.setAllocatedResources(fluent.getAllocatedResources()); buildable.setCapacity(fluent.getCapacity()); buildable.setConditions(fluent.buildConditions()); + buildable.setCurrentVolumeAttributesClassName(fluent.getCurrentVolumeAttributesClassName()); + buildable.setModifyVolumeStatus(fluent.buildModifyVolumeStatus()); buildable.setPhase(fluent.getPhase()); return buildable; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimStatusFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimStatusFluent.java index c79a1debda..91b3d8a182 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimStatusFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimStatusFluent.java @@ -4,15 +4,15 @@ import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; -import io.kubernetes.client.custom.Quantity; import java.lang.String; import java.util.LinkedHashMap; import java.util.function.Predicate; import io.kubernetes.client.fluent.BaseFluent; import java.util.Iterator; +import java.util.List; +import io.kubernetes.client.custom.Quantity; import java.util.Collection; import java.lang.Object; -import java.util.List; import java.util.Map; /** @@ -31,6 +31,8 @@ public V1PersistentVolumeClaimStatusFluent(V1PersistentVolumeClaimStatus instanc private Map allocatedResources; private Map capacity; private ArrayList conditions; + private String currentVolumeAttributesClassName; + private V1ModifyVolumeStatusBuilder modifyVolumeStatus; private String phase; protected void copyInstance(V1PersistentVolumeClaimStatus instance) { @@ -41,6 +43,8 @@ protected void copyInstance(V1PersistentVolumeClaimStatus instance) { this.withAllocatedResources(instance.getAllocatedResources()); this.withCapacity(instance.getCapacity()); this.withConditions(instance.getConditions()); + this.withCurrentVolumeAttributesClassName(instance.getCurrentVolumeAttributesClassName()); + this.withModifyVolumeStatus(instance.getModifyVolumeStatus()); this.withPhase(instance.getPhase()); } } @@ -253,14 +257,26 @@ public boolean hasCapacity() { public A addToConditions(int index,V1PersistentVolumeClaimCondition item) { if (this.conditions == null) {this.conditions = new ArrayList();} V1PersistentVolumeClaimConditionBuilder builder = new V1PersistentVolumeClaimConditionBuilder(item); - if (index < 0 || index >= conditions.size()) { _visitables.get("conditions").add(builder); conditions.add(builder); } else { _visitables.get("conditions").add(index, builder); conditions.add(index, builder);} + if (index < 0 || index >= conditions.size()) { + _visitables.get("conditions").add(builder); + conditions.add(builder); + } else { + _visitables.get("conditions").add(builder); + conditions.add(index, builder); + } return (A)this; } public A setToConditions(int index,V1PersistentVolumeClaimCondition item) { if (this.conditions == null) {this.conditions = new ArrayList();} V1PersistentVolumeClaimConditionBuilder builder = new V1PersistentVolumeClaimConditionBuilder(item); - if (index < 0 || index >= conditions.size()) { _visitables.get("conditions").add(builder); conditions.add(builder); } else { _visitables.get("conditions").set(index, builder); conditions.set(index, builder);} + if (index < 0 || index >= conditions.size()) { + _visitables.get("conditions").add(builder); + conditions.add(builder); + } else { + _visitables.get("conditions").add(builder); + conditions.set(index, builder); + } return (A)this; } @@ -401,6 +417,59 @@ public ConditionsNested editMatchingCondition(Predicate withNewModifyVolumeStatus() { + return new ModifyVolumeStatusNested(null); + } + + public ModifyVolumeStatusNested withNewModifyVolumeStatusLike(V1ModifyVolumeStatus item) { + return new ModifyVolumeStatusNested(item); + } + + public ModifyVolumeStatusNested editModifyVolumeStatus() { + return withNewModifyVolumeStatusLike(java.util.Optional.ofNullable(buildModifyVolumeStatus()).orElse(null)); + } + + public ModifyVolumeStatusNested editOrNewModifyVolumeStatus() { + return withNewModifyVolumeStatusLike(java.util.Optional.ofNullable(buildModifyVolumeStatus()).orElse(new V1ModifyVolumeStatusBuilder().build())); + } + + public ModifyVolumeStatusNested editOrNewModifyVolumeStatusLike(V1ModifyVolumeStatus item) { + return withNewModifyVolumeStatusLike(java.util.Optional.ofNullable(buildModifyVolumeStatus()).orElse(item)); + } + public String getPhase() { return this.phase; } @@ -424,12 +493,14 @@ public boolean equals(Object o) { if (!java.util.Objects.equals(allocatedResources, that.allocatedResources)) return false; if (!java.util.Objects.equals(capacity, that.capacity)) return false; if (!java.util.Objects.equals(conditions, that.conditions)) return false; + if (!java.util.Objects.equals(currentVolumeAttributesClassName, that.currentVolumeAttributesClassName)) return false; + if (!java.util.Objects.equals(modifyVolumeStatus, that.modifyVolumeStatus)) return false; if (!java.util.Objects.equals(phase, that.phase)) return false; return true; } public int hashCode() { - return java.util.Objects.hash(accessModes, allocatedResourceStatuses, allocatedResources, capacity, conditions, phase, super.hashCode()); + return java.util.Objects.hash(accessModes, allocatedResourceStatuses, allocatedResources, capacity, conditions, currentVolumeAttributesClassName, modifyVolumeStatus, phase, super.hashCode()); } public String toString() { @@ -440,6 +511,8 @@ public String toString() { if (allocatedResources != null && !allocatedResources.isEmpty()) { sb.append("allocatedResources:"); sb.append(allocatedResources + ","); } if (capacity != null && !capacity.isEmpty()) { sb.append("capacity:"); sb.append(capacity + ","); } if (conditions != null && !conditions.isEmpty()) { sb.append("conditions:"); sb.append(conditions + ","); } + if (currentVolumeAttributesClassName != null) { sb.append("currentVolumeAttributesClassName:"); sb.append(currentVolumeAttributesClassName + ","); } + if (modifyVolumeStatus != null) { sb.append("modifyVolumeStatus:"); sb.append(modifyVolumeStatus + ","); } if (phase != null) { sb.append("phase:"); sb.append(phase); } sb.append("}"); return sb.toString(); @@ -461,6 +534,22 @@ public N endCondition() { } + } + public class ModifyVolumeStatusNested extends V1ModifyVolumeStatusFluent> implements Nested{ + ModifyVolumeStatusNested(V1ModifyVolumeStatus item) { + this.builder = new V1ModifyVolumeStatusBuilder(this, item); + } + V1ModifyVolumeStatusBuilder builder; + + public N and() { + return (N) V1PersistentVolumeClaimStatusFluent.this.withModifyVolumeStatus(builder.build()); + } + + public N endModifyVolumeStatus() { + return and(); + } + + } } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeListFluent.java index eb9515e68c..4f131ebd03 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeListFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeListFluent.java @@ -54,14 +54,26 @@ public boolean hasApiVersion() { public A addToItems(int index,V1PersistentVolume item) { if (this.items == null) {this.items = new ArrayList();} V1PersistentVolumeBuilder builder = new V1PersistentVolumeBuilder(item); - if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); items.add(builder); } else { _visitables.get("items").add(index, builder); items.add(index, builder);} + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.add(index, builder); + } return (A)this; } public A setToItems(int index,V1PersistentVolume item) { if (this.items == null) {this.items = new ArrayList();} V1PersistentVolumeBuilder builder = new V1PersistentVolumeBuilder(item); - if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); items.add(builder); } else { _visitables.get("items").set(index, builder); items.set(index, builder);} + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.set(index, builder); + } return (A)this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeSpecBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeSpecBuilder.java index 6f14dd603f..68520012ee 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeSpecBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeSpecBuilder.java @@ -51,6 +51,7 @@ public V1PersistentVolumeSpec build() { buildable.setScaleIO(fluent.buildScaleIO()); buildable.setStorageClassName(fluent.getStorageClassName()); buildable.setStorageos(fluent.buildStorageos()); + buildable.setVolumeAttributesClassName(fluent.getVolumeAttributesClassName()); buildable.setVolumeMode(fluent.getVolumeMode()); buildable.setVsphereVolume(fluent.buildVsphereVolume()); return buildable; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeSpecFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeSpecFluent.java index 62305e3aa2..862e5793e8 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeSpecFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeSpecFluent.java @@ -52,6 +52,7 @@ public V1PersistentVolumeSpecFluent(V1PersistentVolumeSpec instance) { private V1ScaleIOPersistentVolumeSourceBuilder scaleIO; private String storageClassName; private V1StorageOSPersistentVolumeSourceBuilder storageos; + private String volumeAttributesClassName; private String volumeMode; private V1VsphereVirtualDiskVolumeSourceBuilder vsphereVolume; @@ -86,6 +87,7 @@ protected void copyInstance(V1PersistentVolumeSpec instance) { this.withScaleIO(instance.getScaleIO()); this.withStorageClassName(instance.getStorageClassName()); this.withStorageos(instance.getStorageos()); + this.withVolumeAttributesClassName(instance.getVolumeAttributesClassName()); this.withVolumeMode(instance.getVolumeMode()); this.withVsphereVolume(instance.getVsphereVolume()); } @@ -1262,6 +1264,19 @@ public StorageosNested editOrNewStorageosLike(V1StorageOSPersistentVolumeSour return withNewStorageosLike(java.util.Optional.ofNullable(buildStorageos()).orElse(item)); } + public String getVolumeAttributesClassName() { + return this.volumeAttributesClassName; + } + + public A withVolumeAttributesClassName(String volumeAttributesClassName) { + this.volumeAttributesClassName = volumeAttributesClassName; + return (A) this; + } + + public boolean hasVolumeAttributesClassName() { + return this.volumeAttributesClassName != null; + } + public String getVolumeMode() { return this.volumeMode; } @@ -1348,13 +1363,14 @@ public boolean equals(Object o) { if (!java.util.Objects.equals(scaleIO, that.scaleIO)) return false; if (!java.util.Objects.equals(storageClassName, that.storageClassName)) return false; if (!java.util.Objects.equals(storageos, that.storageos)) return false; + if (!java.util.Objects.equals(volumeAttributesClassName, that.volumeAttributesClassName)) return false; if (!java.util.Objects.equals(volumeMode, that.volumeMode)) return false; if (!java.util.Objects.equals(vsphereVolume, that.vsphereVolume)) return false; return true; } public int hashCode() { - return java.util.Objects.hash(accessModes, awsElasticBlockStore, azureDisk, azureFile, capacity, cephfs, cinder, claimRef, csi, fc, flexVolume, flocker, gcePersistentDisk, glusterfs, hostPath, iscsi, local, mountOptions, nfs, nodeAffinity, persistentVolumeReclaimPolicy, photonPersistentDisk, portworxVolume, quobyte, rbd, scaleIO, storageClassName, storageos, volumeMode, vsphereVolume, super.hashCode()); + return java.util.Objects.hash(accessModes, awsElasticBlockStore, azureDisk, azureFile, capacity, cephfs, cinder, claimRef, csi, fc, flexVolume, flocker, gcePersistentDisk, glusterfs, hostPath, iscsi, local, mountOptions, nfs, nodeAffinity, persistentVolumeReclaimPolicy, photonPersistentDisk, portworxVolume, quobyte, rbd, scaleIO, storageClassName, storageos, volumeAttributesClassName, volumeMode, vsphereVolume, super.hashCode()); } public String toString() { @@ -1388,6 +1404,7 @@ public String toString() { if (scaleIO != null) { sb.append("scaleIO:"); sb.append(scaleIO + ","); } if (storageClassName != null) { sb.append("storageClassName:"); sb.append(storageClassName + ","); } if (storageos != null) { sb.append("storageos:"); sb.append(storageos + ","); } + if (volumeAttributesClassName != null) { sb.append("volumeAttributesClassName:"); sb.append(volumeAttributesClassName + ","); } if (volumeMode != null) { sb.append("volumeMode:"); sb.append(volumeMode + ","); } if (vsphereVolume != null) { sb.append("vsphereVolume:"); sb.append(vsphereVolume); } sb.append("}"); diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodAffinityFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodAffinityFluent.java index cc6eb345a5..244d13ab81 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodAffinityFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodAffinityFluent.java @@ -37,14 +37,26 @@ protected void copyInstance(V1PodAffinity instance) { public A addToPreferredDuringSchedulingIgnoredDuringExecution(int index,V1WeightedPodAffinityTerm item) { if (this.preferredDuringSchedulingIgnoredDuringExecution == null) {this.preferredDuringSchedulingIgnoredDuringExecution = new ArrayList();} V1WeightedPodAffinityTermBuilder builder = new V1WeightedPodAffinityTermBuilder(item); - if (index < 0 || index >= preferredDuringSchedulingIgnoredDuringExecution.size()) { _visitables.get("preferredDuringSchedulingIgnoredDuringExecution").add(builder); preferredDuringSchedulingIgnoredDuringExecution.add(builder); } else { _visitables.get("preferredDuringSchedulingIgnoredDuringExecution").add(index, builder); preferredDuringSchedulingIgnoredDuringExecution.add(index, builder);} + if (index < 0 || index >= preferredDuringSchedulingIgnoredDuringExecution.size()) { + _visitables.get("preferredDuringSchedulingIgnoredDuringExecution").add(builder); + preferredDuringSchedulingIgnoredDuringExecution.add(builder); + } else { + _visitables.get("preferredDuringSchedulingIgnoredDuringExecution").add(builder); + preferredDuringSchedulingIgnoredDuringExecution.add(index, builder); + } return (A)this; } public A setToPreferredDuringSchedulingIgnoredDuringExecution(int index,V1WeightedPodAffinityTerm item) { if (this.preferredDuringSchedulingIgnoredDuringExecution == null) {this.preferredDuringSchedulingIgnoredDuringExecution = new ArrayList();} V1WeightedPodAffinityTermBuilder builder = new V1WeightedPodAffinityTermBuilder(item); - if (index < 0 || index >= preferredDuringSchedulingIgnoredDuringExecution.size()) { _visitables.get("preferredDuringSchedulingIgnoredDuringExecution").add(builder); preferredDuringSchedulingIgnoredDuringExecution.add(builder); } else { _visitables.get("preferredDuringSchedulingIgnoredDuringExecution").set(index, builder); preferredDuringSchedulingIgnoredDuringExecution.set(index, builder);} + if (index < 0 || index >= preferredDuringSchedulingIgnoredDuringExecution.size()) { + _visitables.get("preferredDuringSchedulingIgnoredDuringExecution").add(builder); + preferredDuringSchedulingIgnoredDuringExecution.add(builder); + } else { + _visitables.get("preferredDuringSchedulingIgnoredDuringExecution").add(builder); + preferredDuringSchedulingIgnoredDuringExecution.set(index, builder); + } return (A)this; } @@ -188,14 +200,26 @@ public PreferredDuringSchedulingIgnoredDuringExecutionNested editMatchingPref public A addToRequiredDuringSchedulingIgnoredDuringExecution(int index,V1PodAffinityTerm item) { if (this.requiredDuringSchedulingIgnoredDuringExecution == null) {this.requiredDuringSchedulingIgnoredDuringExecution = new ArrayList();} V1PodAffinityTermBuilder builder = new V1PodAffinityTermBuilder(item); - if (index < 0 || index >= requiredDuringSchedulingIgnoredDuringExecution.size()) { _visitables.get("requiredDuringSchedulingIgnoredDuringExecution").add(builder); requiredDuringSchedulingIgnoredDuringExecution.add(builder); } else { _visitables.get("requiredDuringSchedulingIgnoredDuringExecution").add(index, builder); requiredDuringSchedulingIgnoredDuringExecution.add(index, builder);} + if (index < 0 || index >= requiredDuringSchedulingIgnoredDuringExecution.size()) { + _visitables.get("requiredDuringSchedulingIgnoredDuringExecution").add(builder); + requiredDuringSchedulingIgnoredDuringExecution.add(builder); + } else { + _visitables.get("requiredDuringSchedulingIgnoredDuringExecution").add(builder); + requiredDuringSchedulingIgnoredDuringExecution.add(index, builder); + } return (A)this; } public A setToRequiredDuringSchedulingIgnoredDuringExecution(int index,V1PodAffinityTerm item) { if (this.requiredDuringSchedulingIgnoredDuringExecution == null) {this.requiredDuringSchedulingIgnoredDuringExecution = new ArrayList();} V1PodAffinityTermBuilder builder = new V1PodAffinityTermBuilder(item); - if (index < 0 || index >= requiredDuringSchedulingIgnoredDuringExecution.size()) { _visitables.get("requiredDuringSchedulingIgnoredDuringExecution").add(builder); requiredDuringSchedulingIgnoredDuringExecution.add(builder); } else { _visitables.get("requiredDuringSchedulingIgnoredDuringExecution").set(index, builder); requiredDuringSchedulingIgnoredDuringExecution.set(index, builder);} + if (index < 0 || index >= requiredDuringSchedulingIgnoredDuringExecution.size()) { + _visitables.get("requiredDuringSchedulingIgnoredDuringExecution").add(builder); + requiredDuringSchedulingIgnoredDuringExecution.add(builder); + } else { + _visitables.get("requiredDuringSchedulingIgnoredDuringExecution").add(builder); + requiredDuringSchedulingIgnoredDuringExecution.set(index, builder); + } return (A)this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodAffinityTermBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodAffinityTermBuilder.java index 0a0b4f3c15..84699c1afe 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodAffinityTermBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodAffinityTermBuilder.java @@ -24,6 +24,8 @@ public V1PodAffinityTermBuilder(V1PodAffinityTerm instance) { public V1PodAffinityTerm build() { V1PodAffinityTerm buildable = new V1PodAffinityTerm(); buildable.setLabelSelector(fluent.buildLabelSelector()); + buildable.setMatchLabelKeys(fluent.getMatchLabelKeys()); + buildable.setMismatchLabelKeys(fluent.getMismatchLabelKeys()); buildable.setNamespaceSelector(fluent.buildNamespaceSelector()); buildable.setNamespaces(fluent.getNamespaces()); buildable.setTopologyKey(fluent.getTopologyKey()); diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodAffinityTermFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodAffinityTermFluent.java index 66d8f3993a..bfb6d3abcc 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodAffinityTermFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodAffinityTermFluent.java @@ -22,6 +22,8 @@ public V1PodAffinityTermFluent(V1PodAffinityTerm instance) { this.copyInstance(instance); } private V1LabelSelectorBuilder labelSelector; + private List matchLabelKeys; + private List mismatchLabelKeys; private V1LabelSelectorBuilder namespaceSelector; private List namespaces; private String topologyKey; @@ -30,6 +32,8 @@ protected void copyInstance(V1PodAffinityTerm instance) { instance = (instance != null ? instance : new V1PodAffinityTerm()); if (instance != null) { this.withLabelSelector(instance.getLabelSelector()); + this.withMatchLabelKeys(instance.getMatchLabelKeys()); + this.withMismatchLabelKeys(instance.getMismatchLabelKeys()); this.withNamespaceSelector(instance.getNamespaceSelector()); this.withNamespaces(instance.getNamespaces()); this.withTopologyKey(instance.getTopologyKey()); @@ -76,6 +80,194 @@ public LabelSelectorNested editOrNewLabelSelectorLike(V1LabelSelector item) { return withNewLabelSelectorLike(java.util.Optional.ofNullable(buildLabelSelector()).orElse(item)); } + public A addToMatchLabelKeys(int index,String item) { + if (this.matchLabelKeys == null) {this.matchLabelKeys = new ArrayList();} + this.matchLabelKeys.add(index, item); + return (A)this; + } + + public A setToMatchLabelKeys(int index,String item) { + if (this.matchLabelKeys == null) {this.matchLabelKeys = new ArrayList();} + this.matchLabelKeys.set(index, item); return (A)this; + } + + public A addToMatchLabelKeys(java.lang.String... items) { + if (this.matchLabelKeys == null) {this.matchLabelKeys = new ArrayList();} + for (String item : items) {this.matchLabelKeys.add(item);} return (A)this; + } + + public A addAllToMatchLabelKeys(Collection items) { + if (this.matchLabelKeys == null) {this.matchLabelKeys = new ArrayList();} + for (String item : items) {this.matchLabelKeys.add(item);} return (A)this; + } + + public A removeFromMatchLabelKeys(java.lang.String... items) { + if (this.matchLabelKeys == null) return (A)this; + for (String item : items) { this.matchLabelKeys.remove(item);} return (A)this; + } + + public A removeAllFromMatchLabelKeys(Collection items) { + if (this.matchLabelKeys == null) return (A)this; + for (String item : items) { this.matchLabelKeys.remove(item);} return (A)this; + } + + public List getMatchLabelKeys() { + return this.matchLabelKeys; + } + + public String getMatchLabelKey(int index) { + return this.matchLabelKeys.get(index); + } + + public String getFirstMatchLabelKey() { + return this.matchLabelKeys.get(0); + } + + public String getLastMatchLabelKey() { + return this.matchLabelKeys.get(matchLabelKeys.size() - 1); + } + + public String getMatchingMatchLabelKey(Predicate predicate) { + for (String item : matchLabelKeys) { + if (predicate.test(item)) { + return item; + } + } + return null; + } + + public boolean hasMatchingMatchLabelKey(Predicate predicate) { + for (String item : matchLabelKeys) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public A withMatchLabelKeys(List matchLabelKeys) { + if (matchLabelKeys != null) { + this.matchLabelKeys = new ArrayList(); + for (String item : matchLabelKeys) { + this.addToMatchLabelKeys(item); + } + } else { + this.matchLabelKeys = null; + } + return (A) this; + } + + public A withMatchLabelKeys(java.lang.String... matchLabelKeys) { + if (this.matchLabelKeys != null) { + this.matchLabelKeys.clear(); + _visitables.remove("matchLabelKeys"); + } + if (matchLabelKeys != null) { + for (String item : matchLabelKeys) { + this.addToMatchLabelKeys(item); + } + } + return (A) this; + } + + public boolean hasMatchLabelKeys() { + return this.matchLabelKeys != null && !this.matchLabelKeys.isEmpty(); + } + + public A addToMismatchLabelKeys(int index,String item) { + if (this.mismatchLabelKeys == null) {this.mismatchLabelKeys = new ArrayList();} + this.mismatchLabelKeys.add(index, item); + return (A)this; + } + + public A setToMismatchLabelKeys(int index,String item) { + if (this.mismatchLabelKeys == null) {this.mismatchLabelKeys = new ArrayList();} + this.mismatchLabelKeys.set(index, item); return (A)this; + } + + public A addToMismatchLabelKeys(java.lang.String... items) { + if (this.mismatchLabelKeys == null) {this.mismatchLabelKeys = new ArrayList();} + for (String item : items) {this.mismatchLabelKeys.add(item);} return (A)this; + } + + public A addAllToMismatchLabelKeys(Collection items) { + if (this.mismatchLabelKeys == null) {this.mismatchLabelKeys = new ArrayList();} + for (String item : items) {this.mismatchLabelKeys.add(item);} return (A)this; + } + + public A removeFromMismatchLabelKeys(java.lang.String... items) { + if (this.mismatchLabelKeys == null) return (A)this; + for (String item : items) { this.mismatchLabelKeys.remove(item);} return (A)this; + } + + public A removeAllFromMismatchLabelKeys(Collection items) { + if (this.mismatchLabelKeys == null) return (A)this; + for (String item : items) { this.mismatchLabelKeys.remove(item);} return (A)this; + } + + public List getMismatchLabelKeys() { + return this.mismatchLabelKeys; + } + + public String getMismatchLabelKey(int index) { + return this.mismatchLabelKeys.get(index); + } + + public String getFirstMismatchLabelKey() { + return this.mismatchLabelKeys.get(0); + } + + public String getLastMismatchLabelKey() { + return this.mismatchLabelKeys.get(mismatchLabelKeys.size() - 1); + } + + public String getMatchingMismatchLabelKey(Predicate predicate) { + for (String item : mismatchLabelKeys) { + if (predicate.test(item)) { + return item; + } + } + return null; + } + + public boolean hasMatchingMismatchLabelKey(Predicate predicate) { + for (String item : mismatchLabelKeys) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public A withMismatchLabelKeys(List mismatchLabelKeys) { + if (mismatchLabelKeys != null) { + this.mismatchLabelKeys = new ArrayList(); + for (String item : mismatchLabelKeys) { + this.addToMismatchLabelKeys(item); + } + } else { + this.mismatchLabelKeys = null; + } + return (A) this; + } + + public A withMismatchLabelKeys(java.lang.String... mismatchLabelKeys) { + if (this.mismatchLabelKeys != null) { + this.mismatchLabelKeys.clear(); + _visitables.remove("mismatchLabelKeys"); + } + if (mismatchLabelKeys != null) { + for (String item : mismatchLabelKeys) { + this.addToMismatchLabelKeys(item); + } + } + return (A) this; + } + + public boolean hasMismatchLabelKeys() { + return this.mismatchLabelKeys != null && !this.mismatchLabelKeys.isEmpty(); + } + public V1LabelSelector buildNamespaceSelector() { return this.namespaceSelector != null ? this.namespaceSelector.build() : null; } @@ -229,6 +421,8 @@ public boolean equals(Object o) { if (!super.equals(o)) return false; V1PodAffinityTermFluent that = (V1PodAffinityTermFluent) o; if (!java.util.Objects.equals(labelSelector, that.labelSelector)) return false; + if (!java.util.Objects.equals(matchLabelKeys, that.matchLabelKeys)) return false; + if (!java.util.Objects.equals(mismatchLabelKeys, that.mismatchLabelKeys)) return false; if (!java.util.Objects.equals(namespaceSelector, that.namespaceSelector)) return false; if (!java.util.Objects.equals(namespaces, that.namespaces)) return false; if (!java.util.Objects.equals(topologyKey, that.topologyKey)) return false; @@ -236,13 +430,15 @@ public boolean equals(Object o) { } public int hashCode() { - return java.util.Objects.hash(labelSelector, namespaceSelector, namespaces, topologyKey, super.hashCode()); + return java.util.Objects.hash(labelSelector, matchLabelKeys, mismatchLabelKeys, namespaceSelector, namespaces, topologyKey, super.hashCode()); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (labelSelector != null) { sb.append("labelSelector:"); sb.append(labelSelector + ","); } + if (matchLabelKeys != null && !matchLabelKeys.isEmpty()) { sb.append("matchLabelKeys:"); sb.append(matchLabelKeys + ","); } + if (mismatchLabelKeys != null && !mismatchLabelKeys.isEmpty()) { sb.append("mismatchLabelKeys:"); sb.append(mismatchLabelKeys + ","); } if (namespaceSelector != null) { sb.append("namespaceSelector:"); sb.append(namespaceSelector + ","); } if (namespaces != null && !namespaces.isEmpty()) { sb.append("namespaces:"); sb.append(namespaces + ","); } if (topologyKey != null) { sb.append("topologyKey:"); sb.append(topologyKey); } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodAntiAffinityFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodAntiAffinityFluent.java index 3aac0ffa99..52507283be 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodAntiAffinityFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodAntiAffinityFluent.java @@ -37,14 +37,26 @@ protected void copyInstance(V1PodAntiAffinity instance) { public A addToPreferredDuringSchedulingIgnoredDuringExecution(int index,V1WeightedPodAffinityTerm item) { if (this.preferredDuringSchedulingIgnoredDuringExecution == null) {this.preferredDuringSchedulingIgnoredDuringExecution = new ArrayList();} V1WeightedPodAffinityTermBuilder builder = new V1WeightedPodAffinityTermBuilder(item); - if (index < 0 || index >= preferredDuringSchedulingIgnoredDuringExecution.size()) { _visitables.get("preferredDuringSchedulingIgnoredDuringExecution").add(builder); preferredDuringSchedulingIgnoredDuringExecution.add(builder); } else { _visitables.get("preferredDuringSchedulingIgnoredDuringExecution").add(index, builder); preferredDuringSchedulingIgnoredDuringExecution.add(index, builder);} + if (index < 0 || index >= preferredDuringSchedulingIgnoredDuringExecution.size()) { + _visitables.get("preferredDuringSchedulingIgnoredDuringExecution").add(builder); + preferredDuringSchedulingIgnoredDuringExecution.add(builder); + } else { + _visitables.get("preferredDuringSchedulingIgnoredDuringExecution").add(builder); + preferredDuringSchedulingIgnoredDuringExecution.add(index, builder); + } return (A)this; } public A setToPreferredDuringSchedulingIgnoredDuringExecution(int index,V1WeightedPodAffinityTerm item) { if (this.preferredDuringSchedulingIgnoredDuringExecution == null) {this.preferredDuringSchedulingIgnoredDuringExecution = new ArrayList();} V1WeightedPodAffinityTermBuilder builder = new V1WeightedPodAffinityTermBuilder(item); - if (index < 0 || index >= preferredDuringSchedulingIgnoredDuringExecution.size()) { _visitables.get("preferredDuringSchedulingIgnoredDuringExecution").add(builder); preferredDuringSchedulingIgnoredDuringExecution.add(builder); } else { _visitables.get("preferredDuringSchedulingIgnoredDuringExecution").set(index, builder); preferredDuringSchedulingIgnoredDuringExecution.set(index, builder);} + if (index < 0 || index >= preferredDuringSchedulingIgnoredDuringExecution.size()) { + _visitables.get("preferredDuringSchedulingIgnoredDuringExecution").add(builder); + preferredDuringSchedulingIgnoredDuringExecution.add(builder); + } else { + _visitables.get("preferredDuringSchedulingIgnoredDuringExecution").add(builder); + preferredDuringSchedulingIgnoredDuringExecution.set(index, builder); + } return (A)this; } @@ -188,14 +200,26 @@ public PreferredDuringSchedulingIgnoredDuringExecutionNested editMatchingPref public A addToRequiredDuringSchedulingIgnoredDuringExecution(int index,V1PodAffinityTerm item) { if (this.requiredDuringSchedulingIgnoredDuringExecution == null) {this.requiredDuringSchedulingIgnoredDuringExecution = new ArrayList();} V1PodAffinityTermBuilder builder = new V1PodAffinityTermBuilder(item); - if (index < 0 || index >= requiredDuringSchedulingIgnoredDuringExecution.size()) { _visitables.get("requiredDuringSchedulingIgnoredDuringExecution").add(builder); requiredDuringSchedulingIgnoredDuringExecution.add(builder); } else { _visitables.get("requiredDuringSchedulingIgnoredDuringExecution").add(index, builder); requiredDuringSchedulingIgnoredDuringExecution.add(index, builder);} + if (index < 0 || index >= requiredDuringSchedulingIgnoredDuringExecution.size()) { + _visitables.get("requiredDuringSchedulingIgnoredDuringExecution").add(builder); + requiredDuringSchedulingIgnoredDuringExecution.add(builder); + } else { + _visitables.get("requiredDuringSchedulingIgnoredDuringExecution").add(builder); + requiredDuringSchedulingIgnoredDuringExecution.add(index, builder); + } return (A)this; } public A setToRequiredDuringSchedulingIgnoredDuringExecution(int index,V1PodAffinityTerm item) { if (this.requiredDuringSchedulingIgnoredDuringExecution == null) {this.requiredDuringSchedulingIgnoredDuringExecution = new ArrayList();} V1PodAffinityTermBuilder builder = new V1PodAffinityTermBuilder(item); - if (index < 0 || index >= requiredDuringSchedulingIgnoredDuringExecution.size()) { _visitables.get("requiredDuringSchedulingIgnoredDuringExecution").add(builder); requiredDuringSchedulingIgnoredDuringExecution.add(builder); } else { _visitables.get("requiredDuringSchedulingIgnoredDuringExecution").set(index, builder); requiredDuringSchedulingIgnoredDuringExecution.set(index, builder);} + if (index < 0 || index >= requiredDuringSchedulingIgnoredDuringExecution.size()) { + _visitables.get("requiredDuringSchedulingIgnoredDuringExecution").add(builder); + requiredDuringSchedulingIgnoredDuringExecution.add(builder); + } else { + _visitables.get("requiredDuringSchedulingIgnoredDuringExecution").add(builder); + requiredDuringSchedulingIgnoredDuringExecution.set(index, builder); + } return (A)this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodConditionBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodConditionBuilder.java index a3a2aa5fa9..fb10672317 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodConditionBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodConditionBuilder.java @@ -26,6 +26,7 @@ public V1PodCondition build() { buildable.setLastProbeTime(fluent.getLastProbeTime()); buildable.setLastTransitionTime(fluent.getLastTransitionTime()); buildable.setMessage(fluent.getMessage()); + buildable.setObservedGeneration(fluent.getObservedGeneration()); buildable.setReason(fluent.getReason()); buildable.setStatus(fluent.getStatus()); buildable.setType(fluent.getType()); diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodConditionFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodConditionFluent.java index 868088fa8f..b40a9d3048 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodConditionFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodConditionFluent.java @@ -3,6 +3,7 @@ import java.time.OffsetDateTime; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Long; import java.lang.Object; import java.lang.String; @@ -20,6 +21,7 @@ public V1PodConditionFluent(V1PodCondition instance) { private OffsetDateTime lastProbeTime; private OffsetDateTime lastTransitionTime; private String message; + private Long observedGeneration; private String reason; private String status; private String type; @@ -30,6 +32,7 @@ protected void copyInstance(V1PodCondition instance) { this.withLastProbeTime(instance.getLastProbeTime()); this.withLastTransitionTime(instance.getLastTransitionTime()); this.withMessage(instance.getMessage()); + this.withObservedGeneration(instance.getObservedGeneration()); this.withReason(instance.getReason()); this.withStatus(instance.getStatus()); this.withType(instance.getType()); @@ -75,6 +78,19 @@ public boolean hasMessage() { return this.message != null; } + public Long getObservedGeneration() { + return this.observedGeneration; + } + + public A withObservedGeneration(Long observedGeneration) { + this.observedGeneration = observedGeneration; + return (A) this; + } + + public boolean hasObservedGeneration() { + return this.observedGeneration != null; + } + public String getReason() { return this.reason; } @@ -122,6 +138,7 @@ public boolean equals(Object o) { if (!java.util.Objects.equals(lastProbeTime, that.lastProbeTime)) return false; if (!java.util.Objects.equals(lastTransitionTime, that.lastTransitionTime)) return false; if (!java.util.Objects.equals(message, that.message)) return false; + if (!java.util.Objects.equals(observedGeneration, that.observedGeneration)) return false; if (!java.util.Objects.equals(reason, that.reason)) return false; if (!java.util.Objects.equals(status, that.status)) return false; if (!java.util.Objects.equals(type, that.type)) return false; @@ -129,7 +146,7 @@ public boolean equals(Object o) { } public int hashCode() { - return java.util.Objects.hash(lastProbeTime, lastTransitionTime, message, reason, status, type, super.hashCode()); + return java.util.Objects.hash(lastProbeTime, lastTransitionTime, message, observedGeneration, reason, status, type, super.hashCode()); } public String toString() { @@ -138,6 +155,7 @@ public String toString() { if (lastProbeTime != null) { sb.append("lastProbeTime:"); sb.append(lastProbeTime + ","); } if (lastTransitionTime != null) { sb.append("lastTransitionTime:"); sb.append(lastTransitionTime + ","); } if (message != null) { sb.append("message:"); sb.append(message + ","); } + if (observedGeneration != null) { sb.append("observedGeneration:"); sb.append(observedGeneration + ","); } if (reason != null) { sb.append("reason:"); sb.append(reason + ","); } if (status != null) { sb.append("status:"); sb.append(status + ","); } if (type != null) { sb.append("type:"); sb.append(type); } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodDNSConfigFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodDNSConfigFluent.java index 41e77a98a3..9e6bbbabb7 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodDNSConfigFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodDNSConfigFluent.java @@ -133,14 +133,26 @@ public boolean hasNameservers() { public A addToOptions(int index,V1PodDNSConfigOption item) { if (this.options == null) {this.options = new ArrayList();} V1PodDNSConfigOptionBuilder builder = new V1PodDNSConfigOptionBuilder(item); - if (index < 0 || index >= options.size()) { _visitables.get("options").add(builder); options.add(builder); } else { _visitables.get("options").add(index, builder); options.add(index, builder);} + if (index < 0 || index >= options.size()) { + _visitables.get("options").add(builder); + options.add(builder); + } else { + _visitables.get("options").add(builder); + options.add(index, builder); + } return (A)this; } public A setToOptions(int index,V1PodDNSConfigOption item) { if (this.options == null) {this.options = new ArrayList();} V1PodDNSConfigOptionBuilder builder = new V1PodDNSConfigOptionBuilder(item); - if (index < 0 || index >= options.size()) { _visitables.get("options").add(builder); options.add(builder); } else { _visitables.get("options").set(index, builder); options.set(index, builder);} + if (index < 0 || index >= options.size()) { + _visitables.get("options").add(builder); + options.add(builder); + } else { + _visitables.get("options").add(builder); + options.set(index, builder); + } return (A)this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodDisruptionBudgetListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodDisruptionBudgetListFluent.java index 5711f32244..902d75ce54 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodDisruptionBudgetListFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodDisruptionBudgetListFluent.java @@ -54,14 +54,26 @@ public boolean hasApiVersion() { public A addToItems(int index,V1PodDisruptionBudget item) { if (this.items == null) {this.items = new ArrayList();} V1PodDisruptionBudgetBuilder builder = new V1PodDisruptionBudgetBuilder(item); - if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); items.add(builder); } else { _visitables.get("items").add(index, builder); items.add(index, builder);} + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.add(index, builder); + } return (A)this; } public A setToItems(int index,V1PodDisruptionBudget item) { if (this.items == null) {this.items = new ArrayList();} V1PodDisruptionBudgetBuilder builder = new V1PodDisruptionBudgetBuilder(item); - if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); items.add(builder); } else { _visitables.get("items").set(index, builder); items.set(index, builder);} + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.set(index, builder); + } return (A)this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodDisruptionBudgetStatusFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodDisruptionBudgetStatusFluent.java index 04a902e1b9..2fdb8cc684 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodDisruptionBudgetStatusFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodDisruptionBudgetStatusFluent.java @@ -52,14 +52,26 @@ protected void copyInstance(V1PodDisruptionBudgetStatus instance) { public A addToConditions(int index,V1Condition item) { if (this.conditions == null) {this.conditions = new ArrayList();} V1ConditionBuilder builder = new V1ConditionBuilder(item); - if (index < 0 || index >= conditions.size()) { _visitables.get("conditions").add(builder); conditions.add(builder); } else { _visitables.get("conditions").add(index, builder); conditions.add(index, builder);} + if (index < 0 || index >= conditions.size()) { + _visitables.get("conditions").add(builder); + conditions.add(builder); + } else { + _visitables.get("conditions").add(builder); + conditions.add(index, builder); + } return (A)this; } public A setToConditions(int index,V1Condition item) { if (this.conditions == null) {this.conditions = new ArrayList();} V1ConditionBuilder builder = new V1ConditionBuilder(item); - if (index < 0 || index >= conditions.size()) { _visitables.get("conditions").add(builder); conditions.add(builder); } else { _visitables.get("conditions").set(index, builder); conditions.set(index, builder);} + if (index < 0 || index >= conditions.size()) { + _visitables.get("conditions").add(builder); + conditions.add(builder); + } else { + _visitables.get("conditions").add(builder); + conditions.set(index, builder); + } return (A)this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodFailurePolicyFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodFailurePolicyFluent.java index b2411e2aec..2814b8708d 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodFailurePolicyFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodFailurePolicyFluent.java @@ -35,14 +35,26 @@ protected void copyInstance(V1PodFailurePolicy instance) { public A addToRules(int index,V1PodFailurePolicyRule item) { if (this.rules == null) {this.rules = new ArrayList();} V1PodFailurePolicyRuleBuilder builder = new V1PodFailurePolicyRuleBuilder(item); - if (index < 0 || index >= rules.size()) { _visitables.get("rules").add(builder); rules.add(builder); } else { _visitables.get("rules").add(index, builder); rules.add(index, builder);} + if (index < 0 || index >= rules.size()) { + _visitables.get("rules").add(builder); + rules.add(builder); + } else { + _visitables.get("rules").add(builder); + rules.add(index, builder); + } return (A)this; } public A setToRules(int index,V1PodFailurePolicyRule item) { if (this.rules == null) {this.rules = new ArrayList();} V1PodFailurePolicyRuleBuilder builder = new V1PodFailurePolicyRuleBuilder(item); - if (index < 0 || index >= rules.size()) { _visitables.get("rules").add(builder); rules.add(builder); } else { _visitables.get("rules").set(index, builder); rules.set(index, builder);} + if (index < 0 || index >= rules.size()) { + _visitables.get("rules").add(builder); + rules.add(builder); + } else { + _visitables.get("rules").add(builder); + rules.set(index, builder); + } return (A)this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodFailurePolicyRuleFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodFailurePolicyRuleFluent.java index 24d4475087..53ccb47072 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodFailurePolicyRuleFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodFailurePolicyRuleFluent.java @@ -92,14 +92,26 @@ public OnExitCodesNested editOrNewOnExitCodesLike(V1PodFailurePolicyOnExitCod public A addToOnPodConditions(int index,V1PodFailurePolicyOnPodConditionsPattern item) { if (this.onPodConditions == null) {this.onPodConditions = new ArrayList();} V1PodFailurePolicyOnPodConditionsPatternBuilder builder = new V1PodFailurePolicyOnPodConditionsPatternBuilder(item); - if (index < 0 || index >= onPodConditions.size()) { _visitables.get("onPodConditions").add(builder); onPodConditions.add(builder); } else { _visitables.get("onPodConditions").add(index, builder); onPodConditions.add(index, builder);} + if (index < 0 || index >= onPodConditions.size()) { + _visitables.get("onPodConditions").add(builder); + onPodConditions.add(builder); + } else { + _visitables.get("onPodConditions").add(builder); + onPodConditions.add(index, builder); + } return (A)this; } public A setToOnPodConditions(int index,V1PodFailurePolicyOnPodConditionsPattern item) { if (this.onPodConditions == null) {this.onPodConditions = new ArrayList();} V1PodFailurePolicyOnPodConditionsPatternBuilder builder = new V1PodFailurePolicyOnPodConditionsPatternBuilder(item); - if (index < 0 || index >= onPodConditions.size()) { _visitables.get("onPodConditions").add(builder); onPodConditions.add(builder); } else { _visitables.get("onPodConditions").set(index, builder); onPodConditions.set(index, builder);} + if (index < 0 || index >= onPodConditions.size()) { + _visitables.get("onPodConditions").add(builder); + onPodConditions.add(builder); + } else { + _visitables.get("onPodConditions").add(builder); + onPodConditions.set(index, builder); + } return (A)this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodListFluent.java index 077f935acb..95b09a5336 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodListFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodListFluent.java @@ -54,14 +54,26 @@ public boolean hasApiVersion() { public A addToItems(int index,V1Pod item) { if (this.items == null) {this.items = new ArrayList();} V1PodBuilder builder = new V1PodBuilder(item); - if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); items.add(builder); } else { _visitables.get("items").add(index, builder); items.add(index, builder);} + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.add(index, builder); + } return (A)this; } public A setToItems(int index,V1Pod item) { if (this.items == null) {this.items = new ArrayList();} V1PodBuilder builder = new V1PodBuilder(item); - if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); items.add(builder); } else { _visitables.get("items").set(index, builder); items.set(index, builder);} + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.set(index, builder); + } return (A)this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodResourceClaimBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodResourceClaimBuilder.java index f62e9b24cf..cdb1faab84 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodResourceClaimBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodResourceClaimBuilder.java @@ -24,7 +24,8 @@ public V1PodResourceClaimBuilder(V1PodResourceClaim instance) { public V1PodResourceClaim build() { V1PodResourceClaim buildable = new V1PodResourceClaim(); buildable.setName(fluent.getName()); - buildable.setSource(fluent.buildSource()); + buildable.setResourceClaimName(fluent.getResourceClaimName()); + buildable.setResourceClaimTemplateName(fluent.getResourceClaimTemplateName()); return buildable; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodResourceClaimFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodResourceClaimFluent.java index 06ea1764ec..aaa09f4f25 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodResourceClaimFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodResourceClaimFluent.java @@ -2,7 +2,6 @@ import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; -import io.kubernetes.client.fluent.Nested; import java.lang.Object; import java.lang.String; @@ -18,13 +17,15 @@ public V1PodResourceClaimFluent(V1PodResourceClaim instance) { this.copyInstance(instance); } private String name; - private V1ClaimSourceBuilder source; + private String resourceClaimName; + private String resourceClaimTemplateName; protected void copyInstance(V1PodResourceClaim instance) { instance = (instance != null ? instance : new V1PodResourceClaim()); if (instance != null) { this.withName(instance.getName()); - this.withSource(instance.getSource()); + this.withResourceClaimName(instance.getResourceClaimName()); + this.withResourceClaimTemplateName(instance.getResourceClaimTemplateName()); } } @@ -41,44 +42,30 @@ public boolean hasName() { return this.name != null; } - public V1ClaimSource buildSource() { - return this.source != null ? this.source.build() : null; + public String getResourceClaimName() { + return this.resourceClaimName; } - public A withSource(V1ClaimSource source) { - this._visitables.remove("source"); - if (source != null) { - this.source = new V1ClaimSourceBuilder(source); - this._visitables.get("source").add(this.source); - } else { - this.source = null; - this._visitables.get("source").remove(this.source); - } + public A withResourceClaimName(String resourceClaimName) { + this.resourceClaimName = resourceClaimName; return (A) this; } - public boolean hasSource() { - return this.source != null; + public boolean hasResourceClaimName() { + return this.resourceClaimName != null; } - public SourceNested withNewSource() { - return new SourceNested(null); + public String getResourceClaimTemplateName() { + return this.resourceClaimTemplateName; } - public SourceNested withNewSourceLike(V1ClaimSource item) { - return new SourceNested(item); - } - - public SourceNested editSource() { - return withNewSourceLike(java.util.Optional.ofNullable(buildSource()).orElse(null)); - } - - public SourceNested editOrNewSource() { - return withNewSourceLike(java.util.Optional.ofNullable(buildSource()).orElse(new V1ClaimSourceBuilder().build())); + public A withResourceClaimTemplateName(String resourceClaimTemplateName) { + this.resourceClaimTemplateName = resourceClaimTemplateName; + return (A) this; } - public SourceNested editOrNewSourceLike(V1ClaimSource item) { - return withNewSourceLike(java.util.Optional.ofNullable(buildSource()).orElse(item)); + public boolean hasResourceClaimTemplateName() { + return this.resourceClaimTemplateName != null; } public boolean equals(Object o) { @@ -87,37 +74,24 @@ public boolean equals(Object o) { if (!super.equals(o)) return false; V1PodResourceClaimFluent that = (V1PodResourceClaimFluent) o; if (!java.util.Objects.equals(name, that.name)) return false; - if (!java.util.Objects.equals(source, that.source)) return false; + if (!java.util.Objects.equals(resourceClaimName, that.resourceClaimName)) return false; + if (!java.util.Objects.equals(resourceClaimTemplateName, that.resourceClaimTemplateName)) return false; return true; } public int hashCode() { - return java.util.Objects.hash(name, source, super.hashCode()); + return java.util.Objects.hash(name, resourceClaimName, resourceClaimTemplateName, super.hashCode()); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (name != null) { sb.append("name:"); sb.append(name + ","); } - if (source != null) { sb.append("source:"); sb.append(source); } + if (resourceClaimName != null) { sb.append("resourceClaimName:"); sb.append(resourceClaimName + ","); } + if (resourceClaimTemplateName != null) { sb.append("resourceClaimTemplateName:"); sb.append(resourceClaimTemplateName); } sb.append("}"); return sb.toString(); } - public class SourceNested extends V1ClaimSourceFluent> implements Nested{ - SourceNested(V1ClaimSource item) { - this.builder = new V1ClaimSourceBuilder(this, item); - } - V1ClaimSourceBuilder builder; - - public N and() { - return (N) V1PodResourceClaimFluent.this.withSource(builder.build()); - } - - public N endSource() { - return and(); - } - - } } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodSecurityContextBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodSecurityContextBuilder.java index faaa06ad8a..2df7e39032 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodSecurityContextBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodSecurityContextBuilder.java @@ -23,14 +23,17 @@ public V1PodSecurityContextBuilder(V1PodSecurityContext instance) { public V1PodSecurityContext build() { V1PodSecurityContext buildable = new V1PodSecurityContext(); + buildable.setAppArmorProfile(fluent.buildAppArmorProfile()); buildable.setFsGroup(fluent.getFsGroup()); buildable.setFsGroupChangePolicy(fluent.getFsGroupChangePolicy()); buildable.setRunAsGroup(fluent.getRunAsGroup()); buildable.setRunAsNonRoot(fluent.getRunAsNonRoot()); buildable.setRunAsUser(fluent.getRunAsUser()); + buildable.setSeLinuxChangePolicy(fluent.getSeLinuxChangePolicy()); buildable.setSeLinuxOptions(fluent.buildSeLinuxOptions()); buildable.setSeccompProfile(fluent.buildSeccompProfile()); buildable.setSupplementalGroups(fluent.getSupplementalGroups()); + buildable.setSupplementalGroupsPolicy(fluent.getSupplementalGroupsPolicy()); buildable.setSysctls(fluent.buildSysctls()); buildable.setWindowsOptions(fluent.buildWindowsOptions()); return buildable; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodSecurityContextFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodSecurityContextFluent.java index e4998675fb..e7238c0f4d 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodSecurityContextFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodSecurityContextFluent.java @@ -25,33 +25,79 @@ public V1PodSecurityContextFluent() { public V1PodSecurityContextFluent(V1PodSecurityContext instance) { this.copyInstance(instance); } + private V1AppArmorProfileBuilder appArmorProfile; private Long fsGroup; private String fsGroupChangePolicy; private Long runAsGroup; private Boolean runAsNonRoot; private Long runAsUser; + private String seLinuxChangePolicy; private V1SELinuxOptionsBuilder seLinuxOptions; private V1SeccompProfileBuilder seccompProfile; private List supplementalGroups; + private String supplementalGroupsPolicy; private ArrayList sysctls; private V1WindowsSecurityContextOptionsBuilder windowsOptions; protected void copyInstance(V1PodSecurityContext instance) { instance = (instance != null ? instance : new V1PodSecurityContext()); if (instance != null) { + this.withAppArmorProfile(instance.getAppArmorProfile()); this.withFsGroup(instance.getFsGroup()); this.withFsGroupChangePolicy(instance.getFsGroupChangePolicy()); this.withRunAsGroup(instance.getRunAsGroup()); this.withRunAsNonRoot(instance.getRunAsNonRoot()); this.withRunAsUser(instance.getRunAsUser()); + this.withSeLinuxChangePolicy(instance.getSeLinuxChangePolicy()); this.withSeLinuxOptions(instance.getSeLinuxOptions()); this.withSeccompProfile(instance.getSeccompProfile()); this.withSupplementalGroups(instance.getSupplementalGroups()); + this.withSupplementalGroupsPolicy(instance.getSupplementalGroupsPolicy()); this.withSysctls(instance.getSysctls()); this.withWindowsOptions(instance.getWindowsOptions()); } } + public V1AppArmorProfile buildAppArmorProfile() { + return this.appArmorProfile != null ? this.appArmorProfile.build() : null; + } + + public A withAppArmorProfile(V1AppArmorProfile appArmorProfile) { + this._visitables.remove("appArmorProfile"); + if (appArmorProfile != null) { + this.appArmorProfile = new V1AppArmorProfileBuilder(appArmorProfile); + this._visitables.get("appArmorProfile").add(this.appArmorProfile); + } else { + this.appArmorProfile = null; + this._visitables.get("appArmorProfile").remove(this.appArmorProfile); + } + return (A) this; + } + + public boolean hasAppArmorProfile() { + return this.appArmorProfile != null; + } + + public AppArmorProfileNested withNewAppArmorProfile() { + return new AppArmorProfileNested(null); + } + + public AppArmorProfileNested withNewAppArmorProfileLike(V1AppArmorProfile item) { + return new AppArmorProfileNested(item); + } + + public AppArmorProfileNested editAppArmorProfile() { + return withNewAppArmorProfileLike(java.util.Optional.ofNullable(buildAppArmorProfile()).orElse(null)); + } + + public AppArmorProfileNested editOrNewAppArmorProfile() { + return withNewAppArmorProfileLike(java.util.Optional.ofNullable(buildAppArmorProfile()).orElse(new V1AppArmorProfileBuilder().build())); + } + + public AppArmorProfileNested editOrNewAppArmorProfileLike(V1AppArmorProfile item) { + return withNewAppArmorProfileLike(java.util.Optional.ofNullable(buildAppArmorProfile()).orElse(item)); + } + public Long getFsGroup() { return this.fsGroup; } @@ -117,6 +163,19 @@ public boolean hasRunAsUser() { return this.runAsUser != null; } + public String getSeLinuxChangePolicy() { + return this.seLinuxChangePolicy; + } + + public A withSeLinuxChangePolicy(String seLinuxChangePolicy) { + this.seLinuxChangePolicy = seLinuxChangePolicy; + return (A) this; + } + + public boolean hasSeLinuxChangePolicy() { + return this.seLinuxChangePolicy != null; + } + public V1SELinuxOptions buildSeLinuxOptions() { return this.seLinuxOptions != null ? this.seLinuxOptions.build() : null; } @@ -291,17 +350,42 @@ public boolean hasSupplementalGroups() { return this.supplementalGroups != null && !this.supplementalGroups.isEmpty(); } + public String getSupplementalGroupsPolicy() { + return this.supplementalGroupsPolicy; + } + + public A withSupplementalGroupsPolicy(String supplementalGroupsPolicy) { + this.supplementalGroupsPolicy = supplementalGroupsPolicy; + return (A) this; + } + + public boolean hasSupplementalGroupsPolicy() { + return this.supplementalGroupsPolicy != null; + } + public A addToSysctls(int index,V1Sysctl item) { if (this.sysctls == null) {this.sysctls = new ArrayList();} V1SysctlBuilder builder = new V1SysctlBuilder(item); - if (index < 0 || index >= sysctls.size()) { _visitables.get("sysctls").add(builder); sysctls.add(builder); } else { _visitables.get("sysctls").add(index, builder); sysctls.add(index, builder);} + if (index < 0 || index >= sysctls.size()) { + _visitables.get("sysctls").add(builder); + sysctls.add(builder); + } else { + _visitables.get("sysctls").add(builder); + sysctls.add(index, builder); + } return (A)this; } public A setToSysctls(int index,V1Sysctl item) { if (this.sysctls == null) {this.sysctls = new ArrayList();} V1SysctlBuilder builder = new V1SysctlBuilder(item); - if (index < 0 || index >= sysctls.size()) { _visitables.get("sysctls").add(builder); sysctls.add(builder); } else { _visitables.get("sysctls").set(index, builder); sysctls.set(index, builder);} + if (index < 0 || index >= sysctls.size()) { + _visitables.get("sysctls").add(builder); + sysctls.add(builder); + } else { + _visitables.get("sysctls").add(builder); + sysctls.set(index, builder); + } return (A)this; } @@ -487,34 +571,40 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) return false; if (!super.equals(o)) return false; V1PodSecurityContextFluent that = (V1PodSecurityContextFluent) o; + if (!java.util.Objects.equals(appArmorProfile, that.appArmorProfile)) return false; if (!java.util.Objects.equals(fsGroup, that.fsGroup)) return false; if (!java.util.Objects.equals(fsGroupChangePolicy, that.fsGroupChangePolicy)) return false; if (!java.util.Objects.equals(runAsGroup, that.runAsGroup)) return false; if (!java.util.Objects.equals(runAsNonRoot, that.runAsNonRoot)) return false; if (!java.util.Objects.equals(runAsUser, that.runAsUser)) return false; + if (!java.util.Objects.equals(seLinuxChangePolicy, that.seLinuxChangePolicy)) return false; if (!java.util.Objects.equals(seLinuxOptions, that.seLinuxOptions)) return false; if (!java.util.Objects.equals(seccompProfile, that.seccompProfile)) return false; if (!java.util.Objects.equals(supplementalGroups, that.supplementalGroups)) return false; + if (!java.util.Objects.equals(supplementalGroupsPolicy, that.supplementalGroupsPolicy)) return false; if (!java.util.Objects.equals(sysctls, that.sysctls)) return false; if (!java.util.Objects.equals(windowsOptions, that.windowsOptions)) return false; return true; } public int hashCode() { - return java.util.Objects.hash(fsGroup, fsGroupChangePolicy, runAsGroup, runAsNonRoot, runAsUser, seLinuxOptions, seccompProfile, supplementalGroups, sysctls, windowsOptions, super.hashCode()); + return java.util.Objects.hash(appArmorProfile, fsGroup, fsGroupChangePolicy, runAsGroup, runAsNonRoot, runAsUser, seLinuxChangePolicy, seLinuxOptions, seccompProfile, supplementalGroups, supplementalGroupsPolicy, sysctls, windowsOptions, super.hashCode()); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); + if (appArmorProfile != null) { sb.append("appArmorProfile:"); sb.append(appArmorProfile + ","); } if (fsGroup != null) { sb.append("fsGroup:"); sb.append(fsGroup + ","); } if (fsGroupChangePolicy != null) { sb.append("fsGroupChangePolicy:"); sb.append(fsGroupChangePolicy + ","); } if (runAsGroup != null) { sb.append("runAsGroup:"); sb.append(runAsGroup + ","); } if (runAsNonRoot != null) { sb.append("runAsNonRoot:"); sb.append(runAsNonRoot + ","); } if (runAsUser != null) { sb.append("runAsUser:"); sb.append(runAsUser + ","); } + if (seLinuxChangePolicy != null) { sb.append("seLinuxChangePolicy:"); sb.append(seLinuxChangePolicy + ","); } if (seLinuxOptions != null) { sb.append("seLinuxOptions:"); sb.append(seLinuxOptions + ","); } if (seccompProfile != null) { sb.append("seccompProfile:"); sb.append(seccompProfile + ","); } if (supplementalGroups != null && !supplementalGroups.isEmpty()) { sb.append("supplementalGroups:"); sb.append(supplementalGroups + ","); } + if (supplementalGroupsPolicy != null) { sb.append("supplementalGroupsPolicy:"); sb.append(supplementalGroupsPolicy + ","); } if (sysctls != null && !sysctls.isEmpty()) { sb.append("sysctls:"); sb.append(sysctls + ","); } if (windowsOptions != null) { sb.append("windowsOptions:"); sb.append(windowsOptions); } sb.append("}"); @@ -523,6 +613,22 @@ public String toString() { public A withRunAsNonRoot() { return withRunAsNonRoot(true); + } + public class AppArmorProfileNested extends V1AppArmorProfileFluent> implements Nested{ + AppArmorProfileNested(V1AppArmorProfile item) { + this.builder = new V1AppArmorProfileBuilder(this, item); + } + V1AppArmorProfileBuilder builder; + + public N and() { + return (N) V1PodSecurityContextFluent.this.withAppArmorProfile(builder.build()); + } + + public N endAppArmorProfile() { + return and(); + } + + } public class SeLinuxOptionsNested extends V1SELinuxOptionsFluent> implements Nested{ SeLinuxOptionsNested(V1SELinuxOptions item) { diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodSpecBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodSpecBuilder.java index 50fd9c7dff..982633dfbb 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodSpecBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodSpecBuilder.java @@ -48,6 +48,7 @@ public V1PodSpec build() { buildable.setPriorityClassName(fluent.getPriorityClassName()); buildable.setReadinessGates(fluent.buildReadinessGates()); buildable.setResourceClaims(fluent.buildResourceClaims()); + buildable.setResources(fluent.buildResources()); buildable.setRestartPolicy(fluent.getRestartPolicy()); buildable.setRuntimeClassName(fluent.getRuntimeClassName()); buildable.setSchedulerName(fluent.getSchedulerName()); diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodSpecFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodSpecFluent.java index b3441c3d24..0b34784176 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodSpecFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodSpecFluent.java @@ -54,6 +54,7 @@ public V1PodSpecFluent(V1PodSpec instance) { private String priorityClassName; private ArrayList readinessGates; private ArrayList resourceClaims; + private V1ResourceRequirementsBuilder resources; private String restartPolicy; private String runtimeClassName; private String schedulerName; @@ -97,6 +98,7 @@ protected void copyInstance(V1PodSpec instance) { this.withPriorityClassName(instance.getPriorityClassName()); this.withReadinessGates(instance.getReadinessGates()); this.withResourceClaims(instance.getResourceClaims()); + this.withResources(instance.getResources()); this.withRestartPolicy(instance.getRestartPolicy()); this.withRuntimeClassName(instance.getRuntimeClassName()); this.withSchedulerName(instance.getSchedulerName()); @@ -183,14 +185,26 @@ public boolean hasAutomountServiceAccountToken() { public A addToContainers(int index,V1Container item) { if (this.containers == null) {this.containers = new ArrayList();} V1ContainerBuilder builder = new V1ContainerBuilder(item); - if (index < 0 || index >= containers.size()) { _visitables.get("containers").add(builder); containers.add(builder); } else { _visitables.get("containers").add(index, builder); containers.add(index, builder);} + if (index < 0 || index >= containers.size()) { + _visitables.get("containers").add(builder); + containers.add(builder); + } else { + _visitables.get("containers").add(builder); + containers.add(index, builder); + } return (A)this; } public A setToContainers(int index,V1Container item) { if (this.containers == null) {this.containers = new ArrayList();} V1ContainerBuilder builder = new V1ContainerBuilder(item); - if (index < 0 || index >= containers.size()) { _visitables.get("containers").add(builder); containers.add(builder); } else { _visitables.get("containers").set(index, builder); containers.set(index, builder);} + if (index < 0 || index >= containers.size()) { + _visitables.get("containers").add(builder); + containers.add(builder); + } else { + _visitables.get("containers").add(builder); + containers.set(index, builder); + } return (A)this; } @@ -400,14 +414,26 @@ public boolean hasEnableServiceLinks() { public A addToEphemeralContainers(int index,V1EphemeralContainer item) { if (this.ephemeralContainers == null) {this.ephemeralContainers = new ArrayList();} V1EphemeralContainerBuilder builder = new V1EphemeralContainerBuilder(item); - if (index < 0 || index >= ephemeralContainers.size()) { _visitables.get("ephemeralContainers").add(builder); ephemeralContainers.add(builder); } else { _visitables.get("ephemeralContainers").add(index, builder); ephemeralContainers.add(index, builder);} + if (index < 0 || index >= ephemeralContainers.size()) { + _visitables.get("ephemeralContainers").add(builder); + ephemeralContainers.add(builder); + } else { + _visitables.get("ephemeralContainers").add(builder); + ephemeralContainers.add(index, builder); + } return (A)this; } public A setToEphemeralContainers(int index,V1EphemeralContainer item) { if (this.ephemeralContainers == null) {this.ephemeralContainers = new ArrayList();} V1EphemeralContainerBuilder builder = new V1EphemeralContainerBuilder(item); - if (index < 0 || index >= ephemeralContainers.size()) { _visitables.get("ephemeralContainers").add(builder); ephemeralContainers.add(builder); } else { _visitables.get("ephemeralContainers").set(index, builder); ephemeralContainers.set(index, builder);} + if (index < 0 || index >= ephemeralContainers.size()) { + _visitables.get("ephemeralContainers").add(builder); + ephemeralContainers.add(builder); + } else { + _visitables.get("ephemeralContainers").add(builder); + ephemeralContainers.set(index, builder); + } return (A)this; } @@ -551,14 +577,26 @@ public EphemeralContainersNested editMatchingEphemeralContainer(Predicate();} V1HostAliasBuilder builder = new V1HostAliasBuilder(item); - if (index < 0 || index >= hostAliases.size()) { _visitables.get("hostAliases").add(builder); hostAliases.add(builder); } else { _visitables.get("hostAliases").add(index, builder); hostAliases.add(index, builder);} + if (index < 0 || index >= hostAliases.size()) { + _visitables.get("hostAliases").add(builder); + hostAliases.add(builder); + } else { + _visitables.get("hostAliases").add(builder); + hostAliases.add(index, builder); + } return (A)this; } public A setToHostAliases(int index,V1HostAlias item) { if (this.hostAliases == null) {this.hostAliases = new ArrayList();} V1HostAliasBuilder builder = new V1HostAliasBuilder(item); - if (index < 0 || index >= hostAliases.size()) { _visitables.get("hostAliases").add(builder); hostAliases.add(builder); } else { _visitables.get("hostAliases").set(index, builder); hostAliases.set(index, builder);} + if (index < 0 || index >= hostAliases.size()) { + _visitables.get("hostAliases").add(builder); + hostAliases.add(builder); + } else { + _visitables.get("hostAliases").add(builder); + hostAliases.set(index, builder); + } return (A)this; } @@ -767,14 +805,26 @@ public boolean hasHostname() { public A addToImagePullSecrets(int index,V1LocalObjectReference item) { if (this.imagePullSecrets == null) {this.imagePullSecrets = new ArrayList();} V1LocalObjectReferenceBuilder builder = new V1LocalObjectReferenceBuilder(item); - if (index < 0 || index >= imagePullSecrets.size()) { _visitables.get("imagePullSecrets").add(builder); imagePullSecrets.add(builder); } else { _visitables.get("imagePullSecrets").add(index, builder); imagePullSecrets.add(index, builder);} + if (index < 0 || index >= imagePullSecrets.size()) { + _visitables.get("imagePullSecrets").add(builder); + imagePullSecrets.add(builder); + } else { + _visitables.get("imagePullSecrets").add(builder); + imagePullSecrets.add(index, builder); + } return (A)this; } public A setToImagePullSecrets(int index,V1LocalObjectReference item) { if (this.imagePullSecrets == null) {this.imagePullSecrets = new ArrayList();} V1LocalObjectReferenceBuilder builder = new V1LocalObjectReferenceBuilder(item); - if (index < 0 || index >= imagePullSecrets.size()) { _visitables.get("imagePullSecrets").add(builder); imagePullSecrets.add(builder); } else { _visitables.get("imagePullSecrets").set(index, builder); imagePullSecrets.set(index, builder);} + if (index < 0 || index >= imagePullSecrets.size()) { + _visitables.get("imagePullSecrets").add(builder); + imagePullSecrets.add(builder); + } else { + _visitables.get("imagePullSecrets").add(builder); + imagePullSecrets.set(index, builder); + } return (A)this; } @@ -918,14 +968,26 @@ public ImagePullSecretsNested editMatchingImagePullSecret(Predicate();} V1ContainerBuilder builder = new V1ContainerBuilder(item); - if (index < 0 || index >= initContainers.size()) { _visitables.get("initContainers").add(builder); initContainers.add(builder); } else { _visitables.get("initContainers").add(index, builder); initContainers.add(index, builder);} + if (index < 0 || index >= initContainers.size()) { + _visitables.get("initContainers").add(builder); + initContainers.add(builder); + } else { + _visitables.get("initContainers").add(builder); + initContainers.add(index, builder); + } return (A)this; } public A setToInitContainers(int index,V1Container item) { if (this.initContainers == null) {this.initContainers = new ArrayList();} V1ContainerBuilder builder = new V1ContainerBuilder(item); - if (index < 0 || index >= initContainers.size()) { _visitables.get("initContainers").add(builder); initContainers.add(builder); } else { _visitables.get("initContainers").set(index, builder); initContainers.set(index, builder);} + if (index < 0 || index >= initContainers.size()) { + _visitables.get("initContainers").add(builder); + initContainers.add(builder); + } else { + _visitables.get("initContainers").add(builder); + initContainers.set(index, builder); + } return (A)this; } @@ -1235,14 +1297,26 @@ public boolean hasPriorityClassName() { public A addToReadinessGates(int index,V1PodReadinessGate item) { if (this.readinessGates == null) {this.readinessGates = new ArrayList();} V1PodReadinessGateBuilder builder = new V1PodReadinessGateBuilder(item); - if (index < 0 || index >= readinessGates.size()) { _visitables.get("readinessGates").add(builder); readinessGates.add(builder); } else { _visitables.get("readinessGates").add(index, builder); readinessGates.add(index, builder);} + if (index < 0 || index >= readinessGates.size()) { + _visitables.get("readinessGates").add(builder); + readinessGates.add(builder); + } else { + _visitables.get("readinessGates").add(builder); + readinessGates.add(index, builder); + } return (A)this; } public A setToReadinessGates(int index,V1PodReadinessGate item) { if (this.readinessGates == null) {this.readinessGates = new ArrayList();} V1PodReadinessGateBuilder builder = new V1PodReadinessGateBuilder(item); - if (index < 0 || index >= readinessGates.size()) { _visitables.get("readinessGates").add(builder); readinessGates.add(builder); } else { _visitables.get("readinessGates").set(index, builder); readinessGates.set(index, builder);} + if (index < 0 || index >= readinessGates.size()) { + _visitables.get("readinessGates").add(builder); + readinessGates.add(builder); + } else { + _visitables.get("readinessGates").add(builder); + readinessGates.set(index, builder); + } return (A)this; } @@ -1386,14 +1460,26 @@ public ReadinessGatesNested editMatchingReadinessGate(Predicate();} V1PodResourceClaimBuilder builder = new V1PodResourceClaimBuilder(item); - if (index < 0 || index >= resourceClaims.size()) { _visitables.get("resourceClaims").add(builder); resourceClaims.add(builder); } else { _visitables.get("resourceClaims").add(index, builder); resourceClaims.add(index, builder);} + if (index < 0 || index >= resourceClaims.size()) { + _visitables.get("resourceClaims").add(builder); + resourceClaims.add(builder); + } else { + _visitables.get("resourceClaims").add(builder); + resourceClaims.add(index, builder); + } return (A)this; } public A setToResourceClaims(int index,V1PodResourceClaim item) { if (this.resourceClaims == null) {this.resourceClaims = new ArrayList();} V1PodResourceClaimBuilder builder = new V1PodResourceClaimBuilder(item); - if (index < 0 || index >= resourceClaims.size()) { _visitables.get("resourceClaims").add(builder); resourceClaims.add(builder); } else { _visitables.get("resourceClaims").set(index, builder); resourceClaims.set(index, builder);} + if (index < 0 || index >= resourceClaims.size()) { + _visitables.get("resourceClaims").add(builder); + resourceClaims.add(builder); + } else { + _visitables.get("resourceClaims").add(builder); + resourceClaims.set(index, builder); + } return (A)this; } @@ -1534,6 +1620,46 @@ public ResourceClaimsNested editMatchingResourceClaim(Predicate withNewResources() { + return new ResourcesNested(null); + } + + public ResourcesNested withNewResourcesLike(V1ResourceRequirements item) { + return new ResourcesNested(item); + } + + public ResourcesNested editResources() { + return withNewResourcesLike(java.util.Optional.ofNullable(buildResources()).orElse(null)); + } + + public ResourcesNested editOrNewResources() { + return withNewResourcesLike(java.util.Optional.ofNullable(buildResources()).orElse(new V1ResourceRequirementsBuilder().build())); + } + + public ResourcesNested editOrNewResourcesLike(V1ResourceRequirements item) { + return withNewResourcesLike(java.util.Optional.ofNullable(buildResources()).orElse(item)); + } + public String getRestartPolicy() { return this.restartPolicy; } @@ -1576,14 +1702,26 @@ public boolean hasSchedulerName() { public A addToSchedulingGates(int index,V1PodSchedulingGate item) { if (this.schedulingGates == null) {this.schedulingGates = new ArrayList();} V1PodSchedulingGateBuilder builder = new V1PodSchedulingGateBuilder(item); - if (index < 0 || index >= schedulingGates.size()) { _visitables.get("schedulingGates").add(builder); schedulingGates.add(builder); } else { _visitables.get("schedulingGates").add(index, builder); schedulingGates.add(index, builder);} + if (index < 0 || index >= schedulingGates.size()) { + _visitables.get("schedulingGates").add(builder); + schedulingGates.add(builder); + } else { + _visitables.get("schedulingGates").add(builder); + schedulingGates.add(index, builder); + } return (A)this; } public A setToSchedulingGates(int index,V1PodSchedulingGate item) { if (this.schedulingGates == null) {this.schedulingGates = new ArrayList();} V1PodSchedulingGateBuilder builder = new V1PodSchedulingGateBuilder(item); - if (index < 0 || index >= schedulingGates.size()) { _visitables.get("schedulingGates").add(builder); schedulingGates.add(builder); } else { _visitables.get("schedulingGates").set(index, builder); schedulingGates.set(index, builder);} + if (index < 0 || index >= schedulingGates.size()) { + _visitables.get("schedulingGates").add(builder); + schedulingGates.add(builder); + } else { + _visitables.get("schedulingGates").add(builder); + schedulingGates.set(index, builder); + } return (A)this; } @@ -1845,14 +1983,26 @@ public boolean hasTerminationGracePeriodSeconds() { public A addToTolerations(int index,V1Toleration item) { if (this.tolerations == null) {this.tolerations = new ArrayList();} V1TolerationBuilder builder = new V1TolerationBuilder(item); - if (index < 0 || index >= tolerations.size()) { _visitables.get("tolerations").add(builder); tolerations.add(builder); } else { _visitables.get("tolerations").add(index, builder); tolerations.add(index, builder);} + if (index < 0 || index >= tolerations.size()) { + _visitables.get("tolerations").add(builder); + tolerations.add(builder); + } else { + _visitables.get("tolerations").add(builder); + tolerations.add(index, builder); + } return (A)this; } public A setToTolerations(int index,V1Toleration item) { if (this.tolerations == null) {this.tolerations = new ArrayList();} V1TolerationBuilder builder = new V1TolerationBuilder(item); - if (index < 0 || index >= tolerations.size()) { _visitables.get("tolerations").add(builder); tolerations.add(builder); } else { _visitables.get("tolerations").set(index, builder); tolerations.set(index, builder);} + if (index < 0 || index >= tolerations.size()) { + _visitables.get("tolerations").add(builder); + tolerations.add(builder); + } else { + _visitables.get("tolerations").add(builder); + tolerations.set(index, builder); + } return (A)this; } @@ -1996,14 +2146,26 @@ public TolerationsNested editMatchingToleration(Predicate();} V1TopologySpreadConstraintBuilder builder = new V1TopologySpreadConstraintBuilder(item); - if (index < 0 || index >= topologySpreadConstraints.size()) { _visitables.get("topologySpreadConstraints").add(builder); topologySpreadConstraints.add(builder); } else { _visitables.get("topologySpreadConstraints").add(index, builder); topologySpreadConstraints.add(index, builder);} + if (index < 0 || index >= topologySpreadConstraints.size()) { + _visitables.get("topologySpreadConstraints").add(builder); + topologySpreadConstraints.add(builder); + } else { + _visitables.get("topologySpreadConstraints").add(builder); + topologySpreadConstraints.add(index, builder); + } return (A)this; } public A setToTopologySpreadConstraints(int index,V1TopologySpreadConstraint item) { if (this.topologySpreadConstraints == null) {this.topologySpreadConstraints = new ArrayList();} V1TopologySpreadConstraintBuilder builder = new V1TopologySpreadConstraintBuilder(item); - if (index < 0 || index >= topologySpreadConstraints.size()) { _visitables.get("topologySpreadConstraints").add(builder); topologySpreadConstraints.add(builder); } else { _visitables.get("topologySpreadConstraints").set(index, builder); topologySpreadConstraints.set(index, builder);} + if (index < 0 || index >= topologySpreadConstraints.size()) { + _visitables.get("topologySpreadConstraints").add(builder); + topologySpreadConstraints.add(builder); + } else { + _visitables.get("topologySpreadConstraints").add(builder); + topologySpreadConstraints.set(index, builder); + } return (A)this; } @@ -2147,14 +2309,26 @@ public TopologySpreadConstraintsNested editMatchingTopologySpreadConstraint(P public A addToVolumes(int index,V1Volume item) { if (this.volumes == null) {this.volumes = new ArrayList();} V1VolumeBuilder builder = new V1VolumeBuilder(item); - if (index < 0 || index >= volumes.size()) { _visitables.get("volumes").add(builder); volumes.add(builder); } else { _visitables.get("volumes").add(index, builder); volumes.add(index, builder);} + if (index < 0 || index >= volumes.size()) { + _visitables.get("volumes").add(builder); + volumes.add(builder); + } else { + _visitables.get("volumes").add(builder); + volumes.add(index, builder); + } return (A)this; } public A setToVolumes(int index,V1Volume item) { if (this.volumes == null) {this.volumes = new ArrayList();} V1VolumeBuilder builder = new V1VolumeBuilder(item); - if (index < 0 || index >= volumes.size()) { _visitables.get("volumes").add(builder); volumes.add(builder); } else { _visitables.get("volumes").set(index, builder); volumes.set(index, builder);} + if (index < 0 || index >= volumes.size()) { + _visitables.get("volumes").add(builder); + volumes.add(builder); + } else { + _visitables.get("volumes").add(builder); + volumes.set(index, builder); + } return (A)this; } @@ -2325,6 +2499,7 @@ public boolean equals(Object o) { if (!java.util.Objects.equals(priorityClassName, that.priorityClassName)) return false; if (!java.util.Objects.equals(readinessGates, that.readinessGates)) return false; if (!java.util.Objects.equals(resourceClaims, that.resourceClaims)) return false; + if (!java.util.Objects.equals(resources, that.resources)) return false; if (!java.util.Objects.equals(restartPolicy, that.restartPolicy)) return false; if (!java.util.Objects.equals(runtimeClassName, that.runtimeClassName)) return false; if (!java.util.Objects.equals(schedulerName, that.schedulerName)) return false; @@ -2343,7 +2518,7 @@ public boolean equals(Object o) { } public int hashCode() { - return java.util.Objects.hash(activeDeadlineSeconds, affinity, automountServiceAccountToken, containers, dnsConfig, dnsPolicy, enableServiceLinks, ephemeralContainers, hostAliases, hostIPC, hostNetwork, hostPID, hostUsers, hostname, imagePullSecrets, initContainers, nodeName, nodeSelector, os, overhead, preemptionPolicy, priority, priorityClassName, readinessGates, resourceClaims, restartPolicy, runtimeClassName, schedulerName, schedulingGates, securityContext, serviceAccount, serviceAccountName, setHostnameAsFQDN, shareProcessNamespace, subdomain, terminationGracePeriodSeconds, tolerations, topologySpreadConstraints, volumes, super.hashCode()); + return java.util.Objects.hash(activeDeadlineSeconds, affinity, automountServiceAccountToken, containers, dnsConfig, dnsPolicy, enableServiceLinks, ephemeralContainers, hostAliases, hostIPC, hostNetwork, hostPID, hostUsers, hostname, imagePullSecrets, initContainers, nodeName, nodeSelector, os, overhead, preemptionPolicy, priority, priorityClassName, readinessGates, resourceClaims, resources, restartPolicy, runtimeClassName, schedulerName, schedulingGates, securityContext, serviceAccount, serviceAccountName, setHostnameAsFQDN, shareProcessNamespace, subdomain, terminationGracePeriodSeconds, tolerations, topologySpreadConstraints, volumes, super.hashCode()); } public String toString() { @@ -2374,6 +2549,7 @@ public String toString() { if (priorityClassName != null) { sb.append("priorityClassName:"); sb.append(priorityClassName + ","); } if (readinessGates != null && !readinessGates.isEmpty()) { sb.append("readinessGates:"); sb.append(readinessGates + ","); } if (resourceClaims != null && !resourceClaims.isEmpty()) { sb.append("resourceClaims:"); sb.append(resourceClaims + ","); } + if (resources != null) { sb.append("resources:"); sb.append(resources + ","); } if (restartPolicy != null) { sb.append("restartPolicy:"); sb.append(restartPolicy + ","); } if (runtimeClassName != null) { sb.append("runtimeClassName:"); sb.append(runtimeClassName + ","); } if (schedulerName != null) { sb.append("schedulerName:"); sb.append(schedulerName + ","); } @@ -2596,6 +2772,22 @@ public N endResourceClaim() { } + } + public class ResourcesNested extends V1ResourceRequirementsFluent> implements Nested{ + ResourcesNested(V1ResourceRequirements item) { + this.builder = new V1ResourceRequirementsBuilder(this, item); + } + V1ResourceRequirementsBuilder builder; + + public N and() { + return (N) V1PodSpecFluent.this.withResources(builder.build()); + } + + public N endResources() { + return and(); + } + + } public class SchedulingGatesNested extends V1PodSchedulingGateFluent> implements Nested{ SchedulingGatesNested(int index,V1PodSchedulingGate item) { diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodStatusBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodStatusBuilder.java index 12113620c1..7f1254ad98 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodStatusBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodStatusBuilder.java @@ -31,6 +31,7 @@ public V1PodStatus build() { buildable.setInitContainerStatuses(fluent.buildInitContainerStatuses()); buildable.setMessage(fluent.getMessage()); buildable.setNominatedNodeName(fluent.getNominatedNodeName()); + buildable.setObservedGeneration(fluent.getObservedGeneration()); buildable.setPhase(fluent.getPhase()); buildable.setPodIP(fluent.getPodIP()); buildable.setPodIPs(fluent.buildPodIPs()); diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodStatusFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodStatusFluent.java index b8912167a6..e39e4b3206 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodStatusFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodStatusFluent.java @@ -10,6 +10,7 @@ import java.util.Iterator; import java.util.List; import java.time.OffsetDateTime; +import java.lang.Long; import java.util.Collection; import java.lang.Object; @@ -32,6 +33,7 @@ public V1PodStatusFluent(V1PodStatus instance) { private ArrayList initContainerStatuses; private String message; private String nominatedNodeName; + private Long observedGeneration; private String phase; private String podIP; private ArrayList podIPs; @@ -52,6 +54,7 @@ protected void copyInstance(V1PodStatus instance) { this.withInitContainerStatuses(instance.getInitContainerStatuses()); this.withMessage(instance.getMessage()); this.withNominatedNodeName(instance.getNominatedNodeName()); + this.withObservedGeneration(instance.getObservedGeneration()); this.withPhase(instance.getPhase()); this.withPodIP(instance.getPodIP()); this.withPodIPs(instance.getPodIPs()); @@ -66,14 +69,26 @@ protected void copyInstance(V1PodStatus instance) { public A addToConditions(int index,V1PodCondition item) { if (this.conditions == null) {this.conditions = new ArrayList();} V1PodConditionBuilder builder = new V1PodConditionBuilder(item); - if (index < 0 || index >= conditions.size()) { _visitables.get("conditions").add(builder); conditions.add(builder); } else { _visitables.get("conditions").add(index, builder); conditions.add(index, builder);} + if (index < 0 || index >= conditions.size()) { + _visitables.get("conditions").add(builder); + conditions.add(builder); + } else { + _visitables.get("conditions").add(builder); + conditions.add(index, builder); + } return (A)this; } public A setToConditions(int index,V1PodCondition item) { if (this.conditions == null) {this.conditions = new ArrayList();} V1PodConditionBuilder builder = new V1PodConditionBuilder(item); - if (index < 0 || index >= conditions.size()) { _visitables.get("conditions").add(builder); conditions.add(builder); } else { _visitables.get("conditions").set(index, builder); conditions.set(index, builder);} + if (index < 0 || index >= conditions.size()) { + _visitables.get("conditions").add(builder); + conditions.add(builder); + } else { + _visitables.get("conditions").add(builder); + conditions.set(index, builder); + } return (A)this; } @@ -217,14 +232,26 @@ public ConditionsNested editMatchingCondition(Predicate();} V1ContainerStatusBuilder builder = new V1ContainerStatusBuilder(item); - if (index < 0 || index >= containerStatuses.size()) { _visitables.get("containerStatuses").add(builder); containerStatuses.add(builder); } else { _visitables.get("containerStatuses").add(index, builder); containerStatuses.add(index, builder);} + if (index < 0 || index >= containerStatuses.size()) { + _visitables.get("containerStatuses").add(builder); + containerStatuses.add(builder); + } else { + _visitables.get("containerStatuses").add(builder); + containerStatuses.add(index, builder); + } return (A)this; } public A setToContainerStatuses(int index,V1ContainerStatus item) { if (this.containerStatuses == null) {this.containerStatuses = new ArrayList();} V1ContainerStatusBuilder builder = new V1ContainerStatusBuilder(item); - if (index < 0 || index >= containerStatuses.size()) { _visitables.get("containerStatuses").add(builder); containerStatuses.add(builder); } else { _visitables.get("containerStatuses").set(index, builder); containerStatuses.set(index, builder);} + if (index < 0 || index >= containerStatuses.size()) { + _visitables.get("containerStatuses").add(builder); + containerStatuses.add(builder); + } else { + _visitables.get("containerStatuses").add(builder); + containerStatuses.set(index, builder); + } return (A)this; } @@ -368,14 +395,26 @@ public ContainerStatusesNested editMatchingContainerStatus(Predicate();} V1ContainerStatusBuilder builder = new V1ContainerStatusBuilder(item); - if (index < 0 || index >= ephemeralContainerStatuses.size()) { _visitables.get("ephemeralContainerStatuses").add(builder); ephemeralContainerStatuses.add(builder); } else { _visitables.get("ephemeralContainerStatuses").add(index, builder); ephemeralContainerStatuses.add(index, builder);} + if (index < 0 || index >= ephemeralContainerStatuses.size()) { + _visitables.get("ephemeralContainerStatuses").add(builder); + ephemeralContainerStatuses.add(builder); + } else { + _visitables.get("ephemeralContainerStatuses").add(builder); + ephemeralContainerStatuses.add(index, builder); + } return (A)this; } public A setToEphemeralContainerStatuses(int index,V1ContainerStatus item) { if (this.ephemeralContainerStatuses == null) {this.ephemeralContainerStatuses = new ArrayList();} V1ContainerStatusBuilder builder = new V1ContainerStatusBuilder(item); - if (index < 0 || index >= ephemeralContainerStatuses.size()) { _visitables.get("ephemeralContainerStatuses").add(builder); ephemeralContainerStatuses.add(builder); } else { _visitables.get("ephemeralContainerStatuses").set(index, builder); ephemeralContainerStatuses.set(index, builder);} + if (index < 0 || index >= ephemeralContainerStatuses.size()) { + _visitables.get("ephemeralContainerStatuses").add(builder); + ephemeralContainerStatuses.add(builder); + } else { + _visitables.get("ephemeralContainerStatuses").add(builder); + ephemeralContainerStatuses.set(index, builder); + } return (A)this; } @@ -532,14 +571,26 @@ public boolean hasHostIP() { public A addToHostIPs(int index,V1HostIP item) { if (this.hostIPs == null) {this.hostIPs = new ArrayList();} V1HostIPBuilder builder = new V1HostIPBuilder(item); - if (index < 0 || index >= hostIPs.size()) { _visitables.get("hostIPs").add(builder); hostIPs.add(builder); } else { _visitables.get("hostIPs").add(index, builder); hostIPs.add(index, builder);} + if (index < 0 || index >= hostIPs.size()) { + _visitables.get("hostIPs").add(builder); + hostIPs.add(builder); + } else { + _visitables.get("hostIPs").add(builder); + hostIPs.add(index, builder); + } return (A)this; } public A setToHostIPs(int index,V1HostIP item) { if (this.hostIPs == null) {this.hostIPs = new ArrayList();} V1HostIPBuilder builder = new V1HostIPBuilder(item); - if (index < 0 || index >= hostIPs.size()) { _visitables.get("hostIPs").add(builder); hostIPs.add(builder); } else { _visitables.get("hostIPs").set(index, builder); hostIPs.set(index, builder);} + if (index < 0 || index >= hostIPs.size()) { + _visitables.get("hostIPs").add(builder); + hostIPs.add(builder); + } else { + _visitables.get("hostIPs").add(builder); + hostIPs.set(index, builder); + } return (A)this; } @@ -683,14 +734,26 @@ public HostIPsNested editMatchingHostIP(Predicate predicate) public A addToInitContainerStatuses(int index,V1ContainerStatus item) { if (this.initContainerStatuses == null) {this.initContainerStatuses = new ArrayList();} V1ContainerStatusBuilder builder = new V1ContainerStatusBuilder(item); - if (index < 0 || index >= initContainerStatuses.size()) { _visitables.get("initContainerStatuses").add(builder); initContainerStatuses.add(builder); } else { _visitables.get("initContainerStatuses").add(index, builder); initContainerStatuses.add(index, builder);} + if (index < 0 || index >= initContainerStatuses.size()) { + _visitables.get("initContainerStatuses").add(builder); + initContainerStatuses.add(builder); + } else { + _visitables.get("initContainerStatuses").add(builder); + initContainerStatuses.add(index, builder); + } return (A)this; } public A setToInitContainerStatuses(int index,V1ContainerStatus item) { if (this.initContainerStatuses == null) {this.initContainerStatuses = new ArrayList();} V1ContainerStatusBuilder builder = new V1ContainerStatusBuilder(item); - if (index < 0 || index >= initContainerStatuses.size()) { _visitables.get("initContainerStatuses").add(builder); initContainerStatuses.add(builder); } else { _visitables.get("initContainerStatuses").set(index, builder); initContainerStatuses.set(index, builder);} + if (index < 0 || index >= initContainerStatuses.size()) { + _visitables.get("initContainerStatuses").add(builder); + initContainerStatuses.add(builder); + } else { + _visitables.get("initContainerStatuses").add(builder); + initContainerStatuses.set(index, builder); + } return (A)this; } @@ -857,6 +920,19 @@ public boolean hasNominatedNodeName() { return this.nominatedNodeName != null; } + public Long getObservedGeneration() { + return this.observedGeneration; + } + + public A withObservedGeneration(Long observedGeneration) { + this.observedGeneration = observedGeneration; + return (A) this; + } + + public boolean hasObservedGeneration() { + return this.observedGeneration != null; + } + public String getPhase() { return this.phase; } @@ -886,14 +962,26 @@ public boolean hasPodIP() { public A addToPodIPs(int index,V1PodIP item) { if (this.podIPs == null) {this.podIPs = new ArrayList();} V1PodIPBuilder builder = new V1PodIPBuilder(item); - if (index < 0 || index >= podIPs.size()) { _visitables.get("podIPs").add(builder); podIPs.add(builder); } else { _visitables.get("podIPs").add(index, builder); podIPs.add(index, builder);} + if (index < 0 || index >= podIPs.size()) { + _visitables.get("podIPs").add(builder); + podIPs.add(builder); + } else { + _visitables.get("podIPs").add(builder); + podIPs.add(index, builder); + } return (A)this; } public A setToPodIPs(int index,V1PodIP item) { if (this.podIPs == null) {this.podIPs = new ArrayList();} V1PodIPBuilder builder = new V1PodIPBuilder(item); - if (index < 0 || index >= podIPs.size()) { _visitables.get("podIPs").add(builder); podIPs.add(builder); } else { _visitables.get("podIPs").set(index, builder); podIPs.set(index, builder);} + if (index < 0 || index >= podIPs.size()) { + _visitables.get("podIPs").add(builder); + podIPs.add(builder); + } else { + _visitables.get("podIPs").add(builder); + podIPs.set(index, builder); + } return (A)this; } @@ -1076,14 +1164,26 @@ public boolean hasResize() { public A addToResourceClaimStatuses(int index,V1PodResourceClaimStatus item) { if (this.resourceClaimStatuses == null) {this.resourceClaimStatuses = new ArrayList();} V1PodResourceClaimStatusBuilder builder = new V1PodResourceClaimStatusBuilder(item); - if (index < 0 || index >= resourceClaimStatuses.size()) { _visitables.get("resourceClaimStatuses").add(builder); resourceClaimStatuses.add(builder); } else { _visitables.get("resourceClaimStatuses").add(index, builder); resourceClaimStatuses.add(index, builder);} + if (index < 0 || index >= resourceClaimStatuses.size()) { + _visitables.get("resourceClaimStatuses").add(builder); + resourceClaimStatuses.add(builder); + } else { + _visitables.get("resourceClaimStatuses").add(builder); + resourceClaimStatuses.add(index, builder); + } return (A)this; } public A setToResourceClaimStatuses(int index,V1PodResourceClaimStatus item) { if (this.resourceClaimStatuses == null) {this.resourceClaimStatuses = new ArrayList();} V1PodResourceClaimStatusBuilder builder = new V1PodResourceClaimStatusBuilder(item); - if (index < 0 || index >= resourceClaimStatuses.size()) { _visitables.get("resourceClaimStatuses").add(builder); resourceClaimStatuses.add(builder); } else { _visitables.get("resourceClaimStatuses").set(index, builder); resourceClaimStatuses.set(index, builder);} + if (index < 0 || index >= resourceClaimStatuses.size()) { + _visitables.get("resourceClaimStatuses").add(builder); + resourceClaimStatuses.add(builder); + } else { + _visitables.get("resourceClaimStatuses").add(builder); + resourceClaimStatuses.set(index, builder); + } return (A)this; } @@ -1250,6 +1350,7 @@ public boolean equals(Object o) { if (!java.util.Objects.equals(initContainerStatuses, that.initContainerStatuses)) return false; if (!java.util.Objects.equals(message, that.message)) return false; if (!java.util.Objects.equals(nominatedNodeName, that.nominatedNodeName)) return false; + if (!java.util.Objects.equals(observedGeneration, that.observedGeneration)) return false; if (!java.util.Objects.equals(phase, that.phase)) return false; if (!java.util.Objects.equals(podIP, that.podIP)) return false; if (!java.util.Objects.equals(podIPs, that.podIPs)) return false; @@ -1262,7 +1363,7 @@ public boolean equals(Object o) { } public int hashCode() { - return java.util.Objects.hash(conditions, containerStatuses, ephemeralContainerStatuses, hostIP, hostIPs, initContainerStatuses, message, nominatedNodeName, phase, podIP, podIPs, qosClass, reason, resize, resourceClaimStatuses, startTime, super.hashCode()); + return java.util.Objects.hash(conditions, containerStatuses, ephemeralContainerStatuses, hostIP, hostIPs, initContainerStatuses, message, nominatedNodeName, observedGeneration, phase, podIP, podIPs, qosClass, reason, resize, resourceClaimStatuses, startTime, super.hashCode()); } public String toString() { @@ -1276,6 +1377,7 @@ public String toString() { if (initContainerStatuses != null && !initContainerStatuses.isEmpty()) { sb.append("initContainerStatuses:"); sb.append(initContainerStatuses + ","); } if (message != null) { sb.append("message:"); sb.append(message + ","); } if (nominatedNodeName != null) { sb.append("nominatedNodeName:"); sb.append(nominatedNodeName + ","); } + if (observedGeneration != null) { sb.append("observedGeneration:"); sb.append(observedGeneration + ","); } if (phase != null) { sb.append("phase:"); sb.append(phase + ","); } if (podIP != null) { sb.append("podIP:"); sb.append(podIP + ","); } if (podIPs != null && !podIPs.isEmpty()) { sb.append("podIPs:"); sb.append(podIPs + ","); } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodTemplateListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodTemplateListFluent.java index feebd38813..fae5738065 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodTemplateListFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodTemplateListFluent.java @@ -54,14 +54,26 @@ public boolean hasApiVersion() { public A addToItems(int index,V1PodTemplate item) { if (this.items == null) {this.items = new ArrayList();} V1PodTemplateBuilder builder = new V1PodTemplateBuilder(item); - if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); items.add(builder); } else { _visitables.get("items").add(index, builder); items.add(index, builder);} + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.add(index, builder); + } return (A)this; } public A setToItems(int index,V1PodTemplate item) { if (this.items == null) {this.items = new ArrayList();} V1PodTemplateBuilder builder = new V1PodTemplateBuilder(item); - if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); items.add(builder); } else { _visitables.get("items").set(index, builder); items.set(index, builder);} + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.set(index, builder); + } return (A)this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PolicyRulesWithSubjectsBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PolicyRulesWithSubjectsBuilder.java new file mode 100644 index 0000000000..b980ed4341 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PolicyRulesWithSubjectsBuilder.java @@ -0,0 +1,33 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +public class V1PolicyRulesWithSubjectsBuilder extends V1PolicyRulesWithSubjectsFluent implements VisitableBuilder{ + public V1PolicyRulesWithSubjectsBuilder() { + this(new V1PolicyRulesWithSubjects()); + } + + public V1PolicyRulesWithSubjectsBuilder(V1PolicyRulesWithSubjectsFluent fluent) { + this(fluent, new V1PolicyRulesWithSubjects()); + } + + public V1PolicyRulesWithSubjectsBuilder(V1PolicyRulesWithSubjectsFluent fluent,V1PolicyRulesWithSubjects instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1PolicyRulesWithSubjectsBuilder(V1PolicyRulesWithSubjects instance) { + this.fluent = this; + this.copyInstance(instance); + } + V1PolicyRulesWithSubjectsFluent fluent; + + public V1PolicyRulesWithSubjects build() { + V1PolicyRulesWithSubjects buildable = new V1PolicyRulesWithSubjects(); + buildable.setNonResourceRules(fluent.buildNonResourceRules()); + buildable.setResourceRules(fluent.buildResourceRules()); + buildable.setSubjects(fluent.buildSubjects()); + return buildable; + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PolicyRulesWithSubjectsFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PolicyRulesWithSubjectsFluent.java new file mode 100644 index 0000000000..313a6ad025 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PolicyRulesWithSubjectsFluent.java @@ -0,0 +1,607 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.Nested; +import java.util.ArrayList; +import java.lang.String; +import java.util.function.Predicate; +import io.kubernetes.client.fluent.BaseFluent; +import java.util.Iterator; +import java.util.List; +import java.util.Collection; +import java.lang.Object; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1PolicyRulesWithSubjectsFluent> extends BaseFluent{ + public V1PolicyRulesWithSubjectsFluent() { + } + + public V1PolicyRulesWithSubjectsFluent(V1PolicyRulesWithSubjects instance) { + this.copyInstance(instance); + } + private ArrayList nonResourceRules; + private ArrayList resourceRules; + private ArrayList subjects; + + protected void copyInstance(V1PolicyRulesWithSubjects instance) { + instance = (instance != null ? instance : new V1PolicyRulesWithSubjects()); + if (instance != null) { + this.withNonResourceRules(instance.getNonResourceRules()); + this.withResourceRules(instance.getResourceRules()); + this.withSubjects(instance.getSubjects()); + } + } + + public A addToNonResourceRules(int index,V1NonResourcePolicyRule item) { + if (this.nonResourceRules == null) {this.nonResourceRules = new ArrayList();} + V1NonResourcePolicyRuleBuilder builder = new V1NonResourcePolicyRuleBuilder(item); + if (index < 0 || index >= nonResourceRules.size()) { + _visitables.get("nonResourceRules").add(builder); + nonResourceRules.add(builder); + } else { + _visitables.get("nonResourceRules").add(builder); + nonResourceRules.add(index, builder); + } + return (A)this; + } + + public A setToNonResourceRules(int index,V1NonResourcePolicyRule item) { + if (this.nonResourceRules == null) {this.nonResourceRules = new ArrayList();} + V1NonResourcePolicyRuleBuilder builder = new V1NonResourcePolicyRuleBuilder(item); + if (index < 0 || index >= nonResourceRules.size()) { + _visitables.get("nonResourceRules").add(builder); + nonResourceRules.add(builder); + } else { + _visitables.get("nonResourceRules").add(builder); + nonResourceRules.set(index, builder); + } + return (A)this; + } + + public A addToNonResourceRules(io.kubernetes.client.openapi.models.V1NonResourcePolicyRule... items) { + if (this.nonResourceRules == null) {this.nonResourceRules = new ArrayList();} + for (V1NonResourcePolicyRule item : items) {V1NonResourcePolicyRuleBuilder builder = new V1NonResourcePolicyRuleBuilder(item);_visitables.get("nonResourceRules").add(builder);this.nonResourceRules.add(builder);} return (A)this; + } + + public A addAllToNonResourceRules(Collection items) { + if (this.nonResourceRules == null) {this.nonResourceRules = new ArrayList();} + for (V1NonResourcePolicyRule item : items) {V1NonResourcePolicyRuleBuilder builder = new V1NonResourcePolicyRuleBuilder(item);_visitables.get("nonResourceRules").add(builder);this.nonResourceRules.add(builder);} return (A)this; + } + + public A removeFromNonResourceRules(io.kubernetes.client.openapi.models.V1NonResourcePolicyRule... items) { + if (this.nonResourceRules == null) return (A)this; + for (V1NonResourcePolicyRule item : items) {V1NonResourcePolicyRuleBuilder builder = new V1NonResourcePolicyRuleBuilder(item);_visitables.get("nonResourceRules").remove(builder); this.nonResourceRules.remove(builder);} return (A)this; + } + + public A removeAllFromNonResourceRules(Collection items) { + if (this.nonResourceRules == null) return (A)this; + for (V1NonResourcePolicyRule item : items) {V1NonResourcePolicyRuleBuilder builder = new V1NonResourcePolicyRuleBuilder(item);_visitables.get("nonResourceRules").remove(builder); this.nonResourceRules.remove(builder);} return (A)this; + } + + public A removeMatchingFromNonResourceRules(Predicate predicate) { + if (nonResourceRules == null) return (A) this; + final Iterator each = nonResourceRules.iterator(); + final List visitables = _visitables.get("nonResourceRules"); + while (each.hasNext()) { + V1NonResourcePolicyRuleBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A)this; + } + + public List buildNonResourceRules() { + return this.nonResourceRules != null ? build(nonResourceRules) : null; + } + + public V1NonResourcePolicyRule buildNonResourceRule(int index) { + return this.nonResourceRules.get(index).build(); + } + + public V1NonResourcePolicyRule buildFirstNonResourceRule() { + return this.nonResourceRules.get(0).build(); + } + + public V1NonResourcePolicyRule buildLastNonResourceRule() { + return this.nonResourceRules.get(nonResourceRules.size() - 1).build(); + } + + public V1NonResourcePolicyRule buildMatchingNonResourceRule(Predicate predicate) { + for (V1NonResourcePolicyRuleBuilder item : nonResourceRules) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; + } + + public boolean hasMatchingNonResourceRule(Predicate predicate) { + for (V1NonResourcePolicyRuleBuilder item : nonResourceRules) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public A withNonResourceRules(List nonResourceRules) { + if (this.nonResourceRules != null) { + this._visitables.get("nonResourceRules").clear(); + } + if (nonResourceRules != null) { + this.nonResourceRules = new ArrayList(); + for (V1NonResourcePolicyRule item : nonResourceRules) { + this.addToNonResourceRules(item); + } + } else { + this.nonResourceRules = null; + } + return (A) this; + } + + public A withNonResourceRules(io.kubernetes.client.openapi.models.V1NonResourcePolicyRule... nonResourceRules) { + if (this.nonResourceRules != null) { + this.nonResourceRules.clear(); + _visitables.remove("nonResourceRules"); + } + if (nonResourceRules != null) { + for (V1NonResourcePolicyRule item : nonResourceRules) { + this.addToNonResourceRules(item); + } + } + return (A) this; + } + + public boolean hasNonResourceRules() { + return this.nonResourceRules != null && !this.nonResourceRules.isEmpty(); + } + + public NonResourceRulesNested addNewNonResourceRule() { + return new NonResourceRulesNested(-1, null); + } + + public NonResourceRulesNested addNewNonResourceRuleLike(V1NonResourcePolicyRule item) { + return new NonResourceRulesNested(-1, item); + } + + public NonResourceRulesNested setNewNonResourceRuleLike(int index,V1NonResourcePolicyRule item) { + return new NonResourceRulesNested(index, item); + } + + public NonResourceRulesNested editNonResourceRule(int index) { + if (nonResourceRules.size() <= index) throw new RuntimeException("Can't edit nonResourceRules. Index exceeds size."); + return setNewNonResourceRuleLike(index, buildNonResourceRule(index)); + } + + public NonResourceRulesNested editFirstNonResourceRule() { + if (nonResourceRules.size() == 0) throw new RuntimeException("Can't edit first nonResourceRules. The list is empty."); + return setNewNonResourceRuleLike(0, buildNonResourceRule(0)); + } + + public NonResourceRulesNested editLastNonResourceRule() { + int index = nonResourceRules.size() - 1; + if (index < 0) throw new RuntimeException("Can't edit last nonResourceRules. The list is empty."); + return setNewNonResourceRuleLike(index, buildNonResourceRule(index)); + } + + public NonResourceRulesNested editMatchingNonResourceRule(Predicate predicate) { + int index = -1; + for (int i=0;i();} + V1ResourcePolicyRuleBuilder builder = new V1ResourcePolicyRuleBuilder(item); + if (index < 0 || index >= resourceRules.size()) { + _visitables.get("resourceRules").add(builder); + resourceRules.add(builder); + } else { + _visitables.get("resourceRules").add(builder); + resourceRules.add(index, builder); + } + return (A)this; + } + + public A setToResourceRules(int index,V1ResourcePolicyRule item) { + if (this.resourceRules == null) {this.resourceRules = new ArrayList();} + V1ResourcePolicyRuleBuilder builder = new V1ResourcePolicyRuleBuilder(item); + if (index < 0 || index >= resourceRules.size()) { + _visitables.get("resourceRules").add(builder); + resourceRules.add(builder); + } else { + _visitables.get("resourceRules").add(builder); + resourceRules.set(index, builder); + } + return (A)this; + } + + public A addToResourceRules(io.kubernetes.client.openapi.models.V1ResourcePolicyRule... items) { + if (this.resourceRules == null) {this.resourceRules = new ArrayList();} + for (V1ResourcePolicyRule item : items) {V1ResourcePolicyRuleBuilder builder = new V1ResourcePolicyRuleBuilder(item);_visitables.get("resourceRules").add(builder);this.resourceRules.add(builder);} return (A)this; + } + + public A addAllToResourceRules(Collection items) { + if (this.resourceRules == null) {this.resourceRules = new ArrayList();} + for (V1ResourcePolicyRule item : items) {V1ResourcePolicyRuleBuilder builder = new V1ResourcePolicyRuleBuilder(item);_visitables.get("resourceRules").add(builder);this.resourceRules.add(builder);} return (A)this; + } + + public A removeFromResourceRules(io.kubernetes.client.openapi.models.V1ResourcePolicyRule... items) { + if (this.resourceRules == null) return (A)this; + for (V1ResourcePolicyRule item : items) {V1ResourcePolicyRuleBuilder builder = new V1ResourcePolicyRuleBuilder(item);_visitables.get("resourceRules").remove(builder); this.resourceRules.remove(builder);} return (A)this; + } + + public A removeAllFromResourceRules(Collection items) { + if (this.resourceRules == null) return (A)this; + for (V1ResourcePolicyRule item : items) {V1ResourcePolicyRuleBuilder builder = new V1ResourcePolicyRuleBuilder(item);_visitables.get("resourceRules").remove(builder); this.resourceRules.remove(builder);} return (A)this; + } + + public A removeMatchingFromResourceRules(Predicate predicate) { + if (resourceRules == null) return (A) this; + final Iterator each = resourceRules.iterator(); + final List visitables = _visitables.get("resourceRules"); + while (each.hasNext()) { + V1ResourcePolicyRuleBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A)this; + } + + public List buildResourceRules() { + return this.resourceRules != null ? build(resourceRules) : null; + } + + public V1ResourcePolicyRule buildResourceRule(int index) { + return this.resourceRules.get(index).build(); + } + + public V1ResourcePolicyRule buildFirstResourceRule() { + return this.resourceRules.get(0).build(); + } + + public V1ResourcePolicyRule buildLastResourceRule() { + return this.resourceRules.get(resourceRules.size() - 1).build(); + } + + public V1ResourcePolicyRule buildMatchingResourceRule(Predicate predicate) { + for (V1ResourcePolicyRuleBuilder item : resourceRules) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; + } + + public boolean hasMatchingResourceRule(Predicate predicate) { + for (V1ResourcePolicyRuleBuilder item : resourceRules) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public A withResourceRules(List resourceRules) { + if (this.resourceRules != null) { + this._visitables.get("resourceRules").clear(); + } + if (resourceRules != null) { + this.resourceRules = new ArrayList(); + for (V1ResourcePolicyRule item : resourceRules) { + this.addToResourceRules(item); + } + } else { + this.resourceRules = null; + } + return (A) this; + } + + public A withResourceRules(io.kubernetes.client.openapi.models.V1ResourcePolicyRule... resourceRules) { + if (this.resourceRules != null) { + this.resourceRules.clear(); + _visitables.remove("resourceRules"); + } + if (resourceRules != null) { + for (V1ResourcePolicyRule item : resourceRules) { + this.addToResourceRules(item); + } + } + return (A) this; + } + + public boolean hasResourceRules() { + return this.resourceRules != null && !this.resourceRules.isEmpty(); + } + + public ResourceRulesNested addNewResourceRule() { + return new ResourceRulesNested(-1, null); + } + + public ResourceRulesNested addNewResourceRuleLike(V1ResourcePolicyRule item) { + return new ResourceRulesNested(-1, item); + } + + public ResourceRulesNested setNewResourceRuleLike(int index,V1ResourcePolicyRule item) { + return new ResourceRulesNested(index, item); + } + + public ResourceRulesNested editResourceRule(int index) { + if (resourceRules.size() <= index) throw new RuntimeException("Can't edit resourceRules. Index exceeds size."); + return setNewResourceRuleLike(index, buildResourceRule(index)); + } + + public ResourceRulesNested editFirstResourceRule() { + if (resourceRules.size() == 0) throw new RuntimeException("Can't edit first resourceRules. The list is empty."); + return setNewResourceRuleLike(0, buildResourceRule(0)); + } + + public ResourceRulesNested editLastResourceRule() { + int index = resourceRules.size() - 1; + if (index < 0) throw new RuntimeException("Can't edit last resourceRules. The list is empty."); + return setNewResourceRuleLike(index, buildResourceRule(index)); + } + + public ResourceRulesNested editMatchingResourceRule(Predicate predicate) { + int index = -1; + for (int i=0;i();} + FlowcontrolV1SubjectBuilder builder = new FlowcontrolV1SubjectBuilder(item); + if (index < 0 || index >= subjects.size()) { + _visitables.get("subjects").add(builder); + subjects.add(builder); + } else { + _visitables.get("subjects").add(builder); + subjects.add(index, builder); + } + return (A)this; + } + + public A setToSubjects(int index,FlowcontrolV1Subject item) { + if (this.subjects == null) {this.subjects = new ArrayList();} + FlowcontrolV1SubjectBuilder builder = new FlowcontrolV1SubjectBuilder(item); + if (index < 0 || index >= subjects.size()) { + _visitables.get("subjects").add(builder); + subjects.add(builder); + } else { + _visitables.get("subjects").add(builder); + subjects.set(index, builder); + } + return (A)this; + } + + public A addToSubjects(io.kubernetes.client.openapi.models.FlowcontrolV1Subject... items) { + if (this.subjects == null) {this.subjects = new ArrayList();} + for (FlowcontrolV1Subject item : items) {FlowcontrolV1SubjectBuilder builder = new FlowcontrolV1SubjectBuilder(item);_visitables.get("subjects").add(builder);this.subjects.add(builder);} return (A)this; + } + + public A addAllToSubjects(Collection items) { + if (this.subjects == null) {this.subjects = new ArrayList();} + for (FlowcontrolV1Subject item : items) {FlowcontrolV1SubjectBuilder builder = new FlowcontrolV1SubjectBuilder(item);_visitables.get("subjects").add(builder);this.subjects.add(builder);} return (A)this; + } + + public A removeFromSubjects(io.kubernetes.client.openapi.models.FlowcontrolV1Subject... items) { + if (this.subjects == null) return (A)this; + for (FlowcontrolV1Subject item : items) {FlowcontrolV1SubjectBuilder builder = new FlowcontrolV1SubjectBuilder(item);_visitables.get("subjects").remove(builder); this.subjects.remove(builder);} return (A)this; + } + + public A removeAllFromSubjects(Collection items) { + if (this.subjects == null) return (A)this; + for (FlowcontrolV1Subject item : items) {FlowcontrolV1SubjectBuilder builder = new FlowcontrolV1SubjectBuilder(item);_visitables.get("subjects").remove(builder); this.subjects.remove(builder);} return (A)this; + } + + public A removeMatchingFromSubjects(Predicate predicate) { + if (subjects == null) return (A) this; + final Iterator each = subjects.iterator(); + final List visitables = _visitables.get("subjects"); + while (each.hasNext()) { + FlowcontrolV1SubjectBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A)this; + } + + public List buildSubjects() { + return this.subjects != null ? build(subjects) : null; + } + + public FlowcontrolV1Subject buildSubject(int index) { + return this.subjects.get(index).build(); + } + + public FlowcontrolV1Subject buildFirstSubject() { + return this.subjects.get(0).build(); + } + + public FlowcontrolV1Subject buildLastSubject() { + return this.subjects.get(subjects.size() - 1).build(); + } + + public FlowcontrolV1Subject buildMatchingSubject(Predicate predicate) { + for (FlowcontrolV1SubjectBuilder item : subjects) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; + } + + public boolean hasMatchingSubject(Predicate predicate) { + for (FlowcontrolV1SubjectBuilder item : subjects) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public A withSubjects(List subjects) { + if (this.subjects != null) { + this._visitables.get("subjects").clear(); + } + if (subjects != null) { + this.subjects = new ArrayList(); + for (FlowcontrolV1Subject item : subjects) { + this.addToSubjects(item); + } + } else { + this.subjects = null; + } + return (A) this; + } + + public A withSubjects(io.kubernetes.client.openapi.models.FlowcontrolV1Subject... subjects) { + if (this.subjects != null) { + this.subjects.clear(); + _visitables.remove("subjects"); + } + if (subjects != null) { + for (FlowcontrolV1Subject item : subjects) { + this.addToSubjects(item); + } + } + return (A) this; + } + + public boolean hasSubjects() { + return this.subjects != null && !this.subjects.isEmpty(); + } + + public SubjectsNested addNewSubject() { + return new SubjectsNested(-1, null); + } + + public SubjectsNested addNewSubjectLike(FlowcontrolV1Subject item) { + return new SubjectsNested(-1, item); + } + + public SubjectsNested setNewSubjectLike(int index,FlowcontrolV1Subject item) { + return new SubjectsNested(index, item); + } + + public SubjectsNested editSubject(int index) { + if (subjects.size() <= index) throw new RuntimeException("Can't edit subjects. Index exceeds size."); + return setNewSubjectLike(index, buildSubject(index)); + } + + public SubjectsNested editFirstSubject() { + if (subjects.size() == 0) throw new RuntimeException("Can't edit first subjects. The list is empty."); + return setNewSubjectLike(0, buildSubject(0)); + } + + public SubjectsNested editLastSubject() { + int index = subjects.size() - 1; + if (index < 0) throw new RuntimeException("Can't edit last subjects. The list is empty."); + return setNewSubjectLike(index, buildSubject(index)); + } + + public SubjectsNested editMatchingSubject(Predicate predicate) { + int index = -1; + for (int i=0;i extends V1NonResourcePolicyRuleFluent> implements Nested{ + NonResourceRulesNested(int index,V1NonResourcePolicyRule item) { + this.index = index; + this.builder = new V1NonResourcePolicyRuleBuilder(this, item); + } + V1NonResourcePolicyRuleBuilder builder; + int index; + + public N and() { + return (N) V1PolicyRulesWithSubjectsFluent.this.setToNonResourceRules(index,builder.build()); + } + + public N endNonResourceRule() { + return and(); + } + + + } + public class ResourceRulesNested extends V1ResourcePolicyRuleFluent> implements Nested{ + ResourceRulesNested(int index,V1ResourcePolicyRule item) { + this.index = index; + this.builder = new V1ResourcePolicyRuleBuilder(this, item); + } + V1ResourcePolicyRuleBuilder builder; + int index; + + public N and() { + return (N) V1PolicyRulesWithSubjectsFluent.this.setToResourceRules(index,builder.build()); + } + + public N endResourceRule() { + return and(); + } + + + } + public class SubjectsNested extends FlowcontrolV1SubjectFluent> implements Nested{ + SubjectsNested(int index,FlowcontrolV1Subject item) { + this.index = index; + this.builder = new FlowcontrolV1SubjectBuilder(this, item); + } + FlowcontrolV1SubjectBuilder builder; + int index; + + public N and() { + return (N) V1PolicyRulesWithSubjectsFluent.this.setToSubjects(index,builder.build()); + } + + public N endSubject() { + return and(); + } + + + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PriorityClassListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PriorityClassListFluent.java index 890272aa95..a49e363713 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PriorityClassListFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PriorityClassListFluent.java @@ -54,14 +54,26 @@ public boolean hasApiVersion() { public A addToItems(int index,V1PriorityClass item) { if (this.items == null) {this.items = new ArrayList();} V1PriorityClassBuilder builder = new V1PriorityClassBuilder(item); - if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); items.add(builder); } else { _visitables.get("items").add(index, builder); items.add(index, builder);} + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.add(index, builder); + } return (A)this; } public A setToItems(int index,V1PriorityClass item) { if (this.items == null) {this.items = new ArrayList();} V1PriorityClassBuilder builder = new V1PriorityClassBuilder(item); - if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); items.add(builder); } else { _visitables.get("items").set(index, builder); items.set(index, builder);} + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.set(index, builder); + } return (A)this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PriorityLevelConfigurationBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PriorityLevelConfigurationBuilder.java new file mode 100644 index 0000000000..263e15afce --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PriorityLevelConfigurationBuilder.java @@ -0,0 +1,35 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +public class V1PriorityLevelConfigurationBuilder extends V1PriorityLevelConfigurationFluent implements VisitableBuilder{ + public V1PriorityLevelConfigurationBuilder() { + this(new V1PriorityLevelConfiguration()); + } + + public V1PriorityLevelConfigurationBuilder(V1PriorityLevelConfigurationFluent fluent) { + this(fluent, new V1PriorityLevelConfiguration()); + } + + public V1PriorityLevelConfigurationBuilder(V1PriorityLevelConfigurationFluent fluent,V1PriorityLevelConfiguration instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1PriorityLevelConfigurationBuilder(V1PriorityLevelConfiguration instance) { + this.fluent = this; + this.copyInstance(instance); + } + V1PriorityLevelConfigurationFluent fluent; + + public V1PriorityLevelConfiguration build() { + V1PriorityLevelConfiguration buildable = new V1PriorityLevelConfiguration(); + buildable.setApiVersion(fluent.getApiVersion()); + buildable.setKind(fluent.getKind()); + buildable.setMetadata(fluent.buildMetadata()); + buildable.setSpec(fluent.buildSpec()); + buildable.setStatus(fluent.buildStatus()); + return buildable; + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PriorityLevelConfigurationConditionBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PriorityLevelConfigurationConditionBuilder.java new file mode 100644 index 0000000000..076f5482dc --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PriorityLevelConfigurationConditionBuilder.java @@ -0,0 +1,35 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +public class V1PriorityLevelConfigurationConditionBuilder extends V1PriorityLevelConfigurationConditionFluent implements VisitableBuilder{ + public V1PriorityLevelConfigurationConditionBuilder() { + this(new V1PriorityLevelConfigurationCondition()); + } + + public V1PriorityLevelConfigurationConditionBuilder(V1PriorityLevelConfigurationConditionFluent fluent) { + this(fluent, new V1PriorityLevelConfigurationCondition()); + } + + public V1PriorityLevelConfigurationConditionBuilder(V1PriorityLevelConfigurationConditionFluent fluent,V1PriorityLevelConfigurationCondition instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1PriorityLevelConfigurationConditionBuilder(V1PriorityLevelConfigurationCondition instance) { + this.fluent = this; + this.copyInstance(instance); + } + V1PriorityLevelConfigurationConditionFluent fluent; + + public V1PriorityLevelConfigurationCondition build() { + V1PriorityLevelConfigurationCondition buildable = new V1PriorityLevelConfigurationCondition(); + buildable.setLastTransitionTime(fluent.getLastTransitionTime()); + buildable.setMessage(fluent.getMessage()); + buildable.setReason(fluent.getReason()); + buildable.setStatus(fluent.getStatus()); + buildable.setType(fluent.getType()); + return buildable; + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PriorityLevelConfigurationConditionFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PriorityLevelConfigurationConditionFluent.java new file mode 100644 index 0000000000..29727c2b97 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PriorityLevelConfigurationConditionFluent.java @@ -0,0 +1,132 @@ +package io.kubernetes.client.openapi.models; + +import java.time.OffsetDateTime; +import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Object; +import java.lang.String; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1PriorityLevelConfigurationConditionFluent> extends BaseFluent{ + public V1PriorityLevelConfigurationConditionFluent() { + } + + public V1PriorityLevelConfigurationConditionFluent(V1PriorityLevelConfigurationCondition instance) { + this.copyInstance(instance); + } + private OffsetDateTime lastTransitionTime; + private String message; + private String reason; + private String status; + private String type; + + protected void copyInstance(V1PriorityLevelConfigurationCondition instance) { + instance = (instance != null ? instance : new V1PriorityLevelConfigurationCondition()); + if (instance != null) { + this.withLastTransitionTime(instance.getLastTransitionTime()); + this.withMessage(instance.getMessage()); + this.withReason(instance.getReason()); + this.withStatus(instance.getStatus()); + this.withType(instance.getType()); + } + } + + public OffsetDateTime getLastTransitionTime() { + return this.lastTransitionTime; + } + + public A withLastTransitionTime(OffsetDateTime lastTransitionTime) { + this.lastTransitionTime = lastTransitionTime; + return (A) this; + } + + public boolean hasLastTransitionTime() { + return this.lastTransitionTime != null; + } + + public String getMessage() { + return this.message; + } + + public A withMessage(String message) { + this.message = message; + return (A) this; + } + + public boolean hasMessage() { + return this.message != null; + } + + public String getReason() { + return this.reason; + } + + public A withReason(String reason) { + this.reason = reason; + return (A) this; + } + + public boolean hasReason() { + return this.reason != null; + } + + public String getStatus() { + return this.status; + } + + public A withStatus(String status) { + this.status = status; + return (A) this; + } + + public boolean hasStatus() { + return this.status != null; + } + + public String getType() { + return this.type; + } + + public A withType(String type) { + this.type = type; + return (A) this; + } + + public boolean hasType() { + return this.type != null; + } + + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + if (!super.equals(o)) return false; + V1PriorityLevelConfigurationConditionFluent that = (V1PriorityLevelConfigurationConditionFluent) o; + if (!java.util.Objects.equals(lastTransitionTime, that.lastTransitionTime)) return false; + if (!java.util.Objects.equals(message, that.message)) return false; + if (!java.util.Objects.equals(reason, that.reason)) return false; + if (!java.util.Objects.equals(status, that.status)) return false; + if (!java.util.Objects.equals(type, that.type)) return false; + return true; + } + + public int hashCode() { + return java.util.Objects.hash(lastTransitionTime, message, reason, status, type, super.hashCode()); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (lastTransitionTime != null) { sb.append("lastTransitionTime:"); sb.append(lastTransitionTime + ","); } + if (message != null) { sb.append("message:"); sb.append(message + ","); } + if (reason != null) { sb.append("reason:"); sb.append(reason + ","); } + if (status != null) { sb.append("status:"); sb.append(status + ","); } + if (type != null) { sb.append("type:"); sb.append(type); } + sb.append("}"); + return sb.toString(); + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PriorityLevelConfigurationFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PriorityLevelConfigurationFluent.java new file mode 100644 index 0000000000..4b478d81bb --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PriorityLevelConfigurationFluent.java @@ -0,0 +1,260 @@ +package io.kubernetes.client.openapi.models; + +import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.Nested; +import java.lang.String; +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Object; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1PriorityLevelConfigurationFluent> extends BaseFluent{ + public V1PriorityLevelConfigurationFluent() { + } + + public V1PriorityLevelConfigurationFluent(V1PriorityLevelConfiguration instance) { + this.copyInstance(instance); + } + private String apiVersion; + private String kind; + private V1ObjectMetaBuilder metadata; + private V1PriorityLevelConfigurationSpecBuilder spec; + private V1PriorityLevelConfigurationStatusBuilder status; + + protected void copyInstance(V1PriorityLevelConfiguration instance) { + instance = (instance != null ? instance : new V1PriorityLevelConfiguration()); + if (instance != null) { + this.withApiVersion(instance.getApiVersion()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); + this.withSpec(instance.getSpec()); + this.withStatus(instance.getStatus()); + } + } + + public String getApiVersion() { + return this.apiVersion; + } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + + public boolean hasApiVersion() { + return this.apiVersion != null; + } + + public String getKind() { + return this.kind; + } + + public A withKind(String kind) { + this.kind = kind; + return (A) this; + } + + public boolean hasKind() { + return this.kind != null; + } + + public V1ObjectMeta buildMetadata() { + return this.metadata != null ? this.metadata.build() : null; + } + + public A withMetadata(V1ObjectMeta metadata) { + this._visitables.remove("metadata"); + if (metadata != null) { + this.metadata = new V1ObjectMetaBuilder(metadata); + this._visitables.get("metadata").add(this.metadata); + } else { + this.metadata = null; + this._visitables.get("metadata").remove(this.metadata); + } + return (A) this; + } + + public boolean hasMetadata() { + return this.metadata != null; + } + + public MetadataNested withNewMetadata() { + return new MetadataNested(null); + } + + public MetadataNested withNewMetadataLike(V1ObjectMeta item) { + return new MetadataNested(item); + } + + public MetadataNested editMetadata() { + return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(null)); + } + + public MetadataNested editOrNewMetadata() { + return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(new V1ObjectMetaBuilder().build())); + } + + public MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { + return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(item)); + } + + public V1PriorityLevelConfigurationSpec buildSpec() { + return this.spec != null ? this.spec.build() : null; + } + + public A withSpec(V1PriorityLevelConfigurationSpec spec) { + this._visitables.remove("spec"); + if (spec != null) { + this.spec = new V1PriorityLevelConfigurationSpecBuilder(spec); + this._visitables.get("spec").add(this.spec); + } else { + this.spec = null; + this._visitables.get("spec").remove(this.spec); + } + return (A) this; + } + + public boolean hasSpec() { + return this.spec != null; + } + + public SpecNested withNewSpec() { + return new SpecNested(null); + } + + public SpecNested withNewSpecLike(V1PriorityLevelConfigurationSpec item) { + return new SpecNested(item); + } + + public SpecNested editSpec() { + return withNewSpecLike(java.util.Optional.ofNullable(buildSpec()).orElse(null)); + } + + public SpecNested editOrNewSpec() { + return withNewSpecLike(java.util.Optional.ofNullable(buildSpec()).orElse(new V1PriorityLevelConfigurationSpecBuilder().build())); + } + + public SpecNested editOrNewSpecLike(V1PriorityLevelConfigurationSpec item) { + return withNewSpecLike(java.util.Optional.ofNullable(buildSpec()).orElse(item)); + } + + public V1PriorityLevelConfigurationStatus buildStatus() { + return this.status != null ? this.status.build() : null; + } + + public A withStatus(V1PriorityLevelConfigurationStatus status) { + this._visitables.remove("status"); + if (status != null) { + this.status = new V1PriorityLevelConfigurationStatusBuilder(status); + this._visitables.get("status").add(this.status); + } else { + this.status = null; + this._visitables.get("status").remove(this.status); + } + return (A) this; + } + + public boolean hasStatus() { + return this.status != null; + } + + public StatusNested withNewStatus() { + return new StatusNested(null); + } + + public StatusNested withNewStatusLike(V1PriorityLevelConfigurationStatus item) { + return new StatusNested(item); + } + + public StatusNested editStatus() { + return withNewStatusLike(java.util.Optional.ofNullable(buildStatus()).orElse(null)); + } + + public StatusNested editOrNewStatus() { + return withNewStatusLike(java.util.Optional.ofNullable(buildStatus()).orElse(new V1PriorityLevelConfigurationStatusBuilder().build())); + } + + public StatusNested editOrNewStatusLike(V1PriorityLevelConfigurationStatus item) { + return withNewStatusLike(java.util.Optional.ofNullable(buildStatus()).orElse(item)); + } + + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + if (!super.equals(o)) return false; + V1PriorityLevelConfigurationFluent that = (V1PriorityLevelConfigurationFluent) o; + if (!java.util.Objects.equals(apiVersion, that.apiVersion)) return false; + if (!java.util.Objects.equals(kind, that.kind)) return false; + if (!java.util.Objects.equals(metadata, that.metadata)) return false; + if (!java.util.Objects.equals(spec, that.spec)) return false; + if (!java.util.Objects.equals(status, that.status)) return false; + return true; + } + + public int hashCode() { + return java.util.Objects.hash(apiVersion, kind, metadata, spec, status, super.hashCode()); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (apiVersion != null) { sb.append("apiVersion:"); sb.append(apiVersion + ","); } + if (kind != null) { sb.append("kind:"); sb.append(kind + ","); } + if (metadata != null) { sb.append("metadata:"); sb.append(metadata + ","); } + if (spec != null) { sb.append("spec:"); sb.append(spec + ","); } + if (status != null) { sb.append("status:"); sb.append(status); } + sb.append("}"); + return sb.toString(); + } + public class MetadataNested extends V1ObjectMetaFluent> implements Nested{ + MetadataNested(V1ObjectMeta item) { + this.builder = new V1ObjectMetaBuilder(this, item); + } + V1ObjectMetaBuilder builder; + + public N and() { + return (N) V1PriorityLevelConfigurationFluent.this.withMetadata(builder.build()); + } + + public N endMetadata() { + return and(); + } + + + } + public class SpecNested extends V1PriorityLevelConfigurationSpecFluent> implements Nested{ + SpecNested(V1PriorityLevelConfigurationSpec item) { + this.builder = new V1PriorityLevelConfigurationSpecBuilder(this, item); + } + V1PriorityLevelConfigurationSpecBuilder builder; + + public N and() { + return (N) V1PriorityLevelConfigurationFluent.this.withSpec(builder.build()); + } + + public N endSpec() { + return and(); + } + + + } + public class StatusNested extends V1PriorityLevelConfigurationStatusFluent> implements Nested{ + StatusNested(V1PriorityLevelConfigurationStatus item) { + this.builder = new V1PriorityLevelConfigurationStatusBuilder(this, item); + } + V1PriorityLevelConfigurationStatusBuilder builder; + + public N and() { + return (N) V1PriorityLevelConfigurationFluent.this.withStatus(builder.build()); + } + + public N endStatus() { + return and(); + } + + + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PriorityLevelConfigurationListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PriorityLevelConfigurationListBuilder.java new file mode 100644 index 0000000000..62d1f1ce04 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PriorityLevelConfigurationListBuilder.java @@ -0,0 +1,34 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +public class V1PriorityLevelConfigurationListBuilder extends V1PriorityLevelConfigurationListFluent implements VisitableBuilder{ + public V1PriorityLevelConfigurationListBuilder() { + this(new V1PriorityLevelConfigurationList()); + } + + public V1PriorityLevelConfigurationListBuilder(V1PriorityLevelConfigurationListFluent fluent) { + this(fluent, new V1PriorityLevelConfigurationList()); + } + + public V1PriorityLevelConfigurationListBuilder(V1PriorityLevelConfigurationListFluent fluent,V1PriorityLevelConfigurationList instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1PriorityLevelConfigurationListBuilder(V1PriorityLevelConfigurationList instance) { + this.fluent = this; + this.copyInstance(instance); + } + V1PriorityLevelConfigurationListFluent fluent; + + public V1PriorityLevelConfigurationList build() { + V1PriorityLevelConfigurationList buildable = new V1PriorityLevelConfigurationList(); + buildable.setApiVersion(fluent.getApiVersion()); + buildable.setItems(fluent.buildItems()); + buildable.setKind(fluent.getKind()); + buildable.setMetadata(fluent.buildMetadata()); + return buildable; + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PriorityLevelConfigurationListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PriorityLevelConfigurationListFluent.java new file mode 100644 index 0000000000..af3bfc5bd2 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PriorityLevelConfigurationListFluent.java @@ -0,0 +1,331 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.Nested; +import java.util.ArrayList; +import java.lang.String; +import java.util.function.Predicate; +import io.kubernetes.client.fluent.BaseFluent; +import java.util.Iterator; +import java.util.Collection; +import java.lang.Object; +import java.util.List; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1PriorityLevelConfigurationListFluent> extends BaseFluent{ + public V1PriorityLevelConfigurationListFluent() { + } + + public V1PriorityLevelConfigurationListFluent(V1PriorityLevelConfigurationList instance) { + this.copyInstance(instance); + } + private String apiVersion; + private ArrayList items; + private String kind; + private V1ListMetaBuilder metadata; + + protected void copyInstance(V1PriorityLevelConfigurationList instance) { + instance = (instance != null ? instance : new V1PriorityLevelConfigurationList()); + if (instance != null) { + this.withApiVersion(instance.getApiVersion()); + this.withItems(instance.getItems()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); + } + } + + public String getApiVersion() { + return this.apiVersion; + } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + + public boolean hasApiVersion() { + return this.apiVersion != null; + } + + public A addToItems(int index,V1PriorityLevelConfiguration item) { + if (this.items == null) {this.items = new ArrayList();} + V1PriorityLevelConfigurationBuilder builder = new V1PriorityLevelConfigurationBuilder(item); + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.add(index, builder); + } + return (A)this; + } + + public A setToItems(int index,V1PriorityLevelConfiguration item) { + if (this.items == null) {this.items = new ArrayList();} + V1PriorityLevelConfigurationBuilder builder = new V1PriorityLevelConfigurationBuilder(item); + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.set(index, builder); + } + return (A)this; + } + + public A addToItems(io.kubernetes.client.openapi.models.V1PriorityLevelConfiguration... items) { + if (this.items == null) {this.items = new ArrayList();} + for (V1PriorityLevelConfiguration item : items) {V1PriorityLevelConfigurationBuilder builder = new V1PriorityLevelConfigurationBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; + } + + public A addAllToItems(Collection items) { + if (this.items == null) {this.items = new ArrayList();} + for (V1PriorityLevelConfiguration item : items) {V1PriorityLevelConfigurationBuilder builder = new V1PriorityLevelConfigurationBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; + } + + public A removeFromItems(io.kubernetes.client.openapi.models.V1PriorityLevelConfiguration... items) { + if (this.items == null) return (A)this; + for (V1PriorityLevelConfiguration item : items) {V1PriorityLevelConfigurationBuilder builder = new V1PriorityLevelConfigurationBuilder(item);_visitables.get("items").remove(builder); this.items.remove(builder);} return (A)this; + } + + public A removeAllFromItems(Collection items) { + if (this.items == null) return (A)this; + for (V1PriorityLevelConfiguration item : items) {V1PriorityLevelConfigurationBuilder builder = new V1PriorityLevelConfigurationBuilder(item);_visitables.get("items").remove(builder); this.items.remove(builder);} return (A)this; + } + + public A removeMatchingFromItems(Predicate predicate) { + if (items == null) return (A) this; + final Iterator each = items.iterator(); + final List visitables = _visitables.get("items"); + while (each.hasNext()) { + V1PriorityLevelConfigurationBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A)this; + } + + public List buildItems() { + return this.items != null ? build(items) : null; + } + + public V1PriorityLevelConfiguration buildItem(int index) { + return this.items.get(index).build(); + } + + public V1PriorityLevelConfiguration buildFirstItem() { + return this.items.get(0).build(); + } + + public V1PriorityLevelConfiguration buildLastItem() { + return this.items.get(items.size() - 1).build(); + } + + public V1PriorityLevelConfiguration buildMatchingItem(Predicate predicate) { + for (V1PriorityLevelConfigurationBuilder item : items) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; + } + + public boolean hasMatchingItem(Predicate predicate) { + for (V1PriorityLevelConfigurationBuilder item : items) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public A withItems(List items) { + if (this.items != null) { + this._visitables.get("items").clear(); + } + if (items != null) { + this.items = new ArrayList(); + for (V1PriorityLevelConfiguration item : items) { + this.addToItems(item); + } + } else { + this.items = null; + } + return (A) this; + } + + public A withItems(io.kubernetes.client.openapi.models.V1PriorityLevelConfiguration... items) { + if (this.items != null) { + this.items.clear(); + _visitables.remove("items"); + } + if (items != null) { + for (V1PriorityLevelConfiguration item : items) { + this.addToItems(item); + } + } + return (A) this; + } + + public boolean hasItems() { + return this.items != null && !this.items.isEmpty(); + } + + public ItemsNested addNewItem() { + return new ItemsNested(-1, null); + } + + public ItemsNested addNewItemLike(V1PriorityLevelConfiguration item) { + return new ItemsNested(-1, item); + } + + public ItemsNested setNewItemLike(int index,V1PriorityLevelConfiguration item) { + return new ItemsNested(index, item); + } + + public ItemsNested editItem(int index) { + if (items.size() <= index) throw new RuntimeException("Can't edit items. Index exceeds size."); + return setNewItemLike(index, buildItem(index)); + } + + public ItemsNested editFirstItem() { + if (items.size() == 0) throw new RuntimeException("Can't edit first items. The list is empty."); + return setNewItemLike(0, buildItem(0)); + } + + public ItemsNested editLastItem() { + int index = items.size() - 1; + if (index < 0) throw new RuntimeException("Can't edit last items. The list is empty."); + return setNewItemLike(index, buildItem(index)); + } + + public ItemsNested editMatchingItem(Predicate predicate) { + int index = -1; + for (int i=0;i withNewMetadata() { + return new MetadataNested(null); + } + + public MetadataNested withNewMetadataLike(V1ListMeta item) { + return new MetadataNested(item); + } + + public MetadataNested editMetadata() { + return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(null)); + } + + public MetadataNested editOrNewMetadata() { + return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(new V1ListMetaBuilder().build())); + } + + public MetadataNested editOrNewMetadataLike(V1ListMeta item) { + return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(item)); + } + + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + if (!super.equals(o)) return false; + V1PriorityLevelConfigurationListFluent that = (V1PriorityLevelConfigurationListFluent) o; + if (!java.util.Objects.equals(apiVersion, that.apiVersion)) return false; + if (!java.util.Objects.equals(items, that.items)) return false; + if (!java.util.Objects.equals(kind, that.kind)) return false; + if (!java.util.Objects.equals(metadata, that.metadata)) return false; + return true; + } + + public int hashCode() { + return java.util.Objects.hash(apiVersion, items, kind, metadata, super.hashCode()); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (apiVersion != null) { sb.append("apiVersion:"); sb.append(apiVersion + ","); } + if (items != null && !items.isEmpty()) { sb.append("items:"); sb.append(items + ","); } + if (kind != null) { sb.append("kind:"); sb.append(kind + ","); } + if (metadata != null) { sb.append("metadata:"); sb.append(metadata); } + sb.append("}"); + return sb.toString(); + } + public class ItemsNested extends V1PriorityLevelConfigurationFluent> implements Nested{ + ItemsNested(int index,V1PriorityLevelConfiguration item) { + this.index = index; + this.builder = new V1PriorityLevelConfigurationBuilder(this, item); + } + V1PriorityLevelConfigurationBuilder builder; + int index; + + public N and() { + return (N) V1PriorityLevelConfigurationListFluent.this.setToItems(index,builder.build()); + } + + public N endItem() { + return and(); + } + + + } + public class MetadataNested extends V1ListMetaFluent> implements Nested{ + MetadataNested(V1ListMeta item) { + this.builder = new V1ListMetaBuilder(this, item); + } + V1ListMetaBuilder builder; + + public N and() { + return (N) V1PriorityLevelConfigurationListFluent.this.withMetadata(builder.build()); + } + + public N endMetadata() { + return and(); + } + + + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PriorityLevelConfigurationReferenceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PriorityLevelConfigurationReferenceBuilder.java new file mode 100644 index 0000000000..6391dff9f3 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PriorityLevelConfigurationReferenceBuilder.java @@ -0,0 +1,31 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +public class V1PriorityLevelConfigurationReferenceBuilder extends V1PriorityLevelConfigurationReferenceFluent implements VisitableBuilder{ + public V1PriorityLevelConfigurationReferenceBuilder() { + this(new V1PriorityLevelConfigurationReference()); + } + + public V1PriorityLevelConfigurationReferenceBuilder(V1PriorityLevelConfigurationReferenceFluent fluent) { + this(fluent, new V1PriorityLevelConfigurationReference()); + } + + public V1PriorityLevelConfigurationReferenceBuilder(V1PriorityLevelConfigurationReferenceFluent fluent,V1PriorityLevelConfigurationReference instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1PriorityLevelConfigurationReferenceBuilder(V1PriorityLevelConfigurationReference instance) { + this.fluent = this; + this.copyInstance(instance); + } + V1PriorityLevelConfigurationReferenceFluent fluent; + + public V1PriorityLevelConfigurationReference build() { + V1PriorityLevelConfigurationReference buildable = new V1PriorityLevelConfigurationReference(); + buildable.setName(fluent.getName()); + return buildable; + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PriorityLevelConfigurationReferenceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PriorityLevelConfigurationReferenceFluent.java new file mode 100644 index 0000000000..4425474dc4 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PriorityLevelConfigurationReferenceFluent.java @@ -0,0 +1,63 @@ +package io.kubernetes.client.openapi.models; + +import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Object; +import java.lang.String; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1PriorityLevelConfigurationReferenceFluent> extends BaseFluent{ + public V1PriorityLevelConfigurationReferenceFluent() { + } + + public V1PriorityLevelConfigurationReferenceFluent(V1PriorityLevelConfigurationReference instance) { + this.copyInstance(instance); + } + private String name; + + protected void copyInstance(V1PriorityLevelConfigurationReference instance) { + instance = (instance != null ? instance : new V1PriorityLevelConfigurationReference()); + if (instance != null) { + this.withName(instance.getName()); + } + } + + public String getName() { + return this.name; + } + + public A withName(String name) { + this.name = name; + return (A) this; + } + + public boolean hasName() { + return this.name != null; + } + + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + if (!super.equals(o)) return false; + V1PriorityLevelConfigurationReferenceFluent that = (V1PriorityLevelConfigurationReferenceFluent) o; + if (!java.util.Objects.equals(name, that.name)) return false; + return true; + } + + public int hashCode() { + return java.util.Objects.hash(name, super.hashCode()); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (name != null) { sb.append("name:"); sb.append(name); } + sb.append("}"); + return sb.toString(); + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PriorityLevelConfigurationSpecBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PriorityLevelConfigurationSpecBuilder.java new file mode 100644 index 0000000000..1e7b626fb9 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PriorityLevelConfigurationSpecBuilder.java @@ -0,0 +1,33 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +public class V1PriorityLevelConfigurationSpecBuilder extends V1PriorityLevelConfigurationSpecFluent implements VisitableBuilder{ + public V1PriorityLevelConfigurationSpecBuilder() { + this(new V1PriorityLevelConfigurationSpec()); + } + + public V1PriorityLevelConfigurationSpecBuilder(V1PriorityLevelConfigurationSpecFluent fluent) { + this(fluent, new V1PriorityLevelConfigurationSpec()); + } + + public V1PriorityLevelConfigurationSpecBuilder(V1PriorityLevelConfigurationSpecFluent fluent,V1PriorityLevelConfigurationSpec instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1PriorityLevelConfigurationSpecBuilder(V1PriorityLevelConfigurationSpec instance) { + this.fluent = this; + this.copyInstance(instance); + } + V1PriorityLevelConfigurationSpecFluent fluent; + + public V1PriorityLevelConfigurationSpec build() { + V1PriorityLevelConfigurationSpec buildable = new V1PriorityLevelConfigurationSpec(); + buildable.setExempt(fluent.buildExempt()); + buildable.setLimited(fluent.buildLimited()); + buildable.setType(fluent.getType()); + return buildable; + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PriorityLevelConfigurationSpecFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PriorityLevelConfigurationSpecFluent.java new file mode 100644 index 0000000000..a1cf2e5210 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PriorityLevelConfigurationSpecFluent.java @@ -0,0 +1,183 @@ +package io.kubernetes.client.openapi.models; + +import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.Nested; +import java.lang.String; +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Object; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1PriorityLevelConfigurationSpecFluent> extends BaseFluent{ + public V1PriorityLevelConfigurationSpecFluent() { + } + + public V1PriorityLevelConfigurationSpecFluent(V1PriorityLevelConfigurationSpec instance) { + this.copyInstance(instance); + } + private V1ExemptPriorityLevelConfigurationBuilder exempt; + private V1LimitedPriorityLevelConfigurationBuilder limited; + private String type; + + protected void copyInstance(V1PriorityLevelConfigurationSpec instance) { + instance = (instance != null ? instance : new V1PriorityLevelConfigurationSpec()); + if (instance != null) { + this.withExempt(instance.getExempt()); + this.withLimited(instance.getLimited()); + this.withType(instance.getType()); + } + } + + public V1ExemptPriorityLevelConfiguration buildExempt() { + return this.exempt != null ? this.exempt.build() : null; + } + + public A withExempt(V1ExemptPriorityLevelConfiguration exempt) { + this._visitables.remove("exempt"); + if (exempt != null) { + this.exempt = new V1ExemptPriorityLevelConfigurationBuilder(exempt); + this._visitables.get("exempt").add(this.exempt); + } else { + this.exempt = null; + this._visitables.get("exempt").remove(this.exempt); + } + return (A) this; + } + + public boolean hasExempt() { + return this.exempt != null; + } + + public ExemptNested withNewExempt() { + return new ExemptNested(null); + } + + public ExemptNested withNewExemptLike(V1ExemptPriorityLevelConfiguration item) { + return new ExemptNested(item); + } + + public ExemptNested editExempt() { + return withNewExemptLike(java.util.Optional.ofNullable(buildExempt()).orElse(null)); + } + + public ExemptNested editOrNewExempt() { + return withNewExemptLike(java.util.Optional.ofNullable(buildExempt()).orElse(new V1ExemptPriorityLevelConfigurationBuilder().build())); + } + + public ExemptNested editOrNewExemptLike(V1ExemptPriorityLevelConfiguration item) { + return withNewExemptLike(java.util.Optional.ofNullable(buildExempt()).orElse(item)); + } + + public V1LimitedPriorityLevelConfiguration buildLimited() { + return this.limited != null ? this.limited.build() : null; + } + + public A withLimited(V1LimitedPriorityLevelConfiguration limited) { + this._visitables.remove("limited"); + if (limited != null) { + this.limited = new V1LimitedPriorityLevelConfigurationBuilder(limited); + this._visitables.get("limited").add(this.limited); + } else { + this.limited = null; + this._visitables.get("limited").remove(this.limited); + } + return (A) this; + } + + public boolean hasLimited() { + return this.limited != null; + } + + public LimitedNested withNewLimited() { + return new LimitedNested(null); + } + + public LimitedNested withNewLimitedLike(V1LimitedPriorityLevelConfiguration item) { + return new LimitedNested(item); + } + + public LimitedNested editLimited() { + return withNewLimitedLike(java.util.Optional.ofNullable(buildLimited()).orElse(null)); + } + + public LimitedNested editOrNewLimited() { + return withNewLimitedLike(java.util.Optional.ofNullable(buildLimited()).orElse(new V1LimitedPriorityLevelConfigurationBuilder().build())); + } + + public LimitedNested editOrNewLimitedLike(V1LimitedPriorityLevelConfiguration item) { + return withNewLimitedLike(java.util.Optional.ofNullable(buildLimited()).orElse(item)); + } + + public String getType() { + return this.type; + } + + public A withType(String type) { + this.type = type; + return (A) this; + } + + public boolean hasType() { + return this.type != null; + } + + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + if (!super.equals(o)) return false; + V1PriorityLevelConfigurationSpecFluent that = (V1PriorityLevelConfigurationSpecFluent) o; + if (!java.util.Objects.equals(exempt, that.exempt)) return false; + if (!java.util.Objects.equals(limited, that.limited)) return false; + if (!java.util.Objects.equals(type, that.type)) return false; + return true; + } + + public int hashCode() { + return java.util.Objects.hash(exempt, limited, type, super.hashCode()); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (exempt != null) { sb.append("exempt:"); sb.append(exempt + ","); } + if (limited != null) { sb.append("limited:"); sb.append(limited + ","); } + if (type != null) { sb.append("type:"); sb.append(type); } + sb.append("}"); + return sb.toString(); + } + public class ExemptNested extends V1ExemptPriorityLevelConfigurationFluent> implements Nested{ + ExemptNested(V1ExemptPriorityLevelConfiguration item) { + this.builder = new V1ExemptPriorityLevelConfigurationBuilder(this, item); + } + V1ExemptPriorityLevelConfigurationBuilder builder; + + public N and() { + return (N) V1PriorityLevelConfigurationSpecFluent.this.withExempt(builder.build()); + } + + public N endExempt() { + return and(); + } + + + } + public class LimitedNested extends V1LimitedPriorityLevelConfigurationFluent> implements Nested{ + LimitedNested(V1LimitedPriorityLevelConfiguration item) { + this.builder = new V1LimitedPriorityLevelConfigurationBuilder(this, item); + } + V1LimitedPriorityLevelConfigurationBuilder builder; + + public N and() { + return (N) V1PriorityLevelConfigurationSpecFluent.this.withLimited(builder.build()); + } + + public N endLimited() { + return and(); + } + + + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PriorityLevelConfigurationStatusBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PriorityLevelConfigurationStatusBuilder.java new file mode 100644 index 0000000000..33ddf57bb2 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PriorityLevelConfigurationStatusBuilder.java @@ -0,0 +1,31 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +public class V1PriorityLevelConfigurationStatusBuilder extends V1PriorityLevelConfigurationStatusFluent implements VisitableBuilder{ + public V1PriorityLevelConfigurationStatusBuilder() { + this(new V1PriorityLevelConfigurationStatus()); + } + + public V1PriorityLevelConfigurationStatusBuilder(V1PriorityLevelConfigurationStatusFluent fluent) { + this(fluent, new V1PriorityLevelConfigurationStatus()); + } + + public V1PriorityLevelConfigurationStatusBuilder(V1PriorityLevelConfigurationStatusFluent fluent,V1PriorityLevelConfigurationStatus instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1PriorityLevelConfigurationStatusBuilder(V1PriorityLevelConfigurationStatus instance) { + this.fluent = this; + this.copyInstance(instance); + } + V1PriorityLevelConfigurationStatusFluent fluent; + + public V1PriorityLevelConfigurationStatus build() { + V1PriorityLevelConfigurationStatus buildable = new V1PriorityLevelConfigurationStatus(); + buildable.setConditions(fluent.buildConditions()); + return buildable; + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PriorityLevelConfigurationStatusFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PriorityLevelConfigurationStatusFluent.java new file mode 100644 index 0000000000..c11264b48f --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PriorityLevelConfigurationStatusFluent.java @@ -0,0 +1,237 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.Nested; +import java.util.ArrayList; +import java.lang.String; +import java.util.function.Predicate; +import io.kubernetes.client.fluent.BaseFluent; +import java.util.Iterator; +import java.util.Collection; +import java.lang.Object; +import java.util.List; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1PriorityLevelConfigurationStatusFluent> extends BaseFluent{ + public V1PriorityLevelConfigurationStatusFluent() { + } + + public V1PriorityLevelConfigurationStatusFluent(V1PriorityLevelConfigurationStatus instance) { + this.copyInstance(instance); + } + private ArrayList conditions; + + protected void copyInstance(V1PriorityLevelConfigurationStatus instance) { + instance = (instance != null ? instance : new V1PriorityLevelConfigurationStatus()); + if (instance != null) { + this.withConditions(instance.getConditions()); + } + } + + public A addToConditions(int index,V1PriorityLevelConfigurationCondition item) { + if (this.conditions == null) {this.conditions = new ArrayList();} + V1PriorityLevelConfigurationConditionBuilder builder = new V1PriorityLevelConfigurationConditionBuilder(item); + if (index < 0 || index >= conditions.size()) { + _visitables.get("conditions").add(builder); + conditions.add(builder); + } else { + _visitables.get("conditions").add(builder); + conditions.add(index, builder); + } + return (A)this; + } + + public A setToConditions(int index,V1PriorityLevelConfigurationCondition item) { + if (this.conditions == null) {this.conditions = new ArrayList();} + V1PriorityLevelConfigurationConditionBuilder builder = new V1PriorityLevelConfigurationConditionBuilder(item); + if (index < 0 || index >= conditions.size()) { + _visitables.get("conditions").add(builder); + conditions.add(builder); + } else { + _visitables.get("conditions").add(builder); + conditions.set(index, builder); + } + return (A)this; + } + + public A addToConditions(io.kubernetes.client.openapi.models.V1PriorityLevelConfigurationCondition... items) { + if (this.conditions == null) {this.conditions = new ArrayList();} + for (V1PriorityLevelConfigurationCondition item : items) {V1PriorityLevelConfigurationConditionBuilder builder = new V1PriorityLevelConfigurationConditionBuilder(item);_visitables.get("conditions").add(builder);this.conditions.add(builder);} return (A)this; + } + + public A addAllToConditions(Collection items) { + if (this.conditions == null) {this.conditions = new ArrayList();} + for (V1PriorityLevelConfigurationCondition item : items) {V1PriorityLevelConfigurationConditionBuilder builder = new V1PriorityLevelConfigurationConditionBuilder(item);_visitables.get("conditions").add(builder);this.conditions.add(builder);} return (A)this; + } + + public A removeFromConditions(io.kubernetes.client.openapi.models.V1PriorityLevelConfigurationCondition... items) { + if (this.conditions == null) return (A)this; + for (V1PriorityLevelConfigurationCondition item : items) {V1PriorityLevelConfigurationConditionBuilder builder = new V1PriorityLevelConfigurationConditionBuilder(item);_visitables.get("conditions").remove(builder); this.conditions.remove(builder);} return (A)this; + } + + public A removeAllFromConditions(Collection items) { + if (this.conditions == null) return (A)this; + for (V1PriorityLevelConfigurationCondition item : items) {V1PriorityLevelConfigurationConditionBuilder builder = new V1PriorityLevelConfigurationConditionBuilder(item);_visitables.get("conditions").remove(builder); this.conditions.remove(builder);} return (A)this; + } + + public A removeMatchingFromConditions(Predicate predicate) { + if (conditions == null) return (A) this; + final Iterator each = conditions.iterator(); + final List visitables = _visitables.get("conditions"); + while (each.hasNext()) { + V1PriorityLevelConfigurationConditionBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A)this; + } + + public List buildConditions() { + return this.conditions != null ? build(conditions) : null; + } + + public V1PriorityLevelConfigurationCondition buildCondition(int index) { + return this.conditions.get(index).build(); + } + + public V1PriorityLevelConfigurationCondition buildFirstCondition() { + return this.conditions.get(0).build(); + } + + public V1PriorityLevelConfigurationCondition buildLastCondition() { + return this.conditions.get(conditions.size() - 1).build(); + } + + public V1PriorityLevelConfigurationCondition buildMatchingCondition(Predicate predicate) { + for (V1PriorityLevelConfigurationConditionBuilder item : conditions) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; + } + + public boolean hasMatchingCondition(Predicate predicate) { + for (V1PriorityLevelConfigurationConditionBuilder item : conditions) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public A withConditions(List conditions) { + if (this.conditions != null) { + this._visitables.get("conditions").clear(); + } + if (conditions != null) { + this.conditions = new ArrayList(); + for (V1PriorityLevelConfigurationCondition item : conditions) { + this.addToConditions(item); + } + } else { + this.conditions = null; + } + return (A) this; + } + + public A withConditions(io.kubernetes.client.openapi.models.V1PriorityLevelConfigurationCondition... conditions) { + if (this.conditions != null) { + this.conditions.clear(); + _visitables.remove("conditions"); + } + if (conditions != null) { + for (V1PriorityLevelConfigurationCondition item : conditions) { + this.addToConditions(item); + } + } + return (A) this; + } + + public boolean hasConditions() { + return this.conditions != null && !this.conditions.isEmpty(); + } + + public ConditionsNested addNewCondition() { + return new ConditionsNested(-1, null); + } + + public ConditionsNested addNewConditionLike(V1PriorityLevelConfigurationCondition item) { + return new ConditionsNested(-1, item); + } + + public ConditionsNested setNewConditionLike(int index,V1PriorityLevelConfigurationCondition item) { + return new ConditionsNested(index, item); + } + + public ConditionsNested editCondition(int index) { + if (conditions.size() <= index) throw new RuntimeException("Can't edit conditions. Index exceeds size."); + return setNewConditionLike(index, buildCondition(index)); + } + + public ConditionsNested editFirstCondition() { + if (conditions.size() == 0) throw new RuntimeException("Can't edit first conditions. The list is empty."); + return setNewConditionLike(0, buildCondition(0)); + } + + public ConditionsNested editLastCondition() { + int index = conditions.size() - 1; + if (index < 0) throw new RuntimeException("Can't edit last conditions. The list is empty."); + return setNewConditionLike(index, buildCondition(index)); + } + + public ConditionsNested editMatchingCondition(Predicate predicate) { + int index = -1; + for (int i=0;i extends V1PriorityLevelConfigurationConditionFluent> implements Nested{ + ConditionsNested(int index,V1PriorityLevelConfigurationCondition item) { + this.index = index; + this.builder = new V1PriorityLevelConfigurationConditionBuilder(this, item); + } + V1PriorityLevelConfigurationConditionBuilder builder; + int index; + + public N and() { + return (N) V1PriorityLevelConfigurationStatusFluent.this.setToConditions(index,builder.build()); + } + + public N endCondition() { + return and(); + } + + + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ProjectedVolumeSourceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ProjectedVolumeSourceFluent.java index a46c8cd331..6ee65354f5 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ProjectedVolumeSourceFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ProjectedVolumeSourceFluent.java @@ -51,14 +51,26 @@ public boolean hasDefaultMode() { public A addToSources(int index,V1VolumeProjection item) { if (this.sources == null) {this.sources = new ArrayList();} V1VolumeProjectionBuilder builder = new V1VolumeProjectionBuilder(item); - if (index < 0 || index >= sources.size()) { _visitables.get("sources").add(builder); sources.add(builder); } else { _visitables.get("sources").add(index, builder); sources.add(index, builder);} + if (index < 0 || index >= sources.size()) { + _visitables.get("sources").add(builder); + sources.add(builder); + } else { + _visitables.get("sources").add(builder); + sources.add(index, builder); + } return (A)this; } public A setToSources(int index,V1VolumeProjection item) { if (this.sources == null) {this.sources = new ArrayList();} V1VolumeProjectionBuilder builder = new V1VolumeProjectionBuilder(item); - if (index < 0 || index >= sources.size()) { _visitables.get("sources").add(builder); sources.add(builder); } else { _visitables.get("sources").set(index, builder); sources.set(index, builder);} + if (index < 0 || index >= sources.size()) { + _visitables.get("sources").add(builder); + sources.add(builder); + } else { + _visitables.get("sources").add(builder); + sources.set(index, builder); + } return (A)this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1QueuingConfigurationBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1QueuingConfigurationBuilder.java new file mode 100644 index 0000000000..13b6520682 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1QueuingConfigurationBuilder.java @@ -0,0 +1,33 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +public class V1QueuingConfigurationBuilder extends V1QueuingConfigurationFluent implements VisitableBuilder{ + public V1QueuingConfigurationBuilder() { + this(new V1QueuingConfiguration()); + } + + public V1QueuingConfigurationBuilder(V1QueuingConfigurationFluent fluent) { + this(fluent, new V1QueuingConfiguration()); + } + + public V1QueuingConfigurationBuilder(V1QueuingConfigurationFluent fluent,V1QueuingConfiguration instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1QueuingConfigurationBuilder(V1QueuingConfiguration instance) { + this.fluent = this; + this.copyInstance(instance); + } + V1QueuingConfigurationFluent fluent; + + public V1QueuingConfiguration build() { + V1QueuingConfiguration buildable = new V1QueuingConfiguration(); + buildable.setHandSize(fluent.getHandSize()); + buildable.setQueueLengthLimit(fluent.getQueueLengthLimit()); + buildable.setQueues(fluent.getQueues()); + return buildable; + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1QueuingConfigurationFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1QueuingConfigurationFluent.java new file mode 100644 index 0000000000..a4113e0279 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1QueuingConfigurationFluent.java @@ -0,0 +1,98 @@ +package io.kubernetes.client.openapi.models; + +import java.lang.Integer; +import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Object; +import java.lang.String; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1QueuingConfigurationFluent> extends BaseFluent{ + public V1QueuingConfigurationFluent() { + } + + public V1QueuingConfigurationFluent(V1QueuingConfiguration instance) { + this.copyInstance(instance); + } + private Integer handSize; + private Integer queueLengthLimit; + private Integer queues; + + protected void copyInstance(V1QueuingConfiguration instance) { + instance = (instance != null ? instance : new V1QueuingConfiguration()); + if (instance != null) { + this.withHandSize(instance.getHandSize()); + this.withQueueLengthLimit(instance.getQueueLengthLimit()); + this.withQueues(instance.getQueues()); + } + } + + public Integer getHandSize() { + return this.handSize; + } + + public A withHandSize(Integer handSize) { + this.handSize = handSize; + return (A) this; + } + + public boolean hasHandSize() { + return this.handSize != null; + } + + public Integer getQueueLengthLimit() { + return this.queueLengthLimit; + } + + public A withQueueLengthLimit(Integer queueLengthLimit) { + this.queueLengthLimit = queueLengthLimit; + return (A) this; + } + + public boolean hasQueueLengthLimit() { + return this.queueLengthLimit != null; + } + + public Integer getQueues() { + return this.queues; + } + + public A withQueues(Integer queues) { + this.queues = queues; + return (A) this; + } + + public boolean hasQueues() { + return this.queues != null; + } + + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + if (!super.equals(o)) return false; + V1QueuingConfigurationFluent that = (V1QueuingConfigurationFluent) o; + if (!java.util.Objects.equals(handSize, that.handSize)) return false; + if (!java.util.Objects.equals(queueLengthLimit, that.queueLengthLimit)) return false; + if (!java.util.Objects.equals(queues, that.queues)) return false; + return true; + } + + public int hashCode() { + return java.util.Objects.hash(handSize, queueLengthLimit, queues, super.hashCode()); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (handSize != null) { sb.append("handSize:"); sb.append(handSize + ","); } + if (queueLengthLimit != null) { sb.append("queueLengthLimit:"); sb.append(queueLengthLimit + ","); } + if (queues != null) { sb.append("queues:"); sb.append(queues); } + sb.append("}"); + return sb.toString(); + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicaSetListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicaSetListFluent.java index 084526b939..8a243c0277 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicaSetListFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicaSetListFluent.java @@ -54,14 +54,26 @@ public boolean hasApiVersion() { public A addToItems(int index,V1ReplicaSet item) { if (this.items == null) {this.items = new ArrayList();} V1ReplicaSetBuilder builder = new V1ReplicaSetBuilder(item); - if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); items.add(builder); } else { _visitables.get("items").add(index, builder); items.add(index, builder);} + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.add(index, builder); + } return (A)this; } public A setToItems(int index,V1ReplicaSet item) { if (this.items == null) {this.items = new ArrayList();} V1ReplicaSetBuilder builder = new V1ReplicaSetBuilder(item); - if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); items.add(builder); } else { _visitables.get("items").set(index, builder); items.set(index, builder);} + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.set(index, builder); + } return (A)this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicaSetStatusBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicaSetStatusBuilder.java index ae32760011..08294daaa4 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicaSetStatusBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicaSetStatusBuilder.java @@ -29,6 +29,7 @@ public V1ReplicaSetStatus build() { buildable.setObservedGeneration(fluent.getObservedGeneration()); buildable.setReadyReplicas(fluent.getReadyReplicas()); buildable.setReplicas(fluent.getReplicas()); + buildable.setTerminatingReplicas(fluent.getTerminatingReplicas()); return buildable; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicaSetStatusFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicaSetStatusFluent.java index 8e25405f5b..01ee937d2b 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicaSetStatusFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicaSetStatusFluent.java @@ -31,6 +31,7 @@ public V1ReplicaSetStatusFluent(V1ReplicaSetStatus instance) { private Long observedGeneration; private Integer readyReplicas; private Integer replicas; + private Integer terminatingReplicas; protected void copyInstance(V1ReplicaSetStatus instance) { instance = (instance != null ? instance : new V1ReplicaSetStatus()); @@ -41,6 +42,7 @@ protected void copyInstance(V1ReplicaSetStatus instance) { this.withObservedGeneration(instance.getObservedGeneration()); this.withReadyReplicas(instance.getReadyReplicas()); this.withReplicas(instance.getReplicas()); + this.withTerminatingReplicas(instance.getTerminatingReplicas()); } } @@ -60,14 +62,26 @@ public boolean hasAvailableReplicas() { public A addToConditions(int index,V1ReplicaSetCondition item) { if (this.conditions == null) {this.conditions = new ArrayList();} V1ReplicaSetConditionBuilder builder = new V1ReplicaSetConditionBuilder(item); - if (index < 0 || index >= conditions.size()) { _visitables.get("conditions").add(builder); conditions.add(builder); } else { _visitables.get("conditions").add(index, builder); conditions.add(index, builder);} + if (index < 0 || index >= conditions.size()) { + _visitables.get("conditions").add(builder); + conditions.add(builder); + } else { + _visitables.get("conditions").add(builder); + conditions.add(index, builder); + } return (A)this; } public A setToConditions(int index,V1ReplicaSetCondition item) { if (this.conditions == null) {this.conditions = new ArrayList();} V1ReplicaSetConditionBuilder builder = new V1ReplicaSetConditionBuilder(item); - if (index < 0 || index >= conditions.size()) { _visitables.get("conditions").add(builder); conditions.add(builder); } else { _visitables.get("conditions").set(index, builder); conditions.set(index, builder);} + if (index < 0 || index >= conditions.size()) { + _visitables.get("conditions").add(builder); + conditions.add(builder); + } else { + _visitables.get("conditions").add(builder); + conditions.set(index, builder); + } return (A)this; } @@ -260,6 +274,19 @@ public boolean hasReplicas() { return this.replicas != null; } + public Integer getTerminatingReplicas() { + return this.terminatingReplicas; + } + + public A withTerminatingReplicas(Integer terminatingReplicas) { + this.terminatingReplicas = terminatingReplicas; + return (A) this; + } + + public boolean hasTerminatingReplicas() { + return this.terminatingReplicas != null; + } + public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; @@ -271,11 +298,12 @@ public boolean equals(Object o) { if (!java.util.Objects.equals(observedGeneration, that.observedGeneration)) return false; if (!java.util.Objects.equals(readyReplicas, that.readyReplicas)) return false; if (!java.util.Objects.equals(replicas, that.replicas)) return false; + if (!java.util.Objects.equals(terminatingReplicas, that.terminatingReplicas)) return false; return true; } public int hashCode() { - return java.util.Objects.hash(availableReplicas, conditions, fullyLabeledReplicas, observedGeneration, readyReplicas, replicas, super.hashCode()); + return java.util.Objects.hash(availableReplicas, conditions, fullyLabeledReplicas, observedGeneration, readyReplicas, replicas, terminatingReplicas, super.hashCode()); } public String toString() { @@ -286,7 +314,8 @@ public String toString() { if (fullyLabeledReplicas != null) { sb.append("fullyLabeledReplicas:"); sb.append(fullyLabeledReplicas + ","); } if (observedGeneration != null) { sb.append("observedGeneration:"); sb.append(observedGeneration + ","); } if (readyReplicas != null) { sb.append("readyReplicas:"); sb.append(readyReplicas + ","); } - if (replicas != null) { sb.append("replicas:"); sb.append(replicas); } + if (replicas != null) { sb.append("replicas:"); sb.append(replicas + ","); } + if (terminatingReplicas != null) { sb.append("terminatingReplicas:"); sb.append(terminatingReplicas); } sb.append("}"); return sb.toString(); } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicationControllerListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicationControllerListFluent.java index 1ab1d87df0..de9d9ec4d5 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicationControllerListFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicationControllerListFluent.java @@ -54,14 +54,26 @@ public boolean hasApiVersion() { public A addToItems(int index,V1ReplicationController item) { if (this.items == null) {this.items = new ArrayList();} V1ReplicationControllerBuilder builder = new V1ReplicationControllerBuilder(item); - if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); items.add(builder); } else { _visitables.get("items").add(index, builder); items.add(index, builder);} + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.add(index, builder); + } return (A)this; } public A setToItems(int index,V1ReplicationController item) { if (this.items == null) {this.items = new ArrayList();} V1ReplicationControllerBuilder builder = new V1ReplicationControllerBuilder(item); - if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); items.add(builder); } else { _visitables.get("items").set(index, builder); items.set(index, builder);} + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.set(index, builder); + } return (A)this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicationControllerStatusFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicationControllerStatusFluent.java index 8e8c7a36f3..cb91fe9fc3 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicationControllerStatusFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicationControllerStatusFluent.java @@ -60,14 +60,26 @@ public boolean hasAvailableReplicas() { public A addToConditions(int index,V1ReplicationControllerCondition item) { if (this.conditions == null) {this.conditions = new ArrayList();} V1ReplicationControllerConditionBuilder builder = new V1ReplicationControllerConditionBuilder(item); - if (index < 0 || index >= conditions.size()) { _visitables.get("conditions").add(builder); conditions.add(builder); } else { _visitables.get("conditions").add(index, builder); conditions.add(index, builder);} + if (index < 0 || index >= conditions.size()) { + _visitables.get("conditions").add(builder); + conditions.add(builder); + } else { + _visitables.get("conditions").add(builder); + conditions.add(index, builder); + } return (A)this; } public A setToConditions(int index,V1ReplicationControllerCondition item) { if (this.conditions == null) {this.conditions = new ArrayList();} V1ReplicationControllerConditionBuilder builder = new V1ReplicationControllerConditionBuilder(item); - if (index < 0 || index >= conditions.size()) { _visitables.get("conditions").add(builder); conditions.add(builder); } else { _visitables.get("conditions").set(index, builder); conditions.set(index, builder);} + if (index < 0 || index >= conditions.size()) { + _visitables.get("conditions").add(builder); + conditions.add(builder); + } else { + _visitables.get("conditions").add(builder); + conditions.set(index, builder); + } return (A)this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceAttributesBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceAttributesBuilder.java index 340563355a..67fad7e3c0 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceAttributesBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceAttributesBuilder.java @@ -23,7 +23,9 @@ public V1ResourceAttributesBuilder(V1ResourceAttributes instance) { public V1ResourceAttributes build() { V1ResourceAttributes buildable = new V1ResourceAttributes(); + buildable.setFieldSelector(fluent.buildFieldSelector()); buildable.setGroup(fluent.getGroup()); + buildable.setLabelSelector(fluent.buildLabelSelector()); buildable.setName(fluent.getName()); buildable.setNamespace(fluent.getNamespace()); buildable.setResource(fluent.getResource()); diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceAttributesFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceAttributesFluent.java index c6512d09ae..8222009d10 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceAttributesFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceAttributesFluent.java @@ -1,9 +1,10 @@ package io.kubernetes.client.openapi.models; import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.Nested; +import java.lang.String; import io.kubernetes.client.fluent.BaseFluent; import java.lang.Object; -import java.lang.String; /** * Generated @@ -16,7 +17,9 @@ public V1ResourceAttributesFluent() { public V1ResourceAttributesFluent(V1ResourceAttributes instance) { this.copyInstance(instance); } + private V1FieldSelectorAttributesBuilder fieldSelector; private String group; + private V1LabelSelectorAttributesBuilder labelSelector; private String name; private String namespace; private String resource; @@ -27,7 +30,9 @@ public V1ResourceAttributesFluent(V1ResourceAttributes instance) { protected void copyInstance(V1ResourceAttributes instance) { instance = (instance != null ? instance : new V1ResourceAttributes()); if (instance != null) { + this.withFieldSelector(instance.getFieldSelector()); this.withGroup(instance.getGroup()); + this.withLabelSelector(instance.getLabelSelector()); this.withName(instance.getName()); this.withNamespace(instance.getNamespace()); this.withResource(instance.getResource()); @@ -37,6 +42,46 @@ protected void copyInstance(V1ResourceAttributes instance) { } } + public V1FieldSelectorAttributes buildFieldSelector() { + return this.fieldSelector != null ? this.fieldSelector.build() : null; + } + + public A withFieldSelector(V1FieldSelectorAttributes fieldSelector) { + this._visitables.remove("fieldSelector"); + if (fieldSelector != null) { + this.fieldSelector = new V1FieldSelectorAttributesBuilder(fieldSelector); + this._visitables.get("fieldSelector").add(this.fieldSelector); + } else { + this.fieldSelector = null; + this._visitables.get("fieldSelector").remove(this.fieldSelector); + } + return (A) this; + } + + public boolean hasFieldSelector() { + return this.fieldSelector != null; + } + + public FieldSelectorNested withNewFieldSelector() { + return new FieldSelectorNested(null); + } + + public FieldSelectorNested withNewFieldSelectorLike(V1FieldSelectorAttributes item) { + return new FieldSelectorNested(item); + } + + public FieldSelectorNested editFieldSelector() { + return withNewFieldSelectorLike(java.util.Optional.ofNullable(buildFieldSelector()).orElse(null)); + } + + public FieldSelectorNested editOrNewFieldSelector() { + return withNewFieldSelectorLike(java.util.Optional.ofNullable(buildFieldSelector()).orElse(new V1FieldSelectorAttributesBuilder().build())); + } + + public FieldSelectorNested editOrNewFieldSelectorLike(V1FieldSelectorAttributes item) { + return withNewFieldSelectorLike(java.util.Optional.ofNullable(buildFieldSelector()).orElse(item)); + } + public String getGroup() { return this.group; } @@ -50,6 +95,46 @@ public boolean hasGroup() { return this.group != null; } + public V1LabelSelectorAttributes buildLabelSelector() { + return this.labelSelector != null ? this.labelSelector.build() : null; + } + + public A withLabelSelector(V1LabelSelectorAttributes labelSelector) { + this._visitables.remove("labelSelector"); + if (labelSelector != null) { + this.labelSelector = new V1LabelSelectorAttributesBuilder(labelSelector); + this._visitables.get("labelSelector").add(this.labelSelector); + } else { + this.labelSelector = null; + this._visitables.get("labelSelector").remove(this.labelSelector); + } + return (A) this; + } + + public boolean hasLabelSelector() { + return this.labelSelector != null; + } + + public LabelSelectorNested withNewLabelSelector() { + return new LabelSelectorNested(null); + } + + public LabelSelectorNested withNewLabelSelectorLike(V1LabelSelectorAttributes item) { + return new LabelSelectorNested(item); + } + + public LabelSelectorNested editLabelSelector() { + return withNewLabelSelectorLike(java.util.Optional.ofNullable(buildLabelSelector()).orElse(null)); + } + + public LabelSelectorNested editOrNewLabelSelector() { + return withNewLabelSelectorLike(java.util.Optional.ofNullable(buildLabelSelector()).orElse(new V1LabelSelectorAttributesBuilder().build())); + } + + public LabelSelectorNested editOrNewLabelSelectorLike(V1LabelSelectorAttributes item) { + return withNewLabelSelectorLike(java.util.Optional.ofNullable(buildLabelSelector()).orElse(item)); + } + public String getName() { return this.name; } @@ -133,7 +218,9 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) return false; if (!super.equals(o)) return false; V1ResourceAttributesFluent that = (V1ResourceAttributesFluent) o; + if (!java.util.Objects.equals(fieldSelector, that.fieldSelector)) return false; if (!java.util.Objects.equals(group, that.group)) return false; + if (!java.util.Objects.equals(labelSelector, that.labelSelector)) return false; if (!java.util.Objects.equals(name, that.name)) return false; if (!java.util.Objects.equals(namespace, that.namespace)) return false; if (!java.util.Objects.equals(resource, that.resource)) return false; @@ -144,13 +231,15 @@ public boolean equals(Object o) { } public int hashCode() { - return java.util.Objects.hash(group, name, namespace, resource, subresource, verb, version, super.hashCode()); + return java.util.Objects.hash(fieldSelector, group, labelSelector, name, namespace, resource, subresource, verb, version, super.hashCode()); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); + if (fieldSelector != null) { sb.append("fieldSelector:"); sb.append(fieldSelector + ","); } if (group != null) { sb.append("group:"); sb.append(group + ","); } + if (labelSelector != null) { sb.append("labelSelector:"); sb.append(labelSelector + ","); } if (name != null) { sb.append("name:"); sb.append(name + ","); } if (namespace != null) { sb.append("namespace:"); sb.append(namespace + ","); } if (resource != null) { sb.append("resource:"); sb.append(resource + ","); } @@ -160,6 +249,37 @@ public String toString() { sb.append("}"); return sb.toString(); } + public class FieldSelectorNested extends V1FieldSelectorAttributesFluent> implements Nested{ + FieldSelectorNested(V1FieldSelectorAttributes item) { + this.builder = new V1FieldSelectorAttributesBuilder(this, item); + } + V1FieldSelectorAttributesBuilder builder; + + public N and() { + return (N) V1ResourceAttributesFluent.this.withFieldSelector(builder.build()); + } + + public N endFieldSelector() { + return and(); + } + + + } + public class LabelSelectorNested extends V1LabelSelectorAttributesFluent> implements Nested{ + LabelSelectorNested(V1LabelSelectorAttributes item) { + this.builder = new V1LabelSelectorAttributesBuilder(this, item); + } + V1LabelSelectorAttributesBuilder builder; + + public N and() { + return (N) V1ResourceAttributesFluent.this.withLabelSelector(builder.build()); + } + + public N endLabelSelector() { + return and(); + } + + } } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceClaimBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceClaimBuilder.java index 02b63a681f..d48502e3ff 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceClaimBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceClaimBuilder.java @@ -24,6 +24,7 @@ public V1ResourceClaimBuilder(V1ResourceClaim instance) { public V1ResourceClaim build() { V1ResourceClaim buildable = new V1ResourceClaim(); buildable.setName(fluent.getName()); + buildable.setRequest(fluent.getRequest()); return buildable; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceClaimFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceClaimFluent.java index 5dd8b62463..506bfbd2fe 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceClaimFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceClaimFluent.java @@ -17,11 +17,13 @@ public V1ResourceClaimFluent(V1ResourceClaim instance) { this.copyInstance(instance); } private String name; + private String request; protected void copyInstance(V1ResourceClaim instance) { instance = (instance != null ? instance : new V1ResourceClaim()); if (instance != null) { this.withName(instance.getName()); + this.withRequest(instance.getRequest()); } } @@ -38,23 +40,38 @@ public boolean hasName() { return this.name != null; } + public String getRequest() { + return this.request; + } + + public A withRequest(String request) { + this.request = request; + return (A) this; + } + + public boolean hasRequest() { + return this.request != null; + } + public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; if (!super.equals(o)) return false; V1ResourceClaimFluent that = (V1ResourceClaimFluent) o; if (!java.util.Objects.equals(name, that.name)) return false; + if (!java.util.Objects.equals(request, that.request)) return false; return true; } public int hashCode() { - return java.util.Objects.hash(name, super.hashCode()); + return java.util.Objects.hash(name, request, super.hashCode()); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (name != null) { sb.append("name:"); sb.append(name); } + if (name != null) { sb.append("name:"); sb.append(name + ","); } + if (request != null) { sb.append("request:"); sb.append(request); } sb.append("}"); return sb.toString(); } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceHealthBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceHealthBuilder.java new file mode 100644 index 0000000000..2ea8c9bbe7 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceHealthBuilder.java @@ -0,0 +1,32 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +public class V1ResourceHealthBuilder extends V1ResourceHealthFluent implements VisitableBuilder{ + public V1ResourceHealthBuilder() { + this(new V1ResourceHealth()); + } + + public V1ResourceHealthBuilder(V1ResourceHealthFluent fluent) { + this(fluent, new V1ResourceHealth()); + } + + public V1ResourceHealthBuilder(V1ResourceHealthFluent fluent,V1ResourceHealth instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1ResourceHealthBuilder(V1ResourceHealth instance) { + this.fluent = this; + this.copyInstance(instance); + } + V1ResourceHealthFluent fluent; + + public V1ResourceHealth build() { + V1ResourceHealth buildable = new V1ResourceHealth(); + buildable.setHealth(fluent.getHealth()); + buildable.setResourceID(fluent.getResourceID()); + return buildable; + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceHealthFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceHealthFluent.java new file mode 100644 index 0000000000..b401269fed --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceHealthFluent.java @@ -0,0 +1,80 @@ +package io.kubernetes.client.openapi.models; + +import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Object; +import java.lang.String; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1ResourceHealthFluent> extends BaseFluent{ + public V1ResourceHealthFluent() { + } + + public V1ResourceHealthFluent(V1ResourceHealth instance) { + this.copyInstance(instance); + } + private String health; + private String resourceID; + + protected void copyInstance(V1ResourceHealth instance) { + instance = (instance != null ? instance : new V1ResourceHealth()); + if (instance != null) { + this.withHealth(instance.getHealth()); + this.withResourceID(instance.getResourceID()); + } + } + + public String getHealth() { + return this.health; + } + + public A withHealth(String health) { + this.health = health; + return (A) this; + } + + public boolean hasHealth() { + return this.health != null; + } + + public String getResourceID() { + return this.resourceID; + } + + public A withResourceID(String resourceID) { + this.resourceID = resourceID; + return (A) this; + } + + public boolean hasResourceID() { + return this.resourceID != null; + } + + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + if (!super.equals(o)) return false; + V1ResourceHealthFluent that = (V1ResourceHealthFluent) o; + if (!java.util.Objects.equals(health, that.health)) return false; + if (!java.util.Objects.equals(resourceID, that.resourceID)) return false; + return true; + } + + public int hashCode() { + return java.util.Objects.hash(health, resourceID, super.hashCode()); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (health != null) { sb.append("health:"); sb.append(health + ","); } + if (resourceID != null) { sb.append("resourceID:"); sb.append(resourceID); } + sb.append("}"); + return sb.toString(); + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourcePolicyRuleBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourcePolicyRuleBuilder.java new file mode 100644 index 0000000000..a92476853c --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourcePolicyRuleBuilder.java @@ -0,0 +1,35 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +public class V1ResourcePolicyRuleBuilder extends V1ResourcePolicyRuleFluent implements VisitableBuilder{ + public V1ResourcePolicyRuleBuilder() { + this(new V1ResourcePolicyRule()); + } + + public V1ResourcePolicyRuleBuilder(V1ResourcePolicyRuleFluent fluent) { + this(fluent, new V1ResourcePolicyRule()); + } + + public V1ResourcePolicyRuleBuilder(V1ResourcePolicyRuleFluent fluent,V1ResourcePolicyRule instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1ResourcePolicyRuleBuilder(V1ResourcePolicyRule instance) { + this.fluent = this; + this.copyInstance(instance); + } + V1ResourcePolicyRuleFluent fluent; + + public V1ResourcePolicyRule build() { + V1ResourcePolicyRule buildable = new V1ResourcePolicyRule(); + buildable.setApiGroups(fluent.getApiGroups()); + buildable.setClusterScope(fluent.getClusterScope()); + buildable.setNamespaces(fluent.getNamespaces()); + buildable.setResources(fluent.getResources()); + buildable.setVerbs(fluent.getVerbs()); + return buildable; + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourcePolicyRuleFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourcePolicyRuleFluent.java new file mode 100644 index 0000000000..4d775d8be6 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourcePolicyRuleFluent.java @@ -0,0 +1,464 @@ +package io.kubernetes.client.openapi.models; + +import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; +import java.util.ArrayList; +import java.util.Collection; +import java.lang.Object; +import java.util.List; +import java.lang.String; +import java.lang.Boolean; +import java.util.function.Predicate; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1ResourcePolicyRuleFluent> extends BaseFluent{ + public V1ResourcePolicyRuleFluent() { + } + + public V1ResourcePolicyRuleFluent(V1ResourcePolicyRule instance) { + this.copyInstance(instance); + } + private List apiGroups; + private Boolean clusterScope; + private List namespaces; + private List resources; + private List verbs; + + protected void copyInstance(V1ResourcePolicyRule instance) { + instance = (instance != null ? instance : new V1ResourcePolicyRule()); + if (instance != null) { + this.withApiGroups(instance.getApiGroups()); + this.withClusterScope(instance.getClusterScope()); + this.withNamespaces(instance.getNamespaces()); + this.withResources(instance.getResources()); + this.withVerbs(instance.getVerbs()); + } + } + + public A addToApiGroups(int index,String item) { + if (this.apiGroups == null) {this.apiGroups = new ArrayList();} + this.apiGroups.add(index, item); + return (A)this; + } + + public A setToApiGroups(int index,String item) { + if (this.apiGroups == null) {this.apiGroups = new ArrayList();} + this.apiGroups.set(index, item); return (A)this; + } + + public A addToApiGroups(java.lang.String... items) { + if (this.apiGroups == null) {this.apiGroups = new ArrayList();} + for (String item : items) {this.apiGroups.add(item);} return (A)this; + } + + public A addAllToApiGroups(Collection items) { + if (this.apiGroups == null) {this.apiGroups = new ArrayList();} + for (String item : items) {this.apiGroups.add(item);} return (A)this; + } + + public A removeFromApiGroups(java.lang.String... items) { + if (this.apiGroups == null) return (A)this; + for (String item : items) { this.apiGroups.remove(item);} return (A)this; + } + + public A removeAllFromApiGroups(Collection items) { + if (this.apiGroups == null) return (A)this; + for (String item : items) { this.apiGroups.remove(item);} return (A)this; + } + + public List getApiGroups() { + return this.apiGroups; + } + + public String getApiGroup(int index) { + return this.apiGroups.get(index); + } + + public String getFirstApiGroup() { + return this.apiGroups.get(0); + } + + public String getLastApiGroup() { + return this.apiGroups.get(apiGroups.size() - 1); + } + + public String getMatchingApiGroup(Predicate predicate) { + for (String item : apiGroups) { + if (predicate.test(item)) { + return item; + } + } + return null; + } + + public boolean hasMatchingApiGroup(Predicate predicate) { + for (String item : apiGroups) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public A withApiGroups(List apiGroups) { + if (apiGroups != null) { + this.apiGroups = new ArrayList(); + for (String item : apiGroups) { + this.addToApiGroups(item); + } + } else { + this.apiGroups = null; + } + return (A) this; + } + + public A withApiGroups(java.lang.String... apiGroups) { + if (this.apiGroups != null) { + this.apiGroups.clear(); + _visitables.remove("apiGroups"); + } + if (apiGroups != null) { + for (String item : apiGroups) { + this.addToApiGroups(item); + } + } + return (A) this; + } + + public boolean hasApiGroups() { + return this.apiGroups != null && !this.apiGroups.isEmpty(); + } + + public Boolean getClusterScope() { + return this.clusterScope; + } + + public A withClusterScope(Boolean clusterScope) { + this.clusterScope = clusterScope; + return (A) this; + } + + public boolean hasClusterScope() { + return this.clusterScope != null; + } + + public A addToNamespaces(int index,String item) { + if (this.namespaces == null) {this.namespaces = new ArrayList();} + this.namespaces.add(index, item); + return (A)this; + } + + public A setToNamespaces(int index,String item) { + if (this.namespaces == null) {this.namespaces = new ArrayList();} + this.namespaces.set(index, item); return (A)this; + } + + public A addToNamespaces(java.lang.String... items) { + if (this.namespaces == null) {this.namespaces = new ArrayList();} + for (String item : items) {this.namespaces.add(item);} return (A)this; + } + + public A addAllToNamespaces(Collection items) { + if (this.namespaces == null) {this.namespaces = new ArrayList();} + for (String item : items) {this.namespaces.add(item);} return (A)this; + } + + public A removeFromNamespaces(java.lang.String... items) { + if (this.namespaces == null) return (A)this; + for (String item : items) { this.namespaces.remove(item);} return (A)this; + } + + public A removeAllFromNamespaces(Collection items) { + if (this.namespaces == null) return (A)this; + for (String item : items) { this.namespaces.remove(item);} return (A)this; + } + + public List getNamespaces() { + return this.namespaces; + } + + public String getNamespace(int index) { + return this.namespaces.get(index); + } + + public String getFirstNamespace() { + return this.namespaces.get(0); + } + + public String getLastNamespace() { + return this.namespaces.get(namespaces.size() - 1); + } + + public String getMatchingNamespace(Predicate predicate) { + for (String item : namespaces) { + if (predicate.test(item)) { + return item; + } + } + return null; + } + + public boolean hasMatchingNamespace(Predicate predicate) { + for (String item : namespaces) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public A withNamespaces(List namespaces) { + if (namespaces != null) { + this.namespaces = new ArrayList(); + for (String item : namespaces) { + this.addToNamespaces(item); + } + } else { + this.namespaces = null; + } + return (A) this; + } + + public A withNamespaces(java.lang.String... namespaces) { + if (this.namespaces != null) { + this.namespaces.clear(); + _visitables.remove("namespaces"); + } + if (namespaces != null) { + for (String item : namespaces) { + this.addToNamespaces(item); + } + } + return (A) this; + } + + public boolean hasNamespaces() { + return this.namespaces != null && !this.namespaces.isEmpty(); + } + + public A addToResources(int index,String item) { + if (this.resources == null) {this.resources = new ArrayList();} + this.resources.add(index, item); + return (A)this; + } + + public A setToResources(int index,String item) { + if (this.resources == null) {this.resources = new ArrayList();} + this.resources.set(index, item); return (A)this; + } + + public A addToResources(java.lang.String... items) { + if (this.resources == null) {this.resources = new ArrayList();} + for (String item : items) {this.resources.add(item);} return (A)this; + } + + public A addAllToResources(Collection items) { + if (this.resources == null) {this.resources = new ArrayList();} + for (String item : items) {this.resources.add(item);} return (A)this; + } + + public A removeFromResources(java.lang.String... items) { + if (this.resources == null) return (A)this; + for (String item : items) { this.resources.remove(item);} return (A)this; + } + + public A removeAllFromResources(Collection items) { + if (this.resources == null) return (A)this; + for (String item : items) { this.resources.remove(item);} return (A)this; + } + + public List getResources() { + return this.resources; + } + + public String getResource(int index) { + return this.resources.get(index); + } + + public String getFirstResource() { + return this.resources.get(0); + } + + public String getLastResource() { + return this.resources.get(resources.size() - 1); + } + + public String getMatchingResource(Predicate predicate) { + for (String item : resources) { + if (predicate.test(item)) { + return item; + } + } + return null; + } + + public boolean hasMatchingResource(Predicate predicate) { + for (String item : resources) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public A withResources(List resources) { + if (resources != null) { + this.resources = new ArrayList(); + for (String item : resources) { + this.addToResources(item); + } + } else { + this.resources = null; + } + return (A) this; + } + + public A withResources(java.lang.String... resources) { + if (this.resources != null) { + this.resources.clear(); + _visitables.remove("resources"); + } + if (resources != null) { + for (String item : resources) { + this.addToResources(item); + } + } + return (A) this; + } + + public boolean hasResources() { + return this.resources != null && !this.resources.isEmpty(); + } + + public A addToVerbs(int index,String item) { + if (this.verbs == null) {this.verbs = new ArrayList();} + this.verbs.add(index, item); + return (A)this; + } + + public A setToVerbs(int index,String item) { + if (this.verbs == null) {this.verbs = new ArrayList();} + this.verbs.set(index, item); return (A)this; + } + + public A addToVerbs(java.lang.String... items) { + if (this.verbs == null) {this.verbs = new ArrayList();} + for (String item : items) {this.verbs.add(item);} return (A)this; + } + + public A addAllToVerbs(Collection items) { + if (this.verbs == null) {this.verbs = new ArrayList();} + for (String item : items) {this.verbs.add(item);} return (A)this; + } + + public A removeFromVerbs(java.lang.String... items) { + if (this.verbs == null) return (A)this; + for (String item : items) { this.verbs.remove(item);} return (A)this; + } + + public A removeAllFromVerbs(Collection items) { + if (this.verbs == null) return (A)this; + for (String item : items) { this.verbs.remove(item);} return (A)this; + } + + public List getVerbs() { + return this.verbs; + } + + public String getVerb(int index) { + return this.verbs.get(index); + } + + public String getFirstVerb() { + return this.verbs.get(0); + } + + public String getLastVerb() { + return this.verbs.get(verbs.size() - 1); + } + + public String getMatchingVerb(Predicate predicate) { + for (String item : verbs) { + if (predicate.test(item)) { + return item; + } + } + return null; + } + + public boolean hasMatchingVerb(Predicate predicate) { + for (String item : verbs) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public A withVerbs(List verbs) { + if (verbs != null) { + this.verbs = new ArrayList(); + for (String item : verbs) { + this.addToVerbs(item); + } + } else { + this.verbs = null; + } + return (A) this; + } + + public A withVerbs(java.lang.String... verbs) { + if (this.verbs != null) { + this.verbs.clear(); + _visitables.remove("verbs"); + } + if (verbs != null) { + for (String item : verbs) { + this.addToVerbs(item); + } + } + return (A) this; + } + + public boolean hasVerbs() { + return this.verbs != null && !this.verbs.isEmpty(); + } + + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + if (!super.equals(o)) return false; + V1ResourcePolicyRuleFluent that = (V1ResourcePolicyRuleFluent) o; + if (!java.util.Objects.equals(apiGroups, that.apiGroups)) return false; + if (!java.util.Objects.equals(clusterScope, that.clusterScope)) return false; + if (!java.util.Objects.equals(namespaces, that.namespaces)) return false; + if (!java.util.Objects.equals(resources, that.resources)) return false; + if (!java.util.Objects.equals(verbs, that.verbs)) return false; + return true; + } + + public int hashCode() { + return java.util.Objects.hash(apiGroups, clusterScope, namespaces, resources, verbs, super.hashCode()); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (apiGroups != null && !apiGroups.isEmpty()) { sb.append("apiGroups:"); sb.append(apiGroups + ","); } + if (clusterScope != null) { sb.append("clusterScope:"); sb.append(clusterScope + ","); } + if (namespaces != null && !namespaces.isEmpty()) { sb.append("namespaces:"); sb.append(namespaces + ","); } + if (resources != null && !resources.isEmpty()) { sb.append("resources:"); sb.append(resources + ","); } + if (verbs != null && !verbs.isEmpty()) { sb.append("verbs:"); sb.append(verbs); } + sb.append("}"); + return sb.toString(); + } + + public A withClusterScope() { + return withClusterScope(true); + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceQuotaListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceQuotaListFluent.java index 327b846844..093f56791c 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceQuotaListFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceQuotaListFluent.java @@ -54,14 +54,26 @@ public boolean hasApiVersion() { public A addToItems(int index,V1ResourceQuota item) { if (this.items == null) {this.items = new ArrayList();} V1ResourceQuotaBuilder builder = new V1ResourceQuotaBuilder(item); - if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); items.add(builder); } else { _visitables.get("items").add(index, builder); items.add(index, builder);} + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.add(index, builder); + } return (A)this; } public A setToItems(int index,V1ResourceQuota item) { if (this.items == null) {this.items = new ArrayList();} V1ResourceQuotaBuilder builder = new V1ResourceQuotaBuilder(item); - if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); items.add(builder); } else { _visitables.get("items").set(index, builder); items.set(index, builder);} + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.set(index, builder); + } return (A)this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceRequirementsFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceRequirementsFluent.java index e634f57fed..a119515c87 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceRequirementsFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceRequirementsFluent.java @@ -42,14 +42,26 @@ protected void copyInstance(V1ResourceRequirements instance) { public A addToClaims(int index,V1ResourceClaim item) { if (this.claims == null) {this.claims = new ArrayList();} V1ResourceClaimBuilder builder = new V1ResourceClaimBuilder(item); - if (index < 0 || index >= claims.size()) { _visitables.get("claims").add(builder); claims.add(builder); } else { _visitables.get("claims").add(index, builder); claims.add(index, builder);} + if (index < 0 || index >= claims.size()) { + _visitables.get("claims").add(builder); + claims.add(builder); + } else { + _visitables.get("claims").add(builder); + claims.add(index, builder); + } return (A)this; } public A setToClaims(int index,V1ResourceClaim item) { if (this.claims == null) {this.claims = new ArrayList();} V1ResourceClaimBuilder builder = new V1ResourceClaimBuilder(item); - if (index < 0 || index >= claims.size()) { _visitables.get("claims").add(builder); claims.add(builder); } else { _visitables.get("claims").set(index, builder); claims.set(index, builder);} + if (index < 0 || index >= claims.size()) { + _visitables.get("claims").add(builder); + claims.add(builder); + } else { + _visitables.get("claims").add(builder); + claims.set(index, builder); + } return (A)this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceStatusBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceStatusBuilder.java new file mode 100644 index 0000000000..1877e04ca6 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceStatusBuilder.java @@ -0,0 +1,32 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +public class V1ResourceStatusBuilder extends V1ResourceStatusFluent implements VisitableBuilder{ + public V1ResourceStatusBuilder() { + this(new V1ResourceStatus()); + } + + public V1ResourceStatusBuilder(V1ResourceStatusFluent fluent) { + this(fluent, new V1ResourceStatus()); + } + + public V1ResourceStatusBuilder(V1ResourceStatusFluent fluent,V1ResourceStatus instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1ResourceStatusBuilder(V1ResourceStatus instance) { + this.fluent = this; + this.copyInstance(instance); + } + V1ResourceStatusFluent fluent; + + public V1ResourceStatus build() { + V1ResourceStatus buildable = new V1ResourceStatus(); + buildable.setName(fluent.getName()); + buildable.setResources(fluent.buildResources()); + return buildable; + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceStatusFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceStatusFluent.java new file mode 100644 index 0000000000..30ccb6b399 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceStatusFluent.java @@ -0,0 +1,254 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.Nested; +import java.util.ArrayList; +import java.lang.String; +import java.util.function.Predicate; +import io.kubernetes.client.fluent.BaseFluent; +import java.util.Iterator; +import java.util.Collection; +import java.lang.Object; +import java.util.List; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1ResourceStatusFluent> extends BaseFluent{ + public V1ResourceStatusFluent() { + } + + public V1ResourceStatusFluent(V1ResourceStatus instance) { + this.copyInstance(instance); + } + private String name; + private ArrayList resources; + + protected void copyInstance(V1ResourceStatus instance) { + instance = (instance != null ? instance : new V1ResourceStatus()); + if (instance != null) { + this.withName(instance.getName()); + this.withResources(instance.getResources()); + } + } + + public String getName() { + return this.name; + } + + public A withName(String name) { + this.name = name; + return (A) this; + } + + public boolean hasName() { + return this.name != null; + } + + public A addToResources(int index,V1ResourceHealth item) { + if (this.resources == null) {this.resources = new ArrayList();} + V1ResourceHealthBuilder builder = new V1ResourceHealthBuilder(item); + if (index < 0 || index >= resources.size()) { + _visitables.get("resources").add(builder); + resources.add(builder); + } else { + _visitables.get("resources").add(builder); + resources.add(index, builder); + } + return (A)this; + } + + public A setToResources(int index,V1ResourceHealth item) { + if (this.resources == null) {this.resources = new ArrayList();} + V1ResourceHealthBuilder builder = new V1ResourceHealthBuilder(item); + if (index < 0 || index >= resources.size()) { + _visitables.get("resources").add(builder); + resources.add(builder); + } else { + _visitables.get("resources").add(builder); + resources.set(index, builder); + } + return (A)this; + } + + public A addToResources(io.kubernetes.client.openapi.models.V1ResourceHealth... items) { + if (this.resources == null) {this.resources = new ArrayList();} + for (V1ResourceHealth item : items) {V1ResourceHealthBuilder builder = new V1ResourceHealthBuilder(item);_visitables.get("resources").add(builder);this.resources.add(builder);} return (A)this; + } + + public A addAllToResources(Collection items) { + if (this.resources == null) {this.resources = new ArrayList();} + for (V1ResourceHealth item : items) {V1ResourceHealthBuilder builder = new V1ResourceHealthBuilder(item);_visitables.get("resources").add(builder);this.resources.add(builder);} return (A)this; + } + + public A removeFromResources(io.kubernetes.client.openapi.models.V1ResourceHealth... items) { + if (this.resources == null) return (A)this; + for (V1ResourceHealth item : items) {V1ResourceHealthBuilder builder = new V1ResourceHealthBuilder(item);_visitables.get("resources").remove(builder); this.resources.remove(builder);} return (A)this; + } + + public A removeAllFromResources(Collection items) { + if (this.resources == null) return (A)this; + for (V1ResourceHealth item : items) {V1ResourceHealthBuilder builder = new V1ResourceHealthBuilder(item);_visitables.get("resources").remove(builder); this.resources.remove(builder);} return (A)this; + } + + public A removeMatchingFromResources(Predicate predicate) { + if (resources == null) return (A) this; + final Iterator each = resources.iterator(); + final List visitables = _visitables.get("resources"); + while (each.hasNext()) { + V1ResourceHealthBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A)this; + } + + public List buildResources() { + return this.resources != null ? build(resources) : null; + } + + public V1ResourceHealth buildResource(int index) { + return this.resources.get(index).build(); + } + + public V1ResourceHealth buildFirstResource() { + return this.resources.get(0).build(); + } + + public V1ResourceHealth buildLastResource() { + return this.resources.get(resources.size() - 1).build(); + } + + public V1ResourceHealth buildMatchingResource(Predicate predicate) { + for (V1ResourceHealthBuilder item : resources) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; + } + + public boolean hasMatchingResource(Predicate predicate) { + for (V1ResourceHealthBuilder item : resources) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public A withResources(List resources) { + if (this.resources != null) { + this._visitables.get("resources").clear(); + } + if (resources != null) { + this.resources = new ArrayList(); + for (V1ResourceHealth item : resources) { + this.addToResources(item); + } + } else { + this.resources = null; + } + return (A) this; + } + + public A withResources(io.kubernetes.client.openapi.models.V1ResourceHealth... resources) { + if (this.resources != null) { + this.resources.clear(); + _visitables.remove("resources"); + } + if (resources != null) { + for (V1ResourceHealth item : resources) { + this.addToResources(item); + } + } + return (A) this; + } + + public boolean hasResources() { + return this.resources != null && !this.resources.isEmpty(); + } + + public ResourcesNested addNewResource() { + return new ResourcesNested(-1, null); + } + + public ResourcesNested addNewResourceLike(V1ResourceHealth item) { + return new ResourcesNested(-1, item); + } + + public ResourcesNested setNewResourceLike(int index,V1ResourceHealth item) { + return new ResourcesNested(index, item); + } + + public ResourcesNested editResource(int index) { + if (resources.size() <= index) throw new RuntimeException("Can't edit resources. Index exceeds size."); + return setNewResourceLike(index, buildResource(index)); + } + + public ResourcesNested editFirstResource() { + if (resources.size() == 0) throw new RuntimeException("Can't edit first resources. The list is empty."); + return setNewResourceLike(0, buildResource(0)); + } + + public ResourcesNested editLastResource() { + int index = resources.size() - 1; + if (index < 0) throw new RuntimeException("Can't edit last resources. The list is empty."); + return setNewResourceLike(index, buildResource(index)); + } + + public ResourcesNested editMatchingResource(Predicate predicate) { + int index = -1; + for (int i=0;i extends V1ResourceHealthFluent> implements Nested{ + ResourcesNested(int index,V1ResourceHealth item) { + this.index = index; + this.builder = new V1ResourceHealthBuilder(this, item); + } + V1ResourceHealthBuilder builder; + int index; + + public N and() { + return (N) V1ResourceStatusFluent.this.setToResources(index,builder.build()); + } + + public N endResource() { + return and(); + } + + + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RoleBindingFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RoleBindingFluent.java index ceaeb2a593..69a7cc407b 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RoleBindingFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RoleBindingFluent.java @@ -27,7 +27,7 @@ public V1RoleBindingFluent(V1RoleBinding instance) { private String kind; private V1ObjectMetaBuilder metadata; private V1RoleRefBuilder roleRef; - private ArrayList subjects; + private ArrayList subjects; protected void copyInstance(V1RoleBinding instance) { instance = (instance != null ? instance : new V1RoleBinding()); @@ -146,46 +146,58 @@ public RoleRefNested editOrNewRoleRefLike(V1RoleRef item) { return withNewRoleRefLike(java.util.Optional.ofNullable(buildRoleRef()).orElse(item)); } - public A addToSubjects(int index,V1Subject item) { - if (this.subjects == null) {this.subjects = new ArrayList();} - V1SubjectBuilder builder = new V1SubjectBuilder(item); - if (index < 0 || index >= subjects.size()) { _visitables.get("subjects").add(builder); subjects.add(builder); } else { _visitables.get("subjects").add(index, builder); subjects.add(index, builder);} + public A addToSubjects(int index,RbacV1Subject item) { + if (this.subjects == null) {this.subjects = new ArrayList();} + RbacV1SubjectBuilder builder = new RbacV1SubjectBuilder(item); + if (index < 0 || index >= subjects.size()) { + _visitables.get("subjects").add(builder); + subjects.add(builder); + } else { + _visitables.get("subjects").add(builder); + subjects.add(index, builder); + } return (A)this; } - public A setToSubjects(int index,V1Subject item) { - if (this.subjects == null) {this.subjects = new ArrayList();} - V1SubjectBuilder builder = new V1SubjectBuilder(item); - if (index < 0 || index >= subjects.size()) { _visitables.get("subjects").add(builder); subjects.add(builder); } else { _visitables.get("subjects").set(index, builder); subjects.set(index, builder);} + public A setToSubjects(int index,RbacV1Subject item) { + if (this.subjects == null) {this.subjects = new ArrayList();} + RbacV1SubjectBuilder builder = new RbacV1SubjectBuilder(item); + if (index < 0 || index >= subjects.size()) { + _visitables.get("subjects").add(builder); + subjects.add(builder); + } else { + _visitables.get("subjects").add(builder); + subjects.set(index, builder); + } return (A)this; } - public A addToSubjects(io.kubernetes.client.openapi.models.V1Subject... items) { - if (this.subjects == null) {this.subjects = new ArrayList();} - for (V1Subject item : items) {V1SubjectBuilder builder = new V1SubjectBuilder(item);_visitables.get("subjects").add(builder);this.subjects.add(builder);} return (A)this; + public A addToSubjects(io.kubernetes.client.openapi.models.RbacV1Subject... items) { + if (this.subjects == null) {this.subjects = new ArrayList();} + for (RbacV1Subject item : items) {RbacV1SubjectBuilder builder = new RbacV1SubjectBuilder(item);_visitables.get("subjects").add(builder);this.subjects.add(builder);} return (A)this; } - public A addAllToSubjects(Collection items) { - if (this.subjects == null) {this.subjects = new ArrayList();} - for (V1Subject item : items) {V1SubjectBuilder builder = new V1SubjectBuilder(item);_visitables.get("subjects").add(builder);this.subjects.add(builder);} return (A)this; + public A addAllToSubjects(Collection items) { + if (this.subjects == null) {this.subjects = new ArrayList();} + for (RbacV1Subject item : items) {RbacV1SubjectBuilder builder = new RbacV1SubjectBuilder(item);_visitables.get("subjects").add(builder);this.subjects.add(builder);} return (A)this; } - public A removeFromSubjects(io.kubernetes.client.openapi.models.V1Subject... items) { + public A removeFromSubjects(io.kubernetes.client.openapi.models.RbacV1Subject... items) { if (this.subjects == null) return (A)this; - for (V1Subject item : items) {V1SubjectBuilder builder = new V1SubjectBuilder(item);_visitables.get("subjects").remove(builder); this.subjects.remove(builder);} return (A)this; + for (RbacV1Subject item : items) {RbacV1SubjectBuilder builder = new RbacV1SubjectBuilder(item);_visitables.get("subjects").remove(builder); this.subjects.remove(builder);} return (A)this; } - public A removeAllFromSubjects(Collection items) { + public A removeAllFromSubjects(Collection items) { if (this.subjects == null) return (A)this; - for (V1Subject item : items) {V1SubjectBuilder builder = new V1SubjectBuilder(item);_visitables.get("subjects").remove(builder); this.subjects.remove(builder);} return (A)this; + for (RbacV1Subject item : items) {RbacV1SubjectBuilder builder = new RbacV1SubjectBuilder(item);_visitables.get("subjects").remove(builder); this.subjects.remove(builder);} return (A)this; } - public A removeMatchingFromSubjects(Predicate predicate) { + public A removeMatchingFromSubjects(Predicate predicate) { if (subjects == null) return (A) this; - final Iterator each = subjects.iterator(); + final Iterator each = subjects.iterator(); final List visitables = _visitables.get("subjects"); while (each.hasNext()) { - V1SubjectBuilder builder = each.next(); + RbacV1SubjectBuilder builder = each.next(); if (predicate.test(builder)) { visitables.remove(builder); each.remove(); @@ -194,24 +206,24 @@ public A removeMatchingFromSubjects(Predicate predicate) { return (A)this; } - public List buildSubjects() { + public List buildSubjects() { return this.subjects != null ? build(subjects) : null; } - public V1Subject buildSubject(int index) { + public RbacV1Subject buildSubject(int index) { return this.subjects.get(index).build(); } - public V1Subject buildFirstSubject() { + public RbacV1Subject buildFirstSubject() { return this.subjects.get(0).build(); } - public V1Subject buildLastSubject() { + public RbacV1Subject buildLastSubject() { return this.subjects.get(subjects.size() - 1).build(); } - public V1Subject buildMatchingSubject(Predicate predicate) { - for (V1SubjectBuilder item : subjects) { + public RbacV1Subject buildMatchingSubject(Predicate predicate) { + for (RbacV1SubjectBuilder item : subjects) { if (predicate.test(item)) { return item.build(); } @@ -219,8 +231,8 @@ public V1Subject buildMatchingSubject(Predicate predicate) { return null; } - public boolean hasMatchingSubject(Predicate predicate) { - for (V1SubjectBuilder item : subjects) { + public boolean hasMatchingSubject(Predicate predicate) { + for (RbacV1SubjectBuilder item : subjects) { if (predicate.test(item)) { return true; } @@ -228,13 +240,13 @@ public boolean hasMatchingSubject(Predicate predicate) { return false; } - public A withSubjects(List subjects) { + public A withSubjects(List subjects) { if (this.subjects != null) { this._visitables.get("subjects").clear(); } if (subjects != null) { this.subjects = new ArrayList(); - for (V1Subject item : subjects) { + for (RbacV1Subject item : subjects) { this.addToSubjects(item); } } else { @@ -243,13 +255,13 @@ public A withSubjects(List subjects) { return (A) this; } - public A withSubjects(io.kubernetes.client.openapi.models.V1Subject... subjects) { + public A withSubjects(io.kubernetes.client.openapi.models.RbacV1Subject... subjects) { if (this.subjects != null) { this.subjects.clear(); _visitables.remove("subjects"); } if (subjects != null) { - for (V1Subject item : subjects) { + for (RbacV1Subject item : subjects) { this.addToSubjects(item); } } @@ -264,11 +276,11 @@ public SubjectsNested addNewSubject() { return new SubjectsNested(-1, null); } - public SubjectsNested addNewSubjectLike(V1Subject item) { + public SubjectsNested addNewSubjectLike(RbacV1Subject item) { return new SubjectsNested(-1, item); } - public SubjectsNested setNewSubjectLike(int index,V1Subject item) { + public SubjectsNested setNewSubjectLike(int index,RbacV1Subject item) { return new SubjectsNested(index, item); } @@ -288,7 +300,7 @@ public SubjectsNested editLastSubject() { return setNewSubjectLike(index, buildSubject(index)); } - public SubjectsNested editMatchingSubject(Predicate predicate) { + public SubjectsNested editMatchingSubject(Predicate predicate) { int index = -1; for (int i=0;i extends V1SubjectFluent> implements Nested{ - SubjectsNested(int index,V1Subject item) { + public class SubjectsNested extends RbacV1SubjectFluent> implements Nested{ + SubjectsNested(int index,RbacV1Subject item) { this.index = index; - this.builder = new V1SubjectBuilder(this, item); + this.builder = new RbacV1SubjectBuilder(this, item); } - V1SubjectBuilder builder; + RbacV1SubjectBuilder builder; int index; public N and() { diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RoleBindingListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RoleBindingListFluent.java index 2e0f63ef09..b5e3b15232 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RoleBindingListFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RoleBindingListFluent.java @@ -54,14 +54,26 @@ public boolean hasApiVersion() { public A addToItems(int index,V1RoleBinding item) { if (this.items == null) {this.items = new ArrayList();} V1RoleBindingBuilder builder = new V1RoleBindingBuilder(item); - if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); items.add(builder); } else { _visitables.get("items").add(index, builder); items.add(index, builder);} + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.add(index, builder); + } return (A)this; } public A setToItems(int index,V1RoleBinding item) { if (this.items == null) {this.items = new ArrayList();} V1RoleBindingBuilder builder = new V1RoleBindingBuilder(item); - if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); items.add(builder); } else { _visitables.get("items").set(index, builder); items.set(index, builder);} + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.set(index, builder); + } return (A)this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RoleFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RoleFluent.java index b39b598e05..f29c0649c5 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RoleFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RoleFluent.java @@ -107,14 +107,26 @@ public MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { public A addToRules(int index,V1PolicyRule item) { if (this.rules == null) {this.rules = new ArrayList();} V1PolicyRuleBuilder builder = new V1PolicyRuleBuilder(item); - if (index < 0 || index >= rules.size()) { _visitables.get("rules").add(builder); rules.add(builder); } else { _visitables.get("rules").add(index, builder); rules.add(index, builder);} + if (index < 0 || index >= rules.size()) { + _visitables.get("rules").add(builder); + rules.add(builder); + } else { + _visitables.get("rules").add(builder); + rules.add(index, builder); + } return (A)this; } public A setToRules(int index,V1PolicyRule item) { if (this.rules == null) {this.rules = new ArrayList();} V1PolicyRuleBuilder builder = new V1PolicyRuleBuilder(item); - if (index < 0 || index >= rules.size()) { _visitables.get("rules").add(builder); rules.add(builder); } else { _visitables.get("rules").set(index, builder); rules.set(index, builder);} + if (index < 0 || index >= rules.size()) { + _visitables.get("rules").add(builder); + rules.add(builder); + } else { + _visitables.get("rules").add(builder); + rules.set(index, builder); + } return (A)this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RoleListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RoleListFluent.java index 6586d6e9f2..8af44845a8 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RoleListFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RoleListFluent.java @@ -54,14 +54,26 @@ public boolean hasApiVersion() { public A addToItems(int index,V1Role item) { if (this.items == null) {this.items = new ArrayList();} V1RoleBuilder builder = new V1RoleBuilder(item); - if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); items.add(builder); } else { _visitables.get("items").add(index, builder); items.add(index, builder);} + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.add(index, builder); + } return (A)this; } public A setToItems(int index,V1Role item) { if (this.items == null) {this.items = new ArrayList();} V1RoleBuilder builder = new V1RoleBuilder(item); - if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); items.add(builder); } else { _visitables.get("items").set(index, builder); items.set(index, builder);} + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.set(index, builder); + } return (A)this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RuntimeClassListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RuntimeClassListFluent.java index 87f8164969..ffb2120b73 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RuntimeClassListFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RuntimeClassListFluent.java @@ -54,14 +54,26 @@ public boolean hasApiVersion() { public A addToItems(int index,V1RuntimeClass item) { if (this.items == null) {this.items = new ArrayList();} V1RuntimeClassBuilder builder = new V1RuntimeClassBuilder(item); - if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); items.add(builder); } else { _visitables.get("items").add(index, builder); items.add(index, builder);} + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.add(index, builder); + } return (A)this; } public A setToItems(int index,V1RuntimeClass item) { if (this.items == null) {this.items = new ArrayList();} V1RuntimeClassBuilder builder = new V1RuntimeClassBuilder(item); - if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); items.add(builder); } else { _visitables.get("items").set(index, builder); items.set(index, builder);} + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.set(index, builder); + } return (A)this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SchedulingFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SchedulingFluent.java index f3396b1a84..49e6ee3938 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SchedulingFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SchedulingFluent.java @@ -76,14 +76,26 @@ public boolean hasNodeSelector() { public A addToTolerations(int index,V1Toleration item) { if (this.tolerations == null) {this.tolerations = new ArrayList();} V1TolerationBuilder builder = new V1TolerationBuilder(item); - if (index < 0 || index >= tolerations.size()) { _visitables.get("tolerations").add(builder); tolerations.add(builder); } else { _visitables.get("tolerations").add(index, builder); tolerations.add(index, builder);} + if (index < 0 || index >= tolerations.size()) { + _visitables.get("tolerations").add(builder); + tolerations.add(builder); + } else { + _visitables.get("tolerations").add(builder); + tolerations.add(index, builder); + } return (A)this; } public A setToTolerations(int index,V1Toleration item) { if (this.tolerations == null) {this.tolerations = new ArrayList();} V1TolerationBuilder builder = new V1TolerationBuilder(item); - if (index < 0 || index >= tolerations.size()) { _visitables.get("tolerations").add(builder); tolerations.add(builder); } else { _visitables.get("tolerations").set(index, builder); tolerations.set(index, builder);} + if (index < 0 || index >= tolerations.size()) { + _visitables.get("tolerations").add(builder); + tolerations.add(builder); + } else { + _visitables.get("tolerations").add(builder); + tolerations.set(index, builder); + } return (A)this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ScopeSelectorFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ScopeSelectorFluent.java index fddd0dd515..98c5cc144a 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ScopeSelectorFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ScopeSelectorFluent.java @@ -35,14 +35,26 @@ protected void copyInstance(V1ScopeSelector instance) { public A addToMatchExpressions(int index,V1ScopedResourceSelectorRequirement item) { if (this.matchExpressions == null) {this.matchExpressions = new ArrayList();} V1ScopedResourceSelectorRequirementBuilder builder = new V1ScopedResourceSelectorRequirementBuilder(item); - if (index < 0 || index >= matchExpressions.size()) { _visitables.get("matchExpressions").add(builder); matchExpressions.add(builder); } else { _visitables.get("matchExpressions").add(index, builder); matchExpressions.add(index, builder);} + if (index < 0 || index >= matchExpressions.size()) { + _visitables.get("matchExpressions").add(builder); + matchExpressions.add(builder); + } else { + _visitables.get("matchExpressions").add(builder); + matchExpressions.add(index, builder); + } return (A)this; } public A setToMatchExpressions(int index,V1ScopedResourceSelectorRequirement item) { if (this.matchExpressions == null) {this.matchExpressions = new ArrayList();} V1ScopedResourceSelectorRequirementBuilder builder = new V1ScopedResourceSelectorRequirementBuilder(item); - if (index < 0 || index >= matchExpressions.size()) { _visitables.get("matchExpressions").add(builder); matchExpressions.add(builder); } else { _visitables.get("matchExpressions").set(index, builder); matchExpressions.set(index, builder);} + if (index < 0 || index >= matchExpressions.size()) { + _visitables.get("matchExpressions").add(builder); + matchExpressions.add(builder); + } else { + _visitables.get("matchExpressions").add(builder); + matchExpressions.set(index, builder); + } return (A)this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SecretListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SecretListFluent.java index 69ea8f610b..0567ce97fc 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SecretListFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SecretListFluent.java @@ -54,14 +54,26 @@ public boolean hasApiVersion() { public A addToItems(int index,V1Secret item) { if (this.items == null) {this.items = new ArrayList();} V1SecretBuilder builder = new V1SecretBuilder(item); - if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); items.add(builder); } else { _visitables.get("items").add(index, builder); items.add(index, builder);} + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.add(index, builder); + } return (A)this; } public A setToItems(int index,V1Secret item) { if (this.items == null) {this.items = new ArrayList();} V1SecretBuilder builder = new V1SecretBuilder(item); - if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); items.add(builder); } else { _visitables.get("items").set(index, builder); items.set(index, builder);} + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.set(index, builder); + } return (A)this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SecretProjectionFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SecretProjectionFluent.java index d3db610a9b..a15f5ea7fc 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SecretProjectionFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SecretProjectionFluent.java @@ -40,14 +40,26 @@ protected void copyInstance(V1SecretProjection instance) { public A addToItems(int index,V1KeyToPath item) { if (this.items == null) {this.items = new ArrayList();} V1KeyToPathBuilder builder = new V1KeyToPathBuilder(item); - if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); items.add(builder); } else { _visitables.get("items").add(index, builder); items.add(index, builder);} + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.add(index, builder); + } return (A)this; } public A setToItems(int index,V1KeyToPath item) { if (this.items == null) {this.items = new ArrayList();} V1KeyToPathBuilder builder = new V1KeyToPathBuilder(item); - if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); items.add(builder); } else { _visitables.get("items").set(index, builder); items.set(index, builder);} + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.set(index, builder); + } return (A)this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SecretVolumeSourceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SecretVolumeSourceFluent.java index 7c7ba1fb0e..cf7c1e94fc 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SecretVolumeSourceFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SecretVolumeSourceFluent.java @@ -56,14 +56,26 @@ public boolean hasDefaultMode() { public A addToItems(int index,V1KeyToPath item) { if (this.items == null) {this.items = new ArrayList();} V1KeyToPathBuilder builder = new V1KeyToPathBuilder(item); - if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); items.add(builder); } else { _visitables.get("items").add(index, builder); items.add(index, builder);} + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.add(index, builder); + } return (A)this; } public A setToItems(int index,V1KeyToPath item) { if (this.items == null) {this.items = new ArrayList();} V1KeyToPathBuilder builder = new V1KeyToPathBuilder(item); - if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); items.add(builder); } else { _visitables.get("items").set(index, builder); items.set(index, builder);} + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.set(index, builder); + } return (A)this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SecurityContextBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SecurityContextBuilder.java index eca3ee621a..48ec988e0d 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SecurityContextBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SecurityContextBuilder.java @@ -24,6 +24,7 @@ public V1SecurityContextBuilder(V1SecurityContext instance) { public V1SecurityContext build() { V1SecurityContext buildable = new V1SecurityContext(); buildable.setAllowPrivilegeEscalation(fluent.getAllowPrivilegeEscalation()); + buildable.setAppArmorProfile(fluent.buildAppArmorProfile()); buildable.setCapabilities(fluent.buildCapabilities()); buildable.setPrivileged(fluent.getPrivileged()); buildable.setProcMount(fluent.getProcMount()); diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SecurityContextFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SecurityContextFluent.java index 71e2d424de..20ca3ef8f9 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SecurityContextFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SecurityContextFluent.java @@ -20,6 +20,7 @@ public V1SecurityContextFluent(V1SecurityContext instance) { this.copyInstance(instance); } private Boolean allowPrivilegeEscalation; + private V1AppArmorProfileBuilder appArmorProfile; private V1CapabilitiesBuilder capabilities; private Boolean privileged; private String procMount; @@ -35,6 +36,7 @@ protected void copyInstance(V1SecurityContext instance) { instance = (instance != null ? instance : new V1SecurityContext()); if (instance != null) { this.withAllowPrivilegeEscalation(instance.getAllowPrivilegeEscalation()); + this.withAppArmorProfile(instance.getAppArmorProfile()); this.withCapabilities(instance.getCapabilities()); this.withPrivileged(instance.getPrivileged()); this.withProcMount(instance.getProcMount()); @@ -61,6 +63,46 @@ public boolean hasAllowPrivilegeEscalation() { return this.allowPrivilegeEscalation != null; } + public V1AppArmorProfile buildAppArmorProfile() { + return this.appArmorProfile != null ? this.appArmorProfile.build() : null; + } + + public A withAppArmorProfile(V1AppArmorProfile appArmorProfile) { + this._visitables.remove("appArmorProfile"); + if (appArmorProfile != null) { + this.appArmorProfile = new V1AppArmorProfileBuilder(appArmorProfile); + this._visitables.get("appArmorProfile").add(this.appArmorProfile); + } else { + this.appArmorProfile = null; + this._visitables.get("appArmorProfile").remove(this.appArmorProfile); + } + return (A) this; + } + + public boolean hasAppArmorProfile() { + return this.appArmorProfile != null; + } + + public AppArmorProfileNested withNewAppArmorProfile() { + return new AppArmorProfileNested(null); + } + + public AppArmorProfileNested withNewAppArmorProfileLike(V1AppArmorProfile item) { + return new AppArmorProfileNested(item); + } + + public AppArmorProfileNested editAppArmorProfile() { + return withNewAppArmorProfileLike(java.util.Optional.ofNullable(buildAppArmorProfile()).orElse(null)); + } + + public AppArmorProfileNested editOrNewAppArmorProfile() { + return withNewAppArmorProfileLike(java.util.Optional.ofNullable(buildAppArmorProfile()).orElse(new V1AppArmorProfileBuilder().build())); + } + + public AppArmorProfileNested editOrNewAppArmorProfileLike(V1AppArmorProfile item) { + return withNewAppArmorProfileLike(java.util.Optional.ofNullable(buildAppArmorProfile()).orElse(item)); + } + public V1Capabilities buildCapabilities() { return this.capabilities != null ? this.capabilities.build() : null; } @@ -305,6 +347,7 @@ public boolean equals(Object o) { if (!super.equals(o)) return false; V1SecurityContextFluent that = (V1SecurityContextFluent) o; if (!java.util.Objects.equals(allowPrivilegeEscalation, that.allowPrivilegeEscalation)) return false; + if (!java.util.Objects.equals(appArmorProfile, that.appArmorProfile)) return false; if (!java.util.Objects.equals(capabilities, that.capabilities)) return false; if (!java.util.Objects.equals(privileged, that.privileged)) return false; if (!java.util.Objects.equals(procMount, that.procMount)) return false; @@ -319,13 +362,14 @@ public boolean equals(Object o) { } public int hashCode() { - return java.util.Objects.hash(allowPrivilegeEscalation, capabilities, privileged, procMount, readOnlyRootFilesystem, runAsGroup, runAsNonRoot, runAsUser, seLinuxOptions, seccompProfile, windowsOptions, super.hashCode()); + return java.util.Objects.hash(allowPrivilegeEscalation, appArmorProfile, capabilities, privileged, procMount, readOnlyRootFilesystem, runAsGroup, runAsNonRoot, runAsUser, seLinuxOptions, seccompProfile, windowsOptions, super.hashCode()); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (allowPrivilegeEscalation != null) { sb.append("allowPrivilegeEscalation:"); sb.append(allowPrivilegeEscalation + ","); } + if (appArmorProfile != null) { sb.append("appArmorProfile:"); sb.append(appArmorProfile + ","); } if (capabilities != null) { sb.append("capabilities:"); sb.append(capabilities + ","); } if (privileged != null) { sb.append("privileged:"); sb.append(privileged + ","); } if (procMount != null) { sb.append("procMount:"); sb.append(procMount + ","); } @@ -354,6 +398,22 @@ public A withReadOnlyRootFilesystem() { public A withRunAsNonRoot() { return withRunAsNonRoot(true); + } + public class AppArmorProfileNested extends V1AppArmorProfileFluent> implements Nested{ + AppArmorProfileNested(V1AppArmorProfile item) { + this.builder = new V1AppArmorProfileBuilder(this, item); + } + V1AppArmorProfileBuilder builder; + + public N and() { + return (N) V1SecurityContextFluent.this.withAppArmorProfile(builder.build()); + } + + public N endAppArmorProfile() { + return and(); + } + + } public class CapabilitiesNested extends V1CapabilitiesFluent> implements Nested{ CapabilitiesNested(V1Capabilities item) { diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SelectableFieldBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SelectableFieldBuilder.java new file mode 100644 index 0000000000..1e1054e464 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SelectableFieldBuilder.java @@ -0,0 +1,31 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +public class V1SelectableFieldBuilder extends V1SelectableFieldFluent implements VisitableBuilder{ + public V1SelectableFieldBuilder() { + this(new V1SelectableField()); + } + + public V1SelectableFieldBuilder(V1SelectableFieldFluent fluent) { + this(fluent, new V1SelectableField()); + } + + public V1SelectableFieldBuilder(V1SelectableFieldFluent fluent,V1SelectableField instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1SelectableFieldBuilder(V1SelectableField instance) { + this.fluent = this; + this.copyInstance(instance); + } + V1SelectableFieldFluent fluent; + + public V1SelectableField build() { + V1SelectableField buildable = new V1SelectableField(); + buildable.setJsonPath(fluent.getJsonPath()); + return buildable; + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SelectableFieldFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SelectableFieldFluent.java new file mode 100644 index 0000000000..2d75916ecd --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SelectableFieldFluent.java @@ -0,0 +1,63 @@ +package io.kubernetes.client.openapi.models; + +import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Object; +import java.lang.String; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1SelectableFieldFluent> extends BaseFluent{ + public V1SelectableFieldFluent() { + } + + public V1SelectableFieldFluent(V1SelectableField instance) { + this.copyInstance(instance); + } + private String jsonPath; + + protected void copyInstance(V1SelectableField instance) { + instance = (instance != null ? instance : new V1SelectableField()); + if (instance != null) { + this.withJsonPath(instance.getJsonPath()); + } + } + + public String getJsonPath() { + return this.jsonPath; + } + + public A withJsonPath(String jsonPath) { + this.jsonPath = jsonPath; + return (A) this; + } + + public boolean hasJsonPath() { + return this.jsonPath != null; + } + + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + if (!super.equals(o)) return false; + V1SelectableFieldFluent that = (V1SelectableFieldFluent) o; + if (!java.util.Objects.equals(jsonPath, that.jsonPath)) return false; + return true; + } + + public int hashCode() { + return java.util.Objects.hash(jsonPath, super.hashCode()); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (jsonPath != null) { sb.append("jsonPath:"); sb.append(jsonPath); } + sb.append("}"); + return sb.toString(); + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceAccountFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceAccountFluent.java index 868a6abe88..a9b9f8fa4f 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceAccountFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceAccountFluent.java @@ -72,14 +72,26 @@ public boolean hasAutomountServiceAccountToken() { public A addToImagePullSecrets(int index,V1LocalObjectReference item) { if (this.imagePullSecrets == null) {this.imagePullSecrets = new ArrayList();} V1LocalObjectReferenceBuilder builder = new V1LocalObjectReferenceBuilder(item); - if (index < 0 || index >= imagePullSecrets.size()) { _visitables.get("imagePullSecrets").add(builder); imagePullSecrets.add(builder); } else { _visitables.get("imagePullSecrets").add(index, builder); imagePullSecrets.add(index, builder);} + if (index < 0 || index >= imagePullSecrets.size()) { + _visitables.get("imagePullSecrets").add(builder); + imagePullSecrets.add(builder); + } else { + _visitables.get("imagePullSecrets").add(builder); + imagePullSecrets.add(index, builder); + } return (A)this; } public A setToImagePullSecrets(int index,V1LocalObjectReference item) { if (this.imagePullSecrets == null) {this.imagePullSecrets = new ArrayList();} V1LocalObjectReferenceBuilder builder = new V1LocalObjectReferenceBuilder(item); - if (index < 0 || index >= imagePullSecrets.size()) { _visitables.get("imagePullSecrets").add(builder); imagePullSecrets.add(builder); } else { _visitables.get("imagePullSecrets").set(index, builder); imagePullSecrets.set(index, builder);} + if (index < 0 || index >= imagePullSecrets.size()) { + _visitables.get("imagePullSecrets").add(builder); + imagePullSecrets.add(builder); + } else { + _visitables.get("imagePullSecrets").add(builder); + imagePullSecrets.set(index, builder); + } return (A)this; } @@ -276,14 +288,26 @@ public MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { public A addToSecrets(int index,V1ObjectReference item) { if (this.secrets == null) {this.secrets = new ArrayList();} V1ObjectReferenceBuilder builder = new V1ObjectReferenceBuilder(item); - if (index < 0 || index >= secrets.size()) { _visitables.get("secrets").add(builder); secrets.add(builder); } else { _visitables.get("secrets").add(index, builder); secrets.add(index, builder);} + if (index < 0 || index >= secrets.size()) { + _visitables.get("secrets").add(builder); + secrets.add(builder); + } else { + _visitables.get("secrets").add(builder); + secrets.add(index, builder); + } return (A)this; } public A setToSecrets(int index,V1ObjectReference item) { if (this.secrets == null) {this.secrets = new ArrayList();} V1ObjectReferenceBuilder builder = new V1ObjectReferenceBuilder(item); - if (index < 0 || index >= secrets.size()) { _visitables.get("secrets").add(builder); secrets.add(builder); } else { _visitables.get("secrets").set(index, builder); secrets.set(index, builder);} + if (index < 0 || index >= secrets.size()) { + _visitables.get("secrets").add(builder); + secrets.add(builder); + } else { + _visitables.get("secrets").add(builder); + secrets.set(index, builder); + } return (A)this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceAccountListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceAccountListFluent.java index 8a97948d71..9d33e26915 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceAccountListFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceAccountListFluent.java @@ -54,14 +54,26 @@ public boolean hasApiVersion() { public A addToItems(int index,V1ServiceAccount item) { if (this.items == null) {this.items = new ArrayList();} V1ServiceAccountBuilder builder = new V1ServiceAccountBuilder(item); - if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); items.add(builder); } else { _visitables.get("items").add(index, builder); items.add(index, builder);} + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.add(index, builder); + } return (A)this; } public A setToItems(int index,V1ServiceAccount item) { if (this.items == null) {this.items = new ArrayList();} V1ServiceAccountBuilder builder = new V1ServiceAccountBuilder(item); - if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); items.add(builder); } else { _visitables.get("items").set(index, builder); items.set(index, builder);} + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.set(index, builder); + } return (A)this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceAccountSubjectBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceAccountSubjectBuilder.java new file mode 100644 index 0000000000..b6307996ba --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceAccountSubjectBuilder.java @@ -0,0 +1,32 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +public class V1ServiceAccountSubjectBuilder extends V1ServiceAccountSubjectFluent implements VisitableBuilder{ + public V1ServiceAccountSubjectBuilder() { + this(new V1ServiceAccountSubject()); + } + + public V1ServiceAccountSubjectBuilder(V1ServiceAccountSubjectFluent fluent) { + this(fluent, new V1ServiceAccountSubject()); + } + + public V1ServiceAccountSubjectBuilder(V1ServiceAccountSubjectFluent fluent,V1ServiceAccountSubject instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1ServiceAccountSubjectBuilder(V1ServiceAccountSubject instance) { + this.fluent = this; + this.copyInstance(instance); + } + V1ServiceAccountSubjectFluent fluent; + + public V1ServiceAccountSubject build() { + V1ServiceAccountSubject buildable = new V1ServiceAccountSubject(); + buildable.setName(fluent.getName()); + buildable.setNamespace(fluent.getNamespace()); + return buildable; + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceAccountSubjectFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceAccountSubjectFluent.java new file mode 100644 index 0000000000..c398528f76 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceAccountSubjectFluent.java @@ -0,0 +1,80 @@ +package io.kubernetes.client.openapi.models; + +import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Object; +import java.lang.String; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1ServiceAccountSubjectFluent> extends BaseFluent{ + public V1ServiceAccountSubjectFluent() { + } + + public V1ServiceAccountSubjectFluent(V1ServiceAccountSubject instance) { + this.copyInstance(instance); + } + private String name; + private String namespace; + + protected void copyInstance(V1ServiceAccountSubject instance) { + instance = (instance != null ? instance : new V1ServiceAccountSubject()); + if (instance != null) { + this.withName(instance.getName()); + this.withNamespace(instance.getNamespace()); + } + } + + public String getName() { + return this.name; + } + + public A withName(String name) { + this.name = name; + return (A) this; + } + + public boolean hasName() { + return this.name != null; + } + + public String getNamespace() { + return this.namespace; + } + + public A withNamespace(String namespace) { + this.namespace = namespace; + return (A) this; + } + + public boolean hasNamespace() { + return this.namespace != null; + } + + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + if (!super.equals(o)) return false; + V1ServiceAccountSubjectFluent that = (V1ServiceAccountSubjectFluent) o; + if (!java.util.Objects.equals(name, that.name)) return false; + if (!java.util.Objects.equals(namespace, that.namespace)) return false; + return true; + } + + public int hashCode() { + return java.util.Objects.hash(name, namespace, super.hashCode()); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (name != null) { sb.append("name:"); sb.append(name + ","); } + if (namespace != null) { sb.append("namespace:"); sb.append(namespace); } + sb.append("}"); + return sb.toString(); + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceCIDRBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceCIDRBuilder.java new file mode 100644 index 0000000000..4a38d474f3 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceCIDRBuilder.java @@ -0,0 +1,35 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +public class V1ServiceCIDRBuilder extends V1ServiceCIDRFluent implements VisitableBuilder{ + public V1ServiceCIDRBuilder() { + this(new V1ServiceCIDR()); + } + + public V1ServiceCIDRBuilder(V1ServiceCIDRFluent fluent) { + this(fluent, new V1ServiceCIDR()); + } + + public V1ServiceCIDRBuilder(V1ServiceCIDRFluent fluent,V1ServiceCIDR instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1ServiceCIDRBuilder(V1ServiceCIDR instance) { + this.fluent = this; + this.copyInstance(instance); + } + V1ServiceCIDRFluent fluent; + + public V1ServiceCIDR build() { + V1ServiceCIDR buildable = new V1ServiceCIDR(); + buildable.setApiVersion(fluent.getApiVersion()); + buildable.setKind(fluent.getKind()); + buildable.setMetadata(fluent.buildMetadata()); + buildable.setSpec(fluent.buildSpec()); + buildable.setStatus(fluent.buildStatus()); + return buildable; + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceCIDRFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceCIDRFluent.java new file mode 100644 index 0000000000..ef07b825ff --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceCIDRFluent.java @@ -0,0 +1,260 @@ +package io.kubernetes.client.openapi.models; + +import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.Nested; +import java.lang.String; +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Object; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1ServiceCIDRFluent> extends BaseFluent{ + public V1ServiceCIDRFluent() { + } + + public V1ServiceCIDRFluent(V1ServiceCIDR instance) { + this.copyInstance(instance); + } + private String apiVersion; + private String kind; + private V1ObjectMetaBuilder metadata; + private V1ServiceCIDRSpecBuilder spec; + private V1ServiceCIDRStatusBuilder status; + + protected void copyInstance(V1ServiceCIDR instance) { + instance = (instance != null ? instance : new V1ServiceCIDR()); + if (instance != null) { + this.withApiVersion(instance.getApiVersion()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); + this.withSpec(instance.getSpec()); + this.withStatus(instance.getStatus()); + } + } + + public String getApiVersion() { + return this.apiVersion; + } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + + public boolean hasApiVersion() { + return this.apiVersion != null; + } + + public String getKind() { + return this.kind; + } + + public A withKind(String kind) { + this.kind = kind; + return (A) this; + } + + public boolean hasKind() { + return this.kind != null; + } + + public V1ObjectMeta buildMetadata() { + return this.metadata != null ? this.metadata.build() : null; + } + + public A withMetadata(V1ObjectMeta metadata) { + this._visitables.remove("metadata"); + if (metadata != null) { + this.metadata = new V1ObjectMetaBuilder(metadata); + this._visitables.get("metadata").add(this.metadata); + } else { + this.metadata = null; + this._visitables.get("metadata").remove(this.metadata); + } + return (A) this; + } + + public boolean hasMetadata() { + return this.metadata != null; + } + + public MetadataNested withNewMetadata() { + return new MetadataNested(null); + } + + public MetadataNested withNewMetadataLike(V1ObjectMeta item) { + return new MetadataNested(item); + } + + public MetadataNested editMetadata() { + return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(null)); + } + + public MetadataNested editOrNewMetadata() { + return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(new V1ObjectMetaBuilder().build())); + } + + public MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { + return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(item)); + } + + public V1ServiceCIDRSpec buildSpec() { + return this.spec != null ? this.spec.build() : null; + } + + public A withSpec(V1ServiceCIDRSpec spec) { + this._visitables.remove("spec"); + if (spec != null) { + this.spec = new V1ServiceCIDRSpecBuilder(spec); + this._visitables.get("spec").add(this.spec); + } else { + this.spec = null; + this._visitables.get("spec").remove(this.spec); + } + return (A) this; + } + + public boolean hasSpec() { + return this.spec != null; + } + + public SpecNested withNewSpec() { + return new SpecNested(null); + } + + public SpecNested withNewSpecLike(V1ServiceCIDRSpec item) { + return new SpecNested(item); + } + + public SpecNested editSpec() { + return withNewSpecLike(java.util.Optional.ofNullable(buildSpec()).orElse(null)); + } + + public SpecNested editOrNewSpec() { + return withNewSpecLike(java.util.Optional.ofNullable(buildSpec()).orElse(new V1ServiceCIDRSpecBuilder().build())); + } + + public SpecNested editOrNewSpecLike(V1ServiceCIDRSpec item) { + return withNewSpecLike(java.util.Optional.ofNullable(buildSpec()).orElse(item)); + } + + public V1ServiceCIDRStatus buildStatus() { + return this.status != null ? this.status.build() : null; + } + + public A withStatus(V1ServiceCIDRStatus status) { + this._visitables.remove("status"); + if (status != null) { + this.status = new V1ServiceCIDRStatusBuilder(status); + this._visitables.get("status").add(this.status); + } else { + this.status = null; + this._visitables.get("status").remove(this.status); + } + return (A) this; + } + + public boolean hasStatus() { + return this.status != null; + } + + public StatusNested withNewStatus() { + return new StatusNested(null); + } + + public StatusNested withNewStatusLike(V1ServiceCIDRStatus item) { + return new StatusNested(item); + } + + public StatusNested editStatus() { + return withNewStatusLike(java.util.Optional.ofNullable(buildStatus()).orElse(null)); + } + + public StatusNested editOrNewStatus() { + return withNewStatusLike(java.util.Optional.ofNullable(buildStatus()).orElse(new V1ServiceCIDRStatusBuilder().build())); + } + + public StatusNested editOrNewStatusLike(V1ServiceCIDRStatus item) { + return withNewStatusLike(java.util.Optional.ofNullable(buildStatus()).orElse(item)); + } + + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + if (!super.equals(o)) return false; + V1ServiceCIDRFluent that = (V1ServiceCIDRFluent) o; + if (!java.util.Objects.equals(apiVersion, that.apiVersion)) return false; + if (!java.util.Objects.equals(kind, that.kind)) return false; + if (!java.util.Objects.equals(metadata, that.metadata)) return false; + if (!java.util.Objects.equals(spec, that.spec)) return false; + if (!java.util.Objects.equals(status, that.status)) return false; + return true; + } + + public int hashCode() { + return java.util.Objects.hash(apiVersion, kind, metadata, spec, status, super.hashCode()); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (apiVersion != null) { sb.append("apiVersion:"); sb.append(apiVersion + ","); } + if (kind != null) { sb.append("kind:"); sb.append(kind + ","); } + if (metadata != null) { sb.append("metadata:"); sb.append(metadata + ","); } + if (spec != null) { sb.append("spec:"); sb.append(spec + ","); } + if (status != null) { sb.append("status:"); sb.append(status); } + sb.append("}"); + return sb.toString(); + } + public class MetadataNested extends V1ObjectMetaFluent> implements Nested{ + MetadataNested(V1ObjectMeta item) { + this.builder = new V1ObjectMetaBuilder(this, item); + } + V1ObjectMetaBuilder builder; + + public N and() { + return (N) V1ServiceCIDRFluent.this.withMetadata(builder.build()); + } + + public N endMetadata() { + return and(); + } + + + } + public class SpecNested extends V1ServiceCIDRSpecFluent> implements Nested{ + SpecNested(V1ServiceCIDRSpec item) { + this.builder = new V1ServiceCIDRSpecBuilder(this, item); + } + V1ServiceCIDRSpecBuilder builder; + + public N and() { + return (N) V1ServiceCIDRFluent.this.withSpec(builder.build()); + } + + public N endSpec() { + return and(); + } + + + } + public class StatusNested extends V1ServiceCIDRStatusFluent> implements Nested{ + StatusNested(V1ServiceCIDRStatus item) { + this.builder = new V1ServiceCIDRStatusBuilder(this, item); + } + V1ServiceCIDRStatusBuilder builder; + + public N and() { + return (N) V1ServiceCIDRFluent.this.withStatus(builder.build()); + } + + public N endStatus() { + return and(); + } + + + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceCIDRListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceCIDRListBuilder.java new file mode 100644 index 0000000000..2b4bedbe34 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceCIDRListBuilder.java @@ -0,0 +1,34 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +public class V1ServiceCIDRListBuilder extends V1ServiceCIDRListFluent implements VisitableBuilder{ + public V1ServiceCIDRListBuilder() { + this(new V1ServiceCIDRList()); + } + + public V1ServiceCIDRListBuilder(V1ServiceCIDRListFluent fluent) { + this(fluent, new V1ServiceCIDRList()); + } + + public V1ServiceCIDRListBuilder(V1ServiceCIDRListFluent fluent,V1ServiceCIDRList instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1ServiceCIDRListBuilder(V1ServiceCIDRList instance) { + this.fluent = this; + this.copyInstance(instance); + } + V1ServiceCIDRListFluent fluent; + + public V1ServiceCIDRList build() { + V1ServiceCIDRList buildable = new V1ServiceCIDRList(); + buildable.setApiVersion(fluent.getApiVersion()); + buildable.setItems(fluent.buildItems()); + buildable.setKind(fluent.getKind()); + buildable.setMetadata(fluent.buildMetadata()); + return buildable; + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceCIDRListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceCIDRListFluent.java new file mode 100644 index 0000000000..8d43a424ad --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceCIDRListFluent.java @@ -0,0 +1,331 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.Nested; +import java.util.ArrayList; +import java.lang.String; +import java.util.function.Predicate; +import io.kubernetes.client.fluent.BaseFluent; +import java.util.Iterator; +import java.util.Collection; +import java.lang.Object; +import java.util.List; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1ServiceCIDRListFluent> extends BaseFluent{ + public V1ServiceCIDRListFluent() { + } + + public V1ServiceCIDRListFluent(V1ServiceCIDRList instance) { + this.copyInstance(instance); + } + private String apiVersion; + private ArrayList items; + private String kind; + private V1ListMetaBuilder metadata; + + protected void copyInstance(V1ServiceCIDRList instance) { + instance = (instance != null ? instance : new V1ServiceCIDRList()); + if (instance != null) { + this.withApiVersion(instance.getApiVersion()); + this.withItems(instance.getItems()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); + } + } + + public String getApiVersion() { + return this.apiVersion; + } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + + public boolean hasApiVersion() { + return this.apiVersion != null; + } + + public A addToItems(int index,V1ServiceCIDR item) { + if (this.items == null) {this.items = new ArrayList();} + V1ServiceCIDRBuilder builder = new V1ServiceCIDRBuilder(item); + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.add(index, builder); + } + return (A)this; + } + + public A setToItems(int index,V1ServiceCIDR item) { + if (this.items == null) {this.items = new ArrayList();} + V1ServiceCIDRBuilder builder = new V1ServiceCIDRBuilder(item); + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.set(index, builder); + } + return (A)this; + } + + public A addToItems(io.kubernetes.client.openapi.models.V1ServiceCIDR... items) { + if (this.items == null) {this.items = new ArrayList();} + for (V1ServiceCIDR item : items) {V1ServiceCIDRBuilder builder = new V1ServiceCIDRBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; + } + + public A addAllToItems(Collection items) { + if (this.items == null) {this.items = new ArrayList();} + for (V1ServiceCIDR item : items) {V1ServiceCIDRBuilder builder = new V1ServiceCIDRBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; + } + + public A removeFromItems(io.kubernetes.client.openapi.models.V1ServiceCIDR... items) { + if (this.items == null) return (A)this; + for (V1ServiceCIDR item : items) {V1ServiceCIDRBuilder builder = new V1ServiceCIDRBuilder(item);_visitables.get("items").remove(builder); this.items.remove(builder);} return (A)this; + } + + public A removeAllFromItems(Collection items) { + if (this.items == null) return (A)this; + for (V1ServiceCIDR item : items) {V1ServiceCIDRBuilder builder = new V1ServiceCIDRBuilder(item);_visitables.get("items").remove(builder); this.items.remove(builder);} return (A)this; + } + + public A removeMatchingFromItems(Predicate predicate) { + if (items == null) return (A) this; + final Iterator each = items.iterator(); + final List visitables = _visitables.get("items"); + while (each.hasNext()) { + V1ServiceCIDRBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A)this; + } + + public List buildItems() { + return this.items != null ? build(items) : null; + } + + public V1ServiceCIDR buildItem(int index) { + return this.items.get(index).build(); + } + + public V1ServiceCIDR buildFirstItem() { + return this.items.get(0).build(); + } + + public V1ServiceCIDR buildLastItem() { + return this.items.get(items.size() - 1).build(); + } + + public V1ServiceCIDR buildMatchingItem(Predicate predicate) { + for (V1ServiceCIDRBuilder item : items) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; + } + + public boolean hasMatchingItem(Predicate predicate) { + for (V1ServiceCIDRBuilder item : items) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public A withItems(List items) { + if (this.items != null) { + this._visitables.get("items").clear(); + } + if (items != null) { + this.items = new ArrayList(); + for (V1ServiceCIDR item : items) { + this.addToItems(item); + } + } else { + this.items = null; + } + return (A) this; + } + + public A withItems(io.kubernetes.client.openapi.models.V1ServiceCIDR... items) { + if (this.items != null) { + this.items.clear(); + _visitables.remove("items"); + } + if (items != null) { + for (V1ServiceCIDR item : items) { + this.addToItems(item); + } + } + return (A) this; + } + + public boolean hasItems() { + return this.items != null && !this.items.isEmpty(); + } + + public ItemsNested addNewItem() { + return new ItemsNested(-1, null); + } + + public ItemsNested addNewItemLike(V1ServiceCIDR item) { + return new ItemsNested(-1, item); + } + + public ItemsNested setNewItemLike(int index,V1ServiceCIDR item) { + return new ItemsNested(index, item); + } + + public ItemsNested editItem(int index) { + if (items.size() <= index) throw new RuntimeException("Can't edit items. Index exceeds size."); + return setNewItemLike(index, buildItem(index)); + } + + public ItemsNested editFirstItem() { + if (items.size() == 0) throw new RuntimeException("Can't edit first items. The list is empty."); + return setNewItemLike(0, buildItem(0)); + } + + public ItemsNested editLastItem() { + int index = items.size() - 1; + if (index < 0) throw new RuntimeException("Can't edit last items. The list is empty."); + return setNewItemLike(index, buildItem(index)); + } + + public ItemsNested editMatchingItem(Predicate predicate) { + int index = -1; + for (int i=0;i withNewMetadata() { + return new MetadataNested(null); + } + + public MetadataNested withNewMetadataLike(V1ListMeta item) { + return new MetadataNested(item); + } + + public MetadataNested editMetadata() { + return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(null)); + } + + public MetadataNested editOrNewMetadata() { + return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(new V1ListMetaBuilder().build())); + } + + public MetadataNested editOrNewMetadataLike(V1ListMeta item) { + return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(item)); + } + + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + if (!super.equals(o)) return false; + V1ServiceCIDRListFluent that = (V1ServiceCIDRListFluent) o; + if (!java.util.Objects.equals(apiVersion, that.apiVersion)) return false; + if (!java.util.Objects.equals(items, that.items)) return false; + if (!java.util.Objects.equals(kind, that.kind)) return false; + if (!java.util.Objects.equals(metadata, that.metadata)) return false; + return true; + } + + public int hashCode() { + return java.util.Objects.hash(apiVersion, items, kind, metadata, super.hashCode()); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (apiVersion != null) { sb.append("apiVersion:"); sb.append(apiVersion + ","); } + if (items != null && !items.isEmpty()) { sb.append("items:"); sb.append(items + ","); } + if (kind != null) { sb.append("kind:"); sb.append(kind + ","); } + if (metadata != null) { sb.append("metadata:"); sb.append(metadata); } + sb.append("}"); + return sb.toString(); + } + public class ItemsNested extends V1ServiceCIDRFluent> implements Nested{ + ItemsNested(int index,V1ServiceCIDR item) { + this.index = index; + this.builder = new V1ServiceCIDRBuilder(this, item); + } + V1ServiceCIDRBuilder builder; + int index; + + public N and() { + return (N) V1ServiceCIDRListFluent.this.setToItems(index,builder.build()); + } + + public N endItem() { + return and(); + } + + + } + public class MetadataNested extends V1ListMetaFluent> implements Nested{ + MetadataNested(V1ListMeta item) { + this.builder = new V1ListMetaBuilder(this, item); + } + V1ListMetaBuilder builder; + + public N and() { + return (N) V1ServiceCIDRListFluent.this.withMetadata(builder.build()); + } + + public N endMetadata() { + return and(); + } + + + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceCIDRSpecBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceCIDRSpecBuilder.java new file mode 100644 index 0000000000..0e939584e4 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceCIDRSpecBuilder.java @@ -0,0 +1,31 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +public class V1ServiceCIDRSpecBuilder extends V1ServiceCIDRSpecFluent implements VisitableBuilder{ + public V1ServiceCIDRSpecBuilder() { + this(new V1ServiceCIDRSpec()); + } + + public V1ServiceCIDRSpecBuilder(V1ServiceCIDRSpecFluent fluent) { + this(fluent, new V1ServiceCIDRSpec()); + } + + public V1ServiceCIDRSpecBuilder(V1ServiceCIDRSpecFluent fluent,V1ServiceCIDRSpec instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1ServiceCIDRSpecBuilder(V1ServiceCIDRSpec instance) { + this.fluent = this; + this.copyInstance(instance); + } + V1ServiceCIDRSpecFluent fluent; + + public V1ServiceCIDRSpec build() { + V1ServiceCIDRSpec buildable = new V1ServiceCIDRSpec(); + buildable.setCidrs(fluent.getCidrs()); + return buildable; + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceCIDRSpecFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceCIDRSpecFluent.java new file mode 100644 index 0000000000..6f123ed2c3 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceCIDRSpecFluent.java @@ -0,0 +1,148 @@ +package io.kubernetes.client.openapi.models; + +import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; +import java.util.ArrayList; +import java.util.Collection; +import java.lang.Object; +import java.util.List; +import java.lang.String; +import java.util.function.Predicate; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1ServiceCIDRSpecFluent> extends BaseFluent{ + public V1ServiceCIDRSpecFluent() { + } + + public V1ServiceCIDRSpecFluent(V1ServiceCIDRSpec instance) { + this.copyInstance(instance); + } + private List cidrs; + + protected void copyInstance(V1ServiceCIDRSpec instance) { + instance = (instance != null ? instance : new V1ServiceCIDRSpec()); + if (instance != null) { + this.withCidrs(instance.getCidrs()); + } + } + + public A addToCidrs(int index,String item) { + if (this.cidrs == null) {this.cidrs = new ArrayList();} + this.cidrs.add(index, item); + return (A)this; + } + + public A setToCidrs(int index,String item) { + if (this.cidrs == null) {this.cidrs = new ArrayList();} + this.cidrs.set(index, item); return (A)this; + } + + public A addToCidrs(java.lang.String... items) { + if (this.cidrs == null) {this.cidrs = new ArrayList();} + for (String item : items) {this.cidrs.add(item);} return (A)this; + } + + public A addAllToCidrs(Collection items) { + if (this.cidrs == null) {this.cidrs = new ArrayList();} + for (String item : items) {this.cidrs.add(item);} return (A)this; + } + + public A removeFromCidrs(java.lang.String... items) { + if (this.cidrs == null) return (A)this; + for (String item : items) { this.cidrs.remove(item);} return (A)this; + } + + public A removeAllFromCidrs(Collection items) { + if (this.cidrs == null) return (A)this; + for (String item : items) { this.cidrs.remove(item);} return (A)this; + } + + public List getCidrs() { + return this.cidrs; + } + + public String getCidr(int index) { + return this.cidrs.get(index); + } + + public String getFirstCidr() { + return this.cidrs.get(0); + } + + public String getLastCidr() { + return this.cidrs.get(cidrs.size() - 1); + } + + public String getMatchingCidr(Predicate predicate) { + for (String item : cidrs) { + if (predicate.test(item)) { + return item; + } + } + return null; + } + + public boolean hasMatchingCidr(Predicate predicate) { + for (String item : cidrs) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public A withCidrs(List cidrs) { + if (cidrs != null) { + this.cidrs = new ArrayList(); + for (String item : cidrs) { + this.addToCidrs(item); + } + } else { + this.cidrs = null; + } + return (A) this; + } + + public A withCidrs(java.lang.String... cidrs) { + if (this.cidrs != null) { + this.cidrs.clear(); + _visitables.remove("cidrs"); + } + if (cidrs != null) { + for (String item : cidrs) { + this.addToCidrs(item); + } + } + return (A) this; + } + + public boolean hasCidrs() { + return this.cidrs != null && !this.cidrs.isEmpty(); + } + + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + if (!super.equals(o)) return false; + V1ServiceCIDRSpecFluent that = (V1ServiceCIDRSpecFluent) o; + if (!java.util.Objects.equals(cidrs, that.cidrs)) return false; + return true; + } + + public int hashCode() { + return java.util.Objects.hash(cidrs, super.hashCode()); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (cidrs != null && !cidrs.isEmpty()) { sb.append("cidrs:"); sb.append(cidrs); } + sb.append("}"); + return sb.toString(); + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceCIDRStatusBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceCIDRStatusBuilder.java new file mode 100644 index 0000000000..eb9491bfbf --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceCIDRStatusBuilder.java @@ -0,0 +1,31 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +public class V1ServiceCIDRStatusBuilder extends V1ServiceCIDRStatusFluent implements VisitableBuilder{ + public V1ServiceCIDRStatusBuilder() { + this(new V1ServiceCIDRStatus()); + } + + public V1ServiceCIDRStatusBuilder(V1ServiceCIDRStatusFluent fluent) { + this(fluent, new V1ServiceCIDRStatus()); + } + + public V1ServiceCIDRStatusBuilder(V1ServiceCIDRStatusFluent fluent,V1ServiceCIDRStatus instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1ServiceCIDRStatusBuilder(V1ServiceCIDRStatus instance) { + this.fluent = this; + this.copyInstance(instance); + } + V1ServiceCIDRStatusFluent fluent; + + public V1ServiceCIDRStatus build() { + V1ServiceCIDRStatus buildable = new V1ServiceCIDRStatus(); + buildable.setConditions(fluent.buildConditions()); + return buildable; + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceCIDRStatusFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceCIDRStatusFluent.java new file mode 100644 index 0000000000..3b9e6ead0f --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceCIDRStatusFluent.java @@ -0,0 +1,237 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.Nested; +import java.util.ArrayList; +import java.lang.String; +import java.util.function.Predicate; +import io.kubernetes.client.fluent.BaseFluent; +import java.util.Iterator; +import java.util.Collection; +import java.lang.Object; +import java.util.List; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1ServiceCIDRStatusFluent> extends BaseFluent{ + public V1ServiceCIDRStatusFluent() { + } + + public V1ServiceCIDRStatusFluent(V1ServiceCIDRStatus instance) { + this.copyInstance(instance); + } + private ArrayList conditions; + + protected void copyInstance(V1ServiceCIDRStatus instance) { + instance = (instance != null ? instance : new V1ServiceCIDRStatus()); + if (instance != null) { + this.withConditions(instance.getConditions()); + } + } + + public A addToConditions(int index,V1Condition item) { + if (this.conditions == null) {this.conditions = new ArrayList();} + V1ConditionBuilder builder = new V1ConditionBuilder(item); + if (index < 0 || index >= conditions.size()) { + _visitables.get("conditions").add(builder); + conditions.add(builder); + } else { + _visitables.get("conditions").add(builder); + conditions.add(index, builder); + } + return (A)this; + } + + public A setToConditions(int index,V1Condition item) { + if (this.conditions == null) {this.conditions = new ArrayList();} + V1ConditionBuilder builder = new V1ConditionBuilder(item); + if (index < 0 || index >= conditions.size()) { + _visitables.get("conditions").add(builder); + conditions.add(builder); + } else { + _visitables.get("conditions").add(builder); + conditions.set(index, builder); + } + return (A)this; + } + + public A addToConditions(io.kubernetes.client.openapi.models.V1Condition... items) { + if (this.conditions == null) {this.conditions = new ArrayList();} + for (V1Condition item : items) {V1ConditionBuilder builder = new V1ConditionBuilder(item);_visitables.get("conditions").add(builder);this.conditions.add(builder);} return (A)this; + } + + public A addAllToConditions(Collection items) { + if (this.conditions == null) {this.conditions = new ArrayList();} + for (V1Condition item : items) {V1ConditionBuilder builder = new V1ConditionBuilder(item);_visitables.get("conditions").add(builder);this.conditions.add(builder);} return (A)this; + } + + public A removeFromConditions(io.kubernetes.client.openapi.models.V1Condition... items) { + if (this.conditions == null) return (A)this; + for (V1Condition item : items) {V1ConditionBuilder builder = new V1ConditionBuilder(item);_visitables.get("conditions").remove(builder); this.conditions.remove(builder);} return (A)this; + } + + public A removeAllFromConditions(Collection items) { + if (this.conditions == null) return (A)this; + for (V1Condition item : items) {V1ConditionBuilder builder = new V1ConditionBuilder(item);_visitables.get("conditions").remove(builder); this.conditions.remove(builder);} return (A)this; + } + + public A removeMatchingFromConditions(Predicate predicate) { + if (conditions == null) return (A) this; + final Iterator each = conditions.iterator(); + final List visitables = _visitables.get("conditions"); + while (each.hasNext()) { + V1ConditionBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A)this; + } + + public List buildConditions() { + return this.conditions != null ? build(conditions) : null; + } + + public V1Condition buildCondition(int index) { + return this.conditions.get(index).build(); + } + + public V1Condition buildFirstCondition() { + return this.conditions.get(0).build(); + } + + public V1Condition buildLastCondition() { + return this.conditions.get(conditions.size() - 1).build(); + } + + public V1Condition buildMatchingCondition(Predicate predicate) { + for (V1ConditionBuilder item : conditions) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; + } + + public boolean hasMatchingCondition(Predicate predicate) { + for (V1ConditionBuilder item : conditions) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public A withConditions(List conditions) { + if (this.conditions != null) { + this._visitables.get("conditions").clear(); + } + if (conditions != null) { + this.conditions = new ArrayList(); + for (V1Condition item : conditions) { + this.addToConditions(item); + } + } else { + this.conditions = null; + } + return (A) this; + } + + public A withConditions(io.kubernetes.client.openapi.models.V1Condition... conditions) { + if (this.conditions != null) { + this.conditions.clear(); + _visitables.remove("conditions"); + } + if (conditions != null) { + for (V1Condition item : conditions) { + this.addToConditions(item); + } + } + return (A) this; + } + + public boolean hasConditions() { + return this.conditions != null && !this.conditions.isEmpty(); + } + + public ConditionsNested addNewCondition() { + return new ConditionsNested(-1, null); + } + + public ConditionsNested addNewConditionLike(V1Condition item) { + return new ConditionsNested(-1, item); + } + + public ConditionsNested setNewConditionLike(int index,V1Condition item) { + return new ConditionsNested(index, item); + } + + public ConditionsNested editCondition(int index) { + if (conditions.size() <= index) throw new RuntimeException("Can't edit conditions. Index exceeds size."); + return setNewConditionLike(index, buildCondition(index)); + } + + public ConditionsNested editFirstCondition() { + if (conditions.size() == 0) throw new RuntimeException("Can't edit first conditions. The list is empty."); + return setNewConditionLike(0, buildCondition(0)); + } + + public ConditionsNested editLastCondition() { + int index = conditions.size() - 1; + if (index < 0) throw new RuntimeException("Can't edit last conditions. The list is empty."); + return setNewConditionLike(index, buildCondition(index)); + } + + public ConditionsNested editMatchingCondition(Predicate predicate) { + int index = -1; + for (int i=0;i extends V1ConditionFluent> implements Nested{ + ConditionsNested(int index,V1Condition item) { + this.index = index; + this.builder = new V1ConditionBuilder(this, item); + } + V1ConditionBuilder builder; + int index; + + public N and() { + return (N) V1ServiceCIDRStatusFluent.this.setToConditions(index,builder.build()); + } + + public N endCondition() { + return and(); + } + + + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceListFluent.java index 24b4fae0f2..fdbe00e477 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceListFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceListFluent.java @@ -54,14 +54,26 @@ public boolean hasApiVersion() { public A addToItems(int index,V1Service item) { if (this.items == null) {this.items = new ArrayList();} V1ServiceBuilder builder = new V1ServiceBuilder(item); - if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); items.add(builder); } else { _visitables.get("items").add(index, builder); items.add(index, builder);} + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.add(index, builder); + } return (A)this; } public A setToItems(int index,V1Service item) { if (this.items == null) {this.items = new ArrayList();} V1ServiceBuilder builder = new V1ServiceBuilder(item); - if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); items.add(builder); } else { _visitables.get("items").set(index, builder); items.set(index, builder);} + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.set(index, builder); + } return (A)this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceSpecBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceSpecBuilder.java index c79afeff60..9186e2c714 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceSpecBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceSpecBuilder.java @@ -41,6 +41,7 @@ public V1ServiceSpec build() { buildable.setSelector(fluent.getSelector()); buildable.setSessionAffinity(fluent.getSessionAffinity()); buildable.setSessionAffinityConfig(fluent.buildSessionAffinityConfig()); + buildable.setTrafficDistribution(fluent.getTrafficDistribution()); buildable.setType(fluent.getType()); return buildable; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceSpecFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceSpecFluent.java index d5804f27a9..449ecfb4c3 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceSpecFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceSpecFluent.java @@ -45,6 +45,7 @@ public V1ServiceSpecFluent(V1ServiceSpec instance) { private Map selector; private String sessionAffinity; private V1SessionAffinityConfigBuilder sessionAffinityConfig; + private String trafficDistribution; private String type; protected void copyInstance(V1ServiceSpec instance) { @@ -68,6 +69,7 @@ protected void copyInstance(V1ServiceSpec instance) { this.withSelector(instance.getSelector()); this.withSessionAffinity(instance.getSessionAffinity()); this.withSessionAffinityConfig(instance.getSessionAffinityConfig()); + this.withTrafficDistribution(instance.getTrafficDistribution()); this.withType(instance.getType()); } } @@ -568,14 +570,26 @@ public boolean hasLoadBalancerSourceRanges() { public A addToPorts(int index,V1ServicePort item) { if (this.ports == null) {this.ports = new ArrayList();} V1ServicePortBuilder builder = new V1ServicePortBuilder(item); - if (index < 0 || index >= ports.size()) { _visitables.get("ports").add(builder); ports.add(builder); } else { _visitables.get("ports").add(index, builder); ports.add(index, builder);} + if (index < 0 || index >= ports.size()) { + _visitables.get("ports").add(builder); + ports.add(builder); + } else { + _visitables.get("ports").add(builder); + ports.add(index, builder); + } return (A)this; } public A setToPorts(int index,V1ServicePort item) { if (this.ports == null) {this.ports = new ArrayList();} V1ServicePortBuilder builder = new V1ServicePortBuilder(item); - if (index < 0 || index >= ports.size()) { _visitables.get("ports").add(builder); ports.add(builder); } else { _visitables.get("ports").set(index, builder); ports.set(index, builder);} + if (index < 0 || index >= ports.size()) { + _visitables.get("ports").add(builder); + ports.add(builder); + } else { + _visitables.get("ports").add(builder); + ports.set(index, builder); + } return (A)this; } @@ -819,6 +833,19 @@ public SessionAffinityConfigNested editOrNewSessionAffinityConfigLike(V1Sessi return withNewSessionAffinityConfigLike(java.util.Optional.ofNullable(buildSessionAffinityConfig()).orElse(item)); } + public String getTrafficDistribution() { + return this.trafficDistribution; + } + + public A withTrafficDistribution(String trafficDistribution) { + this.trafficDistribution = trafficDistribution; + return (A) this; + } + + public boolean hasTrafficDistribution() { + return this.trafficDistribution != null; + } + public String getType() { return this.type; } @@ -855,12 +882,13 @@ public boolean equals(Object o) { if (!java.util.Objects.equals(selector, that.selector)) return false; if (!java.util.Objects.equals(sessionAffinity, that.sessionAffinity)) return false; if (!java.util.Objects.equals(sessionAffinityConfig, that.sessionAffinityConfig)) return false; + if (!java.util.Objects.equals(trafficDistribution, that.trafficDistribution)) return false; if (!java.util.Objects.equals(type, that.type)) return false; return true; } public int hashCode() { - return java.util.Objects.hash(allocateLoadBalancerNodePorts, clusterIP, clusterIPs, externalIPs, externalName, externalTrafficPolicy, healthCheckNodePort, internalTrafficPolicy, ipFamilies, ipFamilyPolicy, loadBalancerClass, loadBalancerIP, loadBalancerSourceRanges, ports, publishNotReadyAddresses, selector, sessionAffinity, sessionAffinityConfig, type, super.hashCode()); + return java.util.Objects.hash(allocateLoadBalancerNodePorts, clusterIP, clusterIPs, externalIPs, externalName, externalTrafficPolicy, healthCheckNodePort, internalTrafficPolicy, ipFamilies, ipFamilyPolicy, loadBalancerClass, loadBalancerIP, loadBalancerSourceRanges, ports, publishNotReadyAddresses, selector, sessionAffinity, sessionAffinityConfig, trafficDistribution, type, super.hashCode()); } public String toString() { @@ -884,6 +912,7 @@ public String toString() { if (selector != null && !selector.isEmpty()) { sb.append("selector:"); sb.append(selector + ","); } if (sessionAffinity != null) { sb.append("sessionAffinity:"); sb.append(sessionAffinity + ","); } if (sessionAffinityConfig != null) { sb.append("sessionAffinityConfig:"); sb.append(sessionAffinityConfig + ","); } + if (trafficDistribution != null) { sb.append("trafficDistribution:"); sb.append(trafficDistribution + ","); } if (type != null) { sb.append("type:"); sb.append(type); } sb.append("}"); return sb.toString(); diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceStatusFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceStatusFluent.java index 7e723d698e..98573d1730 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceStatusFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceStatusFluent.java @@ -37,14 +37,26 @@ protected void copyInstance(V1ServiceStatus instance) { public A addToConditions(int index,V1Condition item) { if (this.conditions == null) {this.conditions = new ArrayList();} V1ConditionBuilder builder = new V1ConditionBuilder(item); - if (index < 0 || index >= conditions.size()) { _visitables.get("conditions").add(builder); conditions.add(builder); } else { _visitables.get("conditions").add(index, builder); conditions.add(index, builder);} + if (index < 0 || index >= conditions.size()) { + _visitables.get("conditions").add(builder); + conditions.add(builder); + } else { + _visitables.get("conditions").add(builder); + conditions.add(index, builder); + } return (A)this; } public A setToConditions(int index,V1Condition item) { if (this.conditions == null) {this.conditions = new ArrayList();} V1ConditionBuilder builder = new V1ConditionBuilder(item); - if (index < 0 || index >= conditions.size()) { _visitables.get("conditions").add(builder); conditions.add(builder); } else { _visitables.get("conditions").set(index, builder); conditions.set(index, builder);} + if (index < 0 || index >= conditions.size()) { + _visitables.get("conditions").add(builder); + conditions.add(builder); + } else { + _visitables.get("conditions").add(builder); + conditions.set(index, builder); + } return (A)this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SleepActionBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SleepActionBuilder.java new file mode 100644 index 0000000000..cfd1d66dad --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SleepActionBuilder.java @@ -0,0 +1,31 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +public class V1SleepActionBuilder extends V1SleepActionFluent implements VisitableBuilder{ + public V1SleepActionBuilder() { + this(new V1SleepAction()); + } + + public V1SleepActionBuilder(V1SleepActionFluent fluent) { + this(fluent, new V1SleepAction()); + } + + public V1SleepActionBuilder(V1SleepActionFluent fluent,V1SleepAction instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1SleepActionBuilder(V1SleepAction instance) { + this.fluent = this; + this.copyInstance(instance); + } + V1SleepActionFluent fluent; + + public V1SleepAction build() { + V1SleepAction buildable = new V1SleepAction(); + buildable.setSeconds(fluent.getSeconds()); + return buildable; + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SleepActionFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SleepActionFluent.java new file mode 100644 index 0000000000..a943df99d3 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SleepActionFluent.java @@ -0,0 +1,64 @@ +package io.kubernetes.client.openapi.models; + +import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Long; +import java.lang.Object; +import java.lang.String; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1SleepActionFluent> extends BaseFluent{ + public V1SleepActionFluent() { + } + + public V1SleepActionFluent(V1SleepAction instance) { + this.copyInstance(instance); + } + private Long seconds; + + protected void copyInstance(V1SleepAction instance) { + instance = (instance != null ? instance : new V1SleepAction()); + if (instance != null) { + this.withSeconds(instance.getSeconds()); + } + } + + public Long getSeconds() { + return this.seconds; + } + + public A withSeconds(Long seconds) { + this.seconds = seconds; + return (A) this; + } + + public boolean hasSeconds() { + return this.seconds != null; + } + + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + if (!super.equals(o)) return false; + V1SleepActionFluent that = (V1SleepActionFluent) o; + if (!java.util.Objects.equals(seconds, that.seconds)) return false; + return true; + } + + public int hashCode() { + return java.util.Objects.hash(seconds, super.hashCode()); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (seconds != null) { sb.append("seconds:"); sb.append(seconds); } + sb.append("}"); + return sb.toString(); + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetListFluent.java index b77b1cab03..b89a193942 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetListFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetListFluent.java @@ -54,14 +54,26 @@ public boolean hasApiVersion() { public A addToItems(int index,V1StatefulSet item) { if (this.items == null) {this.items = new ArrayList();} V1StatefulSetBuilder builder = new V1StatefulSetBuilder(item); - if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); items.add(builder); } else { _visitables.get("items").add(index, builder); items.add(index, builder);} + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.add(index, builder); + } return (A)this; } public A setToItems(int index,V1StatefulSet item) { if (this.items == null) {this.items = new ArrayList();} V1StatefulSetBuilder builder = new V1StatefulSetBuilder(item); - if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); items.add(builder); } else { _visitables.get("items").set(index, builder); items.set(index, builder);} + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.set(index, builder); + } return (A)this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetSpecFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetSpecFluent.java index 6ffbf921c4..cb36f94939 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetSpecFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetSpecFluent.java @@ -321,14 +321,26 @@ public UpdateStrategyNested editOrNewUpdateStrategyLike(V1StatefulSetUpdateSt public A addToVolumeClaimTemplates(int index,V1PersistentVolumeClaim item) { if (this.volumeClaimTemplates == null) {this.volumeClaimTemplates = new ArrayList();} V1PersistentVolumeClaimBuilder builder = new V1PersistentVolumeClaimBuilder(item); - if (index < 0 || index >= volumeClaimTemplates.size()) { _visitables.get("volumeClaimTemplates").add(builder); volumeClaimTemplates.add(builder); } else { _visitables.get("volumeClaimTemplates").add(index, builder); volumeClaimTemplates.add(index, builder);} + if (index < 0 || index >= volumeClaimTemplates.size()) { + _visitables.get("volumeClaimTemplates").add(builder); + volumeClaimTemplates.add(builder); + } else { + _visitables.get("volumeClaimTemplates").add(builder); + volumeClaimTemplates.add(index, builder); + } return (A)this; } public A setToVolumeClaimTemplates(int index,V1PersistentVolumeClaim item) { if (this.volumeClaimTemplates == null) {this.volumeClaimTemplates = new ArrayList();} V1PersistentVolumeClaimBuilder builder = new V1PersistentVolumeClaimBuilder(item); - if (index < 0 || index >= volumeClaimTemplates.size()) { _visitables.get("volumeClaimTemplates").add(builder); volumeClaimTemplates.add(builder); } else { _visitables.get("volumeClaimTemplates").set(index, builder); volumeClaimTemplates.set(index, builder);} + if (index < 0 || index >= volumeClaimTemplates.size()) { + _visitables.get("volumeClaimTemplates").add(builder); + volumeClaimTemplates.add(builder); + } else { + _visitables.get("volumeClaimTemplates").add(builder); + volumeClaimTemplates.set(index, builder); + } return (A)this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetStatusFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetStatusFluent.java index c82423fa6e..c70666096e 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetStatusFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetStatusFluent.java @@ -81,14 +81,26 @@ public boolean hasCollisionCount() { public A addToConditions(int index,V1StatefulSetCondition item) { if (this.conditions == null) {this.conditions = new ArrayList();} V1StatefulSetConditionBuilder builder = new V1StatefulSetConditionBuilder(item); - if (index < 0 || index >= conditions.size()) { _visitables.get("conditions").add(builder); conditions.add(builder); } else { _visitables.get("conditions").add(index, builder); conditions.add(index, builder);} + if (index < 0 || index >= conditions.size()) { + _visitables.get("conditions").add(builder); + conditions.add(builder); + } else { + _visitables.get("conditions").add(builder); + conditions.add(index, builder); + } return (A)this; } public A setToConditions(int index,V1StatefulSetCondition item) { if (this.conditions == null) {this.conditions = new ArrayList();} V1StatefulSetConditionBuilder builder = new V1StatefulSetConditionBuilder(item); - if (index < 0 || index >= conditions.size()) { _visitables.get("conditions").add(builder); conditions.add(builder); } else { _visitables.get("conditions").set(index, builder); conditions.set(index, builder);} + if (index < 0 || index >= conditions.size()) { + _visitables.get("conditions").add(builder); + conditions.add(builder); + } else { + _visitables.get("conditions").add(builder); + conditions.set(index, builder); + } return (A)this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatusDetailsFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatusDetailsFluent.java index bd9c64daa6..eb689d8a24 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatusDetailsFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatusDetailsFluent.java @@ -46,14 +46,26 @@ protected void copyInstance(V1StatusDetails instance) { public A addToCauses(int index,V1StatusCause item) { if (this.causes == null) {this.causes = new ArrayList();} V1StatusCauseBuilder builder = new V1StatusCauseBuilder(item); - if (index < 0 || index >= causes.size()) { _visitables.get("causes").add(builder); causes.add(builder); } else { _visitables.get("causes").add(index, builder); causes.add(index, builder);} + if (index < 0 || index >= causes.size()) { + _visitables.get("causes").add(builder); + causes.add(builder); + } else { + _visitables.get("causes").add(builder); + causes.add(index, builder); + } return (A)this; } public A setToCauses(int index,V1StatusCause item) { if (this.causes == null) {this.causes = new ArrayList();} V1StatusCauseBuilder builder = new V1StatusCauseBuilder(item); - if (index < 0 || index >= causes.size()) { _visitables.get("causes").add(builder); causes.add(builder); } else { _visitables.get("causes").set(index, builder); causes.set(index, builder);} + if (index < 0 || index >= causes.size()) { + _visitables.get("causes").add(builder); + causes.add(builder); + } else { + _visitables.get("causes").add(builder); + causes.set(index, builder); + } return (A)this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StorageClassFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StorageClassFluent.java index a49c913813..9ada5be1d6 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StorageClassFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StorageClassFluent.java @@ -69,14 +69,26 @@ public boolean hasAllowVolumeExpansion() { public A addToAllowedTopologies(int index,V1TopologySelectorTerm item) { if (this.allowedTopologies == null) {this.allowedTopologies = new ArrayList();} V1TopologySelectorTermBuilder builder = new V1TopologySelectorTermBuilder(item); - if (index < 0 || index >= allowedTopologies.size()) { _visitables.get("allowedTopologies").add(builder); allowedTopologies.add(builder); } else { _visitables.get("allowedTopologies").add(index, builder); allowedTopologies.add(index, builder);} + if (index < 0 || index >= allowedTopologies.size()) { + _visitables.get("allowedTopologies").add(builder); + allowedTopologies.add(builder); + } else { + _visitables.get("allowedTopologies").add(builder); + allowedTopologies.add(index, builder); + } return (A)this; } public A setToAllowedTopologies(int index,V1TopologySelectorTerm item) { if (this.allowedTopologies == null) {this.allowedTopologies = new ArrayList();} V1TopologySelectorTermBuilder builder = new V1TopologySelectorTermBuilder(item); - if (index < 0 || index >= allowedTopologies.size()) { _visitables.get("allowedTopologies").add(builder); allowedTopologies.add(builder); } else { _visitables.get("allowedTopologies").set(index, builder); allowedTopologies.set(index, builder);} + if (index < 0 || index >= allowedTopologies.size()) { + _visitables.get("allowedTopologies").add(builder); + allowedTopologies.add(builder); + } else { + _visitables.get("allowedTopologies").add(builder); + allowedTopologies.set(index, builder); + } return (A)this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StorageClassListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StorageClassListFluent.java index 3cadf3615f..aa991fa366 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StorageClassListFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StorageClassListFluent.java @@ -54,14 +54,26 @@ public boolean hasApiVersion() { public A addToItems(int index,V1StorageClass item) { if (this.items == null) {this.items = new ArrayList();} V1StorageClassBuilder builder = new V1StorageClassBuilder(item); - if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); items.add(builder); } else { _visitables.get("items").add(index, builder); items.add(index, builder);} + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.add(index, builder); + } return (A)this; } public A setToItems(int index,V1StorageClass item) { if (this.items == null) {this.items = new ArrayList();} V1StorageClassBuilder builder = new V1StorageClassBuilder(item); - if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); items.add(builder); } else { _visitables.get("items").set(index, builder); items.set(index, builder);} + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.set(index, builder); + } return (A)this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SubjectBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SubjectBuilder.java deleted file mode 100644 index 38b5347ee2..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SubjectBuilder.java +++ /dev/null @@ -1,34 +0,0 @@ -package io.kubernetes.client.openapi.models; - -import io.kubernetes.client.fluent.VisitableBuilder; -public class V1SubjectBuilder extends V1SubjectFluent implements VisitableBuilder{ - public V1SubjectBuilder() { - this(new V1Subject()); - } - - public V1SubjectBuilder(V1SubjectFluent fluent) { - this(fluent, new V1Subject()); - } - - public V1SubjectBuilder(V1SubjectFluent fluent,V1Subject instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - - public V1SubjectBuilder(V1Subject instance) { - this.fluent = this; - this.copyInstance(instance); - } - V1SubjectFluent fluent; - - public V1Subject build() { - V1Subject buildable = new V1Subject(); - buildable.setApiGroup(fluent.getApiGroup()); - buildable.setKind(fluent.getKind()); - buildable.setName(fluent.getName()); - buildable.setNamespace(fluent.getNamespace()); - return buildable; - } - - -} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SubjectFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SubjectFluent.java deleted file mode 100644 index 93d0a2e885..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SubjectFluent.java +++ /dev/null @@ -1,114 +0,0 @@ -package io.kubernetes.client.openapi.models; - -import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.BaseFluent; -import java.lang.Object; -import java.lang.String; - -/** - * Generated - */ -@SuppressWarnings("unchecked") -public class V1SubjectFluent> extends BaseFluent{ - public V1SubjectFluent() { - } - - public V1SubjectFluent(V1Subject instance) { - this.copyInstance(instance); - } - private String apiGroup; - private String kind; - private String name; - private String namespace; - - protected void copyInstance(V1Subject instance) { - instance = (instance != null ? instance : new V1Subject()); - if (instance != null) { - this.withApiGroup(instance.getApiGroup()); - this.withKind(instance.getKind()); - this.withName(instance.getName()); - this.withNamespace(instance.getNamespace()); - } - } - - public String getApiGroup() { - return this.apiGroup; - } - - public A withApiGroup(String apiGroup) { - this.apiGroup = apiGroup; - return (A) this; - } - - public boolean hasApiGroup() { - return this.apiGroup != null; - } - - public String getKind() { - return this.kind; - } - - public A withKind(String kind) { - this.kind = kind; - return (A) this; - } - - public boolean hasKind() { - return this.kind != null; - } - - public String getName() { - return this.name; - } - - public A withName(String name) { - this.name = name; - return (A) this; - } - - public boolean hasName() { - return this.name != null; - } - - public String getNamespace() { - return this.namespace; - } - - public A withNamespace(String namespace) { - this.namespace = namespace; - return (A) this; - } - - public boolean hasNamespace() { - return this.namespace != null; - } - - public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; - V1SubjectFluent that = (V1SubjectFluent) o; - if (!java.util.Objects.equals(apiGroup, that.apiGroup)) return false; - if (!java.util.Objects.equals(kind, that.kind)) return false; - if (!java.util.Objects.equals(name, that.name)) return false; - if (!java.util.Objects.equals(namespace, that.namespace)) return false; - return true; - } - - public int hashCode() { - return java.util.Objects.hash(apiGroup, kind, name, namespace, super.hashCode()); - } - - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("{"); - if (apiGroup != null) { sb.append("apiGroup:"); sb.append(apiGroup + ","); } - if (kind != null) { sb.append("kind:"); sb.append(kind + ","); } - if (name != null) { sb.append("name:"); sb.append(name + ","); } - if (namespace != null) { sb.append("namespace:"); sb.append(namespace); } - sb.append("}"); - return sb.toString(); - } - - -} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SubjectRulesReviewStatusFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SubjectRulesReviewStatusFluent.java index 7e3630b183..9427f605c6 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SubjectRulesReviewStatusFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SubjectRulesReviewStatusFluent.java @@ -68,14 +68,26 @@ public boolean hasIncomplete() { public A addToNonResourceRules(int index,V1NonResourceRule item) { if (this.nonResourceRules == null) {this.nonResourceRules = new ArrayList();} V1NonResourceRuleBuilder builder = new V1NonResourceRuleBuilder(item); - if (index < 0 || index >= nonResourceRules.size()) { _visitables.get("nonResourceRules").add(builder); nonResourceRules.add(builder); } else { _visitables.get("nonResourceRules").add(index, builder); nonResourceRules.add(index, builder);} + if (index < 0 || index >= nonResourceRules.size()) { + _visitables.get("nonResourceRules").add(builder); + nonResourceRules.add(builder); + } else { + _visitables.get("nonResourceRules").add(builder); + nonResourceRules.add(index, builder); + } return (A)this; } public A setToNonResourceRules(int index,V1NonResourceRule item) { if (this.nonResourceRules == null) {this.nonResourceRules = new ArrayList();} V1NonResourceRuleBuilder builder = new V1NonResourceRuleBuilder(item); - if (index < 0 || index >= nonResourceRules.size()) { _visitables.get("nonResourceRules").add(builder); nonResourceRules.add(builder); } else { _visitables.get("nonResourceRules").set(index, builder); nonResourceRules.set(index, builder);} + if (index < 0 || index >= nonResourceRules.size()) { + _visitables.get("nonResourceRules").add(builder); + nonResourceRules.add(builder); + } else { + _visitables.get("nonResourceRules").add(builder); + nonResourceRules.set(index, builder); + } return (A)this; } @@ -219,14 +231,26 @@ public NonResourceRulesNested editMatchingNonResourceRule(Predicate();} V1ResourceRuleBuilder builder = new V1ResourceRuleBuilder(item); - if (index < 0 || index >= resourceRules.size()) { _visitables.get("resourceRules").add(builder); resourceRules.add(builder); } else { _visitables.get("resourceRules").add(index, builder); resourceRules.add(index, builder);} + if (index < 0 || index >= resourceRules.size()) { + _visitables.get("resourceRules").add(builder); + resourceRules.add(builder); + } else { + _visitables.get("resourceRules").add(builder); + resourceRules.add(index, builder); + } return (A)this; } public A setToResourceRules(int index,V1ResourceRule item) { if (this.resourceRules == null) {this.resourceRules = new ArrayList();} V1ResourceRuleBuilder builder = new V1ResourceRuleBuilder(item); - if (index < 0 || index >= resourceRules.size()) { _visitables.get("resourceRules").add(builder); resourceRules.add(builder); } else { _visitables.get("resourceRules").set(index, builder); resourceRules.set(index, builder);} + if (index < 0 || index >= resourceRules.size()) { + _visitables.get("resourceRules").add(builder); + resourceRules.add(builder); + } else { + _visitables.get("resourceRules").add(builder); + resourceRules.set(index, builder); + } return (A)this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SuccessPolicyBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SuccessPolicyBuilder.java new file mode 100644 index 0000000000..2a36f77fee --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SuccessPolicyBuilder.java @@ -0,0 +1,31 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +public class V1SuccessPolicyBuilder extends V1SuccessPolicyFluent implements VisitableBuilder{ + public V1SuccessPolicyBuilder() { + this(new V1SuccessPolicy()); + } + + public V1SuccessPolicyBuilder(V1SuccessPolicyFluent fluent) { + this(fluent, new V1SuccessPolicy()); + } + + public V1SuccessPolicyBuilder(V1SuccessPolicyFluent fluent,V1SuccessPolicy instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1SuccessPolicyBuilder(V1SuccessPolicy instance) { + this.fluent = this; + this.copyInstance(instance); + } + V1SuccessPolicyFluent fluent; + + public V1SuccessPolicy build() { + V1SuccessPolicy buildable = new V1SuccessPolicy(); + buildable.setRules(fluent.buildRules()); + return buildable; + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SuccessPolicyFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SuccessPolicyFluent.java new file mode 100644 index 0000000000..c54009e686 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SuccessPolicyFluent.java @@ -0,0 +1,237 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.Nested; +import java.util.ArrayList; +import java.lang.String; +import java.util.function.Predicate; +import io.kubernetes.client.fluent.BaseFluent; +import java.util.Iterator; +import java.util.Collection; +import java.lang.Object; +import java.util.List; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1SuccessPolicyFluent> extends BaseFluent{ + public V1SuccessPolicyFluent() { + } + + public V1SuccessPolicyFluent(V1SuccessPolicy instance) { + this.copyInstance(instance); + } + private ArrayList rules; + + protected void copyInstance(V1SuccessPolicy instance) { + instance = (instance != null ? instance : new V1SuccessPolicy()); + if (instance != null) { + this.withRules(instance.getRules()); + } + } + + public A addToRules(int index,V1SuccessPolicyRule item) { + if (this.rules == null) {this.rules = new ArrayList();} + V1SuccessPolicyRuleBuilder builder = new V1SuccessPolicyRuleBuilder(item); + if (index < 0 || index >= rules.size()) { + _visitables.get("rules").add(builder); + rules.add(builder); + } else { + _visitables.get("rules").add(builder); + rules.add(index, builder); + } + return (A)this; + } + + public A setToRules(int index,V1SuccessPolicyRule item) { + if (this.rules == null) {this.rules = new ArrayList();} + V1SuccessPolicyRuleBuilder builder = new V1SuccessPolicyRuleBuilder(item); + if (index < 0 || index >= rules.size()) { + _visitables.get("rules").add(builder); + rules.add(builder); + } else { + _visitables.get("rules").add(builder); + rules.set(index, builder); + } + return (A)this; + } + + public A addToRules(io.kubernetes.client.openapi.models.V1SuccessPolicyRule... items) { + if (this.rules == null) {this.rules = new ArrayList();} + for (V1SuccessPolicyRule item : items) {V1SuccessPolicyRuleBuilder builder = new V1SuccessPolicyRuleBuilder(item);_visitables.get("rules").add(builder);this.rules.add(builder);} return (A)this; + } + + public A addAllToRules(Collection items) { + if (this.rules == null) {this.rules = new ArrayList();} + for (V1SuccessPolicyRule item : items) {V1SuccessPolicyRuleBuilder builder = new V1SuccessPolicyRuleBuilder(item);_visitables.get("rules").add(builder);this.rules.add(builder);} return (A)this; + } + + public A removeFromRules(io.kubernetes.client.openapi.models.V1SuccessPolicyRule... items) { + if (this.rules == null) return (A)this; + for (V1SuccessPolicyRule item : items) {V1SuccessPolicyRuleBuilder builder = new V1SuccessPolicyRuleBuilder(item);_visitables.get("rules").remove(builder); this.rules.remove(builder);} return (A)this; + } + + public A removeAllFromRules(Collection items) { + if (this.rules == null) return (A)this; + for (V1SuccessPolicyRule item : items) {V1SuccessPolicyRuleBuilder builder = new V1SuccessPolicyRuleBuilder(item);_visitables.get("rules").remove(builder); this.rules.remove(builder);} return (A)this; + } + + public A removeMatchingFromRules(Predicate predicate) { + if (rules == null) return (A) this; + final Iterator each = rules.iterator(); + final List visitables = _visitables.get("rules"); + while (each.hasNext()) { + V1SuccessPolicyRuleBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A)this; + } + + public List buildRules() { + return this.rules != null ? build(rules) : null; + } + + public V1SuccessPolicyRule buildRule(int index) { + return this.rules.get(index).build(); + } + + public V1SuccessPolicyRule buildFirstRule() { + return this.rules.get(0).build(); + } + + public V1SuccessPolicyRule buildLastRule() { + return this.rules.get(rules.size() - 1).build(); + } + + public V1SuccessPolicyRule buildMatchingRule(Predicate predicate) { + for (V1SuccessPolicyRuleBuilder item : rules) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; + } + + public boolean hasMatchingRule(Predicate predicate) { + for (V1SuccessPolicyRuleBuilder item : rules) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public A withRules(List rules) { + if (this.rules != null) { + this._visitables.get("rules").clear(); + } + if (rules != null) { + this.rules = new ArrayList(); + for (V1SuccessPolicyRule item : rules) { + this.addToRules(item); + } + } else { + this.rules = null; + } + return (A) this; + } + + public A withRules(io.kubernetes.client.openapi.models.V1SuccessPolicyRule... rules) { + if (this.rules != null) { + this.rules.clear(); + _visitables.remove("rules"); + } + if (rules != null) { + for (V1SuccessPolicyRule item : rules) { + this.addToRules(item); + } + } + return (A) this; + } + + public boolean hasRules() { + return this.rules != null && !this.rules.isEmpty(); + } + + public RulesNested addNewRule() { + return new RulesNested(-1, null); + } + + public RulesNested addNewRuleLike(V1SuccessPolicyRule item) { + return new RulesNested(-1, item); + } + + public RulesNested setNewRuleLike(int index,V1SuccessPolicyRule item) { + return new RulesNested(index, item); + } + + public RulesNested editRule(int index) { + if (rules.size() <= index) throw new RuntimeException("Can't edit rules. Index exceeds size."); + return setNewRuleLike(index, buildRule(index)); + } + + public RulesNested editFirstRule() { + if (rules.size() == 0) throw new RuntimeException("Can't edit first rules. The list is empty."); + return setNewRuleLike(0, buildRule(0)); + } + + public RulesNested editLastRule() { + int index = rules.size() - 1; + if (index < 0) throw new RuntimeException("Can't edit last rules. The list is empty."); + return setNewRuleLike(index, buildRule(index)); + } + + public RulesNested editMatchingRule(Predicate predicate) { + int index = -1; + for (int i=0;i extends V1SuccessPolicyRuleFluent> implements Nested{ + RulesNested(int index,V1SuccessPolicyRule item) { + this.index = index; + this.builder = new V1SuccessPolicyRuleBuilder(this, item); + } + V1SuccessPolicyRuleBuilder builder; + int index; + + public N and() { + return (N) V1SuccessPolicyFluent.this.setToRules(index,builder.build()); + } + + public N endRule() { + return and(); + } + + + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SuccessPolicyRuleBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SuccessPolicyRuleBuilder.java new file mode 100644 index 0000000000..55e0c068a3 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SuccessPolicyRuleBuilder.java @@ -0,0 +1,32 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +public class V1SuccessPolicyRuleBuilder extends V1SuccessPolicyRuleFluent implements VisitableBuilder{ + public V1SuccessPolicyRuleBuilder() { + this(new V1SuccessPolicyRule()); + } + + public V1SuccessPolicyRuleBuilder(V1SuccessPolicyRuleFluent fluent) { + this(fluent, new V1SuccessPolicyRule()); + } + + public V1SuccessPolicyRuleBuilder(V1SuccessPolicyRuleFluent fluent,V1SuccessPolicyRule instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1SuccessPolicyRuleBuilder(V1SuccessPolicyRule instance) { + this.fluent = this; + this.copyInstance(instance); + } + V1SuccessPolicyRuleFluent fluent; + + public V1SuccessPolicyRule build() { + V1SuccessPolicyRule buildable = new V1SuccessPolicyRule(); + buildable.setSucceededCount(fluent.getSucceededCount()); + buildable.setSucceededIndexes(fluent.getSucceededIndexes()); + return buildable; + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SuccessPolicyRuleFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SuccessPolicyRuleFluent.java new file mode 100644 index 0000000000..8ba146a359 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SuccessPolicyRuleFluent.java @@ -0,0 +1,81 @@ +package io.kubernetes.client.openapi.models; + +import java.lang.Integer; +import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Object; +import java.lang.String; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1SuccessPolicyRuleFluent> extends BaseFluent{ + public V1SuccessPolicyRuleFluent() { + } + + public V1SuccessPolicyRuleFluent(V1SuccessPolicyRule instance) { + this.copyInstance(instance); + } + private Integer succeededCount; + private String succeededIndexes; + + protected void copyInstance(V1SuccessPolicyRule instance) { + instance = (instance != null ? instance : new V1SuccessPolicyRule()); + if (instance != null) { + this.withSucceededCount(instance.getSucceededCount()); + this.withSucceededIndexes(instance.getSucceededIndexes()); + } + } + + public Integer getSucceededCount() { + return this.succeededCount; + } + + public A withSucceededCount(Integer succeededCount) { + this.succeededCount = succeededCount; + return (A) this; + } + + public boolean hasSucceededCount() { + return this.succeededCount != null; + } + + public String getSucceededIndexes() { + return this.succeededIndexes; + } + + public A withSucceededIndexes(String succeededIndexes) { + this.succeededIndexes = succeededIndexes; + return (A) this; + } + + public boolean hasSucceededIndexes() { + return this.succeededIndexes != null; + } + + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + if (!super.equals(o)) return false; + V1SuccessPolicyRuleFluent that = (V1SuccessPolicyRuleFluent) o; + if (!java.util.Objects.equals(succeededCount, that.succeededCount)) return false; + if (!java.util.Objects.equals(succeededIndexes, that.succeededIndexes)) return false; + return true; + } + + public int hashCode() { + return java.util.Objects.hash(succeededCount, succeededIndexes, super.hashCode()); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (succeededCount != null) { sb.append("succeededCount:"); sb.append(succeededCount + ","); } + if (succeededIndexes != null) { sb.append("succeededIndexes:"); sb.append(succeededIndexes); } + sb.append("}"); + return sb.toString(); + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TopologySelectorTermFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TopologySelectorTermFluent.java index 7cbc4435fa..f496a224bd 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TopologySelectorTermFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TopologySelectorTermFluent.java @@ -35,14 +35,26 @@ protected void copyInstance(V1TopologySelectorTerm instance) { public A addToMatchLabelExpressions(int index,V1TopologySelectorLabelRequirement item) { if (this.matchLabelExpressions == null) {this.matchLabelExpressions = new ArrayList();} V1TopologySelectorLabelRequirementBuilder builder = new V1TopologySelectorLabelRequirementBuilder(item); - if (index < 0 || index >= matchLabelExpressions.size()) { _visitables.get("matchLabelExpressions").add(builder); matchLabelExpressions.add(builder); } else { _visitables.get("matchLabelExpressions").add(index, builder); matchLabelExpressions.add(index, builder);} + if (index < 0 || index >= matchLabelExpressions.size()) { + _visitables.get("matchLabelExpressions").add(builder); + matchLabelExpressions.add(builder); + } else { + _visitables.get("matchLabelExpressions").add(builder); + matchLabelExpressions.add(index, builder); + } return (A)this; } public A setToMatchLabelExpressions(int index,V1TopologySelectorLabelRequirement item) { if (this.matchLabelExpressions == null) {this.matchLabelExpressions = new ArrayList();} V1TopologySelectorLabelRequirementBuilder builder = new V1TopologySelectorLabelRequirementBuilder(item); - if (index < 0 || index >= matchLabelExpressions.size()) { _visitables.get("matchLabelExpressions").add(builder); matchLabelExpressions.add(builder); } else { _visitables.get("matchLabelExpressions").set(index, builder); matchLabelExpressions.set(index, builder);} + if (index < 0 || index >= matchLabelExpressions.size()) { + _visitables.get("matchLabelExpressions").add(builder); + matchLabelExpressions.add(builder); + } else { + _visitables.get("matchLabelExpressions").add(builder); + matchLabelExpressions.set(index, builder); + } return (A)this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TypeCheckingBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TypeCheckingBuilder.java new file mode 100644 index 0000000000..f7abcdd2ea --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TypeCheckingBuilder.java @@ -0,0 +1,31 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +public class V1TypeCheckingBuilder extends V1TypeCheckingFluent implements VisitableBuilder{ + public V1TypeCheckingBuilder() { + this(new V1TypeChecking()); + } + + public V1TypeCheckingBuilder(V1TypeCheckingFluent fluent) { + this(fluent, new V1TypeChecking()); + } + + public V1TypeCheckingBuilder(V1TypeCheckingFluent fluent,V1TypeChecking instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1TypeCheckingBuilder(V1TypeChecking instance) { + this.fluent = this; + this.copyInstance(instance); + } + V1TypeCheckingFluent fluent; + + public V1TypeChecking build() { + V1TypeChecking buildable = new V1TypeChecking(); + buildable.setExpressionWarnings(fluent.buildExpressionWarnings()); + return buildable; + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TypeCheckingFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TypeCheckingFluent.java new file mode 100644 index 0000000000..c8aab24b16 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TypeCheckingFluent.java @@ -0,0 +1,237 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.Nested; +import java.util.ArrayList; +import java.lang.String; +import java.util.function.Predicate; +import io.kubernetes.client.fluent.BaseFluent; +import java.util.Iterator; +import java.util.Collection; +import java.lang.Object; +import java.util.List; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1TypeCheckingFluent> extends BaseFluent{ + public V1TypeCheckingFluent() { + } + + public V1TypeCheckingFluent(V1TypeChecking instance) { + this.copyInstance(instance); + } + private ArrayList expressionWarnings; + + protected void copyInstance(V1TypeChecking instance) { + instance = (instance != null ? instance : new V1TypeChecking()); + if (instance != null) { + this.withExpressionWarnings(instance.getExpressionWarnings()); + } + } + + public A addToExpressionWarnings(int index,V1ExpressionWarning item) { + if (this.expressionWarnings == null) {this.expressionWarnings = new ArrayList();} + V1ExpressionWarningBuilder builder = new V1ExpressionWarningBuilder(item); + if (index < 0 || index >= expressionWarnings.size()) { + _visitables.get("expressionWarnings").add(builder); + expressionWarnings.add(builder); + } else { + _visitables.get("expressionWarnings").add(builder); + expressionWarnings.add(index, builder); + } + return (A)this; + } + + public A setToExpressionWarnings(int index,V1ExpressionWarning item) { + if (this.expressionWarnings == null) {this.expressionWarnings = new ArrayList();} + V1ExpressionWarningBuilder builder = new V1ExpressionWarningBuilder(item); + if (index < 0 || index >= expressionWarnings.size()) { + _visitables.get("expressionWarnings").add(builder); + expressionWarnings.add(builder); + } else { + _visitables.get("expressionWarnings").add(builder); + expressionWarnings.set(index, builder); + } + return (A)this; + } + + public A addToExpressionWarnings(io.kubernetes.client.openapi.models.V1ExpressionWarning... items) { + if (this.expressionWarnings == null) {this.expressionWarnings = new ArrayList();} + for (V1ExpressionWarning item : items) {V1ExpressionWarningBuilder builder = new V1ExpressionWarningBuilder(item);_visitables.get("expressionWarnings").add(builder);this.expressionWarnings.add(builder);} return (A)this; + } + + public A addAllToExpressionWarnings(Collection items) { + if (this.expressionWarnings == null) {this.expressionWarnings = new ArrayList();} + for (V1ExpressionWarning item : items) {V1ExpressionWarningBuilder builder = new V1ExpressionWarningBuilder(item);_visitables.get("expressionWarnings").add(builder);this.expressionWarnings.add(builder);} return (A)this; + } + + public A removeFromExpressionWarnings(io.kubernetes.client.openapi.models.V1ExpressionWarning... items) { + if (this.expressionWarnings == null) return (A)this; + for (V1ExpressionWarning item : items) {V1ExpressionWarningBuilder builder = new V1ExpressionWarningBuilder(item);_visitables.get("expressionWarnings").remove(builder); this.expressionWarnings.remove(builder);} return (A)this; + } + + public A removeAllFromExpressionWarnings(Collection items) { + if (this.expressionWarnings == null) return (A)this; + for (V1ExpressionWarning item : items) {V1ExpressionWarningBuilder builder = new V1ExpressionWarningBuilder(item);_visitables.get("expressionWarnings").remove(builder); this.expressionWarnings.remove(builder);} return (A)this; + } + + public A removeMatchingFromExpressionWarnings(Predicate predicate) { + if (expressionWarnings == null) return (A) this; + final Iterator each = expressionWarnings.iterator(); + final List visitables = _visitables.get("expressionWarnings"); + while (each.hasNext()) { + V1ExpressionWarningBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A)this; + } + + public List buildExpressionWarnings() { + return this.expressionWarnings != null ? build(expressionWarnings) : null; + } + + public V1ExpressionWarning buildExpressionWarning(int index) { + return this.expressionWarnings.get(index).build(); + } + + public V1ExpressionWarning buildFirstExpressionWarning() { + return this.expressionWarnings.get(0).build(); + } + + public V1ExpressionWarning buildLastExpressionWarning() { + return this.expressionWarnings.get(expressionWarnings.size() - 1).build(); + } + + public V1ExpressionWarning buildMatchingExpressionWarning(Predicate predicate) { + for (V1ExpressionWarningBuilder item : expressionWarnings) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; + } + + public boolean hasMatchingExpressionWarning(Predicate predicate) { + for (V1ExpressionWarningBuilder item : expressionWarnings) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public A withExpressionWarnings(List expressionWarnings) { + if (this.expressionWarnings != null) { + this._visitables.get("expressionWarnings").clear(); + } + if (expressionWarnings != null) { + this.expressionWarnings = new ArrayList(); + for (V1ExpressionWarning item : expressionWarnings) { + this.addToExpressionWarnings(item); + } + } else { + this.expressionWarnings = null; + } + return (A) this; + } + + public A withExpressionWarnings(io.kubernetes.client.openapi.models.V1ExpressionWarning... expressionWarnings) { + if (this.expressionWarnings != null) { + this.expressionWarnings.clear(); + _visitables.remove("expressionWarnings"); + } + if (expressionWarnings != null) { + for (V1ExpressionWarning item : expressionWarnings) { + this.addToExpressionWarnings(item); + } + } + return (A) this; + } + + public boolean hasExpressionWarnings() { + return this.expressionWarnings != null && !this.expressionWarnings.isEmpty(); + } + + public ExpressionWarningsNested addNewExpressionWarning() { + return new ExpressionWarningsNested(-1, null); + } + + public ExpressionWarningsNested addNewExpressionWarningLike(V1ExpressionWarning item) { + return new ExpressionWarningsNested(-1, item); + } + + public ExpressionWarningsNested setNewExpressionWarningLike(int index,V1ExpressionWarning item) { + return new ExpressionWarningsNested(index, item); + } + + public ExpressionWarningsNested editExpressionWarning(int index) { + if (expressionWarnings.size() <= index) throw new RuntimeException("Can't edit expressionWarnings. Index exceeds size."); + return setNewExpressionWarningLike(index, buildExpressionWarning(index)); + } + + public ExpressionWarningsNested editFirstExpressionWarning() { + if (expressionWarnings.size() == 0) throw new RuntimeException("Can't edit first expressionWarnings. The list is empty."); + return setNewExpressionWarningLike(0, buildExpressionWarning(0)); + } + + public ExpressionWarningsNested editLastExpressionWarning() { + int index = expressionWarnings.size() - 1; + if (index < 0) throw new RuntimeException("Can't edit last expressionWarnings. The list is empty."); + return setNewExpressionWarningLike(index, buildExpressionWarning(index)); + } + + public ExpressionWarningsNested editMatchingExpressionWarning(Predicate predicate) { + int index = -1; + for (int i=0;i extends V1ExpressionWarningFluent> implements Nested{ + ExpressionWarningsNested(int index,V1ExpressionWarning item) { + this.index = index; + this.builder = new V1ExpressionWarningBuilder(this, item); + } + V1ExpressionWarningBuilder builder; + int index; + + public N and() { + return (N) V1TypeCheckingFluent.this.setToExpressionWarnings(index,builder.build()); + } + + public N endExpressionWarning() { + return and(); + } + + + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1UserSubjectBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1UserSubjectBuilder.java new file mode 100644 index 0000000000..25c656fd6d --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1UserSubjectBuilder.java @@ -0,0 +1,31 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +public class V1UserSubjectBuilder extends V1UserSubjectFluent implements VisitableBuilder{ + public V1UserSubjectBuilder() { + this(new V1UserSubject()); + } + + public V1UserSubjectBuilder(V1UserSubjectFluent fluent) { + this(fluent, new V1UserSubject()); + } + + public V1UserSubjectBuilder(V1UserSubjectFluent fluent,V1UserSubject instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1UserSubjectBuilder(V1UserSubject instance) { + this.fluent = this; + this.copyInstance(instance); + } + V1UserSubjectFluent fluent; + + public V1UserSubject build() { + V1UserSubject buildable = new V1UserSubject(); + buildable.setName(fluent.getName()); + return buildable; + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1UserSubjectFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1UserSubjectFluent.java new file mode 100644 index 0000000000..ad6c49b3ae --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1UserSubjectFluent.java @@ -0,0 +1,63 @@ +package io.kubernetes.client.openapi.models; + +import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Object; +import java.lang.String; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1UserSubjectFluent> extends BaseFluent{ + public V1UserSubjectFluent() { + } + + public V1UserSubjectFluent(V1UserSubject instance) { + this.copyInstance(instance); + } + private String name; + + protected void copyInstance(V1UserSubject instance) { + instance = (instance != null ? instance : new V1UserSubject()); + if (instance != null) { + this.withName(instance.getName()); + } + } + + public String getName() { + return this.name; + } + + public A withName(String name) { + this.name = name; + return (A) this; + } + + public boolean hasName() { + return this.name != null; + } + + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + if (!super.equals(o)) return false; + V1UserSubjectFluent that = (V1UserSubjectFluent) o; + if (!java.util.Objects.equals(name, that.name)) return false; + return true; + } + + public int hashCode() { + return java.util.Objects.hash(name, super.hashCode()); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (name != null) { sb.append("name:"); sb.append(name); } + sb.append("}"); + return sb.toString(); + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingAdmissionPolicyBindingBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingAdmissionPolicyBindingBuilder.java new file mode 100644 index 0000000000..bc8b57501c --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingAdmissionPolicyBindingBuilder.java @@ -0,0 +1,34 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +public class V1ValidatingAdmissionPolicyBindingBuilder extends V1ValidatingAdmissionPolicyBindingFluent implements VisitableBuilder{ + public V1ValidatingAdmissionPolicyBindingBuilder() { + this(new V1ValidatingAdmissionPolicyBinding()); + } + + public V1ValidatingAdmissionPolicyBindingBuilder(V1ValidatingAdmissionPolicyBindingFluent fluent) { + this(fluent, new V1ValidatingAdmissionPolicyBinding()); + } + + public V1ValidatingAdmissionPolicyBindingBuilder(V1ValidatingAdmissionPolicyBindingFluent fluent,V1ValidatingAdmissionPolicyBinding instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1ValidatingAdmissionPolicyBindingBuilder(V1ValidatingAdmissionPolicyBinding instance) { + this.fluent = this; + this.copyInstance(instance); + } + V1ValidatingAdmissionPolicyBindingFluent fluent; + + public V1ValidatingAdmissionPolicyBinding build() { + V1ValidatingAdmissionPolicyBinding buildable = new V1ValidatingAdmissionPolicyBinding(); + buildable.setApiVersion(fluent.getApiVersion()); + buildable.setKind(fluent.getKind()); + buildable.setMetadata(fluent.buildMetadata()); + buildable.setSpec(fluent.buildSpec()); + return buildable; + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingAdmissionPolicyBindingFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingAdmissionPolicyBindingFluent.java new file mode 100644 index 0000000000..bafff65443 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingAdmissionPolicyBindingFluent.java @@ -0,0 +1,200 @@ +package io.kubernetes.client.openapi.models; + +import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.Nested; +import java.lang.String; +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Object; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1ValidatingAdmissionPolicyBindingFluent> extends BaseFluent{ + public V1ValidatingAdmissionPolicyBindingFluent() { + } + + public V1ValidatingAdmissionPolicyBindingFluent(V1ValidatingAdmissionPolicyBinding instance) { + this.copyInstance(instance); + } + private String apiVersion; + private String kind; + private V1ObjectMetaBuilder metadata; + private V1ValidatingAdmissionPolicyBindingSpecBuilder spec; + + protected void copyInstance(V1ValidatingAdmissionPolicyBinding instance) { + instance = (instance != null ? instance : new V1ValidatingAdmissionPolicyBinding()); + if (instance != null) { + this.withApiVersion(instance.getApiVersion()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); + this.withSpec(instance.getSpec()); + } + } + + public String getApiVersion() { + return this.apiVersion; + } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + + public boolean hasApiVersion() { + return this.apiVersion != null; + } + + public String getKind() { + return this.kind; + } + + public A withKind(String kind) { + this.kind = kind; + return (A) this; + } + + public boolean hasKind() { + return this.kind != null; + } + + public V1ObjectMeta buildMetadata() { + return this.metadata != null ? this.metadata.build() : null; + } + + public A withMetadata(V1ObjectMeta metadata) { + this._visitables.remove("metadata"); + if (metadata != null) { + this.metadata = new V1ObjectMetaBuilder(metadata); + this._visitables.get("metadata").add(this.metadata); + } else { + this.metadata = null; + this._visitables.get("metadata").remove(this.metadata); + } + return (A) this; + } + + public boolean hasMetadata() { + return this.metadata != null; + } + + public MetadataNested withNewMetadata() { + return new MetadataNested(null); + } + + public MetadataNested withNewMetadataLike(V1ObjectMeta item) { + return new MetadataNested(item); + } + + public MetadataNested editMetadata() { + return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(null)); + } + + public MetadataNested editOrNewMetadata() { + return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(new V1ObjectMetaBuilder().build())); + } + + public MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { + return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(item)); + } + + public V1ValidatingAdmissionPolicyBindingSpec buildSpec() { + return this.spec != null ? this.spec.build() : null; + } + + public A withSpec(V1ValidatingAdmissionPolicyBindingSpec spec) { + this._visitables.remove("spec"); + if (spec != null) { + this.spec = new V1ValidatingAdmissionPolicyBindingSpecBuilder(spec); + this._visitables.get("spec").add(this.spec); + } else { + this.spec = null; + this._visitables.get("spec").remove(this.spec); + } + return (A) this; + } + + public boolean hasSpec() { + return this.spec != null; + } + + public SpecNested withNewSpec() { + return new SpecNested(null); + } + + public SpecNested withNewSpecLike(V1ValidatingAdmissionPolicyBindingSpec item) { + return new SpecNested(item); + } + + public SpecNested editSpec() { + return withNewSpecLike(java.util.Optional.ofNullable(buildSpec()).orElse(null)); + } + + public SpecNested editOrNewSpec() { + return withNewSpecLike(java.util.Optional.ofNullable(buildSpec()).orElse(new V1ValidatingAdmissionPolicyBindingSpecBuilder().build())); + } + + public SpecNested editOrNewSpecLike(V1ValidatingAdmissionPolicyBindingSpec item) { + return withNewSpecLike(java.util.Optional.ofNullable(buildSpec()).orElse(item)); + } + + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + if (!super.equals(o)) return false; + V1ValidatingAdmissionPolicyBindingFluent that = (V1ValidatingAdmissionPolicyBindingFluent) o; + if (!java.util.Objects.equals(apiVersion, that.apiVersion)) return false; + if (!java.util.Objects.equals(kind, that.kind)) return false; + if (!java.util.Objects.equals(metadata, that.metadata)) return false; + if (!java.util.Objects.equals(spec, that.spec)) return false; + return true; + } + + public int hashCode() { + return java.util.Objects.hash(apiVersion, kind, metadata, spec, super.hashCode()); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (apiVersion != null) { sb.append("apiVersion:"); sb.append(apiVersion + ","); } + if (kind != null) { sb.append("kind:"); sb.append(kind + ","); } + if (metadata != null) { sb.append("metadata:"); sb.append(metadata + ","); } + if (spec != null) { sb.append("spec:"); sb.append(spec); } + sb.append("}"); + return sb.toString(); + } + public class MetadataNested extends V1ObjectMetaFluent> implements Nested{ + MetadataNested(V1ObjectMeta item) { + this.builder = new V1ObjectMetaBuilder(this, item); + } + V1ObjectMetaBuilder builder; + + public N and() { + return (N) V1ValidatingAdmissionPolicyBindingFluent.this.withMetadata(builder.build()); + } + + public N endMetadata() { + return and(); + } + + + } + public class SpecNested extends V1ValidatingAdmissionPolicyBindingSpecFluent> implements Nested{ + SpecNested(V1ValidatingAdmissionPolicyBindingSpec item) { + this.builder = new V1ValidatingAdmissionPolicyBindingSpecBuilder(this, item); + } + V1ValidatingAdmissionPolicyBindingSpecBuilder builder; + + public N and() { + return (N) V1ValidatingAdmissionPolicyBindingFluent.this.withSpec(builder.build()); + } + + public N endSpec() { + return and(); + } + + + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingAdmissionPolicyBindingListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingAdmissionPolicyBindingListBuilder.java new file mode 100644 index 0000000000..a24e4690c7 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingAdmissionPolicyBindingListBuilder.java @@ -0,0 +1,34 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +public class V1ValidatingAdmissionPolicyBindingListBuilder extends V1ValidatingAdmissionPolicyBindingListFluent implements VisitableBuilder{ + public V1ValidatingAdmissionPolicyBindingListBuilder() { + this(new V1ValidatingAdmissionPolicyBindingList()); + } + + public V1ValidatingAdmissionPolicyBindingListBuilder(V1ValidatingAdmissionPolicyBindingListFluent fluent) { + this(fluent, new V1ValidatingAdmissionPolicyBindingList()); + } + + public V1ValidatingAdmissionPolicyBindingListBuilder(V1ValidatingAdmissionPolicyBindingListFluent fluent,V1ValidatingAdmissionPolicyBindingList instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1ValidatingAdmissionPolicyBindingListBuilder(V1ValidatingAdmissionPolicyBindingList instance) { + this.fluent = this; + this.copyInstance(instance); + } + V1ValidatingAdmissionPolicyBindingListFluent fluent; + + public V1ValidatingAdmissionPolicyBindingList build() { + V1ValidatingAdmissionPolicyBindingList buildable = new V1ValidatingAdmissionPolicyBindingList(); + buildable.setApiVersion(fluent.getApiVersion()); + buildable.setItems(fluent.buildItems()); + buildable.setKind(fluent.getKind()); + buildable.setMetadata(fluent.buildMetadata()); + return buildable; + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingAdmissionPolicyBindingListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingAdmissionPolicyBindingListFluent.java new file mode 100644 index 0000000000..6301420310 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingAdmissionPolicyBindingListFluent.java @@ -0,0 +1,331 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.Nested; +import java.util.ArrayList; +import java.lang.String; +import java.util.function.Predicate; +import io.kubernetes.client.fluent.BaseFluent; +import java.util.Iterator; +import java.util.Collection; +import java.lang.Object; +import java.util.List; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1ValidatingAdmissionPolicyBindingListFluent> extends BaseFluent{ + public V1ValidatingAdmissionPolicyBindingListFluent() { + } + + public V1ValidatingAdmissionPolicyBindingListFluent(V1ValidatingAdmissionPolicyBindingList instance) { + this.copyInstance(instance); + } + private String apiVersion; + private ArrayList items; + private String kind; + private V1ListMetaBuilder metadata; + + protected void copyInstance(V1ValidatingAdmissionPolicyBindingList instance) { + instance = (instance != null ? instance : new V1ValidatingAdmissionPolicyBindingList()); + if (instance != null) { + this.withApiVersion(instance.getApiVersion()); + this.withItems(instance.getItems()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); + } + } + + public String getApiVersion() { + return this.apiVersion; + } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + + public boolean hasApiVersion() { + return this.apiVersion != null; + } + + public A addToItems(int index,V1ValidatingAdmissionPolicyBinding item) { + if (this.items == null) {this.items = new ArrayList();} + V1ValidatingAdmissionPolicyBindingBuilder builder = new V1ValidatingAdmissionPolicyBindingBuilder(item); + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.add(index, builder); + } + return (A)this; + } + + public A setToItems(int index,V1ValidatingAdmissionPolicyBinding item) { + if (this.items == null) {this.items = new ArrayList();} + V1ValidatingAdmissionPolicyBindingBuilder builder = new V1ValidatingAdmissionPolicyBindingBuilder(item); + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.set(index, builder); + } + return (A)this; + } + + public A addToItems(io.kubernetes.client.openapi.models.V1ValidatingAdmissionPolicyBinding... items) { + if (this.items == null) {this.items = new ArrayList();} + for (V1ValidatingAdmissionPolicyBinding item : items) {V1ValidatingAdmissionPolicyBindingBuilder builder = new V1ValidatingAdmissionPolicyBindingBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; + } + + public A addAllToItems(Collection items) { + if (this.items == null) {this.items = new ArrayList();} + for (V1ValidatingAdmissionPolicyBinding item : items) {V1ValidatingAdmissionPolicyBindingBuilder builder = new V1ValidatingAdmissionPolicyBindingBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; + } + + public A removeFromItems(io.kubernetes.client.openapi.models.V1ValidatingAdmissionPolicyBinding... items) { + if (this.items == null) return (A)this; + for (V1ValidatingAdmissionPolicyBinding item : items) {V1ValidatingAdmissionPolicyBindingBuilder builder = new V1ValidatingAdmissionPolicyBindingBuilder(item);_visitables.get("items").remove(builder); this.items.remove(builder);} return (A)this; + } + + public A removeAllFromItems(Collection items) { + if (this.items == null) return (A)this; + for (V1ValidatingAdmissionPolicyBinding item : items) {V1ValidatingAdmissionPolicyBindingBuilder builder = new V1ValidatingAdmissionPolicyBindingBuilder(item);_visitables.get("items").remove(builder); this.items.remove(builder);} return (A)this; + } + + public A removeMatchingFromItems(Predicate predicate) { + if (items == null) return (A) this; + final Iterator each = items.iterator(); + final List visitables = _visitables.get("items"); + while (each.hasNext()) { + V1ValidatingAdmissionPolicyBindingBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A)this; + } + + public List buildItems() { + return this.items != null ? build(items) : null; + } + + public V1ValidatingAdmissionPolicyBinding buildItem(int index) { + return this.items.get(index).build(); + } + + public V1ValidatingAdmissionPolicyBinding buildFirstItem() { + return this.items.get(0).build(); + } + + public V1ValidatingAdmissionPolicyBinding buildLastItem() { + return this.items.get(items.size() - 1).build(); + } + + public V1ValidatingAdmissionPolicyBinding buildMatchingItem(Predicate predicate) { + for (V1ValidatingAdmissionPolicyBindingBuilder item : items) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; + } + + public boolean hasMatchingItem(Predicate predicate) { + for (V1ValidatingAdmissionPolicyBindingBuilder item : items) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public A withItems(List items) { + if (this.items != null) { + this._visitables.get("items").clear(); + } + if (items != null) { + this.items = new ArrayList(); + for (V1ValidatingAdmissionPolicyBinding item : items) { + this.addToItems(item); + } + } else { + this.items = null; + } + return (A) this; + } + + public A withItems(io.kubernetes.client.openapi.models.V1ValidatingAdmissionPolicyBinding... items) { + if (this.items != null) { + this.items.clear(); + _visitables.remove("items"); + } + if (items != null) { + for (V1ValidatingAdmissionPolicyBinding item : items) { + this.addToItems(item); + } + } + return (A) this; + } + + public boolean hasItems() { + return this.items != null && !this.items.isEmpty(); + } + + public ItemsNested addNewItem() { + return new ItemsNested(-1, null); + } + + public ItemsNested addNewItemLike(V1ValidatingAdmissionPolicyBinding item) { + return new ItemsNested(-1, item); + } + + public ItemsNested setNewItemLike(int index,V1ValidatingAdmissionPolicyBinding item) { + return new ItemsNested(index, item); + } + + public ItemsNested editItem(int index) { + if (items.size() <= index) throw new RuntimeException("Can't edit items. Index exceeds size."); + return setNewItemLike(index, buildItem(index)); + } + + public ItemsNested editFirstItem() { + if (items.size() == 0) throw new RuntimeException("Can't edit first items. The list is empty."); + return setNewItemLike(0, buildItem(0)); + } + + public ItemsNested editLastItem() { + int index = items.size() - 1; + if (index < 0) throw new RuntimeException("Can't edit last items. The list is empty."); + return setNewItemLike(index, buildItem(index)); + } + + public ItemsNested editMatchingItem(Predicate predicate) { + int index = -1; + for (int i=0;i withNewMetadata() { + return new MetadataNested(null); + } + + public MetadataNested withNewMetadataLike(V1ListMeta item) { + return new MetadataNested(item); + } + + public MetadataNested editMetadata() { + return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(null)); + } + + public MetadataNested editOrNewMetadata() { + return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(new V1ListMetaBuilder().build())); + } + + public MetadataNested editOrNewMetadataLike(V1ListMeta item) { + return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(item)); + } + + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + if (!super.equals(o)) return false; + V1ValidatingAdmissionPolicyBindingListFluent that = (V1ValidatingAdmissionPolicyBindingListFluent) o; + if (!java.util.Objects.equals(apiVersion, that.apiVersion)) return false; + if (!java.util.Objects.equals(items, that.items)) return false; + if (!java.util.Objects.equals(kind, that.kind)) return false; + if (!java.util.Objects.equals(metadata, that.metadata)) return false; + return true; + } + + public int hashCode() { + return java.util.Objects.hash(apiVersion, items, kind, metadata, super.hashCode()); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (apiVersion != null) { sb.append("apiVersion:"); sb.append(apiVersion + ","); } + if (items != null && !items.isEmpty()) { sb.append("items:"); sb.append(items + ","); } + if (kind != null) { sb.append("kind:"); sb.append(kind + ","); } + if (metadata != null) { sb.append("metadata:"); sb.append(metadata); } + sb.append("}"); + return sb.toString(); + } + public class ItemsNested extends V1ValidatingAdmissionPolicyBindingFluent> implements Nested{ + ItemsNested(int index,V1ValidatingAdmissionPolicyBinding item) { + this.index = index; + this.builder = new V1ValidatingAdmissionPolicyBindingBuilder(this, item); + } + V1ValidatingAdmissionPolicyBindingBuilder builder; + int index; + + public N and() { + return (N) V1ValidatingAdmissionPolicyBindingListFluent.this.setToItems(index,builder.build()); + } + + public N endItem() { + return and(); + } + + + } + public class MetadataNested extends V1ListMetaFluent> implements Nested{ + MetadataNested(V1ListMeta item) { + this.builder = new V1ListMetaBuilder(this, item); + } + V1ListMetaBuilder builder; + + public N and() { + return (N) V1ValidatingAdmissionPolicyBindingListFluent.this.withMetadata(builder.build()); + } + + public N endMetadata() { + return and(); + } + + + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingAdmissionPolicyBindingSpecBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingAdmissionPolicyBindingSpecBuilder.java new file mode 100644 index 0000000000..9e3abb8d40 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingAdmissionPolicyBindingSpecBuilder.java @@ -0,0 +1,34 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +public class V1ValidatingAdmissionPolicyBindingSpecBuilder extends V1ValidatingAdmissionPolicyBindingSpecFluent implements VisitableBuilder{ + public V1ValidatingAdmissionPolicyBindingSpecBuilder() { + this(new V1ValidatingAdmissionPolicyBindingSpec()); + } + + public V1ValidatingAdmissionPolicyBindingSpecBuilder(V1ValidatingAdmissionPolicyBindingSpecFluent fluent) { + this(fluent, new V1ValidatingAdmissionPolicyBindingSpec()); + } + + public V1ValidatingAdmissionPolicyBindingSpecBuilder(V1ValidatingAdmissionPolicyBindingSpecFluent fluent,V1ValidatingAdmissionPolicyBindingSpec instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1ValidatingAdmissionPolicyBindingSpecBuilder(V1ValidatingAdmissionPolicyBindingSpec instance) { + this.fluent = this; + this.copyInstance(instance); + } + V1ValidatingAdmissionPolicyBindingSpecFluent fluent; + + public V1ValidatingAdmissionPolicyBindingSpec build() { + V1ValidatingAdmissionPolicyBindingSpec buildable = new V1ValidatingAdmissionPolicyBindingSpec(); + buildable.setMatchResources(fluent.buildMatchResources()); + buildable.setParamRef(fluent.buildParamRef()); + buildable.setPolicyName(fluent.getPolicyName()); + buildable.setValidationActions(fluent.getValidationActions()); + return buildable; + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingAdmissionPolicyBindingSpecFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingAdmissionPolicyBindingSpecFluent.java new file mode 100644 index 0000000000..a270a51692 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingAdmissionPolicyBindingSpecFluent.java @@ -0,0 +1,285 @@ +package io.kubernetes.client.openapi.models; + +import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.Nested; +import java.util.ArrayList; +import java.lang.String; +import java.util.function.Predicate; +import io.kubernetes.client.fluent.BaseFluent; +import java.util.Collection; +import java.lang.Object; +import java.util.List; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1ValidatingAdmissionPolicyBindingSpecFluent> extends BaseFluent{ + public V1ValidatingAdmissionPolicyBindingSpecFluent() { + } + + public V1ValidatingAdmissionPolicyBindingSpecFluent(V1ValidatingAdmissionPolicyBindingSpec instance) { + this.copyInstance(instance); + } + private V1MatchResourcesBuilder matchResources; + private V1ParamRefBuilder paramRef; + private String policyName; + private List validationActions; + + protected void copyInstance(V1ValidatingAdmissionPolicyBindingSpec instance) { + instance = (instance != null ? instance : new V1ValidatingAdmissionPolicyBindingSpec()); + if (instance != null) { + this.withMatchResources(instance.getMatchResources()); + this.withParamRef(instance.getParamRef()); + this.withPolicyName(instance.getPolicyName()); + this.withValidationActions(instance.getValidationActions()); + } + } + + public V1MatchResources buildMatchResources() { + return this.matchResources != null ? this.matchResources.build() : null; + } + + public A withMatchResources(V1MatchResources matchResources) { + this._visitables.remove("matchResources"); + if (matchResources != null) { + this.matchResources = new V1MatchResourcesBuilder(matchResources); + this._visitables.get("matchResources").add(this.matchResources); + } else { + this.matchResources = null; + this._visitables.get("matchResources").remove(this.matchResources); + } + return (A) this; + } + + public boolean hasMatchResources() { + return this.matchResources != null; + } + + public MatchResourcesNested withNewMatchResources() { + return new MatchResourcesNested(null); + } + + public MatchResourcesNested withNewMatchResourcesLike(V1MatchResources item) { + return new MatchResourcesNested(item); + } + + public MatchResourcesNested editMatchResources() { + return withNewMatchResourcesLike(java.util.Optional.ofNullable(buildMatchResources()).orElse(null)); + } + + public MatchResourcesNested editOrNewMatchResources() { + return withNewMatchResourcesLike(java.util.Optional.ofNullable(buildMatchResources()).orElse(new V1MatchResourcesBuilder().build())); + } + + public MatchResourcesNested editOrNewMatchResourcesLike(V1MatchResources item) { + return withNewMatchResourcesLike(java.util.Optional.ofNullable(buildMatchResources()).orElse(item)); + } + + public V1ParamRef buildParamRef() { + return this.paramRef != null ? this.paramRef.build() : null; + } + + public A withParamRef(V1ParamRef paramRef) { + this._visitables.remove("paramRef"); + if (paramRef != null) { + this.paramRef = new V1ParamRefBuilder(paramRef); + this._visitables.get("paramRef").add(this.paramRef); + } else { + this.paramRef = null; + this._visitables.get("paramRef").remove(this.paramRef); + } + return (A) this; + } + + public boolean hasParamRef() { + return this.paramRef != null; + } + + public ParamRefNested withNewParamRef() { + return new ParamRefNested(null); + } + + public ParamRefNested withNewParamRefLike(V1ParamRef item) { + return new ParamRefNested(item); + } + + public ParamRefNested editParamRef() { + return withNewParamRefLike(java.util.Optional.ofNullable(buildParamRef()).orElse(null)); + } + + public ParamRefNested editOrNewParamRef() { + return withNewParamRefLike(java.util.Optional.ofNullable(buildParamRef()).orElse(new V1ParamRefBuilder().build())); + } + + public ParamRefNested editOrNewParamRefLike(V1ParamRef item) { + return withNewParamRefLike(java.util.Optional.ofNullable(buildParamRef()).orElse(item)); + } + + public String getPolicyName() { + return this.policyName; + } + + public A withPolicyName(String policyName) { + this.policyName = policyName; + return (A) this; + } + + public boolean hasPolicyName() { + return this.policyName != null; + } + + public A addToValidationActions(int index,String item) { + if (this.validationActions == null) {this.validationActions = new ArrayList();} + this.validationActions.add(index, item); + return (A)this; + } + + public A setToValidationActions(int index,String item) { + if (this.validationActions == null) {this.validationActions = new ArrayList();} + this.validationActions.set(index, item); return (A)this; + } + + public A addToValidationActions(java.lang.String... items) { + if (this.validationActions == null) {this.validationActions = new ArrayList();} + for (String item : items) {this.validationActions.add(item);} return (A)this; + } + + public A addAllToValidationActions(Collection items) { + if (this.validationActions == null) {this.validationActions = new ArrayList();} + for (String item : items) {this.validationActions.add(item);} return (A)this; + } + + public A removeFromValidationActions(java.lang.String... items) { + if (this.validationActions == null) return (A)this; + for (String item : items) { this.validationActions.remove(item);} return (A)this; + } + + public A removeAllFromValidationActions(Collection items) { + if (this.validationActions == null) return (A)this; + for (String item : items) { this.validationActions.remove(item);} return (A)this; + } + + public List getValidationActions() { + return this.validationActions; + } + + public String getValidationAction(int index) { + return this.validationActions.get(index); + } + + public String getFirstValidationAction() { + return this.validationActions.get(0); + } + + public String getLastValidationAction() { + return this.validationActions.get(validationActions.size() - 1); + } + + public String getMatchingValidationAction(Predicate predicate) { + for (String item : validationActions) { + if (predicate.test(item)) { + return item; + } + } + return null; + } + + public boolean hasMatchingValidationAction(Predicate predicate) { + for (String item : validationActions) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public A withValidationActions(List validationActions) { + if (validationActions != null) { + this.validationActions = new ArrayList(); + for (String item : validationActions) { + this.addToValidationActions(item); + } + } else { + this.validationActions = null; + } + return (A) this; + } + + public A withValidationActions(java.lang.String... validationActions) { + if (this.validationActions != null) { + this.validationActions.clear(); + _visitables.remove("validationActions"); + } + if (validationActions != null) { + for (String item : validationActions) { + this.addToValidationActions(item); + } + } + return (A) this; + } + + public boolean hasValidationActions() { + return this.validationActions != null && !this.validationActions.isEmpty(); + } + + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + if (!super.equals(o)) return false; + V1ValidatingAdmissionPolicyBindingSpecFluent that = (V1ValidatingAdmissionPolicyBindingSpecFluent) o; + if (!java.util.Objects.equals(matchResources, that.matchResources)) return false; + if (!java.util.Objects.equals(paramRef, that.paramRef)) return false; + if (!java.util.Objects.equals(policyName, that.policyName)) return false; + if (!java.util.Objects.equals(validationActions, that.validationActions)) return false; + return true; + } + + public int hashCode() { + return java.util.Objects.hash(matchResources, paramRef, policyName, validationActions, super.hashCode()); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (matchResources != null) { sb.append("matchResources:"); sb.append(matchResources + ","); } + if (paramRef != null) { sb.append("paramRef:"); sb.append(paramRef + ","); } + if (policyName != null) { sb.append("policyName:"); sb.append(policyName + ","); } + if (validationActions != null && !validationActions.isEmpty()) { sb.append("validationActions:"); sb.append(validationActions); } + sb.append("}"); + return sb.toString(); + } + public class MatchResourcesNested extends V1MatchResourcesFluent> implements Nested{ + MatchResourcesNested(V1MatchResources item) { + this.builder = new V1MatchResourcesBuilder(this, item); + } + V1MatchResourcesBuilder builder; + + public N and() { + return (N) V1ValidatingAdmissionPolicyBindingSpecFluent.this.withMatchResources(builder.build()); + } + + public N endMatchResources() { + return and(); + } + + + } + public class ParamRefNested extends V1ParamRefFluent> implements Nested{ + ParamRefNested(V1ParamRef item) { + this.builder = new V1ParamRefBuilder(this, item); + } + V1ParamRefBuilder builder; + + public N and() { + return (N) V1ValidatingAdmissionPolicyBindingSpecFluent.this.withParamRef(builder.build()); + } + + public N endParamRef() { + return and(); + } + + + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingAdmissionPolicyBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingAdmissionPolicyBuilder.java new file mode 100644 index 0000000000..6abb02599b --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingAdmissionPolicyBuilder.java @@ -0,0 +1,35 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +public class V1ValidatingAdmissionPolicyBuilder extends V1ValidatingAdmissionPolicyFluent implements VisitableBuilder{ + public V1ValidatingAdmissionPolicyBuilder() { + this(new V1ValidatingAdmissionPolicy()); + } + + public V1ValidatingAdmissionPolicyBuilder(V1ValidatingAdmissionPolicyFluent fluent) { + this(fluent, new V1ValidatingAdmissionPolicy()); + } + + public V1ValidatingAdmissionPolicyBuilder(V1ValidatingAdmissionPolicyFluent fluent,V1ValidatingAdmissionPolicy instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1ValidatingAdmissionPolicyBuilder(V1ValidatingAdmissionPolicy instance) { + this.fluent = this; + this.copyInstance(instance); + } + V1ValidatingAdmissionPolicyFluent fluent; + + public V1ValidatingAdmissionPolicy build() { + V1ValidatingAdmissionPolicy buildable = new V1ValidatingAdmissionPolicy(); + buildable.setApiVersion(fluent.getApiVersion()); + buildable.setKind(fluent.getKind()); + buildable.setMetadata(fluent.buildMetadata()); + buildable.setSpec(fluent.buildSpec()); + buildable.setStatus(fluent.buildStatus()); + return buildable; + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingAdmissionPolicyFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingAdmissionPolicyFluent.java new file mode 100644 index 0000000000..3f346ba88c --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingAdmissionPolicyFluent.java @@ -0,0 +1,260 @@ +package io.kubernetes.client.openapi.models; + +import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.Nested; +import java.lang.String; +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Object; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1ValidatingAdmissionPolicyFluent> extends BaseFluent{ + public V1ValidatingAdmissionPolicyFluent() { + } + + public V1ValidatingAdmissionPolicyFluent(V1ValidatingAdmissionPolicy instance) { + this.copyInstance(instance); + } + private String apiVersion; + private String kind; + private V1ObjectMetaBuilder metadata; + private V1ValidatingAdmissionPolicySpecBuilder spec; + private V1ValidatingAdmissionPolicyStatusBuilder status; + + protected void copyInstance(V1ValidatingAdmissionPolicy instance) { + instance = (instance != null ? instance : new V1ValidatingAdmissionPolicy()); + if (instance != null) { + this.withApiVersion(instance.getApiVersion()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); + this.withSpec(instance.getSpec()); + this.withStatus(instance.getStatus()); + } + } + + public String getApiVersion() { + return this.apiVersion; + } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + + public boolean hasApiVersion() { + return this.apiVersion != null; + } + + public String getKind() { + return this.kind; + } + + public A withKind(String kind) { + this.kind = kind; + return (A) this; + } + + public boolean hasKind() { + return this.kind != null; + } + + public V1ObjectMeta buildMetadata() { + return this.metadata != null ? this.metadata.build() : null; + } + + public A withMetadata(V1ObjectMeta metadata) { + this._visitables.remove("metadata"); + if (metadata != null) { + this.metadata = new V1ObjectMetaBuilder(metadata); + this._visitables.get("metadata").add(this.metadata); + } else { + this.metadata = null; + this._visitables.get("metadata").remove(this.metadata); + } + return (A) this; + } + + public boolean hasMetadata() { + return this.metadata != null; + } + + public MetadataNested withNewMetadata() { + return new MetadataNested(null); + } + + public MetadataNested withNewMetadataLike(V1ObjectMeta item) { + return new MetadataNested(item); + } + + public MetadataNested editMetadata() { + return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(null)); + } + + public MetadataNested editOrNewMetadata() { + return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(new V1ObjectMetaBuilder().build())); + } + + public MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { + return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(item)); + } + + public V1ValidatingAdmissionPolicySpec buildSpec() { + return this.spec != null ? this.spec.build() : null; + } + + public A withSpec(V1ValidatingAdmissionPolicySpec spec) { + this._visitables.remove("spec"); + if (spec != null) { + this.spec = new V1ValidatingAdmissionPolicySpecBuilder(spec); + this._visitables.get("spec").add(this.spec); + } else { + this.spec = null; + this._visitables.get("spec").remove(this.spec); + } + return (A) this; + } + + public boolean hasSpec() { + return this.spec != null; + } + + public SpecNested withNewSpec() { + return new SpecNested(null); + } + + public SpecNested withNewSpecLike(V1ValidatingAdmissionPolicySpec item) { + return new SpecNested(item); + } + + public SpecNested editSpec() { + return withNewSpecLike(java.util.Optional.ofNullable(buildSpec()).orElse(null)); + } + + public SpecNested editOrNewSpec() { + return withNewSpecLike(java.util.Optional.ofNullable(buildSpec()).orElse(new V1ValidatingAdmissionPolicySpecBuilder().build())); + } + + public SpecNested editOrNewSpecLike(V1ValidatingAdmissionPolicySpec item) { + return withNewSpecLike(java.util.Optional.ofNullable(buildSpec()).orElse(item)); + } + + public V1ValidatingAdmissionPolicyStatus buildStatus() { + return this.status != null ? this.status.build() : null; + } + + public A withStatus(V1ValidatingAdmissionPolicyStatus status) { + this._visitables.remove("status"); + if (status != null) { + this.status = new V1ValidatingAdmissionPolicyStatusBuilder(status); + this._visitables.get("status").add(this.status); + } else { + this.status = null; + this._visitables.get("status").remove(this.status); + } + return (A) this; + } + + public boolean hasStatus() { + return this.status != null; + } + + public StatusNested withNewStatus() { + return new StatusNested(null); + } + + public StatusNested withNewStatusLike(V1ValidatingAdmissionPolicyStatus item) { + return new StatusNested(item); + } + + public StatusNested editStatus() { + return withNewStatusLike(java.util.Optional.ofNullable(buildStatus()).orElse(null)); + } + + public StatusNested editOrNewStatus() { + return withNewStatusLike(java.util.Optional.ofNullable(buildStatus()).orElse(new V1ValidatingAdmissionPolicyStatusBuilder().build())); + } + + public StatusNested editOrNewStatusLike(V1ValidatingAdmissionPolicyStatus item) { + return withNewStatusLike(java.util.Optional.ofNullable(buildStatus()).orElse(item)); + } + + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + if (!super.equals(o)) return false; + V1ValidatingAdmissionPolicyFluent that = (V1ValidatingAdmissionPolicyFluent) o; + if (!java.util.Objects.equals(apiVersion, that.apiVersion)) return false; + if (!java.util.Objects.equals(kind, that.kind)) return false; + if (!java.util.Objects.equals(metadata, that.metadata)) return false; + if (!java.util.Objects.equals(spec, that.spec)) return false; + if (!java.util.Objects.equals(status, that.status)) return false; + return true; + } + + public int hashCode() { + return java.util.Objects.hash(apiVersion, kind, metadata, spec, status, super.hashCode()); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (apiVersion != null) { sb.append("apiVersion:"); sb.append(apiVersion + ","); } + if (kind != null) { sb.append("kind:"); sb.append(kind + ","); } + if (metadata != null) { sb.append("metadata:"); sb.append(metadata + ","); } + if (spec != null) { sb.append("spec:"); sb.append(spec + ","); } + if (status != null) { sb.append("status:"); sb.append(status); } + sb.append("}"); + return sb.toString(); + } + public class MetadataNested extends V1ObjectMetaFluent> implements Nested{ + MetadataNested(V1ObjectMeta item) { + this.builder = new V1ObjectMetaBuilder(this, item); + } + V1ObjectMetaBuilder builder; + + public N and() { + return (N) V1ValidatingAdmissionPolicyFluent.this.withMetadata(builder.build()); + } + + public N endMetadata() { + return and(); + } + + + } + public class SpecNested extends V1ValidatingAdmissionPolicySpecFluent> implements Nested{ + SpecNested(V1ValidatingAdmissionPolicySpec item) { + this.builder = new V1ValidatingAdmissionPolicySpecBuilder(this, item); + } + V1ValidatingAdmissionPolicySpecBuilder builder; + + public N and() { + return (N) V1ValidatingAdmissionPolicyFluent.this.withSpec(builder.build()); + } + + public N endSpec() { + return and(); + } + + + } + public class StatusNested extends V1ValidatingAdmissionPolicyStatusFluent> implements Nested{ + StatusNested(V1ValidatingAdmissionPolicyStatus item) { + this.builder = new V1ValidatingAdmissionPolicyStatusBuilder(this, item); + } + V1ValidatingAdmissionPolicyStatusBuilder builder; + + public N and() { + return (N) V1ValidatingAdmissionPolicyFluent.this.withStatus(builder.build()); + } + + public N endStatus() { + return and(); + } + + + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingAdmissionPolicyListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingAdmissionPolicyListBuilder.java new file mode 100644 index 0000000000..4f6360d8e4 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingAdmissionPolicyListBuilder.java @@ -0,0 +1,34 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +public class V1ValidatingAdmissionPolicyListBuilder extends V1ValidatingAdmissionPolicyListFluent implements VisitableBuilder{ + public V1ValidatingAdmissionPolicyListBuilder() { + this(new V1ValidatingAdmissionPolicyList()); + } + + public V1ValidatingAdmissionPolicyListBuilder(V1ValidatingAdmissionPolicyListFluent fluent) { + this(fluent, new V1ValidatingAdmissionPolicyList()); + } + + public V1ValidatingAdmissionPolicyListBuilder(V1ValidatingAdmissionPolicyListFluent fluent,V1ValidatingAdmissionPolicyList instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1ValidatingAdmissionPolicyListBuilder(V1ValidatingAdmissionPolicyList instance) { + this.fluent = this; + this.copyInstance(instance); + } + V1ValidatingAdmissionPolicyListFluent fluent; + + public V1ValidatingAdmissionPolicyList build() { + V1ValidatingAdmissionPolicyList buildable = new V1ValidatingAdmissionPolicyList(); + buildable.setApiVersion(fluent.getApiVersion()); + buildable.setItems(fluent.buildItems()); + buildable.setKind(fluent.getKind()); + buildable.setMetadata(fluent.buildMetadata()); + return buildable; + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingAdmissionPolicyListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingAdmissionPolicyListFluent.java new file mode 100644 index 0000000000..551bee18b3 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingAdmissionPolicyListFluent.java @@ -0,0 +1,331 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.Nested; +import java.util.ArrayList; +import java.lang.String; +import java.util.function.Predicate; +import io.kubernetes.client.fluent.BaseFluent; +import java.util.Iterator; +import java.util.Collection; +import java.lang.Object; +import java.util.List; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1ValidatingAdmissionPolicyListFluent> extends BaseFluent{ + public V1ValidatingAdmissionPolicyListFluent() { + } + + public V1ValidatingAdmissionPolicyListFluent(V1ValidatingAdmissionPolicyList instance) { + this.copyInstance(instance); + } + private String apiVersion; + private ArrayList items; + private String kind; + private V1ListMetaBuilder metadata; + + protected void copyInstance(V1ValidatingAdmissionPolicyList instance) { + instance = (instance != null ? instance : new V1ValidatingAdmissionPolicyList()); + if (instance != null) { + this.withApiVersion(instance.getApiVersion()); + this.withItems(instance.getItems()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); + } + } + + public String getApiVersion() { + return this.apiVersion; + } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + + public boolean hasApiVersion() { + return this.apiVersion != null; + } + + public A addToItems(int index,V1ValidatingAdmissionPolicy item) { + if (this.items == null) {this.items = new ArrayList();} + V1ValidatingAdmissionPolicyBuilder builder = new V1ValidatingAdmissionPolicyBuilder(item); + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.add(index, builder); + } + return (A)this; + } + + public A setToItems(int index,V1ValidatingAdmissionPolicy item) { + if (this.items == null) {this.items = new ArrayList();} + V1ValidatingAdmissionPolicyBuilder builder = new V1ValidatingAdmissionPolicyBuilder(item); + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.set(index, builder); + } + return (A)this; + } + + public A addToItems(io.kubernetes.client.openapi.models.V1ValidatingAdmissionPolicy... items) { + if (this.items == null) {this.items = new ArrayList();} + for (V1ValidatingAdmissionPolicy item : items) {V1ValidatingAdmissionPolicyBuilder builder = new V1ValidatingAdmissionPolicyBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; + } + + public A addAllToItems(Collection items) { + if (this.items == null) {this.items = new ArrayList();} + for (V1ValidatingAdmissionPolicy item : items) {V1ValidatingAdmissionPolicyBuilder builder = new V1ValidatingAdmissionPolicyBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; + } + + public A removeFromItems(io.kubernetes.client.openapi.models.V1ValidatingAdmissionPolicy... items) { + if (this.items == null) return (A)this; + for (V1ValidatingAdmissionPolicy item : items) {V1ValidatingAdmissionPolicyBuilder builder = new V1ValidatingAdmissionPolicyBuilder(item);_visitables.get("items").remove(builder); this.items.remove(builder);} return (A)this; + } + + public A removeAllFromItems(Collection items) { + if (this.items == null) return (A)this; + for (V1ValidatingAdmissionPolicy item : items) {V1ValidatingAdmissionPolicyBuilder builder = new V1ValidatingAdmissionPolicyBuilder(item);_visitables.get("items").remove(builder); this.items.remove(builder);} return (A)this; + } + + public A removeMatchingFromItems(Predicate predicate) { + if (items == null) return (A) this; + final Iterator each = items.iterator(); + final List visitables = _visitables.get("items"); + while (each.hasNext()) { + V1ValidatingAdmissionPolicyBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A)this; + } + + public List buildItems() { + return this.items != null ? build(items) : null; + } + + public V1ValidatingAdmissionPolicy buildItem(int index) { + return this.items.get(index).build(); + } + + public V1ValidatingAdmissionPolicy buildFirstItem() { + return this.items.get(0).build(); + } + + public V1ValidatingAdmissionPolicy buildLastItem() { + return this.items.get(items.size() - 1).build(); + } + + public V1ValidatingAdmissionPolicy buildMatchingItem(Predicate predicate) { + for (V1ValidatingAdmissionPolicyBuilder item : items) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; + } + + public boolean hasMatchingItem(Predicate predicate) { + for (V1ValidatingAdmissionPolicyBuilder item : items) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public A withItems(List items) { + if (this.items != null) { + this._visitables.get("items").clear(); + } + if (items != null) { + this.items = new ArrayList(); + for (V1ValidatingAdmissionPolicy item : items) { + this.addToItems(item); + } + } else { + this.items = null; + } + return (A) this; + } + + public A withItems(io.kubernetes.client.openapi.models.V1ValidatingAdmissionPolicy... items) { + if (this.items != null) { + this.items.clear(); + _visitables.remove("items"); + } + if (items != null) { + for (V1ValidatingAdmissionPolicy item : items) { + this.addToItems(item); + } + } + return (A) this; + } + + public boolean hasItems() { + return this.items != null && !this.items.isEmpty(); + } + + public ItemsNested addNewItem() { + return new ItemsNested(-1, null); + } + + public ItemsNested addNewItemLike(V1ValidatingAdmissionPolicy item) { + return new ItemsNested(-1, item); + } + + public ItemsNested setNewItemLike(int index,V1ValidatingAdmissionPolicy item) { + return new ItemsNested(index, item); + } + + public ItemsNested editItem(int index) { + if (items.size() <= index) throw new RuntimeException("Can't edit items. Index exceeds size."); + return setNewItemLike(index, buildItem(index)); + } + + public ItemsNested editFirstItem() { + if (items.size() == 0) throw new RuntimeException("Can't edit first items. The list is empty."); + return setNewItemLike(0, buildItem(0)); + } + + public ItemsNested editLastItem() { + int index = items.size() - 1; + if (index < 0) throw new RuntimeException("Can't edit last items. The list is empty."); + return setNewItemLike(index, buildItem(index)); + } + + public ItemsNested editMatchingItem(Predicate predicate) { + int index = -1; + for (int i=0;i withNewMetadata() { + return new MetadataNested(null); + } + + public MetadataNested withNewMetadataLike(V1ListMeta item) { + return new MetadataNested(item); + } + + public MetadataNested editMetadata() { + return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(null)); + } + + public MetadataNested editOrNewMetadata() { + return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(new V1ListMetaBuilder().build())); + } + + public MetadataNested editOrNewMetadataLike(V1ListMeta item) { + return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(item)); + } + + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + if (!super.equals(o)) return false; + V1ValidatingAdmissionPolicyListFluent that = (V1ValidatingAdmissionPolicyListFluent) o; + if (!java.util.Objects.equals(apiVersion, that.apiVersion)) return false; + if (!java.util.Objects.equals(items, that.items)) return false; + if (!java.util.Objects.equals(kind, that.kind)) return false; + if (!java.util.Objects.equals(metadata, that.metadata)) return false; + return true; + } + + public int hashCode() { + return java.util.Objects.hash(apiVersion, items, kind, metadata, super.hashCode()); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (apiVersion != null) { sb.append("apiVersion:"); sb.append(apiVersion + ","); } + if (items != null && !items.isEmpty()) { sb.append("items:"); sb.append(items + ","); } + if (kind != null) { sb.append("kind:"); sb.append(kind + ","); } + if (metadata != null) { sb.append("metadata:"); sb.append(metadata); } + sb.append("}"); + return sb.toString(); + } + public class ItemsNested extends V1ValidatingAdmissionPolicyFluent> implements Nested{ + ItemsNested(int index,V1ValidatingAdmissionPolicy item) { + this.index = index; + this.builder = new V1ValidatingAdmissionPolicyBuilder(this, item); + } + V1ValidatingAdmissionPolicyBuilder builder; + int index; + + public N and() { + return (N) V1ValidatingAdmissionPolicyListFluent.this.setToItems(index,builder.build()); + } + + public N endItem() { + return and(); + } + + + } + public class MetadataNested extends V1ListMetaFluent> implements Nested{ + MetadataNested(V1ListMeta item) { + this.builder = new V1ListMetaBuilder(this, item); + } + V1ListMetaBuilder builder; + + public N and() { + return (N) V1ValidatingAdmissionPolicyListFluent.this.withMetadata(builder.build()); + } + + public N endMetadata() { + return and(); + } + + + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingAdmissionPolicySpecBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingAdmissionPolicySpecBuilder.java new file mode 100644 index 0000000000..b592cb24e9 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingAdmissionPolicySpecBuilder.java @@ -0,0 +1,37 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +public class V1ValidatingAdmissionPolicySpecBuilder extends V1ValidatingAdmissionPolicySpecFluent implements VisitableBuilder{ + public V1ValidatingAdmissionPolicySpecBuilder() { + this(new V1ValidatingAdmissionPolicySpec()); + } + + public V1ValidatingAdmissionPolicySpecBuilder(V1ValidatingAdmissionPolicySpecFluent fluent) { + this(fluent, new V1ValidatingAdmissionPolicySpec()); + } + + public V1ValidatingAdmissionPolicySpecBuilder(V1ValidatingAdmissionPolicySpecFluent fluent,V1ValidatingAdmissionPolicySpec instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1ValidatingAdmissionPolicySpecBuilder(V1ValidatingAdmissionPolicySpec instance) { + this.fluent = this; + this.copyInstance(instance); + } + V1ValidatingAdmissionPolicySpecFluent fluent; + + public V1ValidatingAdmissionPolicySpec build() { + V1ValidatingAdmissionPolicySpec buildable = new V1ValidatingAdmissionPolicySpec(); + buildable.setAuditAnnotations(fluent.buildAuditAnnotations()); + buildable.setFailurePolicy(fluent.getFailurePolicy()); + buildable.setMatchConditions(fluent.buildMatchConditions()); + buildable.setMatchConstraints(fluent.buildMatchConstraints()); + buildable.setParamKind(fluent.buildParamKind()); + buildable.setValidations(fluent.buildValidations()); + buildable.setVariables(fluent.buildVariables()); + return buildable; + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingAdmissionPolicySpecFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingAdmissionPolicySpecFluent.java new file mode 100644 index 0000000000..f64690ac28 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingAdmissionPolicySpecFluent.java @@ -0,0 +1,929 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.Nested; +import java.util.ArrayList; +import java.lang.String; +import java.util.function.Predicate; +import io.kubernetes.client.fluent.BaseFluent; +import java.util.Iterator; +import java.util.List; +import java.util.Collection; +import java.lang.Object; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1ValidatingAdmissionPolicySpecFluent> extends BaseFluent{ + public V1ValidatingAdmissionPolicySpecFluent() { + } + + public V1ValidatingAdmissionPolicySpecFluent(V1ValidatingAdmissionPolicySpec instance) { + this.copyInstance(instance); + } + private ArrayList auditAnnotations; + private String failurePolicy; + private ArrayList matchConditions; + private V1MatchResourcesBuilder matchConstraints; + private V1ParamKindBuilder paramKind; + private ArrayList validations; + private ArrayList variables; + + protected void copyInstance(V1ValidatingAdmissionPolicySpec instance) { + instance = (instance != null ? instance : new V1ValidatingAdmissionPolicySpec()); + if (instance != null) { + this.withAuditAnnotations(instance.getAuditAnnotations()); + this.withFailurePolicy(instance.getFailurePolicy()); + this.withMatchConditions(instance.getMatchConditions()); + this.withMatchConstraints(instance.getMatchConstraints()); + this.withParamKind(instance.getParamKind()); + this.withValidations(instance.getValidations()); + this.withVariables(instance.getVariables()); + } + } + + public A addToAuditAnnotations(int index,V1AuditAnnotation item) { + if (this.auditAnnotations == null) {this.auditAnnotations = new ArrayList();} + V1AuditAnnotationBuilder builder = new V1AuditAnnotationBuilder(item); + if (index < 0 || index >= auditAnnotations.size()) { + _visitables.get("auditAnnotations").add(builder); + auditAnnotations.add(builder); + } else { + _visitables.get("auditAnnotations").add(builder); + auditAnnotations.add(index, builder); + } + return (A)this; + } + + public A setToAuditAnnotations(int index,V1AuditAnnotation item) { + if (this.auditAnnotations == null) {this.auditAnnotations = new ArrayList();} + V1AuditAnnotationBuilder builder = new V1AuditAnnotationBuilder(item); + if (index < 0 || index >= auditAnnotations.size()) { + _visitables.get("auditAnnotations").add(builder); + auditAnnotations.add(builder); + } else { + _visitables.get("auditAnnotations").add(builder); + auditAnnotations.set(index, builder); + } + return (A)this; + } + + public A addToAuditAnnotations(io.kubernetes.client.openapi.models.V1AuditAnnotation... items) { + if (this.auditAnnotations == null) {this.auditAnnotations = new ArrayList();} + for (V1AuditAnnotation item : items) {V1AuditAnnotationBuilder builder = new V1AuditAnnotationBuilder(item);_visitables.get("auditAnnotations").add(builder);this.auditAnnotations.add(builder);} return (A)this; + } + + public A addAllToAuditAnnotations(Collection items) { + if (this.auditAnnotations == null) {this.auditAnnotations = new ArrayList();} + for (V1AuditAnnotation item : items) {V1AuditAnnotationBuilder builder = new V1AuditAnnotationBuilder(item);_visitables.get("auditAnnotations").add(builder);this.auditAnnotations.add(builder);} return (A)this; + } + + public A removeFromAuditAnnotations(io.kubernetes.client.openapi.models.V1AuditAnnotation... items) { + if (this.auditAnnotations == null) return (A)this; + for (V1AuditAnnotation item : items) {V1AuditAnnotationBuilder builder = new V1AuditAnnotationBuilder(item);_visitables.get("auditAnnotations").remove(builder); this.auditAnnotations.remove(builder);} return (A)this; + } + + public A removeAllFromAuditAnnotations(Collection items) { + if (this.auditAnnotations == null) return (A)this; + for (V1AuditAnnotation item : items) {V1AuditAnnotationBuilder builder = new V1AuditAnnotationBuilder(item);_visitables.get("auditAnnotations").remove(builder); this.auditAnnotations.remove(builder);} return (A)this; + } + + public A removeMatchingFromAuditAnnotations(Predicate predicate) { + if (auditAnnotations == null) return (A) this; + final Iterator each = auditAnnotations.iterator(); + final List visitables = _visitables.get("auditAnnotations"); + while (each.hasNext()) { + V1AuditAnnotationBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A)this; + } + + public List buildAuditAnnotations() { + return this.auditAnnotations != null ? build(auditAnnotations) : null; + } + + public V1AuditAnnotation buildAuditAnnotation(int index) { + return this.auditAnnotations.get(index).build(); + } + + public V1AuditAnnotation buildFirstAuditAnnotation() { + return this.auditAnnotations.get(0).build(); + } + + public V1AuditAnnotation buildLastAuditAnnotation() { + return this.auditAnnotations.get(auditAnnotations.size() - 1).build(); + } + + public V1AuditAnnotation buildMatchingAuditAnnotation(Predicate predicate) { + for (V1AuditAnnotationBuilder item : auditAnnotations) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; + } + + public boolean hasMatchingAuditAnnotation(Predicate predicate) { + for (V1AuditAnnotationBuilder item : auditAnnotations) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public A withAuditAnnotations(List auditAnnotations) { + if (this.auditAnnotations != null) { + this._visitables.get("auditAnnotations").clear(); + } + if (auditAnnotations != null) { + this.auditAnnotations = new ArrayList(); + for (V1AuditAnnotation item : auditAnnotations) { + this.addToAuditAnnotations(item); + } + } else { + this.auditAnnotations = null; + } + return (A) this; + } + + public A withAuditAnnotations(io.kubernetes.client.openapi.models.V1AuditAnnotation... auditAnnotations) { + if (this.auditAnnotations != null) { + this.auditAnnotations.clear(); + _visitables.remove("auditAnnotations"); + } + if (auditAnnotations != null) { + for (V1AuditAnnotation item : auditAnnotations) { + this.addToAuditAnnotations(item); + } + } + return (A) this; + } + + public boolean hasAuditAnnotations() { + return this.auditAnnotations != null && !this.auditAnnotations.isEmpty(); + } + + public AuditAnnotationsNested addNewAuditAnnotation() { + return new AuditAnnotationsNested(-1, null); + } + + public AuditAnnotationsNested addNewAuditAnnotationLike(V1AuditAnnotation item) { + return new AuditAnnotationsNested(-1, item); + } + + public AuditAnnotationsNested setNewAuditAnnotationLike(int index,V1AuditAnnotation item) { + return new AuditAnnotationsNested(index, item); + } + + public AuditAnnotationsNested editAuditAnnotation(int index) { + if (auditAnnotations.size() <= index) throw new RuntimeException("Can't edit auditAnnotations. Index exceeds size."); + return setNewAuditAnnotationLike(index, buildAuditAnnotation(index)); + } + + public AuditAnnotationsNested editFirstAuditAnnotation() { + if (auditAnnotations.size() == 0) throw new RuntimeException("Can't edit first auditAnnotations. The list is empty."); + return setNewAuditAnnotationLike(0, buildAuditAnnotation(0)); + } + + public AuditAnnotationsNested editLastAuditAnnotation() { + int index = auditAnnotations.size() - 1; + if (index < 0) throw new RuntimeException("Can't edit last auditAnnotations. The list is empty."); + return setNewAuditAnnotationLike(index, buildAuditAnnotation(index)); + } + + public AuditAnnotationsNested editMatchingAuditAnnotation(Predicate predicate) { + int index = -1; + for (int i=0;i();} + V1MatchConditionBuilder builder = new V1MatchConditionBuilder(item); + if (index < 0 || index >= matchConditions.size()) { + _visitables.get("matchConditions").add(builder); + matchConditions.add(builder); + } else { + _visitables.get("matchConditions").add(builder); + matchConditions.add(index, builder); + } + return (A)this; + } + + public A setToMatchConditions(int index,V1MatchCondition item) { + if (this.matchConditions == null) {this.matchConditions = new ArrayList();} + V1MatchConditionBuilder builder = new V1MatchConditionBuilder(item); + if (index < 0 || index >= matchConditions.size()) { + _visitables.get("matchConditions").add(builder); + matchConditions.add(builder); + } else { + _visitables.get("matchConditions").add(builder); + matchConditions.set(index, builder); + } + return (A)this; + } + + public A addToMatchConditions(io.kubernetes.client.openapi.models.V1MatchCondition... items) { + if (this.matchConditions == null) {this.matchConditions = new ArrayList();} + for (V1MatchCondition item : items) {V1MatchConditionBuilder builder = new V1MatchConditionBuilder(item);_visitables.get("matchConditions").add(builder);this.matchConditions.add(builder);} return (A)this; + } + + public A addAllToMatchConditions(Collection items) { + if (this.matchConditions == null) {this.matchConditions = new ArrayList();} + for (V1MatchCondition item : items) {V1MatchConditionBuilder builder = new V1MatchConditionBuilder(item);_visitables.get("matchConditions").add(builder);this.matchConditions.add(builder);} return (A)this; + } + + public A removeFromMatchConditions(io.kubernetes.client.openapi.models.V1MatchCondition... items) { + if (this.matchConditions == null) return (A)this; + for (V1MatchCondition item : items) {V1MatchConditionBuilder builder = new V1MatchConditionBuilder(item);_visitables.get("matchConditions").remove(builder); this.matchConditions.remove(builder);} return (A)this; + } + + public A removeAllFromMatchConditions(Collection items) { + if (this.matchConditions == null) return (A)this; + for (V1MatchCondition item : items) {V1MatchConditionBuilder builder = new V1MatchConditionBuilder(item);_visitables.get("matchConditions").remove(builder); this.matchConditions.remove(builder);} return (A)this; + } + + public A removeMatchingFromMatchConditions(Predicate predicate) { + if (matchConditions == null) return (A) this; + final Iterator each = matchConditions.iterator(); + final List visitables = _visitables.get("matchConditions"); + while (each.hasNext()) { + V1MatchConditionBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A)this; + } + + public List buildMatchConditions() { + return this.matchConditions != null ? build(matchConditions) : null; + } + + public V1MatchCondition buildMatchCondition(int index) { + return this.matchConditions.get(index).build(); + } + + public V1MatchCondition buildFirstMatchCondition() { + return this.matchConditions.get(0).build(); + } + + public V1MatchCondition buildLastMatchCondition() { + return this.matchConditions.get(matchConditions.size() - 1).build(); + } + + public V1MatchCondition buildMatchingMatchCondition(Predicate predicate) { + for (V1MatchConditionBuilder item : matchConditions) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; + } + + public boolean hasMatchingMatchCondition(Predicate predicate) { + for (V1MatchConditionBuilder item : matchConditions) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public A withMatchConditions(List matchConditions) { + if (this.matchConditions != null) { + this._visitables.get("matchConditions").clear(); + } + if (matchConditions != null) { + this.matchConditions = new ArrayList(); + for (V1MatchCondition item : matchConditions) { + this.addToMatchConditions(item); + } + } else { + this.matchConditions = null; + } + return (A) this; + } + + public A withMatchConditions(io.kubernetes.client.openapi.models.V1MatchCondition... matchConditions) { + if (this.matchConditions != null) { + this.matchConditions.clear(); + _visitables.remove("matchConditions"); + } + if (matchConditions != null) { + for (V1MatchCondition item : matchConditions) { + this.addToMatchConditions(item); + } + } + return (A) this; + } + + public boolean hasMatchConditions() { + return this.matchConditions != null && !this.matchConditions.isEmpty(); + } + + public MatchConditionsNested addNewMatchCondition() { + return new MatchConditionsNested(-1, null); + } + + public MatchConditionsNested addNewMatchConditionLike(V1MatchCondition item) { + return new MatchConditionsNested(-1, item); + } + + public MatchConditionsNested setNewMatchConditionLike(int index,V1MatchCondition item) { + return new MatchConditionsNested(index, item); + } + + public MatchConditionsNested editMatchCondition(int index) { + if (matchConditions.size() <= index) throw new RuntimeException("Can't edit matchConditions. Index exceeds size."); + return setNewMatchConditionLike(index, buildMatchCondition(index)); + } + + public MatchConditionsNested editFirstMatchCondition() { + if (matchConditions.size() == 0) throw new RuntimeException("Can't edit first matchConditions. The list is empty."); + return setNewMatchConditionLike(0, buildMatchCondition(0)); + } + + public MatchConditionsNested editLastMatchCondition() { + int index = matchConditions.size() - 1; + if (index < 0) throw new RuntimeException("Can't edit last matchConditions. The list is empty."); + return setNewMatchConditionLike(index, buildMatchCondition(index)); + } + + public MatchConditionsNested editMatchingMatchCondition(Predicate predicate) { + int index = -1; + for (int i=0;i withNewMatchConstraints() { + return new MatchConstraintsNested(null); + } + + public MatchConstraintsNested withNewMatchConstraintsLike(V1MatchResources item) { + return new MatchConstraintsNested(item); + } + + public MatchConstraintsNested editMatchConstraints() { + return withNewMatchConstraintsLike(java.util.Optional.ofNullable(buildMatchConstraints()).orElse(null)); + } + + public MatchConstraintsNested editOrNewMatchConstraints() { + return withNewMatchConstraintsLike(java.util.Optional.ofNullable(buildMatchConstraints()).orElse(new V1MatchResourcesBuilder().build())); + } + + public MatchConstraintsNested editOrNewMatchConstraintsLike(V1MatchResources item) { + return withNewMatchConstraintsLike(java.util.Optional.ofNullable(buildMatchConstraints()).orElse(item)); + } + + public V1ParamKind buildParamKind() { + return this.paramKind != null ? this.paramKind.build() : null; + } + + public A withParamKind(V1ParamKind paramKind) { + this._visitables.remove("paramKind"); + if (paramKind != null) { + this.paramKind = new V1ParamKindBuilder(paramKind); + this._visitables.get("paramKind").add(this.paramKind); + } else { + this.paramKind = null; + this._visitables.get("paramKind").remove(this.paramKind); + } + return (A) this; + } + + public boolean hasParamKind() { + return this.paramKind != null; + } + + public ParamKindNested withNewParamKind() { + return new ParamKindNested(null); + } + + public ParamKindNested withNewParamKindLike(V1ParamKind item) { + return new ParamKindNested(item); + } + + public ParamKindNested editParamKind() { + return withNewParamKindLike(java.util.Optional.ofNullable(buildParamKind()).orElse(null)); + } + + public ParamKindNested editOrNewParamKind() { + return withNewParamKindLike(java.util.Optional.ofNullable(buildParamKind()).orElse(new V1ParamKindBuilder().build())); + } + + public ParamKindNested editOrNewParamKindLike(V1ParamKind item) { + return withNewParamKindLike(java.util.Optional.ofNullable(buildParamKind()).orElse(item)); + } + + public A addToValidations(int index,V1Validation item) { + if (this.validations == null) {this.validations = new ArrayList();} + V1ValidationBuilder builder = new V1ValidationBuilder(item); + if (index < 0 || index >= validations.size()) { + _visitables.get("validations").add(builder); + validations.add(builder); + } else { + _visitables.get("validations").add(builder); + validations.add(index, builder); + } + return (A)this; + } + + public A setToValidations(int index,V1Validation item) { + if (this.validations == null) {this.validations = new ArrayList();} + V1ValidationBuilder builder = new V1ValidationBuilder(item); + if (index < 0 || index >= validations.size()) { + _visitables.get("validations").add(builder); + validations.add(builder); + } else { + _visitables.get("validations").add(builder); + validations.set(index, builder); + } + return (A)this; + } + + public A addToValidations(io.kubernetes.client.openapi.models.V1Validation... items) { + if (this.validations == null) {this.validations = new ArrayList();} + for (V1Validation item : items) {V1ValidationBuilder builder = new V1ValidationBuilder(item);_visitables.get("validations").add(builder);this.validations.add(builder);} return (A)this; + } + + public A addAllToValidations(Collection items) { + if (this.validations == null) {this.validations = new ArrayList();} + for (V1Validation item : items) {V1ValidationBuilder builder = new V1ValidationBuilder(item);_visitables.get("validations").add(builder);this.validations.add(builder);} return (A)this; + } + + public A removeFromValidations(io.kubernetes.client.openapi.models.V1Validation... items) { + if (this.validations == null) return (A)this; + for (V1Validation item : items) {V1ValidationBuilder builder = new V1ValidationBuilder(item);_visitables.get("validations").remove(builder); this.validations.remove(builder);} return (A)this; + } + + public A removeAllFromValidations(Collection items) { + if (this.validations == null) return (A)this; + for (V1Validation item : items) {V1ValidationBuilder builder = new V1ValidationBuilder(item);_visitables.get("validations").remove(builder); this.validations.remove(builder);} return (A)this; + } + + public A removeMatchingFromValidations(Predicate predicate) { + if (validations == null) return (A) this; + final Iterator each = validations.iterator(); + final List visitables = _visitables.get("validations"); + while (each.hasNext()) { + V1ValidationBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A)this; + } + + public List buildValidations() { + return this.validations != null ? build(validations) : null; + } + + public V1Validation buildValidation(int index) { + return this.validations.get(index).build(); + } + + public V1Validation buildFirstValidation() { + return this.validations.get(0).build(); + } + + public V1Validation buildLastValidation() { + return this.validations.get(validations.size() - 1).build(); + } + + public V1Validation buildMatchingValidation(Predicate predicate) { + for (V1ValidationBuilder item : validations) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; + } + + public boolean hasMatchingValidation(Predicate predicate) { + for (V1ValidationBuilder item : validations) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public A withValidations(List validations) { + if (this.validations != null) { + this._visitables.get("validations").clear(); + } + if (validations != null) { + this.validations = new ArrayList(); + for (V1Validation item : validations) { + this.addToValidations(item); + } + } else { + this.validations = null; + } + return (A) this; + } + + public A withValidations(io.kubernetes.client.openapi.models.V1Validation... validations) { + if (this.validations != null) { + this.validations.clear(); + _visitables.remove("validations"); + } + if (validations != null) { + for (V1Validation item : validations) { + this.addToValidations(item); + } + } + return (A) this; + } + + public boolean hasValidations() { + return this.validations != null && !this.validations.isEmpty(); + } + + public ValidationsNested addNewValidation() { + return new ValidationsNested(-1, null); + } + + public ValidationsNested addNewValidationLike(V1Validation item) { + return new ValidationsNested(-1, item); + } + + public ValidationsNested setNewValidationLike(int index,V1Validation item) { + return new ValidationsNested(index, item); + } + + public ValidationsNested editValidation(int index) { + if (validations.size() <= index) throw new RuntimeException("Can't edit validations. Index exceeds size."); + return setNewValidationLike(index, buildValidation(index)); + } + + public ValidationsNested editFirstValidation() { + if (validations.size() == 0) throw new RuntimeException("Can't edit first validations. The list is empty."); + return setNewValidationLike(0, buildValidation(0)); + } + + public ValidationsNested editLastValidation() { + int index = validations.size() - 1; + if (index < 0) throw new RuntimeException("Can't edit last validations. The list is empty."); + return setNewValidationLike(index, buildValidation(index)); + } + + public ValidationsNested editMatchingValidation(Predicate predicate) { + int index = -1; + for (int i=0;i();} + V1VariableBuilder builder = new V1VariableBuilder(item); + if (index < 0 || index >= variables.size()) { + _visitables.get("variables").add(builder); + variables.add(builder); + } else { + _visitables.get("variables").add(builder); + variables.add(index, builder); + } + return (A)this; + } + + public A setToVariables(int index,V1Variable item) { + if (this.variables == null) {this.variables = new ArrayList();} + V1VariableBuilder builder = new V1VariableBuilder(item); + if (index < 0 || index >= variables.size()) { + _visitables.get("variables").add(builder); + variables.add(builder); + } else { + _visitables.get("variables").add(builder); + variables.set(index, builder); + } + return (A)this; + } + + public A addToVariables(io.kubernetes.client.openapi.models.V1Variable... items) { + if (this.variables == null) {this.variables = new ArrayList();} + for (V1Variable item : items) {V1VariableBuilder builder = new V1VariableBuilder(item);_visitables.get("variables").add(builder);this.variables.add(builder);} return (A)this; + } + + public A addAllToVariables(Collection items) { + if (this.variables == null) {this.variables = new ArrayList();} + for (V1Variable item : items) {V1VariableBuilder builder = new V1VariableBuilder(item);_visitables.get("variables").add(builder);this.variables.add(builder);} return (A)this; + } + + public A removeFromVariables(io.kubernetes.client.openapi.models.V1Variable... items) { + if (this.variables == null) return (A)this; + for (V1Variable item : items) {V1VariableBuilder builder = new V1VariableBuilder(item);_visitables.get("variables").remove(builder); this.variables.remove(builder);} return (A)this; + } + + public A removeAllFromVariables(Collection items) { + if (this.variables == null) return (A)this; + for (V1Variable item : items) {V1VariableBuilder builder = new V1VariableBuilder(item);_visitables.get("variables").remove(builder); this.variables.remove(builder);} return (A)this; + } + + public A removeMatchingFromVariables(Predicate predicate) { + if (variables == null) return (A) this; + final Iterator each = variables.iterator(); + final List visitables = _visitables.get("variables"); + while (each.hasNext()) { + V1VariableBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A)this; + } + + public List buildVariables() { + return this.variables != null ? build(variables) : null; + } + + public V1Variable buildVariable(int index) { + return this.variables.get(index).build(); + } + + public V1Variable buildFirstVariable() { + return this.variables.get(0).build(); + } + + public V1Variable buildLastVariable() { + return this.variables.get(variables.size() - 1).build(); + } + + public V1Variable buildMatchingVariable(Predicate predicate) { + for (V1VariableBuilder item : variables) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; + } + + public boolean hasMatchingVariable(Predicate predicate) { + for (V1VariableBuilder item : variables) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public A withVariables(List variables) { + if (this.variables != null) { + this._visitables.get("variables").clear(); + } + if (variables != null) { + this.variables = new ArrayList(); + for (V1Variable item : variables) { + this.addToVariables(item); + } + } else { + this.variables = null; + } + return (A) this; + } + + public A withVariables(io.kubernetes.client.openapi.models.V1Variable... variables) { + if (this.variables != null) { + this.variables.clear(); + _visitables.remove("variables"); + } + if (variables != null) { + for (V1Variable item : variables) { + this.addToVariables(item); + } + } + return (A) this; + } + + public boolean hasVariables() { + return this.variables != null && !this.variables.isEmpty(); + } + + public VariablesNested addNewVariable() { + return new VariablesNested(-1, null); + } + + public VariablesNested addNewVariableLike(V1Variable item) { + return new VariablesNested(-1, item); + } + + public VariablesNested setNewVariableLike(int index,V1Variable item) { + return new VariablesNested(index, item); + } + + public VariablesNested editVariable(int index) { + if (variables.size() <= index) throw new RuntimeException("Can't edit variables. Index exceeds size."); + return setNewVariableLike(index, buildVariable(index)); + } + + public VariablesNested editFirstVariable() { + if (variables.size() == 0) throw new RuntimeException("Can't edit first variables. The list is empty."); + return setNewVariableLike(0, buildVariable(0)); + } + + public VariablesNested editLastVariable() { + int index = variables.size() - 1; + if (index < 0) throw new RuntimeException("Can't edit last variables. The list is empty."); + return setNewVariableLike(index, buildVariable(index)); + } + + public VariablesNested editMatchingVariable(Predicate predicate) { + int index = -1; + for (int i=0;i extends V1AuditAnnotationFluent> implements Nested{ + AuditAnnotationsNested(int index,V1AuditAnnotation item) { + this.index = index; + this.builder = new V1AuditAnnotationBuilder(this, item); + } + V1AuditAnnotationBuilder builder; + int index; + + public N and() { + return (N) V1ValidatingAdmissionPolicySpecFluent.this.setToAuditAnnotations(index,builder.build()); + } + + public N endAuditAnnotation() { + return and(); + } + + + } + public class MatchConditionsNested extends V1MatchConditionFluent> implements Nested{ + MatchConditionsNested(int index,V1MatchCondition item) { + this.index = index; + this.builder = new V1MatchConditionBuilder(this, item); + } + V1MatchConditionBuilder builder; + int index; + + public N and() { + return (N) V1ValidatingAdmissionPolicySpecFluent.this.setToMatchConditions(index,builder.build()); + } + + public N endMatchCondition() { + return and(); + } + + + } + public class MatchConstraintsNested extends V1MatchResourcesFluent> implements Nested{ + MatchConstraintsNested(V1MatchResources item) { + this.builder = new V1MatchResourcesBuilder(this, item); + } + V1MatchResourcesBuilder builder; + + public N and() { + return (N) V1ValidatingAdmissionPolicySpecFluent.this.withMatchConstraints(builder.build()); + } + + public N endMatchConstraints() { + return and(); + } + + + } + public class ParamKindNested extends V1ParamKindFluent> implements Nested{ + ParamKindNested(V1ParamKind item) { + this.builder = new V1ParamKindBuilder(this, item); + } + V1ParamKindBuilder builder; + + public N and() { + return (N) V1ValidatingAdmissionPolicySpecFluent.this.withParamKind(builder.build()); + } + + public N endParamKind() { + return and(); + } + + + } + public class ValidationsNested extends V1ValidationFluent> implements Nested{ + ValidationsNested(int index,V1Validation item) { + this.index = index; + this.builder = new V1ValidationBuilder(this, item); + } + V1ValidationBuilder builder; + int index; + + public N and() { + return (N) V1ValidatingAdmissionPolicySpecFluent.this.setToValidations(index,builder.build()); + } + + public N endValidation() { + return and(); + } + + + } + public class VariablesNested extends V1VariableFluent> implements Nested{ + VariablesNested(int index,V1Variable item) { + this.index = index; + this.builder = new V1VariableBuilder(this, item); + } + V1VariableBuilder builder; + int index; + + public N and() { + return (N) V1ValidatingAdmissionPolicySpecFluent.this.setToVariables(index,builder.build()); + } + + public N endVariable() { + return and(); + } + + + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingAdmissionPolicyStatusBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingAdmissionPolicyStatusBuilder.java new file mode 100644 index 0000000000..82fc841b78 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingAdmissionPolicyStatusBuilder.java @@ -0,0 +1,33 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +public class V1ValidatingAdmissionPolicyStatusBuilder extends V1ValidatingAdmissionPolicyStatusFluent implements VisitableBuilder{ + public V1ValidatingAdmissionPolicyStatusBuilder() { + this(new V1ValidatingAdmissionPolicyStatus()); + } + + public V1ValidatingAdmissionPolicyStatusBuilder(V1ValidatingAdmissionPolicyStatusFluent fluent) { + this(fluent, new V1ValidatingAdmissionPolicyStatus()); + } + + public V1ValidatingAdmissionPolicyStatusBuilder(V1ValidatingAdmissionPolicyStatusFluent fluent,V1ValidatingAdmissionPolicyStatus instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1ValidatingAdmissionPolicyStatusBuilder(V1ValidatingAdmissionPolicyStatus instance) { + this.fluent = this; + this.copyInstance(instance); + } + V1ValidatingAdmissionPolicyStatusFluent fluent; + + public V1ValidatingAdmissionPolicyStatus build() { + V1ValidatingAdmissionPolicyStatus buildable = new V1ValidatingAdmissionPolicyStatus(); + buildable.setConditions(fluent.buildConditions()); + buildable.setObservedGeneration(fluent.getObservedGeneration()); + buildable.setTypeChecking(fluent.buildTypeChecking()); + return buildable; + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingAdmissionPolicyStatusFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingAdmissionPolicyStatusFluent.java new file mode 100644 index 0000000000..8e5ab00294 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingAdmissionPolicyStatusFluent.java @@ -0,0 +1,315 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.Nested; +import java.util.ArrayList; +import java.lang.String; +import java.util.function.Predicate; +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Long; +import java.util.Iterator; +import java.util.Collection; +import java.lang.Object; +import java.util.List; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1ValidatingAdmissionPolicyStatusFluent> extends BaseFluent{ + public V1ValidatingAdmissionPolicyStatusFluent() { + } + + public V1ValidatingAdmissionPolicyStatusFluent(V1ValidatingAdmissionPolicyStatus instance) { + this.copyInstance(instance); + } + private ArrayList conditions; + private Long observedGeneration; + private V1TypeCheckingBuilder typeChecking; + + protected void copyInstance(V1ValidatingAdmissionPolicyStatus instance) { + instance = (instance != null ? instance : new V1ValidatingAdmissionPolicyStatus()); + if (instance != null) { + this.withConditions(instance.getConditions()); + this.withObservedGeneration(instance.getObservedGeneration()); + this.withTypeChecking(instance.getTypeChecking()); + } + } + + public A addToConditions(int index,V1Condition item) { + if (this.conditions == null) {this.conditions = new ArrayList();} + V1ConditionBuilder builder = new V1ConditionBuilder(item); + if (index < 0 || index >= conditions.size()) { + _visitables.get("conditions").add(builder); + conditions.add(builder); + } else { + _visitables.get("conditions").add(builder); + conditions.add(index, builder); + } + return (A)this; + } + + public A setToConditions(int index,V1Condition item) { + if (this.conditions == null) {this.conditions = new ArrayList();} + V1ConditionBuilder builder = new V1ConditionBuilder(item); + if (index < 0 || index >= conditions.size()) { + _visitables.get("conditions").add(builder); + conditions.add(builder); + } else { + _visitables.get("conditions").add(builder); + conditions.set(index, builder); + } + return (A)this; + } + + public A addToConditions(io.kubernetes.client.openapi.models.V1Condition... items) { + if (this.conditions == null) {this.conditions = new ArrayList();} + for (V1Condition item : items) {V1ConditionBuilder builder = new V1ConditionBuilder(item);_visitables.get("conditions").add(builder);this.conditions.add(builder);} return (A)this; + } + + public A addAllToConditions(Collection items) { + if (this.conditions == null) {this.conditions = new ArrayList();} + for (V1Condition item : items) {V1ConditionBuilder builder = new V1ConditionBuilder(item);_visitables.get("conditions").add(builder);this.conditions.add(builder);} return (A)this; + } + + public A removeFromConditions(io.kubernetes.client.openapi.models.V1Condition... items) { + if (this.conditions == null) return (A)this; + for (V1Condition item : items) {V1ConditionBuilder builder = new V1ConditionBuilder(item);_visitables.get("conditions").remove(builder); this.conditions.remove(builder);} return (A)this; + } + + public A removeAllFromConditions(Collection items) { + if (this.conditions == null) return (A)this; + for (V1Condition item : items) {V1ConditionBuilder builder = new V1ConditionBuilder(item);_visitables.get("conditions").remove(builder); this.conditions.remove(builder);} return (A)this; + } + + public A removeMatchingFromConditions(Predicate predicate) { + if (conditions == null) return (A) this; + final Iterator each = conditions.iterator(); + final List visitables = _visitables.get("conditions"); + while (each.hasNext()) { + V1ConditionBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A)this; + } + + public List buildConditions() { + return this.conditions != null ? build(conditions) : null; + } + + public V1Condition buildCondition(int index) { + return this.conditions.get(index).build(); + } + + public V1Condition buildFirstCondition() { + return this.conditions.get(0).build(); + } + + public V1Condition buildLastCondition() { + return this.conditions.get(conditions.size() - 1).build(); + } + + public V1Condition buildMatchingCondition(Predicate predicate) { + for (V1ConditionBuilder item : conditions) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; + } + + public boolean hasMatchingCondition(Predicate predicate) { + for (V1ConditionBuilder item : conditions) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public A withConditions(List conditions) { + if (this.conditions != null) { + this._visitables.get("conditions").clear(); + } + if (conditions != null) { + this.conditions = new ArrayList(); + for (V1Condition item : conditions) { + this.addToConditions(item); + } + } else { + this.conditions = null; + } + return (A) this; + } + + public A withConditions(io.kubernetes.client.openapi.models.V1Condition... conditions) { + if (this.conditions != null) { + this.conditions.clear(); + _visitables.remove("conditions"); + } + if (conditions != null) { + for (V1Condition item : conditions) { + this.addToConditions(item); + } + } + return (A) this; + } + + public boolean hasConditions() { + return this.conditions != null && !this.conditions.isEmpty(); + } + + public ConditionsNested addNewCondition() { + return new ConditionsNested(-1, null); + } + + public ConditionsNested addNewConditionLike(V1Condition item) { + return new ConditionsNested(-1, item); + } + + public ConditionsNested setNewConditionLike(int index,V1Condition item) { + return new ConditionsNested(index, item); + } + + public ConditionsNested editCondition(int index) { + if (conditions.size() <= index) throw new RuntimeException("Can't edit conditions. Index exceeds size."); + return setNewConditionLike(index, buildCondition(index)); + } + + public ConditionsNested editFirstCondition() { + if (conditions.size() == 0) throw new RuntimeException("Can't edit first conditions. The list is empty."); + return setNewConditionLike(0, buildCondition(0)); + } + + public ConditionsNested editLastCondition() { + int index = conditions.size() - 1; + if (index < 0) throw new RuntimeException("Can't edit last conditions. The list is empty."); + return setNewConditionLike(index, buildCondition(index)); + } + + public ConditionsNested editMatchingCondition(Predicate predicate) { + int index = -1; + for (int i=0;i withNewTypeChecking() { + return new TypeCheckingNested(null); + } + + public TypeCheckingNested withNewTypeCheckingLike(V1TypeChecking item) { + return new TypeCheckingNested(item); + } + + public TypeCheckingNested editTypeChecking() { + return withNewTypeCheckingLike(java.util.Optional.ofNullable(buildTypeChecking()).orElse(null)); + } + + public TypeCheckingNested editOrNewTypeChecking() { + return withNewTypeCheckingLike(java.util.Optional.ofNullable(buildTypeChecking()).orElse(new V1TypeCheckingBuilder().build())); + } + + public TypeCheckingNested editOrNewTypeCheckingLike(V1TypeChecking item) { + return withNewTypeCheckingLike(java.util.Optional.ofNullable(buildTypeChecking()).orElse(item)); + } + + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + if (!super.equals(o)) return false; + V1ValidatingAdmissionPolicyStatusFluent that = (V1ValidatingAdmissionPolicyStatusFluent) o; + if (!java.util.Objects.equals(conditions, that.conditions)) return false; + if (!java.util.Objects.equals(observedGeneration, that.observedGeneration)) return false; + if (!java.util.Objects.equals(typeChecking, that.typeChecking)) return false; + return true; + } + + public int hashCode() { + return java.util.Objects.hash(conditions, observedGeneration, typeChecking, super.hashCode()); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (conditions != null && !conditions.isEmpty()) { sb.append("conditions:"); sb.append(conditions + ","); } + if (observedGeneration != null) { sb.append("observedGeneration:"); sb.append(observedGeneration + ","); } + if (typeChecking != null) { sb.append("typeChecking:"); sb.append(typeChecking); } + sb.append("}"); + return sb.toString(); + } + public class ConditionsNested extends V1ConditionFluent> implements Nested{ + ConditionsNested(int index,V1Condition item) { + this.index = index; + this.builder = new V1ConditionBuilder(this, item); + } + V1ConditionBuilder builder; + int index; + + public N and() { + return (N) V1ValidatingAdmissionPolicyStatusFluent.this.setToConditions(index,builder.build()); + } + + public N endCondition() { + return and(); + } + + + } + public class TypeCheckingNested extends V1TypeCheckingFluent> implements Nested{ + TypeCheckingNested(V1TypeChecking item) { + this.builder = new V1TypeCheckingBuilder(this, item); + } + V1TypeCheckingBuilder builder; + + public N and() { + return (N) V1ValidatingAdmissionPolicyStatusFluent.this.withTypeChecking(builder.build()); + } + + public N endTypeChecking() { + return and(); + } + + + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingWebhookConfigurationFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingWebhookConfigurationFluent.java index 794c8bcd02..0b85ef3363 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingWebhookConfigurationFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingWebhookConfigurationFluent.java @@ -107,14 +107,26 @@ public MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { public A addToWebhooks(int index,V1ValidatingWebhook item) { if (this.webhooks == null) {this.webhooks = new ArrayList();} V1ValidatingWebhookBuilder builder = new V1ValidatingWebhookBuilder(item); - if (index < 0 || index >= webhooks.size()) { _visitables.get("webhooks").add(builder); webhooks.add(builder); } else { _visitables.get("webhooks").add(index, builder); webhooks.add(index, builder);} + if (index < 0 || index >= webhooks.size()) { + _visitables.get("webhooks").add(builder); + webhooks.add(builder); + } else { + _visitables.get("webhooks").add(builder); + webhooks.add(index, builder); + } return (A)this; } public A setToWebhooks(int index,V1ValidatingWebhook item) { if (this.webhooks == null) {this.webhooks = new ArrayList();} V1ValidatingWebhookBuilder builder = new V1ValidatingWebhookBuilder(item); - if (index < 0 || index >= webhooks.size()) { _visitables.get("webhooks").add(builder); webhooks.add(builder); } else { _visitables.get("webhooks").set(index, builder); webhooks.set(index, builder);} + if (index < 0 || index >= webhooks.size()) { + _visitables.get("webhooks").add(builder); + webhooks.add(builder); + } else { + _visitables.get("webhooks").add(builder); + webhooks.set(index, builder); + } return (A)this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingWebhookConfigurationListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingWebhookConfigurationListFluent.java index 8314396077..5ade2a6a82 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingWebhookConfigurationListFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingWebhookConfigurationListFluent.java @@ -54,14 +54,26 @@ public boolean hasApiVersion() { public A addToItems(int index,V1ValidatingWebhookConfiguration item) { if (this.items == null) {this.items = new ArrayList();} V1ValidatingWebhookConfigurationBuilder builder = new V1ValidatingWebhookConfigurationBuilder(item); - if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); items.add(builder); } else { _visitables.get("items").add(index, builder); items.add(index, builder);} + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.add(index, builder); + } return (A)this; } public A setToItems(int index,V1ValidatingWebhookConfiguration item) { if (this.items == null) {this.items = new ArrayList();} V1ValidatingWebhookConfigurationBuilder builder = new V1ValidatingWebhookConfigurationBuilder(item); - if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); items.add(builder); } else { _visitables.get("items").set(index, builder); items.set(index, builder);} + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.set(index, builder); + } return (A)this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingWebhookFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingWebhookFluent.java index 5c8e0d07a8..460a63f90d 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingWebhookFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingWebhookFluent.java @@ -203,14 +203,26 @@ public boolean hasFailurePolicy() { public A addToMatchConditions(int index,V1MatchCondition item) { if (this.matchConditions == null) {this.matchConditions = new ArrayList();} V1MatchConditionBuilder builder = new V1MatchConditionBuilder(item); - if (index < 0 || index >= matchConditions.size()) { _visitables.get("matchConditions").add(builder); matchConditions.add(builder); } else { _visitables.get("matchConditions").add(index, builder); matchConditions.add(index, builder);} + if (index < 0 || index >= matchConditions.size()) { + _visitables.get("matchConditions").add(builder); + matchConditions.add(builder); + } else { + _visitables.get("matchConditions").add(builder); + matchConditions.add(index, builder); + } return (A)this; } public A setToMatchConditions(int index,V1MatchCondition item) { if (this.matchConditions == null) {this.matchConditions = new ArrayList();} V1MatchConditionBuilder builder = new V1MatchConditionBuilder(item); - if (index < 0 || index >= matchConditions.size()) { _visitables.get("matchConditions").add(builder); matchConditions.add(builder); } else { _visitables.get("matchConditions").set(index, builder); matchConditions.set(index, builder);} + if (index < 0 || index >= matchConditions.size()) { + _visitables.get("matchConditions").add(builder); + matchConditions.add(builder); + } else { + _visitables.get("matchConditions").add(builder); + matchConditions.set(index, builder); + } return (A)this; } @@ -460,14 +472,26 @@ public ObjectSelectorNested editOrNewObjectSelectorLike(V1LabelSelector item) public A addToRules(int index,V1RuleWithOperations item) { if (this.rules == null) {this.rules = new ArrayList();} V1RuleWithOperationsBuilder builder = new V1RuleWithOperationsBuilder(item); - if (index < 0 || index >= rules.size()) { _visitables.get("rules").add(builder); rules.add(builder); } else { _visitables.get("rules").add(index, builder); rules.add(index, builder);} + if (index < 0 || index >= rules.size()) { + _visitables.get("rules").add(builder); + rules.add(builder); + } else { + _visitables.get("rules").add(builder); + rules.add(index, builder); + } return (A)this; } public A setToRules(int index,V1RuleWithOperations item) { if (this.rules == null) {this.rules = new ArrayList();} V1RuleWithOperationsBuilder builder = new V1RuleWithOperationsBuilder(item); - if (index < 0 || index >= rules.size()) { _visitables.get("rules").add(builder); rules.add(builder); } else { _visitables.get("rules").set(index, builder); rules.set(index, builder);} + if (index < 0 || index >= rules.size()) { + _visitables.get("rules").add(builder); + rules.add(builder); + } else { + _visitables.get("rules").add(builder); + rules.set(index, builder); + } return (A)this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidationBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidationBuilder.java new file mode 100644 index 0000000000..292d1921b0 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidationBuilder.java @@ -0,0 +1,34 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +public class V1ValidationBuilder extends V1ValidationFluent implements VisitableBuilder{ + public V1ValidationBuilder() { + this(new V1Validation()); + } + + public V1ValidationBuilder(V1ValidationFluent fluent) { + this(fluent, new V1Validation()); + } + + public V1ValidationBuilder(V1ValidationFluent fluent,V1Validation instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1ValidationBuilder(V1Validation instance) { + this.fluent = this; + this.copyInstance(instance); + } + V1ValidationFluent fluent; + + public V1Validation build() { + V1Validation buildable = new V1Validation(); + buildable.setExpression(fluent.getExpression()); + buildable.setMessage(fluent.getMessage()); + buildable.setMessageExpression(fluent.getMessageExpression()); + buildable.setReason(fluent.getReason()); + return buildable; + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidationFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidationFluent.java new file mode 100644 index 0000000000..90b0032efe --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidationFluent.java @@ -0,0 +1,114 @@ +package io.kubernetes.client.openapi.models; + +import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Object; +import java.lang.String; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1ValidationFluent> extends BaseFluent{ + public V1ValidationFluent() { + } + + public V1ValidationFluent(V1Validation instance) { + this.copyInstance(instance); + } + private String expression; + private String message; + private String messageExpression; + private String reason; + + protected void copyInstance(V1Validation instance) { + instance = (instance != null ? instance : new V1Validation()); + if (instance != null) { + this.withExpression(instance.getExpression()); + this.withMessage(instance.getMessage()); + this.withMessageExpression(instance.getMessageExpression()); + this.withReason(instance.getReason()); + } + } + + public String getExpression() { + return this.expression; + } + + public A withExpression(String expression) { + this.expression = expression; + return (A) this; + } + + public boolean hasExpression() { + return this.expression != null; + } + + public String getMessage() { + return this.message; + } + + public A withMessage(String message) { + this.message = message; + return (A) this; + } + + public boolean hasMessage() { + return this.message != null; + } + + public String getMessageExpression() { + return this.messageExpression; + } + + public A withMessageExpression(String messageExpression) { + this.messageExpression = messageExpression; + return (A) this; + } + + public boolean hasMessageExpression() { + return this.messageExpression != null; + } + + public String getReason() { + return this.reason; + } + + public A withReason(String reason) { + this.reason = reason; + return (A) this; + } + + public boolean hasReason() { + return this.reason != null; + } + + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + if (!super.equals(o)) return false; + V1ValidationFluent that = (V1ValidationFluent) o; + if (!java.util.Objects.equals(expression, that.expression)) return false; + if (!java.util.Objects.equals(message, that.message)) return false; + if (!java.util.Objects.equals(messageExpression, that.messageExpression)) return false; + if (!java.util.Objects.equals(reason, that.reason)) return false; + return true; + } + + public int hashCode() { + return java.util.Objects.hash(expression, message, messageExpression, reason, super.hashCode()); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (expression != null) { sb.append("expression:"); sb.append(expression + ","); } + if (message != null) { sb.append("message:"); sb.append(message + ","); } + if (messageExpression != null) { sb.append("messageExpression:"); sb.append(messageExpression + ","); } + if (reason != null) { sb.append("reason:"); sb.append(reason); } + sb.append("}"); + return sb.toString(); + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidationRuleBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidationRuleBuilder.java index 63e8e87715..3a129f74d5 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidationRuleBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidationRuleBuilder.java @@ -26,6 +26,7 @@ public V1ValidationRule build() { buildable.setFieldPath(fluent.getFieldPath()); buildable.setMessage(fluent.getMessage()); buildable.setMessageExpression(fluent.getMessageExpression()); + buildable.setOptionalOldSelf(fluent.getOptionalOldSelf()); buildable.setReason(fluent.getReason()); buildable.setRule(fluent.getRule()); return buildable; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidationRuleFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidationRuleFluent.java index f06ba5bbc5..ecb3632675 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidationRuleFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidationRuleFluent.java @@ -4,6 +4,7 @@ import io.kubernetes.client.fluent.BaseFluent; import java.lang.Object; import java.lang.String; +import java.lang.Boolean; /** * Generated @@ -19,6 +20,7 @@ public V1ValidationRuleFluent(V1ValidationRule instance) { private String fieldPath; private String message; private String messageExpression; + private Boolean optionalOldSelf; private String reason; private String rule; @@ -28,6 +30,7 @@ protected void copyInstance(V1ValidationRule instance) { this.withFieldPath(instance.getFieldPath()); this.withMessage(instance.getMessage()); this.withMessageExpression(instance.getMessageExpression()); + this.withOptionalOldSelf(instance.getOptionalOldSelf()); this.withReason(instance.getReason()); this.withRule(instance.getRule()); } @@ -72,6 +75,19 @@ public boolean hasMessageExpression() { return this.messageExpression != null; } + public Boolean getOptionalOldSelf() { + return this.optionalOldSelf; + } + + public A withOptionalOldSelf(Boolean optionalOldSelf) { + this.optionalOldSelf = optionalOldSelf; + return (A) this; + } + + public boolean hasOptionalOldSelf() { + return this.optionalOldSelf != null; + } + public String getReason() { return this.reason; } @@ -106,13 +122,14 @@ public boolean equals(Object o) { if (!java.util.Objects.equals(fieldPath, that.fieldPath)) return false; if (!java.util.Objects.equals(message, that.message)) return false; if (!java.util.Objects.equals(messageExpression, that.messageExpression)) return false; + if (!java.util.Objects.equals(optionalOldSelf, that.optionalOldSelf)) return false; if (!java.util.Objects.equals(reason, that.reason)) return false; if (!java.util.Objects.equals(rule, that.rule)) return false; return true; } public int hashCode() { - return java.util.Objects.hash(fieldPath, message, messageExpression, reason, rule, super.hashCode()); + return java.util.Objects.hash(fieldPath, message, messageExpression, optionalOldSelf, reason, rule, super.hashCode()); } public String toString() { @@ -121,11 +138,16 @@ public String toString() { if (fieldPath != null) { sb.append("fieldPath:"); sb.append(fieldPath + ","); } if (message != null) { sb.append("message:"); sb.append(message + ","); } if (messageExpression != null) { sb.append("messageExpression:"); sb.append(messageExpression + ","); } + if (optionalOldSelf != null) { sb.append("optionalOldSelf:"); sb.append(optionalOldSelf + ","); } if (reason != null) { sb.append("reason:"); sb.append(reason + ","); } if (rule != null) { sb.append("rule:"); sb.append(rule); } sb.append("}"); return sb.toString(); } + public A withOptionalOldSelf() { + return withOptionalOldSelf(true); + } + } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VariableBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VariableBuilder.java new file mode 100644 index 0000000000..694bdf8756 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VariableBuilder.java @@ -0,0 +1,32 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +public class V1VariableBuilder extends V1VariableFluent implements VisitableBuilder{ + public V1VariableBuilder() { + this(new V1Variable()); + } + + public V1VariableBuilder(V1VariableFluent fluent) { + this(fluent, new V1Variable()); + } + + public V1VariableBuilder(V1VariableFluent fluent,V1Variable instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1VariableBuilder(V1Variable instance) { + this.fluent = this; + this.copyInstance(instance); + } + V1VariableFluent fluent; + + public V1Variable build() { + V1Variable buildable = new V1Variable(); + buildable.setExpression(fluent.getExpression()); + buildable.setName(fluent.getName()); + return buildable; + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VariableFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VariableFluent.java new file mode 100644 index 0000000000..894efd4dbc --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VariableFluent.java @@ -0,0 +1,80 @@ +package io.kubernetes.client.openapi.models; + +import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Object; +import java.lang.String; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1VariableFluent> extends BaseFluent{ + public V1VariableFluent() { + } + + public V1VariableFluent(V1Variable instance) { + this.copyInstance(instance); + } + private String expression; + private String name; + + protected void copyInstance(V1Variable instance) { + instance = (instance != null ? instance : new V1Variable()); + if (instance != null) { + this.withExpression(instance.getExpression()); + this.withName(instance.getName()); + } + } + + public String getExpression() { + return this.expression; + } + + public A withExpression(String expression) { + this.expression = expression; + return (A) this; + } + + public boolean hasExpression() { + return this.expression != null; + } + + public String getName() { + return this.name; + } + + public A withName(String name) { + this.name = name; + return (A) this; + } + + public boolean hasName() { + return this.name != null; + } + + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + if (!super.equals(o)) return false; + V1VariableFluent that = (V1VariableFluent) o; + if (!java.util.Objects.equals(expression, that.expression)) return false; + if (!java.util.Objects.equals(name, that.name)) return false; + return true; + } + + public int hashCode() { + return java.util.Objects.hash(expression, name, super.hashCode()); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (expression != null) { sb.append("expression:"); sb.append(expression + ","); } + if (name != null) { sb.append("name:"); sb.append(name); } + sb.append("}"); + return sb.toString(); + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttachmentListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttachmentListFluent.java index d79ccb92fa..68e8c120f2 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttachmentListFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttachmentListFluent.java @@ -54,14 +54,26 @@ public boolean hasApiVersion() { public A addToItems(int index,V1VolumeAttachment item) { if (this.items == null) {this.items = new ArrayList();} V1VolumeAttachmentBuilder builder = new V1VolumeAttachmentBuilder(item); - if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); items.add(builder); } else { _visitables.get("items").add(index, builder); items.add(index, builder);} + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.add(index, builder); + } return (A)this; } public A setToItems(int index,V1VolumeAttachment item) { if (this.items == null) {this.items = new ArrayList();} V1VolumeAttachmentBuilder builder = new V1VolumeAttachmentBuilder(item); - if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); items.add(builder); } else { _visitables.get("items").set(index, builder); items.set(index, builder);} + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.set(index, builder); + } return (A)this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeBuilder.java index 7a35e97fdc..9aa088753f 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeBuilder.java @@ -40,6 +40,7 @@ public V1Volume build() { buildable.setGitRepo(fluent.buildGitRepo()); buildable.setGlusterfs(fluent.buildGlusterfs()); buildable.setHostPath(fluent.buildHostPath()); + buildable.setImage(fluent.buildImage()); buildable.setIscsi(fluent.buildIscsi()); buildable.setName(fluent.getName()); buildable.setNfs(fluent.buildNfs()); diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeErrorBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeErrorBuilder.java index 4e36c9f18b..e4c0df43cf 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeErrorBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeErrorBuilder.java @@ -23,6 +23,7 @@ public V1VolumeErrorBuilder(V1VolumeError instance) { public V1VolumeError build() { V1VolumeError buildable = new V1VolumeError(); + buildable.setErrorCode(fluent.getErrorCode()); buildable.setMessage(fluent.getMessage()); buildable.setTime(fluent.getTime()); return buildable; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeErrorFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeErrorFluent.java index 1b2e8a9881..a41cff8ac7 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeErrorFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeErrorFluent.java @@ -1,5 +1,6 @@ package io.kubernetes.client.openapi.models; +import java.lang.Integer; import java.time.OffsetDateTime; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; @@ -17,17 +18,32 @@ public V1VolumeErrorFluent() { public V1VolumeErrorFluent(V1VolumeError instance) { this.copyInstance(instance); } + private Integer errorCode; private String message; private OffsetDateTime time; protected void copyInstance(V1VolumeError instance) { instance = (instance != null ? instance : new V1VolumeError()); if (instance != null) { + this.withErrorCode(instance.getErrorCode()); this.withMessage(instance.getMessage()); this.withTime(instance.getTime()); } } + public Integer getErrorCode() { + return this.errorCode; + } + + public A withErrorCode(Integer errorCode) { + this.errorCode = errorCode; + return (A) this; + } + + public boolean hasErrorCode() { + return this.errorCode != null; + } + public String getMessage() { return this.message; } @@ -59,18 +75,20 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) return false; if (!super.equals(o)) return false; V1VolumeErrorFluent that = (V1VolumeErrorFluent) o; + if (!java.util.Objects.equals(errorCode, that.errorCode)) return false; if (!java.util.Objects.equals(message, that.message)) return false; if (!java.util.Objects.equals(time, that.time)) return false; return true; } public int hashCode() { - return java.util.Objects.hash(message, time, super.hashCode()); + return java.util.Objects.hash(errorCode, message, time, super.hashCode()); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); + if (errorCode != null) { sb.append("errorCode:"); sb.append(errorCode + ","); } if (message != null) { sb.append("message:"); sb.append(message + ","); } if (time != null) { sb.append("time:"); sb.append(time); } sb.append("}"); diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeFluent.java index af779e85d6..e5e96b63f7 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeFluent.java @@ -34,6 +34,7 @@ public V1VolumeFluent(V1Volume instance) { private V1GitRepoVolumeSourceBuilder gitRepo; private V1GlusterfsVolumeSourceBuilder glusterfs; private V1HostPathVolumeSourceBuilder hostPath; + private V1ImageVolumeSourceBuilder image; private V1ISCSIVolumeSourceBuilder iscsi; private String name; private V1NFSVolumeSourceBuilder nfs; @@ -68,6 +69,7 @@ protected void copyInstance(V1Volume instance) { this.withGitRepo(instance.getGitRepo()); this.withGlusterfs(instance.getGlusterfs()); this.withHostPath(instance.getHostPath()); + this.withImage(instance.getImage()); this.withIscsi(instance.getIscsi()); this.withName(instance.getName()); this.withNfs(instance.getNfs()); @@ -764,6 +766,46 @@ public HostPathNested editOrNewHostPathLike(V1HostPathVolumeSource item) { return withNewHostPathLike(java.util.Optional.ofNullable(buildHostPath()).orElse(item)); } + public V1ImageVolumeSource buildImage() { + return this.image != null ? this.image.build() : null; + } + + public A withImage(V1ImageVolumeSource image) { + this._visitables.remove("image"); + if (image != null) { + this.image = new V1ImageVolumeSourceBuilder(image); + this._visitables.get("image").add(this.image); + } else { + this.image = null; + this._visitables.get("image").remove(this.image); + } + return (A) this; + } + + public boolean hasImage() { + return this.image != null; + } + + public ImageNested withNewImage() { + return new ImageNested(null); + } + + public ImageNested withNewImageLike(V1ImageVolumeSource item) { + return new ImageNested(item); + } + + public ImageNested editImage() { + return withNewImageLike(java.util.Optional.ofNullable(buildImage()).orElse(null)); + } + + public ImageNested editOrNewImage() { + return withNewImageLike(java.util.Optional.ofNullable(buildImage()).orElse(new V1ImageVolumeSourceBuilder().build())); + } + + public ImageNested editOrNewImageLike(V1ImageVolumeSource item) { + return withNewImageLike(java.util.Optional.ofNullable(buildImage()).orElse(item)); + } + public V1ISCSIVolumeSource buildIscsi() { return this.iscsi != null ? this.iscsi.build() : null; } @@ -1279,6 +1321,7 @@ public boolean equals(Object o) { if (!java.util.Objects.equals(gitRepo, that.gitRepo)) return false; if (!java.util.Objects.equals(glusterfs, that.glusterfs)) return false; if (!java.util.Objects.equals(hostPath, that.hostPath)) return false; + if (!java.util.Objects.equals(image, that.image)) return false; if (!java.util.Objects.equals(iscsi, that.iscsi)) return false; if (!java.util.Objects.equals(name, that.name)) return false; if (!java.util.Objects.equals(nfs, that.nfs)) return false; @@ -1296,7 +1339,7 @@ public boolean equals(Object o) { } public int hashCode() { - return java.util.Objects.hash(awsElasticBlockStore, azureDisk, azureFile, cephfs, cinder, configMap, csi, downwardAPI, emptyDir, ephemeral, fc, flexVolume, flocker, gcePersistentDisk, gitRepo, glusterfs, hostPath, iscsi, name, nfs, persistentVolumeClaim, photonPersistentDisk, portworxVolume, projected, quobyte, rbd, scaleIO, secret, storageos, vsphereVolume, super.hashCode()); + return java.util.Objects.hash(awsElasticBlockStore, azureDisk, azureFile, cephfs, cinder, configMap, csi, downwardAPI, emptyDir, ephemeral, fc, flexVolume, flocker, gcePersistentDisk, gitRepo, glusterfs, hostPath, image, iscsi, name, nfs, persistentVolumeClaim, photonPersistentDisk, portworxVolume, projected, quobyte, rbd, scaleIO, secret, storageos, vsphereVolume, super.hashCode()); } public String toString() { @@ -1319,6 +1362,7 @@ public String toString() { if (gitRepo != null) { sb.append("gitRepo:"); sb.append(gitRepo + ","); } if (glusterfs != null) { sb.append("glusterfs:"); sb.append(glusterfs + ","); } if (hostPath != null) { sb.append("hostPath:"); sb.append(hostPath + ","); } + if (image != null) { sb.append("image:"); sb.append(image + ","); } if (iscsi != null) { sb.append("iscsi:"); sb.append(iscsi + ","); } if (name != null) { sb.append("name:"); sb.append(name + ","); } if (nfs != null) { sb.append("nfs:"); sb.append(nfs + ","); } @@ -1606,6 +1650,22 @@ public N endHostPath() { } + } + public class ImageNested extends V1ImageVolumeSourceFluent> implements Nested{ + ImageNested(V1ImageVolumeSource item) { + this.builder = new V1ImageVolumeSourceBuilder(this, item); + } + V1ImageVolumeSourceBuilder builder; + + public N and() { + return (N) V1VolumeFluent.this.withImage(builder.build()); + } + + public N endImage() { + return and(); + } + + } public class IscsiNested extends V1ISCSIVolumeSourceFluent> implements Nested{ IscsiNested(V1ISCSIVolumeSource item) { diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeMountBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeMountBuilder.java index 612ab6a833..3225cc2a37 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeMountBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeMountBuilder.java @@ -27,6 +27,7 @@ public V1VolumeMount build() { buildable.setMountPropagation(fluent.getMountPropagation()); buildable.setName(fluent.getName()); buildable.setReadOnly(fluent.getReadOnly()); + buildable.setRecursiveReadOnly(fluent.getRecursiveReadOnly()); buildable.setSubPath(fluent.getSubPath()); buildable.setSubPathExpr(fluent.getSubPathExpr()); return buildable; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeMountFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeMountFluent.java index f9d3a2ff99..d092a55ee1 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeMountFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeMountFluent.java @@ -21,6 +21,7 @@ public V1VolumeMountFluent(V1VolumeMount instance) { private String mountPropagation; private String name; private Boolean readOnly; + private String recursiveReadOnly; private String subPath; private String subPathExpr; @@ -31,6 +32,7 @@ protected void copyInstance(V1VolumeMount instance) { this.withMountPropagation(instance.getMountPropagation()); this.withName(instance.getName()); this.withReadOnly(instance.getReadOnly()); + this.withRecursiveReadOnly(instance.getRecursiveReadOnly()); this.withSubPath(instance.getSubPath()); this.withSubPathExpr(instance.getSubPathExpr()); } @@ -88,6 +90,19 @@ public boolean hasReadOnly() { return this.readOnly != null; } + public String getRecursiveReadOnly() { + return this.recursiveReadOnly; + } + + public A withRecursiveReadOnly(String recursiveReadOnly) { + this.recursiveReadOnly = recursiveReadOnly; + return (A) this; + } + + public boolean hasRecursiveReadOnly() { + return this.recursiveReadOnly != null; + } + public String getSubPath() { return this.subPath; } @@ -123,13 +138,14 @@ public boolean equals(Object o) { if (!java.util.Objects.equals(mountPropagation, that.mountPropagation)) return false; if (!java.util.Objects.equals(name, that.name)) return false; if (!java.util.Objects.equals(readOnly, that.readOnly)) return false; + if (!java.util.Objects.equals(recursiveReadOnly, that.recursiveReadOnly)) return false; if (!java.util.Objects.equals(subPath, that.subPath)) return false; if (!java.util.Objects.equals(subPathExpr, that.subPathExpr)) return false; return true; } public int hashCode() { - return java.util.Objects.hash(mountPath, mountPropagation, name, readOnly, subPath, subPathExpr, super.hashCode()); + return java.util.Objects.hash(mountPath, mountPropagation, name, readOnly, recursiveReadOnly, subPath, subPathExpr, super.hashCode()); } public String toString() { @@ -139,6 +155,7 @@ public String toString() { if (mountPropagation != null) { sb.append("mountPropagation:"); sb.append(mountPropagation + ","); } if (name != null) { sb.append("name:"); sb.append(name + ","); } if (readOnly != null) { sb.append("readOnly:"); sb.append(readOnly + ","); } + if (recursiveReadOnly != null) { sb.append("recursiveReadOnly:"); sb.append(recursiveReadOnly + ","); } if (subPath != null) { sb.append("subPath:"); sb.append(subPath + ","); } if (subPathExpr != null) { sb.append("subPathExpr:"); sb.append(subPathExpr); } sb.append("}"); diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeMountStatusBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeMountStatusBuilder.java new file mode 100644 index 0000000000..3ed58ec456 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeMountStatusBuilder.java @@ -0,0 +1,34 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +public class V1VolumeMountStatusBuilder extends V1VolumeMountStatusFluent implements VisitableBuilder{ + public V1VolumeMountStatusBuilder() { + this(new V1VolumeMountStatus()); + } + + public V1VolumeMountStatusBuilder(V1VolumeMountStatusFluent fluent) { + this(fluent, new V1VolumeMountStatus()); + } + + public V1VolumeMountStatusBuilder(V1VolumeMountStatusFluent fluent,V1VolumeMountStatus instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1VolumeMountStatusBuilder(V1VolumeMountStatus instance) { + this.fluent = this; + this.copyInstance(instance); + } + V1VolumeMountStatusFluent fluent; + + public V1VolumeMountStatus build() { + V1VolumeMountStatus buildable = new V1VolumeMountStatus(); + buildable.setMountPath(fluent.getMountPath()); + buildable.setName(fluent.getName()); + buildable.setReadOnly(fluent.getReadOnly()); + buildable.setRecursiveReadOnly(fluent.getRecursiveReadOnly()); + return buildable; + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeMountStatusFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeMountStatusFluent.java new file mode 100644 index 0000000000..de5c185bd7 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeMountStatusFluent.java @@ -0,0 +1,119 @@ +package io.kubernetes.client.openapi.models; + +import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Object; +import java.lang.String; +import java.lang.Boolean; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1VolumeMountStatusFluent> extends BaseFluent{ + public V1VolumeMountStatusFluent() { + } + + public V1VolumeMountStatusFluent(V1VolumeMountStatus instance) { + this.copyInstance(instance); + } + private String mountPath; + private String name; + private Boolean readOnly; + private String recursiveReadOnly; + + protected void copyInstance(V1VolumeMountStatus instance) { + instance = (instance != null ? instance : new V1VolumeMountStatus()); + if (instance != null) { + this.withMountPath(instance.getMountPath()); + this.withName(instance.getName()); + this.withReadOnly(instance.getReadOnly()); + this.withRecursiveReadOnly(instance.getRecursiveReadOnly()); + } + } + + public String getMountPath() { + return this.mountPath; + } + + public A withMountPath(String mountPath) { + this.mountPath = mountPath; + return (A) this; + } + + public boolean hasMountPath() { + return this.mountPath != null; + } + + public String getName() { + return this.name; + } + + public A withName(String name) { + this.name = name; + return (A) this; + } + + public boolean hasName() { + return this.name != null; + } + + public Boolean getReadOnly() { + return this.readOnly; + } + + public A withReadOnly(Boolean readOnly) { + this.readOnly = readOnly; + return (A) this; + } + + public boolean hasReadOnly() { + return this.readOnly != null; + } + + public String getRecursiveReadOnly() { + return this.recursiveReadOnly; + } + + public A withRecursiveReadOnly(String recursiveReadOnly) { + this.recursiveReadOnly = recursiveReadOnly; + return (A) this; + } + + public boolean hasRecursiveReadOnly() { + return this.recursiveReadOnly != null; + } + + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + if (!super.equals(o)) return false; + V1VolumeMountStatusFluent that = (V1VolumeMountStatusFluent) o; + if (!java.util.Objects.equals(mountPath, that.mountPath)) return false; + if (!java.util.Objects.equals(name, that.name)) return false; + if (!java.util.Objects.equals(readOnly, that.readOnly)) return false; + if (!java.util.Objects.equals(recursiveReadOnly, that.recursiveReadOnly)) return false; + return true; + } + + public int hashCode() { + return java.util.Objects.hash(mountPath, name, readOnly, recursiveReadOnly, super.hashCode()); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (mountPath != null) { sb.append("mountPath:"); sb.append(mountPath + ","); } + if (name != null) { sb.append("name:"); sb.append(name + ","); } + if (readOnly != null) { sb.append("readOnly:"); sb.append(readOnly + ","); } + if (recursiveReadOnly != null) { sb.append("recursiveReadOnly:"); sb.append(recursiveReadOnly); } + sb.append("}"); + return sb.toString(); + } + + public A withReadOnly() { + return withReadOnly(true); + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeProjectionBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeProjectionBuilder.java index 566e8930a3..ea0c5e4e3c 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeProjectionBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeProjectionBuilder.java @@ -23,6 +23,7 @@ public V1VolumeProjectionBuilder(V1VolumeProjection instance) { public V1VolumeProjection build() { V1VolumeProjection buildable = new V1VolumeProjection(); + buildable.setClusterTrustBundle(fluent.buildClusterTrustBundle()); buildable.setConfigMap(fluent.buildConfigMap()); buildable.setDownwardAPI(fluent.buildDownwardAPI()); buildable.setSecret(fluent.buildSecret()); diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeProjectionFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeProjectionFluent.java index 306c0ab19d..7bdf479983 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeProjectionFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeProjectionFluent.java @@ -17,6 +17,7 @@ public V1VolumeProjectionFluent() { public V1VolumeProjectionFluent(V1VolumeProjection instance) { this.copyInstance(instance); } + private V1ClusterTrustBundleProjectionBuilder clusterTrustBundle; private V1ConfigMapProjectionBuilder configMap; private V1DownwardAPIProjectionBuilder downwardAPI; private V1SecretProjectionBuilder secret; @@ -25,6 +26,7 @@ public V1VolumeProjectionFluent(V1VolumeProjection instance) { protected void copyInstance(V1VolumeProjection instance) { instance = (instance != null ? instance : new V1VolumeProjection()); if (instance != null) { + this.withClusterTrustBundle(instance.getClusterTrustBundle()); this.withConfigMap(instance.getConfigMap()); this.withDownwardAPI(instance.getDownwardAPI()); this.withSecret(instance.getSecret()); @@ -32,6 +34,46 @@ protected void copyInstance(V1VolumeProjection instance) { } } + public V1ClusterTrustBundleProjection buildClusterTrustBundle() { + return this.clusterTrustBundle != null ? this.clusterTrustBundle.build() : null; + } + + public A withClusterTrustBundle(V1ClusterTrustBundleProjection clusterTrustBundle) { + this._visitables.remove("clusterTrustBundle"); + if (clusterTrustBundle != null) { + this.clusterTrustBundle = new V1ClusterTrustBundleProjectionBuilder(clusterTrustBundle); + this._visitables.get("clusterTrustBundle").add(this.clusterTrustBundle); + } else { + this.clusterTrustBundle = null; + this._visitables.get("clusterTrustBundle").remove(this.clusterTrustBundle); + } + return (A) this; + } + + public boolean hasClusterTrustBundle() { + return this.clusterTrustBundle != null; + } + + public ClusterTrustBundleNested withNewClusterTrustBundle() { + return new ClusterTrustBundleNested(null); + } + + public ClusterTrustBundleNested withNewClusterTrustBundleLike(V1ClusterTrustBundleProjection item) { + return new ClusterTrustBundleNested(item); + } + + public ClusterTrustBundleNested editClusterTrustBundle() { + return withNewClusterTrustBundleLike(java.util.Optional.ofNullable(buildClusterTrustBundle()).orElse(null)); + } + + public ClusterTrustBundleNested editOrNewClusterTrustBundle() { + return withNewClusterTrustBundleLike(java.util.Optional.ofNullable(buildClusterTrustBundle()).orElse(new V1ClusterTrustBundleProjectionBuilder().build())); + } + + public ClusterTrustBundleNested editOrNewClusterTrustBundleLike(V1ClusterTrustBundleProjection item) { + return withNewClusterTrustBundleLike(java.util.Optional.ofNullable(buildClusterTrustBundle()).orElse(item)); + } + public V1ConfigMapProjection buildConfigMap() { return this.configMap != null ? this.configMap.build() : null; } @@ -197,6 +239,7 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) return false; if (!super.equals(o)) return false; V1VolumeProjectionFluent that = (V1VolumeProjectionFluent) o; + if (!java.util.Objects.equals(clusterTrustBundle, that.clusterTrustBundle)) return false; if (!java.util.Objects.equals(configMap, that.configMap)) return false; if (!java.util.Objects.equals(downwardAPI, that.downwardAPI)) return false; if (!java.util.Objects.equals(secret, that.secret)) return false; @@ -205,18 +248,35 @@ public boolean equals(Object o) { } public int hashCode() { - return java.util.Objects.hash(configMap, downwardAPI, secret, serviceAccountToken, super.hashCode()); + return java.util.Objects.hash(clusterTrustBundle, configMap, downwardAPI, secret, serviceAccountToken, super.hashCode()); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); + if (clusterTrustBundle != null) { sb.append("clusterTrustBundle:"); sb.append(clusterTrustBundle + ","); } if (configMap != null) { sb.append("configMap:"); sb.append(configMap + ","); } if (downwardAPI != null) { sb.append("downwardAPI:"); sb.append(downwardAPI + ","); } if (secret != null) { sb.append("secret:"); sb.append(secret + ","); } if (serviceAccountToken != null) { sb.append("serviceAccountToken:"); sb.append(serviceAccountToken); } sb.append("}"); return sb.toString(); + } + public class ClusterTrustBundleNested extends V1ClusterTrustBundleProjectionFluent> implements Nested{ + ClusterTrustBundleNested(V1ClusterTrustBundleProjection item) { + this.builder = new V1ClusterTrustBundleProjectionBuilder(this, item); + } + V1ClusterTrustBundleProjectionBuilder builder; + + public N and() { + return (N) V1VolumeProjectionFluent.this.withClusterTrustBundle(builder.build()); + } + + public N endClusterTrustBundle() { + return and(); + } + + } public class ConfigMapNested extends V1ConfigMapProjectionFluent> implements Nested{ ConfigMapNested(V1ConfigMapProjection item) { diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeResourceRequirementsBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeResourceRequirementsBuilder.java new file mode 100644 index 0000000000..80c34b2188 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeResourceRequirementsBuilder.java @@ -0,0 +1,32 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +public class V1VolumeResourceRequirementsBuilder extends V1VolumeResourceRequirementsFluent implements VisitableBuilder{ + public V1VolumeResourceRequirementsBuilder() { + this(new V1VolumeResourceRequirements()); + } + + public V1VolumeResourceRequirementsBuilder(V1VolumeResourceRequirementsFluent fluent) { + this(fluent, new V1VolumeResourceRequirements()); + } + + public V1VolumeResourceRequirementsBuilder(V1VolumeResourceRequirementsFluent fluent,V1VolumeResourceRequirements instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1VolumeResourceRequirementsBuilder(V1VolumeResourceRequirements instance) { + this.fluent = this; + this.copyInstance(instance); + } + V1VolumeResourceRequirementsFluent fluent; + + public V1VolumeResourceRequirements build() { + V1VolumeResourceRequirements buildable = new V1VolumeResourceRequirements(); + buildable.setLimits(fluent.getLimits()); + buildable.setRequests(fluent.getRequests()); + return buildable; + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeResourceRequirementsFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeResourceRequirementsFluent.java new file mode 100644 index 0000000000..4c4f04e7ff --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeResourceRequirementsFluent.java @@ -0,0 +1,131 @@ +package io.kubernetes.client.openapi.models; + +import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.custom.Quantity; +import java.lang.Object; +import java.lang.String; +import java.util.Map; +import java.util.LinkedHashMap; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1VolumeResourceRequirementsFluent> extends BaseFluent{ + public V1VolumeResourceRequirementsFluent() { + } + + public V1VolumeResourceRequirementsFluent(V1VolumeResourceRequirements instance) { + this.copyInstance(instance); + } + private Map limits; + private Map requests; + + protected void copyInstance(V1VolumeResourceRequirements instance) { + instance = (instance != null ? instance : new V1VolumeResourceRequirements()); + if (instance != null) { + this.withLimits(instance.getLimits()); + this.withRequests(instance.getRequests()); + } + } + + public A addToLimits(String key,Quantity value) { + if(this.limits == null && key != null && value != null) { this.limits = new LinkedHashMap(); } + if(key != null && value != null) {this.limits.put(key, value);} return (A)this; + } + + public A addToLimits(Map map) { + if(this.limits == null && map != null) { this.limits = new LinkedHashMap(); } + if(map != null) { this.limits.putAll(map);} return (A)this; + } + + public A removeFromLimits(String key) { + if(this.limits == null) { return (A) this; } + if(key != null && this.limits != null) {this.limits.remove(key);} return (A)this; + } + + public A removeFromLimits(Map map) { + if(this.limits == null) { return (A) this; } + if(map != null) { for(Object key : map.keySet()) {if (this.limits != null){this.limits.remove(key);}}} return (A)this; + } + + public Map getLimits() { + return this.limits; + } + + public A withLimits(Map limits) { + if (limits == null) { + this.limits = null; + } else { + this.limits = new LinkedHashMap(limits); + } + return (A) this; + } + + public boolean hasLimits() { + return this.limits != null; + } + + public A addToRequests(String key,Quantity value) { + if(this.requests == null && key != null && value != null) { this.requests = new LinkedHashMap(); } + if(key != null && value != null) {this.requests.put(key, value);} return (A)this; + } + + public A addToRequests(Map map) { + if(this.requests == null && map != null) { this.requests = new LinkedHashMap(); } + if(map != null) { this.requests.putAll(map);} return (A)this; + } + + public A removeFromRequests(String key) { + if(this.requests == null) { return (A) this; } + if(key != null && this.requests != null) {this.requests.remove(key);} return (A)this; + } + + public A removeFromRequests(Map map) { + if(this.requests == null) { return (A) this; } + if(map != null) { for(Object key : map.keySet()) {if (this.requests != null){this.requests.remove(key);}}} return (A)this; + } + + public Map getRequests() { + return this.requests; + } + + public A withRequests(Map requests) { + if (requests == null) { + this.requests = null; + } else { + this.requests = new LinkedHashMap(requests); + } + return (A) this; + } + + public boolean hasRequests() { + return this.requests != null; + } + + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + if (!super.equals(o)) return false; + V1VolumeResourceRequirementsFluent that = (V1VolumeResourceRequirementsFluent) o; + if (!java.util.Objects.equals(limits, that.limits)) return false; + if (!java.util.Objects.equals(requests, that.requests)) return false; + return true; + } + + public int hashCode() { + return java.util.Objects.hash(limits, requests, super.hashCode()); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (limits != null && !limits.isEmpty()) { sb.append("limits:"); sb.append(limits + ","); } + if (requests != null && !requests.isEmpty()) { sb.append("requests:"); sb.append(requests); } + sb.append("}"); + return sb.toString(); + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ApplyConfigurationBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ApplyConfigurationBuilder.java new file mode 100644 index 0000000000..4e647ce8bd --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ApplyConfigurationBuilder.java @@ -0,0 +1,31 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +public class V1alpha1ApplyConfigurationBuilder extends V1alpha1ApplyConfigurationFluent implements VisitableBuilder{ + public V1alpha1ApplyConfigurationBuilder() { + this(new V1alpha1ApplyConfiguration()); + } + + public V1alpha1ApplyConfigurationBuilder(V1alpha1ApplyConfigurationFluent fluent) { + this(fluent, new V1alpha1ApplyConfiguration()); + } + + public V1alpha1ApplyConfigurationBuilder(V1alpha1ApplyConfigurationFluent fluent,V1alpha1ApplyConfiguration instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1alpha1ApplyConfigurationBuilder(V1alpha1ApplyConfiguration instance) { + this.fluent = this; + this.copyInstance(instance); + } + V1alpha1ApplyConfigurationFluent fluent; + + public V1alpha1ApplyConfiguration build() { + V1alpha1ApplyConfiguration buildable = new V1alpha1ApplyConfiguration(); + buildable.setExpression(fluent.getExpression()); + return buildable; + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ApplyConfigurationFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ApplyConfigurationFluent.java new file mode 100644 index 0000000000..3bbf15b857 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ApplyConfigurationFluent.java @@ -0,0 +1,63 @@ +package io.kubernetes.client.openapi.models; + +import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Object; +import java.lang.String; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1alpha1ApplyConfigurationFluent> extends BaseFluent{ + public V1alpha1ApplyConfigurationFluent() { + } + + public V1alpha1ApplyConfigurationFluent(V1alpha1ApplyConfiguration instance) { + this.copyInstance(instance); + } + private String expression; + + protected void copyInstance(V1alpha1ApplyConfiguration instance) { + instance = (instance != null ? instance : new V1alpha1ApplyConfiguration()); + if (instance != null) { + this.withExpression(instance.getExpression()); + } + } + + public String getExpression() { + return this.expression; + } + + public A withExpression(String expression) { + this.expression = expression; + return (A) this; + } + + public boolean hasExpression() { + return this.expression != null; + } + + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + if (!super.equals(o)) return false; + V1alpha1ApplyConfigurationFluent that = (V1alpha1ApplyConfigurationFluent) o; + if (!java.util.Objects.equals(expression, that.expression)) return false; + return true; + } + + public int hashCode() { + return java.util.Objects.hash(expression, super.hashCode()); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (expression != null) { sb.append("expression:"); sb.append(expression); } + sb.append("}"); + return sb.toString(); + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1AuditAnnotationBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1AuditAnnotationBuilder.java deleted file mode 100644 index a074d44f71..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1AuditAnnotationBuilder.java +++ /dev/null @@ -1,32 +0,0 @@ -package io.kubernetes.client.openapi.models; - -import io.kubernetes.client.fluent.VisitableBuilder; -public class V1alpha1AuditAnnotationBuilder extends V1alpha1AuditAnnotationFluent implements VisitableBuilder{ - public V1alpha1AuditAnnotationBuilder() { - this(new V1alpha1AuditAnnotation()); - } - - public V1alpha1AuditAnnotationBuilder(V1alpha1AuditAnnotationFluent fluent) { - this(fluent, new V1alpha1AuditAnnotation()); - } - - public V1alpha1AuditAnnotationBuilder(V1alpha1AuditAnnotationFluent fluent,V1alpha1AuditAnnotation instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - - public V1alpha1AuditAnnotationBuilder(V1alpha1AuditAnnotation instance) { - this.fluent = this; - this.copyInstance(instance); - } - V1alpha1AuditAnnotationFluent fluent; - - public V1alpha1AuditAnnotation build() { - V1alpha1AuditAnnotation buildable = new V1alpha1AuditAnnotation(); - buildable.setKey(fluent.getKey()); - buildable.setValueExpression(fluent.getValueExpression()); - return buildable; - } - - -} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1AuditAnnotationFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1AuditAnnotationFluent.java deleted file mode 100644 index 7ecf95c4c2..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1AuditAnnotationFluent.java +++ /dev/null @@ -1,80 +0,0 @@ -package io.kubernetes.client.openapi.models; - -import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.BaseFluent; -import java.lang.Object; -import java.lang.String; - -/** - * Generated - */ -@SuppressWarnings("unchecked") -public class V1alpha1AuditAnnotationFluent> extends BaseFluent{ - public V1alpha1AuditAnnotationFluent() { - } - - public V1alpha1AuditAnnotationFluent(V1alpha1AuditAnnotation instance) { - this.copyInstance(instance); - } - private String key; - private String valueExpression; - - protected void copyInstance(V1alpha1AuditAnnotation instance) { - instance = (instance != null ? instance : new V1alpha1AuditAnnotation()); - if (instance != null) { - this.withKey(instance.getKey()); - this.withValueExpression(instance.getValueExpression()); - } - } - - public String getKey() { - return this.key; - } - - public A withKey(String key) { - this.key = key; - return (A) this; - } - - public boolean hasKey() { - return this.key != null; - } - - public String getValueExpression() { - return this.valueExpression; - } - - public A withValueExpression(String valueExpression) { - this.valueExpression = valueExpression; - return (A) this; - } - - public boolean hasValueExpression() { - return this.valueExpression != null; - } - - public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; - V1alpha1AuditAnnotationFluent that = (V1alpha1AuditAnnotationFluent) o; - if (!java.util.Objects.equals(key, that.key)) return false; - if (!java.util.Objects.equals(valueExpression, that.valueExpression)) return false; - return true; - } - - public int hashCode() { - return java.util.Objects.hash(key, valueExpression, super.hashCode()); - } - - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("{"); - if (key != null) { sb.append("key:"); sb.append(key + ","); } - if (valueExpression != null) { sb.append("valueExpression:"); sb.append(valueExpression); } - sb.append("}"); - return sb.toString(); - } - - -} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ClusterCIDRBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ClusterCIDRBuilder.java deleted file mode 100644 index 61e3932839..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ClusterCIDRBuilder.java +++ /dev/null @@ -1,34 +0,0 @@ -package io.kubernetes.client.openapi.models; - -import io.kubernetes.client.fluent.VisitableBuilder; -public class V1alpha1ClusterCIDRBuilder extends V1alpha1ClusterCIDRFluent implements VisitableBuilder{ - public V1alpha1ClusterCIDRBuilder() { - this(new V1alpha1ClusterCIDR()); - } - - public V1alpha1ClusterCIDRBuilder(V1alpha1ClusterCIDRFluent fluent) { - this(fluent, new V1alpha1ClusterCIDR()); - } - - public V1alpha1ClusterCIDRBuilder(V1alpha1ClusterCIDRFluent fluent,V1alpha1ClusterCIDR instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - - public V1alpha1ClusterCIDRBuilder(V1alpha1ClusterCIDR instance) { - this.fluent = this; - this.copyInstance(instance); - } - V1alpha1ClusterCIDRFluent fluent; - - public V1alpha1ClusterCIDR build() { - V1alpha1ClusterCIDR buildable = new V1alpha1ClusterCIDR(); - buildable.setApiVersion(fluent.getApiVersion()); - buildable.setKind(fluent.getKind()); - buildable.setMetadata(fluent.buildMetadata()); - buildable.setSpec(fluent.buildSpec()); - return buildable; - } - - -} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ClusterCIDRFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ClusterCIDRFluent.java deleted file mode 100644 index d27b2de536..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ClusterCIDRFluent.java +++ /dev/null @@ -1,200 +0,0 @@ -package io.kubernetes.client.openapi.models; - -import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.Nested; -import java.lang.String; -import io.kubernetes.client.fluent.BaseFluent; -import java.lang.Object; - -/** - * Generated - */ -@SuppressWarnings("unchecked") -public class V1alpha1ClusterCIDRFluent> extends BaseFluent{ - public V1alpha1ClusterCIDRFluent() { - } - - public V1alpha1ClusterCIDRFluent(V1alpha1ClusterCIDR instance) { - this.copyInstance(instance); - } - private String apiVersion; - private String kind; - private V1ObjectMetaBuilder metadata; - private V1alpha1ClusterCIDRSpecBuilder spec; - - protected void copyInstance(V1alpha1ClusterCIDR instance) { - instance = (instance != null ? instance : new V1alpha1ClusterCIDR()); - if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withKind(instance.getKind()); - this.withMetadata(instance.getMetadata()); - this.withSpec(instance.getSpec()); - } - } - - public String getApiVersion() { - return this.apiVersion; - } - - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; - } - - public boolean hasApiVersion() { - return this.apiVersion != null; - } - - public String getKind() { - return this.kind; - } - - public A withKind(String kind) { - this.kind = kind; - return (A) this; - } - - public boolean hasKind() { - return this.kind != null; - } - - public V1ObjectMeta buildMetadata() { - return this.metadata != null ? this.metadata.build() : null; - } - - public A withMetadata(V1ObjectMeta metadata) { - this._visitables.remove("metadata"); - if (metadata != null) { - this.metadata = new V1ObjectMetaBuilder(metadata); - this._visitables.get("metadata").add(this.metadata); - } else { - this.metadata = null; - this._visitables.get("metadata").remove(this.metadata); - } - return (A) this; - } - - public boolean hasMetadata() { - return this.metadata != null; - } - - public MetadataNested withNewMetadata() { - return new MetadataNested(null); - } - - public MetadataNested withNewMetadataLike(V1ObjectMeta item) { - return new MetadataNested(item); - } - - public MetadataNested editMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(null)); - } - - public MetadataNested editOrNewMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(new V1ObjectMetaBuilder().build())); - } - - public MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(item)); - } - - public V1alpha1ClusterCIDRSpec buildSpec() { - return this.spec != null ? this.spec.build() : null; - } - - public A withSpec(V1alpha1ClusterCIDRSpec spec) { - this._visitables.remove("spec"); - if (spec != null) { - this.spec = new V1alpha1ClusterCIDRSpecBuilder(spec); - this._visitables.get("spec").add(this.spec); - } else { - this.spec = null; - this._visitables.get("spec").remove(this.spec); - } - return (A) this; - } - - public boolean hasSpec() { - return this.spec != null; - } - - public SpecNested withNewSpec() { - return new SpecNested(null); - } - - public SpecNested withNewSpecLike(V1alpha1ClusterCIDRSpec item) { - return new SpecNested(item); - } - - public SpecNested editSpec() { - return withNewSpecLike(java.util.Optional.ofNullable(buildSpec()).orElse(null)); - } - - public SpecNested editOrNewSpec() { - return withNewSpecLike(java.util.Optional.ofNullable(buildSpec()).orElse(new V1alpha1ClusterCIDRSpecBuilder().build())); - } - - public SpecNested editOrNewSpecLike(V1alpha1ClusterCIDRSpec item) { - return withNewSpecLike(java.util.Optional.ofNullable(buildSpec()).orElse(item)); - } - - public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; - V1alpha1ClusterCIDRFluent that = (V1alpha1ClusterCIDRFluent) o; - if (!java.util.Objects.equals(apiVersion, that.apiVersion)) return false; - if (!java.util.Objects.equals(kind, that.kind)) return false; - if (!java.util.Objects.equals(metadata, that.metadata)) return false; - if (!java.util.Objects.equals(spec, that.spec)) return false; - return true; - } - - public int hashCode() { - return java.util.Objects.hash(apiVersion, kind, metadata, spec, super.hashCode()); - } - - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("{"); - if (apiVersion != null) { sb.append("apiVersion:"); sb.append(apiVersion + ","); } - if (kind != null) { sb.append("kind:"); sb.append(kind + ","); } - if (metadata != null) { sb.append("metadata:"); sb.append(metadata + ","); } - if (spec != null) { sb.append("spec:"); sb.append(spec); } - sb.append("}"); - return sb.toString(); - } - public class MetadataNested extends V1ObjectMetaFluent> implements Nested{ - MetadataNested(V1ObjectMeta item) { - this.builder = new V1ObjectMetaBuilder(this, item); - } - V1ObjectMetaBuilder builder; - - public N and() { - return (N) V1alpha1ClusterCIDRFluent.this.withMetadata(builder.build()); - } - - public N endMetadata() { - return and(); - } - - - } - public class SpecNested extends V1alpha1ClusterCIDRSpecFluent> implements Nested{ - SpecNested(V1alpha1ClusterCIDRSpec item) { - this.builder = new V1alpha1ClusterCIDRSpecBuilder(this, item); - } - V1alpha1ClusterCIDRSpecBuilder builder; - - public N and() { - return (N) V1alpha1ClusterCIDRFluent.this.withSpec(builder.build()); - } - - public N endSpec() { - return and(); - } - - - } - -} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ClusterCIDRListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ClusterCIDRListBuilder.java deleted file mode 100644 index f6f414e21f..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ClusterCIDRListBuilder.java +++ /dev/null @@ -1,34 +0,0 @@ -package io.kubernetes.client.openapi.models; - -import io.kubernetes.client.fluent.VisitableBuilder; -public class V1alpha1ClusterCIDRListBuilder extends V1alpha1ClusterCIDRListFluent implements VisitableBuilder{ - public V1alpha1ClusterCIDRListBuilder() { - this(new V1alpha1ClusterCIDRList()); - } - - public V1alpha1ClusterCIDRListBuilder(V1alpha1ClusterCIDRListFluent fluent) { - this(fluent, new V1alpha1ClusterCIDRList()); - } - - public V1alpha1ClusterCIDRListBuilder(V1alpha1ClusterCIDRListFluent fluent,V1alpha1ClusterCIDRList instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - - public V1alpha1ClusterCIDRListBuilder(V1alpha1ClusterCIDRList instance) { - this.fluent = this; - this.copyInstance(instance); - } - V1alpha1ClusterCIDRListFluent fluent; - - public V1alpha1ClusterCIDRList build() { - V1alpha1ClusterCIDRList buildable = new V1alpha1ClusterCIDRList(); - buildable.setApiVersion(fluent.getApiVersion()); - buildable.setItems(fluent.buildItems()); - buildable.setKind(fluent.getKind()); - buildable.setMetadata(fluent.buildMetadata()); - return buildable; - } - - -} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ClusterCIDRListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ClusterCIDRListFluent.java deleted file mode 100644 index fd7822f6b6..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ClusterCIDRListFluent.java +++ /dev/null @@ -1,319 +0,0 @@ -package io.kubernetes.client.openapi.models; - -import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.Nested; -import java.util.ArrayList; -import java.lang.String; -import java.util.function.Predicate; -import io.kubernetes.client.fluent.BaseFluent; -import java.util.Iterator; -import java.util.Collection; -import java.lang.Object; -import java.util.List; - -/** - * Generated - */ -@SuppressWarnings("unchecked") -public class V1alpha1ClusterCIDRListFluent> extends BaseFluent{ - public V1alpha1ClusterCIDRListFluent() { - } - - public V1alpha1ClusterCIDRListFluent(V1alpha1ClusterCIDRList instance) { - this.copyInstance(instance); - } - private String apiVersion; - private ArrayList items; - private String kind; - private V1ListMetaBuilder metadata; - - protected void copyInstance(V1alpha1ClusterCIDRList instance) { - instance = (instance != null ? instance : new V1alpha1ClusterCIDRList()); - if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withItems(instance.getItems()); - this.withKind(instance.getKind()); - this.withMetadata(instance.getMetadata()); - } - } - - public String getApiVersion() { - return this.apiVersion; - } - - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; - } - - public boolean hasApiVersion() { - return this.apiVersion != null; - } - - public A addToItems(int index,V1alpha1ClusterCIDR item) { - if (this.items == null) {this.items = new ArrayList();} - V1alpha1ClusterCIDRBuilder builder = new V1alpha1ClusterCIDRBuilder(item); - if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); items.add(builder); } else { _visitables.get("items").add(index, builder); items.add(index, builder);} - return (A)this; - } - - public A setToItems(int index,V1alpha1ClusterCIDR item) { - if (this.items == null) {this.items = new ArrayList();} - V1alpha1ClusterCIDRBuilder builder = new V1alpha1ClusterCIDRBuilder(item); - if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); items.add(builder); } else { _visitables.get("items").set(index, builder); items.set(index, builder);} - return (A)this; - } - - public A addToItems(io.kubernetes.client.openapi.models.V1alpha1ClusterCIDR... items) { - if (this.items == null) {this.items = new ArrayList();} - for (V1alpha1ClusterCIDR item : items) {V1alpha1ClusterCIDRBuilder builder = new V1alpha1ClusterCIDRBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; - } - - public A addAllToItems(Collection items) { - if (this.items == null) {this.items = new ArrayList();} - for (V1alpha1ClusterCIDR item : items) {V1alpha1ClusterCIDRBuilder builder = new V1alpha1ClusterCIDRBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; - } - - public A removeFromItems(io.kubernetes.client.openapi.models.V1alpha1ClusterCIDR... items) { - if (this.items == null) return (A)this; - for (V1alpha1ClusterCIDR item : items) {V1alpha1ClusterCIDRBuilder builder = new V1alpha1ClusterCIDRBuilder(item);_visitables.get("items").remove(builder); this.items.remove(builder);} return (A)this; - } - - public A removeAllFromItems(Collection items) { - if (this.items == null) return (A)this; - for (V1alpha1ClusterCIDR item : items) {V1alpha1ClusterCIDRBuilder builder = new V1alpha1ClusterCIDRBuilder(item);_visitables.get("items").remove(builder); this.items.remove(builder);} return (A)this; - } - - public A removeMatchingFromItems(Predicate predicate) { - if (items == null) return (A) this; - final Iterator each = items.iterator(); - final List visitables = _visitables.get("items"); - while (each.hasNext()) { - V1alpha1ClusterCIDRBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } - } - return (A)this; - } - - public List buildItems() { - return this.items != null ? build(items) : null; - } - - public V1alpha1ClusterCIDR buildItem(int index) { - return this.items.get(index).build(); - } - - public V1alpha1ClusterCIDR buildFirstItem() { - return this.items.get(0).build(); - } - - public V1alpha1ClusterCIDR buildLastItem() { - return this.items.get(items.size() - 1).build(); - } - - public V1alpha1ClusterCIDR buildMatchingItem(Predicate predicate) { - for (V1alpha1ClusterCIDRBuilder item : items) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; - } - - public boolean hasMatchingItem(Predicate predicate) { - for (V1alpha1ClusterCIDRBuilder item : items) { - if (predicate.test(item)) { - return true; - } - } - return false; - } - - public A withItems(List items) { - if (this.items != null) { - this._visitables.get("items").clear(); - } - if (items != null) { - this.items = new ArrayList(); - for (V1alpha1ClusterCIDR item : items) { - this.addToItems(item); - } - } else { - this.items = null; - } - return (A) this; - } - - public A withItems(io.kubernetes.client.openapi.models.V1alpha1ClusterCIDR... items) { - if (this.items != null) { - this.items.clear(); - _visitables.remove("items"); - } - if (items != null) { - for (V1alpha1ClusterCIDR item : items) { - this.addToItems(item); - } - } - return (A) this; - } - - public boolean hasItems() { - return this.items != null && !this.items.isEmpty(); - } - - public ItemsNested addNewItem() { - return new ItemsNested(-1, null); - } - - public ItemsNested addNewItemLike(V1alpha1ClusterCIDR item) { - return new ItemsNested(-1, item); - } - - public ItemsNested setNewItemLike(int index,V1alpha1ClusterCIDR item) { - return new ItemsNested(index, item); - } - - public ItemsNested editItem(int index) { - if (items.size() <= index) throw new RuntimeException("Can't edit items. Index exceeds size."); - return setNewItemLike(index, buildItem(index)); - } - - public ItemsNested editFirstItem() { - if (items.size() == 0) throw new RuntimeException("Can't edit first items. The list is empty."); - return setNewItemLike(0, buildItem(0)); - } - - public ItemsNested editLastItem() { - int index = items.size() - 1; - if (index < 0) throw new RuntimeException("Can't edit last items. The list is empty."); - return setNewItemLike(index, buildItem(index)); - } - - public ItemsNested editMatchingItem(Predicate predicate) { - int index = -1; - for (int i=0;i withNewMetadata() { - return new MetadataNested(null); - } - - public MetadataNested withNewMetadataLike(V1ListMeta item) { - return new MetadataNested(item); - } - - public MetadataNested editMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(null)); - } - - public MetadataNested editOrNewMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(new V1ListMetaBuilder().build())); - } - - public MetadataNested editOrNewMetadataLike(V1ListMeta item) { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(item)); - } - - public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; - V1alpha1ClusterCIDRListFluent that = (V1alpha1ClusterCIDRListFluent) o; - if (!java.util.Objects.equals(apiVersion, that.apiVersion)) return false; - if (!java.util.Objects.equals(items, that.items)) return false; - if (!java.util.Objects.equals(kind, that.kind)) return false; - if (!java.util.Objects.equals(metadata, that.metadata)) return false; - return true; - } - - public int hashCode() { - return java.util.Objects.hash(apiVersion, items, kind, metadata, super.hashCode()); - } - - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("{"); - if (apiVersion != null) { sb.append("apiVersion:"); sb.append(apiVersion + ","); } - if (items != null && !items.isEmpty()) { sb.append("items:"); sb.append(items + ","); } - if (kind != null) { sb.append("kind:"); sb.append(kind + ","); } - if (metadata != null) { sb.append("metadata:"); sb.append(metadata); } - sb.append("}"); - return sb.toString(); - } - public class ItemsNested extends V1alpha1ClusterCIDRFluent> implements Nested{ - ItemsNested(int index,V1alpha1ClusterCIDR item) { - this.index = index; - this.builder = new V1alpha1ClusterCIDRBuilder(this, item); - } - V1alpha1ClusterCIDRBuilder builder; - int index; - - public N and() { - return (N) V1alpha1ClusterCIDRListFluent.this.setToItems(index,builder.build()); - } - - public N endItem() { - return and(); - } - - - } - public class MetadataNested extends V1ListMetaFluent> implements Nested{ - MetadataNested(V1ListMeta item) { - this.builder = new V1ListMetaBuilder(this, item); - } - V1ListMetaBuilder builder; - - public N and() { - return (N) V1alpha1ClusterCIDRListFluent.this.withMetadata(builder.build()); - } - - public N endMetadata() { - return and(); - } - - - } - -} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ClusterCIDRSpecBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ClusterCIDRSpecBuilder.java deleted file mode 100644 index 282c6d7986..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ClusterCIDRSpecBuilder.java +++ /dev/null @@ -1,34 +0,0 @@ -package io.kubernetes.client.openapi.models; - -import io.kubernetes.client.fluent.VisitableBuilder; -public class V1alpha1ClusterCIDRSpecBuilder extends V1alpha1ClusterCIDRSpecFluent implements VisitableBuilder{ - public V1alpha1ClusterCIDRSpecBuilder() { - this(new V1alpha1ClusterCIDRSpec()); - } - - public V1alpha1ClusterCIDRSpecBuilder(V1alpha1ClusterCIDRSpecFluent fluent) { - this(fluent, new V1alpha1ClusterCIDRSpec()); - } - - public V1alpha1ClusterCIDRSpecBuilder(V1alpha1ClusterCIDRSpecFluent fluent,V1alpha1ClusterCIDRSpec instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - - public V1alpha1ClusterCIDRSpecBuilder(V1alpha1ClusterCIDRSpec instance) { - this.fluent = this; - this.copyInstance(instance); - } - V1alpha1ClusterCIDRSpecFluent fluent; - - public V1alpha1ClusterCIDRSpec build() { - V1alpha1ClusterCIDRSpec buildable = new V1alpha1ClusterCIDRSpec(); - buildable.setIpv4(fluent.getIpv4()); - buildable.setIpv6(fluent.getIpv6()); - buildable.setNodeSelector(fluent.buildNodeSelector()); - buildable.setPerNodeHostBits(fluent.getPerNodeHostBits()); - return buildable; - } - - -} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ClusterCIDRSpecFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ClusterCIDRSpecFluent.java deleted file mode 100644 index 1f271246b8..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ClusterCIDRSpecFluent.java +++ /dev/null @@ -1,158 +0,0 @@ -package io.kubernetes.client.openapi.models; - -import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.Nested; -import java.lang.String; -import java.lang.Integer; -import io.kubernetes.client.fluent.BaseFluent; -import java.lang.Object; - -/** - * Generated - */ -@SuppressWarnings("unchecked") -public class V1alpha1ClusterCIDRSpecFluent> extends BaseFluent{ - public V1alpha1ClusterCIDRSpecFluent() { - } - - public V1alpha1ClusterCIDRSpecFluent(V1alpha1ClusterCIDRSpec instance) { - this.copyInstance(instance); - } - private String ipv4; - private String ipv6; - private V1NodeSelectorBuilder nodeSelector; - private Integer perNodeHostBits; - - protected void copyInstance(V1alpha1ClusterCIDRSpec instance) { - instance = (instance != null ? instance : new V1alpha1ClusterCIDRSpec()); - if (instance != null) { - this.withIpv4(instance.getIpv4()); - this.withIpv6(instance.getIpv6()); - this.withNodeSelector(instance.getNodeSelector()); - this.withPerNodeHostBits(instance.getPerNodeHostBits()); - } - } - - public String getIpv4() { - return this.ipv4; - } - - public A withIpv4(String ipv4) { - this.ipv4 = ipv4; - return (A) this; - } - - public boolean hasIpv4() { - return this.ipv4 != null; - } - - public String getIpv6() { - return this.ipv6; - } - - public A withIpv6(String ipv6) { - this.ipv6 = ipv6; - return (A) this; - } - - public boolean hasIpv6() { - return this.ipv6 != null; - } - - public V1NodeSelector buildNodeSelector() { - return this.nodeSelector != null ? this.nodeSelector.build() : null; - } - - public A withNodeSelector(V1NodeSelector nodeSelector) { - this._visitables.remove("nodeSelector"); - if (nodeSelector != null) { - this.nodeSelector = new V1NodeSelectorBuilder(nodeSelector); - this._visitables.get("nodeSelector").add(this.nodeSelector); - } else { - this.nodeSelector = null; - this._visitables.get("nodeSelector").remove(this.nodeSelector); - } - return (A) this; - } - - public boolean hasNodeSelector() { - return this.nodeSelector != null; - } - - public NodeSelectorNested withNewNodeSelector() { - return new NodeSelectorNested(null); - } - - public NodeSelectorNested withNewNodeSelectorLike(V1NodeSelector item) { - return new NodeSelectorNested(item); - } - - public NodeSelectorNested editNodeSelector() { - return withNewNodeSelectorLike(java.util.Optional.ofNullable(buildNodeSelector()).orElse(null)); - } - - public NodeSelectorNested editOrNewNodeSelector() { - return withNewNodeSelectorLike(java.util.Optional.ofNullable(buildNodeSelector()).orElse(new V1NodeSelectorBuilder().build())); - } - - public NodeSelectorNested editOrNewNodeSelectorLike(V1NodeSelector item) { - return withNewNodeSelectorLike(java.util.Optional.ofNullable(buildNodeSelector()).orElse(item)); - } - - public Integer getPerNodeHostBits() { - return this.perNodeHostBits; - } - - public A withPerNodeHostBits(Integer perNodeHostBits) { - this.perNodeHostBits = perNodeHostBits; - return (A) this; - } - - public boolean hasPerNodeHostBits() { - return this.perNodeHostBits != null; - } - - public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; - V1alpha1ClusterCIDRSpecFluent that = (V1alpha1ClusterCIDRSpecFluent) o; - if (!java.util.Objects.equals(ipv4, that.ipv4)) return false; - if (!java.util.Objects.equals(ipv6, that.ipv6)) return false; - if (!java.util.Objects.equals(nodeSelector, that.nodeSelector)) return false; - if (!java.util.Objects.equals(perNodeHostBits, that.perNodeHostBits)) return false; - return true; - } - - public int hashCode() { - return java.util.Objects.hash(ipv4, ipv6, nodeSelector, perNodeHostBits, super.hashCode()); - } - - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("{"); - if (ipv4 != null) { sb.append("ipv4:"); sb.append(ipv4 + ","); } - if (ipv6 != null) { sb.append("ipv6:"); sb.append(ipv6 + ","); } - if (nodeSelector != null) { sb.append("nodeSelector:"); sb.append(nodeSelector + ","); } - if (perNodeHostBits != null) { sb.append("perNodeHostBits:"); sb.append(perNodeHostBits); } - sb.append("}"); - return sb.toString(); - } - public class NodeSelectorNested extends V1NodeSelectorFluent> implements Nested{ - NodeSelectorNested(V1NodeSelector item) { - this.builder = new V1NodeSelectorBuilder(this, item); - } - V1NodeSelectorBuilder builder; - - public N and() { - return (N) V1alpha1ClusterCIDRSpecFluent.this.withNodeSelector(builder.build()); - } - - public N endNodeSelector() { - return and(); - } - - - } - -} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ClusterTrustBundleListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ClusterTrustBundleListFluent.java index b0c02ee941..afe4ace160 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ClusterTrustBundleListFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ClusterTrustBundleListFluent.java @@ -54,14 +54,26 @@ public boolean hasApiVersion() { public A addToItems(int index,V1alpha1ClusterTrustBundle item) { if (this.items == null) {this.items = new ArrayList();} V1alpha1ClusterTrustBundleBuilder builder = new V1alpha1ClusterTrustBundleBuilder(item); - if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); items.add(builder); } else { _visitables.get("items").add(index, builder); items.add(index, builder);} + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.add(index, builder); + } return (A)this; } public A setToItems(int index,V1alpha1ClusterTrustBundle item) { if (this.items == null) {this.items = new ArrayList();} V1alpha1ClusterTrustBundleBuilder builder = new V1alpha1ClusterTrustBundleBuilder(item); - if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); items.add(builder); } else { _visitables.get("items").set(index, builder); items.set(index, builder);} + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.set(index, builder); + } return (A)this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ExpressionWarningBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ExpressionWarningBuilder.java deleted file mode 100644 index a1bfaa9ca7..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ExpressionWarningBuilder.java +++ /dev/null @@ -1,32 +0,0 @@ -package io.kubernetes.client.openapi.models; - -import io.kubernetes.client.fluent.VisitableBuilder; -public class V1alpha1ExpressionWarningBuilder extends V1alpha1ExpressionWarningFluent implements VisitableBuilder{ - public V1alpha1ExpressionWarningBuilder() { - this(new V1alpha1ExpressionWarning()); - } - - public V1alpha1ExpressionWarningBuilder(V1alpha1ExpressionWarningFluent fluent) { - this(fluent, new V1alpha1ExpressionWarning()); - } - - public V1alpha1ExpressionWarningBuilder(V1alpha1ExpressionWarningFluent fluent,V1alpha1ExpressionWarning instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - - public V1alpha1ExpressionWarningBuilder(V1alpha1ExpressionWarning instance) { - this.fluent = this; - this.copyInstance(instance); - } - V1alpha1ExpressionWarningFluent fluent; - - public V1alpha1ExpressionWarning build() { - V1alpha1ExpressionWarning buildable = new V1alpha1ExpressionWarning(); - buildable.setFieldRef(fluent.getFieldRef()); - buildable.setWarning(fluent.getWarning()); - return buildable; - } - - -} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ExpressionWarningFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ExpressionWarningFluent.java deleted file mode 100644 index e06b5edc6f..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ExpressionWarningFluent.java +++ /dev/null @@ -1,80 +0,0 @@ -package io.kubernetes.client.openapi.models; - -import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.BaseFluent; -import java.lang.Object; -import java.lang.String; - -/** - * Generated - */ -@SuppressWarnings("unchecked") -public class V1alpha1ExpressionWarningFluent> extends BaseFluent{ - public V1alpha1ExpressionWarningFluent() { - } - - public V1alpha1ExpressionWarningFluent(V1alpha1ExpressionWarning instance) { - this.copyInstance(instance); - } - private String fieldRef; - private String warning; - - protected void copyInstance(V1alpha1ExpressionWarning instance) { - instance = (instance != null ? instance : new V1alpha1ExpressionWarning()); - if (instance != null) { - this.withFieldRef(instance.getFieldRef()); - this.withWarning(instance.getWarning()); - } - } - - public String getFieldRef() { - return this.fieldRef; - } - - public A withFieldRef(String fieldRef) { - this.fieldRef = fieldRef; - return (A) this; - } - - public boolean hasFieldRef() { - return this.fieldRef != null; - } - - public String getWarning() { - return this.warning; - } - - public A withWarning(String warning) { - this.warning = warning; - return (A) this; - } - - public boolean hasWarning() { - return this.warning != null; - } - - public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; - V1alpha1ExpressionWarningFluent that = (V1alpha1ExpressionWarningFluent) o; - if (!java.util.Objects.equals(fieldRef, that.fieldRef)) return false; - if (!java.util.Objects.equals(warning, that.warning)) return false; - return true; - } - - public int hashCode() { - return java.util.Objects.hash(fieldRef, warning, super.hashCode()); - } - - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("{"); - if (fieldRef != null) { sb.append("fieldRef:"); sb.append(fieldRef + ","); } - if (warning != null) { sb.append("warning:"); sb.append(warning); } - sb.append("}"); - return sb.toString(); - } - - -} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1GroupVersionResourceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1GroupVersionResourceBuilder.java new file mode 100644 index 0000000000..fe63812c20 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1GroupVersionResourceBuilder.java @@ -0,0 +1,33 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +public class V1alpha1GroupVersionResourceBuilder extends V1alpha1GroupVersionResourceFluent implements VisitableBuilder{ + public V1alpha1GroupVersionResourceBuilder() { + this(new V1alpha1GroupVersionResource()); + } + + public V1alpha1GroupVersionResourceBuilder(V1alpha1GroupVersionResourceFluent fluent) { + this(fluent, new V1alpha1GroupVersionResource()); + } + + public V1alpha1GroupVersionResourceBuilder(V1alpha1GroupVersionResourceFluent fluent,V1alpha1GroupVersionResource instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1alpha1GroupVersionResourceBuilder(V1alpha1GroupVersionResource instance) { + this.fluent = this; + this.copyInstance(instance); + } + V1alpha1GroupVersionResourceFluent fluent; + + public V1alpha1GroupVersionResource build() { + V1alpha1GroupVersionResource buildable = new V1alpha1GroupVersionResource(); + buildable.setGroup(fluent.getGroup()); + buildable.setResource(fluent.getResource()); + buildable.setVersion(fluent.getVersion()); + return buildable; + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1GroupVersionResourceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1GroupVersionResourceFluent.java new file mode 100644 index 0000000000..125bf9643c --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1GroupVersionResourceFluent.java @@ -0,0 +1,97 @@ +package io.kubernetes.client.openapi.models; + +import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Object; +import java.lang.String; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1alpha1GroupVersionResourceFluent> extends BaseFluent{ + public V1alpha1GroupVersionResourceFluent() { + } + + public V1alpha1GroupVersionResourceFluent(V1alpha1GroupVersionResource instance) { + this.copyInstance(instance); + } + private String group; + private String resource; + private String version; + + protected void copyInstance(V1alpha1GroupVersionResource instance) { + instance = (instance != null ? instance : new V1alpha1GroupVersionResource()); + if (instance != null) { + this.withGroup(instance.getGroup()); + this.withResource(instance.getResource()); + this.withVersion(instance.getVersion()); + } + } + + public String getGroup() { + return this.group; + } + + public A withGroup(String group) { + this.group = group; + return (A) this; + } + + public boolean hasGroup() { + return this.group != null; + } + + public String getResource() { + return this.resource; + } + + public A withResource(String resource) { + this.resource = resource; + return (A) this; + } + + public boolean hasResource() { + return this.resource != null; + } + + public String getVersion() { + return this.version; + } + + public A withVersion(String version) { + this.version = version; + return (A) this; + } + + public boolean hasVersion() { + return this.version != null; + } + + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + if (!super.equals(o)) return false; + V1alpha1GroupVersionResourceFluent that = (V1alpha1GroupVersionResourceFluent) o; + if (!java.util.Objects.equals(group, that.group)) return false; + if (!java.util.Objects.equals(resource, that.resource)) return false; + if (!java.util.Objects.equals(version, that.version)) return false; + return true; + } + + public int hashCode() { + return java.util.Objects.hash(group, resource, version, super.hashCode()); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (group != null) { sb.append("group:"); sb.append(group + ","); } + if (resource != null) { sb.append("resource:"); sb.append(resource + ","); } + if (version != null) { sb.append("version:"); sb.append(version); } + sb.append("}"); + return sb.toString(); + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1IPAddressBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1IPAddressBuilder.java deleted file mode 100644 index 98fc8275ab..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1IPAddressBuilder.java +++ /dev/null @@ -1,34 +0,0 @@ -package io.kubernetes.client.openapi.models; - -import io.kubernetes.client.fluent.VisitableBuilder; -public class V1alpha1IPAddressBuilder extends V1alpha1IPAddressFluent implements VisitableBuilder{ - public V1alpha1IPAddressBuilder() { - this(new V1alpha1IPAddress()); - } - - public V1alpha1IPAddressBuilder(V1alpha1IPAddressFluent fluent) { - this(fluent, new V1alpha1IPAddress()); - } - - public V1alpha1IPAddressBuilder(V1alpha1IPAddressFluent fluent,V1alpha1IPAddress instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - - public V1alpha1IPAddressBuilder(V1alpha1IPAddress instance) { - this.fluent = this; - this.copyInstance(instance); - } - V1alpha1IPAddressFluent fluent; - - public V1alpha1IPAddress build() { - V1alpha1IPAddress buildable = new V1alpha1IPAddress(); - buildable.setApiVersion(fluent.getApiVersion()); - buildable.setKind(fluent.getKind()); - buildable.setMetadata(fluent.buildMetadata()); - buildable.setSpec(fluent.buildSpec()); - return buildable; - } - - -} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1IPAddressFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1IPAddressFluent.java deleted file mode 100644 index 8112f4e5f4..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1IPAddressFluent.java +++ /dev/null @@ -1,200 +0,0 @@ -package io.kubernetes.client.openapi.models; - -import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.Nested; -import java.lang.String; -import io.kubernetes.client.fluent.BaseFluent; -import java.lang.Object; - -/** - * Generated - */ -@SuppressWarnings("unchecked") -public class V1alpha1IPAddressFluent> extends BaseFluent{ - public V1alpha1IPAddressFluent() { - } - - public V1alpha1IPAddressFluent(V1alpha1IPAddress instance) { - this.copyInstance(instance); - } - private String apiVersion; - private String kind; - private V1ObjectMetaBuilder metadata; - private V1alpha1IPAddressSpecBuilder spec; - - protected void copyInstance(V1alpha1IPAddress instance) { - instance = (instance != null ? instance : new V1alpha1IPAddress()); - if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withKind(instance.getKind()); - this.withMetadata(instance.getMetadata()); - this.withSpec(instance.getSpec()); - } - } - - public String getApiVersion() { - return this.apiVersion; - } - - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; - } - - public boolean hasApiVersion() { - return this.apiVersion != null; - } - - public String getKind() { - return this.kind; - } - - public A withKind(String kind) { - this.kind = kind; - return (A) this; - } - - public boolean hasKind() { - return this.kind != null; - } - - public V1ObjectMeta buildMetadata() { - return this.metadata != null ? this.metadata.build() : null; - } - - public A withMetadata(V1ObjectMeta metadata) { - this._visitables.remove("metadata"); - if (metadata != null) { - this.metadata = new V1ObjectMetaBuilder(metadata); - this._visitables.get("metadata").add(this.metadata); - } else { - this.metadata = null; - this._visitables.get("metadata").remove(this.metadata); - } - return (A) this; - } - - public boolean hasMetadata() { - return this.metadata != null; - } - - public MetadataNested withNewMetadata() { - return new MetadataNested(null); - } - - public MetadataNested withNewMetadataLike(V1ObjectMeta item) { - return new MetadataNested(item); - } - - public MetadataNested editMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(null)); - } - - public MetadataNested editOrNewMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(new V1ObjectMetaBuilder().build())); - } - - public MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(item)); - } - - public V1alpha1IPAddressSpec buildSpec() { - return this.spec != null ? this.spec.build() : null; - } - - public A withSpec(V1alpha1IPAddressSpec spec) { - this._visitables.remove("spec"); - if (spec != null) { - this.spec = new V1alpha1IPAddressSpecBuilder(spec); - this._visitables.get("spec").add(this.spec); - } else { - this.spec = null; - this._visitables.get("spec").remove(this.spec); - } - return (A) this; - } - - public boolean hasSpec() { - return this.spec != null; - } - - public SpecNested withNewSpec() { - return new SpecNested(null); - } - - public SpecNested withNewSpecLike(V1alpha1IPAddressSpec item) { - return new SpecNested(item); - } - - public SpecNested editSpec() { - return withNewSpecLike(java.util.Optional.ofNullable(buildSpec()).orElse(null)); - } - - public SpecNested editOrNewSpec() { - return withNewSpecLike(java.util.Optional.ofNullable(buildSpec()).orElse(new V1alpha1IPAddressSpecBuilder().build())); - } - - public SpecNested editOrNewSpecLike(V1alpha1IPAddressSpec item) { - return withNewSpecLike(java.util.Optional.ofNullable(buildSpec()).orElse(item)); - } - - public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; - V1alpha1IPAddressFluent that = (V1alpha1IPAddressFluent) o; - if (!java.util.Objects.equals(apiVersion, that.apiVersion)) return false; - if (!java.util.Objects.equals(kind, that.kind)) return false; - if (!java.util.Objects.equals(metadata, that.metadata)) return false; - if (!java.util.Objects.equals(spec, that.spec)) return false; - return true; - } - - public int hashCode() { - return java.util.Objects.hash(apiVersion, kind, metadata, spec, super.hashCode()); - } - - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("{"); - if (apiVersion != null) { sb.append("apiVersion:"); sb.append(apiVersion + ","); } - if (kind != null) { sb.append("kind:"); sb.append(kind + ","); } - if (metadata != null) { sb.append("metadata:"); sb.append(metadata + ","); } - if (spec != null) { sb.append("spec:"); sb.append(spec); } - sb.append("}"); - return sb.toString(); - } - public class MetadataNested extends V1ObjectMetaFluent> implements Nested{ - MetadataNested(V1ObjectMeta item) { - this.builder = new V1ObjectMetaBuilder(this, item); - } - V1ObjectMetaBuilder builder; - - public N and() { - return (N) V1alpha1IPAddressFluent.this.withMetadata(builder.build()); - } - - public N endMetadata() { - return and(); - } - - - } - public class SpecNested extends V1alpha1IPAddressSpecFluent> implements Nested{ - SpecNested(V1alpha1IPAddressSpec item) { - this.builder = new V1alpha1IPAddressSpecBuilder(this, item); - } - V1alpha1IPAddressSpecBuilder builder; - - public N and() { - return (N) V1alpha1IPAddressFluent.this.withSpec(builder.build()); - } - - public N endSpec() { - return and(); - } - - - } - -} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1IPAddressListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1IPAddressListBuilder.java deleted file mode 100644 index c8805d6822..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1IPAddressListBuilder.java +++ /dev/null @@ -1,34 +0,0 @@ -package io.kubernetes.client.openapi.models; - -import io.kubernetes.client.fluent.VisitableBuilder; -public class V1alpha1IPAddressListBuilder extends V1alpha1IPAddressListFluent implements VisitableBuilder{ - public V1alpha1IPAddressListBuilder() { - this(new V1alpha1IPAddressList()); - } - - public V1alpha1IPAddressListBuilder(V1alpha1IPAddressListFluent fluent) { - this(fluent, new V1alpha1IPAddressList()); - } - - public V1alpha1IPAddressListBuilder(V1alpha1IPAddressListFluent fluent,V1alpha1IPAddressList instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - - public V1alpha1IPAddressListBuilder(V1alpha1IPAddressList instance) { - this.fluent = this; - this.copyInstance(instance); - } - V1alpha1IPAddressListFluent fluent; - - public V1alpha1IPAddressList build() { - V1alpha1IPAddressList buildable = new V1alpha1IPAddressList(); - buildable.setApiVersion(fluent.getApiVersion()); - buildable.setItems(fluent.buildItems()); - buildable.setKind(fluent.getKind()); - buildable.setMetadata(fluent.buildMetadata()); - return buildable; - } - - -} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1IPAddressListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1IPAddressListFluent.java deleted file mode 100644 index 27af33cc17..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1IPAddressListFluent.java +++ /dev/null @@ -1,319 +0,0 @@ -package io.kubernetes.client.openapi.models; - -import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.Nested; -import java.util.ArrayList; -import java.lang.String; -import java.util.function.Predicate; -import io.kubernetes.client.fluent.BaseFluent; -import java.util.Iterator; -import java.util.Collection; -import java.lang.Object; -import java.util.List; - -/** - * Generated - */ -@SuppressWarnings("unchecked") -public class V1alpha1IPAddressListFluent> extends BaseFluent{ - public V1alpha1IPAddressListFluent() { - } - - public V1alpha1IPAddressListFluent(V1alpha1IPAddressList instance) { - this.copyInstance(instance); - } - private String apiVersion; - private ArrayList items; - private String kind; - private V1ListMetaBuilder metadata; - - protected void copyInstance(V1alpha1IPAddressList instance) { - instance = (instance != null ? instance : new V1alpha1IPAddressList()); - if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withItems(instance.getItems()); - this.withKind(instance.getKind()); - this.withMetadata(instance.getMetadata()); - } - } - - public String getApiVersion() { - return this.apiVersion; - } - - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; - } - - public boolean hasApiVersion() { - return this.apiVersion != null; - } - - public A addToItems(int index,V1alpha1IPAddress item) { - if (this.items == null) {this.items = new ArrayList();} - V1alpha1IPAddressBuilder builder = new V1alpha1IPAddressBuilder(item); - if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); items.add(builder); } else { _visitables.get("items").add(index, builder); items.add(index, builder);} - return (A)this; - } - - public A setToItems(int index,V1alpha1IPAddress item) { - if (this.items == null) {this.items = new ArrayList();} - V1alpha1IPAddressBuilder builder = new V1alpha1IPAddressBuilder(item); - if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); items.add(builder); } else { _visitables.get("items").set(index, builder); items.set(index, builder);} - return (A)this; - } - - public A addToItems(io.kubernetes.client.openapi.models.V1alpha1IPAddress... items) { - if (this.items == null) {this.items = new ArrayList();} - for (V1alpha1IPAddress item : items) {V1alpha1IPAddressBuilder builder = new V1alpha1IPAddressBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; - } - - public A addAllToItems(Collection items) { - if (this.items == null) {this.items = new ArrayList();} - for (V1alpha1IPAddress item : items) {V1alpha1IPAddressBuilder builder = new V1alpha1IPAddressBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; - } - - public A removeFromItems(io.kubernetes.client.openapi.models.V1alpha1IPAddress... items) { - if (this.items == null) return (A)this; - for (V1alpha1IPAddress item : items) {V1alpha1IPAddressBuilder builder = new V1alpha1IPAddressBuilder(item);_visitables.get("items").remove(builder); this.items.remove(builder);} return (A)this; - } - - public A removeAllFromItems(Collection items) { - if (this.items == null) return (A)this; - for (V1alpha1IPAddress item : items) {V1alpha1IPAddressBuilder builder = new V1alpha1IPAddressBuilder(item);_visitables.get("items").remove(builder); this.items.remove(builder);} return (A)this; - } - - public A removeMatchingFromItems(Predicate predicate) { - if (items == null) return (A) this; - final Iterator each = items.iterator(); - final List visitables = _visitables.get("items"); - while (each.hasNext()) { - V1alpha1IPAddressBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } - } - return (A)this; - } - - public List buildItems() { - return this.items != null ? build(items) : null; - } - - public V1alpha1IPAddress buildItem(int index) { - return this.items.get(index).build(); - } - - public V1alpha1IPAddress buildFirstItem() { - return this.items.get(0).build(); - } - - public V1alpha1IPAddress buildLastItem() { - return this.items.get(items.size() - 1).build(); - } - - public V1alpha1IPAddress buildMatchingItem(Predicate predicate) { - for (V1alpha1IPAddressBuilder item : items) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; - } - - public boolean hasMatchingItem(Predicate predicate) { - for (V1alpha1IPAddressBuilder item : items) { - if (predicate.test(item)) { - return true; - } - } - return false; - } - - public A withItems(List items) { - if (this.items != null) { - this._visitables.get("items").clear(); - } - if (items != null) { - this.items = new ArrayList(); - for (V1alpha1IPAddress item : items) { - this.addToItems(item); - } - } else { - this.items = null; - } - return (A) this; - } - - public A withItems(io.kubernetes.client.openapi.models.V1alpha1IPAddress... items) { - if (this.items != null) { - this.items.clear(); - _visitables.remove("items"); - } - if (items != null) { - for (V1alpha1IPAddress item : items) { - this.addToItems(item); - } - } - return (A) this; - } - - public boolean hasItems() { - return this.items != null && !this.items.isEmpty(); - } - - public ItemsNested addNewItem() { - return new ItemsNested(-1, null); - } - - public ItemsNested addNewItemLike(V1alpha1IPAddress item) { - return new ItemsNested(-1, item); - } - - public ItemsNested setNewItemLike(int index,V1alpha1IPAddress item) { - return new ItemsNested(index, item); - } - - public ItemsNested editItem(int index) { - if (items.size() <= index) throw new RuntimeException("Can't edit items. Index exceeds size."); - return setNewItemLike(index, buildItem(index)); - } - - public ItemsNested editFirstItem() { - if (items.size() == 0) throw new RuntimeException("Can't edit first items. The list is empty."); - return setNewItemLike(0, buildItem(0)); - } - - public ItemsNested editLastItem() { - int index = items.size() - 1; - if (index < 0) throw new RuntimeException("Can't edit last items. The list is empty."); - return setNewItemLike(index, buildItem(index)); - } - - public ItemsNested editMatchingItem(Predicate predicate) { - int index = -1; - for (int i=0;i withNewMetadata() { - return new MetadataNested(null); - } - - public MetadataNested withNewMetadataLike(V1ListMeta item) { - return new MetadataNested(item); - } - - public MetadataNested editMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(null)); - } - - public MetadataNested editOrNewMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(new V1ListMetaBuilder().build())); - } - - public MetadataNested editOrNewMetadataLike(V1ListMeta item) { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(item)); - } - - public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; - V1alpha1IPAddressListFluent that = (V1alpha1IPAddressListFluent) o; - if (!java.util.Objects.equals(apiVersion, that.apiVersion)) return false; - if (!java.util.Objects.equals(items, that.items)) return false; - if (!java.util.Objects.equals(kind, that.kind)) return false; - if (!java.util.Objects.equals(metadata, that.metadata)) return false; - return true; - } - - public int hashCode() { - return java.util.Objects.hash(apiVersion, items, kind, metadata, super.hashCode()); - } - - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("{"); - if (apiVersion != null) { sb.append("apiVersion:"); sb.append(apiVersion + ","); } - if (items != null && !items.isEmpty()) { sb.append("items:"); sb.append(items + ","); } - if (kind != null) { sb.append("kind:"); sb.append(kind + ","); } - if (metadata != null) { sb.append("metadata:"); sb.append(metadata); } - sb.append("}"); - return sb.toString(); - } - public class ItemsNested extends V1alpha1IPAddressFluent> implements Nested{ - ItemsNested(int index,V1alpha1IPAddress item) { - this.index = index; - this.builder = new V1alpha1IPAddressBuilder(this, item); - } - V1alpha1IPAddressBuilder builder; - int index; - - public N and() { - return (N) V1alpha1IPAddressListFluent.this.setToItems(index,builder.build()); - } - - public N endItem() { - return and(); - } - - - } - public class MetadataNested extends V1ListMetaFluent> implements Nested{ - MetadataNested(V1ListMeta item) { - this.builder = new V1ListMetaBuilder(this, item); - } - V1ListMetaBuilder builder; - - public N and() { - return (N) V1alpha1IPAddressListFluent.this.withMetadata(builder.build()); - } - - public N endMetadata() { - return and(); - } - - - } - -} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1IPAddressSpecBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1IPAddressSpecBuilder.java deleted file mode 100644 index 623e17da6f..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1IPAddressSpecBuilder.java +++ /dev/null @@ -1,31 +0,0 @@ -package io.kubernetes.client.openapi.models; - -import io.kubernetes.client.fluent.VisitableBuilder; -public class V1alpha1IPAddressSpecBuilder extends V1alpha1IPAddressSpecFluent implements VisitableBuilder{ - public V1alpha1IPAddressSpecBuilder() { - this(new V1alpha1IPAddressSpec()); - } - - public V1alpha1IPAddressSpecBuilder(V1alpha1IPAddressSpecFluent fluent) { - this(fluent, new V1alpha1IPAddressSpec()); - } - - public V1alpha1IPAddressSpecBuilder(V1alpha1IPAddressSpecFluent fluent,V1alpha1IPAddressSpec instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - - public V1alpha1IPAddressSpecBuilder(V1alpha1IPAddressSpec instance) { - this.fluent = this; - this.copyInstance(instance); - } - V1alpha1IPAddressSpecFluent fluent; - - public V1alpha1IPAddressSpec build() { - V1alpha1IPAddressSpec buildable = new V1alpha1IPAddressSpec(); - buildable.setParentRef(fluent.buildParentRef()); - return buildable; - } - - -} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1IPAddressSpecFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1IPAddressSpecFluent.java deleted file mode 100644 index 99225ec1d6..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1IPAddressSpecFluent.java +++ /dev/null @@ -1,106 +0,0 @@ -package io.kubernetes.client.openapi.models; - -import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.BaseFluent; -import io.kubernetes.client.fluent.Nested; -import java.lang.Object; -import java.lang.String; - -/** - * Generated - */ -@SuppressWarnings("unchecked") -public class V1alpha1IPAddressSpecFluent> extends BaseFluent{ - public V1alpha1IPAddressSpecFluent() { - } - - public V1alpha1IPAddressSpecFluent(V1alpha1IPAddressSpec instance) { - this.copyInstance(instance); - } - private V1alpha1ParentReferenceBuilder parentRef; - - protected void copyInstance(V1alpha1IPAddressSpec instance) { - instance = (instance != null ? instance : new V1alpha1IPAddressSpec()); - if (instance != null) { - this.withParentRef(instance.getParentRef()); - } - } - - public V1alpha1ParentReference buildParentRef() { - return this.parentRef != null ? this.parentRef.build() : null; - } - - public A withParentRef(V1alpha1ParentReference parentRef) { - this._visitables.remove("parentRef"); - if (parentRef != null) { - this.parentRef = new V1alpha1ParentReferenceBuilder(parentRef); - this._visitables.get("parentRef").add(this.parentRef); - } else { - this.parentRef = null; - this._visitables.get("parentRef").remove(this.parentRef); - } - return (A) this; - } - - public boolean hasParentRef() { - return this.parentRef != null; - } - - public ParentRefNested withNewParentRef() { - return new ParentRefNested(null); - } - - public ParentRefNested withNewParentRefLike(V1alpha1ParentReference item) { - return new ParentRefNested(item); - } - - public ParentRefNested editParentRef() { - return withNewParentRefLike(java.util.Optional.ofNullable(buildParentRef()).orElse(null)); - } - - public ParentRefNested editOrNewParentRef() { - return withNewParentRefLike(java.util.Optional.ofNullable(buildParentRef()).orElse(new V1alpha1ParentReferenceBuilder().build())); - } - - public ParentRefNested editOrNewParentRefLike(V1alpha1ParentReference item) { - return withNewParentRefLike(java.util.Optional.ofNullable(buildParentRef()).orElse(item)); - } - - public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; - V1alpha1IPAddressSpecFluent that = (V1alpha1IPAddressSpecFluent) o; - if (!java.util.Objects.equals(parentRef, that.parentRef)) return false; - return true; - } - - public int hashCode() { - return java.util.Objects.hash(parentRef, super.hashCode()); - } - - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("{"); - if (parentRef != null) { sb.append("parentRef:"); sb.append(parentRef); } - sb.append("}"); - return sb.toString(); - } - public class ParentRefNested extends V1alpha1ParentReferenceFluent> implements Nested{ - ParentRefNested(V1alpha1ParentReference item) { - this.builder = new V1alpha1ParentReferenceBuilder(this, item); - } - V1alpha1ParentReferenceBuilder builder; - - public N and() { - return (N) V1alpha1IPAddressSpecFluent.this.withParentRef(builder.build()); - } - - public N endParentRef() { - return and(); - } - - - } - -} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1JSONPatchBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1JSONPatchBuilder.java new file mode 100644 index 0000000000..f8a5992a31 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1JSONPatchBuilder.java @@ -0,0 +1,31 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +public class V1alpha1JSONPatchBuilder extends V1alpha1JSONPatchFluent implements VisitableBuilder{ + public V1alpha1JSONPatchBuilder() { + this(new V1alpha1JSONPatch()); + } + + public V1alpha1JSONPatchBuilder(V1alpha1JSONPatchFluent fluent) { + this(fluent, new V1alpha1JSONPatch()); + } + + public V1alpha1JSONPatchBuilder(V1alpha1JSONPatchFluent fluent,V1alpha1JSONPatch instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1alpha1JSONPatchBuilder(V1alpha1JSONPatch instance) { + this.fluent = this; + this.copyInstance(instance); + } + V1alpha1JSONPatchFluent fluent; + + public V1alpha1JSONPatch build() { + V1alpha1JSONPatch buildable = new V1alpha1JSONPatch(); + buildable.setExpression(fluent.getExpression()); + return buildable; + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1JSONPatchFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1JSONPatchFluent.java new file mode 100644 index 0000000000..076e987f92 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1JSONPatchFluent.java @@ -0,0 +1,63 @@ +package io.kubernetes.client.openapi.models; + +import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Object; +import java.lang.String; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1alpha1JSONPatchFluent> extends BaseFluent{ + public V1alpha1JSONPatchFluent() { + } + + public V1alpha1JSONPatchFluent(V1alpha1JSONPatch instance) { + this.copyInstance(instance); + } + private String expression; + + protected void copyInstance(V1alpha1JSONPatch instance) { + instance = (instance != null ? instance : new V1alpha1JSONPatch()); + if (instance != null) { + this.withExpression(instance.getExpression()); + } + } + + public String getExpression() { + return this.expression; + } + + public A withExpression(String expression) { + this.expression = expression; + return (A) this; + } + + public boolean hasExpression() { + return this.expression != null; + } + + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + if (!super.equals(o)) return false; + V1alpha1JSONPatchFluent that = (V1alpha1JSONPatchFluent) o; + if (!java.util.Objects.equals(expression, that.expression)) return false; + return true; + } + + public int hashCode() { + return java.util.Objects.hash(expression, super.hashCode()); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (expression != null) { sb.append("expression:"); sb.append(expression); } + sb.append("}"); + return sb.toString(); + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MatchResourcesFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MatchResourcesFluent.java index af7578ec26..e2346a5fe9 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MatchResourcesFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MatchResourcesFluent.java @@ -43,14 +43,26 @@ protected void copyInstance(V1alpha1MatchResources instance) { public A addToExcludeResourceRules(int index,V1alpha1NamedRuleWithOperations item) { if (this.excludeResourceRules == null) {this.excludeResourceRules = new ArrayList();} V1alpha1NamedRuleWithOperationsBuilder builder = new V1alpha1NamedRuleWithOperationsBuilder(item); - if (index < 0 || index >= excludeResourceRules.size()) { _visitables.get("excludeResourceRules").add(builder); excludeResourceRules.add(builder); } else { _visitables.get("excludeResourceRules").add(index, builder); excludeResourceRules.add(index, builder);} + if (index < 0 || index >= excludeResourceRules.size()) { + _visitables.get("excludeResourceRules").add(builder); + excludeResourceRules.add(builder); + } else { + _visitables.get("excludeResourceRules").add(builder); + excludeResourceRules.add(index, builder); + } return (A)this; } public A setToExcludeResourceRules(int index,V1alpha1NamedRuleWithOperations item) { if (this.excludeResourceRules == null) {this.excludeResourceRules = new ArrayList();} V1alpha1NamedRuleWithOperationsBuilder builder = new V1alpha1NamedRuleWithOperationsBuilder(item); - if (index < 0 || index >= excludeResourceRules.size()) { _visitables.get("excludeResourceRules").add(builder); excludeResourceRules.add(builder); } else { _visitables.get("excludeResourceRules").set(index, builder); excludeResourceRules.set(index, builder);} + if (index < 0 || index >= excludeResourceRules.size()) { + _visitables.get("excludeResourceRules").add(builder); + excludeResourceRules.add(builder); + } else { + _visitables.get("excludeResourceRules").add(builder); + excludeResourceRules.set(index, builder); + } return (A)this; } @@ -287,14 +299,26 @@ public ObjectSelectorNested editOrNewObjectSelectorLike(V1LabelSelector item) public A addToResourceRules(int index,V1alpha1NamedRuleWithOperations item) { if (this.resourceRules == null) {this.resourceRules = new ArrayList();} V1alpha1NamedRuleWithOperationsBuilder builder = new V1alpha1NamedRuleWithOperationsBuilder(item); - if (index < 0 || index >= resourceRules.size()) { _visitables.get("resourceRules").add(builder); resourceRules.add(builder); } else { _visitables.get("resourceRules").add(index, builder); resourceRules.add(index, builder);} + if (index < 0 || index >= resourceRules.size()) { + _visitables.get("resourceRules").add(builder); + resourceRules.add(builder); + } else { + _visitables.get("resourceRules").add(builder); + resourceRules.add(index, builder); + } return (A)this; } public A setToResourceRules(int index,V1alpha1NamedRuleWithOperations item) { if (this.resourceRules == null) {this.resourceRules = new ArrayList();} V1alpha1NamedRuleWithOperationsBuilder builder = new V1alpha1NamedRuleWithOperationsBuilder(item); - if (index < 0 || index >= resourceRules.size()) { _visitables.get("resourceRules").add(builder); resourceRules.add(builder); } else { _visitables.get("resourceRules").set(index, builder); resourceRules.set(index, builder);} + if (index < 0 || index >= resourceRules.size()) { + _visitables.get("resourceRules").add(builder); + resourceRules.add(builder); + } else { + _visitables.get("resourceRules").add(builder); + resourceRules.set(index, builder); + } return (A)this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MigrationConditionBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MigrationConditionBuilder.java new file mode 100644 index 0000000000..408d3bb89c --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MigrationConditionBuilder.java @@ -0,0 +1,35 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +public class V1alpha1MigrationConditionBuilder extends V1alpha1MigrationConditionFluent implements VisitableBuilder{ + public V1alpha1MigrationConditionBuilder() { + this(new V1alpha1MigrationCondition()); + } + + public V1alpha1MigrationConditionBuilder(V1alpha1MigrationConditionFluent fluent) { + this(fluent, new V1alpha1MigrationCondition()); + } + + public V1alpha1MigrationConditionBuilder(V1alpha1MigrationConditionFluent fluent,V1alpha1MigrationCondition instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1alpha1MigrationConditionBuilder(V1alpha1MigrationCondition instance) { + this.fluent = this; + this.copyInstance(instance); + } + V1alpha1MigrationConditionFluent fluent; + + public V1alpha1MigrationCondition build() { + V1alpha1MigrationCondition buildable = new V1alpha1MigrationCondition(); + buildable.setLastUpdateTime(fluent.getLastUpdateTime()); + buildable.setMessage(fluent.getMessage()); + buildable.setReason(fluent.getReason()); + buildable.setStatus(fluent.getStatus()); + buildable.setType(fluent.getType()); + return buildable; + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MigrationConditionFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MigrationConditionFluent.java new file mode 100644 index 0000000000..cd557f599d --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MigrationConditionFluent.java @@ -0,0 +1,132 @@ +package io.kubernetes.client.openapi.models; + +import java.time.OffsetDateTime; +import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Object; +import java.lang.String; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1alpha1MigrationConditionFluent> extends BaseFluent{ + public V1alpha1MigrationConditionFluent() { + } + + public V1alpha1MigrationConditionFluent(V1alpha1MigrationCondition instance) { + this.copyInstance(instance); + } + private OffsetDateTime lastUpdateTime; + private String message; + private String reason; + private String status; + private String type; + + protected void copyInstance(V1alpha1MigrationCondition instance) { + instance = (instance != null ? instance : new V1alpha1MigrationCondition()); + if (instance != null) { + this.withLastUpdateTime(instance.getLastUpdateTime()); + this.withMessage(instance.getMessage()); + this.withReason(instance.getReason()); + this.withStatus(instance.getStatus()); + this.withType(instance.getType()); + } + } + + public OffsetDateTime getLastUpdateTime() { + return this.lastUpdateTime; + } + + public A withLastUpdateTime(OffsetDateTime lastUpdateTime) { + this.lastUpdateTime = lastUpdateTime; + return (A) this; + } + + public boolean hasLastUpdateTime() { + return this.lastUpdateTime != null; + } + + public String getMessage() { + return this.message; + } + + public A withMessage(String message) { + this.message = message; + return (A) this; + } + + public boolean hasMessage() { + return this.message != null; + } + + public String getReason() { + return this.reason; + } + + public A withReason(String reason) { + this.reason = reason; + return (A) this; + } + + public boolean hasReason() { + return this.reason != null; + } + + public String getStatus() { + return this.status; + } + + public A withStatus(String status) { + this.status = status; + return (A) this; + } + + public boolean hasStatus() { + return this.status != null; + } + + public String getType() { + return this.type; + } + + public A withType(String type) { + this.type = type; + return (A) this; + } + + public boolean hasType() { + return this.type != null; + } + + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + if (!super.equals(o)) return false; + V1alpha1MigrationConditionFluent that = (V1alpha1MigrationConditionFluent) o; + if (!java.util.Objects.equals(lastUpdateTime, that.lastUpdateTime)) return false; + if (!java.util.Objects.equals(message, that.message)) return false; + if (!java.util.Objects.equals(reason, that.reason)) return false; + if (!java.util.Objects.equals(status, that.status)) return false; + if (!java.util.Objects.equals(type, that.type)) return false; + return true; + } + + public int hashCode() { + return java.util.Objects.hash(lastUpdateTime, message, reason, status, type, super.hashCode()); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (lastUpdateTime != null) { sb.append("lastUpdateTime:"); sb.append(lastUpdateTime + ","); } + if (message != null) { sb.append("message:"); sb.append(message + ","); } + if (reason != null) { sb.append("reason:"); sb.append(reason + ","); } + if (status != null) { sb.append("status:"); sb.append(status + ","); } + if (type != null) { sb.append("type:"); sb.append(type); } + sb.append("}"); + return sb.toString(); + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MutatingAdmissionPolicyBindingBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MutatingAdmissionPolicyBindingBuilder.java new file mode 100644 index 0000000000..a760da766c --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MutatingAdmissionPolicyBindingBuilder.java @@ -0,0 +1,34 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +public class V1alpha1MutatingAdmissionPolicyBindingBuilder extends V1alpha1MutatingAdmissionPolicyBindingFluent implements VisitableBuilder{ + public V1alpha1MutatingAdmissionPolicyBindingBuilder() { + this(new V1alpha1MutatingAdmissionPolicyBinding()); + } + + public V1alpha1MutatingAdmissionPolicyBindingBuilder(V1alpha1MutatingAdmissionPolicyBindingFluent fluent) { + this(fluent, new V1alpha1MutatingAdmissionPolicyBinding()); + } + + public V1alpha1MutatingAdmissionPolicyBindingBuilder(V1alpha1MutatingAdmissionPolicyBindingFluent fluent,V1alpha1MutatingAdmissionPolicyBinding instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1alpha1MutatingAdmissionPolicyBindingBuilder(V1alpha1MutatingAdmissionPolicyBinding instance) { + this.fluent = this; + this.copyInstance(instance); + } + V1alpha1MutatingAdmissionPolicyBindingFluent fluent; + + public V1alpha1MutatingAdmissionPolicyBinding build() { + V1alpha1MutatingAdmissionPolicyBinding buildable = new V1alpha1MutatingAdmissionPolicyBinding(); + buildable.setApiVersion(fluent.getApiVersion()); + buildable.setKind(fluent.getKind()); + buildable.setMetadata(fluent.buildMetadata()); + buildable.setSpec(fluent.buildSpec()); + return buildable; + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MutatingAdmissionPolicyBindingFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MutatingAdmissionPolicyBindingFluent.java new file mode 100644 index 0000000000..e061e75d7d --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MutatingAdmissionPolicyBindingFluent.java @@ -0,0 +1,200 @@ +package io.kubernetes.client.openapi.models; + +import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.Nested; +import java.lang.String; +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Object; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1alpha1MutatingAdmissionPolicyBindingFluent> extends BaseFluent{ + public V1alpha1MutatingAdmissionPolicyBindingFluent() { + } + + public V1alpha1MutatingAdmissionPolicyBindingFluent(V1alpha1MutatingAdmissionPolicyBinding instance) { + this.copyInstance(instance); + } + private String apiVersion; + private String kind; + private V1ObjectMetaBuilder metadata; + private V1alpha1MutatingAdmissionPolicyBindingSpecBuilder spec; + + protected void copyInstance(V1alpha1MutatingAdmissionPolicyBinding instance) { + instance = (instance != null ? instance : new V1alpha1MutatingAdmissionPolicyBinding()); + if (instance != null) { + this.withApiVersion(instance.getApiVersion()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); + this.withSpec(instance.getSpec()); + } + } + + public String getApiVersion() { + return this.apiVersion; + } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + + public boolean hasApiVersion() { + return this.apiVersion != null; + } + + public String getKind() { + return this.kind; + } + + public A withKind(String kind) { + this.kind = kind; + return (A) this; + } + + public boolean hasKind() { + return this.kind != null; + } + + public V1ObjectMeta buildMetadata() { + return this.metadata != null ? this.metadata.build() : null; + } + + public A withMetadata(V1ObjectMeta metadata) { + this._visitables.remove("metadata"); + if (metadata != null) { + this.metadata = new V1ObjectMetaBuilder(metadata); + this._visitables.get("metadata").add(this.metadata); + } else { + this.metadata = null; + this._visitables.get("metadata").remove(this.metadata); + } + return (A) this; + } + + public boolean hasMetadata() { + return this.metadata != null; + } + + public MetadataNested withNewMetadata() { + return new MetadataNested(null); + } + + public MetadataNested withNewMetadataLike(V1ObjectMeta item) { + return new MetadataNested(item); + } + + public MetadataNested editMetadata() { + return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(null)); + } + + public MetadataNested editOrNewMetadata() { + return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(new V1ObjectMetaBuilder().build())); + } + + public MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { + return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(item)); + } + + public V1alpha1MutatingAdmissionPolicyBindingSpec buildSpec() { + return this.spec != null ? this.spec.build() : null; + } + + public A withSpec(V1alpha1MutatingAdmissionPolicyBindingSpec spec) { + this._visitables.remove("spec"); + if (spec != null) { + this.spec = new V1alpha1MutatingAdmissionPolicyBindingSpecBuilder(spec); + this._visitables.get("spec").add(this.spec); + } else { + this.spec = null; + this._visitables.get("spec").remove(this.spec); + } + return (A) this; + } + + public boolean hasSpec() { + return this.spec != null; + } + + public SpecNested withNewSpec() { + return new SpecNested(null); + } + + public SpecNested withNewSpecLike(V1alpha1MutatingAdmissionPolicyBindingSpec item) { + return new SpecNested(item); + } + + public SpecNested editSpec() { + return withNewSpecLike(java.util.Optional.ofNullable(buildSpec()).orElse(null)); + } + + public SpecNested editOrNewSpec() { + return withNewSpecLike(java.util.Optional.ofNullable(buildSpec()).orElse(new V1alpha1MutatingAdmissionPolicyBindingSpecBuilder().build())); + } + + public SpecNested editOrNewSpecLike(V1alpha1MutatingAdmissionPolicyBindingSpec item) { + return withNewSpecLike(java.util.Optional.ofNullable(buildSpec()).orElse(item)); + } + + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + if (!super.equals(o)) return false; + V1alpha1MutatingAdmissionPolicyBindingFluent that = (V1alpha1MutatingAdmissionPolicyBindingFluent) o; + if (!java.util.Objects.equals(apiVersion, that.apiVersion)) return false; + if (!java.util.Objects.equals(kind, that.kind)) return false; + if (!java.util.Objects.equals(metadata, that.metadata)) return false; + if (!java.util.Objects.equals(spec, that.spec)) return false; + return true; + } + + public int hashCode() { + return java.util.Objects.hash(apiVersion, kind, metadata, spec, super.hashCode()); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (apiVersion != null) { sb.append("apiVersion:"); sb.append(apiVersion + ","); } + if (kind != null) { sb.append("kind:"); sb.append(kind + ","); } + if (metadata != null) { sb.append("metadata:"); sb.append(metadata + ","); } + if (spec != null) { sb.append("spec:"); sb.append(spec); } + sb.append("}"); + return sb.toString(); + } + public class MetadataNested extends V1ObjectMetaFluent> implements Nested{ + MetadataNested(V1ObjectMeta item) { + this.builder = new V1ObjectMetaBuilder(this, item); + } + V1ObjectMetaBuilder builder; + + public N and() { + return (N) V1alpha1MutatingAdmissionPolicyBindingFluent.this.withMetadata(builder.build()); + } + + public N endMetadata() { + return and(); + } + + + } + public class SpecNested extends V1alpha1MutatingAdmissionPolicyBindingSpecFluent> implements Nested{ + SpecNested(V1alpha1MutatingAdmissionPolicyBindingSpec item) { + this.builder = new V1alpha1MutatingAdmissionPolicyBindingSpecBuilder(this, item); + } + V1alpha1MutatingAdmissionPolicyBindingSpecBuilder builder; + + public N and() { + return (N) V1alpha1MutatingAdmissionPolicyBindingFluent.this.withSpec(builder.build()); + } + + public N endSpec() { + return and(); + } + + + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MutatingAdmissionPolicyBindingListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MutatingAdmissionPolicyBindingListBuilder.java new file mode 100644 index 0000000000..55e03c6217 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MutatingAdmissionPolicyBindingListBuilder.java @@ -0,0 +1,34 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +public class V1alpha1MutatingAdmissionPolicyBindingListBuilder extends V1alpha1MutatingAdmissionPolicyBindingListFluent implements VisitableBuilder{ + public V1alpha1MutatingAdmissionPolicyBindingListBuilder() { + this(new V1alpha1MutatingAdmissionPolicyBindingList()); + } + + public V1alpha1MutatingAdmissionPolicyBindingListBuilder(V1alpha1MutatingAdmissionPolicyBindingListFluent fluent) { + this(fluent, new V1alpha1MutatingAdmissionPolicyBindingList()); + } + + public V1alpha1MutatingAdmissionPolicyBindingListBuilder(V1alpha1MutatingAdmissionPolicyBindingListFluent fluent,V1alpha1MutatingAdmissionPolicyBindingList instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1alpha1MutatingAdmissionPolicyBindingListBuilder(V1alpha1MutatingAdmissionPolicyBindingList instance) { + this.fluent = this; + this.copyInstance(instance); + } + V1alpha1MutatingAdmissionPolicyBindingListFluent fluent; + + public V1alpha1MutatingAdmissionPolicyBindingList build() { + V1alpha1MutatingAdmissionPolicyBindingList buildable = new V1alpha1MutatingAdmissionPolicyBindingList(); + buildable.setApiVersion(fluent.getApiVersion()); + buildable.setItems(fluent.buildItems()); + buildable.setKind(fluent.getKind()); + buildable.setMetadata(fluent.buildMetadata()); + return buildable; + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MutatingAdmissionPolicyBindingListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MutatingAdmissionPolicyBindingListFluent.java new file mode 100644 index 0000000000..4ba5c901fe --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MutatingAdmissionPolicyBindingListFluent.java @@ -0,0 +1,331 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.Nested; +import java.util.ArrayList; +import java.lang.String; +import java.util.function.Predicate; +import io.kubernetes.client.fluent.BaseFluent; +import java.util.Iterator; +import java.util.Collection; +import java.lang.Object; +import java.util.List; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1alpha1MutatingAdmissionPolicyBindingListFluent> extends BaseFluent{ + public V1alpha1MutatingAdmissionPolicyBindingListFluent() { + } + + public V1alpha1MutatingAdmissionPolicyBindingListFluent(V1alpha1MutatingAdmissionPolicyBindingList instance) { + this.copyInstance(instance); + } + private String apiVersion; + private ArrayList items; + private String kind; + private V1ListMetaBuilder metadata; + + protected void copyInstance(V1alpha1MutatingAdmissionPolicyBindingList instance) { + instance = (instance != null ? instance : new V1alpha1MutatingAdmissionPolicyBindingList()); + if (instance != null) { + this.withApiVersion(instance.getApiVersion()); + this.withItems(instance.getItems()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); + } + } + + public String getApiVersion() { + return this.apiVersion; + } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + + public boolean hasApiVersion() { + return this.apiVersion != null; + } + + public A addToItems(int index,V1alpha1MutatingAdmissionPolicyBinding item) { + if (this.items == null) {this.items = new ArrayList();} + V1alpha1MutatingAdmissionPolicyBindingBuilder builder = new V1alpha1MutatingAdmissionPolicyBindingBuilder(item); + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.add(index, builder); + } + return (A)this; + } + + public A setToItems(int index,V1alpha1MutatingAdmissionPolicyBinding item) { + if (this.items == null) {this.items = new ArrayList();} + V1alpha1MutatingAdmissionPolicyBindingBuilder builder = new V1alpha1MutatingAdmissionPolicyBindingBuilder(item); + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.set(index, builder); + } + return (A)this; + } + + public A addToItems(io.kubernetes.client.openapi.models.V1alpha1MutatingAdmissionPolicyBinding... items) { + if (this.items == null) {this.items = new ArrayList();} + for (V1alpha1MutatingAdmissionPolicyBinding item : items) {V1alpha1MutatingAdmissionPolicyBindingBuilder builder = new V1alpha1MutatingAdmissionPolicyBindingBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; + } + + public A addAllToItems(Collection items) { + if (this.items == null) {this.items = new ArrayList();} + for (V1alpha1MutatingAdmissionPolicyBinding item : items) {V1alpha1MutatingAdmissionPolicyBindingBuilder builder = new V1alpha1MutatingAdmissionPolicyBindingBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; + } + + public A removeFromItems(io.kubernetes.client.openapi.models.V1alpha1MutatingAdmissionPolicyBinding... items) { + if (this.items == null) return (A)this; + for (V1alpha1MutatingAdmissionPolicyBinding item : items) {V1alpha1MutatingAdmissionPolicyBindingBuilder builder = new V1alpha1MutatingAdmissionPolicyBindingBuilder(item);_visitables.get("items").remove(builder); this.items.remove(builder);} return (A)this; + } + + public A removeAllFromItems(Collection items) { + if (this.items == null) return (A)this; + for (V1alpha1MutatingAdmissionPolicyBinding item : items) {V1alpha1MutatingAdmissionPolicyBindingBuilder builder = new V1alpha1MutatingAdmissionPolicyBindingBuilder(item);_visitables.get("items").remove(builder); this.items.remove(builder);} return (A)this; + } + + public A removeMatchingFromItems(Predicate predicate) { + if (items == null) return (A) this; + final Iterator each = items.iterator(); + final List visitables = _visitables.get("items"); + while (each.hasNext()) { + V1alpha1MutatingAdmissionPolicyBindingBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A)this; + } + + public List buildItems() { + return this.items != null ? build(items) : null; + } + + public V1alpha1MutatingAdmissionPolicyBinding buildItem(int index) { + return this.items.get(index).build(); + } + + public V1alpha1MutatingAdmissionPolicyBinding buildFirstItem() { + return this.items.get(0).build(); + } + + public V1alpha1MutatingAdmissionPolicyBinding buildLastItem() { + return this.items.get(items.size() - 1).build(); + } + + public V1alpha1MutatingAdmissionPolicyBinding buildMatchingItem(Predicate predicate) { + for (V1alpha1MutatingAdmissionPolicyBindingBuilder item : items) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; + } + + public boolean hasMatchingItem(Predicate predicate) { + for (V1alpha1MutatingAdmissionPolicyBindingBuilder item : items) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public A withItems(List items) { + if (this.items != null) { + this._visitables.get("items").clear(); + } + if (items != null) { + this.items = new ArrayList(); + for (V1alpha1MutatingAdmissionPolicyBinding item : items) { + this.addToItems(item); + } + } else { + this.items = null; + } + return (A) this; + } + + public A withItems(io.kubernetes.client.openapi.models.V1alpha1MutatingAdmissionPolicyBinding... items) { + if (this.items != null) { + this.items.clear(); + _visitables.remove("items"); + } + if (items != null) { + for (V1alpha1MutatingAdmissionPolicyBinding item : items) { + this.addToItems(item); + } + } + return (A) this; + } + + public boolean hasItems() { + return this.items != null && !this.items.isEmpty(); + } + + public ItemsNested addNewItem() { + return new ItemsNested(-1, null); + } + + public ItemsNested addNewItemLike(V1alpha1MutatingAdmissionPolicyBinding item) { + return new ItemsNested(-1, item); + } + + public ItemsNested setNewItemLike(int index,V1alpha1MutatingAdmissionPolicyBinding item) { + return new ItemsNested(index, item); + } + + public ItemsNested editItem(int index) { + if (items.size() <= index) throw new RuntimeException("Can't edit items. Index exceeds size."); + return setNewItemLike(index, buildItem(index)); + } + + public ItemsNested editFirstItem() { + if (items.size() == 0) throw new RuntimeException("Can't edit first items. The list is empty."); + return setNewItemLike(0, buildItem(0)); + } + + public ItemsNested editLastItem() { + int index = items.size() - 1; + if (index < 0) throw new RuntimeException("Can't edit last items. The list is empty."); + return setNewItemLike(index, buildItem(index)); + } + + public ItemsNested editMatchingItem(Predicate predicate) { + int index = -1; + for (int i=0;i withNewMetadata() { + return new MetadataNested(null); + } + + public MetadataNested withNewMetadataLike(V1ListMeta item) { + return new MetadataNested(item); + } + + public MetadataNested editMetadata() { + return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(null)); + } + + public MetadataNested editOrNewMetadata() { + return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(new V1ListMetaBuilder().build())); + } + + public MetadataNested editOrNewMetadataLike(V1ListMeta item) { + return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(item)); + } + + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + if (!super.equals(o)) return false; + V1alpha1MutatingAdmissionPolicyBindingListFluent that = (V1alpha1MutatingAdmissionPolicyBindingListFluent) o; + if (!java.util.Objects.equals(apiVersion, that.apiVersion)) return false; + if (!java.util.Objects.equals(items, that.items)) return false; + if (!java.util.Objects.equals(kind, that.kind)) return false; + if (!java.util.Objects.equals(metadata, that.metadata)) return false; + return true; + } + + public int hashCode() { + return java.util.Objects.hash(apiVersion, items, kind, metadata, super.hashCode()); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (apiVersion != null) { sb.append("apiVersion:"); sb.append(apiVersion + ","); } + if (items != null && !items.isEmpty()) { sb.append("items:"); sb.append(items + ","); } + if (kind != null) { sb.append("kind:"); sb.append(kind + ","); } + if (metadata != null) { sb.append("metadata:"); sb.append(metadata); } + sb.append("}"); + return sb.toString(); + } + public class ItemsNested extends V1alpha1MutatingAdmissionPolicyBindingFluent> implements Nested{ + ItemsNested(int index,V1alpha1MutatingAdmissionPolicyBinding item) { + this.index = index; + this.builder = new V1alpha1MutatingAdmissionPolicyBindingBuilder(this, item); + } + V1alpha1MutatingAdmissionPolicyBindingBuilder builder; + int index; + + public N and() { + return (N) V1alpha1MutatingAdmissionPolicyBindingListFluent.this.setToItems(index,builder.build()); + } + + public N endItem() { + return and(); + } + + + } + public class MetadataNested extends V1ListMetaFluent> implements Nested{ + MetadataNested(V1ListMeta item) { + this.builder = new V1ListMetaBuilder(this, item); + } + V1ListMetaBuilder builder; + + public N and() { + return (N) V1alpha1MutatingAdmissionPolicyBindingListFluent.this.withMetadata(builder.build()); + } + + public N endMetadata() { + return and(); + } + + + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MutatingAdmissionPolicyBindingSpecBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MutatingAdmissionPolicyBindingSpecBuilder.java new file mode 100644 index 0000000000..544f6ff6a7 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MutatingAdmissionPolicyBindingSpecBuilder.java @@ -0,0 +1,33 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +public class V1alpha1MutatingAdmissionPolicyBindingSpecBuilder extends V1alpha1MutatingAdmissionPolicyBindingSpecFluent implements VisitableBuilder{ + public V1alpha1MutatingAdmissionPolicyBindingSpecBuilder() { + this(new V1alpha1MutatingAdmissionPolicyBindingSpec()); + } + + public V1alpha1MutatingAdmissionPolicyBindingSpecBuilder(V1alpha1MutatingAdmissionPolicyBindingSpecFluent fluent) { + this(fluent, new V1alpha1MutatingAdmissionPolicyBindingSpec()); + } + + public V1alpha1MutatingAdmissionPolicyBindingSpecBuilder(V1alpha1MutatingAdmissionPolicyBindingSpecFluent fluent,V1alpha1MutatingAdmissionPolicyBindingSpec instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1alpha1MutatingAdmissionPolicyBindingSpecBuilder(V1alpha1MutatingAdmissionPolicyBindingSpec instance) { + this.fluent = this; + this.copyInstance(instance); + } + V1alpha1MutatingAdmissionPolicyBindingSpecFluent fluent; + + public V1alpha1MutatingAdmissionPolicyBindingSpec build() { + V1alpha1MutatingAdmissionPolicyBindingSpec buildable = new V1alpha1MutatingAdmissionPolicyBindingSpec(); + buildable.setMatchResources(fluent.buildMatchResources()); + buildable.setParamRef(fluent.buildParamRef()); + buildable.setPolicyName(fluent.getPolicyName()); + return buildable; + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MutatingAdmissionPolicyBindingSpecFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MutatingAdmissionPolicyBindingSpecFluent.java new file mode 100644 index 0000000000..801d8cc1d8 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MutatingAdmissionPolicyBindingSpecFluent.java @@ -0,0 +1,183 @@ +package io.kubernetes.client.openapi.models; + +import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.Nested; +import java.lang.String; +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Object; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1alpha1MutatingAdmissionPolicyBindingSpecFluent> extends BaseFluent{ + public V1alpha1MutatingAdmissionPolicyBindingSpecFluent() { + } + + public V1alpha1MutatingAdmissionPolicyBindingSpecFluent(V1alpha1MutatingAdmissionPolicyBindingSpec instance) { + this.copyInstance(instance); + } + private V1alpha1MatchResourcesBuilder matchResources; + private V1alpha1ParamRefBuilder paramRef; + private String policyName; + + protected void copyInstance(V1alpha1MutatingAdmissionPolicyBindingSpec instance) { + instance = (instance != null ? instance : new V1alpha1MutatingAdmissionPolicyBindingSpec()); + if (instance != null) { + this.withMatchResources(instance.getMatchResources()); + this.withParamRef(instance.getParamRef()); + this.withPolicyName(instance.getPolicyName()); + } + } + + public V1alpha1MatchResources buildMatchResources() { + return this.matchResources != null ? this.matchResources.build() : null; + } + + public A withMatchResources(V1alpha1MatchResources matchResources) { + this._visitables.remove("matchResources"); + if (matchResources != null) { + this.matchResources = new V1alpha1MatchResourcesBuilder(matchResources); + this._visitables.get("matchResources").add(this.matchResources); + } else { + this.matchResources = null; + this._visitables.get("matchResources").remove(this.matchResources); + } + return (A) this; + } + + public boolean hasMatchResources() { + return this.matchResources != null; + } + + public MatchResourcesNested withNewMatchResources() { + return new MatchResourcesNested(null); + } + + public MatchResourcesNested withNewMatchResourcesLike(V1alpha1MatchResources item) { + return new MatchResourcesNested(item); + } + + public MatchResourcesNested editMatchResources() { + return withNewMatchResourcesLike(java.util.Optional.ofNullable(buildMatchResources()).orElse(null)); + } + + public MatchResourcesNested editOrNewMatchResources() { + return withNewMatchResourcesLike(java.util.Optional.ofNullable(buildMatchResources()).orElse(new V1alpha1MatchResourcesBuilder().build())); + } + + public MatchResourcesNested editOrNewMatchResourcesLike(V1alpha1MatchResources item) { + return withNewMatchResourcesLike(java.util.Optional.ofNullable(buildMatchResources()).orElse(item)); + } + + public V1alpha1ParamRef buildParamRef() { + return this.paramRef != null ? this.paramRef.build() : null; + } + + public A withParamRef(V1alpha1ParamRef paramRef) { + this._visitables.remove("paramRef"); + if (paramRef != null) { + this.paramRef = new V1alpha1ParamRefBuilder(paramRef); + this._visitables.get("paramRef").add(this.paramRef); + } else { + this.paramRef = null; + this._visitables.get("paramRef").remove(this.paramRef); + } + return (A) this; + } + + public boolean hasParamRef() { + return this.paramRef != null; + } + + public ParamRefNested withNewParamRef() { + return new ParamRefNested(null); + } + + public ParamRefNested withNewParamRefLike(V1alpha1ParamRef item) { + return new ParamRefNested(item); + } + + public ParamRefNested editParamRef() { + return withNewParamRefLike(java.util.Optional.ofNullable(buildParamRef()).orElse(null)); + } + + public ParamRefNested editOrNewParamRef() { + return withNewParamRefLike(java.util.Optional.ofNullable(buildParamRef()).orElse(new V1alpha1ParamRefBuilder().build())); + } + + public ParamRefNested editOrNewParamRefLike(V1alpha1ParamRef item) { + return withNewParamRefLike(java.util.Optional.ofNullable(buildParamRef()).orElse(item)); + } + + public String getPolicyName() { + return this.policyName; + } + + public A withPolicyName(String policyName) { + this.policyName = policyName; + return (A) this; + } + + public boolean hasPolicyName() { + return this.policyName != null; + } + + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + if (!super.equals(o)) return false; + V1alpha1MutatingAdmissionPolicyBindingSpecFluent that = (V1alpha1MutatingAdmissionPolicyBindingSpecFluent) o; + if (!java.util.Objects.equals(matchResources, that.matchResources)) return false; + if (!java.util.Objects.equals(paramRef, that.paramRef)) return false; + if (!java.util.Objects.equals(policyName, that.policyName)) return false; + return true; + } + + public int hashCode() { + return java.util.Objects.hash(matchResources, paramRef, policyName, super.hashCode()); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (matchResources != null) { sb.append("matchResources:"); sb.append(matchResources + ","); } + if (paramRef != null) { sb.append("paramRef:"); sb.append(paramRef + ","); } + if (policyName != null) { sb.append("policyName:"); sb.append(policyName); } + sb.append("}"); + return sb.toString(); + } + public class MatchResourcesNested extends V1alpha1MatchResourcesFluent> implements Nested{ + MatchResourcesNested(V1alpha1MatchResources item) { + this.builder = new V1alpha1MatchResourcesBuilder(this, item); + } + V1alpha1MatchResourcesBuilder builder; + + public N and() { + return (N) V1alpha1MutatingAdmissionPolicyBindingSpecFluent.this.withMatchResources(builder.build()); + } + + public N endMatchResources() { + return and(); + } + + + } + public class ParamRefNested extends V1alpha1ParamRefFluent> implements Nested{ + ParamRefNested(V1alpha1ParamRef item) { + this.builder = new V1alpha1ParamRefBuilder(this, item); + } + V1alpha1ParamRefBuilder builder; + + public N and() { + return (N) V1alpha1MutatingAdmissionPolicyBindingSpecFluent.this.withParamRef(builder.build()); + } + + public N endParamRef() { + return and(); + } + + + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MutatingAdmissionPolicyBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MutatingAdmissionPolicyBuilder.java new file mode 100644 index 0000000000..44cbf39a7b --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MutatingAdmissionPolicyBuilder.java @@ -0,0 +1,34 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +public class V1alpha1MutatingAdmissionPolicyBuilder extends V1alpha1MutatingAdmissionPolicyFluent implements VisitableBuilder{ + public V1alpha1MutatingAdmissionPolicyBuilder() { + this(new V1alpha1MutatingAdmissionPolicy()); + } + + public V1alpha1MutatingAdmissionPolicyBuilder(V1alpha1MutatingAdmissionPolicyFluent fluent) { + this(fluent, new V1alpha1MutatingAdmissionPolicy()); + } + + public V1alpha1MutatingAdmissionPolicyBuilder(V1alpha1MutatingAdmissionPolicyFluent fluent,V1alpha1MutatingAdmissionPolicy instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1alpha1MutatingAdmissionPolicyBuilder(V1alpha1MutatingAdmissionPolicy instance) { + this.fluent = this; + this.copyInstance(instance); + } + V1alpha1MutatingAdmissionPolicyFluent fluent; + + public V1alpha1MutatingAdmissionPolicy build() { + V1alpha1MutatingAdmissionPolicy buildable = new V1alpha1MutatingAdmissionPolicy(); + buildable.setApiVersion(fluent.getApiVersion()); + buildable.setKind(fluent.getKind()); + buildable.setMetadata(fluent.buildMetadata()); + buildable.setSpec(fluent.buildSpec()); + return buildable; + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MutatingAdmissionPolicyFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MutatingAdmissionPolicyFluent.java new file mode 100644 index 0000000000..29782bbf5b --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MutatingAdmissionPolicyFluent.java @@ -0,0 +1,200 @@ +package io.kubernetes.client.openapi.models; + +import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.Nested; +import java.lang.String; +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Object; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1alpha1MutatingAdmissionPolicyFluent> extends BaseFluent{ + public V1alpha1MutatingAdmissionPolicyFluent() { + } + + public V1alpha1MutatingAdmissionPolicyFluent(V1alpha1MutatingAdmissionPolicy instance) { + this.copyInstance(instance); + } + private String apiVersion; + private String kind; + private V1ObjectMetaBuilder metadata; + private V1alpha1MutatingAdmissionPolicySpecBuilder spec; + + protected void copyInstance(V1alpha1MutatingAdmissionPolicy instance) { + instance = (instance != null ? instance : new V1alpha1MutatingAdmissionPolicy()); + if (instance != null) { + this.withApiVersion(instance.getApiVersion()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); + this.withSpec(instance.getSpec()); + } + } + + public String getApiVersion() { + return this.apiVersion; + } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + + public boolean hasApiVersion() { + return this.apiVersion != null; + } + + public String getKind() { + return this.kind; + } + + public A withKind(String kind) { + this.kind = kind; + return (A) this; + } + + public boolean hasKind() { + return this.kind != null; + } + + public V1ObjectMeta buildMetadata() { + return this.metadata != null ? this.metadata.build() : null; + } + + public A withMetadata(V1ObjectMeta metadata) { + this._visitables.remove("metadata"); + if (metadata != null) { + this.metadata = new V1ObjectMetaBuilder(metadata); + this._visitables.get("metadata").add(this.metadata); + } else { + this.metadata = null; + this._visitables.get("metadata").remove(this.metadata); + } + return (A) this; + } + + public boolean hasMetadata() { + return this.metadata != null; + } + + public MetadataNested withNewMetadata() { + return new MetadataNested(null); + } + + public MetadataNested withNewMetadataLike(V1ObjectMeta item) { + return new MetadataNested(item); + } + + public MetadataNested editMetadata() { + return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(null)); + } + + public MetadataNested editOrNewMetadata() { + return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(new V1ObjectMetaBuilder().build())); + } + + public MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { + return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(item)); + } + + public V1alpha1MutatingAdmissionPolicySpec buildSpec() { + return this.spec != null ? this.spec.build() : null; + } + + public A withSpec(V1alpha1MutatingAdmissionPolicySpec spec) { + this._visitables.remove("spec"); + if (spec != null) { + this.spec = new V1alpha1MutatingAdmissionPolicySpecBuilder(spec); + this._visitables.get("spec").add(this.spec); + } else { + this.spec = null; + this._visitables.get("spec").remove(this.spec); + } + return (A) this; + } + + public boolean hasSpec() { + return this.spec != null; + } + + public SpecNested withNewSpec() { + return new SpecNested(null); + } + + public SpecNested withNewSpecLike(V1alpha1MutatingAdmissionPolicySpec item) { + return new SpecNested(item); + } + + public SpecNested editSpec() { + return withNewSpecLike(java.util.Optional.ofNullable(buildSpec()).orElse(null)); + } + + public SpecNested editOrNewSpec() { + return withNewSpecLike(java.util.Optional.ofNullable(buildSpec()).orElse(new V1alpha1MutatingAdmissionPolicySpecBuilder().build())); + } + + public SpecNested editOrNewSpecLike(V1alpha1MutatingAdmissionPolicySpec item) { + return withNewSpecLike(java.util.Optional.ofNullable(buildSpec()).orElse(item)); + } + + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + if (!super.equals(o)) return false; + V1alpha1MutatingAdmissionPolicyFluent that = (V1alpha1MutatingAdmissionPolicyFluent) o; + if (!java.util.Objects.equals(apiVersion, that.apiVersion)) return false; + if (!java.util.Objects.equals(kind, that.kind)) return false; + if (!java.util.Objects.equals(metadata, that.metadata)) return false; + if (!java.util.Objects.equals(spec, that.spec)) return false; + return true; + } + + public int hashCode() { + return java.util.Objects.hash(apiVersion, kind, metadata, spec, super.hashCode()); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (apiVersion != null) { sb.append("apiVersion:"); sb.append(apiVersion + ","); } + if (kind != null) { sb.append("kind:"); sb.append(kind + ","); } + if (metadata != null) { sb.append("metadata:"); sb.append(metadata + ","); } + if (spec != null) { sb.append("spec:"); sb.append(spec); } + sb.append("}"); + return sb.toString(); + } + public class MetadataNested extends V1ObjectMetaFluent> implements Nested{ + MetadataNested(V1ObjectMeta item) { + this.builder = new V1ObjectMetaBuilder(this, item); + } + V1ObjectMetaBuilder builder; + + public N and() { + return (N) V1alpha1MutatingAdmissionPolicyFluent.this.withMetadata(builder.build()); + } + + public N endMetadata() { + return and(); + } + + + } + public class SpecNested extends V1alpha1MutatingAdmissionPolicySpecFluent> implements Nested{ + SpecNested(V1alpha1MutatingAdmissionPolicySpec item) { + this.builder = new V1alpha1MutatingAdmissionPolicySpecBuilder(this, item); + } + V1alpha1MutatingAdmissionPolicySpecBuilder builder; + + public N and() { + return (N) V1alpha1MutatingAdmissionPolicyFluent.this.withSpec(builder.build()); + } + + public N endSpec() { + return and(); + } + + + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MutatingAdmissionPolicyListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MutatingAdmissionPolicyListBuilder.java new file mode 100644 index 0000000000..85cd198287 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MutatingAdmissionPolicyListBuilder.java @@ -0,0 +1,34 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +public class V1alpha1MutatingAdmissionPolicyListBuilder extends V1alpha1MutatingAdmissionPolicyListFluent implements VisitableBuilder{ + public V1alpha1MutatingAdmissionPolicyListBuilder() { + this(new V1alpha1MutatingAdmissionPolicyList()); + } + + public V1alpha1MutatingAdmissionPolicyListBuilder(V1alpha1MutatingAdmissionPolicyListFluent fluent) { + this(fluent, new V1alpha1MutatingAdmissionPolicyList()); + } + + public V1alpha1MutatingAdmissionPolicyListBuilder(V1alpha1MutatingAdmissionPolicyListFluent fluent,V1alpha1MutatingAdmissionPolicyList instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1alpha1MutatingAdmissionPolicyListBuilder(V1alpha1MutatingAdmissionPolicyList instance) { + this.fluent = this; + this.copyInstance(instance); + } + V1alpha1MutatingAdmissionPolicyListFluent fluent; + + public V1alpha1MutatingAdmissionPolicyList build() { + V1alpha1MutatingAdmissionPolicyList buildable = new V1alpha1MutatingAdmissionPolicyList(); + buildable.setApiVersion(fluent.getApiVersion()); + buildable.setItems(fluent.buildItems()); + buildable.setKind(fluent.getKind()); + buildable.setMetadata(fluent.buildMetadata()); + return buildable; + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MutatingAdmissionPolicyListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MutatingAdmissionPolicyListFluent.java new file mode 100644 index 0000000000..7fe0e85595 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MutatingAdmissionPolicyListFluent.java @@ -0,0 +1,331 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.Nested; +import java.util.ArrayList; +import java.lang.String; +import java.util.function.Predicate; +import io.kubernetes.client.fluent.BaseFluent; +import java.util.Iterator; +import java.util.Collection; +import java.lang.Object; +import java.util.List; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1alpha1MutatingAdmissionPolicyListFluent> extends BaseFluent{ + public V1alpha1MutatingAdmissionPolicyListFluent() { + } + + public V1alpha1MutatingAdmissionPolicyListFluent(V1alpha1MutatingAdmissionPolicyList instance) { + this.copyInstance(instance); + } + private String apiVersion; + private ArrayList items; + private String kind; + private V1ListMetaBuilder metadata; + + protected void copyInstance(V1alpha1MutatingAdmissionPolicyList instance) { + instance = (instance != null ? instance : new V1alpha1MutatingAdmissionPolicyList()); + if (instance != null) { + this.withApiVersion(instance.getApiVersion()); + this.withItems(instance.getItems()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); + } + } + + public String getApiVersion() { + return this.apiVersion; + } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + + public boolean hasApiVersion() { + return this.apiVersion != null; + } + + public A addToItems(int index,V1alpha1MutatingAdmissionPolicy item) { + if (this.items == null) {this.items = new ArrayList();} + V1alpha1MutatingAdmissionPolicyBuilder builder = new V1alpha1MutatingAdmissionPolicyBuilder(item); + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.add(index, builder); + } + return (A)this; + } + + public A setToItems(int index,V1alpha1MutatingAdmissionPolicy item) { + if (this.items == null) {this.items = new ArrayList();} + V1alpha1MutatingAdmissionPolicyBuilder builder = new V1alpha1MutatingAdmissionPolicyBuilder(item); + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.set(index, builder); + } + return (A)this; + } + + public A addToItems(io.kubernetes.client.openapi.models.V1alpha1MutatingAdmissionPolicy... items) { + if (this.items == null) {this.items = new ArrayList();} + for (V1alpha1MutatingAdmissionPolicy item : items) {V1alpha1MutatingAdmissionPolicyBuilder builder = new V1alpha1MutatingAdmissionPolicyBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; + } + + public A addAllToItems(Collection items) { + if (this.items == null) {this.items = new ArrayList();} + for (V1alpha1MutatingAdmissionPolicy item : items) {V1alpha1MutatingAdmissionPolicyBuilder builder = new V1alpha1MutatingAdmissionPolicyBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; + } + + public A removeFromItems(io.kubernetes.client.openapi.models.V1alpha1MutatingAdmissionPolicy... items) { + if (this.items == null) return (A)this; + for (V1alpha1MutatingAdmissionPolicy item : items) {V1alpha1MutatingAdmissionPolicyBuilder builder = new V1alpha1MutatingAdmissionPolicyBuilder(item);_visitables.get("items").remove(builder); this.items.remove(builder);} return (A)this; + } + + public A removeAllFromItems(Collection items) { + if (this.items == null) return (A)this; + for (V1alpha1MutatingAdmissionPolicy item : items) {V1alpha1MutatingAdmissionPolicyBuilder builder = new V1alpha1MutatingAdmissionPolicyBuilder(item);_visitables.get("items").remove(builder); this.items.remove(builder);} return (A)this; + } + + public A removeMatchingFromItems(Predicate predicate) { + if (items == null) return (A) this; + final Iterator each = items.iterator(); + final List visitables = _visitables.get("items"); + while (each.hasNext()) { + V1alpha1MutatingAdmissionPolicyBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A)this; + } + + public List buildItems() { + return this.items != null ? build(items) : null; + } + + public V1alpha1MutatingAdmissionPolicy buildItem(int index) { + return this.items.get(index).build(); + } + + public V1alpha1MutatingAdmissionPolicy buildFirstItem() { + return this.items.get(0).build(); + } + + public V1alpha1MutatingAdmissionPolicy buildLastItem() { + return this.items.get(items.size() - 1).build(); + } + + public V1alpha1MutatingAdmissionPolicy buildMatchingItem(Predicate predicate) { + for (V1alpha1MutatingAdmissionPolicyBuilder item : items) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; + } + + public boolean hasMatchingItem(Predicate predicate) { + for (V1alpha1MutatingAdmissionPolicyBuilder item : items) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public A withItems(List items) { + if (this.items != null) { + this._visitables.get("items").clear(); + } + if (items != null) { + this.items = new ArrayList(); + for (V1alpha1MutatingAdmissionPolicy item : items) { + this.addToItems(item); + } + } else { + this.items = null; + } + return (A) this; + } + + public A withItems(io.kubernetes.client.openapi.models.V1alpha1MutatingAdmissionPolicy... items) { + if (this.items != null) { + this.items.clear(); + _visitables.remove("items"); + } + if (items != null) { + for (V1alpha1MutatingAdmissionPolicy item : items) { + this.addToItems(item); + } + } + return (A) this; + } + + public boolean hasItems() { + return this.items != null && !this.items.isEmpty(); + } + + public ItemsNested addNewItem() { + return new ItemsNested(-1, null); + } + + public ItemsNested addNewItemLike(V1alpha1MutatingAdmissionPolicy item) { + return new ItemsNested(-1, item); + } + + public ItemsNested setNewItemLike(int index,V1alpha1MutatingAdmissionPolicy item) { + return new ItemsNested(index, item); + } + + public ItemsNested editItem(int index) { + if (items.size() <= index) throw new RuntimeException("Can't edit items. Index exceeds size."); + return setNewItemLike(index, buildItem(index)); + } + + public ItemsNested editFirstItem() { + if (items.size() == 0) throw new RuntimeException("Can't edit first items. The list is empty."); + return setNewItemLike(0, buildItem(0)); + } + + public ItemsNested editLastItem() { + int index = items.size() - 1; + if (index < 0) throw new RuntimeException("Can't edit last items. The list is empty."); + return setNewItemLike(index, buildItem(index)); + } + + public ItemsNested editMatchingItem(Predicate predicate) { + int index = -1; + for (int i=0;i withNewMetadata() { + return new MetadataNested(null); + } + + public MetadataNested withNewMetadataLike(V1ListMeta item) { + return new MetadataNested(item); + } + + public MetadataNested editMetadata() { + return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(null)); + } + + public MetadataNested editOrNewMetadata() { + return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(new V1ListMetaBuilder().build())); + } + + public MetadataNested editOrNewMetadataLike(V1ListMeta item) { + return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(item)); + } + + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + if (!super.equals(o)) return false; + V1alpha1MutatingAdmissionPolicyListFluent that = (V1alpha1MutatingAdmissionPolicyListFluent) o; + if (!java.util.Objects.equals(apiVersion, that.apiVersion)) return false; + if (!java.util.Objects.equals(items, that.items)) return false; + if (!java.util.Objects.equals(kind, that.kind)) return false; + if (!java.util.Objects.equals(metadata, that.metadata)) return false; + return true; + } + + public int hashCode() { + return java.util.Objects.hash(apiVersion, items, kind, metadata, super.hashCode()); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (apiVersion != null) { sb.append("apiVersion:"); sb.append(apiVersion + ","); } + if (items != null && !items.isEmpty()) { sb.append("items:"); sb.append(items + ","); } + if (kind != null) { sb.append("kind:"); sb.append(kind + ","); } + if (metadata != null) { sb.append("metadata:"); sb.append(metadata); } + sb.append("}"); + return sb.toString(); + } + public class ItemsNested extends V1alpha1MutatingAdmissionPolicyFluent> implements Nested{ + ItemsNested(int index,V1alpha1MutatingAdmissionPolicy item) { + this.index = index; + this.builder = new V1alpha1MutatingAdmissionPolicyBuilder(this, item); + } + V1alpha1MutatingAdmissionPolicyBuilder builder; + int index; + + public N and() { + return (N) V1alpha1MutatingAdmissionPolicyListFluent.this.setToItems(index,builder.build()); + } + + public N endItem() { + return and(); + } + + + } + public class MetadataNested extends V1ListMetaFluent> implements Nested{ + MetadataNested(V1ListMeta item) { + this.builder = new V1ListMetaBuilder(this, item); + } + V1ListMetaBuilder builder; + + public N and() { + return (N) V1alpha1MutatingAdmissionPolicyListFluent.this.withMetadata(builder.build()); + } + + public N endMetadata() { + return and(); + } + + + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MutatingAdmissionPolicySpecBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MutatingAdmissionPolicySpecBuilder.java new file mode 100644 index 0000000000..5c7b15c9e6 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MutatingAdmissionPolicySpecBuilder.java @@ -0,0 +1,37 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +public class V1alpha1MutatingAdmissionPolicySpecBuilder extends V1alpha1MutatingAdmissionPolicySpecFluent implements VisitableBuilder{ + public V1alpha1MutatingAdmissionPolicySpecBuilder() { + this(new V1alpha1MutatingAdmissionPolicySpec()); + } + + public V1alpha1MutatingAdmissionPolicySpecBuilder(V1alpha1MutatingAdmissionPolicySpecFluent fluent) { + this(fluent, new V1alpha1MutatingAdmissionPolicySpec()); + } + + public V1alpha1MutatingAdmissionPolicySpecBuilder(V1alpha1MutatingAdmissionPolicySpecFluent fluent,V1alpha1MutatingAdmissionPolicySpec instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1alpha1MutatingAdmissionPolicySpecBuilder(V1alpha1MutatingAdmissionPolicySpec instance) { + this.fluent = this; + this.copyInstance(instance); + } + V1alpha1MutatingAdmissionPolicySpecFluent fluent; + + public V1alpha1MutatingAdmissionPolicySpec build() { + V1alpha1MutatingAdmissionPolicySpec buildable = new V1alpha1MutatingAdmissionPolicySpec(); + buildable.setFailurePolicy(fluent.getFailurePolicy()); + buildable.setMatchConditions(fluent.buildMatchConditions()); + buildable.setMatchConstraints(fluent.buildMatchConstraints()); + buildable.setMutations(fluent.buildMutations()); + buildable.setParamKind(fluent.buildParamKind()); + buildable.setReinvocationPolicy(fluent.getReinvocationPolicy()); + buildable.setVariables(fluent.buildVariables()); + return buildable; + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MutatingAdmissionPolicySpecFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MutatingAdmissionPolicySpecFluent.java new file mode 100644 index 0000000000..7851caedfd --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MutatingAdmissionPolicySpecFluent.java @@ -0,0 +1,761 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.Nested; +import java.util.ArrayList; +import java.lang.String; +import java.util.function.Predicate; +import io.kubernetes.client.fluent.BaseFluent; +import java.util.Iterator; +import java.util.List; +import java.util.Collection; +import java.lang.Object; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1alpha1MutatingAdmissionPolicySpecFluent> extends BaseFluent{ + public V1alpha1MutatingAdmissionPolicySpecFluent() { + } + + public V1alpha1MutatingAdmissionPolicySpecFluent(V1alpha1MutatingAdmissionPolicySpec instance) { + this.copyInstance(instance); + } + private String failurePolicy; + private ArrayList matchConditions; + private V1alpha1MatchResourcesBuilder matchConstraints; + private ArrayList mutations; + private V1alpha1ParamKindBuilder paramKind; + private String reinvocationPolicy; + private ArrayList variables; + + protected void copyInstance(V1alpha1MutatingAdmissionPolicySpec instance) { + instance = (instance != null ? instance : new V1alpha1MutatingAdmissionPolicySpec()); + if (instance != null) { + this.withFailurePolicy(instance.getFailurePolicy()); + this.withMatchConditions(instance.getMatchConditions()); + this.withMatchConstraints(instance.getMatchConstraints()); + this.withMutations(instance.getMutations()); + this.withParamKind(instance.getParamKind()); + this.withReinvocationPolicy(instance.getReinvocationPolicy()); + this.withVariables(instance.getVariables()); + } + } + + public String getFailurePolicy() { + return this.failurePolicy; + } + + public A withFailurePolicy(String failurePolicy) { + this.failurePolicy = failurePolicy; + return (A) this; + } + + public boolean hasFailurePolicy() { + return this.failurePolicy != null; + } + + public A addToMatchConditions(int index,V1alpha1MatchCondition item) { + if (this.matchConditions == null) {this.matchConditions = new ArrayList();} + V1alpha1MatchConditionBuilder builder = new V1alpha1MatchConditionBuilder(item); + if (index < 0 || index >= matchConditions.size()) { + _visitables.get("matchConditions").add(builder); + matchConditions.add(builder); + } else { + _visitables.get("matchConditions").add(builder); + matchConditions.add(index, builder); + } + return (A)this; + } + + public A setToMatchConditions(int index,V1alpha1MatchCondition item) { + if (this.matchConditions == null) {this.matchConditions = new ArrayList();} + V1alpha1MatchConditionBuilder builder = new V1alpha1MatchConditionBuilder(item); + if (index < 0 || index >= matchConditions.size()) { + _visitables.get("matchConditions").add(builder); + matchConditions.add(builder); + } else { + _visitables.get("matchConditions").add(builder); + matchConditions.set(index, builder); + } + return (A)this; + } + + public A addToMatchConditions(io.kubernetes.client.openapi.models.V1alpha1MatchCondition... items) { + if (this.matchConditions == null) {this.matchConditions = new ArrayList();} + for (V1alpha1MatchCondition item : items) {V1alpha1MatchConditionBuilder builder = new V1alpha1MatchConditionBuilder(item);_visitables.get("matchConditions").add(builder);this.matchConditions.add(builder);} return (A)this; + } + + public A addAllToMatchConditions(Collection items) { + if (this.matchConditions == null) {this.matchConditions = new ArrayList();} + for (V1alpha1MatchCondition item : items) {V1alpha1MatchConditionBuilder builder = new V1alpha1MatchConditionBuilder(item);_visitables.get("matchConditions").add(builder);this.matchConditions.add(builder);} return (A)this; + } + + public A removeFromMatchConditions(io.kubernetes.client.openapi.models.V1alpha1MatchCondition... items) { + if (this.matchConditions == null) return (A)this; + for (V1alpha1MatchCondition item : items) {V1alpha1MatchConditionBuilder builder = new V1alpha1MatchConditionBuilder(item);_visitables.get("matchConditions").remove(builder); this.matchConditions.remove(builder);} return (A)this; + } + + public A removeAllFromMatchConditions(Collection items) { + if (this.matchConditions == null) return (A)this; + for (V1alpha1MatchCondition item : items) {V1alpha1MatchConditionBuilder builder = new V1alpha1MatchConditionBuilder(item);_visitables.get("matchConditions").remove(builder); this.matchConditions.remove(builder);} return (A)this; + } + + public A removeMatchingFromMatchConditions(Predicate predicate) { + if (matchConditions == null) return (A) this; + final Iterator each = matchConditions.iterator(); + final List visitables = _visitables.get("matchConditions"); + while (each.hasNext()) { + V1alpha1MatchConditionBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A)this; + } + + public List buildMatchConditions() { + return this.matchConditions != null ? build(matchConditions) : null; + } + + public V1alpha1MatchCondition buildMatchCondition(int index) { + return this.matchConditions.get(index).build(); + } + + public V1alpha1MatchCondition buildFirstMatchCondition() { + return this.matchConditions.get(0).build(); + } + + public V1alpha1MatchCondition buildLastMatchCondition() { + return this.matchConditions.get(matchConditions.size() - 1).build(); + } + + public V1alpha1MatchCondition buildMatchingMatchCondition(Predicate predicate) { + for (V1alpha1MatchConditionBuilder item : matchConditions) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; + } + + public boolean hasMatchingMatchCondition(Predicate predicate) { + for (V1alpha1MatchConditionBuilder item : matchConditions) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public A withMatchConditions(List matchConditions) { + if (this.matchConditions != null) { + this._visitables.get("matchConditions").clear(); + } + if (matchConditions != null) { + this.matchConditions = new ArrayList(); + for (V1alpha1MatchCondition item : matchConditions) { + this.addToMatchConditions(item); + } + } else { + this.matchConditions = null; + } + return (A) this; + } + + public A withMatchConditions(io.kubernetes.client.openapi.models.V1alpha1MatchCondition... matchConditions) { + if (this.matchConditions != null) { + this.matchConditions.clear(); + _visitables.remove("matchConditions"); + } + if (matchConditions != null) { + for (V1alpha1MatchCondition item : matchConditions) { + this.addToMatchConditions(item); + } + } + return (A) this; + } + + public boolean hasMatchConditions() { + return this.matchConditions != null && !this.matchConditions.isEmpty(); + } + + public MatchConditionsNested addNewMatchCondition() { + return new MatchConditionsNested(-1, null); + } + + public MatchConditionsNested addNewMatchConditionLike(V1alpha1MatchCondition item) { + return new MatchConditionsNested(-1, item); + } + + public MatchConditionsNested setNewMatchConditionLike(int index,V1alpha1MatchCondition item) { + return new MatchConditionsNested(index, item); + } + + public MatchConditionsNested editMatchCondition(int index) { + if (matchConditions.size() <= index) throw new RuntimeException("Can't edit matchConditions. Index exceeds size."); + return setNewMatchConditionLike(index, buildMatchCondition(index)); + } + + public MatchConditionsNested editFirstMatchCondition() { + if (matchConditions.size() == 0) throw new RuntimeException("Can't edit first matchConditions. The list is empty."); + return setNewMatchConditionLike(0, buildMatchCondition(0)); + } + + public MatchConditionsNested editLastMatchCondition() { + int index = matchConditions.size() - 1; + if (index < 0) throw new RuntimeException("Can't edit last matchConditions. The list is empty."); + return setNewMatchConditionLike(index, buildMatchCondition(index)); + } + + public MatchConditionsNested editMatchingMatchCondition(Predicate predicate) { + int index = -1; + for (int i=0;i withNewMatchConstraints() { + return new MatchConstraintsNested(null); + } + + public MatchConstraintsNested withNewMatchConstraintsLike(V1alpha1MatchResources item) { + return new MatchConstraintsNested(item); + } + + public MatchConstraintsNested editMatchConstraints() { + return withNewMatchConstraintsLike(java.util.Optional.ofNullable(buildMatchConstraints()).orElse(null)); + } + + public MatchConstraintsNested editOrNewMatchConstraints() { + return withNewMatchConstraintsLike(java.util.Optional.ofNullable(buildMatchConstraints()).orElse(new V1alpha1MatchResourcesBuilder().build())); + } + + public MatchConstraintsNested editOrNewMatchConstraintsLike(V1alpha1MatchResources item) { + return withNewMatchConstraintsLike(java.util.Optional.ofNullable(buildMatchConstraints()).orElse(item)); + } + + public A addToMutations(int index,V1alpha1Mutation item) { + if (this.mutations == null) {this.mutations = new ArrayList();} + V1alpha1MutationBuilder builder = new V1alpha1MutationBuilder(item); + if (index < 0 || index >= mutations.size()) { + _visitables.get("mutations").add(builder); + mutations.add(builder); + } else { + _visitables.get("mutations").add(builder); + mutations.add(index, builder); + } + return (A)this; + } + + public A setToMutations(int index,V1alpha1Mutation item) { + if (this.mutations == null) {this.mutations = new ArrayList();} + V1alpha1MutationBuilder builder = new V1alpha1MutationBuilder(item); + if (index < 0 || index >= mutations.size()) { + _visitables.get("mutations").add(builder); + mutations.add(builder); + } else { + _visitables.get("mutations").add(builder); + mutations.set(index, builder); + } + return (A)this; + } + + public A addToMutations(io.kubernetes.client.openapi.models.V1alpha1Mutation... items) { + if (this.mutations == null) {this.mutations = new ArrayList();} + for (V1alpha1Mutation item : items) {V1alpha1MutationBuilder builder = new V1alpha1MutationBuilder(item);_visitables.get("mutations").add(builder);this.mutations.add(builder);} return (A)this; + } + + public A addAllToMutations(Collection items) { + if (this.mutations == null) {this.mutations = new ArrayList();} + for (V1alpha1Mutation item : items) {V1alpha1MutationBuilder builder = new V1alpha1MutationBuilder(item);_visitables.get("mutations").add(builder);this.mutations.add(builder);} return (A)this; + } + + public A removeFromMutations(io.kubernetes.client.openapi.models.V1alpha1Mutation... items) { + if (this.mutations == null) return (A)this; + for (V1alpha1Mutation item : items) {V1alpha1MutationBuilder builder = new V1alpha1MutationBuilder(item);_visitables.get("mutations").remove(builder); this.mutations.remove(builder);} return (A)this; + } + + public A removeAllFromMutations(Collection items) { + if (this.mutations == null) return (A)this; + for (V1alpha1Mutation item : items) {V1alpha1MutationBuilder builder = new V1alpha1MutationBuilder(item);_visitables.get("mutations").remove(builder); this.mutations.remove(builder);} return (A)this; + } + + public A removeMatchingFromMutations(Predicate predicate) { + if (mutations == null) return (A) this; + final Iterator each = mutations.iterator(); + final List visitables = _visitables.get("mutations"); + while (each.hasNext()) { + V1alpha1MutationBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A)this; + } + + public List buildMutations() { + return this.mutations != null ? build(mutations) : null; + } + + public V1alpha1Mutation buildMutation(int index) { + return this.mutations.get(index).build(); + } + + public V1alpha1Mutation buildFirstMutation() { + return this.mutations.get(0).build(); + } + + public V1alpha1Mutation buildLastMutation() { + return this.mutations.get(mutations.size() - 1).build(); + } + + public V1alpha1Mutation buildMatchingMutation(Predicate predicate) { + for (V1alpha1MutationBuilder item : mutations) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; + } + + public boolean hasMatchingMutation(Predicate predicate) { + for (V1alpha1MutationBuilder item : mutations) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public A withMutations(List mutations) { + if (this.mutations != null) { + this._visitables.get("mutations").clear(); + } + if (mutations != null) { + this.mutations = new ArrayList(); + for (V1alpha1Mutation item : mutations) { + this.addToMutations(item); + } + } else { + this.mutations = null; + } + return (A) this; + } + + public A withMutations(io.kubernetes.client.openapi.models.V1alpha1Mutation... mutations) { + if (this.mutations != null) { + this.mutations.clear(); + _visitables.remove("mutations"); + } + if (mutations != null) { + for (V1alpha1Mutation item : mutations) { + this.addToMutations(item); + } + } + return (A) this; + } + + public boolean hasMutations() { + return this.mutations != null && !this.mutations.isEmpty(); + } + + public MutationsNested addNewMutation() { + return new MutationsNested(-1, null); + } + + public MutationsNested addNewMutationLike(V1alpha1Mutation item) { + return new MutationsNested(-1, item); + } + + public MutationsNested setNewMutationLike(int index,V1alpha1Mutation item) { + return new MutationsNested(index, item); + } + + public MutationsNested editMutation(int index) { + if (mutations.size() <= index) throw new RuntimeException("Can't edit mutations. Index exceeds size."); + return setNewMutationLike(index, buildMutation(index)); + } + + public MutationsNested editFirstMutation() { + if (mutations.size() == 0) throw new RuntimeException("Can't edit first mutations. The list is empty."); + return setNewMutationLike(0, buildMutation(0)); + } + + public MutationsNested editLastMutation() { + int index = mutations.size() - 1; + if (index < 0) throw new RuntimeException("Can't edit last mutations. The list is empty."); + return setNewMutationLike(index, buildMutation(index)); + } + + public MutationsNested editMatchingMutation(Predicate predicate) { + int index = -1; + for (int i=0;i withNewParamKind() { + return new ParamKindNested(null); + } + + public ParamKindNested withNewParamKindLike(V1alpha1ParamKind item) { + return new ParamKindNested(item); + } + + public ParamKindNested editParamKind() { + return withNewParamKindLike(java.util.Optional.ofNullable(buildParamKind()).orElse(null)); + } + + public ParamKindNested editOrNewParamKind() { + return withNewParamKindLike(java.util.Optional.ofNullable(buildParamKind()).orElse(new V1alpha1ParamKindBuilder().build())); + } + + public ParamKindNested editOrNewParamKindLike(V1alpha1ParamKind item) { + return withNewParamKindLike(java.util.Optional.ofNullable(buildParamKind()).orElse(item)); + } + + public String getReinvocationPolicy() { + return this.reinvocationPolicy; + } + + public A withReinvocationPolicy(String reinvocationPolicy) { + this.reinvocationPolicy = reinvocationPolicy; + return (A) this; + } + + public boolean hasReinvocationPolicy() { + return this.reinvocationPolicy != null; + } + + public A addToVariables(int index,V1alpha1Variable item) { + if (this.variables == null) {this.variables = new ArrayList();} + V1alpha1VariableBuilder builder = new V1alpha1VariableBuilder(item); + if (index < 0 || index >= variables.size()) { + _visitables.get("variables").add(builder); + variables.add(builder); + } else { + _visitables.get("variables").add(builder); + variables.add(index, builder); + } + return (A)this; + } + + public A setToVariables(int index,V1alpha1Variable item) { + if (this.variables == null) {this.variables = new ArrayList();} + V1alpha1VariableBuilder builder = new V1alpha1VariableBuilder(item); + if (index < 0 || index >= variables.size()) { + _visitables.get("variables").add(builder); + variables.add(builder); + } else { + _visitables.get("variables").add(builder); + variables.set(index, builder); + } + return (A)this; + } + + public A addToVariables(io.kubernetes.client.openapi.models.V1alpha1Variable... items) { + if (this.variables == null) {this.variables = new ArrayList();} + for (V1alpha1Variable item : items) {V1alpha1VariableBuilder builder = new V1alpha1VariableBuilder(item);_visitables.get("variables").add(builder);this.variables.add(builder);} return (A)this; + } + + public A addAllToVariables(Collection items) { + if (this.variables == null) {this.variables = new ArrayList();} + for (V1alpha1Variable item : items) {V1alpha1VariableBuilder builder = new V1alpha1VariableBuilder(item);_visitables.get("variables").add(builder);this.variables.add(builder);} return (A)this; + } + + public A removeFromVariables(io.kubernetes.client.openapi.models.V1alpha1Variable... items) { + if (this.variables == null) return (A)this; + for (V1alpha1Variable item : items) {V1alpha1VariableBuilder builder = new V1alpha1VariableBuilder(item);_visitables.get("variables").remove(builder); this.variables.remove(builder);} return (A)this; + } + + public A removeAllFromVariables(Collection items) { + if (this.variables == null) return (A)this; + for (V1alpha1Variable item : items) {V1alpha1VariableBuilder builder = new V1alpha1VariableBuilder(item);_visitables.get("variables").remove(builder); this.variables.remove(builder);} return (A)this; + } + + public A removeMatchingFromVariables(Predicate predicate) { + if (variables == null) return (A) this; + final Iterator each = variables.iterator(); + final List visitables = _visitables.get("variables"); + while (each.hasNext()) { + V1alpha1VariableBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A)this; + } + + public List buildVariables() { + return this.variables != null ? build(variables) : null; + } + + public V1alpha1Variable buildVariable(int index) { + return this.variables.get(index).build(); + } + + public V1alpha1Variable buildFirstVariable() { + return this.variables.get(0).build(); + } + + public V1alpha1Variable buildLastVariable() { + return this.variables.get(variables.size() - 1).build(); + } + + public V1alpha1Variable buildMatchingVariable(Predicate predicate) { + for (V1alpha1VariableBuilder item : variables) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; + } + + public boolean hasMatchingVariable(Predicate predicate) { + for (V1alpha1VariableBuilder item : variables) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public A withVariables(List variables) { + if (this.variables != null) { + this._visitables.get("variables").clear(); + } + if (variables != null) { + this.variables = new ArrayList(); + for (V1alpha1Variable item : variables) { + this.addToVariables(item); + } + } else { + this.variables = null; + } + return (A) this; + } + + public A withVariables(io.kubernetes.client.openapi.models.V1alpha1Variable... variables) { + if (this.variables != null) { + this.variables.clear(); + _visitables.remove("variables"); + } + if (variables != null) { + for (V1alpha1Variable item : variables) { + this.addToVariables(item); + } + } + return (A) this; + } + + public boolean hasVariables() { + return this.variables != null && !this.variables.isEmpty(); + } + + public VariablesNested addNewVariable() { + return new VariablesNested(-1, null); + } + + public VariablesNested addNewVariableLike(V1alpha1Variable item) { + return new VariablesNested(-1, item); + } + + public VariablesNested setNewVariableLike(int index,V1alpha1Variable item) { + return new VariablesNested(index, item); + } + + public VariablesNested editVariable(int index) { + if (variables.size() <= index) throw new RuntimeException("Can't edit variables. Index exceeds size."); + return setNewVariableLike(index, buildVariable(index)); + } + + public VariablesNested editFirstVariable() { + if (variables.size() == 0) throw new RuntimeException("Can't edit first variables. The list is empty."); + return setNewVariableLike(0, buildVariable(0)); + } + + public VariablesNested editLastVariable() { + int index = variables.size() - 1; + if (index < 0) throw new RuntimeException("Can't edit last variables. The list is empty."); + return setNewVariableLike(index, buildVariable(index)); + } + + public VariablesNested editMatchingVariable(Predicate predicate) { + int index = -1; + for (int i=0;i extends V1alpha1MatchConditionFluent> implements Nested{ + MatchConditionsNested(int index,V1alpha1MatchCondition item) { + this.index = index; + this.builder = new V1alpha1MatchConditionBuilder(this, item); + } + V1alpha1MatchConditionBuilder builder; + int index; + + public N and() { + return (N) V1alpha1MutatingAdmissionPolicySpecFluent.this.setToMatchConditions(index,builder.build()); + } + + public N endMatchCondition() { + return and(); + } + + + } + public class MatchConstraintsNested extends V1alpha1MatchResourcesFluent> implements Nested{ + MatchConstraintsNested(V1alpha1MatchResources item) { + this.builder = new V1alpha1MatchResourcesBuilder(this, item); + } + V1alpha1MatchResourcesBuilder builder; + + public N and() { + return (N) V1alpha1MutatingAdmissionPolicySpecFluent.this.withMatchConstraints(builder.build()); + } + + public N endMatchConstraints() { + return and(); + } + + + } + public class MutationsNested extends V1alpha1MutationFluent> implements Nested{ + MutationsNested(int index,V1alpha1Mutation item) { + this.index = index; + this.builder = new V1alpha1MutationBuilder(this, item); + } + V1alpha1MutationBuilder builder; + int index; + + public N and() { + return (N) V1alpha1MutatingAdmissionPolicySpecFluent.this.setToMutations(index,builder.build()); + } + + public N endMutation() { + return and(); + } + + + } + public class ParamKindNested extends V1alpha1ParamKindFluent> implements Nested{ + ParamKindNested(V1alpha1ParamKind item) { + this.builder = new V1alpha1ParamKindBuilder(this, item); + } + V1alpha1ParamKindBuilder builder; + + public N and() { + return (N) V1alpha1MutatingAdmissionPolicySpecFluent.this.withParamKind(builder.build()); + } + + public N endParamKind() { + return and(); + } + + + } + public class VariablesNested extends V1alpha1VariableFluent> implements Nested{ + VariablesNested(int index,V1alpha1Variable item) { + this.index = index; + this.builder = new V1alpha1VariableBuilder(this, item); + } + V1alpha1VariableBuilder builder; + int index; + + public N and() { + return (N) V1alpha1MutatingAdmissionPolicySpecFluent.this.setToVariables(index,builder.build()); + } + + public N endVariable() { + return and(); + } + + + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MutationBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MutationBuilder.java new file mode 100644 index 0000000000..53ac54a911 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MutationBuilder.java @@ -0,0 +1,33 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +public class V1alpha1MutationBuilder extends V1alpha1MutationFluent implements VisitableBuilder{ + public V1alpha1MutationBuilder() { + this(new V1alpha1Mutation()); + } + + public V1alpha1MutationBuilder(V1alpha1MutationFluent fluent) { + this(fluent, new V1alpha1Mutation()); + } + + public V1alpha1MutationBuilder(V1alpha1MutationFluent fluent,V1alpha1Mutation instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1alpha1MutationBuilder(V1alpha1Mutation instance) { + this.fluent = this; + this.copyInstance(instance); + } + V1alpha1MutationFluent fluent; + + public V1alpha1Mutation build() { + V1alpha1Mutation buildable = new V1alpha1Mutation(); + buildable.setApplyConfiguration(fluent.buildApplyConfiguration()); + buildable.setJsonPatch(fluent.buildJsonPatch()); + buildable.setPatchType(fluent.getPatchType()); + return buildable; + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MutationFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MutationFluent.java new file mode 100644 index 0000000000..521b9b33b0 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MutationFluent.java @@ -0,0 +1,183 @@ +package io.kubernetes.client.openapi.models; + +import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.Nested; +import java.lang.String; +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Object; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1alpha1MutationFluent> extends BaseFluent{ + public V1alpha1MutationFluent() { + } + + public V1alpha1MutationFluent(V1alpha1Mutation instance) { + this.copyInstance(instance); + } + private V1alpha1ApplyConfigurationBuilder applyConfiguration; + private V1alpha1JSONPatchBuilder jsonPatch; + private String patchType; + + protected void copyInstance(V1alpha1Mutation instance) { + instance = (instance != null ? instance : new V1alpha1Mutation()); + if (instance != null) { + this.withApplyConfiguration(instance.getApplyConfiguration()); + this.withJsonPatch(instance.getJsonPatch()); + this.withPatchType(instance.getPatchType()); + } + } + + public V1alpha1ApplyConfiguration buildApplyConfiguration() { + return this.applyConfiguration != null ? this.applyConfiguration.build() : null; + } + + public A withApplyConfiguration(V1alpha1ApplyConfiguration applyConfiguration) { + this._visitables.remove("applyConfiguration"); + if (applyConfiguration != null) { + this.applyConfiguration = new V1alpha1ApplyConfigurationBuilder(applyConfiguration); + this._visitables.get("applyConfiguration").add(this.applyConfiguration); + } else { + this.applyConfiguration = null; + this._visitables.get("applyConfiguration").remove(this.applyConfiguration); + } + return (A) this; + } + + public boolean hasApplyConfiguration() { + return this.applyConfiguration != null; + } + + public ApplyConfigurationNested withNewApplyConfiguration() { + return new ApplyConfigurationNested(null); + } + + public ApplyConfigurationNested withNewApplyConfigurationLike(V1alpha1ApplyConfiguration item) { + return new ApplyConfigurationNested(item); + } + + public ApplyConfigurationNested editApplyConfiguration() { + return withNewApplyConfigurationLike(java.util.Optional.ofNullable(buildApplyConfiguration()).orElse(null)); + } + + public ApplyConfigurationNested editOrNewApplyConfiguration() { + return withNewApplyConfigurationLike(java.util.Optional.ofNullable(buildApplyConfiguration()).orElse(new V1alpha1ApplyConfigurationBuilder().build())); + } + + public ApplyConfigurationNested editOrNewApplyConfigurationLike(V1alpha1ApplyConfiguration item) { + return withNewApplyConfigurationLike(java.util.Optional.ofNullable(buildApplyConfiguration()).orElse(item)); + } + + public V1alpha1JSONPatch buildJsonPatch() { + return this.jsonPatch != null ? this.jsonPatch.build() : null; + } + + public A withJsonPatch(V1alpha1JSONPatch jsonPatch) { + this._visitables.remove("jsonPatch"); + if (jsonPatch != null) { + this.jsonPatch = new V1alpha1JSONPatchBuilder(jsonPatch); + this._visitables.get("jsonPatch").add(this.jsonPatch); + } else { + this.jsonPatch = null; + this._visitables.get("jsonPatch").remove(this.jsonPatch); + } + return (A) this; + } + + public boolean hasJsonPatch() { + return this.jsonPatch != null; + } + + public JsonPatchNested withNewJsonPatch() { + return new JsonPatchNested(null); + } + + public JsonPatchNested withNewJsonPatchLike(V1alpha1JSONPatch item) { + return new JsonPatchNested(item); + } + + public JsonPatchNested editJsonPatch() { + return withNewJsonPatchLike(java.util.Optional.ofNullable(buildJsonPatch()).orElse(null)); + } + + public JsonPatchNested editOrNewJsonPatch() { + return withNewJsonPatchLike(java.util.Optional.ofNullable(buildJsonPatch()).orElse(new V1alpha1JSONPatchBuilder().build())); + } + + public JsonPatchNested editOrNewJsonPatchLike(V1alpha1JSONPatch item) { + return withNewJsonPatchLike(java.util.Optional.ofNullable(buildJsonPatch()).orElse(item)); + } + + public String getPatchType() { + return this.patchType; + } + + public A withPatchType(String patchType) { + this.patchType = patchType; + return (A) this; + } + + public boolean hasPatchType() { + return this.patchType != null; + } + + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + if (!super.equals(o)) return false; + V1alpha1MutationFluent that = (V1alpha1MutationFluent) o; + if (!java.util.Objects.equals(applyConfiguration, that.applyConfiguration)) return false; + if (!java.util.Objects.equals(jsonPatch, that.jsonPatch)) return false; + if (!java.util.Objects.equals(patchType, that.patchType)) return false; + return true; + } + + public int hashCode() { + return java.util.Objects.hash(applyConfiguration, jsonPatch, patchType, super.hashCode()); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (applyConfiguration != null) { sb.append("applyConfiguration:"); sb.append(applyConfiguration + ","); } + if (jsonPatch != null) { sb.append("jsonPatch:"); sb.append(jsonPatch + ","); } + if (patchType != null) { sb.append("patchType:"); sb.append(patchType); } + sb.append("}"); + return sb.toString(); + } + public class ApplyConfigurationNested extends V1alpha1ApplyConfigurationFluent> implements Nested{ + ApplyConfigurationNested(V1alpha1ApplyConfiguration item) { + this.builder = new V1alpha1ApplyConfigurationBuilder(this, item); + } + V1alpha1ApplyConfigurationBuilder builder; + + public N and() { + return (N) V1alpha1MutationFluent.this.withApplyConfiguration(builder.build()); + } + + public N endApplyConfiguration() { + return and(); + } + + + } + public class JsonPatchNested extends V1alpha1JSONPatchFluent> implements Nested{ + JsonPatchNested(V1alpha1JSONPatch item) { + this.builder = new V1alpha1JSONPatchBuilder(this, item); + } + V1alpha1JSONPatchBuilder builder; + + public N and() { + return (N) V1alpha1MutationFluent.this.withJsonPatch(builder.build()); + } + + public N endJsonPatch() { + return and(); + } + + + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ParentReferenceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ParentReferenceBuilder.java deleted file mode 100644 index 8b2b920d22..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ParentReferenceBuilder.java +++ /dev/null @@ -1,35 +0,0 @@ -package io.kubernetes.client.openapi.models; - -import io.kubernetes.client.fluent.VisitableBuilder; -public class V1alpha1ParentReferenceBuilder extends V1alpha1ParentReferenceFluent implements VisitableBuilder{ - public V1alpha1ParentReferenceBuilder() { - this(new V1alpha1ParentReference()); - } - - public V1alpha1ParentReferenceBuilder(V1alpha1ParentReferenceFluent fluent) { - this(fluent, new V1alpha1ParentReference()); - } - - public V1alpha1ParentReferenceBuilder(V1alpha1ParentReferenceFluent fluent,V1alpha1ParentReference instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - - public V1alpha1ParentReferenceBuilder(V1alpha1ParentReference instance) { - this.fluent = this; - this.copyInstance(instance); - } - V1alpha1ParentReferenceFluent fluent; - - public V1alpha1ParentReference build() { - V1alpha1ParentReference buildable = new V1alpha1ParentReference(); - buildable.setGroup(fluent.getGroup()); - buildable.setName(fluent.getName()); - buildable.setNamespace(fluent.getNamespace()); - buildable.setResource(fluent.getResource()); - buildable.setUid(fluent.getUid()); - return buildable; - } - - -} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ParentReferenceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ParentReferenceFluent.java deleted file mode 100644 index cae3d5bc0e..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ParentReferenceFluent.java +++ /dev/null @@ -1,131 +0,0 @@ -package io.kubernetes.client.openapi.models; - -import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.BaseFluent; -import java.lang.Object; -import java.lang.String; - -/** - * Generated - */ -@SuppressWarnings("unchecked") -public class V1alpha1ParentReferenceFluent> extends BaseFluent{ - public V1alpha1ParentReferenceFluent() { - } - - public V1alpha1ParentReferenceFluent(V1alpha1ParentReference instance) { - this.copyInstance(instance); - } - private String group; - private String name; - private String namespace; - private String resource; - private String uid; - - protected void copyInstance(V1alpha1ParentReference instance) { - instance = (instance != null ? instance : new V1alpha1ParentReference()); - if (instance != null) { - this.withGroup(instance.getGroup()); - this.withName(instance.getName()); - this.withNamespace(instance.getNamespace()); - this.withResource(instance.getResource()); - this.withUid(instance.getUid()); - } - } - - public String getGroup() { - return this.group; - } - - public A withGroup(String group) { - this.group = group; - return (A) this; - } - - public boolean hasGroup() { - return this.group != null; - } - - public String getName() { - return this.name; - } - - public A withName(String name) { - this.name = name; - return (A) this; - } - - public boolean hasName() { - return this.name != null; - } - - public String getNamespace() { - return this.namespace; - } - - public A withNamespace(String namespace) { - this.namespace = namespace; - return (A) this; - } - - public boolean hasNamespace() { - return this.namespace != null; - } - - public String getResource() { - return this.resource; - } - - public A withResource(String resource) { - this.resource = resource; - return (A) this; - } - - public boolean hasResource() { - return this.resource != null; - } - - public String getUid() { - return this.uid; - } - - public A withUid(String uid) { - this.uid = uid; - return (A) this; - } - - public boolean hasUid() { - return this.uid != null; - } - - public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; - V1alpha1ParentReferenceFluent that = (V1alpha1ParentReferenceFluent) o; - if (!java.util.Objects.equals(group, that.group)) return false; - if (!java.util.Objects.equals(name, that.name)) return false; - if (!java.util.Objects.equals(namespace, that.namespace)) return false; - if (!java.util.Objects.equals(resource, that.resource)) return false; - if (!java.util.Objects.equals(uid, that.uid)) return false; - return true; - } - - public int hashCode() { - return java.util.Objects.hash(group, name, namespace, resource, uid, super.hashCode()); - } - - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("{"); - if (group != null) { sb.append("group:"); sb.append(group + ","); } - if (name != null) { sb.append("name:"); sb.append(name + ","); } - if (namespace != null) { sb.append("namespace:"); sb.append(namespace + ","); } - if (resource != null) { sb.append("resource:"); sb.append(resource + ","); } - if (uid != null) { sb.append("uid:"); sb.append(uid); } - sb.append("}"); - return sb.toString(); - } - - -} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1SelfSubjectReviewBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1SelfSubjectReviewBuilder.java deleted file mode 100644 index d3c46e4405..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1SelfSubjectReviewBuilder.java +++ /dev/null @@ -1,34 +0,0 @@ -package io.kubernetes.client.openapi.models; - -import io.kubernetes.client.fluent.VisitableBuilder; -public class V1alpha1SelfSubjectReviewBuilder extends V1alpha1SelfSubjectReviewFluent implements VisitableBuilder{ - public V1alpha1SelfSubjectReviewBuilder() { - this(new V1alpha1SelfSubjectReview()); - } - - public V1alpha1SelfSubjectReviewBuilder(V1alpha1SelfSubjectReviewFluent fluent) { - this(fluent, new V1alpha1SelfSubjectReview()); - } - - public V1alpha1SelfSubjectReviewBuilder(V1alpha1SelfSubjectReviewFluent fluent,V1alpha1SelfSubjectReview instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - - public V1alpha1SelfSubjectReviewBuilder(V1alpha1SelfSubjectReview instance) { - this.fluent = this; - this.copyInstance(instance); - } - V1alpha1SelfSubjectReviewFluent fluent; - - public V1alpha1SelfSubjectReview build() { - V1alpha1SelfSubjectReview buildable = new V1alpha1SelfSubjectReview(); - buildable.setApiVersion(fluent.getApiVersion()); - buildable.setKind(fluent.getKind()); - buildable.setMetadata(fluent.buildMetadata()); - buildable.setStatus(fluent.buildStatus()); - return buildable; - } - - -} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1SelfSubjectReviewFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1SelfSubjectReviewFluent.java deleted file mode 100644 index 708648ecdb..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1SelfSubjectReviewFluent.java +++ /dev/null @@ -1,200 +0,0 @@ -package io.kubernetes.client.openapi.models; - -import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.Nested; -import java.lang.String; -import io.kubernetes.client.fluent.BaseFluent; -import java.lang.Object; - -/** - * Generated - */ -@SuppressWarnings("unchecked") -public class V1alpha1SelfSubjectReviewFluent> extends BaseFluent{ - public V1alpha1SelfSubjectReviewFluent() { - } - - public V1alpha1SelfSubjectReviewFluent(V1alpha1SelfSubjectReview instance) { - this.copyInstance(instance); - } - private String apiVersion; - private String kind; - private V1ObjectMetaBuilder metadata; - private V1alpha1SelfSubjectReviewStatusBuilder status; - - protected void copyInstance(V1alpha1SelfSubjectReview instance) { - instance = (instance != null ? instance : new V1alpha1SelfSubjectReview()); - if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withKind(instance.getKind()); - this.withMetadata(instance.getMetadata()); - this.withStatus(instance.getStatus()); - } - } - - public String getApiVersion() { - return this.apiVersion; - } - - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; - } - - public boolean hasApiVersion() { - return this.apiVersion != null; - } - - public String getKind() { - return this.kind; - } - - public A withKind(String kind) { - this.kind = kind; - return (A) this; - } - - public boolean hasKind() { - return this.kind != null; - } - - public V1ObjectMeta buildMetadata() { - return this.metadata != null ? this.metadata.build() : null; - } - - public A withMetadata(V1ObjectMeta metadata) { - this._visitables.remove("metadata"); - if (metadata != null) { - this.metadata = new V1ObjectMetaBuilder(metadata); - this._visitables.get("metadata").add(this.metadata); - } else { - this.metadata = null; - this._visitables.get("metadata").remove(this.metadata); - } - return (A) this; - } - - public boolean hasMetadata() { - return this.metadata != null; - } - - public MetadataNested withNewMetadata() { - return new MetadataNested(null); - } - - public MetadataNested withNewMetadataLike(V1ObjectMeta item) { - return new MetadataNested(item); - } - - public MetadataNested editMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(null)); - } - - public MetadataNested editOrNewMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(new V1ObjectMetaBuilder().build())); - } - - public MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(item)); - } - - public V1alpha1SelfSubjectReviewStatus buildStatus() { - return this.status != null ? this.status.build() : null; - } - - public A withStatus(V1alpha1SelfSubjectReviewStatus status) { - this._visitables.remove("status"); - if (status != null) { - this.status = new V1alpha1SelfSubjectReviewStatusBuilder(status); - this._visitables.get("status").add(this.status); - } else { - this.status = null; - this._visitables.get("status").remove(this.status); - } - return (A) this; - } - - public boolean hasStatus() { - return this.status != null; - } - - public StatusNested withNewStatus() { - return new StatusNested(null); - } - - public StatusNested withNewStatusLike(V1alpha1SelfSubjectReviewStatus item) { - return new StatusNested(item); - } - - public StatusNested editStatus() { - return withNewStatusLike(java.util.Optional.ofNullable(buildStatus()).orElse(null)); - } - - public StatusNested editOrNewStatus() { - return withNewStatusLike(java.util.Optional.ofNullable(buildStatus()).orElse(new V1alpha1SelfSubjectReviewStatusBuilder().build())); - } - - public StatusNested editOrNewStatusLike(V1alpha1SelfSubjectReviewStatus item) { - return withNewStatusLike(java.util.Optional.ofNullable(buildStatus()).orElse(item)); - } - - public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; - V1alpha1SelfSubjectReviewFluent that = (V1alpha1SelfSubjectReviewFluent) o; - if (!java.util.Objects.equals(apiVersion, that.apiVersion)) return false; - if (!java.util.Objects.equals(kind, that.kind)) return false; - if (!java.util.Objects.equals(metadata, that.metadata)) return false; - if (!java.util.Objects.equals(status, that.status)) return false; - return true; - } - - public int hashCode() { - return java.util.Objects.hash(apiVersion, kind, metadata, status, super.hashCode()); - } - - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("{"); - if (apiVersion != null) { sb.append("apiVersion:"); sb.append(apiVersion + ","); } - if (kind != null) { sb.append("kind:"); sb.append(kind + ","); } - if (metadata != null) { sb.append("metadata:"); sb.append(metadata + ","); } - if (status != null) { sb.append("status:"); sb.append(status); } - sb.append("}"); - return sb.toString(); - } - public class MetadataNested extends V1ObjectMetaFluent> implements Nested{ - MetadataNested(V1ObjectMeta item) { - this.builder = new V1ObjectMetaBuilder(this, item); - } - V1ObjectMetaBuilder builder; - - public N and() { - return (N) V1alpha1SelfSubjectReviewFluent.this.withMetadata(builder.build()); - } - - public N endMetadata() { - return and(); - } - - - } - public class StatusNested extends V1alpha1SelfSubjectReviewStatusFluent> implements Nested{ - StatusNested(V1alpha1SelfSubjectReviewStatus item) { - this.builder = new V1alpha1SelfSubjectReviewStatusBuilder(this, item); - } - V1alpha1SelfSubjectReviewStatusBuilder builder; - - public N and() { - return (N) V1alpha1SelfSubjectReviewFluent.this.withStatus(builder.build()); - } - - public N endStatus() { - return and(); - } - - - } - -} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1SelfSubjectReviewStatusBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1SelfSubjectReviewStatusBuilder.java deleted file mode 100644 index 3f0f22a8ee..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1SelfSubjectReviewStatusBuilder.java +++ /dev/null @@ -1,31 +0,0 @@ -package io.kubernetes.client.openapi.models; - -import io.kubernetes.client.fluent.VisitableBuilder; -public class V1alpha1SelfSubjectReviewStatusBuilder extends V1alpha1SelfSubjectReviewStatusFluent implements VisitableBuilder{ - public V1alpha1SelfSubjectReviewStatusBuilder() { - this(new V1alpha1SelfSubjectReviewStatus()); - } - - public V1alpha1SelfSubjectReviewStatusBuilder(V1alpha1SelfSubjectReviewStatusFluent fluent) { - this(fluent, new V1alpha1SelfSubjectReviewStatus()); - } - - public V1alpha1SelfSubjectReviewStatusBuilder(V1alpha1SelfSubjectReviewStatusFluent fluent,V1alpha1SelfSubjectReviewStatus instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - - public V1alpha1SelfSubjectReviewStatusBuilder(V1alpha1SelfSubjectReviewStatus instance) { - this.fluent = this; - this.copyInstance(instance); - } - V1alpha1SelfSubjectReviewStatusFluent fluent; - - public V1alpha1SelfSubjectReviewStatus build() { - V1alpha1SelfSubjectReviewStatus buildable = new V1alpha1SelfSubjectReviewStatus(); - buildable.setUserInfo(fluent.buildUserInfo()); - return buildable; - } - - -} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1SelfSubjectReviewStatusFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1SelfSubjectReviewStatusFluent.java deleted file mode 100644 index 769322bb03..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1SelfSubjectReviewStatusFluent.java +++ /dev/null @@ -1,106 +0,0 @@ -package io.kubernetes.client.openapi.models; - -import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.BaseFluent; -import io.kubernetes.client.fluent.Nested; -import java.lang.Object; -import java.lang.String; - -/** - * Generated - */ -@SuppressWarnings("unchecked") -public class V1alpha1SelfSubjectReviewStatusFluent> extends BaseFluent{ - public V1alpha1SelfSubjectReviewStatusFluent() { - } - - public V1alpha1SelfSubjectReviewStatusFluent(V1alpha1SelfSubjectReviewStatus instance) { - this.copyInstance(instance); - } - private V1UserInfoBuilder userInfo; - - protected void copyInstance(V1alpha1SelfSubjectReviewStatus instance) { - instance = (instance != null ? instance : new V1alpha1SelfSubjectReviewStatus()); - if (instance != null) { - this.withUserInfo(instance.getUserInfo()); - } - } - - public V1UserInfo buildUserInfo() { - return this.userInfo != null ? this.userInfo.build() : null; - } - - public A withUserInfo(V1UserInfo userInfo) { - this._visitables.remove("userInfo"); - if (userInfo != null) { - this.userInfo = new V1UserInfoBuilder(userInfo); - this._visitables.get("userInfo").add(this.userInfo); - } else { - this.userInfo = null; - this._visitables.get("userInfo").remove(this.userInfo); - } - return (A) this; - } - - public boolean hasUserInfo() { - return this.userInfo != null; - } - - public UserInfoNested withNewUserInfo() { - return new UserInfoNested(null); - } - - public UserInfoNested withNewUserInfoLike(V1UserInfo item) { - return new UserInfoNested(item); - } - - public UserInfoNested editUserInfo() { - return withNewUserInfoLike(java.util.Optional.ofNullable(buildUserInfo()).orElse(null)); - } - - public UserInfoNested editOrNewUserInfo() { - return withNewUserInfoLike(java.util.Optional.ofNullable(buildUserInfo()).orElse(new V1UserInfoBuilder().build())); - } - - public UserInfoNested editOrNewUserInfoLike(V1UserInfo item) { - return withNewUserInfoLike(java.util.Optional.ofNullable(buildUserInfo()).orElse(item)); - } - - public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; - V1alpha1SelfSubjectReviewStatusFluent that = (V1alpha1SelfSubjectReviewStatusFluent) o; - if (!java.util.Objects.equals(userInfo, that.userInfo)) return false; - return true; - } - - public int hashCode() { - return java.util.Objects.hash(userInfo, super.hashCode()); - } - - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("{"); - if (userInfo != null) { sb.append("userInfo:"); sb.append(userInfo); } - sb.append("}"); - return sb.toString(); - } - public class UserInfoNested extends V1UserInfoFluent> implements Nested{ - UserInfoNested(V1UserInfo item) { - this.builder = new V1UserInfoBuilder(this, item); - } - V1UserInfoBuilder builder; - - public N and() { - return (N) V1alpha1SelfSubjectReviewStatusFluent.this.withUserInfo(builder.build()); - } - - public N endUserInfo() { - return and(); - } - - - } - -} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionListFluent.java index 510dbfeb0a..f3d8057a55 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionListFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionListFluent.java @@ -54,14 +54,26 @@ public boolean hasApiVersion() { public A addToItems(int index,V1alpha1StorageVersion item) { if (this.items == null) {this.items = new ArrayList();} V1alpha1StorageVersionBuilder builder = new V1alpha1StorageVersionBuilder(item); - if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); items.add(builder); } else { _visitables.get("items").add(index, builder); items.add(index, builder);} + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.add(index, builder); + } return (A)this; } public A setToItems(int index,V1alpha1StorageVersion item) { if (this.items == null) {this.items = new ArrayList();} V1alpha1StorageVersionBuilder builder = new V1alpha1StorageVersionBuilder(item); - if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); items.add(builder); } else { _visitables.get("items").set(index, builder); items.set(index, builder);} + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.set(index, builder); + } return (A)this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionMigrationBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionMigrationBuilder.java new file mode 100644 index 0000000000..0ed34cde79 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionMigrationBuilder.java @@ -0,0 +1,35 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +public class V1alpha1StorageVersionMigrationBuilder extends V1alpha1StorageVersionMigrationFluent implements VisitableBuilder{ + public V1alpha1StorageVersionMigrationBuilder() { + this(new V1alpha1StorageVersionMigration()); + } + + public V1alpha1StorageVersionMigrationBuilder(V1alpha1StorageVersionMigrationFluent fluent) { + this(fluent, new V1alpha1StorageVersionMigration()); + } + + public V1alpha1StorageVersionMigrationBuilder(V1alpha1StorageVersionMigrationFluent fluent,V1alpha1StorageVersionMigration instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1alpha1StorageVersionMigrationBuilder(V1alpha1StorageVersionMigration instance) { + this.fluent = this; + this.copyInstance(instance); + } + V1alpha1StorageVersionMigrationFluent fluent; + + public V1alpha1StorageVersionMigration build() { + V1alpha1StorageVersionMigration buildable = new V1alpha1StorageVersionMigration(); + buildable.setApiVersion(fluent.getApiVersion()); + buildable.setKind(fluent.getKind()); + buildable.setMetadata(fluent.buildMetadata()); + buildable.setSpec(fluent.buildSpec()); + buildable.setStatus(fluent.buildStatus()); + return buildable; + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionMigrationFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionMigrationFluent.java new file mode 100644 index 0000000000..196024de18 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionMigrationFluent.java @@ -0,0 +1,260 @@ +package io.kubernetes.client.openapi.models; + +import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.Nested; +import java.lang.String; +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Object; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1alpha1StorageVersionMigrationFluent> extends BaseFluent{ + public V1alpha1StorageVersionMigrationFluent() { + } + + public V1alpha1StorageVersionMigrationFluent(V1alpha1StorageVersionMigration instance) { + this.copyInstance(instance); + } + private String apiVersion; + private String kind; + private V1ObjectMetaBuilder metadata; + private V1alpha1StorageVersionMigrationSpecBuilder spec; + private V1alpha1StorageVersionMigrationStatusBuilder status; + + protected void copyInstance(V1alpha1StorageVersionMigration instance) { + instance = (instance != null ? instance : new V1alpha1StorageVersionMigration()); + if (instance != null) { + this.withApiVersion(instance.getApiVersion()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); + this.withSpec(instance.getSpec()); + this.withStatus(instance.getStatus()); + } + } + + public String getApiVersion() { + return this.apiVersion; + } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + + public boolean hasApiVersion() { + return this.apiVersion != null; + } + + public String getKind() { + return this.kind; + } + + public A withKind(String kind) { + this.kind = kind; + return (A) this; + } + + public boolean hasKind() { + return this.kind != null; + } + + public V1ObjectMeta buildMetadata() { + return this.metadata != null ? this.metadata.build() : null; + } + + public A withMetadata(V1ObjectMeta metadata) { + this._visitables.remove("metadata"); + if (metadata != null) { + this.metadata = new V1ObjectMetaBuilder(metadata); + this._visitables.get("metadata").add(this.metadata); + } else { + this.metadata = null; + this._visitables.get("metadata").remove(this.metadata); + } + return (A) this; + } + + public boolean hasMetadata() { + return this.metadata != null; + } + + public MetadataNested withNewMetadata() { + return new MetadataNested(null); + } + + public MetadataNested withNewMetadataLike(V1ObjectMeta item) { + return new MetadataNested(item); + } + + public MetadataNested editMetadata() { + return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(null)); + } + + public MetadataNested editOrNewMetadata() { + return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(new V1ObjectMetaBuilder().build())); + } + + public MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { + return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(item)); + } + + public V1alpha1StorageVersionMigrationSpec buildSpec() { + return this.spec != null ? this.spec.build() : null; + } + + public A withSpec(V1alpha1StorageVersionMigrationSpec spec) { + this._visitables.remove("spec"); + if (spec != null) { + this.spec = new V1alpha1StorageVersionMigrationSpecBuilder(spec); + this._visitables.get("spec").add(this.spec); + } else { + this.spec = null; + this._visitables.get("spec").remove(this.spec); + } + return (A) this; + } + + public boolean hasSpec() { + return this.spec != null; + } + + public SpecNested withNewSpec() { + return new SpecNested(null); + } + + public SpecNested withNewSpecLike(V1alpha1StorageVersionMigrationSpec item) { + return new SpecNested(item); + } + + public SpecNested editSpec() { + return withNewSpecLike(java.util.Optional.ofNullable(buildSpec()).orElse(null)); + } + + public SpecNested editOrNewSpec() { + return withNewSpecLike(java.util.Optional.ofNullable(buildSpec()).orElse(new V1alpha1StorageVersionMigrationSpecBuilder().build())); + } + + public SpecNested editOrNewSpecLike(V1alpha1StorageVersionMigrationSpec item) { + return withNewSpecLike(java.util.Optional.ofNullable(buildSpec()).orElse(item)); + } + + public V1alpha1StorageVersionMigrationStatus buildStatus() { + return this.status != null ? this.status.build() : null; + } + + public A withStatus(V1alpha1StorageVersionMigrationStatus status) { + this._visitables.remove("status"); + if (status != null) { + this.status = new V1alpha1StorageVersionMigrationStatusBuilder(status); + this._visitables.get("status").add(this.status); + } else { + this.status = null; + this._visitables.get("status").remove(this.status); + } + return (A) this; + } + + public boolean hasStatus() { + return this.status != null; + } + + public StatusNested withNewStatus() { + return new StatusNested(null); + } + + public StatusNested withNewStatusLike(V1alpha1StorageVersionMigrationStatus item) { + return new StatusNested(item); + } + + public StatusNested editStatus() { + return withNewStatusLike(java.util.Optional.ofNullable(buildStatus()).orElse(null)); + } + + public StatusNested editOrNewStatus() { + return withNewStatusLike(java.util.Optional.ofNullable(buildStatus()).orElse(new V1alpha1StorageVersionMigrationStatusBuilder().build())); + } + + public StatusNested editOrNewStatusLike(V1alpha1StorageVersionMigrationStatus item) { + return withNewStatusLike(java.util.Optional.ofNullable(buildStatus()).orElse(item)); + } + + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + if (!super.equals(o)) return false; + V1alpha1StorageVersionMigrationFluent that = (V1alpha1StorageVersionMigrationFluent) o; + if (!java.util.Objects.equals(apiVersion, that.apiVersion)) return false; + if (!java.util.Objects.equals(kind, that.kind)) return false; + if (!java.util.Objects.equals(metadata, that.metadata)) return false; + if (!java.util.Objects.equals(spec, that.spec)) return false; + if (!java.util.Objects.equals(status, that.status)) return false; + return true; + } + + public int hashCode() { + return java.util.Objects.hash(apiVersion, kind, metadata, spec, status, super.hashCode()); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (apiVersion != null) { sb.append("apiVersion:"); sb.append(apiVersion + ","); } + if (kind != null) { sb.append("kind:"); sb.append(kind + ","); } + if (metadata != null) { sb.append("metadata:"); sb.append(metadata + ","); } + if (spec != null) { sb.append("spec:"); sb.append(spec + ","); } + if (status != null) { sb.append("status:"); sb.append(status); } + sb.append("}"); + return sb.toString(); + } + public class MetadataNested extends V1ObjectMetaFluent> implements Nested{ + MetadataNested(V1ObjectMeta item) { + this.builder = new V1ObjectMetaBuilder(this, item); + } + V1ObjectMetaBuilder builder; + + public N and() { + return (N) V1alpha1StorageVersionMigrationFluent.this.withMetadata(builder.build()); + } + + public N endMetadata() { + return and(); + } + + + } + public class SpecNested extends V1alpha1StorageVersionMigrationSpecFluent> implements Nested{ + SpecNested(V1alpha1StorageVersionMigrationSpec item) { + this.builder = new V1alpha1StorageVersionMigrationSpecBuilder(this, item); + } + V1alpha1StorageVersionMigrationSpecBuilder builder; + + public N and() { + return (N) V1alpha1StorageVersionMigrationFluent.this.withSpec(builder.build()); + } + + public N endSpec() { + return and(); + } + + + } + public class StatusNested extends V1alpha1StorageVersionMigrationStatusFluent> implements Nested{ + StatusNested(V1alpha1StorageVersionMigrationStatus item) { + this.builder = new V1alpha1StorageVersionMigrationStatusBuilder(this, item); + } + V1alpha1StorageVersionMigrationStatusBuilder builder; + + public N and() { + return (N) V1alpha1StorageVersionMigrationFluent.this.withStatus(builder.build()); + } + + public N endStatus() { + return and(); + } + + + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionMigrationListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionMigrationListBuilder.java new file mode 100644 index 0000000000..af864cecf0 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionMigrationListBuilder.java @@ -0,0 +1,34 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +public class V1alpha1StorageVersionMigrationListBuilder extends V1alpha1StorageVersionMigrationListFluent implements VisitableBuilder{ + public V1alpha1StorageVersionMigrationListBuilder() { + this(new V1alpha1StorageVersionMigrationList()); + } + + public V1alpha1StorageVersionMigrationListBuilder(V1alpha1StorageVersionMigrationListFluent fluent) { + this(fluent, new V1alpha1StorageVersionMigrationList()); + } + + public V1alpha1StorageVersionMigrationListBuilder(V1alpha1StorageVersionMigrationListFluent fluent,V1alpha1StorageVersionMigrationList instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1alpha1StorageVersionMigrationListBuilder(V1alpha1StorageVersionMigrationList instance) { + this.fluent = this; + this.copyInstance(instance); + } + V1alpha1StorageVersionMigrationListFluent fluent; + + public V1alpha1StorageVersionMigrationList build() { + V1alpha1StorageVersionMigrationList buildable = new V1alpha1StorageVersionMigrationList(); + buildable.setApiVersion(fluent.getApiVersion()); + buildable.setItems(fluent.buildItems()); + buildable.setKind(fluent.getKind()); + buildable.setMetadata(fluent.buildMetadata()); + return buildable; + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionMigrationListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionMigrationListFluent.java new file mode 100644 index 0000000000..818513a4b1 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionMigrationListFluent.java @@ -0,0 +1,331 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.Nested; +import java.util.ArrayList; +import java.lang.String; +import java.util.function.Predicate; +import io.kubernetes.client.fluent.BaseFluent; +import java.util.Iterator; +import java.util.Collection; +import java.lang.Object; +import java.util.List; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1alpha1StorageVersionMigrationListFluent> extends BaseFluent{ + public V1alpha1StorageVersionMigrationListFluent() { + } + + public V1alpha1StorageVersionMigrationListFluent(V1alpha1StorageVersionMigrationList instance) { + this.copyInstance(instance); + } + private String apiVersion; + private ArrayList items; + private String kind; + private V1ListMetaBuilder metadata; + + protected void copyInstance(V1alpha1StorageVersionMigrationList instance) { + instance = (instance != null ? instance : new V1alpha1StorageVersionMigrationList()); + if (instance != null) { + this.withApiVersion(instance.getApiVersion()); + this.withItems(instance.getItems()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); + } + } + + public String getApiVersion() { + return this.apiVersion; + } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + + public boolean hasApiVersion() { + return this.apiVersion != null; + } + + public A addToItems(int index,V1alpha1StorageVersionMigration item) { + if (this.items == null) {this.items = new ArrayList();} + V1alpha1StorageVersionMigrationBuilder builder = new V1alpha1StorageVersionMigrationBuilder(item); + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.add(index, builder); + } + return (A)this; + } + + public A setToItems(int index,V1alpha1StorageVersionMigration item) { + if (this.items == null) {this.items = new ArrayList();} + V1alpha1StorageVersionMigrationBuilder builder = new V1alpha1StorageVersionMigrationBuilder(item); + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.set(index, builder); + } + return (A)this; + } + + public A addToItems(io.kubernetes.client.openapi.models.V1alpha1StorageVersionMigration... items) { + if (this.items == null) {this.items = new ArrayList();} + for (V1alpha1StorageVersionMigration item : items) {V1alpha1StorageVersionMigrationBuilder builder = new V1alpha1StorageVersionMigrationBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; + } + + public A addAllToItems(Collection items) { + if (this.items == null) {this.items = new ArrayList();} + for (V1alpha1StorageVersionMigration item : items) {V1alpha1StorageVersionMigrationBuilder builder = new V1alpha1StorageVersionMigrationBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; + } + + public A removeFromItems(io.kubernetes.client.openapi.models.V1alpha1StorageVersionMigration... items) { + if (this.items == null) return (A)this; + for (V1alpha1StorageVersionMigration item : items) {V1alpha1StorageVersionMigrationBuilder builder = new V1alpha1StorageVersionMigrationBuilder(item);_visitables.get("items").remove(builder); this.items.remove(builder);} return (A)this; + } + + public A removeAllFromItems(Collection items) { + if (this.items == null) return (A)this; + for (V1alpha1StorageVersionMigration item : items) {V1alpha1StorageVersionMigrationBuilder builder = new V1alpha1StorageVersionMigrationBuilder(item);_visitables.get("items").remove(builder); this.items.remove(builder);} return (A)this; + } + + public A removeMatchingFromItems(Predicate predicate) { + if (items == null) return (A) this; + final Iterator each = items.iterator(); + final List visitables = _visitables.get("items"); + while (each.hasNext()) { + V1alpha1StorageVersionMigrationBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A)this; + } + + public List buildItems() { + return this.items != null ? build(items) : null; + } + + public V1alpha1StorageVersionMigration buildItem(int index) { + return this.items.get(index).build(); + } + + public V1alpha1StorageVersionMigration buildFirstItem() { + return this.items.get(0).build(); + } + + public V1alpha1StorageVersionMigration buildLastItem() { + return this.items.get(items.size() - 1).build(); + } + + public V1alpha1StorageVersionMigration buildMatchingItem(Predicate predicate) { + for (V1alpha1StorageVersionMigrationBuilder item : items) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; + } + + public boolean hasMatchingItem(Predicate predicate) { + for (V1alpha1StorageVersionMigrationBuilder item : items) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public A withItems(List items) { + if (this.items != null) { + this._visitables.get("items").clear(); + } + if (items != null) { + this.items = new ArrayList(); + for (V1alpha1StorageVersionMigration item : items) { + this.addToItems(item); + } + } else { + this.items = null; + } + return (A) this; + } + + public A withItems(io.kubernetes.client.openapi.models.V1alpha1StorageVersionMigration... items) { + if (this.items != null) { + this.items.clear(); + _visitables.remove("items"); + } + if (items != null) { + for (V1alpha1StorageVersionMigration item : items) { + this.addToItems(item); + } + } + return (A) this; + } + + public boolean hasItems() { + return this.items != null && !this.items.isEmpty(); + } + + public ItemsNested addNewItem() { + return new ItemsNested(-1, null); + } + + public ItemsNested addNewItemLike(V1alpha1StorageVersionMigration item) { + return new ItemsNested(-1, item); + } + + public ItemsNested setNewItemLike(int index,V1alpha1StorageVersionMigration item) { + return new ItemsNested(index, item); + } + + public ItemsNested editItem(int index) { + if (items.size() <= index) throw new RuntimeException("Can't edit items. Index exceeds size."); + return setNewItemLike(index, buildItem(index)); + } + + public ItemsNested editFirstItem() { + if (items.size() == 0) throw new RuntimeException("Can't edit first items. The list is empty."); + return setNewItemLike(0, buildItem(0)); + } + + public ItemsNested editLastItem() { + int index = items.size() - 1; + if (index < 0) throw new RuntimeException("Can't edit last items. The list is empty."); + return setNewItemLike(index, buildItem(index)); + } + + public ItemsNested editMatchingItem(Predicate predicate) { + int index = -1; + for (int i=0;i withNewMetadata() { + return new MetadataNested(null); + } + + public MetadataNested withNewMetadataLike(V1ListMeta item) { + return new MetadataNested(item); + } + + public MetadataNested editMetadata() { + return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(null)); + } + + public MetadataNested editOrNewMetadata() { + return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(new V1ListMetaBuilder().build())); + } + + public MetadataNested editOrNewMetadataLike(V1ListMeta item) { + return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(item)); + } + + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + if (!super.equals(o)) return false; + V1alpha1StorageVersionMigrationListFluent that = (V1alpha1StorageVersionMigrationListFluent) o; + if (!java.util.Objects.equals(apiVersion, that.apiVersion)) return false; + if (!java.util.Objects.equals(items, that.items)) return false; + if (!java.util.Objects.equals(kind, that.kind)) return false; + if (!java.util.Objects.equals(metadata, that.metadata)) return false; + return true; + } + + public int hashCode() { + return java.util.Objects.hash(apiVersion, items, kind, metadata, super.hashCode()); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (apiVersion != null) { sb.append("apiVersion:"); sb.append(apiVersion + ","); } + if (items != null && !items.isEmpty()) { sb.append("items:"); sb.append(items + ","); } + if (kind != null) { sb.append("kind:"); sb.append(kind + ","); } + if (metadata != null) { sb.append("metadata:"); sb.append(metadata); } + sb.append("}"); + return sb.toString(); + } + public class ItemsNested extends V1alpha1StorageVersionMigrationFluent> implements Nested{ + ItemsNested(int index,V1alpha1StorageVersionMigration item) { + this.index = index; + this.builder = new V1alpha1StorageVersionMigrationBuilder(this, item); + } + V1alpha1StorageVersionMigrationBuilder builder; + int index; + + public N and() { + return (N) V1alpha1StorageVersionMigrationListFluent.this.setToItems(index,builder.build()); + } + + public N endItem() { + return and(); + } + + + } + public class MetadataNested extends V1ListMetaFluent> implements Nested{ + MetadataNested(V1ListMeta item) { + this.builder = new V1ListMetaBuilder(this, item); + } + V1ListMetaBuilder builder; + + public N and() { + return (N) V1alpha1StorageVersionMigrationListFluent.this.withMetadata(builder.build()); + } + + public N endMetadata() { + return and(); + } + + + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionMigrationSpecBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionMigrationSpecBuilder.java new file mode 100644 index 0000000000..1431914912 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionMigrationSpecBuilder.java @@ -0,0 +1,32 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +public class V1alpha1StorageVersionMigrationSpecBuilder extends V1alpha1StorageVersionMigrationSpecFluent implements VisitableBuilder{ + public V1alpha1StorageVersionMigrationSpecBuilder() { + this(new V1alpha1StorageVersionMigrationSpec()); + } + + public V1alpha1StorageVersionMigrationSpecBuilder(V1alpha1StorageVersionMigrationSpecFluent fluent) { + this(fluent, new V1alpha1StorageVersionMigrationSpec()); + } + + public V1alpha1StorageVersionMigrationSpecBuilder(V1alpha1StorageVersionMigrationSpecFluent fluent,V1alpha1StorageVersionMigrationSpec instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1alpha1StorageVersionMigrationSpecBuilder(V1alpha1StorageVersionMigrationSpec instance) { + this.fluent = this; + this.copyInstance(instance); + } + V1alpha1StorageVersionMigrationSpecFluent fluent; + + public V1alpha1StorageVersionMigrationSpec build() { + V1alpha1StorageVersionMigrationSpec buildable = new V1alpha1StorageVersionMigrationSpec(); + buildable.setContinueToken(fluent.getContinueToken()); + buildable.setResource(fluent.buildResource()); + return buildable; + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionMigrationSpecFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionMigrationSpecFluent.java new file mode 100644 index 0000000000..0f2def270c --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionMigrationSpecFluent.java @@ -0,0 +1,123 @@ +package io.kubernetes.client.openapi.models; + +import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Object; +import java.lang.String; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1alpha1StorageVersionMigrationSpecFluent> extends BaseFluent{ + public V1alpha1StorageVersionMigrationSpecFluent() { + } + + public V1alpha1StorageVersionMigrationSpecFluent(V1alpha1StorageVersionMigrationSpec instance) { + this.copyInstance(instance); + } + private String continueToken; + private V1alpha1GroupVersionResourceBuilder resource; + + protected void copyInstance(V1alpha1StorageVersionMigrationSpec instance) { + instance = (instance != null ? instance : new V1alpha1StorageVersionMigrationSpec()); + if (instance != null) { + this.withContinueToken(instance.getContinueToken()); + this.withResource(instance.getResource()); + } + } + + public String getContinueToken() { + return this.continueToken; + } + + public A withContinueToken(String continueToken) { + this.continueToken = continueToken; + return (A) this; + } + + public boolean hasContinueToken() { + return this.continueToken != null; + } + + public V1alpha1GroupVersionResource buildResource() { + return this.resource != null ? this.resource.build() : null; + } + + public A withResource(V1alpha1GroupVersionResource resource) { + this._visitables.remove("resource"); + if (resource != null) { + this.resource = new V1alpha1GroupVersionResourceBuilder(resource); + this._visitables.get("resource").add(this.resource); + } else { + this.resource = null; + this._visitables.get("resource").remove(this.resource); + } + return (A) this; + } + + public boolean hasResource() { + return this.resource != null; + } + + public ResourceNested withNewResource() { + return new ResourceNested(null); + } + + public ResourceNested withNewResourceLike(V1alpha1GroupVersionResource item) { + return new ResourceNested(item); + } + + public ResourceNested editResource() { + return withNewResourceLike(java.util.Optional.ofNullable(buildResource()).orElse(null)); + } + + public ResourceNested editOrNewResource() { + return withNewResourceLike(java.util.Optional.ofNullable(buildResource()).orElse(new V1alpha1GroupVersionResourceBuilder().build())); + } + + public ResourceNested editOrNewResourceLike(V1alpha1GroupVersionResource item) { + return withNewResourceLike(java.util.Optional.ofNullable(buildResource()).orElse(item)); + } + + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + if (!super.equals(o)) return false; + V1alpha1StorageVersionMigrationSpecFluent that = (V1alpha1StorageVersionMigrationSpecFluent) o; + if (!java.util.Objects.equals(continueToken, that.continueToken)) return false; + if (!java.util.Objects.equals(resource, that.resource)) return false; + return true; + } + + public int hashCode() { + return java.util.Objects.hash(continueToken, resource, super.hashCode()); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (continueToken != null) { sb.append("continueToken:"); sb.append(continueToken + ","); } + if (resource != null) { sb.append("resource:"); sb.append(resource); } + sb.append("}"); + return sb.toString(); + } + public class ResourceNested extends V1alpha1GroupVersionResourceFluent> implements Nested{ + ResourceNested(V1alpha1GroupVersionResource item) { + this.builder = new V1alpha1GroupVersionResourceBuilder(this, item); + } + V1alpha1GroupVersionResourceBuilder builder; + + public N and() { + return (N) V1alpha1StorageVersionMigrationSpecFluent.this.withResource(builder.build()); + } + + public N endResource() { + return and(); + } + + + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionMigrationStatusBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionMigrationStatusBuilder.java new file mode 100644 index 0000000000..83a57589e2 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionMigrationStatusBuilder.java @@ -0,0 +1,32 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +public class V1alpha1StorageVersionMigrationStatusBuilder extends V1alpha1StorageVersionMigrationStatusFluent implements VisitableBuilder{ + public V1alpha1StorageVersionMigrationStatusBuilder() { + this(new V1alpha1StorageVersionMigrationStatus()); + } + + public V1alpha1StorageVersionMigrationStatusBuilder(V1alpha1StorageVersionMigrationStatusFluent fluent) { + this(fluent, new V1alpha1StorageVersionMigrationStatus()); + } + + public V1alpha1StorageVersionMigrationStatusBuilder(V1alpha1StorageVersionMigrationStatusFluent fluent,V1alpha1StorageVersionMigrationStatus instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1alpha1StorageVersionMigrationStatusBuilder(V1alpha1StorageVersionMigrationStatus instance) { + this.fluent = this; + this.copyInstance(instance); + } + V1alpha1StorageVersionMigrationStatusFluent fluent; + + public V1alpha1StorageVersionMigrationStatus build() { + V1alpha1StorageVersionMigrationStatus buildable = new V1alpha1StorageVersionMigrationStatus(); + buildable.setConditions(fluent.buildConditions()); + buildable.setResourceVersion(fluent.getResourceVersion()); + return buildable; + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionMigrationStatusFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionMigrationStatusFluent.java new file mode 100644 index 0000000000..f3da90555f --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionMigrationStatusFluent.java @@ -0,0 +1,254 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.Nested; +import java.util.ArrayList; +import java.lang.String; +import java.util.function.Predicate; +import io.kubernetes.client.fluent.BaseFluent; +import java.util.Iterator; +import java.util.Collection; +import java.lang.Object; +import java.util.List; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1alpha1StorageVersionMigrationStatusFluent> extends BaseFluent{ + public V1alpha1StorageVersionMigrationStatusFluent() { + } + + public V1alpha1StorageVersionMigrationStatusFluent(V1alpha1StorageVersionMigrationStatus instance) { + this.copyInstance(instance); + } + private ArrayList conditions; + private String resourceVersion; + + protected void copyInstance(V1alpha1StorageVersionMigrationStatus instance) { + instance = (instance != null ? instance : new V1alpha1StorageVersionMigrationStatus()); + if (instance != null) { + this.withConditions(instance.getConditions()); + this.withResourceVersion(instance.getResourceVersion()); + } + } + + public A addToConditions(int index,V1alpha1MigrationCondition item) { + if (this.conditions == null) {this.conditions = new ArrayList();} + V1alpha1MigrationConditionBuilder builder = new V1alpha1MigrationConditionBuilder(item); + if (index < 0 || index >= conditions.size()) { + _visitables.get("conditions").add(builder); + conditions.add(builder); + } else { + _visitables.get("conditions").add(builder); + conditions.add(index, builder); + } + return (A)this; + } + + public A setToConditions(int index,V1alpha1MigrationCondition item) { + if (this.conditions == null) {this.conditions = new ArrayList();} + V1alpha1MigrationConditionBuilder builder = new V1alpha1MigrationConditionBuilder(item); + if (index < 0 || index >= conditions.size()) { + _visitables.get("conditions").add(builder); + conditions.add(builder); + } else { + _visitables.get("conditions").add(builder); + conditions.set(index, builder); + } + return (A)this; + } + + public A addToConditions(io.kubernetes.client.openapi.models.V1alpha1MigrationCondition... items) { + if (this.conditions == null) {this.conditions = new ArrayList();} + for (V1alpha1MigrationCondition item : items) {V1alpha1MigrationConditionBuilder builder = new V1alpha1MigrationConditionBuilder(item);_visitables.get("conditions").add(builder);this.conditions.add(builder);} return (A)this; + } + + public A addAllToConditions(Collection items) { + if (this.conditions == null) {this.conditions = new ArrayList();} + for (V1alpha1MigrationCondition item : items) {V1alpha1MigrationConditionBuilder builder = new V1alpha1MigrationConditionBuilder(item);_visitables.get("conditions").add(builder);this.conditions.add(builder);} return (A)this; + } + + public A removeFromConditions(io.kubernetes.client.openapi.models.V1alpha1MigrationCondition... items) { + if (this.conditions == null) return (A)this; + for (V1alpha1MigrationCondition item : items) {V1alpha1MigrationConditionBuilder builder = new V1alpha1MigrationConditionBuilder(item);_visitables.get("conditions").remove(builder); this.conditions.remove(builder);} return (A)this; + } + + public A removeAllFromConditions(Collection items) { + if (this.conditions == null) return (A)this; + for (V1alpha1MigrationCondition item : items) {V1alpha1MigrationConditionBuilder builder = new V1alpha1MigrationConditionBuilder(item);_visitables.get("conditions").remove(builder); this.conditions.remove(builder);} return (A)this; + } + + public A removeMatchingFromConditions(Predicate predicate) { + if (conditions == null) return (A) this; + final Iterator each = conditions.iterator(); + final List visitables = _visitables.get("conditions"); + while (each.hasNext()) { + V1alpha1MigrationConditionBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A)this; + } + + public List buildConditions() { + return this.conditions != null ? build(conditions) : null; + } + + public V1alpha1MigrationCondition buildCondition(int index) { + return this.conditions.get(index).build(); + } + + public V1alpha1MigrationCondition buildFirstCondition() { + return this.conditions.get(0).build(); + } + + public V1alpha1MigrationCondition buildLastCondition() { + return this.conditions.get(conditions.size() - 1).build(); + } + + public V1alpha1MigrationCondition buildMatchingCondition(Predicate predicate) { + for (V1alpha1MigrationConditionBuilder item : conditions) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; + } + + public boolean hasMatchingCondition(Predicate predicate) { + for (V1alpha1MigrationConditionBuilder item : conditions) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public A withConditions(List conditions) { + if (this.conditions != null) { + this._visitables.get("conditions").clear(); + } + if (conditions != null) { + this.conditions = new ArrayList(); + for (V1alpha1MigrationCondition item : conditions) { + this.addToConditions(item); + } + } else { + this.conditions = null; + } + return (A) this; + } + + public A withConditions(io.kubernetes.client.openapi.models.V1alpha1MigrationCondition... conditions) { + if (this.conditions != null) { + this.conditions.clear(); + _visitables.remove("conditions"); + } + if (conditions != null) { + for (V1alpha1MigrationCondition item : conditions) { + this.addToConditions(item); + } + } + return (A) this; + } + + public boolean hasConditions() { + return this.conditions != null && !this.conditions.isEmpty(); + } + + public ConditionsNested addNewCondition() { + return new ConditionsNested(-1, null); + } + + public ConditionsNested addNewConditionLike(V1alpha1MigrationCondition item) { + return new ConditionsNested(-1, item); + } + + public ConditionsNested setNewConditionLike(int index,V1alpha1MigrationCondition item) { + return new ConditionsNested(index, item); + } + + public ConditionsNested editCondition(int index) { + if (conditions.size() <= index) throw new RuntimeException("Can't edit conditions. Index exceeds size."); + return setNewConditionLike(index, buildCondition(index)); + } + + public ConditionsNested editFirstCondition() { + if (conditions.size() == 0) throw new RuntimeException("Can't edit first conditions. The list is empty."); + return setNewConditionLike(0, buildCondition(0)); + } + + public ConditionsNested editLastCondition() { + int index = conditions.size() - 1; + if (index < 0) throw new RuntimeException("Can't edit last conditions. The list is empty."); + return setNewConditionLike(index, buildCondition(index)); + } + + public ConditionsNested editMatchingCondition(Predicate predicate) { + int index = -1; + for (int i=0;i extends V1alpha1MigrationConditionFluent> implements Nested{ + ConditionsNested(int index,V1alpha1MigrationCondition item) { + this.index = index; + this.builder = new V1alpha1MigrationConditionBuilder(this, item); + } + V1alpha1MigrationConditionBuilder builder; + int index; + + public N and() { + return (N) V1alpha1StorageVersionMigrationStatusFluent.this.setToConditions(index,builder.build()); + } + + public N endCondition() { + return and(); + } + + + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionStatusFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionStatusFluent.java index b3fcca6409..4a27543bac 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionStatusFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionStatusFluent.java @@ -52,14 +52,26 @@ public boolean hasCommonEncodingVersion() { public A addToConditions(int index,V1alpha1StorageVersionCondition item) { if (this.conditions == null) {this.conditions = new ArrayList();} V1alpha1StorageVersionConditionBuilder builder = new V1alpha1StorageVersionConditionBuilder(item); - if (index < 0 || index >= conditions.size()) { _visitables.get("conditions").add(builder); conditions.add(builder); } else { _visitables.get("conditions").add(index, builder); conditions.add(index, builder);} + if (index < 0 || index >= conditions.size()) { + _visitables.get("conditions").add(builder); + conditions.add(builder); + } else { + _visitables.get("conditions").add(builder); + conditions.add(index, builder); + } return (A)this; } public A setToConditions(int index,V1alpha1StorageVersionCondition item) { if (this.conditions == null) {this.conditions = new ArrayList();} V1alpha1StorageVersionConditionBuilder builder = new V1alpha1StorageVersionConditionBuilder(item); - if (index < 0 || index >= conditions.size()) { _visitables.get("conditions").add(builder); conditions.add(builder); } else { _visitables.get("conditions").set(index, builder); conditions.set(index, builder);} + if (index < 0 || index >= conditions.size()) { + _visitables.get("conditions").add(builder); + conditions.add(builder); + } else { + _visitables.get("conditions").add(builder); + conditions.set(index, builder); + } return (A)this; } @@ -203,14 +215,26 @@ public ConditionsNested editMatchingCondition(Predicate();} V1alpha1ServerStorageVersionBuilder builder = new V1alpha1ServerStorageVersionBuilder(item); - if (index < 0 || index >= storageVersions.size()) { _visitables.get("storageVersions").add(builder); storageVersions.add(builder); } else { _visitables.get("storageVersions").add(index, builder); storageVersions.add(index, builder);} + if (index < 0 || index >= storageVersions.size()) { + _visitables.get("storageVersions").add(builder); + storageVersions.add(builder); + } else { + _visitables.get("storageVersions").add(builder); + storageVersions.add(index, builder); + } return (A)this; } public A setToStorageVersions(int index,V1alpha1ServerStorageVersion item) { if (this.storageVersions == null) {this.storageVersions = new ArrayList();} V1alpha1ServerStorageVersionBuilder builder = new V1alpha1ServerStorageVersionBuilder(item); - if (index < 0 || index >= storageVersions.size()) { _visitables.get("storageVersions").add(builder); storageVersions.add(builder); } else { _visitables.get("storageVersions").set(index, builder); storageVersions.set(index, builder);} + if (index < 0 || index >= storageVersions.size()) { + _visitables.get("storageVersions").add(builder); + storageVersions.add(builder); + } else { + _visitables.get("storageVersions").add(builder); + storageVersions.set(index, builder); + } return (A)this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1TypeCheckingBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1TypeCheckingBuilder.java deleted file mode 100644 index 27cb0c206f..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1TypeCheckingBuilder.java +++ /dev/null @@ -1,31 +0,0 @@ -package io.kubernetes.client.openapi.models; - -import io.kubernetes.client.fluent.VisitableBuilder; -public class V1alpha1TypeCheckingBuilder extends V1alpha1TypeCheckingFluent implements VisitableBuilder{ - public V1alpha1TypeCheckingBuilder() { - this(new V1alpha1TypeChecking()); - } - - public V1alpha1TypeCheckingBuilder(V1alpha1TypeCheckingFluent fluent) { - this(fluent, new V1alpha1TypeChecking()); - } - - public V1alpha1TypeCheckingBuilder(V1alpha1TypeCheckingFluent fluent,V1alpha1TypeChecking instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - - public V1alpha1TypeCheckingBuilder(V1alpha1TypeChecking instance) { - this.fluent = this; - this.copyInstance(instance); - } - V1alpha1TypeCheckingFluent fluent; - - public V1alpha1TypeChecking build() { - V1alpha1TypeChecking buildable = new V1alpha1TypeChecking(); - buildable.setExpressionWarnings(fluent.buildExpressionWarnings()); - return buildable; - } - - -} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1TypeCheckingFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1TypeCheckingFluent.java deleted file mode 100644 index 2b970f5a22..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1TypeCheckingFluent.java +++ /dev/null @@ -1,225 +0,0 @@ -package io.kubernetes.client.openapi.models; - -import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.Nested; -import java.util.ArrayList; -import java.lang.String; -import java.util.function.Predicate; -import io.kubernetes.client.fluent.BaseFluent; -import java.util.Iterator; -import java.util.Collection; -import java.lang.Object; -import java.util.List; - -/** - * Generated - */ -@SuppressWarnings("unchecked") -public class V1alpha1TypeCheckingFluent> extends BaseFluent{ - public V1alpha1TypeCheckingFluent() { - } - - public V1alpha1TypeCheckingFluent(V1alpha1TypeChecking instance) { - this.copyInstance(instance); - } - private ArrayList expressionWarnings; - - protected void copyInstance(V1alpha1TypeChecking instance) { - instance = (instance != null ? instance : new V1alpha1TypeChecking()); - if (instance != null) { - this.withExpressionWarnings(instance.getExpressionWarnings()); - } - } - - public A addToExpressionWarnings(int index,V1alpha1ExpressionWarning item) { - if (this.expressionWarnings == null) {this.expressionWarnings = new ArrayList();} - V1alpha1ExpressionWarningBuilder builder = new V1alpha1ExpressionWarningBuilder(item); - if (index < 0 || index >= expressionWarnings.size()) { _visitables.get("expressionWarnings").add(builder); expressionWarnings.add(builder); } else { _visitables.get("expressionWarnings").add(index, builder); expressionWarnings.add(index, builder);} - return (A)this; - } - - public A setToExpressionWarnings(int index,V1alpha1ExpressionWarning item) { - if (this.expressionWarnings == null) {this.expressionWarnings = new ArrayList();} - V1alpha1ExpressionWarningBuilder builder = new V1alpha1ExpressionWarningBuilder(item); - if (index < 0 || index >= expressionWarnings.size()) { _visitables.get("expressionWarnings").add(builder); expressionWarnings.add(builder); } else { _visitables.get("expressionWarnings").set(index, builder); expressionWarnings.set(index, builder);} - return (A)this; - } - - public A addToExpressionWarnings(io.kubernetes.client.openapi.models.V1alpha1ExpressionWarning... items) { - if (this.expressionWarnings == null) {this.expressionWarnings = new ArrayList();} - for (V1alpha1ExpressionWarning item : items) {V1alpha1ExpressionWarningBuilder builder = new V1alpha1ExpressionWarningBuilder(item);_visitables.get("expressionWarnings").add(builder);this.expressionWarnings.add(builder);} return (A)this; - } - - public A addAllToExpressionWarnings(Collection items) { - if (this.expressionWarnings == null) {this.expressionWarnings = new ArrayList();} - for (V1alpha1ExpressionWarning item : items) {V1alpha1ExpressionWarningBuilder builder = new V1alpha1ExpressionWarningBuilder(item);_visitables.get("expressionWarnings").add(builder);this.expressionWarnings.add(builder);} return (A)this; - } - - public A removeFromExpressionWarnings(io.kubernetes.client.openapi.models.V1alpha1ExpressionWarning... items) { - if (this.expressionWarnings == null) return (A)this; - for (V1alpha1ExpressionWarning item : items) {V1alpha1ExpressionWarningBuilder builder = new V1alpha1ExpressionWarningBuilder(item);_visitables.get("expressionWarnings").remove(builder); this.expressionWarnings.remove(builder);} return (A)this; - } - - public A removeAllFromExpressionWarnings(Collection items) { - if (this.expressionWarnings == null) return (A)this; - for (V1alpha1ExpressionWarning item : items) {V1alpha1ExpressionWarningBuilder builder = new V1alpha1ExpressionWarningBuilder(item);_visitables.get("expressionWarnings").remove(builder); this.expressionWarnings.remove(builder);} return (A)this; - } - - public A removeMatchingFromExpressionWarnings(Predicate predicate) { - if (expressionWarnings == null) return (A) this; - final Iterator each = expressionWarnings.iterator(); - final List visitables = _visitables.get("expressionWarnings"); - while (each.hasNext()) { - V1alpha1ExpressionWarningBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } - } - return (A)this; - } - - public List buildExpressionWarnings() { - return this.expressionWarnings != null ? build(expressionWarnings) : null; - } - - public V1alpha1ExpressionWarning buildExpressionWarning(int index) { - return this.expressionWarnings.get(index).build(); - } - - public V1alpha1ExpressionWarning buildFirstExpressionWarning() { - return this.expressionWarnings.get(0).build(); - } - - public V1alpha1ExpressionWarning buildLastExpressionWarning() { - return this.expressionWarnings.get(expressionWarnings.size() - 1).build(); - } - - public V1alpha1ExpressionWarning buildMatchingExpressionWarning(Predicate predicate) { - for (V1alpha1ExpressionWarningBuilder item : expressionWarnings) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; - } - - public boolean hasMatchingExpressionWarning(Predicate predicate) { - for (V1alpha1ExpressionWarningBuilder item : expressionWarnings) { - if (predicate.test(item)) { - return true; - } - } - return false; - } - - public A withExpressionWarnings(List expressionWarnings) { - if (this.expressionWarnings != null) { - this._visitables.get("expressionWarnings").clear(); - } - if (expressionWarnings != null) { - this.expressionWarnings = new ArrayList(); - for (V1alpha1ExpressionWarning item : expressionWarnings) { - this.addToExpressionWarnings(item); - } - } else { - this.expressionWarnings = null; - } - return (A) this; - } - - public A withExpressionWarnings(io.kubernetes.client.openapi.models.V1alpha1ExpressionWarning... expressionWarnings) { - if (this.expressionWarnings != null) { - this.expressionWarnings.clear(); - _visitables.remove("expressionWarnings"); - } - if (expressionWarnings != null) { - for (V1alpha1ExpressionWarning item : expressionWarnings) { - this.addToExpressionWarnings(item); - } - } - return (A) this; - } - - public boolean hasExpressionWarnings() { - return this.expressionWarnings != null && !this.expressionWarnings.isEmpty(); - } - - public ExpressionWarningsNested addNewExpressionWarning() { - return new ExpressionWarningsNested(-1, null); - } - - public ExpressionWarningsNested addNewExpressionWarningLike(V1alpha1ExpressionWarning item) { - return new ExpressionWarningsNested(-1, item); - } - - public ExpressionWarningsNested setNewExpressionWarningLike(int index,V1alpha1ExpressionWarning item) { - return new ExpressionWarningsNested(index, item); - } - - public ExpressionWarningsNested editExpressionWarning(int index) { - if (expressionWarnings.size() <= index) throw new RuntimeException("Can't edit expressionWarnings. Index exceeds size."); - return setNewExpressionWarningLike(index, buildExpressionWarning(index)); - } - - public ExpressionWarningsNested editFirstExpressionWarning() { - if (expressionWarnings.size() == 0) throw new RuntimeException("Can't edit first expressionWarnings. The list is empty."); - return setNewExpressionWarningLike(0, buildExpressionWarning(0)); - } - - public ExpressionWarningsNested editLastExpressionWarning() { - int index = expressionWarnings.size() - 1; - if (index < 0) throw new RuntimeException("Can't edit last expressionWarnings. The list is empty."); - return setNewExpressionWarningLike(index, buildExpressionWarning(index)); - } - - public ExpressionWarningsNested editMatchingExpressionWarning(Predicate predicate) { - int index = -1; - for (int i=0;i extends V1alpha1ExpressionWarningFluent> implements Nested{ - ExpressionWarningsNested(int index,V1alpha1ExpressionWarning item) { - this.index = index; - this.builder = new V1alpha1ExpressionWarningBuilder(this, item); - } - V1alpha1ExpressionWarningBuilder builder; - int index; - - public N and() { - return (N) V1alpha1TypeCheckingFluent.this.setToExpressionWarnings(index,builder.build()); - } - - public N endExpressionWarning() { - return and(); - } - - - } - -} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ValidatingAdmissionPolicyBindingBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ValidatingAdmissionPolicyBindingBuilder.java deleted file mode 100644 index af05a742d0..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ValidatingAdmissionPolicyBindingBuilder.java +++ /dev/null @@ -1,34 +0,0 @@ -package io.kubernetes.client.openapi.models; - -import io.kubernetes.client.fluent.VisitableBuilder; -public class V1alpha1ValidatingAdmissionPolicyBindingBuilder extends V1alpha1ValidatingAdmissionPolicyBindingFluent implements VisitableBuilder{ - public V1alpha1ValidatingAdmissionPolicyBindingBuilder() { - this(new V1alpha1ValidatingAdmissionPolicyBinding()); - } - - public V1alpha1ValidatingAdmissionPolicyBindingBuilder(V1alpha1ValidatingAdmissionPolicyBindingFluent fluent) { - this(fluent, new V1alpha1ValidatingAdmissionPolicyBinding()); - } - - public V1alpha1ValidatingAdmissionPolicyBindingBuilder(V1alpha1ValidatingAdmissionPolicyBindingFluent fluent,V1alpha1ValidatingAdmissionPolicyBinding instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - - public V1alpha1ValidatingAdmissionPolicyBindingBuilder(V1alpha1ValidatingAdmissionPolicyBinding instance) { - this.fluent = this; - this.copyInstance(instance); - } - V1alpha1ValidatingAdmissionPolicyBindingFluent fluent; - - public V1alpha1ValidatingAdmissionPolicyBinding build() { - V1alpha1ValidatingAdmissionPolicyBinding buildable = new V1alpha1ValidatingAdmissionPolicyBinding(); - buildable.setApiVersion(fluent.getApiVersion()); - buildable.setKind(fluent.getKind()); - buildable.setMetadata(fluent.buildMetadata()); - buildable.setSpec(fluent.buildSpec()); - return buildable; - } - - -} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ValidatingAdmissionPolicyBindingFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ValidatingAdmissionPolicyBindingFluent.java deleted file mode 100644 index 42f5e48448..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ValidatingAdmissionPolicyBindingFluent.java +++ /dev/null @@ -1,200 +0,0 @@ -package io.kubernetes.client.openapi.models; - -import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.Nested; -import java.lang.String; -import io.kubernetes.client.fluent.BaseFluent; -import java.lang.Object; - -/** - * Generated - */ -@SuppressWarnings("unchecked") -public class V1alpha1ValidatingAdmissionPolicyBindingFluent> extends BaseFluent{ - public V1alpha1ValidatingAdmissionPolicyBindingFluent() { - } - - public V1alpha1ValidatingAdmissionPolicyBindingFluent(V1alpha1ValidatingAdmissionPolicyBinding instance) { - this.copyInstance(instance); - } - private String apiVersion; - private String kind; - private V1ObjectMetaBuilder metadata; - private V1alpha1ValidatingAdmissionPolicyBindingSpecBuilder spec; - - protected void copyInstance(V1alpha1ValidatingAdmissionPolicyBinding instance) { - instance = (instance != null ? instance : new V1alpha1ValidatingAdmissionPolicyBinding()); - if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withKind(instance.getKind()); - this.withMetadata(instance.getMetadata()); - this.withSpec(instance.getSpec()); - } - } - - public String getApiVersion() { - return this.apiVersion; - } - - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; - } - - public boolean hasApiVersion() { - return this.apiVersion != null; - } - - public String getKind() { - return this.kind; - } - - public A withKind(String kind) { - this.kind = kind; - return (A) this; - } - - public boolean hasKind() { - return this.kind != null; - } - - public V1ObjectMeta buildMetadata() { - return this.metadata != null ? this.metadata.build() : null; - } - - public A withMetadata(V1ObjectMeta metadata) { - this._visitables.remove("metadata"); - if (metadata != null) { - this.metadata = new V1ObjectMetaBuilder(metadata); - this._visitables.get("metadata").add(this.metadata); - } else { - this.metadata = null; - this._visitables.get("metadata").remove(this.metadata); - } - return (A) this; - } - - public boolean hasMetadata() { - return this.metadata != null; - } - - public MetadataNested withNewMetadata() { - return new MetadataNested(null); - } - - public MetadataNested withNewMetadataLike(V1ObjectMeta item) { - return new MetadataNested(item); - } - - public MetadataNested editMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(null)); - } - - public MetadataNested editOrNewMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(new V1ObjectMetaBuilder().build())); - } - - public MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(item)); - } - - public V1alpha1ValidatingAdmissionPolicyBindingSpec buildSpec() { - return this.spec != null ? this.spec.build() : null; - } - - public A withSpec(V1alpha1ValidatingAdmissionPolicyBindingSpec spec) { - this._visitables.remove("spec"); - if (spec != null) { - this.spec = new V1alpha1ValidatingAdmissionPolicyBindingSpecBuilder(spec); - this._visitables.get("spec").add(this.spec); - } else { - this.spec = null; - this._visitables.get("spec").remove(this.spec); - } - return (A) this; - } - - public boolean hasSpec() { - return this.spec != null; - } - - public SpecNested withNewSpec() { - return new SpecNested(null); - } - - public SpecNested withNewSpecLike(V1alpha1ValidatingAdmissionPolicyBindingSpec item) { - return new SpecNested(item); - } - - public SpecNested editSpec() { - return withNewSpecLike(java.util.Optional.ofNullable(buildSpec()).orElse(null)); - } - - public SpecNested editOrNewSpec() { - return withNewSpecLike(java.util.Optional.ofNullable(buildSpec()).orElse(new V1alpha1ValidatingAdmissionPolicyBindingSpecBuilder().build())); - } - - public SpecNested editOrNewSpecLike(V1alpha1ValidatingAdmissionPolicyBindingSpec item) { - return withNewSpecLike(java.util.Optional.ofNullable(buildSpec()).orElse(item)); - } - - public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; - V1alpha1ValidatingAdmissionPolicyBindingFluent that = (V1alpha1ValidatingAdmissionPolicyBindingFluent) o; - if (!java.util.Objects.equals(apiVersion, that.apiVersion)) return false; - if (!java.util.Objects.equals(kind, that.kind)) return false; - if (!java.util.Objects.equals(metadata, that.metadata)) return false; - if (!java.util.Objects.equals(spec, that.spec)) return false; - return true; - } - - public int hashCode() { - return java.util.Objects.hash(apiVersion, kind, metadata, spec, super.hashCode()); - } - - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("{"); - if (apiVersion != null) { sb.append("apiVersion:"); sb.append(apiVersion + ","); } - if (kind != null) { sb.append("kind:"); sb.append(kind + ","); } - if (metadata != null) { sb.append("metadata:"); sb.append(metadata + ","); } - if (spec != null) { sb.append("spec:"); sb.append(spec); } - sb.append("}"); - return sb.toString(); - } - public class MetadataNested extends V1ObjectMetaFluent> implements Nested{ - MetadataNested(V1ObjectMeta item) { - this.builder = new V1ObjectMetaBuilder(this, item); - } - V1ObjectMetaBuilder builder; - - public N and() { - return (N) V1alpha1ValidatingAdmissionPolicyBindingFluent.this.withMetadata(builder.build()); - } - - public N endMetadata() { - return and(); - } - - - } - public class SpecNested extends V1alpha1ValidatingAdmissionPolicyBindingSpecFluent> implements Nested{ - SpecNested(V1alpha1ValidatingAdmissionPolicyBindingSpec item) { - this.builder = new V1alpha1ValidatingAdmissionPolicyBindingSpecBuilder(this, item); - } - V1alpha1ValidatingAdmissionPolicyBindingSpecBuilder builder; - - public N and() { - return (N) V1alpha1ValidatingAdmissionPolicyBindingFluent.this.withSpec(builder.build()); - } - - public N endSpec() { - return and(); - } - - - } - -} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ValidatingAdmissionPolicyBindingListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ValidatingAdmissionPolicyBindingListBuilder.java deleted file mode 100644 index b370f5499c..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ValidatingAdmissionPolicyBindingListBuilder.java +++ /dev/null @@ -1,34 +0,0 @@ -package io.kubernetes.client.openapi.models; - -import io.kubernetes.client.fluent.VisitableBuilder; -public class V1alpha1ValidatingAdmissionPolicyBindingListBuilder extends V1alpha1ValidatingAdmissionPolicyBindingListFluent implements VisitableBuilder{ - public V1alpha1ValidatingAdmissionPolicyBindingListBuilder() { - this(new V1alpha1ValidatingAdmissionPolicyBindingList()); - } - - public V1alpha1ValidatingAdmissionPolicyBindingListBuilder(V1alpha1ValidatingAdmissionPolicyBindingListFluent fluent) { - this(fluent, new V1alpha1ValidatingAdmissionPolicyBindingList()); - } - - public V1alpha1ValidatingAdmissionPolicyBindingListBuilder(V1alpha1ValidatingAdmissionPolicyBindingListFluent fluent,V1alpha1ValidatingAdmissionPolicyBindingList instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - - public V1alpha1ValidatingAdmissionPolicyBindingListBuilder(V1alpha1ValidatingAdmissionPolicyBindingList instance) { - this.fluent = this; - this.copyInstance(instance); - } - V1alpha1ValidatingAdmissionPolicyBindingListFluent fluent; - - public V1alpha1ValidatingAdmissionPolicyBindingList build() { - V1alpha1ValidatingAdmissionPolicyBindingList buildable = new V1alpha1ValidatingAdmissionPolicyBindingList(); - buildable.setApiVersion(fluent.getApiVersion()); - buildable.setItems(fluent.buildItems()); - buildable.setKind(fluent.getKind()); - buildable.setMetadata(fluent.buildMetadata()); - return buildable; - } - - -} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ValidatingAdmissionPolicyBindingListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ValidatingAdmissionPolicyBindingListFluent.java deleted file mode 100644 index 995480d316..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ValidatingAdmissionPolicyBindingListFluent.java +++ /dev/null @@ -1,319 +0,0 @@ -package io.kubernetes.client.openapi.models; - -import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.Nested; -import java.util.ArrayList; -import java.lang.String; -import java.util.function.Predicate; -import io.kubernetes.client.fluent.BaseFluent; -import java.util.Iterator; -import java.util.Collection; -import java.lang.Object; -import java.util.List; - -/** - * Generated - */ -@SuppressWarnings("unchecked") -public class V1alpha1ValidatingAdmissionPolicyBindingListFluent> extends BaseFluent{ - public V1alpha1ValidatingAdmissionPolicyBindingListFluent() { - } - - public V1alpha1ValidatingAdmissionPolicyBindingListFluent(V1alpha1ValidatingAdmissionPolicyBindingList instance) { - this.copyInstance(instance); - } - private String apiVersion; - private ArrayList items; - private String kind; - private V1ListMetaBuilder metadata; - - protected void copyInstance(V1alpha1ValidatingAdmissionPolicyBindingList instance) { - instance = (instance != null ? instance : new V1alpha1ValidatingAdmissionPolicyBindingList()); - if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withItems(instance.getItems()); - this.withKind(instance.getKind()); - this.withMetadata(instance.getMetadata()); - } - } - - public String getApiVersion() { - return this.apiVersion; - } - - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; - } - - public boolean hasApiVersion() { - return this.apiVersion != null; - } - - public A addToItems(int index,V1alpha1ValidatingAdmissionPolicyBinding item) { - if (this.items == null) {this.items = new ArrayList();} - V1alpha1ValidatingAdmissionPolicyBindingBuilder builder = new V1alpha1ValidatingAdmissionPolicyBindingBuilder(item); - if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); items.add(builder); } else { _visitables.get("items").add(index, builder); items.add(index, builder);} - return (A)this; - } - - public A setToItems(int index,V1alpha1ValidatingAdmissionPolicyBinding item) { - if (this.items == null) {this.items = new ArrayList();} - V1alpha1ValidatingAdmissionPolicyBindingBuilder builder = new V1alpha1ValidatingAdmissionPolicyBindingBuilder(item); - if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); items.add(builder); } else { _visitables.get("items").set(index, builder); items.set(index, builder);} - return (A)this; - } - - public A addToItems(io.kubernetes.client.openapi.models.V1alpha1ValidatingAdmissionPolicyBinding... items) { - if (this.items == null) {this.items = new ArrayList();} - for (V1alpha1ValidatingAdmissionPolicyBinding item : items) {V1alpha1ValidatingAdmissionPolicyBindingBuilder builder = new V1alpha1ValidatingAdmissionPolicyBindingBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; - } - - public A addAllToItems(Collection items) { - if (this.items == null) {this.items = new ArrayList();} - for (V1alpha1ValidatingAdmissionPolicyBinding item : items) {V1alpha1ValidatingAdmissionPolicyBindingBuilder builder = new V1alpha1ValidatingAdmissionPolicyBindingBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; - } - - public A removeFromItems(io.kubernetes.client.openapi.models.V1alpha1ValidatingAdmissionPolicyBinding... items) { - if (this.items == null) return (A)this; - for (V1alpha1ValidatingAdmissionPolicyBinding item : items) {V1alpha1ValidatingAdmissionPolicyBindingBuilder builder = new V1alpha1ValidatingAdmissionPolicyBindingBuilder(item);_visitables.get("items").remove(builder); this.items.remove(builder);} return (A)this; - } - - public A removeAllFromItems(Collection items) { - if (this.items == null) return (A)this; - for (V1alpha1ValidatingAdmissionPolicyBinding item : items) {V1alpha1ValidatingAdmissionPolicyBindingBuilder builder = new V1alpha1ValidatingAdmissionPolicyBindingBuilder(item);_visitables.get("items").remove(builder); this.items.remove(builder);} return (A)this; - } - - public A removeMatchingFromItems(Predicate predicate) { - if (items == null) return (A) this; - final Iterator each = items.iterator(); - final List visitables = _visitables.get("items"); - while (each.hasNext()) { - V1alpha1ValidatingAdmissionPolicyBindingBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } - } - return (A)this; - } - - public List buildItems() { - return this.items != null ? build(items) : null; - } - - public V1alpha1ValidatingAdmissionPolicyBinding buildItem(int index) { - return this.items.get(index).build(); - } - - public V1alpha1ValidatingAdmissionPolicyBinding buildFirstItem() { - return this.items.get(0).build(); - } - - public V1alpha1ValidatingAdmissionPolicyBinding buildLastItem() { - return this.items.get(items.size() - 1).build(); - } - - public V1alpha1ValidatingAdmissionPolicyBinding buildMatchingItem(Predicate predicate) { - for (V1alpha1ValidatingAdmissionPolicyBindingBuilder item : items) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; - } - - public boolean hasMatchingItem(Predicate predicate) { - for (V1alpha1ValidatingAdmissionPolicyBindingBuilder item : items) { - if (predicate.test(item)) { - return true; - } - } - return false; - } - - public A withItems(List items) { - if (this.items != null) { - this._visitables.get("items").clear(); - } - if (items != null) { - this.items = new ArrayList(); - for (V1alpha1ValidatingAdmissionPolicyBinding item : items) { - this.addToItems(item); - } - } else { - this.items = null; - } - return (A) this; - } - - public A withItems(io.kubernetes.client.openapi.models.V1alpha1ValidatingAdmissionPolicyBinding... items) { - if (this.items != null) { - this.items.clear(); - _visitables.remove("items"); - } - if (items != null) { - for (V1alpha1ValidatingAdmissionPolicyBinding item : items) { - this.addToItems(item); - } - } - return (A) this; - } - - public boolean hasItems() { - return this.items != null && !this.items.isEmpty(); - } - - public ItemsNested addNewItem() { - return new ItemsNested(-1, null); - } - - public ItemsNested addNewItemLike(V1alpha1ValidatingAdmissionPolicyBinding item) { - return new ItemsNested(-1, item); - } - - public ItemsNested setNewItemLike(int index,V1alpha1ValidatingAdmissionPolicyBinding item) { - return new ItemsNested(index, item); - } - - public ItemsNested editItem(int index) { - if (items.size() <= index) throw new RuntimeException("Can't edit items. Index exceeds size."); - return setNewItemLike(index, buildItem(index)); - } - - public ItemsNested editFirstItem() { - if (items.size() == 0) throw new RuntimeException("Can't edit first items. The list is empty."); - return setNewItemLike(0, buildItem(0)); - } - - public ItemsNested editLastItem() { - int index = items.size() - 1; - if (index < 0) throw new RuntimeException("Can't edit last items. The list is empty."); - return setNewItemLike(index, buildItem(index)); - } - - public ItemsNested editMatchingItem(Predicate predicate) { - int index = -1; - for (int i=0;i withNewMetadata() { - return new MetadataNested(null); - } - - public MetadataNested withNewMetadataLike(V1ListMeta item) { - return new MetadataNested(item); - } - - public MetadataNested editMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(null)); - } - - public MetadataNested editOrNewMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(new V1ListMetaBuilder().build())); - } - - public MetadataNested editOrNewMetadataLike(V1ListMeta item) { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(item)); - } - - public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; - V1alpha1ValidatingAdmissionPolicyBindingListFluent that = (V1alpha1ValidatingAdmissionPolicyBindingListFluent) o; - if (!java.util.Objects.equals(apiVersion, that.apiVersion)) return false; - if (!java.util.Objects.equals(items, that.items)) return false; - if (!java.util.Objects.equals(kind, that.kind)) return false; - if (!java.util.Objects.equals(metadata, that.metadata)) return false; - return true; - } - - public int hashCode() { - return java.util.Objects.hash(apiVersion, items, kind, metadata, super.hashCode()); - } - - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("{"); - if (apiVersion != null) { sb.append("apiVersion:"); sb.append(apiVersion + ","); } - if (items != null && !items.isEmpty()) { sb.append("items:"); sb.append(items + ","); } - if (kind != null) { sb.append("kind:"); sb.append(kind + ","); } - if (metadata != null) { sb.append("metadata:"); sb.append(metadata); } - sb.append("}"); - return sb.toString(); - } - public class ItemsNested extends V1alpha1ValidatingAdmissionPolicyBindingFluent> implements Nested{ - ItemsNested(int index,V1alpha1ValidatingAdmissionPolicyBinding item) { - this.index = index; - this.builder = new V1alpha1ValidatingAdmissionPolicyBindingBuilder(this, item); - } - V1alpha1ValidatingAdmissionPolicyBindingBuilder builder; - int index; - - public N and() { - return (N) V1alpha1ValidatingAdmissionPolicyBindingListFluent.this.setToItems(index,builder.build()); - } - - public N endItem() { - return and(); - } - - - } - public class MetadataNested extends V1ListMetaFluent> implements Nested{ - MetadataNested(V1ListMeta item) { - this.builder = new V1ListMetaBuilder(this, item); - } - V1ListMetaBuilder builder; - - public N and() { - return (N) V1alpha1ValidatingAdmissionPolicyBindingListFluent.this.withMetadata(builder.build()); - } - - public N endMetadata() { - return and(); - } - - - } - -} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ValidatingAdmissionPolicyBindingSpecBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ValidatingAdmissionPolicyBindingSpecBuilder.java deleted file mode 100644 index f62dc42347..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ValidatingAdmissionPolicyBindingSpecBuilder.java +++ /dev/null @@ -1,34 +0,0 @@ -package io.kubernetes.client.openapi.models; - -import io.kubernetes.client.fluent.VisitableBuilder; -public class V1alpha1ValidatingAdmissionPolicyBindingSpecBuilder extends V1alpha1ValidatingAdmissionPolicyBindingSpecFluent implements VisitableBuilder{ - public V1alpha1ValidatingAdmissionPolicyBindingSpecBuilder() { - this(new V1alpha1ValidatingAdmissionPolicyBindingSpec()); - } - - public V1alpha1ValidatingAdmissionPolicyBindingSpecBuilder(V1alpha1ValidatingAdmissionPolicyBindingSpecFluent fluent) { - this(fluent, new V1alpha1ValidatingAdmissionPolicyBindingSpec()); - } - - public V1alpha1ValidatingAdmissionPolicyBindingSpecBuilder(V1alpha1ValidatingAdmissionPolicyBindingSpecFluent fluent,V1alpha1ValidatingAdmissionPolicyBindingSpec instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - - public V1alpha1ValidatingAdmissionPolicyBindingSpecBuilder(V1alpha1ValidatingAdmissionPolicyBindingSpec instance) { - this.fluent = this; - this.copyInstance(instance); - } - V1alpha1ValidatingAdmissionPolicyBindingSpecFluent fluent; - - public V1alpha1ValidatingAdmissionPolicyBindingSpec build() { - V1alpha1ValidatingAdmissionPolicyBindingSpec buildable = new V1alpha1ValidatingAdmissionPolicyBindingSpec(); - buildable.setMatchResources(fluent.buildMatchResources()); - buildable.setParamRef(fluent.buildParamRef()); - buildable.setPolicyName(fluent.getPolicyName()); - buildable.setValidationActions(fluent.getValidationActions()); - return buildable; - } - - -} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ValidatingAdmissionPolicyBindingSpecFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ValidatingAdmissionPolicyBindingSpecFluent.java deleted file mode 100644 index b17520031f..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ValidatingAdmissionPolicyBindingSpecFluent.java +++ /dev/null @@ -1,285 +0,0 @@ -package io.kubernetes.client.openapi.models; - -import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.Nested; -import java.util.ArrayList; -import java.lang.String; -import java.util.function.Predicate; -import io.kubernetes.client.fluent.BaseFluent; -import java.util.Collection; -import java.lang.Object; -import java.util.List; - -/** - * Generated - */ -@SuppressWarnings("unchecked") -public class V1alpha1ValidatingAdmissionPolicyBindingSpecFluent> extends BaseFluent{ - public V1alpha1ValidatingAdmissionPolicyBindingSpecFluent() { - } - - public V1alpha1ValidatingAdmissionPolicyBindingSpecFluent(V1alpha1ValidatingAdmissionPolicyBindingSpec instance) { - this.copyInstance(instance); - } - private V1alpha1MatchResourcesBuilder matchResources; - private V1alpha1ParamRefBuilder paramRef; - private String policyName; - private List validationActions; - - protected void copyInstance(V1alpha1ValidatingAdmissionPolicyBindingSpec instance) { - instance = (instance != null ? instance : new V1alpha1ValidatingAdmissionPolicyBindingSpec()); - if (instance != null) { - this.withMatchResources(instance.getMatchResources()); - this.withParamRef(instance.getParamRef()); - this.withPolicyName(instance.getPolicyName()); - this.withValidationActions(instance.getValidationActions()); - } - } - - public V1alpha1MatchResources buildMatchResources() { - return this.matchResources != null ? this.matchResources.build() : null; - } - - public A withMatchResources(V1alpha1MatchResources matchResources) { - this._visitables.remove("matchResources"); - if (matchResources != null) { - this.matchResources = new V1alpha1MatchResourcesBuilder(matchResources); - this._visitables.get("matchResources").add(this.matchResources); - } else { - this.matchResources = null; - this._visitables.get("matchResources").remove(this.matchResources); - } - return (A) this; - } - - public boolean hasMatchResources() { - return this.matchResources != null; - } - - public MatchResourcesNested withNewMatchResources() { - return new MatchResourcesNested(null); - } - - public MatchResourcesNested withNewMatchResourcesLike(V1alpha1MatchResources item) { - return new MatchResourcesNested(item); - } - - public MatchResourcesNested editMatchResources() { - return withNewMatchResourcesLike(java.util.Optional.ofNullable(buildMatchResources()).orElse(null)); - } - - public MatchResourcesNested editOrNewMatchResources() { - return withNewMatchResourcesLike(java.util.Optional.ofNullable(buildMatchResources()).orElse(new V1alpha1MatchResourcesBuilder().build())); - } - - public MatchResourcesNested editOrNewMatchResourcesLike(V1alpha1MatchResources item) { - return withNewMatchResourcesLike(java.util.Optional.ofNullable(buildMatchResources()).orElse(item)); - } - - public V1alpha1ParamRef buildParamRef() { - return this.paramRef != null ? this.paramRef.build() : null; - } - - public A withParamRef(V1alpha1ParamRef paramRef) { - this._visitables.remove("paramRef"); - if (paramRef != null) { - this.paramRef = new V1alpha1ParamRefBuilder(paramRef); - this._visitables.get("paramRef").add(this.paramRef); - } else { - this.paramRef = null; - this._visitables.get("paramRef").remove(this.paramRef); - } - return (A) this; - } - - public boolean hasParamRef() { - return this.paramRef != null; - } - - public ParamRefNested withNewParamRef() { - return new ParamRefNested(null); - } - - public ParamRefNested withNewParamRefLike(V1alpha1ParamRef item) { - return new ParamRefNested(item); - } - - public ParamRefNested editParamRef() { - return withNewParamRefLike(java.util.Optional.ofNullable(buildParamRef()).orElse(null)); - } - - public ParamRefNested editOrNewParamRef() { - return withNewParamRefLike(java.util.Optional.ofNullable(buildParamRef()).orElse(new V1alpha1ParamRefBuilder().build())); - } - - public ParamRefNested editOrNewParamRefLike(V1alpha1ParamRef item) { - return withNewParamRefLike(java.util.Optional.ofNullable(buildParamRef()).orElse(item)); - } - - public String getPolicyName() { - return this.policyName; - } - - public A withPolicyName(String policyName) { - this.policyName = policyName; - return (A) this; - } - - public boolean hasPolicyName() { - return this.policyName != null; - } - - public A addToValidationActions(int index,String item) { - if (this.validationActions == null) {this.validationActions = new ArrayList();} - this.validationActions.add(index, item); - return (A)this; - } - - public A setToValidationActions(int index,String item) { - if (this.validationActions == null) {this.validationActions = new ArrayList();} - this.validationActions.set(index, item); return (A)this; - } - - public A addToValidationActions(java.lang.String... items) { - if (this.validationActions == null) {this.validationActions = new ArrayList();} - for (String item : items) {this.validationActions.add(item);} return (A)this; - } - - public A addAllToValidationActions(Collection items) { - if (this.validationActions == null) {this.validationActions = new ArrayList();} - for (String item : items) {this.validationActions.add(item);} return (A)this; - } - - public A removeFromValidationActions(java.lang.String... items) { - if (this.validationActions == null) return (A)this; - for (String item : items) { this.validationActions.remove(item);} return (A)this; - } - - public A removeAllFromValidationActions(Collection items) { - if (this.validationActions == null) return (A)this; - for (String item : items) { this.validationActions.remove(item);} return (A)this; - } - - public List getValidationActions() { - return this.validationActions; - } - - public String getValidationAction(int index) { - return this.validationActions.get(index); - } - - public String getFirstValidationAction() { - return this.validationActions.get(0); - } - - public String getLastValidationAction() { - return this.validationActions.get(validationActions.size() - 1); - } - - public String getMatchingValidationAction(Predicate predicate) { - for (String item : validationActions) { - if (predicate.test(item)) { - return item; - } - } - return null; - } - - public boolean hasMatchingValidationAction(Predicate predicate) { - for (String item : validationActions) { - if (predicate.test(item)) { - return true; - } - } - return false; - } - - public A withValidationActions(List validationActions) { - if (validationActions != null) { - this.validationActions = new ArrayList(); - for (String item : validationActions) { - this.addToValidationActions(item); - } - } else { - this.validationActions = null; - } - return (A) this; - } - - public A withValidationActions(java.lang.String... validationActions) { - if (this.validationActions != null) { - this.validationActions.clear(); - _visitables.remove("validationActions"); - } - if (validationActions != null) { - for (String item : validationActions) { - this.addToValidationActions(item); - } - } - return (A) this; - } - - public boolean hasValidationActions() { - return this.validationActions != null && !this.validationActions.isEmpty(); - } - - public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; - V1alpha1ValidatingAdmissionPolicyBindingSpecFluent that = (V1alpha1ValidatingAdmissionPolicyBindingSpecFluent) o; - if (!java.util.Objects.equals(matchResources, that.matchResources)) return false; - if (!java.util.Objects.equals(paramRef, that.paramRef)) return false; - if (!java.util.Objects.equals(policyName, that.policyName)) return false; - if (!java.util.Objects.equals(validationActions, that.validationActions)) return false; - return true; - } - - public int hashCode() { - return java.util.Objects.hash(matchResources, paramRef, policyName, validationActions, super.hashCode()); - } - - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("{"); - if (matchResources != null) { sb.append("matchResources:"); sb.append(matchResources + ","); } - if (paramRef != null) { sb.append("paramRef:"); sb.append(paramRef + ","); } - if (policyName != null) { sb.append("policyName:"); sb.append(policyName + ","); } - if (validationActions != null && !validationActions.isEmpty()) { sb.append("validationActions:"); sb.append(validationActions); } - sb.append("}"); - return sb.toString(); - } - public class MatchResourcesNested extends V1alpha1MatchResourcesFluent> implements Nested{ - MatchResourcesNested(V1alpha1MatchResources item) { - this.builder = new V1alpha1MatchResourcesBuilder(this, item); - } - V1alpha1MatchResourcesBuilder builder; - - public N and() { - return (N) V1alpha1ValidatingAdmissionPolicyBindingSpecFluent.this.withMatchResources(builder.build()); - } - - public N endMatchResources() { - return and(); - } - - - } - public class ParamRefNested extends V1alpha1ParamRefFluent> implements Nested{ - ParamRefNested(V1alpha1ParamRef item) { - this.builder = new V1alpha1ParamRefBuilder(this, item); - } - V1alpha1ParamRefBuilder builder; - - public N and() { - return (N) V1alpha1ValidatingAdmissionPolicyBindingSpecFluent.this.withParamRef(builder.build()); - } - - public N endParamRef() { - return and(); - } - - - } - -} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ValidatingAdmissionPolicyBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ValidatingAdmissionPolicyBuilder.java deleted file mode 100644 index 8e6c1d8c9e..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ValidatingAdmissionPolicyBuilder.java +++ /dev/null @@ -1,35 +0,0 @@ -package io.kubernetes.client.openapi.models; - -import io.kubernetes.client.fluent.VisitableBuilder; -public class V1alpha1ValidatingAdmissionPolicyBuilder extends V1alpha1ValidatingAdmissionPolicyFluent implements VisitableBuilder{ - public V1alpha1ValidatingAdmissionPolicyBuilder() { - this(new V1alpha1ValidatingAdmissionPolicy()); - } - - public V1alpha1ValidatingAdmissionPolicyBuilder(V1alpha1ValidatingAdmissionPolicyFluent fluent) { - this(fluent, new V1alpha1ValidatingAdmissionPolicy()); - } - - public V1alpha1ValidatingAdmissionPolicyBuilder(V1alpha1ValidatingAdmissionPolicyFluent fluent,V1alpha1ValidatingAdmissionPolicy instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - - public V1alpha1ValidatingAdmissionPolicyBuilder(V1alpha1ValidatingAdmissionPolicy instance) { - this.fluent = this; - this.copyInstance(instance); - } - V1alpha1ValidatingAdmissionPolicyFluent fluent; - - public V1alpha1ValidatingAdmissionPolicy build() { - V1alpha1ValidatingAdmissionPolicy buildable = new V1alpha1ValidatingAdmissionPolicy(); - buildable.setApiVersion(fluent.getApiVersion()); - buildable.setKind(fluent.getKind()); - buildable.setMetadata(fluent.buildMetadata()); - buildable.setSpec(fluent.buildSpec()); - buildable.setStatus(fluent.buildStatus()); - return buildable; - } - - -} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ValidatingAdmissionPolicyFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ValidatingAdmissionPolicyFluent.java deleted file mode 100644 index 427937b479..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ValidatingAdmissionPolicyFluent.java +++ /dev/null @@ -1,260 +0,0 @@ -package io.kubernetes.client.openapi.models; - -import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.Nested; -import java.lang.String; -import io.kubernetes.client.fluent.BaseFluent; -import java.lang.Object; - -/** - * Generated - */ -@SuppressWarnings("unchecked") -public class V1alpha1ValidatingAdmissionPolicyFluent> extends BaseFluent{ - public V1alpha1ValidatingAdmissionPolicyFluent() { - } - - public V1alpha1ValidatingAdmissionPolicyFluent(V1alpha1ValidatingAdmissionPolicy instance) { - this.copyInstance(instance); - } - private String apiVersion; - private String kind; - private V1ObjectMetaBuilder metadata; - private V1alpha1ValidatingAdmissionPolicySpecBuilder spec; - private V1alpha1ValidatingAdmissionPolicyStatusBuilder status; - - protected void copyInstance(V1alpha1ValidatingAdmissionPolicy instance) { - instance = (instance != null ? instance : new V1alpha1ValidatingAdmissionPolicy()); - if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withKind(instance.getKind()); - this.withMetadata(instance.getMetadata()); - this.withSpec(instance.getSpec()); - this.withStatus(instance.getStatus()); - } - } - - public String getApiVersion() { - return this.apiVersion; - } - - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; - } - - public boolean hasApiVersion() { - return this.apiVersion != null; - } - - public String getKind() { - return this.kind; - } - - public A withKind(String kind) { - this.kind = kind; - return (A) this; - } - - public boolean hasKind() { - return this.kind != null; - } - - public V1ObjectMeta buildMetadata() { - return this.metadata != null ? this.metadata.build() : null; - } - - public A withMetadata(V1ObjectMeta metadata) { - this._visitables.remove("metadata"); - if (metadata != null) { - this.metadata = new V1ObjectMetaBuilder(metadata); - this._visitables.get("metadata").add(this.metadata); - } else { - this.metadata = null; - this._visitables.get("metadata").remove(this.metadata); - } - return (A) this; - } - - public boolean hasMetadata() { - return this.metadata != null; - } - - public MetadataNested withNewMetadata() { - return new MetadataNested(null); - } - - public MetadataNested withNewMetadataLike(V1ObjectMeta item) { - return new MetadataNested(item); - } - - public MetadataNested editMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(null)); - } - - public MetadataNested editOrNewMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(new V1ObjectMetaBuilder().build())); - } - - public MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(item)); - } - - public V1alpha1ValidatingAdmissionPolicySpec buildSpec() { - return this.spec != null ? this.spec.build() : null; - } - - public A withSpec(V1alpha1ValidatingAdmissionPolicySpec spec) { - this._visitables.remove("spec"); - if (spec != null) { - this.spec = new V1alpha1ValidatingAdmissionPolicySpecBuilder(spec); - this._visitables.get("spec").add(this.spec); - } else { - this.spec = null; - this._visitables.get("spec").remove(this.spec); - } - return (A) this; - } - - public boolean hasSpec() { - return this.spec != null; - } - - public SpecNested withNewSpec() { - return new SpecNested(null); - } - - public SpecNested withNewSpecLike(V1alpha1ValidatingAdmissionPolicySpec item) { - return new SpecNested(item); - } - - public SpecNested editSpec() { - return withNewSpecLike(java.util.Optional.ofNullable(buildSpec()).orElse(null)); - } - - public SpecNested editOrNewSpec() { - return withNewSpecLike(java.util.Optional.ofNullable(buildSpec()).orElse(new V1alpha1ValidatingAdmissionPolicySpecBuilder().build())); - } - - public SpecNested editOrNewSpecLike(V1alpha1ValidatingAdmissionPolicySpec item) { - return withNewSpecLike(java.util.Optional.ofNullable(buildSpec()).orElse(item)); - } - - public V1alpha1ValidatingAdmissionPolicyStatus buildStatus() { - return this.status != null ? this.status.build() : null; - } - - public A withStatus(V1alpha1ValidatingAdmissionPolicyStatus status) { - this._visitables.remove("status"); - if (status != null) { - this.status = new V1alpha1ValidatingAdmissionPolicyStatusBuilder(status); - this._visitables.get("status").add(this.status); - } else { - this.status = null; - this._visitables.get("status").remove(this.status); - } - return (A) this; - } - - public boolean hasStatus() { - return this.status != null; - } - - public StatusNested withNewStatus() { - return new StatusNested(null); - } - - public StatusNested withNewStatusLike(V1alpha1ValidatingAdmissionPolicyStatus item) { - return new StatusNested(item); - } - - public StatusNested editStatus() { - return withNewStatusLike(java.util.Optional.ofNullable(buildStatus()).orElse(null)); - } - - public StatusNested editOrNewStatus() { - return withNewStatusLike(java.util.Optional.ofNullable(buildStatus()).orElse(new V1alpha1ValidatingAdmissionPolicyStatusBuilder().build())); - } - - public StatusNested editOrNewStatusLike(V1alpha1ValidatingAdmissionPolicyStatus item) { - return withNewStatusLike(java.util.Optional.ofNullable(buildStatus()).orElse(item)); - } - - public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; - V1alpha1ValidatingAdmissionPolicyFluent that = (V1alpha1ValidatingAdmissionPolicyFluent) o; - if (!java.util.Objects.equals(apiVersion, that.apiVersion)) return false; - if (!java.util.Objects.equals(kind, that.kind)) return false; - if (!java.util.Objects.equals(metadata, that.metadata)) return false; - if (!java.util.Objects.equals(spec, that.spec)) return false; - if (!java.util.Objects.equals(status, that.status)) return false; - return true; - } - - public int hashCode() { - return java.util.Objects.hash(apiVersion, kind, metadata, spec, status, super.hashCode()); - } - - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("{"); - if (apiVersion != null) { sb.append("apiVersion:"); sb.append(apiVersion + ","); } - if (kind != null) { sb.append("kind:"); sb.append(kind + ","); } - if (metadata != null) { sb.append("metadata:"); sb.append(metadata + ","); } - if (spec != null) { sb.append("spec:"); sb.append(spec + ","); } - if (status != null) { sb.append("status:"); sb.append(status); } - sb.append("}"); - return sb.toString(); - } - public class MetadataNested extends V1ObjectMetaFluent> implements Nested{ - MetadataNested(V1ObjectMeta item) { - this.builder = new V1ObjectMetaBuilder(this, item); - } - V1ObjectMetaBuilder builder; - - public N and() { - return (N) V1alpha1ValidatingAdmissionPolicyFluent.this.withMetadata(builder.build()); - } - - public N endMetadata() { - return and(); - } - - - } - public class SpecNested extends V1alpha1ValidatingAdmissionPolicySpecFluent> implements Nested{ - SpecNested(V1alpha1ValidatingAdmissionPolicySpec item) { - this.builder = new V1alpha1ValidatingAdmissionPolicySpecBuilder(this, item); - } - V1alpha1ValidatingAdmissionPolicySpecBuilder builder; - - public N and() { - return (N) V1alpha1ValidatingAdmissionPolicyFluent.this.withSpec(builder.build()); - } - - public N endSpec() { - return and(); - } - - - } - public class StatusNested extends V1alpha1ValidatingAdmissionPolicyStatusFluent> implements Nested{ - StatusNested(V1alpha1ValidatingAdmissionPolicyStatus item) { - this.builder = new V1alpha1ValidatingAdmissionPolicyStatusBuilder(this, item); - } - V1alpha1ValidatingAdmissionPolicyStatusBuilder builder; - - public N and() { - return (N) V1alpha1ValidatingAdmissionPolicyFluent.this.withStatus(builder.build()); - } - - public N endStatus() { - return and(); - } - - - } - -} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ValidatingAdmissionPolicyListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ValidatingAdmissionPolicyListBuilder.java deleted file mode 100644 index 948170ced1..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ValidatingAdmissionPolicyListBuilder.java +++ /dev/null @@ -1,34 +0,0 @@ -package io.kubernetes.client.openapi.models; - -import io.kubernetes.client.fluent.VisitableBuilder; -public class V1alpha1ValidatingAdmissionPolicyListBuilder extends V1alpha1ValidatingAdmissionPolicyListFluent implements VisitableBuilder{ - public V1alpha1ValidatingAdmissionPolicyListBuilder() { - this(new V1alpha1ValidatingAdmissionPolicyList()); - } - - public V1alpha1ValidatingAdmissionPolicyListBuilder(V1alpha1ValidatingAdmissionPolicyListFluent fluent) { - this(fluent, new V1alpha1ValidatingAdmissionPolicyList()); - } - - public V1alpha1ValidatingAdmissionPolicyListBuilder(V1alpha1ValidatingAdmissionPolicyListFluent fluent,V1alpha1ValidatingAdmissionPolicyList instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - - public V1alpha1ValidatingAdmissionPolicyListBuilder(V1alpha1ValidatingAdmissionPolicyList instance) { - this.fluent = this; - this.copyInstance(instance); - } - V1alpha1ValidatingAdmissionPolicyListFluent fluent; - - public V1alpha1ValidatingAdmissionPolicyList build() { - V1alpha1ValidatingAdmissionPolicyList buildable = new V1alpha1ValidatingAdmissionPolicyList(); - buildable.setApiVersion(fluent.getApiVersion()); - buildable.setItems(fluent.buildItems()); - buildable.setKind(fluent.getKind()); - buildable.setMetadata(fluent.buildMetadata()); - return buildable; - } - - -} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ValidatingAdmissionPolicyListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ValidatingAdmissionPolicyListFluent.java deleted file mode 100644 index 10650dcf47..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ValidatingAdmissionPolicyListFluent.java +++ /dev/null @@ -1,319 +0,0 @@ -package io.kubernetes.client.openapi.models; - -import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.Nested; -import java.util.ArrayList; -import java.lang.String; -import java.util.function.Predicate; -import io.kubernetes.client.fluent.BaseFluent; -import java.util.Iterator; -import java.util.Collection; -import java.lang.Object; -import java.util.List; - -/** - * Generated - */ -@SuppressWarnings("unchecked") -public class V1alpha1ValidatingAdmissionPolicyListFluent> extends BaseFluent{ - public V1alpha1ValidatingAdmissionPolicyListFluent() { - } - - public V1alpha1ValidatingAdmissionPolicyListFluent(V1alpha1ValidatingAdmissionPolicyList instance) { - this.copyInstance(instance); - } - private String apiVersion; - private ArrayList items; - private String kind; - private V1ListMetaBuilder metadata; - - protected void copyInstance(V1alpha1ValidatingAdmissionPolicyList instance) { - instance = (instance != null ? instance : new V1alpha1ValidatingAdmissionPolicyList()); - if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withItems(instance.getItems()); - this.withKind(instance.getKind()); - this.withMetadata(instance.getMetadata()); - } - } - - public String getApiVersion() { - return this.apiVersion; - } - - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; - } - - public boolean hasApiVersion() { - return this.apiVersion != null; - } - - public A addToItems(int index,V1alpha1ValidatingAdmissionPolicy item) { - if (this.items == null) {this.items = new ArrayList();} - V1alpha1ValidatingAdmissionPolicyBuilder builder = new V1alpha1ValidatingAdmissionPolicyBuilder(item); - if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); items.add(builder); } else { _visitables.get("items").add(index, builder); items.add(index, builder);} - return (A)this; - } - - public A setToItems(int index,V1alpha1ValidatingAdmissionPolicy item) { - if (this.items == null) {this.items = new ArrayList();} - V1alpha1ValidatingAdmissionPolicyBuilder builder = new V1alpha1ValidatingAdmissionPolicyBuilder(item); - if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); items.add(builder); } else { _visitables.get("items").set(index, builder); items.set(index, builder);} - return (A)this; - } - - public A addToItems(io.kubernetes.client.openapi.models.V1alpha1ValidatingAdmissionPolicy... items) { - if (this.items == null) {this.items = new ArrayList();} - for (V1alpha1ValidatingAdmissionPolicy item : items) {V1alpha1ValidatingAdmissionPolicyBuilder builder = new V1alpha1ValidatingAdmissionPolicyBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; - } - - public A addAllToItems(Collection items) { - if (this.items == null) {this.items = new ArrayList();} - for (V1alpha1ValidatingAdmissionPolicy item : items) {V1alpha1ValidatingAdmissionPolicyBuilder builder = new V1alpha1ValidatingAdmissionPolicyBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; - } - - public A removeFromItems(io.kubernetes.client.openapi.models.V1alpha1ValidatingAdmissionPolicy... items) { - if (this.items == null) return (A)this; - for (V1alpha1ValidatingAdmissionPolicy item : items) {V1alpha1ValidatingAdmissionPolicyBuilder builder = new V1alpha1ValidatingAdmissionPolicyBuilder(item);_visitables.get("items").remove(builder); this.items.remove(builder);} return (A)this; - } - - public A removeAllFromItems(Collection items) { - if (this.items == null) return (A)this; - for (V1alpha1ValidatingAdmissionPolicy item : items) {V1alpha1ValidatingAdmissionPolicyBuilder builder = new V1alpha1ValidatingAdmissionPolicyBuilder(item);_visitables.get("items").remove(builder); this.items.remove(builder);} return (A)this; - } - - public A removeMatchingFromItems(Predicate predicate) { - if (items == null) return (A) this; - final Iterator each = items.iterator(); - final List visitables = _visitables.get("items"); - while (each.hasNext()) { - V1alpha1ValidatingAdmissionPolicyBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } - } - return (A)this; - } - - public List buildItems() { - return this.items != null ? build(items) : null; - } - - public V1alpha1ValidatingAdmissionPolicy buildItem(int index) { - return this.items.get(index).build(); - } - - public V1alpha1ValidatingAdmissionPolicy buildFirstItem() { - return this.items.get(0).build(); - } - - public V1alpha1ValidatingAdmissionPolicy buildLastItem() { - return this.items.get(items.size() - 1).build(); - } - - public V1alpha1ValidatingAdmissionPolicy buildMatchingItem(Predicate predicate) { - for (V1alpha1ValidatingAdmissionPolicyBuilder item : items) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; - } - - public boolean hasMatchingItem(Predicate predicate) { - for (V1alpha1ValidatingAdmissionPolicyBuilder item : items) { - if (predicate.test(item)) { - return true; - } - } - return false; - } - - public A withItems(List items) { - if (this.items != null) { - this._visitables.get("items").clear(); - } - if (items != null) { - this.items = new ArrayList(); - for (V1alpha1ValidatingAdmissionPolicy item : items) { - this.addToItems(item); - } - } else { - this.items = null; - } - return (A) this; - } - - public A withItems(io.kubernetes.client.openapi.models.V1alpha1ValidatingAdmissionPolicy... items) { - if (this.items != null) { - this.items.clear(); - _visitables.remove("items"); - } - if (items != null) { - for (V1alpha1ValidatingAdmissionPolicy item : items) { - this.addToItems(item); - } - } - return (A) this; - } - - public boolean hasItems() { - return this.items != null && !this.items.isEmpty(); - } - - public ItemsNested addNewItem() { - return new ItemsNested(-1, null); - } - - public ItemsNested addNewItemLike(V1alpha1ValidatingAdmissionPolicy item) { - return new ItemsNested(-1, item); - } - - public ItemsNested setNewItemLike(int index,V1alpha1ValidatingAdmissionPolicy item) { - return new ItemsNested(index, item); - } - - public ItemsNested editItem(int index) { - if (items.size() <= index) throw new RuntimeException("Can't edit items. Index exceeds size."); - return setNewItemLike(index, buildItem(index)); - } - - public ItemsNested editFirstItem() { - if (items.size() == 0) throw new RuntimeException("Can't edit first items. The list is empty."); - return setNewItemLike(0, buildItem(0)); - } - - public ItemsNested editLastItem() { - int index = items.size() - 1; - if (index < 0) throw new RuntimeException("Can't edit last items. The list is empty."); - return setNewItemLike(index, buildItem(index)); - } - - public ItemsNested editMatchingItem(Predicate predicate) { - int index = -1; - for (int i=0;i withNewMetadata() { - return new MetadataNested(null); - } - - public MetadataNested withNewMetadataLike(V1ListMeta item) { - return new MetadataNested(item); - } - - public MetadataNested editMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(null)); - } - - public MetadataNested editOrNewMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(new V1ListMetaBuilder().build())); - } - - public MetadataNested editOrNewMetadataLike(V1ListMeta item) { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(item)); - } - - public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; - V1alpha1ValidatingAdmissionPolicyListFluent that = (V1alpha1ValidatingAdmissionPolicyListFluent) o; - if (!java.util.Objects.equals(apiVersion, that.apiVersion)) return false; - if (!java.util.Objects.equals(items, that.items)) return false; - if (!java.util.Objects.equals(kind, that.kind)) return false; - if (!java.util.Objects.equals(metadata, that.metadata)) return false; - return true; - } - - public int hashCode() { - return java.util.Objects.hash(apiVersion, items, kind, metadata, super.hashCode()); - } - - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("{"); - if (apiVersion != null) { sb.append("apiVersion:"); sb.append(apiVersion + ","); } - if (items != null && !items.isEmpty()) { sb.append("items:"); sb.append(items + ","); } - if (kind != null) { sb.append("kind:"); sb.append(kind + ","); } - if (metadata != null) { sb.append("metadata:"); sb.append(metadata); } - sb.append("}"); - return sb.toString(); - } - public class ItemsNested extends V1alpha1ValidatingAdmissionPolicyFluent> implements Nested{ - ItemsNested(int index,V1alpha1ValidatingAdmissionPolicy item) { - this.index = index; - this.builder = new V1alpha1ValidatingAdmissionPolicyBuilder(this, item); - } - V1alpha1ValidatingAdmissionPolicyBuilder builder; - int index; - - public N and() { - return (N) V1alpha1ValidatingAdmissionPolicyListFluent.this.setToItems(index,builder.build()); - } - - public N endItem() { - return and(); - } - - - } - public class MetadataNested extends V1ListMetaFluent> implements Nested{ - MetadataNested(V1ListMeta item) { - this.builder = new V1ListMetaBuilder(this, item); - } - V1ListMetaBuilder builder; - - public N and() { - return (N) V1alpha1ValidatingAdmissionPolicyListFluent.this.withMetadata(builder.build()); - } - - public N endMetadata() { - return and(); - } - - - } - -} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ValidatingAdmissionPolicySpecBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ValidatingAdmissionPolicySpecBuilder.java deleted file mode 100644 index 4bf141f651..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ValidatingAdmissionPolicySpecBuilder.java +++ /dev/null @@ -1,37 +0,0 @@ -package io.kubernetes.client.openapi.models; - -import io.kubernetes.client.fluent.VisitableBuilder; -public class V1alpha1ValidatingAdmissionPolicySpecBuilder extends V1alpha1ValidatingAdmissionPolicySpecFluent implements VisitableBuilder{ - public V1alpha1ValidatingAdmissionPolicySpecBuilder() { - this(new V1alpha1ValidatingAdmissionPolicySpec()); - } - - public V1alpha1ValidatingAdmissionPolicySpecBuilder(V1alpha1ValidatingAdmissionPolicySpecFluent fluent) { - this(fluent, new V1alpha1ValidatingAdmissionPolicySpec()); - } - - public V1alpha1ValidatingAdmissionPolicySpecBuilder(V1alpha1ValidatingAdmissionPolicySpecFluent fluent,V1alpha1ValidatingAdmissionPolicySpec instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - - public V1alpha1ValidatingAdmissionPolicySpecBuilder(V1alpha1ValidatingAdmissionPolicySpec instance) { - this.fluent = this; - this.copyInstance(instance); - } - V1alpha1ValidatingAdmissionPolicySpecFluent fluent; - - public V1alpha1ValidatingAdmissionPolicySpec build() { - V1alpha1ValidatingAdmissionPolicySpec buildable = new V1alpha1ValidatingAdmissionPolicySpec(); - buildable.setAuditAnnotations(fluent.buildAuditAnnotations()); - buildable.setFailurePolicy(fluent.getFailurePolicy()); - buildable.setMatchConditions(fluent.buildMatchConditions()); - buildable.setMatchConstraints(fluent.buildMatchConstraints()); - buildable.setParamKind(fluent.buildParamKind()); - buildable.setValidations(fluent.buildValidations()); - buildable.setVariables(fluent.buildVariables()); - return buildable; - } - - -} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ValidatingAdmissionPolicySpecFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ValidatingAdmissionPolicySpecFluent.java deleted file mode 100644 index 52391fbea4..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ValidatingAdmissionPolicySpecFluent.java +++ /dev/null @@ -1,881 +0,0 @@ -package io.kubernetes.client.openapi.models; - -import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.Nested; -import java.util.ArrayList; -import java.lang.String; -import java.util.function.Predicate; -import io.kubernetes.client.fluent.BaseFluent; -import java.util.Iterator; -import java.util.List; -import java.util.Collection; -import java.lang.Object; - -/** - * Generated - */ -@SuppressWarnings("unchecked") -public class V1alpha1ValidatingAdmissionPolicySpecFluent> extends BaseFluent{ - public V1alpha1ValidatingAdmissionPolicySpecFluent() { - } - - public V1alpha1ValidatingAdmissionPolicySpecFluent(V1alpha1ValidatingAdmissionPolicySpec instance) { - this.copyInstance(instance); - } - private ArrayList auditAnnotations; - private String failurePolicy; - private ArrayList matchConditions; - private V1alpha1MatchResourcesBuilder matchConstraints; - private V1alpha1ParamKindBuilder paramKind; - private ArrayList validations; - private ArrayList variables; - - protected void copyInstance(V1alpha1ValidatingAdmissionPolicySpec instance) { - instance = (instance != null ? instance : new V1alpha1ValidatingAdmissionPolicySpec()); - if (instance != null) { - this.withAuditAnnotations(instance.getAuditAnnotations()); - this.withFailurePolicy(instance.getFailurePolicy()); - this.withMatchConditions(instance.getMatchConditions()); - this.withMatchConstraints(instance.getMatchConstraints()); - this.withParamKind(instance.getParamKind()); - this.withValidations(instance.getValidations()); - this.withVariables(instance.getVariables()); - } - } - - public A addToAuditAnnotations(int index,V1alpha1AuditAnnotation item) { - if (this.auditAnnotations == null) {this.auditAnnotations = new ArrayList();} - V1alpha1AuditAnnotationBuilder builder = new V1alpha1AuditAnnotationBuilder(item); - if (index < 0 || index >= auditAnnotations.size()) { _visitables.get("auditAnnotations").add(builder); auditAnnotations.add(builder); } else { _visitables.get("auditAnnotations").add(index, builder); auditAnnotations.add(index, builder);} - return (A)this; - } - - public A setToAuditAnnotations(int index,V1alpha1AuditAnnotation item) { - if (this.auditAnnotations == null) {this.auditAnnotations = new ArrayList();} - V1alpha1AuditAnnotationBuilder builder = new V1alpha1AuditAnnotationBuilder(item); - if (index < 0 || index >= auditAnnotations.size()) { _visitables.get("auditAnnotations").add(builder); auditAnnotations.add(builder); } else { _visitables.get("auditAnnotations").set(index, builder); auditAnnotations.set(index, builder);} - return (A)this; - } - - public A addToAuditAnnotations(io.kubernetes.client.openapi.models.V1alpha1AuditAnnotation... items) { - if (this.auditAnnotations == null) {this.auditAnnotations = new ArrayList();} - for (V1alpha1AuditAnnotation item : items) {V1alpha1AuditAnnotationBuilder builder = new V1alpha1AuditAnnotationBuilder(item);_visitables.get("auditAnnotations").add(builder);this.auditAnnotations.add(builder);} return (A)this; - } - - public A addAllToAuditAnnotations(Collection items) { - if (this.auditAnnotations == null) {this.auditAnnotations = new ArrayList();} - for (V1alpha1AuditAnnotation item : items) {V1alpha1AuditAnnotationBuilder builder = new V1alpha1AuditAnnotationBuilder(item);_visitables.get("auditAnnotations").add(builder);this.auditAnnotations.add(builder);} return (A)this; - } - - public A removeFromAuditAnnotations(io.kubernetes.client.openapi.models.V1alpha1AuditAnnotation... items) { - if (this.auditAnnotations == null) return (A)this; - for (V1alpha1AuditAnnotation item : items) {V1alpha1AuditAnnotationBuilder builder = new V1alpha1AuditAnnotationBuilder(item);_visitables.get("auditAnnotations").remove(builder); this.auditAnnotations.remove(builder);} return (A)this; - } - - public A removeAllFromAuditAnnotations(Collection items) { - if (this.auditAnnotations == null) return (A)this; - for (V1alpha1AuditAnnotation item : items) {V1alpha1AuditAnnotationBuilder builder = new V1alpha1AuditAnnotationBuilder(item);_visitables.get("auditAnnotations").remove(builder); this.auditAnnotations.remove(builder);} return (A)this; - } - - public A removeMatchingFromAuditAnnotations(Predicate predicate) { - if (auditAnnotations == null) return (A) this; - final Iterator each = auditAnnotations.iterator(); - final List visitables = _visitables.get("auditAnnotations"); - while (each.hasNext()) { - V1alpha1AuditAnnotationBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } - } - return (A)this; - } - - public List buildAuditAnnotations() { - return this.auditAnnotations != null ? build(auditAnnotations) : null; - } - - public V1alpha1AuditAnnotation buildAuditAnnotation(int index) { - return this.auditAnnotations.get(index).build(); - } - - public V1alpha1AuditAnnotation buildFirstAuditAnnotation() { - return this.auditAnnotations.get(0).build(); - } - - public V1alpha1AuditAnnotation buildLastAuditAnnotation() { - return this.auditAnnotations.get(auditAnnotations.size() - 1).build(); - } - - public V1alpha1AuditAnnotation buildMatchingAuditAnnotation(Predicate predicate) { - for (V1alpha1AuditAnnotationBuilder item : auditAnnotations) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; - } - - public boolean hasMatchingAuditAnnotation(Predicate predicate) { - for (V1alpha1AuditAnnotationBuilder item : auditAnnotations) { - if (predicate.test(item)) { - return true; - } - } - return false; - } - - public A withAuditAnnotations(List auditAnnotations) { - if (this.auditAnnotations != null) { - this._visitables.get("auditAnnotations").clear(); - } - if (auditAnnotations != null) { - this.auditAnnotations = new ArrayList(); - for (V1alpha1AuditAnnotation item : auditAnnotations) { - this.addToAuditAnnotations(item); - } - } else { - this.auditAnnotations = null; - } - return (A) this; - } - - public A withAuditAnnotations(io.kubernetes.client.openapi.models.V1alpha1AuditAnnotation... auditAnnotations) { - if (this.auditAnnotations != null) { - this.auditAnnotations.clear(); - _visitables.remove("auditAnnotations"); - } - if (auditAnnotations != null) { - for (V1alpha1AuditAnnotation item : auditAnnotations) { - this.addToAuditAnnotations(item); - } - } - return (A) this; - } - - public boolean hasAuditAnnotations() { - return this.auditAnnotations != null && !this.auditAnnotations.isEmpty(); - } - - public AuditAnnotationsNested addNewAuditAnnotation() { - return new AuditAnnotationsNested(-1, null); - } - - public AuditAnnotationsNested addNewAuditAnnotationLike(V1alpha1AuditAnnotation item) { - return new AuditAnnotationsNested(-1, item); - } - - public AuditAnnotationsNested setNewAuditAnnotationLike(int index,V1alpha1AuditAnnotation item) { - return new AuditAnnotationsNested(index, item); - } - - public AuditAnnotationsNested editAuditAnnotation(int index) { - if (auditAnnotations.size() <= index) throw new RuntimeException("Can't edit auditAnnotations. Index exceeds size."); - return setNewAuditAnnotationLike(index, buildAuditAnnotation(index)); - } - - public AuditAnnotationsNested editFirstAuditAnnotation() { - if (auditAnnotations.size() == 0) throw new RuntimeException("Can't edit first auditAnnotations. The list is empty."); - return setNewAuditAnnotationLike(0, buildAuditAnnotation(0)); - } - - public AuditAnnotationsNested editLastAuditAnnotation() { - int index = auditAnnotations.size() - 1; - if (index < 0) throw new RuntimeException("Can't edit last auditAnnotations. The list is empty."); - return setNewAuditAnnotationLike(index, buildAuditAnnotation(index)); - } - - public AuditAnnotationsNested editMatchingAuditAnnotation(Predicate predicate) { - int index = -1; - for (int i=0;i();} - V1alpha1MatchConditionBuilder builder = new V1alpha1MatchConditionBuilder(item); - if (index < 0 || index >= matchConditions.size()) { _visitables.get("matchConditions").add(builder); matchConditions.add(builder); } else { _visitables.get("matchConditions").add(index, builder); matchConditions.add(index, builder);} - return (A)this; - } - - public A setToMatchConditions(int index,V1alpha1MatchCondition item) { - if (this.matchConditions == null) {this.matchConditions = new ArrayList();} - V1alpha1MatchConditionBuilder builder = new V1alpha1MatchConditionBuilder(item); - if (index < 0 || index >= matchConditions.size()) { _visitables.get("matchConditions").add(builder); matchConditions.add(builder); } else { _visitables.get("matchConditions").set(index, builder); matchConditions.set(index, builder);} - return (A)this; - } - - public A addToMatchConditions(io.kubernetes.client.openapi.models.V1alpha1MatchCondition... items) { - if (this.matchConditions == null) {this.matchConditions = new ArrayList();} - for (V1alpha1MatchCondition item : items) {V1alpha1MatchConditionBuilder builder = new V1alpha1MatchConditionBuilder(item);_visitables.get("matchConditions").add(builder);this.matchConditions.add(builder);} return (A)this; - } - - public A addAllToMatchConditions(Collection items) { - if (this.matchConditions == null) {this.matchConditions = new ArrayList();} - for (V1alpha1MatchCondition item : items) {V1alpha1MatchConditionBuilder builder = new V1alpha1MatchConditionBuilder(item);_visitables.get("matchConditions").add(builder);this.matchConditions.add(builder);} return (A)this; - } - - public A removeFromMatchConditions(io.kubernetes.client.openapi.models.V1alpha1MatchCondition... items) { - if (this.matchConditions == null) return (A)this; - for (V1alpha1MatchCondition item : items) {V1alpha1MatchConditionBuilder builder = new V1alpha1MatchConditionBuilder(item);_visitables.get("matchConditions").remove(builder); this.matchConditions.remove(builder);} return (A)this; - } - - public A removeAllFromMatchConditions(Collection items) { - if (this.matchConditions == null) return (A)this; - for (V1alpha1MatchCondition item : items) {V1alpha1MatchConditionBuilder builder = new V1alpha1MatchConditionBuilder(item);_visitables.get("matchConditions").remove(builder); this.matchConditions.remove(builder);} return (A)this; - } - - public A removeMatchingFromMatchConditions(Predicate predicate) { - if (matchConditions == null) return (A) this; - final Iterator each = matchConditions.iterator(); - final List visitables = _visitables.get("matchConditions"); - while (each.hasNext()) { - V1alpha1MatchConditionBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } - } - return (A)this; - } - - public List buildMatchConditions() { - return this.matchConditions != null ? build(matchConditions) : null; - } - - public V1alpha1MatchCondition buildMatchCondition(int index) { - return this.matchConditions.get(index).build(); - } - - public V1alpha1MatchCondition buildFirstMatchCondition() { - return this.matchConditions.get(0).build(); - } - - public V1alpha1MatchCondition buildLastMatchCondition() { - return this.matchConditions.get(matchConditions.size() - 1).build(); - } - - public V1alpha1MatchCondition buildMatchingMatchCondition(Predicate predicate) { - for (V1alpha1MatchConditionBuilder item : matchConditions) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; - } - - public boolean hasMatchingMatchCondition(Predicate predicate) { - for (V1alpha1MatchConditionBuilder item : matchConditions) { - if (predicate.test(item)) { - return true; - } - } - return false; - } - - public A withMatchConditions(List matchConditions) { - if (this.matchConditions != null) { - this._visitables.get("matchConditions").clear(); - } - if (matchConditions != null) { - this.matchConditions = new ArrayList(); - for (V1alpha1MatchCondition item : matchConditions) { - this.addToMatchConditions(item); - } - } else { - this.matchConditions = null; - } - return (A) this; - } - - public A withMatchConditions(io.kubernetes.client.openapi.models.V1alpha1MatchCondition... matchConditions) { - if (this.matchConditions != null) { - this.matchConditions.clear(); - _visitables.remove("matchConditions"); - } - if (matchConditions != null) { - for (V1alpha1MatchCondition item : matchConditions) { - this.addToMatchConditions(item); - } - } - return (A) this; - } - - public boolean hasMatchConditions() { - return this.matchConditions != null && !this.matchConditions.isEmpty(); - } - - public MatchConditionsNested addNewMatchCondition() { - return new MatchConditionsNested(-1, null); - } - - public MatchConditionsNested addNewMatchConditionLike(V1alpha1MatchCondition item) { - return new MatchConditionsNested(-1, item); - } - - public MatchConditionsNested setNewMatchConditionLike(int index,V1alpha1MatchCondition item) { - return new MatchConditionsNested(index, item); - } - - public MatchConditionsNested editMatchCondition(int index) { - if (matchConditions.size() <= index) throw new RuntimeException("Can't edit matchConditions. Index exceeds size."); - return setNewMatchConditionLike(index, buildMatchCondition(index)); - } - - public MatchConditionsNested editFirstMatchCondition() { - if (matchConditions.size() == 0) throw new RuntimeException("Can't edit first matchConditions. The list is empty."); - return setNewMatchConditionLike(0, buildMatchCondition(0)); - } - - public MatchConditionsNested editLastMatchCondition() { - int index = matchConditions.size() - 1; - if (index < 0) throw new RuntimeException("Can't edit last matchConditions. The list is empty."); - return setNewMatchConditionLike(index, buildMatchCondition(index)); - } - - public MatchConditionsNested editMatchingMatchCondition(Predicate predicate) { - int index = -1; - for (int i=0;i withNewMatchConstraints() { - return new MatchConstraintsNested(null); - } - - public MatchConstraintsNested withNewMatchConstraintsLike(V1alpha1MatchResources item) { - return new MatchConstraintsNested(item); - } - - public MatchConstraintsNested editMatchConstraints() { - return withNewMatchConstraintsLike(java.util.Optional.ofNullable(buildMatchConstraints()).orElse(null)); - } - - public MatchConstraintsNested editOrNewMatchConstraints() { - return withNewMatchConstraintsLike(java.util.Optional.ofNullable(buildMatchConstraints()).orElse(new V1alpha1MatchResourcesBuilder().build())); - } - - public MatchConstraintsNested editOrNewMatchConstraintsLike(V1alpha1MatchResources item) { - return withNewMatchConstraintsLike(java.util.Optional.ofNullable(buildMatchConstraints()).orElse(item)); - } - - public V1alpha1ParamKind buildParamKind() { - return this.paramKind != null ? this.paramKind.build() : null; - } - - public A withParamKind(V1alpha1ParamKind paramKind) { - this._visitables.remove("paramKind"); - if (paramKind != null) { - this.paramKind = new V1alpha1ParamKindBuilder(paramKind); - this._visitables.get("paramKind").add(this.paramKind); - } else { - this.paramKind = null; - this._visitables.get("paramKind").remove(this.paramKind); - } - return (A) this; - } - - public boolean hasParamKind() { - return this.paramKind != null; - } - - public ParamKindNested withNewParamKind() { - return new ParamKindNested(null); - } - - public ParamKindNested withNewParamKindLike(V1alpha1ParamKind item) { - return new ParamKindNested(item); - } - - public ParamKindNested editParamKind() { - return withNewParamKindLike(java.util.Optional.ofNullable(buildParamKind()).orElse(null)); - } - - public ParamKindNested editOrNewParamKind() { - return withNewParamKindLike(java.util.Optional.ofNullable(buildParamKind()).orElse(new V1alpha1ParamKindBuilder().build())); - } - - public ParamKindNested editOrNewParamKindLike(V1alpha1ParamKind item) { - return withNewParamKindLike(java.util.Optional.ofNullable(buildParamKind()).orElse(item)); - } - - public A addToValidations(int index,V1alpha1Validation item) { - if (this.validations == null) {this.validations = new ArrayList();} - V1alpha1ValidationBuilder builder = new V1alpha1ValidationBuilder(item); - if (index < 0 || index >= validations.size()) { _visitables.get("validations").add(builder); validations.add(builder); } else { _visitables.get("validations").add(index, builder); validations.add(index, builder);} - return (A)this; - } - - public A setToValidations(int index,V1alpha1Validation item) { - if (this.validations == null) {this.validations = new ArrayList();} - V1alpha1ValidationBuilder builder = new V1alpha1ValidationBuilder(item); - if (index < 0 || index >= validations.size()) { _visitables.get("validations").add(builder); validations.add(builder); } else { _visitables.get("validations").set(index, builder); validations.set(index, builder);} - return (A)this; - } - - public A addToValidations(io.kubernetes.client.openapi.models.V1alpha1Validation... items) { - if (this.validations == null) {this.validations = new ArrayList();} - for (V1alpha1Validation item : items) {V1alpha1ValidationBuilder builder = new V1alpha1ValidationBuilder(item);_visitables.get("validations").add(builder);this.validations.add(builder);} return (A)this; - } - - public A addAllToValidations(Collection items) { - if (this.validations == null) {this.validations = new ArrayList();} - for (V1alpha1Validation item : items) {V1alpha1ValidationBuilder builder = new V1alpha1ValidationBuilder(item);_visitables.get("validations").add(builder);this.validations.add(builder);} return (A)this; - } - - public A removeFromValidations(io.kubernetes.client.openapi.models.V1alpha1Validation... items) { - if (this.validations == null) return (A)this; - for (V1alpha1Validation item : items) {V1alpha1ValidationBuilder builder = new V1alpha1ValidationBuilder(item);_visitables.get("validations").remove(builder); this.validations.remove(builder);} return (A)this; - } - - public A removeAllFromValidations(Collection items) { - if (this.validations == null) return (A)this; - for (V1alpha1Validation item : items) {V1alpha1ValidationBuilder builder = new V1alpha1ValidationBuilder(item);_visitables.get("validations").remove(builder); this.validations.remove(builder);} return (A)this; - } - - public A removeMatchingFromValidations(Predicate predicate) { - if (validations == null) return (A) this; - final Iterator each = validations.iterator(); - final List visitables = _visitables.get("validations"); - while (each.hasNext()) { - V1alpha1ValidationBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } - } - return (A)this; - } - - public List buildValidations() { - return this.validations != null ? build(validations) : null; - } - - public V1alpha1Validation buildValidation(int index) { - return this.validations.get(index).build(); - } - - public V1alpha1Validation buildFirstValidation() { - return this.validations.get(0).build(); - } - - public V1alpha1Validation buildLastValidation() { - return this.validations.get(validations.size() - 1).build(); - } - - public V1alpha1Validation buildMatchingValidation(Predicate predicate) { - for (V1alpha1ValidationBuilder item : validations) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; - } - - public boolean hasMatchingValidation(Predicate predicate) { - for (V1alpha1ValidationBuilder item : validations) { - if (predicate.test(item)) { - return true; - } - } - return false; - } - - public A withValidations(List validations) { - if (this.validations != null) { - this._visitables.get("validations").clear(); - } - if (validations != null) { - this.validations = new ArrayList(); - for (V1alpha1Validation item : validations) { - this.addToValidations(item); - } - } else { - this.validations = null; - } - return (A) this; - } - - public A withValidations(io.kubernetes.client.openapi.models.V1alpha1Validation... validations) { - if (this.validations != null) { - this.validations.clear(); - _visitables.remove("validations"); - } - if (validations != null) { - for (V1alpha1Validation item : validations) { - this.addToValidations(item); - } - } - return (A) this; - } - - public boolean hasValidations() { - return this.validations != null && !this.validations.isEmpty(); - } - - public ValidationsNested addNewValidation() { - return new ValidationsNested(-1, null); - } - - public ValidationsNested addNewValidationLike(V1alpha1Validation item) { - return new ValidationsNested(-1, item); - } - - public ValidationsNested setNewValidationLike(int index,V1alpha1Validation item) { - return new ValidationsNested(index, item); - } - - public ValidationsNested editValidation(int index) { - if (validations.size() <= index) throw new RuntimeException("Can't edit validations. Index exceeds size."); - return setNewValidationLike(index, buildValidation(index)); - } - - public ValidationsNested editFirstValidation() { - if (validations.size() == 0) throw new RuntimeException("Can't edit first validations. The list is empty."); - return setNewValidationLike(0, buildValidation(0)); - } - - public ValidationsNested editLastValidation() { - int index = validations.size() - 1; - if (index < 0) throw new RuntimeException("Can't edit last validations. The list is empty."); - return setNewValidationLike(index, buildValidation(index)); - } - - public ValidationsNested editMatchingValidation(Predicate predicate) { - int index = -1; - for (int i=0;i();} - V1alpha1VariableBuilder builder = new V1alpha1VariableBuilder(item); - if (index < 0 || index >= variables.size()) { _visitables.get("variables").add(builder); variables.add(builder); } else { _visitables.get("variables").add(index, builder); variables.add(index, builder);} - return (A)this; - } - - public A setToVariables(int index,V1alpha1Variable item) { - if (this.variables == null) {this.variables = new ArrayList();} - V1alpha1VariableBuilder builder = new V1alpha1VariableBuilder(item); - if (index < 0 || index >= variables.size()) { _visitables.get("variables").add(builder); variables.add(builder); } else { _visitables.get("variables").set(index, builder); variables.set(index, builder);} - return (A)this; - } - - public A addToVariables(io.kubernetes.client.openapi.models.V1alpha1Variable... items) { - if (this.variables == null) {this.variables = new ArrayList();} - for (V1alpha1Variable item : items) {V1alpha1VariableBuilder builder = new V1alpha1VariableBuilder(item);_visitables.get("variables").add(builder);this.variables.add(builder);} return (A)this; - } - - public A addAllToVariables(Collection items) { - if (this.variables == null) {this.variables = new ArrayList();} - for (V1alpha1Variable item : items) {V1alpha1VariableBuilder builder = new V1alpha1VariableBuilder(item);_visitables.get("variables").add(builder);this.variables.add(builder);} return (A)this; - } - - public A removeFromVariables(io.kubernetes.client.openapi.models.V1alpha1Variable... items) { - if (this.variables == null) return (A)this; - for (V1alpha1Variable item : items) {V1alpha1VariableBuilder builder = new V1alpha1VariableBuilder(item);_visitables.get("variables").remove(builder); this.variables.remove(builder);} return (A)this; - } - - public A removeAllFromVariables(Collection items) { - if (this.variables == null) return (A)this; - for (V1alpha1Variable item : items) {V1alpha1VariableBuilder builder = new V1alpha1VariableBuilder(item);_visitables.get("variables").remove(builder); this.variables.remove(builder);} return (A)this; - } - - public A removeMatchingFromVariables(Predicate predicate) { - if (variables == null) return (A) this; - final Iterator each = variables.iterator(); - final List visitables = _visitables.get("variables"); - while (each.hasNext()) { - V1alpha1VariableBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } - } - return (A)this; - } - - public List buildVariables() { - return this.variables != null ? build(variables) : null; - } - - public V1alpha1Variable buildVariable(int index) { - return this.variables.get(index).build(); - } - - public V1alpha1Variable buildFirstVariable() { - return this.variables.get(0).build(); - } - - public V1alpha1Variable buildLastVariable() { - return this.variables.get(variables.size() - 1).build(); - } - - public V1alpha1Variable buildMatchingVariable(Predicate predicate) { - for (V1alpha1VariableBuilder item : variables) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; - } - - public boolean hasMatchingVariable(Predicate predicate) { - for (V1alpha1VariableBuilder item : variables) { - if (predicate.test(item)) { - return true; - } - } - return false; - } - - public A withVariables(List variables) { - if (this.variables != null) { - this._visitables.get("variables").clear(); - } - if (variables != null) { - this.variables = new ArrayList(); - for (V1alpha1Variable item : variables) { - this.addToVariables(item); - } - } else { - this.variables = null; - } - return (A) this; - } - - public A withVariables(io.kubernetes.client.openapi.models.V1alpha1Variable... variables) { - if (this.variables != null) { - this.variables.clear(); - _visitables.remove("variables"); - } - if (variables != null) { - for (V1alpha1Variable item : variables) { - this.addToVariables(item); - } - } - return (A) this; - } - - public boolean hasVariables() { - return this.variables != null && !this.variables.isEmpty(); - } - - public VariablesNested addNewVariable() { - return new VariablesNested(-1, null); - } - - public VariablesNested addNewVariableLike(V1alpha1Variable item) { - return new VariablesNested(-1, item); - } - - public VariablesNested setNewVariableLike(int index,V1alpha1Variable item) { - return new VariablesNested(index, item); - } - - public VariablesNested editVariable(int index) { - if (variables.size() <= index) throw new RuntimeException("Can't edit variables. Index exceeds size."); - return setNewVariableLike(index, buildVariable(index)); - } - - public VariablesNested editFirstVariable() { - if (variables.size() == 0) throw new RuntimeException("Can't edit first variables. The list is empty."); - return setNewVariableLike(0, buildVariable(0)); - } - - public VariablesNested editLastVariable() { - int index = variables.size() - 1; - if (index < 0) throw new RuntimeException("Can't edit last variables. The list is empty."); - return setNewVariableLike(index, buildVariable(index)); - } - - public VariablesNested editMatchingVariable(Predicate predicate) { - int index = -1; - for (int i=0;i extends V1alpha1AuditAnnotationFluent> implements Nested{ - AuditAnnotationsNested(int index,V1alpha1AuditAnnotation item) { - this.index = index; - this.builder = new V1alpha1AuditAnnotationBuilder(this, item); - } - V1alpha1AuditAnnotationBuilder builder; - int index; - - public N and() { - return (N) V1alpha1ValidatingAdmissionPolicySpecFluent.this.setToAuditAnnotations(index,builder.build()); - } - - public N endAuditAnnotation() { - return and(); - } - - - } - public class MatchConditionsNested extends V1alpha1MatchConditionFluent> implements Nested{ - MatchConditionsNested(int index,V1alpha1MatchCondition item) { - this.index = index; - this.builder = new V1alpha1MatchConditionBuilder(this, item); - } - V1alpha1MatchConditionBuilder builder; - int index; - - public N and() { - return (N) V1alpha1ValidatingAdmissionPolicySpecFluent.this.setToMatchConditions(index,builder.build()); - } - - public N endMatchCondition() { - return and(); - } - - - } - public class MatchConstraintsNested extends V1alpha1MatchResourcesFluent> implements Nested{ - MatchConstraintsNested(V1alpha1MatchResources item) { - this.builder = new V1alpha1MatchResourcesBuilder(this, item); - } - V1alpha1MatchResourcesBuilder builder; - - public N and() { - return (N) V1alpha1ValidatingAdmissionPolicySpecFluent.this.withMatchConstraints(builder.build()); - } - - public N endMatchConstraints() { - return and(); - } - - - } - public class ParamKindNested extends V1alpha1ParamKindFluent> implements Nested{ - ParamKindNested(V1alpha1ParamKind item) { - this.builder = new V1alpha1ParamKindBuilder(this, item); - } - V1alpha1ParamKindBuilder builder; - - public N and() { - return (N) V1alpha1ValidatingAdmissionPolicySpecFluent.this.withParamKind(builder.build()); - } - - public N endParamKind() { - return and(); - } - - - } - public class ValidationsNested extends V1alpha1ValidationFluent> implements Nested{ - ValidationsNested(int index,V1alpha1Validation item) { - this.index = index; - this.builder = new V1alpha1ValidationBuilder(this, item); - } - V1alpha1ValidationBuilder builder; - int index; - - public N and() { - return (N) V1alpha1ValidatingAdmissionPolicySpecFluent.this.setToValidations(index,builder.build()); - } - - public N endValidation() { - return and(); - } - - - } - public class VariablesNested extends V1alpha1VariableFluent> implements Nested{ - VariablesNested(int index,V1alpha1Variable item) { - this.index = index; - this.builder = new V1alpha1VariableBuilder(this, item); - } - V1alpha1VariableBuilder builder; - int index; - - public N and() { - return (N) V1alpha1ValidatingAdmissionPolicySpecFluent.this.setToVariables(index,builder.build()); - } - - public N endVariable() { - return and(); - } - - - } - -} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ValidatingAdmissionPolicyStatusBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ValidatingAdmissionPolicyStatusBuilder.java deleted file mode 100644 index c6de63fda3..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ValidatingAdmissionPolicyStatusBuilder.java +++ /dev/null @@ -1,33 +0,0 @@ -package io.kubernetes.client.openapi.models; - -import io.kubernetes.client.fluent.VisitableBuilder; -public class V1alpha1ValidatingAdmissionPolicyStatusBuilder extends V1alpha1ValidatingAdmissionPolicyStatusFluent implements VisitableBuilder{ - public V1alpha1ValidatingAdmissionPolicyStatusBuilder() { - this(new V1alpha1ValidatingAdmissionPolicyStatus()); - } - - public V1alpha1ValidatingAdmissionPolicyStatusBuilder(V1alpha1ValidatingAdmissionPolicyStatusFluent fluent) { - this(fluent, new V1alpha1ValidatingAdmissionPolicyStatus()); - } - - public V1alpha1ValidatingAdmissionPolicyStatusBuilder(V1alpha1ValidatingAdmissionPolicyStatusFluent fluent,V1alpha1ValidatingAdmissionPolicyStatus instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - - public V1alpha1ValidatingAdmissionPolicyStatusBuilder(V1alpha1ValidatingAdmissionPolicyStatus instance) { - this.fluent = this; - this.copyInstance(instance); - } - V1alpha1ValidatingAdmissionPolicyStatusFluent fluent; - - public V1alpha1ValidatingAdmissionPolicyStatus build() { - V1alpha1ValidatingAdmissionPolicyStatus buildable = new V1alpha1ValidatingAdmissionPolicyStatus(); - buildable.setConditions(fluent.buildConditions()); - buildable.setObservedGeneration(fluent.getObservedGeneration()); - buildable.setTypeChecking(fluent.buildTypeChecking()); - return buildable; - } - - -} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ValidatingAdmissionPolicyStatusFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ValidatingAdmissionPolicyStatusFluent.java deleted file mode 100644 index 1d15db0aec..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ValidatingAdmissionPolicyStatusFluent.java +++ /dev/null @@ -1,303 +0,0 @@ -package io.kubernetes.client.openapi.models; - -import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.Nested; -import java.util.ArrayList; -import java.lang.String; -import java.util.function.Predicate; -import io.kubernetes.client.fluent.BaseFluent; -import java.lang.Long; -import java.util.Iterator; -import java.util.Collection; -import java.lang.Object; -import java.util.List; - -/** - * Generated - */ -@SuppressWarnings("unchecked") -public class V1alpha1ValidatingAdmissionPolicyStatusFluent> extends BaseFluent{ - public V1alpha1ValidatingAdmissionPolicyStatusFluent() { - } - - public V1alpha1ValidatingAdmissionPolicyStatusFluent(V1alpha1ValidatingAdmissionPolicyStatus instance) { - this.copyInstance(instance); - } - private ArrayList conditions; - private Long observedGeneration; - private V1alpha1TypeCheckingBuilder typeChecking; - - protected void copyInstance(V1alpha1ValidatingAdmissionPolicyStatus instance) { - instance = (instance != null ? instance : new V1alpha1ValidatingAdmissionPolicyStatus()); - if (instance != null) { - this.withConditions(instance.getConditions()); - this.withObservedGeneration(instance.getObservedGeneration()); - this.withTypeChecking(instance.getTypeChecking()); - } - } - - public A addToConditions(int index,V1Condition item) { - if (this.conditions == null) {this.conditions = new ArrayList();} - V1ConditionBuilder builder = new V1ConditionBuilder(item); - if (index < 0 || index >= conditions.size()) { _visitables.get("conditions").add(builder); conditions.add(builder); } else { _visitables.get("conditions").add(index, builder); conditions.add(index, builder);} - return (A)this; - } - - public A setToConditions(int index,V1Condition item) { - if (this.conditions == null) {this.conditions = new ArrayList();} - V1ConditionBuilder builder = new V1ConditionBuilder(item); - if (index < 0 || index >= conditions.size()) { _visitables.get("conditions").add(builder); conditions.add(builder); } else { _visitables.get("conditions").set(index, builder); conditions.set(index, builder);} - return (A)this; - } - - public A addToConditions(io.kubernetes.client.openapi.models.V1Condition... items) { - if (this.conditions == null) {this.conditions = new ArrayList();} - for (V1Condition item : items) {V1ConditionBuilder builder = new V1ConditionBuilder(item);_visitables.get("conditions").add(builder);this.conditions.add(builder);} return (A)this; - } - - public A addAllToConditions(Collection items) { - if (this.conditions == null) {this.conditions = new ArrayList();} - for (V1Condition item : items) {V1ConditionBuilder builder = new V1ConditionBuilder(item);_visitables.get("conditions").add(builder);this.conditions.add(builder);} return (A)this; - } - - public A removeFromConditions(io.kubernetes.client.openapi.models.V1Condition... items) { - if (this.conditions == null) return (A)this; - for (V1Condition item : items) {V1ConditionBuilder builder = new V1ConditionBuilder(item);_visitables.get("conditions").remove(builder); this.conditions.remove(builder);} return (A)this; - } - - public A removeAllFromConditions(Collection items) { - if (this.conditions == null) return (A)this; - for (V1Condition item : items) {V1ConditionBuilder builder = new V1ConditionBuilder(item);_visitables.get("conditions").remove(builder); this.conditions.remove(builder);} return (A)this; - } - - public A removeMatchingFromConditions(Predicate predicate) { - if (conditions == null) return (A) this; - final Iterator each = conditions.iterator(); - final List visitables = _visitables.get("conditions"); - while (each.hasNext()) { - V1ConditionBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } - } - return (A)this; - } - - public List buildConditions() { - return this.conditions != null ? build(conditions) : null; - } - - public V1Condition buildCondition(int index) { - return this.conditions.get(index).build(); - } - - public V1Condition buildFirstCondition() { - return this.conditions.get(0).build(); - } - - public V1Condition buildLastCondition() { - return this.conditions.get(conditions.size() - 1).build(); - } - - public V1Condition buildMatchingCondition(Predicate predicate) { - for (V1ConditionBuilder item : conditions) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; - } - - public boolean hasMatchingCondition(Predicate predicate) { - for (V1ConditionBuilder item : conditions) { - if (predicate.test(item)) { - return true; - } - } - return false; - } - - public A withConditions(List conditions) { - if (this.conditions != null) { - this._visitables.get("conditions").clear(); - } - if (conditions != null) { - this.conditions = new ArrayList(); - for (V1Condition item : conditions) { - this.addToConditions(item); - } - } else { - this.conditions = null; - } - return (A) this; - } - - public A withConditions(io.kubernetes.client.openapi.models.V1Condition... conditions) { - if (this.conditions != null) { - this.conditions.clear(); - _visitables.remove("conditions"); - } - if (conditions != null) { - for (V1Condition item : conditions) { - this.addToConditions(item); - } - } - return (A) this; - } - - public boolean hasConditions() { - return this.conditions != null && !this.conditions.isEmpty(); - } - - public ConditionsNested addNewCondition() { - return new ConditionsNested(-1, null); - } - - public ConditionsNested addNewConditionLike(V1Condition item) { - return new ConditionsNested(-1, item); - } - - public ConditionsNested setNewConditionLike(int index,V1Condition item) { - return new ConditionsNested(index, item); - } - - public ConditionsNested editCondition(int index) { - if (conditions.size() <= index) throw new RuntimeException("Can't edit conditions. Index exceeds size."); - return setNewConditionLike(index, buildCondition(index)); - } - - public ConditionsNested editFirstCondition() { - if (conditions.size() == 0) throw new RuntimeException("Can't edit first conditions. The list is empty."); - return setNewConditionLike(0, buildCondition(0)); - } - - public ConditionsNested editLastCondition() { - int index = conditions.size() - 1; - if (index < 0) throw new RuntimeException("Can't edit last conditions. The list is empty."); - return setNewConditionLike(index, buildCondition(index)); - } - - public ConditionsNested editMatchingCondition(Predicate predicate) { - int index = -1; - for (int i=0;i withNewTypeChecking() { - return new TypeCheckingNested(null); - } - - public TypeCheckingNested withNewTypeCheckingLike(V1alpha1TypeChecking item) { - return new TypeCheckingNested(item); - } - - public TypeCheckingNested editTypeChecking() { - return withNewTypeCheckingLike(java.util.Optional.ofNullable(buildTypeChecking()).orElse(null)); - } - - public TypeCheckingNested editOrNewTypeChecking() { - return withNewTypeCheckingLike(java.util.Optional.ofNullable(buildTypeChecking()).orElse(new V1alpha1TypeCheckingBuilder().build())); - } - - public TypeCheckingNested editOrNewTypeCheckingLike(V1alpha1TypeChecking item) { - return withNewTypeCheckingLike(java.util.Optional.ofNullable(buildTypeChecking()).orElse(item)); - } - - public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; - V1alpha1ValidatingAdmissionPolicyStatusFluent that = (V1alpha1ValidatingAdmissionPolicyStatusFluent) o; - if (!java.util.Objects.equals(conditions, that.conditions)) return false; - if (!java.util.Objects.equals(observedGeneration, that.observedGeneration)) return false; - if (!java.util.Objects.equals(typeChecking, that.typeChecking)) return false; - return true; - } - - public int hashCode() { - return java.util.Objects.hash(conditions, observedGeneration, typeChecking, super.hashCode()); - } - - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("{"); - if (conditions != null && !conditions.isEmpty()) { sb.append("conditions:"); sb.append(conditions + ","); } - if (observedGeneration != null) { sb.append("observedGeneration:"); sb.append(observedGeneration + ","); } - if (typeChecking != null) { sb.append("typeChecking:"); sb.append(typeChecking); } - sb.append("}"); - return sb.toString(); - } - public class ConditionsNested extends V1ConditionFluent> implements Nested{ - ConditionsNested(int index,V1Condition item) { - this.index = index; - this.builder = new V1ConditionBuilder(this, item); - } - V1ConditionBuilder builder; - int index; - - public N and() { - return (N) V1alpha1ValidatingAdmissionPolicyStatusFluent.this.setToConditions(index,builder.build()); - } - - public N endCondition() { - return and(); - } - - - } - public class TypeCheckingNested extends V1alpha1TypeCheckingFluent> implements Nested{ - TypeCheckingNested(V1alpha1TypeChecking item) { - this.builder = new V1alpha1TypeCheckingBuilder(this, item); - } - V1alpha1TypeCheckingBuilder builder; - - public N and() { - return (N) V1alpha1ValidatingAdmissionPolicyStatusFluent.this.withTypeChecking(builder.build()); - } - - public N endTypeChecking() { - return and(); - } - - - } - -} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ValidationBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ValidationBuilder.java deleted file mode 100644 index 3c35faf4f2..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ValidationBuilder.java +++ /dev/null @@ -1,34 +0,0 @@ -package io.kubernetes.client.openapi.models; - -import io.kubernetes.client.fluent.VisitableBuilder; -public class V1alpha1ValidationBuilder extends V1alpha1ValidationFluent implements VisitableBuilder{ - public V1alpha1ValidationBuilder() { - this(new V1alpha1Validation()); - } - - public V1alpha1ValidationBuilder(V1alpha1ValidationFluent fluent) { - this(fluent, new V1alpha1Validation()); - } - - public V1alpha1ValidationBuilder(V1alpha1ValidationFluent fluent,V1alpha1Validation instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - - public V1alpha1ValidationBuilder(V1alpha1Validation instance) { - this.fluent = this; - this.copyInstance(instance); - } - V1alpha1ValidationFluent fluent; - - public V1alpha1Validation build() { - V1alpha1Validation buildable = new V1alpha1Validation(); - buildable.setExpression(fluent.getExpression()); - buildable.setMessage(fluent.getMessage()); - buildable.setMessageExpression(fluent.getMessageExpression()); - buildable.setReason(fluent.getReason()); - return buildable; - } - - -} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ValidationFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ValidationFluent.java deleted file mode 100644 index 5261bdb1fc..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ValidationFluent.java +++ /dev/null @@ -1,114 +0,0 @@ -package io.kubernetes.client.openapi.models; - -import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.BaseFluent; -import java.lang.Object; -import java.lang.String; - -/** - * Generated - */ -@SuppressWarnings("unchecked") -public class V1alpha1ValidationFluent> extends BaseFluent{ - public V1alpha1ValidationFluent() { - } - - public V1alpha1ValidationFluent(V1alpha1Validation instance) { - this.copyInstance(instance); - } - private String expression; - private String message; - private String messageExpression; - private String reason; - - protected void copyInstance(V1alpha1Validation instance) { - instance = (instance != null ? instance : new V1alpha1Validation()); - if (instance != null) { - this.withExpression(instance.getExpression()); - this.withMessage(instance.getMessage()); - this.withMessageExpression(instance.getMessageExpression()); - this.withReason(instance.getReason()); - } - } - - public String getExpression() { - return this.expression; - } - - public A withExpression(String expression) { - this.expression = expression; - return (A) this; - } - - public boolean hasExpression() { - return this.expression != null; - } - - public String getMessage() { - return this.message; - } - - public A withMessage(String message) { - this.message = message; - return (A) this; - } - - public boolean hasMessage() { - return this.message != null; - } - - public String getMessageExpression() { - return this.messageExpression; - } - - public A withMessageExpression(String messageExpression) { - this.messageExpression = messageExpression; - return (A) this; - } - - public boolean hasMessageExpression() { - return this.messageExpression != null; - } - - public String getReason() { - return this.reason; - } - - public A withReason(String reason) { - this.reason = reason; - return (A) this; - } - - public boolean hasReason() { - return this.reason != null; - } - - public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; - V1alpha1ValidationFluent that = (V1alpha1ValidationFluent) o; - if (!java.util.Objects.equals(expression, that.expression)) return false; - if (!java.util.Objects.equals(message, that.message)) return false; - if (!java.util.Objects.equals(messageExpression, that.messageExpression)) return false; - if (!java.util.Objects.equals(reason, that.reason)) return false; - return true; - } - - public int hashCode() { - return java.util.Objects.hash(expression, message, messageExpression, reason, super.hashCode()); - } - - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("{"); - if (expression != null) { sb.append("expression:"); sb.append(expression + ","); } - if (message != null) { sb.append("message:"); sb.append(message + ","); } - if (messageExpression != null) { sb.append("messageExpression:"); sb.append(messageExpression + ","); } - if (reason != null) { sb.append("reason:"); sb.append(reason); } - sb.append("}"); - return sb.toString(); - } - - -} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1VolumeAttributesClassBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1VolumeAttributesClassBuilder.java new file mode 100644 index 0000000000..821957ff6b --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1VolumeAttributesClassBuilder.java @@ -0,0 +1,35 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +public class V1alpha1VolumeAttributesClassBuilder extends V1alpha1VolumeAttributesClassFluent implements VisitableBuilder{ + public V1alpha1VolumeAttributesClassBuilder() { + this(new V1alpha1VolumeAttributesClass()); + } + + public V1alpha1VolumeAttributesClassBuilder(V1alpha1VolumeAttributesClassFluent fluent) { + this(fluent, new V1alpha1VolumeAttributesClass()); + } + + public V1alpha1VolumeAttributesClassBuilder(V1alpha1VolumeAttributesClassFluent fluent,V1alpha1VolumeAttributesClass instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1alpha1VolumeAttributesClassBuilder(V1alpha1VolumeAttributesClass instance) { + this.fluent = this; + this.copyInstance(instance); + } + V1alpha1VolumeAttributesClassFluent fluent; + + public V1alpha1VolumeAttributesClass build() { + V1alpha1VolumeAttributesClass buildable = new V1alpha1VolumeAttributesClass(); + buildable.setApiVersion(fluent.getApiVersion()); + buildable.setDriverName(fluent.getDriverName()); + buildable.setKind(fluent.getKind()); + buildable.setMetadata(fluent.buildMetadata()); + buildable.setParameters(fluent.getParameters()); + return buildable; + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1VolumeAttributesClassFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1VolumeAttributesClassFluent.java new file mode 100644 index 0000000000..1bc795b869 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1VolumeAttributesClassFluent.java @@ -0,0 +1,200 @@ +package io.kubernetes.client.openapi.models; + +import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.Nested; +import java.lang.String; +import java.util.LinkedHashMap; +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Object; +import java.util.Map; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1alpha1VolumeAttributesClassFluent> extends BaseFluent{ + public V1alpha1VolumeAttributesClassFluent() { + } + + public V1alpha1VolumeAttributesClassFluent(V1alpha1VolumeAttributesClass instance) { + this.copyInstance(instance); + } + private String apiVersion; + private String driverName; + private String kind; + private V1ObjectMetaBuilder metadata; + private Map parameters; + + protected void copyInstance(V1alpha1VolumeAttributesClass instance) { + instance = (instance != null ? instance : new V1alpha1VolumeAttributesClass()); + if (instance != null) { + this.withApiVersion(instance.getApiVersion()); + this.withDriverName(instance.getDriverName()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); + this.withParameters(instance.getParameters()); + } + } + + public String getApiVersion() { + return this.apiVersion; + } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + + public boolean hasApiVersion() { + return this.apiVersion != null; + } + + public String getDriverName() { + return this.driverName; + } + + public A withDriverName(String driverName) { + this.driverName = driverName; + return (A) this; + } + + public boolean hasDriverName() { + return this.driverName != null; + } + + public String getKind() { + return this.kind; + } + + public A withKind(String kind) { + this.kind = kind; + return (A) this; + } + + public boolean hasKind() { + return this.kind != null; + } + + public V1ObjectMeta buildMetadata() { + return this.metadata != null ? this.metadata.build() : null; + } + + public A withMetadata(V1ObjectMeta metadata) { + this._visitables.remove("metadata"); + if (metadata != null) { + this.metadata = new V1ObjectMetaBuilder(metadata); + this._visitables.get("metadata").add(this.metadata); + } else { + this.metadata = null; + this._visitables.get("metadata").remove(this.metadata); + } + return (A) this; + } + + public boolean hasMetadata() { + return this.metadata != null; + } + + public MetadataNested withNewMetadata() { + return new MetadataNested(null); + } + + public MetadataNested withNewMetadataLike(V1ObjectMeta item) { + return new MetadataNested(item); + } + + public MetadataNested editMetadata() { + return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(null)); + } + + public MetadataNested editOrNewMetadata() { + return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(new V1ObjectMetaBuilder().build())); + } + + public MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { + return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(item)); + } + + public A addToParameters(String key,String value) { + if(this.parameters == null && key != null && value != null) { this.parameters = new LinkedHashMap(); } + if(key != null && value != null) {this.parameters.put(key, value);} return (A)this; + } + + public A addToParameters(Map map) { + if(this.parameters == null && map != null) { this.parameters = new LinkedHashMap(); } + if(map != null) { this.parameters.putAll(map);} return (A)this; + } + + public A removeFromParameters(String key) { + if(this.parameters == null) { return (A) this; } + if(key != null && this.parameters != null) {this.parameters.remove(key);} return (A)this; + } + + public A removeFromParameters(Map map) { + if(this.parameters == null) { return (A) this; } + if(map != null) { for(Object key : map.keySet()) {if (this.parameters != null){this.parameters.remove(key);}}} return (A)this; + } + + public Map getParameters() { + return this.parameters; + } + + public A withParameters(Map parameters) { + if (parameters == null) { + this.parameters = null; + } else { + this.parameters = new LinkedHashMap(parameters); + } + return (A) this; + } + + public boolean hasParameters() { + return this.parameters != null; + } + + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + if (!super.equals(o)) return false; + V1alpha1VolumeAttributesClassFluent that = (V1alpha1VolumeAttributesClassFluent) o; + if (!java.util.Objects.equals(apiVersion, that.apiVersion)) return false; + if (!java.util.Objects.equals(driverName, that.driverName)) return false; + if (!java.util.Objects.equals(kind, that.kind)) return false; + if (!java.util.Objects.equals(metadata, that.metadata)) return false; + if (!java.util.Objects.equals(parameters, that.parameters)) return false; + return true; + } + + public int hashCode() { + return java.util.Objects.hash(apiVersion, driverName, kind, metadata, parameters, super.hashCode()); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (apiVersion != null) { sb.append("apiVersion:"); sb.append(apiVersion + ","); } + if (driverName != null) { sb.append("driverName:"); sb.append(driverName + ","); } + if (kind != null) { sb.append("kind:"); sb.append(kind + ","); } + if (metadata != null) { sb.append("metadata:"); sb.append(metadata + ","); } + if (parameters != null && !parameters.isEmpty()) { sb.append("parameters:"); sb.append(parameters); } + sb.append("}"); + return sb.toString(); + } + public class MetadataNested extends V1ObjectMetaFluent> implements Nested{ + MetadataNested(V1ObjectMeta item) { + this.builder = new V1ObjectMetaBuilder(this, item); + } + V1ObjectMetaBuilder builder; + + public N and() { + return (N) V1alpha1VolumeAttributesClassFluent.this.withMetadata(builder.build()); + } + + public N endMetadata() { + return and(); + } + + + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1VolumeAttributesClassListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1VolumeAttributesClassListBuilder.java new file mode 100644 index 0000000000..69afc7976d --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1VolumeAttributesClassListBuilder.java @@ -0,0 +1,34 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +public class V1alpha1VolumeAttributesClassListBuilder extends V1alpha1VolumeAttributesClassListFluent implements VisitableBuilder{ + public V1alpha1VolumeAttributesClassListBuilder() { + this(new V1alpha1VolumeAttributesClassList()); + } + + public V1alpha1VolumeAttributesClassListBuilder(V1alpha1VolumeAttributesClassListFluent fluent) { + this(fluent, new V1alpha1VolumeAttributesClassList()); + } + + public V1alpha1VolumeAttributesClassListBuilder(V1alpha1VolumeAttributesClassListFluent fluent,V1alpha1VolumeAttributesClassList instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1alpha1VolumeAttributesClassListBuilder(V1alpha1VolumeAttributesClassList instance) { + this.fluent = this; + this.copyInstance(instance); + } + V1alpha1VolumeAttributesClassListFluent fluent; + + public V1alpha1VolumeAttributesClassList build() { + V1alpha1VolumeAttributesClassList buildable = new V1alpha1VolumeAttributesClassList(); + buildable.setApiVersion(fluent.getApiVersion()); + buildable.setItems(fluent.buildItems()); + buildable.setKind(fluent.getKind()); + buildable.setMetadata(fluent.buildMetadata()); + return buildable; + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1VolumeAttributesClassListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1VolumeAttributesClassListFluent.java new file mode 100644 index 0000000000..61d7367754 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1VolumeAttributesClassListFluent.java @@ -0,0 +1,331 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.Nested; +import java.util.ArrayList; +import java.lang.String; +import java.util.function.Predicate; +import io.kubernetes.client.fluent.BaseFluent; +import java.util.Iterator; +import java.util.Collection; +import java.lang.Object; +import java.util.List; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1alpha1VolumeAttributesClassListFluent> extends BaseFluent{ + public V1alpha1VolumeAttributesClassListFluent() { + } + + public V1alpha1VolumeAttributesClassListFluent(V1alpha1VolumeAttributesClassList instance) { + this.copyInstance(instance); + } + private String apiVersion; + private ArrayList items; + private String kind; + private V1ListMetaBuilder metadata; + + protected void copyInstance(V1alpha1VolumeAttributesClassList instance) { + instance = (instance != null ? instance : new V1alpha1VolumeAttributesClassList()); + if (instance != null) { + this.withApiVersion(instance.getApiVersion()); + this.withItems(instance.getItems()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); + } + } + + public String getApiVersion() { + return this.apiVersion; + } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + + public boolean hasApiVersion() { + return this.apiVersion != null; + } + + public A addToItems(int index,V1alpha1VolumeAttributesClass item) { + if (this.items == null) {this.items = new ArrayList();} + V1alpha1VolumeAttributesClassBuilder builder = new V1alpha1VolumeAttributesClassBuilder(item); + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.add(index, builder); + } + return (A)this; + } + + public A setToItems(int index,V1alpha1VolumeAttributesClass item) { + if (this.items == null) {this.items = new ArrayList();} + V1alpha1VolumeAttributesClassBuilder builder = new V1alpha1VolumeAttributesClassBuilder(item); + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.set(index, builder); + } + return (A)this; + } + + public A addToItems(io.kubernetes.client.openapi.models.V1alpha1VolumeAttributesClass... items) { + if (this.items == null) {this.items = new ArrayList();} + for (V1alpha1VolumeAttributesClass item : items) {V1alpha1VolumeAttributesClassBuilder builder = new V1alpha1VolumeAttributesClassBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; + } + + public A addAllToItems(Collection items) { + if (this.items == null) {this.items = new ArrayList();} + for (V1alpha1VolumeAttributesClass item : items) {V1alpha1VolumeAttributesClassBuilder builder = new V1alpha1VolumeAttributesClassBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; + } + + public A removeFromItems(io.kubernetes.client.openapi.models.V1alpha1VolumeAttributesClass... items) { + if (this.items == null) return (A)this; + for (V1alpha1VolumeAttributesClass item : items) {V1alpha1VolumeAttributesClassBuilder builder = new V1alpha1VolumeAttributesClassBuilder(item);_visitables.get("items").remove(builder); this.items.remove(builder);} return (A)this; + } + + public A removeAllFromItems(Collection items) { + if (this.items == null) return (A)this; + for (V1alpha1VolumeAttributesClass item : items) {V1alpha1VolumeAttributesClassBuilder builder = new V1alpha1VolumeAttributesClassBuilder(item);_visitables.get("items").remove(builder); this.items.remove(builder);} return (A)this; + } + + public A removeMatchingFromItems(Predicate predicate) { + if (items == null) return (A) this; + final Iterator each = items.iterator(); + final List visitables = _visitables.get("items"); + while (each.hasNext()) { + V1alpha1VolumeAttributesClassBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A)this; + } + + public List buildItems() { + return this.items != null ? build(items) : null; + } + + public V1alpha1VolumeAttributesClass buildItem(int index) { + return this.items.get(index).build(); + } + + public V1alpha1VolumeAttributesClass buildFirstItem() { + return this.items.get(0).build(); + } + + public V1alpha1VolumeAttributesClass buildLastItem() { + return this.items.get(items.size() - 1).build(); + } + + public V1alpha1VolumeAttributesClass buildMatchingItem(Predicate predicate) { + for (V1alpha1VolumeAttributesClassBuilder item : items) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; + } + + public boolean hasMatchingItem(Predicate predicate) { + for (V1alpha1VolumeAttributesClassBuilder item : items) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public A withItems(List items) { + if (this.items != null) { + this._visitables.get("items").clear(); + } + if (items != null) { + this.items = new ArrayList(); + for (V1alpha1VolumeAttributesClass item : items) { + this.addToItems(item); + } + } else { + this.items = null; + } + return (A) this; + } + + public A withItems(io.kubernetes.client.openapi.models.V1alpha1VolumeAttributesClass... items) { + if (this.items != null) { + this.items.clear(); + _visitables.remove("items"); + } + if (items != null) { + for (V1alpha1VolumeAttributesClass item : items) { + this.addToItems(item); + } + } + return (A) this; + } + + public boolean hasItems() { + return this.items != null && !this.items.isEmpty(); + } + + public ItemsNested addNewItem() { + return new ItemsNested(-1, null); + } + + public ItemsNested addNewItemLike(V1alpha1VolumeAttributesClass item) { + return new ItemsNested(-1, item); + } + + public ItemsNested setNewItemLike(int index,V1alpha1VolumeAttributesClass item) { + return new ItemsNested(index, item); + } + + public ItemsNested editItem(int index) { + if (items.size() <= index) throw new RuntimeException("Can't edit items. Index exceeds size."); + return setNewItemLike(index, buildItem(index)); + } + + public ItemsNested editFirstItem() { + if (items.size() == 0) throw new RuntimeException("Can't edit first items. The list is empty."); + return setNewItemLike(0, buildItem(0)); + } + + public ItemsNested editLastItem() { + int index = items.size() - 1; + if (index < 0) throw new RuntimeException("Can't edit last items. The list is empty."); + return setNewItemLike(index, buildItem(index)); + } + + public ItemsNested editMatchingItem(Predicate predicate) { + int index = -1; + for (int i=0;i withNewMetadata() { + return new MetadataNested(null); + } + + public MetadataNested withNewMetadataLike(V1ListMeta item) { + return new MetadataNested(item); + } + + public MetadataNested editMetadata() { + return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(null)); + } + + public MetadataNested editOrNewMetadata() { + return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(new V1ListMetaBuilder().build())); + } + + public MetadataNested editOrNewMetadataLike(V1ListMeta item) { + return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(item)); + } + + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + if (!super.equals(o)) return false; + V1alpha1VolumeAttributesClassListFluent that = (V1alpha1VolumeAttributesClassListFluent) o; + if (!java.util.Objects.equals(apiVersion, that.apiVersion)) return false; + if (!java.util.Objects.equals(items, that.items)) return false; + if (!java.util.Objects.equals(kind, that.kind)) return false; + if (!java.util.Objects.equals(metadata, that.metadata)) return false; + return true; + } + + public int hashCode() { + return java.util.Objects.hash(apiVersion, items, kind, metadata, super.hashCode()); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (apiVersion != null) { sb.append("apiVersion:"); sb.append(apiVersion + ","); } + if (items != null && !items.isEmpty()) { sb.append("items:"); sb.append(items + ","); } + if (kind != null) { sb.append("kind:"); sb.append(kind + ","); } + if (metadata != null) { sb.append("metadata:"); sb.append(metadata); } + sb.append("}"); + return sb.toString(); + } + public class ItemsNested extends V1alpha1VolumeAttributesClassFluent> implements Nested{ + ItemsNested(int index,V1alpha1VolumeAttributesClass item) { + this.index = index; + this.builder = new V1alpha1VolumeAttributesClassBuilder(this, item); + } + V1alpha1VolumeAttributesClassBuilder builder; + int index; + + public N and() { + return (N) V1alpha1VolumeAttributesClassListFluent.this.setToItems(index,builder.build()); + } + + public N endItem() { + return and(); + } + + + } + public class MetadataNested extends V1ListMetaFluent> implements Nested{ + MetadataNested(V1ListMeta item) { + this.builder = new V1ListMetaBuilder(this, item); + } + V1ListMetaBuilder builder; + + public N and() { + return (N) V1alpha1VolumeAttributesClassListFluent.this.withMetadata(builder.build()); + } + + public N endMetadata() { + return and(); + } + + + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2AllocationResultBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2AllocationResultBuilder.java deleted file mode 100644 index 906d336e02..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2AllocationResultBuilder.java +++ /dev/null @@ -1,33 +0,0 @@ -package io.kubernetes.client.openapi.models; - -import io.kubernetes.client.fluent.VisitableBuilder; -public class V1alpha2AllocationResultBuilder extends V1alpha2AllocationResultFluent implements VisitableBuilder{ - public V1alpha2AllocationResultBuilder() { - this(new V1alpha2AllocationResult()); - } - - public V1alpha2AllocationResultBuilder(V1alpha2AllocationResultFluent fluent) { - this(fluent, new V1alpha2AllocationResult()); - } - - public V1alpha2AllocationResultBuilder(V1alpha2AllocationResultFluent fluent,V1alpha2AllocationResult instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - - public V1alpha2AllocationResultBuilder(V1alpha2AllocationResult instance) { - this.fluent = this; - this.copyInstance(instance); - } - V1alpha2AllocationResultFluent fluent; - - public V1alpha2AllocationResult build() { - V1alpha2AllocationResult buildable = new V1alpha2AllocationResult(); - buildable.setAvailableOnNodes(fluent.buildAvailableOnNodes()); - buildable.setResourceHandles(fluent.buildResourceHandles()); - buildable.setShareable(fluent.getShareable()); - return buildable; - } - - -} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2AllocationResultFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2AllocationResultFluent.java deleted file mode 100644 index 3977322699..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2AllocationResultFluent.java +++ /dev/null @@ -1,307 +0,0 @@ -package io.kubernetes.client.openapi.models; - -import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.Nested; -import java.util.ArrayList; -import java.lang.String; -import java.util.function.Predicate; -import io.kubernetes.client.fluent.BaseFluent; -import java.util.Iterator; -import java.util.Collection; -import java.lang.Object; -import java.util.List; -import java.lang.Boolean; - -/** - * Generated - */ -@SuppressWarnings("unchecked") -public class V1alpha2AllocationResultFluent> extends BaseFluent{ - public V1alpha2AllocationResultFluent() { - } - - public V1alpha2AllocationResultFluent(V1alpha2AllocationResult instance) { - this.copyInstance(instance); - } - private V1NodeSelectorBuilder availableOnNodes; - private ArrayList resourceHandles; - private Boolean shareable; - - protected void copyInstance(V1alpha2AllocationResult instance) { - instance = (instance != null ? instance : new V1alpha2AllocationResult()); - if (instance != null) { - this.withAvailableOnNodes(instance.getAvailableOnNodes()); - this.withResourceHandles(instance.getResourceHandles()); - this.withShareable(instance.getShareable()); - } - } - - public V1NodeSelector buildAvailableOnNodes() { - return this.availableOnNodes != null ? this.availableOnNodes.build() : null; - } - - public A withAvailableOnNodes(V1NodeSelector availableOnNodes) { - this._visitables.remove("availableOnNodes"); - if (availableOnNodes != null) { - this.availableOnNodes = new V1NodeSelectorBuilder(availableOnNodes); - this._visitables.get("availableOnNodes").add(this.availableOnNodes); - } else { - this.availableOnNodes = null; - this._visitables.get("availableOnNodes").remove(this.availableOnNodes); - } - return (A) this; - } - - public boolean hasAvailableOnNodes() { - return this.availableOnNodes != null; - } - - public AvailableOnNodesNested withNewAvailableOnNodes() { - return new AvailableOnNodesNested(null); - } - - public AvailableOnNodesNested withNewAvailableOnNodesLike(V1NodeSelector item) { - return new AvailableOnNodesNested(item); - } - - public AvailableOnNodesNested editAvailableOnNodes() { - return withNewAvailableOnNodesLike(java.util.Optional.ofNullable(buildAvailableOnNodes()).orElse(null)); - } - - public AvailableOnNodesNested editOrNewAvailableOnNodes() { - return withNewAvailableOnNodesLike(java.util.Optional.ofNullable(buildAvailableOnNodes()).orElse(new V1NodeSelectorBuilder().build())); - } - - public AvailableOnNodesNested editOrNewAvailableOnNodesLike(V1NodeSelector item) { - return withNewAvailableOnNodesLike(java.util.Optional.ofNullable(buildAvailableOnNodes()).orElse(item)); - } - - public A addToResourceHandles(int index,V1alpha2ResourceHandle item) { - if (this.resourceHandles == null) {this.resourceHandles = new ArrayList();} - V1alpha2ResourceHandleBuilder builder = new V1alpha2ResourceHandleBuilder(item); - if (index < 0 || index >= resourceHandles.size()) { _visitables.get("resourceHandles").add(builder); resourceHandles.add(builder); } else { _visitables.get("resourceHandles").add(index, builder); resourceHandles.add(index, builder);} - return (A)this; - } - - public A setToResourceHandles(int index,V1alpha2ResourceHandle item) { - if (this.resourceHandles == null) {this.resourceHandles = new ArrayList();} - V1alpha2ResourceHandleBuilder builder = new V1alpha2ResourceHandleBuilder(item); - if (index < 0 || index >= resourceHandles.size()) { _visitables.get("resourceHandles").add(builder); resourceHandles.add(builder); } else { _visitables.get("resourceHandles").set(index, builder); resourceHandles.set(index, builder);} - return (A)this; - } - - public A addToResourceHandles(io.kubernetes.client.openapi.models.V1alpha2ResourceHandle... items) { - if (this.resourceHandles == null) {this.resourceHandles = new ArrayList();} - for (V1alpha2ResourceHandle item : items) {V1alpha2ResourceHandleBuilder builder = new V1alpha2ResourceHandleBuilder(item);_visitables.get("resourceHandles").add(builder);this.resourceHandles.add(builder);} return (A)this; - } - - public A addAllToResourceHandles(Collection items) { - if (this.resourceHandles == null) {this.resourceHandles = new ArrayList();} - for (V1alpha2ResourceHandle item : items) {V1alpha2ResourceHandleBuilder builder = new V1alpha2ResourceHandleBuilder(item);_visitables.get("resourceHandles").add(builder);this.resourceHandles.add(builder);} return (A)this; - } - - public A removeFromResourceHandles(io.kubernetes.client.openapi.models.V1alpha2ResourceHandle... items) { - if (this.resourceHandles == null) return (A)this; - for (V1alpha2ResourceHandle item : items) {V1alpha2ResourceHandleBuilder builder = new V1alpha2ResourceHandleBuilder(item);_visitables.get("resourceHandles").remove(builder); this.resourceHandles.remove(builder);} return (A)this; - } - - public A removeAllFromResourceHandles(Collection items) { - if (this.resourceHandles == null) return (A)this; - for (V1alpha2ResourceHandle item : items) {V1alpha2ResourceHandleBuilder builder = new V1alpha2ResourceHandleBuilder(item);_visitables.get("resourceHandles").remove(builder); this.resourceHandles.remove(builder);} return (A)this; - } - - public A removeMatchingFromResourceHandles(Predicate predicate) { - if (resourceHandles == null) return (A) this; - final Iterator each = resourceHandles.iterator(); - final List visitables = _visitables.get("resourceHandles"); - while (each.hasNext()) { - V1alpha2ResourceHandleBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } - } - return (A)this; - } - - public List buildResourceHandles() { - return this.resourceHandles != null ? build(resourceHandles) : null; - } - - public V1alpha2ResourceHandle buildResourceHandle(int index) { - return this.resourceHandles.get(index).build(); - } - - public V1alpha2ResourceHandle buildFirstResourceHandle() { - return this.resourceHandles.get(0).build(); - } - - public V1alpha2ResourceHandle buildLastResourceHandle() { - return this.resourceHandles.get(resourceHandles.size() - 1).build(); - } - - public V1alpha2ResourceHandle buildMatchingResourceHandle(Predicate predicate) { - for (V1alpha2ResourceHandleBuilder item : resourceHandles) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; - } - - public boolean hasMatchingResourceHandle(Predicate predicate) { - for (V1alpha2ResourceHandleBuilder item : resourceHandles) { - if (predicate.test(item)) { - return true; - } - } - return false; - } - - public A withResourceHandles(List resourceHandles) { - if (this.resourceHandles != null) { - this._visitables.get("resourceHandles").clear(); - } - if (resourceHandles != null) { - this.resourceHandles = new ArrayList(); - for (V1alpha2ResourceHandle item : resourceHandles) { - this.addToResourceHandles(item); - } - } else { - this.resourceHandles = null; - } - return (A) this; - } - - public A withResourceHandles(io.kubernetes.client.openapi.models.V1alpha2ResourceHandle... resourceHandles) { - if (this.resourceHandles != null) { - this.resourceHandles.clear(); - _visitables.remove("resourceHandles"); - } - if (resourceHandles != null) { - for (V1alpha2ResourceHandle item : resourceHandles) { - this.addToResourceHandles(item); - } - } - return (A) this; - } - - public boolean hasResourceHandles() { - return this.resourceHandles != null && !this.resourceHandles.isEmpty(); - } - - public ResourceHandlesNested addNewResourceHandle() { - return new ResourceHandlesNested(-1, null); - } - - public ResourceHandlesNested addNewResourceHandleLike(V1alpha2ResourceHandle item) { - return new ResourceHandlesNested(-1, item); - } - - public ResourceHandlesNested setNewResourceHandleLike(int index,V1alpha2ResourceHandle item) { - return new ResourceHandlesNested(index, item); - } - - public ResourceHandlesNested editResourceHandle(int index) { - if (resourceHandles.size() <= index) throw new RuntimeException("Can't edit resourceHandles. Index exceeds size."); - return setNewResourceHandleLike(index, buildResourceHandle(index)); - } - - public ResourceHandlesNested editFirstResourceHandle() { - if (resourceHandles.size() == 0) throw new RuntimeException("Can't edit first resourceHandles. The list is empty."); - return setNewResourceHandleLike(0, buildResourceHandle(0)); - } - - public ResourceHandlesNested editLastResourceHandle() { - int index = resourceHandles.size() - 1; - if (index < 0) throw new RuntimeException("Can't edit last resourceHandles. The list is empty."); - return setNewResourceHandleLike(index, buildResourceHandle(index)); - } - - public ResourceHandlesNested editMatchingResourceHandle(Predicate predicate) { - int index = -1; - for (int i=0;i extends V1NodeSelectorFluent> implements Nested{ - AvailableOnNodesNested(V1NodeSelector item) { - this.builder = new V1NodeSelectorBuilder(this, item); - } - V1NodeSelectorBuilder builder; - - public N and() { - return (N) V1alpha2AllocationResultFluent.this.withAvailableOnNodes(builder.build()); - } - - public N endAvailableOnNodes() { - return and(); - } - - - } - public class ResourceHandlesNested extends V1alpha2ResourceHandleFluent> implements Nested{ - ResourceHandlesNested(int index,V1alpha2ResourceHandle item) { - this.index = index; - this.builder = new V1alpha2ResourceHandleBuilder(this, item); - } - V1alpha2ResourceHandleBuilder builder; - int index; - - public N and() { - return (N) V1alpha2AllocationResultFluent.this.setToResourceHandles(index,builder.build()); - } - - public N endResourceHandle() { - return and(); - } - - - } - -} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2LeaseCandidateBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2LeaseCandidateBuilder.java new file mode 100644 index 0000000000..4459598143 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2LeaseCandidateBuilder.java @@ -0,0 +1,34 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +public class V1alpha2LeaseCandidateBuilder extends V1alpha2LeaseCandidateFluent implements VisitableBuilder{ + public V1alpha2LeaseCandidateBuilder() { + this(new V1alpha2LeaseCandidate()); + } + + public V1alpha2LeaseCandidateBuilder(V1alpha2LeaseCandidateFluent fluent) { + this(fluent, new V1alpha2LeaseCandidate()); + } + + public V1alpha2LeaseCandidateBuilder(V1alpha2LeaseCandidateFluent fluent,V1alpha2LeaseCandidate instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1alpha2LeaseCandidateBuilder(V1alpha2LeaseCandidate instance) { + this.fluent = this; + this.copyInstance(instance); + } + V1alpha2LeaseCandidateFluent fluent; + + public V1alpha2LeaseCandidate build() { + V1alpha2LeaseCandidate buildable = new V1alpha2LeaseCandidate(); + buildable.setApiVersion(fluent.getApiVersion()); + buildable.setKind(fluent.getKind()); + buildable.setMetadata(fluent.buildMetadata()); + buildable.setSpec(fluent.buildSpec()); + return buildable; + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2LeaseCandidateFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2LeaseCandidateFluent.java new file mode 100644 index 0000000000..9486f7e638 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2LeaseCandidateFluent.java @@ -0,0 +1,200 @@ +package io.kubernetes.client.openapi.models; + +import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.Nested; +import java.lang.String; +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Object; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1alpha2LeaseCandidateFluent> extends BaseFluent{ + public V1alpha2LeaseCandidateFluent() { + } + + public V1alpha2LeaseCandidateFluent(V1alpha2LeaseCandidate instance) { + this.copyInstance(instance); + } + private String apiVersion; + private String kind; + private V1ObjectMetaBuilder metadata; + private V1alpha2LeaseCandidateSpecBuilder spec; + + protected void copyInstance(V1alpha2LeaseCandidate instance) { + instance = (instance != null ? instance : new V1alpha2LeaseCandidate()); + if (instance != null) { + this.withApiVersion(instance.getApiVersion()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); + this.withSpec(instance.getSpec()); + } + } + + public String getApiVersion() { + return this.apiVersion; + } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + + public boolean hasApiVersion() { + return this.apiVersion != null; + } + + public String getKind() { + return this.kind; + } + + public A withKind(String kind) { + this.kind = kind; + return (A) this; + } + + public boolean hasKind() { + return this.kind != null; + } + + public V1ObjectMeta buildMetadata() { + return this.metadata != null ? this.metadata.build() : null; + } + + public A withMetadata(V1ObjectMeta metadata) { + this._visitables.remove("metadata"); + if (metadata != null) { + this.metadata = new V1ObjectMetaBuilder(metadata); + this._visitables.get("metadata").add(this.metadata); + } else { + this.metadata = null; + this._visitables.get("metadata").remove(this.metadata); + } + return (A) this; + } + + public boolean hasMetadata() { + return this.metadata != null; + } + + public MetadataNested withNewMetadata() { + return new MetadataNested(null); + } + + public MetadataNested withNewMetadataLike(V1ObjectMeta item) { + return new MetadataNested(item); + } + + public MetadataNested editMetadata() { + return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(null)); + } + + public MetadataNested editOrNewMetadata() { + return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(new V1ObjectMetaBuilder().build())); + } + + public MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { + return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(item)); + } + + public V1alpha2LeaseCandidateSpec buildSpec() { + return this.spec != null ? this.spec.build() : null; + } + + public A withSpec(V1alpha2LeaseCandidateSpec spec) { + this._visitables.remove("spec"); + if (spec != null) { + this.spec = new V1alpha2LeaseCandidateSpecBuilder(spec); + this._visitables.get("spec").add(this.spec); + } else { + this.spec = null; + this._visitables.get("spec").remove(this.spec); + } + return (A) this; + } + + public boolean hasSpec() { + return this.spec != null; + } + + public SpecNested withNewSpec() { + return new SpecNested(null); + } + + public SpecNested withNewSpecLike(V1alpha2LeaseCandidateSpec item) { + return new SpecNested(item); + } + + public SpecNested editSpec() { + return withNewSpecLike(java.util.Optional.ofNullable(buildSpec()).orElse(null)); + } + + public SpecNested editOrNewSpec() { + return withNewSpecLike(java.util.Optional.ofNullable(buildSpec()).orElse(new V1alpha2LeaseCandidateSpecBuilder().build())); + } + + public SpecNested editOrNewSpecLike(V1alpha2LeaseCandidateSpec item) { + return withNewSpecLike(java.util.Optional.ofNullable(buildSpec()).orElse(item)); + } + + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + if (!super.equals(o)) return false; + V1alpha2LeaseCandidateFluent that = (V1alpha2LeaseCandidateFluent) o; + if (!java.util.Objects.equals(apiVersion, that.apiVersion)) return false; + if (!java.util.Objects.equals(kind, that.kind)) return false; + if (!java.util.Objects.equals(metadata, that.metadata)) return false; + if (!java.util.Objects.equals(spec, that.spec)) return false; + return true; + } + + public int hashCode() { + return java.util.Objects.hash(apiVersion, kind, metadata, spec, super.hashCode()); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (apiVersion != null) { sb.append("apiVersion:"); sb.append(apiVersion + ","); } + if (kind != null) { sb.append("kind:"); sb.append(kind + ","); } + if (metadata != null) { sb.append("metadata:"); sb.append(metadata + ","); } + if (spec != null) { sb.append("spec:"); sb.append(spec); } + sb.append("}"); + return sb.toString(); + } + public class MetadataNested extends V1ObjectMetaFluent> implements Nested{ + MetadataNested(V1ObjectMeta item) { + this.builder = new V1ObjectMetaBuilder(this, item); + } + V1ObjectMetaBuilder builder; + + public N and() { + return (N) V1alpha2LeaseCandidateFluent.this.withMetadata(builder.build()); + } + + public N endMetadata() { + return and(); + } + + + } + public class SpecNested extends V1alpha2LeaseCandidateSpecFluent> implements Nested{ + SpecNested(V1alpha2LeaseCandidateSpec item) { + this.builder = new V1alpha2LeaseCandidateSpecBuilder(this, item); + } + V1alpha2LeaseCandidateSpecBuilder builder; + + public N and() { + return (N) V1alpha2LeaseCandidateFluent.this.withSpec(builder.build()); + } + + public N endSpec() { + return and(); + } + + + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2LeaseCandidateListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2LeaseCandidateListBuilder.java new file mode 100644 index 0000000000..dc1c8e213c --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2LeaseCandidateListBuilder.java @@ -0,0 +1,34 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +public class V1alpha2LeaseCandidateListBuilder extends V1alpha2LeaseCandidateListFluent implements VisitableBuilder{ + public V1alpha2LeaseCandidateListBuilder() { + this(new V1alpha2LeaseCandidateList()); + } + + public V1alpha2LeaseCandidateListBuilder(V1alpha2LeaseCandidateListFluent fluent) { + this(fluent, new V1alpha2LeaseCandidateList()); + } + + public V1alpha2LeaseCandidateListBuilder(V1alpha2LeaseCandidateListFluent fluent,V1alpha2LeaseCandidateList instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1alpha2LeaseCandidateListBuilder(V1alpha2LeaseCandidateList instance) { + this.fluent = this; + this.copyInstance(instance); + } + V1alpha2LeaseCandidateListFluent fluent; + + public V1alpha2LeaseCandidateList build() { + V1alpha2LeaseCandidateList buildable = new V1alpha2LeaseCandidateList(); + buildable.setApiVersion(fluent.getApiVersion()); + buildable.setItems(fluent.buildItems()); + buildable.setKind(fluent.getKind()); + buildable.setMetadata(fluent.buildMetadata()); + return buildable; + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2LeaseCandidateListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2LeaseCandidateListFluent.java new file mode 100644 index 0000000000..246b1f61a6 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2LeaseCandidateListFluent.java @@ -0,0 +1,331 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.Nested; +import java.util.ArrayList; +import java.lang.String; +import java.util.function.Predicate; +import io.kubernetes.client.fluent.BaseFluent; +import java.util.Iterator; +import java.util.Collection; +import java.lang.Object; +import java.util.List; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1alpha2LeaseCandidateListFluent> extends BaseFluent{ + public V1alpha2LeaseCandidateListFluent() { + } + + public V1alpha2LeaseCandidateListFluent(V1alpha2LeaseCandidateList instance) { + this.copyInstance(instance); + } + private String apiVersion; + private ArrayList items; + private String kind; + private V1ListMetaBuilder metadata; + + protected void copyInstance(V1alpha2LeaseCandidateList instance) { + instance = (instance != null ? instance : new V1alpha2LeaseCandidateList()); + if (instance != null) { + this.withApiVersion(instance.getApiVersion()); + this.withItems(instance.getItems()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); + } + } + + public String getApiVersion() { + return this.apiVersion; + } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + + public boolean hasApiVersion() { + return this.apiVersion != null; + } + + public A addToItems(int index,V1alpha2LeaseCandidate item) { + if (this.items == null) {this.items = new ArrayList();} + V1alpha2LeaseCandidateBuilder builder = new V1alpha2LeaseCandidateBuilder(item); + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.add(index, builder); + } + return (A)this; + } + + public A setToItems(int index,V1alpha2LeaseCandidate item) { + if (this.items == null) {this.items = new ArrayList();} + V1alpha2LeaseCandidateBuilder builder = new V1alpha2LeaseCandidateBuilder(item); + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.set(index, builder); + } + return (A)this; + } + + public A addToItems(io.kubernetes.client.openapi.models.V1alpha2LeaseCandidate... items) { + if (this.items == null) {this.items = new ArrayList();} + for (V1alpha2LeaseCandidate item : items) {V1alpha2LeaseCandidateBuilder builder = new V1alpha2LeaseCandidateBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; + } + + public A addAllToItems(Collection items) { + if (this.items == null) {this.items = new ArrayList();} + for (V1alpha2LeaseCandidate item : items) {V1alpha2LeaseCandidateBuilder builder = new V1alpha2LeaseCandidateBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; + } + + public A removeFromItems(io.kubernetes.client.openapi.models.V1alpha2LeaseCandidate... items) { + if (this.items == null) return (A)this; + for (V1alpha2LeaseCandidate item : items) {V1alpha2LeaseCandidateBuilder builder = new V1alpha2LeaseCandidateBuilder(item);_visitables.get("items").remove(builder); this.items.remove(builder);} return (A)this; + } + + public A removeAllFromItems(Collection items) { + if (this.items == null) return (A)this; + for (V1alpha2LeaseCandidate item : items) {V1alpha2LeaseCandidateBuilder builder = new V1alpha2LeaseCandidateBuilder(item);_visitables.get("items").remove(builder); this.items.remove(builder);} return (A)this; + } + + public A removeMatchingFromItems(Predicate predicate) { + if (items == null) return (A) this; + final Iterator each = items.iterator(); + final List visitables = _visitables.get("items"); + while (each.hasNext()) { + V1alpha2LeaseCandidateBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A)this; + } + + public List buildItems() { + return this.items != null ? build(items) : null; + } + + public V1alpha2LeaseCandidate buildItem(int index) { + return this.items.get(index).build(); + } + + public V1alpha2LeaseCandidate buildFirstItem() { + return this.items.get(0).build(); + } + + public V1alpha2LeaseCandidate buildLastItem() { + return this.items.get(items.size() - 1).build(); + } + + public V1alpha2LeaseCandidate buildMatchingItem(Predicate predicate) { + for (V1alpha2LeaseCandidateBuilder item : items) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; + } + + public boolean hasMatchingItem(Predicate predicate) { + for (V1alpha2LeaseCandidateBuilder item : items) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public A withItems(List items) { + if (this.items != null) { + this._visitables.get("items").clear(); + } + if (items != null) { + this.items = new ArrayList(); + for (V1alpha2LeaseCandidate item : items) { + this.addToItems(item); + } + } else { + this.items = null; + } + return (A) this; + } + + public A withItems(io.kubernetes.client.openapi.models.V1alpha2LeaseCandidate... items) { + if (this.items != null) { + this.items.clear(); + _visitables.remove("items"); + } + if (items != null) { + for (V1alpha2LeaseCandidate item : items) { + this.addToItems(item); + } + } + return (A) this; + } + + public boolean hasItems() { + return this.items != null && !this.items.isEmpty(); + } + + public ItemsNested addNewItem() { + return new ItemsNested(-1, null); + } + + public ItemsNested addNewItemLike(V1alpha2LeaseCandidate item) { + return new ItemsNested(-1, item); + } + + public ItemsNested setNewItemLike(int index,V1alpha2LeaseCandidate item) { + return new ItemsNested(index, item); + } + + public ItemsNested editItem(int index) { + if (items.size() <= index) throw new RuntimeException("Can't edit items. Index exceeds size."); + return setNewItemLike(index, buildItem(index)); + } + + public ItemsNested editFirstItem() { + if (items.size() == 0) throw new RuntimeException("Can't edit first items. The list is empty."); + return setNewItemLike(0, buildItem(0)); + } + + public ItemsNested editLastItem() { + int index = items.size() - 1; + if (index < 0) throw new RuntimeException("Can't edit last items. The list is empty."); + return setNewItemLike(index, buildItem(index)); + } + + public ItemsNested editMatchingItem(Predicate predicate) { + int index = -1; + for (int i=0;i withNewMetadata() { + return new MetadataNested(null); + } + + public MetadataNested withNewMetadataLike(V1ListMeta item) { + return new MetadataNested(item); + } + + public MetadataNested editMetadata() { + return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(null)); + } + + public MetadataNested editOrNewMetadata() { + return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(new V1ListMetaBuilder().build())); + } + + public MetadataNested editOrNewMetadataLike(V1ListMeta item) { + return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(item)); + } + + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + if (!super.equals(o)) return false; + V1alpha2LeaseCandidateListFluent that = (V1alpha2LeaseCandidateListFluent) o; + if (!java.util.Objects.equals(apiVersion, that.apiVersion)) return false; + if (!java.util.Objects.equals(items, that.items)) return false; + if (!java.util.Objects.equals(kind, that.kind)) return false; + if (!java.util.Objects.equals(metadata, that.metadata)) return false; + return true; + } + + public int hashCode() { + return java.util.Objects.hash(apiVersion, items, kind, metadata, super.hashCode()); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (apiVersion != null) { sb.append("apiVersion:"); sb.append(apiVersion + ","); } + if (items != null && !items.isEmpty()) { sb.append("items:"); sb.append(items + ","); } + if (kind != null) { sb.append("kind:"); sb.append(kind + ","); } + if (metadata != null) { sb.append("metadata:"); sb.append(metadata); } + sb.append("}"); + return sb.toString(); + } + public class ItemsNested extends V1alpha2LeaseCandidateFluent> implements Nested{ + ItemsNested(int index,V1alpha2LeaseCandidate item) { + this.index = index; + this.builder = new V1alpha2LeaseCandidateBuilder(this, item); + } + V1alpha2LeaseCandidateBuilder builder; + int index; + + public N and() { + return (N) V1alpha2LeaseCandidateListFluent.this.setToItems(index,builder.build()); + } + + public N endItem() { + return and(); + } + + + } + public class MetadataNested extends V1ListMetaFluent> implements Nested{ + MetadataNested(V1ListMeta item) { + this.builder = new V1ListMetaBuilder(this, item); + } + V1ListMetaBuilder builder; + + public N and() { + return (N) V1alpha2LeaseCandidateListFluent.this.withMetadata(builder.build()); + } + + public N endMetadata() { + return and(); + } + + + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2LeaseCandidateSpecBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2LeaseCandidateSpecBuilder.java new file mode 100644 index 0000000000..394857042b --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2LeaseCandidateSpecBuilder.java @@ -0,0 +1,36 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +public class V1alpha2LeaseCandidateSpecBuilder extends V1alpha2LeaseCandidateSpecFluent implements VisitableBuilder{ + public V1alpha2LeaseCandidateSpecBuilder() { + this(new V1alpha2LeaseCandidateSpec()); + } + + public V1alpha2LeaseCandidateSpecBuilder(V1alpha2LeaseCandidateSpecFluent fluent) { + this(fluent, new V1alpha2LeaseCandidateSpec()); + } + + public V1alpha2LeaseCandidateSpecBuilder(V1alpha2LeaseCandidateSpecFluent fluent,V1alpha2LeaseCandidateSpec instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1alpha2LeaseCandidateSpecBuilder(V1alpha2LeaseCandidateSpec instance) { + this.fluent = this; + this.copyInstance(instance); + } + V1alpha2LeaseCandidateSpecFluent fluent; + + public V1alpha2LeaseCandidateSpec build() { + V1alpha2LeaseCandidateSpec buildable = new V1alpha2LeaseCandidateSpec(); + buildable.setBinaryVersion(fluent.getBinaryVersion()); + buildable.setEmulationVersion(fluent.getEmulationVersion()); + buildable.setLeaseName(fluent.getLeaseName()); + buildable.setPingTime(fluent.getPingTime()); + buildable.setRenewTime(fluent.getRenewTime()); + buildable.setStrategy(fluent.getStrategy()); + return buildable; + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2LeaseCandidateSpecFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2LeaseCandidateSpecFluent.java new file mode 100644 index 0000000000..4160dbbef7 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2LeaseCandidateSpecFluent.java @@ -0,0 +1,149 @@ +package io.kubernetes.client.openapi.models; + +import java.time.OffsetDateTime; +import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Object; +import java.lang.String; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1alpha2LeaseCandidateSpecFluent> extends BaseFluent{ + public V1alpha2LeaseCandidateSpecFluent() { + } + + public V1alpha2LeaseCandidateSpecFluent(V1alpha2LeaseCandidateSpec instance) { + this.copyInstance(instance); + } + private String binaryVersion; + private String emulationVersion; + private String leaseName; + private OffsetDateTime pingTime; + private OffsetDateTime renewTime; + private String strategy; + + protected void copyInstance(V1alpha2LeaseCandidateSpec instance) { + instance = (instance != null ? instance : new V1alpha2LeaseCandidateSpec()); + if (instance != null) { + this.withBinaryVersion(instance.getBinaryVersion()); + this.withEmulationVersion(instance.getEmulationVersion()); + this.withLeaseName(instance.getLeaseName()); + this.withPingTime(instance.getPingTime()); + this.withRenewTime(instance.getRenewTime()); + this.withStrategy(instance.getStrategy()); + } + } + + public String getBinaryVersion() { + return this.binaryVersion; + } + + public A withBinaryVersion(String binaryVersion) { + this.binaryVersion = binaryVersion; + return (A) this; + } + + public boolean hasBinaryVersion() { + return this.binaryVersion != null; + } + + public String getEmulationVersion() { + return this.emulationVersion; + } + + public A withEmulationVersion(String emulationVersion) { + this.emulationVersion = emulationVersion; + return (A) this; + } + + public boolean hasEmulationVersion() { + return this.emulationVersion != null; + } + + public String getLeaseName() { + return this.leaseName; + } + + public A withLeaseName(String leaseName) { + this.leaseName = leaseName; + return (A) this; + } + + public boolean hasLeaseName() { + return this.leaseName != null; + } + + public OffsetDateTime getPingTime() { + return this.pingTime; + } + + public A withPingTime(OffsetDateTime pingTime) { + this.pingTime = pingTime; + return (A) this; + } + + public boolean hasPingTime() { + return this.pingTime != null; + } + + public OffsetDateTime getRenewTime() { + return this.renewTime; + } + + public A withRenewTime(OffsetDateTime renewTime) { + this.renewTime = renewTime; + return (A) this; + } + + public boolean hasRenewTime() { + return this.renewTime != null; + } + + public String getStrategy() { + return this.strategy; + } + + public A withStrategy(String strategy) { + this.strategy = strategy; + return (A) this; + } + + public boolean hasStrategy() { + return this.strategy != null; + } + + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + if (!super.equals(o)) return false; + V1alpha2LeaseCandidateSpecFluent that = (V1alpha2LeaseCandidateSpecFluent) o; + if (!java.util.Objects.equals(binaryVersion, that.binaryVersion)) return false; + if (!java.util.Objects.equals(emulationVersion, that.emulationVersion)) return false; + if (!java.util.Objects.equals(leaseName, that.leaseName)) return false; + if (!java.util.Objects.equals(pingTime, that.pingTime)) return false; + if (!java.util.Objects.equals(renewTime, that.renewTime)) return false; + if (!java.util.Objects.equals(strategy, that.strategy)) return false; + return true; + } + + public int hashCode() { + return java.util.Objects.hash(binaryVersion, emulationVersion, leaseName, pingTime, renewTime, strategy, super.hashCode()); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (binaryVersion != null) { sb.append("binaryVersion:"); sb.append(binaryVersion + ","); } + if (emulationVersion != null) { sb.append("emulationVersion:"); sb.append(emulationVersion + ","); } + if (leaseName != null) { sb.append("leaseName:"); sb.append(leaseName + ","); } + if (pingTime != null) { sb.append("pingTime:"); sb.append(pingTime + ","); } + if (renewTime != null) { sb.append("renewTime:"); sb.append(renewTime + ","); } + if (strategy != null) { sb.append("strategy:"); sb.append(strategy); } + sb.append("}"); + return sb.toString(); + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2PodSchedulingContextBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2PodSchedulingContextBuilder.java deleted file mode 100644 index deb7dc270d..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2PodSchedulingContextBuilder.java +++ /dev/null @@ -1,35 +0,0 @@ -package io.kubernetes.client.openapi.models; - -import io.kubernetes.client.fluent.VisitableBuilder; -public class V1alpha2PodSchedulingContextBuilder extends V1alpha2PodSchedulingContextFluent implements VisitableBuilder{ - public V1alpha2PodSchedulingContextBuilder() { - this(new V1alpha2PodSchedulingContext()); - } - - public V1alpha2PodSchedulingContextBuilder(V1alpha2PodSchedulingContextFluent fluent) { - this(fluent, new V1alpha2PodSchedulingContext()); - } - - public V1alpha2PodSchedulingContextBuilder(V1alpha2PodSchedulingContextFluent fluent,V1alpha2PodSchedulingContext instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - - public V1alpha2PodSchedulingContextBuilder(V1alpha2PodSchedulingContext instance) { - this.fluent = this; - this.copyInstance(instance); - } - V1alpha2PodSchedulingContextFluent fluent; - - public V1alpha2PodSchedulingContext build() { - V1alpha2PodSchedulingContext buildable = new V1alpha2PodSchedulingContext(); - buildable.setApiVersion(fluent.getApiVersion()); - buildable.setKind(fluent.getKind()); - buildable.setMetadata(fluent.buildMetadata()); - buildable.setSpec(fluent.buildSpec()); - buildable.setStatus(fluent.buildStatus()); - return buildable; - } - - -} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2PodSchedulingContextFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2PodSchedulingContextFluent.java deleted file mode 100644 index f298a47f98..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2PodSchedulingContextFluent.java +++ /dev/null @@ -1,260 +0,0 @@ -package io.kubernetes.client.openapi.models; - -import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.Nested; -import java.lang.String; -import io.kubernetes.client.fluent.BaseFluent; -import java.lang.Object; - -/** - * Generated - */ -@SuppressWarnings("unchecked") -public class V1alpha2PodSchedulingContextFluent> extends BaseFluent{ - public V1alpha2PodSchedulingContextFluent() { - } - - public V1alpha2PodSchedulingContextFluent(V1alpha2PodSchedulingContext instance) { - this.copyInstance(instance); - } - private String apiVersion; - private String kind; - private V1ObjectMetaBuilder metadata; - private V1alpha2PodSchedulingContextSpecBuilder spec; - private V1alpha2PodSchedulingContextStatusBuilder status; - - protected void copyInstance(V1alpha2PodSchedulingContext instance) { - instance = (instance != null ? instance : new V1alpha2PodSchedulingContext()); - if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withKind(instance.getKind()); - this.withMetadata(instance.getMetadata()); - this.withSpec(instance.getSpec()); - this.withStatus(instance.getStatus()); - } - } - - public String getApiVersion() { - return this.apiVersion; - } - - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; - } - - public boolean hasApiVersion() { - return this.apiVersion != null; - } - - public String getKind() { - return this.kind; - } - - public A withKind(String kind) { - this.kind = kind; - return (A) this; - } - - public boolean hasKind() { - return this.kind != null; - } - - public V1ObjectMeta buildMetadata() { - return this.metadata != null ? this.metadata.build() : null; - } - - public A withMetadata(V1ObjectMeta metadata) { - this._visitables.remove("metadata"); - if (metadata != null) { - this.metadata = new V1ObjectMetaBuilder(metadata); - this._visitables.get("metadata").add(this.metadata); - } else { - this.metadata = null; - this._visitables.get("metadata").remove(this.metadata); - } - return (A) this; - } - - public boolean hasMetadata() { - return this.metadata != null; - } - - public MetadataNested withNewMetadata() { - return new MetadataNested(null); - } - - public MetadataNested withNewMetadataLike(V1ObjectMeta item) { - return new MetadataNested(item); - } - - public MetadataNested editMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(null)); - } - - public MetadataNested editOrNewMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(new V1ObjectMetaBuilder().build())); - } - - public MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(item)); - } - - public V1alpha2PodSchedulingContextSpec buildSpec() { - return this.spec != null ? this.spec.build() : null; - } - - public A withSpec(V1alpha2PodSchedulingContextSpec spec) { - this._visitables.remove("spec"); - if (spec != null) { - this.spec = new V1alpha2PodSchedulingContextSpecBuilder(spec); - this._visitables.get("spec").add(this.spec); - } else { - this.spec = null; - this._visitables.get("spec").remove(this.spec); - } - return (A) this; - } - - public boolean hasSpec() { - return this.spec != null; - } - - public SpecNested withNewSpec() { - return new SpecNested(null); - } - - public SpecNested withNewSpecLike(V1alpha2PodSchedulingContextSpec item) { - return new SpecNested(item); - } - - public SpecNested editSpec() { - return withNewSpecLike(java.util.Optional.ofNullable(buildSpec()).orElse(null)); - } - - public SpecNested editOrNewSpec() { - return withNewSpecLike(java.util.Optional.ofNullable(buildSpec()).orElse(new V1alpha2PodSchedulingContextSpecBuilder().build())); - } - - public SpecNested editOrNewSpecLike(V1alpha2PodSchedulingContextSpec item) { - return withNewSpecLike(java.util.Optional.ofNullable(buildSpec()).orElse(item)); - } - - public V1alpha2PodSchedulingContextStatus buildStatus() { - return this.status != null ? this.status.build() : null; - } - - public A withStatus(V1alpha2PodSchedulingContextStatus status) { - this._visitables.remove("status"); - if (status != null) { - this.status = new V1alpha2PodSchedulingContextStatusBuilder(status); - this._visitables.get("status").add(this.status); - } else { - this.status = null; - this._visitables.get("status").remove(this.status); - } - return (A) this; - } - - public boolean hasStatus() { - return this.status != null; - } - - public StatusNested withNewStatus() { - return new StatusNested(null); - } - - public StatusNested withNewStatusLike(V1alpha2PodSchedulingContextStatus item) { - return new StatusNested(item); - } - - public StatusNested editStatus() { - return withNewStatusLike(java.util.Optional.ofNullable(buildStatus()).orElse(null)); - } - - public StatusNested editOrNewStatus() { - return withNewStatusLike(java.util.Optional.ofNullable(buildStatus()).orElse(new V1alpha2PodSchedulingContextStatusBuilder().build())); - } - - public StatusNested editOrNewStatusLike(V1alpha2PodSchedulingContextStatus item) { - return withNewStatusLike(java.util.Optional.ofNullable(buildStatus()).orElse(item)); - } - - public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; - V1alpha2PodSchedulingContextFluent that = (V1alpha2PodSchedulingContextFluent) o; - if (!java.util.Objects.equals(apiVersion, that.apiVersion)) return false; - if (!java.util.Objects.equals(kind, that.kind)) return false; - if (!java.util.Objects.equals(metadata, that.metadata)) return false; - if (!java.util.Objects.equals(spec, that.spec)) return false; - if (!java.util.Objects.equals(status, that.status)) return false; - return true; - } - - public int hashCode() { - return java.util.Objects.hash(apiVersion, kind, metadata, spec, status, super.hashCode()); - } - - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("{"); - if (apiVersion != null) { sb.append("apiVersion:"); sb.append(apiVersion + ","); } - if (kind != null) { sb.append("kind:"); sb.append(kind + ","); } - if (metadata != null) { sb.append("metadata:"); sb.append(metadata + ","); } - if (spec != null) { sb.append("spec:"); sb.append(spec + ","); } - if (status != null) { sb.append("status:"); sb.append(status); } - sb.append("}"); - return sb.toString(); - } - public class MetadataNested extends V1ObjectMetaFluent> implements Nested{ - MetadataNested(V1ObjectMeta item) { - this.builder = new V1ObjectMetaBuilder(this, item); - } - V1ObjectMetaBuilder builder; - - public N and() { - return (N) V1alpha2PodSchedulingContextFluent.this.withMetadata(builder.build()); - } - - public N endMetadata() { - return and(); - } - - - } - public class SpecNested extends V1alpha2PodSchedulingContextSpecFluent> implements Nested{ - SpecNested(V1alpha2PodSchedulingContextSpec item) { - this.builder = new V1alpha2PodSchedulingContextSpecBuilder(this, item); - } - V1alpha2PodSchedulingContextSpecBuilder builder; - - public N and() { - return (N) V1alpha2PodSchedulingContextFluent.this.withSpec(builder.build()); - } - - public N endSpec() { - return and(); - } - - - } - public class StatusNested extends V1alpha2PodSchedulingContextStatusFluent> implements Nested{ - StatusNested(V1alpha2PodSchedulingContextStatus item) { - this.builder = new V1alpha2PodSchedulingContextStatusBuilder(this, item); - } - V1alpha2PodSchedulingContextStatusBuilder builder; - - public N and() { - return (N) V1alpha2PodSchedulingContextFluent.this.withStatus(builder.build()); - } - - public N endStatus() { - return and(); - } - - - } - -} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2PodSchedulingContextListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2PodSchedulingContextListBuilder.java deleted file mode 100644 index 952a6586bf..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2PodSchedulingContextListBuilder.java +++ /dev/null @@ -1,34 +0,0 @@ -package io.kubernetes.client.openapi.models; - -import io.kubernetes.client.fluent.VisitableBuilder; -public class V1alpha2PodSchedulingContextListBuilder extends V1alpha2PodSchedulingContextListFluent implements VisitableBuilder{ - public V1alpha2PodSchedulingContextListBuilder() { - this(new V1alpha2PodSchedulingContextList()); - } - - public V1alpha2PodSchedulingContextListBuilder(V1alpha2PodSchedulingContextListFluent fluent) { - this(fluent, new V1alpha2PodSchedulingContextList()); - } - - public V1alpha2PodSchedulingContextListBuilder(V1alpha2PodSchedulingContextListFluent fluent,V1alpha2PodSchedulingContextList instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - - public V1alpha2PodSchedulingContextListBuilder(V1alpha2PodSchedulingContextList instance) { - this.fluent = this; - this.copyInstance(instance); - } - V1alpha2PodSchedulingContextListFluent fluent; - - public V1alpha2PodSchedulingContextList build() { - V1alpha2PodSchedulingContextList buildable = new V1alpha2PodSchedulingContextList(); - buildable.setApiVersion(fluent.getApiVersion()); - buildable.setItems(fluent.buildItems()); - buildable.setKind(fluent.getKind()); - buildable.setMetadata(fluent.buildMetadata()); - return buildable; - } - - -} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2PodSchedulingContextListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2PodSchedulingContextListFluent.java deleted file mode 100644 index 01cf27b82f..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2PodSchedulingContextListFluent.java +++ /dev/null @@ -1,319 +0,0 @@ -package io.kubernetes.client.openapi.models; - -import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.Nested; -import java.util.ArrayList; -import java.lang.String; -import java.util.function.Predicate; -import io.kubernetes.client.fluent.BaseFluent; -import java.util.Iterator; -import java.util.Collection; -import java.lang.Object; -import java.util.List; - -/** - * Generated - */ -@SuppressWarnings("unchecked") -public class V1alpha2PodSchedulingContextListFluent> extends BaseFluent{ - public V1alpha2PodSchedulingContextListFluent() { - } - - public V1alpha2PodSchedulingContextListFluent(V1alpha2PodSchedulingContextList instance) { - this.copyInstance(instance); - } - private String apiVersion; - private ArrayList items; - private String kind; - private V1ListMetaBuilder metadata; - - protected void copyInstance(V1alpha2PodSchedulingContextList instance) { - instance = (instance != null ? instance : new V1alpha2PodSchedulingContextList()); - if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withItems(instance.getItems()); - this.withKind(instance.getKind()); - this.withMetadata(instance.getMetadata()); - } - } - - public String getApiVersion() { - return this.apiVersion; - } - - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; - } - - public boolean hasApiVersion() { - return this.apiVersion != null; - } - - public A addToItems(int index,V1alpha2PodSchedulingContext item) { - if (this.items == null) {this.items = new ArrayList();} - V1alpha2PodSchedulingContextBuilder builder = new V1alpha2PodSchedulingContextBuilder(item); - if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); items.add(builder); } else { _visitables.get("items").add(index, builder); items.add(index, builder);} - return (A)this; - } - - public A setToItems(int index,V1alpha2PodSchedulingContext item) { - if (this.items == null) {this.items = new ArrayList();} - V1alpha2PodSchedulingContextBuilder builder = new V1alpha2PodSchedulingContextBuilder(item); - if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); items.add(builder); } else { _visitables.get("items").set(index, builder); items.set(index, builder);} - return (A)this; - } - - public A addToItems(io.kubernetes.client.openapi.models.V1alpha2PodSchedulingContext... items) { - if (this.items == null) {this.items = new ArrayList();} - for (V1alpha2PodSchedulingContext item : items) {V1alpha2PodSchedulingContextBuilder builder = new V1alpha2PodSchedulingContextBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; - } - - public A addAllToItems(Collection items) { - if (this.items == null) {this.items = new ArrayList();} - for (V1alpha2PodSchedulingContext item : items) {V1alpha2PodSchedulingContextBuilder builder = new V1alpha2PodSchedulingContextBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; - } - - public A removeFromItems(io.kubernetes.client.openapi.models.V1alpha2PodSchedulingContext... items) { - if (this.items == null) return (A)this; - for (V1alpha2PodSchedulingContext item : items) {V1alpha2PodSchedulingContextBuilder builder = new V1alpha2PodSchedulingContextBuilder(item);_visitables.get("items").remove(builder); this.items.remove(builder);} return (A)this; - } - - public A removeAllFromItems(Collection items) { - if (this.items == null) return (A)this; - for (V1alpha2PodSchedulingContext item : items) {V1alpha2PodSchedulingContextBuilder builder = new V1alpha2PodSchedulingContextBuilder(item);_visitables.get("items").remove(builder); this.items.remove(builder);} return (A)this; - } - - public A removeMatchingFromItems(Predicate predicate) { - if (items == null) return (A) this; - final Iterator each = items.iterator(); - final List visitables = _visitables.get("items"); - while (each.hasNext()) { - V1alpha2PodSchedulingContextBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } - } - return (A)this; - } - - public List buildItems() { - return this.items != null ? build(items) : null; - } - - public V1alpha2PodSchedulingContext buildItem(int index) { - return this.items.get(index).build(); - } - - public V1alpha2PodSchedulingContext buildFirstItem() { - return this.items.get(0).build(); - } - - public V1alpha2PodSchedulingContext buildLastItem() { - return this.items.get(items.size() - 1).build(); - } - - public V1alpha2PodSchedulingContext buildMatchingItem(Predicate predicate) { - for (V1alpha2PodSchedulingContextBuilder item : items) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; - } - - public boolean hasMatchingItem(Predicate predicate) { - for (V1alpha2PodSchedulingContextBuilder item : items) { - if (predicate.test(item)) { - return true; - } - } - return false; - } - - public A withItems(List items) { - if (this.items != null) { - this._visitables.get("items").clear(); - } - if (items != null) { - this.items = new ArrayList(); - for (V1alpha2PodSchedulingContext item : items) { - this.addToItems(item); - } - } else { - this.items = null; - } - return (A) this; - } - - public A withItems(io.kubernetes.client.openapi.models.V1alpha2PodSchedulingContext... items) { - if (this.items != null) { - this.items.clear(); - _visitables.remove("items"); - } - if (items != null) { - for (V1alpha2PodSchedulingContext item : items) { - this.addToItems(item); - } - } - return (A) this; - } - - public boolean hasItems() { - return this.items != null && !this.items.isEmpty(); - } - - public ItemsNested addNewItem() { - return new ItemsNested(-1, null); - } - - public ItemsNested addNewItemLike(V1alpha2PodSchedulingContext item) { - return new ItemsNested(-1, item); - } - - public ItemsNested setNewItemLike(int index,V1alpha2PodSchedulingContext item) { - return new ItemsNested(index, item); - } - - public ItemsNested editItem(int index) { - if (items.size() <= index) throw new RuntimeException("Can't edit items. Index exceeds size."); - return setNewItemLike(index, buildItem(index)); - } - - public ItemsNested editFirstItem() { - if (items.size() == 0) throw new RuntimeException("Can't edit first items. The list is empty."); - return setNewItemLike(0, buildItem(0)); - } - - public ItemsNested editLastItem() { - int index = items.size() - 1; - if (index < 0) throw new RuntimeException("Can't edit last items. The list is empty."); - return setNewItemLike(index, buildItem(index)); - } - - public ItemsNested editMatchingItem(Predicate predicate) { - int index = -1; - for (int i=0;i withNewMetadata() { - return new MetadataNested(null); - } - - public MetadataNested withNewMetadataLike(V1ListMeta item) { - return new MetadataNested(item); - } - - public MetadataNested editMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(null)); - } - - public MetadataNested editOrNewMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(new V1ListMetaBuilder().build())); - } - - public MetadataNested editOrNewMetadataLike(V1ListMeta item) { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(item)); - } - - public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; - V1alpha2PodSchedulingContextListFluent that = (V1alpha2PodSchedulingContextListFluent) o; - if (!java.util.Objects.equals(apiVersion, that.apiVersion)) return false; - if (!java.util.Objects.equals(items, that.items)) return false; - if (!java.util.Objects.equals(kind, that.kind)) return false; - if (!java.util.Objects.equals(metadata, that.metadata)) return false; - return true; - } - - public int hashCode() { - return java.util.Objects.hash(apiVersion, items, kind, metadata, super.hashCode()); - } - - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("{"); - if (apiVersion != null) { sb.append("apiVersion:"); sb.append(apiVersion + ","); } - if (items != null && !items.isEmpty()) { sb.append("items:"); sb.append(items + ","); } - if (kind != null) { sb.append("kind:"); sb.append(kind + ","); } - if (metadata != null) { sb.append("metadata:"); sb.append(metadata); } - sb.append("}"); - return sb.toString(); - } - public class ItemsNested extends V1alpha2PodSchedulingContextFluent> implements Nested{ - ItemsNested(int index,V1alpha2PodSchedulingContext item) { - this.index = index; - this.builder = new V1alpha2PodSchedulingContextBuilder(this, item); - } - V1alpha2PodSchedulingContextBuilder builder; - int index; - - public N and() { - return (N) V1alpha2PodSchedulingContextListFluent.this.setToItems(index,builder.build()); - } - - public N endItem() { - return and(); - } - - - } - public class MetadataNested extends V1ListMetaFluent> implements Nested{ - MetadataNested(V1ListMeta item) { - this.builder = new V1ListMetaBuilder(this, item); - } - V1ListMetaBuilder builder; - - public N and() { - return (N) V1alpha2PodSchedulingContextListFluent.this.withMetadata(builder.build()); - } - - public N endMetadata() { - return and(); - } - - - } - -} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2PodSchedulingContextSpecBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2PodSchedulingContextSpecBuilder.java deleted file mode 100644 index 550783476b..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2PodSchedulingContextSpecBuilder.java +++ /dev/null @@ -1,32 +0,0 @@ -package io.kubernetes.client.openapi.models; - -import io.kubernetes.client.fluent.VisitableBuilder; -public class V1alpha2PodSchedulingContextSpecBuilder extends V1alpha2PodSchedulingContextSpecFluent implements VisitableBuilder{ - public V1alpha2PodSchedulingContextSpecBuilder() { - this(new V1alpha2PodSchedulingContextSpec()); - } - - public V1alpha2PodSchedulingContextSpecBuilder(V1alpha2PodSchedulingContextSpecFluent fluent) { - this(fluent, new V1alpha2PodSchedulingContextSpec()); - } - - public V1alpha2PodSchedulingContextSpecBuilder(V1alpha2PodSchedulingContextSpecFluent fluent,V1alpha2PodSchedulingContextSpec instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - - public V1alpha2PodSchedulingContextSpecBuilder(V1alpha2PodSchedulingContextSpec instance) { - this.fluent = this; - this.copyInstance(instance); - } - V1alpha2PodSchedulingContextSpecFluent fluent; - - public V1alpha2PodSchedulingContextSpec build() { - V1alpha2PodSchedulingContextSpec buildable = new V1alpha2PodSchedulingContextSpec(); - buildable.setPotentialNodes(fluent.getPotentialNodes()); - buildable.setSelectedNode(fluent.getSelectedNode()); - return buildable; - } - - -} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2PodSchedulingContextSpecFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2PodSchedulingContextSpecFluent.java deleted file mode 100644 index 97c3043246..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2PodSchedulingContextSpecFluent.java +++ /dev/null @@ -1,165 +0,0 @@ -package io.kubernetes.client.openapi.models; - -import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.BaseFluent; -import java.util.ArrayList; -import java.util.Collection; -import java.lang.Object; -import java.util.List; -import java.lang.String; -import java.util.function.Predicate; - -/** - * Generated - */ -@SuppressWarnings("unchecked") -public class V1alpha2PodSchedulingContextSpecFluent> extends BaseFluent{ - public V1alpha2PodSchedulingContextSpecFluent() { - } - - public V1alpha2PodSchedulingContextSpecFluent(V1alpha2PodSchedulingContextSpec instance) { - this.copyInstance(instance); - } - private List potentialNodes; - private String selectedNode; - - protected void copyInstance(V1alpha2PodSchedulingContextSpec instance) { - instance = (instance != null ? instance : new V1alpha2PodSchedulingContextSpec()); - if (instance != null) { - this.withPotentialNodes(instance.getPotentialNodes()); - this.withSelectedNode(instance.getSelectedNode()); - } - } - - public A addToPotentialNodes(int index,String item) { - if (this.potentialNodes == null) {this.potentialNodes = new ArrayList();} - this.potentialNodes.add(index, item); - return (A)this; - } - - public A setToPotentialNodes(int index,String item) { - if (this.potentialNodes == null) {this.potentialNodes = new ArrayList();} - this.potentialNodes.set(index, item); return (A)this; - } - - public A addToPotentialNodes(java.lang.String... items) { - if (this.potentialNodes == null) {this.potentialNodes = new ArrayList();} - for (String item : items) {this.potentialNodes.add(item);} return (A)this; - } - - public A addAllToPotentialNodes(Collection items) { - if (this.potentialNodes == null) {this.potentialNodes = new ArrayList();} - for (String item : items) {this.potentialNodes.add(item);} return (A)this; - } - - public A removeFromPotentialNodes(java.lang.String... items) { - if (this.potentialNodes == null) return (A)this; - for (String item : items) { this.potentialNodes.remove(item);} return (A)this; - } - - public A removeAllFromPotentialNodes(Collection items) { - if (this.potentialNodes == null) return (A)this; - for (String item : items) { this.potentialNodes.remove(item);} return (A)this; - } - - public List getPotentialNodes() { - return this.potentialNodes; - } - - public String getPotentialNode(int index) { - return this.potentialNodes.get(index); - } - - public String getFirstPotentialNode() { - return this.potentialNodes.get(0); - } - - public String getLastPotentialNode() { - return this.potentialNodes.get(potentialNodes.size() - 1); - } - - public String getMatchingPotentialNode(Predicate predicate) { - for (String item : potentialNodes) { - if (predicate.test(item)) { - return item; - } - } - return null; - } - - public boolean hasMatchingPotentialNode(Predicate predicate) { - for (String item : potentialNodes) { - if (predicate.test(item)) { - return true; - } - } - return false; - } - - public A withPotentialNodes(List potentialNodes) { - if (potentialNodes != null) { - this.potentialNodes = new ArrayList(); - for (String item : potentialNodes) { - this.addToPotentialNodes(item); - } - } else { - this.potentialNodes = null; - } - return (A) this; - } - - public A withPotentialNodes(java.lang.String... potentialNodes) { - if (this.potentialNodes != null) { - this.potentialNodes.clear(); - _visitables.remove("potentialNodes"); - } - if (potentialNodes != null) { - for (String item : potentialNodes) { - this.addToPotentialNodes(item); - } - } - return (A) this; - } - - public boolean hasPotentialNodes() { - return this.potentialNodes != null && !this.potentialNodes.isEmpty(); - } - - public String getSelectedNode() { - return this.selectedNode; - } - - public A withSelectedNode(String selectedNode) { - this.selectedNode = selectedNode; - return (A) this; - } - - public boolean hasSelectedNode() { - return this.selectedNode != null; - } - - public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; - V1alpha2PodSchedulingContextSpecFluent that = (V1alpha2PodSchedulingContextSpecFluent) o; - if (!java.util.Objects.equals(potentialNodes, that.potentialNodes)) return false; - if (!java.util.Objects.equals(selectedNode, that.selectedNode)) return false; - return true; - } - - public int hashCode() { - return java.util.Objects.hash(potentialNodes, selectedNode, super.hashCode()); - } - - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("{"); - if (potentialNodes != null && !potentialNodes.isEmpty()) { sb.append("potentialNodes:"); sb.append(potentialNodes + ","); } - if (selectedNode != null) { sb.append("selectedNode:"); sb.append(selectedNode); } - sb.append("}"); - return sb.toString(); - } - - -} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2PodSchedulingContextStatusBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2PodSchedulingContextStatusBuilder.java deleted file mode 100644 index 18df36f95e..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2PodSchedulingContextStatusBuilder.java +++ /dev/null @@ -1,31 +0,0 @@ -package io.kubernetes.client.openapi.models; - -import io.kubernetes.client.fluent.VisitableBuilder; -public class V1alpha2PodSchedulingContextStatusBuilder extends V1alpha2PodSchedulingContextStatusFluent implements VisitableBuilder{ - public V1alpha2PodSchedulingContextStatusBuilder() { - this(new V1alpha2PodSchedulingContextStatus()); - } - - public V1alpha2PodSchedulingContextStatusBuilder(V1alpha2PodSchedulingContextStatusFluent fluent) { - this(fluent, new V1alpha2PodSchedulingContextStatus()); - } - - public V1alpha2PodSchedulingContextStatusBuilder(V1alpha2PodSchedulingContextStatusFluent fluent,V1alpha2PodSchedulingContextStatus instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - - public V1alpha2PodSchedulingContextStatusBuilder(V1alpha2PodSchedulingContextStatus instance) { - this.fluent = this; - this.copyInstance(instance); - } - V1alpha2PodSchedulingContextStatusFluent fluent; - - public V1alpha2PodSchedulingContextStatus build() { - V1alpha2PodSchedulingContextStatus buildable = new V1alpha2PodSchedulingContextStatus(); - buildable.setResourceClaims(fluent.buildResourceClaims()); - return buildable; - } - - -} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2PodSchedulingContextStatusFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2PodSchedulingContextStatusFluent.java deleted file mode 100644 index 6747818364..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2PodSchedulingContextStatusFluent.java +++ /dev/null @@ -1,225 +0,0 @@ -package io.kubernetes.client.openapi.models; - -import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.Nested; -import java.util.ArrayList; -import java.lang.String; -import java.util.function.Predicate; -import io.kubernetes.client.fluent.BaseFluent; -import java.util.Iterator; -import java.util.Collection; -import java.lang.Object; -import java.util.List; - -/** - * Generated - */ -@SuppressWarnings("unchecked") -public class V1alpha2PodSchedulingContextStatusFluent> extends BaseFluent{ - public V1alpha2PodSchedulingContextStatusFluent() { - } - - public V1alpha2PodSchedulingContextStatusFluent(V1alpha2PodSchedulingContextStatus instance) { - this.copyInstance(instance); - } - private ArrayList resourceClaims; - - protected void copyInstance(V1alpha2PodSchedulingContextStatus instance) { - instance = (instance != null ? instance : new V1alpha2PodSchedulingContextStatus()); - if (instance != null) { - this.withResourceClaims(instance.getResourceClaims()); - } - } - - public A addToResourceClaims(int index,V1alpha2ResourceClaimSchedulingStatus item) { - if (this.resourceClaims == null) {this.resourceClaims = new ArrayList();} - V1alpha2ResourceClaimSchedulingStatusBuilder builder = new V1alpha2ResourceClaimSchedulingStatusBuilder(item); - if (index < 0 || index >= resourceClaims.size()) { _visitables.get("resourceClaims").add(builder); resourceClaims.add(builder); } else { _visitables.get("resourceClaims").add(index, builder); resourceClaims.add(index, builder);} - return (A)this; - } - - public A setToResourceClaims(int index,V1alpha2ResourceClaimSchedulingStatus item) { - if (this.resourceClaims == null) {this.resourceClaims = new ArrayList();} - V1alpha2ResourceClaimSchedulingStatusBuilder builder = new V1alpha2ResourceClaimSchedulingStatusBuilder(item); - if (index < 0 || index >= resourceClaims.size()) { _visitables.get("resourceClaims").add(builder); resourceClaims.add(builder); } else { _visitables.get("resourceClaims").set(index, builder); resourceClaims.set(index, builder);} - return (A)this; - } - - public A addToResourceClaims(io.kubernetes.client.openapi.models.V1alpha2ResourceClaimSchedulingStatus... items) { - if (this.resourceClaims == null) {this.resourceClaims = new ArrayList();} - for (V1alpha2ResourceClaimSchedulingStatus item : items) {V1alpha2ResourceClaimSchedulingStatusBuilder builder = new V1alpha2ResourceClaimSchedulingStatusBuilder(item);_visitables.get("resourceClaims").add(builder);this.resourceClaims.add(builder);} return (A)this; - } - - public A addAllToResourceClaims(Collection items) { - if (this.resourceClaims == null) {this.resourceClaims = new ArrayList();} - for (V1alpha2ResourceClaimSchedulingStatus item : items) {V1alpha2ResourceClaimSchedulingStatusBuilder builder = new V1alpha2ResourceClaimSchedulingStatusBuilder(item);_visitables.get("resourceClaims").add(builder);this.resourceClaims.add(builder);} return (A)this; - } - - public A removeFromResourceClaims(io.kubernetes.client.openapi.models.V1alpha2ResourceClaimSchedulingStatus... items) { - if (this.resourceClaims == null) return (A)this; - for (V1alpha2ResourceClaimSchedulingStatus item : items) {V1alpha2ResourceClaimSchedulingStatusBuilder builder = new V1alpha2ResourceClaimSchedulingStatusBuilder(item);_visitables.get("resourceClaims").remove(builder); this.resourceClaims.remove(builder);} return (A)this; - } - - public A removeAllFromResourceClaims(Collection items) { - if (this.resourceClaims == null) return (A)this; - for (V1alpha2ResourceClaimSchedulingStatus item : items) {V1alpha2ResourceClaimSchedulingStatusBuilder builder = new V1alpha2ResourceClaimSchedulingStatusBuilder(item);_visitables.get("resourceClaims").remove(builder); this.resourceClaims.remove(builder);} return (A)this; - } - - public A removeMatchingFromResourceClaims(Predicate predicate) { - if (resourceClaims == null) return (A) this; - final Iterator each = resourceClaims.iterator(); - final List visitables = _visitables.get("resourceClaims"); - while (each.hasNext()) { - V1alpha2ResourceClaimSchedulingStatusBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } - } - return (A)this; - } - - public List buildResourceClaims() { - return this.resourceClaims != null ? build(resourceClaims) : null; - } - - public V1alpha2ResourceClaimSchedulingStatus buildResourceClaim(int index) { - return this.resourceClaims.get(index).build(); - } - - public V1alpha2ResourceClaimSchedulingStatus buildFirstResourceClaim() { - return this.resourceClaims.get(0).build(); - } - - public V1alpha2ResourceClaimSchedulingStatus buildLastResourceClaim() { - return this.resourceClaims.get(resourceClaims.size() - 1).build(); - } - - public V1alpha2ResourceClaimSchedulingStatus buildMatchingResourceClaim(Predicate predicate) { - for (V1alpha2ResourceClaimSchedulingStatusBuilder item : resourceClaims) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; - } - - public boolean hasMatchingResourceClaim(Predicate predicate) { - for (V1alpha2ResourceClaimSchedulingStatusBuilder item : resourceClaims) { - if (predicate.test(item)) { - return true; - } - } - return false; - } - - public A withResourceClaims(List resourceClaims) { - if (this.resourceClaims != null) { - this._visitables.get("resourceClaims").clear(); - } - if (resourceClaims != null) { - this.resourceClaims = new ArrayList(); - for (V1alpha2ResourceClaimSchedulingStatus item : resourceClaims) { - this.addToResourceClaims(item); - } - } else { - this.resourceClaims = null; - } - return (A) this; - } - - public A withResourceClaims(io.kubernetes.client.openapi.models.V1alpha2ResourceClaimSchedulingStatus... resourceClaims) { - if (this.resourceClaims != null) { - this.resourceClaims.clear(); - _visitables.remove("resourceClaims"); - } - if (resourceClaims != null) { - for (V1alpha2ResourceClaimSchedulingStatus item : resourceClaims) { - this.addToResourceClaims(item); - } - } - return (A) this; - } - - public boolean hasResourceClaims() { - return this.resourceClaims != null && !this.resourceClaims.isEmpty(); - } - - public ResourceClaimsNested addNewResourceClaim() { - return new ResourceClaimsNested(-1, null); - } - - public ResourceClaimsNested addNewResourceClaimLike(V1alpha2ResourceClaimSchedulingStatus item) { - return new ResourceClaimsNested(-1, item); - } - - public ResourceClaimsNested setNewResourceClaimLike(int index,V1alpha2ResourceClaimSchedulingStatus item) { - return new ResourceClaimsNested(index, item); - } - - public ResourceClaimsNested editResourceClaim(int index) { - if (resourceClaims.size() <= index) throw new RuntimeException("Can't edit resourceClaims. Index exceeds size."); - return setNewResourceClaimLike(index, buildResourceClaim(index)); - } - - public ResourceClaimsNested editFirstResourceClaim() { - if (resourceClaims.size() == 0) throw new RuntimeException("Can't edit first resourceClaims. The list is empty."); - return setNewResourceClaimLike(0, buildResourceClaim(0)); - } - - public ResourceClaimsNested editLastResourceClaim() { - int index = resourceClaims.size() - 1; - if (index < 0) throw new RuntimeException("Can't edit last resourceClaims. The list is empty."); - return setNewResourceClaimLike(index, buildResourceClaim(index)); - } - - public ResourceClaimsNested editMatchingResourceClaim(Predicate predicate) { - int index = -1; - for (int i=0;i extends V1alpha2ResourceClaimSchedulingStatusFluent> implements Nested{ - ResourceClaimsNested(int index,V1alpha2ResourceClaimSchedulingStatus item) { - this.index = index; - this.builder = new V1alpha2ResourceClaimSchedulingStatusBuilder(this, item); - } - V1alpha2ResourceClaimSchedulingStatusBuilder builder; - int index; - - public N and() { - return (N) V1alpha2PodSchedulingContextStatusFluent.this.setToResourceClaims(index,builder.build()); - } - - public N endResourceClaim() { - return and(); - } - - - } - -} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2ResourceClaimBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2ResourceClaimBuilder.java deleted file mode 100644 index ba1af0bb87..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2ResourceClaimBuilder.java +++ /dev/null @@ -1,35 +0,0 @@ -package io.kubernetes.client.openapi.models; - -import io.kubernetes.client.fluent.VisitableBuilder; -public class V1alpha2ResourceClaimBuilder extends V1alpha2ResourceClaimFluent implements VisitableBuilder{ - public V1alpha2ResourceClaimBuilder() { - this(new V1alpha2ResourceClaim()); - } - - public V1alpha2ResourceClaimBuilder(V1alpha2ResourceClaimFluent fluent) { - this(fluent, new V1alpha2ResourceClaim()); - } - - public V1alpha2ResourceClaimBuilder(V1alpha2ResourceClaimFluent fluent,V1alpha2ResourceClaim instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - - public V1alpha2ResourceClaimBuilder(V1alpha2ResourceClaim instance) { - this.fluent = this; - this.copyInstance(instance); - } - V1alpha2ResourceClaimFluent fluent; - - public V1alpha2ResourceClaim build() { - V1alpha2ResourceClaim buildable = new V1alpha2ResourceClaim(); - buildable.setApiVersion(fluent.getApiVersion()); - buildable.setKind(fluent.getKind()); - buildable.setMetadata(fluent.buildMetadata()); - buildable.setSpec(fluent.buildSpec()); - buildable.setStatus(fluent.buildStatus()); - return buildable; - } - - -} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2ResourceClaimConsumerReferenceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2ResourceClaimConsumerReferenceBuilder.java deleted file mode 100644 index 4b9ebf32d9..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2ResourceClaimConsumerReferenceBuilder.java +++ /dev/null @@ -1,34 +0,0 @@ -package io.kubernetes.client.openapi.models; - -import io.kubernetes.client.fluent.VisitableBuilder; -public class V1alpha2ResourceClaimConsumerReferenceBuilder extends V1alpha2ResourceClaimConsumerReferenceFluent implements VisitableBuilder{ - public V1alpha2ResourceClaimConsumerReferenceBuilder() { - this(new V1alpha2ResourceClaimConsumerReference()); - } - - public V1alpha2ResourceClaimConsumerReferenceBuilder(V1alpha2ResourceClaimConsumerReferenceFluent fluent) { - this(fluent, new V1alpha2ResourceClaimConsumerReference()); - } - - public V1alpha2ResourceClaimConsumerReferenceBuilder(V1alpha2ResourceClaimConsumerReferenceFluent fluent,V1alpha2ResourceClaimConsumerReference instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - - public V1alpha2ResourceClaimConsumerReferenceBuilder(V1alpha2ResourceClaimConsumerReference instance) { - this.fluent = this; - this.copyInstance(instance); - } - V1alpha2ResourceClaimConsumerReferenceFluent fluent; - - public V1alpha2ResourceClaimConsumerReference build() { - V1alpha2ResourceClaimConsumerReference buildable = new V1alpha2ResourceClaimConsumerReference(); - buildable.setApiGroup(fluent.getApiGroup()); - buildable.setName(fluent.getName()); - buildable.setResource(fluent.getResource()); - buildable.setUid(fluent.getUid()); - return buildable; - } - - -} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2ResourceClaimConsumerReferenceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2ResourceClaimConsumerReferenceFluent.java deleted file mode 100644 index f61eae3e11..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2ResourceClaimConsumerReferenceFluent.java +++ /dev/null @@ -1,114 +0,0 @@ -package io.kubernetes.client.openapi.models; - -import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.BaseFluent; -import java.lang.Object; -import java.lang.String; - -/** - * Generated - */ -@SuppressWarnings("unchecked") -public class V1alpha2ResourceClaimConsumerReferenceFluent> extends BaseFluent{ - public V1alpha2ResourceClaimConsumerReferenceFluent() { - } - - public V1alpha2ResourceClaimConsumerReferenceFluent(V1alpha2ResourceClaimConsumerReference instance) { - this.copyInstance(instance); - } - private String apiGroup; - private String name; - private String resource; - private String uid; - - protected void copyInstance(V1alpha2ResourceClaimConsumerReference instance) { - instance = (instance != null ? instance : new V1alpha2ResourceClaimConsumerReference()); - if (instance != null) { - this.withApiGroup(instance.getApiGroup()); - this.withName(instance.getName()); - this.withResource(instance.getResource()); - this.withUid(instance.getUid()); - } - } - - public String getApiGroup() { - return this.apiGroup; - } - - public A withApiGroup(String apiGroup) { - this.apiGroup = apiGroup; - return (A) this; - } - - public boolean hasApiGroup() { - return this.apiGroup != null; - } - - public String getName() { - return this.name; - } - - public A withName(String name) { - this.name = name; - return (A) this; - } - - public boolean hasName() { - return this.name != null; - } - - public String getResource() { - return this.resource; - } - - public A withResource(String resource) { - this.resource = resource; - return (A) this; - } - - public boolean hasResource() { - return this.resource != null; - } - - public String getUid() { - return this.uid; - } - - public A withUid(String uid) { - this.uid = uid; - return (A) this; - } - - public boolean hasUid() { - return this.uid != null; - } - - public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; - V1alpha2ResourceClaimConsumerReferenceFluent that = (V1alpha2ResourceClaimConsumerReferenceFluent) o; - if (!java.util.Objects.equals(apiGroup, that.apiGroup)) return false; - if (!java.util.Objects.equals(name, that.name)) return false; - if (!java.util.Objects.equals(resource, that.resource)) return false; - if (!java.util.Objects.equals(uid, that.uid)) return false; - return true; - } - - public int hashCode() { - return java.util.Objects.hash(apiGroup, name, resource, uid, super.hashCode()); - } - - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("{"); - if (apiGroup != null) { sb.append("apiGroup:"); sb.append(apiGroup + ","); } - if (name != null) { sb.append("name:"); sb.append(name + ","); } - if (resource != null) { sb.append("resource:"); sb.append(resource + ","); } - if (uid != null) { sb.append("uid:"); sb.append(uid); } - sb.append("}"); - return sb.toString(); - } - - -} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2ResourceClaimFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2ResourceClaimFluent.java deleted file mode 100644 index a6f6cb7ec3..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2ResourceClaimFluent.java +++ /dev/null @@ -1,260 +0,0 @@ -package io.kubernetes.client.openapi.models; - -import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.Nested; -import java.lang.String; -import io.kubernetes.client.fluent.BaseFluent; -import java.lang.Object; - -/** - * Generated - */ -@SuppressWarnings("unchecked") -public class V1alpha2ResourceClaimFluent> extends BaseFluent{ - public V1alpha2ResourceClaimFluent() { - } - - public V1alpha2ResourceClaimFluent(V1alpha2ResourceClaim instance) { - this.copyInstance(instance); - } - private String apiVersion; - private String kind; - private V1ObjectMetaBuilder metadata; - private V1alpha2ResourceClaimSpecBuilder spec; - private V1alpha2ResourceClaimStatusBuilder status; - - protected void copyInstance(V1alpha2ResourceClaim instance) { - instance = (instance != null ? instance : new V1alpha2ResourceClaim()); - if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withKind(instance.getKind()); - this.withMetadata(instance.getMetadata()); - this.withSpec(instance.getSpec()); - this.withStatus(instance.getStatus()); - } - } - - public String getApiVersion() { - return this.apiVersion; - } - - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; - } - - public boolean hasApiVersion() { - return this.apiVersion != null; - } - - public String getKind() { - return this.kind; - } - - public A withKind(String kind) { - this.kind = kind; - return (A) this; - } - - public boolean hasKind() { - return this.kind != null; - } - - public V1ObjectMeta buildMetadata() { - return this.metadata != null ? this.metadata.build() : null; - } - - public A withMetadata(V1ObjectMeta metadata) { - this._visitables.remove("metadata"); - if (metadata != null) { - this.metadata = new V1ObjectMetaBuilder(metadata); - this._visitables.get("metadata").add(this.metadata); - } else { - this.metadata = null; - this._visitables.get("metadata").remove(this.metadata); - } - return (A) this; - } - - public boolean hasMetadata() { - return this.metadata != null; - } - - public MetadataNested withNewMetadata() { - return new MetadataNested(null); - } - - public MetadataNested withNewMetadataLike(V1ObjectMeta item) { - return new MetadataNested(item); - } - - public MetadataNested editMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(null)); - } - - public MetadataNested editOrNewMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(new V1ObjectMetaBuilder().build())); - } - - public MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(item)); - } - - public V1alpha2ResourceClaimSpec buildSpec() { - return this.spec != null ? this.spec.build() : null; - } - - public A withSpec(V1alpha2ResourceClaimSpec spec) { - this._visitables.remove("spec"); - if (spec != null) { - this.spec = new V1alpha2ResourceClaimSpecBuilder(spec); - this._visitables.get("spec").add(this.spec); - } else { - this.spec = null; - this._visitables.get("spec").remove(this.spec); - } - return (A) this; - } - - public boolean hasSpec() { - return this.spec != null; - } - - public SpecNested withNewSpec() { - return new SpecNested(null); - } - - public SpecNested withNewSpecLike(V1alpha2ResourceClaimSpec item) { - return new SpecNested(item); - } - - public SpecNested editSpec() { - return withNewSpecLike(java.util.Optional.ofNullable(buildSpec()).orElse(null)); - } - - public SpecNested editOrNewSpec() { - return withNewSpecLike(java.util.Optional.ofNullable(buildSpec()).orElse(new V1alpha2ResourceClaimSpecBuilder().build())); - } - - public SpecNested editOrNewSpecLike(V1alpha2ResourceClaimSpec item) { - return withNewSpecLike(java.util.Optional.ofNullable(buildSpec()).orElse(item)); - } - - public V1alpha2ResourceClaimStatus buildStatus() { - return this.status != null ? this.status.build() : null; - } - - public A withStatus(V1alpha2ResourceClaimStatus status) { - this._visitables.remove("status"); - if (status != null) { - this.status = new V1alpha2ResourceClaimStatusBuilder(status); - this._visitables.get("status").add(this.status); - } else { - this.status = null; - this._visitables.get("status").remove(this.status); - } - return (A) this; - } - - public boolean hasStatus() { - return this.status != null; - } - - public StatusNested withNewStatus() { - return new StatusNested(null); - } - - public StatusNested withNewStatusLike(V1alpha2ResourceClaimStatus item) { - return new StatusNested(item); - } - - public StatusNested editStatus() { - return withNewStatusLike(java.util.Optional.ofNullable(buildStatus()).orElse(null)); - } - - public StatusNested editOrNewStatus() { - return withNewStatusLike(java.util.Optional.ofNullable(buildStatus()).orElse(new V1alpha2ResourceClaimStatusBuilder().build())); - } - - public StatusNested editOrNewStatusLike(V1alpha2ResourceClaimStatus item) { - return withNewStatusLike(java.util.Optional.ofNullable(buildStatus()).orElse(item)); - } - - public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; - V1alpha2ResourceClaimFluent that = (V1alpha2ResourceClaimFluent) o; - if (!java.util.Objects.equals(apiVersion, that.apiVersion)) return false; - if (!java.util.Objects.equals(kind, that.kind)) return false; - if (!java.util.Objects.equals(metadata, that.metadata)) return false; - if (!java.util.Objects.equals(spec, that.spec)) return false; - if (!java.util.Objects.equals(status, that.status)) return false; - return true; - } - - public int hashCode() { - return java.util.Objects.hash(apiVersion, kind, metadata, spec, status, super.hashCode()); - } - - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("{"); - if (apiVersion != null) { sb.append("apiVersion:"); sb.append(apiVersion + ","); } - if (kind != null) { sb.append("kind:"); sb.append(kind + ","); } - if (metadata != null) { sb.append("metadata:"); sb.append(metadata + ","); } - if (spec != null) { sb.append("spec:"); sb.append(spec + ","); } - if (status != null) { sb.append("status:"); sb.append(status); } - sb.append("}"); - return sb.toString(); - } - public class MetadataNested extends V1ObjectMetaFluent> implements Nested{ - MetadataNested(V1ObjectMeta item) { - this.builder = new V1ObjectMetaBuilder(this, item); - } - V1ObjectMetaBuilder builder; - - public N and() { - return (N) V1alpha2ResourceClaimFluent.this.withMetadata(builder.build()); - } - - public N endMetadata() { - return and(); - } - - - } - public class SpecNested extends V1alpha2ResourceClaimSpecFluent> implements Nested{ - SpecNested(V1alpha2ResourceClaimSpec item) { - this.builder = new V1alpha2ResourceClaimSpecBuilder(this, item); - } - V1alpha2ResourceClaimSpecBuilder builder; - - public N and() { - return (N) V1alpha2ResourceClaimFluent.this.withSpec(builder.build()); - } - - public N endSpec() { - return and(); - } - - - } - public class StatusNested extends V1alpha2ResourceClaimStatusFluent> implements Nested{ - StatusNested(V1alpha2ResourceClaimStatus item) { - this.builder = new V1alpha2ResourceClaimStatusBuilder(this, item); - } - V1alpha2ResourceClaimStatusBuilder builder; - - public N and() { - return (N) V1alpha2ResourceClaimFluent.this.withStatus(builder.build()); - } - - public N endStatus() { - return and(); - } - - - } - -} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2ResourceClaimListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2ResourceClaimListBuilder.java deleted file mode 100644 index 2ed3fe5e46..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2ResourceClaimListBuilder.java +++ /dev/null @@ -1,34 +0,0 @@ -package io.kubernetes.client.openapi.models; - -import io.kubernetes.client.fluent.VisitableBuilder; -public class V1alpha2ResourceClaimListBuilder extends V1alpha2ResourceClaimListFluent implements VisitableBuilder{ - public V1alpha2ResourceClaimListBuilder() { - this(new V1alpha2ResourceClaimList()); - } - - public V1alpha2ResourceClaimListBuilder(V1alpha2ResourceClaimListFluent fluent) { - this(fluent, new V1alpha2ResourceClaimList()); - } - - public V1alpha2ResourceClaimListBuilder(V1alpha2ResourceClaimListFluent fluent,V1alpha2ResourceClaimList instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - - public V1alpha2ResourceClaimListBuilder(V1alpha2ResourceClaimList instance) { - this.fluent = this; - this.copyInstance(instance); - } - V1alpha2ResourceClaimListFluent fluent; - - public V1alpha2ResourceClaimList build() { - V1alpha2ResourceClaimList buildable = new V1alpha2ResourceClaimList(); - buildable.setApiVersion(fluent.getApiVersion()); - buildable.setItems(fluent.buildItems()); - buildable.setKind(fluent.getKind()); - buildable.setMetadata(fluent.buildMetadata()); - return buildable; - } - - -} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2ResourceClaimListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2ResourceClaimListFluent.java deleted file mode 100644 index 3147daa476..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2ResourceClaimListFluent.java +++ /dev/null @@ -1,319 +0,0 @@ -package io.kubernetes.client.openapi.models; - -import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.Nested; -import java.util.ArrayList; -import java.lang.String; -import java.util.function.Predicate; -import io.kubernetes.client.fluent.BaseFluent; -import java.util.Iterator; -import java.util.Collection; -import java.lang.Object; -import java.util.List; - -/** - * Generated - */ -@SuppressWarnings("unchecked") -public class V1alpha2ResourceClaimListFluent> extends BaseFluent{ - public V1alpha2ResourceClaimListFluent() { - } - - public V1alpha2ResourceClaimListFluent(V1alpha2ResourceClaimList instance) { - this.copyInstance(instance); - } - private String apiVersion; - private ArrayList items; - private String kind; - private V1ListMetaBuilder metadata; - - protected void copyInstance(V1alpha2ResourceClaimList instance) { - instance = (instance != null ? instance : new V1alpha2ResourceClaimList()); - if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withItems(instance.getItems()); - this.withKind(instance.getKind()); - this.withMetadata(instance.getMetadata()); - } - } - - public String getApiVersion() { - return this.apiVersion; - } - - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; - } - - public boolean hasApiVersion() { - return this.apiVersion != null; - } - - public A addToItems(int index,V1alpha2ResourceClaim item) { - if (this.items == null) {this.items = new ArrayList();} - V1alpha2ResourceClaimBuilder builder = new V1alpha2ResourceClaimBuilder(item); - if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); items.add(builder); } else { _visitables.get("items").add(index, builder); items.add(index, builder);} - return (A)this; - } - - public A setToItems(int index,V1alpha2ResourceClaim item) { - if (this.items == null) {this.items = new ArrayList();} - V1alpha2ResourceClaimBuilder builder = new V1alpha2ResourceClaimBuilder(item); - if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); items.add(builder); } else { _visitables.get("items").set(index, builder); items.set(index, builder);} - return (A)this; - } - - public A addToItems(io.kubernetes.client.openapi.models.V1alpha2ResourceClaim... items) { - if (this.items == null) {this.items = new ArrayList();} - for (V1alpha2ResourceClaim item : items) {V1alpha2ResourceClaimBuilder builder = new V1alpha2ResourceClaimBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; - } - - public A addAllToItems(Collection items) { - if (this.items == null) {this.items = new ArrayList();} - for (V1alpha2ResourceClaim item : items) {V1alpha2ResourceClaimBuilder builder = new V1alpha2ResourceClaimBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; - } - - public A removeFromItems(io.kubernetes.client.openapi.models.V1alpha2ResourceClaim... items) { - if (this.items == null) return (A)this; - for (V1alpha2ResourceClaim item : items) {V1alpha2ResourceClaimBuilder builder = new V1alpha2ResourceClaimBuilder(item);_visitables.get("items").remove(builder); this.items.remove(builder);} return (A)this; - } - - public A removeAllFromItems(Collection items) { - if (this.items == null) return (A)this; - for (V1alpha2ResourceClaim item : items) {V1alpha2ResourceClaimBuilder builder = new V1alpha2ResourceClaimBuilder(item);_visitables.get("items").remove(builder); this.items.remove(builder);} return (A)this; - } - - public A removeMatchingFromItems(Predicate predicate) { - if (items == null) return (A) this; - final Iterator each = items.iterator(); - final List visitables = _visitables.get("items"); - while (each.hasNext()) { - V1alpha2ResourceClaimBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } - } - return (A)this; - } - - public List buildItems() { - return this.items != null ? build(items) : null; - } - - public V1alpha2ResourceClaim buildItem(int index) { - return this.items.get(index).build(); - } - - public V1alpha2ResourceClaim buildFirstItem() { - return this.items.get(0).build(); - } - - public V1alpha2ResourceClaim buildLastItem() { - return this.items.get(items.size() - 1).build(); - } - - public V1alpha2ResourceClaim buildMatchingItem(Predicate predicate) { - for (V1alpha2ResourceClaimBuilder item : items) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; - } - - public boolean hasMatchingItem(Predicate predicate) { - for (V1alpha2ResourceClaimBuilder item : items) { - if (predicate.test(item)) { - return true; - } - } - return false; - } - - public A withItems(List items) { - if (this.items != null) { - this._visitables.get("items").clear(); - } - if (items != null) { - this.items = new ArrayList(); - for (V1alpha2ResourceClaim item : items) { - this.addToItems(item); - } - } else { - this.items = null; - } - return (A) this; - } - - public A withItems(io.kubernetes.client.openapi.models.V1alpha2ResourceClaim... items) { - if (this.items != null) { - this.items.clear(); - _visitables.remove("items"); - } - if (items != null) { - for (V1alpha2ResourceClaim item : items) { - this.addToItems(item); - } - } - return (A) this; - } - - public boolean hasItems() { - return this.items != null && !this.items.isEmpty(); - } - - public ItemsNested addNewItem() { - return new ItemsNested(-1, null); - } - - public ItemsNested addNewItemLike(V1alpha2ResourceClaim item) { - return new ItemsNested(-1, item); - } - - public ItemsNested setNewItemLike(int index,V1alpha2ResourceClaim item) { - return new ItemsNested(index, item); - } - - public ItemsNested editItem(int index) { - if (items.size() <= index) throw new RuntimeException("Can't edit items. Index exceeds size."); - return setNewItemLike(index, buildItem(index)); - } - - public ItemsNested editFirstItem() { - if (items.size() == 0) throw new RuntimeException("Can't edit first items. The list is empty."); - return setNewItemLike(0, buildItem(0)); - } - - public ItemsNested editLastItem() { - int index = items.size() - 1; - if (index < 0) throw new RuntimeException("Can't edit last items. The list is empty."); - return setNewItemLike(index, buildItem(index)); - } - - public ItemsNested editMatchingItem(Predicate predicate) { - int index = -1; - for (int i=0;i withNewMetadata() { - return new MetadataNested(null); - } - - public MetadataNested withNewMetadataLike(V1ListMeta item) { - return new MetadataNested(item); - } - - public MetadataNested editMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(null)); - } - - public MetadataNested editOrNewMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(new V1ListMetaBuilder().build())); - } - - public MetadataNested editOrNewMetadataLike(V1ListMeta item) { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(item)); - } - - public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; - V1alpha2ResourceClaimListFluent that = (V1alpha2ResourceClaimListFluent) o; - if (!java.util.Objects.equals(apiVersion, that.apiVersion)) return false; - if (!java.util.Objects.equals(items, that.items)) return false; - if (!java.util.Objects.equals(kind, that.kind)) return false; - if (!java.util.Objects.equals(metadata, that.metadata)) return false; - return true; - } - - public int hashCode() { - return java.util.Objects.hash(apiVersion, items, kind, metadata, super.hashCode()); - } - - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("{"); - if (apiVersion != null) { sb.append("apiVersion:"); sb.append(apiVersion + ","); } - if (items != null && !items.isEmpty()) { sb.append("items:"); sb.append(items + ","); } - if (kind != null) { sb.append("kind:"); sb.append(kind + ","); } - if (metadata != null) { sb.append("metadata:"); sb.append(metadata); } - sb.append("}"); - return sb.toString(); - } - public class ItemsNested extends V1alpha2ResourceClaimFluent> implements Nested{ - ItemsNested(int index,V1alpha2ResourceClaim item) { - this.index = index; - this.builder = new V1alpha2ResourceClaimBuilder(this, item); - } - V1alpha2ResourceClaimBuilder builder; - int index; - - public N and() { - return (N) V1alpha2ResourceClaimListFluent.this.setToItems(index,builder.build()); - } - - public N endItem() { - return and(); - } - - - } - public class MetadataNested extends V1ListMetaFluent> implements Nested{ - MetadataNested(V1ListMeta item) { - this.builder = new V1ListMetaBuilder(this, item); - } - V1ListMetaBuilder builder; - - public N and() { - return (N) V1alpha2ResourceClaimListFluent.this.withMetadata(builder.build()); - } - - public N endMetadata() { - return and(); - } - - - } - -} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2ResourceClaimParametersReferenceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2ResourceClaimParametersReferenceBuilder.java deleted file mode 100644 index d8657bdf18..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2ResourceClaimParametersReferenceBuilder.java +++ /dev/null @@ -1,33 +0,0 @@ -package io.kubernetes.client.openapi.models; - -import io.kubernetes.client.fluent.VisitableBuilder; -public class V1alpha2ResourceClaimParametersReferenceBuilder extends V1alpha2ResourceClaimParametersReferenceFluent implements VisitableBuilder{ - public V1alpha2ResourceClaimParametersReferenceBuilder() { - this(new V1alpha2ResourceClaimParametersReference()); - } - - public V1alpha2ResourceClaimParametersReferenceBuilder(V1alpha2ResourceClaimParametersReferenceFluent fluent) { - this(fluent, new V1alpha2ResourceClaimParametersReference()); - } - - public V1alpha2ResourceClaimParametersReferenceBuilder(V1alpha2ResourceClaimParametersReferenceFluent fluent,V1alpha2ResourceClaimParametersReference instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - - public V1alpha2ResourceClaimParametersReferenceBuilder(V1alpha2ResourceClaimParametersReference instance) { - this.fluent = this; - this.copyInstance(instance); - } - V1alpha2ResourceClaimParametersReferenceFluent fluent; - - public V1alpha2ResourceClaimParametersReference build() { - V1alpha2ResourceClaimParametersReference buildable = new V1alpha2ResourceClaimParametersReference(); - buildable.setApiGroup(fluent.getApiGroup()); - buildable.setKind(fluent.getKind()); - buildable.setName(fluent.getName()); - return buildable; - } - - -} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2ResourceClaimParametersReferenceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2ResourceClaimParametersReferenceFluent.java deleted file mode 100644 index b3c59c47c5..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2ResourceClaimParametersReferenceFluent.java +++ /dev/null @@ -1,97 +0,0 @@ -package io.kubernetes.client.openapi.models; - -import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.BaseFluent; -import java.lang.Object; -import java.lang.String; - -/** - * Generated - */ -@SuppressWarnings("unchecked") -public class V1alpha2ResourceClaimParametersReferenceFluent> extends BaseFluent{ - public V1alpha2ResourceClaimParametersReferenceFluent() { - } - - public V1alpha2ResourceClaimParametersReferenceFluent(V1alpha2ResourceClaimParametersReference instance) { - this.copyInstance(instance); - } - private String apiGroup; - private String kind; - private String name; - - protected void copyInstance(V1alpha2ResourceClaimParametersReference instance) { - instance = (instance != null ? instance : new V1alpha2ResourceClaimParametersReference()); - if (instance != null) { - this.withApiGroup(instance.getApiGroup()); - this.withKind(instance.getKind()); - this.withName(instance.getName()); - } - } - - public String getApiGroup() { - return this.apiGroup; - } - - public A withApiGroup(String apiGroup) { - this.apiGroup = apiGroup; - return (A) this; - } - - public boolean hasApiGroup() { - return this.apiGroup != null; - } - - public String getKind() { - return this.kind; - } - - public A withKind(String kind) { - this.kind = kind; - return (A) this; - } - - public boolean hasKind() { - return this.kind != null; - } - - public String getName() { - return this.name; - } - - public A withName(String name) { - this.name = name; - return (A) this; - } - - public boolean hasName() { - return this.name != null; - } - - public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; - V1alpha2ResourceClaimParametersReferenceFluent that = (V1alpha2ResourceClaimParametersReferenceFluent) o; - if (!java.util.Objects.equals(apiGroup, that.apiGroup)) return false; - if (!java.util.Objects.equals(kind, that.kind)) return false; - if (!java.util.Objects.equals(name, that.name)) return false; - return true; - } - - public int hashCode() { - return java.util.Objects.hash(apiGroup, kind, name, super.hashCode()); - } - - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("{"); - if (apiGroup != null) { sb.append("apiGroup:"); sb.append(apiGroup + ","); } - if (kind != null) { sb.append("kind:"); sb.append(kind + ","); } - if (name != null) { sb.append("name:"); sb.append(name); } - sb.append("}"); - return sb.toString(); - } - - -} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2ResourceClaimSchedulingStatusBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2ResourceClaimSchedulingStatusBuilder.java deleted file mode 100644 index ce51e9ced7..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2ResourceClaimSchedulingStatusBuilder.java +++ /dev/null @@ -1,32 +0,0 @@ -package io.kubernetes.client.openapi.models; - -import io.kubernetes.client.fluent.VisitableBuilder; -public class V1alpha2ResourceClaimSchedulingStatusBuilder extends V1alpha2ResourceClaimSchedulingStatusFluent implements VisitableBuilder{ - public V1alpha2ResourceClaimSchedulingStatusBuilder() { - this(new V1alpha2ResourceClaimSchedulingStatus()); - } - - public V1alpha2ResourceClaimSchedulingStatusBuilder(V1alpha2ResourceClaimSchedulingStatusFluent fluent) { - this(fluent, new V1alpha2ResourceClaimSchedulingStatus()); - } - - public V1alpha2ResourceClaimSchedulingStatusBuilder(V1alpha2ResourceClaimSchedulingStatusFluent fluent,V1alpha2ResourceClaimSchedulingStatus instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - - public V1alpha2ResourceClaimSchedulingStatusBuilder(V1alpha2ResourceClaimSchedulingStatus instance) { - this.fluent = this; - this.copyInstance(instance); - } - V1alpha2ResourceClaimSchedulingStatusFluent fluent; - - public V1alpha2ResourceClaimSchedulingStatus build() { - V1alpha2ResourceClaimSchedulingStatus buildable = new V1alpha2ResourceClaimSchedulingStatus(); - buildable.setName(fluent.getName()); - buildable.setUnsuitableNodes(fluent.getUnsuitableNodes()); - return buildable; - } - - -} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2ResourceClaimSchedulingStatusFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2ResourceClaimSchedulingStatusFluent.java deleted file mode 100644 index f77117ad1e..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2ResourceClaimSchedulingStatusFluent.java +++ /dev/null @@ -1,165 +0,0 @@ -package io.kubernetes.client.openapi.models; - -import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.BaseFluent; -import java.util.ArrayList; -import java.util.Collection; -import java.lang.Object; -import java.util.List; -import java.lang.String; -import java.util.function.Predicate; - -/** - * Generated - */ -@SuppressWarnings("unchecked") -public class V1alpha2ResourceClaimSchedulingStatusFluent> extends BaseFluent{ - public V1alpha2ResourceClaimSchedulingStatusFluent() { - } - - public V1alpha2ResourceClaimSchedulingStatusFluent(V1alpha2ResourceClaimSchedulingStatus instance) { - this.copyInstance(instance); - } - private String name; - private List unsuitableNodes; - - protected void copyInstance(V1alpha2ResourceClaimSchedulingStatus instance) { - instance = (instance != null ? instance : new V1alpha2ResourceClaimSchedulingStatus()); - if (instance != null) { - this.withName(instance.getName()); - this.withUnsuitableNodes(instance.getUnsuitableNodes()); - } - } - - public String getName() { - return this.name; - } - - public A withName(String name) { - this.name = name; - return (A) this; - } - - public boolean hasName() { - return this.name != null; - } - - public A addToUnsuitableNodes(int index,String item) { - if (this.unsuitableNodes == null) {this.unsuitableNodes = new ArrayList();} - this.unsuitableNodes.add(index, item); - return (A)this; - } - - public A setToUnsuitableNodes(int index,String item) { - if (this.unsuitableNodes == null) {this.unsuitableNodes = new ArrayList();} - this.unsuitableNodes.set(index, item); return (A)this; - } - - public A addToUnsuitableNodes(java.lang.String... items) { - if (this.unsuitableNodes == null) {this.unsuitableNodes = new ArrayList();} - for (String item : items) {this.unsuitableNodes.add(item);} return (A)this; - } - - public A addAllToUnsuitableNodes(Collection items) { - if (this.unsuitableNodes == null) {this.unsuitableNodes = new ArrayList();} - for (String item : items) {this.unsuitableNodes.add(item);} return (A)this; - } - - public A removeFromUnsuitableNodes(java.lang.String... items) { - if (this.unsuitableNodes == null) return (A)this; - for (String item : items) { this.unsuitableNodes.remove(item);} return (A)this; - } - - public A removeAllFromUnsuitableNodes(Collection items) { - if (this.unsuitableNodes == null) return (A)this; - for (String item : items) { this.unsuitableNodes.remove(item);} return (A)this; - } - - public List getUnsuitableNodes() { - return this.unsuitableNodes; - } - - public String getUnsuitableNode(int index) { - return this.unsuitableNodes.get(index); - } - - public String getFirstUnsuitableNode() { - return this.unsuitableNodes.get(0); - } - - public String getLastUnsuitableNode() { - return this.unsuitableNodes.get(unsuitableNodes.size() - 1); - } - - public String getMatchingUnsuitableNode(Predicate predicate) { - for (String item : unsuitableNodes) { - if (predicate.test(item)) { - return item; - } - } - return null; - } - - public boolean hasMatchingUnsuitableNode(Predicate predicate) { - for (String item : unsuitableNodes) { - if (predicate.test(item)) { - return true; - } - } - return false; - } - - public A withUnsuitableNodes(List unsuitableNodes) { - if (unsuitableNodes != null) { - this.unsuitableNodes = new ArrayList(); - for (String item : unsuitableNodes) { - this.addToUnsuitableNodes(item); - } - } else { - this.unsuitableNodes = null; - } - return (A) this; - } - - public A withUnsuitableNodes(java.lang.String... unsuitableNodes) { - if (this.unsuitableNodes != null) { - this.unsuitableNodes.clear(); - _visitables.remove("unsuitableNodes"); - } - if (unsuitableNodes != null) { - for (String item : unsuitableNodes) { - this.addToUnsuitableNodes(item); - } - } - return (A) this; - } - - public boolean hasUnsuitableNodes() { - return this.unsuitableNodes != null && !this.unsuitableNodes.isEmpty(); - } - - public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; - V1alpha2ResourceClaimSchedulingStatusFluent that = (V1alpha2ResourceClaimSchedulingStatusFluent) o; - if (!java.util.Objects.equals(name, that.name)) return false; - if (!java.util.Objects.equals(unsuitableNodes, that.unsuitableNodes)) return false; - return true; - } - - public int hashCode() { - return java.util.Objects.hash(name, unsuitableNodes, super.hashCode()); - } - - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("{"); - if (name != null) { sb.append("name:"); sb.append(name + ","); } - if (unsuitableNodes != null && !unsuitableNodes.isEmpty()) { sb.append("unsuitableNodes:"); sb.append(unsuitableNodes); } - sb.append("}"); - return sb.toString(); - } - - -} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2ResourceClaimSpecBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2ResourceClaimSpecBuilder.java deleted file mode 100644 index 869f3c9ac4..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2ResourceClaimSpecBuilder.java +++ /dev/null @@ -1,33 +0,0 @@ -package io.kubernetes.client.openapi.models; - -import io.kubernetes.client.fluent.VisitableBuilder; -public class V1alpha2ResourceClaimSpecBuilder extends V1alpha2ResourceClaimSpecFluent implements VisitableBuilder{ - public V1alpha2ResourceClaimSpecBuilder() { - this(new V1alpha2ResourceClaimSpec()); - } - - public V1alpha2ResourceClaimSpecBuilder(V1alpha2ResourceClaimSpecFluent fluent) { - this(fluent, new V1alpha2ResourceClaimSpec()); - } - - public V1alpha2ResourceClaimSpecBuilder(V1alpha2ResourceClaimSpecFluent fluent,V1alpha2ResourceClaimSpec instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - - public V1alpha2ResourceClaimSpecBuilder(V1alpha2ResourceClaimSpec instance) { - this.fluent = this; - this.copyInstance(instance); - } - V1alpha2ResourceClaimSpecFluent fluent; - - public V1alpha2ResourceClaimSpec build() { - V1alpha2ResourceClaimSpec buildable = new V1alpha2ResourceClaimSpec(); - buildable.setAllocationMode(fluent.getAllocationMode()); - buildable.setParametersRef(fluent.buildParametersRef()); - buildable.setResourceClassName(fluent.getResourceClassName()); - return buildable; - } - - -} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2ResourceClaimSpecFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2ResourceClaimSpecFluent.java deleted file mode 100644 index a9de468c08..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2ResourceClaimSpecFluent.java +++ /dev/null @@ -1,140 +0,0 @@ -package io.kubernetes.client.openapi.models; - -import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.BaseFluent; -import io.kubernetes.client.fluent.Nested; -import java.lang.Object; -import java.lang.String; - -/** - * Generated - */ -@SuppressWarnings("unchecked") -public class V1alpha2ResourceClaimSpecFluent> extends BaseFluent{ - public V1alpha2ResourceClaimSpecFluent() { - } - - public V1alpha2ResourceClaimSpecFluent(V1alpha2ResourceClaimSpec instance) { - this.copyInstance(instance); - } - private String allocationMode; - private V1alpha2ResourceClaimParametersReferenceBuilder parametersRef; - private String resourceClassName; - - protected void copyInstance(V1alpha2ResourceClaimSpec instance) { - instance = (instance != null ? instance : new V1alpha2ResourceClaimSpec()); - if (instance != null) { - this.withAllocationMode(instance.getAllocationMode()); - this.withParametersRef(instance.getParametersRef()); - this.withResourceClassName(instance.getResourceClassName()); - } - } - - public String getAllocationMode() { - return this.allocationMode; - } - - public A withAllocationMode(String allocationMode) { - this.allocationMode = allocationMode; - return (A) this; - } - - public boolean hasAllocationMode() { - return this.allocationMode != null; - } - - public V1alpha2ResourceClaimParametersReference buildParametersRef() { - return this.parametersRef != null ? this.parametersRef.build() : null; - } - - public A withParametersRef(V1alpha2ResourceClaimParametersReference parametersRef) { - this._visitables.remove("parametersRef"); - if (parametersRef != null) { - this.parametersRef = new V1alpha2ResourceClaimParametersReferenceBuilder(parametersRef); - this._visitables.get("parametersRef").add(this.parametersRef); - } else { - this.parametersRef = null; - this._visitables.get("parametersRef").remove(this.parametersRef); - } - return (A) this; - } - - public boolean hasParametersRef() { - return this.parametersRef != null; - } - - public ParametersRefNested withNewParametersRef() { - return new ParametersRefNested(null); - } - - public ParametersRefNested withNewParametersRefLike(V1alpha2ResourceClaimParametersReference item) { - return new ParametersRefNested(item); - } - - public ParametersRefNested editParametersRef() { - return withNewParametersRefLike(java.util.Optional.ofNullable(buildParametersRef()).orElse(null)); - } - - public ParametersRefNested editOrNewParametersRef() { - return withNewParametersRefLike(java.util.Optional.ofNullable(buildParametersRef()).orElse(new V1alpha2ResourceClaimParametersReferenceBuilder().build())); - } - - public ParametersRefNested editOrNewParametersRefLike(V1alpha2ResourceClaimParametersReference item) { - return withNewParametersRefLike(java.util.Optional.ofNullable(buildParametersRef()).orElse(item)); - } - - public String getResourceClassName() { - return this.resourceClassName; - } - - public A withResourceClassName(String resourceClassName) { - this.resourceClassName = resourceClassName; - return (A) this; - } - - public boolean hasResourceClassName() { - return this.resourceClassName != null; - } - - public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; - V1alpha2ResourceClaimSpecFluent that = (V1alpha2ResourceClaimSpecFluent) o; - if (!java.util.Objects.equals(allocationMode, that.allocationMode)) return false; - if (!java.util.Objects.equals(parametersRef, that.parametersRef)) return false; - if (!java.util.Objects.equals(resourceClassName, that.resourceClassName)) return false; - return true; - } - - public int hashCode() { - return java.util.Objects.hash(allocationMode, parametersRef, resourceClassName, super.hashCode()); - } - - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("{"); - if (allocationMode != null) { sb.append("allocationMode:"); sb.append(allocationMode + ","); } - if (parametersRef != null) { sb.append("parametersRef:"); sb.append(parametersRef + ","); } - if (resourceClassName != null) { sb.append("resourceClassName:"); sb.append(resourceClassName); } - sb.append("}"); - return sb.toString(); - } - public class ParametersRefNested extends V1alpha2ResourceClaimParametersReferenceFluent> implements Nested{ - ParametersRefNested(V1alpha2ResourceClaimParametersReference item) { - this.builder = new V1alpha2ResourceClaimParametersReferenceBuilder(this, item); - } - V1alpha2ResourceClaimParametersReferenceBuilder builder; - - public N and() { - return (N) V1alpha2ResourceClaimSpecFluent.this.withParametersRef(builder.build()); - } - - public N endParametersRef() { - return and(); - } - - - } - -} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2ResourceClaimStatusBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2ResourceClaimStatusBuilder.java deleted file mode 100644 index 7cb3c0b64e..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2ResourceClaimStatusBuilder.java +++ /dev/null @@ -1,34 +0,0 @@ -package io.kubernetes.client.openapi.models; - -import io.kubernetes.client.fluent.VisitableBuilder; -public class V1alpha2ResourceClaimStatusBuilder extends V1alpha2ResourceClaimStatusFluent implements VisitableBuilder{ - public V1alpha2ResourceClaimStatusBuilder() { - this(new V1alpha2ResourceClaimStatus()); - } - - public V1alpha2ResourceClaimStatusBuilder(V1alpha2ResourceClaimStatusFluent fluent) { - this(fluent, new V1alpha2ResourceClaimStatus()); - } - - public V1alpha2ResourceClaimStatusBuilder(V1alpha2ResourceClaimStatusFluent fluent,V1alpha2ResourceClaimStatus instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - - public V1alpha2ResourceClaimStatusBuilder(V1alpha2ResourceClaimStatus instance) { - this.fluent = this; - this.copyInstance(instance); - } - V1alpha2ResourceClaimStatusFluent fluent; - - public V1alpha2ResourceClaimStatus build() { - V1alpha2ResourceClaimStatus buildable = new V1alpha2ResourceClaimStatus(); - buildable.setAllocation(fluent.buildAllocation()); - buildable.setDeallocationRequested(fluent.getDeallocationRequested()); - buildable.setDriverName(fluent.getDriverName()); - buildable.setReservedFor(fluent.buildReservedFor()); - return buildable; - } - - -} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2ResourceClaimStatusFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2ResourceClaimStatusFluent.java deleted file mode 100644 index cd8ce58d52..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2ResourceClaimStatusFluent.java +++ /dev/null @@ -1,324 +0,0 @@ -package io.kubernetes.client.openapi.models; - -import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.Nested; -import java.util.ArrayList; -import java.lang.String; -import java.util.function.Predicate; -import io.kubernetes.client.fluent.BaseFluent; -import java.util.Iterator; -import java.util.Collection; -import java.lang.Object; -import java.util.List; -import java.lang.Boolean; - -/** - * Generated - */ -@SuppressWarnings("unchecked") -public class V1alpha2ResourceClaimStatusFluent> extends BaseFluent{ - public V1alpha2ResourceClaimStatusFluent() { - } - - public V1alpha2ResourceClaimStatusFluent(V1alpha2ResourceClaimStatus instance) { - this.copyInstance(instance); - } - private V1alpha2AllocationResultBuilder allocation; - private Boolean deallocationRequested; - private String driverName; - private ArrayList reservedFor; - - protected void copyInstance(V1alpha2ResourceClaimStatus instance) { - instance = (instance != null ? instance : new V1alpha2ResourceClaimStatus()); - if (instance != null) { - this.withAllocation(instance.getAllocation()); - this.withDeallocationRequested(instance.getDeallocationRequested()); - this.withDriverName(instance.getDriverName()); - this.withReservedFor(instance.getReservedFor()); - } - } - - public V1alpha2AllocationResult buildAllocation() { - return this.allocation != null ? this.allocation.build() : null; - } - - public A withAllocation(V1alpha2AllocationResult allocation) { - this._visitables.remove("allocation"); - if (allocation != null) { - this.allocation = new V1alpha2AllocationResultBuilder(allocation); - this._visitables.get("allocation").add(this.allocation); - } else { - this.allocation = null; - this._visitables.get("allocation").remove(this.allocation); - } - return (A) this; - } - - public boolean hasAllocation() { - return this.allocation != null; - } - - public AllocationNested withNewAllocation() { - return new AllocationNested(null); - } - - public AllocationNested withNewAllocationLike(V1alpha2AllocationResult item) { - return new AllocationNested(item); - } - - public AllocationNested editAllocation() { - return withNewAllocationLike(java.util.Optional.ofNullable(buildAllocation()).orElse(null)); - } - - public AllocationNested editOrNewAllocation() { - return withNewAllocationLike(java.util.Optional.ofNullable(buildAllocation()).orElse(new V1alpha2AllocationResultBuilder().build())); - } - - public AllocationNested editOrNewAllocationLike(V1alpha2AllocationResult item) { - return withNewAllocationLike(java.util.Optional.ofNullable(buildAllocation()).orElse(item)); - } - - public Boolean getDeallocationRequested() { - return this.deallocationRequested; - } - - public A withDeallocationRequested(Boolean deallocationRequested) { - this.deallocationRequested = deallocationRequested; - return (A) this; - } - - public boolean hasDeallocationRequested() { - return this.deallocationRequested != null; - } - - public String getDriverName() { - return this.driverName; - } - - public A withDriverName(String driverName) { - this.driverName = driverName; - return (A) this; - } - - public boolean hasDriverName() { - return this.driverName != null; - } - - public A addToReservedFor(int index,V1alpha2ResourceClaimConsumerReference item) { - if (this.reservedFor == null) {this.reservedFor = new ArrayList();} - V1alpha2ResourceClaimConsumerReferenceBuilder builder = new V1alpha2ResourceClaimConsumerReferenceBuilder(item); - if (index < 0 || index >= reservedFor.size()) { _visitables.get("reservedFor").add(builder); reservedFor.add(builder); } else { _visitables.get("reservedFor").add(index, builder); reservedFor.add(index, builder);} - return (A)this; - } - - public A setToReservedFor(int index,V1alpha2ResourceClaimConsumerReference item) { - if (this.reservedFor == null) {this.reservedFor = new ArrayList();} - V1alpha2ResourceClaimConsumerReferenceBuilder builder = new V1alpha2ResourceClaimConsumerReferenceBuilder(item); - if (index < 0 || index >= reservedFor.size()) { _visitables.get("reservedFor").add(builder); reservedFor.add(builder); } else { _visitables.get("reservedFor").set(index, builder); reservedFor.set(index, builder);} - return (A)this; - } - - public A addToReservedFor(io.kubernetes.client.openapi.models.V1alpha2ResourceClaimConsumerReference... items) { - if (this.reservedFor == null) {this.reservedFor = new ArrayList();} - for (V1alpha2ResourceClaimConsumerReference item : items) {V1alpha2ResourceClaimConsumerReferenceBuilder builder = new V1alpha2ResourceClaimConsumerReferenceBuilder(item);_visitables.get("reservedFor").add(builder);this.reservedFor.add(builder);} return (A)this; - } - - public A addAllToReservedFor(Collection items) { - if (this.reservedFor == null) {this.reservedFor = new ArrayList();} - for (V1alpha2ResourceClaimConsumerReference item : items) {V1alpha2ResourceClaimConsumerReferenceBuilder builder = new V1alpha2ResourceClaimConsumerReferenceBuilder(item);_visitables.get("reservedFor").add(builder);this.reservedFor.add(builder);} return (A)this; - } - - public A removeFromReservedFor(io.kubernetes.client.openapi.models.V1alpha2ResourceClaimConsumerReference... items) { - if (this.reservedFor == null) return (A)this; - for (V1alpha2ResourceClaimConsumerReference item : items) {V1alpha2ResourceClaimConsumerReferenceBuilder builder = new V1alpha2ResourceClaimConsumerReferenceBuilder(item);_visitables.get("reservedFor").remove(builder); this.reservedFor.remove(builder);} return (A)this; - } - - public A removeAllFromReservedFor(Collection items) { - if (this.reservedFor == null) return (A)this; - for (V1alpha2ResourceClaimConsumerReference item : items) {V1alpha2ResourceClaimConsumerReferenceBuilder builder = new V1alpha2ResourceClaimConsumerReferenceBuilder(item);_visitables.get("reservedFor").remove(builder); this.reservedFor.remove(builder);} return (A)this; - } - - public A removeMatchingFromReservedFor(Predicate predicate) { - if (reservedFor == null) return (A) this; - final Iterator each = reservedFor.iterator(); - final List visitables = _visitables.get("reservedFor"); - while (each.hasNext()) { - V1alpha2ResourceClaimConsumerReferenceBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } - } - return (A)this; - } - - public List buildReservedFor() { - return this.reservedFor != null ? build(reservedFor) : null; - } - - public V1alpha2ResourceClaimConsumerReference buildReservedFor(int index) { - return this.reservedFor.get(index).build(); - } - - public V1alpha2ResourceClaimConsumerReference buildFirstReservedFor() { - return this.reservedFor.get(0).build(); - } - - public V1alpha2ResourceClaimConsumerReference buildLastReservedFor() { - return this.reservedFor.get(reservedFor.size() - 1).build(); - } - - public V1alpha2ResourceClaimConsumerReference buildMatchingReservedFor(Predicate predicate) { - for (V1alpha2ResourceClaimConsumerReferenceBuilder item : reservedFor) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; - } - - public boolean hasMatchingReservedFor(Predicate predicate) { - for (V1alpha2ResourceClaimConsumerReferenceBuilder item : reservedFor) { - if (predicate.test(item)) { - return true; - } - } - return false; - } - - public A withReservedFor(List reservedFor) { - if (this.reservedFor != null) { - this._visitables.get("reservedFor").clear(); - } - if (reservedFor != null) { - this.reservedFor = new ArrayList(); - for (V1alpha2ResourceClaimConsumerReference item : reservedFor) { - this.addToReservedFor(item); - } - } else { - this.reservedFor = null; - } - return (A) this; - } - - public A withReservedFor(io.kubernetes.client.openapi.models.V1alpha2ResourceClaimConsumerReference... reservedFor) { - if (this.reservedFor != null) { - this.reservedFor.clear(); - _visitables.remove("reservedFor"); - } - if (reservedFor != null) { - for (V1alpha2ResourceClaimConsumerReference item : reservedFor) { - this.addToReservedFor(item); - } - } - return (A) this; - } - - public boolean hasReservedFor() { - return this.reservedFor != null && !this.reservedFor.isEmpty(); - } - - public ReservedForNested addNewReservedFor() { - return new ReservedForNested(-1, null); - } - - public ReservedForNested addNewReservedForLike(V1alpha2ResourceClaimConsumerReference item) { - return new ReservedForNested(-1, item); - } - - public ReservedForNested setNewReservedForLike(int index,V1alpha2ResourceClaimConsumerReference item) { - return new ReservedForNested(index, item); - } - - public ReservedForNested editReservedFor(int index) { - if (reservedFor.size() <= index) throw new RuntimeException("Can't edit reservedFor. Index exceeds size."); - return setNewReservedForLike(index, buildReservedFor(index)); - } - - public ReservedForNested editFirstReservedFor() { - if (reservedFor.size() == 0) throw new RuntimeException("Can't edit first reservedFor. The list is empty."); - return setNewReservedForLike(0, buildReservedFor(0)); - } - - public ReservedForNested editLastReservedFor() { - int index = reservedFor.size() - 1; - if (index < 0) throw new RuntimeException("Can't edit last reservedFor. The list is empty."); - return setNewReservedForLike(index, buildReservedFor(index)); - } - - public ReservedForNested editMatchingReservedFor(Predicate predicate) { - int index = -1; - for (int i=0;i extends V1alpha2AllocationResultFluent> implements Nested{ - AllocationNested(V1alpha2AllocationResult item) { - this.builder = new V1alpha2AllocationResultBuilder(this, item); - } - V1alpha2AllocationResultBuilder builder; - - public N and() { - return (N) V1alpha2ResourceClaimStatusFluent.this.withAllocation(builder.build()); - } - - public N endAllocation() { - return and(); - } - - - } - public class ReservedForNested extends V1alpha2ResourceClaimConsumerReferenceFluent> implements Nested{ - ReservedForNested(int index,V1alpha2ResourceClaimConsumerReference item) { - this.index = index; - this.builder = new V1alpha2ResourceClaimConsumerReferenceBuilder(this, item); - } - V1alpha2ResourceClaimConsumerReferenceBuilder builder; - int index; - - public N and() { - return (N) V1alpha2ResourceClaimStatusFluent.this.setToReservedFor(index,builder.build()); - } - - public N endReservedFor() { - return and(); - } - - - } - -} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2ResourceClaimTemplateBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2ResourceClaimTemplateBuilder.java deleted file mode 100644 index 99642fbb0a..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2ResourceClaimTemplateBuilder.java +++ /dev/null @@ -1,34 +0,0 @@ -package io.kubernetes.client.openapi.models; - -import io.kubernetes.client.fluent.VisitableBuilder; -public class V1alpha2ResourceClaimTemplateBuilder extends V1alpha2ResourceClaimTemplateFluent implements VisitableBuilder{ - public V1alpha2ResourceClaimTemplateBuilder() { - this(new V1alpha2ResourceClaimTemplate()); - } - - public V1alpha2ResourceClaimTemplateBuilder(V1alpha2ResourceClaimTemplateFluent fluent) { - this(fluent, new V1alpha2ResourceClaimTemplate()); - } - - public V1alpha2ResourceClaimTemplateBuilder(V1alpha2ResourceClaimTemplateFluent fluent,V1alpha2ResourceClaimTemplate instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - - public V1alpha2ResourceClaimTemplateBuilder(V1alpha2ResourceClaimTemplate instance) { - this.fluent = this; - this.copyInstance(instance); - } - V1alpha2ResourceClaimTemplateFluent fluent; - - public V1alpha2ResourceClaimTemplate build() { - V1alpha2ResourceClaimTemplate buildable = new V1alpha2ResourceClaimTemplate(); - buildable.setApiVersion(fluent.getApiVersion()); - buildable.setKind(fluent.getKind()); - buildable.setMetadata(fluent.buildMetadata()); - buildable.setSpec(fluent.buildSpec()); - return buildable; - } - - -} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2ResourceClaimTemplateFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2ResourceClaimTemplateFluent.java deleted file mode 100644 index 2ac07d2276..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2ResourceClaimTemplateFluent.java +++ /dev/null @@ -1,200 +0,0 @@ -package io.kubernetes.client.openapi.models; - -import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.Nested; -import java.lang.String; -import io.kubernetes.client.fluent.BaseFluent; -import java.lang.Object; - -/** - * Generated - */ -@SuppressWarnings("unchecked") -public class V1alpha2ResourceClaimTemplateFluent> extends BaseFluent{ - public V1alpha2ResourceClaimTemplateFluent() { - } - - public V1alpha2ResourceClaimTemplateFluent(V1alpha2ResourceClaimTemplate instance) { - this.copyInstance(instance); - } - private String apiVersion; - private String kind; - private V1ObjectMetaBuilder metadata; - private V1alpha2ResourceClaimTemplateSpecBuilder spec; - - protected void copyInstance(V1alpha2ResourceClaimTemplate instance) { - instance = (instance != null ? instance : new V1alpha2ResourceClaimTemplate()); - if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withKind(instance.getKind()); - this.withMetadata(instance.getMetadata()); - this.withSpec(instance.getSpec()); - } - } - - public String getApiVersion() { - return this.apiVersion; - } - - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; - } - - public boolean hasApiVersion() { - return this.apiVersion != null; - } - - public String getKind() { - return this.kind; - } - - public A withKind(String kind) { - this.kind = kind; - return (A) this; - } - - public boolean hasKind() { - return this.kind != null; - } - - public V1ObjectMeta buildMetadata() { - return this.metadata != null ? this.metadata.build() : null; - } - - public A withMetadata(V1ObjectMeta metadata) { - this._visitables.remove("metadata"); - if (metadata != null) { - this.metadata = new V1ObjectMetaBuilder(metadata); - this._visitables.get("metadata").add(this.metadata); - } else { - this.metadata = null; - this._visitables.get("metadata").remove(this.metadata); - } - return (A) this; - } - - public boolean hasMetadata() { - return this.metadata != null; - } - - public MetadataNested withNewMetadata() { - return new MetadataNested(null); - } - - public MetadataNested withNewMetadataLike(V1ObjectMeta item) { - return new MetadataNested(item); - } - - public MetadataNested editMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(null)); - } - - public MetadataNested editOrNewMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(new V1ObjectMetaBuilder().build())); - } - - public MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(item)); - } - - public V1alpha2ResourceClaimTemplateSpec buildSpec() { - return this.spec != null ? this.spec.build() : null; - } - - public A withSpec(V1alpha2ResourceClaimTemplateSpec spec) { - this._visitables.remove("spec"); - if (spec != null) { - this.spec = new V1alpha2ResourceClaimTemplateSpecBuilder(spec); - this._visitables.get("spec").add(this.spec); - } else { - this.spec = null; - this._visitables.get("spec").remove(this.spec); - } - return (A) this; - } - - public boolean hasSpec() { - return this.spec != null; - } - - public SpecNested withNewSpec() { - return new SpecNested(null); - } - - public SpecNested withNewSpecLike(V1alpha2ResourceClaimTemplateSpec item) { - return new SpecNested(item); - } - - public SpecNested editSpec() { - return withNewSpecLike(java.util.Optional.ofNullable(buildSpec()).orElse(null)); - } - - public SpecNested editOrNewSpec() { - return withNewSpecLike(java.util.Optional.ofNullable(buildSpec()).orElse(new V1alpha2ResourceClaimTemplateSpecBuilder().build())); - } - - public SpecNested editOrNewSpecLike(V1alpha2ResourceClaimTemplateSpec item) { - return withNewSpecLike(java.util.Optional.ofNullable(buildSpec()).orElse(item)); - } - - public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; - V1alpha2ResourceClaimTemplateFluent that = (V1alpha2ResourceClaimTemplateFluent) o; - if (!java.util.Objects.equals(apiVersion, that.apiVersion)) return false; - if (!java.util.Objects.equals(kind, that.kind)) return false; - if (!java.util.Objects.equals(metadata, that.metadata)) return false; - if (!java.util.Objects.equals(spec, that.spec)) return false; - return true; - } - - public int hashCode() { - return java.util.Objects.hash(apiVersion, kind, metadata, spec, super.hashCode()); - } - - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("{"); - if (apiVersion != null) { sb.append("apiVersion:"); sb.append(apiVersion + ","); } - if (kind != null) { sb.append("kind:"); sb.append(kind + ","); } - if (metadata != null) { sb.append("metadata:"); sb.append(metadata + ","); } - if (spec != null) { sb.append("spec:"); sb.append(spec); } - sb.append("}"); - return sb.toString(); - } - public class MetadataNested extends V1ObjectMetaFluent> implements Nested{ - MetadataNested(V1ObjectMeta item) { - this.builder = new V1ObjectMetaBuilder(this, item); - } - V1ObjectMetaBuilder builder; - - public N and() { - return (N) V1alpha2ResourceClaimTemplateFluent.this.withMetadata(builder.build()); - } - - public N endMetadata() { - return and(); - } - - - } - public class SpecNested extends V1alpha2ResourceClaimTemplateSpecFluent> implements Nested{ - SpecNested(V1alpha2ResourceClaimTemplateSpec item) { - this.builder = new V1alpha2ResourceClaimTemplateSpecBuilder(this, item); - } - V1alpha2ResourceClaimTemplateSpecBuilder builder; - - public N and() { - return (N) V1alpha2ResourceClaimTemplateFluent.this.withSpec(builder.build()); - } - - public N endSpec() { - return and(); - } - - - } - -} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2ResourceClaimTemplateListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2ResourceClaimTemplateListBuilder.java deleted file mode 100644 index 64f8c0abe1..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2ResourceClaimTemplateListBuilder.java +++ /dev/null @@ -1,34 +0,0 @@ -package io.kubernetes.client.openapi.models; - -import io.kubernetes.client.fluent.VisitableBuilder; -public class V1alpha2ResourceClaimTemplateListBuilder extends V1alpha2ResourceClaimTemplateListFluent implements VisitableBuilder{ - public V1alpha2ResourceClaimTemplateListBuilder() { - this(new V1alpha2ResourceClaimTemplateList()); - } - - public V1alpha2ResourceClaimTemplateListBuilder(V1alpha2ResourceClaimTemplateListFluent fluent) { - this(fluent, new V1alpha2ResourceClaimTemplateList()); - } - - public V1alpha2ResourceClaimTemplateListBuilder(V1alpha2ResourceClaimTemplateListFluent fluent,V1alpha2ResourceClaimTemplateList instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - - public V1alpha2ResourceClaimTemplateListBuilder(V1alpha2ResourceClaimTemplateList instance) { - this.fluent = this; - this.copyInstance(instance); - } - V1alpha2ResourceClaimTemplateListFluent fluent; - - public V1alpha2ResourceClaimTemplateList build() { - V1alpha2ResourceClaimTemplateList buildable = new V1alpha2ResourceClaimTemplateList(); - buildable.setApiVersion(fluent.getApiVersion()); - buildable.setItems(fluent.buildItems()); - buildable.setKind(fluent.getKind()); - buildable.setMetadata(fluent.buildMetadata()); - return buildable; - } - - -} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2ResourceClaimTemplateListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2ResourceClaimTemplateListFluent.java deleted file mode 100644 index e7ce3585ff..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2ResourceClaimTemplateListFluent.java +++ /dev/null @@ -1,319 +0,0 @@ -package io.kubernetes.client.openapi.models; - -import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.Nested; -import java.util.ArrayList; -import java.lang.String; -import java.util.function.Predicate; -import io.kubernetes.client.fluent.BaseFluent; -import java.util.Iterator; -import java.util.Collection; -import java.lang.Object; -import java.util.List; - -/** - * Generated - */ -@SuppressWarnings("unchecked") -public class V1alpha2ResourceClaimTemplateListFluent> extends BaseFluent{ - public V1alpha2ResourceClaimTemplateListFluent() { - } - - public V1alpha2ResourceClaimTemplateListFluent(V1alpha2ResourceClaimTemplateList instance) { - this.copyInstance(instance); - } - private String apiVersion; - private ArrayList items; - private String kind; - private V1ListMetaBuilder metadata; - - protected void copyInstance(V1alpha2ResourceClaimTemplateList instance) { - instance = (instance != null ? instance : new V1alpha2ResourceClaimTemplateList()); - if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withItems(instance.getItems()); - this.withKind(instance.getKind()); - this.withMetadata(instance.getMetadata()); - } - } - - public String getApiVersion() { - return this.apiVersion; - } - - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; - } - - public boolean hasApiVersion() { - return this.apiVersion != null; - } - - public A addToItems(int index,V1alpha2ResourceClaimTemplate item) { - if (this.items == null) {this.items = new ArrayList();} - V1alpha2ResourceClaimTemplateBuilder builder = new V1alpha2ResourceClaimTemplateBuilder(item); - if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); items.add(builder); } else { _visitables.get("items").add(index, builder); items.add(index, builder);} - return (A)this; - } - - public A setToItems(int index,V1alpha2ResourceClaimTemplate item) { - if (this.items == null) {this.items = new ArrayList();} - V1alpha2ResourceClaimTemplateBuilder builder = new V1alpha2ResourceClaimTemplateBuilder(item); - if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); items.add(builder); } else { _visitables.get("items").set(index, builder); items.set(index, builder);} - return (A)this; - } - - public A addToItems(io.kubernetes.client.openapi.models.V1alpha2ResourceClaimTemplate... items) { - if (this.items == null) {this.items = new ArrayList();} - for (V1alpha2ResourceClaimTemplate item : items) {V1alpha2ResourceClaimTemplateBuilder builder = new V1alpha2ResourceClaimTemplateBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; - } - - public A addAllToItems(Collection items) { - if (this.items == null) {this.items = new ArrayList();} - for (V1alpha2ResourceClaimTemplate item : items) {V1alpha2ResourceClaimTemplateBuilder builder = new V1alpha2ResourceClaimTemplateBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; - } - - public A removeFromItems(io.kubernetes.client.openapi.models.V1alpha2ResourceClaimTemplate... items) { - if (this.items == null) return (A)this; - for (V1alpha2ResourceClaimTemplate item : items) {V1alpha2ResourceClaimTemplateBuilder builder = new V1alpha2ResourceClaimTemplateBuilder(item);_visitables.get("items").remove(builder); this.items.remove(builder);} return (A)this; - } - - public A removeAllFromItems(Collection items) { - if (this.items == null) return (A)this; - for (V1alpha2ResourceClaimTemplate item : items) {V1alpha2ResourceClaimTemplateBuilder builder = new V1alpha2ResourceClaimTemplateBuilder(item);_visitables.get("items").remove(builder); this.items.remove(builder);} return (A)this; - } - - public A removeMatchingFromItems(Predicate predicate) { - if (items == null) return (A) this; - final Iterator each = items.iterator(); - final List visitables = _visitables.get("items"); - while (each.hasNext()) { - V1alpha2ResourceClaimTemplateBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } - } - return (A)this; - } - - public List buildItems() { - return this.items != null ? build(items) : null; - } - - public V1alpha2ResourceClaimTemplate buildItem(int index) { - return this.items.get(index).build(); - } - - public V1alpha2ResourceClaimTemplate buildFirstItem() { - return this.items.get(0).build(); - } - - public V1alpha2ResourceClaimTemplate buildLastItem() { - return this.items.get(items.size() - 1).build(); - } - - public V1alpha2ResourceClaimTemplate buildMatchingItem(Predicate predicate) { - for (V1alpha2ResourceClaimTemplateBuilder item : items) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; - } - - public boolean hasMatchingItem(Predicate predicate) { - for (V1alpha2ResourceClaimTemplateBuilder item : items) { - if (predicate.test(item)) { - return true; - } - } - return false; - } - - public A withItems(List items) { - if (this.items != null) { - this._visitables.get("items").clear(); - } - if (items != null) { - this.items = new ArrayList(); - for (V1alpha2ResourceClaimTemplate item : items) { - this.addToItems(item); - } - } else { - this.items = null; - } - return (A) this; - } - - public A withItems(io.kubernetes.client.openapi.models.V1alpha2ResourceClaimTemplate... items) { - if (this.items != null) { - this.items.clear(); - _visitables.remove("items"); - } - if (items != null) { - for (V1alpha2ResourceClaimTemplate item : items) { - this.addToItems(item); - } - } - return (A) this; - } - - public boolean hasItems() { - return this.items != null && !this.items.isEmpty(); - } - - public ItemsNested addNewItem() { - return new ItemsNested(-1, null); - } - - public ItemsNested addNewItemLike(V1alpha2ResourceClaimTemplate item) { - return new ItemsNested(-1, item); - } - - public ItemsNested setNewItemLike(int index,V1alpha2ResourceClaimTemplate item) { - return new ItemsNested(index, item); - } - - public ItemsNested editItem(int index) { - if (items.size() <= index) throw new RuntimeException("Can't edit items. Index exceeds size."); - return setNewItemLike(index, buildItem(index)); - } - - public ItemsNested editFirstItem() { - if (items.size() == 0) throw new RuntimeException("Can't edit first items. The list is empty."); - return setNewItemLike(0, buildItem(0)); - } - - public ItemsNested editLastItem() { - int index = items.size() - 1; - if (index < 0) throw new RuntimeException("Can't edit last items. The list is empty."); - return setNewItemLike(index, buildItem(index)); - } - - public ItemsNested editMatchingItem(Predicate predicate) { - int index = -1; - for (int i=0;i withNewMetadata() { - return new MetadataNested(null); - } - - public MetadataNested withNewMetadataLike(V1ListMeta item) { - return new MetadataNested(item); - } - - public MetadataNested editMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(null)); - } - - public MetadataNested editOrNewMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(new V1ListMetaBuilder().build())); - } - - public MetadataNested editOrNewMetadataLike(V1ListMeta item) { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(item)); - } - - public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; - V1alpha2ResourceClaimTemplateListFluent that = (V1alpha2ResourceClaimTemplateListFluent) o; - if (!java.util.Objects.equals(apiVersion, that.apiVersion)) return false; - if (!java.util.Objects.equals(items, that.items)) return false; - if (!java.util.Objects.equals(kind, that.kind)) return false; - if (!java.util.Objects.equals(metadata, that.metadata)) return false; - return true; - } - - public int hashCode() { - return java.util.Objects.hash(apiVersion, items, kind, metadata, super.hashCode()); - } - - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("{"); - if (apiVersion != null) { sb.append("apiVersion:"); sb.append(apiVersion + ","); } - if (items != null && !items.isEmpty()) { sb.append("items:"); sb.append(items + ","); } - if (kind != null) { sb.append("kind:"); sb.append(kind + ","); } - if (metadata != null) { sb.append("metadata:"); sb.append(metadata); } - sb.append("}"); - return sb.toString(); - } - public class ItemsNested extends V1alpha2ResourceClaimTemplateFluent> implements Nested{ - ItemsNested(int index,V1alpha2ResourceClaimTemplate item) { - this.index = index; - this.builder = new V1alpha2ResourceClaimTemplateBuilder(this, item); - } - V1alpha2ResourceClaimTemplateBuilder builder; - int index; - - public N and() { - return (N) V1alpha2ResourceClaimTemplateListFluent.this.setToItems(index,builder.build()); - } - - public N endItem() { - return and(); - } - - - } - public class MetadataNested extends V1ListMetaFluent> implements Nested{ - MetadataNested(V1ListMeta item) { - this.builder = new V1ListMetaBuilder(this, item); - } - V1ListMetaBuilder builder; - - public N and() { - return (N) V1alpha2ResourceClaimTemplateListFluent.this.withMetadata(builder.build()); - } - - public N endMetadata() { - return and(); - } - - - } - -} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2ResourceClaimTemplateSpecBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2ResourceClaimTemplateSpecBuilder.java deleted file mode 100644 index 1108f64cee..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2ResourceClaimTemplateSpecBuilder.java +++ /dev/null @@ -1,32 +0,0 @@ -package io.kubernetes.client.openapi.models; - -import io.kubernetes.client.fluent.VisitableBuilder; -public class V1alpha2ResourceClaimTemplateSpecBuilder extends V1alpha2ResourceClaimTemplateSpecFluent implements VisitableBuilder{ - public V1alpha2ResourceClaimTemplateSpecBuilder() { - this(new V1alpha2ResourceClaimTemplateSpec()); - } - - public V1alpha2ResourceClaimTemplateSpecBuilder(V1alpha2ResourceClaimTemplateSpecFluent fluent) { - this(fluent, new V1alpha2ResourceClaimTemplateSpec()); - } - - public V1alpha2ResourceClaimTemplateSpecBuilder(V1alpha2ResourceClaimTemplateSpecFluent fluent,V1alpha2ResourceClaimTemplateSpec instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - - public V1alpha2ResourceClaimTemplateSpecBuilder(V1alpha2ResourceClaimTemplateSpec instance) { - this.fluent = this; - this.copyInstance(instance); - } - V1alpha2ResourceClaimTemplateSpecFluent fluent; - - public V1alpha2ResourceClaimTemplateSpec build() { - V1alpha2ResourceClaimTemplateSpec buildable = new V1alpha2ResourceClaimTemplateSpec(); - buildable.setMetadata(fluent.buildMetadata()); - buildable.setSpec(fluent.buildSpec()); - return buildable; - } - - -} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2ResourceClaimTemplateSpecFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2ResourceClaimTemplateSpecFluent.java deleted file mode 100644 index 5cfdd72508..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2ResourceClaimTemplateSpecFluent.java +++ /dev/null @@ -1,166 +0,0 @@ -package io.kubernetes.client.openapi.models; - -import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.Nested; -import java.lang.String; -import io.kubernetes.client.fluent.BaseFluent; -import java.lang.Object; - -/** - * Generated - */ -@SuppressWarnings("unchecked") -public class V1alpha2ResourceClaimTemplateSpecFluent> extends BaseFluent{ - public V1alpha2ResourceClaimTemplateSpecFluent() { - } - - public V1alpha2ResourceClaimTemplateSpecFluent(V1alpha2ResourceClaimTemplateSpec instance) { - this.copyInstance(instance); - } - private V1ObjectMetaBuilder metadata; - private V1alpha2ResourceClaimSpecBuilder spec; - - protected void copyInstance(V1alpha2ResourceClaimTemplateSpec instance) { - instance = (instance != null ? instance : new V1alpha2ResourceClaimTemplateSpec()); - if (instance != null) { - this.withMetadata(instance.getMetadata()); - this.withSpec(instance.getSpec()); - } - } - - public V1ObjectMeta buildMetadata() { - return this.metadata != null ? this.metadata.build() : null; - } - - public A withMetadata(V1ObjectMeta metadata) { - this._visitables.remove("metadata"); - if (metadata != null) { - this.metadata = new V1ObjectMetaBuilder(metadata); - this._visitables.get("metadata").add(this.metadata); - } else { - this.metadata = null; - this._visitables.get("metadata").remove(this.metadata); - } - return (A) this; - } - - public boolean hasMetadata() { - return this.metadata != null; - } - - public MetadataNested withNewMetadata() { - return new MetadataNested(null); - } - - public MetadataNested withNewMetadataLike(V1ObjectMeta item) { - return new MetadataNested(item); - } - - public MetadataNested editMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(null)); - } - - public MetadataNested editOrNewMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(new V1ObjectMetaBuilder().build())); - } - - public MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(item)); - } - - public V1alpha2ResourceClaimSpec buildSpec() { - return this.spec != null ? this.spec.build() : null; - } - - public A withSpec(V1alpha2ResourceClaimSpec spec) { - this._visitables.remove("spec"); - if (spec != null) { - this.spec = new V1alpha2ResourceClaimSpecBuilder(spec); - this._visitables.get("spec").add(this.spec); - } else { - this.spec = null; - this._visitables.get("spec").remove(this.spec); - } - return (A) this; - } - - public boolean hasSpec() { - return this.spec != null; - } - - public SpecNested withNewSpec() { - return new SpecNested(null); - } - - public SpecNested withNewSpecLike(V1alpha2ResourceClaimSpec item) { - return new SpecNested(item); - } - - public SpecNested editSpec() { - return withNewSpecLike(java.util.Optional.ofNullable(buildSpec()).orElse(null)); - } - - public SpecNested editOrNewSpec() { - return withNewSpecLike(java.util.Optional.ofNullable(buildSpec()).orElse(new V1alpha2ResourceClaimSpecBuilder().build())); - } - - public SpecNested editOrNewSpecLike(V1alpha2ResourceClaimSpec item) { - return withNewSpecLike(java.util.Optional.ofNullable(buildSpec()).orElse(item)); - } - - public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; - V1alpha2ResourceClaimTemplateSpecFluent that = (V1alpha2ResourceClaimTemplateSpecFluent) o; - if (!java.util.Objects.equals(metadata, that.metadata)) return false; - if (!java.util.Objects.equals(spec, that.spec)) return false; - return true; - } - - public int hashCode() { - return java.util.Objects.hash(metadata, spec, super.hashCode()); - } - - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("{"); - if (metadata != null) { sb.append("metadata:"); sb.append(metadata + ","); } - if (spec != null) { sb.append("spec:"); sb.append(spec); } - sb.append("}"); - return sb.toString(); - } - public class MetadataNested extends V1ObjectMetaFluent> implements Nested{ - MetadataNested(V1ObjectMeta item) { - this.builder = new V1ObjectMetaBuilder(this, item); - } - V1ObjectMetaBuilder builder; - - public N and() { - return (N) V1alpha2ResourceClaimTemplateSpecFluent.this.withMetadata(builder.build()); - } - - public N endMetadata() { - return and(); - } - - - } - public class SpecNested extends V1alpha2ResourceClaimSpecFluent> implements Nested{ - SpecNested(V1alpha2ResourceClaimSpec item) { - this.builder = new V1alpha2ResourceClaimSpecBuilder(this, item); - } - V1alpha2ResourceClaimSpecBuilder builder; - - public N and() { - return (N) V1alpha2ResourceClaimTemplateSpecFluent.this.withSpec(builder.build()); - } - - public N endSpec() { - return and(); - } - - - } - -} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2ResourceClassBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2ResourceClassBuilder.java deleted file mode 100644 index fd038ec274..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2ResourceClassBuilder.java +++ /dev/null @@ -1,36 +0,0 @@ -package io.kubernetes.client.openapi.models; - -import io.kubernetes.client.fluent.VisitableBuilder; -public class V1alpha2ResourceClassBuilder extends V1alpha2ResourceClassFluent implements VisitableBuilder{ - public V1alpha2ResourceClassBuilder() { - this(new V1alpha2ResourceClass()); - } - - public V1alpha2ResourceClassBuilder(V1alpha2ResourceClassFluent fluent) { - this(fluent, new V1alpha2ResourceClass()); - } - - public V1alpha2ResourceClassBuilder(V1alpha2ResourceClassFluent fluent,V1alpha2ResourceClass instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - - public V1alpha2ResourceClassBuilder(V1alpha2ResourceClass instance) { - this.fluent = this; - this.copyInstance(instance); - } - V1alpha2ResourceClassFluent fluent; - - public V1alpha2ResourceClass build() { - V1alpha2ResourceClass buildable = new V1alpha2ResourceClass(); - buildable.setApiVersion(fluent.getApiVersion()); - buildable.setDriverName(fluent.getDriverName()); - buildable.setKind(fluent.getKind()); - buildable.setMetadata(fluent.buildMetadata()); - buildable.setParametersRef(fluent.buildParametersRef()); - buildable.setSuitableNodes(fluent.buildSuitableNodes()); - return buildable; - } - - -} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2ResourceClassFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2ResourceClassFluent.java deleted file mode 100644 index e7267e6461..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2ResourceClassFluent.java +++ /dev/null @@ -1,277 +0,0 @@ -package io.kubernetes.client.openapi.models; - -import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.Nested; -import java.lang.String; -import io.kubernetes.client.fluent.BaseFluent; -import java.lang.Object; - -/** - * Generated - */ -@SuppressWarnings("unchecked") -public class V1alpha2ResourceClassFluent> extends BaseFluent{ - public V1alpha2ResourceClassFluent() { - } - - public V1alpha2ResourceClassFluent(V1alpha2ResourceClass instance) { - this.copyInstance(instance); - } - private String apiVersion; - private String driverName; - private String kind; - private V1ObjectMetaBuilder metadata; - private V1alpha2ResourceClassParametersReferenceBuilder parametersRef; - private V1NodeSelectorBuilder suitableNodes; - - protected void copyInstance(V1alpha2ResourceClass instance) { - instance = (instance != null ? instance : new V1alpha2ResourceClass()); - if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withDriverName(instance.getDriverName()); - this.withKind(instance.getKind()); - this.withMetadata(instance.getMetadata()); - this.withParametersRef(instance.getParametersRef()); - this.withSuitableNodes(instance.getSuitableNodes()); - } - } - - public String getApiVersion() { - return this.apiVersion; - } - - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; - } - - public boolean hasApiVersion() { - return this.apiVersion != null; - } - - public String getDriverName() { - return this.driverName; - } - - public A withDriverName(String driverName) { - this.driverName = driverName; - return (A) this; - } - - public boolean hasDriverName() { - return this.driverName != null; - } - - public String getKind() { - return this.kind; - } - - public A withKind(String kind) { - this.kind = kind; - return (A) this; - } - - public boolean hasKind() { - return this.kind != null; - } - - public V1ObjectMeta buildMetadata() { - return this.metadata != null ? this.metadata.build() : null; - } - - public A withMetadata(V1ObjectMeta metadata) { - this._visitables.remove("metadata"); - if (metadata != null) { - this.metadata = new V1ObjectMetaBuilder(metadata); - this._visitables.get("metadata").add(this.metadata); - } else { - this.metadata = null; - this._visitables.get("metadata").remove(this.metadata); - } - return (A) this; - } - - public boolean hasMetadata() { - return this.metadata != null; - } - - public MetadataNested withNewMetadata() { - return new MetadataNested(null); - } - - public MetadataNested withNewMetadataLike(V1ObjectMeta item) { - return new MetadataNested(item); - } - - public MetadataNested editMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(null)); - } - - public MetadataNested editOrNewMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(new V1ObjectMetaBuilder().build())); - } - - public MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(item)); - } - - public V1alpha2ResourceClassParametersReference buildParametersRef() { - return this.parametersRef != null ? this.parametersRef.build() : null; - } - - public A withParametersRef(V1alpha2ResourceClassParametersReference parametersRef) { - this._visitables.remove("parametersRef"); - if (parametersRef != null) { - this.parametersRef = new V1alpha2ResourceClassParametersReferenceBuilder(parametersRef); - this._visitables.get("parametersRef").add(this.parametersRef); - } else { - this.parametersRef = null; - this._visitables.get("parametersRef").remove(this.parametersRef); - } - return (A) this; - } - - public boolean hasParametersRef() { - return this.parametersRef != null; - } - - public ParametersRefNested withNewParametersRef() { - return new ParametersRefNested(null); - } - - public ParametersRefNested withNewParametersRefLike(V1alpha2ResourceClassParametersReference item) { - return new ParametersRefNested(item); - } - - public ParametersRefNested editParametersRef() { - return withNewParametersRefLike(java.util.Optional.ofNullable(buildParametersRef()).orElse(null)); - } - - public ParametersRefNested editOrNewParametersRef() { - return withNewParametersRefLike(java.util.Optional.ofNullable(buildParametersRef()).orElse(new V1alpha2ResourceClassParametersReferenceBuilder().build())); - } - - public ParametersRefNested editOrNewParametersRefLike(V1alpha2ResourceClassParametersReference item) { - return withNewParametersRefLike(java.util.Optional.ofNullable(buildParametersRef()).orElse(item)); - } - - public V1NodeSelector buildSuitableNodes() { - return this.suitableNodes != null ? this.suitableNodes.build() : null; - } - - public A withSuitableNodes(V1NodeSelector suitableNodes) { - this._visitables.remove("suitableNodes"); - if (suitableNodes != null) { - this.suitableNodes = new V1NodeSelectorBuilder(suitableNodes); - this._visitables.get("suitableNodes").add(this.suitableNodes); - } else { - this.suitableNodes = null; - this._visitables.get("suitableNodes").remove(this.suitableNodes); - } - return (A) this; - } - - public boolean hasSuitableNodes() { - return this.suitableNodes != null; - } - - public SuitableNodesNested withNewSuitableNodes() { - return new SuitableNodesNested(null); - } - - public SuitableNodesNested withNewSuitableNodesLike(V1NodeSelector item) { - return new SuitableNodesNested(item); - } - - public SuitableNodesNested editSuitableNodes() { - return withNewSuitableNodesLike(java.util.Optional.ofNullable(buildSuitableNodes()).orElse(null)); - } - - public SuitableNodesNested editOrNewSuitableNodes() { - return withNewSuitableNodesLike(java.util.Optional.ofNullable(buildSuitableNodes()).orElse(new V1NodeSelectorBuilder().build())); - } - - public SuitableNodesNested editOrNewSuitableNodesLike(V1NodeSelector item) { - return withNewSuitableNodesLike(java.util.Optional.ofNullable(buildSuitableNodes()).orElse(item)); - } - - public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; - V1alpha2ResourceClassFluent that = (V1alpha2ResourceClassFluent) o; - if (!java.util.Objects.equals(apiVersion, that.apiVersion)) return false; - if (!java.util.Objects.equals(driverName, that.driverName)) return false; - if (!java.util.Objects.equals(kind, that.kind)) return false; - if (!java.util.Objects.equals(metadata, that.metadata)) return false; - if (!java.util.Objects.equals(parametersRef, that.parametersRef)) return false; - if (!java.util.Objects.equals(suitableNodes, that.suitableNodes)) return false; - return true; - } - - public int hashCode() { - return java.util.Objects.hash(apiVersion, driverName, kind, metadata, parametersRef, suitableNodes, super.hashCode()); - } - - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("{"); - if (apiVersion != null) { sb.append("apiVersion:"); sb.append(apiVersion + ","); } - if (driverName != null) { sb.append("driverName:"); sb.append(driverName + ","); } - if (kind != null) { sb.append("kind:"); sb.append(kind + ","); } - if (metadata != null) { sb.append("metadata:"); sb.append(metadata + ","); } - if (parametersRef != null) { sb.append("parametersRef:"); sb.append(parametersRef + ","); } - if (suitableNodes != null) { sb.append("suitableNodes:"); sb.append(suitableNodes); } - sb.append("}"); - return sb.toString(); - } - public class MetadataNested extends V1ObjectMetaFluent> implements Nested{ - MetadataNested(V1ObjectMeta item) { - this.builder = new V1ObjectMetaBuilder(this, item); - } - V1ObjectMetaBuilder builder; - - public N and() { - return (N) V1alpha2ResourceClassFluent.this.withMetadata(builder.build()); - } - - public N endMetadata() { - return and(); - } - - - } - public class ParametersRefNested extends V1alpha2ResourceClassParametersReferenceFluent> implements Nested{ - ParametersRefNested(V1alpha2ResourceClassParametersReference item) { - this.builder = new V1alpha2ResourceClassParametersReferenceBuilder(this, item); - } - V1alpha2ResourceClassParametersReferenceBuilder builder; - - public N and() { - return (N) V1alpha2ResourceClassFluent.this.withParametersRef(builder.build()); - } - - public N endParametersRef() { - return and(); - } - - - } - public class SuitableNodesNested extends V1NodeSelectorFluent> implements Nested{ - SuitableNodesNested(V1NodeSelector item) { - this.builder = new V1NodeSelectorBuilder(this, item); - } - V1NodeSelectorBuilder builder; - - public N and() { - return (N) V1alpha2ResourceClassFluent.this.withSuitableNodes(builder.build()); - } - - public N endSuitableNodes() { - return and(); - } - - - } - -} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2ResourceClassListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2ResourceClassListBuilder.java deleted file mode 100644 index b0ce0b08c2..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2ResourceClassListBuilder.java +++ /dev/null @@ -1,34 +0,0 @@ -package io.kubernetes.client.openapi.models; - -import io.kubernetes.client.fluent.VisitableBuilder; -public class V1alpha2ResourceClassListBuilder extends V1alpha2ResourceClassListFluent implements VisitableBuilder{ - public V1alpha2ResourceClassListBuilder() { - this(new V1alpha2ResourceClassList()); - } - - public V1alpha2ResourceClassListBuilder(V1alpha2ResourceClassListFluent fluent) { - this(fluent, new V1alpha2ResourceClassList()); - } - - public V1alpha2ResourceClassListBuilder(V1alpha2ResourceClassListFluent fluent,V1alpha2ResourceClassList instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - - public V1alpha2ResourceClassListBuilder(V1alpha2ResourceClassList instance) { - this.fluent = this; - this.copyInstance(instance); - } - V1alpha2ResourceClassListFluent fluent; - - public V1alpha2ResourceClassList build() { - V1alpha2ResourceClassList buildable = new V1alpha2ResourceClassList(); - buildable.setApiVersion(fluent.getApiVersion()); - buildable.setItems(fluent.buildItems()); - buildable.setKind(fluent.getKind()); - buildable.setMetadata(fluent.buildMetadata()); - return buildable; - } - - -} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2ResourceClassListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2ResourceClassListFluent.java deleted file mode 100644 index e085f41d6e..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2ResourceClassListFluent.java +++ /dev/null @@ -1,319 +0,0 @@ -package io.kubernetes.client.openapi.models; - -import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.Nested; -import java.util.ArrayList; -import java.lang.String; -import java.util.function.Predicate; -import io.kubernetes.client.fluent.BaseFluent; -import java.util.Iterator; -import java.util.Collection; -import java.lang.Object; -import java.util.List; - -/** - * Generated - */ -@SuppressWarnings("unchecked") -public class V1alpha2ResourceClassListFluent> extends BaseFluent{ - public V1alpha2ResourceClassListFluent() { - } - - public V1alpha2ResourceClassListFluent(V1alpha2ResourceClassList instance) { - this.copyInstance(instance); - } - private String apiVersion; - private ArrayList items; - private String kind; - private V1ListMetaBuilder metadata; - - protected void copyInstance(V1alpha2ResourceClassList instance) { - instance = (instance != null ? instance : new V1alpha2ResourceClassList()); - if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withItems(instance.getItems()); - this.withKind(instance.getKind()); - this.withMetadata(instance.getMetadata()); - } - } - - public String getApiVersion() { - return this.apiVersion; - } - - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; - } - - public boolean hasApiVersion() { - return this.apiVersion != null; - } - - public A addToItems(int index,V1alpha2ResourceClass item) { - if (this.items == null) {this.items = new ArrayList();} - V1alpha2ResourceClassBuilder builder = new V1alpha2ResourceClassBuilder(item); - if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); items.add(builder); } else { _visitables.get("items").add(index, builder); items.add(index, builder);} - return (A)this; - } - - public A setToItems(int index,V1alpha2ResourceClass item) { - if (this.items == null) {this.items = new ArrayList();} - V1alpha2ResourceClassBuilder builder = new V1alpha2ResourceClassBuilder(item); - if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); items.add(builder); } else { _visitables.get("items").set(index, builder); items.set(index, builder);} - return (A)this; - } - - public A addToItems(io.kubernetes.client.openapi.models.V1alpha2ResourceClass... items) { - if (this.items == null) {this.items = new ArrayList();} - for (V1alpha2ResourceClass item : items) {V1alpha2ResourceClassBuilder builder = new V1alpha2ResourceClassBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; - } - - public A addAllToItems(Collection items) { - if (this.items == null) {this.items = new ArrayList();} - for (V1alpha2ResourceClass item : items) {V1alpha2ResourceClassBuilder builder = new V1alpha2ResourceClassBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; - } - - public A removeFromItems(io.kubernetes.client.openapi.models.V1alpha2ResourceClass... items) { - if (this.items == null) return (A)this; - for (V1alpha2ResourceClass item : items) {V1alpha2ResourceClassBuilder builder = new V1alpha2ResourceClassBuilder(item);_visitables.get("items").remove(builder); this.items.remove(builder);} return (A)this; - } - - public A removeAllFromItems(Collection items) { - if (this.items == null) return (A)this; - for (V1alpha2ResourceClass item : items) {V1alpha2ResourceClassBuilder builder = new V1alpha2ResourceClassBuilder(item);_visitables.get("items").remove(builder); this.items.remove(builder);} return (A)this; - } - - public A removeMatchingFromItems(Predicate predicate) { - if (items == null) return (A) this; - final Iterator each = items.iterator(); - final List visitables = _visitables.get("items"); - while (each.hasNext()) { - V1alpha2ResourceClassBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } - } - return (A)this; - } - - public List buildItems() { - return this.items != null ? build(items) : null; - } - - public V1alpha2ResourceClass buildItem(int index) { - return this.items.get(index).build(); - } - - public V1alpha2ResourceClass buildFirstItem() { - return this.items.get(0).build(); - } - - public V1alpha2ResourceClass buildLastItem() { - return this.items.get(items.size() - 1).build(); - } - - public V1alpha2ResourceClass buildMatchingItem(Predicate predicate) { - for (V1alpha2ResourceClassBuilder item : items) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; - } - - public boolean hasMatchingItem(Predicate predicate) { - for (V1alpha2ResourceClassBuilder item : items) { - if (predicate.test(item)) { - return true; - } - } - return false; - } - - public A withItems(List items) { - if (this.items != null) { - this._visitables.get("items").clear(); - } - if (items != null) { - this.items = new ArrayList(); - for (V1alpha2ResourceClass item : items) { - this.addToItems(item); - } - } else { - this.items = null; - } - return (A) this; - } - - public A withItems(io.kubernetes.client.openapi.models.V1alpha2ResourceClass... items) { - if (this.items != null) { - this.items.clear(); - _visitables.remove("items"); - } - if (items != null) { - for (V1alpha2ResourceClass item : items) { - this.addToItems(item); - } - } - return (A) this; - } - - public boolean hasItems() { - return this.items != null && !this.items.isEmpty(); - } - - public ItemsNested addNewItem() { - return new ItemsNested(-1, null); - } - - public ItemsNested addNewItemLike(V1alpha2ResourceClass item) { - return new ItemsNested(-1, item); - } - - public ItemsNested setNewItemLike(int index,V1alpha2ResourceClass item) { - return new ItemsNested(index, item); - } - - public ItemsNested editItem(int index) { - if (items.size() <= index) throw new RuntimeException("Can't edit items. Index exceeds size."); - return setNewItemLike(index, buildItem(index)); - } - - public ItemsNested editFirstItem() { - if (items.size() == 0) throw new RuntimeException("Can't edit first items. The list is empty."); - return setNewItemLike(0, buildItem(0)); - } - - public ItemsNested editLastItem() { - int index = items.size() - 1; - if (index < 0) throw new RuntimeException("Can't edit last items. The list is empty."); - return setNewItemLike(index, buildItem(index)); - } - - public ItemsNested editMatchingItem(Predicate predicate) { - int index = -1; - for (int i=0;i withNewMetadata() { - return new MetadataNested(null); - } - - public MetadataNested withNewMetadataLike(V1ListMeta item) { - return new MetadataNested(item); - } - - public MetadataNested editMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(null)); - } - - public MetadataNested editOrNewMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(new V1ListMetaBuilder().build())); - } - - public MetadataNested editOrNewMetadataLike(V1ListMeta item) { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(item)); - } - - public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; - V1alpha2ResourceClassListFluent that = (V1alpha2ResourceClassListFluent) o; - if (!java.util.Objects.equals(apiVersion, that.apiVersion)) return false; - if (!java.util.Objects.equals(items, that.items)) return false; - if (!java.util.Objects.equals(kind, that.kind)) return false; - if (!java.util.Objects.equals(metadata, that.metadata)) return false; - return true; - } - - public int hashCode() { - return java.util.Objects.hash(apiVersion, items, kind, metadata, super.hashCode()); - } - - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("{"); - if (apiVersion != null) { sb.append("apiVersion:"); sb.append(apiVersion + ","); } - if (items != null && !items.isEmpty()) { sb.append("items:"); sb.append(items + ","); } - if (kind != null) { sb.append("kind:"); sb.append(kind + ","); } - if (metadata != null) { sb.append("metadata:"); sb.append(metadata); } - sb.append("}"); - return sb.toString(); - } - public class ItemsNested extends V1alpha2ResourceClassFluent> implements Nested{ - ItemsNested(int index,V1alpha2ResourceClass item) { - this.index = index; - this.builder = new V1alpha2ResourceClassBuilder(this, item); - } - V1alpha2ResourceClassBuilder builder; - int index; - - public N and() { - return (N) V1alpha2ResourceClassListFluent.this.setToItems(index,builder.build()); - } - - public N endItem() { - return and(); - } - - - } - public class MetadataNested extends V1ListMetaFluent> implements Nested{ - MetadataNested(V1ListMeta item) { - this.builder = new V1ListMetaBuilder(this, item); - } - V1ListMetaBuilder builder; - - public N and() { - return (N) V1alpha2ResourceClassListFluent.this.withMetadata(builder.build()); - } - - public N endMetadata() { - return and(); - } - - - } - -} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2ResourceClassParametersReferenceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2ResourceClassParametersReferenceBuilder.java deleted file mode 100644 index d8548759c0..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2ResourceClassParametersReferenceBuilder.java +++ /dev/null @@ -1,34 +0,0 @@ -package io.kubernetes.client.openapi.models; - -import io.kubernetes.client.fluent.VisitableBuilder; -public class V1alpha2ResourceClassParametersReferenceBuilder extends V1alpha2ResourceClassParametersReferenceFluent implements VisitableBuilder{ - public V1alpha2ResourceClassParametersReferenceBuilder() { - this(new V1alpha2ResourceClassParametersReference()); - } - - public V1alpha2ResourceClassParametersReferenceBuilder(V1alpha2ResourceClassParametersReferenceFluent fluent) { - this(fluent, new V1alpha2ResourceClassParametersReference()); - } - - public V1alpha2ResourceClassParametersReferenceBuilder(V1alpha2ResourceClassParametersReferenceFluent fluent,V1alpha2ResourceClassParametersReference instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - - public V1alpha2ResourceClassParametersReferenceBuilder(V1alpha2ResourceClassParametersReference instance) { - this.fluent = this; - this.copyInstance(instance); - } - V1alpha2ResourceClassParametersReferenceFluent fluent; - - public V1alpha2ResourceClassParametersReference build() { - V1alpha2ResourceClassParametersReference buildable = new V1alpha2ResourceClassParametersReference(); - buildable.setApiGroup(fluent.getApiGroup()); - buildable.setKind(fluent.getKind()); - buildable.setName(fluent.getName()); - buildable.setNamespace(fluent.getNamespace()); - return buildable; - } - - -} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2ResourceClassParametersReferenceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2ResourceClassParametersReferenceFluent.java deleted file mode 100644 index a8a59a32b6..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2ResourceClassParametersReferenceFluent.java +++ /dev/null @@ -1,114 +0,0 @@ -package io.kubernetes.client.openapi.models; - -import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.BaseFluent; -import java.lang.Object; -import java.lang.String; - -/** - * Generated - */ -@SuppressWarnings("unchecked") -public class V1alpha2ResourceClassParametersReferenceFluent> extends BaseFluent{ - public V1alpha2ResourceClassParametersReferenceFluent() { - } - - public V1alpha2ResourceClassParametersReferenceFluent(V1alpha2ResourceClassParametersReference instance) { - this.copyInstance(instance); - } - private String apiGroup; - private String kind; - private String name; - private String namespace; - - protected void copyInstance(V1alpha2ResourceClassParametersReference instance) { - instance = (instance != null ? instance : new V1alpha2ResourceClassParametersReference()); - if (instance != null) { - this.withApiGroup(instance.getApiGroup()); - this.withKind(instance.getKind()); - this.withName(instance.getName()); - this.withNamespace(instance.getNamespace()); - } - } - - public String getApiGroup() { - return this.apiGroup; - } - - public A withApiGroup(String apiGroup) { - this.apiGroup = apiGroup; - return (A) this; - } - - public boolean hasApiGroup() { - return this.apiGroup != null; - } - - public String getKind() { - return this.kind; - } - - public A withKind(String kind) { - this.kind = kind; - return (A) this; - } - - public boolean hasKind() { - return this.kind != null; - } - - public String getName() { - return this.name; - } - - public A withName(String name) { - this.name = name; - return (A) this; - } - - public boolean hasName() { - return this.name != null; - } - - public String getNamespace() { - return this.namespace; - } - - public A withNamespace(String namespace) { - this.namespace = namespace; - return (A) this; - } - - public boolean hasNamespace() { - return this.namespace != null; - } - - public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; - V1alpha2ResourceClassParametersReferenceFluent that = (V1alpha2ResourceClassParametersReferenceFluent) o; - if (!java.util.Objects.equals(apiGroup, that.apiGroup)) return false; - if (!java.util.Objects.equals(kind, that.kind)) return false; - if (!java.util.Objects.equals(name, that.name)) return false; - if (!java.util.Objects.equals(namespace, that.namespace)) return false; - return true; - } - - public int hashCode() { - return java.util.Objects.hash(apiGroup, kind, name, namespace, super.hashCode()); - } - - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("{"); - if (apiGroup != null) { sb.append("apiGroup:"); sb.append(apiGroup + ","); } - if (kind != null) { sb.append("kind:"); sb.append(kind + ","); } - if (name != null) { sb.append("name:"); sb.append(name + ","); } - if (namespace != null) { sb.append("namespace:"); sb.append(namespace); } - sb.append("}"); - return sb.toString(); - } - - -} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2ResourceHandleBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2ResourceHandleBuilder.java deleted file mode 100644 index 3a2ecad212..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2ResourceHandleBuilder.java +++ /dev/null @@ -1,32 +0,0 @@ -package io.kubernetes.client.openapi.models; - -import io.kubernetes.client.fluent.VisitableBuilder; -public class V1alpha2ResourceHandleBuilder extends V1alpha2ResourceHandleFluent implements VisitableBuilder{ - public V1alpha2ResourceHandleBuilder() { - this(new V1alpha2ResourceHandle()); - } - - public V1alpha2ResourceHandleBuilder(V1alpha2ResourceHandleFluent fluent) { - this(fluent, new V1alpha2ResourceHandle()); - } - - public V1alpha2ResourceHandleBuilder(V1alpha2ResourceHandleFluent fluent,V1alpha2ResourceHandle instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - - public V1alpha2ResourceHandleBuilder(V1alpha2ResourceHandle instance) { - this.fluent = this; - this.copyInstance(instance); - } - V1alpha2ResourceHandleFluent fluent; - - public V1alpha2ResourceHandle build() { - V1alpha2ResourceHandle buildable = new V1alpha2ResourceHandle(); - buildable.setData(fluent.getData()); - buildable.setDriverName(fluent.getDriverName()); - return buildable; - } - - -} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2ResourceHandleFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2ResourceHandleFluent.java deleted file mode 100644 index 9cafedb6ed..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2ResourceHandleFluent.java +++ /dev/null @@ -1,80 +0,0 @@ -package io.kubernetes.client.openapi.models; - -import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.BaseFluent; -import java.lang.Object; -import java.lang.String; - -/** - * Generated - */ -@SuppressWarnings("unchecked") -public class V1alpha2ResourceHandleFluent> extends BaseFluent{ - public V1alpha2ResourceHandleFluent() { - } - - public V1alpha2ResourceHandleFluent(V1alpha2ResourceHandle instance) { - this.copyInstance(instance); - } - private String data; - private String driverName; - - protected void copyInstance(V1alpha2ResourceHandle instance) { - instance = (instance != null ? instance : new V1alpha2ResourceHandle()); - if (instance != null) { - this.withData(instance.getData()); - this.withDriverName(instance.getDriverName()); - } - } - - public String getData() { - return this.data; - } - - public A withData(String data) { - this.data = data; - return (A) this; - } - - public boolean hasData() { - return this.data != null; - } - - public String getDriverName() { - return this.driverName; - } - - public A withDriverName(String driverName) { - this.driverName = driverName; - return (A) this; - } - - public boolean hasDriverName() { - return this.driverName != null; - } - - public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; - V1alpha2ResourceHandleFluent that = (V1alpha2ResourceHandleFluent) o; - if (!java.util.Objects.equals(data, that.data)) return false; - if (!java.util.Objects.equals(driverName, that.driverName)) return false; - return true; - } - - public int hashCode() { - return java.util.Objects.hash(data, driverName, super.hashCode()); - } - - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("{"); - if (data != null) { sb.append("data:"); sb.append(data + ","); } - if (driverName != null) { sb.append("driverName:"); sb.append(driverName); } - sb.append("}"); - return sb.toString(); - } - - -} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3AllocatedDeviceStatusBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3AllocatedDeviceStatusBuilder.java new file mode 100644 index 0000000000..799d7a8023 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3AllocatedDeviceStatusBuilder.java @@ -0,0 +1,36 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +public class V1alpha3AllocatedDeviceStatusBuilder extends V1alpha3AllocatedDeviceStatusFluent implements VisitableBuilder{ + public V1alpha3AllocatedDeviceStatusBuilder() { + this(new V1alpha3AllocatedDeviceStatus()); + } + + public V1alpha3AllocatedDeviceStatusBuilder(V1alpha3AllocatedDeviceStatusFluent fluent) { + this(fluent, new V1alpha3AllocatedDeviceStatus()); + } + + public V1alpha3AllocatedDeviceStatusBuilder(V1alpha3AllocatedDeviceStatusFluent fluent,V1alpha3AllocatedDeviceStatus instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1alpha3AllocatedDeviceStatusBuilder(V1alpha3AllocatedDeviceStatus instance) { + this.fluent = this; + this.copyInstance(instance); + } + V1alpha3AllocatedDeviceStatusFluent fluent; + + public V1alpha3AllocatedDeviceStatus build() { + V1alpha3AllocatedDeviceStatus buildable = new V1alpha3AllocatedDeviceStatus(); + buildable.setConditions(fluent.buildConditions()); + buildable.setData(fluent.getData()); + buildable.setDevice(fluent.getDevice()); + buildable.setDriver(fluent.getDriver()); + buildable.setNetworkData(fluent.buildNetworkData()); + buildable.setPool(fluent.getPool()); + return buildable; + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3AllocatedDeviceStatusFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3AllocatedDeviceStatusFluent.java new file mode 100644 index 0000000000..6d1280febb --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3AllocatedDeviceStatusFluent.java @@ -0,0 +1,365 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.Nested; +import java.util.ArrayList; +import java.lang.String; +import java.util.function.Predicate; +import io.kubernetes.client.fluent.BaseFluent; +import java.util.Iterator; +import java.util.Collection; +import java.lang.Object; +import java.util.List; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1alpha3AllocatedDeviceStatusFluent> extends BaseFluent{ + public V1alpha3AllocatedDeviceStatusFluent() { + } + + public V1alpha3AllocatedDeviceStatusFluent(V1alpha3AllocatedDeviceStatus instance) { + this.copyInstance(instance); + } + private ArrayList conditions; + private Object data; + private String device; + private String driver; + private V1alpha3NetworkDeviceDataBuilder networkData; + private String pool; + + protected void copyInstance(V1alpha3AllocatedDeviceStatus instance) { + instance = (instance != null ? instance : new V1alpha3AllocatedDeviceStatus()); + if (instance != null) { + this.withConditions(instance.getConditions()); + this.withData(instance.getData()); + this.withDevice(instance.getDevice()); + this.withDriver(instance.getDriver()); + this.withNetworkData(instance.getNetworkData()); + this.withPool(instance.getPool()); + } + } + + public A addToConditions(int index,V1Condition item) { + if (this.conditions == null) {this.conditions = new ArrayList();} + V1ConditionBuilder builder = new V1ConditionBuilder(item); + if (index < 0 || index >= conditions.size()) { + _visitables.get("conditions").add(builder); + conditions.add(builder); + } else { + _visitables.get("conditions").add(builder); + conditions.add(index, builder); + } + return (A)this; + } + + public A setToConditions(int index,V1Condition item) { + if (this.conditions == null) {this.conditions = new ArrayList();} + V1ConditionBuilder builder = new V1ConditionBuilder(item); + if (index < 0 || index >= conditions.size()) { + _visitables.get("conditions").add(builder); + conditions.add(builder); + } else { + _visitables.get("conditions").add(builder); + conditions.set(index, builder); + } + return (A)this; + } + + public A addToConditions(io.kubernetes.client.openapi.models.V1Condition... items) { + if (this.conditions == null) {this.conditions = new ArrayList();} + for (V1Condition item : items) {V1ConditionBuilder builder = new V1ConditionBuilder(item);_visitables.get("conditions").add(builder);this.conditions.add(builder);} return (A)this; + } + + public A addAllToConditions(Collection items) { + if (this.conditions == null) {this.conditions = new ArrayList();} + for (V1Condition item : items) {V1ConditionBuilder builder = new V1ConditionBuilder(item);_visitables.get("conditions").add(builder);this.conditions.add(builder);} return (A)this; + } + + public A removeFromConditions(io.kubernetes.client.openapi.models.V1Condition... items) { + if (this.conditions == null) return (A)this; + for (V1Condition item : items) {V1ConditionBuilder builder = new V1ConditionBuilder(item);_visitables.get("conditions").remove(builder); this.conditions.remove(builder);} return (A)this; + } + + public A removeAllFromConditions(Collection items) { + if (this.conditions == null) return (A)this; + for (V1Condition item : items) {V1ConditionBuilder builder = new V1ConditionBuilder(item);_visitables.get("conditions").remove(builder); this.conditions.remove(builder);} return (A)this; + } + + public A removeMatchingFromConditions(Predicate predicate) { + if (conditions == null) return (A) this; + final Iterator each = conditions.iterator(); + final List visitables = _visitables.get("conditions"); + while (each.hasNext()) { + V1ConditionBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A)this; + } + + public List buildConditions() { + return this.conditions != null ? build(conditions) : null; + } + + public V1Condition buildCondition(int index) { + return this.conditions.get(index).build(); + } + + public V1Condition buildFirstCondition() { + return this.conditions.get(0).build(); + } + + public V1Condition buildLastCondition() { + return this.conditions.get(conditions.size() - 1).build(); + } + + public V1Condition buildMatchingCondition(Predicate predicate) { + for (V1ConditionBuilder item : conditions) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; + } + + public boolean hasMatchingCondition(Predicate predicate) { + for (V1ConditionBuilder item : conditions) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public A withConditions(List conditions) { + if (this.conditions != null) { + this._visitables.get("conditions").clear(); + } + if (conditions != null) { + this.conditions = new ArrayList(); + for (V1Condition item : conditions) { + this.addToConditions(item); + } + } else { + this.conditions = null; + } + return (A) this; + } + + public A withConditions(io.kubernetes.client.openapi.models.V1Condition... conditions) { + if (this.conditions != null) { + this.conditions.clear(); + _visitables.remove("conditions"); + } + if (conditions != null) { + for (V1Condition item : conditions) { + this.addToConditions(item); + } + } + return (A) this; + } + + public boolean hasConditions() { + return this.conditions != null && !this.conditions.isEmpty(); + } + + public ConditionsNested addNewCondition() { + return new ConditionsNested(-1, null); + } + + public ConditionsNested addNewConditionLike(V1Condition item) { + return new ConditionsNested(-1, item); + } + + public ConditionsNested setNewConditionLike(int index,V1Condition item) { + return new ConditionsNested(index, item); + } + + public ConditionsNested editCondition(int index) { + if (conditions.size() <= index) throw new RuntimeException("Can't edit conditions. Index exceeds size."); + return setNewConditionLike(index, buildCondition(index)); + } + + public ConditionsNested editFirstCondition() { + if (conditions.size() == 0) throw new RuntimeException("Can't edit first conditions. The list is empty."); + return setNewConditionLike(0, buildCondition(0)); + } + + public ConditionsNested editLastCondition() { + int index = conditions.size() - 1; + if (index < 0) throw new RuntimeException("Can't edit last conditions. The list is empty."); + return setNewConditionLike(index, buildCondition(index)); + } + + public ConditionsNested editMatchingCondition(Predicate predicate) { + int index = -1; + for (int i=0;i withNewNetworkData() { + return new NetworkDataNested(null); + } + + public NetworkDataNested withNewNetworkDataLike(V1alpha3NetworkDeviceData item) { + return new NetworkDataNested(item); + } + + public NetworkDataNested editNetworkData() { + return withNewNetworkDataLike(java.util.Optional.ofNullable(buildNetworkData()).orElse(null)); + } + + public NetworkDataNested editOrNewNetworkData() { + return withNewNetworkDataLike(java.util.Optional.ofNullable(buildNetworkData()).orElse(new V1alpha3NetworkDeviceDataBuilder().build())); + } + + public NetworkDataNested editOrNewNetworkDataLike(V1alpha3NetworkDeviceData item) { + return withNewNetworkDataLike(java.util.Optional.ofNullable(buildNetworkData()).orElse(item)); + } + + public String getPool() { + return this.pool; + } + + public A withPool(String pool) { + this.pool = pool; + return (A) this; + } + + public boolean hasPool() { + return this.pool != null; + } + + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + if (!super.equals(o)) return false; + V1alpha3AllocatedDeviceStatusFluent that = (V1alpha3AllocatedDeviceStatusFluent) o; + if (!java.util.Objects.equals(conditions, that.conditions)) return false; + if (!java.util.Objects.equals(data, that.data)) return false; + if (!java.util.Objects.equals(device, that.device)) return false; + if (!java.util.Objects.equals(driver, that.driver)) return false; + if (!java.util.Objects.equals(networkData, that.networkData)) return false; + if (!java.util.Objects.equals(pool, that.pool)) return false; + return true; + } + + public int hashCode() { + return java.util.Objects.hash(conditions, data, device, driver, networkData, pool, super.hashCode()); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (conditions != null && !conditions.isEmpty()) { sb.append("conditions:"); sb.append(conditions + ","); } + if (data != null) { sb.append("data:"); sb.append(data + ","); } + if (device != null) { sb.append("device:"); sb.append(device + ","); } + if (driver != null) { sb.append("driver:"); sb.append(driver + ","); } + if (networkData != null) { sb.append("networkData:"); sb.append(networkData + ","); } + if (pool != null) { sb.append("pool:"); sb.append(pool); } + sb.append("}"); + return sb.toString(); + } + public class ConditionsNested extends V1ConditionFluent> implements Nested{ + ConditionsNested(int index,V1Condition item) { + this.index = index; + this.builder = new V1ConditionBuilder(this, item); + } + V1ConditionBuilder builder; + int index; + + public N and() { + return (N) V1alpha3AllocatedDeviceStatusFluent.this.setToConditions(index,builder.build()); + } + + public N endCondition() { + return and(); + } + + + } + public class NetworkDataNested extends V1alpha3NetworkDeviceDataFluent> implements Nested{ + NetworkDataNested(V1alpha3NetworkDeviceData item) { + this.builder = new V1alpha3NetworkDeviceDataBuilder(this, item); + } + V1alpha3NetworkDeviceDataBuilder builder; + + public N and() { + return (N) V1alpha3AllocatedDeviceStatusFluent.this.withNetworkData(builder.build()); + } + + public N endNetworkData() { + return and(); + } + + + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3AllocationResultBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3AllocationResultBuilder.java new file mode 100644 index 0000000000..db989c6b63 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3AllocationResultBuilder.java @@ -0,0 +1,32 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +public class V1alpha3AllocationResultBuilder extends V1alpha3AllocationResultFluent implements VisitableBuilder{ + public V1alpha3AllocationResultBuilder() { + this(new V1alpha3AllocationResult()); + } + + public V1alpha3AllocationResultBuilder(V1alpha3AllocationResultFluent fluent) { + this(fluent, new V1alpha3AllocationResult()); + } + + public V1alpha3AllocationResultBuilder(V1alpha3AllocationResultFluent fluent,V1alpha3AllocationResult instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1alpha3AllocationResultBuilder(V1alpha3AllocationResult instance) { + this.fluent = this; + this.copyInstance(instance); + } + V1alpha3AllocationResultFluent fluent; + + public V1alpha3AllocationResult build() { + V1alpha3AllocationResult buildable = new V1alpha3AllocationResult(); + buildable.setDevices(fluent.buildDevices()); + buildable.setNodeSelector(fluent.buildNodeSelector()); + return buildable; + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3AllocationResultFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3AllocationResultFluent.java new file mode 100644 index 0000000000..27b40c8dcd --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3AllocationResultFluent.java @@ -0,0 +1,166 @@ +package io.kubernetes.client.openapi.models; + +import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.Nested; +import java.lang.String; +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Object; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1alpha3AllocationResultFluent> extends BaseFluent{ + public V1alpha3AllocationResultFluent() { + } + + public V1alpha3AllocationResultFluent(V1alpha3AllocationResult instance) { + this.copyInstance(instance); + } + private V1alpha3DeviceAllocationResultBuilder devices; + private V1NodeSelectorBuilder nodeSelector; + + protected void copyInstance(V1alpha3AllocationResult instance) { + instance = (instance != null ? instance : new V1alpha3AllocationResult()); + if (instance != null) { + this.withDevices(instance.getDevices()); + this.withNodeSelector(instance.getNodeSelector()); + } + } + + public V1alpha3DeviceAllocationResult buildDevices() { + return this.devices != null ? this.devices.build() : null; + } + + public A withDevices(V1alpha3DeviceAllocationResult devices) { + this._visitables.remove("devices"); + if (devices != null) { + this.devices = new V1alpha3DeviceAllocationResultBuilder(devices); + this._visitables.get("devices").add(this.devices); + } else { + this.devices = null; + this._visitables.get("devices").remove(this.devices); + } + return (A) this; + } + + public boolean hasDevices() { + return this.devices != null; + } + + public DevicesNested withNewDevices() { + return new DevicesNested(null); + } + + public DevicesNested withNewDevicesLike(V1alpha3DeviceAllocationResult item) { + return new DevicesNested(item); + } + + public DevicesNested editDevices() { + return withNewDevicesLike(java.util.Optional.ofNullable(buildDevices()).orElse(null)); + } + + public DevicesNested editOrNewDevices() { + return withNewDevicesLike(java.util.Optional.ofNullable(buildDevices()).orElse(new V1alpha3DeviceAllocationResultBuilder().build())); + } + + public DevicesNested editOrNewDevicesLike(V1alpha3DeviceAllocationResult item) { + return withNewDevicesLike(java.util.Optional.ofNullable(buildDevices()).orElse(item)); + } + + public V1NodeSelector buildNodeSelector() { + return this.nodeSelector != null ? this.nodeSelector.build() : null; + } + + public A withNodeSelector(V1NodeSelector nodeSelector) { + this._visitables.remove("nodeSelector"); + if (nodeSelector != null) { + this.nodeSelector = new V1NodeSelectorBuilder(nodeSelector); + this._visitables.get("nodeSelector").add(this.nodeSelector); + } else { + this.nodeSelector = null; + this._visitables.get("nodeSelector").remove(this.nodeSelector); + } + return (A) this; + } + + public boolean hasNodeSelector() { + return this.nodeSelector != null; + } + + public NodeSelectorNested withNewNodeSelector() { + return new NodeSelectorNested(null); + } + + public NodeSelectorNested withNewNodeSelectorLike(V1NodeSelector item) { + return new NodeSelectorNested(item); + } + + public NodeSelectorNested editNodeSelector() { + return withNewNodeSelectorLike(java.util.Optional.ofNullable(buildNodeSelector()).orElse(null)); + } + + public NodeSelectorNested editOrNewNodeSelector() { + return withNewNodeSelectorLike(java.util.Optional.ofNullable(buildNodeSelector()).orElse(new V1NodeSelectorBuilder().build())); + } + + public NodeSelectorNested editOrNewNodeSelectorLike(V1NodeSelector item) { + return withNewNodeSelectorLike(java.util.Optional.ofNullable(buildNodeSelector()).orElse(item)); + } + + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + if (!super.equals(o)) return false; + V1alpha3AllocationResultFluent that = (V1alpha3AllocationResultFluent) o; + if (!java.util.Objects.equals(devices, that.devices)) return false; + if (!java.util.Objects.equals(nodeSelector, that.nodeSelector)) return false; + return true; + } + + public int hashCode() { + return java.util.Objects.hash(devices, nodeSelector, super.hashCode()); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (devices != null) { sb.append("devices:"); sb.append(devices + ","); } + if (nodeSelector != null) { sb.append("nodeSelector:"); sb.append(nodeSelector); } + sb.append("}"); + return sb.toString(); + } + public class DevicesNested extends V1alpha3DeviceAllocationResultFluent> implements Nested{ + DevicesNested(V1alpha3DeviceAllocationResult item) { + this.builder = new V1alpha3DeviceAllocationResultBuilder(this, item); + } + V1alpha3DeviceAllocationResultBuilder builder; + + public N and() { + return (N) V1alpha3AllocationResultFluent.this.withDevices(builder.build()); + } + + public N endDevices() { + return and(); + } + + + } + public class NodeSelectorNested extends V1NodeSelectorFluent> implements Nested{ + NodeSelectorNested(V1NodeSelector item) { + this.builder = new V1NodeSelectorBuilder(this, item); + } + V1NodeSelectorBuilder builder; + + public N and() { + return (N) V1alpha3AllocationResultFluent.this.withNodeSelector(builder.build()); + } + + public N endNodeSelector() { + return and(); + } + + + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3BasicDeviceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3BasicDeviceBuilder.java new file mode 100644 index 0000000000..0d09544d37 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3BasicDeviceBuilder.java @@ -0,0 +1,37 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +public class V1alpha3BasicDeviceBuilder extends V1alpha3BasicDeviceFluent implements VisitableBuilder{ + public V1alpha3BasicDeviceBuilder() { + this(new V1alpha3BasicDevice()); + } + + public V1alpha3BasicDeviceBuilder(V1alpha3BasicDeviceFluent fluent) { + this(fluent, new V1alpha3BasicDevice()); + } + + public V1alpha3BasicDeviceBuilder(V1alpha3BasicDeviceFluent fluent,V1alpha3BasicDevice instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1alpha3BasicDeviceBuilder(V1alpha3BasicDevice instance) { + this.fluent = this; + this.copyInstance(instance); + } + V1alpha3BasicDeviceFluent fluent; + + public V1alpha3BasicDevice build() { + V1alpha3BasicDevice buildable = new V1alpha3BasicDevice(); + buildable.setAllNodes(fluent.getAllNodes()); + buildable.setAttributes(fluent.getAttributes()); + buildable.setCapacity(fluent.getCapacity()); + buildable.setConsumesCounters(fluent.buildConsumesCounters()); + buildable.setNodeName(fluent.getNodeName()); + buildable.setNodeSelector(fluent.buildNodeSelector()); + buildable.setTaints(fluent.buildTaints()); + return buildable; + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3BasicDeviceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3BasicDeviceFluent.java new file mode 100644 index 0000000000..7c30addc94 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3BasicDeviceFluent.java @@ -0,0 +1,606 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.Nested; +import java.util.ArrayList; +import java.lang.String; +import java.util.LinkedHashMap; +import java.util.function.Predicate; +import io.kubernetes.client.fluent.BaseFluent; +import java.util.Iterator; +import java.util.List; +import java.lang.Boolean; +import io.kubernetes.client.custom.Quantity; +import java.util.Collection; +import java.lang.Object; +import java.util.Map; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1alpha3BasicDeviceFluent> extends BaseFluent{ + public V1alpha3BasicDeviceFluent() { + } + + public V1alpha3BasicDeviceFluent(V1alpha3BasicDevice instance) { + this.copyInstance(instance); + } + private Boolean allNodes; + private Map attributes; + private Map capacity; + private ArrayList consumesCounters; + private String nodeName; + private V1NodeSelectorBuilder nodeSelector; + private ArrayList taints; + + protected void copyInstance(V1alpha3BasicDevice instance) { + instance = (instance != null ? instance : new V1alpha3BasicDevice()); + if (instance != null) { + this.withAllNodes(instance.getAllNodes()); + this.withAttributes(instance.getAttributes()); + this.withCapacity(instance.getCapacity()); + this.withConsumesCounters(instance.getConsumesCounters()); + this.withNodeName(instance.getNodeName()); + this.withNodeSelector(instance.getNodeSelector()); + this.withTaints(instance.getTaints()); + } + } + + public Boolean getAllNodes() { + return this.allNodes; + } + + public A withAllNodes(Boolean allNodes) { + this.allNodes = allNodes; + return (A) this; + } + + public boolean hasAllNodes() { + return this.allNodes != null; + } + + public A addToAttributes(String key,V1alpha3DeviceAttribute value) { + if(this.attributes == null && key != null && value != null) { this.attributes = new LinkedHashMap(); } + if(key != null && value != null) {this.attributes.put(key, value);} return (A)this; + } + + public A addToAttributes(Map map) { + if(this.attributes == null && map != null) { this.attributes = new LinkedHashMap(); } + if(map != null) { this.attributes.putAll(map);} return (A)this; + } + + public A removeFromAttributes(String key) { + if(this.attributes == null) { return (A) this; } + if(key != null && this.attributes != null) {this.attributes.remove(key);} return (A)this; + } + + public A removeFromAttributes(Map map) { + if(this.attributes == null) { return (A) this; } + if(map != null) { for(Object key : map.keySet()) {if (this.attributes != null){this.attributes.remove(key);}}} return (A)this; + } + + public Map getAttributes() { + return this.attributes; + } + + public A withAttributes(Map attributes) { + if (attributes == null) { + this.attributes = null; + } else { + this.attributes = new LinkedHashMap(attributes); + } + return (A) this; + } + + public boolean hasAttributes() { + return this.attributes != null; + } + + public A addToCapacity(String key,Quantity value) { + if(this.capacity == null && key != null && value != null) { this.capacity = new LinkedHashMap(); } + if(key != null && value != null) {this.capacity.put(key, value);} return (A)this; + } + + public A addToCapacity(Map map) { + if(this.capacity == null && map != null) { this.capacity = new LinkedHashMap(); } + if(map != null) { this.capacity.putAll(map);} return (A)this; + } + + public A removeFromCapacity(String key) { + if(this.capacity == null) { return (A) this; } + if(key != null && this.capacity != null) {this.capacity.remove(key);} return (A)this; + } + + public A removeFromCapacity(Map map) { + if(this.capacity == null) { return (A) this; } + if(map != null) { for(Object key : map.keySet()) {if (this.capacity != null){this.capacity.remove(key);}}} return (A)this; + } + + public Map getCapacity() { + return this.capacity; + } + + public A withCapacity(Map capacity) { + if (capacity == null) { + this.capacity = null; + } else { + this.capacity = new LinkedHashMap(capacity); + } + return (A) this; + } + + public boolean hasCapacity() { + return this.capacity != null; + } + + public A addToConsumesCounters(int index,V1alpha3DeviceCounterConsumption item) { + if (this.consumesCounters == null) {this.consumesCounters = new ArrayList();} + V1alpha3DeviceCounterConsumptionBuilder builder = new V1alpha3DeviceCounterConsumptionBuilder(item); + if (index < 0 || index >= consumesCounters.size()) { + _visitables.get("consumesCounters").add(builder); + consumesCounters.add(builder); + } else { + _visitables.get("consumesCounters").add(builder); + consumesCounters.add(index, builder); + } + return (A)this; + } + + public A setToConsumesCounters(int index,V1alpha3DeviceCounterConsumption item) { + if (this.consumesCounters == null) {this.consumesCounters = new ArrayList();} + V1alpha3DeviceCounterConsumptionBuilder builder = new V1alpha3DeviceCounterConsumptionBuilder(item); + if (index < 0 || index >= consumesCounters.size()) { + _visitables.get("consumesCounters").add(builder); + consumesCounters.add(builder); + } else { + _visitables.get("consumesCounters").add(builder); + consumesCounters.set(index, builder); + } + return (A)this; + } + + public A addToConsumesCounters(io.kubernetes.client.openapi.models.V1alpha3DeviceCounterConsumption... items) { + if (this.consumesCounters == null) {this.consumesCounters = new ArrayList();} + for (V1alpha3DeviceCounterConsumption item : items) {V1alpha3DeviceCounterConsumptionBuilder builder = new V1alpha3DeviceCounterConsumptionBuilder(item);_visitables.get("consumesCounters").add(builder);this.consumesCounters.add(builder);} return (A)this; + } + + public A addAllToConsumesCounters(Collection items) { + if (this.consumesCounters == null) {this.consumesCounters = new ArrayList();} + for (V1alpha3DeviceCounterConsumption item : items) {V1alpha3DeviceCounterConsumptionBuilder builder = new V1alpha3DeviceCounterConsumptionBuilder(item);_visitables.get("consumesCounters").add(builder);this.consumesCounters.add(builder);} return (A)this; + } + + public A removeFromConsumesCounters(io.kubernetes.client.openapi.models.V1alpha3DeviceCounterConsumption... items) { + if (this.consumesCounters == null) return (A)this; + for (V1alpha3DeviceCounterConsumption item : items) {V1alpha3DeviceCounterConsumptionBuilder builder = new V1alpha3DeviceCounterConsumptionBuilder(item);_visitables.get("consumesCounters").remove(builder); this.consumesCounters.remove(builder);} return (A)this; + } + + public A removeAllFromConsumesCounters(Collection items) { + if (this.consumesCounters == null) return (A)this; + for (V1alpha3DeviceCounterConsumption item : items) {V1alpha3DeviceCounterConsumptionBuilder builder = new V1alpha3DeviceCounterConsumptionBuilder(item);_visitables.get("consumesCounters").remove(builder); this.consumesCounters.remove(builder);} return (A)this; + } + + public A removeMatchingFromConsumesCounters(Predicate predicate) { + if (consumesCounters == null) return (A) this; + final Iterator each = consumesCounters.iterator(); + final List visitables = _visitables.get("consumesCounters"); + while (each.hasNext()) { + V1alpha3DeviceCounterConsumptionBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A)this; + } + + public List buildConsumesCounters() { + return this.consumesCounters != null ? build(consumesCounters) : null; + } + + public V1alpha3DeviceCounterConsumption buildConsumesCounter(int index) { + return this.consumesCounters.get(index).build(); + } + + public V1alpha3DeviceCounterConsumption buildFirstConsumesCounter() { + return this.consumesCounters.get(0).build(); + } + + public V1alpha3DeviceCounterConsumption buildLastConsumesCounter() { + return this.consumesCounters.get(consumesCounters.size() - 1).build(); + } + + public V1alpha3DeviceCounterConsumption buildMatchingConsumesCounter(Predicate predicate) { + for (V1alpha3DeviceCounterConsumptionBuilder item : consumesCounters) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; + } + + public boolean hasMatchingConsumesCounter(Predicate predicate) { + for (V1alpha3DeviceCounterConsumptionBuilder item : consumesCounters) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public A withConsumesCounters(List consumesCounters) { + if (this.consumesCounters != null) { + this._visitables.get("consumesCounters").clear(); + } + if (consumesCounters != null) { + this.consumesCounters = new ArrayList(); + for (V1alpha3DeviceCounterConsumption item : consumesCounters) { + this.addToConsumesCounters(item); + } + } else { + this.consumesCounters = null; + } + return (A) this; + } + + public A withConsumesCounters(io.kubernetes.client.openapi.models.V1alpha3DeviceCounterConsumption... consumesCounters) { + if (this.consumesCounters != null) { + this.consumesCounters.clear(); + _visitables.remove("consumesCounters"); + } + if (consumesCounters != null) { + for (V1alpha3DeviceCounterConsumption item : consumesCounters) { + this.addToConsumesCounters(item); + } + } + return (A) this; + } + + public boolean hasConsumesCounters() { + return this.consumesCounters != null && !this.consumesCounters.isEmpty(); + } + + public ConsumesCountersNested addNewConsumesCounter() { + return new ConsumesCountersNested(-1, null); + } + + public ConsumesCountersNested addNewConsumesCounterLike(V1alpha3DeviceCounterConsumption item) { + return new ConsumesCountersNested(-1, item); + } + + public ConsumesCountersNested setNewConsumesCounterLike(int index,V1alpha3DeviceCounterConsumption item) { + return new ConsumesCountersNested(index, item); + } + + public ConsumesCountersNested editConsumesCounter(int index) { + if (consumesCounters.size() <= index) throw new RuntimeException("Can't edit consumesCounters. Index exceeds size."); + return setNewConsumesCounterLike(index, buildConsumesCounter(index)); + } + + public ConsumesCountersNested editFirstConsumesCounter() { + if (consumesCounters.size() == 0) throw new RuntimeException("Can't edit first consumesCounters. The list is empty."); + return setNewConsumesCounterLike(0, buildConsumesCounter(0)); + } + + public ConsumesCountersNested editLastConsumesCounter() { + int index = consumesCounters.size() - 1; + if (index < 0) throw new RuntimeException("Can't edit last consumesCounters. The list is empty."); + return setNewConsumesCounterLike(index, buildConsumesCounter(index)); + } + + public ConsumesCountersNested editMatchingConsumesCounter(Predicate predicate) { + int index = -1; + for (int i=0;i withNewNodeSelector() { + return new NodeSelectorNested(null); + } + + public NodeSelectorNested withNewNodeSelectorLike(V1NodeSelector item) { + return new NodeSelectorNested(item); + } + + public NodeSelectorNested editNodeSelector() { + return withNewNodeSelectorLike(java.util.Optional.ofNullable(buildNodeSelector()).orElse(null)); + } + + public NodeSelectorNested editOrNewNodeSelector() { + return withNewNodeSelectorLike(java.util.Optional.ofNullable(buildNodeSelector()).orElse(new V1NodeSelectorBuilder().build())); + } + + public NodeSelectorNested editOrNewNodeSelectorLike(V1NodeSelector item) { + return withNewNodeSelectorLike(java.util.Optional.ofNullable(buildNodeSelector()).orElse(item)); + } + + public A addToTaints(int index,V1alpha3DeviceTaint item) { + if (this.taints == null) {this.taints = new ArrayList();} + V1alpha3DeviceTaintBuilder builder = new V1alpha3DeviceTaintBuilder(item); + if (index < 0 || index >= taints.size()) { + _visitables.get("taints").add(builder); + taints.add(builder); + } else { + _visitables.get("taints").add(builder); + taints.add(index, builder); + } + return (A)this; + } + + public A setToTaints(int index,V1alpha3DeviceTaint item) { + if (this.taints == null) {this.taints = new ArrayList();} + V1alpha3DeviceTaintBuilder builder = new V1alpha3DeviceTaintBuilder(item); + if (index < 0 || index >= taints.size()) { + _visitables.get("taints").add(builder); + taints.add(builder); + } else { + _visitables.get("taints").add(builder); + taints.set(index, builder); + } + return (A)this; + } + + public A addToTaints(io.kubernetes.client.openapi.models.V1alpha3DeviceTaint... items) { + if (this.taints == null) {this.taints = new ArrayList();} + for (V1alpha3DeviceTaint item : items) {V1alpha3DeviceTaintBuilder builder = new V1alpha3DeviceTaintBuilder(item);_visitables.get("taints").add(builder);this.taints.add(builder);} return (A)this; + } + + public A addAllToTaints(Collection items) { + if (this.taints == null) {this.taints = new ArrayList();} + for (V1alpha3DeviceTaint item : items) {V1alpha3DeviceTaintBuilder builder = new V1alpha3DeviceTaintBuilder(item);_visitables.get("taints").add(builder);this.taints.add(builder);} return (A)this; + } + + public A removeFromTaints(io.kubernetes.client.openapi.models.V1alpha3DeviceTaint... items) { + if (this.taints == null) return (A)this; + for (V1alpha3DeviceTaint item : items) {V1alpha3DeviceTaintBuilder builder = new V1alpha3DeviceTaintBuilder(item);_visitables.get("taints").remove(builder); this.taints.remove(builder);} return (A)this; + } + + public A removeAllFromTaints(Collection items) { + if (this.taints == null) return (A)this; + for (V1alpha3DeviceTaint item : items) {V1alpha3DeviceTaintBuilder builder = new V1alpha3DeviceTaintBuilder(item);_visitables.get("taints").remove(builder); this.taints.remove(builder);} return (A)this; + } + + public A removeMatchingFromTaints(Predicate predicate) { + if (taints == null) return (A) this; + final Iterator each = taints.iterator(); + final List visitables = _visitables.get("taints"); + while (each.hasNext()) { + V1alpha3DeviceTaintBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A)this; + } + + public List buildTaints() { + return this.taints != null ? build(taints) : null; + } + + public V1alpha3DeviceTaint buildTaint(int index) { + return this.taints.get(index).build(); + } + + public V1alpha3DeviceTaint buildFirstTaint() { + return this.taints.get(0).build(); + } + + public V1alpha3DeviceTaint buildLastTaint() { + return this.taints.get(taints.size() - 1).build(); + } + + public V1alpha3DeviceTaint buildMatchingTaint(Predicate predicate) { + for (V1alpha3DeviceTaintBuilder item : taints) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; + } + + public boolean hasMatchingTaint(Predicate predicate) { + for (V1alpha3DeviceTaintBuilder item : taints) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public A withTaints(List taints) { + if (this.taints != null) { + this._visitables.get("taints").clear(); + } + if (taints != null) { + this.taints = new ArrayList(); + for (V1alpha3DeviceTaint item : taints) { + this.addToTaints(item); + } + } else { + this.taints = null; + } + return (A) this; + } + + public A withTaints(io.kubernetes.client.openapi.models.V1alpha3DeviceTaint... taints) { + if (this.taints != null) { + this.taints.clear(); + _visitables.remove("taints"); + } + if (taints != null) { + for (V1alpha3DeviceTaint item : taints) { + this.addToTaints(item); + } + } + return (A) this; + } + + public boolean hasTaints() { + return this.taints != null && !this.taints.isEmpty(); + } + + public TaintsNested addNewTaint() { + return new TaintsNested(-1, null); + } + + public TaintsNested addNewTaintLike(V1alpha3DeviceTaint item) { + return new TaintsNested(-1, item); + } + + public TaintsNested setNewTaintLike(int index,V1alpha3DeviceTaint item) { + return new TaintsNested(index, item); + } + + public TaintsNested editTaint(int index) { + if (taints.size() <= index) throw new RuntimeException("Can't edit taints. Index exceeds size."); + return setNewTaintLike(index, buildTaint(index)); + } + + public TaintsNested editFirstTaint() { + if (taints.size() == 0) throw new RuntimeException("Can't edit first taints. The list is empty."); + return setNewTaintLike(0, buildTaint(0)); + } + + public TaintsNested editLastTaint() { + int index = taints.size() - 1; + if (index < 0) throw new RuntimeException("Can't edit last taints. The list is empty."); + return setNewTaintLike(index, buildTaint(index)); + } + + public TaintsNested editMatchingTaint(Predicate predicate) { + int index = -1; + for (int i=0;i extends V1alpha3DeviceCounterConsumptionFluent> implements Nested{ + ConsumesCountersNested(int index,V1alpha3DeviceCounterConsumption item) { + this.index = index; + this.builder = new V1alpha3DeviceCounterConsumptionBuilder(this, item); + } + V1alpha3DeviceCounterConsumptionBuilder builder; + int index; + + public N and() { + return (N) V1alpha3BasicDeviceFluent.this.setToConsumesCounters(index,builder.build()); + } + + public N endConsumesCounter() { + return and(); + } + + + } + public class NodeSelectorNested extends V1NodeSelectorFluent> implements Nested{ + NodeSelectorNested(V1NodeSelector item) { + this.builder = new V1NodeSelectorBuilder(this, item); + } + V1NodeSelectorBuilder builder; + + public N and() { + return (N) V1alpha3BasicDeviceFluent.this.withNodeSelector(builder.build()); + } + + public N endNodeSelector() { + return and(); + } + + + } + public class TaintsNested extends V1alpha3DeviceTaintFluent> implements Nested{ + TaintsNested(int index,V1alpha3DeviceTaint item) { + this.index = index; + this.builder = new V1alpha3DeviceTaintBuilder(this, item); + } + V1alpha3DeviceTaintBuilder builder; + int index; + + public N and() { + return (N) V1alpha3BasicDeviceFluent.this.setToTaints(index,builder.build()); + } + + public N endTaint() { + return and(); + } + + + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3CELDeviceSelectorBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3CELDeviceSelectorBuilder.java new file mode 100644 index 0000000000..22381573f4 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3CELDeviceSelectorBuilder.java @@ -0,0 +1,31 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +public class V1alpha3CELDeviceSelectorBuilder extends V1alpha3CELDeviceSelectorFluent implements VisitableBuilder{ + public V1alpha3CELDeviceSelectorBuilder() { + this(new V1alpha3CELDeviceSelector()); + } + + public V1alpha3CELDeviceSelectorBuilder(V1alpha3CELDeviceSelectorFluent fluent) { + this(fluent, new V1alpha3CELDeviceSelector()); + } + + public V1alpha3CELDeviceSelectorBuilder(V1alpha3CELDeviceSelectorFluent fluent,V1alpha3CELDeviceSelector instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1alpha3CELDeviceSelectorBuilder(V1alpha3CELDeviceSelector instance) { + this.fluent = this; + this.copyInstance(instance); + } + V1alpha3CELDeviceSelectorFluent fluent; + + public V1alpha3CELDeviceSelector build() { + V1alpha3CELDeviceSelector buildable = new V1alpha3CELDeviceSelector(); + buildable.setExpression(fluent.getExpression()); + return buildable; + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3CELDeviceSelectorFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3CELDeviceSelectorFluent.java new file mode 100644 index 0000000000..ddfb8766a6 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3CELDeviceSelectorFluent.java @@ -0,0 +1,63 @@ +package io.kubernetes.client.openapi.models; + +import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Object; +import java.lang.String; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1alpha3CELDeviceSelectorFluent> extends BaseFluent{ + public V1alpha3CELDeviceSelectorFluent() { + } + + public V1alpha3CELDeviceSelectorFluent(V1alpha3CELDeviceSelector instance) { + this.copyInstance(instance); + } + private String expression; + + protected void copyInstance(V1alpha3CELDeviceSelector instance) { + instance = (instance != null ? instance : new V1alpha3CELDeviceSelector()); + if (instance != null) { + this.withExpression(instance.getExpression()); + } + } + + public String getExpression() { + return this.expression; + } + + public A withExpression(String expression) { + this.expression = expression; + return (A) this; + } + + public boolean hasExpression() { + return this.expression != null; + } + + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + if (!super.equals(o)) return false; + V1alpha3CELDeviceSelectorFluent that = (V1alpha3CELDeviceSelectorFluent) o; + if (!java.util.Objects.equals(expression, that.expression)) return false; + return true; + } + + public int hashCode() { + return java.util.Objects.hash(expression, super.hashCode()); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (expression != null) { sb.append("expression:"); sb.append(expression); } + sb.append("}"); + return sb.toString(); + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3CounterBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3CounterBuilder.java new file mode 100644 index 0000000000..12e4c2d767 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3CounterBuilder.java @@ -0,0 +1,31 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +public class V1alpha3CounterBuilder extends V1alpha3CounterFluent implements VisitableBuilder{ + public V1alpha3CounterBuilder() { + this(new V1alpha3Counter()); + } + + public V1alpha3CounterBuilder(V1alpha3CounterFluent fluent) { + this(fluent, new V1alpha3Counter()); + } + + public V1alpha3CounterBuilder(V1alpha3CounterFluent fluent,V1alpha3Counter instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1alpha3CounterBuilder(V1alpha3Counter instance) { + this.fluent = this; + this.copyInstance(instance); + } + V1alpha3CounterFluent fluent; + + public V1alpha3Counter build() { + V1alpha3Counter buildable = new V1alpha3Counter(); + buildable.setValue(fluent.getValue()); + return buildable; + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3CounterFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3CounterFluent.java new file mode 100644 index 0000000000..8d6017922a --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3CounterFluent.java @@ -0,0 +1,68 @@ +package io.kubernetes.client.openapi.models; + +import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.custom.Quantity; +import java.lang.Object; +import java.lang.String; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1alpha3CounterFluent> extends BaseFluent{ + public V1alpha3CounterFluent() { + } + + public V1alpha3CounterFluent(V1alpha3Counter instance) { + this.copyInstance(instance); + } + private Quantity value; + + protected void copyInstance(V1alpha3Counter instance) { + instance = (instance != null ? instance : new V1alpha3Counter()); + if (instance != null) { + this.withValue(instance.getValue()); + } + } + + public Quantity getValue() { + return this.value; + } + + public A withValue(Quantity value) { + this.value = value; + return (A) this; + } + + public boolean hasValue() { + return this.value != null; + } + + public A withNewValue(String value) { + return (A)withValue(new Quantity(value)); + } + + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + if (!super.equals(o)) return false; + V1alpha3CounterFluent that = (V1alpha3CounterFluent) o; + if (!java.util.Objects.equals(value, that.value)) return false; + return true; + } + + public int hashCode() { + return java.util.Objects.hash(value, super.hashCode()); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (value != null) { sb.append("value:"); sb.append(value); } + sb.append("}"); + return sb.toString(); + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3CounterSetBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3CounterSetBuilder.java new file mode 100644 index 0000000000..1b9a8817f8 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3CounterSetBuilder.java @@ -0,0 +1,32 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +public class V1alpha3CounterSetBuilder extends V1alpha3CounterSetFluent implements VisitableBuilder{ + public V1alpha3CounterSetBuilder() { + this(new V1alpha3CounterSet()); + } + + public V1alpha3CounterSetBuilder(V1alpha3CounterSetFluent fluent) { + this(fluent, new V1alpha3CounterSet()); + } + + public V1alpha3CounterSetBuilder(V1alpha3CounterSetFluent fluent,V1alpha3CounterSet instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1alpha3CounterSetBuilder(V1alpha3CounterSet instance) { + this.fluent = this; + this.copyInstance(instance); + } + V1alpha3CounterSetFluent fluent; + + public V1alpha3CounterSet build() { + V1alpha3CounterSet buildable = new V1alpha3CounterSet(); + buildable.setCounters(fluent.getCounters()); + buildable.setName(fluent.getName()); + return buildable; + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3CounterSetFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3CounterSetFluent.java new file mode 100644 index 0000000000..ea99fb0907 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3CounterSetFluent.java @@ -0,0 +1,106 @@ +package io.kubernetes.client.openapi.models; + +import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Object; +import java.lang.String; +import java.util.Map; +import java.util.LinkedHashMap; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1alpha3CounterSetFluent> extends BaseFluent{ + public V1alpha3CounterSetFluent() { + } + + public V1alpha3CounterSetFluent(V1alpha3CounterSet instance) { + this.copyInstance(instance); + } + private Map counters; + private String name; + + protected void copyInstance(V1alpha3CounterSet instance) { + instance = (instance != null ? instance : new V1alpha3CounterSet()); + if (instance != null) { + this.withCounters(instance.getCounters()); + this.withName(instance.getName()); + } + } + + public A addToCounters(String key,V1alpha3Counter value) { + if(this.counters == null && key != null && value != null) { this.counters = new LinkedHashMap(); } + if(key != null && value != null) {this.counters.put(key, value);} return (A)this; + } + + public A addToCounters(Map map) { + if(this.counters == null && map != null) { this.counters = new LinkedHashMap(); } + if(map != null) { this.counters.putAll(map);} return (A)this; + } + + public A removeFromCounters(String key) { + if(this.counters == null) { return (A) this; } + if(key != null && this.counters != null) {this.counters.remove(key);} return (A)this; + } + + public A removeFromCounters(Map map) { + if(this.counters == null) { return (A) this; } + if(map != null) { for(Object key : map.keySet()) {if (this.counters != null){this.counters.remove(key);}}} return (A)this; + } + + public Map getCounters() { + return this.counters; + } + + public A withCounters(Map counters) { + if (counters == null) { + this.counters = null; + } else { + this.counters = new LinkedHashMap(counters); + } + return (A) this; + } + + public boolean hasCounters() { + return this.counters != null; + } + + public String getName() { + return this.name; + } + + public A withName(String name) { + this.name = name; + return (A) this; + } + + public boolean hasName() { + return this.name != null; + } + + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + if (!super.equals(o)) return false; + V1alpha3CounterSetFluent that = (V1alpha3CounterSetFluent) o; + if (!java.util.Objects.equals(counters, that.counters)) return false; + if (!java.util.Objects.equals(name, that.name)) return false; + return true; + } + + public int hashCode() { + return java.util.Objects.hash(counters, name, super.hashCode()); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (counters != null && !counters.isEmpty()) { sb.append("counters:"); sb.append(counters + ","); } + if (name != null) { sb.append("name:"); sb.append(name); } + sb.append("}"); + return sb.toString(); + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceAllocationConfigurationBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceAllocationConfigurationBuilder.java new file mode 100644 index 0000000000..c6b6b6347c --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceAllocationConfigurationBuilder.java @@ -0,0 +1,33 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +public class V1alpha3DeviceAllocationConfigurationBuilder extends V1alpha3DeviceAllocationConfigurationFluent implements VisitableBuilder{ + public V1alpha3DeviceAllocationConfigurationBuilder() { + this(new V1alpha3DeviceAllocationConfiguration()); + } + + public V1alpha3DeviceAllocationConfigurationBuilder(V1alpha3DeviceAllocationConfigurationFluent fluent) { + this(fluent, new V1alpha3DeviceAllocationConfiguration()); + } + + public V1alpha3DeviceAllocationConfigurationBuilder(V1alpha3DeviceAllocationConfigurationFluent fluent,V1alpha3DeviceAllocationConfiguration instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1alpha3DeviceAllocationConfigurationBuilder(V1alpha3DeviceAllocationConfiguration instance) { + this.fluent = this; + this.copyInstance(instance); + } + V1alpha3DeviceAllocationConfigurationFluent fluent; + + public V1alpha3DeviceAllocationConfiguration build() { + V1alpha3DeviceAllocationConfiguration buildable = new V1alpha3DeviceAllocationConfiguration(); + buildable.setOpaque(fluent.buildOpaque()); + buildable.setRequests(fluent.getRequests()); + buildable.setSource(fluent.getSource()); + return buildable; + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceAllocationConfigurationFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceAllocationConfigurationFluent.java new file mode 100644 index 0000000000..c97fe0eb64 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceAllocationConfigurationFluent.java @@ -0,0 +1,225 @@ +package io.kubernetes.client.openapi.models; + +import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.Nested; +import java.util.ArrayList; +import java.lang.String; +import java.util.function.Predicate; +import io.kubernetes.client.fluent.BaseFluent; +import java.util.Collection; +import java.lang.Object; +import java.util.List; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1alpha3DeviceAllocationConfigurationFluent> extends BaseFluent{ + public V1alpha3DeviceAllocationConfigurationFluent() { + } + + public V1alpha3DeviceAllocationConfigurationFluent(V1alpha3DeviceAllocationConfiguration instance) { + this.copyInstance(instance); + } + private V1alpha3OpaqueDeviceConfigurationBuilder opaque; + private List requests; + private String source; + + protected void copyInstance(V1alpha3DeviceAllocationConfiguration instance) { + instance = (instance != null ? instance : new V1alpha3DeviceAllocationConfiguration()); + if (instance != null) { + this.withOpaque(instance.getOpaque()); + this.withRequests(instance.getRequests()); + this.withSource(instance.getSource()); + } + } + + public V1alpha3OpaqueDeviceConfiguration buildOpaque() { + return this.opaque != null ? this.opaque.build() : null; + } + + public A withOpaque(V1alpha3OpaqueDeviceConfiguration opaque) { + this._visitables.remove("opaque"); + if (opaque != null) { + this.opaque = new V1alpha3OpaqueDeviceConfigurationBuilder(opaque); + this._visitables.get("opaque").add(this.opaque); + } else { + this.opaque = null; + this._visitables.get("opaque").remove(this.opaque); + } + return (A) this; + } + + public boolean hasOpaque() { + return this.opaque != null; + } + + public OpaqueNested withNewOpaque() { + return new OpaqueNested(null); + } + + public OpaqueNested withNewOpaqueLike(V1alpha3OpaqueDeviceConfiguration item) { + return new OpaqueNested(item); + } + + public OpaqueNested editOpaque() { + return withNewOpaqueLike(java.util.Optional.ofNullable(buildOpaque()).orElse(null)); + } + + public OpaqueNested editOrNewOpaque() { + return withNewOpaqueLike(java.util.Optional.ofNullable(buildOpaque()).orElse(new V1alpha3OpaqueDeviceConfigurationBuilder().build())); + } + + public OpaqueNested editOrNewOpaqueLike(V1alpha3OpaqueDeviceConfiguration item) { + return withNewOpaqueLike(java.util.Optional.ofNullable(buildOpaque()).orElse(item)); + } + + public A addToRequests(int index,String item) { + if (this.requests == null) {this.requests = new ArrayList();} + this.requests.add(index, item); + return (A)this; + } + + public A setToRequests(int index,String item) { + if (this.requests == null) {this.requests = new ArrayList();} + this.requests.set(index, item); return (A)this; + } + + public A addToRequests(java.lang.String... items) { + if (this.requests == null) {this.requests = new ArrayList();} + for (String item : items) {this.requests.add(item);} return (A)this; + } + + public A addAllToRequests(Collection items) { + if (this.requests == null) {this.requests = new ArrayList();} + for (String item : items) {this.requests.add(item);} return (A)this; + } + + public A removeFromRequests(java.lang.String... items) { + if (this.requests == null) return (A)this; + for (String item : items) { this.requests.remove(item);} return (A)this; + } + + public A removeAllFromRequests(Collection items) { + if (this.requests == null) return (A)this; + for (String item : items) { this.requests.remove(item);} return (A)this; + } + + public List getRequests() { + return this.requests; + } + + public String getRequest(int index) { + return this.requests.get(index); + } + + public String getFirstRequest() { + return this.requests.get(0); + } + + public String getLastRequest() { + return this.requests.get(requests.size() - 1); + } + + public String getMatchingRequest(Predicate predicate) { + for (String item : requests) { + if (predicate.test(item)) { + return item; + } + } + return null; + } + + public boolean hasMatchingRequest(Predicate predicate) { + for (String item : requests) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public A withRequests(List requests) { + if (requests != null) { + this.requests = new ArrayList(); + for (String item : requests) { + this.addToRequests(item); + } + } else { + this.requests = null; + } + return (A) this; + } + + public A withRequests(java.lang.String... requests) { + if (this.requests != null) { + this.requests.clear(); + _visitables.remove("requests"); + } + if (requests != null) { + for (String item : requests) { + this.addToRequests(item); + } + } + return (A) this; + } + + public boolean hasRequests() { + return this.requests != null && !this.requests.isEmpty(); + } + + public String getSource() { + return this.source; + } + + public A withSource(String source) { + this.source = source; + return (A) this; + } + + public boolean hasSource() { + return this.source != null; + } + + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + if (!super.equals(o)) return false; + V1alpha3DeviceAllocationConfigurationFluent that = (V1alpha3DeviceAllocationConfigurationFluent) o; + if (!java.util.Objects.equals(opaque, that.opaque)) return false; + if (!java.util.Objects.equals(requests, that.requests)) return false; + if (!java.util.Objects.equals(source, that.source)) return false; + return true; + } + + public int hashCode() { + return java.util.Objects.hash(opaque, requests, source, super.hashCode()); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (opaque != null) { sb.append("opaque:"); sb.append(opaque + ","); } + if (requests != null && !requests.isEmpty()) { sb.append("requests:"); sb.append(requests + ","); } + if (source != null) { sb.append("source:"); sb.append(source); } + sb.append("}"); + return sb.toString(); + } + public class OpaqueNested extends V1alpha3OpaqueDeviceConfigurationFluent> implements Nested{ + OpaqueNested(V1alpha3OpaqueDeviceConfiguration item) { + this.builder = new V1alpha3OpaqueDeviceConfigurationBuilder(this, item); + } + V1alpha3OpaqueDeviceConfigurationBuilder builder; + + public N and() { + return (N) V1alpha3DeviceAllocationConfigurationFluent.this.withOpaque(builder.build()); + } + + public N endOpaque() { + return and(); + } + + + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceAllocationResultBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceAllocationResultBuilder.java new file mode 100644 index 0000000000..e1dfd5231b --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceAllocationResultBuilder.java @@ -0,0 +1,32 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +public class V1alpha3DeviceAllocationResultBuilder extends V1alpha3DeviceAllocationResultFluent implements VisitableBuilder{ + public V1alpha3DeviceAllocationResultBuilder() { + this(new V1alpha3DeviceAllocationResult()); + } + + public V1alpha3DeviceAllocationResultBuilder(V1alpha3DeviceAllocationResultFluent fluent) { + this(fluent, new V1alpha3DeviceAllocationResult()); + } + + public V1alpha3DeviceAllocationResultBuilder(V1alpha3DeviceAllocationResultFluent fluent,V1alpha3DeviceAllocationResult instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1alpha3DeviceAllocationResultBuilder(V1alpha3DeviceAllocationResult instance) { + this.fluent = this; + this.copyInstance(instance); + } + V1alpha3DeviceAllocationResultFluent fluent; + + public V1alpha3DeviceAllocationResult build() { + V1alpha3DeviceAllocationResult buildable = new V1alpha3DeviceAllocationResult(); + buildable.setConfig(fluent.buildConfig()); + buildable.setResults(fluent.buildResults()); + return buildable; + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceAllocationResultFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceAllocationResultFluent.java new file mode 100644 index 0000000000..8c55c1475a --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceAllocationResultFluent.java @@ -0,0 +1,422 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.Nested; +import java.util.ArrayList; +import java.lang.String; +import java.util.function.Predicate; +import io.kubernetes.client.fluent.BaseFluent; +import java.util.Iterator; +import java.util.Collection; +import java.lang.Object; +import java.util.List; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1alpha3DeviceAllocationResultFluent> extends BaseFluent{ + public V1alpha3DeviceAllocationResultFluent() { + } + + public V1alpha3DeviceAllocationResultFluent(V1alpha3DeviceAllocationResult instance) { + this.copyInstance(instance); + } + private ArrayList config; + private ArrayList results; + + protected void copyInstance(V1alpha3DeviceAllocationResult instance) { + instance = (instance != null ? instance : new V1alpha3DeviceAllocationResult()); + if (instance != null) { + this.withConfig(instance.getConfig()); + this.withResults(instance.getResults()); + } + } + + public A addToConfig(int index,V1alpha3DeviceAllocationConfiguration item) { + if (this.config == null) {this.config = new ArrayList();} + V1alpha3DeviceAllocationConfigurationBuilder builder = new V1alpha3DeviceAllocationConfigurationBuilder(item); + if (index < 0 || index >= config.size()) { + _visitables.get("config").add(builder); + config.add(builder); + } else { + _visitables.get("config").add(builder); + config.add(index, builder); + } + return (A)this; + } + + public A setToConfig(int index,V1alpha3DeviceAllocationConfiguration item) { + if (this.config == null) {this.config = new ArrayList();} + V1alpha3DeviceAllocationConfigurationBuilder builder = new V1alpha3DeviceAllocationConfigurationBuilder(item); + if (index < 0 || index >= config.size()) { + _visitables.get("config").add(builder); + config.add(builder); + } else { + _visitables.get("config").add(builder); + config.set(index, builder); + } + return (A)this; + } + + public A addToConfig(io.kubernetes.client.openapi.models.V1alpha3DeviceAllocationConfiguration... items) { + if (this.config == null) {this.config = new ArrayList();} + for (V1alpha3DeviceAllocationConfiguration item : items) {V1alpha3DeviceAllocationConfigurationBuilder builder = new V1alpha3DeviceAllocationConfigurationBuilder(item);_visitables.get("config").add(builder);this.config.add(builder);} return (A)this; + } + + public A addAllToConfig(Collection items) { + if (this.config == null) {this.config = new ArrayList();} + for (V1alpha3DeviceAllocationConfiguration item : items) {V1alpha3DeviceAllocationConfigurationBuilder builder = new V1alpha3DeviceAllocationConfigurationBuilder(item);_visitables.get("config").add(builder);this.config.add(builder);} return (A)this; + } + + public A removeFromConfig(io.kubernetes.client.openapi.models.V1alpha3DeviceAllocationConfiguration... items) { + if (this.config == null) return (A)this; + for (V1alpha3DeviceAllocationConfiguration item : items) {V1alpha3DeviceAllocationConfigurationBuilder builder = new V1alpha3DeviceAllocationConfigurationBuilder(item);_visitables.get("config").remove(builder); this.config.remove(builder);} return (A)this; + } + + public A removeAllFromConfig(Collection items) { + if (this.config == null) return (A)this; + for (V1alpha3DeviceAllocationConfiguration item : items) {V1alpha3DeviceAllocationConfigurationBuilder builder = new V1alpha3DeviceAllocationConfigurationBuilder(item);_visitables.get("config").remove(builder); this.config.remove(builder);} return (A)this; + } + + public A removeMatchingFromConfig(Predicate predicate) { + if (config == null) return (A) this; + final Iterator each = config.iterator(); + final List visitables = _visitables.get("config"); + while (each.hasNext()) { + V1alpha3DeviceAllocationConfigurationBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A)this; + } + + public List buildConfig() { + return this.config != null ? build(config) : null; + } + + public V1alpha3DeviceAllocationConfiguration buildConfig(int index) { + return this.config.get(index).build(); + } + + public V1alpha3DeviceAllocationConfiguration buildFirstConfig() { + return this.config.get(0).build(); + } + + public V1alpha3DeviceAllocationConfiguration buildLastConfig() { + return this.config.get(config.size() - 1).build(); + } + + public V1alpha3DeviceAllocationConfiguration buildMatchingConfig(Predicate predicate) { + for (V1alpha3DeviceAllocationConfigurationBuilder item : config) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; + } + + public boolean hasMatchingConfig(Predicate predicate) { + for (V1alpha3DeviceAllocationConfigurationBuilder item : config) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public A withConfig(List config) { + if (this.config != null) { + this._visitables.get("config").clear(); + } + if (config != null) { + this.config = new ArrayList(); + for (V1alpha3DeviceAllocationConfiguration item : config) { + this.addToConfig(item); + } + } else { + this.config = null; + } + return (A) this; + } + + public A withConfig(io.kubernetes.client.openapi.models.V1alpha3DeviceAllocationConfiguration... config) { + if (this.config != null) { + this.config.clear(); + _visitables.remove("config"); + } + if (config != null) { + for (V1alpha3DeviceAllocationConfiguration item : config) { + this.addToConfig(item); + } + } + return (A) this; + } + + public boolean hasConfig() { + return this.config != null && !this.config.isEmpty(); + } + + public ConfigNested addNewConfig() { + return new ConfigNested(-1, null); + } + + public ConfigNested addNewConfigLike(V1alpha3DeviceAllocationConfiguration item) { + return new ConfigNested(-1, item); + } + + public ConfigNested setNewConfigLike(int index,V1alpha3DeviceAllocationConfiguration item) { + return new ConfigNested(index, item); + } + + public ConfigNested editConfig(int index) { + if (config.size() <= index) throw new RuntimeException("Can't edit config. Index exceeds size."); + return setNewConfigLike(index, buildConfig(index)); + } + + public ConfigNested editFirstConfig() { + if (config.size() == 0) throw new RuntimeException("Can't edit first config. The list is empty."); + return setNewConfigLike(0, buildConfig(0)); + } + + public ConfigNested editLastConfig() { + int index = config.size() - 1; + if (index < 0) throw new RuntimeException("Can't edit last config. The list is empty."); + return setNewConfigLike(index, buildConfig(index)); + } + + public ConfigNested editMatchingConfig(Predicate predicate) { + int index = -1; + for (int i=0;i();} + V1alpha3DeviceRequestAllocationResultBuilder builder = new V1alpha3DeviceRequestAllocationResultBuilder(item); + if (index < 0 || index >= results.size()) { + _visitables.get("results").add(builder); + results.add(builder); + } else { + _visitables.get("results").add(builder); + results.add(index, builder); + } + return (A)this; + } + + public A setToResults(int index,V1alpha3DeviceRequestAllocationResult item) { + if (this.results == null) {this.results = new ArrayList();} + V1alpha3DeviceRequestAllocationResultBuilder builder = new V1alpha3DeviceRequestAllocationResultBuilder(item); + if (index < 0 || index >= results.size()) { + _visitables.get("results").add(builder); + results.add(builder); + } else { + _visitables.get("results").add(builder); + results.set(index, builder); + } + return (A)this; + } + + public A addToResults(io.kubernetes.client.openapi.models.V1alpha3DeviceRequestAllocationResult... items) { + if (this.results == null) {this.results = new ArrayList();} + for (V1alpha3DeviceRequestAllocationResult item : items) {V1alpha3DeviceRequestAllocationResultBuilder builder = new V1alpha3DeviceRequestAllocationResultBuilder(item);_visitables.get("results").add(builder);this.results.add(builder);} return (A)this; + } + + public A addAllToResults(Collection items) { + if (this.results == null) {this.results = new ArrayList();} + for (V1alpha3DeviceRequestAllocationResult item : items) {V1alpha3DeviceRequestAllocationResultBuilder builder = new V1alpha3DeviceRequestAllocationResultBuilder(item);_visitables.get("results").add(builder);this.results.add(builder);} return (A)this; + } + + public A removeFromResults(io.kubernetes.client.openapi.models.V1alpha3DeviceRequestAllocationResult... items) { + if (this.results == null) return (A)this; + for (V1alpha3DeviceRequestAllocationResult item : items) {V1alpha3DeviceRequestAllocationResultBuilder builder = new V1alpha3DeviceRequestAllocationResultBuilder(item);_visitables.get("results").remove(builder); this.results.remove(builder);} return (A)this; + } + + public A removeAllFromResults(Collection items) { + if (this.results == null) return (A)this; + for (V1alpha3DeviceRequestAllocationResult item : items) {V1alpha3DeviceRequestAllocationResultBuilder builder = new V1alpha3DeviceRequestAllocationResultBuilder(item);_visitables.get("results").remove(builder); this.results.remove(builder);} return (A)this; + } + + public A removeMatchingFromResults(Predicate predicate) { + if (results == null) return (A) this; + final Iterator each = results.iterator(); + final List visitables = _visitables.get("results"); + while (each.hasNext()) { + V1alpha3DeviceRequestAllocationResultBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A)this; + } + + public List buildResults() { + return this.results != null ? build(results) : null; + } + + public V1alpha3DeviceRequestAllocationResult buildResult(int index) { + return this.results.get(index).build(); + } + + public V1alpha3DeviceRequestAllocationResult buildFirstResult() { + return this.results.get(0).build(); + } + + public V1alpha3DeviceRequestAllocationResult buildLastResult() { + return this.results.get(results.size() - 1).build(); + } + + public V1alpha3DeviceRequestAllocationResult buildMatchingResult(Predicate predicate) { + for (V1alpha3DeviceRequestAllocationResultBuilder item : results) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; + } + + public boolean hasMatchingResult(Predicate predicate) { + for (V1alpha3DeviceRequestAllocationResultBuilder item : results) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public A withResults(List results) { + if (this.results != null) { + this._visitables.get("results").clear(); + } + if (results != null) { + this.results = new ArrayList(); + for (V1alpha3DeviceRequestAllocationResult item : results) { + this.addToResults(item); + } + } else { + this.results = null; + } + return (A) this; + } + + public A withResults(io.kubernetes.client.openapi.models.V1alpha3DeviceRequestAllocationResult... results) { + if (this.results != null) { + this.results.clear(); + _visitables.remove("results"); + } + if (results != null) { + for (V1alpha3DeviceRequestAllocationResult item : results) { + this.addToResults(item); + } + } + return (A) this; + } + + public boolean hasResults() { + return this.results != null && !this.results.isEmpty(); + } + + public ResultsNested addNewResult() { + return new ResultsNested(-1, null); + } + + public ResultsNested addNewResultLike(V1alpha3DeviceRequestAllocationResult item) { + return new ResultsNested(-1, item); + } + + public ResultsNested setNewResultLike(int index,V1alpha3DeviceRequestAllocationResult item) { + return new ResultsNested(index, item); + } + + public ResultsNested editResult(int index) { + if (results.size() <= index) throw new RuntimeException("Can't edit results. Index exceeds size."); + return setNewResultLike(index, buildResult(index)); + } + + public ResultsNested editFirstResult() { + if (results.size() == 0) throw new RuntimeException("Can't edit first results. The list is empty."); + return setNewResultLike(0, buildResult(0)); + } + + public ResultsNested editLastResult() { + int index = results.size() - 1; + if (index < 0) throw new RuntimeException("Can't edit last results. The list is empty."); + return setNewResultLike(index, buildResult(index)); + } + + public ResultsNested editMatchingResult(Predicate predicate) { + int index = -1; + for (int i=0;i extends V1alpha3DeviceAllocationConfigurationFluent> implements Nested{ + ConfigNested(int index,V1alpha3DeviceAllocationConfiguration item) { + this.index = index; + this.builder = new V1alpha3DeviceAllocationConfigurationBuilder(this, item); + } + V1alpha3DeviceAllocationConfigurationBuilder builder; + int index; + + public N and() { + return (N) V1alpha3DeviceAllocationResultFluent.this.setToConfig(index,builder.build()); + } + + public N endConfig() { + return and(); + } + + + } + public class ResultsNested extends V1alpha3DeviceRequestAllocationResultFluent> implements Nested{ + ResultsNested(int index,V1alpha3DeviceRequestAllocationResult item) { + this.index = index; + this.builder = new V1alpha3DeviceRequestAllocationResultBuilder(this, item); + } + V1alpha3DeviceRequestAllocationResultBuilder builder; + int index; + + public N and() { + return (N) V1alpha3DeviceAllocationResultFluent.this.setToResults(index,builder.build()); + } + + public N endResult() { + return and(); + } + + + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceAttributeBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceAttributeBuilder.java new file mode 100644 index 0000000000..2e7d3a7dcb --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceAttributeBuilder.java @@ -0,0 +1,34 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +public class V1alpha3DeviceAttributeBuilder extends V1alpha3DeviceAttributeFluent implements VisitableBuilder{ + public V1alpha3DeviceAttributeBuilder() { + this(new V1alpha3DeviceAttribute()); + } + + public V1alpha3DeviceAttributeBuilder(V1alpha3DeviceAttributeFluent fluent) { + this(fluent, new V1alpha3DeviceAttribute()); + } + + public V1alpha3DeviceAttributeBuilder(V1alpha3DeviceAttributeFluent fluent,V1alpha3DeviceAttribute instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1alpha3DeviceAttributeBuilder(V1alpha3DeviceAttribute instance) { + this.fluent = this; + this.copyInstance(instance); + } + V1alpha3DeviceAttributeFluent fluent; + + public V1alpha3DeviceAttribute build() { + V1alpha3DeviceAttribute buildable = new V1alpha3DeviceAttribute(); + buildable.setBool(fluent.getBool()); + buildable.setInt(fluent.getInt()); + buildable.setString(fluent.getString()); + buildable.setVersion(fluent.getVersion()); + return buildable; + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceAttributeFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceAttributeFluent.java new file mode 100644 index 0000000000..a987bc9fc3 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceAttributeFluent.java @@ -0,0 +1,120 @@ +package io.kubernetes.client.openapi.models; + +import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Long; +import java.lang.Object; +import java.lang.String; +import java.lang.Boolean; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1alpha3DeviceAttributeFluent> extends BaseFluent{ + public V1alpha3DeviceAttributeFluent() { + } + + public V1alpha3DeviceAttributeFluent(V1alpha3DeviceAttribute instance) { + this.copyInstance(instance); + } + private Boolean bool; + private Long _int; + private String string; + private String version; + + protected void copyInstance(V1alpha3DeviceAttribute instance) { + instance = (instance != null ? instance : new V1alpha3DeviceAttribute()); + if (instance != null) { + this.withBool(instance.getBool()); + this.withInt(instance.getInt()); + this.withString(instance.getString()); + this.withVersion(instance.getVersion()); + } + } + + public Boolean getBool() { + return this.bool; + } + + public A withBool(Boolean bool) { + this.bool = bool; + return (A) this; + } + + public boolean hasBool() { + return this.bool != null; + } + + public Long getInt() { + return this._int; + } + + public A withInt(Long _int) { + this._int = _int; + return (A) this; + } + + public boolean hasInt() { + return this._int != null; + } + + public String getString() { + return this.string; + } + + public A withString(String string) { + this.string = string; + return (A) this; + } + + public boolean hasString() { + return this.string != null; + } + + public String getVersion() { + return this.version; + } + + public A withVersion(String version) { + this.version = version; + return (A) this; + } + + public boolean hasVersion() { + return this.version != null; + } + + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + if (!super.equals(o)) return false; + V1alpha3DeviceAttributeFluent that = (V1alpha3DeviceAttributeFluent) o; + if (!java.util.Objects.equals(bool, that.bool)) return false; + if (!java.util.Objects.equals(_int, that._int)) return false; + if (!java.util.Objects.equals(string, that.string)) return false; + if (!java.util.Objects.equals(version, that.version)) return false; + return true; + } + + public int hashCode() { + return java.util.Objects.hash(bool, _int, string, version, super.hashCode()); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (bool != null) { sb.append("bool:"); sb.append(bool + ","); } + if (_int != null) { sb.append("_int:"); sb.append(_int + ","); } + if (string != null) { sb.append("string:"); sb.append(string + ","); } + if (version != null) { sb.append("version:"); sb.append(version); } + sb.append("}"); + return sb.toString(); + } + + public A withBool() { + return withBool(true); + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceBuilder.java new file mode 100644 index 0000000000..ba127ea551 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceBuilder.java @@ -0,0 +1,32 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +public class V1alpha3DeviceBuilder extends V1alpha3DeviceFluent implements VisitableBuilder{ + public V1alpha3DeviceBuilder() { + this(new V1alpha3Device()); + } + + public V1alpha3DeviceBuilder(V1alpha3DeviceFluent fluent) { + this(fluent, new V1alpha3Device()); + } + + public V1alpha3DeviceBuilder(V1alpha3DeviceFluent fluent,V1alpha3Device instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1alpha3DeviceBuilder(V1alpha3Device instance) { + this.fluent = this; + this.copyInstance(instance); + } + V1alpha3DeviceFluent fluent; + + public V1alpha3Device build() { + V1alpha3Device buildable = new V1alpha3Device(); + buildable.setBasic(fluent.buildBasic()); + buildable.setName(fluent.getName()); + return buildable; + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceClaimBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceClaimBuilder.java new file mode 100644 index 0000000000..ed57e95f33 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceClaimBuilder.java @@ -0,0 +1,33 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +public class V1alpha3DeviceClaimBuilder extends V1alpha3DeviceClaimFluent implements VisitableBuilder{ + public V1alpha3DeviceClaimBuilder() { + this(new V1alpha3DeviceClaim()); + } + + public V1alpha3DeviceClaimBuilder(V1alpha3DeviceClaimFluent fluent) { + this(fluent, new V1alpha3DeviceClaim()); + } + + public V1alpha3DeviceClaimBuilder(V1alpha3DeviceClaimFluent fluent,V1alpha3DeviceClaim instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1alpha3DeviceClaimBuilder(V1alpha3DeviceClaim instance) { + this.fluent = this; + this.copyInstance(instance); + } + V1alpha3DeviceClaimFluent fluent; + + public V1alpha3DeviceClaim build() { + V1alpha3DeviceClaim buildable = new V1alpha3DeviceClaim(); + buildable.setConfig(fluent.buildConfig()); + buildable.setConstraints(fluent.buildConstraints()); + buildable.setRequests(fluent.buildRequests()); + return buildable; + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceClaimConfigurationBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceClaimConfigurationBuilder.java new file mode 100644 index 0000000000..b325f00396 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceClaimConfigurationBuilder.java @@ -0,0 +1,32 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +public class V1alpha3DeviceClaimConfigurationBuilder extends V1alpha3DeviceClaimConfigurationFluent implements VisitableBuilder{ + public V1alpha3DeviceClaimConfigurationBuilder() { + this(new V1alpha3DeviceClaimConfiguration()); + } + + public V1alpha3DeviceClaimConfigurationBuilder(V1alpha3DeviceClaimConfigurationFluent fluent) { + this(fluent, new V1alpha3DeviceClaimConfiguration()); + } + + public V1alpha3DeviceClaimConfigurationBuilder(V1alpha3DeviceClaimConfigurationFluent fluent,V1alpha3DeviceClaimConfiguration instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1alpha3DeviceClaimConfigurationBuilder(V1alpha3DeviceClaimConfiguration instance) { + this.fluent = this; + this.copyInstance(instance); + } + V1alpha3DeviceClaimConfigurationFluent fluent; + + public V1alpha3DeviceClaimConfiguration build() { + V1alpha3DeviceClaimConfiguration buildable = new V1alpha3DeviceClaimConfiguration(); + buildable.setOpaque(fluent.buildOpaque()); + buildable.setRequests(fluent.getRequests()); + return buildable; + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceClaimConfigurationFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceClaimConfigurationFluent.java new file mode 100644 index 0000000000..38e369a818 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceClaimConfigurationFluent.java @@ -0,0 +1,208 @@ +package io.kubernetes.client.openapi.models; + +import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.Nested; +import java.util.ArrayList; +import java.lang.String; +import java.util.function.Predicate; +import io.kubernetes.client.fluent.BaseFluent; +import java.util.Collection; +import java.lang.Object; +import java.util.List; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1alpha3DeviceClaimConfigurationFluent> extends BaseFluent{ + public V1alpha3DeviceClaimConfigurationFluent() { + } + + public V1alpha3DeviceClaimConfigurationFluent(V1alpha3DeviceClaimConfiguration instance) { + this.copyInstance(instance); + } + private V1alpha3OpaqueDeviceConfigurationBuilder opaque; + private List requests; + + protected void copyInstance(V1alpha3DeviceClaimConfiguration instance) { + instance = (instance != null ? instance : new V1alpha3DeviceClaimConfiguration()); + if (instance != null) { + this.withOpaque(instance.getOpaque()); + this.withRequests(instance.getRequests()); + } + } + + public V1alpha3OpaqueDeviceConfiguration buildOpaque() { + return this.opaque != null ? this.opaque.build() : null; + } + + public A withOpaque(V1alpha3OpaqueDeviceConfiguration opaque) { + this._visitables.remove("opaque"); + if (opaque != null) { + this.opaque = new V1alpha3OpaqueDeviceConfigurationBuilder(opaque); + this._visitables.get("opaque").add(this.opaque); + } else { + this.opaque = null; + this._visitables.get("opaque").remove(this.opaque); + } + return (A) this; + } + + public boolean hasOpaque() { + return this.opaque != null; + } + + public OpaqueNested withNewOpaque() { + return new OpaqueNested(null); + } + + public OpaqueNested withNewOpaqueLike(V1alpha3OpaqueDeviceConfiguration item) { + return new OpaqueNested(item); + } + + public OpaqueNested editOpaque() { + return withNewOpaqueLike(java.util.Optional.ofNullable(buildOpaque()).orElse(null)); + } + + public OpaqueNested editOrNewOpaque() { + return withNewOpaqueLike(java.util.Optional.ofNullable(buildOpaque()).orElse(new V1alpha3OpaqueDeviceConfigurationBuilder().build())); + } + + public OpaqueNested editOrNewOpaqueLike(V1alpha3OpaqueDeviceConfiguration item) { + return withNewOpaqueLike(java.util.Optional.ofNullable(buildOpaque()).orElse(item)); + } + + public A addToRequests(int index,String item) { + if (this.requests == null) {this.requests = new ArrayList();} + this.requests.add(index, item); + return (A)this; + } + + public A setToRequests(int index,String item) { + if (this.requests == null) {this.requests = new ArrayList();} + this.requests.set(index, item); return (A)this; + } + + public A addToRequests(java.lang.String... items) { + if (this.requests == null) {this.requests = new ArrayList();} + for (String item : items) {this.requests.add(item);} return (A)this; + } + + public A addAllToRequests(Collection items) { + if (this.requests == null) {this.requests = new ArrayList();} + for (String item : items) {this.requests.add(item);} return (A)this; + } + + public A removeFromRequests(java.lang.String... items) { + if (this.requests == null) return (A)this; + for (String item : items) { this.requests.remove(item);} return (A)this; + } + + public A removeAllFromRequests(Collection items) { + if (this.requests == null) return (A)this; + for (String item : items) { this.requests.remove(item);} return (A)this; + } + + public List getRequests() { + return this.requests; + } + + public String getRequest(int index) { + return this.requests.get(index); + } + + public String getFirstRequest() { + return this.requests.get(0); + } + + public String getLastRequest() { + return this.requests.get(requests.size() - 1); + } + + public String getMatchingRequest(Predicate predicate) { + for (String item : requests) { + if (predicate.test(item)) { + return item; + } + } + return null; + } + + public boolean hasMatchingRequest(Predicate predicate) { + for (String item : requests) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public A withRequests(List requests) { + if (requests != null) { + this.requests = new ArrayList(); + for (String item : requests) { + this.addToRequests(item); + } + } else { + this.requests = null; + } + return (A) this; + } + + public A withRequests(java.lang.String... requests) { + if (this.requests != null) { + this.requests.clear(); + _visitables.remove("requests"); + } + if (requests != null) { + for (String item : requests) { + this.addToRequests(item); + } + } + return (A) this; + } + + public boolean hasRequests() { + return this.requests != null && !this.requests.isEmpty(); + } + + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + if (!super.equals(o)) return false; + V1alpha3DeviceClaimConfigurationFluent that = (V1alpha3DeviceClaimConfigurationFluent) o; + if (!java.util.Objects.equals(opaque, that.opaque)) return false; + if (!java.util.Objects.equals(requests, that.requests)) return false; + return true; + } + + public int hashCode() { + return java.util.Objects.hash(opaque, requests, super.hashCode()); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (opaque != null) { sb.append("opaque:"); sb.append(opaque + ","); } + if (requests != null && !requests.isEmpty()) { sb.append("requests:"); sb.append(requests); } + sb.append("}"); + return sb.toString(); + } + public class OpaqueNested extends V1alpha3OpaqueDeviceConfigurationFluent> implements Nested{ + OpaqueNested(V1alpha3OpaqueDeviceConfiguration item) { + this.builder = new V1alpha3OpaqueDeviceConfigurationBuilder(this, item); + } + V1alpha3OpaqueDeviceConfigurationBuilder builder; + + public N and() { + return (N) V1alpha3DeviceClaimConfigurationFluent.this.withOpaque(builder.build()); + } + + public N endOpaque() { + return and(); + } + + + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceClaimFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceClaimFluent.java new file mode 100644 index 0000000000..5528312976 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceClaimFluent.java @@ -0,0 +1,607 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.Nested; +import java.util.ArrayList; +import java.lang.String; +import java.util.function.Predicate; +import io.kubernetes.client.fluent.BaseFluent; +import java.util.Iterator; +import java.util.List; +import java.util.Collection; +import java.lang.Object; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1alpha3DeviceClaimFluent> extends BaseFluent{ + public V1alpha3DeviceClaimFluent() { + } + + public V1alpha3DeviceClaimFluent(V1alpha3DeviceClaim instance) { + this.copyInstance(instance); + } + private ArrayList config; + private ArrayList constraints; + private ArrayList requests; + + protected void copyInstance(V1alpha3DeviceClaim instance) { + instance = (instance != null ? instance : new V1alpha3DeviceClaim()); + if (instance != null) { + this.withConfig(instance.getConfig()); + this.withConstraints(instance.getConstraints()); + this.withRequests(instance.getRequests()); + } + } + + public A addToConfig(int index,V1alpha3DeviceClaimConfiguration item) { + if (this.config == null) {this.config = new ArrayList();} + V1alpha3DeviceClaimConfigurationBuilder builder = new V1alpha3DeviceClaimConfigurationBuilder(item); + if (index < 0 || index >= config.size()) { + _visitables.get("config").add(builder); + config.add(builder); + } else { + _visitables.get("config").add(builder); + config.add(index, builder); + } + return (A)this; + } + + public A setToConfig(int index,V1alpha3DeviceClaimConfiguration item) { + if (this.config == null) {this.config = new ArrayList();} + V1alpha3DeviceClaimConfigurationBuilder builder = new V1alpha3DeviceClaimConfigurationBuilder(item); + if (index < 0 || index >= config.size()) { + _visitables.get("config").add(builder); + config.add(builder); + } else { + _visitables.get("config").add(builder); + config.set(index, builder); + } + return (A)this; + } + + public A addToConfig(io.kubernetes.client.openapi.models.V1alpha3DeviceClaimConfiguration... items) { + if (this.config == null) {this.config = new ArrayList();} + for (V1alpha3DeviceClaimConfiguration item : items) {V1alpha3DeviceClaimConfigurationBuilder builder = new V1alpha3DeviceClaimConfigurationBuilder(item);_visitables.get("config").add(builder);this.config.add(builder);} return (A)this; + } + + public A addAllToConfig(Collection items) { + if (this.config == null) {this.config = new ArrayList();} + for (V1alpha3DeviceClaimConfiguration item : items) {V1alpha3DeviceClaimConfigurationBuilder builder = new V1alpha3DeviceClaimConfigurationBuilder(item);_visitables.get("config").add(builder);this.config.add(builder);} return (A)this; + } + + public A removeFromConfig(io.kubernetes.client.openapi.models.V1alpha3DeviceClaimConfiguration... items) { + if (this.config == null) return (A)this; + for (V1alpha3DeviceClaimConfiguration item : items) {V1alpha3DeviceClaimConfigurationBuilder builder = new V1alpha3DeviceClaimConfigurationBuilder(item);_visitables.get("config").remove(builder); this.config.remove(builder);} return (A)this; + } + + public A removeAllFromConfig(Collection items) { + if (this.config == null) return (A)this; + for (V1alpha3DeviceClaimConfiguration item : items) {V1alpha3DeviceClaimConfigurationBuilder builder = new V1alpha3DeviceClaimConfigurationBuilder(item);_visitables.get("config").remove(builder); this.config.remove(builder);} return (A)this; + } + + public A removeMatchingFromConfig(Predicate predicate) { + if (config == null) return (A) this; + final Iterator each = config.iterator(); + final List visitables = _visitables.get("config"); + while (each.hasNext()) { + V1alpha3DeviceClaimConfigurationBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A)this; + } + + public List buildConfig() { + return this.config != null ? build(config) : null; + } + + public V1alpha3DeviceClaimConfiguration buildConfig(int index) { + return this.config.get(index).build(); + } + + public V1alpha3DeviceClaimConfiguration buildFirstConfig() { + return this.config.get(0).build(); + } + + public V1alpha3DeviceClaimConfiguration buildLastConfig() { + return this.config.get(config.size() - 1).build(); + } + + public V1alpha3DeviceClaimConfiguration buildMatchingConfig(Predicate predicate) { + for (V1alpha3DeviceClaimConfigurationBuilder item : config) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; + } + + public boolean hasMatchingConfig(Predicate predicate) { + for (V1alpha3DeviceClaimConfigurationBuilder item : config) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public A withConfig(List config) { + if (this.config != null) { + this._visitables.get("config").clear(); + } + if (config != null) { + this.config = new ArrayList(); + for (V1alpha3DeviceClaimConfiguration item : config) { + this.addToConfig(item); + } + } else { + this.config = null; + } + return (A) this; + } + + public A withConfig(io.kubernetes.client.openapi.models.V1alpha3DeviceClaimConfiguration... config) { + if (this.config != null) { + this.config.clear(); + _visitables.remove("config"); + } + if (config != null) { + for (V1alpha3DeviceClaimConfiguration item : config) { + this.addToConfig(item); + } + } + return (A) this; + } + + public boolean hasConfig() { + return this.config != null && !this.config.isEmpty(); + } + + public ConfigNested addNewConfig() { + return new ConfigNested(-1, null); + } + + public ConfigNested addNewConfigLike(V1alpha3DeviceClaimConfiguration item) { + return new ConfigNested(-1, item); + } + + public ConfigNested setNewConfigLike(int index,V1alpha3DeviceClaimConfiguration item) { + return new ConfigNested(index, item); + } + + public ConfigNested editConfig(int index) { + if (config.size() <= index) throw new RuntimeException("Can't edit config. Index exceeds size."); + return setNewConfigLike(index, buildConfig(index)); + } + + public ConfigNested editFirstConfig() { + if (config.size() == 0) throw new RuntimeException("Can't edit first config. The list is empty."); + return setNewConfigLike(0, buildConfig(0)); + } + + public ConfigNested editLastConfig() { + int index = config.size() - 1; + if (index < 0) throw new RuntimeException("Can't edit last config. The list is empty."); + return setNewConfigLike(index, buildConfig(index)); + } + + public ConfigNested editMatchingConfig(Predicate predicate) { + int index = -1; + for (int i=0;i();} + V1alpha3DeviceConstraintBuilder builder = new V1alpha3DeviceConstraintBuilder(item); + if (index < 0 || index >= constraints.size()) { + _visitables.get("constraints").add(builder); + constraints.add(builder); + } else { + _visitables.get("constraints").add(builder); + constraints.add(index, builder); + } + return (A)this; + } + + public A setToConstraints(int index,V1alpha3DeviceConstraint item) { + if (this.constraints == null) {this.constraints = new ArrayList();} + V1alpha3DeviceConstraintBuilder builder = new V1alpha3DeviceConstraintBuilder(item); + if (index < 0 || index >= constraints.size()) { + _visitables.get("constraints").add(builder); + constraints.add(builder); + } else { + _visitables.get("constraints").add(builder); + constraints.set(index, builder); + } + return (A)this; + } + + public A addToConstraints(io.kubernetes.client.openapi.models.V1alpha3DeviceConstraint... items) { + if (this.constraints == null) {this.constraints = new ArrayList();} + for (V1alpha3DeviceConstraint item : items) {V1alpha3DeviceConstraintBuilder builder = new V1alpha3DeviceConstraintBuilder(item);_visitables.get("constraints").add(builder);this.constraints.add(builder);} return (A)this; + } + + public A addAllToConstraints(Collection items) { + if (this.constraints == null) {this.constraints = new ArrayList();} + for (V1alpha3DeviceConstraint item : items) {V1alpha3DeviceConstraintBuilder builder = new V1alpha3DeviceConstraintBuilder(item);_visitables.get("constraints").add(builder);this.constraints.add(builder);} return (A)this; + } + + public A removeFromConstraints(io.kubernetes.client.openapi.models.V1alpha3DeviceConstraint... items) { + if (this.constraints == null) return (A)this; + for (V1alpha3DeviceConstraint item : items) {V1alpha3DeviceConstraintBuilder builder = new V1alpha3DeviceConstraintBuilder(item);_visitables.get("constraints").remove(builder); this.constraints.remove(builder);} return (A)this; + } + + public A removeAllFromConstraints(Collection items) { + if (this.constraints == null) return (A)this; + for (V1alpha3DeviceConstraint item : items) {V1alpha3DeviceConstraintBuilder builder = new V1alpha3DeviceConstraintBuilder(item);_visitables.get("constraints").remove(builder); this.constraints.remove(builder);} return (A)this; + } + + public A removeMatchingFromConstraints(Predicate predicate) { + if (constraints == null) return (A) this; + final Iterator each = constraints.iterator(); + final List visitables = _visitables.get("constraints"); + while (each.hasNext()) { + V1alpha3DeviceConstraintBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A)this; + } + + public List buildConstraints() { + return this.constraints != null ? build(constraints) : null; + } + + public V1alpha3DeviceConstraint buildConstraint(int index) { + return this.constraints.get(index).build(); + } + + public V1alpha3DeviceConstraint buildFirstConstraint() { + return this.constraints.get(0).build(); + } + + public V1alpha3DeviceConstraint buildLastConstraint() { + return this.constraints.get(constraints.size() - 1).build(); + } + + public V1alpha3DeviceConstraint buildMatchingConstraint(Predicate predicate) { + for (V1alpha3DeviceConstraintBuilder item : constraints) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; + } + + public boolean hasMatchingConstraint(Predicate predicate) { + for (V1alpha3DeviceConstraintBuilder item : constraints) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public A withConstraints(List constraints) { + if (this.constraints != null) { + this._visitables.get("constraints").clear(); + } + if (constraints != null) { + this.constraints = new ArrayList(); + for (V1alpha3DeviceConstraint item : constraints) { + this.addToConstraints(item); + } + } else { + this.constraints = null; + } + return (A) this; + } + + public A withConstraints(io.kubernetes.client.openapi.models.V1alpha3DeviceConstraint... constraints) { + if (this.constraints != null) { + this.constraints.clear(); + _visitables.remove("constraints"); + } + if (constraints != null) { + for (V1alpha3DeviceConstraint item : constraints) { + this.addToConstraints(item); + } + } + return (A) this; + } + + public boolean hasConstraints() { + return this.constraints != null && !this.constraints.isEmpty(); + } + + public ConstraintsNested addNewConstraint() { + return new ConstraintsNested(-1, null); + } + + public ConstraintsNested addNewConstraintLike(V1alpha3DeviceConstraint item) { + return new ConstraintsNested(-1, item); + } + + public ConstraintsNested setNewConstraintLike(int index,V1alpha3DeviceConstraint item) { + return new ConstraintsNested(index, item); + } + + public ConstraintsNested editConstraint(int index) { + if (constraints.size() <= index) throw new RuntimeException("Can't edit constraints. Index exceeds size."); + return setNewConstraintLike(index, buildConstraint(index)); + } + + public ConstraintsNested editFirstConstraint() { + if (constraints.size() == 0) throw new RuntimeException("Can't edit first constraints. The list is empty."); + return setNewConstraintLike(0, buildConstraint(0)); + } + + public ConstraintsNested editLastConstraint() { + int index = constraints.size() - 1; + if (index < 0) throw new RuntimeException("Can't edit last constraints. The list is empty."); + return setNewConstraintLike(index, buildConstraint(index)); + } + + public ConstraintsNested editMatchingConstraint(Predicate predicate) { + int index = -1; + for (int i=0;i();} + V1alpha3DeviceRequestBuilder builder = new V1alpha3DeviceRequestBuilder(item); + if (index < 0 || index >= requests.size()) { + _visitables.get("requests").add(builder); + requests.add(builder); + } else { + _visitables.get("requests").add(builder); + requests.add(index, builder); + } + return (A)this; + } + + public A setToRequests(int index,V1alpha3DeviceRequest item) { + if (this.requests == null) {this.requests = new ArrayList();} + V1alpha3DeviceRequestBuilder builder = new V1alpha3DeviceRequestBuilder(item); + if (index < 0 || index >= requests.size()) { + _visitables.get("requests").add(builder); + requests.add(builder); + } else { + _visitables.get("requests").add(builder); + requests.set(index, builder); + } + return (A)this; + } + + public A addToRequests(io.kubernetes.client.openapi.models.V1alpha3DeviceRequest... items) { + if (this.requests == null) {this.requests = new ArrayList();} + for (V1alpha3DeviceRequest item : items) {V1alpha3DeviceRequestBuilder builder = new V1alpha3DeviceRequestBuilder(item);_visitables.get("requests").add(builder);this.requests.add(builder);} return (A)this; + } + + public A addAllToRequests(Collection items) { + if (this.requests == null) {this.requests = new ArrayList();} + for (V1alpha3DeviceRequest item : items) {V1alpha3DeviceRequestBuilder builder = new V1alpha3DeviceRequestBuilder(item);_visitables.get("requests").add(builder);this.requests.add(builder);} return (A)this; + } + + public A removeFromRequests(io.kubernetes.client.openapi.models.V1alpha3DeviceRequest... items) { + if (this.requests == null) return (A)this; + for (V1alpha3DeviceRequest item : items) {V1alpha3DeviceRequestBuilder builder = new V1alpha3DeviceRequestBuilder(item);_visitables.get("requests").remove(builder); this.requests.remove(builder);} return (A)this; + } + + public A removeAllFromRequests(Collection items) { + if (this.requests == null) return (A)this; + for (V1alpha3DeviceRequest item : items) {V1alpha3DeviceRequestBuilder builder = new V1alpha3DeviceRequestBuilder(item);_visitables.get("requests").remove(builder); this.requests.remove(builder);} return (A)this; + } + + public A removeMatchingFromRequests(Predicate predicate) { + if (requests == null) return (A) this; + final Iterator each = requests.iterator(); + final List visitables = _visitables.get("requests"); + while (each.hasNext()) { + V1alpha3DeviceRequestBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A)this; + } + + public List buildRequests() { + return this.requests != null ? build(requests) : null; + } + + public V1alpha3DeviceRequest buildRequest(int index) { + return this.requests.get(index).build(); + } + + public V1alpha3DeviceRequest buildFirstRequest() { + return this.requests.get(0).build(); + } + + public V1alpha3DeviceRequest buildLastRequest() { + return this.requests.get(requests.size() - 1).build(); + } + + public V1alpha3DeviceRequest buildMatchingRequest(Predicate predicate) { + for (V1alpha3DeviceRequestBuilder item : requests) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; + } + + public boolean hasMatchingRequest(Predicate predicate) { + for (V1alpha3DeviceRequestBuilder item : requests) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public A withRequests(List requests) { + if (this.requests != null) { + this._visitables.get("requests").clear(); + } + if (requests != null) { + this.requests = new ArrayList(); + for (V1alpha3DeviceRequest item : requests) { + this.addToRequests(item); + } + } else { + this.requests = null; + } + return (A) this; + } + + public A withRequests(io.kubernetes.client.openapi.models.V1alpha3DeviceRequest... requests) { + if (this.requests != null) { + this.requests.clear(); + _visitables.remove("requests"); + } + if (requests != null) { + for (V1alpha3DeviceRequest item : requests) { + this.addToRequests(item); + } + } + return (A) this; + } + + public boolean hasRequests() { + return this.requests != null && !this.requests.isEmpty(); + } + + public RequestsNested addNewRequest() { + return new RequestsNested(-1, null); + } + + public RequestsNested addNewRequestLike(V1alpha3DeviceRequest item) { + return new RequestsNested(-1, item); + } + + public RequestsNested setNewRequestLike(int index,V1alpha3DeviceRequest item) { + return new RequestsNested(index, item); + } + + public RequestsNested editRequest(int index) { + if (requests.size() <= index) throw new RuntimeException("Can't edit requests. Index exceeds size."); + return setNewRequestLike(index, buildRequest(index)); + } + + public RequestsNested editFirstRequest() { + if (requests.size() == 0) throw new RuntimeException("Can't edit first requests. The list is empty."); + return setNewRequestLike(0, buildRequest(0)); + } + + public RequestsNested editLastRequest() { + int index = requests.size() - 1; + if (index < 0) throw new RuntimeException("Can't edit last requests. The list is empty."); + return setNewRequestLike(index, buildRequest(index)); + } + + public RequestsNested editMatchingRequest(Predicate predicate) { + int index = -1; + for (int i=0;i extends V1alpha3DeviceClaimConfigurationFluent> implements Nested{ + ConfigNested(int index,V1alpha3DeviceClaimConfiguration item) { + this.index = index; + this.builder = new V1alpha3DeviceClaimConfigurationBuilder(this, item); + } + V1alpha3DeviceClaimConfigurationBuilder builder; + int index; + + public N and() { + return (N) V1alpha3DeviceClaimFluent.this.setToConfig(index,builder.build()); + } + + public N endConfig() { + return and(); + } + + + } + public class ConstraintsNested extends V1alpha3DeviceConstraintFluent> implements Nested{ + ConstraintsNested(int index,V1alpha3DeviceConstraint item) { + this.index = index; + this.builder = new V1alpha3DeviceConstraintBuilder(this, item); + } + V1alpha3DeviceConstraintBuilder builder; + int index; + + public N and() { + return (N) V1alpha3DeviceClaimFluent.this.setToConstraints(index,builder.build()); + } + + public N endConstraint() { + return and(); + } + + + } + public class RequestsNested extends V1alpha3DeviceRequestFluent> implements Nested{ + RequestsNested(int index,V1alpha3DeviceRequest item) { + this.index = index; + this.builder = new V1alpha3DeviceRequestBuilder(this, item); + } + V1alpha3DeviceRequestBuilder builder; + int index; + + public N and() { + return (N) V1alpha3DeviceClaimFluent.this.setToRequests(index,builder.build()); + } + + public N endRequest() { + return and(); + } + + + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceClassBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceClassBuilder.java new file mode 100644 index 0000000000..6dc9a93800 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceClassBuilder.java @@ -0,0 +1,34 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +public class V1alpha3DeviceClassBuilder extends V1alpha3DeviceClassFluent implements VisitableBuilder{ + public V1alpha3DeviceClassBuilder() { + this(new V1alpha3DeviceClass()); + } + + public V1alpha3DeviceClassBuilder(V1alpha3DeviceClassFluent fluent) { + this(fluent, new V1alpha3DeviceClass()); + } + + public V1alpha3DeviceClassBuilder(V1alpha3DeviceClassFluent fluent,V1alpha3DeviceClass instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1alpha3DeviceClassBuilder(V1alpha3DeviceClass instance) { + this.fluent = this; + this.copyInstance(instance); + } + V1alpha3DeviceClassFluent fluent; + + public V1alpha3DeviceClass build() { + V1alpha3DeviceClass buildable = new V1alpha3DeviceClass(); + buildable.setApiVersion(fluent.getApiVersion()); + buildable.setKind(fluent.getKind()); + buildable.setMetadata(fluent.buildMetadata()); + buildable.setSpec(fluent.buildSpec()); + return buildable; + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceClassConfigurationBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceClassConfigurationBuilder.java new file mode 100644 index 0000000000..cab653ff39 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceClassConfigurationBuilder.java @@ -0,0 +1,31 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +public class V1alpha3DeviceClassConfigurationBuilder extends V1alpha3DeviceClassConfigurationFluent implements VisitableBuilder{ + public V1alpha3DeviceClassConfigurationBuilder() { + this(new V1alpha3DeviceClassConfiguration()); + } + + public V1alpha3DeviceClassConfigurationBuilder(V1alpha3DeviceClassConfigurationFluent fluent) { + this(fluent, new V1alpha3DeviceClassConfiguration()); + } + + public V1alpha3DeviceClassConfigurationBuilder(V1alpha3DeviceClassConfigurationFluent fluent,V1alpha3DeviceClassConfiguration instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1alpha3DeviceClassConfigurationBuilder(V1alpha3DeviceClassConfiguration instance) { + this.fluent = this; + this.copyInstance(instance); + } + V1alpha3DeviceClassConfigurationFluent fluent; + + public V1alpha3DeviceClassConfiguration build() { + V1alpha3DeviceClassConfiguration buildable = new V1alpha3DeviceClassConfiguration(); + buildable.setOpaque(fluent.buildOpaque()); + return buildable; + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceClassConfigurationFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceClassConfigurationFluent.java new file mode 100644 index 0000000000..2838a53d9e --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceClassConfigurationFluent.java @@ -0,0 +1,106 @@ +package io.kubernetes.client.openapi.models; + +import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Object; +import java.lang.String; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1alpha3DeviceClassConfigurationFluent> extends BaseFluent{ + public V1alpha3DeviceClassConfigurationFluent() { + } + + public V1alpha3DeviceClassConfigurationFluent(V1alpha3DeviceClassConfiguration instance) { + this.copyInstance(instance); + } + private V1alpha3OpaqueDeviceConfigurationBuilder opaque; + + protected void copyInstance(V1alpha3DeviceClassConfiguration instance) { + instance = (instance != null ? instance : new V1alpha3DeviceClassConfiguration()); + if (instance != null) { + this.withOpaque(instance.getOpaque()); + } + } + + public V1alpha3OpaqueDeviceConfiguration buildOpaque() { + return this.opaque != null ? this.opaque.build() : null; + } + + public A withOpaque(V1alpha3OpaqueDeviceConfiguration opaque) { + this._visitables.remove("opaque"); + if (opaque != null) { + this.opaque = new V1alpha3OpaqueDeviceConfigurationBuilder(opaque); + this._visitables.get("opaque").add(this.opaque); + } else { + this.opaque = null; + this._visitables.get("opaque").remove(this.opaque); + } + return (A) this; + } + + public boolean hasOpaque() { + return this.opaque != null; + } + + public OpaqueNested withNewOpaque() { + return new OpaqueNested(null); + } + + public OpaqueNested withNewOpaqueLike(V1alpha3OpaqueDeviceConfiguration item) { + return new OpaqueNested(item); + } + + public OpaqueNested editOpaque() { + return withNewOpaqueLike(java.util.Optional.ofNullable(buildOpaque()).orElse(null)); + } + + public OpaqueNested editOrNewOpaque() { + return withNewOpaqueLike(java.util.Optional.ofNullable(buildOpaque()).orElse(new V1alpha3OpaqueDeviceConfigurationBuilder().build())); + } + + public OpaqueNested editOrNewOpaqueLike(V1alpha3OpaqueDeviceConfiguration item) { + return withNewOpaqueLike(java.util.Optional.ofNullable(buildOpaque()).orElse(item)); + } + + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + if (!super.equals(o)) return false; + V1alpha3DeviceClassConfigurationFluent that = (V1alpha3DeviceClassConfigurationFluent) o; + if (!java.util.Objects.equals(opaque, that.opaque)) return false; + return true; + } + + public int hashCode() { + return java.util.Objects.hash(opaque, super.hashCode()); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (opaque != null) { sb.append("opaque:"); sb.append(opaque); } + sb.append("}"); + return sb.toString(); + } + public class OpaqueNested extends V1alpha3OpaqueDeviceConfigurationFluent> implements Nested{ + OpaqueNested(V1alpha3OpaqueDeviceConfiguration item) { + this.builder = new V1alpha3OpaqueDeviceConfigurationBuilder(this, item); + } + V1alpha3OpaqueDeviceConfigurationBuilder builder; + + public N and() { + return (N) V1alpha3DeviceClassConfigurationFluent.this.withOpaque(builder.build()); + } + + public N endOpaque() { + return and(); + } + + + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceClassFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceClassFluent.java new file mode 100644 index 0000000000..47898d23ce --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceClassFluent.java @@ -0,0 +1,200 @@ +package io.kubernetes.client.openapi.models; + +import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.Nested; +import java.lang.String; +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Object; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1alpha3DeviceClassFluent> extends BaseFluent{ + public V1alpha3DeviceClassFluent() { + } + + public V1alpha3DeviceClassFluent(V1alpha3DeviceClass instance) { + this.copyInstance(instance); + } + private String apiVersion; + private String kind; + private V1ObjectMetaBuilder metadata; + private V1alpha3DeviceClassSpecBuilder spec; + + protected void copyInstance(V1alpha3DeviceClass instance) { + instance = (instance != null ? instance : new V1alpha3DeviceClass()); + if (instance != null) { + this.withApiVersion(instance.getApiVersion()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); + this.withSpec(instance.getSpec()); + } + } + + public String getApiVersion() { + return this.apiVersion; + } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + + public boolean hasApiVersion() { + return this.apiVersion != null; + } + + public String getKind() { + return this.kind; + } + + public A withKind(String kind) { + this.kind = kind; + return (A) this; + } + + public boolean hasKind() { + return this.kind != null; + } + + public V1ObjectMeta buildMetadata() { + return this.metadata != null ? this.metadata.build() : null; + } + + public A withMetadata(V1ObjectMeta metadata) { + this._visitables.remove("metadata"); + if (metadata != null) { + this.metadata = new V1ObjectMetaBuilder(metadata); + this._visitables.get("metadata").add(this.metadata); + } else { + this.metadata = null; + this._visitables.get("metadata").remove(this.metadata); + } + return (A) this; + } + + public boolean hasMetadata() { + return this.metadata != null; + } + + public MetadataNested withNewMetadata() { + return new MetadataNested(null); + } + + public MetadataNested withNewMetadataLike(V1ObjectMeta item) { + return new MetadataNested(item); + } + + public MetadataNested editMetadata() { + return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(null)); + } + + public MetadataNested editOrNewMetadata() { + return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(new V1ObjectMetaBuilder().build())); + } + + public MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { + return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(item)); + } + + public V1alpha3DeviceClassSpec buildSpec() { + return this.spec != null ? this.spec.build() : null; + } + + public A withSpec(V1alpha3DeviceClassSpec spec) { + this._visitables.remove("spec"); + if (spec != null) { + this.spec = new V1alpha3DeviceClassSpecBuilder(spec); + this._visitables.get("spec").add(this.spec); + } else { + this.spec = null; + this._visitables.get("spec").remove(this.spec); + } + return (A) this; + } + + public boolean hasSpec() { + return this.spec != null; + } + + public SpecNested withNewSpec() { + return new SpecNested(null); + } + + public SpecNested withNewSpecLike(V1alpha3DeviceClassSpec item) { + return new SpecNested(item); + } + + public SpecNested editSpec() { + return withNewSpecLike(java.util.Optional.ofNullable(buildSpec()).orElse(null)); + } + + public SpecNested editOrNewSpec() { + return withNewSpecLike(java.util.Optional.ofNullable(buildSpec()).orElse(new V1alpha3DeviceClassSpecBuilder().build())); + } + + public SpecNested editOrNewSpecLike(V1alpha3DeviceClassSpec item) { + return withNewSpecLike(java.util.Optional.ofNullable(buildSpec()).orElse(item)); + } + + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + if (!super.equals(o)) return false; + V1alpha3DeviceClassFluent that = (V1alpha3DeviceClassFluent) o; + if (!java.util.Objects.equals(apiVersion, that.apiVersion)) return false; + if (!java.util.Objects.equals(kind, that.kind)) return false; + if (!java.util.Objects.equals(metadata, that.metadata)) return false; + if (!java.util.Objects.equals(spec, that.spec)) return false; + return true; + } + + public int hashCode() { + return java.util.Objects.hash(apiVersion, kind, metadata, spec, super.hashCode()); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (apiVersion != null) { sb.append("apiVersion:"); sb.append(apiVersion + ","); } + if (kind != null) { sb.append("kind:"); sb.append(kind + ","); } + if (metadata != null) { sb.append("metadata:"); sb.append(metadata + ","); } + if (spec != null) { sb.append("spec:"); sb.append(spec); } + sb.append("}"); + return sb.toString(); + } + public class MetadataNested extends V1ObjectMetaFluent> implements Nested{ + MetadataNested(V1ObjectMeta item) { + this.builder = new V1ObjectMetaBuilder(this, item); + } + V1ObjectMetaBuilder builder; + + public N and() { + return (N) V1alpha3DeviceClassFluent.this.withMetadata(builder.build()); + } + + public N endMetadata() { + return and(); + } + + + } + public class SpecNested extends V1alpha3DeviceClassSpecFluent> implements Nested{ + SpecNested(V1alpha3DeviceClassSpec item) { + this.builder = new V1alpha3DeviceClassSpecBuilder(this, item); + } + V1alpha3DeviceClassSpecBuilder builder; + + public N and() { + return (N) V1alpha3DeviceClassFluent.this.withSpec(builder.build()); + } + + public N endSpec() { + return and(); + } + + + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceClassListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceClassListBuilder.java new file mode 100644 index 0000000000..5d0f1daede --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceClassListBuilder.java @@ -0,0 +1,34 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +public class V1alpha3DeviceClassListBuilder extends V1alpha3DeviceClassListFluent implements VisitableBuilder{ + public V1alpha3DeviceClassListBuilder() { + this(new V1alpha3DeviceClassList()); + } + + public V1alpha3DeviceClassListBuilder(V1alpha3DeviceClassListFluent fluent) { + this(fluent, new V1alpha3DeviceClassList()); + } + + public V1alpha3DeviceClassListBuilder(V1alpha3DeviceClassListFluent fluent,V1alpha3DeviceClassList instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1alpha3DeviceClassListBuilder(V1alpha3DeviceClassList instance) { + this.fluent = this; + this.copyInstance(instance); + } + V1alpha3DeviceClassListFluent fluent; + + public V1alpha3DeviceClassList build() { + V1alpha3DeviceClassList buildable = new V1alpha3DeviceClassList(); + buildable.setApiVersion(fluent.getApiVersion()); + buildable.setItems(fluent.buildItems()); + buildable.setKind(fluent.getKind()); + buildable.setMetadata(fluent.buildMetadata()); + return buildable; + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceClassListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceClassListFluent.java new file mode 100644 index 0000000000..d494464dcc --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceClassListFluent.java @@ -0,0 +1,331 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.Nested; +import java.util.ArrayList; +import java.lang.String; +import java.util.function.Predicate; +import io.kubernetes.client.fluent.BaseFluent; +import java.util.Iterator; +import java.util.Collection; +import java.lang.Object; +import java.util.List; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1alpha3DeviceClassListFluent> extends BaseFluent{ + public V1alpha3DeviceClassListFluent() { + } + + public V1alpha3DeviceClassListFluent(V1alpha3DeviceClassList instance) { + this.copyInstance(instance); + } + private String apiVersion; + private ArrayList items; + private String kind; + private V1ListMetaBuilder metadata; + + protected void copyInstance(V1alpha3DeviceClassList instance) { + instance = (instance != null ? instance : new V1alpha3DeviceClassList()); + if (instance != null) { + this.withApiVersion(instance.getApiVersion()); + this.withItems(instance.getItems()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); + } + } + + public String getApiVersion() { + return this.apiVersion; + } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + + public boolean hasApiVersion() { + return this.apiVersion != null; + } + + public A addToItems(int index,V1alpha3DeviceClass item) { + if (this.items == null) {this.items = new ArrayList();} + V1alpha3DeviceClassBuilder builder = new V1alpha3DeviceClassBuilder(item); + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.add(index, builder); + } + return (A)this; + } + + public A setToItems(int index,V1alpha3DeviceClass item) { + if (this.items == null) {this.items = new ArrayList();} + V1alpha3DeviceClassBuilder builder = new V1alpha3DeviceClassBuilder(item); + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.set(index, builder); + } + return (A)this; + } + + public A addToItems(io.kubernetes.client.openapi.models.V1alpha3DeviceClass... items) { + if (this.items == null) {this.items = new ArrayList();} + for (V1alpha3DeviceClass item : items) {V1alpha3DeviceClassBuilder builder = new V1alpha3DeviceClassBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; + } + + public A addAllToItems(Collection items) { + if (this.items == null) {this.items = new ArrayList();} + for (V1alpha3DeviceClass item : items) {V1alpha3DeviceClassBuilder builder = new V1alpha3DeviceClassBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; + } + + public A removeFromItems(io.kubernetes.client.openapi.models.V1alpha3DeviceClass... items) { + if (this.items == null) return (A)this; + for (V1alpha3DeviceClass item : items) {V1alpha3DeviceClassBuilder builder = new V1alpha3DeviceClassBuilder(item);_visitables.get("items").remove(builder); this.items.remove(builder);} return (A)this; + } + + public A removeAllFromItems(Collection items) { + if (this.items == null) return (A)this; + for (V1alpha3DeviceClass item : items) {V1alpha3DeviceClassBuilder builder = new V1alpha3DeviceClassBuilder(item);_visitables.get("items").remove(builder); this.items.remove(builder);} return (A)this; + } + + public A removeMatchingFromItems(Predicate predicate) { + if (items == null) return (A) this; + final Iterator each = items.iterator(); + final List visitables = _visitables.get("items"); + while (each.hasNext()) { + V1alpha3DeviceClassBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A)this; + } + + public List buildItems() { + return this.items != null ? build(items) : null; + } + + public V1alpha3DeviceClass buildItem(int index) { + return this.items.get(index).build(); + } + + public V1alpha3DeviceClass buildFirstItem() { + return this.items.get(0).build(); + } + + public V1alpha3DeviceClass buildLastItem() { + return this.items.get(items.size() - 1).build(); + } + + public V1alpha3DeviceClass buildMatchingItem(Predicate predicate) { + for (V1alpha3DeviceClassBuilder item : items) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; + } + + public boolean hasMatchingItem(Predicate predicate) { + for (V1alpha3DeviceClassBuilder item : items) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public A withItems(List items) { + if (this.items != null) { + this._visitables.get("items").clear(); + } + if (items != null) { + this.items = new ArrayList(); + for (V1alpha3DeviceClass item : items) { + this.addToItems(item); + } + } else { + this.items = null; + } + return (A) this; + } + + public A withItems(io.kubernetes.client.openapi.models.V1alpha3DeviceClass... items) { + if (this.items != null) { + this.items.clear(); + _visitables.remove("items"); + } + if (items != null) { + for (V1alpha3DeviceClass item : items) { + this.addToItems(item); + } + } + return (A) this; + } + + public boolean hasItems() { + return this.items != null && !this.items.isEmpty(); + } + + public ItemsNested addNewItem() { + return new ItemsNested(-1, null); + } + + public ItemsNested addNewItemLike(V1alpha3DeviceClass item) { + return new ItemsNested(-1, item); + } + + public ItemsNested setNewItemLike(int index,V1alpha3DeviceClass item) { + return new ItemsNested(index, item); + } + + public ItemsNested editItem(int index) { + if (items.size() <= index) throw new RuntimeException("Can't edit items. Index exceeds size."); + return setNewItemLike(index, buildItem(index)); + } + + public ItemsNested editFirstItem() { + if (items.size() == 0) throw new RuntimeException("Can't edit first items. The list is empty."); + return setNewItemLike(0, buildItem(0)); + } + + public ItemsNested editLastItem() { + int index = items.size() - 1; + if (index < 0) throw new RuntimeException("Can't edit last items. The list is empty."); + return setNewItemLike(index, buildItem(index)); + } + + public ItemsNested editMatchingItem(Predicate predicate) { + int index = -1; + for (int i=0;i withNewMetadata() { + return new MetadataNested(null); + } + + public MetadataNested withNewMetadataLike(V1ListMeta item) { + return new MetadataNested(item); + } + + public MetadataNested editMetadata() { + return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(null)); + } + + public MetadataNested editOrNewMetadata() { + return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(new V1ListMetaBuilder().build())); + } + + public MetadataNested editOrNewMetadataLike(V1ListMeta item) { + return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(item)); + } + + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + if (!super.equals(o)) return false; + V1alpha3DeviceClassListFluent that = (V1alpha3DeviceClassListFluent) o; + if (!java.util.Objects.equals(apiVersion, that.apiVersion)) return false; + if (!java.util.Objects.equals(items, that.items)) return false; + if (!java.util.Objects.equals(kind, that.kind)) return false; + if (!java.util.Objects.equals(metadata, that.metadata)) return false; + return true; + } + + public int hashCode() { + return java.util.Objects.hash(apiVersion, items, kind, metadata, super.hashCode()); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (apiVersion != null) { sb.append("apiVersion:"); sb.append(apiVersion + ","); } + if (items != null && !items.isEmpty()) { sb.append("items:"); sb.append(items + ","); } + if (kind != null) { sb.append("kind:"); sb.append(kind + ","); } + if (metadata != null) { sb.append("metadata:"); sb.append(metadata); } + sb.append("}"); + return sb.toString(); + } + public class ItemsNested extends V1alpha3DeviceClassFluent> implements Nested{ + ItemsNested(int index,V1alpha3DeviceClass item) { + this.index = index; + this.builder = new V1alpha3DeviceClassBuilder(this, item); + } + V1alpha3DeviceClassBuilder builder; + int index; + + public N and() { + return (N) V1alpha3DeviceClassListFluent.this.setToItems(index,builder.build()); + } + + public N endItem() { + return and(); + } + + + } + public class MetadataNested extends V1ListMetaFluent> implements Nested{ + MetadataNested(V1ListMeta item) { + this.builder = new V1ListMetaBuilder(this, item); + } + V1ListMetaBuilder builder; + + public N and() { + return (N) V1alpha3DeviceClassListFluent.this.withMetadata(builder.build()); + } + + public N endMetadata() { + return and(); + } + + + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceClassSpecBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceClassSpecBuilder.java new file mode 100644 index 0000000000..ed3cef54a1 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceClassSpecBuilder.java @@ -0,0 +1,32 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +public class V1alpha3DeviceClassSpecBuilder extends V1alpha3DeviceClassSpecFluent implements VisitableBuilder{ + public V1alpha3DeviceClassSpecBuilder() { + this(new V1alpha3DeviceClassSpec()); + } + + public V1alpha3DeviceClassSpecBuilder(V1alpha3DeviceClassSpecFluent fluent) { + this(fluent, new V1alpha3DeviceClassSpec()); + } + + public V1alpha3DeviceClassSpecBuilder(V1alpha3DeviceClassSpecFluent fluent,V1alpha3DeviceClassSpec instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1alpha3DeviceClassSpecBuilder(V1alpha3DeviceClassSpec instance) { + this.fluent = this; + this.copyInstance(instance); + } + V1alpha3DeviceClassSpecFluent fluent; + + public V1alpha3DeviceClassSpec build() { + V1alpha3DeviceClassSpec buildable = new V1alpha3DeviceClassSpec(); + buildable.setConfig(fluent.buildConfig()); + buildable.setSelectors(fluent.buildSelectors()); + return buildable; + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceClassSpecFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceClassSpecFluent.java new file mode 100644 index 0000000000..ebea229ad0 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceClassSpecFluent.java @@ -0,0 +1,422 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.Nested; +import java.util.ArrayList; +import java.lang.String; +import java.util.function.Predicate; +import io.kubernetes.client.fluent.BaseFluent; +import java.util.Iterator; +import java.util.Collection; +import java.lang.Object; +import java.util.List; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1alpha3DeviceClassSpecFluent> extends BaseFluent{ + public V1alpha3DeviceClassSpecFluent() { + } + + public V1alpha3DeviceClassSpecFluent(V1alpha3DeviceClassSpec instance) { + this.copyInstance(instance); + } + private ArrayList config; + private ArrayList selectors; + + protected void copyInstance(V1alpha3DeviceClassSpec instance) { + instance = (instance != null ? instance : new V1alpha3DeviceClassSpec()); + if (instance != null) { + this.withConfig(instance.getConfig()); + this.withSelectors(instance.getSelectors()); + } + } + + public A addToConfig(int index,V1alpha3DeviceClassConfiguration item) { + if (this.config == null) {this.config = new ArrayList();} + V1alpha3DeviceClassConfigurationBuilder builder = new V1alpha3DeviceClassConfigurationBuilder(item); + if (index < 0 || index >= config.size()) { + _visitables.get("config").add(builder); + config.add(builder); + } else { + _visitables.get("config").add(builder); + config.add(index, builder); + } + return (A)this; + } + + public A setToConfig(int index,V1alpha3DeviceClassConfiguration item) { + if (this.config == null) {this.config = new ArrayList();} + V1alpha3DeviceClassConfigurationBuilder builder = new V1alpha3DeviceClassConfigurationBuilder(item); + if (index < 0 || index >= config.size()) { + _visitables.get("config").add(builder); + config.add(builder); + } else { + _visitables.get("config").add(builder); + config.set(index, builder); + } + return (A)this; + } + + public A addToConfig(io.kubernetes.client.openapi.models.V1alpha3DeviceClassConfiguration... items) { + if (this.config == null) {this.config = new ArrayList();} + for (V1alpha3DeviceClassConfiguration item : items) {V1alpha3DeviceClassConfigurationBuilder builder = new V1alpha3DeviceClassConfigurationBuilder(item);_visitables.get("config").add(builder);this.config.add(builder);} return (A)this; + } + + public A addAllToConfig(Collection items) { + if (this.config == null) {this.config = new ArrayList();} + for (V1alpha3DeviceClassConfiguration item : items) {V1alpha3DeviceClassConfigurationBuilder builder = new V1alpha3DeviceClassConfigurationBuilder(item);_visitables.get("config").add(builder);this.config.add(builder);} return (A)this; + } + + public A removeFromConfig(io.kubernetes.client.openapi.models.V1alpha3DeviceClassConfiguration... items) { + if (this.config == null) return (A)this; + for (V1alpha3DeviceClassConfiguration item : items) {V1alpha3DeviceClassConfigurationBuilder builder = new V1alpha3DeviceClassConfigurationBuilder(item);_visitables.get("config").remove(builder); this.config.remove(builder);} return (A)this; + } + + public A removeAllFromConfig(Collection items) { + if (this.config == null) return (A)this; + for (V1alpha3DeviceClassConfiguration item : items) {V1alpha3DeviceClassConfigurationBuilder builder = new V1alpha3DeviceClassConfigurationBuilder(item);_visitables.get("config").remove(builder); this.config.remove(builder);} return (A)this; + } + + public A removeMatchingFromConfig(Predicate predicate) { + if (config == null) return (A) this; + final Iterator each = config.iterator(); + final List visitables = _visitables.get("config"); + while (each.hasNext()) { + V1alpha3DeviceClassConfigurationBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A)this; + } + + public List buildConfig() { + return this.config != null ? build(config) : null; + } + + public V1alpha3DeviceClassConfiguration buildConfig(int index) { + return this.config.get(index).build(); + } + + public V1alpha3DeviceClassConfiguration buildFirstConfig() { + return this.config.get(0).build(); + } + + public V1alpha3DeviceClassConfiguration buildLastConfig() { + return this.config.get(config.size() - 1).build(); + } + + public V1alpha3DeviceClassConfiguration buildMatchingConfig(Predicate predicate) { + for (V1alpha3DeviceClassConfigurationBuilder item : config) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; + } + + public boolean hasMatchingConfig(Predicate predicate) { + for (V1alpha3DeviceClassConfigurationBuilder item : config) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public A withConfig(List config) { + if (this.config != null) { + this._visitables.get("config").clear(); + } + if (config != null) { + this.config = new ArrayList(); + for (V1alpha3DeviceClassConfiguration item : config) { + this.addToConfig(item); + } + } else { + this.config = null; + } + return (A) this; + } + + public A withConfig(io.kubernetes.client.openapi.models.V1alpha3DeviceClassConfiguration... config) { + if (this.config != null) { + this.config.clear(); + _visitables.remove("config"); + } + if (config != null) { + for (V1alpha3DeviceClassConfiguration item : config) { + this.addToConfig(item); + } + } + return (A) this; + } + + public boolean hasConfig() { + return this.config != null && !this.config.isEmpty(); + } + + public ConfigNested addNewConfig() { + return new ConfigNested(-1, null); + } + + public ConfigNested addNewConfigLike(V1alpha3DeviceClassConfiguration item) { + return new ConfigNested(-1, item); + } + + public ConfigNested setNewConfigLike(int index,V1alpha3DeviceClassConfiguration item) { + return new ConfigNested(index, item); + } + + public ConfigNested editConfig(int index) { + if (config.size() <= index) throw new RuntimeException("Can't edit config. Index exceeds size."); + return setNewConfigLike(index, buildConfig(index)); + } + + public ConfigNested editFirstConfig() { + if (config.size() == 0) throw new RuntimeException("Can't edit first config. The list is empty."); + return setNewConfigLike(0, buildConfig(0)); + } + + public ConfigNested editLastConfig() { + int index = config.size() - 1; + if (index < 0) throw new RuntimeException("Can't edit last config. The list is empty."); + return setNewConfigLike(index, buildConfig(index)); + } + + public ConfigNested editMatchingConfig(Predicate predicate) { + int index = -1; + for (int i=0;i();} + V1alpha3DeviceSelectorBuilder builder = new V1alpha3DeviceSelectorBuilder(item); + if (index < 0 || index >= selectors.size()) { + _visitables.get("selectors").add(builder); + selectors.add(builder); + } else { + _visitables.get("selectors").add(builder); + selectors.add(index, builder); + } + return (A)this; + } + + public A setToSelectors(int index,V1alpha3DeviceSelector item) { + if (this.selectors == null) {this.selectors = new ArrayList();} + V1alpha3DeviceSelectorBuilder builder = new V1alpha3DeviceSelectorBuilder(item); + if (index < 0 || index >= selectors.size()) { + _visitables.get("selectors").add(builder); + selectors.add(builder); + } else { + _visitables.get("selectors").add(builder); + selectors.set(index, builder); + } + return (A)this; + } + + public A addToSelectors(io.kubernetes.client.openapi.models.V1alpha3DeviceSelector... items) { + if (this.selectors == null) {this.selectors = new ArrayList();} + for (V1alpha3DeviceSelector item : items) {V1alpha3DeviceSelectorBuilder builder = new V1alpha3DeviceSelectorBuilder(item);_visitables.get("selectors").add(builder);this.selectors.add(builder);} return (A)this; + } + + public A addAllToSelectors(Collection items) { + if (this.selectors == null) {this.selectors = new ArrayList();} + for (V1alpha3DeviceSelector item : items) {V1alpha3DeviceSelectorBuilder builder = new V1alpha3DeviceSelectorBuilder(item);_visitables.get("selectors").add(builder);this.selectors.add(builder);} return (A)this; + } + + public A removeFromSelectors(io.kubernetes.client.openapi.models.V1alpha3DeviceSelector... items) { + if (this.selectors == null) return (A)this; + for (V1alpha3DeviceSelector item : items) {V1alpha3DeviceSelectorBuilder builder = new V1alpha3DeviceSelectorBuilder(item);_visitables.get("selectors").remove(builder); this.selectors.remove(builder);} return (A)this; + } + + public A removeAllFromSelectors(Collection items) { + if (this.selectors == null) return (A)this; + for (V1alpha3DeviceSelector item : items) {V1alpha3DeviceSelectorBuilder builder = new V1alpha3DeviceSelectorBuilder(item);_visitables.get("selectors").remove(builder); this.selectors.remove(builder);} return (A)this; + } + + public A removeMatchingFromSelectors(Predicate predicate) { + if (selectors == null) return (A) this; + final Iterator each = selectors.iterator(); + final List visitables = _visitables.get("selectors"); + while (each.hasNext()) { + V1alpha3DeviceSelectorBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A)this; + } + + public List buildSelectors() { + return this.selectors != null ? build(selectors) : null; + } + + public V1alpha3DeviceSelector buildSelector(int index) { + return this.selectors.get(index).build(); + } + + public V1alpha3DeviceSelector buildFirstSelector() { + return this.selectors.get(0).build(); + } + + public V1alpha3DeviceSelector buildLastSelector() { + return this.selectors.get(selectors.size() - 1).build(); + } + + public V1alpha3DeviceSelector buildMatchingSelector(Predicate predicate) { + for (V1alpha3DeviceSelectorBuilder item : selectors) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; + } + + public boolean hasMatchingSelector(Predicate predicate) { + for (V1alpha3DeviceSelectorBuilder item : selectors) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public A withSelectors(List selectors) { + if (this.selectors != null) { + this._visitables.get("selectors").clear(); + } + if (selectors != null) { + this.selectors = new ArrayList(); + for (V1alpha3DeviceSelector item : selectors) { + this.addToSelectors(item); + } + } else { + this.selectors = null; + } + return (A) this; + } + + public A withSelectors(io.kubernetes.client.openapi.models.V1alpha3DeviceSelector... selectors) { + if (this.selectors != null) { + this.selectors.clear(); + _visitables.remove("selectors"); + } + if (selectors != null) { + for (V1alpha3DeviceSelector item : selectors) { + this.addToSelectors(item); + } + } + return (A) this; + } + + public boolean hasSelectors() { + return this.selectors != null && !this.selectors.isEmpty(); + } + + public SelectorsNested addNewSelector() { + return new SelectorsNested(-1, null); + } + + public SelectorsNested addNewSelectorLike(V1alpha3DeviceSelector item) { + return new SelectorsNested(-1, item); + } + + public SelectorsNested setNewSelectorLike(int index,V1alpha3DeviceSelector item) { + return new SelectorsNested(index, item); + } + + public SelectorsNested editSelector(int index) { + if (selectors.size() <= index) throw new RuntimeException("Can't edit selectors. Index exceeds size."); + return setNewSelectorLike(index, buildSelector(index)); + } + + public SelectorsNested editFirstSelector() { + if (selectors.size() == 0) throw new RuntimeException("Can't edit first selectors. The list is empty."); + return setNewSelectorLike(0, buildSelector(0)); + } + + public SelectorsNested editLastSelector() { + int index = selectors.size() - 1; + if (index < 0) throw new RuntimeException("Can't edit last selectors. The list is empty."); + return setNewSelectorLike(index, buildSelector(index)); + } + + public SelectorsNested editMatchingSelector(Predicate predicate) { + int index = -1; + for (int i=0;i extends V1alpha3DeviceClassConfigurationFluent> implements Nested{ + ConfigNested(int index,V1alpha3DeviceClassConfiguration item) { + this.index = index; + this.builder = new V1alpha3DeviceClassConfigurationBuilder(this, item); + } + V1alpha3DeviceClassConfigurationBuilder builder; + int index; + + public N and() { + return (N) V1alpha3DeviceClassSpecFluent.this.setToConfig(index,builder.build()); + } + + public N endConfig() { + return and(); + } + + + } + public class SelectorsNested extends V1alpha3DeviceSelectorFluent> implements Nested{ + SelectorsNested(int index,V1alpha3DeviceSelector item) { + this.index = index; + this.builder = new V1alpha3DeviceSelectorBuilder(this, item); + } + V1alpha3DeviceSelectorBuilder builder; + int index; + + public N and() { + return (N) V1alpha3DeviceClassSpecFluent.this.setToSelectors(index,builder.build()); + } + + public N endSelector() { + return and(); + } + + + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceConstraintBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceConstraintBuilder.java new file mode 100644 index 0000000000..024dd388c6 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceConstraintBuilder.java @@ -0,0 +1,32 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +public class V1alpha3DeviceConstraintBuilder extends V1alpha3DeviceConstraintFluent implements VisitableBuilder{ + public V1alpha3DeviceConstraintBuilder() { + this(new V1alpha3DeviceConstraint()); + } + + public V1alpha3DeviceConstraintBuilder(V1alpha3DeviceConstraintFluent fluent) { + this(fluent, new V1alpha3DeviceConstraint()); + } + + public V1alpha3DeviceConstraintBuilder(V1alpha3DeviceConstraintFluent fluent,V1alpha3DeviceConstraint instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1alpha3DeviceConstraintBuilder(V1alpha3DeviceConstraint instance) { + this.fluent = this; + this.copyInstance(instance); + } + V1alpha3DeviceConstraintFluent fluent; + + public V1alpha3DeviceConstraint build() { + V1alpha3DeviceConstraint buildable = new V1alpha3DeviceConstraint(); + buildable.setMatchAttribute(fluent.getMatchAttribute()); + buildable.setRequests(fluent.getRequests()); + return buildable; + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceConstraintFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceConstraintFluent.java new file mode 100644 index 0000000000..757c0daa2b --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceConstraintFluent.java @@ -0,0 +1,165 @@ +package io.kubernetes.client.openapi.models; + +import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; +import java.util.ArrayList; +import java.util.Collection; +import java.lang.Object; +import java.util.List; +import java.lang.String; +import java.util.function.Predicate; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1alpha3DeviceConstraintFluent> extends BaseFluent{ + public V1alpha3DeviceConstraintFluent() { + } + + public V1alpha3DeviceConstraintFluent(V1alpha3DeviceConstraint instance) { + this.copyInstance(instance); + } + private String matchAttribute; + private List requests; + + protected void copyInstance(V1alpha3DeviceConstraint instance) { + instance = (instance != null ? instance : new V1alpha3DeviceConstraint()); + if (instance != null) { + this.withMatchAttribute(instance.getMatchAttribute()); + this.withRequests(instance.getRequests()); + } + } + + public String getMatchAttribute() { + return this.matchAttribute; + } + + public A withMatchAttribute(String matchAttribute) { + this.matchAttribute = matchAttribute; + return (A) this; + } + + public boolean hasMatchAttribute() { + return this.matchAttribute != null; + } + + public A addToRequests(int index,String item) { + if (this.requests == null) {this.requests = new ArrayList();} + this.requests.add(index, item); + return (A)this; + } + + public A setToRequests(int index,String item) { + if (this.requests == null) {this.requests = new ArrayList();} + this.requests.set(index, item); return (A)this; + } + + public A addToRequests(java.lang.String... items) { + if (this.requests == null) {this.requests = new ArrayList();} + for (String item : items) {this.requests.add(item);} return (A)this; + } + + public A addAllToRequests(Collection items) { + if (this.requests == null) {this.requests = new ArrayList();} + for (String item : items) {this.requests.add(item);} return (A)this; + } + + public A removeFromRequests(java.lang.String... items) { + if (this.requests == null) return (A)this; + for (String item : items) { this.requests.remove(item);} return (A)this; + } + + public A removeAllFromRequests(Collection items) { + if (this.requests == null) return (A)this; + for (String item : items) { this.requests.remove(item);} return (A)this; + } + + public List getRequests() { + return this.requests; + } + + public String getRequest(int index) { + return this.requests.get(index); + } + + public String getFirstRequest() { + return this.requests.get(0); + } + + public String getLastRequest() { + return this.requests.get(requests.size() - 1); + } + + public String getMatchingRequest(Predicate predicate) { + for (String item : requests) { + if (predicate.test(item)) { + return item; + } + } + return null; + } + + public boolean hasMatchingRequest(Predicate predicate) { + for (String item : requests) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public A withRequests(List requests) { + if (requests != null) { + this.requests = new ArrayList(); + for (String item : requests) { + this.addToRequests(item); + } + } else { + this.requests = null; + } + return (A) this; + } + + public A withRequests(java.lang.String... requests) { + if (this.requests != null) { + this.requests.clear(); + _visitables.remove("requests"); + } + if (requests != null) { + for (String item : requests) { + this.addToRequests(item); + } + } + return (A) this; + } + + public boolean hasRequests() { + return this.requests != null && !this.requests.isEmpty(); + } + + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + if (!super.equals(o)) return false; + V1alpha3DeviceConstraintFluent that = (V1alpha3DeviceConstraintFluent) o; + if (!java.util.Objects.equals(matchAttribute, that.matchAttribute)) return false; + if (!java.util.Objects.equals(requests, that.requests)) return false; + return true; + } + + public int hashCode() { + return java.util.Objects.hash(matchAttribute, requests, super.hashCode()); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (matchAttribute != null) { sb.append("matchAttribute:"); sb.append(matchAttribute + ","); } + if (requests != null && !requests.isEmpty()) { sb.append("requests:"); sb.append(requests); } + sb.append("}"); + return sb.toString(); + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceCounterConsumptionBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceCounterConsumptionBuilder.java new file mode 100644 index 0000000000..57ab98557e --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceCounterConsumptionBuilder.java @@ -0,0 +1,32 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +public class V1alpha3DeviceCounterConsumptionBuilder extends V1alpha3DeviceCounterConsumptionFluent implements VisitableBuilder{ + public V1alpha3DeviceCounterConsumptionBuilder() { + this(new V1alpha3DeviceCounterConsumption()); + } + + public V1alpha3DeviceCounterConsumptionBuilder(V1alpha3DeviceCounterConsumptionFluent fluent) { + this(fluent, new V1alpha3DeviceCounterConsumption()); + } + + public V1alpha3DeviceCounterConsumptionBuilder(V1alpha3DeviceCounterConsumptionFluent fluent,V1alpha3DeviceCounterConsumption instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1alpha3DeviceCounterConsumptionBuilder(V1alpha3DeviceCounterConsumption instance) { + this.fluent = this; + this.copyInstance(instance); + } + V1alpha3DeviceCounterConsumptionFluent fluent; + + public V1alpha3DeviceCounterConsumption build() { + V1alpha3DeviceCounterConsumption buildable = new V1alpha3DeviceCounterConsumption(); + buildable.setCounterSet(fluent.getCounterSet()); + buildable.setCounters(fluent.getCounters()); + return buildable; + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceCounterConsumptionFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceCounterConsumptionFluent.java new file mode 100644 index 0000000000..5ace375bca --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceCounterConsumptionFluent.java @@ -0,0 +1,106 @@ +package io.kubernetes.client.openapi.models; + +import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Object; +import java.lang.String; +import java.util.Map; +import java.util.LinkedHashMap; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1alpha3DeviceCounterConsumptionFluent> extends BaseFluent{ + public V1alpha3DeviceCounterConsumptionFluent() { + } + + public V1alpha3DeviceCounterConsumptionFluent(V1alpha3DeviceCounterConsumption instance) { + this.copyInstance(instance); + } + private String counterSet; + private Map counters; + + protected void copyInstance(V1alpha3DeviceCounterConsumption instance) { + instance = (instance != null ? instance : new V1alpha3DeviceCounterConsumption()); + if (instance != null) { + this.withCounterSet(instance.getCounterSet()); + this.withCounters(instance.getCounters()); + } + } + + public String getCounterSet() { + return this.counterSet; + } + + public A withCounterSet(String counterSet) { + this.counterSet = counterSet; + return (A) this; + } + + public boolean hasCounterSet() { + return this.counterSet != null; + } + + public A addToCounters(String key,V1alpha3Counter value) { + if(this.counters == null && key != null && value != null) { this.counters = new LinkedHashMap(); } + if(key != null && value != null) {this.counters.put(key, value);} return (A)this; + } + + public A addToCounters(Map map) { + if(this.counters == null && map != null) { this.counters = new LinkedHashMap(); } + if(map != null) { this.counters.putAll(map);} return (A)this; + } + + public A removeFromCounters(String key) { + if(this.counters == null) { return (A) this; } + if(key != null && this.counters != null) {this.counters.remove(key);} return (A)this; + } + + public A removeFromCounters(Map map) { + if(this.counters == null) { return (A) this; } + if(map != null) { for(Object key : map.keySet()) {if (this.counters != null){this.counters.remove(key);}}} return (A)this; + } + + public Map getCounters() { + return this.counters; + } + + public A withCounters(Map counters) { + if (counters == null) { + this.counters = null; + } else { + this.counters = new LinkedHashMap(counters); + } + return (A) this; + } + + public boolean hasCounters() { + return this.counters != null; + } + + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + if (!super.equals(o)) return false; + V1alpha3DeviceCounterConsumptionFluent that = (V1alpha3DeviceCounterConsumptionFluent) o; + if (!java.util.Objects.equals(counterSet, that.counterSet)) return false; + if (!java.util.Objects.equals(counters, that.counters)) return false; + return true; + } + + public int hashCode() { + return java.util.Objects.hash(counterSet, counters, super.hashCode()); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (counterSet != null) { sb.append("counterSet:"); sb.append(counterSet + ","); } + if (counters != null && !counters.isEmpty()) { sb.append("counters:"); sb.append(counters); } + sb.append("}"); + return sb.toString(); + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceFluent.java new file mode 100644 index 0000000000..b55a9dcd48 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceFluent.java @@ -0,0 +1,123 @@ +package io.kubernetes.client.openapi.models; + +import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Object; +import java.lang.String; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1alpha3DeviceFluent> extends BaseFluent{ + public V1alpha3DeviceFluent() { + } + + public V1alpha3DeviceFluent(V1alpha3Device instance) { + this.copyInstance(instance); + } + private V1alpha3BasicDeviceBuilder basic; + private String name; + + protected void copyInstance(V1alpha3Device instance) { + instance = (instance != null ? instance : new V1alpha3Device()); + if (instance != null) { + this.withBasic(instance.getBasic()); + this.withName(instance.getName()); + } + } + + public V1alpha3BasicDevice buildBasic() { + return this.basic != null ? this.basic.build() : null; + } + + public A withBasic(V1alpha3BasicDevice basic) { + this._visitables.remove("basic"); + if (basic != null) { + this.basic = new V1alpha3BasicDeviceBuilder(basic); + this._visitables.get("basic").add(this.basic); + } else { + this.basic = null; + this._visitables.get("basic").remove(this.basic); + } + return (A) this; + } + + public boolean hasBasic() { + return this.basic != null; + } + + public BasicNested withNewBasic() { + return new BasicNested(null); + } + + public BasicNested withNewBasicLike(V1alpha3BasicDevice item) { + return new BasicNested(item); + } + + public BasicNested editBasic() { + return withNewBasicLike(java.util.Optional.ofNullable(buildBasic()).orElse(null)); + } + + public BasicNested editOrNewBasic() { + return withNewBasicLike(java.util.Optional.ofNullable(buildBasic()).orElse(new V1alpha3BasicDeviceBuilder().build())); + } + + public BasicNested editOrNewBasicLike(V1alpha3BasicDevice item) { + return withNewBasicLike(java.util.Optional.ofNullable(buildBasic()).orElse(item)); + } + + public String getName() { + return this.name; + } + + public A withName(String name) { + this.name = name; + return (A) this; + } + + public boolean hasName() { + return this.name != null; + } + + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + if (!super.equals(o)) return false; + V1alpha3DeviceFluent that = (V1alpha3DeviceFluent) o; + if (!java.util.Objects.equals(basic, that.basic)) return false; + if (!java.util.Objects.equals(name, that.name)) return false; + return true; + } + + public int hashCode() { + return java.util.Objects.hash(basic, name, super.hashCode()); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (basic != null) { sb.append("basic:"); sb.append(basic + ","); } + if (name != null) { sb.append("name:"); sb.append(name); } + sb.append("}"); + return sb.toString(); + } + public class BasicNested extends V1alpha3BasicDeviceFluent> implements Nested{ + BasicNested(V1alpha3BasicDevice item) { + this.builder = new V1alpha3BasicDeviceBuilder(this, item); + } + V1alpha3BasicDeviceBuilder builder; + + public N and() { + return (N) V1alpha3DeviceFluent.this.withBasic(builder.build()); + } + + public N endBasic() { + return and(); + } + + + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceRequestAllocationResultBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceRequestAllocationResultBuilder.java new file mode 100644 index 0000000000..7670c796e9 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceRequestAllocationResultBuilder.java @@ -0,0 +1,36 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +public class V1alpha3DeviceRequestAllocationResultBuilder extends V1alpha3DeviceRequestAllocationResultFluent implements VisitableBuilder{ + public V1alpha3DeviceRequestAllocationResultBuilder() { + this(new V1alpha3DeviceRequestAllocationResult()); + } + + public V1alpha3DeviceRequestAllocationResultBuilder(V1alpha3DeviceRequestAllocationResultFluent fluent) { + this(fluent, new V1alpha3DeviceRequestAllocationResult()); + } + + public V1alpha3DeviceRequestAllocationResultBuilder(V1alpha3DeviceRequestAllocationResultFluent fluent,V1alpha3DeviceRequestAllocationResult instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1alpha3DeviceRequestAllocationResultBuilder(V1alpha3DeviceRequestAllocationResult instance) { + this.fluent = this; + this.copyInstance(instance); + } + V1alpha3DeviceRequestAllocationResultFluent fluent; + + public V1alpha3DeviceRequestAllocationResult build() { + V1alpha3DeviceRequestAllocationResult buildable = new V1alpha3DeviceRequestAllocationResult(); + buildable.setAdminAccess(fluent.getAdminAccess()); + buildable.setDevice(fluent.getDevice()); + buildable.setDriver(fluent.getDriver()); + buildable.setPool(fluent.getPool()); + buildable.setRequest(fluent.getRequest()); + buildable.setTolerations(fluent.buildTolerations()); + return buildable; + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceRequestAllocationResultFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceRequestAllocationResultFluent.java new file mode 100644 index 0000000000..6f840b6cc1 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceRequestAllocationResultFluent.java @@ -0,0 +1,327 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.Nested; +import java.util.ArrayList; +import java.lang.String; +import java.util.function.Predicate; +import io.kubernetes.client.fluent.BaseFluent; +import java.util.Iterator; +import java.util.Collection; +import java.lang.Object; +import java.util.List; +import java.lang.Boolean; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1alpha3DeviceRequestAllocationResultFluent> extends BaseFluent{ + public V1alpha3DeviceRequestAllocationResultFluent() { + } + + public V1alpha3DeviceRequestAllocationResultFluent(V1alpha3DeviceRequestAllocationResult instance) { + this.copyInstance(instance); + } + private Boolean adminAccess; + private String device; + private String driver; + private String pool; + private String request; + private ArrayList tolerations; + + protected void copyInstance(V1alpha3DeviceRequestAllocationResult instance) { + instance = (instance != null ? instance : new V1alpha3DeviceRequestAllocationResult()); + if (instance != null) { + this.withAdminAccess(instance.getAdminAccess()); + this.withDevice(instance.getDevice()); + this.withDriver(instance.getDriver()); + this.withPool(instance.getPool()); + this.withRequest(instance.getRequest()); + this.withTolerations(instance.getTolerations()); + } + } + + public Boolean getAdminAccess() { + return this.adminAccess; + } + + public A withAdminAccess(Boolean adminAccess) { + this.adminAccess = adminAccess; + return (A) this; + } + + public boolean hasAdminAccess() { + return this.adminAccess != null; + } + + public String getDevice() { + return this.device; + } + + public A withDevice(String device) { + this.device = device; + return (A) this; + } + + public boolean hasDevice() { + return this.device != null; + } + + public String getDriver() { + return this.driver; + } + + public A withDriver(String driver) { + this.driver = driver; + return (A) this; + } + + public boolean hasDriver() { + return this.driver != null; + } + + public String getPool() { + return this.pool; + } + + public A withPool(String pool) { + this.pool = pool; + return (A) this; + } + + public boolean hasPool() { + return this.pool != null; + } + + public String getRequest() { + return this.request; + } + + public A withRequest(String request) { + this.request = request; + return (A) this; + } + + public boolean hasRequest() { + return this.request != null; + } + + public A addToTolerations(int index,V1alpha3DeviceToleration item) { + if (this.tolerations == null) {this.tolerations = new ArrayList();} + V1alpha3DeviceTolerationBuilder builder = new V1alpha3DeviceTolerationBuilder(item); + if (index < 0 || index >= tolerations.size()) { + _visitables.get("tolerations").add(builder); + tolerations.add(builder); + } else { + _visitables.get("tolerations").add(builder); + tolerations.add(index, builder); + } + return (A)this; + } + + public A setToTolerations(int index,V1alpha3DeviceToleration item) { + if (this.tolerations == null) {this.tolerations = new ArrayList();} + V1alpha3DeviceTolerationBuilder builder = new V1alpha3DeviceTolerationBuilder(item); + if (index < 0 || index >= tolerations.size()) { + _visitables.get("tolerations").add(builder); + tolerations.add(builder); + } else { + _visitables.get("tolerations").add(builder); + tolerations.set(index, builder); + } + return (A)this; + } + + public A addToTolerations(io.kubernetes.client.openapi.models.V1alpha3DeviceToleration... items) { + if (this.tolerations == null) {this.tolerations = new ArrayList();} + for (V1alpha3DeviceToleration item : items) {V1alpha3DeviceTolerationBuilder builder = new V1alpha3DeviceTolerationBuilder(item);_visitables.get("tolerations").add(builder);this.tolerations.add(builder);} return (A)this; + } + + public A addAllToTolerations(Collection items) { + if (this.tolerations == null) {this.tolerations = new ArrayList();} + for (V1alpha3DeviceToleration item : items) {V1alpha3DeviceTolerationBuilder builder = new V1alpha3DeviceTolerationBuilder(item);_visitables.get("tolerations").add(builder);this.tolerations.add(builder);} return (A)this; + } + + public A removeFromTolerations(io.kubernetes.client.openapi.models.V1alpha3DeviceToleration... items) { + if (this.tolerations == null) return (A)this; + for (V1alpha3DeviceToleration item : items) {V1alpha3DeviceTolerationBuilder builder = new V1alpha3DeviceTolerationBuilder(item);_visitables.get("tolerations").remove(builder); this.tolerations.remove(builder);} return (A)this; + } + + public A removeAllFromTolerations(Collection items) { + if (this.tolerations == null) return (A)this; + for (V1alpha3DeviceToleration item : items) {V1alpha3DeviceTolerationBuilder builder = new V1alpha3DeviceTolerationBuilder(item);_visitables.get("tolerations").remove(builder); this.tolerations.remove(builder);} return (A)this; + } + + public A removeMatchingFromTolerations(Predicate predicate) { + if (tolerations == null) return (A) this; + final Iterator each = tolerations.iterator(); + final List visitables = _visitables.get("tolerations"); + while (each.hasNext()) { + V1alpha3DeviceTolerationBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A)this; + } + + public List buildTolerations() { + return this.tolerations != null ? build(tolerations) : null; + } + + public V1alpha3DeviceToleration buildToleration(int index) { + return this.tolerations.get(index).build(); + } + + public V1alpha3DeviceToleration buildFirstToleration() { + return this.tolerations.get(0).build(); + } + + public V1alpha3DeviceToleration buildLastToleration() { + return this.tolerations.get(tolerations.size() - 1).build(); + } + + public V1alpha3DeviceToleration buildMatchingToleration(Predicate predicate) { + for (V1alpha3DeviceTolerationBuilder item : tolerations) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; + } + + public boolean hasMatchingToleration(Predicate predicate) { + for (V1alpha3DeviceTolerationBuilder item : tolerations) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public A withTolerations(List tolerations) { + if (this.tolerations != null) { + this._visitables.get("tolerations").clear(); + } + if (tolerations != null) { + this.tolerations = new ArrayList(); + for (V1alpha3DeviceToleration item : tolerations) { + this.addToTolerations(item); + } + } else { + this.tolerations = null; + } + return (A) this; + } + + public A withTolerations(io.kubernetes.client.openapi.models.V1alpha3DeviceToleration... tolerations) { + if (this.tolerations != null) { + this.tolerations.clear(); + _visitables.remove("tolerations"); + } + if (tolerations != null) { + for (V1alpha3DeviceToleration item : tolerations) { + this.addToTolerations(item); + } + } + return (A) this; + } + + public boolean hasTolerations() { + return this.tolerations != null && !this.tolerations.isEmpty(); + } + + public TolerationsNested addNewToleration() { + return new TolerationsNested(-1, null); + } + + public TolerationsNested addNewTolerationLike(V1alpha3DeviceToleration item) { + return new TolerationsNested(-1, item); + } + + public TolerationsNested setNewTolerationLike(int index,V1alpha3DeviceToleration item) { + return new TolerationsNested(index, item); + } + + public TolerationsNested editToleration(int index) { + if (tolerations.size() <= index) throw new RuntimeException("Can't edit tolerations. Index exceeds size."); + return setNewTolerationLike(index, buildToleration(index)); + } + + public TolerationsNested editFirstToleration() { + if (tolerations.size() == 0) throw new RuntimeException("Can't edit first tolerations. The list is empty."); + return setNewTolerationLike(0, buildToleration(0)); + } + + public TolerationsNested editLastToleration() { + int index = tolerations.size() - 1; + if (index < 0) throw new RuntimeException("Can't edit last tolerations. The list is empty."); + return setNewTolerationLike(index, buildToleration(index)); + } + + public TolerationsNested editMatchingToleration(Predicate predicate) { + int index = -1; + for (int i=0;i extends V1alpha3DeviceTolerationFluent> implements Nested{ + TolerationsNested(int index,V1alpha3DeviceToleration item) { + this.index = index; + this.builder = new V1alpha3DeviceTolerationBuilder(this, item); + } + V1alpha3DeviceTolerationBuilder builder; + int index; + + public N and() { + return (N) V1alpha3DeviceRequestAllocationResultFluent.this.setToTolerations(index,builder.build()); + } + + public N endToleration() { + return and(); + } + + + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceRequestBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceRequestBuilder.java new file mode 100644 index 0000000000..b749a9ef23 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceRequestBuilder.java @@ -0,0 +1,38 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +public class V1alpha3DeviceRequestBuilder extends V1alpha3DeviceRequestFluent implements VisitableBuilder{ + public V1alpha3DeviceRequestBuilder() { + this(new V1alpha3DeviceRequest()); + } + + public V1alpha3DeviceRequestBuilder(V1alpha3DeviceRequestFluent fluent) { + this(fluent, new V1alpha3DeviceRequest()); + } + + public V1alpha3DeviceRequestBuilder(V1alpha3DeviceRequestFluent fluent,V1alpha3DeviceRequest instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1alpha3DeviceRequestBuilder(V1alpha3DeviceRequest instance) { + this.fluent = this; + this.copyInstance(instance); + } + V1alpha3DeviceRequestFluent fluent; + + public V1alpha3DeviceRequest build() { + V1alpha3DeviceRequest buildable = new V1alpha3DeviceRequest(); + buildable.setAdminAccess(fluent.getAdminAccess()); + buildable.setAllocationMode(fluent.getAllocationMode()); + buildable.setCount(fluent.getCount()); + buildable.setDeviceClassName(fluent.getDeviceClassName()); + buildable.setFirstAvailable(fluent.buildFirstAvailable()); + buildable.setName(fluent.getName()); + buildable.setSelectors(fluent.buildSelectors()); + buildable.setTolerations(fluent.buildTolerations()); + return buildable; + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceRequestFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceRequestFluent.java new file mode 100644 index 0000000000..bbd09bd300 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceRequestFluent.java @@ -0,0 +1,698 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.Nested; +import java.util.ArrayList; +import java.lang.String; +import java.util.function.Predicate; +import io.kubernetes.client.fluent.BaseFluent; +import java.util.Iterator; +import java.util.List; +import java.lang.Boolean; +import java.lang.Long; +import java.util.Collection; +import java.lang.Object; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1alpha3DeviceRequestFluent> extends BaseFluent{ + public V1alpha3DeviceRequestFluent() { + } + + public V1alpha3DeviceRequestFluent(V1alpha3DeviceRequest instance) { + this.copyInstance(instance); + } + private Boolean adminAccess; + private String allocationMode; + private Long count; + private String deviceClassName; + private ArrayList firstAvailable; + private String name; + private ArrayList selectors; + private ArrayList tolerations; + + protected void copyInstance(V1alpha3DeviceRequest instance) { + instance = (instance != null ? instance : new V1alpha3DeviceRequest()); + if (instance != null) { + this.withAdminAccess(instance.getAdminAccess()); + this.withAllocationMode(instance.getAllocationMode()); + this.withCount(instance.getCount()); + this.withDeviceClassName(instance.getDeviceClassName()); + this.withFirstAvailable(instance.getFirstAvailable()); + this.withName(instance.getName()); + this.withSelectors(instance.getSelectors()); + this.withTolerations(instance.getTolerations()); + } + } + + public Boolean getAdminAccess() { + return this.adminAccess; + } + + public A withAdminAccess(Boolean adminAccess) { + this.adminAccess = adminAccess; + return (A) this; + } + + public boolean hasAdminAccess() { + return this.adminAccess != null; + } + + public String getAllocationMode() { + return this.allocationMode; + } + + public A withAllocationMode(String allocationMode) { + this.allocationMode = allocationMode; + return (A) this; + } + + public boolean hasAllocationMode() { + return this.allocationMode != null; + } + + public Long getCount() { + return this.count; + } + + public A withCount(Long count) { + this.count = count; + return (A) this; + } + + public boolean hasCount() { + return this.count != null; + } + + public String getDeviceClassName() { + return this.deviceClassName; + } + + public A withDeviceClassName(String deviceClassName) { + this.deviceClassName = deviceClassName; + return (A) this; + } + + public boolean hasDeviceClassName() { + return this.deviceClassName != null; + } + + public A addToFirstAvailable(int index,V1alpha3DeviceSubRequest item) { + if (this.firstAvailable == null) {this.firstAvailable = new ArrayList();} + V1alpha3DeviceSubRequestBuilder builder = new V1alpha3DeviceSubRequestBuilder(item); + if (index < 0 || index >= firstAvailable.size()) { + _visitables.get("firstAvailable").add(builder); + firstAvailable.add(builder); + } else { + _visitables.get("firstAvailable").add(builder); + firstAvailable.add(index, builder); + } + return (A)this; + } + + public A setToFirstAvailable(int index,V1alpha3DeviceSubRequest item) { + if (this.firstAvailable == null) {this.firstAvailable = new ArrayList();} + V1alpha3DeviceSubRequestBuilder builder = new V1alpha3DeviceSubRequestBuilder(item); + if (index < 0 || index >= firstAvailable.size()) { + _visitables.get("firstAvailable").add(builder); + firstAvailable.add(builder); + } else { + _visitables.get("firstAvailable").add(builder); + firstAvailable.set(index, builder); + } + return (A)this; + } + + public A addToFirstAvailable(io.kubernetes.client.openapi.models.V1alpha3DeviceSubRequest... items) { + if (this.firstAvailable == null) {this.firstAvailable = new ArrayList();} + for (V1alpha3DeviceSubRequest item : items) {V1alpha3DeviceSubRequestBuilder builder = new V1alpha3DeviceSubRequestBuilder(item);_visitables.get("firstAvailable").add(builder);this.firstAvailable.add(builder);} return (A)this; + } + + public A addAllToFirstAvailable(Collection items) { + if (this.firstAvailable == null) {this.firstAvailable = new ArrayList();} + for (V1alpha3DeviceSubRequest item : items) {V1alpha3DeviceSubRequestBuilder builder = new V1alpha3DeviceSubRequestBuilder(item);_visitables.get("firstAvailable").add(builder);this.firstAvailable.add(builder);} return (A)this; + } + + public A removeFromFirstAvailable(io.kubernetes.client.openapi.models.V1alpha3DeviceSubRequest... items) { + if (this.firstAvailable == null) return (A)this; + for (V1alpha3DeviceSubRequest item : items) {V1alpha3DeviceSubRequestBuilder builder = new V1alpha3DeviceSubRequestBuilder(item);_visitables.get("firstAvailable").remove(builder); this.firstAvailable.remove(builder);} return (A)this; + } + + public A removeAllFromFirstAvailable(Collection items) { + if (this.firstAvailable == null) return (A)this; + for (V1alpha3DeviceSubRequest item : items) {V1alpha3DeviceSubRequestBuilder builder = new V1alpha3DeviceSubRequestBuilder(item);_visitables.get("firstAvailable").remove(builder); this.firstAvailable.remove(builder);} return (A)this; + } + + public A removeMatchingFromFirstAvailable(Predicate predicate) { + if (firstAvailable == null) return (A) this; + final Iterator each = firstAvailable.iterator(); + final List visitables = _visitables.get("firstAvailable"); + while (each.hasNext()) { + V1alpha3DeviceSubRequestBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A)this; + } + + public List buildFirstAvailable() { + return this.firstAvailable != null ? build(firstAvailable) : null; + } + + public V1alpha3DeviceSubRequest buildFirstAvailable(int index) { + return this.firstAvailable.get(index).build(); + } + + public V1alpha3DeviceSubRequest buildFirstFirstAvailable() { + return this.firstAvailable.get(0).build(); + } + + public V1alpha3DeviceSubRequest buildLastFirstAvailable() { + return this.firstAvailable.get(firstAvailable.size() - 1).build(); + } + + public V1alpha3DeviceSubRequest buildMatchingFirstAvailable(Predicate predicate) { + for (V1alpha3DeviceSubRequestBuilder item : firstAvailable) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; + } + + public boolean hasMatchingFirstAvailable(Predicate predicate) { + for (V1alpha3DeviceSubRequestBuilder item : firstAvailable) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public A withFirstAvailable(List firstAvailable) { + if (this.firstAvailable != null) { + this._visitables.get("firstAvailable").clear(); + } + if (firstAvailable != null) { + this.firstAvailable = new ArrayList(); + for (V1alpha3DeviceSubRequest item : firstAvailable) { + this.addToFirstAvailable(item); + } + } else { + this.firstAvailable = null; + } + return (A) this; + } + + public A withFirstAvailable(io.kubernetes.client.openapi.models.V1alpha3DeviceSubRequest... firstAvailable) { + if (this.firstAvailable != null) { + this.firstAvailable.clear(); + _visitables.remove("firstAvailable"); + } + if (firstAvailable != null) { + for (V1alpha3DeviceSubRequest item : firstAvailable) { + this.addToFirstAvailable(item); + } + } + return (A) this; + } + + public boolean hasFirstAvailable() { + return this.firstAvailable != null && !this.firstAvailable.isEmpty(); + } + + public FirstAvailableNested addNewFirstAvailable() { + return new FirstAvailableNested(-1, null); + } + + public FirstAvailableNested addNewFirstAvailableLike(V1alpha3DeviceSubRequest item) { + return new FirstAvailableNested(-1, item); + } + + public FirstAvailableNested setNewFirstAvailableLike(int index,V1alpha3DeviceSubRequest item) { + return new FirstAvailableNested(index, item); + } + + public FirstAvailableNested editFirstAvailable(int index) { + if (firstAvailable.size() <= index) throw new RuntimeException("Can't edit firstAvailable. Index exceeds size."); + return setNewFirstAvailableLike(index, buildFirstAvailable(index)); + } + + public FirstAvailableNested editFirstFirstAvailable() { + if (firstAvailable.size() == 0) throw new RuntimeException("Can't edit first firstAvailable. The list is empty."); + return setNewFirstAvailableLike(0, buildFirstAvailable(0)); + } + + public FirstAvailableNested editLastFirstAvailable() { + int index = firstAvailable.size() - 1; + if (index < 0) throw new RuntimeException("Can't edit last firstAvailable. The list is empty."); + return setNewFirstAvailableLike(index, buildFirstAvailable(index)); + } + + public FirstAvailableNested editMatchingFirstAvailable(Predicate predicate) { + int index = -1; + for (int i=0;i();} + V1alpha3DeviceSelectorBuilder builder = new V1alpha3DeviceSelectorBuilder(item); + if (index < 0 || index >= selectors.size()) { + _visitables.get("selectors").add(builder); + selectors.add(builder); + } else { + _visitables.get("selectors").add(builder); + selectors.add(index, builder); + } + return (A)this; + } + + public A setToSelectors(int index,V1alpha3DeviceSelector item) { + if (this.selectors == null) {this.selectors = new ArrayList();} + V1alpha3DeviceSelectorBuilder builder = new V1alpha3DeviceSelectorBuilder(item); + if (index < 0 || index >= selectors.size()) { + _visitables.get("selectors").add(builder); + selectors.add(builder); + } else { + _visitables.get("selectors").add(builder); + selectors.set(index, builder); + } + return (A)this; + } + + public A addToSelectors(io.kubernetes.client.openapi.models.V1alpha3DeviceSelector... items) { + if (this.selectors == null) {this.selectors = new ArrayList();} + for (V1alpha3DeviceSelector item : items) {V1alpha3DeviceSelectorBuilder builder = new V1alpha3DeviceSelectorBuilder(item);_visitables.get("selectors").add(builder);this.selectors.add(builder);} return (A)this; + } + + public A addAllToSelectors(Collection items) { + if (this.selectors == null) {this.selectors = new ArrayList();} + for (V1alpha3DeviceSelector item : items) {V1alpha3DeviceSelectorBuilder builder = new V1alpha3DeviceSelectorBuilder(item);_visitables.get("selectors").add(builder);this.selectors.add(builder);} return (A)this; + } + + public A removeFromSelectors(io.kubernetes.client.openapi.models.V1alpha3DeviceSelector... items) { + if (this.selectors == null) return (A)this; + for (V1alpha3DeviceSelector item : items) {V1alpha3DeviceSelectorBuilder builder = new V1alpha3DeviceSelectorBuilder(item);_visitables.get("selectors").remove(builder); this.selectors.remove(builder);} return (A)this; + } + + public A removeAllFromSelectors(Collection items) { + if (this.selectors == null) return (A)this; + for (V1alpha3DeviceSelector item : items) {V1alpha3DeviceSelectorBuilder builder = new V1alpha3DeviceSelectorBuilder(item);_visitables.get("selectors").remove(builder); this.selectors.remove(builder);} return (A)this; + } + + public A removeMatchingFromSelectors(Predicate predicate) { + if (selectors == null) return (A) this; + final Iterator each = selectors.iterator(); + final List visitables = _visitables.get("selectors"); + while (each.hasNext()) { + V1alpha3DeviceSelectorBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A)this; + } + + public List buildSelectors() { + return this.selectors != null ? build(selectors) : null; + } + + public V1alpha3DeviceSelector buildSelector(int index) { + return this.selectors.get(index).build(); + } + + public V1alpha3DeviceSelector buildFirstSelector() { + return this.selectors.get(0).build(); + } + + public V1alpha3DeviceSelector buildLastSelector() { + return this.selectors.get(selectors.size() - 1).build(); + } + + public V1alpha3DeviceSelector buildMatchingSelector(Predicate predicate) { + for (V1alpha3DeviceSelectorBuilder item : selectors) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; + } + + public boolean hasMatchingSelector(Predicate predicate) { + for (V1alpha3DeviceSelectorBuilder item : selectors) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public A withSelectors(List selectors) { + if (this.selectors != null) { + this._visitables.get("selectors").clear(); + } + if (selectors != null) { + this.selectors = new ArrayList(); + for (V1alpha3DeviceSelector item : selectors) { + this.addToSelectors(item); + } + } else { + this.selectors = null; + } + return (A) this; + } + + public A withSelectors(io.kubernetes.client.openapi.models.V1alpha3DeviceSelector... selectors) { + if (this.selectors != null) { + this.selectors.clear(); + _visitables.remove("selectors"); + } + if (selectors != null) { + for (V1alpha3DeviceSelector item : selectors) { + this.addToSelectors(item); + } + } + return (A) this; + } + + public boolean hasSelectors() { + return this.selectors != null && !this.selectors.isEmpty(); + } + + public SelectorsNested addNewSelector() { + return new SelectorsNested(-1, null); + } + + public SelectorsNested addNewSelectorLike(V1alpha3DeviceSelector item) { + return new SelectorsNested(-1, item); + } + + public SelectorsNested setNewSelectorLike(int index,V1alpha3DeviceSelector item) { + return new SelectorsNested(index, item); + } + + public SelectorsNested editSelector(int index) { + if (selectors.size() <= index) throw new RuntimeException("Can't edit selectors. Index exceeds size."); + return setNewSelectorLike(index, buildSelector(index)); + } + + public SelectorsNested editFirstSelector() { + if (selectors.size() == 0) throw new RuntimeException("Can't edit first selectors. The list is empty."); + return setNewSelectorLike(0, buildSelector(0)); + } + + public SelectorsNested editLastSelector() { + int index = selectors.size() - 1; + if (index < 0) throw new RuntimeException("Can't edit last selectors. The list is empty."); + return setNewSelectorLike(index, buildSelector(index)); + } + + public SelectorsNested editMatchingSelector(Predicate predicate) { + int index = -1; + for (int i=0;i();} + V1alpha3DeviceTolerationBuilder builder = new V1alpha3DeviceTolerationBuilder(item); + if (index < 0 || index >= tolerations.size()) { + _visitables.get("tolerations").add(builder); + tolerations.add(builder); + } else { + _visitables.get("tolerations").add(builder); + tolerations.add(index, builder); + } + return (A)this; + } + + public A setToTolerations(int index,V1alpha3DeviceToleration item) { + if (this.tolerations == null) {this.tolerations = new ArrayList();} + V1alpha3DeviceTolerationBuilder builder = new V1alpha3DeviceTolerationBuilder(item); + if (index < 0 || index >= tolerations.size()) { + _visitables.get("tolerations").add(builder); + tolerations.add(builder); + } else { + _visitables.get("tolerations").add(builder); + tolerations.set(index, builder); + } + return (A)this; + } + + public A addToTolerations(io.kubernetes.client.openapi.models.V1alpha3DeviceToleration... items) { + if (this.tolerations == null) {this.tolerations = new ArrayList();} + for (V1alpha3DeviceToleration item : items) {V1alpha3DeviceTolerationBuilder builder = new V1alpha3DeviceTolerationBuilder(item);_visitables.get("tolerations").add(builder);this.tolerations.add(builder);} return (A)this; + } + + public A addAllToTolerations(Collection items) { + if (this.tolerations == null) {this.tolerations = new ArrayList();} + for (V1alpha3DeviceToleration item : items) {V1alpha3DeviceTolerationBuilder builder = new V1alpha3DeviceTolerationBuilder(item);_visitables.get("tolerations").add(builder);this.tolerations.add(builder);} return (A)this; + } + + public A removeFromTolerations(io.kubernetes.client.openapi.models.V1alpha3DeviceToleration... items) { + if (this.tolerations == null) return (A)this; + for (V1alpha3DeviceToleration item : items) {V1alpha3DeviceTolerationBuilder builder = new V1alpha3DeviceTolerationBuilder(item);_visitables.get("tolerations").remove(builder); this.tolerations.remove(builder);} return (A)this; + } + + public A removeAllFromTolerations(Collection items) { + if (this.tolerations == null) return (A)this; + for (V1alpha3DeviceToleration item : items) {V1alpha3DeviceTolerationBuilder builder = new V1alpha3DeviceTolerationBuilder(item);_visitables.get("tolerations").remove(builder); this.tolerations.remove(builder);} return (A)this; + } + + public A removeMatchingFromTolerations(Predicate predicate) { + if (tolerations == null) return (A) this; + final Iterator each = tolerations.iterator(); + final List visitables = _visitables.get("tolerations"); + while (each.hasNext()) { + V1alpha3DeviceTolerationBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A)this; + } + + public List buildTolerations() { + return this.tolerations != null ? build(tolerations) : null; + } + + public V1alpha3DeviceToleration buildToleration(int index) { + return this.tolerations.get(index).build(); + } + + public V1alpha3DeviceToleration buildFirstToleration() { + return this.tolerations.get(0).build(); + } + + public V1alpha3DeviceToleration buildLastToleration() { + return this.tolerations.get(tolerations.size() - 1).build(); + } + + public V1alpha3DeviceToleration buildMatchingToleration(Predicate predicate) { + for (V1alpha3DeviceTolerationBuilder item : tolerations) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; + } + + public boolean hasMatchingToleration(Predicate predicate) { + for (V1alpha3DeviceTolerationBuilder item : tolerations) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public A withTolerations(List tolerations) { + if (this.tolerations != null) { + this._visitables.get("tolerations").clear(); + } + if (tolerations != null) { + this.tolerations = new ArrayList(); + for (V1alpha3DeviceToleration item : tolerations) { + this.addToTolerations(item); + } + } else { + this.tolerations = null; + } + return (A) this; + } + + public A withTolerations(io.kubernetes.client.openapi.models.V1alpha3DeviceToleration... tolerations) { + if (this.tolerations != null) { + this.tolerations.clear(); + _visitables.remove("tolerations"); + } + if (tolerations != null) { + for (V1alpha3DeviceToleration item : tolerations) { + this.addToTolerations(item); + } + } + return (A) this; + } + + public boolean hasTolerations() { + return this.tolerations != null && !this.tolerations.isEmpty(); + } + + public TolerationsNested addNewToleration() { + return new TolerationsNested(-1, null); + } + + public TolerationsNested addNewTolerationLike(V1alpha3DeviceToleration item) { + return new TolerationsNested(-1, item); + } + + public TolerationsNested setNewTolerationLike(int index,V1alpha3DeviceToleration item) { + return new TolerationsNested(index, item); + } + + public TolerationsNested editToleration(int index) { + if (tolerations.size() <= index) throw new RuntimeException("Can't edit tolerations. Index exceeds size."); + return setNewTolerationLike(index, buildToleration(index)); + } + + public TolerationsNested editFirstToleration() { + if (tolerations.size() == 0) throw new RuntimeException("Can't edit first tolerations. The list is empty."); + return setNewTolerationLike(0, buildToleration(0)); + } + + public TolerationsNested editLastToleration() { + int index = tolerations.size() - 1; + if (index < 0) throw new RuntimeException("Can't edit last tolerations. The list is empty."); + return setNewTolerationLike(index, buildToleration(index)); + } + + public TolerationsNested editMatchingToleration(Predicate predicate) { + int index = -1; + for (int i=0;i extends V1alpha3DeviceSubRequestFluent> implements Nested{ + FirstAvailableNested(int index,V1alpha3DeviceSubRequest item) { + this.index = index; + this.builder = new V1alpha3DeviceSubRequestBuilder(this, item); + } + V1alpha3DeviceSubRequestBuilder builder; + int index; + + public N and() { + return (N) V1alpha3DeviceRequestFluent.this.setToFirstAvailable(index,builder.build()); + } + + public N endFirstAvailable() { + return and(); + } + + + } + public class SelectorsNested extends V1alpha3DeviceSelectorFluent> implements Nested{ + SelectorsNested(int index,V1alpha3DeviceSelector item) { + this.index = index; + this.builder = new V1alpha3DeviceSelectorBuilder(this, item); + } + V1alpha3DeviceSelectorBuilder builder; + int index; + + public N and() { + return (N) V1alpha3DeviceRequestFluent.this.setToSelectors(index,builder.build()); + } + + public N endSelector() { + return and(); + } + + + } + public class TolerationsNested extends V1alpha3DeviceTolerationFluent> implements Nested{ + TolerationsNested(int index,V1alpha3DeviceToleration item) { + this.index = index; + this.builder = new V1alpha3DeviceTolerationBuilder(this, item); + } + V1alpha3DeviceTolerationBuilder builder; + int index; + + public N and() { + return (N) V1alpha3DeviceRequestFluent.this.setToTolerations(index,builder.build()); + } + + public N endToleration() { + return and(); + } + + + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceSelectorBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceSelectorBuilder.java new file mode 100644 index 0000000000..8a9f207653 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceSelectorBuilder.java @@ -0,0 +1,31 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +public class V1alpha3DeviceSelectorBuilder extends V1alpha3DeviceSelectorFluent implements VisitableBuilder{ + public V1alpha3DeviceSelectorBuilder() { + this(new V1alpha3DeviceSelector()); + } + + public V1alpha3DeviceSelectorBuilder(V1alpha3DeviceSelectorFluent fluent) { + this(fluent, new V1alpha3DeviceSelector()); + } + + public V1alpha3DeviceSelectorBuilder(V1alpha3DeviceSelectorFluent fluent,V1alpha3DeviceSelector instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1alpha3DeviceSelectorBuilder(V1alpha3DeviceSelector instance) { + this.fluent = this; + this.copyInstance(instance); + } + V1alpha3DeviceSelectorFluent fluent; + + public V1alpha3DeviceSelector build() { + V1alpha3DeviceSelector buildable = new V1alpha3DeviceSelector(); + buildable.setCel(fluent.buildCel()); + return buildable; + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceSelectorFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceSelectorFluent.java new file mode 100644 index 0000000000..55606f8066 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceSelectorFluent.java @@ -0,0 +1,106 @@ +package io.kubernetes.client.openapi.models; + +import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Object; +import java.lang.String; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1alpha3DeviceSelectorFluent> extends BaseFluent{ + public V1alpha3DeviceSelectorFluent() { + } + + public V1alpha3DeviceSelectorFluent(V1alpha3DeviceSelector instance) { + this.copyInstance(instance); + } + private V1alpha3CELDeviceSelectorBuilder cel; + + protected void copyInstance(V1alpha3DeviceSelector instance) { + instance = (instance != null ? instance : new V1alpha3DeviceSelector()); + if (instance != null) { + this.withCel(instance.getCel()); + } + } + + public V1alpha3CELDeviceSelector buildCel() { + return this.cel != null ? this.cel.build() : null; + } + + public A withCel(V1alpha3CELDeviceSelector cel) { + this._visitables.remove("cel"); + if (cel != null) { + this.cel = new V1alpha3CELDeviceSelectorBuilder(cel); + this._visitables.get("cel").add(this.cel); + } else { + this.cel = null; + this._visitables.get("cel").remove(this.cel); + } + return (A) this; + } + + public boolean hasCel() { + return this.cel != null; + } + + public CelNested withNewCel() { + return new CelNested(null); + } + + public CelNested withNewCelLike(V1alpha3CELDeviceSelector item) { + return new CelNested(item); + } + + public CelNested editCel() { + return withNewCelLike(java.util.Optional.ofNullable(buildCel()).orElse(null)); + } + + public CelNested editOrNewCel() { + return withNewCelLike(java.util.Optional.ofNullable(buildCel()).orElse(new V1alpha3CELDeviceSelectorBuilder().build())); + } + + public CelNested editOrNewCelLike(V1alpha3CELDeviceSelector item) { + return withNewCelLike(java.util.Optional.ofNullable(buildCel()).orElse(item)); + } + + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + if (!super.equals(o)) return false; + V1alpha3DeviceSelectorFluent that = (V1alpha3DeviceSelectorFluent) o; + if (!java.util.Objects.equals(cel, that.cel)) return false; + return true; + } + + public int hashCode() { + return java.util.Objects.hash(cel, super.hashCode()); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (cel != null) { sb.append("cel:"); sb.append(cel); } + sb.append("}"); + return sb.toString(); + } + public class CelNested extends V1alpha3CELDeviceSelectorFluent> implements Nested{ + CelNested(V1alpha3CELDeviceSelector item) { + this.builder = new V1alpha3CELDeviceSelectorBuilder(this, item); + } + V1alpha3CELDeviceSelectorBuilder builder; + + public N and() { + return (N) V1alpha3DeviceSelectorFluent.this.withCel(builder.build()); + } + + public N endCel() { + return and(); + } + + + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceSubRequestBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceSubRequestBuilder.java new file mode 100644 index 0000000000..882dbcf57b --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceSubRequestBuilder.java @@ -0,0 +1,36 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +public class V1alpha3DeviceSubRequestBuilder extends V1alpha3DeviceSubRequestFluent implements VisitableBuilder{ + public V1alpha3DeviceSubRequestBuilder() { + this(new V1alpha3DeviceSubRequest()); + } + + public V1alpha3DeviceSubRequestBuilder(V1alpha3DeviceSubRequestFluent fluent) { + this(fluent, new V1alpha3DeviceSubRequest()); + } + + public V1alpha3DeviceSubRequestBuilder(V1alpha3DeviceSubRequestFluent fluent,V1alpha3DeviceSubRequest instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1alpha3DeviceSubRequestBuilder(V1alpha3DeviceSubRequest instance) { + this.fluent = this; + this.copyInstance(instance); + } + V1alpha3DeviceSubRequestFluent fluent; + + public V1alpha3DeviceSubRequest build() { + V1alpha3DeviceSubRequest buildable = new V1alpha3DeviceSubRequest(); + buildable.setAllocationMode(fluent.getAllocationMode()); + buildable.setCount(fluent.getCount()); + buildable.setDeviceClassName(fluent.getDeviceClassName()); + buildable.setName(fluent.getName()); + buildable.setSelectors(fluent.buildSelectors()); + buildable.setTolerations(fluent.buildTolerations()); + return buildable; + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceSubRequestFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceSubRequestFluent.java new file mode 100644 index 0000000000..48bfebc6ca --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceSubRequestFluent.java @@ -0,0 +1,491 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.Nested; +import java.util.ArrayList; +import java.lang.String; +import java.util.function.Predicate; +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Long; +import java.util.Iterator; +import java.util.Collection; +import java.lang.Object; +import java.util.List; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1alpha3DeviceSubRequestFluent> extends BaseFluent{ + public V1alpha3DeviceSubRequestFluent() { + } + + public V1alpha3DeviceSubRequestFluent(V1alpha3DeviceSubRequest instance) { + this.copyInstance(instance); + } + private String allocationMode; + private Long count; + private String deviceClassName; + private String name; + private ArrayList selectors; + private ArrayList tolerations; + + protected void copyInstance(V1alpha3DeviceSubRequest instance) { + instance = (instance != null ? instance : new V1alpha3DeviceSubRequest()); + if (instance != null) { + this.withAllocationMode(instance.getAllocationMode()); + this.withCount(instance.getCount()); + this.withDeviceClassName(instance.getDeviceClassName()); + this.withName(instance.getName()); + this.withSelectors(instance.getSelectors()); + this.withTolerations(instance.getTolerations()); + } + } + + public String getAllocationMode() { + return this.allocationMode; + } + + public A withAllocationMode(String allocationMode) { + this.allocationMode = allocationMode; + return (A) this; + } + + public boolean hasAllocationMode() { + return this.allocationMode != null; + } + + public Long getCount() { + return this.count; + } + + public A withCount(Long count) { + this.count = count; + return (A) this; + } + + public boolean hasCount() { + return this.count != null; + } + + public String getDeviceClassName() { + return this.deviceClassName; + } + + public A withDeviceClassName(String deviceClassName) { + this.deviceClassName = deviceClassName; + return (A) this; + } + + public boolean hasDeviceClassName() { + return this.deviceClassName != null; + } + + public String getName() { + return this.name; + } + + public A withName(String name) { + this.name = name; + return (A) this; + } + + public boolean hasName() { + return this.name != null; + } + + public A addToSelectors(int index,V1alpha3DeviceSelector item) { + if (this.selectors == null) {this.selectors = new ArrayList();} + V1alpha3DeviceSelectorBuilder builder = new V1alpha3DeviceSelectorBuilder(item); + if (index < 0 || index >= selectors.size()) { + _visitables.get("selectors").add(builder); + selectors.add(builder); + } else { + _visitables.get("selectors").add(builder); + selectors.add(index, builder); + } + return (A)this; + } + + public A setToSelectors(int index,V1alpha3DeviceSelector item) { + if (this.selectors == null) {this.selectors = new ArrayList();} + V1alpha3DeviceSelectorBuilder builder = new V1alpha3DeviceSelectorBuilder(item); + if (index < 0 || index >= selectors.size()) { + _visitables.get("selectors").add(builder); + selectors.add(builder); + } else { + _visitables.get("selectors").add(builder); + selectors.set(index, builder); + } + return (A)this; + } + + public A addToSelectors(io.kubernetes.client.openapi.models.V1alpha3DeviceSelector... items) { + if (this.selectors == null) {this.selectors = new ArrayList();} + for (V1alpha3DeviceSelector item : items) {V1alpha3DeviceSelectorBuilder builder = new V1alpha3DeviceSelectorBuilder(item);_visitables.get("selectors").add(builder);this.selectors.add(builder);} return (A)this; + } + + public A addAllToSelectors(Collection items) { + if (this.selectors == null) {this.selectors = new ArrayList();} + for (V1alpha3DeviceSelector item : items) {V1alpha3DeviceSelectorBuilder builder = new V1alpha3DeviceSelectorBuilder(item);_visitables.get("selectors").add(builder);this.selectors.add(builder);} return (A)this; + } + + public A removeFromSelectors(io.kubernetes.client.openapi.models.V1alpha3DeviceSelector... items) { + if (this.selectors == null) return (A)this; + for (V1alpha3DeviceSelector item : items) {V1alpha3DeviceSelectorBuilder builder = new V1alpha3DeviceSelectorBuilder(item);_visitables.get("selectors").remove(builder); this.selectors.remove(builder);} return (A)this; + } + + public A removeAllFromSelectors(Collection items) { + if (this.selectors == null) return (A)this; + for (V1alpha3DeviceSelector item : items) {V1alpha3DeviceSelectorBuilder builder = new V1alpha3DeviceSelectorBuilder(item);_visitables.get("selectors").remove(builder); this.selectors.remove(builder);} return (A)this; + } + + public A removeMatchingFromSelectors(Predicate predicate) { + if (selectors == null) return (A) this; + final Iterator each = selectors.iterator(); + final List visitables = _visitables.get("selectors"); + while (each.hasNext()) { + V1alpha3DeviceSelectorBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A)this; + } + + public List buildSelectors() { + return this.selectors != null ? build(selectors) : null; + } + + public V1alpha3DeviceSelector buildSelector(int index) { + return this.selectors.get(index).build(); + } + + public V1alpha3DeviceSelector buildFirstSelector() { + return this.selectors.get(0).build(); + } + + public V1alpha3DeviceSelector buildLastSelector() { + return this.selectors.get(selectors.size() - 1).build(); + } + + public V1alpha3DeviceSelector buildMatchingSelector(Predicate predicate) { + for (V1alpha3DeviceSelectorBuilder item : selectors) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; + } + + public boolean hasMatchingSelector(Predicate predicate) { + for (V1alpha3DeviceSelectorBuilder item : selectors) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public A withSelectors(List selectors) { + if (this.selectors != null) { + this._visitables.get("selectors").clear(); + } + if (selectors != null) { + this.selectors = new ArrayList(); + for (V1alpha3DeviceSelector item : selectors) { + this.addToSelectors(item); + } + } else { + this.selectors = null; + } + return (A) this; + } + + public A withSelectors(io.kubernetes.client.openapi.models.V1alpha3DeviceSelector... selectors) { + if (this.selectors != null) { + this.selectors.clear(); + _visitables.remove("selectors"); + } + if (selectors != null) { + for (V1alpha3DeviceSelector item : selectors) { + this.addToSelectors(item); + } + } + return (A) this; + } + + public boolean hasSelectors() { + return this.selectors != null && !this.selectors.isEmpty(); + } + + public SelectorsNested addNewSelector() { + return new SelectorsNested(-1, null); + } + + public SelectorsNested addNewSelectorLike(V1alpha3DeviceSelector item) { + return new SelectorsNested(-1, item); + } + + public SelectorsNested setNewSelectorLike(int index,V1alpha3DeviceSelector item) { + return new SelectorsNested(index, item); + } + + public SelectorsNested editSelector(int index) { + if (selectors.size() <= index) throw new RuntimeException("Can't edit selectors. Index exceeds size."); + return setNewSelectorLike(index, buildSelector(index)); + } + + public SelectorsNested editFirstSelector() { + if (selectors.size() == 0) throw new RuntimeException("Can't edit first selectors. The list is empty."); + return setNewSelectorLike(0, buildSelector(0)); + } + + public SelectorsNested editLastSelector() { + int index = selectors.size() - 1; + if (index < 0) throw new RuntimeException("Can't edit last selectors. The list is empty."); + return setNewSelectorLike(index, buildSelector(index)); + } + + public SelectorsNested editMatchingSelector(Predicate predicate) { + int index = -1; + for (int i=0;i();} + V1alpha3DeviceTolerationBuilder builder = new V1alpha3DeviceTolerationBuilder(item); + if (index < 0 || index >= tolerations.size()) { + _visitables.get("tolerations").add(builder); + tolerations.add(builder); + } else { + _visitables.get("tolerations").add(builder); + tolerations.add(index, builder); + } + return (A)this; + } + + public A setToTolerations(int index,V1alpha3DeviceToleration item) { + if (this.tolerations == null) {this.tolerations = new ArrayList();} + V1alpha3DeviceTolerationBuilder builder = new V1alpha3DeviceTolerationBuilder(item); + if (index < 0 || index >= tolerations.size()) { + _visitables.get("tolerations").add(builder); + tolerations.add(builder); + } else { + _visitables.get("tolerations").add(builder); + tolerations.set(index, builder); + } + return (A)this; + } + + public A addToTolerations(io.kubernetes.client.openapi.models.V1alpha3DeviceToleration... items) { + if (this.tolerations == null) {this.tolerations = new ArrayList();} + for (V1alpha3DeviceToleration item : items) {V1alpha3DeviceTolerationBuilder builder = new V1alpha3DeviceTolerationBuilder(item);_visitables.get("tolerations").add(builder);this.tolerations.add(builder);} return (A)this; + } + + public A addAllToTolerations(Collection items) { + if (this.tolerations == null) {this.tolerations = new ArrayList();} + for (V1alpha3DeviceToleration item : items) {V1alpha3DeviceTolerationBuilder builder = new V1alpha3DeviceTolerationBuilder(item);_visitables.get("tolerations").add(builder);this.tolerations.add(builder);} return (A)this; + } + + public A removeFromTolerations(io.kubernetes.client.openapi.models.V1alpha3DeviceToleration... items) { + if (this.tolerations == null) return (A)this; + for (V1alpha3DeviceToleration item : items) {V1alpha3DeviceTolerationBuilder builder = new V1alpha3DeviceTolerationBuilder(item);_visitables.get("tolerations").remove(builder); this.tolerations.remove(builder);} return (A)this; + } + + public A removeAllFromTolerations(Collection items) { + if (this.tolerations == null) return (A)this; + for (V1alpha3DeviceToleration item : items) {V1alpha3DeviceTolerationBuilder builder = new V1alpha3DeviceTolerationBuilder(item);_visitables.get("tolerations").remove(builder); this.tolerations.remove(builder);} return (A)this; + } + + public A removeMatchingFromTolerations(Predicate predicate) { + if (tolerations == null) return (A) this; + final Iterator each = tolerations.iterator(); + final List visitables = _visitables.get("tolerations"); + while (each.hasNext()) { + V1alpha3DeviceTolerationBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A)this; + } + + public List buildTolerations() { + return this.tolerations != null ? build(tolerations) : null; + } + + public V1alpha3DeviceToleration buildToleration(int index) { + return this.tolerations.get(index).build(); + } + + public V1alpha3DeviceToleration buildFirstToleration() { + return this.tolerations.get(0).build(); + } + + public V1alpha3DeviceToleration buildLastToleration() { + return this.tolerations.get(tolerations.size() - 1).build(); + } + + public V1alpha3DeviceToleration buildMatchingToleration(Predicate predicate) { + for (V1alpha3DeviceTolerationBuilder item : tolerations) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; + } + + public boolean hasMatchingToleration(Predicate predicate) { + for (V1alpha3DeviceTolerationBuilder item : tolerations) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public A withTolerations(List tolerations) { + if (this.tolerations != null) { + this._visitables.get("tolerations").clear(); + } + if (tolerations != null) { + this.tolerations = new ArrayList(); + for (V1alpha3DeviceToleration item : tolerations) { + this.addToTolerations(item); + } + } else { + this.tolerations = null; + } + return (A) this; + } + + public A withTolerations(io.kubernetes.client.openapi.models.V1alpha3DeviceToleration... tolerations) { + if (this.tolerations != null) { + this.tolerations.clear(); + _visitables.remove("tolerations"); + } + if (tolerations != null) { + for (V1alpha3DeviceToleration item : tolerations) { + this.addToTolerations(item); + } + } + return (A) this; + } + + public boolean hasTolerations() { + return this.tolerations != null && !this.tolerations.isEmpty(); + } + + public TolerationsNested addNewToleration() { + return new TolerationsNested(-1, null); + } + + public TolerationsNested addNewTolerationLike(V1alpha3DeviceToleration item) { + return new TolerationsNested(-1, item); + } + + public TolerationsNested setNewTolerationLike(int index,V1alpha3DeviceToleration item) { + return new TolerationsNested(index, item); + } + + public TolerationsNested editToleration(int index) { + if (tolerations.size() <= index) throw new RuntimeException("Can't edit tolerations. Index exceeds size."); + return setNewTolerationLike(index, buildToleration(index)); + } + + public TolerationsNested editFirstToleration() { + if (tolerations.size() == 0) throw new RuntimeException("Can't edit first tolerations. The list is empty."); + return setNewTolerationLike(0, buildToleration(0)); + } + + public TolerationsNested editLastToleration() { + int index = tolerations.size() - 1; + if (index < 0) throw new RuntimeException("Can't edit last tolerations. The list is empty."); + return setNewTolerationLike(index, buildToleration(index)); + } + + public TolerationsNested editMatchingToleration(Predicate predicate) { + int index = -1; + for (int i=0;i extends V1alpha3DeviceSelectorFluent> implements Nested{ + SelectorsNested(int index,V1alpha3DeviceSelector item) { + this.index = index; + this.builder = new V1alpha3DeviceSelectorBuilder(this, item); + } + V1alpha3DeviceSelectorBuilder builder; + int index; + + public N and() { + return (N) V1alpha3DeviceSubRequestFluent.this.setToSelectors(index,builder.build()); + } + + public N endSelector() { + return and(); + } + + + } + public class TolerationsNested extends V1alpha3DeviceTolerationFluent> implements Nested{ + TolerationsNested(int index,V1alpha3DeviceToleration item) { + this.index = index; + this.builder = new V1alpha3DeviceTolerationBuilder(this, item); + } + V1alpha3DeviceTolerationBuilder builder; + int index; + + public N and() { + return (N) V1alpha3DeviceSubRequestFluent.this.setToTolerations(index,builder.build()); + } + + public N endToleration() { + return and(); + } + + + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceTaintBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceTaintBuilder.java new file mode 100644 index 0000000000..8209adcf58 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceTaintBuilder.java @@ -0,0 +1,34 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +public class V1alpha3DeviceTaintBuilder extends V1alpha3DeviceTaintFluent implements VisitableBuilder{ + public V1alpha3DeviceTaintBuilder() { + this(new V1alpha3DeviceTaint()); + } + + public V1alpha3DeviceTaintBuilder(V1alpha3DeviceTaintFluent fluent) { + this(fluent, new V1alpha3DeviceTaint()); + } + + public V1alpha3DeviceTaintBuilder(V1alpha3DeviceTaintFluent fluent,V1alpha3DeviceTaint instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1alpha3DeviceTaintBuilder(V1alpha3DeviceTaint instance) { + this.fluent = this; + this.copyInstance(instance); + } + V1alpha3DeviceTaintFluent fluent; + + public V1alpha3DeviceTaint build() { + V1alpha3DeviceTaint buildable = new V1alpha3DeviceTaint(); + buildable.setEffect(fluent.getEffect()); + buildable.setKey(fluent.getKey()); + buildable.setTimeAdded(fluent.getTimeAdded()); + buildable.setValue(fluent.getValue()); + return buildable; + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceTaintFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceTaintFluent.java new file mode 100644 index 0000000000..31c35c1458 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceTaintFluent.java @@ -0,0 +1,115 @@ +package io.kubernetes.client.openapi.models; + +import java.time.OffsetDateTime; +import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Object; +import java.lang.String; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1alpha3DeviceTaintFluent> extends BaseFluent{ + public V1alpha3DeviceTaintFluent() { + } + + public V1alpha3DeviceTaintFluent(V1alpha3DeviceTaint instance) { + this.copyInstance(instance); + } + private String effect; + private String key; + private OffsetDateTime timeAdded; + private String value; + + protected void copyInstance(V1alpha3DeviceTaint instance) { + instance = (instance != null ? instance : new V1alpha3DeviceTaint()); + if (instance != null) { + this.withEffect(instance.getEffect()); + this.withKey(instance.getKey()); + this.withTimeAdded(instance.getTimeAdded()); + this.withValue(instance.getValue()); + } + } + + public String getEffect() { + return this.effect; + } + + public A withEffect(String effect) { + this.effect = effect; + return (A) this; + } + + public boolean hasEffect() { + return this.effect != null; + } + + public String getKey() { + return this.key; + } + + public A withKey(String key) { + this.key = key; + return (A) this; + } + + public boolean hasKey() { + return this.key != null; + } + + public OffsetDateTime getTimeAdded() { + return this.timeAdded; + } + + public A withTimeAdded(OffsetDateTime timeAdded) { + this.timeAdded = timeAdded; + return (A) this; + } + + public boolean hasTimeAdded() { + return this.timeAdded != null; + } + + public String getValue() { + return this.value; + } + + public A withValue(String value) { + this.value = value; + return (A) this; + } + + public boolean hasValue() { + return this.value != null; + } + + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + if (!super.equals(o)) return false; + V1alpha3DeviceTaintFluent that = (V1alpha3DeviceTaintFluent) o; + if (!java.util.Objects.equals(effect, that.effect)) return false; + if (!java.util.Objects.equals(key, that.key)) return false; + if (!java.util.Objects.equals(timeAdded, that.timeAdded)) return false; + if (!java.util.Objects.equals(value, that.value)) return false; + return true; + } + + public int hashCode() { + return java.util.Objects.hash(effect, key, timeAdded, value, super.hashCode()); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (effect != null) { sb.append("effect:"); sb.append(effect + ","); } + if (key != null) { sb.append("key:"); sb.append(key + ","); } + if (timeAdded != null) { sb.append("timeAdded:"); sb.append(timeAdded + ","); } + if (value != null) { sb.append("value:"); sb.append(value); } + sb.append("}"); + return sb.toString(); + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceTaintRuleBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceTaintRuleBuilder.java new file mode 100644 index 0000000000..539155d567 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceTaintRuleBuilder.java @@ -0,0 +1,34 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +public class V1alpha3DeviceTaintRuleBuilder extends V1alpha3DeviceTaintRuleFluent implements VisitableBuilder{ + public V1alpha3DeviceTaintRuleBuilder() { + this(new V1alpha3DeviceTaintRule()); + } + + public V1alpha3DeviceTaintRuleBuilder(V1alpha3DeviceTaintRuleFluent fluent) { + this(fluent, new V1alpha3DeviceTaintRule()); + } + + public V1alpha3DeviceTaintRuleBuilder(V1alpha3DeviceTaintRuleFluent fluent,V1alpha3DeviceTaintRule instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1alpha3DeviceTaintRuleBuilder(V1alpha3DeviceTaintRule instance) { + this.fluent = this; + this.copyInstance(instance); + } + V1alpha3DeviceTaintRuleFluent fluent; + + public V1alpha3DeviceTaintRule build() { + V1alpha3DeviceTaintRule buildable = new V1alpha3DeviceTaintRule(); + buildable.setApiVersion(fluent.getApiVersion()); + buildable.setKind(fluent.getKind()); + buildable.setMetadata(fluent.buildMetadata()); + buildable.setSpec(fluent.buildSpec()); + return buildable; + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceTaintRuleFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceTaintRuleFluent.java new file mode 100644 index 0000000000..42d71734d6 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceTaintRuleFluent.java @@ -0,0 +1,200 @@ +package io.kubernetes.client.openapi.models; + +import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.Nested; +import java.lang.String; +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Object; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1alpha3DeviceTaintRuleFluent> extends BaseFluent{ + public V1alpha3DeviceTaintRuleFluent() { + } + + public V1alpha3DeviceTaintRuleFluent(V1alpha3DeviceTaintRule instance) { + this.copyInstance(instance); + } + private String apiVersion; + private String kind; + private V1ObjectMetaBuilder metadata; + private V1alpha3DeviceTaintRuleSpecBuilder spec; + + protected void copyInstance(V1alpha3DeviceTaintRule instance) { + instance = (instance != null ? instance : new V1alpha3DeviceTaintRule()); + if (instance != null) { + this.withApiVersion(instance.getApiVersion()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); + this.withSpec(instance.getSpec()); + } + } + + public String getApiVersion() { + return this.apiVersion; + } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + + public boolean hasApiVersion() { + return this.apiVersion != null; + } + + public String getKind() { + return this.kind; + } + + public A withKind(String kind) { + this.kind = kind; + return (A) this; + } + + public boolean hasKind() { + return this.kind != null; + } + + public V1ObjectMeta buildMetadata() { + return this.metadata != null ? this.metadata.build() : null; + } + + public A withMetadata(V1ObjectMeta metadata) { + this._visitables.remove("metadata"); + if (metadata != null) { + this.metadata = new V1ObjectMetaBuilder(metadata); + this._visitables.get("metadata").add(this.metadata); + } else { + this.metadata = null; + this._visitables.get("metadata").remove(this.metadata); + } + return (A) this; + } + + public boolean hasMetadata() { + return this.metadata != null; + } + + public MetadataNested withNewMetadata() { + return new MetadataNested(null); + } + + public MetadataNested withNewMetadataLike(V1ObjectMeta item) { + return new MetadataNested(item); + } + + public MetadataNested editMetadata() { + return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(null)); + } + + public MetadataNested editOrNewMetadata() { + return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(new V1ObjectMetaBuilder().build())); + } + + public MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { + return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(item)); + } + + public V1alpha3DeviceTaintRuleSpec buildSpec() { + return this.spec != null ? this.spec.build() : null; + } + + public A withSpec(V1alpha3DeviceTaintRuleSpec spec) { + this._visitables.remove("spec"); + if (spec != null) { + this.spec = new V1alpha3DeviceTaintRuleSpecBuilder(spec); + this._visitables.get("spec").add(this.spec); + } else { + this.spec = null; + this._visitables.get("spec").remove(this.spec); + } + return (A) this; + } + + public boolean hasSpec() { + return this.spec != null; + } + + public SpecNested withNewSpec() { + return new SpecNested(null); + } + + public SpecNested withNewSpecLike(V1alpha3DeviceTaintRuleSpec item) { + return new SpecNested(item); + } + + public SpecNested editSpec() { + return withNewSpecLike(java.util.Optional.ofNullable(buildSpec()).orElse(null)); + } + + public SpecNested editOrNewSpec() { + return withNewSpecLike(java.util.Optional.ofNullable(buildSpec()).orElse(new V1alpha3DeviceTaintRuleSpecBuilder().build())); + } + + public SpecNested editOrNewSpecLike(V1alpha3DeviceTaintRuleSpec item) { + return withNewSpecLike(java.util.Optional.ofNullable(buildSpec()).orElse(item)); + } + + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + if (!super.equals(o)) return false; + V1alpha3DeviceTaintRuleFluent that = (V1alpha3DeviceTaintRuleFluent) o; + if (!java.util.Objects.equals(apiVersion, that.apiVersion)) return false; + if (!java.util.Objects.equals(kind, that.kind)) return false; + if (!java.util.Objects.equals(metadata, that.metadata)) return false; + if (!java.util.Objects.equals(spec, that.spec)) return false; + return true; + } + + public int hashCode() { + return java.util.Objects.hash(apiVersion, kind, metadata, spec, super.hashCode()); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (apiVersion != null) { sb.append("apiVersion:"); sb.append(apiVersion + ","); } + if (kind != null) { sb.append("kind:"); sb.append(kind + ","); } + if (metadata != null) { sb.append("metadata:"); sb.append(metadata + ","); } + if (spec != null) { sb.append("spec:"); sb.append(spec); } + sb.append("}"); + return sb.toString(); + } + public class MetadataNested extends V1ObjectMetaFluent> implements Nested{ + MetadataNested(V1ObjectMeta item) { + this.builder = new V1ObjectMetaBuilder(this, item); + } + V1ObjectMetaBuilder builder; + + public N and() { + return (N) V1alpha3DeviceTaintRuleFluent.this.withMetadata(builder.build()); + } + + public N endMetadata() { + return and(); + } + + + } + public class SpecNested extends V1alpha3DeviceTaintRuleSpecFluent> implements Nested{ + SpecNested(V1alpha3DeviceTaintRuleSpec item) { + this.builder = new V1alpha3DeviceTaintRuleSpecBuilder(this, item); + } + V1alpha3DeviceTaintRuleSpecBuilder builder; + + public N and() { + return (N) V1alpha3DeviceTaintRuleFluent.this.withSpec(builder.build()); + } + + public N endSpec() { + return and(); + } + + + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceTaintRuleListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceTaintRuleListBuilder.java new file mode 100644 index 0000000000..6d64365e75 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceTaintRuleListBuilder.java @@ -0,0 +1,34 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +public class V1alpha3DeviceTaintRuleListBuilder extends V1alpha3DeviceTaintRuleListFluent implements VisitableBuilder{ + public V1alpha3DeviceTaintRuleListBuilder() { + this(new V1alpha3DeviceTaintRuleList()); + } + + public V1alpha3DeviceTaintRuleListBuilder(V1alpha3DeviceTaintRuleListFluent fluent) { + this(fluent, new V1alpha3DeviceTaintRuleList()); + } + + public V1alpha3DeviceTaintRuleListBuilder(V1alpha3DeviceTaintRuleListFluent fluent,V1alpha3DeviceTaintRuleList instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1alpha3DeviceTaintRuleListBuilder(V1alpha3DeviceTaintRuleList instance) { + this.fluent = this; + this.copyInstance(instance); + } + V1alpha3DeviceTaintRuleListFluent fluent; + + public V1alpha3DeviceTaintRuleList build() { + V1alpha3DeviceTaintRuleList buildable = new V1alpha3DeviceTaintRuleList(); + buildable.setApiVersion(fluent.getApiVersion()); + buildable.setItems(fluent.buildItems()); + buildable.setKind(fluent.getKind()); + buildable.setMetadata(fluent.buildMetadata()); + return buildable; + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceTaintRuleListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceTaintRuleListFluent.java new file mode 100644 index 0000000000..3b18272e47 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceTaintRuleListFluent.java @@ -0,0 +1,331 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.Nested; +import java.util.ArrayList; +import java.lang.String; +import java.util.function.Predicate; +import io.kubernetes.client.fluent.BaseFluent; +import java.util.Iterator; +import java.util.Collection; +import java.lang.Object; +import java.util.List; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1alpha3DeviceTaintRuleListFluent> extends BaseFluent{ + public V1alpha3DeviceTaintRuleListFluent() { + } + + public V1alpha3DeviceTaintRuleListFluent(V1alpha3DeviceTaintRuleList instance) { + this.copyInstance(instance); + } + private String apiVersion; + private ArrayList items; + private String kind; + private V1ListMetaBuilder metadata; + + protected void copyInstance(V1alpha3DeviceTaintRuleList instance) { + instance = (instance != null ? instance : new V1alpha3DeviceTaintRuleList()); + if (instance != null) { + this.withApiVersion(instance.getApiVersion()); + this.withItems(instance.getItems()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); + } + } + + public String getApiVersion() { + return this.apiVersion; + } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + + public boolean hasApiVersion() { + return this.apiVersion != null; + } + + public A addToItems(int index,V1alpha3DeviceTaintRule item) { + if (this.items == null) {this.items = new ArrayList();} + V1alpha3DeviceTaintRuleBuilder builder = new V1alpha3DeviceTaintRuleBuilder(item); + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.add(index, builder); + } + return (A)this; + } + + public A setToItems(int index,V1alpha3DeviceTaintRule item) { + if (this.items == null) {this.items = new ArrayList();} + V1alpha3DeviceTaintRuleBuilder builder = new V1alpha3DeviceTaintRuleBuilder(item); + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.set(index, builder); + } + return (A)this; + } + + public A addToItems(io.kubernetes.client.openapi.models.V1alpha3DeviceTaintRule... items) { + if (this.items == null) {this.items = new ArrayList();} + for (V1alpha3DeviceTaintRule item : items) {V1alpha3DeviceTaintRuleBuilder builder = new V1alpha3DeviceTaintRuleBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; + } + + public A addAllToItems(Collection items) { + if (this.items == null) {this.items = new ArrayList();} + for (V1alpha3DeviceTaintRule item : items) {V1alpha3DeviceTaintRuleBuilder builder = new V1alpha3DeviceTaintRuleBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; + } + + public A removeFromItems(io.kubernetes.client.openapi.models.V1alpha3DeviceTaintRule... items) { + if (this.items == null) return (A)this; + for (V1alpha3DeviceTaintRule item : items) {V1alpha3DeviceTaintRuleBuilder builder = new V1alpha3DeviceTaintRuleBuilder(item);_visitables.get("items").remove(builder); this.items.remove(builder);} return (A)this; + } + + public A removeAllFromItems(Collection items) { + if (this.items == null) return (A)this; + for (V1alpha3DeviceTaintRule item : items) {V1alpha3DeviceTaintRuleBuilder builder = new V1alpha3DeviceTaintRuleBuilder(item);_visitables.get("items").remove(builder); this.items.remove(builder);} return (A)this; + } + + public A removeMatchingFromItems(Predicate predicate) { + if (items == null) return (A) this; + final Iterator each = items.iterator(); + final List visitables = _visitables.get("items"); + while (each.hasNext()) { + V1alpha3DeviceTaintRuleBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A)this; + } + + public List buildItems() { + return this.items != null ? build(items) : null; + } + + public V1alpha3DeviceTaintRule buildItem(int index) { + return this.items.get(index).build(); + } + + public V1alpha3DeviceTaintRule buildFirstItem() { + return this.items.get(0).build(); + } + + public V1alpha3DeviceTaintRule buildLastItem() { + return this.items.get(items.size() - 1).build(); + } + + public V1alpha3DeviceTaintRule buildMatchingItem(Predicate predicate) { + for (V1alpha3DeviceTaintRuleBuilder item : items) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; + } + + public boolean hasMatchingItem(Predicate predicate) { + for (V1alpha3DeviceTaintRuleBuilder item : items) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public A withItems(List items) { + if (this.items != null) { + this._visitables.get("items").clear(); + } + if (items != null) { + this.items = new ArrayList(); + for (V1alpha3DeviceTaintRule item : items) { + this.addToItems(item); + } + } else { + this.items = null; + } + return (A) this; + } + + public A withItems(io.kubernetes.client.openapi.models.V1alpha3DeviceTaintRule... items) { + if (this.items != null) { + this.items.clear(); + _visitables.remove("items"); + } + if (items != null) { + for (V1alpha3DeviceTaintRule item : items) { + this.addToItems(item); + } + } + return (A) this; + } + + public boolean hasItems() { + return this.items != null && !this.items.isEmpty(); + } + + public ItemsNested addNewItem() { + return new ItemsNested(-1, null); + } + + public ItemsNested addNewItemLike(V1alpha3DeviceTaintRule item) { + return new ItemsNested(-1, item); + } + + public ItemsNested setNewItemLike(int index,V1alpha3DeviceTaintRule item) { + return new ItemsNested(index, item); + } + + public ItemsNested editItem(int index) { + if (items.size() <= index) throw new RuntimeException("Can't edit items. Index exceeds size."); + return setNewItemLike(index, buildItem(index)); + } + + public ItemsNested editFirstItem() { + if (items.size() == 0) throw new RuntimeException("Can't edit first items. The list is empty."); + return setNewItemLike(0, buildItem(0)); + } + + public ItemsNested editLastItem() { + int index = items.size() - 1; + if (index < 0) throw new RuntimeException("Can't edit last items. The list is empty."); + return setNewItemLike(index, buildItem(index)); + } + + public ItemsNested editMatchingItem(Predicate predicate) { + int index = -1; + for (int i=0;i withNewMetadata() { + return new MetadataNested(null); + } + + public MetadataNested withNewMetadataLike(V1ListMeta item) { + return new MetadataNested(item); + } + + public MetadataNested editMetadata() { + return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(null)); + } + + public MetadataNested editOrNewMetadata() { + return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(new V1ListMetaBuilder().build())); + } + + public MetadataNested editOrNewMetadataLike(V1ListMeta item) { + return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(item)); + } + + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + if (!super.equals(o)) return false; + V1alpha3DeviceTaintRuleListFluent that = (V1alpha3DeviceTaintRuleListFluent) o; + if (!java.util.Objects.equals(apiVersion, that.apiVersion)) return false; + if (!java.util.Objects.equals(items, that.items)) return false; + if (!java.util.Objects.equals(kind, that.kind)) return false; + if (!java.util.Objects.equals(metadata, that.metadata)) return false; + return true; + } + + public int hashCode() { + return java.util.Objects.hash(apiVersion, items, kind, metadata, super.hashCode()); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (apiVersion != null) { sb.append("apiVersion:"); sb.append(apiVersion + ","); } + if (items != null && !items.isEmpty()) { sb.append("items:"); sb.append(items + ","); } + if (kind != null) { sb.append("kind:"); sb.append(kind + ","); } + if (metadata != null) { sb.append("metadata:"); sb.append(metadata); } + sb.append("}"); + return sb.toString(); + } + public class ItemsNested extends V1alpha3DeviceTaintRuleFluent> implements Nested{ + ItemsNested(int index,V1alpha3DeviceTaintRule item) { + this.index = index; + this.builder = new V1alpha3DeviceTaintRuleBuilder(this, item); + } + V1alpha3DeviceTaintRuleBuilder builder; + int index; + + public N and() { + return (N) V1alpha3DeviceTaintRuleListFluent.this.setToItems(index,builder.build()); + } + + public N endItem() { + return and(); + } + + + } + public class MetadataNested extends V1ListMetaFluent> implements Nested{ + MetadataNested(V1ListMeta item) { + this.builder = new V1ListMetaBuilder(this, item); + } + V1ListMetaBuilder builder; + + public N and() { + return (N) V1alpha3DeviceTaintRuleListFluent.this.withMetadata(builder.build()); + } + + public N endMetadata() { + return and(); + } + + + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceTaintRuleSpecBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceTaintRuleSpecBuilder.java new file mode 100644 index 0000000000..b4c91f1584 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceTaintRuleSpecBuilder.java @@ -0,0 +1,32 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +public class V1alpha3DeviceTaintRuleSpecBuilder extends V1alpha3DeviceTaintRuleSpecFluent implements VisitableBuilder{ + public V1alpha3DeviceTaintRuleSpecBuilder() { + this(new V1alpha3DeviceTaintRuleSpec()); + } + + public V1alpha3DeviceTaintRuleSpecBuilder(V1alpha3DeviceTaintRuleSpecFluent fluent) { + this(fluent, new V1alpha3DeviceTaintRuleSpec()); + } + + public V1alpha3DeviceTaintRuleSpecBuilder(V1alpha3DeviceTaintRuleSpecFluent fluent,V1alpha3DeviceTaintRuleSpec instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1alpha3DeviceTaintRuleSpecBuilder(V1alpha3DeviceTaintRuleSpec instance) { + this.fluent = this; + this.copyInstance(instance); + } + V1alpha3DeviceTaintRuleSpecFluent fluent; + + public V1alpha3DeviceTaintRuleSpec build() { + V1alpha3DeviceTaintRuleSpec buildable = new V1alpha3DeviceTaintRuleSpec(); + buildable.setDeviceSelector(fluent.buildDeviceSelector()); + buildable.setTaint(fluent.buildTaint()); + return buildable; + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceTaintRuleSpecFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceTaintRuleSpecFluent.java new file mode 100644 index 0000000000..e1442bfe7c --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceTaintRuleSpecFluent.java @@ -0,0 +1,166 @@ +package io.kubernetes.client.openapi.models; + +import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.Nested; +import java.lang.String; +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Object; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1alpha3DeviceTaintRuleSpecFluent> extends BaseFluent{ + public V1alpha3DeviceTaintRuleSpecFluent() { + } + + public V1alpha3DeviceTaintRuleSpecFluent(V1alpha3DeviceTaintRuleSpec instance) { + this.copyInstance(instance); + } + private V1alpha3DeviceTaintSelectorBuilder deviceSelector; + private V1alpha3DeviceTaintBuilder taint; + + protected void copyInstance(V1alpha3DeviceTaintRuleSpec instance) { + instance = (instance != null ? instance : new V1alpha3DeviceTaintRuleSpec()); + if (instance != null) { + this.withDeviceSelector(instance.getDeviceSelector()); + this.withTaint(instance.getTaint()); + } + } + + public V1alpha3DeviceTaintSelector buildDeviceSelector() { + return this.deviceSelector != null ? this.deviceSelector.build() : null; + } + + public A withDeviceSelector(V1alpha3DeviceTaintSelector deviceSelector) { + this._visitables.remove("deviceSelector"); + if (deviceSelector != null) { + this.deviceSelector = new V1alpha3DeviceTaintSelectorBuilder(deviceSelector); + this._visitables.get("deviceSelector").add(this.deviceSelector); + } else { + this.deviceSelector = null; + this._visitables.get("deviceSelector").remove(this.deviceSelector); + } + return (A) this; + } + + public boolean hasDeviceSelector() { + return this.deviceSelector != null; + } + + public DeviceSelectorNested withNewDeviceSelector() { + return new DeviceSelectorNested(null); + } + + public DeviceSelectorNested withNewDeviceSelectorLike(V1alpha3DeviceTaintSelector item) { + return new DeviceSelectorNested(item); + } + + public DeviceSelectorNested editDeviceSelector() { + return withNewDeviceSelectorLike(java.util.Optional.ofNullable(buildDeviceSelector()).orElse(null)); + } + + public DeviceSelectorNested editOrNewDeviceSelector() { + return withNewDeviceSelectorLike(java.util.Optional.ofNullable(buildDeviceSelector()).orElse(new V1alpha3DeviceTaintSelectorBuilder().build())); + } + + public DeviceSelectorNested editOrNewDeviceSelectorLike(V1alpha3DeviceTaintSelector item) { + return withNewDeviceSelectorLike(java.util.Optional.ofNullable(buildDeviceSelector()).orElse(item)); + } + + public V1alpha3DeviceTaint buildTaint() { + return this.taint != null ? this.taint.build() : null; + } + + public A withTaint(V1alpha3DeviceTaint taint) { + this._visitables.remove("taint"); + if (taint != null) { + this.taint = new V1alpha3DeviceTaintBuilder(taint); + this._visitables.get("taint").add(this.taint); + } else { + this.taint = null; + this._visitables.get("taint").remove(this.taint); + } + return (A) this; + } + + public boolean hasTaint() { + return this.taint != null; + } + + public TaintNested withNewTaint() { + return new TaintNested(null); + } + + public TaintNested withNewTaintLike(V1alpha3DeviceTaint item) { + return new TaintNested(item); + } + + public TaintNested editTaint() { + return withNewTaintLike(java.util.Optional.ofNullable(buildTaint()).orElse(null)); + } + + public TaintNested editOrNewTaint() { + return withNewTaintLike(java.util.Optional.ofNullable(buildTaint()).orElse(new V1alpha3DeviceTaintBuilder().build())); + } + + public TaintNested editOrNewTaintLike(V1alpha3DeviceTaint item) { + return withNewTaintLike(java.util.Optional.ofNullable(buildTaint()).orElse(item)); + } + + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + if (!super.equals(o)) return false; + V1alpha3DeviceTaintRuleSpecFluent that = (V1alpha3DeviceTaintRuleSpecFluent) o; + if (!java.util.Objects.equals(deviceSelector, that.deviceSelector)) return false; + if (!java.util.Objects.equals(taint, that.taint)) return false; + return true; + } + + public int hashCode() { + return java.util.Objects.hash(deviceSelector, taint, super.hashCode()); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (deviceSelector != null) { sb.append("deviceSelector:"); sb.append(deviceSelector + ","); } + if (taint != null) { sb.append("taint:"); sb.append(taint); } + sb.append("}"); + return sb.toString(); + } + public class DeviceSelectorNested extends V1alpha3DeviceTaintSelectorFluent> implements Nested{ + DeviceSelectorNested(V1alpha3DeviceTaintSelector item) { + this.builder = new V1alpha3DeviceTaintSelectorBuilder(this, item); + } + V1alpha3DeviceTaintSelectorBuilder builder; + + public N and() { + return (N) V1alpha3DeviceTaintRuleSpecFluent.this.withDeviceSelector(builder.build()); + } + + public N endDeviceSelector() { + return and(); + } + + + } + public class TaintNested extends V1alpha3DeviceTaintFluent> implements Nested{ + TaintNested(V1alpha3DeviceTaint item) { + this.builder = new V1alpha3DeviceTaintBuilder(this, item); + } + V1alpha3DeviceTaintBuilder builder; + + public N and() { + return (N) V1alpha3DeviceTaintRuleSpecFluent.this.withTaint(builder.build()); + } + + public N endTaint() { + return and(); + } + + + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceTaintSelectorBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceTaintSelectorBuilder.java new file mode 100644 index 0000000000..e6c5728ce9 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceTaintSelectorBuilder.java @@ -0,0 +1,35 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +public class V1alpha3DeviceTaintSelectorBuilder extends V1alpha3DeviceTaintSelectorFluent implements VisitableBuilder{ + public V1alpha3DeviceTaintSelectorBuilder() { + this(new V1alpha3DeviceTaintSelector()); + } + + public V1alpha3DeviceTaintSelectorBuilder(V1alpha3DeviceTaintSelectorFluent fluent) { + this(fluent, new V1alpha3DeviceTaintSelector()); + } + + public V1alpha3DeviceTaintSelectorBuilder(V1alpha3DeviceTaintSelectorFluent fluent,V1alpha3DeviceTaintSelector instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1alpha3DeviceTaintSelectorBuilder(V1alpha3DeviceTaintSelector instance) { + this.fluent = this; + this.copyInstance(instance); + } + V1alpha3DeviceTaintSelectorFluent fluent; + + public V1alpha3DeviceTaintSelector build() { + V1alpha3DeviceTaintSelector buildable = new V1alpha3DeviceTaintSelector(); + buildable.setDevice(fluent.getDevice()); + buildable.setDeviceClassName(fluent.getDeviceClassName()); + buildable.setDriver(fluent.getDriver()); + buildable.setPool(fluent.getPool()); + buildable.setSelectors(fluent.buildSelectors()); + return buildable; + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceTaintSelectorFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceTaintSelectorFluent.java new file mode 100644 index 0000000000..bf0c6708bc --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceTaintSelectorFluent.java @@ -0,0 +1,305 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.Nested; +import java.util.ArrayList; +import java.lang.String; +import java.util.function.Predicate; +import io.kubernetes.client.fluent.BaseFluent; +import java.util.Iterator; +import java.util.Collection; +import java.lang.Object; +import java.util.List; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1alpha3DeviceTaintSelectorFluent> extends BaseFluent{ + public V1alpha3DeviceTaintSelectorFluent() { + } + + public V1alpha3DeviceTaintSelectorFluent(V1alpha3DeviceTaintSelector instance) { + this.copyInstance(instance); + } + private String device; + private String deviceClassName; + private String driver; + private String pool; + private ArrayList selectors; + + protected void copyInstance(V1alpha3DeviceTaintSelector instance) { + instance = (instance != null ? instance : new V1alpha3DeviceTaintSelector()); + if (instance != null) { + this.withDevice(instance.getDevice()); + this.withDeviceClassName(instance.getDeviceClassName()); + this.withDriver(instance.getDriver()); + this.withPool(instance.getPool()); + this.withSelectors(instance.getSelectors()); + } + } + + public String getDevice() { + return this.device; + } + + public A withDevice(String device) { + this.device = device; + return (A) this; + } + + public boolean hasDevice() { + return this.device != null; + } + + public String getDeviceClassName() { + return this.deviceClassName; + } + + public A withDeviceClassName(String deviceClassName) { + this.deviceClassName = deviceClassName; + return (A) this; + } + + public boolean hasDeviceClassName() { + return this.deviceClassName != null; + } + + public String getDriver() { + return this.driver; + } + + public A withDriver(String driver) { + this.driver = driver; + return (A) this; + } + + public boolean hasDriver() { + return this.driver != null; + } + + public String getPool() { + return this.pool; + } + + public A withPool(String pool) { + this.pool = pool; + return (A) this; + } + + public boolean hasPool() { + return this.pool != null; + } + + public A addToSelectors(int index,V1alpha3DeviceSelector item) { + if (this.selectors == null) {this.selectors = new ArrayList();} + V1alpha3DeviceSelectorBuilder builder = new V1alpha3DeviceSelectorBuilder(item); + if (index < 0 || index >= selectors.size()) { + _visitables.get("selectors").add(builder); + selectors.add(builder); + } else { + _visitables.get("selectors").add(builder); + selectors.add(index, builder); + } + return (A)this; + } + + public A setToSelectors(int index,V1alpha3DeviceSelector item) { + if (this.selectors == null) {this.selectors = new ArrayList();} + V1alpha3DeviceSelectorBuilder builder = new V1alpha3DeviceSelectorBuilder(item); + if (index < 0 || index >= selectors.size()) { + _visitables.get("selectors").add(builder); + selectors.add(builder); + } else { + _visitables.get("selectors").add(builder); + selectors.set(index, builder); + } + return (A)this; + } + + public A addToSelectors(io.kubernetes.client.openapi.models.V1alpha3DeviceSelector... items) { + if (this.selectors == null) {this.selectors = new ArrayList();} + for (V1alpha3DeviceSelector item : items) {V1alpha3DeviceSelectorBuilder builder = new V1alpha3DeviceSelectorBuilder(item);_visitables.get("selectors").add(builder);this.selectors.add(builder);} return (A)this; + } + + public A addAllToSelectors(Collection items) { + if (this.selectors == null) {this.selectors = new ArrayList();} + for (V1alpha3DeviceSelector item : items) {V1alpha3DeviceSelectorBuilder builder = new V1alpha3DeviceSelectorBuilder(item);_visitables.get("selectors").add(builder);this.selectors.add(builder);} return (A)this; + } + + public A removeFromSelectors(io.kubernetes.client.openapi.models.V1alpha3DeviceSelector... items) { + if (this.selectors == null) return (A)this; + for (V1alpha3DeviceSelector item : items) {V1alpha3DeviceSelectorBuilder builder = new V1alpha3DeviceSelectorBuilder(item);_visitables.get("selectors").remove(builder); this.selectors.remove(builder);} return (A)this; + } + + public A removeAllFromSelectors(Collection items) { + if (this.selectors == null) return (A)this; + for (V1alpha3DeviceSelector item : items) {V1alpha3DeviceSelectorBuilder builder = new V1alpha3DeviceSelectorBuilder(item);_visitables.get("selectors").remove(builder); this.selectors.remove(builder);} return (A)this; + } + + public A removeMatchingFromSelectors(Predicate predicate) { + if (selectors == null) return (A) this; + final Iterator each = selectors.iterator(); + final List visitables = _visitables.get("selectors"); + while (each.hasNext()) { + V1alpha3DeviceSelectorBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A)this; + } + + public List buildSelectors() { + return this.selectors != null ? build(selectors) : null; + } + + public V1alpha3DeviceSelector buildSelector(int index) { + return this.selectors.get(index).build(); + } + + public V1alpha3DeviceSelector buildFirstSelector() { + return this.selectors.get(0).build(); + } + + public V1alpha3DeviceSelector buildLastSelector() { + return this.selectors.get(selectors.size() - 1).build(); + } + + public V1alpha3DeviceSelector buildMatchingSelector(Predicate predicate) { + for (V1alpha3DeviceSelectorBuilder item : selectors) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; + } + + public boolean hasMatchingSelector(Predicate predicate) { + for (V1alpha3DeviceSelectorBuilder item : selectors) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public A withSelectors(List selectors) { + if (this.selectors != null) { + this._visitables.get("selectors").clear(); + } + if (selectors != null) { + this.selectors = new ArrayList(); + for (V1alpha3DeviceSelector item : selectors) { + this.addToSelectors(item); + } + } else { + this.selectors = null; + } + return (A) this; + } + + public A withSelectors(io.kubernetes.client.openapi.models.V1alpha3DeviceSelector... selectors) { + if (this.selectors != null) { + this.selectors.clear(); + _visitables.remove("selectors"); + } + if (selectors != null) { + for (V1alpha3DeviceSelector item : selectors) { + this.addToSelectors(item); + } + } + return (A) this; + } + + public boolean hasSelectors() { + return this.selectors != null && !this.selectors.isEmpty(); + } + + public SelectorsNested addNewSelector() { + return new SelectorsNested(-1, null); + } + + public SelectorsNested addNewSelectorLike(V1alpha3DeviceSelector item) { + return new SelectorsNested(-1, item); + } + + public SelectorsNested setNewSelectorLike(int index,V1alpha3DeviceSelector item) { + return new SelectorsNested(index, item); + } + + public SelectorsNested editSelector(int index) { + if (selectors.size() <= index) throw new RuntimeException("Can't edit selectors. Index exceeds size."); + return setNewSelectorLike(index, buildSelector(index)); + } + + public SelectorsNested editFirstSelector() { + if (selectors.size() == 0) throw new RuntimeException("Can't edit first selectors. The list is empty."); + return setNewSelectorLike(0, buildSelector(0)); + } + + public SelectorsNested editLastSelector() { + int index = selectors.size() - 1; + if (index < 0) throw new RuntimeException("Can't edit last selectors. The list is empty."); + return setNewSelectorLike(index, buildSelector(index)); + } + + public SelectorsNested editMatchingSelector(Predicate predicate) { + int index = -1; + for (int i=0;i extends V1alpha3DeviceSelectorFluent> implements Nested{ + SelectorsNested(int index,V1alpha3DeviceSelector item) { + this.index = index; + this.builder = new V1alpha3DeviceSelectorBuilder(this, item); + } + V1alpha3DeviceSelectorBuilder builder; + int index; + + public N and() { + return (N) V1alpha3DeviceTaintSelectorFluent.this.setToSelectors(index,builder.build()); + } + + public N endSelector() { + return and(); + } + + + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceTolerationBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceTolerationBuilder.java new file mode 100644 index 0000000000..cb64c89939 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceTolerationBuilder.java @@ -0,0 +1,35 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +public class V1alpha3DeviceTolerationBuilder extends V1alpha3DeviceTolerationFluent implements VisitableBuilder{ + public V1alpha3DeviceTolerationBuilder() { + this(new V1alpha3DeviceToleration()); + } + + public V1alpha3DeviceTolerationBuilder(V1alpha3DeviceTolerationFluent fluent) { + this(fluent, new V1alpha3DeviceToleration()); + } + + public V1alpha3DeviceTolerationBuilder(V1alpha3DeviceTolerationFluent fluent,V1alpha3DeviceToleration instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1alpha3DeviceTolerationBuilder(V1alpha3DeviceToleration instance) { + this.fluent = this; + this.copyInstance(instance); + } + V1alpha3DeviceTolerationFluent fluent; + + public V1alpha3DeviceToleration build() { + V1alpha3DeviceToleration buildable = new V1alpha3DeviceToleration(); + buildable.setEffect(fluent.getEffect()); + buildable.setKey(fluent.getKey()); + buildable.setOperator(fluent.getOperator()); + buildable.setTolerationSeconds(fluent.getTolerationSeconds()); + buildable.setValue(fluent.getValue()); + return buildable; + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceTolerationFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceTolerationFluent.java new file mode 100644 index 0000000000..fbff68b239 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceTolerationFluent.java @@ -0,0 +1,132 @@ +package io.kubernetes.client.openapi.models; + +import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Long; +import java.lang.Object; +import java.lang.String; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1alpha3DeviceTolerationFluent> extends BaseFluent{ + public V1alpha3DeviceTolerationFluent() { + } + + public V1alpha3DeviceTolerationFluent(V1alpha3DeviceToleration instance) { + this.copyInstance(instance); + } + private String effect; + private String key; + private String operator; + private Long tolerationSeconds; + private String value; + + protected void copyInstance(V1alpha3DeviceToleration instance) { + instance = (instance != null ? instance : new V1alpha3DeviceToleration()); + if (instance != null) { + this.withEffect(instance.getEffect()); + this.withKey(instance.getKey()); + this.withOperator(instance.getOperator()); + this.withTolerationSeconds(instance.getTolerationSeconds()); + this.withValue(instance.getValue()); + } + } + + public String getEffect() { + return this.effect; + } + + public A withEffect(String effect) { + this.effect = effect; + return (A) this; + } + + public boolean hasEffect() { + return this.effect != null; + } + + public String getKey() { + return this.key; + } + + public A withKey(String key) { + this.key = key; + return (A) this; + } + + public boolean hasKey() { + return this.key != null; + } + + public String getOperator() { + return this.operator; + } + + public A withOperator(String operator) { + this.operator = operator; + return (A) this; + } + + public boolean hasOperator() { + return this.operator != null; + } + + public Long getTolerationSeconds() { + return this.tolerationSeconds; + } + + public A withTolerationSeconds(Long tolerationSeconds) { + this.tolerationSeconds = tolerationSeconds; + return (A) this; + } + + public boolean hasTolerationSeconds() { + return this.tolerationSeconds != null; + } + + public String getValue() { + return this.value; + } + + public A withValue(String value) { + this.value = value; + return (A) this; + } + + public boolean hasValue() { + return this.value != null; + } + + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + if (!super.equals(o)) return false; + V1alpha3DeviceTolerationFluent that = (V1alpha3DeviceTolerationFluent) o; + if (!java.util.Objects.equals(effect, that.effect)) return false; + if (!java.util.Objects.equals(key, that.key)) return false; + if (!java.util.Objects.equals(operator, that.operator)) return false; + if (!java.util.Objects.equals(tolerationSeconds, that.tolerationSeconds)) return false; + if (!java.util.Objects.equals(value, that.value)) return false; + return true; + } + + public int hashCode() { + return java.util.Objects.hash(effect, key, operator, tolerationSeconds, value, super.hashCode()); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (effect != null) { sb.append("effect:"); sb.append(effect + ","); } + if (key != null) { sb.append("key:"); sb.append(key + ","); } + if (operator != null) { sb.append("operator:"); sb.append(operator + ","); } + if (tolerationSeconds != null) { sb.append("tolerationSeconds:"); sb.append(tolerationSeconds + ","); } + if (value != null) { sb.append("value:"); sb.append(value); } + sb.append("}"); + return sb.toString(); + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3NetworkDeviceDataBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3NetworkDeviceDataBuilder.java new file mode 100644 index 0000000000..3210acb3f3 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3NetworkDeviceDataBuilder.java @@ -0,0 +1,33 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +public class V1alpha3NetworkDeviceDataBuilder extends V1alpha3NetworkDeviceDataFluent implements VisitableBuilder{ + public V1alpha3NetworkDeviceDataBuilder() { + this(new V1alpha3NetworkDeviceData()); + } + + public V1alpha3NetworkDeviceDataBuilder(V1alpha3NetworkDeviceDataFluent fluent) { + this(fluent, new V1alpha3NetworkDeviceData()); + } + + public V1alpha3NetworkDeviceDataBuilder(V1alpha3NetworkDeviceDataFluent fluent,V1alpha3NetworkDeviceData instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1alpha3NetworkDeviceDataBuilder(V1alpha3NetworkDeviceData instance) { + this.fluent = this; + this.copyInstance(instance); + } + V1alpha3NetworkDeviceDataFluent fluent; + + public V1alpha3NetworkDeviceData build() { + V1alpha3NetworkDeviceData buildable = new V1alpha3NetworkDeviceData(); + buildable.setHardwareAddress(fluent.getHardwareAddress()); + buildable.setInterfaceName(fluent.getInterfaceName()); + buildable.setIps(fluent.getIps()); + return buildable; + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3NetworkDeviceDataFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3NetworkDeviceDataFluent.java new file mode 100644 index 0000000000..ea208c58af --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3NetworkDeviceDataFluent.java @@ -0,0 +1,182 @@ +package io.kubernetes.client.openapi.models; + +import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; +import java.util.ArrayList; +import java.util.Collection; +import java.lang.Object; +import java.util.List; +import java.lang.String; +import java.util.function.Predicate; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1alpha3NetworkDeviceDataFluent> extends BaseFluent{ + public V1alpha3NetworkDeviceDataFluent() { + } + + public V1alpha3NetworkDeviceDataFluent(V1alpha3NetworkDeviceData instance) { + this.copyInstance(instance); + } + private String hardwareAddress; + private String interfaceName; + private List ips; + + protected void copyInstance(V1alpha3NetworkDeviceData instance) { + instance = (instance != null ? instance : new V1alpha3NetworkDeviceData()); + if (instance != null) { + this.withHardwareAddress(instance.getHardwareAddress()); + this.withInterfaceName(instance.getInterfaceName()); + this.withIps(instance.getIps()); + } + } + + public String getHardwareAddress() { + return this.hardwareAddress; + } + + public A withHardwareAddress(String hardwareAddress) { + this.hardwareAddress = hardwareAddress; + return (A) this; + } + + public boolean hasHardwareAddress() { + return this.hardwareAddress != null; + } + + public String getInterfaceName() { + return this.interfaceName; + } + + public A withInterfaceName(String interfaceName) { + this.interfaceName = interfaceName; + return (A) this; + } + + public boolean hasInterfaceName() { + return this.interfaceName != null; + } + + public A addToIps(int index,String item) { + if (this.ips == null) {this.ips = new ArrayList();} + this.ips.add(index, item); + return (A)this; + } + + public A setToIps(int index,String item) { + if (this.ips == null) {this.ips = new ArrayList();} + this.ips.set(index, item); return (A)this; + } + + public A addToIps(java.lang.String... items) { + if (this.ips == null) {this.ips = new ArrayList();} + for (String item : items) {this.ips.add(item);} return (A)this; + } + + public A addAllToIps(Collection items) { + if (this.ips == null) {this.ips = new ArrayList();} + for (String item : items) {this.ips.add(item);} return (A)this; + } + + public A removeFromIps(java.lang.String... items) { + if (this.ips == null) return (A)this; + for (String item : items) { this.ips.remove(item);} return (A)this; + } + + public A removeAllFromIps(Collection items) { + if (this.ips == null) return (A)this; + for (String item : items) { this.ips.remove(item);} return (A)this; + } + + public List getIps() { + return this.ips; + } + + public String getIp(int index) { + return this.ips.get(index); + } + + public String getFirstIp() { + return this.ips.get(0); + } + + public String getLastIp() { + return this.ips.get(ips.size() - 1); + } + + public String getMatchingIp(Predicate predicate) { + for (String item : ips) { + if (predicate.test(item)) { + return item; + } + } + return null; + } + + public boolean hasMatchingIp(Predicate predicate) { + for (String item : ips) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public A withIps(List ips) { + if (ips != null) { + this.ips = new ArrayList(); + for (String item : ips) { + this.addToIps(item); + } + } else { + this.ips = null; + } + return (A) this; + } + + public A withIps(java.lang.String... ips) { + if (this.ips != null) { + this.ips.clear(); + _visitables.remove("ips"); + } + if (ips != null) { + for (String item : ips) { + this.addToIps(item); + } + } + return (A) this; + } + + public boolean hasIps() { + return this.ips != null && !this.ips.isEmpty(); + } + + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + if (!super.equals(o)) return false; + V1alpha3NetworkDeviceDataFluent that = (V1alpha3NetworkDeviceDataFluent) o; + if (!java.util.Objects.equals(hardwareAddress, that.hardwareAddress)) return false; + if (!java.util.Objects.equals(interfaceName, that.interfaceName)) return false; + if (!java.util.Objects.equals(ips, that.ips)) return false; + return true; + } + + public int hashCode() { + return java.util.Objects.hash(hardwareAddress, interfaceName, ips, super.hashCode()); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (hardwareAddress != null) { sb.append("hardwareAddress:"); sb.append(hardwareAddress + ","); } + if (interfaceName != null) { sb.append("interfaceName:"); sb.append(interfaceName + ","); } + if (ips != null && !ips.isEmpty()) { sb.append("ips:"); sb.append(ips); } + sb.append("}"); + return sb.toString(); + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3OpaqueDeviceConfigurationBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3OpaqueDeviceConfigurationBuilder.java new file mode 100644 index 0000000000..545b2e22c8 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3OpaqueDeviceConfigurationBuilder.java @@ -0,0 +1,32 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +public class V1alpha3OpaqueDeviceConfigurationBuilder extends V1alpha3OpaqueDeviceConfigurationFluent implements VisitableBuilder{ + public V1alpha3OpaqueDeviceConfigurationBuilder() { + this(new V1alpha3OpaqueDeviceConfiguration()); + } + + public V1alpha3OpaqueDeviceConfigurationBuilder(V1alpha3OpaqueDeviceConfigurationFluent fluent) { + this(fluent, new V1alpha3OpaqueDeviceConfiguration()); + } + + public V1alpha3OpaqueDeviceConfigurationBuilder(V1alpha3OpaqueDeviceConfigurationFluent fluent,V1alpha3OpaqueDeviceConfiguration instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1alpha3OpaqueDeviceConfigurationBuilder(V1alpha3OpaqueDeviceConfiguration instance) { + this.fluent = this; + this.copyInstance(instance); + } + V1alpha3OpaqueDeviceConfigurationFluent fluent; + + public V1alpha3OpaqueDeviceConfiguration build() { + V1alpha3OpaqueDeviceConfiguration buildable = new V1alpha3OpaqueDeviceConfiguration(); + buildable.setDriver(fluent.getDriver()); + buildable.setParameters(fluent.getParameters()); + return buildable; + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3OpaqueDeviceConfigurationFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3OpaqueDeviceConfigurationFluent.java new file mode 100644 index 0000000000..53bc377f95 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3OpaqueDeviceConfigurationFluent.java @@ -0,0 +1,80 @@ +package io.kubernetes.client.openapi.models; + +import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Object; +import java.lang.String; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1alpha3OpaqueDeviceConfigurationFluent> extends BaseFluent{ + public V1alpha3OpaqueDeviceConfigurationFluent() { + } + + public V1alpha3OpaqueDeviceConfigurationFluent(V1alpha3OpaqueDeviceConfiguration instance) { + this.copyInstance(instance); + } + private String driver; + private Object parameters; + + protected void copyInstance(V1alpha3OpaqueDeviceConfiguration instance) { + instance = (instance != null ? instance : new V1alpha3OpaqueDeviceConfiguration()); + if (instance != null) { + this.withDriver(instance.getDriver()); + this.withParameters(instance.getParameters()); + } + } + + public String getDriver() { + return this.driver; + } + + public A withDriver(String driver) { + this.driver = driver; + return (A) this; + } + + public boolean hasDriver() { + return this.driver != null; + } + + public Object getParameters() { + return this.parameters; + } + + public A withParameters(Object parameters) { + this.parameters = parameters; + return (A) this; + } + + public boolean hasParameters() { + return this.parameters != null; + } + + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + if (!super.equals(o)) return false; + V1alpha3OpaqueDeviceConfigurationFluent that = (V1alpha3OpaqueDeviceConfigurationFluent) o; + if (!java.util.Objects.equals(driver, that.driver)) return false; + if (!java.util.Objects.equals(parameters, that.parameters)) return false; + return true; + } + + public int hashCode() { + return java.util.Objects.hash(driver, parameters, super.hashCode()); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (driver != null) { sb.append("driver:"); sb.append(driver + ","); } + if (parameters != null) { sb.append("parameters:"); sb.append(parameters); } + sb.append("}"); + return sb.toString(); + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3ResourceClaimBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3ResourceClaimBuilder.java new file mode 100644 index 0000000000..9ea9866f59 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3ResourceClaimBuilder.java @@ -0,0 +1,35 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +public class V1alpha3ResourceClaimBuilder extends V1alpha3ResourceClaimFluent implements VisitableBuilder{ + public V1alpha3ResourceClaimBuilder() { + this(new V1alpha3ResourceClaim()); + } + + public V1alpha3ResourceClaimBuilder(V1alpha3ResourceClaimFluent fluent) { + this(fluent, new V1alpha3ResourceClaim()); + } + + public V1alpha3ResourceClaimBuilder(V1alpha3ResourceClaimFluent fluent,V1alpha3ResourceClaim instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1alpha3ResourceClaimBuilder(V1alpha3ResourceClaim instance) { + this.fluent = this; + this.copyInstance(instance); + } + V1alpha3ResourceClaimFluent fluent; + + public V1alpha3ResourceClaim build() { + V1alpha3ResourceClaim buildable = new V1alpha3ResourceClaim(); + buildable.setApiVersion(fluent.getApiVersion()); + buildable.setKind(fluent.getKind()); + buildable.setMetadata(fluent.buildMetadata()); + buildable.setSpec(fluent.buildSpec()); + buildable.setStatus(fluent.buildStatus()); + return buildable; + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3ResourceClaimConsumerReferenceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3ResourceClaimConsumerReferenceBuilder.java new file mode 100644 index 0000000000..7a954fc9d1 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3ResourceClaimConsumerReferenceBuilder.java @@ -0,0 +1,34 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +public class V1alpha3ResourceClaimConsumerReferenceBuilder extends V1alpha3ResourceClaimConsumerReferenceFluent implements VisitableBuilder{ + public V1alpha3ResourceClaimConsumerReferenceBuilder() { + this(new V1alpha3ResourceClaimConsumerReference()); + } + + public V1alpha3ResourceClaimConsumerReferenceBuilder(V1alpha3ResourceClaimConsumerReferenceFluent fluent) { + this(fluent, new V1alpha3ResourceClaimConsumerReference()); + } + + public V1alpha3ResourceClaimConsumerReferenceBuilder(V1alpha3ResourceClaimConsumerReferenceFluent fluent,V1alpha3ResourceClaimConsumerReference instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1alpha3ResourceClaimConsumerReferenceBuilder(V1alpha3ResourceClaimConsumerReference instance) { + this.fluent = this; + this.copyInstance(instance); + } + V1alpha3ResourceClaimConsumerReferenceFluent fluent; + + public V1alpha3ResourceClaimConsumerReference build() { + V1alpha3ResourceClaimConsumerReference buildable = new V1alpha3ResourceClaimConsumerReference(); + buildable.setApiGroup(fluent.getApiGroup()); + buildable.setName(fluent.getName()); + buildable.setResource(fluent.getResource()); + buildable.setUid(fluent.getUid()); + return buildable; + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3ResourceClaimConsumerReferenceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3ResourceClaimConsumerReferenceFluent.java new file mode 100644 index 0000000000..81d08fd4aa --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3ResourceClaimConsumerReferenceFluent.java @@ -0,0 +1,114 @@ +package io.kubernetes.client.openapi.models; + +import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Object; +import java.lang.String; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1alpha3ResourceClaimConsumerReferenceFluent> extends BaseFluent{ + public V1alpha3ResourceClaimConsumerReferenceFluent() { + } + + public V1alpha3ResourceClaimConsumerReferenceFluent(V1alpha3ResourceClaimConsumerReference instance) { + this.copyInstance(instance); + } + private String apiGroup; + private String name; + private String resource; + private String uid; + + protected void copyInstance(V1alpha3ResourceClaimConsumerReference instance) { + instance = (instance != null ? instance : new V1alpha3ResourceClaimConsumerReference()); + if (instance != null) { + this.withApiGroup(instance.getApiGroup()); + this.withName(instance.getName()); + this.withResource(instance.getResource()); + this.withUid(instance.getUid()); + } + } + + public String getApiGroup() { + return this.apiGroup; + } + + public A withApiGroup(String apiGroup) { + this.apiGroup = apiGroup; + return (A) this; + } + + public boolean hasApiGroup() { + return this.apiGroup != null; + } + + public String getName() { + return this.name; + } + + public A withName(String name) { + this.name = name; + return (A) this; + } + + public boolean hasName() { + return this.name != null; + } + + public String getResource() { + return this.resource; + } + + public A withResource(String resource) { + this.resource = resource; + return (A) this; + } + + public boolean hasResource() { + return this.resource != null; + } + + public String getUid() { + return this.uid; + } + + public A withUid(String uid) { + this.uid = uid; + return (A) this; + } + + public boolean hasUid() { + return this.uid != null; + } + + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + if (!super.equals(o)) return false; + V1alpha3ResourceClaimConsumerReferenceFluent that = (V1alpha3ResourceClaimConsumerReferenceFluent) o; + if (!java.util.Objects.equals(apiGroup, that.apiGroup)) return false; + if (!java.util.Objects.equals(name, that.name)) return false; + if (!java.util.Objects.equals(resource, that.resource)) return false; + if (!java.util.Objects.equals(uid, that.uid)) return false; + return true; + } + + public int hashCode() { + return java.util.Objects.hash(apiGroup, name, resource, uid, super.hashCode()); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (apiGroup != null) { sb.append("apiGroup:"); sb.append(apiGroup + ","); } + if (name != null) { sb.append("name:"); sb.append(name + ","); } + if (resource != null) { sb.append("resource:"); sb.append(resource + ","); } + if (uid != null) { sb.append("uid:"); sb.append(uid); } + sb.append("}"); + return sb.toString(); + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3ResourceClaimFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3ResourceClaimFluent.java new file mode 100644 index 0000000000..e361c3a0c2 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3ResourceClaimFluent.java @@ -0,0 +1,260 @@ +package io.kubernetes.client.openapi.models; + +import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.Nested; +import java.lang.String; +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Object; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1alpha3ResourceClaimFluent> extends BaseFluent{ + public V1alpha3ResourceClaimFluent() { + } + + public V1alpha3ResourceClaimFluent(V1alpha3ResourceClaim instance) { + this.copyInstance(instance); + } + private String apiVersion; + private String kind; + private V1ObjectMetaBuilder metadata; + private V1alpha3ResourceClaimSpecBuilder spec; + private V1alpha3ResourceClaimStatusBuilder status; + + protected void copyInstance(V1alpha3ResourceClaim instance) { + instance = (instance != null ? instance : new V1alpha3ResourceClaim()); + if (instance != null) { + this.withApiVersion(instance.getApiVersion()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); + this.withSpec(instance.getSpec()); + this.withStatus(instance.getStatus()); + } + } + + public String getApiVersion() { + return this.apiVersion; + } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + + public boolean hasApiVersion() { + return this.apiVersion != null; + } + + public String getKind() { + return this.kind; + } + + public A withKind(String kind) { + this.kind = kind; + return (A) this; + } + + public boolean hasKind() { + return this.kind != null; + } + + public V1ObjectMeta buildMetadata() { + return this.metadata != null ? this.metadata.build() : null; + } + + public A withMetadata(V1ObjectMeta metadata) { + this._visitables.remove("metadata"); + if (metadata != null) { + this.metadata = new V1ObjectMetaBuilder(metadata); + this._visitables.get("metadata").add(this.metadata); + } else { + this.metadata = null; + this._visitables.get("metadata").remove(this.metadata); + } + return (A) this; + } + + public boolean hasMetadata() { + return this.metadata != null; + } + + public MetadataNested withNewMetadata() { + return new MetadataNested(null); + } + + public MetadataNested withNewMetadataLike(V1ObjectMeta item) { + return new MetadataNested(item); + } + + public MetadataNested editMetadata() { + return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(null)); + } + + public MetadataNested editOrNewMetadata() { + return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(new V1ObjectMetaBuilder().build())); + } + + public MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { + return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(item)); + } + + public V1alpha3ResourceClaimSpec buildSpec() { + return this.spec != null ? this.spec.build() : null; + } + + public A withSpec(V1alpha3ResourceClaimSpec spec) { + this._visitables.remove("spec"); + if (spec != null) { + this.spec = new V1alpha3ResourceClaimSpecBuilder(spec); + this._visitables.get("spec").add(this.spec); + } else { + this.spec = null; + this._visitables.get("spec").remove(this.spec); + } + return (A) this; + } + + public boolean hasSpec() { + return this.spec != null; + } + + public SpecNested withNewSpec() { + return new SpecNested(null); + } + + public SpecNested withNewSpecLike(V1alpha3ResourceClaimSpec item) { + return new SpecNested(item); + } + + public SpecNested editSpec() { + return withNewSpecLike(java.util.Optional.ofNullable(buildSpec()).orElse(null)); + } + + public SpecNested editOrNewSpec() { + return withNewSpecLike(java.util.Optional.ofNullable(buildSpec()).orElse(new V1alpha3ResourceClaimSpecBuilder().build())); + } + + public SpecNested editOrNewSpecLike(V1alpha3ResourceClaimSpec item) { + return withNewSpecLike(java.util.Optional.ofNullable(buildSpec()).orElse(item)); + } + + public V1alpha3ResourceClaimStatus buildStatus() { + return this.status != null ? this.status.build() : null; + } + + public A withStatus(V1alpha3ResourceClaimStatus status) { + this._visitables.remove("status"); + if (status != null) { + this.status = new V1alpha3ResourceClaimStatusBuilder(status); + this._visitables.get("status").add(this.status); + } else { + this.status = null; + this._visitables.get("status").remove(this.status); + } + return (A) this; + } + + public boolean hasStatus() { + return this.status != null; + } + + public StatusNested withNewStatus() { + return new StatusNested(null); + } + + public StatusNested withNewStatusLike(V1alpha3ResourceClaimStatus item) { + return new StatusNested(item); + } + + public StatusNested editStatus() { + return withNewStatusLike(java.util.Optional.ofNullable(buildStatus()).orElse(null)); + } + + public StatusNested editOrNewStatus() { + return withNewStatusLike(java.util.Optional.ofNullable(buildStatus()).orElse(new V1alpha3ResourceClaimStatusBuilder().build())); + } + + public StatusNested editOrNewStatusLike(V1alpha3ResourceClaimStatus item) { + return withNewStatusLike(java.util.Optional.ofNullable(buildStatus()).orElse(item)); + } + + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + if (!super.equals(o)) return false; + V1alpha3ResourceClaimFluent that = (V1alpha3ResourceClaimFluent) o; + if (!java.util.Objects.equals(apiVersion, that.apiVersion)) return false; + if (!java.util.Objects.equals(kind, that.kind)) return false; + if (!java.util.Objects.equals(metadata, that.metadata)) return false; + if (!java.util.Objects.equals(spec, that.spec)) return false; + if (!java.util.Objects.equals(status, that.status)) return false; + return true; + } + + public int hashCode() { + return java.util.Objects.hash(apiVersion, kind, metadata, spec, status, super.hashCode()); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (apiVersion != null) { sb.append("apiVersion:"); sb.append(apiVersion + ","); } + if (kind != null) { sb.append("kind:"); sb.append(kind + ","); } + if (metadata != null) { sb.append("metadata:"); sb.append(metadata + ","); } + if (spec != null) { sb.append("spec:"); sb.append(spec + ","); } + if (status != null) { sb.append("status:"); sb.append(status); } + sb.append("}"); + return sb.toString(); + } + public class MetadataNested extends V1ObjectMetaFluent> implements Nested{ + MetadataNested(V1ObjectMeta item) { + this.builder = new V1ObjectMetaBuilder(this, item); + } + V1ObjectMetaBuilder builder; + + public N and() { + return (N) V1alpha3ResourceClaimFluent.this.withMetadata(builder.build()); + } + + public N endMetadata() { + return and(); + } + + + } + public class SpecNested extends V1alpha3ResourceClaimSpecFluent> implements Nested{ + SpecNested(V1alpha3ResourceClaimSpec item) { + this.builder = new V1alpha3ResourceClaimSpecBuilder(this, item); + } + V1alpha3ResourceClaimSpecBuilder builder; + + public N and() { + return (N) V1alpha3ResourceClaimFluent.this.withSpec(builder.build()); + } + + public N endSpec() { + return and(); + } + + + } + public class StatusNested extends V1alpha3ResourceClaimStatusFluent> implements Nested{ + StatusNested(V1alpha3ResourceClaimStatus item) { + this.builder = new V1alpha3ResourceClaimStatusBuilder(this, item); + } + V1alpha3ResourceClaimStatusBuilder builder; + + public N and() { + return (N) V1alpha3ResourceClaimFluent.this.withStatus(builder.build()); + } + + public N endStatus() { + return and(); + } + + + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3ResourceClaimListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3ResourceClaimListBuilder.java new file mode 100644 index 0000000000..699d4e4ccc --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3ResourceClaimListBuilder.java @@ -0,0 +1,34 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +public class V1alpha3ResourceClaimListBuilder extends V1alpha3ResourceClaimListFluent implements VisitableBuilder{ + public V1alpha3ResourceClaimListBuilder() { + this(new V1alpha3ResourceClaimList()); + } + + public V1alpha3ResourceClaimListBuilder(V1alpha3ResourceClaimListFluent fluent) { + this(fluent, new V1alpha3ResourceClaimList()); + } + + public V1alpha3ResourceClaimListBuilder(V1alpha3ResourceClaimListFluent fluent,V1alpha3ResourceClaimList instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1alpha3ResourceClaimListBuilder(V1alpha3ResourceClaimList instance) { + this.fluent = this; + this.copyInstance(instance); + } + V1alpha3ResourceClaimListFluent fluent; + + public V1alpha3ResourceClaimList build() { + V1alpha3ResourceClaimList buildable = new V1alpha3ResourceClaimList(); + buildable.setApiVersion(fluent.getApiVersion()); + buildable.setItems(fluent.buildItems()); + buildable.setKind(fluent.getKind()); + buildable.setMetadata(fluent.buildMetadata()); + return buildable; + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3ResourceClaimListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3ResourceClaimListFluent.java new file mode 100644 index 0000000000..b75f81a97f --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3ResourceClaimListFluent.java @@ -0,0 +1,331 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.Nested; +import java.util.ArrayList; +import java.lang.String; +import java.util.function.Predicate; +import io.kubernetes.client.fluent.BaseFluent; +import java.util.Iterator; +import java.util.Collection; +import java.lang.Object; +import java.util.List; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1alpha3ResourceClaimListFluent> extends BaseFluent{ + public V1alpha3ResourceClaimListFluent() { + } + + public V1alpha3ResourceClaimListFluent(V1alpha3ResourceClaimList instance) { + this.copyInstance(instance); + } + private String apiVersion; + private ArrayList items; + private String kind; + private V1ListMetaBuilder metadata; + + protected void copyInstance(V1alpha3ResourceClaimList instance) { + instance = (instance != null ? instance : new V1alpha3ResourceClaimList()); + if (instance != null) { + this.withApiVersion(instance.getApiVersion()); + this.withItems(instance.getItems()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); + } + } + + public String getApiVersion() { + return this.apiVersion; + } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + + public boolean hasApiVersion() { + return this.apiVersion != null; + } + + public A addToItems(int index,V1alpha3ResourceClaim item) { + if (this.items == null) {this.items = new ArrayList();} + V1alpha3ResourceClaimBuilder builder = new V1alpha3ResourceClaimBuilder(item); + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.add(index, builder); + } + return (A)this; + } + + public A setToItems(int index,V1alpha3ResourceClaim item) { + if (this.items == null) {this.items = new ArrayList();} + V1alpha3ResourceClaimBuilder builder = new V1alpha3ResourceClaimBuilder(item); + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.set(index, builder); + } + return (A)this; + } + + public A addToItems(io.kubernetes.client.openapi.models.V1alpha3ResourceClaim... items) { + if (this.items == null) {this.items = new ArrayList();} + for (V1alpha3ResourceClaim item : items) {V1alpha3ResourceClaimBuilder builder = new V1alpha3ResourceClaimBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; + } + + public A addAllToItems(Collection items) { + if (this.items == null) {this.items = new ArrayList();} + for (V1alpha3ResourceClaim item : items) {V1alpha3ResourceClaimBuilder builder = new V1alpha3ResourceClaimBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; + } + + public A removeFromItems(io.kubernetes.client.openapi.models.V1alpha3ResourceClaim... items) { + if (this.items == null) return (A)this; + for (V1alpha3ResourceClaim item : items) {V1alpha3ResourceClaimBuilder builder = new V1alpha3ResourceClaimBuilder(item);_visitables.get("items").remove(builder); this.items.remove(builder);} return (A)this; + } + + public A removeAllFromItems(Collection items) { + if (this.items == null) return (A)this; + for (V1alpha3ResourceClaim item : items) {V1alpha3ResourceClaimBuilder builder = new V1alpha3ResourceClaimBuilder(item);_visitables.get("items").remove(builder); this.items.remove(builder);} return (A)this; + } + + public A removeMatchingFromItems(Predicate predicate) { + if (items == null) return (A) this; + final Iterator each = items.iterator(); + final List visitables = _visitables.get("items"); + while (each.hasNext()) { + V1alpha3ResourceClaimBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A)this; + } + + public List buildItems() { + return this.items != null ? build(items) : null; + } + + public V1alpha3ResourceClaim buildItem(int index) { + return this.items.get(index).build(); + } + + public V1alpha3ResourceClaim buildFirstItem() { + return this.items.get(0).build(); + } + + public V1alpha3ResourceClaim buildLastItem() { + return this.items.get(items.size() - 1).build(); + } + + public V1alpha3ResourceClaim buildMatchingItem(Predicate predicate) { + for (V1alpha3ResourceClaimBuilder item : items) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; + } + + public boolean hasMatchingItem(Predicate predicate) { + for (V1alpha3ResourceClaimBuilder item : items) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public A withItems(List items) { + if (this.items != null) { + this._visitables.get("items").clear(); + } + if (items != null) { + this.items = new ArrayList(); + for (V1alpha3ResourceClaim item : items) { + this.addToItems(item); + } + } else { + this.items = null; + } + return (A) this; + } + + public A withItems(io.kubernetes.client.openapi.models.V1alpha3ResourceClaim... items) { + if (this.items != null) { + this.items.clear(); + _visitables.remove("items"); + } + if (items != null) { + for (V1alpha3ResourceClaim item : items) { + this.addToItems(item); + } + } + return (A) this; + } + + public boolean hasItems() { + return this.items != null && !this.items.isEmpty(); + } + + public ItemsNested addNewItem() { + return new ItemsNested(-1, null); + } + + public ItemsNested addNewItemLike(V1alpha3ResourceClaim item) { + return new ItemsNested(-1, item); + } + + public ItemsNested setNewItemLike(int index,V1alpha3ResourceClaim item) { + return new ItemsNested(index, item); + } + + public ItemsNested editItem(int index) { + if (items.size() <= index) throw new RuntimeException("Can't edit items. Index exceeds size."); + return setNewItemLike(index, buildItem(index)); + } + + public ItemsNested editFirstItem() { + if (items.size() == 0) throw new RuntimeException("Can't edit first items. The list is empty."); + return setNewItemLike(0, buildItem(0)); + } + + public ItemsNested editLastItem() { + int index = items.size() - 1; + if (index < 0) throw new RuntimeException("Can't edit last items. The list is empty."); + return setNewItemLike(index, buildItem(index)); + } + + public ItemsNested editMatchingItem(Predicate predicate) { + int index = -1; + for (int i=0;i withNewMetadata() { + return new MetadataNested(null); + } + + public MetadataNested withNewMetadataLike(V1ListMeta item) { + return new MetadataNested(item); + } + + public MetadataNested editMetadata() { + return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(null)); + } + + public MetadataNested editOrNewMetadata() { + return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(new V1ListMetaBuilder().build())); + } + + public MetadataNested editOrNewMetadataLike(V1ListMeta item) { + return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(item)); + } + + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + if (!super.equals(o)) return false; + V1alpha3ResourceClaimListFluent that = (V1alpha3ResourceClaimListFluent) o; + if (!java.util.Objects.equals(apiVersion, that.apiVersion)) return false; + if (!java.util.Objects.equals(items, that.items)) return false; + if (!java.util.Objects.equals(kind, that.kind)) return false; + if (!java.util.Objects.equals(metadata, that.metadata)) return false; + return true; + } + + public int hashCode() { + return java.util.Objects.hash(apiVersion, items, kind, metadata, super.hashCode()); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (apiVersion != null) { sb.append("apiVersion:"); sb.append(apiVersion + ","); } + if (items != null && !items.isEmpty()) { sb.append("items:"); sb.append(items + ","); } + if (kind != null) { sb.append("kind:"); sb.append(kind + ","); } + if (metadata != null) { sb.append("metadata:"); sb.append(metadata); } + sb.append("}"); + return sb.toString(); + } + public class ItemsNested extends V1alpha3ResourceClaimFluent> implements Nested{ + ItemsNested(int index,V1alpha3ResourceClaim item) { + this.index = index; + this.builder = new V1alpha3ResourceClaimBuilder(this, item); + } + V1alpha3ResourceClaimBuilder builder; + int index; + + public N and() { + return (N) V1alpha3ResourceClaimListFluent.this.setToItems(index,builder.build()); + } + + public N endItem() { + return and(); + } + + + } + public class MetadataNested extends V1ListMetaFluent> implements Nested{ + MetadataNested(V1ListMeta item) { + this.builder = new V1ListMetaBuilder(this, item); + } + V1ListMetaBuilder builder; + + public N and() { + return (N) V1alpha3ResourceClaimListFluent.this.withMetadata(builder.build()); + } + + public N endMetadata() { + return and(); + } + + + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3ResourceClaimSpecBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3ResourceClaimSpecBuilder.java new file mode 100644 index 0000000000..5360631672 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3ResourceClaimSpecBuilder.java @@ -0,0 +1,31 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +public class V1alpha3ResourceClaimSpecBuilder extends V1alpha3ResourceClaimSpecFluent implements VisitableBuilder{ + public V1alpha3ResourceClaimSpecBuilder() { + this(new V1alpha3ResourceClaimSpec()); + } + + public V1alpha3ResourceClaimSpecBuilder(V1alpha3ResourceClaimSpecFluent fluent) { + this(fluent, new V1alpha3ResourceClaimSpec()); + } + + public V1alpha3ResourceClaimSpecBuilder(V1alpha3ResourceClaimSpecFluent fluent,V1alpha3ResourceClaimSpec instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1alpha3ResourceClaimSpecBuilder(V1alpha3ResourceClaimSpec instance) { + this.fluent = this; + this.copyInstance(instance); + } + V1alpha3ResourceClaimSpecFluent fluent; + + public V1alpha3ResourceClaimSpec build() { + V1alpha3ResourceClaimSpec buildable = new V1alpha3ResourceClaimSpec(); + buildable.setDevices(fluent.buildDevices()); + return buildable; + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3ResourceClaimSpecFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3ResourceClaimSpecFluent.java new file mode 100644 index 0000000000..984b43a114 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3ResourceClaimSpecFluent.java @@ -0,0 +1,106 @@ +package io.kubernetes.client.openapi.models; + +import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Object; +import java.lang.String; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1alpha3ResourceClaimSpecFluent> extends BaseFluent{ + public V1alpha3ResourceClaimSpecFluent() { + } + + public V1alpha3ResourceClaimSpecFluent(V1alpha3ResourceClaimSpec instance) { + this.copyInstance(instance); + } + private V1alpha3DeviceClaimBuilder devices; + + protected void copyInstance(V1alpha3ResourceClaimSpec instance) { + instance = (instance != null ? instance : new V1alpha3ResourceClaimSpec()); + if (instance != null) { + this.withDevices(instance.getDevices()); + } + } + + public V1alpha3DeviceClaim buildDevices() { + return this.devices != null ? this.devices.build() : null; + } + + public A withDevices(V1alpha3DeviceClaim devices) { + this._visitables.remove("devices"); + if (devices != null) { + this.devices = new V1alpha3DeviceClaimBuilder(devices); + this._visitables.get("devices").add(this.devices); + } else { + this.devices = null; + this._visitables.get("devices").remove(this.devices); + } + return (A) this; + } + + public boolean hasDevices() { + return this.devices != null; + } + + public DevicesNested withNewDevices() { + return new DevicesNested(null); + } + + public DevicesNested withNewDevicesLike(V1alpha3DeviceClaim item) { + return new DevicesNested(item); + } + + public DevicesNested editDevices() { + return withNewDevicesLike(java.util.Optional.ofNullable(buildDevices()).orElse(null)); + } + + public DevicesNested editOrNewDevices() { + return withNewDevicesLike(java.util.Optional.ofNullable(buildDevices()).orElse(new V1alpha3DeviceClaimBuilder().build())); + } + + public DevicesNested editOrNewDevicesLike(V1alpha3DeviceClaim item) { + return withNewDevicesLike(java.util.Optional.ofNullable(buildDevices()).orElse(item)); + } + + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + if (!super.equals(o)) return false; + V1alpha3ResourceClaimSpecFluent that = (V1alpha3ResourceClaimSpecFluent) o; + if (!java.util.Objects.equals(devices, that.devices)) return false; + return true; + } + + public int hashCode() { + return java.util.Objects.hash(devices, super.hashCode()); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (devices != null) { sb.append("devices:"); sb.append(devices); } + sb.append("}"); + return sb.toString(); + } + public class DevicesNested extends V1alpha3DeviceClaimFluent> implements Nested{ + DevicesNested(V1alpha3DeviceClaim item) { + this.builder = new V1alpha3DeviceClaimBuilder(this, item); + } + V1alpha3DeviceClaimBuilder builder; + + public N and() { + return (N) V1alpha3ResourceClaimSpecFluent.this.withDevices(builder.build()); + } + + public N endDevices() { + return and(); + } + + + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3ResourceClaimStatusBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3ResourceClaimStatusBuilder.java new file mode 100644 index 0000000000..22be517055 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3ResourceClaimStatusBuilder.java @@ -0,0 +1,33 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +public class V1alpha3ResourceClaimStatusBuilder extends V1alpha3ResourceClaimStatusFluent implements VisitableBuilder{ + public V1alpha3ResourceClaimStatusBuilder() { + this(new V1alpha3ResourceClaimStatus()); + } + + public V1alpha3ResourceClaimStatusBuilder(V1alpha3ResourceClaimStatusFluent fluent) { + this(fluent, new V1alpha3ResourceClaimStatus()); + } + + public V1alpha3ResourceClaimStatusBuilder(V1alpha3ResourceClaimStatusFluent fluent,V1alpha3ResourceClaimStatus instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1alpha3ResourceClaimStatusBuilder(V1alpha3ResourceClaimStatus instance) { + this.fluent = this; + this.copyInstance(instance); + } + V1alpha3ResourceClaimStatusFluent fluent; + + public V1alpha3ResourceClaimStatus build() { + V1alpha3ResourceClaimStatus buildable = new V1alpha3ResourceClaimStatus(); + buildable.setAllocation(fluent.buildAllocation()); + buildable.setDevices(fluent.buildDevices()); + buildable.setReservedFor(fluent.buildReservedFor()); + return buildable; + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3ResourceClaimStatusFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3ResourceClaimStatusFluent.java new file mode 100644 index 0000000000..efa2caae5a --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3ResourceClaimStatusFluent.java @@ -0,0 +1,482 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.Nested; +import java.util.ArrayList; +import java.lang.String; +import java.util.function.Predicate; +import io.kubernetes.client.fluent.BaseFluent; +import java.util.Iterator; +import java.util.List; +import java.util.Collection; +import java.lang.Object; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1alpha3ResourceClaimStatusFluent> extends BaseFluent{ + public V1alpha3ResourceClaimStatusFluent() { + } + + public V1alpha3ResourceClaimStatusFluent(V1alpha3ResourceClaimStatus instance) { + this.copyInstance(instance); + } + private V1alpha3AllocationResultBuilder allocation; + private ArrayList devices; + private ArrayList reservedFor; + + protected void copyInstance(V1alpha3ResourceClaimStatus instance) { + instance = (instance != null ? instance : new V1alpha3ResourceClaimStatus()); + if (instance != null) { + this.withAllocation(instance.getAllocation()); + this.withDevices(instance.getDevices()); + this.withReservedFor(instance.getReservedFor()); + } + } + + public V1alpha3AllocationResult buildAllocation() { + return this.allocation != null ? this.allocation.build() : null; + } + + public A withAllocation(V1alpha3AllocationResult allocation) { + this._visitables.remove("allocation"); + if (allocation != null) { + this.allocation = new V1alpha3AllocationResultBuilder(allocation); + this._visitables.get("allocation").add(this.allocation); + } else { + this.allocation = null; + this._visitables.get("allocation").remove(this.allocation); + } + return (A) this; + } + + public boolean hasAllocation() { + return this.allocation != null; + } + + public AllocationNested withNewAllocation() { + return new AllocationNested(null); + } + + public AllocationNested withNewAllocationLike(V1alpha3AllocationResult item) { + return new AllocationNested(item); + } + + public AllocationNested editAllocation() { + return withNewAllocationLike(java.util.Optional.ofNullable(buildAllocation()).orElse(null)); + } + + public AllocationNested editOrNewAllocation() { + return withNewAllocationLike(java.util.Optional.ofNullable(buildAllocation()).orElse(new V1alpha3AllocationResultBuilder().build())); + } + + public AllocationNested editOrNewAllocationLike(V1alpha3AllocationResult item) { + return withNewAllocationLike(java.util.Optional.ofNullable(buildAllocation()).orElse(item)); + } + + public A addToDevices(int index,V1alpha3AllocatedDeviceStatus item) { + if (this.devices == null) {this.devices = new ArrayList();} + V1alpha3AllocatedDeviceStatusBuilder builder = new V1alpha3AllocatedDeviceStatusBuilder(item); + if (index < 0 || index >= devices.size()) { + _visitables.get("devices").add(builder); + devices.add(builder); + } else { + _visitables.get("devices").add(builder); + devices.add(index, builder); + } + return (A)this; + } + + public A setToDevices(int index,V1alpha3AllocatedDeviceStatus item) { + if (this.devices == null) {this.devices = new ArrayList();} + V1alpha3AllocatedDeviceStatusBuilder builder = new V1alpha3AllocatedDeviceStatusBuilder(item); + if (index < 0 || index >= devices.size()) { + _visitables.get("devices").add(builder); + devices.add(builder); + } else { + _visitables.get("devices").add(builder); + devices.set(index, builder); + } + return (A)this; + } + + public A addToDevices(io.kubernetes.client.openapi.models.V1alpha3AllocatedDeviceStatus... items) { + if (this.devices == null) {this.devices = new ArrayList();} + for (V1alpha3AllocatedDeviceStatus item : items) {V1alpha3AllocatedDeviceStatusBuilder builder = new V1alpha3AllocatedDeviceStatusBuilder(item);_visitables.get("devices").add(builder);this.devices.add(builder);} return (A)this; + } + + public A addAllToDevices(Collection items) { + if (this.devices == null) {this.devices = new ArrayList();} + for (V1alpha3AllocatedDeviceStatus item : items) {V1alpha3AllocatedDeviceStatusBuilder builder = new V1alpha3AllocatedDeviceStatusBuilder(item);_visitables.get("devices").add(builder);this.devices.add(builder);} return (A)this; + } + + public A removeFromDevices(io.kubernetes.client.openapi.models.V1alpha3AllocatedDeviceStatus... items) { + if (this.devices == null) return (A)this; + for (V1alpha3AllocatedDeviceStatus item : items) {V1alpha3AllocatedDeviceStatusBuilder builder = new V1alpha3AllocatedDeviceStatusBuilder(item);_visitables.get("devices").remove(builder); this.devices.remove(builder);} return (A)this; + } + + public A removeAllFromDevices(Collection items) { + if (this.devices == null) return (A)this; + for (V1alpha3AllocatedDeviceStatus item : items) {V1alpha3AllocatedDeviceStatusBuilder builder = new V1alpha3AllocatedDeviceStatusBuilder(item);_visitables.get("devices").remove(builder); this.devices.remove(builder);} return (A)this; + } + + public A removeMatchingFromDevices(Predicate predicate) { + if (devices == null) return (A) this; + final Iterator each = devices.iterator(); + final List visitables = _visitables.get("devices"); + while (each.hasNext()) { + V1alpha3AllocatedDeviceStatusBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A)this; + } + + public List buildDevices() { + return this.devices != null ? build(devices) : null; + } + + public V1alpha3AllocatedDeviceStatus buildDevice(int index) { + return this.devices.get(index).build(); + } + + public V1alpha3AllocatedDeviceStatus buildFirstDevice() { + return this.devices.get(0).build(); + } + + public V1alpha3AllocatedDeviceStatus buildLastDevice() { + return this.devices.get(devices.size() - 1).build(); + } + + public V1alpha3AllocatedDeviceStatus buildMatchingDevice(Predicate predicate) { + for (V1alpha3AllocatedDeviceStatusBuilder item : devices) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; + } + + public boolean hasMatchingDevice(Predicate predicate) { + for (V1alpha3AllocatedDeviceStatusBuilder item : devices) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public A withDevices(List devices) { + if (this.devices != null) { + this._visitables.get("devices").clear(); + } + if (devices != null) { + this.devices = new ArrayList(); + for (V1alpha3AllocatedDeviceStatus item : devices) { + this.addToDevices(item); + } + } else { + this.devices = null; + } + return (A) this; + } + + public A withDevices(io.kubernetes.client.openapi.models.V1alpha3AllocatedDeviceStatus... devices) { + if (this.devices != null) { + this.devices.clear(); + _visitables.remove("devices"); + } + if (devices != null) { + for (V1alpha3AllocatedDeviceStatus item : devices) { + this.addToDevices(item); + } + } + return (A) this; + } + + public boolean hasDevices() { + return this.devices != null && !this.devices.isEmpty(); + } + + public DevicesNested addNewDevice() { + return new DevicesNested(-1, null); + } + + public DevicesNested addNewDeviceLike(V1alpha3AllocatedDeviceStatus item) { + return new DevicesNested(-1, item); + } + + public DevicesNested setNewDeviceLike(int index,V1alpha3AllocatedDeviceStatus item) { + return new DevicesNested(index, item); + } + + public DevicesNested editDevice(int index) { + if (devices.size() <= index) throw new RuntimeException("Can't edit devices. Index exceeds size."); + return setNewDeviceLike(index, buildDevice(index)); + } + + public DevicesNested editFirstDevice() { + if (devices.size() == 0) throw new RuntimeException("Can't edit first devices. The list is empty."); + return setNewDeviceLike(0, buildDevice(0)); + } + + public DevicesNested editLastDevice() { + int index = devices.size() - 1; + if (index < 0) throw new RuntimeException("Can't edit last devices. The list is empty."); + return setNewDeviceLike(index, buildDevice(index)); + } + + public DevicesNested editMatchingDevice(Predicate predicate) { + int index = -1; + for (int i=0;i();} + V1alpha3ResourceClaimConsumerReferenceBuilder builder = new V1alpha3ResourceClaimConsumerReferenceBuilder(item); + if (index < 0 || index >= reservedFor.size()) { + _visitables.get("reservedFor").add(builder); + reservedFor.add(builder); + } else { + _visitables.get("reservedFor").add(builder); + reservedFor.add(index, builder); + } + return (A)this; + } + + public A setToReservedFor(int index,V1alpha3ResourceClaimConsumerReference item) { + if (this.reservedFor == null) {this.reservedFor = new ArrayList();} + V1alpha3ResourceClaimConsumerReferenceBuilder builder = new V1alpha3ResourceClaimConsumerReferenceBuilder(item); + if (index < 0 || index >= reservedFor.size()) { + _visitables.get("reservedFor").add(builder); + reservedFor.add(builder); + } else { + _visitables.get("reservedFor").add(builder); + reservedFor.set(index, builder); + } + return (A)this; + } + + public A addToReservedFor(io.kubernetes.client.openapi.models.V1alpha3ResourceClaimConsumerReference... items) { + if (this.reservedFor == null) {this.reservedFor = new ArrayList();} + for (V1alpha3ResourceClaimConsumerReference item : items) {V1alpha3ResourceClaimConsumerReferenceBuilder builder = new V1alpha3ResourceClaimConsumerReferenceBuilder(item);_visitables.get("reservedFor").add(builder);this.reservedFor.add(builder);} return (A)this; + } + + public A addAllToReservedFor(Collection items) { + if (this.reservedFor == null) {this.reservedFor = new ArrayList();} + for (V1alpha3ResourceClaimConsumerReference item : items) {V1alpha3ResourceClaimConsumerReferenceBuilder builder = new V1alpha3ResourceClaimConsumerReferenceBuilder(item);_visitables.get("reservedFor").add(builder);this.reservedFor.add(builder);} return (A)this; + } + + public A removeFromReservedFor(io.kubernetes.client.openapi.models.V1alpha3ResourceClaimConsumerReference... items) { + if (this.reservedFor == null) return (A)this; + for (V1alpha3ResourceClaimConsumerReference item : items) {V1alpha3ResourceClaimConsumerReferenceBuilder builder = new V1alpha3ResourceClaimConsumerReferenceBuilder(item);_visitables.get("reservedFor").remove(builder); this.reservedFor.remove(builder);} return (A)this; + } + + public A removeAllFromReservedFor(Collection items) { + if (this.reservedFor == null) return (A)this; + for (V1alpha3ResourceClaimConsumerReference item : items) {V1alpha3ResourceClaimConsumerReferenceBuilder builder = new V1alpha3ResourceClaimConsumerReferenceBuilder(item);_visitables.get("reservedFor").remove(builder); this.reservedFor.remove(builder);} return (A)this; + } + + public A removeMatchingFromReservedFor(Predicate predicate) { + if (reservedFor == null) return (A) this; + final Iterator each = reservedFor.iterator(); + final List visitables = _visitables.get("reservedFor"); + while (each.hasNext()) { + V1alpha3ResourceClaimConsumerReferenceBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A)this; + } + + public List buildReservedFor() { + return this.reservedFor != null ? build(reservedFor) : null; + } + + public V1alpha3ResourceClaimConsumerReference buildReservedFor(int index) { + return this.reservedFor.get(index).build(); + } + + public V1alpha3ResourceClaimConsumerReference buildFirstReservedFor() { + return this.reservedFor.get(0).build(); + } + + public V1alpha3ResourceClaimConsumerReference buildLastReservedFor() { + return this.reservedFor.get(reservedFor.size() - 1).build(); + } + + public V1alpha3ResourceClaimConsumerReference buildMatchingReservedFor(Predicate predicate) { + for (V1alpha3ResourceClaimConsumerReferenceBuilder item : reservedFor) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; + } + + public boolean hasMatchingReservedFor(Predicate predicate) { + for (V1alpha3ResourceClaimConsumerReferenceBuilder item : reservedFor) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public A withReservedFor(List reservedFor) { + if (this.reservedFor != null) { + this._visitables.get("reservedFor").clear(); + } + if (reservedFor != null) { + this.reservedFor = new ArrayList(); + for (V1alpha3ResourceClaimConsumerReference item : reservedFor) { + this.addToReservedFor(item); + } + } else { + this.reservedFor = null; + } + return (A) this; + } + + public A withReservedFor(io.kubernetes.client.openapi.models.V1alpha3ResourceClaimConsumerReference... reservedFor) { + if (this.reservedFor != null) { + this.reservedFor.clear(); + _visitables.remove("reservedFor"); + } + if (reservedFor != null) { + for (V1alpha3ResourceClaimConsumerReference item : reservedFor) { + this.addToReservedFor(item); + } + } + return (A) this; + } + + public boolean hasReservedFor() { + return this.reservedFor != null && !this.reservedFor.isEmpty(); + } + + public ReservedForNested addNewReservedFor() { + return new ReservedForNested(-1, null); + } + + public ReservedForNested addNewReservedForLike(V1alpha3ResourceClaimConsumerReference item) { + return new ReservedForNested(-1, item); + } + + public ReservedForNested setNewReservedForLike(int index,V1alpha3ResourceClaimConsumerReference item) { + return new ReservedForNested(index, item); + } + + public ReservedForNested editReservedFor(int index) { + if (reservedFor.size() <= index) throw new RuntimeException("Can't edit reservedFor. Index exceeds size."); + return setNewReservedForLike(index, buildReservedFor(index)); + } + + public ReservedForNested editFirstReservedFor() { + if (reservedFor.size() == 0) throw new RuntimeException("Can't edit first reservedFor. The list is empty."); + return setNewReservedForLike(0, buildReservedFor(0)); + } + + public ReservedForNested editLastReservedFor() { + int index = reservedFor.size() - 1; + if (index < 0) throw new RuntimeException("Can't edit last reservedFor. The list is empty."); + return setNewReservedForLike(index, buildReservedFor(index)); + } + + public ReservedForNested editMatchingReservedFor(Predicate predicate) { + int index = -1; + for (int i=0;i extends V1alpha3AllocationResultFluent> implements Nested{ + AllocationNested(V1alpha3AllocationResult item) { + this.builder = new V1alpha3AllocationResultBuilder(this, item); + } + V1alpha3AllocationResultBuilder builder; + + public N and() { + return (N) V1alpha3ResourceClaimStatusFluent.this.withAllocation(builder.build()); + } + + public N endAllocation() { + return and(); + } + + + } + public class DevicesNested extends V1alpha3AllocatedDeviceStatusFluent> implements Nested{ + DevicesNested(int index,V1alpha3AllocatedDeviceStatus item) { + this.index = index; + this.builder = new V1alpha3AllocatedDeviceStatusBuilder(this, item); + } + V1alpha3AllocatedDeviceStatusBuilder builder; + int index; + + public N and() { + return (N) V1alpha3ResourceClaimStatusFluent.this.setToDevices(index,builder.build()); + } + + public N endDevice() { + return and(); + } + + + } + public class ReservedForNested extends V1alpha3ResourceClaimConsumerReferenceFluent> implements Nested{ + ReservedForNested(int index,V1alpha3ResourceClaimConsumerReference item) { + this.index = index; + this.builder = new V1alpha3ResourceClaimConsumerReferenceBuilder(this, item); + } + V1alpha3ResourceClaimConsumerReferenceBuilder builder; + int index; + + public N and() { + return (N) V1alpha3ResourceClaimStatusFluent.this.setToReservedFor(index,builder.build()); + } + + public N endReservedFor() { + return and(); + } + + + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3ResourceClaimTemplateBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3ResourceClaimTemplateBuilder.java new file mode 100644 index 0000000000..a496a22528 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3ResourceClaimTemplateBuilder.java @@ -0,0 +1,34 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +public class V1alpha3ResourceClaimTemplateBuilder extends V1alpha3ResourceClaimTemplateFluent implements VisitableBuilder{ + public V1alpha3ResourceClaimTemplateBuilder() { + this(new V1alpha3ResourceClaimTemplate()); + } + + public V1alpha3ResourceClaimTemplateBuilder(V1alpha3ResourceClaimTemplateFluent fluent) { + this(fluent, new V1alpha3ResourceClaimTemplate()); + } + + public V1alpha3ResourceClaimTemplateBuilder(V1alpha3ResourceClaimTemplateFluent fluent,V1alpha3ResourceClaimTemplate instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1alpha3ResourceClaimTemplateBuilder(V1alpha3ResourceClaimTemplate instance) { + this.fluent = this; + this.copyInstance(instance); + } + V1alpha3ResourceClaimTemplateFluent fluent; + + public V1alpha3ResourceClaimTemplate build() { + V1alpha3ResourceClaimTemplate buildable = new V1alpha3ResourceClaimTemplate(); + buildable.setApiVersion(fluent.getApiVersion()); + buildable.setKind(fluent.getKind()); + buildable.setMetadata(fluent.buildMetadata()); + buildable.setSpec(fluent.buildSpec()); + return buildable; + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3ResourceClaimTemplateFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3ResourceClaimTemplateFluent.java new file mode 100644 index 0000000000..646eed8d09 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3ResourceClaimTemplateFluent.java @@ -0,0 +1,200 @@ +package io.kubernetes.client.openapi.models; + +import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.Nested; +import java.lang.String; +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Object; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1alpha3ResourceClaimTemplateFluent> extends BaseFluent{ + public V1alpha3ResourceClaimTemplateFluent() { + } + + public V1alpha3ResourceClaimTemplateFluent(V1alpha3ResourceClaimTemplate instance) { + this.copyInstance(instance); + } + private String apiVersion; + private String kind; + private V1ObjectMetaBuilder metadata; + private V1alpha3ResourceClaimTemplateSpecBuilder spec; + + protected void copyInstance(V1alpha3ResourceClaimTemplate instance) { + instance = (instance != null ? instance : new V1alpha3ResourceClaimTemplate()); + if (instance != null) { + this.withApiVersion(instance.getApiVersion()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); + this.withSpec(instance.getSpec()); + } + } + + public String getApiVersion() { + return this.apiVersion; + } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + + public boolean hasApiVersion() { + return this.apiVersion != null; + } + + public String getKind() { + return this.kind; + } + + public A withKind(String kind) { + this.kind = kind; + return (A) this; + } + + public boolean hasKind() { + return this.kind != null; + } + + public V1ObjectMeta buildMetadata() { + return this.metadata != null ? this.metadata.build() : null; + } + + public A withMetadata(V1ObjectMeta metadata) { + this._visitables.remove("metadata"); + if (metadata != null) { + this.metadata = new V1ObjectMetaBuilder(metadata); + this._visitables.get("metadata").add(this.metadata); + } else { + this.metadata = null; + this._visitables.get("metadata").remove(this.metadata); + } + return (A) this; + } + + public boolean hasMetadata() { + return this.metadata != null; + } + + public MetadataNested withNewMetadata() { + return new MetadataNested(null); + } + + public MetadataNested withNewMetadataLike(V1ObjectMeta item) { + return new MetadataNested(item); + } + + public MetadataNested editMetadata() { + return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(null)); + } + + public MetadataNested editOrNewMetadata() { + return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(new V1ObjectMetaBuilder().build())); + } + + public MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { + return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(item)); + } + + public V1alpha3ResourceClaimTemplateSpec buildSpec() { + return this.spec != null ? this.spec.build() : null; + } + + public A withSpec(V1alpha3ResourceClaimTemplateSpec spec) { + this._visitables.remove("spec"); + if (spec != null) { + this.spec = new V1alpha3ResourceClaimTemplateSpecBuilder(spec); + this._visitables.get("spec").add(this.spec); + } else { + this.spec = null; + this._visitables.get("spec").remove(this.spec); + } + return (A) this; + } + + public boolean hasSpec() { + return this.spec != null; + } + + public SpecNested withNewSpec() { + return new SpecNested(null); + } + + public SpecNested withNewSpecLike(V1alpha3ResourceClaimTemplateSpec item) { + return new SpecNested(item); + } + + public SpecNested editSpec() { + return withNewSpecLike(java.util.Optional.ofNullable(buildSpec()).orElse(null)); + } + + public SpecNested editOrNewSpec() { + return withNewSpecLike(java.util.Optional.ofNullable(buildSpec()).orElse(new V1alpha3ResourceClaimTemplateSpecBuilder().build())); + } + + public SpecNested editOrNewSpecLike(V1alpha3ResourceClaimTemplateSpec item) { + return withNewSpecLike(java.util.Optional.ofNullable(buildSpec()).orElse(item)); + } + + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + if (!super.equals(o)) return false; + V1alpha3ResourceClaimTemplateFluent that = (V1alpha3ResourceClaimTemplateFluent) o; + if (!java.util.Objects.equals(apiVersion, that.apiVersion)) return false; + if (!java.util.Objects.equals(kind, that.kind)) return false; + if (!java.util.Objects.equals(metadata, that.metadata)) return false; + if (!java.util.Objects.equals(spec, that.spec)) return false; + return true; + } + + public int hashCode() { + return java.util.Objects.hash(apiVersion, kind, metadata, spec, super.hashCode()); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (apiVersion != null) { sb.append("apiVersion:"); sb.append(apiVersion + ","); } + if (kind != null) { sb.append("kind:"); sb.append(kind + ","); } + if (metadata != null) { sb.append("metadata:"); sb.append(metadata + ","); } + if (spec != null) { sb.append("spec:"); sb.append(spec); } + sb.append("}"); + return sb.toString(); + } + public class MetadataNested extends V1ObjectMetaFluent> implements Nested{ + MetadataNested(V1ObjectMeta item) { + this.builder = new V1ObjectMetaBuilder(this, item); + } + V1ObjectMetaBuilder builder; + + public N and() { + return (N) V1alpha3ResourceClaimTemplateFluent.this.withMetadata(builder.build()); + } + + public N endMetadata() { + return and(); + } + + + } + public class SpecNested extends V1alpha3ResourceClaimTemplateSpecFluent> implements Nested{ + SpecNested(V1alpha3ResourceClaimTemplateSpec item) { + this.builder = new V1alpha3ResourceClaimTemplateSpecBuilder(this, item); + } + V1alpha3ResourceClaimTemplateSpecBuilder builder; + + public N and() { + return (N) V1alpha3ResourceClaimTemplateFluent.this.withSpec(builder.build()); + } + + public N endSpec() { + return and(); + } + + + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3ResourceClaimTemplateListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3ResourceClaimTemplateListBuilder.java new file mode 100644 index 0000000000..3192505254 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3ResourceClaimTemplateListBuilder.java @@ -0,0 +1,34 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +public class V1alpha3ResourceClaimTemplateListBuilder extends V1alpha3ResourceClaimTemplateListFluent implements VisitableBuilder{ + public V1alpha3ResourceClaimTemplateListBuilder() { + this(new V1alpha3ResourceClaimTemplateList()); + } + + public V1alpha3ResourceClaimTemplateListBuilder(V1alpha3ResourceClaimTemplateListFluent fluent) { + this(fluent, new V1alpha3ResourceClaimTemplateList()); + } + + public V1alpha3ResourceClaimTemplateListBuilder(V1alpha3ResourceClaimTemplateListFluent fluent,V1alpha3ResourceClaimTemplateList instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1alpha3ResourceClaimTemplateListBuilder(V1alpha3ResourceClaimTemplateList instance) { + this.fluent = this; + this.copyInstance(instance); + } + V1alpha3ResourceClaimTemplateListFluent fluent; + + public V1alpha3ResourceClaimTemplateList build() { + V1alpha3ResourceClaimTemplateList buildable = new V1alpha3ResourceClaimTemplateList(); + buildable.setApiVersion(fluent.getApiVersion()); + buildable.setItems(fluent.buildItems()); + buildable.setKind(fluent.getKind()); + buildable.setMetadata(fluent.buildMetadata()); + return buildable; + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3ResourceClaimTemplateListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3ResourceClaimTemplateListFluent.java new file mode 100644 index 0000000000..c7b6189ea2 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3ResourceClaimTemplateListFluent.java @@ -0,0 +1,331 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.Nested; +import java.util.ArrayList; +import java.lang.String; +import java.util.function.Predicate; +import io.kubernetes.client.fluent.BaseFluent; +import java.util.Iterator; +import java.util.Collection; +import java.lang.Object; +import java.util.List; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1alpha3ResourceClaimTemplateListFluent> extends BaseFluent{ + public V1alpha3ResourceClaimTemplateListFluent() { + } + + public V1alpha3ResourceClaimTemplateListFluent(V1alpha3ResourceClaimTemplateList instance) { + this.copyInstance(instance); + } + private String apiVersion; + private ArrayList items; + private String kind; + private V1ListMetaBuilder metadata; + + protected void copyInstance(V1alpha3ResourceClaimTemplateList instance) { + instance = (instance != null ? instance : new V1alpha3ResourceClaimTemplateList()); + if (instance != null) { + this.withApiVersion(instance.getApiVersion()); + this.withItems(instance.getItems()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); + } + } + + public String getApiVersion() { + return this.apiVersion; + } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + + public boolean hasApiVersion() { + return this.apiVersion != null; + } + + public A addToItems(int index,V1alpha3ResourceClaimTemplate item) { + if (this.items == null) {this.items = new ArrayList();} + V1alpha3ResourceClaimTemplateBuilder builder = new V1alpha3ResourceClaimTemplateBuilder(item); + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.add(index, builder); + } + return (A)this; + } + + public A setToItems(int index,V1alpha3ResourceClaimTemplate item) { + if (this.items == null) {this.items = new ArrayList();} + V1alpha3ResourceClaimTemplateBuilder builder = new V1alpha3ResourceClaimTemplateBuilder(item); + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.set(index, builder); + } + return (A)this; + } + + public A addToItems(io.kubernetes.client.openapi.models.V1alpha3ResourceClaimTemplate... items) { + if (this.items == null) {this.items = new ArrayList();} + for (V1alpha3ResourceClaimTemplate item : items) {V1alpha3ResourceClaimTemplateBuilder builder = new V1alpha3ResourceClaimTemplateBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; + } + + public A addAllToItems(Collection items) { + if (this.items == null) {this.items = new ArrayList();} + for (V1alpha3ResourceClaimTemplate item : items) {V1alpha3ResourceClaimTemplateBuilder builder = new V1alpha3ResourceClaimTemplateBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; + } + + public A removeFromItems(io.kubernetes.client.openapi.models.V1alpha3ResourceClaimTemplate... items) { + if (this.items == null) return (A)this; + for (V1alpha3ResourceClaimTemplate item : items) {V1alpha3ResourceClaimTemplateBuilder builder = new V1alpha3ResourceClaimTemplateBuilder(item);_visitables.get("items").remove(builder); this.items.remove(builder);} return (A)this; + } + + public A removeAllFromItems(Collection items) { + if (this.items == null) return (A)this; + for (V1alpha3ResourceClaimTemplate item : items) {V1alpha3ResourceClaimTemplateBuilder builder = new V1alpha3ResourceClaimTemplateBuilder(item);_visitables.get("items").remove(builder); this.items.remove(builder);} return (A)this; + } + + public A removeMatchingFromItems(Predicate predicate) { + if (items == null) return (A) this; + final Iterator each = items.iterator(); + final List visitables = _visitables.get("items"); + while (each.hasNext()) { + V1alpha3ResourceClaimTemplateBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A)this; + } + + public List buildItems() { + return this.items != null ? build(items) : null; + } + + public V1alpha3ResourceClaimTemplate buildItem(int index) { + return this.items.get(index).build(); + } + + public V1alpha3ResourceClaimTemplate buildFirstItem() { + return this.items.get(0).build(); + } + + public V1alpha3ResourceClaimTemplate buildLastItem() { + return this.items.get(items.size() - 1).build(); + } + + public V1alpha3ResourceClaimTemplate buildMatchingItem(Predicate predicate) { + for (V1alpha3ResourceClaimTemplateBuilder item : items) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; + } + + public boolean hasMatchingItem(Predicate predicate) { + for (V1alpha3ResourceClaimTemplateBuilder item : items) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public A withItems(List items) { + if (this.items != null) { + this._visitables.get("items").clear(); + } + if (items != null) { + this.items = new ArrayList(); + for (V1alpha3ResourceClaimTemplate item : items) { + this.addToItems(item); + } + } else { + this.items = null; + } + return (A) this; + } + + public A withItems(io.kubernetes.client.openapi.models.V1alpha3ResourceClaimTemplate... items) { + if (this.items != null) { + this.items.clear(); + _visitables.remove("items"); + } + if (items != null) { + for (V1alpha3ResourceClaimTemplate item : items) { + this.addToItems(item); + } + } + return (A) this; + } + + public boolean hasItems() { + return this.items != null && !this.items.isEmpty(); + } + + public ItemsNested addNewItem() { + return new ItemsNested(-1, null); + } + + public ItemsNested addNewItemLike(V1alpha3ResourceClaimTemplate item) { + return new ItemsNested(-1, item); + } + + public ItemsNested setNewItemLike(int index,V1alpha3ResourceClaimTemplate item) { + return new ItemsNested(index, item); + } + + public ItemsNested editItem(int index) { + if (items.size() <= index) throw new RuntimeException("Can't edit items. Index exceeds size."); + return setNewItemLike(index, buildItem(index)); + } + + public ItemsNested editFirstItem() { + if (items.size() == 0) throw new RuntimeException("Can't edit first items. The list is empty."); + return setNewItemLike(0, buildItem(0)); + } + + public ItemsNested editLastItem() { + int index = items.size() - 1; + if (index < 0) throw new RuntimeException("Can't edit last items. The list is empty."); + return setNewItemLike(index, buildItem(index)); + } + + public ItemsNested editMatchingItem(Predicate predicate) { + int index = -1; + for (int i=0;i withNewMetadata() { + return new MetadataNested(null); + } + + public MetadataNested withNewMetadataLike(V1ListMeta item) { + return new MetadataNested(item); + } + + public MetadataNested editMetadata() { + return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(null)); + } + + public MetadataNested editOrNewMetadata() { + return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(new V1ListMetaBuilder().build())); + } + + public MetadataNested editOrNewMetadataLike(V1ListMeta item) { + return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(item)); + } + + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + if (!super.equals(o)) return false; + V1alpha3ResourceClaimTemplateListFluent that = (V1alpha3ResourceClaimTemplateListFluent) o; + if (!java.util.Objects.equals(apiVersion, that.apiVersion)) return false; + if (!java.util.Objects.equals(items, that.items)) return false; + if (!java.util.Objects.equals(kind, that.kind)) return false; + if (!java.util.Objects.equals(metadata, that.metadata)) return false; + return true; + } + + public int hashCode() { + return java.util.Objects.hash(apiVersion, items, kind, metadata, super.hashCode()); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (apiVersion != null) { sb.append("apiVersion:"); sb.append(apiVersion + ","); } + if (items != null && !items.isEmpty()) { sb.append("items:"); sb.append(items + ","); } + if (kind != null) { sb.append("kind:"); sb.append(kind + ","); } + if (metadata != null) { sb.append("metadata:"); sb.append(metadata); } + sb.append("}"); + return sb.toString(); + } + public class ItemsNested extends V1alpha3ResourceClaimTemplateFluent> implements Nested{ + ItemsNested(int index,V1alpha3ResourceClaimTemplate item) { + this.index = index; + this.builder = new V1alpha3ResourceClaimTemplateBuilder(this, item); + } + V1alpha3ResourceClaimTemplateBuilder builder; + int index; + + public N and() { + return (N) V1alpha3ResourceClaimTemplateListFluent.this.setToItems(index,builder.build()); + } + + public N endItem() { + return and(); + } + + + } + public class MetadataNested extends V1ListMetaFluent> implements Nested{ + MetadataNested(V1ListMeta item) { + this.builder = new V1ListMetaBuilder(this, item); + } + V1ListMetaBuilder builder; + + public N and() { + return (N) V1alpha3ResourceClaimTemplateListFluent.this.withMetadata(builder.build()); + } + + public N endMetadata() { + return and(); + } + + + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3ResourceClaimTemplateSpecBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3ResourceClaimTemplateSpecBuilder.java new file mode 100644 index 0000000000..630c836979 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3ResourceClaimTemplateSpecBuilder.java @@ -0,0 +1,32 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +public class V1alpha3ResourceClaimTemplateSpecBuilder extends V1alpha3ResourceClaimTemplateSpecFluent implements VisitableBuilder{ + public V1alpha3ResourceClaimTemplateSpecBuilder() { + this(new V1alpha3ResourceClaimTemplateSpec()); + } + + public V1alpha3ResourceClaimTemplateSpecBuilder(V1alpha3ResourceClaimTemplateSpecFluent fluent) { + this(fluent, new V1alpha3ResourceClaimTemplateSpec()); + } + + public V1alpha3ResourceClaimTemplateSpecBuilder(V1alpha3ResourceClaimTemplateSpecFluent fluent,V1alpha3ResourceClaimTemplateSpec instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1alpha3ResourceClaimTemplateSpecBuilder(V1alpha3ResourceClaimTemplateSpec instance) { + this.fluent = this; + this.copyInstance(instance); + } + V1alpha3ResourceClaimTemplateSpecFluent fluent; + + public V1alpha3ResourceClaimTemplateSpec build() { + V1alpha3ResourceClaimTemplateSpec buildable = new V1alpha3ResourceClaimTemplateSpec(); + buildable.setMetadata(fluent.buildMetadata()); + buildable.setSpec(fluent.buildSpec()); + return buildable; + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3ResourceClaimTemplateSpecFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3ResourceClaimTemplateSpecFluent.java new file mode 100644 index 0000000000..ed1d651dd3 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3ResourceClaimTemplateSpecFluent.java @@ -0,0 +1,166 @@ +package io.kubernetes.client.openapi.models; + +import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.Nested; +import java.lang.String; +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Object; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1alpha3ResourceClaimTemplateSpecFluent> extends BaseFluent{ + public V1alpha3ResourceClaimTemplateSpecFluent() { + } + + public V1alpha3ResourceClaimTemplateSpecFluent(V1alpha3ResourceClaimTemplateSpec instance) { + this.copyInstance(instance); + } + private V1ObjectMetaBuilder metadata; + private V1alpha3ResourceClaimSpecBuilder spec; + + protected void copyInstance(V1alpha3ResourceClaimTemplateSpec instance) { + instance = (instance != null ? instance : new V1alpha3ResourceClaimTemplateSpec()); + if (instance != null) { + this.withMetadata(instance.getMetadata()); + this.withSpec(instance.getSpec()); + } + } + + public V1ObjectMeta buildMetadata() { + return this.metadata != null ? this.metadata.build() : null; + } + + public A withMetadata(V1ObjectMeta metadata) { + this._visitables.remove("metadata"); + if (metadata != null) { + this.metadata = new V1ObjectMetaBuilder(metadata); + this._visitables.get("metadata").add(this.metadata); + } else { + this.metadata = null; + this._visitables.get("metadata").remove(this.metadata); + } + return (A) this; + } + + public boolean hasMetadata() { + return this.metadata != null; + } + + public MetadataNested withNewMetadata() { + return new MetadataNested(null); + } + + public MetadataNested withNewMetadataLike(V1ObjectMeta item) { + return new MetadataNested(item); + } + + public MetadataNested editMetadata() { + return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(null)); + } + + public MetadataNested editOrNewMetadata() { + return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(new V1ObjectMetaBuilder().build())); + } + + public MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { + return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(item)); + } + + public V1alpha3ResourceClaimSpec buildSpec() { + return this.spec != null ? this.spec.build() : null; + } + + public A withSpec(V1alpha3ResourceClaimSpec spec) { + this._visitables.remove("spec"); + if (spec != null) { + this.spec = new V1alpha3ResourceClaimSpecBuilder(spec); + this._visitables.get("spec").add(this.spec); + } else { + this.spec = null; + this._visitables.get("spec").remove(this.spec); + } + return (A) this; + } + + public boolean hasSpec() { + return this.spec != null; + } + + public SpecNested withNewSpec() { + return new SpecNested(null); + } + + public SpecNested withNewSpecLike(V1alpha3ResourceClaimSpec item) { + return new SpecNested(item); + } + + public SpecNested editSpec() { + return withNewSpecLike(java.util.Optional.ofNullable(buildSpec()).orElse(null)); + } + + public SpecNested editOrNewSpec() { + return withNewSpecLike(java.util.Optional.ofNullable(buildSpec()).orElse(new V1alpha3ResourceClaimSpecBuilder().build())); + } + + public SpecNested editOrNewSpecLike(V1alpha3ResourceClaimSpec item) { + return withNewSpecLike(java.util.Optional.ofNullable(buildSpec()).orElse(item)); + } + + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + if (!super.equals(o)) return false; + V1alpha3ResourceClaimTemplateSpecFluent that = (V1alpha3ResourceClaimTemplateSpecFluent) o; + if (!java.util.Objects.equals(metadata, that.metadata)) return false; + if (!java.util.Objects.equals(spec, that.spec)) return false; + return true; + } + + public int hashCode() { + return java.util.Objects.hash(metadata, spec, super.hashCode()); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (metadata != null) { sb.append("metadata:"); sb.append(metadata + ","); } + if (spec != null) { sb.append("spec:"); sb.append(spec); } + sb.append("}"); + return sb.toString(); + } + public class MetadataNested extends V1ObjectMetaFluent> implements Nested{ + MetadataNested(V1ObjectMeta item) { + this.builder = new V1ObjectMetaBuilder(this, item); + } + V1ObjectMetaBuilder builder; + + public N and() { + return (N) V1alpha3ResourceClaimTemplateSpecFluent.this.withMetadata(builder.build()); + } + + public N endMetadata() { + return and(); + } + + + } + public class SpecNested extends V1alpha3ResourceClaimSpecFluent> implements Nested{ + SpecNested(V1alpha3ResourceClaimSpec item) { + this.builder = new V1alpha3ResourceClaimSpecBuilder(this, item); + } + V1alpha3ResourceClaimSpecBuilder builder; + + public N and() { + return (N) V1alpha3ResourceClaimTemplateSpecFluent.this.withSpec(builder.build()); + } + + public N endSpec() { + return and(); + } + + + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3ResourcePoolBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3ResourcePoolBuilder.java new file mode 100644 index 0000000000..64e9c10993 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3ResourcePoolBuilder.java @@ -0,0 +1,33 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +public class V1alpha3ResourcePoolBuilder extends V1alpha3ResourcePoolFluent implements VisitableBuilder{ + public V1alpha3ResourcePoolBuilder() { + this(new V1alpha3ResourcePool()); + } + + public V1alpha3ResourcePoolBuilder(V1alpha3ResourcePoolFluent fluent) { + this(fluent, new V1alpha3ResourcePool()); + } + + public V1alpha3ResourcePoolBuilder(V1alpha3ResourcePoolFluent fluent,V1alpha3ResourcePool instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1alpha3ResourcePoolBuilder(V1alpha3ResourcePool instance) { + this.fluent = this; + this.copyInstance(instance); + } + V1alpha3ResourcePoolFluent fluent; + + public V1alpha3ResourcePool build() { + V1alpha3ResourcePool buildable = new V1alpha3ResourcePool(); + buildable.setGeneration(fluent.getGeneration()); + buildable.setName(fluent.getName()); + buildable.setResourceSliceCount(fluent.getResourceSliceCount()); + return buildable; + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3ResourcePoolFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3ResourcePoolFluent.java new file mode 100644 index 0000000000..b0c3470829 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3ResourcePoolFluent.java @@ -0,0 +1,98 @@ +package io.kubernetes.client.openapi.models; + +import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Long; +import java.lang.Object; +import java.lang.String; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1alpha3ResourcePoolFluent> extends BaseFluent{ + public V1alpha3ResourcePoolFluent() { + } + + public V1alpha3ResourcePoolFluent(V1alpha3ResourcePool instance) { + this.copyInstance(instance); + } + private Long generation; + private String name; + private Long resourceSliceCount; + + protected void copyInstance(V1alpha3ResourcePool instance) { + instance = (instance != null ? instance : new V1alpha3ResourcePool()); + if (instance != null) { + this.withGeneration(instance.getGeneration()); + this.withName(instance.getName()); + this.withResourceSliceCount(instance.getResourceSliceCount()); + } + } + + public Long getGeneration() { + return this.generation; + } + + public A withGeneration(Long generation) { + this.generation = generation; + return (A) this; + } + + public boolean hasGeneration() { + return this.generation != null; + } + + public String getName() { + return this.name; + } + + public A withName(String name) { + this.name = name; + return (A) this; + } + + public boolean hasName() { + return this.name != null; + } + + public Long getResourceSliceCount() { + return this.resourceSliceCount; + } + + public A withResourceSliceCount(Long resourceSliceCount) { + this.resourceSliceCount = resourceSliceCount; + return (A) this; + } + + public boolean hasResourceSliceCount() { + return this.resourceSliceCount != null; + } + + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + if (!super.equals(o)) return false; + V1alpha3ResourcePoolFluent that = (V1alpha3ResourcePoolFluent) o; + if (!java.util.Objects.equals(generation, that.generation)) return false; + if (!java.util.Objects.equals(name, that.name)) return false; + if (!java.util.Objects.equals(resourceSliceCount, that.resourceSliceCount)) return false; + return true; + } + + public int hashCode() { + return java.util.Objects.hash(generation, name, resourceSliceCount, super.hashCode()); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (generation != null) { sb.append("generation:"); sb.append(generation + ","); } + if (name != null) { sb.append("name:"); sb.append(name + ","); } + if (resourceSliceCount != null) { sb.append("resourceSliceCount:"); sb.append(resourceSliceCount); } + sb.append("}"); + return sb.toString(); + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3ResourceSliceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3ResourceSliceBuilder.java new file mode 100644 index 0000000000..4b25b5908d --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3ResourceSliceBuilder.java @@ -0,0 +1,34 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +public class V1alpha3ResourceSliceBuilder extends V1alpha3ResourceSliceFluent implements VisitableBuilder{ + public V1alpha3ResourceSliceBuilder() { + this(new V1alpha3ResourceSlice()); + } + + public V1alpha3ResourceSliceBuilder(V1alpha3ResourceSliceFluent fluent) { + this(fluent, new V1alpha3ResourceSlice()); + } + + public V1alpha3ResourceSliceBuilder(V1alpha3ResourceSliceFluent fluent,V1alpha3ResourceSlice instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1alpha3ResourceSliceBuilder(V1alpha3ResourceSlice instance) { + this.fluent = this; + this.copyInstance(instance); + } + V1alpha3ResourceSliceFluent fluent; + + public V1alpha3ResourceSlice build() { + V1alpha3ResourceSlice buildable = new V1alpha3ResourceSlice(); + buildable.setApiVersion(fluent.getApiVersion()); + buildable.setKind(fluent.getKind()); + buildable.setMetadata(fluent.buildMetadata()); + buildable.setSpec(fluent.buildSpec()); + return buildable; + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3ResourceSliceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3ResourceSliceFluent.java new file mode 100644 index 0000000000..98af52d4cf --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3ResourceSliceFluent.java @@ -0,0 +1,200 @@ +package io.kubernetes.client.openapi.models; + +import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.Nested; +import java.lang.String; +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Object; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1alpha3ResourceSliceFluent> extends BaseFluent{ + public V1alpha3ResourceSliceFluent() { + } + + public V1alpha3ResourceSliceFluent(V1alpha3ResourceSlice instance) { + this.copyInstance(instance); + } + private String apiVersion; + private String kind; + private V1ObjectMetaBuilder metadata; + private V1alpha3ResourceSliceSpecBuilder spec; + + protected void copyInstance(V1alpha3ResourceSlice instance) { + instance = (instance != null ? instance : new V1alpha3ResourceSlice()); + if (instance != null) { + this.withApiVersion(instance.getApiVersion()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); + this.withSpec(instance.getSpec()); + } + } + + public String getApiVersion() { + return this.apiVersion; + } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + + public boolean hasApiVersion() { + return this.apiVersion != null; + } + + public String getKind() { + return this.kind; + } + + public A withKind(String kind) { + this.kind = kind; + return (A) this; + } + + public boolean hasKind() { + return this.kind != null; + } + + public V1ObjectMeta buildMetadata() { + return this.metadata != null ? this.metadata.build() : null; + } + + public A withMetadata(V1ObjectMeta metadata) { + this._visitables.remove("metadata"); + if (metadata != null) { + this.metadata = new V1ObjectMetaBuilder(metadata); + this._visitables.get("metadata").add(this.metadata); + } else { + this.metadata = null; + this._visitables.get("metadata").remove(this.metadata); + } + return (A) this; + } + + public boolean hasMetadata() { + return this.metadata != null; + } + + public MetadataNested withNewMetadata() { + return new MetadataNested(null); + } + + public MetadataNested withNewMetadataLike(V1ObjectMeta item) { + return new MetadataNested(item); + } + + public MetadataNested editMetadata() { + return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(null)); + } + + public MetadataNested editOrNewMetadata() { + return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(new V1ObjectMetaBuilder().build())); + } + + public MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { + return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(item)); + } + + public V1alpha3ResourceSliceSpec buildSpec() { + return this.spec != null ? this.spec.build() : null; + } + + public A withSpec(V1alpha3ResourceSliceSpec spec) { + this._visitables.remove("spec"); + if (spec != null) { + this.spec = new V1alpha3ResourceSliceSpecBuilder(spec); + this._visitables.get("spec").add(this.spec); + } else { + this.spec = null; + this._visitables.get("spec").remove(this.spec); + } + return (A) this; + } + + public boolean hasSpec() { + return this.spec != null; + } + + public SpecNested withNewSpec() { + return new SpecNested(null); + } + + public SpecNested withNewSpecLike(V1alpha3ResourceSliceSpec item) { + return new SpecNested(item); + } + + public SpecNested editSpec() { + return withNewSpecLike(java.util.Optional.ofNullable(buildSpec()).orElse(null)); + } + + public SpecNested editOrNewSpec() { + return withNewSpecLike(java.util.Optional.ofNullable(buildSpec()).orElse(new V1alpha3ResourceSliceSpecBuilder().build())); + } + + public SpecNested editOrNewSpecLike(V1alpha3ResourceSliceSpec item) { + return withNewSpecLike(java.util.Optional.ofNullable(buildSpec()).orElse(item)); + } + + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + if (!super.equals(o)) return false; + V1alpha3ResourceSliceFluent that = (V1alpha3ResourceSliceFluent) o; + if (!java.util.Objects.equals(apiVersion, that.apiVersion)) return false; + if (!java.util.Objects.equals(kind, that.kind)) return false; + if (!java.util.Objects.equals(metadata, that.metadata)) return false; + if (!java.util.Objects.equals(spec, that.spec)) return false; + return true; + } + + public int hashCode() { + return java.util.Objects.hash(apiVersion, kind, metadata, spec, super.hashCode()); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (apiVersion != null) { sb.append("apiVersion:"); sb.append(apiVersion + ","); } + if (kind != null) { sb.append("kind:"); sb.append(kind + ","); } + if (metadata != null) { sb.append("metadata:"); sb.append(metadata + ","); } + if (spec != null) { sb.append("spec:"); sb.append(spec); } + sb.append("}"); + return sb.toString(); + } + public class MetadataNested extends V1ObjectMetaFluent> implements Nested{ + MetadataNested(V1ObjectMeta item) { + this.builder = new V1ObjectMetaBuilder(this, item); + } + V1ObjectMetaBuilder builder; + + public N and() { + return (N) V1alpha3ResourceSliceFluent.this.withMetadata(builder.build()); + } + + public N endMetadata() { + return and(); + } + + + } + public class SpecNested extends V1alpha3ResourceSliceSpecFluent> implements Nested{ + SpecNested(V1alpha3ResourceSliceSpec item) { + this.builder = new V1alpha3ResourceSliceSpecBuilder(this, item); + } + V1alpha3ResourceSliceSpecBuilder builder; + + public N and() { + return (N) V1alpha3ResourceSliceFluent.this.withSpec(builder.build()); + } + + public N endSpec() { + return and(); + } + + + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3ResourceSliceListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3ResourceSliceListBuilder.java new file mode 100644 index 0000000000..53aff3011f --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3ResourceSliceListBuilder.java @@ -0,0 +1,34 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +public class V1alpha3ResourceSliceListBuilder extends V1alpha3ResourceSliceListFluent implements VisitableBuilder{ + public V1alpha3ResourceSliceListBuilder() { + this(new V1alpha3ResourceSliceList()); + } + + public V1alpha3ResourceSliceListBuilder(V1alpha3ResourceSliceListFluent fluent) { + this(fluent, new V1alpha3ResourceSliceList()); + } + + public V1alpha3ResourceSliceListBuilder(V1alpha3ResourceSliceListFluent fluent,V1alpha3ResourceSliceList instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1alpha3ResourceSliceListBuilder(V1alpha3ResourceSliceList instance) { + this.fluent = this; + this.copyInstance(instance); + } + V1alpha3ResourceSliceListFluent fluent; + + public V1alpha3ResourceSliceList build() { + V1alpha3ResourceSliceList buildable = new V1alpha3ResourceSliceList(); + buildable.setApiVersion(fluent.getApiVersion()); + buildable.setItems(fluent.buildItems()); + buildable.setKind(fluent.getKind()); + buildable.setMetadata(fluent.buildMetadata()); + return buildable; + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3ResourceSliceListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3ResourceSliceListFluent.java new file mode 100644 index 0000000000..e63bc25e6b --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3ResourceSliceListFluent.java @@ -0,0 +1,331 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.Nested; +import java.util.ArrayList; +import java.lang.String; +import java.util.function.Predicate; +import io.kubernetes.client.fluent.BaseFluent; +import java.util.Iterator; +import java.util.Collection; +import java.lang.Object; +import java.util.List; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1alpha3ResourceSliceListFluent> extends BaseFluent{ + public V1alpha3ResourceSliceListFluent() { + } + + public V1alpha3ResourceSliceListFluent(V1alpha3ResourceSliceList instance) { + this.copyInstance(instance); + } + private String apiVersion; + private ArrayList items; + private String kind; + private V1ListMetaBuilder metadata; + + protected void copyInstance(V1alpha3ResourceSliceList instance) { + instance = (instance != null ? instance : new V1alpha3ResourceSliceList()); + if (instance != null) { + this.withApiVersion(instance.getApiVersion()); + this.withItems(instance.getItems()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); + } + } + + public String getApiVersion() { + return this.apiVersion; + } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + + public boolean hasApiVersion() { + return this.apiVersion != null; + } + + public A addToItems(int index,V1alpha3ResourceSlice item) { + if (this.items == null) {this.items = new ArrayList();} + V1alpha3ResourceSliceBuilder builder = new V1alpha3ResourceSliceBuilder(item); + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.add(index, builder); + } + return (A)this; + } + + public A setToItems(int index,V1alpha3ResourceSlice item) { + if (this.items == null) {this.items = new ArrayList();} + V1alpha3ResourceSliceBuilder builder = new V1alpha3ResourceSliceBuilder(item); + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.set(index, builder); + } + return (A)this; + } + + public A addToItems(io.kubernetes.client.openapi.models.V1alpha3ResourceSlice... items) { + if (this.items == null) {this.items = new ArrayList();} + for (V1alpha3ResourceSlice item : items) {V1alpha3ResourceSliceBuilder builder = new V1alpha3ResourceSliceBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; + } + + public A addAllToItems(Collection items) { + if (this.items == null) {this.items = new ArrayList();} + for (V1alpha3ResourceSlice item : items) {V1alpha3ResourceSliceBuilder builder = new V1alpha3ResourceSliceBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; + } + + public A removeFromItems(io.kubernetes.client.openapi.models.V1alpha3ResourceSlice... items) { + if (this.items == null) return (A)this; + for (V1alpha3ResourceSlice item : items) {V1alpha3ResourceSliceBuilder builder = new V1alpha3ResourceSliceBuilder(item);_visitables.get("items").remove(builder); this.items.remove(builder);} return (A)this; + } + + public A removeAllFromItems(Collection items) { + if (this.items == null) return (A)this; + for (V1alpha3ResourceSlice item : items) {V1alpha3ResourceSliceBuilder builder = new V1alpha3ResourceSliceBuilder(item);_visitables.get("items").remove(builder); this.items.remove(builder);} return (A)this; + } + + public A removeMatchingFromItems(Predicate predicate) { + if (items == null) return (A) this; + final Iterator each = items.iterator(); + final List visitables = _visitables.get("items"); + while (each.hasNext()) { + V1alpha3ResourceSliceBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A)this; + } + + public List buildItems() { + return this.items != null ? build(items) : null; + } + + public V1alpha3ResourceSlice buildItem(int index) { + return this.items.get(index).build(); + } + + public V1alpha3ResourceSlice buildFirstItem() { + return this.items.get(0).build(); + } + + public V1alpha3ResourceSlice buildLastItem() { + return this.items.get(items.size() - 1).build(); + } + + public V1alpha3ResourceSlice buildMatchingItem(Predicate predicate) { + for (V1alpha3ResourceSliceBuilder item : items) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; + } + + public boolean hasMatchingItem(Predicate predicate) { + for (V1alpha3ResourceSliceBuilder item : items) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public A withItems(List items) { + if (this.items != null) { + this._visitables.get("items").clear(); + } + if (items != null) { + this.items = new ArrayList(); + for (V1alpha3ResourceSlice item : items) { + this.addToItems(item); + } + } else { + this.items = null; + } + return (A) this; + } + + public A withItems(io.kubernetes.client.openapi.models.V1alpha3ResourceSlice... items) { + if (this.items != null) { + this.items.clear(); + _visitables.remove("items"); + } + if (items != null) { + for (V1alpha3ResourceSlice item : items) { + this.addToItems(item); + } + } + return (A) this; + } + + public boolean hasItems() { + return this.items != null && !this.items.isEmpty(); + } + + public ItemsNested addNewItem() { + return new ItemsNested(-1, null); + } + + public ItemsNested addNewItemLike(V1alpha3ResourceSlice item) { + return new ItemsNested(-1, item); + } + + public ItemsNested setNewItemLike(int index,V1alpha3ResourceSlice item) { + return new ItemsNested(index, item); + } + + public ItemsNested editItem(int index) { + if (items.size() <= index) throw new RuntimeException("Can't edit items. Index exceeds size."); + return setNewItemLike(index, buildItem(index)); + } + + public ItemsNested editFirstItem() { + if (items.size() == 0) throw new RuntimeException("Can't edit first items. The list is empty."); + return setNewItemLike(0, buildItem(0)); + } + + public ItemsNested editLastItem() { + int index = items.size() - 1; + if (index < 0) throw new RuntimeException("Can't edit last items. The list is empty."); + return setNewItemLike(index, buildItem(index)); + } + + public ItemsNested editMatchingItem(Predicate predicate) { + int index = -1; + for (int i=0;i withNewMetadata() { + return new MetadataNested(null); + } + + public MetadataNested withNewMetadataLike(V1ListMeta item) { + return new MetadataNested(item); + } + + public MetadataNested editMetadata() { + return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(null)); + } + + public MetadataNested editOrNewMetadata() { + return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(new V1ListMetaBuilder().build())); + } + + public MetadataNested editOrNewMetadataLike(V1ListMeta item) { + return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(item)); + } + + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + if (!super.equals(o)) return false; + V1alpha3ResourceSliceListFluent that = (V1alpha3ResourceSliceListFluent) o; + if (!java.util.Objects.equals(apiVersion, that.apiVersion)) return false; + if (!java.util.Objects.equals(items, that.items)) return false; + if (!java.util.Objects.equals(kind, that.kind)) return false; + if (!java.util.Objects.equals(metadata, that.metadata)) return false; + return true; + } + + public int hashCode() { + return java.util.Objects.hash(apiVersion, items, kind, metadata, super.hashCode()); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (apiVersion != null) { sb.append("apiVersion:"); sb.append(apiVersion + ","); } + if (items != null && !items.isEmpty()) { sb.append("items:"); sb.append(items + ","); } + if (kind != null) { sb.append("kind:"); sb.append(kind + ","); } + if (metadata != null) { sb.append("metadata:"); sb.append(metadata); } + sb.append("}"); + return sb.toString(); + } + public class ItemsNested extends V1alpha3ResourceSliceFluent> implements Nested{ + ItemsNested(int index,V1alpha3ResourceSlice item) { + this.index = index; + this.builder = new V1alpha3ResourceSliceBuilder(this, item); + } + V1alpha3ResourceSliceBuilder builder; + int index; + + public N and() { + return (N) V1alpha3ResourceSliceListFluent.this.setToItems(index,builder.build()); + } + + public N endItem() { + return and(); + } + + + } + public class MetadataNested extends V1ListMetaFluent> implements Nested{ + MetadataNested(V1ListMeta item) { + this.builder = new V1ListMetaBuilder(this, item); + } + V1ListMetaBuilder builder; + + public N and() { + return (N) V1alpha3ResourceSliceListFluent.this.withMetadata(builder.build()); + } + + public N endMetadata() { + return and(); + } + + + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3ResourceSliceSpecBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3ResourceSliceSpecBuilder.java new file mode 100644 index 0000000000..c325d7e04e --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3ResourceSliceSpecBuilder.java @@ -0,0 +1,38 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +public class V1alpha3ResourceSliceSpecBuilder extends V1alpha3ResourceSliceSpecFluent implements VisitableBuilder{ + public V1alpha3ResourceSliceSpecBuilder() { + this(new V1alpha3ResourceSliceSpec()); + } + + public V1alpha3ResourceSliceSpecBuilder(V1alpha3ResourceSliceSpecFluent fluent) { + this(fluent, new V1alpha3ResourceSliceSpec()); + } + + public V1alpha3ResourceSliceSpecBuilder(V1alpha3ResourceSliceSpecFluent fluent,V1alpha3ResourceSliceSpec instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1alpha3ResourceSliceSpecBuilder(V1alpha3ResourceSliceSpec instance) { + this.fluent = this; + this.copyInstance(instance); + } + V1alpha3ResourceSliceSpecFluent fluent; + + public V1alpha3ResourceSliceSpec build() { + V1alpha3ResourceSliceSpec buildable = new V1alpha3ResourceSliceSpec(); + buildable.setAllNodes(fluent.getAllNodes()); + buildable.setDevices(fluent.buildDevices()); + buildable.setDriver(fluent.getDriver()); + buildable.setNodeName(fluent.getNodeName()); + buildable.setNodeSelector(fluent.buildNodeSelector()); + buildable.setPerDeviceNodeSelection(fluent.getPerDeviceNodeSelection()); + buildable.setPool(fluent.buildPool()); + buildable.setSharedCounters(fluent.buildSharedCounters()); + return buildable; + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3ResourceSliceSpecFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3ResourceSliceSpecFluent.java new file mode 100644 index 0000000000..f10bb6987b --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3ResourceSliceSpecFluent.java @@ -0,0 +1,619 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.Nested; +import java.util.ArrayList; +import java.lang.String; +import java.util.function.Predicate; +import io.kubernetes.client.fluent.BaseFluent; +import java.util.Iterator; +import java.util.List; +import java.lang.Boolean; +import java.util.Collection; +import java.lang.Object; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1alpha3ResourceSliceSpecFluent> extends BaseFluent{ + public V1alpha3ResourceSliceSpecFluent() { + } + + public V1alpha3ResourceSliceSpecFluent(V1alpha3ResourceSliceSpec instance) { + this.copyInstance(instance); + } + private Boolean allNodes; + private ArrayList devices; + private String driver; + private String nodeName; + private V1NodeSelectorBuilder nodeSelector; + private Boolean perDeviceNodeSelection; + private V1alpha3ResourcePoolBuilder pool; + private ArrayList sharedCounters; + + protected void copyInstance(V1alpha3ResourceSliceSpec instance) { + instance = (instance != null ? instance : new V1alpha3ResourceSliceSpec()); + if (instance != null) { + this.withAllNodes(instance.getAllNodes()); + this.withDevices(instance.getDevices()); + this.withDriver(instance.getDriver()); + this.withNodeName(instance.getNodeName()); + this.withNodeSelector(instance.getNodeSelector()); + this.withPerDeviceNodeSelection(instance.getPerDeviceNodeSelection()); + this.withPool(instance.getPool()); + this.withSharedCounters(instance.getSharedCounters()); + } + } + + public Boolean getAllNodes() { + return this.allNodes; + } + + public A withAllNodes(Boolean allNodes) { + this.allNodes = allNodes; + return (A) this; + } + + public boolean hasAllNodes() { + return this.allNodes != null; + } + + public A addToDevices(int index,V1alpha3Device item) { + if (this.devices == null) {this.devices = new ArrayList();} + V1alpha3DeviceBuilder builder = new V1alpha3DeviceBuilder(item); + if (index < 0 || index >= devices.size()) { + _visitables.get("devices").add(builder); + devices.add(builder); + } else { + _visitables.get("devices").add(builder); + devices.add(index, builder); + } + return (A)this; + } + + public A setToDevices(int index,V1alpha3Device item) { + if (this.devices == null) {this.devices = new ArrayList();} + V1alpha3DeviceBuilder builder = new V1alpha3DeviceBuilder(item); + if (index < 0 || index >= devices.size()) { + _visitables.get("devices").add(builder); + devices.add(builder); + } else { + _visitables.get("devices").add(builder); + devices.set(index, builder); + } + return (A)this; + } + + public A addToDevices(io.kubernetes.client.openapi.models.V1alpha3Device... items) { + if (this.devices == null) {this.devices = new ArrayList();} + for (V1alpha3Device item : items) {V1alpha3DeviceBuilder builder = new V1alpha3DeviceBuilder(item);_visitables.get("devices").add(builder);this.devices.add(builder);} return (A)this; + } + + public A addAllToDevices(Collection items) { + if (this.devices == null) {this.devices = new ArrayList();} + for (V1alpha3Device item : items) {V1alpha3DeviceBuilder builder = new V1alpha3DeviceBuilder(item);_visitables.get("devices").add(builder);this.devices.add(builder);} return (A)this; + } + + public A removeFromDevices(io.kubernetes.client.openapi.models.V1alpha3Device... items) { + if (this.devices == null) return (A)this; + for (V1alpha3Device item : items) {V1alpha3DeviceBuilder builder = new V1alpha3DeviceBuilder(item);_visitables.get("devices").remove(builder); this.devices.remove(builder);} return (A)this; + } + + public A removeAllFromDevices(Collection items) { + if (this.devices == null) return (A)this; + for (V1alpha3Device item : items) {V1alpha3DeviceBuilder builder = new V1alpha3DeviceBuilder(item);_visitables.get("devices").remove(builder); this.devices.remove(builder);} return (A)this; + } + + public A removeMatchingFromDevices(Predicate predicate) { + if (devices == null) return (A) this; + final Iterator each = devices.iterator(); + final List visitables = _visitables.get("devices"); + while (each.hasNext()) { + V1alpha3DeviceBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A)this; + } + + public List buildDevices() { + return this.devices != null ? build(devices) : null; + } + + public V1alpha3Device buildDevice(int index) { + return this.devices.get(index).build(); + } + + public V1alpha3Device buildFirstDevice() { + return this.devices.get(0).build(); + } + + public V1alpha3Device buildLastDevice() { + return this.devices.get(devices.size() - 1).build(); + } + + public V1alpha3Device buildMatchingDevice(Predicate predicate) { + for (V1alpha3DeviceBuilder item : devices) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; + } + + public boolean hasMatchingDevice(Predicate predicate) { + for (V1alpha3DeviceBuilder item : devices) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public A withDevices(List devices) { + if (this.devices != null) { + this._visitables.get("devices").clear(); + } + if (devices != null) { + this.devices = new ArrayList(); + for (V1alpha3Device item : devices) { + this.addToDevices(item); + } + } else { + this.devices = null; + } + return (A) this; + } + + public A withDevices(io.kubernetes.client.openapi.models.V1alpha3Device... devices) { + if (this.devices != null) { + this.devices.clear(); + _visitables.remove("devices"); + } + if (devices != null) { + for (V1alpha3Device item : devices) { + this.addToDevices(item); + } + } + return (A) this; + } + + public boolean hasDevices() { + return this.devices != null && !this.devices.isEmpty(); + } + + public DevicesNested addNewDevice() { + return new DevicesNested(-1, null); + } + + public DevicesNested addNewDeviceLike(V1alpha3Device item) { + return new DevicesNested(-1, item); + } + + public DevicesNested setNewDeviceLike(int index,V1alpha3Device item) { + return new DevicesNested(index, item); + } + + public DevicesNested editDevice(int index) { + if (devices.size() <= index) throw new RuntimeException("Can't edit devices. Index exceeds size."); + return setNewDeviceLike(index, buildDevice(index)); + } + + public DevicesNested editFirstDevice() { + if (devices.size() == 0) throw new RuntimeException("Can't edit first devices. The list is empty."); + return setNewDeviceLike(0, buildDevice(0)); + } + + public DevicesNested editLastDevice() { + int index = devices.size() - 1; + if (index < 0) throw new RuntimeException("Can't edit last devices. The list is empty."); + return setNewDeviceLike(index, buildDevice(index)); + } + + public DevicesNested editMatchingDevice(Predicate predicate) { + int index = -1; + for (int i=0;i withNewNodeSelector() { + return new NodeSelectorNested(null); + } + + public NodeSelectorNested withNewNodeSelectorLike(V1NodeSelector item) { + return new NodeSelectorNested(item); + } + + public NodeSelectorNested editNodeSelector() { + return withNewNodeSelectorLike(java.util.Optional.ofNullable(buildNodeSelector()).orElse(null)); + } + + public NodeSelectorNested editOrNewNodeSelector() { + return withNewNodeSelectorLike(java.util.Optional.ofNullable(buildNodeSelector()).orElse(new V1NodeSelectorBuilder().build())); + } + + public NodeSelectorNested editOrNewNodeSelectorLike(V1NodeSelector item) { + return withNewNodeSelectorLike(java.util.Optional.ofNullable(buildNodeSelector()).orElse(item)); + } + + public Boolean getPerDeviceNodeSelection() { + return this.perDeviceNodeSelection; + } + + public A withPerDeviceNodeSelection(Boolean perDeviceNodeSelection) { + this.perDeviceNodeSelection = perDeviceNodeSelection; + return (A) this; + } + + public boolean hasPerDeviceNodeSelection() { + return this.perDeviceNodeSelection != null; + } + + public V1alpha3ResourcePool buildPool() { + return this.pool != null ? this.pool.build() : null; + } + + public A withPool(V1alpha3ResourcePool pool) { + this._visitables.remove("pool"); + if (pool != null) { + this.pool = new V1alpha3ResourcePoolBuilder(pool); + this._visitables.get("pool").add(this.pool); + } else { + this.pool = null; + this._visitables.get("pool").remove(this.pool); + } + return (A) this; + } + + public boolean hasPool() { + return this.pool != null; + } + + public PoolNested withNewPool() { + return new PoolNested(null); + } + + public PoolNested withNewPoolLike(V1alpha3ResourcePool item) { + return new PoolNested(item); + } + + public PoolNested editPool() { + return withNewPoolLike(java.util.Optional.ofNullable(buildPool()).orElse(null)); + } + + public PoolNested editOrNewPool() { + return withNewPoolLike(java.util.Optional.ofNullable(buildPool()).orElse(new V1alpha3ResourcePoolBuilder().build())); + } + + public PoolNested editOrNewPoolLike(V1alpha3ResourcePool item) { + return withNewPoolLike(java.util.Optional.ofNullable(buildPool()).orElse(item)); + } + + public A addToSharedCounters(int index,V1alpha3CounterSet item) { + if (this.sharedCounters == null) {this.sharedCounters = new ArrayList();} + V1alpha3CounterSetBuilder builder = new V1alpha3CounterSetBuilder(item); + if (index < 0 || index >= sharedCounters.size()) { + _visitables.get("sharedCounters").add(builder); + sharedCounters.add(builder); + } else { + _visitables.get("sharedCounters").add(builder); + sharedCounters.add(index, builder); + } + return (A)this; + } + + public A setToSharedCounters(int index,V1alpha3CounterSet item) { + if (this.sharedCounters == null) {this.sharedCounters = new ArrayList();} + V1alpha3CounterSetBuilder builder = new V1alpha3CounterSetBuilder(item); + if (index < 0 || index >= sharedCounters.size()) { + _visitables.get("sharedCounters").add(builder); + sharedCounters.add(builder); + } else { + _visitables.get("sharedCounters").add(builder); + sharedCounters.set(index, builder); + } + return (A)this; + } + + public A addToSharedCounters(io.kubernetes.client.openapi.models.V1alpha3CounterSet... items) { + if (this.sharedCounters == null) {this.sharedCounters = new ArrayList();} + for (V1alpha3CounterSet item : items) {V1alpha3CounterSetBuilder builder = new V1alpha3CounterSetBuilder(item);_visitables.get("sharedCounters").add(builder);this.sharedCounters.add(builder);} return (A)this; + } + + public A addAllToSharedCounters(Collection items) { + if (this.sharedCounters == null) {this.sharedCounters = new ArrayList();} + for (V1alpha3CounterSet item : items) {V1alpha3CounterSetBuilder builder = new V1alpha3CounterSetBuilder(item);_visitables.get("sharedCounters").add(builder);this.sharedCounters.add(builder);} return (A)this; + } + + public A removeFromSharedCounters(io.kubernetes.client.openapi.models.V1alpha3CounterSet... items) { + if (this.sharedCounters == null) return (A)this; + for (V1alpha3CounterSet item : items) {V1alpha3CounterSetBuilder builder = new V1alpha3CounterSetBuilder(item);_visitables.get("sharedCounters").remove(builder); this.sharedCounters.remove(builder);} return (A)this; + } + + public A removeAllFromSharedCounters(Collection items) { + if (this.sharedCounters == null) return (A)this; + for (V1alpha3CounterSet item : items) {V1alpha3CounterSetBuilder builder = new V1alpha3CounterSetBuilder(item);_visitables.get("sharedCounters").remove(builder); this.sharedCounters.remove(builder);} return (A)this; + } + + public A removeMatchingFromSharedCounters(Predicate predicate) { + if (sharedCounters == null) return (A) this; + final Iterator each = sharedCounters.iterator(); + final List visitables = _visitables.get("sharedCounters"); + while (each.hasNext()) { + V1alpha3CounterSetBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A)this; + } + + public List buildSharedCounters() { + return this.sharedCounters != null ? build(sharedCounters) : null; + } + + public V1alpha3CounterSet buildSharedCounter(int index) { + return this.sharedCounters.get(index).build(); + } + + public V1alpha3CounterSet buildFirstSharedCounter() { + return this.sharedCounters.get(0).build(); + } + + public V1alpha3CounterSet buildLastSharedCounter() { + return this.sharedCounters.get(sharedCounters.size() - 1).build(); + } + + public V1alpha3CounterSet buildMatchingSharedCounter(Predicate predicate) { + for (V1alpha3CounterSetBuilder item : sharedCounters) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; + } + + public boolean hasMatchingSharedCounter(Predicate predicate) { + for (V1alpha3CounterSetBuilder item : sharedCounters) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public A withSharedCounters(List sharedCounters) { + if (this.sharedCounters != null) { + this._visitables.get("sharedCounters").clear(); + } + if (sharedCounters != null) { + this.sharedCounters = new ArrayList(); + for (V1alpha3CounterSet item : sharedCounters) { + this.addToSharedCounters(item); + } + } else { + this.sharedCounters = null; + } + return (A) this; + } + + public A withSharedCounters(io.kubernetes.client.openapi.models.V1alpha3CounterSet... sharedCounters) { + if (this.sharedCounters != null) { + this.sharedCounters.clear(); + _visitables.remove("sharedCounters"); + } + if (sharedCounters != null) { + for (V1alpha3CounterSet item : sharedCounters) { + this.addToSharedCounters(item); + } + } + return (A) this; + } + + public boolean hasSharedCounters() { + return this.sharedCounters != null && !this.sharedCounters.isEmpty(); + } + + public SharedCountersNested addNewSharedCounter() { + return new SharedCountersNested(-1, null); + } + + public SharedCountersNested addNewSharedCounterLike(V1alpha3CounterSet item) { + return new SharedCountersNested(-1, item); + } + + public SharedCountersNested setNewSharedCounterLike(int index,V1alpha3CounterSet item) { + return new SharedCountersNested(index, item); + } + + public SharedCountersNested editSharedCounter(int index) { + if (sharedCounters.size() <= index) throw new RuntimeException("Can't edit sharedCounters. Index exceeds size."); + return setNewSharedCounterLike(index, buildSharedCounter(index)); + } + + public SharedCountersNested editFirstSharedCounter() { + if (sharedCounters.size() == 0) throw new RuntimeException("Can't edit first sharedCounters. The list is empty."); + return setNewSharedCounterLike(0, buildSharedCounter(0)); + } + + public SharedCountersNested editLastSharedCounter() { + int index = sharedCounters.size() - 1; + if (index < 0) throw new RuntimeException("Can't edit last sharedCounters. The list is empty."); + return setNewSharedCounterLike(index, buildSharedCounter(index)); + } + + public SharedCountersNested editMatchingSharedCounter(Predicate predicate) { + int index = -1; + for (int i=0;i extends V1alpha3DeviceFluent> implements Nested{ + DevicesNested(int index,V1alpha3Device item) { + this.index = index; + this.builder = new V1alpha3DeviceBuilder(this, item); + } + V1alpha3DeviceBuilder builder; + int index; + + public N and() { + return (N) V1alpha3ResourceSliceSpecFluent.this.setToDevices(index,builder.build()); + } + + public N endDevice() { + return and(); + } + + + } + public class NodeSelectorNested extends V1NodeSelectorFluent> implements Nested{ + NodeSelectorNested(V1NodeSelector item) { + this.builder = new V1NodeSelectorBuilder(this, item); + } + V1NodeSelectorBuilder builder; + + public N and() { + return (N) V1alpha3ResourceSliceSpecFluent.this.withNodeSelector(builder.build()); + } + + public N endNodeSelector() { + return and(); + } + + + } + public class PoolNested extends V1alpha3ResourcePoolFluent> implements Nested{ + PoolNested(V1alpha3ResourcePool item) { + this.builder = new V1alpha3ResourcePoolBuilder(this, item); + } + V1alpha3ResourcePoolBuilder builder; + + public N and() { + return (N) V1alpha3ResourceSliceSpecFluent.this.withPool(builder.build()); + } + + public N endPool() { + return and(); + } + + + } + public class SharedCountersNested extends V1alpha3CounterSetFluent> implements Nested{ + SharedCountersNested(int index,V1alpha3CounterSet item) { + this.index = index; + this.builder = new V1alpha3CounterSetBuilder(this, item); + } + V1alpha3CounterSetBuilder builder; + int index; + + public N and() { + return (N) V1alpha3ResourceSliceSpecFluent.this.setToSharedCounters(index,builder.build()); + } + + public N endSharedCounter() { + return and(); + } + + + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1AllocatedDeviceStatusBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1AllocatedDeviceStatusBuilder.java new file mode 100644 index 0000000000..45dbb21b4e --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1AllocatedDeviceStatusBuilder.java @@ -0,0 +1,36 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +public class V1beta1AllocatedDeviceStatusBuilder extends V1beta1AllocatedDeviceStatusFluent implements VisitableBuilder{ + public V1beta1AllocatedDeviceStatusBuilder() { + this(new V1beta1AllocatedDeviceStatus()); + } + + public V1beta1AllocatedDeviceStatusBuilder(V1beta1AllocatedDeviceStatusFluent fluent) { + this(fluent, new V1beta1AllocatedDeviceStatus()); + } + + public V1beta1AllocatedDeviceStatusBuilder(V1beta1AllocatedDeviceStatusFluent fluent,V1beta1AllocatedDeviceStatus instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1beta1AllocatedDeviceStatusBuilder(V1beta1AllocatedDeviceStatus instance) { + this.fluent = this; + this.copyInstance(instance); + } + V1beta1AllocatedDeviceStatusFluent fluent; + + public V1beta1AllocatedDeviceStatus build() { + V1beta1AllocatedDeviceStatus buildable = new V1beta1AllocatedDeviceStatus(); + buildable.setConditions(fluent.buildConditions()); + buildable.setData(fluent.getData()); + buildable.setDevice(fluent.getDevice()); + buildable.setDriver(fluent.getDriver()); + buildable.setNetworkData(fluent.buildNetworkData()); + buildable.setPool(fluent.getPool()); + return buildable; + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1AllocatedDeviceStatusFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1AllocatedDeviceStatusFluent.java new file mode 100644 index 0000000000..b9fd37913f --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1AllocatedDeviceStatusFluent.java @@ -0,0 +1,365 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.Nested; +import java.util.ArrayList; +import java.lang.String; +import java.util.function.Predicate; +import io.kubernetes.client.fluent.BaseFluent; +import java.util.Iterator; +import java.util.Collection; +import java.lang.Object; +import java.util.List; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1beta1AllocatedDeviceStatusFluent> extends BaseFluent{ + public V1beta1AllocatedDeviceStatusFluent() { + } + + public V1beta1AllocatedDeviceStatusFluent(V1beta1AllocatedDeviceStatus instance) { + this.copyInstance(instance); + } + private ArrayList conditions; + private Object data; + private String device; + private String driver; + private V1beta1NetworkDeviceDataBuilder networkData; + private String pool; + + protected void copyInstance(V1beta1AllocatedDeviceStatus instance) { + instance = (instance != null ? instance : new V1beta1AllocatedDeviceStatus()); + if (instance != null) { + this.withConditions(instance.getConditions()); + this.withData(instance.getData()); + this.withDevice(instance.getDevice()); + this.withDriver(instance.getDriver()); + this.withNetworkData(instance.getNetworkData()); + this.withPool(instance.getPool()); + } + } + + public A addToConditions(int index,V1Condition item) { + if (this.conditions == null) {this.conditions = new ArrayList();} + V1ConditionBuilder builder = new V1ConditionBuilder(item); + if (index < 0 || index >= conditions.size()) { + _visitables.get("conditions").add(builder); + conditions.add(builder); + } else { + _visitables.get("conditions").add(builder); + conditions.add(index, builder); + } + return (A)this; + } + + public A setToConditions(int index,V1Condition item) { + if (this.conditions == null) {this.conditions = new ArrayList();} + V1ConditionBuilder builder = new V1ConditionBuilder(item); + if (index < 0 || index >= conditions.size()) { + _visitables.get("conditions").add(builder); + conditions.add(builder); + } else { + _visitables.get("conditions").add(builder); + conditions.set(index, builder); + } + return (A)this; + } + + public A addToConditions(io.kubernetes.client.openapi.models.V1Condition... items) { + if (this.conditions == null) {this.conditions = new ArrayList();} + for (V1Condition item : items) {V1ConditionBuilder builder = new V1ConditionBuilder(item);_visitables.get("conditions").add(builder);this.conditions.add(builder);} return (A)this; + } + + public A addAllToConditions(Collection items) { + if (this.conditions == null) {this.conditions = new ArrayList();} + for (V1Condition item : items) {V1ConditionBuilder builder = new V1ConditionBuilder(item);_visitables.get("conditions").add(builder);this.conditions.add(builder);} return (A)this; + } + + public A removeFromConditions(io.kubernetes.client.openapi.models.V1Condition... items) { + if (this.conditions == null) return (A)this; + for (V1Condition item : items) {V1ConditionBuilder builder = new V1ConditionBuilder(item);_visitables.get("conditions").remove(builder); this.conditions.remove(builder);} return (A)this; + } + + public A removeAllFromConditions(Collection items) { + if (this.conditions == null) return (A)this; + for (V1Condition item : items) {V1ConditionBuilder builder = new V1ConditionBuilder(item);_visitables.get("conditions").remove(builder); this.conditions.remove(builder);} return (A)this; + } + + public A removeMatchingFromConditions(Predicate predicate) { + if (conditions == null) return (A) this; + final Iterator each = conditions.iterator(); + final List visitables = _visitables.get("conditions"); + while (each.hasNext()) { + V1ConditionBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A)this; + } + + public List buildConditions() { + return this.conditions != null ? build(conditions) : null; + } + + public V1Condition buildCondition(int index) { + return this.conditions.get(index).build(); + } + + public V1Condition buildFirstCondition() { + return this.conditions.get(0).build(); + } + + public V1Condition buildLastCondition() { + return this.conditions.get(conditions.size() - 1).build(); + } + + public V1Condition buildMatchingCondition(Predicate predicate) { + for (V1ConditionBuilder item : conditions) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; + } + + public boolean hasMatchingCondition(Predicate predicate) { + for (V1ConditionBuilder item : conditions) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public A withConditions(List conditions) { + if (this.conditions != null) { + this._visitables.get("conditions").clear(); + } + if (conditions != null) { + this.conditions = new ArrayList(); + for (V1Condition item : conditions) { + this.addToConditions(item); + } + } else { + this.conditions = null; + } + return (A) this; + } + + public A withConditions(io.kubernetes.client.openapi.models.V1Condition... conditions) { + if (this.conditions != null) { + this.conditions.clear(); + _visitables.remove("conditions"); + } + if (conditions != null) { + for (V1Condition item : conditions) { + this.addToConditions(item); + } + } + return (A) this; + } + + public boolean hasConditions() { + return this.conditions != null && !this.conditions.isEmpty(); + } + + public ConditionsNested addNewCondition() { + return new ConditionsNested(-1, null); + } + + public ConditionsNested addNewConditionLike(V1Condition item) { + return new ConditionsNested(-1, item); + } + + public ConditionsNested setNewConditionLike(int index,V1Condition item) { + return new ConditionsNested(index, item); + } + + public ConditionsNested editCondition(int index) { + if (conditions.size() <= index) throw new RuntimeException("Can't edit conditions. Index exceeds size."); + return setNewConditionLike(index, buildCondition(index)); + } + + public ConditionsNested editFirstCondition() { + if (conditions.size() == 0) throw new RuntimeException("Can't edit first conditions. The list is empty."); + return setNewConditionLike(0, buildCondition(0)); + } + + public ConditionsNested editLastCondition() { + int index = conditions.size() - 1; + if (index < 0) throw new RuntimeException("Can't edit last conditions. The list is empty."); + return setNewConditionLike(index, buildCondition(index)); + } + + public ConditionsNested editMatchingCondition(Predicate predicate) { + int index = -1; + for (int i=0;i withNewNetworkData() { + return new NetworkDataNested(null); + } + + public NetworkDataNested withNewNetworkDataLike(V1beta1NetworkDeviceData item) { + return new NetworkDataNested(item); + } + + public NetworkDataNested editNetworkData() { + return withNewNetworkDataLike(java.util.Optional.ofNullable(buildNetworkData()).orElse(null)); + } + + public NetworkDataNested editOrNewNetworkData() { + return withNewNetworkDataLike(java.util.Optional.ofNullable(buildNetworkData()).orElse(new V1beta1NetworkDeviceDataBuilder().build())); + } + + public NetworkDataNested editOrNewNetworkDataLike(V1beta1NetworkDeviceData item) { + return withNewNetworkDataLike(java.util.Optional.ofNullable(buildNetworkData()).orElse(item)); + } + + public String getPool() { + return this.pool; + } + + public A withPool(String pool) { + this.pool = pool; + return (A) this; + } + + public boolean hasPool() { + return this.pool != null; + } + + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + if (!super.equals(o)) return false; + V1beta1AllocatedDeviceStatusFluent that = (V1beta1AllocatedDeviceStatusFluent) o; + if (!java.util.Objects.equals(conditions, that.conditions)) return false; + if (!java.util.Objects.equals(data, that.data)) return false; + if (!java.util.Objects.equals(device, that.device)) return false; + if (!java.util.Objects.equals(driver, that.driver)) return false; + if (!java.util.Objects.equals(networkData, that.networkData)) return false; + if (!java.util.Objects.equals(pool, that.pool)) return false; + return true; + } + + public int hashCode() { + return java.util.Objects.hash(conditions, data, device, driver, networkData, pool, super.hashCode()); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (conditions != null && !conditions.isEmpty()) { sb.append("conditions:"); sb.append(conditions + ","); } + if (data != null) { sb.append("data:"); sb.append(data + ","); } + if (device != null) { sb.append("device:"); sb.append(device + ","); } + if (driver != null) { sb.append("driver:"); sb.append(driver + ","); } + if (networkData != null) { sb.append("networkData:"); sb.append(networkData + ","); } + if (pool != null) { sb.append("pool:"); sb.append(pool); } + sb.append("}"); + return sb.toString(); + } + public class ConditionsNested extends V1ConditionFluent> implements Nested{ + ConditionsNested(int index,V1Condition item) { + this.index = index; + this.builder = new V1ConditionBuilder(this, item); + } + V1ConditionBuilder builder; + int index; + + public N and() { + return (N) V1beta1AllocatedDeviceStatusFluent.this.setToConditions(index,builder.build()); + } + + public N endCondition() { + return and(); + } + + + } + public class NetworkDataNested extends V1beta1NetworkDeviceDataFluent> implements Nested{ + NetworkDataNested(V1beta1NetworkDeviceData item) { + this.builder = new V1beta1NetworkDeviceDataBuilder(this, item); + } + V1beta1NetworkDeviceDataBuilder builder; + + public N and() { + return (N) V1beta1AllocatedDeviceStatusFluent.this.withNetworkData(builder.build()); + } + + public N endNetworkData() { + return and(); + } + + + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1AllocationResultBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1AllocationResultBuilder.java new file mode 100644 index 0000000000..5d2123000a --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1AllocationResultBuilder.java @@ -0,0 +1,32 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +public class V1beta1AllocationResultBuilder extends V1beta1AllocationResultFluent implements VisitableBuilder{ + public V1beta1AllocationResultBuilder() { + this(new V1beta1AllocationResult()); + } + + public V1beta1AllocationResultBuilder(V1beta1AllocationResultFluent fluent) { + this(fluent, new V1beta1AllocationResult()); + } + + public V1beta1AllocationResultBuilder(V1beta1AllocationResultFluent fluent,V1beta1AllocationResult instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1beta1AllocationResultBuilder(V1beta1AllocationResult instance) { + this.fluent = this; + this.copyInstance(instance); + } + V1beta1AllocationResultFluent fluent; + + public V1beta1AllocationResult build() { + V1beta1AllocationResult buildable = new V1beta1AllocationResult(); + buildable.setDevices(fluent.buildDevices()); + buildable.setNodeSelector(fluent.buildNodeSelector()); + return buildable; + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1AllocationResultFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1AllocationResultFluent.java new file mode 100644 index 0000000000..ef04eb202c --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1AllocationResultFluent.java @@ -0,0 +1,166 @@ +package io.kubernetes.client.openapi.models; + +import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.Nested; +import java.lang.String; +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Object; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1beta1AllocationResultFluent> extends BaseFluent{ + public V1beta1AllocationResultFluent() { + } + + public V1beta1AllocationResultFluent(V1beta1AllocationResult instance) { + this.copyInstance(instance); + } + private V1beta1DeviceAllocationResultBuilder devices; + private V1NodeSelectorBuilder nodeSelector; + + protected void copyInstance(V1beta1AllocationResult instance) { + instance = (instance != null ? instance : new V1beta1AllocationResult()); + if (instance != null) { + this.withDevices(instance.getDevices()); + this.withNodeSelector(instance.getNodeSelector()); + } + } + + public V1beta1DeviceAllocationResult buildDevices() { + return this.devices != null ? this.devices.build() : null; + } + + public A withDevices(V1beta1DeviceAllocationResult devices) { + this._visitables.remove("devices"); + if (devices != null) { + this.devices = new V1beta1DeviceAllocationResultBuilder(devices); + this._visitables.get("devices").add(this.devices); + } else { + this.devices = null; + this._visitables.get("devices").remove(this.devices); + } + return (A) this; + } + + public boolean hasDevices() { + return this.devices != null; + } + + public DevicesNested withNewDevices() { + return new DevicesNested(null); + } + + public DevicesNested withNewDevicesLike(V1beta1DeviceAllocationResult item) { + return new DevicesNested(item); + } + + public DevicesNested editDevices() { + return withNewDevicesLike(java.util.Optional.ofNullable(buildDevices()).orElse(null)); + } + + public DevicesNested editOrNewDevices() { + return withNewDevicesLike(java.util.Optional.ofNullable(buildDevices()).orElse(new V1beta1DeviceAllocationResultBuilder().build())); + } + + public DevicesNested editOrNewDevicesLike(V1beta1DeviceAllocationResult item) { + return withNewDevicesLike(java.util.Optional.ofNullable(buildDevices()).orElse(item)); + } + + public V1NodeSelector buildNodeSelector() { + return this.nodeSelector != null ? this.nodeSelector.build() : null; + } + + public A withNodeSelector(V1NodeSelector nodeSelector) { + this._visitables.remove("nodeSelector"); + if (nodeSelector != null) { + this.nodeSelector = new V1NodeSelectorBuilder(nodeSelector); + this._visitables.get("nodeSelector").add(this.nodeSelector); + } else { + this.nodeSelector = null; + this._visitables.get("nodeSelector").remove(this.nodeSelector); + } + return (A) this; + } + + public boolean hasNodeSelector() { + return this.nodeSelector != null; + } + + public NodeSelectorNested withNewNodeSelector() { + return new NodeSelectorNested(null); + } + + public NodeSelectorNested withNewNodeSelectorLike(V1NodeSelector item) { + return new NodeSelectorNested(item); + } + + public NodeSelectorNested editNodeSelector() { + return withNewNodeSelectorLike(java.util.Optional.ofNullable(buildNodeSelector()).orElse(null)); + } + + public NodeSelectorNested editOrNewNodeSelector() { + return withNewNodeSelectorLike(java.util.Optional.ofNullable(buildNodeSelector()).orElse(new V1NodeSelectorBuilder().build())); + } + + public NodeSelectorNested editOrNewNodeSelectorLike(V1NodeSelector item) { + return withNewNodeSelectorLike(java.util.Optional.ofNullable(buildNodeSelector()).orElse(item)); + } + + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + if (!super.equals(o)) return false; + V1beta1AllocationResultFluent that = (V1beta1AllocationResultFluent) o; + if (!java.util.Objects.equals(devices, that.devices)) return false; + if (!java.util.Objects.equals(nodeSelector, that.nodeSelector)) return false; + return true; + } + + public int hashCode() { + return java.util.Objects.hash(devices, nodeSelector, super.hashCode()); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (devices != null) { sb.append("devices:"); sb.append(devices + ","); } + if (nodeSelector != null) { sb.append("nodeSelector:"); sb.append(nodeSelector); } + sb.append("}"); + return sb.toString(); + } + public class DevicesNested extends V1beta1DeviceAllocationResultFluent> implements Nested{ + DevicesNested(V1beta1DeviceAllocationResult item) { + this.builder = new V1beta1DeviceAllocationResultBuilder(this, item); + } + V1beta1DeviceAllocationResultBuilder builder; + + public N and() { + return (N) V1beta1AllocationResultFluent.this.withDevices(builder.build()); + } + + public N endDevices() { + return and(); + } + + + } + public class NodeSelectorNested extends V1NodeSelectorFluent> implements Nested{ + NodeSelectorNested(V1NodeSelector item) { + this.builder = new V1NodeSelectorBuilder(this, item); + } + V1NodeSelectorBuilder builder; + + public N and() { + return (N) V1beta1AllocationResultFluent.this.withNodeSelector(builder.build()); + } + + public N endNodeSelector() { + return and(); + } + + + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1BasicDeviceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1BasicDeviceBuilder.java new file mode 100644 index 0000000000..00997a4d0b --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1BasicDeviceBuilder.java @@ -0,0 +1,37 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +public class V1beta1BasicDeviceBuilder extends V1beta1BasicDeviceFluent implements VisitableBuilder{ + public V1beta1BasicDeviceBuilder() { + this(new V1beta1BasicDevice()); + } + + public V1beta1BasicDeviceBuilder(V1beta1BasicDeviceFluent fluent) { + this(fluent, new V1beta1BasicDevice()); + } + + public V1beta1BasicDeviceBuilder(V1beta1BasicDeviceFluent fluent,V1beta1BasicDevice instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1beta1BasicDeviceBuilder(V1beta1BasicDevice instance) { + this.fluent = this; + this.copyInstance(instance); + } + V1beta1BasicDeviceFluent fluent; + + public V1beta1BasicDevice build() { + V1beta1BasicDevice buildable = new V1beta1BasicDevice(); + buildable.setAllNodes(fluent.getAllNodes()); + buildable.setAttributes(fluent.getAttributes()); + buildable.setCapacity(fluent.getCapacity()); + buildable.setConsumesCounters(fluent.buildConsumesCounters()); + buildable.setNodeName(fluent.getNodeName()); + buildable.setNodeSelector(fluent.buildNodeSelector()); + buildable.setTaints(fluent.buildTaints()); + return buildable; + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1BasicDeviceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1BasicDeviceFluent.java new file mode 100644 index 0000000000..8a25f698e7 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1BasicDeviceFluent.java @@ -0,0 +1,605 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.Nested; +import java.util.ArrayList; +import java.lang.String; +import java.util.LinkedHashMap; +import java.util.function.Predicate; +import io.kubernetes.client.fluent.BaseFluent; +import java.util.Iterator; +import java.util.List; +import java.lang.Boolean; +import java.util.Collection; +import java.lang.Object; +import java.util.Map; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1beta1BasicDeviceFluent> extends BaseFluent{ + public V1beta1BasicDeviceFluent() { + } + + public V1beta1BasicDeviceFluent(V1beta1BasicDevice instance) { + this.copyInstance(instance); + } + private Boolean allNodes; + private Map attributes; + private Map capacity; + private ArrayList consumesCounters; + private String nodeName; + private V1NodeSelectorBuilder nodeSelector; + private ArrayList taints; + + protected void copyInstance(V1beta1BasicDevice instance) { + instance = (instance != null ? instance : new V1beta1BasicDevice()); + if (instance != null) { + this.withAllNodes(instance.getAllNodes()); + this.withAttributes(instance.getAttributes()); + this.withCapacity(instance.getCapacity()); + this.withConsumesCounters(instance.getConsumesCounters()); + this.withNodeName(instance.getNodeName()); + this.withNodeSelector(instance.getNodeSelector()); + this.withTaints(instance.getTaints()); + } + } + + public Boolean getAllNodes() { + return this.allNodes; + } + + public A withAllNodes(Boolean allNodes) { + this.allNodes = allNodes; + return (A) this; + } + + public boolean hasAllNodes() { + return this.allNodes != null; + } + + public A addToAttributes(String key,V1beta1DeviceAttribute value) { + if(this.attributes == null && key != null && value != null) { this.attributes = new LinkedHashMap(); } + if(key != null && value != null) {this.attributes.put(key, value);} return (A)this; + } + + public A addToAttributes(Map map) { + if(this.attributes == null && map != null) { this.attributes = new LinkedHashMap(); } + if(map != null) { this.attributes.putAll(map);} return (A)this; + } + + public A removeFromAttributes(String key) { + if(this.attributes == null) { return (A) this; } + if(key != null && this.attributes != null) {this.attributes.remove(key);} return (A)this; + } + + public A removeFromAttributes(Map map) { + if(this.attributes == null) { return (A) this; } + if(map != null) { for(Object key : map.keySet()) {if (this.attributes != null){this.attributes.remove(key);}}} return (A)this; + } + + public Map getAttributes() { + return this.attributes; + } + + public A withAttributes(Map attributes) { + if (attributes == null) { + this.attributes = null; + } else { + this.attributes = new LinkedHashMap(attributes); + } + return (A) this; + } + + public boolean hasAttributes() { + return this.attributes != null; + } + + public A addToCapacity(String key,V1beta1DeviceCapacity value) { + if(this.capacity == null && key != null && value != null) { this.capacity = new LinkedHashMap(); } + if(key != null && value != null) {this.capacity.put(key, value);} return (A)this; + } + + public A addToCapacity(Map map) { + if(this.capacity == null && map != null) { this.capacity = new LinkedHashMap(); } + if(map != null) { this.capacity.putAll(map);} return (A)this; + } + + public A removeFromCapacity(String key) { + if(this.capacity == null) { return (A) this; } + if(key != null && this.capacity != null) {this.capacity.remove(key);} return (A)this; + } + + public A removeFromCapacity(Map map) { + if(this.capacity == null) { return (A) this; } + if(map != null) { for(Object key : map.keySet()) {if (this.capacity != null){this.capacity.remove(key);}}} return (A)this; + } + + public Map getCapacity() { + return this.capacity; + } + + public A withCapacity(Map capacity) { + if (capacity == null) { + this.capacity = null; + } else { + this.capacity = new LinkedHashMap(capacity); + } + return (A) this; + } + + public boolean hasCapacity() { + return this.capacity != null; + } + + public A addToConsumesCounters(int index,V1beta1DeviceCounterConsumption item) { + if (this.consumesCounters == null) {this.consumesCounters = new ArrayList();} + V1beta1DeviceCounterConsumptionBuilder builder = new V1beta1DeviceCounterConsumptionBuilder(item); + if (index < 0 || index >= consumesCounters.size()) { + _visitables.get("consumesCounters").add(builder); + consumesCounters.add(builder); + } else { + _visitables.get("consumesCounters").add(builder); + consumesCounters.add(index, builder); + } + return (A)this; + } + + public A setToConsumesCounters(int index,V1beta1DeviceCounterConsumption item) { + if (this.consumesCounters == null) {this.consumesCounters = new ArrayList();} + V1beta1DeviceCounterConsumptionBuilder builder = new V1beta1DeviceCounterConsumptionBuilder(item); + if (index < 0 || index >= consumesCounters.size()) { + _visitables.get("consumesCounters").add(builder); + consumesCounters.add(builder); + } else { + _visitables.get("consumesCounters").add(builder); + consumesCounters.set(index, builder); + } + return (A)this; + } + + public A addToConsumesCounters(io.kubernetes.client.openapi.models.V1beta1DeviceCounterConsumption... items) { + if (this.consumesCounters == null) {this.consumesCounters = new ArrayList();} + for (V1beta1DeviceCounterConsumption item : items) {V1beta1DeviceCounterConsumptionBuilder builder = new V1beta1DeviceCounterConsumptionBuilder(item);_visitables.get("consumesCounters").add(builder);this.consumesCounters.add(builder);} return (A)this; + } + + public A addAllToConsumesCounters(Collection items) { + if (this.consumesCounters == null) {this.consumesCounters = new ArrayList();} + for (V1beta1DeviceCounterConsumption item : items) {V1beta1DeviceCounterConsumptionBuilder builder = new V1beta1DeviceCounterConsumptionBuilder(item);_visitables.get("consumesCounters").add(builder);this.consumesCounters.add(builder);} return (A)this; + } + + public A removeFromConsumesCounters(io.kubernetes.client.openapi.models.V1beta1DeviceCounterConsumption... items) { + if (this.consumesCounters == null) return (A)this; + for (V1beta1DeviceCounterConsumption item : items) {V1beta1DeviceCounterConsumptionBuilder builder = new V1beta1DeviceCounterConsumptionBuilder(item);_visitables.get("consumesCounters").remove(builder); this.consumesCounters.remove(builder);} return (A)this; + } + + public A removeAllFromConsumesCounters(Collection items) { + if (this.consumesCounters == null) return (A)this; + for (V1beta1DeviceCounterConsumption item : items) {V1beta1DeviceCounterConsumptionBuilder builder = new V1beta1DeviceCounterConsumptionBuilder(item);_visitables.get("consumesCounters").remove(builder); this.consumesCounters.remove(builder);} return (A)this; + } + + public A removeMatchingFromConsumesCounters(Predicate predicate) { + if (consumesCounters == null) return (A) this; + final Iterator each = consumesCounters.iterator(); + final List visitables = _visitables.get("consumesCounters"); + while (each.hasNext()) { + V1beta1DeviceCounterConsumptionBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A)this; + } + + public List buildConsumesCounters() { + return this.consumesCounters != null ? build(consumesCounters) : null; + } + + public V1beta1DeviceCounterConsumption buildConsumesCounter(int index) { + return this.consumesCounters.get(index).build(); + } + + public V1beta1DeviceCounterConsumption buildFirstConsumesCounter() { + return this.consumesCounters.get(0).build(); + } + + public V1beta1DeviceCounterConsumption buildLastConsumesCounter() { + return this.consumesCounters.get(consumesCounters.size() - 1).build(); + } + + public V1beta1DeviceCounterConsumption buildMatchingConsumesCounter(Predicate predicate) { + for (V1beta1DeviceCounterConsumptionBuilder item : consumesCounters) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; + } + + public boolean hasMatchingConsumesCounter(Predicate predicate) { + for (V1beta1DeviceCounterConsumptionBuilder item : consumesCounters) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public A withConsumesCounters(List consumesCounters) { + if (this.consumesCounters != null) { + this._visitables.get("consumesCounters").clear(); + } + if (consumesCounters != null) { + this.consumesCounters = new ArrayList(); + for (V1beta1DeviceCounterConsumption item : consumesCounters) { + this.addToConsumesCounters(item); + } + } else { + this.consumesCounters = null; + } + return (A) this; + } + + public A withConsumesCounters(io.kubernetes.client.openapi.models.V1beta1DeviceCounterConsumption... consumesCounters) { + if (this.consumesCounters != null) { + this.consumesCounters.clear(); + _visitables.remove("consumesCounters"); + } + if (consumesCounters != null) { + for (V1beta1DeviceCounterConsumption item : consumesCounters) { + this.addToConsumesCounters(item); + } + } + return (A) this; + } + + public boolean hasConsumesCounters() { + return this.consumesCounters != null && !this.consumesCounters.isEmpty(); + } + + public ConsumesCountersNested addNewConsumesCounter() { + return new ConsumesCountersNested(-1, null); + } + + public ConsumesCountersNested addNewConsumesCounterLike(V1beta1DeviceCounterConsumption item) { + return new ConsumesCountersNested(-1, item); + } + + public ConsumesCountersNested setNewConsumesCounterLike(int index,V1beta1DeviceCounterConsumption item) { + return new ConsumesCountersNested(index, item); + } + + public ConsumesCountersNested editConsumesCounter(int index) { + if (consumesCounters.size() <= index) throw new RuntimeException("Can't edit consumesCounters. Index exceeds size."); + return setNewConsumesCounterLike(index, buildConsumesCounter(index)); + } + + public ConsumesCountersNested editFirstConsumesCounter() { + if (consumesCounters.size() == 0) throw new RuntimeException("Can't edit first consumesCounters. The list is empty."); + return setNewConsumesCounterLike(0, buildConsumesCounter(0)); + } + + public ConsumesCountersNested editLastConsumesCounter() { + int index = consumesCounters.size() - 1; + if (index < 0) throw new RuntimeException("Can't edit last consumesCounters. The list is empty."); + return setNewConsumesCounterLike(index, buildConsumesCounter(index)); + } + + public ConsumesCountersNested editMatchingConsumesCounter(Predicate predicate) { + int index = -1; + for (int i=0;i withNewNodeSelector() { + return new NodeSelectorNested(null); + } + + public NodeSelectorNested withNewNodeSelectorLike(V1NodeSelector item) { + return new NodeSelectorNested(item); + } + + public NodeSelectorNested editNodeSelector() { + return withNewNodeSelectorLike(java.util.Optional.ofNullable(buildNodeSelector()).orElse(null)); + } + + public NodeSelectorNested editOrNewNodeSelector() { + return withNewNodeSelectorLike(java.util.Optional.ofNullable(buildNodeSelector()).orElse(new V1NodeSelectorBuilder().build())); + } + + public NodeSelectorNested editOrNewNodeSelectorLike(V1NodeSelector item) { + return withNewNodeSelectorLike(java.util.Optional.ofNullable(buildNodeSelector()).orElse(item)); + } + + public A addToTaints(int index,V1beta1DeviceTaint item) { + if (this.taints == null) {this.taints = new ArrayList();} + V1beta1DeviceTaintBuilder builder = new V1beta1DeviceTaintBuilder(item); + if (index < 0 || index >= taints.size()) { + _visitables.get("taints").add(builder); + taints.add(builder); + } else { + _visitables.get("taints").add(builder); + taints.add(index, builder); + } + return (A)this; + } + + public A setToTaints(int index,V1beta1DeviceTaint item) { + if (this.taints == null) {this.taints = new ArrayList();} + V1beta1DeviceTaintBuilder builder = new V1beta1DeviceTaintBuilder(item); + if (index < 0 || index >= taints.size()) { + _visitables.get("taints").add(builder); + taints.add(builder); + } else { + _visitables.get("taints").add(builder); + taints.set(index, builder); + } + return (A)this; + } + + public A addToTaints(io.kubernetes.client.openapi.models.V1beta1DeviceTaint... items) { + if (this.taints == null) {this.taints = new ArrayList();} + for (V1beta1DeviceTaint item : items) {V1beta1DeviceTaintBuilder builder = new V1beta1DeviceTaintBuilder(item);_visitables.get("taints").add(builder);this.taints.add(builder);} return (A)this; + } + + public A addAllToTaints(Collection items) { + if (this.taints == null) {this.taints = new ArrayList();} + for (V1beta1DeviceTaint item : items) {V1beta1DeviceTaintBuilder builder = new V1beta1DeviceTaintBuilder(item);_visitables.get("taints").add(builder);this.taints.add(builder);} return (A)this; + } + + public A removeFromTaints(io.kubernetes.client.openapi.models.V1beta1DeviceTaint... items) { + if (this.taints == null) return (A)this; + for (V1beta1DeviceTaint item : items) {V1beta1DeviceTaintBuilder builder = new V1beta1DeviceTaintBuilder(item);_visitables.get("taints").remove(builder); this.taints.remove(builder);} return (A)this; + } + + public A removeAllFromTaints(Collection items) { + if (this.taints == null) return (A)this; + for (V1beta1DeviceTaint item : items) {V1beta1DeviceTaintBuilder builder = new V1beta1DeviceTaintBuilder(item);_visitables.get("taints").remove(builder); this.taints.remove(builder);} return (A)this; + } + + public A removeMatchingFromTaints(Predicate predicate) { + if (taints == null) return (A) this; + final Iterator each = taints.iterator(); + final List visitables = _visitables.get("taints"); + while (each.hasNext()) { + V1beta1DeviceTaintBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A)this; + } + + public List buildTaints() { + return this.taints != null ? build(taints) : null; + } + + public V1beta1DeviceTaint buildTaint(int index) { + return this.taints.get(index).build(); + } + + public V1beta1DeviceTaint buildFirstTaint() { + return this.taints.get(0).build(); + } + + public V1beta1DeviceTaint buildLastTaint() { + return this.taints.get(taints.size() - 1).build(); + } + + public V1beta1DeviceTaint buildMatchingTaint(Predicate predicate) { + for (V1beta1DeviceTaintBuilder item : taints) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; + } + + public boolean hasMatchingTaint(Predicate predicate) { + for (V1beta1DeviceTaintBuilder item : taints) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public A withTaints(List taints) { + if (this.taints != null) { + this._visitables.get("taints").clear(); + } + if (taints != null) { + this.taints = new ArrayList(); + for (V1beta1DeviceTaint item : taints) { + this.addToTaints(item); + } + } else { + this.taints = null; + } + return (A) this; + } + + public A withTaints(io.kubernetes.client.openapi.models.V1beta1DeviceTaint... taints) { + if (this.taints != null) { + this.taints.clear(); + _visitables.remove("taints"); + } + if (taints != null) { + for (V1beta1DeviceTaint item : taints) { + this.addToTaints(item); + } + } + return (A) this; + } + + public boolean hasTaints() { + return this.taints != null && !this.taints.isEmpty(); + } + + public TaintsNested addNewTaint() { + return new TaintsNested(-1, null); + } + + public TaintsNested addNewTaintLike(V1beta1DeviceTaint item) { + return new TaintsNested(-1, item); + } + + public TaintsNested setNewTaintLike(int index,V1beta1DeviceTaint item) { + return new TaintsNested(index, item); + } + + public TaintsNested editTaint(int index) { + if (taints.size() <= index) throw new RuntimeException("Can't edit taints. Index exceeds size."); + return setNewTaintLike(index, buildTaint(index)); + } + + public TaintsNested editFirstTaint() { + if (taints.size() == 0) throw new RuntimeException("Can't edit first taints. The list is empty."); + return setNewTaintLike(0, buildTaint(0)); + } + + public TaintsNested editLastTaint() { + int index = taints.size() - 1; + if (index < 0) throw new RuntimeException("Can't edit last taints. The list is empty."); + return setNewTaintLike(index, buildTaint(index)); + } + + public TaintsNested editMatchingTaint(Predicate predicate) { + int index = -1; + for (int i=0;i extends V1beta1DeviceCounterConsumptionFluent> implements Nested{ + ConsumesCountersNested(int index,V1beta1DeviceCounterConsumption item) { + this.index = index; + this.builder = new V1beta1DeviceCounterConsumptionBuilder(this, item); + } + V1beta1DeviceCounterConsumptionBuilder builder; + int index; + + public N and() { + return (N) V1beta1BasicDeviceFluent.this.setToConsumesCounters(index,builder.build()); + } + + public N endConsumesCounter() { + return and(); + } + + + } + public class NodeSelectorNested extends V1NodeSelectorFluent> implements Nested{ + NodeSelectorNested(V1NodeSelector item) { + this.builder = new V1NodeSelectorBuilder(this, item); + } + V1NodeSelectorBuilder builder; + + public N and() { + return (N) V1beta1BasicDeviceFluent.this.withNodeSelector(builder.build()); + } + + public N endNodeSelector() { + return and(); + } + + + } + public class TaintsNested extends V1beta1DeviceTaintFluent> implements Nested{ + TaintsNested(int index,V1beta1DeviceTaint item) { + this.index = index; + this.builder = new V1beta1DeviceTaintBuilder(this, item); + } + V1beta1DeviceTaintBuilder builder; + int index; + + public N and() { + return (N) V1beta1BasicDeviceFluent.this.setToTaints(index,builder.build()); + } + + public N endTaint() { + return and(); + } + + + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1CELDeviceSelectorBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1CELDeviceSelectorBuilder.java new file mode 100644 index 0000000000..0f617c98d1 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1CELDeviceSelectorBuilder.java @@ -0,0 +1,31 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +public class V1beta1CELDeviceSelectorBuilder extends V1beta1CELDeviceSelectorFluent implements VisitableBuilder{ + public V1beta1CELDeviceSelectorBuilder() { + this(new V1beta1CELDeviceSelector()); + } + + public V1beta1CELDeviceSelectorBuilder(V1beta1CELDeviceSelectorFluent fluent) { + this(fluent, new V1beta1CELDeviceSelector()); + } + + public V1beta1CELDeviceSelectorBuilder(V1beta1CELDeviceSelectorFluent fluent,V1beta1CELDeviceSelector instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1beta1CELDeviceSelectorBuilder(V1beta1CELDeviceSelector instance) { + this.fluent = this; + this.copyInstance(instance); + } + V1beta1CELDeviceSelectorFluent fluent; + + public V1beta1CELDeviceSelector build() { + V1beta1CELDeviceSelector buildable = new V1beta1CELDeviceSelector(); + buildable.setExpression(fluent.getExpression()); + return buildable; + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1CELDeviceSelectorFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1CELDeviceSelectorFluent.java new file mode 100644 index 0000000000..11eb4d1534 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1CELDeviceSelectorFluent.java @@ -0,0 +1,63 @@ +package io.kubernetes.client.openapi.models; + +import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Object; +import java.lang.String; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1beta1CELDeviceSelectorFluent> extends BaseFluent{ + public V1beta1CELDeviceSelectorFluent() { + } + + public V1beta1CELDeviceSelectorFluent(V1beta1CELDeviceSelector instance) { + this.copyInstance(instance); + } + private String expression; + + protected void copyInstance(V1beta1CELDeviceSelector instance) { + instance = (instance != null ? instance : new V1beta1CELDeviceSelector()); + if (instance != null) { + this.withExpression(instance.getExpression()); + } + } + + public String getExpression() { + return this.expression; + } + + public A withExpression(String expression) { + this.expression = expression; + return (A) this; + } + + public boolean hasExpression() { + return this.expression != null; + } + + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + if (!super.equals(o)) return false; + V1beta1CELDeviceSelectorFluent that = (V1beta1CELDeviceSelectorFluent) o; + if (!java.util.Objects.equals(expression, that.expression)) return false; + return true; + } + + public int hashCode() { + return java.util.Objects.hash(expression, super.hashCode()); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (expression != null) { sb.append("expression:"); sb.append(expression); } + sb.append("}"); + return sb.toString(); + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ClusterTrustBundleBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ClusterTrustBundleBuilder.java new file mode 100644 index 0000000000..2113a6cbca --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ClusterTrustBundleBuilder.java @@ -0,0 +1,34 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +public class V1beta1ClusterTrustBundleBuilder extends V1beta1ClusterTrustBundleFluent implements VisitableBuilder{ + public V1beta1ClusterTrustBundleBuilder() { + this(new V1beta1ClusterTrustBundle()); + } + + public V1beta1ClusterTrustBundleBuilder(V1beta1ClusterTrustBundleFluent fluent) { + this(fluent, new V1beta1ClusterTrustBundle()); + } + + public V1beta1ClusterTrustBundleBuilder(V1beta1ClusterTrustBundleFluent fluent,V1beta1ClusterTrustBundle instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1beta1ClusterTrustBundleBuilder(V1beta1ClusterTrustBundle instance) { + this.fluent = this; + this.copyInstance(instance); + } + V1beta1ClusterTrustBundleFluent fluent; + + public V1beta1ClusterTrustBundle build() { + V1beta1ClusterTrustBundle buildable = new V1beta1ClusterTrustBundle(); + buildable.setApiVersion(fluent.getApiVersion()); + buildable.setKind(fluent.getKind()); + buildable.setMetadata(fluent.buildMetadata()); + buildable.setSpec(fluent.buildSpec()); + return buildable; + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ClusterTrustBundleFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ClusterTrustBundleFluent.java new file mode 100644 index 0000000000..7d95d8d06f --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ClusterTrustBundleFluent.java @@ -0,0 +1,200 @@ +package io.kubernetes.client.openapi.models; + +import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.Nested; +import java.lang.String; +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Object; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1beta1ClusterTrustBundleFluent> extends BaseFluent{ + public V1beta1ClusterTrustBundleFluent() { + } + + public V1beta1ClusterTrustBundleFluent(V1beta1ClusterTrustBundle instance) { + this.copyInstance(instance); + } + private String apiVersion; + private String kind; + private V1ObjectMetaBuilder metadata; + private V1beta1ClusterTrustBundleSpecBuilder spec; + + protected void copyInstance(V1beta1ClusterTrustBundle instance) { + instance = (instance != null ? instance : new V1beta1ClusterTrustBundle()); + if (instance != null) { + this.withApiVersion(instance.getApiVersion()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); + this.withSpec(instance.getSpec()); + } + } + + public String getApiVersion() { + return this.apiVersion; + } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + + public boolean hasApiVersion() { + return this.apiVersion != null; + } + + public String getKind() { + return this.kind; + } + + public A withKind(String kind) { + this.kind = kind; + return (A) this; + } + + public boolean hasKind() { + return this.kind != null; + } + + public V1ObjectMeta buildMetadata() { + return this.metadata != null ? this.metadata.build() : null; + } + + public A withMetadata(V1ObjectMeta metadata) { + this._visitables.remove("metadata"); + if (metadata != null) { + this.metadata = new V1ObjectMetaBuilder(metadata); + this._visitables.get("metadata").add(this.metadata); + } else { + this.metadata = null; + this._visitables.get("metadata").remove(this.metadata); + } + return (A) this; + } + + public boolean hasMetadata() { + return this.metadata != null; + } + + public MetadataNested withNewMetadata() { + return new MetadataNested(null); + } + + public MetadataNested withNewMetadataLike(V1ObjectMeta item) { + return new MetadataNested(item); + } + + public MetadataNested editMetadata() { + return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(null)); + } + + public MetadataNested editOrNewMetadata() { + return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(new V1ObjectMetaBuilder().build())); + } + + public MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { + return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(item)); + } + + public V1beta1ClusterTrustBundleSpec buildSpec() { + return this.spec != null ? this.spec.build() : null; + } + + public A withSpec(V1beta1ClusterTrustBundleSpec spec) { + this._visitables.remove("spec"); + if (spec != null) { + this.spec = new V1beta1ClusterTrustBundleSpecBuilder(spec); + this._visitables.get("spec").add(this.spec); + } else { + this.spec = null; + this._visitables.get("spec").remove(this.spec); + } + return (A) this; + } + + public boolean hasSpec() { + return this.spec != null; + } + + public SpecNested withNewSpec() { + return new SpecNested(null); + } + + public SpecNested withNewSpecLike(V1beta1ClusterTrustBundleSpec item) { + return new SpecNested(item); + } + + public SpecNested editSpec() { + return withNewSpecLike(java.util.Optional.ofNullable(buildSpec()).orElse(null)); + } + + public SpecNested editOrNewSpec() { + return withNewSpecLike(java.util.Optional.ofNullable(buildSpec()).orElse(new V1beta1ClusterTrustBundleSpecBuilder().build())); + } + + public SpecNested editOrNewSpecLike(V1beta1ClusterTrustBundleSpec item) { + return withNewSpecLike(java.util.Optional.ofNullable(buildSpec()).orElse(item)); + } + + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + if (!super.equals(o)) return false; + V1beta1ClusterTrustBundleFluent that = (V1beta1ClusterTrustBundleFluent) o; + if (!java.util.Objects.equals(apiVersion, that.apiVersion)) return false; + if (!java.util.Objects.equals(kind, that.kind)) return false; + if (!java.util.Objects.equals(metadata, that.metadata)) return false; + if (!java.util.Objects.equals(spec, that.spec)) return false; + return true; + } + + public int hashCode() { + return java.util.Objects.hash(apiVersion, kind, metadata, spec, super.hashCode()); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (apiVersion != null) { sb.append("apiVersion:"); sb.append(apiVersion + ","); } + if (kind != null) { sb.append("kind:"); sb.append(kind + ","); } + if (metadata != null) { sb.append("metadata:"); sb.append(metadata + ","); } + if (spec != null) { sb.append("spec:"); sb.append(spec); } + sb.append("}"); + return sb.toString(); + } + public class MetadataNested extends V1ObjectMetaFluent> implements Nested{ + MetadataNested(V1ObjectMeta item) { + this.builder = new V1ObjectMetaBuilder(this, item); + } + V1ObjectMetaBuilder builder; + + public N and() { + return (N) V1beta1ClusterTrustBundleFluent.this.withMetadata(builder.build()); + } + + public N endMetadata() { + return and(); + } + + + } + public class SpecNested extends V1beta1ClusterTrustBundleSpecFluent> implements Nested{ + SpecNested(V1beta1ClusterTrustBundleSpec item) { + this.builder = new V1beta1ClusterTrustBundleSpecBuilder(this, item); + } + V1beta1ClusterTrustBundleSpecBuilder builder; + + public N and() { + return (N) V1beta1ClusterTrustBundleFluent.this.withSpec(builder.build()); + } + + public N endSpec() { + return and(); + } + + + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ClusterTrustBundleListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ClusterTrustBundleListBuilder.java new file mode 100644 index 0000000000..25e2ea5149 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ClusterTrustBundleListBuilder.java @@ -0,0 +1,34 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +public class V1beta1ClusterTrustBundleListBuilder extends V1beta1ClusterTrustBundleListFluent implements VisitableBuilder{ + public V1beta1ClusterTrustBundleListBuilder() { + this(new V1beta1ClusterTrustBundleList()); + } + + public V1beta1ClusterTrustBundleListBuilder(V1beta1ClusterTrustBundleListFluent fluent) { + this(fluent, new V1beta1ClusterTrustBundleList()); + } + + public V1beta1ClusterTrustBundleListBuilder(V1beta1ClusterTrustBundleListFluent fluent,V1beta1ClusterTrustBundleList instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1beta1ClusterTrustBundleListBuilder(V1beta1ClusterTrustBundleList instance) { + this.fluent = this; + this.copyInstance(instance); + } + V1beta1ClusterTrustBundleListFluent fluent; + + public V1beta1ClusterTrustBundleList build() { + V1beta1ClusterTrustBundleList buildable = new V1beta1ClusterTrustBundleList(); + buildable.setApiVersion(fluent.getApiVersion()); + buildable.setItems(fluent.buildItems()); + buildable.setKind(fluent.getKind()); + buildable.setMetadata(fluent.buildMetadata()); + return buildable; + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ClusterTrustBundleListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ClusterTrustBundleListFluent.java new file mode 100644 index 0000000000..719c4c77a5 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ClusterTrustBundleListFluent.java @@ -0,0 +1,331 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.Nested; +import java.util.ArrayList; +import java.lang.String; +import java.util.function.Predicate; +import io.kubernetes.client.fluent.BaseFluent; +import java.util.Iterator; +import java.util.Collection; +import java.lang.Object; +import java.util.List; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1beta1ClusterTrustBundleListFluent> extends BaseFluent{ + public V1beta1ClusterTrustBundleListFluent() { + } + + public V1beta1ClusterTrustBundleListFluent(V1beta1ClusterTrustBundleList instance) { + this.copyInstance(instance); + } + private String apiVersion; + private ArrayList items; + private String kind; + private V1ListMetaBuilder metadata; + + protected void copyInstance(V1beta1ClusterTrustBundleList instance) { + instance = (instance != null ? instance : new V1beta1ClusterTrustBundleList()); + if (instance != null) { + this.withApiVersion(instance.getApiVersion()); + this.withItems(instance.getItems()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); + } + } + + public String getApiVersion() { + return this.apiVersion; + } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + + public boolean hasApiVersion() { + return this.apiVersion != null; + } + + public A addToItems(int index,V1beta1ClusterTrustBundle item) { + if (this.items == null) {this.items = new ArrayList();} + V1beta1ClusterTrustBundleBuilder builder = new V1beta1ClusterTrustBundleBuilder(item); + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.add(index, builder); + } + return (A)this; + } + + public A setToItems(int index,V1beta1ClusterTrustBundle item) { + if (this.items == null) {this.items = new ArrayList();} + V1beta1ClusterTrustBundleBuilder builder = new V1beta1ClusterTrustBundleBuilder(item); + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.set(index, builder); + } + return (A)this; + } + + public A addToItems(io.kubernetes.client.openapi.models.V1beta1ClusterTrustBundle... items) { + if (this.items == null) {this.items = new ArrayList();} + for (V1beta1ClusterTrustBundle item : items) {V1beta1ClusterTrustBundleBuilder builder = new V1beta1ClusterTrustBundleBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; + } + + public A addAllToItems(Collection items) { + if (this.items == null) {this.items = new ArrayList();} + for (V1beta1ClusterTrustBundle item : items) {V1beta1ClusterTrustBundleBuilder builder = new V1beta1ClusterTrustBundleBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; + } + + public A removeFromItems(io.kubernetes.client.openapi.models.V1beta1ClusterTrustBundle... items) { + if (this.items == null) return (A)this; + for (V1beta1ClusterTrustBundle item : items) {V1beta1ClusterTrustBundleBuilder builder = new V1beta1ClusterTrustBundleBuilder(item);_visitables.get("items").remove(builder); this.items.remove(builder);} return (A)this; + } + + public A removeAllFromItems(Collection items) { + if (this.items == null) return (A)this; + for (V1beta1ClusterTrustBundle item : items) {V1beta1ClusterTrustBundleBuilder builder = new V1beta1ClusterTrustBundleBuilder(item);_visitables.get("items").remove(builder); this.items.remove(builder);} return (A)this; + } + + public A removeMatchingFromItems(Predicate predicate) { + if (items == null) return (A) this; + final Iterator each = items.iterator(); + final List visitables = _visitables.get("items"); + while (each.hasNext()) { + V1beta1ClusterTrustBundleBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A)this; + } + + public List buildItems() { + return this.items != null ? build(items) : null; + } + + public V1beta1ClusterTrustBundle buildItem(int index) { + return this.items.get(index).build(); + } + + public V1beta1ClusterTrustBundle buildFirstItem() { + return this.items.get(0).build(); + } + + public V1beta1ClusterTrustBundle buildLastItem() { + return this.items.get(items.size() - 1).build(); + } + + public V1beta1ClusterTrustBundle buildMatchingItem(Predicate predicate) { + for (V1beta1ClusterTrustBundleBuilder item : items) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; + } + + public boolean hasMatchingItem(Predicate predicate) { + for (V1beta1ClusterTrustBundleBuilder item : items) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public A withItems(List items) { + if (this.items != null) { + this._visitables.get("items").clear(); + } + if (items != null) { + this.items = new ArrayList(); + for (V1beta1ClusterTrustBundle item : items) { + this.addToItems(item); + } + } else { + this.items = null; + } + return (A) this; + } + + public A withItems(io.kubernetes.client.openapi.models.V1beta1ClusterTrustBundle... items) { + if (this.items != null) { + this.items.clear(); + _visitables.remove("items"); + } + if (items != null) { + for (V1beta1ClusterTrustBundle item : items) { + this.addToItems(item); + } + } + return (A) this; + } + + public boolean hasItems() { + return this.items != null && !this.items.isEmpty(); + } + + public ItemsNested addNewItem() { + return new ItemsNested(-1, null); + } + + public ItemsNested addNewItemLike(V1beta1ClusterTrustBundle item) { + return new ItemsNested(-1, item); + } + + public ItemsNested setNewItemLike(int index,V1beta1ClusterTrustBundle item) { + return new ItemsNested(index, item); + } + + public ItemsNested editItem(int index) { + if (items.size() <= index) throw new RuntimeException("Can't edit items. Index exceeds size."); + return setNewItemLike(index, buildItem(index)); + } + + public ItemsNested editFirstItem() { + if (items.size() == 0) throw new RuntimeException("Can't edit first items. The list is empty."); + return setNewItemLike(0, buildItem(0)); + } + + public ItemsNested editLastItem() { + int index = items.size() - 1; + if (index < 0) throw new RuntimeException("Can't edit last items. The list is empty."); + return setNewItemLike(index, buildItem(index)); + } + + public ItemsNested editMatchingItem(Predicate predicate) { + int index = -1; + for (int i=0;i withNewMetadata() { + return new MetadataNested(null); + } + + public MetadataNested withNewMetadataLike(V1ListMeta item) { + return new MetadataNested(item); + } + + public MetadataNested editMetadata() { + return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(null)); + } + + public MetadataNested editOrNewMetadata() { + return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(new V1ListMetaBuilder().build())); + } + + public MetadataNested editOrNewMetadataLike(V1ListMeta item) { + return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(item)); + } + + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + if (!super.equals(o)) return false; + V1beta1ClusterTrustBundleListFluent that = (V1beta1ClusterTrustBundleListFluent) o; + if (!java.util.Objects.equals(apiVersion, that.apiVersion)) return false; + if (!java.util.Objects.equals(items, that.items)) return false; + if (!java.util.Objects.equals(kind, that.kind)) return false; + if (!java.util.Objects.equals(metadata, that.metadata)) return false; + return true; + } + + public int hashCode() { + return java.util.Objects.hash(apiVersion, items, kind, metadata, super.hashCode()); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (apiVersion != null) { sb.append("apiVersion:"); sb.append(apiVersion + ","); } + if (items != null && !items.isEmpty()) { sb.append("items:"); sb.append(items + ","); } + if (kind != null) { sb.append("kind:"); sb.append(kind + ","); } + if (metadata != null) { sb.append("metadata:"); sb.append(metadata); } + sb.append("}"); + return sb.toString(); + } + public class ItemsNested extends V1beta1ClusterTrustBundleFluent> implements Nested{ + ItemsNested(int index,V1beta1ClusterTrustBundle item) { + this.index = index; + this.builder = new V1beta1ClusterTrustBundleBuilder(this, item); + } + V1beta1ClusterTrustBundleBuilder builder; + int index; + + public N and() { + return (N) V1beta1ClusterTrustBundleListFluent.this.setToItems(index,builder.build()); + } + + public N endItem() { + return and(); + } + + + } + public class MetadataNested extends V1ListMetaFluent> implements Nested{ + MetadataNested(V1ListMeta item) { + this.builder = new V1ListMetaBuilder(this, item); + } + V1ListMetaBuilder builder; + + public N and() { + return (N) V1beta1ClusterTrustBundleListFluent.this.withMetadata(builder.build()); + } + + public N endMetadata() { + return and(); + } + + + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ClusterTrustBundleSpecBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ClusterTrustBundleSpecBuilder.java new file mode 100644 index 0000000000..ccb75742d5 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ClusterTrustBundleSpecBuilder.java @@ -0,0 +1,32 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +public class V1beta1ClusterTrustBundleSpecBuilder extends V1beta1ClusterTrustBundleSpecFluent implements VisitableBuilder{ + public V1beta1ClusterTrustBundleSpecBuilder() { + this(new V1beta1ClusterTrustBundleSpec()); + } + + public V1beta1ClusterTrustBundleSpecBuilder(V1beta1ClusterTrustBundleSpecFluent fluent) { + this(fluent, new V1beta1ClusterTrustBundleSpec()); + } + + public V1beta1ClusterTrustBundleSpecBuilder(V1beta1ClusterTrustBundleSpecFluent fluent,V1beta1ClusterTrustBundleSpec instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1beta1ClusterTrustBundleSpecBuilder(V1beta1ClusterTrustBundleSpec instance) { + this.fluent = this; + this.copyInstance(instance); + } + V1beta1ClusterTrustBundleSpecFluent fluent; + + public V1beta1ClusterTrustBundleSpec build() { + V1beta1ClusterTrustBundleSpec buildable = new V1beta1ClusterTrustBundleSpec(); + buildable.setSignerName(fluent.getSignerName()); + buildable.setTrustBundle(fluent.getTrustBundle()); + return buildable; + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ClusterTrustBundleSpecFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ClusterTrustBundleSpecFluent.java new file mode 100644 index 0000000000..77a1e99e7b --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ClusterTrustBundleSpecFluent.java @@ -0,0 +1,80 @@ +package io.kubernetes.client.openapi.models; + +import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Object; +import java.lang.String; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1beta1ClusterTrustBundleSpecFluent> extends BaseFluent{ + public V1beta1ClusterTrustBundleSpecFluent() { + } + + public V1beta1ClusterTrustBundleSpecFluent(V1beta1ClusterTrustBundleSpec instance) { + this.copyInstance(instance); + } + private String signerName; + private String trustBundle; + + protected void copyInstance(V1beta1ClusterTrustBundleSpec instance) { + instance = (instance != null ? instance : new V1beta1ClusterTrustBundleSpec()); + if (instance != null) { + this.withSignerName(instance.getSignerName()); + this.withTrustBundle(instance.getTrustBundle()); + } + } + + public String getSignerName() { + return this.signerName; + } + + public A withSignerName(String signerName) { + this.signerName = signerName; + return (A) this; + } + + public boolean hasSignerName() { + return this.signerName != null; + } + + public String getTrustBundle() { + return this.trustBundle; + } + + public A withTrustBundle(String trustBundle) { + this.trustBundle = trustBundle; + return (A) this; + } + + public boolean hasTrustBundle() { + return this.trustBundle != null; + } + + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + if (!super.equals(o)) return false; + V1beta1ClusterTrustBundleSpecFluent that = (V1beta1ClusterTrustBundleSpecFluent) o; + if (!java.util.Objects.equals(signerName, that.signerName)) return false; + if (!java.util.Objects.equals(trustBundle, that.trustBundle)) return false; + return true; + } + + public int hashCode() { + return java.util.Objects.hash(signerName, trustBundle, super.hashCode()); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (signerName != null) { sb.append("signerName:"); sb.append(signerName + ","); } + if (trustBundle != null) { sb.append("trustBundle:"); sb.append(trustBundle); } + sb.append("}"); + return sb.toString(); + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1CounterBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1CounterBuilder.java new file mode 100644 index 0000000000..a4333cf6b6 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1CounterBuilder.java @@ -0,0 +1,31 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +public class V1beta1CounterBuilder extends V1beta1CounterFluent implements VisitableBuilder{ + public V1beta1CounterBuilder() { + this(new V1beta1Counter()); + } + + public V1beta1CounterBuilder(V1beta1CounterFluent fluent) { + this(fluent, new V1beta1Counter()); + } + + public V1beta1CounterBuilder(V1beta1CounterFluent fluent,V1beta1Counter instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1beta1CounterBuilder(V1beta1Counter instance) { + this.fluent = this; + this.copyInstance(instance); + } + V1beta1CounterFluent fluent; + + public V1beta1Counter build() { + V1beta1Counter buildable = new V1beta1Counter(); + buildable.setValue(fluent.getValue()); + return buildable; + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1CounterFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1CounterFluent.java new file mode 100644 index 0000000000..39f29cb75a --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1CounterFluent.java @@ -0,0 +1,68 @@ +package io.kubernetes.client.openapi.models; + +import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.custom.Quantity; +import java.lang.Object; +import java.lang.String; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1beta1CounterFluent> extends BaseFluent{ + public V1beta1CounterFluent() { + } + + public V1beta1CounterFluent(V1beta1Counter instance) { + this.copyInstance(instance); + } + private Quantity value; + + protected void copyInstance(V1beta1Counter instance) { + instance = (instance != null ? instance : new V1beta1Counter()); + if (instance != null) { + this.withValue(instance.getValue()); + } + } + + public Quantity getValue() { + return this.value; + } + + public A withValue(Quantity value) { + this.value = value; + return (A) this; + } + + public boolean hasValue() { + return this.value != null; + } + + public A withNewValue(String value) { + return (A)withValue(new Quantity(value)); + } + + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + if (!super.equals(o)) return false; + V1beta1CounterFluent that = (V1beta1CounterFluent) o; + if (!java.util.Objects.equals(value, that.value)) return false; + return true; + } + + public int hashCode() { + return java.util.Objects.hash(value, super.hashCode()); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (value != null) { sb.append("value:"); sb.append(value); } + sb.append("}"); + return sb.toString(); + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1CounterSetBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1CounterSetBuilder.java new file mode 100644 index 0000000000..30c93bae4e --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1CounterSetBuilder.java @@ -0,0 +1,32 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +public class V1beta1CounterSetBuilder extends V1beta1CounterSetFluent implements VisitableBuilder{ + public V1beta1CounterSetBuilder() { + this(new V1beta1CounterSet()); + } + + public V1beta1CounterSetBuilder(V1beta1CounterSetFluent fluent) { + this(fluent, new V1beta1CounterSet()); + } + + public V1beta1CounterSetBuilder(V1beta1CounterSetFluent fluent,V1beta1CounterSet instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1beta1CounterSetBuilder(V1beta1CounterSet instance) { + this.fluent = this; + this.copyInstance(instance); + } + V1beta1CounterSetFluent fluent; + + public V1beta1CounterSet build() { + V1beta1CounterSet buildable = new V1beta1CounterSet(); + buildable.setCounters(fluent.getCounters()); + buildable.setName(fluent.getName()); + return buildable; + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1CounterSetFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1CounterSetFluent.java new file mode 100644 index 0000000000..33f4147a51 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1CounterSetFluent.java @@ -0,0 +1,106 @@ +package io.kubernetes.client.openapi.models; + +import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Object; +import java.lang.String; +import java.util.Map; +import java.util.LinkedHashMap; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1beta1CounterSetFluent> extends BaseFluent{ + public V1beta1CounterSetFluent() { + } + + public V1beta1CounterSetFluent(V1beta1CounterSet instance) { + this.copyInstance(instance); + } + private Map counters; + private String name; + + protected void copyInstance(V1beta1CounterSet instance) { + instance = (instance != null ? instance : new V1beta1CounterSet()); + if (instance != null) { + this.withCounters(instance.getCounters()); + this.withName(instance.getName()); + } + } + + public A addToCounters(String key,V1beta1Counter value) { + if(this.counters == null && key != null && value != null) { this.counters = new LinkedHashMap(); } + if(key != null && value != null) {this.counters.put(key, value);} return (A)this; + } + + public A addToCounters(Map map) { + if(this.counters == null && map != null) { this.counters = new LinkedHashMap(); } + if(map != null) { this.counters.putAll(map);} return (A)this; + } + + public A removeFromCounters(String key) { + if(this.counters == null) { return (A) this; } + if(key != null && this.counters != null) {this.counters.remove(key);} return (A)this; + } + + public A removeFromCounters(Map map) { + if(this.counters == null) { return (A) this; } + if(map != null) { for(Object key : map.keySet()) {if (this.counters != null){this.counters.remove(key);}}} return (A)this; + } + + public Map getCounters() { + return this.counters; + } + + public A withCounters(Map counters) { + if (counters == null) { + this.counters = null; + } else { + this.counters = new LinkedHashMap(counters); + } + return (A) this; + } + + public boolean hasCounters() { + return this.counters != null; + } + + public String getName() { + return this.name; + } + + public A withName(String name) { + this.name = name; + return (A) this; + } + + public boolean hasName() { + return this.name != null; + } + + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + if (!super.equals(o)) return false; + V1beta1CounterSetFluent that = (V1beta1CounterSetFluent) o; + if (!java.util.Objects.equals(counters, that.counters)) return false; + if (!java.util.Objects.equals(name, that.name)) return false; + return true; + } + + public int hashCode() { + return java.util.Objects.hash(counters, name, super.hashCode()); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (counters != null && !counters.isEmpty()) { sb.append("counters:"); sb.append(counters + ","); } + if (name != null) { sb.append("name:"); sb.append(name); } + sb.append("}"); + return sb.toString(); + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceAllocationConfigurationBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceAllocationConfigurationBuilder.java new file mode 100644 index 0000000000..5e7a4ebf65 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceAllocationConfigurationBuilder.java @@ -0,0 +1,33 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +public class V1beta1DeviceAllocationConfigurationBuilder extends V1beta1DeviceAllocationConfigurationFluent implements VisitableBuilder{ + public V1beta1DeviceAllocationConfigurationBuilder() { + this(new V1beta1DeviceAllocationConfiguration()); + } + + public V1beta1DeviceAllocationConfigurationBuilder(V1beta1DeviceAllocationConfigurationFluent fluent) { + this(fluent, new V1beta1DeviceAllocationConfiguration()); + } + + public V1beta1DeviceAllocationConfigurationBuilder(V1beta1DeviceAllocationConfigurationFluent fluent,V1beta1DeviceAllocationConfiguration instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1beta1DeviceAllocationConfigurationBuilder(V1beta1DeviceAllocationConfiguration instance) { + this.fluent = this; + this.copyInstance(instance); + } + V1beta1DeviceAllocationConfigurationFluent fluent; + + public V1beta1DeviceAllocationConfiguration build() { + V1beta1DeviceAllocationConfiguration buildable = new V1beta1DeviceAllocationConfiguration(); + buildable.setOpaque(fluent.buildOpaque()); + buildable.setRequests(fluent.getRequests()); + buildable.setSource(fluent.getSource()); + return buildable; + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceAllocationConfigurationFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceAllocationConfigurationFluent.java new file mode 100644 index 0000000000..4ce0ef0315 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceAllocationConfigurationFluent.java @@ -0,0 +1,225 @@ +package io.kubernetes.client.openapi.models; + +import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.Nested; +import java.util.ArrayList; +import java.lang.String; +import java.util.function.Predicate; +import io.kubernetes.client.fluent.BaseFluent; +import java.util.Collection; +import java.lang.Object; +import java.util.List; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1beta1DeviceAllocationConfigurationFluent> extends BaseFluent{ + public V1beta1DeviceAllocationConfigurationFluent() { + } + + public V1beta1DeviceAllocationConfigurationFluent(V1beta1DeviceAllocationConfiguration instance) { + this.copyInstance(instance); + } + private V1beta1OpaqueDeviceConfigurationBuilder opaque; + private List requests; + private String source; + + protected void copyInstance(V1beta1DeviceAllocationConfiguration instance) { + instance = (instance != null ? instance : new V1beta1DeviceAllocationConfiguration()); + if (instance != null) { + this.withOpaque(instance.getOpaque()); + this.withRequests(instance.getRequests()); + this.withSource(instance.getSource()); + } + } + + public V1beta1OpaqueDeviceConfiguration buildOpaque() { + return this.opaque != null ? this.opaque.build() : null; + } + + public A withOpaque(V1beta1OpaqueDeviceConfiguration opaque) { + this._visitables.remove("opaque"); + if (opaque != null) { + this.opaque = new V1beta1OpaqueDeviceConfigurationBuilder(opaque); + this._visitables.get("opaque").add(this.opaque); + } else { + this.opaque = null; + this._visitables.get("opaque").remove(this.opaque); + } + return (A) this; + } + + public boolean hasOpaque() { + return this.opaque != null; + } + + public OpaqueNested withNewOpaque() { + return new OpaqueNested(null); + } + + public OpaqueNested withNewOpaqueLike(V1beta1OpaqueDeviceConfiguration item) { + return new OpaqueNested(item); + } + + public OpaqueNested editOpaque() { + return withNewOpaqueLike(java.util.Optional.ofNullable(buildOpaque()).orElse(null)); + } + + public OpaqueNested editOrNewOpaque() { + return withNewOpaqueLike(java.util.Optional.ofNullable(buildOpaque()).orElse(new V1beta1OpaqueDeviceConfigurationBuilder().build())); + } + + public OpaqueNested editOrNewOpaqueLike(V1beta1OpaqueDeviceConfiguration item) { + return withNewOpaqueLike(java.util.Optional.ofNullable(buildOpaque()).orElse(item)); + } + + public A addToRequests(int index,String item) { + if (this.requests == null) {this.requests = new ArrayList();} + this.requests.add(index, item); + return (A)this; + } + + public A setToRequests(int index,String item) { + if (this.requests == null) {this.requests = new ArrayList();} + this.requests.set(index, item); return (A)this; + } + + public A addToRequests(java.lang.String... items) { + if (this.requests == null) {this.requests = new ArrayList();} + for (String item : items) {this.requests.add(item);} return (A)this; + } + + public A addAllToRequests(Collection items) { + if (this.requests == null) {this.requests = new ArrayList();} + for (String item : items) {this.requests.add(item);} return (A)this; + } + + public A removeFromRequests(java.lang.String... items) { + if (this.requests == null) return (A)this; + for (String item : items) { this.requests.remove(item);} return (A)this; + } + + public A removeAllFromRequests(Collection items) { + if (this.requests == null) return (A)this; + for (String item : items) { this.requests.remove(item);} return (A)this; + } + + public List getRequests() { + return this.requests; + } + + public String getRequest(int index) { + return this.requests.get(index); + } + + public String getFirstRequest() { + return this.requests.get(0); + } + + public String getLastRequest() { + return this.requests.get(requests.size() - 1); + } + + public String getMatchingRequest(Predicate predicate) { + for (String item : requests) { + if (predicate.test(item)) { + return item; + } + } + return null; + } + + public boolean hasMatchingRequest(Predicate predicate) { + for (String item : requests) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public A withRequests(List requests) { + if (requests != null) { + this.requests = new ArrayList(); + for (String item : requests) { + this.addToRequests(item); + } + } else { + this.requests = null; + } + return (A) this; + } + + public A withRequests(java.lang.String... requests) { + if (this.requests != null) { + this.requests.clear(); + _visitables.remove("requests"); + } + if (requests != null) { + for (String item : requests) { + this.addToRequests(item); + } + } + return (A) this; + } + + public boolean hasRequests() { + return this.requests != null && !this.requests.isEmpty(); + } + + public String getSource() { + return this.source; + } + + public A withSource(String source) { + this.source = source; + return (A) this; + } + + public boolean hasSource() { + return this.source != null; + } + + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + if (!super.equals(o)) return false; + V1beta1DeviceAllocationConfigurationFluent that = (V1beta1DeviceAllocationConfigurationFluent) o; + if (!java.util.Objects.equals(opaque, that.opaque)) return false; + if (!java.util.Objects.equals(requests, that.requests)) return false; + if (!java.util.Objects.equals(source, that.source)) return false; + return true; + } + + public int hashCode() { + return java.util.Objects.hash(opaque, requests, source, super.hashCode()); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (opaque != null) { sb.append("opaque:"); sb.append(opaque + ","); } + if (requests != null && !requests.isEmpty()) { sb.append("requests:"); sb.append(requests + ","); } + if (source != null) { sb.append("source:"); sb.append(source); } + sb.append("}"); + return sb.toString(); + } + public class OpaqueNested extends V1beta1OpaqueDeviceConfigurationFluent> implements Nested{ + OpaqueNested(V1beta1OpaqueDeviceConfiguration item) { + this.builder = new V1beta1OpaqueDeviceConfigurationBuilder(this, item); + } + V1beta1OpaqueDeviceConfigurationBuilder builder; + + public N and() { + return (N) V1beta1DeviceAllocationConfigurationFluent.this.withOpaque(builder.build()); + } + + public N endOpaque() { + return and(); + } + + + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceAllocationResultBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceAllocationResultBuilder.java new file mode 100644 index 0000000000..11c0d3b31c --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceAllocationResultBuilder.java @@ -0,0 +1,32 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +public class V1beta1DeviceAllocationResultBuilder extends V1beta1DeviceAllocationResultFluent implements VisitableBuilder{ + public V1beta1DeviceAllocationResultBuilder() { + this(new V1beta1DeviceAllocationResult()); + } + + public V1beta1DeviceAllocationResultBuilder(V1beta1DeviceAllocationResultFluent fluent) { + this(fluent, new V1beta1DeviceAllocationResult()); + } + + public V1beta1DeviceAllocationResultBuilder(V1beta1DeviceAllocationResultFluent fluent,V1beta1DeviceAllocationResult instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1beta1DeviceAllocationResultBuilder(V1beta1DeviceAllocationResult instance) { + this.fluent = this; + this.copyInstance(instance); + } + V1beta1DeviceAllocationResultFluent fluent; + + public V1beta1DeviceAllocationResult build() { + V1beta1DeviceAllocationResult buildable = new V1beta1DeviceAllocationResult(); + buildable.setConfig(fluent.buildConfig()); + buildable.setResults(fluent.buildResults()); + return buildable; + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceAllocationResultFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceAllocationResultFluent.java new file mode 100644 index 0000000000..c5d6696e17 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceAllocationResultFluent.java @@ -0,0 +1,422 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.Nested; +import java.util.ArrayList; +import java.lang.String; +import java.util.function.Predicate; +import io.kubernetes.client.fluent.BaseFluent; +import java.util.Iterator; +import java.util.Collection; +import java.lang.Object; +import java.util.List; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1beta1DeviceAllocationResultFluent> extends BaseFluent{ + public V1beta1DeviceAllocationResultFluent() { + } + + public V1beta1DeviceAllocationResultFluent(V1beta1DeviceAllocationResult instance) { + this.copyInstance(instance); + } + private ArrayList config; + private ArrayList results; + + protected void copyInstance(V1beta1DeviceAllocationResult instance) { + instance = (instance != null ? instance : new V1beta1DeviceAllocationResult()); + if (instance != null) { + this.withConfig(instance.getConfig()); + this.withResults(instance.getResults()); + } + } + + public A addToConfig(int index,V1beta1DeviceAllocationConfiguration item) { + if (this.config == null) {this.config = new ArrayList();} + V1beta1DeviceAllocationConfigurationBuilder builder = new V1beta1DeviceAllocationConfigurationBuilder(item); + if (index < 0 || index >= config.size()) { + _visitables.get("config").add(builder); + config.add(builder); + } else { + _visitables.get("config").add(builder); + config.add(index, builder); + } + return (A)this; + } + + public A setToConfig(int index,V1beta1DeviceAllocationConfiguration item) { + if (this.config == null) {this.config = new ArrayList();} + V1beta1DeviceAllocationConfigurationBuilder builder = new V1beta1DeviceAllocationConfigurationBuilder(item); + if (index < 0 || index >= config.size()) { + _visitables.get("config").add(builder); + config.add(builder); + } else { + _visitables.get("config").add(builder); + config.set(index, builder); + } + return (A)this; + } + + public A addToConfig(io.kubernetes.client.openapi.models.V1beta1DeviceAllocationConfiguration... items) { + if (this.config == null) {this.config = new ArrayList();} + for (V1beta1DeviceAllocationConfiguration item : items) {V1beta1DeviceAllocationConfigurationBuilder builder = new V1beta1DeviceAllocationConfigurationBuilder(item);_visitables.get("config").add(builder);this.config.add(builder);} return (A)this; + } + + public A addAllToConfig(Collection items) { + if (this.config == null) {this.config = new ArrayList();} + for (V1beta1DeviceAllocationConfiguration item : items) {V1beta1DeviceAllocationConfigurationBuilder builder = new V1beta1DeviceAllocationConfigurationBuilder(item);_visitables.get("config").add(builder);this.config.add(builder);} return (A)this; + } + + public A removeFromConfig(io.kubernetes.client.openapi.models.V1beta1DeviceAllocationConfiguration... items) { + if (this.config == null) return (A)this; + for (V1beta1DeviceAllocationConfiguration item : items) {V1beta1DeviceAllocationConfigurationBuilder builder = new V1beta1DeviceAllocationConfigurationBuilder(item);_visitables.get("config").remove(builder); this.config.remove(builder);} return (A)this; + } + + public A removeAllFromConfig(Collection items) { + if (this.config == null) return (A)this; + for (V1beta1DeviceAllocationConfiguration item : items) {V1beta1DeviceAllocationConfigurationBuilder builder = new V1beta1DeviceAllocationConfigurationBuilder(item);_visitables.get("config").remove(builder); this.config.remove(builder);} return (A)this; + } + + public A removeMatchingFromConfig(Predicate predicate) { + if (config == null) return (A) this; + final Iterator each = config.iterator(); + final List visitables = _visitables.get("config"); + while (each.hasNext()) { + V1beta1DeviceAllocationConfigurationBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A)this; + } + + public List buildConfig() { + return this.config != null ? build(config) : null; + } + + public V1beta1DeviceAllocationConfiguration buildConfig(int index) { + return this.config.get(index).build(); + } + + public V1beta1DeviceAllocationConfiguration buildFirstConfig() { + return this.config.get(0).build(); + } + + public V1beta1DeviceAllocationConfiguration buildLastConfig() { + return this.config.get(config.size() - 1).build(); + } + + public V1beta1DeviceAllocationConfiguration buildMatchingConfig(Predicate predicate) { + for (V1beta1DeviceAllocationConfigurationBuilder item : config) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; + } + + public boolean hasMatchingConfig(Predicate predicate) { + for (V1beta1DeviceAllocationConfigurationBuilder item : config) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public A withConfig(List config) { + if (this.config != null) { + this._visitables.get("config").clear(); + } + if (config != null) { + this.config = new ArrayList(); + for (V1beta1DeviceAllocationConfiguration item : config) { + this.addToConfig(item); + } + } else { + this.config = null; + } + return (A) this; + } + + public A withConfig(io.kubernetes.client.openapi.models.V1beta1DeviceAllocationConfiguration... config) { + if (this.config != null) { + this.config.clear(); + _visitables.remove("config"); + } + if (config != null) { + for (V1beta1DeviceAllocationConfiguration item : config) { + this.addToConfig(item); + } + } + return (A) this; + } + + public boolean hasConfig() { + return this.config != null && !this.config.isEmpty(); + } + + public ConfigNested addNewConfig() { + return new ConfigNested(-1, null); + } + + public ConfigNested addNewConfigLike(V1beta1DeviceAllocationConfiguration item) { + return new ConfigNested(-1, item); + } + + public ConfigNested setNewConfigLike(int index,V1beta1DeviceAllocationConfiguration item) { + return new ConfigNested(index, item); + } + + public ConfigNested editConfig(int index) { + if (config.size() <= index) throw new RuntimeException("Can't edit config. Index exceeds size."); + return setNewConfigLike(index, buildConfig(index)); + } + + public ConfigNested editFirstConfig() { + if (config.size() == 0) throw new RuntimeException("Can't edit first config. The list is empty."); + return setNewConfigLike(0, buildConfig(0)); + } + + public ConfigNested editLastConfig() { + int index = config.size() - 1; + if (index < 0) throw new RuntimeException("Can't edit last config. The list is empty."); + return setNewConfigLike(index, buildConfig(index)); + } + + public ConfigNested editMatchingConfig(Predicate predicate) { + int index = -1; + for (int i=0;i();} + V1beta1DeviceRequestAllocationResultBuilder builder = new V1beta1DeviceRequestAllocationResultBuilder(item); + if (index < 0 || index >= results.size()) { + _visitables.get("results").add(builder); + results.add(builder); + } else { + _visitables.get("results").add(builder); + results.add(index, builder); + } + return (A)this; + } + + public A setToResults(int index,V1beta1DeviceRequestAllocationResult item) { + if (this.results == null) {this.results = new ArrayList();} + V1beta1DeviceRequestAllocationResultBuilder builder = new V1beta1DeviceRequestAllocationResultBuilder(item); + if (index < 0 || index >= results.size()) { + _visitables.get("results").add(builder); + results.add(builder); + } else { + _visitables.get("results").add(builder); + results.set(index, builder); + } + return (A)this; + } + + public A addToResults(io.kubernetes.client.openapi.models.V1beta1DeviceRequestAllocationResult... items) { + if (this.results == null) {this.results = new ArrayList();} + for (V1beta1DeviceRequestAllocationResult item : items) {V1beta1DeviceRequestAllocationResultBuilder builder = new V1beta1DeviceRequestAllocationResultBuilder(item);_visitables.get("results").add(builder);this.results.add(builder);} return (A)this; + } + + public A addAllToResults(Collection items) { + if (this.results == null) {this.results = new ArrayList();} + for (V1beta1DeviceRequestAllocationResult item : items) {V1beta1DeviceRequestAllocationResultBuilder builder = new V1beta1DeviceRequestAllocationResultBuilder(item);_visitables.get("results").add(builder);this.results.add(builder);} return (A)this; + } + + public A removeFromResults(io.kubernetes.client.openapi.models.V1beta1DeviceRequestAllocationResult... items) { + if (this.results == null) return (A)this; + for (V1beta1DeviceRequestAllocationResult item : items) {V1beta1DeviceRequestAllocationResultBuilder builder = new V1beta1DeviceRequestAllocationResultBuilder(item);_visitables.get("results").remove(builder); this.results.remove(builder);} return (A)this; + } + + public A removeAllFromResults(Collection items) { + if (this.results == null) return (A)this; + for (V1beta1DeviceRequestAllocationResult item : items) {V1beta1DeviceRequestAllocationResultBuilder builder = new V1beta1DeviceRequestAllocationResultBuilder(item);_visitables.get("results").remove(builder); this.results.remove(builder);} return (A)this; + } + + public A removeMatchingFromResults(Predicate predicate) { + if (results == null) return (A) this; + final Iterator each = results.iterator(); + final List visitables = _visitables.get("results"); + while (each.hasNext()) { + V1beta1DeviceRequestAllocationResultBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A)this; + } + + public List buildResults() { + return this.results != null ? build(results) : null; + } + + public V1beta1DeviceRequestAllocationResult buildResult(int index) { + return this.results.get(index).build(); + } + + public V1beta1DeviceRequestAllocationResult buildFirstResult() { + return this.results.get(0).build(); + } + + public V1beta1DeviceRequestAllocationResult buildLastResult() { + return this.results.get(results.size() - 1).build(); + } + + public V1beta1DeviceRequestAllocationResult buildMatchingResult(Predicate predicate) { + for (V1beta1DeviceRequestAllocationResultBuilder item : results) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; + } + + public boolean hasMatchingResult(Predicate predicate) { + for (V1beta1DeviceRequestAllocationResultBuilder item : results) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public A withResults(List results) { + if (this.results != null) { + this._visitables.get("results").clear(); + } + if (results != null) { + this.results = new ArrayList(); + for (V1beta1DeviceRequestAllocationResult item : results) { + this.addToResults(item); + } + } else { + this.results = null; + } + return (A) this; + } + + public A withResults(io.kubernetes.client.openapi.models.V1beta1DeviceRequestAllocationResult... results) { + if (this.results != null) { + this.results.clear(); + _visitables.remove("results"); + } + if (results != null) { + for (V1beta1DeviceRequestAllocationResult item : results) { + this.addToResults(item); + } + } + return (A) this; + } + + public boolean hasResults() { + return this.results != null && !this.results.isEmpty(); + } + + public ResultsNested addNewResult() { + return new ResultsNested(-1, null); + } + + public ResultsNested addNewResultLike(V1beta1DeviceRequestAllocationResult item) { + return new ResultsNested(-1, item); + } + + public ResultsNested setNewResultLike(int index,V1beta1DeviceRequestAllocationResult item) { + return new ResultsNested(index, item); + } + + public ResultsNested editResult(int index) { + if (results.size() <= index) throw new RuntimeException("Can't edit results. Index exceeds size."); + return setNewResultLike(index, buildResult(index)); + } + + public ResultsNested editFirstResult() { + if (results.size() == 0) throw new RuntimeException("Can't edit first results. The list is empty."); + return setNewResultLike(0, buildResult(0)); + } + + public ResultsNested editLastResult() { + int index = results.size() - 1; + if (index < 0) throw new RuntimeException("Can't edit last results. The list is empty."); + return setNewResultLike(index, buildResult(index)); + } + + public ResultsNested editMatchingResult(Predicate predicate) { + int index = -1; + for (int i=0;i extends V1beta1DeviceAllocationConfigurationFluent> implements Nested{ + ConfigNested(int index,V1beta1DeviceAllocationConfiguration item) { + this.index = index; + this.builder = new V1beta1DeviceAllocationConfigurationBuilder(this, item); + } + V1beta1DeviceAllocationConfigurationBuilder builder; + int index; + + public N and() { + return (N) V1beta1DeviceAllocationResultFluent.this.setToConfig(index,builder.build()); + } + + public N endConfig() { + return and(); + } + + + } + public class ResultsNested extends V1beta1DeviceRequestAllocationResultFluent> implements Nested{ + ResultsNested(int index,V1beta1DeviceRequestAllocationResult item) { + this.index = index; + this.builder = new V1beta1DeviceRequestAllocationResultBuilder(this, item); + } + V1beta1DeviceRequestAllocationResultBuilder builder; + int index; + + public N and() { + return (N) V1beta1DeviceAllocationResultFluent.this.setToResults(index,builder.build()); + } + + public N endResult() { + return and(); + } + + + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceAttributeBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceAttributeBuilder.java new file mode 100644 index 0000000000..2ae5e69b93 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceAttributeBuilder.java @@ -0,0 +1,34 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +public class V1beta1DeviceAttributeBuilder extends V1beta1DeviceAttributeFluent implements VisitableBuilder{ + public V1beta1DeviceAttributeBuilder() { + this(new V1beta1DeviceAttribute()); + } + + public V1beta1DeviceAttributeBuilder(V1beta1DeviceAttributeFluent fluent) { + this(fluent, new V1beta1DeviceAttribute()); + } + + public V1beta1DeviceAttributeBuilder(V1beta1DeviceAttributeFluent fluent,V1beta1DeviceAttribute instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1beta1DeviceAttributeBuilder(V1beta1DeviceAttribute instance) { + this.fluent = this; + this.copyInstance(instance); + } + V1beta1DeviceAttributeFluent fluent; + + public V1beta1DeviceAttribute build() { + V1beta1DeviceAttribute buildable = new V1beta1DeviceAttribute(); + buildable.setBool(fluent.getBool()); + buildable.setInt(fluent.getInt()); + buildable.setString(fluent.getString()); + buildable.setVersion(fluent.getVersion()); + return buildable; + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceAttributeFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceAttributeFluent.java new file mode 100644 index 0000000000..df326a8613 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceAttributeFluent.java @@ -0,0 +1,120 @@ +package io.kubernetes.client.openapi.models; + +import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Long; +import java.lang.Object; +import java.lang.String; +import java.lang.Boolean; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1beta1DeviceAttributeFluent> extends BaseFluent{ + public V1beta1DeviceAttributeFluent() { + } + + public V1beta1DeviceAttributeFluent(V1beta1DeviceAttribute instance) { + this.copyInstance(instance); + } + private Boolean bool; + private Long _int; + private String string; + private String version; + + protected void copyInstance(V1beta1DeviceAttribute instance) { + instance = (instance != null ? instance : new V1beta1DeviceAttribute()); + if (instance != null) { + this.withBool(instance.getBool()); + this.withInt(instance.getInt()); + this.withString(instance.getString()); + this.withVersion(instance.getVersion()); + } + } + + public Boolean getBool() { + return this.bool; + } + + public A withBool(Boolean bool) { + this.bool = bool; + return (A) this; + } + + public boolean hasBool() { + return this.bool != null; + } + + public Long getInt() { + return this._int; + } + + public A withInt(Long _int) { + this._int = _int; + return (A) this; + } + + public boolean hasInt() { + return this._int != null; + } + + public String getString() { + return this.string; + } + + public A withString(String string) { + this.string = string; + return (A) this; + } + + public boolean hasString() { + return this.string != null; + } + + public String getVersion() { + return this.version; + } + + public A withVersion(String version) { + this.version = version; + return (A) this; + } + + public boolean hasVersion() { + return this.version != null; + } + + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + if (!super.equals(o)) return false; + V1beta1DeviceAttributeFluent that = (V1beta1DeviceAttributeFluent) o; + if (!java.util.Objects.equals(bool, that.bool)) return false; + if (!java.util.Objects.equals(_int, that._int)) return false; + if (!java.util.Objects.equals(string, that.string)) return false; + if (!java.util.Objects.equals(version, that.version)) return false; + return true; + } + + public int hashCode() { + return java.util.Objects.hash(bool, _int, string, version, super.hashCode()); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (bool != null) { sb.append("bool:"); sb.append(bool + ","); } + if (_int != null) { sb.append("_int:"); sb.append(_int + ","); } + if (string != null) { sb.append("string:"); sb.append(string + ","); } + if (version != null) { sb.append("version:"); sb.append(version); } + sb.append("}"); + return sb.toString(); + } + + public A withBool() { + return withBool(true); + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceBuilder.java new file mode 100644 index 0000000000..501a599b9a --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceBuilder.java @@ -0,0 +1,32 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +public class V1beta1DeviceBuilder extends V1beta1DeviceFluent implements VisitableBuilder{ + public V1beta1DeviceBuilder() { + this(new V1beta1Device()); + } + + public V1beta1DeviceBuilder(V1beta1DeviceFluent fluent) { + this(fluent, new V1beta1Device()); + } + + public V1beta1DeviceBuilder(V1beta1DeviceFluent fluent,V1beta1Device instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1beta1DeviceBuilder(V1beta1Device instance) { + this.fluent = this; + this.copyInstance(instance); + } + V1beta1DeviceFluent fluent; + + public V1beta1Device build() { + V1beta1Device buildable = new V1beta1Device(); + buildable.setBasic(fluent.buildBasic()); + buildable.setName(fluent.getName()); + return buildable; + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceCapacityBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceCapacityBuilder.java new file mode 100644 index 0000000000..40d62bfa74 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceCapacityBuilder.java @@ -0,0 +1,31 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +public class V1beta1DeviceCapacityBuilder extends V1beta1DeviceCapacityFluent implements VisitableBuilder{ + public V1beta1DeviceCapacityBuilder() { + this(new V1beta1DeviceCapacity()); + } + + public V1beta1DeviceCapacityBuilder(V1beta1DeviceCapacityFluent fluent) { + this(fluent, new V1beta1DeviceCapacity()); + } + + public V1beta1DeviceCapacityBuilder(V1beta1DeviceCapacityFluent fluent,V1beta1DeviceCapacity instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1beta1DeviceCapacityBuilder(V1beta1DeviceCapacity instance) { + this.fluent = this; + this.copyInstance(instance); + } + V1beta1DeviceCapacityFluent fluent; + + public V1beta1DeviceCapacity build() { + V1beta1DeviceCapacity buildable = new V1beta1DeviceCapacity(); + buildable.setValue(fluent.getValue()); + return buildable; + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceCapacityFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceCapacityFluent.java new file mode 100644 index 0000000000..f08e92dd58 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceCapacityFluent.java @@ -0,0 +1,68 @@ +package io.kubernetes.client.openapi.models; + +import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.custom.Quantity; +import java.lang.Object; +import java.lang.String; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1beta1DeviceCapacityFluent> extends BaseFluent{ + public V1beta1DeviceCapacityFluent() { + } + + public V1beta1DeviceCapacityFluent(V1beta1DeviceCapacity instance) { + this.copyInstance(instance); + } + private Quantity value; + + protected void copyInstance(V1beta1DeviceCapacity instance) { + instance = (instance != null ? instance : new V1beta1DeviceCapacity()); + if (instance != null) { + this.withValue(instance.getValue()); + } + } + + public Quantity getValue() { + return this.value; + } + + public A withValue(Quantity value) { + this.value = value; + return (A) this; + } + + public boolean hasValue() { + return this.value != null; + } + + public A withNewValue(String value) { + return (A)withValue(new Quantity(value)); + } + + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + if (!super.equals(o)) return false; + V1beta1DeviceCapacityFluent that = (V1beta1DeviceCapacityFluent) o; + if (!java.util.Objects.equals(value, that.value)) return false; + return true; + } + + public int hashCode() { + return java.util.Objects.hash(value, super.hashCode()); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (value != null) { sb.append("value:"); sb.append(value); } + sb.append("}"); + return sb.toString(); + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceClaimBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceClaimBuilder.java new file mode 100644 index 0000000000..1cffab3877 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceClaimBuilder.java @@ -0,0 +1,33 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +public class V1beta1DeviceClaimBuilder extends V1beta1DeviceClaimFluent implements VisitableBuilder{ + public V1beta1DeviceClaimBuilder() { + this(new V1beta1DeviceClaim()); + } + + public V1beta1DeviceClaimBuilder(V1beta1DeviceClaimFluent fluent) { + this(fluent, new V1beta1DeviceClaim()); + } + + public V1beta1DeviceClaimBuilder(V1beta1DeviceClaimFluent fluent,V1beta1DeviceClaim instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1beta1DeviceClaimBuilder(V1beta1DeviceClaim instance) { + this.fluent = this; + this.copyInstance(instance); + } + V1beta1DeviceClaimFluent fluent; + + public V1beta1DeviceClaim build() { + V1beta1DeviceClaim buildable = new V1beta1DeviceClaim(); + buildable.setConfig(fluent.buildConfig()); + buildable.setConstraints(fluent.buildConstraints()); + buildable.setRequests(fluent.buildRequests()); + return buildable; + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceClaimConfigurationBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceClaimConfigurationBuilder.java new file mode 100644 index 0000000000..848044c6b7 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceClaimConfigurationBuilder.java @@ -0,0 +1,32 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +public class V1beta1DeviceClaimConfigurationBuilder extends V1beta1DeviceClaimConfigurationFluent implements VisitableBuilder{ + public V1beta1DeviceClaimConfigurationBuilder() { + this(new V1beta1DeviceClaimConfiguration()); + } + + public V1beta1DeviceClaimConfigurationBuilder(V1beta1DeviceClaimConfigurationFluent fluent) { + this(fluent, new V1beta1DeviceClaimConfiguration()); + } + + public V1beta1DeviceClaimConfigurationBuilder(V1beta1DeviceClaimConfigurationFluent fluent,V1beta1DeviceClaimConfiguration instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1beta1DeviceClaimConfigurationBuilder(V1beta1DeviceClaimConfiguration instance) { + this.fluent = this; + this.copyInstance(instance); + } + V1beta1DeviceClaimConfigurationFluent fluent; + + public V1beta1DeviceClaimConfiguration build() { + V1beta1DeviceClaimConfiguration buildable = new V1beta1DeviceClaimConfiguration(); + buildable.setOpaque(fluent.buildOpaque()); + buildable.setRequests(fluent.getRequests()); + return buildable; + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceClaimConfigurationFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceClaimConfigurationFluent.java new file mode 100644 index 0000000000..d2030ee4be --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceClaimConfigurationFluent.java @@ -0,0 +1,208 @@ +package io.kubernetes.client.openapi.models; + +import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.Nested; +import java.util.ArrayList; +import java.lang.String; +import java.util.function.Predicate; +import io.kubernetes.client.fluent.BaseFluent; +import java.util.Collection; +import java.lang.Object; +import java.util.List; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1beta1DeviceClaimConfigurationFluent> extends BaseFluent{ + public V1beta1DeviceClaimConfigurationFluent() { + } + + public V1beta1DeviceClaimConfigurationFluent(V1beta1DeviceClaimConfiguration instance) { + this.copyInstance(instance); + } + private V1beta1OpaqueDeviceConfigurationBuilder opaque; + private List requests; + + protected void copyInstance(V1beta1DeviceClaimConfiguration instance) { + instance = (instance != null ? instance : new V1beta1DeviceClaimConfiguration()); + if (instance != null) { + this.withOpaque(instance.getOpaque()); + this.withRequests(instance.getRequests()); + } + } + + public V1beta1OpaqueDeviceConfiguration buildOpaque() { + return this.opaque != null ? this.opaque.build() : null; + } + + public A withOpaque(V1beta1OpaqueDeviceConfiguration opaque) { + this._visitables.remove("opaque"); + if (opaque != null) { + this.opaque = new V1beta1OpaqueDeviceConfigurationBuilder(opaque); + this._visitables.get("opaque").add(this.opaque); + } else { + this.opaque = null; + this._visitables.get("opaque").remove(this.opaque); + } + return (A) this; + } + + public boolean hasOpaque() { + return this.opaque != null; + } + + public OpaqueNested withNewOpaque() { + return new OpaqueNested(null); + } + + public OpaqueNested withNewOpaqueLike(V1beta1OpaqueDeviceConfiguration item) { + return new OpaqueNested(item); + } + + public OpaqueNested editOpaque() { + return withNewOpaqueLike(java.util.Optional.ofNullable(buildOpaque()).orElse(null)); + } + + public OpaqueNested editOrNewOpaque() { + return withNewOpaqueLike(java.util.Optional.ofNullable(buildOpaque()).orElse(new V1beta1OpaqueDeviceConfigurationBuilder().build())); + } + + public OpaqueNested editOrNewOpaqueLike(V1beta1OpaqueDeviceConfiguration item) { + return withNewOpaqueLike(java.util.Optional.ofNullable(buildOpaque()).orElse(item)); + } + + public A addToRequests(int index,String item) { + if (this.requests == null) {this.requests = new ArrayList();} + this.requests.add(index, item); + return (A)this; + } + + public A setToRequests(int index,String item) { + if (this.requests == null) {this.requests = new ArrayList();} + this.requests.set(index, item); return (A)this; + } + + public A addToRequests(java.lang.String... items) { + if (this.requests == null) {this.requests = new ArrayList();} + for (String item : items) {this.requests.add(item);} return (A)this; + } + + public A addAllToRequests(Collection items) { + if (this.requests == null) {this.requests = new ArrayList();} + for (String item : items) {this.requests.add(item);} return (A)this; + } + + public A removeFromRequests(java.lang.String... items) { + if (this.requests == null) return (A)this; + for (String item : items) { this.requests.remove(item);} return (A)this; + } + + public A removeAllFromRequests(Collection items) { + if (this.requests == null) return (A)this; + for (String item : items) { this.requests.remove(item);} return (A)this; + } + + public List getRequests() { + return this.requests; + } + + public String getRequest(int index) { + return this.requests.get(index); + } + + public String getFirstRequest() { + return this.requests.get(0); + } + + public String getLastRequest() { + return this.requests.get(requests.size() - 1); + } + + public String getMatchingRequest(Predicate predicate) { + for (String item : requests) { + if (predicate.test(item)) { + return item; + } + } + return null; + } + + public boolean hasMatchingRequest(Predicate predicate) { + for (String item : requests) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public A withRequests(List requests) { + if (requests != null) { + this.requests = new ArrayList(); + for (String item : requests) { + this.addToRequests(item); + } + } else { + this.requests = null; + } + return (A) this; + } + + public A withRequests(java.lang.String... requests) { + if (this.requests != null) { + this.requests.clear(); + _visitables.remove("requests"); + } + if (requests != null) { + for (String item : requests) { + this.addToRequests(item); + } + } + return (A) this; + } + + public boolean hasRequests() { + return this.requests != null && !this.requests.isEmpty(); + } + + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + if (!super.equals(o)) return false; + V1beta1DeviceClaimConfigurationFluent that = (V1beta1DeviceClaimConfigurationFluent) o; + if (!java.util.Objects.equals(opaque, that.opaque)) return false; + if (!java.util.Objects.equals(requests, that.requests)) return false; + return true; + } + + public int hashCode() { + return java.util.Objects.hash(opaque, requests, super.hashCode()); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (opaque != null) { sb.append("opaque:"); sb.append(opaque + ","); } + if (requests != null && !requests.isEmpty()) { sb.append("requests:"); sb.append(requests); } + sb.append("}"); + return sb.toString(); + } + public class OpaqueNested extends V1beta1OpaqueDeviceConfigurationFluent> implements Nested{ + OpaqueNested(V1beta1OpaqueDeviceConfiguration item) { + this.builder = new V1beta1OpaqueDeviceConfigurationBuilder(this, item); + } + V1beta1OpaqueDeviceConfigurationBuilder builder; + + public N and() { + return (N) V1beta1DeviceClaimConfigurationFluent.this.withOpaque(builder.build()); + } + + public N endOpaque() { + return and(); + } + + + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceClaimFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceClaimFluent.java new file mode 100644 index 0000000000..c155a0aeaa --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceClaimFluent.java @@ -0,0 +1,607 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.Nested; +import java.util.ArrayList; +import java.lang.String; +import java.util.function.Predicate; +import io.kubernetes.client.fluent.BaseFluent; +import java.util.Iterator; +import java.util.List; +import java.util.Collection; +import java.lang.Object; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1beta1DeviceClaimFluent> extends BaseFluent{ + public V1beta1DeviceClaimFluent() { + } + + public V1beta1DeviceClaimFluent(V1beta1DeviceClaim instance) { + this.copyInstance(instance); + } + private ArrayList config; + private ArrayList constraints; + private ArrayList requests; + + protected void copyInstance(V1beta1DeviceClaim instance) { + instance = (instance != null ? instance : new V1beta1DeviceClaim()); + if (instance != null) { + this.withConfig(instance.getConfig()); + this.withConstraints(instance.getConstraints()); + this.withRequests(instance.getRequests()); + } + } + + public A addToConfig(int index,V1beta1DeviceClaimConfiguration item) { + if (this.config == null) {this.config = new ArrayList();} + V1beta1DeviceClaimConfigurationBuilder builder = new V1beta1DeviceClaimConfigurationBuilder(item); + if (index < 0 || index >= config.size()) { + _visitables.get("config").add(builder); + config.add(builder); + } else { + _visitables.get("config").add(builder); + config.add(index, builder); + } + return (A)this; + } + + public A setToConfig(int index,V1beta1DeviceClaimConfiguration item) { + if (this.config == null) {this.config = new ArrayList();} + V1beta1DeviceClaimConfigurationBuilder builder = new V1beta1DeviceClaimConfigurationBuilder(item); + if (index < 0 || index >= config.size()) { + _visitables.get("config").add(builder); + config.add(builder); + } else { + _visitables.get("config").add(builder); + config.set(index, builder); + } + return (A)this; + } + + public A addToConfig(io.kubernetes.client.openapi.models.V1beta1DeviceClaimConfiguration... items) { + if (this.config == null) {this.config = new ArrayList();} + for (V1beta1DeviceClaimConfiguration item : items) {V1beta1DeviceClaimConfigurationBuilder builder = new V1beta1DeviceClaimConfigurationBuilder(item);_visitables.get("config").add(builder);this.config.add(builder);} return (A)this; + } + + public A addAllToConfig(Collection items) { + if (this.config == null) {this.config = new ArrayList();} + for (V1beta1DeviceClaimConfiguration item : items) {V1beta1DeviceClaimConfigurationBuilder builder = new V1beta1DeviceClaimConfigurationBuilder(item);_visitables.get("config").add(builder);this.config.add(builder);} return (A)this; + } + + public A removeFromConfig(io.kubernetes.client.openapi.models.V1beta1DeviceClaimConfiguration... items) { + if (this.config == null) return (A)this; + for (V1beta1DeviceClaimConfiguration item : items) {V1beta1DeviceClaimConfigurationBuilder builder = new V1beta1DeviceClaimConfigurationBuilder(item);_visitables.get("config").remove(builder); this.config.remove(builder);} return (A)this; + } + + public A removeAllFromConfig(Collection items) { + if (this.config == null) return (A)this; + for (V1beta1DeviceClaimConfiguration item : items) {V1beta1DeviceClaimConfigurationBuilder builder = new V1beta1DeviceClaimConfigurationBuilder(item);_visitables.get("config").remove(builder); this.config.remove(builder);} return (A)this; + } + + public A removeMatchingFromConfig(Predicate predicate) { + if (config == null) return (A) this; + final Iterator each = config.iterator(); + final List visitables = _visitables.get("config"); + while (each.hasNext()) { + V1beta1DeviceClaimConfigurationBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A)this; + } + + public List buildConfig() { + return this.config != null ? build(config) : null; + } + + public V1beta1DeviceClaimConfiguration buildConfig(int index) { + return this.config.get(index).build(); + } + + public V1beta1DeviceClaimConfiguration buildFirstConfig() { + return this.config.get(0).build(); + } + + public V1beta1DeviceClaimConfiguration buildLastConfig() { + return this.config.get(config.size() - 1).build(); + } + + public V1beta1DeviceClaimConfiguration buildMatchingConfig(Predicate predicate) { + for (V1beta1DeviceClaimConfigurationBuilder item : config) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; + } + + public boolean hasMatchingConfig(Predicate predicate) { + for (V1beta1DeviceClaimConfigurationBuilder item : config) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public A withConfig(List config) { + if (this.config != null) { + this._visitables.get("config").clear(); + } + if (config != null) { + this.config = new ArrayList(); + for (V1beta1DeviceClaimConfiguration item : config) { + this.addToConfig(item); + } + } else { + this.config = null; + } + return (A) this; + } + + public A withConfig(io.kubernetes.client.openapi.models.V1beta1DeviceClaimConfiguration... config) { + if (this.config != null) { + this.config.clear(); + _visitables.remove("config"); + } + if (config != null) { + for (V1beta1DeviceClaimConfiguration item : config) { + this.addToConfig(item); + } + } + return (A) this; + } + + public boolean hasConfig() { + return this.config != null && !this.config.isEmpty(); + } + + public ConfigNested addNewConfig() { + return new ConfigNested(-1, null); + } + + public ConfigNested addNewConfigLike(V1beta1DeviceClaimConfiguration item) { + return new ConfigNested(-1, item); + } + + public ConfigNested setNewConfigLike(int index,V1beta1DeviceClaimConfiguration item) { + return new ConfigNested(index, item); + } + + public ConfigNested editConfig(int index) { + if (config.size() <= index) throw new RuntimeException("Can't edit config. Index exceeds size."); + return setNewConfigLike(index, buildConfig(index)); + } + + public ConfigNested editFirstConfig() { + if (config.size() == 0) throw new RuntimeException("Can't edit first config. The list is empty."); + return setNewConfigLike(0, buildConfig(0)); + } + + public ConfigNested editLastConfig() { + int index = config.size() - 1; + if (index < 0) throw new RuntimeException("Can't edit last config. The list is empty."); + return setNewConfigLike(index, buildConfig(index)); + } + + public ConfigNested editMatchingConfig(Predicate predicate) { + int index = -1; + for (int i=0;i();} + V1beta1DeviceConstraintBuilder builder = new V1beta1DeviceConstraintBuilder(item); + if (index < 0 || index >= constraints.size()) { + _visitables.get("constraints").add(builder); + constraints.add(builder); + } else { + _visitables.get("constraints").add(builder); + constraints.add(index, builder); + } + return (A)this; + } + + public A setToConstraints(int index,V1beta1DeviceConstraint item) { + if (this.constraints == null) {this.constraints = new ArrayList();} + V1beta1DeviceConstraintBuilder builder = new V1beta1DeviceConstraintBuilder(item); + if (index < 0 || index >= constraints.size()) { + _visitables.get("constraints").add(builder); + constraints.add(builder); + } else { + _visitables.get("constraints").add(builder); + constraints.set(index, builder); + } + return (A)this; + } + + public A addToConstraints(io.kubernetes.client.openapi.models.V1beta1DeviceConstraint... items) { + if (this.constraints == null) {this.constraints = new ArrayList();} + for (V1beta1DeviceConstraint item : items) {V1beta1DeviceConstraintBuilder builder = new V1beta1DeviceConstraintBuilder(item);_visitables.get("constraints").add(builder);this.constraints.add(builder);} return (A)this; + } + + public A addAllToConstraints(Collection items) { + if (this.constraints == null) {this.constraints = new ArrayList();} + for (V1beta1DeviceConstraint item : items) {V1beta1DeviceConstraintBuilder builder = new V1beta1DeviceConstraintBuilder(item);_visitables.get("constraints").add(builder);this.constraints.add(builder);} return (A)this; + } + + public A removeFromConstraints(io.kubernetes.client.openapi.models.V1beta1DeviceConstraint... items) { + if (this.constraints == null) return (A)this; + for (V1beta1DeviceConstraint item : items) {V1beta1DeviceConstraintBuilder builder = new V1beta1DeviceConstraintBuilder(item);_visitables.get("constraints").remove(builder); this.constraints.remove(builder);} return (A)this; + } + + public A removeAllFromConstraints(Collection items) { + if (this.constraints == null) return (A)this; + for (V1beta1DeviceConstraint item : items) {V1beta1DeviceConstraintBuilder builder = new V1beta1DeviceConstraintBuilder(item);_visitables.get("constraints").remove(builder); this.constraints.remove(builder);} return (A)this; + } + + public A removeMatchingFromConstraints(Predicate predicate) { + if (constraints == null) return (A) this; + final Iterator each = constraints.iterator(); + final List visitables = _visitables.get("constraints"); + while (each.hasNext()) { + V1beta1DeviceConstraintBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A)this; + } + + public List buildConstraints() { + return this.constraints != null ? build(constraints) : null; + } + + public V1beta1DeviceConstraint buildConstraint(int index) { + return this.constraints.get(index).build(); + } + + public V1beta1DeviceConstraint buildFirstConstraint() { + return this.constraints.get(0).build(); + } + + public V1beta1DeviceConstraint buildLastConstraint() { + return this.constraints.get(constraints.size() - 1).build(); + } + + public V1beta1DeviceConstraint buildMatchingConstraint(Predicate predicate) { + for (V1beta1DeviceConstraintBuilder item : constraints) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; + } + + public boolean hasMatchingConstraint(Predicate predicate) { + for (V1beta1DeviceConstraintBuilder item : constraints) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public A withConstraints(List constraints) { + if (this.constraints != null) { + this._visitables.get("constraints").clear(); + } + if (constraints != null) { + this.constraints = new ArrayList(); + for (V1beta1DeviceConstraint item : constraints) { + this.addToConstraints(item); + } + } else { + this.constraints = null; + } + return (A) this; + } + + public A withConstraints(io.kubernetes.client.openapi.models.V1beta1DeviceConstraint... constraints) { + if (this.constraints != null) { + this.constraints.clear(); + _visitables.remove("constraints"); + } + if (constraints != null) { + for (V1beta1DeviceConstraint item : constraints) { + this.addToConstraints(item); + } + } + return (A) this; + } + + public boolean hasConstraints() { + return this.constraints != null && !this.constraints.isEmpty(); + } + + public ConstraintsNested addNewConstraint() { + return new ConstraintsNested(-1, null); + } + + public ConstraintsNested addNewConstraintLike(V1beta1DeviceConstraint item) { + return new ConstraintsNested(-1, item); + } + + public ConstraintsNested setNewConstraintLike(int index,V1beta1DeviceConstraint item) { + return new ConstraintsNested(index, item); + } + + public ConstraintsNested editConstraint(int index) { + if (constraints.size() <= index) throw new RuntimeException("Can't edit constraints. Index exceeds size."); + return setNewConstraintLike(index, buildConstraint(index)); + } + + public ConstraintsNested editFirstConstraint() { + if (constraints.size() == 0) throw new RuntimeException("Can't edit first constraints. The list is empty."); + return setNewConstraintLike(0, buildConstraint(0)); + } + + public ConstraintsNested editLastConstraint() { + int index = constraints.size() - 1; + if (index < 0) throw new RuntimeException("Can't edit last constraints. The list is empty."); + return setNewConstraintLike(index, buildConstraint(index)); + } + + public ConstraintsNested editMatchingConstraint(Predicate predicate) { + int index = -1; + for (int i=0;i();} + V1beta1DeviceRequestBuilder builder = new V1beta1DeviceRequestBuilder(item); + if (index < 0 || index >= requests.size()) { + _visitables.get("requests").add(builder); + requests.add(builder); + } else { + _visitables.get("requests").add(builder); + requests.add(index, builder); + } + return (A)this; + } + + public A setToRequests(int index,V1beta1DeviceRequest item) { + if (this.requests == null) {this.requests = new ArrayList();} + V1beta1DeviceRequestBuilder builder = new V1beta1DeviceRequestBuilder(item); + if (index < 0 || index >= requests.size()) { + _visitables.get("requests").add(builder); + requests.add(builder); + } else { + _visitables.get("requests").add(builder); + requests.set(index, builder); + } + return (A)this; + } + + public A addToRequests(io.kubernetes.client.openapi.models.V1beta1DeviceRequest... items) { + if (this.requests == null) {this.requests = new ArrayList();} + for (V1beta1DeviceRequest item : items) {V1beta1DeviceRequestBuilder builder = new V1beta1DeviceRequestBuilder(item);_visitables.get("requests").add(builder);this.requests.add(builder);} return (A)this; + } + + public A addAllToRequests(Collection items) { + if (this.requests == null) {this.requests = new ArrayList();} + for (V1beta1DeviceRequest item : items) {V1beta1DeviceRequestBuilder builder = new V1beta1DeviceRequestBuilder(item);_visitables.get("requests").add(builder);this.requests.add(builder);} return (A)this; + } + + public A removeFromRequests(io.kubernetes.client.openapi.models.V1beta1DeviceRequest... items) { + if (this.requests == null) return (A)this; + for (V1beta1DeviceRequest item : items) {V1beta1DeviceRequestBuilder builder = new V1beta1DeviceRequestBuilder(item);_visitables.get("requests").remove(builder); this.requests.remove(builder);} return (A)this; + } + + public A removeAllFromRequests(Collection items) { + if (this.requests == null) return (A)this; + for (V1beta1DeviceRequest item : items) {V1beta1DeviceRequestBuilder builder = new V1beta1DeviceRequestBuilder(item);_visitables.get("requests").remove(builder); this.requests.remove(builder);} return (A)this; + } + + public A removeMatchingFromRequests(Predicate predicate) { + if (requests == null) return (A) this; + final Iterator each = requests.iterator(); + final List visitables = _visitables.get("requests"); + while (each.hasNext()) { + V1beta1DeviceRequestBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A)this; + } + + public List buildRequests() { + return this.requests != null ? build(requests) : null; + } + + public V1beta1DeviceRequest buildRequest(int index) { + return this.requests.get(index).build(); + } + + public V1beta1DeviceRequest buildFirstRequest() { + return this.requests.get(0).build(); + } + + public V1beta1DeviceRequest buildLastRequest() { + return this.requests.get(requests.size() - 1).build(); + } + + public V1beta1DeviceRequest buildMatchingRequest(Predicate predicate) { + for (V1beta1DeviceRequestBuilder item : requests) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; + } + + public boolean hasMatchingRequest(Predicate predicate) { + for (V1beta1DeviceRequestBuilder item : requests) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public A withRequests(List requests) { + if (this.requests != null) { + this._visitables.get("requests").clear(); + } + if (requests != null) { + this.requests = new ArrayList(); + for (V1beta1DeviceRequest item : requests) { + this.addToRequests(item); + } + } else { + this.requests = null; + } + return (A) this; + } + + public A withRequests(io.kubernetes.client.openapi.models.V1beta1DeviceRequest... requests) { + if (this.requests != null) { + this.requests.clear(); + _visitables.remove("requests"); + } + if (requests != null) { + for (V1beta1DeviceRequest item : requests) { + this.addToRequests(item); + } + } + return (A) this; + } + + public boolean hasRequests() { + return this.requests != null && !this.requests.isEmpty(); + } + + public RequestsNested addNewRequest() { + return new RequestsNested(-1, null); + } + + public RequestsNested addNewRequestLike(V1beta1DeviceRequest item) { + return new RequestsNested(-1, item); + } + + public RequestsNested setNewRequestLike(int index,V1beta1DeviceRequest item) { + return new RequestsNested(index, item); + } + + public RequestsNested editRequest(int index) { + if (requests.size() <= index) throw new RuntimeException("Can't edit requests. Index exceeds size."); + return setNewRequestLike(index, buildRequest(index)); + } + + public RequestsNested editFirstRequest() { + if (requests.size() == 0) throw new RuntimeException("Can't edit first requests. The list is empty."); + return setNewRequestLike(0, buildRequest(0)); + } + + public RequestsNested editLastRequest() { + int index = requests.size() - 1; + if (index < 0) throw new RuntimeException("Can't edit last requests. The list is empty."); + return setNewRequestLike(index, buildRequest(index)); + } + + public RequestsNested editMatchingRequest(Predicate predicate) { + int index = -1; + for (int i=0;i extends V1beta1DeviceClaimConfigurationFluent> implements Nested{ + ConfigNested(int index,V1beta1DeviceClaimConfiguration item) { + this.index = index; + this.builder = new V1beta1DeviceClaimConfigurationBuilder(this, item); + } + V1beta1DeviceClaimConfigurationBuilder builder; + int index; + + public N and() { + return (N) V1beta1DeviceClaimFluent.this.setToConfig(index,builder.build()); + } + + public N endConfig() { + return and(); + } + + + } + public class ConstraintsNested extends V1beta1DeviceConstraintFluent> implements Nested{ + ConstraintsNested(int index,V1beta1DeviceConstraint item) { + this.index = index; + this.builder = new V1beta1DeviceConstraintBuilder(this, item); + } + V1beta1DeviceConstraintBuilder builder; + int index; + + public N and() { + return (N) V1beta1DeviceClaimFluent.this.setToConstraints(index,builder.build()); + } + + public N endConstraint() { + return and(); + } + + + } + public class RequestsNested extends V1beta1DeviceRequestFluent> implements Nested{ + RequestsNested(int index,V1beta1DeviceRequest item) { + this.index = index; + this.builder = new V1beta1DeviceRequestBuilder(this, item); + } + V1beta1DeviceRequestBuilder builder; + int index; + + public N and() { + return (N) V1beta1DeviceClaimFluent.this.setToRequests(index,builder.build()); + } + + public N endRequest() { + return and(); + } + + + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceClassBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceClassBuilder.java new file mode 100644 index 0000000000..49d94bc949 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceClassBuilder.java @@ -0,0 +1,34 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +public class V1beta1DeviceClassBuilder extends V1beta1DeviceClassFluent implements VisitableBuilder{ + public V1beta1DeviceClassBuilder() { + this(new V1beta1DeviceClass()); + } + + public V1beta1DeviceClassBuilder(V1beta1DeviceClassFluent fluent) { + this(fluent, new V1beta1DeviceClass()); + } + + public V1beta1DeviceClassBuilder(V1beta1DeviceClassFluent fluent,V1beta1DeviceClass instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1beta1DeviceClassBuilder(V1beta1DeviceClass instance) { + this.fluent = this; + this.copyInstance(instance); + } + V1beta1DeviceClassFluent fluent; + + public V1beta1DeviceClass build() { + V1beta1DeviceClass buildable = new V1beta1DeviceClass(); + buildable.setApiVersion(fluent.getApiVersion()); + buildable.setKind(fluent.getKind()); + buildable.setMetadata(fluent.buildMetadata()); + buildable.setSpec(fluent.buildSpec()); + return buildable; + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceClassConfigurationBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceClassConfigurationBuilder.java new file mode 100644 index 0000000000..01a9de0067 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceClassConfigurationBuilder.java @@ -0,0 +1,31 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +public class V1beta1DeviceClassConfigurationBuilder extends V1beta1DeviceClassConfigurationFluent implements VisitableBuilder{ + public V1beta1DeviceClassConfigurationBuilder() { + this(new V1beta1DeviceClassConfiguration()); + } + + public V1beta1DeviceClassConfigurationBuilder(V1beta1DeviceClassConfigurationFluent fluent) { + this(fluent, new V1beta1DeviceClassConfiguration()); + } + + public V1beta1DeviceClassConfigurationBuilder(V1beta1DeviceClassConfigurationFluent fluent,V1beta1DeviceClassConfiguration instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1beta1DeviceClassConfigurationBuilder(V1beta1DeviceClassConfiguration instance) { + this.fluent = this; + this.copyInstance(instance); + } + V1beta1DeviceClassConfigurationFluent fluent; + + public V1beta1DeviceClassConfiguration build() { + V1beta1DeviceClassConfiguration buildable = new V1beta1DeviceClassConfiguration(); + buildable.setOpaque(fluent.buildOpaque()); + return buildable; + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceClassConfigurationFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceClassConfigurationFluent.java new file mode 100644 index 0000000000..e0c0506be8 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceClassConfigurationFluent.java @@ -0,0 +1,106 @@ +package io.kubernetes.client.openapi.models; + +import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Object; +import java.lang.String; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1beta1DeviceClassConfigurationFluent> extends BaseFluent{ + public V1beta1DeviceClassConfigurationFluent() { + } + + public V1beta1DeviceClassConfigurationFluent(V1beta1DeviceClassConfiguration instance) { + this.copyInstance(instance); + } + private V1beta1OpaqueDeviceConfigurationBuilder opaque; + + protected void copyInstance(V1beta1DeviceClassConfiguration instance) { + instance = (instance != null ? instance : new V1beta1DeviceClassConfiguration()); + if (instance != null) { + this.withOpaque(instance.getOpaque()); + } + } + + public V1beta1OpaqueDeviceConfiguration buildOpaque() { + return this.opaque != null ? this.opaque.build() : null; + } + + public A withOpaque(V1beta1OpaqueDeviceConfiguration opaque) { + this._visitables.remove("opaque"); + if (opaque != null) { + this.opaque = new V1beta1OpaqueDeviceConfigurationBuilder(opaque); + this._visitables.get("opaque").add(this.opaque); + } else { + this.opaque = null; + this._visitables.get("opaque").remove(this.opaque); + } + return (A) this; + } + + public boolean hasOpaque() { + return this.opaque != null; + } + + public OpaqueNested withNewOpaque() { + return new OpaqueNested(null); + } + + public OpaqueNested withNewOpaqueLike(V1beta1OpaqueDeviceConfiguration item) { + return new OpaqueNested(item); + } + + public OpaqueNested editOpaque() { + return withNewOpaqueLike(java.util.Optional.ofNullable(buildOpaque()).orElse(null)); + } + + public OpaqueNested editOrNewOpaque() { + return withNewOpaqueLike(java.util.Optional.ofNullable(buildOpaque()).orElse(new V1beta1OpaqueDeviceConfigurationBuilder().build())); + } + + public OpaqueNested editOrNewOpaqueLike(V1beta1OpaqueDeviceConfiguration item) { + return withNewOpaqueLike(java.util.Optional.ofNullable(buildOpaque()).orElse(item)); + } + + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + if (!super.equals(o)) return false; + V1beta1DeviceClassConfigurationFluent that = (V1beta1DeviceClassConfigurationFluent) o; + if (!java.util.Objects.equals(opaque, that.opaque)) return false; + return true; + } + + public int hashCode() { + return java.util.Objects.hash(opaque, super.hashCode()); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (opaque != null) { sb.append("opaque:"); sb.append(opaque); } + sb.append("}"); + return sb.toString(); + } + public class OpaqueNested extends V1beta1OpaqueDeviceConfigurationFluent> implements Nested{ + OpaqueNested(V1beta1OpaqueDeviceConfiguration item) { + this.builder = new V1beta1OpaqueDeviceConfigurationBuilder(this, item); + } + V1beta1OpaqueDeviceConfigurationBuilder builder; + + public N and() { + return (N) V1beta1DeviceClassConfigurationFluent.this.withOpaque(builder.build()); + } + + public N endOpaque() { + return and(); + } + + + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceClassFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceClassFluent.java new file mode 100644 index 0000000000..595b783e93 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceClassFluent.java @@ -0,0 +1,200 @@ +package io.kubernetes.client.openapi.models; + +import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.Nested; +import java.lang.String; +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Object; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1beta1DeviceClassFluent> extends BaseFluent{ + public V1beta1DeviceClassFluent() { + } + + public V1beta1DeviceClassFluent(V1beta1DeviceClass instance) { + this.copyInstance(instance); + } + private String apiVersion; + private String kind; + private V1ObjectMetaBuilder metadata; + private V1beta1DeviceClassSpecBuilder spec; + + protected void copyInstance(V1beta1DeviceClass instance) { + instance = (instance != null ? instance : new V1beta1DeviceClass()); + if (instance != null) { + this.withApiVersion(instance.getApiVersion()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); + this.withSpec(instance.getSpec()); + } + } + + public String getApiVersion() { + return this.apiVersion; + } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + + public boolean hasApiVersion() { + return this.apiVersion != null; + } + + public String getKind() { + return this.kind; + } + + public A withKind(String kind) { + this.kind = kind; + return (A) this; + } + + public boolean hasKind() { + return this.kind != null; + } + + public V1ObjectMeta buildMetadata() { + return this.metadata != null ? this.metadata.build() : null; + } + + public A withMetadata(V1ObjectMeta metadata) { + this._visitables.remove("metadata"); + if (metadata != null) { + this.metadata = new V1ObjectMetaBuilder(metadata); + this._visitables.get("metadata").add(this.metadata); + } else { + this.metadata = null; + this._visitables.get("metadata").remove(this.metadata); + } + return (A) this; + } + + public boolean hasMetadata() { + return this.metadata != null; + } + + public MetadataNested withNewMetadata() { + return new MetadataNested(null); + } + + public MetadataNested withNewMetadataLike(V1ObjectMeta item) { + return new MetadataNested(item); + } + + public MetadataNested editMetadata() { + return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(null)); + } + + public MetadataNested editOrNewMetadata() { + return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(new V1ObjectMetaBuilder().build())); + } + + public MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { + return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(item)); + } + + public V1beta1DeviceClassSpec buildSpec() { + return this.spec != null ? this.spec.build() : null; + } + + public A withSpec(V1beta1DeviceClassSpec spec) { + this._visitables.remove("spec"); + if (spec != null) { + this.spec = new V1beta1DeviceClassSpecBuilder(spec); + this._visitables.get("spec").add(this.spec); + } else { + this.spec = null; + this._visitables.get("spec").remove(this.spec); + } + return (A) this; + } + + public boolean hasSpec() { + return this.spec != null; + } + + public SpecNested withNewSpec() { + return new SpecNested(null); + } + + public SpecNested withNewSpecLike(V1beta1DeviceClassSpec item) { + return new SpecNested(item); + } + + public SpecNested editSpec() { + return withNewSpecLike(java.util.Optional.ofNullable(buildSpec()).orElse(null)); + } + + public SpecNested editOrNewSpec() { + return withNewSpecLike(java.util.Optional.ofNullable(buildSpec()).orElse(new V1beta1DeviceClassSpecBuilder().build())); + } + + public SpecNested editOrNewSpecLike(V1beta1DeviceClassSpec item) { + return withNewSpecLike(java.util.Optional.ofNullable(buildSpec()).orElse(item)); + } + + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + if (!super.equals(o)) return false; + V1beta1DeviceClassFluent that = (V1beta1DeviceClassFluent) o; + if (!java.util.Objects.equals(apiVersion, that.apiVersion)) return false; + if (!java.util.Objects.equals(kind, that.kind)) return false; + if (!java.util.Objects.equals(metadata, that.metadata)) return false; + if (!java.util.Objects.equals(spec, that.spec)) return false; + return true; + } + + public int hashCode() { + return java.util.Objects.hash(apiVersion, kind, metadata, spec, super.hashCode()); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (apiVersion != null) { sb.append("apiVersion:"); sb.append(apiVersion + ","); } + if (kind != null) { sb.append("kind:"); sb.append(kind + ","); } + if (metadata != null) { sb.append("metadata:"); sb.append(metadata + ","); } + if (spec != null) { sb.append("spec:"); sb.append(spec); } + sb.append("}"); + return sb.toString(); + } + public class MetadataNested extends V1ObjectMetaFluent> implements Nested{ + MetadataNested(V1ObjectMeta item) { + this.builder = new V1ObjectMetaBuilder(this, item); + } + V1ObjectMetaBuilder builder; + + public N and() { + return (N) V1beta1DeviceClassFluent.this.withMetadata(builder.build()); + } + + public N endMetadata() { + return and(); + } + + + } + public class SpecNested extends V1beta1DeviceClassSpecFluent> implements Nested{ + SpecNested(V1beta1DeviceClassSpec item) { + this.builder = new V1beta1DeviceClassSpecBuilder(this, item); + } + V1beta1DeviceClassSpecBuilder builder; + + public N and() { + return (N) V1beta1DeviceClassFluent.this.withSpec(builder.build()); + } + + public N endSpec() { + return and(); + } + + + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceClassListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceClassListBuilder.java new file mode 100644 index 0000000000..6a0663c95c --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceClassListBuilder.java @@ -0,0 +1,34 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +public class V1beta1DeviceClassListBuilder extends V1beta1DeviceClassListFluent implements VisitableBuilder{ + public V1beta1DeviceClassListBuilder() { + this(new V1beta1DeviceClassList()); + } + + public V1beta1DeviceClassListBuilder(V1beta1DeviceClassListFluent fluent) { + this(fluent, new V1beta1DeviceClassList()); + } + + public V1beta1DeviceClassListBuilder(V1beta1DeviceClassListFluent fluent,V1beta1DeviceClassList instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1beta1DeviceClassListBuilder(V1beta1DeviceClassList instance) { + this.fluent = this; + this.copyInstance(instance); + } + V1beta1DeviceClassListFluent fluent; + + public V1beta1DeviceClassList build() { + V1beta1DeviceClassList buildable = new V1beta1DeviceClassList(); + buildable.setApiVersion(fluent.getApiVersion()); + buildable.setItems(fluent.buildItems()); + buildable.setKind(fluent.getKind()); + buildable.setMetadata(fluent.buildMetadata()); + return buildable; + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceClassListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceClassListFluent.java new file mode 100644 index 0000000000..05ca0ae737 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceClassListFluent.java @@ -0,0 +1,331 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.Nested; +import java.util.ArrayList; +import java.lang.String; +import java.util.function.Predicate; +import io.kubernetes.client.fluent.BaseFluent; +import java.util.Iterator; +import java.util.Collection; +import java.lang.Object; +import java.util.List; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1beta1DeviceClassListFluent> extends BaseFluent{ + public V1beta1DeviceClassListFluent() { + } + + public V1beta1DeviceClassListFluent(V1beta1DeviceClassList instance) { + this.copyInstance(instance); + } + private String apiVersion; + private ArrayList items; + private String kind; + private V1ListMetaBuilder metadata; + + protected void copyInstance(V1beta1DeviceClassList instance) { + instance = (instance != null ? instance : new V1beta1DeviceClassList()); + if (instance != null) { + this.withApiVersion(instance.getApiVersion()); + this.withItems(instance.getItems()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); + } + } + + public String getApiVersion() { + return this.apiVersion; + } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + + public boolean hasApiVersion() { + return this.apiVersion != null; + } + + public A addToItems(int index,V1beta1DeviceClass item) { + if (this.items == null) {this.items = new ArrayList();} + V1beta1DeviceClassBuilder builder = new V1beta1DeviceClassBuilder(item); + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.add(index, builder); + } + return (A)this; + } + + public A setToItems(int index,V1beta1DeviceClass item) { + if (this.items == null) {this.items = new ArrayList();} + V1beta1DeviceClassBuilder builder = new V1beta1DeviceClassBuilder(item); + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.set(index, builder); + } + return (A)this; + } + + public A addToItems(io.kubernetes.client.openapi.models.V1beta1DeviceClass... items) { + if (this.items == null) {this.items = new ArrayList();} + for (V1beta1DeviceClass item : items) {V1beta1DeviceClassBuilder builder = new V1beta1DeviceClassBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; + } + + public A addAllToItems(Collection items) { + if (this.items == null) {this.items = new ArrayList();} + for (V1beta1DeviceClass item : items) {V1beta1DeviceClassBuilder builder = new V1beta1DeviceClassBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; + } + + public A removeFromItems(io.kubernetes.client.openapi.models.V1beta1DeviceClass... items) { + if (this.items == null) return (A)this; + for (V1beta1DeviceClass item : items) {V1beta1DeviceClassBuilder builder = new V1beta1DeviceClassBuilder(item);_visitables.get("items").remove(builder); this.items.remove(builder);} return (A)this; + } + + public A removeAllFromItems(Collection items) { + if (this.items == null) return (A)this; + for (V1beta1DeviceClass item : items) {V1beta1DeviceClassBuilder builder = new V1beta1DeviceClassBuilder(item);_visitables.get("items").remove(builder); this.items.remove(builder);} return (A)this; + } + + public A removeMatchingFromItems(Predicate predicate) { + if (items == null) return (A) this; + final Iterator each = items.iterator(); + final List visitables = _visitables.get("items"); + while (each.hasNext()) { + V1beta1DeviceClassBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A)this; + } + + public List buildItems() { + return this.items != null ? build(items) : null; + } + + public V1beta1DeviceClass buildItem(int index) { + return this.items.get(index).build(); + } + + public V1beta1DeviceClass buildFirstItem() { + return this.items.get(0).build(); + } + + public V1beta1DeviceClass buildLastItem() { + return this.items.get(items.size() - 1).build(); + } + + public V1beta1DeviceClass buildMatchingItem(Predicate predicate) { + for (V1beta1DeviceClassBuilder item : items) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; + } + + public boolean hasMatchingItem(Predicate predicate) { + for (V1beta1DeviceClassBuilder item : items) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public A withItems(List items) { + if (this.items != null) { + this._visitables.get("items").clear(); + } + if (items != null) { + this.items = new ArrayList(); + for (V1beta1DeviceClass item : items) { + this.addToItems(item); + } + } else { + this.items = null; + } + return (A) this; + } + + public A withItems(io.kubernetes.client.openapi.models.V1beta1DeviceClass... items) { + if (this.items != null) { + this.items.clear(); + _visitables.remove("items"); + } + if (items != null) { + for (V1beta1DeviceClass item : items) { + this.addToItems(item); + } + } + return (A) this; + } + + public boolean hasItems() { + return this.items != null && !this.items.isEmpty(); + } + + public ItemsNested addNewItem() { + return new ItemsNested(-1, null); + } + + public ItemsNested addNewItemLike(V1beta1DeviceClass item) { + return new ItemsNested(-1, item); + } + + public ItemsNested setNewItemLike(int index,V1beta1DeviceClass item) { + return new ItemsNested(index, item); + } + + public ItemsNested editItem(int index) { + if (items.size() <= index) throw new RuntimeException("Can't edit items. Index exceeds size."); + return setNewItemLike(index, buildItem(index)); + } + + public ItemsNested editFirstItem() { + if (items.size() == 0) throw new RuntimeException("Can't edit first items. The list is empty."); + return setNewItemLike(0, buildItem(0)); + } + + public ItemsNested editLastItem() { + int index = items.size() - 1; + if (index < 0) throw new RuntimeException("Can't edit last items. The list is empty."); + return setNewItemLike(index, buildItem(index)); + } + + public ItemsNested editMatchingItem(Predicate predicate) { + int index = -1; + for (int i=0;i withNewMetadata() { + return new MetadataNested(null); + } + + public MetadataNested withNewMetadataLike(V1ListMeta item) { + return new MetadataNested(item); + } + + public MetadataNested editMetadata() { + return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(null)); + } + + public MetadataNested editOrNewMetadata() { + return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(new V1ListMetaBuilder().build())); + } + + public MetadataNested editOrNewMetadataLike(V1ListMeta item) { + return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(item)); + } + + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + if (!super.equals(o)) return false; + V1beta1DeviceClassListFluent that = (V1beta1DeviceClassListFluent) o; + if (!java.util.Objects.equals(apiVersion, that.apiVersion)) return false; + if (!java.util.Objects.equals(items, that.items)) return false; + if (!java.util.Objects.equals(kind, that.kind)) return false; + if (!java.util.Objects.equals(metadata, that.metadata)) return false; + return true; + } + + public int hashCode() { + return java.util.Objects.hash(apiVersion, items, kind, metadata, super.hashCode()); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (apiVersion != null) { sb.append("apiVersion:"); sb.append(apiVersion + ","); } + if (items != null && !items.isEmpty()) { sb.append("items:"); sb.append(items + ","); } + if (kind != null) { sb.append("kind:"); sb.append(kind + ","); } + if (metadata != null) { sb.append("metadata:"); sb.append(metadata); } + sb.append("}"); + return sb.toString(); + } + public class ItemsNested extends V1beta1DeviceClassFluent> implements Nested{ + ItemsNested(int index,V1beta1DeviceClass item) { + this.index = index; + this.builder = new V1beta1DeviceClassBuilder(this, item); + } + V1beta1DeviceClassBuilder builder; + int index; + + public N and() { + return (N) V1beta1DeviceClassListFluent.this.setToItems(index,builder.build()); + } + + public N endItem() { + return and(); + } + + + } + public class MetadataNested extends V1ListMetaFluent> implements Nested{ + MetadataNested(V1ListMeta item) { + this.builder = new V1ListMetaBuilder(this, item); + } + V1ListMetaBuilder builder; + + public N and() { + return (N) V1beta1DeviceClassListFluent.this.withMetadata(builder.build()); + } + + public N endMetadata() { + return and(); + } + + + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceClassSpecBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceClassSpecBuilder.java new file mode 100644 index 0000000000..dc2871c6bd --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceClassSpecBuilder.java @@ -0,0 +1,32 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +public class V1beta1DeviceClassSpecBuilder extends V1beta1DeviceClassSpecFluent implements VisitableBuilder{ + public V1beta1DeviceClassSpecBuilder() { + this(new V1beta1DeviceClassSpec()); + } + + public V1beta1DeviceClassSpecBuilder(V1beta1DeviceClassSpecFluent fluent) { + this(fluent, new V1beta1DeviceClassSpec()); + } + + public V1beta1DeviceClassSpecBuilder(V1beta1DeviceClassSpecFluent fluent,V1beta1DeviceClassSpec instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1beta1DeviceClassSpecBuilder(V1beta1DeviceClassSpec instance) { + this.fluent = this; + this.copyInstance(instance); + } + V1beta1DeviceClassSpecFluent fluent; + + public V1beta1DeviceClassSpec build() { + V1beta1DeviceClassSpec buildable = new V1beta1DeviceClassSpec(); + buildable.setConfig(fluent.buildConfig()); + buildable.setSelectors(fluent.buildSelectors()); + return buildable; + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceClassSpecFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceClassSpecFluent.java new file mode 100644 index 0000000000..14b480fe2b --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceClassSpecFluent.java @@ -0,0 +1,422 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.Nested; +import java.util.ArrayList; +import java.lang.String; +import java.util.function.Predicate; +import io.kubernetes.client.fluent.BaseFluent; +import java.util.Iterator; +import java.util.Collection; +import java.lang.Object; +import java.util.List; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1beta1DeviceClassSpecFluent> extends BaseFluent{ + public V1beta1DeviceClassSpecFluent() { + } + + public V1beta1DeviceClassSpecFluent(V1beta1DeviceClassSpec instance) { + this.copyInstance(instance); + } + private ArrayList config; + private ArrayList selectors; + + protected void copyInstance(V1beta1DeviceClassSpec instance) { + instance = (instance != null ? instance : new V1beta1DeviceClassSpec()); + if (instance != null) { + this.withConfig(instance.getConfig()); + this.withSelectors(instance.getSelectors()); + } + } + + public A addToConfig(int index,V1beta1DeviceClassConfiguration item) { + if (this.config == null) {this.config = new ArrayList();} + V1beta1DeviceClassConfigurationBuilder builder = new V1beta1DeviceClassConfigurationBuilder(item); + if (index < 0 || index >= config.size()) { + _visitables.get("config").add(builder); + config.add(builder); + } else { + _visitables.get("config").add(builder); + config.add(index, builder); + } + return (A)this; + } + + public A setToConfig(int index,V1beta1DeviceClassConfiguration item) { + if (this.config == null) {this.config = new ArrayList();} + V1beta1DeviceClassConfigurationBuilder builder = new V1beta1DeviceClassConfigurationBuilder(item); + if (index < 0 || index >= config.size()) { + _visitables.get("config").add(builder); + config.add(builder); + } else { + _visitables.get("config").add(builder); + config.set(index, builder); + } + return (A)this; + } + + public A addToConfig(io.kubernetes.client.openapi.models.V1beta1DeviceClassConfiguration... items) { + if (this.config == null) {this.config = new ArrayList();} + for (V1beta1DeviceClassConfiguration item : items) {V1beta1DeviceClassConfigurationBuilder builder = new V1beta1DeviceClassConfigurationBuilder(item);_visitables.get("config").add(builder);this.config.add(builder);} return (A)this; + } + + public A addAllToConfig(Collection items) { + if (this.config == null) {this.config = new ArrayList();} + for (V1beta1DeviceClassConfiguration item : items) {V1beta1DeviceClassConfigurationBuilder builder = new V1beta1DeviceClassConfigurationBuilder(item);_visitables.get("config").add(builder);this.config.add(builder);} return (A)this; + } + + public A removeFromConfig(io.kubernetes.client.openapi.models.V1beta1DeviceClassConfiguration... items) { + if (this.config == null) return (A)this; + for (V1beta1DeviceClassConfiguration item : items) {V1beta1DeviceClassConfigurationBuilder builder = new V1beta1DeviceClassConfigurationBuilder(item);_visitables.get("config").remove(builder); this.config.remove(builder);} return (A)this; + } + + public A removeAllFromConfig(Collection items) { + if (this.config == null) return (A)this; + for (V1beta1DeviceClassConfiguration item : items) {V1beta1DeviceClassConfigurationBuilder builder = new V1beta1DeviceClassConfigurationBuilder(item);_visitables.get("config").remove(builder); this.config.remove(builder);} return (A)this; + } + + public A removeMatchingFromConfig(Predicate predicate) { + if (config == null) return (A) this; + final Iterator each = config.iterator(); + final List visitables = _visitables.get("config"); + while (each.hasNext()) { + V1beta1DeviceClassConfigurationBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A)this; + } + + public List buildConfig() { + return this.config != null ? build(config) : null; + } + + public V1beta1DeviceClassConfiguration buildConfig(int index) { + return this.config.get(index).build(); + } + + public V1beta1DeviceClassConfiguration buildFirstConfig() { + return this.config.get(0).build(); + } + + public V1beta1DeviceClassConfiguration buildLastConfig() { + return this.config.get(config.size() - 1).build(); + } + + public V1beta1DeviceClassConfiguration buildMatchingConfig(Predicate predicate) { + for (V1beta1DeviceClassConfigurationBuilder item : config) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; + } + + public boolean hasMatchingConfig(Predicate predicate) { + for (V1beta1DeviceClassConfigurationBuilder item : config) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public A withConfig(List config) { + if (this.config != null) { + this._visitables.get("config").clear(); + } + if (config != null) { + this.config = new ArrayList(); + for (V1beta1DeviceClassConfiguration item : config) { + this.addToConfig(item); + } + } else { + this.config = null; + } + return (A) this; + } + + public A withConfig(io.kubernetes.client.openapi.models.V1beta1DeviceClassConfiguration... config) { + if (this.config != null) { + this.config.clear(); + _visitables.remove("config"); + } + if (config != null) { + for (V1beta1DeviceClassConfiguration item : config) { + this.addToConfig(item); + } + } + return (A) this; + } + + public boolean hasConfig() { + return this.config != null && !this.config.isEmpty(); + } + + public ConfigNested addNewConfig() { + return new ConfigNested(-1, null); + } + + public ConfigNested addNewConfigLike(V1beta1DeviceClassConfiguration item) { + return new ConfigNested(-1, item); + } + + public ConfigNested setNewConfigLike(int index,V1beta1DeviceClassConfiguration item) { + return new ConfigNested(index, item); + } + + public ConfigNested editConfig(int index) { + if (config.size() <= index) throw new RuntimeException("Can't edit config. Index exceeds size."); + return setNewConfigLike(index, buildConfig(index)); + } + + public ConfigNested editFirstConfig() { + if (config.size() == 0) throw new RuntimeException("Can't edit first config. The list is empty."); + return setNewConfigLike(0, buildConfig(0)); + } + + public ConfigNested editLastConfig() { + int index = config.size() - 1; + if (index < 0) throw new RuntimeException("Can't edit last config. The list is empty."); + return setNewConfigLike(index, buildConfig(index)); + } + + public ConfigNested editMatchingConfig(Predicate predicate) { + int index = -1; + for (int i=0;i();} + V1beta1DeviceSelectorBuilder builder = new V1beta1DeviceSelectorBuilder(item); + if (index < 0 || index >= selectors.size()) { + _visitables.get("selectors").add(builder); + selectors.add(builder); + } else { + _visitables.get("selectors").add(builder); + selectors.add(index, builder); + } + return (A)this; + } + + public A setToSelectors(int index,V1beta1DeviceSelector item) { + if (this.selectors == null) {this.selectors = new ArrayList();} + V1beta1DeviceSelectorBuilder builder = new V1beta1DeviceSelectorBuilder(item); + if (index < 0 || index >= selectors.size()) { + _visitables.get("selectors").add(builder); + selectors.add(builder); + } else { + _visitables.get("selectors").add(builder); + selectors.set(index, builder); + } + return (A)this; + } + + public A addToSelectors(io.kubernetes.client.openapi.models.V1beta1DeviceSelector... items) { + if (this.selectors == null) {this.selectors = new ArrayList();} + for (V1beta1DeviceSelector item : items) {V1beta1DeviceSelectorBuilder builder = new V1beta1DeviceSelectorBuilder(item);_visitables.get("selectors").add(builder);this.selectors.add(builder);} return (A)this; + } + + public A addAllToSelectors(Collection items) { + if (this.selectors == null) {this.selectors = new ArrayList();} + for (V1beta1DeviceSelector item : items) {V1beta1DeviceSelectorBuilder builder = new V1beta1DeviceSelectorBuilder(item);_visitables.get("selectors").add(builder);this.selectors.add(builder);} return (A)this; + } + + public A removeFromSelectors(io.kubernetes.client.openapi.models.V1beta1DeviceSelector... items) { + if (this.selectors == null) return (A)this; + for (V1beta1DeviceSelector item : items) {V1beta1DeviceSelectorBuilder builder = new V1beta1DeviceSelectorBuilder(item);_visitables.get("selectors").remove(builder); this.selectors.remove(builder);} return (A)this; + } + + public A removeAllFromSelectors(Collection items) { + if (this.selectors == null) return (A)this; + for (V1beta1DeviceSelector item : items) {V1beta1DeviceSelectorBuilder builder = new V1beta1DeviceSelectorBuilder(item);_visitables.get("selectors").remove(builder); this.selectors.remove(builder);} return (A)this; + } + + public A removeMatchingFromSelectors(Predicate predicate) { + if (selectors == null) return (A) this; + final Iterator each = selectors.iterator(); + final List visitables = _visitables.get("selectors"); + while (each.hasNext()) { + V1beta1DeviceSelectorBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A)this; + } + + public List buildSelectors() { + return this.selectors != null ? build(selectors) : null; + } + + public V1beta1DeviceSelector buildSelector(int index) { + return this.selectors.get(index).build(); + } + + public V1beta1DeviceSelector buildFirstSelector() { + return this.selectors.get(0).build(); + } + + public V1beta1DeviceSelector buildLastSelector() { + return this.selectors.get(selectors.size() - 1).build(); + } + + public V1beta1DeviceSelector buildMatchingSelector(Predicate predicate) { + for (V1beta1DeviceSelectorBuilder item : selectors) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; + } + + public boolean hasMatchingSelector(Predicate predicate) { + for (V1beta1DeviceSelectorBuilder item : selectors) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public A withSelectors(List selectors) { + if (this.selectors != null) { + this._visitables.get("selectors").clear(); + } + if (selectors != null) { + this.selectors = new ArrayList(); + for (V1beta1DeviceSelector item : selectors) { + this.addToSelectors(item); + } + } else { + this.selectors = null; + } + return (A) this; + } + + public A withSelectors(io.kubernetes.client.openapi.models.V1beta1DeviceSelector... selectors) { + if (this.selectors != null) { + this.selectors.clear(); + _visitables.remove("selectors"); + } + if (selectors != null) { + for (V1beta1DeviceSelector item : selectors) { + this.addToSelectors(item); + } + } + return (A) this; + } + + public boolean hasSelectors() { + return this.selectors != null && !this.selectors.isEmpty(); + } + + public SelectorsNested addNewSelector() { + return new SelectorsNested(-1, null); + } + + public SelectorsNested addNewSelectorLike(V1beta1DeviceSelector item) { + return new SelectorsNested(-1, item); + } + + public SelectorsNested setNewSelectorLike(int index,V1beta1DeviceSelector item) { + return new SelectorsNested(index, item); + } + + public SelectorsNested editSelector(int index) { + if (selectors.size() <= index) throw new RuntimeException("Can't edit selectors. Index exceeds size."); + return setNewSelectorLike(index, buildSelector(index)); + } + + public SelectorsNested editFirstSelector() { + if (selectors.size() == 0) throw new RuntimeException("Can't edit first selectors. The list is empty."); + return setNewSelectorLike(0, buildSelector(0)); + } + + public SelectorsNested editLastSelector() { + int index = selectors.size() - 1; + if (index < 0) throw new RuntimeException("Can't edit last selectors. The list is empty."); + return setNewSelectorLike(index, buildSelector(index)); + } + + public SelectorsNested editMatchingSelector(Predicate predicate) { + int index = -1; + for (int i=0;i extends V1beta1DeviceClassConfigurationFluent> implements Nested{ + ConfigNested(int index,V1beta1DeviceClassConfiguration item) { + this.index = index; + this.builder = new V1beta1DeviceClassConfigurationBuilder(this, item); + } + V1beta1DeviceClassConfigurationBuilder builder; + int index; + + public N and() { + return (N) V1beta1DeviceClassSpecFluent.this.setToConfig(index,builder.build()); + } + + public N endConfig() { + return and(); + } + + + } + public class SelectorsNested extends V1beta1DeviceSelectorFluent> implements Nested{ + SelectorsNested(int index,V1beta1DeviceSelector item) { + this.index = index; + this.builder = new V1beta1DeviceSelectorBuilder(this, item); + } + V1beta1DeviceSelectorBuilder builder; + int index; + + public N and() { + return (N) V1beta1DeviceClassSpecFluent.this.setToSelectors(index,builder.build()); + } + + public N endSelector() { + return and(); + } + + + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceConstraintBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceConstraintBuilder.java new file mode 100644 index 0000000000..2beeb35804 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceConstraintBuilder.java @@ -0,0 +1,32 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +public class V1beta1DeviceConstraintBuilder extends V1beta1DeviceConstraintFluent implements VisitableBuilder{ + public V1beta1DeviceConstraintBuilder() { + this(new V1beta1DeviceConstraint()); + } + + public V1beta1DeviceConstraintBuilder(V1beta1DeviceConstraintFluent fluent) { + this(fluent, new V1beta1DeviceConstraint()); + } + + public V1beta1DeviceConstraintBuilder(V1beta1DeviceConstraintFluent fluent,V1beta1DeviceConstraint instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1beta1DeviceConstraintBuilder(V1beta1DeviceConstraint instance) { + this.fluent = this; + this.copyInstance(instance); + } + V1beta1DeviceConstraintFluent fluent; + + public V1beta1DeviceConstraint build() { + V1beta1DeviceConstraint buildable = new V1beta1DeviceConstraint(); + buildable.setMatchAttribute(fluent.getMatchAttribute()); + buildable.setRequests(fluent.getRequests()); + return buildable; + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceConstraintFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceConstraintFluent.java new file mode 100644 index 0000000000..43e0c92b7b --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceConstraintFluent.java @@ -0,0 +1,165 @@ +package io.kubernetes.client.openapi.models; + +import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; +import java.util.ArrayList; +import java.util.Collection; +import java.lang.Object; +import java.util.List; +import java.lang.String; +import java.util.function.Predicate; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1beta1DeviceConstraintFluent> extends BaseFluent{ + public V1beta1DeviceConstraintFluent() { + } + + public V1beta1DeviceConstraintFluent(V1beta1DeviceConstraint instance) { + this.copyInstance(instance); + } + private String matchAttribute; + private List requests; + + protected void copyInstance(V1beta1DeviceConstraint instance) { + instance = (instance != null ? instance : new V1beta1DeviceConstraint()); + if (instance != null) { + this.withMatchAttribute(instance.getMatchAttribute()); + this.withRequests(instance.getRequests()); + } + } + + public String getMatchAttribute() { + return this.matchAttribute; + } + + public A withMatchAttribute(String matchAttribute) { + this.matchAttribute = matchAttribute; + return (A) this; + } + + public boolean hasMatchAttribute() { + return this.matchAttribute != null; + } + + public A addToRequests(int index,String item) { + if (this.requests == null) {this.requests = new ArrayList();} + this.requests.add(index, item); + return (A)this; + } + + public A setToRequests(int index,String item) { + if (this.requests == null) {this.requests = new ArrayList();} + this.requests.set(index, item); return (A)this; + } + + public A addToRequests(java.lang.String... items) { + if (this.requests == null) {this.requests = new ArrayList();} + for (String item : items) {this.requests.add(item);} return (A)this; + } + + public A addAllToRequests(Collection items) { + if (this.requests == null) {this.requests = new ArrayList();} + for (String item : items) {this.requests.add(item);} return (A)this; + } + + public A removeFromRequests(java.lang.String... items) { + if (this.requests == null) return (A)this; + for (String item : items) { this.requests.remove(item);} return (A)this; + } + + public A removeAllFromRequests(Collection items) { + if (this.requests == null) return (A)this; + for (String item : items) { this.requests.remove(item);} return (A)this; + } + + public List getRequests() { + return this.requests; + } + + public String getRequest(int index) { + return this.requests.get(index); + } + + public String getFirstRequest() { + return this.requests.get(0); + } + + public String getLastRequest() { + return this.requests.get(requests.size() - 1); + } + + public String getMatchingRequest(Predicate predicate) { + for (String item : requests) { + if (predicate.test(item)) { + return item; + } + } + return null; + } + + public boolean hasMatchingRequest(Predicate predicate) { + for (String item : requests) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public A withRequests(List requests) { + if (requests != null) { + this.requests = new ArrayList(); + for (String item : requests) { + this.addToRequests(item); + } + } else { + this.requests = null; + } + return (A) this; + } + + public A withRequests(java.lang.String... requests) { + if (this.requests != null) { + this.requests.clear(); + _visitables.remove("requests"); + } + if (requests != null) { + for (String item : requests) { + this.addToRequests(item); + } + } + return (A) this; + } + + public boolean hasRequests() { + return this.requests != null && !this.requests.isEmpty(); + } + + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + if (!super.equals(o)) return false; + V1beta1DeviceConstraintFluent that = (V1beta1DeviceConstraintFluent) o; + if (!java.util.Objects.equals(matchAttribute, that.matchAttribute)) return false; + if (!java.util.Objects.equals(requests, that.requests)) return false; + return true; + } + + public int hashCode() { + return java.util.Objects.hash(matchAttribute, requests, super.hashCode()); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (matchAttribute != null) { sb.append("matchAttribute:"); sb.append(matchAttribute + ","); } + if (requests != null && !requests.isEmpty()) { sb.append("requests:"); sb.append(requests); } + sb.append("}"); + return sb.toString(); + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceCounterConsumptionBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceCounterConsumptionBuilder.java new file mode 100644 index 0000000000..290f8fc7ea --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceCounterConsumptionBuilder.java @@ -0,0 +1,32 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +public class V1beta1DeviceCounterConsumptionBuilder extends V1beta1DeviceCounterConsumptionFluent implements VisitableBuilder{ + public V1beta1DeviceCounterConsumptionBuilder() { + this(new V1beta1DeviceCounterConsumption()); + } + + public V1beta1DeviceCounterConsumptionBuilder(V1beta1DeviceCounterConsumptionFluent fluent) { + this(fluent, new V1beta1DeviceCounterConsumption()); + } + + public V1beta1DeviceCounterConsumptionBuilder(V1beta1DeviceCounterConsumptionFluent fluent,V1beta1DeviceCounterConsumption instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1beta1DeviceCounterConsumptionBuilder(V1beta1DeviceCounterConsumption instance) { + this.fluent = this; + this.copyInstance(instance); + } + V1beta1DeviceCounterConsumptionFluent fluent; + + public V1beta1DeviceCounterConsumption build() { + V1beta1DeviceCounterConsumption buildable = new V1beta1DeviceCounterConsumption(); + buildable.setCounterSet(fluent.getCounterSet()); + buildable.setCounters(fluent.getCounters()); + return buildable; + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceCounterConsumptionFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceCounterConsumptionFluent.java new file mode 100644 index 0000000000..9e67fc0a94 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceCounterConsumptionFluent.java @@ -0,0 +1,106 @@ +package io.kubernetes.client.openapi.models; + +import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Object; +import java.lang.String; +import java.util.Map; +import java.util.LinkedHashMap; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1beta1DeviceCounterConsumptionFluent> extends BaseFluent{ + public V1beta1DeviceCounterConsumptionFluent() { + } + + public V1beta1DeviceCounterConsumptionFluent(V1beta1DeviceCounterConsumption instance) { + this.copyInstance(instance); + } + private String counterSet; + private Map counters; + + protected void copyInstance(V1beta1DeviceCounterConsumption instance) { + instance = (instance != null ? instance : new V1beta1DeviceCounterConsumption()); + if (instance != null) { + this.withCounterSet(instance.getCounterSet()); + this.withCounters(instance.getCounters()); + } + } + + public String getCounterSet() { + return this.counterSet; + } + + public A withCounterSet(String counterSet) { + this.counterSet = counterSet; + return (A) this; + } + + public boolean hasCounterSet() { + return this.counterSet != null; + } + + public A addToCounters(String key,V1beta1Counter value) { + if(this.counters == null && key != null && value != null) { this.counters = new LinkedHashMap(); } + if(key != null && value != null) {this.counters.put(key, value);} return (A)this; + } + + public A addToCounters(Map map) { + if(this.counters == null && map != null) { this.counters = new LinkedHashMap(); } + if(map != null) { this.counters.putAll(map);} return (A)this; + } + + public A removeFromCounters(String key) { + if(this.counters == null) { return (A) this; } + if(key != null && this.counters != null) {this.counters.remove(key);} return (A)this; + } + + public A removeFromCounters(Map map) { + if(this.counters == null) { return (A) this; } + if(map != null) { for(Object key : map.keySet()) {if (this.counters != null){this.counters.remove(key);}}} return (A)this; + } + + public Map getCounters() { + return this.counters; + } + + public A withCounters(Map counters) { + if (counters == null) { + this.counters = null; + } else { + this.counters = new LinkedHashMap(counters); + } + return (A) this; + } + + public boolean hasCounters() { + return this.counters != null; + } + + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + if (!super.equals(o)) return false; + V1beta1DeviceCounterConsumptionFluent that = (V1beta1DeviceCounterConsumptionFluent) o; + if (!java.util.Objects.equals(counterSet, that.counterSet)) return false; + if (!java.util.Objects.equals(counters, that.counters)) return false; + return true; + } + + public int hashCode() { + return java.util.Objects.hash(counterSet, counters, super.hashCode()); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (counterSet != null) { sb.append("counterSet:"); sb.append(counterSet + ","); } + if (counters != null && !counters.isEmpty()) { sb.append("counters:"); sb.append(counters); } + sb.append("}"); + return sb.toString(); + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceFluent.java new file mode 100644 index 0000000000..3a4e8535c8 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceFluent.java @@ -0,0 +1,123 @@ +package io.kubernetes.client.openapi.models; + +import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Object; +import java.lang.String; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1beta1DeviceFluent> extends BaseFluent{ + public V1beta1DeviceFluent() { + } + + public V1beta1DeviceFluent(V1beta1Device instance) { + this.copyInstance(instance); + } + private V1beta1BasicDeviceBuilder basic; + private String name; + + protected void copyInstance(V1beta1Device instance) { + instance = (instance != null ? instance : new V1beta1Device()); + if (instance != null) { + this.withBasic(instance.getBasic()); + this.withName(instance.getName()); + } + } + + public V1beta1BasicDevice buildBasic() { + return this.basic != null ? this.basic.build() : null; + } + + public A withBasic(V1beta1BasicDevice basic) { + this._visitables.remove("basic"); + if (basic != null) { + this.basic = new V1beta1BasicDeviceBuilder(basic); + this._visitables.get("basic").add(this.basic); + } else { + this.basic = null; + this._visitables.get("basic").remove(this.basic); + } + return (A) this; + } + + public boolean hasBasic() { + return this.basic != null; + } + + public BasicNested withNewBasic() { + return new BasicNested(null); + } + + public BasicNested withNewBasicLike(V1beta1BasicDevice item) { + return new BasicNested(item); + } + + public BasicNested editBasic() { + return withNewBasicLike(java.util.Optional.ofNullable(buildBasic()).orElse(null)); + } + + public BasicNested editOrNewBasic() { + return withNewBasicLike(java.util.Optional.ofNullable(buildBasic()).orElse(new V1beta1BasicDeviceBuilder().build())); + } + + public BasicNested editOrNewBasicLike(V1beta1BasicDevice item) { + return withNewBasicLike(java.util.Optional.ofNullable(buildBasic()).orElse(item)); + } + + public String getName() { + return this.name; + } + + public A withName(String name) { + this.name = name; + return (A) this; + } + + public boolean hasName() { + return this.name != null; + } + + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + if (!super.equals(o)) return false; + V1beta1DeviceFluent that = (V1beta1DeviceFluent) o; + if (!java.util.Objects.equals(basic, that.basic)) return false; + if (!java.util.Objects.equals(name, that.name)) return false; + return true; + } + + public int hashCode() { + return java.util.Objects.hash(basic, name, super.hashCode()); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (basic != null) { sb.append("basic:"); sb.append(basic + ","); } + if (name != null) { sb.append("name:"); sb.append(name); } + sb.append("}"); + return sb.toString(); + } + public class BasicNested extends V1beta1BasicDeviceFluent> implements Nested{ + BasicNested(V1beta1BasicDevice item) { + this.builder = new V1beta1BasicDeviceBuilder(this, item); + } + V1beta1BasicDeviceBuilder builder; + + public N and() { + return (N) V1beta1DeviceFluent.this.withBasic(builder.build()); + } + + public N endBasic() { + return and(); + } + + + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceRequestAllocationResultBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceRequestAllocationResultBuilder.java new file mode 100644 index 0000000000..70711f9a65 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceRequestAllocationResultBuilder.java @@ -0,0 +1,36 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +public class V1beta1DeviceRequestAllocationResultBuilder extends V1beta1DeviceRequestAllocationResultFluent implements VisitableBuilder{ + public V1beta1DeviceRequestAllocationResultBuilder() { + this(new V1beta1DeviceRequestAllocationResult()); + } + + public V1beta1DeviceRequestAllocationResultBuilder(V1beta1DeviceRequestAllocationResultFluent fluent) { + this(fluent, new V1beta1DeviceRequestAllocationResult()); + } + + public V1beta1DeviceRequestAllocationResultBuilder(V1beta1DeviceRequestAllocationResultFluent fluent,V1beta1DeviceRequestAllocationResult instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1beta1DeviceRequestAllocationResultBuilder(V1beta1DeviceRequestAllocationResult instance) { + this.fluent = this; + this.copyInstance(instance); + } + V1beta1DeviceRequestAllocationResultFluent fluent; + + public V1beta1DeviceRequestAllocationResult build() { + V1beta1DeviceRequestAllocationResult buildable = new V1beta1DeviceRequestAllocationResult(); + buildable.setAdminAccess(fluent.getAdminAccess()); + buildable.setDevice(fluent.getDevice()); + buildable.setDriver(fluent.getDriver()); + buildable.setPool(fluent.getPool()); + buildable.setRequest(fluent.getRequest()); + buildable.setTolerations(fluent.buildTolerations()); + return buildable; + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceRequestAllocationResultFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceRequestAllocationResultFluent.java new file mode 100644 index 0000000000..9a975a9279 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceRequestAllocationResultFluent.java @@ -0,0 +1,327 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.Nested; +import java.util.ArrayList; +import java.lang.String; +import java.util.function.Predicate; +import io.kubernetes.client.fluent.BaseFluent; +import java.util.Iterator; +import java.util.Collection; +import java.lang.Object; +import java.util.List; +import java.lang.Boolean; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1beta1DeviceRequestAllocationResultFluent> extends BaseFluent{ + public V1beta1DeviceRequestAllocationResultFluent() { + } + + public V1beta1DeviceRequestAllocationResultFluent(V1beta1DeviceRequestAllocationResult instance) { + this.copyInstance(instance); + } + private Boolean adminAccess; + private String device; + private String driver; + private String pool; + private String request; + private ArrayList tolerations; + + protected void copyInstance(V1beta1DeviceRequestAllocationResult instance) { + instance = (instance != null ? instance : new V1beta1DeviceRequestAllocationResult()); + if (instance != null) { + this.withAdminAccess(instance.getAdminAccess()); + this.withDevice(instance.getDevice()); + this.withDriver(instance.getDriver()); + this.withPool(instance.getPool()); + this.withRequest(instance.getRequest()); + this.withTolerations(instance.getTolerations()); + } + } + + public Boolean getAdminAccess() { + return this.adminAccess; + } + + public A withAdminAccess(Boolean adminAccess) { + this.adminAccess = adminAccess; + return (A) this; + } + + public boolean hasAdminAccess() { + return this.adminAccess != null; + } + + public String getDevice() { + return this.device; + } + + public A withDevice(String device) { + this.device = device; + return (A) this; + } + + public boolean hasDevice() { + return this.device != null; + } + + public String getDriver() { + return this.driver; + } + + public A withDriver(String driver) { + this.driver = driver; + return (A) this; + } + + public boolean hasDriver() { + return this.driver != null; + } + + public String getPool() { + return this.pool; + } + + public A withPool(String pool) { + this.pool = pool; + return (A) this; + } + + public boolean hasPool() { + return this.pool != null; + } + + public String getRequest() { + return this.request; + } + + public A withRequest(String request) { + this.request = request; + return (A) this; + } + + public boolean hasRequest() { + return this.request != null; + } + + public A addToTolerations(int index,V1beta1DeviceToleration item) { + if (this.tolerations == null) {this.tolerations = new ArrayList();} + V1beta1DeviceTolerationBuilder builder = new V1beta1DeviceTolerationBuilder(item); + if (index < 0 || index >= tolerations.size()) { + _visitables.get("tolerations").add(builder); + tolerations.add(builder); + } else { + _visitables.get("tolerations").add(builder); + tolerations.add(index, builder); + } + return (A)this; + } + + public A setToTolerations(int index,V1beta1DeviceToleration item) { + if (this.tolerations == null) {this.tolerations = new ArrayList();} + V1beta1DeviceTolerationBuilder builder = new V1beta1DeviceTolerationBuilder(item); + if (index < 0 || index >= tolerations.size()) { + _visitables.get("tolerations").add(builder); + tolerations.add(builder); + } else { + _visitables.get("tolerations").add(builder); + tolerations.set(index, builder); + } + return (A)this; + } + + public A addToTolerations(io.kubernetes.client.openapi.models.V1beta1DeviceToleration... items) { + if (this.tolerations == null) {this.tolerations = new ArrayList();} + for (V1beta1DeviceToleration item : items) {V1beta1DeviceTolerationBuilder builder = new V1beta1DeviceTolerationBuilder(item);_visitables.get("tolerations").add(builder);this.tolerations.add(builder);} return (A)this; + } + + public A addAllToTolerations(Collection items) { + if (this.tolerations == null) {this.tolerations = new ArrayList();} + for (V1beta1DeviceToleration item : items) {V1beta1DeviceTolerationBuilder builder = new V1beta1DeviceTolerationBuilder(item);_visitables.get("tolerations").add(builder);this.tolerations.add(builder);} return (A)this; + } + + public A removeFromTolerations(io.kubernetes.client.openapi.models.V1beta1DeviceToleration... items) { + if (this.tolerations == null) return (A)this; + for (V1beta1DeviceToleration item : items) {V1beta1DeviceTolerationBuilder builder = new V1beta1DeviceTolerationBuilder(item);_visitables.get("tolerations").remove(builder); this.tolerations.remove(builder);} return (A)this; + } + + public A removeAllFromTolerations(Collection items) { + if (this.tolerations == null) return (A)this; + for (V1beta1DeviceToleration item : items) {V1beta1DeviceTolerationBuilder builder = new V1beta1DeviceTolerationBuilder(item);_visitables.get("tolerations").remove(builder); this.tolerations.remove(builder);} return (A)this; + } + + public A removeMatchingFromTolerations(Predicate predicate) { + if (tolerations == null) return (A) this; + final Iterator each = tolerations.iterator(); + final List visitables = _visitables.get("tolerations"); + while (each.hasNext()) { + V1beta1DeviceTolerationBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A)this; + } + + public List buildTolerations() { + return this.tolerations != null ? build(tolerations) : null; + } + + public V1beta1DeviceToleration buildToleration(int index) { + return this.tolerations.get(index).build(); + } + + public V1beta1DeviceToleration buildFirstToleration() { + return this.tolerations.get(0).build(); + } + + public V1beta1DeviceToleration buildLastToleration() { + return this.tolerations.get(tolerations.size() - 1).build(); + } + + public V1beta1DeviceToleration buildMatchingToleration(Predicate predicate) { + for (V1beta1DeviceTolerationBuilder item : tolerations) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; + } + + public boolean hasMatchingToleration(Predicate predicate) { + for (V1beta1DeviceTolerationBuilder item : tolerations) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public A withTolerations(List tolerations) { + if (this.tolerations != null) { + this._visitables.get("tolerations").clear(); + } + if (tolerations != null) { + this.tolerations = new ArrayList(); + for (V1beta1DeviceToleration item : tolerations) { + this.addToTolerations(item); + } + } else { + this.tolerations = null; + } + return (A) this; + } + + public A withTolerations(io.kubernetes.client.openapi.models.V1beta1DeviceToleration... tolerations) { + if (this.tolerations != null) { + this.tolerations.clear(); + _visitables.remove("tolerations"); + } + if (tolerations != null) { + for (V1beta1DeviceToleration item : tolerations) { + this.addToTolerations(item); + } + } + return (A) this; + } + + public boolean hasTolerations() { + return this.tolerations != null && !this.tolerations.isEmpty(); + } + + public TolerationsNested addNewToleration() { + return new TolerationsNested(-1, null); + } + + public TolerationsNested addNewTolerationLike(V1beta1DeviceToleration item) { + return new TolerationsNested(-1, item); + } + + public TolerationsNested setNewTolerationLike(int index,V1beta1DeviceToleration item) { + return new TolerationsNested(index, item); + } + + public TolerationsNested editToleration(int index) { + if (tolerations.size() <= index) throw new RuntimeException("Can't edit tolerations. Index exceeds size."); + return setNewTolerationLike(index, buildToleration(index)); + } + + public TolerationsNested editFirstToleration() { + if (tolerations.size() == 0) throw new RuntimeException("Can't edit first tolerations. The list is empty."); + return setNewTolerationLike(0, buildToleration(0)); + } + + public TolerationsNested editLastToleration() { + int index = tolerations.size() - 1; + if (index < 0) throw new RuntimeException("Can't edit last tolerations. The list is empty."); + return setNewTolerationLike(index, buildToleration(index)); + } + + public TolerationsNested editMatchingToleration(Predicate predicate) { + int index = -1; + for (int i=0;i extends V1beta1DeviceTolerationFluent> implements Nested{ + TolerationsNested(int index,V1beta1DeviceToleration item) { + this.index = index; + this.builder = new V1beta1DeviceTolerationBuilder(this, item); + } + V1beta1DeviceTolerationBuilder builder; + int index; + + public N and() { + return (N) V1beta1DeviceRequestAllocationResultFluent.this.setToTolerations(index,builder.build()); + } + + public N endToleration() { + return and(); + } + + + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceRequestBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceRequestBuilder.java new file mode 100644 index 0000000000..7a18198d43 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceRequestBuilder.java @@ -0,0 +1,38 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +public class V1beta1DeviceRequestBuilder extends V1beta1DeviceRequestFluent implements VisitableBuilder{ + public V1beta1DeviceRequestBuilder() { + this(new V1beta1DeviceRequest()); + } + + public V1beta1DeviceRequestBuilder(V1beta1DeviceRequestFluent fluent) { + this(fluent, new V1beta1DeviceRequest()); + } + + public V1beta1DeviceRequestBuilder(V1beta1DeviceRequestFluent fluent,V1beta1DeviceRequest instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1beta1DeviceRequestBuilder(V1beta1DeviceRequest instance) { + this.fluent = this; + this.copyInstance(instance); + } + V1beta1DeviceRequestFluent fluent; + + public V1beta1DeviceRequest build() { + V1beta1DeviceRequest buildable = new V1beta1DeviceRequest(); + buildable.setAdminAccess(fluent.getAdminAccess()); + buildable.setAllocationMode(fluent.getAllocationMode()); + buildable.setCount(fluent.getCount()); + buildable.setDeviceClassName(fluent.getDeviceClassName()); + buildable.setFirstAvailable(fluent.buildFirstAvailable()); + buildable.setName(fluent.getName()); + buildable.setSelectors(fluent.buildSelectors()); + buildable.setTolerations(fluent.buildTolerations()); + return buildable; + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceRequestFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceRequestFluent.java new file mode 100644 index 0000000000..10022c6748 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceRequestFluent.java @@ -0,0 +1,698 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.Nested; +import java.util.ArrayList; +import java.lang.String; +import java.util.function.Predicate; +import io.kubernetes.client.fluent.BaseFluent; +import java.util.Iterator; +import java.util.List; +import java.lang.Boolean; +import java.lang.Long; +import java.util.Collection; +import java.lang.Object; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1beta1DeviceRequestFluent> extends BaseFluent{ + public V1beta1DeviceRequestFluent() { + } + + public V1beta1DeviceRequestFluent(V1beta1DeviceRequest instance) { + this.copyInstance(instance); + } + private Boolean adminAccess; + private String allocationMode; + private Long count; + private String deviceClassName; + private ArrayList firstAvailable; + private String name; + private ArrayList selectors; + private ArrayList tolerations; + + protected void copyInstance(V1beta1DeviceRequest instance) { + instance = (instance != null ? instance : new V1beta1DeviceRequest()); + if (instance != null) { + this.withAdminAccess(instance.getAdminAccess()); + this.withAllocationMode(instance.getAllocationMode()); + this.withCount(instance.getCount()); + this.withDeviceClassName(instance.getDeviceClassName()); + this.withFirstAvailable(instance.getFirstAvailable()); + this.withName(instance.getName()); + this.withSelectors(instance.getSelectors()); + this.withTolerations(instance.getTolerations()); + } + } + + public Boolean getAdminAccess() { + return this.adminAccess; + } + + public A withAdminAccess(Boolean adminAccess) { + this.adminAccess = adminAccess; + return (A) this; + } + + public boolean hasAdminAccess() { + return this.adminAccess != null; + } + + public String getAllocationMode() { + return this.allocationMode; + } + + public A withAllocationMode(String allocationMode) { + this.allocationMode = allocationMode; + return (A) this; + } + + public boolean hasAllocationMode() { + return this.allocationMode != null; + } + + public Long getCount() { + return this.count; + } + + public A withCount(Long count) { + this.count = count; + return (A) this; + } + + public boolean hasCount() { + return this.count != null; + } + + public String getDeviceClassName() { + return this.deviceClassName; + } + + public A withDeviceClassName(String deviceClassName) { + this.deviceClassName = deviceClassName; + return (A) this; + } + + public boolean hasDeviceClassName() { + return this.deviceClassName != null; + } + + public A addToFirstAvailable(int index,V1beta1DeviceSubRequest item) { + if (this.firstAvailable == null) {this.firstAvailable = new ArrayList();} + V1beta1DeviceSubRequestBuilder builder = new V1beta1DeviceSubRequestBuilder(item); + if (index < 0 || index >= firstAvailable.size()) { + _visitables.get("firstAvailable").add(builder); + firstAvailable.add(builder); + } else { + _visitables.get("firstAvailable").add(builder); + firstAvailable.add(index, builder); + } + return (A)this; + } + + public A setToFirstAvailable(int index,V1beta1DeviceSubRequest item) { + if (this.firstAvailable == null) {this.firstAvailable = new ArrayList();} + V1beta1DeviceSubRequestBuilder builder = new V1beta1DeviceSubRequestBuilder(item); + if (index < 0 || index >= firstAvailable.size()) { + _visitables.get("firstAvailable").add(builder); + firstAvailable.add(builder); + } else { + _visitables.get("firstAvailable").add(builder); + firstAvailable.set(index, builder); + } + return (A)this; + } + + public A addToFirstAvailable(io.kubernetes.client.openapi.models.V1beta1DeviceSubRequest... items) { + if (this.firstAvailable == null) {this.firstAvailable = new ArrayList();} + for (V1beta1DeviceSubRequest item : items) {V1beta1DeviceSubRequestBuilder builder = new V1beta1DeviceSubRequestBuilder(item);_visitables.get("firstAvailable").add(builder);this.firstAvailable.add(builder);} return (A)this; + } + + public A addAllToFirstAvailable(Collection items) { + if (this.firstAvailable == null) {this.firstAvailable = new ArrayList();} + for (V1beta1DeviceSubRequest item : items) {V1beta1DeviceSubRequestBuilder builder = new V1beta1DeviceSubRequestBuilder(item);_visitables.get("firstAvailable").add(builder);this.firstAvailable.add(builder);} return (A)this; + } + + public A removeFromFirstAvailable(io.kubernetes.client.openapi.models.V1beta1DeviceSubRequest... items) { + if (this.firstAvailable == null) return (A)this; + for (V1beta1DeviceSubRequest item : items) {V1beta1DeviceSubRequestBuilder builder = new V1beta1DeviceSubRequestBuilder(item);_visitables.get("firstAvailable").remove(builder); this.firstAvailable.remove(builder);} return (A)this; + } + + public A removeAllFromFirstAvailable(Collection items) { + if (this.firstAvailable == null) return (A)this; + for (V1beta1DeviceSubRequest item : items) {V1beta1DeviceSubRequestBuilder builder = new V1beta1DeviceSubRequestBuilder(item);_visitables.get("firstAvailable").remove(builder); this.firstAvailable.remove(builder);} return (A)this; + } + + public A removeMatchingFromFirstAvailable(Predicate predicate) { + if (firstAvailable == null) return (A) this; + final Iterator each = firstAvailable.iterator(); + final List visitables = _visitables.get("firstAvailable"); + while (each.hasNext()) { + V1beta1DeviceSubRequestBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A)this; + } + + public List buildFirstAvailable() { + return this.firstAvailable != null ? build(firstAvailable) : null; + } + + public V1beta1DeviceSubRequest buildFirstAvailable(int index) { + return this.firstAvailable.get(index).build(); + } + + public V1beta1DeviceSubRequest buildFirstFirstAvailable() { + return this.firstAvailable.get(0).build(); + } + + public V1beta1DeviceSubRequest buildLastFirstAvailable() { + return this.firstAvailable.get(firstAvailable.size() - 1).build(); + } + + public V1beta1DeviceSubRequest buildMatchingFirstAvailable(Predicate predicate) { + for (V1beta1DeviceSubRequestBuilder item : firstAvailable) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; + } + + public boolean hasMatchingFirstAvailable(Predicate predicate) { + for (V1beta1DeviceSubRequestBuilder item : firstAvailable) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public A withFirstAvailable(List firstAvailable) { + if (this.firstAvailable != null) { + this._visitables.get("firstAvailable").clear(); + } + if (firstAvailable != null) { + this.firstAvailable = new ArrayList(); + for (V1beta1DeviceSubRequest item : firstAvailable) { + this.addToFirstAvailable(item); + } + } else { + this.firstAvailable = null; + } + return (A) this; + } + + public A withFirstAvailable(io.kubernetes.client.openapi.models.V1beta1DeviceSubRequest... firstAvailable) { + if (this.firstAvailable != null) { + this.firstAvailable.clear(); + _visitables.remove("firstAvailable"); + } + if (firstAvailable != null) { + for (V1beta1DeviceSubRequest item : firstAvailable) { + this.addToFirstAvailable(item); + } + } + return (A) this; + } + + public boolean hasFirstAvailable() { + return this.firstAvailable != null && !this.firstAvailable.isEmpty(); + } + + public FirstAvailableNested addNewFirstAvailable() { + return new FirstAvailableNested(-1, null); + } + + public FirstAvailableNested addNewFirstAvailableLike(V1beta1DeviceSubRequest item) { + return new FirstAvailableNested(-1, item); + } + + public FirstAvailableNested setNewFirstAvailableLike(int index,V1beta1DeviceSubRequest item) { + return new FirstAvailableNested(index, item); + } + + public FirstAvailableNested editFirstAvailable(int index) { + if (firstAvailable.size() <= index) throw new RuntimeException("Can't edit firstAvailable. Index exceeds size."); + return setNewFirstAvailableLike(index, buildFirstAvailable(index)); + } + + public FirstAvailableNested editFirstFirstAvailable() { + if (firstAvailable.size() == 0) throw new RuntimeException("Can't edit first firstAvailable. The list is empty."); + return setNewFirstAvailableLike(0, buildFirstAvailable(0)); + } + + public FirstAvailableNested editLastFirstAvailable() { + int index = firstAvailable.size() - 1; + if (index < 0) throw new RuntimeException("Can't edit last firstAvailable. The list is empty."); + return setNewFirstAvailableLike(index, buildFirstAvailable(index)); + } + + public FirstAvailableNested editMatchingFirstAvailable(Predicate predicate) { + int index = -1; + for (int i=0;i();} + V1beta1DeviceSelectorBuilder builder = new V1beta1DeviceSelectorBuilder(item); + if (index < 0 || index >= selectors.size()) { + _visitables.get("selectors").add(builder); + selectors.add(builder); + } else { + _visitables.get("selectors").add(builder); + selectors.add(index, builder); + } + return (A)this; + } + + public A setToSelectors(int index,V1beta1DeviceSelector item) { + if (this.selectors == null) {this.selectors = new ArrayList();} + V1beta1DeviceSelectorBuilder builder = new V1beta1DeviceSelectorBuilder(item); + if (index < 0 || index >= selectors.size()) { + _visitables.get("selectors").add(builder); + selectors.add(builder); + } else { + _visitables.get("selectors").add(builder); + selectors.set(index, builder); + } + return (A)this; + } + + public A addToSelectors(io.kubernetes.client.openapi.models.V1beta1DeviceSelector... items) { + if (this.selectors == null) {this.selectors = new ArrayList();} + for (V1beta1DeviceSelector item : items) {V1beta1DeviceSelectorBuilder builder = new V1beta1DeviceSelectorBuilder(item);_visitables.get("selectors").add(builder);this.selectors.add(builder);} return (A)this; + } + + public A addAllToSelectors(Collection items) { + if (this.selectors == null) {this.selectors = new ArrayList();} + for (V1beta1DeviceSelector item : items) {V1beta1DeviceSelectorBuilder builder = new V1beta1DeviceSelectorBuilder(item);_visitables.get("selectors").add(builder);this.selectors.add(builder);} return (A)this; + } + + public A removeFromSelectors(io.kubernetes.client.openapi.models.V1beta1DeviceSelector... items) { + if (this.selectors == null) return (A)this; + for (V1beta1DeviceSelector item : items) {V1beta1DeviceSelectorBuilder builder = new V1beta1DeviceSelectorBuilder(item);_visitables.get("selectors").remove(builder); this.selectors.remove(builder);} return (A)this; + } + + public A removeAllFromSelectors(Collection items) { + if (this.selectors == null) return (A)this; + for (V1beta1DeviceSelector item : items) {V1beta1DeviceSelectorBuilder builder = new V1beta1DeviceSelectorBuilder(item);_visitables.get("selectors").remove(builder); this.selectors.remove(builder);} return (A)this; + } + + public A removeMatchingFromSelectors(Predicate predicate) { + if (selectors == null) return (A) this; + final Iterator each = selectors.iterator(); + final List visitables = _visitables.get("selectors"); + while (each.hasNext()) { + V1beta1DeviceSelectorBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A)this; + } + + public List buildSelectors() { + return this.selectors != null ? build(selectors) : null; + } + + public V1beta1DeviceSelector buildSelector(int index) { + return this.selectors.get(index).build(); + } + + public V1beta1DeviceSelector buildFirstSelector() { + return this.selectors.get(0).build(); + } + + public V1beta1DeviceSelector buildLastSelector() { + return this.selectors.get(selectors.size() - 1).build(); + } + + public V1beta1DeviceSelector buildMatchingSelector(Predicate predicate) { + for (V1beta1DeviceSelectorBuilder item : selectors) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; + } + + public boolean hasMatchingSelector(Predicate predicate) { + for (V1beta1DeviceSelectorBuilder item : selectors) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public A withSelectors(List selectors) { + if (this.selectors != null) { + this._visitables.get("selectors").clear(); + } + if (selectors != null) { + this.selectors = new ArrayList(); + for (V1beta1DeviceSelector item : selectors) { + this.addToSelectors(item); + } + } else { + this.selectors = null; + } + return (A) this; + } + + public A withSelectors(io.kubernetes.client.openapi.models.V1beta1DeviceSelector... selectors) { + if (this.selectors != null) { + this.selectors.clear(); + _visitables.remove("selectors"); + } + if (selectors != null) { + for (V1beta1DeviceSelector item : selectors) { + this.addToSelectors(item); + } + } + return (A) this; + } + + public boolean hasSelectors() { + return this.selectors != null && !this.selectors.isEmpty(); + } + + public SelectorsNested addNewSelector() { + return new SelectorsNested(-1, null); + } + + public SelectorsNested addNewSelectorLike(V1beta1DeviceSelector item) { + return new SelectorsNested(-1, item); + } + + public SelectorsNested setNewSelectorLike(int index,V1beta1DeviceSelector item) { + return new SelectorsNested(index, item); + } + + public SelectorsNested editSelector(int index) { + if (selectors.size() <= index) throw new RuntimeException("Can't edit selectors. Index exceeds size."); + return setNewSelectorLike(index, buildSelector(index)); + } + + public SelectorsNested editFirstSelector() { + if (selectors.size() == 0) throw new RuntimeException("Can't edit first selectors. The list is empty."); + return setNewSelectorLike(0, buildSelector(0)); + } + + public SelectorsNested editLastSelector() { + int index = selectors.size() - 1; + if (index < 0) throw new RuntimeException("Can't edit last selectors. The list is empty."); + return setNewSelectorLike(index, buildSelector(index)); + } + + public SelectorsNested editMatchingSelector(Predicate predicate) { + int index = -1; + for (int i=0;i();} + V1beta1DeviceTolerationBuilder builder = new V1beta1DeviceTolerationBuilder(item); + if (index < 0 || index >= tolerations.size()) { + _visitables.get("tolerations").add(builder); + tolerations.add(builder); + } else { + _visitables.get("tolerations").add(builder); + tolerations.add(index, builder); + } + return (A)this; + } + + public A setToTolerations(int index,V1beta1DeviceToleration item) { + if (this.tolerations == null) {this.tolerations = new ArrayList();} + V1beta1DeviceTolerationBuilder builder = new V1beta1DeviceTolerationBuilder(item); + if (index < 0 || index >= tolerations.size()) { + _visitables.get("tolerations").add(builder); + tolerations.add(builder); + } else { + _visitables.get("tolerations").add(builder); + tolerations.set(index, builder); + } + return (A)this; + } + + public A addToTolerations(io.kubernetes.client.openapi.models.V1beta1DeviceToleration... items) { + if (this.tolerations == null) {this.tolerations = new ArrayList();} + for (V1beta1DeviceToleration item : items) {V1beta1DeviceTolerationBuilder builder = new V1beta1DeviceTolerationBuilder(item);_visitables.get("tolerations").add(builder);this.tolerations.add(builder);} return (A)this; + } + + public A addAllToTolerations(Collection items) { + if (this.tolerations == null) {this.tolerations = new ArrayList();} + for (V1beta1DeviceToleration item : items) {V1beta1DeviceTolerationBuilder builder = new V1beta1DeviceTolerationBuilder(item);_visitables.get("tolerations").add(builder);this.tolerations.add(builder);} return (A)this; + } + + public A removeFromTolerations(io.kubernetes.client.openapi.models.V1beta1DeviceToleration... items) { + if (this.tolerations == null) return (A)this; + for (V1beta1DeviceToleration item : items) {V1beta1DeviceTolerationBuilder builder = new V1beta1DeviceTolerationBuilder(item);_visitables.get("tolerations").remove(builder); this.tolerations.remove(builder);} return (A)this; + } + + public A removeAllFromTolerations(Collection items) { + if (this.tolerations == null) return (A)this; + for (V1beta1DeviceToleration item : items) {V1beta1DeviceTolerationBuilder builder = new V1beta1DeviceTolerationBuilder(item);_visitables.get("tolerations").remove(builder); this.tolerations.remove(builder);} return (A)this; + } + + public A removeMatchingFromTolerations(Predicate predicate) { + if (tolerations == null) return (A) this; + final Iterator each = tolerations.iterator(); + final List visitables = _visitables.get("tolerations"); + while (each.hasNext()) { + V1beta1DeviceTolerationBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A)this; + } + + public List buildTolerations() { + return this.tolerations != null ? build(tolerations) : null; + } + + public V1beta1DeviceToleration buildToleration(int index) { + return this.tolerations.get(index).build(); + } + + public V1beta1DeviceToleration buildFirstToleration() { + return this.tolerations.get(0).build(); + } + + public V1beta1DeviceToleration buildLastToleration() { + return this.tolerations.get(tolerations.size() - 1).build(); + } + + public V1beta1DeviceToleration buildMatchingToleration(Predicate predicate) { + for (V1beta1DeviceTolerationBuilder item : tolerations) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; + } + + public boolean hasMatchingToleration(Predicate predicate) { + for (V1beta1DeviceTolerationBuilder item : tolerations) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public A withTolerations(List tolerations) { + if (this.tolerations != null) { + this._visitables.get("tolerations").clear(); + } + if (tolerations != null) { + this.tolerations = new ArrayList(); + for (V1beta1DeviceToleration item : tolerations) { + this.addToTolerations(item); + } + } else { + this.tolerations = null; + } + return (A) this; + } + + public A withTolerations(io.kubernetes.client.openapi.models.V1beta1DeviceToleration... tolerations) { + if (this.tolerations != null) { + this.tolerations.clear(); + _visitables.remove("tolerations"); + } + if (tolerations != null) { + for (V1beta1DeviceToleration item : tolerations) { + this.addToTolerations(item); + } + } + return (A) this; + } + + public boolean hasTolerations() { + return this.tolerations != null && !this.tolerations.isEmpty(); + } + + public TolerationsNested addNewToleration() { + return new TolerationsNested(-1, null); + } + + public TolerationsNested addNewTolerationLike(V1beta1DeviceToleration item) { + return new TolerationsNested(-1, item); + } + + public TolerationsNested setNewTolerationLike(int index,V1beta1DeviceToleration item) { + return new TolerationsNested(index, item); + } + + public TolerationsNested editToleration(int index) { + if (tolerations.size() <= index) throw new RuntimeException("Can't edit tolerations. Index exceeds size."); + return setNewTolerationLike(index, buildToleration(index)); + } + + public TolerationsNested editFirstToleration() { + if (tolerations.size() == 0) throw new RuntimeException("Can't edit first tolerations. The list is empty."); + return setNewTolerationLike(0, buildToleration(0)); + } + + public TolerationsNested editLastToleration() { + int index = tolerations.size() - 1; + if (index < 0) throw new RuntimeException("Can't edit last tolerations. The list is empty."); + return setNewTolerationLike(index, buildToleration(index)); + } + + public TolerationsNested editMatchingToleration(Predicate predicate) { + int index = -1; + for (int i=0;i extends V1beta1DeviceSubRequestFluent> implements Nested{ + FirstAvailableNested(int index,V1beta1DeviceSubRequest item) { + this.index = index; + this.builder = new V1beta1DeviceSubRequestBuilder(this, item); + } + V1beta1DeviceSubRequestBuilder builder; + int index; + + public N and() { + return (N) V1beta1DeviceRequestFluent.this.setToFirstAvailable(index,builder.build()); + } + + public N endFirstAvailable() { + return and(); + } + + + } + public class SelectorsNested extends V1beta1DeviceSelectorFluent> implements Nested{ + SelectorsNested(int index,V1beta1DeviceSelector item) { + this.index = index; + this.builder = new V1beta1DeviceSelectorBuilder(this, item); + } + V1beta1DeviceSelectorBuilder builder; + int index; + + public N and() { + return (N) V1beta1DeviceRequestFluent.this.setToSelectors(index,builder.build()); + } + + public N endSelector() { + return and(); + } + + + } + public class TolerationsNested extends V1beta1DeviceTolerationFluent> implements Nested{ + TolerationsNested(int index,V1beta1DeviceToleration item) { + this.index = index; + this.builder = new V1beta1DeviceTolerationBuilder(this, item); + } + V1beta1DeviceTolerationBuilder builder; + int index; + + public N and() { + return (N) V1beta1DeviceRequestFluent.this.setToTolerations(index,builder.build()); + } + + public N endToleration() { + return and(); + } + + + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceSelectorBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceSelectorBuilder.java new file mode 100644 index 0000000000..8709527f5b --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceSelectorBuilder.java @@ -0,0 +1,31 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +public class V1beta1DeviceSelectorBuilder extends V1beta1DeviceSelectorFluent implements VisitableBuilder{ + public V1beta1DeviceSelectorBuilder() { + this(new V1beta1DeviceSelector()); + } + + public V1beta1DeviceSelectorBuilder(V1beta1DeviceSelectorFluent fluent) { + this(fluent, new V1beta1DeviceSelector()); + } + + public V1beta1DeviceSelectorBuilder(V1beta1DeviceSelectorFluent fluent,V1beta1DeviceSelector instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1beta1DeviceSelectorBuilder(V1beta1DeviceSelector instance) { + this.fluent = this; + this.copyInstance(instance); + } + V1beta1DeviceSelectorFluent fluent; + + public V1beta1DeviceSelector build() { + V1beta1DeviceSelector buildable = new V1beta1DeviceSelector(); + buildable.setCel(fluent.buildCel()); + return buildable; + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceSelectorFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceSelectorFluent.java new file mode 100644 index 0000000000..22ba0580be --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceSelectorFluent.java @@ -0,0 +1,106 @@ +package io.kubernetes.client.openapi.models; + +import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Object; +import java.lang.String; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1beta1DeviceSelectorFluent> extends BaseFluent{ + public V1beta1DeviceSelectorFluent() { + } + + public V1beta1DeviceSelectorFluent(V1beta1DeviceSelector instance) { + this.copyInstance(instance); + } + private V1beta1CELDeviceSelectorBuilder cel; + + protected void copyInstance(V1beta1DeviceSelector instance) { + instance = (instance != null ? instance : new V1beta1DeviceSelector()); + if (instance != null) { + this.withCel(instance.getCel()); + } + } + + public V1beta1CELDeviceSelector buildCel() { + return this.cel != null ? this.cel.build() : null; + } + + public A withCel(V1beta1CELDeviceSelector cel) { + this._visitables.remove("cel"); + if (cel != null) { + this.cel = new V1beta1CELDeviceSelectorBuilder(cel); + this._visitables.get("cel").add(this.cel); + } else { + this.cel = null; + this._visitables.get("cel").remove(this.cel); + } + return (A) this; + } + + public boolean hasCel() { + return this.cel != null; + } + + public CelNested withNewCel() { + return new CelNested(null); + } + + public CelNested withNewCelLike(V1beta1CELDeviceSelector item) { + return new CelNested(item); + } + + public CelNested editCel() { + return withNewCelLike(java.util.Optional.ofNullable(buildCel()).orElse(null)); + } + + public CelNested editOrNewCel() { + return withNewCelLike(java.util.Optional.ofNullable(buildCel()).orElse(new V1beta1CELDeviceSelectorBuilder().build())); + } + + public CelNested editOrNewCelLike(V1beta1CELDeviceSelector item) { + return withNewCelLike(java.util.Optional.ofNullable(buildCel()).orElse(item)); + } + + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + if (!super.equals(o)) return false; + V1beta1DeviceSelectorFluent that = (V1beta1DeviceSelectorFluent) o; + if (!java.util.Objects.equals(cel, that.cel)) return false; + return true; + } + + public int hashCode() { + return java.util.Objects.hash(cel, super.hashCode()); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (cel != null) { sb.append("cel:"); sb.append(cel); } + sb.append("}"); + return sb.toString(); + } + public class CelNested extends V1beta1CELDeviceSelectorFluent> implements Nested{ + CelNested(V1beta1CELDeviceSelector item) { + this.builder = new V1beta1CELDeviceSelectorBuilder(this, item); + } + V1beta1CELDeviceSelectorBuilder builder; + + public N and() { + return (N) V1beta1DeviceSelectorFluent.this.withCel(builder.build()); + } + + public N endCel() { + return and(); + } + + + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceSubRequestBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceSubRequestBuilder.java new file mode 100644 index 0000000000..800e992109 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceSubRequestBuilder.java @@ -0,0 +1,36 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +public class V1beta1DeviceSubRequestBuilder extends V1beta1DeviceSubRequestFluent implements VisitableBuilder{ + public V1beta1DeviceSubRequestBuilder() { + this(new V1beta1DeviceSubRequest()); + } + + public V1beta1DeviceSubRequestBuilder(V1beta1DeviceSubRequestFluent fluent) { + this(fluent, new V1beta1DeviceSubRequest()); + } + + public V1beta1DeviceSubRequestBuilder(V1beta1DeviceSubRequestFluent fluent,V1beta1DeviceSubRequest instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1beta1DeviceSubRequestBuilder(V1beta1DeviceSubRequest instance) { + this.fluent = this; + this.copyInstance(instance); + } + V1beta1DeviceSubRequestFluent fluent; + + public V1beta1DeviceSubRequest build() { + V1beta1DeviceSubRequest buildable = new V1beta1DeviceSubRequest(); + buildable.setAllocationMode(fluent.getAllocationMode()); + buildable.setCount(fluent.getCount()); + buildable.setDeviceClassName(fluent.getDeviceClassName()); + buildable.setName(fluent.getName()); + buildable.setSelectors(fluent.buildSelectors()); + buildable.setTolerations(fluent.buildTolerations()); + return buildable; + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceSubRequestFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceSubRequestFluent.java new file mode 100644 index 0000000000..041eb39e44 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceSubRequestFluent.java @@ -0,0 +1,491 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.Nested; +import java.util.ArrayList; +import java.lang.String; +import java.util.function.Predicate; +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Long; +import java.util.Iterator; +import java.util.Collection; +import java.lang.Object; +import java.util.List; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1beta1DeviceSubRequestFluent> extends BaseFluent{ + public V1beta1DeviceSubRequestFluent() { + } + + public V1beta1DeviceSubRequestFluent(V1beta1DeviceSubRequest instance) { + this.copyInstance(instance); + } + private String allocationMode; + private Long count; + private String deviceClassName; + private String name; + private ArrayList selectors; + private ArrayList tolerations; + + protected void copyInstance(V1beta1DeviceSubRequest instance) { + instance = (instance != null ? instance : new V1beta1DeviceSubRequest()); + if (instance != null) { + this.withAllocationMode(instance.getAllocationMode()); + this.withCount(instance.getCount()); + this.withDeviceClassName(instance.getDeviceClassName()); + this.withName(instance.getName()); + this.withSelectors(instance.getSelectors()); + this.withTolerations(instance.getTolerations()); + } + } + + public String getAllocationMode() { + return this.allocationMode; + } + + public A withAllocationMode(String allocationMode) { + this.allocationMode = allocationMode; + return (A) this; + } + + public boolean hasAllocationMode() { + return this.allocationMode != null; + } + + public Long getCount() { + return this.count; + } + + public A withCount(Long count) { + this.count = count; + return (A) this; + } + + public boolean hasCount() { + return this.count != null; + } + + public String getDeviceClassName() { + return this.deviceClassName; + } + + public A withDeviceClassName(String deviceClassName) { + this.deviceClassName = deviceClassName; + return (A) this; + } + + public boolean hasDeviceClassName() { + return this.deviceClassName != null; + } + + public String getName() { + return this.name; + } + + public A withName(String name) { + this.name = name; + return (A) this; + } + + public boolean hasName() { + return this.name != null; + } + + public A addToSelectors(int index,V1beta1DeviceSelector item) { + if (this.selectors == null) {this.selectors = new ArrayList();} + V1beta1DeviceSelectorBuilder builder = new V1beta1DeviceSelectorBuilder(item); + if (index < 0 || index >= selectors.size()) { + _visitables.get("selectors").add(builder); + selectors.add(builder); + } else { + _visitables.get("selectors").add(builder); + selectors.add(index, builder); + } + return (A)this; + } + + public A setToSelectors(int index,V1beta1DeviceSelector item) { + if (this.selectors == null) {this.selectors = new ArrayList();} + V1beta1DeviceSelectorBuilder builder = new V1beta1DeviceSelectorBuilder(item); + if (index < 0 || index >= selectors.size()) { + _visitables.get("selectors").add(builder); + selectors.add(builder); + } else { + _visitables.get("selectors").add(builder); + selectors.set(index, builder); + } + return (A)this; + } + + public A addToSelectors(io.kubernetes.client.openapi.models.V1beta1DeviceSelector... items) { + if (this.selectors == null) {this.selectors = new ArrayList();} + for (V1beta1DeviceSelector item : items) {V1beta1DeviceSelectorBuilder builder = new V1beta1DeviceSelectorBuilder(item);_visitables.get("selectors").add(builder);this.selectors.add(builder);} return (A)this; + } + + public A addAllToSelectors(Collection items) { + if (this.selectors == null) {this.selectors = new ArrayList();} + for (V1beta1DeviceSelector item : items) {V1beta1DeviceSelectorBuilder builder = new V1beta1DeviceSelectorBuilder(item);_visitables.get("selectors").add(builder);this.selectors.add(builder);} return (A)this; + } + + public A removeFromSelectors(io.kubernetes.client.openapi.models.V1beta1DeviceSelector... items) { + if (this.selectors == null) return (A)this; + for (V1beta1DeviceSelector item : items) {V1beta1DeviceSelectorBuilder builder = new V1beta1DeviceSelectorBuilder(item);_visitables.get("selectors").remove(builder); this.selectors.remove(builder);} return (A)this; + } + + public A removeAllFromSelectors(Collection items) { + if (this.selectors == null) return (A)this; + for (V1beta1DeviceSelector item : items) {V1beta1DeviceSelectorBuilder builder = new V1beta1DeviceSelectorBuilder(item);_visitables.get("selectors").remove(builder); this.selectors.remove(builder);} return (A)this; + } + + public A removeMatchingFromSelectors(Predicate predicate) { + if (selectors == null) return (A) this; + final Iterator each = selectors.iterator(); + final List visitables = _visitables.get("selectors"); + while (each.hasNext()) { + V1beta1DeviceSelectorBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A)this; + } + + public List buildSelectors() { + return this.selectors != null ? build(selectors) : null; + } + + public V1beta1DeviceSelector buildSelector(int index) { + return this.selectors.get(index).build(); + } + + public V1beta1DeviceSelector buildFirstSelector() { + return this.selectors.get(0).build(); + } + + public V1beta1DeviceSelector buildLastSelector() { + return this.selectors.get(selectors.size() - 1).build(); + } + + public V1beta1DeviceSelector buildMatchingSelector(Predicate predicate) { + for (V1beta1DeviceSelectorBuilder item : selectors) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; + } + + public boolean hasMatchingSelector(Predicate predicate) { + for (V1beta1DeviceSelectorBuilder item : selectors) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public A withSelectors(List selectors) { + if (this.selectors != null) { + this._visitables.get("selectors").clear(); + } + if (selectors != null) { + this.selectors = new ArrayList(); + for (V1beta1DeviceSelector item : selectors) { + this.addToSelectors(item); + } + } else { + this.selectors = null; + } + return (A) this; + } + + public A withSelectors(io.kubernetes.client.openapi.models.V1beta1DeviceSelector... selectors) { + if (this.selectors != null) { + this.selectors.clear(); + _visitables.remove("selectors"); + } + if (selectors != null) { + for (V1beta1DeviceSelector item : selectors) { + this.addToSelectors(item); + } + } + return (A) this; + } + + public boolean hasSelectors() { + return this.selectors != null && !this.selectors.isEmpty(); + } + + public SelectorsNested addNewSelector() { + return new SelectorsNested(-1, null); + } + + public SelectorsNested addNewSelectorLike(V1beta1DeviceSelector item) { + return new SelectorsNested(-1, item); + } + + public SelectorsNested setNewSelectorLike(int index,V1beta1DeviceSelector item) { + return new SelectorsNested(index, item); + } + + public SelectorsNested editSelector(int index) { + if (selectors.size() <= index) throw new RuntimeException("Can't edit selectors. Index exceeds size."); + return setNewSelectorLike(index, buildSelector(index)); + } + + public SelectorsNested editFirstSelector() { + if (selectors.size() == 0) throw new RuntimeException("Can't edit first selectors. The list is empty."); + return setNewSelectorLike(0, buildSelector(0)); + } + + public SelectorsNested editLastSelector() { + int index = selectors.size() - 1; + if (index < 0) throw new RuntimeException("Can't edit last selectors. The list is empty."); + return setNewSelectorLike(index, buildSelector(index)); + } + + public SelectorsNested editMatchingSelector(Predicate predicate) { + int index = -1; + for (int i=0;i();} + V1beta1DeviceTolerationBuilder builder = new V1beta1DeviceTolerationBuilder(item); + if (index < 0 || index >= tolerations.size()) { + _visitables.get("tolerations").add(builder); + tolerations.add(builder); + } else { + _visitables.get("tolerations").add(builder); + tolerations.add(index, builder); + } + return (A)this; + } + + public A setToTolerations(int index,V1beta1DeviceToleration item) { + if (this.tolerations == null) {this.tolerations = new ArrayList();} + V1beta1DeviceTolerationBuilder builder = new V1beta1DeviceTolerationBuilder(item); + if (index < 0 || index >= tolerations.size()) { + _visitables.get("tolerations").add(builder); + tolerations.add(builder); + } else { + _visitables.get("tolerations").add(builder); + tolerations.set(index, builder); + } + return (A)this; + } + + public A addToTolerations(io.kubernetes.client.openapi.models.V1beta1DeviceToleration... items) { + if (this.tolerations == null) {this.tolerations = new ArrayList();} + for (V1beta1DeviceToleration item : items) {V1beta1DeviceTolerationBuilder builder = new V1beta1DeviceTolerationBuilder(item);_visitables.get("tolerations").add(builder);this.tolerations.add(builder);} return (A)this; + } + + public A addAllToTolerations(Collection items) { + if (this.tolerations == null) {this.tolerations = new ArrayList();} + for (V1beta1DeviceToleration item : items) {V1beta1DeviceTolerationBuilder builder = new V1beta1DeviceTolerationBuilder(item);_visitables.get("tolerations").add(builder);this.tolerations.add(builder);} return (A)this; + } + + public A removeFromTolerations(io.kubernetes.client.openapi.models.V1beta1DeviceToleration... items) { + if (this.tolerations == null) return (A)this; + for (V1beta1DeviceToleration item : items) {V1beta1DeviceTolerationBuilder builder = new V1beta1DeviceTolerationBuilder(item);_visitables.get("tolerations").remove(builder); this.tolerations.remove(builder);} return (A)this; + } + + public A removeAllFromTolerations(Collection items) { + if (this.tolerations == null) return (A)this; + for (V1beta1DeviceToleration item : items) {V1beta1DeviceTolerationBuilder builder = new V1beta1DeviceTolerationBuilder(item);_visitables.get("tolerations").remove(builder); this.tolerations.remove(builder);} return (A)this; + } + + public A removeMatchingFromTolerations(Predicate predicate) { + if (tolerations == null) return (A) this; + final Iterator each = tolerations.iterator(); + final List visitables = _visitables.get("tolerations"); + while (each.hasNext()) { + V1beta1DeviceTolerationBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A)this; + } + + public List buildTolerations() { + return this.tolerations != null ? build(tolerations) : null; + } + + public V1beta1DeviceToleration buildToleration(int index) { + return this.tolerations.get(index).build(); + } + + public V1beta1DeviceToleration buildFirstToleration() { + return this.tolerations.get(0).build(); + } + + public V1beta1DeviceToleration buildLastToleration() { + return this.tolerations.get(tolerations.size() - 1).build(); + } + + public V1beta1DeviceToleration buildMatchingToleration(Predicate predicate) { + for (V1beta1DeviceTolerationBuilder item : tolerations) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; + } + + public boolean hasMatchingToleration(Predicate predicate) { + for (V1beta1DeviceTolerationBuilder item : tolerations) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public A withTolerations(List tolerations) { + if (this.tolerations != null) { + this._visitables.get("tolerations").clear(); + } + if (tolerations != null) { + this.tolerations = new ArrayList(); + for (V1beta1DeviceToleration item : tolerations) { + this.addToTolerations(item); + } + } else { + this.tolerations = null; + } + return (A) this; + } + + public A withTolerations(io.kubernetes.client.openapi.models.V1beta1DeviceToleration... tolerations) { + if (this.tolerations != null) { + this.tolerations.clear(); + _visitables.remove("tolerations"); + } + if (tolerations != null) { + for (V1beta1DeviceToleration item : tolerations) { + this.addToTolerations(item); + } + } + return (A) this; + } + + public boolean hasTolerations() { + return this.tolerations != null && !this.tolerations.isEmpty(); + } + + public TolerationsNested addNewToleration() { + return new TolerationsNested(-1, null); + } + + public TolerationsNested addNewTolerationLike(V1beta1DeviceToleration item) { + return new TolerationsNested(-1, item); + } + + public TolerationsNested setNewTolerationLike(int index,V1beta1DeviceToleration item) { + return new TolerationsNested(index, item); + } + + public TolerationsNested editToleration(int index) { + if (tolerations.size() <= index) throw new RuntimeException("Can't edit tolerations. Index exceeds size."); + return setNewTolerationLike(index, buildToleration(index)); + } + + public TolerationsNested editFirstToleration() { + if (tolerations.size() == 0) throw new RuntimeException("Can't edit first tolerations. The list is empty."); + return setNewTolerationLike(0, buildToleration(0)); + } + + public TolerationsNested editLastToleration() { + int index = tolerations.size() - 1; + if (index < 0) throw new RuntimeException("Can't edit last tolerations. The list is empty."); + return setNewTolerationLike(index, buildToleration(index)); + } + + public TolerationsNested editMatchingToleration(Predicate predicate) { + int index = -1; + for (int i=0;i extends V1beta1DeviceSelectorFluent> implements Nested{ + SelectorsNested(int index,V1beta1DeviceSelector item) { + this.index = index; + this.builder = new V1beta1DeviceSelectorBuilder(this, item); + } + V1beta1DeviceSelectorBuilder builder; + int index; + + public N and() { + return (N) V1beta1DeviceSubRequestFluent.this.setToSelectors(index,builder.build()); + } + + public N endSelector() { + return and(); + } + + + } + public class TolerationsNested extends V1beta1DeviceTolerationFluent> implements Nested{ + TolerationsNested(int index,V1beta1DeviceToleration item) { + this.index = index; + this.builder = new V1beta1DeviceTolerationBuilder(this, item); + } + V1beta1DeviceTolerationBuilder builder; + int index; + + public N and() { + return (N) V1beta1DeviceSubRequestFluent.this.setToTolerations(index,builder.build()); + } + + public N endToleration() { + return and(); + } + + + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceTaintBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceTaintBuilder.java new file mode 100644 index 0000000000..d9ce083397 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceTaintBuilder.java @@ -0,0 +1,34 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +public class V1beta1DeviceTaintBuilder extends V1beta1DeviceTaintFluent implements VisitableBuilder{ + public V1beta1DeviceTaintBuilder() { + this(new V1beta1DeviceTaint()); + } + + public V1beta1DeviceTaintBuilder(V1beta1DeviceTaintFluent fluent) { + this(fluent, new V1beta1DeviceTaint()); + } + + public V1beta1DeviceTaintBuilder(V1beta1DeviceTaintFluent fluent,V1beta1DeviceTaint instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1beta1DeviceTaintBuilder(V1beta1DeviceTaint instance) { + this.fluent = this; + this.copyInstance(instance); + } + V1beta1DeviceTaintFluent fluent; + + public V1beta1DeviceTaint build() { + V1beta1DeviceTaint buildable = new V1beta1DeviceTaint(); + buildable.setEffect(fluent.getEffect()); + buildable.setKey(fluent.getKey()); + buildable.setTimeAdded(fluent.getTimeAdded()); + buildable.setValue(fluent.getValue()); + return buildable; + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceTaintFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceTaintFluent.java new file mode 100644 index 0000000000..011d224a15 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceTaintFluent.java @@ -0,0 +1,115 @@ +package io.kubernetes.client.openapi.models; + +import java.time.OffsetDateTime; +import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Object; +import java.lang.String; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1beta1DeviceTaintFluent> extends BaseFluent{ + public V1beta1DeviceTaintFluent() { + } + + public V1beta1DeviceTaintFluent(V1beta1DeviceTaint instance) { + this.copyInstance(instance); + } + private String effect; + private String key; + private OffsetDateTime timeAdded; + private String value; + + protected void copyInstance(V1beta1DeviceTaint instance) { + instance = (instance != null ? instance : new V1beta1DeviceTaint()); + if (instance != null) { + this.withEffect(instance.getEffect()); + this.withKey(instance.getKey()); + this.withTimeAdded(instance.getTimeAdded()); + this.withValue(instance.getValue()); + } + } + + public String getEffect() { + return this.effect; + } + + public A withEffect(String effect) { + this.effect = effect; + return (A) this; + } + + public boolean hasEffect() { + return this.effect != null; + } + + public String getKey() { + return this.key; + } + + public A withKey(String key) { + this.key = key; + return (A) this; + } + + public boolean hasKey() { + return this.key != null; + } + + public OffsetDateTime getTimeAdded() { + return this.timeAdded; + } + + public A withTimeAdded(OffsetDateTime timeAdded) { + this.timeAdded = timeAdded; + return (A) this; + } + + public boolean hasTimeAdded() { + return this.timeAdded != null; + } + + public String getValue() { + return this.value; + } + + public A withValue(String value) { + this.value = value; + return (A) this; + } + + public boolean hasValue() { + return this.value != null; + } + + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + if (!super.equals(o)) return false; + V1beta1DeviceTaintFluent that = (V1beta1DeviceTaintFluent) o; + if (!java.util.Objects.equals(effect, that.effect)) return false; + if (!java.util.Objects.equals(key, that.key)) return false; + if (!java.util.Objects.equals(timeAdded, that.timeAdded)) return false; + if (!java.util.Objects.equals(value, that.value)) return false; + return true; + } + + public int hashCode() { + return java.util.Objects.hash(effect, key, timeAdded, value, super.hashCode()); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (effect != null) { sb.append("effect:"); sb.append(effect + ","); } + if (key != null) { sb.append("key:"); sb.append(key + ","); } + if (timeAdded != null) { sb.append("timeAdded:"); sb.append(timeAdded + ","); } + if (value != null) { sb.append("value:"); sb.append(value); } + sb.append("}"); + return sb.toString(); + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceTolerationBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceTolerationBuilder.java new file mode 100644 index 0000000000..853c7e5faa --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceTolerationBuilder.java @@ -0,0 +1,35 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +public class V1beta1DeviceTolerationBuilder extends V1beta1DeviceTolerationFluent implements VisitableBuilder{ + public V1beta1DeviceTolerationBuilder() { + this(new V1beta1DeviceToleration()); + } + + public V1beta1DeviceTolerationBuilder(V1beta1DeviceTolerationFluent fluent) { + this(fluent, new V1beta1DeviceToleration()); + } + + public V1beta1DeviceTolerationBuilder(V1beta1DeviceTolerationFluent fluent,V1beta1DeviceToleration instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1beta1DeviceTolerationBuilder(V1beta1DeviceToleration instance) { + this.fluent = this; + this.copyInstance(instance); + } + V1beta1DeviceTolerationFluent fluent; + + public V1beta1DeviceToleration build() { + V1beta1DeviceToleration buildable = new V1beta1DeviceToleration(); + buildable.setEffect(fluent.getEffect()); + buildable.setKey(fluent.getKey()); + buildable.setOperator(fluent.getOperator()); + buildable.setTolerationSeconds(fluent.getTolerationSeconds()); + buildable.setValue(fluent.getValue()); + return buildable; + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceTolerationFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceTolerationFluent.java new file mode 100644 index 0000000000..5406ea353d --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceTolerationFluent.java @@ -0,0 +1,132 @@ +package io.kubernetes.client.openapi.models; + +import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Long; +import java.lang.Object; +import java.lang.String; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1beta1DeviceTolerationFluent> extends BaseFluent{ + public V1beta1DeviceTolerationFluent() { + } + + public V1beta1DeviceTolerationFluent(V1beta1DeviceToleration instance) { + this.copyInstance(instance); + } + private String effect; + private String key; + private String operator; + private Long tolerationSeconds; + private String value; + + protected void copyInstance(V1beta1DeviceToleration instance) { + instance = (instance != null ? instance : new V1beta1DeviceToleration()); + if (instance != null) { + this.withEffect(instance.getEffect()); + this.withKey(instance.getKey()); + this.withOperator(instance.getOperator()); + this.withTolerationSeconds(instance.getTolerationSeconds()); + this.withValue(instance.getValue()); + } + } + + public String getEffect() { + return this.effect; + } + + public A withEffect(String effect) { + this.effect = effect; + return (A) this; + } + + public boolean hasEffect() { + return this.effect != null; + } + + public String getKey() { + return this.key; + } + + public A withKey(String key) { + this.key = key; + return (A) this; + } + + public boolean hasKey() { + return this.key != null; + } + + public String getOperator() { + return this.operator; + } + + public A withOperator(String operator) { + this.operator = operator; + return (A) this; + } + + public boolean hasOperator() { + return this.operator != null; + } + + public Long getTolerationSeconds() { + return this.tolerationSeconds; + } + + public A withTolerationSeconds(Long tolerationSeconds) { + this.tolerationSeconds = tolerationSeconds; + return (A) this; + } + + public boolean hasTolerationSeconds() { + return this.tolerationSeconds != null; + } + + public String getValue() { + return this.value; + } + + public A withValue(String value) { + this.value = value; + return (A) this; + } + + public boolean hasValue() { + return this.value != null; + } + + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + if (!super.equals(o)) return false; + V1beta1DeviceTolerationFluent that = (V1beta1DeviceTolerationFluent) o; + if (!java.util.Objects.equals(effect, that.effect)) return false; + if (!java.util.Objects.equals(key, that.key)) return false; + if (!java.util.Objects.equals(operator, that.operator)) return false; + if (!java.util.Objects.equals(tolerationSeconds, that.tolerationSeconds)) return false; + if (!java.util.Objects.equals(value, that.value)) return false; + return true; + } + + public int hashCode() { + return java.util.Objects.hash(effect, key, operator, tolerationSeconds, value, super.hashCode()); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (effect != null) { sb.append("effect:"); sb.append(effect + ","); } + if (key != null) { sb.append("key:"); sb.append(key + ","); } + if (operator != null) { sb.append("operator:"); sb.append(operator + ","); } + if (tolerationSeconds != null) { sb.append("tolerationSeconds:"); sb.append(tolerationSeconds + ","); } + if (value != null) { sb.append("value:"); sb.append(value); } + sb.append("}"); + return sb.toString(); + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1IPAddressBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1IPAddressBuilder.java new file mode 100644 index 0000000000..1c01b4bb57 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1IPAddressBuilder.java @@ -0,0 +1,34 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +public class V1beta1IPAddressBuilder extends V1beta1IPAddressFluent implements VisitableBuilder{ + public V1beta1IPAddressBuilder() { + this(new V1beta1IPAddress()); + } + + public V1beta1IPAddressBuilder(V1beta1IPAddressFluent fluent) { + this(fluent, new V1beta1IPAddress()); + } + + public V1beta1IPAddressBuilder(V1beta1IPAddressFluent fluent,V1beta1IPAddress instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1beta1IPAddressBuilder(V1beta1IPAddress instance) { + this.fluent = this; + this.copyInstance(instance); + } + V1beta1IPAddressFluent fluent; + + public V1beta1IPAddress build() { + V1beta1IPAddress buildable = new V1beta1IPAddress(); + buildable.setApiVersion(fluent.getApiVersion()); + buildable.setKind(fluent.getKind()); + buildable.setMetadata(fluent.buildMetadata()); + buildable.setSpec(fluent.buildSpec()); + return buildable; + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1IPAddressFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1IPAddressFluent.java new file mode 100644 index 0000000000..7af7890fcd --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1IPAddressFluent.java @@ -0,0 +1,200 @@ +package io.kubernetes.client.openapi.models; + +import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.Nested; +import java.lang.String; +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Object; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1beta1IPAddressFluent> extends BaseFluent{ + public V1beta1IPAddressFluent() { + } + + public V1beta1IPAddressFluent(V1beta1IPAddress instance) { + this.copyInstance(instance); + } + private String apiVersion; + private String kind; + private V1ObjectMetaBuilder metadata; + private V1beta1IPAddressSpecBuilder spec; + + protected void copyInstance(V1beta1IPAddress instance) { + instance = (instance != null ? instance : new V1beta1IPAddress()); + if (instance != null) { + this.withApiVersion(instance.getApiVersion()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); + this.withSpec(instance.getSpec()); + } + } + + public String getApiVersion() { + return this.apiVersion; + } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + + public boolean hasApiVersion() { + return this.apiVersion != null; + } + + public String getKind() { + return this.kind; + } + + public A withKind(String kind) { + this.kind = kind; + return (A) this; + } + + public boolean hasKind() { + return this.kind != null; + } + + public V1ObjectMeta buildMetadata() { + return this.metadata != null ? this.metadata.build() : null; + } + + public A withMetadata(V1ObjectMeta metadata) { + this._visitables.remove("metadata"); + if (metadata != null) { + this.metadata = new V1ObjectMetaBuilder(metadata); + this._visitables.get("metadata").add(this.metadata); + } else { + this.metadata = null; + this._visitables.get("metadata").remove(this.metadata); + } + return (A) this; + } + + public boolean hasMetadata() { + return this.metadata != null; + } + + public MetadataNested withNewMetadata() { + return new MetadataNested(null); + } + + public MetadataNested withNewMetadataLike(V1ObjectMeta item) { + return new MetadataNested(item); + } + + public MetadataNested editMetadata() { + return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(null)); + } + + public MetadataNested editOrNewMetadata() { + return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(new V1ObjectMetaBuilder().build())); + } + + public MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { + return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(item)); + } + + public V1beta1IPAddressSpec buildSpec() { + return this.spec != null ? this.spec.build() : null; + } + + public A withSpec(V1beta1IPAddressSpec spec) { + this._visitables.remove("spec"); + if (spec != null) { + this.spec = new V1beta1IPAddressSpecBuilder(spec); + this._visitables.get("spec").add(this.spec); + } else { + this.spec = null; + this._visitables.get("spec").remove(this.spec); + } + return (A) this; + } + + public boolean hasSpec() { + return this.spec != null; + } + + public SpecNested withNewSpec() { + return new SpecNested(null); + } + + public SpecNested withNewSpecLike(V1beta1IPAddressSpec item) { + return new SpecNested(item); + } + + public SpecNested editSpec() { + return withNewSpecLike(java.util.Optional.ofNullable(buildSpec()).orElse(null)); + } + + public SpecNested editOrNewSpec() { + return withNewSpecLike(java.util.Optional.ofNullable(buildSpec()).orElse(new V1beta1IPAddressSpecBuilder().build())); + } + + public SpecNested editOrNewSpecLike(V1beta1IPAddressSpec item) { + return withNewSpecLike(java.util.Optional.ofNullable(buildSpec()).orElse(item)); + } + + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + if (!super.equals(o)) return false; + V1beta1IPAddressFluent that = (V1beta1IPAddressFluent) o; + if (!java.util.Objects.equals(apiVersion, that.apiVersion)) return false; + if (!java.util.Objects.equals(kind, that.kind)) return false; + if (!java.util.Objects.equals(metadata, that.metadata)) return false; + if (!java.util.Objects.equals(spec, that.spec)) return false; + return true; + } + + public int hashCode() { + return java.util.Objects.hash(apiVersion, kind, metadata, spec, super.hashCode()); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (apiVersion != null) { sb.append("apiVersion:"); sb.append(apiVersion + ","); } + if (kind != null) { sb.append("kind:"); sb.append(kind + ","); } + if (metadata != null) { sb.append("metadata:"); sb.append(metadata + ","); } + if (spec != null) { sb.append("spec:"); sb.append(spec); } + sb.append("}"); + return sb.toString(); + } + public class MetadataNested extends V1ObjectMetaFluent> implements Nested{ + MetadataNested(V1ObjectMeta item) { + this.builder = new V1ObjectMetaBuilder(this, item); + } + V1ObjectMetaBuilder builder; + + public N and() { + return (N) V1beta1IPAddressFluent.this.withMetadata(builder.build()); + } + + public N endMetadata() { + return and(); + } + + + } + public class SpecNested extends V1beta1IPAddressSpecFluent> implements Nested{ + SpecNested(V1beta1IPAddressSpec item) { + this.builder = new V1beta1IPAddressSpecBuilder(this, item); + } + V1beta1IPAddressSpecBuilder builder; + + public N and() { + return (N) V1beta1IPAddressFluent.this.withSpec(builder.build()); + } + + public N endSpec() { + return and(); + } + + + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1IPAddressListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1IPAddressListBuilder.java new file mode 100644 index 0000000000..5ab5ccd262 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1IPAddressListBuilder.java @@ -0,0 +1,34 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +public class V1beta1IPAddressListBuilder extends V1beta1IPAddressListFluent implements VisitableBuilder{ + public V1beta1IPAddressListBuilder() { + this(new V1beta1IPAddressList()); + } + + public V1beta1IPAddressListBuilder(V1beta1IPAddressListFluent fluent) { + this(fluent, new V1beta1IPAddressList()); + } + + public V1beta1IPAddressListBuilder(V1beta1IPAddressListFluent fluent,V1beta1IPAddressList instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1beta1IPAddressListBuilder(V1beta1IPAddressList instance) { + this.fluent = this; + this.copyInstance(instance); + } + V1beta1IPAddressListFluent fluent; + + public V1beta1IPAddressList build() { + V1beta1IPAddressList buildable = new V1beta1IPAddressList(); + buildable.setApiVersion(fluent.getApiVersion()); + buildable.setItems(fluent.buildItems()); + buildable.setKind(fluent.getKind()); + buildable.setMetadata(fluent.buildMetadata()); + return buildable; + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1IPAddressListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1IPAddressListFluent.java new file mode 100644 index 0000000000..e8b47feea4 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1IPAddressListFluent.java @@ -0,0 +1,331 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.Nested; +import java.util.ArrayList; +import java.lang.String; +import java.util.function.Predicate; +import io.kubernetes.client.fluent.BaseFluent; +import java.util.Iterator; +import java.util.Collection; +import java.lang.Object; +import java.util.List; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1beta1IPAddressListFluent> extends BaseFluent{ + public V1beta1IPAddressListFluent() { + } + + public V1beta1IPAddressListFluent(V1beta1IPAddressList instance) { + this.copyInstance(instance); + } + private String apiVersion; + private ArrayList items; + private String kind; + private V1ListMetaBuilder metadata; + + protected void copyInstance(V1beta1IPAddressList instance) { + instance = (instance != null ? instance : new V1beta1IPAddressList()); + if (instance != null) { + this.withApiVersion(instance.getApiVersion()); + this.withItems(instance.getItems()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); + } + } + + public String getApiVersion() { + return this.apiVersion; + } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + + public boolean hasApiVersion() { + return this.apiVersion != null; + } + + public A addToItems(int index,V1beta1IPAddress item) { + if (this.items == null) {this.items = new ArrayList();} + V1beta1IPAddressBuilder builder = new V1beta1IPAddressBuilder(item); + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.add(index, builder); + } + return (A)this; + } + + public A setToItems(int index,V1beta1IPAddress item) { + if (this.items == null) {this.items = new ArrayList();} + V1beta1IPAddressBuilder builder = new V1beta1IPAddressBuilder(item); + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.set(index, builder); + } + return (A)this; + } + + public A addToItems(io.kubernetes.client.openapi.models.V1beta1IPAddress... items) { + if (this.items == null) {this.items = new ArrayList();} + for (V1beta1IPAddress item : items) {V1beta1IPAddressBuilder builder = new V1beta1IPAddressBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; + } + + public A addAllToItems(Collection items) { + if (this.items == null) {this.items = new ArrayList();} + for (V1beta1IPAddress item : items) {V1beta1IPAddressBuilder builder = new V1beta1IPAddressBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; + } + + public A removeFromItems(io.kubernetes.client.openapi.models.V1beta1IPAddress... items) { + if (this.items == null) return (A)this; + for (V1beta1IPAddress item : items) {V1beta1IPAddressBuilder builder = new V1beta1IPAddressBuilder(item);_visitables.get("items").remove(builder); this.items.remove(builder);} return (A)this; + } + + public A removeAllFromItems(Collection items) { + if (this.items == null) return (A)this; + for (V1beta1IPAddress item : items) {V1beta1IPAddressBuilder builder = new V1beta1IPAddressBuilder(item);_visitables.get("items").remove(builder); this.items.remove(builder);} return (A)this; + } + + public A removeMatchingFromItems(Predicate predicate) { + if (items == null) return (A) this; + final Iterator each = items.iterator(); + final List visitables = _visitables.get("items"); + while (each.hasNext()) { + V1beta1IPAddressBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A)this; + } + + public List buildItems() { + return this.items != null ? build(items) : null; + } + + public V1beta1IPAddress buildItem(int index) { + return this.items.get(index).build(); + } + + public V1beta1IPAddress buildFirstItem() { + return this.items.get(0).build(); + } + + public V1beta1IPAddress buildLastItem() { + return this.items.get(items.size() - 1).build(); + } + + public V1beta1IPAddress buildMatchingItem(Predicate predicate) { + for (V1beta1IPAddressBuilder item : items) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; + } + + public boolean hasMatchingItem(Predicate predicate) { + for (V1beta1IPAddressBuilder item : items) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public A withItems(List items) { + if (this.items != null) { + this._visitables.get("items").clear(); + } + if (items != null) { + this.items = new ArrayList(); + for (V1beta1IPAddress item : items) { + this.addToItems(item); + } + } else { + this.items = null; + } + return (A) this; + } + + public A withItems(io.kubernetes.client.openapi.models.V1beta1IPAddress... items) { + if (this.items != null) { + this.items.clear(); + _visitables.remove("items"); + } + if (items != null) { + for (V1beta1IPAddress item : items) { + this.addToItems(item); + } + } + return (A) this; + } + + public boolean hasItems() { + return this.items != null && !this.items.isEmpty(); + } + + public ItemsNested addNewItem() { + return new ItemsNested(-1, null); + } + + public ItemsNested addNewItemLike(V1beta1IPAddress item) { + return new ItemsNested(-1, item); + } + + public ItemsNested setNewItemLike(int index,V1beta1IPAddress item) { + return new ItemsNested(index, item); + } + + public ItemsNested editItem(int index) { + if (items.size() <= index) throw new RuntimeException("Can't edit items. Index exceeds size."); + return setNewItemLike(index, buildItem(index)); + } + + public ItemsNested editFirstItem() { + if (items.size() == 0) throw new RuntimeException("Can't edit first items. The list is empty."); + return setNewItemLike(0, buildItem(0)); + } + + public ItemsNested editLastItem() { + int index = items.size() - 1; + if (index < 0) throw new RuntimeException("Can't edit last items. The list is empty."); + return setNewItemLike(index, buildItem(index)); + } + + public ItemsNested editMatchingItem(Predicate predicate) { + int index = -1; + for (int i=0;i withNewMetadata() { + return new MetadataNested(null); + } + + public MetadataNested withNewMetadataLike(V1ListMeta item) { + return new MetadataNested(item); + } + + public MetadataNested editMetadata() { + return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(null)); + } + + public MetadataNested editOrNewMetadata() { + return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(new V1ListMetaBuilder().build())); + } + + public MetadataNested editOrNewMetadataLike(V1ListMeta item) { + return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(item)); + } + + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + if (!super.equals(o)) return false; + V1beta1IPAddressListFluent that = (V1beta1IPAddressListFluent) o; + if (!java.util.Objects.equals(apiVersion, that.apiVersion)) return false; + if (!java.util.Objects.equals(items, that.items)) return false; + if (!java.util.Objects.equals(kind, that.kind)) return false; + if (!java.util.Objects.equals(metadata, that.metadata)) return false; + return true; + } + + public int hashCode() { + return java.util.Objects.hash(apiVersion, items, kind, metadata, super.hashCode()); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (apiVersion != null) { sb.append("apiVersion:"); sb.append(apiVersion + ","); } + if (items != null && !items.isEmpty()) { sb.append("items:"); sb.append(items + ","); } + if (kind != null) { sb.append("kind:"); sb.append(kind + ","); } + if (metadata != null) { sb.append("metadata:"); sb.append(metadata); } + sb.append("}"); + return sb.toString(); + } + public class ItemsNested extends V1beta1IPAddressFluent> implements Nested{ + ItemsNested(int index,V1beta1IPAddress item) { + this.index = index; + this.builder = new V1beta1IPAddressBuilder(this, item); + } + V1beta1IPAddressBuilder builder; + int index; + + public N and() { + return (N) V1beta1IPAddressListFluent.this.setToItems(index,builder.build()); + } + + public N endItem() { + return and(); + } + + + } + public class MetadataNested extends V1ListMetaFluent> implements Nested{ + MetadataNested(V1ListMeta item) { + this.builder = new V1ListMetaBuilder(this, item); + } + V1ListMetaBuilder builder; + + public N and() { + return (N) V1beta1IPAddressListFluent.this.withMetadata(builder.build()); + } + + public N endMetadata() { + return and(); + } + + + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1IPAddressSpecBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1IPAddressSpecBuilder.java new file mode 100644 index 0000000000..1a9d61b008 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1IPAddressSpecBuilder.java @@ -0,0 +1,31 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +public class V1beta1IPAddressSpecBuilder extends V1beta1IPAddressSpecFluent implements VisitableBuilder{ + public V1beta1IPAddressSpecBuilder() { + this(new V1beta1IPAddressSpec()); + } + + public V1beta1IPAddressSpecBuilder(V1beta1IPAddressSpecFluent fluent) { + this(fluent, new V1beta1IPAddressSpec()); + } + + public V1beta1IPAddressSpecBuilder(V1beta1IPAddressSpecFluent fluent,V1beta1IPAddressSpec instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1beta1IPAddressSpecBuilder(V1beta1IPAddressSpec instance) { + this.fluent = this; + this.copyInstance(instance); + } + V1beta1IPAddressSpecFluent fluent; + + public V1beta1IPAddressSpec build() { + V1beta1IPAddressSpec buildable = new V1beta1IPAddressSpec(); + buildable.setParentRef(fluent.buildParentRef()); + return buildable; + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1IPAddressSpecFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1IPAddressSpecFluent.java new file mode 100644 index 0000000000..5791e99c70 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1IPAddressSpecFluent.java @@ -0,0 +1,106 @@ +package io.kubernetes.client.openapi.models; + +import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Object; +import java.lang.String; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1beta1IPAddressSpecFluent> extends BaseFluent{ + public V1beta1IPAddressSpecFluent() { + } + + public V1beta1IPAddressSpecFluent(V1beta1IPAddressSpec instance) { + this.copyInstance(instance); + } + private V1beta1ParentReferenceBuilder parentRef; + + protected void copyInstance(V1beta1IPAddressSpec instance) { + instance = (instance != null ? instance : new V1beta1IPAddressSpec()); + if (instance != null) { + this.withParentRef(instance.getParentRef()); + } + } + + public V1beta1ParentReference buildParentRef() { + return this.parentRef != null ? this.parentRef.build() : null; + } + + public A withParentRef(V1beta1ParentReference parentRef) { + this._visitables.remove("parentRef"); + if (parentRef != null) { + this.parentRef = new V1beta1ParentReferenceBuilder(parentRef); + this._visitables.get("parentRef").add(this.parentRef); + } else { + this.parentRef = null; + this._visitables.get("parentRef").remove(this.parentRef); + } + return (A) this; + } + + public boolean hasParentRef() { + return this.parentRef != null; + } + + public ParentRefNested withNewParentRef() { + return new ParentRefNested(null); + } + + public ParentRefNested withNewParentRefLike(V1beta1ParentReference item) { + return new ParentRefNested(item); + } + + public ParentRefNested editParentRef() { + return withNewParentRefLike(java.util.Optional.ofNullable(buildParentRef()).orElse(null)); + } + + public ParentRefNested editOrNewParentRef() { + return withNewParentRefLike(java.util.Optional.ofNullable(buildParentRef()).orElse(new V1beta1ParentReferenceBuilder().build())); + } + + public ParentRefNested editOrNewParentRefLike(V1beta1ParentReference item) { + return withNewParentRefLike(java.util.Optional.ofNullable(buildParentRef()).orElse(item)); + } + + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + if (!super.equals(o)) return false; + V1beta1IPAddressSpecFluent that = (V1beta1IPAddressSpecFluent) o; + if (!java.util.Objects.equals(parentRef, that.parentRef)) return false; + return true; + } + + public int hashCode() { + return java.util.Objects.hash(parentRef, super.hashCode()); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (parentRef != null) { sb.append("parentRef:"); sb.append(parentRef); } + sb.append("}"); + return sb.toString(); + } + public class ParentRefNested extends V1beta1ParentReferenceFluent> implements Nested{ + ParentRefNested(V1beta1ParentReference item) { + this.builder = new V1beta1ParentReferenceBuilder(this, item); + } + V1beta1ParentReferenceBuilder builder; + + public N and() { + return (N) V1beta1IPAddressSpecFluent.this.withParentRef(builder.build()); + } + + public N endParentRef() { + return and(); + } + + + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1LeaseCandidateBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1LeaseCandidateBuilder.java new file mode 100644 index 0000000000..5cd16d2995 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1LeaseCandidateBuilder.java @@ -0,0 +1,34 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +public class V1beta1LeaseCandidateBuilder extends V1beta1LeaseCandidateFluent implements VisitableBuilder{ + public V1beta1LeaseCandidateBuilder() { + this(new V1beta1LeaseCandidate()); + } + + public V1beta1LeaseCandidateBuilder(V1beta1LeaseCandidateFluent fluent) { + this(fluent, new V1beta1LeaseCandidate()); + } + + public V1beta1LeaseCandidateBuilder(V1beta1LeaseCandidateFluent fluent,V1beta1LeaseCandidate instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1beta1LeaseCandidateBuilder(V1beta1LeaseCandidate instance) { + this.fluent = this; + this.copyInstance(instance); + } + V1beta1LeaseCandidateFluent fluent; + + public V1beta1LeaseCandidate build() { + V1beta1LeaseCandidate buildable = new V1beta1LeaseCandidate(); + buildable.setApiVersion(fluent.getApiVersion()); + buildable.setKind(fluent.getKind()); + buildable.setMetadata(fluent.buildMetadata()); + buildable.setSpec(fluent.buildSpec()); + return buildable; + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1LeaseCandidateFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1LeaseCandidateFluent.java new file mode 100644 index 0000000000..876485d65e --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1LeaseCandidateFluent.java @@ -0,0 +1,200 @@ +package io.kubernetes.client.openapi.models; + +import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.Nested; +import java.lang.String; +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Object; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1beta1LeaseCandidateFluent> extends BaseFluent{ + public V1beta1LeaseCandidateFluent() { + } + + public V1beta1LeaseCandidateFluent(V1beta1LeaseCandidate instance) { + this.copyInstance(instance); + } + private String apiVersion; + private String kind; + private V1ObjectMetaBuilder metadata; + private V1beta1LeaseCandidateSpecBuilder spec; + + protected void copyInstance(V1beta1LeaseCandidate instance) { + instance = (instance != null ? instance : new V1beta1LeaseCandidate()); + if (instance != null) { + this.withApiVersion(instance.getApiVersion()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); + this.withSpec(instance.getSpec()); + } + } + + public String getApiVersion() { + return this.apiVersion; + } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + + public boolean hasApiVersion() { + return this.apiVersion != null; + } + + public String getKind() { + return this.kind; + } + + public A withKind(String kind) { + this.kind = kind; + return (A) this; + } + + public boolean hasKind() { + return this.kind != null; + } + + public V1ObjectMeta buildMetadata() { + return this.metadata != null ? this.metadata.build() : null; + } + + public A withMetadata(V1ObjectMeta metadata) { + this._visitables.remove("metadata"); + if (metadata != null) { + this.metadata = new V1ObjectMetaBuilder(metadata); + this._visitables.get("metadata").add(this.metadata); + } else { + this.metadata = null; + this._visitables.get("metadata").remove(this.metadata); + } + return (A) this; + } + + public boolean hasMetadata() { + return this.metadata != null; + } + + public MetadataNested withNewMetadata() { + return new MetadataNested(null); + } + + public MetadataNested withNewMetadataLike(V1ObjectMeta item) { + return new MetadataNested(item); + } + + public MetadataNested editMetadata() { + return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(null)); + } + + public MetadataNested editOrNewMetadata() { + return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(new V1ObjectMetaBuilder().build())); + } + + public MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { + return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(item)); + } + + public V1beta1LeaseCandidateSpec buildSpec() { + return this.spec != null ? this.spec.build() : null; + } + + public A withSpec(V1beta1LeaseCandidateSpec spec) { + this._visitables.remove("spec"); + if (spec != null) { + this.spec = new V1beta1LeaseCandidateSpecBuilder(spec); + this._visitables.get("spec").add(this.spec); + } else { + this.spec = null; + this._visitables.get("spec").remove(this.spec); + } + return (A) this; + } + + public boolean hasSpec() { + return this.spec != null; + } + + public SpecNested withNewSpec() { + return new SpecNested(null); + } + + public SpecNested withNewSpecLike(V1beta1LeaseCandidateSpec item) { + return new SpecNested(item); + } + + public SpecNested editSpec() { + return withNewSpecLike(java.util.Optional.ofNullable(buildSpec()).orElse(null)); + } + + public SpecNested editOrNewSpec() { + return withNewSpecLike(java.util.Optional.ofNullable(buildSpec()).orElse(new V1beta1LeaseCandidateSpecBuilder().build())); + } + + public SpecNested editOrNewSpecLike(V1beta1LeaseCandidateSpec item) { + return withNewSpecLike(java.util.Optional.ofNullable(buildSpec()).orElse(item)); + } + + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + if (!super.equals(o)) return false; + V1beta1LeaseCandidateFluent that = (V1beta1LeaseCandidateFluent) o; + if (!java.util.Objects.equals(apiVersion, that.apiVersion)) return false; + if (!java.util.Objects.equals(kind, that.kind)) return false; + if (!java.util.Objects.equals(metadata, that.metadata)) return false; + if (!java.util.Objects.equals(spec, that.spec)) return false; + return true; + } + + public int hashCode() { + return java.util.Objects.hash(apiVersion, kind, metadata, spec, super.hashCode()); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (apiVersion != null) { sb.append("apiVersion:"); sb.append(apiVersion + ","); } + if (kind != null) { sb.append("kind:"); sb.append(kind + ","); } + if (metadata != null) { sb.append("metadata:"); sb.append(metadata + ","); } + if (spec != null) { sb.append("spec:"); sb.append(spec); } + sb.append("}"); + return sb.toString(); + } + public class MetadataNested extends V1ObjectMetaFluent> implements Nested{ + MetadataNested(V1ObjectMeta item) { + this.builder = new V1ObjectMetaBuilder(this, item); + } + V1ObjectMetaBuilder builder; + + public N and() { + return (N) V1beta1LeaseCandidateFluent.this.withMetadata(builder.build()); + } + + public N endMetadata() { + return and(); + } + + + } + public class SpecNested extends V1beta1LeaseCandidateSpecFluent> implements Nested{ + SpecNested(V1beta1LeaseCandidateSpec item) { + this.builder = new V1beta1LeaseCandidateSpecBuilder(this, item); + } + V1beta1LeaseCandidateSpecBuilder builder; + + public N and() { + return (N) V1beta1LeaseCandidateFluent.this.withSpec(builder.build()); + } + + public N endSpec() { + return and(); + } + + + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1LeaseCandidateListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1LeaseCandidateListBuilder.java new file mode 100644 index 0000000000..6bc0c2567d --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1LeaseCandidateListBuilder.java @@ -0,0 +1,34 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +public class V1beta1LeaseCandidateListBuilder extends V1beta1LeaseCandidateListFluent implements VisitableBuilder{ + public V1beta1LeaseCandidateListBuilder() { + this(new V1beta1LeaseCandidateList()); + } + + public V1beta1LeaseCandidateListBuilder(V1beta1LeaseCandidateListFluent fluent) { + this(fluent, new V1beta1LeaseCandidateList()); + } + + public V1beta1LeaseCandidateListBuilder(V1beta1LeaseCandidateListFluent fluent,V1beta1LeaseCandidateList instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1beta1LeaseCandidateListBuilder(V1beta1LeaseCandidateList instance) { + this.fluent = this; + this.copyInstance(instance); + } + V1beta1LeaseCandidateListFluent fluent; + + public V1beta1LeaseCandidateList build() { + V1beta1LeaseCandidateList buildable = new V1beta1LeaseCandidateList(); + buildable.setApiVersion(fluent.getApiVersion()); + buildable.setItems(fluent.buildItems()); + buildable.setKind(fluent.getKind()); + buildable.setMetadata(fluent.buildMetadata()); + return buildable; + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1LeaseCandidateListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1LeaseCandidateListFluent.java new file mode 100644 index 0000000000..a7104ea11e --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1LeaseCandidateListFluent.java @@ -0,0 +1,331 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.Nested; +import java.util.ArrayList; +import java.lang.String; +import java.util.function.Predicate; +import io.kubernetes.client.fluent.BaseFluent; +import java.util.Iterator; +import java.util.Collection; +import java.lang.Object; +import java.util.List; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1beta1LeaseCandidateListFluent> extends BaseFluent{ + public V1beta1LeaseCandidateListFluent() { + } + + public V1beta1LeaseCandidateListFluent(V1beta1LeaseCandidateList instance) { + this.copyInstance(instance); + } + private String apiVersion; + private ArrayList items; + private String kind; + private V1ListMetaBuilder metadata; + + protected void copyInstance(V1beta1LeaseCandidateList instance) { + instance = (instance != null ? instance : new V1beta1LeaseCandidateList()); + if (instance != null) { + this.withApiVersion(instance.getApiVersion()); + this.withItems(instance.getItems()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); + } + } + + public String getApiVersion() { + return this.apiVersion; + } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + + public boolean hasApiVersion() { + return this.apiVersion != null; + } + + public A addToItems(int index,V1beta1LeaseCandidate item) { + if (this.items == null) {this.items = new ArrayList();} + V1beta1LeaseCandidateBuilder builder = new V1beta1LeaseCandidateBuilder(item); + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.add(index, builder); + } + return (A)this; + } + + public A setToItems(int index,V1beta1LeaseCandidate item) { + if (this.items == null) {this.items = new ArrayList();} + V1beta1LeaseCandidateBuilder builder = new V1beta1LeaseCandidateBuilder(item); + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.set(index, builder); + } + return (A)this; + } + + public A addToItems(io.kubernetes.client.openapi.models.V1beta1LeaseCandidate... items) { + if (this.items == null) {this.items = new ArrayList();} + for (V1beta1LeaseCandidate item : items) {V1beta1LeaseCandidateBuilder builder = new V1beta1LeaseCandidateBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; + } + + public A addAllToItems(Collection items) { + if (this.items == null) {this.items = new ArrayList();} + for (V1beta1LeaseCandidate item : items) {V1beta1LeaseCandidateBuilder builder = new V1beta1LeaseCandidateBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; + } + + public A removeFromItems(io.kubernetes.client.openapi.models.V1beta1LeaseCandidate... items) { + if (this.items == null) return (A)this; + for (V1beta1LeaseCandidate item : items) {V1beta1LeaseCandidateBuilder builder = new V1beta1LeaseCandidateBuilder(item);_visitables.get("items").remove(builder); this.items.remove(builder);} return (A)this; + } + + public A removeAllFromItems(Collection items) { + if (this.items == null) return (A)this; + for (V1beta1LeaseCandidate item : items) {V1beta1LeaseCandidateBuilder builder = new V1beta1LeaseCandidateBuilder(item);_visitables.get("items").remove(builder); this.items.remove(builder);} return (A)this; + } + + public A removeMatchingFromItems(Predicate predicate) { + if (items == null) return (A) this; + final Iterator each = items.iterator(); + final List visitables = _visitables.get("items"); + while (each.hasNext()) { + V1beta1LeaseCandidateBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A)this; + } + + public List buildItems() { + return this.items != null ? build(items) : null; + } + + public V1beta1LeaseCandidate buildItem(int index) { + return this.items.get(index).build(); + } + + public V1beta1LeaseCandidate buildFirstItem() { + return this.items.get(0).build(); + } + + public V1beta1LeaseCandidate buildLastItem() { + return this.items.get(items.size() - 1).build(); + } + + public V1beta1LeaseCandidate buildMatchingItem(Predicate predicate) { + for (V1beta1LeaseCandidateBuilder item : items) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; + } + + public boolean hasMatchingItem(Predicate predicate) { + for (V1beta1LeaseCandidateBuilder item : items) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public A withItems(List items) { + if (this.items != null) { + this._visitables.get("items").clear(); + } + if (items != null) { + this.items = new ArrayList(); + for (V1beta1LeaseCandidate item : items) { + this.addToItems(item); + } + } else { + this.items = null; + } + return (A) this; + } + + public A withItems(io.kubernetes.client.openapi.models.V1beta1LeaseCandidate... items) { + if (this.items != null) { + this.items.clear(); + _visitables.remove("items"); + } + if (items != null) { + for (V1beta1LeaseCandidate item : items) { + this.addToItems(item); + } + } + return (A) this; + } + + public boolean hasItems() { + return this.items != null && !this.items.isEmpty(); + } + + public ItemsNested addNewItem() { + return new ItemsNested(-1, null); + } + + public ItemsNested addNewItemLike(V1beta1LeaseCandidate item) { + return new ItemsNested(-1, item); + } + + public ItemsNested setNewItemLike(int index,V1beta1LeaseCandidate item) { + return new ItemsNested(index, item); + } + + public ItemsNested editItem(int index) { + if (items.size() <= index) throw new RuntimeException("Can't edit items. Index exceeds size."); + return setNewItemLike(index, buildItem(index)); + } + + public ItemsNested editFirstItem() { + if (items.size() == 0) throw new RuntimeException("Can't edit first items. The list is empty."); + return setNewItemLike(0, buildItem(0)); + } + + public ItemsNested editLastItem() { + int index = items.size() - 1; + if (index < 0) throw new RuntimeException("Can't edit last items. The list is empty."); + return setNewItemLike(index, buildItem(index)); + } + + public ItemsNested editMatchingItem(Predicate predicate) { + int index = -1; + for (int i=0;i withNewMetadata() { + return new MetadataNested(null); + } + + public MetadataNested withNewMetadataLike(V1ListMeta item) { + return new MetadataNested(item); + } + + public MetadataNested editMetadata() { + return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(null)); + } + + public MetadataNested editOrNewMetadata() { + return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(new V1ListMetaBuilder().build())); + } + + public MetadataNested editOrNewMetadataLike(V1ListMeta item) { + return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(item)); + } + + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + if (!super.equals(o)) return false; + V1beta1LeaseCandidateListFluent that = (V1beta1LeaseCandidateListFluent) o; + if (!java.util.Objects.equals(apiVersion, that.apiVersion)) return false; + if (!java.util.Objects.equals(items, that.items)) return false; + if (!java.util.Objects.equals(kind, that.kind)) return false; + if (!java.util.Objects.equals(metadata, that.metadata)) return false; + return true; + } + + public int hashCode() { + return java.util.Objects.hash(apiVersion, items, kind, metadata, super.hashCode()); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (apiVersion != null) { sb.append("apiVersion:"); sb.append(apiVersion + ","); } + if (items != null && !items.isEmpty()) { sb.append("items:"); sb.append(items + ","); } + if (kind != null) { sb.append("kind:"); sb.append(kind + ","); } + if (metadata != null) { sb.append("metadata:"); sb.append(metadata); } + sb.append("}"); + return sb.toString(); + } + public class ItemsNested extends V1beta1LeaseCandidateFluent> implements Nested{ + ItemsNested(int index,V1beta1LeaseCandidate item) { + this.index = index; + this.builder = new V1beta1LeaseCandidateBuilder(this, item); + } + V1beta1LeaseCandidateBuilder builder; + int index; + + public N and() { + return (N) V1beta1LeaseCandidateListFluent.this.setToItems(index,builder.build()); + } + + public N endItem() { + return and(); + } + + + } + public class MetadataNested extends V1ListMetaFluent> implements Nested{ + MetadataNested(V1ListMeta item) { + this.builder = new V1ListMetaBuilder(this, item); + } + V1ListMetaBuilder builder; + + public N and() { + return (N) V1beta1LeaseCandidateListFluent.this.withMetadata(builder.build()); + } + + public N endMetadata() { + return and(); + } + + + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1LeaseCandidateSpecBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1LeaseCandidateSpecBuilder.java new file mode 100644 index 0000000000..f236fedf26 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1LeaseCandidateSpecBuilder.java @@ -0,0 +1,36 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +public class V1beta1LeaseCandidateSpecBuilder extends V1beta1LeaseCandidateSpecFluent implements VisitableBuilder{ + public V1beta1LeaseCandidateSpecBuilder() { + this(new V1beta1LeaseCandidateSpec()); + } + + public V1beta1LeaseCandidateSpecBuilder(V1beta1LeaseCandidateSpecFluent fluent) { + this(fluent, new V1beta1LeaseCandidateSpec()); + } + + public V1beta1LeaseCandidateSpecBuilder(V1beta1LeaseCandidateSpecFluent fluent,V1beta1LeaseCandidateSpec instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1beta1LeaseCandidateSpecBuilder(V1beta1LeaseCandidateSpec instance) { + this.fluent = this; + this.copyInstance(instance); + } + V1beta1LeaseCandidateSpecFluent fluent; + + public V1beta1LeaseCandidateSpec build() { + V1beta1LeaseCandidateSpec buildable = new V1beta1LeaseCandidateSpec(); + buildable.setBinaryVersion(fluent.getBinaryVersion()); + buildable.setEmulationVersion(fluent.getEmulationVersion()); + buildable.setLeaseName(fluent.getLeaseName()); + buildable.setPingTime(fluent.getPingTime()); + buildable.setRenewTime(fluent.getRenewTime()); + buildable.setStrategy(fluent.getStrategy()); + return buildable; + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1LeaseCandidateSpecFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1LeaseCandidateSpecFluent.java new file mode 100644 index 0000000000..1c34d7a311 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1LeaseCandidateSpecFluent.java @@ -0,0 +1,149 @@ +package io.kubernetes.client.openapi.models; + +import java.time.OffsetDateTime; +import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Object; +import java.lang.String; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1beta1LeaseCandidateSpecFluent> extends BaseFluent{ + public V1beta1LeaseCandidateSpecFluent() { + } + + public V1beta1LeaseCandidateSpecFluent(V1beta1LeaseCandidateSpec instance) { + this.copyInstance(instance); + } + private String binaryVersion; + private String emulationVersion; + private String leaseName; + private OffsetDateTime pingTime; + private OffsetDateTime renewTime; + private String strategy; + + protected void copyInstance(V1beta1LeaseCandidateSpec instance) { + instance = (instance != null ? instance : new V1beta1LeaseCandidateSpec()); + if (instance != null) { + this.withBinaryVersion(instance.getBinaryVersion()); + this.withEmulationVersion(instance.getEmulationVersion()); + this.withLeaseName(instance.getLeaseName()); + this.withPingTime(instance.getPingTime()); + this.withRenewTime(instance.getRenewTime()); + this.withStrategy(instance.getStrategy()); + } + } + + public String getBinaryVersion() { + return this.binaryVersion; + } + + public A withBinaryVersion(String binaryVersion) { + this.binaryVersion = binaryVersion; + return (A) this; + } + + public boolean hasBinaryVersion() { + return this.binaryVersion != null; + } + + public String getEmulationVersion() { + return this.emulationVersion; + } + + public A withEmulationVersion(String emulationVersion) { + this.emulationVersion = emulationVersion; + return (A) this; + } + + public boolean hasEmulationVersion() { + return this.emulationVersion != null; + } + + public String getLeaseName() { + return this.leaseName; + } + + public A withLeaseName(String leaseName) { + this.leaseName = leaseName; + return (A) this; + } + + public boolean hasLeaseName() { + return this.leaseName != null; + } + + public OffsetDateTime getPingTime() { + return this.pingTime; + } + + public A withPingTime(OffsetDateTime pingTime) { + this.pingTime = pingTime; + return (A) this; + } + + public boolean hasPingTime() { + return this.pingTime != null; + } + + public OffsetDateTime getRenewTime() { + return this.renewTime; + } + + public A withRenewTime(OffsetDateTime renewTime) { + this.renewTime = renewTime; + return (A) this; + } + + public boolean hasRenewTime() { + return this.renewTime != null; + } + + public String getStrategy() { + return this.strategy; + } + + public A withStrategy(String strategy) { + this.strategy = strategy; + return (A) this; + } + + public boolean hasStrategy() { + return this.strategy != null; + } + + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + if (!super.equals(o)) return false; + V1beta1LeaseCandidateSpecFluent that = (V1beta1LeaseCandidateSpecFluent) o; + if (!java.util.Objects.equals(binaryVersion, that.binaryVersion)) return false; + if (!java.util.Objects.equals(emulationVersion, that.emulationVersion)) return false; + if (!java.util.Objects.equals(leaseName, that.leaseName)) return false; + if (!java.util.Objects.equals(pingTime, that.pingTime)) return false; + if (!java.util.Objects.equals(renewTime, that.renewTime)) return false; + if (!java.util.Objects.equals(strategy, that.strategy)) return false; + return true; + } + + public int hashCode() { + return java.util.Objects.hash(binaryVersion, emulationVersion, leaseName, pingTime, renewTime, strategy, super.hashCode()); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (binaryVersion != null) { sb.append("binaryVersion:"); sb.append(binaryVersion + ","); } + if (emulationVersion != null) { sb.append("emulationVersion:"); sb.append(emulationVersion + ","); } + if (leaseName != null) { sb.append("leaseName:"); sb.append(leaseName + ","); } + if (pingTime != null) { sb.append("pingTime:"); sb.append(pingTime + ","); } + if (renewTime != null) { sb.append("renewTime:"); sb.append(renewTime + ","); } + if (strategy != null) { sb.append("strategy:"); sb.append(strategy); } + sb.append("}"); + return sb.toString(); + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1MatchResourcesFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1MatchResourcesFluent.java index c0bcb8925f..3e684ae76b 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1MatchResourcesFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1MatchResourcesFluent.java @@ -43,14 +43,26 @@ protected void copyInstance(V1beta1MatchResources instance) { public A addToExcludeResourceRules(int index,V1beta1NamedRuleWithOperations item) { if (this.excludeResourceRules == null) {this.excludeResourceRules = new ArrayList();} V1beta1NamedRuleWithOperationsBuilder builder = new V1beta1NamedRuleWithOperationsBuilder(item); - if (index < 0 || index >= excludeResourceRules.size()) { _visitables.get("excludeResourceRules").add(builder); excludeResourceRules.add(builder); } else { _visitables.get("excludeResourceRules").add(index, builder); excludeResourceRules.add(index, builder);} + if (index < 0 || index >= excludeResourceRules.size()) { + _visitables.get("excludeResourceRules").add(builder); + excludeResourceRules.add(builder); + } else { + _visitables.get("excludeResourceRules").add(builder); + excludeResourceRules.add(index, builder); + } return (A)this; } public A setToExcludeResourceRules(int index,V1beta1NamedRuleWithOperations item) { if (this.excludeResourceRules == null) {this.excludeResourceRules = new ArrayList();} V1beta1NamedRuleWithOperationsBuilder builder = new V1beta1NamedRuleWithOperationsBuilder(item); - if (index < 0 || index >= excludeResourceRules.size()) { _visitables.get("excludeResourceRules").add(builder); excludeResourceRules.add(builder); } else { _visitables.get("excludeResourceRules").set(index, builder); excludeResourceRules.set(index, builder);} + if (index < 0 || index >= excludeResourceRules.size()) { + _visitables.get("excludeResourceRules").add(builder); + excludeResourceRules.add(builder); + } else { + _visitables.get("excludeResourceRules").add(builder); + excludeResourceRules.set(index, builder); + } return (A)this; } @@ -287,14 +299,26 @@ public ObjectSelectorNested editOrNewObjectSelectorLike(V1LabelSelector item) public A addToResourceRules(int index,V1beta1NamedRuleWithOperations item) { if (this.resourceRules == null) {this.resourceRules = new ArrayList();} V1beta1NamedRuleWithOperationsBuilder builder = new V1beta1NamedRuleWithOperationsBuilder(item); - if (index < 0 || index >= resourceRules.size()) { _visitables.get("resourceRules").add(builder); resourceRules.add(builder); } else { _visitables.get("resourceRules").add(index, builder); resourceRules.add(index, builder);} + if (index < 0 || index >= resourceRules.size()) { + _visitables.get("resourceRules").add(builder); + resourceRules.add(builder); + } else { + _visitables.get("resourceRules").add(builder); + resourceRules.add(index, builder); + } return (A)this; } public A setToResourceRules(int index,V1beta1NamedRuleWithOperations item) { if (this.resourceRules == null) {this.resourceRules = new ArrayList();} V1beta1NamedRuleWithOperationsBuilder builder = new V1beta1NamedRuleWithOperationsBuilder(item); - if (index < 0 || index >= resourceRules.size()) { _visitables.get("resourceRules").add(builder); resourceRules.add(builder); } else { _visitables.get("resourceRules").set(index, builder); resourceRules.set(index, builder);} + if (index < 0 || index >= resourceRules.size()) { + _visitables.get("resourceRules").add(builder); + resourceRules.add(builder); + } else { + _visitables.get("resourceRules").add(builder); + resourceRules.set(index, builder); + } return (A)this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1NetworkDeviceDataBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1NetworkDeviceDataBuilder.java new file mode 100644 index 0000000000..bebc793717 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1NetworkDeviceDataBuilder.java @@ -0,0 +1,33 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +public class V1beta1NetworkDeviceDataBuilder extends V1beta1NetworkDeviceDataFluent implements VisitableBuilder{ + public V1beta1NetworkDeviceDataBuilder() { + this(new V1beta1NetworkDeviceData()); + } + + public V1beta1NetworkDeviceDataBuilder(V1beta1NetworkDeviceDataFluent fluent) { + this(fluent, new V1beta1NetworkDeviceData()); + } + + public V1beta1NetworkDeviceDataBuilder(V1beta1NetworkDeviceDataFluent fluent,V1beta1NetworkDeviceData instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1beta1NetworkDeviceDataBuilder(V1beta1NetworkDeviceData instance) { + this.fluent = this; + this.copyInstance(instance); + } + V1beta1NetworkDeviceDataFluent fluent; + + public V1beta1NetworkDeviceData build() { + V1beta1NetworkDeviceData buildable = new V1beta1NetworkDeviceData(); + buildable.setHardwareAddress(fluent.getHardwareAddress()); + buildable.setInterfaceName(fluent.getInterfaceName()); + buildable.setIps(fluent.getIps()); + return buildable; + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1NetworkDeviceDataFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1NetworkDeviceDataFluent.java new file mode 100644 index 0000000000..697c2564bc --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1NetworkDeviceDataFluent.java @@ -0,0 +1,182 @@ +package io.kubernetes.client.openapi.models; + +import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; +import java.util.ArrayList; +import java.util.Collection; +import java.lang.Object; +import java.util.List; +import java.lang.String; +import java.util.function.Predicate; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1beta1NetworkDeviceDataFluent> extends BaseFluent{ + public V1beta1NetworkDeviceDataFluent() { + } + + public V1beta1NetworkDeviceDataFluent(V1beta1NetworkDeviceData instance) { + this.copyInstance(instance); + } + private String hardwareAddress; + private String interfaceName; + private List ips; + + protected void copyInstance(V1beta1NetworkDeviceData instance) { + instance = (instance != null ? instance : new V1beta1NetworkDeviceData()); + if (instance != null) { + this.withHardwareAddress(instance.getHardwareAddress()); + this.withInterfaceName(instance.getInterfaceName()); + this.withIps(instance.getIps()); + } + } + + public String getHardwareAddress() { + return this.hardwareAddress; + } + + public A withHardwareAddress(String hardwareAddress) { + this.hardwareAddress = hardwareAddress; + return (A) this; + } + + public boolean hasHardwareAddress() { + return this.hardwareAddress != null; + } + + public String getInterfaceName() { + return this.interfaceName; + } + + public A withInterfaceName(String interfaceName) { + this.interfaceName = interfaceName; + return (A) this; + } + + public boolean hasInterfaceName() { + return this.interfaceName != null; + } + + public A addToIps(int index,String item) { + if (this.ips == null) {this.ips = new ArrayList();} + this.ips.add(index, item); + return (A)this; + } + + public A setToIps(int index,String item) { + if (this.ips == null) {this.ips = new ArrayList();} + this.ips.set(index, item); return (A)this; + } + + public A addToIps(java.lang.String... items) { + if (this.ips == null) {this.ips = new ArrayList();} + for (String item : items) {this.ips.add(item);} return (A)this; + } + + public A addAllToIps(Collection items) { + if (this.ips == null) {this.ips = new ArrayList();} + for (String item : items) {this.ips.add(item);} return (A)this; + } + + public A removeFromIps(java.lang.String... items) { + if (this.ips == null) return (A)this; + for (String item : items) { this.ips.remove(item);} return (A)this; + } + + public A removeAllFromIps(Collection items) { + if (this.ips == null) return (A)this; + for (String item : items) { this.ips.remove(item);} return (A)this; + } + + public List getIps() { + return this.ips; + } + + public String getIp(int index) { + return this.ips.get(index); + } + + public String getFirstIp() { + return this.ips.get(0); + } + + public String getLastIp() { + return this.ips.get(ips.size() - 1); + } + + public String getMatchingIp(Predicate predicate) { + for (String item : ips) { + if (predicate.test(item)) { + return item; + } + } + return null; + } + + public boolean hasMatchingIp(Predicate predicate) { + for (String item : ips) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public A withIps(List ips) { + if (ips != null) { + this.ips = new ArrayList(); + for (String item : ips) { + this.addToIps(item); + } + } else { + this.ips = null; + } + return (A) this; + } + + public A withIps(java.lang.String... ips) { + if (this.ips != null) { + this.ips.clear(); + _visitables.remove("ips"); + } + if (ips != null) { + for (String item : ips) { + this.addToIps(item); + } + } + return (A) this; + } + + public boolean hasIps() { + return this.ips != null && !this.ips.isEmpty(); + } + + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + if (!super.equals(o)) return false; + V1beta1NetworkDeviceDataFluent that = (V1beta1NetworkDeviceDataFluent) o; + if (!java.util.Objects.equals(hardwareAddress, that.hardwareAddress)) return false; + if (!java.util.Objects.equals(interfaceName, that.interfaceName)) return false; + if (!java.util.Objects.equals(ips, that.ips)) return false; + return true; + } + + public int hashCode() { + return java.util.Objects.hash(hardwareAddress, interfaceName, ips, super.hashCode()); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (hardwareAddress != null) { sb.append("hardwareAddress:"); sb.append(hardwareAddress + ","); } + if (interfaceName != null) { sb.append("interfaceName:"); sb.append(interfaceName + ","); } + if (ips != null && !ips.isEmpty()) { sb.append("ips:"); sb.append(ips); } + sb.append("}"); + return sb.toString(); + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1OpaqueDeviceConfigurationBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1OpaqueDeviceConfigurationBuilder.java new file mode 100644 index 0000000000..05deace978 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1OpaqueDeviceConfigurationBuilder.java @@ -0,0 +1,32 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +public class V1beta1OpaqueDeviceConfigurationBuilder extends V1beta1OpaqueDeviceConfigurationFluent implements VisitableBuilder{ + public V1beta1OpaqueDeviceConfigurationBuilder() { + this(new V1beta1OpaqueDeviceConfiguration()); + } + + public V1beta1OpaqueDeviceConfigurationBuilder(V1beta1OpaqueDeviceConfigurationFluent fluent) { + this(fluent, new V1beta1OpaqueDeviceConfiguration()); + } + + public V1beta1OpaqueDeviceConfigurationBuilder(V1beta1OpaqueDeviceConfigurationFluent fluent,V1beta1OpaqueDeviceConfiguration instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1beta1OpaqueDeviceConfigurationBuilder(V1beta1OpaqueDeviceConfiguration instance) { + this.fluent = this; + this.copyInstance(instance); + } + V1beta1OpaqueDeviceConfigurationFluent fluent; + + public V1beta1OpaqueDeviceConfiguration build() { + V1beta1OpaqueDeviceConfiguration buildable = new V1beta1OpaqueDeviceConfiguration(); + buildable.setDriver(fluent.getDriver()); + buildable.setParameters(fluent.getParameters()); + return buildable; + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1OpaqueDeviceConfigurationFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1OpaqueDeviceConfigurationFluent.java new file mode 100644 index 0000000000..9168b1340e --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1OpaqueDeviceConfigurationFluent.java @@ -0,0 +1,80 @@ +package io.kubernetes.client.openapi.models; + +import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Object; +import java.lang.String; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1beta1OpaqueDeviceConfigurationFluent> extends BaseFluent{ + public V1beta1OpaqueDeviceConfigurationFluent() { + } + + public V1beta1OpaqueDeviceConfigurationFluent(V1beta1OpaqueDeviceConfiguration instance) { + this.copyInstance(instance); + } + private String driver; + private Object parameters; + + protected void copyInstance(V1beta1OpaqueDeviceConfiguration instance) { + instance = (instance != null ? instance : new V1beta1OpaqueDeviceConfiguration()); + if (instance != null) { + this.withDriver(instance.getDriver()); + this.withParameters(instance.getParameters()); + } + } + + public String getDriver() { + return this.driver; + } + + public A withDriver(String driver) { + this.driver = driver; + return (A) this; + } + + public boolean hasDriver() { + return this.driver != null; + } + + public Object getParameters() { + return this.parameters; + } + + public A withParameters(Object parameters) { + this.parameters = parameters; + return (A) this; + } + + public boolean hasParameters() { + return this.parameters != null; + } + + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + if (!super.equals(o)) return false; + V1beta1OpaqueDeviceConfigurationFluent that = (V1beta1OpaqueDeviceConfigurationFluent) o; + if (!java.util.Objects.equals(driver, that.driver)) return false; + if (!java.util.Objects.equals(parameters, that.parameters)) return false; + return true; + } + + public int hashCode() { + return java.util.Objects.hash(driver, parameters, super.hashCode()); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (driver != null) { sb.append("driver:"); sb.append(driver + ","); } + if (parameters != null) { sb.append("parameters:"); sb.append(parameters); } + sb.append("}"); + return sb.toString(); + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ParentReferenceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ParentReferenceBuilder.java new file mode 100644 index 0000000000..5f864d47f3 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ParentReferenceBuilder.java @@ -0,0 +1,34 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +public class V1beta1ParentReferenceBuilder extends V1beta1ParentReferenceFluent implements VisitableBuilder{ + public V1beta1ParentReferenceBuilder() { + this(new V1beta1ParentReference()); + } + + public V1beta1ParentReferenceBuilder(V1beta1ParentReferenceFluent fluent) { + this(fluent, new V1beta1ParentReference()); + } + + public V1beta1ParentReferenceBuilder(V1beta1ParentReferenceFluent fluent,V1beta1ParentReference instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1beta1ParentReferenceBuilder(V1beta1ParentReference instance) { + this.fluent = this; + this.copyInstance(instance); + } + V1beta1ParentReferenceFluent fluent; + + public V1beta1ParentReference build() { + V1beta1ParentReference buildable = new V1beta1ParentReference(); + buildable.setGroup(fluent.getGroup()); + buildable.setName(fluent.getName()); + buildable.setNamespace(fluent.getNamespace()); + buildable.setResource(fluent.getResource()); + return buildable; + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ParentReferenceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ParentReferenceFluent.java new file mode 100644 index 0000000000..2a36a4ed39 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ParentReferenceFluent.java @@ -0,0 +1,114 @@ +package io.kubernetes.client.openapi.models; + +import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Object; +import java.lang.String; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1beta1ParentReferenceFluent> extends BaseFluent{ + public V1beta1ParentReferenceFluent() { + } + + public V1beta1ParentReferenceFluent(V1beta1ParentReference instance) { + this.copyInstance(instance); + } + private String group; + private String name; + private String namespace; + private String resource; + + protected void copyInstance(V1beta1ParentReference instance) { + instance = (instance != null ? instance : new V1beta1ParentReference()); + if (instance != null) { + this.withGroup(instance.getGroup()); + this.withName(instance.getName()); + this.withNamespace(instance.getNamespace()); + this.withResource(instance.getResource()); + } + } + + public String getGroup() { + return this.group; + } + + public A withGroup(String group) { + this.group = group; + return (A) this; + } + + public boolean hasGroup() { + return this.group != null; + } + + public String getName() { + return this.name; + } + + public A withName(String name) { + this.name = name; + return (A) this; + } + + public boolean hasName() { + return this.name != null; + } + + public String getNamespace() { + return this.namespace; + } + + public A withNamespace(String namespace) { + this.namespace = namespace; + return (A) this; + } + + public boolean hasNamespace() { + return this.namespace != null; + } + + public String getResource() { + return this.resource; + } + + public A withResource(String resource) { + this.resource = resource; + return (A) this; + } + + public boolean hasResource() { + return this.resource != null; + } + + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + if (!super.equals(o)) return false; + V1beta1ParentReferenceFluent that = (V1beta1ParentReferenceFluent) o; + if (!java.util.Objects.equals(group, that.group)) return false; + if (!java.util.Objects.equals(name, that.name)) return false; + if (!java.util.Objects.equals(namespace, that.namespace)) return false; + if (!java.util.Objects.equals(resource, that.resource)) return false; + return true; + } + + public int hashCode() { + return java.util.Objects.hash(group, name, namespace, resource, super.hashCode()); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (group != null) { sb.append("group:"); sb.append(group + ","); } + if (name != null) { sb.append("name:"); sb.append(name + ","); } + if (namespace != null) { sb.append("namespace:"); sb.append(namespace + ","); } + if (resource != null) { sb.append("resource:"); sb.append(resource); } + sb.append("}"); + return sb.toString(); + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceClaimBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceClaimBuilder.java new file mode 100644 index 0000000000..d580d17ade --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceClaimBuilder.java @@ -0,0 +1,35 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +public class V1beta1ResourceClaimBuilder extends V1beta1ResourceClaimFluent implements VisitableBuilder{ + public V1beta1ResourceClaimBuilder() { + this(new V1beta1ResourceClaim()); + } + + public V1beta1ResourceClaimBuilder(V1beta1ResourceClaimFluent fluent) { + this(fluent, new V1beta1ResourceClaim()); + } + + public V1beta1ResourceClaimBuilder(V1beta1ResourceClaimFluent fluent,V1beta1ResourceClaim instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1beta1ResourceClaimBuilder(V1beta1ResourceClaim instance) { + this.fluent = this; + this.copyInstance(instance); + } + V1beta1ResourceClaimFluent fluent; + + public V1beta1ResourceClaim build() { + V1beta1ResourceClaim buildable = new V1beta1ResourceClaim(); + buildable.setApiVersion(fluent.getApiVersion()); + buildable.setKind(fluent.getKind()); + buildable.setMetadata(fluent.buildMetadata()); + buildable.setSpec(fluent.buildSpec()); + buildable.setStatus(fluent.buildStatus()); + return buildable; + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceClaimConsumerReferenceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceClaimConsumerReferenceBuilder.java new file mode 100644 index 0000000000..e29b950ba9 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceClaimConsumerReferenceBuilder.java @@ -0,0 +1,34 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +public class V1beta1ResourceClaimConsumerReferenceBuilder extends V1beta1ResourceClaimConsumerReferenceFluent implements VisitableBuilder{ + public V1beta1ResourceClaimConsumerReferenceBuilder() { + this(new V1beta1ResourceClaimConsumerReference()); + } + + public V1beta1ResourceClaimConsumerReferenceBuilder(V1beta1ResourceClaimConsumerReferenceFluent fluent) { + this(fluent, new V1beta1ResourceClaimConsumerReference()); + } + + public V1beta1ResourceClaimConsumerReferenceBuilder(V1beta1ResourceClaimConsumerReferenceFluent fluent,V1beta1ResourceClaimConsumerReference instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1beta1ResourceClaimConsumerReferenceBuilder(V1beta1ResourceClaimConsumerReference instance) { + this.fluent = this; + this.copyInstance(instance); + } + V1beta1ResourceClaimConsumerReferenceFluent fluent; + + public V1beta1ResourceClaimConsumerReference build() { + V1beta1ResourceClaimConsumerReference buildable = new V1beta1ResourceClaimConsumerReference(); + buildable.setApiGroup(fluent.getApiGroup()); + buildable.setName(fluent.getName()); + buildable.setResource(fluent.getResource()); + buildable.setUid(fluent.getUid()); + return buildable; + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceClaimConsumerReferenceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceClaimConsumerReferenceFluent.java new file mode 100644 index 0000000000..fc31a35f75 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceClaimConsumerReferenceFluent.java @@ -0,0 +1,114 @@ +package io.kubernetes.client.openapi.models; + +import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Object; +import java.lang.String; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1beta1ResourceClaimConsumerReferenceFluent> extends BaseFluent{ + public V1beta1ResourceClaimConsumerReferenceFluent() { + } + + public V1beta1ResourceClaimConsumerReferenceFluent(V1beta1ResourceClaimConsumerReference instance) { + this.copyInstance(instance); + } + private String apiGroup; + private String name; + private String resource; + private String uid; + + protected void copyInstance(V1beta1ResourceClaimConsumerReference instance) { + instance = (instance != null ? instance : new V1beta1ResourceClaimConsumerReference()); + if (instance != null) { + this.withApiGroup(instance.getApiGroup()); + this.withName(instance.getName()); + this.withResource(instance.getResource()); + this.withUid(instance.getUid()); + } + } + + public String getApiGroup() { + return this.apiGroup; + } + + public A withApiGroup(String apiGroup) { + this.apiGroup = apiGroup; + return (A) this; + } + + public boolean hasApiGroup() { + return this.apiGroup != null; + } + + public String getName() { + return this.name; + } + + public A withName(String name) { + this.name = name; + return (A) this; + } + + public boolean hasName() { + return this.name != null; + } + + public String getResource() { + return this.resource; + } + + public A withResource(String resource) { + this.resource = resource; + return (A) this; + } + + public boolean hasResource() { + return this.resource != null; + } + + public String getUid() { + return this.uid; + } + + public A withUid(String uid) { + this.uid = uid; + return (A) this; + } + + public boolean hasUid() { + return this.uid != null; + } + + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + if (!super.equals(o)) return false; + V1beta1ResourceClaimConsumerReferenceFluent that = (V1beta1ResourceClaimConsumerReferenceFluent) o; + if (!java.util.Objects.equals(apiGroup, that.apiGroup)) return false; + if (!java.util.Objects.equals(name, that.name)) return false; + if (!java.util.Objects.equals(resource, that.resource)) return false; + if (!java.util.Objects.equals(uid, that.uid)) return false; + return true; + } + + public int hashCode() { + return java.util.Objects.hash(apiGroup, name, resource, uid, super.hashCode()); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (apiGroup != null) { sb.append("apiGroup:"); sb.append(apiGroup + ","); } + if (name != null) { sb.append("name:"); sb.append(name + ","); } + if (resource != null) { sb.append("resource:"); sb.append(resource + ","); } + if (uid != null) { sb.append("uid:"); sb.append(uid); } + sb.append("}"); + return sb.toString(); + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceClaimFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceClaimFluent.java new file mode 100644 index 0000000000..1ecae12e58 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceClaimFluent.java @@ -0,0 +1,260 @@ +package io.kubernetes.client.openapi.models; + +import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.Nested; +import java.lang.String; +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Object; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1beta1ResourceClaimFluent> extends BaseFluent{ + public V1beta1ResourceClaimFluent() { + } + + public V1beta1ResourceClaimFluent(V1beta1ResourceClaim instance) { + this.copyInstance(instance); + } + private String apiVersion; + private String kind; + private V1ObjectMetaBuilder metadata; + private V1beta1ResourceClaimSpecBuilder spec; + private V1beta1ResourceClaimStatusBuilder status; + + protected void copyInstance(V1beta1ResourceClaim instance) { + instance = (instance != null ? instance : new V1beta1ResourceClaim()); + if (instance != null) { + this.withApiVersion(instance.getApiVersion()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); + this.withSpec(instance.getSpec()); + this.withStatus(instance.getStatus()); + } + } + + public String getApiVersion() { + return this.apiVersion; + } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + + public boolean hasApiVersion() { + return this.apiVersion != null; + } + + public String getKind() { + return this.kind; + } + + public A withKind(String kind) { + this.kind = kind; + return (A) this; + } + + public boolean hasKind() { + return this.kind != null; + } + + public V1ObjectMeta buildMetadata() { + return this.metadata != null ? this.metadata.build() : null; + } + + public A withMetadata(V1ObjectMeta metadata) { + this._visitables.remove("metadata"); + if (metadata != null) { + this.metadata = new V1ObjectMetaBuilder(metadata); + this._visitables.get("metadata").add(this.metadata); + } else { + this.metadata = null; + this._visitables.get("metadata").remove(this.metadata); + } + return (A) this; + } + + public boolean hasMetadata() { + return this.metadata != null; + } + + public MetadataNested withNewMetadata() { + return new MetadataNested(null); + } + + public MetadataNested withNewMetadataLike(V1ObjectMeta item) { + return new MetadataNested(item); + } + + public MetadataNested editMetadata() { + return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(null)); + } + + public MetadataNested editOrNewMetadata() { + return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(new V1ObjectMetaBuilder().build())); + } + + public MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { + return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(item)); + } + + public V1beta1ResourceClaimSpec buildSpec() { + return this.spec != null ? this.spec.build() : null; + } + + public A withSpec(V1beta1ResourceClaimSpec spec) { + this._visitables.remove("spec"); + if (spec != null) { + this.spec = new V1beta1ResourceClaimSpecBuilder(spec); + this._visitables.get("spec").add(this.spec); + } else { + this.spec = null; + this._visitables.get("spec").remove(this.spec); + } + return (A) this; + } + + public boolean hasSpec() { + return this.spec != null; + } + + public SpecNested withNewSpec() { + return new SpecNested(null); + } + + public SpecNested withNewSpecLike(V1beta1ResourceClaimSpec item) { + return new SpecNested(item); + } + + public SpecNested editSpec() { + return withNewSpecLike(java.util.Optional.ofNullable(buildSpec()).orElse(null)); + } + + public SpecNested editOrNewSpec() { + return withNewSpecLike(java.util.Optional.ofNullable(buildSpec()).orElse(new V1beta1ResourceClaimSpecBuilder().build())); + } + + public SpecNested editOrNewSpecLike(V1beta1ResourceClaimSpec item) { + return withNewSpecLike(java.util.Optional.ofNullable(buildSpec()).orElse(item)); + } + + public V1beta1ResourceClaimStatus buildStatus() { + return this.status != null ? this.status.build() : null; + } + + public A withStatus(V1beta1ResourceClaimStatus status) { + this._visitables.remove("status"); + if (status != null) { + this.status = new V1beta1ResourceClaimStatusBuilder(status); + this._visitables.get("status").add(this.status); + } else { + this.status = null; + this._visitables.get("status").remove(this.status); + } + return (A) this; + } + + public boolean hasStatus() { + return this.status != null; + } + + public StatusNested withNewStatus() { + return new StatusNested(null); + } + + public StatusNested withNewStatusLike(V1beta1ResourceClaimStatus item) { + return new StatusNested(item); + } + + public StatusNested editStatus() { + return withNewStatusLike(java.util.Optional.ofNullable(buildStatus()).orElse(null)); + } + + public StatusNested editOrNewStatus() { + return withNewStatusLike(java.util.Optional.ofNullable(buildStatus()).orElse(new V1beta1ResourceClaimStatusBuilder().build())); + } + + public StatusNested editOrNewStatusLike(V1beta1ResourceClaimStatus item) { + return withNewStatusLike(java.util.Optional.ofNullable(buildStatus()).orElse(item)); + } + + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + if (!super.equals(o)) return false; + V1beta1ResourceClaimFluent that = (V1beta1ResourceClaimFluent) o; + if (!java.util.Objects.equals(apiVersion, that.apiVersion)) return false; + if (!java.util.Objects.equals(kind, that.kind)) return false; + if (!java.util.Objects.equals(metadata, that.metadata)) return false; + if (!java.util.Objects.equals(spec, that.spec)) return false; + if (!java.util.Objects.equals(status, that.status)) return false; + return true; + } + + public int hashCode() { + return java.util.Objects.hash(apiVersion, kind, metadata, spec, status, super.hashCode()); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (apiVersion != null) { sb.append("apiVersion:"); sb.append(apiVersion + ","); } + if (kind != null) { sb.append("kind:"); sb.append(kind + ","); } + if (metadata != null) { sb.append("metadata:"); sb.append(metadata + ","); } + if (spec != null) { sb.append("spec:"); sb.append(spec + ","); } + if (status != null) { sb.append("status:"); sb.append(status); } + sb.append("}"); + return sb.toString(); + } + public class MetadataNested extends V1ObjectMetaFluent> implements Nested{ + MetadataNested(V1ObjectMeta item) { + this.builder = new V1ObjectMetaBuilder(this, item); + } + V1ObjectMetaBuilder builder; + + public N and() { + return (N) V1beta1ResourceClaimFluent.this.withMetadata(builder.build()); + } + + public N endMetadata() { + return and(); + } + + + } + public class SpecNested extends V1beta1ResourceClaimSpecFluent> implements Nested{ + SpecNested(V1beta1ResourceClaimSpec item) { + this.builder = new V1beta1ResourceClaimSpecBuilder(this, item); + } + V1beta1ResourceClaimSpecBuilder builder; + + public N and() { + return (N) V1beta1ResourceClaimFluent.this.withSpec(builder.build()); + } + + public N endSpec() { + return and(); + } + + + } + public class StatusNested extends V1beta1ResourceClaimStatusFluent> implements Nested{ + StatusNested(V1beta1ResourceClaimStatus item) { + this.builder = new V1beta1ResourceClaimStatusBuilder(this, item); + } + V1beta1ResourceClaimStatusBuilder builder; + + public N and() { + return (N) V1beta1ResourceClaimFluent.this.withStatus(builder.build()); + } + + public N endStatus() { + return and(); + } + + + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceClaimListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceClaimListBuilder.java new file mode 100644 index 0000000000..3a5bea113d --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceClaimListBuilder.java @@ -0,0 +1,34 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +public class V1beta1ResourceClaimListBuilder extends V1beta1ResourceClaimListFluent implements VisitableBuilder{ + public V1beta1ResourceClaimListBuilder() { + this(new V1beta1ResourceClaimList()); + } + + public V1beta1ResourceClaimListBuilder(V1beta1ResourceClaimListFluent fluent) { + this(fluent, new V1beta1ResourceClaimList()); + } + + public V1beta1ResourceClaimListBuilder(V1beta1ResourceClaimListFluent fluent,V1beta1ResourceClaimList instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1beta1ResourceClaimListBuilder(V1beta1ResourceClaimList instance) { + this.fluent = this; + this.copyInstance(instance); + } + V1beta1ResourceClaimListFluent fluent; + + public V1beta1ResourceClaimList build() { + V1beta1ResourceClaimList buildable = new V1beta1ResourceClaimList(); + buildable.setApiVersion(fluent.getApiVersion()); + buildable.setItems(fluent.buildItems()); + buildable.setKind(fluent.getKind()); + buildable.setMetadata(fluent.buildMetadata()); + return buildable; + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceClaimListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceClaimListFluent.java new file mode 100644 index 0000000000..45d0d9352a --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceClaimListFluent.java @@ -0,0 +1,331 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.Nested; +import java.util.ArrayList; +import java.lang.String; +import java.util.function.Predicate; +import io.kubernetes.client.fluent.BaseFluent; +import java.util.Iterator; +import java.util.Collection; +import java.lang.Object; +import java.util.List; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1beta1ResourceClaimListFluent> extends BaseFluent{ + public V1beta1ResourceClaimListFluent() { + } + + public V1beta1ResourceClaimListFluent(V1beta1ResourceClaimList instance) { + this.copyInstance(instance); + } + private String apiVersion; + private ArrayList items; + private String kind; + private V1ListMetaBuilder metadata; + + protected void copyInstance(V1beta1ResourceClaimList instance) { + instance = (instance != null ? instance : new V1beta1ResourceClaimList()); + if (instance != null) { + this.withApiVersion(instance.getApiVersion()); + this.withItems(instance.getItems()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); + } + } + + public String getApiVersion() { + return this.apiVersion; + } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + + public boolean hasApiVersion() { + return this.apiVersion != null; + } + + public A addToItems(int index,V1beta1ResourceClaim item) { + if (this.items == null) {this.items = new ArrayList();} + V1beta1ResourceClaimBuilder builder = new V1beta1ResourceClaimBuilder(item); + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.add(index, builder); + } + return (A)this; + } + + public A setToItems(int index,V1beta1ResourceClaim item) { + if (this.items == null) {this.items = new ArrayList();} + V1beta1ResourceClaimBuilder builder = new V1beta1ResourceClaimBuilder(item); + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.set(index, builder); + } + return (A)this; + } + + public A addToItems(io.kubernetes.client.openapi.models.V1beta1ResourceClaim... items) { + if (this.items == null) {this.items = new ArrayList();} + for (V1beta1ResourceClaim item : items) {V1beta1ResourceClaimBuilder builder = new V1beta1ResourceClaimBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; + } + + public A addAllToItems(Collection items) { + if (this.items == null) {this.items = new ArrayList();} + for (V1beta1ResourceClaim item : items) {V1beta1ResourceClaimBuilder builder = new V1beta1ResourceClaimBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; + } + + public A removeFromItems(io.kubernetes.client.openapi.models.V1beta1ResourceClaim... items) { + if (this.items == null) return (A)this; + for (V1beta1ResourceClaim item : items) {V1beta1ResourceClaimBuilder builder = new V1beta1ResourceClaimBuilder(item);_visitables.get("items").remove(builder); this.items.remove(builder);} return (A)this; + } + + public A removeAllFromItems(Collection items) { + if (this.items == null) return (A)this; + for (V1beta1ResourceClaim item : items) {V1beta1ResourceClaimBuilder builder = new V1beta1ResourceClaimBuilder(item);_visitables.get("items").remove(builder); this.items.remove(builder);} return (A)this; + } + + public A removeMatchingFromItems(Predicate predicate) { + if (items == null) return (A) this; + final Iterator each = items.iterator(); + final List visitables = _visitables.get("items"); + while (each.hasNext()) { + V1beta1ResourceClaimBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A)this; + } + + public List buildItems() { + return this.items != null ? build(items) : null; + } + + public V1beta1ResourceClaim buildItem(int index) { + return this.items.get(index).build(); + } + + public V1beta1ResourceClaim buildFirstItem() { + return this.items.get(0).build(); + } + + public V1beta1ResourceClaim buildLastItem() { + return this.items.get(items.size() - 1).build(); + } + + public V1beta1ResourceClaim buildMatchingItem(Predicate predicate) { + for (V1beta1ResourceClaimBuilder item : items) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; + } + + public boolean hasMatchingItem(Predicate predicate) { + for (V1beta1ResourceClaimBuilder item : items) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public A withItems(List items) { + if (this.items != null) { + this._visitables.get("items").clear(); + } + if (items != null) { + this.items = new ArrayList(); + for (V1beta1ResourceClaim item : items) { + this.addToItems(item); + } + } else { + this.items = null; + } + return (A) this; + } + + public A withItems(io.kubernetes.client.openapi.models.V1beta1ResourceClaim... items) { + if (this.items != null) { + this.items.clear(); + _visitables.remove("items"); + } + if (items != null) { + for (V1beta1ResourceClaim item : items) { + this.addToItems(item); + } + } + return (A) this; + } + + public boolean hasItems() { + return this.items != null && !this.items.isEmpty(); + } + + public ItemsNested addNewItem() { + return new ItemsNested(-1, null); + } + + public ItemsNested addNewItemLike(V1beta1ResourceClaim item) { + return new ItemsNested(-1, item); + } + + public ItemsNested setNewItemLike(int index,V1beta1ResourceClaim item) { + return new ItemsNested(index, item); + } + + public ItemsNested editItem(int index) { + if (items.size() <= index) throw new RuntimeException("Can't edit items. Index exceeds size."); + return setNewItemLike(index, buildItem(index)); + } + + public ItemsNested editFirstItem() { + if (items.size() == 0) throw new RuntimeException("Can't edit first items. The list is empty."); + return setNewItemLike(0, buildItem(0)); + } + + public ItemsNested editLastItem() { + int index = items.size() - 1; + if (index < 0) throw new RuntimeException("Can't edit last items. The list is empty."); + return setNewItemLike(index, buildItem(index)); + } + + public ItemsNested editMatchingItem(Predicate predicate) { + int index = -1; + for (int i=0;i withNewMetadata() { + return new MetadataNested(null); + } + + public MetadataNested withNewMetadataLike(V1ListMeta item) { + return new MetadataNested(item); + } + + public MetadataNested editMetadata() { + return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(null)); + } + + public MetadataNested editOrNewMetadata() { + return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(new V1ListMetaBuilder().build())); + } + + public MetadataNested editOrNewMetadataLike(V1ListMeta item) { + return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(item)); + } + + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + if (!super.equals(o)) return false; + V1beta1ResourceClaimListFluent that = (V1beta1ResourceClaimListFluent) o; + if (!java.util.Objects.equals(apiVersion, that.apiVersion)) return false; + if (!java.util.Objects.equals(items, that.items)) return false; + if (!java.util.Objects.equals(kind, that.kind)) return false; + if (!java.util.Objects.equals(metadata, that.metadata)) return false; + return true; + } + + public int hashCode() { + return java.util.Objects.hash(apiVersion, items, kind, metadata, super.hashCode()); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (apiVersion != null) { sb.append("apiVersion:"); sb.append(apiVersion + ","); } + if (items != null && !items.isEmpty()) { sb.append("items:"); sb.append(items + ","); } + if (kind != null) { sb.append("kind:"); sb.append(kind + ","); } + if (metadata != null) { sb.append("metadata:"); sb.append(metadata); } + sb.append("}"); + return sb.toString(); + } + public class ItemsNested extends V1beta1ResourceClaimFluent> implements Nested{ + ItemsNested(int index,V1beta1ResourceClaim item) { + this.index = index; + this.builder = new V1beta1ResourceClaimBuilder(this, item); + } + V1beta1ResourceClaimBuilder builder; + int index; + + public N and() { + return (N) V1beta1ResourceClaimListFluent.this.setToItems(index,builder.build()); + } + + public N endItem() { + return and(); + } + + + } + public class MetadataNested extends V1ListMetaFluent> implements Nested{ + MetadataNested(V1ListMeta item) { + this.builder = new V1ListMetaBuilder(this, item); + } + V1ListMetaBuilder builder; + + public N and() { + return (N) V1beta1ResourceClaimListFluent.this.withMetadata(builder.build()); + } + + public N endMetadata() { + return and(); + } + + + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceClaimSpecBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceClaimSpecBuilder.java new file mode 100644 index 0000000000..c2a9a71952 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceClaimSpecBuilder.java @@ -0,0 +1,31 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +public class V1beta1ResourceClaimSpecBuilder extends V1beta1ResourceClaimSpecFluent implements VisitableBuilder{ + public V1beta1ResourceClaimSpecBuilder() { + this(new V1beta1ResourceClaimSpec()); + } + + public V1beta1ResourceClaimSpecBuilder(V1beta1ResourceClaimSpecFluent fluent) { + this(fluent, new V1beta1ResourceClaimSpec()); + } + + public V1beta1ResourceClaimSpecBuilder(V1beta1ResourceClaimSpecFluent fluent,V1beta1ResourceClaimSpec instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1beta1ResourceClaimSpecBuilder(V1beta1ResourceClaimSpec instance) { + this.fluent = this; + this.copyInstance(instance); + } + V1beta1ResourceClaimSpecFluent fluent; + + public V1beta1ResourceClaimSpec build() { + V1beta1ResourceClaimSpec buildable = new V1beta1ResourceClaimSpec(); + buildable.setDevices(fluent.buildDevices()); + return buildable; + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceClaimSpecFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceClaimSpecFluent.java new file mode 100644 index 0000000000..e4a9596798 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceClaimSpecFluent.java @@ -0,0 +1,106 @@ +package io.kubernetes.client.openapi.models; + +import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Object; +import java.lang.String; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1beta1ResourceClaimSpecFluent> extends BaseFluent{ + public V1beta1ResourceClaimSpecFluent() { + } + + public V1beta1ResourceClaimSpecFluent(V1beta1ResourceClaimSpec instance) { + this.copyInstance(instance); + } + private V1beta1DeviceClaimBuilder devices; + + protected void copyInstance(V1beta1ResourceClaimSpec instance) { + instance = (instance != null ? instance : new V1beta1ResourceClaimSpec()); + if (instance != null) { + this.withDevices(instance.getDevices()); + } + } + + public V1beta1DeviceClaim buildDevices() { + return this.devices != null ? this.devices.build() : null; + } + + public A withDevices(V1beta1DeviceClaim devices) { + this._visitables.remove("devices"); + if (devices != null) { + this.devices = new V1beta1DeviceClaimBuilder(devices); + this._visitables.get("devices").add(this.devices); + } else { + this.devices = null; + this._visitables.get("devices").remove(this.devices); + } + return (A) this; + } + + public boolean hasDevices() { + return this.devices != null; + } + + public DevicesNested withNewDevices() { + return new DevicesNested(null); + } + + public DevicesNested withNewDevicesLike(V1beta1DeviceClaim item) { + return new DevicesNested(item); + } + + public DevicesNested editDevices() { + return withNewDevicesLike(java.util.Optional.ofNullable(buildDevices()).orElse(null)); + } + + public DevicesNested editOrNewDevices() { + return withNewDevicesLike(java.util.Optional.ofNullable(buildDevices()).orElse(new V1beta1DeviceClaimBuilder().build())); + } + + public DevicesNested editOrNewDevicesLike(V1beta1DeviceClaim item) { + return withNewDevicesLike(java.util.Optional.ofNullable(buildDevices()).orElse(item)); + } + + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + if (!super.equals(o)) return false; + V1beta1ResourceClaimSpecFluent that = (V1beta1ResourceClaimSpecFluent) o; + if (!java.util.Objects.equals(devices, that.devices)) return false; + return true; + } + + public int hashCode() { + return java.util.Objects.hash(devices, super.hashCode()); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (devices != null) { sb.append("devices:"); sb.append(devices); } + sb.append("}"); + return sb.toString(); + } + public class DevicesNested extends V1beta1DeviceClaimFluent> implements Nested{ + DevicesNested(V1beta1DeviceClaim item) { + this.builder = new V1beta1DeviceClaimBuilder(this, item); + } + V1beta1DeviceClaimBuilder builder; + + public N and() { + return (N) V1beta1ResourceClaimSpecFluent.this.withDevices(builder.build()); + } + + public N endDevices() { + return and(); + } + + + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceClaimStatusBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceClaimStatusBuilder.java new file mode 100644 index 0000000000..988185a361 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceClaimStatusBuilder.java @@ -0,0 +1,33 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +public class V1beta1ResourceClaimStatusBuilder extends V1beta1ResourceClaimStatusFluent implements VisitableBuilder{ + public V1beta1ResourceClaimStatusBuilder() { + this(new V1beta1ResourceClaimStatus()); + } + + public V1beta1ResourceClaimStatusBuilder(V1beta1ResourceClaimStatusFluent fluent) { + this(fluent, new V1beta1ResourceClaimStatus()); + } + + public V1beta1ResourceClaimStatusBuilder(V1beta1ResourceClaimStatusFluent fluent,V1beta1ResourceClaimStatus instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1beta1ResourceClaimStatusBuilder(V1beta1ResourceClaimStatus instance) { + this.fluent = this; + this.copyInstance(instance); + } + V1beta1ResourceClaimStatusFluent fluent; + + public V1beta1ResourceClaimStatus build() { + V1beta1ResourceClaimStatus buildable = new V1beta1ResourceClaimStatus(); + buildable.setAllocation(fluent.buildAllocation()); + buildable.setDevices(fluent.buildDevices()); + buildable.setReservedFor(fluent.buildReservedFor()); + return buildable; + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceClaimStatusFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceClaimStatusFluent.java new file mode 100644 index 0000000000..78db278e46 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceClaimStatusFluent.java @@ -0,0 +1,482 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.Nested; +import java.util.ArrayList; +import java.lang.String; +import java.util.function.Predicate; +import io.kubernetes.client.fluent.BaseFluent; +import java.util.Iterator; +import java.util.List; +import java.util.Collection; +import java.lang.Object; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1beta1ResourceClaimStatusFluent> extends BaseFluent{ + public V1beta1ResourceClaimStatusFluent() { + } + + public V1beta1ResourceClaimStatusFluent(V1beta1ResourceClaimStatus instance) { + this.copyInstance(instance); + } + private V1beta1AllocationResultBuilder allocation; + private ArrayList devices; + private ArrayList reservedFor; + + protected void copyInstance(V1beta1ResourceClaimStatus instance) { + instance = (instance != null ? instance : new V1beta1ResourceClaimStatus()); + if (instance != null) { + this.withAllocation(instance.getAllocation()); + this.withDevices(instance.getDevices()); + this.withReservedFor(instance.getReservedFor()); + } + } + + public V1beta1AllocationResult buildAllocation() { + return this.allocation != null ? this.allocation.build() : null; + } + + public A withAllocation(V1beta1AllocationResult allocation) { + this._visitables.remove("allocation"); + if (allocation != null) { + this.allocation = new V1beta1AllocationResultBuilder(allocation); + this._visitables.get("allocation").add(this.allocation); + } else { + this.allocation = null; + this._visitables.get("allocation").remove(this.allocation); + } + return (A) this; + } + + public boolean hasAllocation() { + return this.allocation != null; + } + + public AllocationNested withNewAllocation() { + return new AllocationNested(null); + } + + public AllocationNested withNewAllocationLike(V1beta1AllocationResult item) { + return new AllocationNested(item); + } + + public AllocationNested editAllocation() { + return withNewAllocationLike(java.util.Optional.ofNullable(buildAllocation()).orElse(null)); + } + + public AllocationNested editOrNewAllocation() { + return withNewAllocationLike(java.util.Optional.ofNullable(buildAllocation()).orElse(new V1beta1AllocationResultBuilder().build())); + } + + public AllocationNested editOrNewAllocationLike(V1beta1AllocationResult item) { + return withNewAllocationLike(java.util.Optional.ofNullable(buildAllocation()).orElse(item)); + } + + public A addToDevices(int index,V1beta1AllocatedDeviceStatus item) { + if (this.devices == null) {this.devices = new ArrayList();} + V1beta1AllocatedDeviceStatusBuilder builder = new V1beta1AllocatedDeviceStatusBuilder(item); + if (index < 0 || index >= devices.size()) { + _visitables.get("devices").add(builder); + devices.add(builder); + } else { + _visitables.get("devices").add(builder); + devices.add(index, builder); + } + return (A)this; + } + + public A setToDevices(int index,V1beta1AllocatedDeviceStatus item) { + if (this.devices == null) {this.devices = new ArrayList();} + V1beta1AllocatedDeviceStatusBuilder builder = new V1beta1AllocatedDeviceStatusBuilder(item); + if (index < 0 || index >= devices.size()) { + _visitables.get("devices").add(builder); + devices.add(builder); + } else { + _visitables.get("devices").add(builder); + devices.set(index, builder); + } + return (A)this; + } + + public A addToDevices(io.kubernetes.client.openapi.models.V1beta1AllocatedDeviceStatus... items) { + if (this.devices == null) {this.devices = new ArrayList();} + for (V1beta1AllocatedDeviceStatus item : items) {V1beta1AllocatedDeviceStatusBuilder builder = new V1beta1AllocatedDeviceStatusBuilder(item);_visitables.get("devices").add(builder);this.devices.add(builder);} return (A)this; + } + + public A addAllToDevices(Collection items) { + if (this.devices == null) {this.devices = new ArrayList();} + for (V1beta1AllocatedDeviceStatus item : items) {V1beta1AllocatedDeviceStatusBuilder builder = new V1beta1AllocatedDeviceStatusBuilder(item);_visitables.get("devices").add(builder);this.devices.add(builder);} return (A)this; + } + + public A removeFromDevices(io.kubernetes.client.openapi.models.V1beta1AllocatedDeviceStatus... items) { + if (this.devices == null) return (A)this; + for (V1beta1AllocatedDeviceStatus item : items) {V1beta1AllocatedDeviceStatusBuilder builder = new V1beta1AllocatedDeviceStatusBuilder(item);_visitables.get("devices").remove(builder); this.devices.remove(builder);} return (A)this; + } + + public A removeAllFromDevices(Collection items) { + if (this.devices == null) return (A)this; + for (V1beta1AllocatedDeviceStatus item : items) {V1beta1AllocatedDeviceStatusBuilder builder = new V1beta1AllocatedDeviceStatusBuilder(item);_visitables.get("devices").remove(builder); this.devices.remove(builder);} return (A)this; + } + + public A removeMatchingFromDevices(Predicate predicate) { + if (devices == null) return (A) this; + final Iterator each = devices.iterator(); + final List visitables = _visitables.get("devices"); + while (each.hasNext()) { + V1beta1AllocatedDeviceStatusBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A)this; + } + + public List buildDevices() { + return this.devices != null ? build(devices) : null; + } + + public V1beta1AllocatedDeviceStatus buildDevice(int index) { + return this.devices.get(index).build(); + } + + public V1beta1AllocatedDeviceStatus buildFirstDevice() { + return this.devices.get(0).build(); + } + + public V1beta1AllocatedDeviceStatus buildLastDevice() { + return this.devices.get(devices.size() - 1).build(); + } + + public V1beta1AllocatedDeviceStatus buildMatchingDevice(Predicate predicate) { + for (V1beta1AllocatedDeviceStatusBuilder item : devices) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; + } + + public boolean hasMatchingDevice(Predicate predicate) { + for (V1beta1AllocatedDeviceStatusBuilder item : devices) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public A withDevices(List devices) { + if (this.devices != null) { + this._visitables.get("devices").clear(); + } + if (devices != null) { + this.devices = new ArrayList(); + for (V1beta1AllocatedDeviceStatus item : devices) { + this.addToDevices(item); + } + } else { + this.devices = null; + } + return (A) this; + } + + public A withDevices(io.kubernetes.client.openapi.models.V1beta1AllocatedDeviceStatus... devices) { + if (this.devices != null) { + this.devices.clear(); + _visitables.remove("devices"); + } + if (devices != null) { + for (V1beta1AllocatedDeviceStatus item : devices) { + this.addToDevices(item); + } + } + return (A) this; + } + + public boolean hasDevices() { + return this.devices != null && !this.devices.isEmpty(); + } + + public DevicesNested addNewDevice() { + return new DevicesNested(-1, null); + } + + public DevicesNested addNewDeviceLike(V1beta1AllocatedDeviceStatus item) { + return new DevicesNested(-1, item); + } + + public DevicesNested setNewDeviceLike(int index,V1beta1AllocatedDeviceStatus item) { + return new DevicesNested(index, item); + } + + public DevicesNested editDevice(int index) { + if (devices.size() <= index) throw new RuntimeException("Can't edit devices. Index exceeds size."); + return setNewDeviceLike(index, buildDevice(index)); + } + + public DevicesNested editFirstDevice() { + if (devices.size() == 0) throw new RuntimeException("Can't edit first devices. The list is empty."); + return setNewDeviceLike(0, buildDevice(0)); + } + + public DevicesNested editLastDevice() { + int index = devices.size() - 1; + if (index < 0) throw new RuntimeException("Can't edit last devices. The list is empty."); + return setNewDeviceLike(index, buildDevice(index)); + } + + public DevicesNested editMatchingDevice(Predicate predicate) { + int index = -1; + for (int i=0;i();} + V1beta1ResourceClaimConsumerReferenceBuilder builder = new V1beta1ResourceClaimConsumerReferenceBuilder(item); + if (index < 0 || index >= reservedFor.size()) { + _visitables.get("reservedFor").add(builder); + reservedFor.add(builder); + } else { + _visitables.get("reservedFor").add(builder); + reservedFor.add(index, builder); + } + return (A)this; + } + + public A setToReservedFor(int index,V1beta1ResourceClaimConsumerReference item) { + if (this.reservedFor == null) {this.reservedFor = new ArrayList();} + V1beta1ResourceClaimConsumerReferenceBuilder builder = new V1beta1ResourceClaimConsumerReferenceBuilder(item); + if (index < 0 || index >= reservedFor.size()) { + _visitables.get("reservedFor").add(builder); + reservedFor.add(builder); + } else { + _visitables.get("reservedFor").add(builder); + reservedFor.set(index, builder); + } + return (A)this; + } + + public A addToReservedFor(io.kubernetes.client.openapi.models.V1beta1ResourceClaimConsumerReference... items) { + if (this.reservedFor == null) {this.reservedFor = new ArrayList();} + for (V1beta1ResourceClaimConsumerReference item : items) {V1beta1ResourceClaimConsumerReferenceBuilder builder = new V1beta1ResourceClaimConsumerReferenceBuilder(item);_visitables.get("reservedFor").add(builder);this.reservedFor.add(builder);} return (A)this; + } + + public A addAllToReservedFor(Collection items) { + if (this.reservedFor == null) {this.reservedFor = new ArrayList();} + for (V1beta1ResourceClaimConsumerReference item : items) {V1beta1ResourceClaimConsumerReferenceBuilder builder = new V1beta1ResourceClaimConsumerReferenceBuilder(item);_visitables.get("reservedFor").add(builder);this.reservedFor.add(builder);} return (A)this; + } + + public A removeFromReservedFor(io.kubernetes.client.openapi.models.V1beta1ResourceClaimConsumerReference... items) { + if (this.reservedFor == null) return (A)this; + for (V1beta1ResourceClaimConsumerReference item : items) {V1beta1ResourceClaimConsumerReferenceBuilder builder = new V1beta1ResourceClaimConsumerReferenceBuilder(item);_visitables.get("reservedFor").remove(builder); this.reservedFor.remove(builder);} return (A)this; + } + + public A removeAllFromReservedFor(Collection items) { + if (this.reservedFor == null) return (A)this; + for (V1beta1ResourceClaimConsumerReference item : items) {V1beta1ResourceClaimConsumerReferenceBuilder builder = new V1beta1ResourceClaimConsumerReferenceBuilder(item);_visitables.get("reservedFor").remove(builder); this.reservedFor.remove(builder);} return (A)this; + } + + public A removeMatchingFromReservedFor(Predicate predicate) { + if (reservedFor == null) return (A) this; + final Iterator each = reservedFor.iterator(); + final List visitables = _visitables.get("reservedFor"); + while (each.hasNext()) { + V1beta1ResourceClaimConsumerReferenceBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A)this; + } + + public List buildReservedFor() { + return this.reservedFor != null ? build(reservedFor) : null; + } + + public V1beta1ResourceClaimConsumerReference buildReservedFor(int index) { + return this.reservedFor.get(index).build(); + } + + public V1beta1ResourceClaimConsumerReference buildFirstReservedFor() { + return this.reservedFor.get(0).build(); + } + + public V1beta1ResourceClaimConsumerReference buildLastReservedFor() { + return this.reservedFor.get(reservedFor.size() - 1).build(); + } + + public V1beta1ResourceClaimConsumerReference buildMatchingReservedFor(Predicate predicate) { + for (V1beta1ResourceClaimConsumerReferenceBuilder item : reservedFor) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; + } + + public boolean hasMatchingReservedFor(Predicate predicate) { + for (V1beta1ResourceClaimConsumerReferenceBuilder item : reservedFor) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public A withReservedFor(List reservedFor) { + if (this.reservedFor != null) { + this._visitables.get("reservedFor").clear(); + } + if (reservedFor != null) { + this.reservedFor = new ArrayList(); + for (V1beta1ResourceClaimConsumerReference item : reservedFor) { + this.addToReservedFor(item); + } + } else { + this.reservedFor = null; + } + return (A) this; + } + + public A withReservedFor(io.kubernetes.client.openapi.models.V1beta1ResourceClaimConsumerReference... reservedFor) { + if (this.reservedFor != null) { + this.reservedFor.clear(); + _visitables.remove("reservedFor"); + } + if (reservedFor != null) { + for (V1beta1ResourceClaimConsumerReference item : reservedFor) { + this.addToReservedFor(item); + } + } + return (A) this; + } + + public boolean hasReservedFor() { + return this.reservedFor != null && !this.reservedFor.isEmpty(); + } + + public ReservedForNested addNewReservedFor() { + return new ReservedForNested(-1, null); + } + + public ReservedForNested addNewReservedForLike(V1beta1ResourceClaimConsumerReference item) { + return new ReservedForNested(-1, item); + } + + public ReservedForNested setNewReservedForLike(int index,V1beta1ResourceClaimConsumerReference item) { + return new ReservedForNested(index, item); + } + + public ReservedForNested editReservedFor(int index) { + if (reservedFor.size() <= index) throw new RuntimeException("Can't edit reservedFor. Index exceeds size."); + return setNewReservedForLike(index, buildReservedFor(index)); + } + + public ReservedForNested editFirstReservedFor() { + if (reservedFor.size() == 0) throw new RuntimeException("Can't edit first reservedFor. The list is empty."); + return setNewReservedForLike(0, buildReservedFor(0)); + } + + public ReservedForNested editLastReservedFor() { + int index = reservedFor.size() - 1; + if (index < 0) throw new RuntimeException("Can't edit last reservedFor. The list is empty."); + return setNewReservedForLike(index, buildReservedFor(index)); + } + + public ReservedForNested editMatchingReservedFor(Predicate predicate) { + int index = -1; + for (int i=0;i extends V1beta1AllocationResultFluent> implements Nested{ + AllocationNested(V1beta1AllocationResult item) { + this.builder = new V1beta1AllocationResultBuilder(this, item); + } + V1beta1AllocationResultBuilder builder; + + public N and() { + return (N) V1beta1ResourceClaimStatusFluent.this.withAllocation(builder.build()); + } + + public N endAllocation() { + return and(); + } + + + } + public class DevicesNested extends V1beta1AllocatedDeviceStatusFluent> implements Nested{ + DevicesNested(int index,V1beta1AllocatedDeviceStatus item) { + this.index = index; + this.builder = new V1beta1AllocatedDeviceStatusBuilder(this, item); + } + V1beta1AllocatedDeviceStatusBuilder builder; + int index; + + public N and() { + return (N) V1beta1ResourceClaimStatusFluent.this.setToDevices(index,builder.build()); + } + + public N endDevice() { + return and(); + } + + + } + public class ReservedForNested extends V1beta1ResourceClaimConsumerReferenceFluent> implements Nested{ + ReservedForNested(int index,V1beta1ResourceClaimConsumerReference item) { + this.index = index; + this.builder = new V1beta1ResourceClaimConsumerReferenceBuilder(this, item); + } + V1beta1ResourceClaimConsumerReferenceBuilder builder; + int index; + + public N and() { + return (N) V1beta1ResourceClaimStatusFluent.this.setToReservedFor(index,builder.build()); + } + + public N endReservedFor() { + return and(); + } + + + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceClaimTemplateBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceClaimTemplateBuilder.java new file mode 100644 index 0000000000..77dbda5dc4 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceClaimTemplateBuilder.java @@ -0,0 +1,34 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +public class V1beta1ResourceClaimTemplateBuilder extends V1beta1ResourceClaimTemplateFluent implements VisitableBuilder{ + public V1beta1ResourceClaimTemplateBuilder() { + this(new V1beta1ResourceClaimTemplate()); + } + + public V1beta1ResourceClaimTemplateBuilder(V1beta1ResourceClaimTemplateFluent fluent) { + this(fluent, new V1beta1ResourceClaimTemplate()); + } + + public V1beta1ResourceClaimTemplateBuilder(V1beta1ResourceClaimTemplateFluent fluent,V1beta1ResourceClaimTemplate instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1beta1ResourceClaimTemplateBuilder(V1beta1ResourceClaimTemplate instance) { + this.fluent = this; + this.copyInstance(instance); + } + V1beta1ResourceClaimTemplateFluent fluent; + + public V1beta1ResourceClaimTemplate build() { + V1beta1ResourceClaimTemplate buildable = new V1beta1ResourceClaimTemplate(); + buildable.setApiVersion(fluent.getApiVersion()); + buildable.setKind(fluent.getKind()); + buildable.setMetadata(fluent.buildMetadata()); + buildable.setSpec(fluent.buildSpec()); + return buildable; + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceClaimTemplateFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceClaimTemplateFluent.java new file mode 100644 index 0000000000..12b5ee7d98 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceClaimTemplateFluent.java @@ -0,0 +1,200 @@ +package io.kubernetes.client.openapi.models; + +import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.Nested; +import java.lang.String; +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Object; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1beta1ResourceClaimTemplateFluent> extends BaseFluent{ + public V1beta1ResourceClaimTemplateFluent() { + } + + public V1beta1ResourceClaimTemplateFluent(V1beta1ResourceClaimTemplate instance) { + this.copyInstance(instance); + } + private String apiVersion; + private String kind; + private V1ObjectMetaBuilder metadata; + private V1beta1ResourceClaimTemplateSpecBuilder spec; + + protected void copyInstance(V1beta1ResourceClaimTemplate instance) { + instance = (instance != null ? instance : new V1beta1ResourceClaimTemplate()); + if (instance != null) { + this.withApiVersion(instance.getApiVersion()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); + this.withSpec(instance.getSpec()); + } + } + + public String getApiVersion() { + return this.apiVersion; + } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + + public boolean hasApiVersion() { + return this.apiVersion != null; + } + + public String getKind() { + return this.kind; + } + + public A withKind(String kind) { + this.kind = kind; + return (A) this; + } + + public boolean hasKind() { + return this.kind != null; + } + + public V1ObjectMeta buildMetadata() { + return this.metadata != null ? this.metadata.build() : null; + } + + public A withMetadata(V1ObjectMeta metadata) { + this._visitables.remove("metadata"); + if (metadata != null) { + this.metadata = new V1ObjectMetaBuilder(metadata); + this._visitables.get("metadata").add(this.metadata); + } else { + this.metadata = null; + this._visitables.get("metadata").remove(this.metadata); + } + return (A) this; + } + + public boolean hasMetadata() { + return this.metadata != null; + } + + public MetadataNested withNewMetadata() { + return new MetadataNested(null); + } + + public MetadataNested withNewMetadataLike(V1ObjectMeta item) { + return new MetadataNested(item); + } + + public MetadataNested editMetadata() { + return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(null)); + } + + public MetadataNested editOrNewMetadata() { + return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(new V1ObjectMetaBuilder().build())); + } + + public MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { + return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(item)); + } + + public V1beta1ResourceClaimTemplateSpec buildSpec() { + return this.spec != null ? this.spec.build() : null; + } + + public A withSpec(V1beta1ResourceClaimTemplateSpec spec) { + this._visitables.remove("spec"); + if (spec != null) { + this.spec = new V1beta1ResourceClaimTemplateSpecBuilder(spec); + this._visitables.get("spec").add(this.spec); + } else { + this.spec = null; + this._visitables.get("spec").remove(this.spec); + } + return (A) this; + } + + public boolean hasSpec() { + return this.spec != null; + } + + public SpecNested withNewSpec() { + return new SpecNested(null); + } + + public SpecNested withNewSpecLike(V1beta1ResourceClaimTemplateSpec item) { + return new SpecNested(item); + } + + public SpecNested editSpec() { + return withNewSpecLike(java.util.Optional.ofNullable(buildSpec()).orElse(null)); + } + + public SpecNested editOrNewSpec() { + return withNewSpecLike(java.util.Optional.ofNullable(buildSpec()).orElse(new V1beta1ResourceClaimTemplateSpecBuilder().build())); + } + + public SpecNested editOrNewSpecLike(V1beta1ResourceClaimTemplateSpec item) { + return withNewSpecLike(java.util.Optional.ofNullable(buildSpec()).orElse(item)); + } + + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + if (!super.equals(o)) return false; + V1beta1ResourceClaimTemplateFluent that = (V1beta1ResourceClaimTemplateFluent) o; + if (!java.util.Objects.equals(apiVersion, that.apiVersion)) return false; + if (!java.util.Objects.equals(kind, that.kind)) return false; + if (!java.util.Objects.equals(metadata, that.metadata)) return false; + if (!java.util.Objects.equals(spec, that.spec)) return false; + return true; + } + + public int hashCode() { + return java.util.Objects.hash(apiVersion, kind, metadata, spec, super.hashCode()); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (apiVersion != null) { sb.append("apiVersion:"); sb.append(apiVersion + ","); } + if (kind != null) { sb.append("kind:"); sb.append(kind + ","); } + if (metadata != null) { sb.append("metadata:"); sb.append(metadata + ","); } + if (spec != null) { sb.append("spec:"); sb.append(spec); } + sb.append("}"); + return sb.toString(); + } + public class MetadataNested extends V1ObjectMetaFluent> implements Nested{ + MetadataNested(V1ObjectMeta item) { + this.builder = new V1ObjectMetaBuilder(this, item); + } + V1ObjectMetaBuilder builder; + + public N and() { + return (N) V1beta1ResourceClaimTemplateFluent.this.withMetadata(builder.build()); + } + + public N endMetadata() { + return and(); + } + + + } + public class SpecNested extends V1beta1ResourceClaimTemplateSpecFluent> implements Nested{ + SpecNested(V1beta1ResourceClaimTemplateSpec item) { + this.builder = new V1beta1ResourceClaimTemplateSpecBuilder(this, item); + } + V1beta1ResourceClaimTemplateSpecBuilder builder; + + public N and() { + return (N) V1beta1ResourceClaimTemplateFluent.this.withSpec(builder.build()); + } + + public N endSpec() { + return and(); + } + + + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceClaimTemplateListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceClaimTemplateListBuilder.java new file mode 100644 index 0000000000..45f0702169 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceClaimTemplateListBuilder.java @@ -0,0 +1,34 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +public class V1beta1ResourceClaimTemplateListBuilder extends V1beta1ResourceClaimTemplateListFluent implements VisitableBuilder{ + public V1beta1ResourceClaimTemplateListBuilder() { + this(new V1beta1ResourceClaimTemplateList()); + } + + public V1beta1ResourceClaimTemplateListBuilder(V1beta1ResourceClaimTemplateListFluent fluent) { + this(fluent, new V1beta1ResourceClaimTemplateList()); + } + + public V1beta1ResourceClaimTemplateListBuilder(V1beta1ResourceClaimTemplateListFluent fluent,V1beta1ResourceClaimTemplateList instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1beta1ResourceClaimTemplateListBuilder(V1beta1ResourceClaimTemplateList instance) { + this.fluent = this; + this.copyInstance(instance); + } + V1beta1ResourceClaimTemplateListFluent fluent; + + public V1beta1ResourceClaimTemplateList build() { + V1beta1ResourceClaimTemplateList buildable = new V1beta1ResourceClaimTemplateList(); + buildable.setApiVersion(fluent.getApiVersion()); + buildable.setItems(fluent.buildItems()); + buildable.setKind(fluent.getKind()); + buildable.setMetadata(fluent.buildMetadata()); + return buildable; + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceClaimTemplateListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceClaimTemplateListFluent.java new file mode 100644 index 0000000000..f0bab0120c --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceClaimTemplateListFluent.java @@ -0,0 +1,331 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.Nested; +import java.util.ArrayList; +import java.lang.String; +import java.util.function.Predicate; +import io.kubernetes.client.fluent.BaseFluent; +import java.util.Iterator; +import java.util.Collection; +import java.lang.Object; +import java.util.List; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1beta1ResourceClaimTemplateListFluent> extends BaseFluent{ + public V1beta1ResourceClaimTemplateListFluent() { + } + + public V1beta1ResourceClaimTemplateListFluent(V1beta1ResourceClaimTemplateList instance) { + this.copyInstance(instance); + } + private String apiVersion; + private ArrayList items; + private String kind; + private V1ListMetaBuilder metadata; + + protected void copyInstance(V1beta1ResourceClaimTemplateList instance) { + instance = (instance != null ? instance : new V1beta1ResourceClaimTemplateList()); + if (instance != null) { + this.withApiVersion(instance.getApiVersion()); + this.withItems(instance.getItems()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); + } + } + + public String getApiVersion() { + return this.apiVersion; + } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + + public boolean hasApiVersion() { + return this.apiVersion != null; + } + + public A addToItems(int index,V1beta1ResourceClaimTemplate item) { + if (this.items == null) {this.items = new ArrayList();} + V1beta1ResourceClaimTemplateBuilder builder = new V1beta1ResourceClaimTemplateBuilder(item); + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.add(index, builder); + } + return (A)this; + } + + public A setToItems(int index,V1beta1ResourceClaimTemplate item) { + if (this.items == null) {this.items = new ArrayList();} + V1beta1ResourceClaimTemplateBuilder builder = new V1beta1ResourceClaimTemplateBuilder(item); + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.set(index, builder); + } + return (A)this; + } + + public A addToItems(io.kubernetes.client.openapi.models.V1beta1ResourceClaimTemplate... items) { + if (this.items == null) {this.items = new ArrayList();} + for (V1beta1ResourceClaimTemplate item : items) {V1beta1ResourceClaimTemplateBuilder builder = new V1beta1ResourceClaimTemplateBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; + } + + public A addAllToItems(Collection items) { + if (this.items == null) {this.items = new ArrayList();} + for (V1beta1ResourceClaimTemplate item : items) {V1beta1ResourceClaimTemplateBuilder builder = new V1beta1ResourceClaimTemplateBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; + } + + public A removeFromItems(io.kubernetes.client.openapi.models.V1beta1ResourceClaimTemplate... items) { + if (this.items == null) return (A)this; + for (V1beta1ResourceClaimTemplate item : items) {V1beta1ResourceClaimTemplateBuilder builder = new V1beta1ResourceClaimTemplateBuilder(item);_visitables.get("items").remove(builder); this.items.remove(builder);} return (A)this; + } + + public A removeAllFromItems(Collection items) { + if (this.items == null) return (A)this; + for (V1beta1ResourceClaimTemplate item : items) {V1beta1ResourceClaimTemplateBuilder builder = new V1beta1ResourceClaimTemplateBuilder(item);_visitables.get("items").remove(builder); this.items.remove(builder);} return (A)this; + } + + public A removeMatchingFromItems(Predicate predicate) { + if (items == null) return (A) this; + final Iterator each = items.iterator(); + final List visitables = _visitables.get("items"); + while (each.hasNext()) { + V1beta1ResourceClaimTemplateBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A)this; + } + + public List buildItems() { + return this.items != null ? build(items) : null; + } + + public V1beta1ResourceClaimTemplate buildItem(int index) { + return this.items.get(index).build(); + } + + public V1beta1ResourceClaimTemplate buildFirstItem() { + return this.items.get(0).build(); + } + + public V1beta1ResourceClaimTemplate buildLastItem() { + return this.items.get(items.size() - 1).build(); + } + + public V1beta1ResourceClaimTemplate buildMatchingItem(Predicate predicate) { + for (V1beta1ResourceClaimTemplateBuilder item : items) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; + } + + public boolean hasMatchingItem(Predicate predicate) { + for (V1beta1ResourceClaimTemplateBuilder item : items) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public A withItems(List items) { + if (this.items != null) { + this._visitables.get("items").clear(); + } + if (items != null) { + this.items = new ArrayList(); + for (V1beta1ResourceClaimTemplate item : items) { + this.addToItems(item); + } + } else { + this.items = null; + } + return (A) this; + } + + public A withItems(io.kubernetes.client.openapi.models.V1beta1ResourceClaimTemplate... items) { + if (this.items != null) { + this.items.clear(); + _visitables.remove("items"); + } + if (items != null) { + for (V1beta1ResourceClaimTemplate item : items) { + this.addToItems(item); + } + } + return (A) this; + } + + public boolean hasItems() { + return this.items != null && !this.items.isEmpty(); + } + + public ItemsNested addNewItem() { + return new ItemsNested(-1, null); + } + + public ItemsNested addNewItemLike(V1beta1ResourceClaimTemplate item) { + return new ItemsNested(-1, item); + } + + public ItemsNested setNewItemLike(int index,V1beta1ResourceClaimTemplate item) { + return new ItemsNested(index, item); + } + + public ItemsNested editItem(int index) { + if (items.size() <= index) throw new RuntimeException("Can't edit items. Index exceeds size."); + return setNewItemLike(index, buildItem(index)); + } + + public ItemsNested editFirstItem() { + if (items.size() == 0) throw new RuntimeException("Can't edit first items. The list is empty."); + return setNewItemLike(0, buildItem(0)); + } + + public ItemsNested editLastItem() { + int index = items.size() - 1; + if (index < 0) throw new RuntimeException("Can't edit last items. The list is empty."); + return setNewItemLike(index, buildItem(index)); + } + + public ItemsNested editMatchingItem(Predicate predicate) { + int index = -1; + for (int i=0;i withNewMetadata() { + return new MetadataNested(null); + } + + public MetadataNested withNewMetadataLike(V1ListMeta item) { + return new MetadataNested(item); + } + + public MetadataNested editMetadata() { + return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(null)); + } + + public MetadataNested editOrNewMetadata() { + return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(new V1ListMetaBuilder().build())); + } + + public MetadataNested editOrNewMetadataLike(V1ListMeta item) { + return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(item)); + } + + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + if (!super.equals(o)) return false; + V1beta1ResourceClaimTemplateListFluent that = (V1beta1ResourceClaimTemplateListFluent) o; + if (!java.util.Objects.equals(apiVersion, that.apiVersion)) return false; + if (!java.util.Objects.equals(items, that.items)) return false; + if (!java.util.Objects.equals(kind, that.kind)) return false; + if (!java.util.Objects.equals(metadata, that.metadata)) return false; + return true; + } + + public int hashCode() { + return java.util.Objects.hash(apiVersion, items, kind, metadata, super.hashCode()); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (apiVersion != null) { sb.append("apiVersion:"); sb.append(apiVersion + ","); } + if (items != null && !items.isEmpty()) { sb.append("items:"); sb.append(items + ","); } + if (kind != null) { sb.append("kind:"); sb.append(kind + ","); } + if (metadata != null) { sb.append("metadata:"); sb.append(metadata); } + sb.append("}"); + return sb.toString(); + } + public class ItemsNested extends V1beta1ResourceClaimTemplateFluent> implements Nested{ + ItemsNested(int index,V1beta1ResourceClaimTemplate item) { + this.index = index; + this.builder = new V1beta1ResourceClaimTemplateBuilder(this, item); + } + V1beta1ResourceClaimTemplateBuilder builder; + int index; + + public N and() { + return (N) V1beta1ResourceClaimTemplateListFluent.this.setToItems(index,builder.build()); + } + + public N endItem() { + return and(); + } + + + } + public class MetadataNested extends V1ListMetaFluent> implements Nested{ + MetadataNested(V1ListMeta item) { + this.builder = new V1ListMetaBuilder(this, item); + } + V1ListMetaBuilder builder; + + public N and() { + return (N) V1beta1ResourceClaimTemplateListFluent.this.withMetadata(builder.build()); + } + + public N endMetadata() { + return and(); + } + + + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceClaimTemplateSpecBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceClaimTemplateSpecBuilder.java new file mode 100644 index 0000000000..f9b9a12faa --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceClaimTemplateSpecBuilder.java @@ -0,0 +1,32 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +public class V1beta1ResourceClaimTemplateSpecBuilder extends V1beta1ResourceClaimTemplateSpecFluent implements VisitableBuilder{ + public V1beta1ResourceClaimTemplateSpecBuilder() { + this(new V1beta1ResourceClaimTemplateSpec()); + } + + public V1beta1ResourceClaimTemplateSpecBuilder(V1beta1ResourceClaimTemplateSpecFluent fluent) { + this(fluent, new V1beta1ResourceClaimTemplateSpec()); + } + + public V1beta1ResourceClaimTemplateSpecBuilder(V1beta1ResourceClaimTemplateSpecFluent fluent,V1beta1ResourceClaimTemplateSpec instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1beta1ResourceClaimTemplateSpecBuilder(V1beta1ResourceClaimTemplateSpec instance) { + this.fluent = this; + this.copyInstance(instance); + } + V1beta1ResourceClaimTemplateSpecFluent fluent; + + public V1beta1ResourceClaimTemplateSpec build() { + V1beta1ResourceClaimTemplateSpec buildable = new V1beta1ResourceClaimTemplateSpec(); + buildable.setMetadata(fluent.buildMetadata()); + buildable.setSpec(fluent.buildSpec()); + return buildable; + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceClaimTemplateSpecFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceClaimTemplateSpecFluent.java new file mode 100644 index 0000000000..6990b843a2 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceClaimTemplateSpecFluent.java @@ -0,0 +1,166 @@ +package io.kubernetes.client.openapi.models; + +import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.Nested; +import java.lang.String; +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Object; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1beta1ResourceClaimTemplateSpecFluent> extends BaseFluent{ + public V1beta1ResourceClaimTemplateSpecFluent() { + } + + public V1beta1ResourceClaimTemplateSpecFluent(V1beta1ResourceClaimTemplateSpec instance) { + this.copyInstance(instance); + } + private V1ObjectMetaBuilder metadata; + private V1beta1ResourceClaimSpecBuilder spec; + + protected void copyInstance(V1beta1ResourceClaimTemplateSpec instance) { + instance = (instance != null ? instance : new V1beta1ResourceClaimTemplateSpec()); + if (instance != null) { + this.withMetadata(instance.getMetadata()); + this.withSpec(instance.getSpec()); + } + } + + public V1ObjectMeta buildMetadata() { + return this.metadata != null ? this.metadata.build() : null; + } + + public A withMetadata(V1ObjectMeta metadata) { + this._visitables.remove("metadata"); + if (metadata != null) { + this.metadata = new V1ObjectMetaBuilder(metadata); + this._visitables.get("metadata").add(this.metadata); + } else { + this.metadata = null; + this._visitables.get("metadata").remove(this.metadata); + } + return (A) this; + } + + public boolean hasMetadata() { + return this.metadata != null; + } + + public MetadataNested withNewMetadata() { + return new MetadataNested(null); + } + + public MetadataNested withNewMetadataLike(V1ObjectMeta item) { + return new MetadataNested(item); + } + + public MetadataNested editMetadata() { + return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(null)); + } + + public MetadataNested editOrNewMetadata() { + return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(new V1ObjectMetaBuilder().build())); + } + + public MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { + return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(item)); + } + + public V1beta1ResourceClaimSpec buildSpec() { + return this.spec != null ? this.spec.build() : null; + } + + public A withSpec(V1beta1ResourceClaimSpec spec) { + this._visitables.remove("spec"); + if (spec != null) { + this.spec = new V1beta1ResourceClaimSpecBuilder(spec); + this._visitables.get("spec").add(this.spec); + } else { + this.spec = null; + this._visitables.get("spec").remove(this.spec); + } + return (A) this; + } + + public boolean hasSpec() { + return this.spec != null; + } + + public SpecNested withNewSpec() { + return new SpecNested(null); + } + + public SpecNested withNewSpecLike(V1beta1ResourceClaimSpec item) { + return new SpecNested(item); + } + + public SpecNested editSpec() { + return withNewSpecLike(java.util.Optional.ofNullable(buildSpec()).orElse(null)); + } + + public SpecNested editOrNewSpec() { + return withNewSpecLike(java.util.Optional.ofNullable(buildSpec()).orElse(new V1beta1ResourceClaimSpecBuilder().build())); + } + + public SpecNested editOrNewSpecLike(V1beta1ResourceClaimSpec item) { + return withNewSpecLike(java.util.Optional.ofNullable(buildSpec()).orElse(item)); + } + + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + if (!super.equals(o)) return false; + V1beta1ResourceClaimTemplateSpecFluent that = (V1beta1ResourceClaimTemplateSpecFluent) o; + if (!java.util.Objects.equals(metadata, that.metadata)) return false; + if (!java.util.Objects.equals(spec, that.spec)) return false; + return true; + } + + public int hashCode() { + return java.util.Objects.hash(metadata, spec, super.hashCode()); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (metadata != null) { sb.append("metadata:"); sb.append(metadata + ","); } + if (spec != null) { sb.append("spec:"); sb.append(spec); } + sb.append("}"); + return sb.toString(); + } + public class MetadataNested extends V1ObjectMetaFluent> implements Nested{ + MetadataNested(V1ObjectMeta item) { + this.builder = new V1ObjectMetaBuilder(this, item); + } + V1ObjectMetaBuilder builder; + + public N and() { + return (N) V1beta1ResourceClaimTemplateSpecFluent.this.withMetadata(builder.build()); + } + + public N endMetadata() { + return and(); + } + + + } + public class SpecNested extends V1beta1ResourceClaimSpecFluent> implements Nested{ + SpecNested(V1beta1ResourceClaimSpec item) { + this.builder = new V1beta1ResourceClaimSpecBuilder(this, item); + } + V1beta1ResourceClaimSpecBuilder builder; + + public N and() { + return (N) V1beta1ResourceClaimTemplateSpecFluent.this.withSpec(builder.build()); + } + + public N endSpec() { + return and(); + } + + + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourcePoolBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourcePoolBuilder.java new file mode 100644 index 0000000000..6d0bac7bd8 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourcePoolBuilder.java @@ -0,0 +1,33 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +public class V1beta1ResourcePoolBuilder extends V1beta1ResourcePoolFluent implements VisitableBuilder{ + public V1beta1ResourcePoolBuilder() { + this(new V1beta1ResourcePool()); + } + + public V1beta1ResourcePoolBuilder(V1beta1ResourcePoolFluent fluent) { + this(fluent, new V1beta1ResourcePool()); + } + + public V1beta1ResourcePoolBuilder(V1beta1ResourcePoolFluent fluent,V1beta1ResourcePool instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1beta1ResourcePoolBuilder(V1beta1ResourcePool instance) { + this.fluent = this; + this.copyInstance(instance); + } + V1beta1ResourcePoolFluent fluent; + + public V1beta1ResourcePool build() { + V1beta1ResourcePool buildable = new V1beta1ResourcePool(); + buildable.setGeneration(fluent.getGeneration()); + buildable.setName(fluent.getName()); + buildable.setResourceSliceCount(fluent.getResourceSliceCount()); + return buildable; + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourcePoolFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourcePoolFluent.java new file mode 100644 index 0000000000..eadacb4293 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourcePoolFluent.java @@ -0,0 +1,98 @@ +package io.kubernetes.client.openapi.models; + +import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Long; +import java.lang.Object; +import java.lang.String; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1beta1ResourcePoolFluent> extends BaseFluent{ + public V1beta1ResourcePoolFluent() { + } + + public V1beta1ResourcePoolFluent(V1beta1ResourcePool instance) { + this.copyInstance(instance); + } + private Long generation; + private String name; + private Long resourceSliceCount; + + protected void copyInstance(V1beta1ResourcePool instance) { + instance = (instance != null ? instance : new V1beta1ResourcePool()); + if (instance != null) { + this.withGeneration(instance.getGeneration()); + this.withName(instance.getName()); + this.withResourceSliceCount(instance.getResourceSliceCount()); + } + } + + public Long getGeneration() { + return this.generation; + } + + public A withGeneration(Long generation) { + this.generation = generation; + return (A) this; + } + + public boolean hasGeneration() { + return this.generation != null; + } + + public String getName() { + return this.name; + } + + public A withName(String name) { + this.name = name; + return (A) this; + } + + public boolean hasName() { + return this.name != null; + } + + public Long getResourceSliceCount() { + return this.resourceSliceCount; + } + + public A withResourceSliceCount(Long resourceSliceCount) { + this.resourceSliceCount = resourceSliceCount; + return (A) this; + } + + public boolean hasResourceSliceCount() { + return this.resourceSliceCount != null; + } + + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + if (!super.equals(o)) return false; + V1beta1ResourcePoolFluent that = (V1beta1ResourcePoolFluent) o; + if (!java.util.Objects.equals(generation, that.generation)) return false; + if (!java.util.Objects.equals(name, that.name)) return false; + if (!java.util.Objects.equals(resourceSliceCount, that.resourceSliceCount)) return false; + return true; + } + + public int hashCode() { + return java.util.Objects.hash(generation, name, resourceSliceCount, super.hashCode()); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (generation != null) { sb.append("generation:"); sb.append(generation + ","); } + if (name != null) { sb.append("name:"); sb.append(name + ","); } + if (resourceSliceCount != null) { sb.append("resourceSliceCount:"); sb.append(resourceSliceCount); } + sb.append("}"); + return sb.toString(); + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceSliceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceSliceBuilder.java new file mode 100644 index 0000000000..3fef42af65 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceSliceBuilder.java @@ -0,0 +1,34 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +public class V1beta1ResourceSliceBuilder extends V1beta1ResourceSliceFluent implements VisitableBuilder{ + public V1beta1ResourceSliceBuilder() { + this(new V1beta1ResourceSlice()); + } + + public V1beta1ResourceSliceBuilder(V1beta1ResourceSliceFluent fluent) { + this(fluent, new V1beta1ResourceSlice()); + } + + public V1beta1ResourceSliceBuilder(V1beta1ResourceSliceFluent fluent,V1beta1ResourceSlice instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1beta1ResourceSliceBuilder(V1beta1ResourceSlice instance) { + this.fluent = this; + this.copyInstance(instance); + } + V1beta1ResourceSliceFluent fluent; + + public V1beta1ResourceSlice build() { + V1beta1ResourceSlice buildable = new V1beta1ResourceSlice(); + buildable.setApiVersion(fluent.getApiVersion()); + buildable.setKind(fluent.getKind()); + buildable.setMetadata(fluent.buildMetadata()); + buildable.setSpec(fluent.buildSpec()); + return buildable; + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceSliceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceSliceFluent.java new file mode 100644 index 0000000000..ed9d1f8a2e --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceSliceFluent.java @@ -0,0 +1,200 @@ +package io.kubernetes.client.openapi.models; + +import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.Nested; +import java.lang.String; +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Object; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1beta1ResourceSliceFluent> extends BaseFluent{ + public V1beta1ResourceSliceFluent() { + } + + public V1beta1ResourceSliceFluent(V1beta1ResourceSlice instance) { + this.copyInstance(instance); + } + private String apiVersion; + private String kind; + private V1ObjectMetaBuilder metadata; + private V1beta1ResourceSliceSpecBuilder spec; + + protected void copyInstance(V1beta1ResourceSlice instance) { + instance = (instance != null ? instance : new V1beta1ResourceSlice()); + if (instance != null) { + this.withApiVersion(instance.getApiVersion()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); + this.withSpec(instance.getSpec()); + } + } + + public String getApiVersion() { + return this.apiVersion; + } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + + public boolean hasApiVersion() { + return this.apiVersion != null; + } + + public String getKind() { + return this.kind; + } + + public A withKind(String kind) { + this.kind = kind; + return (A) this; + } + + public boolean hasKind() { + return this.kind != null; + } + + public V1ObjectMeta buildMetadata() { + return this.metadata != null ? this.metadata.build() : null; + } + + public A withMetadata(V1ObjectMeta metadata) { + this._visitables.remove("metadata"); + if (metadata != null) { + this.metadata = new V1ObjectMetaBuilder(metadata); + this._visitables.get("metadata").add(this.metadata); + } else { + this.metadata = null; + this._visitables.get("metadata").remove(this.metadata); + } + return (A) this; + } + + public boolean hasMetadata() { + return this.metadata != null; + } + + public MetadataNested withNewMetadata() { + return new MetadataNested(null); + } + + public MetadataNested withNewMetadataLike(V1ObjectMeta item) { + return new MetadataNested(item); + } + + public MetadataNested editMetadata() { + return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(null)); + } + + public MetadataNested editOrNewMetadata() { + return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(new V1ObjectMetaBuilder().build())); + } + + public MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { + return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(item)); + } + + public V1beta1ResourceSliceSpec buildSpec() { + return this.spec != null ? this.spec.build() : null; + } + + public A withSpec(V1beta1ResourceSliceSpec spec) { + this._visitables.remove("spec"); + if (spec != null) { + this.spec = new V1beta1ResourceSliceSpecBuilder(spec); + this._visitables.get("spec").add(this.spec); + } else { + this.spec = null; + this._visitables.get("spec").remove(this.spec); + } + return (A) this; + } + + public boolean hasSpec() { + return this.spec != null; + } + + public SpecNested withNewSpec() { + return new SpecNested(null); + } + + public SpecNested withNewSpecLike(V1beta1ResourceSliceSpec item) { + return new SpecNested(item); + } + + public SpecNested editSpec() { + return withNewSpecLike(java.util.Optional.ofNullable(buildSpec()).orElse(null)); + } + + public SpecNested editOrNewSpec() { + return withNewSpecLike(java.util.Optional.ofNullable(buildSpec()).orElse(new V1beta1ResourceSliceSpecBuilder().build())); + } + + public SpecNested editOrNewSpecLike(V1beta1ResourceSliceSpec item) { + return withNewSpecLike(java.util.Optional.ofNullable(buildSpec()).orElse(item)); + } + + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + if (!super.equals(o)) return false; + V1beta1ResourceSliceFluent that = (V1beta1ResourceSliceFluent) o; + if (!java.util.Objects.equals(apiVersion, that.apiVersion)) return false; + if (!java.util.Objects.equals(kind, that.kind)) return false; + if (!java.util.Objects.equals(metadata, that.metadata)) return false; + if (!java.util.Objects.equals(spec, that.spec)) return false; + return true; + } + + public int hashCode() { + return java.util.Objects.hash(apiVersion, kind, metadata, spec, super.hashCode()); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (apiVersion != null) { sb.append("apiVersion:"); sb.append(apiVersion + ","); } + if (kind != null) { sb.append("kind:"); sb.append(kind + ","); } + if (metadata != null) { sb.append("metadata:"); sb.append(metadata + ","); } + if (spec != null) { sb.append("spec:"); sb.append(spec); } + sb.append("}"); + return sb.toString(); + } + public class MetadataNested extends V1ObjectMetaFluent> implements Nested{ + MetadataNested(V1ObjectMeta item) { + this.builder = new V1ObjectMetaBuilder(this, item); + } + V1ObjectMetaBuilder builder; + + public N and() { + return (N) V1beta1ResourceSliceFluent.this.withMetadata(builder.build()); + } + + public N endMetadata() { + return and(); + } + + + } + public class SpecNested extends V1beta1ResourceSliceSpecFluent> implements Nested{ + SpecNested(V1beta1ResourceSliceSpec item) { + this.builder = new V1beta1ResourceSliceSpecBuilder(this, item); + } + V1beta1ResourceSliceSpecBuilder builder; + + public N and() { + return (N) V1beta1ResourceSliceFluent.this.withSpec(builder.build()); + } + + public N endSpec() { + return and(); + } + + + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceSliceListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceSliceListBuilder.java new file mode 100644 index 0000000000..8b5df90a17 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceSliceListBuilder.java @@ -0,0 +1,34 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +public class V1beta1ResourceSliceListBuilder extends V1beta1ResourceSliceListFluent implements VisitableBuilder{ + public V1beta1ResourceSliceListBuilder() { + this(new V1beta1ResourceSliceList()); + } + + public V1beta1ResourceSliceListBuilder(V1beta1ResourceSliceListFluent fluent) { + this(fluent, new V1beta1ResourceSliceList()); + } + + public V1beta1ResourceSliceListBuilder(V1beta1ResourceSliceListFluent fluent,V1beta1ResourceSliceList instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1beta1ResourceSliceListBuilder(V1beta1ResourceSliceList instance) { + this.fluent = this; + this.copyInstance(instance); + } + V1beta1ResourceSliceListFluent fluent; + + public V1beta1ResourceSliceList build() { + V1beta1ResourceSliceList buildable = new V1beta1ResourceSliceList(); + buildable.setApiVersion(fluent.getApiVersion()); + buildable.setItems(fluent.buildItems()); + buildable.setKind(fluent.getKind()); + buildable.setMetadata(fluent.buildMetadata()); + return buildable; + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceSliceListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceSliceListFluent.java new file mode 100644 index 0000000000..ac9a84afcc --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceSliceListFluent.java @@ -0,0 +1,331 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.Nested; +import java.util.ArrayList; +import java.lang.String; +import java.util.function.Predicate; +import io.kubernetes.client.fluent.BaseFluent; +import java.util.Iterator; +import java.util.Collection; +import java.lang.Object; +import java.util.List; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1beta1ResourceSliceListFluent> extends BaseFluent{ + public V1beta1ResourceSliceListFluent() { + } + + public V1beta1ResourceSliceListFluent(V1beta1ResourceSliceList instance) { + this.copyInstance(instance); + } + private String apiVersion; + private ArrayList items; + private String kind; + private V1ListMetaBuilder metadata; + + protected void copyInstance(V1beta1ResourceSliceList instance) { + instance = (instance != null ? instance : new V1beta1ResourceSliceList()); + if (instance != null) { + this.withApiVersion(instance.getApiVersion()); + this.withItems(instance.getItems()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); + } + } + + public String getApiVersion() { + return this.apiVersion; + } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + + public boolean hasApiVersion() { + return this.apiVersion != null; + } + + public A addToItems(int index,V1beta1ResourceSlice item) { + if (this.items == null) {this.items = new ArrayList();} + V1beta1ResourceSliceBuilder builder = new V1beta1ResourceSliceBuilder(item); + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.add(index, builder); + } + return (A)this; + } + + public A setToItems(int index,V1beta1ResourceSlice item) { + if (this.items == null) {this.items = new ArrayList();} + V1beta1ResourceSliceBuilder builder = new V1beta1ResourceSliceBuilder(item); + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.set(index, builder); + } + return (A)this; + } + + public A addToItems(io.kubernetes.client.openapi.models.V1beta1ResourceSlice... items) { + if (this.items == null) {this.items = new ArrayList();} + for (V1beta1ResourceSlice item : items) {V1beta1ResourceSliceBuilder builder = new V1beta1ResourceSliceBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; + } + + public A addAllToItems(Collection items) { + if (this.items == null) {this.items = new ArrayList();} + for (V1beta1ResourceSlice item : items) {V1beta1ResourceSliceBuilder builder = new V1beta1ResourceSliceBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; + } + + public A removeFromItems(io.kubernetes.client.openapi.models.V1beta1ResourceSlice... items) { + if (this.items == null) return (A)this; + for (V1beta1ResourceSlice item : items) {V1beta1ResourceSliceBuilder builder = new V1beta1ResourceSliceBuilder(item);_visitables.get("items").remove(builder); this.items.remove(builder);} return (A)this; + } + + public A removeAllFromItems(Collection items) { + if (this.items == null) return (A)this; + for (V1beta1ResourceSlice item : items) {V1beta1ResourceSliceBuilder builder = new V1beta1ResourceSliceBuilder(item);_visitables.get("items").remove(builder); this.items.remove(builder);} return (A)this; + } + + public A removeMatchingFromItems(Predicate predicate) { + if (items == null) return (A) this; + final Iterator each = items.iterator(); + final List visitables = _visitables.get("items"); + while (each.hasNext()) { + V1beta1ResourceSliceBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A)this; + } + + public List buildItems() { + return this.items != null ? build(items) : null; + } + + public V1beta1ResourceSlice buildItem(int index) { + return this.items.get(index).build(); + } + + public V1beta1ResourceSlice buildFirstItem() { + return this.items.get(0).build(); + } + + public V1beta1ResourceSlice buildLastItem() { + return this.items.get(items.size() - 1).build(); + } + + public V1beta1ResourceSlice buildMatchingItem(Predicate predicate) { + for (V1beta1ResourceSliceBuilder item : items) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; + } + + public boolean hasMatchingItem(Predicate predicate) { + for (V1beta1ResourceSliceBuilder item : items) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public A withItems(List items) { + if (this.items != null) { + this._visitables.get("items").clear(); + } + if (items != null) { + this.items = new ArrayList(); + for (V1beta1ResourceSlice item : items) { + this.addToItems(item); + } + } else { + this.items = null; + } + return (A) this; + } + + public A withItems(io.kubernetes.client.openapi.models.V1beta1ResourceSlice... items) { + if (this.items != null) { + this.items.clear(); + _visitables.remove("items"); + } + if (items != null) { + for (V1beta1ResourceSlice item : items) { + this.addToItems(item); + } + } + return (A) this; + } + + public boolean hasItems() { + return this.items != null && !this.items.isEmpty(); + } + + public ItemsNested addNewItem() { + return new ItemsNested(-1, null); + } + + public ItemsNested addNewItemLike(V1beta1ResourceSlice item) { + return new ItemsNested(-1, item); + } + + public ItemsNested setNewItemLike(int index,V1beta1ResourceSlice item) { + return new ItemsNested(index, item); + } + + public ItemsNested editItem(int index) { + if (items.size() <= index) throw new RuntimeException("Can't edit items. Index exceeds size."); + return setNewItemLike(index, buildItem(index)); + } + + public ItemsNested editFirstItem() { + if (items.size() == 0) throw new RuntimeException("Can't edit first items. The list is empty."); + return setNewItemLike(0, buildItem(0)); + } + + public ItemsNested editLastItem() { + int index = items.size() - 1; + if (index < 0) throw new RuntimeException("Can't edit last items. The list is empty."); + return setNewItemLike(index, buildItem(index)); + } + + public ItemsNested editMatchingItem(Predicate predicate) { + int index = -1; + for (int i=0;i withNewMetadata() { + return new MetadataNested(null); + } + + public MetadataNested withNewMetadataLike(V1ListMeta item) { + return new MetadataNested(item); + } + + public MetadataNested editMetadata() { + return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(null)); + } + + public MetadataNested editOrNewMetadata() { + return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(new V1ListMetaBuilder().build())); + } + + public MetadataNested editOrNewMetadataLike(V1ListMeta item) { + return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(item)); + } + + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + if (!super.equals(o)) return false; + V1beta1ResourceSliceListFluent that = (V1beta1ResourceSliceListFluent) o; + if (!java.util.Objects.equals(apiVersion, that.apiVersion)) return false; + if (!java.util.Objects.equals(items, that.items)) return false; + if (!java.util.Objects.equals(kind, that.kind)) return false; + if (!java.util.Objects.equals(metadata, that.metadata)) return false; + return true; + } + + public int hashCode() { + return java.util.Objects.hash(apiVersion, items, kind, metadata, super.hashCode()); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (apiVersion != null) { sb.append("apiVersion:"); sb.append(apiVersion + ","); } + if (items != null && !items.isEmpty()) { sb.append("items:"); sb.append(items + ","); } + if (kind != null) { sb.append("kind:"); sb.append(kind + ","); } + if (metadata != null) { sb.append("metadata:"); sb.append(metadata); } + sb.append("}"); + return sb.toString(); + } + public class ItemsNested extends V1beta1ResourceSliceFluent> implements Nested{ + ItemsNested(int index,V1beta1ResourceSlice item) { + this.index = index; + this.builder = new V1beta1ResourceSliceBuilder(this, item); + } + V1beta1ResourceSliceBuilder builder; + int index; + + public N and() { + return (N) V1beta1ResourceSliceListFluent.this.setToItems(index,builder.build()); + } + + public N endItem() { + return and(); + } + + + } + public class MetadataNested extends V1ListMetaFluent> implements Nested{ + MetadataNested(V1ListMeta item) { + this.builder = new V1ListMetaBuilder(this, item); + } + V1ListMetaBuilder builder; + + public N and() { + return (N) V1beta1ResourceSliceListFluent.this.withMetadata(builder.build()); + } + + public N endMetadata() { + return and(); + } + + + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceSliceSpecBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceSliceSpecBuilder.java new file mode 100644 index 0000000000..77a29b2932 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceSliceSpecBuilder.java @@ -0,0 +1,38 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +public class V1beta1ResourceSliceSpecBuilder extends V1beta1ResourceSliceSpecFluent implements VisitableBuilder{ + public V1beta1ResourceSliceSpecBuilder() { + this(new V1beta1ResourceSliceSpec()); + } + + public V1beta1ResourceSliceSpecBuilder(V1beta1ResourceSliceSpecFluent fluent) { + this(fluent, new V1beta1ResourceSliceSpec()); + } + + public V1beta1ResourceSliceSpecBuilder(V1beta1ResourceSliceSpecFluent fluent,V1beta1ResourceSliceSpec instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1beta1ResourceSliceSpecBuilder(V1beta1ResourceSliceSpec instance) { + this.fluent = this; + this.copyInstance(instance); + } + V1beta1ResourceSliceSpecFluent fluent; + + public V1beta1ResourceSliceSpec build() { + V1beta1ResourceSliceSpec buildable = new V1beta1ResourceSliceSpec(); + buildable.setAllNodes(fluent.getAllNodes()); + buildable.setDevices(fluent.buildDevices()); + buildable.setDriver(fluent.getDriver()); + buildable.setNodeName(fluent.getNodeName()); + buildable.setNodeSelector(fluent.buildNodeSelector()); + buildable.setPerDeviceNodeSelection(fluent.getPerDeviceNodeSelection()); + buildable.setPool(fluent.buildPool()); + buildable.setSharedCounters(fluent.buildSharedCounters()); + return buildable; + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceSliceSpecFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceSliceSpecFluent.java new file mode 100644 index 0000000000..6fed1f29f3 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceSliceSpecFluent.java @@ -0,0 +1,619 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.Nested; +import java.util.ArrayList; +import java.lang.String; +import java.util.function.Predicate; +import io.kubernetes.client.fluent.BaseFluent; +import java.util.Iterator; +import java.util.List; +import java.lang.Boolean; +import java.util.Collection; +import java.lang.Object; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1beta1ResourceSliceSpecFluent> extends BaseFluent{ + public V1beta1ResourceSliceSpecFluent() { + } + + public V1beta1ResourceSliceSpecFluent(V1beta1ResourceSliceSpec instance) { + this.copyInstance(instance); + } + private Boolean allNodes; + private ArrayList devices; + private String driver; + private String nodeName; + private V1NodeSelectorBuilder nodeSelector; + private Boolean perDeviceNodeSelection; + private V1beta1ResourcePoolBuilder pool; + private ArrayList sharedCounters; + + protected void copyInstance(V1beta1ResourceSliceSpec instance) { + instance = (instance != null ? instance : new V1beta1ResourceSliceSpec()); + if (instance != null) { + this.withAllNodes(instance.getAllNodes()); + this.withDevices(instance.getDevices()); + this.withDriver(instance.getDriver()); + this.withNodeName(instance.getNodeName()); + this.withNodeSelector(instance.getNodeSelector()); + this.withPerDeviceNodeSelection(instance.getPerDeviceNodeSelection()); + this.withPool(instance.getPool()); + this.withSharedCounters(instance.getSharedCounters()); + } + } + + public Boolean getAllNodes() { + return this.allNodes; + } + + public A withAllNodes(Boolean allNodes) { + this.allNodes = allNodes; + return (A) this; + } + + public boolean hasAllNodes() { + return this.allNodes != null; + } + + public A addToDevices(int index,V1beta1Device item) { + if (this.devices == null) {this.devices = new ArrayList();} + V1beta1DeviceBuilder builder = new V1beta1DeviceBuilder(item); + if (index < 0 || index >= devices.size()) { + _visitables.get("devices").add(builder); + devices.add(builder); + } else { + _visitables.get("devices").add(builder); + devices.add(index, builder); + } + return (A)this; + } + + public A setToDevices(int index,V1beta1Device item) { + if (this.devices == null) {this.devices = new ArrayList();} + V1beta1DeviceBuilder builder = new V1beta1DeviceBuilder(item); + if (index < 0 || index >= devices.size()) { + _visitables.get("devices").add(builder); + devices.add(builder); + } else { + _visitables.get("devices").add(builder); + devices.set(index, builder); + } + return (A)this; + } + + public A addToDevices(io.kubernetes.client.openapi.models.V1beta1Device... items) { + if (this.devices == null) {this.devices = new ArrayList();} + for (V1beta1Device item : items) {V1beta1DeviceBuilder builder = new V1beta1DeviceBuilder(item);_visitables.get("devices").add(builder);this.devices.add(builder);} return (A)this; + } + + public A addAllToDevices(Collection items) { + if (this.devices == null) {this.devices = new ArrayList();} + for (V1beta1Device item : items) {V1beta1DeviceBuilder builder = new V1beta1DeviceBuilder(item);_visitables.get("devices").add(builder);this.devices.add(builder);} return (A)this; + } + + public A removeFromDevices(io.kubernetes.client.openapi.models.V1beta1Device... items) { + if (this.devices == null) return (A)this; + for (V1beta1Device item : items) {V1beta1DeviceBuilder builder = new V1beta1DeviceBuilder(item);_visitables.get("devices").remove(builder); this.devices.remove(builder);} return (A)this; + } + + public A removeAllFromDevices(Collection items) { + if (this.devices == null) return (A)this; + for (V1beta1Device item : items) {V1beta1DeviceBuilder builder = new V1beta1DeviceBuilder(item);_visitables.get("devices").remove(builder); this.devices.remove(builder);} return (A)this; + } + + public A removeMatchingFromDevices(Predicate predicate) { + if (devices == null) return (A) this; + final Iterator each = devices.iterator(); + final List visitables = _visitables.get("devices"); + while (each.hasNext()) { + V1beta1DeviceBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A)this; + } + + public List buildDevices() { + return this.devices != null ? build(devices) : null; + } + + public V1beta1Device buildDevice(int index) { + return this.devices.get(index).build(); + } + + public V1beta1Device buildFirstDevice() { + return this.devices.get(0).build(); + } + + public V1beta1Device buildLastDevice() { + return this.devices.get(devices.size() - 1).build(); + } + + public V1beta1Device buildMatchingDevice(Predicate predicate) { + for (V1beta1DeviceBuilder item : devices) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; + } + + public boolean hasMatchingDevice(Predicate predicate) { + for (V1beta1DeviceBuilder item : devices) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public A withDevices(List devices) { + if (this.devices != null) { + this._visitables.get("devices").clear(); + } + if (devices != null) { + this.devices = new ArrayList(); + for (V1beta1Device item : devices) { + this.addToDevices(item); + } + } else { + this.devices = null; + } + return (A) this; + } + + public A withDevices(io.kubernetes.client.openapi.models.V1beta1Device... devices) { + if (this.devices != null) { + this.devices.clear(); + _visitables.remove("devices"); + } + if (devices != null) { + for (V1beta1Device item : devices) { + this.addToDevices(item); + } + } + return (A) this; + } + + public boolean hasDevices() { + return this.devices != null && !this.devices.isEmpty(); + } + + public DevicesNested addNewDevice() { + return new DevicesNested(-1, null); + } + + public DevicesNested addNewDeviceLike(V1beta1Device item) { + return new DevicesNested(-1, item); + } + + public DevicesNested setNewDeviceLike(int index,V1beta1Device item) { + return new DevicesNested(index, item); + } + + public DevicesNested editDevice(int index) { + if (devices.size() <= index) throw new RuntimeException("Can't edit devices. Index exceeds size."); + return setNewDeviceLike(index, buildDevice(index)); + } + + public DevicesNested editFirstDevice() { + if (devices.size() == 0) throw new RuntimeException("Can't edit first devices. The list is empty."); + return setNewDeviceLike(0, buildDevice(0)); + } + + public DevicesNested editLastDevice() { + int index = devices.size() - 1; + if (index < 0) throw new RuntimeException("Can't edit last devices. The list is empty."); + return setNewDeviceLike(index, buildDevice(index)); + } + + public DevicesNested editMatchingDevice(Predicate predicate) { + int index = -1; + for (int i=0;i withNewNodeSelector() { + return new NodeSelectorNested(null); + } + + public NodeSelectorNested withNewNodeSelectorLike(V1NodeSelector item) { + return new NodeSelectorNested(item); + } + + public NodeSelectorNested editNodeSelector() { + return withNewNodeSelectorLike(java.util.Optional.ofNullable(buildNodeSelector()).orElse(null)); + } + + public NodeSelectorNested editOrNewNodeSelector() { + return withNewNodeSelectorLike(java.util.Optional.ofNullable(buildNodeSelector()).orElse(new V1NodeSelectorBuilder().build())); + } + + public NodeSelectorNested editOrNewNodeSelectorLike(V1NodeSelector item) { + return withNewNodeSelectorLike(java.util.Optional.ofNullable(buildNodeSelector()).orElse(item)); + } + + public Boolean getPerDeviceNodeSelection() { + return this.perDeviceNodeSelection; + } + + public A withPerDeviceNodeSelection(Boolean perDeviceNodeSelection) { + this.perDeviceNodeSelection = perDeviceNodeSelection; + return (A) this; + } + + public boolean hasPerDeviceNodeSelection() { + return this.perDeviceNodeSelection != null; + } + + public V1beta1ResourcePool buildPool() { + return this.pool != null ? this.pool.build() : null; + } + + public A withPool(V1beta1ResourcePool pool) { + this._visitables.remove("pool"); + if (pool != null) { + this.pool = new V1beta1ResourcePoolBuilder(pool); + this._visitables.get("pool").add(this.pool); + } else { + this.pool = null; + this._visitables.get("pool").remove(this.pool); + } + return (A) this; + } + + public boolean hasPool() { + return this.pool != null; + } + + public PoolNested withNewPool() { + return new PoolNested(null); + } + + public PoolNested withNewPoolLike(V1beta1ResourcePool item) { + return new PoolNested(item); + } + + public PoolNested editPool() { + return withNewPoolLike(java.util.Optional.ofNullable(buildPool()).orElse(null)); + } + + public PoolNested editOrNewPool() { + return withNewPoolLike(java.util.Optional.ofNullable(buildPool()).orElse(new V1beta1ResourcePoolBuilder().build())); + } + + public PoolNested editOrNewPoolLike(V1beta1ResourcePool item) { + return withNewPoolLike(java.util.Optional.ofNullable(buildPool()).orElse(item)); + } + + public A addToSharedCounters(int index,V1beta1CounterSet item) { + if (this.sharedCounters == null) {this.sharedCounters = new ArrayList();} + V1beta1CounterSetBuilder builder = new V1beta1CounterSetBuilder(item); + if (index < 0 || index >= sharedCounters.size()) { + _visitables.get("sharedCounters").add(builder); + sharedCounters.add(builder); + } else { + _visitables.get("sharedCounters").add(builder); + sharedCounters.add(index, builder); + } + return (A)this; + } + + public A setToSharedCounters(int index,V1beta1CounterSet item) { + if (this.sharedCounters == null) {this.sharedCounters = new ArrayList();} + V1beta1CounterSetBuilder builder = new V1beta1CounterSetBuilder(item); + if (index < 0 || index >= sharedCounters.size()) { + _visitables.get("sharedCounters").add(builder); + sharedCounters.add(builder); + } else { + _visitables.get("sharedCounters").add(builder); + sharedCounters.set(index, builder); + } + return (A)this; + } + + public A addToSharedCounters(io.kubernetes.client.openapi.models.V1beta1CounterSet... items) { + if (this.sharedCounters == null) {this.sharedCounters = new ArrayList();} + for (V1beta1CounterSet item : items) {V1beta1CounterSetBuilder builder = new V1beta1CounterSetBuilder(item);_visitables.get("sharedCounters").add(builder);this.sharedCounters.add(builder);} return (A)this; + } + + public A addAllToSharedCounters(Collection items) { + if (this.sharedCounters == null) {this.sharedCounters = new ArrayList();} + for (V1beta1CounterSet item : items) {V1beta1CounterSetBuilder builder = new V1beta1CounterSetBuilder(item);_visitables.get("sharedCounters").add(builder);this.sharedCounters.add(builder);} return (A)this; + } + + public A removeFromSharedCounters(io.kubernetes.client.openapi.models.V1beta1CounterSet... items) { + if (this.sharedCounters == null) return (A)this; + for (V1beta1CounterSet item : items) {V1beta1CounterSetBuilder builder = new V1beta1CounterSetBuilder(item);_visitables.get("sharedCounters").remove(builder); this.sharedCounters.remove(builder);} return (A)this; + } + + public A removeAllFromSharedCounters(Collection items) { + if (this.sharedCounters == null) return (A)this; + for (V1beta1CounterSet item : items) {V1beta1CounterSetBuilder builder = new V1beta1CounterSetBuilder(item);_visitables.get("sharedCounters").remove(builder); this.sharedCounters.remove(builder);} return (A)this; + } + + public A removeMatchingFromSharedCounters(Predicate predicate) { + if (sharedCounters == null) return (A) this; + final Iterator each = sharedCounters.iterator(); + final List visitables = _visitables.get("sharedCounters"); + while (each.hasNext()) { + V1beta1CounterSetBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A)this; + } + + public List buildSharedCounters() { + return this.sharedCounters != null ? build(sharedCounters) : null; + } + + public V1beta1CounterSet buildSharedCounter(int index) { + return this.sharedCounters.get(index).build(); + } + + public V1beta1CounterSet buildFirstSharedCounter() { + return this.sharedCounters.get(0).build(); + } + + public V1beta1CounterSet buildLastSharedCounter() { + return this.sharedCounters.get(sharedCounters.size() - 1).build(); + } + + public V1beta1CounterSet buildMatchingSharedCounter(Predicate predicate) { + for (V1beta1CounterSetBuilder item : sharedCounters) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; + } + + public boolean hasMatchingSharedCounter(Predicate predicate) { + for (V1beta1CounterSetBuilder item : sharedCounters) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public A withSharedCounters(List sharedCounters) { + if (this.sharedCounters != null) { + this._visitables.get("sharedCounters").clear(); + } + if (sharedCounters != null) { + this.sharedCounters = new ArrayList(); + for (V1beta1CounterSet item : sharedCounters) { + this.addToSharedCounters(item); + } + } else { + this.sharedCounters = null; + } + return (A) this; + } + + public A withSharedCounters(io.kubernetes.client.openapi.models.V1beta1CounterSet... sharedCounters) { + if (this.sharedCounters != null) { + this.sharedCounters.clear(); + _visitables.remove("sharedCounters"); + } + if (sharedCounters != null) { + for (V1beta1CounterSet item : sharedCounters) { + this.addToSharedCounters(item); + } + } + return (A) this; + } + + public boolean hasSharedCounters() { + return this.sharedCounters != null && !this.sharedCounters.isEmpty(); + } + + public SharedCountersNested addNewSharedCounter() { + return new SharedCountersNested(-1, null); + } + + public SharedCountersNested addNewSharedCounterLike(V1beta1CounterSet item) { + return new SharedCountersNested(-1, item); + } + + public SharedCountersNested setNewSharedCounterLike(int index,V1beta1CounterSet item) { + return new SharedCountersNested(index, item); + } + + public SharedCountersNested editSharedCounter(int index) { + if (sharedCounters.size() <= index) throw new RuntimeException("Can't edit sharedCounters. Index exceeds size."); + return setNewSharedCounterLike(index, buildSharedCounter(index)); + } + + public SharedCountersNested editFirstSharedCounter() { + if (sharedCounters.size() == 0) throw new RuntimeException("Can't edit first sharedCounters. The list is empty."); + return setNewSharedCounterLike(0, buildSharedCounter(0)); + } + + public SharedCountersNested editLastSharedCounter() { + int index = sharedCounters.size() - 1; + if (index < 0) throw new RuntimeException("Can't edit last sharedCounters. The list is empty."); + return setNewSharedCounterLike(index, buildSharedCounter(index)); + } + + public SharedCountersNested editMatchingSharedCounter(Predicate predicate) { + int index = -1; + for (int i=0;i extends V1beta1DeviceFluent> implements Nested{ + DevicesNested(int index,V1beta1Device item) { + this.index = index; + this.builder = new V1beta1DeviceBuilder(this, item); + } + V1beta1DeviceBuilder builder; + int index; + + public N and() { + return (N) V1beta1ResourceSliceSpecFluent.this.setToDevices(index,builder.build()); + } + + public N endDevice() { + return and(); + } + + + } + public class NodeSelectorNested extends V1NodeSelectorFluent> implements Nested{ + NodeSelectorNested(V1NodeSelector item) { + this.builder = new V1NodeSelectorBuilder(this, item); + } + V1NodeSelectorBuilder builder; + + public N and() { + return (N) V1beta1ResourceSliceSpecFluent.this.withNodeSelector(builder.build()); + } + + public N endNodeSelector() { + return and(); + } + + + } + public class PoolNested extends V1beta1ResourcePoolFluent> implements Nested{ + PoolNested(V1beta1ResourcePool item) { + this.builder = new V1beta1ResourcePoolBuilder(this, item); + } + V1beta1ResourcePoolBuilder builder; + + public N and() { + return (N) V1beta1ResourceSliceSpecFluent.this.withPool(builder.build()); + } + + public N endPool() { + return and(); + } + + + } + public class SharedCountersNested extends V1beta1CounterSetFluent> implements Nested{ + SharedCountersNested(int index,V1beta1CounterSet item) { + this.index = index; + this.builder = new V1beta1CounterSetBuilder(this, item); + } + V1beta1CounterSetBuilder builder; + int index; + + public N and() { + return (N) V1beta1ResourceSliceSpecFluent.this.setToSharedCounters(index,builder.build()); + } + + public N endSharedCounter() { + return and(); + } + + + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1SelfSubjectReviewBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1SelfSubjectReviewBuilder.java deleted file mode 100644 index 71a4fe4577..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1SelfSubjectReviewBuilder.java +++ /dev/null @@ -1,34 +0,0 @@ -package io.kubernetes.client.openapi.models; - -import io.kubernetes.client.fluent.VisitableBuilder; -public class V1beta1SelfSubjectReviewBuilder extends V1beta1SelfSubjectReviewFluent implements VisitableBuilder{ - public V1beta1SelfSubjectReviewBuilder() { - this(new V1beta1SelfSubjectReview()); - } - - public V1beta1SelfSubjectReviewBuilder(V1beta1SelfSubjectReviewFluent fluent) { - this(fluent, new V1beta1SelfSubjectReview()); - } - - public V1beta1SelfSubjectReviewBuilder(V1beta1SelfSubjectReviewFluent fluent,V1beta1SelfSubjectReview instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - - public V1beta1SelfSubjectReviewBuilder(V1beta1SelfSubjectReview instance) { - this.fluent = this; - this.copyInstance(instance); - } - V1beta1SelfSubjectReviewFluent fluent; - - public V1beta1SelfSubjectReview build() { - V1beta1SelfSubjectReview buildable = new V1beta1SelfSubjectReview(); - buildable.setApiVersion(fluent.getApiVersion()); - buildable.setKind(fluent.getKind()); - buildable.setMetadata(fluent.buildMetadata()); - buildable.setStatus(fluent.buildStatus()); - return buildable; - } - - -} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1SelfSubjectReviewFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1SelfSubjectReviewFluent.java deleted file mode 100644 index 64230a8b07..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1SelfSubjectReviewFluent.java +++ /dev/null @@ -1,200 +0,0 @@ -package io.kubernetes.client.openapi.models; - -import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.Nested; -import java.lang.String; -import io.kubernetes.client.fluent.BaseFluent; -import java.lang.Object; - -/** - * Generated - */ -@SuppressWarnings("unchecked") -public class V1beta1SelfSubjectReviewFluent> extends BaseFluent{ - public V1beta1SelfSubjectReviewFluent() { - } - - public V1beta1SelfSubjectReviewFluent(V1beta1SelfSubjectReview instance) { - this.copyInstance(instance); - } - private String apiVersion; - private String kind; - private V1ObjectMetaBuilder metadata; - private V1beta1SelfSubjectReviewStatusBuilder status; - - protected void copyInstance(V1beta1SelfSubjectReview instance) { - instance = (instance != null ? instance : new V1beta1SelfSubjectReview()); - if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withKind(instance.getKind()); - this.withMetadata(instance.getMetadata()); - this.withStatus(instance.getStatus()); - } - } - - public String getApiVersion() { - return this.apiVersion; - } - - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; - } - - public boolean hasApiVersion() { - return this.apiVersion != null; - } - - public String getKind() { - return this.kind; - } - - public A withKind(String kind) { - this.kind = kind; - return (A) this; - } - - public boolean hasKind() { - return this.kind != null; - } - - public V1ObjectMeta buildMetadata() { - return this.metadata != null ? this.metadata.build() : null; - } - - public A withMetadata(V1ObjectMeta metadata) { - this._visitables.remove("metadata"); - if (metadata != null) { - this.metadata = new V1ObjectMetaBuilder(metadata); - this._visitables.get("metadata").add(this.metadata); - } else { - this.metadata = null; - this._visitables.get("metadata").remove(this.metadata); - } - return (A) this; - } - - public boolean hasMetadata() { - return this.metadata != null; - } - - public MetadataNested withNewMetadata() { - return new MetadataNested(null); - } - - public MetadataNested withNewMetadataLike(V1ObjectMeta item) { - return new MetadataNested(item); - } - - public MetadataNested editMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(null)); - } - - public MetadataNested editOrNewMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(new V1ObjectMetaBuilder().build())); - } - - public MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(item)); - } - - public V1beta1SelfSubjectReviewStatus buildStatus() { - return this.status != null ? this.status.build() : null; - } - - public A withStatus(V1beta1SelfSubjectReviewStatus status) { - this._visitables.remove("status"); - if (status != null) { - this.status = new V1beta1SelfSubjectReviewStatusBuilder(status); - this._visitables.get("status").add(this.status); - } else { - this.status = null; - this._visitables.get("status").remove(this.status); - } - return (A) this; - } - - public boolean hasStatus() { - return this.status != null; - } - - public StatusNested withNewStatus() { - return new StatusNested(null); - } - - public StatusNested withNewStatusLike(V1beta1SelfSubjectReviewStatus item) { - return new StatusNested(item); - } - - public StatusNested editStatus() { - return withNewStatusLike(java.util.Optional.ofNullable(buildStatus()).orElse(null)); - } - - public StatusNested editOrNewStatus() { - return withNewStatusLike(java.util.Optional.ofNullable(buildStatus()).orElse(new V1beta1SelfSubjectReviewStatusBuilder().build())); - } - - public StatusNested editOrNewStatusLike(V1beta1SelfSubjectReviewStatus item) { - return withNewStatusLike(java.util.Optional.ofNullable(buildStatus()).orElse(item)); - } - - public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; - V1beta1SelfSubjectReviewFluent that = (V1beta1SelfSubjectReviewFluent) o; - if (!java.util.Objects.equals(apiVersion, that.apiVersion)) return false; - if (!java.util.Objects.equals(kind, that.kind)) return false; - if (!java.util.Objects.equals(metadata, that.metadata)) return false; - if (!java.util.Objects.equals(status, that.status)) return false; - return true; - } - - public int hashCode() { - return java.util.Objects.hash(apiVersion, kind, metadata, status, super.hashCode()); - } - - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("{"); - if (apiVersion != null) { sb.append("apiVersion:"); sb.append(apiVersion + ","); } - if (kind != null) { sb.append("kind:"); sb.append(kind + ","); } - if (metadata != null) { sb.append("metadata:"); sb.append(metadata + ","); } - if (status != null) { sb.append("status:"); sb.append(status); } - sb.append("}"); - return sb.toString(); - } - public class MetadataNested extends V1ObjectMetaFluent> implements Nested{ - MetadataNested(V1ObjectMeta item) { - this.builder = new V1ObjectMetaBuilder(this, item); - } - V1ObjectMetaBuilder builder; - - public N and() { - return (N) V1beta1SelfSubjectReviewFluent.this.withMetadata(builder.build()); - } - - public N endMetadata() { - return and(); - } - - - } - public class StatusNested extends V1beta1SelfSubjectReviewStatusFluent> implements Nested{ - StatusNested(V1beta1SelfSubjectReviewStatus item) { - this.builder = new V1beta1SelfSubjectReviewStatusBuilder(this, item); - } - V1beta1SelfSubjectReviewStatusBuilder builder; - - public N and() { - return (N) V1beta1SelfSubjectReviewFluent.this.withStatus(builder.build()); - } - - public N endStatus() { - return and(); - } - - - } - -} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1SelfSubjectReviewStatusBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1SelfSubjectReviewStatusBuilder.java deleted file mode 100644 index 79875333b0..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1SelfSubjectReviewStatusBuilder.java +++ /dev/null @@ -1,31 +0,0 @@ -package io.kubernetes.client.openapi.models; - -import io.kubernetes.client.fluent.VisitableBuilder; -public class V1beta1SelfSubjectReviewStatusBuilder extends V1beta1SelfSubjectReviewStatusFluent implements VisitableBuilder{ - public V1beta1SelfSubjectReviewStatusBuilder() { - this(new V1beta1SelfSubjectReviewStatus()); - } - - public V1beta1SelfSubjectReviewStatusBuilder(V1beta1SelfSubjectReviewStatusFluent fluent) { - this(fluent, new V1beta1SelfSubjectReviewStatus()); - } - - public V1beta1SelfSubjectReviewStatusBuilder(V1beta1SelfSubjectReviewStatusFluent fluent,V1beta1SelfSubjectReviewStatus instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - - public V1beta1SelfSubjectReviewStatusBuilder(V1beta1SelfSubjectReviewStatus instance) { - this.fluent = this; - this.copyInstance(instance); - } - V1beta1SelfSubjectReviewStatusFluent fluent; - - public V1beta1SelfSubjectReviewStatus build() { - V1beta1SelfSubjectReviewStatus buildable = new V1beta1SelfSubjectReviewStatus(); - buildable.setUserInfo(fluent.buildUserInfo()); - return buildable; - } - - -} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1SelfSubjectReviewStatusFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1SelfSubjectReviewStatusFluent.java deleted file mode 100644 index a608f18e16..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1SelfSubjectReviewStatusFluent.java +++ /dev/null @@ -1,106 +0,0 @@ -package io.kubernetes.client.openapi.models; - -import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.BaseFluent; -import io.kubernetes.client.fluent.Nested; -import java.lang.Object; -import java.lang.String; - -/** - * Generated - */ -@SuppressWarnings("unchecked") -public class V1beta1SelfSubjectReviewStatusFluent> extends BaseFluent{ - public V1beta1SelfSubjectReviewStatusFluent() { - } - - public V1beta1SelfSubjectReviewStatusFluent(V1beta1SelfSubjectReviewStatus instance) { - this.copyInstance(instance); - } - private V1UserInfoBuilder userInfo; - - protected void copyInstance(V1beta1SelfSubjectReviewStatus instance) { - instance = (instance != null ? instance : new V1beta1SelfSubjectReviewStatus()); - if (instance != null) { - this.withUserInfo(instance.getUserInfo()); - } - } - - public V1UserInfo buildUserInfo() { - return this.userInfo != null ? this.userInfo.build() : null; - } - - public A withUserInfo(V1UserInfo userInfo) { - this._visitables.remove("userInfo"); - if (userInfo != null) { - this.userInfo = new V1UserInfoBuilder(userInfo); - this._visitables.get("userInfo").add(this.userInfo); - } else { - this.userInfo = null; - this._visitables.get("userInfo").remove(this.userInfo); - } - return (A) this; - } - - public boolean hasUserInfo() { - return this.userInfo != null; - } - - public UserInfoNested withNewUserInfo() { - return new UserInfoNested(null); - } - - public UserInfoNested withNewUserInfoLike(V1UserInfo item) { - return new UserInfoNested(item); - } - - public UserInfoNested editUserInfo() { - return withNewUserInfoLike(java.util.Optional.ofNullable(buildUserInfo()).orElse(null)); - } - - public UserInfoNested editOrNewUserInfo() { - return withNewUserInfoLike(java.util.Optional.ofNullable(buildUserInfo()).orElse(new V1UserInfoBuilder().build())); - } - - public UserInfoNested editOrNewUserInfoLike(V1UserInfo item) { - return withNewUserInfoLike(java.util.Optional.ofNullable(buildUserInfo()).orElse(item)); - } - - public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; - V1beta1SelfSubjectReviewStatusFluent that = (V1beta1SelfSubjectReviewStatusFluent) o; - if (!java.util.Objects.equals(userInfo, that.userInfo)) return false; - return true; - } - - public int hashCode() { - return java.util.Objects.hash(userInfo, super.hashCode()); - } - - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("{"); - if (userInfo != null) { sb.append("userInfo:"); sb.append(userInfo); } - sb.append("}"); - return sb.toString(); - } - public class UserInfoNested extends V1UserInfoFluent> implements Nested{ - UserInfoNested(V1UserInfo item) { - this.builder = new V1UserInfoBuilder(this, item); - } - V1UserInfoBuilder builder; - - public N and() { - return (N) V1beta1SelfSubjectReviewStatusFluent.this.withUserInfo(builder.build()); - } - - public N endUserInfo() { - return and(); - } - - - } - -} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ServiceCIDRBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ServiceCIDRBuilder.java new file mode 100644 index 0000000000..1dc6f9e033 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ServiceCIDRBuilder.java @@ -0,0 +1,35 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +public class V1beta1ServiceCIDRBuilder extends V1beta1ServiceCIDRFluent implements VisitableBuilder{ + public V1beta1ServiceCIDRBuilder() { + this(new V1beta1ServiceCIDR()); + } + + public V1beta1ServiceCIDRBuilder(V1beta1ServiceCIDRFluent fluent) { + this(fluent, new V1beta1ServiceCIDR()); + } + + public V1beta1ServiceCIDRBuilder(V1beta1ServiceCIDRFluent fluent,V1beta1ServiceCIDR instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1beta1ServiceCIDRBuilder(V1beta1ServiceCIDR instance) { + this.fluent = this; + this.copyInstance(instance); + } + V1beta1ServiceCIDRFluent fluent; + + public V1beta1ServiceCIDR build() { + V1beta1ServiceCIDR buildable = new V1beta1ServiceCIDR(); + buildable.setApiVersion(fluent.getApiVersion()); + buildable.setKind(fluent.getKind()); + buildable.setMetadata(fluent.buildMetadata()); + buildable.setSpec(fluent.buildSpec()); + buildable.setStatus(fluent.buildStatus()); + return buildable; + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ServiceCIDRFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ServiceCIDRFluent.java new file mode 100644 index 0000000000..abaad1a5a6 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ServiceCIDRFluent.java @@ -0,0 +1,260 @@ +package io.kubernetes.client.openapi.models; + +import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.Nested; +import java.lang.String; +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Object; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1beta1ServiceCIDRFluent> extends BaseFluent{ + public V1beta1ServiceCIDRFluent() { + } + + public V1beta1ServiceCIDRFluent(V1beta1ServiceCIDR instance) { + this.copyInstance(instance); + } + private String apiVersion; + private String kind; + private V1ObjectMetaBuilder metadata; + private V1beta1ServiceCIDRSpecBuilder spec; + private V1beta1ServiceCIDRStatusBuilder status; + + protected void copyInstance(V1beta1ServiceCIDR instance) { + instance = (instance != null ? instance : new V1beta1ServiceCIDR()); + if (instance != null) { + this.withApiVersion(instance.getApiVersion()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); + this.withSpec(instance.getSpec()); + this.withStatus(instance.getStatus()); + } + } + + public String getApiVersion() { + return this.apiVersion; + } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + + public boolean hasApiVersion() { + return this.apiVersion != null; + } + + public String getKind() { + return this.kind; + } + + public A withKind(String kind) { + this.kind = kind; + return (A) this; + } + + public boolean hasKind() { + return this.kind != null; + } + + public V1ObjectMeta buildMetadata() { + return this.metadata != null ? this.metadata.build() : null; + } + + public A withMetadata(V1ObjectMeta metadata) { + this._visitables.remove("metadata"); + if (metadata != null) { + this.metadata = new V1ObjectMetaBuilder(metadata); + this._visitables.get("metadata").add(this.metadata); + } else { + this.metadata = null; + this._visitables.get("metadata").remove(this.metadata); + } + return (A) this; + } + + public boolean hasMetadata() { + return this.metadata != null; + } + + public MetadataNested withNewMetadata() { + return new MetadataNested(null); + } + + public MetadataNested withNewMetadataLike(V1ObjectMeta item) { + return new MetadataNested(item); + } + + public MetadataNested editMetadata() { + return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(null)); + } + + public MetadataNested editOrNewMetadata() { + return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(new V1ObjectMetaBuilder().build())); + } + + public MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { + return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(item)); + } + + public V1beta1ServiceCIDRSpec buildSpec() { + return this.spec != null ? this.spec.build() : null; + } + + public A withSpec(V1beta1ServiceCIDRSpec spec) { + this._visitables.remove("spec"); + if (spec != null) { + this.spec = new V1beta1ServiceCIDRSpecBuilder(spec); + this._visitables.get("spec").add(this.spec); + } else { + this.spec = null; + this._visitables.get("spec").remove(this.spec); + } + return (A) this; + } + + public boolean hasSpec() { + return this.spec != null; + } + + public SpecNested withNewSpec() { + return new SpecNested(null); + } + + public SpecNested withNewSpecLike(V1beta1ServiceCIDRSpec item) { + return new SpecNested(item); + } + + public SpecNested editSpec() { + return withNewSpecLike(java.util.Optional.ofNullable(buildSpec()).orElse(null)); + } + + public SpecNested editOrNewSpec() { + return withNewSpecLike(java.util.Optional.ofNullable(buildSpec()).orElse(new V1beta1ServiceCIDRSpecBuilder().build())); + } + + public SpecNested editOrNewSpecLike(V1beta1ServiceCIDRSpec item) { + return withNewSpecLike(java.util.Optional.ofNullable(buildSpec()).orElse(item)); + } + + public V1beta1ServiceCIDRStatus buildStatus() { + return this.status != null ? this.status.build() : null; + } + + public A withStatus(V1beta1ServiceCIDRStatus status) { + this._visitables.remove("status"); + if (status != null) { + this.status = new V1beta1ServiceCIDRStatusBuilder(status); + this._visitables.get("status").add(this.status); + } else { + this.status = null; + this._visitables.get("status").remove(this.status); + } + return (A) this; + } + + public boolean hasStatus() { + return this.status != null; + } + + public StatusNested withNewStatus() { + return new StatusNested(null); + } + + public StatusNested withNewStatusLike(V1beta1ServiceCIDRStatus item) { + return new StatusNested(item); + } + + public StatusNested editStatus() { + return withNewStatusLike(java.util.Optional.ofNullable(buildStatus()).orElse(null)); + } + + public StatusNested editOrNewStatus() { + return withNewStatusLike(java.util.Optional.ofNullable(buildStatus()).orElse(new V1beta1ServiceCIDRStatusBuilder().build())); + } + + public StatusNested editOrNewStatusLike(V1beta1ServiceCIDRStatus item) { + return withNewStatusLike(java.util.Optional.ofNullable(buildStatus()).orElse(item)); + } + + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + if (!super.equals(o)) return false; + V1beta1ServiceCIDRFluent that = (V1beta1ServiceCIDRFluent) o; + if (!java.util.Objects.equals(apiVersion, that.apiVersion)) return false; + if (!java.util.Objects.equals(kind, that.kind)) return false; + if (!java.util.Objects.equals(metadata, that.metadata)) return false; + if (!java.util.Objects.equals(spec, that.spec)) return false; + if (!java.util.Objects.equals(status, that.status)) return false; + return true; + } + + public int hashCode() { + return java.util.Objects.hash(apiVersion, kind, metadata, spec, status, super.hashCode()); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (apiVersion != null) { sb.append("apiVersion:"); sb.append(apiVersion + ","); } + if (kind != null) { sb.append("kind:"); sb.append(kind + ","); } + if (metadata != null) { sb.append("metadata:"); sb.append(metadata + ","); } + if (spec != null) { sb.append("spec:"); sb.append(spec + ","); } + if (status != null) { sb.append("status:"); sb.append(status); } + sb.append("}"); + return sb.toString(); + } + public class MetadataNested extends V1ObjectMetaFluent> implements Nested{ + MetadataNested(V1ObjectMeta item) { + this.builder = new V1ObjectMetaBuilder(this, item); + } + V1ObjectMetaBuilder builder; + + public N and() { + return (N) V1beta1ServiceCIDRFluent.this.withMetadata(builder.build()); + } + + public N endMetadata() { + return and(); + } + + + } + public class SpecNested extends V1beta1ServiceCIDRSpecFluent> implements Nested{ + SpecNested(V1beta1ServiceCIDRSpec item) { + this.builder = new V1beta1ServiceCIDRSpecBuilder(this, item); + } + V1beta1ServiceCIDRSpecBuilder builder; + + public N and() { + return (N) V1beta1ServiceCIDRFluent.this.withSpec(builder.build()); + } + + public N endSpec() { + return and(); + } + + + } + public class StatusNested extends V1beta1ServiceCIDRStatusFluent> implements Nested{ + StatusNested(V1beta1ServiceCIDRStatus item) { + this.builder = new V1beta1ServiceCIDRStatusBuilder(this, item); + } + V1beta1ServiceCIDRStatusBuilder builder; + + public N and() { + return (N) V1beta1ServiceCIDRFluent.this.withStatus(builder.build()); + } + + public N endStatus() { + return and(); + } + + + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ServiceCIDRListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ServiceCIDRListBuilder.java new file mode 100644 index 0000000000..d9a1ac973f --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ServiceCIDRListBuilder.java @@ -0,0 +1,34 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +public class V1beta1ServiceCIDRListBuilder extends V1beta1ServiceCIDRListFluent implements VisitableBuilder{ + public V1beta1ServiceCIDRListBuilder() { + this(new V1beta1ServiceCIDRList()); + } + + public V1beta1ServiceCIDRListBuilder(V1beta1ServiceCIDRListFluent fluent) { + this(fluent, new V1beta1ServiceCIDRList()); + } + + public V1beta1ServiceCIDRListBuilder(V1beta1ServiceCIDRListFluent fluent,V1beta1ServiceCIDRList instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1beta1ServiceCIDRListBuilder(V1beta1ServiceCIDRList instance) { + this.fluent = this; + this.copyInstance(instance); + } + V1beta1ServiceCIDRListFluent fluent; + + public V1beta1ServiceCIDRList build() { + V1beta1ServiceCIDRList buildable = new V1beta1ServiceCIDRList(); + buildable.setApiVersion(fluent.getApiVersion()); + buildable.setItems(fluent.buildItems()); + buildable.setKind(fluent.getKind()); + buildable.setMetadata(fluent.buildMetadata()); + return buildable; + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ServiceCIDRListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ServiceCIDRListFluent.java new file mode 100644 index 0000000000..820632541e --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ServiceCIDRListFluent.java @@ -0,0 +1,331 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.Nested; +import java.util.ArrayList; +import java.lang.String; +import java.util.function.Predicate; +import io.kubernetes.client.fluent.BaseFluent; +import java.util.Iterator; +import java.util.Collection; +import java.lang.Object; +import java.util.List; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1beta1ServiceCIDRListFluent> extends BaseFluent{ + public V1beta1ServiceCIDRListFluent() { + } + + public V1beta1ServiceCIDRListFluent(V1beta1ServiceCIDRList instance) { + this.copyInstance(instance); + } + private String apiVersion; + private ArrayList items; + private String kind; + private V1ListMetaBuilder metadata; + + protected void copyInstance(V1beta1ServiceCIDRList instance) { + instance = (instance != null ? instance : new V1beta1ServiceCIDRList()); + if (instance != null) { + this.withApiVersion(instance.getApiVersion()); + this.withItems(instance.getItems()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); + } + } + + public String getApiVersion() { + return this.apiVersion; + } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + + public boolean hasApiVersion() { + return this.apiVersion != null; + } + + public A addToItems(int index,V1beta1ServiceCIDR item) { + if (this.items == null) {this.items = new ArrayList();} + V1beta1ServiceCIDRBuilder builder = new V1beta1ServiceCIDRBuilder(item); + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.add(index, builder); + } + return (A)this; + } + + public A setToItems(int index,V1beta1ServiceCIDR item) { + if (this.items == null) {this.items = new ArrayList();} + V1beta1ServiceCIDRBuilder builder = new V1beta1ServiceCIDRBuilder(item); + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.set(index, builder); + } + return (A)this; + } + + public A addToItems(io.kubernetes.client.openapi.models.V1beta1ServiceCIDR... items) { + if (this.items == null) {this.items = new ArrayList();} + for (V1beta1ServiceCIDR item : items) {V1beta1ServiceCIDRBuilder builder = new V1beta1ServiceCIDRBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; + } + + public A addAllToItems(Collection items) { + if (this.items == null) {this.items = new ArrayList();} + for (V1beta1ServiceCIDR item : items) {V1beta1ServiceCIDRBuilder builder = new V1beta1ServiceCIDRBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; + } + + public A removeFromItems(io.kubernetes.client.openapi.models.V1beta1ServiceCIDR... items) { + if (this.items == null) return (A)this; + for (V1beta1ServiceCIDR item : items) {V1beta1ServiceCIDRBuilder builder = new V1beta1ServiceCIDRBuilder(item);_visitables.get("items").remove(builder); this.items.remove(builder);} return (A)this; + } + + public A removeAllFromItems(Collection items) { + if (this.items == null) return (A)this; + for (V1beta1ServiceCIDR item : items) {V1beta1ServiceCIDRBuilder builder = new V1beta1ServiceCIDRBuilder(item);_visitables.get("items").remove(builder); this.items.remove(builder);} return (A)this; + } + + public A removeMatchingFromItems(Predicate predicate) { + if (items == null) return (A) this; + final Iterator each = items.iterator(); + final List visitables = _visitables.get("items"); + while (each.hasNext()) { + V1beta1ServiceCIDRBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A)this; + } + + public List buildItems() { + return this.items != null ? build(items) : null; + } + + public V1beta1ServiceCIDR buildItem(int index) { + return this.items.get(index).build(); + } + + public V1beta1ServiceCIDR buildFirstItem() { + return this.items.get(0).build(); + } + + public V1beta1ServiceCIDR buildLastItem() { + return this.items.get(items.size() - 1).build(); + } + + public V1beta1ServiceCIDR buildMatchingItem(Predicate predicate) { + for (V1beta1ServiceCIDRBuilder item : items) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; + } + + public boolean hasMatchingItem(Predicate predicate) { + for (V1beta1ServiceCIDRBuilder item : items) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public A withItems(List items) { + if (this.items != null) { + this._visitables.get("items").clear(); + } + if (items != null) { + this.items = new ArrayList(); + for (V1beta1ServiceCIDR item : items) { + this.addToItems(item); + } + } else { + this.items = null; + } + return (A) this; + } + + public A withItems(io.kubernetes.client.openapi.models.V1beta1ServiceCIDR... items) { + if (this.items != null) { + this.items.clear(); + _visitables.remove("items"); + } + if (items != null) { + for (V1beta1ServiceCIDR item : items) { + this.addToItems(item); + } + } + return (A) this; + } + + public boolean hasItems() { + return this.items != null && !this.items.isEmpty(); + } + + public ItemsNested addNewItem() { + return new ItemsNested(-1, null); + } + + public ItemsNested addNewItemLike(V1beta1ServiceCIDR item) { + return new ItemsNested(-1, item); + } + + public ItemsNested setNewItemLike(int index,V1beta1ServiceCIDR item) { + return new ItemsNested(index, item); + } + + public ItemsNested editItem(int index) { + if (items.size() <= index) throw new RuntimeException("Can't edit items. Index exceeds size."); + return setNewItemLike(index, buildItem(index)); + } + + public ItemsNested editFirstItem() { + if (items.size() == 0) throw new RuntimeException("Can't edit first items. The list is empty."); + return setNewItemLike(0, buildItem(0)); + } + + public ItemsNested editLastItem() { + int index = items.size() - 1; + if (index < 0) throw new RuntimeException("Can't edit last items. The list is empty."); + return setNewItemLike(index, buildItem(index)); + } + + public ItemsNested editMatchingItem(Predicate predicate) { + int index = -1; + for (int i=0;i withNewMetadata() { + return new MetadataNested(null); + } + + public MetadataNested withNewMetadataLike(V1ListMeta item) { + return new MetadataNested(item); + } + + public MetadataNested editMetadata() { + return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(null)); + } + + public MetadataNested editOrNewMetadata() { + return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(new V1ListMetaBuilder().build())); + } + + public MetadataNested editOrNewMetadataLike(V1ListMeta item) { + return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(item)); + } + + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + if (!super.equals(o)) return false; + V1beta1ServiceCIDRListFluent that = (V1beta1ServiceCIDRListFluent) o; + if (!java.util.Objects.equals(apiVersion, that.apiVersion)) return false; + if (!java.util.Objects.equals(items, that.items)) return false; + if (!java.util.Objects.equals(kind, that.kind)) return false; + if (!java.util.Objects.equals(metadata, that.metadata)) return false; + return true; + } + + public int hashCode() { + return java.util.Objects.hash(apiVersion, items, kind, metadata, super.hashCode()); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (apiVersion != null) { sb.append("apiVersion:"); sb.append(apiVersion + ","); } + if (items != null && !items.isEmpty()) { sb.append("items:"); sb.append(items + ","); } + if (kind != null) { sb.append("kind:"); sb.append(kind + ","); } + if (metadata != null) { sb.append("metadata:"); sb.append(metadata); } + sb.append("}"); + return sb.toString(); + } + public class ItemsNested extends V1beta1ServiceCIDRFluent> implements Nested{ + ItemsNested(int index,V1beta1ServiceCIDR item) { + this.index = index; + this.builder = new V1beta1ServiceCIDRBuilder(this, item); + } + V1beta1ServiceCIDRBuilder builder; + int index; + + public N and() { + return (N) V1beta1ServiceCIDRListFluent.this.setToItems(index,builder.build()); + } + + public N endItem() { + return and(); + } + + + } + public class MetadataNested extends V1ListMetaFluent> implements Nested{ + MetadataNested(V1ListMeta item) { + this.builder = new V1ListMetaBuilder(this, item); + } + V1ListMetaBuilder builder; + + public N and() { + return (N) V1beta1ServiceCIDRListFluent.this.withMetadata(builder.build()); + } + + public N endMetadata() { + return and(); + } + + + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ServiceCIDRSpecBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ServiceCIDRSpecBuilder.java new file mode 100644 index 0000000000..da4f32f552 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ServiceCIDRSpecBuilder.java @@ -0,0 +1,31 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +public class V1beta1ServiceCIDRSpecBuilder extends V1beta1ServiceCIDRSpecFluent implements VisitableBuilder{ + public V1beta1ServiceCIDRSpecBuilder() { + this(new V1beta1ServiceCIDRSpec()); + } + + public V1beta1ServiceCIDRSpecBuilder(V1beta1ServiceCIDRSpecFluent fluent) { + this(fluent, new V1beta1ServiceCIDRSpec()); + } + + public V1beta1ServiceCIDRSpecBuilder(V1beta1ServiceCIDRSpecFluent fluent,V1beta1ServiceCIDRSpec instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1beta1ServiceCIDRSpecBuilder(V1beta1ServiceCIDRSpec instance) { + this.fluent = this; + this.copyInstance(instance); + } + V1beta1ServiceCIDRSpecFluent fluent; + + public V1beta1ServiceCIDRSpec build() { + V1beta1ServiceCIDRSpec buildable = new V1beta1ServiceCIDRSpec(); + buildable.setCidrs(fluent.getCidrs()); + return buildable; + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ServiceCIDRSpecFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ServiceCIDRSpecFluent.java new file mode 100644 index 0000000000..f4ac442be5 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ServiceCIDRSpecFluent.java @@ -0,0 +1,148 @@ +package io.kubernetes.client.openapi.models; + +import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; +import java.util.ArrayList; +import java.util.Collection; +import java.lang.Object; +import java.util.List; +import java.lang.String; +import java.util.function.Predicate; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1beta1ServiceCIDRSpecFluent> extends BaseFluent{ + public V1beta1ServiceCIDRSpecFluent() { + } + + public V1beta1ServiceCIDRSpecFluent(V1beta1ServiceCIDRSpec instance) { + this.copyInstance(instance); + } + private List cidrs; + + protected void copyInstance(V1beta1ServiceCIDRSpec instance) { + instance = (instance != null ? instance : new V1beta1ServiceCIDRSpec()); + if (instance != null) { + this.withCidrs(instance.getCidrs()); + } + } + + public A addToCidrs(int index,String item) { + if (this.cidrs == null) {this.cidrs = new ArrayList();} + this.cidrs.add(index, item); + return (A)this; + } + + public A setToCidrs(int index,String item) { + if (this.cidrs == null) {this.cidrs = new ArrayList();} + this.cidrs.set(index, item); return (A)this; + } + + public A addToCidrs(java.lang.String... items) { + if (this.cidrs == null) {this.cidrs = new ArrayList();} + for (String item : items) {this.cidrs.add(item);} return (A)this; + } + + public A addAllToCidrs(Collection items) { + if (this.cidrs == null) {this.cidrs = new ArrayList();} + for (String item : items) {this.cidrs.add(item);} return (A)this; + } + + public A removeFromCidrs(java.lang.String... items) { + if (this.cidrs == null) return (A)this; + for (String item : items) { this.cidrs.remove(item);} return (A)this; + } + + public A removeAllFromCidrs(Collection items) { + if (this.cidrs == null) return (A)this; + for (String item : items) { this.cidrs.remove(item);} return (A)this; + } + + public List getCidrs() { + return this.cidrs; + } + + public String getCidr(int index) { + return this.cidrs.get(index); + } + + public String getFirstCidr() { + return this.cidrs.get(0); + } + + public String getLastCidr() { + return this.cidrs.get(cidrs.size() - 1); + } + + public String getMatchingCidr(Predicate predicate) { + for (String item : cidrs) { + if (predicate.test(item)) { + return item; + } + } + return null; + } + + public boolean hasMatchingCidr(Predicate predicate) { + for (String item : cidrs) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public A withCidrs(List cidrs) { + if (cidrs != null) { + this.cidrs = new ArrayList(); + for (String item : cidrs) { + this.addToCidrs(item); + } + } else { + this.cidrs = null; + } + return (A) this; + } + + public A withCidrs(java.lang.String... cidrs) { + if (this.cidrs != null) { + this.cidrs.clear(); + _visitables.remove("cidrs"); + } + if (cidrs != null) { + for (String item : cidrs) { + this.addToCidrs(item); + } + } + return (A) this; + } + + public boolean hasCidrs() { + return this.cidrs != null && !this.cidrs.isEmpty(); + } + + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + if (!super.equals(o)) return false; + V1beta1ServiceCIDRSpecFluent that = (V1beta1ServiceCIDRSpecFluent) o; + if (!java.util.Objects.equals(cidrs, that.cidrs)) return false; + return true; + } + + public int hashCode() { + return java.util.Objects.hash(cidrs, super.hashCode()); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (cidrs != null && !cidrs.isEmpty()) { sb.append("cidrs:"); sb.append(cidrs); } + sb.append("}"); + return sb.toString(); + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ServiceCIDRStatusBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ServiceCIDRStatusBuilder.java new file mode 100644 index 0000000000..1aeaff78a7 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ServiceCIDRStatusBuilder.java @@ -0,0 +1,31 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +public class V1beta1ServiceCIDRStatusBuilder extends V1beta1ServiceCIDRStatusFluent implements VisitableBuilder{ + public V1beta1ServiceCIDRStatusBuilder() { + this(new V1beta1ServiceCIDRStatus()); + } + + public V1beta1ServiceCIDRStatusBuilder(V1beta1ServiceCIDRStatusFluent fluent) { + this(fluent, new V1beta1ServiceCIDRStatus()); + } + + public V1beta1ServiceCIDRStatusBuilder(V1beta1ServiceCIDRStatusFluent fluent,V1beta1ServiceCIDRStatus instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1beta1ServiceCIDRStatusBuilder(V1beta1ServiceCIDRStatus instance) { + this.fluent = this; + this.copyInstance(instance); + } + V1beta1ServiceCIDRStatusFluent fluent; + + public V1beta1ServiceCIDRStatus build() { + V1beta1ServiceCIDRStatus buildable = new V1beta1ServiceCIDRStatus(); + buildable.setConditions(fluent.buildConditions()); + return buildable; + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ServiceCIDRStatusFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ServiceCIDRStatusFluent.java new file mode 100644 index 0000000000..f476967399 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ServiceCIDRStatusFluent.java @@ -0,0 +1,237 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.Nested; +import java.util.ArrayList; +import java.lang.String; +import java.util.function.Predicate; +import io.kubernetes.client.fluent.BaseFluent; +import java.util.Iterator; +import java.util.Collection; +import java.lang.Object; +import java.util.List; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1beta1ServiceCIDRStatusFluent> extends BaseFluent{ + public V1beta1ServiceCIDRStatusFluent() { + } + + public V1beta1ServiceCIDRStatusFluent(V1beta1ServiceCIDRStatus instance) { + this.copyInstance(instance); + } + private ArrayList conditions; + + protected void copyInstance(V1beta1ServiceCIDRStatus instance) { + instance = (instance != null ? instance : new V1beta1ServiceCIDRStatus()); + if (instance != null) { + this.withConditions(instance.getConditions()); + } + } + + public A addToConditions(int index,V1Condition item) { + if (this.conditions == null) {this.conditions = new ArrayList();} + V1ConditionBuilder builder = new V1ConditionBuilder(item); + if (index < 0 || index >= conditions.size()) { + _visitables.get("conditions").add(builder); + conditions.add(builder); + } else { + _visitables.get("conditions").add(builder); + conditions.add(index, builder); + } + return (A)this; + } + + public A setToConditions(int index,V1Condition item) { + if (this.conditions == null) {this.conditions = new ArrayList();} + V1ConditionBuilder builder = new V1ConditionBuilder(item); + if (index < 0 || index >= conditions.size()) { + _visitables.get("conditions").add(builder); + conditions.add(builder); + } else { + _visitables.get("conditions").add(builder); + conditions.set(index, builder); + } + return (A)this; + } + + public A addToConditions(io.kubernetes.client.openapi.models.V1Condition... items) { + if (this.conditions == null) {this.conditions = new ArrayList();} + for (V1Condition item : items) {V1ConditionBuilder builder = new V1ConditionBuilder(item);_visitables.get("conditions").add(builder);this.conditions.add(builder);} return (A)this; + } + + public A addAllToConditions(Collection items) { + if (this.conditions == null) {this.conditions = new ArrayList();} + for (V1Condition item : items) {V1ConditionBuilder builder = new V1ConditionBuilder(item);_visitables.get("conditions").add(builder);this.conditions.add(builder);} return (A)this; + } + + public A removeFromConditions(io.kubernetes.client.openapi.models.V1Condition... items) { + if (this.conditions == null) return (A)this; + for (V1Condition item : items) {V1ConditionBuilder builder = new V1ConditionBuilder(item);_visitables.get("conditions").remove(builder); this.conditions.remove(builder);} return (A)this; + } + + public A removeAllFromConditions(Collection items) { + if (this.conditions == null) return (A)this; + for (V1Condition item : items) {V1ConditionBuilder builder = new V1ConditionBuilder(item);_visitables.get("conditions").remove(builder); this.conditions.remove(builder);} return (A)this; + } + + public A removeMatchingFromConditions(Predicate predicate) { + if (conditions == null) return (A) this; + final Iterator each = conditions.iterator(); + final List visitables = _visitables.get("conditions"); + while (each.hasNext()) { + V1ConditionBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A)this; + } + + public List buildConditions() { + return this.conditions != null ? build(conditions) : null; + } + + public V1Condition buildCondition(int index) { + return this.conditions.get(index).build(); + } + + public V1Condition buildFirstCondition() { + return this.conditions.get(0).build(); + } + + public V1Condition buildLastCondition() { + return this.conditions.get(conditions.size() - 1).build(); + } + + public V1Condition buildMatchingCondition(Predicate predicate) { + for (V1ConditionBuilder item : conditions) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; + } + + public boolean hasMatchingCondition(Predicate predicate) { + for (V1ConditionBuilder item : conditions) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public A withConditions(List conditions) { + if (this.conditions != null) { + this._visitables.get("conditions").clear(); + } + if (conditions != null) { + this.conditions = new ArrayList(); + for (V1Condition item : conditions) { + this.addToConditions(item); + } + } else { + this.conditions = null; + } + return (A) this; + } + + public A withConditions(io.kubernetes.client.openapi.models.V1Condition... conditions) { + if (this.conditions != null) { + this.conditions.clear(); + _visitables.remove("conditions"); + } + if (conditions != null) { + for (V1Condition item : conditions) { + this.addToConditions(item); + } + } + return (A) this; + } + + public boolean hasConditions() { + return this.conditions != null && !this.conditions.isEmpty(); + } + + public ConditionsNested addNewCondition() { + return new ConditionsNested(-1, null); + } + + public ConditionsNested addNewConditionLike(V1Condition item) { + return new ConditionsNested(-1, item); + } + + public ConditionsNested setNewConditionLike(int index,V1Condition item) { + return new ConditionsNested(index, item); + } + + public ConditionsNested editCondition(int index) { + if (conditions.size() <= index) throw new RuntimeException("Can't edit conditions. Index exceeds size."); + return setNewConditionLike(index, buildCondition(index)); + } + + public ConditionsNested editFirstCondition() { + if (conditions.size() == 0) throw new RuntimeException("Can't edit first conditions. The list is empty."); + return setNewConditionLike(0, buildCondition(0)); + } + + public ConditionsNested editLastCondition() { + int index = conditions.size() - 1; + if (index < 0) throw new RuntimeException("Can't edit last conditions. The list is empty."); + return setNewConditionLike(index, buildCondition(index)); + } + + public ConditionsNested editMatchingCondition(Predicate predicate) { + int index = -1; + for (int i=0;i extends V1ConditionFluent> implements Nested{ + ConditionsNested(int index,V1Condition item) { + this.index = index; + this.builder = new V1ConditionBuilder(this, item); + } + V1ConditionBuilder builder; + int index; + + public N and() { + return (N) V1beta1ServiceCIDRStatusFluent.this.setToConditions(index,builder.build()); + } + + public N endCondition() { + return and(); + } + + + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1TypeCheckingFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1TypeCheckingFluent.java index e7ab629351..efcc2d7d1e 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1TypeCheckingFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1TypeCheckingFluent.java @@ -35,14 +35,26 @@ protected void copyInstance(V1beta1TypeChecking instance) { public A addToExpressionWarnings(int index,V1beta1ExpressionWarning item) { if (this.expressionWarnings == null) {this.expressionWarnings = new ArrayList();} V1beta1ExpressionWarningBuilder builder = new V1beta1ExpressionWarningBuilder(item); - if (index < 0 || index >= expressionWarnings.size()) { _visitables.get("expressionWarnings").add(builder); expressionWarnings.add(builder); } else { _visitables.get("expressionWarnings").add(index, builder); expressionWarnings.add(index, builder);} + if (index < 0 || index >= expressionWarnings.size()) { + _visitables.get("expressionWarnings").add(builder); + expressionWarnings.add(builder); + } else { + _visitables.get("expressionWarnings").add(builder); + expressionWarnings.add(index, builder); + } return (A)this; } public A setToExpressionWarnings(int index,V1beta1ExpressionWarning item) { if (this.expressionWarnings == null) {this.expressionWarnings = new ArrayList();} V1beta1ExpressionWarningBuilder builder = new V1beta1ExpressionWarningBuilder(item); - if (index < 0 || index >= expressionWarnings.size()) { _visitables.get("expressionWarnings").add(builder); expressionWarnings.add(builder); } else { _visitables.get("expressionWarnings").set(index, builder); expressionWarnings.set(index, builder);} + if (index < 0 || index >= expressionWarnings.size()) { + _visitables.get("expressionWarnings").add(builder); + expressionWarnings.add(builder); + } else { + _visitables.get("expressionWarnings").add(builder); + expressionWarnings.set(index, builder); + } return (A)this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ValidatingAdmissionPolicyBindingListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ValidatingAdmissionPolicyBindingListFluent.java index d4fffbf36e..5fe25d0e6b 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ValidatingAdmissionPolicyBindingListFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ValidatingAdmissionPolicyBindingListFluent.java @@ -54,14 +54,26 @@ public boolean hasApiVersion() { public A addToItems(int index,V1beta1ValidatingAdmissionPolicyBinding item) { if (this.items == null) {this.items = new ArrayList();} V1beta1ValidatingAdmissionPolicyBindingBuilder builder = new V1beta1ValidatingAdmissionPolicyBindingBuilder(item); - if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); items.add(builder); } else { _visitables.get("items").add(index, builder); items.add(index, builder);} + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.add(index, builder); + } return (A)this; } public A setToItems(int index,V1beta1ValidatingAdmissionPolicyBinding item) { if (this.items == null) {this.items = new ArrayList();} V1beta1ValidatingAdmissionPolicyBindingBuilder builder = new V1beta1ValidatingAdmissionPolicyBindingBuilder(item); - if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); items.add(builder); } else { _visitables.get("items").set(index, builder); items.set(index, builder);} + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.set(index, builder); + } return (A)this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ValidatingAdmissionPolicyListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ValidatingAdmissionPolicyListFluent.java index 7353e234bc..53d9f72b64 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ValidatingAdmissionPolicyListFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ValidatingAdmissionPolicyListFluent.java @@ -54,14 +54,26 @@ public boolean hasApiVersion() { public A addToItems(int index,V1beta1ValidatingAdmissionPolicy item) { if (this.items == null) {this.items = new ArrayList();} V1beta1ValidatingAdmissionPolicyBuilder builder = new V1beta1ValidatingAdmissionPolicyBuilder(item); - if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); items.add(builder); } else { _visitables.get("items").add(index, builder); items.add(index, builder);} + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.add(index, builder); + } return (A)this; } public A setToItems(int index,V1beta1ValidatingAdmissionPolicy item) { if (this.items == null) {this.items = new ArrayList();} V1beta1ValidatingAdmissionPolicyBuilder builder = new V1beta1ValidatingAdmissionPolicyBuilder(item); - if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); items.add(builder); } else { _visitables.get("items").set(index, builder); items.set(index, builder);} + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.set(index, builder); + } return (A)this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ValidatingAdmissionPolicySpecFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ValidatingAdmissionPolicySpecFluent.java index 7e37dfeeb2..9f57b536f8 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ValidatingAdmissionPolicySpecFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ValidatingAdmissionPolicySpecFluent.java @@ -47,14 +47,26 @@ protected void copyInstance(V1beta1ValidatingAdmissionPolicySpec instance) { public A addToAuditAnnotations(int index,V1beta1AuditAnnotation item) { if (this.auditAnnotations == null) {this.auditAnnotations = new ArrayList();} V1beta1AuditAnnotationBuilder builder = new V1beta1AuditAnnotationBuilder(item); - if (index < 0 || index >= auditAnnotations.size()) { _visitables.get("auditAnnotations").add(builder); auditAnnotations.add(builder); } else { _visitables.get("auditAnnotations").add(index, builder); auditAnnotations.add(index, builder);} + if (index < 0 || index >= auditAnnotations.size()) { + _visitables.get("auditAnnotations").add(builder); + auditAnnotations.add(builder); + } else { + _visitables.get("auditAnnotations").add(builder); + auditAnnotations.add(index, builder); + } return (A)this; } public A setToAuditAnnotations(int index,V1beta1AuditAnnotation item) { if (this.auditAnnotations == null) {this.auditAnnotations = new ArrayList();} V1beta1AuditAnnotationBuilder builder = new V1beta1AuditAnnotationBuilder(item); - if (index < 0 || index >= auditAnnotations.size()) { _visitables.get("auditAnnotations").add(builder); auditAnnotations.add(builder); } else { _visitables.get("auditAnnotations").set(index, builder); auditAnnotations.set(index, builder);} + if (index < 0 || index >= auditAnnotations.size()) { + _visitables.get("auditAnnotations").add(builder); + auditAnnotations.add(builder); + } else { + _visitables.get("auditAnnotations").add(builder); + auditAnnotations.set(index, builder); + } return (A)this; } @@ -211,14 +223,26 @@ public boolean hasFailurePolicy() { public A addToMatchConditions(int index,V1beta1MatchCondition item) { if (this.matchConditions == null) {this.matchConditions = new ArrayList();} V1beta1MatchConditionBuilder builder = new V1beta1MatchConditionBuilder(item); - if (index < 0 || index >= matchConditions.size()) { _visitables.get("matchConditions").add(builder); matchConditions.add(builder); } else { _visitables.get("matchConditions").add(index, builder); matchConditions.add(index, builder);} + if (index < 0 || index >= matchConditions.size()) { + _visitables.get("matchConditions").add(builder); + matchConditions.add(builder); + } else { + _visitables.get("matchConditions").add(builder); + matchConditions.add(index, builder); + } return (A)this; } public A setToMatchConditions(int index,V1beta1MatchCondition item) { if (this.matchConditions == null) {this.matchConditions = new ArrayList();} V1beta1MatchConditionBuilder builder = new V1beta1MatchConditionBuilder(item); - if (index < 0 || index >= matchConditions.size()) { _visitables.get("matchConditions").add(builder); matchConditions.add(builder); } else { _visitables.get("matchConditions").set(index, builder); matchConditions.set(index, builder);} + if (index < 0 || index >= matchConditions.size()) { + _visitables.get("matchConditions").add(builder); + matchConditions.add(builder); + } else { + _visitables.get("matchConditions").add(builder); + matchConditions.set(index, builder); + } return (A)this; } @@ -442,14 +466,26 @@ public ParamKindNested editOrNewParamKindLike(V1beta1ParamKind item) { public A addToValidations(int index,V1beta1Validation item) { if (this.validations == null) {this.validations = new ArrayList();} V1beta1ValidationBuilder builder = new V1beta1ValidationBuilder(item); - if (index < 0 || index >= validations.size()) { _visitables.get("validations").add(builder); validations.add(builder); } else { _visitables.get("validations").add(index, builder); validations.add(index, builder);} + if (index < 0 || index >= validations.size()) { + _visitables.get("validations").add(builder); + validations.add(builder); + } else { + _visitables.get("validations").add(builder); + validations.add(index, builder); + } return (A)this; } public A setToValidations(int index,V1beta1Validation item) { if (this.validations == null) {this.validations = new ArrayList();} V1beta1ValidationBuilder builder = new V1beta1ValidationBuilder(item); - if (index < 0 || index >= validations.size()) { _visitables.get("validations").add(builder); validations.add(builder); } else { _visitables.get("validations").set(index, builder); validations.set(index, builder);} + if (index < 0 || index >= validations.size()) { + _visitables.get("validations").add(builder); + validations.add(builder); + } else { + _visitables.get("validations").add(builder); + validations.set(index, builder); + } return (A)this; } @@ -593,14 +629,26 @@ public ValidationsNested editMatchingValidation(Predicate();} V1beta1VariableBuilder builder = new V1beta1VariableBuilder(item); - if (index < 0 || index >= variables.size()) { _visitables.get("variables").add(builder); variables.add(builder); } else { _visitables.get("variables").add(index, builder); variables.add(index, builder);} + if (index < 0 || index >= variables.size()) { + _visitables.get("variables").add(builder); + variables.add(builder); + } else { + _visitables.get("variables").add(builder); + variables.add(index, builder); + } return (A)this; } public A setToVariables(int index,V1beta1Variable item) { if (this.variables == null) {this.variables = new ArrayList();} V1beta1VariableBuilder builder = new V1beta1VariableBuilder(item); - if (index < 0 || index >= variables.size()) { _visitables.get("variables").add(builder); variables.add(builder); } else { _visitables.get("variables").set(index, builder); variables.set(index, builder);} + if (index < 0 || index >= variables.size()) { + _visitables.get("variables").add(builder); + variables.add(builder); + } else { + _visitables.get("variables").add(builder); + variables.set(index, builder); + } return (A)this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ValidatingAdmissionPolicyStatusFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ValidatingAdmissionPolicyStatusFluent.java index 9ffa73097e..42468e0cb6 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ValidatingAdmissionPolicyStatusFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ValidatingAdmissionPolicyStatusFluent.java @@ -40,14 +40,26 @@ protected void copyInstance(V1beta1ValidatingAdmissionPolicyStatus instance) { public A addToConditions(int index,V1Condition item) { if (this.conditions == null) {this.conditions = new ArrayList();} V1ConditionBuilder builder = new V1ConditionBuilder(item); - if (index < 0 || index >= conditions.size()) { _visitables.get("conditions").add(builder); conditions.add(builder); } else { _visitables.get("conditions").add(index, builder); conditions.add(index, builder);} + if (index < 0 || index >= conditions.size()) { + _visitables.get("conditions").add(builder); + conditions.add(builder); + } else { + _visitables.get("conditions").add(builder); + conditions.add(index, builder); + } return (A)this; } public A setToConditions(int index,V1Condition item) { if (this.conditions == null) {this.conditions = new ArrayList();} V1ConditionBuilder builder = new V1ConditionBuilder(item); - if (index < 0 || index >= conditions.size()) { _visitables.get("conditions").add(builder); conditions.add(builder); } else { _visitables.get("conditions").set(index, builder); conditions.set(index, builder);} + if (index < 0 || index >= conditions.size()) { + _visitables.get("conditions").add(builder); + conditions.add(builder); + } else { + _visitables.get("conditions").add(builder); + conditions.set(index, builder); + } return (A)this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1VolumeAttributesClassBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1VolumeAttributesClassBuilder.java new file mode 100644 index 0000000000..4cd2f832bd --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1VolumeAttributesClassBuilder.java @@ -0,0 +1,35 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +public class V1beta1VolumeAttributesClassBuilder extends V1beta1VolumeAttributesClassFluent implements VisitableBuilder{ + public V1beta1VolumeAttributesClassBuilder() { + this(new V1beta1VolumeAttributesClass()); + } + + public V1beta1VolumeAttributesClassBuilder(V1beta1VolumeAttributesClassFluent fluent) { + this(fluent, new V1beta1VolumeAttributesClass()); + } + + public V1beta1VolumeAttributesClassBuilder(V1beta1VolumeAttributesClassFluent fluent,V1beta1VolumeAttributesClass instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1beta1VolumeAttributesClassBuilder(V1beta1VolumeAttributesClass instance) { + this.fluent = this; + this.copyInstance(instance); + } + V1beta1VolumeAttributesClassFluent fluent; + + public V1beta1VolumeAttributesClass build() { + V1beta1VolumeAttributesClass buildable = new V1beta1VolumeAttributesClass(); + buildable.setApiVersion(fluent.getApiVersion()); + buildable.setDriverName(fluent.getDriverName()); + buildable.setKind(fluent.getKind()); + buildable.setMetadata(fluent.buildMetadata()); + buildable.setParameters(fluent.getParameters()); + return buildable; + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1VolumeAttributesClassFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1VolumeAttributesClassFluent.java new file mode 100644 index 0000000000..2a73f5e94d --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1VolumeAttributesClassFluent.java @@ -0,0 +1,200 @@ +package io.kubernetes.client.openapi.models; + +import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.Nested; +import java.lang.String; +import java.util.LinkedHashMap; +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Object; +import java.util.Map; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1beta1VolumeAttributesClassFluent> extends BaseFluent{ + public V1beta1VolumeAttributesClassFluent() { + } + + public V1beta1VolumeAttributesClassFluent(V1beta1VolumeAttributesClass instance) { + this.copyInstance(instance); + } + private String apiVersion; + private String driverName; + private String kind; + private V1ObjectMetaBuilder metadata; + private Map parameters; + + protected void copyInstance(V1beta1VolumeAttributesClass instance) { + instance = (instance != null ? instance : new V1beta1VolumeAttributesClass()); + if (instance != null) { + this.withApiVersion(instance.getApiVersion()); + this.withDriverName(instance.getDriverName()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); + this.withParameters(instance.getParameters()); + } + } + + public String getApiVersion() { + return this.apiVersion; + } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + + public boolean hasApiVersion() { + return this.apiVersion != null; + } + + public String getDriverName() { + return this.driverName; + } + + public A withDriverName(String driverName) { + this.driverName = driverName; + return (A) this; + } + + public boolean hasDriverName() { + return this.driverName != null; + } + + public String getKind() { + return this.kind; + } + + public A withKind(String kind) { + this.kind = kind; + return (A) this; + } + + public boolean hasKind() { + return this.kind != null; + } + + public V1ObjectMeta buildMetadata() { + return this.metadata != null ? this.metadata.build() : null; + } + + public A withMetadata(V1ObjectMeta metadata) { + this._visitables.remove("metadata"); + if (metadata != null) { + this.metadata = new V1ObjectMetaBuilder(metadata); + this._visitables.get("metadata").add(this.metadata); + } else { + this.metadata = null; + this._visitables.get("metadata").remove(this.metadata); + } + return (A) this; + } + + public boolean hasMetadata() { + return this.metadata != null; + } + + public MetadataNested withNewMetadata() { + return new MetadataNested(null); + } + + public MetadataNested withNewMetadataLike(V1ObjectMeta item) { + return new MetadataNested(item); + } + + public MetadataNested editMetadata() { + return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(null)); + } + + public MetadataNested editOrNewMetadata() { + return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(new V1ObjectMetaBuilder().build())); + } + + public MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { + return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(item)); + } + + public A addToParameters(String key,String value) { + if(this.parameters == null && key != null && value != null) { this.parameters = new LinkedHashMap(); } + if(key != null && value != null) {this.parameters.put(key, value);} return (A)this; + } + + public A addToParameters(Map map) { + if(this.parameters == null && map != null) { this.parameters = new LinkedHashMap(); } + if(map != null) { this.parameters.putAll(map);} return (A)this; + } + + public A removeFromParameters(String key) { + if(this.parameters == null) { return (A) this; } + if(key != null && this.parameters != null) {this.parameters.remove(key);} return (A)this; + } + + public A removeFromParameters(Map map) { + if(this.parameters == null) { return (A) this; } + if(map != null) { for(Object key : map.keySet()) {if (this.parameters != null){this.parameters.remove(key);}}} return (A)this; + } + + public Map getParameters() { + return this.parameters; + } + + public A withParameters(Map parameters) { + if (parameters == null) { + this.parameters = null; + } else { + this.parameters = new LinkedHashMap(parameters); + } + return (A) this; + } + + public boolean hasParameters() { + return this.parameters != null; + } + + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + if (!super.equals(o)) return false; + V1beta1VolumeAttributesClassFluent that = (V1beta1VolumeAttributesClassFluent) o; + if (!java.util.Objects.equals(apiVersion, that.apiVersion)) return false; + if (!java.util.Objects.equals(driverName, that.driverName)) return false; + if (!java.util.Objects.equals(kind, that.kind)) return false; + if (!java.util.Objects.equals(metadata, that.metadata)) return false; + if (!java.util.Objects.equals(parameters, that.parameters)) return false; + return true; + } + + public int hashCode() { + return java.util.Objects.hash(apiVersion, driverName, kind, metadata, parameters, super.hashCode()); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (apiVersion != null) { sb.append("apiVersion:"); sb.append(apiVersion + ","); } + if (driverName != null) { sb.append("driverName:"); sb.append(driverName + ","); } + if (kind != null) { sb.append("kind:"); sb.append(kind + ","); } + if (metadata != null) { sb.append("metadata:"); sb.append(metadata + ","); } + if (parameters != null && !parameters.isEmpty()) { sb.append("parameters:"); sb.append(parameters); } + sb.append("}"); + return sb.toString(); + } + public class MetadataNested extends V1ObjectMetaFluent> implements Nested{ + MetadataNested(V1ObjectMeta item) { + this.builder = new V1ObjectMetaBuilder(this, item); + } + V1ObjectMetaBuilder builder; + + public N and() { + return (N) V1beta1VolumeAttributesClassFluent.this.withMetadata(builder.build()); + } + + public N endMetadata() { + return and(); + } + + + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1VolumeAttributesClassListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1VolumeAttributesClassListBuilder.java new file mode 100644 index 0000000000..01c4588d81 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1VolumeAttributesClassListBuilder.java @@ -0,0 +1,34 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +public class V1beta1VolumeAttributesClassListBuilder extends V1beta1VolumeAttributesClassListFluent implements VisitableBuilder{ + public V1beta1VolumeAttributesClassListBuilder() { + this(new V1beta1VolumeAttributesClassList()); + } + + public V1beta1VolumeAttributesClassListBuilder(V1beta1VolumeAttributesClassListFluent fluent) { + this(fluent, new V1beta1VolumeAttributesClassList()); + } + + public V1beta1VolumeAttributesClassListBuilder(V1beta1VolumeAttributesClassListFluent fluent,V1beta1VolumeAttributesClassList instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1beta1VolumeAttributesClassListBuilder(V1beta1VolumeAttributesClassList instance) { + this.fluent = this; + this.copyInstance(instance); + } + V1beta1VolumeAttributesClassListFluent fluent; + + public V1beta1VolumeAttributesClassList build() { + V1beta1VolumeAttributesClassList buildable = new V1beta1VolumeAttributesClassList(); + buildable.setApiVersion(fluent.getApiVersion()); + buildable.setItems(fluent.buildItems()); + buildable.setKind(fluent.getKind()); + buildable.setMetadata(fluent.buildMetadata()); + return buildable; + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1VolumeAttributesClassListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1VolumeAttributesClassListFluent.java new file mode 100644 index 0000000000..44b615d002 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1VolumeAttributesClassListFluent.java @@ -0,0 +1,331 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.Nested; +import java.util.ArrayList; +import java.lang.String; +import java.util.function.Predicate; +import io.kubernetes.client.fluent.BaseFluent; +import java.util.Iterator; +import java.util.Collection; +import java.lang.Object; +import java.util.List; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1beta1VolumeAttributesClassListFluent> extends BaseFluent{ + public V1beta1VolumeAttributesClassListFluent() { + } + + public V1beta1VolumeAttributesClassListFluent(V1beta1VolumeAttributesClassList instance) { + this.copyInstance(instance); + } + private String apiVersion; + private ArrayList items; + private String kind; + private V1ListMetaBuilder metadata; + + protected void copyInstance(V1beta1VolumeAttributesClassList instance) { + instance = (instance != null ? instance : new V1beta1VolumeAttributesClassList()); + if (instance != null) { + this.withApiVersion(instance.getApiVersion()); + this.withItems(instance.getItems()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); + } + } + + public String getApiVersion() { + return this.apiVersion; + } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + + public boolean hasApiVersion() { + return this.apiVersion != null; + } + + public A addToItems(int index,V1beta1VolumeAttributesClass item) { + if (this.items == null) {this.items = new ArrayList();} + V1beta1VolumeAttributesClassBuilder builder = new V1beta1VolumeAttributesClassBuilder(item); + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.add(index, builder); + } + return (A)this; + } + + public A setToItems(int index,V1beta1VolumeAttributesClass item) { + if (this.items == null) {this.items = new ArrayList();} + V1beta1VolumeAttributesClassBuilder builder = new V1beta1VolumeAttributesClassBuilder(item); + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.set(index, builder); + } + return (A)this; + } + + public A addToItems(io.kubernetes.client.openapi.models.V1beta1VolumeAttributesClass... items) { + if (this.items == null) {this.items = new ArrayList();} + for (V1beta1VolumeAttributesClass item : items) {V1beta1VolumeAttributesClassBuilder builder = new V1beta1VolumeAttributesClassBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; + } + + public A addAllToItems(Collection items) { + if (this.items == null) {this.items = new ArrayList();} + for (V1beta1VolumeAttributesClass item : items) {V1beta1VolumeAttributesClassBuilder builder = new V1beta1VolumeAttributesClassBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; + } + + public A removeFromItems(io.kubernetes.client.openapi.models.V1beta1VolumeAttributesClass... items) { + if (this.items == null) return (A)this; + for (V1beta1VolumeAttributesClass item : items) {V1beta1VolumeAttributesClassBuilder builder = new V1beta1VolumeAttributesClassBuilder(item);_visitables.get("items").remove(builder); this.items.remove(builder);} return (A)this; + } + + public A removeAllFromItems(Collection items) { + if (this.items == null) return (A)this; + for (V1beta1VolumeAttributesClass item : items) {V1beta1VolumeAttributesClassBuilder builder = new V1beta1VolumeAttributesClassBuilder(item);_visitables.get("items").remove(builder); this.items.remove(builder);} return (A)this; + } + + public A removeMatchingFromItems(Predicate predicate) { + if (items == null) return (A) this; + final Iterator each = items.iterator(); + final List visitables = _visitables.get("items"); + while (each.hasNext()) { + V1beta1VolumeAttributesClassBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A)this; + } + + public List buildItems() { + return this.items != null ? build(items) : null; + } + + public V1beta1VolumeAttributesClass buildItem(int index) { + return this.items.get(index).build(); + } + + public V1beta1VolumeAttributesClass buildFirstItem() { + return this.items.get(0).build(); + } + + public V1beta1VolumeAttributesClass buildLastItem() { + return this.items.get(items.size() - 1).build(); + } + + public V1beta1VolumeAttributesClass buildMatchingItem(Predicate predicate) { + for (V1beta1VolumeAttributesClassBuilder item : items) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; + } + + public boolean hasMatchingItem(Predicate predicate) { + for (V1beta1VolumeAttributesClassBuilder item : items) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public A withItems(List items) { + if (this.items != null) { + this._visitables.get("items").clear(); + } + if (items != null) { + this.items = new ArrayList(); + for (V1beta1VolumeAttributesClass item : items) { + this.addToItems(item); + } + } else { + this.items = null; + } + return (A) this; + } + + public A withItems(io.kubernetes.client.openapi.models.V1beta1VolumeAttributesClass... items) { + if (this.items != null) { + this.items.clear(); + _visitables.remove("items"); + } + if (items != null) { + for (V1beta1VolumeAttributesClass item : items) { + this.addToItems(item); + } + } + return (A) this; + } + + public boolean hasItems() { + return this.items != null && !this.items.isEmpty(); + } + + public ItemsNested addNewItem() { + return new ItemsNested(-1, null); + } + + public ItemsNested addNewItemLike(V1beta1VolumeAttributesClass item) { + return new ItemsNested(-1, item); + } + + public ItemsNested setNewItemLike(int index,V1beta1VolumeAttributesClass item) { + return new ItemsNested(index, item); + } + + public ItemsNested editItem(int index) { + if (items.size() <= index) throw new RuntimeException("Can't edit items. Index exceeds size."); + return setNewItemLike(index, buildItem(index)); + } + + public ItemsNested editFirstItem() { + if (items.size() == 0) throw new RuntimeException("Can't edit first items. The list is empty."); + return setNewItemLike(0, buildItem(0)); + } + + public ItemsNested editLastItem() { + int index = items.size() - 1; + if (index < 0) throw new RuntimeException("Can't edit last items. The list is empty."); + return setNewItemLike(index, buildItem(index)); + } + + public ItemsNested editMatchingItem(Predicate predicate) { + int index = -1; + for (int i=0;i withNewMetadata() { + return new MetadataNested(null); + } + + public MetadataNested withNewMetadataLike(V1ListMeta item) { + return new MetadataNested(item); + } + + public MetadataNested editMetadata() { + return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(null)); + } + + public MetadataNested editOrNewMetadata() { + return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(new V1ListMetaBuilder().build())); + } + + public MetadataNested editOrNewMetadataLike(V1ListMeta item) { + return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(item)); + } + + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + if (!super.equals(o)) return false; + V1beta1VolumeAttributesClassListFluent that = (V1beta1VolumeAttributesClassListFluent) o; + if (!java.util.Objects.equals(apiVersion, that.apiVersion)) return false; + if (!java.util.Objects.equals(items, that.items)) return false; + if (!java.util.Objects.equals(kind, that.kind)) return false; + if (!java.util.Objects.equals(metadata, that.metadata)) return false; + return true; + } + + public int hashCode() { + return java.util.Objects.hash(apiVersion, items, kind, metadata, super.hashCode()); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (apiVersion != null) { sb.append("apiVersion:"); sb.append(apiVersion + ","); } + if (items != null && !items.isEmpty()) { sb.append("items:"); sb.append(items + ","); } + if (kind != null) { sb.append("kind:"); sb.append(kind + ","); } + if (metadata != null) { sb.append("metadata:"); sb.append(metadata); } + sb.append("}"); + return sb.toString(); + } + public class ItemsNested extends V1beta1VolumeAttributesClassFluent> implements Nested{ + ItemsNested(int index,V1beta1VolumeAttributesClass item) { + this.index = index; + this.builder = new V1beta1VolumeAttributesClassBuilder(this, item); + } + V1beta1VolumeAttributesClassBuilder builder; + int index; + + public N and() { + return (N) V1beta1VolumeAttributesClassListFluent.this.setToItems(index,builder.build()); + } + + public N endItem() { + return and(); + } + + + } + public class MetadataNested extends V1ListMetaFluent> implements Nested{ + MetadataNested(V1ListMeta item) { + this.builder = new V1ListMetaBuilder(this, item); + } + V1ListMetaBuilder builder; + + public N and() { + return (N) V1beta1VolumeAttributesClassListFluent.this.withMetadata(builder.build()); + } + + public N endMetadata() { + return and(); + } + + + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2AllocatedDeviceStatusBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2AllocatedDeviceStatusBuilder.java new file mode 100644 index 0000000000..d5e101c8e1 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2AllocatedDeviceStatusBuilder.java @@ -0,0 +1,36 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +public class V1beta2AllocatedDeviceStatusBuilder extends V1beta2AllocatedDeviceStatusFluent implements VisitableBuilder{ + public V1beta2AllocatedDeviceStatusBuilder() { + this(new V1beta2AllocatedDeviceStatus()); + } + + public V1beta2AllocatedDeviceStatusBuilder(V1beta2AllocatedDeviceStatusFluent fluent) { + this(fluent, new V1beta2AllocatedDeviceStatus()); + } + + public V1beta2AllocatedDeviceStatusBuilder(V1beta2AllocatedDeviceStatusFluent fluent,V1beta2AllocatedDeviceStatus instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1beta2AllocatedDeviceStatusBuilder(V1beta2AllocatedDeviceStatus instance) { + this.fluent = this; + this.copyInstance(instance); + } + V1beta2AllocatedDeviceStatusFluent fluent; + + public V1beta2AllocatedDeviceStatus build() { + V1beta2AllocatedDeviceStatus buildable = new V1beta2AllocatedDeviceStatus(); + buildable.setConditions(fluent.buildConditions()); + buildable.setData(fluent.getData()); + buildable.setDevice(fluent.getDevice()); + buildable.setDriver(fluent.getDriver()); + buildable.setNetworkData(fluent.buildNetworkData()); + buildable.setPool(fluent.getPool()); + return buildable; + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2AllocatedDeviceStatusFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2AllocatedDeviceStatusFluent.java new file mode 100644 index 0000000000..05ee44635a --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2AllocatedDeviceStatusFluent.java @@ -0,0 +1,365 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.Nested; +import java.util.ArrayList; +import java.lang.String; +import java.util.function.Predicate; +import io.kubernetes.client.fluent.BaseFluent; +import java.util.Iterator; +import java.util.Collection; +import java.lang.Object; +import java.util.List; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1beta2AllocatedDeviceStatusFluent> extends BaseFluent{ + public V1beta2AllocatedDeviceStatusFluent() { + } + + public V1beta2AllocatedDeviceStatusFluent(V1beta2AllocatedDeviceStatus instance) { + this.copyInstance(instance); + } + private ArrayList conditions; + private Object data; + private String device; + private String driver; + private V1beta2NetworkDeviceDataBuilder networkData; + private String pool; + + protected void copyInstance(V1beta2AllocatedDeviceStatus instance) { + instance = (instance != null ? instance : new V1beta2AllocatedDeviceStatus()); + if (instance != null) { + this.withConditions(instance.getConditions()); + this.withData(instance.getData()); + this.withDevice(instance.getDevice()); + this.withDriver(instance.getDriver()); + this.withNetworkData(instance.getNetworkData()); + this.withPool(instance.getPool()); + } + } + + public A addToConditions(int index,V1Condition item) { + if (this.conditions == null) {this.conditions = new ArrayList();} + V1ConditionBuilder builder = new V1ConditionBuilder(item); + if (index < 0 || index >= conditions.size()) { + _visitables.get("conditions").add(builder); + conditions.add(builder); + } else { + _visitables.get("conditions").add(builder); + conditions.add(index, builder); + } + return (A)this; + } + + public A setToConditions(int index,V1Condition item) { + if (this.conditions == null) {this.conditions = new ArrayList();} + V1ConditionBuilder builder = new V1ConditionBuilder(item); + if (index < 0 || index >= conditions.size()) { + _visitables.get("conditions").add(builder); + conditions.add(builder); + } else { + _visitables.get("conditions").add(builder); + conditions.set(index, builder); + } + return (A)this; + } + + public A addToConditions(io.kubernetes.client.openapi.models.V1Condition... items) { + if (this.conditions == null) {this.conditions = new ArrayList();} + for (V1Condition item : items) {V1ConditionBuilder builder = new V1ConditionBuilder(item);_visitables.get("conditions").add(builder);this.conditions.add(builder);} return (A)this; + } + + public A addAllToConditions(Collection items) { + if (this.conditions == null) {this.conditions = new ArrayList();} + for (V1Condition item : items) {V1ConditionBuilder builder = new V1ConditionBuilder(item);_visitables.get("conditions").add(builder);this.conditions.add(builder);} return (A)this; + } + + public A removeFromConditions(io.kubernetes.client.openapi.models.V1Condition... items) { + if (this.conditions == null) return (A)this; + for (V1Condition item : items) {V1ConditionBuilder builder = new V1ConditionBuilder(item);_visitables.get("conditions").remove(builder); this.conditions.remove(builder);} return (A)this; + } + + public A removeAllFromConditions(Collection items) { + if (this.conditions == null) return (A)this; + for (V1Condition item : items) {V1ConditionBuilder builder = new V1ConditionBuilder(item);_visitables.get("conditions").remove(builder); this.conditions.remove(builder);} return (A)this; + } + + public A removeMatchingFromConditions(Predicate predicate) { + if (conditions == null) return (A) this; + final Iterator each = conditions.iterator(); + final List visitables = _visitables.get("conditions"); + while (each.hasNext()) { + V1ConditionBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A)this; + } + + public List buildConditions() { + return this.conditions != null ? build(conditions) : null; + } + + public V1Condition buildCondition(int index) { + return this.conditions.get(index).build(); + } + + public V1Condition buildFirstCondition() { + return this.conditions.get(0).build(); + } + + public V1Condition buildLastCondition() { + return this.conditions.get(conditions.size() - 1).build(); + } + + public V1Condition buildMatchingCondition(Predicate predicate) { + for (V1ConditionBuilder item : conditions) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; + } + + public boolean hasMatchingCondition(Predicate predicate) { + for (V1ConditionBuilder item : conditions) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public A withConditions(List conditions) { + if (this.conditions != null) { + this._visitables.get("conditions").clear(); + } + if (conditions != null) { + this.conditions = new ArrayList(); + for (V1Condition item : conditions) { + this.addToConditions(item); + } + } else { + this.conditions = null; + } + return (A) this; + } + + public A withConditions(io.kubernetes.client.openapi.models.V1Condition... conditions) { + if (this.conditions != null) { + this.conditions.clear(); + _visitables.remove("conditions"); + } + if (conditions != null) { + for (V1Condition item : conditions) { + this.addToConditions(item); + } + } + return (A) this; + } + + public boolean hasConditions() { + return this.conditions != null && !this.conditions.isEmpty(); + } + + public ConditionsNested addNewCondition() { + return new ConditionsNested(-1, null); + } + + public ConditionsNested addNewConditionLike(V1Condition item) { + return new ConditionsNested(-1, item); + } + + public ConditionsNested setNewConditionLike(int index,V1Condition item) { + return new ConditionsNested(index, item); + } + + public ConditionsNested editCondition(int index) { + if (conditions.size() <= index) throw new RuntimeException("Can't edit conditions. Index exceeds size."); + return setNewConditionLike(index, buildCondition(index)); + } + + public ConditionsNested editFirstCondition() { + if (conditions.size() == 0) throw new RuntimeException("Can't edit first conditions. The list is empty."); + return setNewConditionLike(0, buildCondition(0)); + } + + public ConditionsNested editLastCondition() { + int index = conditions.size() - 1; + if (index < 0) throw new RuntimeException("Can't edit last conditions. The list is empty."); + return setNewConditionLike(index, buildCondition(index)); + } + + public ConditionsNested editMatchingCondition(Predicate predicate) { + int index = -1; + for (int i=0;i withNewNetworkData() { + return new NetworkDataNested(null); + } + + public NetworkDataNested withNewNetworkDataLike(V1beta2NetworkDeviceData item) { + return new NetworkDataNested(item); + } + + public NetworkDataNested editNetworkData() { + return withNewNetworkDataLike(java.util.Optional.ofNullable(buildNetworkData()).orElse(null)); + } + + public NetworkDataNested editOrNewNetworkData() { + return withNewNetworkDataLike(java.util.Optional.ofNullable(buildNetworkData()).orElse(new V1beta2NetworkDeviceDataBuilder().build())); + } + + public NetworkDataNested editOrNewNetworkDataLike(V1beta2NetworkDeviceData item) { + return withNewNetworkDataLike(java.util.Optional.ofNullable(buildNetworkData()).orElse(item)); + } + + public String getPool() { + return this.pool; + } + + public A withPool(String pool) { + this.pool = pool; + return (A) this; + } + + public boolean hasPool() { + return this.pool != null; + } + + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + if (!super.equals(o)) return false; + V1beta2AllocatedDeviceStatusFluent that = (V1beta2AllocatedDeviceStatusFluent) o; + if (!java.util.Objects.equals(conditions, that.conditions)) return false; + if (!java.util.Objects.equals(data, that.data)) return false; + if (!java.util.Objects.equals(device, that.device)) return false; + if (!java.util.Objects.equals(driver, that.driver)) return false; + if (!java.util.Objects.equals(networkData, that.networkData)) return false; + if (!java.util.Objects.equals(pool, that.pool)) return false; + return true; + } + + public int hashCode() { + return java.util.Objects.hash(conditions, data, device, driver, networkData, pool, super.hashCode()); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (conditions != null && !conditions.isEmpty()) { sb.append("conditions:"); sb.append(conditions + ","); } + if (data != null) { sb.append("data:"); sb.append(data + ","); } + if (device != null) { sb.append("device:"); sb.append(device + ","); } + if (driver != null) { sb.append("driver:"); sb.append(driver + ","); } + if (networkData != null) { sb.append("networkData:"); sb.append(networkData + ","); } + if (pool != null) { sb.append("pool:"); sb.append(pool); } + sb.append("}"); + return sb.toString(); + } + public class ConditionsNested extends V1ConditionFluent> implements Nested{ + ConditionsNested(int index,V1Condition item) { + this.index = index; + this.builder = new V1ConditionBuilder(this, item); + } + V1ConditionBuilder builder; + int index; + + public N and() { + return (N) V1beta2AllocatedDeviceStatusFluent.this.setToConditions(index,builder.build()); + } + + public N endCondition() { + return and(); + } + + + } + public class NetworkDataNested extends V1beta2NetworkDeviceDataFluent> implements Nested{ + NetworkDataNested(V1beta2NetworkDeviceData item) { + this.builder = new V1beta2NetworkDeviceDataBuilder(this, item); + } + V1beta2NetworkDeviceDataBuilder builder; + + public N and() { + return (N) V1beta2AllocatedDeviceStatusFluent.this.withNetworkData(builder.build()); + } + + public N endNetworkData() { + return and(); + } + + + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2AllocationResultBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2AllocationResultBuilder.java new file mode 100644 index 0000000000..df5522d2d8 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2AllocationResultBuilder.java @@ -0,0 +1,32 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +public class V1beta2AllocationResultBuilder extends V1beta2AllocationResultFluent implements VisitableBuilder{ + public V1beta2AllocationResultBuilder() { + this(new V1beta2AllocationResult()); + } + + public V1beta2AllocationResultBuilder(V1beta2AllocationResultFluent fluent) { + this(fluent, new V1beta2AllocationResult()); + } + + public V1beta2AllocationResultBuilder(V1beta2AllocationResultFluent fluent,V1beta2AllocationResult instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1beta2AllocationResultBuilder(V1beta2AllocationResult instance) { + this.fluent = this; + this.copyInstance(instance); + } + V1beta2AllocationResultFluent fluent; + + public V1beta2AllocationResult build() { + V1beta2AllocationResult buildable = new V1beta2AllocationResult(); + buildable.setDevices(fluent.buildDevices()); + buildable.setNodeSelector(fluent.buildNodeSelector()); + return buildable; + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2AllocationResultFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2AllocationResultFluent.java new file mode 100644 index 0000000000..2019cbe1b1 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2AllocationResultFluent.java @@ -0,0 +1,166 @@ +package io.kubernetes.client.openapi.models; + +import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.Nested; +import java.lang.String; +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Object; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1beta2AllocationResultFluent> extends BaseFluent{ + public V1beta2AllocationResultFluent() { + } + + public V1beta2AllocationResultFluent(V1beta2AllocationResult instance) { + this.copyInstance(instance); + } + private V1beta2DeviceAllocationResultBuilder devices; + private V1NodeSelectorBuilder nodeSelector; + + protected void copyInstance(V1beta2AllocationResult instance) { + instance = (instance != null ? instance : new V1beta2AllocationResult()); + if (instance != null) { + this.withDevices(instance.getDevices()); + this.withNodeSelector(instance.getNodeSelector()); + } + } + + public V1beta2DeviceAllocationResult buildDevices() { + return this.devices != null ? this.devices.build() : null; + } + + public A withDevices(V1beta2DeviceAllocationResult devices) { + this._visitables.remove("devices"); + if (devices != null) { + this.devices = new V1beta2DeviceAllocationResultBuilder(devices); + this._visitables.get("devices").add(this.devices); + } else { + this.devices = null; + this._visitables.get("devices").remove(this.devices); + } + return (A) this; + } + + public boolean hasDevices() { + return this.devices != null; + } + + public DevicesNested withNewDevices() { + return new DevicesNested(null); + } + + public DevicesNested withNewDevicesLike(V1beta2DeviceAllocationResult item) { + return new DevicesNested(item); + } + + public DevicesNested editDevices() { + return withNewDevicesLike(java.util.Optional.ofNullable(buildDevices()).orElse(null)); + } + + public DevicesNested editOrNewDevices() { + return withNewDevicesLike(java.util.Optional.ofNullable(buildDevices()).orElse(new V1beta2DeviceAllocationResultBuilder().build())); + } + + public DevicesNested editOrNewDevicesLike(V1beta2DeviceAllocationResult item) { + return withNewDevicesLike(java.util.Optional.ofNullable(buildDevices()).orElse(item)); + } + + public V1NodeSelector buildNodeSelector() { + return this.nodeSelector != null ? this.nodeSelector.build() : null; + } + + public A withNodeSelector(V1NodeSelector nodeSelector) { + this._visitables.remove("nodeSelector"); + if (nodeSelector != null) { + this.nodeSelector = new V1NodeSelectorBuilder(nodeSelector); + this._visitables.get("nodeSelector").add(this.nodeSelector); + } else { + this.nodeSelector = null; + this._visitables.get("nodeSelector").remove(this.nodeSelector); + } + return (A) this; + } + + public boolean hasNodeSelector() { + return this.nodeSelector != null; + } + + public NodeSelectorNested withNewNodeSelector() { + return new NodeSelectorNested(null); + } + + public NodeSelectorNested withNewNodeSelectorLike(V1NodeSelector item) { + return new NodeSelectorNested(item); + } + + public NodeSelectorNested editNodeSelector() { + return withNewNodeSelectorLike(java.util.Optional.ofNullable(buildNodeSelector()).orElse(null)); + } + + public NodeSelectorNested editOrNewNodeSelector() { + return withNewNodeSelectorLike(java.util.Optional.ofNullable(buildNodeSelector()).orElse(new V1NodeSelectorBuilder().build())); + } + + public NodeSelectorNested editOrNewNodeSelectorLike(V1NodeSelector item) { + return withNewNodeSelectorLike(java.util.Optional.ofNullable(buildNodeSelector()).orElse(item)); + } + + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + if (!super.equals(o)) return false; + V1beta2AllocationResultFluent that = (V1beta2AllocationResultFluent) o; + if (!java.util.Objects.equals(devices, that.devices)) return false; + if (!java.util.Objects.equals(nodeSelector, that.nodeSelector)) return false; + return true; + } + + public int hashCode() { + return java.util.Objects.hash(devices, nodeSelector, super.hashCode()); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (devices != null) { sb.append("devices:"); sb.append(devices + ","); } + if (nodeSelector != null) { sb.append("nodeSelector:"); sb.append(nodeSelector); } + sb.append("}"); + return sb.toString(); + } + public class DevicesNested extends V1beta2DeviceAllocationResultFluent> implements Nested{ + DevicesNested(V1beta2DeviceAllocationResult item) { + this.builder = new V1beta2DeviceAllocationResultBuilder(this, item); + } + V1beta2DeviceAllocationResultBuilder builder; + + public N and() { + return (N) V1beta2AllocationResultFluent.this.withDevices(builder.build()); + } + + public N endDevices() { + return and(); + } + + + } + public class NodeSelectorNested extends V1NodeSelectorFluent> implements Nested{ + NodeSelectorNested(V1NodeSelector item) { + this.builder = new V1NodeSelectorBuilder(this, item); + } + V1NodeSelectorBuilder builder; + + public N and() { + return (N) V1beta2AllocationResultFluent.this.withNodeSelector(builder.build()); + } + + public N endNodeSelector() { + return and(); + } + + + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2CELDeviceSelectorBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2CELDeviceSelectorBuilder.java new file mode 100644 index 0000000000..d34484d684 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2CELDeviceSelectorBuilder.java @@ -0,0 +1,31 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +public class V1beta2CELDeviceSelectorBuilder extends V1beta2CELDeviceSelectorFluent implements VisitableBuilder{ + public V1beta2CELDeviceSelectorBuilder() { + this(new V1beta2CELDeviceSelector()); + } + + public V1beta2CELDeviceSelectorBuilder(V1beta2CELDeviceSelectorFluent fluent) { + this(fluent, new V1beta2CELDeviceSelector()); + } + + public V1beta2CELDeviceSelectorBuilder(V1beta2CELDeviceSelectorFluent fluent,V1beta2CELDeviceSelector instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1beta2CELDeviceSelectorBuilder(V1beta2CELDeviceSelector instance) { + this.fluent = this; + this.copyInstance(instance); + } + V1beta2CELDeviceSelectorFluent fluent; + + public V1beta2CELDeviceSelector build() { + V1beta2CELDeviceSelector buildable = new V1beta2CELDeviceSelector(); + buildable.setExpression(fluent.getExpression()); + return buildable; + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2CELDeviceSelectorFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2CELDeviceSelectorFluent.java new file mode 100644 index 0000000000..2a2468d9a4 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2CELDeviceSelectorFluent.java @@ -0,0 +1,63 @@ +package io.kubernetes.client.openapi.models; + +import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Object; +import java.lang.String; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1beta2CELDeviceSelectorFluent> extends BaseFluent{ + public V1beta2CELDeviceSelectorFluent() { + } + + public V1beta2CELDeviceSelectorFluent(V1beta2CELDeviceSelector instance) { + this.copyInstance(instance); + } + private String expression; + + protected void copyInstance(V1beta2CELDeviceSelector instance) { + instance = (instance != null ? instance : new V1beta2CELDeviceSelector()); + if (instance != null) { + this.withExpression(instance.getExpression()); + } + } + + public String getExpression() { + return this.expression; + } + + public A withExpression(String expression) { + this.expression = expression; + return (A) this; + } + + public boolean hasExpression() { + return this.expression != null; + } + + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + if (!super.equals(o)) return false; + V1beta2CELDeviceSelectorFluent that = (V1beta2CELDeviceSelectorFluent) o; + if (!java.util.Objects.equals(expression, that.expression)) return false; + return true; + } + + public int hashCode() { + return java.util.Objects.hash(expression, super.hashCode()); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (expression != null) { sb.append("expression:"); sb.append(expression); } + sb.append("}"); + return sb.toString(); + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2CounterBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2CounterBuilder.java new file mode 100644 index 0000000000..a50aac3035 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2CounterBuilder.java @@ -0,0 +1,31 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +public class V1beta2CounterBuilder extends V1beta2CounterFluent implements VisitableBuilder{ + public V1beta2CounterBuilder() { + this(new V1beta2Counter()); + } + + public V1beta2CounterBuilder(V1beta2CounterFluent fluent) { + this(fluent, new V1beta2Counter()); + } + + public V1beta2CounterBuilder(V1beta2CounterFluent fluent,V1beta2Counter instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1beta2CounterBuilder(V1beta2Counter instance) { + this.fluent = this; + this.copyInstance(instance); + } + V1beta2CounterFluent fluent; + + public V1beta2Counter build() { + V1beta2Counter buildable = new V1beta2Counter(); + buildable.setValue(fluent.getValue()); + return buildable; + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2CounterFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2CounterFluent.java new file mode 100644 index 0000000000..32764efe67 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2CounterFluent.java @@ -0,0 +1,68 @@ +package io.kubernetes.client.openapi.models; + +import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.custom.Quantity; +import java.lang.Object; +import java.lang.String; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1beta2CounterFluent> extends BaseFluent{ + public V1beta2CounterFluent() { + } + + public V1beta2CounterFluent(V1beta2Counter instance) { + this.copyInstance(instance); + } + private Quantity value; + + protected void copyInstance(V1beta2Counter instance) { + instance = (instance != null ? instance : new V1beta2Counter()); + if (instance != null) { + this.withValue(instance.getValue()); + } + } + + public Quantity getValue() { + return this.value; + } + + public A withValue(Quantity value) { + this.value = value; + return (A) this; + } + + public boolean hasValue() { + return this.value != null; + } + + public A withNewValue(String value) { + return (A)withValue(new Quantity(value)); + } + + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + if (!super.equals(o)) return false; + V1beta2CounterFluent that = (V1beta2CounterFluent) o; + if (!java.util.Objects.equals(value, that.value)) return false; + return true; + } + + public int hashCode() { + return java.util.Objects.hash(value, super.hashCode()); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (value != null) { sb.append("value:"); sb.append(value); } + sb.append("}"); + return sb.toString(); + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2CounterSetBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2CounterSetBuilder.java new file mode 100644 index 0000000000..252f2e9daa --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2CounterSetBuilder.java @@ -0,0 +1,32 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +public class V1beta2CounterSetBuilder extends V1beta2CounterSetFluent implements VisitableBuilder{ + public V1beta2CounterSetBuilder() { + this(new V1beta2CounterSet()); + } + + public V1beta2CounterSetBuilder(V1beta2CounterSetFluent fluent) { + this(fluent, new V1beta2CounterSet()); + } + + public V1beta2CounterSetBuilder(V1beta2CounterSetFluent fluent,V1beta2CounterSet instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1beta2CounterSetBuilder(V1beta2CounterSet instance) { + this.fluent = this; + this.copyInstance(instance); + } + V1beta2CounterSetFluent fluent; + + public V1beta2CounterSet build() { + V1beta2CounterSet buildable = new V1beta2CounterSet(); + buildable.setCounters(fluent.getCounters()); + buildable.setName(fluent.getName()); + return buildable; + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2CounterSetFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2CounterSetFluent.java new file mode 100644 index 0000000000..39f59bbc70 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2CounterSetFluent.java @@ -0,0 +1,106 @@ +package io.kubernetes.client.openapi.models; + +import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Object; +import java.lang.String; +import java.util.Map; +import java.util.LinkedHashMap; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1beta2CounterSetFluent> extends BaseFluent{ + public V1beta2CounterSetFluent() { + } + + public V1beta2CounterSetFluent(V1beta2CounterSet instance) { + this.copyInstance(instance); + } + private Map counters; + private String name; + + protected void copyInstance(V1beta2CounterSet instance) { + instance = (instance != null ? instance : new V1beta2CounterSet()); + if (instance != null) { + this.withCounters(instance.getCounters()); + this.withName(instance.getName()); + } + } + + public A addToCounters(String key,V1beta2Counter value) { + if(this.counters == null && key != null && value != null) { this.counters = new LinkedHashMap(); } + if(key != null && value != null) {this.counters.put(key, value);} return (A)this; + } + + public A addToCounters(Map map) { + if(this.counters == null && map != null) { this.counters = new LinkedHashMap(); } + if(map != null) { this.counters.putAll(map);} return (A)this; + } + + public A removeFromCounters(String key) { + if(this.counters == null) { return (A) this; } + if(key != null && this.counters != null) {this.counters.remove(key);} return (A)this; + } + + public A removeFromCounters(Map map) { + if(this.counters == null) { return (A) this; } + if(map != null) { for(Object key : map.keySet()) {if (this.counters != null){this.counters.remove(key);}}} return (A)this; + } + + public Map getCounters() { + return this.counters; + } + + public A withCounters(Map counters) { + if (counters == null) { + this.counters = null; + } else { + this.counters = new LinkedHashMap(counters); + } + return (A) this; + } + + public boolean hasCounters() { + return this.counters != null; + } + + public String getName() { + return this.name; + } + + public A withName(String name) { + this.name = name; + return (A) this; + } + + public boolean hasName() { + return this.name != null; + } + + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + if (!super.equals(o)) return false; + V1beta2CounterSetFluent that = (V1beta2CounterSetFluent) o; + if (!java.util.Objects.equals(counters, that.counters)) return false; + if (!java.util.Objects.equals(name, that.name)) return false; + return true; + } + + public int hashCode() { + return java.util.Objects.hash(counters, name, super.hashCode()); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (counters != null && !counters.isEmpty()) { sb.append("counters:"); sb.append(counters + ","); } + if (name != null) { sb.append("name:"); sb.append(name); } + sb.append("}"); + return sb.toString(); + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceAllocationConfigurationBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceAllocationConfigurationBuilder.java new file mode 100644 index 0000000000..5bd00a16bb --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceAllocationConfigurationBuilder.java @@ -0,0 +1,33 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +public class V1beta2DeviceAllocationConfigurationBuilder extends V1beta2DeviceAllocationConfigurationFluent implements VisitableBuilder{ + public V1beta2DeviceAllocationConfigurationBuilder() { + this(new V1beta2DeviceAllocationConfiguration()); + } + + public V1beta2DeviceAllocationConfigurationBuilder(V1beta2DeviceAllocationConfigurationFluent fluent) { + this(fluent, new V1beta2DeviceAllocationConfiguration()); + } + + public V1beta2DeviceAllocationConfigurationBuilder(V1beta2DeviceAllocationConfigurationFluent fluent,V1beta2DeviceAllocationConfiguration instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1beta2DeviceAllocationConfigurationBuilder(V1beta2DeviceAllocationConfiguration instance) { + this.fluent = this; + this.copyInstance(instance); + } + V1beta2DeviceAllocationConfigurationFluent fluent; + + public V1beta2DeviceAllocationConfiguration build() { + V1beta2DeviceAllocationConfiguration buildable = new V1beta2DeviceAllocationConfiguration(); + buildable.setOpaque(fluent.buildOpaque()); + buildable.setRequests(fluent.getRequests()); + buildable.setSource(fluent.getSource()); + return buildable; + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceAllocationConfigurationFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceAllocationConfigurationFluent.java new file mode 100644 index 0000000000..85f7eb8ab9 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceAllocationConfigurationFluent.java @@ -0,0 +1,225 @@ +package io.kubernetes.client.openapi.models; + +import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.Nested; +import java.util.ArrayList; +import java.lang.String; +import java.util.function.Predicate; +import io.kubernetes.client.fluent.BaseFluent; +import java.util.Collection; +import java.lang.Object; +import java.util.List; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1beta2DeviceAllocationConfigurationFluent> extends BaseFluent{ + public V1beta2DeviceAllocationConfigurationFluent() { + } + + public V1beta2DeviceAllocationConfigurationFluent(V1beta2DeviceAllocationConfiguration instance) { + this.copyInstance(instance); + } + private V1beta2OpaqueDeviceConfigurationBuilder opaque; + private List requests; + private String source; + + protected void copyInstance(V1beta2DeviceAllocationConfiguration instance) { + instance = (instance != null ? instance : new V1beta2DeviceAllocationConfiguration()); + if (instance != null) { + this.withOpaque(instance.getOpaque()); + this.withRequests(instance.getRequests()); + this.withSource(instance.getSource()); + } + } + + public V1beta2OpaqueDeviceConfiguration buildOpaque() { + return this.opaque != null ? this.opaque.build() : null; + } + + public A withOpaque(V1beta2OpaqueDeviceConfiguration opaque) { + this._visitables.remove("opaque"); + if (opaque != null) { + this.opaque = new V1beta2OpaqueDeviceConfigurationBuilder(opaque); + this._visitables.get("opaque").add(this.opaque); + } else { + this.opaque = null; + this._visitables.get("opaque").remove(this.opaque); + } + return (A) this; + } + + public boolean hasOpaque() { + return this.opaque != null; + } + + public OpaqueNested withNewOpaque() { + return new OpaqueNested(null); + } + + public OpaqueNested withNewOpaqueLike(V1beta2OpaqueDeviceConfiguration item) { + return new OpaqueNested(item); + } + + public OpaqueNested editOpaque() { + return withNewOpaqueLike(java.util.Optional.ofNullable(buildOpaque()).orElse(null)); + } + + public OpaqueNested editOrNewOpaque() { + return withNewOpaqueLike(java.util.Optional.ofNullable(buildOpaque()).orElse(new V1beta2OpaqueDeviceConfigurationBuilder().build())); + } + + public OpaqueNested editOrNewOpaqueLike(V1beta2OpaqueDeviceConfiguration item) { + return withNewOpaqueLike(java.util.Optional.ofNullable(buildOpaque()).orElse(item)); + } + + public A addToRequests(int index,String item) { + if (this.requests == null) {this.requests = new ArrayList();} + this.requests.add(index, item); + return (A)this; + } + + public A setToRequests(int index,String item) { + if (this.requests == null) {this.requests = new ArrayList();} + this.requests.set(index, item); return (A)this; + } + + public A addToRequests(java.lang.String... items) { + if (this.requests == null) {this.requests = new ArrayList();} + for (String item : items) {this.requests.add(item);} return (A)this; + } + + public A addAllToRequests(Collection items) { + if (this.requests == null) {this.requests = new ArrayList();} + for (String item : items) {this.requests.add(item);} return (A)this; + } + + public A removeFromRequests(java.lang.String... items) { + if (this.requests == null) return (A)this; + for (String item : items) { this.requests.remove(item);} return (A)this; + } + + public A removeAllFromRequests(Collection items) { + if (this.requests == null) return (A)this; + for (String item : items) { this.requests.remove(item);} return (A)this; + } + + public List getRequests() { + return this.requests; + } + + public String getRequest(int index) { + return this.requests.get(index); + } + + public String getFirstRequest() { + return this.requests.get(0); + } + + public String getLastRequest() { + return this.requests.get(requests.size() - 1); + } + + public String getMatchingRequest(Predicate predicate) { + for (String item : requests) { + if (predicate.test(item)) { + return item; + } + } + return null; + } + + public boolean hasMatchingRequest(Predicate predicate) { + for (String item : requests) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public A withRequests(List requests) { + if (requests != null) { + this.requests = new ArrayList(); + for (String item : requests) { + this.addToRequests(item); + } + } else { + this.requests = null; + } + return (A) this; + } + + public A withRequests(java.lang.String... requests) { + if (this.requests != null) { + this.requests.clear(); + _visitables.remove("requests"); + } + if (requests != null) { + for (String item : requests) { + this.addToRequests(item); + } + } + return (A) this; + } + + public boolean hasRequests() { + return this.requests != null && !this.requests.isEmpty(); + } + + public String getSource() { + return this.source; + } + + public A withSource(String source) { + this.source = source; + return (A) this; + } + + public boolean hasSource() { + return this.source != null; + } + + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + if (!super.equals(o)) return false; + V1beta2DeviceAllocationConfigurationFluent that = (V1beta2DeviceAllocationConfigurationFluent) o; + if (!java.util.Objects.equals(opaque, that.opaque)) return false; + if (!java.util.Objects.equals(requests, that.requests)) return false; + if (!java.util.Objects.equals(source, that.source)) return false; + return true; + } + + public int hashCode() { + return java.util.Objects.hash(opaque, requests, source, super.hashCode()); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (opaque != null) { sb.append("opaque:"); sb.append(opaque + ","); } + if (requests != null && !requests.isEmpty()) { sb.append("requests:"); sb.append(requests + ","); } + if (source != null) { sb.append("source:"); sb.append(source); } + sb.append("}"); + return sb.toString(); + } + public class OpaqueNested extends V1beta2OpaqueDeviceConfigurationFluent> implements Nested{ + OpaqueNested(V1beta2OpaqueDeviceConfiguration item) { + this.builder = new V1beta2OpaqueDeviceConfigurationBuilder(this, item); + } + V1beta2OpaqueDeviceConfigurationBuilder builder; + + public N and() { + return (N) V1beta2DeviceAllocationConfigurationFluent.this.withOpaque(builder.build()); + } + + public N endOpaque() { + return and(); + } + + + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceAllocationResultBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceAllocationResultBuilder.java new file mode 100644 index 0000000000..f43a70ed69 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceAllocationResultBuilder.java @@ -0,0 +1,32 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +public class V1beta2DeviceAllocationResultBuilder extends V1beta2DeviceAllocationResultFluent implements VisitableBuilder{ + public V1beta2DeviceAllocationResultBuilder() { + this(new V1beta2DeviceAllocationResult()); + } + + public V1beta2DeviceAllocationResultBuilder(V1beta2DeviceAllocationResultFluent fluent) { + this(fluent, new V1beta2DeviceAllocationResult()); + } + + public V1beta2DeviceAllocationResultBuilder(V1beta2DeviceAllocationResultFluent fluent,V1beta2DeviceAllocationResult instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1beta2DeviceAllocationResultBuilder(V1beta2DeviceAllocationResult instance) { + this.fluent = this; + this.copyInstance(instance); + } + V1beta2DeviceAllocationResultFluent fluent; + + public V1beta2DeviceAllocationResult build() { + V1beta2DeviceAllocationResult buildable = new V1beta2DeviceAllocationResult(); + buildable.setConfig(fluent.buildConfig()); + buildable.setResults(fluent.buildResults()); + return buildable; + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceAllocationResultFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceAllocationResultFluent.java new file mode 100644 index 0000000000..ead0cc4a14 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceAllocationResultFluent.java @@ -0,0 +1,422 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.Nested; +import java.util.ArrayList; +import java.lang.String; +import java.util.function.Predicate; +import io.kubernetes.client.fluent.BaseFluent; +import java.util.Iterator; +import java.util.Collection; +import java.lang.Object; +import java.util.List; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1beta2DeviceAllocationResultFluent> extends BaseFluent{ + public V1beta2DeviceAllocationResultFluent() { + } + + public V1beta2DeviceAllocationResultFluent(V1beta2DeviceAllocationResult instance) { + this.copyInstance(instance); + } + private ArrayList config; + private ArrayList results; + + protected void copyInstance(V1beta2DeviceAllocationResult instance) { + instance = (instance != null ? instance : new V1beta2DeviceAllocationResult()); + if (instance != null) { + this.withConfig(instance.getConfig()); + this.withResults(instance.getResults()); + } + } + + public A addToConfig(int index,V1beta2DeviceAllocationConfiguration item) { + if (this.config == null) {this.config = new ArrayList();} + V1beta2DeviceAllocationConfigurationBuilder builder = new V1beta2DeviceAllocationConfigurationBuilder(item); + if (index < 0 || index >= config.size()) { + _visitables.get("config").add(builder); + config.add(builder); + } else { + _visitables.get("config").add(builder); + config.add(index, builder); + } + return (A)this; + } + + public A setToConfig(int index,V1beta2DeviceAllocationConfiguration item) { + if (this.config == null) {this.config = new ArrayList();} + V1beta2DeviceAllocationConfigurationBuilder builder = new V1beta2DeviceAllocationConfigurationBuilder(item); + if (index < 0 || index >= config.size()) { + _visitables.get("config").add(builder); + config.add(builder); + } else { + _visitables.get("config").add(builder); + config.set(index, builder); + } + return (A)this; + } + + public A addToConfig(io.kubernetes.client.openapi.models.V1beta2DeviceAllocationConfiguration... items) { + if (this.config == null) {this.config = new ArrayList();} + for (V1beta2DeviceAllocationConfiguration item : items) {V1beta2DeviceAllocationConfigurationBuilder builder = new V1beta2DeviceAllocationConfigurationBuilder(item);_visitables.get("config").add(builder);this.config.add(builder);} return (A)this; + } + + public A addAllToConfig(Collection items) { + if (this.config == null) {this.config = new ArrayList();} + for (V1beta2DeviceAllocationConfiguration item : items) {V1beta2DeviceAllocationConfigurationBuilder builder = new V1beta2DeviceAllocationConfigurationBuilder(item);_visitables.get("config").add(builder);this.config.add(builder);} return (A)this; + } + + public A removeFromConfig(io.kubernetes.client.openapi.models.V1beta2DeviceAllocationConfiguration... items) { + if (this.config == null) return (A)this; + for (V1beta2DeviceAllocationConfiguration item : items) {V1beta2DeviceAllocationConfigurationBuilder builder = new V1beta2DeviceAllocationConfigurationBuilder(item);_visitables.get("config").remove(builder); this.config.remove(builder);} return (A)this; + } + + public A removeAllFromConfig(Collection items) { + if (this.config == null) return (A)this; + for (V1beta2DeviceAllocationConfiguration item : items) {V1beta2DeviceAllocationConfigurationBuilder builder = new V1beta2DeviceAllocationConfigurationBuilder(item);_visitables.get("config").remove(builder); this.config.remove(builder);} return (A)this; + } + + public A removeMatchingFromConfig(Predicate predicate) { + if (config == null) return (A) this; + final Iterator each = config.iterator(); + final List visitables = _visitables.get("config"); + while (each.hasNext()) { + V1beta2DeviceAllocationConfigurationBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A)this; + } + + public List buildConfig() { + return this.config != null ? build(config) : null; + } + + public V1beta2DeviceAllocationConfiguration buildConfig(int index) { + return this.config.get(index).build(); + } + + public V1beta2DeviceAllocationConfiguration buildFirstConfig() { + return this.config.get(0).build(); + } + + public V1beta2DeviceAllocationConfiguration buildLastConfig() { + return this.config.get(config.size() - 1).build(); + } + + public V1beta2DeviceAllocationConfiguration buildMatchingConfig(Predicate predicate) { + for (V1beta2DeviceAllocationConfigurationBuilder item : config) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; + } + + public boolean hasMatchingConfig(Predicate predicate) { + for (V1beta2DeviceAllocationConfigurationBuilder item : config) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public A withConfig(List config) { + if (this.config != null) { + this._visitables.get("config").clear(); + } + if (config != null) { + this.config = new ArrayList(); + for (V1beta2DeviceAllocationConfiguration item : config) { + this.addToConfig(item); + } + } else { + this.config = null; + } + return (A) this; + } + + public A withConfig(io.kubernetes.client.openapi.models.V1beta2DeviceAllocationConfiguration... config) { + if (this.config != null) { + this.config.clear(); + _visitables.remove("config"); + } + if (config != null) { + for (V1beta2DeviceAllocationConfiguration item : config) { + this.addToConfig(item); + } + } + return (A) this; + } + + public boolean hasConfig() { + return this.config != null && !this.config.isEmpty(); + } + + public ConfigNested addNewConfig() { + return new ConfigNested(-1, null); + } + + public ConfigNested addNewConfigLike(V1beta2DeviceAllocationConfiguration item) { + return new ConfigNested(-1, item); + } + + public ConfigNested setNewConfigLike(int index,V1beta2DeviceAllocationConfiguration item) { + return new ConfigNested(index, item); + } + + public ConfigNested editConfig(int index) { + if (config.size() <= index) throw new RuntimeException("Can't edit config. Index exceeds size."); + return setNewConfigLike(index, buildConfig(index)); + } + + public ConfigNested editFirstConfig() { + if (config.size() == 0) throw new RuntimeException("Can't edit first config. The list is empty."); + return setNewConfigLike(0, buildConfig(0)); + } + + public ConfigNested editLastConfig() { + int index = config.size() - 1; + if (index < 0) throw new RuntimeException("Can't edit last config. The list is empty."); + return setNewConfigLike(index, buildConfig(index)); + } + + public ConfigNested editMatchingConfig(Predicate predicate) { + int index = -1; + for (int i=0;i();} + V1beta2DeviceRequestAllocationResultBuilder builder = new V1beta2DeviceRequestAllocationResultBuilder(item); + if (index < 0 || index >= results.size()) { + _visitables.get("results").add(builder); + results.add(builder); + } else { + _visitables.get("results").add(builder); + results.add(index, builder); + } + return (A)this; + } + + public A setToResults(int index,V1beta2DeviceRequestAllocationResult item) { + if (this.results == null) {this.results = new ArrayList();} + V1beta2DeviceRequestAllocationResultBuilder builder = new V1beta2DeviceRequestAllocationResultBuilder(item); + if (index < 0 || index >= results.size()) { + _visitables.get("results").add(builder); + results.add(builder); + } else { + _visitables.get("results").add(builder); + results.set(index, builder); + } + return (A)this; + } + + public A addToResults(io.kubernetes.client.openapi.models.V1beta2DeviceRequestAllocationResult... items) { + if (this.results == null) {this.results = new ArrayList();} + for (V1beta2DeviceRequestAllocationResult item : items) {V1beta2DeviceRequestAllocationResultBuilder builder = new V1beta2DeviceRequestAllocationResultBuilder(item);_visitables.get("results").add(builder);this.results.add(builder);} return (A)this; + } + + public A addAllToResults(Collection items) { + if (this.results == null) {this.results = new ArrayList();} + for (V1beta2DeviceRequestAllocationResult item : items) {V1beta2DeviceRequestAllocationResultBuilder builder = new V1beta2DeviceRequestAllocationResultBuilder(item);_visitables.get("results").add(builder);this.results.add(builder);} return (A)this; + } + + public A removeFromResults(io.kubernetes.client.openapi.models.V1beta2DeviceRequestAllocationResult... items) { + if (this.results == null) return (A)this; + for (V1beta2DeviceRequestAllocationResult item : items) {V1beta2DeviceRequestAllocationResultBuilder builder = new V1beta2DeviceRequestAllocationResultBuilder(item);_visitables.get("results").remove(builder); this.results.remove(builder);} return (A)this; + } + + public A removeAllFromResults(Collection items) { + if (this.results == null) return (A)this; + for (V1beta2DeviceRequestAllocationResult item : items) {V1beta2DeviceRequestAllocationResultBuilder builder = new V1beta2DeviceRequestAllocationResultBuilder(item);_visitables.get("results").remove(builder); this.results.remove(builder);} return (A)this; + } + + public A removeMatchingFromResults(Predicate predicate) { + if (results == null) return (A) this; + final Iterator each = results.iterator(); + final List visitables = _visitables.get("results"); + while (each.hasNext()) { + V1beta2DeviceRequestAllocationResultBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A)this; + } + + public List buildResults() { + return this.results != null ? build(results) : null; + } + + public V1beta2DeviceRequestAllocationResult buildResult(int index) { + return this.results.get(index).build(); + } + + public V1beta2DeviceRequestAllocationResult buildFirstResult() { + return this.results.get(0).build(); + } + + public V1beta2DeviceRequestAllocationResult buildLastResult() { + return this.results.get(results.size() - 1).build(); + } + + public V1beta2DeviceRequestAllocationResult buildMatchingResult(Predicate predicate) { + for (V1beta2DeviceRequestAllocationResultBuilder item : results) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; + } + + public boolean hasMatchingResult(Predicate predicate) { + for (V1beta2DeviceRequestAllocationResultBuilder item : results) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public A withResults(List results) { + if (this.results != null) { + this._visitables.get("results").clear(); + } + if (results != null) { + this.results = new ArrayList(); + for (V1beta2DeviceRequestAllocationResult item : results) { + this.addToResults(item); + } + } else { + this.results = null; + } + return (A) this; + } + + public A withResults(io.kubernetes.client.openapi.models.V1beta2DeviceRequestAllocationResult... results) { + if (this.results != null) { + this.results.clear(); + _visitables.remove("results"); + } + if (results != null) { + for (V1beta2DeviceRequestAllocationResult item : results) { + this.addToResults(item); + } + } + return (A) this; + } + + public boolean hasResults() { + return this.results != null && !this.results.isEmpty(); + } + + public ResultsNested addNewResult() { + return new ResultsNested(-1, null); + } + + public ResultsNested addNewResultLike(V1beta2DeviceRequestAllocationResult item) { + return new ResultsNested(-1, item); + } + + public ResultsNested setNewResultLike(int index,V1beta2DeviceRequestAllocationResult item) { + return new ResultsNested(index, item); + } + + public ResultsNested editResult(int index) { + if (results.size() <= index) throw new RuntimeException("Can't edit results. Index exceeds size."); + return setNewResultLike(index, buildResult(index)); + } + + public ResultsNested editFirstResult() { + if (results.size() == 0) throw new RuntimeException("Can't edit first results. The list is empty."); + return setNewResultLike(0, buildResult(0)); + } + + public ResultsNested editLastResult() { + int index = results.size() - 1; + if (index < 0) throw new RuntimeException("Can't edit last results. The list is empty."); + return setNewResultLike(index, buildResult(index)); + } + + public ResultsNested editMatchingResult(Predicate predicate) { + int index = -1; + for (int i=0;i extends V1beta2DeviceAllocationConfigurationFluent> implements Nested{ + ConfigNested(int index,V1beta2DeviceAllocationConfiguration item) { + this.index = index; + this.builder = new V1beta2DeviceAllocationConfigurationBuilder(this, item); + } + V1beta2DeviceAllocationConfigurationBuilder builder; + int index; + + public N and() { + return (N) V1beta2DeviceAllocationResultFluent.this.setToConfig(index,builder.build()); + } + + public N endConfig() { + return and(); + } + + + } + public class ResultsNested extends V1beta2DeviceRequestAllocationResultFluent> implements Nested{ + ResultsNested(int index,V1beta2DeviceRequestAllocationResult item) { + this.index = index; + this.builder = new V1beta2DeviceRequestAllocationResultBuilder(this, item); + } + V1beta2DeviceRequestAllocationResultBuilder builder; + int index; + + public N and() { + return (N) V1beta2DeviceAllocationResultFluent.this.setToResults(index,builder.build()); + } + + public N endResult() { + return and(); + } + + + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceAttributeBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceAttributeBuilder.java new file mode 100644 index 0000000000..a1c46bf814 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceAttributeBuilder.java @@ -0,0 +1,34 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +public class V1beta2DeviceAttributeBuilder extends V1beta2DeviceAttributeFluent implements VisitableBuilder{ + public V1beta2DeviceAttributeBuilder() { + this(new V1beta2DeviceAttribute()); + } + + public V1beta2DeviceAttributeBuilder(V1beta2DeviceAttributeFluent fluent) { + this(fluent, new V1beta2DeviceAttribute()); + } + + public V1beta2DeviceAttributeBuilder(V1beta2DeviceAttributeFluent fluent,V1beta2DeviceAttribute instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1beta2DeviceAttributeBuilder(V1beta2DeviceAttribute instance) { + this.fluent = this; + this.copyInstance(instance); + } + V1beta2DeviceAttributeFluent fluent; + + public V1beta2DeviceAttribute build() { + V1beta2DeviceAttribute buildable = new V1beta2DeviceAttribute(); + buildable.setBool(fluent.getBool()); + buildable.setInt(fluent.getInt()); + buildable.setString(fluent.getString()); + buildable.setVersion(fluent.getVersion()); + return buildable; + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceAttributeFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceAttributeFluent.java new file mode 100644 index 0000000000..f1380847b3 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceAttributeFluent.java @@ -0,0 +1,120 @@ +package io.kubernetes.client.openapi.models; + +import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Long; +import java.lang.Object; +import java.lang.String; +import java.lang.Boolean; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1beta2DeviceAttributeFluent> extends BaseFluent{ + public V1beta2DeviceAttributeFluent() { + } + + public V1beta2DeviceAttributeFluent(V1beta2DeviceAttribute instance) { + this.copyInstance(instance); + } + private Boolean bool; + private Long _int; + private String string; + private String version; + + protected void copyInstance(V1beta2DeviceAttribute instance) { + instance = (instance != null ? instance : new V1beta2DeviceAttribute()); + if (instance != null) { + this.withBool(instance.getBool()); + this.withInt(instance.getInt()); + this.withString(instance.getString()); + this.withVersion(instance.getVersion()); + } + } + + public Boolean getBool() { + return this.bool; + } + + public A withBool(Boolean bool) { + this.bool = bool; + return (A) this; + } + + public boolean hasBool() { + return this.bool != null; + } + + public Long getInt() { + return this._int; + } + + public A withInt(Long _int) { + this._int = _int; + return (A) this; + } + + public boolean hasInt() { + return this._int != null; + } + + public String getString() { + return this.string; + } + + public A withString(String string) { + this.string = string; + return (A) this; + } + + public boolean hasString() { + return this.string != null; + } + + public String getVersion() { + return this.version; + } + + public A withVersion(String version) { + this.version = version; + return (A) this; + } + + public boolean hasVersion() { + return this.version != null; + } + + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + if (!super.equals(o)) return false; + V1beta2DeviceAttributeFluent that = (V1beta2DeviceAttributeFluent) o; + if (!java.util.Objects.equals(bool, that.bool)) return false; + if (!java.util.Objects.equals(_int, that._int)) return false; + if (!java.util.Objects.equals(string, that.string)) return false; + if (!java.util.Objects.equals(version, that.version)) return false; + return true; + } + + public int hashCode() { + return java.util.Objects.hash(bool, _int, string, version, super.hashCode()); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (bool != null) { sb.append("bool:"); sb.append(bool + ","); } + if (_int != null) { sb.append("_int:"); sb.append(_int + ","); } + if (string != null) { sb.append("string:"); sb.append(string + ","); } + if (version != null) { sb.append("version:"); sb.append(version); } + sb.append("}"); + return sb.toString(); + } + + public A withBool() { + return withBool(true); + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceBuilder.java new file mode 100644 index 0000000000..72c14f3ce8 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceBuilder.java @@ -0,0 +1,38 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +public class V1beta2DeviceBuilder extends V1beta2DeviceFluent implements VisitableBuilder{ + public V1beta2DeviceBuilder() { + this(new V1beta2Device()); + } + + public V1beta2DeviceBuilder(V1beta2DeviceFluent fluent) { + this(fluent, new V1beta2Device()); + } + + public V1beta2DeviceBuilder(V1beta2DeviceFluent fluent,V1beta2Device instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1beta2DeviceBuilder(V1beta2Device instance) { + this.fluent = this; + this.copyInstance(instance); + } + V1beta2DeviceFluent fluent; + + public V1beta2Device build() { + V1beta2Device buildable = new V1beta2Device(); + buildable.setAllNodes(fluent.getAllNodes()); + buildable.setAttributes(fluent.getAttributes()); + buildable.setCapacity(fluent.getCapacity()); + buildable.setConsumesCounters(fluent.buildConsumesCounters()); + buildable.setName(fluent.getName()); + buildable.setNodeName(fluent.getNodeName()); + buildable.setNodeSelector(fluent.buildNodeSelector()); + buildable.setTaints(fluent.buildTaints()); + return buildable; + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceCapacityBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceCapacityBuilder.java new file mode 100644 index 0000000000..dfc7eff4e3 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceCapacityBuilder.java @@ -0,0 +1,31 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +public class V1beta2DeviceCapacityBuilder extends V1beta2DeviceCapacityFluent implements VisitableBuilder{ + public V1beta2DeviceCapacityBuilder() { + this(new V1beta2DeviceCapacity()); + } + + public V1beta2DeviceCapacityBuilder(V1beta2DeviceCapacityFluent fluent) { + this(fluent, new V1beta2DeviceCapacity()); + } + + public V1beta2DeviceCapacityBuilder(V1beta2DeviceCapacityFluent fluent,V1beta2DeviceCapacity instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1beta2DeviceCapacityBuilder(V1beta2DeviceCapacity instance) { + this.fluent = this; + this.copyInstance(instance); + } + V1beta2DeviceCapacityFluent fluent; + + public V1beta2DeviceCapacity build() { + V1beta2DeviceCapacity buildable = new V1beta2DeviceCapacity(); + buildable.setValue(fluent.getValue()); + return buildable; + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceCapacityFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceCapacityFluent.java new file mode 100644 index 0000000000..7e278fde8c --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceCapacityFluent.java @@ -0,0 +1,68 @@ +package io.kubernetes.client.openapi.models; + +import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.custom.Quantity; +import java.lang.Object; +import java.lang.String; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1beta2DeviceCapacityFluent> extends BaseFluent{ + public V1beta2DeviceCapacityFluent() { + } + + public V1beta2DeviceCapacityFluent(V1beta2DeviceCapacity instance) { + this.copyInstance(instance); + } + private Quantity value; + + protected void copyInstance(V1beta2DeviceCapacity instance) { + instance = (instance != null ? instance : new V1beta2DeviceCapacity()); + if (instance != null) { + this.withValue(instance.getValue()); + } + } + + public Quantity getValue() { + return this.value; + } + + public A withValue(Quantity value) { + this.value = value; + return (A) this; + } + + public boolean hasValue() { + return this.value != null; + } + + public A withNewValue(String value) { + return (A)withValue(new Quantity(value)); + } + + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + if (!super.equals(o)) return false; + V1beta2DeviceCapacityFluent that = (V1beta2DeviceCapacityFluent) o; + if (!java.util.Objects.equals(value, that.value)) return false; + return true; + } + + public int hashCode() { + return java.util.Objects.hash(value, super.hashCode()); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (value != null) { sb.append("value:"); sb.append(value); } + sb.append("}"); + return sb.toString(); + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceClaimBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceClaimBuilder.java new file mode 100644 index 0000000000..b3f8ec86d7 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceClaimBuilder.java @@ -0,0 +1,33 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +public class V1beta2DeviceClaimBuilder extends V1beta2DeviceClaimFluent implements VisitableBuilder{ + public V1beta2DeviceClaimBuilder() { + this(new V1beta2DeviceClaim()); + } + + public V1beta2DeviceClaimBuilder(V1beta2DeviceClaimFluent fluent) { + this(fluent, new V1beta2DeviceClaim()); + } + + public V1beta2DeviceClaimBuilder(V1beta2DeviceClaimFluent fluent,V1beta2DeviceClaim instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1beta2DeviceClaimBuilder(V1beta2DeviceClaim instance) { + this.fluent = this; + this.copyInstance(instance); + } + V1beta2DeviceClaimFluent fluent; + + public V1beta2DeviceClaim build() { + V1beta2DeviceClaim buildable = new V1beta2DeviceClaim(); + buildable.setConfig(fluent.buildConfig()); + buildable.setConstraints(fluent.buildConstraints()); + buildable.setRequests(fluent.buildRequests()); + return buildable; + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceClaimConfigurationBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceClaimConfigurationBuilder.java new file mode 100644 index 0000000000..728e2bf90c --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceClaimConfigurationBuilder.java @@ -0,0 +1,32 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +public class V1beta2DeviceClaimConfigurationBuilder extends V1beta2DeviceClaimConfigurationFluent implements VisitableBuilder{ + public V1beta2DeviceClaimConfigurationBuilder() { + this(new V1beta2DeviceClaimConfiguration()); + } + + public V1beta2DeviceClaimConfigurationBuilder(V1beta2DeviceClaimConfigurationFluent fluent) { + this(fluent, new V1beta2DeviceClaimConfiguration()); + } + + public V1beta2DeviceClaimConfigurationBuilder(V1beta2DeviceClaimConfigurationFluent fluent,V1beta2DeviceClaimConfiguration instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1beta2DeviceClaimConfigurationBuilder(V1beta2DeviceClaimConfiguration instance) { + this.fluent = this; + this.copyInstance(instance); + } + V1beta2DeviceClaimConfigurationFluent fluent; + + public V1beta2DeviceClaimConfiguration build() { + V1beta2DeviceClaimConfiguration buildable = new V1beta2DeviceClaimConfiguration(); + buildable.setOpaque(fluent.buildOpaque()); + buildable.setRequests(fluent.getRequests()); + return buildable; + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceClaimConfigurationFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceClaimConfigurationFluent.java new file mode 100644 index 0000000000..62dedb1471 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceClaimConfigurationFluent.java @@ -0,0 +1,208 @@ +package io.kubernetes.client.openapi.models; + +import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.Nested; +import java.util.ArrayList; +import java.lang.String; +import java.util.function.Predicate; +import io.kubernetes.client.fluent.BaseFluent; +import java.util.Collection; +import java.lang.Object; +import java.util.List; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1beta2DeviceClaimConfigurationFluent> extends BaseFluent{ + public V1beta2DeviceClaimConfigurationFluent() { + } + + public V1beta2DeviceClaimConfigurationFluent(V1beta2DeviceClaimConfiguration instance) { + this.copyInstance(instance); + } + private V1beta2OpaqueDeviceConfigurationBuilder opaque; + private List requests; + + protected void copyInstance(V1beta2DeviceClaimConfiguration instance) { + instance = (instance != null ? instance : new V1beta2DeviceClaimConfiguration()); + if (instance != null) { + this.withOpaque(instance.getOpaque()); + this.withRequests(instance.getRequests()); + } + } + + public V1beta2OpaqueDeviceConfiguration buildOpaque() { + return this.opaque != null ? this.opaque.build() : null; + } + + public A withOpaque(V1beta2OpaqueDeviceConfiguration opaque) { + this._visitables.remove("opaque"); + if (opaque != null) { + this.opaque = new V1beta2OpaqueDeviceConfigurationBuilder(opaque); + this._visitables.get("opaque").add(this.opaque); + } else { + this.opaque = null; + this._visitables.get("opaque").remove(this.opaque); + } + return (A) this; + } + + public boolean hasOpaque() { + return this.opaque != null; + } + + public OpaqueNested withNewOpaque() { + return new OpaqueNested(null); + } + + public OpaqueNested withNewOpaqueLike(V1beta2OpaqueDeviceConfiguration item) { + return new OpaqueNested(item); + } + + public OpaqueNested editOpaque() { + return withNewOpaqueLike(java.util.Optional.ofNullable(buildOpaque()).orElse(null)); + } + + public OpaqueNested editOrNewOpaque() { + return withNewOpaqueLike(java.util.Optional.ofNullable(buildOpaque()).orElse(new V1beta2OpaqueDeviceConfigurationBuilder().build())); + } + + public OpaqueNested editOrNewOpaqueLike(V1beta2OpaqueDeviceConfiguration item) { + return withNewOpaqueLike(java.util.Optional.ofNullable(buildOpaque()).orElse(item)); + } + + public A addToRequests(int index,String item) { + if (this.requests == null) {this.requests = new ArrayList();} + this.requests.add(index, item); + return (A)this; + } + + public A setToRequests(int index,String item) { + if (this.requests == null) {this.requests = new ArrayList();} + this.requests.set(index, item); return (A)this; + } + + public A addToRequests(java.lang.String... items) { + if (this.requests == null) {this.requests = new ArrayList();} + for (String item : items) {this.requests.add(item);} return (A)this; + } + + public A addAllToRequests(Collection items) { + if (this.requests == null) {this.requests = new ArrayList();} + for (String item : items) {this.requests.add(item);} return (A)this; + } + + public A removeFromRequests(java.lang.String... items) { + if (this.requests == null) return (A)this; + for (String item : items) { this.requests.remove(item);} return (A)this; + } + + public A removeAllFromRequests(Collection items) { + if (this.requests == null) return (A)this; + for (String item : items) { this.requests.remove(item);} return (A)this; + } + + public List getRequests() { + return this.requests; + } + + public String getRequest(int index) { + return this.requests.get(index); + } + + public String getFirstRequest() { + return this.requests.get(0); + } + + public String getLastRequest() { + return this.requests.get(requests.size() - 1); + } + + public String getMatchingRequest(Predicate predicate) { + for (String item : requests) { + if (predicate.test(item)) { + return item; + } + } + return null; + } + + public boolean hasMatchingRequest(Predicate predicate) { + for (String item : requests) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public A withRequests(List requests) { + if (requests != null) { + this.requests = new ArrayList(); + for (String item : requests) { + this.addToRequests(item); + } + } else { + this.requests = null; + } + return (A) this; + } + + public A withRequests(java.lang.String... requests) { + if (this.requests != null) { + this.requests.clear(); + _visitables.remove("requests"); + } + if (requests != null) { + for (String item : requests) { + this.addToRequests(item); + } + } + return (A) this; + } + + public boolean hasRequests() { + return this.requests != null && !this.requests.isEmpty(); + } + + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + if (!super.equals(o)) return false; + V1beta2DeviceClaimConfigurationFluent that = (V1beta2DeviceClaimConfigurationFluent) o; + if (!java.util.Objects.equals(opaque, that.opaque)) return false; + if (!java.util.Objects.equals(requests, that.requests)) return false; + return true; + } + + public int hashCode() { + return java.util.Objects.hash(opaque, requests, super.hashCode()); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (opaque != null) { sb.append("opaque:"); sb.append(opaque + ","); } + if (requests != null && !requests.isEmpty()) { sb.append("requests:"); sb.append(requests); } + sb.append("}"); + return sb.toString(); + } + public class OpaqueNested extends V1beta2OpaqueDeviceConfigurationFluent> implements Nested{ + OpaqueNested(V1beta2OpaqueDeviceConfiguration item) { + this.builder = new V1beta2OpaqueDeviceConfigurationBuilder(this, item); + } + V1beta2OpaqueDeviceConfigurationBuilder builder; + + public N and() { + return (N) V1beta2DeviceClaimConfigurationFluent.this.withOpaque(builder.build()); + } + + public N endOpaque() { + return and(); + } + + + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceClaimFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceClaimFluent.java new file mode 100644 index 0000000000..5860c18c0d --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceClaimFluent.java @@ -0,0 +1,607 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.Nested; +import java.util.ArrayList; +import java.lang.String; +import java.util.function.Predicate; +import io.kubernetes.client.fluent.BaseFluent; +import java.util.Iterator; +import java.util.List; +import java.util.Collection; +import java.lang.Object; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1beta2DeviceClaimFluent> extends BaseFluent{ + public V1beta2DeviceClaimFluent() { + } + + public V1beta2DeviceClaimFluent(V1beta2DeviceClaim instance) { + this.copyInstance(instance); + } + private ArrayList config; + private ArrayList constraints; + private ArrayList requests; + + protected void copyInstance(V1beta2DeviceClaim instance) { + instance = (instance != null ? instance : new V1beta2DeviceClaim()); + if (instance != null) { + this.withConfig(instance.getConfig()); + this.withConstraints(instance.getConstraints()); + this.withRequests(instance.getRequests()); + } + } + + public A addToConfig(int index,V1beta2DeviceClaimConfiguration item) { + if (this.config == null) {this.config = new ArrayList();} + V1beta2DeviceClaimConfigurationBuilder builder = new V1beta2DeviceClaimConfigurationBuilder(item); + if (index < 0 || index >= config.size()) { + _visitables.get("config").add(builder); + config.add(builder); + } else { + _visitables.get("config").add(builder); + config.add(index, builder); + } + return (A)this; + } + + public A setToConfig(int index,V1beta2DeviceClaimConfiguration item) { + if (this.config == null) {this.config = new ArrayList();} + V1beta2DeviceClaimConfigurationBuilder builder = new V1beta2DeviceClaimConfigurationBuilder(item); + if (index < 0 || index >= config.size()) { + _visitables.get("config").add(builder); + config.add(builder); + } else { + _visitables.get("config").add(builder); + config.set(index, builder); + } + return (A)this; + } + + public A addToConfig(io.kubernetes.client.openapi.models.V1beta2DeviceClaimConfiguration... items) { + if (this.config == null) {this.config = new ArrayList();} + for (V1beta2DeviceClaimConfiguration item : items) {V1beta2DeviceClaimConfigurationBuilder builder = new V1beta2DeviceClaimConfigurationBuilder(item);_visitables.get("config").add(builder);this.config.add(builder);} return (A)this; + } + + public A addAllToConfig(Collection items) { + if (this.config == null) {this.config = new ArrayList();} + for (V1beta2DeviceClaimConfiguration item : items) {V1beta2DeviceClaimConfigurationBuilder builder = new V1beta2DeviceClaimConfigurationBuilder(item);_visitables.get("config").add(builder);this.config.add(builder);} return (A)this; + } + + public A removeFromConfig(io.kubernetes.client.openapi.models.V1beta2DeviceClaimConfiguration... items) { + if (this.config == null) return (A)this; + for (V1beta2DeviceClaimConfiguration item : items) {V1beta2DeviceClaimConfigurationBuilder builder = new V1beta2DeviceClaimConfigurationBuilder(item);_visitables.get("config").remove(builder); this.config.remove(builder);} return (A)this; + } + + public A removeAllFromConfig(Collection items) { + if (this.config == null) return (A)this; + for (V1beta2DeviceClaimConfiguration item : items) {V1beta2DeviceClaimConfigurationBuilder builder = new V1beta2DeviceClaimConfigurationBuilder(item);_visitables.get("config").remove(builder); this.config.remove(builder);} return (A)this; + } + + public A removeMatchingFromConfig(Predicate predicate) { + if (config == null) return (A) this; + final Iterator each = config.iterator(); + final List visitables = _visitables.get("config"); + while (each.hasNext()) { + V1beta2DeviceClaimConfigurationBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A)this; + } + + public List buildConfig() { + return this.config != null ? build(config) : null; + } + + public V1beta2DeviceClaimConfiguration buildConfig(int index) { + return this.config.get(index).build(); + } + + public V1beta2DeviceClaimConfiguration buildFirstConfig() { + return this.config.get(0).build(); + } + + public V1beta2DeviceClaimConfiguration buildLastConfig() { + return this.config.get(config.size() - 1).build(); + } + + public V1beta2DeviceClaimConfiguration buildMatchingConfig(Predicate predicate) { + for (V1beta2DeviceClaimConfigurationBuilder item : config) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; + } + + public boolean hasMatchingConfig(Predicate predicate) { + for (V1beta2DeviceClaimConfigurationBuilder item : config) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public A withConfig(List config) { + if (this.config != null) { + this._visitables.get("config").clear(); + } + if (config != null) { + this.config = new ArrayList(); + for (V1beta2DeviceClaimConfiguration item : config) { + this.addToConfig(item); + } + } else { + this.config = null; + } + return (A) this; + } + + public A withConfig(io.kubernetes.client.openapi.models.V1beta2DeviceClaimConfiguration... config) { + if (this.config != null) { + this.config.clear(); + _visitables.remove("config"); + } + if (config != null) { + for (V1beta2DeviceClaimConfiguration item : config) { + this.addToConfig(item); + } + } + return (A) this; + } + + public boolean hasConfig() { + return this.config != null && !this.config.isEmpty(); + } + + public ConfigNested addNewConfig() { + return new ConfigNested(-1, null); + } + + public ConfigNested addNewConfigLike(V1beta2DeviceClaimConfiguration item) { + return new ConfigNested(-1, item); + } + + public ConfigNested setNewConfigLike(int index,V1beta2DeviceClaimConfiguration item) { + return new ConfigNested(index, item); + } + + public ConfigNested editConfig(int index) { + if (config.size() <= index) throw new RuntimeException("Can't edit config. Index exceeds size."); + return setNewConfigLike(index, buildConfig(index)); + } + + public ConfigNested editFirstConfig() { + if (config.size() == 0) throw new RuntimeException("Can't edit first config. The list is empty."); + return setNewConfigLike(0, buildConfig(0)); + } + + public ConfigNested editLastConfig() { + int index = config.size() - 1; + if (index < 0) throw new RuntimeException("Can't edit last config. The list is empty."); + return setNewConfigLike(index, buildConfig(index)); + } + + public ConfigNested editMatchingConfig(Predicate predicate) { + int index = -1; + for (int i=0;i();} + V1beta2DeviceConstraintBuilder builder = new V1beta2DeviceConstraintBuilder(item); + if (index < 0 || index >= constraints.size()) { + _visitables.get("constraints").add(builder); + constraints.add(builder); + } else { + _visitables.get("constraints").add(builder); + constraints.add(index, builder); + } + return (A)this; + } + + public A setToConstraints(int index,V1beta2DeviceConstraint item) { + if (this.constraints == null) {this.constraints = new ArrayList();} + V1beta2DeviceConstraintBuilder builder = new V1beta2DeviceConstraintBuilder(item); + if (index < 0 || index >= constraints.size()) { + _visitables.get("constraints").add(builder); + constraints.add(builder); + } else { + _visitables.get("constraints").add(builder); + constraints.set(index, builder); + } + return (A)this; + } + + public A addToConstraints(io.kubernetes.client.openapi.models.V1beta2DeviceConstraint... items) { + if (this.constraints == null) {this.constraints = new ArrayList();} + for (V1beta2DeviceConstraint item : items) {V1beta2DeviceConstraintBuilder builder = new V1beta2DeviceConstraintBuilder(item);_visitables.get("constraints").add(builder);this.constraints.add(builder);} return (A)this; + } + + public A addAllToConstraints(Collection items) { + if (this.constraints == null) {this.constraints = new ArrayList();} + for (V1beta2DeviceConstraint item : items) {V1beta2DeviceConstraintBuilder builder = new V1beta2DeviceConstraintBuilder(item);_visitables.get("constraints").add(builder);this.constraints.add(builder);} return (A)this; + } + + public A removeFromConstraints(io.kubernetes.client.openapi.models.V1beta2DeviceConstraint... items) { + if (this.constraints == null) return (A)this; + for (V1beta2DeviceConstraint item : items) {V1beta2DeviceConstraintBuilder builder = new V1beta2DeviceConstraintBuilder(item);_visitables.get("constraints").remove(builder); this.constraints.remove(builder);} return (A)this; + } + + public A removeAllFromConstraints(Collection items) { + if (this.constraints == null) return (A)this; + for (V1beta2DeviceConstraint item : items) {V1beta2DeviceConstraintBuilder builder = new V1beta2DeviceConstraintBuilder(item);_visitables.get("constraints").remove(builder); this.constraints.remove(builder);} return (A)this; + } + + public A removeMatchingFromConstraints(Predicate predicate) { + if (constraints == null) return (A) this; + final Iterator each = constraints.iterator(); + final List visitables = _visitables.get("constraints"); + while (each.hasNext()) { + V1beta2DeviceConstraintBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A)this; + } + + public List buildConstraints() { + return this.constraints != null ? build(constraints) : null; + } + + public V1beta2DeviceConstraint buildConstraint(int index) { + return this.constraints.get(index).build(); + } + + public V1beta2DeviceConstraint buildFirstConstraint() { + return this.constraints.get(0).build(); + } + + public V1beta2DeviceConstraint buildLastConstraint() { + return this.constraints.get(constraints.size() - 1).build(); + } + + public V1beta2DeviceConstraint buildMatchingConstraint(Predicate predicate) { + for (V1beta2DeviceConstraintBuilder item : constraints) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; + } + + public boolean hasMatchingConstraint(Predicate predicate) { + for (V1beta2DeviceConstraintBuilder item : constraints) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public A withConstraints(List constraints) { + if (this.constraints != null) { + this._visitables.get("constraints").clear(); + } + if (constraints != null) { + this.constraints = new ArrayList(); + for (V1beta2DeviceConstraint item : constraints) { + this.addToConstraints(item); + } + } else { + this.constraints = null; + } + return (A) this; + } + + public A withConstraints(io.kubernetes.client.openapi.models.V1beta2DeviceConstraint... constraints) { + if (this.constraints != null) { + this.constraints.clear(); + _visitables.remove("constraints"); + } + if (constraints != null) { + for (V1beta2DeviceConstraint item : constraints) { + this.addToConstraints(item); + } + } + return (A) this; + } + + public boolean hasConstraints() { + return this.constraints != null && !this.constraints.isEmpty(); + } + + public ConstraintsNested addNewConstraint() { + return new ConstraintsNested(-1, null); + } + + public ConstraintsNested addNewConstraintLike(V1beta2DeviceConstraint item) { + return new ConstraintsNested(-1, item); + } + + public ConstraintsNested setNewConstraintLike(int index,V1beta2DeviceConstraint item) { + return new ConstraintsNested(index, item); + } + + public ConstraintsNested editConstraint(int index) { + if (constraints.size() <= index) throw new RuntimeException("Can't edit constraints. Index exceeds size."); + return setNewConstraintLike(index, buildConstraint(index)); + } + + public ConstraintsNested editFirstConstraint() { + if (constraints.size() == 0) throw new RuntimeException("Can't edit first constraints. The list is empty."); + return setNewConstraintLike(0, buildConstraint(0)); + } + + public ConstraintsNested editLastConstraint() { + int index = constraints.size() - 1; + if (index < 0) throw new RuntimeException("Can't edit last constraints. The list is empty."); + return setNewConstraintLike(index, buildConstraint(index)); + } + + public ConstraintsNested editMatchingConstraint(Predicate predicate) { + int index = -1; + for (int i=0;i();} + V1beta2DeviceRequestBuilder builder = new V1beta2DeviceRequestBuilder(item); + if (index < 0 || index >= requests.size()) { + _visitables.get("requests").add(builder); + requests.add(builder); + } else { + _visitables.get("requests").add(builder); + requests.add(index, builder); + } + return (A)this; + } + + public A setToRequests(int index,V1beta2DeviceRequest item) { + if (this.requests == null) {this.requests = new ArrayList();} + V1beta2DeviceRequestBuilder builder = new V1beta2DeviceRequestBuilder(item); + if (index < 0 || index >= requests.size()) { + _visitables.get("requests").add(builder); + requests.add(builder); + } else { + _visitables.get("requests").add(builder); + requests.set(index, builder); + } + return (A)this; + } + + public A addToRequests(io.kubernetes.client.openapi.models.V1beta2DeviceRequest... items) { + if (this.requests == null) {this.requests = new ArrayList();} + for (V1beta2DeviceRequest item : items) {V1beta2DeviceRequestBuilder builder = new V1beta2DeviceRequestBuilder(item);_visitables.get("requests").add(builder);this.requests.add(builder);} return (A)this; + } + + public A addAllToRequests(Collection items) { + if (this.requests == null) {this.requests = new ArrayList();} + for (V1beta2DeviceRequest item : items) {V1beta2DeviceRequestBuilder builder = new V1beta2DeviceRequestBuilder(item);_visitables.get("requests").add(builder);this.requests.add(builder);} return (A)this; + } + + public A removeFromRequests(io.kubernetes.client.openapi.models.V1beta2DeviceRequest... items) { + if (this.requests == null) return (A)this; + for (V1beta2DeviceRequest item : items) {V1beta2DeviceRequestBuilder builder = new V1beta2DeviceRequestBuilder(item);_visitables.get("requests").remove(builder); this.requests.remove(builder);} return (A)this; + } + + public A removeAllFromRequests(Collection items) { + if (this.requests == null) return (A)this; + for (V1beta2DeviceRequest item : items) {V1beta2DeviceRequestBuilder builder = new V1beta2DeviceRequestBuilder(item);_visitables.get("requests").remove(builder); this.requests.remove(builder);} return (A)this; + } + + public A removeMatchingFromRequests(Predicate predicate) { + if (requests == null) return (A) this; + final Iterator each = requests.iterator(); + final List visitables = _visitables.get("requests"); + while (each.hasNext()) { + V1beta2DeviceRequestBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A)this; + } + + public List buildRequests() { + return this.requests != null ? build(requests) : null; + } + + public V1beta2DeviceRequest buildRequest(int index) { + return this.requests.get(index).build(); + } + + public V1beta2DeviceRequest buildFirstRequest() { + return this.requests.get(0).build(); + } + + public V1beta2DeviceRequest buildLastRequest() { + return this.requests.get(requests.size() - 1).build(); + } + + public V1beta2DeviceRequest buildMatchingRequest(Predicate predicate) { + for (V1beta2DeviceRequestBuilder item : requests) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; + } + + public boolean hasMatchingRequest(Predicate predicate) { + for (V1beta2DeviceRequestBuilder item : requests) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public A withRequests(List requests) { + if (this.requests != null) { + this._visitables.get("requests").clear(); + } + if (requests != null) { + this.requests = new ArrayList(); + for (V1beta2DeviceRequest item : requests) { + this.addToRequests(item); + } + } else { + this.requests = null; + } + return (A) this; + } + + public A withRequests(io.kubernetes.client.openapi.models.V1beta2DeviceRequest... requests) { + if (this.requests != null) { + this.requests.clear(); + _visitables.remove("requests"); + } + if (requests != null) { + for (V1beta2DeviceRequest item : requests) { + this.addToRequests(item); + } + } + return (A) this; + } + + public boolean hasRequests() { + return this.requests != null && !this.requests.isEmpty(); + } + + public RequestsNested addNewRequest() { + return new RequestsNested(-1, null); + } + + public RequestsNested addNewRequestLike(V1beta2DeviceRequest item) { + return new RequestsNested(-1, item); + } + + public RequestsNested setNewRequestLike(int index,V1beta2DeviceRequest item) { + return new RequestsNested(index, item); + } + + public RequestsNested editRequest(int index) { + if (requests.size() <= index) throw new RuntimeException("Can't edit requests. Index exceeds size."); + return setNewRequestLike(index, buildRequest(index)); + } + + public RequestsNested editFirstRequest() { + if (requests.size() == 0) throw new RuntimeException("Can't edit first requests. The list is empty."); + return setNewRequestLike(0, buildRequest(0)); + } + + public RequestsNested editLastRequest() { + int index = requests.size() - 1; + if (index < 0) throw new RuntimeException("Can't edit last requests. The list is empty."); + return setNewRequestLike(index, buildRequest(index)); + } + + public RequestsNested editMatchingRequest(Predicate predicate) { + int index = -1; + for (int i=0;i extends V1beta2DeviceClaimConfigurationFluent> implements Nested{ + ConfigNested(int index,V1beta2DeviceClaimConfiguration item) { + this.index = index; + this.builder = new V1beta2DeviceClaimConfigurationBuilder(this, item); + } + V1beta2DeviceClaimConfigurationBuilder builder; + int index; + + public N and() { + return (N) V1beta2DeviceClaimFluent.this.setToConfig(index,builder.build()); + } + + public N endConfig() { + return and(); + } + + + } + public class ConstraintsNested extends V1beta2DeviceConstraintFluent> implements Nested{ + ConstraintsNested(int index,V1beta2DeviceConstraint item) { + this.index = index; + this.builder = new V1beta2DeviceConstraintBuilder(this, item); + } + V1beta2DeviceConstraintBuilder builder; + int index; + + public N and() { + return (N) V1beta2DeviceClaimFluent.this.setToConstraints(index,builder.build()); + } + + public N endConstraint() { + return and(); + } + + + } + public class RequestsNested extends V1beta2DeviceRequestFluent> implements Nested{ + RequestsNested(int index,V1beta2DeviceRequest item) { + this.index = index; + this.builder = new V1beta2DeviceRequestBuilder(this, item); + } + V1beta2DeviceRequestBuilder builder; + int index; + + public N and() { + return (N) V1beta2DeviceClaimFluent.this.setToRequests(index,builder.build()); + } + + public N endRequest() { + return and(); + } + + + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceClassBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceClassBuilder.java new file mode 100644 index 0000000000..2198389d52 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceClassBuilder.java @@ -0,0 +1,34 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +public class V1beta2DeviceClassBuilder extends V1beta2DeviceClassFluent implements VisitableBuilder{ + public V1beta2DeviceClassBuilder() { + this(new V1beta2DeviceClass()); + } + + public V1beta2DeviceClassBuilder(V1beta2DeviceClassFluent fluent) { + this(fluent, new V1beta2DeviceClass()); + } + + public V1beta2DeviceClassBuilder(V1beta2DeviceClassFluent fluent,V1beta2DeviceClass instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1beta2DeviceClassBuilder(V1beta2DeviceClass instance) { + this.fluent = this; + this.copyInstance(instance); + } + V1beta2DeviceClassFluent fluent; + + public V1beta2DeviceClass build() { + V1beta2DeviceClass buildable = new V1beta2DeviceClass(); + buildable.setApiVersion(fluent.getApiVersion()); + buildable.setKind(fluent.getKind()); + buildable.setMetadata(fluent.buildMetadata()); + buildable.setSpec(fluent.buildSpec()); + return buildable; + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceClassConfigurationBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceClassConfigurationBuilder.java new file mode 100644 index 0000000000..6bdd6f1a4d --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceClassConfigurationBuilder.java @@ -0,0 +1,31 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +public class V1beta2DeviceClassConfigurationBuilder extends V1beta2DeviceClassConfigurationFluent implements VisitableBuilder{ + public V1beta2DeviceClassConfigurationBuilder() { + this(new V1beta2DeviceClassConfiguration()); + } + + public V1beta2DeviceClassConfigurationBuilder(V1beta2DeviceClassConfigurationFluent fluent) { + this(fluent, new V1beta2DeviceClassConfiguration()); + } + + public V1beta2DeviceClassConfigurationBuilder(V1beta2DeviceClassConfigurationFluent fluent,V1beta2DeviceClassConfiguration instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1beta2DeviceClassConfigurationBuilder(V1beta2DeviceClassConfiguration instance) { + this.fluent = this; + this.copyInstance(instance); + } + V1beta2DeviceClassConfigurationFluent fluent; + + public V1beta2DeviceClassConfiguration build() { + V1beta2DeviceClassConfiguration buildable = new V1beta2DeviceClassConfiguration(); + buildable.setOpaque(fluent.buildOpaque()); + return buildable; + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceClassConfigurationFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceClassConfigurationFluent.java new file mode 100644 index 0000000000..712740dd81 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceClassConfigurationFluent.java @@ -0,0 +1,106 @@ +package io.kubernetes.client.openapi.models; + +import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Object; +import java.lang.String; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1beta2DeviceClassConfigurationFluent> extends BaseFluent{ + public V1beta2DeviceClassConfigurationFluent() { + } + + public V1beta2DeviceClassConfigurationFluent(V1beta2DeviceClassConfiguration instance) { + this.copyInstance(instance); + } + private V1beta2OpaqueDeviceConfigurationBuilder opaque; + + protected void copyInstance(V1beta2DeviceClassConfiguration instance) { + instance = (instance != null ? instance : new V1beta2DeviceClassConfiguration()); + if (instance != null) { + this.withOpaque(instance.getOpaque()); + } + } + + public V1beta2OpaqueDeviceConfiguration buildOpaque() { + return this.opaque != null ? this.opaque.build() : null; + } + + public A withOpaque(V1beta2OpaqueDeviceConfiguration opaque) { + this._visitables.remove("opaque"); + if (opaque != null) { + this.opaque = new V1beta2OpaqueDeviceConfigurationBuilder(opaque); + this._visitables.get("opaque").add(this.opaque); + } else { + this.opaque = null; + this._visitables.get("opaque").remove(this.opaque); + } + return (A) this; + } + + public boolean hasOpaque() { + return this.opaque != null; + } + + public OpaqueNested withNewOpaque() { + return new OpaqueNested(null); + } + + public OpaqueNested withNewOpaqueLike(V1beta2OpaqueDeviceConfiguration item) { + return new OpaqueNested(item); + } + + public OpaqueNested editOpaque() { + return withNewOpaqueLike(java.util.Optional.ofNullable(buildOpaque()).orElse(null)); + } + + public OpaqueNested editOrNewOpaque() { + return withNewOpaqueLike(java.util.Optional.ofNullable(buildOpaque()).orElse(new V1beta2OpaqueDeviceConfigurationBuilder().build())); + } + + public OpaqueNested editOrNewOpaqueLike(V1beta2OpaqueDeviceConfiguration item) { + return withNewOpaqueLike(java.util.Optional.ofNullable(buildOpaque()).orElse(item)); + } + + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + if (!super.equals(o)) return false; + V1beta2DeviceClassConfigurationFluent that = (V1beta2DeviceClassConfigurationFluent) o; + if (!java.util.Objects.equals(opaque, that.opaque)) return false; + return true; + } + + public int hashCode() { + return java.util.Objects.hash(opaque, super.hashCode()); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (opaque != null) { sb.append("opaque:"); sb.append(opaque); } + sb.append("}"); + return sb.toString(); + } + public class OpaqueNested extends V1beta2OpaqueDeviceConfigurationFluent> implements Nested{ + OpaqueNested(V1beta2OpaqueDeviceConfiguration item) { + this.builder = new V1beta2OpaqueDeviceConfigurationBuilder(this, item); + } + V1beta2OpaqueDeviceConfigurationBuilder builder; + + public N and() { + return (N) V1beta2DeviceClassConfigurationFluent.this.withOpaque(builder.build()); + } + + public N endOpaque() { + return and(); + } + + + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceClassFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceClassFluent.java new file mode 100644 index 0000000000..f89eec41d6 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceClassFluent.java @@ -0,0 +1,200 @@ +package io.kubernetes.client.openapi.models; + +import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.Nested; +import java.lang.String; +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Object; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1beta2DeviceClassFluent> extends BaseFluent{ + public V1beta2DeviceClassFluent() { + } + + public V1beta2DeviceClassFluent(V1beta2DeviceClass instance) { + this.copyInstance(instance); + } + private String apiVersion; + private String kind; + private V1ObjectMetaBuilder metadata; + private V1beta2DeviceClassSpecBuilder spec; + + protected void copyInstance(V1beta2DeviceClass instance) { + instance = (instance != null ? instance : new V1beta2DeviceClass()); + if (instance != null) { + this.withApiVersion(instance.getApiVersion()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); + this.withSpec(instance.getSpec()); + } + } + + public String getApiVersion() { + return this.apiVersion; + } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + + public boolean hasApiVersion() { + return this.apiVersion != null; + } + + public String getKind() { + return this.kind; + } + + public A withKind(String kind) { + this.kind = kind; + return (A) this; + } + + public boolean hasKind() { + return this.kind != null; + } + + public V1ObjectMeta buildMetadata() { + return this.metadata != null ? this.metadata.build() : null; + } + + public A withMetadata(V1ObjectMeta metadata) { + this._visitables.remove("metadata"); + if (metadata != null) { + this.metadata = new V1ObjectMetaBuilder(metadata); + this._visitables.get("metadata").add(this.metadata); + } else { + this.metadata = null; + this._visitables.get("metadata").remove(this.metadata); + } + return (A) this; + } + + public boolean hasMetadata() { + return this.metadata != null; + } + + public MetadataNested withNewMetadata() { + return new MetadataNested(null); + } + + public MetadataNested withNewMetadataLike(V1ObjectMeta item) { + return new MetadataNested(item); + } + + public MetadataNested editMetadata() { + return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(null)); + } + + public MetadataNested editOrNewMetadata() { + return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(new V1ObjectMetaBuilder().build())); + } + + public MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { + return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(item)); + } + + public V1beta2DeviceClassSpec buildSpec() { + return this.spec != null ? this.spec.build() : null; + } + + public A withSpec(V1beta2DeviceClassSpec spec) { + this._visitables.remove("spec"); + if (spec != null) { + this.spec = new V1beta2DeviceClassSpecBuilder(spec); + this._visitables.get("spec").add(this.spec); + } else { + this.spec = null; + this._visitables.get("spec").remove(this.spec); + } + return (A) this; + } + + public boolean hasSpec() { + return this.spec != null; + } + + public SpecNested withNewSpec() { + return new SpecNested(null); + } + + public SpecNested withNewSpecLike(V1beta2DeviceClassSpec item) { + return new SpecNested(item); + } + + public SpecNested editSpec() { + return withNewSpecLike(java.util.Optional.ofNullable(buildSpec()).orElse(null)); + } + + public SpecNested editOrNewSpec() { + return withNewSpecLike(java.util.Optional.ofNullable(buildSpec()).orElse(new V1beta2DeviceClassSpecBuilder().build())); + } + + public SpecNested editOrNewSpecLike(V1beta2DeviceClassSpec item) { + return withNewSpecLike(java.util.Optional.ofNullable(buildSpec()).orElse(item)); + } + + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + if (!super.equals(o)) return false; + V1beta2DeviceClassFluent that = (V1beta2DeviceClassFluent) o; + if (!java.util.Objects.equals(apiVersion, that.apiVersion)) return false; + if (!java.util.Objects.equals(kind, that.kind)) return false; + if (!java.util.Objects.equals(metadata, that.metadata)) return false; + if (!java.util.Objects.equals(spec, that.spec)) return false; + return true; + } + + public int hashCode() { + return java.util.Objects.hash(apiVersion, kind, metadata, spec, super.hashCode()); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (apiVersion != null) { sb.append("apiVersion:"); sb.append(apiVersion + ","); } + if (kind != null) { sb.append("kind:"); sb.append(kind + ","); } + if (metadata != null) { sb.append("metadata:"); sb.append(metadata + ","); } + if (spec != null) { sb.append("spec:"); sb.append(spec); } + sb.append("}"); + return sb.toString(); + } + public class MetadataNested extends V1ObjectMetaFluent> implements Nested{ + MetadataNested(V1ObjectMeta item) { + this.builder = new V1ObjectMetaBuilder(this, item); + } + V1ObjectMetaBuilder builder; + + public N and() { + return (N) V1beta2DeviceClassFluent.this.withMetadata(builder.build()); + } + + public N endMetadata() { + return and(); + } + + + } + public class SpecNested extends V1beta2DeviceClassSpecFluent> implements Nested{ + SpecNested(V1beta2DeviceClassSpec item) { + this.builder = new V1beta2DeviceClassSpecBuilder(this, item); + } + V1beta2DeviceClassSpecBuilder builder; + + public N and() { + return (N) V1beta2DeviceClassFluent.this.withSpec(builder.build()); + } + + public N endSpec() { + return and(); + } + + + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceClassListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceClassListBuilder.java new file mode 100644 index 0000000000..757decc167 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceClassListBuilder.java @@ -0,0 +1,34 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +public class V1beta2DeviceClassListBuilder extends V1beta2DeviceClassListFluent implements VisitableBuilder{ + public V1beta2DeviceClassListBuilder() { + this(new V1beta2DeviceClassList()); + } + + public V1beta2DeviceClassListBuilder(V1beta2DeviceClassListFluent fluent) { + this(fluent, new V1beta2DeviceClassList()); + } + + public V1beta2DeviceClassListBuilder(V1beta2DeviceClassListFluent fluent,V1beta2DeviceClassList instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1beta2DeviceClassListBuilder(V1beta2DeviceClassList instance) { + this.fluent = this; + this.copyInstance(instance); + } + V1beta2DeviceClassListFluent fluent; + + public V1beta2DeviceClassList build() { + V1beta2DeviceClassList buildable = new V1beta2DeviceClassList(); + buildable.setApiVersion(fluent.getApiVersion()); + buildable.setItems(fluent.buildItems()); + buildable.setKind(fluent.getKind()); + buildable.setMetadata(fluent.buildMetadata()); + return buildable; + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceClassListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceClassListFluent.java new file mode 100644 index 0000000000..d63491ba57 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceClassListFluent.java @@ -0,0 +1,331 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.Nested; +import java.util.ArrayList; +import java.lang.String; +import java.util.function.Predicate; +import io.kubernetes.client.fluent.BaseFluent; +import java.util.Iterator; +import java.util.Collection; +import java.lang.Object; +import java.util.List; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1beta2DeviceClassListFluent> extends BaseFluent{ + public V1beta2DeviceClassListFluent() { + } + + public V1beta2DeviceClassListFluent(V1beta2DeviceClassList instance) { + this.copyInstance(instance); + } + private String apiVersion; + private ArrayList items; + private String kind; + private V1ListMetaBuilder metadata; + + protected void copyInstance(V1beta2DeviceClassList instance) { + instance = (instance != null ? instance : new V1beta2DeviceClassList()); + if (instance != null) { + this.withApiVersion(instance.getApiVersion()); + this.withItems(instance.getItems()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); + } + } + + public String getApiVersion() { + return this.apiVersion; + } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + + public boolean hasApiVersion() { + return this.apiVersion != null; + } + + public A addToItems(int index,V1beta2DeviceClass item) { + if (this.items == null) {this.items = new ArrayList();} + V1beta2DeviceClassBuilder builder = new V1beta2DeviceClassBuilder(item); + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.add(index, builder); + } + return (A)this; + } + + public A setToItems(int index,V1beta2DeviceClass item) { + if (this.items == null) {this.items = new ArrayList();} + V1beta2DeviceClassBuilder builder = new V1beta2DeviceClassBuilder(item); + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.set(index, builder); + } + return (A)this; + } + + public A addToItems(io.kubernetes.client.openapi.models.V1beta2DeviceClass... items) { + if (this.items == null) {this.items = new ArrayList();} + for (V1beta2DeviceClass item : items) {V1beta2DeviceClassBuilder builder = new V1beta2DeviceClassBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; + } + + public A addAllToItems(Collection items) { + if (this.items == null) {this.items = new ArrayList();} + for (V1beta2DeviceClass item : items) {V1beta2DeviceClassBuilder builder = new V1beta2DeviceClassBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; + } + + public A removeFromItems(io.kubernetes.client.openapi.models.V1beta2DeviceClass... items) { + if (this.items == null) return (A)this; + for (V1beta2DeviceClass item : items) {V1beta2DeviceClassBuilder builder = new V1beta2DeviceClassBuilder(item);_visitables.get("items").remove(builder); this.items.remove(builder);} return (A)this; + } + + public A removeAllFromItems(Collection items) { + if (this.items == null) return (A)this; + for (V1beta2DeviceClass item : items) {V1beta2DeviceClassBuilder builder = new V1beta2DeviceClassBuilder(item);_visitables.get("items").remove(builder); this.items.remove(builder);} return (A)this; + } + + public A removeMatchingFromItems(Predicate predicate) { + if (items == null) return (A) this; + final Iterator each = items.iterator(); + final List visitables = _visitables.get("items"); + while (each.hasNext()) { + V1beta2DeviceClassBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A)this; + } + + public List buildItems() { + return this.items != null ? build(items) : null; + } + + public V1beta2DeviceClass buildItem(int index) { + return this.items.get(index).build(); + } + + public V1beta2DeviceClass buildFirstItem() { + return this.items.get(0).build(); + } + + public V1beta2DeviceClass buildLastItem() { + return this.items.get(items.size() - 1).build(); + } + + public V1beta2DeviceClass buildMatchingItem(Predicate predicate) { + for (V1beta2DeviceClassBuilder item : items) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; + } + + public boolean hasMatchingItem(Predicate predicate) { + for (V1beta2DeviceClassBuilder item : items) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public A withItems(List items) { + if (this.items != null) { + this._visitables.get("items").clear(); + } + if (items != null) { + this.items = new ArrayList(); + for (V1beta2DeviceClass item : items) { + this.addToItems(item); + } + } else { + this.items = null; + } + return (A) this; + } + + public A withItems(io.kubernetes.client.openapi.models.V1beta2DeviceClass... items) { + if (this.items != null) { + this.items.clear(); + _visitables.remove("items"); + } + if (items != null) { + for (V1beta2DeviceClass item : items) { + this.addToItems(item); + } + } + return (A) this; + } + + public boolean hasItems() { + return this.items != null && !this.items.isEmpty(); + } + + public ItemsNested addNewItem() { + return new ItemsNested(-1, null); + } + + public ItemsNested addNewItemLike(V1beta2DeviceClass item) { + return new ItemsNested(-1, item); + } + + public ItemsNested setNewItemLike(int index,V1beta2DeviceClass item) { + return new ItemsNested(index, item); + } + + public ItemsNested editItem(int index) { + if (items.size() <= index) throw new RuntimeException("Can't edit items. Index exceeds size."); + return setNewItemLike(index, buildItem(index)); + } + + public ItemsNested editFirstItem() { + if (items.size() == 0) throw new RuntimeException("Can't edit first items. The list is empty."); + return setNewItemLike(0, buildItem(0)); + } + + public ItemsNested editLastItem() { + int index = items.size() - 1; + if (index < 0) throw new RuntimeException("Can't edit last items. The list is empty."); + return setNewItemLike(index, buildItem(index)); + } + + public ItemsNested editMatchingItem(Predicate predicate) { + int index = -1; + for (int i=0;i withNewMetadata() { + return new MetadataNested(null); + } + + public MetadataNested withNewMetadataLike(V1ListMeta item) { + return new MetadataNested(item); + } + + public MetadataNested editMetadata() { + return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(null)); + } + + public MetadataNested editOrNewMetadata() { + return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(new V1ListMetaBuilder().build())); + } + + public MetadataNested editOrNewMetadataLike(V1ListMeta item) { + return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(item)); + } + + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + if (!super.equals(o)) return false; + V1beta2DeviceClassListFluent that = (V1beta2DeviceClassListFluent) o; + if (!java.util.Objects.equals(apiVersion, that.apiVersion)) return false; + if (!java.util.Objects.equals(items, that.items)) return false; + if (!java.util.Objects.equals(kind, that.kind)) return false; + if (!java.util.Objects.equals(metadata, that.metadata)) return false; + return true; + } + + public int hashCode() { + return java.util.Objects.hash(apiVersion, items, kind, metadata, super.hashCode()); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (apiVersion != null) { sb.append("apiVersion:"); sb.append(apiVersion + ","); } + if (items != null && !items.isEmpty()) { sb.append("items:"); sb.append(items + ","); } + if (kind != null) { sb.append("kind:"); sb.append(kind + ","); } + if (metadata != null) { sb.append("metadata:"); sb.append(metadata); } + sb.append("}"); + return sb.toString(); + } + public class ItemsNested extends V1beta2DeviceClassFluent> implements Nested{ + ItemsNested(int index,V1beta2DeviceClass item) { + this.index = index; + this.builder = new V1beta2DeviceClassBuilder(this, item); + } + V1beta2DeviceClassBuilder builder; + int index; + + public N and() { + return (N) V1beta2DeviceClassListFluent.this.setToItems(index,builder.build()); + } + + public N endItem() { + return and(); + } + + + } + public class MetadataNested extends V1ListMetaFluent> implements Nested{ + MetadataNested(V1ListMeta item) { + this.builder = new V1ListMetaBuilder(this, item); + } + V1ListMetaBuilder builder; + + public N and() { + return (N) V1beta2DeviceClassListFluent.this.withMetadata(builder.build()); + } + + public N endMetadata() { + return and(); + } + + + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceClassSpecBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceClassSpecBuilder.java new file mode 100644 index 0000000000..7ddbecb05a --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceClassSpecBuilder.java @@ -0,0 +1,32 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +public class V1beta2DeviceClassSpecBuilder extends V1beta2DeviceClassSpecFluent implements VisitableBuilder{ + public V1beta2DeviceClassSpecBuilder() { + this(new V1beta2DeviceClassSpec()); + } + + public V1beta2DeviceClassSpecBuilder(V1beta2DeviceClassSpecFluent fluent) { + this(fluent, new V1beta2DeviceClassSpec()); + } + + public V1beta2DeviceClassSpecBuilder(V1beta2DeviceClassSpecFluent fluent,V1beta2DeviceClassSpec instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1beta2DeviceClassSpecBuilder(V1beta2DeviceClassSpec instance) { + this.fluent = this; + this.copyInstance(instance); + } + V1beta2DeviceClassSpecFluent fluent; + + public V1beta2DeviceClassSpec build() { + V1beta2DeviceClassSpec buildable = new V1beta2DeviceClassSpec(); + buildable.setConfig(fluent.buildConfig()); + buildable.setSelectors(fluent.buildSelectors()); + return buildable; + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceClassSpecFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceClassSpecFluent.java new file mode 100644 index 0000000000..9d39d8da88 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceClassSpecFluent.java @@ -0,0 +1,422 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.Nested; +import java.util.ArrayList; +import java.lang.String; +import java.util.function.Predicate; +import io.kubernetes.client.fluent.BaseFluent; +import java.util.Iterator; +import java.util.Collection; +import java.lang.Object; +import java.util.List; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1beta2DeviceClassSpecFluent> extends BaseFluent{ + public V1beta2DeviceClassSpecFluent() { + } + + public V1beta2DeviceClassSpecFluent(V1beta2DeviceClassSpec instance) { + this.copyInstance(instance); + } + private ArrayList config; + private ArrayList selectors; + + protected void copyInstance(V1beta2DeviceClassSpec instance) { + instance = (instance != null ? instance : new V1beta2DeviceClassSpec()); + if (instance != null) { + this.withConfig(instance.getConfig()); + this.withSelectors(instance.getSelectors()); + } + } + + public A addToConfig(int index,V1beta2DeviceClassConfiguration item) { + if (this.config == null) {this.config = new ArrayList();} + V1beta2DeviceClassConfigurationBuilder builder = new V1beta2DeviceClassConfigurationBuilder(item); + if (index < 0 || index >= config.size()) { + _visitables.get("config").add(builder); + config.add(builder); + } else { + _visitables.get("config").add(builder); + config.add(index, builder); + } + return (A)this; + } + + public A setToConfig(int index,V1beta2DeviceClassConfiguration item) { + if (this.config == null) {this.config = new ArrayList();} + V1beta2DeviceClassConfigurationBuilder builder = new V1beta2DeviceClassConfigurationBuilder(item); + if (index < 0 || index >= config.size()) { + _visitables.get("config").add(builder); + config.add(builder); + } else { + _visitables.get("config").add(builder); + config.set(index, builder); + } + return (A)this; + } + + public A addToConfig(io.kubernetes.client.openapi.models.V1beta2DeviceClassConfiguration... items) { + if (this.config == null) {this.config = new ArrayList();} + for (V1beta2DeviceClassConfiguration item : items) {V1beta2DeviceClassConfigurationBuilder builder = new V1beta2DeviceClassConfigurationBuilder(item);_visitables.get("config").add(builder);this.config.add(builder);} return (A)this; + } + + public A addAllToConfig(Collection items) { + if (this.config == null) {this.config = new ArrayList();} + for (V1beta2DeviceClassConfiguration item : items) {V1beta2DeviceClassConfigurationBuilder builder = new V1beta2DeviceClassConfigurationBuilder(item);_visitables.get("config").add(builder);this.config.add(builder);} return (A)this; + } + + public A removeFromConfig(io.kubernetes.client.openapi.models.V1beta2DeviceClassConfiguration... items) { + if (this.config == null) return (A)this; + for (V1beta2DeviceClassConfiguration item : items) {V1beta2DeviceClassConfigurationBuilder builder = new V1beta2DeviceClassConfigurationBuilder(item);_visitables.get("config").remove(builder); this.config.remove(builder);} return (A)this; + } + + public A removeAllFromConfig(Collection items) { + if (this.config == null) return (A)this; + for (V1beta2DeviceClassConfiguration item : items) {V1beta2DeviceClassConfigurationBuilder builder = new V1beta2DeviceClassConfigurationBuilder(item);_visitables.get("config").remove(builder); this.config.remove(builder);} return (A)this; + } + + public A removeMatchingFromConfig(Predicate predicate) { + if (config == null) return (A) this; + final Iterator each = config.iterator(); + final List visitables = _visitables.get("config"); + while (each.hasNext()) { + V1beta2DeviceClassConfigurationBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A)this; + } + + public List buildConfig() { + return this.config != null ? build(config) : null; + } + + public V1beta2DeviceClassConfiguration buildConfig(int index) { + return this.config.get(index).build(); + } + + public V1beta2DeviceClassConfiguration buildFirstConfig() { + return this.config.get(0).build(); + } + + public V1beta2DeviceClassConfiguration buildLastConfig() { + return this.config.get(config.size() - 1).build(); + } + + public V1beta2DeviceClassConfiguration buildMatchingConfig(Predicate predicate) { + for (V1beta2DeviceClassConfigurationBuilder item : config) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; + } + + public boolean hasMatchingConfig(Predicate predicate) { + for (V1beta2DeviceClassConfigurationBuilder item : config) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public A withConfig(List config) { + if (this.config != null) { + this._visitables.get("config").clear(); + } + if (config != null) { + this.config = new ArrayList(); + for (V1beta2DeviceClassConfiguration item : config) { + this.addToConfig(item); + } + } else { + this.config = null; + } + return (A) this; + } + + public A withConfig(io.kubernetes.client.openapi.models.V1beta2DeviceClassConfiguration... config) { + if (this.config != null) { + this.config.clear(); + _visitables.remove("config"); + } + if (config != null) { + for (V1beta2DeviceClassConfiguration item : config) { + this.addToConfig(item); + } + } + return (A) this; + } + + public boolean hasConfig() { + return this.config != null && !this.config.isEmpty(); + } + + public ConfigNested addNewConfig() { + return new ConfigNested(-1, null); + } + + public ConfigNested addNewConfigLike(V1beta2DeviceClassConfiguration item) { + return new ConfigNested(-1, item); + } + + public ConfigNested setNewConfigLike(int index,V1beta2DeviceClassConfiguration item) { + return new ConfigNested(index, item); + } + + public ConfigNested editConfig(int index) { + if (config.size() <= index) throw new RuntimeException("Can't edit config. Index exceeds size."); + return setNewConfigLike(index, buildConfig(index)); + } + + public ConfigNested editFirstConfig() { + if (config.size() == 0) throw new RuntimeException("Can't edit first config. The list is empty."); + return setNewConfigLike(0, buildConfig(0)); + } + + public ConfigNested editLastConfig() { + int index = config.size() - 1; + if (index < 0) throw new RuntimeException("Can't edit last config. The list is empty."); + return setNewConfigLike(index, buildConfig(index)); + } + + public ConfigNested editMatchingConfig(Predicate predicate) { + int index = -1; + for (int i=0;i();} + V1beta2DeviceSelectorBuilder builder = new V1beta2DeviceSelectorBuilder(item); + if (index < 0 || index >= selectors.size()) { + _visitables.get("selectors").add(builder); + selectors.add(builder); + } else { + _visitables.get("selectors").add(builder); + selectors.add(index, builder); + } + return (A)this; + } + + public A setToSelectors(int index,V1beta2DeviceSelector item) { + if (this.selectors == null) {this.selectors = new ArrayList();} + V1beta2DeviceSelectorBuilder builder = new V1beta2DeviceSelectorBuilder(item); + if (index < 0 || index >= selectors.size()) { + _visitables.get("selectors").add(builder); + selectors.add(builder); + } else { + _visitables.get("selectors").add(builder); + selectors.set(index, builder); + } + return (A)this; + } + + public A addToSelectors(io.kubernetes.client.openapi.models.V1beta2DeviceSelector... items) { + if (this.selectors == null) {this.selectors = new ArrayList();} + for (V1beta2DeviceSelector item : items) {V1beta2DeviceSelectorBuilder builder = new V1beta2DeviceSelectorBuilder(item);_visitables.get("selectors").add(builder);this.selectors.add(builder);} return (A)this; + } + + public A addAllToSelectors(Collection items) { + if (this.selectors == null) {this.selectors = new ArrayList();} + for (V1beta2DeviceSelector item : items) {V1beta2DeviceSelectorBuilder builder = new V1beta2DeviceSelectorBuilder(item);_visitables.get("selectors").add(builder);this.selectors.add(builder);} return (A)this; + } + + public A removeFromSelectors(io.kubernetes.client.openapi.models.V1beta2DeviceSelector... items) { + if (this.selectors == null) return (A)this; + for (V1beta2DeviceSelector item : items) {V1beta2DeviceSelectorBuilder builder = new V1beta2DeviceSelectorBuilder(item);_visitables.get("selectors").remove(builder); this.selectors.remove(builder);} return (A)this; + } + + public A removeAllFromSelectors(Collection items) { + if (this.selectors == null) return (A)this; + for (V1beta2DeviceSelector item : items) {V1beta2DeviceSelectorBuilder builder = new V1beta2DeviceSelectorBuilder(item);_visitables.get("selectors").remove(builder); this.selectors.remove(builder);} return (A)this; + } + + public A removeMatchingFromSelectors(Predicate predicate) { + if (selectors == null) return (A) this; + final Iterator each = selectors.iterator(); + final List visitables = _visitables.get("selectors"); + while (each.hasNext()) { + V1beta2DeviceSelectorBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A)this; + } + + public List buildSelectors() { + return this.selectors != null ? build(selectors) : null; + } + + public V1beta2DeviceSelector buildSelector(int index) { + return this.selectors.get(index).build(); + } + + public V1beta2DeviceSelector buildFirstSelector() { + return this.selectors.get(0).build(); + } + + public V1beta2DeviceSelector buildLastSelector() { + return this.selectors.get(selectors.size() - 1).build(); + } + + public V1beta2DeviceSelector buildMatchingSelector(Predicate predicate) { + for (V1beta2DeviceSelectorBuilder item : selectors) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; + } + + public boolean hasMatchingSelector(Predicate predicate) { + for (V1beta2DeviceSelectorBuilder item : selectors) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public A withSelectors(List selectors) { + if (this.selectors != null) { + this._visitables.get("selectors").clear(); + } + if (selectors != null) { + this.selectors = new ArrayList(); + for (V1beta2DeviceSelector item : selectors) { + this.addToSelectors(item); + } + } else { + this.selectors = null; + } + return (A) this; + } + + public A withSelectors(io.kubernetes.client.openapi.models.V1beta2DeviceSelector... selectors) { + if (this.selectors != null) { + this.selectors.clear(); + _visitables.remove("selectors"); + } + if (selectors != null) { + for (V1beta2DeviceSelector item : selectors) { + this.addToSelectors(item); + } + } + return (A) this; + } + + public boolean hasSelectors() { + return this.selectors != null && !this.selectors.isEmpty(); + } + + public SelectorsNested addNewSelector() { + return new SelectorsNested(-1, null); + } + + public SelectorsNested addNewSelectorLike(V1beta2DeviceSelector item) { + return new SelectorsNested(-1, item); + } + + public SelectorsNested setNewSelectorLike(int index,V1beta2DeviceSelector item) { + return new SelectorsNested(index, item); + } + + public SelectorsNested editSelector(int index) { + if (selectors.size() <= index) throw new RuntimeException("Can't edit selectors. Index exceeds size."); + return setNewSelectorLike(index, buildSelector(index)); + } + + public SelectorsNested editFirstSelector() { + if (selectors.size() == 0) throw new RuntimeException("Can't edit first selectors. The list is empty."); + return setNewSelectorLike(0, buildSelector(0)); + } + + public SelectorsNested editLastSelector() { + int index = selectors.size() - 1; + if (index < 0) throw new RuntimeException("Can't edit last selectors. The list is empty."); + return setNewSelectorLike(index, buildSelector(index)); + } + + public SelectorsNested editMatchingSelector(Predicate predicate) { + int index = -1; + for (int i=0;i extends V1beta2DeviceClassConfigurationFluent> implements Nested{ + ConfigNested(int index,V1beta2DeviceClassConfiguration item) { + this.index = index; + this.builder = new V1beta2DeviceClassConfigurationBuilder(this, item); + } + V1beta2DeviceClassConfigurationBuilder builder; + int index; + + public N and() { + return (N) V1beta2DeviceClassSpecFluent.this.setToConfig(index,builder.build()); + } + + public N endConfig() { + return and(); + } + + + } + public class SelectorsNested extends V1beta2DeviceSelectorFluent> implements Nested{ + SelectorsNested(int index,V1beta2DeviceSelector item) { + this.index = index; + this.builder = new V1beta2DeviceSelectorBuilder(this, item); + } + V1beta2DeviceSelectorBuilder builder; + int index; + + public N and() { + return (N) V1beta2DeviceClassSpecFluent.this.setToSelectors(index,builder.build()); + } + + public N endSelector() { + return and(); + } + + + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceConstraintBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceConstraintBuilder.java new file mode 100644 index 0000000000..f6c0e2c58d --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceConstraintBuilder.java @@ -0,0 +1,32 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +public class V1beta2DeviceConstraintBuilder extends V1beta2DeviceConstraintFluent implements VisitableBuilder{ + public V1beta2DeviceConstraintBuilder() { + this(new V1beta2DeviceConstraint()); + } + + public V1beta2DeviceConstraintBuilder(V1beta2DeviceConstraintFluent fluent) { + this(fluent, new V1beta2DeviceConstraint()); + } + + public V1beta2DeviceConstraintBuilder(V1beta2DeviceConstraintFluent fluent,V1beta2DeviceConstraint instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1beta2DeviceConstraintBuilder(V1beta2DeviceConstraint instance) { + this.fluent = this; + this.copyInstance(instance); + } + V1beta2DeviceConstraintFluent fluent; + + public V1beta2DeviceConstraint build() { + V1beta2DeviceConstraint buildable = new V1beta2DeviceConstraint(); + buildable.setMatchAttribute(fluent.getMatchAttribute()); + buildable.setRequests(fluent.getRequests()); + return buildable; + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceConstraintFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceConstraintFluent.java new file mode 100644 index 0000000000..a3af5e8a60 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceConstraintFluent.java @@ -0,0 +1,165 @@ +package io.kubernetes.client.openapi.models; + +import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; +import java.util.ArrayList; +import java.util.Collection; +import java.lang.Object; +import java.util.List; +import java.lang.String; +import java.util.function.Predicate; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1beta2DeviceConstraintFluent> extends BaseFluent{ + public V1beta2DeviceConstraintFluent() { + } + + public V1beta2DeviceConstraintFluent(V1beta2DeviceConstraint instance) { + this.copyInstance(instance); + } + private String matchAttribute; + private List requests; + + protected void copyInstance(V1beta2DeviceConstraint instance) { + instance = (instance != null ? instance : new V1beta2DeviceConstraint()); + if (instance != null) { + this.withMatchAttribute(instance.getMatchAttribute()); + this.withRequests(instance.getRequests()); + } + } + + public String getMatchAttribute() { + return this.matchAttribute; + } + + public A withMatchAttribute(String matchAttribute) { + this.matchAttribute = matchAttribute; + return (A) this; + } + + public boolean hasMatchAttribute() { + return this.matchAttribute != null; + } + + public A addToRequests(int index,String item) { + if (this.requests == null) {this.requests = new ArrayList();} + this.requests.add(index, item); + return (A)this; + } + + public A setToRequests(int index,String item) { + if (this.requests == null) {this.requests = new ArrayList();} + this.requests.set(index, item); return (A)this; + } + + public A addToRequests(java.lang.String... items) { + if (this.requests == null) {this.requests = new ArrayList();} + for (String item : items) {this.requests.add(item);} return (A)this; + } + + public A addAllToRequests(Collection items) { + if (this.requests == null) {this.requests = new ArrayList();} + for (String item : items) {this.requests.add(item);} return (A)this; + } + + public A removeFromRequests(java.lang.String... items) { + if (this.requests == null) return (A)this; + for (String item : items) { this.requests.remove(item);} return (A)this; + } + + public A removeAllFromRequests(Collection items) { + if (this.requests == null) return (A)this; + for (String item : items) { this.requests.remove(item);} return (A)this; + } + + public List getRequests() { + return this.requests; + } + + public String getRequest(int index) { + return this.requests.get(index); + } + + public String getFirstRequest() { + return this.requests.get(0); + } + + public String getLastRequest() { + return this.requests.get(requests.size() - 1); + } + + public String getMatchingRequest(Predicate predicate) { + for (String item : requests) { + if (predicate.test(item)) { + return item; + } + } + return null; + } + + public boolean hasMatchingRequest(Predicate predicate) { + for (String item : requests) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public A withRequests(List requests) { + if (requests != null) { + this.requests = new ArrayList(); + for (String item : requests) { + this.addToRequests(item); + } + } else { + this.requests = null; + } + return (A) this; + } + + public A withRequests(java.lang.String... requests) { + if (this.requests != null) { + this.requests.clear(); + _visitables.remove("requests"); + } + if (requests != null) { + for (String item : requests) { + this.addToRequests(item); + } + } + return (A) this; + } + + public boolean hasRequests() { + return this.requests != null && !this.requests.isEmpty(); + } + + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + if (!super.equals(o)) return false; + V1beta2DeviceConstraintFluent that = (V1beta2DeviceConstraintFluent) o; + if (!java.util.Objects.equals(matchAttribute, that.matchAttribute)) return false; + if (!java.util.Objects.equals(requests, that.requests)) return false; + return true; + } + + public int hashCode() { + return java.util.Objects.hash(matchAttribute, requests, super.hashCode()); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (matchAttribute != null) { sb.append("matchAttribute:"); sb.append(matchAttribute + ","); } + if (requests != null && !requests.isEmpty()) { sb.append("requests:"); sb.append(requests); } + sb.append("}"); + return sb.toString(); + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceCounterConsumptionBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceCounterConsumptionBuilder.java new file mode 100644 index 0000000000..d41cd68d42 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceCounterConsumptionBuilder.java @@ -0,0 +1,32 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +public class V1beta2DeviceCounterConsumptionBuilder extends V1beta2DeviceCounterConsumptionFluent implements VisitableBuilder{ + public V1beta2DeviceCounterConsumptionBuilder() { + this(new V1beta2DeviceCounterConsumption()); + } + + public V1beta2DeviceCounterConsumptionBuilder(V1beta2DeviceCounterConsumptionFluent fluent) { + this(fluent, new V1beta2DeviceCounterConsumption()); + } + + public V1beta2DeviceCounterConsumptionBuilder(V1beta2DeviceCounterConsumptionFluent fluent,V1beta2DeviceCounterConsumption instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1beta2DeviceCounterConsumptionBuilder(V1beta2DeviceCounterConsumption instance) { + this.fluent = this; + this.copyInstance(instance); + } + V1beta2DeviceCounterConsumptionFluent fluent; + + public V1beta2DeviceCounterConsumption build() { + V1beta2DeviceCounterConsumption buildable = new V1beta2DeviceCounterConsumption(); + buildable.setCounterSet(fluent.getCounterSet()); + buildable.setCounters(fluent.getCounters()); + return buildable; + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceCounterConsumptionFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceCounterConsumptionFluent.java new file mode 100644 index 0000000000..47321584a4 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceCounterConsumptionFluent.java @@ -0,0 +1,106 @@ +package io.kubernetes.client.openapi.models; + +import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Object; +import java.lang.String; +import java.util.Map; +import java.util.LinkedHashMap; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1beta2DeviceCounterConsumptionFluent> extends BaseFluent{ + public V1beta2DeviceCounterConsumptionFluent() { + } + + public V1beta2DeviceCounterConsumptionFluent(V1beta2DeviceCounterConsumption instance) { + this.copyInstance(instance); + } + private String counterSet; + private Map counters; + + protected void copyInstance(V1beta2DeviceCounterConsumption instance) { + instance = (instance != null ? instance : new V1beta2DeviceCounterConsumption()); + if (instance != null) { + this.withCounterSet(instance.getCounterSet()); + this.withCounters(instance.getCounters()); + } + } + + public String getCounterSet() { + return this.counterSet; + } + + public A withCounterSet(String counterSet) { + this.counterSet = counterSet; + return (A) this; + } + + public boolean hasCounterSet() { + return this.counterSet != null; + } + + public A addToCounters(String key,V1beta2Counter value) { + if(this.counters == null && key != null && value != null) { this.counters = new LinkedHashMap(); } + if(key != null && value != null) {this.counters.put(key, value);} return (A)this; + } + + public A addToCounters(Map map) { + if(this.counters == null && map != null) { this.counters = new LinkedHashMap(); } + if(map != null) { this.counters.putAll(map);} return (A)this; + } + + public A removeFromCounters(String key) { + if(this.counters == null) { return (A) this; } + if(key != null && this.counters != null) {this.counters.remove(key);} return (A)this; + } + + public A removeFromCounters(Map map) { + if(this.counters == null) { return (A) this; } + if(map != null) { for(Object key : map.keySet()) {if (this.counters != null){this.counters.remove(key);}}} return (A)this; + } + + public Map getCounters() { + return this.counters; + } + + public A withCounters(Map counters) { + if (counters == null) { + this.counters = null; + } else { + this.counters = new LinkedHashMap(counters); + } + return (A) this; + } + + public boolean hasCounters() { + return this.counters != null; + } + + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + if (!super.equals(o)) return false; + V1beta2DeviceCounterConsumptionFluent that = (V1beta2DeviceCounterConsumptionFluent) o; + if (!java.util.Objects.equals(counterSet, that.counterSet)) return false; + if (!java.util.Objects.equals(counters, that.counters)) return false; + return true; + } + + public int hashCode() { + return java.util.Objects.hash(counterSet, counters, super.hashCode()); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (counterSet != null) { sb.append("counterSet:"); sb.append(counterSet + ","); } + if (counters != null && !counters.isEmpty()) { sb.append("counters:"); sb.append(counters); } + sb.append("}"); + return sb.toString(); + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceFluent.java new file mode 100644 index 0000000000..d73ba486c6 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceFluent.java @@ -0,0 +1,622 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.Nested; +import java.util.ArrayList; +import java.lang.String; +import java.util.LinkedHashMap; +import java.util.function.Predicate; +import io.kubernetes.client.fluent.BaseFluent; +import java.util.Iterator; +import java.util.List; +import java.lang.Boolean; +import java.util.Collection; +import java.lang.Object; +import java.util.Map; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1beta2DeviceFluent> extends BaseFluent{ + public V1beta2DeviceFluent() { + } + + public V1beta2DeviceFluent(V1beta2Device instance) { + this.copyInstance(instance); + } + private Boolean allNodes; + private Map attributes; + private Map capacity; + private ArrayList consumesCounters; + private String name; + private String nodeName; + private V1NodeSelectorBuilder nodeSelector; + private ArrayList taints; + + protected void copyInstance(V1beta2Device instance) { + instance = (instance != null ? instance : new V1beta2Device()); + if (instance != null) { + this.withAllNodes(instance.getAllNodes()); + this.withAttributes(instance.getAttributes()); + this.withCapacity(instance.getCapacity()); + this.withConsumesCounters(instance.getConsumesCounters()); + this.withName(instance.getName()); + this.withNodeName(instance.getNodeName()); + this.withNodeSelector(instance.getNodeSelector()); + this.withTaints(instance.getTaints()); + } + } + + public Boolean getAllNodes() { + return this.allNodes; + } + + public A withAllNodes(Boolean allNodes) { + this.allNodes = allNodes; + return (A) this; + } + + public boolean hasAllNodes() { + return this.allNodes != null; + } + + public A addToAttributes(String key,V1beta2DeviceAttribute value) { + if(this.attributes == null && key != null && value != null) { this.attributes = new LinkedHashMap(); } + if(key != null && value != null) {this.attributes.put(key, value);} return (A)this; + } + + public A addToAttributes(Map map) { + if(this.attributes == null && map != null) { this.attributes = new LinkedHashMap(); } + if(map != null) { this.attributes.putAll(map);} return (A)this; + } + + public A removeFromAttributes(String key) { + if(this.attributes == null) { return (A) this; } + if(key != null && this.attributes != null) {this.attributes.remove(key);} return (A)this; + } + + public A removeFromAttributes(Map map) { + if(this.attributes == null) { return (A) this; } + if(map != null) { for(Object key : map.keySet()) {if (this.attributes != null){this.attributes.remove(key);}}} return (A)this; + } + + public Map getAttributes() { + return this.attributes; + } + + public A withAttributes(Map attributes) { + if (attributes == null) { + this.attributes = null; + } else { + this.attributes = new LinkedHashMap(attributes); + } + return (A) this; + } + + public boolean hasAttributes() { + return this.attributes != null; + } + + public A addToCapacity(String key,V1beta2DeviceCapacity value) { + if(this.capacity == null && key != null && value != null) { this.capacity = new LinkedHashMap(); } + if(key != null && value != null) {this.capacity.put(key, value);} return (A)this; + } + + public A addToCapacity(Map map) { + if(this.capacity == null && map != null) { this.capacity = new LinkedHashMap(); } + if(map != null) { this.capacity.putAll(map);} return (A)this; + } + + public A removeFromCapacity(String key) { + if(this.capacity == null) { return (A) this; } + if(key != null && this.capacity != null) {this.capacity.remove(key);} return (A)this; + } + + public A removeFromCapacity(Map map) { + if(this.capacity == null) { return (A) this; } + if(map != null) { for(Object key : map.keySet()) {if (this.capacity != null){this.capacity.remove(key);}}} return (A)this; + } + + public Map getCapacity() { + return this.capacity; + } + + public A withCapacity(Map capacity) { + if (capacity == null) { + this.capacity = null; + } else { + this.capacity = new LinkedHashMap(capacity); + } + return (A) this; + } + + public boolean hasCapacity() { + return this.capacity != null; + } + + public A addToConsumesCounters(int index,V1beta2DeviceCounterConsumption item) { + if (this.consumesCounters == null) {this.consumesCounters = new ArrayList();} + V1beta2DeviceCounterConsumptionBuilder builder = new V1beta2DeviceCounterConsumptionBuilder(item); + if (index < 0 || index >= consumesCounters.size()) { + _visitables.get("consumesCounters").add(builder); + consumesCounters.add(builder); + } else { + _visitables.get("consumesCounters").add(builder); + consumesCounters.add(index, builder); + } + return (A)this; + } + + public A setToConsumesCounters(int index,V1beta2DeviceCounterConsumption item) { + if (this.consumesCounters == null) {this.consumesCounters = new ArrayList();} + V1beta2DeviceCounterConsumptionBuilder builder = new V1beta2DeviceCounterConsumptionBuilder(item); + if (index < 0 || index >= consumesCounters.size()) { + _visitables.get("consumesCounters").add(builder); + consumesCounters.add(builder); + } else { + _visitables.get("consumesCounters").add(builder); + consumesCounters.set(index, builder); + } + return (A)this; + } + + public A addToConsumesCounters(io.kubernetes.client.openapi.models.V1beta2DeviceCounterConsumption... items) { + if (this.consumesCounters == null) {this.consumesCounters = new ArrayList();} + for (V1beta2DeviceCounterConsumption item : items) {V1beta2DeviceCounterConsumptionBuilder builder = new V1beta2DeviceCounterConsumptionBuilder(item);_visitables.get("consumesCounters").add(builder);this.consumesCounters.add(builder);} return (A)this; + } + + public A addAllToConsumesCounters(Collection items) { + if (this.consumesCounters == null) {this.consumesCounters = new ArrayList();} + for (V1beta2DeviceCounterConsumption item : items) {V1beta2DeviceCounterConsumptionBuilder builder = new V1beta2DeviceCounterConsumptionBuilder(item);_visitables.get("consumesCounters").add(builder);this.consumesCounters.add(builder);} return (A)this; + } + + public A removeFromConsumesCounters(io.kubernetes.client.openapi.models.V1beta2DeviceCounterConsumption... items) { + if (this.consumesCounters == null) return (A)this; + for (V1beta2DeviceCounterConsumption item : items) {V1beta2DeviceCounterConsumptionBuilder builder = new V1beta2DeviceCounterConsumptionBuilder(item);_visitables.get("consumesCounters").remove(builder); this.consumesCounters.remove(builder);} return (A)this; + } + + public A removeAllFromConsumesCounters(Collection items) { + if (this.consumesCounters == null) return (A)this; + for (V1beta2DeviceCounterConsumption item : items) {V1beta2DeviceCounterConsumptionBuilder builder = new V1beta2DeviceCounterConsumptionBuilder(item);_visitables.get("consumesCounters").remove(builder); this.consumesCounters.remove(builder);} return (A)this; + } + + public A removeMatchingFromConsumesCounters(Predicate predicate) { + if (consumesCounters == null) return (A) this; + final Iterator each = consumesCounters.iterator(); + final List visitables = _visitables.get("consumesCounters"); + while (each.hasNext()) { + V1beta2DeviceCounterConsumptionBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A)this; + } + + public List buildConsumesCounters() { + return this.consumesCounters != null ? build(consumesCounters) : null; + } + + public V1beta2DeviceCounterConsumption buildConsumesCounter(int index) { + return this.consumesCounters.get(index).build(); + } + + public V1beta2DeviceCounterConsumption buildFirstConsumesCounter() { + return this.consumesCounters.get(0).build(); + } + + public V1beta2DeviceCounterConsumption buildLastConsumesCounter() { + return this.consumesCounters.get(consumesCounters.size() - 1).build(); + } + + public V1beta2DeviceCounterConsumption buildMatchingConsumesCounter(Predicate predicate) { + for (V1beta2DeviceCounterConsumptionBuilder item : consumesCounters) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; + } + + public boolean hasMatchingConsumesCounter(Predicate predicate) { + for (V1beta2DeviceCounterConsumptionBuilder item : consumesCounters) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public A withConsumesCounters(List consumesCounters) { + if (this.consumesCounters != null) { + this._visitables.get("consumesCounters").clear(); + } + if (consumesCounters != null) { + this.consumesCounters = new ArrayList(); + for (V1beta2DeviceCounterConsumption item : consumesCounters) { + this.addToConsumesCounters(item); + } + } else { + this.consumesCounters = null; + } + return (A) this; + } + + public A withConsumesCounters(io.kubernetes.client.openapi.models.V1beta2DeviceCounterConsumption... consumesCounters) { + if (this.consumesCounters != null) { + this.consumesCounters.clear(); + _visitables.remove("consumesCounters"); + } + if (consumesCounters != null) { + for (V1beta2DeviceCounterConsumption item : consumesCounters) { + this.addToConsumesCounters(item); + } + } + return (A) this; + } + + public boolean hasConsumesCounters() { + return this.consumesCounters != null && !this.consumesCounters.isEmpty(); + } + + public ConsumesCountersNested addNewConsumesCounter() { + return new ConsumesCountersNested(-1, null); + } + + public ConsumesCountersNested addNewConsumesCounterLike(V1beta2DeviceCounterConsumption item) { + return new ConsumesCountersNested(-1, item); + } + + public ConsumesCountersNested setNewConsumesCounterLike(int index,V1beta2DeviceCounterConsumption item) { + return new ConsumesCountersNested(index, item); + } + + public ConsumesCountersNested editConsumesCounter(int index) { + if (consumesCounters.size() <= index) throw new RuntimeException("Can't edit consumesCounters. Index exceeds size."); + return setNewConsumesCounterLike(index, buildConsumesCounter(index)); + } + + public ConsumesCountersNested editFirstConsumesCounter() { + if (consumesCounters.size() == 0) throw new RuntimeException("Can't edit first consumesCounters. The list is empty."); + return setNewConsumesCounterLike(0, buildConsumesCounter(0)); + } + + public ConsumesCountersNested editLastConsumesCounter() { + int index = consumesCounters.size() - 1; + if (index < 0) throw new RuntimeException("Can't edit last consumesCounters. The list is empty."); + return setNewConsumesCounterLike(index, buildConsumesCounter(index)); + } + + public ConsumesCountersNested editMatchingConsumesCounter(Predicate predicate) { + int index = -1; + for (int i=0;i withNewNodeSelector() { + return new NodeSelectorNested(null); + } + + public NodeSelectorNested withNewNodeSelectorLike(V1NodeSelector item) { + return new NodeSelectorNested(item); + } + + public NodeSelectorNested editNodeSelector() { + return withNewNodeSelectorLike(java.util.Optional.ofNullable(buildNodeSelector()).orElse(null)); + } + + public NodeSelectorNested editOrNewNodeSelector() { + return withNewNodeSelectorLike(java.util.Optional.ofNullable(buildNodeSelector()).orElse(new V1NodeSelectorBuilder().build())); + } + + public NodeSelectorNested editOrNewNodeSelectorLike(V1NodeSelector item) { + return withNewNodeSelectorLike(java.util.Optional.ofNullable(buildNodeSelector()).orElse(item)); + } + + public A addToTaints(int index,V1beta2DeviceTaint item) { + if (this.taints == null) {this.taints = new ArrayList();} + V1beta2DeviceTaintBuilder builder = new V1beta2DeviceTaintBuilder(item); + if (index < 0 || index >= taints.size()) { + _visitables.get("taints").add(builder); + taints.add(builder); + } else { + _visitables.get("taints").add(builder); + taints.add(index, builder); + } + return (A)this; + } + + public A setToTaints(int index,V1beta2DeviceTaint item) { + if (this.taints == null) {this.taints = new ArrayList();} + V1beta2DeviceTaintBuilder builder = new V1beta2DeviceTaintBuilder(item); + if (index < 0 || index >= taints.size()) { + _visitables.get("taints").add(builder); + taints.add(builder); + } else { + _visitables.get("taints").add(builder); + taints.set(index, builder); + } + return (A)this; + } + + public A addToTaints(io.kubernetes.client.openapi.models.V1beta2DeviceTaint... items) { + if (this.taints == null) {this.taints = new ArrayList();} + for (V1beta2DeviceTaint item : items) {V1beta2DeviceTaintBuilder builder = new V1beta2DeviceTaintBuilder(item);_visitables.get("taints").add(builder);this.taints.add(builder);} return (A)this; + } + + public A addAllToTaints(Collection items) { + if (this.taints == null) {this.taints = new ArrayList();} + for (V1beta2DeviceTaint item : items) {V1beta2DeviceTaintBuilder builder = new V1beta2DeviceTaintBuilder(item);_visitables.get("taints").add(builder);this.taints.add(builder);} return (A)this; + } + + public A removeFromTaints(io.kubernetes.client.openapi.models.V1beta2DeviceTaint... items) { + if (this.taints == null) return (A)this; + for (V1beta2DeviceTaint item : items) {V1beta2DeviceTaintBuilder builder = new V1beta2DeviceTaintBuilder(item);_visitables.get("taints").remove(builder); this.taints.remove(builder);} return (A)this; + } + + public A removeAllFromTaints(Collection items) { + if (this.taints == null) return (A)this; + for (V1beta2DeviceTaint item : items) {V1beta2DeviceTaintBuilder builder = new V1beta2DeviceTaintBuilder(item);_visitables.get("taints").remove(builder); this.taints.remove(builder);} return (A)this; + } + + public A removeMatchingFromTaints(Predicate predicate) { + if (taints == null) return (A) this; + final Iterator each = taints.iterator(); + final List visitables = _visitables.get("taints"); + while (each.hasNext()) { + V1beta2DeviceTaintBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A)this; + } + + public List buildTaints() { + return this.taints != null ? build(taints) : null; + } + + public V1beta2DeviceTaint buildTaint(int index) { + return this.taints.get(index).build(); + } + + public V1beta2DeviceTaint buildFirstTaint() { + return this.taints.get(0).build(); + } + + public V1beta2DeviceTaint buildLastTaint() { + return this.taints.get(taints.size() - 1).build(); + } + + public V1beta2DeviceTaint buildMatchingTaint(Predicate predicate) { + for (V1beta2DeviceTaintBuilder item : taints) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; + } + + public boolean hasMatchingTaint(Predicate predicate) { + for (V1beta2DeviceTaintBuilder item : taints) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public A withTaints(List taints) { + if (this.taints != null) { + this._visitables.get("taints").clear(); + } + if (taints != null) { + this.taints = new ArrayList(); + for (V1beta2DeviceTaint item : taints) { + this.addToTaints(item); + } + } else { + this.taints = null; + } + return (A) this; + } + + public A withTaints(io.kubernetes.client.openapi.models.V1beta2DeviceTaint... taints) { + if (this.taints != null) { + this.taints.clear(); + _visitables.remove("taints"); + } + if (taints != null) { + for (V1beta2DeviceTaint item : taints) { + this.addToTaints(item); + } + } + return (A) this; + } + + public boolean hasTaints() { + return this.taints != null && !this.taints.isEmpty(); + } + + public TaintsNested addNewTaint() { + return new TaintsNested(-1, null); + } + + public TaintsNested addNewTaintLike(V1beta2DeviceTaint item) { + return new TaintsNested(-1, item); + } + + public TaintsNested setNewTaintLike(int index,V1beta2DeviceTaint item) { + return new TaintsNested(index, item); + } + + public TaintsNested editTaint(int index) { + if (taints.size() <= index) throw new RuntimeException("Can't edit taints. Index exceeds size."); + return setNewTaintLike(index, buildTaint(index)); + } + + public TaintsNested editFirstTaint() { + if (taints.size() == 0) throw new RuntimeException("Can't edit first taints. The list is empty."); + return setNewTaintLike(0, buildTaint(0)); + } + + public TaintsNested editLastTaint() { + int index = taints.size() - 1; + if (index < 0) throw new RuntimeException("Can't edit last taints. The list is empty."); + return setNewTaintLike(index, buildTaint(index)); + } + + public TaintsNested editMatchingTaint(Predicate predicate) { + int index = -1; + for (int i=0;i extends V1beta2DeviceCounterConsumptionFluent> implements Nested{ + ConsumesCountersNested(int index,V1beta2DeviceCounterConsumption item) { + this.index = index; + this.builder = new V1beta2DeviceCounterConsumptionBuilder(this, item); + } + V1beta2DeviceCounterConsumptionBuilder builder; + int index; + + public N and() { + return (N) V1beta2DeviceFluent.this.setToConsumesCounters(index,builder.build()); + } + + public N endConsumesCounter() { + return and(); + } + + + } + public class NodeSelectorNested extends V1NodeSelectorFluent> implements Nested{ + NodeSelectorNested(V1NodeSelector item) { + this.builder = new V1NodeSelectorBuilder(this, item); + } + V1NodeSelectorBuilder builder; + + public N and() { + return (N) V1beta2DeviceFluent.this.withNodeSelector(builder.build()); + } + + public N endNodeSelector() { + return and(); + } + + + } + public class TaintsNested extends V1beta2DeviceTaintFluent> implements Nested{ + TaintsNested(int index,V1beta2DeviceTaint item) { + this.index = index; + this.builder = new V1beta2DeviceTaintBuilder(this, item); + } + V1beta2DeviceTaintBuilder builder; + int index; + + public N and() { + return (N) V1beta2DeviceFluent.this.setToTaints(index,builder.build()); + } + + public N endTaint() { + return and(); + } + + + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceRequestAllocationResultBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceRequestAllocationResultBuilder.java new file mode 100644 index 0000000000..e86132931c --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceRequestAllocationResultBuilder.java @@ -0,0 +1,36 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +public class V1beta2DeviceRequestAllocationResultBuilder extends V1beta2DeviceRequestAllocationResultFluent implements VisitableBuilder{ + public V1beta2DeviceRequestAllocationResultBuilder() { + this(new V1beta2DeviceRequestAllocationResult()); + } + + public V1beta2DeviceRequestAllocationResultBuilder(V1beta2DeviceRequestAllocationResultFluent fluent) { + this(fluent, new V1beta2DeviceRequestAllocationResult()); + } + + public V1beta2DeviceRequestAllocationResultBuilder(V1beta2DeviceRequestAllocationResultFluent fluent,V1beta2DeviceRequestAllocationResult instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1beta2DeviceRequestAllocationResultBuilder(V1beta2DeviceRequestAllocationResult instance) { + this.fluent = this; + this.copyInstance(instance); + } + V1beta2DeviceRequestAllocationResultFluent fluent; + + public V1beta2DeviceRequestAllocationResult build() { + V1beta2DeviceRequestAllocationResult buildable = new V1beta2DeviceRequestAllocationResult(); + buildable.setAdminAccess(fluent.getAdminAccess()); + buildable.setDevice(fluent.getDevice()); + buildable.setDriver(fluent.getDriver()); + buildable.setPool(fluent.getPool()); + buildable.setRequest(fluent.getRequest()); + buildable.setTolerations(fluent.buildTolerations()); + return buildable; + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceRequestAllocationResultFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceRequestAllocationResultFluent.java new file mode 100644 index 0000000000..142dd31265 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceRequestAllocationResultFluent.java @@ -0,0 +1,327 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.Nested; +import java.util.ArrayList; +import java.lang.String; +import java.util.function.Predicate; +import io.kubernetes.client.fluent.BaseFluent; +import java.util.Iterator; +import java.util.Collection; +import java.lang.Object; +import java.util.List; +import java.lang.Boolean; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1beta2DeviceRequestAllocationResultFluent> extends BaseFluent{ + public V1beta2DeviceRequestAllocationResultFluent() { + } + + public V1beta2DeviceRequestAllocationResultFluent(V1beta2DeviceRequestAllocationResult instance) { + this.copyInstance(instance); + } + private Boolean adminAccess; + private String device; + private String driver; + private String pool; + private String request; + private ArrayList tolerations; + + protected void copyInstance(V1beta2DeviceRequestAllocationResult instance) { + instance = (instance != null ? instance : new V1beta2DeviceRequestAllocationResult()); + if (instance != null) { + this.withAdminAccess(instance.getAdminAccess()); + this.withDevice(instance.getDevice()); + this.withDriver(instance.getDriver()); + this.withPool(instance.getPool()); + this.withRequest(instance.getRequest()); + this.withTolerations(instance.getTolerations()); + } + } + + public Boolean getAdminAccess() { + return this.adminAccess; + } + + public A withAdminAccess(Boolean adminAccess) { + this.adminAccess = adminAccess; + return (A) this; + } + + public boolean hasAdminAccess() { + return this.adminAccess != null; + } + + public String getDevice() { + return this.device; + } + + public A withDevice(String device) { + this.device = device; + return (A) this; + } + + public boolean hasDevice() { + return this.device != null; + } + + public String getDriver() { + return this.driver; + } + + public A withDriver(String driver) { + this.driver = driver; + return (A) this; + } + + public boolean hasDriver() { + return this.driver != null; + } + + public String getPool() { + return this.pool; + } + + public A withPool(String pool) { + this.pool = pool; + return (A) this; + } + + public boolean hasPool() { + return this.pool != null; + } + + public String getRequest() { + return this.request; + } + + public A withRequest(String request) { + this.request = request; + return (A) this; + } + + public boolean hasRequest() { + return this.request != null; + } + + public A addToTolerations(int index,V1beta2DeviceToleration item) { + if (this.tolerations == null) {this.tolerations = new ArrayList();} + V1beta2DeviceTolerationBuilder builder = new V1beta2DeviceTolerationBuilder(item); + if (index < 0 || index >= tolerations.size()) { + _visitables.get("tolerations").add(builder); + tolerations.add(builder); + } else { + _visitables.get("tolerations").add(builder); + tolerations.add(index, builder); + } + return (A)this; + } + + public A setToTolerations(int index,V1beta2DeviceToleration item) { + if (this.tolerations == null) {this.tolerations = new ArrayList();} + V1beta2DeviceTolerationBuilder builder = new V1beta2DeviceTolerationBuilder(item); + if (index < 0 || index >= tolerations.size()) { + _visitables.get("tolerations").add(builder); + tolerations.add(builder); + } else { + _visitables.get("tolerations").add(builder); + tolerations.set(index, builder); + } + return (A)this; + } + + public A addToTolerations(io.kubernetes.client.openapi.models.V1beta2DeviceToleration... items) { + if (this.tolerations == null) {this.tolerations = new ArrayList();} + for (V1beta2DeviceToleration item : items) {V1beta2DeviceTolerationBuilder builder = new V1beta2DeviceTolerationBuilder(item);_visitables.get("tolerations").add(builder);this.tolerations.add(builder);} return (A)this; + } + + public A addAllToTolerations(Collection items) { + if (this.tolerations == null) {this.tolerations = new ArrayList();} + for (V1beta2DeviceToleration item : items) {V1beta2DeviceTolerationBuilder builder = new V1beta2DeviceTolerationBuilder(item);_visitables.get("tolerations").add(builder);this.tolerations.add(builder);} return (A)this; + } + + public A removeFromTolerations(io.kubernetes.client.openapi.models.V1beta2DeviceToleration... items) { + if (this.tolerations == null) return (A)this; + for (V1beta2DeviceToleration item : items) {V1beta2DeviceTolerationBuilder builder = new V1beta2DeviceTolerationBuilder(item);_visitables.get("tolerations").remove(builder); this.tolerations.remove(builder);} return (A)this; + } + + public A removeAllFromTolerations(Collection items) { + if (this.tolerations == null) return (A)this; + for (V1beta2DeviceToleration item : items) {V1beta2DeviceTolerationBuilder builder = new V1beta2DeviceTolerationBuilder(item);_visitables.get("tolerations").remove(builder); this.tolerations.remove(builder);} return (A)this; + } + + public A removeMatchingFromTolerations(Predicate predicate) { + if (tolerations == null) return (A) this; + final Iterator each = tolerations.iterator(); + final List visitables = _visitables.get("tolerations"); + while (each.hasNext()) { + V1beta2DeviceTolerationBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A)this; + } + + public List buildTolerations() { + return this.tolerations != null ? build(tolerations) : null; + } + + public V1beta2DeviceToleration buildToleration(int index) { + return this.tolerations.get(index).build(); + } + + public V1beta2DeviceToleration buildFirstToleration() { + return this.tolerations.get(0).build(); + } + + public V1beta2DeviceToleration buildLastToleration() { + return this.tolerations.get(tolerations.size() - 1).build(); + } + + public V1beta2DeviceToleration buildMatchingToleration(Predicate predicate) { + for (V1beta2DeviceTolerationBuilder item : tolerations) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; + } + + public boolean hasMatchingToleration(Predicate predicate) { + for (V1beta2DeviceTolerationBuilder item : tolerations) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public A withTolerations(List tolerations) { + if (this.tolerations != null) { + this._visitables.get("tolerations").clear(); + } + if (tolerations != null) { + this.tolerations = new ArrayList(); + for (V1beta2DeviceToleration item : tolerations) { + this.addToTolerations(item); + } + } else { + this.tolerations = null; + } + return (A) this; + } + + public A withTolerations(io.kubernetes.client.openapi.models.V1beta2DeviceToleration... tolerations) { + if (this.tolerations != null) { + this.tolerations.clear(); + _visitables.remove("tolerations"); + } + if (tolerations != null) { + for (V1beta2DeviceToleration item : tolerations) { + this.addToTolerations(item); + } + } + return (A) this; + } + + public boolean hasTolerations() { + return this.tolerations != null && !this.tolerations.isEmpty(); + } + + public TolerationsNested addNewToleration() { + return new TolerationsNested(-1, null); + } + + public TolerationsNested addNewTolerationLike(V1beta2DeviceToleration item) { + return new TolerationsNested(-1, item); + } + + public TolerationsNested setNewTolerationLike(int index,V1beta2DeviceToleration item) { + return new TolerationsNested(index, item); + } + + public TolerationsNested editToleration(int index) { + if (tolerations.size() <= index) throw new RuntimeException("Can't edit tolerations. Index exceeds size."); + return setNewTolerationLike(index, buildToleration(index)); + } + + public TolerationsNested editFirstToleration() { + if (tolerations.size() == 0) throw new RuntimeException("Can't edit first tolerations. The list is empty."); + return setNewTolerationLike(0, buildToleration(0)); + } + + public TolerationsNested editLastToleration() { + int index = tolerations.size() - 1; + if (index < 0) throw new RuntimeException("Can't edit last tolerations. The list is empty."); + return setNewTolerationLike(index, buildToleration(index)); + } + + public TolerationsNested editMatchingToleration(Predicate predicate) { + int index = -1; + for (int i=0;i extends V1beta2DeviceTolerationFluent> implements Nested{ + TolerationsNested(int index,V1beta2DeviceToleration item) { + this.index = index; + this.builder = new V1beta2DeviceTolerationBuilder(this, item); + } + V1beta2DeviceTolerationBuilder builder; + int index; + + public N and() { + return (N) V1beta2DeviceRequestAllocationResultFluent.this.setToTolerations(index,builder.build()); + } + + public N endToleration() { + return and(); + } + + + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceRequestBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceRequestBuilder.java new file mode 100644 index 0000000000..265048f045 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceRequestBuilder.java @@ -0,0 +1,33 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +public class V1beta2DeviceRequestBuilder extends V1beta2DeviceRequestFluent implements VisitableBuilder{ + public V1beta2DeviceRequestBuilder() { + this(new V1beta2DeviceRequest()); + } + + public V1beta2DeviceRequestBuilder(V1beta2DeviceRequestFluent fluent) { + this(fluent, new V1beta2DeviceRequest()); + } + + public V1beta2DeviceRequestBuilder(V1beta2DeviceRequestFluent fluent,V1beta2DeviceRequest instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1beta2DeviceRequestBuilder(V1beta2DeviceRequest instance) { + this.fluent = this; + this.copyInstance(instance); + } + V1beta2DeviceRequestFluent fluent; + + public V1beta2DeviceRequest build() { + V1beta2DeviceRequest buildable = new V1beta2DeviceRequest(); + buildable.setExactly(fluent.buildExactly()); + buildable.setFirstAvailable(fluent.buildFirstAvailable()); + buildable.setName(fluent.getName()); + return buildable; + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceRequestFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceRequestFluent.java new file mode 100644 index 0000000000..a2818677d2 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceRequestFluent.java @@ -0,0 +1,314 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.Nested; +import java.util.ArrayList; +import java.lang.String; +import java.util.function.Predicate; +import io.kubernetes.client.fluent.BaseFluent; +import java.util.Iterator; +import java.util.Collection; +import java.lang.Object; +import java.util.List; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1beta2DeviceRequestFluent> extends BaseFluent{ + public V1beta2DeviceRequestFluent() { + } + + public V1beta2DeviceRequestFluent(V1beta2DeviceRequest instance) { + this.copyInstance(instance); + } + private V1beta2ExactDeviceRequestBuilder exactly; + private ArrayList firstAvailable; + private String name; + + protected void copyInstance(V1beta2DeviceRequest instance) { + instance = (instance != null ? instance : new V1beta2DeviceRequest()); + if (instance != null) { + this.withExactly(instance.getExactly()); + this.withFirstAvailable(instance.getFirstAvailable()); + this.withName(instance.getName()); + } + } + + public V1beta2ExactDeviceRequest buildExactly() { + return this.exactly != null ? this.exactly.build() : null; + } + + public A withExactly(V1beta2ExactDeviceRequest exactly) { + this._visitables.remove("exactly"); + if (exactly != null) { + this.exactly = new V1beta2ExactDeviceRequestBuilder(exactly); + this._visitables.get("exactly").add(this.exactly); + } else { + this.exactly = null; + this._visitables.get("exactly").remove(this.exactly); + } + return (A) this; + } + + public boolean hasExactly() { + return this.exactly != null; + } + + public ExactlyNested withNewExactly() { + return new ExactlyNested(null); + } + + public ExactlyNested withNewExactlyLike(V1beta2ExactDeviceRequest item) { + return new ExactlyNested(item); + } + + public ExactlyNested editExactly() { + return withNewExactlyLike(java.util.Optional.ofNullable(buildExactly()).orElse(null)); + } + + public ExactlyNested editOrNewExactly() { + return withNewExactlyLike(java.util.Optional.ofNullable(buildExactly()).orElse(new V1beta2ExactDeviceRequestBuilder().build())); + } + + public ExactlyNested editOrNewExactlyLike(V1beta2ExactDeviceRequest item) { + return withNewExactlyLike(java.util.Optional.ofNullable(buildExactly()).orElse(item)); + } + + public A addToFirstAvailable(int index,V1beta2DeviceSubRequest item) { + if (this.firstAvailable == null) {this.firstAvailable = new ArrayList();} + V1beta2DeviceSubRequestBuilder builder = new V1beta2DeviceSubRequestBuilder(item); + if (index < 0 || index >= firstAvailable.size()) { + _visitables.get("firstAvailable").add(builder); + firstAvailable.add(builder); + } else { + _visitables.get("firstAvailable").add(builder); + firstAvailable.add(index, builder); + } + return (A)this; + } + + public A setToFirstAvailable(int index,V1beta2DeviceSubRequest item) { + if (this.firstAvailable == null) {this.firstAvailable = new ArrayList();} + V1beta2DeviceSubRequestBuilder builder = new V1beta2DeviceSubRequestBuilder(item); + if (index < 0 || index >= firstAvailable.size()) { + _visitables.get("firstAvailable").add(builder); + firstAvailable.add(builder); + } else { + _visitables.get("firstAvailable").add(builder); + firstAvailable.set(index, builder); + } + return (A)this; + } + + public A addToFirstAvailable(io.kubernetes.client.openapi.models.V1beta2DeviceSubRequest... items) { + if (this.firstAvailable == null) {this.firstAvailable = new ArrayList();} + for (V1beta2DeviceSubRequest item : items) {V1beta2DeviceSubRequestBuilder builder = new V1beta2DeviceSubRequestBuilder(item);_visitables.get("firstAvailable").add(builder);this.firstAvailable.add(builder);} return (A)this; + } + + public A addAllToFirstAvailable(Collection items) { + if (this.firstAvailable == null) {this.firstAvailable = new ArrayList();} + for (V1beta2DeviceSubRequest item : items) {V1beta2DeviceSubRequestBuilder builder = new V1beta2DeviceSubRequestBuilder(item);_visitables.get("firstAvailable").add(builder);this.firstAvailable.add(builder);} return (A)this; + } + + public A removeFromFirstAvailable(io.kubernetes.client.openapi.models.V1beta2DeviceSubRequest... items) { + if (this.firstAvailable == null) return (A)this; + for (V1beta2DeviceSubRequest item : items) {V1beta2DeviceSubRequestBuilder builder = new V1beta2DeviceSubRequestBuilder(item);_visitables.get("firstAvailable").remove(builder); this.firstAvailable.remove(builder);} return (A)this; + } + + public A removeAllFromFirstAvailable(Collection items) { + if (this.firstAvailable == null) return (A)this; + for (V1beta2DeviceSubRequest item : items) {V1beta2DeviceSubRequestBuilder builder = new V1beta2DeviceSubRequestBuilder(item);_visitables.get("firstAvailable").remove(builder); this.firstAvailable.remove(builder);} return (A)this; + } + + public A removeMatchingFromFirstAvailable(Predicate predicate) { + if (firstAvailable == null) return (A) this; + final Iterator each = firstAvailable.iterator(); + final List visitables = _visitables.get("firstAvailable"); + while (each.hasNext()) { + V1beta2DeviceSubRequestBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A)this; + } + + public List buildFirstAvailable() { + return this.firstAvailable != null ? build(firstAvailable) : null; + } + + public V1beta2DeviceSubRequest buildFirstAvailable(int index) { + return this.firstAvailable.get(index).build(); + } + + public V1beta2DeviceSubRequest buildFirstFirstAvailable() { + return this.firstAvailable.get(0).build(); + } + + public V1beta2DeviceSubRequest buildLastFirstAvailable() { + return this.firstAvailable.get(firstAvailable.size() - 1).build(); + } + + public V1beta2DeviceSubRequest buildMatchingFirstAvailable(Predicate predicate) { + for (V1beta2DeviceSubRequestBuilder item : firstAvailable) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; + } + + public boolean hasMatchingFirstAvailable(Predicate predicate) { + for (V1beta2DeviceSubRequestBuilder item : firstAvailable) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public A withFirstAvailable(List firstAvailable) { + if (this.firstAvailable != null) { + this._visitables.get("firstAvailable").clear(); + } + if (firstAvailable != null) { + this.firstAvailable = new ArrayList(); + for (V1beta2DeviceSubRequest item : firstAvailable) { + this.addToFirstAvailable(item); + } + } else { + this.firstAvailable = null; + } + return (A) this; + } + + public A withFirstAvailable(io.kubernetes.client.openapi.models.V1beta2DeviceSubRequest... firstAvailable) { + if (this.firstAvailable != null) { + this.firstAvailable.clear(); + _visitables.remove("firstAvailable"); + } + if (firstAvailable != null) { + for (V1beta2DeviceSubRequest item : firstAvailable) { + this.addToFirstAvailable(item); + } + } + return (A) this; + } + + public boolean hasFirstAvailable() { + return this.firstAvailable != null && !this.firstAvailable.isEmpty(); + } + + public FirstAvailableNested addNewFirstAvailable() { + return new FirstAvailableNested(-1, null); + } + + public FirstAvailableNested addNewFirstAvailableLike(V1beta2DeviceSubRequest item) { + return new FirstAvailableNested(-1, item); + } + + public FirstAvailableNested setNewFirstAvailableLike(int index,V1beta2DeviceSubRequest item) { + return new FirstAvailableNested(index, item); + } + + public FirstAvailableNested editFirstAvailable(int index) { + if (firstAvailable.size() <= index) throw new RuntimeException("Can't edit firstAvailable. Index exceeds size."); + return setNewFirstAvailableLike(index, buildFirstAvailable(index)); + } + + public FirstAvailableNested editFirstFirstAvailable() { + if (firstAvailable.size() == 0) throw new RuntimeException("Can't edit first firstAvailable. The list is empty."); + return setNewFirstAvailableLike(0, buildFirstAvailable(0)); + } + + public FirstAvailableNested editLastFirstAvailable() { + int index = firstAvailable.size() - 1; + if (index < 0) throw new RuntimeException("Can't edit last firstAvailable. The list is empty."); + return setNewFirstAvailableLike(index, buildFirstAvailable(index)); + } + + public FirstAvailableNested editMatchingFirstAvailable(Predicate predicate) { + int index = -1; + for (int i=0;i extends V1beta2ExactDeviceRequestFluent> implements Nested{ + ExactlyNested(V1beta2ExactDeviceRequest item) { + this.builder = new V1beta2ExactDeviceRequestBuilder(this, item); + } + V1beta2ExactDeviceRequestBuilder builder; + + public N and() { + return (N) V1beta2DeviceRequestFluent.this.withExactly(builder.build()); + } + + public N endExactly() { + return and(); + } + + + } + public class FirstAvailableNested extends V1beta2DeviceSubRequestFluent> implements Nested{ + FirstAvailableNested(int index,V1beta2DeviceSubRequest item) { + this.index = index; + this.builder = new V1beta2DeviceSubRequestBuilder(this, item); + } + V1beta2DeviceSubRequestBuilder builder; + int index; + + public N and() { + return (N) V1beta2DeviceRequestFluent.this.setToFirstAvailable(index,builder.build()); + } + + public N endFirstAvailable() { + return and(); + } + + + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceSelectorBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceSelectorBuilder.java new file mode 100644 index 0000000000..9f202ef03d --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceSelectorBuilder.java @@ -0,0 +1,31 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +public class V1beta2DeviceSelectorBuilder extends V1beta2DeviceSelectorFluent implements VisitableBuilder{ + public V1beta2DeviceSelectorBuilder() { + this(new V1beta2DeviceSelector()); + } + + public V1beta2DeviceSelectorBuilder(V1beta2DeviceSelectorFluent fluent) { + this(fluent, new V1beta2DeviceSelector()); + } + + public V1beta2DeviceSelectorBuilder(V1beta2DeviceSelectorFluent fluent,V1beta2DeviceSelector instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1beta2DeviceSelectorBuilder(V1beta2DeviceSelector instance) { + this.fluent = this; + this.copyInstance(instance); + } + V1beta2DeviceSelectorFluent fluent; + + public V1beta2DeviceSelector build() { + V1beta2DeviceSelector buildable = new V1beta2DeviceSelector(); + buildable.setCel(fluent.buildCel()); + return buildable; + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceSelectorFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceSelectorFluent.java new file mode 100644 index 0000000000..e2ecbd8290 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceSelectorFluent.java @@ -0,0 +1,106 @@ +package io.kubernetes.client.openapi.models; + +import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Object; +import java.lang.String; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1beta2DeviceSelectorFluent> extends BaseFluent{ + public V1beta2DeviceSelectorFluent() { + } + + public V1beta2DeviceSelectorFluent(V1beta2DeviceSelector instance) { + this.copyInstance(instance); + } + private V1beta2CELDeviceSelectorBuilder cel; + + protected void copyInstance(V1beta2DeviceSelector instance) { + instance = (instance != null ? instance : new V1beta2DeviceSelector()); + if (instance != null) { + this.withCel(instance.getCel()); + } + } + + public V1beta2CELDeviceSelector buildCel() { + return this.cel != null ? this.cel.build() : null; + } + + public A withCel(V1beta2CELDeviceSelector cel) { + this._visitables.remove("cel"); + if (cel != null) { + this.cel = new V1beta2CELDeviceSelectorBuilder(cel); + this._visitables.get("cel").add(this.cel); + } else { + this.cel = null; + this._visitables.get("cel").remove(this.cel); + } + return (A) this; + } + + public boolean hasCel() { + return this.cel != null; + } + + public CelNested withNewCel() { + return new CelNested(null); + } + + public CelNested withNewCelLike(V1beta2CELDeviceSelector item) { + return new CelNested(item); + } + + public CelNested editCel() { + return withNewCelLike(java.util.Optional.ofNullable(buildCel()).orElse(null)); + } + + public CelNested editOrNewCel() { + return withNewCelLike(java.util.Optional.ofNullable(buildCel()).orElse(new V1beta2CELDeviceSelectorBuilder().build())); + } + + public CelNested editOrNewCelLike(V1beta2CELDeviceSelector item) { + return withNewCelLike(java.util.Optional.ofNullable(buildCel()).orElse(item)); + } + + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + if (!super.equals(o)) return false; + V1beta2DeviceSelectorFluent that = (V1beta2DeviceSelectorFluent) o; + if (!java.util.Objects.equals(cel, that.cel)) return false; + return true; + } + + public int hashCode() { + return java.util.Objects.hash(cel, super.hashCode()); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (cel != null) { sb.append("cel:"); sb.append(cel); } + sb.append("}"); + return sb.toString(); + } + public class CelNested extends V1beta2CELDeviceSelectorFluent> implements Nested{ + CelNested(V1beta2CELDeviceSelector item) { + this.builder = new V1beta2CELDeviceSelectorBuilder(this, item); + } + V1beta2CELDeviceSelectorBuilder builder; + + public N and() { + return (N) V1beta2DeviceSelectorFluent.this.withCel(builder.build()); + } + + public N endCel() { + return and(); + } + + + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceSubRequestBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceSubRequestBuilder.java new file mode 100644 index 0000000000..8b4163952b --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceSubRequestBuilder.java @@ -0,0 +1,36 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +public class V1beta2DeviceSubRequestBuilder extends V1beta2DeviceSubRequestFluent implements VisitableBuilder{ + public V1beta2DeviceSubRequestBuilder() { + this(new V1beta2DeviceSubRequest()); + } + + public V1beta2DeviceSubRequestBuilder(V1beta2DeviceSubRequestFluent fluent) { + this(fluent, new V1beta2DeviceSubRequest()); + } + + public V1beta2DeviceSubRequestBuilder(V1beta2DeviceSubRequestFluent fluent,V1beta2DeviceSubRequest instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1beta2DeviceSubRequestBuilder(V1beta2DeviceSubRequest instance) { + this.fluent = this; + this.copyInstance(instance); + } + V1beta2DeviceSubRequestFluent fluent; + + public V1beta2DeviceSubRequest build() { + V1beta2DeviceSubRequest buildable = new V1beta2DeviceSubRequest(); + buildable.setAllocationMode(fluent.getAllocationMode()); + buildable.setCount(fluent.getCount()); + buildable.setDeviceClassName(fluent.getDeviceClassName()); + buildable.setName(fluent.getName()); + buildable.setSelectors(fluent.buildSelectors()); + buildable.setTolerations(fluent.buildTolerations()); + return buildable; + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceSubRequestFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceSubRequestFluent.java new file mode 100644 index 0000000000..76e2e3d552 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceSubRequestFluent.java @@ -0,0 +1,491 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.Nested; +import java.util.ArrayList; +import java.lang.String; +import java.util.function.Predicate; +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Long; +import java.util.Iterator; +import java.util.Collection; +import java.lang.Object; +import java.util.List; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1beta2DeviceSubRequestFluent> extends BaseFluent{ + public V1beta2DeviceSubRequestFluent() { + } + + public V1beta2DeviceSubRequestFluent(V1beta2DeviceSubRequest instance) { + this.copyInstance(instance); + } + private String allocationMode; + private Long count; + private String deviceClassName; + private String name; + private ArrayList selectors; + private ArrayList tolerations; + + protected void copyInstance(V1beta2DeviceSubRequest instance) { + instance = (instance != null ? instance : new V1beta2DeviceSubRequest()); + if (instance != null) { + this.withAllocationMode(instance.getAllocationMode()); + this.withCount(instance.getCount()); + this.withDeviceClassName(instance.getDeviceClassName()); + this.withName(instance.getName()); + this.withSelectors(instance.getSelectors()); + this.withTolerations(instance.getTolerations()); + } + } + + public String getAllocationMode() { + return this.allocationMode; + } + + public A withAllocationMode(String allocationMode) { + this.allocationMode = allocationMode; + return (A) this; + } + + public boolean hasAllocationMode() { + return this.allocationMode != null; + } + + public Long getCount() { + return this.count; + } + + public A withCount(Long count) { + this.count = count; + return (A) this; + } + + public boolean hasCount() { + return this.count != null; + } + + public String getDeviceClassName() { + return this.deviceClassName; + } + + public A withDeviceClassName(String deviceClassName) { + this.deviceClassName = deviceClassName; + return (A) this; + } + + public boolean hasDeviceClassName() { + return this.deviceClassName != null; + } + + public String getName() { + return this.name; + } + + public A withName(String name) { + this.name = name; + return (A) this; + } + + public boolean hasName() { + return this.name != null; + } + + public A addToSelectors(int index,V1beta2DeviceSelector item) { + if (this.selectors == null) {this.selectors = new ArrayList();} + V1beta2DeviceSelectorBuilder builder = new V1beta2DeviceSelectorBuilder(item); + if (index < 0 || index >= selectors.size()) { + _visitables.get("selectors").add(builder); + selectors.add(builder); + } else { + _visitables.get("selectors").add(builder); + selectors.add(index, builder); + } + return (A)this; + } + + public A setToSelectors(int index,V1beta2DeviceSelector item) { + if (this.selectors == null) {this.selectors = new ArrayList();} + V1beta2DeviceSelectorBuilder builder = new V1beta2DeviceSelectorBuilder(item); + if (index < 0 || index >= selectors.size()) { + _visitables.get("selectors").add(builder); + selectors.add(builder); + } else { + _visitables.get("selectors").add(builder); + selectors.set(index, builder); + } + return (A)this; + } + + public A addToSelectors(io.kubernetes.client.openapi.models.V1beta2DeviceSelector... items) { + if (this.selectors == null) {this.selectors = new ArrayList();} + for (V1beta2DeviceSelector item : items) {V1beta2DeviceSelectorBuilder builder = new V1beta2DeviceSelectorBuilder(item);_visitables.get("selectors").add(builder);this.selectors.add(builder);} return (A)this; + } + + public A addAllToSelectors(Collection items) { + if (this.selectors == null) {this.selectors = new ArrayList();} + for (V1beta2DeviceSelector item : items) {V1beta2DeviceSelectorBuilder builder = new V1beta2DeviceSelectorBuilder(item);_visitables.get("selectors").add(builder);this.selectors.add(builder);} return (A)this; + } + + public A removeFromSelectors(io.kubernetes.client.openapi.models.V1beta2DeviceSelector... items) { + if (this.selectors == null) return (A)this; + for (V1beta2DeviceSelector item : items) {V1beta2DeviceSelectorBuilder builder = new V1beta2DeviceSelectorBuilder(item);_visitables.get("selectors").remove(builder); this.selectors.remove(builder);} return (A)this; + } + + public A removeAllFromSelectors(Collection items) { + if (this.selectors == null) return (A)this; + for (V1beta2DeviceSelector item : items) {V1beta2DeviceSelectorBuilder builder = new V1beta2DeviceSelectorBuilder(item);_visitables.get("selectors").remove(builder); this.selectors.remove(builder);} return (A)this; + } + + public A removeMatchingFromSelectors(Predicate predicate) { + if (selectors == null) return (A) this; + final Iterator each = selectors.iterator(); + final List visitables = _visitables.get("selectors"); + while (each.hasNext()) { + V1beta2DeviceSelectorBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A)this; + } + + public List buildSelectors() { + return this.selectors != null ? build(selectors) : null; + } + + public V1beta2DeviceSelector buildSelector(int index) { + return this.selectors.get(index).build(); + } + + public V1beta2DeviceSelector buildFirstSelector() { + return this.selectors.get(0).build(); + } + + public V1beta2DeviceSelector buildLastSelector() { + return this.selectors.get(selectors.size() - 1).build(); + } + + public V1beta2DeviceSelector buildMatchingSelector(Predicate predicate) { + for (V1beta2DeviceSelectorBuilder item : selectors) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; + } + + public boolean hasMatchingSelector(Predicate predicate) { + for (V1beta2DeviceSelectorBuilder item : selectors) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public A withSelectors(List selectors) { + if (this.selectors != null) { + this._visitables.get("selectors").clear(); + } + if (selectors != null) { + this.selectors = new ArrayList(); + for (V1beta2DeviceSelector item : selectors) { + this.addToSelectors(item); + } + } else { + this.selectors = null; + } + return (A) this; + } + + public A withSelectors(io.kubernetes.client.openapi.models.V1beta2DeviceSelector... selectors) { + if (this.selectors != null) { + this.selectors.clear(); + _visitables.remove("selectors"); + } + if (selectors != null) { + for (V1beta2DeviceSelector item : selectors) { + this.addToSelectors(item); + } + } + return (A) this; + } + + public boolean hasSelectors() { + return this.selectors != null && !this.selectors.isEmpty(); + } + + public SelectorsNested addNewSelector() { + return new SelectorsNested(-1, null); + } + + public SelectorsNested addNewSelectorLike(V1beta2DeviceSelector item) { + return new SelectorsNested(-1, item); + } + + public SelectorsNested setNewSelectorLike(int index,V1beta2DeviceSelector item) { + return new SelectorsNested(index, item); + } + + public SelectorsNested editSelector(int index) { + if (selectors.size() <= index) throw new RuntimeException("Can't edit selectors. Index exceeds size."); + return setNewSelectorLike(index, buildSelector(index)); + } + + public SelectorsNested editFirstSelector() { + if (selectors.size() == 0) throw new RuntimeException("Can't edit first selectors. The list is empty."); + return setNewSelectorLike(0, buildSelector(0)); + } + + public SelectorsNested editLastSelector() { + int index = selectors.size() - 1; + if (index < 0) throw new RuntimeException("Can't edit last selectors. The list is empty."); + return setNewSelectorLike(index, buildSelector(index)); + } + + public SelectorsNested editMatchingSelector(Predicate predicate) { + int index = -1; + for (int i=0;i();} + V1beta2DeviceTolerationBuilder builder = new V1beta2DeviceTolerationBuilder(item); + if (index < 0 || index >= tolerations.size()) { + _visitables.get("tolerations").add(builder); + tolerations.add(builder); + } else { + _visitables.get("tolerations").add(builder); + tolerations.add(index, builder); + } + return (A)this; + } + + public A setToTolerations(int index,V1beta2DeviceToleration item) { + if (this.tolerations == null) {this.tolerations = new ArrayList();} + V1beta2DeviceTolerationBuilder builder = new V1beta2DeviceTolerationBuilder(item); + if (index < 0 || index >= tolerations.size()) { + _visitables.get("tolerations").add(builder); + tolerations.add(builder); + } else { + _visitables.get("tolerations").add(builder); + tolerations.set(index, builder); + } + return (A)this; + } + + public A addToTolerations(io.kubernetes.client.openapi.models.V1beta2DeviceToleration... items) { + if (this.tolerations == null) {this.tolerations = new ArrayList();} + for (V1beta2DeviceToleration item : items) {V1beta2DeviceTolerationBuilder builder = new V1beta2DeviceTolerationBuilder(item);_visitables.get("tolerations").add(builder);this.tolerations.add(builder);} return (A)this; + } + + public A addAllToTolerations(Collection items) { + if (this.tolerations == null) {this.tolerations = new ArrayList();} + for (V1beta2DeviceToleration item : items) {V1beta2DeviceTolerationBuilder builder = new V1beta2DeviceTolerationBuilder(item);_visitables.get("tolerations").add(builder);this.tolerations.add(builder);} return (A)this; + } + + public A removeFromTolerations(io.kubernetes.client.openapi.models.V1beta2DeviceToleration... items) { + if (this.tolerations == null) return (A)this; + for (V1beta2DeviceToleration item : items) {V1beta2DeviceTolerationBuilder builder = new V1beta2DeviceTolerationBuilder(item);_visitables.get("tolerations").remove(builder); this.tolerations.remove(builder);} return (A)this; + } + + public A removeAllFromTolerations(Collection items) { + if (this.tolerations == null) return (A)this; + for (V1beta2DeviceToleration item : items) {V1beta2DeviceTolerationBuilder builder = new V1beta2DeviceTolerationBuilder(item);_visitables.get("tolerations").remove(builder); this.tolerations.remove(builder);} return (A)this; + } + + public A removeMatchingFromTolerations(Predicate predicate) { + if (tolerations == null) return (A) this; + final Iterator each = tolerations.iterator(); + final List visitables = _visitables.get("tolerations"); + while (each.hasNext()) { + V1beta2DeviceTolerationBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A)this; + } + + public List buildTolerations() { + return this.tolerations != null ? build(tolerations) : null; + } + + public V1beta2DeviceToleration buildToleration(int index) { + return this.tolerations.get(index).build(); + } + + public V1beta2DeviceToleration buildFirstToleration() { + return this.tolerations.get(0).build(); + } + + public V1beta2DeviceToleration buildLastToleration() { + return this.tolerations.get(tolerations.size() - 1).build(); + } + + public V1beta2DeviceToleration buildMatchingToleration(Predicate predicate) { + for (V1beta2DeviceTolerationBuilder item : tolerations) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; + } + + public boolean hasMatchingToleration(Predicate predicate) { + for (V1beta2DeviceTolerationBuilder item : tolerations) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public A withTolerations(List tolerations) { + if (this.tolerations != null) { + this._visitables.get("tolerations").clear(); + } + if (tolerations != null) { + this.tolerations = new ArrayList(); + for (V1beta2DeviceToleration item : tolerations) { + this.addToTolerations(item); + } + } else { + this.tolerations = null; + } + return (A) this; + } + + public A withTolerations(io.kubernetes.client.openapi.models.V1beta2DeviceToleration... tolerations) { + if (this.tolerations != null) { + this.tolerations.clear(); + _visitables.remove("tolerations"); + } + if (tolerations != null) { + for (V1beta2DeviceToleration item : tolerations) { + this.addToTolerations(item); + } + } + return (A) this; + } + + public boolean hasTolerations() { + return this.tolerations != null && !this.tolerations.isEmpty(); + } + + public TolerationsNested addNewToleration() { + return new TolerationsNested(-1, null); + } + + public TolerationsNested addNewTolerationLike(V1beta2DeviceToleration item) { + return new TolerationsNested(-1, item); + } + + public TolerationsNested setNewTolerationLike(int index,V1beta2DeviceToleration item) { + return new TolerationsNested(index, item); + } + + public TolerationsNested editToleration(int index) { + if (tolerations.size() <= index) throw new RuntimeException("Can't edit tolerations. Index exceeds size."); + return setNewTolerationLike(index, buildToleration(index)); + } + + public TolerationsNested editFirstToleration() { + if (tolerations.size() == 0) throw new RuntimeException("Can't edit first tolerations. The list is empty."); + return setNewTolerationLike(0, buildToleration(0)); + } + + public TolerationsNested editLastToleration() { + int index = tolerations.size() - 1; + if (index < 0) throw new RuntimeException("Can't edit last tolerations. The list is empty."); + return setNewTolerationLike(index, buildToleration(index)); + } + + public TolerationsNested editMatchingToleration(Predicate predicate) { + int index = -1; + for (int i=0;i extends V1beta2DeviceSelectorFluent> implements Nested{ + SelectorsNested(int index,V1beta2DeviceSelector item) { + this.index = index; + this.builder = new V1beta2DeviceSelectorBuilder(this, item); + } + V1beta2DeviceSelectorBuilder builder; + int index; + + public N and() { + return (N) V1beta2DeviceSubRequestFluent.this.setToSelectors(index,builder.build()); + } + + public N endSelector() { + return and(); + } + + + } + public class TolerationsNested extends V1beta2DeviceTolerationFluent> implements Nested{ + TolerationsNested(int index,V1beta2DeviceToleration item) { + this.index = index; + this.builder = new V1beta2DeviceTolerationBuilder(this, item); + } + V1beta2DeviceTolerationBuilder builder; + int index; + + public N and() { + return (N) V1beta2DeviceSubRequestFluent.this.setToTolerations(index,builder.build()); + } + + public N endToleration() { + return and(); + } + + + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceTaintBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceTaintBuilder.java new file mode 100644 index 0000000000..71fa98ab47 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceTaintBuilder.java @@ -0,0 +1,34 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +public class V1beta2DeviceTaintBuilder extends V1beta2DeviceTaintFluent implements VisitableBuilder{ + public V1beta2DeviceTaintBuilder() { + this(new V1beta2DeviceTaint()); + } + + public V1beta2DeviceTaintBuilder(V1beta2DeviceTaintFluent fluent) { + this(fluent, new V1beta2DeviceTaint()); + } + + public V1beta2DeviceTaintBuilder(V1beta2DeviceTaintFluent fluent,V1beta2DeviceTaint instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1beta2DeviceTaintBuilder(V1beta2DeviceTaint instance) { + this.fluent = this; + this.copyInstance(instance); + } + V1beta2DeviceTaintFluent fluent; + + public V1beta2DeviceTaint build() { + V1beta2DeviceTaint buildable = new V1beta2DeviceTaint(); + buildable.setEffect(fluent.getEffect()); + buildable.setKey(fluent.getKey()); + buildable.setTimeAdded(fluent.getTimeAdded()); + buildable.setValue(fluent.getValue()); + return buildable; + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceTaintFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceTaintFluent.java new file mode 100644 index 0000000000..5f90839c53 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceTaintFluent.java @@ -0,0 +1,115 @@ +package io.kubernetes.client.openapi.models; + +import java.time.OffsetDateTime; +import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Object; +import java.lang.String; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1beta2DeviceTaintFluent> extends BaseFluent{ + public V1beta2DeviceTaintFluent() { + } + + public V1beta2DeviceTaintFluent(V1beta2DeviceTaint instance) { + this.copyInstance(instance); + } + private String effect; + private String key; + private OffsetDateTime timeAdded; + private String value; + + protected void copyInstance(V1beta2DeviceTaint instance) { + instance = (instance != null ? instance : new V1beta2DeviceTaint()); + if (instance != null) { + this.withEffect(instance.getEffect()); + this.withKey(instance.getKey()); + this.withTimeAdded(instance.getTimeAdded()); + this.withValue(instance.getValue()); + } + } + + public String getEffect() { + return this.effect; + } + + public A withEffect(String effect) { + this.effect = effect; + return (A) this; + } + + public boolean hasEffect() { + return this.effect != null; + } + + public String getKey() { + return this.key; + } + + public A withKey(String key) { + this.key = key; + return (A) this; + } + + public boolean hasKey() { + return this.key != null; + } + + public OffsetDateTime getTimeAdded() { + return this.timeAdded; + } + + public A withTimeAdded(OffsetDateTime timeAdded) { + this.timeAdded = timeAdded; + return (A) this; + } + + public boolean hasTimeAdded() { + return this.timeAdded != null; + } + + public String getValue() { + return this.value; + } + + public A withValue(String value) { + this.value = value; + return (A) this; + } + + public boolean hasValue() { + return this.value != null; + } + + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + if (!super.equals(o)) return false; + V1beta2DeviceTaintFluent that = (V1beta2DeviceTaintFluent) o; + if (!java.util.Objects.equals(effect, that.effect)) return false; + if (!java.util.Objects.equals(key, that.key)) return false; + if (!java.util.Objects.equals(timeAdded, that.timeAdded)) return false; + if (!java.util.Objects.equals(value, that.value)) return false; + return true; + } + + public int hashCode() { + return java.util.Objects.hash(effect, key, timeAdded, value, super.hashCode()); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (effect != null) { sb.append("effect:"); sb.append(effect + ","); } + if (key != null) { sb.append("key:"); sb.append(key + ","); } + if (timeAdded != null) { sb.append("timeAdded:"); sb.append(timeAdded + ","); } + if (value != null) { sb.append("value:"); sb.append(value); } + sb.append("}"); + return sb.toString(); + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceTolerationBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceTolerationBuilder.java new file mode 100644 index 0000000000..931506af45 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceTolerationBuilder.java @@ -0,0 +1,35 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +public class V1beta2DeviceTolerationBuilder extends V1beta2DeviceTolerationFluent implements VisitableBuilder{ + public V1beta2DeviceTolerationBuilder() { + this(new V1beta2DeviceToleration()); + } + + public V1beta2DeviceTolerationBuilder(V1beta2DeviceTolerationFluent fluent) { + this(fluent, new V1beta2DeviceToleration()); + } + + public V1beta2DeviceTolerationBuilder(V1beta2DeviceTolerationFluent fluent,V1beta2DeviceToleration instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1beta2DeviceTolerationBuilder(V1beta2DeviceToleration instance) { + this.fluent = this; + this.copyInstance(instance); + } + V1beta2DeviceTolerationFluent fluent; + + public V1beta2DeviceToleration build() { + V1beta2DeviceToleration buildable = new V1beta2DeviceToleration(); + buildable.setEffect(fluent.getEffect()); + buildable.setKey(fluent.getKey()); + buildable.setOperator(fluent.getOperator()); + buildable.setTolerationSeconds(fluent.getTolerationSeconds()); + buildable.setValue(fluent.getValue()); + return buildable; + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceTolerationFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceTolerationFluent.java new file mode 100644 index 0000000000..6017066919 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceTolerationFluent.java @@ -0,0 +1,132 @@ +package io.kubernetes.client.openapi.models; + +import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Long; +import java.lang.Object; +import java.lang.String; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1beta2DeviceTolerationFluent> extends BaseFluent{ + public V1beta2DeviceTolerationFluent() { + } + + public V1beta2DeviceTolerationFluent(V1beta2DeviceToleration instance) { + this.copyInstance(instance); + } + private String effect; + private String key; + private String operator; + private Long tolerationSeconds; + private String value; + + protected void copyInstance(V1beta2DeviceToleration instance) { + instance = (instance != null ? instance : new V1beta2DeviceToleration()); + if (instance != null) { + this.withEffect(instance.getEffect()); + this.withKey(instance.getKey()); + this.withOperator(instance.getOperator()); + this.withTolerationSeconds(instance.getTolerationSeconds()); + this.withValue(instance.getValue()); + } + } + + public String getEffect() { + return this.effect; + } + + public A withEffect(String effect) { + this.effect = effect; + return (A) this; + } + + public boolean hasEffect() { + return this.effect != null; + } + + public String getKey() { + return this.key; + } + + public A withKey(String key) { + this.key = key; + return (A) this; + } + + public boolean hasKey() { + return this.key != null; + } + + public String getOperator() { + return this.operator; + } + + public A withOperator(String operator) { + this.operator = operator; + return (A) this; + } + + public boolean hasOperator() { + return this.operator != null; + } + + public Long getTolerationSeconds() { + return this.tolerationSeconds; + } + + public A withTolerationSeconds(Long tolerationSeconds) { + this.tolerationSeconds = tolerationSeconds; + return (A) this; + } + + public boolean hasTolerationSeconds() { + return this.tolerationSeconds != null; + } + + public String getValue() { + return this.value; + } + + public A withValue(String value) { + this.value = value; + return (A) this; + } + + public boolean hasValue() { + return this.value != null; + } + + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + if (!super.equals(o)) return false; + V1beta2DeviceTolerationFluent that = (V1beta2DeviceTolerationFluent) o; + if (!java.util.Objects.equals(effect, that.effect)) return false; + if (!java.util.Objects.equals(key, that.key)) return false; + if (!java.util.Objects.equals(operator, that.operator)) return false; + if (!java.util.Objects.equals(tolerationSeconds, that.tolerationSeconds)) return false; + if (!java.util.Objects.equals(value, that.value)) return false; + return true; + } + + public int hashCode() { + return java.util.Objects.hash(effect, key, operator, tolerationSeconds, value, super.hashCode()); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (effect != null) { sb.append("effect:"); sb.append(effect + ","); } + if (key != null) { sb.append("key:"); sb.append(key + ","); } + if (operator != null) { sb.append("operator:"); sb.append(operator + ","); } + if (tolerationSeconds != null) { sb.append("tolerationSeconds:"); sb.append(tolerationSeconds + ","); } + if (value != null) { sb.append("value:"); sb.append(value); } + sb.append("}"); + return sb.toString(); + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ExactDeviceRequestBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ExactDeviceRequestBuilder.java new file mode 100644 index 0000000000..1066bec0aa --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ExactDeviceRequestBuilder.java @@ -0,0 +1,36 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +public class V1beta2ExactDeviceRequestBuilder extends V1beta2ExactDeviceRequestFluent implements VisitableBuilder{ + public V1beta2ExactDeviceRequestBuilder() { + this(new V1beta2ExactDeviceRequest()); + } + + public V1beta2ExactDeviceRequestBuilder(V1beta2ExactDeviceRequestFluent fluent) { + this(fluent, new V1beta2ExactDeviceRequest()); + } + + public V1beta2ExactDeviceRequestBuilder(V1beta2ExactDeviceRequestFluent fluent,V1beta2ExactDeviceRequest instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1beta2ExactDeviceRequestBuilder(V1beta2ExactDeviceRequest instance) { + this.fluent = this; + this.copyInstance(instance); + } + V1beta2ExactDeviceRequestFluent fluent; + + public V1beta2ExactDeviceRequest build() { + V1beta2ExactDeviceRequest buildable = new V1beta2ExactDeviceRequest(); + buildable.setAdminAccess(fluent.getAdminAccess()); + buildable.setAllocationMode(fluent.getAllocationMode()); + buildable.setCount(fluent.getCount()); + buildable.setDeviceClassName(fluent.getDeviceClassName()); + buildable.setSelectors(fluent.buildSelectors()); + buildable.setTolerations(fluent.buildTolerations()); + return buildable; + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ExactDeviceRequestFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ExactDeviceRequestFluent.java new file mode 100644 index 0000000000..0fb093ce8a --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ExactDeviceRequestFluent.java @@ -0,0 +1,496 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.Nested; +import java.util.ArrayList; +import java.lang.String; +import java.util.function.Predicate; +import io.kubernetes.client.fluent.BaseFluent; +import java.util.Iterator; +import java.util.List; +import java.lang.Boolean; +import java.lang.Long; +import java.util.Collection; +import java.lang.Object; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1beta2ExactDeviceRequestFluent> extends BaseFluent{ + public V1beta2ExactDeviceRequestFluent() { + } + + public V1beta2ExactDeviceRequestFluent(V1beta2ExactDeviceRequest instance) { + this.copyInstance(instance); + } + private Boolean adminAccess; + private String allocationMode; + private Long count; + private String deviceClassName; + private ArrayList selectors; + private ArrayList tolerations; + + protected void copyInstance(V1beta2ExactDeviceRequest instance) { + instance = (instance != null ? instance : new V1beta2ExactDeviceRequest()); + if (instance != null) { + this.withAdminAccess(instance.getAdminAccess()); + this.withAllocationMode(instance.getAllocationMode()); + this.withCount(instance.getCount()); + this.withDeviceClassName(instance.getDeviceClassName()); + this.withSelectors(instance.getSelectors()); + this.withTolerations(instance.getTolerations()); + } + } + + public Boolean getAdminAccess() { + return this.adminAccess; + } + + public A withAdminAccess(Boolean adminAccess) { + this.adminAccess = adminAccess; + return (A) this; + } + + public boolean hasAdminAccess() { + return this.adminAccess != null; + } + + public String getAllocationMode() { + return this.allocationMode; + } + + public A withAllocationMode(String allocationMode) { + this.allocationMode = allocationMode; + return (A) this; + } + + public boolean hasAllocationMode() { + return this.allocationMode != null; + } + + public Long getCount() { + return this.count; + } + + public A withCount(Long count) { + this.count = count; + return (A) this; + } + + public boolean hasCount() { + return this.count != null; + } + + public String getDeviceClassName() { + return this.deviceClassName; + } + + public A withDeviceClassName(String deviceClassName) { + this.deviceClassName = deviceClassName; + return (A) this; + } + + public boolean hasDeviceClassName() { + return this.deviceClassName != null; + } + + public A addToSelectors(int index,V1beta2DeviceSelector item) { + if (this.selectors == null) {this.selectors = new ArrayList();} + V1beta2DeviceSelectorBuilder builder = new V1beta2DeviceSelectorBuilder(item); + if (index < 0 || index >= selectors.size()) { + _visitables.get("selectors").add(builder); + selectors.add(builder); + } else { + _visitables.get("selectors").add(builder); + selectors.add(index, builder); + } + return (A)this; + } + + public A setToSelectors(int index,V1beta2DeviceSelector item) { + if (this.selectors == null) {this.selectors = new ArrayList();} + V1beta2DeviceSelectorBuilder builder = new V1beta2DeviceSelectorBuilder(item); + if (index < 0 || index >= selectors.size()) { + _visitables.get("selectors").add(builder); + selectors.add(builder); + } else { + _visitables.get("selectors").add(builder); + selectors.set(index, builder); + } + return (A)this; + } + + public A addToSelectors(io.kubernetes.client.openapi.models.V1beta2DeviceSelector... items) { + if (this.selectors == null) {this.selectors = new ArrayList();} + for (V1beta2DeviceSelector item : items) {V1beta2DeviceSelectorBuilder builder = new V1beta2DeviceSelectorBuilder(item);_visitables.get("selectors").add(builder);this.selectors.add(builder);} return (A)this; + } + + public A addAllToSelectors(Collection items) { + if (this.selectors == null) {this.selectors = new ArrayList();} + for (V1beta2DeviceSelector item : items) {V1beta2DeviceSelectorBuilder builder = new V1beta2DeviceSelectorBuilder(item);_visitables.get("selectors").add(builder);this.selectors.add(builder);} return (A)this; + } + + public A removeFromSelectors(io.kubernetes.client.openapi.models.V1beta2DeviceSelector... items) { + if (this.selectors == null) return (A)this; + for (V1beta2DeviceSelector item : items) {V1beta2DeviceSelectorBuilder builder = new V1beta2DeviceSelectorBuilder(item);_visitables.get("selectors").remove(builder); this.selectors.remove(builder);} return (A)this; + } + + public A removeAllFromSelectors(Collection items) { + if (this.selectors == null) return (A)this; + for (V1beta2DeviceSelector item : items) {V1beta2DeviceSelectorBuilder builder = new V1beta2DeviceSelectorBuilder(item);_visitables.get("selectors").remove(builder); this.selectors.remove(builder);} return (A)this; + } + + public A removeMatchingFromSelectors(Predicate predicate) { + if (selectors == null) return (A) this; + final Iterator each = selectors.iterator(); + final List visitables = _visitables.get("selectors"); + while (each.hasNext()) { + V1beta2DeviceSelectorBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A)this; + } + + public List buildSelectors() { + return this.selectors != null ? build(selectors) : null; + } + + public V1beta2DeviceSelector buildSelector(int index) { + return this.selectors.get(index).build(); + } + + public V1beta2DeviceSelector buildFirstSelector() { + return this.selectors.get(0).build(); + } + + public V1beta2DeviceSelector buildLastSelector() { + return this.selectors.get(selectors.size() - 1).build(); + } + + public V1beta2DeviceSelector buildMatchingSelector(Predicate predicate) { + for (V1beta2DeviceSelectorBuilder item : selectors) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; + } + + public boolean hasMatchingSelector(Predicate predicate) { + for (V1beta2DeviceSelectorBuilder item : selectors) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public A withSelectors(List selectors) { + if (this.selectors != null) { + this._visitables.get("selectors").clear(); + } + if (selectors != null) { + this.selectors = new ArrayList(); + for (V1beta2DeviceSelector item : selectors) { + this.addToSelectors(item); + } + } else { + this.selectors = null; + } + return (A) this; + } + + public A withSelectors(io.kubernetes.client.openapi.models.V1beta2DeviceSelector... selectors) { + if (this.selectors != null) { + this.selectors.clear(); + _visitables.remove("selectors"); + } + if (selectors != null) { + for (V1beta2DeviceSelector item : selectors) { + this.addToSelectors(item); + } + } + return (A) this; + } + + public boolean hasSelectors() { + return this.selectors != null && !this.selectors.isEmpty(); + } + + public SelectorsNested addNewSelector() { + return new SelectorsNested(-1, null); + } + + public SelectorsNested addNewSelectorLike(V1beta2DeviceSelector item) { + return new SelectorsNested(-1, item); + } + + public SelectorsNested setNewSelectorLike(int index,V1beta2DeviceSelector item) { + return new SelectorsNested(index, item); + } + + public SelectorsNested editSelector(int index) { + if (selectors.size() <= index) throw new RuntimeException("Can't edit selectors. Index exceeds size."); + return setNewSelectorLike(index, buildSelector(index)); + } + + public SelectorsNested editFirstSelector() { + if (selectors.size() == 0) throw new RuntimeException("Can't edit first selectors. The list is empty."); + return setNewSelectorLike(0, buildSelector(0)); + } + + public SelectorsNested editLastSelector() { + int index = selectors.size() - 1; + if (index < 0) throw new RuntimeException("Can't edit last selectors. The list is empty."); + return setNewSelectorLike(index, buildSelector(index)); + } + + public SelectorsNested editMatchingSelector(Predicate predicate) { + int index = -1; + for (int i=0;i();} + V1beta2DeviceTolerationBuilder builder = new V1beta2DeviceTolerationBuilder(item); + if (index < 0 || index >= tolerations.size()) { + _visitables.get("tolerations").add(builder); + tolerations.add(builder); + } else { + _visitables.get("tolerations").add(builder); + tolerations.add(index, builder); + } + return (A)this; + } + + public A setToTolerations(int index,V1beta2DeviceToleration item) { + if (this.tolerations == null) {this.tolerations = new ArrayList();} + V1beta2DeviceTolerationBuilder builder = new V1beta2DeviceTolerationBuilder(item); + if (index < 0 || index >= tolerations.size()) { + _visitables.get("tolerations").add(builder); + tolerations.add(builder); + } else { + _visitables.get("tolerations").add(builder); + tolerations.set(index, builder); + } + return (A)this; + } + + public A addToTolerations(io.kubernetes.client.openapi.models.V1beta2DeviceToleration... items) { + if (this.tolerations == null) {this.tolerations = new ArrayList();} + for (V1beta2DeviceToleration item : items) {V1beta2DeviceTolerationBuilder builder = new V1beta2DeviceTolerationBuilder(item);_visitables.get("tolerations").add(builder);this.tolerations.add(builder);} return (A)this; + } + + public A addAllToTolerations(Collection items) { + if (this.tolerations == null) {this.tolerations = new ArrayList();} + for (V1beta2DeviceToleration item : items) {V1beta2DeviceTolerationBuilder builder = new V1beta2DeviceTolerationBuilder(item);_visitables.get("tolerations").add(builder);this.tolerations.add(builder);} return (A)this; + } + + public A removeFromTolerations(io.kubernetes.client.openapi.models.V1beta2DeviceToleration... items) { + if (this.tolerations == null) return (A)this; + for (V1beta2DeviceToleration item : items) {V1beta2DeviceTolerationBuilder builder = new V1beta2DeviceTolerationBuilder(item);_visitables.get("tolerations").remove(builder); this.tolerations.remove(builder);} return (A)this; + } + + public A removeAllFromTolerations(Collection items) { + if (this.tolerations == null) return (A)this; + for (V1beta2DeviceToleration item : items) {V1beta2DeviceTolerationBuilder builder = new V1beta2DeviceTolerationBuilder(item);_visitables.get("tolerations").remove(builder); this.tolerations.remove(builder);} return (A)this; + } + + public A removeMatchingFromTolerations(Predicate predicate) { + if (tolerations == null) return (A) this; + final Iterator each = tolerations.iterator(); + final List visitables = _visitables.get("tolerations"); + while (each.hasNext()) { + V1beta2DeviceTolerationBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A)this; + } + + public List buildTolerations() { + return this.tolerations != null ? build(tolerations) : null; + } + + public V1beta2DeviceToleration buildToleration(int index) { + return this.tolerations.get(index).build(); + } + + public V1beta2DeviceToleration buildFirstToleration() { + return this.tolerations.get(0).build(); + } + + public V1beta2DeviceToleration buildLastToleration() { + return this.tolerations.get(tolerations.size() - 1).build(); + } + + public V1beta2DeviceToleration buildMatchingToleration(Predicate predicate) { + for (V1beta2DeviceTolerationBuilder item : tolerations) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; + } + + public boolean hasMatchingToleration(Predicate predicate) { + for (V1beta2DeviceTolerationBuilder item : tolerations) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public A withTolerations(List tolerations) { + if (this.tolerations != null) { + this._visitables.get("tolerations").clear(); + } + if (tolerations != null) { + this.tolerations = new ArrayList(); + for (V1beta2DeviceToleration item : tolerations) { + this.addToTolerations(item); + } + } else { + this.tolerations = null; + } + return (A) this; + } + + public A withTolerations(io.kubernetes.client.openapi.models.V1beta2DeviceToleration... tolerations) { + if (this.tolerations != null) { + this.tolerations.clear(); + _visitables.remove("tolerations"); + } + if (tolerations != null) { + for (V1beta2DeviceToleration item : tolerations) { + this.addToTolerations(item); + } + } + return (A) this; + } + + public boolean hasTolerations() { + return this.tolerations != null && !this.tolerations.isEmpty(); + } + + public TolerationsNested addNewToleration() { + return new TolerationsNested(-1, null); + } + + public TolerationsNested addNewTolerationLike(V1beta2DeviceToleration item) { + return new TolerationsNested(-1, item); + } + + public TolerationsNested setNewTolerationLike(int index,V1beta2DeviceToleration item) { + return new TolerationsNested(index, item); + } + + public TolerationsNested editToleration(int index) { + if (tolerations.size() <= index) throw new RuntimeException("Can't edit tolerations. Index exceeds size."); + return setNewTolerationLike(index, buildToleration(index)); + } + + public TolerationsNested editFirstToleration() { + if (tolerations.size() == 0) throw new RuntimeException("Can't edit first tolerations. The list is empty."); + return setNewTolerationLike(0, buildToleration(0)); + } + + public TolerationsNested editLastToleration() { + int index = tolerations.size() - 1; + if (index < 0) throw new RuntimeException("Can't edit last tolerations. The list is empty."); + return setNewTolerationLike(index, buildToleration(index)); + } + + public TolerationsNested editMatchingToleration(Predicate predicate) { + int index = -1; + for (int i=0;i extends V1beta2DeviceSelectorFluent> implements Nested{ + SelectorsNested(int index,V1beta2DeviceSelector item) { + this.index = index; + this.builder = new V1beta2DeviceSelectorBuilder(this, item); + } + V1beta2DeviceSelectorBuilder builder; + int index; + + public N and() { + return (N) V1beta2ExactDeviceRequestFluent.this.setToSelectors(index,builder.build()); + } + + public N endSelector() { + return and(); + } + + + } + public class TolerationsNested extends V1beta2DeviceTolerationFluent> implements Nested{ + TolerationsNested(int index,V1beta2DeviceToleration item) { + this.index = index; + this.builder = new V1beta2DeviceTolerationBuilder(this, item); + } + V1beta2DeviceTolerationBuilder builder; + int index; + + public N and() { + return (N) V1beta2ExactDeviceRequestFluent.this.setToTolerations(index,builder.build()); + } + + public N endToleration() { + return and(); + } + + + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ExemptPriorityLevelConfigurationBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ExemptPriorityLevelConfigurationBuilder.java deleted file mode 100644 index 277949766a..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ExemptPriorityLevelConfigurationBuilder.java +++ /dev/null @@ -1,32 +0,0 @@ -package io.kubernetes.client.openapi.models; - -import io.kubernetes.client.fluent.VisitableBuilder; -public class V1beta2ExemptPriorityLevelConfigurationBuilder extends V1beta2ExemptPriorityLevelConfigurationFluent implements VisitableBuilder{ - public V1beta2ExemptPriorityLevelConfigurationBuilder() { - this(new V1beta2ExemptPriorityLevelConfiguration()); - } - - public V1beta2ExemptPriorityLevelConfigurationBuilder(V1beta2ExemptPriorityLevelConfigurationFluent fluent) { - this(fluent, new V1beta2ExemptPriorityLevelConfiguration()); - } - - public V1beta2ExemptPriorityLevelConfigurationBuilder(V1beta2ExemptPriorityLevelConfigurationFluent fluent,V1beta2ExemptPriorityLevelConfiguration instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - - public V1beta2ExemptPriorityLevelConfigurationBuilder(V1beta2ExemptPriorityLevelConfiguration instance) { - this.fluent = this; - this.copyInstance(instance); - } - V1beta2ExemptPriorityLevelConfigurationFluent fluent; - - public V1beta2ExemptPriorityLevelConfiguration build() { - V1beta2ExemptPriorityLevelConfiguration buildable = new V1beta2ExemptPriorityLevelConfiguration(); - buildable.setLendablePercent(fluent.getLendablePercent()); - buildable.setNominalConcurrencyShares(fluent.getNominalConcurrencyShares()); - return buildable; - } - - -} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ExemptPriorityLevelConfigurationFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ExemptPriorityLevelConfigurationFluent.java deleted file mode 100644 index 5822c4110d..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ExemptPriorityLevelConfigurationFluent.java +++ /dev/null @@ -1,81 +0,0 @@ -package io.kubernetes.client.openapi.models; - -import java.lang.Integer; -import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.BaseFluent; -import java.lang.Object; -import java.lang.String; - -/** - * Generated - */ -@SuppressWarnings("unchecked") -public class V1beta2ExemptPriorityLevelConfigurationFluent> extends BaseFluent{ - public V1beta2ExemptPriorityLevelConfigurationFluent() { - } - - public V1beta2ExemptPriorityLevelConfigurationFluent(V1beta2ExemptPriorityLevelConfiguration instance) { - this.copyInstance(instance); - } - private Integer lendablePercent; - private Integer nominalConcurrencyShares; - - protected void copyInstance(V1beta2ExemptPriorityLevelConfiguration instance) { - instance = (instance != null ? instance : new V1beta2ExemptPriorityLevelConfiguration()); - if (instance != null) { - this.withLendablePercent(instance.getLendablePercent()); - this.withNominalConcurrencyShares(instance.getNominalConcurrencyShares()); - } - } - - public Integer getLendablePercent() { - return this.lendablePercent; - } - - public A withLendablePercent(Integer lendablePercent) { - this.lendablePercent = lendablePercent; - return (A) this; - } - - public boolean hasLendablePercent() { - return this.lendablePercent != null; - } - - public Integer getNominalConcurrencyShares() { - return this.nominalConcurrencyShares; - } - - public A withNominalConcurrencyShares(Integer nominalConcurrencyShares) { - this.nominalConcurrencyShares = nominalConcurrencyShares; - return (A) this; - } - - public boolean hasNominalConcurrencyShares() { - return this.nominalConcurrencyShares != null; - } - - public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; - V1beta2ExemptPriorityLevelConfigurationFluent that = (V1beta2ExemptPriorityLevelConfigurationFluent) o; - if (!java.util.Objects.equals(lendablePercent, that.lendablePercent)) return false; - if (!java.util.Objects.equals(nominalConcurrencyShares, that.nominalConcurrencyShares)) return false; - return true; - } - - public int hashCode() { - return java.util.Objects.hash(lendablePercent, nominalConcurrencyShares, super.hashCode()); - } - - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("{"); - if (lendablePercent != null) { sb.append("lendablePercent:"); sb.append(lendablePercent + ","); } - if (nominalConcurrencyShares != null) { sb.append("nominalConcurrencyShares:"); sb.append(nominalConcurrencyShares); } - sb.append("}"); - return sb.toString(); - } - - -} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2FlowDistinguisherMethodBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2FlowDistinguisherMethodBuilder.java deleted file mode 100644 index 59647c0de4..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2FlowDistinguisherMethodBuilder.java +++ /dev/null @@ -1,31 +0,0 @@ -package io.kubernetes.client.openapi.models; - -import io.kubernetes.client.fluent.VisitableBuilder; -public class V1beta2FlowDistinguisherMethodBuilder extends V1beta2FlowDistinguisherMethodFluent implements VisitableBuilder{ - public V1beta2FlowDistinguisherMethodBuilder() { - this(new V1beta2FlowDistinguisherMethod()); - } - - public V1beta2FlowDistinguisherMethodBuilder(V1beta2FlowDistinguisherMethodFluent fluent) { - this(fluent, new V1beta2FlowDistinguisherMethod()); - } - - public V1beta2FlowDistinguisherMethodBuilder(V1beta2FlowDistinguisherMethodFluent fluent,V1beta2FlowDistinguisherMethod instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - - public V1beta2FlowDistinguisherMethodBuilder(V1beta2FlowDistinguisherMethod instance) { - this.fluent = this; - this.copyInstance(instance); - } - V1beta2FlowDistinguisherMethodFluent fluent; - - public V1beta2FlowDistinguisherMethod build() { - V1beta2FlowDistinguisherMethod buildable = new V1beta2FlowDistinguisherMethod(); - buildable.setType(fluent.getType()); - return buildable; - } - - -} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2FlowDistinguisherMethodFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2FlowDistinguisherMethodFluent.java deleted file mode 100644 index dfe954b01d..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2FlowDistinguisherMethodFluent.java +++ /dev/null @@ -1,63 +0,0 @@ -package io.kubernetes.client.openapi.models; - -import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.BaseFluent; -import java.lang.Object; -import java.lang.String; - -/** - * Generated - */ -@SuppressWarnings("unchecked") -public class V1beta2FlowDistinguisherMethodFluent> extends BaseFluent{ - public V1beta2FlowDistinguisherMethodFluent() { - } - - public V1beta2FlowDistinguisherMethodFluent(V1beta2FlowDistinguisherMethod instance) { - this.copyInstance(instance); - } - private String type; - - protected void copyInstance(V1beta2FlowDistinguisherMethod instance) { - instance = (instance != null ? instance : new V1beta2FlowDistinguisherMethod()); - if (instance != null) { - this.withType(instance.getType()); - } - } - - public String getType() { - return this.type; - } - - public A withType(String type) { - this.type = type; - return (A) this; - } - - public boolean hasType() { - return this.type != null; - } - - public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; - V1beta2FlowDistinguisherMethodFluent that = (V1beta2FlowDistinguisherMethodFluent) o; - if (!java.util.Objects.equals(type, that.type)) return false; - return true; - } - - public int hashCode() { - return java.util.Objects.hash(type, super.hashCode()); - } - - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("{"); - if (type != null) { sb.append("type:"); sb.append(type); } - sb.append("}"); - return sb.toString(); - } - - -} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2FlowSchemaBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2FlowSchemaBuilder.java deleted file mode 100644 index 24a8d1ec97..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2FlowSchemaBuilder.java +++ /dev/null @@ -1,35 +0,0 @@ -package io.kubernetes.client.openapi.models; - -import io.kubernetes.client.fluent.VisitableBuilder; -public class V1beta2FlowSchemaBuilder extends V1beta2FlowSchemaFluent implements VisitableBuilder{ - public V1beta2FlowSchemaBuilder() { - this(new V1beta2FlowSchema()); - } - - public V1beta2FlowSchemaBuilder(V1beta2FlowSchemaFluent fluent) { - this(fluent, new V1beta2FlowSchema()); - } - - public V1beta2FlowSchemaBuilder(V1beta2FlowSchemaFluent fluent,V1beta2FlowSchema instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - - public V1beta2FlowSchemaBuilder(V1beta2FlowSchema instance) { - this.fluent = this; - this.copyInstance(instance); - } - V1beta2FlowSchemaFluent fluent; - - public V1beta2FlowSchema build() { - V1beta2FlowSchema buildable = new V1beta2FlowSchema(); - buildable.setApiVersion(fluent.getApiVersion()); - buildable.setKind(fluent.getKind()); - buildable.setMetadata(fluent.buildMetadata()); - buildable.setSpec(fluent.buildSpec()); - buildable.setStatus(fluent.buildStatus()); - return buildable; - } - - -} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2FlowSchemaConditionBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2FlowSchemaConditionBuilder.java deleted file mode 100644 index 6e8a3fe531..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2FlowSchemaConditionBuilder.java +++ /dev/null @@ -1,35 +0,0 @@ -package io.kubernetes.client.openapi.models; - -import io.kubernetes.client.fluent.VisitableBuilder; -public class V1beta2FlowSchemaConditionBuilder extends V1beta2FlowSchemaConditionFluent implements VisitableBuilder{ - public V1beta2FlowSchemaConditionBuilder() { - this(new V1beta2FlowSchemaCondition()); - } - - public V1beta2FlowSchemaConditionBuilder(V1beta2FlowSchemaConditionFluent fluent) { - this(fluent, new V1beta2FlowSchemaCondition()); - } - - public V1beta2FlowSchemaConditionBuilder(V1beta2FlowSchemaConditionFluent fluent,V1beta2FlowSchemaCondition instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - - public V1beta2FlowSchemaConditionBuilder(V1beta2FlowSchemaCondition instance) { - this.fluent = this; - this.copyInstance(instance); - } - V1beta2FlowSchemaConditionFluent fluent; - - public V1beta2FlowSchemaCondition build() { - V1beta2FlowSchemaCondition buildable = new V1beta2FlowSchemaCondition(); - buildable.setLastTransitionTime(fluent.getLastTransitionTime()); - buildable.setMessage(fluent.getMessage()); - buildable.setReason(fluent.getReason()); - buildable.setStatus(fluent.getStatus()); - buildable.setType(fluent.getType()); - return buildable; - } - - -} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2FlowSchemaConditionFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2FlowSchemaConditionFluent.java deleted file mode 100644 index af4f90e86a..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2FlowSchemaConditionFluent.java +++ /dev/null @@ -1,132 +0,0 @@ -package io.kubernetes.client.openapi.models; - -import java.time.OffsetDateTime; -import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.BaseFluent; -import java.lang.Object; -import java.lang.String; - -/** - * Generated - */ -@SuppressWarnings("unchecked") -public class V1beta2FlowSchemaConditionFluent> extends BaseFluent{ - public V1beta2FlowSchemaConditionFluent() { - } - - public V1beta2FlowSchemaConditionFluent(V1beta2FlowSchemaCondition instance) { - this.copyInstance(instance); - } - private OffsetDateTime lastTransitionTime; - private String message; - private String reason; - private String status; - private String type; - - protected void copyInstance(V1beta2FlowSchemaCondition instance) { - instance = (instance != null ? instance : new V1beta2FlowSchemaCondition()); - if (instance != null) { - this.withLastTransitionTime(instance.getLastTransitionTime()); - this.withMessage(instance.getMessage()); - this.withReason(instance.getReason()); - this.withStatus(instance.getStatus()); - this.withType(instance.getType()); - } - } - - public OffsetDateTime getLastTransitionTime() { - return this.lastTransitionTime; - } - - public A withLastTransitionTime(OffsetDateTime lastTransitionTime) { - this.lastTransitionTime = lastTransitionTime; - return (A) this; - } - - public boolean hasLastTransitionTime() { - return this.lastTransitionTime != null; - } - - public String getMessage() { - return this.message; - } - - public A withMessage(String message) { - this.message = message; - return (A) this; - } - - public boolean hasMessage() { - return this.message != null; - } - - public String getReason() { - return this.reason; - } - - public A withReason(String reason) { - this.reason = reason; - return (A) this; - } - - public boolean hasReason() { - return this.reason != null; - } - - public String getStatus() { - return this.status; - } - - public A withStatus(String status) { - this.status = status; - return (A) this; - } - - public boolean hasStatus() { - return this.status != null; - } - - public String getType() { - return this.type; - } - - public A withType(String type) { - this.type = type; - return (A) this; - } - - public boolean hasType() { - return this.type != null; - } - - public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; - V1beta2FlowSchemaConditionFluent that = (V1beta2FlowSchemaConditionFluent) o; - if (!java.util.Objects.equals(lastTransitionTime, that.lastTransitionTime)) return false; - if (!java.util.Objects.equals(message, that.message)) return false; - if (!java.util.Objects.equals(reason, that.reason)) return false; - if (!java.util.Objects.equals(status, that.status)) return false; - if (!java.util.Objects.equals(type, that.type)) return false; - return true; - } - - public int hashCode() { - return java.util.Objects.hash(lastTransitionTime, message, reason, status, type, super.hashCode()); - } - - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("{"); - if (lastTransitionTime != null) { sb.append("lastTransitionTime:"); sb.append(lastTransitionTime + ","); } - if (message != null) { sb.append("message:"); sb.append(message + ","); } - if (reason != null) { sb.append("reason:"); sb.append(reason + ","); } - if (status != null) { sb.append("status:"); sb.append(status + ","); } - if (type != null) { sb.append("type:"); sb.append(type); } - sb.append("}"); - return sb.toString(); - } - - -} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2FlowSchemaFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2FlowSchemaFluent.java deleted file mode 100644 index 295a4f23b4..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2FlowSchemaFluent.java +++ /dev/null @@ -1,260 +0,0 @@ -package io.kubernetes.client.openapi.models; - -import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.Nested; -import java.lang.String; -import io.kubernetes.client.fluent.BaseFluent; -import java.lang.Object; - -/** - * Generated - */ -@SuppressWarnings("unchecked") -public class V1beta2FlowSchemaFluent> extends BaseFluent{ - public V1beta2FlowSchemaFluent() { - } - - public V1beta2FlowSchemaFluent(V1beta2FlowSchema instance) { - this.copyInstance(instance); - } - private String apiVersion; - private String kind; - private V1ObjectMetaBuilder metadata; - private V1beta2FlowSchemaSpecBuilder spec; - private V1beta2FlowSchemaStatusBuilder status; - - protected void copyInstance(V1beta2FlowSchema instance) { - instance = (instance != null ? instance : new V1beta2FlowSchema()); - if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withKind(instance.getKind()); - this.withMetadata(instance.getMetadata()); - this.withSpec(instance.getSpec()); - this.withStatus(instance.getStatus()); - } - } - - public String getApiVersion() { - return this.apiVersion; - } - - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; - } - - public boolean hasApiVersion() { - return this.apiVersion != null; - } - - public String getKind() { - return this.kind; - } - - public A withKind(String kind) { - this.kind = kind; - return (A) this; - } - - public boolean hasKind() { - return this.kind != null; - } - - public V1ObjectMeta buildMetadata() { - return this.metadata != null ? this.metadata.build() : null; - } - - public A withMetadata(V1ObjectMeta metadata) { - this._visitables.remove("metadata"); - if (metadata != null) { - this.metadata = new V1ObjectMetaBuilder(metadata); - this._visitables.get("metadata").add(this.metadata); - } else { - this.metadata = null; - this._visitables.get("metadata").remove(this.metadata); - } - return (A) this; - } - - public boolean hasMetadata() { - return this.metadata != null; - } - - public MetadataNested withNewMetadata() { - return new MetadataNested(null); - } - - public MetadataNested withNewMetadataLike(V1ObjectMeta item) { - return new MetadataNested(item); - } - - public MetadataNested editMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(null)); - } - - public MetadataNested editOrNewMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(new V1ObjectMetaBuilder().build())); - } - - public MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(item)); - } - - public V1beta2FlowSchemaSpec buildSpec() { - return this.spec != null ? this.spec.build() : null; - } - - public A withSpec(V1beta2FlowSchemaSpec spec) { - this._visitables.remove("spec"); - if (spec != null) { - this.spec = new V1beta2FlowSchemaSpecBuilder(spec); - this._visitables.get("spec").add(this.spec); - } else { - this.spec = null; - this._visitables.get("spec").remove(this.spec); - } - return (A) this; - } - - public boolean hasSpec() { - return this.spec != null; - } - - public SpecNested withNewSpec() { - return new SpecNested(null); - } - - public SpecNested withNewSpecLike(V1beta2FlowSchemaSpec item) { - return new SpecNested(item); - } - - public SpecNested editSpec() { - return withNewSpecLike(java.util.Optional.ofNullable(buildSpec()).orElse(null)); - } - - public SpecNested editOrNewSpec() { - return withNewSpecLike(java.util.Optional.ofNullable(buildSpec()).orElse(new V1beta2FlowSchemaSpecBuilder().build())); - } - - public SpecNested editOrNewSpecLike(V1beta2FlowSchemaSpec item) { - return withNewSpecLike(java.util.Optional.ofNullable(buildSpec()).orElse(item)); - } - - public V1beta2FlowSchemaStatus buildStatus() { - return this.status != null ? this.status.build() : null; - } - - public A withStatus(V1beta2FlowSchemaStatus status) { - this._visitables.remove("status"); - if (status != null) { - this.status = new V1beta2FlowSchemaStatusBuilder(status); - this._visitables.get("status").add(this.status); - } else { - this.status = null; - this._visitables.get("status").remove(this.status); - } - return (A) this; - } - - public boolean hasStatus() { - return this.status != null; - } - - public StatusNested withNewStatus() { - return new StatusNested(null); - } - - public StatusNested withNewStatusLike(V1beta2FlowSchemaStatus item) { - return new StatusNested(item); - } - - public StatusNested editStatus() { - return withNewStatusLike(java.util.Optional.ofNullable(buildStatus()).orElse(null)); - } - - public StatusNested editOrNewStatus() { - return withNewStatusLike(java.util.Optional.ofNullable(buildStatus()).orElse(new V1beta2FlowSchemaStatusBuilder().build())); - } - - public StatusNested editOrNewStatusLike(V1beta2FlowSchemaStatus item) { - return withNewStatusLike(java.util.Optional.ofNullable(buildStatus()).orElse(item)); - } - - public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; - V1beta2FlowSchemaFluent that = (V1beta2FlowSchemaFluent) o; - if (!java.util.Objects.equals(apiVersion, that.apiVersion)) return false; - if (!java.util.Objects.equals(kind, that.kind)) return false; - if (!java.util.Objects.equals(metadata, that.metadata)) return false; - if (!java.util.Objects.equals(spec, that.spec)) return false; - if (!java.util.Objects.equals(status, that.status)) return false; - return true; - } - - public int hashCode() { - return java.util.Objects.hash(apiVersion, kind, metadata, spec, status, super.hashCode()); - } - - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("{"); - if (apiVersion != null) { sb.append("apiVersion:"); sb.append(apiVersion + ","); } - if (kind != null) { sb.append("kind:"); sb.append(kind + ","); } - if (metadata != null) { sb.append("metadata:"); sb.append(metadata + ","); } - if (spec != null) { sb.append("spec:"); sb.append(spec + ","); } - if (status != null) { sb.append("status:"); sb.append(status); } - sb.append("}"); - return sb.toString(); - } - public class MetadataNested extends V1ObjectMetaFluent> implements Nested{ - MetadataNested(V1ObjectMeta item) { - this.builder = new V1ObjectMetaBuilder(this, item); - } - V1ObjectMetaBuilder builder; - - public N and() { - return (N) V1beta2FlowSchemaFluent.this.withMetadata(builder.build()); - } - - public N endMetadata() { - return and(); - } - - - } - public class SpecNested extends V1beta2FlowSchemaSpecFluent> implements Nested{ - SpecNested(V1beta2FlowSchemaSpec item) { - this.builder = new V1beta2FlowSchemaSpecBuilder(this, item); - } - V1beta2FlowSchemaSpecBuilder builder; - - public N and() { - return (N) V1beta2FlowSchemaFluent.this.withSpec(builder.build()); - } - - public N endSpec() { - return and(); - } - - - } - public class StatusNested extends V1beta2FlowSchemaStatusFluent> implements Nested{ - StatusNested(V1beta2FlowSchemaStatus item) { - this.builder = new V1beta2FlowSchemaStatusBuilder(this, item); - } - V1beta2FlowSchemaStatusBuilder builder; - - public N and() { - return (N) V1beta2FlowSchemaFluent.this.withStatus(builder.build()); - } - - public N endStatus() { - return and(); - } - - - } - -} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2FlowSchemaListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2FlowSchemaListBuilder.java deleted file mode 100644 index 7b4944c7d3..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2FlowSchemaListBuilder.java +++ /dev/null @@ -1,34 +0,0 @@ -package io.kubernetes.client.openapi.models; - -import io.kubernetes.client.fluent.VisitableBuilder; -public class V1beta2FlowSchemaListBuilder extends V1beta2FlowSchemaListFluent implements VisitableBuilder{ - public V1beta2FlowSchemaListBuilder() { - this(new V1beta2FlowSchemaList()); - } - - public V1beta2FlowSchemaListBuilder(V1beta2FlowSchemaListFluent fluent) { - this(fluent, new V1beta2FlowSchemaList()); - } - - public V1beta2FlowSchemaListBuilder(V1beta2FlowSchemaListFluent fluent,V1beta2FlowSchemaList instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - - public V1beta2FlowSchemaListBuilder(V1beta2FlowSchemaList instance) { - this.fluent = this; - this.copyInstance(instance); - } - V1beta2FlowSchemaListFluent fluent; - - public V1beta2FlowSchemaList build() { - V1beta2FlowSchemaList buildable = new V1beta2FlowSchemaList(); - buildable.setApiVersion(fluent.getApiVersion()); - buildable.setItems(fluent.buildItems()); - buildable.setKind(fluent.getKind()); - buildable.setMetadata(fluent.buildMetadata()); - return buildable; - } - - -} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2FlowSchemaListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2FlowSchemaListFluent.java deleted file mode 100644 index 9e543183d8..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2FlowSchemaListFluent.java +++ /dev/null @@ -1,319 +0,0 @@ -package io.kubernetes.client.openapi.models; - -import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.Nested; -import java.util.ArrayList; -import java.lang.String; -import java.util.function.Predicate; -import io.kubernetes.client.fluent.BaseFluent; -import java.util.Iterator; -import java.util.Collection; -import java.lang.Object; -import java.util.List; - -/** - * Generated - */ -@SuppressWarnings("unchecked") -public class V1beta2FlowSchemaListFluent> extends BaseFluent{ - public V1beta2FlowSchemaListFluent() { - } - - public V1beta2FlowSchemaListFluent(V1beta2FlowSchemaList instance) { - this.copyInstance(instance); - } - private String apiVersion; - private ArrayList items; - private String kind; - private V1ListMetaBuilder metadata; - - protected void copyInstance(V1beta2FlowSchemaList instance) { - instance = (instance != null ? instance : new V1beta2FlowSchemaList()); - if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withItems(instance.getItems()); - this.withKind(instance.getKind()); - this.withMetadata(instance.getMetadata()); - } - } - - public String getApiVersion() { - return this.apiVersion; - } - - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; - } - - public boolean hasApiVersion() { - return this.apiVersion != null; - } - - public A addToItems(int index,V1beta2FlowSchema item) { - if (this.items == null) {this.items = new ArrayList();} - V1beta2FlowSchemaBuilder builder = new V1beta2FlowSchemaBuilder(item); - if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); items.add(builder); } else { _visitables.get("items").add(index, builder); items.add(index, builder);} - return (A)this; - } - - public A setToItems(int index,V1beta2FlowSchema item) { - if (this.items == null) {this.items = new ArrayList();} - V1beta2FlowSchemaBuilder builder = new V1beta2FlowSchemaBuilder(item); - if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); items.add(builder); } else { _visitables.get("items").set(index, builder); items.set(index, builder);} - return (A)this; - } - - public A addToItems(io.kubernetes.client.openapi.models.V1beta2FlowSchema... items) { - if (this.items == null) {this.items = new ArrayList();} - for (V1beta2FlowSchema item : items) {V1beta2FlowSchemaBuilder builder = new V1beta2FlowSchemaBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; - } - - public A addAllToItems(Collection items) { - if (this.items == null) {this.items = new ArrayList();} - for (V1beta2FlowSchema item : items) {V1beta2FlowSchemaBuilder builder = new V1beta2FlowSchemaBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; - } - - public A removeFromItems(io.kubernetes.client.openapi.models.V1beta2FlowSchema... items) { - if (this.items == null) return (A)this; - for (V1beta2FlowSchema item : items) {V1beta2FlowSchemaBuilder builder = new V1beta2FlowSchemaBuilder(item);_visitables.get("items").remove(builder); this.items.remove(builder);} return (A)this; - } - - public A removeAllFromItems(Collection items) { - if (this.items == null) return (A)this; - for (V1beta2FlowSchema item : items) {V1beta2FlowSchemaBuilder builder = new V1beta2FlowSchemaBuilder(item);_visitables.get("items").remove(builder); this.items.remove(builder);} return (A)this; - } - - public A removeMatchingFromItems(Predicate predicate) { - if (items == null) return (A) this; - final Iterator each = items.iterator(); - final List visitables = _visitables.get("items"); - while (each.hasNext()) { - V1beta2FlowSchemaBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } - } - return (A)this; - } - - public List buildItems() { - return this.items != null ? build(items) : null; - } - - public V1beta2FlowSchema buildItem(int index) { - return this.items.get(index).build(); - } - - public V1beta2FlowSchema buildFirstItem() { - return this.items.get(0).build(); - } - - public V1beta2FlowSchema buildLastItem() { - return this.items.get(items.size() - 1).build(); - } - - public V1beta2FlowSchema buildMatchingItem(Predicate predicate) { - for (V1beta2FlowSchemaBuilder item : items) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; - } - - public boolean hasMatchingItem(Predicate predicate) { - for (V1beta2FlowSchemaBuilder item : items) { - if (predicate.test(item)) { - return true; - } - } - return false; - } - - public A withItems(List items) { - if (this.items != null) { - this._visitables.get("items").clear(); - } - if (items != null) { - this.items = new ArrayList(); - for (V1beta2FlowSchema item : items) { - this.addToItems(item); - } - } else { - this.items = null; - } - return (A) this; - } - - public A withItems(io.kubernetes.client.openapi.models.V1beta2FlowSchema... items) { - if (this.items != null) { - this.items.clear(); - _visitables.remove("items"); - } - if (items != null) { - for (V1beta2FlowSchema item : items) { - this.addToItems(item); - } - } - return (A) this; - } - - public boolean hasItems() { - return this.items != null && !this.items.isEmpty(); - } - - public ItemsNested addNewItem() { - return new ItemsNested(-1, null); - } - - public ItemsNested addNewItemLike(V1beta2FlowSchema item) { - return new ItemsNested(-1, item); - } - - public ItemsNested setNewItemLike(int index,V1beta2FlowSchema item) { - return new ItemsNested(index, item); - } - - public ItemsNested editItem(int index) { - if (items.size() <= index) throw new RuntimeException("Can't edit items. Index exceeds size."); - return setNewItemLike(index, buildItem(index)); - } - - public ItemsNested editFirstItem() { - if (items.size() == 0) throw new RuntimeException("Can't edit first items. The list is empty."); - return setNewItemLike(0, buildItem(0)); - } - - public ItemsNested editLastItem() { - int index = items.size() - 1; - if (index < 0) throw new RuntimeException("Can't edit last items. The list is empty."); - return setNewItemLike(index, buildItem(index)); - } - - public ItemsNested editMatchingItem(Predicate predicate) { - int index = -1; - for (int i=0;i withNewMetadata() { - return new MetadataNested(null); - } - - public MetadataNested withNewMetadataLike(V1ListMeta item) { - return new MetadataNested(item); - } - - public MetadataNested editMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(null)); - } - - public MetadataNested editOrNewMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(new V1ListMetaBuilder().build())); - } - - public MetadataNested editOrNewMetadataLike(V1ListMeta item) { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(item)); - } - - public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; - V1beta2FlowSchemaListFluent that = (V1beta2FlowSchemaListFluent) o; - if (!java.util.Objects.equals(apiVersion, that.apiVersion)) return false; - if (!java.util.Objects.equals(items, that.items)) return false; - if (!java.util.Objects.equals(kind, that.kind)) return false; - if (!java.util.Objects.equals(metadata, that.metadata)) return false; - return true; - } - - public int hashCode() { - return java.util.Objects.hash(apiVersion, items, kind, metadata, super.hashCode()); - } - - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("{"); - if (apiVersion != null) { sb.append("apiVersion:"); sb.append(apiVersion + ","); } - if (items != null && !items.isEmpty()) { sb.append("items:"); sb.append(items + ","); } - if (kind != null) { sb.append("kind:"); sb.append(kind + ","); } - if (metadata != null) { sb.append("metadata:"); sb.append(metadata); } - sb.append("}"); - return sb.toString(); - } - public class ItemsNested extends V1beta2FlowSchemaFluent> implements Nested{ - ItemsNested(int index,V1beta2FlowSchema item) { - this.index = index; - this.builder = new V1beta2FlowSchemaBuilder(this, item); - } - V1beta2FlowSchemaBuilder builder; - int index; - - public N and() { - return (N) V1beta2FlowSchemaListFluent.this.setToItems(index,builder.build()); - } - - public N endItem() { - return and(); - } - - - } - public class MetadataNested extends V1ListMetaFluent> implements Nested{ - MetadataNested(V1ListMeta item) { - this.builder = new V1ListMetaBuilder(this, item); - } - V1ListMetaBuilder builder; - - public N and() { - return (N) V1beta2FlowSchemaListFluent.this.withMetadata(builder.build()); - } - - public N endMetadata() { - return and(); - } - - - } - -} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2FlowSchemaSpecBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2FlowSchemaSpecBuilder.java deleted file mode 100644 index 8bb8057c7e..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2FlowSchemaSpecBuilder.java +++ /dev/null @@ -1,34 +0,0 @@ -package io.kubernetes.client.openapi.models; - -import io.kubernetes.client.fluent.VisitableBuilder; -public class V1beta2FlowSchemaSpecBuilder extends V1beta2FlowSchemaSpecFluent implements VisitableBuilder{ - public V1beta2FlowSchemaSpecBuilder() { - this(new V1beta2FlowSchemaSpec()); - } - - public V1beta2FlowSchemaSpecBuilder(V1beta2FlowSchemaSpecFluent fluent) { - this(fluent, new V1beta2FlowSchemaSpec()); - } - - public V1beta2FlowSchemaSpecBuilder(V1beta2FlowSchemaSpecFluent fluent,V1beta2FlowSchemaSpec instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - - public V1beta2FlowSchemaSpecBuilder(V1beta2FlowSchemaSpec instance) { - this.fluent = this; - this.copyInstance(instance); - } - V1beta2FlowSchemaSpecFluent fluent; - - public V1beta2FlowSchemaSpec build() { - V1beta2FlowSchemaSpec buildable = new V1beta2FlowSchemaSpec(); - buildable.setDistinguisherMethod(fluent.buildDistinguisherMethod()); - buildable.setMatchingPrecedence(fluent.getMatchingPrecedence()); - buildable.setPriorityLevelConfiguration(fluent.buildPriorityLevelConfiguration()); - buildable.setRules(fluent.buildRules()); - return buildable; - } - - -} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2FlowSchemaSpecFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2FlowSchemaSpecFluent.java deleted file mode 100644 index 82fc2acceb..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2FlowSchemaSpecFluent.java +++ /dev/null @@ -1,363 +0,0 @@ -package io.kubernetes.client.openapi.models; - -import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.Nested; -import java.util.ArrayList; -import java.lang.String; -import java.util.function.Predicate; -import io.kubernetes.client.fluent.BaseFluent; -import java.util.Iterator; -import java.util.List; -import java.lang.Integer; -import java.util.Collection; -import java.lang.Object; - -/** - * Generated - */ -@SuppressWarnings("unchecked") -public class V1beta2FlowSchemaSpecFluent> extends BaseFluent{ - public V1beta2FlowSchemaSpecFluent() { - } - - public V1beta2FlowSchemaSpecFluent(V1beta2FlowSchemaSpec instance) { - this.copyInstance(instance); - } - private V1beta2FlowDistinguisherMethodBuilder distinguisherMethod; - private Integer matchingPrecedence; - private V1beta2PriorityLevelConfigurationReferenceBuilder priorityLevelConfiguration; - private ArrayList rules; - - protected void copyInstance(V1beta2FlowSchemaSpec instance) { - instance = (instance != null ? instance : new V1beta2FlowSchemaSpec()); - if (instance != null) { - this.withDistinguisherMethod(instance.getDistinguisherMethod()); - this.withMatchingPrecedence(instance.getMatchingPrecedence()); - this.withPriorityLevelConfiguration(instance.getPriorityLevelConfiguration()); - this.withRules(instance.getRules()); - } - } - - public V1beta2FlowDistinguisherMethod buildDistinguisherMethod() { - return this.distinguisherMethod != null ? this.distinguisherMethod.build() : null; - } - - public A withDistinguisherMethod(V1beta2FlowDistinguisherMethod distinguisherMethod) { - this._visitables.remove("distinguisherMethod"); - if (distinguisherMethod != null) { - this.distinguisherMethod = new V1beta2FlowDistinguisherMethodBuilder(distinguisherMethod); - this._visitables.get("distinguisherMethod").add(this.distinguisherMethod); - } else { - this.distinguisherMethod = null; - this._visitables.get("distinguisherMethod").remove(this.distinguisherMethod); - } - return (A) this; - } - - public boolean hasDistinguisherMethod() { - return this.distinguisherMethod != null; - } - - public DistinguisherMethodNested withNewDistinguisherMethod() { - return new DistinguisherMethodNested(null); - } - - public DistinguisherMethodNested withNewDistinguisherMethodLike(V1beta2FlowDistinguisherMethod item) { - return new DistinguisherMethodNested(item); - } - - public DistinguisherMethodNested editDistinguisherMethod() { - return withNewDistinguisherMethodLike(java.util.Optional.ofNullable(buildDistinguisherMethod()).orElse(null)); - } - - public DistinguisherMethodNested editOrNewDistinguisherMethod() { - return withNewDistinguisherMethodLike(java.util.Optional.ofNullable(buildDistinguisherMethod()).orElse(new V1beta2FlowDistinguisherMethodBuilder().build())); - } - - public DistinguisherMethodNested editOrNewDistinguisherMethodLike(V1beta2FlowDistinguisherMethod item) { - return withNewDistinguisherMethodLike(java.util.Optional.ofNullable(buildDistinguisherMethod()).orElse(item)); - } - - public Integer getMatchingPrecedence() { - return this.matchingPrecedence; - } - - public A withMatchingPrecedence(Integer matchingPrecedence) { - this.matchingPrecedence = matchingPrecedence; - return (A) this; - } - - public boolean hasMatchingPrecedence() { - return this.matchingPrecedence != null; - } - - public V1beta2PriorityLevelConfigurationReference buildPriorityLevelConfiguration() { - return this.priorityLevelConfiguration != null ? this.priorityLevelConfiguration.build() : null; - } - - public A withPriorityLevelConfiguration(V1beta2PriorityLevelConfigurationReference priorityLevelConfiguration) { - this._visitables.remove("priorityLevelConfiguration"); - if (priorityLevelConfiguration != null) { - this.priorityLevelConfiguration = new V1beta2PriorityLevelConfigurationReferenceBuilder(priorityLevelConfiguration); - this._visitables.get("priorityLevelConfiguration").add(this.priorityLevelConfiguration); - } else { - this.priorityLevelConfiguration = null; - this._visitables.get("priorityLevelConfiguration").remove(this.priorityLevelConfiguration); - } - return (A) this; - } - - public boolean hasPriorityLevelConfiguration() { - return this.priorityLevelConfiguration != null; - } - - public PriorityLevelConfigurationNested withNewPriorityLevelConfiguration() { - return new PriorityLevelConfigurationNested(null); - } - - public PriorityLevelConfigurationNested withNewPriorityLevelConfigurationLike(V1beta2PriorityLevelConfigurationReference item) { - return new PriorityLevelConfigurationNested(item); - } - - public PriorityLevelConfigurationNested editPriorityLevelConfiguration() { - return withNewPriorityLevelConfigurationLike(java.util.Optional.ofNullable(buildPriorityLevelConfiguration()).orElse(null)); - } - - public PriorityLevelConfigurationNested editOrNewPriorityLevelConfiguration() { - return withNewPriorityLevelConfigurationLike(java.util.Optional.ofNullable(buildPriorityLevelConfiguration()).orElse(new V1beta2PriorityLevelConfigurationReferenceBuilder().build())); - } - - public PriorityLevelConfigurationNested editOrNewPriorityLevelConfigurationLike(V1beta2PriorityLevelConfigurationReference item) { - return withNewPriorityLevelConfigurationLike(java.util.Optional.ofNullable(buildPriorityLevelConfiguration()).orElse(item)); - } - - public A addToRules(int index,V1beta2PolicyRulesWithSubjects item) { - if (this.rules == null) {this.rules = new ArrayList();} - V1beta2PolicyRulesWithSubjectsBuilder builder = new V1beta2PolicyRulesWithSubjectsBuilder(item); - if (index < 0 || index >= rules.size()) { _visitables.get("rules").add(builder); rules.add(builder); } else { _visitables.get("rules").add(index, builder); rules.add(index, builder);} - return (A)this; - } - - public A setToRules(int index,V1beta2PolicyRulesWithSubjects item) { - if (this.rules == null) {this.rules = new ArrayList();} - V1beta2PolicyRulesWithSubjectsBuilder builder = new V1beta2PolicyRulesWithSubjectsBuilder(item); - if (index < 0 || index >= rules.size()) { _visitables.get("rules").add(builder); rules.add(builder); } else { _visitables.get("rules").set(index, builder); rules.set(index, builder);} - return (A)this; - } - - public A addToRules(io.kubernetes.client.openapi.models.V1beta2PolicyRulesWithSubjects... items) { - if (this.rules == null) {this.rules = new ArrayList();} - for (V1beta2PolicyRulesWithSubjects item : items) {V1beta2PolicyRulesWithSubjectsBuilder builder = new V1beta2PolicyRulesWithSubjectsBuilder(item);_visitables.get("rules").add(builder);this.rules.add(builder);} return (A)this; - } - - public A addAllToRules(Collection items) { - if (this.rules == null) {this.rules = new ArrayList();} - for (V1beta2PolicyRulesWithSubjects item : items) {V1beta2PolicyRulesWithSubjectsBuilder builder = new V1beta2PolicyRulesWithSubjectsBuilder(item);_visitables.get("rules").add(builder);this.rules.add(builder);} return (A)this; - } - - public A removeFromRules(io.kubernetes.client.openapi.models.V1beta2PolicyRulesWithSubjects... items) { - if (this.rules == null) return (A)this; - for (V1beta2PolicyRulesWithSubjects item : items) {V1beta2PolicyRulesWithSubjectsBuilder builder = new V1beta2PolicyRulesWithSubjectsBuilder(item);_visitables.get("rules").remove(builder); this.rules.remove(builder);} return (A)this; - } - - public A removeAllFromRules(Collection items) { - if (this.rules == null) return (A)this; - for (V1beta2PolicyRulesWithSubjects item : items) {V1beta2PolicyRulesWithSubjectsBuilder builder = new V1beta2PolicyRulesWithSubjectsBuilder(item);_visitables.get("rules").remove(builder); this.rules.remove(builder);} return (A)this; - } - - public A removeMatchingFromRules(Predicate predicate) { - if (rules == null) return (A) this; - final Iterator each = rules.iterator(); - final List visitables = _visitables.get("rules"); - while (each.hasNext()) { - V1beta2PolicyRulesWithSubjectsBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } - } - return (A)this; - } - - public List buildRules() { - return this.rules != null ? build(rules) : null; - } - - public V1beta2PolicyRulesWithSubjects buildRule(int index) { - return this.rules.get(index).build(); - } - - public V1beta2PolicyRulesWithSubjects buildFirstRule() { - return this.rules.get(0).build(); - } - - public V1beta2PolicyRulesWithSubjects buildLastRule() { - return this.rules.get(rules.size() - 1).build(); - } - - public V1beta2PolicyRulesWithSubjects buildMatchingRule(Predicate predicate) { - for (V1beta2PolicyRulesWithSubjectsBuilder item : rules) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; - } - - public boolean hasMatchingRule(Predicate predicate) { - for (V1beta2PolicyRulesWithSubjectsBuilder item : rules) { - if (predicate.test(item)) { - return true; - } - } - return false; - } - - public A withRules(List rules) { - if (this.rules != null) { - this._visitables.get("rules").clear(); - } - if (rules != null) { - this.rules = new ArrayList(); - for (V1beta2PolicyRulesWithSubjects item : rules) { - this.addToRules(item); - } - } else { - this.rules = null; - } - return (A) this; - } - - public A withRules(io.kubernetes.client.openapi.models.V1beta2PolicyRulesWithSubjects... rules) { - if (this.rules != null) { - this.rules.clear(); - _visitables.remove("rules"); - } - if (rules != null) { - for (V1beta2PolicyRulesWithSubjects item : rules) { - this.addToRules(item); - } - } - return (A) this; - } - - public boolean hasRules() { - return this.rules != null && !this.rules.isEmpty(); - } - - public RulesNested addNewRule() { - return new RulesNested(-1, null); - } - - public RulesNested addNewRuleLike(V1beta2PolicyRulesWithSubjects item) { - return new RulesNested(-1, item); - } - - public RulesNested setNewRuleLike(int index,V1beta2PolicyRulesWithSubjects item) { - return new RulesNested(index, item); - } - - public RulesNested editRule(int index) { - if (rules.size() <= index) throw new RuntimeException("Can't edit rules. Index exceeds size."); - return setNewRuleLike(index, buildRule(index)); - } - - public RulesNested editFirstRule() { - if (rules.size() == 0) throw new RuntimeException("Can't edit first rules. The list is empty."); - return setNewRuleLike(0, buildRule(0)); - } - - public RulesNested editLastRule() { - int index = rules.size() - 1; - if (index < 0) throw new RuntimeException("Can't edit last rules. The list is empty."); - return setNewRuleLike(index, buildRule(index)); - } - - public RulesNested editMatchingRule(Predicate predicate) { - int index = -1; - for (int i=0;i extends V1beta2FlowDistinguisherMethodFluent> implements Nested{ - DistinguisherMethodNested(V1beta2FlowDistinguisherMethod item) { - this.builder = new V1beta2FlowDistinguisherMethodBuilder(this, item); - } - V1beta2FlowDistinguisherMethodBuilder builder; - - public N and() { - return (N) V1beta2FlowSchemaSpecFluent.this.withDistinguisherMethod(builder.build()); - } - - public N endDistinguisherMethod() { - return and(); - } - - - } - public class PriorityLevelConfigurationNested extends V1beta2PriorityLevelConfigurationReferenceFluent> implements Nested{ - PriorityLevelConfigurationNested(V1beta2PriorityLevelConfigurationReference item) { - this.builder = new V1beta2PriorityLevelConfigurationReferenceBuilder(this, item); - } - V1beta2PriorityLevelConfigurationReferenceBuilder builder; - - public N and() { - return (N) V1beta2FlowSchemaSpecFluent.this.withPriorityLevelConfiguration(builder.build()); - } - - public N endPriorityLevelConfiguration() { - return and(); - } - - - } - public class RulesNested extends V1beta2PolicyRulesWithSubjectsFluent> implements Nested{ - RulesNested(int index,V1beta2PolicyRulesWithSubjects item) { - this.index = index; - this.builder = new V1beta2PolicyRulesWithSubjectsBuilder(this, item); - } - V1beta2PolicyRulesWithSubjectsBuilder builder; - int index; - - public N and() { - return (N) V1beta2FlowSchemaSpecFluent.this.setToRules(index,builder.build()); - } - - public N endRule() { - return and(); - } - - - } - -} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2FlowSchemaStatusBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2FlowSchemaStatusBuilder.java deleted file mode 100644 index feb3d7ecbf..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2FlowSchemaStatusBuilder.java +++ /dev/null @@ -1,31 +0,0 @@ -package io.kubernetes.client.openapi.models; - -import io.kubernetes.client.fluent.VisitableBuilder; -public class V1beta2FlowSchemaStatusBuilder extends V1beta2FlowSchemaStatusFluent implements VisitableBuilder{ - public V1beta2FlowSchemaStatusBuilder() { - this(new V1beta2FlowSchemaStatus()); - } - - public V1beta2FlowSchemaStatusBuilder(V1beta2FlowSchemaStatusFluent fluent) { - this(fluent, new V1beta2FlowSchemaStatus()); - } - - public V1beta2FlowSchemaStatusBuilder(V1beta2FlowSchemaStatusFluent fluent,V1beta2FlowSchemaStatus instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - - public V1beta2FlowSchemaStatusBuilder(V1beta2FlowSchemaStatus instance) { - this.fluent = this; - this.copyInstance(instance); - } - V1beta2FlowSchemaStatusFluent fluent; - - public V1beta2FlowSchemaStatus build() { - V1beta2FlowSchemaStatus buildable = new V1beta2FlowSchemaStatus(); - buildable.setConditions(fluent.buildConditions()); - return buildable; - } - - -} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2FlowSchemaStatusFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2FlowSchemaStatusFluent.java deleted file mode 100644 index 8cdfda370b..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2FlowSchemaStatusFluent.java +++ /dev/null @@ -1,225 +0,0 @@ -package io.kubernetes.client.openapi.models; - -import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.Nested; -import java.util.ArrayList; -import java.lang.String; -import java.util.function.Predicate; -import io.kubernetes.client.fluent.BaseFluent; -import java.util.Iterator; -import java.util.Collection; -import java.lang.Object; -import java.util.List; - -/** - * Generated - */ -@SuppressWarnings("unchecked") -public class V1beta2FlowSchemaStatusFluent> extends BaseFluent{ - public V1beta2FlowSchemaStatusFluent() { - } - - public V1beta2FlowSchemaStatusFluent(V1beta2FlowSchemaStatus instance) { - this.copyInstance(instance); - } - private ArrayList conditions; - - protected void copyInstance(V1beta2FlowSchemaStatus instance) { - instance = (instance != null ? instance : new V1beta2FlowSchemaStatus()); - if (instance != null) { - this.withConditions(instance.getConditions()); - } - } - - public A addToConditions(int index,V1beta2FlowSchemaCondition item) { - if (this.conditions == null) {this.conditions = new ArrayList();} - V1beta2FlowSchemaConditionBuilder builder = new V1beta2FlowSchemaConditionBuilder(item); - if (index < 0 || index >= conditions.size()) { _visitables.get("conditions").add(builder); conditions.add(builder); } else { _visitables.get("conditions").add(index, builder); conditions.add(index, builder);} - return (A)this; - } - - public A setToConditions(int index,V1beta2FlowSchemaCondition item) { - if (this.conditions == null) {this.conditions = new ArrayList();} - V1beta2FlowSchemaConditionBuilder builder = new V1beta2FlowSchemaConditionBuilder(item); - if (index < 0 || index >= conditions.size()) { _visitables.get("conditions").add(builder); conditions.add(builder); } else { _visitables.get("conditions").set(index, builder); conditions.set(index, builder);} - return (A)this; - } - - public A addToConditions(io.kubernetes.client.openapi.models.V1beta2FlowSchemaCondition... items) { - if (this.conditions == null) {this.conditions = new ArrayList();} - for (V1beta2FlowSchemaCondition item : items) {V1beta2FlowSchemaConditionBuilder builder = new V1beta2FlowSchemaConditionBuilder(item);_visitables.get("conditions").add(builder);this.conditions.add(builder);} return (A)this; - } - - public A addAllToConditions(Collection items) { - if (this.conditions == null) {this.conditions = new ArrayList();} - for (V1beta2FlowSchemaCondition item : items) {V1beta2FlowSchemaConditionBuilder builder = new V1beta2FlowSchemaConditionBuilder(item);_visitables.get("conditions").add(builder);this.conditions.add(builder);} return (A)this; - } - - public A removeFromConditions(io.kubernetes.client.openapi.models.V1beta2FlowSchemaCondition... items) { - if (this.conditions == null) return (A)this; - for (V1beta2FlowSchemaCondition item : items) {V1beta2FlowSchemaConditionBuilder builder = new V1beta2FlowSchemaConditionBuilder(item);_visitables.get("conditions").remove(builder); this.conditions.remove(builder);} return (A)this; - } - - public A removeAllFromConditions(Collection items) { - if (this.conditions == null) return (A)this; - for (V1beta2FlowSchemaCondition item : items) {V1beta2FlowSchemaConditionBuilder builder = new V1beta2FlowSchemaConditionBuilder(item);_visitables.get("conditions").remove(builder); this.conditions.remove(builder);} return (A)this; - } - - public A removeMatchingFromConditions(Predicate predicate) { - if (conditions == null) return (A) this; - final Iterator each = conditions.iterator(); - final List visitables = _visitables.get("conditions"); - while (each.hasNext()) { - V1beta2FlowSchemaConditionBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } - } - return (A)this; - } - - public List buildConditions() { - return this.conditions != null ? build(conditions) : null; - } - - public V1beta2FlowSchemaCondition buildCondition(int index) { - return this.conditions.get(index).build(); - } - - public V1beta2FlowSchemaCondition buildFirstCondition() { - return this.conditions.get(0).build(); - } - - public V1beta2FlowSchemaCondition buildLastCondition() { - return this.conditions.get(conditions.size() - 1).build(); - } - - public V1beta2FlowSchemaCondition buildMatchingCondition(Predicate predicate) { - for (V1beta2FlowSchemaConditionBuilder item : conditions) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; - } - - public boolean hasMatchingCondition(Predicate predicate) { - for (V1beta2FlowSchemaConditionBuilder item : conditions) { - if (predicate.test(item)) { - return true; - } - } - return false; - } - - public A withConditions(List conditions) { - if (this.conditions != null) { - this._visitables.get("conditions").clear(); - } - if (conditions != null) { - this.conditions = new ArrayList(); - for (V1beta2FlowSchemaCondition item : conditions) { - this.addToConditions(item); - } - } else { - this.conditions = null; - } - return (A) this; - } - - public A withConditions(io.kubernetes.client.openapi.models.V1beta2FlowSchemaCondition... conditions) { - if (this.conditions != null) { - this.conditions.clear(); - _visitables.remove("conditions"); - } - if (conditions != null) { - for (V1beta2FlowSchemaCondition item : conditions) { - this.addToConditions(item); - } - } - return (A) this; - } - - public boolean hasConditions() { - return this.conditions != null && !this.conditions.isEmpty(); - } - - public ConditionsNested addNewCondition() { - return new ConditionsNested(-1, null); - } - - public ConditionsNested addNewConditionLike(V1beta2FlowSchemaCondition item) { - return new ConditionsNested(-1, item); - } - - public ConditionsNested setNewConditionLike(int index,V1beta2FlowSchemaCondition item) { - return new ConditionsNested(index, item); - } - - public ConditionsNested editCondition(int index) { - if (conditions.size() <= index) throw new RuntimeException("Can't edit conditions. Index exceeds size."); - return setNewConditionLike(index, buildCondition(index)); - } - - public ConditionsNested editFirstCondition() { - if (conditions.size() == 0) throw new RuntimeException("Can't edit first conditions. The list is empty."); - return setNewConditionLike(0, buildCondition(0)); - } - - public ConditionsNested editLastCondition() { - int index = conditions.size() - 1; - if (index < 0) throw new RuntimeException("Can't edit last conditions. The list is empty."); - return setNewConditionLike(index, buildCondition(index)); - } - - public ConditionsNested editMatchingCondition(Predicate predicate) { - int index = -1; - for (int i=0;i extends V1beta2FlowSchemaConditionFluent> implements Nested{ - ConditionsNested(int index,V1beta2FlowSchemaCondition item) { - this.index = index; - this.builder = new V1beta2FlowSchemaConditionBuilder(this, item); - } - V1beta2FlowSchemaConditionBuilder builder; - int index; - - public N and() { - return (N) V1beta2FlowSchemaStatusFluent.this.setToConditions(index,builder.build()); - } - - public N endCondition() { - return and(); - } - - - } - -} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2GroupSubjectBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2GroupSubjectBuilder.java deleted file mode 100644 index a21c311833..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2GroupSubjectBuilder.java +++ /dev/null @@ -1,31 +0,0 @@ -package io.kubernetes.client.openapi.models; - -import io.kubernetes.client.fluent.VisitableBuilder; -public class V1beta2GroupSubjectBuilder extends V1beta2GroupSubjectFluent implements VisitableBuilder{ - public V1beta2GroupSubjectBuilder() { - this(new V1beta2GroupSubject()); - } - - public V1beta2GroupSubjectBuilder(V1beta2GroupSubjectFluent fluent) { - this(fluent, new V1beta2GroupSubject()); - } - - public V1beta2GroupSubjectBuilder(V1beta2GroupSubjectFluent fluent,V1beta2GroupSubject instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - - public V1beta2GroupSubjectBuilder(V1beta2GroupSubject instance) { - this.fluent = this; - this.copyInstance(instance); - } - V1beta2GroupSubjectFluent fluent; - - public V1beta2GroupSubject build() { - V1beta2GroupSubject buildable = new V1beta2GroupSubject(); - buildable.setName(fluent.getName()); - return buildable; - } - - -} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2GroupSubjectFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2GroupSubjectFluent.java deleted file mode 100644 index 388d1d45c6..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2GroupSubjectFluent.java +++ /dev/null @@ -1,63 +0,0 @@ -package io.kubernetes.client.openapi.models; - -import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.BaseFluent; -import java.lang.Object; -import java.lang.String; - -/** - * Generated - */ -@SuppressWarnings("unchecked") -public class V1beta2GroupSubjectFluent> extends BaseFluent{ - public V1beta2GroupSubjectFluent() { - } - - public V1beta2GroupSubjectFluent(V1beta2GroupSubject instance) { - this.copyInstance(instance); - } - private String name; - - protected void copyInstance(V1beta2GroupSubject instance) { - instance = (instance != null ? instance : new V1beta2GroupSubject()); - if (instance != null) { - this.withName(instance.getName()); - } - } - - public String getName() { - return this.name; - } - - public A withName(String name) { - this.name = name; - return (A) this; - } - - public boolean hasName() { - return this.name != null; - } - - public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; - V1beta2GroupSubjectFluent that = (V1beta2GroupSubjectFluent) o; - if (!java.util.Objects.equals(name, that.name)) return false; - return true; - } - - public int hashCode() { - return java.util.Objects.hash(name, super.hashCode()); - } - - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("{"); - if (name != null) { sb.append("name:"); sb.append(name); } - sb.append("}"); - return sb.toString(); - } - - -} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2LimitResponseBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2LimitResponseBuilder.java deleted file mode 100644 index 109658ab52..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2LimitResponseBuilder.java +++ /dev/null @@ -1,32 +0,0 @@ -package io.kubernetes.client.openapi.models; - -import io.kubernetes.client.fluent.VisitableBuilder; -public class V1beta2LimitResponseBuilder extends V1beta2LimitResponseFluent implements VisitableBuilder{ - public V1beta2LimitResponseBuilder() { - this(new V1beta2LimitResponse()); - } - - public V1beta2LimitResponseBuilder(V1beta2LimitResponseFluent fluent) { - this(fluent, new V1beta2LimitResponse()); - } - - public V1beta2LimitResponseBuilder(V1beta2LimitResponseFluent fluent,V1beta2LimitResponse instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - - public V1beta2LimitResponseBuilder(V1beta2LimitResponse instance) { - this.fluent = this; - this.copyInstance(instance); - } - V1beta2LimitResponseFluent fluent; - - public V1beta2LimitResponse build() { - V1beta2LimitResponse buildable = new V1beta2LimitResponse(); - buildable.setQueuing(fluent.buildQueuing()); - buildable.setType(fluent.getType()); - return buildable; - } - - -} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2LimitResponseFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2LimitResponseFluent.java deleted file mode 100644 index a4b24239c9..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2LimitResponseFluent.java +++ /dev/null @@ -1,123 +0,0 @@ -package io.kubernetes.client.openapi.models; - -import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.BaseFluent; -import io.kubernetes.client.fluent.Nested; -import java.lang.Object; -import java.lang.String; - -/** - * Generated - */ -@SuppressWarnings("unchecked") -public class V1beta2LimitResponseFluent> extends BaseFluent{ - public V1beta2LimitResponseFluent() { - } - - public V1beta2LimitResponseFluent(V1beta2LimitResponse instance) { - this.copyInstance(instance); - } - private V1beta2QueuingConfigurationBuilder queuing; - private String type; - - protected void copyInstance(V1beta2LimitResponse instance) { - instance = (instance != null ? instance : new V1beta2LimitResponse()); - if (instance != null) { - this.withQueuing(instance.getQueuing()); - this.withType(instance.getType()); - } - } - - public V1beta2QueuingConfiguration buildQueuing() { - return this.queuing != null ? this.queuing.build() : null; - } - - public A withQueuing(V1beta2QueuingConfiguration queuing) { - this._visitables.remove("queuing"); - if (queuing != null) { - this.queuing = new V1beta2QueuingConfigurationBuilder(queuing); - this._visitables.get("queuing").add(this.queuing); - } else { - this.queuing = null; - this._visitables.get("queuing").remove(this.queuing); - } - return (A) this; - } - - public boolean hasQueuing() { - return this.queuing != null; - } - - public QueuingNested withNewQueuing() { - return new QueuingNested(null); - } - - public QueuingNested withNewQueuingLike(V1beta2QueuingConfiguration item) { - return new QueuingNested(item); - } - - public QueuingNested editQueuing() { - return withNewQueuingLike(java.util.Optional.ofNullable(buildQueuing()).orElse(null)); - } - - public QueuingNested editOrNewQueuing() { - return withNewQueuingLike(java.util.Optional.ofNullable(buildQueuing()).orElse(new V1beta2QueuingConfigurationBuilder().build())); - } - - public QueuingNested editOrNewQueuingLike(V1beta2QueuingConfiguration item) { - return withNewQueuingLike(java.util.Optional.ofNullable(buildQueuing()).orElse(item)); - } - - public String getType() { - return this.type; - } - - public A withType(String type) { - this.type = type; - return (A) this; - } - - public boolean hasType() { - return this.type != null; - } - - public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; - V1beta2LimitResponseFluent that = (V1beta2LimitResponseFluent) o; - if (!java.util.Objects.equals(queuing, that.queuing)) return false; - if (!java.util.Objects.equals(type, that.type)) return false; - return true; - } - - public int hashCode() { - return java.util.Objects.hash(queuing, type, super.hashCode()); - } - - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("{"); - if (queuing != null) { sb.append("queuing:"); sb.append(queuing + ","); } - if (type != null) { sb.append("type:"); sb.append(type); } - sb.append("}"); - return sb.toString(); - } - public class QueuingNested extends V1beta2QueuingConfigurationFluent> implements Nested{ - QueuingNested(V1beta2QueuingConfiguration item) { - this.builder = new V1beta2QueuingConfigurationBuilder(this, item); - } - V1beta2QueuingConfigurationBuilder builder; - - public N and() { - return (N) V1beta2LimitResponseFluent.this.withQueuing(builder.build()); - } - - public N endQueuing() { - return and(); - } - - - } - -} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2LimitedPriorityLevelConfigurationBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2LimitedPriorityLevelConfigurationBuilder.java deleted file mode 100644 index eb835b23b1..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2LimitedPriorityLevelConfigurationBuilder.java +++ /dev/null @@ -1,34 +0,0 @@ -package io.kubernetes.client.openapi.models; - -import io.kubernetes.client.fluent.VisitableBuilder; -public class V1beta2LimitedPriorityLevelConfigurationBuilder extends V1beta2LimitedPriorityLevelConfigurationFluent implements VisitableBuilder{ - public V1beta2LimitedPriorityLevelConfigurationBuilder() { - this(new V1beta2LimitedPriorityLevelConfiguration()); - } - - public V1beta2LimitedPriorityLevelConfigurationBuilder(V1beta2LimitedPriorityLevelConfigurationFluent fluent) { - this(fluent, new V1beta2LimitedPriorityLevelConfiguration()); - } - - public V1beta2LimitedPriorityLevelConfigurationBuilder(V1beta2LimitedPriorityLevelConfigurationFluent fluent,V1beta2LimitedPriorityLevelConfiguration instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - - public V1beta2LimitedPriorityLevelConfigurationBuilder(V1beta2LimitedPriorityLevelConfiguration instance) { - this.fluent = this; - this.copyInstance(instance); - } - V1beta2LimitedPriorityLevelConfigurationFluent fluent; - - public V1beta2LimitedPriorityLevelConfiguration build() { - V1beta2LimitedPriorityLevelConfiguration buildable = new V1beta2LimitedPriorityLevelConfiguration(); - buildable.setAssuredConcurrencyShares(fluent.getAssuredConcurrencyShares()); - buildable.setBorrowingLimitPercent(fluent.getBorrowingLimitPercent()); - buildable.setLendablePercent(fluent.getLendablePercent()); - buildable.setLimitResponse(fluent.buildLimitResponse()); - return buildable; - } - - -} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2LimitedPriorityLevelConfigurationFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2LimitedPriorityLevelConfigurationFluent.java deleted file mode 100644 index 5de7081d52..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2LimitedPriorityLevelConfigurationFluent.java +++ /dev/null @@ -1,158 +0,0 @@ -package io.kubernetes.client.openapi.models; - -import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.Nested; -import java.lang.String; -import java.lang.Integer; -import io.kubernetes.client.fluent.BaseFluent; -import java.lang.Object; - -/** - * Generated - */ -@SuppressWarnings("unchecked") -public class V1beta2LimitedPriorityLevelConfigurationFluent> extends BaseFluent{ - public V1beta2LimitedPriorityLevelConfigurationFluent() { - } - - public V1beta2LimitedPriorityLevelConfigurationFluent(V1beta2LimitedPriorityLevelConfiguration instance) { - this.copyInstance(instance); - } - private Integer assuredConcurrencyShares; - private Integer borrowingLimitPercent; - private Integer lendablePercent; - private V1beta2LimitResponseBuilder limitResponse; - - protected void copyInstance(V1beta2LimitedPriorityLevelConfiguration instance) { - instance = (instance != null ? instance : new V1beta2LimitedPriorityLevelConfiguration()); - if (instance != null) { - this.withAssuredConcurrencyShares(instance.getAssuredConcurrencyShares()); - this.withBorrowingLimitPercent(instance.getBorrowingLimitPercent()); - this.withLendablePercent(instance.getLendablePercent()); - this.withLimitResponse(instance.getLimitResponse()); - } - } - - public Integer getAssuredConcurrencyShares() { - return this.assuredConcurrencyShares; - } - - public A withAssuredConcurrencyShares(Integer assuredConcurrencyShares) { - this.assuredConcurrencyShares = assuredConcurrencyShares; - return (A) this; - } - - public boolean hasAssuredConcurrencyShares() { - return this.assuredConcurrencyShares != null; - } - - public Integer getBorrowingLimitPercent() { - return this.borrowingLimitPercent; - } - - public A withBorrowingLimitPercent(Integer borrowingLimitPercent) { - this.borrowingLimitPercent = borrowingLimitPercent; - return (A) this; - } - - public boolean hasBorrowingLimitPercent() { - return this.borrowingLimitPercent != null; - } - - public Integer getLendablePercent() { - return this.lendablePercent; - } - - public A withLendablePercent(Integer lendablePercent) { - this.lendablePercent = lendablePercent; - return (A) this; - } - - public boolean hasLendablePercent() { - return this.lendablePercent != null; - } - - public V1beta2LimitResponse buildLimitResponse() { - return this.limitResponse != null ? this.limitResponse.build() : null; - } - - public A withLimitResponse(V1beta2LimitResponse limitResponse) { - this._visitables.remove("limitResponse"); - if (limitResponse != null) { - this.limitResponse = new V1beta2LimitResponseBuilder(limitResponse); - this._visitables.get("limitResponse").add(this.limitResponse); - } else { - this.limitResponse = null; - this._visitables.get("limitResponse").remove(this.limitResponse); - } - return (A) this; - } - - public boolean hasLimitResponse() { - return this.limitResponse != null; - } - - public LimitResponseNested withNewLimitResponse() { - return new LimitResponseNested(null); - } - - public LimitResponseNested withNewLimitResponseLike(V1beta2LimitResponse item) { - return new LimitResponseNested(item); - } - - public LimitResponseNested editLimitResponse() { - return withNewLimitResponseLike(java.util.Optional.ofNullable(buildLimitResponse()).orElse(null)); - } - - public LimitResponseNested editOrNewLimitResponse() { - return withNewLimitResponseLike(java.util.Optional.ofNullable(buildLimitResponse()).orElse(new V1beta2LimitResponseBuilder().build())); - } - - public LimitResponseNested editOrNewLimitResponseLike(V1beta2LimitResponse item) { - return withNewLimitResponseLike(java.util.Optional.ofNullable(buildLimitResponse()).orElse(item)); - } - - public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; - V1beta2LimitedPriorityLevelConfigurationFluent that = (V1beta2LimitedPriorityLevelConfigurationFluent) o; - if (!java.util.Objects.equals(assuredConcurrencyShares, that.assuredConcurrencyShares)) return false; - if (!java.util.Objects.equals(borrowingLimitPercent, that.borrowingLimitPercent)) return false; - if (!java.util.Objects.equals(lendablePercent, that.lendablePercent)) return false; - if (!java.util.Objects.equals(limitResponse, that.limitResponse)) return false; - return true; - } - - public int hashCode() { - return java.util.Objects.hash(assuredConcurrencyShares, borrowingLimitPercent, lendablePercent, limitResponse, super.hashCode()); - } - - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("{"); - if (assuredConcurrencyShares != null) { sb.append("assuredConcurrencyShares:"); sb.append(assuredConcurrencyShares + ","); } - if (borrowingLimitPercent != null) { sb.append("borrowingLimitPercent:"); sb.append(borrowingLimitPercent + ","); } - if (lendablePercent != null) { sb.append("lendablePercent:"); sb.append(lendablePercent + ","); } - if (limitResponse != null) { sb.append("limitResponse:"); sb.append(limitResponse); } - sb.append("}"); - return sb.toString(); - } - public class LimitResponseNested extends V1beta2LimitResponseFluent> implements Nested{ - LimitResponseNested(V1beta2LimitResponse item) { - this.builder = new V1beta2LimitResponseBuilder(this, item); - } - V1beta2LimitResponseBuilder builder; - - public N and() { - return (N) V1beta2LimitedPriorityLevelConfigurationFluent.this.withLimitResponse(builder.build()); - } - - public N endLimitResponse() { - return and(); - } - - - } - -} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2NetworkDeviceDataBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2NetworkDeviceDataBuilder.java new file mode 100644 index 0000000000..875fd4b582 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2NetworkDeviceDataBuilder.java @@ -0,0 +1,33 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +public class V1beta2NetworkDeviceDataBuilder extends V1beta2NetworkDeviceDataFluent implements VisitableBuilder{ + public V1beta2NetworkDeviceDataBuilder() { + this(new V1beta2NetworkDeviceData()); + } + + public V1beta2NetworkDeviceDataBuilder(V1beta2NetworkDeviceDataFluent fluent) { + this(fluent, new V1beta2NetworkDeviceData()); + } + + public V1beta2NetworkDeviceDataBuilder(V1beta2NetworkDeviceDataFluent fluent,V1beta2NetworkDeviceData instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1beta2NetworkDeviceDataBuilder(V1beta2NetworkDeviceData instance) { + this.fluent = this; + this.copyInstance(instance); + } + V1beta2NetworkDeviceDataFluent fluent; + + public V1beta2NetworkDeviceData build() { + V1beta2NetworkDeviceData buildable = new V1beta2NetworkDeviceData(); + buildable.setHardwareAddress(fluent.getHardwareAddress()); + buildable.setInterfaceName(fluent.getInterfaceName()); + buildable.setIps(fluent.getIps()); + return buildable; + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2NetworkDeviceDataFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2NetworkDeviceDataFluent.java new file mode 100644 index 0000000000..bda7d4cf69 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2NetworkDeviceDataFluent.java @@ -0,0 +1,182 @@ +package io.kubernetes.client.openapi.models; + +import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; +import java.util.ArrayList; +import java.util.Collection; +import java.lang.Object; +import java.util.List; +import java.lang.String; +import java.util.function.Predicate; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1beta2NetworkDeviceDataFluent> extends BaseFluent{ + public V1beta2NetworkDeviceDataFluent() { + } + + public V1beta2NetworkDeviceDataFluent(V1beta2NetworkDeviceData instance) { + this.copyInstance(instance); + } + private String hardwareAddress; + private String interfaceName; + private List ips; + + protected void copyInstance(V1beta2NetworkDeviceData instance) { + instance = (instance != null ? instance : new V1beta2NetworkDeviceData()); + if (instance != null) { + this.withHardwareAddress(instance.getHardwareAddress()); + this.withInterfaceName(instance.getInterfaceName()); + this.withIps(instance.getIps()); + } + } + + public String getHardwareAddress() { + return this.hardwareAddress; + } + + public A withHardwareAddress(String hardwareAddress) { + this.hardwareAddress = hardwareAddress; + return (A) this; + } + + public boolean hasHardwareAddress() { + return this.hardwareAddress != null; + } + + public String getInterfaceName() { + return this.interfaceName; + } + + public A withInterfaceName(String interfaceName) { + this.interfaceName = interfaceName; + return (A) this; + } + + public boolean hasInterfaceName() { + return this.interfaceName != null; + } + + public A addToIps(int index,String item) { + if (this.ips == null) {this.ips = new ArrayList();} + this.ips.add(index, item); + return (A)this; + } + + public A setToIps(int index,String item) { + if (this.ips == null) {this.ips = new ArrayList();} + this.ips.set(index, item); return (A)this; + } + + public A addToIps(java.lang.String... items) { + if (this.ips == null) {this.ips = new ArrayList();} + for (String item : items) {this.ips.add(item);} return (A)this; + } + + public A addAllToIps(Collection items) { + if (this.ips == null) {this.ips = new ArrayList();} + for (String item : items) {this.ips.add(item);} return (A)this; + } + + public A removeFromIps(java.lang.String... items) { + if (this.ips == null) return (A)this; + for (String item : items) { this.ips.remove(item);} return (A)this; + } + + public A removeAllFromIps(Collection items) { + if (this.ips == null) return (A)this; + for (String item : items) { this.ips.remove(item);} return (A)this; + } + + public List getIps() { + return this.ips; + } + + public String getIp(int index) { + return this.ips.get(index); + } + + public String getFirstIp() { + return this.ips.get(0); + } + + public String getLastIp() { + return this.ips.get(ips.size() - 1); + } + + public String getMatchingIp(Predicate predicate) { + for (String item : ips) { + if (predicate.test(item)) { + return item; + } + } + return null; + } + + public boolean hasMatchingIp(Predicate predicate) { + for (String item : ips) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public A withIps(List ips) { + if (ips != null) { + this.ips = new ArrayList(); + for (String item : ips) { + this.addToIps(item); + } + } else { + this.ips = null; + } + return (A) this; + } + + public A withIps(java.lang.String... ips) { + if (this.ips != null) { + this.ips.clear(); + _visitables.remove("ips"); + } + if (ips != null) { + for (String item : ips) { + this.addToIps(item); + } + } + return (A) this; + } + + public boolean hasIps() { + return this.ips != null && !this.ips.isEmpty(); + } + + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + if (!super.equals(o)) return false; + V1beta2NetworkDeviceDataFluent that = (V1beta2NetworkDeviceDataFluent) o; + if (!java.util.Objects.equals(hardwareAddress, that.hardwareAddress)) return false; + if (!java.util.Objects.equals(interfaceName, that.interfaceName)) return false; + if (!java.util.Objects.equals(ips, that.ips)) return false; + return true; + } + + public int hashCode() { + return java.util.Objects.hash(hardwareAddress, interfaceName, ips, super.hashCode()); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (hardwareAddress != null) { sb.append("hardwareAddress:"); sb.append(hardwareAddress + ","); } + if (interfaceName != null) { sb.append("interfaceName:"); sb.append(interfaceName + ","); } + if (ips != null && !ips.isEmpty()) { sb.append("ips:"); sb.append(ips); } + sb.append("}"); + return sb.toString(); + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2NonResourcePolicyRuleBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2NonResourcePolicyRuleBuilder.java deleted file mode 100644 index 0b33143935..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2NonResourcePolicyRuleBuilder.java +++ /dev/null @@ -1,32 +0,0 @@ -package io.kubernetes.client.openapi.models; - -import io.kubernetes.client.fluent.VisitableBuilder; -public class V1beta2NonResourcePolicyRuleBuilder extends V1beta2NonResourcePolicyRuleFluent implements VisitableBuilder{ - public V1beta2NonResourcePolicyRuleBuilder() { - this(new V1beta2NonResourcePolicyRule()); - } - - public V1beta2NonResourcePolicyRuleBuilder(V1beta2NonResourcePolicyRuleFluent fluent) { - this(fluent, new V1beta2NonResourcePolicyRule()); - } - - public V1beta2NonResourcePolicyRuleBuilder(V1beta2NonResourcePolicyRuleFluent fluent,V1beta2NonResourcePolicyRule instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - - public V1beta2NonResourcePolicyRuleBuilder(V1beta2NonResourcePolicyRule instance) { - this.fluent = this; - this.copyInstance(instance); - } - V1beta2NonResourcePolicyRuleFluent fluent; - - public V1beta2NonResourcePolicyRule build() { - V1beta2NonResourcePolicyRule buildable = new V1beta2NonResourcePolicyRule(); - buildable.setNonResourceURLs(fluent.getNonResourceURLs()); - buildable.setVerbs(fluent.getVerbs()); - return buildable; - } - - -} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2NonResourcePolicyRuleFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2NonResourcePolicyRuleFluent.java deleted file mode 100644 index 1820172093..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2NonResourcePolicyRuleFluent.java +++ /dev/null @@ -1,246 +0,0 @@ -package io.kubernetes.client.openapi.models; - -import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.BaseFluent; -import java.util.ArrayList; -import java.util.Collection; -import java.lang.Object; -import java.util.List; -import java.lang.String; -import java.util.function.Predicate; - -/** - * Generated - */ -@SuppressWarnings("unchecked") -public class V1beta2NonResourcePolicyRuleFluent> extends BaseFluent{ - public V1beta2NonResourcePolicyRuleFluent() { - } - - public V1beta2NonResourcePolicyRuleFluent(V1beta2NonResourcePolicyRule instance) { - this.copyInstance(instance); - } - private List nonResourceURLs; - private List verbs; - - protected void copyInstance(V1beta2NonResourcePolicyRule instance) { - instance = (instance != null ? instance : new V1beta2NonResourcePolicyRule()); - if (instance != null) { - this.withNonResourceURLs(instance.getNonResourceURLs()); - this.withVerbs(instance.getVerbs()); - } - } - - public A addToNonResourceURLs(int index,String item) { - if (this.nonResourceURLs == null) {this.nonResourceURLs = new ArrayList();} - this.nonResourceURLs.add(index, item); - return (A)this; - } - - public A setToNonResourceURLs(int index,String item) { - if (this.nonResourceURLs == null) {this.nonResourceURLs = new ArrayList();} - this.nonResourceURLs.set(index, item); return (A)this; - } - - public A addToNonResourceURLs(java.lang.String... items) { - if (this.nonResourceURLs == null) {this.nonResourceURLs = new ArrayList();} - for (String item : items) {this.nonResourceURLs.add(item);} return (A)this; - } - - public A addAllToNonResourceURLs(Collection items) { - if (this.nonResourceURLs == null) {this.nonResourceURLs = new ArrayList();} - for (String item : items) {this.nonResourceURLs.add(item);} return (A)this; - } - - public A removeFromNonResourceURLs(java.lang.String... items) { - if (this.nonResourceURLs == null) return (A)this; - for (String item : items) { this.nonResourceURLs.remove(item);} return (A)this; - } - - public A removeAllFromNonResourceURLs(Collection items) { - if (this.nonResourceURLs == null) return (A)this; - for (String item : items) { this.nonResourceURLs.remove(item);} return (A)this; - } - - public List getNonResourceURLs() { - return this.nonResourceURLs; - } - - public String getNonResourceURL(int index) { - return this.nonResourceURLs.get(index); - } - - public String getFirstNonResourceURL() { - return this.nonResourceURLs.get(0); - } - - public String getLastNonResourceURL() { - return this.nonResourceURLs.get(nonResourceURLs.size() - 1); - } - - public String getMatchingNonResourceURL(Predicate predicate) { - for (String item : nonResourceURLs) { - if (predicate.test(item)) { - return item; - } - } - return null; - } - - public boolean hasMatchingNonResourceURL(Predicate predicate) { - for (String item : nonResourceURLs) { - if (predicate.test(item)) { - return true; - } - } - return false; - } - - public A withNonResourceURLs(List nonResourceURLs) { - if (nonResourceURLs != null) { - this.nonResourceURLs = new ArrayList(); - for (String item : nonResourceURLs) { - this.addToNonResourceURLs(item); - } - } else { - this.nonResourceURLs = null; - } - return (A) this; - } - - public A withNonResourceURLs(java.lang.String... nonResourceURLs) { - if (this.nonResourceURLs != null) { - this.nonResourceURLs.clear(); - _visitables.remove("nonResourceURLs"); - } - if (nonResourceURLs != null) { - for (String item : nonResourceURLs) { - this.addToNonResourceURLs(item); - } - } - return (A) this; - } - - public boolean hasNonResourceURLs() { - return this.nonResourceURLs != null && !this.nonResourceURLs.isEmpty(); - } - - public A addToVerbs(int index,String item) { - if (this.verbs == null) {this.verbs = new ArrayList();} - this.verbs.add(index, item); - return (A)this; - } - - public A setToVerbs(int index,String item) { - if (this.verbs == null) {this.verbs = new ArrayList();} - this.verbs.set(index, item); return (A)this; - } - - public A addToVerbs(java.lang.String... items) { - if (this.verbs == null) {this.verbs = new ArrayList();} - for (String item : items) {this.verbs.add(item);} return (A)this; - } - - public A addAllToVerbs(Collection items) { - if (this.verbs == null) {this.verbs = new ArrayList();} - for (String item : items) {this.verbs.add(item);} return (A)this; - } - - public A removeFromVerbs(java.lang.String... items) { - if (this.verbs == null) return (A)this; - for (String item : items) { this.verbs.remove(item);} return (A)this; - } - - public A removeAllFromVerbs(Collection items) { - if (this.verbs == null) return (A)this; - for (String item : items) { this.verbs.remove(item);} return (A)this; - } - - public List getVerbs() { - return this.verbs; - } - - public String getVerb(int index) { - return this.verbs.get(index); - } - - public String getFirstVerb() { - return this.verbs.get(0); - } - - public String getLastVerb() { - return this.verbs.get(verbs.size() - 1); - } - - public String getMatchingVerb(Predicate predicate) { - for (String item : verbs) { - if (predicate.test(item)) { - return item; - } - } - return null; - } - - public boolean hasMatchingVerb(Predicate predicate) { - for (String item : verbs) { - if (predicate.test(item)) { - return true; - } - } - return false; - } - - public A withVerbs(List verbs) { - if (verbs != null) { - this.verbs = new ArrayList(); - for (String item : verbs) { - this.addToVerbs(item); - } - } else { - this.verbs = null; - } - return (A) this; - } - - public A withVerbs(java.lang.String... verbs) { - if (this.verbs != null) { - this.verbs.clear(); - _visitables.remove("verbs"); - } - if (verbs != null) { - for (String item : verbs) { - this.addToVerbs(item); - } - } - return (A) this; - } - - public boolean hasVerbs() { - return this.verbs != null && !this.verbs.isEmpty(); - } - - public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; - V1beta2NonResourcePolicyRuleFluent that = (V1beta2NonResourcePolicyRuleFluent) o; - if (!java.util.Objects.equals(nonResourceURLs, that.nonResourceURLs)) return false; - if (!java.util.Objects.equals(verbs, that.verbs)) return false; - return true; - } - - public int hashCode() { - return java.util.Objects.hash(nonResourceURLs, verbs, super.hashCode()); - } - - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("{"); - if (nonResourceURLs != null && !nonResourceURLs.isEmpty()) { sb.append("nonResourceURLs:"); sb.append(nonResourceURLs + ","); } - if (verbs != null && !verbs.isEmpty()) { sb.append("verbs:"); sb.append(verbs); } - sb.append("}"); - return sb.toString(); - } - - -} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2OpaqueDeviceConfigurationBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2OpaqueDeviceConfigurationBuilder.java new file mode 100644 index 0000000000..8a26b9defb --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2OpaqueDeviceConfigurationBuilder.java @@ -0,0 +1,32 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +public class V1beta2OpaqueDeviceConfigurationBuilder extends V1beta2OpaqueDeviceConfigurationFluent implements VisitableBuilder{ + public V1beta2OpaqueDeviceConfigurationBuilder() { + this(new V1beta2OpaqueDeviceConfiguration()); + } + + public V1beta2OpaqueDeviceConfigurationBuilder(V1beta2OpaqueDeviceConfigurationFluent fluent) { + this(fluent, new V1beta2OpaqueDeviceConfiguration()); + } + + public V1beta2OpaqueDeviceConfigurationBuilder(V1beta2OpaqueDeviceConfigurationFluent fluent,V1beta2OpaqueDeviceConfiguration instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1beta2OpaqueDeviceConfigurationBuilder(V1beta2OpaqueDeviceConfiguration instance) { + this.fluent = this; + this.copyInstance(instance); + } + V1beta2OpaqueDeviceConfigurationFluent fluent; + + public V1beta2OpaqueDeviceConfiguration build() { + V1beta2OpaqueDeviceConfiguration buildable = new V1beta2OpaqueDeviceConfiguration(); + buildable.setDriver(fluent.getDriver()); + buildable.setParameters(fluent.getParameters()); + return buildable; + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2OpaqueDeviceConfigurationFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2OpaqueDeviceConfigurationFluent.java new file mode 100644 index 0000000000..0fe3497c39 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2OpaqueDeviceConfigurationFluent.java @@ -0,0 +1,80 @@ +package io.kubernetes.client.openapi.models; + +import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Object; +import java.lang.String; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1beta2OpaqueDeviceConfigurationFluent> extends BaseFluent{ + public V1beta2OpaqueDeviceConfigurationFluent() { + } + + public V1beta2OpaqueDeviceConfigurationFluent(V1beta2OpaqueDeviceConfiguration instance) { + this.copyInstance(instance); + } + private String driver; + private Object parameters; + + protected void copyInstance(V1beta2OpaqueDeviceConfiguration instance) { + instance = (instance != null ? instance : new V1beta2OpaqueDeviceConfiguration()); + if (instance != null) { + this.withDriver(instance.getDriver()); + this.withParameters(instance.getParameters()); + } + } + + public String getDriver() { + return this.driver; + } + + public A withDriver(String driver) { + this.driver = driver; + return (A) this; + } + + public boolean hasDriver() { + return this.driver != null; + } + + public Object getParameters() { + return this.parameters; + } + + public A withParameters(Object parameters) { + this.parameters = parameters; + return (A) this; + } + + public boolean hasParameters() { + return this.parameters != null; + } + + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + if (!super.equals(o)) return false; + V1beta2OpaqueDeviceConfigurationFluent that = (V1beta2OpaqueDeviceConfigurationFluent) o; + if (!java.util.Objects.equals(driver, that.driver)) return false; + if (!java.util.Objects.equals(parameters, that.parameters)) return false; + return true; + } + + public int hashCode() { + return java.util.Objects.hash(driver, parameters, super.hashCode()); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (driver != null) { sb.append("driver:"); sb.append(driver + ","); } + if (parameters != null) { sb.append("parameters:"); sb.append(parameters); } + sb.append("}"); + return sb.toString(); + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2PolicyRulesWithSubjectsBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2PolicyRulesWithSubjectsBuilder.java deleted file mode 100644 index 89bba45168..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2PolicyRulesWithSubjectsBuilder.java +++ /dev/null @@ -1,33 +0,0 @@ -package io.kubernetes.client.openapi.models; - -import io.kubernetes.client.fluent.VisitableBuilder; -public class V1beta2PolicyRulesWithSubjectsBuilder extends V1beta2PolicyRulesWithSubjectsFluent implements VisitableBuilder{ - public V1beta2PolicyRulesWithSubjectsBuilder() { - this(new V1beta2PolicyRulesWithSubjects()); - } - - public V1beta2PolicyRulesWithSubjectsBuilder(V1beta2PolicyRulesWithSubjectsFluent fluent) { - this(fluent, new V1beta2PolicyRulesWithSubjects()); - } - - public V1beta2PolicyRulesWithSubjectsBuilder(V1beta2PolicyRulesWithSubjectsFluent fluent,V1beta2PolicyRulesWithSubjects instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - - public V1beta2PolicyRulesWithSubjectsBuilder(V1beta2PolicyRulesWithSubjects instance) { - this.fluent = this; - this.copyInstance(instance); - } - V1beta2PolicyRulesWithSubjectsFluent fluent; - - public V1beta2PolicyRulesWithSubjects build() { - V1beta2PolicyRulesWithSubjects buildable = new V1beta2PolicyRulesWithSubjects(); - buildable.setNonResourceRules(fluent.buildNonResourceRules()); - buildable.setResourceRules(fluent.buildResourceRules()); - buildable.setSubjects(fluent.buildSubjects()); - return buildable; - } - - -} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2PolicyRulesWithSubjectsFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2PolicyRulesWithSubjectsFluent.java deleted file mode 100644 index c8b39de38c..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2PolicyRulesWithSubjectsFluent.java +++ /dev/null @@ -1,571 +0,0 @@ -package io.kubernetes.client.openapi.models; - -import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.Nested; -import java.util.ArrayList; -import java.lang.String; -import java.util.function.Predicate; -import io.kubernetes.client.fluent.BaseFluent; -import java.util.Iterator; -import java.util.List; -import java.util.Collection; -import java.lang.Object; - -/** - * Generated - */ -@SuppressWarnings("unchecked") -public class V1beta2PolicyRulesWithSubjectsFluent> extends BaseFluent{ - public V1beta2PolicyRulesWithSubjectsFluent() { - } - - public V1beta2PolicyRulesWithSubjectsFluent(V1beta2PolicyRulesWithSubjects instance) { - this.copyInstance(instance); - } - private ArrayList nonResourceRules; - private ArrayList resourceRules; - private ArrayList subjects; - - protected void copyInstance(V1beta2PolicyRulesWithSubjects instance) { - instance = (instance != null ? instance : new V1beta2PolicyRulesWithSubjects()); - if (instance != null) { - this.withNonResourceRules(instance.getNonResourceRules()); - this.withResourceRules(instance.getResourceRules()); - this.withSubjects(instance.getSubjects()); - } - } - - public A addToNonResourceRules(int index,V1beta2NonResourcePolicyRule item) { - if (this.nonResourceRules == null) {this.nonResourceRules = new ArrayList();} - V1beta2NonResourcePolicyRuleBuilder builder = new V1beta2NonResourcePolicyRuleBuilder(item); - if (index < 0 || index >= nonResourceRules.size()) { _visitables.get("nonResourceRules").add(builder); nonResourceRules.add(builder); } else { _visitables.get("nonResourceRules").add(index, builder); nonResourceRules.add(index, builder);} - return (A)this; - } - - public A setToNonResourceRules(int index,V1beta2NonResourcePolicyRule item) { - if (this.nonResourceRules == null) {this.nonResourceRules = new ArrayList();} - V1beta2NonResourcePolicyRuleBuilder builder = new V1beta2NonResourcePolicyRuleBuilder(item); - if (index < 0 || index >= nonResourceRules.size()) { _visitables.get("nonResourceRules").add(builder); nonResourceRules.add(builder); } else { _visitables.get("nonResourceRules").set(index, builder); nonResourceRules.set(index, builder);} - return (A)this; - } - - public A addToNonResourceRules(io.kubernetes.client.openapi.models.V1beta2NonResourcePolicyRule... items) { - if (this.nonResourceRules == null) {this.nonResourceRules = new ArrayList();} - for (V1beta2NonResourcePolicyRule item : items) {V1beta2NonResourcePolicyRuleBuilder builder = new V1beta2NonResourcePolicyRuleBuilder(item);_visitables.get("nonResourceRules").add(builder);this.nonResourceRules.add(builder);} return (A)this; - } - - public A addAllToNonResourceRules(Collection items) { - if (this.nonResourceRules == null) {this.nonResourceRules = new ArrayList();} - for (V1beta2NonResourcePolicyRule item : items) {V1beta2NonResourcePolicyRuleBuilder builder = new V1beta2NonResourcePolicyRuleBuilder(item);_visitables.get("nonResourceRules").add(builder);this.nonResourceRules.add(builder);} return (A)this; - } - - public A removeFromNonResourceRules(io.kubernetes.client.openapi.models.V1beta2NonResourcePolicyRule... items) { - if (this.nonResourceRules == null) return (A)this; - for (V1beta2NonResourcePolicyRule item : items) {V1beta2NonResourcePolicyRuleBuilder builder = new V1beta2NonResourcePolicyRuleBuilder(item);_visitables.get("nonResourceRules").remove(builder); this.nonResourceRules.remove(builder);} return (A)this; - } - - public A removeAllFromNonResourceRules(Collection items) { - if (this.nonResourceRules == null) return (A)this; - for (V1beta2NonResourcePolicyRule item : items) {V1beta2NonResourcePolicyRuleBuilder builder = new V1beta2NonResourcePolicyRuleBuilder(item);_visitables.get("nonResourceRules").remove(builder); this.nonResourceRules.remove(builder);} return (A)this; - } - - public A removeMatchingFromNonResourceRules(Predicate predicate) { - if (nonResourceRules == null) return (A) this; - final Iterator each = nonResourceRules.iterator(); - final List visitables = _visitables.get("nonResourceRules"); - while (each.hasNext()) { - V1beta2NonResourcePolicyRuleBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } - } - return (A)this; - } - - public List buildNonResourceRules() { - return this.nonResourceRules != null ? build(nonResourceRules) : null; - } - - public V1beta2NonResourcePolicyRule buildNonResourceRule(int index) { - return this.nonResourceRules.get(index).build(); - } - - public V1beta2NonResourcePolicyRule buildFirstNonResourceRule() { - return this.nonResourceRules.get(0).build(); - } - - public V1beta2NonResourcePolicyRule buildLastNonResourceRule() { - return this.nonResourceRules.get(nonResourceRules.size() - 1).build(); - } - - public V1beta2NonResourcePolicyRule buildMatchingNonResourceRule(Predicate predicate) { - for (V1beta2NonResourcePolicyRuleBuilder item : nonResourceRules) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; - } - - public boolean hasMatchingNonResourceRule(Predicate predicate) { - for (V1beta2NonResourcePolicyRuleBuilder item : nonResourceRules) { - if (predicate.test(item)) { - return true; - } - } - return false; - } - - public A withNonResourceRules(List nonResourceRules) { - if (this.nonResourceRules != null) { - this._visitables.get("nonResourceRules").clear(); - } - if (nonResourceRules != null) { - this.nonResourceRules = new ArrayList(); - for (V1beta2NonResourcePolicyRule item : nonResourceRules) { - this.addToNonResourceRules(item); - } - } else { - this.nonResourceRules = null; - } - return (A) this; - } - - public A withNonResourceRules(io.kubernetes.client.openapi.models.V1beta2NonResourcePolicyRule... nonResourceRules) { - if (this.nonResourceRules != null) { - this.nonResourceRules.clear(); - _visitables.remove("nonResourceRules"); - } - if (nonResourceRules != null) { - for (V1beta2NonResourcePolicyRule item : nonResourceRules) { - this.addToNonResourceRules(item); - } - } - return (A) this; - } - - public boolean hasNonResourceRules() { - return this.nonResourceRules != null && !this.nonResourceRules.isEmpty(); - } - - public NonResourceRulesNested addNewNonResourceRule() { - return new NonResourceRulesNested(-1, null); - } - - public NonResourceRulesNested addNewNonResourceRuleLike(V1beta2NonResourcePolicyRule item) { - return new NonResourceRulesNested(-1, item); - } - - public NonResourceRulesNested setNewNonResourceRuleLike(int index,V1beta2NonResourcePolicyRule item) { - return new NonResourceRulesNested(index, item); - } - - public NonResourceRulesNested editNonResourceRule(int index) { - if (nonResourceRules.size() <= index) throw new RuntimeException("Can't edit nonResourceRules. Index exceeds size."); - return setNewNonResourceRuleLike(index, buildNonResourceRule(index)); - } - - public NonResourceRulesNested editFirstNonResourceRule() { - if (nonResourceRules.size() == 0) throw new RuntimeException("Can't edit first nonResourceRules. The list is empty."); - return setNewNonResourceRuleLike(0, buildNonResourceRule(0)); - } - - public NonResourceRulesNested editLastNonResourceRule() { - int index = nonResourceRules.size() - 1; - if (index < 0) throw new RuntimeException("Can't edit last nonResourceRules. The list is empty."); - return setNewNonResourceRuleLike(index, buildNonResourceRule(index)); - } - - public NonResourceRulesNested editMatchingNonResourceRule(Predicate predicate) { - int index = -1; - for (int i=0;i();} - V1beta2ResourcePolicyRuleBuilder builder = new V1beta2ResourcePolicyRuleBuilder(item); - if (index < 0 || index >= resourceRules.size()) { _visitables.get("resourceRules").add(builder); resourceRules.add(builder); } else { _visitables.get("resourceRules").add(index, builder); resourceRules.add(index, builder);} - return (A)this; - } - - public A setToResourceRules(int index,V1beta2ResourcePolicyRule item) { - if (this.resourceRules == null) {this.resourceRules = new ArrayList();} - V1beta2ResourcePolicyRuleBuilder builder = new V1beta2ResourcePolicyRuleBuilder(item); - if (index < 0 || index >= resourceRules.size()) { _visitables.get("resourceRules").add(builder); resourceRules.add(builder); } else { _visitables.get("resourceRules").set(index, builder); resourceRules.set(index, builder);} - return (A)this; - } - - public A addToResourceRules(io.kubernetes.client.openapi.models.V1beta2ResourcePolicyRule... items) { - if (this.resourceRules == null) {this.resourceRules = new ArrayList();} - for (V1beta2ResourcePolicyRule item : items) {V1beta2ResourcePolicyRuleBuilder builder = new V1beta2ResourcePolicyRuleBuilder(item);_visitables.get("resourceRules").add(builder);this.resourceRules.add(builder);} return (A)this; - } - - public A addAllToResourceRules(Collection items) { - if (this.resourceRules == null) {this.resourceRules = new ArrayList();} - for (V1beta2ResourcePolicyRule item : items) {V1beta2ResourcePolicyRuleBuilder builder = new V1beta2ResourcePolicyRuleBuilder(item);_visitables.get("resourceRules").add(builder);this.resourceRules.add(builder);} return (A)this; - } - - public A removeFromResourceRules(io.kubernetes.client.openapi.models.V1beta2ResourcePolicyRule... items) { - if (this.resourceRules == null) return (A)this; - for (V1beta2ResourcePolicyRule item : items) {V1beta2ResourcePolicyRuleBuilder builder = new V1beta2ResourcePolicyRuleBuilder(item);_visitables.get("resourceRules").remove(builder); this.resourceRules.remove(builder);} return (A)this; - } - - public A removeAllFromResourceRules(Collection items) { - if (this.resourceRules == null) return (A)this; - for (V1beta2ResourcePolicyRule item : items) {V1beta2ResourcePolicyRuleBuilder builder = new V1beta2ResourcePolicyRuleBuilder(item);_visitables.get("resourceRules").remove(builder); this.resourceRules.remove(builder);} return (A)this; - } - - public A removeMatchingFromResourceRules(Predicate predicate) { - if (resourceRules == null) return (A) this; - final Iterator each = resourceRules.iterator(); - final List visitables = _visitables.get("resourceRules"); - while (each.hasNext()) { - V1beta2ResourcePolicyRuleBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } - } - return (A)this; - } - - public List buildResourceRules() { - return this.resourceRules != null ? build(resourceRules) : null; - } - - public V1beta2ResourcePolicyRule buildResourceRule(int index) { - return this.resourceRules.get(index).build(); - } - - public V1beta2ResourcePolicyRule buildFirstResourceRule() { - return this.resourceRules.get(0).build(); - } - - public V1beta2ResourcePolicyRule buildLastResourceRule() { - return this.resourceRules.get(resourceRules.size() - 1).build(); - } - - public V1beta2ResourcePolicyRule buildMatchingResourceRule(Predicate predicate) { - for (V1beta2ResourcePolicyRuleBuilder item : resourceRules) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; - } - - public boolean hasMatchingResourceRule(Predicate predicate) { - for (V1beta2ResourcePolicyRuleBuilder item : resourceRules) { - if (predicate.test(item)) { - return true; - } - } - return false; - } - - public A withResourceRules(List resourceRules) { - if (this.resourceRules != null) { - this._visitables.get("resourceRules").clear(); - } - if (resourceRules != null) { - this.resourceRules = new ArrayList(); - for (V1beta2ResourcePolicyRule item : resourceRules) { - this.addToResourceRules(item); - } - } else { - this.resourceRules = null; - } - return (A) this; - } - - public A withResourceRules(io.kubernetes.client.openapi.models.V1beta2ResourcePolicyRule... resourceRules) { - if (this.resourceRules != null) { - this.resourceRules.clear(); - _visitables.remove("resourceRules"); - } - if (resourceRules != null) { - for (V1beta2ResourcePolicyRule item : resourceRules) { - this.addToResourceRules(item); - } - } - return (A) this; - } - - public boolean hasResourceRules() { - return this.resourceRules != null && !this.resourceRules.isEmpty(); - } - - public ResourceRulesNested addNewResourceRule() { - return new ResourceRulesNested(-1, null); - } - - public ResourceRulesNested addNewResourceRuleLike(V1beta2ResourcePolicyRule item) { - return new ResourceRulesNested(-1, item); - } - - public ResourceRulesNested setNewResourceRuleLike(int index,V1beta2ResourcePolicyRule item) { - return new ResourceRulesNested(index, item); - } - - public ResourceRulesNested editResourceRule(int index) { - if (resourceRules.size() <= index) throw new RuntimeException("Can't edit resourceRules. Index exceeds size."); - return setNewResourceRuleLike(index, buildResourceRule(index)); - } - - public ResourceRulesNested editFirstResourceRule() { - if (resourceRules.size() == 0) throw new RuntimeException("Can't edit first resourceRules. The list is empty."); - return setNewResourceRuleLike(0, buildResourceRule(0)); - } - - public ResourceRulesNested editLastResourceRule() { - int index = resourceRules.size() - 1; - if (index < 0) throw new RuntimeException("Can't edit last resourceRules. The list is empty."); - return setNewResourceRuleLike(index, buildResourceRule(index)); - } - - public ResourceRulesNested editMatchingResourceRule(Predicate predicate) { - int index = -1; - for (int i=0;i();} - V1beta2SubjectBuilder builder = new V1beta2SubjectBuilder(item); - if (index < 0 || index >= subjects.size()) { _visitables.get("subjects").add(builder); subjects.add(builder); } else { _visitables.get("subjects").add(index, builder); subjects.add(index, builder);} - return (A)this; - } - - public A setToSubjects(int index,V1beta2Subject item) { - if (this.subjects == null) {this.subjects = new ArrayList();} - V1beta2SubjectBuilder builder = new V1beta2SubjectBuilder(item); - if (index < 0 || index >= subjects.size()) { _visitables.get("subjects").add(builder); subjects.add(builder); } else { _visitables.get("subjects").set(index, builder); subjects.set(index, builder);} - return (A)this; - } - - public A addToSubjects(io.kubernetes.client.openapi.models.V1beta2Subject... items) { - if (this.subjects == null) {this.subjects = new ArrayList();} - for (V1beta2Subject item : items) {V1beta2SubjectBuilder builder = new V1beta2SubjectBuilder(item);_visitables.get("subjects").add(builder);this.subjects.add(builder);} return (A)this; - } - - public A addAllToSubjects(Collection items) { - if (this.subjects == null) {this.subjects = new ArrayList();} - for (V1beta2Subject item : items) {V1beta2SubjectBuilder builder = new V1beta2SubjectBuilder(item);_visitables.get("subjects").add(builder);this.subjects.add(builder);} return (A)this; - } - - public A removeFromSubjects(io.kubernetes.client.openapi.models.V1beta2Subject... items) { - if (this.subjects == null) return (A)this; - for (V1beta2Subject item : items) {V1beta2SubjectBuilder builder = new V1beta2SubjectBuilder(item);_visitables.get("subjects").remove(builder); this.subjects.remove(builder);} return (A)this; - } - - public A removeAllFromSubjects(Collection items) { - if (this.subjects == null) return (A)this; - for (V1beta2Subject item : items) {V1beta2SubjectBuilder builder = new V1beta2SubjectBuilder(item);_visitables.get("subjects").remove(builder); this.subjects.remove(builder);} return (A)this; - } - - public A removeMatchingFromSubjects(Predicate predicate) { - if (subjects == null) return (A) this; - final Iterator each = subjects.iterator(); - final List visitables = _visitables.get("subjects"); - while (each.hasNext()) { - V1beta2SubjectBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } - } - return (A)this; - } - - public List buildSubjects() { - return this.subjects != null ? build(subjects) : null; - } - - public V1beta2Subject buildSubject(int index) { - return this.subjects.get(index).build(); - } - - public V1beta2Subject buildFirstSubject() { - return this.subjects.get(0).build(); - } - - public V1beta2Subject buildLastSubject() { - return this.subjects.get(subjects.size() - 1).build(); - } - - public V1beta2Subject buildMatchingSubject(Predicate predicate) { - for (V1beta2SubjectBuilder item : subjects) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; - } - - public boolean hasMatchingSubject(Predicate predicate) { - for (V1beta2SubjectBuilder item : subjects) { - if (predicate.test(item)) { - return true; - } - } - return false; - } - - public A withSubjects(List subjects) { - if (this.subjects != null) { - this._visitables.get("subjects").clear(); - } - if (subjects != null) { - this.subjects = new ArrayList(); - for (V1beta2Subject item : subjects) { - this.addToSubjects(item); - } - } else { - this.subjects = null; - } - return (A) this; - } - - public A withSubjects(io.kubernetes.client.openapi.models.V1beta2Subject... subjects) { - if (this.subjects != null) { - this.subjects.clear(); - _visitables.remove("subjects"); - } - if (subjects != null) { - for (V1beta2Subject item : subjects) { - this.addToSubjects(item); - } - } - return (A) this; - } - - public boolean hasSubjects() { - return this.subjects != null && !this.subjects.isEmpty(); - } - - public SubjectsNested addNewSubject() { - return new SubjectsNested(-1, null); - } - - public SubjectsNested addNewSubjectLike(V1beta2Subject item) { - return new SubjectsNested(-1, item); - } - - public SubjectsNested setNewSubjectLike(int index,V1beta2Subject item) { - return new SubjectsNested(index, item); - } - - public SubjectsNested editSubject(int index) { - if (subjects.size() <= index) throw new RuntimeException("Can't edit subjects. Index exceeds size."); - return setNewSubjectLike(index, buildSubject(index)); - } - - public SubjectsNested editFirstSubject() { - if (subjects.size() == 0) throw new RuntimeException("Can't edit first subjects. The list is empty."); - return setNewSubjectLike(0, buildSubject(0)); - } - - public SubjectsNested editLastSubject() { - int index = subjects.size() - 1; - if (index < 0) throw new RuntimeException("Can't edit last subjects. The list is empty."); - return setNewSubjectLike(index, buildSubject(index)); - } - - public SubjectsNested editMatchingSubject(Predicate predicate) { - int index = -1; - for (int i=0;i extends V1beta2NonResourcePolicyRuleFluent> implements Nested{ - NonResourceRulesNested(int index,V1beta2NonResourcePolicyRule item) { - this.index = index; - this.builder = new V1beta2NonResourcePolicyRuleBuilder(this, item); - } - V1beta2NonResourcePolicyRuleBuilder builder; - int index; - - public N and() { - return (N) V1beta2PolicyRulesWithSubjectsFluent.this.setToNonResourceRules(index,builder.build()); - } - - public N endNonResourceRule() { - return and(); - } - - - } - public class ResourceRulesNested extends V1beta2ResourcePolicyRuleFluent> implements Nested{ - ResourceRulesNested(int index,V1beta2ResourcePolicyRule item) { - this.index = index; - this.builder = new V1beta2ResourcePolicyRuleBuilder(this, item); - } - V1beta2ResourcePolicyRuleBuilder builder; - int index; - - public N and() { - return (N) V1beta2PolicyRulesWithSubjectsFluent.this.setToResourceRules(index,builder.build()); - } - - public N endResourceRule() { - return and(); - } - - - } - public class SubjectsNested extends V1beta2SubjectFluent> implements Nested{ - SubjectsNested(int index,V1beta2Subject item) { - this.index = index; - this.builder = new V1beta2SubjectBuilder(this, item); - } - V1beta2SubjectBuilder builder; - int index; - - public N and() { - return (N) V1beta2PolicyRulesWithSubjectsFluent.this.setToSubjects(index,builder.build()); - } - - public N endSubject() { - return and(); - } - - - } - -} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2PriorityLevelConfigurationBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2PriorityLevelConfigurationBuilder.java deleted file mode 100644 index f93f77ec6a..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2PriorityLevelConfigurationBuilder.java +++ /dev/null @@ -1,35 +0,0 @@ -package io.kubernetes.client.openapi.models; - -import io.kubernetes.client.fluent.VisitableBuilder; -public class V1beta2PriorityLevelConfigurationBuilder extends V1beta2PriorityLevelConfigurationFluent implements VisitableBuilder{ - public V1beta2PriorityLevelConfigurationBuilder() { - this(new V1beta2PriorityLevelConfiguration()); - } - - public V1beta2PriorityLevelConfigurationBuilder(V1beta2PriorityLevelConfigurationFluent fluent) { - this(fluent, new V1beta2PriorityLevelConfiguration()); - } - - public V1beta2PriorityLevelConfigurationBuilder(V1beta2PriorityLevelConfigurationFluent fluent,V1beta2PriorityLevelConfiguration instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - - public V1beta2PriorityLevelConfigurationBuilder(V1beta2PriorityLevelConfiguration instance) { - this.fluent = this; - this.copyInstance(instance); - } - V1beta2PriorityLevelConfigurationFluent fluent; - - public V1beta2PriorityLevelConfiguration build() { - V1beta2PriorityLevelConfiguration buildable = new V1beta2PriorityLevelConfiguration(); - buildable.setApiVersion(fluent.getApiVersion()); - buildable.setKind(fluent.getKind()); - buildable.setMetadata(fluent.buildMetadata()); - buildable.setSpec(fluent.buildSpec()); - buildable.setStatus(fluent.buildStatus()); - return buildable; - } - - -} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2PriorityLevelConfigurationConditionBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2PriorityLevelConfigurationConditionBuilder.java deleted file mode 100644 index 8c5ddc141d..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2PriorityLevelConfigurationConditionBuilder.java +++ /dev/null @@ -1,35 +0,0 @@ -package io.kubernetes.client.openapi.models; - -import io.kubernetes.client.fluent.VisitableBuilder; -public class V1beta2PriorityLevelConfigurationConditionBuilder extends V1beta2PriorityLevelConfigurationConditionFluent implements VisitableBuilder{ - public V1beta2PriorityLevelConfigurationConditionBuilder() { - this(new V1beta2PriorityLevelConfigurationCondition()); - } - - public V1beta2PriorityLevelConfigurationConditionBuilder(V1beta2PriorityLevelConfigurationConditionFluent fluent) { - this(fluent, new V1beta2PriorityLevelConfigurationCondition()); - } - - public V1beta2PriorityLevelConfigurationConditionBuilder(V1beta2PriorityLevelConfigurationConditionFluent fluent,V1beta2PriorityLevelConfigurationCondition instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - - public V1beta2PriorityLevelConfigurationConditionBuilder(V1beta2PriorityLevelConfigurationCondition instance) { - this.fluent = this; - this.copyInstance(instance); - } - V1beta2PriorityLevelConfigurationConditionFluent fluent; - - public V1beta2PriorityLevelConfigurationCondition build() { - V1beta2PriorityLevelConfigurationCondition buildable = new V1beta2PriorityLevelConfigurationCondition(); - buildable.setLastTransitionTime(fluent.getLastTransitionTime()); - buildable.setMessage(fluent.getMessage()); - buildable.setReason(fluent.getReason()); - buildable.setStatus(fluent.getStatus()); - buildable.setType(fluent.getType()); - return buildable; - } - - -} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2PriorityLevelConfigurationConditionFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2PriorityLevelConfigurationConditionFluent.java deleted file mode 100644 index 527c36c42a..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2PriorityLevelConfigurationConditionFluent.java +++ /dev/null @@ -1,132 +0,0 @@ -package io.kubernetes.client.openapi.models; - -import java.time.OffsetDateTime; -import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.BaseFluent; -import java.lang.Object; -import java.lang.String; - -/** - * Generated - */ -@SuppressWarnings("unchecked") -public class V1beta2PriorityLevelConfigurationConditionFluent> extends BaseFluent{ - public V1beta2PriorityLevelConfigurationConditionFluent() { - } - - public V1beta2PriorityLevelConfigurationConditionFluent(V1beta2PriorityLevelConfigurationCondition instance) { - this.copyInstance(instance); - } - private OffsetDateTime lastTransitionTime; - private String message; - private String reason; - private String status; - private String type; - - protected void copyInstance(V1beta2PriorityLevelConfigurationCondition instance) { - instance = (instance != null ? instance : new V1beta2PriorityLevelConfigurationCondition()); - if (instance != null) { - this.withLastTransitionTime(instance.getLastTransitionTime()); - this.withMessage(instance.getMessage()); - this.withReason(instance.getReason()); - this.withStatus(instance.getStatus()); - this.withType(instance.getType()); - } - } - - public OffsetDateTime getLastTransitionTime() { - return this.lastTransitionTime; - } - - public A withLastTransitionTime(OffsetDateTime lastTransitionTime) { - this.lastTransitionTime = lastTransitionTime; - return (A) this; - } - - public boolean hasLastTransitionTime() { - return this.lastTransitionTime != null; - } - - public String getMessage() { - return this.message; - } - - public A withMessage(String message) { - this.message = message; - return (A) this; - } - - public boolean hasMessage() { - return this.message != null; - } - - public String getReason() { - return this.reason; - } - - public A withReason(String reason) { - this.reason = reason; - return (A) this; - } - - public boolean hasReason() { - return this.reason != null; - } - - public String getStatus() { - return this.status; - } - - public A withStatus(String status) { - this.status = status; - return (A) this; - } - - public boolean hasStatus() { - return this.status != null; - } - - public String getType() { - return this.type; - } - - public A withType(String type) { - this.type = type; - return (A) this; - } - - public boolean hasType() { - return this.type != null; - } - - public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; - V1beta2PriorityLevelConfigurationConditionFluent that = (V1beta2PriorityLevelConfigurationConditionFluent) o; - if (!java.util.Objects.equals(lastTransitionTime, that.lastTransitionTime)) return false; - if (!java.util.Objects.equals(message, that.message)) return false; - if (!java.util.Objects.equals(reason, that.reason)) return false; - if (!java.util.Objects.equals(status, that.status)) return false; - if (!java.util.Objects.equals(type, that.type)) return false; - return true; - } - - public int hashCode() { - return java.util.Objects.hash(lastTransitionTime, message, reason, status, type, super.hashCode()); - } - - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("{"); - if (lastTransitionTime != null) { sb.append("lastTransitionTime:"); sb.append(lastTransitionTime + ","); } - if (message != null) { sb.append("message:"); sb.append(message + ","); } - if (reason != null) { sb.append("reason:"); sb.append(reason + ","); } - if (status != null) { sb.append("status:"); sb.append(status + ","); } - if (type != null) { sb.append("type:"); sb.append(type); } - sb.append("}"); - return sb.toString(); - } - - -} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2PriorityLevelConfigurationFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2PriorityLevelConfigurationFluent.java deleted file mode 100644 index a93233a77e..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2PriorityLevelConfigurationFluent.java +++ /dev/null @@ -1,260 +0,0 @@ -package io.kubernetes.client.openapi.models; - -import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.Nested; -import java.lang.String; -import io.kubernetes.client.fluent.BaseFluent; -import java.lang.Object; - -/** - * Generated - */ -@SuppressWarnings("unchecked") -public class V1beta2PriorityLevelConfigurationFluent> extends BaseFluent{ - public V1beta2PriorityLevelConfigurationFluent() { - } - - public V1beta2PriorityLevelConfigurationFluent(V1beta2PriorityLevelConfiguration instance) { - this.copyInstance(instance); - } - private String apiVersion; - private String kind; - private V1ObjectMetaBuilder metadata; - private V1beta2PriorityLevelConfigurationSpecBuilder spec; - private V1beta2PriorityLevelConfigurationStatusBuilder status; - - protected void copyInstance(V1beta2PriorityLevelConfiguration instance) { - instance = (instance != null ? instance : new V1beta2PriorityLevelConfiguration()); - if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withKind(instance.getKind()); - this.withMetadata(instance.getMetadata()); - this.withSpec(instance.getSpec()); - this.withStatus(instance.getStatus()); - } - } - - public String getApiVersion() { - return this.apiVersion; - } - - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; - } - - public boolean hasApiVersion() { - return this.apiVersion != null; - } - - public String getKind() { - return this.kind; - } - - public A withKind(String kind) { - this.kind = kind; - return (A) this; - } - - public boolean hasKind() { - return this.kind != null; - } - - public V1ObjectMeta buildMetadata() { - return this.metadata != null ? this.metadata.build() : null; - } - - public A withMetadata(V1ObjectMeta metadata) { - this._visitables.remove("metadata"); - if (metadata != null) { - this.metadata = new V1ObjectMetaBuilder(metadata); - this._visitables.get("metadata").add(this.metadata); - } else { - this.metadata = null; - this._visitables.get("metadata").remove(this.metadata); - } - return (A) this; - } - - public boolean hasMetadata() { - return this.metadata != null; - } - - public MetadataNested withNewMetadata() { - return new MetadataNested(null); - } - - public MetadataNested withNewMetadataLike(V1ObjectMeta item) { - return new MetadataNested(item); - } - - public MetadataNested editMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(null)); - } - - public MetadataNested editOrNewMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(new V1ObjectMetaBuilder().build())); - } - - public MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(item)); - } - - public V1beta2PriorityLevelConfigurationSpec buildSpec() { - return this.spec != null ? this.spec.build() : null; - } - - public A withSpec(V1beta2PriorityLevelConfigurationSpec spec) { - this._visitables.remove("spec"); - if (spec != null) { - this.spec = new V1beta2PriorityLevelConfigurationSpecBuilder(spec); - this._visitables.get("spec").add(this.spec); - } else { - this.spec = null; - this._visitables.get("spec").remove(this.spec); - } - return (A) this; - } - - public boolean hasSpec() { - return this.spec != null; - } - - public SpecNested withNewSpec() { - return new SpecNested(null); - } - - public SpecNested withNewSpecLike(V1beta2PriorityLevelConfigurationSpec item) { - return new SpecNested(item); - } - - public SpecNested editSpec() { - return withNewSpecLike(java.util.Optional.ofNullable(buildSpec()).orElse(null)); - } - - public SpecNested editOrNewSpec() { - return withNewSpecLike(java.util.Optional.ofNullable(buildSpec()).orElse(new V1beta2PriorityLevelConfigurationSpecBuilder().build())); - } - - public SpecNested editOrNewSpecLike(V1beta2PriorityLevelConfigurationSpec item) { - return withNewSpecLike(java.util.Optional.ofNullable(buildSpec()).orElse(item)); - } - - public V1beta2PriorityLevelConfigurationStatus buildStatus() { - return this.status != null ? this.status.build() : null; - } - - public A withStatus(V1beta2PriorityLevelConfigurationStatus status) { - this._visitables.remove("status"); - if (status != null) { - this.status = new V1beta2PriorityLevelConfigurationStatusBuilder(status); - this._visitables.get("status").add(this.status); - } else { - this.status = null; - this._visitables.get("status").remove(this.status); - } - return (A) this; - } - - public boolean hasStatus() { - return this.status != null; - } - - public StatusNested withNewStatus() { - return new StatusNested(null); - } - - public StatusNested withNewStatusLike(V1beta2PriorityLevelConfigurationStatus item) { - return new StatusNested(item); - } - - public StatusNested editStatus() { - return withNewStatusLike(java.util.Optional.ofNullable(buildStatus()).orElse(null)); - } - - public StatusNested editOrNewStatus() { - return withNewStatusLike(java.util.Optional.ofNullable(buildStatus()).orElse(new V1beta2PriorityLevelConfigurationStatusBuilder().build())); - } - - public StatusNested editOrNewStatusLike(V1beta2PriorityLevelConfigurationStatus item) { - return withNewStatusLike(java.util.Optional.ofNullable(buildStatus()).orElse(item)); - } - - public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; - V1beta2PriorityLevelConfigurationFluent that = (V1beta2PriorityLevelConfigurationFluent) o; - if (!java.util.Objects.equals(apiVersion, that.apiVersion)) return false; - if (!java.util.Objects.equals(kind, that.kind)) return false; - if (!java.util.Objects.equals(metadata, that.metadata)) return false; - if (!java.util.Objects.equals(spec, that.spec)) return false; - if (!java.util.Objects.equals(status, that.status)) return false; - return true; - } - - public int hashCode() { - return java.util.Objects.hash(apiVersion, kind, metadata, spec, status, super.hashCode()); - } - - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("{"); - if (apiVersion != null) { sb.append("apiVersion:"); sb.append(apiVersion + ","); } - if (kind != null) { sb.append("kind:"); sb.append(kind + ","); } - if (metadata != null) { sb.append("metadata:"); sb.append(metadata + ","); } - if (spec != null) { sb.append("spec:"); sb.append(spec + ","); } - if (status != null) { sb.append("status:"); sb.append(status); } - sb.append("}"); - return sb.toString(); - } - public class MetadataNested extends V1ObjectMetaFluent> implements Nested{ - MetadataNested(V1ObjectMeta item) { - this.builder = new V1ObjectMetaBuilder(this, item); - } - V1ObjectMetaBuilder builder; - - public N and() { - return (N) V1beta2PriorityLevelConfigurationFluent.this.withMetadata(builder.build()); - } - - public N endMetadata() { - return and(); - } - - - } - public class SpecNested extends V1beta2PriorityLevelConfigurationSpecFluent> implements Nested{ - SpecNested(V1beta2PriorityLevelConfigurationSpec item) { - this.builder = new V1beta2PriorityLevelConfigurationSpecBuilder(this, item); - } - V1beta2PriorityLevelConfigurationSpecBuilder builder; - - public N and() { - return (N) V1beta2PriorityLevelConfigurationFluent.this.withSpec(builder.build()); - } - - public N endSpec() { - return and(); - } - - - } - public class StatusNested extends V1beta2PriorityLevelConfigurationStatusFluent> implements Nested{ - StatusNested(V1beta2PriorityLevelConfigurationStatus item) { - this.builder = new V1beta2PriorityLevelConfigurationStatusBuilder(this, item); - } - V1beta2PriorityLevelConfigurationStatusBuilder builder; - - public N and() { - return (N) V1beta2PriorityLevelConfigurationFluent.this.withStatus(builder.build()); - } - - public N endStatus() { - return and(); - } - - - } - -} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2PriorityLevelConfigurationListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2PriorityLevelConfigurationListBuilder.java deleted file mode 100644 index 0aed96c3c0..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2PriorityLevelConfigurationListBuilder.java +++ /dev/null @@ -1,34 +0,0 @@ -package io.kubernetes.client.openapi.models; - -import io.kubernetes.client.fluent.VisitableBuilder; -public class V1beta2PriorityLevelConfigurationListBuilder extends V1beta2PriorityLevelConfigurationListFluent implements VisitableBuilder{ - public V1beta2PriorityLevelConfigurationListBuilder() { - this(new V1beta2PriorityLevelConfigurationList()); - } - - public V1beta2PriorityLevelConfigurationListBuilder(V1beta2PriorityLevelConfigurationListFluent fluent) { - this(fluent, new V1beta2PriorityLevelConfigurationList()); - } - - public V1beta2PriorityLevelConfigurationListBuilder(V1beta2PriorityLevelConfigurationListFluent fluent,V1beta2PriorityLevelConfigurationList instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - - public V1beta2PriorityLevelConfigurationListBuilder(V1beta2PriorityLevelConfigurationList instance) { - this.fluent = this; - this.copyInstance(instance); - } - V1beta2PriorityLevelConfigurationListFluent fluent; - - public V1beta2PriorityLevelConfigurationList build() { - V1beta2PriorityLevelConfigurationList buildable = new V1beta2PriorityLevelConfigurationList(); - buildable.setApiVersion(fluent.getApiVersion()); - buildable.setItems(fluent.buildItems()); - buildable.setKind(fluent.getKind()); - buildable.setMetadata(fluent.buildMetadata()); - return buildable; - } - - -} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2PriorityLevelConfigurationListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2PriorityLevelConfigurationListFluent.java deleted file mode 100644 index 271af8e51a..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2PriorityLevelConfigurationListFluent.java +++ /dev/null @@ -1,319 +0,0 @@ -package io.kubernetes.client.openapi.models; - -import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.Nested; -import java.util.ArrayList; -import java.lang.String; -import java.util.function.Predicate; -import io.kubernetes.client.fluent.BaseFluent; -import java.util.Iterator; -import java.util.Collection; -import java.lang.Object; -import java.util.List; - -/** - * Generated - */ -@SuppressWarnings("unchecked") -public class V1beta2PriorityLevelConfigurationListFluent> extends BaseFluent{ - public V1beta2PriorityLevelConfigurationListFluent() { - } - - public V1beta2PriorityLevelConfigurationListFluent(V1beta2PriorityLevelConfigurationList instance) { - this.copyInstance(instance); - } - private String apiVersion; - private ArrayList items; - private String kind; - private V1ListMetaBuilder metadata; - - protected void copyInstance(V1beta2PriorityLevelConfigurationList instance) { - instance = (instance != null ? instance : new V1beta2PriorityLevelConfigurationList()); - if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withItems(instance.getItems()); - this.withKind(instance.getKind()); - this.withMetadata(instance.getMetadata()); - } - } - - public String getApiVersion() { - return this.apiVersion; - } - - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; - } - - public boolean hasApiVersion() { - return this.apiVersion != null; - } - - public A addToItems(int index,V1beta2PriorityLevelConfiguration item) { - if (this.items == null) {this.items = new ArrayList();} - V1beta2PriorityLevelConfigurationBuilder builder = new V1beta2PriorityLevelConfigurationBuilder(item); - if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); items.add(builder); } else { _visitables.get("items").add(index, builder); items.add(index, builder);} - return (A)this; - } - - public A setToItems(int index,V1beta2PriorityLevelConfiguration item) { - if (this.items == null) {this.items = new ArrayList();} - V1beta2PriorityLevelConfigurationBuilder builder = new V1beta2PriorityLevelConfigurationBuilder(item); - if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); items.add(builder); } else { _visitables.get("items").set(index, builder); items.set(index, builder);} - return (A)this; - } - - public A addToItems(io.kubernetes.client.openapi.models.V1beta2PriorityLevelConfiguration... items) { - if (this.items == null) {this.items = new ArrayList();} - for (V1beta2PriorityLevelConfiguration item : items) {V1beta2PriorityLevelConfigurationBuilder builder = new V1beta2PriorityLevelConfigurationBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; - } - - public A addAllToItems(Collection items) { - if (this.items == null) {this.items = new ArrayList();} - for (V1beta2PriorityLevelConfiguration item : items) {V1beta2PriorityLevelConfigurationBuilder builder = new V1beta2PriorityLevelConfigurationBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; - } - - public A removeFromItems(io.kubernetes.client.openapi.models.V1beta2PriorityLevelConfiguration... items) { - if (this.items == null) return (A)this; - for (V1beta2PriorityLevelConfiguration item : items) {V1beta2PriorityLevelConfigurationBuilder builder = new V1beta2PriorityLevelConfigurationBuilder(item);_visitables.get("items").remove(builder); this.items.remove(builder);} return (A)this; - } - - public A removeAllFromItems(Collection items) { - if (this.items == null) return (A)this; - for (V1beta2PriorityLevelConfiguration item : items) {V1beta2PriorityLevelConfigurationBuilder builder = new V1beta2PriorityLevelConfigurationBuilder(item);_visitables.get("items").remove(builder); this.items.remove(builder);} return (A)this; - } - - public A removeMatchingFromItems(Predicate predicate) { - if (items == null) return (A) this; - final Iterator each = items.iterator(); - final List visitables = _visitables.get("items"); - while (each.hasNext()) { - V1beta2PriorityLevelConfigurationBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } - } - return (A)this; - } - - public List buildItems() { - return this.items != null ? build(items) : null; - } - - public V1beta2PriorityLevelConfiguration buildItem(int index) { - return this.items.get(index).build(); - } - - public V1beta2PriorityLevelConfiguration buildFirstItem() { - return this.items.get(0).build(); - } - - public V1beta2PriorityLevelConfiguration buildLastItem() { - return this.items.get(items.size() - 1).build(); - } - - public V1beta2PriorityLevelConfiguration buildMatchingItem(Predicate predicate) { - for (V1beta2PriorityLevelConfigurationBuilder item : items) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; - } - - public boolean hasMatchingItem(Predicate predicate) { - for (V1beta2PriorityLevelConfigurationBuilder item : items) { - if (predicate.test(item)) { - return true; - } - } - return false; - } - - public A withItems(List items) { - if (this.items != null) { - this._visitables.get("items").clear(); - } - if (items != null) { - this.items = new ArrayList(); - for (V1beta2PriorityLevelConfiguration item : items) { - this.addToItems(item); - } - } else { - this.items = null; - } - return (A) this; - } - - public A withItems(io.kubernetes.client.openapi.models.V1beta2PriorityLevelConfiguration... items) { - if (this.items != null) { - this.items.clear(); - _visitables.remove("items"); - } - if (items != null) { - for (V1beta2PriorityLevelConfiguration item : items) { - this.addToItems(item); - } - } - return (A) this; - } - - public boolean hasItems() { - return this.items != null && !this.items.isEmpty(); - } - - public ItemsNested addNewItem() { - return new ItemsNested(-1, null); - } - - public ItemsNested addNewItemLike(V1beta2PriorityLevelConfiguration item) { - return new ItemsNested(-1, item); - } - - public ItemsNested setNewItemLike(int index,V1beta2PriorityLevelConfiguration item) { - return new ItemsNested(index, item); - } - - public ItemsNested editItem(int index) { - if (items.size() <= index) throw new RuntimeException("Can't edit items. Index exceeds size."); - return setNewItemLike(index, buildItem(index)); - } - - public ItemsNested editFirstItem() { - if (items.size() == 0) throw new RuntimeException("Can't edit first items. The list is empty."); - return setNewItemLike(0, buildItem(0)); - } - - public ItemsNested editLastItem() { - int index = items.size() - 1; - if (index < 0) throw new RuntimeException("Can't edit last items. The list is empty."); - return setNewItemLike(index, buildItem(index)); - } - - public ItemsNested editMatchingItem(Predicate predicate) { - int index = -1; - for (int i=0;i withNewMetadata() { - return new MetadataNested(null); - } - - public MetadataNested withNewMetadataLike(V1ListMeta item) { - return new MetadataNested(item); - } - - public MetadataNested editMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(null)); - } - - public MetadataNested editOrNewMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(new V1ListMetaBuilder().build())); - } - - public MetadataNested editOrNewMetadataLike(V1ListMeta item) { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(item)); - } - - public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; - V1beta2PriorityLevelConfigurationListFluent that = (V1beta2PriorityLevelConfigurationListFluent) o; - if (!java.util.Objects.equals(apiVersion, that.apiVersion)) return false; - if (!java.util.Objects.equals(items, that.items)) return false; - if (!java.util.Objects.equals(kind, that.kind)) return false; - if (!java.util.Objects.equals(metadata, that.metadata)) return false; - return true; - } - - public int hashCode() { - return java.util.Objects.hash(apiVersion, items, kind, metadata, super.hashCode()); - } - - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("{"); - if (apiVersion != null) { sb.append("apiVersion:"); sb.append(apiVersion + ","); } - if (items != null && !items.isEmpty()) { sb.append("items:"); sb.append(items + ","); } - if (kind != null) { sb.append("kind:"); sb.append(kind + ","); } - if (metadata != null) { sb.append("metadata:"); sb.append(metadata); } - sb.append("}"); - return sb.toString(); - } - public class ItemsNested extends V1beta2PriorityLevelConfigurationFluent> implements Nested{ - ItemsNested(int index,V1beta2PriorityLevelConfiguration item) { - this.index = index; - this.builder = new V1beta2PriorityLevelConfigurationBuilder(this, item); - } - V1beta2PriorityLevelConfigurationBuilder builder; - int index; - - public N and() { - return (N) V1beta2PriorityLevelConfigurationListFluent.this.setToItems(index,builder.build()); - } - - public N endItem() { - return and(); - } - - - } - public class MetadataNested extends V1ListMetaFluent> implements Nested{ - MetadataNested(V1ListMeta item) { - this.builder = new V1ListMetaBuilder(this, item); - } - V1ListMetaBuilder builder; - - public N and() { - return (N) V1beta2PriorityLevelConfigurationListFluent.this.withMetadata(builder.build()); - } - - public N endMetadata() { - return and(); - } - - - } - -} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2PriorityLevelConfigurationReferenceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2PriorityLevelConfigurationReferenceBuilder.java deleted file mode 100644 index 1560cb83b4..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2PriorityLevelConfigurationReferenceBuilder.java +++ /dev/null @@ -1,31 +0,0 @@ -package io.kubernetes.client.openapi.models; - -import io.kubernetes.client.fluent.VisitableBuilder; -public class V1beta2PriorityLevelConfigurationReferenceBuilder extends V1beta2PriorityLevelConfigurationReferenceFluent implements VisitableBuilder{ - public V1beta2PriorityLevelConfigurationReferenceBuilder() { - this(new V1beta2PriorityLevelConfigurationReference()); - } - - public V1beta2PriorityLevelConfigurationReferenceBuilder(V1beta2PriorityLevelConfigurationReferenceFluent fluent) { - this(fluent, new V1beta2PriorityLevelConfigurationReference()); - } - - public V1beta2PriorityLevelConfigurationReferenceBuilder(V1beta2PriorityLevelConfigurationReferenceFluent fluent,V1beta2PriorityLevelConfigurationReference instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - - public V1beta2PriorityLevelConfigurationReferenceBuilder(V1beta2PriorityLevelConfigurationReference instance) { - this.fluent = this; - this.copyInstance(instance); - } - V1beta2PriorityLevelConfigurationReferenceFluent fluent; - - public V1beta2PriorityLevelConfigurationReference build() { - V1beta2PriorityLevelConfigurationReference buildable = new V1beta2PriorityLevelConfigurationReference(); - buildable.setName(fluent.getName()); - return buildable; - } - - -} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2PriorityLevelConfigurationReferenceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2PriorityLevelConfigurationReferenceFluent.java deleted file mode 100644 index 941fa233ef..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2PriorityLevelConfigurationReferenceFluent.java +++ /dev/null @@ -1,63 +0,0 @@ -package io.kubernetes.client.openapi.models; - -import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.BaseFluent; -import java.lang.Object; -import java.lang.String; - -/** - * Generated - */ -@SuppressWarnings("unchecked") -public class V1beta2PriorityLevelConfigurationReferenceFluent> extends BaseFluent{ - public V1beta2PriorityLevelConfigurationReferenceFluent() { - } - - public V1beta2PriorityLevelConfigurationReferenceFluent(V1beta2PriorityLevelConfigurationReference instance) { - this.copyInstance(instance); - } - private String name; - - protected void copyInstance(V1beta2PriorityLevelConfigurationReference instance) { - instance = (instance != null ? instance : new V1beta2PriorityLevelConfigurationReference()); - if (instance != null) { - this.withName(instance.getName()); - } - } - - public String getName() { - return this.name; - } - - public A withName(String name) { - this.name = name; - return (A) this; - } - - public boolean hasName() { - return this.name != null; - } - - public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; - V1beta2PriorityLevelConfigurationReferenceFluent that = (V1beta2PriorityLevelConfigurationReferenceFluent) o; - if (!java.util.Objects.equals(name, that.name)) return false; - return true; - } - - public int hashCode() { - return java.util.Objects.hash(name, super.hashCode()); - } - - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("{"); - if (name != null) { sb.append("name:"); sb.append(name); } - sb.append("}"); - return sb.toString(); - } - - -} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2PriorityLevelConfigurationSpecBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2PriorityLevelConfigurationSpecBuilder.java deleted file mode 100644 index 0c0e8491fe..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2PriorityLevelConfigurationSpecBuilder.java +++ /dev/null @@ -1,33 +0,0 @@ -package io.kubernetes.client.openapi.models; - -import io.kubernetes.client.fluent.VisitableBuilder; -public class V1beta2PriorityLevelConfigurationSpecBuilder extends V1beta2PriorityLevelConfigurationSpecFluent implements VisitableBuilder{ - public V1beta2PriorityLevelConfigurationSpecBuilder() { - this(new V1beta2PriorityLevelConfigurationSpec()); - } - - public V1beta2PriorityLevelConfigurationSpecBuilder(V1beta2PriorityLevelConfigurationSpecFluent fluent) { - this(fluent, new V1beta2PriorityLevelConfigurationSpec()); - } - - public V1beta2PriorityLevelConfigurationSpecBuilder(V1beta2PriorityLevelConfigurationSpecFluent fluent,V1beta2PriorityLevelConfigurationSpec instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - - public V1beta2PriorityLevelConfigurationSpecBuilder(V1beta2PriorityLevelConfigurationSpec instance) { - this.fluent = this; - this.copyInstance(instance); - } - V1beta2PriorityLevelConfigurationSpecFluent fluent; - - public V1beta2PriorityLevelConfigurationSpec build() { - V1beta2PriorityLevelConfigurationSpec buildable = new V1beta2PriorityLevelConfigurationSpec(); - buildable.setExempt(fluent.buildExempt()); - buildable.setLimited(fluent.buildLimited()); - buildable.setType(fluent.getType()); - return buildable; - } - - -} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2PriorityLevelConfigurationSpecFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2PriorityLevelConfigurationSpecFluent.java deleted file mode 100644 index ffb4829dd8..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2PriorityLevelConfigurationSpecFluent.java +++ /dev/null @@ -1,183 +0,0 @@ -package io.kubernetes.client.openapi.models; - -import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.Nested; -import java.lang.String; -import io.kubernetes.client.fluent.BaseFluent; -import java.lang.Object; - -/** - * Generated - */ -@SuppressWarnings("unchecked") -public class V1beta2PriorityLevelConfigurationSpecFluent> extends BaseFluent{ - public V1beta2PriorityLevelConfigurationSpecFluent() { - } - - public V1beta2PriorityLevelConfigurationSpecFluent(V1beta2PriorityLevelConfigurationSpec instance) { - this.copyInstance(instance); - } - private V1beta2ExemptPriorityLevelConfigurationBuilder exempt; - private V1beta2LimitedPriorityLevelConfigurationBuilder limited; - private String type; - - protected void copyInstance(V1beta2PriorityLevelConfigurationSpec instance) { - instance = (instance != null ? instance : new V1beta2PriorityLevelConfigurationSpec()); - if (instance != null) { - this.withExempt(instance.getExempt()); - this.withLimited(instance.getLimited()); - this.withType(instance.getType()); - } - } - - public V1beta2ExemptPriorityLevelConfiguration buildExempt() { - return this.exempt != null ? this.exempt.build() : null; - } - - public A withExempt(V1beta2ExemptPriorityLevelConfiguration exempt) { - this._visitables.remove("exempt"); - if (exempt != null) { - this.exempt = new V1beta2ExemptPriorityLevelConfigurationBuilder(exempt); - this._visitables.get("exempt").add(this.exempt); - } else { - this.exempt = null; - this._visitables.get("exempt").remove(this.exempt); - } - return (A) this; - } - - public boolean hasExempt() { - return this.exempt != null; - } - - public ExemptNested withNewExempt() { - return new ExemptNested(null); - } - - public ExemptNested withNewExemptLike(V1beta2ExemptPriorityLevelConfiguration item) { - return new ExemptNested(item); - } - - public ExemptNested editExempt() { - return withNewExemptLike(java.util.Optional.ofNullable(buildExempt()).orElse(null)); - } - - public ExemptNested editOrNewExempt() { - return withNewExemptLike(java.util.Optional.ofNullable(buildExempt()).orElse(new V1beta2ExemptPriorityLevelConfigurationBuilder().build())); - } - - public ExemptNested editOrNewExemptLike(V1beta2ExemptPriorityLevelConfiguration item) { - return withNewExemptLike(java.util.Optional.ofNullable(buildExempt()).orElse(item)); - } - - public V1beta2LimitedPriorityLevelConfiguration buildLimited() { - return this.limited != null ? this.limited.build() : null; - } - - public A withLimited(V1beta2LimitedPriorityLevelConfiguration limited) { - this._visitables.remove("limited"); - if (limited != null) { - this.limited = new V1beta2LimitedPriorityLevelConfigurationBuilder(limited); - this._visitables.get("limited").add(this.limited); - } else { - this.limited = null; - this._visitables.get("limited").remove(this.limited); - } - return (A) this; - } - - public boolean hasLimited() { - return this.limited != null; - } - - public LimitedNested withNewLimited() { - return new LimitedNested(null); - } - - public LimitedNested withNewLimitedLike(V1beta2LimitedPriorityLevelConfiguration item) { - return new LimitedNested(item); - } - - public LimitedNested editLimited() { - return withNewLimitedLike(java.util.Optional.ofNullable(buildLimited()).orElse(null)); - } - - public LimitedNested editOrNewLimited() { - return withNewLimitedLike(java.util.Optional.ofNullable(buildLimited()).orElse(new V1beta2LimitedPriorityLevelConfigurationBuilder().build())); - } - - public LimitedNested editOrNewLimitedLike(V1beta2LimitedPriorityLevelConfiguration item) { - return withNewLimitedLike(java.util.Optional.ofNullable(buildLimited()).orElse(item)); - } - - public String getType() { - return this.type; - } - - public A withType(String type) { - this.type = type; - return (A) this; - } - - public boolean hasType() { - return this.type != null; - } - - public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; - V1beta2PriorityLevelConfigurationSpecFluent that = (V1beta2PriorityLevelConfigurationSpecFluent) o; - if (!java.util.Objects.equals(exempt, that.exempt)) return false; - if (!java.util.Objects.equals(limited, that.limited)) return false; - if (!java.util.Objects.equals(type, that.type)) return false; - return true; - } - - public int hashCode() { - return java.util.Objects.hash(exempt, limited, type, super.hashCode()); - } - - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("{"); - if (exempt != null) { sb.append("exempt:"); sb.append(exempt + ","); } - if (limited != null) { sb.append("limited:"); sb.append(limited + ","); } - if (type != null) { sb.append("type:"); sb.append(type); } - sb.append("}"); - return sb.toString(); - } - public class ExemptNested extends V1beta2ExemptPriorityLevelConfigurationFluent> implements Nested{ - ExemptNested(V1beta2ExemptPriorityLevelConfiguration item) { - this.builder = new V1beta2ExemptPriorityLevelConfigurationBuilder(this, item); - } - V1beta2ExemptPriorityLevelConfigurationBuilder builder; - - public N and() { - return (N) V1beta2PriorityLevelConfigurationSpecFluent.this.withExempt(builder.build()); - } - - public N endExempt() { - return and(); - } - - - } - public class LimitedNested extends V1beta2LimitedPriorityLevelConfigurationFluent> implements Nested{ - LimitedNested(V1beta2LimitedPriorityLevelConfiguration item) { - this.builder = new V1beta2LimitedPriorityLevelConfigurationBuilder(this, item); - } - V1beta2LimitedPriorityLevelConfigurationBuilder builder; - - public N and() { - return (N) V1beta2PriorityLevelConfigurationSpecFluent.this.withLimited(builder.build()); - } - - public N endLimited() { - return and(); - } - - - } - -} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2PriorityLevelConfigurationStatusBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2PriorityLevelConfigurationStatusBuilder.java deleted file mode 100644 index cd4a2b36e4..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2PriorityLevelConfigurationStatusBuilder.java +++ /dev/null @@ -1,31 +0,0 @@ -package io.kubernetes.client.openapi.models; - -import io.kubernetes.client.fluent.VisitableBuilder; -public class V1beta2PriorityLevelConfigurationStatusBuilder extends V1beta2PriorityLevelConfigurationStatusFluent implements VisitableBuilder{ - public V1beta2PriorityLevelConfigurationStatusBuilder() { - this(new V1beta2PriorityLevelConfigurationStatus()); - } - - public V1beta2PriorityLevelConfigurationStatusBuilder(V1beta2PriorityLevelConfigurationStatusFluent fluent) { - this(fluent, new V1beta2PriorityLevelConfigurationStatus()); - } - - public V1beta2PriorityLevelConfigurationStatusBuilder(V1beta2PriorityLevelConfigurationStatusFluent fluent,V1beta2PriorityLevelConfigurationStatus instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - - public V1beta2PriorityLevelConfigurationStatusBuilder(V1beta2PriorityLevelConfigurationStatus instance) { - this.fluent = this; - this.copyInstance(instance); - } - V1beta2PriorityLevelConfigurationStatusFluent fluent; - - public V1beta2PriorityLevelConfigurationStatus build() { - V1beta2PriorityLevelConfigurationStatus buildable = new V1beta2PriorityLevelConfigurationStatus(); - buildable.setConditions(fluent.buildConditions()); - return buildable; - } - - -} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2PriorityLevelConfigurationStatusFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2PriorityLevelConfigurationStatusFluent.java deleted file mode 100644 index 48689b55c2..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2PriorityLevelConfigurationStatusFluent.java +++ /dev/null @@ -1,225 +0,0 @@ -package io.kubernetes.client.openapi.models; - -import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.Nested; -import java.util.ArrayList; -import java.lang.String; -import java.util.function.Predicate; -import io.kubernetes.client.fluent.BaseFluent; -import java.util.Iterator; -import java.util.Collection; -import java.lang.Object; -import java.util.List; - -/** - * Generated - */ -@SuppressWarnings("unchecked") -public class V1beta2PriorityLevelConfigurationStatusFluent> extends BaseFluent{ - public V1beta2PriorityLevelConfigurationStatusFluent() { - } - - public V1beta2PriorityLevelConfigurationStatusFluent(V1beta2PriorityLevelConfigurationStatus instance) { - this.copyInstance(instance); - } - private ArrayList conditions; - - protected void copyInstance(V1beta2PriorityLevelConfigurationStatus instance) { - instance = (instance != null ? instance : new V1beta2PriorityLevelConfigurationStatus()); - if (instance != null) { - this.withConditions(instance.getConditions()); - } - } - - public A addToConditions(int index,V1beta2PriorityLevelConfigurationCondition item) { - if (this.conditions == null) {this.conditions = new ArrayList();} - V1beta2PriorityLevelConfigurationConditionBuilder builder = new V1beta2PriorityLevelConfigurationConditionBuilder(item); - if (index < 0 || index >= conditions.size()) { _visitables.get("conditions").add(builder); conditions.add(builder); } else { _visitables.get("conditions").add(index, builder); conditions.add(index, builder);} - return (A)this; - } - - public A setToConditions(int index,V1beta2PriorityLevelConfigurationCondition item) { - if (this.conditions == null) {this.conditions = new ArrayList();} - V1beta2PriorityLevelConfigurationConditionBuilder builder = new V1beta2PriorityLevelConfigurationConditionBuilder(item); - if (index < 0 || index >= conditions.size()) { _visitables.get("conditions").add(builder); conditions.add(builder); } else { _visitables.get("conditions").set(index, builder); conditions.set(index, builder);} - return (A)this; - } - - public A addToConditions(io.kubernetes.client.openapi.models.V1beta2PriorityLevelConfigurationCondition... items) { - if (this.conditions == null) {this.conditions = new ArrayList();} - for (V1beta2PriorityLevelConfigurationCondition item : items) {V1beta2PriorityLevelConfigurationConditionBuilder builder = new V1beta2PriorityLevelConfigurationConditionBuilder(item);_visitables.get("conditions").add(builder);this.conditions.add(builder);} return (A)this; - } - - public A addAllToConditions(Collection items) { - if (this.conditions == null) {this.conditions = new ArrayList();} - for (V1beta2PriorityLevelConfigurationCondition item : items) {V1beta2PriorityLevelConfigurationConditionBuilder builder = new V1beta2PriorityLevelConfigurationConditionBuilder(item);_visitables.get("conditions").add(builder);this.conditions.add(builder);} return (A)this; - } - - public A removeFromConditions(io.kubernetes.client.openapi.models.V1beta2PriorityLevelConfigurationCondition... items) { - if (this.conditions == null) return (A)this; - for (V1beta2PriorityLevelConfigurationCondition item : items) {V1beta2PriorityLevelConfigurationConditionBuilder builder = new V1beta2PriorityLevelConfigurationConditionBuilder(item);_visitables.get("conditions").remove(builder); this.conditions.remove(builder);} return (A)this; - } - - public A removeAllFromConditions(Collection items) { - if (this.conditions == null) return (A)this; - for (V1beta2PriorityLevelConfigurationCondition item : items) {V1beta2PriorityLevelConfigurationConditionBuilder builder = new V1beta2PriorityLevelConfigurationConditionBuilder(item);_visitables.get("conditions").remove(builder); this.conditions.remove(builder);} return (A)this; - } - - public A removeMatchingFromConditions(Predicate predicate) { - if (conditions == null) return (A) this; - final Iterator each = conditions.iterator(); - final List visitables = _visitables.get("conditions"); - while (each.hasNext()) { - V1beta2PriorityLevelConfigurationConditionBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } - } - return (A)this; - } - - public List buildConditions() { - return this.conditions != null ? build(conditions) : null; - } - - public V1beta2PriorityLevelConfigurationCondition buildCondition(int index) { - return this.conditions.get(index).build(); - } - - public V1beta2PriorityLevelConfigurationCondition buildFirstCondition() { - return this.conditions.get(0).build(); - } - - public V1beta2PriorityLevelConfigurationCondition buildLastCondition() { - return this.conditions.get(conditions.size() - 1).build(); - } - - public V1beta2PriorityLevelConfigurationCondition buildMatchingCondition(Predicate predicate) { - for (V1beta2PriorityLevelConfigurationConditionBuilder item : conditions) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; - } - - public boolean hasMatchingCondition(Predicate predicate) { - for (V1beta2PriorityLevelConfigurationConditionBuilder item : conditions) { - if (predicate.test(item)) { - return true; - } - } - return false; - } - - public A withConditions(List conditions) { - if (this.conditions != null) { - this._visitables.get("conditions").clear(); - } - if (conditions != null) { - this.conditions = new ArrayList(); - for (V1beta2PriorityLevelConfigurationCondition item : conditions) { - this.addToConditions(item); - } - } else { - this.conditions = null; - } - return (A) this; - } - - public A withConditions(io.kubernetes.client.openapi.models.V1beta2PriorityLevelConfigurationCondition... conditions) { - if (this.conditions != null) { - this.conditions.clear(); - _visitables.remove("conditions"); - } - if (conditions != null) { - for (V1beta2PriorityLevelConfigurationCondition item : conditions) { - this.addToConditions(item); - } - } - return (A) this; - } - - public boolean hasConditions() { - return this.conditions != null && !this.conditions.isEmpty(); - } - - public ConditionsNested addNewCondition() { - return new ConditionsNested(-1, null); - } - - public ConditionsNested addNewConditionLike(V1beta2PriorityLevelConfigurationCondition item) { - return new ConditionsNested(-1, item); - } - - public ConditionsNested setNewConditionLike(int index,V1beta2PriorityLevelConfigurationCondition item) { - return new ConditionsNested(index, item); - } - - public ConditionsNested editCondition(int index) { - if (conditions.size() <= index) throw new RuntimeException("Can't edit conditions. Index exceeds size."); - return setNewConditionLike(index, buildCondition(index)); - } - - public ConditionsNested editFirstCondition() { - if (conditions.size() == 0) throw new RuntimeException("Can't edit first conditions. The list is empty."); - return setNewConditionLike(0, buildCondition(0)); - } - - public ConditionsNested editLastCondition() { - int index = conditions.size() - 1; - if (index < 0) throw new RuntimeException("Can't edit last conditions. The list is empty."); - return setNewConditionLike(index, buildCondition(index)); - } - - public ConditionsNested editMatchingCondition(Predicate predicate) { - int index = -1; - for (int i=0;i extends V1beta2PriorityLevelConfigurationConditionFluent> implements Nested{ - ConditionsNested(int index,V1beta2PriorityLevelConfigurationCondition item) { - this.index = index; - this.builder = new V1beta2PriorityLevelConfigurationConditionBuilder(this, item); - } - V1beta2PriorityLevelConfigurationConditionBuilder builder; - int index; - - public N and() { - return (N) V1beta2PriorityLevelConfigurationStatusFluent.this.setToConditions(index,builder.build()); - } - - public N endCondition() { - return and(); - } - - - } - -} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2QueuingConfigurationBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2QueuingConfigurationBuilder.java deleted file mode 100644 index 5161439d2a..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2QueuingConfigurationBuilder.java +++ /dev/null @@ -1,33 +0,0 @@ -package io.kubernetes.client.openapi.models; - -import io.kubernetes.client.fluent.VisitableBuilder; -public class V1beta2QueuingConfigurationBuilder extends V1beta2QueuingConfigurationFluent implements VisitableBuilder{ - public V1beta2QueuingConfigurationBuilder() { - this(new V1beta2QueuingConfiguration()); - } - - public V1beta2QueuingConfigurationBuilder(V1beta2QueuingConfigurationFluent fluent) { - this(fluent, new V1beta2QueuingConfiguration()); - } - - public V1beta2QueuingConfigurationBuilder(V1beta2QueuingConfigurationFluent fluent,V1beta2QueuingConfiguration instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - - public V1beta2QueuingConfigurationBuilder(V1beta2QueuingConfiguration instance) { - this.fluent = this; - this.copyInstance(instance); - } - V1beta2QueuingConfigurationFluent fluent; - - public V1beta2QueuingConfiguration build() { - V1beta2QueuingConfiguration buildable = new V1beta2QueuingConfiguration(); - buildable.setHandSize(fluent.getHandSize()); - buildable.setQueueLengthLimit(fluent.getQueueLengthLimit()); - buildable.setQueues(fluent.getQueues()); - return buildable; - } - - -} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2QueuingConfigurationFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2QueuingConfigurationFluent.java deleted file mode 100644 index 0155d30607..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2QueuingConfigurationFluent.java +++ /dev/null @@ -1,98 +0,0 @@ -package io.kubernetes.client.openapi.models; - -import java.lang.Integer; -import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.BaseFluent; -import java.lang.Object; -import java.lang.String; - -/** - * Generated - */ -@SuppressWarnings("unchecked") -public class V1beta2QueuingConfigurationFluent> extends BaseFluent{ - public V1beta2QueuingConfigurationFluent() { - } - - public V1beta2QueuingConfigurationFluent(V1beta2QueuingConfiguration instance) { - this.copyInstance(instance); - } - private Integer handSize; - private Integer queueLengthLimit; - private Integer queues; - - protected void copyInstance(V1beta2QueuingConfiguration instance) { - instance = (instance != null ? instance : new V1beta2QueuingConfiguration()); - if (instance != null) { - this.withHandSize(instance.getHandSize()); - this.withQueueLengthLimit(instance.getQueueLengthLimit()); - this.withQueues(instance.getQueues()); - } - } - - public Integer getHandSize() { - return this.handSize; - } - - public A withHandSize(Integer handSize) { - this.handSize = handSize; - return (A) this; - } - - public boolean hasHandSize() { - return this.handSize != null; - } - - public Integer getQueueLengthLimit() { - return this.queueLengthLimit; - } - - public A withQueueLengthLimit(Integer queueLengthLimit) { - this.queueLengthLimit = queueLengthLimit; - return (A) this; - } - - public boolean hasQueueLengthLimit() { - return this.queueLengthLimit != null; - } - - public Integer getQueues() { - return this.queues; - } - - public A withQueues(Integer queues) { - this.queues = queues; - return (A) this; - } - - public boolean hasQueues() { - return this.queues != null; - } - - public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; - V1beta2QueuingConfigurationFluent that = (V1beta2QueuingConfigurationFluent) o; - if (!java.util.Objects.equals(handSize, that.handSize)) return false; - if (!java.util.Objects.equals(queueLengthLimit, that.queueLengthLimit)) return false; - if (!java.util.Objects.equals(queues, that.queues)) return false; - return true; - } - - public int hashCode() { - return java.util.Objects.hash(handSize, queueLengthLimit, queues, super.hashCode()); - } - - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("{"); - if (handSize != null) { sb.append("handSize:"); sb.append(handSize + ","); } - if (queueLengthLimit != null) { sb.append("queueLengthLimit:"); sb.append(queueLengthLimit + ","); } - if (queues != null) { sb.append("queues:"); sb.append(queues); } - sb.append("}"); - return sb.toString(); - } - - -} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceClaimBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceClaimBuilder.java new file mode 100644 index 0000000000..817d6655ed --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceClaimBuilder.java @@ -0,0 +1,35 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +public class V1beta2ResourceClaimBuilder extends V1beta2ResourceClaimFluent implements VisitableBuilder{ + public V1beta2ResourceClaimBuilder() { + this(new V1beta2ResourceClaim()); + } + + public V1beta2ResourceClaimBuilder(V1beta2ResourceClaimFluent fluent) { + this(fluent, new V1beta2ResourceClaim()); + } + + public V1beta2ResourceClaimBuilder(V1beta2ResourceClaimFluent fluent,V1beta2ResourceClaim instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1beta2ResourceClaimBuilder(V1beta2ResourceClaim instance) { + this.fluent = this; + this.copyInstance(instance); + } + V1beta2ResourceClaimFluent fluent; + + public V1beta2ResourceClaim build() { + V1beta2ResourceClaim buildable = new V1beta2ResourceClaim(); + buildable.setApiVersion(fluent.getApiVersion()); + buildable.setKind(fluent.getKind()); + buildable.setMetadata(fluent.buildMetadata()); + buildable.setSpec(fluent.buildSpec()); + buildable.setStatus(fluent.buildStatus()); + return buildable; + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceClaimConsumerReferenceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceClaimConsumerReferenceBuilder.java new file mode 100644 index 0000000000..8b104bf1f3 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceClaimConsumerReferenceBuilder.java @@ -0,0 +1,34 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +public class V1beta2ResourceClaimConsumerReferenceBuilder extends V1beta2ResourceClaimConsumerReferenceFluent implements VisitableBuilder{ + public V1beta2ResourceClaimConsumerReferenceBuilder() { + this(new V1beta2ResourceClaimConsumerReference()); + } + + public V1beta2ResourceClaimConsumerReferenceBuilder(V1beta2ResourceClaimConsumerReferenceFluent fluent) { + this(fluent, new V1beta2ResourceClaimConsumerReference()); + } + + public V1beta2ResourceClaimConsumerReferenceBuilder(V1beta2ResourceClaimConsumerReferenceFluent fluent,V1beta2ResourceClaimConsumerReference instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1beta2ResourceClaimConsumerReferenceBuilder(V1beta2ResourceClaimConsumerReference instance) { + this.fluent = this; + this.copyInstance(instance); + } + V1beta2ResourceClaimConsumerReferenceFluent fluent; + + public V1beta2ResourceClaimConsumerReference build() { + V1beta2ResourceClaimConsumerReference buildable = new V1beta2ResourceClaimConsumerReference(); + buildable.setApiGroup(fluent.getApiGroup()); + buildable.setName(fluent.getName()); + buildable.setResource(fluent.getResource()); + buildable.setUid(fluent.getUid()); + return buildable; + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceClaimConsumerReferenceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceClaimConsumerReferenceFluent.java new file mode 100644 index 0000000000..f3bdf6b209 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceClaimConsumerReferenceFluent.java @@ -0,0 +1,114 @@ +package io.kubernetes.client.openapi.models; + +import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Object; +import java.lang.String; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1beta2ResourceClaimConsumerReferenceFluent> extends BaseFluent{ + public V1beta2ResourceClaimConsumerReferenceFluent() { + } + + public V1beta2ResourceClaimConsumerReferenceFluent(V1beta2ResourceClaimConsumerReference instance) { + this.copyInstance(instance); + } + private String apiGroup; + private String name; + private String resource; + private String uid; + + protected void copyInstance(V1beta2ResourceClaimConsumerReference instance) { + instance = (instance != null ? instance : new V1beta2ResourceClaimConsumerReference()); + if (instance != null) { + this.withApiGroup(instance.getApiGroup()); + this.withName(instance.getName()); + this.withResource(instance.getResource()); + this.withUid(instance.getUid()); + } + } + + public String getApiGroup() { + return this.apiGroup; + } + + public A withApiGroup(String apiGroup) { + this.apiGroup = apiGroup; + return (A) this; + } + + public boolean hasApiGroup() { + return this.apiGroup != null; + } + + public String getName() { + return this.name; + } + + public A withName(String name) { + this.name = name; + return (A) this; + } + + public boolean hasName() { + return this.name != null; + } + + public String getResource() { + return this.resource; + } + + public A withResource(String resource) { + this.resource = resource; + return (A) this; + } + + public boolean hasResource() { + return this.resource != null; + } + + public String getUid() { + return this.uid; + } + + public A withUid(String uid) { + this.uid = uid; + return (A) this; + } + + public boolean hasUid() { + return this.uid != null; + } + + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + if (!super.equals(o)) return false; + V1beta2ResourceClaimConsumerReferenceFluent that = (V1beta2ResourceClaimConsumerReferenceFluent) o; + if (!java.util.Objects.equals(apiGroup, that.apiGroup)) return false; + if (!java.util.Objects.equals(name, that.name)) return false; + if (!java.util.Objects.equals(resource, that.resource)) return false; + if (!java.util.Objects.equals(uid, that.uid)) return false; + return true; + } + + public int hashCode() { + return java.util.Objects.hash(apiGroup, name, resource, uid, super.hashCode()); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (apiGroup != null) { sb.append("apiGroup:"); sb.append(apiGroup + ","); } + if (name != null) { sb.append("name:"); sb.append(name + ","); } + if (resource != null) { sb.append("resource:"); sb.append(resource + ","); } + if (uid != null) { sb.append("uid:"); sb.append(uid); } + sb.append("}"); + return sb.toString(); + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceClaimFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceClaimFluent.java new file mode 100644 index 0000000000..79baaba65c --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceClaimFluent.java @@ -0,0 +1,260 @@ +package io.kubernetes.client.openapi.models; + +import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.Nested; +import java.lang.String; +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Object; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1beta2ResourceClaimFluent> extends BaseFluent{ + public V1beta2ResourceClaimFluent() { + } + + public V1beta2ResourceClaimFluent(V1beta2ResourceClaim instance) { + this.copyInstance(instance); + } + private String apiVersion; + private String kind; + private V1ObjectMetaBuilder metadata; + private V1beta2ResourceClaimSpecBuilder spec; + private V1beta2ResourceClaimStatusBuilder status; + + protected void copyInstance(V1beta2ResourceClaim instance) { + instance = (instance != null ? instance : new V1beta2ResourceClaim()); + if (instance != null) { + this.withApiVersion(instance.getApiVersion()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); + this.withSpec(instance.getSpec()); + this.withStatus(instance.getStatus()); + } + } + + public String getApiVersion() { + return this.apiVersion; + } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + + public boolean hasApiVersion() { + return this.apiVersion != null; + } + + public String getKind() { + return this.kind; + } + + public A withKind(String kind) { + this.kind = kind; + return (A) this; + } + + public boolean hasKind() { + return this.kind != null; + } + + public V1ObjectMeta buildMetadata() { + return this.metadata != null ? this.metadata.build() : null; + } + + public A withMetadata(V1ObjectMeta metadata) { + this._visitables.remove("metadata"); + if (metadata != null) { + this.metadata = new V1ObjectMetaBuilder(metadata); + this._visitables.get("metadata").add(this.metadata); + } else { + this.metadata = null; + this._visitables.get("metadata").remove(this.metadata); + } + return (A) this; + } + + public boolean hasMetadata() { + return this.metadata != null; + } + + public MetadataNested withNewMetadata() { + return new MetadataNested(null); + } + + public MetadataNested withNewMetadataLike(V1ObjectMeta item) { + return new MetadataNested(item); + } + + public MetadataNested editMetadata() { + return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(null)); + } + + public MetadataNested editOrNewMetadata() { + return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(new V1ObjectMetaBuilder().build())); + } + + public MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { + return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(item)); + } + + public V1beta2ResourceClaimSpec buildSpec() { + return this.spec != null ? this.spec.build() : null; + } + + public A withSpec(V1beta2ResourceClaimSpec spec) { + this._visitables.remove("spec"); + if (spec != null) { + this.spec = new V1beta2ResourceClaimSpecBuilder(spec); + this._visitables.get("spec").add(this.spec); + } else { + this.spec = null; + this._visitables.get("spec").remove(this.spec); + } + return (A) this; + } + + public boolean hasSpec() { + return this.spec != null; + } + + public SpecNested withNewSpec() { + return new SpecNested(null); + } + + public SpecNested withNewSpecLike(V1beta2ResourceClaimSpec item) { + return new SpecNested(item); + } + + public SpecNested editSpec() { + return withNewSpecLike(java.util.Optional.ofNullable(buildSpec()).orElse(null)); + } + + public SpecNested editOrNewSpec() { + return withNewSpecLike(java.util.Optional.ofNullable(buildSpec()).orElse(new V1beta2ResourceClaimSpecBuilder().build())); + } + + public SpecNested editOrNewSpecLike(V1beta2ResourceClaimSpec item) { + return withNewSpecLike(java.util.Optional.ofNullable(buildSpec()).orElse(item)); + } + + public V1beta2ResourceClaimStatus buildStatus() { + return this.status != null ? this.status.build() : null; + } + + public A withStatus(V1beta2ResourceClaimStatus status) { + this._visitables.remove("status"); + if (status != null) { + this.status = new V1beta2ResourceClaimStatusBuilder(status); + this._visitables.get("status").add(this.status); + } else { + this.status = null; + this._visitables.get("status").remove(this.status); + } + return (A) this; + } + + public boolean hasStatus() { + return this.status != null; + } + + public StatusNested withNewStatus() { + return new StatusNested(null); + } + + public StatusNested withNewStatusLike(V1beta2ResourceClaimStatus item) { + return new StatusNested(item); + } + + public StatusNested editStatus() { + return withNewStatusLike(java.util.Optional.ofNullable(buildStatus()).orElse(null)); + } + + public StatusNested editOrNewStatus() { + return withNewStatusLike(java.util.Optional.ofNullable(buildStatus()).orElse(new V1beta2ResourceClaimStatusBuilder().build())); + } + + public StatusNested editOrNewStatusLike(V1beta2ResourceClaimStatus item) { + return withNewStatusLike(java.util.Optional.ofNullable(buildStatus()).orElse(item)); + } + + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + if (!super.equals(o)) return false; + V1beta2ResourceClaimFluent that = (V1beta2ResourceClaimFluent) o; + if (!java.util.Objects.equals(apiVersion, that.apiVersion)) return false; + if (!java.util.Objects.equals(kind, that.kind)) return false; + if (!java.util.Objects.equals(metadata, that.metadata)) return false; + if (!java.util.Objects.equals(spec, that.spec)) return false; + if (!java.util.Objects.equals(status, that.status)) return false; + return true; + } + + public int hashCode() { + return java.util.Objects.hash(apiVersion, kind, metadata, spec, status, super.hashCode()); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (apiVersion != null) { sb.append("apiVersion:"); sb.append(apiVersion + ","); } + if (kind != null) { sb.append("kind:"); sb.append(kind + ","); } + if (metadata != null) { sb.append("metadata:"); sb.append(metadata + ","); } + if (spec != null) { sb.append("spec:"); sb.append(spec + ","); } + if (status != null) { sb.append("status:"); sb.append(status); } + sb.append("}"); + return sb.toString(); + } + public class MetadataNested extends V1ObjectMetaFluent> implements Nested{ + MetadataNested(V1ObjectMeta item) { + this.builder = new V1ObjectMetaBuilder(this, item); + } + V1ObjectMetaBuilder builder; + + public N and() { + return (N) V1beta2ResourceClaimFluent.this.withMetadata(builder.build()); + } + + public N endMetadata() { + return and(); + } + + + } + public class SpecNested extends V1beta2ResourceClaimSpecFluent> implements Nested{ + SpecNested(V1beta2ResourceClaimSpec item) { + this.builder = new V1beta2ResourceClaimSpecBuilder(this, item); + } + V1beta2ResourceClaimSpecBuilder builder; + + public N and() { + return (N) V1beta2ResourceClaimFluent.this.withSpec(builder.build()); + } + + public N endSpec() { + return and(); + } + + + } + public class StatusNested extends V1beta2ResourceClaimStatusFluent> implements Nested{ + StatusNested(V1beta2ResourceClaimStatus item) { + this.builder = new V1beta2ResourceClaimStatusBuilder(this, item); + } + V1beta2ResourceClaimStatusBuilder builder; + + public N and() { + return (N) V1beta2ResourceClaimFluent.this.withStatus(builder.build()); + } + + public N endStatus() { + return and(); + } + + + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceClaimListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceClaimListBuilder.java new file mode 100644 index 0000000000..a6ff3b1c62 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceClaimListBuilder.java @@ -0,0 +1,34 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +public class V1beta2ResourceClaimListBuilder extends V1beta2ResourceClaimListFluent implements VisitableBuilder{ + public V1beta2ResourceClaimListBuilder() { + this(new V1beta2ResourceClaimList()); + } + + public V1beta2ResourceClaimListBuilder(V1beta2ResourceClaimListFluent fluent) { + this(fluent, new V1beta2ResourceClaimList()); + } + + public V1beta2ResourceClaimListBuilder(V1beta2ResourceClaimListFluent fluent,V1beta2ResourceClaimList instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1beta2ResourceClaimListBuilder(V1beta2ResourceClaimList instance) { + this.fluent = this; + this.copyInstance(instance); + } + V1beta2ResourceClaimListFluent fluent; + + public V1beta2ResourceClaimList build() { + V1beta2ResourceClaimList buildable = new V1beta2ResourceClaimList(); + buildable.setApiVersion(fluent.getApiVersion()); + buildable.setItems(fluent.buildItems()); + buildable.setKind(fluent.getKind()); + buildable.setMetadata(fluent.buildMetadata()); + return buildable; + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceClaimListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceClaimListFluent.java new file mode 100644 index 0000000000..97c683fc6e --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceClaimListFluent.java @@ -0,0 +1,331 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.Nested; +import java.util.ArrayList; +import java.lang.String; +import java.util.function.Predicate; +import io.kubernetes.client.fluent.BaseFluent; +import java.util.Iterator; +import java.util.Collection; +import java.lang.Object; +import java.util.List; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1beta2ResourceClaimListFluent> extends BaseFluent{ + public V1beta2ResourceClaimListFluent() { + } + + public V1beta2ResourceClaimListFluent(V1beta2ResourceClaimList instance) { + this.copyInstance(instance); + } + private String apiVersion; + private ArrayList items; + private String kind; + private V1ListMetaBuilder metadata; + + protected void copyInstance(V1beta2ResourceClaimList instance) { + instance = (instance != null ? instance : new V1beta2ResourceClaimList()); + if (instance != null) { + this.withApiVersion(instance.getApiVersion()); + this.withItems(instance.getItems()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); + } + } + + public String getApiVersion() { + return this.apiVersion; + } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + + public boolean hasApiVersion() { + return this.apiVersion != null; + } + + public A addToItems(int index,V1beta2ResourceClaim item) { + if (this.items == null) {this.items = new ArrayList();} + V1beta2ResourceClaimBuilder builder = new V1beta2ResourceClaimBuilder(item); + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.add(index, builder); + } + return (A)this; + } + + public A setToItems(int index,V1beta2ResourceClaim item) { + if (this.items == null) {this.items = new ArrayList();} + V1beta2ResourceClaimBuilder builder = new V1beta2ResourceClaimBuilder(item); + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.set(index, builder); + } + return (A)this; + } + + public A addToItems(io.kubernetes.client.openapi.models.V1beta2ResourceClaim... items) { + if (this.items == null) {this.items = new ArrayList();} + for (V1beta2ResourceClaim item : items) {V1beta2ResourceClaimBuilder builder = new V1beta2ResourceClaimBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; + } + + public A addAllToItems(Collection items) { + if (this.items == null) {this.items = new ArrayList();} + for (V1beta2ResourceClaim item : items) {V1beta2ResourceClaimBuilder builder = new V1beta2ResourceClaimBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; + } + + public A removeFromItems(io.kubernetes.client.openapi.models.V1beta2ResourceClaim... items) { + if (this.items == null) return (A)this; + for (V1beta2ResourceClaim item : items) {V1beta2ResourceClaimBuilder builder = new V1beta2ResourceClaimBuilder(item);_visitables.get("items").remove(builder); this.items.remove(builder);} return (A)this; + } + + public A removeAllFromItems(Collection items) { + if (this.items == null) return (A)this; + for (V1beta2ResourceClaim item : items) {V1beta2ResourceClaimBuilder builder = new V1beta2ResourceClaimBuilder(item);_visitables.get("items").remove(builder); this.items.remove(builder);} return (A)this; + } + + public A removeMatchingFromItems(Predicate predicate) { + if (items == null) return (A) this; + final Iterator each = items.iterator(); + final List visitables = _visitables.get("items"); + while (each.hasNext()) { + V1beta2ResourceClaimBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A)this; + } + + public List buildItems() { + return this.items != null ? build(items) : null; + } + + public V1beta2ResourceClaim buildItem(int index) { + return this.items.get(index).build(); + } + + public V1beta2ResourceClaim buildFirstItem() { + return this.items.get(0).build(); + } + + public V1beta2ResourceClaim buildLastItem() { + return this.items.get(items.size() - 1).build(); + } + + public V1beta2ResourceClaim buildMatchingItem(Predicate predicate) { + for (V1beta2ResourceClaimBuilder item : items) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; + } + + public boolean hasMatchingItem(Predicate predicate) { + for (V1beta2ResourceClaimBuilder item : items) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public A withItems(List items) { + if (this.items != null) { + this._visitables.get("items").clear(); + } + if (items != null) { + this.items = new ArrayList(); + for (V1beta2ResourceClaim item : items) { + this.addToItems(item); + } + } else { + this.items = null; + } + return (A) this; + } + + public A withItems(io.kubernetes.client.openapi.models.V1beta2ResourceClaim... items) { + if (this.items != null) { + this.items.clear(); + _visitables.remove("items"); + } + if (items != null) { + for (V1beta2ResourceClaim item : items) { + this.addToItems(item); + } + } + return (A) this; + } + + public boolean hasItems() { + return this.items != null && !this.items.isEmpty(); + } + + public ItemsNested addNewItem() { + return new ItemsNested(-1, null); + } + + public ItemsNested addNewItemLike(V1beta2ResourceClaim item) { + return new ItemsNested(-1, item); + } + + public ItemsNested setNewItemLike(int index,V1beta2ResourceClaim item) { + return new ItemsNested(index, item); + } + + public ItemsNested editItem(int index) { + if (items.size() <= index) throw new RuntimeException("Can't edit items. Index exceeds size."); + return setNewItemLike(index, buildItem(index)); + } + + public ItemsNested editFirstItem() { + if (items.size() == 0) throw new RuntimeException("Can't edit first items. The list is empty."); + return setNewItemLike(0, buildItem(0)); + } + + public ItemsNested editLastItem() { + int index = items.size() - 1; + if (index < 0) throw new RuntimeException("Can't edit last items. The list is empty."); + return setNewItemLike(index, buildItem(index)); + } + + public ItemsNested editMatchingItem(Predicate predicate) { + int index = -1; + for (int i=0;i withNewMetadata() { + return new MetadataNested(null); + } + + public MetadataNested withNewMetadataLike(V1ListMeta item) { + return new MetadataNested(item); + } + + public MetadataNested editMetadata() { + return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(null)); + } + + public MetadataNested editOrNewMetadata() { + return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(new V1ListMetaBuilder().build())); + } + + public MetadataNested editOrNewMetadataLike(V1ListMeta item) { + return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(item)); + } + + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + if (!super.equals(o)) return false; + V1beta2ResourceClaimListFluent that = (V1beta2ResourceClaimListFluent) o; + if (!java.util.Objects.equals(apiVersion, that.apiVersion)) return false; + if (!java.util.Objects.equals(items, that.items)) return false; + if (!java.util.Objects.equals(kind, that.kind)) return false; + if (!java.util.Objects.equals(metadata, that.metadata)) return false; + return true; + } + + public int hashCode() { + return java.util.Objects.hash(apiVersion, items, kind, metadata, super.hashCode()); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (apiVersion != null) { sb.append("apiVersion:"); sb.append(apiVersion + ","); } + if (items != null && !items.isEmpty()) { sb.append("items:"); sb.append(items + ","); } + if (kind != null) { sb.append("kind:"); sb.append(kind + ","); } + if (metadata != null) { sb.append("metadata:"); sb.append(metadata); } + sb.append("}"); + return sb.toString(); + } + public class ItemsNested extends V1beta2ResourceClaimFluent> implements Nested{ + ItemsNested(int index,V1beta2ResourceClaim item) { + this.index = index; + this.builder = new V1beta2ResourceClaimBuilder(this, item); + } + V1beta2ResourceClaimBuilder builder; + int index; + + public N and() { + return (N) V1beta2ResourceClaimListFluent.this.setToItems(index,builder.build()); + } + + public N endItem() { + return and(); + } + + + } + public class MetadataNested extends V1ListMetaFluent> implements Nested{ + MetadataNested(V1ListMeta item) { + this.builder = new V1ListMetaBuilder(this, item); + } + V1ListMetaBuilder builder; + + public N and() { + return (N) V1beta2ResourceClaimListFluent.this.withMetadata(builder.build()); + } + + public N endMetadata() { + return and(); + } + + + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceClaimSpecBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceClaimSpecBuilder.java new file mode 100644 index 0000000000..552bd5d926 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceClaimSpecBuilder.java @@ -0,0 +1,31 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +public class V1beta2ResourceClaimSpecBuilder extends V1beta2ResourceClaimSpecFluent implements VisitableBuilder{ + public V1beta2ResourceClaimSpecBuilder() { + this(new V1beta2ResourceClaimSpec()); + } + + public V1beta2ResourceClaimSpecBuilder(V1beta2ResourceClaimSpecFluent fluent) { + this(fluent, new V1beta2ResourceClaimSpec()); + } + + public V1beta2ResourceClaimSpecBuilder(V1beta2ResourceClaimSpecFluent fluent,V1beta2ResourceClaimSpec instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1beta2ResourceClaimSpecBuilder(V1beta2ResourceClaimSpec instance) { + this.fluent = this; + this.copyInstance(instance); + } + V1beta2ResourceClaimSpecFluent fluent; + + public V1beta2ResourceClaimSpec build() { + V1beta2ResourceClaimSpec buildable = new V1beta2ResourceClaimSpec(); + buildable.setDevices(fluent.buildDevices()); + return buildable; + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceClaimSpecFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceClaimSpecFluent.java new file mode 100644 index 0000000000..15e52c6e86 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceClaimSpecFluent.java @@ -0,0 +1,106 @@ +package io.kubernetes.client.openapi.models; + +import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Object; +import java.lang.String; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1beta2ResourceClaimSpecFluent> extends BaseFluent{ + public V1beta2ResourceClaimSpecFluent() { + } + + public V1beta2ResourceClaimSpecFluent(V1beta2ResourceClaimSpec instance) { + this.copyInstance(instance); + } + private V1beta2DeviceClaimBuilder devices; + + protected void copyInstance(V1beta2ResourceClaimSpec instance) { + instance = (instance != null ? instance : new V1beta2ResourceClaimSpec()); + if (instance != null) { + this.withDevices(instance.getDevices()); + } + } + + public V1beta2DeviceClaim buildDevices() { + return this.devices != null ? this.devices.build() : null; + } + + public A withDevices(V1beta2DeviceClaim devices) { + this._visitables.remove("devices"); + if (devices != null) { + this.devices = new V1beta2DeviceClaimBuilder(devices); + this._visitables.get("devices").add(this.devices); + } else { + this.devices = null; + this._visitables.get("devices").remove(this.devices); + } + return (A) this; + } + + public boolean hasDevices() { + return this.devices != null; + } + + public DevicesNested withNewDevices() { + return new DevicesNested(null); + } + + public DevicesNested withNewDevicesLike(V1beta2DeviceClaim item) { + return new DevicesNested(item); + } + + public DevicesNested editDevices() { + return withNewDevicesLike(java.util.Optional.ofNullable(buildDevices()).orElse(null)); + } + + public DevicesNested editOrNewDevices() { + return withNewDevicesLike(java.util.Optional.ofNullable(buildDevices()).orElse(new V1beta2DeviceClaimBuilder().build())); + } + + public DevicesNested editOrNewDevicesLike(V1beta2DeviceClaim item) { + return withNewDevicesLike(java.util.Optional.ofNullable(buildDevices()).orElse(item)); + } + + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + if (!super.equals(o)) return false; + V1beta2ResourceClaimSpecFluent that = (V1beta2ResourceClaimSpecFluent) o; + if (!java.util.Objects.equals(devices, that.devices)) return false; + return true; + } + + public int hashCode() { + return java.util.Objects.hash(devices, super.hashCode()); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (devices != null) { sb.append("devices:"); sb.append(devices); } + sb.append("}"); + return sb.toString(); + } + public class DevicesNested extends V1beta2DeviceClaimFluent> implements Nested{ + DevicesNested(V1beta2DeviceClaim item) { + this.builder = new V1beta2DeviceClaimBuilder(this, item); + } + V1beta2DeviceClaimBuilder builder; + + public N and() { + return (N) V1beta2ResourceClaimSpecFluent.this.withDevices(builder.build()); + } + + public N endDevices() { + return and(); + } + + + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceClaimStatusBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceClaimStatusBuilder.java new file mode 100644 index 0000000000..ff3c44b096 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceClaimStatusBuilder.java @@ -0,0 +1,33 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +public class V1beta2ResourceClaimStatusBuilder extends V1beta2ResourceClaimStatusFluent implements VisitableBuilder{ + public V1beta2ResourceClaimStatusBuilder() { + this(new V1beta2ResourceClaimStatus()); + } + + public V1beta2ResourceClaimStatusBuilder(V1beta2ResourceClaimStatusFluent fluent) { + this(fluent, new V1beta2ResourceClaimStatus()); + } + + public V1beta2ResourceClaimStatusBuilder(V1beta2ResourceClaimStatusFluent fluent,V1beta2ResourceClaimStatus instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1beta2ResourceClaimStatusBuilder(V1beta2ResourceClaimStatus instance) { + this.fluent = this; + this.copyInstance(instance); + } + V1beta2ResourceClaimStatusFluent fluent; + + public V1beta2ResourceClaimStatus build() { + V1beta2ResourceClaimStatus buildable = new V1beta2ResourceClaimStatus(); + buildable.setAllocation(fluent.buildAllocation()); + buildable.setDevices(fluent.buildDevices()); + buildable.setReservedFor(fluent.buildReservedFor()); + return buildable; + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceClaimStatusFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceClaimStatusFluent.java new file mode 100644 index 0000000000..38cfc687af --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceClaimStatusFluent.java @@ -0,0 +1,482 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.Nested; +import java.util.ArrayList; +import java.lang.String; +import java.util.function.Predicate; +import io.kubernetes.client.fluent.BaseFluent; +import java.util.Iterator; +import java.util.List; +import java.util.Collection; +import java.lang.Object; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1beta2ResourceClaimStatusFluent> extends BaseFluent{ + public V1beta2ResourceClaimStatusFluent() { + } + + public V1beta2ResourceClaimStatusFluent(V1beta2ResourceClaimStatus instance) { + this.copyInstance(instance); + } + private V1beta2AllocationResultBuilder allocation; + private ArrayList devices; + private ArrayList reservedFor; + + protected void copyInstance(V1beta2ResourceClaimStatus instance) { + instance = (instance != null ? instance : new V1beta2ResourceClaimStatus()); + if (instance != null) { + this.withAllocation(instance.getAllocation()); + this.withDevices(instance.getDevices()); + this.withReservedFor(instance.getReservedFor()); + } + } + + public V1beta2AllocationResult buildAllocation() { + return this.allocation != null ? this.allocation.build() : null; + } + + public A withAllocation(V1beta2AllocationResult allocation) { + this._visitables.remove("allocation"); + if (allocation != null) { + this.allocation = new V1beta2AllocationResultBuilder(allocation); + this._visitables.get("allocation").add(this.allocation); + } else { + this.allocation = null; + this._visitables.get("allocation").remove(this.allocation); + } + return (A) this; + } + + public boolean hasAllocation() { + return this.allocation != null; + } + + public AllocationNested withNewAllocation() { + return new AllocationNested(null); + } + + public AllocationNested withNewAllocationLike(V1beta2AllocationResult item) { + return new AllocationNested(item); + } + + public AllocationNested editAllocation() { + return withNewAllocationLike(java.util.Optional.ofNullable(buildAllocation()).orElse(null)); + } + + public AllocationNested editOrNewAllocation() { + return withNewAllocationLike(java.util.Optional.ofNullable(buildAllocation()).orElse(new V1beta2AllocationResultBuilder().build())); + } + + public AllocationNested editOrNewAllocationLike(V1beta2AllocationResult item) { + return withNewAllocationLike(java.util.Optional.ofNullable(buildAllocation()).orElse(item)); + } + + public A addToDevices(int index,V1beta2AllocatedDeviceStatus item) { + if (this.devices == null) {this.devices = new ArrayList();} + V1beta2AllocatedDeviceStatusBuilder builder = new V1beta2AllocatedDeviceStatusBuilder(item); + if (index < 0 || index >= devices.size()) { + _visitables.get("devices").add(builder); + devices.add(builder); + } else { + _visitables.get("devices").add(builder); + devices.add(index, builder); + } + return (A)this; + } + + public A setToDevices(int index,V1beta2AllocatedDeviceStatus item) { + if (this.devices == null) {this.devices = new ArrayList();} + V1beta2AllocatedDeviceStatusBuilder builder = new V1beta2AllocatedDeviceStatusBuilder(item); + if (index < 0 || index >= devices.size()) { + _visitables.get("devices").add(builder); + devices.add(builder); + } else { + _visitables.get("devices").add(builder); + devices.set(index, builder); + } + return (A)this; + } + + public A addToDevices(io.kubernetes.client.openapi.models.V1beta2AllocatedDeviceStatus... items) { + if (this.devices == null) {this.devices = new ArrayList();} + for (V1beta2AllocatedDeviceStatus item : items) {V1beta2AllocatedDeviceStatusBuilder builder = new V1beta2AllocatedDeviceStatusBuilder(item);_visitables.get("devices").add(builder);this.devices.add(builder);} return (A)this; + } + + public A addAllToDevices(Collection items) { + if (this.devices == null) {this.devices = new ArrayList();} + for (V1beta2AllocatedDeviceStatus item : items) {V1beta2AllocatedDeviceStatusBuilder builder = new V1beta2AllocatedDeviceStatusBuilder(item);_visitables.get("devices").add(builder);this.devices.add(builder);} return (A)this; + } + + public A removeFromDevices(io.kubernetes.client.openapi.models.V1beta2AllocatedDeviceStatus... items) { + if (this.devices == null) return (A)this; + for (V1beta2AllocatedDeviceStatus item : items) {V1beta2AllocatedDeviceStatusBuilder builder = new V1beta2AllocatedDeviceStatusBuilder(item);_visitables.get("devices").remove(builder); this.devices.remove(builder);} return (A)this; + } + + public A removeAllFromDevices(Collection items) { + if (this.devices == null) return (A)this; + for (V1beta2AllocatedDeviceStatus item : items) {V1beta2AllocatedDeviceStatusBuilder builder = new V1beta2AllocatedDeviceStatusBuilder(item);_visitables.get("devices").remove(builder); this.devices.remove(builder);} return (A)this; + } + + public A removeMatchingFromDevices(Predicate predicate) { + if (devices == null) return (A) this; + final Iterator each = devices.iterator(); + final List visitables = _visitables.get("devices"); + while (each.hasNext()) { + V1beta2AllocatedDeviceStatusBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A)this; + } + + public List buildDevices() { + return this.devices != null ? build(devices) : null; + } + + public V1beta2AllocatedDeviceStatus buildDevice(int index) { + return this.devices.get(index).build(); + } + + public V1beta2AllocatedDeviceStatus buildFirstDevice() { + return this.devices.get(0).build(); + } + + public V1beta2AllocatedDeviceStatus buildLastDevice() { + return this.devices.get(devices.size() - 1).build(); + } + + public V1beta2AllocatedDeviceStatus buildMatchingDevice(Predicate predicate) { + for (V1beta2AllocatedDeviceStatusBuilder item : devices) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; + } + + public boolean hasMatchingDevice(Predicate predicate) { + for (V1beta2AllocatedDeviceStatusBuilder item : devices) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public A withDevices(List devices) { + if (this.devices != null) { + this._visitables.get("devices").clear(); + } + if (devices != null) { + this.devices = new ArrayList(); + for (V1beta2AllocatedDeviceStatus item : devices) { + this.addToDevices(item); + } + } else { + this.devices = null; + } + return (A) this; + } + + public A withDevices(io.kubernetes.client.openapi.models.V1beta2AllocatedDeviceStatus... devices) { + if (this.devices != null) { + this.devices.clear(); + _visitables.remove("devices"); + } + if (devices != null) { + for (V1beta2AllocatedDeviceStatus item : devices) { + this.addToDevices(item); + } + } + return (A) this; + } + + public boolean hasDevices() { + return this.devices != null && !this.devices.isEmpty(); + } + + public DevicesNested addNewDevice() { + return new DevicesNested(-1, null); + } + + public DevicesNested addNewDeviceLike(V1beta2AllocatedDeviceStatus item) { + return new DevicesNested(-1, item); + } + + public DevicesNested setNewDeviceLike(int index,V1beta2AllocatedDeviceStatus item) { + return new DevicesNested(index, item); + } + + public DevicesNested editDevice(int index) { + if (devices.size() <= index) throw new RuntimeException("Can't edit devices. Index exceeds size."); + return setNewDeviceLike(index, buildDevice(index)); + } + + public DevicesNested editFirstDevice() { + if (devices.size() == 0) throw new RuntimeException("Can't edit first devices. The list is empty."); + return setNewDeviceLike(0, buildDevice(0)); + } + + public DevicesNested editLastDevice() { + int index = devices.size() - 1; + if (index < 0) throw new RuntimeException("Can't edit last devices. The list is empty."); + return setNewDeviceLike(index, buildDevice(index)); + } + + public DevicesNested editMatchingDevice(Predicate predicate) { + int index = -1; + for (int i=0;i();} + V1beta2ResourceClaimConsumerReferenceBuilder builder = new V1beta2ResourceClaimConsumerReferenceBuilder(item); + if (index < 0 || index >= reservedFor.size()) { + _visitables.get("reservedFor").add(builder); + reservedFor.add(builder); + } else { + _visitables.get("reservedFor").add(builder); + reservedFor.add(index, builder); + } + return (A)this; + } + + public A setToReservedFor(int index,V1beta2ResourceClaimConsumerReference item) { + if (this.reservedFor == null) {this.reservedFor = new ArrayList();} + V1beta2ResourceClaimConsumerReferenceBuilder builder = new V1beta2ResourceClaimConsumerReferenceBuilder(item); + if (index < 0 || index >= reservedFor.size()) { + _visitables.get("reservedFor").add(builder); + reservedFor.add(builder); + } else { + _visitables.get("reservedFor").add(builder); + reservedFor.set(index, builder); + } + return (A)this; + } + + public A addToReservedFor(io.kubernetes.client.openapi.models.V1beta2ResourceClaimConsumerReference... items) { + if (this.reservedFor == null) {this.reservedFor = new ArrayList();} + for (V1beta2ResourceClaimConsumerReference item : items) {V1beta2ResourceClaimConsumerReferenceBuilder builder = new V1beta2ResourceClaimConsumerReferenceBuilder(item);_visitables.get("reservedFor").add(builder);this.reservedFor.add(builder);} return (A)this; + } + + public A addAllToReservedFor(Collection items) { + if (this.reservedFor == null) {this.reservedFor = new ArrayList();} + for (V1beta2ResourceClaimConsumerReference item : items) {V1beta2ResourceClaimConsumerReferenceBuilder builder = new V1beta2ResourceClaimConsumerReferenceBuilder(item);_visitables.get("reservedFor").add(builder);this.reservedFor.add(builder);} return (A)this; + } + + public A removeFromReservedFor(io.kubernetes.client.openapi.models.V1beta2ResourceClaimConsumerReference... items) { + if (this.reservedFor == null) return (A)this; + for (V1beta2ResourceClaimConsumerReference item : items) {V1beta2ResourceClaimConsumerReferenceBuilder builder = new V1beta2ResourceClaimConsumerReferenceBuilder(item);_visitables.get("reservedFor").remove(builder); this.reservedFor.remove(builder);} return (A)this; + } + + public A removeAllFromReservedFor(Collection items) { + if (this.reservedFor == null) return (A)this; + for (V1beta2ResourceClaimConsumerReference item : items) {V1beta2ResourceClaimConsumerReferenceBuilder builder = new V1beta2ResourceClaimConsumerReferenceBuilder(item);_visitables.get("reservedFor").remove(builder); this.reservedFor.remove(builder);} return (A)this; + } + + public A removeMatchingFromReservedFor(Predicate predicate) { + if (reservedFor == null) return (A) this; + final Iterator each = reservedFor.iterator(); + final List visitables = _visitables.get("reservedFor"); + while (each.hasNext()) { + V1beta2ResourceClaimConsumerReferenceBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A)this; + } + + public List buildReservedFor() { + return this.reservedFor != null ? build(reservedFor) : null; + } + + public V1beta2ResourceClaimConsumerReference buildReservedFor(int index) { + return this.reservedFor.get(index).build(); + } + + public V1beta2ResourceClaimConsumerReference buildFirstReservedFor() { + return this.reservedFor.get(0).build(); + } + + public V1beta2ResourceClaimConsumerReference buildLastReservedFor() { + return this.reservedFor.get(reservedFor.size() - 1).build(); + } + + public V1beta2ResourceClaimConsumerReference buildMatchingReservedFor(Predicate predicate) { + for (V1beta2ResourceClaimConsumerReferenceBuilder item : reservedFor) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; + } + + public boolean hasMatchingReservedFor(Predicate predicate) { + for (V1beta2ResourceClaimConsumerReferenceBuilder item : reservedFor) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public A withReservedFor(List reservedFor) { + if (this.reservedFor != null) { + this._visitables.get("reservedFor").clear(); + } + if (reservedFor != null) { + this.reservedFor = new ArrayList(); + for (V1beta2ResourceClaimConsumerReference item : reservedFor) { + this.addToReservedFor(item); + } + } else { + this.reservedFor = null; + } + return (A) this; + } + + public A withReservedFor(io.kubernetes.client.openapi.models.V1beta2ResourceClaimConsumerReference... reservedFor) { + if (this.reservedFor != null) { + this.reservedFor.clear(); + _visitables.remove("reservedFor"); + } + if (reservedFor != null) { + for (V1beta2ResourceClaimConsumerReference item : reservedFor) { + this.addToReservedFor(item); + } + } + return (A) this; + } + + public boolean hasReservedFor() { + return this.reservedFor != null && !this.reservedFor.isEmpty(); + } + + public ReservedForNested addNewReservedFor() { + return new ReservedForNested(-1, null); + } + + public ReservedForNested addNewReservedForLike(V1beta2ResourceClaimConsumerReference item) { + return new ReservedForNested(-1, item); + } + + public ReservedForNested setNewReservedForLike(int index,V1beta2ResourceClaimConsumerReference item) { + return new ReservedForNested(index, item); + } + + public ReservedForNested editReservedFor(int index) { + if (reservedFor.size() <= index) throw new RuntimeException("Can't edit reservedFor. Index exceeds size."); + return setNewReservedForLike(index, buildReservedFor(index)); + } + + public ReservedForNested editFirstReservedFor() { + if (reservedFor.size() == 0) throw new RuntimeException("Can't edit first reservedFor. The list is empty."); + return setNewReservedForLike(0, buildReservedFor(0)); + } + + public ReservedForNested editLastReservedFor() { + int index = reservedFor.size() - 1; + if (index < 0) throw new RuntimeException("Can't edit last reservedFor. The list is empty."); + return setNewReservedForLike(index, buildReservedFor(index)); + } + + public ReservedForNested editMatchingReservedFor(Predicate predicate) { + int index = -1; + for (int i=0;i extends V1beta2AllocationResultFluent> implements Nested{ + AllocationNested(V1beta2AllocationResult item) { + this.builder = new V1beta2AllocationResultBuilder(this, item); + } + V1beta2AllocationResultBuilder builder; + + public N and() { + return (N) V1beta2ResourceClaimStatusFluent.this.withAllocation(builder.build()); + } + + public N endAllocation() { + return and(); + } + + + } + public class DevicesNested extends V1beta2AllocatedDeviceStatusFluent> implements Nested{ + DevicesNested(int index,V1beta2AllocatedDeviceStatus item) { + this.index = index; + this.builder = new V1beta2AllocatedDeviceStatusBuilder(this, item); + } + V1beta2AllocatedDeviceStatusBuilder builder; + int index; + + public N and() { + return (N) V1beta2ResourceClaimStatusFluent.this.setToDevices(index,builder.build()); + } + + public N endDevice() { + return and(); + } + + + } + public class ReservedForNested extends V1beta2ResourceClaimConsumerReferenceFluent> implements Nested{ + ReservedForNested(int index,V1beta2ResourceClaimConsumerReference item) { + this.index = index; + this.builder = new V1beta2ResourceClaimConsumerReferenceBuilder(this, item); + } + V1beta2ResourceClaimConsumerReferenceBuilder builder; + int index; + + public N and() { + return (N) V1beta2ResourceClaimStatusFluent.this.setToReservedFor(index,builder.build()); + } + + public N endReservedFor() { + return and(); + } + + + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceClaimTemplateBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceClaimTemplateBuilder.java new file mode 100644 index 0000000000..a67ae418d8 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceClaimTemplateBuilder.java @@ -0,0 +1,34 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +public class V1beta2ResourceClaimTemplateBuilder extends V1beta2ResourceClaimTemplateFluent implements VisitableBuilder{ + public V1beta2ResourceClaimTemplateBuilder() { + this(new V1beta2ResourceClaimTemplate()); + } + + public V1beta2ResourceClaimTemplateBuilder(V1beta2ResourceClaimTemplateFluent fluent) { + this(fluent, new V1beta2ResourceClaimTemplate()); + } + + public V1beta2ResourceClaimTemplateBuilder(V1beta2ResourceClaimTemplateFluent fluent,V1beta2ResourceClaimTemplate instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1beta2ResourceClaimTemplateBuilder(V1beta2ResourceClaimTemplate instance) { + this.fluent = this; + this.copyInstance(instance); + } + V1beta2ResourceClaimTemplateFluent fluent; + + public V1beta2ResourceClaimTemplate build() { + V1beta2ResourceClaimTemplate buildable = new V1beta2ResourceClaimTemplate(); + buildable.setApiVersion(fluent.getApiVersion()); + buildable.setKind(fluent.getKind()); + buildable.setMetadata(fluent.buildMetadata()); + buildable.setSpec(fluent.buildSpec()); + return buildable; + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceClaimTemplateFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceClaimTemplateFluent.java new file mode 100644 index 0000000000..4638927612 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceClaimTemplateFluent.java @@ -0,0 +1,200 @@ +package io.kubernetes.client.openapi.models; + +import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.Nested; +import java.lang.String; +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Object; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1beta2ResourceClaimTemplateFluent> extends BaseFluent{ + public V1beta2ResourceClaimTemplateFluent() { + } + + public V1beta2ResourceClaimTemplateFluent(V1beta2ResourceClaimTemplate instance) { + this.copyInstance(instance); + } + private String apiVersion; + private String kind; + private V1ObjectMetaBuilder metadata; + private V1beta2ResourceClaimTemplateSpecBuilder spec; + + protected void copyInstance(V1beta2ResourceClaimTemplate instance) { + instance = (instance != null ? instance : new V1beta2ResourceClaimTemplate()); + if (instance != null) { + this.withApiVersion(instance.getApiVersion()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); + this.withSpec(instance.getSpec()); + } + } + + public String getApiVersion() { + return this.apiVersion; + } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + + public boolean hasApiVersion() { + return this.apiVersion != null; + } + + public String getKind() { + return this.kind; + } + + public A withKind(String kind) { + this.kind = kind; + return (A) this; + } + + public boolean hasKind() { + return this.kind != null; + } + + public V1ObjectMeta buildMetadata() { + return this.metadata != null ? this.metadata.build() : null; + } + + public A withMetadata(V1ObjectMeta metadata) { + this._visitables.remove("metadata"); + if (metadata != null) { + this.metadata = new V1ObjectMetaBuilder(metadata); + this._visitables.get("metadata").add(this.metadata); + } else { + this.metadata = null; + this._visitables.get("metadata").remove(this.metadata); + } + return (A) this; + } + + public boolean hasMetadata() { + return this.metadata != null; + } + + public MetadataNested withNewMetadata() { + return new MetadataNested(null); + } + + public MetadataNested withNewMetadataLike(V1ObjectMeta item) { + return new MetadataNested(item); + } + + public MetadataNested editMetadata() { + return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(null)); + } + + public MetadataNested editOrNewMetadata() { + return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(new V1ObjectMetaBuilder().build())); + } + + public MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { + return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(item)); + } + + public V1beta2ResourceClaimTemplateSpec buildSpec() { + return this.spec != null ? this.spec.build() : null; + } + + public A withSpec(V1beta2ResourceClaimTemplateSpec spec) { + this._visitables.remove("spec"); + if (spec != null) { + this.spec = new V1beta2ResourceClaimTemplateSpecBuilder(spec); + this._visitables.get("spec").add(this.spec); + } else { + this.spec = null; + this._visitables.get("spec").remove(this.spec); + } + return (A) this; + } + + public boolean hasSpec() { + return this.spec != null; + } + + public SpecNested withNewSpec() { + return new SpecNested(null); + } + + public SpecNested withNewSpecLike(V1beta2ResourceClaimTemplateSpec item) { + return new SpecNested(item); + } + + public SpecNested editSpec() { + return withNewSpecLike(java.util.Optional.ofNullable(buildSpec()).orElse(null)); + } + + public SpecNested editOrNewSpec() { + return withNewSpecLike(java.util.Optional.ofNullable(buildSpec()).orElse(new V1beta2ResourceClaimTemplateSpecBuilder().build())); + } + + public SpecNested editOrNewSpecLike(V1beta2ResourceClaimTemplateSpec item) { + return withNewSpecLike(java.util.Optional.ofNullable(buildSpec()).orElse(item)); + } + + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + if (!super.equals(o)) return false; + V1beta2ResourceClaimTemplateFluent that = (V1beta2ResourceClaimTemplateFluent) o; + if (!java.util.Objects.equals(apiVersion, that.apiVersion)) return false; + if (!java.util.Objects.equals(kind, that.kind)) return false; + if (!java.util.Objects.equals(metadata, that.metadata)) return false; + if (!java.util.Objects.equals(spec, that.spec)) return false; + return true; + } + + public int hashCode() { + return java.util.Objects.hash(apiVersion, kind, metadata, spec, super.hashCode()); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (apiVersion != null) { sb.append("apiVersion:"); sb.append(apiVersion + ","); } + if (kind != null) { sb.append("kind:"); sb.append(kind + ","); } + if (metadata != null) { sb.append("metadata:"); sb.append(metadata + ","); } + if (spec != null) { sb.append("spec:"); sb.append(spec); } + sb.append("}"); + return sb.toString(); + } + public class MetadataNested extends V1ObjectMetaFluent> implements Nested{ + MetadataNested(V1ObjectMeta item) { + this.builder = new V1ObjectMetaBuilder(this, item); + } + V1ObjectMetaBuilder builder; + + public N and() { + return (N) V1beta2ResourceClaimTemplateFluent.this.withMetadata(builder.build()); + } + + public N endMetadata() { + return and(); + } + + + } + public class SpecNested extends V1beta2ResourceClaimTemplateSpecFluent> implements Nested{ + SpecNested(V1beta2ResourceClaimTemplateSpec item) { + this.builder = new V1beta2ResourceClaimTemplateSpecBuilder(this, item); + } + V1beta2ResourceClaimTemplateSpecBuilder builder; + + public N and() { + return (N) V1beta2ResourceClaimTemplateFluent.this.withSpec(builder.build()); + } + + public N endSpec() { + return and(); + } + + + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceClaimTemplateListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceClaimTemplateListBuilder.java new file mode 100644 index 0000000000..9a52747f7b --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceClaimTemplateListBuilder.java @@ -0,0 +1,34 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +public class V1beta2ResourceClaimTemplateListBuilder extends V1beta2ResourceClaimTemplateListFluent implements VisitableBuilder{ + public V1beta2ResourceClaimTemplateListBuilder() { + this(new V1beta2ResourceClaimTemplateList()); + } + + public V1beta2ResourceClaimTemplateListBuilder(V1beta2ResourceClaimTemplateListFluent fluent) { + this(fluent, new V1beta2ResourceClaimTemplateList()); + } + + public V1beta2ResourceClaimTemplateListBuilder(V1beta2ResourceClaimTemplateListFluent fluent,V1beta2ResourceClaimTemplateList instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1beta2ResourceClaimTemplateListBuilder(V1beta2ResourceClaimTemplateList instance) { + this.fluent = this; + this.copyInstance(instance); + } + V1beta2ResourceClaimTemplateListFluent fluent; + + public V1beta2ResourceClaimTemplateList build() { + V1beta2ResourceClaimTemplateList buildable = new V1beta2ResourceClaimTemplateList(); + buildable.setApiVersion(fluent.getApiVersion()); + buildable.setItems(fluent.buildItems()); + buildable.setKind(fluent.getKind()); + buildable.setMetadata(fluent.buildMetadata()); + return buildable; + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceClaimTemplateListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceClaimTemplateListFluent.java new file mode 100644 index 0000000000..e1070eb0af --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceClaimTemplateListFluent.java @@ -0,0 +1,331 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.Nested; +import java.util.ArrayList; +import java.lang.String; +import java.util.function.Predicate; +import io.kubernetes.client.fluent.BaseFluent; +import java.util.Iterator; +import java.util.Collection; +import java.lang.Object; +import java.util.List; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1beta2ResourceClaimTemplateListFluent> extends BaseFluent{ + public V1beta2ResourceClaimTemplateListFluent() { + } + + public V1beta2ResourceClaimTemplateListFluent(V1beta2ResourceClaimTemplateList instance) { + this.copyInstance(instance); + } + private String apiVersion; + private ArrayList items; + private String kind; + private V1ListMetaBuilder metadata; + + protected void copyInstance(V1beta2ResourceClaimTemplateList instance) { + instance = (instance != null ? instance : new V1beta2ResourceClaimTemplateList()); + if (instance != null) { + this.withApiVersion(instance.getApiVersion()); + this.withItems(instance.getItems()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); + } + } + + public String getApiVersion() { + return this.apiVersion; + } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + + public boolean hasApiVersion() { + return this.apiVersion != null; + } + + public A addToItems(int index,V1beta2ResourceClaimTemplate item) { + if (this.items == null) {this.items = new ArrayList();} + V1beta2ResourceClaimTemplateBuilder builder = new V1beta2ResourceClaimTemplateBuilder(item); + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.add(index, builder); + } + return (A)this; + } + + public A setToItems(int index,V1beta2ResourceClaimTemplate item) { + if (this.items == null) {this.items = new ArrayList();} + V1beta2ResourceClaimTemplateBuilder builder = new V1beta2ResourceClaimTemplateBuilder(item); + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.set(index, builder); + } + return (A)this; + } + + public A addToItems(io.kubernetes.client.openapi.models.V1beta2ResourceClaimTemplate... items) { + if (this.items == null) {this.items = new ArrayList();} + for (V1beta2ResourceClaimTemplate item : items) {V1beta2ResourceClaimTemplateBuilder builder = new V1beta2ResourceClaimTemplateBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; + } + + public A addAllToItems(Collection items) { + if (this.items == null) {this.items = new ArrayList();} + for (V1beta2ResourceClaimTemplate item : items) {V1beta2ResourceClaimTemplateBuilder builder = new V1beta2ResourceClaimTemplateBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; + } + + public A removeFromItems(io.kubernetes.client.openapi.models.V1beta2ResourceClaimTemplate... items) { + if (this.items == null) return (A)this; + for (V1beta2ResourceClaimTemplate item : items) {V1beta2ResourceClaimTemplateBuilder builder = new V1beta2ResourceClaimTemplateBuilder(item);_visitables.get("items").remove(builder); this.items.remove(builder);} return (A)this; + } + + public A removeAllFromItems(Collection items) { + if (this.items == null) return (A)this; + for (V1beta2ResourceClaimTemplate item : items) {V1beta2ResourceClaimTemplateBuilder builder = new V1beta2ResourceClaimTemplateBuilder(item);_visitables.get("items").remove(builder); this.items.remove(builder);} return (A)this; + } + + public A removeMatchingFromItems(Predicate predicate) { + if (items == null) return (A) this; + final Iterator each = items.iterator(); + final List visitables = _visitables.get("items"); + while (each.hasNext()) { + V1beta2ResourceClaimTemplateBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A)this; + } + + public List buildItems() { + return this.items != null ? build(items) : null; + } + + public V1beta2ResourceClaimTemplate buildItem(int index) { + return this.items.get(index).build(); + } + + public V1beta2ResourceClaimTemplate buildFirstItem() { + return this.items.get(0).build(); + } + + public V1beta2ResourceClaimTemplate buildLastItem() { + return this.items.get(items.size() - 1).build(); + } + + public V1beta2ResourceClaimTemplate buildMatchingItem(Predicate predicate) { + for (V1beta2ResourceClaimTemplateBuilder item : items) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; + } + + public boolean hasMatchingItem(Predicate predicate) { + for (V1beta2ResourceClaimTemplateBuilder item : items) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public A withItems(List items) { + if (this.items != null) { + this._visitables.get("items").clear(); + } + if (items != null) { + this.items = new ArrayList(); + for (V1beta2ResourceClaimTemplate item : items) { + this.addToItems(item); + } + } else { + this.items = null; + } + return (A) this; + } + + public A withItems(io.kubernetes.client.openapi.models.V1beta2ResourceClaimTemplate... items) { + if (this.items != null) { + this.items.clear(); + _visitables.remove("items"); + } + if (items != null) { + for (V1beta2ResourceClaimTemplate item : items) { + this.addToItems(item); + } + } + return (A) this; + } + + public boolean hasItems() { + return this.items != null && !this.items.isEmpty(); + } + + public ItemsNested addNewItem() { + return new ItemsNested(-1, null); + } + + public ItemsNested addNewItemLike(V1beta2ResourceClaimTemplate item) { + return new ItemsNested(-1, item); + } + + public ItemsNested setNewItemLike(int index,V1beta2ResourceClaimTemplate item) { + return new ItemsNested(index, item); + } + + public ItemsNested editItem(int index) { + if (items.size() <= index) throw new RuntimeException("Can't edit items. Index exceeds size."); + return setNewItemLike(index, buildItem(index)); + } + + public ItemsNested editFirstItem() { + if (items.size() == 0) throw new RuntimeException("Can't edit first items. The list is empty."); + return setNewItemLike(0, buildItem(0)); + } + + public ItemsNested editLastItem() { + int index = items.size() - 1; + if (index < 0) throw new RuntimeException("Can't edit last items. The list is empty."); + return setNewItemLike(index, buildItem(index)); + } + + public ItemsNested editMatchingItem(Predicate predicate) { + int index = -1; + for (int i=0;i withNewMetadata() { + return new MetadataNested(null); + } + + public MetadataNested withNewMetadataLike(V1ListMeta item) { + return new MetadataNested(item); + } + + public MetadataNested editMetadata() { + return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(null)); + } + + public MetadataNested editOrNewMetadata() { + return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(new V1ListMetaBuilder().build())); + } + + public MetadataNested editOrNewMetadataLike(V1ListMeta item) { + return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(item)); + } + + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + if (!super.equals(o)) return false; + V1beta2ResourceClaimTemplateListFluent that = (V1beta2ResourceClaimTemplateListFluent) o; + if (!java.util.Objects.equals(apiVersion, that.apiVersion)) return false; + if (!java.util.Objects.equals(items, that.items)) return false; + if (!java.util.Objects.equals(kind, that.kind)) return false; + if (!java.util.Objects.equals(metadata, that.metadata)) return false; + return true; + } + + public int hashCode() { + return java.util.Objects.hash(apiVersion, items, kind, metadata, super.hashCode()); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (apiVersion != null) { sb.append("apiVersion:"); sb.append(apiVersion + ","); } + if (items != null && !items.isEmpty()) { sb.append("items:"); sb.append(items + ","); } + if (kind != null) { sb.append("kind:"); sb.append(kind + ","); } + if (metadata != null) { sb.append("metadata:"); sb.append(metadata); } + sb.append("}"); + return sb.toString(); + } + public class ItemsNested extends V1beta2ResourceClaimTemplateFluent> implements Nested{ + ItemsNested(int index,V1beta2ResourceClaimTemplate item) { + this.index = index; + this.builder = new V1beta2ResourceClaimTemplateBuilder(this, item); + } + V1beta2ResourceClaimTemplateBuilder builder; + int index; + + public N and() { + return (N) V1beta2ResourceClaimTemplateListFluent.this.setToItems(index,builder.build()); + } + + public N endItem() { + return and(); + } + + + } + public class MetadataNested extends V1ListMetaFluent> implements Nested{ + MetadataNested(V1ListMeta item) { + this.builder = new V1ListMetaBuilder(this, item); + } + V1ListMetaBuilder builder; + + public N and() { + return (N) V1beta2ResourceClaimTemplateListFluent.this.withMetadata(builder.build()); + } + + public N endMetadata() { + return and(); + } + + + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceClaimTemplateSpecBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceClaimTemplateSpecBuilder.java new file mode 100644 index 0000000000..92bbba8f67 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceClaimTemplateSpecBuilder.java @@ -0,0 +1,32 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +public class V1beta2ResourceClaimTemplateSpecBuilder extends V1beta2ResourceClaimTemplateSpecFluent implements VisitableBuilder{ + public V1beta2ResourceClaimTemplateSpecBuilder() { + this(new V1beta2ResourceClaimTemplateSpec()); + } + + public V1beta2ResourceClaimTemplateSpecBuilder(V1beta2ResourceClaimTemplateSpecFluent fluent) { + this(fluent, new V1beta2ResourceClaimTemplateSpec()); + } + + public V1beta2ResourceClaimTemplateSpecBuilder(V1beta2ResourceClaimTemplateSpecFluent fluent,V1beta2ResourceClaimTemplateSpec instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1beta2ResourceClaimTemplateSpecBuilder(V1beta2ResourceClaimTemplateSpec instance) { + this.fluent = this; + this.copyInstance(instance); + } + V1beta2ResourceClaimTemplateSpecFluent fluent; + + public V1beta2ResourceClaimTemplateSpec build() { + V1beta2ResourceClaimTemplateSpec buildable = new V1beta2ResourceClaimTemplateSpec(); + buildable.setMetadata(fluent.buildMetadata()); + buildable.setSpec(fluent.buildSpec()); + return buildable; + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceClaimTemplateSpecFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceClaimTemplateSpecFluent.java new file mode 100644 index 0000000000..b72da1d860 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceClaimTemplateSpecFluent.java @@ -0,0 +1,166 @@ +package io.kubernetes.client.openapi.models; + +import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.Nested; +import java.lang.String; +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Object; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1beta2ResourceClaimTemplateSpecFluent> extends BaseFluent{ + public V1beta2ResourceClaimTemplateSpecFluent() { + } + + public V1beta2ResourceClaimTemplateSpecFluent(V1beta2ResourceClaimTemplateSpec instance) { + this.copyInstance(instance); + } + private V1ObjectMetaBuilder metadata; + private V1beta2ResourceClaimSpecBuilder spec; + + protected void copyInstance(V1beta2ResourceClaimTemplateSpec instance) { + instance = (instance != null ? instance : new V1beta2ResourceClaimTemplateSpec()); + if (instance != null) { + this.withMetadata(instance.getMetadata()); + this.withSpec(instance.getSpec()); + } + } + + public V1ObjectMeta buildMetadata() { + return this.metadata != null ? this.metadata.build() : null; + } + + public A withMetadata(V1ObjectMeta metadata) { + this._visitables.remove("metadata"); + if (metadata != null) { + this.metadata = new V1ObjectMetaBuilder(metadata); + this._visitables.get("metadata").add(this.metadata); + } else { + this.metadata = null; + this._visitables.get("metadata").remove(this.metadata); + } + return (A) this; + } + + public boolean hasMetadata() { + return this.metadata != null; + } + + public MetadataNested withNewMetadata() { + return new MetadataNested(null); + } + + public MetadataNested withNewMetadataLike(V1ObjectMeta item) { + return new MetadataNested(item); + } + + public MetadataNested editMetadata() { + return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(null)); + } + + public MetadataNested editOrNewMetadata() { + return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(new V1ObjectMetaBuilder().build())); + } + + public MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { + return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(item)); + } + + public V1beta2ResourceClaimSpec buildSpec() { + return this.spec != null ? this.spec.build() : null; + } + + public A withSpec(V1beta2ResourceClaimSpec spec) { + this._visitables.remove("spec"); + if (spec != null) { + this.spec = new V1beta2ResourceClaimSpecBuilder(spec); + this._visitables.get("spec").add(this.spec); + } else { + this.spec = null; + this._visitables.get("spec").remove(this.spec); + } + return (A) this; + } + + public boolean hasSpec() { + return this.spec != null; + } + + public SpecNested withNewSpec() { + return new SpecNested(null); + } + + public SpecNested withNewSpecLike(V1beta2ResourceClaimSpec item) { + return new SpecNested(item); + } + + public SpecNested editSpec() { + return withNewSpecLike(java.util.Optional.ofNullable(buildSpec()).orElse(null)); + } + + public SpecNested editOrNewSpec() { + return withNewSpecLike(java.util.Optional.ofNullable(buildSpec()).orElse(new V1beta2ResourceClaimSpecBuilder().build())); + } + + public SpecNested editOrNewSpecLike(V1beta2ResourceClaimSpec item) { + return withNewSpecLike(java.util.Optional.ofNullable(buildSpec()).orElse(item)); + } + + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + if (!super.equals(o)) return false; + V1beta2ResourceClaimTemplateSpecFluent that = (V1beta2ResourceClaimTemplateSpecFluent) o; + if (!java.util.Objects.equals(metadata, that.metadata)) return false; + if (!java.util.Objects.equals(spec, that.spec)) return false; + return true; + } + + public int hashCode() { + return java.util.Objects.hash(metadata, spec, super.hashCode()); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (metadata != null) { sb.append("metadata:"); sb.append(metadata + ","); } + if (spec != null) { sb.append("spec:"); sb.append(spec); } + sb.append("}"); + return sb.toString(); + } + public class MetadataNested extends V1ObjectMetaFluent> implements Nested{ + MetadataNested(V1ObjectMeta item) { + this.builder = new V1ObjectMetaBuilder(this, item); + } + V1ObjectMetaBuilder builder; + + public N and() { + return (N) V1beta2ResourceClaimTemplateSpecFluent.this.withMetadata(builder.build()); + } + + public N endMetadata() { + return and(); + } + + + } + public class SpecNested extends V1beta2ResourceClaimSpecFluent> implements Nested{ + SpecNested(V1beta2ResourceClaimSpec item) { + this.builder = new V1beta2ResourceClaimSpecBuilder(this, item); + } + V1beta2ResourceClaimSpecBuilder builder; + + public N and() { + return (N) V1beta2ResourceClaimTemplateSpecFluent.this.withSpec(builder.build()); + } + + public N endSpec() { + return and(); + } + + + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourcePolicyRuleBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourcePolicyRuleBuilder.java deleted file mode 100644 index d22a5fd551..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourcePolicyRuleBuilder.java +++ /dev/null @@ -1,35 +0,0 @@ -package io.kubernetes.client.openapi.models; - -import io.kubernetes.client.fluent.VisitableBuilder; -public class V1beta2ResourcePolicyRuleBuilder extends V1beta2ResourcePolicyRuleFluent implements VisitableBuilder{ - public V1beta2ResourcePolicyRuleBuilder() { - this(new V1beta2ResourcePolicyRule()); - } - - public V1beta2ResourcePolicyRuleBuilder(V1beta2ResourcePolicyRuleFluent fluent) { - this(fluent, new V1beta2ResourcePolicyRule()); - } - - public V1beta2ResourcePolicyRuleBuilder(V1beta2ResourcePolicyRuleFluent fluent,V1beta2ResourcePolicyRule instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - - public V1beta2ResourcePolicyRuleBuilder(V1beta2ResourcePolicyRule instance) { - this.fluent = this; - this.copyInstance(instance); - } - V1beta2ResourcePolicyRuleFluent fluent; - - public V1beta2ResourcePolicyRule build() { - V1beta2ResourcePolicyRule buildable = new V1beta2ResourcePolicyRule(); - buildable.setApiGroups(fluent.getApiGroups()); - buildable.setClusterScope(fluent.getClusterScope()); - buildable.setNamespaces(fluent.getNamespaces()); - buildable.setResources(fluent.getResources()); - buildable.setVerbs(fluent.getVerbs()); - return buildable; - } - - -} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourcePolicyRuleFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourcePolicyRuleFluent.java deleted file mode 100644 index 467dd01763..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourcePolicyRuleFluent.java +++ /dev/null @@ -1,464 +0,0 @@ -package io.kubernetes.client.openapi.models; - -import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.BaseFluent; -import java.util.ArrayList; -import java.util.Collection; -import java.lang.Object; -import java.util.List; -import java.lang.String; -import java.lang.Boolean; -import java.util.function.Predicate; - -/** - * Generated - */ -@SuppressWarnings("unchecked") -public class V1beta2ResourcePolicyRuleFluent> extends BaseFluent{ - public V1beta2ResourcePolicyRuleFluent() { - } - - public V1beta2ResourcePolicyRuleFluent(V1beta2ResourcePolicyRule instance) { - this.copyInstance(instance); - } - private List apiGroups; - private Boolean clusterScope; - private List namespaces; - private List resources; - private List verbs; - - protected void copyInstance(V1beta2ResourcePolicyRule instance) { - instance = (instance != null ? instance : new V1beta2ResourcePolicyRule()); - if (instance != null) { - this.withApiGroups(instance.getApiGroups()); - this.withClusterScope(instance.getClusterScope()); - this.withNamespaces(instance.getNamespaces()); - this.withResources(instance.getResources()); - this.withVerbs(instance.getVerbs()); - } - } - - public A addToApiGroups(int index,String item) { - if (this.apiGroups == null) {this.apiGroups = new ArrayList();} - this.apiGroups.add(index, item); - return (A)this; - } - - public A setToApiGroups(int index,String item) { - if (this.apiGroups == null) {this.apiGroups = new ArrayList();} - this.apiGroups.set(index, item); return (A)this; - } - - public A addToApiGroups(java.lang.String... items) { - if (this.apiGroups == null) {this.apiGroups = new ArrayList();} - for (String item : items) {this.apiGroups.add(item);} return (A)this; - } - - public A addAllToApiGroups(Collection items) { - if (this.apiGroups == null) {this.apiGroups = new ArrayList();} - for (String item : items) {this.apiGroups.add(item);} return (A)this; - } - - public A removeFromApiGroups(java.lang.String... items) { - if (this.apiGroups == null) return (A)this; - for (String item : items) { this.apiGroups.remove(item);} return (A)this; - } - - public A removeAllFromApiGroups(Collection items) { - if (this.apiGroups == null) return (A)this; - for (String item : items) { this.apiGroups.remove(item);} return (A)this; - } - - public List getApiGroups() { - return this.apiGroups; - } - - public String getApiGroup(int index) { - return this.apiGroups.get(index); - } - - public String getFirstApiGroup() { - return this.apiGroups.get(0); - } - - public String getLastApiGroup() { - return this.apiGroups.get(apiGroups.size() - 1); - } - - public String getMatchingApiGroup(Predicate predicate) { - for (String item : apiGroups) { - if (predicate.test(item)) { - return item; - } - } - return null; - } - - public boolean hasMatchingApiGroup(Predicate predicate) { - for (String item : apiGroups) { - if (predicate.test(item)) { - return true; - } - } - return false; - } - - public A withApiGroups(List apiGroups) { - if (apiGroups != null) { - this.apiGroups = new ArrayList(); - for (String item : apiGroups) { - this.addToApiGroups(item); - } - } else { - this.apiGroups = null; - } - return (A) this; - } - - public A withApiGroups(java.lang.String... apiGroups) { - if (this.apiGroups != null) { - this.apiGroups.clear(); - _visitables.remove("apiGroups"); - } - if (apiGroups != null) { - for (String item : apiGroups) { - this.addToApiGroups(item); - } - } - return (A) this; - } - - public boolean hasApiGroups() { - return this.apiGroups != null && !this.apiGroups.isEmpty(); - } - - public Boolean getClusterScope() { - return this.clusterScope; - } - - public A withClusterScope(Boolean clusterScope) { - this.clusterScope = clusterScope; - return (A) this; - } - - public boolean hasClusterScope() { - return this.clusterScope != null; - } - - public A addToNamespaces(int index,String item) { - if (this.namespaces == null) {this.namespaces = new ArrayList();} - this.namespaces.add(index, item); - return (A)this; - } - - public A setToNamespaces(int index,String item) { - if (this.namespaces == null) {this.namespaces = new ArrayList();} - this.namespaces.set(index, item); return (A)this; - } - - public A addToNamespaces(java.lang.String... items) { - if (this.namespaces == null) {this.namespaces = new ArrayList();} - for (String item : items) {this.namespaces.add(item);} return (A)this; - } - - public A addAllToNamespaces(Collection items) { - if (this.namespaces == null) {this.namespaces = new ArrayList();} - for (String item : items) {this.namespaces.add(item);} return (A)this; - } - - public A removeFromNamespaces(java.lang.String... items) { - if (this.namespaces == null) return (A)this; - for (String item : items) { this.namespaces.remove(item);} return (A)this; - } - - public A removeAllFromNamespaces(Collection items) { - if (this.namespaces == null) return (A)this; - for (String item : items) { this.namespaces.remove(item);} return (A)this; - } - - public List getNamespaces() { - return this.namespaces; - } - - public String getNamespace(int index) { - return this.namespaces.get(index); - } - - public String getFirstNamespace() { - return this.namespaces.get(0); - } - - public String getLastNamespace() { - return this.namespaces.get(namespaces.size() - 1); - } - - public String getMatchingNamespace(Predicate predicate) { - for (String item : namespaces) { - if (predicate.test(item)) { - return item; - } - } - return null; - } - - public boolean hasMatchingNamespace(Predicate predicate) { - for (String item : namespaces) { - if (predicate.test(item)) { - return true; - } - } - return false; - } - - public A withNamespaces(List namespaces) { - if (namespaces != null) { - this.namespaces = new ArrayList(); - for (String item : namespaces) { - this.addToNamespaces(item); - } - } else { - this.namespaces = null; - } - return (A) this; - } - - public A withNamespaces(java.lang.String... namespaces) { - if (this.namespaces != null) { - this.namespaces.clear(); - _visitables.remove("namespaces"); - } - if (namespaces != null) { - for (String item : namespaces) { - this.addToNamespaces(item); - } - } - return (A) this; - } - - public boolean hasNamespaces() { - return this.namespaces != null && !this.namespaces.isEmpty(); - } - - public A addToResources(int index,String item) { - if (this.resources == null) {this.resources = new ArrayList();} - this.resources.add(index, item); - return (A)this; - } - - public A setToResources(int index,String item) { - if (this.resources == null) {this.resources = new ArrayList();} - this.resources.set(index, item); return (A)this; - } - - public A addToResources(java.lang.String... items) { - if (this.resources == null) {this.resources = new ArrayList();} - for (String item : items) {this.resources.add(item);} return (A)this; - } - - public A addAllToResources(Collection items) { - if (this.resources == null) {this.resources = new ArrayList();} - for (String item : items) {this.resources.add(item);} return (A)this; - } - - public A removeFromResources(java.lang.String... items) { - if (this.resources == null) return (A)this; - for (String item : items) { this.resources.remove(item);} return (A)this; - } - - public A removeAllFromResources(Collection items) { - if (this.resources == null) return (A)this; - for (String item : items) { this.resources.remove(item);} return (A)this; - } - - public List getResources() { - return this.resources; - } - - public String getResource(int index) { - return this.resources.get(index); - } - - public String getFirstResource() { - return this.resources.get(0); - } - - public String getLastResource() { - return this.resources.get(resources.size() - 1); - } - - public String getMatchingResource(Predicate predicate) { - for (String item : resources) { - if (predicate.test(item)) { - return item; - } - } - return null; - } - - public boolean hasMatchingResource(Predicate predicate) { - for (String item : resources) { - if (predicate.test(item)) { - return true; - } - } - return false; - } - - public A withResources(List resources) { - if (resources != null) { - this.resources = new ArrayList(); - for (String item : resources) { - this.addToResources(item); - } - } else { - this.resources = null; - } - return (A) this; - } - - public A withResources(java.lang.String... resources) { - if (this.resources != null) { - this.resources.clear(); - _visitables.remove("resources"); - } - if (resources != null) { - for (String item : resources) { - this.addToResources(item); - } - } - return (A) this; - } - - public boolean hasResources() { - return this.resources != null && !this.resources.isEmpty(); - } - - public A addToVerbs(int index,String item) { - if (this.verbs == null) {this.verbs = new ArrayList();} - this.verbs.add(index, item); - return (A)this; - } - - public A setToVerbs(int index,String item) { - if (this.verbs == null) {this.verbs = new ArrayList();} - this.verbs.set(index, item); return (A)this; - } - - public A addToVerbs(java.lang.String... items) { - if (this.verbs == null) {this.verbs = new ArrayList();} - for (String item : items) {this.verbs.add(item);} return (A)this; - } - - public A addAllToVerbs(Collection items) { - if (this.verbs == null) {this.verbs = new ArrayList();} - for (String item : items) {this.verbs.add(item);} return (A)this; - } - - public A removeFromVerbs(java.lang.String... items) { - if (this.verbs == null) return (A)this; - for (String item : items) { this.verbs.remove(item);} return (A)this; - } - - public A removeAllFromVerbs(Collection items) { - if (this.verbs == null) return (A)this; - for (String item : items) { this.verbs.remove(item);} return (A)this; - } - - public List getVerbs() { - return this.verbs; - } - - public String getVerb(int index) { - return this.verbs.get(index); - } - - public String getFirstVerb() { - return this.verbs.get(0); - } - - public String getLastVerb() { - return this.verbs.get(verbs.size() - 1); - } - - public String getMatchingVerb(Predicate predicate) { - for (String item : verbs) { - if (predicate.test(item)) { - return item; - } - } - return null; - } - - public boolean hasMatchingVerb(Predicate predicate) { - for (String item : verbs) { - if (predicate.test(item)) { - return true; - } - } - return false; - } - - public A withVerbs(List verbs) { - if (verbs != null) { - this.verbs = new ArrayList(); - for (String item : verbs) { - this.addToVerbs(item); - } - } else { - this.verbs = null; - } - return (A) this; - } - - public A withVerbs(java.lang.String... verbs) { - if (this.verbs != null) { - this.verbs.clear(); - _visitables.remove("verbs"); - } - if (verbs != null) { - for (String item : verbs) { - this.addToVerbs(item); - } - } - return (A) this; - } - - public boolean hasVerbs() { - return this.verbs != null && !this.verbs.isEmpty(); - } - - public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; - V1beta2ResourcePolicyRuleFluent that = (V1beta2ResourcePolicyRuleFluent) o; - if (!java.util.Objects.equals(apiGroups, that.apiGroups)) return false; - if (!java.util.Objects.equals(clusterScope, that.clusterScope)) return false; - if (!java.util.Objects.equals(namespaces, that.namespaces)) return false; - if (!java.util.Objects.equals(resources, that.resources)) return false; - if (!java.util.Objects.equals(verbs, that.verbs)) return false; - return true; - } - - public int hashCode() { - return java.util.Objects.hash(apiGroups, clusterScope, namespaces, resources, verbs, super.hashCode()); - } - - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("{"); - if (apiGroups != null && !apiGroups.isEmpty()) { sb.append("apiGroups:"); sb.append(apiGroups + ","); } - if (clusterScope != null) { sb.append("clusterScope:"); sb.append(clusterScope + ","); } - if (namespaces != null && !namespaces.isEmpty()) { sb.append("namespaces:"); sb.append(namespaces + ","); } - if (resources != null && !resources.isEmpty()) { sb.append("resources:"); sb.append(resources + ","); } - if (verbs != null && !verbs.isEmpty()) { sb.append("verbs:"); sb.append(verbs); } - sb.append("}"); - return sb.toString(); - } - - public A withClusterScope() { - return withClusterScope(true); - } - - -} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourcePoolBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourcePoolBuilder.java new file mode 100644 index 0000000000..d61fb867d4 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourcePoolBuilder.java @@ -0,0 +1,33 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +public class V1beta2ResourcePoolBuilder extends V1beta2ResourcePoolFluent implements VisitableBuilder{ + public V1beta2ResourcePoolBuilder() { + this(new V1beta2ResourcePool()); + } + + public V1beta2ResourcePoolBuilder(V1beta2ResourcePoolFluent fluent) { + this(fluent, new V1beta2ResourcePool()); + } + + public V1beta2ResourcePoolBuilder(V1beta2ResourcePoolFluent fluent,V1beta2ResourcePool instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1beta2ResourcePoolBuilder(V1beta2ResourcePool instance) { + this.fluent = this; + this.copyInstance(instance); + } + V1beta2ResourcePoolFluent fluent; + + public V1beta2ResourcePool build() { + V1beta2ResourcePool buildable = new V1beta2ResourcePool(); + buildable.setGeneration(fluent.getGeneration()); + buildable.setName(fluent.getName()); + buildable.setResourceSliceCount(fluent.getResourceSliceCount()); + return buildable; + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourcePoolFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourcePoolFluent.java new file mode 100644 index 0000000000..513bf560ba --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourcePoolFluent.java @@ -0,0 +1,98 @@ +package io.kubernetes.client.openapi.models; + +import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Long; +import java.lang.Object; +import java.lang.String; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1beta2ResourcePoolFluent> extends BaseFluent{ + public V1beta2ResourcePoolFluent() { + } + + public V1beta2ResourcePoolFluent(V1beta2ResourcePool instance) { + this.copyInstance(instance); + } + private Long generation; + private String name; + private Long resourceSliceCount; + + protected void copyInstance(V1beta2ResourcePool instance) { + instance = (instance != null ? instance : new V1beta2ResourcePool()); + if (instance != null) { + this.withGeneration(instance.getGeneration()); + this.withName(instance.getName()); + this.withResourceSliceCount(instance.getResourceSliceCount()); + } + } + + public Long getGeneration() { + return this.generation; + } + + public A withGeneration(Long generation) { + this.generation = generation; + return (A) this; + } + + public boolean hasGeneration() { + return this.generation != null; + } + + public String getName() { + return this.name; + } + + public A withName(String name) { + this.name = name; + return (A) this; + } + + public boolean hasName() { + return this.name != null; + } + + public Long getResourceSliceCount() { + return this.resourceSliceCount; + } + + public A withResourceSliceCount(Long resourceSliceCount) { + this.resourceSliceCount = resourceSliceCount; + return (A) this; + } + + public boolean hasResourceSliceCount() { + return this.resourceSliceCount != null; + } + + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + if (!super.equals(o)) return false; + V1beta2ResourcePoolFluent that = (V1beta2ResourcePoolFluent) o; + if (!java.util.Objects.equals(generation, that.generation)) return false; + if (!java.util.Objects.equals(name, that.name)) return false; + if (!java.util.Objects.equals(resourceSliceCount, that.resourceSliceCount)) return false; + return true; + } + + public int hashCode() { + return java.util.Objects.hash(generation, name, resourceSliceCount, super.hashCode()); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (generation != null) { sb.append("generation:"); sb.append(generation + ","); } + if (name != null) { sb.append("name:"); sb.append(name + ","); } + if (resourceSliceCount != null) { sb.append("resourceSliceCount:"); sb.append(resourceSliceCount); } + sb.append("}"); + return sb.toString(); + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceSliceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceSliceBuilder.java new file mode 100644 index 0000000000..cf3240717f --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceSliceBuilder.java @@ -0,0 +1,34 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +public class V1beta2ResourceSliceBuilder extends V1beta2ResourceSliceFluent implements VisitableBuilder{ + public V1beta2ResourceSliceBuilder() { + this(new V1beta2ResourceSlice()); + } + + public V1beta2ResourceSliceBuilder(V1beta2ResourceSliceFluent fluent) { + this(fluent, new V1beta2ResourceSlice()); + } + + public V1beta2ResourceSliceBuilder(V1beta2ResourceSliceFluent fluent,V1beta2ResourceSlice instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1beta2ResourceSliceBuilder(V1beta2ResourceSlice instance) { + this.fluent = this; + this.copyInstance(instance); + } + V1beta2ResourceSliceFluent fluent; + + public V1beta2ResourceSlice build() { + V1beta2ResourceSlice buildable = new V1beta2ResourceSlice(); + buildable.setApiVersion(fluent.getApiVersion()); + buildable.setKind(fluent.getKind()); + buildable.setMetadata(fluent.buildMetadata()); + buildable.setSpec(fluent.buildSpec()); + return buildable; + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceSliceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceSliceFluent.java new file mode 100644 index 0000000000..079bac4042 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceSliceFluent.java @@ -0,0 +1,200 @@ +package io.kubernetes.client.openapi.models; + +import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.Nested; +import java.lang.String; +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Object; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1beta2ResourceSliceFluent> extends BaseFluent{ + public V1beta2ResourceSliceFluent() { + } + + public V1beta2ResourceSliceFluent(V1beta2ResourceSlice instance) { + this.copyInstance(instance); + } + private String apiVersion; + private String kind; + private V1ObjectMetaBuilder metadata; + private V1beta2ResourceSliceSpecBuilder spec; + + protected void copyInstance(V1beta2ResourceSlice instance) { + instance = (instance != null ? instance : new V1beta2ResourceSlice()); + if (instance != null) { + this.withApiVersion(instance.getApiVersion()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); + this.withSpec(instance.getSpec()); + } + } + + public String getApiVersion() { + return this.apiVersion; + } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + + public boolean hasApiVersion() { + return this.apiVersion != null; + } + + public String getKind() { + return this.kind; + } + + public A withKind(String kind) { + this.kind = kind; + return (A) this; + } + + public boolean hasKind() { + return this.kind != null; + } + + public V1ObjectMeta buildMetadata() { + return this.metadata != null ? this.metadata.build() : null; + } + + public A withMetadata(V1ObjectMeta metadata) { + this._visitables.remove("metadata"); + if (metadata != null) { + this.metadata = new V1ObjectMetaBuilder(metadata); + this._visitables.get("metadata").add(this.metadata); + } else { + this.metadata = null; + this._visitables.get("metadata").remove(this.metadata); + } + return (A) this; + } + + public boolean hasMetadata() { + return this.metadata != null; + } + + public MetadataNested withNewMetadata() { + return new MetadataNested(null); + } + + public MetadataNested withNewMetadataLike(V1ObjectMeta item) { + return new MetadataNested(item); + } + + public MetadataNested editMetadata() { + return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(null)); + } + + public MetadataNested editOrNewMetadata() { + return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(new V1ObjectMetaBuilder().build())); + } + + public MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { + return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(item)); + } + + public V1beta2ResourceSliceSpec buildSpec() { + return this.spec != null ? this.spec.build() : null; + } + + public A withSpec(V1beta2ResourceSliceSpec spec) { + this._visitables.remove("spec"); + if (spec != null) { + this.spec = new V1beta2ResourceSliceSpecBuilder(spec); + this._visitables.get("spec").add(this.spec); + } else { + this.spec = null; + this._visitables.get("spec").remove(this.spec); + } + return (A) this; + } + + public boolean hasSpec() { + return this.spec != null; + } + + public SpecNested withNewSpec() { + return new SpecNested(null); + } + + public SpecNested withNewSpecLike(V1beta2ResourceSliceSpec item) { + return new SpecNested(item); + } + + public SpecNested editSpec() { + return withNewSpecLike(java.util.Optional.ofNullable(buildSpec()).orElse(null)); + } + + public SpecNested editOrNewSpec() { + return withNewSpecLike(java.util.Optional.ofNullable(buildSpec()).orElse(new V1beta2ResourceSliceSpecBuilder().build())); + } + + public SpecNested editOrNewSpecLike(V1beta2ResourceSliceSpec item) { + return withNewSpecLike(java.util.Optional.ofNullable(buildSpec()).orElse(item)); + } + + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + if (!super.equals(o)) return false; + V1beta2ResourceSliceFluent that = (V1beta2ResourceSliceFluent) o; + if (!java.util.Objects.equals(apiVersion, that.apiVersion)) return false; + if (!java.util.Objects.equals(kind, that.kind)) return false; + if (!java.util.Objects.equals(metadata, that.metadata)) return false; + if (!java.util.Objects.equals(spec, that.spec)) return false; + return true; + } + + public int hashCode() { + return java.util.Objects.hash(apiVersion, kind, metadata, spec, super.hashCode()); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (apiVersion != null) { sb.append("apiVersion:"); sb.append(apiVersion + ","); } + if (kind != null) { sb.append("kind:"); sb.append(kind + ","); } + if (metadata != null) { sb.append("metadata:"); sb.append(metadata + ","); } + if (spec != null) { sb.append("spec:"); sb.append(spec); } + sb.append("}"); + return sb.toString(); + } + public class MetadataNested extends V1ObjectMetaFluent> implements Nested{ + MetadataNested(V1ObjectMeta item) { + this.builder = new V1ObjectMetaBuilder(this, item); + } + V1ObjectMetaBuilder builder; + + public N and() { + return (N) V1beta2ResourceSliceFluent.this.withMetadata(builder.build()); + } + + public N endMetadata() { + return and(); + } + + + } + public class SpecNested extends V1beta2ResourceSliceSpecFluent> implements Nested{ + SpecNested(V1beta2ResourceSliceSpec item) { + this.builder = new V1beta2ResourceSliceSpecBuilder(this, item); + } + V1beta2ResourceSliceSpecBuilder builder; + + public N and() { + return (N) V1beta2ResourceSliceFluent.this.withSpec(builder.build()); + } + + public N endSpec() { + return and(); + } + + + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceSliceListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceSliceListBuilder.java new file mode 100644 index 0000000000..3f94b7081e --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceSliceListBuilder.java @@ -0,0 +1,34 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +public class V1beta2ResourceSliceListBuilder extends V1beta2ResourceSliceListFluent implements VisitableBuilder{ + public V1beta2ResourceSliceListBuilder() { + this(new V1beta2ResourceSliceList()); + } + + public V1beta2ResourceSliceListBuilder(V1beta2ResourceSliceListFluent fluent) { + this(fluent, new V1beta2ResourceSliceList()); + } + + public V1beta2ResourceSliceListBuilder(V1beta2ResourceSliceListFluent fluent,V1beta2ResourceSliceList instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1beta2ResourceSliceListBuilder(V1beta2ResourceSliceList instance) { + this.fluent = this; + this.copyInstance(instance); + } + V1beta2ResourceSliceListFluent fluent; + + public V1beta2ResourceSliceList build() { + V1beta2ResourceSliceList buildable = new V1beta2ResourceSliceList(); + buildable.setApiVersion(fluent.getApiVersion()); + buildable.setItems(fluent.buildItems()); + buildable.setKind(fluent.getKind()); + buildable.setMetadata(fluent.buildMetadata()); + return buildable; + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceSliceListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceSliceListFluent.java new file mode 100644 index 0000000000..b1970e9192 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceSliceListFluent.java @@ -0,0 +1,331 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.Nested; +import java.util.ArrayList; +import java.lang.String; +import java.util.function.Predicate; +import io.kubernetes.client.fluent.BaseFluent; +import java.util.Iterator; +import java.util.Collection; +import java.lang.Object; +import java.util.List; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1beta2ResourceSliceListFluent> extends BaseFluent{ + public V1beta2ResourceSliceListFluent() { + } + + public V1beta2ResourceSliceListFluent(V1beta2ResourceSliceList instance) { + this.copyInstance(instance); + } + private String apiVersion; + private ArrayList items; + private String kind; + private V1ListMetaBuilder metadata; + + protected void copyInstance(V1beta2ResourceSliceList instance) { + instance = (instance != null ? instance : new V1beta2ResourceSliceList()); + if (instance != null) { + this.withApiVersion(instance.getApiVersion()); + this.withItems(instance.getItems()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); + } + } + + public String getApiVersion() { + return this.apiVersion; + } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + + public boolean hasApiVersion() { + return this.apiVersion != null; + } + + public A addToItems(int index,V1beta2ResourceSlice item) { + if (this.items == null) {this.items = new ArrayList();} + V1beta2ResourceSliceBuilder builder = new V1beta2ResourceSliceBuilder(item); + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.add(index, builder); + } + return (A)this; + } + + public A setToItems(int index,V1beta2ResourceSlice item) { + if (this.items == null) {this.items = new ArrayList();} + V1beta2ResourceSliceBuilder builder = new V1beta2ResourceSliceBuilder(item); + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.set(index, builder); + } + return (A)this; + } + + public A addToItems(io.kubernetes.client.openapi.models.V1beta2ResourceSlice... items) { + if (this.items == null) {this.items = new ArrayList();} + for (V1beta2ResourceSlice item : items) {V1beta2ResourceSliceBuilder builder = new V1beta2ResourceSliceBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; + } + + public A addAllToItems(Collection items) { + if (this.items == null) {this.items = new ArrayList();} + for (V1beta2ResourceSlice item : items) {V1beta2ResourceSliceBuilder builder = new V1beta2ResourceSliceBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; + } + + public A removeFromItems(io.kubernetes.client.openapi.models.V1beta2ResourceSlice... items) { + if (this.items == null) return (A)this; + for (V1beta2ResourceSlice item : items) {V1beta2ResourceSliceBuilder builder = new V1beta2ResourceSliceBuilder(item);_visitables.get("items").remove(builder); this.items.remove(builder);} return (A)this; + } + + public A removeAllFromItems(Collection items) { + if (this.items == null) return (A)this; + for (V1beta2ResourceSlice item : items) {V1beta2ResourceSliceBuilder builder = new V1beta2ResourceSliceBuilder(item);_visitables.get("items").remove(builder); this.items.remove(builder);} return (A)this; + } + + public A removeMatchingFromItems(Predicate predicate) { + if (items == null) return (A) this; + final Iterator each = items.iterator(); + final List visitables = _visitables.get("items"); + while (each.hasNext()) { + V1beta2ResourceSliceBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A)this; + } + + public List buildItems() { + return this.items != null ? build(items) : null; + } + + public V1beta2ResourceSlice buildItem(int index) { + return this.items.get(index).build(); + } + + public V1beta2ResourceSlice buildFirstItem() { + return this.items.get(0).build(); + } + + public V1beta2ResourceSlice buildLastItem() { + return this.items.get(items.size() - 1).build(); + } + + public V1beta2ResourceSlice buildMatchingItem(Predicate predicate) { + for (V1beta2ResourceSliceBuilder item : items) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; + } + + public boolean hasMatchingItem(Predicate predicate) { + for (V1beta2ResourceSliceBuilder item : items) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public A withItems(List items) { + if (this.items != null) { + this._visitables.get("items").clear(); + } + if (items != null) { + this.items = new ArrayList(); + for (V1beta2ResourceSlice item : items) { + this.addToItems(item); + } + } else { + this.items = null; + } + return (A) this; + } + + public A withItems(io.kubernetes.client.openapi.models.V1beta2ResourceSlice... items) { + if (this.items != null) { + this.items.clear(); + _visitables.remove("items"); + } + if (items != null) { + for (V1beta2ResourceSlice item : items) { + this.addToItems(item); + } + } + return (A) this; + } + + public boolean hasItems() { + return this.items != null && !this.items.isEmpty(); + } + + public ItemsNested addNewItem() { + return new ItemsNested(-1, null); + } + + public ItemsNested addNewItemLike(V1beta2ResourceSlice item) { + return new ItemsNested(-1, item); + } + + public ItemsNested setNewItemLike(int index,V1beta2ResourceSlice item) { + return new ItemsNested(index, item); + } + + public ItemsNested editItem(int index) { + if (items.size() <= index) throw new RuntimeException("Can't edit items. Index exceeds size."); + return setNewItemLike(index, buildItem(index)); + } + + public ItemsNested editFirstItem() { + if (items.size() == 0) throw new RuntimeException("Can't edit first items. The list is empty."); + return setNewItemLike(0, buildItem(0)); + } + + public ItemsNested editLastItem() { + int index = items.size() - 1; + if (index < 0) throw new RuntimeException("Can't edit last items. The list is empty."); + return setNewItemLike(index, buildItem(index)); + } + + public ItemsNested editMatchingItem(Predicate predicate) { + int index = -1; + for (int i=0;i withNewMetadata() { + return new MetadataNested(null); + } + + public MetadataNested withNewMetadataLike(V1ListMeta item) { + return new MetadataNested(item); + } + + public MetadataNested editMetadata() { + return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(null)); + } + + public MetadataNested editOrNewMetadata() { + return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(new V1ListMetaBuilder().build())); + } + + public MetadataNested editOrNewMetadataLike(V1ListMeta item) { + return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(item)); + } + + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + if (!super.equals(o)) return false; + V1beta2ResourceSliceListFluent that = (V1beta2ResourceSliceListFluent) o; + if (!java.util.Objects.equals(apiVersion, that.apiVersion)) return false; + if (!java.util.Objects.equals(items, that.items)) return false; + if (!java.util.Objects.equals(kind, that.kind)) return false; + if (!java.util.Objects.equals(metadata, that.metadata)) return false; + return true; + } + + public int hashCode() { + return java.util.Objects.hash(apiVersion, items, kind, metadata, super.hashCode()); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (apiVersion != null) { sb.append("apiVersion:"); sb.append(apiVersion + ","); } + if (items != null && !items.isEmpty()) { sb.append("items:"); sb.append(items + ","); } + if (kind != null) { sb.append("kind:"); sb.append(kind + ","); } + if (metadata != null) { sb.append("metadata:"); sb.append(metadata); } + sb.append("}"); + return sb.toString(); + } + public class ItemsNested extends V1beta2ResourceSliceFluent> implements Nested{ + ItemsNested(int index,V1beta2ResourceSlice item) { + this.index = index; + this.builder = new V1beta2ResourceSliceBuilder(this, item); + } + V1beta2ResourceSliceBuilder builder; + int index; + + public N and() { + return (N) V1beta2ResourceSliceListFluent.this.setToItems(index,builder.build()); + } + + public N endItem() { + return and(); + } + + + } + public class MetadataNested extends V1ListMetaFluent> implements Nested{ + MetadataNested(V1ListMeta item) { + this.builder = new V1ListMetaBuilder(this, item); + } + V1ListMetaBuilder builder; + + public N and() { + return (N) V1beta2ResourceSliceListFluent.this.withMetadata(builder.build()); + } + + public N endMetadata() { + return and(); + } + + + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceSliceSpecBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceSliceSpecBuilder.java new file mode 100644 index 0000000000..d3dcfeeb08 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceSliceSpecBuilder.java @@ -0,0 +1,38 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +public class V1beta2ResourceSliceSpecBuilder extends V1beta2ResourceSliceSpecFluent implements VisitableBuilder{ + public V1beta2ResourceSliceSpecBuilder() { + this(new V1beta2ResourceSliceSpec()); + } + + public V1beta2ResourceSliceSpecBuilder(V1beta2ResourceSliceSpecFluent fluent) { + this(fluent, new V1beta2ResourceSliceSpec()); + } + + public V1beta2ResourceSliceSpecBuilder(V1beta2ResourceSliceSpecFluent fluent,V1beta2ResourceSliceSpec instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1beta2ResourceSliceSpecBuilder(V1beta2ResourceSliceSpec instance) { + this.fluent = this; + this.copyInstance(instance); + } + V1beta2ResourceSliceSpecFluent fluent; + + public V1beta2ResourceSliceSpec build() { + V1beta2ResourceSliceSpec buildable = new V1beta2ResourceSliceSpec(); + buildable.setAllNodes(fluent.getAllNodes()); + buildable.setDevices(fluent.buildDevices()); + buildable.setDriver(fluent.getDriver()); + buildable.setNodeName(fluent.getNodeName()); + buildable.setNodeSelector(fluent.buildNodeSelector()); + buildable.setPerDeviceNodeSelection(fluent.getPerDeviceNodeSelection()); + buildable.setPool(fluent.buildPool()); + buildable.setSharedCounters(fluent.buildSharedCounters()); + return buildable; + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceSliceSpecFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceSliceSpecFluent.java new file mode 100644 index 0000000000..9e4c75b9f6 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceSliceSpecFluent.java @@ -0,0 +1,619 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.Nested; +import java.util.ArrayList; +import java.lang.String; +import java.util.function.Predicate; +import io.kubernetes.client.fluent.BaseFluent; +import java.util.Iterator; +import java.util.List; +import java.lang.Boolean; +import java.util.Collection; +import java.lang.Object; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1beta2ResourceSliceSpecFluent> extends BaseFluent{ + public V1beta2ResourceSliceSpecFluent() { + } + + public V1beta2ResourceSliceSpecFluent(V1beta2ResourceSliceSpec instance) { + this.copyInstance(instance); + } + private Boolean allNodes; + private ArrayList devices; + private String driver; + private String nodeName; + private V1NodeSelectorBuilder nodeSelector; + private Boolean perDeviceNodeSelection; + private V1beta2ResourcePoolBuilder pool; + private ArrayList sharedCounters; + + protected void copyInstance(V1beta2ResourceSliceSpec instance) { + instance = (instance != null ? instance : new V1beta2ResourceSliceSpec()); + if (instance != null) { + this.withAllNodes(instance.getAllNodes()); + this.withDevices(instance.getDevices()); + this.withDriver(instance.getDriver()); + this.withNodeName(instance.getNodeName()); + this.withNodeSelector(instance.getNodeSelector()); + this.withPerDeviceNodeSelection(instance.getPerDeviceNodeSelection()); + this.withPool(instance.getPool()); + this.withSharedCounters(instance.getSharedCounters()); + } + } + + public Boolean getAllNodes() { + return this.allNodes; + } + + public A withAllNodes(Boolean allNodes) { + this.allNodes = allNodes; + return (A) this; + } + + public boolean hasAllNodes() { + return this.allNodes != null; + } + + public A addToDevices(int index,V1beta2Device item) { + if (this.devices == null) {this.devices = new ArrayList();} + V1beta2DeviceBuilder builder = new V1beta2DeviceBuilder(item); + if (index < 0 || index >= devices.size()) { + _visitables.get("devices").add(builder); + devices.add(builder); + } else { + _visitables.get("devices").add(builder); + devices.add(index, builder); + } + return (A)this; + } + + public A setToDevices(int index,V1beta2Device item) { + if (this.devices == null) {this.devices = new ArrayList();} + V1beta2DeviceBuilder builder = new V1beta2DeviceBuilder(item); + if (index < 0 || index >= devices.size()) { + _visitables.get("devices").add(builder); + devices.add(builder); + } else { + _visitables.get("devices").add(builder); + devices.set(index, builder); + } + return (A)this; + } + + public A addToDevices(io.kubernetes.client.openapi.models.V1beta2Device... items) { + if (this.devices == null) {this.devices = new ArrayList();} + for (V1beta2Device item : items) {V1beta2DeviceBuilder builder = new V1beta2DeviceBuilder(item);_visitables.get("devices").add(builder);this.devices.add(builder);} return (A)this; + } + + public A addAllToDevices(Collection items) { + if (this.devices == null) {this.devices = new ArrayList();} + for (V1beta2Device item : items) {V1beta2DeviceBuilder builder = new V1beta2DeviceBuilder(item);_visitables.get("devices").add(builder);this.devices.add(builder);} return (A)this; + } + + public A removeFromDevices(io.kubernetes.client.openapi.models.V1beta2Device... items) { + if (this.devices == null) return (A)this; + for (V1beta2Device item : items) {V1beta2DeviceBuilder builder = new V1beta2DeviceBuilder(item);_visitables.get("devices").remove(builder); this.devices.remove(builder);} return (A)this; + } + + public A removeAllFromDevices(Collection items) { + if (this.devices == null) return (A)this; + for (V1beta2Device item : items) {V1beta2DeviceBuilder builder = new V1beta2DeviceBuilder(item);_visitables.get("devices").remove(builder); this.devices.remove(builder);} return (A)this; + } + + public A removeMatchingFromDevices(Predicate predicate) { + if (devices == null) return (A) this; + final Iterator each = devices.iterator(); + final List visitables = _visitables.get("devices"); + while (each.hasNext()) { + V1beta2DeviceBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A)this; + } + + public List buildDevices() { + return this.devices != null ? build(devices) : null; + } + + public V1beta2Device buildDevice(int index) { + return this.devices.get(index).build(); + } + + public V1beta2Device buildFirstDevice() { + return this.devices.get(0).build(); + } + + public V1beta2Device buildLastDevice() { + return this.devices.get(devices.size() - 1).build(); + } + + public V1beta2Device buildMatchingDevice(Predicate predicate) { + for (V1beta2DeviceBuilder item : devices) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; + } + + public boolean hasMatchingDevice(Predicate predicate) { + for (V1beta2DeviceBuilder item : devices) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public A withDevices(List devices) { + if (this.devices != null) { + this._visitables.get("devices").clear(); + } + if (devices != null) { + this.devices = new ArrayList(); + for (V1beta2Device item : devices) { + this.addToDevices(item); + } + } else { + this.devices = null; + } + return (A) this; + } + + public A withDevices(io.kubernetes.client.openapi.models.V1beta2Device... devices) { + if (this.devices != null) { + this.devices.clear(); + _visitables.remove("devices"); + } + if (devices != null) { + for (V1beta2Device item : devices) { + this.addToDevices(item); + } + } + return (A) this; + } + + public boolean hasDevices() { + return this.devices != null && !this.devices.isEmpty(); + } + + public DevicesNested addNewDevice() { + return new DevicesNested(-1, null); + } + + public DevicesNested addNewDeviceLike(V1beta2Device item) { + return new DevicesNested(-1, item); + } + + public DevicesNested setNewDeviceLike(int index,V1beta2Device item) { + return new DevicesNested(index, item); + } + + public DevicesNested editDevice(int index) { + if (devices.size() <= index) throw new RuntimeException("Can't edit devices. Index exceeds size."); + return setNewDeviceLike(index, buildDevice(index)); + } + + public DevicesNested editFirstDevice() { + if (devices.size() == 0) throw new RuntimeException("Can't edit first devices. The list is empty."); + return setNewDeviceLike(0, buildDevice(0)); + } + + public DevicesNested editLastDevice() { + int index = devices.size() - 1; + if (index < 0) throw new RuntimeException("Can't edit last devices. The list is empty."); + return setNewDeviceLike(index, buildDevice(index)); + } + + public DevicesNested editMatchingDevice(Predicate predicate) { + int index = -1; + for (int i=0;i withNewNodeSelector() { + return new NodeSelectorNested(null); + } + + public NodeSelectorNested withNewNodeSelectorLike(V1NodeSelector item) { + return new NodeSelectorNested(item); + } + + public NodeSelectorNested editNodeSelector() { + return withNewNodeSelectorLike(java.util.Optional.ofNullable(buildNodeSelector()).orElse(null)); + } + + public NodeSelectorNested editOrNewNodeSelector() { + return withNewNodeSelectorLike(java.util.Optional.ofNullable(buildNodeSelector()).orElse(new V1NodeSelectorBuilder().build())); + } + + public NodeSelectorNested editOrNewNodeSelectorLike(V1NodeSelector item) { + return withNewNodeSelectorLike(java.util.Optional.ofNullable(buildNodeSelector()).orElse(item)); + } + + public Boolean getPerDeviceNodeSelection() { + return this.perDeviceNodeSelection; + } + + public A withPerDeviceNodeSelection(Boolean perDeviceNodeSelection) { + this.perDeviceNodeSelection = perDeviceNodeSelection; + return (A) this; + } + + public boolean hasPerDeviceNodeSelection() { + return this.perDeviceNodeSelection != null; + } + + public V1beta2ResourcePool buildPool() { + return this.pool != null ? this.pool.build() : null; + } + + public A withPool(V1beta2ResourcePool pool) { + this._visitables.remove("pool"); + if (pool != null) { + this.pool = new V1beta2ResourcePoolBuilder(pool); + this._visitables.get("pool").add(this.pool); + } else { + this.pool = null; + this._visitables.get("pool").remove(this.pool); + } + return (A) this; + } + + public boolean hasPool() { + return this.pool != null; + } + + public PoolNested withNewPool() { + return new PoolNested(null); + } + + public PoolNested withNewPoolLike(V1beta2ResourcePool item) { + return new PoolNested(item); + } + + public PoolNested editPool() { + return withNewPoolLike(java.util.Optional.ofNullable(buildPool()).orElse(null)); + } + + public PoolNested editOrNewPool() { + return withNewPoolLike(java.util.Optional.ofNullable(buildPool()).orElse(new V1beta2ResourcePoolBuilder().build())); + } + + public PoolNested editOrNewPoolLike(V1beta2ResourcePool item) { + return withNewPoolLike(java.util.Optional.ofNullable(buildPool()).orElse(item)); + } + + public A addToSharedCounters(int index,V1beta2CounterSet item) { + if (this.sharedCounters == null) {this.sharedCounters = new ArrayList();} + V1beta2CounterSetBuilder builder = new V1beta2CounterSetBuilder(item); + if (index < 0 || index >= sharedCounters.size()) { + _visitables.get("sharedCounters").add(builder); + sharedCounters.add(builder); + } else { + _visitables.get("sharedCounters").add(builder); + sharedCounters.add(index, builder); + } + return (A)this; + } + + public A setToSharedCounters(int index,V1beta2CounterSet item) { + if (this.sharedCounters == null) {this.sharedCounters = new ArrayList();} + V1beta2CounterSetBuilder builder = new V1beta2CounterSetBuilder(item); + if (index < 0 || index >= sharedCounters.size()) { + _visitables.get("sharedCounters").add(builder); + sharedCounters.add(builder); + } else { + _visitables.get("sharedCounters").add(builder); + sharedCounters.set(index, builder); + } + return (A)this; + } + + public A addToSharedCounters(io.kubernetes.client.openapi.models.V1beta2CounterSet... items) { + if (this.sharedCounters == null) {this.sharedCounters = new ArrayList();} + for (V1beta2CounterSet item : items) {V1beta2CounterSetBuilder builder = new V1beta2CounterSetBuilder(item);_visitables.get("sharedCounters").add(builder);this.sharedCounters.add(builder);} return (A)this; + } + + public A addAllToSharedCounters(Collection items) { + if (this.sharedCounters == null) {this.sharedCounters = new ArrayList();} + for (V1beta2CounterSet item : items) {V1beta2CounterSetBuilder builder = new V1beta2CounterSetBuilder(item);_visitables.get("sharedCounters").add(builder);this.sharedCounters.add(builder);} return (A)this; + } + + public A removeFromSharedCounters(io.kubernetes.client.openapi.models.V1beta2CounterSet... items) { + if (this.sharedCounters == null) return (A)this; + for (V1beta2CounterSet item : items) {V1beta2CounterSetBuilder builder = new V1beta2CounterSetBuilder(item);_visitables.get("sharedCounters").remove(builder); this.sharedCounters.remove(builder);} return (A)this; + } + + public A removeAllFromSharedCounters(Collection items) { + if (this.sharedCounters == null) return (A)this; + for (V1beta2CounterSet item : items) {V1beta2CounterSetBuilder builder = new V1beta2CounterSetBuilder(item);_visitables.get("sharedCounters").remove(builder); this.sharedCounters.remove(builder);} return (A)this; + } + + public A removeMatchingFromSharedCounters(Predicate predicate) { + if (sharedCounters == null) return (A) this; + final Iterator each = sharedCounters.iterator(); + final List visitables = _visitables.get("sharedCounters"); + while (each.hasNext()) { + V1beta2CounterSetBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A)this; + } + + public List buildSharedCounters() { + return this.sharedCounters != null ? build(sharedCounters) : null; + } + + public V1beta2CounterSet buildSharedCounter(int index) { + return this.sharedCounters.get(index).build(); + } + + public V1beta2CounterSet buildFirstSharedCounter() { + return this.sharedCounters.get(0).build(); + } + + public V1beta2CounterSet buildLastSharedCounter() { + return this.sharedCounters.get(sharedCounters.size() - 1).build(); + } + + public V1beta2CounterSet buildMatchingSharedCounter(Predicate predicate) { + for (V1beta2CounterSetBuilder item : sharedCounters) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; + } + + public boolean hasMatchingSharedCounter(Predicate predicate) { + for (V1beta2CounterSetBuilder item : sharedCounters) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public A withSharedCounters(List sharedCounters) { + if (this.sharedCounters != null) { + this._visitables.get("sharedCounters").clear(); + } + if (sharedCounters != null) { + this.sharedCounters = new ArrayList(); + for (V1beta2CounterSet item : sharedCounters) { + this.addToSharedCounters(item); + } + } else { + this.sharedCounters = null; + } + return (A) this; + } + + public A withSharedCounters(io.kubernetes.client.openapi.models.V1beta2CounterSet... sharedCounters) { + if (this.sharedCounters != null) { + this.sharedCounters.clear(); + _visitables.remove("sharedCounters"); + } + if (sharedCounters != null) { + for (V1beta2CounterSet item : sharedCounters) { + this.addToSharedCounters(item); + } + } + return (A) this; + } + + public boolean hasSharedCounters() { + return this.sharedCounters != null && !this.sharedCounters.isEmpty(); + } + + public SharedCountersNested addNewSharedCounter() { + return new SharedCountersNested(-1, null); + } + + public SharedCountersNested addNewSharedCounterLike(V1beta2CounterSet item) { + return new SharedCountersNested(-1, item); + } + + public SharedCountersNested setNewSharedCounterLike(int index,V1beta2CounterSet item) { + return new SharedCountersNested(index, item); + } + + public SharedCountersNested editSharedCounter(int index) { + if (sharedCounters.size() <= index) throw new RuntimeException("Can't edit sharedCounters. Index exceeds size."); + return setNewSharedCounterLike(index, buildSharedCounter(index)); + } + + public SharedCountersNested editFirstSharedCounter() { + if (sharedCounters.size() == 0) throw new RuntimeException("Can't edit first sharedCounters. The list is empty."); + return setNewSharedCounterLike(0, buildSharedCounter(0)); + } + + public SharedCountersNested editLastSharedCounter() { + int index = sharedCounters.size() - 1; + if (index < 0) throw new RuntimeException("Can't edit last sharedCounters. The list is empty."); + return setNewSharedCounterLike(index, buildSharedCounter(index)); + } + + public SharedCountersNested editMatchingSharedCounter(Predicate predicate) { + int index = -1; + for (int i=0;i extends V1beta2DeviceFluent> implements Nested{ + DevicesNested(int index,V1beta2Device item) { + this.index = index; + this.builder = new V1beta2DeviceBuilder(this, item); + } + V1beta2DeviceBuilder builder; + int index; + + public N and() { + return (N) V1beta2ResourceSliceSpecFluent.this.setToDevices(index,builder.build()); + } + + public N endDevice() { + return and(); + } + + + } + public class NodeSelectorNested extends V1NodeSelectorFluent> implements Nested{ + NodeSelectorNested(V1NodeSelector item) { + this.builder = new V1NodeSelectorBuilder(this, item); + } + V1NodeSelectorBuilder builder; + + public N and() { + return (N) V1beta2ResourceSliceSpecFluent.this.withNodeSelector(builder.build()); + } + + public N endNodeSelector() { + return and(); + } + + + } + public class PoolNested extends V1beta2ResourcePoolFluent> implements Nested{ + PoolNested(V1beta2ResourcePool item) { + this.builder = new V1beta2ResourcePoolBuilder(this, item); + } + V1beta2ResourcePoolBuilder builder; + + public N and() { + return (N) V1beta2ResourceSliceSpecFluent.this.withPool(builder.build()); + } + + public N endPool() { + return and(); + } + + + } + public class SharedCountersNested extends V1beta2CounterSetFluent> implements Nested{ + SharedCountersNested(int index,V1beta2CounterSet item) { + this.index = index; + this.builder = new V1beta2CounterSetBuilder(this, item); + } + V1beta2CounterSetBuilder builder; + int index; + + public N and() { + return (N) V1beta2ResourceSliceSpecFluent.this.setToSharedCounters(index,builder.build()); + } + + public N endSharedCounter() { + return and(); + } + + + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ServiceAccountSubjectBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ServiceAccountSubjectBuilder.java deleted file mode 100644 index fa07284b78..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ServiceAccountSubjectBuilder.java +++ /dev/null @@ -1,32 +0,0 @@ -package io.kubernetes.client.openapi.models; - -import io.kubernetes.client.fluent.VisitableBuilder; -public class V1beta2ServiceAccountSubjectBuilder extends V1beta2ServiceAccountSubjectFluent implements VisitableBuilder{ - public V1beta2ServiceAccountSubjectBuilder() { - this(new V1beta2ServiceAccountSubject()); - } - - public V1beta2ServiceAccountSubjectBuilder(V1beta2ServiceAccountSubjectFluent fluent) { - this(fluent, new V1beta2ServiceAccountSubject()); - } - - public V1beta2ServiceAccountSubjectBuilder(V1beta2ServiceAccountSubjectFluent fluent,V1beta2ServiceAccountSubject instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - - public V1beta2ServiceAccountSubjectBuilder(V1beta2ServiceAccountSubject instance) { - this.fluent = this; - this.copyInstance(instance); - } - V1beta2ServiceAccountSubjectFluent fluent; - - public V1beta2ServiceAccountSubject build() { - V1beta2ServiceAccountSubject buildable = new V1beta2ServiceAccountSubject(); - buildable.setName(fluent.getName()); - buildable.setNamespace(fluent.getNamespace()); - return buildable; - } - - -} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ServiceAccountSubjectFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ServiceAccountSubjectFluent.java deleted file mode 100644 index fe0159f850..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ServiceAccountSubjectFluent.java +++ /dev/null @@ -1,80 +0,0 @@ -package io.kubernetes.client.openapi.models; - -import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.BaseFluent; -import java.lang.Object; -import java.lang.String; - -/** - * Generated - */ -@SuppressWarnings("unchecked") -public class V1beta2ServiceAccountSubjectFluent> extends BaseFluent{ - public V1beta2ServiceAccountSubjectFluent() { - } - - public V1beta2ServiceAccountSubjectFluent(V1beta2ServiceAccountSubject instance) { - this.copyInstance(instance); - } - private String name; - private String namespace; - - protected void copyInstance(V1beta2ServiceAccountSubject instance) { - instance = (instance != null ? instance : new V1beta2ServiceAccountSubject()); - if (instance != null) { - this.withName(instance.getName()); - this.withNamespace(instance.getNamespace()); - } - } - - public String getName() { - return this.name; - } - - public A withName(String name) { - this.name = name; - return (A) this; - } - - public boolean hasName() { - return this.name != null; - } - - public String getNamespace() { - return this.namespace; - } - - public A withNamespace(String namespace) { - this.namespace = namespace; - return (A) this; - } - - public boolean hasNamespace() { - return this.namespace != null; - } - - public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; - V1beta2ServiceAccountSubjectFluent that = (V1beta2ServiceAccountSubjectFluent) o; - if (!java.util.Objects.equals(name, that.name)) return false; - if (!java.util.Objects.equals(namespace, that.namespace)) return false; - return true; - } - - public int hashCode() { - return java.util.Objects.hash(name, namespace, super.hashCode()); - } - - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("{"); - if (name != null) { sb.append("name:"); sb.append(name + ","); } - if (namespace != null) { sb.append("namespace:"); sb.append(namespace); } - sb.append("}"); - return sb.toString(); - } - - -} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2SubjectBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2SubjectBuilder.java deleted file mode 100644 index 9687a28fd1..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2SubjectBuilder.java +++ /dev/null @@ -1,34 +0,0 @@ -package io.kubernetes.client.openapi.models; - -import io.kubernetes.client.fluent.VisitableBuilder; -public class V1beta2SubjectBuilder extends V1beta2SubjectFluent implements VisitableBuilder{ - public V1beta2SubjectBuilder() { - this(new V1beta2Subject()); - } - - public V1beta2SubjectBuilder(V1beta2SubjectFluent fluent) { - this(fluent, new V1beta2Subject()); - } - - public V1beta2SubjectBuilder(V1beta2SubjectFluent fluent,V1beta2Subject instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - - public V1beta2SubjectBuilder(V1beta2Subject instance) { - this.fluent = this; - this.copyInstance(instance); - } - V1beta2SubjectFluent fluent; - - public V1beta2Subject build() { - V1beta2Subject buildable = new V1beta2Subject(); - buildable.setGroup(fluent.buildGroup()); - buildable.setKind(fluent.getKind()); - buildable.setServiceAccount(fluent.buildServiceAccount()); - buildable.setUser(fluent.buildUser()); - return buildable; - } - - -} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2SubjectFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2SubjectFluent.java deleted file mode 100644 index b986c9863a..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2SubjectFluent.java +++ /dev/null @@ -1,243 +0,0 @@ -package io.kubernetes.client.openapi.models; - -import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.Nested; -import java.lang.String; -import io.kubernetes.client.fluent.BaseFluent; -import java.lang.Object; - -/** - * Generated - */ -@SuppressWarnings("unchecked") -public class V1beta2SubjectFluent> extends BaseFluent{ - public V1beta2SubjectFluent() { - } - - public V1beta2SubjectFluent(V1beta2Subject instance) { - this.copyInstance(instance); - } - private V1beta2GroupSubjectBuilder group; - private String kind; - private V1beta2ServiceAccountSubjectBuilder serviceAccount; - private V1beta2UserSubjectBuilder user; - - protected void copyInstance(V1beta2Subject instance) { - instance = (instance != null ? instance : new V1beta2Subject()); - if (instance != null) { - this.withGroup(instance.getGroup()); - this.withKind(instance.getKind()); - this.withServiceAccount(instance.getServiceAccount()); - this.withUser(instance.getUser()); - } - } - - public V1beta2GroupSubject buildGroup() { - return this.group != null ? this.group.build() : null; - } - - public A withGroup(V1beta2GroupSubject group) { - this._visitables.remove("group"); - if (group != null) { - this.group = new V1beta2GroupSubjectBuilder(group); - this._visitables.get("group").add(this.group); - } else { - this.group = null; - this._visitables.get("group").remove(this.group); - } - return (A) this; - } - - public boolean hasGroup() { - return this.group != null; - } - - public GroupNested withNewGroup() { - return new GroupNested(null); - } - - public GroupNested withNewGroupLike(V1beta2GroupSubject item) { - return new GroupNested(item); - } - - public GroupNested editGroup() { - return withNewGroupLike(java.util.Optional.ofNullable(buildGroup()).orElse(null)); - } - - public GroupNested editOrNewGroup() { - return withNewGroupLike(java.util.Optional.ofNullable(buildGroup()).orElse(new V1beta2GroupSubjectBuilder().build())); - } - - public GroupNested editOrNewGroupLike(V1beta2GroupSubject item) { - return withNewGroupLike(java.util.Optional.ofNullable(buildGroup()).orElse(item)); - } - - public String getKind() { - return this.kind; - } - - public A withKind(String kind) { - this.kind = kind; - return (A) this; - } - - public boolean hasKind() { - return this.kind != null; - } - - public V1beta2ServiceAccountSubject buildServiceAccount() { - return this.serviceAccount != null ? this.serviceAccount.build() : null; - } - - public A withServiceAccount(V1beta2ServiceAccountSubject serviceAccount) { - this._visitables.remove("serviceAccount"); - if (serviceAccount != null) { - this.serviceAccount = new V1beta2ServiceAccountSubjectBuilder(serviceAccount); - this._visitables.get("serviceAccount").add(this.serviceAccount); - } else { - this.serviceAccount = null; - this._visitables.get("serviceAccount").remove(this.serviceAccount); - } - return (A) this; - } - - public boolean hasServiceAccount() { - return this.serviceAccount != null; - } - - public ServiceAccountNested withNewServiceAccount() { - return new ServiceAccountNested(null); - } - - public ServiceAccountNested withNewServiceAccountLike(V1beta2ServiceAccountSubject item) { - return new ServiceAccountNested(item); - } - - public ServiceAccountNested editServiceAccount() { - return withNewServiceAccountLike(java.util.Optional.ofNullable(buildServiceAccount()).orElse(null)); - } - - public ServiceAccountNested editOrNewServiceAccount() { - return withNewServiceAccountLike(java.util.Optional.ofNullable(buildServiceAccount()).orElse(new V1beta2ServiceAccountSubjectBuilder().build())); - } - - public ServiceAccountNested editOrNewServiceAccountLike(V1beta2ServiceAccountSubject item) { - return withNewServiceAccountLike(java.util.Optional.ofNullable(buildServiceAccount()).orElse(item)); - } - - public V1beta2UserSubject buildUser() { - return this.user != null ? this.user.build() : null; - } - - public A withUser(V1beta2UserSubject user) { - this._visitables.remove("user"); - if (user != null) { - this.user = new V1beta2UserSubjectBuilder(user); - this._visitables.get("user").add(this.user); - } else { - this.user = null; - this._visitables.get("user").remove(this.user); - } - return (A) this; - } - - public boolean hasUser() { - return this.user != null; - } - - public UserNested withNewUser() { - return new UserNested(null); - } - - public UserNested withNewUserLike(V1beta2UserSubject item) { - return new UserNested(item); - } - - public UserNested editUser() { - return withNewUserLike(java.util.Optional.ofNullable(buildUser()).orElse(null)); - } - - public UserNested editOrNewUser() { - return withNewUserLike(java.util.Optional.ofNullable(buildUser()).orElse(new V1beta2UserSubjectBuilder().build())); - } - - public UserNested editOrNewUserLike(V1beta2UserSubject item) { - return withNewUserLike(java.util.Optional.ofNullable(buildUser()).orElse(item)); - } - - public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; - V1beta2SubjectFluent that = (V1beta2SubjectFluent) o; - if (!java.util.Objects.equals(group, that.group)) return false; - if (!java.util.Objects.equals(kind, that.kind)) return false; - if (!java.util.Objects.equals(serviceAccount, that.serviceAccount)) return false; - if (!java.util.Objects.equals(user, that.user)) return false; - return true; - } - - public int hashCode() { - return java.util.Objects.hash(group, kind, serviceAccount, user, super.hashCode()); - } - - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("{"); - if (group != null) { sb.append("group:"); sb.append(group + ","); } - if (kind != null) { sb.append("kind:"); sb.append(kind + ","); } - if (serviceAccount != null) { sb.append("serviceAccount:"); sb.append(serviceAccount + ","); } - if (user != null) { sb.append("user:"); sb.append(user); } - sb.append("}"); - return sb.toString(); - } - public class GroupNested extends V1beta2GroupSubjectFluent> implements Nested{ - GroupNested(V1beta2GroupSubject item) { - this.builder = new V1beta2GroupSubjectBuilder(this, item); - } - V1beta2GroupSubjectBuilder builder; - - public N and() { - return (N) V1beta2SubjectFluent.this.withGroup(builder.build()); - } - - public N endGroup() { - return and(); - } - - - } - public class ServiceAccountNested extends V1beta2ServiceAccountSubjectFluent> implements Nested{ - ServiceAccountNested(V1beta2ServiceAccountSubject item) { - this.builder = new V1beta2ServiceAccountSubjectBuilder(this, item); - } - V1beta2ServiceAccountSubjectBuilder builder; - - public N and() { - return (N) V1beta2SubjectFluent.this.withServiceAccount(builder.build()); - } - - public N endServiceAccount() { - return and(); - } - - - } - public class UserNested extends V1beta2UserSubjectFluent> implements Nested{ - UserNested(V1beta2UserSubject item) { - this.builder = new V1beta2UserSubjectBuilder(this, item); - } - V1beta2UserSubjectBuilder builder; - - public N and() { - return (N) V1beta2SubjectFluent.this.withUser(builder.build()); - } - - public N endUser() { - return and(); - } - - - } - -} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2UserSubjectBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2UserSubjectBuilder.java deleted file mode 100644 index 9da9ba9d5b..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2UserSubjectBuilder.java +++ /dev/null @@ -1,31 +0,0 @@ -package io.kubernetes.client.openapi.models; - -import io.kubernetes.client.fluent.VisitableBuilder; -public class V1beta2UserSubjectBuilder extends V1beta2UserSubjectFluent implements VisitableBuilder{ - public V1beta2UserSubjectBuilder() { - this(new V1beta2UserSubject()); - } - - public V1beta2UserSubjectBuilder(V1beta2UserSubjectFluent fluent) { - this(fluent, new V1beta2UserSubject()); - } - - public V1beta2UserSubjectBuilder(V1beta2UserSubjectFluent fluent,V1beta2UserSubject instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - - public V1beta2UserSubjectBuilder(V1beta2UserSubject instance) { - this.fluent = this; - this.copyInstance(instance); - } - V1beta2UserSubjectFluent fluent; - - public V1beta2UserSubject build() { - V1beta2UserSubject buildable = new V1beta2UserSubject(); - buildable.setName(fluent.getName()); - return buildable; - } - - -} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2UserSubjectFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2UserSubjectFluent.java deleted file mode 100644 index 2ab287de8b..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2UserSubjectFluent.java +++ /dev/null @@ -1,63 +0,0 @@ -package io.kubernetes.client.openapi.models; - -import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.BaseFluent; -import java.lang.Object; -import java.lang.String; - -/** - * Generated - */ -@SuppressWarnings("unchecked") -public class V1beta2UserSubjectFluent> extends BaseFluent{ - public V1beta2UserSubjectFluent() { - } - - public V1beta2UserSubjectFluent(V1beta2UserSubject instance) { - this.copyInstance(instance); - } - private String name; - - protected void copyInstance(V1beta2UserSubject instance) { - instance = (instance != null ? instance : new V1beta2UserSubject()); - if (instance != null) { - this.withName(instance.getName()); - } - } - - public String getName() { - return this.name; - } - - public A withName(String name) { - this.name = name; - return (A) this; - } - - public boolean hasName() { - return this.name != null; - } - - public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; - V1beta2UserSubjectFluent that = (V1beta2UserSubjectFluent) o; - if (!java.util.Objects.equals(name, that.name)) return false; - return true; - } - - public int hashCode() { - return java.util.Objects.hash(name, super.hashCode()); - } - - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("{"); - if (name != null) { sb.append("name:"); sb.append(name); } - sb.append("}"); - return sb.toString(); - } - - -} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta3ExemptPriorityLevelConfigurationBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta3ExemptPriorityLevelConfigurationBuilder.java deleted file mode 100644 index 16306658f3..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta3ExemptPriorityLevelConfigurationBuilder.java +++ /dev/null @@ -1,32 +0,0 @@ -package io.kubernetes.client.openapi.models; - -import io.kubernetes.client.fluent.VisitableBuilder; -public class V1beta3ExemptPriorityLevelConfigurationBuilder extends V1beta3ExemptPriorityLevelConfigurationFluent implements VisitableBuilder{ - public V1beta3ExemptPriorityLevelConfigurationBuilder() { - this(new V1beta3ExemptPriorityLevelConfiguration()); - } - - public V1beta3ExemptPriorityLevelConfigurationBuilder(V1beta3ExemptPriorityLevelConfigurationFluent fluent) { - this(fluent, new V1beta3ExemptPriorityLevelConfiguration()); - } - - public V1beta3ExemptPriorityLevelConfigurationBuilder(V1beta3ExemptPriorityLevelConfigurationFluent fluent,V1beta3ExemptPriorityLevelConfiguration instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - - public V1beta3ExemptPriorityLevelConfigurationBuilder(V1beta3ExemptPriorityLevelConfiguration instance) { - this.fluent = this; - this.copyInstance(instance); - } - V1beta3ExemptPriorityLevelConfigurationFluent fluent; - - public V1beta3ExemptPriorityLevelConfiguration build() { - V1beta3ExemptPriorityLevelConfiguration buildable = new V1beta3ExemptPriorityLevelConfiguration(); - buildable.setLendablePercent(fluent.getLendablePercent()); - buildable.setNominalConcurrencyShares(fluent.getNominalConcurrencyShares()); - return buildable; - } - - -} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta3ExemptPriorityLevelConfigurationFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta3ExemptPriorityLevelConfigurationFluent.java deleted file mode 100644 index 235fc841f9..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta3ExemptPriorityLevelConfigurationFluent.java +++ /dev/null @@ -1,81 +0,0 @@ -package io.kubernetes.client.openapi.models; - -import java.lang.Integer; -import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.BaseFluent; -import java.lang.Object; -import java.lang.String; - -/** - * Generated - */ -@SuppressWarnings("unchecked") -public class V1beta3ExemptPriorityLevelConfigurationFluent> extends BaseFluent{ - public V1beta3ExemptPriorityLevelConfigurationFluent() { - } - - public V1beta3ExemptPriorityLevelConfigurationFluent(V1beta3ExemptPriorityLevelConfiguration instance) { - this.copyInstance(instance); - } - private Integer lendablePercent; - private Integer nominalConcurrencyShares; - - protected void copyInstance(V1beta3ExemptPriorityLevelConfiguration instance) { - instance = (instance != null ? instance : new V1beta3ExemptPriorityLevelConfiguration()); - if (instance != null) { - this.withLendablePercent(instance.getLendablePercent()); - this.withNominalConcurrencyShares(instance.getNominalConcurrencyShares()); - } - } - - public Integer getLendablePercent() { - return this.lendablePercent; - } - - public A withLendablePercent(Integer lendablePercent) { - this.lendablePercent = lendablePercent; - return (A) this; - } - - public boolean hasLendablePercent() { - return this.lendablePercent != null; - } - - public Integer getNominalConcurrencyShares() { - return this.nominalConcurrencyShares; - } - - public A withNominalConcurrencyShares(Integer nominalConcurrencyShares) { - this.nominalConcurrencyShares = nominalConcurrencyShares; - return (A) this; - } - - public boolean hasNominalConcurrencyShares() { - return this.nominalConcurrencyShares != null; - } - - public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; - V1beta3ExemptPriorityLevelConfigurationFluent that = (V1beta3ExemptPriorityLevelConfigurationFluent) o; - if (!java.util.Objects.equals(lendablePercent, that.lendablePercent)) return false; - if (!java.util.Objects.equals(nominalConcurrencyShares, that.nominalConcurrencyShares)) return false; - return true; - } - - public int hashCode() { - return java.util.Objects.hash(lendablePercent, nominalConcurrencyShares, super.hashCode()); - } - - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("{"); - if (lendablePercent != null) { sb.append("lendablePercent:"); sb.append(lendablePercent + ","); } - if (nominalConcurrencyShares != null) { sb.append("nominalConcurrencyShares:"); sb.append(nominalConcurrencyShares); } - sb.append("}"); - return sb.toString(); - } - - -} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta3FlowDistinguisherMethodBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta3FlowDistinguisherMethodBuilder.java deleted file mode 100644 index 0630d96a84..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta3FlowDistinguisherMethodBuilder.java +++ /dev/null @@ -1,31 +0,0 @@ -package io.kubernetes.client.openapi.models; - -import io.kubernetes.client.fluent.VisitableBuilder; -public class V1beta3FlowDistinguisherMethodBuilder extends V1beta3FlowDistinguisherMethodFluent implements VisitableBuilder{ - public V1beta3FlowDistinguisherMethodBuilder() { - this(new V1beta3FlowDistinguisherMethod()); - } - - public V1beta3FlowDistinguisherMethodBuilder(V1beta3FlowDistinguisherMethodFluent fluent) { - this(fluent, new V1beta3FlowDistinguisherMethod()); - } - - public V1beta3FlowDistinguisherMethodBuilder(V1beta3FlowDistinguisherMethodFluent fluent,V1beta3FlowDistinguisherMethod instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - - public V1beta3FlowDistinguisherMethodBuilder(V1beta3FlowDistinguisherMethod instance) { - this.fluent = this; - this.copyInstance(instance); - } - V1beta3FlowDistinguisherMethodFluent fluent; - - public V1beta3FlowDistinguisherMethod build() { - V1beta3FlowDistinguisherMethod buildable = new V1beta3FlowDistinguisherMethod(); - buildable.setType(fluent.getType()); - return buildable; - } - - -} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta3FlowDistinguisherMethodFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta3FlowDistinguisherMethodFluent.java deleted file mode 100644 index db4fdcb208..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta3FlowDistinguisherMethodFluent.java +++ /dev/null @@ -1,63 +0,0 @@ -package io.kubernetes.client.openapi.models; - -import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.BaseFluent; -import java.lang.Object; -import java.lang.String; - -/** - * Generated - */ -@SuppressWarnings("unchecked") -public class V1beta3FlowDistinguisherMethodFluent> extends BaseFluent{ - public V1beta3FlowDistinguisherMethodFluent() { - } - - public V1beta3FlowDistinguisherMethodFluent(V1beta3FlowDistinguisherMethod instance) { - this.copyInstance(instance); - } - private String type; - - protected void copyInstance(V1beta3FlowDistinguisherMethod instance) { - instance = (instance != null ? instance : new V1beta3FlowDistinguisherMethod()); - if (instance != null) { - this.withType(instance.getType()); - } - } - - public String getType() { - return this.type; - } - - public A withType(String type) { - this.type = type; - return (A) this; - } - - public boolean hasType() { - return this.type != null; - } - - public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; - V1beta3FlowDistinguisherMethodFluent that = (V1beta3FlowDistinguisherMethodFluent) o; - if (!java.util.Objects.equals(type, that.type)) return false; - return true; - } - - public int hashCode() { - return java.util.Objects.hash(type, super.hashCode()); - } - - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("{"); - if (type != null) { sb.append("type:"); sb.append(type); } - sb.append("}"); - return sb.toString(); - } - - -} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta3FlowSchemaBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta3FlowSchemaBuilder.java deleted file mode 100644 index 6645a2ddaa..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta3FlowSchemaBuilder.java +++ /dev/null @@ -1,35 +0,0 @@ -package io.kubernetes.client.openapi.models; - -import io.kubernetes.client.fluent.VisitableBuilder; -public class V1beta3FlowSchemaBuilder extends V1beta3FlowSchemaFluent implements VisitableBuilder{ - public V1beta3FlowSchemaBuilder() { - this(new V1beta3FlowSchema()); - } - - public V1beta3FlowSchemaBuilder(V1beta3FlowSchemaFluent fluent) { - this(fluent, new V1beta3FlowSchema()); - } - - public V1beta3FlowSchemaBuilder(V1beta3FlowSchemaFluent fluent,V1beta3FlowSchema instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - - public V1beta3FlowSchemaBuilder(V1beta3FlowSchema instance) { - this.fluent = this; - this.copyInstance(instance); - } - V1beta3FlowSchemaFluent fluent; - - public V1beta3FlowSchema build() { - V1beta3FlowSchema buildable = new V1beta3FlowSchema(); - buildable.setApiVersion(fluent.getApiVersion()); - buildable.setKind(fluent.getKind()); - buildable.setMetadata(fluent.buildMetadata()); - buildable.setSpec(fluent.buildSpec()); - buildable.setStatus(fluent.buildStatus()); - return buildable; - } - - -} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta3FlowSchemaConditionBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta3FlowSchemaConditionBuilder.java deleted file mode 100644 index 2a60a81812..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta3FlowSchemaConditionBuilder.java +++ /dev/null @@ -1,35 +0,0 @@ -package io.kubernetes.client.openapi.models; - -import io.kubernetes.client.fluent.VisitableBuilder; -public class V1beta3FlowSchemaConditionBuilder extends V1beta3FlowSchemaConditionFluent implements VisitableBuilder{ - public V1beta3FlowSchemaConditionBuilder() { - this(new V1beta3FlowSchemaCondition()); - } - - public V1beta3FlowSchemaConditionBuilder(V1beta3FlowSchemaConditionFluent fluent) { - this(fluent, new V1beta3FlowSchemaCondition()); - } - - public V1beta3FlowSchemaConditionBuilder(V1beta3FlowSchemaConditionFluent fluent,V1beta3FlowSchemaCondition instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - - public V1beta3FlowSchemaConditionBuilder(V1beta3FlowSchemaCondition instance) { - this.fluent = this; - this.copyInstance(instance); - } - V1beta3FlowSchemaConditionFluent fluent; - - public V1beta3FlowSchemaCondition build() { - V1beta3FlowSchemaCondition buildable = new V1beta3FlowSchemaCondition(); - buildable.setLastTransitionTime(fluent.getLastTransitionTime()); - buildable.setMessage(fluent.getMessage()); - buildable.setReason(fluent.getReason()); - buildable.setStatus(fluent.getStatus()); - buildable.setType(fluent.getType()); - return buildable; - } - - -} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta3FlowSchemaConditionFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta3FlowSchemaConditionFluent.java deleted file mode 100644 index 76e9d95de7..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta3FlowSchemaConditionFluent.java +++ /dev/null @@ -1,132 +0,0 @@ -package io.kubernetes.client.openapi.models; - -import java.time.OffsetDateTime; -import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.BaseFluent; -import java.lang.Object; -import java.lang.String; - -/** - * Generated - */ -@SuppressWarnings("unchecked") -public class V1beta3FlowSchemaConditionFluent> extends BaseFluent{ - public V1beta3FlowSchemaConditionFluent() { - } - - public V1beta3FlowSchemaConditionFluent(V1beta3FlowSchemaCondition instance) { - this.copyInstance(instance); - } - private OffsetDateTime lastTransitionTime; - private String message; - private String reason; - private String status; - private String type; - - protected void copyInstance(V1beta3FlowSchemaCondition instance) { - instance = (instance != null ? instance : new V1beta3FlowSchemaCondition()); - if (instance != null) { - this.withLastTransitionTime(instance.getLastTransitionTime()); - this.withMessage(instance.getMessage()); - this.withReason(instance.getReason()); - this.withStatus(instance.getStatus()); - this.withType(instance.getType()); - } - } - - public OffsetDateTime getLastTransitionTime() { - return this.lastTransitionTime; - } - - public A withLastTransitionTime(OffsetDateTime lastTransitionTime) { - this.lastTransitionTime = lastTransitionTime; - return (A) this; - } - - public boolean hasLastTransitionTime() { - return this.lastTransitionTime != null; - } - - public String getMessage() { - return this.message; - } - - public A withMessage(String message) { - this.message = message; - return (A) this; - } - - public boolean hasMessage() { - return this.message != null; - } - - public String getReason() { - return this.reason; - } - - public A withReason(String reason) { - this.reason = reason; - return (A) this; - } - - public boolean hasReason() { - return this.reason != null; - } - - public String getStatus() { - return this.status; - } - - public A withStatus(String status) { - this.status = status; - return (A) this; - } - - public boolean hasStatus() { - return this.status != null; - } - - public String getType() { - return this.type; - } - - public A withType(String type) { - this.type = type; - return (A) this; - } - - public boolean hasType() { - return this.type != null; - } - - public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; - V1beta3FlowSchemaConditionFluent that = (V1beta3FlowSchemaConditionFluent) o; - if (!java.util.Objects.equals(lastTransitionTime, that.lastTransitionTime)) return false; - if (!java.util.Objects.equals(message, that.message)) return false; - if (!java.util.Objects.equals(reason, that.reason)) return false; - if (!java.util.Objects.equals(status, that.status)) return false; - if (!java.util.Objects.equals(type, that.type)) return false; - return true; - } - - public int hashCode() { - return java.util.Objects.hash(lastTransitionTime, message, reason, status, type, super.hashCode()); - } - - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("{"); - if (lastTransitionTime != null) { sb.append("lastTransitionTime:"); sb.append(lastTransitionTime + ","); } - if (message != null) { sb.append("message:"); sb.append(message + ","); } - if (reason != null) { sb.append("reason:"); sb.append(reason + ","); } - if (status != null) { sb.append("status:"); sb.append(status + ","); } - if (type != null) { sb.append("type:"); sb.append(type); } - sb.append("}"); - return sb.toString(); - } - - -} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta3FlowSchemaFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta3FlowSchemaFluent.java deleted file mode 100644 index 9f45033036..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta3FlowSchemaFluent.java +++ /dev/null @@ -1,260 +0,0 @@ -package io.kubernetes.client.openapi.models; - -import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.Nested; -import java.lang.String; -import io.kubernetes.client.fluent.BaseFluent; -import java.lang.Object; - -/** - * Generated - */ -@SuppressWarnings("unchecked") -public class V1beta3FlowSchemaFluent> extends BaseFluent{ - public V1beta3FlowSchemaFluent() { - } - - public V1beta3FlowSchemaFluent(V1beta3FlowSchema instance) { - this.copyInstance(instance); - } - private String apiVersion; - private String kind; - private V1ObjectMetaBuilder metadata; - private V1beta3FlowSchemaSpecBuilder spec; - private V1beta3FlowSchemaStatusBuilder status; - - protected void copyInstance(V1beta3FlowSchema instance) { - instance = (instance != null ? instance : new V1beta3FlowSchema()); - if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withKind(instance.getKind()); - this.withMetadata(instance.getMetadata()); - this.withSpec(instance.getSpec()); - this.withStatus(instance.getStatus()); - } - } - - public String getApiVersion() { - return this.apiVersion; - } - - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; - } - - public boolean hasApiVersion() { - return this.apiVersion != null; - } - - public String getKind() { - return this.kind; - } - - public A withKind(String kind) { - this.kind = kind; - return (A) this; - } - - public boolean hasKind() { - return this.kind != null; - } - - public V1ObjectMeta buildMetadata() { - return this.metadata != null ? this.metadata.build() : null; - } - - public A withMetadata(V1ObjectMeta metadata) { - this._visitables.remove("metadata"); - if (metadata != null) { - this.metadata = new V1ObjectMetaBuilder(metadata); - this._visitables.get("metadata").add(this.metadata); - } else { - this.metadata = null; - this._visitables.get("metadata").remove(this.metadata); - } - return (A) this; - } - - public boolean hasMetadata() { - return this.metadata != null; - } - - public MetadataNested withNewMetadata() { - return new MetadataNested(null); - } - - public MetadataNested withNewMetadataLike(V1ObjectMeta item) { - return new MetadataNested(item); - } - - public MetadataNested editMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(null)); - } - - public MetadataNested editOrNewMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(new V1ObjectMetaBuilder().build())); - } - - public MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(item)); - } - - public V1beta3FlowSchemaSpec buildSpec() { - return this.spec != null ? this.spec.build() : null; - } - - public A withSpec(V1beta3FlowSchemaSpec spec) { - this._visitables.remove("spec"); - if (spec != null) { - this.spec = new V1beta3FlowSchemaSpecBuilder(spec); - this._visitables.get("spec").add(this.spec); - } else { - this.spec = null; - this._visitables.get("spec").remove(this.spec); - } - return (A) this; - } - - public boolean hasSpec() { - return this.spec != null; - } - - public SpecNested withNewSpec() { - return new SpecNested(null); - } - - public SpecNested withNewSpecLike(V1beta3FlowSchemaSpec item) { - return new SpecNested(item); - } - - public SpecNested editSpec() { - return withNewSpecLike(java.util.Optional.ofNullable(buildSpec()).orElse(null)); - } - - public SpecNested editOrNewSpec() { - return withNewSpecLike(java.util.Optional.ofNullable(buildSpec()).orElse(new V1beta3FlowSchemaSpecBuilder().build())); - } - - public SpecNested editOrNewSpecLike(V1beta3FlowSchemaSpec item) { - return withNewSpecLike(java.util.Optional.ofNullable(buildSpec()).orElse(item)); - } - - public V1beta3FlowSchemaStatus buildStatus() { - return this.status != null ? this.status.build() : null; - } - - public A withStatus(V1beta3FlowSchemaStatus status) { - this._visitables.remove("status"); - if (status != null) { - this.status = new V1beta3FlowSchemaStatusBuilder(status); - this._visitables.get("status").add(this.status); - } else { - this.status = null; - this._visitables.get("status").remove(this.status); - } - return (A) this; - } - - public boolean hasStatus() { - return this.status != null; - } - - public StatusNested withNewStatus() { - return new StatusNested(null); - } - - public StatusNested withNewStatusLike(V1beta3FlowSchemaStatus item) { - return new StatusNested(item); - } - - public StatusNested editStatus() { - return withNewStatusLike(java.util.Optional.ofNullable(buildStatus()).orElse(null)); - } - - public StatusNested editOrNewStatus() { - return withNewStatusLike(java.util.Optional.ofNullable(buildStatus()).orElse(new V1beta3FlowSchemaStatusBuilder().build())); - } - - public StatusNested editOrNewStatusLike(V1beta3FlowSchemaStatus item) { - return withNewStatusLike(java.util.Optional.ofNullable(buildStatus()).orElse(item)); - } - - public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; - V1beta3FlowSchemaFluent that = (V1beta3FlowSchemaFluent) o; - if (!java.util.Objects.equals(apiVersion, that.apiVersion)) return false; - if (!java.util.Objects.equals(kind, that.kind)) return false; - if (!java.util.Objects.equals(metadata, that.metadata)) return false; - if (!java.util.Objects.equals(spec, that.spec)) return false; - if (!java.util.Objects.equals(status, that.status)) return false; - return true; - } - - public int hashCode() { - return java.util.Objects.hash(apiVersion, kind, metadata, spec, status, super.hashCode()); - } - - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("{"); - if (apiVersion != null) { sb.append("apiVersion:"); sb.append(apiVersion + ","); } - if (kind != null) { sb.append("kind:"); sb.append(kind + ","); } - if (metadata != null) { sb.append("metadata:"); sb.append(metadata + ","); } - if (spec != null) { sb.append("spec:"); sb.append(spec + ","); } - if (status != null) { sb.append("status:"); sb.append(status); } - sb.append("}"); - return sb.toString(); - } - public class MetadataNested extends V1ObjectMetaFluent> implements Nested{ - MetadataNested(V1ObjectMeta item) { - this.builder = new V1ObjectMetaBuilder(this, item); - } - V1ObjectMetaBuilder builder; - - public N and() { - return (N) V1beta3FlowSchemaFluent.this.withMetadata(builder.build()); - } - - public N endMetadata() { - return and(); - } - - - } - public class SpecNested extends V1beta3FlowSchemaSpecFluent> implements Nested{ - SpecNested(V1beta3FlowSchemaSpec item) { - this.builder = new V1beta3FlowSchemaSpecBuilder(this, item); - } - V1beta3FlowSchemaSpecBuilder builder; - - public N and() { - return (N) V1beta3FlowSchemaFluent.this.withSpec(builder.build()); - } - - public N endSpec() { - return and(); - } - - - } - public class StatusNested extends V1beta3FlowSchemaStatusFluent> implements Nested{ - StatusNested(V1beta3FlowSchemaStatus item) { - this.builder = new V1beta3FlowSchemaStatusBuilder(this, item); - } - V1beta3FlowSchemaStatusBuilder builder; - - public N and() { - return (N) V1beta3FlowSchemaFluent.this.withStatus(builder.build()); - } - - public N endStatus() { - return and(); - } - - - } - -} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta3FlowSchemaListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta3FlowSchemaListBuilder.java deleted file mode 100644 index 14a6672393..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta3FlowSchemaListBuilder.java +++ /dev/null @@ -1,34 +0,0 @@ -package io.kubernetes.client.openapi.models; - -import io.kubernetes.client.fluent.VisitableBuilder; -public class V1beta3FlowSchemaListBuilder extends V1beta3FlowSchemaListFluent implements VisitableBuilder{ - public V1beta3FlowSchemaListBuilder() { - this(new V1beta3FlowSchemaList()); - } - - public V1beta3FlowSchemaListBuilder(V1beta3FlowSchemaListFluent fluent) { - this(fluent, new V1beta3FlowSchemaList()); - } - - public V1beta3FlowSchemaListBuilder(V1beta3FlowSchemaListFluent fluent,V1beta3FlowSchemaList instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - - public V1beta3FlowSchemaListBuilder(V1beta3FlowSchemaList instance) { - this.fluent = this; - this.copyInstance(instance); - } - V1beta3FlowSchemaListFluent fluent; - - public V1beta3FlowSchemaList build() { - V1beta3FlowSchemaList buildable = new V1beta3FlowSchemaList(); - buildable.setApiVersion(fluent.getApiVersion()); - buildable.setItems(fluent.buildItems()); - buildable.setKind(fluent.getKind()); - buildable.setMetadata(fluent.buildMetadata()); - return buildable; - } - - -} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta3FlowSchemaListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta3FlowSchemaListFluent.java deleted file mode 100644 index 9e61fd4f56..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta3FlowSchemaListFluent.java +++ /dev/null @@ -1,319 +0,0 @@ -package io.kubernetes.client.openapi.models; - -import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.Nested; -import java.util.ArrayList; -import java.lang.String; -import java.util.function.Predicate; -import io.kubernetes.client.fluent.BaseFluent; -import java.util.Iterator; -import java.util.Collection; -import java.lang.Object; -import java.util.List; - -/** - * Generated - */ -@SuppressWarnings("unchecked") -public class V1beta3FlowSchemaListFluent> extends BaseFluent{ - public V1beta3FlowSchemaListFluent() { - } - - public V1beta3FlowSchemaListFluent(V1beta3FlowSchemaList instance) { - this.copyInstance(instance); - } - private String apiVersion; - private ArrayList items; - private String kind; - private V1ListMetaBuilder metadata; - - protected void copyInstance(V1beta3FlowSchemaList instance) { - instance = (instance != null ? instance : new V1beta3FlowSchemaList()); - if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withItems(instance.getItems()); - this.withKind(instance.getKind()); - this.withMetadata(instance.getMetadata()); - } - } - - public String getApiVersion() { - return this.apiVersion; - } - - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; - } - - public boolean hasApiVersion() { - return this.apiVersion != null; - } - - public A addToItems(int index,V1beta3FlowSchema item) { - if (this.items == null) {this.items = new ArrayList();} - V1beta3FlowSchemaBuilder builder = new V1beta3FlowSchemaBuilder(item); - if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); items.add(builder); } else { _visitables.get("items").add(index, builder); items.add(index, builder);} - return (A)this; - } - - public A setToItems(int index,V1beta3FlowSchema item) { - if (this.items == null) {this.items = new ArrayList();} - V1beta3FlowSchemaBuilder builder = new V1beta3FlowSchemaBuilder(item); - if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); items.add(builder); } else { _visitables.get("items").set(index, builder); items.set(index, builder);} - return (A)this; - } - - public A addToItems(io.kubernetes.client.openapi.models.V1beta3FlowSchema... items) { - if (this.items == null) {this.items = new ArrayList();} - for (V1beta3FlowSchema item : items) {V1beta3FlowSchemaBuilder builder = new V1beta3FlowSchemaBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; - } - - public A addAllToItems(Collection items) { - if (this.items == null) {this.items = new ArrayList();} - for (V1beta3FlowSchema item : items) {V1beta3FlowSchemaBuilder builder = new V1beta3FlowSchemaBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; - } - - public A removeFromItems(io.kubernetes.client.openapi.models.V1beta3FlowSchema... items) { - if (this.items == null) return (A)this; - for (V1beta3FlowSchema item : items) {V1beta3FlowSchemaBuilder builder = new V1beta3FlowSchemaBuilder(item);_visitables.get("items").remove(builder); this.items.remove(builder);} return (A)this; - } - - public A removeAllFromItems(Collection items) { - if (this.items == null) return (A)this; - for (V1beta3FlowSchema item : items) {V1beta3FlowSchemaBuilder builder = new V1beta3FlowSchemaBuilder(item);_visitables.get("items").remove(builder); this.items.remove(builder);} return (A)this; - } - - public A removeMatchingFromItems(Predicate predicate) { - if (items == null) return (A) this; - final Iterator each = items.iterator(); - final List visitables = _visitables.get("items"); - while (each.hasNext()) { - V1beta3FlowSchemaBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } - } - return (A)this; - } - - public List buildItems() { - return this.items != null ? build(items) : null; - } - - public V1beta3FlowSchema buildItem(int index) { - return this.items.get(index).build(); - } - - public V1beta3FlowSchema buildFirstItem() { - return this.items.get(0).build(); - } - - public V1beta3FlowSchema buildLastItem() { - return this.items.get(items.size() - 1).build(); - } - - public V1beta3FlowSchema buildMatchingItem(Predicate predicate) { - for (V1beta3FlowSchemaBuilder item : items) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; - } - - public boolean hasMatchingItem(Predicate predicate) { - for (V1beta3FlowSchemaBuilder item : items) { - if (predicate.test(item)) { - return true; - } - } - return false; - } - - public A withItems(List items) { - if (this.items != null) { - this._visitables.get("items").clear(); - } - if (items != null) { - this.items = new ArrayList(); - for (V1beta3FlowSchema item : items) { - this.addToItems(item); - } - } else { - this.items = null; - } - return (A) this; - } - - public A withItems(io.kubernetes.client.openapi.models.V1beta3FlowSchema... items) { - if (this.items != null) { - this.items.clear(); - _visitables.remove("items"); - } - if (items != null) { - for (V1beta3FlowSchema item : items) { - this.addToItems(item); - } - } - return (A) this; - } - - public boolean hasItems() { - return this.items != null && !this.items.isEmpty(); - } - - public ItemsNested addNewItem() { - return new ItemsNested(-1, null); - } - - public ItemsNested addNewItemLike(V1beta3FlowSchema item) { - return new ItemsNested(-1, item); - } - - public ItemsNested setNewItemLike(int index,V1beta3FlowSchema item) { - return new ItemsNested(index, item); - } - - public ItemsNested editItem(int index) { - if (items.size() <= index) throw new RuntimeException("Can't edit items. Index exceeds size."); - return setNewItemLike(index, buildItem(index)); - } - - public ItemsNested editFirstItem() { - if (items.size() == 0) throw new RuntimeException("Can't edit first items. The list is empty."); - return setNewItemLike(0, buildItem(0)); - } - - public ItemsNested editLastItem() { - int index = items.size() - 1; - if (index < 0) throw new RuntimeException("Can't edit last items. The list is empty."); - return setNewItemLike(index, buildItem(index)); - } - - public ItemsNested editMatchingItem(Predicate predicate) { - int index = -1; - for (int i=0;i withNewMetadata() { - return new MetadataNested(null); - } - - public MetadataNested withNewMetadataLike(V1ListMeta item) { - return new MetadataNested(item); - } - - public MetadataNested editMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(null)); - } - - public MetadataNested editOrNewMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(new V1ListMetaBuilder().build())); - } - - public MetadataNested editOrNewMetadataLike(V1ListMeta item) { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(item)); - } - - public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; - V1beta3FlowSchemaListFluent that = (V1beta3FlowSchemaListFluent) o; - if (!java.util.Objects.equals(apiVersion, that.apiVersion)) return false; - if (!java.util.Objects.equals(items, that.items)) return false; - if (!java.util.Objects.equals(kind, that.kind)) return false; - if (!java.util.Objects.equals(metadata, that.metadata)) return false; - return true; - } - - public int hashCode() { - return java.util.Objects.hash(apiVersion, items, kind, metadata, super.hashCode()); - } - - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("{"); - if (apiVersion != null) { sb.append("apiVersion:"); sb.append(apiVersion + ","); } - if (items != null && !items.isEmpty()) { sb.append("items:"); sb.append(items + ","); } - if (kind != null) { sb.append("kind:"); sb.append(kind + ","); } - if (metadata != null) { sb.append("metadata:"); sb.append(metadata); } - sb.append("}"); - return sb.toString(); - } - public class ItemsNested extends V1beta3FlowSchemaFluent> implements Nested{ - ItemsNested(int index,V1beta3FlowSchema item) { - this.index = index; - this.builder = new V1beta3FlowSchemaBuilder(this, item); - } - V1beta3FlowSchemaBuilder builder; - int index; - - public N and() { - return (N) V1beta3FlowSchemaListFluent.this.setToItems(index,builder.build()); - } - - public N endItem() { - return and(); - } - - - } - public class MetadataNested extends V1ListMetaFluent> implements Nested{ - MetadataNested(V1ListMeta item) { - this.builder = new V1ListMetaBuilder(this, item); - } - V1ListMetaBuilder builder; - - public N and() { - return (N) V1beta3FlowSchemaListFluent.this.withMetadata(builder.build()); - } - - public N endMetadata() { - return and(); - } - - - } - -} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta3FlowSchemaSpecBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta3FlowSchemaSpecBuilder.java deleted file mode 100644 index 30e727cff1..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta3FlowSchemaSpecBuilder.java +++ /dev/null @@ -1,34 +0,0 @@ -package io.kubernetes.client.openapi.models; - -import io.kubernetes.client.fluent.VisitableBuilder; -public class V1beta3FlowSchemaSpecBuilder extends V1beta3FlowSchemaSpecFluent implements VisitableBuilder{ - public V1beta3FlowSchemaSpecBuilder() { - this(new V1beta3FlowSchemaSpec()); - } - - public V1beta3FlowSchemaSpecBuilder(V1beta3FlowSchemaSpecFluent fluent) { - this(fluent, new V1beta3FlowSchemaSpec()); - } - - public V1beta3FlowSchemaSpecBuilder(V1beta3FlowSchemaSpecFluent fluent,V1beta3FlowSchemaSpec instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - - public V1beta3FlowSchemaSpecBuilder(V1beta3FlowSchemaSpec instance) { - this.fluent = this; - this.copyInstance(instance); - } - V1beta3FlowSchemaSpecFluent fluent; - - public V1beta3FlowSchemaSpec build() { - V1beta3FlowSchemaSpec buildable = new V1beta3FlowSchemaSpec(); - buildable.setDistinguisherMethod(fluent.buildDistinguisherMethod()); - buildable.setMatchingPrecedence(fluent.getMatchingPrecedence()); - buildable.setPriorityLevelConfiguration(fluent.buildPriorityLevelConfiguration()); - buildable.setRules(fluent.buildRules()); - return buildable; - } - - -} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta3FlowSchemaSpecFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta3FlowSchemaSpecFluent.java deleted file mode 100644 index db73faad0a..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta3FlowSchemaSpecFluent.java +++ /dev/null @@ -1,363 +0,0 @@ -package io.kubernetes.client.openapi.models; - -import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.Nested; -import java.util.ArrayList; -import java.lang.String; -import java.util.function.Predicate; -import io.kubernetes.client.fluent.BaseFluent; -import java.util.Iterator; -import java.util.List; -import java.lang.Integer; -import java.util.Collection; -import java.lang.Object; - -/** - * Generated - */ -@SuppressWarnings("unchecked") -public class V1beta3FlowSchemaSpecFluent> extends BaseFluent{ - public V1beta3FlowSchemaSpecFluent() { - } - - public V1beta3FlowSchemaSpecFluent(V1beta3FlowSchemaSpec instance) { - this.copyInstance(instance); - } - private V1beta3FlowDistinguisherMethodBuilder distinguisherMethod; - private Integer matchingPrecedence; - private V1beta3PriorityLevelConfigurationReferenceBuilder priorityLevelConfiguration; - private ArrayList rules; - - protected void copyInstance(V1beta3FlowSchemaSpec instance) { - instance = (instance != null ? instance : new V1beta3FlowSchemaSpec()); - if (instance != null) { - this.withDistinguisherMethod(instance.getDistinguisherMethod()); - this.withMatchingPrecedence(instance.getMatchingPrecedence()); - this.withPriorityLevelConfiguration(instance.getPriorityLevelConfiguration()); - this.withRules(instance.getRules()); - } - } - - public V1beta3FlowDistinguisherMethod buildDistinguisherMethod() { - return this.distinguisherMethod != null ? this.distinguisherMethod.build() : null; - } - - public A withDistinguisherMethod(V1beta3FlowDistinguisherMethod distinguisherMethod) { - this._visitables.remove("distinguisherMethod"); - if (distinguisherMethod != null) { - this.distinguisherMethod = new V1beta3FlowDistinguisherMethodBuilder(distinguisherMethod); - this._visitables.get("distinguisherMethod").add(this.distinguisherMethod); - } else { - this.distinguisherMethod = null; - this._visitables.get("distinguisherMethod").remove(this.distinguisherMethod); - } - return (A) this; - } - - public boolean hasDistinguisherMethod() { - return this.distinguisherMethod != null; - } - - public DistinguisherMethodNested withNewDistinguisherMethod() { - return new DistinguisherMethodNested(null); - } - - public DistinguisherMethodNested withNewDistinguisherMethodLike(V1beta3FlowDistinguisherMethod item) { - return new DistinguisherMethodNested(item); - } - - public DistinguisherMethodNested editDistinguisherMethod() { - return withNewDistinguisherMethodLike(java.util.Optional.ofNullable(buildDistinguisherMethod()).orElse(null)); - } - - public DistinguisherMethodNested editOrNewDistinguisherMethod() { - return withNewDistinguisherMethodLike(java.util.Optional.ofNullable(buildDistinguisherMethod()).orElse(new V1beta3FlowDistinguisherMethodBuilder().build())); - } - - public DistinguisherMethodNested editOrNewDistinguisherMethodLike(V1beta3FlowDistinguisherMethod item) { - return withNewDistinguisherMethodLike(java.util.Optional.ofNullable(buildDistinguisherMethod()).orElse(item)); - } - - public Integer getMatchingPrecedence() { - return this.matchingPrecedence; - } - - public A withMatchingPrecedence(Integer matchingPrecedence) { - this.matchingPrecedence = matchingPrecedence; - return (A) this; - } - - public boolean hasMatchingPrecedence() { - return this.matchingPrecedence != null; - } - - public V1beta3PriorityLevelConfigurationReference buildPriorityLevelConfiguration() { - return this.priorityLevelConfiguration != null ? this.priorityLevelConfiguration.build() : null; - } - - public A withPriorityLevelConfiguration(V1beta3PriorityLevelConfigurationReference priorityLevelConfiguration) { - this._visitables.remove("priorityLevelConfiguration"); - if (priorityLevelConfiguration != null) { - this.priorityLevelConfiguration = new V1beta3PriorityLevelConfigurationReferenceBuilder(priorityLevelConfiguration); - this._visitables.get("priorityLevelConfiguration").add(this.priorityLevelConfiguration); - } else { - this.priorityLevelConfiguration = null; - this._visitables.get("priorityLevelConfiguration").remove(this.priorityLevelConfiguration); - } - return (A) this; - } - - public boolean hasPriorityLevelConfiguration() { - return this.priorityLevelConfiguration != null; - } - - public PriorityLevelConfigurationNested withNewPriorityLevelConfiguration() { - return new PriorityLevelConfigurationNested(null); - } - - public PriorityLevelConfigurationNested withNewPriorityLevelConfigurationLike(V1beta3PriorityLevelConfigurationReference item) { - return new PriorityLevelConfigurationNested(item); - } - - public PriorityLevelConfigurationNested editPriorityLevelConfiguration() { - return withNewPriorityLevelConfigurationLike(java.util.Optional.ofNullable(buildPriorityLevelConfiguration()).orElse(null)); - } - - public PriorityLevelConfigurationNested editOrNewPriorityLevelConfiguration() { - return withNewPriorityLevelConfigurationLike(java.util.Optional.ofNullable(buildPriorityLevelConfiguration()).orElse(new V1beta3PriorityLevelConfigurationReferenceBuilder().build())); - } - - public PriorityLevelConfigurationNested editOrNewPriorityLevelConfigurationLike(V1beta3PriorityLevelConfigurationReference item) { - return withNewPriorityLevelConfigurationLike(java.util.Optional.ofNullable(buildPriorityLevelConfiguration()).orElse(item)); - } - - public A addToRules(int index,V1beta3PolicyRulesWithSubjects item) { - if (this.rules == null) {this.rules = new ArrayList();} - V1beta3PolicyRulesWithSubjectsBuilder builder = new V1beta3PolicyRulesWithSubjectsBuilder(item); - if (index < 0 || index >= rules.size()) { _visitables.get("rules").add(builder); rules.add(builder); } else { _visitables.get("rules").add(index, builder); rules.add(index, builder);} - return (A)this; - } - - public A setToRules(int index,V1beta3PolicyRulesWithSubjects item) { - if (this.rules == null) {this.rules = new ArrayList();} - V1beta3PolicyRulesWithSubjectsBuilder builder = new V1beta3PolicyRulesWithSubjectsBuilder(item); - if (index < 0 || index >= rules.size()) { _visitables.get("rules").add(builder); rules.add(builder); } else { _visitables.get("rules").set(index, builder); rules.set(index, builder);} - return (A)this; - } - - public A addToRules(io.kubernetes.client.openapi.models.V1beta3PolicyRulesWithSubjects... items) { - if (this.rules == null) {this.rules = new ArrayList();} - for (V1beta3PolicyRulesWithSubjects item : items) {V1beta3PolicyRulesWithSubjectsBuilder builder = new V1beta3PolicyRulesWithSubjectsBuilder(item);_visitables.get("rules").add(builder);this.rules.add(builder);} return (A)this; - } - - public A addAllToRules(Collection items) { - if (this.rules == null) {this.rules = new ArrayList();} - for (V1beta3PolicyRulesWithSubjects item : items) {V1beta3PolicyRulesWithSubjectsBuilder builder = new V1beta3PolicyRulesWithSubjectsBuilder(item);_visitables.get("rules").add(builder);this.rules.add(builder);} return (A)this; - } - - public A removeFromRules(io.kubernetes.client.openapi.models.V1beta3PolicyRulesWithSubjects... items) { - if (this.rules == null) return (A)this; - for (V1beta3PolicyRulesWithSubjects item : items) {V1beta3PolicyRulesWithSubjectsBuilder builder = new V1beta3PolicyRulesWithSubjectsBuilder(item);_visitables.get("rules").remove(builder); this.rules.remove(builder);} return (A)this; - } - - public A removeAllFromRules(Collection items) { - if (this.rules == null) return (A)this; - for (V1beta3PolicyRulesWithSubjects item : items) {V1beta3PolicyRulesWithSubjectsBuilder builder = new V1beta3PolicyRulesWithSubjectsBuilder(item);_visitables.get("rules").remove(builder); this.rules.remove(builder);} return (A)this; - } - - public A removeMatchingFromRules(Predicate predicate) { - if (rules == null) return (A) this; - final Iterator each = rules.iterator(); - final List visitables = _visitables.get("rules"); - while (each.hasNext()) { - V1beta3PolicyRulesWithSubjectsBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } - } - return (A)this; - } - - public List buildRules() { - return this.rules != null ? build(rules) : null; - } - - public V1beta3PolicyRulesWithSubjects buildRule(int index) { - return this.rules.get(index).build(); - } - - public V1beta3PolicyRulesWithSubjects buildFirstRule() { - return this.rules.get(0).build(); - } - - public V1beta3PolicyRulesWithSubjects buildLastRule() { - return this.rules.get(rules.size() - 1).build(); - } - - public V1beta3PolicyRulesWithSubjects buildMatchingRule(Predicate predicate) { - for (V1beta3PolicyRulesWithSubjectsBuilder item : rules) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; - } - - public boolean hasMatchingRule(Predicate predicate) { - for (V1beta3PolicyRulesWithSubjectsBuilder item : rules) { - if (predicate.test(item)) { - return true; - } - } - return false; - } - - public A withRules(List rules) { - if (this.rules != null) { - this._visitables.get("rules").clear(); - } - if (rules != null) { - this.rules = new ArrayList(); - for (V1beta3PolicyRulesWithSubjects item : rules) { - this.addToRules(item); - } - } else { - this.rules = null; - } - return (A) this; - } - - public A withRules(io.kubernetes.client.openapi.models.V1beta3PolicyRulesWithSubjects... rules) { - if (this.rules != null) { - this.rules.clear(); - _visitables.remove("rules"); - } - if (rules != null) { - for (V1beta3PolicyRulesWithSubjects item : rules) { - this.addToRules(item); - } - } - return (A) this; - } - - public boolean hasRules() { - return this.rules != null && !this.rules.isEmpty(); - } - - public RulesNested addNewRule() { - return new RulesNested(-1, null); - } - - public RulesNested addNewRuleLike(V1beta3PolicyRulesWithSubjects item) { - return new RulesNested(-1, item); - } - - public RulesNested setNewRuleLike(int index,V1beta3PolicyRulesWithSubjects item) { - return new RulesNested(index, item); - } - - public RulesNested editRule(int index) { - if (rules.size() <= index) throw new RuntimeException("Can't edit rules. Index exceeds size."); - return setNewRuleLike(index, buildRule(index)); - } - - public RulesNested editFirstRule() { - if (rules.size() == 0) throw new RuntimeException("Can't edit first rules. The list is empty."); - return setNewRuleLike(0, buildRule(0)); - } - - public RulesNested editLastRule() { - int index = rules.size() - 1; - if (index < 0) throw new RuntimeException("Can't edit last rules. The list is empty."); - return setNewRuleLike(index, buildRule(index)); - } - - public RulesNested editMatchingRule(Predicate predicate) { - int index = -1; - for (int i=0;i extends V1beta3FlowDistinguisherMethodFluent> implements Nested{ - DistinguisherMethodNested(V1beta3FlowDistinguisherMethod item) { - this.builder = new V1beta3FlowDistinguisherMethodBuilder(this, item); - } - V1beta3FlowDistinguisherMethodBuilder builder; - - public N and() { - return (N) V1beta3FlowSchemaSpecFluent.this.withDistinguisherMethod(builder.build()); - } - - public N endDistinguisherMethod() { - return and(); - } - - - } - public class PriorityLevelConfigurationNested extends V1beta3PriorityLevelConfigurationReferenceFluent> implements Nested{ - PriorityLevelConfigurationNested(V1beta3PriorityLevelConfigurationReference item) { - this.builder = new V1beta3PriorityLevelConfigurationReferenceBuilder(this, item); - } - V1beta3PriorityLevelConfigurationReferenceBuilder builder; - - public N and() { - return (N) V1beta3FlowSchemaSpecFluent.this.withPriorityLevelConfiguration(builder.build()); - } - - public N endPriorityLevelConfiguration() { - return and(); - } - - - } - public class RulesNested extends V1beta3PolicyRulesWithSubjectsFluent> implements Nested{ - RulesNested(int index,V1beta3PolicyRulesWithSubjects item) { - this.index = index; - this.builder = new V1beta3PolicyRulesWithSubjectsBuilder(this, item); - } - V1beta3PolicyRulesWithSubjectsBuilder builder; - int index; - - public N and() { - return (N) V1beta3FlowSchemaSpecFluent.this.setToRules(index,builder.build()); - } - - public N endRule() { - return and(); - } - - - } - -} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta3FlowSchemaStatusBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta3FlowSchemaStatusBuilder.java deleted file mode 100644 index def63219cd..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta3FlowSchemaStatusBuilder.java +++ /dev/null @@ -1,31 +0,0 @@ -package io.kubernetes.client.openapi.models; - -import io.kubernetes.client.fluent.VisitableBuilder; -public class V1beta3FlowSchemaStatusBuilder extends V1beta3FlowSchemaStatusFluent implements VisitableBuilder{ - public V1beta3FlowSchemaStatusBuilder() { - this(new V1beta3FlowSchemaStatus()); - } - - public V1beta3FlowSchemaStatusBuilder(V1beta3FlowSchemaStatusFluent fluent) { - this(fluent, new V1beta3FlowSchemaStatus()); - } - - public V1beta3FlowSchemaStatusBuilder(V1beta3FlowSchemaStatusFluent fluent,V1beta3FlowSchemaStatus instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - - public V1beta3FlowSchemaStatusBuilder(V1beta3FlowSchemaStatus instance) { - this.fluent = this; - this.copyInstance(instance); - } - V1beta3FlowSchemaStatusFluent fluent; - - public V1beta3FlowSchemaStatus build() { - V1beta3FlowSchemaStatus buildable = new V1beta3FlowSchemaStatus(); - buildable.setConditions(fluent.buildConditions()); - return buildable; - } - - -} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta3FlowSchemaStatusFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta3FlowSchemaStatusFluent.java deleted file mode 100644 index c559fbb28d..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta3FlowSchemaStatusFluent.java +++ /dev/null @@ -1,225 +0,0 @@ -package io.kubernetes.client.openapi.models; - -import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.Nested; -import java.util.ArrayList; -import java.lang.String; -import java.util.function.Predicate; -import io.kubernetes.client.fluent.BaseFluent; -import java.util.Iterator; -import java.util.Collection; -import java.lang.Object; -import java.util.List; - -/** - * Generated - */ -@SuppressWarnings("unchecked") -public class V1beta3FlowSchemaStatusFluent> extends BaseFluent{ - public V1beta3FlowSchemaStatusFluent() { - } - - public V1beta3FlowSchemaStatusFluent(V1beta3FlowSchemaStatus instance) { - this.copyInstance(instance); - } - private ArrayList conditions; - - protected void copyInstance(V1beta3FlowSchemaStatus instance) { - instance = (instance != null ? instance : new V1beta3FlowSchemaStatus()); - if (instance != null) { - this.withConditions(instance.getConditions()); - } - } - - public A addToConditions(int index,V1beta3FlowSchemaCondition item) { - if (this.conditions == null) {this.conditions = new ArrayList();} - V1beta3FlowSchemaConditionBuilder builder = new V1beta3FlowSchemaConditionBuilder(item); - if (index < 0 || index >= conditions.size()) { _visitables.get("conditions").add(builder); conditions.add(builder); } else { _visitables.get("conditions").add(index, builder); conditions.add(index, builder);} - return (A)this; - } - - public A setToConditions(int index,V1beta3FlowSchemaCondition item) { - if (this.conditions == null) {this.conditions = new ArrayList();} - V1beta3FlowSchemaConditionBuilder builder = new V1beta3FlowSchemaConditionBuilder(item); - if (index < 0 || index >= conditions.size()) { _visitables.get("conditions").add(builder); conditions.add(builder); } else { _visitables.get("conditions").set(index, builder); conditions.set(index, builder);} - return (A)this; - } - - public A addToConditions(io.kubernetes.client.openapi.models.V1beta3FlowSchemaCondition... items) { - if (this.conditions == null) {this.conditions = new ArrayList();} - for (V1beta3FlowSchemaCondition item : items) {V1beta3FlowSchemaConditionBuilder builder = new V1beta3FlowSchemaConditionBuilder(item);_visitables.get("conditions").add(builder);this.conditions.add(builder);} return (A)this; - } - - public A addAllToConditions(Collection items) { - if (this.conditions == null) {this.conditions = new ArrayList();} - for (V1beta3FlowSchemaCondition item : items) {V1beta3FlowSchemaConditionBuilder builder = new V1beta3FlowSchemaConditionBuilder(item);_visitables.get("conditions").add(builder);this.conditions.add(builder);} return (A)this; - } - - public A removeFromConditions(io.kubernetes.client.openapi.models.V1beta3FlowSchemaCondition... items) { - if (this.conditions == null) return (A)this; - for (V1beta3FlowSchemaCondition item : items) {V1beta3FlowSchemaConditionBuilder builder = new V1beta3FlowSchemaConditionBuilder(item);_visitables.get("conditions").remove(builder); this.conditions.remove(builder);} return (A)this; - } - - public A removeAllFromConditions(Collection items) { - if (this.conditions == null) return (A)this; - for (V1beta3FlowSchemaCondition item : items) {V1beta3FlowSchemaConditionBuilder builder = new V1beta3FlowSchemaConditionBuilder(item);_visitables.get("conditions").remove(builder); this.conditions.remove(builder);} return (A)this; - } - - public A removeMatchingFromConditions(Predicate predicate) { - if (conditions == null) return (A) this; - final Iterator each = conditions.iterator(); - final List visitables = _visitables.get("conditions"); - while (each.hasNext()) { - V1beta3FlowSchemaConditionBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } - } - return (A)this; - } - - public List buildConditions() { - return this.conditions != null ? build(conditions) : null; - } - - public V1beta3FlowSchemaCondition buildCondition(int index) { - return this.conditions.get(index).build(); - } - - public V1beta3FlowSchemaCondition buildFirstCondition() { - return this.conditions.get(0).build(); - } - - public V1beta3FlowSchemaCondition buildLastCondition() { - return this.conditions.get(conditions.size() - 1).build(); - } - - public V1beta3FlowSchemaCondition buildMatchingCondition(Predicate predicate) { - for (V1beta3FlowSchemaConditionBuilder item : conditions) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; - } - - public boolean hasMatchingCondition(Predicate predicate) { - for (V1beta3FlowSchemaConditionBuilder item : conditions) { - if (predicate.test(item)) { - return true; - } - } - return false; - } - - public A withConditions(List conditions) { - if (this.conditions != null) { - this._visitables.get("conditions").clear(); - } - if (conditions != null) { - this.conditions = new ArrayList(); - for (V1beta3FlowSchemaCondition item : conditions) { - this.addToConditions(item); - } - } else { - this.conditions = null; - } - return (A) this; - } - - public A withConditions(io.kubernetes.client.openapi.models.V1beta3FlowSchemaCondition... conditions) { - if (this.conditions != null) { - this.conditions.clear(); - _visitables.remove("conditions"); - } - if (conditions != null) { - for (V1beta3FlowSchemaCondition item : conditions) { - this.addToConditions(item); - } - } - return (A) this; - } - - public boolean hasConditions() { - return this.conditions != null && !this.conditions.isEmpty(); - } - - public ConditionsNested addNewCondition() { - return new ConditionsNested(-1, null); - } - - public ConditionsNested addNewConditionLike(V1beta3FlowSchemaCondition item) { - return new ConditionsNested(-1, item); - } - - public ConditionsNested setNewConditionLike(int index,V1beta3FlowSchemaCondition item) { - return new ConditionsNested(index, item); - } - - public ConditionsNested editCondition(int index) { - if (conditions.size() <= index) throw new RuntimeException("Can't edit conditions. Index exceeds size."); - return setNewConditionLike(index, buildCondition(index)); - } - - public ConditionsNested editFirstCondition() { - if (conditions.size() == 0) throw new RuntimeException("Can't edit first conditions. The list is empty."); - return setNewConditionLike(0, buildCondition(0)); - } - - public ConditionsNested editLastCondition() { - int index = conditions.size() - 1; - if (index < 0) throw new RuntimeException("Can't edit last conditions. The list is empty."); - return setNewConditionLike(index, buildCondition(index)); - } - - public ConditionsNested editMatchingCondition(Predicate predicate) { - int index = -1; - for (int i=0;i extends V1beta3FlowSchemaConditionFluent> implements Nested{ - ConditionsNested(int index,V1beta3FlowSchemaCondition item) { - this.index = index; - this.builder = new V1beta3FlowSchemaConditionBuilder(this, item); - } - V1beta3FlowSchemaConditionBuilder builder; - int index; - - public N and() { - return (N) V1beta3FlowSchemaStatusFluent.this.setToConditions(index,builder.build()); - } - - public N endCondition() { - return and(); - } - - - } - -} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta3GroupSubjectBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta3GroupSubjectBuilder.java deleted file mode 100644 index 2c8829d9e4..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta3GroupSubjectBuilder.java +++ /dev/null @@ -1,31 +0,0 @@ -package io.kubernetes.client.openapi.models; - -import io.kubernetes.client.fluent.VisitableBuilder; -public class V1beta3GroupSubjectBuilder extends V1beta3GroupSubjectFluent implements VisitableBuilder{ - public V1beta3GroupSubjectBuilder() { - this(new V1beta3GroupSubject()); - } - - public V1beta3GroupSubjectBuilder(V1beta3GroupSubjectFluent fluent) { - this(fluent, new V1beta3GroupSubject()); - } - - public V1beta3GroupSubjectBuilder(V1beta3GroupSubjectFluent fluent,V1beta3GroupSubject instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - - public V1beta3GroupSubjectBuilder(V1beta3GroupSubject instance) { - this.fluent = this; - this.copyInstance(instance); - } - V1beta3GroupSubjectFluent fluent; - - public V1beta3GroupSubject build() { - V1beta3GroupSubject buildable = new V1beta3GroupSubject(); - buildable.setName(fluent.getName()); - return buildable; - } - - -} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta3GroupSubjectFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta3GroupSubjectFluent.java deleted file mode 100644 index 696e0db0eb..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta3GroupSubjectFluent.java +++ /dev/null @@ -1,63 +0,0 @@ -package io.kubernetes.client.openapi.models; - -import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.BaseFluent; -import java.lang.Object; -import java.lang.String; - -/** - * Generated - */ -@SuppressWarnings("unchecked") -public class V1beta3GroupSubjectFluent> extends BaseFluent{ - public V1beta3GroupSubjectFluent() { - } - - public V1beta3GroupSubjectFluent(V1beta3GroupSubject instance) { - this.copyInstance(instance); - } - private String name; - - protected void copyInstance(V1beta3GroupSubject instance) { - instance = (instance != null ? instance : new V1beta3GroupSubject()); - if (instance != null) { - this.withName(instance.getName()); - } - } - - public String getName() { - return this.name; - } - - public A withName(String name) { - this.name = name; - return (A) this; - } - - public boolean hasName() { - return this.name != null; - } - - public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; - V1beta3GroupSubjectFluent that = (V1beta3GroupSubjectFluent) o; - if (!java.util.Objects.equals(name, that.name)) return false; - return true; - } - - public int hashCode() { - return java.util.Objects.hash(name, super.hashCode()); - } - - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("{"); - if (name != null) { sb.append("name:"); sb.append(name); } - sb.append("}"); - return sb.toString(); - } - - -} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta3LimitResponseBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta3LimitResponseBuilder.java deleted file mode 100644 index b743862129..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta3LimitResponseBuilder.java +++ /dev/null @@ -1,32 +0,0 @@ -package io.kubernetes.client.openapi.models; - -import io.kubernetes.client.fluent.VisitableBuilder; -public class V1beta3LimitResponseBuilder extends V1beta3LimitResponseFluent implements VisitableBuilder{ - public V1beta3LimitResponseBuilder() { - this(new V1beta3LimitResponse()); - } - - public V1beta3LimitResponseBuilder(V1beta3LimitResponseFluent fluent) { - this(fluent, new V1beta3LimitResponse()); - } - - public V1beta3LimitResponseBuilder(V1beta3LimitResponseFluent fluent,V1beta3LimitResponse instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - - public V1beta3LimitResponseBuilder(V1beta3LimitResponse instance) { - this.fluent = this; - this.copyInstance(instance); - } - V1beta3LimitResponseFluent fluent; - - public V1beta3LimitResponse build() { - V1beta3LimitResponse buildable = new V1beta3LimitResponse(); - buildable.setQueuing(fluent.buildQueuing()); - buildable.setType(fluent.getType()); - return buildable; - } - - -} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta3LimitResponseFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta3LimitResponseFluent.java deleted file mode 100644 index d4d166a3a9..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta3LimitResponseFluent.java +++ /dev/null @@ -1,123 +0,0 @@ -package io.kubernetes.client.openapi.models; - -import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.BaseFluent; -import io.kubernetes.client.fluent.Nested; -import java.lang.Object; -import java.lang.String; - -/** - * Generated - */ -@SuppressWarnings("unchecked") -public class V1beta3LimitResponseFluent> extends BaseFluent{ - public V1beta3LimitResponseFluent() { - } - - public V1beta3LimitResponseFluent(V1beta3LimitResponse instance) { - this.copyInstance(instance); - } - private V1beta3QueuingConfigurationBuilder queuing; - private String type; - - protected void copyInstance(V1beta3LimitResponse instance) { - instance = (instance != null ? instance : new V1beta3LimitResponse()); - if (instance != null) { - this.withQueuing(instance.getQueuing()); - this.withType(instance.getType()); - } - } - - public V1beta3QueuingConfiguration buildQueuing() { - return this.queuing != null ? this.queuing.build() : null; - } - - public A withQueuing(V1beta3QueuingConfiguration queuing) { - this._visitables.remove("queuing"); - if (queuing != null) { - this.queuing = new V1beta3QueuingConfigurationBuilder(queuing); - this._visitables.get("queuing").add(this.queuing); - } else { - this.queuing = null; - this._visitables.get("queuing").remove(this.queuing); - } - return (A) this; - } - - public boolean hasQueuing() { - return this.queuing != null; - } - - public QueuingNested withNewQueuing() { - return new QueuingNested(null); - } - - public QueuingNested withNewQueuingLike(V1beta3QueuingConfiguration item) { - return new QueuingNested(item); - } - - public QueuingNested editQueuing() { - return withNewQueuingLike(java.util.Optional.ofNullable(buildQueuing()).orElse(null)); - } - - public QueuingNested editOrNewQueuing() { - return withNewQueuingLike(java.util.Optional.ofNullable(buildQueuing()).orElse(new V1beta3QueuingConfigurationBuilder().build())); - } - - public QueuingNested editOrNewQueuingLike(V1beta3QueuingConfiguration item) { - return withNewQueuingLike(java.util.Optional.ofNullable(buildQueuing()).orElse(item)); - } - - public String getType() { - return this.type; - } - - public A withType(String type) { - this.type = type; - return (A) this; - } - - public boolean hasType() { - return this.type != null; - } - - public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; - V1beta3LimitResponseFluent that = (V1beta3LimitResponseFluent) o; - if (!java.util.Objects.equals(queuing, that.queuing)) return false; - if (!java.util.Objects.equals(type, that.type)) return false; - return true; - } - - public int hashCode() { - return java.util.Objects.hash(queuing, type, super.hashCode()); - } - - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("{"); - if (queuing != null) { sb.append("queuing:"); sb.append(queuing + ","); } - if (type != null) { sb.append("type:"); sb.append(type); } - sb.append("}"); - return sb.toString(); - } - public class QueuingNested extends V1beta3QueuingConfigurationFluent> implements Nested{ - QueuingNested(V1beta3QueuingConfiguration item) { - this.builder = new V1beta3QueuingConfigurationBuilder(this, item); - } - V1beta3QueuingConfigurationBuilder builder; - - public N and() { - return (N) V1beta3LimitResponseFluent.this.withQueuing(builder.build()); - } - - public N endQueuing() { - return and(); - } - - - } - -} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta3LimitedPriorityLevelConfigurationBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta3LimitedPriorityLevelConfigurationBuilder.java deleted file mode 100644 index 9effd377c2..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta3LimitedPriorityLevelConfigurationBuilder.java +++ /dev/null @@ -1,34 +0,0 @@ -package io.kubernetes.client.openapi.models; - -import io.kubernetes.client.fluent.VisitableBuilder; -public class V1beta3LimitedPriorityLevelConfigurationBuilder extends V1beta3LimitedPriorityLevelConfigurationFluent implements VisitableBuilder{ - public V1beta3LimitedPriorityLevelConfigurationBuilder() { - this(new V1beta3LimitedPriorityLevelConfiguration()); - } - - public V1beta3LimitedPriorityLevelConfigurationBuilder(V1beta3LimitedPriorityLevelConfigurationFluent fluent) { - this(fluent, new V1beta3LimitedPriorityLevelConfiguration()); - } - - public V1beta3LimitedPriorityLevelConfigurationBuilder(V1beta3LimitedPriorityLevelConfigurationFluent fluent,V1beta3LimitedPriorityLevelConfiguration instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - - public V1beta3LimitedPriorityLevelConfigurationBuilder(V1beta3LimitedPriorityLevelConfiguration instance) { - this.fluent = this; - this.copyInstance(instance); - } - V1beta3LimitedPriorityLevelConfigurationFluent fluent; - - public V1beta3LimitedPriorityLevelConfiguration build() { - V1beta3LimitedPriorityLevelConfiguration buildable = new V1beta3LimitedPriorityLevelConfiguration(); - buildable.setBorrowingLimitPercent(fluent.getBorrowingLimitPercent()); - buildable.setLendablePercent(fluent.getLendablePercent()); - buildable.setLimitResponse(fluent.buildLimitResponse()); - buildable.setNominalConcurrencyShares(fluent.getNominalConcurrencyShares()); - return buildable; - } - - -} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta3LimitedPriorityLevelConfigurationFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta3LimitedPriorityLevelConfigurationFluent.java deleted file mode 100644 index bfa1036316..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta3LimitedPriorityLevelConfigurationFluent.java +++ /dev/null @@ -1,158 +0,0 @@ -package io.kubernetes.client.openapi.models; - -import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.Nested; -import java.lang.String; -import java.lang.Integer; -import io.kubernetes.client.fluent.BaseFluent; -import java.lang.Object; - -/** - * Generated - */ -@SuppressWarnings("unchecked") -public class V1beta3LimitedPriorityLevelConfigurationFluent> extends BaseFluent{ - public V1beta3LimitedPriorityLevelConfigurationFluent() { - } - - public V1beta3LimitedPriorityLevelConfigurationFluent(V1beta3LimitedPriorityLevelConfiguration instance) { - this.copyInstance(instance); - } - private Integer borrowingLimitPercent; - private Integer lendablePercent; - private V1beta3LimitResponseBuilder limitResponse; - private Integer nominalConcurrencyShares; - - protected void copyInstance(V1beta3LimitedPriorityLevelConfiguration instance) { - instance = (instance != null ? instance : new V1beta3LimitedPriorityLevelConfiguration()); - if (instance != null) { - this.withBorrowingLimitPercent(instance.getBorrowingLimitPercent()); - this.withLendablePercent(instance.getLendablePercent()); - this.withLimitResponse(instance.getLimitResponse()); - this.withNominalConcurrencyShares(instance.getNominalConcurrencyShares()); - } - } - - public Integer getBorrowingLimitPercent() { - return this.borrowingLimitPercent; - } - - public A withBorrowingLimitPercent(Integer borrowingLimitPercent) { - this.borrowingLimitPercent = borrowingLimitPercent; - return (A) this; - } - - public boolean hasBorrowingLimitPercent() { - return this.borrowingLimitPercent != null; - } - - public Integer getLendablePercent() { - return this.lendablePercent; - } - - public A withLendablePercent(Integer lendablePercent) { - this.lendablePercent = lendablePercent; - return (A) this; - } - - public boolean hasLendablePercent() { - return this.lendablePercent != null; - } - - public V1beta3LimitResponse buildLimitResponse() { - return this.limitResponse != null ? this.limitResponse.build() : null; - } - - public A withLimitResponse(V1beta3LimitResponse limitResponse) { - this._visitables.remove("limitResponse"); - if (limitResponse != null) { - this.limitResponse = new V1beta3LimitResponseBuilder(limitResponse); - this._visitables.get("limitResponse").add(this.limitResponse); - } else { - this.limitResponse = null; - this._visitables.get("limitResponse").remove(this.limitResponse); - } - return (A) this; - } - - public boolean hasLimitResponse() { - return this.limitResponse != null; - } - - public LimitResponseNested withNewLimitResponse() { - return new LimitResponseNested(null); - } - - public LimitResponseNested withNewLimitResponseLike(V1beta3LimitResponse item) { - return new LimitResponseNested(item); - } - - public LimitResponseNested editLimitResponse() { - return withNewLimitResponseLike(java.util.Optional.ofNullable(buildLimitResponse()).orElse(null)); - } - - public LimitResponseNested editOrNewLimitResponse() { - return withNewLimitResponseLike(java.util.Optional.ofNullable(buildLimitResponse()).orElse(new V1beta3LimitResponseBuilder().build())); - } - - public LimitResponseNested editOrNewLimitResponseLike(V1beta3LimitResponse item) { - return withNewLimitResponseLike(java.util.Optional.ofNullable(buildLimitResponse()).orElse(item)); - } - - public Integer getNominalConcurrencyShares() { - return this.nominalConcurrencyShares; - } - - public A withNominalConcurrencyShares(Integer nominalConcurrencyShares) { - this.nominalConcurrencyShares = nominalConcurrencyShares; - return (A) this; - } - - public boolean hasNominalConcurrencyShares() { - return this.nominalConcurrencyShares != null; - } - - public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; - V1beta3LimitedPriorityLevelConfigurationFluent that = (V1beta3LimitedPriorityLevelConfigurationFluent) o; - if (!java.util.Objects.equals(borrowingLimitPercent, that.borrowingLimitPercent)) return false; - if (!java.util.Objects.equals(lendablePercent, that.lendablePercent)) return false; - if (!java.util.Objects.equals(limitResponse, that.limitResponse)) return false; - if (!java.util.Objects.equals(nominalConcurrencyShares, that.nominalConcurrencyShares)) return false; - return true; - } - - public int hashCode() { - return java.util.Objects.hash(borrowingLimitPercent, lendablePercent, limitResponse, nominalConcurrencyShares, super.hashCode()); - } - - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("{"); - if (borrowingLimitPercent != null) { sb.append("borrowingLimitPercent:"); sb.append(borrowingLimitPercent + ","); } - if (lendablePercent != null) { sb.append("lendablePercent:"); sb.append(lendablePercent + ","); } - if (limitResponse != null) { sb.append("limitResponse:"); sb.append(limitResponse + ","); } - if (nominalConcurrencyShares != null) { sb.append("nominalConcurrencyShares:"); sb.append(nominalConcurrencyShares); } - sb.append("}"); - return sb.toString(); - } - public class LimitResponseNested extends V1beta3LimitResponseFluent> implements Nested{ - LimitResponseNested(V1beta3LimitResponse item) { - this.builder = new V1beta3LimitResponseBuilder(this, item); - } - V1beta3LimitResponseBuilder builder; - - public N and() { - return (N) V1beta3LimitedPriorityLevelConfigurationFluent.this.withLimitResponse(builder.build()); - } - - public N endLimitResponse() { - return and(); - } - - - } - -} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta3NonResourcePolicyRuleBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta3NonResourcePolicyRuleBuilder.java deleted file mode 100644 index bb7218982a..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta3NonResourcePolicyRuleBuilder.java +++ /dev/null @@ -1,32 +0,0 @@ -package io.kubernetes.client.openapi.models; - -import io.kubernetes.client.fluent.VisitableBuilder; -public class V1beta3NonResourcePolicyRuleBuilder extends V1beta3NonResourcePolicyRuleFluent implements VisitableBuilder{ - public V1beta3NonResourcePolicyRuleBuilder() { - this(new V1beta3NonResourcePolicyRule()); - } - - public V1beta3NonResourcePolicyRuleBuilder(V1beta3NonResourcePolicyRuleFluent fluent) { - this(fluent, new V1beta3NonResourcePolicyRule()); - } - - public V1beta3NonResourcePolicyRuleBuilder(V1beta3NonResourcePolicyRuleFluent fluent,V1beta3NonResourcePolicyRule instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - - public V1beta3NonResourcePolicyRuleBuilder(V1beta3NonResourcePolicyRule instance) { - this.fluent = this; - this.copyInstance(instance); - } - V1beta3NonResourcePolicyRuleFluent fluent; - - public V1beta3NonResourcePolicyRule build() { - V1beta3NonResourcePolicyRule buildable = new V1beta3NonResourcePolicyRule(); - buildable.setNonResourceURLs(fluent.getNonResourceURLs()); - buildable.setVerbs(fluent.getVerbs()); - return buildable; - } - - -} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta3NonResourcePolicyRuleFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta3NonResourcePolicyRuleFluent.java deleted file mode 100644 index a0be8a4d94..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta3NonResourcePolicyRuleFluent.java +++ /dev/null @@ -1,246 +0,0 @@ -package io.kubernetes.client.openapi.models; - -import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.BaseFluent; -import java.util.ArrayList; -import java.util.Collection; -import java.lang.Object; -import java.util.List; -import java.lang.String; -import java.util.function.Predicate; - -/** - * Generated - */ -@SuppressWarnings("unchecked") -public class V1beta3NonResourcePolicyRuleFluent> extends BaseFluent{ - public V1beta3NonResourcePolicyRuleFluent() { - } - - public V1beta3NonResourcePolicyRuleFluent(V1beta3NonResourcePolicyRule instance) { - this.copyInstance(instance); - } - private List nonResourceURLs; - private List verbs; - - protected void copyInstance(V1beta3NonResourcePolicyRule instance) { - instance = (instance != null ? instance : new V1beta3NonResourcePolicyRule()); - if (instance != null) { - this.withNonResourceURLs(instance.getNonResourceURLs()); - this.withVerbs(instance.getVerbs()); - } - } - - public A addToNonResourceURLs(int index,String item) { - if (this.nonResourceURLs == null) {this.nonResourceURLs = new ArrayList();} - this.nonResourceURLs.add(index, item); - return (A)this; - } - - public A setToNonResourceURLs(int index,String item) { - if (this.nonResourceURLs == null) {this.nonResourceURLs = new ArrayList();} - this.nonResourceURLs.set(index, item); return (A)this; - } - - public A addToNonResourceURLs(java.lang.String... items) { - if (this.nonResourceURLs == null) {this.nonResourceURLs = new ArrayList();} - for (String item : items) {this.nonResourceURLs.add(item);} return (A)this; - } - - public A addAllToNonResourceURLs(Collection items) { - if (this.nonResourceURLs == null) {this.nonResourceURLs = new ArrayList();} - for (String item : items) {this.nonResourceURLs.add(item);} return (A)this; - } - - public A removeFromNonResourceURLs(java.lang.String... items) { - if (this.nonResourceURLs == null) return (A)this; - for (String item : items) { this.nonResourceURLs.remove(item);} return (A)this; - } - - public A removeAllFromNonResourceURLs(Collection items) { - if (this.nonResourceURLs == null) return (A)this; - for (String item : items) { this.nonResourceURLs.remove(item);} return (A)this; - } - - public List getNonResourceURLs() { - return this.nonResourceURLs; - } - - public String getNonResourceURL(int index) { - return this.nonResourceURLs.get(index); - } - - public String getFirstNonResourceURL() { - return this.nonResourceURLs.get(0); - } - - public String getLastNonResourceURL() { - return this.nonResourceURLs.get(nonResourceURLs.size() - 1); - } - - public String getMatchingNonResourceURL(Predicate predicate) { - for (String item : nonResourceURLs) { - if (predicate.test(item)) { - return item; - } - } - return null; - } - - public boolean hasMatchingNonResourceURL(Predicate predicate) { - for (String item : nonResourceURLs) { - if (predicate.test(item)) { - return true; - } - } - return false; - } - - public A withNonResourceURLs(List nonResourceURLs) { - if (nonResourceURLs != null) { - this.nonResourceURLs = new ArrayList(); - for (String item : nonResourceURLs) { - this.addToNonResourceURLs(item); - } - } else { - this.nonResourceURLs = null; - } - return (A) this; - } - - public A withNonResourceURLs(java.lang.String... nonResourceURLs) { - if (this.nonResourceURLs != null) { - this.nonResourceURLs.clear(); - _visitables.remove("nonResourceURLs"); - } - if (nonResourceURLs != null) { - for (String item : nonResourceURLs) { - this.addToNonResourceURLs(item); - } - } - return (A) this; - } - - public boolean hasNonResourceURLs() { - return this.nonResourceURLs != null && !this.nonResourceURLs.isEmpty(); - } - - public A addToVerbs(int index,String item) { - if (this.verbs == null) {this.verbs = new ArrayList();} - this.verbs.add(index, item); - return (A)this; - } - - public A setToVerbs(int index,String item) { - if (this.verbs == null) {this.verbs = new ArrayList();} - this.verbs.set(index, item); return (A)this; - } - - public A addToVerbs(java.lang.String... items) { - if (this.verbs == null) {this.verbs = new ArrayList();} - for (String item : items) {this.verbs.add(item);} return (A)this; - } - - public A addAllToVerbs(Collection items) { - if (this.verbs == null) {this.verbs = new ArrayList();} - for (String item : items) {this.verbs.add(item);} return (A)this; - } - - public A removeFromVerbs(java.lang.String... items) { - if (this.verbs == null) return (A)this; - for (String item : items) { this.verbs.remove(item);} return (A)this; - } - - public A removeAllFromVerbs(Collection items) { - if (this.verbs == null) return (A)this; - for (String item : items) { this.verbs.remove(item);} return (A)this; - } - - public List getVerbs() { - return this.verbs; - } - - public String getVerb(int index) { - return this.verbs.get(index); - } - - public String getFirstVerb() { - return this.verbs.get(0); - } - - public String getLastVerb() { - return this.verbs.get(verbs.size() - 1); - } - - public String getMatchingVerb(Predicate predicate) { - for (String item : verbs) { - if (predicate.test(item)) { - return item; - } - } - return null; - } - - public boolean hasMatchingVerb(Predicate predicate) { - for (String item : verbs) { - if (predicate.test(item)) { - return true; - } - } - return false; - } - - public A withVerbs(List verbs) { - if (verbs != null) { - this.verbs = new ArrayList(); - for (String item : verbs) { - this.addToVerbs(item); - } - } else { - this.verbs = null; - } - return (A) this; - } - - public A withVerbs(java.lang.String... verbs) { - if (this.verbs != null) { - this.verbs.clear(); - _visitables.remove("verbs"); - } - if (verbs != null) { - for (String item : verbs) { - this.addToVerbs(item); - } - } - return (A) this; - } - - public boolean hasVerbs() { - return this.verbs != null && !this.verbs.isEmpty(); - } - - public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; - V1beta3NonResourcePolicyRuleFluent that = (V1beta3NonResourcePolicyRuleFluent) o; - if (!java.util.Objects.equals(nonResourceURLs, that.nonResourceURLs)) return false; - if (!java.util.Objects.equals(verbs, that.verbs)) return false; - return true; - } - - public int hashCode() { - return java.util.Objects.hash(nonResourceURLs, verbs, super.hashCode()); - } - - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("{"); - if (nonResourceURLs != null && !nonResourceURLs.isEmpty()) { sb.append("nonResourceURLs:"); sb.append(nonResourceURLs + ","); } - if (verbs != null && !verbs.isEmpty()) { sb.append("verbs:"); sb.append(verbs); } - sb.append("}"); - return sb.toString(); - } - - -} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta3PolicyRulesWithSubjectsBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta3PolicyRulesWithSubjectsBuilder.java deleted file mode 100644 index 3107c55073..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta3PolicyRulesWithSubjectsBuilder.java +++ /dev/null @@ -1,33 +0,0 @@ -package io.kubernetes.client.openapi.models; - -import io.kubernetes.client.fluent.VisitableBuilder; -public class V1beta3PolicyRulesWithSubjectsBuilder extends V1beta3PolicyRulesWithSubjectsFluent implements VisitableBuilder{ - public V1beta3PolicyRulesWithSubjectsBuilder() { - this(new V1beta3PolicyRulesWithSubjects()); - } - - public V1beta3PolicyRulesWithSubjectsBuilder(V1beta3PolicyRulesWithSubjectsFluent fluent) { - this(fluent, new V1beta3PolicyRulesWithSubjects()); - } - - public V1beta3PolicyRulesWithSubjectsBuilder(V1beta3PolicyRulesWithSubjectsFluent fluent,V1beta3PolicyRulesWithSubjects instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - - public V1beta3PolicyRulesWithSubjectsBuilder(V1beta3PolicyRulesWithSubjects instance) { - this.fluent = this; - this.copyInstance(instance); - } - V1beta3PolicyRulesWithSubjectsFluent fluent; - - public V1beta3PolicyRulesWithSubjects build() { - V1beta3PolicyRulesWithSubjects buildable = new V1beta3PolicyRulesWithSubjects(); - buildable.setNonResourceRules(fluent.buildNonResourceRules()); - buildable.setResourceRules(fluent.buildResourceRules()); - buildable.setSubjects(fluent.buildSubjects()); - return buildable; - } - - -} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta3PolicyRulesWithSubjectsFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta3PolicyRulesWithSubjectsFluent.java deleted file mode 100644 index ad46977bd7..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta3PolicyRulesWithSubjectsFluent.java +++ /dev/null @@ -1,571 +0,0 @@ -package io.kubernetes.client.openapi.models; - -import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.Nested; -import java.util.ArrayList; -import java.lang.String; -import java.util.function.Predicate; -import io.kubernetes.client.fluent.BaseFluent; -import java.util.Iterator; -import java.util.List; -import java.util.Collection; -import java.lang.Object; - -/** - * Generated - */ -@SuppressWarnings("unchecked") -public class V1beta3PolicyRulesWithSubjectsFluent> extends BaseFluent{ - public V1beta3PolicyRulesWithSubjectsFluent() { - } - - public V1beta3PolicyRulesWithSubjectsFluent(V1beta3PolicyRulesWithSubjects instance) { - this.copyInstance(instance); - } - private ArrayList nonResourceRules; - private ArrayList resourceRules; - private ArrayList subjects; - - protected void copyInstance(V1beta3PolicyRulesWithSubjects instance) { - instance = (instance != null ? instance : new V1beta3PolicyRulesWithSubjects()); - if (instance != null) { - this.withNonResourceRules(instance.getNonResourceRules()); - this.withResourceRules(instance.getResourceRules()); - this.withSubjects(instance.getSubjects()); - } - } - - public A addToNonResourceRules(int index,V1beta3NonResourcePolicyRule item) { - if (this.nonResourceRules == null) {this.nonResourceRules = new ArrayList();} - V1beta3NonResourcePolicyRuleBuilder builder = new V1beta3NonResourcePolicyRuleBuilder(item); - if (index < 0 || index >= nonResourceRules.size()) { _visitables.get("nonResourceRules").add(builder); nonResourceRules.add(builder); } else { _visitables.get("nonResourceRules").add(index, builder); nonResourceRules.add(index, builder);} - return (A)this; - } - - public A setToNonResourceRules(int index,V1beta3NonResourcePolicyRule item) { - if (this.nonResourceRules == null) {this.nonResourceRules = new ArrayList();} - V1beta3NonResourcePolicyRuleBuilder builder = new V1beta3NonResourcePolicyRuleBuilder(item); - if (index < 0 || index >= nonResourceRules.size()) { _visitables.get("nonResourceRules").add(builder); nonResourceRules.add(builder); } else { _visitables.get("nonResourceRules").set(index, builder); nonResourceRules.set(index, builder);} - return (A)this; - } - - public A addToNonResourceRules(io.kubernetes.client.openapi.models.V1beta3NonResourcePolicyRule... items) { - if (this.nonResourceRules == null) {this.nonResourceRules = new ArrayList();} - for (V1beta3NonResourcePolicyRule item : items) {V1beta3NonResourcePolicyRuleBuilder builder = new V1beta3NonResourcePolicyRuleBuilder(item);_visitables.get("nonResourceRules").add(builder);this.nonResourceRules.add(builder);} return (A)this; - } - - public A addAllToNonResourceRules(Collection items) { - if (this.nonResourceRules == null) {this.nonResourceRules = new ArrayList();} - for (V1beta3NonResourcePolicyRule item : items) {V1beta3NonResourcePolicyRuleBuilder builder = new V1beta3NonResourcePolicyRuleBuilder(item);_visitables.get("nonResourceRules").add(builder);this.nonResourceRules.add(builder);} return (A)this; - } - - public A removeFromNonResourceRules(io.kubernetes.client.openapi.models.V1beta3NonResourcePolicyRule... items) { - if (this.nonResourceRules == null) return (A)this; - for (V1beta3NonResourcePolicyRule item : items) {V1beta3NonResourcePolicyRuleBuilder builder = new V1beta3NonResourcePolicyRuleBuilder(item);_visitables.get("nonResourceRules").remove(builder); this.nonResourceRules.remove(builder);} return (A)this; - } - - public A removeAllFromNonResourceRules(Collection items) { - if (this.nonResourceRules == null) return (A)this; - for (V1beta3NonResourcePolicyRule item : items) {V1beta3NonResourcePolicyRuleBuilder builder = new V1beta3NonResourcePolicyRuleBuilder(item);_visitables.get("nonResourceRules").remove(builder); this.nonResourceRules.remove(builder);} return (A)this; - } - - public A removeMatchingFromNonResourceRules(Predicate predicate) { - if (nonResourceRules == null) return (A) this; - final Iterator each = nonResourceRules.iterator(); - final List visitables = _visitables.get("nonResourceRules"); - while (each.hasNext()) { - V1beta3NonResourcePolicyRuleBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } - } - return (A)this; - } - - public List buildNonResourceRules() { - return this.nonResourceRules != null ? build(nonResourceRules) : null; - } - - public V1beta3NonResourcePolicyRule buildNonResourceRule(int index) { - return this.nonResourceRules.get(index).build(); - } - - public V1beta3NonResourcePolicyRule buildFirstNonResourceRule() { - return this.nonResourceRules.get(0).build(); - } - - public V1beta3NonResourcePolicyRule buildLastNonResourceRule() { - return this.nonResourceRules.get(nonResourceRules.size() - 1).build(); - } - - public V1beta3NonResourcePolicyRule buildMatchingNonResourceRule(Predicate predicate) { - for (V1beta3NonResourcePolicyRuleBuilder item : nonResourceRules) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; - } - - public boolean hasMatchingNonResourceRule(Predicate predicate) { - for (V1beta3NonResourcePolicyRuleBuilder item : nonResourceRules) { - if (predicate.test(item)) { - return true; - } - } - return false; - } - - public A withNonResourceRules(List nonResourceRules) { - if (this.nonResourceRules != null) { - this._visitables.get("nonResourceRules").clear(); - } - if (nonResourceRules != null) { - this.nonResourceRules = new ArrayList(); - for (V1beta3NonResourcePolicyRule item : nonResourceRules) { - this.addToNonResourceRules(item); - } - } else { - this.nonResourceRules = null; - } - return (A) this; - } - - public A withNonResourceRules(io.kubernetes.client.openapi.models.V1beta3NonResourcePolicyRule... nonResourceRules) { - if (this.nonResourceRules != null) { - this.nonResourceRules.clear(); - _visitables.remove("nonResourceRules"); - } - if (nonResourceRules != null) { - for (V1beta3NonResourcePolicyRule item : nonResourceRules) { - this.addToNonResourceRules(item); - } - } - return (A) this; - } - - public boolean hasNonResourceRules() { - return this.nonResourceRules != null && !this.nonResourceRules.isEmpty(); - } - - public NonResourceRulesNested addNewNonResourceRule() { - return new NonResourceRulesNested(-1, null); - } - - public NonResourceRulesNested addNewNonResourceRuleLike(V1beta3NonResourcePolicyRule item) { - return new NonResourceRulesNested(-1, item); - } - - public NonResourceRulesNested setNewNonResourceRuleLike(int index,V1beta3NonResourcePolicyRule item) { - return new NonResourceRulesNested(index, item); - } - - public NonResourceRulesNested editNonResourceRule(int index) { - if (nonResourceRules.size() <= index) throw new RuntimeException("Can't edit nonResourceRules. Index exceeds size."); - return setNewNonResourceRuleLike(index, buildNonResourceRule(index)); - } - - public NonResourceRulesNested editFirstNonResourceRule() { - if (nonResourceRules.size() == 0) throw new RuntimeException("Can't edit first nonResourceRules. The list is empty."); - return setNewNonResourceRuleLike(0, buildNonResourceRule(0)); - } - - public NonResourceRulesNested editLastNonResourceRule() { - int index = nonResourceRules.size() - 1; - if (index < 0) throw new RuntimeException("Can't edit last nonResourceRules. The list is empty."); - return setNewNonResourceRuleLike(index, buildNonResourceRule(index)); - } - - public NonResourceRulesNested editMatchingNonResourceRule(Predicate predicate) { - int index = -1; - for (int i=0;i();} - V1beta3ResourcePolicyRuleBuilder builder = new V1beta3ResourcePolicyRuleBuilder(item); - if (index < 0 || index >= resourceRules.size()) { _visitables.get("resourceRules").add(builder); resourceRules.add(builder); } else { _visitables.get("resourceRules").add(index, builder); resourceRules.add(index, builder);} - return (A)this; - } - - public A setToResourceRules(int index,V1beta3ResourcePolicyRule item) { - if (this.resourceRules == null) {this.resourceRules = new ArrayList();} - V1beta3ResourcePolicyRuleBuilder builder = new V1beta3ResourcePolicyRuleBuilder(item); - if (index < 0 || index >= resourceRules.size()) { _visitables.get("resourceRules").add(builder); resourceRules.add(builder); } else { _visitables.get("resourceRules").set(index, builder); resourceRules.set(index, builder);} - return (A)this; - } - - public A addToResourceRules(io.kubernetes.client.openapi.models.V1beta3ResourcePolicyRule... items) { - if (this.resourceRules == null) {this.resourceRules = new ArrayList();} - for (V1beta3ResourcePolicyRule item : items) {V1beta3ResourcePolicyRuleBuilder builder = new V1beta3ResourcePolicyRuleBuilder(item);_visitables.get("resourceRules").add(builder);this.resourceRules.add(builder);} return (A)this; - } - - public A addAllToResourceRules(Collection items) { - if (this.resourceRules == null) {this.resourceRules = new ArrayList();} - for (V1beta3ResourcePolicyRule item : items) {V1beta3ResourcePolicyRuleBuilder builder = new V1beta3ResourcePolicyRuleBuilder(item);_visitables.get("resourceRules").add(builder);this.resourceRules.add(builder);} return (A)this; - } - - public A removeFromResourceRules(io.kubernetes.client.openapi.models.V1beta3ResourcePolicyRule... items) { - if (this.resourceRules == null) return (A)this; - for (V1beta3ResourcePolicyRule item : items) {V1beta3ResourcePolicyRuleBuilder builder = new V1beta3ResourcePolicyRuleBuilder(item);_visitables.get("resourceRules").remove(builder); this.resourceRules.remove(builder);} return (A)this; - } - - public A removeAllFromResourceRules(Collection items) { - if (this.resourceRules == null) return (A)this; - for (V1beta3ResourcePolicyRule item : items) {V1beta3ResourcePolicyRuleBuilder builder = new V1beta3ResourcePolicyRuleBuilder(item);_visitables.get("resourceRules").remove(builder); this.resourceRules.remove(builder);} return (A)this; - } - - public A removeMatchingFromResourceRules(Predicate predicate) { - if (resourceRules == null) return (A) this; - final Iterator each = resourceRules.iterator(); - final List visitables = _visitables.get("resourceRules"); - while (each.hasNext()) { - V1beta3ResourcePolicyRuleBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } - } - return (A)this; - } - - public List buildResourceRules() { - return this.resourceRules != null ? build(resourceRules) : null; - } - - public V1beta3ResourcePolicyRule buildResourceRule(int index) { - return this.resourceRules.get(index).build(); - } - - public V1beta3ResourcePolicyRule buildFirstResourceRule() { - return this.resourceRules.get(0).build(); - } - - public V1beta3ResourcePolicyRule buildLastResourceRule() { - return this.resourceRules.get(resourceRules.size() - 1).build(); - } - - public V1beta3ResourcePolicyRule buildMatchingResourceRule(Predicate predicate) { - for (V1beta3ResourcePolicyRuleBuilder item : resourceRules) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; - } - - public boolean hasMatchingResourceRule(Predicate predicate) { - for (V1beta3ResourcePolicyRuleBuilder item : resourceRules) { - if (predicate.test(item)) { - return true; - } - } - return false; - } - - public A withResourceRules(List resourceRules) { - if (this.resourceRules != null) { - this._visitables.get("resourceRules").clear(); - } - if (resourceRules != null) { - this.resourceRules = new ArrayList(); - for (V1beta3ResourcePolicyRule item : resourceRules) { - this.addToResourceRules(item); - } - } else { - this.resourceRules = null; - } - return (A) this; - } - - public A withResourceRules(io.kubernetes.client.openapi.models.V1beta3ResourcePolicyRule... resourceRules) { - if (this.resourceRules != null) { - this.resourceRules.clear(); - _visitables.remove("resourceRules"); - } - if (resourceRules != null) { - for (V1beta3ResourcePolicyRule item : resourceRules) { - this.addToResourceRules(item); - } - } - return (A) this; - } - - public boolean hasResourceRules() { - return this.resourceRules != null && !this.resourceRules.isEmpty(); - } - - public ResourceRulesNested addNewResourceRule() { - return new ResourceRulesNested(-1, null); - } - - public ResourceRulesNested addNewResourceRuleLike(V1beta3ResourcePolicyRule item) { - return new ResourceRulesNested(-1, item); - } - - public ResourceRulesNested setNewResourceRuleLike(int index,V1beta3ResourcePolicyRule item) { - return new ResourceRulesNested(index, item); - } - - public ResourceRulesNested editResourceRule(int index) { - if (resourceRules.size() <= index) throw new RuntimeException("Can't edit resourceRules. Index exceeds size."); - return setNewResourceRuleLike(index, buildResourceRule(index)); - } - - public ResourceRulesNested editFirstResourceRule() { - if (resourceRules.size() == 0) throw new RuntimeException("Can't edit first resourceRules. The list is empty."); - return setNewResourceRuleLike(0, buildResourceRule(0)); - } - - public ResourceRulesNested editLastResourceRule() { - int index = resourceRules.size() - 1; - if (index < 0) throw new RuntimeException("Can't edit last resourceRules. The list is empty."); - return setNewResourceRuleLike(index, buildResourceRule(index)); - } - - public ResourceRulesNested editMatchingResourceRule(Predicate predicate) { - int index = -1; - for (int i=0;i();} - V1beta3SubjectBuilder builder = new V1beta3SubjectBuilder(item); - if (index < 0 || index >= subjects.size()) { _visitables.get("subjects").add(builder); subjects.add(builder); } else { _visitables.get("subjects").add(index, builder); subjects.add(index, builder);} - return (A)this; - } - - public A setToSubjects(int index,V1beta3Subject item) { - if (this.subjects == null) {this.subjects = new ArrayList();} - V1beta3SubjectBuilder builder = new V1beta3SubjectBuilder(item); - if (index < 0 || index >= subjects.size()) { _visitables.get("subjects").add(builder); subjects.add(builder); } else { _visitables.get("subjects").set(index, builder); subjects.set(index, builder);} - return (A)this; - } - - public A addToSubjects(io.kubernetes.client.openapi.models.V1beta3Subject... items) { - if (this.subjects == null) {this.subjects = new ArrayList();} - for (V1beta3Subject item : items) {V1beta3SubjectBuilder builder = new V1beta3SubjectBuilder(item);_visitables.get("subjects").add(builder);this.subjects.add(builder);} return (A)this; - } - - public A addAllToSubjects(Collection items) { - if (this.subjects == null) {this.subjects = new ArrayList();} - for (V1beta3Subject item : items) {V1beta3SubjectBuilder builder = new V1beta3SubjectBuilder(item);_visitables.get("subjects").add(builder);this.subjects.add(builder);} return (A)this; - } - - public A removeFromSubjects(io.kubernetes.client.openapi.models.V1beta3Subject... items) { - if (this.subjects == null) return (A)this; - for (V1beta3Subject item : items) {V1beta3SubjectBuilder builder = new V1beta3SubjectBuilder(item);_visitables.get("subjects").remove(builder); this.subjects.remove(builder);} return (A)this; - } - - public A removeAllFromSubjects(Collection items) { - if (this.subjects == null) return (A)this; - for (V1beta3Subject item : items) {V1beta3SubjectBuilder builder = new V1beta3SubjectBuilder(item);_visitables.get("subjects").remove(builder); this.subjects.remove(builder);} return (A)this; - } - - public A removeMatchingFromSubjects(Predicate predicate) { - if (subjects == null) return (A) this; - final Iterator each = subjects.iterator(); - final List visitables = _visitables.get("subjects"); - while (each.hasNext()) { - V1beta3SubjectBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } - } - return (A)this; - } - - public List buildSubjects() { - return this.subjects != null ? build(subjects) : null; - } - - public V1beta3Subject buildSubject(int index) { - return this.subjects.get(index).build(); - } - - public V1beta3Subject buildFirstSubject() { - return this.subjects.get(0).build(); - } - - public V1beta3Subject buildLastSubject() { - return this.subjects.get(subjects.size() - 1).build(); - } - - public V1beta3Subject buildMatchingSubject(Predicate predicate) { - for (V1beta3SubjectBuilder item : subjects) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; - } - - public boolean hasMatchingSubject(Predicate predicate) { - for (V1beta3SubjectBuilder item : subjects) { - if (predicate.test(item)) { - return true; - } - } - return false; - } - - public A withSubjects(List subjects) { - if (this.subjects != null) { - this._visitables.get("subjects").clear(); - } - if (subjects != null) { - this.subjects = new ArrayList(); - for (V1beta3Subject item : subjects) { - this.addToSubjects(item); - } - } else { - this.subjects = null; - } - return (A) this; - } - - public A withSubjects(io.kubernetes.client.openapi.models.V1beta3Subject... subjects) { - if (this.subjects != null) { - this.subjects.clear(); - _visitables.remove("subjects"); - } - if (subjects != null) { - for (V1beta3Subject item : subjects) { - this.addToSubjects(item); - } - } - return (A) this; - } - - public boolean hasSubjects() { - return this.subjects != null && !this.subjects.isEmpty(); - } - - public SubjectsNested addNewSubject() { - return new SubjectsNested(-1, null); - } - - public SubjectsNested addNewSubjectLike(V1beta3Subject item) { - return new SubjectsNested(-1, item); - } - - public SubjectsNested setNewSubjectLike(int index,V1beta3Subject item) { - return new SubjectsNested(index, item); - } - - public SubjectsNested editSubject(int index) { - if (subjects.size() <= index) throw new RuntimeException("Can't edit subjects. Index exceeds size."); - return setNewSubjectLike(index, buildSubject(index)); - } - - public SubjectsNested editFirstSubject() { - if (subjects.size() == 0) throw new RuntimeException("Can't edit first subjects. The list is empty."); - return setNewSubjectLike(0, buildSubject(0)); - } - - public SubjectsNested editLastSubject() { - int index = subjects.size() - 1; - if (index < 0) throw new RuntimeException("Can't edit last subjects. The list is empty."); - return setNewSubjectLike(index, buildSubject(index)); - } - - public SubjectsNested editMatchingSubject(Predicate predicate) { - int index = -1; - for (int i=0;i extends V1beta3NonResourcePolicyRuleFluent> implements Nested{ - NonResourceRulesNested(int index,V1beta3NonResourcePolicyRule item) { - this.index = index; - this.builder = new V1beta3NonResourcePolicyRuleBuilder(this, item); - } - V1beta3NonResourcePolicyRuleBuilder builder; - int index; - - public N and() { - return (N) V1beta3PolicyRulesWithSubjectsFluent.this.setToNonResourceRules(index,builder.build()); - } - - public N endNonResourceRule() { - return and(); - } - - - } - public class ResourceRulesNested extends V1beta3ResourcePolicyRuleFluent> implements Nested{ - ResourceRulesNested(int index,V1beta3ResourcePolicyRule item) { - this.index = index; - this.builder = new V1beta3ResourcePolicyRuleBuilder(this, item); - } - V1beta3ResourcePolicyRuleBuilder builder; - int index; - - public N and() { - return (N) V1beta3PolicyRulesWithSubjectsFluent.this.setToResourceRules(index,builder.build()); - } - - public N endResourceRule() { - return and(); - } - - - } - public class SubjectsNested extends V1beta3SubjectFluent> implements Nested{ - SubjectsNested(int index,V1beta3Subject item) { - this.index = index; - this.builder = new V1beta3SubjectBuilder(this, item); - } - V1beta3SubjectBuilder builder; - int index; - - public N and() { - return (N) V1beta3PolicyRulesWithSubjectsFluent.this.setToSubjects(index,builder.build()); - } - - public N endSubject() { - return and(); - } - - - } - -} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta3PriorityLevelConfigurationBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta3PriorityLevelConfigurationBuilder.java deleted file mode 100644 index 00c499e56f..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta3PriorityLevelConfigurationBuilder.java +++ /dev/null @@ -1,35 +0,0 @@ -package io.kubernetes.client.openapi.models; - -import io.kubernetes.client.fluent.VisitableBuilder; -public class V1beta3PriorityLevelConfigurationBuilder extends V1beta3PriorityLevelConfigurationFluent implements VisitableBuilder{ - public V1beta3PriorityLevelConfigurationBuilder() { - this(new V1beta3PriorityLevelConfiguration()); - } - - public V1beta3PriorityLevelConfigurationBuilder(V1beta3PriorityLevelConfigurationFluent fluent) { - this(fluent, new V1beta3PriorityLevelConfiguration()); - } - - public V1beta3PriorityLevelConfigurationBuilder(V1beta3PriorityLevelConfigurationFluent fluent,V1beta3PriorityLevelConfiguration instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - - public V1beta3PriorityLevelConfigurationBuilder(V1beta3PriorityLevelConfiguration instance) { - this.fluent = this; - this.copyInstance(instance); - } - V1beta3PriorityLevelConfigurationFluent fluent; - - public V1beta3PriorityLevelConfiguration build() { - V1beta3PriorityLevelConfiguration buildable = new V1beta3PriorityLevelConfiguration(); - buildable.setApiVersion(fluent.getApiVersion()); - buildable.setKind(fluent.getKind()); - buildable.setMetadata(fluent.buildMetadata()); - buildable.setSpec(fluent.buildSpec()); - buildable.setStatus(fluent.buildStatus()); - return buildable; - } - - -} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta3PriorityLevelConfigurationConditionBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta3PriorityLevelConfigurationConditionBuilder.java deleted file mode 100644 index f44e8f39ab..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta3PriorityLevelConfigurationConditionBuilder.java +++ /dev/null @@ -1,35 +0,0 @@ -package io.kubernetes.client.openapi.models; - -import io.kubernetes.client.fluent.VisitableBuilder; -public class V1beta3PriorityLevelConfigurationConditionBuilder extends V1beta3PriorityLevelConfigurationConditionFluent implements VisitableBuilder{ - public V1beta3PriorityLevelConfigurationConditionBuilder() { - this(new V1beta3PriorityLevelConfigurationCondition()); - } - - public V1beta3PriorityLevelConfigurationConditionBuilder(V1beta3PriorityLevelConfigurationConditionFluent fluent) { - this(fluent, new V1beta3PriorityLevelConfigurationCondition()); - } - - public V1beta3PriorityLevelConfigurationConditionBuilder(V1beta3PriorityLevelConfigurationConditionFluent fluent,V1beta3PriorityLevelConfigurationCondition instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - - public V1beta3PriorityLevelConfigurationConditionBuilder(V1beta3PriorityLevelConfigurationCondition instance) { - this.fluent = this; - this.copyInstance(instance); - } - V1beta3PriorityLevelConfigurationConditionFluent fluent; - - public V1beta3PriorityLevelConfigurationCondition build() { - V1beta3PriorityLevelConfigurationCondition buildable = new V1beta3PriorityLevelConfigurationCondition(); - buildable.setLastTransitionTime(fluent.getLastTransitionTime()); - buildable.setMessage(fluent.getMessage()); - buildable.setReason(fluent.getReason()); - buildable.setStatus(fluent.getStatus()); - buildable.setType(fluent.getType()); - return buildable; - } - - -} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta3PriorityLevelConfigurationConditionFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta3PriorityLevelConfigurationConditionFluent.java deleted file mode 100644 index 08b2141d7b..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta3PriorityLevelConfigurationConditionFluent.java +++ /dev/null @@ -1,132 +0,0 @@ -package io.kubernetes.client.openapi.models; - -import java.time.OffsetDateTime; -import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.BaseFluent; -import java.lang.Object; -import java.lang.String; - -/** - * Generated - */ -@SuppressWarnings("unchecked") -public class V1beta3PriorityLevelConfigurationConditionFluent> extends BaseFluent{ - public V1beta3PriorityLevelConfigurationConditionFluent() { - } - - public V1beta3PriorityLevelConfigurationConditionFluent(V1beta3PriorityLevelConfigurationCondition instance) { - this.copyInstance(instance); - } - private OffsetDateTime lastTransitionTime; - private String message; - private String reason; - private String status; - private String type; - - protected void copyInstance(V1beta3PriorityLevelConfigurationCondition instance) { - instance = (instance != null ? instance : new V1beta3PriorityLevelConfigurationCondition()); - if (instance != null) { - this.withLastTransitionTime(instance.getLastTransitionTime()); - this.withMessage(instance.getMessage()); - this.withReason(instance.getReason()); - this.withStatus(instance.getStatus()); - this.withType(instance.getType()); - } - } - - public OffsetDateTime getLastTransitionTime() { - return this.lastTransitionTime; - } - - public A withLastTransitionTime(OffsetDateTime lastTransitionTime) { - this.lastTransitionTime = lastTransitionTime; - return (A) this; - } - - public boolean hasLastTransitionTime() { - return this.lastTransitionTime != null; - } - - public String getMessage() { - return this.message; - } - - public A withMessage(String message) { - this.message = message; - return (A) this; - } - - public boolean hasMessage() { - return this.message != null; - } - - public String getReason() { - return this.reason; - } - - public A withReason(String reason) { - this.reason = reason; - return (A) this; - } - - public boolean hasReason() { - return this.reason != null; - } - - public String getStatus() { - return this.status; - } - - public A withStatus(String status) { - this.status = status; - return (A) this; - } - - public boolean hasStatus() { - return this.status != null; - } - - public String getType() { - return this.type; - } - - public A withType(String type) { - this.type = type; - return (A) this; - } - - public boolean hasType() { - return this.type != null; - } - - public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; - V1beta3PriorityLevelConfigurationConditionFluent that = (V1beta3PriorityLevelConfigurationConditionFluent) o; - if (!java.util.Objects.equals(lastTransitionTime, that.lastTransitionTime)) return false; - if (!java.util.Objects.equals(message, that.message)) return false; - if (!java.util.Objects.equals(reason, that.reason)) return false; - if (!java.util.Objects.equals(status, that.status)) return false; - if (!java.util.Objects.equals(type, that.type)) return false; - return true; - } - - public int hashCode() { - return java.util.Objects.hash(lastTransitionTime, message, reason, status, type, super.hashCode()); - } - - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("{"); - if (lastTransitionTime != null) { sb.append("lastTransitionTime:"); sb.append(lastTransitionTime + ","); } - if (message != null) { sb.append("message:"); sb.append(message + ","); } - if (reason != null) { sb.append("reason:"); sb.append(reason + ","); } - if (status != null) { sb.append("status:"); sb.append(status + ","); } - if (type != null) { sb.append("type:"); sb.append(type); } - sb.append("}"); - return sb.toString(); - } - - -} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta3PriorityLevelConfigurationFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta3PriorityLevelConfigurationFluent.java deleted file mode 100644 index 9b2cb62467..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta3PriorityLevelConfigurationFluent.java +++ /dev/null @@ -1,260 +0,0 @@ -package io.kubernetes.client.openapi.models; - -import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.Nested; -import java.lang.String; -import io.kubernetes.client.fluent.BaseFluent; -import java.lang.Object; - -/** - * Generated - */ -@SuppressWarnings("unchecked") -public class V1beta3PriorityLevelConfigurationFluent> extends BaseFluent{ - public V1beta3PriorityLevelConfigurationFluent() { - } - - public V1beta3PriorityLevelConfigurationFluent(V1beta3PriorityLevelConfiguration instance) { - this.copyInstance(instance); - } - private String apiVersion; - private String kind; - private V1ObjectMetaBuilder metadata; - private V1beta3PriorityLevelConfigurationSpecBuilder spec; - private V1beta3PriorityLevelConfigurationStatusBuilder status; - - protected void copyInstance(V1beta3PriorityLevelConfiguration instance) { - instance = (instance != null ? instance : new V1beta3PriorityLevelConfiguration()); - if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withKind(instance.getKind()); - this.withMetadata(instance.getMetadata()); - this.withSpec(instance.getSpec()); - this.withStatus(instance.getStatus()); - } - } - - public String getApiVersion() { - return this.apiVersion; - } - - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; - } - - public boolean hasApiVersion() { - return this.apiVersion != null; - } - - public String getKind() { - return this.kind; - } - - public A withKind(String kind) { - this.kind = kind; - return (A) this; - } - - public boolean hasKind() { - return this.kind != null; - } - - public V1ObjectMeta buildMetadata() { - return this.metadata != null ? this.metadata.build() : null; - } - - public A withMetadata(V1ObjectMeta metadata) { - this._visitables.remove("metadata"); - if (metadata != null) { - this.metadata = new V1ObjectMetaBuilder(metadata); - this._visitables.get("metadata").add(this.metadata); - } else { - this.metadata = null; - this._visitables.get("metadata").remove(this.metadata); - } - return (A) this; - } - - public boolean hasMetadata() { - return this.metadata != null; - } - - public MetadataNested withNewMetadata() { - return new MetadataNested(null); - } - - public MetadataNested withNewMetadataLike(V1ObjectMeta item) { - return new MetadataNested(item); - } - - public MetadataNested editMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(null)); - } - - public MetadataNested editOrNewMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(new V1ObjectMetaBuilder().build())); - } - - public MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(item)); - } - - public V1beta3PriorityLevelConfigurationSpec buildSpec() { - return this.spec != null ? this.spec.build() : null; - } - - public A withSpec(V1beta3PriorityLevelConfigurationSpec spec) { - this._visitables.remove("spec"); - if (spec != null) { - this.spec = new V1beta3PriorityLevelConfigurationSpecBuilder(spec); - this._visitables.get("spec").add(this.spec); - } else { - this.spec = null; - this._visitables.get("spec").remove(this.spec); - } - return (A) this; - } - - public boolean hasSpec() { - return this.spec != null; - } - - public SpecNested withNewSpec() { - return new SpecNested(null); - } - - public SpecNested withNewSpecLike(V1beta3PriorityLevelConfigurationSpec item) { - return new SpecNested(item); - } - - public SpecNested editSpec() { - return withNewSpecLike(java.util.Optional.ofNullable(buildSpec()).orElse(null)); - } - - public SpecNested editOrNewSpec() { - return withNewSpecLike(java.util.Optional.ofNullable(buildSpec()).orElse(new V1beta3PriorityLevelConfigurationSpecBuilder().build())); - } - - public SpecNested editOrNewSpecLike(V1beta3PriorityLevelConfigurationSpec item) { - return withNewSpecLike(java.util.Optional.ofNullable(buildSpec()).orElse(item)); - } - - public V1beta3PriorityLevelConfigurationStatus buildStatus() { - return this.status != null ? this.status.build() : null; - } - - public A withStatus(V1beta3PriorityLevelConfigurationStatus status) { - this._visitables.remove("status"); - if (status != null) { - this.status = new V1beta3PriorityLevelConfigurationStatusBuilder(status); - this._visitables.get("status").add(this.status); - } else { - this.status = null; - this._visitables.get("status").remove(this.status); - } - return (A) this; - } - - public boolean hasStatus() { - return this.status != null; - } - - public StatusNested withNewStatus() { - return new StatusNested(null); - } - - public StatusNested withNewStatusLike(V1beta3PriorityLevelConfigurationStatus item) { - return new StatusNested(item); - } - - public StatusNested editStatus() { - return withNewStatusLike(java.util.Optional.ofNullable(buildStatus()).orElse(null)); - } - - public StatusNested editOrNewStatus() { - return withNewStatusLike(java.util.Optional.ofNullable(buildStatus()).orElse(new V1beta3PriorityLevelConfigurationStatusBuilder().build())); - } - - public StatusNested editOrNewStatusLike(V1beta3PriorityLevelConfigurationStatus item) { - return withNewStatusLike(java.util.Optional.ofNullable(buildStatus()).orElse(item)); - } - - public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; - V1beta3PriorityLevelConfigurationFluent that = (V1beta3PriorityLevelConfigurationFluent) o; - if (!java.util.Objects.equals(apiVersion, that.apiVersion)) return false; - if (!java.util.Objects.equals(kind, that.kind)) return false; - if (!java.util.Objects.equals(metadata, that.metadata)) return false; - if (!java.util.Objects.equals(spec, that.spec)) return false; - if (!java.util.Objects.equals(status, that.status)) return false; - return true; - } - - public int hashCode() { - return java.util.Objects.hash(apiVersion, kind, metadata, spec, status, super.hashCode()); - } - - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("{"); - if (apiVersion != null) { sb.append("apiVersion:"); sb.append(apiVersion + ","); } - if (kind != null) { sb.append("kind:"); sb.append(kind + ","); } - if (metadata != null) { sb.append("metadata:"); sb.append(metadata + ","); } - if (spec != null) { sb.append("spec:"); sb.append(spec + ","); } - if (status != null) { sb.append("status:"); sb.append(status); } - sb.append("}"); - return sb.toString(); - } - public class MetadataNested extends V1ObjectMetaFluent> implements Nested{ - MetadataNested(V1ObjectMeta item) { - this.builder = new V1ObjectMetaBuilder(this, item); - } - V1ObjectMetaBuilder builder; - - public N and() { - return (N) V1beta3PriorityLevelConfigurationFluent.this.withMetadata(builder.build()); - } - - public N endMetadata() { - return and(); - } - - - } - public class SpecNested extends V1beta3PriorityLevelConfigurationSpecFluent> implements Nested{ - SpecNested(V1beta3PriorityLevelConfigurationSpec item) { - this.builder = new V1beta3PriorityLevelConfigurationSpecBuilder(this, item); - } - V1beta3PriorityLevelConfigurationSpecBuilder builder; - - public N and() { - return (N) V1beta3PriorityLevelConfigurationFluent.this.withSpec(builder.build()); - } - - public N endSpec() { - return and(); - } - - - } - public class StatusNested extends V1beta3PriorityLevelConfigurationStatusFluent> implements Nested{ - StatusNested(V1beta3PriorityLevelConfigurationStatus item) { - this.builder = new V1beta3PriorityLevelConfigurationStatusBuilder(this, item); - } - V1beta3PriorityLevelConfigurationStatusBuilder builder; - - public N and() { - return (N) V1beta3PriorityLevelConfigurationFluent.this.withStatus(builder.build()); - } - - public N endStatus() { - return and(); - } - - - } - -} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta3PriorityLevelConfigurationListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta3PriorityLevelConfigurationListBuilder.java deleted file mode 100644 index 8b3eac19de..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta3PriorityLevelConfigurationListBuilder.java +++ /dev/null @@ -1,34 +0,0 @@ -package io.kubernetes.client.openapi.models; - -import io.kubernetes.client.fluent.VisitableBuilder; -public class V1beta3PriorityLevelConfigurationListBuilder extends V1beta3PriorityLevelConfigurationListFluent implements VisitableBuilder{ - public V1beta3PriorityLevelConfigurationListBuilder() { - this(new V1beta3PriorityLevelConfigurationList()); - } - - public V1beta3PriorityLevelConfigurationListBuilder(V1beta3PriorityLevelConfigurationListFluent fluent) { - this(fluent, new V1beta3PriorityLevelConfigurationList()); - } - - public V1beta3PriorityLevelConfigurationListBuilder(V1beta3PriorityLevelConfigurationListFluent fluent,V1beta3PriorityLevelConfigurationList instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - - public V1beta3PriorityLevelConfigurationListBuilder(V1beta3PriorityLevelConfigurationList instance) { - this.fluent = this; - this.copyInstance(instance); - } - V1beta3PriorityLevelConfigurationListFluent fluent; - - public V1beta3PriorityLevelConfigurationList build() { - V1beta3PriorityLevelConfigurationList buildable = new V1beta3PriorityLevelConfigurationList(); - buildable.setApiVersion(fluent.getApiVersion()); - buildable.setItems(fluent.buildItems()); - buildable.setKind(fluent.getKind()); - buildable.setMetadata(fluent.buildMetadata()); - return buildable; - } - - -} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta3PriorityLevelConfigurationListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta3PriorityLevelConfigurationListFluent.java deleted file mode 100644 index 53ef57fe3d..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta3PriorityLevelConfigurationListFluent.java +++ /dev/null @@ -1,319 +0,0 @@ -package io.kubernetes.client.openapi.models; - -import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.Nested; -import java.util.ArrayList; -import java.lang.String; -import java.util.function.Predicate; -import io.kubernetes.client.fluent.BaseFluent; -import java.util.Iterator; -import java.util.Collection; -import java.lang.Object; -import java.util.List; - -/** - * Generated - */ -@SuppressWarnings("unchecked") -public class V1beta3PriorityLevelConfigurationListFluent> extends BaseFluent{ - public V1beta3PriorityLevelConfigurationListFluent() { - } - - public V1beta3PriorityLevelConfigurationListFluent(V1beta3PriorityLevelConfigurationList instance) { - this.copyInstance(instance); - } - private String apiVersion; - private ArrayList items; - private String kind; - private V1ListMetaBuilder metadata; - - protected void copyInstance(V1beta3PriorityLevelConfigurationList instance) { - instance = (instance != null ? instance : new V1beta3PriorityLevelConfigurationList()); - if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withItems(instance.getItems()); - this.withKind(instance.getKind()); - this.withMetadata(instance.getMetadata()); - } - } - - public String getApiVersion() { - return this.apiVersion; - } - - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; - } - - public boolean hasApiVersion() { - return this.apiVersion != null; - } - - public A addToItems(int index,V1beta3PriorityLevelConfiguration item) { - if (this.items == null) {this.items = new ArrayList();} - V1beta3PriorityLevelConfigurationBuilder builder = new V1beta3PriorityLevelConfigurationBuilder(item); - if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); items.add(builder); } else { _visitables.get("items").add(index, builder); items.add(index, builder);} - return (A)this; - } - - public A setToItems(int index,V1beta3PriorityLevelConfiguration item) { - if (this.items == null) {this.items = new ArrayList();} - V1beta3PriorityLevelConfigurationBuilder builder = new V1beta3PriorityLevelConfigurationBuilder(item); - if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); items.add(builder); } else { _visitables.get("items").set(index, builder); items.set(index, builder);} - return (A)this; - } - - public A addToItems(io.kubernetes.client.openapi.models.V1beta3PriorityLevelConfiguration... items) { - if (this.items == null) {this.items = new ArrayList();} - for (V1beta3PriorityLevelConfiguration item : items) {V1beta3PriorityLevelConfigurationBuilder builder = new V1beta3PriorityLevelConfigurationBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; - } - - public A addAllToItems(Collection items) { - if (this.items == null) {this.items = new ArrayList();} - for (V1beta3PriorityLevelConfiguration item : items) {V1beta3PriorityLevelConfigurationBuilder builder = new V1beta3PriorityLevelConfigurationBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; - } - - public A removeFromItems(io.kubernetes.client.openapi.models.V1beta3PriorityLevelConfiguration... items) { - if (this.items == null) return (A)this; - for (V1beta3PriorityLevelConfiguration item : items) {V1beta3PriorityLevelConfigurationBuilder builder = new V1beta3PriorityLevelConfigurationBuilder(item);_visitables.get("items").remove(builder); this.items.remove(builder);} return (A)this; - } - - public A removeAllFromItems(Collection items) { - if (this.items == null) return (A)this; - for (V1beta3PriorityLevelConfiguration item : items) {V1beta3PriorityLevelConfigurationBuilder builder = new V1beta3PriorityLevelConfigurationBuilder(item);_visitables.get("items").remove(builder); this.items.remove(builder);} return (A)this; - } - - public A removeMatchingFromItems(Predicate predicate) { - if (items == null) return (A) this; - final Iterator each = items.iterator(); - final List visitables = _visitables.get("items"); - while (each.hasNext()) { - V1beta3PriorityLevelConfigurationBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } - } - return (A)this; - } - - public List buildItems() { - return this.items != null ? build(items) : null; - } - - public V1beta3PriorityLevelConfiguration buildItem(int index) { - return this.items.get(index).build(); - } - - public V1beta3PriorityLevelConfiguration buildFirstItem() { - return this.items.get(0).build(); - } - - public V1beta3PriorityLevelConfiguration buildLastItem() { - return this.items.get(items.size() - 1).build(); - } - - public V1beta3PriorityLevelConfiguration buildMatchingItem(Predicate predicate) { - for (V1beta3PriorityLevelConfigurationBuilder item : items) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; - } - - public boolean hasMatchingItem(Predicate predicate) { - for (V1beta3PriorityLevelConfigurationBuilder item : items) { - if (predicate.test(item)) { - return true; - } - } - return false; - } - - public A withItems(List items) { - if (this.items != null) { - this._visitables.get("items").clear(); - } - if (items != null) { - this.items = new ArrayList(); - for (V1beta3PriorityLevelConfiguration item : items) { - this.addToItems(item); - } - } else { - this.items = null; - } - return (A) this; - } - - public A withItems(io.kubernetes.client.openapi.models.V1beta3PriorityLevelConfiguration... items) { - if (this.items != null) { - this.items.clear(); - _visitables.remove("items"); - } - if (items != null) { - for (V1beta3PriorityLevelConfiguration item : items) { - this.addToItems(item); - } - } - return (A) this; - } - - public boolean hasItems() { - return this.items != null && !this.items.isEmpty(); - } - - public ItemsNested addNewItem() { - return new ItemsNested(-1, null); - } - - public ItemsNested addNewItemLike(V1beta3PriorityLevelConfiguration item) { - return new ItemsNested(-1, item); - } - - public ItemsNested setNewItemLike(int index,V1beta3PriorityLevelConfiguration item) { - return new ItemsNested(index, item); - } - - public ItemsNested editItem(int index) { - if (items.size() <= index) throw new RuntimeException("Can't edit items. Index exceeds size."); - return setNewItemLike(index, buildItem(index)); - } - - public ItemsNested editFirstItem() { - if (items.size() == 0) throw new RuntimeException("Can't edit first items. The list is empty."); - return setNewItemLike(0, buildItem(0)); - } - - public ItemsNested editLastItem() { - int index = items.size() - 1; - if (index < 0) throw new RuntimeException("Can't edit last items. The list is empty."); - return setNewItemLike(index, buildItem(index)); - } - - public ItemsNested editMatchingItem(Predicate predicate) { - int index = -1; - for (int i=0;i withNewMetadata() { - return new MetadataNested(null); - } - - public MetadataNested withNewMetadataLike(V1ListMeta item) { - return new MetadataNested(item); - } - - public MetadataNested editMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(null)); - } - - public MetadataNested editOrNewMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(new V1ListMetaBuilder().build())); - } - - public MetadataNested editOrNewMetadataLike(V1ListMeta item) { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(item)); - } - - public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; - V1beta3PriorityLevelConfigurationListFluent that = (V1beta3PriorityLevelConfigurationListFluent) o; - if (!java.util.Objects.equals(apiVersion, that.apiVersion)) return false; - if (!java.util.Objects.equals(items, that.items)) return false; - if (!java.util.Objects.equals(kind, that.kind)) return false; - if (!java.util.Objects.equals(metadata, that.metadata)) return false; - return true; - } - - public int hashCode() { - return java.util.Objects.hash(apiVersion, items, kind, metadata, super.hashCode()); - } - - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("{"); - if (apiVersion != null) { sb.append("apiVersion:"); sb.append(apiVersion + ","); } - if (items != null && !items.isEmpty()) { sb.append("items:"); sb.append(items + ","); } - if (kind != null) { sb.append("kind:"); sb.append(kind + ","); } - if (metadata != null) { sb.append("metadata:"); sb.append(metadata); } - sb.append("}"); - return sb.toString(); - } - public class ItemsNested extends V1beta3PriorityLevelConfigurationFluent> implements Nested{ - ItemsNested(int index,V1beta3PriorityLevelConfiguration item) { - this.index = index; - this.builder = new V1beta3PriorityLevelConfigurationBuilder(this, item); - } - V1beta3PriorityLevelConfigurationBuilder builder; - int index; - - public N and() { - return (N) V1beta3PriorityLevelConfigurationListFluent.this.setToItems(index,builder.build()); - } - - public N endItem() { - return and(); - } - - - } - public class MetadataNested extends V1ListMetaFluent> implements Nested{ - MetadataNested(V1ListMeta item) { - this.builder = new V1ListMetaBuilder(this, item); - } - V1ListMetaBuilder builder; - - public N and() { - return (N) V1beta3PriorityLevelConfigurationListFluent.this.withMetadata(builder.build()); - } - - public N endMetadata() { - return and(); - } - - - } - -} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta3PriorityLevelConfigurationReferenceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta3PriorityLevelConfigurationReferenceBuilder.java deleted file mode 100644 index 822ece046d..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta3PriorityLevelConfigurationReferenceBuilder.java +++ /dev/null @@ -1,31 +0,0 @@ -package io.kubernetes.client.openapi.models; - -import io.kubernetes.client.fluent.VisitableBuilder; -public class V1beta3PriorityLevelConfigurationReferenceBuilder extends V1beta3PriorityLevelConfigurationReferenceFluent implements VisitableBuilder{ - public V1beta3PriorityLevelConfigurationReferenceBuilder() { - this(new V1beta3PriorityLevelConfigurationReference()); - } - - public V1beta3PriorityLevelConfigurationReferenceBuilder(V1beta3PriorityLevelConfigurationReferenceFluent fluent) { - this(fluent, new V1beta3PriorityLevelConfigurationReference()); - } - - public V1beta3PriorityLevelConfigurationReferenceBuilder(V1beta3PriorityLevelConfigurationReferenceFluent fluent,V1beta3PriorityLevelConfigurationReference instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - - public V1beta3PriorityLevelConfigurationReferenceBuilder(V1beta3PriorityLevelConfigurationReference instance) { - this.fluent = this; - this.copyInstance(instance); - } - V1beta3PriorityLevelConfigurationReferenceFluent fluent; - - public V1beta3PriorityLevelConfigurationReference build() { - V1beta3PriorityLevelConfigurationReference buildable = new V1beta3PriorityLevelConfigurationReference(); - buildable.setName(fluent.getName()); - return buildable; - } - - -} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta3PriorityLevelConfigurationReferenceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta3PriorityLevelConfigurationReferenceFluent.java deleted file mode 100644 index f1cb480c86..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta3PriorityLevelConfigurationReferenceFluent.java +++ /dev/null @@ -1,63 +0,0 @@ -package io.kubernetes.client.openapi.models; - -import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.BaseFluent; -import java.lang.Object; -import java.lang.String; - -/** - * Generated - */ -@SuppressWarnings("unchecked") -public class V1beta3PriorityLevelConfigurationReferenceFluent> extends BaseFluent{ - public V1beta3PriorityLevelConfigurationReferenceFluent() { - } - - public V1beta3PriorityLevelConfigurationReferenceFluent(V1beta3PriorityLevelConfigurationReference instance) { - this.copyInstance(instance); - } - private String name; - - protected void copyInstance(V1beta3PriorityLevelConfigurationReference instance) { - instance = (instance != null ? instance : new V1beta3PriorityLevelConfigurationReference()); - if (instance != null) { - this.withName(instance.getName()); - } - } - - public String getName() { - return this.name; - } - - public A withName(String name) { - this.name = name; - return (A) this; - } - - public boolean hasName() { - return this.name != null; - } - - public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; - V1beta3PriorityLevelConfigurationReferenceFluent that = (V1beta3PriorityLevelConfigurationReferenceFluent) o; - if (!java.util.Objects.equals(name, that.name)) return false; - return true; - } - - public int hashCode() { - return java.util.Objects.hash(name, super.hashCode()); - } - - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("{"); - if (name != null) { sb.append("name:"); sb.append(name); } - sb.append("}"); - return sb.toString(); - } - - -} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta3PriorityLevelConfigurationSpecBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta3PriorityLevelConfigurationSpecBuilder.java deleted file mode 100644 index 6c7affc45c..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta3PriorityLevelConfigurationSpecBuilder.java +++ /dev/null @@ -1,33 +0,0 @@ -package io.kubernetes.client.openapi.models; - -import io.kubernetes.client.fluent.VisitableBuilder; -public class V1beta3PriorityLevelConfigurationSpecBuilder extends V1beta3PriorityLevelConfigurationSpecFluent implements VisitableBuilder{ - public V1beta3PriorityLevelConfigurationSpecBuilder() { - this(new V1beta3PriorityLevelConfigurationSpec()); - } - - public V1beta3PriorityLevelConfigurationSpecBuilder(V1beta3PriorityLevelConfigurationSpecFluent fluent) { - this(fluent, new V1beta3PriorityLevelConfigurationSpec()); - } - - public V1beta3PriorityLevelConfigurationSpecBuilder(V1beta3PriorityLevelConfigurationSpecFluent fluent,V1beta3PriorityLevelConfigurationSpec instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - - public V1beta3PriorityLevelConfigurationSpecBuilder(V1beta3PriorityLevelConfigurationSpec instance) { - this.fluent = this; - this.copyInstance(instance); - } - V1beta3PriorityLevelConfigurationSpecFluent fluent; - - public V1beta3PriorityLevelConfigurationSpec build() { - V1beta3PriorityLevelConfigurationSpec buildable = new V1beta3PriorityLevelConfigurationSpec(); - buildable.setExempt(fluent.buildExempt()); - buildable.setLimited(fluent.buildLimited()); - buildable.setType(fluent.getType()); - return buildable; - } - - -} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta3PriorityLevelConfigurationSpecFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta3PriorityLevelConfigurationSpecFluent.java deleted file mode 100644 index 4766c7dc96..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta3PriorityLevelConfigurationSpecFluent.java +++ /dev/null @@ -1,183 +0,0 @@ -package io.kubernetes.client.openapi.models; - -import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.Nested; -import java.lang.String; -import io.kubernetes.client.fluent.BaseFluent; -import java.lang.Object; - -/** - * Generated - */ -@SuppressWarnings("unchecked") -public class V1beta3PriorityLevelConfigurationSpecFluent> extends BaseFluent{ - public V1beta3PriorityLevelConfigurationSpecFluent() { - } - - public V1beta3PriorityLevelConfigurationSpecFluent(V1beta3PriorityLevelConfigurationSpec instance) { - this.copyInstance(instance); - } - private V1beta3ExemptPriorityLevelConfigurationBuilder exempt; - private V1beta3LimitedPriorityLevelConfigurationBuilder limited; - private String type; - - protected void copyInstance(V1beta3PriorityLevelConfigurationSpec instance) { - instance = (instance != null ? instance : new V1beta3PriorityLevelConfigurationSpec()); - if (instance != null) { - this.withExempt(instance.getExempt()); - this.withLimited(instance.getLimited()); - this.withType(instance.getType()); - } - } - - public V1beta3ExemptPriorityLevelConfiguration buildExempt() { - return this.exempt != null ? this.exempt.build() : null; - } - - public A withExempt(V1beta3ExemptPriorityLevelConfiguration exempt) { - this._visitables.remove("exempt"); - if (exempt != null) { - this.exempt = new V1beta3ExemptPriorityLevelConfigurationBuilder(exempt); - this._visitables.get("exempt").add(this.exempt); - } else { - this.exempt = null; - this._visitables.get("exempt").remove(this.exempt); - } - return (A) this; - } - - public boolean hasExempt() { - return this.exempt != null; - } - - public ExemptNested withNewExempt() { - return new ExemptNested(null); - } - - public ExemptNested withNewExemptLike(V1beta3ExemptPriorityLevelConfiguration item) { - return new ExemptNested(item); - } - - public ExemptNested editExempt() { - return withNewExemptLike(java.util.Optional.ofNullable(buildExempt()).orElse(null)); - } - - public ExemptNested editOrNewExempt() { - return withNewExemptLike(java.util.Optional.ofNullable(buildExempt()).orElse(new V1beta3ExemptPriorityLevelConfigurationBuilder().build())); - } - - public ExemptNested editOrNewExemptLike(V1beta3ExemptPriorityLevelConfiguration item) { - return withNewExemptLike(java.util.Optional.ofNullable(buildExempt()).orElse(item)); - } - - public V1beta3LimitedPriorityLevelConfiguration buildLimited() { - return this.limited != null ? this.limited.build() : null; - } - - public A withLimited(V1beta3LimitedPriorityLevelConfiguration limited) { - this._visitables.remove("limited"); - if (limited != null) { - this.limited = new V1beta3LimitedPriorityLevelConfigurationBuilder(limited); - this._visitables.get("limited").add(this.limited); - } else { - this.limited = null; - this._visitables.get("limited").remove(this.limited); - } - return (A) this; - } - - public boolean hasLimited() { - return this.limited != null; - } - - public LimitedNested withNewLimited() { - return new LimitedNested(null); - } - - public LimitedNested withNewLimitedLike(V1beta3LimitedPriorityLevelConfiguration item) { - return new LimitedNested(item); - } - - public LimitedNested editLimited() { - return withNewLimitedLike(java.util.Optional.ofNullable(buildLimited()).orElse(null)); - } - - public LimitedNested editOrNewLimited() { - return withNewLimitedLike(java.util.Optional.ofNullable(buildLimited()).orElse(new V1beta3LimitedPriorityLevelConfigurationBuilder().build())); - } - - public LimitedNested editOrNewLimitedLike(V1beta3LimitedPriorityLevelConfiguration item) { - return withNewLimitedLike(java.util.Optional.ofNullable(buildLimited()).orElse(item)); - } - - public String getType() { - return this.type; - } - - public A withType(String type) { - this.type = type; - return (A) this; - } - - public boolean hasType() { - return this.type != null; - } - - public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; - V1beta3PriorityLevelConfigurationSpecFluent that = (V1beta3PriorityLevelConfigurationSpecFluent) o; - if (!java.util.Objects.equals(exempt, that.exempt)) return false; - if (!java.util.Objects.equals(limited, that.limited)) return false; - if (!java.util.Objects.equals(type, that.type)) return false; - return true; - } - - public int hashCode() { - return java.util.Objects.hash(exempt, limited, type, super.hashCode()); - } - - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("{"); - if (exempt != null) { sb.append("exempt:"); sb.append(exempt + ","); } - if (limited != null) { sb.append("limited:"); sb.append(limited + ","); } - if (type != null) { sb.append("type:"); sb.append(type); } - sb.append("}"); - return sb.toString(); - } - public class ExemptNested extends V1beta3ExemptPriorityLevelConfigurationFluent> implements Nested{ - ExemptNested(V1beta3ExemptPriorityLevelConfiguration item) { - this.builder = new V1beta3ExemptPriorityLevelConfigurationBuilder(this, item); - } - V1beta3ExemptPriorityLevelConfigurationBuilder builder; - - public N and() { - return (N) V1beta3PriorityLevelConfigurationSpecFluent.this.withExempt(builder.build()); - } - - public N endExempt() { - return and(); - } - - - } - public class LimitedNested extends V1beta3LimitedPriorityLevelConfigurationFluent> implements Nested{ - LimitedNested(V1beta3LimitedPriorityLevelConfiguration item) { - this.builder = new V1beta3LimitedPriorityLevelConfigurationBuilder(this, item); - } - V1beta3LimitedPriorityLevelConfigurationBuilder builder; - - public N and() { - return (N) V1beta3PriorityLevelConfigurationSpecFluent.this.withLimited(builder.build()); - } - - public N endLimited() { - return and(); - } - - - } - -} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta3PriorityLevelConfigurationStatusBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta3PriorityLevelConfigurationStatusBuilder.java deleted file mode 100644 index c5d491cb26..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta3PriorityLevelConfigurationStatusBuilder.java +++ /dev/null @@ -1,31 +0,0 @@ -package io.kubernetes.client.openapi.models; - -import io.kubernetes.client.fluent.VisitableBuilder; -public class V1beta3PriorityLevelConfigurationStatusBuilder extends V1beta3PriorityLevelConfigurationStatusFluent implements VisitableBuilder{ - public V1beta3PriorityLevelConfigurationStatusBuilder() { - this(new V1beta3PriorityLevelConfigurationStatus()); - } - - public V1beta3PriorityLevelConfigurationStatusBuilder(V1beta3PriorityLevelConfigurationStatusFluent fluent) { - this(fluent, new V1beta3PriorityLevelConfigurationStatus()); - } - - public V1beta3PriorityLevelConfigurationStatusBuilder(V1beta3PriorityLevelConfigurationStatusFluent fluent,V1beta3PriorityLevelConfigurationStatus instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - - public V1beta3PriorityLevelConfigurationStatusBuilder(V1beta3PriorityLevelConfigurationStatus instance) { - this.fluent = this; - this.copyInstance(instance); - } - V1beta3PriorityLevelConfigurationStatusFluent fluent; - - public V1beta3PriorityLevelConfigurationStatus build() { - V1beta3PriorityLevelConfigurationStatus buildable = new V1beta3PriorityLevelConfigurationStatus(); - buildable.setConditions(fluent.buildConditions()); - return buildable; - } - - -} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta3PriorityLevelConfigurationStatusFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta3PriorityLevelConfigurationStatusFluent.java deleted file mode 100644 index 62bebdf577..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta3PriorityLevelConfigurationStatusFluent.java +++ /dev/null @@ -1,225 +0,0 @@ -package io.kubernetes.client.openapi.models; - -import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.Nested; -import java.util.ArrayList; -import java.lang.String; -import java.util.function.Predicate; -import io.kubernetes.client.fluent.BaseFluent; -import java.util.Iterator; -import java.util.Collection; -import java.lang.Object; -import java.util.List; - -/** - * Generated - */ -@SuppressWarnings("unchecked") -public class V1beta3PriorityLevelConfigurationStatusFluent> extends BaseFluent{ - public V1beta3PriorityLevelConfigurationStatusFluent() { - } - - public V1beta3PriorityLevelConfigurationStatusFluent(V1beta3PriorityLevelConfigurationStatus instance) { - this.copyInstance(instance); - } - private ArrayList conditions; - - protected void copyInstance(V1beta3PriorityLevelConfigurationStatus instance) { - instance = (instance != null ? instance : new V1beta3PriorityLevelConfigurationStatus()); - if (instance != null) { - this.withConditions(instance.getConditions()); - } - } - - public A addToConditions(int index,V1beta3PriorityLevelConfigurationCondition item) { - if (this.conditions == null) {this.conditions = new ArrayList();} - V1beta3PriorityLevelConfigurationConditionBuilder builder = new V1beta3PriorityLevelConfigurationConditionBuilder(item); - if (index < 0 || index >= conditions.size()) { _visitables.get("conditions").add(builder); conditions.add(builder); } else { _visitables.get("conditions").add(index, builder); conditions.add(index, builder);} - return (A)this; - } - - public A setToConditions(int index,V1beta3PriorityLevelConfigurationCondition item) { - if (this.conditions == null) {this.conditions = new ArrayList();} - V1beta3PriorityLevelConfigurationConditionBuilder builder = new V1beta3PriorityLevelConfigurationConditionBuilder(item); - if (index < 0 || index >= conditions.size()) { _visitables.get("conditions").add(builder); conditions.add(builder); } else { _visitables.get("conditions").set(index, builder); conditions.set(index, builder);} - return (A)this; - } - - public A addToConditions(io.kubernetes.client.openapi.models.V1beta3PriorityLevelConfigurationCondition... items) { - if (this.conditions == null) {this.conditions = new ArrayList();} - for (V1beta3PriorityLevelConfigurationCondition item : items) {V1beta3PriorityLevelConfigurationConditionBuilder builder = new V1beta3PriorityLevelConfigurationConditionBuilder(item);_visitables.get("conditions").add(builder);this.conditions.add(builder);} return (A)this; - } - - public A addAllToConditions(Collection items) { - if (this.conditions == null) {this.conditions = new ArrayList();} - for (V1beta3PriorityLevelConfigurationCondition item : items) {V1beta3PriorityLevelConfigurationConditionBuilder builder = new V1beta3PriorityLevelConfigurationConditionBuilder(item);_visitables.get("conditions").add(builder);this.conditions.add(builder);} return (A)this; - } - - public A removeFromConditions(io.kubernetes.client.openapi.models.V1beta3PriorityLevelConfigurationCondition... items) { - if (this.conditions == null) return (A)this; - for (V1beta3PriorityLevelConfigurationCondition item : items) {V1beta3PriorityLevelConfigurationConditionBuilder builder = new V1beta3PriorityLevelConfigurationConditionBuilder(item);_visitables.get("conditions").remove(builder); this.conditions.remove(builder);} return (A)this; - } - - public A removeAllFromConditions(Collection items) { - if (this.conditions == null) return (A)this; - for (V1beta3PriorityLevelConfigurationCondition item : items) {V1beta3PriorityLevelConfigurationConditionBuilder builder = new V1beta3PriorityLevelConfigurationConditionBuilder(item);_visitables.get("conditions").remove(builder); this.conditions.remove(builder);} return (A)this; - } - - public A removeMatchingFromConditions(Predicate predicate) { - if (conditions == null) return (A) this; - final Iterator each = conditions.iterator(); - final List visitables = _visitables.get("conditions"); - while (each.hasNext()) { - V1beta3PriorityLevelConfigurationConditionBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } - } - return (A)this; - } - - public List buildConditions() { - return this.conditions != null ? build(conditions) : null; - } - - public V1beta3PriorityLevelConfigurationCondition buildCondition(int index) { - return this.conditions.get(index).build(); - } - - public V1beta3PriorityLevelConfigurationCondition buildFirstCondition() { - return this.conditions.get(0).build(); - } - - public V1beta3PriorityLevelConfigurationCondition buildLastCondition() { - return this.conditions.get(conditions.size() - 1).build(); - } - - public V1beta3PriorityLevelConfigurationCondition buildMatchingCondition(Predicate predicate) { - for (V1beta3PriorityLevelConfigurationConditionBuilder item : conditions) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; - } - - public boolean hasMatchingCondition(Predicate predicate) { - for (V1beta3PriorityLevelConfigurationConditionBuilder item : conditions) { - if (predicate.test(item)) { - return true; - } - } - return false; - } - - public A withConditions(List conditions) { - if (this.conditions != null) { - this._visitables.get("conditions").clear(); - } - if (conditions != null) { - this.conditions = new ArrayList(); - for (V1beta3PriorityLevelConfigurationCondition item : conditions) { - this.addToConditions(item); - } - } else { - this.conditions = null; - } - return (A) this; - } - - public A withConditions(io.kubernetes.client.openapi.models.V1beta3PriorityLevelConfigurationCondition... conditions) { - if (this.conditions != null) { - this.conditions.clear(); - _visitables.remove("conditions"); - } - if (conditions != null) { - for (V1beta3PriorityLevelConfigurationCondition item : conditions) { - this.addToConditions(item); - } - } - return (A) this; - } - - public boolean hasConditions() { - return this.conditions != null && !this.conditions.isEmpty(); - } - - public ConditionsNested addNewCondition() { - return new ConditionsNested(-1, null); - } - - public ConditionsNested addNewConditionLike(V1beta3PriorityLevelConfigurationCondition item) { - return new ConditionsNested(-1, item); - } - - public ConditionsNested setNewConditionLike(int index,V1beta3PriorityLevelConfigurationCondition item) { - return new ConditionsNested(index, item); - } - - public ConditionsNested editCondition(int index) { - if (conditions.size() <= index) throw new RuntimeException("Can't edit conditions. Index exceeds size."); - return setNewConditionLike(index, buildCondition(index)); - } - - public ConditionsNested editFirstCondition() { - if (conditions.size() == 0) throw new RuntimeException("Can't edit first conditions. The list is empty."); - return setNewConditionLike(0, buildCondition(0)); - } - - public ConditionsNested editLastCondition() { - int index = conditions.size() - 1; - if (index < 0) throw new RuntimeException("Can't edit last conditions. The list is empty."); - return setNewConditionLike(index, buildCondition(index)); - } - - public ConditionsNested editMatchingCondition(Predicate predicate) { - int index = -1; - for (int i=0;i extends V1beta3PriorityLevelConfigurationConditionFluent> implements Nested{ - ConditionsNested(int index,V1beta3PriorityLevelConfigurationCondition item) { - this.index = index; - this.builder = new V1beta3PriorityLevelConfigurationConditionBuilder(this, item); - } - V1beta3PriorityLevelConfigurationConditionBuilder builder; - int index; - - public N and() { - return (N) V1beta3PriorityLevelConfigurationStatusFluent.this.setToConditions(index,builder.build()); - } - - public N endCondition() { - return and(); - } - - - } - -} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta3QueuingConfigurationBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta3QueuingConfigurationBuilder.java deleted file mode 100644 index 3d68ffd3fb..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta3QueuingConfigurationBuilder.java +++ /dev/null @@ -1,33 +0,0 @@ -package io.kubernetes.client.openapi.models; - -import io.kubernetes.client.fluent.VisitableBuilder; -public class V1beta3QueuingConfigurationBuilder extends V1beta3QueuingConfigurationFluent implements VisitableBuilder{ - public V1beta3QueuingConfigurationBuilder() { - this(new V1beta3QueuingConfiguration()); - } - - public V1beta3QueuingConfigurationBuilder(V1beta3QueuingConfigurationFluent fluent) { - this(fluent, new V1beta3QueuingConfiguration()); - } - - public V1beta3QueuingConfigurationBuilder(V1beta3QueuingConfigurationFluent fluent,V1beta3QueuingConfiguration instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - - public V1beta3QueuingConfigurationBuilder(V1beta3QueuingConfiguration instance) { - this.fluent = this; - this.copyInstance(instance); - } - V1beta3QueuingConfigurationFluent fluent; - - public V1beta3QueuingConfiguration build() { - V1beta3QueuingConfiguration buildable = new V1beta3QueuingConfiguration(); - buildable.setHandSize(fluent.getHandSize()); - buildable.setQueueLengthLimit(fluent.getQueueLengthLimit()); - buildable.setQueues(fluent.getQueues()); - return buildable; - } - - -} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta3QueuingConfigurationFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta3QueuingConfigurationFluent.java deleted file mode 100644 index d68d3d2e38..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta3QueuingConfigurationFluent.java +++ /dev/null @@ -1,98 +0,0 @@ -package io.kubernetes.client.openapi.models; - -import java.lang.Integer; -import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.BaseFluent; -import java.lang.Object; -import java.lang.String; - -/** - * Generated - */ -@SuppressWarnings("unchecked") -public class V1beta3QueuingConfigurationFluent> extends BaseFluent{ - public V1beta3QueuingConfigurationFluent() { - } - - public V1beta3QueuingConfigurationFluent(V1beta3QueuingConfiguration instance) { - this.copyInstance(instance); - } - private Integer handSize; - private Integer queueLengthLimit; - private Integer queues; - - protected void copyInstance(V1beta3QueuingConfiguration instance) { - instance = (instance != null ? instance : new V1beta3QueuingConfiguration()); - if (instance != null) { - this.withHandSize(instance.getHandSize()); - this.withQueueLengthLimit(instance.getQueueLengthLimit()); - this.withQueues(instance.getQueues()); - } - } - - public Integer getHandSize() { - return this.handSize; - } - - public A withHandSize(Integer handSize) { - this.handSize = handSize; - return (A) this; - } - - public boolean hasHandSize() { - return this.handSize != null; - } - - public Integer getQueueLengthLimit() { - return this.queueLengthLimit; - } - - public A withQueueLengthLimit(Integer queueLengthLimit) { - this.queueLengthLimit = queueLengthLimit; - return (A) this; - } - - public boolean hasQueueLengthLimit() { - return this.queueLengthLimit != null; - } - - public Integer getQueues() { - return this.queues; - } - - public A withQueues(Integer queues) { - this.queues = queues; - return (A) this; - } - - public boolean hasQueues() { - return this.queues != null; - } - - public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; - V1beta3QueuingConfigurationFluent that = (V1beta3QueuingConfigurationFluent) o; - if (!java.util.Objects.equals(handSize, that.handSize)) return false; - if (!java.util.Objects.equals(queueLengthLimit, that.queueLengthLimit)) return false; - if (!java.util.Objects.equals(queues, that.queues)) return false; - return true; - } - - public int hashCode() { - return java.util.Objects.hash(handSize, queueLengthLimit, queues, super.hashCode()); - } - - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("{"); - if (handSize != null) { sb.append("handSize:"); sb.append(handSize + ","); } - if (queueLengthLimit != null) { sb.append("queueLengthLimit:"); sb.append(queueLengthLimit + ","); } - if (queues != null) { sb.append("queues:"); sb.append(queues); } - sb.append("}"); - return sb.toString(); - } - - -} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta3ResourcePolicyRuleBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta3ResourcePolicyRuleBuilder.java deleted file mode 100644 index 17fd9d3588..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta3ResourcePolicyRuleBuilder.java +++ /dev/null @@ -1,35 +0,0 @@ -package io.kubernetes.client.openapi.models; - -import io.kubernetes.client.fluent.VisitableBuilder; -public class V1beta3ResourcePolicyRuleBuilder extends V1beta3ResourcePolicyRuleFluent implements VisitableBuilder{ - public V1beta3ResourcePolicyRuleBuilder() { - this(new V1beta3ResourcePolicyRule()); - } - - public V1beta3ResourcePolicyRuleBuilder(V1beta3ResourcePolicyRuleFluent fluent) { - this(fluent, new V1beta3ResourcePolicyRule()); - } - - public V1beta3ResourcePolicyRuleBuilder(V1beta3ResourcePolicyRuleFluent fluent,V1beta3ResourcePolicyRule instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - - public V1beta3ResourcePolicyRuleBuilder(V1beta3ResourcePolicyRule instance) { - this.fluent = this; - this.copyInstance(instance); - } - V1beta3ResourcePolicyRuleFluent fluent; - - public V1beta3ResourcePolicyRule build() { - V1beta3ResourcePolicyRule buildable = new V1beta3ResourcePolicyRule(); - buildable.setApiGroups(fluent.getApiGroups()); - buildable.setClusterScope(fluent.getClusterScope()); - buildable.setNamespaces(fluent.getNamespaces()); - buildable.setResources(fluent.getResources()); - buildable.setVerbs(fluent.getVerbs()); - return buildable; - } - - -} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta3ResourcePolicyRuleFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta3ResourcePolicyRuleFluent.java deleted file mode 100644 index f9f853671a..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta3ResourcePolicyRuleFluent.java +++ /dev/null @@ -1,464 +0,0 @@ -package io.kubernetes.client.openapi.models; - -import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.BaseFluent; -import java.util.ArrayList; -import java.util.Collection; -import java.lang.Object; -import java.util.List; -import java.lang.String; -import java.lang.Boolean; -import java.util.function.Predicate; - -/** - * Generated - */ -@SuppressWarnings("unchecked") -public class V1beta3ResourcePolicyRuleFluent> extends BaseFluent{ - public V1beta3ResourcePolicyRuleFluent() { - } - - public V1beta3ResourcePolicyRuleFluent(V1beta3ResourcePolicyRule instance) { - this.copyInstance(instance); - } - private List apiGroups; - private Boolean clusterScope; - private List namespaces; - private List resources; - private List verbs; - - protected void copyInstance(V1beta3ResourcePolicyRule instance) { - instance = (instance != null ? instance : new V1beta3ResourcePolicyRule()); - if (instance != null) { - this.withApiGroups(instance.getApiGroups()); - this.withClusterScope(instance.getClusterScope()); - this.withNamespaces(instance.getNamespaces()); - this.withResources(instance.getResources()); - this.withVerbs(instance.getVerbs()); - } - } - - public A addToApiGroups(int index,String item) { - if (this.apiGroups == null) {this.apiGroups = new ArrayList();} - this.apiGroups.add(index, item); - return (A)this; - } - - public A setToApiGroups(int index,String item) { - if (this.apiGroups == null) {this.apiGroups = new ArrayList();} - this.apiGroups.set(index, item); return (A)this; - } - - public A addToApiGroups(java.lang.String... items) { - if (this.apiGroups == null) {this.apiGroups = new ArrayList();} - for (String item : items) {this.apiGroups.add(item);} return (A)this; - } - - public A addAllToApiGroups(Collection items) { - if (this.apiGroups == null) {this.apiGroups = new ArrayList();} - for (String item : items) {this.apiGroups.add(item);} return (A)this; - } - - public A removeFromApiGroups(java.lang.String... items) { - if (this.apiGroups == null) return (A)this; - for (String item : items) { this.apiGroups.remove(item);} return (A)this; - } - - public A removeAllFromApiGroups(Collection items) { - if (this.apiGroups == null) return (A)this; - for (String item : items) { this.apiGroups.remove(item);} return (A)this; - } - - public List getApiGroups() { - return this.apiGroups; - } - - public String getApiGroup(int index) { - return this.apiGroups.get(index); - } - - public String getFirstApiGroup() { - return this.apiGroups.get(0); - } - - public String getLastApiGroup() { - return this.apiGroups.get(apiGroups.size() - 1); - } - - public String getMatchingApiGroup(Predicate predicate) { - for (String item : apiGroups) { - if (predicate.test(item)) { - return item; - } - } - return null; - } - - public boolean hasMatchingApiGroup(Predicate predicate) { - for (String item : apiGroups) { - if (predicate.test(item)) { - return true; - } - } - return false; - } - - public A withApiGroups(List apiGroups) { - if (apiGroups != null) { - this.apiGroups = new ArrayList(); - for (String item : apiGroups) { - this.addToApiGroups(item); - } - } else { - this.apiGroups = null; - } - return (A) this; - } - - public A withApiGroups(java.lang.String... apiGroups) { - if (this.apiGroups != null) { - this.apiGroups.clear(); - _visitables.remove("apiGroups"); - } - if (apiGroups != null) { - for (String item : apiGroups) { - this.addToApiGroups(item); - } - } - return (A) this; - } - - public boolean hasApiGroups() { - return this.apiGroups != null && !this.apiGroups.isEmpty(); - } - - public Boolean getClusterScope() { - return this.clusterScope; - } - - public A withClusterScope(Boolean clusterScope) { - this.clusterScope = clusterScope; - return (A) this; - } - - public boolean hasClusterScope() { - return this.clusterScope != null; - } - - public A addToNamespaces(int index,String item) { - if (this.namespaces == null) {this.namespaces = new ArrayList();} - this.namespaces.add(index, item); - return (A)this; - } - - public A setToNamespaces(int index,String item) { - if (this.namespaces == null) {this.namespaces = new ArrayList();} - this.namespaces.set(index, item); return (A)this; - } - - public A addToNamespaces(java.lang.String... items) { - if (this.namespaces == null) {this.namespaces = new ArrayList();} - for (String item : items) {this.namespaces.add(item);} return (A)this; - } - - public A addAllToNamespaces(Collection items) { - if (this.namespaces == null) {this.namespaces = new ArrayList();} - for (String item : items) {this.namespaces.add(item);} return (A)this; - } - - public A removeFromNamespaces(java.lang.String... items) { - if (this.namespaces == null) return (A)this; - for (String item : items) { this.namespaces.remove(item);} return (A)this; - } - - public A removeAllFromNamespaces(Collection items) { - if (this.namespaces == null) return (A)this; - for (String item : items) { this.namespaces.remove(item);} return (A)this; - } - - public List getNamespaces() { - return this.namespaces; - } - - public String getNamespace(int index) { - return this.namespaces.get(index); - } - - public String getFirstNamespace() { - return this.namespaces.get(0); - } - - public String getLastNamespace() { - return this.namespaces.get(namespaces.size() - 1); - } - - public String getMatchingNamespace(Predicate predicate) { - for (String item : namespaces) { - if (predicate.test(item)) { - return item; - } - } - return null; - } - - public boolean hasMatchingNamespace(Predicate predicate) { - for (String item : namespaces) { - if (predicate.test(item)) { - return true; - } - } - return false; - } - - public A withNamespaces(List namespaces) { - if (namespaces != null) { - this.namespaces = new ArrayList(); - for (String item : namespaces) { - this.addToNamespaces(item); - } - } else { - this.namespaces = null; - } - return (A) this; - } - - public A withNamespaces(java.lang.String... namespaces) { - if (this.namespaces != null) { - this.namespaces.clear(); - _visitables.remove("namespaces"); - } - if (namespaces != null) { - for (String item : namespaces) { - this.addToNamespaces(item); - } - } - return (A) this; - } - - public boolean hasNamespaces() { - return this.namespaces != null && !this.namespaces.isEmpty(); - } - - public A addToResources(int index,String item) { - if (this.resources == null) {this.resources = new ArrayList();} - this.resources.add(index, item); - return (A)this; - } - - public A setToResources(int index,String item) { - if (this.resources == null) {this.resources = new ArrayList();} - this.resources.set(index, item); return (A)this; - } - - public A addToResources(java.lang.String... items) { - if (this.resources == null) {this.resources = new ArrayList();} - for (String item : items) {this.resources.add(item);} return (A)this; - } - - public A addAllToResources(Collection items) { - if (this.resources == null) {this.resources = new ArrayList();} - for (String item : items) {this.resources.add(item);} return (A)this; - } - - public A removeFromResources(java.lang.String... items) { - if (this.resources == null) return (A)this; - for (String item : items) { this.resources.remove(item);} return (A)this; - } - - public A removeAllFromResources(Collection items) { - if (this.resources == null) return (A)this; - for (String item : items) { this.resources.remove(item);} return (A)this; - } - - public List getResources() { - return this.resources; - } - - public String getResource(int index) { - return this.resources.get(index); - } - - public String getFirstResource() { - return this.resources.get(0); - } - - public String getLastResource() { - return this.resources.get(resources.size() - 1); - } - - public String getMatchingResource(Predicate predicate) { - for (String item : resources) { - if (predicate.test(item)) { - return item; - } - } - return null; - } - - public boolean hasMatchingResource(Predicate predicate) { - for (String item : resources) { - if (predicate.test(item)) { - return true; - } - } - return false; - } - - public A withResources(List resources) { - if (resources != null) { - this.resources = new ArrayList(); - for (String item : resources) { - this.addToResources(item); - } - } else { - this.resources = null; - } - return (A) this; - } - - public A withResources(java.lang.String... resources) { - if (this.resources != null) { - this.resources.clear(); - _visitables.remove("resources"); - } - if (resources != null) { - for (String item : resources) { - this.addToResources(item); - } - } - return (A) this; - } - - public boolean hasResources() { - return this.resources != null && !this.resources.isEmpty(); - } - - public A addToVerbs(int index,String item) { - if (this.verbs == null) {this.verbs = new ArrayList();} - this.verbs.add(index, item); - return (A)this; - } - - public A setToVerbs(int index,String item) { - if (this.verbs == null) {this.verbs = new ArrayList();} - this.verbs.set(index, item); return (A)this; - } - - public A addToVerbs(java.lang.String... items) { - if (this.verbs == null) {this.verbs = new ArrayList();} - for (String item : items) {this.verbs.add(item);} return (A)this; - } - - public A addAllToVerbs(Collection items) { - if (this.verbs == null) {this.verbs = new ArrayList();} - for (String item : items) {this.verbs.add(item);} return (A)this; - } - - public A removeFromVerbs(java.lang.String... items) { - if (this.verbs == null) return (A)this; - for (String item : items) { this.verbs.remove(item);} return (A)this; - } - - public A removeAllFromVerbs(Collection items) { - if (this.verbs == null) return (A)this; - for (String item : items) { this.verbs.remove(item);} return (A)this; - } - - public List getVerbs() { - return this.verbs; - } - - public String getVerb(int index) { - return this.verbs.get(index); - } - - public String getFirstVerb() { - return this.verbs.get(0); - } - - public String getLastVerb() { - return this.verbs.get(verbs.size() - 1); - } - - public String getMatchingVerb(Predicate predicate) { - for (String item : verbs) { - if (predicate.test(item)) { - return item; - } - } - return null; - } - - public boolean hasMatchingVerb(Predicate predicate) { - for (String item : verbs) { - if (predicate.test(item)) { - return true; - } - } - return false; - } - - public A withVerbs(List verbs) { - if (verbs != null) { - this.verbs = new ArrayList(); - for (String item : verbs) { - this.addToVerbs(item); - } - } else { - this.verbs = null; - } - return (A) this; - } - - public A withVerbs(java.lang.String... verbs) { - if (this.verbs != null) { - this.verbs.clear(); - _visitables.remove("verbs"); - } - if (verbs != null) { - for (String item : verbs) { - this.addToVerbs(item); - } - } - return (A) this; - } - - public boolean hasVerbs() { - return this.verbs != null && !this.verbs.isEmpty(); - } - - public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; - V1beta3ResourcePolicyRuleFluent that = (V1beta3ResourcePolicyRuleFluent) o; - if (!java.util.Objects.equals(apiGroups, that.apiGroups)) return false; - if (!java.util.Objects.equals(clusterScope, that.clusterScope)) return false; - if (!java.util.Objects.equals(namespaces, that.namespaces)) return false; - if (!java.util.Objects.equals(resources, that.resources)) return false; - if (!java.util.Objects.equals(verbs, that.verbs)) return false; - return true; - } - - public int hashCode() { - return java.util.Objects.hash(apiGroups, clusterScope, namespaces, resources, verbs, super.hashCode()); - } - - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("{"); - if (apiGroups != null && !apiGroups.isEmpty()) { sb.append("apiGroups:"); sb.append(apiGroups + ","); } - if (clusterScope != null) { sb.append("clusterScope:"); sb.append(clusterScope + ","); } - if (namespaces != null && !namespaces.isEmpty()) { sb.append("namespaces:"); sb.append(namespaces + ","); } - if (resources != null && !resources.isEmpty()) { sb.append("resources:"); sb.append(resources + ","); } - if (verbs != null && !verbs.isEmpty()) { sb.append("verbs:"); sb.append(verbs); } - sb.append("}"); - return sb.toString(); - } - - public A withClusterScope() { - return withClusterScope(true); - } - - -} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta3ServiceAccountSubjectBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta3ServiceAccountSubjectBuilder.java deleted file mode 100644 index 8c3b61ad87..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta3ServiceAccountSubjectBuilder.java +++ /dev/null @@ -1,32 +0,0 @@ -package io.kubernetes.client.openapi.models; - -import io.kubernetes.client.fluent.VisitableBuilder; -public class V1beta3ServiceAccountSubjectBuilder extends V1beta3ServiceAccountSubjectFluent implements VisitableBuilder{ - public V1beta3ServiceAccountSubjectBuilder() { - this(new V1beta3ServiceAccountSubject()); - } - - public V1beta3ServiceAccountSubjectBuilder(V1beta3ServiceAccountSubjectFluent fluent) { - this(fluent, new V1beta3ServiceAccountSubject()); - } - - public V1beta3ServiceAccountSubjectBuilder(V1beta3ServiceAccountSubjectFluent fluent,V1beta3ServiceAccountSubject instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - - public V1beta3ServiceAccountSubjectBuilder(V1beta3ServiceAccountSubject instance) { - this.fluent = this; - this.copyInstance(instance); - } - V1beta3ServiceAccountSubjectFluent fluent; - - public V1beta3ServiceAccountSubject build() { - V1beta3ServiceAccountSubject buildable = new V1beta3ServiceAccountSubject(); - buildable.setName(fluent.getName()); - buildable.setNamespace(fluent.getNamespace()); - return buildable; - } - - -} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta3ServiceAccountSubjectFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta3ServiceAccountSubjectFluent.java deleted file mode 100644 index 1783211f82..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta3ServiceAccountSubjectFluent.java +++ /dev/null @@ -1,80 +0,0 @@ -package io.kubernetes.client.openapi.models; - -import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.BaseFluent; -import java.lang.Object; -import java.lang.String; - -/** - * Generated - */ -@SuppressWarnings("unchecked") -public class V1beta3ServiceAccountSubjectFluent> extends BaseFluent{ - public V1beta3ServiceAccountSubjectFluent() { - } - - public V1beta3ServiceAccountSubjectFluent(V1beta3ServiceAccountSubject instance) { - this.copyInstance(instance); - } - private String name; - private String namespace; - - protected void copyInstance(V1beta3ServiceAccountSubject instance) { - instance = (instance != null ? instance : new V1beta3ServiceAccountSubject()); - if (instance != null) { - this.withName(instance.getName()); - this.withNamespace(instance.getNamespace()); - } - } - - public String getName() { - return this.name; - } - - public A withName(String name) { - this.name = name; - return (A) this; - } - - public boolean hasName() { - return this.name != null; - } - - public String getNamespace() { - return this.namespace; - } - - public A withNamespace(String namespace) { - this.namespace = namespace; - return (A) this; - } - - public boolean hasNamespace() { - return this.namespace != null; - } - - public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; - V1beta3ServiceAccountSubjectFluent that = (V1beta3ServiceAccountSubjectFluent) o; - if (!java.util.Objects.equals(name, that.name)) return false; - if (!java.util.Objects.equals(namespace, that.namespace)) return false; - return true; - } - - public int hashCode() { - return java.util.Objects.hash(name, namespace, super.hashCode()); - } - - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("{"); - if (name != null) { sb.append("name:"); sb.append(name + ","); } - if (namespace != null) { sb.append("namespace:"); sb.append(namespace); } - sb.append("}"); - return sb.toString(); - } - - -} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta3SubjectBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta3SubjectBuilder.java deleted file mode 100644 index 1983339c71..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta3SubjectBuilder.java +++ /dev/null @@ -1,34 +0,0 @@ -package io.kubernetes.client.openapi.models; - -import io.kubernetes.client.fluent.VisitableBuilder; -public class V1beta3SubjectBuilder extends V1beta3SubjectFluent implements VisitableBuilder{ - public V1beta3SubjectBuilder() { - this(new V1beta3Subject()); - } - - public V1beta3SubjectBuilder(V1beta3SubjectFluent fluent) { - this(fluent, new V1beta3Subject()); - } - - public V1beta3SubjectBuilder(V1beta3SubjectFluent fluent,V1beta3Subject instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - - public V1beta3SubjectBuilder(V1beta3Subject instance) { - this.fluent = this; - this.copyInstance(instance); - } - V1beta3SubjectFluent fluent; - - public V1beta3Subject build() { - V1beta3Subject buildable = new V1beta3Subject(); - buildable.setGroup(fluent.buildGroup()); - buildable.setKind(fluent.getKind()); - buildable.setServiceAccount(fluent.buildServiceAccount()); - buildable.setUser(fluent.buildUser()); - return buildable; - } - - -} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta3SubjectFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta3SubjectFluent.java deleted file mode 100644 index ee9595846d..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta3SubjectFluent.java +++ /dev/null @@ -1,243 +0,0 @@ -package io.kubernetes.client.openapi.models; - -import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.Nested; -import java.lang.String; -import io.kubernetes.client.fluent.BaseFluent; -import java.lang.Object; - -/** - * Generated - */ -@SuppressWarnings("unchecked") -public class V1beta3SubjectFluent> extends BaseFluent{ - public V1beta3SubjectFluent() { - } - - public V1beta3SubjectFluent(V1beta3Subject instance) { - this.copyInstance(instance); - } - private V1beta3GroupSubjectBuilder group; - private String kind; - private V1beta3ServiceAccountSubjectBuilder serviceAccount; - private V1beta3UserSubjectBuilder user; - - protected void copyInstance(V1beta3Subject instance) { - instance = (instance != null ? instance : new V1beta3Subject()); - if (instance != null) { - this.withGroup(instance.getGroup()); - this.withKind(instance.getKind()); - this.withServiceAccount(instance.getServiceAccount()); - this.withUser(instance.getUser()); - } - } - - public V1beta3GroupSubject buildGroup() { - return this.group != null ? this.group.build() : null; - } - - public A withGroup(V1beta3GroupSubject group) { - this._visitables.remove("group"); - if (group != null) { - this.group = new V1beta3GroupSubjectBuilder(group); - this._visitables.get("group").add(this.group); - } else { - this.group = null; - this._visitables.get("group").remove(this.group); - } - return (A) this; - } - - public boolean hasGroup() { - return this.group != null; - } - - public GroupNested withNewGroup() { - return new GroupNested(null); - } - - public GroupNested withNewGroupLike(V1beta3GroupSubject item) { - return new GroupNested(item); - } - - public GroupNested editGroup() { - return withNewGroupLike(java.util.Optional.ofNullable(buildGroup()).orElse(null)); - } - - public GroupNested editOrNewGroup() { - return withNewGroupLike(java.util.Optional.ofNullable(buildGroup()).orElse(new V1beta3GroupSubjectBuilder().build())); - } - - public GroupNested editOrNewGroupLike(V1beta3GroupSubject item) { - return withNewGroupLike(java.util.Optional.ofNullable(buildGroup()).orElse(item)); - } - - public String getKind() { - return this.kind; - } - - public A withKind(String kind) { - this.kind = kind; - return (A) this; - } - - public boolean hasKind() { - return this.kind != null; - } - - public V1beta3ServiceAccountSubject buildServiceAccount() { - return this.serviceAccount != null ? this.serviceAccount.build() : null; - } - - public A withServiceAccount(V1beta3ServiceAccountSubject serviceAccount) { - this._visitables.remove("serviceAccount"); - if (serviceAccount != null) { - this.serviceAccount = new V1beta3ServiceAccountSubjectBuilder(serviceAccount); - this._visitables.get("serviceAccount").add(this.serviceAccount); - } else { - this.serviceAccount = null; - this._visitables.get("serviceAccount").remove(this.serviceAccount); - } - return (A) this; - } - - public boolean hasServiceAccount() { - return this.serviceAccount != null; - } - - public ServiceAccountNested withNewServiceAccount() { - return new ServiceAccountNested(null); - } - - public ServiceAccountNested withNewServiceAccountLike(V1beta3ServiceAccountSubject item) { - return new ServiceAccountNested(item); - } - - public ServiceAccountNested editServiceAccount() { - return withNewServiceAccountLike(java.util.Optional.ofNullable(buildServiceAccount()).orElse(null)); - } - - public ServiceAccountNested editOrNewServiceAccount() { - return withNewServiceAccountLike(java.util.Optional.ofNullable(buildServiceAccount()).orElse(new V1beta3ServiceAccountSubjectBuilder().build())); - } - - public ServiceAccountNested editOrNewServiceAccountLike(V1beta3ServiceAccountSubject item) { - return withNewServiceAccountLike(java.util.Optional.ofNullable(buildServiceAccount()).orElse(item)); - } - - public V1beta3UserSubject buildUser() { - return this.user != null ? this.user.build() : null; - } - - public A withUser(V1beta3UserSubject user) { - this._visitables.remove("user"); - if (user != null) { - this.user = new V1beta3UserSubjectBuilder(user); - this._visitables.get("user").add(this.user); - } else { - this.user = null; - this._visitables.get("user").remove(this.user); - } - return (A) this; - } - - public boolean hasUser() { - return this.user != null; - } - - public UserNested withNewUser() { - return new UserNested(null); - } - - public UserNested withNewUserLike(V1beta3UserSubject item) { - return new UserNested(item); - } - - public UserNested editUser() { - return withNewUserLike(java.util.Optional.ofNullable(buildUser()).orElse(null)); - } - - public UserNested editOrNewUser() { - return withNewUserLike(java.util.Optional.ofNullable(buildUser()).orElse(new V1beta3UserSubjectBuilder().build())); - } - - public UserNested editOrNewUserLike(V1beta3UserSubject item) { - return withNewUserLike(java.util.Optional.ofNullable(buildUser()).orElse(item)); - } - - public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; - V1beta3SubjectFluent that = (V1beta3SubjectFluent) o; - if (!java.util.Objects.equals(group, that.group)) return false; - if (!java.util.Objects.equals(kind, that.kind)) return false; - if (!java.util.Objects.equals(serviceAccount, that.serviceAccount)) return false; - if (!java.util.Objects.equals(user, that.user)) return false; - return true; - } - - public int hashCode() { - return java.util.Objects.hash(group, kind, serviceAccount, user, super.hashCode()); - } - - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("{"); - if (group != null) { sb.append("group:"); sb.append(group + ","); } - if (kind != null) { sb.append("kind:"); sb.append(kind + ","); } - if (serviceAccount != null) { sb.append("serviceAccount:"); sb.append(serviceAccount + ","); } - if (user != null) { sb.append("user:"); sb.append(user); } - sb.append("}"); - return sb.toString(); - } - public class GroupNested extends V1beta3GroupSubjectFluent> implements Nested{ - GroupNested(V1beta3GroupSubject item) { - this.builder = new V1beta3GroupSubjectBuilder(this, item); - } - V1beta3GroupSubjectBuilder builder; - - public N and() { - return (N) V1beta3SubjectFluent.this.withGroup(builder.build()); - } - - public N endGroup() { - return and(); - } - - - } - public class ServiceAccountNested extends V1beta3ServiceAccountSubjectFluent> implements Nested{ - ServiceAccountNested(V1beta3ServiceAccountSubject item) { - this.builder = new V1beta3ServiceAccountSubjectBuilder(this, item); - } - V1beta3ServiceAccountSubjectBuilder builder; - - public N and() { - return (N) V1beta3SubjectFluent.this.withServiceAccount(builder.build()); - } - - public N endServiceAccount() { - return and(); - } - - - } - public class UserNested extends V1beta3UserSubjectFluent> implements Nested{ - UserNested(V1beta3UserSubject item) { - this.builder = new V1beta3UserSubjectBuilder(this, item); - } - V1beta3UserSubjectBuilder builder; - - public N and() { - return (N) V1beta3SubjectFluent.this.withUser(builder.build()); - } - - public N endUser() { - return and(); - } - - - } - -} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta3UserSubjectBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta3UserSubjectBuilder.java deleted file mode 100644 index 4dbaf3110a..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta3UserSubjectBuilder.java +++ /dev/null @@ -1,31 +0,0 @@ -package io.kubernetes.client.openapi.models; - -import io.kubernetes.client.fluent.VisitableBuilder; -public class V1beta3UserSubjectBuilder extends V1beta3UserSubjectFluent implements VisitableBuilder{ - public V1beta3UserSubjectBuilder() { - this(new V1beta3UserSubject()); - } - - public V1beta3UserSubjectBuilder(V1beta3UserSubjectFluent fluent) { - this(fluent, new V1beta3UserSubject()); - } - - public V1beta3UserSubjectBuilder(V1beta3UserSubjectFluent fluent,V1beta3UserSubject instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - - public V1beta3UserSubjectBuilder(V1beta3UserSubject instance) { - this.fluent = this; - this.copyInstance(instance); - } - V1beta3UserSubjectFluent fluent; - - public V1beta3UserSubject build() { - V1beta3UserSubject buildable = new V1beta3UserSubject(); - buildable.setName(fluent.getName()); - return buildable; - } - - -} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta3UserSubjectFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta3UserSubjectFluent.java deleted file mode 100644 index da95360bd3..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta3UserSubjectFluent.java +++ /dev/null @@ -1,63 +0,0 @@ -package io.kubernetes.client.openapi.models; - -import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.BaseFluent; -import java.lang.Object; -import java.lang.String; - -/** - * Generated - */ -@SuppressWarnings("unchecked") -public class V1beta3UserSubjectFluent> extends BaseFluent{ - public V1beta3UserSubjectFluent() { - } - - public V1beta3UserSubjectFluent(V1beta3UserSubject instance) { - this.copyInstance(instance); - } - private String name; - - protected void copyInstance(V1beta3UserSubject instance) { - instance = (instance != null ? instance : new V1beta3UserSubject()); - if (instance != null) { - this.withName(instance.getName()); - } - } - - public String getName() { - return this.name; - } - - public A withName(String name) { - this.name = name; - return (A) this; - } - - public boolean hasName() { - return this.name != null; - } - - public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; - V1beta3UserSubjectFluent that = (V1beta3UserSubjectFluent) o; - if (!java.util.Objects.equals(name, that.name)) return false; - return true; - } - - public int hashCode() { - return java.util.Objects.hash(name, super.hashCode()); - } - - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("{"); - if (name != null) { sb.append("name:"); sb.append(name); } - sb.append("}"); - return sb.toString(); - } - - -} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2HPAScalingRulesBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2HPAScalingRulesBuilder.java index 073ef595f5..f29e05f432 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2HPAScalingRulesBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2HPAScalingRulesBuilder.java @@ -26,6 +26,7 @@ public V2HPAScalingRules build() { buildable.setPolicies(fluent.buildPolicies()); buildable.setSelectPolicy(fluent.getSelectPolicy()); buildable.setStabilizationWindowSeconds(fluent.getStabilizationWindowSeconds()); + buildable.setTolerance(fluent.getTolerance()); return buildable; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2HPAScalingRulesFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2HPAScalingRulesFluent.java index 51026c1d6f..26bdb09ee3 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2HPAScalingRulesFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2HPAScalingRulesFluent.java @@ -4,6 +4,7 @@ import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; +import io.kubernetes.client.custom.Quantity; import java.lang.String; import java.util.function.Predicate; import java.lang.Integer; @@ -27,6 +28,7 @@ public V2HPAScalingRulesFluent(V2HPAScalingRules instance) { private ArrayList policies; private String selectPolicy; private Integer stabilizationWindowSeconds; + private Quantity tolerance; protected void copyInstance(V2HPAScalingRules instance) { instance = (instance != null ? instance : new V2HPAScalingRules()); @@ -34,20 +36,33 @@ protected void copyInstance(V2HPAScalingRules instance) { this.withPolicies(instance.getPolicies()); this.withSelectPolicy(instance.getSelectPolicy()); this.withStabilizationWindowSeconds(instance.getStabilizationWindowSeconds()); + this.withTolerance(instance.getTolerance()); } } public A addToPolicies(int index,V2HPAScalingPolicy item) { if (this.policies == null) {this.policies = new ArrayList();} V2HPAScalingPolicyBuilder builder = new V2HPAScalingPolicyBuilder(item); - if (index < 0 || index >= policies.size()) { _visitables.get("policies").add(builder); policies.add(builder); } else { _visitables.get("policies").add(index, builder); policies.add(index, builder);} + if (index < 0 || index >= policies.size()) { + _visitables.get("policies").add(builder); + policies.add(builder); + } else { + _visitables.get("policies").add(builder); + policies.add(index, builder); + } return (A)this; } public A setToPolicies(int index,V2HPAScalingPolicy item) { if (this.policies == null) {this.policies = new ArrayList();} V2HPAScalingPolicyBuilder builder = new V2HPAScalingPolicyBuilder(item); - if (index < 0 || index >= policies.size()) { _visitables.get("policies").add(builder); policies.add(builder); } else { _visitables.get("policies").set(index, builder); policies.set(index, builder);} + if (index < 0 || index >= policies.size()) { + _visitables.get("policies").add(builder); + policies.add(builder); + } else { + _visitables.get("policies").add(builder); + policies.set(index, builder); + } return (A)this; } @@ -214,6 +229,23 @@ public boolean hasStabilizationWindowSeconds() { return this.stabilizationWindowSeconds != null; } + public Quantity getTolerance() { + return this.tolerance; + } + + public A withTolerance(Quantity tolerance) { + this.tolerance = tolerance; + return (A) this; + } + + public boolean hasTolerance() { + return this.tolerance != null; + } + + public A withNewTolerance(String value) { + return (A)withTolerance(new Quantity(value)); + } + public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; @@ -222,11 +254,12 @@ public boolean equals(Object o) { if (!java.util.Objects.equals(policies, that.policies)) return false; if (!java.util.Objects.equals(selectPolicy, that.selectPolicy)) return false; if (!java.util.Objects.equals(stabilizationWindowSeconds, that.stabilizationWindowSeconds)) return false; + if (!java.util.Objects.equals(tolerance, that.tolerance)) return false; return true; } public int hashCode() { - return java.util.Objects.hash(policies, selectPolicy, stabilizationWindowSeconds, super.hashCode()); + return java.util.Objects.hash(policies, selectPolicy, stabilizationWindowSeconds, tolerance, super.hashCode()); } public String toString() { @@ -234,7 +267,8 @@ public String toString() { sb.append("{"); if (policies != null && !policies.isEmpty()) { sb.append("policies:"); sb.append(policies + ","); } if (selectPolicy != null) { sb.append("selectPolicy:"); sb.append(selectPolicy + ","); } - if (stabilizationWindowSeconds != null) { sb.append("stabilizationWindowSeconds:"); sb.append(stabilizationWindowSeconds); } + if (stabilizationWindowSeconds != null) { sb.append("stabilizationWindowSeconds:"); sb.append(stabilizationWindowSeconds + ","); } + if (tolerance != null) { sb.append("tolerance:"); sb.append(tolerance); } sb.append("}"); return sb.toString(); } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2HorizontalPodAutoscalerListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2HorizontalPodAutoscalerListFluent.java index d3ab7660b5..dc760e2f95 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2HorizontalPodAutoscalerListFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2HorizontalPodAutoscalerListFluent.java @@ -54,14 +54,26 @@ public boolean hasApiVersion() { public A addToItems(int index,V2HorizontalPodAutoscaler item) { if (this.items == null) {this.items = new ArrayList();} V2HorizontalPodAutoscalerBuilder builder = new V2HorizontalPodAutoscalerBuilder(item); - if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); items.add(builder); } else { _visitables.get("items").add(index, builder); items.add(index, builder);} + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.add(index, builder); + } return (A)this; } public A setToItems(int index,V2HorizontalPodAutoscaler item) { if (this.items == null) {this.items = new ArrayList();} V2HorizontalPodAutoscalerBuilder builder = new V2HorizontalPodAutoscalerBuilder(item); - if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); items.add(builder); } else { _visitables.get("items").set(index, builder); items.set(index, builder);} + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.set(index, builder); + } return (A)this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2HorizontalPodAutoscalerSpecFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2HorizontalPodAutoscalerSpecFluent.java index d77d2095fc..510a44a4df 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2HorizontalPodAutoscalerSpecFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2HorizontalPodAutoscalerSpecFluent.java @@ -97,14 +97,26 @@ public boolean hasMaxReplicas() { public A addToMetrics(int index,V2MetricSpec item) { if (this.metrics == null) {this.metrics = new ArrayList();} V2MetricSpecBuilder builder = new V2MetricSpecBuilder(item); - if (index < 0 || index >= metrics.size()) { _visitables.get("metrics").add(builder); metrics.add(builder); } else { _visitables.get("metrics").add(index, builder); metrics.add(index, builder);} + if (index < 0 || index >= metrics.size()) { + _visitables.get("metrics").add(builder); + metrics.add(builder); + } else { + _visitables.get("metrics").add(builder); + metrics.add(index, builder); + } return (A)this; } public A setToMetrics(int index,V2MetricSpec item) { if (this.metrics == null) {this.metrics = new ArrayList();} V2MetricSpecBuilder builder = new V2MetricSpecBuilder(item); - if (index < 0 || index >= metrics.size()) { _visitables.get("metrics").add(builder); metrics.add(builder); } else { _visitables.get("metrics").set(index, builder); metrics.set(index, builder);} + if (index < 0 || index >= metrics.size()) { + _visitables.get("metrics").add(builder); + metrics.add(builder); + } else { + _visitables.get("metrics").add(builder); + metrics.set(index, builder); + } return (A)this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2HorizontalPodAutoscalerStatusFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2HorizontalPodAutoscalerStatusFluent.java index 1ad1936db9..c5d3af9e39 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2HorizontalPodAutoscalerStatusFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2HorizontalPodAutoscalerStatusFluent.java @@ -48,14 +48,26 @@ protected void copyInstance(V2HorizontalPodAutoscalerStatus instance) { public A addToConditions(int index,V2HorizontalPodAutoscalerCondition item) { if (this.conditions == null) {this.conditions = new ArrayList();} V2HorizontalPodAutoscalerConditionBuilder builder = new V2HorizontalPodAutoscalerConditionBuilder(item); - if (index < 0 || index >= conditions.size()) { _visitables.get("conditions").add(builder); conditions.add(builder); } else { _visitables.get("conditions").add(index, builder); conditions.add(index, builder);} + if (index < 0 || index >= conditions.size()) { + _visitables.get("conditions").add(builder); + conditions.add(builder); + } else { + _visitables.get("conditions").add(builder); + conditions.add(index, builder); + } return (A)this; } public A setToConditions(int index,V2HorizontalPodAutoscalerCondition item) { if (this.conditions == null) {this.conditions = new ArrayList();} V2HorizontalPodAutoscalerConditionBuilder builder = new V2HorizontalPodAutoscalerConditionBuilder(item); - if (index < 0 || index >= conditions.size()) { _visitables.get("conditions").add(builder); conditions.add(builder); } else { _visitables.get("conditions").set(index, builder); conditions.set(index, builder);} + if (index < 0 || index >= conditions.size()) { + _visitables.get("conditions").add(builder); + conditions.add(builder); + } else { + _visitables.get("conditions").add(builder); + conditions.set(index, builder); + } return (A)this; } @@ -199,14 +211,26 @@ public ConditionsNested editMatchingCondition(Predicate();} V2MetricStatusBuilder builder = new V2MetricStatusBuilder(item); - if (index < 0 || index >= currentMetrics.size()) { _visitables.get("currentMetrics").add(builder); currentMetrics.add(builder); } else { _visitables.get("currentMetrics").add(index, builder); currentMetrics.add(index, builder);} + if (index < 0 || index >= currentMetrics.size()) { + _visitables.get("currentMetrics").add(builder); + currentMetrics.add(builder); + } else { + _visitables.get("currentMetrics").add(builder); + currentMetrics.add(index, builder); + } return (A)this; } public A setToCurrentMetrics(int index,V2MetricStatus item) { if (this.currentMetrics == null) {this.currentMetrics = new ArrayList();} V2MetricStatusBuilder builder = new V2MetricStatusBuilder(item); - if (index < 0 || index >= currentMetrics.size()) { _visitables.get("currentMetrics").add(builder); currentMetrics.add(builder); } else { _visitables.get("currentMetrics").set(index, builder); currentMetrics.set(index, builder);} + if (index < 0 || index >= currentMetrics.size()) { + _visitables.get("currentMetrics").add(builder); + currentMetrics.add(builder); + } else { + _visitables.get("currentMetrics").add(builder); + currentMetrics.set(index, builder); + } return (A)this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/VersionInfoBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/VersionInfoBuilder.java index 1f4d7ea941..283ccae757 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/VersionInfoBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/VersionInfoBuilder.java @@ -25,11 +25,15 @@ public VersionInfo build() { VersionInfo buildable = new VersionInfo(); buildable.setBuildDate(fluent.getBuildDate()); buildable.setCompiler(fluent.getCompiler()); + buildable.setEmulationMajor(fluent.getEmulationMajor()); + buildable.setEmulationMinor(fluent.getEmulationMinor()); buildable.setGitCommit(fluent.getGitCommit()); buildable.setGitTreeState(fluent.getGitTreeState()); buildable.setGitVersion(fluent.getGitVersion()); buildable.setGoVersion(fluent.getGoVersion()); buildable.setMajor(fluent.getMajor()); + buildable.setMinCompatibilityMajor(fluent.getMinCompatibilityMajor()); + buildable.setMinCompatibilityMinor(fluent.getMinCompatibilityMinor()); buildable.setMinor(fluent.getMinor()); buildable.setPlatform(fluent.getPlatform()); return buildable; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/VersionInfoFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/VersionInfoFluent.java index d839407173..312866ab19 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/VersionInfoFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/VersionInfoFluent.java @@ -18,11 +18,15 @@ public VersionInfoFluent(VersionInfo instance) { } private String buildDate; private String compiler; + private String emulationMajor; + private String emulationMinor; private String gitCommit; private String gitTreeState; private String gitVersion; private String goVersion; private String major; + private String minCompatibilityMajor; + private String minCompatibilityMinor; private String minor; private String platform; @@ -31,11 +35,15 @@ protected void copyInstance(VersionInfo instance) { if (instance != null) { this.withBuildDate(instance.getBuildDate()); this.withCompiler(instance.getCompiler()); + this.withEmulationMajor(instance.getEmulationMajor()); + this.withEmulationMinor(instance.getEmulationMinor()); this.withGitCommit(instance.getGitCommit()); this.withGitTreeState(instance.getGitTreeState()); this.withGitVersion(instance.getGitVersion()); this.withGoVersion(instance.getGoVersion()); this.withMajor(instance.getMajor()); + this.withMinCompatibilityMajor(instance.getMinCompatibilityMajor()); + this.withMinCompatibilityMinor(instance.getMinCompatibilityMinor()); this.withMinor(instance.getMinor()); this.withPlatform(instance.getPlatform()); } @@ -67,6 +75,32 @@ public boolean hasCompiler() { return this.compiler != null; } + public String getEmulationMajor() { + return this.emulationMajor; + } + + public A withEmulationMajor(String emulationMajor) { + this.emulationMajor = emulationMajor; + return (A) this; + } + + public boolean hasEmulationMajor() { + return this.emulationMajor != null; + } + + public String getEmulationMinor() { + return this.emulationMinor; + } + + public A withEmulationMinor(String emulationMinor) { + this.emulationMinor = emulationMinor; + return (A) this; + } + + public boolean hasEmulationMinor() { + return this.emulationMinor != null; + } + public String getGitCommit() { return this.gitCommit; } @@ -132,6 +166,32 @@ public boolean hasMajor() { return this.major != null; } + public String getMinCompatibilityMajor() { + return this.minCompatibilityMajor; + } + + public A withMinCompatibilityMajor(String minCompatibilityMajor) { + this.minCompatibilityMajor = minCompatibilityMajor; + return (A) this; + } + + public boolean hasMinCompatibilityMajor() { + return this.minCompatibilityMajor != null; + } + + public String getMinCompatibilityMinor() { + return this.minCompatibilityMinor; + } + + public A withMinCompatibilityMinor(String minCompatibilityMinor) { + this.minCompatibilityMinor = minCompatibilityMinor; + return (A) this; + } + + public boolean hasMinCompatibilityMinor() { + return this.minCompatibilityMinor != null; + } + public String getMinor() { return this.minor; } @@ -165,18 +225,22 @@ public boolean equals(Object o) { VersionInfoFluent that = (VersionInfoFluent) o; if (!java.util.Objects.equals(buildDate, that.buildDate)) return false; if (!java.util.Objects.equals(compiler, that.compiler)) return false; + if (!java.util.Objects.equals(emulationMajor, that.emulationMajor)) return false; + if (!java.util.Objects.equals(emulationMinor, that.emulationMinor)) return false; if (!java.util.Objects.equals(gitCommit, that.gitCommit)) return false; if (!java.util.Objects.equals(gitTreeState, that.gitTreeState)) return false; if (!java.util.Objects.equals(gitVersion, that.gitVersion)) return false; if (!java.util.Objects.equals(goVersion, that.goVersion)) return false; if (!java.util.Objects.equals(major, that.major)) return false; + if (!java.util.Objects.equals(minCompatibilityMajor, that.minCompatibilityMajor)) return false; + if (!java.util.Objects.equals(minCompatibilityMinor, that.minCompatibilityMinor)) return false; if (!java.util.Objects.equals(minor, that.minor)) return false; if (!java.util.Objects.equals(platform, that.platform)) return false; return true; } public int hashCode() { - return java.util.Objects.hash(buildDate, compiler, gitCommit, gitTreeState, gitVersion, goVersion, major, minor, platform, super.hashCode()); + return java.util.Objects.hash(buildDate, compiler, emulationMajor, emulationMinor, gitCommit, gitTreeState, gitVersion, goVersion, major, minCompatibilityMajor, minCompatibilityMinor, minor, platform, super.hashCode()); } public String toString() { @@ -184,11 +248,15 @@ public String toString() { sb.append("{"); if (buildDate != null) { sb.append("buildDate:"); sb.append(buildDate + ","); } if (compiler != null) { sb.append("compiler:"); sb.append(compiler + ","); } + if (emulationMajor != null) { sb.append("emulationMajor:"); sb.append(emulationMajor + ","); } + if (emulationMinor != null) { sb.append("emulationMinor:"); sb.append(emulationMinor + ","); } if (gitCommit != null) { sb.append("gitCommit:"); sb.append(gitCommit + ","); } if (gitTreeState != null) { sb.append("gitTreeState:"); sb.append(gitTreeState + ","); } if (gitVersion != null) { sb.append("gitVersion:"); sb.append(gitVersion + ","); } if (goVersion != null) { sb.append("goVersion:"); sb.append(goVersion + ","); } if (major != null) { sb.append("major:"); sb.append(major + ","); } + if (minCompatibilityMajor != null) { sb.append("minCompatibilityMajor:"); sb.append(minCompatibilityMajor + ","); } + if (minCompatibilityMinor != null) { sb.append("minCompatibilityMinor:"); sb.append(minCompatibilityMinor + ","); } if (minor != null) { sb.append("minor:"); sb.append(minor + ","); } if (platform != null) { sb.append("platform:"); sb.append(platform); } sb.append("}"); diff --git a/kubernetes/.openapi-generator-ignore b/kubernetes/.openapi-generator-ignore index a8f8548387..681c459529 100644 --- a/kubernetes/.openapi-generator-ignore +++ b/kubernetes/.openapi-generator-ignore @@ -5,6 +5,3 @@ git_push.sh README.md pom.xml - -# Remove when changes in kubernetes-client/java#366,#240 make into upstream openapi-generator -src/main/java/io/kubernetes/client/openapi/JSON.java diff --git a/kubernetes/.openapi-generator/swagger.json.sha256 b/kubernetes/.openapi-generator/swagger.json.sha256 index 67bf3d54b9..13c71da64c 100644 --- a/kubernetes/.openapi-generator/swagger.json.sha256 +++ b/kubernetes/.openapi-generator/swagger.json.sha256 @@ -1 +1 @@ -ef3717c25d7e722a1c938c6ee368aca8b43a81e86d61e1c44656a8028c586f6e \ No newline at end of file +41f7afacdbb6f003accac0a67f01fcf456031d94962f1b3d43d29f6f5921aa24 \ No newline at end of file diff --git a/kubernetes/api/openapi.yaml b/kubernetes/api/openapi.yaml index 15bb8f670c..c8190f0e21 100644 --- a/kubernetes/api/openapi.yaml +++ b/kubernetes/api/openapi.yaml @@ -1,7 +1,7 @@ openapi: 3.0.1 info: title: Kubernetes - version: release-1.28 + version: release-1.33 servers: - url: / security: @@ -46,6 +46,9 @@ paths: application/vnd.kubernetes.protobuf: schema: $ref: '#/components/schemas/v1.APIResourceList' + application/cbor: + schema: + $ref: '#/components/schemas/v1.APIResourceList' description: OK "401": content: {} @@ -96,7 +99,9 @@ paths: name: limit schema: type: integer - - description: If 'true', then the output is pretty printed. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -159,12 +164,18 @@ paths: application/vnd.kubernetes.protobuf: schema: $ref: '#/components/schemas/v1.ComponentStatusList' + application/cbor: + schema: + $ref: '#/components/schemas/v1.ComponentStatusList' application/json;stream=watch: schema: $ref: '#/components/schemas/v1.ComponentStatusList' application/vnd.kubernetes.protobuf;stream=watch: schema: $ref: '#/components/schemas/v1.ComponentStatusList' + application/cbor-seq: + schema: + $ref: '#/components/schemas/v1.ComponentStatusList' description: OK "401": content: {} @@ -188,7 +199,9 @@ paths: required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -205,6 +218,9 @@ paths: application/vnd.kubernetes.protobuf: schema: $ref: '#/components/schemas/v1.ComponentStatus' + application/cbor: + schema: + $ref: '#/components/schemas/v1.ComponentStatus' description: OK "401": content: {} @@ -260,7 +276,9 @@ paths: name: limit schema: type: integer - - description: If 'true', then the output is pretty printed. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -323,12 +341,18 @@ paths: application/vnd.kubernetes.protobuf: schema: $ref: '#/components/schemas/v1.ConfigMapList' + application/cbor: + schema: + $ref: '#/components/schemas/v1.ConfigMapList' application/json;stream=watch: schema: $ref: '#/components/schemas/v1.ConfigMapList' application/vnd.kubernetes.protobuf;stream=watch: schema: $ref: '#/components/schemas/v1.ConfigMapList' + application/cbor-seq: + schema: + $ref: '#/components/schemas/v1.ConfigMapList' description: OK "401": content: {} @@ -384,7 +408,9 @@ paths: name: limit schema: type: integer - - description: If 'true', then the output is pretty printed. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -447,12 +473,18 @@ paths: application/vnd.kubernetes.protobuf: schema: $ref: '#/components/schemas/v1.EndpointsList' + application/cbor: + schema: + $ref: '#/components/schemas/v1.EndpointsList' application/json;stream=watch: schema: $ref: '#/components/schemas/v1.EndpointsList' application/vnd.kubernetes.protobuf;stream=watch: schema: $ref: '#/components/schemas/v1.EndpointsList' + application/cbor-seq: + schema: + $ref: '#/components/schemas/v1.EndpointsList' description: OK "401": content: {} @@ -508,7 +540,9 @@ paths: name: limit schema: type: integer - - description: If 'true', then the output is pretty printed. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -571,12 +605,18 @@ paths: application/vnd.kubernetes.protobuf: schema: $ref: '#/components/schemas/core.v1.EventList' + application/cbor: + schema: + $ref: '#/components/schemas/core.v1.EventList' application/json;stream=watch: schema: $ref: '#/components/schemas/core.v1.EventList' application/vnd.kubernetes.protobuf;stream=watch: schema: $ref: '#/components/schemas/core.v1.EventList' + application/cbor-seq: + schema: + $ref: '#/components/schemas/core.v1.EventList' description: OK "401": content: {} @@ -632,7 +672,9 @@ paths: name: limit schema: type: integer - - description: If 'true', then the output is pretty printed. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -695,12 +737,18 @@ paths: application/vnd.kubernetes.protobuf: schema: $ref: '#/components/schemas/v1.LimitRangeList' + application/cbor: + schema: + $ref: '#/components/schemas/v1.LimitRangeList' application/json;stream=watch: schema: $ref: '#/components/schemas/v1.LimitRangeList' application/vnd.kubernetes.protobuf;stream=watch: schema: $ref: '#/components/schemas/v1.LimitRangeList' + application/cbor-seq: + schema: + $ref: '#/components/schemas/v1.LimitRangeList' description: OK "401": content: {} @@ -718,7 +766,9 @@ paths: description: list or watch objects of kind Namespace operationId: listNamespace parameters: - - description: If 'true', then the output is pretty printed. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -819,12 +869,18 @@ paths: application/vnd.kubernetes.protobuf: schema: $ref: '#/components/schemas/v1.NamespaceList' + application/cbor: + schema: + $ref: '#/components/schemas/v1.NamespaceList' application/json;stream=watch: schema: $ref: '#/components/schemas/v1.NamespaceList' application/vnd.kubernetes.protobuf;stream=watch: schema: $ref: '#/components/schemas/v1.NamespaceList' + application/cbor-seq: + schema: + $ref: '#/components/schemas/v1.NamespaceList' description: OK "401": content: {} @@ -841,7 +897,9 @@ paths: description: create a Namespace operationId: createNamespace parameters: - - description: If 'true', then the output is pretty printed. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -896,6 +954,9 @@ paths: application/vnd.kubernetes.protobuf: schema: $ref: '#/components/schemas/v1.Namespace' + application/cbor: + schema: + $ref: '#/components/schemas/v1.Namespace' description: OK "201": content: @@ -908,6 +969,9 @@ paths: application/vnd.kubernetes.protobuf: schema: $ref: '#/components/schemas/v1.Namespace' + application/cbor: + schema: + $ref: '#/components/schemas/v1.Namespace' description: Created "202": content: @@ -920,6 +984,9 @@ paths: application/vnd.kubernetes.protobuf: schema: $ref: '#/components/schemas/v1.Namespace' + application/cbor: + schema: + $ref: '#/components/schemas/v1.Namespace' description: Accepted "401": content: {} @@ -977,7 +1044,9 @@ paths: required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -1000,6 +1069,9 @@ paths: application/vnd.kubernetes.protobuf: schema: $ref: '#/components/schemas/v1.Binding' + application/cbor: + schema: + $ref: '#/components/schemas/v1.Binding' description: OK "201": content: @@ -1012,6 +1084,9 @@ paths: application/vnd.kubernetes.protobuf: schema: $ref: '#/components/schemas/v1.Binding' + application/cbor: + schema: + $ref: '#/components/schemas/v1.Binding' description: Created "202": content: @@ -1024,6 +1099,9 @@ paths: application/vnd.kubernetes.protobuf: schema: $ref: '#/components/schemas/v1.Binding' + application/cbor: + schema: + $ref: '#/components/schemas/v1.Binding' description: Accepted "401": content: {} @@ -1049,7 +1127,9 @@ paths: required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -1085,6 +1165,20 @@ paths: name: gracePeriodSeconds schema: type: integer + - description: 'if set to true, it will trigger an unsafe deletion of the resource + in case the normal deletion flow fails with a corrupt object error. A resource + is considered corrupt if it can not be retrieved from the underlying storage + successfully because of a) its data can not be transformed e.g. decryption + failure, or b) it fails to decode into an object. NOTE: unsafe deletion + ignores finalizer constraints, skips precondition checks, and removes the + object from the storage. WARNING: This may potentially break the cluster + if the workload associated with the resource being unsafe-deleted relies + on normal deletion flow. Use only if you REALLY know what you are doing. + The default value is false, and the user must opt in to enable it' + in: query + name: ignoreStoreReadErrorWithClusterBreakingPotential + schema: + type: boolean - description: A selector to restrict the list of returned objects by their labels. Defaults to everything. in: query @@ -1176,6 +1270,9 @@ paths: application/vnd.kubernetes.protobuf: schema: $ref: '#/components/schemas/v1.Status' + application/cbor: + schema: + $ref: '#/components/schemas/v1.Status' description: OK "401": content: {} @@ -1200,7 +1297,9 @@ paths: required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -1301,12 +1400,18 @@ paths: application/vnd.kubernetes.protobuf: schema: $ref: '#/components/schemas/v1.ConfigMapList' + application/cbor: + schema: + $ref: '#/components/schemas/v1.ConfigMapList' application/json;stream=watch: schema: $ref: '#/components/schemas/v1.ConfigMapList' application/vnd.kubernetes.protobuf;stream=watch: schema: $ref: '#/components/schemas/v1.ConfigMapList' + application/cbor-seq: + schema: + $ref: '#/components/schemas/v1.ConfigMapList' description: OK "401": content: {} @@ -1329,7 +1434,9 @@ paths: required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -1384,6 +1491,9 @@ paths: application/vnd.kubernetes.protobuf: schema: $ref: '#/components/schemas/v1.ConfigMap' + application/cbor: + schema: + $ref: '#/components/schemas/v1.ConfigMap' description: OK "201": content: @@ -1396,6 +1506,9 @@ paths: application/vnd.kubernetes.protobuf: schema: $ref: '#/components/schemas/v1.ConfigMap' + application/cbor: + schema: + $ref: '#/components/schemas/v1.ConfigMap' description: Created "202": content: @@ -1408,6 +1521,9 @@ paths: application/vnd.kubernetes.protobuf: schema: $ref: '#/components/schemas/v1.ConfigMap' + application/cbor: + schema: + $ref: '#/components/schemas/v1.ConfigMap' description: Accepted "401": content: {} @@ -1439,7 +1555,9 @@ paths: required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -1461,6 +1579,20 @@ paths: name: gracePeriodSeconds schema: type: integer + - description: 'if set to true, it will trigger an unsafe deletion of the resource + in case the normal deletion flow fails with a corrupt object error. A resource + is considered corrupt if it can not be retrieved from the underlying storage + successfully because of a) its data can not be transformed e.g. decryption + failure, or b) it fails to decode into an object. NOTE: unsafe deletion + ignores finalizer constraints, skips precondition checks, and removes the + object from the storage. WARNING: This may potentially break the cluster + if the workload associated with the resource being unsafe-deleted relies + on normal deletion flow. Use only if you REALLY know what you are doing. + The default value is false, and the user must opt in to enable it' + in: query + name: ignoreStoreReadErrorWithClusterBreakingPotential + schema: + type: boolean - description: '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 @@ -1498,6 +1630,9 @@ paths: application/vnd.kubernetes.protobuf: schema: $ref: '#/components/schemas/v1.Status' + application/cbor: + schema: + $ref: '#/components/schemas/v1.Status' description: OK "202": content: @@ -1510,6 +1645,9 @@ paths: application/vnd.kubernetes.protobuf: schema: $ref: '#/components/schemas/v1.Status' + application/cbor: + schema: + $ref: '#/components/schemas/v1.Status' description: Accepted "401": content: {} @@ -1540,7 +1678,9 @@ paths: required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -1557,6 +1697,9 @@ paths: application/vnd.kubernetes.protobuf: schema: $ref: '#/components/schemas/v1.ConfigMap' + application/cbor: + schema: + $ref: '#/components/schemas/v1.ConfigMap' description: OK "401": content: {} @@ -1585,7 +1728,9 @@ paths: required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -1649,6 +1794,9 @@ paths: application/vnd.kubernetes.protobuf: schema: $ref: '#/components/schemas/v1.ConfigMap' + application/cbor: + schema: + $ref: '#/components/schemas/v1.ConfigMap' description: OK "201": content: @@ -1661,6 +1809,9 @@ paths: application/vnd.kubernetes.protobuf: schema: $ref: '#/components/schemas/v1.ConfigMap' + application/cbor: + schema: + $ref: '#/components/schemas/v1.ConfigMap' description: Created "401": content: {} @@ -1691,7 +1842,9 @@ paths: required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -1746,6 +1899,9 @@ paths: application/vnd.kubernetes.protobuf: schema: $ref: '#/components/schemas/v1.ConfigMap' + application/cbor: + schema: + $ref: '#/components/schemas/v1.ConfigMap' description: OK "201": content: @@ -1758,6 +1914,9 @@ paths: application/vnd.kubernetes.protobuf: schema: $ref: '#/components/schemas/v1.ConfigMap' + application/cbor: + schema: + $ref: '#/components/schemas/v1.ConfigMap' description: Created "401": content: {} @@ -1783,7 +1942,9 @@ paths: required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -1819,6 +1980,20 @@ paths: name: gracePeriodSeconds schema: type: integer + - description: 'if set to true, it will trigger an unsafe deletion of the resource + in case the normal deletion flow fails with a corrupt object error. A resource + is considered corrupt if it can not be retrieved from the underlying storage + successfully because of a) its data can not be transformed e.g. decryption + failure, or b) it fails to decode into an object. NOTE: unsafe deletion + ignores finalizer constraints, skips precondition checks, and removes the + object from the storage. WARNING: This may potentially break the cluster + if the workload associated with the resource being unsafe-deleted relies + on normal deletion flow. Use only if you REALLY know what you are doing. + The default value is false, and the user must opt in to enable it' + in: query + name: ignoreStoreReadErrorWithClusterBreakingPotential + schema: + type: boolean - description: A selector to restrict the list of returned objects by their labels. Defaults to everything. in: query @@ -1910,6 +2085,9 @@ paths: application/vnd.kubernetes.protobuf: schema: $ref: '#/components/schemas/v1.Status' + application/cbor: + schema: + $ref: '#/components/schemas/v1.Status' description: OK "401": content: {} @@ -1934,7 +2112,9 @@ paths: required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -2035,12 +2215,18 @@ paths: application/vnd.kubernetes.protobuf: schema: $ref: '#/components/schemas/v1.EndpointsList' + application/cbor: + schema: + $ref: '#/components/schemas/v1.EndpointsList' application/json;stream=watch: schema: $ref: '#/components/schemas/v1.EndpointsList' application/vnd.kubernetes.protobuf;stream=watch: schema: $ref: '#/components/schemas/v1.EndpointsList' + application/cbor-seq: + schema: + $ref: '#/components/schemas/v1.EndpointsList' description: OK "401": content: {} @@ -2063,7 +2249,9 @@ paths: required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -2118,6 +2306,9 @@ paths: application/vnd.kubernetes.protobuf: schema: $ref: '#/components/schemas/v1.Endpoints' + application/cbor: + schema: + $ref: '#/components/schemas/v1.Endpoints' description: OK "201": content: @@ -2130,6 +2321,9 @@ paths: application/vnd.kubernetes.protobuf: schema: $ref: '#/components/schemas/v1.Endpoints' + application/cbor: + schema: + $ref: '#/components/schemas/v1.Endpoints' description: Created "202": content: @@ -2142,6 +2336,9 @@ paths: application/vnd.kubernetes.protobuf: schema: $ref: '#/components/schemas/v1.Endpoints' + application/cbor: + schema: + $ref: '#/components/schemas/v1.Endpoints' description: Accepted "401": content: {} @@ -2173,7 +2370,9 @@ paths: required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -2195,6 +2394,20 @@ paths: name: gracePeriodSeconds schema: type: integer + - description: 'if set to true, it will trigger an unsafe deletion of the resource + in case the normal deletion flow fails with a corrupt object error. A resource + is considered corrupt if it can not be retrieved from the underlying storage + successfully because of a) its data can not be transformed e.g. decryption + failure, or b) it fails to decode into an object. NOTE: unsafe deletion + ignores finalizer constraints, skips precondition checks, and removes the + object from the storage. WARNING: This may potentially break the cluster + if the workload associated with the resource being unsafe-deleted relies + on normal deletion flow. Use only if you REALLY know what you are doing. + The default value is false, and the user must opt in to enable it' + in: query + name: ignoreStoreReadErrorWithClusterBreakingPotential + schema: + type: boolean - description: '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 @@ -2232,6 +2445,9 @@ paths: application/vnd.kubernetes.protobuf: schema: $ref: '#/components/schemas/v1.Status' + application/cbor: + schema: + $ref: '#/components/schemas/v1.Status' description: OK "202": content: @@ -2244,6 +2460,9 @@ paths: application/vnd.kubernetes.protobuf: schema: $ref: '#/components/schemas/v1.Status' + application/cbor: + schema: + $ref: '#/components/schemas/v1.Status' description: Accepted "401": content: {} @@ -2274,7 +2493,9 @@ paths: required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -2291,6 +2512,9 @@ paths: application/vnd.kubernetes.protobuf: schema: $ref: '#/components/schemas/v1.Endpoints' + application/cbor: + schema: + $ref: '#/components/schemas/v1.Endpoints' description: OK "401": content: {} @@ -2319,7 +2543,9 @@ paths: required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -2383,6 +2609,9 @@ paths: application/vnd.kubernetes.protobuf: schema: $ref: '#/components/schemas/v1.Endpoints' + application/cbor: + schema: + $ref: '#/components/schemas/v1.Endpoints' description: OK "201": content: @@ -2395,6 +2624,9 @@ paths: application/vnd.kubernetes.protobuf: schema: $ref: '#/components/schemas/v1.Endpoints' + application/cbor: + schema: + $ref: '#/components/schemas/v1.Endpoints' description: Created "401": content: {} @@ -2425,7 +2657,9 @@ paths: required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -2480,6 +2714,9 @@ paths: application/vnd.kubernetes.protobuf: schema: $ref: '#/components/schemas/v1.Endpoints' + application/cbor: + schema: + $ref: '#/components/schemas/v1.Endpoints' description: OK "201": content: @@ -2492,6 +2729,9 @@ paths: application/vnd.kubernetes.protobuf: schema: $ref: '#/components/schemas/v1.Endpoints' + application/cbor: + schema: + $ref: '#/components/schemas/v1.Endpoints' description: Created "401": content: {} @@ -2517,7 +2757,9 @@ paths: required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -2553,6 +2795,20 @@ paths: name: gracePeriodSeconds schema: type: integer + - description: 'if set to true, it will trigger an unsafe deletion of the resource + in case the normal deletion flow fails with a corrupt object error. A resource + is considered corrupt if it can not be retrieved from the underlying storage + successfully because of a) its data can not be transformed e.g. decryption + failure, or b) it fails to decode into an object. NOTE: unsafe deletion + ignores finalizer constraints, skips precondition checks, and removes the + object from the storage. WARNING: This may potentially break the cluster + if the workload associated with the resource being unsafe-deleted relies + on normal deletion flow. Use only if you REALLY know what you are doing. + The default value is false, and the user must opt in to enable it' + in: query + name: ignoreStoreReadErrorWithClusterBreakingPotential + schema: + type: boolean - description: A selector to restrict the list of returned objects by their labels. Defaults to everything. in: query @@ -2644,6 +2900,9 @@ paths: application/vnd.kubernetes.protobuf: schema: $ref: '#/components/schemas/v1.Status' + application/cbor: + schema: + $ref: '#/components/schemas/v1.Status' description: OK "401": content: {} @@ -2668,7 +2927,9 @@ paths: required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -2769,12 +3030,18 @@ paths: application/vnd.kubernetes.protobuf: schema: $ref: '#/components/schemas/core.v1.EventList' + application/cbor: + schema: + $ref: '#/components/schemas/core.v1.EventList' application/json;stream=watch: schema: $ref: '#/components/schemas/core.v1.EventList' application/vnd.kubernetes.protobuf;stream=watch: schema: $ref: '#/components/schemas/core.v1.EventList' + application/cbor-seq: + schema: + $ref: '#/components/schemas/core.v1.EventList' description: OK "401": content: {} @@ -2797,7 +3064,9 @@ paths: required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -2852,6 +3121,9 @@ paths: application/vnd.kubernetes.protobuf: schema: $ref: '#/components/schemas/core.v1.Event' + application/cbor: + schema: + $ref: '#/components/schemas/core.v1.Event' description: OK "201": content: @@ -2864,6 +3136,9 @@ paths: application/vnd.kubernetes.protobuf: schema: $ref: '#/components/schemas/core.v1.Event' + application/cbor: + schema: + $ref: '#/components/schemas/core.v1.Event' description: Created "202": content: @@ -2876,6 +3151,9 @@ paths: application/vnd.kubernetes.protobuf: schema: $ref: '#/components/schemas/core.v1.Event' + application/cbor: + schema: + $ref: '#/components/schemas/core.v1.Event' description: Accepted "401": content: {} @@ -2907,7 +3185,9 @@ paths: required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -2929,6 +3209,20 @@ paths: name: gracePeriodSeconds schema: type: integer + - description: 'if set to true, it will trigger an unsafe deletion of the resource + in case the normal deletion flow fails with a corrupt object error. A resource + is considered corrupt if it can not be retrieved from the underlying storage + successfully because of a) its data can not be transformed e.g. decryption + failure, or b) it fails to decode into an object. NOTE: unsafe deletion + ignores finalizer constraints, skips precondition checks, and removes the + object from the storage. WARNING: This may potentially break the cluster + if the workload associated with the resource being unsafe-deleted relies + on normal deletion flow. Use only if you REALLY know what you are doing. + The default value is false, and the user must opt in to enable it' + in: query + name: ignoreStoreReadErrorWithClusterBreakingPotential + schema: + type: boolean - description: '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 @@ -2966,6 +3260,9 @@ paths: application/vnd.kubernetes.protobuf: schema: $ref: '#/components/schemas/v1.Status' + application/cbor: + schema: + $ref: '#/components/schemas/v1.Status' description: OK "202": content: @@ -2978,6 +3275,9 @@ paths: application/vnd.kubernetes.protobuf: schema: $ref: '#/components/schemas/v1.Status' + application/cbor: + schema: + $ref: '#/components/schemas/v1.Status' description: Accepted "401": content: {} @@ -3008,7 +3308,9 @@ paths: required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -3025,6 +3327,9 @@ paths: application/vnd.kubernetes.protobuf: schema: $ref: '#/components/schemas/core.v1.Event' + application/cbor: + schema: + $ref: '#/components/schemas/core.v1.Event' description: OK "401": content: {} @@ -3053,7 +3358,9 @@ paths: required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -3117,6 +3424,9 @@ paths: application/vnd.kubernetes.protobuf: schema: $ref: '#/components/schemas/core.v1.Event' + application/cbor: + schema: + $ref: '#/components/schemas/core.v1.Event' description: OK "201": content: @@ -3129,6 +3439,9 @@ paths: application/vnd.kubernetes.protobuf: schema: $ref: '#/components/schemas/core.v1.Event' + application/cbor: + schema: + $ref: '#/components/schemas/core.v1.Event' description: Created "401": content: {} @@ -3159,7 +3472,9 @@ paths: required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -3214,6 +3529,9 @@ paths: application/vnd.kubernetes.protobuf: schema: $ref: '#/components/schemas/core.v1.Event' + application/cbor: + schema: + $ref: '#/components/schemas/core.v1.Event' description: OK "201": content: @@ -3226,6 +3544,9 @@ paths: application/vnd.kubernetes.protobuf: schema: $ref: '#/components/schemas/core.v1.Event' + application/cbor: + schema: + $ref: '#/components/schemas/core.v1.Event' description: Created "401": content: {} @@ -3251,7 +3572,9 @@ paths: required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -3287,6 +3610,20 @@ paths: name: gracePeriodSeconds schema: type: integer + - description: 'if set to true, it will trigger an unsafe deletion of the resource + in case the normal deletion flow fails with a corrupt object error. A resource + is considered corrupt if it can not be retrieved from the underlying storage + successfully because of a) its data can not be transformed e.g. decryption + failure, or b) it fails to decode into an object. NOTE: unsafe deletion + ignores finalizer constraints, skips precondition checks, and removes the + object from the storage. WARNING: This may potentially break the cluster + if the workload associated with the resource being unsafe-deleted relies + on normal deletion flow. Use only if you REALLY know what you are doing. + The default value is false, and the user must opt in to enable it' + in: query + name: ignoreStoreReadErrorWithClusterBreakingPotential + schema: + type: boolean - description: A selector to restrict the list of returned objects by their labels. Defaults to everything. in: query @@ -3378,6 +3715,9 @@ paths: application/vnd.kubernetes.protobuf: schema: $ref: '#/components/schemas/v1.Status' + application/cbor: + schema: + $ref: '#/components/schemas/v1.Status' description: OK "401": content: {} @@ -3402,7 +3742,9 @@ paths: required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -3503,12 +3845,18 @@ paths: application/vnd.kubernetes.protobuf: schema: $ref: '#/components/schemas/v1.LimitRangeList' + application/cbor: + schema: + $ref: '#/components/schemas/v1.LimitRangeList' application/json;stream=watch: schema: $ref: '#/components/schemas/v1.LimitRangeList' application/vnd.kubernetes.protobuf;stream=watch: schema: $ref: '#/components/schemas/v1.LimitRangeList' + application/cbor-seq: + schema: + $ref: '#/components/schemas/v1.LimitRangeList' description: OK "401": content: {} @@ -3531,7 +3879,9 @@ paths: required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -3586,6 +3936,9 @@ paths: application/vnd.kubernetes.protobuf: schema: $ref: '#/components/schemas/v1.LimitRange' + application/cbor: + schema: + $ref: '#/components/schemas/v1.LimitRange' description: OK "201": content: @@ -3598,6 +3951,9 @@ paths: application/vnd.kubernetes.protobuf: schema: $ref: '#/components/schemas/v1.LimitRange' + application/cbor: + schema: + $ref: '#/components/schemas/v1.LimitRange' description: Created "202": content: @@ -3610,6 +3966,9 @@ paths: application/vnd.kubernetes.protobuf: schema: $ref: '#/components/schemas/v1.LimitRange' + application/cbor: + schema: + $ref: '#/components/schemas/v1.LimitRange' description: Accepted "401": content: {} @@ -3641,7 +4000,9 @@ paths: required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -3663,6 +4024,20 @@ paths: name: gracePeriodSeconds schema: type: integer + - description: 'if set to true, it will trigger an unsafe deletion of the resource + in case the normal deletion flow fails with a corrupt object error. A resource + is considered corrupt if it can not be retrieved from the underlying storage + successfully because of a) its data can not be transformed e.g. decryption + failure, or b) it fails to decode into an object. NOTE: unsafe deletion + ignores finalizer constraints, skips precondition checks, and removes the + object from the storage. WARNING: This may potentially break the cluster + if the workload associated with the resource being unsafe-deleted relies + on normal deletion flow. Use only if you REALLY know what you are doing. + The default value is false, and the user must opt in to enable it' + in: query + name: ignoreStoreReadErrorWithClusterBreakingPotential + schema: + type: boolean - description: '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 @@ -3700,6 +4075,9 @@ paths: application/vnd.kubernetes.protobuf: schema: $ref: '#/components/schemas/v1.Status' + application/cbor: + schema: + $ref: '#/components/schemas/v1.Status' description: OK "202": content: @@ -3712,6 +4090,9 @@ paths: application/vnd.kubernetes.protobuf: schema: $ref: '#/components/schemas/v1.Status' + application/cbor: + schema: + $ref: '#/components/schemas/v1.Status' description: Accepted "401": content: {} @@ -3742,7 +4123,9 @@ paths: required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -3759,6 +4142,9 @@ paths: application/vnd.kubernetes.protobuf: schema: $ref: '#/components/schemas/v1.LimitRange' + application/cbor: + schema: + $ref: '#/components/schemas/v1.LimitRange' description: OK "401": content: {} @@ -3787,7 +4173,9 @@ paths: required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -3851,6 +4239,9 @@ paths: application/vnd.kubernetes.protobuf: schema: $ref: '#/components/schemas/v1.LimitRange' + application/cbor: + schema: + $ref: '#/components/schemas/v1.LimitRange' description: OK "201": content: @@ -3863,6 +4254,9 @@ paths: application/vnd.kubernetes.protobuf: schema: $ref: '#/components/schemas/v1.LimitRange' + application/cbor: + schema: + $ref: '#/components/schemas/v1.LimitRange' description: Created "401": content: {} @@ -3893,7 +4287,9 @@ paths: required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -3948,6 +4344,9 @@ paths: application/vnd.kubernetes.protobuf: schema: $ref: '#/components/schemas/v1.LimitRange' + application/cbor: + schema: + $ref: '#/components/schemas/v1.LimitRange' description: OK "201": content: @@ -3960,6 +4359,9 @@ paths: application/vnd.kubernetes.protobuf: schema: $ref: '#/components/schemas/v1.LimitRange' + application/cbor: + schema: + $ref: '#/components/schemas/v1.LimitRange' description: Created "401": content: {} @@ -3985,7 +4387,9 @@ paths: required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -4021,6 +4425,20 @@ paths: name: gracePeriodSeconds schema: type: integer + - description: 'if set to true, it will trigger an unsafe deletion of the resource + in case the normal deletion flow fails with a corrupt object error. A resource + is considered corrupt if it can not be retrieved from the underlying storage + successfully because of a) its data can not be transformed e.g. decryption + failure, or b) it fails to decode into an object. NOTE: unsafe deletion + ignores finalizer constraints, skips precondition checks, and removes the + object from the storage. WARNING: This may potentially break the cluster + if the workload associated with the resource being unsafe-deleted relies + on normal deletion flow. Use only if you REALLY know what you are doing. + The default value is false, and the user must opt in to enable it' + in: query + name: ignoreStoreReadErrorWithClusterBreakingPotential + schema: + type: boolean - description: A selector to restrict the list of returned objects by their labels. Defaults to everything. in: query @@ -4112,6 +4530,9 @@ paths: application/vnd.kubernetes.protobuf: schema: $ref: '#/components/schemas/v1.Status' + application/cbor: + schema: + $ref: '#/components/schemas/v1.Status' description: OK "401": content: {} @@ -4136,7 +4557,9 @@ paths: required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -4237,12 +4660,18 @@ paths: application/vnd.kubernetes.protobuf: schema: $ref: '#/components/schemas/v1.PersistentVolumeClaimList' + application/cbor: + schema: + $ref: '#/components/schemas/v1.PersistentVolumeClaimList' application/json;stream=watch: schema: $ref: '#/components/schemas/v1.PersistentVolumeClaimList' application/vnd.kubernetes.protobuf;stream=watch: schema: $ref: '#/components/schemas/v1.PersistentVolumeClaimList' + application/cbor-seq: + schema: + $ref: '#/components/schemas/v1.PersistentVolumeClaimList' description: OK "401": content: {} @@ -4265,7 +4694,9 @@ paths: required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -4320,6 +4751,9 @@ paths: application/vnd.kubernetes.protobuf: schema: $ref: '#/components/schemas/v1.PersistentVolumeClaim' + application/cbor: + schema: + $ref: '#/components/schemas/v1.PersistentVolumeClaim' description: OK "201": content: @@ -4332,6 +4766,9 @@ paths: application/vnd.kubernetes.protobuf: schema: $ref: '#/components/schemas/v1.PersistentVolumeClaim' + application/cbor: + schema: + $ref: '#/components/schemas/v1.PersistentVolumeClaim' description: Created "202": content: @@ -4344,6 +4781,9 @@ paths: application/vnd.kubernetes.protobuf: schema: $ref: '#/components/schemas/v1.PersistentVolumeClaim' + application/cbor: + schema: + $ref: '#/components/schemas/v1.PersistentVolumeClaim' description: Accepted "401": content: {} @@ -4375,7 +4815,9 @@ paths: required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -4397,6 +4839,20 @@ paths: name: gracePeriodSeconds schema: type: integer + - description: 'if set to true, it will trigger an unsafe deletion of the resource + in case the normal deletion flow fails with a corrupt object error. A resource + is considered corrupt if it can not be retrieved from the underlying storage + successfully because of a) its data can not be transformed e.g. decryption + failure, or b) it fails to decode into an object. NOTE: unsafe deletion + ignores finalizer constraints, skips precondition checks, and removes the + object from the storage. WARNING: This may potentially break the cluster + if the workload associated with the resource being unsafe-deleted relies + on normal deletion flow. Use only if you REALLY know what you are doing. + The default value is false, and the user must opt in to enable it' + in: query + name: ignoreStoreReadErrorWithClusterBreakingPotential + schema: + type: boolean - description: '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 @@ -4434,6 +4890,9 @@ paths: application/vnd.kubernetes.protobuf: schema: $ref: '#/components/schemas/v1.PersistentVolumeClaim' + application/cbor: + schema: + $ref: '#/components/schemas/v1.PersistentVolumeClaim' description: OK "202": content: @@ -4446,6 +4905,9 @@ paths: application/vnd.kubernetes.protobuf: schema: $ref: '#/components/schemas/v1.PersistentVolumeClaim' + application/cbor: + schema: + $ref: '#/components/schemas/v1.PersistentVolumeClaim' description: Accepted "401": content: {} @@ -4476,7 +4938,9 @@ paths: required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -4493,6 +4957,9 @@ paths: application/vnd.kubernetes.protobuf: schema: $ref: '#/components/schemas/v1.PersistentVolumeClaim' + application/cbor: + schema: + $ref: '#/components/schemas/v1.PersistentVolumeClaim' description: OK "401": content: {} @@ -4521,7 +4988,9 @@ paths: required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -4585,6 +5054,9 @@ paths: application/vnd.kubernetes.protobuf: schema: $ref: '#/components/schemas/v1.PersistentVolumeClaim' + application/cbor: + schema: + $ref: '#/components/schemas/v1.PersistentVolumeClaim' description: OK "201": content: @@ -4597,6 +5069,9 @@ paths: application/vnd.kubernetes.protobuf: schema: $ref: '#/components/schemas/v1.PersistentVolumeClaim' + application/cbor: + schema: + $ref: '#/components/schemas/v1.PersistentVolumeClaim' description: Created "401": content: {} @@ -4627,7 +5102,9 @@ paths: required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -4682,6 +5159,9 @@ paths: application/vnd.kubernetes.protobuf: schema: $ref: '#/components/schemas/v1.PersistentVolumeClaim' + application/cbor: + schema: + $ref: '#/components/schemas/v1.PersistentVolumeClaim' description: OK "201": content: @@ -4694,6 +5174,9 @@ paths: application/vnd.kubernetes.protobuf: schema: $ref: '#/components/schemas/v1.PersistentVolumeClaim' + application/cbor: + schema: + $ref: '#/components/schemas/v1.PersistentVolumeClaim' description: Created "401": content: {} @@ -4725,7 +5208,9 @@ paths: required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -4742,6 +5227,9 @@ paths: application/vnd.kubernetes.protobuf: schema: $ref: '#/components/schemas/v1.PersistentVolumeClaim' + application/cbor: + schema: + $ref: '#/components/schemas/v1.PersistentVolumeClaim' description: OK "401": content: {} @@ -4770,7 +5258,9 @@ paths: required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -4834,6 +5324,9 @@ paths: application/vnd.kubernetes.protobuf: schema: $ref: '#/components/schemas/v1.PersistentVolumeClaim' + application/cbor: + schema: + $ref: '#/components/schemas/v1.PersistentVolumeClaim' description: OK "201": content: @@ -4846,6 +5339,9 @@ paths: application/vnd.kubernetes.protobuf: schema: $ref: '#/components/schemas/v1.PersistentVolumeClaim' + application/cbor: + schema: + $ref: '#/components/schemas/v1.PersistentVolumeClaim' description: Created "401": content: {} @@ -4876,7 +5372,9 @@ paths: required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -4931,6 +5429,9 @@ paths: application/vnd.kubernetes.protobuf: schema: $ref: '#/components/schemas/v1.PersistentVolumeClaim' + application/cbor: + schema: + $ref: '#/components/schemas/v1.PersistentVolumeClaim' description: OK "201": content: @@ -4943,6 +5444,9 @@ paths: application/vnd.kubernetes.protobuf: schema: $ref: '#/components/schemas/v1.PersistentVolumeClaim' + application/cbor: + schema: + $ref: '#/components/schemas/v1.PersistentVolumeClaim' description: Created "401": content: {} @@ -4968,7 +5472,9 @@ paths: required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -5004,6 +5510,20 @@ paths: name: gracePeriodSeconds schema: type: integer + - description: 'if set to true, it will trigger an unsafe deletion of the resource + in case the normal deletion flow fails with a corrupt object error. A resource + is considered corrupt if it can not be retrieved from the underlying storage + successfully because of a) its data can not be transformed e.g. decryption + failure, or b) it fails to decode into an object. NOTE: unsafe deletion + ignores finalizer constraints, skips precondition checks, and removes the + object from the storage. WARNING: This may potentially break the cluster + if the workload associated with the resource being unsafe-deleted relies + on normal deletion flow. Use only if you REALLY know what you are doing. + The default value is false, and the user must opt in to enable it' + in: query + name: ignoreStoreReadErrorWithClusterBreakingPotential + schema: + type: boolean - description: A selector to restrict the list of returned objects by their labels. Defaults to everything. in: query @@ -5095,6 +5615,9 @@ paths: application/vnd.kubernetes.protobuf: schema: $ref: '#/components/schemas/v1.Status' + application/cbor: + schema: + $ref: '#/components/schemas/v1.Status' description: OK "401": content: {} @@ -5119,7 +5642,9 @@ paths: required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -5220,12 +5745,18 @@ paths: application/vnd.kubernetes.protobuf: schema: $ref: '#/components/schemas/v1.PodList' + application/cbor: + schema: + $ref: '#/components/schemas/v1.PodList' application/json;stream=watch: schema: $ref: '#/components/schemas/v1.PodList' application/vnd.kubernetes.protobuf;stream=watch: schema: $ref: '#/components/schemas/v1.PodList' + application/cbor-seq: + schema: + $ref: '#/components/schemas/v1.PodList' description: OK "401": content: {} @@ -5248,7 +5779,9 @@ paths: required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -5303,6 +5836,9 @@ paths: application/vnd.kubernetes.protobuf: schema: $ref: '#/components/schemas/v1.Pod' + application/cbor: + schema: + $ref: '#/components/schemas/v1.Pod' description: OK "201": content: @@ -5315,6 +5851,9 @@ paths: application/vnd.kubernetes.protobuf: schema: $ref: '#/components/schemas/v1.Pod' + application/cbor: + schema: + $ref: '#/components/schemas/v1.Pod' description: Created "202": content: @@ -5327,6 +5866,9 @@ paths: application/vnd.kubernetes.protobuf: schema: $ref: '#/components/schemas/v1.Pod' + application/cbor: + schema: + $ref: '#/components/schemas/v1.Pod' description: Accepted "401": content: {} @@ -5358,7 +5900,9 @@ paths: required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -5380,6 +5924,20 @@ paths: name: gracePeriodSeconds schema: type: integer + - description: 'if set to true, it will trigger an unsafe deletion of the resource + in case the normal deletion flow fails with a corrupt object error. A resource + is considered corrupt if it can not be retrieved from the underlying storage + successfully because of a) its data can not be transformed e.g. decryption + failure, or b) it fails to decode into an object. NOTE: unsafe deletion + ignores finalizer constraints, skips precondition checks, and removes the + object from the storage. WARNING: This may potentially break the cluster + if the workload associated with the resource being unsafe-deleted relies + on normal deletion flow. Use only if you REALLY know what you are doing. + The default value is false, and the user must opt in to enable it' + in: query + name: ignoreStoreReadErrorWithClusterBreakingPotential + schema: + type: boolean - description: '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 @@ -5417,6 +5975,9 @@ paths: application/vnd.kubernetes.protobuf: schema: $ref: '#/components/schemas/v1.Pod' + application/cbor: + schema: + $ref: '#/components/schemas/v1.Pod' description: OK "202": content: @@ -5429,6 +5990,9 @@ paths: application/vnd.kubernetes.protobuf: schema: $ref: '#/components/schemas/v1.Pod' + application/cbor: + schema: + $ref: '#/components/schemas/v1.Pod' description: Accepted "401": content: {} @@ -5459,7 +6023,9 @@ paths: required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -5476,6 +6042,9 @@ paths: application/vnd.kubernetes.protobuf: schema: $ref: '#/components/schemas/v1.Pod' + application/cbor: + schema: + $ref: '#/components/schemas/v1.Pod' description: OK "401": content: {} @@ -5504,7 +6073,9 @@ paths: required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -5568,6 +6139,9 @@ paths: application/vnd.kubernetes.protobuf: schema: $ref: '#/components/schemas/v1.Pod' + application/cbor: + schema: + $ref: '#/components/schemas/v1.Pod' description: OK "201": content: @@ -5580,6 +6154,9 @@ paths: application/vnd.kubernetes.protobuf: schema: $ref: '#/components/schemas/v1.Pod' + application/cbor: + schema: + $ref: '#/components/schemas/v1.Pod' description: Created "401": content: {} @@ -5610,7 +6187,9 @@ paths: required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -5665,6 +6244,9 @@ paths: application/vnd.kubernetes.protobuf: schema: $ref: '#/components/schemas/v1.Pod' + application/cbor: + schema: + $ref: '#/components/schemas/v1.Pod' description: OK "201": content: @@ -5677,6 +6259,9 @@ paths: application/vnd.kubernetes.protobuf: schema: $ref: '#/components/schemas/v1.Pod' + application/cbor: + schema: + $ref: '#/components/schemas/v1.Pod' description: Created "401": content: {} @@ -5871,7 +6456,9 @@ paths: required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -5894,6 +6481,9 @@ paths: application/vnd.kubernetes.protobuf: schema: $ref: '#/components/schemas/v1.Binding' + application/cbor: + schema: + $ref: '#/components/schemas/v1.Binding' description: OK "201": content: @@ -5906,6 +6496,9 @@ paths: application/vnd.kubernetes.protobuf: schema: $ref: '#/components/schemas/v1.Binding' + application/cbor: + schema: + $ref: '#/components/schemas/v1.Binding' description: Created "202": content: @@ -5918,6 +6511,9 @@ paths: application/vnd.kubernetes.protobuf: schema: $ref: '#/components/schemas/v1.Binding' + application/cbor: + schema: + $ref: '#/components/schemas/v1.Binding' description: Accepted "401": content: {} @@ -5949,7 +6545,9 @@ paths: required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -5966,6 +6564,9 @@ paths: application/vnd.kubernetes.protobuf: schema: $ref: '#/components/schemas/v1.Pod' + application/cbor: + schema: + $ref: '#/components/schemas/v1.Pod' description: OK "401": content: {} @@ -5994,7 +6595,9 @@ paths: required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -6058,6 +6661,9 @@ paths: application/vnd.kubernetes.protobuf: schema: $ref: '#/components/schemas/v1.Pod' + application/cbor: + schema: + $ref: '#/components/schemas/v1.Pod' description: OK "201": content: @@ -6070,6 +6676,9 @@ paths: application/vnd.kubernetes.protobuf: schema: $ref: '#/components/schemas/v1.Pod' + application/cbor: + schema: + $ref: '#/components/schemas/v1.Pod' description: Created "401": content: {} @@ -6100,7 +6709,9 @@ paths: required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -6155,6 +6766,9 @@ paths: application/vnd.kubernetes.protobuf: schema: $ref: '#/components/schemas/v1.Pod' + application/cbor: + schema: + $ref: '#/components/schemas/v1.Pod' description: OK "201": content: @@ -6167,6 +6781,9 @@ paths: application/vnd.kubernetes.protobuf: schema: $ref: '#/components/schemas/v1.Pod' + application/cbor: + schema: + $ref: '#/components/schemas/v1.Pod' description: Created "401": content: {} @@ -6230,7 +6847,9 @@ paths: required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -6253,6 +6872,9 @@ paths: application/vnd.kubernetes.protobuf: schema: $ref: '#/components/schemas/v1.Eviction' + application/cbor: + schema: + $ref: '#/components/schemas/v1.Eviction' description: OK "201": content: @@ -6265,6 +6887,9 @@ paths: application/vnd.kubernetes.protobuf: schema: $ref: '#/components/schemas/v1.Eviction' + application/cbor: + schema: + $ref: '#/components/schemas/v1.Eviction' description: Created "202": content: @@ -6277,6 +6902,9 @@ paths: application/vnd.kubernetes.protobuf: schema: $ref: '#/components/schemas/v1.Eviction' + application/cbor: + schema: + $ref: '#/components/schemas/v1.Eviction' description: Accepted "401": content: {} @@ -6475,7 +7103,9 @@ paths: required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -6493,9 +7123,18 @@ paths: name: sinceSeconds schema: type: integer + - description: Specify which container log stream to return to the client. Acceptable + values are "All", "Stdout" and "Stderr". If not specified, "All" is used, + and both stdout and stderr are returned interleaved. Note that when "TailLines" + is specified, "Stream" can only be set to nil or "All". + in: query + name: stream + schema: + type: string - description: If set, the number of lines from the end of the logs to show. If not specified, logs are shown from the creation of the container or sinceSeconds - or sinceTime + or sinceTime. Note that when "TailLines" is specified, "Stream" can only + be set to nil or "All". in: query name: tailLines schema: @@ -6521,6 +7160,9 @@ paths: application/vnd.kubernetes.protobuf: schema: type: string + application/cbor: + schema: + type: string description: OK "401": content: {} @@ -7216,6 +7858,276 @@ paths: kind: PodProxyOptions version: v1 x-accepts: '*/*' + /api/v1/namespaces/{namespace}/pods/{name}/resize: + get: + description: read resize of the specified Pod + operationId: readNamespacedPodResize + parameters: + - description: name of the Pod + in: path + name: name + required: true + schema: + type: string + - description: object name and auth scope, such as for teams and projects + in: path + name: namespace + required: true + schema: + type: string + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). + in: query + name: pretty + schema: + type: string + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.Pod' + application/yaml: + schema: + $ref: '#/components/schemas/v1.Pod' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.Pod' + application/cbor: + schema: + $ref: '#/components/schemas/v1.Pod' + description: OK + "401": + content: {} + description: Unauthorized + tags: + - core_v1 + x-kubernetes-action: get + x-kubernetes-group-version-kind: + group: "" + kind: Pod + version: v1 + x-accepts: application/json + patch: + description: partially update resize of the specified Pod + operationId: patchNamespacedPodResize + parameters: + - description: name of the Pod + in: path + name: name + required: true + schema: + type: string + - description: object name and auth scope, such as for teams and projects + in: path + name: namespace + required: true + schema: + type: string + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). + in: query + name: pretty + schema: + type: string + - description: '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' + in: query + name: dryRun + schema: + type: string + - description: fieldManager is a name associated with the actor or entity that + is making these changes. The value must be less than or 128 characters long, + and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + This field is required for apply requests (application/apply-patch) but + optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). + in: query + name: fieldManager + schema: + type: string + - description: 'fieldValidation instructs the server on how to handle objects + in the request (POST/PUT/PATCH) containing unknown or duplicate fields. + Valid values are: - Ignore: This will ignore any unknown fields that are + silently dropped from the object, and will ignore all but the last duplicate + field that the decoder encounters. This is the default behavior prior to + v1.23. - Warn: This will send a warning via the standard warning response + header for each unknown field that is dropped from the object, and for each + duplicate field that is encountered. The request will still succeed if there + are no other errors, and will only persist the last of any duplicate fields. + This is the default in v1.23+ - Strict: This will fail the request with + a BadRequest error if any unknown fields would be dropped from the object, + or if any duplicate fields are present. The error returned from the server + will contain all unknown and duplicate fields encountered.' + in: query + name: fieldValidation + schema: + type: string + - description: Force is going to "force" Apply requests. It means user will + re-acquire conflicting fields owned by other people. Force flag must be + unset for non-apply patch requests. + in: query + name: force + schema: + type: boolean + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/v1.Patch' + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.Pod' + application/yaml: + schema: + $ref: '#/components/schemas/v1.Pod' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.Pod' + application/cbor: + schema: + $ref: '#/components/schemas/v1.Pod' + description: OK + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.Pod' + application/yaml: + schema: + $ref: '#/components/schemas/v1.Pod' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.Pod' + application/cbor: + schema: + $ref: '#/components/schemas/v1.Pod' + description: Created + "401": + content: {} + description: Unauthorized + tags: + - core_v1 + x-kubernetes-action: patch + x-kubernetes-group-version-kind: + group: "" + kind: Pod + version: v1 + x-codegen-request-body-name: body + x-contentType: application/json + x-accepts: application/json + put: + description: replace resize of the specified Pod + operationId: replaceNamespacedPodResize + parameters: + - description: name of the Pod + in: path + name: name + required: true + schema: + type: string + - description: object name and auth scope, such as for teams and projects + in: path + name: namespace + required: true + schema: + type: string + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). + in: query + name: pretty + schema: + type: string + - description: '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' + in: query + name: dryRun + schema: + type: string + - description: fieldManager is a name associated with the actor or entity that + is making these changes. The value must be less than or 128 characters long, + and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + in: query + name: fieldManager + schema: + type: string + - description: 'fieldValidation instructs the server on how to handle objects + in the request (POST/PUT/PATCH) containing unknown or duplicate fields. + Valid values are: - Ignore: This will ignore any unknown fields that are + silently dropped from the object, and will ignore all but the last duplicate + field that the decoder encounters. This is the default behavior prior to + v1.23. - Warn: This will send a warning via the standard warning response + header for each unknown field that is dropped from the object, and for each + duplicate field that is encountered. The request will still succeed if there + are no other errors, and will only persist the last of any duplicate fields. + This is the default in v1.23+ - Strict: This will fail the request with + a BadRequest error if any unknown fields would be dropped from the object, + or if any duplicate fields are present. The error returned from the server + will contain all unknown and duplicate fields encountered.' + in: query + name: fieldValidation + schema: + type: string + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/v1.Pod' + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.Pod' + application/yaml: + schema: + $ref: '#/components/schemas/v1.Pod' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.Pod' + application/cbor: + schema: + $ref: '#/components/schemas/v1.Pod' + description: OK + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.Pod' + application/yaml: + schema: + $ref: '#/components/schemas/v1.Pod' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.Pod' + application/cbor: + schema: + $ref: '#/components/schemas/v1.Pod' + description: Created + "401": + content: {} + description: Unauthorized + tags: + - core_v1 + x-kubernetes-action: put + x-kubernetes-group-version-kind: + group: "" + kind: Pod + version: v1 + x-codegen-request-body-name: body + x-contentType: application/json + x-accepts: application/json /api/v1/namespaces/{namespace}/pods/{name}/status: get: description: read status of the specified Pod @@ -7233,7 +8145,9 @@ paths: required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -7250,6 +8164,9 @@ paths: application/vnd.kubernetes.protobuf: schema: $ref: '#/components/schemas/v1.Pod' + application/cbor: + schema: + $ref: '#/components/schemas/v1.Pod' description: OK "401": content: {} @@ -7278,7 +8195,9 @@ paths: required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -7342,6 +8261,9 @@ paths: application/vnd.kubernetes.protobuf: schema: $ref: '#/components/schemas/v1.Pod' + application/cbor: + schema: + $ref: '#/components/schemas/v1.Pod' description: OK "201": content: @@ -7354,6 +8276,9 @@ paths: application/vnd.kubernetes.protobuf: schema: $ref: '#/components/schemas/v1.Pod' + application/cbor: + schema: + $ref: '#/components/schemas/v1.Pod' description: Created "401": content: {} @@ -7384,7 +8309,9 @@ paths: required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -7439,6 +8366,9 @@ paths: application/vnd.kubernetes.protobuf: schema: $ref: '#/components/schemas/v1.Pod' + application/cbor: + schema: + $ref: '#/components/schemas/v1.Pod' description: OK "201": content: @@ -7451,6 +8381,9 @@ paths: application/vnd.kubernetes.protobuf: schema: $ref: '#/components/schemas/v1.Pod' + application/cbor: + schema: + $ref: '#/components/schemas/v1.Pod' description: Created "401": content: {} @@ -7476,7 +8409,9 @@ paths: required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -7512,6 +8447,20 @@ paths: name: gracePeriodSeconds schema: type: integer + - description: 'if set to true, it will trigger an unsafe deletion of the resource + in case the normal deletion flow fails with a corrupt object error. A resource + is considered corrupt if it can not be retrieved from the underlying storage + successfully because of a) its data can not be transformed e.g. decryption + failure, or b) it fails to decode into an object. NOTE: unsafe deletion + ignores finalizer constraints, skips precondition checks, and removes the + object from the storage. WARNING: This may potentially break the cluster + if the workload associated with the resource being unsafe-deleted relies + on normal deletion flow. Use only if you REALLY know what you are doing. + The default value is false, and the user must opt in to enable it' + in: query + name: ignoreStoreReadErrorWithClusterBreakingPotential + schema: + type: boolean - description: A selector to restrict the list of returned objects by their labels. Defaults to everything. in: query @@ -7603,6 +8552,9 @@ paths: application/vnd.kubernetes.protobuf: schema: $ref: '#/components/schemas/v1.Status' + application/cbor: + schema: + $ref: '#/components/schemas/v1.Status' description: OK "401": content: {} @@ -7627,7 +8579,9 @@ paths: required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -7728,12 +8682,18 @@ paths: application/vnd.kubernetes.protobuf: schema: $ref: '#/components/schemas/v1.PodTemplateList' + application/cbor: + schema: + $ref: '#/components/schemas/v1.PodTemplateList' application/json;stream=watch: schema: $ref: '#/components/schemas/v1.PodTemplateList' application/vnd.kubernetes.protobuf;stream=watch: schema: $ref: '#/components/schemas/v1.PodTemplateList' + application/cbor-seq: + schema: + $ref: '#/components/schemas/v1.PodTemplateList' description: OK "401": content: {} @@ -7756,7 +8716,9 @@ paths: required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -7811,6 +8773,9 @@ paths: application/vnd.kubernetes.protobuf: schema: $ref: '#/components/schemas/v1.PodTemplate' + application/cbor: + schema: + $ref: '#/components/schemas/v1.PodTemplate' description: OK "201": content: @@ -7823,6 +8788,9 @@ paths: application/vnd.kubernetes.protobuf: schema: $ref: '#/components/schemas/v1.PodTemplate' + application/cbor: + schema: + $ref: '#/components/schemas/v1.PodTemplate' description: Created "202": content: @@ -7835,6 +8803,9 @@ paths: application/vnd.kubernetes.protobuf: schema: $ref: '#/components/schemas/v1.PodTemplate' + application/cbor: + schema: + $ref: '#/components/schemas/v1.PodTemplate' description: Accepted "401": content: {} @@ -7866,7 +8837,9 @@ paths: required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -7888,6 +8861,20 @@ paths: name: gracePeriodSeconds schema: type: integer + - description: 'if set to true, it will trigger an unsafe deletion of the resource + in case the normal deletion flow fails with a corrupt object error. A resource + is considered corrupt if it can not be retrieved from the underlying storage + successfully because of a) its data can not be transformed e.g. decryption + failure, or b) it fails to decode into an object. NOTE: unsafe deletion + ignores finalizer constraints, skips precondition checks, and removes the + object from the storage. WARNING: This may potentially break the cluster + if the workload associated with the resource being unsafe-deleted relies + on normal deletion flow. Use only if you REALLY know what you are doing. + The default value is false, and the user must opt in to enable it' + in: query + name: ignoreStoreReadErrorWithClusterBreakingPotential + schema: + type: boolean - description: '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 @@ -7925,6 +8912,9 @@ paths: application/vnd.kubernetes.protobuf: schema: $ref: '#/components/schemas/v1.PodTemplate' + application/cbor: + schema: + $ref: '#/components/schemas/v1.PodTemplate' description: OK "202": content: @@ -7937,6 +8927,9 @@ paths: application/vnd.kubernetes.protobuf: schema: $ref: '#/components/schemas/v1.PodTemplate' + application/cbor: + schema: + $ref: '#/components/schemas/v1.PodTemplate' description: Accepted "401": content: {} @@ -7967,7 +8960,9 @@ paths: required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -7984,6 +8979,9 @@ paths: application/vnd.kubernetes.protobuf: schema: $ref: '#/components/schemas/v1.PodTemplate' + application/cbor: + schema: + $ref: '#/components/schemas/v1.PodTemplate' description: OK "401": content: {} @@ -8012,7 +9010,9 @@ paths: required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -8076,6 +9076,9 @@ paths: application/vnd.kubernetes.protobuf: schema: $ref: '#/components/schemas/v1.PodTemplate' + application/cbor: + schema: + $ref: '#/components/schemas/v1.PodTemplate' description: OK "201": content: @@ -8088,6 +9091,9 @@ paths: application/vnd.kubernetes.protobuf: schema: $ref: '#/components/schemas/v1.PodTemplate' + application/cbor: + schema: + $ref: '#/components/schemas/v1.PodTemplate' description: Created "401": content: {} @@ -8118,7 +9124,9 @@ paths: required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -8173,6 +9181,9 @@ paths: application/vnd.kubernetes.protobuf: schema: $ref: '#/components/schemas/v1.PodTemplate' + application/cbor: + schema: + $ref: '#/components/schemas/v1.PodTemplate' description: OK "201": content: @@ -8185,6 +9196,9 @@ paths: application/vnd.kubernetes.protobuf: schema: $ref: '#/components/schemas/v1.PodTemplate' + application/cbor: + schema: + $ref: '#/components/schemas/v1.PodTemplate' description: Created "401": content: {} @@ -8210,7 +9224,9 @@ paths: required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -8246,6 +9262,20 @@ paths: name: gracePeriodSeconds schema: type: integer + - description: 'if set to true, it will trigger an unsafe deletion of the resource + in case the normal deletion flow fails with a corrupt object error. A resource + is considered corrupt if it can not be retrieved from the underlying storage + successfully because of a) its data can not be transformed e.g. decryption + failure, or b) it fails to decode into an object. NOTE: unsafe deletion + ignores finalizer constraints, skips precondition checks, and removes the + object from the storage. WARNING: This may potentially break the cluster + if the workload associated with the resource being unsafe-deleted relies + on normal deletion flow. Use only if you REALLY know what you are doing. + The default value is false, and the user must opt in to enable it' + in: query + name: ignoreStoreReadErrorWithClusterBreakingPotential + schema: + type: boolean - description: A selector to restrict the list of returned objects by their labels. Defaults to everything. in: query @@ -8337,6 +9367,9 @@ paths: application/vnd.kubernetes.protobuf: schema: $ref: '#/components/schemas/v1.Status' + application/cbor: + schema: + $ref: '#/components/schemas/v1.Status' description: OK "401": content: {} @@ -8361,7 +9394,9 @@ paths: required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -8462,12 +9497,18 @@ paths: application/vnd.kubernetes.protobuf: schema: $ref: '#/components/schemas/v1.ReplicationControllerList' + application/cbor: + schema: + $ref: '#/components/schemas/v1.ReplicationControllerList' application/json;stream=watch: schema: $ref: '#/components/schemas/v1.ReplicationControllerList' application/vnd.kubernetes.protobuf;stream=watch: schema: $ref: '#/components/schemas/v1.ReplicationControllerList' + application/cbor-seq: + schema: + $ref: '#/components/schemas/v1.ReplicationControllerList' description: OK "401": content: {} @@ -8490,7 +9531,9 @@ paths: required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -8545,6 +9588,9 @@ paths: application/vnd.kubernetes.protobuf: schema: $ref: '#/components/schemas/v1.ReplicationController' + application/cbor: + schema: + $ref: '#/components/schemas/v1.ReplicationController' description: OK "201": content: @@ -8557,6 +9603,9 @@ paths: application/vnd.kubernetes.protobuf: schema: $ref: '#/components/schemas/v1.ReplicationController' + application/cbor: + schema: + $ref: '#/components/schemas/v1.ReplicationController' description: Created "202": content: @@ -8569,6 +9618,9 @@ paths: application/vnd.kubernetes.protobuf: schema: $ref: '#/components/schemas/v1.ReplicationController' + application/cbor: + schema: + $ref: '#/components/schemas/v1.ReplicationController' description: Accepted "401": content: {} @@ -8600,7 +9652,9 @@ paths: required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -8622,6 +9676,20 @@ paths: name: gracePeriodSeconds schema: type: integer + - description: 'if set to true, it will trigger an unsafe deletion of the resource + in case the normal deletion flow fails with a corrupt object error. A resource + is considered corrupt if it can not be retrieved from the underlying storage + successfully because of a) its data can not be transformed e.g. decryption + failure, or b) it fails to decode into an object. NOTE: unsafe deletion + ignores finalizer constraints, skips precondition checks, and removes the + object from the storage. WARNING: This may potentially break the cluster + if the workload associated with the resource being unsafe-deleted relies + on normal deletion flow. Use only if you REALLY know what you are doing. + The default value is false, and the user must opt in to enable it' + in: query + name: ignoreStoreReadErrorWithClusterBreakingPotential + schema: + type: boolean - description: '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 @@ -8659,6 +9727,9 @@ paths: application/vnd.kubernetes.protobuf: schema: $ref: '#/components/schemas/v1.Status' + application/cbor: + schema: + $ref: '#/components/schemas/v1.Status' description: OK "202": content: @@ -8671,6 +9742,9 @@ paths: application/vnd.kubernetes.protobuf: schema: $ref: '#/components/schemas/v1.Status' + application/cbor: + schema: + $ref: '#/components/schemas/v1.Status' description: Accepted "401": content: {} @@ -8701,7 +9775,9 @@ paths: required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -8718,6 +9794,9 @@ paths: application/vnd.kubernetes.protobuf: schema: $ref: '#/components/schemas/v1.ReplicationController' + application/cbor: + schema: + $ref: '#/components/schemas/v1.ReplicationController' description: OK "401": content: {} @@ -8746,7 +9825,9 @@ paths: required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -8810,6 +9891,9 @@ paths: application/vnd.kubernetes.protobuf: schema: $ref: '#/components/schemas/v1.ReplicationController' + application/cbor: + schema: + $ref: '#/components/schemas/v1.ReplicationController' description: OK "201": content: @@ -8822,6 +9906,9 @@ paths: application/vnd.kubernetes.protobuf: schema: $ref: '#/components/schemas/v1.ReplicationController' + application/cbor: + schema: + $ref: '#/components/schemas/v1.ReplicationController' description: Created "401": content: {} @@ -8852,7 +9939,9 @@ paths: required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -8907,6 +9996,9 @@ paths: application/vnd.kubernetes.protobuf: schema: $ref: '#/components/schemas/v1.ReplicationController' + application/cbor: + schema: + $ref: '#/components/schemas/v1.ReplicationController' description: OK "201": content: @@ -8919,6 +10011,9 @@ paths: application/vnd.kubernetes.protobuf: schema: $ref: '#/components/schemas/v1.ReplicationController' + application/cbor: + schema: + $ref: '#/components/schemas/v1.ReplicationController' description: Created "401": content: {} @@ -8950,7 +10045,9 @@ paths: required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -8967,6 +10064,9 @@ paths: application/vnd.kubernetes.protobuf: schema: $ref: '#/components/schemas/v1.Scale' + application/cbor: + schema: + $ref: '#/components/schemas/v1.Scale' description: OK "401": content: {} @@ -8995,7 +10095,9 @@ paths: required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -9059,6 +10161,9 @@ paths: application/vnd.kubernetes.protobuf: schema: $ref: '#/components/schemas/v1.Scale' + application/cbor: + schema: + $ref: '#/components/schemas/v1.Scale' description: OK "201": content: @@ -9071,6 +10176,9 @@ paths: application/vnd.kubernetes.protobuf: schema: $ref: '#/components/schemas/v1.Scale' + application/cbor: + schema: + $ref: '#/components/schemas/v1.Scale' description: Created "401": content: {} @@ -9101,7 +10209,9 @@ paths: required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -9156,6 +10266,9 @@ paths: application/vnd.kubernetes.protobuf: schema: $ref: '#/components/schemas/v1.Scale' + application/cbor: + schema: + $ref: '#/components/schemas/v1.Scale' description: OK "201": content: @@ -9168,6 +10281,9 @@ paths: application/vnd.kubernetes.protobuf: schema: $ref: '#/components/schemas/v1.Scale' + application/cbor: + schema: + $ref: '#/components/schemas/v1.Scale' description: Created "401": content: {} @@ -9199,7 +10315,9 @@ paths: required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -9216,6 +10334,9 @@ paths: application/vnd.kubernetes.protobuf: schema: $ref: '#/components/schemas/v1.ReplicationController' + application/cbor: + schema: + $ref: '#/components/schemas/v1.ReplicationController' description: OK "401": content: {} @@ -9244,7 +10365,9 @@ paths: required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -9308,6 +10431,9 @@ paths: application/vnd.kubernetes.protobuf: schema: $ref: '#/components/schemas/v1.ReplicationController' + application/cbor: + schema: + $ref: '#/components/schemas/v1.ReplicationController' description: OK "201": content: @@ -9320,6 +10446,9 @@ paths: application/vnd.kubernetes.protobuf: schema: $ref: '#/components/schemas/v1.ReplicationController' + application/cbor: + schema: + $ref: '#/components/schemas/v1.ReplicationController' description: Created "401": content: {} @@ -9350,7 +10479,9 @@ paths: required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -9405,6 +10536,9 @@ paths: application/vnd.kubernetes.protobuf: schema: $ref: '#/components/schemas/v1.ReplicationController' + application/cbor: + schema: + $ref: '#/components/schemas/v1.ReplicationController' description: OK "201": content: @@ -9417,6 +10551,9 @@ paths: application/vnd.kubernetes.protobuf: schema: $ref: '#/components/schemas/v1.ReplicationController' + application/cbor: + schema: + $ref: '#/components/schemas/v1.ReplicationController' description: Created "401": content: {} @@ -9442,7 +10579,9 @@ paths: required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -9478,6 +10617,20 @@ paths: name: gracePeriodSeconds schema: type: integer + - description: 'if set to true, it will trigger an unsafe deletion of the resource + in case the normal deletion flow fails with a corrupt object error. A resource + is considered corrupt if it can not be retrieved from the underlying storage + successfully because of a) its data can not be transformed e.g. decryption + failure, or b) it fails to decode into an object. NOTE: unsafe deletion + ignores finalizer constraints, skips precondition checks, and removes the + object from the storage. WARNING: This may potentially break the cluster + if the workload associated with the resource being unsafe-deleted relies + on normal deletion flow. Use only if you REALLY know what you are doing. + The default value is false, and the user must opt in to enable it' + in: query + name: ignoreStoreReadErrorWithClusterBreakingPotential + schema: + type: boolean - description: A selector to restrict the list of returned objects by their labels. Defaults to everything. in: query @@ -9569,6 +10722,9 @@ paths: application/vnd.kubernetes.protobuf: schema: $ref: '#/components/schemas/v1.Status' + application/cbor: + schema: + $ref: '#/components/schemas/v1.Status' description: OK "401": content: {} @@ -9593,7 +10749,9 @@ paths: required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -9694,12 +10852,18 @@ paths: application/vnd.kubernetes.protobuf: schema: $ref: '#/components/schemas/v1.ResourceQuotaList' + application/cbor: + schema: + $ref: '#/components/schemas/v1.ResourceQuotaList' application/json;stream=watch: schema: $ref: '#/components/schemas/v1.ResourceQuotaList' application/vnd.kubernetes.protobuf;stream=watch: schema: $ref: '#/components/schemas/v1.ResourceQuotaList' + application/cbor-seq: + schema: + $ref: '#/components/schemas/v1.ResourceQuotaList' description: OK "401": content: {} @@ -9722,7 +10886,9 @@ paths: required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -9777,6 +10943,9 @@ paths: application/vnd.kubernetes.protobuf: schema: $ref: '#/components/schemas/v1.ResourceQuota' + application/cbor: + schema: + $ref: '#/components/schemas/v1.ResourceQuota' description: OK "201": content: @@ -9789,6 +10958,9 @@ paths: application/vnd.kubernetes.protobuf: schema: $ref: '#/components/schemas/v1.ResourceQuota' + application/cbor: + schema: + $ref: '#/components/schemas/v1.ResourceQuota' description: Created "202": content: @@ -9801,6 +10973,9 @@ paths: application/vnd.kubernetes.protobuf: schema: $ref: '#/components/schemas/v1.ResourceQuota' + application/cbor: + schema: + $ref: '#/components/schemas/v1.ResourceQuota' description: Accepted "401": content: {} @@ -9832,7 +11007,9 @@ paths: required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -9854,6 +11031,20 @@ paths: name: gracePeriodSeconds schema: type: integer + - description: 'if set to true, it will trigger an unsafe deletion of the resource + in case the normal deletion flow fails with a corrupt object error. A resource + is considered corrupt if it can not be retrieved from the underlying storage + successfully because of a) its data can not be transformed e.g. decryption + failure, or b) it fails to decode into an object. NOTE: unsafe deletion + ignores finalizer constraints, skips precondition checks, and removes the + object from the storage. WARNING: This may potentially break the cluster + if the workload associated with the resource being unsafe-deleted relies + on normal deletion flow. Use only if you REALLY know what you are doing. + The default value is false, and the user must opt in to enable it' + in: query + name: ignoreStoreReadErrorWithClusterBreakingPotential + schema: + type: boolean - description: '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 @@ -9891,6 +11082,9 @@ paths: application/vnd.kubernetes.protobuf: schema: $ref: '#/components/schemas/v1.ResourceQuota' + application/cbor: + schema: + $ref: '#/components/schemas/v1.ResourceQuota' description: OK "202": content: @@ -9903,6 +11097,9 @@ paths: application/vnd.kubernetes.protobuf: schema: $ref: '#/components/schemas/v1.ResourceQuota' + application/cbor: + schema: + $ref: '#/components/schemas/v1.ResourceQuota' description: Accepted "401": content: {} @@ -9933,7 +11130,9 @@ paths: required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -9950,6 +11149,9 @@ paths: application/vnd.kubernetes.protobuf: schema: $ref: '#/components/schemas/v1.ResourceQuota' + application/cbor: + schema: + $ref: '#/components/schemas/v1.ResourceQuota' description: OK "401": content: {} @@ -9978,7 +11180,9 @@ paths: required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -10042,6 +11246,9 @@ paths: application/vnd.kubernetes.protobuf: schema: $ref: '#/components/schemas/v1.ResourceQuota' + application/cbor: + schema: + $ref: '#/components/schemas/v1.ResourceQuota' description: OK "201": content: @@ -10054,6 +11261,9 @@ paths: application/vnd.kubernetes.protobuf: schema: $ref: '#/components/schemas/v1.ResourceQuota' + application/cbor: + schema: + $ref: '#/components/schemas/v1.ResourceQuota' description: Created "401": content: {} @@ -10084,7 +11294,9 @@ paths: required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -10139,6 +11351,9 @@ paths: application/vnd.kubernetes.protobuf: schema: $ref: '#/components/schemas/v1.ResourceQuota' + application/cbor: + schema: + $ref: '#/components/schemas/v1.ResourceQuota' description: OK "201": content: @@ -10151,6 +11366,9 @@ paths: application/vnd.kubernetes.protobuf: schema: $ref: '#/components/schemas/v1.ResourceQuota' + application/cbor: + schema: + $ref: '#/components/schemas/v1.ResourceQuota' description: Created "401": content: {} @@ -10182,7 +11400,9 @@ paths: required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -10199,6 +11419,9 @@ paths: application/vnd.kubernetes.protobuf: schema: $ref: '#/components/schemas/v1.ResourceQuota' + application/cbor: + schema: + $ref: '#/components/schemas/v1.ResourceQuota' description: OK "401": content: {} @@ -10227,7 +11450,9 @@ paths: required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -10291,6 +11516,9 @@ paths: application/vnd.kubernetes.protobuf: schema: $ref: '#/components/schemas/v1.ResourceQuota' + application/cbor: + schema: + $ref: '#/components/schemas/v1.ResourceQuota' description: OK "201": content: @@ -10303,6 +11531,9 @@ paths: application/vnd.kubernetes.protobuf: schema: $ref: '#/components/schemas/v1.ResourceQuota' + application/cbor: + schema: + $ref: '#/components/schemas/v1.ResourceQuota' description: Created "401": content: {} @@ -10333,7 +11564,9 @@ paths: required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -10388,6 +11621,9 @@ paths: application/vnd.kubernetes.protobuf: schema: $ref: '#/components/schemas/v1.ResourceQuota' + application/cbor: + schema: + $ref: '#/components/schemas/v1.ResourceQuota' description: OK "201": content: @@ -10400,6 +11636,9 @@ paths: application/vnd.kubernetes.protobuf: schema: $ref: '#/components/schemas/v1.ResourceQuota' + application/cbor: + schema: + $ref: '#/components/schemas/v1.ResourceQuota' description: Created "401": content: {} @@ -10425,7 +11664,9 @@ paths: required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -10461,6 +11702,20 @@ paths: name: gracePeriodSeconds schema: type: integer + - description: 'if set to true, it will trigger an unsafe deletion of the resource + in case the normal deletion flow fails with a corrupt object error. A resource + is considered corrupt if it can not be retrieved from the underlying storage + successfully because of a) its data can not be transformed e.g. decryption + failure, or b) it fails to decode into an object. NOTE: unsafe deletion + ignores finalizer constraints, skips precondition checks, and removes the + object from the storage. WARNING: This may potentially break the cluster + if the workload associated with the resource being unsafe-deleted relies + on normal deletion flow. Use only if you REALLY know what you are doing. + The default value is false, and the user must opt in to enable it' + in: query + name: ignoreStoreReadErrorWithClusterBreakingPotential + schema: + type: boolean - description: A selector to restrict the list of returned objects by their labels. Defaults to everything. in: query @@ -10552,6 +11807,9 @@ paths: application/vnd.kubernetes.protobuf: schema: $ref: '#/components/schemas/v1.Status' + application/cbor: + schema: + $ref: '#/components/schemas/v1.Status' description: OK "401": content: {} @@ -10576,7 +11834,9 @@ paths: required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -10677,12 +11937,18 @@ paths: application/vnd.kubernetes.protobuf: schema: $ref: '#/components/schemas/v1.SecretList' + application/cbor: + schema: + $ref: '#/components/schemas/v1.SecretList' application/json;stream=watch: schema: $ref: '#/components/schemas/v1.SecretList' application/vnd.kubernetes.protobuf;stream=watch: schema: $ref: '#/components/schemas/v1.SecretList' + application/cbor-seq: + schema: + $ref: '#/components/schemas/v1.SecretList' description: OK "401": content: {} @@ -10705,7 +11971,9 @@ paths: required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -10760,6 +12028,9 @@ paths: application/vnd.kubernetes.protobuf: schema: $ref: '#/components/schemas/v1.Secret' + application/cbor: + schema: + $ref: '#/components/schemas/v1.Secret' description: OK "201": content: @@ -10772,6 +12043,9 @@ paths: application/vnd.kubernetes.protobuf: schema: $ref: '#/components/schemas/v1.Secret' + application/cbor: + schema: + $ref: '#/components/schemas/v1.Secret' description: Created "202": content: @@ -10784,6 +12058,9 @@ paths: application/vnd.kubernetes.protobuf: schema: $ref: '#/components/schemas/v1.Secret' + application/cbor: + schema: + $ref: '#/components/schemas/v1.Secret' description: Accepted "401": content: {} @@ -10815,7 +12092,9 @@ paths: required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -10837,6 +12116,20 @@ paths: name: gracePeriodSeconds schema: type: integer + - description: 'if set to true, it will trigger an unsafe deletion of the resource + in case the normal deletion flow fails with a corrupt object error. A resource + is considered corrupt if it can not be retrieved from the underlying storage + successfully because of a) its data can not be transformed e.g. decryption + failure, or b) it fails to decode into an object. NOTE: unsafe deletion + ignores finalizer constraints, skips precondition checks, and removes the + object from the storage. WARNING: This may potentially break the cluster + if the workload associated with the resource being unsafe-deleted relies + on normal deletion flow. Use only if you REALLY know what you are doing. + The default value is false, and the user must opt in to enable it' + in: query + name: ignoreStoreReadErrorWithClusterBreakingPotential + schema: + type: boolean - description: '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 @@ -10874,6 +12167,9 @@ paths: application/vnd.kubernetes.protobuf: schema: $ref: '#/components/schemas/v1.Status' + application/cbor: + schema: + $ref: '#/components/schemas/v1.Status' description: OK "202": content: @@ -10886,6 +12182,9 @@ paths: application/vnd.kubernetes.protobuf: schema: $ref: '#/components/schemas/v1.Status' + application/cbor: + schema: + $ref: '#/components/schemas/v1.Status' description: Accepted "401": content: {} @@ -10916,7 +12215,9 @@ paths: required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -10933,6 +12234,9 @@ paths: application/vnd.kubernetes.protobuf: schema: $ref: '#/components/schemas/v1.Secret' + application/cbor: + schema: + $ref: '#/components/schemas/v1.Secret' description: OK "401": content: {} @@ -10961,7 +12265,9 @@ paths: required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -11025,6 +12331,9 @@ paths: application/vnd.kubernetes.protobuf: schema: $ref: '#/components/schemas/v1.Secret' + application/cbor: + schema: + $ref: '#/components/schemas/v1.Secret' description: OK "201": content: @@ -11037,6 +12346,9 @@ paths: application/vnd.kubernetes.protobuf: schema: $ref: '#/components/schemas/v1.Secret' + application/cbor: + schema: + $ref: '#/components/schemas/v1.Secret' description: Created "401": content: {} @@ -11067,7 +12379,9 @@ paths: required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -11122,6 +12436,9 @@ paths: application/vnd.kubernetes.protobuf: schema: $ref: '#/components/schemas/v1.Secret' + application/cbor: + schema: + $ref: '#/components/schemas/v1.Secret' description: OK "201": content: @@ -11134,6 +12451,9 @@ paths: application/vnd.kubernetes.protobuf: schema: $ref: '#/components/schemas/v1.Secret' + application/cbor: + schema: + $ref: '#/components/schemas/v1.Secret' description: Created "401": content: {} @@ -11159,7 +12479,9 @@ paths: required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -11195,6 +12517,20 @@ paths: name: gracePeriodSeconds schema: type: integer + - description: 'if set to true, it will trigger an unsafe deletion of the resource + in case the normal deletion flow fails with a corrupt object error. A resource + is considered corrupt if it can not be retrieved from the underlying storage + successfully because of a) its data can not be transformed e.g. decryption + failure, or b) it fails to decode into an object. NOTE: unsafe deletion + ignores finalizer constraints, skips precondition checks, and removes the + object from the storage. WARNING: This may potentially break the cluster + if the workload associated with the resource being unsafe-deleted relies + on normal deletion flow. Use only if you REALLY know what you are doing. + The default value is false, and the user must opt in to enable it' + in: query + name: ignoreStoreReadErrorWithClusterBreakingPotential + schema: + type: boolean - description: A selector to restrict the list of returned objects by their labels. Defaults to everything. in: query @@ -11286,6 +12622,9 @@ paths: application/vnd.kubernetes.protobuf: schema: $ref: '#/components/schemas/v1.Status' + application/cbor: + schema: + $ref: '#/components/schemas/v1.Status' description: OK "401": content: {} @@ -11310,7 +12649,9 @@ paths: required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -11411,12 +12752,18 @@ paths: application/vnd.kubernetes.protobuf: schema: $ref: '#/components/schemas/v1.ServiceAccountList' + application/cbor: + schema: + $ref: '#/components/schemas/v1.ServiceAccountList' application/json;stream=watch: schema: $ref: '#/components/schemas/v1.ServiceAccountList' application/vnd.kubernetes.protobuf;stream=watch: schema: $ref: '#/components/schemas/v1.ServiceAccountList' + application/cbor-seq: + schema: + $ref: '#/components/schemas/v1.ServiceAccountList' description: OK "401": content: {} @@ -11439,7 +12786,9 @@ paths: required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -11494,6 +12843,9 @@ paths: application/vnd.kubernetes.protobuf: schema: $ref: '#/components/schemas/v1.ServiceAccount' + application/cbor: + schema: + $ref: '#/components/schemas/v1.ServiceAccount' description: OK "201": content: @@ -11506,6 +12858,9 @@ paths: application/vnd.kubernetes.protobuf: schema: $ref: '#/components/schemas/v1.ServiceAccount' + application/cbor: + schema: + $ref: '#/components/schemas/v1.ServiceAccount' description: Created "202": content: @@ -11518,6 +12873,9 @@ paths: application/vnd.kubernetes.protobuf: schema: $ref: '#/components/schemas/v1.ServiceAccount' + application/cbor: + schema: + $ref: '#/components/schemas/v1.ServiceAccount' description: Accepted "401": content: {} @@ -11549,7 +12907,9 @@ paths: required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -11571,6 +12931,20 @@ paths: name: gracePeriodSeconds schema: type: integer + - description: 'if set to true, it will trigger an unsafe deletion of the resource + in case the normal deletion flow fails with a corrupt object error. A resource + is considered corrupt if it can not be retrieved from the underlying storage + successfully because of a) its data can not be transformed e.g. decryption + failure, or b) it fails to decode into an object. NOTE: unsafe deletion + ignores finalizer constraints, skips precondition checks, and removes the + object from the storage. WARNING: This may potentially break the cluster + if the workload associated with the resource being unsafe-deleted relies + on normal deletion flow. Use only if you REALLY know what you are doing. + The default value is false, and the user must opt in to enable it' + in: query + name: ignoreStoreReadErrorWithClusterBreakingPotential + schema: + type: boolean - description: '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 @@ -11608,6 +12982,9 @@ paths: application/vnd.kubernetes.protobuf: schema: $ref: '#/components/schemas/v1.ServiceAccount' + application/cbor: + schema: + $ref: '#/components/schemas/v1.ServiceAccount' description: OK "202": content: @@ -11620,6 +12997,9 @@ paths: application/vnd.kubernetes.protobuf: schema: $ref: '#/components/schemas/v1.ServiceAccount' + application/cbor: + schema: + $ref: '#/components/schemas/v1.ServiceAccount' description: Accepted "401": content: {} @@ -11650,7 +13030,9 @@ paths: required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -11667,6 +13049,9 @@ paths: application/vnd.kubernetes.protobuf: schema: $ref: '#/components/schemas/v1.ServiceAccount' + application/cbor: + schema: + $ref: '#/components/schemas/v1.ServiceAccount' description: OK "401": content: {} @@ -11695,7 +13080,9 @@ paths: required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -11759,6 +13146,9 @@ paths: application/vnd.kubernetes.protobuf: schema: $ref: '#/components/schemas/v1.ServiceAccount' + application/cbor: + schema: + $ref: '#/components/schemas/v1.ServiceAccount' description: OK "201": content: @@ -11771,6 +13161,9 @@ paths: application/vnd.kubernetes.protobuf: schema: $ref: '#/components/schemas/v1.ServiceAccount' + application/cbor: + schema: + $ref: '#/components/schemas/v1.ServiceAccount' description: Created "401": content: {} @@ -11801,7 +13194,9 @@ paths: required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -11856,6 +13251,9 @@ paths: application/vnd.kubernetes.protobuf: schema: $ref: '#/components/schemas/v1.ServiceAccount' + application/cbor: + schema: + $ref: '#/components/schemas/v1.ServiceAccount' description: OK "201": content: @@ -11868,6 +13266,9 @@ paths: application/vnd.kubernetes.protobuf: schema: $ref: '#/components/schemas/v1.ServiceAccount' + application/cbor: + schema: + $ref: '#/components/schemas/v1.ServiceAccount' description: Created "401": content: {} @@ -11931,7 +13332,9 @@ paths: required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -11954,6 +13357,9 @@ paths: application/vnd.kubernetes.protobuf: schema: $ref: '#/components/schemas/authentication.v1.TokenRequest' + application/cbor: + schema: + $ref: '#/components/schemas/authentication.v1.TokenRequest' description: OK "201": content: @@ -11966,6 +13372,9 @@ paths: application/vnd.kubernetes.protobuf: schema: $ref: '#/components/schemas/authentication.v1.TokenRequest' + application/cbor: + schema: + $ref: '#/components/schemas/authentication.v1.TokenRequest' description: Created "202": content: @@ -11978,6 +13387,9 @@ paths: application/vnd.kubernetes.protobuf: schema: $ref: '#/components/schemas/authentication.v1.TokenRequest' + application/cbor: + schema: + $ref: '#/components/schemas/authentication.v1.TokenRequest' description: Accepted "401": content: {} @@ -12003,7 +13415,9 @@ paths: required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -12039,6 +13453,20 @@ paths: name: gracePeriodSeconds schema: type: integer + - description: 'if set to true, it will trigger an unsafe deletion of the resource + in case the normal deletion flow fails with a corrupt object error. A resource + is considered corrupt if it can not be retrieved from the underlying storage + successfully because of a) its data can not be transformed e.g. decryption + failure, or b) it fails to decode into an object. NOTE: unsafe deletion + ignores finalizer constraints, skips precondition checks, and removes the + object from the storage. WARNING: This may potentially break the cluster + if the workload associated with the resource being unsafe-deleted relies + on normal deletion flow. Use only if you REALLY know what you are doing. + The default value is false, and the user must opt in to enable it' + in: query + name: ignoreStoreReadErrorWithClusterBreakingPotential + schema: + type: boolean - description: A selector to restrict the list of returned objects by their labels. Defaults to everything. in: query @@ -12130,6 +13558,9 @@ paths: application/vnd.kubernetes.protobuf: schema: $ref: '#/components/schemas/v1.Status' + application/cbor: + schema: + $ref: '#/components/schemas/v1.Status' description: OK "401": content: {} @@ -12154,7 +13585,9 @@ paths: required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -12255,12 +13688,18 @@ paths: application/vnd.kubernetes.protobuf: schema: $ref: '#/components/schemas/v1.ServiceList' + application/cbor: + schema: + $ref: '#/components/schemas/v1.ServiceList' application/json;stream=watch: schema: $ref: '#/components/schemas/v1.ServiceList' application/vnd.kubernetes.protobuf;stream=watch: schema: $ref: '#/components/schemas/v1.ServiceList' + application/cbor-seq: + schema: + $ref: '#/components/schemas/v1.ServiceList' description: OK "401": content: {} @@ -12283,7 +13722,9 @@ paths: required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -12338,6 +13779,9 @@ paths: application/vnd.kubernetes.protobuf: schema: $ref: '#/components/schemas/v1.Service' + application/cbor: + schema: + $ref: '#/components/schemas/v1.Service' description: OK "201": content: @@ -12350,6 +13794,9 @@ paths: application/vnd.kubernetes.protobuf: schema: $ref: '#/components/schemas/v1.Service' + application/cbor: + schema: + $ref: '#/components/schemas/v1.Service' description: Created "202": content: @@ -12362,6 +13809,9 @@ paths: application/vnd.kubernetes.protobuf: schema: $ref: '#/components/schemas/v1.Service' + application/cbor: + schema: + $ref: '#/components/schemas/v1.Service' description: Accepted "401": content: {} @@ -12393,7 +13843,9 @@ paths: required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -12415,6 +13867,20 @@ paths: name: gracePeriodSeconds schema: type: integer + - description: 'if set to true, it will trigger an unsafe deletion of the resource + in case the normal deletion flow fails with a corrupt object error. A resource + is considered corrupt if it can not be retrieved from the underlying storage + successfully because of a) its data can not be transformed e.g. decryption + failure, or b) it fails to decode into an object. NOTE: unsafe deletion + ignores finalizer constraints, skips precondition checks, and removes the + object from the storage. WARNING: This may potentially break the cluster + if the workload associated with the resource being unsafe-deleted relies + on normal deletion flow. Use only if you REALLY know what you are doing. + The default value is false, and the user must opt in to enable it' + in: query + name: ignoreStoreReadErrorWithClusterBreakingPotential + schema: + type: boolean - description: '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 @@ -12452,6 +13918,9 @@ paths: application/vnd.kubernetes.protobuf: schema: $ref: '#/components/schemas/v1.Service' + application/cbor: + schema: + $ref: '#/components/schemas/v1.Service' description: OK "202": content: @@ -12464,6 +13933,9 @@ paths: application/vnd.kubernetes.protobuf: schema: $ref: '#/components/schemas/v1.Service' + application/cbor: + schema: + $ref: '#/components/schemas/v1.Service' description: Accepted "401": content: {} @@ -12494,7 +13966,9 @@ paths: required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -12511,6 +13985,9 @@ paths: application/vnd.kubernetes.protobuf: schema: $ref: '#/components/schemas/v1.Service' + application/cbor: + schema: + $ref: '#/components/schemas/v1.Service' description: OK "401": content: {} @@ -12539,7 +14016,9 @@ paths: required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -12603,6 +14082,9 @@ paths: application/vnd.kubernetes.protobuf: schema: $ref: '#/components/schemas/v1.Service' + application/cbor: + schema: + $ref: '#/components/schemas/v1.Service' description: OK "201": content: @@ -12615,6 +14097,9 @@ paths: application/vnd.kubernetes.protobuf: schema: $ref: '#/components/schemas/v1.Service' + application/cbor: + schema: + $ref: '#/components/schemas/v1.Service' description: Created "401": content: {} @@ -12645,7 +14130,9 @@ paths: required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -12700,6 +14187,9 @@ paths: application/vnd.kubernetes.protobuf: schema: $ref: '#/components/schemas/v1.Service' + application/cbor: + schema: + $ref: '#/components/schemas/v1.Service' description: OK "201": content: @@ -12712,6 +14202,9 @@ paths: application/vnd.kubernetes.protobuf: schema: $ref: '#/components/schemas/v1.Service' + application/cbor: + schema: + $ref: '#/components/schemas/v1.Service' description: Created "401": content: {} @@ -13375,7 +14868,9 @@ paths: required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -13392,6 +14887,9 @@ paths: application/vnd.kubernetes.protobuf: schema: $ref: '#/components/schemas/v1.Service' + application/cbor: + schema: + $ref: '#/components/schemas/v1.Service' description: OK "401": content: {} @@ -13420,7 +14918,9 @@ paths: required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -13484,6 +14984,9 @@ paths: application/vnd.kubernetes.protobuf: schema: $ref: '#/components/schemas/v1.Service' + application/cbor: + schema: + $ref: '#/components/schemas/v1.Service' description: OK "201": content: @@ -13496,6 +14999,9 @@ paths: application/vnd.kubernetes.protobuf: schema: $ref: '#/components/schemas/v1.Service' + application/cbor: + schema: + $ref: '#/components/schemas/v1.Service' description: Created "401": content: {} @@ -13526,7 +15032,9 @@ paths: required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -13581,6 +15089,9 @@ paths: application/vnd.kubernetes.protobuf: schema: $ref: '#/components/schemas/v1.Service' + application/cbor: + schema: + $ref: '#/components/schemas/v1.Service' description: OK "201": content: @@ -13593,6 +15104,9 @@ paths: application/vnd.kubernetes.protobuf: schema: $ref: '#/components/schemas/v1.Service' + application/cbor: + schema: + $ref: '#/components/schemas/v1.Service' description: Created "401": content: {} @@ -13618,7 +15132,9 @@ paths: required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -13640,6 +15156,20 @@ paths: name: gracePeriodSeconds schema: type: integer + - description: 'if set to true, it will trigger an unsafe deletion of the resource + in case the normal deletion flow fails with a corrupt object error. A resource + is considered corrupt if it can not be retrieved from the underlying storage + successfully because of a) its data can not be transformed e.g. decryption + failure, or b) it fails to decode into an object. NOTE: unsafe deletion + ignores finalizer constraints, skips precondition checks, and removes the + object from the storage. WARNING: This may potentially break the cluster + if the workload associated with the resource being unsafe-deleted relies + on normal deletion flow. Use only if you REALLY know what you are doing. + The default value is false, and the user must opt in to enable it' + in: query + name: ignoreStoreReadErrorWithClusterBreakingPotential + schema: + type: boolean - description: '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 @@ -13677,6 +15207,9 @@ paths: application/vnd.kubernetes.protobuf: schema: $ref: '#/components/schemas/v1.Status' + application/cbor: + schema: + $ref: '#/components/schemas/v1.Status' description: OK "202": content: @@ -13689,6 +15222,9 @@ paths: application/vnd.kubernetes.protobuf: schema: $ref: '#/components/schemas/v1.Status' + application/cbor: + schema: + $ref: '#/components/schemas/v1.Status' description: Accepted "401": content: {} @@ -13713,7 +15249,9 @@ paths: required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -13730,6 +15268,9 @@ paths: application/vnd.kubernetes.protobuf: schema: $ref: '#/components/schemas/v1.Namespace' + application/cbor: + schema: + $ref: '#/components/schemas/v1.Namespace' description: OK "401": content: {} @@ -13752,7 +15293,9 @@ paths: required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -13816,6 +15359,9 @@ paths: application/vnd.kubernetes.protobuf: schema: $ref: '#/components/schemas/v1.Namespace' + application/cbor: + schema: + $ref: '#/components/schemas/v1.Namespace' description: OK "201": content: @@ -13828,6 +15374,9 @@ paths: application/vnd.kubernetes.protobuf: schema: $ref: '#/components/schemas/v1.Namespace' + application/cbor: + schema: + $ref: '#/components/schemas/v1.Namespace' description: Created "401": content: {} @@ -13852,7 +15401,9 @@ paths: required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -13907,6 +15458,9 @@ paths: application/vnd.kubernetes.protobuf: schema: $ref: '#/components/schemas/v1.Namespace' + application/cbor: + schema: + $ref: '#/components/schemas/v1.Namespace' description: OK "201": content: @@ -13919,6 +15473,9 @@ paths: application/vnd.kubernetes.protobuf: schema: $ref: '#/components/schemas/v1.Namespace' + application/cbor: + schema: + $ref: '#/components/schemas/v1.Namespace' description: Created "401": content: {} @@ -13976,7 +15533,9 @@ paths: required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -13999,6 +15558,9 @@ paths: application/vnd.kubernetes.protobuf: schema: $ref: '#/components/schemas/v1.Namespace' + application/cbor: + schema: + $ref: '#/components/schemas/v1.Namespace' description: OK "201": content: @@ -14011,6 +15573,9 @@ paths: application/vnd.kubernetes.protobuf: schema: $ref: '#/components/schemas/v1.Namespace' + application/cbor: + schema: + $ref: '#/components/schemas/v1.Namespace' description: Created "401": content: {} @@ -14036,7 +15601,9 @@ paths: required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -14053,6 +15620,9 @@ paths: application/vnd.kubernetes.protobuf: schema: $ref: '#/components/schemas/v1.Namespace' + application/cbor: + schema: + $ref: '#/components/schemas/v1.Namespace' description: OK "401": content: {} @@ -14075,7 +15645,9 @@ paths: required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -14139,6 +15711,9 @@ paths: application/vnd.kubernetes.protobuf: schema: $ref: '#/components/schemas/v1.Namespace' + application/cbor: + schema: + $ref: '#/components/schemas/v1.Namespace' description: OK "201": content: @@ -14151,6 +15726,9 @@ paths: application/vnd.kubernetes.protobuf: schema: $ref: '#/components/schemas/v1.Namespace' + application/cbor: + schema: + $ref: '#/components/schemas/v1.Namespace' description: Created "401": content: {} @@ -14175,7 +15753,9 @@ paths: required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -14230,6 +15810,9 @@ paths: application/vnd.kubernetes.protobuf: schema: $ref: '#/components/schemas/v1.Namespace' + application/cbor: + schema: + $ref: '#/components/schemas/v1.Namespace' description: OK "201": content: @@ -14242,6 +15825,9 @@ paths: application/vnd.kubernetes.protobuf: schema: $ref: '#/components/schemas/v1.Namespace' + application/cbor: + schema: + $ref: '#/components/schemas/v1.Namespace' description: Created "401": content: {} @@ -14261,7 +15847,9 @@ paths: description: delete collection of Node operationId: deleteCollectionNode parameters: - - description: If 'true', then the output is pretty printed. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -14297,6 +15885,20 @@ paths: name: gracePeriodSeconds schema: type: integer + - description: 'if set to true, it will trigger an unsafe deletion of the resource + in case the normal deletion flow fails with a corrupt object error. A resource + is considered corrupt if it can not be retrieved from the underlying storage + successfully because of a) its data can not be transformed e.g. decryption + failure, or b) it fails to decode into an object. NOTE: unsafe deletion + ignores finalizer constraints, skips precondition checks, and removes the + object from the storage. WARNING: This may potentially break the cluster + if the workload associated with the resource being unsafe-deleted relies + on normal deletion flow. Use only if you REALLY know what you are doing. + The default value is false, and the user must opt in to enable it' + in: query + name: ignoreStoreReadErrorWithClusterBreakingPotential + schema: + type: boolean - description: A selector to restrict the list of returned objects by their labels. Defaults to everything. in: query @@ -14388,6 +15990,9 @@ paths: application/vnd.kubernetes.protobuf: schema: $ref: '#/components/schemas/v1.Status' + application/cbor: + schema: + $ref: '#/components/schemas/v1.Status' description: OK "401": content: {} @@ -14406,7 +16011,9 @@ paths: description: list or watch objects of kind Node operationId: listNode parameters: - - description: If 'true', then the output is pretty printed. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -14507,12 +16114,18 @@ paths: application/vnd.kubernetes.protobuf: schema: $ref: '#/components/schemas/v1.NodeList' + application/cbor: + schema: + $ref: '#/components/schemas/v1.NodeList' application/json;stream=watch: schema: $ref: '#/components/schemas/v1.NodeList' application/vnd.kubernetes.protobuf;stream=watch: schema: $ref: '#/components/schemas/v1.NodeList' + application/cbor-seq: + schema: + $ref: '#/components/schemas/v1.NodeList' description: OK "401": content: {} @@ -14529,7 +16142,9 @@ paths: description: create a Node operationId: createNode parameters: - - description: If 'true', then the output is pretty printed. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -14584,6 +16199,9 @@ paths: application/vnd.kubernetes.protobuf: schema: $ref: '#/components/schemas/v1.Node' + application/cbor: + schema: + $ref: '#/components/schemas/v1.Node' description: OK "201": content: @@ -14596,6 +16214,9 @@ paths: application/vnd.kubernetes.protobuf: schema: $ref: '#/components/schemas/v1.Node' + application/cbor: + schema: + $ref: '#/components/schemas/v1.Node' description: Created "202": content: @@ -14608,6 +16229,9 @@ paths: application/vnd.kubernetes.protobuf: schema: $ref: '#/components/schemas/v1.Node' + application/cbor: + schema: + $ref: '#/components/schemas/v1.Node' description: Accepted "401": content: {} @@ -14633,7 +16257,9 @@ paths: required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -14655,6 +16281,20 @@ paths: name: gracePeriodSeconds schema: type: integer + - description: 'if set to true, it will trigger an unsafe deletion of the resource + in case the normal deletion flow fails with a corrupt object error. A resource + is considered corrupt if it can not be retrieved from the underlying storage + successfully because of a) its data can not be transformed e.g. decryption + failure, or b) it fails to decode into an object. NOTE: unsafe deletion + ignores finalizer constraints, skips precondition checks, and removes the + object from the storage. WARNING: This may potentially break the cluster + if the workload associated with the resource being unsafe-deleted relies + on normal deletion flow. Use only if you REALLY know what you are doing. + The default value is false, and the user must opt in to enable it' + in: query + name: ignoreStoreReadErrorWithClusterBreakingPotential + schema: + type: boolean - description: '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 @@ -14692,6 +16332,9 @@ paths: application/vnd.kubernetes.protobuf: schema: $ref: '#/components/schemas/v1.Status' + application/cbor: + schema: + $ref: '#/components/schemas/v1.Status' description: OK "202": content: @@ -14704,6 +16347,9 @@ paths: application/vnd.kubernetes.protobuf: schema: $ref: '#/components/schemas/v1.Status' + application/cbor: + schema: + $ref: '#/components/schemas/v1.Status' description: Accepted "401": content: {} @@ -14728,7 +16374,9 @@ paths: required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -14745,6 +16393,9 @@ paths: application/vnd.kubernetes.protobuf: schema: $ref: '#/components/schemas/v1.Node' + application/cbor: + schema: + $ref: '#/components/schemas/v1.Node' description: OK "401": content: {} @@ -14767,7 +16418,9 @@ paths: required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -14831,6 +16484,9 @@ paths: application/vnd.kubernetes.protobuf: schema: $ref: '#/components/schemas/v1.Node' + application/cbor: + schema: + $ref: '#/components/schemas/v1.Node' description: OK "201": content: @@ -14843,6 +16499,9 @@ paths: application/vnd.kubernetes.protobuf: schema: $ref: '#/components/schemas/v1.Node' + application/cbor: + schema: + $ref: '#/components/schemas/v1.Node' description: Created "401": content: {} @@ -14867,7 +16526,9 @@ paths: required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -14922,6 +16583,9 @@ paths: application/vnd.kubernetes.protobuf: schema: $ref: '#/components/schemas/v1.Node' + application/cbor: + schema: + $ref: '#/components/schemas/v1.Node' description: OK "201": content: @@ -14934,6 +16598,9 @@ paths: application/vnd.kubernetes.protobuf: schema: $ref: '#/components/schemas/v1.Node' + application/cbor: + schema: + $ref: '#/components/schemas/v1.Node' description: Created "401": content: {} @@ -15479,7 +17146,9 @@ paths: required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -15496,6 +17165,9 @@ paths: application/vnd.kubernetes.protobuf: schema: $ref: '#/components/schemas/v1.Node' + application/cbor: + schema: + $ref: '#/components/schemas/v1.Node' description: OK "401": content: {} @@ -15518,7 +17190,9 @@ paths: required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -15582,6 +17256,9 @@ paths: application/vnd.kubernetes.protobuf: schema: $ref: '#/components/schemas/v1.Node' + application/cbor: + schema: + $ref: '#/components/schemas/v1.Node' description: OK "201": content: @@ -15594,6 +17271,9 @@ paths: application/vnd.kubernetes.protobuf: schema: $ref: '#/components/schemas/v1.Node' + application/cbor: + schema: + $ref: '#/components/schemas/v1.Node' description: Created "401": content: {} @@ -15618,7 +17298,9 @@ paths: required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -15673,6 +17355,9 @@ paths: application/vnd.kubernetes.protobuf: schema: $ref: '#/components/schemas/v1.Node' + application/cbor: + schema: + $ref: '#/components/schemas/v1.Node' description: OK "201": content: @@ -15685,6 +17370,9 @@ paths: application/vnd.kubernetes.protobuf: schema: $ref: '#/components/schemas/v1.Node' + application/cbor: + schema: + $ref: '#/components/schemas/v1.Node' description: Created "401": content: {} @@ -15742,7 +17430,9 @@ paths: name: limit schema: type: integer - - description: If 'true', then the output is pretty printed. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -15805,12 +17495,18 @@ paths: application/vnd.kubernetes.protobuf: schema: $ref: '#/components/schemas/v1.PersistentVolumeClaimList' + application/cbor: + schema: + $ref: '#/components/schemas/v1.PersistentVolumeClaimList' application/json;stream=watch: schema: $ref: '#/components/schemas/v1.PersistentVolumeClaimList' application/vnd.kubernetes.protobuf;stream=watch: schema: $ref: '#/components/schemas/v1.PersistentVolumeClaimList' + application/cbor-seq: + schema: + $ref: '#/components/schemas/v1.PersistentVolumeClaimList' description: OK "401": content: {} @@ -15828,7 +17524,9 @@ paths: description: delete collection of PersistentVolume operationId: deleteCollectionPersistentVolume parameters: - - description: If 'true', then the output is pretty printed. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -15864,6 +17562,20 @@ paths: name: gracePeriodSeconds schema: type: integer + - description: 'if set to true, it will trigger an unsafe deletion of the resource + in case the normal deletion flow fails with a corrupt object error. A resource + is considered corrupt if it can not be retrieved from the underlying storage + successfully because of a) its data can not be transformed e.g. decryption + failure, or b) it fails to decode into an object. NOTE: unsafe deletion + ignores finalizer constraints, skips precondition checks, and removes the + object from the storage. WARNING: This may potentially break the cluster + if the workload associated with the resource being unsafe-deleted relies + on normal deletion flow. Use only if you REALLY know what you are doing. + The default value is false, and the user must opt in to enable it' + in: query + name: ignoreStoreReadErrorWithClusterBreakingPotential + schema: + type: boolean - description: A selector to restrict the list of returned objects by their labels. Defaults to everything. in: query @@ -15955,6 +17667,9 @@ paths: application/vnd.kubernetes.protobuf: schema: $ref: '#/components/schemas/v1.Status' + application/cbor: + schema: + $ref: '#/components/schemas/v1.Status' description: OK "401": content: {} @@ -15973,7 +17688,9 @@ paths: description: list or watch objects of kind PersistentVolume operationId: listPersistentVolume parameters: - - description: If 'true', then the output is pretty printed. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -16074,12 +17791,18 @@ paths: application/vnd.kubernetes.protobuf: schema: $ref: '#/components/schemas/v1.PersistentVolumeList' + application/cbor: + schema: + $ref: '#/components/schemas/v1.PersistentVolumeList' application/json;stream=watch: schema: $ref: '#/components/schemas/v1.PersistentVolumeList' application/vnd.kubernetes.protobuf;stream=watch: schema: $ref: '#/components/schemas/v1.PersistentVolumeList' + application/cbor-seq: + schema: + $ref: '#/components/schemas/v1.PersistentVolumeList' description: OK "401": content: {} @@ -16096,7 +17819,9 @@ paths: description: create a PersistentVolume operationId: createPersistentVolume parameters: - - description: If 'true', then the output is pretty printed. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -16151,6 +17876,9 @@ paths: application/vnd.kubernetes.protobuf: schema: $ref: '#/components/schemas/v1.PersistentVolume' + application/cbor: + schema: + $ref: '#/components/schemas/v1.PersistentVolume' description: OK "201": content: @@ -16163,6 +17891,9 @@ paths: application/vnd.kubernetes.protobuf: schema: $ref: '#/components/schemas/v1.PersistentVolume' + application/cbor: + schema: + $ref: '#/components/schemas/v1.PersistentVolume' description: Created "202": content: @@ -16175,6 +17906,9 @@ paths: application/vnd.kubernetes.protobuf: schema: $ref: '#/components/schemas/v1.PersistentVolume' + application/cbor: + schema: + $ref: '#/components/schemas/v1.PersistentVolume' description: Accepted "401": content: {} @@ -16200,7 +17934,9 @@ paths: required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -16222,6 +17958,20 @@ paths: name: gracePeriodSeconds schema: type: integer + - description: 'if set to true, it will trigger an unsafe deletion of the resource + in case the normal deletion flow fails with a corrupt object error. A resource + is considered corrupt if it can not be retrieved from the underlying storage + successfully because of a) its data can not be transformed e.g. decryption + failure, or b) it fails to decode into an object. NOTE: unsafe deletion + ignores finalizer constraints, skips precondition checks, and removes the + object from the storage. WARNING: This may potentially break the cluster + if the workload associated with the resource being unsafe-deleted relies + on normal deletion flow. Use only if you REALLY know what you are doing. + The default value is false, and the user must opt in to enable it' + in: query + name: ignoreStoreReadErrorWithClusterBreakingPotential + schema: + type: boolean - description: '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 @@ -16259,6 +18009,9 @@ paths: application/vnd.kubernetes.protobuf: schema: $ref: '#/components/schemas/v1.PersistentVolume' + application/cbor: + schema: + $ref: '#/components/schemas/v1.PersistentVolume' description: OK "202": content: @@ -16271,6 +18024,9 @@ paths: application/vnd.kubernetes.protobuf: schema: $ref: '#/components/schemas/v1.PersistentVolume' + application/cbor: + schema: + $ref: '#/components/schemas/v1.PersistentVolume' description: Accepted "401": content: {} @@ -16295,7 +18051,9 @@ paths: required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -16312,6 +18070,9 @@ paths: application/vnd.kubernetes.protobuf: schema: $ref: '#/components/schemas/v1.PersistentVolume' + application/cbor: + schema: + $ref: '#/components/schemas/v1.PersistentVolume' description: OK "401": content: {} @@ -16334,7 +18095,9 @@ paths: required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -16398,6 +18161,9 @@ paths: application/vnd.kubernetes.protobuf: schema: $ref: '#/components/schemas/v1.PersistentVolume' + application/cbor: + schema: + $ref: '#/components/schemas/v1.PersistentVolume' description: OK "201": content: @@ -16410,6 +18176,9 @@ paths: application/vnd.kubernetes.protobuf: schema: $ref: '#/components/schemas/v1.PersistentVolume' + application/cbor: + schema: + $ref: '#/components/schemas/v1.PersistentVolume' description: Created "401": content: {} @@ -16434,7 +18203,9 @@ paths: required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -16489,6 +18260,9 @@ paths: application/vnd.kubernetes.protobuf: schema: $ref: '#/components/schemas/v1.PersistentVolume' + application/cbor: + schema: + $ref: '#/components/schemas/v1.PersistentVolume' description: OK "201": content: @@ -16501,6 +18275,9 @@ paths: application/vnd.kubernetes.protobuf: schema: $ref: '#/components/schemas/v1.PersistentVolume' + application/cbor: + schema: + $ref: '#/components/schemas/v1.PersistentVolume' description: Created "401": content: {} @@ -16526,7 +18303,9 @@ paths: required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -16543,6 +18322,9 @@ paths: application/vnd.kubernetes.protobuf: schema: $ref: '#/components/schemas/v1.PersistentVolume' + application/cbor: + schema: + $ref: '#/components/schemas/v1.PersistentVolume' description: OK "401": content: {} @@ -16565,7 +18347,9 @@ paths: required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -16629,6 +18413,9 @@ paths: application/vnd.kubernetes.protobuf: schema: $ref: '#/components/schemas/v1.PersistentVolume' + application/cbor: + schema: + $ref: '#/components/schemas/v1.PersistentVolume' description: OK "201": content: @@ -16641,6 +18428,9 @@ paths: application/vnd.kubernetes.protobuf: schema: $ref: '#/components/schemas/v1.PersistentVolume' + application/cbor: + schema: + $ref: '#/components/schemas/v1.PersistentVolume' description: Created "401": content: {} @@ -16665,7 +18455,9 @@ paths: required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -16720,6 +18512,9 @@ paths: application/vnd.kubernetes.protobuf: schema: $ref: '#/components/schemas/v1.PersistentVolume' + application/cbor: + schema: + $ref: '#/components/schemas/v1.PersistentVolume' description: OK "201": content: @@ -16732,6 +18527,9 @@ paths: application/vnd.kubernetes.protobuf: schema: $ref: '#/components/schemas/v1.PersistentVolume' + application/cbor: + schema: + $ref: '#/components/schemas/v1.PersistentVolume' description: Created "401": content: {} @@ -16789,7 +18587,9 @@ paths: name: limit schema: type: integer - - description: If 'true', then the output is pretty printed. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -16852,12 +18652,18 @@ paths: application/vnd.kubernetes.protobuf: schema: $ref: '#/components/schemas/v1.PodList' + application/cbor: + schema: + $ref: '#/components/schemas/v1.PodList' application/json;stream=watch: schema: $ref: '#/components/schemas/v1.PodList' application/vnd.kubernetes.protobuf;stream=watch: schema: $ref: '#/components/schemas/v1.PodList' + application/cbor-seq: + schema: + $ref: '#/components/schemas/v1.PodList' description: OK "401": content: {} @@ -16913,7 +18719,9 @@ paths: name: limit schema: type: integer - - description: If 'true', then the output is pretty printed. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -16976,12 +18784,18 @@ paths: application/vnd.kubernetes.protobuf: schema: $ref: '#/components/schemas/v1.PodTemplateList' + application/cbor: + schema: + $ref: '#/components/schemas/v1.PodTemplateList' application/json;stream=watch: schema: $ref: '#/components/schemas/v1.PodTemplateList' application/vnd.kubernetes.protobuf;stream=watch: schema: $ref: '#/components/schemas/v1.PodTemplateList' + application/cbor-seq: + schema: + $ref: '#/components/schemas/v1.PodTemplateList' description: OK "401": content: {} @@ -17037,7 +18851,9 @@ paths: name: limit schema: type: integer - - description: If 'true', then the output is pretty printed. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -17100,12 +18916,18 @@ paths: application/vnd.kubernetes.protobuf: schema: $ref: '#/components/schemas/v1.ReplicationControllerList' + application/cbor: + schema: + $ref: '#/components/schemas/v1.ReplicationControllerList' application/json;stream=watch: schema: $ref: '#/components/schemas/v1.ReplicationControllerList' application/vnd.kubernetes.protobuf;stream=watch: schema: $ref: '#/components/schemas/v1.ReplicationControllerList' + application/cbor-seq: + schema: + $ref: '#/components/schemas/v1.ReplicationControllerList' description: OK "401": content: {} @@ -17161,7 +18983,9 @@ paths: name: limit schema: type: integer - - description: If 'true', then the output is pretty printed. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -17224,12 +19048,18 @@ paths: application/vnd.kubernetes.protobuf: schema: $ref: '#/components/schemas/v1.ResourceQuotaList' + application/cbor: + schema: + $ref: '#/components/schemas/v1.ResourceQuotaList' application/json;stream=watch: schema: $ref: '#/components/schemas/v1.ResourceQuotaList' application/vnd.kubernetes.protobuf;stream=watch: schema: $ref: '#/components/schemas/v1.ResourceQuotaList' + application/cbor-seq: + schema: + $ref: '#/components/schemas/v1.ResourceQuotaList' description: OK "401": content: {} @@ -17285,7 +19115,9 @@ paths: name: limit schema: type: integer - - description: If 'true', then the output is pretty printed. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -17348,12 +19180,18 @@ paths: application/vnd.kubernetes.protobuf: schema: $ref: '#/components/schemas/v1.SecretList' + application/cbor: + schema: + $ref: '#/components/schemas/v1.SecretList' application/json;stream=watch: schema: $ref: '#/components/schemas/v1.SecretList' application/vnd.kubernetes.protobuf;stream=watch: schema: $ref: '#/components/schemas/v1.SecretList' + application/cbor-seq: + schema: + $ref: '#/components/schemas/v1.SecretList' description: OK "401": content: {} @@ -17409,7 +19247,9 @@ paths: name: limit schema: type: integer - - description: If 'true', then the output is pretty printed. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -17472,12 +19312,18 @@ paths: application/vnd.kubernetes.protobuf: schema: $ref: '#/components/schemas/v1.ServiceAccountList' + application/cbor: + schema: + $ref: '#/components/schemas/v1.ServiceAccountList' application/json;stream=watch: schema: $ref: '#/components/schemas/v1.ServiceAccountList' application/vnd.kubernetes.protobuf;stream=watch: schema: $ref: '#/components/schemas/v1.ServiceAccountList' + application/cbor-seq: + schema: + $ref: '#/components/schemas/v1.ServiceAccountList' description: OK "401": content: {} @@ -17533,7 +19379,9 @@ paths: name: limit schema: type: integer - - description: If 'true', then the output is pretty printed. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -17596,12 +19444,18 @@ paths: application/vnd.kubernetes.protobuf: schema: $ref: '#/components/schemas/v1.ServiceList' + application/cbor: + schema: + $ref: '#/components/schemas/v1.ServiceList' application/json;stream=watch: schema: $ref: '#/components/schemas/v1.ServiceList' application/vnd.kubernetes.protobuf;stream=watch: schema: $ref: '#/components/schemas/v1.ServiceList' + application/cbor-seq: + schema: + $ref: '#/components/schemas/v1.ServiceList' description: OK "401": content: {} @@ -17718,6 +19572,9 @@ paths: application/vnd.kubernetes.protobuf: schema: $ref: '#/components/schemas/v1.APIResourceList' + application/cbor: + schema: + $ref: '#/components/schemas/v1.APIResourceList' description: OK "401": content: {} @@ -17730,7 +19587,9 @@ paths: description: delete collection of MutatingWebhookConfiguration operationId: deleteCollectionMutatingWebhookConfiguration parameters: - - description: If 'true', then the output is pretty printed. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -17766,6 +19625,20 @@ paths: name: gracePeriodSeconds schema: type: integer + - description: 'if set to true, it will trigger an unsafe deletion of the resource + in case the normal deletion flow fails with a corrupt object error. A resource + is considered corrupt if it can not be retrieved from the underlying storage + successfully because of a) its data can not be transformed e.g. decryption + failure, or b) it fails to decode into an object. NOTE: unsafe deletion + ignores finalizer constraints, skips precondition checks, and removes the + object from the storage. WARNING: This may potentially break the cluster + if the workload associated with the resource being unsafe-deleted relies + on normal deletion flow. Use only if you REALLY know what you are doing. + The default value is false, and the user must opt in to enable it' + in: query + name: ignoreStoreReadErrorWithClusterBreakingPotential + schema: + type: boolean - description: A selector to restrict the list of returned objects by their labels. Defaults to everything. in: query @@ -17857,6 +19730,9 @@ paths: application/vnd.kubernetes.protobuf: schema: $ref: '#/components/schemas/v1.Status' + application/cbor: + schema: + $ref: '#/components/schemas/v1.Status' description: OK "401": content: {} @@ -17875,7 +19751,9 @@ paths: description: list or watch objects of kind MutatingWebhookConfiguration operationId: listMutatingWebhookConfiguration parameters: - - description: If 'true', then the output is pretty printed. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -17976,12 +19854,18 @@ paths: application/vnd.kubernetes.protobuf: schema: $ref: '#/components/schemas/v1.MutatingWebhookConfigurationList' + application/cbor: + schema: + $ref: '#/components/schemas/v1.MutatingWebhookConfigurationList' application/json;stream=watch: schema: $ref: '#/components/schemas/v1.MutatingWebhookConfigurationList' application/vnd.kubernetes.protobuf;stream=watch: schema: $ref: '#/components/schemas/v1.MutatingWebhookConfigurationList' + application/cbor-seq: + schema: + $ref: '#/components/schemas/v1.MutatingWebhookConfigurationList' description: OK "401": content: {} @@ -17998,7 +19882,9 @@ paths: description: create a MutatingWebhookConfiguration operationId: createMutatingWebhookConfiguration parameters: - - description: If 'true', then the output is pretty printed. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -18053,6 +19939,9 @@ paths: application/vnd.kubernetes.protobuf: schema: $ref: '#/components/schemas/v1.MutatingWebhookConfiguration' + application/cbor: + schema: + $ref: '#/components/schemas/v1.MutatingWebhookConfiguration' description: OK "201": content: @@ -18065,6 +19954,9 @@ paths: application/vnd.kubernetes.protobuf: schema: $ref: '#/components/schemas/v1.MutatingWebhookConfiguration' + application/cbor: + schema: + $ref: '#/components/schemas/v1.MutatingWebhookConfiguration' description: Created "202": content: @@ -18077,6 +19969,9 @@ paths: application/vnd.kubernetes.protobuf: schema: $ref: '#/components/schemas/v1.MutatingWebhookConfiguration' + application/cbor: + schema: + $ref: '#/components/schemas/v1.MutatingWebhookConfiguration' description: Accepted "401": content: {} @@ -18102,7 +19997,9 @@ paths: required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -18124,6 +20021,20 @@ paths: name: gracePeriodSeconds schema: type: integer + - description: 'if set to true, it will trigger an unsafe deletion of the resource + in case the normal deletion flow fails with a corrupt object error. A resource + is considered corrupt if it can not be retrieved from the underlying storage + successfully because of a) its data can not be transformed e.g. decryption + failure, or b) it fails to decode into an object. NOTE: unsafe deletion + ignores finalizer constraints, skips precondition checks, and removes the + object from the storage. WARNING: This may potentially break the cluster + if the workload associated with the resource being unsafe-deleted relies + on normal deletion flow. Use only if you REALLY know what you are doing. + The default value is false, and the user must opt in to enable it' + in: query + name: ignoreStoreReadErrorWithClusterBreakingPotential + schema: + type: boolean - description: '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 @@ -18161,6 +20072,9 @@ paths: application/vnd.kubernetes.protobuf: schema: $ref: '#/components/schemas/v1.Status' + application/cbor: + schema: + $ref: '#/components/schemas/v1.Status' description: OK "202": content: @@ -18173,6 +20087,9 @@ paths: application/vnd.kubernetes.protobuf: schema: $ref: '#/components/schemas/v1.Status' + application/cbor: + schema: + $ref: '#/components/schemas/v1.Status' description: Accepted "401": content: {} @@ -18197,7 +20114,9 @@ paths: required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -18214,6 +20133,9 @@ paths: application/vnd.kubernetes.protobuf: schema: $ref: '#/components/schemas/v1.MutatingWebhookConfiguration' + application/cbor: + schema: + $ref: '#/components/schemas/v1.MutatingWebhookConfiguration' description: OK "401": content: {} @@ -18236,7 +20158,9 @@ paths: required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -18300,6 +20224,9 @@ paths: application/vnd.kubernetes.protobuf: schema: $ref: '#/components/schemas/v1.MutatingWebhookConfiguration' + application/cbor: + schema: + $ref: '#/components/schemas/v1.MutatingWebhookConfiguration' description: OK "201": content: @@ -18312,6 +20239,9 @@ paths: application/vnd.kubernetes.protobuf: schema: $ref: '#/components/schemas/v1.MutatingWebhookConfiguration' + application/cbor: + schema: + $ref: '#/components/schemas/v1.MutatingWebhookConfiguration' description: Created "401": content: {} @@ -18336,7 +20266,9 @@ paths: required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -18391,6 +20323,9 @@ paths: application/vnd.kubernetes.protobuf: schema: $ref: '#/components/schemas/v1.MutatingWebhookConfiguration' + application/cbor: + schema: + $ref: '#/components/schemas/v1.MutatingWebhookConfiguration' description: OK "201": content: @@ -18403,6 +20338,9 @@ paths: application/vnd.kubernetes.protobuf: schema: $ref: '#/components/schemas/v1.MutatingWebhookConfiguration' + application/cbor: + schema: + $ref: '#/components/schemas/v1.MutatingWebhookConfiguration' description: Created "401": content: {} @@ -18417,12 +20355,14 @@ paths: x-codegen-request-body-name: body x-contentType: application/json x-accepts: application/json - /apis/admissionregistration.k8s.io/v1/validatingwebhookconfigurations: + /apis/admissionregistration.k8s.io/v1/validatingadmissionpolicies: delete: - description: delete collection of ValidatingWebhookConfiguration - operationId: deleteCollectionValidatingWebhookConfiguration + description: delete collection of ValidatingAdmissionPolicy + operationId: deleteCollectionValidatingAdmissionPolicy parameters: - - description: If 'true', then the output is pretty printed. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -18458,6 +20398,20 @@ paths: name: gracePeriodSeconds schema: type: integer + - description: 'if set to true, it will trigger an unsafe deletion of the resource + in case the normal deletion flow fails with a corrupt object error. A resource + is considered corrupt if it can not be retrieved from the underlying storage + successfully because of a) its data can not be transformed e.g. decryption + failure, or b) it fails to decode into an object. NOTE: unsafe deletion + ignores finalizer constraints, skips precondition checks, and removes the + object from the storage. WARNING: This may potentially break the cluster + if the workload associated with the resource being unsafe-deleted relies + on normal deletion flow. Use only if you REALLY know what you are doing. + The default value is false, and the user must opt in to enable it' + in: query + name: ignoreStoreReadErrorWithClusterBreakingPotential + schema: + type: boolean - description: A selector to restrict the list of returned objects by their labels. Defaults to everything. in: query @@ -18549,6 +20503,9 @@ paths: application/vnd.kubernetes.protobuf: schema: $ref: '#/components/schemas/v1.Status' + application/cbor: + schema: + $ref: '#/components/schemas/v1.Status' description: OK "401": content: {} @@ -18558,16 +20515,18 @@ paths: x-kubernetes-action: deletecollection x-kubernetes-group-version-kind: group: admissionregistration.k8s.io - kind: ValidatingWebhookConfiguration + kind: ValidatingAdmissionPolicy version: v1 x-codegen-request-body-name: body x-contentType: application/json x-accepts: application/json get: - description: list or watch objects of kind ValidatingWebhookConfiguration - operationId: listValidatingWebhookConfiguration + description: list or watch objects of kind ValidatingAdmissionPolicy + operationId: listValidatingAdmissionPolicy parameters: - - description: If 'true', then the output is pretty printed. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -18661,19 +20620,25 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.ValidatingWebhookConfigurationList' + $ref: '#/components/schemas/v1.ValidatingAdmissionPolicyList' application/yaml: schema: - $ref: '#/components/schemas/v1.ValidatingWebhookConfigurationList' + $ref: '#/components/schemas/v1.ValidatingAdmissionPolicyList' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.ValidatingWebhookConfigurationList' + $ref: '#/components/schemas/v1.ValidatingAdmissionPolicyList' + application/cbor: + schema: + $ref: '#/components/schemas/v1.ValidatingAdmissionPolicyList' application/json;stream=watch: schema: - $ref: '#/components/schemas/v1.ValidatingWebhookConfigurationList' + $ref: '#/components/schemas/v1.ValidatingAdmissionPolicyList' application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: '#/components/schemas/v1.ValidatingWebhookConfigurationList' + $ref: '#/components/schemas/v1.ValidatingAdmissionPolicyList' + application/cbor-seq: + schema: + $ref: '#/components/schemas/v1.ValidatingAdmissionPolicyList' description: OK "401": content: {} @@ -18683,14 +20648,16 @@ paths: x-kubernetes-action: list x-kubernetes-group-version-kind: group: admissionregistration.k8s.io - kind: ValidatingWebhookConfiguration + kind: ValidatingAdmissionPolicy version: v1 x-accepts: application/json post: - description: create a ValidatingWebhookConfiguration - operationId: createValidatingWebhookConfiguration + description: create a ValidatingAdmissionPolicy + operationId: createValidatingAdmissionPolicy parameters: - - description: If 'true', then the output is pretty printed. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -18731,44 +20698,53 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.ValidatingWebhookConfiguration' + $ref: '#/components/schemas/v1.ValidatingAdmissionPolicy' required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.ValidatingWebhookConfiguration' + $ref: '#/components/schemas/v1.ValidatingAdmissionPolicy' application/yaml: schema: - $ref: '#/components/schemas/v1.ValidatingWebhookConfiguration' + $ref: '#/components/schemas/v1.ValidatingAdmissionPolicy' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.ValidatingWebhookConfiguration' + $ref: '#/components/schemas/v1.ValidatingAdmissionPolicy' + application/cbor: + schema: + $ref: '#/components/schemas/v1.ValidatingAdmissionPolicy' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.ValidatingWebhookConfiguration' + $ref: '#/components/schemas/v1.ValidatingAdmissionPolicy' application/yaml: schema: - $ref: '#/components/schemas/v1.ValidatingWebhookConfiguration' + $ref: '#/components/schemas/v1.ValidatingAdmissionPolicy' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.ValidatingWebhookConfiguration' + $ref: '#/components/schemas/v1.ValidatingAdmissionPolicy' + application/cbor: + schema: + $ref: '#/components/schemas/v1.ValidatingAdmissionPolicy' description: Created "202": content: application/json: schema: - $ref: '#/components/schemas/v1.ValidatingWebhookConfiguration' + $ref: '#/components/schemas/v1.ValidatingAdmissionPolicy' application/yaml: schema: - $ref: '#/components/schemas/v1.ValidatingWebhookConfiguration' + $ref: '#/components/schemas/v1.ValidatingAdmissionPolicy' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.ValidatingWebhookConfiguration' + $ref: '#/components/schemas/v1.ValidatingAdmissionPolicy' + application/cbor: + schema: + $ref: '#/components/schemas/v1.ValidatingAdmissionPolicy' description: Accepted "401": content: {} @@ -18778,23 +20754,25 @@ paths: x-kubernetes-action: post x-kubernetes-group-version-kind: group: admissionregistration.k8s.io - kind: ValidatingWebhookConfiguration + kind: ValidatingAdmissionPolicy version: v1 x-codegen-request-body-name: body x-contentType: application/json x-accepts: application/json - /apis/admissionregistration.k8s.io/v1/validatingwebhookconfigurations/{name}: + /apis/admissionregistration.k8s.io/v1/validatingadmissionpolicies/{name}: delete: - description: delete a ValidatingWebhookConfiguration - operationId: deleteValidatingWebhookConfiguration + description: delete a ValidatingAdmissionPolicy + operationId: deleteValidatingAdmissionPolicy parameters: - - description: name of the ValidatingWebhookConfiguration + - description: name of the ValidatingAdmissionPolicy in: path name: name required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -18816,6 +20794,20 @@ paths: name: gracePeriodSeconds schema: type: integer + - description: 'if set to true, it will trigger an unsafe deletion of the resource + in case the normal deletion flow fails with a corrupt object error. A resource + is considered corrupt if it can not be retrieved from the underlying storage + successfully because of a) its data can not be transformed e.g. decryption + failure, or b) it fails to decode into an object. NOTE: unsafe deletion + ignores finalizer constraints, skips precondition checks, and removes the + object from the storage. WARNING: This may potentially break the cluster + if the workload associated with the resource being unsafe-deleted relies + on normal deletion flow. Use only if you REALLY know what you are doing. + The default value is false, and the user must opt in to enable it' + in: query + name: ignoreStoreReadErrorWithClusterBreakingPotential + schema: + type: boolean - description: '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 @@ -18853,6 +20845,9 @@ paths: application/vnd.kubernetes.protobuf: schema: $ref: '#/components/schemas/v1.Status' + application/cbor: + schema: + $ref: '#/components/schemas/v1.Status' description: OK "202": content: @@ -18865,6 +20860,9 @@ paths: application/vnd.kubernetes.protobuf: schema: $ref: '#/components/schemas/v1.Status' + application/cbor: + schema: + $ref: '#/components/schemas/v1.Status' description: Accepted "401": content: {} @@ -18874,22 +20872,24 @@ paths: x-kubernetes-action: delete x-kubernetes-group-version-kind: group: admissionregistration.k8s.io - kind: ValidatingWebhookConfiguration + kind: ValidatingAdmissionPolicy version: v1 x-codegen-request-body-name: body x-contentType: application/json x-accepts: application/json get: - description: read the specified ValidatingWebhookConfiguration - operationId: readValidatingWebhookConfiguration + description: read the specified ValidatingAdmissionPolicy + operationId: readValidatingAdmissionPolicy parameters: - - description: name of the ValidatingWebhookConfiguration + - description: name of the ValidatingAdmissionPolicy in: path name: name required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -18899,13 +20899,16 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.ValidatingWebhookConfiguration' + $ref: '#/components/schemas/v1.ValidatingAdmissionPolicy' application/yaml: schema: - $ref: '#/components/schemas/v1.ValidatingWebhookConfiguration' + $ref: '#/components/schemas/v1.ValidatingAdmissionPolicy' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.ValidatingWebhookConfiguration' + $ref: '#/components/schemas/v1.ValidatingAdmissionPolicy' + application/cbor: + schema: + $ref: '#/components/schemas/v1.ValidatingAdmissionPolicy' description: OK "401": content: {} @@ -18915,20 +20918,22 @@ paths: x-kubernetes-action: get x-kubernetes-group-version-kind: group: admissionregistration.k8s.io - kind: ValidatingWebhookConfiguration + kind: ValidatingAdmissionPolicy version: v1 x-accepts: application/json patch: - description: partially update the specified ValidatingWebhookConfiguration - operationId: patchValidatingWebhookConfiguration + description: partially update the specified ValidatingAdmissionPolicy + operationId: patchValidatingAdmissionPolicy parameters: - - description: name of the ValidatingWebhookConfiguration + - description: name of the ValidatingAdmissionPolicy in: path name: name required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -18985,25 +20990,31 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.ValidatingWebhookConfiguration' + $ref: '#/components/schemas/v1.ValidatingAdmissionPolicy' application/yaml: schema: - $ref: '#/components/schemas/v1.ValidatingWebhookConfiguration' + $ref: '#/components/schemas/v1.ValidatingAdmissionPolicy' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.ValidatingWebhookConfiguration' + $ref: '#/components/schemas/v1.ValidatingAdmissionPolicy' + application/cbor: + schema: + $ref: '#/components/schemas/v1.ValidatingAdmissionPolicy' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.ValidatingWebhookConfiguration' + $ref: '#/components/schemas/v1.ValidatingAdmissionPolicy' application/yaml: schema: - $ref: '#/components/schemas/v1.ValidatingWebhookConfiguration' + $ref: '#/components/schemas/v1.ValidatingAdmissionPolicy' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.ValidatingWebhookConfiguration' + $ref: '#/components/schemas/v1.ValidatingAdmissionPolicy' + application/cbor: + schema: + $ref: '#/components/schemas/v1.ValidatingAdmissionPolicy' description: Created "401": content: {} @@ -19013,22 +21024,24 @@ paths: x-kubernetes-action: patch x-kubernetes-group-version-kind: group: admissionregistration.k8s.io - kind: ValidatingWebhookConfiguration + kind: ValidatingAdmissionPolicy version: v1 x-codegen-request-body-name: body x-contentType: application/json x-accepts: application/json put: - description: replace the specified ValidatingWebhookConfiguration - operationId: replaceValidatingWebhookConfiguration + description: replace the specified ValidatingAdmissionPolicy + operationId: replaceValidatingAdmissionPolicy parameters: - - description: name of the ValidatingWebhookConfiguration + - description: name of the ValidatingAdmissionPolicy in: path name: name required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -19069,32 +21082,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.ValidatingWebhookConfiguration' + $ref: '#/components/schemas/v1.ValidatingAdmissionPolicy' required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.ValidatingWebhookConfiguration' + $ref: '#/components/schemas/v1.ValidatingAdmissionPolicy' application/yaml: schema: - $ref: '#/components/schemas/v1.ValidatingWebhookConfiguration' + $ref: '#/components/schemas/v1.ValidatingAdmissionPolicy' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.ValidatingWebhookConfiguration' + $ref: '#/components/schemas/v1.ValidatingAdmissionPolicy' + application/cbor: + schema: + $ref: '#/components/schemas/v1.ValidatingAdmissionPolicy' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.ValidatingWebhookConfiguration' + $ref: '#/components/schemas/v1.ValidatingAdmissionPolicy' application/yaml: schema: - $ref: '#/components/schemas/v1.ValidatingWebhookConfiguration' + $ref: '#/components/schemas/v1.ValidatingAdmissionPolicy' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.ValidatingWebhookConfiguration' + $ref: '#/components/schemas/v1.ValidatingAdmissionPolicy' + application/cbor: + schema: + $ref: '#/components/schemas/v1.ValidatingAdmissionPolicy' description: Created "401": content: {} @@ -19104,44 +21123,271 @@ paths: x-kubernetes-action: put x-kubernetes-group-version-kind: group: admissionregistration.k8s.io - kind: ValidatingWebhookConfiguration + kind: ValidatingAdmissionPolicy version: v1 x-codegen-request-body-name: body x-contentType: application/json x-accepts: application/json - /apis/admissionregistration.k8s.io/v1/watch/mutatingwebhookconfigurations: {} - /apis/admissionregistration.k8s.io/v1/watch/mutatingwebhookconfigurations/{name}: {} - /apis/admissionregistration.k8s.io/v1/watch/validatingwebhookconfigurations: {} - /apis/admissionregistration.k8s.io/v1/watch/validatingwebhookconfigurations/{name}: {} - /apis/admissionregistration.k8s.io/v1alpha1/: + /apis/admissionregistration.k8s.io/v1/validatingadmissionpolicies/{name}/status: get: - description: get available resources - operationId: getAPIResources + description: read status of the specified ValidatingAdmissionPolicy + operationId: readValidatingAdmissionPolicyStatus + parameters: + - description: name of the ValidatingAdmissionPolicy + in: path + name: name + required: true + schema: + type: string + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). + in: query + name: pretty + schema: + type: string responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.APIResourceList' + $ref: '#/components/schemas/v1.ValidatingAdmissionPolicy' application/yaml: schema: - $ref: '#/components/schemas/v1.APIResourceList' + $ref: '#/components/schemas/v1.ValidatingAdmissionPolicy' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.APIResourceList' + $ref: '#/components/schemas/v1.ValidatingAdmissionPolicy' + application/cbor: + schema: + $ref: '#/components/schemas/v1.ValidatingAdmissionPolicy' description: OK "401": content: {} description: Unauthorized tags: - - admissionregistration_v1alpha1 + - admissionregistration_v1 + x-kubernetes-action: get + x-kubernetes-group-version-kind: + group: admissionregistration.k8s.io + kind: ValidatingAdmissionPolicy + version: v1 + x-accepts: application/json + patch: + description: partially update status of the specified ValidatingAdmissionPolicy + operationId: patchValidatingAdmissionPolicyStatus + parameters: + - description: name of the ValidatingAdmissionPolicy + in: path + name: name + required: true + schema: + type: string + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). + in: query + name: pretty + schema: + type: string + - description: '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' + in: query + name: dryRun + schema: + type: string + - description: fieldManager is a name associated with the actor or entity that + is making these changes. The value must be less than or 128 characters long, + and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + This field is required for apply requests (application/apply-patch) but + optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). + in: query + name: fieldManager + schema: + type: string + - description: 'fieldValidation instructs the server on how to handle objects + in the request (POST/PUT/PATCH) containing unknown or duplicate fields. + Valid values are: - Ignore: This will ignore any unknown fields that are + silently dropped from the object, and will ignore all but the last duplicate + field that the decoder encounters. This is the default behavior prior to + v1.23. - Warn: This will send a warning via the standard warning response + header for each unknown field that is dropped from the object, and for each + duplicate field that is encountered. The request will still succeed if there + are no other errors, and will only persist the last of any duplicate fields. + This is the default in v1.23+ - Strict: This will fail the request with + a BadRequest error if any unknown fields would be dropped from the object, + or if any duplicate fields are present. The error returned from the server + will contain all unknown and duplicate fields encountered.' + in: query + name: fieldValidation + schema: + type: string + - description: Force is going to "force" Apply requests. It means user will + re-acquire conflicting fields owned by other people. Force flag must be + unset for non-apply patch requests. + in: query + name: force + schema: + type: boolean + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/v1.Patch' + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.ValidatingAdmissionPolicy' + application/yaml: + schema: + $ref: '#/components/schemas/v1.ValidatingAdmissionPolicy' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.ValidatingAdmissionPolicy' + application/cbor: + schema: + $ref: '#/components/schemas/v1.ValidatingAdmissionPolicy' + description: OK + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.ValidatingAdmissionPolicy' + application/yaml: + schema: + $ref: '#/components/schemas/v1.ValidatingAdmissionPolicy' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.ValidatingAdmissionPolicy' + application/cbor: + schema: + $ref: '#/components/schemas/v1.ValidatingAdmissionPolicy' + description: Created + "401": + content: {} + description: Unauthorized + tags: + - admissionregistration_v1 + x-kubernetes-action: patch + x-kubernetes-group-version-kind: + group: admissionregistration.k8s.io + kind: ValidatingAdmissionPolicy + version: v1 + x-codegen-request-body-name: body + x-contentType: application/json + x-accepts: application/json + put: + description: replace status of the specified ValidatingAdmissionPolicy + operationId: replaceValidatingAdmissionPolicyStatus + parameters: + - description: name of the ValidatingAdmissionPolicy + in: path + name: name + required: true + schema: + type: string + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). + in: query + name: pretty + schema: + type: string + - description: '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' + in: query + name: dryRun + schema: + type: string + - description: fieldManager is a name associated with the actor or entity that + is making these changes. The value must be less than or 128 characters long, + and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + in: query + name: fieldManager + schema: + type: string + - description: 'fieldValidation instructs the server on how to handle objects + in the request (POST/PUT/PATCH) containing unknown or duplicate fields. + Valid values are: - Ignore: This will ignore any unknown fields that are + silently dropped from the object, and will ignore all but the last duplicate + field that the decoder encounters. This is the default behavior prior to + v1.23. - Warn: This will send a warning via the standard warning response + header for each unknown field that is dropped from the object, and for each + duplicate field that is encountered. The request will still succeed if there + are no other errors, and will only persist the last of any duplicate fields. + This is the default in v1.23+ - Strict: This will fail the request with + a BadRequest error if any unknown fields would be dropped from the object, + or if any duplicate fields are present. The error returned from the server + will contain all unknown and duplicate fields encountered.' + in: query + name: fieldValidation + schema: + type: string + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/v1.ValidatingAdmissionPolicy' + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.ValidatingAdmissionPolicy' + application/yaml: + schema: + $ref: '#/components/schemas/v1.ValidatingAdmissionPolicy' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.ValidatingAdmissionPolicy' + application/cbor: + schema: + $ref: '#/components/schemas/v1.ValidatingAdmissionPolicy' + description: OK + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.ValidatingAdmissionPolicy' + application/yaml: + schema: + $ref: '#/components/schemas/v1.ValidatingAdmissionPolicy' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.ValidatingAdmissionPolicy' + application/cbor: + schema: + $ref: '#/components/schemas/v1.ValidatingAdmissionPolicy' + description: Created + "401": + content: {} + description: Unauthorized + tags: + - admissionregistration_v1 + x-kubernetes-action: put + x-kubernetes-group-version-kind: + group: admissionregistration.k8s.io + kind: ValidatingAdmissionPolicy + version: v1 + x-codegen-request-body-name: body + x-contentType: application/json x-accepts: application/json - /apis/admissionregistration.k8s.io/v1alpha1/validatingadmissionpolicies: + /apis/admissionregistration.k8s.io/v1/validatingadmissionpolicybindings: delete: - description: delete collection of ValidatingAdmissionPolicy - operationId: deleteCollectionValidatingAdmissionPolicy + description: delete collection of ValidatingAdmissionPolicyBinding + operationId: deleteCollectionValidatingAdmissionPolicyBinding parameters: - - description: If 'true', then the output is pretty printed. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -19177,6 +21423,20 @@ paths: name: gracePeriodSeconds schema: type: integer + - description: 'if set to true, it will trigger an unsafe deletion of the resource + in case the normal deletion flow fails with a corrupt object error. A resource + is considered corrupt if it can not be retrieved from the underlying storage + successfully because of a) its data can not be transformed e.g. decryption + failure, or b) it fails to decode into an object. NOTE: unsafe deletion + ignores finalizer constraints, skips precondition checks, and removes the + object from the storage. WARNING: This may potentially break the cluster + if the workload associated with the resource being unsafe-deleted relies + on normal deletion flow. Use only if you REALLY know what you are doing. + The default value is false, and the user must opt in to enable it' + in: query + name: ignoreStoreReadErrorWithClusterBreakingPotential + schema: + type: boolean - description: A selector to restrict the list of returned objects by their labels. Defaults to everything. in: query @@ -19268,25 +21528,30 @@ paths: application/vnd.kubernetes.protobuf: schema: $ref: '#/components/schemas/v1.Status' + application/cbor: + schema: + $ref: '#/components/schemas/v1.Status' description: OK "401": content: {} description: Unauthorized tags: - - admissionregistration_v1alpha1 + - admissionregistration_v1 x-kubernetes-action: deletecollection x-kubernetes-group-version-kind: group: admissionregistration.k8s.io - kind: ValidatingAdmissionPolicy - version: v1alpha1 + kind: ValidatingAdmissionPolicyBinding + version: v1 x-codegen-request-body-name: body x-contentType: application/json x-accepts: application/json get: - description: list or watch objects of kind ValidatingAdmissionPolicy - operationId: listValidatingAdmissionPolicy + description: list or watch objects of kind ValidatingAdmissionPolicyBinding + operationId: listValidatingAdmissionPolicyBinding parameters: - - description: If 'true', then the output is pretty printed. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -19380,36 +21645,44 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1alpha1.ValidatingAdmissionPolicyList' + $ref: '#/components/schemas/v1.ValidatingAdmissionPolicyBindingList' application/yaml: schema: - $ref: '#/components/schemas/v1alpha1.ValidatingAdmissionPolicyList' + $ref: '#/components/schemas/v1.ValidatingAdmissionPolicyBindingList' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha1.ValidatingAdmissionPolicyList' + $ref: '#/components/schemas/v1.ValidatingAdmissionPolicyBindingList' + application/cbor: + schema: + $ref: '#/components/schemas/v1.ValidatingAdmissionPolicyBindingList' application/json;stream=watch: schema: - $ref: '#/components/schemas/v1alpha1.ValidatingAdmissionPolicyList' + $ref: '#/components/schemas/v1.ValidatingAdmissionPolicyBindingList' application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: '#/components/schemas/v1alpha1.ValidatingAdmissionPolicyList' + $ref: '#/components/schemas/v1.ValidatingAdmissionPolicyBindingList' + application/cbor-seq: + schema: + $ref: '#/components/schemas/v1.ValidatingAdmissionPolicyBindingList' description: OK "401": content: {} description: Unauthorized tags: - - admissionregistration_v1alpha1 + - admissionregistration_v1 x-kubernetes-action: list x-kubernetes-group-version-kind: group: admissionregistration.k8s.io - kind: ValidatingAdmissionPolicy - version: v1alpha1 + kind: ValidatingAdmissionPolicyBinding + version: v1 x-accepts: application/json post: - description: create a ValidatingAdmissionPolicy - operationId: createValidatingAdmissionPolicy + description: create a ValidatingAdmissionPolicyBinding + operationId: createValidatingAdmissionPolicyBinding parameters: - - description: If 'true', then the output is pretty printed. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -19450,70 +21723,81 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1alpha1.ValidatingAdmissionPolicy' + $ref: '#/components/schemas/v1.ValidatingAdmissionPolicyBinding' required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1alpha1.ValidatingAdmissionPolicy' + $ref: '#/components/schemas/v1.ValidatingAdmissionPolicyBinding' application/yaml: schema: - $ref: '#/components/schemas/v1alpha1.ValidatingAdmissionPolicy' + $ref: '#/components/schemas/v1.ValidatingAdmissionPolicyBinding' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha1.ValidatingAdmissionPolicy' + $ref: '#/components/schemas/v1.ValidatingAdmissionPolicyBinding' + application/cbor: + schema: + $ref: '#/components/schemas/v1.ValidatingAdmissionPolicyBinding' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1alpha1.ValidatingAdmissionPolicy' + $ref: '#/components/schemas/v1.ValidatingAdmissionPolicyBinding' application/yaml: schema: - $ref: '#/components/schemas/v1alpha1.ValidatingAdmissionPolicy' + $ref: '#/components/schemas/v1.ValidatingAdmissionPolicyBinding' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha1.ValidatingAdmissionPolicy' + $ref: '#/components/schemas/v1.ValidatingAdmissionPolicyBinding' + application/cbor: + schema: + $ref: '#/components/schemas/v1.ValidatingAdmissionPolicyBinding' description: Created "202": content: application/json: schema: - $ref: '#/components/schemas/v1alpha1.ValidatingAdmissionPolicy' + $ref: '#/components/schemas/v1.ValidatingAdmissionPolicyBinding' application/yaml: schema: - $ref: '#/components/schemas/v1alpha1.ValidatingAdmissionPolicy' + $ref: '#/components/schemas/v1.ValidatingAdmissionPolicyBinding' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha1.ValidatingAdmissionPolicy' + $ref: '#/components/schemas/v1.ValidatingAdmissionPolicyBinding' + application/cbor: + schema: + $ref: '#/components/schemas/v1.ValidatingAdmissionPolicyBinding' description: Accepted "401": content: {} description: Unauthorized tags: - - admissionregistration_v1alpha1 + - admissionregistration_v1 x-kubernetes-action: post x-kubernetes-group-version-kind: group: admissionregistration.k8s.io - kind: ValidatingAdmissionPolicy - version: v1alpha1 + kind: ValidatingAdmissionPolicyBinding + version: v1 x-codegen-request-body-name: body x-contentType: application/json x-accepts: application/json - /apis/admissionregistration.k8s.io/v1alpha1/validatingadmissionpolicies/{name}: + /apis/admissionregistration.k8s.io/v1/validatingadmissionpolicybindings/{name}: delete: - description: delete a ValidatingAdmissionPolicy - operationId: deleteValidatingAdmissionPolicy + description: delete a ValidatingAdmissionPolicyBinding + operationId: deleteValidatingAdmissionPolicyBinding parameters: - - description: name of the ValidatingAdmissionPolicy + - description: name of the ValidatingAdmissionPolicyBinding in: path name: name required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -19535,6 +21819,20 @@ paths: name: gracePeriodSeconds schema: type: integer + - description: 'if set to true, it will trigger an unsafe deletion of the resource + in case the normal deletion flow fails with a corrupt object error. A resource + is considered corrupt if it can not be retrieved from the underlying storage + successfully because of a) its data can not be transformed e.g. decryption + failure, or b) it fails to decode into an object. NOTE: unsafe deletion + ignores finalizer constraints, skips precondition checks, and removes the + object from the storage. WARNING: This may potentially break the cluster + if the workload associated with the resource being unsafe-deleted relies + on normal deletion flow. Use only if you REALLY know what you are doing. + The default value is false, and the user must opt in to enable it' + in: query + name: ignoreStoreReadErrorWithClusterBreakingPotential + schema: + type: boolean - description: '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 @@ -19572,6 +21870,9 @@ paths: application/vnd.kubernetes.protobuf: schema: $ref: '#/components/schemas/v1.Status' + application/cbor: + schema: + $ref: '#/components/schemas/v1.Status' description: OK "202": content: @@ -19584,31 +21885,36 @@ paths: application/vnd.kubernetes.protobuf: schema: $ref: '#/components/schemas/v1.Status' + application/cbor: + schema: + $ref: '#/components/schemas/v1.Status' description: Accepted "401": content: {} description: Unauthorized tags: - - admissionregistration_v1alpha1 + - admissionregistration_v1 x-kubernetes-action: delete x-kubernetes-group-version-kind: group: admissionregistration.k8s.io - kind: ValidatingAdmissionPolicy - version: v1alpha1 + kind: ValidatingAdmissionPolicyBinding + version: v1 x-codegen-request-body-name: body x-contentType: application/json x-accepts: application/json get: - description: read the specified ValidatingAdmissionPolicy - operationId: readValidatingAdmissionPolicy + description: read the specified ValidatingAdmissionPolicyBinding + operationId: readValidatingAdmissionPolicyBinding parameters: - - description: name of the ValidatingAdmissionPolicy + - description: name of the ValidatingAdmissionPolicyBinding in: path name: name required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -19618,36 +21924,41 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1alpha1.ValidatingAdmissionPolicy' + $ref: '#/components/schemas/v1.ValidatingAdmissionPolicyBinding' application/yaml: schema: - $ref: '#/components/schemas/v1alpha1.ValidatingAdmissionPolicy' + $ref: '#/components/schemas/v1.ValidatingAdmissionPolicyBinding' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha1.ValidatingAdmissionPolicy' + $ref: '#/components/schemas/v1.ValidatingAdmissionPolicyBinding' + application/cbor: + schema: + $ref: '#/components/schemas/v1.ValidatingAdmissionPolicyBinding' description: OK "401": content: {} description: Unauthorized tags: - - admissionregistration_v1alpha1 + - admissionregistration_v1 x-kubernetes-action: get x-kubernetes-group-version-kind: group: admissionregistration.k8s.io - kind: ValidatingAdmissionPolicy - version: v1alpha1 + kind: ValidatingAdmissionPolicyBinding + version: v1 x-accepts: application/json patch: - description: partially update the specified ValidatingAdmissionPolicy - operationId: patchValidatingAdmissionPolicy + description: partially update the specified ValidatingAdmissionPolicyBinding + operationId: patchValidatingAdmissionPolicyBinding parameters: - - description: name of the ValidatingAdmissionPolicy + - description: name of the ValidatingAdmissionPolicyBinding in: path name: name required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -19704,281 +22015,58 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1alpha1.ValidatingAdmissionPolicy' - application/yaml: - schema: - $ref: '#/components/schemas/v1alpha1.ValidatingAdmissionPolicy' - application/vnd.kubernetes.protobuf: - schema: - $ref: '#/components/schemas/v1alpha1.ValidatingAdmissionPolicy' - description: OK - "201": - content: - application/json: - schema: - $ref: '#/components/schemas/v1alpha1.ValidatingAdmissionPolicy' + $ref: '#/components/schemas/v1.ValidatingAdmissionPolicyBinding' application/yaml: schema: - $ref: '#/components/schemas/v1alpha1.ValidatingAdmissionPolicy' + $ref: '#/components/schemas/v1.ValidatingAdmissionPolicyBinding' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha1.ValidatingAdmissionPolicy' - description: Created - "401": - content: {} - description: Unauthorized - tags: - - admissionregistration_v1alpha1 - x-kubernetes-action: patch - x-kubernetes-group-version-kind: - group: admissionregistration.k8s.io - kind: ValidatingAdmissionPolicy - version: v1alpha1 - x-codegen-request-body-name: body - x-contentType: application/json - x-accepts: application/json - put: - description: replace the specified ValidatingAdmissionPolicy - operationId: replaceValidatingAdmissionPolicy - parameters: - - description: name of the ValidatingAdmissionPolicy - in: path - name: name - required: true - schema: - type: string - - description: If 'true', then the output is pretty printed. - in: query - name: pretty - schema: - type: string - - description: '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' - in: query - name: dryRun - schema: - type: string - - description: fieldManager is a name associated with the actor or entity that - is making these changes. The value must be less than or 128 characters long, - and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - in: query - name: fieldManager - schema: - type: string - - description: 'fieldValidation instructs the server on how to handle objects - in the request (POST/PUT/PATCH) containing unknown or duplicate fields. - Valid values are: - Ignore: This will ignore any unknown fields that are - silently dropped from the object, and will ignore all but the last duplicate - field that the decoder encounters. This is the default behavior prior to - v1.23. - Warn: This will send a warning via the standard warning response - header for each unknown field that is dropped from the object, and for each - duplicate field that is encountered. The request will still succeed if there - are no other errors, and will only persist the last of any duplicate fields. - This is the default in v1.23+ - Strict: This will fail the request with - a BadRequest error if any unknown fields would be dropped from the object, - or if any duplicate fields are present. The error returned from the server - will contain all unknown and duplicate fields encountered.' - in: query - name: fieldValidation - schema: - type: string - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/v1alpha1.ValidatingAdmissionPolicy' - required: true - responses: - "200": - content: - application/json: - schema: - $ref: '#/components/schemas/v1alpha1.ValidatingAdmissionPolicy' - application/yaml: - schema: - $ref: '#/components/schemas/v1alpha1.ValidatingAdmissionPolicy' - application/vnd.kubernetes.protobuf: + $ref: '#/components/schemas/v1.ValidatingAdmissionPolicyBinding' + application/cbor: schema: - $ref: '#/components/schemas/v1alpha1.ValidatingAdmissionPolicy' + $ref: '#/components/schemas/v1.ValidatingAdmissionPolicyBinding' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1alpha1.ValidatingAdmissionPolicy' + $ref: '#/components/schemas/v1.ValidatingAdmissionPolicyBinding' application/yaml: schema: - $ref: '#/components/schemas/v1alpha1.ValidatingAdmissionPolicy' + $ref: '#/components/schemas/v1.ValidatingAdmissionPolicyBinding' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha1.ValidatingAdmissionPolicy' - description: Created - "401": - content: {} - description: Unauthorized - tags: - - admissionregistration_v1alpha1 - x-kubernetes-action: put - x-kubernetes-group-version-kind: - group: admissionregistration.k8s.io - kind: ValidatingAdmissionPolicy - version: v1alpha1 - x-codegen-request-body-name: body - x-contentType: application/json - x-accepts: application/json - /apis/admissionregistration.k8s.io/v1alpha1/validatingadmissionpolicies/{name}/status: - get: - description: read status of the specified ValidatingAdmissionPolicy - operationId: readValidatingAdmissionPolicyStatus - parameters: - - description: name of the ValidatingAdmissionPolicy - in: path - name: name - required: true - schema: - type: string - - description: If 'true', then the output is pretty printed. - in: query - name: pretty - schema: - type: string - responses: - "200": - content: - application/json: - schema: - $ref: '#/components/schemas/v1alpha1.ValidatingAdmissionPolicy' - application/yaml: - schema: - $ref: '#/components/schemas/v1alpha1.ValidatingAdmissionPolicy' - application/vnd.kubernetes.protobuf: - schema: - $ref: '#/components/schemas/v1alpha1.ValidatingAdmissionPolicy' - description: OK - "401": - content: {} - description: Unauthorized - tags: - - admissionregistration_v1alpha1 - x-kubernetes-action: get - x-kubernetes-group-version-kind: - group: admissionregistration.k8s.io - kind: ValidatingAdmissionPolicy - version: v1alpha1 - x-accepts: application/json - patch: - description: partially update status of the specified ValidatingAdmissionPolicy - operationId: patchValidatingAdmissionPolicyStatus - parameters: - - description: name of the ValidatingAdmissionPolicy - in: path - name: name - required: true - schema: - type: string - - description: If 'true', then the output is pretty printed. - in: query - name: pretty - schema: - type: string - - description: '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' - in: query - name: dryRun - schema: - type: string - - description: fieldManager is a name associated with the actor or entity that - is making these changes. The value must be less than or 128 characters long, - and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - This field is required for apply requests (application/apply-patch) but - optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). - in: query - name: fieldManager - schema: - type: string - - description: 'fieldValidation instructs the server on how to handle objects - in the request (POST/PUT/PATCH) containing unknown or duplicate fields. - Valid values are: - Ignore: This will ignore any unknown fields that are - silently dropped from the object, and will ignore all but the last duplicate - field that the decoder encounters. This is the default behavior prior to - v1.23. - Warn: This will send a warning via the standard warning response - header for each unknown field that is dropped from the object, and for each - duplicate field that is encountered. The request will still succeed if there - are no other errors, and will only persist the last of any duplicate fields. - This is the default in v1.23+ - Strict: This will fail the request with - a BadRequest error if any unknown fields would be dropped from the object, - or if any duplicate fields are present. The error returned from the server - will contain all unknown and duplicate fields encountered.' - in: query - name: fieldValidation - schema: - type: string - - description: Force is going to "force" Apply requests. It means user will - re-acquire conflicting fields owned by other people. Force flag must be - unset for non-apply patch requests. - in: query - name: force - schema: - type: boolean - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/v1.Patch' - required: true - responses: - "200": - content: - application/json: + $ref: '#/components/schemas/v1.ValidatingAdmissionPolicyBinding' + application/cbor: schema: - $ref: '#/components/schemas/v1alpha1.ValidatingAdmissionPolicy' - application/yaml: - schema: - $ref: '#/components/schemas/v1alpha1.ValidatingAdmissionPolicy' - application/vnd.kubernetes.protobuf: - schema: - $ref: '#/components/schemas/v1alpha1.ValidatingAdmissionPolicy' - description: OK - "201": - content: - application/json: - schema: - $ref: '#/components/schemas/v1alpha1.ValidatingAdmissionPolicy' - application/yaml: - schema: - $ref: '#/components/schemas/v1alpha1.ValidatingAdmissionPolicy' - application/vnd.kubernetes.protobuf: - schema: - $ref: '#/components/schemas/v1alpha1.ValidatingAdmissionPolicy' + $ref: '#/components/schemas/v1.ValidatingAdmissionPolicyBinding' description: Created "401": content: {} description: Unauthorized tags: - - admissionregistration_v1alpha1 + - admissionregistration_v1 x-kubernetes-action: patch x-kubernetes-group-version-kind: group: admissionregistration.k8s.io - kind: ValidatingAdmissionPolicy - version: v1alpha1 + kind: ValidatingAdmissionPolicyBinding + version: v1 x-codegen-request-body-name: body x-contentType: application/json x-accepts: application/json put: - description: replace status of the specified ValidatingAdmissionPolicy - operationId: replaceValidatingAdmissionPolicyStatus + description: replace the specified ValidatingAdmissionPolicyBinding + operationId: replaceValidatingAdmissionPolicyBinding parameters: - - description: name of the ValidatingAdmissionPolicy + - description: name of the ValidatingAdmissionPolicyBinding in: path name: name required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -20019,52 +22107,60 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1alpha1.ValidatingAdmissionPolicy' + $ref: '#/components/schemas/v1.ValidatingAdmissionPolicyBinding' required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1alpha1.ValidatingAdmissionPolicy' + $ref: '#/components/schemas/v1.ValidatingAdmissionPolicyBinding' application/yaml: schema: - $ref: '#/components/schemas/v1alpha1.ValidatingAdmissionPolicy' + $ref: '#/components/schemas/v1.ValidatingAdmissionPolicyBinding' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha1.ValidatingAdmissionPolicy' + $ref: '#/components/schemas/v1.ValidatingAdmissionPolicyBinding' + application/cbor: + schema: + $ref: '#/components/schemas/v1.ValidatingAdmissionPolicyBinding' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1alpha1.ValidatingAdmissionPolicy' + $ref: '#/components/schemas/v1.ValidatingAdmissionPolicyBinding' application/yaml: schema: - $ref: '#/components/schemas/v1alpha1.ValidatingAdmissionPolicy' + $ref: '#/components/schemas/v1.ValidatingAdmissionPolicyBinding' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha1.ValidatingAdmissionPolicy' + $ref: '#/components/schemas/v1.ValidatingAdmissionPolicyBinding' + application/cbor: + schema: + $ref: '#/components/schemas/v1.ValidatingAdmissionPolicyBinding' description: Created "401": content: {} description: Unauthorized tags: - - admissionregistration_v1alpha1 + - admissionregistration_v1 x-kubernetes-action: put x-kubernetes-group-version-kind: group: admissionregistration.k8s.io - kind: ValidatingAdmissionPolicy - version: v1alpha1 + kind: ValidatingAdmissionPolicyBinding + version: v1 x-codegen-request-body-name: body x-contentType: application/json x-accepts: application/json - /apis/admissionregistration.k8s.io/v1alpha1/validatingadmissionpolicybindings: + /apis/admissionregistration.k8s.io/v1/validatingwebhookconfigurations: delete: - description: delete collection of ValidatingAdmissionPolicyBinding - operationId: deleteCollectionValidatingAdmissionPolicyBinding + description: delete collection of ValidatingWebhookConfiguration + operationId: deleteCollectionValidatingWebhookConfiguration parameters: - - description: If 'true', then the output is pretty printed. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -20100,6 +22196,20 @@ paths: name: gracePeriodSeconds schema: type: integer + - description: 'if set to true, it will trigger an unsafe deletion of the resource + in case the normal deletion flow fails with a corrupt object error. A resource + is considered corrupt if it can not be retrieved from the underlying storage + successfully because of a) its data can not be transformed e.g. decryption + failure, or b) it fails to decode into an object. NOTE: unsafe deletion + ignores finalizer constraints, skips precondition checks, and removes the + object from the storage. WARNING: This may potentially break the cluster + if the workload associated with the resource being unsafe-deleted relies + on normal deletion flow. Use only if you REALLY know what you are doing. + The default value is false, and the user must opt in to enable it' + in: query + name: ignoreStoreReadErrorWithClusterBreakingPotential + schema: + type: boolean - description: A selector to restrict the list of returned objects by their labels. Defaults to everything. in: query @@ -20191,25 +22301,30 @@ paths: application/vnd.kubernetes.protobuf: schema: $ref: '#/components/schemas/v1.Status' + application/cbor: + schema: + $ref: '#/components/schemas/v1.Status' description: OK "401": content: {} description: Unauthorized tags: - - admissionregistration_v1alpha1 + - admissionregistration_v1 x-kubernetes-action: deletecollection x-kubernetes-group-version-kind: group: admissionregistration.k8s.io - kind: ValidatingAdmissionPolicyBinding - version: v1alpha1 + kind: ValidatingWebhookConfiguration + version: v1 x-codegen-request-body-name: body x-contentType: application/json x-accepts: application/json get: - description: list or watch objects of kind ValidatingAdmissionPolicyBinding - operationId: listValidatingAdmissionPolicyBinding + description: list or watch objects of kind ValidatingWebhookConfiguration + operationId: listValidatingWebhookConfiguration parameters: - - description: If 'true', then the output is pretty printed. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -20303,36 +22418,44 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1alpha1.ValidatingAdmissionPolicyBindingList' + $ref: '#/components/schemas/v1.ValidatingWebhookConfigurationList' application/yaml: schema: - $ref: '#/components/schemas/v1alpha1.ValidatingAdmissionPolicyBindingList' + $ref: '#/components/schemas/v1.ValidatingWebhookConfigurationList' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha1.ValidatingAdmissionPolicyBindingList' + $ref: '#/components/schemas/v1.ValidatingWebhookConfigurationList' + application/cbor: + schema: + $ref: '#/components/schemas/v1.ValidatingWebhookConfigurationList' application/json;stream=watch: schema: - $ref: '#/components/schemas/v1alpha1.ValidatingAdmissionPolicyBindingList' + $ref: '#/components/schemas/v1.ValidatingWebhookConfigurationList' application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: '#/components/schemas/v1alpha1.ValidatingAdmissionPolicyBindingList' + $ref: '#/components/schemas/v1.ValidatingWebhookConfigurationList' + application/cbor-seq: + schema: + $ref: '#/components/schemas/v1.ValidatingWebhookConfigurationList' description: OK "401": content: {} description: Unauthorized tags: - - admissionregistration_v1alpha1 + - admissionregistration_v1 x-kubernetes-action: list x-kubernetes-group-version-kind: group: admissionregistration.k8s.io - kind: ValidatingAdmissionPolicyBinding - version: v1alpha1 + kind: ValidatingWebhookConfiguration + version: v1 x-accepts: application/json post: - description: create a ValidatingAdmissionPolicyBinding - operationId: createValidatingAdmissionPolicyBinding + description: create a ValidatingWebhookConfiguration + operationId: createValidatingWebhookConfiguration parameters: - - description: If 'true', then the output is pretty printed. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -20373,70 +22496,81 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1alpha1.ValidatingAdmissionPolicyBinding' + $ref: '#/components/schemas/v1.ValidatingWebhookConfiguration' required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1alpha1.ValidatingAdmissionPolicyBinding' + $ref: '#/components/schemas/v1.ValidatingWebhookConfiguration' application/yaml: schema: - $ref: '#/components/schemas/v1alpha1.ValidatingAdmissionPolicyBinding' + $ref: '#/components/schemas/v1.ValidatingWebhookConfiguration' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha1.ValidatingAdmissionPolicyBinding' + $ref: '#/components/schemas/v1.ValidatingWebhookConfiguration' + application/cbor: + schema: + $ref: '#/components/schemas/v1.ValidatingWebhookConfiguration' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1alpha1.ValidatingAdmissionPolicyBinding' + $ref: '#/components/schemas/v1.ValidatingWebhookConfiguration' application/yaml: schema: - $ref: '#/components/schemas/v1alpha1.ValidatingAdmissionPolicyBinding' + $ref: '#/components/schemas/v1.ValidatingWebhookConfiguration' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha1.ValidatingAdmissionPolicyBinding' + $ref: '#/components/schemas/v1.ValidatingWebhookConfiguration' + application/cbor: + schema: + $ref: '#/components/schemas/v1.ValidatingWebhookConfiguration' description: Created "202": content: application/json: schema: - $ref: '#/components/schemas/v1alpha1.ValidatingAdmissionPolicyBinding' + $ref: '#/components/schemas/v1.ValidatingWebhookConfiguration' application/yaml: schema: - $ref: '#/components/schemas/v1alpha1.ValidatingAdmissionPolicyBinding' + $ref: '#/components/schemas/v1.ValidatingWebhookConfiguration' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha1.ValidatingAdmissionPolicyBinding' + $ref: '#/components/schemas/v1.ValidatingWebhookConfiguration' + application/cbor: + schema: + $ref: '#/components/schemas/v1.ValidatingWebhookConfiguration' description: Accepted "401": content: {} description: Unauthorized tags: - - admissionregistration_v1alpha1 + - admissionregistration_v1 x-kubernetes-action: post x-kubernetes-group-version-kind: group: admissionregistration.k8s.io - kind: ValidatingAdmissionPolicyBinding - version: v1alpha1 + kind: ValidatingWebhookConfiguration + version: v1 x-codegen-request-body-name: body x-contentType: application/json x-accepts: application/json - /apis/admissionregistration.k8s.io/v1alpha1/validatingadmissionpolicybindings/{name}: + /apis/admissionregistration.k8s.io/v1/validatingwebhookconfigurations/{name}: delete: - description: delete a ValidatingAdmissionPolicyBinding - operationId: deleteValidatingAdmissionPolicyBinding + description: delete a ValidatingWebhookConfiguration + operationId: deleteValidatingWebhookConfiguration parameters: - - description: name of the ValidatingAdmissionPolicyBinding + - description: name of the ValidatingWebhookConfiguration in: path name: name required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -20458,6 +22592,20 @@ paths: name: gracePeriodSeconds schema: type: integer + - description: 'if set to true, it will trigger an unsafe deletion of the resource + in case the normal deletion flow fails with a corrupt object error. A resource + is considered corrupt if it can not be retrieved from the underlying storage + successfully because of a) its data can not be transformed e.g. decryption + failure, or b) it fails to decode into an object. NOTE: unsafe deletion + ignores finalizer constraints, skips precondition checks, and removes the + object from the storage. WARNING: This may potentially break the cluster + if the workload associated with the resource being unsafe-deleted relies + on normal deletion flow. Use only if you REALLY know what you are doing. + The default value is false, and the user must opt in to enable it' + in: query + name: ignoreStoreReadErrorWithClusterBreakingPotential + schema: + type: boolean - description: '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 @@ -20495,6 +22643,9 @@ paths: application/vnd.kubernetes.protobuf: schema: $ref: '#/components/schemas/v1.Status' + application/cbor: + schema: + $ref: '#/components/schemas/v1.Status' description: OK "202": content: @@ -20507,31 +22658,36 @@ paths: application/vnd.kubernetes.protobuf: schema: $ref: '#/components/schemas/v1.Status' + application/cbor: + schema: + $ref: '#/components/schemas/v1.Status' description: Accepted "401": content: {} description: Unauthorized tags: - - admissionregistration_v1alpha1 + - admissionregistration_v1 x-kubernetes-action: delete x-kubernetes-group-version-kind: group: admissionregistration.k8s.io - kind: ValidatingAdmissionPolicyBinding - version: v1alpha1 + kind: ValidatingWebhookConfiguration + version: v1 x-codegen-request-body-name: body x-contentType: application/json x-accepts: application/json get: - description: read the specified ValidatingAdmissionPolicyBinding - operationId: readValidatingAdmissionPolicyBinding + description: read the specified ValidatingWebhookConfiguration + operationId: readValidatingWebhookConfiguration parameters: - - description: name of the ValidatingAdmissionPolicyBinding + - description: name of the ValidatingWebhookConfiguration in: path name: name required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -20541,36 +22697,41 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1alpha1.ValidatingAdmissionPolicyBinding' + $ref: '#/components/schemas/v1.ValidatingWebhookConfiguration' application/yaml: schema: - $ref: '#/components/schemas/v1alpha1.ValidatingAdmissionPolicyBinding' + $ref: '#/components/schemas/v1.ValidatingWebhookConfiguration' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha1.ValidatingAdmissionPolicyBinding' + $ref: '#/components/schemas/v1.ValidatingWebhookConfiguration' + application/cbor: + schema: + $ref: '#/components/schemas/v1.ValidatingWebhookConfiguration' description: OK "401": content: {} description: Unauthorized tags: - - admissionregistration_v1alpha1 + - admissionregistration_v1 x-kubernetes-action: get x-kubernetes-group-version-kind: group: admissionregistration.k8s.io - kind: ValidatingAdmissionPolicyBinding - version: v1alpha1 + kind: ValidatingWebhookConfiguration + version: v1 x-accepts: application/json patch: - description: partially update the specified ValidatingAdmissionPolicyBinding - operationId: patchValidatingAdmissionPolicyBinding + description: partially update the specified ValidatingWebhookConfiguration + operationId: patchValidatingWebhookConfiguration parameters: - - description: name of the ValidatingAdmissionPolicyBinding + - description: name of the ValidatingWebhookConfiguration in: path name: name required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -20627,50 +22788,58 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1alpha1.ValidatingAdmissionPolicyBinding' + $ref: '#/components/schemas/v1.ValidatingWebhookConfiguration' application/yaml: schema: - $ref: '#/components/schemas/v1alpha1.ValidatingAdmissionPolicyBinding' + $ref: '#/components/schemas/v1.ValidatingWebhookConfiguration' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha1.ValidatingAdmissionPolicyBinding' + $ref: '#/components/schemas/v1.ValidatingWebhookConfiguration' + application/cbor: + schema: + $ref: '#/components/schemas/v1.ValidatingWebhookConfiguration' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1alpha1.ValidatingAdmissionPolicyBinding' + $ref: '#/components/schemas/v1.ValidatingWebhookConfiguration' application/yaml: schema: - $ref: '#/components/schemas/v1alpha1.ValidatingAdmissionPolicyBinding' + $ref: '#/components/schemas/v1.ValidatingWebhookConfiguration' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha1.ValidatingAdmissionPolicyBinding' + $ref: '#/components/schemas/v1.ValidatingWebhookConfiguration' + application/cbor: + schema: + $ref: '#/components/schemas/v1.ValidatingWebhookConfiguration' description: Created "401": content: {} description: Unauthorized tags: - - admissionregistration_v1alpha1 + - admissionregistration_v1 x-kubernetes-action: patch x-kubernetes-group-version-kind: group: admissionregistration.k8s.io - kind: ValidatingAdmissionPolicyBinding - version: v1alpha1 + kind: ValidatingWebhookConfiguration + version: v1 x-codegen-request-body-name: body x-contentType: application/json x-accepts: application/json put: - description: replace the specified ValidatingAdmissionPolicyBinding - operationId: replaceValidatingAdmissionPolicyBinding + description: replace the specified ValidatingWebhookConfiguration + operationId: replaceValidatingWebhookConfiguration parameters: - - description: name of the ValidatingAdmissionPolicyBinding + - description: name of the ValidatingWebhookConfiguration in: path name: name required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -20711,51 +22880,61 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1alpha1.ValidatingAdmissionPolicyBinding' + $ref: '#/components/schemas/v1.ValidatingWebhookConfiguration' required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1alpha1.ValidatingAdmissionPolicyBinding' + $ref: '#/components/schemas/v1.ValidatingWebhookConfiguration' application/yaml: schema: - $ref: '#/components/schemas/v1alpha1.ValidatingAdmissionPolicyBinding' + $ref: '#/components/schemas/v1.ValidatingWebhookConfiguration' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha1.ValidatingAdmissionPolicyBinding' + $ref: '#/components/schemas/v1.ValidatingWebhookConfiguration' + application/cbor: + schema: + $ref: '#/components/schemas/v1.ValidatingWebhookConfiguration' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1alpha1.ValidatingAdmissionPolicyBinding' + $ref: '#/components/schemas/v1.ValidatingWebhookConfiguration' application/yaml: schema: - $ref: '#/components/schemas/v1alpha1.ValidatingAdmissionPolicyBinding' + $ref: '#/components/schemas/v1.ValidatingWebhookConfiguration' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha1.ValidatingAdmissionPolicyBinding' + $ref: '#/components/schemas/v1.ValidatingWebhookConfiguration' + application/cbor: + schema: + $ref: '#/components/schemas/v1.ValidatingWebhookConfiguration' description: Created "401": content: {} description: Unauthorized tags: - - admissionregistration_v1alpha1 + - admissionregistration_v1 x-kubernetes-action: put x-kubernetes-group-version-kind: group: admissionregistration.k8s.io - kind: ValidatingAdmissionPolicyBinding - version: v1alpha1 + kind: ValidatingWebhookConfiguration + version: v1 x-codegen-request-body-name: body x-contentType: application/json x-accepts: application/json - /apis/admissionregistration.k8s.io/v1alpha1/watch/validatingadmissionpolicies: {} - /apis/admissionregistration.k8s.io/v1alpha1/watch/validatingadmissionpolicies/{name}: {} - /apis/admissionregistration.k8s.io/v1alpha1/watch/validatingadmissionpolicybindings: {} - /apis/admissionregistration.k8s.io/v1alpha1/watch/validatingadmissionpolicybindings/{name}: {} - /apis/admissionregistration.k8s.io/v1beta1/: + /apis/admissionregistration.k8s.io/v1/watch/mutatingwebhookconfigurations: {} + /apis/admissionregistration.k8s.io/v1/watch/mutatingwebhookconfigurations/{name}: {} + /apis/admissionregistration.k8s.io/v1/watch/validatingadmissionpolicies: {} + /apis/admissionregistration.k8s.io/v1/watch/validatingadmissionpolicies/{name}: {} + /apis/admissionregistration.k8s.io/v1/watch/validatingadmissionpolicybindings: {} + /apis/admissionregistration.k8s.io/v1/watch/validatingadmissionpolicybindings/{name}: {} + /apis/admissionregistration.k8s.io/v1/watch/validatingwebhookconfigurations: {} + /apis/admissionregistration.k8s.io/v1/watch/validatingwebhookconfigurations/{name}: {} + /apis/admissionregistration.k8s.io/v1alpha1/: get: description: get available resources operationId: getAPIResources @@ -20771,19 +22950,24 @@ paths: application/vnd.kubernetes.protobuf: schema: $ref: '#/components/schemas/v1.APIResourceList' + application/cbor: + schema: + $ref: '#/components/schemas/v1.APIResourceList' description: OK "401": content: {} description: Unauthorized tags: - - admissionregistration_v1beta1 + - admissionregistration_v1alpha1 x-accepts: application/json - /apis/admissionregistration.k8s.io/v1beta1/validatingadmissionpolicies: + /apis/admissionregistration.k8s.io/v1alpha1/mutatingadmissionpolicies: delete: - description: delete collection of ValidatingAdmissionPolicy - operationId: deleteCollectionValidatingAdmissionPolicy + description: delete collection of MutatingAdmissionPolicy + operationId: deleteCollectionMutatingAdmissionPolicy parameters: - - description: If 'true', then the output is pretty printed. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -20819,6 +23003,20 @@ paths: name: gracePeriodSeconds schema: type: integer + - description: 'if set to true, it will trigger an unsafe deletion of the resource + in case the normal deletion flow fails with a corrupt object error. A resource + is considered corrupt if it can not be retrieved from the underlying storage + successfully because of a) its data can not be transformed e.g. decryption + failure, or b) it fails to decode into an object. NOTE: unsafe deletion + ignores finalizer constraints, skips precondition checks, and removes the + object from the storage. WARNING: This may potentially break the cluster + if the workload associated with the resource being unsafe-deleted relies + on normal deletion flow. Use only if you REALLY know what you are doing. + The default value is false, and the user must opt in to enable it' + in: query + name: ignoreStoreReadErrorWithClusterBreakingPotential + schema: + type: boolean - description: A selector to restrict the list of returned objects by their labels. Defaults to everything. in: query @@ -20910,25 +23108,30 @@ paths: application/vnd.kubernetes.protobuf: schema: $ref: '#/components/schemas/v1.Status' + application/cbor: + schema: + $ref: '#/components/schemas/v1.Status' description: OK "401": content: {} description: Unauthorized tags: - - admissionregistration_v1beta1 + - admissionregistration_v1alpha1 x-kubernetes-action: deletecollection x-kubernetes-group-version-kind: group: admissionregistration.k8s.io - kind: ValidatingAdmissionPolicy - version: v1beta1 + kind: MutatingAdmissionPolicy + version: v1alpha1 x-codegen-request-body-name: body x-contentType: application/json x-accepts: application/json get: - description: list or watch objects of kind ValidatingAdmissionPolicy - operationId: listValidatingAdmissionPolicy + description: list or watch objects of kind MutatingAdmissionPolicy + operationId: listMutatingAdmissionPolicy parameters: - - description: If 'true', then the output is pretty printed. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -21022,36 +23225,44 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1beta1.ValidatingAdmissionPolicyList' + $ref: '#/components/schemas/v1alpha1.MutatingAdmissionPolicyList' application/yaml: schema: - $ref: '#/components/schemas/v1beta1.ValidatingAdmissionPolicyList' + $ref: '#/components/schemas/v1alpha1.MutatingAdmissionPolicyList' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta1.ValidatingAdmissionPolicyList' + $ref: '#/components/schemas/v1alpha1.MutatingAdmissionPolicyList' + application/cbor: + schema: + $ref: '#/components/schemas/v1alpha1.MutatingAdmissionPolicyList' application/json;stream=watch: schema: - $ref: '#/components/schemas/v1beta1.ValidatingAdmissionPolicyList' + $ref: '#/components/schemas/v1alpha1.MutatingAdmissionPolicyList' application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: '#/components/schemas/v1beta1.ValidatingAdmissionPolicyList' + $ref: '#/components/schemas/v1alpha1.MutatingAdmissionPolicyList' + application/cbor-seq: + schema: + $ref: '#/components/schemas/v1alpha1.MutatingAdmissionPolicyList' description: OK "401": content: {} description: Unauthorized tags: - - admissionregistration_v1beta1 + - admissionregistration_v1alpha1 x-kubernetes-action: list x-kubernetes-group-version-kind: group: admissionregistration.k8s.io - kind: ValidatingAdmissionPolicy - version: v1beta1 + kind: MutatingAdmissionPolicy + version: v1alpha1 x-accepts: application/json post: - description: create a ValidatingAdmissionPolicy - operationId: createValidatingAdmissionPolicy + description: create a MutatingAdmissionPolicy + operationId: createMutatingAdmissionPolicy parameters: - - description: If 'true', then the output is pretty printed. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -21092,70 +23303,81 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1beta1.ValidatingAdmissionPolicy' + $ref: '#/components/schemas/v1alpha1.MutatingAdmissionPolicy' required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1beta1.ValidatingAdmissionPolicy' + $ref: '#/components/schemas/v1alpha1.MutatingAdmissionPolicy' application/yaml: schema: - $ref: '#/components/schemas/v1beta1.ValidatingAdmissionPolicy' + $ref: '#/components/schemas/v1alpha1.MutatingAdmissionPolicy' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta1.ValidatingAdmissionPolicy' + $ref: '#/components/schemas/v1alpha1.MutatingAdmissionPolicy' + application/cbor: + schema: + $ref: '#/components/schemas/v1alpha1.MutatingAdmissionPolicy' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1beta1.ValidatingAdmissionPolicy' + $ref: '#/components/schemas/v1alpha1.MutatingAdmissionPolicy' application/yaml: schema: - $ref: '#/components/schemas/v1beta1.ValidatingAdmissionPolicy' + $ref: '#/components/schemas/v1alpha1.MutatingAdmissionPolicy' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta1.ValidatingAdmissionPolicy' + $ref: '#/components/schemas/v1alpha1.MutatingAdmissionPolicy' + application/cbor: + schema: + $ref: '#/components/schemas/v1alpha1.MutatingAdmissionPolicy' description: Created "202": content: application/json: schema: - $ref: '#/components/schemas/v1beta1.ValidatingAdmissionPolicy' + $ref: '#/components/schemas/v1alpha1.MutatingAdmissionPolicy' application/yaml: schema: - $ref: '#/components/schemas/v1beta1.ValidatingAdmissionPolicy' + $ref: '#/components/schemas/v1alpha1.MutatingAdmissionPolicy' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta1.ValidatingAdmissionPolicy' + $ref: '#/components/schemas/v1alpha1.MutatingAdmissionPolicy' + application/cbor: + schema: + $ref: '#/components/schemas/v1alpha1.MutatingAdmissionPolicy' description: Accepted "401": content: {} description: Unauthorized tags: - - admissionregistration_v1beta1 + - admissionregistration_v1alpha1 x-kubernetes-action: post x-kubernetes-group-version-kind: group: admissionregistration.k8s.io - kind: ValidatingAdmissionPolicy - version: v1beta1 + kind: MutatingAdmissionPolicy + version: v1alpha1 x-codegen-request-body-name: body x-contentType: application/json x-accepts: application/json - /apis/admissionregistration.k8s.io/v1beta1/validatingadmissionpolicies/{name}: + /apis/admissionregistration.k8s.io/v1alpha1/mutatingadmissionpolicies/{name}: delete: - description: delete a ValidatingAdmissionPolicy - operationId: deleteValidatingAdmissionPolicy + description: delete a MutatingAdmissionPolicy + operationId: deleteMutatingAdmissionPolicy parameters: - - description: name of the ValidatingAdmissionPolicy + - description: name of the MutatingAdmissionPolicy in: path name: name required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -21177,6 +23399,20 @@ paths: name: gracePeriodSeconds schema: type: integer + - description: 'if set to true, it will trigger an unsafe deletion of the resource + in case the normal deletion flow fails with a corrupt object error. A resource + is considered corrupt if it can not be retrieved from the underlying storage + successfully because of a) its data can not be transformed e.g. decryption + failure, or b) it fails to decode into an object. NOTE: unsafe deletion + ignores finalizer constraints, skips precondition checks, and removes the + object from the storage. WARNING: This may potentially break the cluster + if the workload associated with the resource being unsafe-deleted relies + on normal deletion flow. Use only if you REALLY know what you are doing. + The default value is false, and the user must opt in to enable it' + in: query + name: ignoreStoreReadErrorWithClusterBreakingPotential + schema: + type: boolean - description: '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 @@ -21214,6 +23450,9 @@ paths: application/vnd.kubernetes.protobuf: schema: $ref: '#/components/schemas/v1.Status' + application/cbor: + schema: + $ref: '#/components/schemas/v1.Status' description: OK "202": content: @@ -21226,31 +23465,36 @@ paths: application/vnd.kubernetes.protobuf: schema: $ref: '#/components/schemas/v1.Status' + application/cbor: + schema: + $ref: '#/components/schemas/v1.Status' description: Accepted "401": content: {} description: Unauthorized tags: - - admissionregistration_v1beta1 + - admissionregistration_v1alpha1 x-kubernetes-action: delete x-kubernetes-group-version-kind: group: admissionregistration.k8s.io - kind: ValidatingAdmissionPolicy - version: v1beta1 + kind: MutatingAdmissionPolicy + version: v1alpha1 x-codegen-request-body-name: body x-contentType: application/json x-accepts: application/json get: - description: read the specified ValidatingAdmissionPolicy - operationId: readValidatingAdmissionPolicy + description: read the specified MutatingAdmissionPolicy + operationId: readMutatingAdmissionPolicy parameters: - - description: name of the ValidatingAdmissionPolicy + - description: name of the MutatingAdmissionPolicy in: path name: name required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -21260,267 +23504,41 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1beta1.ValidatingAdmissionPolicy' + $ref: '#/components/schemas/v1alpha1.MutatingAdmissionPolicy' application/yaml: schema: - $ref: '#/components/schemas/v1beta1.ValidatingAdmissionPolicy' + $ref: '#/components/schemas/v1alpha1.MutatingAdmissionPolicy' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta1.ValidatingAdmissionPolicy' - description: OK - "401": - content: {} - description: Unauthorized - tags: - - admissionregistration_v1beta1 - x-kubernetes-action: get - x-kubernetes-group-version-kind: - group: admissionregistration.k8s.io - kind: ValidatingAdmissionPolicy - version: v1beta1 - x-accepts: application/json - patch: - description: partially update the specified ValidatingAdmissionPolicy - operationId: patchValidatingAdmissionPolicy - parameters: - - description: name of the ValidatingAdmissionPolicy - in: path - name: name - required: true - schema: - type: string - - description: If 'true', then the output is pretty printed. - in: query - name: pretty - schema: - type: string - - description: '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' - in: query - name: dryRun - schema: - type: string - - description: fieldManager is a name associated with the actor or entity that - is making these changes. The value must be less than or 128 characters long, - and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - This field is required for apply requests (application/apply-patch) but - optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). - in: query - name: fieldManager - schema: - type: string - - description: 'fieldValidation instructs the server on how to handle objects - in the request (POST/PUT/PATCH) containing unknown or duplicate fields. - Valid values are: - Ignore: This will ignore any unknown fields that are - silently dropped from the object, and will ignore all but the last duplicate - field that the decoder encounters. This is the default behavior prior to - v1.23. - Warn: This will send a warning via the standard warning response - header for each unknown field that is dropped from the object, and for each - duplicate field that is encountered. The request will still succeed if there - are no other errors, and will only persist the last of any duplicate fields. - This is the default in v1.23+ - Strict: This will fail the request with - a BadRequest error if any unknown fields would be dropped from the object, - or if any duplicate fields are present. The error returned from the server - will contain all unknown and duplicate fields encountered.' - in: query - name: fieldValidation - schema: - type: string - - description: Force is going to "force" Apply requests. It means user will - re-acquire conflicting fields owned by other people. Force flag must be - unset for non-apply patch requests. - in: query - name: force - schema: - type: boolean - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/v1.Patch' - required: true - responses: - "200": - content: - application/json: - schema: - $ref: '#/components/schemas/v1beta1.ValidatingAdmissionPolicy' - application/yaml: - schema: - $ref: '#/components/schemas/v1beta1.ValidatingAdmissionPolicy' - application/vnd.kubernetes.protobuf: - schema: - $ref: '#/components/schemas/v1beta1.ValidatingAdmissionPolicy' - description: OK - "201": - content: - application/json: - schema: - $ref: '#/components/schemas/v1beta1.ValidatingAdmissionPolicy' - application/yaml: - schema: - $ref: '#/components/schemas/v1beta1.ValidatingAdmissionPolicy' - application/vnd.kubernetes.protobuf: - schema: - $ref: '#/components/schemas/v1beta1.ValidatingAdmissionPolicy' - description: Created - "401": - content: {} - description: Unauthorized - tags: - - admissionregistration_v1beta1 - x-kubernetes-action: patch - x-kubernetes-group-version-kind: - group: admissionregistration.k8s.io - kind: ValidatingAdmissionPolicy - version: v1beta1 - x-codegen-request-body-name: body - x-contentType: application/json - x-accepts: application/json - put: - description: replace the specified ValidatingAdmissionPolicy - operationId: replaceValidatingAdmissionPolicy - parameters: - - description: name of the ValidatingAdmissionPolicy - in: path - name: name - required: true - schema: - type: string - - description: If 'true', then the output is pretty printed. - in: query - name: pretty - schema: - type: string - - description: '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' - in: query - name: dryRun - schema: - type: string - - description: fieldManager is a name associated with the actor or entity that - is making these changes. The value must be less than or 128 characters long, - and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - in: query - name: fieldManager - schema: - type: string - - description: 'fieldValidation instructs the server on how to handle objects - in the request (POST/PUT/PATCH) containing unknown or duplicate fields. - Valid values are: - Ignore: This will ignore any unknown fields that are - silently dropped from the object, and will ignore all but the last duplicate - field that the decoder encounters. This is the default behavior prior to - v1.23. - Warn: This will send a warning via the standard warning response - header for each unknown field that is dropped from the object, and for each - duplicate field that is encountered. The request will still succeed if there - are no other errors, and will only persist the last of any duplicate fields. - This is the default in v1.23+ - Strict: This will fail the request with - a BadRequest error if any unknown fields would be dropped from the object, - or if any duplicate fields are present. The error returned from the server - will contain all unknown and duplicate fields encountered.' - in: query - name: fieldValidation - schema: - type: string - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/v1beta1.ValidatingAdmissionPolicy' - required: true - responses: - "200": - content: - application/json: - schema: - $ref: '#/components/schemas/v1beta1.ValidatingAdmissionPolicy' - application/yaml: - schema: - $ref: '#/components/schemas/v1beta1.ValidatingAdmissionPolicy' - application/vnd.kubernetes.protobuf: + $ref: '#/components/schemas/v1alpha1.MutatingAdmissionPolicy' + application/cbor: schema: - $ref: '#/components/schemas/v1beta1.ValidatingAdmissionPolicy' + $ref: '#/components/schemas/v1alpha1.MutatingAdmissionPolicy' description: OK - "201": - content: - application/json: - schema: - $ref: '#/components/schemas/v1beta1.ValidatingAdmissionPolicy' - application/yaml: - schema: - $ref: '#/components/schemas/v1beta1.ValidatingAdmissionPolicy' - application/vnd.kubernetes.protobuf: - schema: - $ref: '#/components/schemas/v1beta1.ValidatingAdmissionPolicy' - description: Created "401": content: {} description: Unauthorized tags: - - admissionregistration_v1beta1 - x-kubernetes-action: put - x-kubernetes-group-version-kind: - group: admissionregistration.k8s.io - kind: ValidatingAdmissionPolicy - version: v1beta1 - x-codegen-request-body-name: body - x-contentType: application/json - x-accepts: application/json - /apis/admissionregistration.k8s.io/v1beta1/validatingadmissionpolicies/{name}/status: - get: - description: read status of the specified ValidatingAdmissionPolicy - operationId: readValidatingAdmissionPolicyStatus - parameters: - - description: name of the ValidatingAdmissionPolicy - in: path - name: name - required: true - schema: - type: string - - description: If 'true', then the output is pretty printed. - in: query - name: pretty - schema: - type: string - responses: - "200": - content: - application/json: - schema: - $ref: '#/components/schemas/v1beta1.ValidatingAdmissionPolicy' - application/yaml: - schema: - $ref: '#/components/schemas/v1beta1.ValidatingAdmissionPolicy' - application/vnd.kubernetes.protobuf: - schema: - $ref: '#/components/schemas/v1beta1.ValidatingAdmissionPolicy' - description: OK - "401": - content: {} - description: Unauthorized - tags: - - admissionregistration_v1beta1 + - admissionregistration_v1alpha1 x-kubernetes-action: get x-kubernetes-group-version-kind: group: admissionregistration.k8s.io - kind: ValidatingAdmissionPolicy - version: v1beta1 + kind: MutatingAdmissionPolicy + version: v1alpha1 x-accepts: application/json patch: - description: partially update status of the specified ValidatingAdmissionPolicy - operationId: patchValidatingAdmissionPolicyStatus + description: partially update the specified MutatingAdmissionPolicy + operationId: patchMutatingAdmissionPolicy parameters: - - description: name of the ValidatingAdmissionPolicy + - description: name of the MutatingAdmissionPolicy in: path name: name required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -21577,50 +23595,58 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1beta1.ValidatingAdmissionPolicy' + $ref: '#/components/schemas/v1alpha1.MutatingAdmissionPolicy' application/yaml: schema: - $ref: '#/components/schemas/v1beta1.ValidatingAdmissionPolicy' + $ref: '#/components/schemas/v1alpha1.MutatingAdmissionPolicy' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta1.ValidatingAdmissionPolicy' + $ref: '#/components/schemas/v1alpha1.MutatingAdmissionPolicy' + application/cbor: + schema: + $ref: '#/components/schemas/v1alpha1.MutatingAdmissionPolicy' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1beta1.ValidatingAdmissionPolicy' + $ref: '#/components/schemas/v1alpha1.MutatingAdmissionPolicy' application/yaml: schema: - $ref: '#/components/schemas/v1beta1.ValidatingAdmissionPolicy' + $ref: '#/components/schemas/v1alpha1.MutatingAdmissionPolicy' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta1.ValidatingAdmissionPolicy' + $ref: '#/components/schemas/v1alpha1.MutatingAdmissionPolicy' + application/cbor: + schema: + $ref: '#/components/schemas/v1alpha1.MutatingAdmissionPolicy' description: Created "401": content: {} description: Unauthorized tags: - - admissionregistration_v1beta1 + - admissionregistration_v1alpha1 x-kubernetes-action: patch x-kubernetes-group-version-kind: group: admissionregistration.k8s.io - kind: ValidatingAdmissionPolicy - version: v1beta1 + kind: MutatingAdmissionPolicy + version: v1alpha1 x-codegen-request-body-name: body x-contentType: application/json x-accepts: application/json put: - description: replace status of the specified ValidatingAdmissionPolicy - operationId: replaceValidatingAdmissionPolicyStatus + description: replace the specified MutatingAdmissionPolicy + operationId: replaceMutatingAdmissionPolicy parameters: - - description: name of the ValidatingAdmissionPolicy + - description: name of the MutatingAdmissionPolicy in: path name: name required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -21661,52 +23687,60 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1beta1.ValidatingAdmissionPolicy' + $ref: '#/components/schemas/v1alpha1.MutatingAdmissionPolicy' required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1beta1.ValidatingAdmissionPolicy' + $ref: '#/components/schemas/v1alpha1.MutatingAdmissionPolicy' application/yaml: schema: - $ref: '#/components/schemas/v1beta1.ValidatingAdmissionPolicy' + $ref: '#/components/schemas/v1alpha1.MutatingAdmissionPolicy' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta1.ValidatingAdmissionPolicy' + $ref: '#/components/schemas/v1alpha1.MutatingAdmissionPolicy' + application/cbor: + schema: + $ref: '#/components/schemas/v1alpha1.MutatingAdmissionPolicy' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1beta1.ValidatingAdmissionPolicy' + $ref: '#/components/schemas/v1alpha1.MutatingAdmissionPolicy' application/yaml: schema: - $ref: '#/components/schemas/v1beta1.ValidatingAdmissionPolicy' + $ref: '#/components/schemas/v1alpha1.MutatingAdmissionPolicy' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta1.ValidatingAdmissionPolicy' + $ref: '#/components/schemas/v1alpha1.MutatingAdmissionPolicy' + application/cbor: + schema: + $ref: '#/components/schemas/v1alpha1.MutatingAdmissionPolicy' description: Created "401": content: {} description: Unauthorized tags: - - admissionregistration_v1beta1 + - admissionregistration_v1alpha1 x-kubernetes-action: put x-kubernetes-group-version-kind: group: admissionregistration.k8s.io - kind: ValidatingAdmissionPolicy - version: v1beta1 + kind: MutatingAdmissionPolicy + version: v1alpha1 x-codegen-request-body-name: body x-contentType: application/json x-accepts: application/json - /apis/admissionregistration.k8s.io/v1beta1/validatingadmissionpolicybindings: + /apis/admissionregistration.k8s.io/v1alpha1/mutatingadmissionpolicybindings: delete: - description: delete collection of ValidatingAdmissionPolicyBinding - operationId: deleteCollectionValidatingAdmissionPolicyBinding + description: delete collection of MutatingAdmissionPolicyBinding + operationId: deleteCollectionMutatingAdmissionPolicyBinding parameters: - - description: If 'true', then the output is pretty printed. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -21742,6 +23776,20 @@ paths: name: gracePeriodSeconds schema: type: integer + - description: 'if set to true, it will trigger an unsafe deletion of the resource + in case the normal deletion flow fails with a corrupt object error. A resource + is considered corrupt if it can not be retrieved from the underlying storage + successfully because of a) its data can not be transformed e.g. decryption + failure, or b) it fails to decode into an object. NOTE: unsafe deletion + ignores finalizer constraints, skips precondition checks, and removes the + object from the storage. WARNING: This may potentially break the cluster + if the workload associated with the resource being unsafe-deleted relies + on normal deletion flow. Use only if you REALLY know what you are doing. + The default value is false, and the user must opt in to enable it' + in: query + name: ignoreStoreReadErrorWithClusterBreakingPotential + schema: + type: boolean - description: A selector to restrict the list of returned objects by their labels. Defaults to everything. in: query @@ -21833,25 +23881,30 @@ paths: application/vnd.kubernetes.protobuf: schema: $ref: '#/components/schemas/v1.Status' + application/cbor: + schema: + $ref: '#/components/schemas/v1.Status' description: OK "401": content: {} description: Unauthorized tags: - - admissionregistration_v1beta1 + - admissionregistration_v1alpha1 x-kubernetes-action: deletecollection x-kubernetes-group-version-kind: group: admissionregistration.k8s.io - kind: ValidatingAdmissionPolicyBinding - version: v1beta1 + kind: MutatingAdmissionPolicyBinding + version: v1alpha1 x-codegen-request-body-name: body x-contentType: application/json x-accepts: application/json get: - description: list or watch objects of kind ValidatingAdmissionPolicyBinding - operationId: listValidatingAdmissionPolicyBinding + description: list or watch objects of kind MutatingAdmissionPolicyBinding + operationId: listMutatingAdmissionPolicyBinding parameters: - - description: If 'true', then the output is pretty printed. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -21945,36 +23998,44 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1beta1.ValidatingAdmissionPolicyBindingList' + $ref: '#/components/schemas/v1alpha1.MutatingAdmissionPolicyBindingList' application/yaml: schema: - $ref: '#/components/schemas/v1beta1.ValidatingAdmissionPolicyBindingList' + $ref: '#/components/schemas/v1alpha1.MutatingAdmissionPolicyBindingList' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta1.ValidatingAdmissionPolicyBindingList' + $ref: '#/components/schemas/v1alpha1.MutatingAdmissionPolicyBindingList' + application/cbor: + schema: + $ref: '#/components/schemas/v1alpha1.MutatingAdmissionPolicyBindingList' application/json;stream=watch: schema: - $ref: '#/components/schemas/v1beta1.ValidatingAdmissionPolicyBindingList' + $ref: '#/components/schemas/v1alpha1.MutatingAdmissionPolicyBindingList' application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: '#/components/schemas/v1beta1.ValidatingAdmissionPolicyBindingList' + $ref: '#/components/schemas/v1alpha1.MutatingAdmissionPolicyBindingList' + application/cbor-seq: + schema: + $ref: '#/components/schemas/v1alpha1.MutatingAdmissionPolicyBindingList' description: OK "401": content: {} description: Unauthorized tags: - - admissionregistration_v1beta1 + - admissionregistration_v1alpha1 x-kubernetes-action: list x-kubernetes-group-version-kind: group: admissionregistration.k8s.io - kind: ValidatingAdmissionPolicyBinding - version: v1beta1 + kind: MutatingAdmissionPolicyBinding + version: v1alpha1 x-accepts: application/json post: - description: create a ValidatingAdmissionPolicyBinding - operationId: createValidatingAdmissionPolicyBinding + description: create a MutatingAdmissionPolicyBinding + operationId: createMutatingAdmissionPolicyBinding parameters: - - description: If 'true', then the output is pretty printed. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -22015,70 +24076,81 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1beta1.ValidatingAdmissionPolicyBinding' + $ref: '#/components/schemas/v1alpha1.MutatingAdmissionPolicyBinding' required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1beta1.ValidatingAdmissionPolicyBinding' + $ref: '#/components/schemas/v1alpha1.MutatingAdmissionPolicyBinding' application/yaml: schema: - $ref: '#/components/schemas/v1beta1.ValidatingAdmissionPolicyBinding' + $ref: '#/components/schemas/v1alpha1.MutatingAdmissionPolicyBinding' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta1.ValidatingAdmissionPolicyBinding' + $ref: '#/components/schemas/v1alpha1.MutatingAdmissionPolicyBinding' + application/cbor: + schema: + $ref: '#/components/schemas/v1alpha1.MutatingAdmissionPolicyBinding' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1beta1.ValidatingAdmissionPolicyBinding' + $ref: '#/components/schemas/v1alpha1.MutatingAdmissionPolicyBinding' application/yaml: schema: - $ref: '#/components/schemas/v1beta1.ValidatingAdmissionPolicyBinding' + $ref: '#/components/schemas/v1alpha1.MutatingAdmissionPolicyBinding' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta1.ValidatingAdmissionPolicyBinding' + $ref: '#/components/schemas/v1alpha1.MutatingAdmissionPolicyBinding' + application/cbor: + schema: + $ref: '#/components/schemas/v1alpha1.MutatingAdmissionPolicyBinding' description: Created "202": content: application/json: schema: - $ref: '#/components/schemas/v1beta1.ValidatingAdmissionPolicyBinding' + $ref: '#/components/schemas/v1alpha1.MutatingAdmissionPolicyBinding' application/yaml: schema: - $ref: '#/components/schemas/v1beta1.ValidatingAdmissionPolicyBinding' + $ref: '#/components/schemas/v1alpha1.MutatingAdmissionPolicyBinding' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta1.ValidatingAdmissionPolicyBinding' + $ref: '#/components/schemas/v1alpha1.MutatingAdmissionPolicyBinding' + application/cbor: + schema: + $ref: '#/components/schemas/v1alpha1.MutatingAdmissionPolicyBinding' description: Accepted "401": content: {} description: Unauthorized tags: - - admissionregistration_v1beta1 + - admissionregistration_v1alpha1 x-kubernetes-action: post x-kubernetes-group-version-kind: group: admissionregistration.k8s.io - kind: ValidatingAdmissionPolicyBinding - version: v1beta1 + kind: MutatingAdmissionPolicyBinding + version: v1alpha1 x-codegen-request-body-name: body x-contentType: application/json x-accepts: application/json - /apis/admissionregistration.k8s.io/v1beta1/validatingadmissionpolicybindings/{name}: + /apis/admissionregistration.k8s.io/v1alpha1/mutatingadmissionpolicybindings/{name}: delete: - description: delete a ValidatingAdmissionPolicyBinding - operationId: deleteValidatingAdmissionPolicyBinding + description: delete a MutatingAdmissionPolicyBinding + operationId: deleteMutatingAdmissionPolicyBinding parameters: - - description: name of the ValidatingAdmissionPolicyBinding + - description: name of the MutatingAdmissionPolicyBinding in: path name: name required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -22100,6 +24172,20 @@ paths: name: gracePeriodSeconds schema: type: integer + - description: 'if set to true, it will trigger an unsafe deletion of the resource + in case the normal deletion flow fails with a corrupt object error. A resource + is considered corrupt if it can not be retrieved from the underlying storage + successfully because of a) its data can not be transformed e.g. decryption + failure, or b) it fails to decode into an object. NOTE: unsafe deletion + ignores finalizer constraints, skips precondition checks, and removes the + object from the storage. WARNING: This may potentially break the cluster + if the workload associated with the resource being unsafe-deleted relies + on normal deletion flow. Use only if you REALLY know what you are doing. + The default value is false, and the user must opt in to enable it' + in: query + name: ignoreStoreReadErrorWithClusterBreakingPotential + schema: + type: boolean - description: '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 @@ -22137,6 +24223,9 @@ paths: application/vnd.kubernetes.protobuf: schema: $ref: '#/components/schemas/v1.Status' + application/cbor: + schema: + $ref: '#/components/schemas/v1.Status' description: OK "202": content: @@ -22149,31 +24238,36 @@ paths: application/vnd.kubernetes.protobuf: schema: $ref: '#/components/schemas/v1.Status' + application/cbor: + schema: + $ref: '#/components/schemas/v1.Status' description: Accepted "401": content: {} description: Unauthorized tags: - - admissionregistration_v1beta1 + - admissionregistration_v1alpha1 x-kubernetes-action: delete x-kubernetes-group-version-kind: group: admissionregistration.k8s.io - kind: ValidatingAdmissionPolicyBinding - version: v1beta1 + kind: MutatingAdmissionPolicyBinding + version: v1alpha1 x-codegen-request-body-name: body x-contentType: application/json x-accepts: application/json get: - description: read the specified ValidatingAdmissionPolicyBinding - operationId: readValidatingAdmissionPolicyBinding + description: read the specified MutatingAdmissionPolicyBinding + operationId: readMutatingAdmissionPolicyBinding parameters: - - description: name of the ValidatingAdmissionPolicyBinding + - description: name of the MutatingAdmissionPolicyBinding in: path name: name required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -22183,36 +24277,41 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1beta1.ValidatingAdmissionPolicyBinding' + $ref: '#/components/schemas/v1alpha1.MutatingAdmissionPolicyBinding' application/yaml: schema: - $ref: '#/components/schemas/v1beta1.ValidatingAdmissionPolicyBinding' + $ref: '#/components/schemas/v1alpha1.MutatingAdmissionPolicyBinding' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta1.ValidatingAdmissionPolicyBinding' + $ref: '#/components/schemas/v1alpha1.MutatingAdmissionPolicyBinding' + application/cbor: + schema: + $ref: '#/components/schemas/v1alpha1.MutatingAdmissionPolicyBinding' description: OK "401": content: {} description: Unauthorized tags: - - admissionregistration_v1beta1 + - admissionregistration_v1alpha1 x-kubernetes-action: get x-kubernetes-group-version-kind: group: admissionregistration.k8s.io - kind: ValidatingAdmissionPolicyBinding - version: v1beta1 + kind: MutatingAdmissionPolicyBinding + version: v1alpha1 x-accepts: application/json patch: - description: partially update the specified ValidatingAdmissionPolicyBinding - operationId: patchValidatingAdmissionPolicyBinding + description: partially update the specified MutatingAdmissionPolicyBinding + operationId: patchMutatingAdmissionPolicyBinding parameters: - - description: name of the ValidatingAdmissionPolicyBinding + - description: name of the MutatingAdmissionPolicyBinding in: path name: name required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -22269,50 +24368,58 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1beta1.ValidatingAdmissionPolicyBinding' + $ref: '#/components/schemas/v1alpha1.MutatingAdmissionPolicyBinding' application/yaml: schema: - $ref: '#/components/schemas/v1beta1.ValidatingAdmissionPolicyBinding' + $ref: '#/components/schemas/v1alpha1.MutatingAdmissionPolicyBinding' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta1.ValidatingAdmissionPolicyBinding' + $ref: '#/components/schemas/v1alpha1.MutatingAdmissionPolicyBinding' + application/cbor: + schema: + $ref: '#/components/schemas/v1alpha1.MutatingAdmissionPolicyBinding' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1beta1.ValidatingAdmissionPolicyBinding' + $ref: '#/components/schemas/v1alpha1.MutatingAdmissionPolicyBinding' application/yaml: schema: - $ref: '#/components/schemas/v1beta1.ValidatingAdmissionPolicyBinding' + $ref: '#/components/schemas/v1alpha1.MutatingAdmissionPolicyBinding' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta1.ValidatingAdmissionPolicyBinding' + $ref: '#/components/schemas/v1alpha1.MutatingAdmissionPolicyBinding' + application/cbor: + schema: + $ref: '#/components/schemas/v1alpha1.MutatingAdmissionPolicyBinding' description: Created "401": content: {} description: Unauthorized tags: - - admissionregistration_v1beta1 + - admissionregistration_v1alpha1 x-kubernetes-action: patch x-kubernetes-group-version-kind: group: admissionregistration.k8s.io - kind: ValidatingAdmissionPolicyBinding - version: v1beta1 + kind: MutatingAdmissionPolicyBinding + version: v1alpha1 x-codegen-request-body-name: body x-contentType: application/json x-accepts: application/json put: - description: replace the specified ValidatingAdmissionPolicyBinding - operationId: replaceValidatingAdmissionPolicyBinding + description: replace the specified MutatingAdmissionPolicyBinding + operationId: replaceMutatingAdmissionPolicyBinding parameters: - - description: name of the ValidatingAdmissionPolicyBinding + - description: name of the MutatingAdmissionPolicyBinding in: path name: name required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -22353,74 +24460,57 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1beta1.ValidatingAdmissionPolicyBinding' + $ref: '#/components/schemas/v1alpha1.MutatingAdmissionPolicyBinding' required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1beta1.ValidatingAdmissionPolicyBinding' + $ref: '#/components/schemas/v1alpha1.MutatingAdmissionPolicyBinding' application/yaml: schema: - $ref: '#/components/schemas/v1beta1.ValidatingAdmissionPolicyBinding' + $ref: '#/components/schemas/v1alpha1.MutatingAdmissionPolicyBinding' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta1.ValidatingAdmissionPolicyBinding' + $ref: '#/components/schemas/v1alpha1.MutatingAdmissionPolicyBinding' + application/cbor: + schema: + $ref: '#/components/schemas/v1alpha1.MutatingAdmissionPolicyBinding' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1beta1.ValidatingAdmissionPolicyBinding' + $ref: '#/components/schemas/v1alpha1.MutatingAdmissionPolicyBinding' application/yaml: schema: - $ref: '#/components/schemas/v1beta1.ValidatingAdmissionPolicyBinding' + $ref: '#/components/schemas/v1alpha1.MutatingAdmissionPolicyBinding' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta1.ValidatingAdmissionPolicyBinding' + $ref: '#/components/schemas/v1alpha1.MutatingAdmissionPolicyBinding' + application/cbor: + schema: + $ref: '#/components/schemas/v1alpha1.MutatingAdmissionPolicyBinding' description: Created "401": content: {} description: Unauthorized tags: - - admissionregistration_v1beta1 + - admissionregistration_v1alpha1 x-kubernetes-action: put x-kubernetes-group-version-kind: group: admissionregistration.k8s.io - kind: ValidatingAdmissionPolicyBinding - version: v1beta1 + kind: MutatingAdmissionPolicyBinding + version: v1alpha1 x-codegen-request-body-name: body x-contentType: application/json x-accepts: application/json - /apis/admissionregistration.k8s.io/v1beta1/watch/validatingadmissionpolicies: {} - /apis/admissionregistration.k8s.io/v1beta1/watch/validatingadmissionpolicies/{name}: {} - /apis/admissionregistration.k8s.io/v1beta1/watch/validatingadmissionpolicybindings: {} - /apis/admissionregistration.k8s.io/v1beta1/watch/validatingadmissionpolicybindings/{name}: {} - /apis/apiextensions.k8s.io/: - get: - description: get information of a group - operationId: getAPIGroup - responses: - "200": - content: - application/json: - schema: - $ref: '#/components/schemas/v1.APIGroup' - application/yaml: - schema: - $ref: '#/components/schemas/v1.APIGroup' - application/vnd.kubernetes.protobuf: - schema: - $ref: '#/components/schemas/v1.APIGroup' - description: OK - "401": - content: {} - description: Unauthorized - tags: - - apiextensions - x-accepts: application/json - /apis/apiextensions.k8s.io/v1/: + /apis/admissionregistration.k8s.io/v1alpha1/watch/mutatingadmissionpolicies: {} + /apis/admissionregistration.k8s.io/v1alpha1/watch/mutatingadmissionpolicies/{name}: {} + /apis/admissionregistration.k8s.io/v1alpha1/watch/mutatingadmissionpolicybindings: {} + /apis/admissionregistration.k8s.io/v1alpha1/watch/mutatingadmissionpolicybindings/{name}: {} + /apis/admissionregistration.k8s.io/v1beta1/: get: description: get available resources operationId: getAPIResources @@ -22436,19 +24526,24 @@ paths: application/vnd.kubernetes.protobuf: schema: $ref: '#/components/schemas/v1.APIResourceList' + application/cbor: + schema: + $ref: '#/components/schemas/v1.APIResourceList' description: OK "401": content: {} description: Unauthorized tags: - - apiextensions_v1 + - admissionregistration_v1beta1 x-accepts: application/json - /apis/apiextensions.k8s.io/v1/customresourcedefinitions: + /apis/admissionregistration.k8s.io/v1beta1/validatingadmissionpolicies: delete: - description: delete collection of CustomResourceDefinition - operationId: deleteCollectionCustomResourceDefinition + description: delete collection of ValidatingAdmissionPolicy + operationId: deleteCollectionValidatingAdmissionPolicy parameters: - - description: If 'true', then the output is pretty printed. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -22484,6 +24579,20 @@ paths: name: gracePeriodSeconds schema: type: integer + - description: 'if set to true, it will trigger an unsafe deletion of the resource + in case the normal deletion flow fails with a corrupt object error. A resource + is considered corrupt if it can not be retrieved from the underlying storage + successfully because of a) its data can not be transformed e.g. decryption + failure, or b) it fails to decode into an object. NOTE: unsafe deletion + ignores finalizer constraints, skips precondition checks, and removes the + object from the storage. WARNING: This may potentially break the cluster + if the workload associated with the resource being unsafe-deleted relies + on normal deletion flow. Use only if you REALLY know what you are doing. + The default value is false, and the user must opt in to enable it' + in: query + name: ignoreStoreReadErrorWithClusterBreakingPotential + schema: + type: boolean - description: A selector to restrict the list of returned objects by their labels. Defaults to everything. in: query @@ -22575,25 +24684,30 @@ paths: application/vnd.kubernetes.protobuf: schema: $ref: '#/components/schemas/v1.Status' + application/cbor: + schema: + $ref: '#/components/schemas/v1.Status' description: OK "401": content: {} description: Unauthorized tags: - - apiextensions_v1 + - admissionregistration_v1beta1 x-kubernetes-action: deletecollection x-kubernetes-group-version-kind: - group: apiextensions.k8s.io - kind: CustomResourceDefinition - version: v1 + group: admissionregistration.k8s.io + kind: ValidatingAdmissionPolicy + version: v1beta1 x-codegen-request-body-name: body x-contentType: application/json x-accepts: application/json get: - description: list or watch objects of kind CustomResourceDefinition - operationId: listCustomResourceDefinition + description: list or watch objects of kind ValidatingAdmissionPolicy + operationId: listValidatingAdmissionPolicy parameters: - - description: If 'true', then the output is pretty printed. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -22687,36 +24801,44 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.CustomResourceDefinitionList' + $ref: '#/components/schemas/v1beta1.ValidatingAdmissionPolicyList' application/yaml: schema: - $ref: '#/components/schemas/v1.CustomResourceDefinitionList' + $ref: '#/components/schemas/v1beta1.ValidatingAdmissionPolicyList' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.CustomResourceDefinitionList' + $ref: '#/components/schemas/v1beta1.ValidatingAdmissionPolicyList' + application/cbor: + schema: + $ref: '#/components/schemas/v1beta1.ValidatingAdmissionPolicyList' application/json;stream=watch: schema: - $ref: '#/components/schemas/v1.CustomResourceDefinitionList' + $ref: '#/components/schemas/v1beta1.ValidatingAdmissionPolicyList' application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: '#/components/schemas/v1.CustomResourceDefinitionList' + $ref: '#/components/schemas/v1beta1.ValidatingAdmissionPolicyList' + application/cbor-seq: + schema: + $ref: '#/components/schemas/v1beta1.ValidatingAdmissionPolicyList' description: OK "401": content: {} description: Unauthorized tags: - - apiextensions_v1 + - admissionregistration_v1beta1 x-kubernetes-action: list x-kubernetes-group-version-kind: - group: apiextensions.k8s.io - kind: CustomResourceDefinition - version: v1 + group: admissionregistration.k8s.io + kind: ValidatingAdmissionPolicy + version: v1beta1 x-accepts: application/json post: - description: create a CustomResourceDefinition - operationId: createCustomResourceDefinition + description: create a ValidatingAdmissionPolicy + operationId: createValidatingAdmissionPolicy parameters: - - description: If 'true', then the output is pretty printed. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -22757,70 +24879,81 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.CustomResourceDefinition' + $ref: '#/components/schemas/v1beta1.ValidatingAdmissionPolicy' required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.CustomResourceDefinition' + $ref: '#/components/schemas/v1beta1.ValidatingAdmissionPolicy' application/yaml: schema: - $ref: '#/components/schemas/v1.CustomResourceDefinition' + $ref: '#/components/schemas/v1beta1.ValidatingAdmissionPolicy' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.CustomResourceDefinition' + $ref: '#/components/schemas/v1beta1.ValidatingAdmissionPolicy' + application/cbor: + schema: + $ref: '#/components/schemas/v1beta1.ValidatingAdmissionPolicy' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.CustomResourceDefinition' + $ref: '#/components/schemas/v1beta1.ValidatingAdmissionPolicy' application/yaml: schema: - $ref: '#/components/schemas/v1.CustomResourceDefinition' + $ref: '#/components/schemas/v1beta1.ValidatingAdmissionPolicy' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.CustomResourceDefinition' + $ref: '#/components/schemas/v1beta1.ValidatingAdmissionPolicy' + application/cbor: + schema: + $ref: '#/components/schemas/v1beta1.ValidatingAdmissionPolicy' description: Created "202": content: application/json: schema: - $ref: '#/components/schemas/v1.CustomResourceDefinition' + $ref: '#/components/schemas/v1beta1.ValidatingAdmissionPolicy' application/yaml: schema: - $ref: '#/components/schemas/v1.CustomResourceDefinition' + $ref: '#/components/schemas/v1beta1.ValidatingAdmissionPolicy' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.CustomResourceDefinition' + $ref: '#/components/schemas/v1beta1.ValidatingAdmissionPolicy' + application/cbor: + schema: + $ref: '#/components/schemas/v1beta1.ValidatingAdmissionPolicy' description: Accepted "401": content: {} description: Unauthorized tags: - - apiextensions_v1 + - admissionregistration_v1beta1 x-kubernetes-action: post x-kubernetes-group-version-kind: - group: apiextensions.k8s.io - kind: CustomResourceDefinition - version: v1 + group: admissionregistration.k8s.io + kind: ValidatingAdmissionPolicy + version: v1beta1 x-codegen-request-body-name: body x-contentType: application/json x-accepts: application/json - /apis/apiextensions.k8s.io/v1/customresourcedefinitions/{name}: + /apis/admissionregistration.k8s.io/v1beta1/validatingadmissionpolicies/{name}: delete: - description: delete a CustomResourceDefinition - operationId: deleteCustomResourceDefinition + description: delete a ValidatingAdmissionPolicy + operationId: deleteValidatingAdmissionPolicy parameters: - - description: name of the CustomResourceDefinition + - description: name of the ValidatingAdmissionPolicy in: path name: name required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -22842,6 +24975,20 @@ paths: name: gracePeriodSeconds schema: type: integer + - description: 'if set to true, it will trigger an unsafe deletion of the resource + in case the normal deletion flow fails with a corrupt object error. A resource + is considered corrupt if it can not be retrieved from the underlying storage + successfully because of a) its data can not be transformed e.g. decryption + failure, or b) it fails to decode into an object. NOTE: unsafe deletion + ignores finalizer constraints, skips precondition checks, and removes the + object from the storage. WARNING: This may potentially break the cluster + if the workload associated with the resource being unsafe-deleted relies + on normal deletion flow. Use only if you REALLY know what you are doing. + The default value is false, and the user must opt in to enable it' + in: query + name: ignoreStoreReadErrorWithClusterBreakingPotential + schema: + type: boolean - description: '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 @@ -22879,6 +25026,9 @@ paths: application/vnd.kubernetes.protobuf: schema: $ref: '#/components/schemas/v1.Status' + application/cbor: + schema: + $ref: '#/components/schemas/v1.Status' description: OK "202": content: @@ -22891,31 +25041,36 @@ paths: application/vnd.kubernetes.protobuf: schema: $ref: '#/components/schemas/v1.Status' + application/cbor: + schema: + $ref: '#/components/schemas/v1.Status' description: Accepted "401": content: {} description: Unauthorized tags: - - apiextensions_v1 + - admissionregistration_v1beta1 x-kubernetes-action: delete x-kubernetes-group-version-kind: - group: apiextensions.k8s.io - kind: CustomResourceDefinition - version: v1 + group: admissionregistration.k8s.io + kind: ValidatingAdmissionPolicy + version: v1beta1 x-codegen-request-body-name: body x-contentType: application/json x-accepts: application/json get: - description: read the specified CustomResourceDefinition - operationId: readCustomResourceDefinition + description: read the specified ValidatingAdmissionPolicy + operationId: readValidatingAdmissionPolicy parameters: - - description: name of the CustomResourceDefinition + - description: name of the ValidatingAdmissionPolicy in: path name: name required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -22925,36 +25080,41 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.CustomResourceDefinition' + $ref: '#/components/schemas/v1beta1.ValidatingAdmissionPolicy' application/yaml: schema: - $ref: '#/components/schemas/v1.CustomResourceDefinition' + $ref: '#/components/schemas/v1beta1.ValidatingAdmissionPolicy' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.CustomResourceDefinition' + $ref: '#/components/schemas/v1beta1.ValidatingAdmissionPolicy' + application/cbor: + schema: + $ref: '#/components/schemas/v1beta1.ValidatingAdmissionPolicy' description: OK "401": content: {} description: Unauthorized tags: - - apiextensions_v1 + - admissionregistration_v1beta1 x-kubernetes-action: get x-kubernetes-group-version-kind: - group: apiextensions.k8s.io - kind: CustomResourceDefinition - version: v1 + group: admissionregistration.k8s.io + kind: ValidatingAdmissionPolicy + version: v1beta1 x-accepts: application/json patch: - description: partially update the specified CustomResourceDefinition - operationId: patchCustomResourceDefinition + description: partially update the specified ValidatingAdmissionPolicy + operationId: patchValidatingAdmissionPolicy parameters: - - description: name of the CustomResourceDefinition + - description: name of the ValidatingAdmissionPolicy in: path name: name required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -23011,50 +25171,58 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.CustomResourceDefinition' + $ref: '#/components/schemas/v1beta1.ValidatingAdmissionPolicy' application/yaml: schema: - $ref: '#/components/schemas/v1.CustomResourceDefinition' + $ref: '#/components/schemas/v1beta1.ValidatingAdmissionPolicy' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.CustomResourceDefinition' + $ref: '#/components/schemas/v1beta1.ValidatingAdmissionPolicy' + application/cbor: + schema: + $ref: '#/components/schemas/v1beta1.ValidatingAdmissionPolicy' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.CustomResourceDefinition' + $ref: '#/components/schemas/v1beta1.ValidatingAdmissionPolicy' application/yaml: schema: - $ref: '#/components/schemas/v1.CustomResourceDefinition' + $ref: '#/components/schemas/v1beta1.ValidatingAdmissionPolicy' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.CustomResourceDefinition' + $ref: '#/components/schemas/v1beta1.ValidatingAdmissionPolicy' + application/cbor: + schema: + $ref: '#/components/schemas/v1beta1.ValidatingAdmissionPolicy' description: Created "401": content: {} description: Unauthorized tags: - - apiextensions_v1 + - admissionregistration_v1beta1 x-kubernetes-action: patch x-kubernetes-group-version-kind: - group: apiextensions.k8s.io - kind: CustomResourceDefinition - version: v1 + group: admissionregistration.k8s.io + kind: ValidatingAdmissionPolicy + version: v1beta1 x-codegen-request-body-name: body x-contentType: application/json x-accepts: application/json put: - description: replace the specified CustomResourceDefinition - operationId: replaceCustomResourceDefinition + description: replace the specified ValidatingAdmissionPolicy + operationId: replaceValidatingAdmissionPolicy parameters: - - description: name of the CustomResourceDefinition + - description: name of the ValidatingAdmissionPolicy in: path name: name required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -23095,58 +25263,66 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.CustomResourceDefinition' + $ref: '#/components/schemas/v1beta1.ValidatingAdmissionPolicy' required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.CustomResourceDefinition' + $ref: '#/components/schemas/v1beta1.ValidatingAdmissionPolicy' application/yaml: schema: - $ref: '#/components/schemas/v1.CustomResourceDefinition' + $ref: '#/components/schemas/v1beta1.ValidatingAdmissionPolicy' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.CustomResourceDefinition' + $ref: '#/components/schemas/v1beta1.ValidatingAdmissionPolicy' + application/cbor: + schema: + $ref: '#/components/schemas/v1beta1.ValidatingAdmissionPolicy' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.CustomResourceDefinition' + $ref: '#/components/schemas/v1beta1.ValidatingAdmissionPolicy' application/yaml: schema: - $ref: '#/components/schemas/v1.CustomResourceDefinition' + $ref: '#/components/schemas/v1beta1.ValidatingAdmissionPolicy' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.CustomResourceDefinition' + $ref: '#/components/schemas/v1beta1.ValidatingAdmissionPolicy' + application/cbor: + schema: + $ref: '#/components/schemas/v1beta1.ValidatingAdmissionPolicy' description: Created "401": content: {} description: Unauthorized tags: - - apiextensions_v1 + - admissionregistration_v1beta1 x-kubernetes-action: put x-kubernetes-group-version-kind: - group: apiextensions.k8s.io - kind: CustomResourceDefinition - version: v1 + group: admissionregistration.k8s.io + kind: ValidatingAdmissionPolicy + version: v1beta1 x-codegen-request-body-name: body x-contentType: application/json x-accepts: application/json - /apis/apiextensions.k8s.io/v1/customresourcedefinitions/{name}/status: + /apis/admissionregistration.k8s.io/v1beta1/validatingadmissionpolicies/{name}/status: get: - description: read status of the specified CustomResourceDefinition - operationId: readCustomResourceDefinitionStatus + description: read status of the specified ValidatingAdmissionPolicy + operationId: readValidatingAdmissionPolicyStatus parameters: - - description: name of the CustomResourceDefinition + - description: name of the ValidatingAdmissionPolicy in: path name: name required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -23156,36 +25332,41 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.CustomResourceDefinition' + $ref: '#/components/schemas/v1beta1.ValidatingAdmissionPolicy' application/yaml: schema: - $ref: '#/components/schemas/v1.CustomResourceDefinition' + $ref: '#/components/schemas/v1beta1.ValidatingAdmissionPolicy' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.CustomResourceDefinition' + $ref: '#/components/schemas/v1beta1.ValidatingAdmissionPolicy' + application/cbor: + schema: + $ref: '#/components/schemas/v1beta1.ValidatingAdmissionPolicy' description: OK "401": content: {} description: Unauthorized tags: - - apiextensions_v1 + - admissionregistration_v1beta1 x-kubernetes-action: get x-kubernetes-group-version-kind: - group: apiextensions.k8s.io - kind: CustomResourceDefinition - version: v1 + group: admissionregistration.k8s.io + kind: ValidatingAdmissionPolicy + version: v1beta1 x-accepts: application/json patch: - description: partially update status of the specified CustomResourceDefinition - operationId: patchCustomResourceDefinitionStatus + description: partially update status of the specified ValidatingAdmissionPolicy + operationId: patchValidatingAdmissionPolicyStatus parameters: - - description: name of the CustomResourceDefinition + - description: name of the ValidatingAdmissionPolicy in: path name: name required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -23242,50 +25423,58 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.CustomResourceDefinition' + $ref: '#/components/schemas/v1beta1.ValidatingAdmissionPolicy' application/yaml: schema: - $ref: '#/components/schemas/v1.CustomResourceDefinition' + $ref: '#/components/schemas/v1beta1.ValidatingAdmissionPolicy' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.CustomResourceDefinition' + $ref: '#/components/schemas/v1beta1.ValidatingAdmissionPolicy' + application/cbor: + schema: + $ref: '#/components/schemas/v1beta1.ValidatingAdmissionPolicy' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.CustomResourceDefinition' + $ref: '#/components/schemas/v1beta1.ValidatingAdmissionPolicy' application/yaml: schema: - $ref: '#/components/schemas/v1.CustomResourceDefinition' + $ref: '#/components/schemas/v1beta1.ValidatingAdmissionPolicy' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.CustomResourceDefinition' + $ref: '#/components/schemas/v1beta1.ValidatingAdmissionPolicy' + application/cbor: + schema: + $ref: '#/components/schemas/v1beta1.ValidatingAdmissionPolicy' description: Created "401": content: {} description: Unauthorized tags: - - apiextensions_v1 + - admissionregistration_v1beta1 x-kubernetes-action: patch x-kubernetes-group-version-kind: - group: apiextensions.k8s.io - kind: CustomResourceDefinition - version: v1 + group: admissionregistration.k8s.io + kind: ValidatingAdmissionPolicy + version: v1beta1 x-codegen-request-body-name: body x-contentType: application/json x-accepts: application/json put: - description: replace status of the specified CustomResourceDefinition - operationId: replaceCustomResourceDefinitionStatus + description: replace status of the specified ValidatingAdmissionPolicy + operationId: replaceValidatingAdmissionPolicyStatus parameters: - - description: name of the CustomResourceDefinition + - description: name of the ValidatingAdmissionPolicy in: path name: name required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -23326,100 +25515,60 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.CustomResourceDefinition' + $ref: '#/components/schemas/v1beta1.ValidatingAdmissionPolicy' required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.CustomResourceDefinition' + $ref: '#/components/schemas/v1beta1.ValidatingAdmissionPolicy' application/yaml: schema: - $ref: '#/components/schemas/v1.CustomResourceDefinition' + $ref: '#/components/schemas/v1beta1.ValidatingAdmissionPolicy' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.CustomResourceDefinition' + $ref: '#/components/schemas/v1beta1.ValidatingAdmissionPolicy' + application/cbor: + schema: + $ref: '#/components/schemas/v1beta1.ValidatingAdmissionPolicy' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.CustomResourceDefinition' + $ref: '#/components/schemas/v1beta1.ValidatingAdmissionPolicy' application/yaml: schema: - $ref: '#/components/schemas/v1.CustomResourceDefinition' + $ref: '#/components/schemas/v1beta1.ValidatingAdmissionPolicy' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.CustomResourceDefinition' + $ref: '#/components/schemas/v1beta1.ValidatingAdmissionPolicy' + application/cbor: + schema: + $ref: '#/components/schemas/v1beta1.ValidatingAdmissionPolicy' description: Created "401": content: {} description: Unauthorized tags: - - apiextensions_v1 + - admissionregistration_v1beta1 x-kubernetes-action: put x-kubernetes-group-version-kind: - group: apiextensions.k8s.io - kind: CustomResourceDefinition - version: v1 + group: admissionregistration.k8s.io + kind: ValidatingAdmissionPolicy + version: v1beta1 x-codegen-request-body-name: body x-contentType: application/json x-accepts: application/json - /apis/apiextensions.k8s.io/v1/watch/customresourcedefinitions: {} - /apis/apiextensions.k8s.io/v1/watch/customresourcedefinitions/{name}: {} - /apis/apiregistration.k8s.io/: - get: - description: get information of a group - operationId: getAPIGroup - responses: - "200": - content: - application/json: - schema: - $ref: '#/components/schemas/v1.APIGroup' - application/yaml: - schema: - $ref: '#/components/schemas/v1.APIGroup' - application/vnd.kubernetes.protobuf: - schema: - $ref: '#/components/schemas/v1.APIGroup' - description: OK - "401": - content: {} - description: Unauthorized - tags: - - apiregistration - x-accepts: application/json - /apis/apiregistration.k8s.io/v1/: - get: - description: get available resources - operationId: getAPIResources - responses: - "200": - content: - application/json: - schema: - $ref: '#/components/schemas/v1.APIResourceList' - application/yaml: - schema: - $ref: '#/components/schemas/v1.APIResourceList' - application/vnd.kubernetes.protobuf: - schema: - $ref: '#/components/schemas/v1.APIResourceList' - description: OK - "401": - content: {} - description: Unauthorized - tags: - - apiregistration_v1 - x-accepts: application/json - /apis/apiregistration.k8s.io/v1/apiservices: + /apis/admissionregistration.k8s.io/v1beta1/validatingadmissionpolicybindings: delete: - description: delete collection of APIService - operationId: deleteCollectionAPIService + description: delete collection of ValidatingAdmissionPolicyBinding + operationId: deleteCollectionValidatingAdmissionPolicyBinding parameters: - - description: If 'true', then the output is pretty printed. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -23455,6 +25604,20 @@ paths: name: gracePeriodSeconds schema: type: integer + - description: 'if set to true, it will trigger an unsafe deletion of the resource + in case the normal deletion flow fails with a corrupt object error. A resource + is considered corrupt if it can not be retrieved from the underlying storage + successfully because of a) its data can not be transformed e.g. decryption + failure, or b) it fails to decode into an object. NOTE: unsafe deletion + ignores finalizer constraints, skips precondition checks, and removes the + object from the storage. WARNING: This may potentially break the cluster + if the workload associated with the resource being unsafe-deleted relies + on normal deletion flow. Use only if you REALLY know what you are doing. + The default value is false, and the user must opt in to enable it' + in: query + name: ignoreStoreReadErrorWithClusterBreakingPotential + schema: + type: boolean - description: A selector to restrict the list of returned objects by their labels. Defaults to everything. in: query @@ -23546,25 +25709,30 @@ paths: application/vnd.kubernetes.protobuf: schema: $ref: '#/components/schemas/v1.Status' + application/cbor: + schema: + $ref: '#/components/schemas/v1.Status' description: OK "401": content: {} description: Unauthorized tags: - - apiregistration_v1 + - admissionregistration_v1beta1 x-kubernetes-action: deletecollection x-kubernetes-group-version-kind: - group: apiregistration.k8s.io - kind: APIService - version: v1 + group: admissionregistration.k8s.io + kind: ValidatingAdmissionPolicyBinding + version: v1beta1 x-codegen-request-body-name: body x-contentType: application/json x-accepts: application/json get: - description: list or watch objects of kind APIService - operationId: listAPIService + description: list or watch objects of kind ValidatingAdmissionPolicyBinding + operationId: listValidatingAdmissionPolicyBinding parameters: - - description: If 'true', then the output is pretty printed. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -23658,36 +25826,44 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.APIServiceList' + $ref: '#/components/schemas/v1beta1.ValidatingAdmissionPolicyBindingList' application/yaml: schema: - $ref: '#/components/schemas/v1.APIServiceList' + $ref: '#/components/schemas/v1beta1.ValidatingAdmissionPolicyBindingList' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.APIServiceList' + $ref: '#/components/schemas/v1beta1.ValidatingAdmissionPolicyBindingList' + application/cbor: + schema: + $ref: '#/components/schemas/v1beta1.ValidatingAdmissionPolicyBindingList' application/json;stream=watch: schema: - $ref: '#/components/schemas/v1.APIServiceList' + $ref: '#/components/schemas/v1beta1.ValidatingAdmissionPolicyBindingList' application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: '#/components/schemas/v1.APIServiceList' + $ref: '#/components/schemas/v1beta1.ValidatingAdmissionPolicyBindingList' + application/cbor-seq: + schema: + $ref: '#/components/schemas/v1beta1.ValidatingAdmissionPolicyBindingList' description: OK "401": content: {} description: Unauthorized tags: - - apiregistration_v1 + - admissionregistration_v1beta1 x-kubernetes-action: list x-kubernetes-group-version-kind: - group: apiregistration.k8s.io - kind: APIService - version: v1 + group: admissionregistration.k8s.io + kind: ValidatingAdmissionPolicyBinding + version: v1beta1 x-accepts: application/json post: - description: create an APIService - operationId: createAPIService + description: create a ValidatingAdmissionPolicyBinding + operationId: createValidatingAdmissionPolicyBinding parameters: - - description: If 'true', then the output is pretty printed. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -23728,70 +25904,81 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.APIService' + $ref: '#/components/schemas/v1beta1.ValidatingAdmissionPolicyBinding' required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.APIService' + $ref: '#/components/schemas/v1beta1.ValidatingAdmissionPolicyBinding' application/yaml: schema: - $ref: '#/components/schemas/v1.APIService' + $ref: '#/components/schemas/v1beta1.ValidatingAdmissionPolicyBinding' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.APIService' + $ref: '#/components/schemas/v1beta1.ValidatingAdmissionPolicyBinding' + application/cbor: + schema: + $ref: '#/components/schemas/v1beta1.ValidatingAdmissionPolicyBinding' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.APIService' + $ref: '#/components/schemas/v1beta1.ValidatingAdmissionPolicyBinding' application/yaml: schema: - $ref: '#/components/schemas/v1.APIService' + $ref: '#/components/schemas/v1beta1.ValidatingAdmissionPolicyBinding' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.APIService' + $ref: '#/components/schemas/v1beta1.ValidatingAdmissionPolicyBinding' + application/cbor: + schema: + $ref: '#/components/schemas/v1beta1.ValidatingAdmissionPolicyBinding' description: Created "202": content: application/json: schema: - $ref: '#/components/schemas/v1.APIService' + $ref: '#/components/schemas/v1beta1.ValidatingAdmissionPolicyBinding' application/yaml: schema: - $ref: '#/components/schemas/v1.APIService' + $ref: '#/components/schemas/v1beta1.ValidatingAdmissionPolicyBinding' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.APIService' + $ref: '#/components/schemas/v1beta1.ValidatingAdmissionPolicyBinding' + application/cbor: + schema: + $ref: '#/components/schemas/v1beta1.ValidatingAdmissionPolicyBinding' description: Accepted "401": content: {} description: Unauthorized tags: - - apiregistration_v1 + - admissionregistration_v1beta1 x-kubernetes-action: post x-kubernetes-group-version-kind: - group: apiregistration.k8s.io - kind: APIService - version: v1 + group: admissionregistration.k8s.io + kind: ValidatingAdmissionPolicyBinding + version: v1beta1 x-codegen-request-body-name: body x-contentType: application/json x-accepts: application/json - /apis/apiregistration.k8s.io/v1/apiservices/{name}: + /apis/admissionregistration.k8s.io/v1beta1/validatingadmissionpolicybindings/{name}: delete: - description: delete an APIService - operationId: deleteAPIService + description: delete a ValidatingAdmissionPolicyBinding + operationId: deleteValidatingAdmissionPolicyBinding parameters: - - description: name of the APIService + - description: name of the ValidatingAdmissionPolicyBinding in: path name: name required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -23813,6 +26000,20 @@ paths: name: gracePeriodSeconds schema: type: integer + - description: 'if set to true, it will trigger an unsafe deletion of the resource + in case the normal deletion flow fails with a corrupt object error. A resource + is considered corrupt if it can not be retrieved from the underlying storage + successfully because of a) its data can not be transformed e.g. decryption + failure, or b) it fails to decode into an object. NOTE: unsafe deletion + ignores finalizer constraints, skips precondition checks, and removes the + object from the storage. WARNING: This may potentially break the cluster + if the workload associated with the resource being unsafe-deleted relies + on normal deletion flow. Use only if you REALLY know what you are doing. + The default value is false, and the user must opt in to enable it' + in: query + name: ignoreStoreReadErrorWithClusterBreakingPotential + schema: + type: boolean - description: '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 @@ -23850,6 +26051,9 @@ paths: application/vnd.kubernetes.protobuf: schema: $ref: '#/components/schemas/v1.Status' + application/cbor: + schema: + $ref: '#/components/schemas/v1.Status' description: OK "202": content: @@ -23862,31 +26066,36 @@ paths: application/vnd.kubernetes.protobuf: schema: $ref: '#/components/schemas/v1.Status' + application/cbor: + schema: + $ref: '#/components/schemas/v1.Status' description: Accepted "401": content: {} description: Unauthorized tags: - - apiregistration_v1 + - admissionregistration_v1beta1 x-kubernetes-action: delete x-kubernetes-group-version-kind: - group: apiregistration.k8s.io - kind: APIService - version: v1 + group: admissionregistration.k8s.io + kind: ValidatingAdmissionPolicyBinding + version: v1beta1 x-codegen-request-body-name: body x-contentType: application/json x-accepts: application/json get: - description: read the specified APIService - operationId: readAPIService + description: read the specified ValidatingAdmissionPolicyBinding + operationId: readValidatingAdmissionPolicyBinding parameters: - - description: name of the APIService + - description: name of the ValidatingAdmissionPolicyBinding in: path name: name required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -23896,36 +26105,41 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.APIService' + $ref: '#/components/schemas/v1beta1.ValidatingAdmissionPolicyBinding' application/yaml: schema: - $ref: '#/components/schemas/v1.APIService' + $ref: '#/components/schemas/v1beta1.ValidatingAdmissionPolicyBinding' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.APIService' + $ref: '#/components/schemas/v1beta1.ValidatingAdmissionPolicyBinding' + application/cbor: + schema: + $ref: '#/components/schemas/v1beta1.ValidatingAdmissionPolicyBinding' description: OK "401": content: {} description: Unauthorized tags: - - apiregistration_v1 + - admissionregistration_v1beta1 x-kubernetes-action: get x-kubernetes-group-version-kind: - group: apiregistration.k8s.io - kind: APIService - version: v1 + group: admissionregistration.k8s.io + kind: ValidatingAdmissionPolicyBinding + version: v1beta1 x-accepts: application/json patch: - description: partially update the specified APIService - operationId: patchAPIService + description: partially update the specified ValidatingAdmissionPolicyBinding + operationId: patchValidatingAdmissionPolicyBinding parameters: - - description: name of the APIService + - description: name of the ValidatingAdmissionPolicyBinding in: path name: name required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -23982,281 +26196,58 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.APIService' - application/yaml: - schema: - $ref: '#/components/schemas/v1.APIService' - application/vnd.kubernetes.protobuf: - schema: - $ref: '#/components/schemas/v1.APIService' - description: OK - "201": - content: - application/json: - schema: - $ref: '#/components/schemas/v1.APIService' + $ref: '#/components/schemas/v1beta1.ValidatingAdmissionPolicyBinding' application/yaml: schema: - $ref: '#/components/schemas/v1.APIService' + $ref: '#/components/schemas/v1beta1.ValidatingAdmissionPolicyBinding' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.APIService' - description: Created - "401": - content: {} - description: Unauthorized - tags: - - apiregistration_v1 - x-kubernetes-action: patch - x-kubernetes-group-version-kind: - group: apiregistration.k8s.io - kind: APIService - version: v1 - x-codegen-request-body-name: body - x-contentType: application/json - x-accepts: application/json - put: - description: replace the specified APIService - operationId: replaceAPIService - parameters: - - description: name of the APIService - in: path - name: name - required: true - schema: - type: string - - description: If 'true', then the output is pretty printed. - in: query - name: pretty - schema: - type: string - - description: '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' - in: query - name: dryRun - schema: - type: string - - description: fieldManager is a name associated with the actor or entity that - is making these changes. The value must be less than or 128 characters long, - and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - in: query - name: fieldManager - schema: - type: string - - description: 'fieldValidation instructs the server on how to handle objects - in the request (POST/PUT/PATCH) containing unknown or duplicate fields. - Valid values are: - Ignore: This will ignore any unknown fields that are - silently dropped from the object, and will ignore all but the last duplicate - field that the decoder encounters. This is the default behavior prior to - v1.23. - Warn: This will send a warning via the standard warning response - header for each unknown field that is dropped from the object, and for each - duplicate field that is encountered. The request will still succeed if there - are no other errors, and will only persist the last of any duplicate fields. - This is the default in v1.23+ - Strict: This will fail the request with - a BadRequest error if any unknown fields would be dropped from the object, - or if any duplicate fields are present. The error returned from the server - will contain all unknown and duplicate fields encountered.' - in: query - name: fieldValidation - schema: - type: string - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/v1.APIService' - required: true - responses: - "200": - content: - application/json: - schema: - $ref: '#/components/schemas/v1.APIService' - application/yaml: - schema: - $ref: '#/components/schemas/v1.APIService' - application/vnd.kubernetes.protobuf: + $ref: '#/components/schemas/v1beta1.ValidatingAdmissionPolicyBinding' + application/cbor: schema: - $ref: '#/components/schemas/v1.APIService' + $ref: '#/components/schemas/v1beta1.ValidatingAdmissionPolicyBinding' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.APIService' - application/yaml: - schema: - $ref: '#/components/schemas/v1.APIService' - application/vnd.kubernetes.protobuf: - schema: - $ref: '#/components/schemas/v1.APIService' - description: Created - "401": - content: {} - description: Unauthorized - tags: - - apiregistration_v1 - x-kubernetes-action: put - x-kubernetes-group-version-kind: - group: apiregistration.k8s.io - kind: APIService - version: v1 - x-codegen-request-body-name: body - x-contentType: application/json - x-accepts: application/json - /apis/apiregistration.k8s.io/v1/apiservices/{name}/status: - get: - description: read status of the specified APIService - operationId: readAPIServiceStatus - parameters: - - description: name of the APIService - in: path - name: name - required: true - schema: - type: string - - description: If 'true', then the output is pretty printed. - in: query - name: pretty - schema: - type: string - responses: - "200": - content: - application/json: - schema: - $ref: '#/components/schemas/v1.APIService' - application/yaml: - schema: - $ref: '#/components/schemas/v1.APIService' - application/vnd.kubernetes.protobuf: - schema: - $ref: '#/components/schemas/v1.APIService' - description: OK - "401": - content: {} - description: Unauthorized - tags: - - apiregistration_v1 - x-kubernetes-action: get - x-kubernetes-group-version-kind: - group: apiregistration.k8s.io - kind: APIService - version: v1 - x-accepts: application/json - patch: - description: partially update status of the specified APIService - operationId: patchAPIServiceStatus - parameters: - - description: name of the APIService - in: path - name: name - required: true - schema: - type: string - - description: If 'true', then the output is pretty printed. - in: query - name: pretty - schema: - type: string - - description: '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' - in: query - name: dryRun - schema: - type: string - - description: fieldManager is a name associated with the actor or entity that - is making these changes. The value must be less than or 128 characters long, - and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - This field is required for apply requests (application/apply-patch) but - optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). - in: query - name: fieldManager - schema: - type: string - - description: 'fieldValidation instructs the server on how to handle objects - in the request (POST/PUT/PATCH) containing unknown or duplicate fields. - Valid values are: - Ignore: This will ignore any unknown fields that are - silently dropped from the object, and will ignore all but the last duplicate - field that the decoder encounters. This is the default behavior prior to - v1.23. - Warn: This will send a warning via the standard warning response - header for each unknown field that is dropped from the object, and for each - duplicate field that is encountered. The request will still succeed if there - are no other errors, and will only persist the last of any duplicate fields. - This is the default in v1.23+ - Strict: This will fail the request with - a BadRequest error if any unknown fields would be dropped from the object, - or if any duplicate fields are present. The error returned from the server - will contain all unknown and duplicate fields encountered.' - in: query - name: fieldValidation - schema: - type: string - - description: Force is going to "force" Apply requests. It means user will - re-acquire conflicting fields owned by other people. Force flag must be - unset for non-apply patch requests. - in: query - name: force - schema: - type: boolean - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/v1.Patch' - required: true - responses: - "200": - content: - application/json: - schema: - $ref: '#/components/schemas/v1.APIService' + $ref: '#/components/schemas/v1beta1.ValidatingAdmissionPolicyBinding' application/yaml: schema: - $ref: '#/components/schemas/v1.APIService' + $ref: '#/components/schemas/v1beta1.ValidatingAdmissionPolicyBinding' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.APIService' - description: OK - "201": - content: - application/json: - schema: - $ref: '#/components/schemas/v1.APIService' - application/yaml: - schema: - $ref: '#/components/schemas/v1.APIService' - application/vnd.kubernetes.protobuf: + $ref: '#/components/schemas/v1beta1.ValidatingAdmissionPolicyBinding' + application/cbor: schema: - $ref: '#/components/schemas/v1.APIService' + $ref: '#/components/schemas/v1beta1.ValidatingAdmissionPolicyBinding' description: Created "401": content: {} description: Unauthorized tags: - - apiregistration_v1 + - admissionregistration_v1beta1 x-kubernetes-action: patch x-kubernetes-group-version-kind: - group: apiregistration.k8s.io - kind: APIService - version: v1 + group: admissionregistration.k8s.io + kind: ValidatingAdmissionPolicyBinding + version: v1beta1 x-codegen-request-body-name: body x-contentType: application/json x-accepts: application/json put: - description: replace status of the specified APIService - operationId: replaceAPIServiceStatus + description: replace the specified ValidatingAdmissionPolicyBinding + operationId: replaceValidatingAdmissionPolicyBinding parameters: - - description: name of the APIService + - description: name of the ValidatingAdmissionPolicyBinding in: path name: name required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -24297,49 +26288,57 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.APIService' + $ref: '#/components/schemas/v1beta1.ValidatingAdmissionPolicyBinding' required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.APIService' + $ref: '#/components/schemas/v1beta1.ValidatingAdmissionPolicyBinding' application/yaml: schema: - $ref: '#/components/schemas/v1.APIService' + $ref: '#/components/schemas/v1beta1.ValidatingAdmissionPolicyBinding' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.APIService' + $ref: '#/components/schemas/v1beta1.ValidatingAdmissionPolicyBinding' + application/cbor: + schema: + $ref: '#/components/schemas/v1beta1.ValidatingAdmissionPolicyBinding' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.APIService' + $ref: '#/components/schemas/v1beta1.ValidatingAdmissionPolicyBinding' application/yaml: schema: - $ref: '#/components/schemas/v1.APIService' + $ref: '#/components/schemas/v1beta1.ValidatingAdmissionPolicyBinding' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.APIService' + $ref: '#/components/schemas/v1beta1.ValidatingAdmissionPolicyBinding' + application/cbor: + schema: + $ref: '#/components/schemas/v1beta1.ValidatingAdmissionPolicyBinding' description: Created "401": content: {} description: Unauthorized tags: - - apiregistration_v1 + - admissionregistration_v1beta1 x-kubernetes-action: put x-kubernetes-group-version-kind: - group: apiregistration.k8s.io - kind: APIService - version: v1 + group: admissionregistration.k8s.io + kind: ValidatingAdmissionPolicyBinding + version: v1beta1 x-codegen-request-body-name: body x-contentType: application/json x-accepts: application/json - /apis/apiregistration.k8s.io/v1/watch/apiservices: {} - /apis/apiregistration.k8s.io/v1/watch/apiservices/{name}: {} - /apis/apps/: + /apis/admissionregistration.k8s.io/v1beta1/watch/validatingadmissionpolicies: {} + /apis/admissionregistration.k8s.io/v1beta1/watch/validatingadmissionpolicies/{name}: {} + /apis/admissionregistration.k8s.io/v1beta1/watch/validatingadmissionpolicybindings: {} + /apis/admissionregistration.k8s.io/v1beta1/watch/validatingadmissionpolicybindings/{name}: {} + /apis/apiextensions.k8s.io/: get: description: get information of a group operationId: getAPIGroup @@ -24360,9 +26359,9 @@ paths: content: {} description: Unauthorized tags: - - apps + - apiextensions x-accepts: application/json - /apis/apps/v1/: + /apis/apiextensions.k8s.io/v1/: get: description: get available resources operationId: getAPIResources @@ -24378,397 +26377,24 @@ paths: application/vnd.kubernetes.protobuf: schema: $ref: '#/components/schemas/v1.APIResourceList' - description: OK - "401": - content: {} - description: Unauthorized - tags: - - apps_v1 - x-accepts: application/json - /apis/apps/v1/controllerrevisions: - get: - description: list or watch objects of kind ControllerRevision - operationId: listControllerRevisionForAllNamespaces - parameters: - - description: 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. - in: query - name: allowWatchBookmarks - schema: - type: boolean - - description: |- - 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. - in: query - name: continue - 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 - - description: A selector to restrict the list of returned objects by their - labels. Defaults to everything. - in: query - name: labelSelector - schema: - type: string - - description: |- - limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. - - The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. - in: query - name: limit - schema: - type: integer - - description: If 'true', then the output is pretty printed. - in: query - name: pretty - schema: - type: string - - description: |- - resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. - - Defaults to unset - in: query - name: resourceVersion - schema: - type: string - - description: |- - resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. - - Defaults to unset - in: query - name: resourceVersionMatch - schema: - type: string - - description: |- - `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic "Bookmark" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `"k8s.io/initial-events-end": "true"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. - - When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan - is interpreted as "data at least as new as the provided `resourceVersion`" - and the bookmark event is send when the state is synced - to a `resourceVersion` at least as fresh as the one provided by the ListOptions. - If `resourceVersion` is unset, this is interpreted as "consistent read" and the - bookmark event is send when the state is synced at least to the moment - when request started being processed. - - `resourceVersionMatch` set to any other value or unset - Invalid error is returned. - - Defaults to true if `resourceVersion=""` or `resourceVersion="0"` (for backward compatibility reasons) and to false otherwise. - in: query - name: sendInitialEvents - schema: - type: boolean - - description: Timeout for the list/watch call. This limits the duration of - the call, regardless of any activity or inactivity. - in: query - name: timeoutSeconds - schema: - type: integer - - description: Watch for changes to the described resources and return them - as a stream of add, update, and remove notifications. Specify resourceVersion. - in: query - name: watch - schema: - type: boolean - responses: - "200": - content: - application/json: - schema: - $ref: '#/components/schemas/v1.ControllerRevisionList' - application/yaml: - schema: - $ref: '#/components/schemas/v1.ControllerRevisionList' - application/vnd.kubernetes.protobuf: - schema: - $ref: '#/components/schemas/v1.ControllerRevisionList' - application/json;stream=watch: - schema: - $ref: '#/components/schemas/v1.ControllerRevisionList' - application/vnd.kubernetes.protobuf;stream=watch: - schema: - $ref: '#/components/schemas/v1.ControllerRevisionList' - description: OK - "401": - content: {} - description: Unauthorized - tags: - - apps_v1 - x-kubernetes-action: list - x-kubernetes-group-version-kind: - group: apps - kind: ControllerRevision - version: v1 - x-accepts: application/json - /apis/apps/v1/daemonsets: - get: - description: list or watch objects of kind DaemonSet - operationId: listDaemonSetForAllNamespaces - parameters: - - description: 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. - in: query - name: allowWatchBookmarks - schema: - type: boolean - - description: |- - 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. - in: query - name: continue - 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 - - description: A selector to restrict the list of returned objects by their - labels. Defaults to everything. - in: query - name: labelSelector - schema: - type: string - - description: |- - limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. - - The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. - in: query - name: limit - schema: - type: integer - - description: If 'true', then the output is pretty printed. - in: query - name: pretty - schema: - type: string - - description: |- - resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. - - Defaults to unset - in: query - name: resourceVersion - schema: - type: string - - description: |- - resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. - - Defaults to unset - in: query - name: resourceVersionMatch - schema: - type: string - - description: |- - `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic "Bookmark" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `"k8s.io/initial-events-end": "true"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. - - When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan - is interpreted as "data at least as new as the provided `resourceVersion`" - and the bookmark event is send when the state is synced - to a `resourceVersion` at least as fresh as the one provided by the ListOptions. - If `resourceVersion` is unset, this is interpreted as "consistent read" and the - bookmark event is send when the state is synced at least to the moment - when request started being processed. - - `resourceVersionMatch` set to any other value or unset - Invalid error is returned. - - Defaults to true if `resourceVersion=""` or `resourceVersion="0"` (for backward compatibility reasons) and to false otherwise. - in: query - name: sendInitialEvents - schema: - type: boolean - - description: Timeout for the list/watch call. This limits the duration of - the call, regardless of any activity or inactivity. - in: query - name: timeoutSeconds - schema: - type: integer - - description: Watch for changes to the described resources and return them - as a stream of add, update, and remove notifications. Specify resourceVersion. - in: query - name: watch - schema: - type: boolean - responses: - "200": - content: - application/json: - schema: - $ref: '#/components/schemas/v1.DaemonSetList' - application/yaml: - schema: - $ref: '#/components/schemas/v1.DaemonSetList' - application/vnd.kubernetes.protobuf: - schema: - $ref: '#/components/schemas/v1.DaemonSetList' - application/json;stream=watch: - schema: - $ref: '#/components/schemas/v1.DaemonSetList' - application/vnd.kubernetes.protobuf;stream=watch: - schema: - $ref: '#/components/schemas/v1.DaemonSetList' - description: OK - "401": - content: {} - description: Unauthorized - tags: - - apps_v1 - x-kubernetes-action: list - x-kubernetes-group-version-kind: - group: apps - kind: DaemonSet - version: v1 - x-accepts: application/json - /apis/apps/v1/deployments: - get: - description: list or watch objects of kind Deployment - operationId: listDeploymentForAllNamespaces - parameters: - - description: 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. - in: query - name: allowWatchBookmarks - schema: - type: boolean - - description: |- - 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. - in: query - name: continue - 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 - - description: A selector to restrict the list of returned objects by their - labels. Defaults to everything. - in: query - name: labelSelector - schema: - type: string - - description: |- - limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. - - The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. - in: query - name: limit - schema: - type: integer - - description: If 'true', then the output is pretty printed. - in: query - name: pretty - schema: - type: string - - description: |- - resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. - - Defaults to unset - in: query - name: resourceVersion - schema: - type: string - - description: |- - resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. - - Defaults to unset - in: query - name: resourceVersionMatch - schema: - type: string - - description: |- - `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic "Bookmark" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `"k8s.io/initial-events-end": "true"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. - - When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan - is interpreted as "data at least as new as the provided `resourceVersion`" - and the bookmark event is send when the state is synced - to a `resourceVersion` at least as fresh as the one provided by the ListOptions. - If `resourceVersion` is unset, this is interpreted as "consistent read" and the - bookmark event is send when the state is synced at least to the moment - when request started being processed. - - `resourceVersionMatch` set to any other value or unset - Invalid error is returned. - - Defaults to true if `resourceVersion=""` or `resourceVersion="0"` (for backward compatibility reasons) and to false otherwise. - in: query - name: sendInitialEvents - schema: - type: boolean - - description: Timeout for the list/watch call. This limits the duration of - the call, regardless of any activity or inactivity. - in: query - name: timeoutSeconds - schema: - type: integer - - description: Watch for changes to the described resources and return them - as a stream of add, update, and remove notifications. Specify resourceVersion. - in: query - name: watch - schema: - type: boolean - responses: - "200": - content: - application/json: - schema: - $ref: '#/components/schemas/v1.DeploymentList' - application/yaml: - schema: - $ref: '#/components/schemas/v1.DeploymentList' - application/vnd.kubernetes.protobuf: - schema: - $ref: '#/components/schemas/v1.DeploymentList' - application/json;stream=watch: + application/cbor: schema: - $ref: '#/components/schemas/v1.DeploymentList' - application/vnd.kubernetes.protobuf;stream=watch: - schema: - $ref: '#/components/schemas/v1.DeploymentList' + $ref: '#/components/schemas/v1.APIResourceList' description: OK "401": content: {} description: Unauthorized tags: - - apps_v1 - x-kubernetes-action: list - x-kubernetes-group-version-kind: - group: apps - kind: Deployment - version: v1 + - apiextensions_v1 x-accepts: application/json - /apis/apps/v1/namespaces/{namespace}/controllerrevisions: + /apis/apiextensions.k8s.io/v1/customresourcedefinitions: delete: - description: delete collection of ControllerRevision - operationId: deleteCollectionNamespacedControllerRevision + description: delete collection of CustomResourceDefinition + operationId: deleteCollectionCustomResourceDefinition parameters: - - description: object name and auth scope, such as for teams and projects - in: path - name: namespace - required: true - schema: - type: string - - description: If 'true', then the output is pretty printed. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -24804,6 +26430,20 @@ paths: name: gracePeriodSeconds schema: type: integer + - description: 'if set to true, it will trigger an unsafe deletion of the resource + in case the normal deletion flow fails with a corrupt object error. A resource + is considered corrupt if it can not be retrieved from the underlying storage + successfully because of a) its data can not be transformed e.g. decryption + failure, or b) it fails to decode into an object. NOTE: unsafe deletion + ignores finalizer constraints, skips precondition checks, and removes the + object from the storage. WARNING: This may potentially break the cluster + if the workload associated with the resource being unsafe-deleted relies + on normal deletion flow. Use only if you REALLY know what you are doing. + The default value is false, and the user must opt in to enable it' + in: query + name: ignoreStoreReadErrorWithClusterBreakingPotential + schema: + type: boolean - description: A selector to restrict the list of returned objects by their labels. Defaults to everything. in: query @@ -24895,31 +26535,30 @@ paths: application/vnd.kubernetes.protobuf: schema: $ref: '#/components/schemas/v1.Status' + application/cbor: + schema: + $ref: '#/components/schemas/v1.Status' description: OK "401": content: {} description: Unauthorized tags: - - apps_v1 + - apiextensions_v1 x-kubernetes-action: deletecollection x-kubernetes-group-version-kind: - group: apps - kind: ControllerRevision + group: apiextensions.k8s.io + kind: CustomResourceDefinition version: v1 x-codegen-request-body-name: body x-contentType: application/json x-accepts: application/json get: - description: list or watch objects of kind ControllerRevision - operationId: listNamespacedControllerRevision + description: list or watch objects of kind CustomResourceDefinition + operationId: listCustomResourceDefinition parameters: - - description: object name and auth scope, such as for teams and projects - in: path - name: namespace - required: true - schema: - type: string - - description: If 'true', then the output is pretty printed. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -25013,42 +26652,44 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.ControllerRevisionList' + $ref: '#/components/schemas/v1.CustomResourceDefinitionList' application/yaml: schema: - $ref: '#/components/schemas/v1.ControllerRevisionList' + $ref: '#/components/schemas/v1.CustomResourceDefinitionList' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.ControllerRevisionList' + $ref: '#/components/schemas/v1.CustomResourceDefinitionList' + application/cbor: + schema: + $ref: '#/components/schemas/v1.CustomResourceDefinitionList' application/json;stream=watch: schema: - $ref: '#/components/schemas/v1.ControllerRevisionList' + $ref: '#/components/schemas/v1.CustomResourceDefinitionList' application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: '#/components/schemas/v1.ControllerRevisionList' + $ref: '#/components/schemas/v1.CustomResourceDefinitionList' + application/cbor-seq: + schema: + $ref: '#/components/schemas/v1.CustomResourceDefinitionList' description: OK "401": content: {} description: Unauthorized tags: - - apps_v1 + - apiextensions_v1 x-kubernetes-action: list x-kubernetes-group-version-kind: - group: apps - kind: ControllerRevision + group: apiextensions.k8s.io + kind: CustomResourceDefinition version: v1 x-accepts: application/json post: - description: create a ControllerRevision - operationId: createNamespacedControllerRevision + description: create a CustomResourceDefinition + operationId: createCustomResourceDefinition parameters: - - description: object name and auth scope, such as for teams and projects - in: path - name: namespace - required: true - schema: - type: string - - description: If 'true', then the output is pretty printed. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -25089,76 +26730,81 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.ControllerRevision' + $ref: '#/components/schemas/v1.CustomResourceDefinition' required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.ControllerRevision' + $ref: '#/components/schemas/v1.CustomResourceDefinition' application/yaml: schema: - $ref: '#/components/schemas/v1.ControllerRevision' + $ref: '#/components/schemas/v1.CustomResourceDefinition' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.ControllerRevision' + $ref: '#/components/schemas/v1.CustomResourceDefinition' + application/cbor: + schema: + $ref: '#/components/schemas/v1.CustomResourceDefinition' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.ControllerRevision' + $ref: '#/components/schemas/v1.CustomResourceDefinition' application/yaml: schema: - $ref: '#/components/schemas/v1.ControllerRevision' + $ref: '#/components/schemas/v1.CustomResourceDefinition' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.ControllerRevision' + $ref: '#/components/schemas/v1.CustomResourceDefinition' + application/cbor: + schema: + $ref: '#/components/schemas/v1.CustomResourceDefinition' description: Created "202": content: application/json: schema: - $ref: '#/components/schemas/v1.ControllerRevision' + $ref: '#/components/schemas/v1.CustomResourceDefinition' application/yaml: schema: - $ref: '#/components/schemas/v1.ControllerRevision' + $ref: '#/components/schemas/v1.CustomResourceDefinition' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.ControllerRevision' + $ref: '#/components/schemas/v1.CustomResourceDefinition' + application/cbor: + schema: + $ref: '#/components/schemas/v1.CustomResourceDefinition' description: Accepted "401": content: {} description: Unauthorized tags: - - apps_v1 + - apiextensions_v1 x-kubernetes-action: post x-kubernetes-group-version-kind: - group: apps - kind: ControllerRevision + group: apiextensions.k8s.io + kind: CustomResourceDefinition version: v1 x-codegen-request-body-name: body x-contentType: application/json x-accepts: application/json - /apis/apps/v1/namespaces/{namespace}/controllerrevisions/{name}: + /apis/apiextensions.k8s.io/v1/customresourcedefinitions/{name}: delete: - description: delete a ControllerRevision - operationId: deleteNamespacedControllerRevision + description: delete a CustomResourceDefinition + operationId: deleteCustomResourceDefinition parameters: - - description: name of the ControllerRevision + - description: name of the CustomResourceDefinition in: path name: name required: true schema: type: string - - description: object name and auth scope, such as for teams and projects - in: path - name: namespace - required: true - schema: - type: string - - description: If 'true', then the output is pretty printed. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -25180,6 +26826,20 @@ paths: name: gracePeriodSeconds schema: type: integer + - description: 'if set to true, it will trigger an unsafe deletion of the resource + in case the normal deletion flow fails with a corrupt object error. A resource + is considered corrupt if it can not be retrieved from the underlying storage + successfully because of a) its data can not be transformed e.g. decryption + failure, or b) it fails to decode into an object. NOTE: unsafe deletion + ignores finalizer constraints, skips precondition checks, and removes the + object from the storage. WARNING: This may potentially break the cluster + if the workload associated with the resource being unsafe-deleted relies + on normal deletion flow. Use only if you REALLY know what you are doing. + The default value is false, and the user must opt in to enable it' + in: query + name: ignoreStoreReadErrorWithClusterBreakingPotential + schema: + type: boolean - description: '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 @@ -25217,6 +26877,9 @@ paths: application/vnd.kubernetes.protobuf: schema: $ref: '#/components/schemas/v1.Status' + application/cbor: + schema: + $ref: '#/components/schemas/v1.Status' description: OK "202": content: @@ -25229,37 +26892,36 @@ paths: application/vnd.kubernetes.protobuf: schema: $ref: '#/components/schemas/v1.Status' + application/cbor: + schema: + $ref: '#/components/schemas/v1.Status' description: Accepted "401": content: {} description: Unauthorized tags: - - apps_v1 + - apiextensions_v1 x-kubernetes-action: delete x-kubernetes-group-version-kind: - group: apps - kind: ControllerRevision + group: apiextensions.k8s.io + kind: CustomResourceDefinition version: v1 x-codegen-request-body-name: body x-contentType: application/json x-accepts: application/json get: - description: read the specified ControllerRevision - operationId: readNamespacedControllerRevision + description: read the specified CustomResourceDefinition + operationId: readCustomResourceDefinition parameters: - - description: name of the ControllerRevision + - description: name of the CustomResourceDefinition in: path name: name required: true schema: type: string - - description: object name and auth scope, such as for teams and projects - in: path - name: namespace - required: true - schema: - type: string - - description: If 'true', then the output is pretty printed. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -25269,42 +26931,41 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.ControllerRevision' + $ref: '#/components/schemas/v1.CustomResourceDefinition' application/yaml: schema: - $ref: '#/components/schemas/v1.ControllerRevision' + $ref: '#/components/schemas/v1.CustomResourceDefinition' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.ControllerRevision' + $ref: '#/components/schemas/v1.CustomResourceDefinition' + application/cbor: + schema: + $ref: '#/components/schemas/v1.CustomResourceDefinition' description: OK "401": content: {} description: Unauthorized tags: - - apps_v1 + - apiextensions_v1 x-kubernetes-action: get x-kubernetes-group-version-kind: - group: apps - kind: ControllerRevision + group: apiextensions.k8s.io + kind: CustomResourceDefinition version: v1 x-accepts: application/json patch: - description: partially update the specified ControllerRevision - operationId: patchNamespacedControllerRevision + description: partially update the specified CustomResourceDefinition + operationId: patchCustomResourceDefinition parameters: - - description: name of the ControllerRevision + - description: name of the CustomResourceDefinition in: path name: name required: true schema: type: string - - description: object name and auth scope, such as for teams and projects - in: path - name: namespace - required: true - schema: - type: string - - description: If 'true', then the output is pretty printed. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -25361,56 +27022,58 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.ControllerRevision' + $ref: '#/components/schemas/v1.CustomResourceDefinition' application/yaml: schema: - $ref: '#/components/schemas/v1.ControllerRevision' + $ref: '#/components/schemas/v1.CustomResourceDefinition' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.ControllerRevision' + $ref: '#/components/schemas/v1.CustomResourceDefinition' + application/cbor: + schema: + $ref: '#/components/schemas/v1.CustomResourceDefinition' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.ControllerRevision' + $ref: '#/components/schemas/v1.CustomResourceDefinition' application/yaml: schema: - $ref: '#/components/schemas/v1.ControllerRevision' + $ref: '#/components/schemas/v1.CustomResourceDefinition' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.ControllerRevision' + $ref: '#/components/schemas/v1.CustomResourceDefinition' + application/cbor: + schema: + $ref: '#/components/schemas/v1.CustomResourceDefinition' description: Created "401": content: {} description: Unauthorized tags: - - apps_v1 + - apiextensions_v1 x-kubernetes-action: patch x-kubernetes-group-version-kind: - group: apps - kind: ControllerRevision + group: apiextensions.k8s.io + kind: CustomResourceDefinition version: v1 x-codegen-request-body-name: body x-contentType: application/json x-accepts: application/json put: - description: replace the specified ControllerRevision - operationId: replaceNamespacedControllerRevision + description: replace the specified CustomResourceDefinition + operationId: replaceCustomResourceDefinition parameters: - - description: name of the ControllerRevision + - description: name of the CustomResourceDefinition in: path name: name required: true schema: type: string - - description: object name and auth scope, such as for teams and projects - in: path - name: namespace - required: true - schema: - type: string - - description: If 'true', then the output is pretty printed. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -25451,66 +27114,371 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.ControllerRevision' + $ref: '#/components/schemas/v1.CustomResourceDefinition' required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.ControllerRevision' + $ref: '#/components/schemas/v1.CustomResourceDefinition' application/yaml: schema: - $ref: '#/components/schemas/v1.ControllerRevision' + $ref: '#/components/schemas/v1.CustomResourceDefinition' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.ControllerRevision' + $ref: '#/components/schemas/v1.CustomResourceDefinition' + application/cbor: + schema: + $ref: '#/components/schemas/v1.CustomResourceDefinition' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.ControllerRevision' + $ref: '#/components/schemas/v1.CustomResourceDefinition' application/yaml: schema: - $ref: '#/components/schemas/v1.ControllerRevision' + $ref: '#/components/schemas/v1.CustomResourceDefinition' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.ControllerRevision' + $ref: '#/components/schemas/v1.CustomResourceDefinition' + application/cbor: + schema: + $ref: '#/components/schemas/v1.CustomResourceDefinition' description: Created "401": content: {} description: Unauthorized tags: - - apps_v1 + - apiextensions_v1 x-kubernetes-action: put x-kubernetes-group-version-kind: - group: apps - kind: ControllerRevision + group: apiextensions.k8s.io + kind: CustomResourceDefinition version: v1 x-codegen-request-body-name: body x-contentType: application/json x-accepts: application/json - /apis/apps/v1/namespaces/{namespace}/daemonsets: - delete: - description: delete collection of DaemonSet - operationId: deleteCollectionNamespacedDaemonSet + /apis/apiextensions.k8s.io/v1/customresourcedefinitions/{name}/status: + get: + description: read status of the specified CustomResourceDefinition + operationId: readCustomResourceDefinitionStatus parameters: - - description: object name and auth scope, such as for teams and projects + - description: name of the CustomResourceDefinition in: path - name: namespace + name: name required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: type: string - - description: |- - 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. + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.CustomResourceDefinition' + application/yaml: + schema: + $ref: '#/components/schemas/v1.CustomResourceDefinition' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.CustomResourceDefinition' + application/cbor: + schema: + $ref: '#/components/schemas/v1.CustomResourceDefinition' + description: OK + "401": + content: {} + description: Unauthorized + tags: + - apiextensions_v1 + x-kubernetes-action: get + x-kubernetes-group-version-kind: + group: apiextensions.k8s.io + kind: CustomResourceDefinition + version: v1 + x-accepts: application/json + patch: + description: partially update status of the specified CustomResourceDefinition + operationId: patchCustomResourceDefinitionStatus + parameters: + - description: name of the CustomResourceDefinition + in: path + name: name + required: true + schema: + type: string + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). + in: query + name: pretty + schema: + type: string + - description: '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' + in: query + name: dryRun + schema: + type: string + - description: fieldManager is a name associated with the actor or entity that + is making these changes. The value must be less than or 128 characters long, + and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + This field is required for apply requests (application/apply-patch) but + optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). + in: query + name: fieldManager + schema: + type: string + - description: 'fieldValidation instructs the server on how to handle objects + in the request (POST/PUT/PATCH) containing unknown or duplicate fields. + Valid values are: - Ignore: This will ignore any unknown fields that are + silently dropped from the object, and will ignore all but the last duplicate + field that the decoder encounters. This is the default behavior prior to + v1.23. - Warn: This will send a warning via the standard warning response + header for each unknown field that is dropped from the object, and for each + duplicate field that is encountered. The request will still succeed if there + are no other errors, and will only persist the last of any duplicate fields. + This is the default in v1.23+ - Strict: This will fail the request with + a BadRequest error if any unknown fields would be dropped from the object, + or if any duplicate fields are present. The error returned from the server + will contain all unknown and duplicate fields encountered.' + in: query + name: fieldValidation + schema: + type: string + - description: Force is going to "force" Apply requests. It means user will + re-acquire conflicting fields owned by other people. Force flag must be + unset for non-apply patch requests. + in: query + name: force + schema: + type: boolean + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/v1.Patch' + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.CustomResourceDefinition' + application/yaml: + schema: + $ref: '#/components/schemas/v1.CustomResourceDefinition' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.CustomResourceDefinition' + application/cbor: + schema: + $ref: '#/components/schemas/v1.CustomResourceDefinition' + description: OK + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.CustomResourceDefinition' + application/yaml: + schema: + $ref: '#/components/schemas/v1.CustomResourceDefinition' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.CustomResourceDefinition' + application/cbor: + schema: + $ref: '#/components/schemas/v1.CustomResourceDefinition' + description: Created + "401": + content: {} + description: Unauthorized + tags: + - apiextensions_v1 + x-kubernetes-action: patch + x-kubernetes-group-version-kind: + group: apiextensions.k8s.io + kind: CustomResourceDefinition + version: v1 + x-codegen-request-body-name: body + x-contentType: application/json + x-accepts: application/json + put: + description: replace status of the specified CustomResourceDefinition + operationId: replaceCustomResourceDefinitionStatus + parameters: + - description: name of the CustomResourceDefinition + in: path + name: name + required: true + schema: + type: string + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). + in: query + name: pretty + schema: + type: string + - description: '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' + in: query + name: dryRun + schema: + type: string + - description: fieldManager is a name associated with the actor or entity that + is making these changes. The value must be less than or 128 characters long, + and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + in: query + name: fieldManager + schema: + type: string + - description: 'fieldValidation instructs the server on how to handle objects + in the request (POST/PUT/PATCH) containing unknown or duplicate fields. + Valid values are: - Ignore: This will ignore any unknown fields that are + silently dropped from the object, and will ignore all but the last duplicate + field that the decoder encounters. This is the default behavior prior to + v1.23. - Warn: This will send a warning via the standard warning response + header for each unknown field that is dropped from the object, and for each + duplicate field that is encountered. The request will still succeed if there + are no other errors, and will only persist the last of any duplicate fields. + This is the default in v1.23+ - Strict: This will fail the request with + a BadRequest error if any unknown fields would be dropped from the object, + or if any duplicate fields are present. The error returned from the server + will contain all unknown and duplicate fields encountered.' + in: query + name: fieldValidation + schema: + type: string + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/v1.CustomResourceDefinition' + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.CustomResourceDefinition' + application/yaml: + schema: + $ref: '#/components/schemas/v1.CustomResourceDefinition' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.CustomResourceDefinition' + application/cbor: + schema: + $ref: '#/components/schemas/v1.CustomResourceDefinition' + description: OK + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.CustomResourceDefinition' + application/yaml: + schema: + $ref: '#/components/schemas/v1.CustomResourceDefinition' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.CustomResourceDefinition' + application/cbor: + schema: + $ref: '#/components/schemas/v1.CustomResourceDefinition' + description: Created + "401": + content: {} + description: Unauthorized + tags: + - apiextensions_v1 + x-kubernetes-action: put + x-kubernetes-group-version-kind: + group: apiextensions.k8s.io + kind: CustomResourceDefinition + version: v1 + x-codegen-request-body-name: body + x-contentType: application/json + x-accepts: application/json + /apis/apiextensions.k8s.io/v1/watch/customresourcedefinitions: {} + /apis/apiextensions.k8s.io/v1/watch/customresourcedefinitions/{name}: {} + /apis/apiregistration.k8s.io/: + get: + description: get information of a group + operationId: getAPIGroup + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.APIGroup' + application/yaml: + schema: + $ref: '#/components/schemas/v1.APIGroup' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.APIGroup' + description: OK + "401": + content: {} + description: Unauthorized + tags: + - apiregistration + x-accepts: application/json + /apis/apiregistration.k8s.io/v1/: + get: + description: get available resources + operationId: getAPIResources + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.APIResourceList' + application/yaml: + schema: + $ref: '#/components/schemas/v1.APIResourceList' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.APIResourceList' + application/cbor: + schema: + $ref: '#/components/schemas/v1.APIResourceList' + description: OK + "401": + content: {} + description: Unauthorized + tags: + - apiregistration_v1 + x-accepts: application/json + /apis/apiregistration.k8s.io/v1/apiservices: + delete: + description: delete collection of APIService + operationId: deleteCollectionAPIService + parameters: + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). + in: query + name: pretty + schema: + type: string + - description: |- + 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. in: query name: continue schema: @@ -25538,6 +27506,20 @@ paths: name: gracePeriodSeconds schema: type: integer + - description: 'if set to true, it will trigger an unsafe deletion of the resource + in case the normal deletion flow fails with a corrupt object error. A resource + is considered corrupt if it can not be retrieved from the underlying storage + successfully because of a) its data can not be transformed e.g. decryption + failure, or b) it fails to decode into an object. NOTE: unsafe deletion + ignores finalizer constraints, skips precondition checks, and removes the + object from the storage. WARNING: This may potentially break the cluster + if the workload associated with the resource being unsafe-deleted relies + on normal deletion flow. Use only if you REALLY know what you are doing. + The default value is false, and the user must opt in to enable it' + in: query + name: ignoreStoreReadErrorWithClusterBreakingPotential + schema: + type: boolean - description: A selector to restrict the list of returned objects by their labels. Defaults to everything. in: query @@ -25629,31 +27611,30 @@ paths: application/vnd.kubernetes.protobuf: schema: $ref: '#/components/schemas/v1.Status' + application/cbor: + schema: + $ref: '#/components/schemas/v1.Status' description: OK "401": content: {} description: Unauthorized tags: - - apps_v1 + - apiregistration_v1 x-kubernetes-action: deletecollection x-kubernetes-group-version-kind: - group: apps - kind: DaemonSet + group: apiregistration.k8s.io + kind: APIService version: v1 x-codegen-request-body-name: body x-contentType: application/json x-accepts: application/json get: - description: list or watch objects of kind DaemonSet - operationId: listNamespacedDaemonSet + description: list or watch objects of kind APIService + operationId: listAPIService parameters: - - description: object name and auth scope, such as for teams and projects - in: path - name: namespace - required: true - schema: - type: string - - description: If 'true', then the output is pretty printed. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -25747,42 +27728,44 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.DaemonSetList' + $ref: '#/components/schemas/v1.APIServiceList' application/yaml: schema: - $ref: '#/components/schemas/v1.DaemonSetList' + $ref: '#/components/schemas/v1.APIServiceList' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.DaemonSetList' + $ref: '#/components/schemas/v1.APIServiceList' + application/cbor: + schema: + $ref: '#/components/schemas/v1.APIServiceList' application/json;stream=watch: schema: - $ref: '#/components/schemas/v1.DaemonSetList' + $ref: '#/components/schemas/v1.APIServiceList' application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: '#/components/schemas/v1.DaemonSetList' + $ref: '#/components/schemas/v1.APIServiceList' + application/cbor-seq: + schema: + $ref: '#/components/schemas/v1.APIServiceList' description: OK "401": content: {} description: Unauthorized tags: - - apps_v1 + - apiregistration_v1 x-kubernetes-action: list x-kubernetes-group-version-kind: - group: apps - kind: DaemonSet + group: apiregistration.k8s.io + kind: APIService version: v1 x-accepts: application/json post: - description: create a DaemonSet - operationId: createNamespacedDaemonSet + description: create an APIService + operationId: createAPIService parameters: - - description: object name and auth scope, such as for teams and projects - in: path - name: namespace - required: true - schema: - type: string - - description: If 'true', then the output is pretty printed. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -25823,76 +27806,81 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.DaemonSet' + $ref: '#/components/schemas/v1.APIService' required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.DaemonSet' + $ref: '#/components/schemas/v1.APIService' application/yaml: schema: - $ref: '#/components/schemas/v1.DaemonSet' + $ref: '#/components/schemas/v1.APIService' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.DaemonSet' + $ref: '#/components/schemas/v1.APIService' + application/cbor: + schema: + $ref: '#/components/schemas/v1.APIService' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.DaemonSet' + $ref: '#/components/schemas/v1.APIService' application/yaml: schema: - $ref: '#/components/schemas/v1.DaemonSet' + $ref: '#/components/schemas/v1.APIService' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.DaemonSet' + $ref: '#/components/schemas/v1.APIService' + application/cbor: + schema: + $ref: '#/components/schemas/v1.APIService' description: Created "202": content: application/json: schema: - $ref: '#/components/schemas/v1.DaemonSet' + $ref: '#/components/schemas/v1.APIService' application/yaml: schema: - $ref: '#/components/schemas/v1.DaemonSet' + $ref: '#/components/schemas/v1.APIService' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.DaemonSet' + $ref: '#/components/schemas/v1.APIService' + application/cbor: + schema: + $ref: '#/components/schemas/v1.APIService' description: Accepted "401": content: {} description: Unauthorized tags: - - apps_v1 + - apiregistration_v1 x-kubernetes-action: post x-kubernetes-group-version-kind: - group: apps - kind: DaemonSet + group: apiregistration.k8s.io + kind: APIService version: v1 x-codegen-request-body-name: body x-contentType: application/json x-accepts: application/json - /apis/apps/v1/namespaces/{namespace}/daemonsets/{name}: + /apis/apiregistration.k8s.io/v1/apiservices/{name}: delete: - description: delete a DaemonSet - operationId: deleteNamespacedDaemonSet + description: delete an APIService + operationId: deleteAPIService parameters: - - description: name of the DaemonSet + - description: name of the APIService in: path name: name required: true schema: type: string - - description: object name and auth scope, such as for teams and projects - in: path - name: namespace - required: true - schema: - type: string - - description: If 'true', then the output is pretty printed. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -25914,6 +27902,20 @@ paths: name: gracePeriodSeconds schema: type: integer + - description: 'if set to true, it will trigger an unsafe deletion of the resource + in case the normal deletion flow fails with a corrupt object error. A resource + is considered corrupt if it can not be retrieved from the underlying storage + successfully because of a) its data can not be transformed e.g. decryption + failure, or b) it fails to decode into an object. NOTE: unsafe deletion + ignores finalizer constraints, skips precondition checks, and removes the + object from the storage. WARNING: This may potentially break the cluster + if the workload associated with the resource being unsafe-deleted relies + on normal deletion flow. Use only if you REALLY know what you are doing. + The default value is false, and the user must opt in to enable it' + in: query + name: ignoreStoreReadErrorWithClusterBreakingPotential + schema: + type: boolean - description: '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 @@ -25951,6 +27953,9 @@ paths: application/vnd.kubernetes.protobuf: schema: $ref: '#/components/schemas/v1.Status' + application/cbor: + schema: + $ref: '#/components/schemas/v1.Status' description: OK "202": content: @@ -25963,37 +27968,36 @@ paths: application/vnd.kubernetes.protobuf: schema: $ref: '#/components/schemas/v1.Status' + application/cbor: + schema: + $ref: '#/components/schemas/v1.Status' description: Accepted "401": content: {} description: Unauthorized tags: - - apps_v1 + - apiregistration_v1 x-kubernetes-action: delete x-kubernetes-group-version-kind: - group: apps - kind: DaemonSet + group: apiregistration.k8s.io + kind: APIService version: v1 x-codegen-request-body-name: body x-contentType: application/json x-accepts: application/json get: - description: read the specified DaemonSet - operationId: readNamespacedDaemonSet + description: read the specified APIService + operationId: readAPIService parameters: - - description: name of the DaemonSet + - description: name of the APIService in: path name: name required: true schema: type: string - - description: object name and auth scope, such as for teams and projects - in: path - name: namespace - required: true - schema: - type: string - - description: If 'true', then the output is pretty printed. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -26003,42 +28007,41 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.DaemonSet' + $ref: '#/components/schemas/v1.APIService' application/yaml: schema: - $ref: '#/components/schemas/v1.DaemonSet' + $ref: '#/components/schemas/v1.APIService' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.DaemonSet' + $ref: '#/components/schemas/v1.APIService' + application/cbor: + schema: + $ref: '#/components/schemas/v1.APIService' description: OK "401": content: {} description: Unauthorized tags: - - apps_v1 + - apiregistration_v1 x-kubernetes-action: get x-kubernetes-group-version-kind: - group: apps - kind: DaemonSet + group: apiregistration.k8s.io + kind: APIService version: v1 x-accepts: application/json patch: - description: partially update the specified DaemonSet - operationId: patchNamespacedDaemonSet + description: partially update the specified APIService + operationId: patchAPIService parameters: - - description: name of the DaemonSet + - description: name of the APIService in: path name: name required: true schema: type: string - - description: object name and auth scope, such as for teams and projects - in: path - name: namespace - required: true - schema: - type: string - - description: If 'true', then the output is pretty printed. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -26095,56 +28098,58 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.DaemonSet' + $ref: '#/components/schemas/v1.APIService' application/yaml: schema: - $ref: '#/components/schemas/v1.DaemonSet' + $ref: '#/components/schemas/v1.APIService' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.DaemonSet' + $ref: '#/components/schemas/v1.APIService' + application/cbor: + schema: + $ref: '#/components/schemas/v1.APIService' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.DaemonSet' + $ref: '#/components/schemas/v1.APIService' application/yaml: schema: - $ref: '#/components/schemas/v1.DaemonSet' + $ref: '#/components/schemas/v1.APIService' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.DaemonSet' + $ref: '#/components/schemas/v1.APIService' + application/cbor: + schema: + $ref: '#/components/schemas/v1.APIService' description: Created "401": content: {} description: Unauthorized tags: - - apps_v1 + - apiregistration_v1 x-kubernetes-action: patch x-kubernetes-group-version-kind: - group: apps - kind: DaemonSet + group: apiregistration.k8s.io + kind: APIService version: v1 x-codegen-request-body-name: body x-contentType: application/json x-accepts: application/json put: - description: replace the specified DaemonSet - operationId: replaceNamespacedDaemonSet + description: replace the specified APIService + operationId: replaceAPIService parameters: - - description: name of the DaemonSet + - description: name of the APIService in: path name: name required: true schema: type: string - - description: object name and auth scope, such as for teams and projects - in: path - name: namespace - required: true - schema: - type: string - - description: If 'true', then the output is pretty printed. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -26185,64 +28190,66 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.DaemonSet' + $ref: '#/components/schemas/v1.APIService' required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.DaemonSet' + $ref: '#/components/schemas/v1.APIService' application/yaml: schema: - $ref: '#/components/schemas/v1.DaemonSet' + $ref: '#/components/schemas/v1.APIService' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.DaemonSet' + $ref: '#/components/schemas/v1.APIService' + application/cbor: + schema: + $ref: '#/components/schemas/v1.APIService' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.DaemonSet' + $ref: '#/components/schemas/v1.APIService' application/yaml: schema: - $ref: '#/components/schemas/v1.DaemonSet' + $ref: '#/components/schemas/v1.APIService' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.DaemonSet' + $ref: '#/components/schemas/v1.APIService' + application/cbor: + schema: + $ref: '#/components/schemas/v1.APIService' description: Created "401": content: {} description: Unauthorized tags: - - apps_v1 + - apiregistration_v1 x-kubernetes-action: put x-kubernetes-group-version-kind: - group: apps - kind: DaemonSet + group: apiregistration.k8s.io + kind: APIService version: v1 x-codegen-request-body-name: body x-contentType: application/json x-accepts: application/json - /apis/apps/v1/namespaces/{namespace}/daemonsets/{name}/status: + /apis/apiregistration.k8s.io/v1/apiservices/{name}/status: get: - description: read status of the specified DaemonSet - operationId: readNamespacedDaemonSetStatus + description: read status of the specified APIService + operationId: readAPIServiceStatus parameters: - - description: name of the DaemonSet + - description: name of the APIService in: path name: name required: true schema: type: string - - description: object name and auth scope, such as for teams and projects - in: path - name: namespace - required: true - schema: - type: string - - description: If 'true', then the output is pretty printed. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -26252,42 +28259,41 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.DaemonSet' + $ref: '#/components/schemas/v1.APIService' application/yaml: schema: - $ref: '#/components/schemas/v1.DaemonSet' + $ref: '#/components/schemas/v1.APIService' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.DaemonSet' + $ref: '#/components/schemas/v1.APIService' + application/cbor: + schema: + $ref: '#/components/schemas/v1.APIService' description: OK "401": content: {} description: Unauthorized tags: - - apps_v1 + - apiregistration_v1 x-kubernetes-action: get x-kubernetes-group-version-kind: - group: apps - kind: DaemonSet + group: apiregistration.k8s.io + kind: APIService version: v1 x-accepts: application/json patch: - description: partially update status of the specified DaemonSet - operationId: patchNamespacedDaemonSetStatus + description: partially update status of the specified APIService + operationId: patchAPIServiceStatus parameters: - - description: name of the DaemonSet + - description: name of the APIService in: path name: name required: true schema: type: string - - description: object name and auth scope, such as for teams and projects - in: path - name: namespace - required: true - schema: - type: string - - description: If 'true', then the output is pretty printed. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -26344,56 +28350,58 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.DaemonSet' + $ref: '#/components/schemas/v1.APIService' application/yaml: schema: - $ref: '#/components/schemas/v1.DaemonSet' + $ref: '#/components/schemas/v1.APIService' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.DaemonSet' + $ref: '#/components/schemas/v1.APIService' + application/cbor: + schema: + $ref: '#/components/schemas/v1.APIService' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.DaemonSet' + $ref: '#/components/schemas/v1.APIService' application/yaml: schema: - $ref: '#/components/schemas/v1.DaemonSet' + $ref: '#/components/schemas/v1.APIService' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.DaemonSet' + $ref: '#/components/schemas/v1.APIService' + application/cbor: + schema: + $ref: '#/components/schemas/v1.APIService' description: Created "401": content: {} description: Unauthorized tags: - - apps_v1 + - apiregistration_v1 x-kubernetes-action: patch x-kubernetes-group-version-kind: - group: apps - kind: DaemonSet + group: apiregistration.k8s.io + kind: APIService version: v1 x-codegen-request-body-name: body x-contentType: application/json x-accepts: application/json put: - description: replace status of the specified DaemonSet - operationId: replaceNamespacedDaemonSetStatus + description: replace status of the specified APIService + operationId: replaceAPIServiceStatus parameters: - - description: name of the DaemonSet + - description: name of the APIService in: path name: name required: true schema: type: string - - description: object name and auth scope, such as for teams and projects - in: path - name: namespace - required: true - schema: - type: string - - description: If 'true', then the output is pretty printed. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -26434,62 +28442,118 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.DaemonSet' + $ref: '#/components/schemas/v1.APIService' required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.DaemonSet' + $ref: '#/components/schemas/v1.APIService' application/yaml: schema: - $ref: '#/components/schemas/v1.DaemonSet' + $ref: '#/components/schemas/v1.APIService' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.DaemonSet' + $ref: '#/components/schemas/v1.APIService' + application/cbor: + schema: + $ref: '#/components/schemas/v1.APIService' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.DaemonSet' + $ref: '#/components/schemas/v1.APIService' application/yaml: schema: - $ref: '#/components/schemas/v1.DaemonSet' + $ref: '#/components/schemas/v1.APIService' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.DaemonSet' + $ref: '#/components/schemas/v1.APIService' + application/cbor: + schema: + $ref: '#/components/schemas/v1.APIService' description: Created "401": content: {} description: Unauthorized tags: - - apps_v1 + - apiregistration_v1 x-kubernetes-action: put x-kubernetes-group-version-kind: - group: apps - kind: DaemonSet + group: apiregistration.k8s.io + kind: APIService version: v1 x-codegen-request-body-name: body x-contentType: application/json x-accepts: application/json - /apis/apps/v1/namespaces/{namespace}/deployments: - delete: - description: delete collection of Deployment - operationId: deleteCollectionNamespacedDeployment + /apis/apiregistration.k8s.io/v1/watch/apiservices: {} + /apis/apiregistration.k8s.io/v1/watch/apiservices/{name}: {} + /apis/apps/: + get: + description: get information of a group + operationId: getAPIGroup + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.APIGroup' + application/yaml: + schema: + $ref: '#/components/schemas/v1.APIGroup' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.APIGroup' + description: OK + "401": + content: {} + description: Unauthorized + tags: + - apps + x-accepts: application/json + /apis/apps/v1/: + get: + description: get available resources + operationId: getAPIResources + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.APIResourceList' + application/yaml: + schema: + $ref: '#/components/schemas/v1.APIResourceList' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.APIResourceList' + application/cbor: + schema: + $ref: '#/components/schemas/v1.APIResourceList' + description: OK + "401": + content: {} + description: Unauthorized + tags: + - apps_v1 + x-accepts: application/json + /apis/apps/v1/controllerrevisions: + get: + description: list or watch objects of kind ControllerRevision + operationId: listControllerRevisionForAllNamespaces parameters: - - description: object name and auth scope, such as for teams and projects - in: path - name: namespace - required: true - schema: - type: string - - description: If 'true', then the output is pretty printed. + - description: 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. in: query - name: pretty + name: allowWatchBookmarks schema: - type: string + type: boolean - description: |- 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". @@ -26498,29 +28562,12 @@ paths: name: continue schema: type: string - - description: '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' - in: query - 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 - - description: 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. - in: query - name: gracePeriodSeconds - schema: - type: integer - description: A selector to restrict the list of returned objects by their labels. Defaults to everything. in: query @@ -26535,23 +28582,11 @@ paths: name: limit schema: type: integer - - description: '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.' - in: query - name: orphanDependents - schema: - type: boolean - - description: '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.' + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query - name: propagationPolicy + name: pretty schema: type: string - description: |- @@ -26594,53 +28629,53 @@ paths: name: timeoutSeconds schema: type: integer - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/v1.DeleteOptions' - required: false + - description: Watch for changes to the described resources and return them + as a stream of add, update, and remove notifications. Specify resourceVersion. + in: query + name: watch + schema: + type: boolean responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.Status' + $ref: '#/components/schemas/v1.ControllerRevisionList' application/yaml: schema: - $ref: '#/components/schemas/v1.Status' + $ref: '#/components/schemas/v1.ControllerRevisionList' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Status' + $ref: '#/components/schemas/v1.ControllerRevisionList' + application/cbor: + schema: + $ref: '#/components/schemas/v1.ControllerRevisionList' + application/json;stream=watch: + schema: + $ref: '#/components/schemas/v1.ControllerRevisionList' + application/vnd.kubernetes.protobuf;stream=watch: + schema: + $ref: '#/components/schemas/v1.ControllerRevisionList' + application/cbor-seq: + schema: + $ref: '#/components/schemas/v1.ControllerRevisionList' description: OK "401": content: {} description: Unauthorized tags: - apps_v1 - x-kubernetes-action: deletecollection + x-kubernetes-action: list x-kubernetes-group-version-kind: group: apps - kind: Deployment + kind: ControllerRevision version: v1 - x-codegen-request-body-name: body - x-contentType: application/json x-accepts: application/json + /apis/apps/v1/daemonsets: get: - description: list or watch objects of kind Deployment - operationId: listNamespacedDeployment + description: list or watch objects of kind DaemonSet + operationId: listDaemonSetForAllNamespaces parameters: - - description: object name and auth scope, such as for teams and projects - in: path - name: namespace - required: true - schema: - type: string - - description: If 'true', then the output is pretty printed. - in: query - name: pretty - schema: - type: string - description: 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 @@ -26679,6 +28714,13 @@ paths: name: limit schema: type: integer + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). + in: query + name: pretty + schema: + type: string - description: |- resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. @@ -26730,19 +28772,25 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.DeploymentList' + $ref: '#/components/schemas/v1.DaemonSetList' application/yaml: schema: - $ref: '#/components/schemas/v1.DeploymentList' + $ref: '#/components/schemas/v1.DaemonSetList' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.DeploymentList' + $ref: '#/components/schemas/v1.DaemonSetList' + application/cbor: + schema: + $ref: '#/components/schemas/v1.DaemonSetList' application/json;stream=watch: schema: - $ref: '#/components/schemas/v1.DeploymentList' + $ref: '#/components/schemas/v1.DaemonSetList' application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: '#/components/schemas/v1.DeploymentList' + $ref: '#/components/schemas/v1.DaemonSetList' + application/cbor-seq: + schema: + $ref: '#/components/schemas/v1.DaemonSetList' description: OK "401": content: {} @@ -26752,134 +28800,167 @@ paths: x-kubernetes-action: list x-kubernetes-group-version-kind: group: apps - kind: Deployment + kind: DaemonSet version: v1 x-accepts: application/json - post: - description: create a Deployment - operationId: createNamespacedDeployment + /apis/apps/v1/deployments: + get: + description: list or watch objects of kind Deployment + operationId: listDeploymentForAllNamespaces parameters: - - description: object name and auth scope, such as for teams and projects - in: path - name: namespace - required: true + - description: 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. + in: query + name: allowWatchBookmarks + schema: + type: boolean + - description: |- + 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. + in: query + name: continue schema: type: string - - description: If 'true', then the output is pretty printed. + - description: A selector to restrict the list of returned objects by their + fields. Defaults to everything. in: query - name: pretty + name: fieldSelector schema: type: string - - description: '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' + - description: A selector to restrict the list of returned objects by their + labels. Defaults to everything. in: query - name: dryRun + name: labelSelector schema: type: string - - description: fieldManager is a name associated with the actor or entity that - is making these changes. The value must be less than or 128 characters long, - and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + - description: |- + limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. + + The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. in: query - name: fieldManager + name: limit + schema: + type: integer + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). + in: query + name: pretty schema: type: string - - description: 'fieldValidation instructs the server on how to handle objects - in the request (POST/PUT/PATCH) containing unknown or duplicate fields. - Valid values are: - Ignore: This will ignore any unknown fields that are - silently dropped from the object, and will ignore all but the last duplicate - field that the decoder encounters. This is the default behavior prior to - v1.23. - Warn: This will send a warning via the standard warning response - header for each unknown field that is dropped from the object, and for each - duplicate field that is encountered. The request will still succeed if there - are no other errors, and will only persist the last of any duplicate fields. - This is the default in v1.23+ - Strict: This will fail the request with - a BadRequest error if any unknown fields would be dropped from the object, - or if any duplicate fields are present. The error returned from the server - will contain all unknown and duplicate fields encountered.' + - description: |- + resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset in: query - name: fieldValidation + name: resourceVersion schema: type: string - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/v1.Deployment' - required: true + - description: |- + resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersionMatch + schema: + type: string + - description: |- + `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic "Bookmark" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `"k8s.io/initial-events-end": "true"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. + + When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan + is interpreted as "data at least as new as the provided `resourceVersion`" + and the bookmark event is send when the state is synced + to a `resourceVersion` at least as fresh as the one provided by the ListOptions. + If `resourceVersion` is unset, this is interpreted as "consistent read" and the + bookmark event is send when the state is synced at least to the moment + when request started being processed. + - `resourceVersionMatch` set to any other value or unset + Invalid error is returned. + + Defaults to true if `resourceVersion=""` or `resourceVersion="0"` (for backward compatibility reasons) and to false otherwise. + in: query + name: sendInitialEvents + schema: + type: boolean + - description: Timeout for the list/watch call. This limits the duration of + the call, regardless of any activity or inactivity. + in: query + name: timeoutSeconds + schema: + type: integer + - description: Watch for changes to the described resources and return them + as a stream of add, update, and remove notifications. Specify resourceVersion. + in: query + name: watch + schema: + type: boolean responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.Deployment' + $ref: '#/components/schemas/v1.DeploymentList' application/yaml: schema: - $ref: '#/components/schemas/v1.Deployment' + $ref: '#/components/schemas/v1.DeploymentList' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Deployment' - description: OK - "201": - content: - application/json: - schema: - $ref: '#/components/schemas/v1.Deployment' - application/yaml: - schema: - $ref: '#/components/schemas/v1.Deployment' - application/vnd.kubernetes.protobuf: + $ref: '#/components/schemas/v1.DeploymentList' + application/cbor: schema: - $ref: '#/components/schemas/v1.Deployment' - description: Created - "202": - content: - application/json: + $ref: '#/components/schemas/v1.DeploymentList' + application/json;stream=watch: schema: - $ref: '#/components/schemas/v1.Deployment' - application/yaml: + $ref: '#/components/schemas/v1.DeploymentList' + application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: '#/components/schemas/v1.Deployment' - application/vnd.kubernetes.protobuf: + $ref: '#/components/schemas/v1.DeploymentList' + application/cbor-seq: schema: - $ref: '#/components/schemas/v1.Deployment' - description: Accepted + $ref: '#/components/schemas/v1.DeploymentList' + description: OK "401": content: {} description: Unauthorized tags: - apps_v1 - x-kubernetes-action: post + x-kubernetes-action: list x-kubernetes-group-version-kind: group: apps kind: Deployment version: v1 - x-codegen-request-body-name: body - x-contentType: application/json x-accepts: application/json - /apis/apps/v1/namespaces/{namespace}/deployments/{name}: + /apis/apps/v1/namespaces/{namespace}/controllerrevisions: delete: - description: delete a Deployment - operationId: deleteNamespacedDeployment + description: delete collection of ControllerRevision + operationId: deleteCollectionNamespacedControllerRevision parameters: - - description: name of the Deployment - in: path - name: name - required: true - schema: - type: string - description: object name and auth scope, such as for teams and projects in: path name: namespace required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: type: string + - description: |- + 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. + in: query + name: continue + schema: + type: string - description: '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 @@ -26888,6 +28969,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 - description: 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 @@ -26897,6 +28984,34 @@ paths: name: gracePeriodSeconds schema: type: integer + - description: 'if set to true, it will trigger an unsafe deletion of the resource + in case the normal deletion flow fails with a corrupt object error. A resource + is considered corrupt if it can not be retrieved from the underlying storage + successfully because of a) its data can not be transformed e.g. decryption + failure, or b) it fails to decode into an object. NOTE: unsafe deletion + ignores finalizer constraints, skips precondition checks, and removes the + object from the storage. WARNING: This may potentially break the cluster + if the workload associated with the resource being unsafe-deleted relies + on normal deletion flow. Use only if you REALLY know what you are doing. + The default value is false, and the user must opt in to enable it' + in: query + name: ignoreStoreReadErrorWithClusterBreakingPotential + schema: + type: boolean + - description: A selector to restrict the list of returned objects by their + labels. Defaults to everything. + in: query + name: labelSelector + schema: + type: string + - description: |- + limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. + + The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + in: query + name: limit + schema: + type: integer - description: '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 @@ -26916,6 +29031,46 @@ paths: name: propagationPolicy schema: type: string + - description: |- + resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersion + schema: + type: string + - description: |- + resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersionMatch + schema: + type: string + - description: |- + `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic "Bookmark" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `"k8s.io/initial-events-end": "true"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. + + When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan + is interpreted as "data at least as new as the provided `resourceVersion`" + and the bookmark event is send when the state is synced + to a `resourceVersion` at least as fresh as the one provided by the ListOptions. + If `resourceVersion` is unset, this is interpreted as "consistent read" and the + bookmark event is send when the state is synced at least to the moment + when request started being processed. + - `resourceVersionMatch` set to any other value or unset + Invalid error is returned. + + Defaults to true if `resourceVersion=""` or `resourceVersion="0"` (for backward compatibility reasons) and to false otherwise. + in: query + name: sendInitialEvents + schema: + type: boolean + - description: Timeout for the list/watch call. This limits the duration of + the call, regardless of any activity or inactivity. + in: query + name: timeoutSeconds + schema: + type: integer requestBody: content: application/json: @@ -26934,200 +29089,173 @@ paths: application/vnd.kubernetes.protobuf: schema: $ref: '#/components/schemas/v1.Status' - description: OK - "202": - content: - application/json: - schema: - $ref: '#/components/schemas/v1.Status' - application/yaml: - schema: - $ref: '#/components/schemas/v1.Status' - application/vnd.kubernetes.protobuf: + application/cbor: schema: $ref: '#/components/schemas/v1.Status' - description: Accepted + description: OK "401": content: {} description: Unauthorized tags: - apps_v1 - x-kubernetes-action: delete + x-kubernetes-action: deletecollection x-kubernetes-group-version-kind: group: apps - kind: Deployment + kind: ControllerRevision version: v1 x-codegen-request-body-name: body x-contentType: application/json x-accepts: application/json get: - description: read the specified Deployment - operationId: readNamespacedDeployment + description: list or watch objects of kind ControllerRevision + operationId: listNamespacedControllerRevision parameters: - - description: name of the Deployment - in: path - name: name - required: true - schema: - type: string - description: object name and auth scope, such as for teams and projects in: path name: namespace required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: type: string - responses: - "200": - content: - application/json: - schema: - $ref: '#/components/schemas/v1.Deployment' - application/yaml: - schema: - $ref: '#/components/schemas/v1.Deployment' - application/vnd.kubernetes.protobuf: - schema: - $ref: '#/components/schemas/v1.Deployment' - description: OK - "401": - content: {} - description: Unauthorized - tags: - - apps_v1 - x-kubernetes-action: get - x-kubernetes-group-version-kind: - group: apps - kind: Deployment - version: v1 - x-accepts: application/json - patch: - description: partially update the specified Deployment - operationId: patchNamespacedDeployment - parameters: - - description: name of the Deployment - in: path - name: name - required: true + - description: 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. + in: query + name: allowWatchBookmarks schema: - type: string - - description: object name and auth scope, such as for teams and projects - in: path - name: namespace - required: true + type: boolean + - description: |- + 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. + in: query + name: continue schema: type: string - - description: If 'true', then the output is pretty printed. + - description: A selector to restrict the list of returned objects by their + fields. Defaults to everything. in: query - name: pretty + name: fieldSelector schema: type: string - - description: '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' + - description: A selector to restrict the list of returned objects by their + labels. Defaults to everything. in: query - name: dryRun + name: labelSelector schema: type: string - - description: fieldManager is a name associated with the actor or entity that - is making these changes. The value must be less than or 128 characters long, - and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - This field is required for apply requests (application/apply-patch) but - optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). + - description: |- + limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. + + The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. in: query - name: fieldManager + name: limit + schema: + type: integer + - description: |- + resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersion schema: type: string - - description: 'fieldValidation instructs the server on how to handle objects - in the request (POST/PUT/PATCH) containing unknown or duplicate fields. - Valid values are: - Ignore: This will ignore any unknown fields that are - silently dropped from the object, and will ignore all but the last duplicate - field that the decoder encounters. This is the default behavior prior to - v1.23. - Warn: This will send a warning via the standard warning response - header for each unknown field that is dropped from the object, and for each - duplicate field that is encountered. The request will still succeed if there - are no other errors, and will only persist the last of any duplicate fields. - This is the default in v1.23+ - Strict: This will fail the request with - a BadRequest error if any unknown fields would be dropped from the object, - or if any duplicate fields are present. The error returned from the server - will contain all unknown and duplicate fields encountered.' + - description: |- + resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset in: query - name: fieldValidation + name: resourceVersionMatch schema: type: string - - description: Force is going to "force" Apply requests. It means user will - re-acquire conflicting fields owned by other people. Force flag must be - unset for non-apply patch requests. + - description: |- + `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic "Bookmark" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `"k8s.io/initial-events-end": "true"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. + + When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan + is interpreted as "data at least as new as the provided `resourceVersion`" + and the bookmark event is send when the state is synced + to a `resourceVersion` at least as fresh as the one provided by the ListOptions. + If `resourceVersion` is unset, this is interpreted as "consistent read" and the + bookmark event is send when the state is synced at least to the moment + when request started being processed. + - `resourceVersionMatch` set to any other value or unset + Invalid error is returned. + + Defaults to true if `resourceVersion=""` or `resourceVersion="0"` (for backward compatibility reasons) and to false otherwise. in: query - name: force + name: sendInitialEvents + schema: + type: boolean + - description: Timeout for the list/watch call. This limits the duration of + the call, regardless of any activity or inactivity. + in: query + name: timeoutSeconds + schema: + type: integer + - description: Watch for changes to the described resources and return them + as a stream of add, update, and remove notifications. Specify resourceVersion. + in: query + name: watch schema: type: boolean - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/v1.Patch' - required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.Deployment' + $ref: '#/components/schemas/v1.ControllerRevisionList' application/yaml: schema: - $ref: '#/components/schemas/v1.Deployment' + $ref: '#/components/schemas/v1.ControllerRevisionList' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Deployment' - description: OK - "201": - content: - application/json: + $ref: '#/components/schemas/v1.ControllerRevisionList' + application/cbor: schema: - $ref: '#/components/schemas/v1.Deployment' - application/yaml: + $ref: '#/components/schemas/v1.ControllerRevisionList' + application/json;stream=watch: schema: - $ref: '#/components/schemas/v1.Deployment' - application/vnd.kubernetes.protobuf: + $ref: '#/components/schemas/v1.ControllerRevisionList' + application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: '#/components/schemas/v1.Deployment' - description: Created + $ref: '#/components/schemas/v1.ControllerRevisionList' + application/cbor-seq: + schema: + $ref: '#/components/schemas/v1.ControllerRevisionList' + description: OK "401": content: {} description: Unauthorized tags: - apps_v1 - x-kubernetes-action: patch + x-kubernetes-action: list x-kubernetes-group-version-kind: group: apps - kind: Deployment + kind: ControllerRevision version: v1 - x-codegen-request-body-name: body - x-contentType: application/json x-accepts: application/json - put: - description: replace the specified Deployment - operationId: replaceNamespacedDeployment + post: + description: create a ControllerRevision + operationId: createNamespacedControllerRevision parameters: - - description: name of the Deployment - in: path - name: name - required: true - schema: - type: string - description: object name and auth scope, such as for teams and projects in: path name: namespace required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -27168,97 +29296,73 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.Deployment' + $ref: '#/components/schemas/v1.ControllerRevision' required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.Deployment' + $ref: '#/components/schemas/v1.ControllerRevision' application/yaml: schema: - $ref: '#/components/schemas/v1.Deployment' + $ref: '#/components/schemas/v1.ControllerRevision' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Deployment' + $ref: '#/components/schemas/v1.ControllerRevision' + application/cbor: + schema: + $ref: '#/components/schemas/v1.ControllerRevision' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.Deployment' + $ref: '#/components/schemas/v1.ControllerRevision' application/yaml: schema: - $ref: '#/components/schemas/v1.Deployment' + $ref: '#/components/schemas/v1.ControllerRevision' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Deployment' + $ref: '#/components/schemas/v1.ControllerRevision' + application/cbor: + schema: + $ref: '#/components/schemas/v1.ControllerRevision' description: Created - "401": - content: {} - description: Unauthorized - tags: - - apps_v1 - x-kubernetes-action: put - x-kubernetes-group-version-kind: - group: apps - kind: Deployment - version: v1 - x-codegen-request-body-name: body - x-contentType: application/json - x-accepts: application/json - /apis/apps/v1/namespaces/{namespace}/deployments/{name}/scale: - get: - description: read scale of the specified Deployment - operationId: readNamespacedDeploymentScale - parameters: - - description: name of the Scale - in: path - name: name - required: true - schema: - type: string - - description: object name and auth scope, such as for teams and projects - in: path - name: namespace - required: true - schema: - type: string - - description: If 'true', then the output is pretty printed. - in: query - name: pretty - schema: - type: string - responses: - "200": + "202": content: application/json: schema: - $ref: '#/components/schemas/v1.Scale' + $ref: '#/components/schemas/v1.ControllerRevision' application/yaml: schema: - $ref: '#/components/schemas/v1.Scale' + $ref: '#/components/schemas/v1.ControllerRevision' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Scale' - description: OK + $ref: '#/components/schemas/v1.ControllerRevision' + application/cbor: + schema: + $ref: '#/components/schemas/v1.ControllerRevision' + description: Accepted "401": content: {} description: Unauthorized tags: - apps_v1 - x-kubernetes-action: get + x-kubernetes-action: post x-kubernetes-group-version-kind: - group: autoscaling - kind: Scale + group: apps + kind: ControllerRevision version: v1 + x-codegen-request-body-name: body + x-contentType: application/json x-accepts: application/json - patch: - description: partially update scale of the specified Deployment - operationId: patchNamespacedDeploymentScale + /apis/apps/v1/namespaces/{namespace}/controllerrevisions/{name}: + delete: + description: delete a ControllerRevision + operationId: deleteNamespacedControllerRevision parameters: - - description: name of the Scale + - description: name of the ControllerRevision in: path name: name required: true @@ -27270,7 +29374,9 @@ paths: required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -27283,186 +29389,103 @@ paths: name: dryRun schema: type: string - - description: fieldManager is a name associated with the actor or entity that - is making these changes. The value must be less than or 128 characters long, - and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - This field is required for apply requests (application/apply-patch) but - optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). - in: query - name: fieldManager - schema: - type: string - - description: 'fieldValidation instructs the server on how to handle objects - in the request (POST/PUT/PATCH) containing unknown or duplicate fields. - Valid values are: - Ignore: This will ignore any unknown fields that are - silently dropped from the object, and will ignore all but the last duplicate - field that the decoder encounters. This is the default behavior prior to - v1.23. - Warn: This will send a warning via the standard warning response - header for each unknown field that is dropped from the object, and for each - duplicate field that is encountered. The request will still succeed if there - are no other errors, and will only persist the last of any duplicate fields. - This is the default in v1.23+ - Strict: This will fail the request with - a BadRequest error if any unknown fields would be dropped from the object, - or if any duplicate fields are present. The error returned from the server - will contain all unknown and duplicate fields encountered.' + - description: 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. in: query - name: fieldValidation + name: gracePeriodSeconds schema: - type: string - - description: Force is going to "force" Apply requests. It means user will - re-acquire conflicting fields owned by other people. Force flag must be - unset for non-apply patch requests. - in: query - name: force + type: integer + - description: 'if set to true, it will trigger an unsafe deletion of the resource + in case the normal deletion flow fails with a corrupt object error. A resource + is considered corrupt if it can not be retrieved from the underlying storage + successfully because of a) its data can not be transformed e.g. decryption + failure, or b) it fails to decode into an object. NOTE: unsafe deletion + ignores finalizer constraints, skips precondition checks, and removes the + object from the storage. WARNING: This may potentially break the cluster + if the workload associated with the resource being unsafe-deleted relies + on normal deletion flow. Use only if you REALLY know what you are doing. + The default value is false, and the user must opt in to enable it' + in: query + name: ignoreStoreReadErrorWithClusterBreakingPotential schema: type: boolean - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/v1.Patch' - required: true - responses: - "200": - content: - application/json: - schema: - $ref: '#/components/schemas/v1.Scale' - application/yaml: - schema: - $ref: '#/components/schemas/v1.Scale' - application/vnd.kubernetes.protobuf: - schema: - $ref: '#/components/schemas/v1.Scale' - description: OK - "201": - content: - application/json: - schema: - $ref: '#/components/schemas/v1.Scale' - application/yaml: - schema: - $ref: '#/components/schemas/v1.Scale' - application/vnd.kubernetes.protobuf: - schema: - $ref: '#/components/schemas/v1.Scale' - description: Created - "401": - content: {} - description: Unauthorized - tags: - - apps_v1 - x-kubernetes-action: patch - x-kubernetes-group-version-kind: - group: autoscaling - kind: Scale - version: v1 - x-codegen-request-body-name: body - x-contentType: application/json - x-accepts: application/json - put: - description: replace scale of the specified Deployment - operationId: replaceNamespacedDeploymentScale - parameters: - - description: name of the Scale - in: path - name: name - required: true - schema: - type: string - - description: object name and auth scope, such as for teams and projects - in: path - name: namespace - required: true - schema: - type: string - - description: If 'true', then the output is pretty printed. - in: query - name: pretty - schema: - type: string - - description: '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' - in: query - name: dryRun - schema: - type: string - - description: fieldManager is a name associated with the actor or entity that - is making these changes. The value must be less than or 128 characters long, - and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + - description: '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.' in: query - name: fieldManager + name: orphanDependents schema: - type: string - - description: 'fieldValidation instructs the server on how to handle objects - in the request (POST/PUT/PATCH) containing unknown or duplicate fields. - Valid values are: - Ignore: This will ignore any unknown fields that are - silently dropped from the object, and will ignore all but the last duplicate - field that the decoder encounters. This is the default behavior prior to - v1.23. - Warn: This will send a warning via the standard warning response - header for each unknown field that is dropped from the object, and for each - duplicate field that is encountered. The request will still succeed if there - are no other errors, and will only persist the last of any duplicate fields. - This is the default in v1.23+ - Strict: This will fail the request with - a BadRequest error if any unknown fields would be dropped from the object, - or if any duplicate fields are present. The error returned from the server - will contain all unknown and duplicate fields encountered.' + type: boolean + - description: '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.' in: query - name: fieldValidation + name: propagationPolicy schema: type: string requestBody: content: application/json: schema: - $ref: '#/components/schemas/v1.Scale' - required: true + $ref: '#/components/schemas/v1.DeleteOptions' + required: false responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.Scale' + $ref: '#/components/schemas/v1.Status' application/yaml: schema: - $ref: '#/components/schemas/v1.Scale' + $ref: '#/components/schemas/v1.Status' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Scale' + $ref: '#/components/schemas/v1.Status' + application/cbor: + schema: + $ref: '#/components/schemas/v1.Status' description: OK - "201": + "202": content: application/json: schema: - $ref: '#/components/schemas/v1.Scale' + $ref: '#/components/schemas/v1.Status' application/yaml: schema: - $ref: '#/components/schemas/v1.Scale' + $ref: '#/components/schemas/v1.Status' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Scale' - description: Created + $ref: '#/components/schemas/v1.Status' + application/cbor: + schema: + $ref: '#/components/schemas/v1.Status' + description: Accepted "401": content: {} description: Unauthorized tags: - apps_v1 - x-kubernetes-action: put + x-kubernetes-action: delete x-kubernetes-group-version-kind: - group: autoscaling - kind: Scale + group: apps + kind: ControllerRevision version: v1 x-codegen-request-body-name: body x-contentType: application/json x-accepts: application/json - /apis/apps/v1/namespaces/{namespace}/deployments/{name}/status: get: - description: read status of the specified Deployment - operationId: readNamespacedDeploymentStatus + description: read the specified ControllerRevision + operationId: readNamespacedControllerRevision parameters: - - description: name of the Deployment + - description: name of the ControllerRevision in: path name: name required: true @@ -27474,7 +29497,9 @@ paths: required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -27484,13 +29509,16 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.Deployment' + $ref: '#/components/schemas/v1.ControllerRevision' application/yaml: schema: - $ref: '#/components/schemas/v1.Deployment' + $ref: '#/components/schemas/v1.ControllerRevision' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Deployment' + $ref: '#/components/schemas/v1.ControllerRevision' + application/cbor: + schema: + $ref: '#/components/schemas/v1.ControllerRevision' description: OK "401": content: {} @@ -27500,14 +29528,14 @@ paths: x-kubernetes-action: get x-kubernetes-group-version-kind: group: apps - kind: Deployment + kind: ControllerRevision version: v1 x-accepts: application/json patch: - description: partially update status of the specified Deployment - operationId: patchNamespacedDeploymentStatus + description: partially update the specified ControllerRevision + operationId: patchNamespacedControllerRevision parameters: - - description: name of the Deployment + - description: name of the ControllerRevision in: path name: name required: true @@ -27519,7 +29547,9 @@ paths: required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -27576,25 +29606,31 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.Deployment' + $ref: '#/components/schemas/v1.ControllerRevision' application/yaml: schema: - $ref: '#/components/schemas/v1.Deployment' + $ref: '#/components/schemas/v1.ControllerRevision' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Deployment' + $ref: '#/components/schemas/v1.ControllerRevision' + application/cbor: + schema: + $ref: '#/components/schemas/v1.ControllerRevision' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.Deployment' + $ref: '#/components/schemas/v1.ControllerRevision' application/yaml: schema: - $ref: '#/components/schemas/v1.Deployment' + $ref: '#/components/schemas/v1.ControllerRevision' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Deployment' + $ref: '#/components/schemas/v1.ControllerRevision' + application/cbor: + schema: + $ref: '#/components/schemas/v1.ControllerRevision' description: Created "401": content: {} @@ -27604,16 +29640,16 @@ paths: x-kubernetes-action: patch x-kubernetes-group-version-kind: group: apps - kind: Deployment + kind: ControllerRevision version: v1 x-codegen-request-body-name: body x-contentType: application/json x-accepts: application/json put: - description: replace status of the specified Deployment - operationId: replaceNamespacedDeploymentStatus + description: replace the specified ControllerRevision + operationId: replaceNamespacedControllerRevision parameters: - - description: name of the Deployment + - description: name of the ControllerRevision in: path name: name required: true @@ -27625,7 +29661,9 @@ paths: required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -27666,32 +29704,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.Deployment' + $ref: '#/components/schemas/v1.ControllerRevision' required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.Deployment' + $ref: '#/components/schemas/v1.ControllerRevision' application/yaml: schema: - $ref: '#/components/schemas/v1.Deployment' + $ref: '#/components/schemas/v1.ControllerRevision' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Deployment' + $ref: '#/components/schemas/v1.ControllerRevision' + application/cbor: + schema: + $ref: '#/components/schemas/v1.ControllerRevision' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.Deployment' + $ref: '#/components/schemas/v1.ControllerRevision' application/yaml: schema: - $ref: '#/components/schemas/v1.Deployment' + $ref: '#/components/schemas/v1.ControllerRevision' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Deployment' + $ref: '#/components/schemas/v1.ControllerRevision' + application/cbor: + schema: + $ref: '#/components/schemas/v1.ControllerRevision' description: Created "401": content: {} @@ -27701,15 +29745,15 @@ paths: x-kubernetes-action: put x-kubernetes-group-version-kind: group: apps - kind: Deployment + kind: ControllerRevision version: v1 x-codegen-request-body-name: body x-contentType: application/json x-accepts: application/json - /apis/apps/v1/namespaces/{namespace}/replicasets: + /apis/apps/v1/namespaces/{namespace}/daemonsets: delete: - description: delete collection of ReplicaSet - operationId: deleteCollectionNamespacedReplicaSet + description: delete collection of DaemonSet + operationId: deleteCollectionNamespacedDaemonSet parameters: - description: object name and auth scope, such as for teams and projects in: path @@ -27717,7 +29761,9 @@ paths: required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -27753,6 +29799,20 @@ paths: name: gracePeriodSeconds schema: type: integer + - description: 'if set to true, it will trigger an unsafe deletion of the resource + in case the normal deletion flow fails with a corrupt object error. A resource + is considered corrupt if it can not be retrieved from the underlying storage + successfully because of a) its data can not be transformed e.g. decryption + failure, or b) it fails to decode into an object. NOTE: unsafe deletion + ignores finalizer constraints, skips precondition checks, and removes the + object from the storage. WARNING: This may potentially break the cluster + if the workload associated with the resource being unsafe-deleted relies + on normal deletion flow. Use only if you REALLY know what you are doing. + The default value is false, and the user must opt in to enable it' + in: query + name: ignoreStoreReadErrorWithClusterBreakingPotential + schema: + type: boolean - description: A selector to restrict the list of returned objects by their labels. Defaults to everything. in: query @@ -27844,6 +29904,9 @@ paths: application/vnd.kubernetes.protobuf: schema: $ref: '#/components/schemas/v1.Status' + application/cbor: + schema: + $ref: '#/components/schemas/v1.Status' description: OK "401": content: {} @@ -27853,14 +29916,14 @@ paths: x-kubernetes-action: deletecollection x-kubernetes-group-version-kind: group: apps - kind: ReplicaSet + kind: DaemonSet version: v1 x-codegen-request-body-name: body x-contentType: application/json x-accepts: application/json get: - description: list or watch objects of kind ReplicaSet - operationId: listNamespacedReplicaSet + description: list or watch objects of kind DaemonSet + operationId: listNamespacedDaemonSet parameters: - description: object name and auth scope, such as for teams and projects in: path @@ -27868,7 +29931,9 @@ paths: required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -27962,19 +30027,25 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.ReplicaSetList' + $ref: '#/components/schemas/v1.DaemonSetList' application/yaml: schema: - $ref: '#/components/schemas/v1.ReplicaSetList' + $ref: '#/components/schemas/v1.DaemonSetList' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.ReplicaSetList' + $ref: '#/components/schemas/v1.DaemonSetList' + application/cbor: + schema: + $ref: '#/components/schemas/v1.DaemonSetList' application/json;stream=watch: schema: - $ref: '#/components/schemas/v1.ReplicaSetList' + $ref: '#/components/schemas/v1.DaemonSetList' application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: '#/components/schemas/v1.ReplicaSetList' + $ref: '#/components/schemas/v1.DaemonSetList' + application/cbor-seq: + schema: + $ref: '#/components/schemas/v1.DaemonSetList' description: OK "401": content: {} @@ -27984,12 +30055,12 @@ paths: x-kubernetes-action: list x-kubernetes-group-version-kind: group: apps - kind: ReplicaSet + kind: DaemonSet version: v1 x-accepts: application/json post: - description: create a ReplicaSet - operationId: createNamespacedReplicaSet + description: create a DaemonSet + operationId: createNamespacedDaemonSet parameters: - description: object name and auth scope, such as for teams and projects in: path @@ -27997,7 +30068,9 @@ paths: required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -28038,44 +30111,53 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.ReplicaSet' + $ref: '#/components/schemas/v1.DaemonSet' required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.ReplicaSet' + $ref: '#/components/schemas/v1.DaemonSet' application/yaml: schema: - $ref: '#/components/schemas/v1.ReplicaSet' + $ref: '#/components/schemas/v1.DaemonSet' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.ReplicaSet' + $ref: '#/components/schemas/v1.DaemonSet' + application/cbor: + schema: + $ref: '#/components/schemas/v1.DaemonSet' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.ReplicaSet' + $ref: '#/components/schemas/v1.DaemonSet' application/yaml: schema: - $ref: '#/components/schemas/v1.ReplicaSet' + $ref: '#/components/schemas/v1.DaemonSet' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.ReplicaSet' + $ref: '#/components/schemas/v1.DaemonSet' + application/cbor: + schema: + $ref: '#/components/schemas/v1.DaemonSet' description: Created "202": content: application/json: schema: - $ref: '#/components/schemas/v1.ReplicaSet' + $ref: '#/components/schemas/v1.DaemonSet' application/yaml: schema: - $ref: '#/components/schemas/v1.ReplicaSet' + $ref: '#/components/schemas/v1.DaemonSet' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.ReplicaSet' + $ref: '#/components/schemas/v1.DaemonSet' + application/cbor: + schema: + $ref: '#/components/schemas/v1.DaemonSet' description: Accepted "401": content: {} @@ -28085,17 +30167,17 @@ paths: x-kubernetes-action: post x-kubernetes-group-version-kind: group: apps - kind: ReplicaSet + kind: DaemonSet version: v1 x-codegen-request-body-name: body x-contentType: application/json x-accepts: application/json - /apis/apps/v1/namespaces/{namespace}/replicasets/{name}: + /apis/apps/v1/namespaces/{namespace}/daemonsets/{name}: delete: - description: delete a ReplicaSet - operationId: deleteNamespacedReplicaSet + description: delete a DaemonSet + operationId: deleteNamespacedDaemonSet parameters: - - description: name of the ReplicaSet + - description: name of the DaemonSet in: path name: name required: true @@ -28107,7 +30189,9 @@ paths: required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -28129,6 +30213,20 @@ paths: name: gracePeriodSeconds schema: type: integer + - description: 'if set to true, it will trigger an unsafe deletion of the resource + in case the normal deletion flow fails with a corrupt object error. A resource + is considered corrupt if it can not be retrieved from the underlying storage + successfully because of a) its data can not be transformed e.g. decryption + failure, or b) it fails to decode into an object. NOTE: unsafe deletion + ignores finalizer constraints, skips precondition checks, and removes the + object from the storage. WARNING: This may potentially break the cluster + if the workload associated with the resource being unsafe-deleted relies + on normal deletion flow. Use only if you REALLY know what you are doing. + The default value is false, and the user must opt in to enable it' + in: query + name: ignoreStoreReadErrorWithClusterBreakingPotential + schema: + type: boolean - description: '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 @@ -28166,6 +30264,9 @@ paths: application/vnd.kubernetes.protobuf: schema: $ref: '#/components/schemas/v1.Status' + application/cbor: + schema: + $ref: '#/components/schemas/v1.Status' description: OK "202": content: @@ -28178,6 +30279,9 @@ paths: application/vnd.kubernetes.protobuf: schema: $ref: '#/components/schemas/v1.Status' + application/cbor: + schema: + $ref: '#/components/schemas/v1.Status' description: Accepted "401": content: {} @@ -28187,16 +30291,16 @@ paths: x-kubernetes-action: delete x-kubernetes-group-version-kind: group: apps - kind: ReplicaSet + kind: DaemonSet version: v1 x-codegen-request-body-name: body x-contentType: application/json x-accepts: application/json get: - description: read the specified ReplicaSet - operationId: readNamespacedReplicaSet + description: read the specified DaemonSet + operationId: readNamespacedDaemonSet parameters: - - description: name of the ReplicaSet + - description: name of the DaemonSet in: path name: name required: true @@ -28208,7 +30312,9 @@ paths: required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -28218,13 +30324,16 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.ReplicaSet' + $ref: '#/components/schemas/v1.DaemonSet' application/yaml: schema: - $ref: '#/components/schemas/v1.ReplicaSet' + $ref: '#/components/schemas/v1.DaemonSet' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.ReplicaSet' + $ref: '#/components/schemas/v1.DaemonSet' + application/cbor: + schema: + $ref: '#/components/schemas/v1.DaemonSet' description: OK "401": content: {} @@ -28234,14 +30343,14 @@ paths: x-kubernetes-action: get x-kubernetes-group-version-kind: group: apps - kind: ReplicaSet + kind: DaemonSet version: v1 x-accepts: application/json patch: - description: partially update the specified ReplicaSet - operationId: patchNamespacedReplicaSet + description: partially update the specified DaemonSet + operationId: patchNamespacedDaemonSet parameters: - - description: name of the ReplicaSet + - description: name of the DaemonSet in: path name: name required: true @@ -28253,7 +30362,9 @@ paths: required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -28310,25 +30421,31 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.ReplicaSet' + $ref: '#/components/schemas/v1.DaemonSet' application/yaml: schema: - $ref: '#/components/schemas/v1.ReplicaSet' + $ref: '#/components/schemas/v1.DaemonSet' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.ReplicaSet' + $ref: '#/components/schemas/v1.DaemonSet' + application/cbor: + schema: + $ref: '#/components/schemas/v1.DaemonSet' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.ReplicaSet' + $ref: '#/components/schemas/v1.DaemonSet' application/yaml: schema: - $ref: '#/components/schemas/v1.ReplicaSet' + $ref: '#/components/schemas/v1.DaemonSet' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.ReplicaSet' + $ref: '#/components/schemas/v1.DaemonSet' + application/cbor: + schema: + $ref: '#/components/schemas/v1.DaemonSet' description: Created "401": content: {} @@ -28338,16 +30455,16 @@ paths: x-kubernetes-action: patch x-kubernetes-group-version-kind: group: apps - kind: ReplicaSet + kind: DaemonSet version: v1 x-codegen-request-body-name: body x-contentType: application/json x-accepts: application/json put: - description: replace the specified ReplicaSet - operationId: replaceNamespacedReplicaSet + description: replace the specified DaemonSet + operationId: replaceNamespacedDaemonSet parameters: - - description: name of the ReplicaSet + - description: name of the DaemonSet in: path name: name required: true @@ -28359,7 +30476,9 @@ paths: required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -28400,281 +30519,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.ReplicaSet' - required: true - responses: - "200": - content: - application/json: - schema: - $ref: '#/components/schemas/v1.ReplicaSet' - application/yaml: - schema: - $ref: '#/components/schemas/v1.ReplicaSet' - application/vnd.kubernetes.protobuf: - schema: - $ref: '#/components/schemas/v1.ReplicaSet' - description: OK - "201": - content: - application/json: - schema: - $ref: '#/components/schemas/v1.ReplicaSet' - application/yaml: - schema: - $ref: '#/components/schemas/v1.ReplicaSet' - application/vnd.kubernetes.protobuf: - schema: - $ref: '#/components/schemas/v1.ReplicaSet' - description: Created - "401": - content: {} - description: Unauthorized - tags: - - apps_v1 - x-kubernetes-action: put - x-kubernetes-group-version-kind: - group: apps - kind: ReplicaSet - version: v1 - x-codegen-request-body-name: body - x-contentType: application/json - x-accepts: application/json - /apis/apps/v1/namespaces/{namespace}/replicasets/{name}/scale: - get: - description: read scale of the specified ReplicaSet - operationId: readNamespacedReplicaSetScale - parameters: - - description: name of the Scale - in: path - name: name - required: true - schema: - type: string - - description: object name and auth scope, such as for teams and projects - in: path - name: namespace + $ref: '#/components/schemas/v1.DaemonSet' required: true - schema: - type: string - - description: If 'true', then the output is pretty printed. - in: query - name: pretty - schema: - type: string responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.Scale' + $ref: '#/components/schemas/v1.DaemonSet' application/yaml: schema: - $ref: '#/components/schemas/v1.Scale' + $ref: '#/components/schemas/v1.DaemonSet' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Scale' - description: OK - "401": - content: {} - description: Unauthorized - tags: - - apps_v1 - x-kubernetes-action: get - x-kubernetes-group-version-kind: - group: autoscaling - kind: Scale - version: v1 - x-accepts: application/json - patch: - description: partially update scale of the specified ReplicaSet - operationId: patchNamespacedReplicaSetScale - parameters: - - description: name of the Scale - in: path - name: name - required: true - schema: - type: string - - description: object name and auth scope, such as for teams and projects - in: path - name: namespace - required: true - schema: - type: string - - description: If 'true', then the output is pretty printed. - in: query - name: pretty - schema: - type: string - - description: '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' - in: query - name: dryRun - schema: - type: string - - description: fieldManager is a name associated with the actor or entity that - is making these changes. The value must be less than or 128 characters long, - and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - This field is required for apply requests (application/apply-patch) but - optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). - in: query - name: fieldManager - schema: - type: string - - description: 'fieldValidation instructs the server on how to handle objects - in the request (POST/PUT/PATCH) containing unknown or duplicate fields. - Valid values are: - Ignore: This will ignore any unknown fields that are - silently dropped from the object, and will ignore all but the last duplicate - field that the decoder encounters. This is the default behavior prior to - v1.23. - Warn: This will send a warning via the standard warning response - header for each unknown field that is dropped from the object, and for each - duplicate field that is encountered. The request will still succeed if there - are no other errors, and will only persist the last of any duplicate fields. - This is the default in v1.23+ - Strict: This will fail the request with - a BadRequest error if any unknown fields would be dropped from the object, - or if any duplicate fields are present. The error returned from the server - will contain all unknown and duplicate fields encountered.' - in: query - name: fieldValidation - schema: - type: string - - description: Force is going to "force" Apply requests. It means user will - re-acquire conflicting fields owned by other people. Force flag must be - unset for non-apply patch requests. - in: query - name: force - schema: - type: boolean - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/v1.Patch' - required: true - responses: - "200": - content: - application/json: - schema: - $ref: '#/components/schemas/v1.Scale' - application/yaml: - schema: - $ref: '#/components/schemas/v1.Scale' - application/vnd.kubernetes.protobuf: + $ref: '#/components/schemas/v1.DaemonSet' + application/cbor: schema: - $ref: '#/components/schemas/v1.Scale' + $ref: '#/components/schemas/v1.DaemonSet' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.Scale' - application/yaml: - schema: - $ref: '#/components/schemas/v1.Scale' - application/vnd.kubernetes.protobuf: - schema: - $ref: '#/components/schemas/v1.Scale' - description: Created - "401": - content: {} - description: Unauthorized - tags: - - apps_v1 - x-kubernetes-action: patch - x-kubernetes-group-version-kind: - group: autoscaling - kind: Scale - version: v1 - x-codegen-request-body-name: body - x-contentType: application/json - x-accepts: application/json - put: - description: replace scale of the specified ReplicaSet - operationId: replaceNamespacedReplicaSetScale - parameters: - - description: name of the Scale - in: path - name: name - required: true - schema: - type: string - - description: object name and auth scope, such as for teams and projects - in: path - name: namespace - required: true - schema: - type: string - - description: If 'true', then the output is pretty printed. - in: query - name: pretty - schema: - type: string - - description: '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' - in: query - name: dryRun - schema: - type: string - - description: fieldManager is a name associated with the actor or entity that - is making these changes. The value must be less than or 128 characters long, - and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - in: query - name: fieldManager - schema: - type: string - - description: 'fieldValidation instructs the server on how to handle objects - in the request (POST/PUT/PATCH) containing unknown or duplicate fields. - Valid values are: - Ignore: This will ignore any unknown fields that are - silently dropped from the object, and will ignore all but the last duplicate - field that the decoder encounters. This is the default behavior prior to - v1.23. - Warn: This will send a warning via the standard warning response - header for each unknown field that is dropped from the object, and for each - duplicate field that is encountered. The request will still succeed if there - are no other errors, and will only persist the last of any duplicate fields. - This is the default in v1.23+ - Strict: This will fail the request with - a BadRequest error if any unknown fields would be dropped from the object, - or if any duplicate fields are present. The error returned from the server - will contain all unknown and duplicate fields encountered.' - in: query - name: fieldValidation - schema: - type: string - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/v1.Scale' - required: true - responses: - "200": - content: - application/json: - schema: - $ref: '#/components/schemas/v1.Scale' + $ref: '#/components/schemas/v1.DaemonSet' application/yaml: schema: - $ref: '#/components/schemas/v1.Scale' + $ref: '#/components/schemas/v1.DaemonSet' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Scale' - description: OK - "201": - content: - application/json: - schema: - $ref: '#/components/schemas/v1.Scale' - application/yaml: - schema: - $ref: '#/components/schemas/v1.Scale' - application/vnd.kubernetes.protobuf: + $ref: '#/components/schemas/v1.DaemonSet' + application/cbor: schema: - $ref: '#/components/schemas/v1.Scale' + $ref: '#/components/schemas/v1.DaemonSet' description: Created "401": content: {} @@ -28683,18 +30559,18 @@ paths: - apps_v1 x-kubernetes-action: put x-kubernetes-group-version-kind: - group: autoscaling - kind: Scale + group: apps + kind: DaemonSet version: v1 x-codegen-request-body-name: body x-contentType: application/json x-accepts: application/json - /apis/apps/v1/namespaces/{namespace}/replicasets/{name}/status: + /apis/apps/v1/namespaces/{namespace}/daemonsets/{name}/status: get: - description: read status of the specified ReplicaSet - operationId: readNamespacedReplicaSetStatus + description: read status of the specified DaemonSet + operationId: readNamespacedDaemonSetStatus parameters: - - description: name of the ReplicaSet + - description: name of the DaemonSet in: path name: name required: true @@ -28706,7 +30582,9 @@ paths: required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -28716,13 +30594,16 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.ReplicaSet' + $ref: '#/components/schemas/v1.DaemonSet' application/yaml: schema: - $ref: '#/components/schemas/v1.ReplicaSet' + $ref: '#/components/schemas/v1.DaemonSet' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.ReplicaSet' + $ref: '#/components/schemas/v1.DaemonSet' + application/cbor: + schema: + $ref: '#/components/schemas/v1.DaemonSet' description: OK "401": content: {} @@ -28732,14 +30613,14 @@ paths: x-kubernetes-action: get x-kubernetes-group-version-kind: group: apps - kind: ReplicaSet + kind: DaemonSet version: v1 x-accepts: application/json patch: - description: partially update status of the specified ReplicaSet - operationId: patchNamespacedReplicaSetStatus + description: partially update status of the specified DaemonSet + operationId: patchNamespacedDaemonSetStatus parameters: - - description: name of the ReplicaSet + - description: name of the DaemonSet in: path name: name required: true @@ -28751,7 +30632,9 @@ paths: required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -28808,25 +30691,31 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.ReplicaSet' + $ref: '#/components/schemas/v1.DaemonSet' application/yaml: schema: - $ref: '#/components/schemas/v1.ReplicaSet' + $ref: '#/components/schemas/v1.DaemonSet' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.ReplicaSet' + $ref: '#/components/schemas/v1.DaemonSet' + application/cbor: + schema: + $ref: '#/components/schemas/v1.DaemonSet' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.ReplicaSet' + $ref: '#/components/schemas/v1.DaemonSet' application/yaml: schema: - $ref: '#/components/schemas/v1.ReplicaSet' + $ref: '#/components/schemas/v1.DaemonSet' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.ReplicaSet' + $ref: '#/components/schemas/v1.DaemonSet' + application/cbor: + schema: + $ref: '#/components/schemas/v1.DaemonSet' description: Created "401": content: {} @@ -28836,16 +30725,16 @@ paths: x-kubernetes-action: patch x-kubernetes-group-version-kind: group: apps - kind: ReplicaSet + kind: DaemonSet version: v1 x-codegen-request-body-name: body x-contentType: application/json x-accepts: application/json put: - description: replace status of the specified ReplicaSet - operationId: replaceNamespacedReplicaSetStatus + description: replace status of the specified DaemonSet + operationId: replaceNamespacedDaemonSetStatus parameters: - - description: name of the ReplicaSet + - description: name of the DaemonSet in: path name: name required: true @@ -28857,7 +30746,9 @@ paths: required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -28898,32 +30789,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.ReplicaSet' + $ref: '#/components/schemas/v1.DaemonSet' required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.ReplicaSet' + $ref: '#/components/schemas/v1.DaemonSet' application/yaml: schema: - $ref: '#/components/schemas/v1.ReplicaSet' + $ref: '#/components/schemas/v1.DaemonSet' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.ReplicaSet' + $ref: '#/components/schemas/v1.DaemonSet' + application/cbor: + schema: + $ref: '#/components/schemas/v1.DaemonSet' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.ReplicaSet' + $ref: '#/components/schemas/v1.DaemonSet' application/yaml: schema: - $ref: '#/components/schemas/v1.ReplicaSet' + $ref: '#/components/schemas/v1.DaemonSet' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.ReplicaSet' + $ref: '#/components/schemas/v1.DaemonSet' + application/cbor: + schema: + $ref: '#/components/schemas/v1.DaemonSet' description: Created "401": content: {} @@ -28933,15 +30830,15 @@ paths: x-kubernetes-action: put x-kubernetes-group-version-kind: group: apps - kind: ReplicaSet + kind: DaemonSet version: v1 x-codegen-request-body-name: body x-contentType: application/json x-accepts: application/json - /apis/apps/v1/namespaces/{namespace}/statefulsets: + /apis/apps/v1/namespaces/{namespace}/deployments: delete: - description: delete collection of StatefulSet - operationId: deleteCollectionNamespacedStatefulSet + description: delete collection of Deployment + operationId: deleteCollectionNamespacedDeployment parameters: - description: object name and auth scope, such as for teams and projects in: path @@ -28949,7 +30846,9 @@ paths: required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -28985,6 +30884,20 @@ paths: name: gracePeriodSeconds schema: type: integer + - description: 'if set to true, it will trigger an unsafe deletion of the resource + in case the normal deletion flow fails with a corrupt object error. A resource + is considered corrupt if it can not be retrieved from the underlying storage + successfully because of a) its data can not be transformed e.g. decryption + failure, or b) it fails to decode into an object. NOTE: unsafe deletion + ignores finalizer constraints, skips precondition checks, and removes the + object from the storage. WARNING: This may potentially break the cluster + if the workload associated with the resource being unsafe-deleted relies + on normal deletion flow. Use only if you REALLY know what you are doing. + The default value is false, and the user must opt in to enable it' + in: query + name: ignoreStoreReadErrorWithClusterBreakingPotential + schema: + type: boolean - description: A selector to restrict the list of returned objects by their labels. Defaults to everything. in: query @@ -29076,6 +30989,9 @@ paths: application/vnd.kubernetes.protobuf: schema: $ref: '#/components/schemas/v1.Status' + application/cbor: + schema: + $ref: '#/components/schemas/v1.Status' description: OK "401": content: {} @@ -29085,14 +31001,14 @@ paths: x-kubernetes-action: deletecollection x-kubernetes-group-version-kind: group: apps - kind: StatefulSet + kind: Deployment version: v1 x-codegen-request-body-name: body x-contentType: application/json x-accepts: application/json get: - description: list or watch objects of kind StatefulSet - operationId: listNamespacedStatefulSet + description: list or watch objects of kind Deployment + operationId: listNamespacedDeployment parameters: - description: object name and auth scope, such as for teams and projects in: path @@ -29100,7 +31016,9 @@ paths: required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -29194,19 +31112,25 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.StatefulSetList' + $ref: '#/components/schemas/v1.DeploymentList' application/yaml: schema: - $ref: '#/components/schemas/v1.StatefulSetList' + $ref: '#/components/schemas/v1.DeploymentList' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.StatefulSetList' + $ref: '#/components/schemas/v1.DeploymentList' + application/cbor: + schema: + $ref: '#/components/schemas/v1.DeploymentList' application/json;stream=watch: schema: - $ref: '#/components/schemas/v1.StatefulSetList' + $ref: '#/components/schemas/v1.DeploymentList' application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: '#/components/schemas/v1.StatefulSetList' + $ref: '#/components/schemas/v1.DeploymentList' + application/cbor-seq: + schema: + $ref: '#/components/schemas/v1.DeploymentList' description: OK "401": content: {} @@ -29216,12 +31140,12 @@ paths: x-kubernetes-action: list x-kubernetes-group-version-kind: group: apps - kind: StatefulSet + kind: Deployment version: v1 x-accepts: application/json post: - description: create a StatefulSet - operationId: createNamespacedStatefulSet + description: create a Deployment + operationId: createNamespacedDeployment parameters: - description: object name and auth scope, such as for teams and projects in: path @@ -29229,7 +31153,9 @@ paths: required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -29270,44 +31196,53 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.StatefulSet' + $ref: '#/components/schemas/v1.Deployment' required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.StatefulSet' + $ref: '#/components/schemas/v1.Deployment' application/yaml: schema: - $ref: '#/components/schemas/v1.StatefulSet' + $ref: '#/components/schemas/v1.Deployment' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.StatefulSet' + $ref: '#/components/schemas/v1.Deployment' + application/cbor: + schema: + $ref: '#/components/schemas/v1.Deployment' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.StatefulSet' + $ref: '#/components/schemas/v1.Deployment' application/yaml: schema: - $ref: '#/components/schemas/v1.StatefulSet' + $ref: '#/components/schemas/v1.Deployment' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.StatefulSet' + $ref: '#/components/schemas/v1.Deployment' + application/cbor: + schema: + $ref: '#/components/schemas/v1.Deployment' description: Created "202": content: application/json: schema: - $ref: '#/components/schemas/v1.StatefulSet' + $ref: '#/components/schemas/v1.Deployment' application/yaml: schema: - $ref: '#/components/schemas/v1.StatefulSet' + $ref: '#/components/schemas/v1.Deployment' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.StatefulSet' + $ref: '#/components/schemas/v1.Deployment' + application/cbor: + schema: + $ref: '#/components/schemas/v1.Deployment' description: Accepted "401": content: {} @@ -29317,17 +31252,17 @@ paths: x-kubernetes-action: post x-kubernetes-group-version-kind: group: apps - kind: StatefulSet + kind: Deployment version: v1 x-codegen-request-body-name: body x-contentType: application/json x-accepts: application/json - /apis/apps/v1/namespaces/{namespace}/statefulsets/{name}: + /apis/apps/v1/namespaces/{namespace}/deployments/{name}: delete: - description: delete a StatefulSet - operationId: deleteNamespacedStatefulSet + description: delete a Deployment + operationId: deleteNamespacedDeployment parameters: - - description: name of the StatefulSet + - description: name of the Deployment in: path name: name required: true @@ -29339,7 +31274,9 @@ paths: required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -29361,6 +31298,20 @@ paths: name: gracePeriodSeconds schema: type: integer + - description: 'if set to true, it will trigger an unsafe deletion of the resource + in case the normal deletion flow fails with a corrupt object error. A resource + is considered corrupt if it can not be retrieved from the underlying storage + successfully because of a) its data can not be transformed e.g. decryption + failure, or b) it fails to decode into an object. NOTE: unsafe deletion + ignores finalizer constraints, skips precondition checks, and removes the + object from the storage. WARNING: This may potentially break the cluster + if the workload associated with the resource being unsafe-deleted relies + on normal deletion flow. Use only if you REALLY know what you are doing. + The default value is false, and the user must opt in to enable it' + in: query + name: ignoreStoreReadErrorWithClusterBreakingPotential + schema: + type: boolean - description: '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 @@ -29398,6 +31349,9 @@ paths: application/vnd.kubernetes.protobuf: schema: $ref: '#/components/schemas/v1.Status' + application/cbor: + schema: + $ref: '#/components/schemas/v1.Status' description: OK "202": content: @@ -29410,6 +31364,9 @@ paths: application/vnd.kubernetes.protobuf: schema: $ref: '#/components/schemas/v1.Status' + application/cbor: + schema: + $ref: '#/components/schemas/v1.Status' description: Accepted "401": content: {} @@ -29419,16 +31376,16 @@ paths: x-kubernetes-action: delete x-kubernetes-group-version-kind: group: apps - kind: StatefulSet + kind: Deployment version: v1 x-codegen-request-body-name: body x-contentType: application/json x-accepts: application/json get: - description: read the specified StatefulSet - operationId: readNamespacedStatefulSet + description: read the specified Deployment + operationId: readNamespacedDeployment parameters: - - description: name of the StatefulSet + - description: name of the Deployment in: path name: name required: true @@ -29440,7 +31397,9 @@ paths: required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -29450,13 +31409,16 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.StatefulSet' + $ref: '#/components/schemas/v1.Deployment' application/yaml: schema: - $ref: '#/components/schemas/v1.StatefulSet' + $ref: '#/components/schemas/v1.Deployment' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.StatefulSet' + $ref: '#/components/schemas/v1.Deployment' + application/cbor: + schema: + $ref: '#/components/schemas/v1.Deployment' description: OK "401": content: {} @@ -29466,14 +31428,14 @@ paths: x-kubernetes-action: get x-kubernetes-group-version-kind: group: apps - kind: StatefulSet + kind: Deployment version: v1 x-accepts: application/json patch: - description: partially update the specified StatefulSet - operationId: patchNamespacedStatefulSet + description: partially update the specified Deployment + operationId: patchNamespacedDeployment parameters: - - description: name of the StatefulSet + - description: name of the Deployment in: path name: name required: true @@ -29485,7 +31447,9 @@ paths: required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -29542,25 +31506,31 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.StatefulSet' + $ref: '#/components/schemas/v1.Deployment' application/yaml: schema: - $ref: '#/components/schemas/v1.StatefulSet' + $ref: '#/components/schemas/v1.Deployment' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.StatefulSet' + $ref: '#/components/schemas/v1.Deployment' + application/cbor: + schema: + $ref: '#/components/schemas/v1.Deployment' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.StatefulSet' + $ref: '#/components/schemas/v1.Deployment' application/yaml: schema: - $ref: '#/components/schemas/v1.StatefulSet' + $ref: '#/components/schemas/v1.Deployment' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.StatefulSet' + $ref: '#/components/schemas/v1.Deployment' + application/cbor: + schema: + $ref: '#/components/schemas/v1.Deployment' description: Created "401": content: {} @@ -29570,16 +31540,16 @@ paths: x-kubernetes-action: patch x-kubernetes-group-version-kind: group: apps - kind: StatefulSet + kind: Deployment version: v1 x-codegen-request-body-name: body x-contentType: application/json x-accepts: application/json put: - description: replace the specified StatefulSet - operationId: replaceNamespacedStatefulSet + description: replace the specified Deployment + operationId: replaceNamespacedDeployment parameters: - - description: name of the StatefulSet + - description: name of the Deployment in: path name: name required: true @@ -29591,7 +31561,9 @@ paths: required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -29632,32 +31604,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.StatefulSet' + $ref: '#/components/schemas/v1.Deployment' required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.StatefulSet' + $ref: '#/components/schemas/v1.Deployment' application/yaml: schema: - $ref: '#/components/schemas/v1.StatefulSet' + $ref: '#/components/schemas/v1.Deployment' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.StatefulSet' + $ref: '#/components/schemas/v1.Deployment' + application/cbor: + schema: + $ref: '#/components/schemas/v1.Deployment' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.StatefulSet' + $ref: '#/components/schemas/v1.Deployment' application/yaml: schema: - $ref: '#/components/schemas/v1.StatefulSet' + $ref: '#/components/schemas/v1.Deployment' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.StatefulSet' + $ref: '#/components/schemas/v1.Deployment' + application/cbor: + schema: + $ref: '#/components/schemas/v1.Deployment' description: Created "401": content: {} @@ -29667,15 +31645,15 @@ paths: x-kubernetes-action: put x-kubernetes-group-version-kind: group: apps - kind: StatefulSet + kind: Deployment version: v1 x-codegen-request-body-name: body x-contentType: application/json x-accepts: application/json - /apis/apps/v1/namespaces/{namespace}/statefulsets/{name}/scale: + /apis/apps/v1/namespaces/{namespace}/deployments/{name}/scale: get: - description: read scale of the specified StatefulSet - operationId: readNamespacedStatefulSetScale + description: read scale of the specified Deployment + operationId: readNamespacedDeploymentScale parameters: - description: name of the Scale in: path @@ -29689,7 +31667,9 @@ paths: required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -29706,6 +31686,9 @@ paths: application/vnd.kubernetes.protobuf: schema: $ref: '#/components/schemas/v1.Scale' + application/cbor: + schema: + $ref: '#/components/schemas/v1.Scale' description: OK "401": content: {} @@ -29719,8 +31702,8 @@ paths: version: v1 x-accepts: application/json patch: - description: partially update scale of the specified StatefulSet - operationId: patchNamespacedStatefulSetScale + description: partially update scale of the specified Deployment + operationId: patchNamespacedDeploymentScale parameters: - description: name of the Scale in: path @@ -29734,7 +31717,9 @@ paths: required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -29798,6 +31783,9 @@ paths: application/vnd.kubernetes.protobuf: schema: $ref: '#/components/schemas/v1.Scale' + application/cbor: + schema: + $ref: '#/components/schemas/v1.Scale' description: OK "201": content: @@ -29810,6 +31798,9 @@ paths: application/vnd.kubernetes.protobuf: schema: $ref: '#/components/schemas/v1.Scale' + application/cbor: + schema: + $ref: '#/components/schemas/v1.Scale' description: Created "401": content: {} @@ -29825,8 +31816,8 @@ paths: x-contentType: application/json x-accepts: application/json put: - description: replace scale of the specified StatefulSet - operationId: replaceNamespacedStatefulSetScale + description: replace scale of the specified Deployment + operationId: replaceNamespacedDeploymentScale parameters: - description: name of the Scale in: path @@ -29840,7 +31831,9 @@ paths: required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -29895,6 +31888,9 @@ paths: application/vnd.kubernetes.protobuf: schema: $ref: '#/components/schemas/v1.Scale' + application/cbor: + schema: + $ref: '#/components/schemas/v1.Scale' description: OK "201": content: @@ -29907,6 +31903,9 @@ paths: application/vnd.kubernetes.protobuf: schema: $ref: '#/components/schemas/v1.Scale' + application/cbor: + schema: + $ref: '#/components/schemas/v1.Scale' description: Created "401": content: {} @@ -29921,12 +31920,12 @@ paths: x-codegen-request-body-name: body x-contentType: application/json x-accepts: application/json - /apis/apps/v1/namespaces/{namespace}/statefulsets/{name}/status: + /apis/apps/v1/namespaces/{namespace}/deployments/{name}/status: get: - description: read status of the specified StatefulSet - operationId: readNamespacedStatefulSetStatus + description: read status of the specified Deployment + operationId: readNamespacedDeploymentStatus parameters: - - description: name of the StatefulSet + - description: name of the Deployment in: path name: name required: true @@ -29938,7 +31937,9 @@ paths: required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -29948,13 +31949,16 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.StatefulSet' + $ref: '#/components/schemas/v1.Deployment' application/yaml: schema: - $ref: '#/components/schemas/v1.StatefulSet' + $ref: '#/components/schemas/v1.Deployment' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.StatefulSet' + $ref: '#/components/schemas/v1.Deployment' + application/cbor: + schema: + $ref: '#/components/schemas/v1.Deployment' description: OK "401": content: {} @@ -29964,14 +31968,14 @@ paths: x-kubernetes-action: get x-kubernetes-group-version-kind: group: apps - kind: StatefulSet + kind: Deployment version: v1 x-accepts: application/json patch: - description: partially update status of the specified StatefulSet - operationId: patchNamespacedStatefulSetStatus + description: partially update status of the specified Deployment + operationId: patchNamespacedDeploymentStatus parameters: - - description: name of the StatefulSet + - description: name of the Deployment in: path name: name required: true @@ -29983,7 +31987,9 @@ paths: required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -30040,25 +32046,31 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.StatefulSet' + $ref: '#/components/schemas/v1.Deployment' application/yaml: schema: - $ref: '#/components/schemas/v1.StatefulSet' + $ref: '#/components/schemas/v1.Deployment' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.StatefulSet' + $ref: '#/components/schemas/v1.Deployment' + application/cbor: + schema: + $ref: '#/components/schemas/v1.Deployment' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.StatefulSet' + $ref: '#/components/schemas/v1.Deployment' application/yaml: schema: - $ref: '#/components/schemas/v1.StatefulSet' + $ref: '#/components/schemas/v1.Deployment' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.StatefulSet' + $ref: '#/components/schemas/v1.Deployment' + application/cbor: + schema: + $ref: '#/components/schemas/v1.Deployment' description: Created "401": content: {} @@ -30068,16 +32080,16 @@ paths: x-kubernetes-action: patch x-kubernetes-group-version-kind: group: apps - kind: StatefulSet + kind: Deployment version: v1 x-codegen-request-body-name: body x-contentType: application/json x-accepts: application/json put: - description: replace status of the specified StatefulSet - operationId: replaceNamespacedStatefulSetStatus + description: replace status of the specified Deployment + operationId: replaceNamespacedDeploymentStatus parameters: - - description: name of the StatefulSet + - description: name of the Deployment in: path name: name required: true @@ -30089,7 +32101,9 @@ paths: required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -30130,32 +32144,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.StatefulSet' + $ref: '#/components/schemas/v1.Deployment' required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.StatefulSet' + $ref: '#/components/schemas/v1.Deployment' application/yaml: schema: - $ref: '#/components/schemas/v1.StatefulSet' + $ref: '#/components/schemas/v1.Deployment' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.StatefulSet' + $ref: '#/components/schemas/v1.Deployment' + application/cbor: + schema: + $ref: '#/components/schemas/v1.Deployment' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.StatefulSet' + $ref: '#/components/schemas/v1.Deployment' application/yaml: schema: - $ref: '#/components/schemas/v1.StatefulSet' + $ref: '#/components/schemas/v1.Deployment' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.StatefulSet' + $ref: '#/components/schemas/v1.Deployment' + application/cbor: + schema: + $ref: '#/components/schemas/v1.Deployment' description: Created "401": content: {} @@ -30165,16 +32185,199 @@ paths: x-kubernetes-action: put x-kubernetes-group-version-kind: group: apps - kind: StatefulSet + kind: Deployment + version: v1 + x-codegen-request-body-name: body + x-contentType: application/json + x-accepts: application/json + /apis/apps/v1/namespaces/{namespace}/replicasets: + delete: + description: delete collection of ReplicaSet + operationId: deleteCollectionNamespacedReplicaSet + parameters: + - description: object name and auth scope, such as for teams and projects + in: path + name: namespace + required: true + schema: + type: string + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). + in: query + name: pretty + schema: + type: string + - description: |- + 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. + in: query + name: continue + schema: + type: string + - description: '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' + in: query + 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 + - description: 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. + in: query + name: gracePeriodSeconds + schema: + type: integer + - description: 'if set to true, it will trigger an unsafe deletion of the resource + in case the normal deletion flow fails with a corrupt object error. A resource + is considered corrupt if it can not be retrieved from the underlying storage + successfully because of a) its data can not be transformed e.g. decryption + failure, or b) it fails to decode into an object. NOTE: unsafe deletion + ignores finalizer constraints, skips precondition checks, and removes the + object from the storage. WARNING: This may potentially break the cluster + if the workload associated with the resource being unsafe-deleted relies + on normal deletion flow. Use only if you REALLY know what you are doing. + The default value is false, and the user must opt in to enable it' + in: query + name: ignoreStoreReadErrorWithClusterBreakingPotential + schema: + type: boolean + - description: A selector to restrict the list of returned objects by their + labels. Defaults to everything. + in: query + name: labelSelector + schema: + type: string + - description: |- + limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. + + The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + in: query + name: limit + schema: + type: integer + - description: '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.' + in: query + name: orphanDependents + schema: + type: boolean + - description: '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.' + in: query + name: propagationPolicy + schema: + type: string + - description: |- + resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersion + schema: + type: string + - description: |- + resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersionMatch + schema: + type: string + - description: |- + `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic "Bookmark" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `"k8s.io/initial-events-end": "true"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. + + When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan + is interpreted as "data at least as new as the provided `resourceVersion`" + and the bookmark event is send when the state is synced + to a `resourceVersion` at least as fresh as the one provided by the ListOptions. + If `resourceVersion` is unset, this is interpreted as "consistent read" and the + bookmark event is send when the state is synced at least to the moment + when request started being processed. + - `resourceVersionMatch` set to any other value or unset + Invalid error is returned. + + Defaults to true if `resourceVersion=""` or `resourceVersion="0"` (for backward compatibility reasons) and to false otherwise. + in: query + name: sendInitialEvents + schema: + type: boolean + - description: Timeout for the list/watch call. This limits the duration of + the call, regardless of any activity or inactivity. + in: query + name: timeoutSeconds + schema: + type: integer + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/v1.DeleteOptions' + required: false + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.Status' + application/yaml: + schema: + $ref: '#/components/schemas/v1.Status' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.Status' + application/cbor: + schema: + $ref: '#/components/schemas/v1.Status' + description: OK + "401": + content: {} + description: Unauthorized + tags: + - apps_v1 + x-kubernetes-action: deletecollection + x-kubernetes-group-version-kind: + group: apps + kind: ReplicaSet version: v1 x-codegen-request-body-name: body x-contentType: application/json x-accepts: application/json - /apis/apps/v1/replicasets: get: description: list or watch objects of kind ReplicaSet - operationId: listReplicaSetForAllNamespaces + operationId: listNamespacedReplicaSet parameters: + - description: object name and auth scope, such as for teams and projects + in: path + name: namespace + required: true + schema: + type: string + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). + in: query + name: pretty + schema: + type: string - description: 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 @@ -30213,11 +32416,6 @@ paths: name: limit schema: type: integer - - description: If 'true', then the output is pretty printed. - in: query - name: pretty - schema: - type: string - description: |- resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. @@ -30276,12 +32474,18 @@ paths: application/vnd.kubernetes.protobuf: schema: $ref: '#/components/schemas/v1.ReplicaSetList' + application/cbor: + schema: + $ref: '#/components/schemas/v1.ReplicaSetList' application/json;stream=watch: schema: $ref: '#/components/schemas/v1.ReplicaSetList' application/vnd.kubernetes.protobuf;stream=watch: schema: $ref: '#/components/schemas/v1.ReplicaSetList' + application/cbor-seq: + schema: + $ref: '#/components/schemas/v1.ReplicaSetList' description: OK "401": content: {} @@ -30294,196 +32498,23 @@ paths: kind: ReplicaSet version: v1 x-accepts: application/json - /apis/apps/v1/statefulsets: - get: - description: list or watch objects of kind StatefulSet - operationId: listStatefulSetForAllNamespaces + post: + description: create a ReplicaSet + operationId: createNamespacedReplicaSet parameters: - - description: 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. - in: query - name: allowWatchBookmarks - schema: - type: boolean - - description: |- - 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. - in: query - name: continue - 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 - - description: A selector to restrict the list of returned objects by their - labels. Defaults to everything. - in: query - name: labelSelector + - description: object name and auth scope, such as for teams and projects + in: path + name: namespace + required: true schema: type: string - - description: |- - limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. - - The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. - in: query - name: limit - schema: - type: integer - - description: If 'true', then the output is pretty printed. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: type: string - - description: |- - resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. - - Defaults to unset - in: query - name: resourceVersion - schema: - type: string - - description: |- - resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. - - Defaults to unset - in: query - name: resourceVersionMatch - schema: - type: string - - description: |- - `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic "Bookmark" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `"k8s.io/initial-events-end": "true"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. - - When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan - is interpreted as "data at least as new as the provided `resourceVersion`" - and the bookmark event is send when the state is synced - to a `resourceVersion` at least as fresh as the one provided by the ListOptions. - If `resourceVersion` is unset, this is interpreted as "consistent read" and the - bookmark event is send when the state is synced at least to the moment - when request started being processed. - - `resourceVersionMatch` set to any other value or unset - Invalid error is returned. - - Defaults to true if `resourceVersion=""` or `resourceVersion="0"` (for backward compatibility reasons) and to false otherwise. - in: query - name: sendInitialEvents - schema: - type: boolean - - description: Timeout for the list/watch call. This limits the duration of - the call, regardless of any activity or inactivity. - in: query - name: timeoutSeconds - schema: - type: integer - - description: Watch for changes to the described resources and return them - as a stream of add, update, and remove notifications. Specify resourceVersion. - in: query - name: watch - schema: - type: boolean - responses: - "200": - content: - application/json: - schema: - $ref: '#/components/schemas/v1.StatefulSetList' - application/yaml: - schema: - $ref: '#/components/schemas/v1.StatefulSetList' - application/vnd.kubernetes.protobuf: - schema: - $ref: '#/components/schemas/v1.StatefulSetList' - application/json;stream=watch: - schema: - $ref: '#/components/schemas/v1.StatefulSetList' - application/vnd.kubernetes.protobuf;stream=watch: - schema: - $ref: '#/components/schemas/v1.StatefulSetList' - description: OK - "401": - content: {} - description: Unauthorized - tags: - - apps_v1 - x-kubernetes-action: list - x-kubernetes-group-version-kind: - group: apps - kind: StatefulSet - version: v1 - x-accepts: application/json - /apis/apps/v1/watch/controllerrevisions: {} - /apis/apps/v1/watch/daemonsets: {} - /apis/apps/v1/watch/deployments: {} - /apis/apps/v1/watch/namespaces/{namespace}/controllerrevisions: {} - /apis/apps/v1/watch/namespaces/{namespace}/controllerrevisions/{name}: {} - /apis/apps/v1/watch/namespaces/{namespace}/daemonsets: {} - /apis/apps/v1/watch/namespaces/{namespace}/daemonsets/{name}: {} - /apis/apps/v1/watch/namespaces/{namespace}/deployments: {} - /apis/apps/v1/watch/namespaces/{namespace}/deployments/{name}: {} - /apis/apps/v1/watch/namespaces/{namespace}/replicasets: {} - /apis/apps/v1/watch/namespaces/{namespace}/replicasets/{name}: {} - /apis/apps/v1/watch/namespaces/{namespace}/statefulsets: {} - /apis/apps/v1/watch/namespaces/{namespace}/statefulsets/{name}: {} - /apis/apps/v1/watch/replicasets: {} - /apis/apps/v1/watch/statefulsets: {} - /apis/authentication.k8s.io/: - get: - description: get information of a group - operationId: getAPIGroup - responses: - "200": - content: - application/json: - schema: - $ref: '#/components/schemas/v1.APIGroup' - application/yaml: - schema: - $ref: '#/components/schemas/v1.APIGroup' - application/vnd.kubernetes.protobuf: - schema: - $ref: '#/components/schemas/v1.APIGroup' - description: OK - "401": - content: {} - description: Unauthorized - tags: - - authentication - x-accepts: application/json - /apis/authentication.k8s.io/v1/: - get: - description: get available resources - operationId: getAPIResources - responses: - "200": - content: - application/json: - schema: - $ref: '#/components/schemas/v1.APIResourceList' - application/yaml: - schema: - $ref: '#/components/schemas/v1.APIResourceList' - application/vnd.kubernetes.protobuf: - schema: - $ref: '#/components/schemas/v1.APIResourceList' - description: OK - "401": - content: {} - description: Unauthorized - tags: - - authentication_v1 - x-accepts: application/json - /apis/authentication.k8s.io/v1/selfsubjectreviews: - post: - description: create a SelfSubjectReview - operationId: createSelfSubjectReview - parameters: - description: '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 @@ -30516,72 +32547,95 @@ paths: name: fieldValidation schema: type: string - - description: If 'true', then the output is pretty printed. - in: query - name: pretty - schema: - type: string requestBody: content: application/json: schema: - $ref: '#/components/schemas/v1.SelfSubjectReview' + $ref: '#/components/schemas/v1.ReplicaSet' required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.SelfSubjectReview' + $ref: '#/components/schemas/v1.ReplicaSet' application/yaml: schema: - $ref: '#/components/schemas/v1.SelfSubjectReview' + $ref: '#/components/schemas/v1.ReplicaSet' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.SelfSubjectReview' + $ref: '#/components/schemas/v1.ReplicaSet' + application/cbor: + schema: + $ref: '#/components/schemas/v1.ReplicaSet' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.SelfSubjectReview' + $ref: '#/components/schemas/v1.ReplicaSet' application/yaml: schema: - $ref: '#/components/schemas/v1.SelfSubjectReview' + $ref: '#/components/schemas/v1.ReplicaSet' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.SelfSubjectReview' + $ref: '#/components/schemas/v1.ReplicaSet' + application/cbor: + schema: + $ref: '#/components/schemas/v1.ReplicaSet' description: Created "202": content: application/json: schema: - $ref: '#/components/schemas/v1.SelfSubjectReview' + $ref: '#/components/schemas/v1.ReplicaSet' application/yaml: schema: - $ref: '#/components/schemas/v1.SelfSubjectReview' + $ref: '#/components/schemas/v1.ReplicaSet' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.SelfSubjectReview' + $ref: '#/components/schemas/v1.ReplicaSet' + application/cbor: + schema: + $ref: '#/components/schemas/v1.ReplicaSet' description: Accepted "401": content: {} description: Unauthorized tags: - - authentication_v1 + - apps_v1 x-kubernetes-action: post x-kubernetes-group-version-kind: - group: authentication.k8s.io - kind: SelfSubjectReview + group: apps + kind: ReplicaSet version: v1 x-codegen-request-body-name: body x-contentType: application/json x-accepts: application/json - /apis/authentication.k8s.io/v1/tokenreviews: - post: - description: create a TokenReview - operationId: createTokenReview + /apis/apps/v1/namespaces/{namespace}/replicasets/{name}: + delete: + description: delete a ReplicaSet + operationId: deleteNamespacedReplicaSet parameters: + - description: name of the ReplicaSet + in: path + name: name + required: true + schema: + type: string + - description: object name and auth scope, such as for teams and projects + in: path + name: namespace + required: true + schema: + type: string + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). + in: query + name: pretty + schema: + type: string - description: '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 @@ -30590,119 +32644,171 @@ paths: name: dryRun schema: type: string - - description: fieldManager is a name associated with the actor or entity that - is making these changes. The value must be less than or 128 characters long, - and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + - description: 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. in: query - name: fieldManager + name: gracePeriodSeconds schema: - type: string - - description: 'fieldValidation instructs the server on how to handle objects - in the request (POST/PUT/PATCH) containing unknown or duplicate fields. - Valid values are: - Ignore: This will ignore any unknown fields that are - silently dropped from the object, and will ignore all but the last duplicate - field that the decoder encounters. This is the default behavior prior to - v1.23. - Warn: This will send a warning via the standard warning response - header for each unknown field that is dropped from the object, and for each - duplicate field that is encountered. The request will still succeed if there - are no other errors, and will only persist the last of any duplicate fields. - This is the default in v1.23+ - Strict: This will fail the request with - a BadRequest error if any unknown fields would be dropped from the object, - or if any duplicate fields are present. The error returned from the server - will contain all unknown and duplicate fields encountered.' + type: integer + - description: 'if set to true, it will trigger an unsafe deletion of the resource + in case the normal deletion flow fails with a corrupt object error. A resource + is considered corrupt if it can not be retrieved from the underlying storage + successfully because of a) its data can not be transformed e.g. decryption + failure, or b) it fails to decode into an object. NOTE: unsafe deletion + ignores finalizer constraints, skips precondition checks, and removes the + object from the storage. WARNING: This may potentially break the cluster + if the workload associated with the resource being unsafe-deleted relies + on normal deletion flow. Use only if you REALLY know what you are doing. + The default value is false, and the user must opt in to enable it' + in: query + name: ignoreStoreReadErrorWithClusterBreakingPotential + schema: + type: boolean + - description: '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.' in: query - name: fieldValidation + name: orphanDependents schema: - type: string - - description: If 'true', then the output is pretty printed. + type: boolean + - description: '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.' in: query - name: pretty + name: propagationPolicy schema: type: string requestBody: content: application/json: schema: - $ref: '#/components/schemas/v1.TokenReview' - required: true + $ref: '#/components/schemas/v1.DeleteOptions' + required: false responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.TokenReview' + $ref: '#/components/schemas/v1.Status' application/yaml: schema: - $ref: '#/components/schemas/v1.TokenReview' + $ref: '#/components/schemas/v1.Status' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.TokenReview' - description: OK - "201": - content: - application/json: - schema: - $ref: '#/components/schemas/v1.TokenReview' - application/yaml: - schema: - $ref: '#/components/schemas/v1.TokenReview' - application/vnd.kubernetes.protobuf: + $ref: '#/components/schemas/v1.Status' + application/cbor: schema: - $ref: '#/components/schemas/v1.TokenReview' - description: Created + $ref: '#/components/schemas/v1.Status' + description: OK "202": content: application/json: schema: - $ref: '#/components/schemas/v1.TokenReview' + $ref: '#/components/schemas/v1.Status' application/yaml: schema: - $ref: '#/components/schemas/v1.TokenReview' + $ref: '#/components/schemas/v1.Status' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.TokenReview' + $ref: '#/components/schemas/v1.Status' + application/cbor: + schema: + $ref: '#/components/schemas/v1.Status' description: Accepted "401": content: {} description: Unauthorized tags: - - authentication_v1 - x-kubernetes-action: post + - apps_v1 + x-kubernetes-action: delete x-kubernetes-group-version-kind: - group: authentication.k8s.io - kind: TokenReview + group: apps + kind: ReplicaSet version: v1 x-codegen-request-body-name: body x-contentType: application/json x-accepts: application/json - /apis/authentication.k8s.io/v1alpha1/: get: - description: get available resources - operationId: getAPIResources + description: read the specified ReplicaSet + operationId: readNamespacedReplicaSet + parameters: + - description: name of the ReplicaSet + in: path + name: name + required: true + schema: + type: string + - description: object name and auth scope, such as for teams and projects + in: path + name: namespace + required: true + schema: + type: string + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). + in: query + name: pretty + schema: + type: string responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.APIResourceList' + $ref: '#/components/schemas/v1.ReplicaSet' application/yaml: schema: - $ref: '#/components/schemas/v1.APIResourceList' + $ref: '#/components/schemas/v1.ReplicaSet' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.APIResourceList' + $ref: '#/components/schemas/v1.ReplicaSet' + application/cbor: + schema: + $ref: '#/components/schemas/v1.ReplicaSet' description: OK "401": content: {} description: Unauthorized tags: - - authentication_v1alpha1 + - apps_v1 + x-kubernetes-action: get + x-kubernetes-group-version-kind: + group: apps + kind: ReplicaSet + version: v1 x-accepts: application/json - /apis/authentication.k8s.io/v1alpha1/selfsubjectreviews: - post: - description: create a SelfSubjectReview - operationId: createSelfSubjectReview + patch: + description: partially update the specified ReplicaSet + operationId: patchNamespacedReplicaSet parameters: + - description: name of the ReplicaSet + in: path + name: name + required: true + schema: + type: string + - description: object name and auth scope, such as for teams and projects + in: path + name: namespace + required: true + schema: + type: string + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). + in: query + name: pretty + schema: + type: string - description: '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 @@ -30714,6 +32820,8 @@ paths: - description: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + This field is required for apply requests (application/apply-patch) but + optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). in: query name: fieldManager schema: @@ -30735,95 +32843,86 @@ paths: name: fieldValidation schema: type: string - - description: If 'true', then the output is pretty printed. + - description: Force is going to "force" Apply requests. It means user will + re-acquire conflicting fields owned by other people. Force flag must be + unset for non-apply patch requests. in: query - name: pretty + name: force schema: - type: string + type: boolean requestBody: content: application/json: schema: - $ref: '#/components/schemas/v1alpha1.SelfSubjectReview' + $ref: '#/components/schemas/v1.Patch' required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1alpha1.SelfSubjectReview' + $ref: '#/components/schemas/v1.ReplicaSet' application/yaml: schema: - $ref: '#/components/schemas/v1alpha1.SelfSubjectReview' + $ref: '#/components/schemas/v1.ReplicaSet' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha1.SelfSubjectReview' + $ref: '#/components/schemas/v1.ReplicaSet' + application/cbor: + schema: + $ref: '#/components/schemas/v1.ReplicaSet' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1alpha1.SelfSubjectReview' + $ref: '#/components/schemas/v1.ReplicaSet' application/yaml: schema: - $ref: '#/components/schemas/v1alpha1.SelfSubjectReview' + $ref: '#/components/schemas/v1.ReplicaSet' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha1.SelfSubjectReview' - description: Created - "202": - content: - application/json: - schema: - $ref: '#/components/schemas/v1alpha1.SelfSubjectReview' - application/yaml: - schema: - $ref: '#/components/schemas/v1alpha1.SelfSubjectReview' - application/vnd.kubernetes.protobuf: + $ref: '#/components/schemas/v1.ReplicaSet' + application/cbor: schema: - $ref: '#/components/schemas/v1alpha1.SelfSubjectReview' - description: Accepted + $ref: '#/components/schemas/v1.ReplicaSet' + description: Created "401": content: {} description: Unauthorized tags: - - authentication_v1alpha1 - x-kubernetes-action: post + - apps_v1 + x-kubernetes-action: patch x-kubernetes-group-version-kind: - group: authentication.k8s.io - kind: SelfSubjectReview - version: v1alpha1 + group: apps + kind: ReplicaSet + version: v1 x-codegen-request-body-name: body x-contentType: application/json x-accepts: application/json - /apis/authentication.k8s.io/v1beta1/: - get: - description: get available resources - operationId: getAPIResources - responses: - "200": - content: - application/json: - schema: - $ref: '#/components/schemas/v1.APIResourceList' - application/yaml: - schema: - $ref: '#/components/schemas/v1.APIResourceList' - application/vnd.kubernetes.protobuf: - schema: - $ref: '#/components/schemas/v1.APIResourceList' - description: OK - "401": - content: {} - description: Unauthorized - tags: - - authentication_v1beta1 - x-accepts: application/json - /apis/authentication.k8s.io/v1beta1/selfsubjectreviews: - post: - description: create a SelfSubjectReview - operationId: createSelfSubjectReview + put: + description: replace the specified ReplicaSet + operationId: replaceNamespacedReplicaSet parameters: + - description: name of the ReplicaSet + in: path + name: name + required: true + schema: + type: string + - description: object name and auth scope, such as for teams and projects + in: path + name: namespace + required: true + schema: + type: string + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). + in: query + name: pretty + schema: + type: string - description: '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 @@ -30856,118 +32955,130 @@ paths: name: fieldValidation schema: type: string - - description: If 'true', then the output is pretty printed. - in: query - name: pretty - schema: - type: string requestBody: content: application/json: schema: - $ref: '#/components/schemas/v1beta1.SelfSubjectReview' + $ref: '#/components/schemas/v1.ReplicaSet' required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1beta1.SelfSubjectReview' + $ref: '#/components/schemas/v1.ReplicaSet' application/yaml: schema: - $ref: '#/components/schemas/v1beta1.SelfSubjectReview' + $ref: '#/components/schemas/v1.ReplicaSet' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta1.SelfSubjectReview' + $ref: '#/components/schemas/v1.ReplicaSet' + application/cbor: + schema: + $ref: '#/components/schemas/v1.ReplicaSet' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1beta1.SelfSubjectReview' + $ref: '#/components/schemas/v1.ReplicaSet' application/yaml: schema: - $ref: '#/components/schemas/v1beta1.SelfSubjectReview' + $ref: '#/components/schemas/v1.ReplicaSet' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta1.SelfSubjectReview' - description: Created - "202": - content: - application/json: - schema: - $ref: '#/components/schemas/v1beta1.SelfSubjectReview' - application/yaml: - schema: - $ref: '#/components/schemas/v1beta1.SelfSubjectReview' - application/vnd.kubernetes.protobuf: + $ref: '#/components/schemas/v1.ReplicaSet' + application/cbor: schema: - $ref: '#/components/schemas/v1beta1.SelfSubjectReview' - description: Accepted + $ref: '#/components/schemas/v1.ReplicaSet' + description: Created "401": content: {} description: Unauthorized tags: - - authentication_v1beta1 - x-kubernetes-action: post + - apps_v1 + x-kubernetes-action: put x-kubernetes-group-version-kind: - group: authentication.k8s.io - kind: SelfSubjectReview - version: v1beta1 + group: apps + kind: ReplicaSet + version: v1 x-codegen-request-body-name: body x-contentType: application/json x-accepts: application/json - /apis/authorization.k8s.io/: + /apis/apps/v1/namespaces/{namespace}/replicasets/{name}/scale: get: - description: get information of a group - operationId: getAPIGroup + description: read scale of the specified ReplicaSet + operationId: readNamespacedReplicaSetScale + parameters: + - description: name of the Scale + in: path + name: name + required: true + schema: + type: string + - description: object name and auth scope, such as for teams and projects + in: path + name: namespace + required: true + schema: + type: string + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). + in: query + name: pretty + schema: + type: string responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.APIGroup' + $ref: '#/components/schemas/v1.Scale' application/yaml: schema: - $ref: '#/components/schemas/v1.APIGroup' + $ref: '#/components/schemas/v1.Scale' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.APIGroup' - description: OK - "401": - content: {} - description: Unauthorized - tags: - - authorization - x-accepts: application/json - /apis/authorization.k8s.io/v1/: - get: - description: get available resources - operationId: getAPIResources - responses: - "200": - content: - application/json: - schema: - $ref: '#/components/schemas/v1.APIResourceList' - application/yaml: - schema: - $ref: '#/components/schemas/v1.APIResourceList' - application/vnd.kubernetes.protobuf: + $ref: '#/components/schemas/v1.Scale' + application/cbor: schema: - $ref: '#/components/schemas/v1.APIResourceList' + $ref: '#/components/schemas/v1.Scale' description: OK "401": content: {} description: Unauthorized tags: - - authorization_v1 + - apps_v1 + x-kubernetes-action: get + x-kubernetes-group-version-kind: + group: autoscaling + kind: Scale + version: v1 x-accepts: application/json - /apis/authorization.k8s.io/v1/namespaces/{namespace}/localsubjectaccessreviews: - post: - description: create a LocalSubjectAccessReview - operationId: createNamespacedLocalSubjectAccessReview + patch: + description: partially update scale of the specified ReplicaSet + operationId: patchNamespacedReplicaSetScale parameters: + - description: name of the Scale + in: path + name: name + required: true + schema: + type: string + - description: object name and auth scope, such as for teams and projects + in: path + name: namespace + required: true + schema: + type: string + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). + in: query + name: pretty + schema: + type: string - description: '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 @@ -30979,6 +33090,8 @@ paths: - description: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + This field is required for apply requests (application/apply-patch) but + optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). in: query name: fieldManager schema: @@ -31000,78 +33113,86 @@ paths: name: fieldValidation schema: type: string - - description: object name and auth scope, such as for teams and projects - in: path - name: namespace - required: true - schema: - type: string - - description: If 'true', then the output is pretty printed. + - description: Force is going to "force" Apply requests. It means user will + re-acquire conflicting fields owned by other people. Force flag must be + unset for non-apply patch requests. in: query - name: pretty + name: force schema: - type: string + type: boolean requestBody: content: application/json: schema: - $ref: '#/components/schemas/v1.LocalSubjectAccessReview' + $ref: '#/components/schemas/v1.Patch' required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.LocalSubjectAccessReview' + $ref: '#/components/schemas/v1.Scale' application/yaml: schema: - $ref: '#/components/schemas/v1.LocalSubjectAccessReview' + $ref: '#/components/schemas/v1.Scale' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.LocalSubjectAccessReview' + $ref: '#/components/schemas/v1.Scale' + application/cbor: + schema: + $ref: '#/components/schemas/v1.Scale' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.LocalSubjectAccessReview' + $ref: '#/components/schemas/v1.Scale' application/yaml: schema: - $ref: '#/components/schemas/v1.LocalSubjectAccessReview' + $ref: '#/components/schemas/v1.Scale' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.LocalSubjectAccessReview' - description: Created - "202": - content: - application/json: - schema: - $ref: '#/components/schemas/v1.LocalSubjectAccessReview' - application/yaml: - schema: - $ref: '#/components/schemas/v1.LocalSubjectAccessReview' - application/vnd.kubernetes.protobuf: + $ref: '#/components/schemas/v1.Scale' + application/cbor: schema: - $ref: '#/components/schemas/v1.LocalSubjectAccessReview' - description: Accepted + $ref: '#/components/schemas/v1.Scale' + description: Created "401": content: {} description: Unauthorized tags: - - authorization_v1 - x-kubernetes-action: post + - apps_v1 + x-kubernetes-action: patch x-kubernetes-group-version-kind: - group: authorization.k8s.io - kind: LocalSubjectAccessReview + group: autoscaling + kind: Scale version: v1 x-codegen-request-body-name: body x-contentType: application/json x-accepts: application/json - /apis/authorization.k8s.io/v1/selfsubjectaccessreviews: - post: - description: create a SelfSubjectAccessReview - operationId: createSelfSubjectAccessReview + put: + description: replace scale of the specified ReplicaSet + operationId: replaceNamespacedReplicaSetScale parameters: + - description: name of the Scale + in: path + name: name + required: true + schema: + type: string + - description: object name and auth scope, such as for teams and projects + in: path + name: namespace + required: true + schema: + type: string + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). + in: query + name: pretty + schema: + type: string - description: '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 @@ -31104,72 +33225,130 @@ paths: name: fieldValidation schema: type: string - - description: If 'true', then the output is pretty printed. - in: query - name: pretty - schema: - type: string requestBody: content: application/json: schema: - $ref: '#/components/schemas/v1.SelfSubjectAccessReview' + $ref: '#/components/schemas/v1.Scale' required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.SelfSubjectAccessReview' + $ref: '#/components/schemas/v1.Scale' application/yaml: schema: - $ref: '#/components/schemas/v1.SelfSubjectAccessReview' + $ref: '#/components/schemas/v1.Scale' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.SelfSubjectAccessReview' + $ref: '#/components/schemas/v1.Scale' + application/cbor: + schema: + $ref: '#/components/schemas/v1.Scale' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.SelfSubjectAccessReview' + $ref: '#/components/schemas/v1.Scale' application/yaml: schema: - $ref: '#/components/schemas/v1.SelfSubjectAccessReview' + $ref: '#/components/schemas/v1.Scale' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.SelfSubjectAccessReview' + $ref: '#/components/schemas/v1.Scale' + application/cbor: + schema: + $ref: '#/components/schemas/v1.Scale' description: Created - "202": + "401": + content: {} + description: Unauthorized + tags: + - apps_v1 + x-kubernetes-action: put + x-kubernetes-group-version-kind: + group: autoscaling + kind: Scale + version: v1 + x-codegen-request-body-name: body + x-contentType: application/json + x-accepts: application/json + /apis/apps/v1/namespaces/{namespace}/replicasets/{name}/status: + get: + description: read status of the specified ReplicaSet + operationId: readNamespacedReplicaSetStatus + parameters: + - description: name of the ReplicaSet + in: path + name: name + required: true + schema: + type: string + - description: object name and auth scope, such as for teams and projects + in: path + name: namespace + required: true + schema: + type: string + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). + in: query + name: pretty + schema: + type: string + responses: + "200": content: application/json: schema: - $ref: '#/components/schemas/v1.SelfSubjectAccessReview' + $ref: '#/components/schemas/v1.ReplicaSet' application/yaml: schema: - $ref: '#/components/schemas/v1.SelfSubjectAccessReview' + $ref: '#/components/schemas/v1.ReplicaSet' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.SelfSubjectAccessReview' - description: Accepted + $ref: '#/components/schemas/v1.ReplicaSet' + application/cbor: + schema: + $ref: '#/components/schemas/v1.ReplicaSet' + description: OK "401": content: {} description: Unauthorized tags: - - authorization_v1 - x-kubernetes-action: post + - apps_v1 + x-kubernetes-action: get x-kubernetes-group-version-kind: - group: authorization.k8s.io - kind: SelfSubjectAccessReview + group: apps + kind: ReplicaSet version: v1 - x-codegen-request-body-name: body - x-contentType: application/json x-accepts: application/json - /apis/authorization.k8s.io/v1/selfsubjectrulesreviews: - post: - description: create a SelfSubjectRulesReview - operationId: createSelfSubjectRulesReview + patch: + description: partially update status of the specified ReplicaSet + operationId: patchNamespacedReplicaSetStatus parameters: + - description: name of the ReplicaSet + in: path + name: name + required: true + schema: + type: string + - description: object name and auth scope, such as for teams and projects + in: path + name: namespace + required: true + schema: + type: string + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). + in: query + name: pretty + schema: + type: string - description: '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 @@ -31181,6 +33360,8 @@ paths: - description: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + This field is required for apply requests (application/apply-patch) but + optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). in: query name: fieldManager schema: @@ -31202,72 +33383,86 @@ paths: name: fieldValidation schema: type: string - - description: If 'true', then the output is pretty printed. + - description: Force is going to "force" Apply requests. It means user will + re-acquire conflicting fields owned by other people. Force flag must be + unset for non-apply patch requests. in: query - name: pretty + name: force schema: - type: string + type: boolean requestBody: content: application/json: schema: - $ref: '#/components/schemas/v1.SelfSubjectRulesReview' + $ref: '#/components/schemas/v1.Patch' required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.SelfSubjectRulesReview' + $ref: '#/components/schemas/v1.ReplicaSet' application/yaml: schema: - $ref: '#/components/schemas/v1.SelfSubjectRulesReview' + $ref: '#/components/schemas/v1.ReplicaSet' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.SelfSubjectRulesReview' + $ref: '#/components/schemas/v1.ReplicaSet' + application/cbor: + schema: + $ref: '#/components/schemas/v1.ReplicaSet' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.SelfSubjectRulesReview' + $ref: '#/components/schemas/v1.ReplicaSet' application/yaml: schema: - $ref: '#/components/schemas/v1.SelfSubjectRulesReview' + $ref: '#/components/schemas/v1.ReplicaSet' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.SelfSubjectRulesReview' - description: Created - "202": - content: - application/json: - schema: - $ref: '#/components/schemas/v1.SelfSubjectRulesReview' - application/yaml: - schema: - $ref: '#/components/schemas/v1.SelfSubjectRulesReview' - application/vnd.kubernetes.protobuf: + $ref: '#/components/schemas/v1.ReplicaSet' + application/cbor: schema: - $ref: '#/components/schemas/v1.SelfSubjectRulesReview' - description: Accepted + $ref: '#/components/schemas/v1.ReplicaSet' + description: Created "401": content: {} description: Unauthorized tags: - - authorization_v1 - x-kubernetes-action: post + - apps_v1 + x-kubernetes-action: patch x-kubernetes-group-version-kind: - group: authorization.k8s.io - kind: SelfSubjectRulesReview + group: apps + kind: ReplicaSet version: v1 x-codegen-request-body-name: body x-contentType: application/json x-accepts: application/json - /apis/authorization.k8s.io/v1/subjectaccessreviews: - post: - description: create a SubjectAccessReview - operationId: createSubjectAccessReview + put: + description: replace status of the specified ReplicaSet + operationId: replaceNamespacedReplicaSetStatus parameters: + - description: name of the ReplicaSet + in: path + name: name + required: true + schema: + type: string + - description: object name and auth scope, such as for teams and projects + in: path + name: namespace + required: true + schema: + type: string + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). + in: query + name: pretty + schema: + type: string - description: '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 @@ -31300,128 +33495,74 @@ paths: name: fieldValidation schema: type: string - - description: If 'true', then the output is pretty printed. - in: query - name: pretty - schema: - type: string requestBody: content: application/json: schema: - $ref: '#/components/schemas/v1.SubjectAccessReview' + $ref: '#/components/schemas/v1.ReplicaSet' required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.SubjectAccessReview' + $ref: '#/components/schemas/v1.ReplicaSet' application/yaml: schema: - $ref: '#/components/schemas/v1.SubjectAccessReview' + $ref: '#/components/schemas/v1.ReplicaSet' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.SubjectAccessReview' + $ref: '#/components/schemas/v1.ReplicaSet' + application/cbor: + schema: + $ref: '#/components/schemas/v1.ReplicaSet' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.SubjectAccessReview' + $ref: '#/components/schemas/v1.ReplicaSet' application/yaml: schema: - $ref: '#/components/schemas/v1.SubjectAccessReview' + $ref: '#/components/schemas/v1.ReplicaSet' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.SubjectAccessReview' - description: Created - "202": - content: - application/json: - schema: - $ref: '#/components/schemas/v1.SubjectAccessReview' - application/yaml: - schema: - $ref: '#/components/schemas/v1.SubjectAccessReview' - application/vnd.kubernetes.protobuf: + $ref: '#/components/schemas/v1.ReplicaSet' + application/cbor: schema: - $ref: '#/components/schemas/v1.SubjectAccessReview' - description: Accepted + $ref: '#/components/schemas/v1.ReplicaSet' + description: Created "401": content: {} description: Unauthorized tags: - - authorization_v1 - x-kubernetes-action: post + - apps_v1 + x-kubernetes-action: put x-kubernetes-group-version-kind: - group: authorization.k8s.io - kind: SubjectAccessReview + group: apps + kind: ReplicaSet version: v1 x-codegen-request-body-name: body x-contentType: application/json x-accepts: application/json - /apis/autoscaling/: - get: - description: get information of a group - operationId: getAPIGroup - responses: - "200": - content: - application/json: - schema: - $ref: '#/components/schemas/v1.APIGroup' - application/yaml: - schema: - $ref: '#/components/schemas/v1.APIGroup' - application/vnd.kubernetes.protobuf: - schema: - $ref: '#/components/schemas/v1.APIGroup' - description: OK - "401": - content: {} - description: Unauthorized - tags: - - autoscaling - x-accepts: application/json - /apis/autoscaling/v1/: - get: - description: get available resources - operationId: getAPIResources - responses: - "200": - content: - application/json: - schema: - $ref: '#/components/schemas/v1.APIResourceList' - application/yaml: - schema: - $ref: '#/components/schemas/v1.APIResourceList' - application/vnd.kubernetes.protobuf: - schema: - $ref: '#/components/schemas/v1.APIResourceList' - description: OK - "401": - content: {} - description: Unauthorized - tags: - - autoscaling_v1 - x-accepts: application/json - /apis/autoscaling/v1/horizontalpodautoscalers: - get: - description: list or watch objects of kind HorizontalPodAutoscaler - operationId: listHorizontalPodAutoscalerForAllNamespaces + /apis/apps/v1/namespaces/{namespace}/statefulsets: + delete: + description: delete collection of StatefulSet + operationId: deleteCollectionNamespacedStatefulSet parameters: - - description: 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. + - description: object name and auth scope, such as for teams and projects + in: path + name: namespace + required: true + schema: + type: string + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query - name: allowWatchBookmarks + name: pretty schema: - type: boolean + type: string - description: |- 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". @@ -31430,12 +33571,43 @@ paths: name: continue schema: type: string + - description: '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' + in: query + 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 + - description: 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. + in: query + name: gracePeriodSeconds + schema: + type: integer + - description: 'if set to true, it will trigger an unsafe deletion of the resource + in case the normal deletion flow fails with a corrupt object error. A resource + is considered corrupt if it can not be retrieved from the underlying storage + successfully because of a) its data can not be transformed e.g. decryption + failure, or b) it fails to decode into an object. NOTE: unsafe deletion + ignores finalizer constraints, skips precondition checks, and removes the + object from the storage. WARNING: This may potentially break the cluster + if the workload associated with the resource being unsafe-deleted relies + on normal deletion flow. Use only if you REALLY know what you are doing. + The default value is false, and the user must opt in to enable it' + in: query + name: ignoreStoreReadErrorWithClusterBreakingPotential + schema: + type: boolean - description: A selector to restrict the list of returned objects by their labels. Defaults to everything. in: query @@ -31450,9 +33622,23 @@ paths: name: limit schema: type: integer - - description: If 'true', then the output is pretty printed. + - description: '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.' in: query - name: pretty + name: orphanDependents + schema: + type: boolean + - description: '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.' + in: query + name: propagationPolicy schema: type: string - description: |- @@ -31495,178 +33681,25 @@ paths: name: timeoutSeconds schema: type: integer - - description: Watch for changes to the described resources and return them - as a stream of add, update, and remove notifications. Specify resourceVersion. - in: query - name: watch - schema: - type: boolean + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/v1.DeleteOptions' + required: false responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.HorizontalPodAutoscalerList' + $ref: '#/components/schemas/v1.Status' application/yaml: schema: - $ref: '#/components/schemas/v1.HorizontalPodAutoscalerList' + $ref: '#/components/schemas/v1.Status' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.HorizontalPodAutoscalerList' - application/json;stream=watch: - schema: - $ref: '#/components/schemas/v1.HorizontalPodAutoscalerList' - application/vnd.kubernetes.protobuf;stream=watch: - schema: - $ref: '#/components/schemas/v1.HorizontalPodAutoscalerList' - description: OK - "401": - content: {} - description: Unauthorized - tags: - - autoscaling_v1 - x-kubernetes-action: list - x-kubernetes-group-version-kind: - group: autoscaling - kind: HorizontalPodAutoscaler - version: v1 - x-accepts: application/json - /apis/autoscaling/v1/namespaces/{namespace}/horizontalpodautoscalers: - delete: - description: delete collection of HorizontalPodAutoscaler - operationId: deleteCollectionNamespacedHorizontalPodAutoscaler - parameters: - - description: object name and auth scope, such as for teams and projects - in: path - name: namespace - required: true - schema: - type: string - - description: If 'true', then the output is pretty printed. - in: query - name: pretty - schema: - type: string - - description: |- - 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. - in: query - name: continue - schema: - type: string - - description: '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' - in: query - 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 - - description: 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. - in: query - name: gracePeriodSeconds - schema: - type: integer - - description: A selector to restrict the list of returned objects by their - labels. Defaults to everything. - in: query - name: labelSelector - schema: - type: string - - description: |- - limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. - - The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. - in: query - name: limit - schema: - type: integer - - description: '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.' - in: query - name: orphanDependents - schema: - type: boolean - - description: '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.' - in: query - name: propagationPolicy - schema: - type: string - - description: |- - resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. - - Defaults to unset - in: query - name: resourceVersion - schema: - type: string - - description: |- - resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. - - Defaults to unset - in: query - name: resourceVersionMatch - schema: - type: string - - description: |- - `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic "Bookmark" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `"k8s.io/initial-events-end": "true"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. - - When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan - is interpreted as "data at least as new as the provided `resourceVersion`" - and the bookmark event is send when the state is synced - to a `resourceVersion` at least as fresh as the one provided by the ListOptions. - If `resourceVersion` is unset, this is interpreted as "consistent read" and the - bookmark event is send when the state is synced at least to the moment - when request started being processed. - - `resourceVersionMatch` set to any other value or unset - Invalid error is returned. - - Defaults to true if `resourceVersion=""` or `resourceVersion="0"` (for backward compatibility reasons) and to false otherwise. - in: query - name: sendInitialEvents - schema: - type: boolean - - description: Timeout for the list/watch call. This limits the duration of - the call, regardless of any activity or inactivity. - in: query - name: timeoutSeconds - schema: - type: integer - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/v1.DeleteOptions' - required: false - responses: - "200": - content: - application/json: - schema: - $ref: '#/components/schemas/v1.Status' - application/yaml: - schema: - $ref: '#/components/schemas/v1.Status' - application/vnd.kubernetes.protobuf: + $ref: '#/components/schemas/v1.Status' + application/cbor: schema: $ref: '#/components/schemas/v1.Status' description: OK @@ -31674,18 +33707,18 @@ paths: content: {} description: Unauthorized tags: - - autoscaling_v1 + - apps_v1 x-kubernetes-action: deletecollection x-kubernetes-group-version-kind: - group: autoscaling - kind: HorizontalPodAutoscaler + group: apps + kind: StatefulSet version: v1 x-codegen-request-body-name: body x-contentType: application/json x-accepts: application/json get: - description: list or watch objects of kind HorizontalPodAutoscaler - operationId: listNamespacedHorizontalPodAutoscaler + description: list or watch objects of kind StatefulSet + operationId: listNamespacedStatefulSet parameters: - description: object name and auth scope, such as for teams and projects in: path @@ -31693,7 +33726,9 @@ paths: required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -31787,34 +33822,40 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.HorizontalPodAutoscalerList' + $ref: '#/components/schemas/v1.StatefulSetList' application/yaml: schema: - $ref: '#/components/schemas/v1.HorizontalPodAutoscalerList' + $ref: '#/components/schemas/v1.StatefulSetList' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.HorizontalPodAutoscalerList' + $ref: '#/components/schemas/v1.StatefulSetList' + application/cbor: + schema: + $ref: '#/components/schemas/v1.StatefulSetList' application/json;stream=watch: schema: - $ref: '#/components/schemas/v1.HorizontalPodAutoscalerList' + $ref: '#/components/schemas/v1.StatefulSetList' application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: '#/components/schemas/v1.HorizontalPodAutoscalerList' + $ref: '#/components/schemas/v1.StatefulSetList' + application/cbor-seq: + schema: + $ref: '#/components/schemas/v1.StatefulSetList' description: OK "401": content: {} description: Unauthorized tags: - - autoscaling_v1 + - apps_v1 x-kubernetes-action: list x-kubernetes-group-version-kind: - group: autoscaling - kind: HorizontalPodAutoscaler + group: apps + kind: StatefulSet version: v1 x-accepts: application/json post: - description: create a HorizontalPodAutoscaler - operationId: createNamespacedHorizontalPodAutoscaler + description: create a StatefulSet + operationId: createNamespacedStatefulSet parameters: - description: object name and auth scope, such as for teams and projects in: path @@ -31822,7 +33863,9 @@ paths: required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -31863,64 +33906,73 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.HorizontalPodAutoscaler' + $ref: '#/components/schemas/v1.StatefulSet' required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.HorizontalPodAutoscaler' + $ref: '#/components/schemas/v1.StatefulSet' application/yaml: schema: - $ref: '#/components/schemas/v1.HorizontalPodAutoscaler' + $ref: '#/components/schemas/v1.StatefulSet' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.HorizontalPodAutoscaler' + $ref: '#/components/schemas/v1.StatefulSet' + application/cbor: + schema: + $ref: '#/components/schemas/v1.StatefulSet' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.HorizontalPodAutoscaler' + $ref: '#/components/schemas/v1.StatefulSet' application/yaml: schema: - $ref: '#/components/schemas/v1.HorizontalPodAutoscaler' + $ref: '#/components/schemas/v1.StatefulSet' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.HorizontalPodAutoscaler' + $ref: '#/components/schemas/v1.StatefulSet' + application/cbor: + schema: + $ref: '#/components/schemas/v1.StatefulSet' description: Created "202": content: application/json: schema: - $ref: '#/components/schemas/v1.HorizontalPodAutoscaler' + $ref: '#/components/schemas/v1.StatefulSet' application/yaml: schema: - $ref: '#/components/schemas/v1.HorizontalPodAutoscaler' + $ref: '#/components/schemas/v1.StatefulSet' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.HorizontalPodAutoscaler' + $ref: '#/components/schemas/v1.StatefulSet' + application/cbor: + schema: + $ref: '#/components/schemas/v1.StatefulSet' description: Accepted "401": content: {} description: Unauthorized tags: - - autoscaling_v1 + - apps_v1 x-kubernetes-action: post x-kubernetes-group-version-kind: - group: autoscaling - kind: HorizontalPodAutoscaler + group: apps + kind: StatefulSet version: v1 x-codegen-request-body-name: body x-contentType: application/json x-accepts: application/json - /apis/autoscaling/v1/namespaces/{namespace}/horizontalpodautoscalers/{name}: + /apis/apps/v1/namespaces/{namespace}/statefulsets/{name}: delete: - description: delete a HorizontalPodAutoscaler - operationId: deleteNamespacedHorizontalPodAutoscaler + description: delete a StatefulSet + operationId: deleteNamespacedStatefulSet parameters: - - description: name of the HorizontalPodAutoscaler + - description: name of the StatefulSet in: path name: name required: true @@ -31932,7 +33984,9 @@ paths: required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -31954,6 +34008,20 @@ paths: name: gracePeriodSeconds schema: type: integer + - description: 'if set to true, it will trigger an unsafe deletion of the resource + in case the normal deletion flow fails with a corrupt object error. A resource + is considered corrupt if it can not be retrieved from the underlying storage + successfully because of a) its data can not be transformed e.g. decryption + failure, or b) it fails to decode into an object. NOTE: unsafe deletion + ignores finalizer constraints, skips precondition checks, and removes the + object from the storage. WARNING: This may potentially break the cluster + if the workload associated with the resource being unsafe-deleted relies + on normal deletion flow. Use only if you REALLY know what you are doing. + The default value is false, and the user must opt in to enable it' + in: query + name: ignoreStoreReadErrorWithClusterBreakingPotential + schema: + type: boolean - description: '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 @@ -31991,6 +34059,9 @@ paths: application/vnd.kubernetes.protobuf: schema: $ref: '#/components/schemas/v1.Status' + application/cbor: + schema: + $ref: '#/components/schemas/v1.Status' description: OK "202": content: @@ -32003,25 +34074,28 @@ paths: application/vnd.kubernetes.protobuf: schema: $ref: '#/components/schemas/v1.Status' + application/cbor: + schema: + $ref: '#/components/schemas/v1.Status' description: Accepted "401": content: {} description: Unauthorized tags: - - autoscaling_v1 + - apps_v1 x-kubernetes-action: delete x-kubernetes-group-version-kind: - group: autoscaling - kind: HorizontalPodAutoscaler + group: apps + kind: StatefulSet version: v1 x-codegen-request-body-name: body x-contentType: application/json x-accepts: application/json get: - description: read the specified HorizontalPodAutoscaler - operationId: readNamespacedHorizontalPodAutoscaler + description: read the specified StatefulSet + operationId: readNamespacedStatefulSet parameters: - - description: name of the HorizontalPodAutoscaler + - description: name of the StatefulSet in: path name: name required: true @@ -32033,7 +34107,9 @@ paths: required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -32043,30 +34119,33 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.HorizontalPodAutoscaler' + $ref: '#/components/schemas/v1.StatefulSet' application/yaml: schema: - $ref: '#/components/schemas/v1.HorizontalPodAutoscaler' + $ref: '#/components/schemas/v1.StatefulSet' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.HorizontalPodAutoscaler' + $ref: '#/components/schemas/v1.StatefulSet' + application/cbor: + schema: + $ref: '#/components/schemas/v1.StatefulSet' description: OK "401": content: {} description: Unauthorized tags: - - autoscaling_v1 + - apps_v1 x-kubernetes-action: get x-kubernetes-group-version-kind: - group: autoscaling - kind: HorizontalPodAutoscaler + group: apps + kind: StatefulSet version: v1 x-accepts: application/json patch: - description: partially update the specified HorizontalPodAutoscaler - operationId: patchNamespacedHorizontalPodAutoscaler + description: partially update the specified StatefulSet + operationId: patchNamespacedStatefulSet parameters: - - description: name of the HorizontalPodAutoscaler + - description: name of the StatefulSet in: path name: name required: true @@ -32078,7 +34157,9 @@ paths: required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -32135,44 +34216,50 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.HorizontalPodAutoscaler' + $ref: '#/components/schemas/v1.StatefulSet' application/yaml: schema: - $ref: '#/components/schemas/v1.HorizontalPodAutoscaler' + $ref: '#/components/schemas/v1.StatefulSet' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.HorizontalPodAutoscaler' + $ref: '#/components/schemas/v1.StatefulSet' + application/cbor: + schema: + $ref: '#/components/schemas/v1.StatefulSet' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.HorizontalPodAutoscaler' + $ref: '#/components/schemas/v1.StatefulSet' application/yaml: schema: - $ref: '#/components/schemas/v1.HorizontalPodAutoscaler' + $ref: '#/components/schemas/v1.StatefulSet' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.HorizontalPodAutoscaler' + $ref: '#/components/schemas/v1.StatefulSet' + application/cbor: + schema: + $ref: '#/components/schemas/v1.StatefulSet' description: Created "401": content: {} description: Unauthorized tags: - - autoscaling_v1 + - apps_v1 x-kubernetes-action: patch x-kubernetes-group-version-kind: - group: autoscaling - kind: HorizontalPodAutoscaler + group: apps + kind: StatefulSet version: v1 x-codegen-request-body-name: body x-contentType: application/json x-accepts: application/json put: - description: replace the specified HorizontalPodAutoscaler - operationId: replaceNamespacedHorizontalPodAutoscaler + description: replace the specified StatefulSet + operationId: replaceNamespacedStatefulSet parameters: - - description: name of the HorizontalPodAutoscaler + - description: name of the StatefulSet in: path name: name required: true @@ -32184,7 +34271,9 @@ paths: required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -32225,52 +34314,58 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.HorizontalPodAutoscaler' + $ref: '#/components/schemas/v1.StatefulSet' required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.HorizontalPodAutoscaler' + $ref: '#/components/schemas/v1.StatefulSet' application/yaml: schema: - $ref: '#/components/schemas/v1.HorizontalPodAutoscaler' + $ref: '#/components/schemas/v1.StatefulSet' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.HorizontalPodAutoscaler' + $ref: '#/components/schemas/v1.StatefulSet' + application/cbor: + schema: + $ref: '#/components/schemas/v1.StatefulSet' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.HorizontalPodAutoscaler' + $ref: '#/components/schemas/v1.StatefulSet' application/yaml: schema: - $ref: '#/components/schemas/v1.HorizontalPodAutoscaler' + $ref: '#/components/schemas/v1.StatefulSet' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.HorizontalPodAutoscaler' + $ref: '#/components/schemas/v1.StatefulSet' + application/cbor: + schema: + $ref: '#/components/schemas/v1.StatefulSet' description: Created "401": content: {} description: Unauthorized tags: - - autoscaling_v1 + - apps_v1 x-kubernetes-action: put x-kubernetes-group-version-kind: - group: autoscaling - kind: HorizontalPodAutoscaler + group: apps + kind: StatefulSet version: v1 x-codegen-request-body-name: body x-contentType: application/json x-accepts: application/json - /apis/autoscaling/v1/namespaces/{namespace}/horizontalpodautoscalers/{name}/status: + /apis/apps/v1/namespaces/{namespace}/statefulsets/{name}/scale: get: - description: read status of the specified HorizontalPodAutoscaler - operationId: readNamespacedHorizontalPodAutoscalerStatus + description: read scale of the specified StatefulSet + operationId: readNamespacedStatefulSetScale parameters: - - description: name of the HorizontalPodAutoscaler + - description: name of the Scale in: path name: name required: true @@ -32282,7 +34377,9 @@ paths: required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -32292,30 +34389,33 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.HorizontalPodAutoscaler' + $ref: '#/components/schemas/v1.Scale' application/yaml: schema: - $ref: '#/components/schemas/v1.HorizontalPodAutoscaler' + $ref: '#/components/schemas/v1.Scale' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.HorizontalPodAutoscaler' + $ref: '#/components/schemas/v1.Scale' + application/cbor: + schema: + $ref: '#/components/schemas/v1.Scale' description: OK "401": content: {} description: Unauthorized tags: - - autoscaling_v1 + - apps_v1 x-kubernetes-action: get x-kubernetes-group-version-kind: group: autoscaling - kind: HorizontalPodAutoscaler + kind: Scale version: v1 x-accepts: application/json patch: - description: partially update status of the specified HorizontalPodAutoscaler - operationId: patchNamespacedHorizontalPodAutoscalerStatus + description: partially update scale of the specified StatefulSet + operationId: patchNamespacedStatefulSetScale parameters: - - description: name of the HorizontalPodAutoscaler + - description: name of the Scale in: path name: name required: true @@ -32327,7 +34427,9 @@ paths: required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -32384,44 +34486,50 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.HorizontalPodAutoscaler' + $ref: '#/components/schemas/v1.Scale' application/yaml: schema: - $ref: '#/components/schemas/v1.HorizontalPodAutoscaler' + $ref: '#/components/schemas/v1.Scale' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.HorizontalPodAutoscaler' + $ref: '#/components/schemas/v1.Scale' + application/cbor: + schema: + $ref: '#/components/schemas/v1.Scale' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.HorizontalPodAutoscaler' + $ref: '#/components/schemas/v1.Scale' application/yaml: schema: - $ref: '#/components/schemas/v1.HorizontalPodAutoscaler' + $ref: '#/components/schemas/v1.Scale' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.HorizontalPodAutoscaler' + $ref: '#/components/schemas/v1.Scale' + application/cbor: + schema: + $ref: '#/components/schemas/v1.Scale' description: Created "401": content: {} description: Unauthorized tags: - - autoscaling_v1 + - apps_v1 x-kubernetes-action: patch x-kubernetes-group-version-kind: group: autoscaling - kind: HorizontalPodAutoscaler + kind: Scale version: v1 x-codegen-request-body-name: body x-contentType: application/json x-accepts: application/json put: - description: replace status of the specified HorizontalPodAutoscaler - operationId: replaceNamespacedHorizontalPodAutoscalerStatus + description: replace scale of the specified StatefulSet + operationId: replaceNamespacedStatefulSetScale parameters: - - description: name of the HorizontalPodAutoscaler + - description: name of the Scale in: path name: name required: true @@ -32433,7 +34541,9 @@ paths: required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -32474,220 +34584,240 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.HorizontalPodAutoscaler' + $ref: '#/components/schemas/v1.Scale' required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.HorizontalPodAutoscaler' + $ref: '#/components/schemas/v1.Scale' application/yaml: schema: - $ref: '#/components/schemas/v1.HorizontalPodAutoscaler' + $ref: '#/components/schemas/v1.Scale' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.HorizontalPodAutoscaler' + $ref: '#/components/schemas/v1.Scale' + application/cbor: + schema: + $ref: '#/components/schemas/v1.Scale' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.HorizontalPodAutoscaler' + $ref: '#/components/schemas/v1.Scale' application/yaml: schema: - $ref: '#/components/schemas/v1.HorizontalPodAutoscaler' + $ref: '#/components/schemas/v1.Scale' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.HorizontalPodAutoscaler' + $ref: '#/components/schemas/v1.Scale' + application/cbor: + schema: + $ref: '#/components/schemas/v1.Scale' description: Created "401": content: {} description: Unauthorized tags: - - autoscaling_v1 + - apps_v1 x-kubernetes-action: put x-kubernetes-group-version-kind: group: autoscaling - kind: HorizontalPodAutoscaler + kind: Scale version: v1 x-codegen-request-body-name: body x-contentType: application/json x-accepts: application/json - /apis/autoscaling/v1/watch/horizontalpodautoscalers: {} - /apis/autoscaling/v1/watch/namespaces/{namespace}/horizontalpodautoscalers: {} - /apis/autoscaling/v1/watch/namespaces/{namespace}/horizontalpodautoscalers/{name}: {} - /apis/autoscaling/v2/: + /apis/apps/v1/namespaces/{namespace}/statefulsets/{name}/status: get: - description: get available resources - operationId: getAPIResources + description: read status of the specified StatefulSet + operationId: readNamespacedStatefulSetStatus + parameters: + - description: name of the StatefulSet + in: path + name: name + required: true + schema: + type: string + - description: object name and auth scope, such as for teams and projects + in: path + name: namespace + required: true + schema: + type: string + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). + in: query + name: pretty + schema: + type: string responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.APIResourceList' + $ref: '#/components/schemas/v1.StatefulSet' application/yaml: schema: - $ref: '#/components/schemas/v1.APIResourceList' + $ref: '#/components/schemas/v1.StatefulSet' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.APIResourceList' + $ref: '#/components/schemas/v1.StatefulSet' + application/cbor: + schema: + $ref: '#/components/schemas/v1.StatefulSet' description: OK "401": content: {} description: Unauthorized tags: - - autoscaling_v2 + - apps_v1 + x-kubernetes-action: get + x-kubernetes-group-version-kind: + group: apps + kind: StatefulSet + version: v1 x-accepts: application/json - /apis/autoscaling/v2/horizontalpodautoscalers: - get: - description: list or watch objects of kind HorizontalPodAutoscaler - operationId: listHorizontalPodAutoscalerForAllNamespaces + patch: + description: partially update status of the specified StatefulSet + operationId: patchNamespacedStatefulSetStatus parameters: - - description: 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. - in: query - name: allowWatchBookmarks - schema: - type: boolean - - description: |- - 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. - in: query - name: continue - schema: - type: string - - description: A selector to restrict the list of returned objects by their - fields. Defaults to everything. - in: query - name: fieldSelector + - description: name of the StatefulSet + in: path + name: name + required: true schema: type: string - - description: A selector to restrict the list of returned objects by their - labels. Defaults to everything. - in: query - name: labelSelector + - description: object name and auth scope, such as for teams and projects + in: path + name: namespace + required: true schema: type: string - - description: |- - limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. - - The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. - in: query - name: limit - schema: - type: integer - - description: If 'true', then the output is pretty printed. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: type: string - - description: |- - resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. - - Defaults to unset + - description: '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' in: query - name: resourceVersion + name: dryRun schema: type: string - - description: |- - resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. - - Defaults to unset + - description: fieldManager is a name associated with the actor or entity that + is making these changes. The value must be less than or 128 characters long, + and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + This field is required for apply requests (application/apply-patch) but + optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). in: query - name: resourceVersionMatch + name: fieldManager schema: type: string - - description: |- - `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic "Bookmark" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `"k8s.io/initial-events-end": "true"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. - - When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan - is interpreted as "data at least as new as the provided `resourceVersion`" - and the bookmark event is send when the state is synced - to a `resourceVersion` at least as fresh as the one provided by the ListOptions. - If `resourceVersion` is unset, this is interpreted as "consistent read" and the - bookmark event is send when the state is synced at least to the moment - when request started being processed. - - `resourceVersionMatch` set to any other value or unset - Invalid error is returned. - - Defaults to true if `resourceVersion=""` or `resourceVersion="0"` (for backward compatibility reasons) and to false otherwise. - in: query - name: sendInitialEvents - schema: - type: boolean - - description: Timeout for the list/watch call. This limits the duration of - the call, regardless of any activity or inactivity. + - description: 'fieldValidation instructs the server on how to handle objects + in the request (POST/PUT/PATCH) containing unknown or duplicate fields. + Valid values are: - Ignore: This will ignore any unknown fields that are + silently dropped from the object, and will ignore all but the last duplicate + field that the decoder encounters. This is the default behavior prior to + v1.23. - Warn: This will send a warning via the standard warning response + header for each unknown field that is dropped from the object, and for each + duplicate field that is encountered. The request will still succeed if there + are no other errors, and will only persist the last of any duplicate fields. + This is the default in v1.23+ - Strict: This will fail the request with + a BadRequest error if any unknown fields would be dropped from the object, + or if any duplicate fields are present. The error returned from the server + will contain all unknown and duplicate fields encountered.' in: query - name: timeoutSeconds + name: fieldValidation schema: - type: integer - - description: Watch for changes to the described resources and return them - as a stream of add, update, and remove notifications. Specify resourceVersion. + type: string + - description: Force is going to "force" Apply requests. It means user will + re-acquire conflicting fields owned by other people. Force flag must be + unset for non-apply patch requests. in: query - name: watch + name: force schema: type: boolean + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/v1.Patch' + required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v2.HorizontalPodAutoscalerList' + $ref: '#/components/schemas/v1.StatefulSet' application/yaml: schema: - $ref: '#/components/schemas/v2.HorizontalPodAutoscalerList' + $ref: '#/components/schemas/v1.StatefulSet' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v2.HorizontalPodAutoscalerList' - application/json;stream=watch: - schema: - $ref: '#/components/schemas/v2.HorizontalPodAutoscalerList' - application/vnd.kubernetes.protobuf;stream=watch: + $ref: '#/components/schemas/v1.StatefulSet' + application/cbor: schema: - $ref: '#/components/schemas/v2.HorizontalPodAutoscalerList' + $ref: '#/components/schemas/v1.StatefulSet' description: OK + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.StatefulSet' + application/yaml: + schema: + $ref: '#/components/schemas/v1.StatefulSet' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.StatefulSet' + application/cbor: + schema: + $ref: '#/components/schemas/v1.StatefulSet' + description: Created "401": content: {} description: Unauthorized tags: - - autoscaling_v2 - x-kubernetes-action: list + - apps_v1 + x-kubernetes-action: patch x-kubernetes-group-version-kind: - group: autoscaling - kind: HorizontalPodAutoscaler - version: v2 + group: apps + kind: StatefulSet + version: v1 + x-codegen-request-body-name: body + x-contentType: application/json x-accepts: application/json - /apis/autoscaling/v2/namespaces/{namespace}/horizontalpodautoscalers: - delete: - description: delete collection of HorizontalPodAutoscaler - operationId: deleteCollectionNamespacedHorizontalPodAutoscaler + put: + description: replace status of the specified StatefulSet + operationId: replaceNamespacedStatefulSetStatus parameters: + - description: name of the StatefulSet + in: path + name: name + required: true + schema: + type: string - description: object name and auth scope, such as for teams and projects in: path name: namespace required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: type: string - - description: |- - 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. - in: query - name: continue - schema: - type: string - description: '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 @@ -32696,21 +34826,109 @@ paths: name: dryRun schema: type: string + - description: fieldManager is a name associated with the actor or entity that + is making these changes. The value must be less than or 128 characters long, + and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + in: query + name: fieldManager + schema: + type: string + - description: 'fieldValidation instructs the server on how to handle objects + in the request (POST/PUT/PATCH) containing unknown or duplicate fields. + Valid values are: - Ignore: This will ignore any unknown fields that are + silently dropped from the object, and will ignore all but the last duplicate + field that the decoder encounters. This is the default behavior prior to + v1.23. - Warn: This will send a warning via the standard warning response + header for each unknown field that is dropped from the object, and for each + duplicate field that is encountered. The request will still succeed if there + are no other errors, and will only persist the last of any duplicate fields. + This is the default in v1.23+ - Strict: This will fail the request with + a BadRequest error if any unknown fields would be dropped from the object, + or if any duplicate fields are present. The error returned from the server + will contain all unknown and duplicate fields encountered.' + in: query + name: fieldValidation + schema: + type: string + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/v1.StatefulSet' + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.StatefulSet' + application/yaml: + schema: + $ref: '#/components/schemas/v1.StatefulSet' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.StatefulSet' + application/cbor: + schema: + $ref: '#/components/schemas/v1.StatefulSet' + description: OK + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.StatefulSet' + application/yaml: + schema: + $ref: '#/components/schemas/v1.StatefulSet' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.StatefulSet' + application/cbor: + schema: + $ref: '#/components/schemas/v1.StatefulSet' + description: Created + "401": + content: {} + description: Unauthorized + tags: + - apps_v1 + x-kubernetes-action: put + x-kubernetes-group-version-kind: + group: apps + kind: StatefulSet + version: v1 + x-codegen-request-body-name: body + x-contentType: application/json + x-accepts: application/json + /apis/apps/v1/replicasets: + get: + description: list or watch objects of kind ReplicaSet + operationId: listReplicaSetForAllNamespaces + parameters: + - description: 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. + in: query + name: allowWatchBookmarks + schema: + type: boolean + - description: |- + 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. + in: query + name: continue + 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 - - description: 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. - in: query - name: gracePeriodSeconds - schema: - type: integer - description: A selector to restrict the list of returned objects by their labels. Defaults to everything. in: query @@ -32725,23 +34943,11 @@ paths: name: limit schema: type: integer - - description: '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.' - in: query - name: orphanDependents - schema: - type: boolean - - description: '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.' + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query - name: propagationPolicy + name: pretty schema: type: string - description: |- @@ -32784,53 +34990,53 @@ paths: name: timeoutSeconds schema: type: integer - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/v1.DeleteOptions' - required: false + - description: Watch for changes to the described resources and return them + as a stream of add, update, and remove notifications. Specify resourceVersion. + in: query + name: watch + schema: + type: boolean responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.Status' + $ref: '#/components/schemas/v1.ReplicaSetList' application/yaml: schema: - $ref: '#/components/schemas/v1.Status' + $ref: '#/components/schemas/v1.ReplicaSetList' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Status' + $ref: '#/components/schemas/v1.ReplicaSetList' + application/cbor: + schema: + $ref: '#/components/schemas/v1.ReplicaSetList' + application/json;stream=watch: + schema: + $ref: '#/components/schemas/v1.ReplicaSetList' + application/vnd.kubernetes.protobuf;stream=watch: + schema: + $ref: '#/components/schemas/v1.ReplicaSetList' + application/cbor-seq: + schema: + $ref: '#/components/schemas/v1.ReplicaSetList' description: OK "401": content: {} description: Unauthorized tags: - - autoscaling_v2 - x-kubernetes-action: deletecollection + - apps_v1 + x-kubernetes-action: list x-kubernetes-group-version-kind: - group: autoscaling - kind: HorizontalPodAutoscaler - version: v2 - x-codegen-request-body-name: body - x-contentType: application/json + group: apps + kind: ReplicaSet + version: v1 x-accepts: application/json + /apis/apps/v1/statefulsets: get: - description: list or watch objects of kind HorizontalPodAutoscaler - operationId: listNamespacedHorizontalPodAutoscaler + description: list or watch objects of kind StatefulSet + operationId: listStatefulSetForAllNamespaces parameters: - - description: object name and auth scope, such as for teams and projects - in: path - name: namespace - required: true - schema: - type: string - - description: If 'true', then the output is pretty printed. - in: query - name: pretty - schema: - type: string - description: 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 @@ -32869,6 +35075,13 @@ paths: name: limit schema: type: integer + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). + in: query + name: pretty + schema: + type: string - description: |- resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. @@ -32920,46 +35133,106 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v2.HorizontalPodAutoscalerList' + $ref: '#/components/schemas/v1.StatefulSetList' application/yaml: schema: - $ref: '#/components/schemas/v2.HorizontalPodAutoscalerList' + $ref: '#/components/schemas/v1.StatefulSetList' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v2.HorizontalPodAutoscalerList' + $ref: '#/components/schemas/v1.StatefulSetList' + application/cbor: + schema: + $ref: '#/components/schemas/v1.StatefulSetList' application/json;stream=watch: schema: - $ref: '#/components/schemas/v2.HorizontalPodAutoscalerList' + $ref: '#/components/schemas/v1.StatefulSetList' application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: '#/components/schemas/v2.HorizontalPodAutoscalerList' + $ref: '#/components/schemas/v1.StatefulSetList' + application/cbor-seq: + schema: + $ref: '#/components/schemas/v1.StatefulSetList' description: OK "401": content: {} description: Unauthorized tags: - - autoscaling_v2 + - apps_v1 x-kubernetes-action: list x-kubernetes-group-version-kind: - group: autoscaling - kind: HorizontalPodAutoscaler - version: v2 + group: apps + kind: StatefulSet + version: v1 + x-accepts: application/json + /apis/apps/v1/watch/controllerrevisions: {} + /apis/apps/v1/watch/daemonsets: {} + /apis/apps/v1/watch/deployments: {} + /apis/apps/v1/watch/namespaces/{namespace}/controllerrevisions: {} + /apis/apps/v1/watch/namespaces/{namespace}/controllerrevisions/{name}: {} + /apis/apps/v1/watch/namespaces/{namespace}/daemonsets: {} + /apis/apps/v1/watch/namespaces/{namespace}/daemonsets/{name}: {} + /apis/apps/v1/watch/namespaces/{namespace}/deployments: {} + /apis/apps/v1/watch/namespaces/{namespace}/deployments/{name}: {} + /apis/apps/v1/watch/namespaces/{namespace}/replicasets: {} + /apis/apps/v1/watch/namespaces/{namespace}/replicasets/{name}: {} + /apis/apps/v1/watch/namespaces/{namespace}/statefulsets: {} + /apis/apps/v1/watch/namespaces/{namespace}/statefulsets/{name}: {} + /apis/apps/v1/watch/replicasets: {} + /apis/apps/v1/watch/statefulsets: {} + /apis/authentication.k8s.io/: + get: + description: get information of a group + operationId: getAPIGroup + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.APIGroup' + application/yaml: + schema: + $ref: '#/components/schemas/v1.APIGroup' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.APIGroup' + description: OK + "401": + content: {} + description: Unauthorized + tags: + - authentication x-accepts: application/json + /apis/authentication.k8s.io/v1/: + get: + description: get available resources + operationId: getAPIResources + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.APIResourceList' + application/yaml: + schema: + $ref: '#/components/schemas/v1.APIResourceList' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.APIResourceList' + application/cbor: + schema: + $ref: '#/components/schemas/v1.APIResourceList' + description: OK + "401": + content: {} + description: Unauthorized + tags: + - authentication_v1 + x-accepts: application/json + /apis/authentication.k8s.io/v1/selfsubjectreviews: post: - description: create a HorizontalPodAutoscaler - operationId: createNamespacedHorizontalPodAutoscaler + description: create a SelfSubjectReview + operationId: createSelfSubjectReview parameters: - - description: object name and auth scope, such as for teams and projects - in: path - name: namespace - required: true - schema: - type: string - - description: If 'true', then the output is pretty printed. - in: query - name: pretty - schema: - type: string - description: '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 @@ -32992,84 +35265,83 @@ paths: name: fieldValidation schema: type: string + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). + in: query + name: pretty + schema: + type: string requestBody: content: application/json: schema: - $ref: '#/components/schemas/v2.HorizontalPodAutoscaler' + $ref: '#/components/schemas/v1.SelfSubjectReview' required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v2.HorizontalPodAutoscaler' + $ref: '#/components/schemas/v1.SelfSubjectReview' application/yaml: schema: - $ref: '#/components/schemas/v2.HorizontalPodAutoscaler' + $ref: '#/components/schemas/v1.SelfSubjectReview' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v2.HorizontalPodAutoscaler' + $ref: '#/components/schemas/v1.SelfSubjectReview' + application/cbor: + schema: + $ref: '#/components/schemas/v1.SelfSubjectReview' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v2.HorizontalPodAutoscaler' + $ref: '#/components/schemas/v1.SelfSubjectReview' application/yaml: schema: - $ref: '#/components/schemas/v2.HorizontalPodAutoscaler' + $ref: '#/components/schemas/v1.SelfSubjectReview' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v2.HorizontalPodAutoscaler' + $ref: '#/components/schemas/v1.SelfSubjectReview' + application/cbor: + schema: + $ref: '#/components/schemas/v1.SelfSubjectReview' description: Created "202": content: application/json: schema: - $ref: '#/components/schemas/v2.HorizontalPodAutoscaler' + $ref: '#/components/schemas/v1.SelfSubjectReview' application/yaml: schema: - $ref: '#/components/schemas/v2.HorizontalPodAutoscaler' + $ref: '#/components/schemas/v1.SelfSubjectReview' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v2.HorizontalPodAutoscaler' + $ref: '#/components/schemas/v1.SelfSubjectReview' + application/cbor: + schema: + $ref: '#/components/schemas/v1.SelfSubjectReview' description: Accepted "401": content: {} description: Unauthorized tags: - - autoscaling_v2 + - authentication_v1 x-kubernetes-action: post x-kubernetes-group-version-kind: - group: autoscaling - kind: HorizontalPodAutoscaler - version: v2 + group: authentication.k8s.io + kind: SelfSubjectReview + version: v1 x-codegen-request-body-name: body x-contentType: application/json x-accepts: application/json - /apis/autoscaling/v2/namespaces/{namespace}/horizontalpodautoscalers/{name}: - delete: - description: delete a HorizontalPodAutoscaler - operationId: deleteNamespacedHorizontalPodAutoscaler + /apis/authentication.k8s.io/v1/tokenreviews: + post: + description: create a TokenReview + operationId: createTokenReview parameters: - - description: name of the HorizontalPodAutoscaler - in: path - name: name - required: true - schema: - type: string - - description: object name and auth scope, such as for teams and projects - in: path - name: namespace - required: true - schema: - type: string - - description: If 'true', then the output is pretty printed. - in: query - name: pretty - schema: - type: string - description: '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 @@ -33078,144 +35350,156 @@ paths: name: dryRun schema: type: string - - description: 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. + - description: fieldManager is a name associated with the actor or entity that + is making these changes. The value must be less than or 128 characters long, + and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. in: query - name: gracePeriodSeconds + name: fieldManager schema: - type: integer - - description: '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.' + type: string + - description: 'fieldValidation instructs the server on how to handle objects + in the request (POST/PUT/PATCH) containing unknown or duplicate fields. + Valid values are: - Ignore: This will ignore any unknown fields that are + silently dropped from the object, and will ignore all but the last duplicate + field that the decoder encounters. This is the default behavior prior to + v1.23. - Warn: This will send a warning via the standard warning response + header for each unknown field that is dropped from the object, and for each + duplicate field that is encountered. The request will still succeed if there + are no other errors, and will only persist the last of any duplicate fields. + This is the default in v1.23+ - Strict: This will fail the request with + a BadRequest error if any unknown fields would be dropped from the object, + or if any duplicate fields are present. The error returned from the server + will contain all unknown and duplicate fields encountered.' in: query - name: orphanDependents + name: fieldValidation schema: - type: boolean - - description: '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.' + type: string + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query - name: propagationPolicy + name: pretty schema: type: string requestBody: content: application/json: schema: - $ref: '#/components/schemas/v1.DeleteOptions' - required: false + $ref: '#/components/schemas/v1.TokenReview' + required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.Status' + $ref: '#/components/schemas/v1.TokenReview' application/yaml: schema: - $ref: '#/components/schemas/v1.Status' + $ref: '#/components/schemas/v1.TokenReview' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Status' + $ref: '#/components/schemas/v1.TokenReview' + application/cbor: + schema: + $ref: '#/components/schemas/v1.TokenReview' description: OK + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.TokenReview' + application/yaml: + schema: + $ref: '#/components/schemas/v1.TokenReview' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.TokenReview' + application/cbor: + schema: + $ref: '#/components/schemas/v1.TokenReview' + description: Created "202": content: application/json: schema: - $ref: '#/components/schemas/v1.Status' + $ref: '#/components/schemas/v1.TokenReview' application/yaml: schema: - $ref: '#/components/schemas/v1.Status' + $ref: '#/components/schemas/v1.TokenReview' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Status' + $ref: '#/components/schemas/v1.TokenReview' + application/cbor: + schema: + $ref: '#/components/schemas/v1.TokenReview' description: Accepted "401": content: {} description: Unauthorized tags: - - autoscaling_v2 - x-kubernetes-action: delete + - authentication_v1 + x-kubernetes-action: post x-kubernetes-group-version-kind: - group: autoscaling - kind: HorizontalPodAutoscaler - version: v2 + group: authentication.k8s.io + kind: TokenReview + version: v1 x-codegen-request-body-name: body x-contentType: application/json x-accepts: application/json + /apis/authorization.k8s.io/: get: - description: read the specified HorizontalPodAutoscaler - operationId: readNamespacedHorizontalPodAutoscaler - parameters: - - description: name of the HorizontalPodAutoscaler - in: path - name: name - required: true - schema: - type: string - - description: object name and auth scope, such as for teams and projects - in: path - name: namespace - required: true - schema: - type: string - - description: If 'true', then the output is pretty printed. - in: query - name: pretty - schema: - type: string + description: get information of a group + operationId: getAPIGroup responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v2.HorizontalPodAutoscaler' + $ref: '#/components/schemas/v1.APIGroup' application/yaml: schema: - $ref: '#/components/schemas/v2.HorizontalPodAutoscaler' + $ref: '#/components/schemas/v1.APIGroup' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v2.HorizontalPodAutoscaler' + $ref: '#/components/schemas/v1.APIGroup' description: OK "401": content: {} description: Unauthorized tags: - - autoscaling_v2 - x-kubernetes-action: get - x-kubernetes-group-version-kind: - group: autoscaling - kind: HorizontalPodAutoscaler - version: v2 + - authorization x-accepts: application/json - patch: - description: partially update the specified HorizontalPodAutoscaler - operationId: patchNamespacedHorizontalPodAutoscaler + /apis/authorization.k8s.io/v1/: + get: + description: get available resources + operationId: getAPIResources + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.APIResourceList' + application/yaml: + schema: + $ref: '#/components/schemas/v1.APIResourceList' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.APIResourceList' + application/cbor: + schema: + $ref: '#/components/schemas/v1.APIResourceList' + description: OK + "401": + content: {} + description: Unauthorized + tags: + - authorization_v1 + x-accepts: application/json + /apis/authorization.k8s.io/v1/namespaces/{namespace}/localsubjectaccessreviews: + post: + description: create a LocalSubjectAccessReview + operationId: createNamespacedLocalSubjectAccessReview parameters: - - description: name of the HorizontalPodAutoscaler - in: path - name: name - required: true - schema: - type: string - - description: object name and auth scope, such as for teams and projects - in: path - name: namespace - required: true - schema: - type: string - - description: If 'true', then the output is pretty printed. - in: query - name: pretty - schema: - type: string - description: '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 @@ -33227,8 +35511,6 @@ paths: - description: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - This field is required for apply requests (application/apply-patch) but - optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). in: query name: fieldManager schema: @@ -33250,78 +35532,89 @@ paths: name: fieldValidation schema: type: string - - description: Force is going to "force" Apply requests. It means user will - re-acquire conflicting fields owned by other people. Force flag must be - unset for non-apply patch requests. + - description: object name and auth scope, such as for teams and projects + in: path + name: namespace + required: true + schema: + type: string + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query - name: force + name: pretty schema: - type: boolean + type: string requestBody: content: application/json: schema: - $ref: '#/components/schemas/v1.Patch' + $ref: '#/components/schemas/v1.LocalSubjectAccessReview' required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v2.HorizontalPodAutoscaler' + $ref: '#/components/schemas/v1.LocalSubjectAccessReview' application/yaml: schema: - $ref: '#/components/schemas/v2.HorizontalPodAutoscaler' + $ref: '#/components/schemas/v1.LocalSubjectAccessReview' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v2.HorizontalPodAutoscaler' + $ref: '#/components/schemas/v1.LocalSubjectAccessReview' + application/cbor: + schema: + $ref: '#/components/schemas/v1.LocalSubjectAccessReview' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v2.HorizontalPodAutoscaler' + $ref: '#/components/schemas/v1.LocalSubjectAccessReview' application/yaml: schema: - $ref: '#/components/schemas/v2.HorizontalPodAutoscaler' + $ref: '#/components/schemas/v1.LocalSubjectAccessReview' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v2.HorizontalPodAutoscaler' + $ref: '#/components/schemas/v1.LocalSubjectAccessReview' + application/cbor: + schema: + $ref: '#/components/schemas/v1.LocalSubjectAccessReview' description: Created + "202": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.LocalSubjectAccessReview' + application/yaml: + schema: + $ref: '#/components/schemas/v1.LocalSubjectAccessReview' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.LocalSubjectAccessReview' + application/cbor: + schema: + $ref: '#/components/schemas/v1.LocalSubjectAccessReview' + description: Accepted "401": content: {} description: Unauthorized tags: - - autoscaling_v2 - x-kubernetes-action: patch + - authorization_v1 + x-kubernetes-action: post x-kubernetes-group-version-kind: - group: autoscaling - kind: HorizontalPodAutoscaler - version: v2 + group: authorization.k8s.io + kind: LocalSubjectAccessReview + version: v1 x-codegen-request-body-name: body x-contentType: application/json x-accepts: application/json - put: - description: replace the specified HorizontalPodAutoscaler - operationId: replaceNamespacedHorizontalPodAutoscaler + /apis/authorization.k8s.io/v1/selfsubjectaccessreviews: + post: + description: create a SelfSubjectAccessReview + operationId: createSelfSubjectAccessReview parameters: - - description: name of the HorizontalPodAutoscaler - in: path - name: name - required: true - schema: - type: string - - description: object name and auth scope, such as for teams and projects - in: path - name: namespace - required: true - schema: - type: string - - description: If 'true', then the output is pretty printed. - in: query - name: pretty - schema: - type: string - description: '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 @@ -33354,117 +35647,83 @@ paths: name: fieldValidation schema: type: string + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). + in: query + name: pretty + schema: + type: string requestBody: content: application/json: schema: - $ref: '#/components/schemas/v2.HorizontalPodAutoscaler' + $ref: '#/components/schemas/v1.SelfSubjectAccessReview' required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v2.HorizontalPodAutoscaler' + $ref: '#/components/schemas/v1.SelfSubjectAccessReview' application/yaml: schema: - $ref: '#/components/schemas/v2.HorizontalPodAutoscaler' + $ref: '#/components/schemas/v1.SelfSubjectAccessReview' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v2.HorizontalPodAutoscaler' + $ref: '#/components/schemas/v1.SelfSubjectAccessReview' + application/cbor: + schema: + $ref: '#/components/schemas/v1.SelfSubjectAccessReview' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v2.HorizontalPodAutoscaler' + $ref: '#/components/schemas/v1.SelfSubjectAccessReview' application/yaml: schema: - $ref: '#/components/schemas/v2.HorizontalPodAutoscaler' + $ref: '#/components/schemas/v1.SelfSubjectAccessReview' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v2.HorizontalPodAutoscaler' + $ref: '#/components/schemas/v1.SelfSubjectAccessReview' + application/cbor: + schema: + $ref: '#/components/schemas/v1.SelfSubjectAccessReview' description: Created - "401": - content: {} - description: Unauthorized - tags: - - autoscaling_v2 - x-kubernetes-action: put - x-kubernetes-group-version-kind: - group: autoscaling - kind: HorizontalPodAutoscaler - version: v2 - x-codegen-request-body-name: body - x-contentType: application/json - x-accepts: application/json - /apis/autoscaling/v2/namespaces/{namespace}/horizontalpodautoscalers/{name}/status: - get: - description: read status of the specified HorizontalPodAutoscaler - operationId: readNamespacedHorizontalPodAutoscalerStatus - parameters: - - description: name of the HorizontalPodAutoscaler - in: path - name: name - required: true - schema: - type: string - - description: object name and auth scope, such as for teams and projects - in: path - name: namespace - required: true - schema: - type: string - - description: If 'true', then the output is pretty printed. - in: query - name: pretty - schema: - type: string - responses: - "200": + "202": content: application/json: schema: - $ref: '#/components/schemas/v2.HorizontalPodAutoscaler' + $ref: '#/components/schemas/v1.SelfSubjectAccessReview' application/yaml: schema: - $ref: '#/components/schemas/v2.HorizontalPodAutoscaler' + $ref: '#/components/schemas/v1.SelfSubjectAccessReview' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v2.HorizontalPodAutoscaler' - description: OK + $ref: '#/components/schemas/v1.SelfSubjectAccessReview' + application/cbor: + schema: + $ref: '#/components/schemas/v1.SelfSubjectAccessReview' + description: Accepted "401": content: {} description: Unauthorized tags: - - autoscaling_v2 - x-kubernetes-action: get + - authorization_v1 + x-kubernetes-action: post x-kubernetes-group-version-kind: - group: autoscaling - kind: HorizontalPodAutoscaler - version: v2 + group: authorization.k8s.io + kind: SelfSubjectAccessReview + version: v1 + x-codegen-request-body-name: body + x-contentType: application/json x-accepts: application/json - patch: - description: partially update status of the specified HorizontalPodAutoscaler - operationId: patchNamespacedHorizontalPodAutoscalerStatus + /apis/authorization.k8s.io/v1/selfsubjectrulesreviews: + post: + description: create a SelfSubjectRulesReview + operationId: createSelfSubjectRulesReview parameters: - - description: name of the HorizontalPodAutoscaler - in: path - name: name - required: true - schema: - type: string - - description: object name and auth scope, such as for teams and projects - in: path - name: namespace - required: true - schema: - type: string - - description: If 'true', then the output is pretty printed. - in: query - name: pretty - schema: - type: string - description: '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 @@ -33476,8 +35735,6 @@ paths: - description: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - This field is required for apply requests (application/apply-patch) but - optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). in: query name: fieldManager schema: @@ -33499,78 +35756,83 @@ paths: name: fieldValidation schema: type: string - - description: Force is going to "force" Apply requests. It means user will - re-acquire conflicting fields owned by other people. Force flag must be - unset for non-apply patch requests. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query - name: force + name: pretty schema: - type: boolean + type: string requestBody: content: application/json: schema: - $ref: '#/components/schemas/v1.Patch' + $ref: '#/components/schemas/v1.SelfSubjectRulesReview' required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v2.HorizontalPodAutoscaler' + $ref: '#/components/schemas/v1.SelfSubjectRulesReview' application/yaml: schema: - $ref: '#/components/schemas/v2.HorizontalPodAutoscaler' + $ref: '#/components/schemas/v1.SelfSubjectRulesReview' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v2.HorizontalPodAutoscaler' + $ref: '#/components/schemas/v1.SelfSubjectRulesReview' + application/cbor: + schema: + $ref: '#/components/schemas/v1.SelfSubjectRulesReview' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v2.HorizontalPodAutoscaler' + $ref: '#/components/schemas/v1.SelfSubjectRulesReview' application/yaml: schema: - $ref: '#/components/schemas/v2.HorizontalPodAutoscaler' + $ref: '#/components/schemas/v1.SelfSubjectRulesReview' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v2.HorizontalPodAutoscaler' + $ref: '#/components/schemas/v1.SelfSubjectRulesReview' + application/cbor: + schema: + $ref: '#/components/schemas/v1.SelfSubjectRulesReview' description: Created + "202": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.SelfSubjectRulesReview' + application/yaml: + schema: + $ref: '#/components/schemas/v1.SelfSubjectRulesReview' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.SelfSubjectRulesReview' + application/cbor: + schema: + $ref: '#/components/schemas/v1.SelfSubjectRulesReview' + description: Accepted "401": content: {} description: Unauthorized tags: - - autoscaling_v2 - x-kubernetes-action: patch + - authorization_v1 + x-kubernetes-action: post x-kubernetes-group-version-kind: - group: autoscaling - kind: HorizontalPodAutoscaler - version: v2 - x-codegen-request-body-name: body - x-contentType: application/json + group: authorization.k8s.io + kind: SelfSubjectRulesReview + version: v1 + x-codegen-request-body-name: body + x-contentType: application/json x-accepts: application/json - put: - description: replace status of the specified HorizontalPodAutoscaler - operationId: replaceNamespacedHorizontalPodAutoscalerStatus + /apis/authorization.k8s.io/v1/subjectaccessreviews: + post: + description: create a SubjectAccessReview + operationId: createSubjectAccessReview parameters: - - description: name of the HorizontalPodAutoscaler - in: path - name: name - required: true - schema: - type: string - - description: object name and auth scope, such as for teams and projects - in: path - name: namespace - required: true - schema: - type: string - - description: If 'true', then the output is pretty printed. - in: query - name: pretty - schema: - type: string - description: '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 @@ -33603,54 +35865,79 @@ paths: name: fieldValidation schema: type: string + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). + in: query + name: pretty + schema: + type: string requestBody: content: application/json: schema: - $ref: '#/components/schemas/v2.HorizontalPodAutoscaler' + $ref: '#/components/schemas/v1.SubjectAccessReview' required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v2.HorizontalPodAutoscaler' + $ref: '#/components/schemas/v1.SubjectAccessReview' application/yaml: schema: - $ref: '#/components/schemas/v2.HorizontalPodAutoscaler' + $ref: '#/components/schemas/v1.SubjectAccessReview' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v2.HorizontalPodAutoscaler' + $ref: '#/components/schemas/v1.SubjectAccessReview' + application/cbor: + schema: + $ref: '#/components/schemas/v1.SubjectAccessReview' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v2.HorizontalPodAutoscaler' + $ref: '#/components/schemas/v1.SubjectAccessReview' application/yaml: schema: - $ref: '#/components/schemas/v2.HorizontalPodAutoscaler' + $ref: '#/components/schemas/v1.SubjectAccessReview' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v2.HorizontalPodAutoscaler' + $ref: '#/components/schemas/v1.SubjectAccessReview' + application/cbor: + schema: + $ref: '#/components/schemas/v1.SubjectAccessReview' description: Created + "202": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.SubjectAccessReview' + application/yaml: + schema: + $ref: '#/components/schemas/v1.SubjectAccessReview' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.SubjectAccessReview' + application/cbor: + schema: + $ref: '#/components/schemas/v1.SubjectAccessReview' + description: Accepted "401": content: {} description: Unauthorized tags: - - autoscaling_v2 - x-kubernetes-action: put + - authorization_v1 + x-kubernetes-action: post x-kubernetes-group-version-kind: - group: autoscaling - kind: HorizontalPodAutoscaler - version: v2 + group: authorization.k8s.io + kind: SubjectAccessReview + version: v1 x-codegen-request-body-name: body x-contentType: application/json x-accepts: application/json - /apis/autoscaling/v2/watch/horizontalpodautoscalers: {} - /apis/autoscaling/v2/watch/namespaces/{namespace}/horizontalpodautoscalers: {} - /apis/autoscaling/v2/watch/namespaces/{namespace}/horizontalpodautoscalers/{name}: {} - /apis/batch/: + /apis/autoscaling/: get: description: get information of a group operationId: getAPIGroup @@ -33671,9 +35958,9 @@ paths: content: {} description: Unauthorized tags: - - batch + - autoscaling x-accepts: application/json - /apis/batch/v1/: + /apis/autoscaling/v1/: get: description: get available resources operationId: getAPIResources @@ -33689,141 +35976,20 @@ paths: application/vnd.kubernetes.protobuf: schema: $ref: '#/components/schemas/v1.APIResourceList' - description: OK - "401": - content: {} - description: Unauthorized - tags: - - batch_v1 - x-accepts: application/json - /apis/batch/v1/cronjobs: - get: - description: list or watch objects of kind CronJob - operationId: listCronJobForAllNamespaces - parameters: - - description: 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. - in: query - name: allowWatchBookmarks - schema: - type: boolean - - description: |- - 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. - in: query - name: continue - 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 - - description: A selector to restrict the list of returned objects by their - labels. Defaults to everything. - in: query - name: labelSelector - schema: - type: string - - description: |- - limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. - - The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. - in: query - name: limit - schema: - type: integer - - description: If 'true', then the output is pretty printed. - in: query - name: pretty - schema: - type: string - - description: |- - resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. - - Defaults to unset - in: query - name: resourceVersion - schema: - type: string - - description: |- - resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. - - Defaults to unset - in: query - name: resourceVersionMatch - schema: - type: string - - description: |- - `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic "Bookmark" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `"k8s.io/initial-events-end": "true"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. - - When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan - is interpreted as "data at least as new as the provided `resourceVersion`" - and the bookmark event is send when the state is synced - to a `resourceVersion` at least as fresh as the one provided by the ListOptions. - If `resourceVersion` is unset, this is interpreted as "consistent read" and the - bookmark event is send when the state is synced at least to the moment - when request started being processed. - - `resourceVersionMatch` set to any other value or unset - Invalid error is returned. - - Defaults to true if `resourceVersion=""` or `resourceVersion="0"` (for backward compatibility reasons) and to false otherwise. - in: query - name: sendInitialEvents - schema: - type: boolean - - description: Timeout for the list/watch call. This limits the duration of - the call, regardless of any activity or inactivity. - in: query - name: timeoutSeconds - schema: - type: integer - - description: Watch for changes to the described resources and return them - as a stream of add, update, and remove notifications. Specify resourceVersion. - in: query - name: watch - schema: - type: boolean - responses: - "200": - content: - application/json: - schema: - $ref: '#/components/schemas/v1.CronJobList' - application/yaml: - schema: - $ref: '#/components/schemas/v1.CronJobList' - application/vnd.kubernetes.protobuf: + application/cbor: schema: - $ref: '#/components/schemas/v1.CronJobList' - application/json;stream=watch: - schema: - $ref: '#/components/schemas/v1.CronJobList' - application/vnd.kubernetes.protobuf;stream=watch: - schema: - $ref: '#/components/schemas/v1.CronJobList' + $ref: '#/components/schemas/v1.APIResourceList' description: OK "401": content: {} description: Unauthorized tags: - - batch_v1 - x-kubernetes-action: list - x-kubernetes-group-version-kind: - group: batch - kind: CronJob - version: v1 + - autoscaling_v1 x-accepts: application/json - /apis/batch/v1/jobs: + /apis/autoscaling/v1/horizontalpodautoscalers: get: - description: list or watch objects of kind Job - operationId: listJobForAllNamespaces + description: list or watch objects of kind HorizontalPodAutoscaler + operationId: listHorizontalPodAutoscalerForAllNamespaces parameters: - description: allowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do not implement bookmarks may ignore this flag and bookmarks @@ -33863,7 +36029,9 @@ paths: name: limit schema: type: integer - - description: If 'true', then the output is pretty printed. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -33919,35 +36087,41 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.JobList' + $ref: '#/components/schemas/v1.HorizontalPodAutoscalerList' application/yaml: schema: - $ref: '#/components/schemas/v1.JobList' + $ref: '#/components/schemas/v1.HorizontalPodAutoscalerList' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.JobList' + $ref: '#/components/schemas/v1.HorizontalPodAutoscalerList' + application/cbor: + schema: + $ref: '#/components/schemas/v1.HorizontalPodAutoscalerList' application/json;stream=watch: schema: - $ref: '#/components/schemas/v1.JobList' + $ref: '#/components/schemas/v1.HorizontalPodAutoscalerList' application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: '#/components/schemas/v1.JobList' + $ref: '#/components/schemas/v1.HorizontalPodAutoscalerList' + application/cbor-seq: + schema: + $ref: '#/components/schemas/v1.HorizontalPodAutoscalerList' description: OK "401": content: {} description: Unauthorized tags: - - batch_v1 + - autoscaling_v1 x-kubernetes-action: list x-kubernetes-group-version-kind: - group: batch - kind: Job + group: autoscaling + kind: HorizontalPodAutoscaler version: v1 x-accepts: application/json - /apis/batch/v1/namespaces/{namespace}/cronjobs: + /apis/autoscaling/v1/namespaces/{namespace}/horizontalpodautoscalers: delete: - description: delete collection of CronJob - operationId: deleteCollectionNamespacedCronJob + description: delete collection of HorizontalPodAutoscaler + operationId: deleteCollectionNamespacedHorizontalPodAutoscaler parameters: - description: object name and auth scope, such as for teams and projects in: path @@ -33955,7 +36129,9 @@ paths: required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -33991,6 +36167,20 @@ paths: name: gracePeriodSeconds schema: type: integer + - description: 'if set to true, it will trigger an unsafe deletion of the resource + in case the normal deletion flow fails with a corrupt object error. A resource + is considered corrupt if it can not be retrieved from the underlying storage + successfully because of a) its data can not be transformed e.g. decryption + failure, or b) it fails to decode into an object. NOTE: unsafe deletion + ignores finalizer constraints, skips precondition checks, and removes the + object from the storage. WARNING: This may potentially break the cluster + if the workload associated with the resource being unsafe-deleted relies + on normal deletion flow. Use only if you REALLY know what you are doing. + The default value is false, and the user must opt in to enable it' + in: query + name: ignoreStoreReadErrorWithClusterBreakingPotential + schema: + type: boolean - description: A selector to restrict the list of returned objects by their labels. Defaults to everything. in: query @@ -34082,23 +36272,26 @@ paths: application/vnd.kubernetes.protobuf: schema: $ref: '#/components/schemas/v1.Status' + application/cbor: + schema: + $ref: '#/components/schemas/v1.Status' description: OK "401": content: {} description: Unauthorized tags: - - batch_v1 + - autoscaling_v1 x-kubernetes-action: deletecollection x-kubernetes-group-version-kind: - group: batch - kind: CronJob + group: autoscaling + kind: HorizontalPodAutoscaler version: v1 x-codegen-request-body-name: body x-contentType: application/json x-accepts: application/json get: - description: list or watch objects of kind CronJob - operationId: listNamespacedCronJob + description: list or watch objects of kind HorizontalPodAutoscaler + operationId: listNamespacedHorizontalPodAutoscaler parameters: - description: object name and auth scope, such as for teams and projects in: path @@ -34106,7 +36299,9 @@ paths: required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -34200,34 +36395,40 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.CronJobList' + $ref: '#/components/schemas/v1.HorizontalPodAutoscalerList' application/yaml: schema: - $ref: '#/components/schemas/v1.CronJobList' + $ref: '#/components/schemas/v1.HorizontalPodAutoscalerList' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.CronJobList' + $ref: '#/components/schemas/v1.HorizontalPodAutoscalerList' + application/cbor: + schema: + $ref: '#/components/schemas/v1.HorizontalPodAutoscalerList' application/json;stream=watch: schema: - $ref: '#/components/schemas/v1.CronJobList' + $ref: '#/components/schemas/v1.HorizontalPodAutoscalerList' application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: '#/components/schemas/v1.CronJobList' + $ref: '#/components/schemas/v1.HorizontalPodAutoscalerList' + application/cbor-seq: + schema: + $ref: '#/components/schemas/v1.HorizontalPodAutoscalerList' description: OK "401": content: {} description: Unauthorized tags: - - batch_v1 + - autoscaling_v1 x-kubernetes-action: list x-kubernetes-group-version-kind: - group: batch - kind: CronJob + group: autoscaling + kind: HorizontalPodAutoscaler version: v1 x-accepts: application/json post: - description: create a CronJob - operationId: createNamespacedCronJob + description: create a HorizontalPodAutoscaler + operationId: createNamespacedHorizontalPodAutoscaler parameters: - description: object name and auth scope, such as for teams and projects in: path @@ -34235,7 +36436,9 @@ paths: required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -34276,64 +36479,73 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.CronJob' + $ref: '#/components/schemas/v1.HorizontalPodAutoscaler' required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.CronJob' + $ref: '#/components/schemas/v1.HorizontalPodAutoscaler' application/yaml: schema: - $ref: '#/components/schemas/v1.CronJob' + $ref: '#/components/schemas/v1.HorizontalPodAutoscaler' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.CronJob' + $ref: '#/components/schemas/v1.HorizontalPodAutoscaler' + application/cbor: + schema: + $ref: '#/components/schemas/v1.HorizontalPodAutoscaler' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.CronJob' + $ref: '#/components/schemas/v1.HorizontalPodAutoscaler' application/yaml: schema: - $ref: '#/components/schemas/v1.CronJob' + $ref: '#/components/schemas/v1.HorizontalPodAutoscaler' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.CronJob' + $ref: '#/components/schemas/v1.HorizontalPodAutoscaler' + application/cbor: + schema: + $ref: '#/components/schemas/v1.HorizontalPodAutoscaler' description: Created "202": content: application/json: schema: - $ref: '#/components/schemas/v1.CronJob' + $ref: '#/components/schemas/v1.HorizontalPodAutoscaler' application/yaml: schema: - $ref: '#/components/schemas/v1.CronJob' + $ref: '#/components/schemas/v1.HorizontalPodAutoscaler' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.CronJob' + $ref: '#/components/schemas/v1.HorizontalPodAutoscaler' + application/cbor: + schema: + $ref: '#/components/schemas/v1.HorizontalPodAutoscaler' description: Accepted "401": content: {} description: Unauthorized tags: - - batch_v1 + - autoscaling_v1 x-kubernetes-action: post x-kubernetes-group-version-kind: - group: batch - kind: CronJob + group: autoscaling + kind: HorizontalPodAutoscaler version: v1 x-codegen-request-body-name: body x-contentType: application/json x-accepts: application/json - /apis/batch/v1/namespaces/{namespace}/cronjobs/{name}: + /apis/autoscaling/v1/namespaces/{namespace}/horizontalpodautoscalers/{name}: delete: - description: delete a CronJob - operationId: deleteNamespacedCronJob + description: delete a HorizontalPodAutoscaler + operationId: deleteNamespacedHorizontalPodAutoscaler parameters: - - description: name of the CronJob + - description: name of the HorizontalPodAutoscaler in: path name: name required: true @@ -34345,7 +36557,9 @@ paths: required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -34367,6 +36581,20 @@ paths: name: gracePeriodSeconds schema: type: integer + - description: 'if set to true, it will trigger an unsafe deletion of the resource + in case the normal deletion flow fails with a corrupt object error. A resource + is considered corrupt if it can not be retrieved from the underlying storage + successfully because of a) its data can not be transformed e.g. decryption + failure, or b) it fails to decode into an object. NOTE: unsafe deletion + ignores finalizer constraints, skips precondition checks, and removes the + object from the storage. WARNING: This may potentially break the cluster + if the workload associated with the resource being unsafe-deleted relies + on normal deletion flow. Use only if you REALLY know what you are doing. + The default value is false, and the user must opt in to enable it' + in: query + name: ignoreStoreReadErrorWithClusterBreakingPotential + schema: + type: boolean - description: '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 @@ -34404,6 +36632,9 @@ paths: application/vnd.kubernetes.protobuf: schema: $ref: '#/components/schemas/v1.Status' + application/cbor: + schema: + $ref: '#/components/schemas/v1.Status' description: OK "202": content: @@ -34416,25 +36647,28 @@ paths: application/vnd.kubernetes.protobuf: schema: $ref: '#/components/schemas/v1.Status' + application/cbor: + schema: + $ref: '#/components/schemas/v1.Status' description: Accepted "401": content: {} description: Unauthorized tags: - - batch_v1 + - autoscaling_v1 x-kubernetes-action: delete x-kubernetes-group-version-kind: - group: batch - kind: CronJob + group: autoscaling + kind: HorizontalPodAutoscaler version: v1 x-codegen-request-body-name: body x-contentType: application/json x-accepts: application/json get: - description: read the specified CronJob - operationId: readNamespacedCronJob + description: read the specified HorizontalPodAutoscaler + operationId: readNamespacedHorizontalPodAutoscaler parameters: - - description: name of the CronJob + - description: name of the HorizontalPodAutoscaler in: path name: name required: true @@ -34446,7 +36680,9 @@ paths: required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -34456,30 +36692,33 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.CronJob' + $ref: '#/components/schemas/v1.HorizontalPodAutoscaler' application/yaml: schema: - $ref: '#/components/schemas/v1.CronJob' + $ref: '#/components/schemas/v1.HorizontalPodAutoscaler' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.CronJob' + $ref: '#/components/schemas/v1.HorizontalPodAutoscaler' + application/cbor: + schema: + $ref: '#/components/schemas/v1.HorizontalPodAutoscaler' description: OK "401": content: {} description: Unauthorized tags: - - batch_v1 + - autoscaling_v1 x-kubernetes-action: get x-kubernetes-group-version-kind: - group: batch - kind: CronJob + group: autoscaling + kind: HorizontalPodAutoscaler version: v1 x-accepts: application/json patch: - description: partially update the specified CronJob - operationId: patchNamespacedCronJob + description: partially update the specified HorizontalPodAutoscaler + operationId: patchNamespacedHorizontalPodAutoscaler parameters: - - description: name of the CronJob + - description: name of the HorizontalPodAutoscaler in: path name: name required: true @@ -34491,7 +36730,9 @@ paths: required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -34548,44 +36789,50 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.CronJob' + $ref: '#/components/schemas/v1.HorizontalPodAutoscaler' application/yaml: schema: - $ref: '#/components/schemas/v1.CronJob' + $ref: '#/components/schemas/v1.HorizontalPodAutoscaler' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.CronJob' + $ref: '#/components/schemas/v1.HorizontalPodAutoscaler' + application/cbor: + schema: + $ref: '#/components/schemas/v1.HorizontalPodAutoscaler' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.CronJob' + $ref: '#/components/schemas/v1.HorizontalPodAutoscaler' application/yaml: schema: - $ref: '#/components/schemas/v1.CronJob' + $ref: '#/components/schemas/v1.HorizontalPodAutoscaler' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.CronJob' + $ref: '#/components/schemas/v1.HorizontalPodAutoscaler' + application/cbor: + schema: + $ref: '#/components/schemas/v1.HorizontalPodAutoscaler' description: Created "401": content: {} description: Unauthorized tags: - - batch_v1 + - autoscaling_v1 x-kubernetes-action: patch x-kubernetes-group-version-kind: - group: batch - kind: CronJob + group: autoscaling + kind: HorizontalPodAutoscaler version: v1 x-codegen-request-body-name: body x-contentType: application/json x-accepts: application/json put: - description: replace the specified CronJob - operationId: replaceNamespacedCronJob + description: replace the specified HorizontalPodAutoscaler + operationId: replaceNamespacedHorizontalPodAutoscaler parameters: - - description: name of the CronJob + - description: name of the HorizontalPodAutoscaler in: path name: name required: true @@ -34597,7 +36844,9 @@ paths: required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -34638,52 +36887,58 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.CronJob' + $ref: '#/components/schemas/v1.HorizontalPodAutoscaler' required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.CronJob' + $ref: '#/components/schemas/v1.HorizontalPodAutoscaler' application/yaml: schema: - $ref: '#/components/schemas/v1.CronJob' + $ref: '#/components/schemas/v1.HorizontalPodAutoscaler' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.CronJob' + $ref: '#/components/schemas/v1.HorizontalPodAutoscaler' + application/cbor: + schema: + $ref: '#/components/schemas/v1.HorizontalPodAutoscaler' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.CronJob' + $ref: '#/components/schemas/v1.HorizontalPodAutoscaler' application/yaml: schema: - $ref: '#/components/schemas/v1.CronJob' + $ref: '#/components/schemas/v1.HorizontalPodAutoscaler' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.CronJob' + $ref: '#/components/schemas/v1.HorizontalPodAutoscaler' + application/cbor: + schema: + $ref: '#/components/schemas/v1.HorizontalPodAutoscaler' description: Created "401": content: {} description: Unauthorized tags: - - batch_v1 + - autoscaling_v1 x-kubernetes-action: put x-kubernetes-group-version-kind: - group: batch - kind: CronJob + group: autoscaling + kind: HorizontalPodAutoscaler version: v1 x-codegen-request-body-name: body x-contentType: application/json x-accepts: application/json - /apis/batch/v1/namespaces/{namespace}/cronjobs/{name}/status: + /apis/autoscaling/v1/namespaces/{namespace}/horizontalpodautoscalers/{name}/status: get: - description: read status of the specified CronJob - operationId: readNamespacedCronJobStatus + description: read status of the specified HorizontalPodAutoscaler + operationId: readNamespacedHorizontalPodAutoscalerStatus parameters: - - description: name of the CronJob + - description: name of the HorizontalPodAutoscaler in: path name: name required: true @@ -34695,7 +36950,9 @@ paths: required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -34705,30 +36962,33 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.CronJob' + $ref: '#/components/schemas/v1.HorizontalPodAutoscaler' application/yaml: schema: - $ref: '#/components/schemas/v1.CronJob' + $ref: '#/components/schemas/v1.HorizontalPodAutoscaler' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.CronJob' + $ref: '#/components/schemas/v1.HorizontalPodAutoscaler' + application/cbor: + schema: + $ref: '#/components/schemas/v1.HorizontalPodAutoscaler' description: OK "401": content: {} description: Unauthorized tags: - - batch_v1 + - autoscaling_v1 x-kubernetes-action: get x-kubernetes-group-version-kind: - group: batch - kind: CronJob + group: autoscaling + kind: HorizontalPodAutoscaler version: v1 x-accepts: application/json patch: - description: partially update status of the specified CronJob - operationId: patchNamespacedCronJobStatus + description: partially update status of the specified HorizontalPodAutoscaler + operationId: patchNamespacedHorizontalPodAutoscalerStatus parameters: - - description: name of the CronJob + - description: name of the HorizontalPodAutoscaler in: path name: name required: true @@ -34740,7 +37000,9 @@ paths: required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -34797,44 +37059,50 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.CronJob' + $ref: '#/components/schemas/v1.HorizontalPodAutoscaler' application/yaml: schema: - $ref: '#/components/schemas/v1.CronJob' + $ref: '#/components/schemas/v1.HorizontalPodAutoscaler' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.CronJob' + $ref: '#/components/schemas/v1.HorizontalPodAutoscaler' + application/cbor: + schema: + $ref: '#/components/schemas/v1.HorizontalPodAutoscaler' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.CronJob' + $ref: '#/components/schemas/v1.HorizontalPodAutoscaler' application/yaml: schema: - $ref: '#/components/schemas/v1.CronJob' + $ref: '#/components/schemas/v1.HorizontalPodAutoscaler' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.CronJob' + $ref: '#/components/schemas/v1.HorizontalPodAutoscaler' + application/cbor: + schema: + $ref: '#/components/schemas/v1.HorizontalPodAutoscaler' description: Created "401": content: {} description: Unauthorized tags: - - batch_v1 + - autoscaling_v1 x-kubernetes-action: patch x-kubernetes-group-version-kind: - group: batch - kind: CronJob + group: autoscaling + kind: HorizontalPodAutoscaler version: v1 x-codegen-request-body-name: body x-contentType: application/json x-accepts: application/json put: - description: replace status of the specified CronJob - operationId: replaceNamespacedCronJobStatus + description: replace status of the specified HorizontalPodAutoscaler + operationId: replaceNamespacedHorizontalPodAutoscalerStatus parameters: - - description: name of the CronJob + - description: name of the HorizontalPodAutoscaler in: path name: name required: true @@ -34846,7 +37114,9 @@ paths: required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -34887,62 +37157,96 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.CronJob' + $ref: '#/components/schemas/v1.HorizontalPodAutoscaler' required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.CronJob' + $ref: '#/components/schemas/v1.HorizontalPodAutoscaler' application/yaml: schema: - $ref: '#/components/schemas/v1.CronJob' + $ref: '#/components/schemas/v1.HorizontalPodAutoscaler' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.CronJob' + $ref: '#/components/schemas/v1.HorizontalPodAutoscaler' + application/cbor: + schema: + $ref: '#/components/schemas/v1.HorizontalPodAutoscaler' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.CronJob' + $ref: '#/components/schemas/v1.HorizontalPodAutoscaler' application/yaml: schema: - $ref: '#/components/schemas/v1.CronJob' + $ref: '#/components/schemas/v1.HorizontalPodAutoscaler' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.CronJob' + $ref: '#/components/schemas/v1.HorizontalPodAutoscaler' + application/cbor: + schema: + $ref: '#/components/schemas/v1.HorizontalPodAutoscaler' description: Created "401": content: {} description: Unauthorized tags: - - batch_v1 + - autoscaling_v1 x-kubernetes-action: put x-kubernetes-group-version-kind: - group: batch - kind: CronJob + group: autoscaling + kind: HorizontalPodAutoscaler version: v1 x-codegen-request-body-name: body x-contentType: application/json x-accepts: application/json - /apis/batch/v1/namespaces/{namespace}/jobs: - delete: - description: delete collection of Job - operationId: deleteCollectionNamespacedJob + /apis/autoscaling/v1/watch/horizontalpodautoscalers: {} + /apis/autoscaling/v1/watch/namespaces/{namespace}/horizontalpodautoscalers: {} + /apis/autoscaling/v1/watch/namespaces/{namespace}/horizontalpodautoscalers/{name}: {} + /apis/autoscaling/v2/: + get: + description: get available resources + operationId: getAPIResources + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.APIResourceList' + application/yaml: + schema: + $ref: '#/components/schemas/v1.APIResourceList' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.APIResourceList' + application/cbor: + schema: + $ref: '#/components/schemas/v1.APIResourceList' + description: OK + "401": + content: {} + description: Unauthorized + tags: + - autoscaling_v2 + x-accepts: application/json + /apis/autoscaling/v2/horizontalpodautoscalers: + get: + description: list or watch objects of kind HorizontalPodAutoscaler + operationId: listHorizontalPodAutoscalerForAllNamespaces parameters: - - description: object name and auth scope, such as for teams and projects - in: path - name: namespace - required: true - schema: - type: string - - description: If 'true', then the output is pretty printed. + - description: 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. in: query - name: pretty + name: allowWatchBookmarks schema: - type: string + type: boolean - description: |- 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". @@ -34951,29 +37255,12 @@ paths: name: continue schema: type: string - - description: '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' - in: query - 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 - - description: 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. - in: query - name: gracePeriodSeconds - schema: - type: integer - description: A selector to restrict the list of returned objects by their labels. Defaults to everything. in: query @@ -34988,23 +37275,189 @@ paths: name: limit schema: type: integer - - description: '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.' - in: query - name: orphanDependents - schema: - type: boolean - - description: '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.' + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query - name: propagationPolicy + name: pretty + schema: + type: string + - description: |- + resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersion + schema: + type: string + - description: |- + resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersionMatch + schema: + type: string + - description: |- + `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic "Bookmark" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `"k8s.io/initial-events-end": "true"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. + + When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan + is interpreted as "data at least as new as the provided `resourceVersion`" + and the bookmark event is send when the state is synced + to a `resourceVersion` at least as fresh as the one provided by the ListOptions. + If `resourceVersion` is unset, this is interpreted as "consistent read" and the + bookmark event is send when the state is synced at least to the moment + when request started being processed. + - `resourceVersionMatch` set to any other value or unset + Invalid error is returned. + + Defaults to true if `resourceVersion=""` or `resourceVersion="0"` (for backward compatibility reasons) and to false otherwise. + in: query + name: sendInitialEvents + schema: + type: boolean + - description: Timeout for the list/watch call. This limits the duration of + the call, regardless of any activity or inactivity. + in: query + name: timeoutSeconds + schema: + type: integer + - description: Watch for changes to the described resources and return them + as a stream of add, update, and remove notifications. Specify resourceVersion. + in: query + name: watch + schema: + type: boolean + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v2.HorizontalPodAutoscalerList' + application/yaml: + schema: + $ref: '#/components/schemas/v2.HorizontalPodAutoscalerList' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v2.HorizontalPodAutoscalerList' + application/cbor: + schema: + $ref: '#/components/schemas/v2.HorizontalPodAutoscalerList' + application/json;stream=watch: + schema: + $ref: '#/components/schemas/v2.HorizontalPodAutoscalerList' + application/vnd.kubernetes.protobuf;stream=watch: + schema: + $ref: '#/components/schemas/v2.HorizontalPodAutoscalerList' + application/cbor-seq: + schema: + $ref: '#/components/schemas/v2.HorizontalPodAutoscalerList' + description: OK + "401": + content: {} + description: Unauthorized + tags: + - autoscaling_v2 + x-kubernetes-action: list + x-kubernetes-group-version-kind: + group: autoscaling + kind: HorizontalPodAutoscaler + version: v2 + x-accepts: application/json + /apis/autoscaling/v2/namespaces/{namespace}/horizontalpodautoscalers: + delete: + description: delete collection of HorizontalPodAutoscaler + operationId: deleteCollectionNamespacedHorizontalPodAutoscaler + parameters: + - description: object name and auth scope, such as for teams and projects + in: path + name: namespace + required: true + schema: + type: string + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). + in: query + name: pretty + schema: + type: string + - description: |- + 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. + in: query + name: continue + schema: + type: string + - description: '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' + in: query + 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 + - description: 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. + in: query + name: gracePeriodSeconds + schema: + type: integer + - description: 'if set to true, it will trigger an unsafe deletion of the resource + in case the normal deletion flow fails with a corrupt object error. A resource + is considered corrupt if it can not be retrieved from the underlying storage + successfully because of a) its data can not be transformed e.g. decryption + failure, or b) it fails to decode into an object. NOTE: unsafe deletion + ignores finalizer constraints, skips precondition checks, and removes the + object from the storage. WARNING: This may potentially break the cluster + if the workload associated with the resource being unsafe-deleted relies + on normal deletion flow. Use only if you REALLY know what you are doing. + The default value is false, and the user must opt in to enable it' + in: query + name: ignoreStoreReadErrorWithClusterBreakingPotential + schema: + type: boolean + - description: A selector to restrict the list of returned objects by their + labels. Defaults to everything. + in: query + name: labelSelector + schema: + type: string + - description: |- + limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. + + The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + in: query + name: limit + schema: + type: integer + - description: '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.' + in: query + name: orphanDependents + schema: + type: boolean + - description: '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.' + in: query + name: propagationPolicy schema: type: string - description: |- @@ -35065,23 +37518,26 @@ paths: application/vnd.kubernetes.protobuf: schema: $ref: '#/components/schemas/v1.Status' + application/cbor: + schema: + $ref: '#/components/schemas/v1.Status' description: OK "401": content: {} description: Unauthorized tags: - - batch_v1 + - autoscaling_v2 x-kubernetes-action: deletecollection x-kubernetes-group-version-kind: - group: batch - kind: Job - version: v1 + group: autoscaling + kind: HorizontalPodAutoscaler + version: v2 x-codegen-request-body-name: body x-contentType: application/json x-accepts: application/json get: - description: list or watch objects of kind Job - operationId: listNamespacedJob + description: list or watch objects of kind HorizontalPodAutoscaler + operationId: listNamespacedHorizontalPodAutoscaler parameters: - description: object name and auth scope, such as for teams and projects in: path @@ -35089,7 +37545,9 @@ paths: required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -35183,34 +37641,40 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.JobList' + $ref: '#/components/schemas/v2.HorizontalPodAutoscalerList' application/yaml: schema: - $ref: '#/components/schemas/v1.JobList' + $ref: '#/components/schemas/v2.HorizontalPodAutoscalerList' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.JobList' + $ref: '#/components/schemas/v2.HorizontalPodAutoscalerList' + application/cbor: + schema: + $ref: '#/components/schemas/v2.HorizontalPodAutoscalerList' application/json;stream=watch: schema: - $ref: '#/components/schemas/v1.JobList' + $ref: '#/components/schemas/v2.HorizontalPodAutoscalerList' application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: '#/components/schemas/v1.JobList' + $ref: '#/components/schemas/v2.HorizontalPodAutoscalerList' + application/cbor-seq: + schema: + $ref: '#/components/schemas/v2.HorizontalPodAutoscalerList' description: OK "401": content: {} description: Unauthorized tags: - - batch_v1 + - autoscaling_v2 x-kubernetes-action: list x-kubernetes-group-version-kind: - group: batch - kind: Job - version: v1 + group: autoscaling + kind: HorizontalPodAutoscaler + version: v2 x-accepts: application/json post: - description: create a Job - operationId: createNamespacedJob + description: create a HorizontalPodAutoscaler + operationId: createNamespacedHorizontalPodAutoscaler parameters: - description: object name and auth scope, such as for teams and projects in: path @@ -35218,7 +37682,9 @@ paths: required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -35259,64 +37725,73 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.Job' + $ref: '#/components/schemas/v2.HorizontalPodAutoscaler' required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.Job' + $ref: '#/components/schemas/v2.HorizontalPodAutoscaler' application/yaml: schema: - $ref: '#/components/schemas/v1.Job' + $ref: '#/components/schemas/v2.HorizontalPodAutoscaler' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Job' + $ref: '#/components/schemas/v2.HorizontalPodAutoscaler' + application/cbor: + schema: + $ref: '#/components/schemas/v2.HorizontalPodAutoscaler' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.Job' + $ref: '#/components/schemas/v2.HorizontalPodAutoscaler' application/yaml: schema: - $ref: '#/components/schemas/v1.Job' + $ref: '#/components/schemas/v2.HorizontalPodAutoscaler' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Job' + $ref: '#/components/schemas/v2.HorizontalPodAutoscaler' + application/cbor: + schema: + $ref: '#/components/schemas/v2.HorizontalPodAutoscaler' description: Created "202": content: application/json: schema: - $ref: '#/components/schemas/v1.Job' + $ref: '#/components/schemas/v2.HorizontalPodAutoscaler' application/yaml: schema: - $ref: '#/components/schemas/v1.Job' + $ref: '#/components/schemas/v2.HorizontalPodAutoscaler' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Job' + $ref: '#/components/schemas/v2.HorizontalPodAutoscaler' + application/cbor: + schema: + $ref: '#/components/schemas/v2.HorizontalPodAutoscaler' description: Accepted "401": content: {} description: Unauthorized tags: - - batch_v1 + - autoscaling_v2 x-kubernetes-action: post x-kubernetes-group-version-kind: - group: batch - kind: Job - version: v1 + group: autoscaling + kind: HorizontalPodAutoscaler + version: v2 x-codegen-request-body-name: body x-contentType: application/json x-accepts: application/json - /apis/batch/v1/namespaces/{namespace}/jobs/{name}: + /apis/autoscaling/v2/namespaces/{namespace}/horizontalpodautoscalers/{name}: delete: - description: delete a Job - operationId: deleteNamespacedJob + description: delete a HorizontalPodAutoscaler + operationId: deleteNamespacedHorizontalPodAutoscaler parameters: - - description: name of the Job + - description: name of the HorizontalPodAutoscaler in: path name: name required: true @@ -35328,7 +37803,9 @@ paths: required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -35350,6 +37827,20 @@ paths: name: gracePeriodSeconds schema: type: integer + - description: 'if set to true, it will trigger an unsafe deletion of the resource + in case the normal deletion flow fails with a corrupt object error. A resource + is considered corrupt if it can not be retrieved from the underlying storage + successfully because of a) its data can not be transformed e.g. decryption + failure, or b) it fails to decode into an object. NOTE: unsafe deletion + ignores finalizer constraints, skips precondition checks, and removes the + object from the storage. WARNING: This may potentially break the cluster + if the workload associated with the resource being unsafe-deleted relies + on normal deletion flow. Use only if you REALLY know what you are doing. + The default value is false, and the user must opt in to enable it' + in: query + name: ignoreStoreReadErrorWithClusterBreakingPotential + schema: + type: boolean - description: '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 @@ -35387,6 +37878,9 @@ paths: application/vnd.kubernetes.protobuf: schema: $ref: '#/components/schemas/v1.Status' + application/cbor: + schema: + $ref: '#/components/schemas/v1.Status' description: OK "202": content: @@ -35399,25 +37893,28 @@ paths: application/vnd.kubernetes.protobuf: schema: $ref: '#/components/schemas/v1.Status' + application/cbor: + schema: + $ref: '#/components/schemas/v1.Status' description: Accepted "401": content: {} description: Unauthorized tags: - - batch_v1 + - autoscaling_v2 x-kubernetes-action: delete x-kubernetes-group-version-kind: - group: batch - kind: Job - version: v1 + group: autoscaling + kind: HorizontalPodAutoscaler + version: v2 x-codegen-request-body-name: body x-contentType: application/json x-accepts: application/json get: - description: read the specified Job - operationId: readNamespacedJob + description: read the specified HorizontalPodAutoscaler + operationId: readNamespacedHorizontalPodAutoscaler parameters: - - description: name of the Job + - description: name of the HorizontalPodAutoscaler in: path name: name required: true @@ -35429,7 +37926,9 @@ paths: required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -35439,30 +37938,33 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.Job' + $ref: '#/components/schemas/v2.HorizontalPodAutoscaler' application/yaml: schema: - $ref: '#/components/schemas/v1.Job' + $ref: '#/components/schemas/v2.HorizontalPodAutoscaler' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Job' + $ref: '#/components/schemas/v2.HorizontalPodAutoscaler' + application/cbor: + schema: + $ref: '#/components/schemas/v2.HorizontalPodAutoscaler' description: OK "401": content: {} description: Unauthorized tags: - - batch_v1 + - autoscaling_v2 x-kubernetes-action: get x-kubernetes-group-version-kind: - group: batch - kind: Job - version: v1 + group: autoscaling + kind: HorizontalPodAutoscaler + version: v2 x-accepts: application/json patch: - description: partially update the specified Job - operationId: patchNamespacedJob + description: partially update the specified HorizontalPodAutoscaler + operationId: patchNamespacedHorizontalPodAutoscaler parameters: - - description: name of the Job + - description: name of the HorizontalPodAutoscaler in: path name: name required: true @@ -35474,7 +37976,9 @@ paths: required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -35531,44 +38035,50 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.Job' + $ref: '#/components/schemas/v2.HorizontalPodAutoscaler' application/yaml: schema: - $ref: '#/components/schemas/v1.Job' + $ref: '#/components/schemas/v2.HorizontalPodAutoscaler' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Job' + $ref: '#/components/schemas/v2.HorizontalPodAutoscaler' + application/cbor: + schema: + $ref: '#/components/schemas/v2.HorizontalPodAutoscaler' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.Job' + $ref: '#/components/schemas/v2.HorizontalPodAutoscaler' application/yaml: schema: - $ref: '#/components/schemas/v1.Job' + $ref: '#/components/schemas/v2.HorizontalPodAutoscaler' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Job' + $ref: '#/components/schemas/v2.HorizontalPodAutoscaler' + application/cbor: + schema: + $ref: '#/components/schemas/v2.HorizontalPodAutoscaler' description: Created "401": content: {} description: Unauthorized tags: - - batch_v1 + - autoscaling_v2 x-kubernetes-action: patch x-kubernetes-group-version-kind: - group: batch - kind: Job - version: v1 + group: autoscaling + kind: HorizontalPodAutoscaler + version: v2 x-codegen-request-body-name: body x-contentType: application/json x-accepts: application/json put: - description: replace the specified Job - operationId: replaceNamespacedJob + description: replace the specified HorizontalPodAutoscaler + operationId: replaceNamespacedHorizontalPodAutoscaler parameters: - - description: name of the Job + - description: name of the HorizontalPodAutoscaler in: path name: name required: true @@ -35580,7 +38090,9 @@ paths: required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -35621,52 +38133,58 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.Job' + $ref: '#/components/schemas/v2.HorizontalPodAutoscaler' required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.Job' + $ref: '#/components/schemas/v2.HorizontalPodAutoscaler' application/yaml: schema: - $ref: '#/components/schemas/v1.Job' + $ref: '#/components/schemas/v2.HorizontalPodAutoscaler' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Job' + $ref: '#/components/schemas/v2.HorizontalPodAutoscaler' + application/cbor: + schema: + $ref: '#/components/schemas/v2.HorizontalPodAutoscaler' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.Job' + $ref: '#/components/schemas/v2.HorizontalPodAutoscaler' application/yaml: schema: - $ref: '#/components/schemas/v1.Job' + $ref: '#/components/schemas/v2.HorizontalPodAutoscaler' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Job' + $ref: '#/components/schemas/v2.HorizontalPodAutoscaler' + application/cbor: + schema: + $ref: '#/components/schemas/v2.HorizontalPodAutoscaler' description: Created "401": content: {} description: Unauthorized tags: - - batch_v1 + - autoscaling_v2 x-kubernetes-action: put x-kubernetes-group-version-kind: - group: batch - kind: Job - version: v1 + group: autoscaling + kind: HorizontalPodAutoscaler + version: v2 x-codegen-request-body-name: body x-contentType: application/json x-accepts: application/json - /apis/batch/v1/namespaces/{namespace}/jobs/{name}/status: + /apis/autoscaling/v2/namespaces/{namespace}/horizontalpodautoscalers/{name}/status: get: - description: read status of the specified Job - operationId: readNamespacedJobStatus + description: read status of the specified HorizontalPodAutoscaler + operationId: readNamespacedHorizontalPodAutoscalerStatus parameters: - - description: name of the Job + - description: name of the HorizontalPodAutoscaler in: path name: name required: true @@ -35678,7 +38196,9 @@ paths: required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -35688,30 +38208,33 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.Job' + $ref: '#/components/schemas/v2.HorizontalPodAutoscaler' application/yaml: schema: - $ref: '#/components/schemas/v1.Job' + $ref: '#/components/schemas/v2.HorizontalPodAutoscaler' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Job' + $ref: '#/components/schemas/v2.HorizontalPodAutoscaler' + application/cbor: + schema: + $ref: '#/components/schemas/v2.HorizontalPodAutoscaler' description: OK "401": content: {} description: Unauthorized tags: - - batch_v1 + - autoscaling_v2 x-kubernetes-action: get x-kubernetes-group-version-kind: - group: batch - kind: Job - version: v1 + group: autoscaling + kind: HorizontalPodAutoscaler + version: v2 x-accepts: application/json patch: - description: partially update status of the specified Job - operationId: patchNamespacedJobStatus + description: partially update status of the specified HorizontalPodAutoscaler + operationId: patchNamespacedHorizontalPodAutoscalerStatus parameters: - - description: name of the Job + - description: name of the HorizontalPodAutoscaler in: path name: name required: true @@ -35723,7 +38246,9 @@ paths: required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -35780,44 +38305,50 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.Job' + $ref: '#/components/schemas/v2.HorizontalPodAutoscaler' application/yaml: schema: - $ref: '#/components/schemas/v1.Job' + $ref: '#/components/schemas/v2.HorizontalPodAutoscaler' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Job' + $ref: '#/components/schemas/v2.HorizontalPodAutoscaler' + application/cbor: + schema: + $ref: '#/components/schemas/v2.HorizontalPodAutoscaler' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.Job' + $ref: '#/components/schemas/v2.HorizontalPodAutoscaler' application/yaml: schema: - $ref: '#/components/schemas/v1.Job' + $ref: '#/components/schemas/v2.HorizontalPodAutoscaler' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Job' + $ref: '#/components/schemas/v2.HorizontalPodAutoscaler' + application/cbor: + schema: + $ref: '#/components/schemas/v2.HorizontalPodAutoscaler' description: Created "401": content: {} description: Unauthorized tags: - - batch_v1 + - autoscaling_v2 x-kubernetes-action: patch x-kubernetes-group-version-kind: - group: batch - kind: Job - version: v1 + group: autoscaling + kind: HorizontalPodAutoscaler + version: v2 x-codegen-request-body-name: body x-contentType: application/json x-accepts: application/json put: - description: replace status of the specified Job - operationId: replaceNamespacedJobStatus + description: replace status of the specified HorizontalPodAutoscaler + operationId: replaceNamespacedHorizontalPodAutoscalerStatus parameters: - - description: name of the Job + - description: name of the HorizontalPodAutoscaler in: path name: name required: true @@ -35829,7 +38360,9 @@ paths: required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -35870,53 +38403,56 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.Job' + $ref: '#/components/schemas/v2.HorizontalPodAutoscaler' required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.Job' + $ref: '#/components/schemas/v2.HorizontalPodAutoscaler' application/yaml: schema: - $ref: '#/components/schemas/v1.Job' + $ref: '#/components/schemas/v2.HorizontalPodAutoscaler' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Job' + $ref: '#/components/schemas/v2.HorizontalPodAutoscaler' + application/cbor: + schema: + $ref: '#/components/schemas/v2.HorizontalPodAutoscaler' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.Job' + $ref: '#/components/schemas/v2.HorizontalPodAutoscaler' application/yaml: schema: - $ref: '#/components/schemas/v1.Job' + $ref: '#/components/schemas/v2.HorizontalPodAutoscaler' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Job' + $ref: '#/components/schemas/v2.HorizontalPodAutoscaler' + application/cbor: + schema: + $ref: '#/components/schemas/v2.HorizontalPodAutoscaler' description: Created "401": content: {} description: Unauthorized tags: - - batch_v1 + - autoscaling_v2 x-kubernetes-action: put x-kubernetes-group-version-kind: - group: batch - kind: Job - version: v1 + group: autoscaling + kind: HorizontalPodAutoscaler + version: v2 x-codegen-request-body-name: body x-contentType: application/json x-accepts: application/json - /apis/batch/v1/watch/cronjobs: {} - /apis/batch/v1/watch/jobs: {} - /apis/batch/v1/watch/namespaces/{namespace}/cronjobs: {} - /apis/batch/v1/watch/namespaces/{namespace}/cronjobs/{name}: {} - /apis/batch/v1/watch/namespaces/{namespace}/jobs: {} - /apis/batch/v1/watch/namespaces/{namespace}/jobs/{name}: {} - /apis/certificates.k8s.io/: + /apis/autoscaling/v2/watch/horizontalpodautoscalers: {} + /apis/autoscaling/v2/watch/namespaces/{namespace}/horizontalpodautoscalers: {} + /apis/autoscaling/v2/watch/namespaces/{namespace}/horizontalpodautoscalers/{name}: {} + /apis/batch/: get: description: get information of a group operationId: getAPIGroup @@ -35937,9 +38473,9 @@ paths: content: {} description: Unauthorized tags: - - certificates + - batch x-accepts: application/json - /apis/certificates.k8s.io/v1/: + /apis/batch/v1/: get: description: get available resources operationId: getAPIResources @@ -35955,23 +38491,31 @@ paths: application/vnd.kubernetes.protobuf: schema: $ref: '#/components/schemas/v1.APIResourceList' + application/cbor: + schema: + $ref: '#/components/schemas/v1.APIResourceList' description: OK "401": content: {} description: Unauthorized tags: - - certificates_v1 + - batch_v1 x-accepts: application/json - /apis/certificates.k8s.io/v1/certificatesigningrequests: - delete: - description: delete collection of CertificateSigningRequest - operationId: deleteCollectionCertificateSigningRequest + /apis/batch/v1/cronjobs: + get: + description: list or watch objects of kind CronJob + operationId: listCronJobForAllNamespaces parameters: - - description: If 'true', then the output is pretty printed. + - description: 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. in: query - name: pretty + name: allowWatchBookmarks schema: - type: string + type: boolean - description: |- 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". @@ -35980,29 +38524,12 @@ paths: name: continue schema: type: string - - description: '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' - in: query - 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 - - description: 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. - in: query - name: gracePeriodSeconds - schema: - type: integer - description: A selector to restrict the list of returned objects by their labels. Defaults to everything. in: query @@ -36017,23 +38544,11 @@ paths: name: limit schema: type: integer - - description: '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.' - in: query - name: orphanDependents - schema: - type: boolean - - description: '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.' + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query - name: propagationPolicy + name: pretty schema: type: string - description: |- @@ -36076,47 +38591,53 @@ paths: name: timeoutSeconds schema: type: integer - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/v1.DeleteOptions' - required: false + - description: Watch for changes to the described resources and return them + as a stream of add, update, and remove notifications. Specify resourceVersion. + in: query + name: watch + schema: + type: boolean responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.Status' + $ref: '#/components/schemas/v1.CronJobList' application/yaml: schema: - $ref: '#/components/schemas/v1.Status' + $ref: '#/components/schemas/v1.CronJobList' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Status' + $ref: '#/components/schemas/v1.CronJobList' + application/cbor: + schema: + $ref: '#/components/schemas/v1.CronJobList' + application/json;stream=watch: + schema: + $ref: '#/components/schemas/v1.CronJobList' + application/vnd.kubernetes.protobuf;stream=watch: + schema: + $ref: '#/components/schemas/v1.CronJobList' + application/cbor-seq: + schema: + $ref: '#/components/schemas/v1.CronJobList' description: OK "401": content: {} description: Unauthorized tags: - - certificates_v1 - x-kubernetes-action: deletecollection + - batch_v1 + x-kubernetes-action: list x-kubernetes-group-version-kind: - group: certificates.k8s.io - kind: CertificateSigningRequest + group: batch + kind: CronJob version: v1 - x-codegen-request-body-name: body - x-contentType: application/json x-accepts: application/json + /apis/batch/v1/jobs: get: - description: list or watch objects of kind CertificateSigningRequest - operationId: listCertificateSigningRequest + description: list or watch objects of kind Job + operationId: listJobForAllNamespaces parameters: - - description: If 'true', then the output is pretty printed. - in: query - name: pretty - schema: - type: string - description: 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 @@ -36155,6 +38676,13 @@ paths: name: limit schema: type: integer + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). + in: query + name: pretty + schema: + type: string - description: |- resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. @@ -36206,144 +38734,63 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.CertificateSigningRequestList' + $ref: '#/components/schemas/v1.JobList' application/yaml: schema: - $ref: '#/components/schemas/v1.CertificateSigningRequestList' + $ref: '#/components/schemas/v1.JobList' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.CertificateSigningRequestList' + $ref: '#/components/schemas/v1.JobList' + application/cbor: + schema: + $ref: '#/components/schemas/v1.JobList' application/json;stream=watch: schema: - $ref: '#/components/schemas/v1.CertificateSigningRequestList' + $ref: '#/components/schemas/v1.JobList' application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: '#/components/schemas/v1.CertificateSigningRequestList' - description: OK - "401": - content: {} - description: Unauthorized - tags: - - certificates_v1 - x-kubernetes-action: list - x-kubernetes-group-version-kind: - group: certificates.k8s.io - kind: CertificateSigningRequest - version: v1 - x-accepts: application/json - post: - description: create a CertificateSigningRequest - operationId: createCertificateSigningRequest - parameters: - - description: If 'true', then the output is pretty printed. - in: query - name: pretty - schema: - type: string - - description: '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' - in: query - name: dryRun - schema: - type: string - - description: fieldManager is a name associated with the actor or entity that - is making these changes. The value must be less than or 128 characters long, - and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - in: query - name: fieldManager - schema: - type: string - - description: 'fieldValidation instructs the server on how to handle objects - in the request (POST/PUT/PATCH) containing unknown or duplicate fields. - Valid values are: - Ignore: This will ignore any unknown fields that are - silently dropped from the object, and will ignore all but the last duplicate - field that the decoder encounters. This is the default behavior prior to - v1.23. - Warn: This will send a warning via the standard warning response - header for each unknown field that is dropped from the object, and for each - duplicate field that is encountered. The request will still succeed if there - are no other errors, and will only persist the last of any duplicate fields. - This is the default in v1.23+ - Strict: This will fail the request with - a BadRequest error if any unknown fields would be dropped from the object, - or if any duplicate fields are present. The error returned from the server - will contain all unknown and duplicate fields encountered.' - in: query - name: fieldValidation - schema: - type: string - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/v1.CertificateSigningRequest' - required: true - responses: - "200": - content: - application/json: - schema: - $ref: '#/components/schemas/v1.CertificateSigningRequest' - application/yaml: - schema: - $ref: '#/components/schemas/v1.CertificateSigningRequest' - application/vnd.kubernetes.protobuf: + $ref: '#/components/schemas/v1.JobList' + application/cbor-seq: schema: - $ref: '#/components/schemas/v1.CertificateSigningRequest' + $ref: '#/components/schemas/v1.JobList' description: OK - "201": - content: - application/json: - schema: - $ref: '#/components/schemas/v1.CertificateSigningRequest' - application/yaml: - schema: - $ref: '#/components/schemas/v1.CertificateSigningRequest' - application/vnd.kubernetes.protobuf: - schema: - $ref: '#/components/schemas/v1.CertificateSigningRequest' - description: Created - "202": - content: - application/json: - schema: - $ref: '#/components/schemas/v1.CertificateSigningRequest' - application/yaml: - schema: - $ref: '#/components/schemas/v1.CertificateSigningRequest' - application/vnd.kubernetes.protobuf: - schema: - $ref: '#/components/schemas/v1.CertificateSigningRequest' - description: Accepted "401": content: {} description: Unauthorized tags: - - certificates_v1 - x-kubernetes-action: post + - batch_v1 + x-kubernetes-action: list x-kubernetes-group-version-kind: - group: certificates.k8s.io - kind: CertificateSigningRequest + group: batch + kind: Job version: v1 - x-codegen-request-body-name: body - x-contentType: application/json x-accepts: application/json - /apis/certificates.k8s.io/v1/certificatesigningrequests/{name}: + /apis/batch/v1/namespaces/{namespace}/cronjobs: delete: - description: delete a CertificateSigningRequest - operationId: deleteCertificateSigningRequest + description: delete collection of CronJob + operationId: deleteCollectionNamespacedCronJob parameters: - - description: name of the CertificateSigningRequest + - description: object name and auth scope, such as for teams and projects in: path - name: name + name: namespace required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: type: string + - description: |- + 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. + in: query + name: continue + schema: + type: string - description: '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 @@ -36352,6 +38799,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 - description: 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 @@ -36361,6 +38814,34 @@ paths: name: gracePeriodSeconds schema: type: integer + - description: 'if set to true, it will trigger an unsafe deletion of the resource + in case the normal deletion flow fails with a corrupt object error. A resource + is considered corrupt if it can not be retrieved from the underlying storage + successfully because of a) its data can not be transformed e.g. decryption + failure, or b) it fails to decode into an object. NOTE: unsafe deletion + ignores finalizer constraints, skips precondition checks, and removes the + object from the storage. WARNING: This may potentially break the cluster + if the workload associated with the resource being unsafe-deleted relies + on normal deletion flow. Use only if you REALLY know what you are doing. + The default value is false, and the user must opt in to enable it' + in: query + name: ignoreStoreReadErrorWithClusterBreakingPotential + schema: + type: boolean + - description: A selector to restrict the list of returned objects by their + labels. Defaults to everything. + in: query + name: labelSelector + schema: + type: string + - description: |- + limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. + + The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + in: query + name: limit + schema: + type: integer - description: '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 @@ -36380,6 +38861,46 @@ paths: name: propagationPolicy schema: type: string + - description: |- + resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersion + schema: + type: string + - description: |- + resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersionMatch + schema: + type: string + - description: |- + `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic "Bookmark" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `"k8s.io/initial-events-end": "true"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. + + When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan + is interpreted as "data at least as new as the provided `resourceVersion`" + and the bookmark event is send when the state is synced + to a `resourceVersion` at least as fresh as the one provided by the ListOptions. + If `resourceVersion` is unset, this is interpreted as "consistent read" and the + bookmark event is send when the state is synced at least to the moment + when request started being processed. + - `resourceVersionMatch` set to any other value or unset + Invalid error is returned. + + Defaults to true if `resourceVersion=""` or `resourceVersion="0"` (for backward compatibility reasons) and to false otherwise. + in: query + name: sendInitialEvents + schema: + type: boolean + - description: Timeout for the list/watch call. This limits the duration of + the call, regardless of any activity or inactivity. + in: query + name: timeoutSeconds + schema: + type: integer requestBody: content: application/json: @@ -36398,82 +38919,173 @@ paths: application/vnd.kubernetes.protobuf: schema: $ref: '#/components/schemas/v1.Status' - description: OK - "202": - content: - application/json: - schema: - $ref: '#/components/schemas/v1.Status' - application/yaml: - schema: - $ref: '#/components/schemas/v1.Status' - application/vnd.kubernetes.protobuf: + application/cbor: schema: $ref: '#/components/schemas/v1.Status' - description: Accepted + description: OK "401": content: {} description: Unauthorized tags: - - certificates_v1 - x-kubernetes-action: delete + - batch_v1 + x-kubernetes-action: deletecollection x-kubernetes-group-version-kind: - group: certificates.k8s.io - kind: CertificateSigningRequest + group: batch + kind: CronJob version: v1 x-codegen-request-body-name: body x-contentType: application/json x-accepts: application/json get: - description: read the specified CertificateSigningRequest - operationId: readCertificateSigningRequest + description: list or watch objects of kind CronJob + operationId: listNamespacedCronJob parameters: - - description: name of the CertificateSigningRequest + - description: object name and auth scope, such as for teams and projects in: path - name: name + name: namespace required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: type: string + - description: 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. + in: query + name: allowWatchBookmarks + schema: + type: boolean + - description: |- + 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. + in: query + name: continue + 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 + - description: A selector to restrict the list of returned objects by their + labels. Defaults to everything. + in: query + name: labelSelector + schema: + type: string + - description: |- + limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. + + The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + in: query + name: limit + schema: + type: integer + - description: |- + resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersion + schema: + type: string + - description: |- + resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersionMatch + schema: + type: string + - description: |- + `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic "Bookmark" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `"k8s.io/initial-events-end": "true"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. + + When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan + is interpreted as "data at least as new as the provided `resourceVersion`" + and the bookmark event is send when the state is synced + to a `resourceVersion` at least as fresh as the one provided by the ListOptions. + If `resourceVersion` is unset, this is interpreted as "consistent read" and the + bookmark event is send when the state is synced at least to the moment + when request started being processed. + - `resourceVersionMatch` set to any other value or unset + Invalid error is returned. + + Defaults to true if `resourceVersion=""` or `resourceVersion="0"` (for backward compatibility reasons) and to false otherwise. + in: query + name: sendInitialEvents + schema: + type: boolean + - description: Timeout for the list/watch call. This limits the duration of + the call, regardless of any activity or inactivity. + in: query + name: timeoutSeconds + schema: + type: integer + - description: Watch for changes to the described resources and return them + as a stream of add, update, and remove notifications. Specify resourceVersion. + in: query + name: watch + schema: + type: boolean responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.CertificateSigningRequest' + $ref: '#/components/schemas/v1.CronJobList' application/yaml: schema: - $ref: '#/components/schemas/v1.CertificateSigningRequest' + $ref: '#/components/schemas/v1.CronJobList' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.CertificateSigningRequest' + $ref: '#/components/schemas/v1.CronJobList' + application/cbor: + schema: + $ref: '#/components/schemas/v1.CronJobList' + application/json;stream=watch: + schema: + $ref: '#/components/schemas/v1.CronJobList' + application/vnd.kubernetes.protobuf;stream=watch: + schema: + $ref: '#/components/schemas/v1.CronJobList' + application/cbor-seq: + schema: + $ref: '#/components/schemas/v1.CronJobList' description: OK "401": content: {} description: Unauthorized tags: - - certificates_v1 - x-kubernetes-action: get + - batch_v1 + x-kubernetes-action: list x-kubernetes-group-version-kind: - group: certificates.k8s.io - kind: CertificateSigningRequest + group: batch + kind: CronJob version: v1 x-accepts: application/json - patch: - description: partially update the specified CertificateSigningRequest - operationId: patchCertificateSigningRequest + post: + description: create a CronJob + operationId: createNamespacedCronJob parameters: - - description: name of the CertificateSigningRequest + - description: object name and auth scope, such as for teams and projects in: path - name: name + name: namespace required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -36489,8 +39101,6 @@ paths: - description: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - This field is required for apply requests (application/apply-patch) but - optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). in: query name: fieldManager schema: @@ -36512,68 +39122,91 @@ paths: name: fieldValidation schema: type: string - - description: Force is going to "force" Apply requests. It means user will - re-acquire conflicting fields owned by other people. Force flag must be - unset for non-apply patch requests. - in: query - name: force - schema: - type: boolean requestBody: content: application/json: schema: - $ref: '#/components/schemas/v1.Patch' + $ref: '#/components/schemas/v1.CronJob' required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.CertificateSigningRequest' + $ref: '#/components/schemas/v1.CronJob' application/yaml: schema: - $ref: '#/components/schemas/v1.CertificateSigningRequest' + $ref: '#/components/schemas/v1.CronJob' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.CertificateSigningRequest' + $ref: '#/components/schemas/v1.CronJob' + application/cbor: + schema: + $ref: '#/components/schemas/v1.CronJob' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.CertificateSigningRequest' + $ref: '#/components/schemas/v1.CronJob' application/yaml: schema: - $ref: '#/components/schemas/v1.CertificateSigningRequest' + $ref: '#/components/schemas/v1.CronJob' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.CertificateSigningRequest' + $ref: '#/components/schemas/v1.CronJob' + application/cbor: + schema: + $ref: '#/components/schemas/v1.CronJob' description: Created + "202": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.CronJob' + application/yaml: + schema: + $ref: '#/components/schemas/v1.CronJob' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.CronJob' + application/cbor: + schema: + $ref: '#/components/schemas/v1.CronJob' + description: Accepted "401": content: {} description: Unauthorized tags: - - certificates_v1 - x-kubernetes-action: patch + - batch_v1 + x-kubernetes-action: post x-kubernetes-group-version-kind: - group: certificates.k8s.io - kind: CertificateSigningRequest + group: batch + kind: CronJob version: v1 x-codegen-request-body-name: body x-contentType: application/json x-accepts: application/json - put: - description: replace the specified CertificateSigningRequest - operationId: replaceCertificateSigningRequest + /apis/batch/v1/namespaces/{namespace}/cronjobs/{name}: + delete: + description: delete a CronJob + operationId: deleteNamespacedCronJob parameters: - - description: name of the CertificateSigningRequest + - description: name of the CronJob in: path name: name required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: object name and auth scope, such as for teams and projects + in: path + name: namespace + required: true + schema: + type: string + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -36586,86 +39219,117 @@ paths: name: dryRun schema: type: string - - description: fieldManager is a name associated with the actor or entity that - is making these changes. The value must be less than or 128 characters long, - and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + - description: 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. in: query - name: fieldManager + name: gracePeriodSeconds schema: - type: string - - description: 'fieldValidation instructs the server on how to handle objects - in the request (POST/PUT/PATCH) containing unknown or duplicate fields. - Valid values are: - Ignore: This will ignore any unknown fields that are - silently dropped from the object, and will ignore all but the last duplicate - field that the decoder encounters. This is the default behavior prior to - v1.23. - Warn: This will send a warning via the standard warning response - header for each unknown field that is dropped from the object, and for each - duplicate field that is encountered. The request will still succeed if there - are no other errors, and will only persist the last of any duplicate fields. - This is the default in v1.23+ - Strict: This will fail the request with - a BadRequest error if any unknown fields would be dropped from the object, - or if any duplicate fields are present. The error returned from the server - will contain all unknown and duplicate fields encountered.' + type: integer + - description: 'if set to true, it will trigger an unsafe deletion of the resource + in case the normal deletion flow fails with a corrupt object error. A resource + is considered corrupt if it can not be retrieved from the underlying storage + successfully because of a) its data can not be transformed e.g. decryption + failure, or b) it fails to decode into an object. NOTE: unsafe deletion + ignores finalizer constraints, skips precondition checks, and removes the + object from the storage. WARNING: This may potentially break the cluster + if the workload associated with the resource being unsafe-deleted relies + on normal deletion flow. Use only if you REALLY know what you are doing. + The default value is false, and the user must opt in to enable it' + in: query + name: ignoreStoreReadErrorWithClusterBreakingPotential + schema: + type: boolean + - description: '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.' in: query - name: fieldValidation + name: orphanDependents + schema: + type: boolean + - description: '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.' + in: query + name: propagationPolicy schema: type: string requestBody: content: application/json: schema: - $ref: '#/components/schemas/v1.CertificateSigningRequest' - required: true + $ref: '#/components/schemas/v1.DeleteOptions' + required: false responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.CertificateSigningRequest' + $ref: '#/components/schemas/v1.Status' application/yaml: schema: - $ref: '#/components/schemas/v1.CertificateSigningRequest' + $ref: '#/components/schemas/v1.Status' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.CertificateSigningRequest' + $ref: '#/components/schemas/v1.Status' + application/cbor: + schema: + $ref: '#/components/schemas/v1.Status' description: OK - "201": + "202": content: application/json: schema: - $ref: '#/components/schemas/v1.CertificateSigningRequest' + $ref: '#/components/schemas/v1.Status' application/yaml: schema: - $ref: '#/components/schemas/v1.CertificateSigningRequest' + $ref: '#/components/schemas/v1.Status' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.CertificateSigningRequest' - description: Created + $ref: '#/components/schemas/v1.Status' + application/cbor: + schema: + $ref: '#/components/schemas/v1.Status' + description: Accepted "401": content: {} description: Unauthorized tags: - - certificates_v1 - x-kubernetes-action: put + - batch_v1 + x-kubernetes-action: delete x-kubernetes-group-version-kind: - group: certificates.k8s.io - kind: CertificateSigningRequest + group: batch + kind: CronJob version: v1 x-codegen-request-body-name: body x-contentType: application/json x-accepts: application/json - /apis/certificates.k8s.io/v1/certificatesigningrequests/{name}/approval: get: - description: read approval of the specified CertificateSigningRequest - operationId: readCertificateSigningRequestApproval + description: read the specified CronJob + operationId: readNamespacedCronJob parameters: - - description: name of the CertificateSigningRequest + - description: name of the CronJob in: path name: name required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: object name and auth scope, such as for teams and projects + in: path + name: namespace + required: true + schema: + type: string + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -36675,36 +39339,47 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.CertificateSigningRequest' + $ref: '#/components/schemas/v1.CronJob' application/yaml: schema: - $ref: '#/components/schemas/v1.CertificateSigningRequest' + $ref: '#/components/schemas/v1.CronJob' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.CertificateSigningRequest' + $ref: '#/components/schemas/v1.CronJob' + application/cbor: + schema: + $ref: '#/components/schemas/v1.CronJob' description: OK "401": content: {} description: Unauthorized tags: - - certificates_v1 + - batch_v1 x-kubernetes-action: get x-kubernetes-group-version-kind: - group: certificates.k8s.io - kind: CertificateSigningRequest + group: batch + kind: CronJob version: v1 x-accepts: application/json patch: - description: partially update approval of the specified CertificateSigningRequest - operationId: patchCertificateSigningRequestApproval + description: partially update the specified CronJob + operationId: patchNamespacedCronJob parameters: - - description: name of the CertificateSigningRequest + - description: name of the CronJob in: path name: name required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: object name and auth scope, such as for teams and projects + in: path + name: namespace + required: true + schema: + type: string + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -36761,50 +39436,64 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.CertificateSigningRequest' + $ref: '#/components/schemas/v1.CronJob' application/yaml: schema: - $ref: '#/components/schemas/v1.CertificateSigningRequest' + $ref: '#/components/schemas/v1.CronJob' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.CertificateSigningRequest' + $ref: '#/components/schemas/v1.CronJob' + application/cbor: + schema: + $ref: '#/components/schemas/v1.CronJob' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.CertificateSigningRequest' + $ref: '#/components/schemas/v1.CronJob' application/yaml: schema: - $ref: '#/components/schemas/v1.CertificateSigningRequest' + $ref: '#/components/schemas/v1.CronJob' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.CertificateSigningRequest' + $ref: '#/components/schemas/v1.CronJob' + application/cbor: + schema: + $ref: '#/components/schemas/v1.CronJob' description: Created "401": content: {} description: Unauthorized tags: - - certificates_v1 + - batch_v1 x-kubernetes-action: patch x-kubernetes-group-version-kind: - group: certificates.k8s.io - kind: CertificateSigningRequest + group: batch + kind: CronJob version: v1 x-codegen-request-body-name: body x-contentType: application/json x-accepts: application/json put: - description: replace approval of the specified CertificateSigningRequest - operationId: replaceCertificateSigningRequestApproval + description: replace the specified CronJob + operationId: replaceNamespacedCronJob parameters: - - description: name of the CertificateSigningRequest + - description: name of the CronJob in: path name: name required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: object name and auth scope, such as for teams and projects + in: path + name: namespace + required: true + schema: + type: string + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -36845,58 +39534,72 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.CertificateSigningRequest' + $ref: '#/components/schemas/v1.CronJob' required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.CertificateSigningRequest' + $ref: '#/components/schemas/v1.CronJob' application/yaml: schema: - $ref: '#/components/schemas/v1.CertificateSigningRequest' + $ref: '#/components/schemas/v1.CronJob' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.CertificateSigningRequest' + $ref: '#/components/schemas/v1.CronJob' + application/cbor: + schema: + $ref: '#/components/schemas/v1.CronJob' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.CertificateSigningRequest' + $ref: '#/components/schemas/v1.CronJob' application/yaml: schema: - $ref: '#/components/schemas/v1.CertificateSigningRequest' + $ref: '#/components/schemas/v1.CronJob' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.CertificateSigningRequest' + $ref: '#/components/schemas/v1.CronJob' + application/cbor: + schema: + $ref: '#/components/schemas/v1.CronJob' description: Created "401": content: {} description: Unauthorized tags: - - certificates_v1 + - batch_v1 x-kubernetes-action: put x-kubernetes-group-version-kind: - group: certificates.k8s.io - kind: CertificateSigningRequest + group: batch + kind: CronJob version: v1 x-codegen-request-body-name: body x-contentType: application/json x-accepts: application/json - /apis/certificates.k8s.io/v1/certificatesigningrequests/{name}/status: + /apis/batch/v1/namespaces/{namespace}/cronjobs/{name}/status: get: - description: read status of the specified CertificateSigningRequest - operationId: readCertificateSigningRequestStatus + description: read status of the specified CronJob + operationId: readNamespacedCronJobStatus parameters: - - description: name of the CertificateSigningRequest + - description: name of the CronJob in: path name: name required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: object name and auth scope, such as for teams and projects + in: path + name: namespace + required: true + schema: + type: string + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -36906,36 +39609,47 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.CertificateSigningRequest' + $ref: '#/components/schemas/v1.CronJob' application/yaml: schema: - $ref: '#/components/schemas/v1.CertificateSigningRequest' + $ref: '#/components/schemas/v1.CronJob' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.CertificateSigningRequest' + $ref: '#/components/schemas/v1.CronJob' + application/cbor: + schema: + $ref: '#/components/schemas/v1.CronJob' description: OK "401": content: {} description: Unauthorized tags: - - certificates_v1 + - batch_v1 x-kubernetes-action: get x-kubernetes-group-version-kind: - group: certificates.k8s.io - kind: CertificateSigningRequest + group: batch + kind: CronJob version: v1 x-accepts: application/json patch: - description: partially update status of the specified CertificateSigningRequest - operationId: patchCertificateSigningRequestStatus + description: partially update status of the specified CronJob + operationId: patchNamespacedCronJobStatus parameters: - - description: name of the CertificateSigningRequest + - description: name of the CronJob in: path name: name required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: object name and auth scope, such as for teams and projects + in: path + name: namespace + required: true + schema: + type: string + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -36992,50 +39706,64 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.CertificateSigningRequest' + $ref: '#/components/schemas/v1.CronJob' application/yaml: schema: - $ref: '#/components/schemas/v1.CertificateSigningRequest' + $ref: '#/components/schemas/v1.CronJob' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.CertificateSigningRequest' + $ref: '#/components/schemas/v1.CronJob' + application/cbor: + schema: + $ref: '#/components/schemas/v1.CronJob' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.CertificateSigningRequest' + $ref: '#/components/schemas/v1.CronJob' application/yaml: schema: - $ref: '#/components/schemas/v1.CertificateSigningRequest' + $ref: '#/components/schemas/v1.CronJob' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.CertificateSigningRequest' + $ref: '#/components/schemas/v1.CronJob' + application/cbor: + schema: + $ref: '#/components/schemas/v1.CronJob' description: Created "401": content: {} description: Unauthorized tags: - - certificates_v1 + - batch_v1 x-kubernetes-action: patch x-kubernetes-group-version-kind: - group: certificates.k8s.io - kind: CertificateSigningRequest + group: batch + kind: CronJob version: v1 x-codegen-request-body-name: body x-contentType: application/json x-accepts: application/json put: - description: replace status of the specified CertificateSigningRequest - operationId: replaceCertificateSigningRequestStatus + description: replace status of the specified CronJob + operationId: replaceNamespacedCronJobStatus parameters: - - description: name of the CertificateSigningRequest + - description: name of the CronJob in: path name: name required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: object name and auth scope, such as for teams and projects + in: path + name: namespace + required: true + schema: + type: string + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -37076,77 +39804,66 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.CertificateSigningRequest' + $ref: '#/components/schemas/v1.CronJob' required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.CertificateSigningRequest' + $ref: '#/components/schemas/v1.CronJob' application/yaml: schema: - $ref: '#/components/schemas/v1.CertificateSigningRequest' + $ref: '#/components/schemas/v1.CronJob' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.CertificateSigningRequest' + $ref: '#/components/schemas/v1.CronJob' + application/cbor: + schema: + $ref: '#/components/schemas/v1.CronJob' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.CertificateSigningRequest' + $ref: '#/components/schemas/v1.CronJob' application/yaml: schema: - $ref: '#/components/schemas/v1.CertificateSigningRequest' + $ref: '#/components/schemas/v1.CronJob' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.CertificateSigningRequest' + $ref: '#/components/schemas/v1.CronJob' + application/cbor: + schema: + $ref: '#/components/schemas/v1.CronJob' description: Created "401": content: {} description: Unauthorized tags: - - certificates_v1 + - batch_v1 x-kubernetes-action: put x-kubernetes-group-version-kind: - group: certificates.k8s.io - kind: CertificateSigningRequest + group: batch + kind: CronJob version: v1 x-codegen-request-body-name: body x-contentType: application/json x-accepts: application/json - /apis/certificates.k8s.io/v1/watch/certificatesigningrequests: {} - /apis/certificates.k8s.io/v1/watch/certificatesigningrequests/{name}: {} - /apis/certificates.k8s.io/v1alpha1/: - get: - description: get available resources - operationId: getAPIResources - responses: - "200": - content: - application/json: - schema: - $ref: '#/components/schemas/v1.APIResourceList' - application/yaml: - schema: - $ref: '#/components/schemas/v1.APIResourceList' - application/vnd.kubernetes.protobuf: - schema: - $ref: '#/components/schemas/v1.APIResourceList' - description: OK - "401": - content: {} - description: Unauthorized - tags: - - certificates_v1alpha1 - x-accepts: application/json - /apis/certificates.k8s.io/v1alpha1/clustertrustbundles: + /apis/batch/v1/namespaces/{namespace}/jobs: delete: - description: delete collection of ClusterTrustBundle - operationId: deleteCollectionClusterTrustBundle + description: delete collection of Job + operationId: deleteCollectionNamespacedJob parameters: - - description: If 'true', then the output is pretty printed. + - description: object name and auth scope, such as for teams and projects + in: path + name: namespace + required: true + schema: + type: string + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -37182,6 +39899,20 @@ paths: name: gracePeriodSeconds schema: type: integer + - description: 'if set to true, it will trigger an unsafe deletion of the resource + in case the normal deletion flow fails with a corrupt object error. A resource + is considered corrupt if it can not be retrieved from the underlying storage + successfully because of a) its data can not be transformed e.g. decryption + failure, or b) it fails to decode into an object. NOTE: unsafe deletion + ignores finalizer constraints, skips precondition checks, and removes the + object from the storage. WARNING: This may potentially break the cluster + if the workload associated with the resource being unsafe-deleted relies + on normal deletion flow. Use only if you REALLY know what you are doing. + The default value is false, and the user must opt in to enable it' + in: query + name: ignoreStoreReadErrorWithClusterBreakingPotential + schema: + type: boolean - description: A selector to restrict the list of returned objects by their labels. Defaults to everything. in: query @@ -37273,25 +40004,36 @@ paths: application/vnd.kubernetes.protobuf: schema: $ref: '#/components/schemas/v1.Status' + application/cbor: + schema: + $ref: '#/components/schemas/v1.Status' description: OK "401": content: {} description: Unauthorized tags: - - certificates_v1alpha1 + - batch_v1 x-kubernetes-action: deletecollection x-kubernetes-group-version-kind: - group: certificates.k8s.io - kind: ClusterTrustBundle - version: v1alpha1 + group: batch + kind: Job + version: v1 x-codegen-request-body-name: body x-contentType: application/json x-accepts: application/json get: - description: list or watch objects of kind ClusterTrustBundle - operationId: listClusterTrustBundle + description: list or watch objects of kind Job + operationId: listNamespacedJob parameters: - - description: If 'true', then the output is pretty printed. + - description: object name and auth scope, such as for teams and projects + in: path + name: namespace + required: true + schema: + type: string + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -37385,36 +40127,50 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1alpha1.ClusterTrustBundleList' + $ref: '#/components/schemas/v1.JobList' application/yaml: schema: - $ref: '#/components/schemas/v1alpha1.ClusterTrustBundleList' + $ref: '#/components/schemas/v1.JobList' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha1.ClusterTrustBundleList' + $ref: '#/components/schemas/v1.JobList' + application/cbor: + schema: + $ref: '#/components/schemas/v1.JobList' application/json;stream=watch: schema: - $ref: '#/components/schemas/v1alpha1.ClusterTrustBundleList' + $ref: '#/components/schemas/v1.JobList' application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: '#/components/schemas/v1alpha1.ClusterTrustBundleList' + $ref: '#/components/schemas/v1.JobList' + application/cbor-seq: + schema: + $ref: '#/components/schemas/v1.JobList' description: OK "401": content: {} description: Unauthorized tags: - - certificates_v1alpha1 + - batch_v1 x-kubernetes-action: list x-kubernetes-group-version-kind: - group: certificates.k8s.io - kind: ClusterTrustBundle - version: v1alpha1 + group: batch + kind: Job + version: v1 x-accepts: application/json post: - description: create a ClusterTrustBundle - operationId: createClusterTrustBundle + description: create a Job + operationId: createNamespacedJob parameters: - - description: If 'true', then the output is pretty printed. + - description: object name and auth scope, such as for teams and projects + in: path + name: namespace + required: true + schema: + type: string + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -37455,70 +40211,87 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1alpha1.ClusterTrustBundle' + $ref: '#/components/schemas/v1.Job' required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1alpha1.ClusterTrustBundle' + $ref: '#/components/schemas/v1.Job' application/yaml: schema: - $ref: '#/components/schemas/v1alpha1.ClusterTrustBundle' + $ref: '#/components/schemas/v1.Job' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha1.ClusterTrustBundle' + $ref: '#/components/schemas/v1.Job' + application/cbor: + schema: + $ref: '#/components/schemas/v1.Job' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1alpha1.ClusterTrustBundle' + $ref: '#/components/schemas/v1.Job' application/yaml: schema: - $ref: '#/components/schemas/v1alpha1.ClusterTrustBundle' + $ref: '#/components/schemas/v1.Job' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha1.ClusterTrustBundle' + $ref: '#/components/schemas/v1.Job' + application/cbor: + schema: + $ref: '#/components/schemas/v1.Job' description: Created "202": content: application/json: schema: - $ref: '#/components/schemas/v1alpha1.ClusterTrustBundle' + $ref: '#/components/schemas/v1.Job' application/yaml: schema: - $ref: '#/components/schemas/v1alpha1.ClusterTrustBundle' + $ref: '#/components/schemas/v1.Job' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha1.ClusterTrustBundle' + $ref: '#/components/schemas/v1.Job' + application/cbor: + schema: + $ref: '#/components/schemas/v1.Job' description: Accepted "401": content: {} description: Unauthorized tags: - - certificates_v1alpha1 + - batch_v1 x-kubernetes-action: post x-kubernetes-group-version-kind: - group: certificates.k8s.io - kind: ClusterTrustBundle - version: v1alpha1 + group: batch + kind: Job + version: v1 x-codegen-request-body-name: body x-contentType: application/json x-accepts: application/json - /apis/certificates.k8s.io/v1alpha1/clustertrustbundles/{name}: + /apis/batch/v1/namespaces/{namespace}/jobs/{name}: delete: - description: delete a ClusterTrustBundle - operationId: deleteClusterTrustBundle + description: delete a Job + operationId: deleteNamespacedJob parameters: - - description: name of the ClusterTrustBundle + - description: name of the Job in: path name: name required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: object name and auth scope, such as for teams and projects + in: path + name: namespace + required: true + schema: + type: string + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -37540,6 +40313,20 @@ paths: name: gracePeriodSeconds schema: type: integer + - description: 'if set to true, it will trigger an unsafe deletion of the resource + in case the normal deletion flow fails with a corrupt object error. A resource + is considered corrupt if it can not be retrieved from the underlying storage + successfully because of a) its data can not be transformed e.g. decryption + failure, or b) it fails to decode into an object. NOTE: unsafe deletion + ignores finalizer constraints, skips precondition checks, and removes the + object from the storage. WARNING: This may potentially break the cluster + if the workload associated with the resource being unsafe-deleted relies + on normal deletion flow. Use only if you REALLY know what you are doing. + The default value is false, and the user must opt in to enable it' + in: query + name: ignoreStoreReadErrorWithClusterBreakingPotential + schema: + type: boolean - description: '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 @@ -37577,6 +40364,9 @@ paths: application/vnd.kubernetes.protobuf: schema: $ref: '#/components/schemas/v1.Status' + application/cbor: + schema: + $ref: '#/components/schemas/v1.Status' description: OK "202": content: @@ -37589,31 +40379,42 @@ paths: application/vnd.kubernetes.protobuf: schema: $ref: '#/components/schemas/v1.Status' + application/cbor: + schema: + $ref: '#/components/schemas/v1.Status' description: Accepted "401": content: {} description: Unauthorized tags: - - certificates_v1alpha1 + - batch_v1 x-kubernetes-action: delete x-kubernetes-group-version-kind: - group: certificates.k8s.io - kind: ClusterTrustBundle - version: v1alpha1 + group: batch + kind: Job + version: v1 x-codegen-request-body-name: body x-contentType: application/json x-accepts: application/json get: - description: read the specified ClusterTrustBundle - operationId: readClusterTrustBundle + description: read the specified Job + operationId: readNamespacedJob parameters: - - description: name of the ClusterTrustBundle + - description: name of the Job in: path name: name required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: object name and auth scope, such as for teams and projects + in: path + name: namespace + required: true + schema: + type: string + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -37623,36 +40424,47 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1alpha1.ClusterTrustBundle' + $ref: '#/components/schemas/v1.Job' application/yaml: schema: - $ref: '#/components/schemas/v1alpha1.ClusterTrustBundle' + $ref: '#/components/schemas/v1.Job' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha1.ClusterTrustBundle' + $ref: '#/components/schemas/v1.Job' + application/cbor: + schema: + $ref: '#/components/schemas/v1.Job' description: OK "401": content: {} description: Unauthorized tags: - - certificates_v1alpha1 + - batch_v1 x-kubernetes-action: get x-kubernetes-group-version-kind: - group: certificates.k8s.io - kind: ClusterTrustBundle - version: v1alpha1 + group: batch + kind: Job + version: v1 x-accepts: application/json patch: - description: partially update the specified ClusterTrustBundle - operationId: patchClusterTrustBundle + description: partially update the specified Job + operationId: patchNamespacedJob parameters: - - description: name of the ClusterTrustBundle + - description: name of the Job in: path name: name required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: object name and auth scope, such as for teams and projects + in: path + name: namespace + required: true + schema: + type: string + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -37709,50 +40521,64 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1alpha1.ClusterTrustBundle' + $ref: '#/components/schemas/v1.Job' application/yaml: schema: - $ref: '#/components/schemas/v1alpha1.ClusterTrustBundle' + $ref: '#/components/schemas/v1.Job' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha1.ClusterTrustBundle' + $ref: '#/components/schemas/v1.Job' + application/cbor: + schema: + $ref: '#/components/schemas/v1.Job' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1alpha1.ClusterTrustBundle' + $ref: '#/components/schemas/v1.Job' application/yaml: schema: - $ref: '#/components/schemas/v1alpha1.ClusterTrustBundle' + $ref: '#/components/schemas/v1.Job' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha1.ClusterTrustBundle' + $ref: '#/components/schemas/v1.Job' + application/cbor: + schema: + $ref: '#/components/schemas/v1.Job' description: Created "401": content: {} description: Unauthorized tags: - - certificates_v1alpha1 + - batch_v1 x-kubernetes-action: patch x-kubernetes-group-version-kind: - group: certificates.k8s.io - kind: ClusterTrustBundle - version: v1alpha1 + group: batch + kind: Job + version: v1 x-codegen-request-body-name: body x-contentType: application/json x-accepts: application/json put: - description: replace the specified ClusterTrustBundle - operationId: replaceClusterTrustBundle + description: replace the specified Job + operationId: replaceNamespacedJob parameters: - - description: name of the ClusterTrustBundle + - description: name of the Job in: path name: name required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: object name and auth scope, such as for teams and projects + in: path + name: namespace + required: true + schema: + type: string + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -37793,230 +40619,385 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1alpha1.ClusterTrustBundle' + $ref: '#/components/schemas/v1.Job' required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1alpha1.ClusterTrustBundle' + $ref: '#/components/schemas/v1.Job' application/yaml: schema: - $ref: '#/components/schemas/v1alpha1.ClusterTrustBundle' + $ref: '#/components/schemas/v1.Job' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha1.ClusterTrustBundle' + $ref: '#/components/schemas/v1.Job' + application/cbor: + schema: + $ref: '#/components/schemas/v1.Job' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1alpha1.ClusterTrustBundle' + $ref: '#/components/schemas/v1.Job' application/yaml: schema: - $ref: '#/components/schemas/v1alpha1.ClusterTrustBundle' + $ref: '#/components/schemas/v1.Job' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha1.ClusterTrustBundle' + $ref: '#/components/schemas/v1.Job' + application/cbor: + schema: + $ref: '#/components/schemas/v1.Job' description: Created "401": content: {} description: Unauthorized tags: - - certificates_v1alpha1 + - batch_v1 x-kubernetes-action: put x-kubernetes-group-version-kind: - group: certificates.k8s.io - kind: ClusterTrustBundle - version: v1alpha1 + group: batch + kind: Job + version: v1 x-codegen-request-body-name: body x-contentType: application/json x-accepts: application/json - /apis/certificates.k8s.io/v1alpha1/watch/clustertrustbundles: {} - /apis/certificates.k8s.io/v1alpha1/watch/clustertrustbundles/{name}: {} - /apis/coordination.k8s.io/: + /apis/batch/v1/namespaces/{namespace}/jobs/{name}/status: get: - description: get information of a group - operationId: getAPIGroup + description: read status of the specified Job + operationId: readNamespacedJobStatus + parameters: + - description: name of the Job + in: path + name: name + required: true + schema: + type: string + - description: object name and auth scope, such as for teams and projects + in: path + name: namespace + required: true + schema: + type: string + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). + in: query + name: pretty + schema: + type: string responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.APIGroup' + $ref: '#/components/schemas/v1.Job' application/yaml: schema: - $ref: '#/components/schemas/v1.APIGroup' + $ref: '#/components/schemas/v1.Job' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.APIGroup' + $ref: '#/components/schemas/v1.Job' + application/cbor: + schema: + $ref: '#/components/schemas/v1.Job' description: OK "401": content: {} description: Unauthorized tags: - - coordination + - batch_v1 + x-kubernetes-action: get + x-kubernetes-group-version-kind: + group: batch + kind: Job + version: v1 x-accepts: application/json - /apis/coordination.k8s.io/v1/: - get: - description: get available resources - operationId: getAPIResources + patch: + description: partially update status of the specified Job + operationId: patchNamespacedJobStatus + parameters: + - description: name of the Job + in: path + name: name + required: true + schema: + type: string + - description: object name and auth scope, such as for teams and projects + in: path + name: namespace + required: true + schema: + type: string + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). + in: query + name: pretty + schema: + type: string + - description: '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' + in: query + name: dryRun + schema: + type: string + - description: fieldManager is a name associated with the actor or entity that + is making these changes. The value must be less than or 128 characters long, + and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + This field is required for apply requests (application/apply-patch) but + optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). + in: query + name: fieldManager + schema: + type: string + - description: 'fieldValidation instructs the server on how to handle objects + in the request (POST/PUT/PATCH) containing unknown or duplicate fields. + Valid values are: - Ignore: This will ignore any unknown fields that are + silently dropped from the object, and will ignore all but the last duplicate + field that the decoder encounters. This is the default behavior prior to + v1.23. - Warn: This will send a warning via the standard warning response + header for each unknown field that is dropped from the object, and for each + duplicate field that is encountered. The request will still succeed if there + are no other errors, and will only persist the last of any duplicate fields. + This is the default in v1.23+ - Strict: This will fail the request with + a BadRequest error if any unknown fields would be dropped from the object, + or if any duplicate fields are present. The error returned from the server + will contain all unknown and duplicate fields encountered.' + in: query + name: fieldValidation + schema: + type: string + - description: Force is going to "force" Apply requests. It means user will + re-acquire conflicting fields owned by other people. Force flag must be + unset for non-apply patch requests. + in: query + name: force + schema: + type: boolean + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/v1.Patch' + required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.APIResourceList' + $ref: '#/components/schemas/v1.Job' application/yaml: schema: - $ref: '#/components/schemas/v1.APIResourceList' + $ref: '#/components/schemas/v1.Job' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.APIResourceList' + $ref: '#/components/schemas/v1.Job' + application/cbor: + schema: + $ref: '#/components/schemas/v1.Job' description: OK + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.Job' + application/yaml: + schema: + $ref: '#/components/schemas/v1.Job' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.Job' + application/cbor: + schema: + $ref: '#/components/schemas/v1.Job' + description: Created "401": content: {} description: Unauthorized tags: - - coordination_v1 + - batch_v1 + x-kubernetes-action: patch + x-kubernetes-group-version-kind: + group: batch + kind: Job + version: v1 + x-codegen-request-body-name: body + x-contentType: application/json x-accepts: application/json - /apis/coordination.k8s.io/v1/leases: - get: - description: list or watch objects of kind Lease - operationId: listLeaseForAllNamespaces + put: + description: replace status of the specified Job + operationId: replaceNamespacedJobStatus parameters: - - description: 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. - in: query - name: allowWatchBookmarks - schema: - type: boolean - - description: |- - 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. - in: query - name: continue - schema: - type: string - - description: A selector to restrict the list of returned objects by their - fields. Defaults to everything. - in: query - name: fieldSelector + - description: name of the Job + in: path + name: name + required: true schema: type: string - - description: A selector to restrict the list of returned objects by their - labels. Defaults to everything. - in: query - name: labelSelector + - description: object name and auth scope, such as for teams and projects + in: path + name: namespace + required: true schema: type: string - - description: |- - limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. - - The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. - in: query - name: limit - schema: - type: integer - - description: If 'true', then the output is pretty printed. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: type: string - - description: |- - resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. - - Defaults to unset + - description: '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' in: query - name: resourceVersion + name: dryRun schema: type: string - - description: |- - resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. - - Defaults to unset + - description: fieldManager is a name associated with the actor or entity that + is making these changes. The value must be less than or 128 characters long, + and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. in: query - name: resourceVersionMatch + name: fieldManager schema: type: string - - description: |- - `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic "Bookmark" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `"k8s.io/initial-events-end": "true"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. - - When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan - is interpreted as "data at least as new as the provided `resourceVersion`" - and the bookmark event is send when the state is synced - to a `resourceVersion` at least as fresh as the one provided by the ListOptions. - If `resourceVersion` is unset, this is interpreted as "consistent read" and the - bookmark event is send when the state is synced at least to the moment - when request started being processed. - - `resourceVersionMatch` set to any other value or unset - Invalid error is returned. - - Defaults to true if `resourceVersion=""` or `resourceVersion="0"` (for backward compatibility reasons) and to false otherwise. - in: query - name: sendInitialEvents - schema: - type: boolean - - description: Timeout for the list/watch call. This limits the duration of - the call, regardless of any activity or inactivity. - in: query - name: timeoutSeconds - schema: - type: integer - - description: Watch for changes to the described resources and return them - as a stream of add, update, and remove notifications. Specify resourceVersion. + - description: 'fieldValidation instructs the server on how to handle objects + in the request (POST/PUT/PATCH) containing unknown or duplicate fields. + Valid values are: - Ignore: This will ignore any unknown fields that are + silently dropped from the object, and will ignore all but the last duplicate + field that the decoder encounters. This is the default behavior prior to + v1.23. - Warn: This will send a warning via the standard warning response + header for each unknown field that is dropped from the object, and for each + duplicate field that is encountered. The request will still succeed if there + are no other errors, and will only persist the last of any duplicate fields. + This is the default in v1.23+ - Strict: This will fail the request with + a BadRequest error if any unknown fields would be dropped from the object, + or if any duplicate fields are present. The error returned from the server + will contain all unknown and duplicate fields encountered.' in: query - name: watch + name: fieldValidation schema: - type: boolean + type: string + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/v1.Job' + required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.LeaseList' + $ref: '#/components/schemas/v1.Job' application/yaml: schema: - $ref: '#/components/schemas/v1.LeaseList' + $ref: '#/components/schemas/v1.Job' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.LeaseList' - application/json;stream=watch: - schema: - $ref: '#/components/schemas/v1.LeaseList' - application/vnd.kubernetes.protobuf;stream=watch: + $ref: '#/components/schemas/v1.Job' + application/cbor: schema: - $ref: '#/components/schemas/v1.LeaseList' + $ref: '#/components/schemas/v1.Job' description: OK + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.Job' + application/yaml: + schema: + $ref: '#/components/schemas/v1.Job' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.Job' + application/cbor: + schema: + $ref: '#/components/schemas/v1.Job' + description: Created "401": content: {} description: Unauthorized tags: - - coordination_v1 - x-kubernetes-action: list + - batch_v1 + x-kubernetes-action: put x-kubernetes-group-version-kind: - group: coordination.k8s.io - kind: Lease + group: batch + kind: Job version: v1 + x-codegen-request-body-name: body + x-contentType: application/json x-accepts: application/json - /apis/coordination.k8s.io/v1/namespaces/{namespace}/leases: + /apis/batch/v1/watch/cronjobs: {} + /apis/batch/v1/watch/jobs: {} + /apis/batch/v1/watch/namespaces/{namespace}/cronjobs: {} + /apis/batch/v1/watch/namespaces/{namespace}/cronjobs/{name}: {} + /apis/batch/v1/watch/namespaces/{namespace}/jobs: {} + /apis/batch/v1/watch/namespaces/{namespace}/jobs/{name}: {} + /apis/certificates.k8s.io/: + get: + description: get information of a group + operationId: getAPIGroup + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.APIGroup' + application/yaml: + schema: + $ref: '#/components/schemas/v1.APIGroup' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.APIGroup' + description: OK + "401": + content: {} + description: Unauthorized + tags: + - certificates + x-accepts: application/json + /apis/certificates.k8s.io/v1/: + get: + description: get available resources + operationId: getAPIResources + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.APIResourceList' + application/yaml: + schema: + $ref: '#/components/schemas/v1.APIResourceList' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.APIResourceList' + application/cbor: + schema: + $ref: '#/components/schemas/v1.APIResourceList' + description: OK + "401": + content: {} + description: Unauthorized + tags: + - certificates_v1 + x-accepts: application/json + /apis/certificates.k8s.io/v1/certificatesigningrequests: delete: - description: delete collection of Lease - operationId: deleteCollectionNamespacedLease + description: delete collection of CertificateSigningRequest + operationId: deleteCollectionCertificateSigningRequest parameters: - - description: object name and auth scope, such as for teams and projects - in: path - name: namespace - required: true - schema: - type: string - - description: If 'true', then the output is pretty printed. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -38052,6 +41033,20 @@ paths: name: gracePeriodSeconds schema: type: integer + - description: 'if set to true, it will trigger an unsafe deletion of the resource + in case the normal deletion flow fails with a corrupt object error. A resource + is considered corrupt if it can not be retrieved from the underlying storage + successfully because of a) its data can not be transformed e.g. decryption + failure, or b) it fails to decode into an object. NOTE: unsafe deletion + ignores finalizer constraints, skips precondition checks, and removes the + object from the storage. WARNING: This may potentially break the cluster + if the workload associated with the resource being unsafe-deleted relies + on normal deletion flow. Use only if you REALLY know what you are doing. + The default value is false, and the user must opt in to enable it' + in: query + name: ignoreStoreReadErrorWithClusterBreakingPotential + schema: + type: boolean - description: A selector to restrict the list of returned objects by their labels. Defaults to everything. in: query @@ -38143,31 +41138,30 @@ paths: application/vnd.kubernetes.protobuf: schema: $ref: '#/components/schemas/v1.Status' + application/cbor: + schema: + $ref: '#/components/schemas/v1.Status' description: OK "401": content: {} description: Unauthorized tags: - - coordination_v1 + - certificates_v1 x-kubernetes-action: deletecollection x-kubernetes-group-version-kind: - group: coordination.k8s.io - kind: Lease + group: certificates.k8s.io + kind: CertificateSigningRequest version: v1 x-codegen-request-body-name: body x-contentType: application/json x-accepts: application/json get: - description: list or watch objects of kind Lease - operationId: listNamespacedLease + description: list or watch objects of kind CertificateSigningRequest + operationId: listCertificateSigningRequest parameters: - - description: object name and auth scope, such as for teams and projects - in: path - name: namespace - required: true - schema: - type: string - - description: If 'true', then the output is pretty printed. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -38261,42 +41255,44 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.LeaseList' + $ref: '#/components/schemas/v1.CertificateSigningRequestList' application/yaml: schema: - $ref: '#/components/schemas/v1.LeaseList' + $ref: '#/components/schemas/v1.CertificateSigningRequestList' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.LeaseList' + $ref: '#/components/schemas/v1.CertificateSigningRequestList' + application/cbor: + schema: + $ref: '#/components/schemas/v1.CertificateSigningRequestList' application/json;stream=watch: schema: - $ref: '#/components/schemas/v1.LeaseList' + $ref: '#/components/schemas/v1.CertificateSigningRequestList' application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: '#/components/schemas/v1.LeaseList' + $ref: '#/components/schemas/v1.CertificateSigningRequestList' + application/cbor-seq: + schema: + $ref: '#/components/schemas/v1.CertificateSigningRequestList' description: OK "401": content: {} description: Unauthorized tags: - - coordination_v1 + - certificates_v1 x-kubernetes-action: list x-kubernetes-group-version-kind: - group: coordination.k8s.io - kind: Lease + group: certificates.k8s.io + kind: CertificateSigningRequest version: v1 x-accepts: application/json post: - description: create a Lease - operationId: createNamespacedLease + description: create a CertificateSigningRequest + operationId: createCertificateSigningRequest parameters: - - description: object name and auth scope, such as for teams and projects - in: path - name: namespace - required: true - schema: - type: string - - description: If 'true', then the output is pretty printed. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -38337,76 +41333,81 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.Lease' + $ref: '#/components/schemas/v1.CertificateSigningRequest' required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.Lease' + $ref: '#/components/schemas/v1.CertificateSigningRequest' application/yaml: schema: - $ref: '#/components/schemas/v1.Lease' + $ref: '#/components/schemas/v1.CertificateSigningRequest' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Lease' + $ref: '#/components/schemas/v1.CertificateSigningRequest' + application/cbor: + schema: + $ref: '#/components/schemas/v1.CertificateSigningRequest' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.Lease' + $ref: '#/components/schemas/v1.CertificateSigningRequest' application/yaml: schema: - $ref: '#/components/schemas/v1.Lease' + $ref: '#/components/schemas/v1.CertificateSigningRequest' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Lease' + $ref: '#/components/schemas/v1.CertificateSigningRequest' + application/cbor: + schema: + $ref: '#/components/schemas/v1.CertificateSigningRequest' description: Created "202": content: application/json: schema: - $ref: '#/components/schemas/v1.Lease' + $ref: '#/components/schemas/v1.CertificateSigningRequest' application/yaml: schema: - $ref: '#/components/schemas/v1.Lease' + $ref: '#/components/schemas/v1.CertificateSigningRequest' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Lease' + $ref: '#/components/schemas/v1.CertificateSigningRequest' + application/cbor: + schema: + $ref: '#/components/schemas/v1.CertificateSigningRequest' description: Accepted "401": content: {} description: Unauthorized tags: - - coordination_v1 + - certificates_v1 x-kubernetes-action: post x-kubernetes-group-version-kind: - group: coordination.k8s.io - kind: Lease + group: certificates.k8s.io + kind: CertificateSigningRequest version: v1 x-codegen-request-body-name: body x-contentType: application/json x-accepts: application/json - /apis/coordination.k8s.io/v1/namespaces/{namespace}/leases/{name}: + /apis/certificates.k8s.io/v1/certificatesigningrequests/{name}: delete: - description: delete a Lease - operationId: deleteNamespacedLease + description: delete a CertificateSigningRequest + operationId: deleteCertificateSigningRequest parameters: - - description: name of the Lease + - description: name of the CertificateSigningRequest in: path name: name required: true schema: type: string - - description: object name and auth scope, such as for teams and projects - in: path - name: namespace - required: true - schema: - type: string - - description: If 'true', then the output is pretty printed. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -38428,6 +41429,20 @@ paths: name: gracePeriodSeconds schema: type: integer + - description: 'if set to true, it will trigger an unsafe deletion of the resource + in case the normal deletion flow fails with a corrupt object error. A resource + is considered corrupt if it can not be retrieved from the underlying storage + successfully because of a) its data can not be transformed e.g. decryption + failure, or b) it fails to decode into an object. NOTE: unsafe deletion + ignores finalizer constraints, skips precondition checks, and removes the + object from the storage. WARNING: This may potentially break the cluster + if the workload associated with the resource being unsafe-deleted relies + on normal deletion flow. Use only if you REALLY know what you are doing. + The default value is false, and the user must opt in to enable it' + in: query + name: ignoreStoreReadErrorWithClusterBreakingPotential + schema: + type: boolean - description: '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 @@ -38465,6 +41480,9 @@ paths: application/vnd.kubernetes.protobuf: schema: $ref: '#/components/schemas/v1.Status' + application/cbor: + schema: + $ref: '#/components/schemas/v1.Status' description: OK "202": content: @@ -38477,37 +41495,36 @@ paths: application/vnd.kubernetes.protobuf: schema: $ref: '#/components/schemas/v1.Status' + application/cbor: + schema: + $ref: '#/components/schemas/v1.Status' description: Accepted "401": content: {} description: Unauthorized tags: - - coordination_v1 + - certificates_v1 x-kubernetes-action: delete x-kubernetes-group-version-kind: - group: coordination.k8s.io - kind: Lease + group: certificates.k8s.io + kind: CertificateSigningRequest version: v1 x-codegen-request-body-name: body x-contentType: application/json x-accepts: application/json get: - description: read the specified Lease - operationId: readNamespacedLease + description: read the specified CertificateSigningRequest + operationId: readCertificateSigningRequest parameters: - - description: name of the Lease + - description: name of the CertificateSigningRequest in: path name: name required: true schema: type: string - - description: object name and auth scope, such as for teams and projects - in: path - name: namespace - required: true - schema: - type: string - - description: If 'true', then the output is pretty printed. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -38517,42 +41534,41 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.Lease' + $ref: '#/components/schemas/v1.CertificateSigningRequest' application/yaml: schema: - $ref: '#/components/schemas/v1.Lease' + $ref: '#/components/schemas/v1.CertificateSigningRequest' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Lease' + $ref: '#/components/schemas/v1.CertificateSigningRequest' + application/cbor: + schema: + $ref: '#/components/schemas/v1.CertificateSigningRequest' description: OK "401": content: {} description: Unauthorized tags: - - coordination_v1 + - certificates_v1 x-kubernetes-action: get x-kubernetes-group-version-kind: - group: coordination.k8s.io - kind: Lease + group: certificates.k8s.io + kind: CertificateSigningRequest version: v1 x-accepts: application/json patch: - description: partially update the specified Lease - operationId: patchNamespacedLease + description: partially update the specified CertificateSigningRequest + operationId: patchCertificateSigningRequest parameters: - - description: name of the Lease + - description: name of the CertificateSigningRequest in: path name: name required: true schema: type: string - - description: object name and auth scope, such as for teams and projects - in: path - name: namespace - required: true - schema: - type: string - - description: If 'true', then the output is pretty printed. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -38609,56 +41625,58 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.Lease' + $ref: '#/components/schemas/v1.CertificateSigningRequest' application/yaml: schema: - $ref: '#/components/schemas/v1.Lease' + $ref: '#/components/schemas/v1.CertificateSigningRequest' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Lease' + $ref: '#/components/schemas/v1.CertificateSigningRequest' + application/cbor: + schema: + $ref: '#/components/schemas/v1.CertificateSigningRequest' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.Lease' + $ref: '#/components/schemas/v1.CertificateSigningRequest' application/yaml: schema: - $ref: '#/components/schemas/v1.Lease' + $ref: '#/components/schemas/v1.CertificateSigningRequest' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Lease' + $ref: '#/components/schemas/v1.CertificateSigningRequest' + application/cbor: + schema: + $ref: '#/components/schemas/v1.CertificateSigningRequest' description: Created "401": content: {} description: Unauthorized tags: - - coordination_v1 + - certificates_v1 x-kubernetes-action: patch x-kubernetes-group-version-kind: - group: coordination.k8s.io - kind: Lease + group: certificates.k8s.io + kind: CertificateSigningRequest version: v1 x-codegen-request-body-name: body x-contentType: application/json x-accepts: application/json put: - description: replace the specified Lease - operationId: replaceNamespacedLease + description: replace the specified CertificateSigningRequest + operationId: replaceCertificateSigningRequest parameters: - - description: name of the Lease + - description: name of the CertificateSigningRequest in: path name: name required: true schema: type: string - - description: object name and auth scope, such as for teams and projects - in: path - name: namespace - required: true - schema: - type: string - - description: If 'true', then the output is pretty printed. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -38699,243 +41717,222 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.Lease' + $ref: '#/components/schemas/v1.CertificateSigningRequest' required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.Lease' + $ref: '#/components/schemas/v1.CertificateSigningRequest' application/yaml: schema: - $ref: '#/components/schemas/v1.Lease' + $ref: '#/components/schemas/v1.CertificateSigningRequest' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Lease' + $ref: '#/components/schemas/v1.CertificateSigningRequest' + application/cbor: + schema: + $ref: '#/components/schemas/v1.CertificateSigningRequest' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.Lease' + $ref: '#/components/schemas/v1.CertificateSigningRequest' application/yaml: schema: - $ref: '#/components/schemas/v1.Lease' + $ref: '#/components/schemas/v1.CertificateSigningRequest' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Lease' + $ref: '#/components/schemas/v1.CertificateSigningRequest' + application/cbor: + schema: + $ref: '#/components/schemas/v1.CertificateSigningRequest' description: Created "401": content: {} description: Unauthorized tags: - - coordination_v1 + - certificates_v1 x-kubernetes-action: put x-kubernetes-group-version-kind: - group: coordination.k8s.io - kind: Lease + group: certificates.k8s.io + kind: CertificateSigningRequest version: v1 x-codegen-request-body-name: body x-contentType: application/json x-accepts: application/json - /apis/coordination.k8s.io/v1/watch/leases: {} - /apis/coordination.k8s.io/v1/watch/namespaces/{namespace}/leases: {} - /apis/coordination.k8s.io/v1/watch/namespaces/{namespace}/leases/{name}: {} - /apis/discovery.k8s.io/: + /apis/certificates.k8s.io/v1/certificatesigningrequests/{name}/approval: get: - description: get information of a group - operationId: getAPIGroup + description: read approval of the specified CertificateSigningRequest + operationId: readCertificateSigningRequestApproval + parameters: + - description: name of the CertificateSigningRequest + in: path + name: name + required: true + schema: + type: string + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). + in: query + name: pretty + schema: + type: string responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.APIGroup' + $ref: '#/components/schemas/v1.CertificateSigningRequest' application/yaml: schema: - $ref: '#/components/schemas/v1.APIGroup' + $ref: '#/components/schemas/v1.CertificateSigningRequest' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.APIGroup' - description: OK - "401": - content: {} - description: Unauthorized - tags: - - discovery - x-accepts: application/json - /apis/discovery.k8s.io/v1/: - get: - description: get available resources - operationId: getAPIResources - responses: - "200": - content: - application/json: - schema: - $ref: '#/components/schemas/v1.APIResourceList' - application/yaml: - schema: - $ref: '#/components/schemas/v1.APIResourceList' - application/vnd.kubernetes.protobuf: + $ref: '#/components/schemas/v1.CertificateSigningRequest' + application/cbor: schema: - $ref: '#/components/schemas/v1.APIResourceList' + $ref: '#/components/schemas/v1.CertificateSigningRequest' description: OK "401": content: {} description: Unauthorized tags: - - discovery_v1 + - certificates_v1 + x-kubernetes-action: get + x-kubernetes-group-version-kind: + group: certificates.k8s.io + kind: CertificateSigningRequest + version: v1 x-accepts: application/json - /apis/discovery.k8s.io/v1/endpointslices: - get: - description: list or watch objects of kind EndpointSlice - operationId: listEndpointSliceForAllNamespaces + patch: + description: partially update approval of the specified CertificateSigningRequest + operationId: patchCertificateSigningRequestApproval parameters: - - description: 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. - in: query - name: allowWatchBookmarks - schema: - type: boolean - - description: |- - 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. - in: query - name: continue - 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 - - description: A selector to restrict the list of returned objects by their - labels. Defaults to everything. - in: query - name: labelSelector + - description: name of the CertificateSigningRequest + in: path + name: name + required: true schema: type: string - - description: |- - limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. - - The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. - in: query - name: limit - schema: - type: integer - - description: If 'true', then the output is pretty printed. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: type: string - - description: |- - resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. - - Defaults to unset + - description: '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' in: query - name: resourceVersion + name: dryRun schema: type: string - - description: |- - resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. - - Defaults to unset + - description: fieldManager is a name associated with the actor or entity that + is making these changes. The value must be less than or 128 characters long, + and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + This field is required for apply requests (application/apply-patch) but + optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). in: query - name: resourceVersionMatch + name: fieldManager schema: type: string - - description: |- - `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic "Bookmark" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `"k8s.io/initial-events-end": "true"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. - - When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan - is interpreted as "data at least as new as the provided `resourceVersion`" - and the bookmark event is send when the state is synced - to a `resourceVersion` at least as fresh as the one provided by the ListOptions. - If `resourceVersion` is unset, this is interpreted as "consistent read" and the - bookmark event is send when the state is synced at least to the moment - when request started being processed. - - `resourceVersionMatch` set to any other value or unset - Invalid error is returned. - - Defaults to true if `resourceVersion=""` or `resourceVersion="0"` (for backward compatibility reasons) and to false otherwise. - in: query - name: sendInitialEvents - schema: - type: boolean - - description: Timeout for the list/watch call. This limits the duration of - the call, regardless of any activity or inactivity. + - description: 'fieldValidation instructs the server on how to handle objects + in the request (POST/PUT/PATCH) containing unknown or duplicate fields. + Valid values are: - Ignore: This will ignore any unknown fields that are + silently dropped from the object, and will ignore all but the last duplicate + field that the decoder encounters. This is the default behavior prior to + v1.23. - Warn: This will send a warning via the standard warning response + header for each unknown field that is dropped from the object, and for each + duplicate field that is encountered. The request will still succeed if there + are no other errors, and will only persist the last of any duplicate fields. + This is the default in v1.23+ - Strict: This will fail the request with + a BadRequest error if any unknown fields would be dropped from the object, + or if any duplicate fields are present. The error returned from the server + will contain all unknown and duplicate fields encountered.' in: query - name: timeoutSeconds + name: fieldValidation schema: - type: integer - - description: Watch for changes to the described resources and return them - as a stream of add, update, and remove notifications. Specify resourceVersion. + type: string + - description: Force is going to "force" Apply requests. It means user will + re-acquire conflicting fields owned by other people. Force flag must be + unset for non-apply patch requests. in: query - name: watch + name: force schema: type: boolean + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/v1.Patch' + required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.EndpointSliceList' + $ref: '#/components/schemas/v1.CertificateSigningRequest' application/yaml: schema: - $ref: '#/components/schemas/v1.EndpointSliceList' + $ref: '#/components/schemas/v1.CertificateSigningRequest' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.EndpointSliceList' - application/json;stream=watch: - schema: - $ref: '#/components/schemas/v1.EndpointSliceList' - application/vnd.kubernetes.protobuf;stream=watch: + $ref: '#/components/schemas/v1.CertificateSigningRequest' + application/cbor: schema: - $ref: '#/components/schemas/v1.EndpointSliceList' + $ref: '#/components/schemas/v1.CertificateSigningRequest' description: OK + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.CertificateSigningRequest' + application/yaml: + schema: + $ref: '#/components/schemas/v1.CertificateSigningRequest' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.CertificateSigningRequest' + application/cbor: + schema: + $ref: '#/components/schemas/v1.CertificateSigningRequest' + description: Created "401": content: {} description: Unauthorized tags: - - discovery_v1 - x-kubernetes-action: list + - certificates_v1 + x-kubernetes-action: patch x-kubernetes-group-version-kind: - group: discovery.k8s.io - kind: EndpointSlice + group: certificates.k8s.io + kind: CertificateSigningRequest version: v1 + x-codegen-request-body-name: body + x-contentType: application/json x-accepts: application/json - /apis/discovery.k8s.io/v1/namespaces/{namespace}/endpointslices: - delete: - description: delete collection of EndpointSlice - operationId: deleteCollectionNamespacedEndpointSlice + put: + description: replace approval of the specified CertificateSigningRequest + operationId: replaceCertificateSigningRequestApproval parameters: - - description: object name and auth scope, such as for teams and projects + - description: name of the CertificateSigningRequest in: path - name: namespace + name: name required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: type: string - - description: |- - 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. - in: query - name: continue - schema: - type: string - description: '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 @@ -38944,522 +41941,138 @@ 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 - - description: 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. - in: query - name: gracePeriodSeconds - schema: - type: integer - - description: A selector to restrict the list of returned objects by their - labels. Defaults to everything. - in: query - name: labelSelector - schema: - type: string - - description: |- - limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. - - The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. - in: query - name: limit - schema: - type: integer - - description: '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.' - in: query - name: orphanDependents - schema: - type: boolean - - description: '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.' - in: query - name: propagationPolicy - schema: - type: string - - description: |- - resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. - - Defaults to unset + - description: fieldManager is a name associated with the actor or entity that + is making these changes. The value must be less than or 128 characters long, + and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. in: query - name: resourceVersion + name: fieldManager schema: type: string - - description: |- - resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. - - Defaults to unset + - description: 'fieldValidation instructs the server on how to handle objects + in the request (POST/PUT/PATCH) containing unknown or duplicate fields. + Valid values are: - Ignore: This will ignore any unknown fields that are + silently dropped from the object, and will ignore all but the last duplicate + field that the decoder encounters. This is the default behavior prior to + v1.23. - Warn: This will send a warning via the standard warning response + header for each unknown field that is dropped from the object, and for each + duplicate field that is encountered. The request will still succeed if there + are no other errors, and will only persist the last of any duplicate fields. + This is the default in v1.23+ - Strict: This will fail the request with + a BadRequest error if any unknown fields would be dropped from the object, + or if any duplicate fields are present. The error returned from the server + will contain all unknown and duplicate fields encountered.' in: query - name: resourceVersionMatch + name: fieldValidation schema: type: string - - description: |- - `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic "Bookmark" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `"k8s.io/initial-events-end": "true"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. - - When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan - is interpreted as "data at least as new as the provided `resourceVersion`" - and the bookmark event is send when the state is synced - to a `resourceVersion` at least as fresh as the one provided by the ListOptions. - If `resourceVersion` is unset, this is interpreted as "consistent read" and the - bookmark event is send when the state is synced at least to the moment - when request started being processed. - - `resourceVersionMatch` set to any other value or unset - Invalid error is returned. - - Defaults to true if `resourceVersion=""` or `resourceVersion="0"` (for backward compatibility reasons) and to false otherwise. - in: query - name: sendInitialEvents - schema: - type: boolean - - description: Timeout for the list/watch call. This limits the duration of - the call, regardless of any activity or inactivity. - in: query - name: timeoutSeconds - schema: - type: integer requestBody: content: application/json: schema: - $ref: '#/components/schemas/v1.DeleteOptions' - required: false + $ref: '#/components/schemas/v1.CertificateSigningRequest' + required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.Status' + $ref: '#/components/schemas/v1.CertificateSigningRequest' application/yaml: schema: - $ref: '#/components/schemas/v1.Status' + $ref: '#/components/schemas/v1.CertificateSigningRequest' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Status' + $ref: '#/components/schemas/v1.CertificateSigningRequest' + application/cbor: + schema: + $ref: '#/components/schemas/v1.CertificateSigningRequest' description: OK + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.CertificateSigningRequest' + application/yaml: + schema: + $ref: '#/components/schemas/v1.CertificateSigningRequest' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.CertificateSigningRequest' + application/cbor: + schema: + $ref: '#/components/schemas/v1.CertificateSigningRequest' + description: Created "401": content: {} description: Unauthorized tags: - - discovery_v1 - x-kubernetes-action: deletecollection + - certificates_v1 + x-kubernetes-action: put x-kubernetes-group-version-kind: - group: discovery.k8s.io - kind: EndpointSlice + group: certificates.k8s.io + kind: CertificateSigningRequest version: v1 x-codegen-request-body-name: body x-contentType: application/json x-accepts: application/json + /apis/certificates.k8s.io/v1/certificatesigningrequests/{name}/status: get: - description: list or watch objects of kind EndpointSlice - operationId: listNamespacedEndpointSlice + description: read status of the specified CertificateSigningRequest + operationId: readCertificateSigningRequestStatus parameters: - - description: object name and auth scope, such as for teams and projects + - description: name of the CertificateSigningRequest in: path - name: namespace + name: name required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: type: string - - description: 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. - in: query - name: allowWatchBookmarks - schema: - type: boolean - - description: |- - 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. - in: query - name: continue - 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 - - description: A selector to restrict the list of returned objects by their - labels. Defaults to everything. - in: query - name: labelSelector - schema: - type: string - - description: |- - limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. - - The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. - in: query - name: limit - schema: - type: integer - - description: |- - resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. - - Defaults to unset - in: query - name: resourceVersion - schema: - type: string - - description: |- - resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. - - Defaults to unset - in: query - name: resourceVersionMatch - schema: - type: string - - description: |- - `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic "Bookmark" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `"k8s.io/initial-events-end": "true"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. - - When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan - is interpreted as "data at least as new as the provided `resourceVersion`" - and the bookmark event is send when the state is synced - to a `resourceVersion` at least as fresh as the one provided by the ListOptions. - If `resourceVersion` is unset, this is interpreted as "consistent read" and the - bookmark event is send when the state is synced at least to the moment - when request started being processed. - - `resourceVersionMatch` set to any other value or unset - Invalid error is returned. - - Defaults to true if `resourceVersion=""` or `resourceVersion="0"` (for backward compatibility reasons) and to false otherwise. - in: query - name: sendInitialEvents - schema: - type: boolean - - description: Timeout for the list/watch call. This limits the duration of - the call, regardless of any activity or inactivity. - in: query - name: timeoutSeconds - schema: - type: integer - - description: Watch for changes to the described resources and return them - as a stream of add, update, and remove notifications. Specify resourceVersion. - in: query - name: watch - schema: - type: boolean - responses: - "200": - content: - application/json: - schema: - $ref: '#/components/schemas/v1.EndpointSliceList' - application/yaml: - schema: - $ref: '#/components/schemas/v1.EndpointSliceList' - application/vnd.kubernetes.protobuf: - schema: - $ref: '#/components/schemas/v1.EndpointSliceList' - application/json;stream=watch: - schema: - $ref: '#/components/schemas/v1.EndpointSliceList' - application/vnd.kubernetes.protobuf;stream=watch: - schema: - $ref: '#/components/schemas/v1.EndpointSliceList' - description: OK - "401": - content: {} - description: Unauthorized - tags: - - discovery_v1 - x-kubernetes-action: list - x-kubernetes-group-version-kind: - group: discovery.k8s.io - kind: EndpointSlice - version: v1 - x-accepts: application/json - post: - description: create an EndpointSlice - operationId: createNamespacedEndpointSlice - parameters: - - description: object name and auth scope, such as for teams and projects - in: path - name: namespace - required: true - schema: - type: string - - description: If 'true', then the output is pretty printed. - in: query - name: pretty - schema: - type: string - - description: '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' - in: query - name: dryRun - schema: - type: string - - description: fieldManager is a name associated with the actor or entity that - is making these changes. The value must be less than or 128 characters long, - and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - in: query - name: fieldManager - schema: - type: string - - description: 'fieldValidation instructs the server on how to handle objects - in the request (POST/PUT/PATCH) containing unknown or duplicate fields. - Valid values are: - Ignore: This will ignore any unknown fields that are - silently dropped from the object, and will ignore all but the last duplicate - field that the decoder encounters. This is the default behavior prior to - v1.23. - Warn: This will send a warning via the standard warning response - header for each unknown field that is dropped from the object, and for each - duplicate field that is encountered. The request will still succeed if there - are no other errors, and will only persist the last of any duplicate fields. - This is the default in v1.23+ - Strict: This will fail the request with - a BadRequest error if any unknown fields would be dropped from the object, - or if any duplicate fields are present. The error returned from the server - will contain all unknown and duplicate fields encountered.' - in: query - name: fieldValidation - schema: - type: string - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/v1.EndpointSlice' - required: true - responses: - "200": - content: - application/json: - schema: - $ref: '#/components/schemas/v1.EndpointSlice' - application/yaml: - schema: - $ref: '#/components/schemas/v1.EndpointSlice' - application/vnd.kubernetes.protobuf: - schema: - $ref: '#/components/schemas/v1.EndpointSlice' - description: OK - "201": - content: - application/json: - schema: - $ref: '#/components/schemas/v1.EndpointSlice' - application/yaml: - schema: - $ref: '#/components/schemas/v1.EndpointSlice' - application/vnd.kubernetes.protobuf: - schema: - $ref: '#/components/schemas/v1.EndpointSlice' - description: Created - "202": - content: - application/json: - schema: - $ref: '#/components/schemas/v1.EndpointSlice' - application/yaml: - schema: - $ref: '#/components/schemas/v1.EndpointSlice' - application/vnd.kubernetes.protobuf: - schema: - $ref: '#/components/schemas/v1.EndpointSlice' - description: Accepted - "401": - content: {} - description: Unauthorized - tags: - - discovery_v1 - x-kubernetes-action: post - x-kubernetes-group-version-kind: - group: discovery.k8s.io - kind: EndpointSlice - version: v1 - x-codegen-request-body-name: body - x-contentType: application/json - x-accepts: application/json - /apis/discovery.k8s.io/v1/namespaces/{namespace}/endpointslices/{name}: - delete: - description: delete an EndpointSlice - operationId: deleteNamespacedEndpointSlice - parameters: - - description: name of the EndpointSlice - in: path - name: name - required: true - schema: - type: string - - description: object name and auth scope, such as for teams and projects - in: path - name: namespace - required: true - schema: - type: string - - description: If 'true', then the output is pretty printed. - in: query - name: pretty - schema: - type: string - - description: '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' - in: query - name: dryRun - schema: - type: string - - description: 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. - in: query - name: gracePeriodSeconds - schema: - type: integer - - description: '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.' - in: query - name: orphanDependents - schema: - type: boolean - - description: '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.' - in: query - name: propagationPolicy - schema: - type: string - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/v1.DeleteOptions' - required: false responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.Status' - application/yaml: - schema: - $ref: '#/components/schemas/v1.Status' - application/vnd.kubernetes.protobuf: - schema: - $ref: '#/components/schemas/v1.Status' - description: OK - "202": - content: - application/json: - schema: - $ref: '#/components/schemas/v1.Status' + $ref: '#/components/schemas/v1.CertificateSigningRequest' application/yaml: schema: - $ref: '#/components/schemas/v1.Status' + $ref: '#/components/schemas/v1.CertificateSigningRequest' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Status' - description: Accepted - "401": - content: {} - description: Unauthorized - tags: - - discovery_v1 - x-kubernetes-action: delete - x-kubernetes-group-version-kind: - group: discovery.k8s.io - kind: EndpointSlice - version: v1 - x-codegen-request-body-name: body - x-contentType: application/json - x-accepts: application/json - get: - description: read the specified EndpointSlice - operationId: readNamespacedEndpointSlice - parameters: - - description: name of the EndpointSlice - in: path - name: name - required: true - schema: - type: string - - description: object name and auth scope, such as for teams and projects - in: path - name: namespace - required: true - schema: - type: string - - description: If 'true', then the output is pretty printed. - in: query - name: pretty - schema: - type: string - responses: - "200": - content: - application/json: - schema: - $ref: '#/components/schemas/v1.EndpointSlice' - application/yaml: - schema: - $ref: '#/components/schemas/v1.EndpointSlice' - application/vnd.kubernetes.protobuf: + $ref: '#/components/schemas/v1.CertificateSigningRequest' + application/cbor: schema: - $ref: '#/components/schemas/v1.EndpointSlice' + $ref: '#/components/schemas/v1.CertificateSigningRequest' description: OK "401": content: {} description: Unauthorized tags: - - discovery_v1 + - certificates_v1 x-kubernetes-action: get x-kubernetes-group-version-kind: - group: discovery.k8s.io - kind: EndpointSlice + group: certificates.k8s.io + kind: CertificateSigningRequest version: v1 x-accepts: application/json patch: - description: partially update the specified EndpointSlice - operationId: patchNamespacedEndpointSlice + description: partially update status of the specified CertificateSigningRequest + operationId: patchCertificateSigningRequestStatus parameters: - - description: name of the EndpointSlice + - description: name of the CertificateSigningRequest in: path name: name required: true schema: type: string - - description: object name and auth scope, such as for teams and projects - in: path - name: namespace - required: true - schema: - type: string - - description: If 'true', then the output is pretty printed. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -39516,56 +42129,58 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.EndpointSlice' + $ref: '#/components/schemas/v1.CertificateSigningRequest' application/yaml: schema: - $ref: '#/components/schemas/v1.EndpointSlice' + $ref: '#/components/schemas/v1.CertificateSigningRequest' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.EndpointSlice' + $ref: '#/components/schemas/v1.CertificateSigningRequest' + application/cbor: + schema: + $ref: '#/components/schemas/v1.CertificateSigningRequest' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.EndpointSlice' + $ref: '#/components/schemas/v1.CertificateSigningRequest' application/yaml: schema: - $ref: '#/components/schemas/v1.EndpointSlice' + $ref: '#/components/schemas/v1.CertificateSigningRequest' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.EndpointSlice' + $ref: '#/components/schemas/v1.CertificateSigningRequest' + application/cbor: + schema: + $ref: '#/components/schemas/v1.CertificateSigningRequest' description: Created "401": content: {} description: Unauthorized tags: - - discovery_v1 + - certificates_v1 x-kubernetes-action: patch x-kubernetes-group-version-kind: - group: discovery.k8s.io - kind: EndpointSlice + group: certificates.k8s.io + kind: CertificateSigningRequest version: v1 x-codegen-request-body-name: body x-contentType: application/json x-accepts: application/json put: - description: replace the specified EndpointSlice - operationId: replaceNamespacedEndpointSlice + description: replace status of the specified CertificateSigningRequest + operationId: replaceCertificateSigningRequestStatus parameters: - - description: name of the EndpointSlice + - description: name of the CertificateSigningRequest in: path name: name required: true schema: type: string - - description: object name and auth scope, such as for teams and projects - in: path - name: namespace - required: true - schema: - type: string - - description: If 'true', then the output is pretty printed. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -39606,73 +42221,55 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.EndpointSlice' + $ref: '#/components/schemas/v1.CertificateSigningRequest' required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.EndpointSlice' + $ref: '#/components/schemas/v1.CertificateSigningRequest' application/yaml: schema: - $ref: '#/components/schemas/v1.EndpointSlice' + $ref: '#/components/schemas/v1.CertificateSigningRequest' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.EndpointSlice' + $ref: '#/components/schemas/v1.CertificateSigningRequest' + application/cbor: + schema: + $ref: '#/components/schemas/v1.CertificateSigningRequest' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.EndpointSlice' + $ref: '#/components/schemas/v1.CertificateSigningRequest' application/yaml: schema: - $ref: '#/components/schemas/v1.EndpointSlice' + $ref: '#/components/schemas/v1.CertificateSigningRequest' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.EndpointSlice' + $ref: '#/components/schemas/v1.CertificateSigningRequest' + application/cbor: + schema: + $ref: '#/components/schemas/v1.CertificateSigningRequest' description: Created "401": content: {} description: Unauthorized tags: - - discovery_v1 + - certificates_v1 x-kubernetes-action: put x-kubernetes-group-version-kind: - group: discovery.k8s.io - kind: EndpointSlice + group: certificates.k8s.io + kind: CertificateSigningRequest version: v1 x-codegen-request-body-name: body x-contentType: application/json x-accepts: application/json - /apis/discovery.k8s.io/v1/watch/endpointslices: {} - /apis/discovery.k8s.io/v1/watch/namespaces/{namespace}/endpointslices: {} - /apis/discovery.k8s.io/v1/watch/namespaces/{namespace}/endpointslices/{name}: {} - /apis/events.k8s.io/: - get: - description: get information of a group - operationId: getAPIGroup - responses: - "200": - content: - application/json: - schema: - $ref: '#/components/schemas/v1.APIGroup' - application/yaml: - schema: - $ref: '#/components/schemas/v1.APIGroup' - application/vnd.kubernetes.protobuf: - schema: - $ref: '#/components/schemas/v1.APIGroup' - description: OK - "401": - content: {} - description: Unauthorized - tags: - - events - x-accepts: application/json - /apis/events.k8s.io/v1/: + /apis/certificates.k8s.io/v1/watch/certificatesigningrequests: {} + /apis/certificates.k8s.io/v1/watch/certificatesigningrequests/{name}: {} + /apis/certificates.k8s.io/v1alpha1/: get: description: get available resources operationId: getAPIResources @@ -39688,149 +42285,24 @@ paths: application/vnd.kubernetes.protobuf: schema: $ref: '#/components/schemas/v1.APIResourceList' - description: OK - "401": - content: {} - description: Unauthorized - tags: - - events_v1 - x-accepts: application/json - /apis/events.k8s.io/v1/events: - get: - description: list or watch objects of kind Event - operationId: listEventForAllNamespaces - parameters: - - description: 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. - in: query - name: allowWatchBookmarks - schema: - type: boolean - - description: |- - 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. - in: query - name: continue - 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 - - description: A selector to restrict the list of returned objects by their - labels. Defaults to everything. - in: query - name: labelSelector - schema: - type: string - - description: |- - limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. - - The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. - in: query - name: limit - schema: - type: integer - - description: If 'true', then the output is pretty printed. - in: query - name: pretty - schema: - type: string - - description: |- - resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. - - Defaults to unset - in: query - name: resourceVersion - schema: - type: string - - description: |- - resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. - - Defaults to unset - in: query - name: resourceVersionMatch - schema: - type: string - - description: |- - `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic "Bookmark" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `"k8s.io/initial-events-end": "true"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. - - When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan - is interpreted as "data at least as new as the provided `resourceVersion`" - and the bookmark event is send when the state is synced - to a `resourceVersion` at least as fresh as the one provided by the ListOptions. - If `resourceVersion` is unset, this is interpreted as "consistent read" and the - bookmark event is send when the state is synced at least to the moment - when request started being processed. - - `resourceVersionMatch` set to any other value or unset - Invalid error is returned. - - Defaults to true if `resourceVersion=""` or `resourceVersion="0"` (for backward compatibility reasons) and to false otherwise. - in: query - name: sendInitialEvents - schema: - type: boolean - - description: Timeout for the list/watch call. This limits the duration of - the call, regardless of any activity or inactivity. - in: query - name: timeoutSeconds - schema: - type: integer - - description: Watch for changes to the described resources and return them - as a stream of add, update, and remove notifications. Specify resourceVersion. - in: query - name: watch - schema: - type: boolean - responses: - "200": - content: - application/json: - schema: - $ref: '#/components/schemas/events.v1.EventList' - application/yaml: - schema: - $ref: '#/components/schemas/events.v1.EventList' - application/vnd.kubernetes.protobuf: - schema: - $ref: '#/components/schemas/events.v1.EventList' - application/json;stream=watch: + application/cbor: schema: - $ref: '#/components/schemas/events.v1.EventList' - application/vnd.kubernetes.protobuf;stream=watch: - schema: - $ref: '#/components/schemas/events.v1.EventList' + $ref: '#/components/schemas/v1.APIResourceList' description: OK "401": content: {} description: Unauthorized tags: - - events_v1 - x-kubernetes-action: list - x-kubernetes-group-version-kind: - group: events.k8s.io - kind: Event - version: v1 + - certificates_v1alpha1 x-accepts: application/json - /apis/events.k8s.io/v1/namespaces/{namespace}/events: + /apis/certificates.k8s.io/v1alpha1/clustertrustbundles: delete: - description: delete collection of Event - operationId: deleteCollectionNamespacedEvent + description: delete collection of ClusterTrustBundle + operationId: deleteCollectionClusterTrustBundle parameters: - - description: object name and auth scope, such as for teams and projects - in: path - name: namespace - required: true - schema: - type: string - - description: If 'true', then the output is pretty printed. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -39866,6 +42338,20 @@ paths: name: gracePeriodSeconds schema: type: integer + - description: 'if set to true, it will trigger an unsafe deletion of the resource + in case the normal deletion flow fails with a corrupt object error. A resource + is considered corrupt if it can not be retrieved from the underlying storage + successfully because of a) its data can not be transformed e.g. decryption + failure, or b) it fails to decode into an object. NOTE: unsafe deletion + ignores finalizer constraints, skips precondition checks, and removes the + object from the storage. WARNING: This may potentially break the cluster + if the workload associated with the resource being unsafe-deleted relies + on normal deletion flow. Use only if you REALLY know what you are doing. + The default value is false, and the user must opt in to enable it' + in: query + name: ignoreStoreReadErrorWithClusterBreakingPotential + schema: + type: boolean - description: A selector to restrict the list of returned objects by their labels. Defaults to everything. in: query @@ -39957,31 +42443,30 @@ paths: application/vnd.kubernetes.protobuf: schema: $ref: '#/components/schemas/v1.Status' + application/cbor: + schema: + $ref: '#/components/schemas/v1.Status' description: OK "401": content: {} description: Unauthorized tags: - - events_v1 + - certificates_v1alpha1 x-kubernetes-action: deletecollection x-kubernetes-group-version-kind: - group: events.k8s.io - kind: Event - version: v1 + group: certificates.k8s.io + kind: ClusterTrustBundle + version: v1alpha1 x-codegen-request-body-name: body x-contentType: application/json x-accepts: application/json get: - description: list or watch objects of kind Event - operationId: listNamespacedEvent + description: list or watch objects of kind ClusterTrustBundle + operationId: listClusterTrustBundle parameters: - - description: object name and auth scope, such as for teams and projects - in: path - name: namespace - required: true - schema: - type: string - - description: If 'true', then the output is pretty printed. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -40075,42 +42560,44 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/events.v1.EventList' + $ref: '#/components/schemas/v1alpha1.ClusterTrustBundleList' application/yaml: schema: - $ref: '#/components/schemas/events.v1.EventList' + $ref: '#/components/schemas/v1alpha1.ClusterTrustBundleList' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/events.v1.EventList' + $ref: '#/components/schemas/v1alpha1.ClusterTrustBundleList' + application/cbor: + schema: + $ref: '#/components/schemas/v1alpha1.ClusterTrustBundleList' application/json;stream=watch: schema: - $ref: '#/components/schemas/events.v1.EventList' + $ref: '#/components/schemas/v1alpha1.ClusterTrustBundleList' application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: '#/components/schemas/events.v1.EventList' + $ref: '#/components/schemas/v1alpha1.ClusterTrustBundleList' + application/cbor-seq: + schema: + $ref: '#/components/schemas/v1alpha1.ClusterTrustBundleList' description: OK "401": content: {} description: Unauthorized tags: - - events_v1 + - certificates_v1alpha1 x-kubernetes-action: list x-kubernetes-group-version-kind: - group: events.k8s.io - kind: Event - version: v1 + group: certificates.k8s.io + kind: ClusterTrustBundle + version: v1alpha1 x-accepts: application/json post: - description: create an Event - operationId: createNamespacedEvent + description: create a ClusterTrustBundle + operationId: createClusterTrustBundle parameters: - - description: object name and auth scope, such as for teams and projects - in: path - name: namespace - required: true - schema: - type: string - - description: If 'true', then the output is pretty printed. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -40151,76 +42638,81 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/events.v1.Event' + $ref: '#/components/schemas/v1alpha1.ClusterTrustBundle' required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/events.v1.Event' + $ref: '#/components/schemas/v1alpha1.ClusterTrustBundle' application/yaml: schema: - $ref: '#/components/schemas/events.v1.Event' + $ref: '#/components/schemas/v1alpha1.ClusterTrustBundle' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/events.v1.Event' + $ref: '#/components/schemas/v1alpha1.ClusterTrustBundle' + application/cbor: + schema: + $ref: '#/components/schemas/v1alpha1.ClusterTrustBundle' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/events.v1.Event' + $ref: '#/components/schemas/v1alpha1.ClusterTrustBundle' application/yaml: schema: - $ref: '#/components/schemas/events.v1.Event' + $ref: '#/components/schemas/v1alpha1.ClusterTrustBundle' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/events.v1.Event' + $ref: '#/components/schemas/v1alpha1.ClusterTrustBundle' + application/cbor: + schema: + $ref: '#/components/schemas/v1alpha1.ClusterTrustBundle' description: Created "202": content: application/json: schema: - $ref: '#/components/schemas/events.v1.Event' + $ref: '#/components/schemas/v1alpha1.ClusterTrustBundle' application/yaml: schema: - $ref: '#/components/schemas/events.v1.Event' + $ref: '#/components/schemas/v1alpha1.ClusterTrustBundle' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/events.v1.Event' + $ref: '#/components/schemas/v1alpha1.ClusterTrustBundle' + application/cbor: + schema: + $ref: '#/components/schemas/v1alpha1.ClusterTrustBundle' description: Accepted "401": content: {} description: Unauthorized tags: - - events_v1 + - certificates_v1alpha1 x-kubernetes-action: post x-kubernetes-group-version-kind: - group: events.k8s.io - kind: Event - version: v1 + group: certificates.k8s.io + kind: ClusterTrustBundle + version: v1alpha1 x-codegen-request-body-name: body x-contentType: application/json x-accepts: application/json - /apis/events.k8s.io/v1/namespaces/{namespace}/events/{name}: + /apis/certificates.k8s.io/v1alpha1/clustertrustbundles/{name}: delete: - description: delete an Event - operationId: deleteNamespacedEvent + description: delete a ClusterTrustBundle + operationId: deleteClusterTrustBundle parameters: - - description: name of the Event + - description: name of the ClusterTrustBundle in: path name: name required: true schema: type: string - - description: object name and auth scope, such as for teams and projects - in: path - name: namespace - required: true - schema: - type: string - - description: If 'true', then the output is pretty printed. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -40242,6 +42734,20 @@ paths: name: gracePeriodSeconds schema: type: integer + - description: 'if set to true, it will trigger an unsafe deletion of the resource + in case the normal deletion flow fails with a corrupt object error. A resource + is considered corrupt if it can not be retrieved from the underlying storage + successfully because of a) its data can not be transformed e.g. decryption + failure, or b) it fails to decode into an object. NOTE: unsafe deletion + ignores finalizer constraints, skips precondition checks, and removes the + object from the storage. WARNING: This may potentially break the cluster + if the workload associated with the resource being unsafe-deleted relies + on normal deletion flow. Use only if you REALLY know what you are doing. + The default value is false, and the user must opt in to enable it' + in: query + name: ignoreStoreReadErrorWithClusterBreakingPotential + schema: + type: boolean - description: '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 @@ -40279,6 +42785,9 @@ paths: application/vnd.kubernetes.protobuf: schema: $ref: '#/components/schemas/v1.Status' + application/cbor: + schema: + $ref: '#/components/schemas/v1.Status' description: OK "202": content: @@ -40291,37 +42800,36 @@ paths: application/vnd.kubernetes.protobuf: schema: $ref: '#/components/schemas/v1.Status' + application/cbor: + schema: + $ref: '#/components/schemas/v1.Status' description: Accepted "401": content: {} description: Unauthorized tags: - - events_v1 + - certificates_v1alpha1 x-kubernetes-action: delete x-kubernetes-group-version-kind: - group: events.k8s.io - kind: Event - version: v1 + group: certificates.k8s.io + kind: ClusterTrustBundle + version: v1alpha1 x-codegen-request-body-name: body x-contentType: application/json x-accepts: application/json get: - description: read the specified Event - operationId: readNamespacedEvent + description: read the specified ClusterTrustBundle + operationId: readClusterTrustBundle parameters: - - description: name of the Event + - description: name of the ClusterTrustBundle in: path name: name required: true schema: type: string - - description: object name and auth scope, such as for teams and projects - in: path - name: namespace - required: true - schema: - type: string - - description: If 'true', then the output is pretty printed. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -40331,42 +42839,41 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/events.v1.Event' + $ref: '#/components/schemas/v1alpha1.ClusterTrustBundle' application/yaml: schema: - $ref: '#/components/schemas/events.v1.Event' + $ref: '#/components/schemas/v1alpha1.ClusterTrustBundle' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/events.v1.Event' + $ref: '#/components/schemas/v1alpha1.ClusterTrustBundle' + application/cbor: + schema: + $ref: '#/components/schemas/v1alpha1.ClusterTrustBundle' description: OK "401": content: {} description: Unauthorized tags: - - events_v1 + - certificates_v1alpha1 x-kubernetes-action: get x-kubernetes-group-version-kind: - group: events.k8s.io - kind: Event - version: v1 + group: certificates.k8s.io + kind: ClusterTrustBundle + version: v1alpha1 x-accepts: application/json patch: - description: partially update the specified Event - operationId: patchNamespacedEvent + description: partially update the specified ClusterTrustBundle + operationId: patchClusterTrustBundle parameters: - - description: name of the Event + - description: name of the ClusterTrustBundle in: path name: name required: true schema: type: string - - description: object name and auth scope, such as for teams and projects - in: path - name: namespace - required: true - schema: - type: string - - description: If 'true', then the output is pretty printed. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -40423,56 +42930,58 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/events.v1.Event' + $ref: '#/components/schemas/v1alpha1.ClusterTrustBundle' application/yaml: schema: - $ref: '#/components/schemas/events.v1.Event' + $ref: '#/components/schemas/v1alpha1.ClusterTrustBundle' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/events.v1.Event' + $ref: '#/components/schemas/v1alpha1.ClusterTrustBundle' + application/cbor: + schema: + $ref: '#/components/schemas/v1alpha1.ClusterTrustBundle' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/events.v1.Event' + $ref: '#/components/schemas/v1alpha1.ClusterTrustBundle' application/yaml: schema: - $ref: '#/components/schemas/events.v1.Event' + $ref: '#/components/schemas/v1alpha1.ClusterTrustBundle' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/events.v1.Event' + $ref: '#/components/schemas/v1alpha1.ClusterTrustBundle' + application/cbor: + schema: + $ref: '#/components/schemas/v1alpha1.ClusterTrustBundle' description: Created "401": content: {} description: Unauthorized tags: - - events_v1 + - certificates_v1alpha1 x-kubernetes-action: patch x-kubernetes-group-version-kind: - group: events.k8s.io - kind: Event - version: v1 + group: certificates.k8s.io + kind: ClusterTrustBundle + version: v1alpha1 x-codegen-request-body-name: body x-contentType: application/json x-accepts: application/json put: - description: replace the specified Event - operationId: replaceNamespacedEvent + description: replace the specified ClusterTrustBundle + operationId: replaceClusterTrustBundle parameters: - - description: name of the Event + - description: name of the ClusterTrustBundle in: path name: name required: true schema: type: string - - description: object name and auth scope, such as for teams and projects - in: path - name: namespace - required: true - schema: - type: string - - description: If 'true', then the output is pretty printed. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -40513,73 +43022,55 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/events.v1.Event' + $ref: '#/components/schemas/v1alpha1.ClusterTrustBundle' required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/events.v1.Event' + $ref: '#/components/schemas/v1alpha1.ClusterTrustBundle' application/yaml: schema: - $ref: '#/components/schemas/events.v1.Event' + $ref: '#/components/schemas/v1alpha1.ClusterTrustBundle' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/events.v1.Event' + $ref: '#/components/schemas/v1alpha1.ClusterTrustBundle' + application/cbor: + schema: + $ref: '#/components/schemas/v1alpha1.ClusterTrustBundle' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/events.v1.Event' + $ref: '#/components/schemas/v1alpha1.ClusterTrustBundle' application/yaml: schema: - $ref: '#/components/schemas/events.v1.Event' + $ref: '#/components/schemas/v1alpha1.ClusterTrustBundle' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/events.v1.Event' + $ref: '#/components/schemas/v1alpha1.ClusterTrustBundle' + application/cbor: + schema: + $ref: '#/components/schemas/v1alpha1.ClusterTrustBundle' description: Created "401": content: {} description: Unauthorized tags: - - events_v1 + - certificates_v1alpha1 x-kubernetes-action: put x-kubernetes-group-version-kind: - group: events.k8s.io - kind: Event - version: v1 + group: certificates.k8s.io + kind: ClusterTrustBundle + version: v1alpha1 x-codegen-request-body-name: body x-contentType: application/json x-accepts: application/json - /apis/events.k8s.io/v1/watch/events: {} - /apis/events.k8s.io/v1/watch/namespaces/{namespace}/events: {} - /apis/events.k8s.io/v1/watch/namespaces/{namespace}/events/{name}: {} - /apis/flowcontrol.apiserver.k8s.io/: - get: - description: get information of a group - operationId: getAPIGroup - responses: - "200": - content: - application/json: - schema: - $ref: '#/components/schemas/v1.APIGroup' - application/yaml: - schema: - $ref: '#/components/schemas/v1.APIGroup' - application/vnd.kubernetes.protobuf: - schema: - $ref: '#/components/schemas/v1.APIGroup' - description: OK - "401": - content: {} - description: Unauthorized - tags: - - flowcontrolApiserver - x-accepts: application/json - /apis/flowcontrol.apiserver.k8s.io/v1beta2/: + /apis/certificates.k8s.io/v1alpha1/watch/clustertrustbundles: {} + /apis/certificates.k8s.io/v1alpha1/watch/clustertrustbundles/{name}: {} + /apis/certificates.k8s.io/v1beta1/: get: description: get available resources operationId: getAPIResources @@ -40595,19 +43086,24 @@ paths: application/vnd.kubernetes.protobuf: schema: $ref: '#/components/schemas/v1.APIResourceList' + application/cbor: + schema: + $ref: '#/components/schemas/v1.APIResourceList' description: OK "401": content: {} description: Unauthorized tags: - - flowcontrolApiserver_v1beta2 + - certificates_v1beta1 x-accepts: application/json - /apis/flowcontrol.apiserver.k8s.io/v1beta2/flowschemas: + /apis/certificates.k8s.io/v1beta1/clustertrustbundles: delete: - description: delete collection of FlowSchema - operationId: deleteCollectionFlowSchema + description: delete collection of ClusterTrustBundle + operationId: deleteCollectionClusterTrustBundle parameters: - - description: If 'true', then the output is pretty printed. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -40643,6 +43139,20 @@ paths: name: gracePeriodSeconds schema: type: integer + - description: 'if set to true, it will trigger an unsafe deletion of the resource + in case the normal deletion flow fails with a corrupt object error. A resource + is considered corrupt if it can not be retrieved from the underlying storage + successfully because of a) its data can not be transformed e.g. decryption + failure, or b) it fails to decode into an object. NOTE: unsafe deletion + ignores finalizer constraints, skips precondition checks, and removes the + object from the storage. WARNING: This may potentially break the cluster + if the workload associated with the resource being unsafe-deleted relies + on normal deletion flow. Use only if you REALLY know what you are doing. + The default value is false, and the user must opt in to enable it' + in: query + name: ignoreStoreReadErrorWithClusterBreakingPotential + schema: + type: boolean - description: A selector to restrict the list of returned objects by their labels. Defaults to everything. in: query @@ -40734,25 +43244,30 @@ paths: application/vnd.kubernetes.protobuf: schema: $ref: '#/components/schemas/v1.Status' + application/cbor: + schema: + $ref: '#/components/schemas/v1.Status' description: OK "401": content: {} description: Unauthorized tags: - - flowcontrolApiserver_v1beta2 + - certificates_v1beta1 x-kubernetes-action: deletecollection x-kubernetes-group-version-kind: - group: flowcontrol.apiserver.k8s.io - kind: FlowSchema - version: v1beta2 + group: certificates.k8s.io + kind: ClusterTrustBundle + version: v1beta1 x-codegen-request-body-name: body x-contentType: application/json x-accepts: application/json get: - description: list or watch objects of kind FlowSchema - operationId: listFlowSchema + description: list or watch objects of kind ClusterTrustBundle + operationId: listClusterTrustBundle parameters: - - description: If 'true', then the output is pretty printed. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -40846,36 +43361,44 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1beta2.FlowSchemaList' + $ref: '#/components/schemas/v1beta1.ClusterTrustBundleList' application/yaml: schema: - $ref: '#/components/schemas/v1beta2.FlowSchemaList' + $ref: '#/components/schemas/v1beta1.ClusterTrustBundleList' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta2.FlowSchemaList' + $ref: '#/components/schemas/v1beta1.ClusterTrustBundleList' + application/cbor: + schema: + $ref: '#/components/schemas/v1beta1.ClusterTrustBundleList' application/json;stream=watch: schema: - $ref: '#/components/schemas/v1beta2.FlowSchemaList' + $ref: '#/components/schemas/v1beta1.ClusterTrustBundleList' application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: '#/components/schemas/v1beta2.FlowSchemaList' + $ref: '#/components/schemas/v1beta1.ClusterTrustBundleList' + application/cbor-seq: + schema: + $ref: '#/components/schemas/v1beta1.ClusterTrustBundleList' description: OK "401": content: {} description: Unauthorized tags: - - flowcontrolApiserver_v1beta2 + - certificates_v1beta1 x-kubernetes-action: list x-kubernetes-group-version-kind: - group: flowcontrol.apiserver.k8s.io - kind: FlowSchema - version: v1beta2 + group: certificates.k8s.io + kind: ClusterTrustBundle + version: v1beta1 x-accepts: application/json post: - description: create a FlowSchema - operationId: createFlowSchema + description: create a ClusterTrustBundle + operationId: createClusterTrustBundle parameters: - - description: If 'true', then the output is pretty printed. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -40916,70 +43439,81 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1beta2.FlowSchema' + $ref: '#/components/schemas/v1beta1.ClusterTrustBundle' required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1beta2.FlowSchema' + $ref: '#/components/schemas/v1beta1.ClusterTrustBundle' application/yaml: schema: - $ref: '#/components/schemas/v1beta2.FlowSchema' + $ref: '#/components/schemas/v1beta1.ClusterTrustBundle' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta2.FlowSchema' + $ref: '#/components/schemas/v1beta1.ClusterTrustBundle' + application/cbor: + schema: + $ref: '#/components/schemas/v1beta1.ClusterTrustBundle' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1beta2.FlowSchema' + $ref: '#/components/schemas/v1beta1.ClusterTrustBundle' application/yaml: schema: - $ref: '#/components/schemas/v1beta2.FlowSchema' + $ref: '#/components/schemas/v1beta1.ClusterTrustBundle' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta2.FlowSchema' + $ref: '#/components/schemas/v1beta1.ClusterTrustBundle' + application/cbor: + schema: + $ref: '#/components/schemas/v1beta1.ClusterTrustBundle' description: Created "202": content: application/json: schema: - $ref: '#/components/schemas/v1beta2.FlowSchema' + $ref: '#/components/schemas/v1beta1.ClusterTrustBundle' application/yaml: schema: - $ref: '#/components/schemas/v1beta2.FlowSchema' + $ref: '#/components/schemas/v1beta1.ClusterTrustBundle' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta2.FlowSchema' + $ref: '#/components/schemas/v1beta1.ClusterTrustBundle' + application/cbor: + schema: + $ref: '#/components/schemas/v1beta1.ClusterTrustBundle' description: Accepted "401": content: {} description: Unauthorized tags: - - flowcontrolApiserver_v1beta2 + - certificates_v1beta1 x-kubernetes-action: post x-kubernetes-group-version-kind: - group: flowcontrol.apiserver.k8s.io - kind: FlowSchema - version: v1beta2 + group: certificates.k8s.io + kind: ClusterTrustBundle + version: v1beta1 x-codegen-request-body-name: body x-contentType: application/json x-accepts: application/json - /apis/flowcontrol.apiserver.k8s.io/v1beta2/flowschemas/{name}: + /apis/certificates.k8s.io/v1beta1/clustertrustbundles/{name}: delete: - description: delete a FlowSchema - operationId: deleteFlowSchema + description: delete a ClusterTrustBundle + operationId: deleteClusterTrustBundle parameters: - - description: name of the FlowSchema + - description: name of the ClusterTrustBundle in: path name: name required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -41001,6 +43535,20 @@ paths: name: gracePeriodSeconds schema: type: integer + - description: 'if set to true, it will trigger an unsafe deletion of the resource + in case the normal deletion flow fails with a corrupt object error. A resource + is considered corrupt if it can not be retrieved from the underlying storage + successfully because of a) its data can not be transformed e.g. decryption + failure, or b) it fails to decode into an object. NOTE: unsafe deletion + ignores finalizer constraints, skips precondition checks, and removes the + object from the storage. WARNING: This may potentially break the cluster + if the workload associated with the resource being unsafe-deleted relies + on normal deletion flow. Use only if you REALLY know what you are doing. + The default value is false, and the user must opt in to enable it' + in: query + name: ignoreStoreReadErrorWithClusterBreakingPotential + schema: + type: boolean - description: '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 @@ -41038,6 +43586,9 @@ paths: application/vnd.kubernetes.protobuf: schema: $ref: '#/components/schemas/v1.Status' + application/cbor: + schema: + $ref: '#/components/schemas/v1.Status' description: OK "202": content: @@ -41050,31 +43601,36 @@ paths: application/vnd.kubernetes.protobuf: schema: $ref: '#/components/schemas/v1.Status' + application/cbor: + schema: + $ref: '#/components/schemas/v1.Status' description: Accepted "401": content: {} description: Unauthorized tags: - - flowcontrolApiserver_v1beta2 + - certificates_v1beta1 x-kubernetes-action: delete x-kubernetes-group-version-kind: - group: flowcontrol.apiserver.k8s.io - kind: FlowSchema - version: v1beta2 + group: certificates.k8s.io + kind: ClusterTrustBundle + version: v1beta1 x-codegen-request-body-name: body x-contentType: application/json x-accepts: application/json get: - description: read the specified FlowSchema - operationId: readFlowSchema + description: read the specified ClusterTrustBundle + operationId: readClusterTrustBundle parameters: - - description: name of the FlowSchema + - description: name of the ClusterTrustBundle in: path name: name required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -41084,36 +43640,41 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1beta2.FlowSchema' + $ref: '#/components/schemas/v1beta1.ClusterTrustBundle' application/yaml: schema: - $ref: '#/components/schemas/v1beta2.FlowSchema' + $ref: '#/components/schemas/v1beta1.ClusterTrustBundle' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta2.FlowSchema' + $ref: '#/components/schemas/v1beta1.ClusterTrustBundle' + application/cbor: + schema: + $ref: '#/components/schemas/v1beta1.ClusterTrustBundle' description: OK "401": content: {} description: Unauthorized tags: - - flowcontrolApiserver_v1beta2 + - certificates_v1beta1 x-kubernetes-action: get x-kubernetes-group-version-kind: - group: flowcontrol.apiserver.k8s.io - kind: FlowSchema - version: v1beta2 + group: certificates.k8s.io + kind: ClusterTrustBundle + version: v1beta1 x-accepts: application/json patch: - description: partially update the specified FlowSchema - operationId: patchFlowSchema + description: partially update the specified ClusterTrustBundle + operationId: patchClusterTrustBundle parameters: - - description: name of the FlowSchema + - description: name of the ClusterTrustBundle in: path name: name required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -41170,50 +43731,58 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1beta2.FlowSchema' + $ref: '#/components/schemas/v1beta1.ClusterTrustBundle' application/yaml: schema: - $ref: '#/components/schemas/v1beta2.FlowSchema' + $ref: '#/components/schemas/v1beta1.ClusterTrustBundle' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta2.FlowSchema' + $ref: '#/components/schemas/v1beta1.ClusterTrustBundle' + application/cbor: + schema: + $ref: '#/components/schemas/v1beta1.ClusterTrustBundle' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1beta2.FlowSchema' + $ref: '#/components/schemas/v1beta1.ClusterTrustBundle' application/yaml: schema: - $ref: '#/components/schemas/v1beta2.FlowSchema' + $ref: '#/components/schemas/v1beta1.ClusterTrustBundle' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta2.FlowSchema' + $ref: '#/components/schemas/v1beta1.ClusterTrustBundle' + application/cbor: + schema: + $ref: '#/components/schemas/v1beta1.ClusterTrustBundle' description: Created "401": content: {} description: Unauthorized tags: - - flowcontrolApiserver_v1beta2 + - certificates_v1beta1 x-kubernetes-action: patch x-kubernetes-group-version-kind: - group: flowcontrol.apiserver.k8s.io - kind: FlowSchema - version: v1beta2 + group: certificates.k8s.io + kind: ClusterTrustBundle + version: v1beta1 x-codegen-request-body-name: body x-contentType: application/json x-accepts: application/json put: - description: replace the specified FlowSchema - operationId: replaceFlowSchema + description: replace the specified ClusterTrustBundle + operationId: replaceClusterTrustBundle parameters: - - description: name of the FlowSchema + - description: name of the ClusterTrustBundle in: path name: name required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -41254,283 +43823,249 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1beta2.FlowSchema' + $ref: '#/components/schemas/v1beta1.ClusterTrustBundle' required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1beta2.FlowSchema' + $ref: '#/components/schemas/v1beta1.ClusterTrustBundle' application/yaml: schema: - $ref: '#/components/schemas/v1beta2.FlowSchema' + $ref: '#/components/schemas/v1beta1.ClusterTrustBundle' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta2.FlowSchema' + $ref: '#/components/schemas/v1beta1.ClusterTrustBundle' + application/cbor: + schema: + $ref: '#/components/schemas/v1beta1.ClusterTrustBundle' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1beta2.FlowSchema' + $ref: '#/components/schemas/v1beta1.ClusterTrustBundle' application/yaml: schema: - $ref: '#/components/schemas/v1beta2.FlowSchema' + $ref: '#/components/schemas/v1beta1.ClusterTrustBundle' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta2.FlowSchema' + $ref: '#/components/schemas/v1beta1.ClusterTrustBundle' + application/cbor: + schema: + $ref: '#/components/schemas/v1beta1.ClusterTrustBundle' description: Created "401": content: {} description: Unauthorized tags: - - flowcontrolApiserver_v1beta2 + - certificates_v1beta1 x-kubernetes-action: put x-kubernetes-group-version-kind: - group: flowcontrol.apiserver.k8s.io - kind: FlowSchema - version: v1beta2 + group: certificates.k8s.io + kind: ClusterTrustBundle + version: v1beta1 x-codegen-request-body-name: body x-contentType: application/json x-accepts: application/json - /apis/flowcontrol.apiserver.k8s.io/v1beta2/flowschemas/{name}/status: + /apis/certificates.k8s.io/v1beta1/watch/clustertrustbundles: {} + /apis/certificates.k8s.io/v1beta1/watch/clustertrustbundles/{name}: {} + /apis/coordination.k8s.io/: get: - description: read status of the specified FlowSchema - operationId: readFlowSchemaStatus - parameters: - - description: name of the FlowSchema - in: path - name: name - required: true - schema: - type: string - - description: If 'true', then the output is pretty printed. - in: query - name: pretty - schema: - type: string + description: get information of a group + operationId: getAPIGroup responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1beta2.FlowSchema' + $ref: '#/components/schemas/v1.APIGroup' application/yaml: schema: - $ref: '#/components/schemas/v1beta2.FlowSchema' + $ref: '#/components/schemas/v1.APIGroup' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta2.FlowSchema' + $ref: '#/components/schemas/v1.APIGroup' description: OK "401": content: {} description: Unauthorized tags: - - flowcontrolApiserver_v1beta2 - x-kubernetes-action: get - x-kubernetes-group-version-kind: - group: flowcontrol.apiserver.k8s.io - kind: FlowSchema - version: v1beta2 + - coordination x-accepts: application/json - patch: - description: partially update status of the specified FlowSchema - operationId: patchFlowSchemaStatus + /apis/coordination.k8s.io/v1/: + get: + description: get available resources + operationId: getAPIResources + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.APIResourceList' + application/yaml: + schema: + $ref: '#/components/schemas/v1.APIResourceList' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.APIResourceList' + application/cbor: + schema: + $ref: '#/components/schemas/v1.APIResourceList' + description: OK + "401": + content: {} + description: Unauthorized + tags: + - coordination_v1 + x-accepts: application/json + /apis/coordination.k8s.io/v1/leases: + get: + description: list or watch objects of kind Lease + operationId: listLeaseForAllNamespaces parameters: - - description: name of the FlowSchema - in: path - name: name - required: true - schema: - type: string - - description: If 'true', then the output is pretty printed. + - description: 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. in: query - name: pretty + name: allowWatchBookmarks schema: - type: string - - description: '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' + type: boolean + - description: |- + 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. in: query - name: dryRun + name: continue schema: type: string - - description: fieldManager is a name associated with the actor or entity that - is making these changes. The value must be less than or 128 characters long, - and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - This field is required for apply requests (application/apply-patch) but - optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). + - description: A selector to restrict the list of returned objects by their + fields. Defaults to everything. in: query - name: fieldManager + name: fieldSelector schema: type: string - - description: 'fieldValidation instructs the server on how to handle objects - in the request (POST/PUT/PATCH) containing unknown or duplicate fields. - Valid values are: - Ignore: This will ignore any unknown fields that are - silently dropped from the object, and will ignore all but the last duplicate - field that the decoder encounters. This is the default behavior prior to - v1.23. - Warn: This will send a warning via the standard warning response - header for each unknown field that is dropped from the object, and for each - duplicate field that is encountered. The request will still succeed if there - are no other errors, and will only persist the last of any duplicate fields. - This is the default in v1.23+ - Strict: This will fail the request with - a BadRequest error if any unknown fields would be dropped from the object, - or if any duplicate fields are present. The error returned from the server - will contain all unknown and duplicate fields encountered.' + - description: A selector to restrict the list of returned objects by their + labels. Defaults to everything. in: query - name: fieldValidation + name: labelSelector schema: type: string - - description: Force is going to "force" Apply requests. It means user will - re-acquire conflicting fields owned by other people. Force flag must be - unset for non-apply patch requests. + - description: |- + limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. + + The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. in: query - name: force - schema: - type: boolean - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/v1.Patch' - required: true - responses: - "200": - content: - application/json: - schema: - $ref: '#/components/schemas/v1beta2.FlowSchema' - application/yaml: - schema: - $ref: '#/components/schemas/v1beta2.FlowSchema' - application/vnd.kubernetes.protobuf: - schema: - $ref: '#/components/schemas/v1beta2.FlowSchema' - description: OK - "201": - content: - application/json: - schema: - $ref: '#/components/schemas/v1beta2.FlowSchema' - application/yaml: - schema: - $ref: '#/components/schemas/v1beta2.FlowSchema' - application/vnd.kubernetes.protobuf: - schema: - $ref: '#/components/schemas/v1beta2.FlowSchema' - description: Created - "401": - content: {} - description: Unauthorized - tags: - - flowcontrolApiserver_v1beta2 - x-kubernetes-action: patch - x-kubernetes-group-version-kind: - group: flowcontrol.apiserver.k8s.io - kind: FlowSchema - version: v1beta2 - x-codegen-request-body-name: body - x-contentType: application/json - x-accepts: application/json - put: - description: replace status of the specified FlowSchema - operationId: replaceFlowSchemaStatus - parameters: - - description: name of the FlowSchema - in: path - name: name - required: true + name: limit schema: - type: string - - description: If 'true', then the output is pretty printed. + type: integer + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: type: string - - description: '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' + - description: |- + resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset in: query - name: dryRun + name: resourceVersion schema: type: string - - description: fieldManager is a name associated with the actor or entity that - is making these changes. The value must be less than or 128 characters long, - and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + - description: |- + resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset in: query - name: fieldManager + name: resourceVersionMatch schema: type: string - - description: 'fieldValidation instructs the server on how to handle objects - in the request (POST/PUT/PATCH) containing unknown or duplicate fields. - Valid values are: - Ignore: This will ignore any unknown fields that are - silently dropped from the object, and will ignore all but the last duplicate - field that the decoder encounters. This is the default behavior prior to - v1.23. - Warn: This will send a warning via the standard warning response - header for each unknown field that is dropped from the object, and for each - duplicate field that is encountered. The request will still succeed if there - are no other errors, and will only persist the last of any duplicate fields. - This is the default in v1.23+ - Strict: This will fail the request with - a BadRequest error if any unknown fields would be dropped from the object, - or if any duplicate fields are present. The error returned from the server - will contain all unknown and duplicate fields encountered.' + - description: |- + `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic "Bookmark" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `"k8s.io/initial-events-end": "true"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. + + When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan + is interpreted as "data at least as new as the provided `resourceVersion`" + and the bookmark event is send when the state is synced + to a `resourceVersion` at least as fresh as the one provided by the ListOptions. + If `resourceVersion` is unset, this is interpreted as "consistent read" and the + bookmark event is send when the state is synced at least to the moment + when request started being processed. + - `resourceVersionMatch` set to any other value or unset + Invalid error is returned. + + Defaults to true if `resourceVersion=""` or `resourceVersion="0"` (for backward compatibility reasons) and to false otherwise. in: query - name: fieldValidation + name: sendInitialEvents schema: - type: string - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/v1beta2.FlowSchema' - required: true + type: boolean + - description: Timeout for the list/watch call. This limits the duration of + the call, regardless of any activity or inactivity. + in: query + name: timeoutSeconds + schema: + type: integer + - description: Watch for changes to the described resources and return them + as a stream of add, update, and remove notifications. Specify resourceVersion. + in: query + name: watch + schema: + type: boolean responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1beta2.FlowSchema' + $ref: '#/components/schemas/v1.LeaseList' application/yaml: schema: - $ref: '#/components/schemas/v1beta2.FlowSchema' + $ref: '#/components/schemas/v1.LeaseList' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta2.FlowSchema' - description: OK - "201": - content: - application/json: + $ref: '#/components/schemas/v1.LeaseList' + application/cbor: schema: - $ref: '#/components/schemas/v1beta2.FlowSchema' - application/yaml: + $ref: '#/components/schemas/v1.LeaseList' + application/json;stream=watch: schema: - $ref: '#/components/schemas/v1beta2.FlowSchema' - application/vnd.kubernetes.protobuf: + $ref: '#/components/schemas/v1.LeaseList' + application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: '#/components/schemas/v1beta2.FlowSchema' - description: Created + $ref: '#/components/schemas/v1.LeaseList' + application/cbor-seq: + schema: + $ref: '#/components/schemas/v1.LeaseList' + description: OK "401": content: {} description: Unauthorized tags: - - flowcontrolApiserver_v1beta2 - x-kubernetes-action: put + - coordination_v1 + x-kubernetes-action: list x-kubernetes-group-version-kind: - group: flowcontrol.apiserver.k8s.io - kind: FlowSchema - version: v1beta2 - x-codegen-request-body-name: body - x-contentType: application/json + group: coordination.k8s.io + kind: Lease + version: v1 x-accepts: application/json - /apis/flowcontrol.apiserver.k8s.io/v1beta2/prioritylevelconfigurations: + /apis/coordination.k8s.io/v1/namespaces/{namespace}/leases: delete: - description: delete collection of PriorityLevelConfiguration - operationId: deleteCollectionPriorityLevelConfiguration + description: delete collection of Lease + operationId: deleteCollectionNamespacedLease parameters: - - description: If 'true', then the output is pretty printed. + - description: object name and auth scope, such as for teams and projects + in: path + name: namespace + required: true + schema: + type: string + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -41566,6 +44101,20 @@ paths: name: gracePeriodSeconds schema: type: integer + - description: 'if set to true, it will trigger an unsafe deletion of the resource + in case the normal deletion flow fails with a corrupt object error. A resource + is considered corrupt if it can not be retrieved from the underlying storage + successfully because of a) its data can not be transformed e.g. decryption + failure, or b) it fails to decode into an object. NOTE: unsafe deletion + ignores finalizer constraints, skips precondition checks, and removes the + object from the storage. WARNING: This may potentially break the cluster + if the workload associated with the resource being unsafe-deleted relies + on normal deletion flow. Use only if you REALLY know what you are doing. + The default value is false, and the user must opt in to enable it' + in: query + name: ignoreStoreReadErrorWithClusterBreakingPotential + schema: + type: boolean - description: A selector to restrict the list of returned objects by their labels. Defaults to everything. in: query @@ -41657,25 +44206,36 @@ paths: application/vnd.kubernetes.protobuf: schema: $ref: '#/components/schemas/v1.Status' + application/cbor: + schema: + $ref: '#/components/schemas/v1.Status' description: OK "401": content: {} description: Unauthorized tags: - - flowcontrolApiserver_v1beta2 + - coordination_v1 x-kubernetes-action: deletecollection x-kubernetes-group-version-kind: - group: flowcontrol.apiserver.k8s.io - kind: PriorityLevelConfiguration - version: v1beta2 + group: coordination.k8s.io + kind: Lease + version: v1 x-codegen-request-body-name: body x-contentType: application/json x-accepts: application/json get: - description: list or watch objects of kind PriorityLevelConfiguration - operationId: listPriorityLevelConfiguration + description: list or watch objects of kind Lease + operationId: listNamespacedLease parameters: - - description: If 'true', then the output is pretty printed. + - description: object name and auth scope, such as for teams and projects + in: path + name: namespace + required: true + schema: + type: string + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -41769,36 +44329,50 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1beta2.PriorityLevelConfigurationList' + $ref: '#/components/schemas/v1.LeaseList' application/yaml: schema: - $ref: '#/components/schemas/v1beta2.PriorityLevelConfigurationList' + $ref: '#/components/schemas/v1.LeaseList' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta2.PriorityLevelConfigurationList' + $ref: '#/components/schemas/v1.LeaseList' + application/cbor: + schema: + $ref: '#/components/schemas/v1.LeaseList' application/json;stream=watch: schema: - $ref: '#/components/schemas/v1beta2.PriorityLevelConfigurationList' + $ref: '#/components/schemas/v1.LeaseList' application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: '#/components/schemas/v1beta2.PriorityLevelConfigurationList' + $ref: '#/components/schemas/v1.LeaseList' + application/cbor-seq: + schema: + $ref: '#/components/schemas/v1.LeaseList' description: OK "401": content: {} description: Unauthorized tags: - - flowcontrolApiserver_v1beta2 + - coordination_v1 x-kubernetes-action: list x-kubernetes-group-version-kind: - group: flowcontrol.apiserver.k8s.io - kind: PriorityLevelConfiguration - version: v1beta2 + group: coordination.k8s.io + kind: Lease + version: v1 x-accepts: application/json post: - description: create a PriorityLevelConfiguration - operationId: createPriorityLevelConfiguration + description: create a Lease + operationId: createNamespacedLease parameters: - - description: If 'true', then the output is pretty printed. + - description: object name and auth scope, such as for teams and projects + in: path + name: namespace + required: true + schema: + type: string + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -41839,70 +44413,87 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1beta2.PriorityLevelConfiguration' + $ref: '#/components/schemas/v1.Lease' required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1beta2.PriorityLevelConfiguration' + $ref: '#/components/schemas/v1.Lease' application/yaml: schema: - $ref: '#/components/schemas/v1beta2.PriorityLevelConfiguration' + $ref: '#/components/schemas/v1.Lease' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta2.PriorityLevelConfiguration' + $ref: '#/components/schemas/v1.Lease' + application/cbor: + schema: + $ref: '#/components/schemas/v1.Lease' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1beta2.PriorityLevelConfiguration' + $ref: '#/components/schemas/v1.Lease' application/yaml: schema: - $ref: '#/components/schemas/v1beta2.PriorityLevelConfiguration' + $ref: '#/components/schemas/v1.Lease' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta2.PriorityLevelConfiguration' + $ref: '#/components/schemas/v1.Lease' + application/cbor: + schema: + $ref: '#/components/schemas/v1.Lease' description: Created "202": content: application/json: schema: - $ref: '#/components/schemas/v1beta2.PriorityLevelConfiguration' + $ref: '#/components/schemas/v1.Lease' application/yaml: schema: - $ref: '#/components/schemas/v1beta2.PriorityLevelConfiguration' + $ref: '#/components/schemas/v1.Lease' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta2.PriorityLevelConfiguration' + $ref: '#/components/schemas/v1.Lease' + application/cbor: + schema: + $ref: '#/components/schemas/v1.Lease' description: Accepted "401": content: {} description: Unauthorized tags: - - flowcontrolApiserver_v1beta2 + - coordination_v1 x-kubernetes-action: post x-kubernetes-group-version-kind: - group: flowcontrol.apiserver.k8s.io - kind: PriorityLevelConfiguration - version: v1beta2 + group: coordination.k8s.io + kind: Lease + version: v1 x-codegen-request-body-name: body x-contentType: application/json x-accepts: application/json - /apis/flowcontrol.apiserver.k8s.io/v1beta2/prioritylevelconfigurations/{name}: + /apis/coordination.k8s.io/v1/namespaces/{namespace}/leases/{name}: delete: - description: delete a PriorityLevelConfiguration - operationId: deletePriorityLevelConfiguration + description: delete a Lease + operationId: deleteNamespacedLease parameters: - - description: name of the PriorityLevelConfiguration + - description: name of the Lease in: path name: name required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: object name and auth scope, such as for teams and projects + in: path + name: namespace + required: true + schema: + type: string + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -41924,6 +44515,20 @@ paths: name: gracePeriodSeconds schema: type: integer + - description: 'if set to true, it will trigger an unsafe deletion of the resource + in case the normal deletion flow fails with a corrupt object error. A resource + is considered corrupt if it can not be retrieved from the underlying storage + successfully because of a) its data can not be transformed e.g. decryption + failure, or b) it fails to decode into an object. NOTE: unsafe deletion + ignores finalizer constraints, skips precondition checks, and removes the + object from the storage. WARNING: This may potentially break the cluster + if the workload associated with the resource being unsafe-deleted relies + on normal deletion flow. Use only if you REALLY know what you are doing. + The default value is false, and the user must opt in to enable it' + in: query + name: ignoreStoreReadErrorWithClusterBreakingPotential + schema: + type: boolean - description: '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 @@ -41961,6 +44566,9 @@ paths: application/vnd.kubernetes.protobuf: schema: $ref: '#/components/schemas/v1.Status' + application/cbor: + schema: + $ref: '#/components/schemas/v1.Status' description: OK "202": content: @@ -41973,31 +44581,42 @@ paths: application/vnd.kubernetes.protobuf: schema: $ref: '#/components/schemas/v1.Status' + application/cbor: + schema: + $ref: '#/components/schemas/v1.Status' description: Accepted "401": content: {} description: Unauthorized tags: - - flowcontrolApiserver_v1beta2 + - coordination_v1 x-kubernetes-action: delete x-kubernetes-group-version-kind: - group: flowcontrol.apiserver.k8s.io - kind: PriorityLevelConfiguration - version: v1beta2 + group: coordination.k8s.io + kind: Lease + version: v1 x-codegen-request-body-name: body x-contentType: application/json x-accepts: application/json get: - description: read the specified PriorityLevelConfiguration - operationId: readPriorityLevelConfiguration + description: read the specified Lease + operationId: readNamespacedLease parameters: - - description: name of the PriorityLevelConfiguration + - description: name of the Lease in: path name: name required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: object name and auth scope, such as for teams and projects + in: path + name: namespace + required: true + schema: + type: string + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -42007,36 +44626,47 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1beta2.PriorityLevelConfiguration' + $ref: '#/components/schemas/v1.Lease' application/yaml: schema: - $ref: '#/components/schemas/v1beta2.PriorityLevelConfiguration' + $ref: '#/components/schemas/v1.Lease' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta2.PriorityLevelConfiguration' + $ref: '#/components/schemas/v1.Lease' + application/cbor: + schema: + $ref: '#/components/schemas/v1.Lease' description: OK "401": content: {} description: Unauthorized tags: - - flowcontrolApiserver_v1beta2 + - coordination_v1 x-kubernetes-action: get x-kubernetes-group-version-kind: - group: flowcontrol.apiserver.k8s.io - kind: PriorityLevelConfiguration - version: v1beta2 + group: coordination.k8s.io + kind: Lease + version: v1 x-accepts: application/json patch: - description: partially update the specified PriorityLevelConfiguration - operationId: patchPriorityLevelConfiguration + description: partially update the specified Lease + operationId: patchNamespacedLease parameters: - - description: name of the PriorityLevelConfiguration + - description: name of the Lease in: path name: name required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: object name and auth scope, such as for teams and projects + in: path + name: namespace + required: true + schema: + type: string + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -42093,50 +44723,64 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1beta2.PriorityLevelConfiguration' + $ref: '#/components/schemas/v1.Lease' application/yaml: schema: - $ref: '#/components/schemas/v1beta2.PriorityLevelConfiguration' + $ref: '#/components/schemas/v1.Lease' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta2.PriorityLevelConfiguration' + $ref: '#/components/schemas/v1.Lease' + application/cbor: + schema: + $ref: '#/components/schemas/v1.Lease' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1beta2.PriorityLevelConfiguration' + $ref: '#/components/schemas/v1.Lease' application/yaml: schema: - $ref: '#/components/schemas/v1beta2.PriorityLevelConfiguration' + $ref: '#/components/schemas/v1.Lease' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta2.PriorityLevelConfiguration' + $ref: '#/components/schemas/v1.Lease' + application/cbor: + schema: + $ref: '#/components/schemas/v1.Lease' description: Created "401": content: {} description: Unauthorized tags: - - flowcontrolApiserver_v1beta2 + - coordination_v1 x-kubernetes-action: patch x-kubernetes-group-version-kind: - group: flowcontrol.apiserver.k8s.io - kind: PriorityLevelConfiguration - version: v1beta2 + group: coordination.k8s.io + kind: Lease + version: v1 x-codegen-request-body-name: body x-contentType: application/json x-accepts: application/json put: - description: replace the specified PriorityLevelConfiguration - operationId: replacePriorityLevelConfiguration + description: replace the specified Lease + operationId: replaceNamespacedLease parameters: - - description: name of the PriorityLevelConfiguration + - description: name of the Lease in: path name: name required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: object name and auth scope, such as for teams and projects + in: path + name: namespace + required: true + schema: + type: string + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -42177,310 +44821,227 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1beta2.PriorityLevelConfiguration' + $ref: '#/components/schemas/v1.Lease' required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1beta2.PriorityLevelConfiguration' + $ref: '#/components/schemas/v1.Lease' application/yaml: schema: - $ref: '#/components/schemas/v1beta2.PriorityLevelConfiguration' + $ref: '#/components/schemas/v1.Lease' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta2.PriorityLevelConfiguration' + $ref: '#/components/schemas/v1.Lease' + application/cbor: + schema: + $ref: '#/components/schemas/v1.Lease' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1beta2.PriorityLevelConfiguration' + $ref: '#/components/schemas/v1.Lease' application/yaml: schema: - $ref: '#/components/schemas/v1beta2.PriorityLevelConfiguration' + $ref: '#/components/schemas/v1.Lease' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta2.PriorityLevelConfiguration' + $ref: '#/components/schemas/v1.Lease' + application/cbor: + schema: + $ref: '#/components/schemas/v1.Lease' description: Created "401": content: {} description: Unauthorized tags: - - flowcontrolApiserver_v1beta2 + - coordination_v1 x-kubernetes-action: put x-kubernetes-group-version-kind: - group: flowcontrol.apiserver.k8s.io - kind: PriorityLevelConfiguration - version: v1beta2 + group: coordination.k8s.io + kind: Lease + version: v1 x-codegen-request-body-name: body x-contentType: application/json x-accepts: application/json - /apis/flowcontrol.apiserver.k8s.io/v1beta2/prioritylevelconfigurations/{name}/status: + /apis/coordination.k8s.io/v1/watch/leases: {} + /apis/coordination.k8s.io/v1/watch/namespaces/{namespace}/leases: {} + /apis/coordination.k8s.io/v1/watch/namespaces/{namespace}/leases/{name}: {} + /apis/coordination.k8s.io/v1alpha2/: get: - description: read status of the specified PriorityLevelConfiguration - operationId: readPriorityLevelConfigurationStatus - parameters: - - description: name of the PriorityLevelConfiguration - in: path - name: name - required: true - schema: - type: string - - description: If 'true', then the output is pretty printed. - in: query - name: pretty - schema: - type: string + description: get available resources + operationId: getAPIResources responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1beta2.PriorityLevelConfiguration' + $ref: '#/components/schemas/v1.APIResourceList' application/yaml: schema: - $ref: '#/components/schemas/v1beta2.PriorityLevelConfiguration' + $ref: '#/components/schemas/v1.APIResourceList' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta2.PriorityLevelConfiguration' + $ref: '#/components/schemas/v1.APIResourceList' + application/cbor: + schema: + $ref: '#/components/schemas/v1.APIResourceList' description: OK "401": content: {} description: Unauthorized tags: - - flowcontrolApiserver_v1beta2 - x-kubernetes-action: get - x-kubernetes-group-version-kind: - group: flowcontrol.apiserver.k8s.io - kind: PriorityLevelConfiguration - version: v1beta2 + - coordination_v1alpha2 x-accepts: application/json - patch: - description: partially update status of the specified PriorityLevelConfiguration - operationId: patchPriorityLevelConfigurationStatus + /apis/coordination.k8s.io/v1alpha2/leasecandidates: + get: + description: list or watch objects of kind LeaseCandidate + operationId: listLeaseCandidateForAllNamespaces parameters: - - description: name of the PriorityLevelConfiguration - in: path - name: name - required: true - schema: - type: string - - description: If 'true', then the output is pretty printed. + - description: 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. in: query - name: pretty + name: allowWatchBookmarks schema: - type: string - - description: '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' + type: boolean + - description: |- + 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. in: query - name: dryRun + name: continue schema: type: string - - description: fieldManager is a name associated with the actor or entity that - is making these changes. The value must be less than or 128 characters long, - and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - This field is required for apply requests (application/apply-patch) but - optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). + - description: A selector to restrict the list of returned objects by their + fields. Defaults to everything. in: query - name: fieldManager + name: fieldSelector schema: type: string - - description: 'fieldValidation instructs the server on how to handle objects - in the request (POST/PUT/PATCH) containing unknown or duplicate fields. - Valid values are: - Ignore: This will ignore any unknown fields that are - silently dropped from the object, and will ignore all but the last duplicate - field that the decoder encounters. This is the default behavior prior to - v1.23. - Warn: This will send a warning via the standard warning response - header for each unknown field that is dropped from the object, and for each - duplicate field that is encountered. The request will still succeed if there - are no other errors, and will only persist the last of any duplicate fields. - This is the default in v1.23+ - Strict: This will fail the request with - a BadRequest error if any unknown fields would be dropped from the object, - or if any duplicate fields are present. The error returned from the server - will contain all unknown and duplicate fields encountered.' + - description: A selector to restrict the list of returned objects by their + labels. Defaults to everything. in: query - name: fieldValidation + name: labelSelector schema: type: string - - description: Force is going to "force" Apply requests. It means user will - re-acquire conflicting fields owned by other people. Force flag must be - unset for non-apply patch requests. + - description: |- + limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. + + The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. in: query - name: force - schema: - type: boolean - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/v1.Patch' - required: true - responses: - "200": - content: - application/json: - schema: - $ref: '#/components/schemas/v1beta2.PriorityLevelConfiguration' - application/yaml: - schema: - $ref: '#/components/schemas/v1beta2.PriorityLevelConfiguration' - application/vnd.kubernetes.protobuf: - schema: - $ref: '#/components/schemas/v1beta2.PriorityLevelConfiguration' - description: OK - "201": - content: - application/json: - schema: - $ref: '#/components/schemas/v1beta2.PriorityLevelConfiguration' - application/yaml: - schema: - $ref: '#/components/schemas/v1beta2.PriorityLevelConfiguration' - application/vnd.kubernetes.protobuf: - schema: - $ref: '#/components/schemas/v1beta2.PriorityLevelConfiguration' - description: Created - "401": - content: {} - description: Unauthorized - tags: - - flowcontrolApiserver_v1beta2 - x-kubernetes-action: patch - x-kubernetes-group-version-kind: - group: flowcontrol.apiserver.k8s.io - kind: PriorityLevelConfiguration - version: v1beta2 - x-codegen-request-body-name: body - x-contentType: application/json - x-accepts: application/json - put: - description: replace status of the specified PriorityLevelConfiguration - operationId: replacePriorityLevelConfigurationStatus - parameters: - - description: name of the PriorityLevelConfiguration - in: path - name: name - required: true + name: limit schema: - type: string - - description: If 'true', then the output is pretty printed. + type: integer + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: type: string - - description: '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' + - description: |- + resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset in: query - name: dryRun + name: resourceVersion schema: type: string - - description: fieldManager is a name associated with the actor or entity that - is making these changes. The value must be less than or 128 characters long, - and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + - description: |- + resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset in: query - name: fieldManager + name: resourceVersionMatch schema: type: string - - description: 'fieldValidation instructs the server on how to handle objects - in the request (POST/PUT/PATCH) containing unknown or duplicate fields. - Valid values are: - Ignore: This will ignore any unknown fields that are - silently dropped from the object, and will ignore all but the last duplicate - field that the decoder encounters. This is the default behavior prior to - v1.23. - Warn: This will send a warning via the standard warning response - header for each unknown field that is dropped from the object, and for each - duplicate field that is encountered. The request will still succeed if there - are no other errors, and will only persist the last of any duplicate fields. - This is the default in v1.23+ - Strict: This will fail the request with - a BadRequest error if any unknown fields would be dropped from the object, - or if any duplicate fields are present. The error returned from the server - will contain all unknown and duplicate fields encountered.' + - description: |- + `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic "Bookmark" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `"k8s.io/initial-events-end": "true"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. + + When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan + is interpreted as "data at least as new as the provided `resourceVersion`" + and the bookmark event is send when the state is synced + to a `resourceVersion` at least as fresh as the one provided by the ListOptions. + If `resourceVersion` is unset, this is interpreted as "consistent read" and the + bookmark event is send when the state is synced at least to the moment + when request started being processed. + - `resourceVersionMatch` set to any other value or unset + Invalid error is returned. + + Defaults to true if `resourceVersion=""` or `resourceVersion="0"` (for backward compatibility reasons) and to false otherwise. in: query - name: fieldValidation + name: sendInitialEvents schema: - type: string - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/v1beta2.PriorityLevelConfiguration' - required: true + type: boolean + - description: Timeout for the list/watch call. This limits the duration of + the call, regardless of any activity or inactivity. + in: query + name: timeoutSeconds + schema: + type: integer + - description: Watch for changes to the described resources and return them + as a stream of add, update, and remove notifications. Specify resourceVersion. + in: query + name: watch + schema: + type: boolean responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1beta2.PriorityLevelConfiguration' + $ref: '#/components/schemas/v1alpha2.LeaseCandidateList' application/yaml: schema: - $ref: '#/components/schemas/v1beta2.PriorityLevelConfiguration' + $ref: '#/components/schemas/v1alpha2.LeaseCandidateList' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta2.PriorityLevelConfiguration' - description: OK - "201": - content: - application/json: - schema: - $ref: '#/components/schemas/v1beta2.PriorityLevelConfiguration' - application/yaml: - schema: - $ref: '#/components/schemas/v1beta2.PriorityLevelConfiguration' - application/vnd.kubernetes.protobuf: + $ref: '#/components/schemas/v1alpha2.LeaseCandidateList' + application/cbor: schema: - $ref: '#/components/schemas/v1beta2.PriorityLevelConfiguration' - description: Created - "401": - content: {} - description: Unauthorized - tags: - - flowcontrolApiserver_v1beta2 - x-kubernetes-action: put - x-kubernetes-group-version-kind: - group: flowcontrol.apiserver.k8s.io - kind: PriorityLevelConfiguration - version: v1beta2 - x-codegen-request-body-name: body - x-contentType: application/json - x-accepts: application/json - /apis/flowcontrol.apiserver.k8s.io/v1beta2/watch/flowschemas: {} - /apis/flowcontrol.apiserver.k8s.io/v1beta2/watch/flowschemas/{name}: {} - /apis/flowcontrol.apiserver.k8s.io/v1beta2/watch/prioritylevelconfigurations: {} - /apis/flowcontrol.apiserver.k8s.io/v1beta2/watch/prioritylevelconfigurations/{name}: {} - /apis/flowcontrol.apiserver.k8s.io/v1beta3/: - get: - description: get available resources - operationId: getAPIResources - responses: - "200": - content: - application/json: + $ref: '#/components/schemas/v1alpha2.LeaseCandidateList' + application/json;stream=watch: schema: - $ref: '#/components/schemas/v1.APIResourceList' - application/yaml: + $ref: '#/components/schemas/v1alpha2.LeaseCandidateList' + application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: '#/components/schemas/v1.APIResourceList' - application/vnd.kubernetes.protobuf: + $ref: '#/components/schemas/v1alpha2.LeaseCandidateList' + application/cbor-seq: schema: - $ref: '#/components/schemas/v1.APIResourceList' + $ref: '#/components/schemas/v1alpha2.LeaseCandidateList' description: OK "401": content: {} description: Unauthorized tags: - - flowcontrolApiserver_v1beta3 + - coordination_v1alpha2 + x-kubernetes-action: list + x-kubernetes-group-version-kind: + group: coordination.k8s.io + kind: LeaseCandidate + version: v1alpha2 x-accepts: application/json - /apis/flowcontrol.apiserver.k8s.io/v1beta3/flowschemas: + /apis/coordination.k8s.io/v1alpha2/namespaces/{namespace}/leasecandidates: delete: - description: delete collection of FlowSchema - operationId: deleteCollectionFlowSchema + description: delete collection of LeaseCandidate + operationId: deleteCollectionNamespacedLeaseCandidate parameters: - - description: If 'true', then the output is pretty printed. + - description: object name and auth scope, such as for teams and projects + in: path + name: namespace + required: true + schema: + type: string + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -42516,6 +45077,20 @@ paths: name: gracePeriodSeconds schema: type: integer + - description: 'if set to true, it will trigger an unsafe deletion of the resource + in case the normal deletion flow fails with a corrupt object error. A resource + is considered corrupt if it can not be retrieved from the underlying storage + successfully because of a) its data can not be transformed e.g. decryption + failure, or b) it fails to decode into an object. NOTE: unsafe deletion + ignores finalizer constraints, skips precondition checks, and removes the + object from the storage. WARNING: This may potentially break the cluster + if the workload associated with the resource being unsafe-deleted relies + on normal deletion flow. Use only if you REALLY know what you are doing. + The default value is false, and the user must opt in to enable it' + in: query + name: ignoreStoreReadErrorWithClusterBreakingPotential + schema: + type: boolean - description: A selector to restrict the list of returned objects by their labels. Defaults to everything. in: query @@ -42607,25 +45182,36 @@ paths: application/vnd.kubernetes.protobuf: schema: $ref: '#/components/schemas/v1.Status' + application/cbor: + schema: + $ref: '#/components/schemas/v1.Status' description: OK "401": content: {} description: Unauthorized tags: - - flowcontrolApiserver_v1beta3 + - coordination_v1alpha2 x-kubernetes-action: deletecollection x-kubernetes-group-version-kind: - group: flowcontrol.apiserver.k8s.io - kind: FlowSchema - version: v1beta3 + group: coordination.k8s.io + kind: LeaseCandidate + version: v1alpha2 x-codegen-request-body-name: body x-contentType: application/json x-accepts: application/json get: - description: list or watch objects of kind FlowSchema - operationId: listFlowSchema + description: list or watch objects of kind LeaseCandidate + operationId: listNamespacedLeaseCandidate parameters: - - description: If 'true', then the output is pretty printed. + - description: object name and auth scope, such as for teams and projects + in: path + name: namespace + required: true + schema: + type: string + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -42719,36 +45305,50 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1beta3.FlowSchemaList' + $ref: '#/components/schemas/v1alpha2.LeaseCandidateList' application/yaml: schema: - $ref: '#/components/schemas/v1beta3.FlowSchemaList' + $ref: '#/components/schemas/v1alpha2.LeaseCandidateList' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta3.FlowSchemaList' + $ref: '#/components/schemas/v1alpha2.LeaseCandidateList' + application/cbor: + schema: + $ref: '#/components/schemas/v1alpha2.LeaseCandidateList' application/json;stream=watch: schema: - $ref: '#/components/schemas/v1beta3.FlowSchemaList' + $ref: '#/components/schemas/v1alpha2.LeaseCandidateList' application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: '#/components/schemas/v1beta3.FlowSchemaList' + $ref: '#/components/schemas/v1alpha2.LeaseCandidateList' + application/cbor-seq: + schema: + $ref: '#/components/schemas/v1alpha2.LeaseCandidateList' description: OK "401": content: {} description: Unauthorized tags: - - flowcontrolApiserver_v1beta3 + - coordination_v1alpha2 x-kubernetes-action: list x-kubernetes-group-version-kind: - group: flowcontrol.apiserver.k8s.io - kind: FlowSchema - version: v1beta3 + group: coordination.k8s.io + kind: LeaseCandidate + version: v1alpha2 x-accepts: application/json post: - description: create a FlowSchema - operationId: createFlowSchema + description: create a LeaseCandidate + operationId: createNamespacedLeaseCandidate parameters: - - description: If 'true', then the output is pretty printed. + - description: object name and auth scope, such as for teams and projects + in: path + name: namespace + required: true + schema: + type: string + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -42789,70 +45389,87 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1beta3.FlowSchema' + $ref: '#/components/schemas/v1alpha2.LeaseCandidate' required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1beta3.FlowSchema' + $ref: '#/components/schemas/v1alpha2.LeaseCandidate' application/yaml: schema: - $ref: '#/components/schemas/v1beta3.FlowSchema' + $ref: '#/components/schemas/v1alpha2.LeaseCandidate' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta3.FlowSchema' + $ref: '#/components/schemas/v1alpha2.LeaseCandidate' + application/cbor: + schema: + $ref: '#/components/schemas/v1alpha2.LeaseCandidate' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1beta3.FlowSchema' + $ref: '#/components/schemas/v1alpha2.LeaseCandidate' application/yaml: schema: - $ref: '#/components/schemas/v1beta3.FlowSchema' + $ref: '#/components/schemas/v1alpha2.LeaseCandidate' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta3.FlowSchema' + $ref: '#/components/schemas/v1alpha2.LeaseCandidate' + application/cbor: + schema: + $ref: '#/components/schemas/v1alpha2.LeaseCandidate' description: Created "202": content: application/json: schema: - $ref: '#/components/schemas/v1beta3.FlowSchema' + $ref: '#/components/schemas/v1alpha2.LeaseCandidate' application/yaml: schema: - $ref: '#/components/schemas/v1beta3.FlowSchema' + $ref: '#/components/schemas/v1alpha2.LeaseCandidate' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta3.FlowSchema' + $ref: '#/components/schemas/v1alpha2.LeaseCandidate' + application/cbor: + schema: + $ref: '#/components/schemas/v1alpha2.LeaseCandidate' description: Accepted "401": content: {} description: Unauthorized tags: - - flowcontrolApiserver_v1beta3 + - coordination_v1alpha2 x-kubernetes-action: post x-kubernetes-group-version-kind: - group: flowcontrol.apiserver.k8s.io - kind: FlowSchema - version: v1beta3 + group: coordination.k8s.io + kind: LeaseCandidate + version: v1alpha2 x-codegen-request-body-name: body x-contentType: application/json x-accepts: application/json - /apis/flowcontrol.apiserver.k8s.io/v1beta3/flowschemas/{name}: + /apis/coordination.k8s.io/v1alpha2/namespaces/{namespace}/leasecandidates/{name}: delete: - description: delete a FlowSchema - operationId: deleteFlowSchema + description: delete a LeaseCandidate + operationId: deleteNamespacedLeaseCandidate parameters: - - description: name of the FlowSchema + - description: name of the LeaseCandidate in: path name: name required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: object name and auth scope, such as for teams and projects + in: path + name: namespace + required: true + schema: + type: string + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -42874,6 +45491,20 @@ paths: name: gracePeriodSeconds schema: type: integer + - description: 'if set to true, it will trigger an unsafe deletion of the resource + in case the normal deletion flow fails with a corrupt object error. A resource + is considered corrupt if it can not be retrieved from the underlying storage + successfully because of a) its data can not be transformed e.g. decryption + failure, or b) it fails to decode into an object. NOTE: unsafe deletion + ignores finalizer constraints, skips precondition checks, and removes the + object from the storage. WARNING: This may potentially break the cluster + if the workload associated with the resource being unsafe-deleted relies + on normal deletion flow. Use only if you REALLY know what you are doing. + The default value is false, and the user must opt in to enable it' + in: query + name: ignoreStoreReadErrorWithClusterBreakingPotential + schema: + type: boolean - description: '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 @@ -42911,6 +45542,9 @@ paths: application/vnd.kubernetes.protobuf: schema: $ref: '#/components/schemas/v1.Status' + application/cbor: + schema: + $ref: '#/components/schemas/v1.Status' description: OK "202": content: @@ -42923,31 +45557,42 @@ paths: application/vnd.kubernetes.protobuf: schema: $ref: '#/components/schemas/v1.Status' + application/cbor: + schema: + $ref: '#/components/schemas/v1.Status' description: Accepted "401": content: {} description: Unauthorized tags: - - flowcontrolApiserver_v1beta3 + - coordination_v1alpha2 x-kubernetes-action: delete x-kubernetes-group-version-kind: - group: flowcontrol.apiserver.k8s.io - kind: FlowSchema - version: v1beta3 + group: coordination.k8s.io + kind: LeaseCandidate + version: v1alpha2 x-codegen-request-body-name: body x-contentType: application/json x-accepts: application/json get: - description: read the specified FlowSchema - operationId: readFlowSchema + description: read the specified LeaseCandidate + operationId: readNamespacedLeaseCandidate parameters: - - description: name of the FlowSchema + - description: name of the LeaseCandidate in: path name: name required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: object name and auth scope, such as for teams and projects + in: path + name: namespace + required: true + schema: + type: string + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -42957,36 +45602,47 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1beta3.FlowSchema' + $ref: '#/components/schemas/v1alpha2.LeaseCandidate' application/yaml: schema: - $ref: '#/components/schemas/v1beta3.FlowSchema' + $ref: '#/components/schemas/v1alpha2.LeaseCandidate' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta3.FlowSchema' + $ref: '#/components/schemas/v1alpha2.LeaseCandidate' + application/cbor: + schema: + $ref: '#/components/schemas/v1alpha2.LeaseCandidate' description: OK "401": content: {} description: Unauthorized tags: - - flowcontrolApiserver_v1beta3 + - coordination_v1alpha2 x-kubernetes-action: get x-kubernetes-group-version-kind: - group: flowcontrol.apiserver.k8s.io - kind: FlowSchema - version: v1beta3 + group: coordination.k8s.io + kind: LeaseCandidate + version: v1alpha2 x-accepts: application/json patch: - description: partially update the specified FlowSchema - operationId: patchFlowSchema + description: partially update the specified LeaseCandidate + operationId: patchNamespacedLeaseCandidate parameters: - - description: name of the FlowSchema + - description: name of the LeaseCandidate in: path name: name required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: object name and auth scope, such as for teams and projects + in: path + name: namespace + required: true + schema: + type: string + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -43043,50 +45699,64 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1beta3.FlowSchema' + $ref: '#/components/schemas/v1alpha2.LeaseCandidate' application/yaml: schema: - $ref: '#/components/schemas/v1beta3.FlowSchema' + $ref: '#/components/schemas/v1alpha2.LeaseCandidate' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta3.FlowSchema' + $ref: '#/components/schemas/v1alpha2.LeaseCandidate' + application/cbor: + schema: + $ref: '#/components/schemas/v1alpha2.LeaseCandidate' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1beta3.FlowSchema' + $ref: '#/components/schemas/v1alpha2.LeaseCandidate' application/yaml: schema: - $ref: '#/components/schemas/v1beta3.FlowSchema' + $ref: '#/components/schemas/v1alpha2.LeaseCandidate' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta3.FlowSchema' + $ref: '#/components/schemas/v1alpha2.LeaseCandidate' + application/cbor: + schema: + $ref: '#/components/schemas/v1alpha2.LeaseCandidate' description: Created "401": content: {} description: Unauthorized tags: - - flowcontrolApiserver_v1beta3 + - coordination_v1alpha2 x-kubernetes-action: patch x-kubernetes-group-version-kind: - group: flowcontrol.apiserver.k8s.io - kind: FlowSchema - version: v1beta3 + group: coordination.k8s.io + kind: LeaseCandidate + version: v1alpha2 x-codegen-request-body-name: body x-contentType: application/json x-accepts: application/json put: - description: replace the specified FlowSchema - operationId: replaceFlowSchema + description: replace the specified LeaseCandidate + operationId: replaceNamespacedLeaseCandidate parameters: - - description: name of the FlowSchema + - description: name of the LeaseCandidate in: path name: name required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: object name and auth scope, such as for teams and projects + in: path + name: namespace + required: true + schema: + type: string + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -43127,283 +45797,227 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1beta3.FlowSchema' + $ref: '#/components/schemas/v1alpha2.LeaseCandidate' required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1beta3.FlowSchema' + $ref: '#/components/schemas/v1alpha2.LeaseCandidate' application/yaml: schema: - $ref: '#/components/schemas/v1beta3.FlowSchema' + $ref: '#/components/schemas/v1alpha2.LeaseCandidate' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta3.FlowSchema' + $ref: '#/components/schemas/v1alpha2.LeaseCandidate' + application/cbor: + schema: + $ref: '#/components/schemas/v1alpha2.LeaseCandidate' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1beta3.FlowSchema' + $ref: '#/components/schemas/v1alpha2.LeaseCandidate' application/yaml: schema: - $ref: '#/components/schemas/v1beta3.FlowSchema' + $ref: '#/components/schemas/v1alpha2.LeaseCandidate' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta3.FlowSchema' + $ref: '#/components/schemas/v1alpha2.LeaseCandidate' + application/cbor: + schema: + $ref: '#/components/schemas/v1alpha2.LeaseCandidate' description: Created "401": content: {} description: Unauthorized tags: - - flowcontrolApiserver_v1beta3 + - coordination_v1alpha2 x-kubernetes-action: put x-kubernetes-group-version-kind: - group: flowcontrol.apiserver.k8s.io - kind: FlowSchema - version: v1beta3 + group: coordination.k8s.io + kind: LeaseCandidate + version: v1alpha2 x-codegen-request-body-name: body x-contentType: application/json x-accepts: application/json - /apis/flowcontrol.apiserver.k8s.io/v1beta3/flowschemas/{name}/status: + /apis/coordination.k8s.io/v1alpha2/watch/leasecandidates: {} + /apis/coordination.k8s.io/v1alpha2/watch/namespaces/{namespace}/leasecandidates: {} + /apis/coordination.k8s.io/v1alpha2/watch/namespaces/{namespace}/leasecandidates/{name}: {} + /apis/coordination.k8s.io/v1beta1/: get: - description: read status of the specified FlowSchema - operationId: readFlowSchemaStatus - parameters: - - description: name of the FlowSchema - in: path - name: name - required: true - schema: - type: string - - description: If 'true', then the output is pretty printed. - in: query - name: pretty - schema: - type: string + description: get available resources + operationId: getAPIResources responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1beta3.FlowSchema' + $ref: '#/components/schemas/v1.APIResourceList' application/yaml: schema: - $ref: '#/components/schemas/v1beta3.FlowSchema' + $ref: '#/components/schemas/v1.APIResourceList' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta3.FlowSchema' + $ref: '#/components/schemas/v1.APIResourceList' + application/cbor: + schema: + $ref: '#/components/schemas/v1.APIResourceList' description: OK "401": content: {} description: Unauthorized tags: - - flowcontrolApiserver_v1beta3 - x-kubernetes-action: get - x-kubernetes-group-version-kind: - group: flowcontrol.apiserver.k8s.io - kind: FlowSchema - version: v1beta3 + - coordination_v1beta1 x-accepts: application/json - patch: - description: partially update status of the specified FlowSchema - operationId: patchFlowSchemaStatus + /apis/coordination.k8s.io/v1beta1/leasecandidates: + get: + description: list or watch objects of kind LeaseCandidate + operationId: listLeaseCandidateForAllNamespaces parameters: - - description: name of the FlowSchema - in: path - name: name - required: true - schema: - type: string - - description: If 'true', then the output is pretty printed. + - description: 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. in: query - name: pretty + name: allowWatchBookmarks schema: - type: string - - description: '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' + type: boolean + - description: |- + 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. in: query - name: dryRun + name: continue schema: type: string - - description: fieldManager is a name associated with the actor or entity that - is making these changes. The value must be less than or 128 characters long, - and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - This field is required for apply requests (application/apply-patch) but - optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). + - description: A selector to restrict the list of returned objects by their + fields. Defaults to everything. in: query - name: fieldManager + name: fieldSelector schema: type: string - - description: 'fieldValidation instructs the server on how to handle objects - in the request (POST/PUT/PATCH) containing unknown or duplicate fields. - Valid values are: - Ignore: This will ignore any unknown fields that are - silently dropped from the object, and will ignore all but the last duplicate - field that the decoder encounters. This is the default behavior prior to - v1.23. - Warn: This will send a warning via the standard warning response - header for each unknown field that is dropped from the object, and for each - duplicate field that is encountered. The request will still succeed if there - are no other errors, and will only persist the last of any duplicate fields. - This is the default in v1.23+ - Strict: This will fail the request with - a BadRequest error if any unknown fields would be dropped from the object, - or if any duplicate fields are present. The error returned from the server - will contain all unknown and duplicate fields encountered.' + - description: A selector to restrict the list of returned objects by their + labels. Defaults to everything. in: query - name: fieldValidation + name: labelSelector schema: type: string - - description: Force is going to "force" Apply requests. It means user will - re-acquire conflicting fields owned by other people. Force flag must be - unset for non-apply patch requests. + - description: |- + limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. + + The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. in: query - name: force - schema: - type: boolean - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/v1.Patch' - required: true - responses: - "200": - content: - application/json: - schema: - $ref: '#/components/schemas/v1beta3.FlowSchema' - application/yaml: - schema: - $ref: '#/components/schemas/v1beta3.FlowSchema' - application/vnd.kubernetes.protobuf: - schema: - $ref: '#/components/schemas/v1beta3.FlowSchema' - description: OK - "201": - content: - application/json: - schema: - $ref: '#/components/schemas/v1beta3.FlowSchema' - application/yaml: - schema: - $ref: '#/components/schemas/v1beta3.FlowSchema' - application/vnd.kubernetes.protobuf: - schema: - $ref: '#/components/schemas/v1beta3.FlowSchema' - description: Created - "401": - content: {} - description: Unauthorized - tags: - - flowcontrolApiserver_v1beta3 - x-kubernetes-action: patch - x-kubernetes-group-version-kind: - group: flowcontrol.apiserver.k8s.io - kind: FlowSchema - version: v1beta3 - x-codegen-request-body-name: body - x-contentType: application/json - x-accepts: application/json - put: - description: replace status of the specified FlowSchema - operationId: replaceFlowSchemaStatus - parameters: - - description: name of the FlowSchema - in: path - name: name - required: true + name: limit schema: - type: string - - description: If 'true', then the output is pretty printed. + type: integer + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: type: string - - description: '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' + - description: |- + resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset in: query - name: dryRun + name: resourceVersion schema: type: string - - description: fieldManager is a name associated with the actor or entity that - is making these changes. The value must be less than or 128 characters long, - and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + - description: |- + resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset in: query - name: fieldManager + name: resourceVersionMatch schema: type: string - - description: 'fieldValidation instructs the server on how to handle objects - in the request (POST/PUT/PATCH) containing unknown or duplicate fields. - Valid values are: - Ignore: This will ignore any unknown fields that are - silently dropped from the object, and will ignore all but the last duplicate - field that the decoder encounters. This is the default behavior prior to - v1.23. - Warn: This will send a warning via the standard warning response - header for each unknown field that is dropped from the object, and for each - duplicate field that is encountered. The request will still succeed if there - are no other errors, and will only persist the last of any duplicate fields. - This is the default in v1.23+ - Strict: This will fail the request with - a BadRequest error if any unknown fields would be dropped from the object, - or if any duplicate fields are present. The error returned from the server - will contain all unknown and duplicate fields encountered.' + - description: |- + `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic "Bookmark" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `"k8s.io/initial-events-end": "true"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. + + When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan + is interpreted as "data at least as new as the provided `resourceVersion`" + and the bookmark event is send when the state is synced + to a `resourceVersion` at least as fresh as the one provided by the ListOptions. + If `resourceVersion` is unset, this is interpreted as "consistent read" and the + bookmark event is send when the state is synced at least to the moment + when request started being processed. + - `resourceVersionMatch` set to any other value or unset + Invalid error is returned. + + Defaults to true if `resourceVersion=""` or `resourceVersion="0"` (for backward compatibility reasons) and to false otherwise. in: query - name: fieldValidation + name: sendInitialEvents schema: - type: string - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/v1beta3.FlowSchema' - required: true + type: boolean + - description: Timeout for the list/watch call. This limits the duration of + the call, regardless of any activity or inactivity. + in: query + name: timeoutSeconds + schema: + type: integer + - description: Watch for changes to the described resources and return them + as a stream of add, update, and remove notifications. Specify resourceVersion. + in: query + name: watch + schema: + type: boolean responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1beta3.FlowSchema' + $ref: '#/components/schemas/v1beta1.LeaseCandidateList' application/yaml: schema: - $ref: '#/components/schemas/v1beta3.FlowSchema' + $ref: '#/components/schemas/v1beta1.LeaseCandidateList' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta3.FlowSchema' - description: OK - "201": - content: - application/json: + $ref: '#/components/schemas/v1beta1.LeaseCandidateList' + application/cbor: schema: - $ref: '#/components/schemas/v1beta3.FlowSchema' - application/yaml: + $ref: '#/components/schemas/v1beta1.LeaseCandidateList' + application/json;stream=watch: schema: - $ref: '#/components/schemas/v1beta3.FlowSchema' - application/vnd.kubernetes.protobuf: + $ref: '#/components/schemas/v1beta1.LeaseCandidateList' + application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: '#/components/schemas/v1beta3.FlowSchema' - description: Created + $ref: '#/components/schemas/v1beta1.LeaseCandidateList' + application/cbor-seq: + schema: + $ref: '#/components/schemas/v1beta1.LeaseCandidateList' + description: OK "401": content: {} description: Unauthorized tags: - - flowcontrolApiserver_v1beta3 - x-kubernetes-action: put + - coordination_v1beta1 + x-kubernetes-action: list x-kubernetes-group-version-kind: - group: flowcontrol.apiserver.k8s.io - kind: FlowSchema - version: v1beta3 - x-codegen-request-body-name: body - x-contentType: application/json + group: coordination.k8s.io + kind: LeaseCandidate + version: v1beta1 x-accepts: application/json - /apis/flowcontrol.apiserver.k8s.io/v1beta3/prioritylevelconfigurations: + /apis/coordination.k8s.io/v1beta1/namespaces/{namespace}/leasecandidates: delete: - description: delete collection of PriorityLevelConfiguration - operationId: deleteCollectionPriorityLevelConfiguration + description: delete collection of LeaseCandidate + operationId: deleteCollectionNamespacedLeaseCandidate parameters: - - description: If 'true', then the output is pretty printed. + - description: object name and auth scope, such as for teams and projects + in: path + name: namespace + required: true + schema: + type: string + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -43439,6 +46053,20 @@ paths: name: gracePeriodSeconds schema: type: integer + - description: 'if set to true, it will trigger an unsafe deletion of the resource + in case the normal deletion flow fails with a corrupt object error. A resource + is considered corrupt if it can not be retrieved from the underlying storage + successfully because of a) its data can not be transformed e.g. decryption + failure, or b) it fails to decode into an object. NOTE: unsafe deletion + ignores finalizer constraints, skips precondition checks, and removes the + object from the storage. WARNING: This may potentially break the cluster + if the workload associated with the resource being unsafe-deleted relies + on normal deletion flow. Use only if you REALLY know what you are doing. + The default value is false, and the user must opt in to enable it' + in: query + name: ignoreStoreReadErrorWithClusterBreakingPotential + schema: + type: boolean - description: A selector to restrict the list of returned objects by their labels. Defaults to everything. in: query @@ -43530,25 +46158,36 @@ paths: application/vnd.kubernetes.protobuf: schema: $ref: '#/components/schemas/v1.Status' + application/cbor: + schema: + $ref: '#/components/schemas/v1.Status' description: OK "401": content: {} description: Unauthorized tags: - - flowcontrolApiserver_v1beta3 + - coordination_v1beta1 x-kubernetes-action: deletecollection x-kubernetes-group-version-kind: - group: flowcontrol.apiserver.k8s.io - kind: PriorityLevelConfiguration - version: v1beta3 + group: coordination.k8s.io + kind: LeaseCandidate + version: v1beta1 x-codegen-request-body-name: body x-contentType: application/json x-accepts: application/json get: - description: list or watch objects of kind PriorityLevelConfiguration - operationId: listPriorityLevelConfiguration + description: list or watch objects of kind LeaseCandidate + operationId: listNamespacedLeaseCandidate parameters: - - description: If 'true', then the output is pretty printed. + - description: object name and auth scope, such as for teams and projects + in: path + name: namespace + required: true + schema: + type: string + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -43642,36 +46281,50 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1beta3.PriorityLevelConfigurationList' + $ref: '#/components/schemas/v1beta1.LeaseCandidateList' application/yaml: schema: - $ref: '#/components/schemas/v1beta3.PriorityLevelConfigurationList' + $ref: '#/components/schemas/v1beta1.LeaseCandidateList' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta3.PriorityLevelConfigurationList' + $ref: '#/components/schemas/v1beta1.LeaseCandidateList' + application/cbor: + schema: + $ref: '#/components/schemas/v1beta1.LeaseCandidateList' application/json;stream=watch: schema: - $ref: '#/components/schemas/v1beta3.PriorityLevelConfigurationList' + $ref: '#/components/schemas/v1beta1.LeaseCandidateList' application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: '#/components/schemas/v1beta3.PriorityLevelConfigurationList' + $ref: '#/components/schemas/v1beta1.LeaseCandidateList' + application/cbor-seq: + schema: + $ref: '#/components/schemas/v1beta1.LeaseCandidateList' description: OK "401": content: {} description: Unauthorized tags: - - flowcontrolApiserver_v1beta3 + - coordination_v1beta1 x-kubernetes-action: list x-kubernetes-group-version-kind: - group: flowcontrol.apiserver.k8s.io - kind: PriorityLevelConfiguration - version: v1beta3 + group: coordination.k8s.io + kind: LeaseCandidate + version: v1beta1 x-accepts: application/json post: - description: create a PriorityLevelConfiguration - operationId: createPriorityLevelConfiguration + description: create a LeaseCandidate + operationId: createNamespacedLeaseCandidate parameters: - - description: If 'true', then the output is pretty printed. + - description: object name and auth scope, such as for teams and projects + in: path + name: namespace + required: true + schema: + type: string + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -43712,70 +46365,87 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1beta3.PriorityLevelConfiguration' + $ref: '#/components/schemas/v1beta1.LeaseCandidate' required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1beta3.PriorityLevelConfiguration' + $ref: '#/components/schemas/v1beta1.LeaseCandidate' application/yaml: schema: - $ref: '#/components/schemas/v1beta3.PriorityLevelConfiguration' + $ref: '#/components/schemas/v1beta1.LeaseCandidate' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta3.PriorityLevelConfiguration' + $ref: '#/components/schemas/v1beta1.LeaseCandidate' + application/cbor: + schema: + $ref: '#/components/schemas/v1beta1.LeaseCandidate' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1beta3.PriorityLevelConfiguration' + $ref: '#/components/schemas/v1beta1.LeaseCandidate' application/yaml: schema: - $ref: '#/components/schemas/v1beta3.PriorityLevelConfiguration' + $ref: '#/components/schemas/v1beta1.LeaseCandidate' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta3.PriorityLevelConfiguration' + $ref: '#/components/schemas/v1beta1.LeaseCandidate' + application/cbor: + schema: + $ref: '#/components/schemas/v1beta1.LeaseCandidate' description: Created "202": content: application/json: schema: - $ref: '#/components/schemas/v1beta3.PriorityLevelConfiguration' + $ref: '#/components/schemas/v1beta1.LeaseCandidate' application/yaml: schema: - $ref: '#/components/schemas/v1beta3.PriorityLevelConfiguration' + $ref: '#/components/schemas/v1beta1.LeaseCandidate' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta3.PriorityLevelConfiguration' + $ref: '#/components/schemas/v1beta1.LeaseCandidate' + application/cbor: + schema: + $ref: '#/components/schemas/v1beta1.LeaseCandidate' description: Accepted "401": content: {} description: Unauthorized tags: - - flowcontrolApiserver_v1beta3 + - coordination_v1beta1 x-kubernetes-action: post x-kubernetes-group-version-kind: - group: flowcontrol.apiserver.k8s.io - kind: PriorityLevelConfiguration - version: v1beta3 + group: coordination.k8s.io + kind: LeaseCandidate + version: v1beta1 x-codegen-request-body-name: body x-contentType: application/json x-accepts: application/json - /apis/flowcontrol.apiserver.k8s.io/v1beta3/prioritylevelconfigurations/{name}: + /apis/coordination.k8s.io/v1beta1/namespaces/{namespace}/leasecandidates/{name}: delete: - description: delete a PriorityLevelConfiguration - operationId: deletePriorityLevelConfiguration + description: delete a LeaseCandidate + operationId: deleteNamespacedLeaseCandidate parameters: - - description: name of the PriorityLevelConfiguration + - description: name of the LeaseCandidate in: path name: name required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: object name and auth scope, such as for teams and projects + in: path + name: namespace + required: true + schema: + type: string + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -43797,6 +46467,20 @@ paths: name: gracePeriodSeconds schema: type: integer + - description: 'if set to true, it will trigger an unsafe deletion of the resource + in case the normal deletion flow fails with a corrupt object error. A resource + is considered corrupt if it can not be retrieved from the underlying storage + successfully because of a) its data can not be transformed e.g. decryption + failure, or b) it fails to decode into an object. NOTE: unsafe deletion + ignores finalizer constraints, skips precondition checks, and removes the + object from the storage. WARNING: This may potentially break the cluster + if the workload associated with the resource being unsafe-deleted relies + on normal deletion flow. Use only if you REALLY know what you are doing. + The default value is false, and the user must opt in to enable it' + in: query + name: ignoreStoreReadErrorWithClusterBreakingPotential + schema: + type: boolean - description: '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 @@ -43834,6 +46518,9 @@ paths: application/vnd.kubernetes.protobuf: schema: $ref: '#/components/schemas/v1.Status' + application/cbor: + schema: + $ref: '#/components/schemas/v1.Status' description: OK "202": content: @@ -43846,31 +46533,42 @@ paths: application/vnd.kubernetes.protobuf: schema: $ref: '#/components/schemas/v1.Status' + application/cbor: + schema: + $ref: '#/components/schemas/v1.Status' description: Accepted "401": content: {} description: Unauthorized tags: - - flowcontrolApiserver_v1beta3 + - coordination_v1beta1 x-kubernetes-action: delete x-kubernetes-group-version-kind: - group: flowcontrol.apiserver.k8s.io - kind: PriorityLevelConfiguration - version: v1beta3 + group: coordination.k8s.io + kind: LeaseCandidate + version: v1beta1 x-codegen-request-body-name: body x-contentType: application/json x-accepts: application/json get: - description: read the specified PriorityLevelConfiguration - operationId: readPriorityLevelConfiguration + description: read the specified LeaseCandidate + operationId: readNamespacedLeaseCandidate parameters: - - description: name of the PriorityLevelConfiguration + - description: name of the LeaseCandidate in: path name: name required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: object name and auth scope, such as for teams and projects + in: path + name: namespace + required: true + schema: + type: string + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -43880,36 +46578,47 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1beta3.PriorityLevelConfiguration' + $ref: '#/components/schemas/v1beta1.LeaseCandidate' application/yaml: schema: - $ref: '#/components/schemas/v1beta3.PriorityLevelConfiguration' + $ref: '#/components/schemas/v1beta1.LeaseCandidate' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta3.PriorityLevelConfiguration' + $ref: '#/components/schemas/v1beta1.LeaseCandidate' + application/cbor: + schema: + $ref: '#/components/schemas/v1beta1.LeaseCandidate' description: OK "401": content: {} description: Unauthorized tags: - - flowcontrolApiserver_v1beta3 + - coordination_v1beta1 x-kubernetes-action: get x-kubernetes-group-version-kind: - group: flowcontrol.apiserver.k8s.io - kind: PriorityLevelConfiguration - version: v1beta3 + group: coordination.k8s.io + kind: LeaseCandidate + version: v1beta1 x-accepts: application/json patch: - description: partially update the specified PriorityLevelConfiguration - operationId: patchPriorityLevelConfiguration + description: partially update the specified LeaseCandidate + operationId: patchNamespacedLeaseCandidate parameters: - - description: name of the PriorityLevelConfiguration + - description: name of the LeaseCandidate in: path name: name required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: object name and auth scope, such as for teams and projects + in: path + name: namespace + required: true + schema: + type: string + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -43966,50 +46675,64 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1beta3.PriorityLevelConfiguration' + $ref: '#/components/schemas/v1beta1.LeaseCandidate' application/yaml: schema: - $ref: '#/components/schemas/v1beta3.PriorityLevelConfiguration' + $ref: '#/components/schemas/v1beta1.LeaseCandidate' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta3.PriorityLevelConfiguration' + $ref: '#/components/schemas/v1beta1.LeaseCandidate' + application/cbor: + schema: + $ref: '#/components/schemas/v1beta1.LeaseCandidate' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1beta3.PriorityLevelConfiguration' + $ref: '#/components/schemas/v1beta1.LeaseCandidate' application/yaml: schema: - $ref: '#/components/schemas/v1beta3.PriorityLevelConfiguration' + $ref: '#/components/schemas/v1beta1.LeaseCandidate' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta3.PriorityLevelConfiguration' + $ref: '#/components/schemas/v1beta1.LeaseCandidate' + application/cbor: + schema: + $ref: '#/components/schemas/v1beta1.LeaseCandidate' description: Created "401": content: {} description: Unauthorized tags: - - flowcontrolApiserver_v1beta3 + - coordination_v1beta1 x-kubernetes-action: patch x-kubernetes-group-version-kind: - group: flowcontrol.apiserver.k8s.io - kind: PriorityLevelConfiguration - version: v1beta3 + group: coordination.k8s.io + kind: LeaseCandidate + version: v1beta1 x-codegen-request-body-name: body x-contentType: application/json x-accepts: application/json put: - description: replace the specified PriorityLevelConfiguration - operationId: replacePriorityLevelConfiguration + description: replace the specified LeaseCandidate + operationId: replaceNamespacedLeaseCandidate parameters: - - description: name of the PriorityLevelConfiguration + - description: name of the LeaseCandidate in: path name: name required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: object name and auth scope, such as for teams and projects + in: path + name: namespace + required: true + schema: + type: string + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -44050,333 +46773,250 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1beta3.PriorityLevelConfiguration' + $ref: '#/components/schemas/v1beta1.LeaseCandidate' required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1beta3.PriorityLevelConfiguration' + $ref: '#/components/schemas/v1beta1.LeaseCandidate' application/yaml: schema: - $ref: '#/components/schemas/v1beta3.PriorityLevelConfiguration' + $ref: '#/components/schemas/v1beta1.LeaseCandidate' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta3.PriorityLevelConfiguration' + $ref: '#/components/schemas/v1beta1.LeaseCandidate' + application/cbor: + schema: + $ref: '#/components/schemas/v1beta1.LeaseCandidate' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1beta3.PriorityLevelConfiguration' + $ref: '#/components/schemas/v1beta1.LeaseCandidate' application/yaml: schema: - $ref: '#/components/schemas/v1beta3.PriorityLevelConfiguration' + $ref: '#/components/schemas/v1beta1.LeaseCandidate' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta3.PriorityLevelConfiguration' + $ref: '#/components/schemas/v1beta1.LeaseCandidate' + application/cbor: + schema: + $ref: '#/components/schemas/v1beta1.LeaseCandidate' description: Created "401": content: {} description: Unauthorized tags: - - flowcontrolApiserver_v1beta3 + - coordination_v1beta1 x-kubernetes-action: put x-kubernetes-group-version-kind: - group: flowcontrol.apiserver.k8s.io - kind: PriorityLevelConfiguration - version: v1beta3 + group: coordination.k8s.io + kind: LeaseCandidate + version: v1beta1 x-codegen-request-body-name: body x-contentType: application/json x-accepts: application/json - /apis/flowcontrol.apiserver.k8s.io/v1beta3/prioritylevelconfigurations/{name}/status: + /apis/coordination.k8s.io/v1beta1/watch/leasecandidates: {} + /apis/coordination.k8s.io/v1beta1/watch/namespaces/{namespace}/leasecandidates: {} + /apis/coordination.k8s.io/v1beta1/watch/namespaces/{namespace}/leasecandidates/{name}: {} + /apis/discovery.k8s.io/: get: - description: read status of the specified PriorityLevelConfiguration - operationId: readPriorityLevelConfigurationStatus - parameters: - - description: name of the PriorityLevelConfiguration - in: path - name: name - required: true - schema: - type: string - - description: If 'true', then the output is pretty printed. - in: query - name: pretty - schema: - type: string + description: get information of a group + operationId: getAPIGroup responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1beta3.PriorityLevelConfiguration' + $ref: '#/components/schemas/v1.APIGroup' application/yaml: schema: - $ref: '#/components/schemas/v1beta3.PriorityLevelConfiguration' + $ref: '#/components/schemas/v1.APIGroup' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta3.PriorityLevelConfiguration' + $ref: '#/components/schemas/v1.APIGroup' description: OK "401": content: {} description: Unauthorized tags: - - flowcontrolApiserver_v1beta3 - x-kubernetes-action: get - x-kubernetes-group-version-kind: - group: flowcontrol.apiserver.k8s.io - kind: PriorityLevelConfiguration - version: v1beta3 + - discovery x-accepts: application/json - patch: - description: partially update status of the specified PriorityLevelConfiguration - operationId: patchPriorityLevelConfigurationStatus - parameters: - - description: name of the PriorityLevelConfiguration - in: path - name: name - required: true - schema: - type: string - - description: If 'true', then the output is pretty printed. - in: query - name: pretty - schema: - type: string - - description: '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' - in: query - name: dryRun - schema: - type: string - - description: fieldManager is a name associated with the actor or entity that - is making these changes. The value must be less than or 128 characters long, - and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - This field is required for apply requests (application/apply-patch) but - optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). - in: query - name: fieldManager - schema: - type: string - - description: 'fieldValidation instructs the server on how to handle objects - in the request (POST/PUT/PATCH) containing unknown or duplicate fields. - Valid values are: - Ignore: This will ignore any unknown fields that are - silently dropped from the object, and will ignore all but the last duplicate - field that the decoder encounters. This is the default behavior prior to - v1.23. - Warn: This will send a warning via the standard warning response - header for each unknown field that is dropped from the object, and for each - duplicate field that is encountered. The request will still succeed if there - are no other errors, and will only persist the last of any duplicate fields. - This is the default in v1.23+ - Strict: This will fail the request with - a BadRequest error if any unknown fields would be dropped from the object, - or if any duplicate fields are present. The error returned from the server - will contain all unknown and duplicate fields encountered.' - in: query - name: fieldValidation - schema: - type: string - - description: Force is going to "force" Apply requests. It means user will - re-acquire conflicting fields owned by other people. Force flag must be - unset for non-apply patch requests. - in: query - name: force - schema: - type: boolean - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/v1.Patch' - required: true + /apis/discovery.k8s.io/v1/: + get: + description: get available resources + operationId: getAPIResources responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1beta3.PriorityLevelConfiguration' + $ref: '#/components/schemas/v1.APIResourceList' application/yaml: schema: - $ref: '#/components/schemas/v1beta3.PriorityLevelConfiguration' + $ref: '#/components/schemas/v1.APIResourceList' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta3.PriorityLevelConfiguration' - description: OK - "201": - content: - application/json: - schema: - $ref: '#/components/schemas/v1beta3.PriorityLevelConfiguration' - application/yaml: - schema: - $ref: '#/components/schemas/v1beta3.PriorityLevelConfiguration' - application/vnd.kubernetes.protobuf: + $ref: '#/components/schemas/v1.APIResourceList' + application/cbor: schema: - $ref: '#/components/schemas/v1beta3.PriorityLevelConfiguration' - description: Created + $ref: '#/components/schemas/v1.APIResourceList' + description: OK "401": content: {} description: Unauthorized tags: - - flowcontrolApiserver_v1beta3 - x-kubernetes-action: patch - x-kubernetes-group-version-kind: - group: flowcontrol.apiserver.k8s.io - kind: PriorityLevelConfiguration - version: v1beta3 - x-codegen-request-body-name: body - x-contentType: application/json + - discovery_v1 x-accepts: application/json - put: - description: replace status of the specified PriorityLevelConfiguration - operationId: replacePriorityLevelConfigurationStatus + /apis/discovery.k8s.io/v1/endpointslices: + get: + description: list or watch objects of kind EndpointSlice + operationId: listEndpointSliceForAllNamespaces parameters: - - description: name of the PriorityLevelConfiguration - in: path - name: name - required: true + - description: 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. + in: query + name: allowWatchBookmarks + schema: + type: boolean + - description: |- + 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. + in: query + name: continue schema: type: string - - description: If 'true', then the output is pretty printed. + - description: A selector to restrict the list of returned objects by their + fields. Defaults to everything. in: query - name: pretty + name: fieldSelector schema: type: string - - description: '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' + - description: A selector to restrict the list of returned objects by their + labels. Defaults to everything. in: query - name: dryRun + name: labelSelector schema: type: string - - description: fieldManager is a name associated with the actor or entity that - is making these changes. The value must be less than or 128 characters long, - and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + - description: |- + limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. + + The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. in: query - name: fieldManager + name: limit + schema: + type: integer + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). + in: query + name: pretty schema: type: string - - description: 'fieldValidation instructs the server on how to handle objects - in the request (POST/PUT/PATCH) containing unknown or duplicate fields. - Valid values are: - Ignore: This will ignore any unknown fields that are - silently dropped from the object, and will ignore all but the last duplicate - field that the decoder encounters. This is the default behavior prior to - v1.23. - Warn: This will send a warning via the standard warning response - header for each unknown field that is dropped from the object, and for each - duplicate field that is encountered. The request will still succeed if there - are no other errors, and will only persist the last of any duplicate fields. - This is the default in v1.23+ - Strict: This will fail the request with - a BadRequest error if any unknown fields would be dropped from the object, - or if any duplicate fields are present. The error returned from the server - will contain all unknown and duplicate fields encountered.' + - description: |- + resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset in: query - name: fieldValidation + name: resourceVersion schema: type: string - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/v1beta3.PriorityLevelConfiguration' - required: true + - description: |- + resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersionMatch + schema: + type: string + - description: |- + `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic "Bookmark" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `"k8s.io/initial-events-end": "true"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. + + When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan + is interpreted as "data at least as new as the provided `resourceVersion`" + and the bookmark event is send when the state is synced + to a `resourceVersion` at least as fresh as the one provided by the ListOptions. + If `resourceVersion` is unset, this is interpreted as "consistent read" and the + bookmark event is send when the state is synced at least to the moment + when request started being processed. + - `resourceVersionMatch` set to any other value or unset + Invalid error is returned. + + Defaults to true if `resourceVersion=""` or `resourceVersion="0"` (for backward compatibility reasons) and to false otherwise. + in: query + name: sendInitialEvents + schema: + type: boolean + - description: Timeout for the list/watch call. This limits the duration of + the call, regardless of any activity or inactivity. + in: query + name: timeoutSeconds + schema: + type: integer + - description: Watch for changes to the described resources and return them + as a stream of add, update, and remove notifications. Specify resourceVersion. + in: query + name: watch + schema: + type: boolean responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1beta3.PriorityLevelConfiguration' - application/yaml: - schema: - $ref: '#/components/schemas/v1beta3.PriorityLevelConfiguration' - application/vnd.kubernetes.protobuf: - schema: - $ref: '#/components/schemas/v1beta3.PriorityLevelConfiguration' - description: OK - "201": - content: - application/json: - schema: - $ref: '#/components/schemas/v1beta3.PriorityLevelConfiguration' + $ref: '#/components/schemas/v1.EndpointSliceList' application/yaml: schema: - $ref: '#/components/schemas/v1beta3.PriorityLevelConfiguration' + $ref: '#/components/schemas/v1.EndpointSliceList' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta3.PriorityLevelConfiguration' - description: Created - "401": - content: {} - description: Unauthorized - tags: - - flowcontrolApiserver_v1beta3 - x-kubernetes-action: put - x-kubernetes-group-version-kind: - group: flowcontrol.apiserver.k8s.io - kind: PriorityLevelConfiguration - version: v1beta3 - x-codegen-request-body-name: body - x-contentType: application/json - x-accepts: application/json - /apis/flowcontrol.apiserver.k8s.io/v1beta3/watch/flowschemas: {} - /apis/flowcontrol.apiserver.k8s.io/v1beta3/watch/flowschemas/{name}: {} - /apis/flowcontrol.apiserver.k8s.io/v1beta3/watch/prioritylevelconfigurations: {} - /apis/flowcontrol.apiserver.k8s.io/v1beta3/watch/prioritylevelconfigurations/{name}: {} - /apis/internal.apiserver.k8s.io/: - get: - description: get information of a group - operationId: getAPIGroup - responses: - "200": - content: - application/json: - schema: - $ref: '#/components/schemas/v1.APIGroup' - application/yaml: - schema: - $ref: '#/components/schemas/v1.APIGroup' - application/vnd.kubernetes.protobuf: + $ref: '#/components/schemas/v1.EndpointSliceList' + application/cbor: schema: - $ref: '#/components/schemas/v1.APIGroup' - description: OK - "401": - content: {} - description: Unauthorized - tags: - - internalApiserver - x-accepts: application/json - /apis/internal.apiserver.k8s.io/v1alpha1/: - get: - description: get available resources - operationId: getAPIResources - responses: - "200": - content: - application/json: + $ref: '#/components/schemas/v1.EndpointSliceList' + application/json;stream=watch: schema: - $ref: '#/components/schemas/v1.APIResourceList' - application/yaml: + $ref: '#/components/schemas/v1.EndpointSliceList' + application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: '#/components/schemas/v1.APIResourceList' - application/vnd.kubernetes.protobuf: + $ref: '#/components/schemas/v1.EndpointSliceList' + application/cbor-seq: schema: - $ref: '#/components/schemas/v1.APIResourceList' + $ref: '#/components/schemas/v1.EndpointSliceList' description: OK "401": content: {} description: Unauthorized tags: - - internalApiserver_v1alpha1 + - discovery_v1 + x-kubernetes-action: list + x-kubernetes-group-version-kind: + group: discovery.k8s.io + kind: EndpointSlice + version: v1 x-accepts: application/json - /apis/internal.apiserver.k8s.io/v1alpha1/storageversions: + /apis/discovery.k8s.io/v1/namespaces/{namespace}/endpointslices: delete: - description: delete collection of StorageVersion - operationId: deleteCollectionStorageVersion + description: delete collection of EndpointSlice + operationId: deleteCollectionNamespacedEndpointSlice parameters: - - description: If 'true', then the output is pretty printed. + - description: object name and auth scope, such as for teams and projects + in: path + name: namespace + required: true + schema: + type: string + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -44412,6 +47052,20 @@ paths: name: gracePeriodSeconds schema: type: integer + - description: 'if set to true, it will trigger an unsafe deletion of the resource + in case the normal deletion flow fails with a corrupt object error. A resource + is considered corrupt if it can not be retrieved from the underlying storage + successfully because of a) its data can not be transformed e.g. decryption + failure, or b) it fails to decode into an object. NOTE: unsafe deletion + ignores finalizer constraints, skips precondition checks, and removes the + object from the storage. WARNING: This may potentially break the cluster + if the workload associated with the resource being unsafe-deleted relies + on normal deletion flow. Use only if you REALLY know what you are doing. + The default value is false, and the user must opt in to enable it' + in: query + name: ignoreStoreReadErrorWithClusterBreakingPotential + schema: + type: boolean - description: A selector to restrict the list of returned objects by their labels. Defaults to everything. in: query @@ -44503,25 +47157,36 @@ paths: application/vnd.kubernetes.protobuf: schema: $ref: '#/components/schemas/v1.Status' + application/cbor: + schema: + $ref: '#/components/schemas/v1.Status' description: OK "401": content: {} description: Unauthorized tags: - - internalApiserver_v1alpha1 + - discovery_v1 x-kubernetes-action: deletecollection x-kubernetes-group-version-kind: - group: internal.apiserver.k8s.io - kind: StorageVersion - version: v1alpha1 + group: discovery.k8s.io + kind: EndpointSlice + version: v1 x-codegen-request-body-name: body x-contentType: application/json x-accepts: application/json get: - description: list or watch objects of kind StorageVersion - operationId: listStorageVersion + description: list or watch objects of kind EndpointSlice + operationId: listNamespacedEndpointSlice parameters: - - description: If 'true', then the output is pretty printed. + - description: object name and auth scope, such as for teams and projects + in: path + name: namespace + required: true + schema: + type: string + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -44615,36 +47280,50 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersionList' + $ref: '#/components/schemas/v1.EndpointSliceList' application/yaml: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersionList' + $ref: '#/components/schemas/v1.EndpointSliceList' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersionList' + $ref: '#/components/schemas/v1.EndpointSliceList' + application/cbor: + schema: + $ref: '#/components/schemas/v1.EndpointSliceList' application/json;stream=watch: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersionList' + $ref: '#/components/schemas/v1.EndpointSliceList' application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersionList' + $ref: '#/components/schemas/v1.EndpointSliceList' + application/cbor-seq: + schema: + $ref: '#/components/schemas/v1.EndpointSliceList' description: OK "401": content: {} description: Unauthorized tags: - - internalApiserver_v1alpha1 + - discovery_v1 x-kubernetes-action: list x-kubernetes-group-version-kind: - group: internal.apiserver.k8s.io - kind: StorageVersion - version: v1alpha1 + group: discovery.k8s.io + kind: EndpointSlice + version: v1 x-accepts: application/json post: - description: create a StorageVersion - operationId: createStorageVersion + description: create an EndpointSlice + operationId: createNamespacedEndpointSlice parameters: - - description: If 'true', then the output is pretty printed. + - description: object name and auth scope, such as for teams and projects + in: path + name: namespace + required: true + schema: + type: string + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -44685,70 +47364,87 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersion' + $ref: '#/components/schemas/v1.EndpointSlice' required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersion' + $ref: '#/components/schemas/v1.EndpointSlice' application/yaml: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersion' + $ref: '#/components/schemas/v1.EndpointSlice' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersion' + $ref: '#/components/schemas/v1.EndpointSlice' + application/cbor: + schema: + $ref: '#/components/schemas/v1.EndpointSlice' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersion' + $ref: '#/components/schemas/v1.EndpointSlice' application/yaml: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersion' + $ref: '#/components/schemas/v1.EndpointSlice' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersion' + $ref: '#/components/schemas/v1.EndpointSlice' + application/cbor: + schema: + $ref: '#/components/schemas/v1.EndpointSlice' description: Created "202": content: application/json: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersion' + $ref: '#/components/schemas/v1.EndpointSlice' application/yaml: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersion' + $ref: '#/components/schemas/v1.EndpointSlice' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersion' + $ref: '#/components/schemas/v1.EndpointSlice' + application/cbor: + schema: + $ref: '#/components/schemas/v1.EndpointSlice' description: Accepted "401": content: {} description: Unauthorized tags: - - internalApiserver_v1alpha1 + - discovery_v1 x-kubernetes-action: post x-kubernetes-group-version-kind: - group: internal.apiserver.k8s.io - kind: StorageVersion - version: v1alpha1 + group: discovery.k8s.io + kind: EndpointSlice + version: v1 x-codegen-request-body-name: body x-contentType: application/json x-accepts: application/json - /apis/internal.apiserver.k8s.io/v1alpha1/storageversions/{name}: + /apis/discovery.k8s.io/v1/namespaces/{namespace}/endpointslices/{name}: delete: - description: delete a StorageVersion - operationId: deleteStorageVersion + description: delete an EndpointSlice + operationId: deleteNamespacedEndpointSlice parameters: - - description: name of the StorageVersion + - description: name of the EndpointSlice in: path name: name required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: object name and auth scope, such as for teams and projects + in: path + name: namespace + required: true + schema: + type: string + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -44770,6 +47466,20 @@ paths: name: gracePeriodSeconds schema: type: integer + - description: 'if set to true, it will trigger an unsafe deletion of the resource + in case the normal deletion flow fails with a corrupt object error. A resource + is considered corrupt if it can not be retrieved from the underlying storage + successfully because of a) its data can not be transformed e.g. decryption + failure, or b) it fails to decode into an object. NOTE: unsafe deletion + ignores finalizer constraints, skips precondition checks, and removes the + object from the storage. WARNING: This may potentially break the cluster + if the workload associated with the resource being unsafe-deleted relies + on normal deletion flow. Use only if you REALLY know what you are doing. + The default value is false, and the user must opt in to enable it' + in: query + name: ignoreStoreReadErrorWithClusterBreakingPotential + schema: + type: boolean - description: '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 @@ -44807,6 +47517,9 @@ paths: application/vnd.kubernetes.protobuf: schema: $ref: '#/components/schemas/v1.Status' + application/cbor: + schema: + $ref: '#/components/schemas/v1.Status' description: OK "202": content: @@ -44819,31 +47532,42 @@ paths: application/vnd.kubernetes.protobuf: schema: $ref: '#/components/schemas/v1.Status' + application/cbor: + schema: + $ref: '#/components/schemas/v1.Status' description: Accepted "401": content: {} description: Unauthorized tags: - - internalApiserver_v1alpha1 + - discovery_v1 x-kubernetes-action: delete x-kubernetes-group-version-kind: - group: internal.apiserver.k8s.io - kind: StorageVersion - version: v1alpha1 + group: discovery.k8s.io + kind: EndpointSlice + version: v1 x-codegen-request-body-name: body x-contentType: application/json x-accepts: application/json get: - description: read the specified StorageVersion - operationId: readStorageVersion + description: read the specified EndpointSlice + operationId: readNamespacedEndpointSlice parameters: - - description: name of the StorageVersion + - description: name of the EndpointSlice in: path name: name required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: object name and auth scope, such as for teams and projects + in: path + name: namespace + required: true + schema: + type: string + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -44853,36 +47577,47 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersion' + $ref: '#/components/schemas/v1.EndpointSlice' application/yaml: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersion' + $ref: '#/components/schemas/v1.EndpointSlice' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersion' + $ref: '#/components/schemas/v1.EndpointSlice' + application/cbor: + schema: + $ref: '#/components/schemas/v1.EndpointSlice' description: OK "401": content: {} description: Unauthorized tags: - - internalApiserver_v1alpha1 + - discovery_v1 x-kubernetes-action: get x-kubernetes-group-version-kind: - group: internal.apiserver.k8s.io - kind: StorageVersion - version: v1alpha1 + group: discovery.k8s.io + kind: EndpointSlice + version: v1 x-accepts: application/json patch: - description: partially update the specified StorageVersion - operationId: patchStorageVersion + description: partially update the specified EndpointSlice + operationId: patchNamespacedEndpointSlice parameters: - - description: name of the StorageVersion + - description: name of the EndpointSlice in: path name: name required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: object name and auth scope, such as for teams and projects + in: path + name: namespace + required: true + schema: + type: string + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -44939,50 +47674,64 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersion' + $ref: '#/components/schemas/v1.EndpointSlice' application/yaml: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersion' + $ref: '#/components/schemas/v1.EndpointSlice' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersion' + $ref: '#/components/schemas/v1.EndpointSlice' + application/cbor: + schema: + $ref: '#/components/schemas/v1.EndpointSlice' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersion' + $ref: '#/components/schemas/v1.EndpointSlice' application/yaml: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersion' + $ref: '#/components/schemas/v1.EndpointSlice' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersion' + $ref: '#/components/schemas/v1.EndpointSlice' + application/cbor: + schema: + $ref: '#/components/schemas/v1.EndpointSlice' description: Created "401": content: {} description: Unauthorized tags: - - internalApiserver_v1alpha1 + - discovery_v1 x-kubernetes-action: patch x-kubernetes-group-version-kind: - group: internal.apiserver.k8s.io - kind: StorageVersion - version: v1alpha1 + group: discovery.k8s.io + kind: EndpointSlice + version: v1 x-codegen-request-body-name: body x-contentType: application/json x-accepts: application/json put: - description: replace the specified StorageVersion - operationId: replaceStorageVersion + description: replace the specified EndpointSlice + operationId: replaceNamespacedEndpointSlice parameters: - - description: name of the StorageVersion + - description: name of the EndpointSlice in: path name: name required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: object name and auth scope, such as for teams and projects + in: path + name: namespace + required: true + schema: + type: string + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -45023,331 +47772,250 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersion' + $ref: '#/components/schemas/v1.EndpointSlice' required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersion' + $ref: '#/components/schemas/v1.EndpointSlice' application/yaml: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersion' + $ref: '#/components/schemas/v1.EndpointSlice' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersion' + $ref: '#/components/schemas/v1.EndpointSlice' + application/cbor: + schema: + $ref: '#/components/schemas/v1.EndpointSlice' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersion' + $ref: '#/components/schemas/v1.EndpointSlice' application/yaml: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersion' + $ref: '#/components/schemas/v1.EndpointSlice' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersion' + $ref: '#/components/schemas/v1.EndpointSlice' + application/cbor: + schema: + $ref: '#/components/schemas/v1.EndpointSlice' description: Created "401": content: {} description: Unauthorized tags: - - internalApiserver_v1alpha1 + - discovery_v1 x-kubernetes-action: put x-kubernetes-group-version-kind: - group: internal.apiserver.k8s.io - kind: StorageVersion - version: v1alpha1 + group: discovery.k8s.io + kind: EndpointSlice + version: v1 x-codegen-request-body-name: body x-contentType: application/json x-accepts: application/json - /apis/internal.apiserver.k8s.io/v1alpha1/storageversions/{name}/status: + /apis/discovery.k8s.io/v1/watch/endpointslices: {} + /apis/discovery.k8s.io/v1/watch/namespaces/{namespace}/endpointslices: {} + /apis/discovery.k8s.io/v1/watch/namespaces/{namespace}/endpointslices/{name}: {} + /apis/events.k8s.io/: get: - description: read status of the specified StorageVersion - operationId: readStorageVersionStatus - parameters: - - description: name of the StorageVersion - in: path - name: name - required: true - schema: - type: string - - description: If 'true', then the output is pretty printed. - in: query - name: pretty - schema: - type: string + description: get information of a group + operationId: getAPIGroup responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersion' + $ref: '#/components/schemas/v1.APIGroup' application/yaml: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersion' + $ref: '#/components/schemas/v1.APIGroup' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersion' + $ref: '#/components/schemas/v1.APIGroup' description: OK "401": content: {} description: Unauthorized tags: - - internalApiserver_v1alpha1 - x-kubernetes-action: get - x-kubernetes-group-version-kind: - group: internal.apiserver.k8s.io - kind: StorageVersion - version: v1alpha1 + - events x-accepts: application/json - patch: - description: partially update status of the specified StorageVersion - operationId: patchStorageVersionStatus - parameters: - - description: name of the StorageVersion - in: path - name: name - required: true - schema: - type: string - - description: If 'true', then the output is pretty printed. - in: query - name: pretty - schema: - type: string - - description: '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' - in: query - name: dryRun - schema: - type: string - - description: fieldManager is a name associated with the actor or entity that - is making these changes. The value must be less than or 128 characters long, - and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - This field is required for apply requests (application/apply-patch) but - optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). - in: query - name: fieldManager - schema: - type: string - - description: 'fieldValidation instructs the server on how to handle objects - in the request (POST/PUT/PATCH) containing unknown or duplicate fields. - Valid values are: - Ignore: This will ignore any unknown fields that are - silently dropped from the object, and will ignore all but the last duplicate - field that the decoder encounters. This is the default behavior prior to - v1.23. - Warn: This will send a warning via the standard warning response - header for each unknown field that is dropped from the object, and for each - duplicate field that is encountered. The request will still succeed if there - are no other errors, and will only persist the last of any duplicate fields. - This is the default in v1.23+ - Strict: This will fail the request with - a BadRequest error if any unknown fields would be dropped from the object, - or if any duplicate fields are present. The error returned from the server - will contain all unknown and duplicate fields encountered.' - in: query - name: fieldValidation - schema: - type: string - - description: Force is going to "force" Apply requests. It means user will - re-acquire conflicting fields owned by other people. Force flag must be - unset for non-apply patch requests. - in: query - name: force - schema: - type: boolean - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/v1.Patch' - required: true + /apis/events.k8s.io/v1/: + get: + description: get available resources + operationId: getAPIResources responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersion' + $ref: '#/components/schemas/v1.APIResourceList' application/yaml: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersion' + $ref: '#/components/schemas/v1.APIResourceList' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersion' - description: OK - "201": - content: - application/json: - schema: - $ref: '#/components/schemas/v1alpha1.StorageVersion' - application/yaml: - schema: - $ref: '#/components/schemas/v1alpha1.StorageVersion' - application/vnd.kubernetes.protobuf: + $ref: '#/components/schemas/v1.APIResourceList' + application/cbor: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersion' - description: Created + $ref: '#/components/schemas/v1.APIResourceList' + description: OK "401": content: {} description: Unauthorized tags: - - internalApiserver_v1alpha1 - x-kubernetes-action: patch - x-kubernetes-group-version-kind: - group: internal.apiserver.k8s.io - kind: StorageVersion - version: v1alpha1 - x-codegen-request-body-name: body - x-contentType: application/json + - events_v1 x-accepts: application/json - put: - description: replace status of the specified StorageVersion - operationId: replaceStorageVersionStatus + /apis/events.k8s.io/v1/events: + get: + description: list or watch objects of kind Event + operationId: listEventForAllNamespaces parameters: - - description: name of the StorageVersion - in: path - name: name - required: true + - description: 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. + in: query + name: allowWatchBookmarks + schema: + type: boolean + - description: |- + 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. + in: query + name: continue schema: type: string - - description: If 'true', then the output is pretty printed. + - description: A selector to restrict the list of returned objects by their + fields. Defaults to everything. in: query - name: pretty + name: fieldSelector schema: type: string - - description: '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' + - description: A selector to restrict the list of returned objects by their + labels. Defaults to everything. in: query - name: dryRun + name: labelSelector schema: type: string - - description: fieldManager is a name associated with the actor or entity that - is making these changes. The value must be less than or 128 characters long, - and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + - description: |- + limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. + + The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. in: query - name: fieldManager + name: limit + schema: + type: integer + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). + in: query + name: pretty schema: type: string - - description: 'fieldValidation instructs the server on how to handle objects - in the request (POST/PUT/PATCH) containing unknown or duplicate fields. - Valid values are: - Ignore: This will ignore any unknown fields that are - silently dropped from the object, and will ignore all but the last duplicate - field that the decoder encounters. This is the default behavior prior to - v1.23. - Warn: This will send a warning via the standard warning response - header for each unknown field that is dropped from the object, and for each - duplicate field that is encountered. The request will still succeed if there - are no other errors, and will only persist the last of any duplicate fields. - This is the default in v1.23+ - Strict: This will fail the request with - a BadRequest error if any unknown fields would be dropped from the object, - or if any duplicate fields are present. The error returned from the server - will contain all unknown and duplicate fields encountered.' + - description: |- + resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset in: query - name: fieldValidation + name: resourceVersion schema: type: string - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/v1alpha1.StorageVersion' - required: true + - description: |- + resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersionMatch + schema: + type: string + - description: |- + `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic "Bookmark" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `"k8s.io/initial-events-end": "true"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. + + When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan + is interpreted as "data at least as new as the provided `resourceVersion`" + and the bookmark event is send when the state is synced + to a `resourceVersion` at least as fresh as the one provided by the ListOptions. + If `resourceVersion` is unset, this is interpreted as "consistent read" and the + bookmark event is send when the state is synced at least to the moment + when request started being processed. + - `resourceVersionMatch` set to any other value or unset + Invalid error is returned. + + Defaults to true if `resourceVersion=""` or `resourceVersion="0"` (for backward compatibility reasons) and to false otherwise. + in: query + name: sendInitialEvents + schema: + type: boolean + - description: Timeout for the list/watch call. This limits the duration of + the call, regardless of any activity or inactivity. + in: query + name: timeoutSeconds + schema: + type: integer + - description: Watch for changes to the described resources and return them + as a stream of add, update, and remove notifications. Specify resourceVersion. + in: query + name: watch + schema: + type: boolean responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersion' - application/yaml: - schema: - $ref: '#/components/schemas/v1alpha1.StorageVersion' - application/vnd.kubernetes.protobuf: - schema: - $ref: '#/components/schemas/v1alpha1.StorageVersion' - description: OK - "201": - content: - application/json: - schema: - $ref: '#/components/schemas/v1alpha1.StorageVersion' + $ref: '#/components/schemas/events.v1.EventList' application/yaml: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersion' + $ref: '#/components/schemas/events.v1.EventList' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersion' - description: Created - "401": - content: {} - description: Unauthorized - tags: - - internalApiserver_v1alpha1 - x-kubernetes-action: put - x-kubernetes-group-version-kind: - group: internal.apiserver.k8s.io - kind: StorageVersion - version: v1alpha1 - x-codegen-request-body-name: body - x-contentType: application/json - x-accepts: application/json - /apis/internal.apiserver.k8s.io/v1alpha1/watch/storageversions: {} - /apis/internal.apiserver.k8s.io/v1alpha1/watch/storageversions/{name}: {} - /apis/networking.k8s.io/: - get: - description: get information of a group - operationId: getAPIGroup - responses: - "200": - content: - application/json: - schema: - $ref: '#/components/schemas/v1.APIGroup' - application/yaml: - schema: - $ref: '#/components/schemas/v1.APIGroup' - application/vnd.kubernetes.protobuf: + $ref: '#/components/schemas/events.v1.EventList' + application/cbor: schema: - $ref: '#/components/schemas/v1.APIGroup' - description: OK - "401": - content: {} - description: Unauthorized - tags: - - networking - x-accepts: application/json - /apis/networking.k8s.io/v1/: - get: - description: get available resources - operationId: getAPIResources - responses: - "200": - content: - application/json: + $ref: '#/components/schemas/events.v1.EventList' + application/json;stream=watch: schema: - $ref: '#/components/schemas/v1.APIResourceList' - application/yaml: + $ref: '#/components/schemas/events.v1.EventList' + application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: '#/components/schemas/v1.APIResourceList' - application/vnd.kubernetes.protobuf: + $ref: '#/components/schemas/events.v1.EventList' + application/cbor-seq: schema: - $ref: '#/components/schemas/v1.APIResourceList' + $ref: '#/components/schemas/events.v1.EventList' description: OK "401": content: {} description: Unauthorized tags: - - networking_v1 + - events_v1 + x-kubernetes-action: list + x-kubernetes-group-version-kind: + group: events.k8s.io + kind: Event + version: v1 x-accepts: application/json - /apis/networking.k8s.io/v1/ingressclasses: + /apis/events.k8s.io/v1/namespaces/{namespace}/events: delete: - description: delete collection of IngressClass - operationId: deleteCollectionIngressClass + description: delete collection of Event + operationId: deleteCollectionNamespacedEvent parameters: - - description: If 'true', then the output is pretty printed. + - description: object name and auth scope, such as for teams and projects + in: path + name: namespace + required: true + schema: + type: string + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -45383,6 +48051,20 @@ paths: name: gracePeriodSeconds schema: type: integer + - description: 'if set to true, it will trigger an unsafe deletion of the resource + in case the normal deletion flow fails with a corrupt object error. A resource + is considered corrupt if it can not be retrieved from the underlying storage + successfully because of a) its data can not be transformed e.g. decryption + failure, or b) it fails to decode into an object. NOTE: unsafe deletion + ignores finalizer constraints, skips precondition checks, and removes the + object from the storage. WARNING: This may potentially break the cluster + if the workload associated with the resource being unsafe-deleted relies + on normal deletion flow. Use only if you REALLY know what you are doing. + The default value is false, and the user must opt in to enable it' + in: query + name: ignoreStoreReadErrorWithClusterBreakingPotential + schema: + type: boolean - description: A selector to restrict the list of returned objects by their labels. Defaults to everything. in: query @@ -45474,25 +48156,36 @@ paths: application/vnd.kubernetes.protobuf: schema: $ref: '#/components/schemas/v1.Status' + application/cbor: + schema: + $ref: '#/components/schemas/v1.Status' description: OK "401": content: {} description: Unauthorized tags: - - networking_v1 + - events_v1 x-kubernetes-action: deletecollection x-kubernetes-group-version-kind: - group: networking.k8s.io - kind: IngressClass + group: events.k8s.io + kind: Event version: v1 x-codegen-request-body-name: body x-contentType: application/json x-accepts: application/json get: - description: list or watch objects of kind IngressClass - operationId: listIngressClass + description: list or watch objects of kind Event + operationId: listNamespacedEvent parameters: - - description: If 'true', then the output is pretty printed. + - description: object name and auth scope, such as for teams and projects + in: path + name: namespace + required: true + schema: + type: string + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -45586,36 +48279,50 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.IngressClassList' + $ref: '#/components/schemas/events.v1.EventList' application/yaml: schema: - $ref: '#/components/schemas/v1.IngressClassList' + $ref: '#/components/schemas/events.v1.EventList' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.IngressClassList' + $ref: '#/components/schemas/events.v1.EventList' + application/cbor: + schema: + $ref: '#/components/schemas/events.v1.EventList' application/json;stream=watch: schema: - $ref: '#/components/schemas/v1.IngressClassList' + $ref: '#/components/schemas/events.v1.EventList' application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: '#/components/schemas/v1.IngressClassList' + $ref: '#/components/schemas/events.v1.EventList' + application/cbor-seq: + schema: + $ref: '#/components/schemas/events.v1.EventList' description: OK "401": content: {} description: Unauthorized tags: - - networking_v1 + - events_v1 x-kubernetes-action: list x-kubernetes-group-version-kind: - group: networking.k8s.io - kind: IngressClass + group: events.k8s.io + kind: Event version: v1 x-accepts: application/json post: - description: create an IngressClass - operationId: createIngressClass + description: create an Event + operationId: createNamespacedEvent parameters: - - description: If 'true', then the output is pretty printed. + - description: object name and auth scope, such as for teams and projects + in: path + name: namespace + required: true + schema: + type: string + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -45656,70 +48363,87 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.IngressClass' + $ref: '#/components/schemas/events.v1.Event' required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.IngressClass' + $ref: '#/components/schemas/events.v1.Event' application/yaml: schema: - $ref: '#/components/schemas/v1.IngressClass' + $ref: '#/components/schemas/events.v1.Event' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.IngressClass' + $ref: '#/components/schemas/events.v1.Event' + application/cbor: + schema: + $ref: '#/components/schemas/events.v1.Event' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.IngressClass' + $ref: '#/components/schemas/events.v1.Event' application/yaml: schema: - $ref: '#/components/schemas/v1.IngressClass' + $ref: '#/components/schemas/events.v1.Event' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.IngressClass' + $ref: '#/components/schemas/events.v1.Event' + application/cbor: + schema: + $ref: '#/components/schemas/events.v1.Event' description: Created "202": content: application/json: schema: - $ref: '#/components/schemas/v1.IngressClass' + $ref: '#/components/schemas/events.v1.Event' application/yaml: schema: - $ref: '#/components/schemas/v1.IngressClass' + $ref: '#/components/schemas/events.v1.Event' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.IngressClass' + $ref: '#/components/schemas/events.v1.Event' + application/cbor: + schema: + $ref: '#/components/schemas/events.v1.Event' description: Accepted "401": content: {} description: Unauthorized tags: - - networking_v1 + - events_v1 x-kubernetes-action: post x-kubernetes-group-version-kind: - group: networking.k8s.io - kind: IngressClass + group: events.k8s.io + kind: Event version: v1 x-codegen-request-body-name: body x-contentType: application/json x-accepts: application/json - /apis/networking.k8s.io/v1/ingressclasses/{name}: + /apis/events.k8s.io/v1/namespaces/{namespace}/events/{name}: delete: - description: delete an IngressClass - operationId: deleteIngressClass + description: delete an Event + operationId: deleteNamespacedEvent parameters: - - description: name of the IngressClass + - description: name of the Event in: path name: name required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: object name and auth scope, such as for teams and projects + in: path + name: namespace + required: true + schema: + type: string + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -45741,6 +48465,20 @@ paths: name: gracePeriodSeconds schema: type: integer + - description: 'if set to true, it will trigger an unsafe deletion of the resource + in case the normal deletion flow fails with a corrupt object error. A resource + is considered corrupt if it can not be retrieved from the underlying storage + successfully because of a) its data can not be transformed e.g. decryption + failure, or b) it fails to decode into an object. NOTE: unsafe deletion + ignores finalizer constraints, skips precondition checks, and removes the + object from the storage. WARNING: This may potentially break the cluster + if the workload associated with the resource being unsafe-deleted relies + on normal deletion flow. Use only if you REALLY know what you are doing. + The default value is false, and the user must opt in to enable it' + in: query + name: ignoreStoreReadErrorWithClusterBreakingPotential + schema: + type: boolean - description: '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 @@ -45778,6 +48516,9 @@ paths: application/vnd.kubernetes.protobuf: schema: $ref: '#/components/schemas/v1.Status' + application/cbor: + schema: + $ref: '#/components/schemas/v1.Status' description: OK "202": content: @@ -45790,31 +48531,42 @@ paths: application/vnd.kubernetes.protobuf: schema: $ref: '#/components/schemas/v1.Status' + application/cbor: + schema: + $ref: '#/components/schemas/v1.Status' description: Accepted "401": content: {} description: Unauthorized tags: - - networking_v1 + - events_v1 x-kubernetes-action: delete x-kubernetes-group-version-kind: - group: networking.k8s.io - kind: IngressClass + group: events.k8s.io + kind: Event version: v1 x-codegen-request-body-name: body x-contentType: application/json x-accepts: application/json get: - description: read the specified IngressClass - operationId: readIngressClass + description: read the specified Event + operationId: readNamespacedEvent parameters: - - description: name of the IngressClass + - description: name of the Event in: path name: name required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: object name and auth scope, such as for teams and projects + in: path + name: namespace + required: true + schema: + type: string + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -45824,36 +48576,47 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.IngressClass' + $ref: '#/components/schemas/events.v1.Event' application/yaml: schema: - $ref: '#/components/schemas/v1.IngressClass' + $ref: '#/components/schemas/events.v1.Event' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.IngressClass' + $ref: '#/components/schemas/events.v1.Event' + application/cbor: + schema: + $ref: '#/components/schemas/events.v1.Event' description: OK "401": content: {} description: Unauthorized tags: - - networking_v1 + - events_v1 x-kubernetes-action: get x-kubernetes-group-version-kind: - group: networking.k8s.io - kind: IngressClass + group: events.k8s.io + kind: Event version: v1 x-accepts: application/json patch: - description: partially update the specified IngressClass - operationId: patchIngressClass + description: partially update the specified Event + operationId: patchNamespacedEvent parameters: - - description: name of the IngressClass + - description: name of the Event in: path name: name required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: object name and auth scope, such as for teams and projects + in: path + name: namespace + required: true + schema: + type: string + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -45910,50 +48673,64 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.IngressClass' + $ref: '#/components/schemas/events.v1.Event' application/yaml: schema: - $ref: '#/components/schemas/v1.IngressClass' + $ref: '#/components/schemas/events.v1.Event' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.IngressClass' + $ref: '#/components/schemas/events.v1.Event' + application/cbor: + schema: + $ref: '#/components/schemas/events.v1.Event' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.IngressClass' + $ref: '#/components/schemas/events.v1.Event' application/yaml: schema: - $ref: '#/components/schemas/v1.IngressClass' + $ref: '#/components/schemas/events.v1.Event' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.IngressClass' + $ref: '#/components/schemas/events.v1.Event' + application/cbor: + schema: + $ref: '#/components/schemas/events.v1.Event' description: Created "401": content: {} description: Unauthorized tags: - - networking_v1 + - events_v1 x-kubernetes-action: patch x-kubernetes-group-version-kind: - group: networking.k8s.io - kind: IngressClass + group: events.k8s.io + kind: Event version: v1 x-codegen-request-body-name: body x-contentType: application/json x-accepts: application/json put: - description: replace the specified IngressClass - operationId: replaceIngressClass + description: replace the specified Event + operationId: replaceNamespacedEvent parameters: - - description: name of the IngressClass + - description: name of the Event in: path name: name required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: object name and auth scope, such as for teams and projects + in: path + name: namespace + required: true + schema: + type: string + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -45994,182 +48771,112 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.IngressClass' + $ref: '#/components/schemas/events.v1.Event' required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.IngressClass' + $ref: '#/components/schemas/events.v1.Event' application/yaml: schema: - $ref: '#/components/schemas/v1.IngressClass' + $ref: '#/components/schemas/events.v1.Event' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.IngressClass' + $ref: '#/components/schemas/events.v1.Event' + application/cbor: + schema: + $ref: '#/components/schemas/events.v1.Event' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.IngressClass' + $ref: '#/components/schemas/events.v1.Event' application/yaml: schema: - $ref: '#/components/schemas/v1.IngressClass' + $ref: '#/components/schemas/events.v1.Event' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.IngressClass' + $ref: '#/components/schemas/events.v1.Event' + application/cbor: + schema: + $ref: '#/components/schemas/events.v1.Event' description: Created "401": content: {} description: Unauthorized tags: - - networking_v1 + - events_v1 x-kubernetes-action: put x-kubernetes-group-version-kind: - group: networking.k8s.io - kind: IngressClass + group: events.k8s.io + kind: Event version: v1 x-codegen-request-body-name: body x-contentType: application/json x-accepts: application/json - /apis/networking.k8s.io/v1/ingresses: + /apis/events.k8s.io/v1/watch/events: {} + /apis/events.k8s.io/v1/watch/namespaces/{namespace}/events: {} + /apis/events.k8s.io/v1/watch/namespaces/{namespace}/events/{name}: {} + /apis/flowcontrol.apiserver.k8s.io/: get: - description: list or watch objects of kind Ingress - operationId: listIngressForAllNamespaces - parameters: - - description: 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. - in: query - name: allowWatchBookmarks - schema: - type: boolean - - description: |- - 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. - in: query - name: continue - 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 - - description: A selector to restrict the list of returned objects by their - labels. Defaults to everything. - in: query - name: labelSelector - schema: - type: string - - description: |- - limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. - - The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. - in: query - name: limit - schema: - type: integer - - description: If 'true', then the output is pretty printed. - in: query - name: pretty - schema: - type: string - - description: |- - resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. - - Defaults to unset - in: query - name: resourceVersion - schema: - type: string - - description: |- - resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. - - Defaults to unset - in: query - name: resourceVersionMatch - schema: - type: string - - description: |- - `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic "Bookmark" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `"k8s.io/initial-events-end": "true"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. - - When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan - is interpreted as "data at least as new as the provided `resourceVersion`" - and the bookmark event is send when the state is synced - to a `resourceVersion` at least as fresh as the one provided by the ListOptions. - If `resourceVersion` is unset, this is interpreted as "consistent read" and the - bookmark event is send when the state is synced at least to the moment - when request started being processed. - - `resourceVersionMatch` set to any other value or unset - Invalid error is returned. - - Defaults to true if `resourceVersion=""` or `resourceVersion="0"` (for backward compatibility reasons) and to false otherwise. - in: query - name: sendInitialEvents - schema: - type: boolean - - description: Timeout for the list/watch call. This limits the duration of - the call, regardless of any activity or inactivity. - in: query - name: timeoutSeconds - schema: - type: integer - - description: Watch for changes to the described resources and return them - as a stream of add, update, and remove notifications. Specify resourceVersion. - in: query - name: watch - schema: - type: boolean + description: get information of a group + operationId: getAPIGroup responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.IngressList' + $ref: '#/components/schemas/v1.APIGroup' application/yaml: schema: - $ref: '#/components/schemas/v1.IngressList' + $ref: '#/components/schemas/v1.APIGroup' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.IngressList' - application/json;stream=watch: + $ref: '#/components/schemas/v1.APIGroup' + description: OK + "401": + content: {} + description: Unauthorized + tags: + - flowcontrolApiserver + x-accepts: application/json + /apis/flowcontrol.apiserver.k8s.io/v1/: + get: + description: get available resources + operationId: getAPIResources + responses: + "200": + content: + application/json: schema: - $ref: '#/components/schemas/v1.IngressList' - application/vnd.kubernetes.protobuf;stream=watch: + $ref: '#/components/schemas/v1.APIResourceList' + application/yaml: schema: - $ref: '#/components/schemas/v1.IngressList' + $ref: '#/components/schemas/v1.APIResourceList' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.APIResourceList' + application/cbor: + schema: + $ref: '#/components/schemas/v1.APIResourceList' description: OK "401": content: {} description: Unauthorized tags: - - networking_v1 - x-kubernetes-action: list - x-kubernetes-group-version-kind: - group: networking.k8s.io - kind: Ingress - version: v1 + - flowcontrolApiserver_v1 x-accepts: application/json - /apis/networking.k8s.io/v1/namespaces/{namespace}/ingresses: + /apis/flowcontrol.apiserver.k8s.io/v1/flowschemas: delete: - description: delete collection of Ingress - operationId: deleteCollectionNamespacedIngress + description: delete collection of FlowSchema + operationId: deleteCollectionFlowSchema parameters: - - description: object name and auth scope, such as for teams and projects - in: path - name: namespace - required: true - schema: - type: string - - description: If 'true', then the output is pretty printed. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -46205,6 +48912,20 @@ paths: name: gracePeriodSeconds schema: type: integer + - description: 'if set to true, it will trigger an unsafe deletion of the resource + in case the normal deletion flow fails with a corrupt object error. A resource + is considered corrupt if it can not be retrieved from the underlying storage + successfully because of a) its data can not be transformed e.g. decryption + failure, or b) it fails to decode into an object. NOTE: unsafe deletion + ignores finalizer constraints, skips precondition checks, and removes the + object from the storage. WARNING: This may potentially break the cluster + if the workload associated with the resource being unsafe-deleted relies + on normal deletion flow. Use only if you REALLY know what you are doing. + The default value is false, and the user must opt in to enable it' + in: query + name: ignoreStoreReadErrorWithClusterBreakingPotential + schema: + type: boolean - description: A selector to restrict the list of returned objects by their labels. Defaults to everything. in: query @@ -46296,31 +49017,30 @@ paths: application/vnd.kubernetes.protobuf: schema: $ref: '#/components/schemas/v1.Status' + application/cbor: + schema: + $ref: '#/components/schemas/v1.Status' description: OK "401": content: {} description: Unauthorized tags: - - networking_v1 + - flowcontrolApiserver_v1 x-kubernetes-action: deletecollection x-kubernetes-group-version-kind: - group: networking.k8s.io - kind: Ingress + group: flowcontrol.apiserver.k8s.io + kind: FlowSchema version: v1 x-codegen-request-body-name: body x-contentType: application/json x-accepts: application/json get: - description: list or watch objects of kind Ingress - operationId: listNamespacedIngress + description: list or watch objects of kind FlowSchema + operationId: listFlowSchema parameters: - - description: object name and auth scope, such as for teams and projects - in: path - name: namespace - required: true - schema: - type: string - - description: If 'true', then the output is pretty printed. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -46414,42 +49134,44 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.IngressList' + $ref: '#/components/schemas/v1.FlowSchemaList' application/yaml: schema: - $ref: '#/components/schemas/v1.IngressList' + $ref: '#/components/schemas/v1.FlowSchemaList' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.IngressList' + $ref: '#/components/schemas/v1.FlowSchemaList' + application/cbor: + schema: + $ref: '#/components/schemas/v1.FlowSchemaList' application/json;stream=watch: schema: - $ref: '#/components/schemas/v1.IngressList' + $ref: '#/components/schemas/v1.FlowSchemaList' application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: '#/components/schemas/v1.IngressList' + $ref: '#/components/schemas/v1.FlowSchemaList' + application/cbor-seq: + schema: + $ref: '#/components/schemas/v1.FlowSchemaList' description: OK "401": content: {} description: Unauthorized tags: - - networking_v1 + - flowcontrolApiserver_v1 x-kubernetes-action: list x-kubernetes-group-version-kind: - group: networking.k8s.io - kind: Ingress + group: flowcontrol.apiserver.k8s.io + kind: FlowSchema version: v1 x-accepts: application/json post: - description: create an Ingress - operationId: createNamespacedIngress + description: create a FlowSchema + operationId: createFlowSchema parameters: - - description: object name and auth scope, such as for teams and projects - in: path - name: namespace - required: true - schema: - type: string - - description: If 'true', then the output is pretty printed. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -46490,76 +49212,81 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.Ingress' + $ref: '#/components/schemas/v1.FlowSchema' required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.Ingress' + $ref: '#/components/schemas/v1.FlowSchema' application/yaml: schema: - $ref: '#/components/schemas/v1.Ingress' + $ref: '#/components/schemas/v1.FlowSchema' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Ingress' + $ref: '#/components/schemas/v1.FlowSchema' + application/cbor: + schema: + $ref: '#/components/schemas/v1.FlowSchema' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.Ingress' + $ref: '#/components/schemas/v1.FlowSchema' application/yaml: schema: - $ref: '#/components/schemas/v1.Ingress' + $ref: '#/components/schemas/v1.FlowSchema' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Ingress' + $ref: '#/components/schemas/v1.FlowSchema' + application/cbor: + schema: + $ref: '#/components/schemas/v1.FlowSchema' description: Created "202": content: application/json: schema: - $ref: '#/components/schemas/v1.Ingress' + $ref: '#/components/schemas/v1.FlowSchema' application/yaml: schema: - $ref: '#/components/schemas/v1.Ingress' + $ref: '#/components/schemas/v1.FlowSchema' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Ingress' + $ref: '#/components/schemas/v1.FlowSchema' + application/cbor: + schema: + $ref: '#/components/schemas/v1.FlowSchema' description: Accepted "401": content: {} description: Unauthorized tags: - - networking_v1 + - flowcontrolApiserver_v1 x-kubernetes-action: post x-kubernetes-group-version-kind: - group: networking.k8s.io - kind: Ingress + group: flowcontrol.apiserver.k8s.io + kind: FlowSchema version: v1 x-codegen-request-body-name: body x-contentType: application/json x-accepts: application/json - /apis/networking.k8s.io/v1/namespaces/{namespace}/ingresses/{name}: + /apis/flowcontrol.apiserver.k8s.io/v1/flowschemas/{name}: delete: - description: delete an Ingress - operationId: deleteNamespacedIngress + description: delete a FlowSchema + operationId: deleteFlowSchema parameters: - - description: name of the Ingress + - description: name of the FlowSchema in: path name: name required: true schema: type: string - - description: object name and auth scope, such as for teams and projects - in: path - name: namespace - required: true - schema: - type: string - - description: If 'true', then the output is pretty printed. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -46581,6 +49308,20 @@ paths: name: gracePeriodSeconds schema: type: integer + - description: 'if set to true, it will trigger an unsafe deletion of the resource + in case the normal deletion flow fails with a corrupt object error. A resource + is considered corrupt if it can not be retrieved from the underlying storage + successfully because of a) its data can not be transformed e.g. decryption + failure, or b) it fails to decode into an object. NOTE: unsafe deletion + ignores finalizer constraints, skips precondition checks, and removes the + object from the storage. WARNING: This may potentially break the cluster + if the workload associated with the resource being unsafe-deleted relies + on normal deletion flow. Use only if you REALLY know what you are doing. + The default value is false, and the user must opt in to enable it' + in: query + name: ignoreStoreReadErrorWithClusterBreakingPotential + schema: + type: boolean - description: '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 @@ -46618,6 +49359,9 @@ paths: application/vnd.kubernetes.protobuf: schema: $ref: '#/components/schemas/v1.Status' + application/cbor: + schema: + $ref: '#/components/schemas/v1.Status' description: OK "202": content: @@ -46630,37 +49374,36 @@ paths: application/vnd.kubernetes.protobuf: schema: $ref: '#/components/schemas/v1.Status' + application/cbor: + schema: + $ref: '#/components/schemas/v1.Status' description: Accepted "401": content: {} description: Unauthorized tags: - - networking_v1 + - flowcontrolApiserver_v1 x-kubernetes-action: delete x-kubernetes-group-version-kind: - group: networking.k8s.io - kind: Ingress + group: flowcontrol.apiserver.k8s.io + kind: FlowSchema version: v1 x-codegen-request-body-name: body x-contentType: application/json x-accepts: application/json get: - description: read the specified Ingress - operationId: readNamespacedIngress + description: read the specified FlowSchema + operationId: readFlowSchema parameters: - - description: name of the Ingress + - description: name of the FlowSchema in: path name: name required: true schema: type: string - - description: object name and auth scope, such as for teams and projects - in: path - name: namespace - required: true - schema: - type: string - - description: If 'true', then the output is pretty printed. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -46670,42 +49413,41 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.Ingress' + $ref: '#/components/schemas/v1.FlowSchema' application/yaml: schema: - $ref: '#/components/schemas/v1.Ingress' + $ref: '#/components/schemas/v1.FlowSchema' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Ingress' + $ref: '#/components/schemas/v1.FlowSchema' + application/cbor: + schema: + $ref: '#/components/schemas/v1.FlowSchema' description: OK "401": content: {} description: Unauthorized tags: - - networking_v1 + - flowcontrolApiserver_v1 x-kubernetes-action: get x-kubernetes-group-version-kind: - group: networking.k8s.io - kind: Ingress + group: flowcontrol.apiserver.k8s.io + kind: FlowSchema version: v1 x-accepts: application/json patch: - description: partially update the specified Ingress - operationId: patchNamespacedIngress + description: partially update the specified FlowSchema + operationId: patchFlowSchema parameters: - - description: name of the Ingress + - description: name of the FlowSchema in: path name: name required: true schema: type: string - - description: object name and auth scope, such as for teams and projects - in: path - name: namespace - required: true - schema: - type: string - - description: If 'true', then the output is pretty printed. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -46762,56 +49504,58 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.Ingress' + $ref: '#/components/schemas/v1.FlowSchema' application/yaml: schema: - $ref: '#/components/schemas/v1.Ingress' + $ref: '#/components/schemas/v1.FlowSchema' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Ingress' + $ref: '#/components/schemas/v1.FlowSchema' + application/cbor: + schema: + $ref: '#/components/schemas/v1.FlowSchema' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.Ingress' + $ref: '#/components/schemas/v1.FlowSchema' application/yaml: schema: - $ref: '#/components/schemas/v1.Ingress' + $ref: '#/components/schemas/v1.FlowSchema' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Ingress' + $ref: '#/components/schemas/v1.FlowSchema' + application/cbor: + schema: + $ref: '#/components/schemas/v1.FlowSchema' description: Created "401": content: {} description: Unauthorized tags: - - networking_v1 + - flowcontrolApiserver_v1 x-kubernetes-action: patch x-kubernetes-group-version-kind: - group: networking.k8s.io - kind: Ingress + group: flowcontrol.apiserver.k8s.io + kind: FlowSchema version: v1 x-codegen-request-body-name: body x-contentType: application/json x-accepts: application/json put: - description: replace the specified Ingress - operationId: replaceNamespacedIngress + description: replace the specified FlowSchema + operationId: replaceFlowSchema parameters: - - description: name of the Ingress + - description: name of the FlowSchema in: path name: name required: true schema: type: string - - description: object name and auth scope, such as for teams and projects - in: path - name: namespace - required: true - schema: - type: string - - description: If 'true', then the output is pretty printed. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -46852,64 +49596,66 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.Ingress' + $ref: '#/components/schemas/v1.FlowSchema' required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.Ingress' + $ref: '#/components/schemas/v1.FlowSchema' application/yaml: schema: - $ref: '#/components/schemas/v1.Ingress' + $ref: '#/components/schemas/v1.FlowSchema' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Ingress' + $ref: '#/components/schemas/v1.FlowSchema' + application/cbor: + schema: + $ref: '#/components/schemas/v1.FlowSchema' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.Ingress' + $ref: '#/components/schemas/v1.FlowSchema' application/yaml: schema: - $ref: '#/components/schemas/v1.Ingress' + $ref: '#/components/schemas/v1.FlowSchema' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Ingress' + $ref: '#/components/schemas/v1.FlowSchema' + application/cbor: + schema: + $ref: '#/components/schemas/v1.FlowSchema' description: Created "401": content: {} description: Unauthorized tags: - - networking_v1 + - flowcontrolApiserver_v1 x-kubernetes-action: put x-kubernetes-group-version-kind: - group: networking.k8s.io - kind: Ingress + group: flowcontrol.apiserver.k8s.io + kind: FlowSchema version: v1 x-codegen-request-body-name: body x-contentType: application/json x-accepts: application/json - /apis/networking.k8s.io/v1/namespaces/{namespace}/ingresses/{name}/status: + /apis/flowcontrol.apiserver.k8s.io/v1/flowschemas/{name}/status: get: - description: read status of the specified Ingress - operationId: readNamespacedIngressStatus + description: read status of the specified FlowSchema + operationId: readFlowSchemaStatus parameters: - - description: name of the Ingress + - description: name of the FlowSchema in: path name: name required: true schema: type: string - - description: object name and auth scope, such as for teams and projects - in: path - name: namespace - required: true - schema: - type: string - - description: If 'true', then the output is pretty printed. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -46919,42 +49665,41 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.Ingress' + $ref: '#/components/schemas/v1.FlowSchema' application/yaml: schema: - $ref: '#/components/schemas/v1.Ingress' + $ref: '#/components/schemas/v1.FlowSchema' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Ingress' + $ref: '#/components/schemas/v1.FlowSchema' + application/cbor: + schema: + $ref: '#/components/schemas/v1.FlowSchema' description: OK "401": content: {} description: Unauthorized tags: - - networking_v1 + - flowcontrolApiserver_v1 x-kubernetes-action: get x-kubernetes-group-version-kind: - group: networking.k8s.io - kind: Ingress + group: flowcontrol.apiserver.k8s.io + kind: FlowSchema version: v1 x-accepts: application/json patch: - description: partially update status of the specified Ingress - operationId: patchNamespacedIngressStatus + description: partially update status of the specified FlowSchema + operationId: patchFlowSchemaStatus parameters: - - description: name of the Ingress + - description: name of the FlowSchema in: path name: name required: true schema: type: string - - description: object name and auth scope, such as for teams and projects - in: path - name: namespace - required: true - schema: - type: string - - description: If 'true', then the output is pretty printed. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -47011,56 +49756,58 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.Ingress' + $ref: '#/components/schemas/v1.FlowSchema' application/yaml: schema: - $ref: '#/components/schemas/v1.Ingress' + $ref: '#/components/schemas/v1.FlowSchema' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Ingress' + $ref: '#/components/schemas/v1.FlowSchema' + application/cbor: + schema: + $ref: '#/components/schemas/v1.FlowSchema' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.Ingress' + $ref: '#/components/schemas/v1.FlowSchema' application/yaml: schema: - $ref: '#/components/schemas/v1.Ingress' + $ref: '#/components/schemas/v1.FlowSchema' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Ingress' + $ref: '#/components/schemas/v1.FlowSchema' + application/cbor: + schema: + $ref: '#/components/schemas/v1.FlowSchema' description: Created "401": content: {} description: Unauthorized tags: - - networking_v1 + - flowcontrolApiserver_v1 x-kubernetes-action: patch x-kubernetes-group-version-kind: - group: networking.k8s.io - kind: Ingress + group: flowcontrol.apiserver.k8s.io + kind: FlowSchema version: v1 x-codegen-request-body-name: body x-contentType: application/json x-accepts: application/json put: - description: replace status of the specified Ingress - operationId: replaceNamespacedIngressStatus + description: replace status of the specified FlowSchema + operationId: replaceFlowSchemaStatus parameters: - - description: name of the Ingress + - description: name of the FlowSchema in: path name: name required: true schema: type: string - - description: object name and auth scope, such as for teams and projects - in: path - name: namespace - required: true - schema: - type: string - - description: If 'true', then the output is pretty printed. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -47101,58 +49848,60 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.Ingress' + $ref: '#/components/schemas/v1.FlowSchema' required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.Ingress' + $ref: '#/components/schemas/v1.FlowSchema' application/yaml: schema: - $ref: '#/components/schemas/v1.Ingress' + $ref: '#/components/schemas/v1.FlowSchema' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Ingress' + $ref: '#/components/schemas/v1.FlowSchema' + application/cbor: + schema: + $ref: '#/components/schemas/v1.FlowSchema' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.Ingress' + $ref: '#/components/schemas/v1.FlowSchema' application/yaml: schema: - $ref: '#/components/schemas/v1.Ingress' + $ref: '#/components/schemas/v1.FlowSchema' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Ingress' + $ref: '#/components/schemas/v1.FlowSchema' + application/cbor: + schema: + $ref: '#/components/schemas/v1.FlowSchema' description: Created "401": content: {} description: Unauthorized tags: - - networking_v1 + - flowcontrolApiserver_v1 x-kubernetes-action: put x-kubernetes-group-version-kind: - group: networking.k8s.io - kind: Ingress + group: flowcontrol.apiserver.k8s.io + kind: FlowSchema version: v1 x-codegen-request-body-name: body x-contentType: application/json x-accepts: application/json - /apis/networking.k8s.io/v1/namespaces/{namespace}/networkpolicies: + /apis/flowcontrol.apiserver.k8s.io/v1/prioritylevelconfigurations: delete: - description: delete collection of NetworkPolicy - operationId: deleteCollectionNamespacedNetworkPolicy + description: delete collection of PriorityLevelConfiguration + operationId: deleteCollectionPriorityLevelConfiguration parameters: - - description: object name and auth scope, such as for teams and projects - in: path - name: namespace - required: true - schema: - type: string - - description: If 'true', then the output is pretty printed. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -47188,6 +49937,20 @@ paths: name: gracePeriodSeconds schema: type: integer + - description: 'if set to true, it will trigger an unsafe deletion of the resource + in case the normal deletion flow fails with a corrupt object error. A resource + is considered corrupt if it can not be retrieved from the underlying storage + successfully because of a) its data can not be transformed e.g. decryption + failure, or b) it fails to decode into an object. NOTE: unsafe deletion + ignores finalizer constraints, skips precondition checks, and removes the + object from the storage. WARNING: This may potentially break the cluster + if the workload associated with the resource being unsafe-deleted relies + on normal deletion flow. Use only if you REALLY know what you are doing. + The default value is false, and the user must opt in to enable it' + in: query + name: ignoreStoreReadErrorWithClusterBreakingPotential + schema: + type: boolean - description: A selector to restrict the list of returned objects by their labels. Defaults to everything. in: query @@ -47279,31 +50042,30 @@ paths: application/vnd.kubernetes.protobuf: schema: $ref: '#/components/schemas/v1.Status' + application/cbor: + schema: + $ref: '#/components/schemas/v1.Status' description: OK "401": content: {} description: Unauthorized tags: - - networking_v1 + - flowcontrolApiserver_v1 x-kubernetes-action: deletecollection x-kubernetes-group-version-kind: - group: networking.k8s.io - kind: NetworkPolicy + group: flowcontrol.apiserver.k8s.io + kind: PriorityLevelConfiguration version: v1 x-codegen-request-body-name: body x-contentType: application/json x-accepts: application/json get: - description: list or watch objects of kind NetworkPolicy - operationId: listNamespacedNetworkPolicy + description: list or watch objects of kind PriorityLevelConfiguration + operationId: listPriorityLevelConfiguration parameters: - - description: object name and auth scope, such as for teams and projects - in: path - name: namespace - required: true - schema: - type: string - - description: If 'true', then the output is pretty printed. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -47397,42 +50159,44 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.NetworkPolicyList' + $ref: '#/components/schemas/v1.PriorityLevelConfigurationList' application/yaml: schema: - $ref: '#/components/schemas/v1.NetworkPolicyList' + $ref: '#/components/schemas/v1.PriorityLevelConfigurationList' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.NetworkPolicyList' + $ref: '#/components/schemas/v1.PriorityLevelConfigurationList' + application/cbor: + schema: + $ref: '#/components/schemas/v1.PriorityLevelConfigurationList' application/json;stream=watch: schema: - $ref: '#/components/schemas/v1.NetworkPolicyList' + $ref: '#/components/schemas/v1.PriorityLevelConfigurationList' application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: '#/components/schemas/v1.NetworkPolicyList' + $ref: '#/components/schemas/v1.PriorityLevelConfigurationList' + application/cbor-seq: + schema: + $ref: '#/components/schemas/v1.PriorityLevelConfigurationList' description: OK "401": content: {} description: Unauthorized tags: - - networking_v1 + - flowcontrolApiserver_v1 x-kubernetes-action: list x-kubernetes-group-version-kind: - group: networking.k8s.io - kind: NetworkPolicy + group: flowcontrol.apiserver.k8s.io + kind: PriorityLevelConfiguration version: v1 x-accepts: application/json post: - description: create a NetworkPolicy - operationId: createNamespacedNetworkPolicy + description: create a PriorityLevelConfiguration + operationId: createPriorityLevelConfiguration parameters: - - description: object name and auth scope, such as for teams and projects - in: path - name: namespace - required: true - schema: - type: string - - description: If 'true', then the output is pretty printed. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -47473,76 +50237,81 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.NetworkPolicy' + $ref: '#/components/schemas/v1.PriorityLevelConfiguration' required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.NetworkPolicy' + $ref: '#/components/schemas/v1.PriorityLevelConfiguration' application/yaml: schema: - $ref: '#/components/schemas/v1.NetworkPolicy' + $ref: '#/components/schemas/v1.PriorityLevelConfiguration' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.NetworkPolicy' + $ref: '#/components/schemas/v1.PriorityLevelConfiguration' + application/cbor: + schema: + $ref: '#/components/schemas/v1.PriorityLevelConfiguration' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.NetworkPolicy' + $ref: '#/components/schemas/v1.PriorityLevelConfiguration' application/yaml: schema: - $ref: '#/components/schemas/v1.NetworkPolicy' + $ref: '#/components/schemas/v1.PriorityLevelConfiguration' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.NetworkPolicy' + $ref: '#/components/schemas/v1.PriorityLevelConfiguration' + application/cbor: + schema: + $ref: '#/components/schemas/v1.PriorityLevelConfiguration' description: Created "202": content: application/json: schema: - $ref: '#/components/schemas/v1.NetworkPolicy' + $ref: '#/components/schemas/v1.PriorityLevelConfiguration' application/yaml: schema: - $ref: '#/components/schemas/v1.NetworkPolicy' + $ref: '#/components/schemas/v1.PriorityLevelConfiguration' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.NetworkPolicy' + $ref: '#/components/schemas/v1.PriorityLevelConfiguration' + application/cbor: + schema: + $ref: '#/components/schemas/v1.PriorityLevelConfiguration' description: Accepted "401": content: {} description: Unauthorized tags: - - networking_v1 + - flowcontrolApiserver_v1 x-kubernetes-action: post x-kubernetes-group-version-kind: - group: networking.k8s.io - kind: NetworkPolicy + group: flowcontrol.apiserver.k8s.io + kind: PriorityLevelConfiguration version: v1 x-codegen-request-body-name: body x-contentType: application/json x-accepts: application/json - /apis/networking.k8s.io/v1/namespaces/{namespace}/networkpolicies/{name}: + /apis/flowcontrol.apiserver.k8s.io/v1/prioritylevelconfigurations/{name}: delete: - description: delete a NetworkPolicy - operationId: deleteNamespacedNetworkPolicy + description: delete a PriorityLevelConfiguration + operationId: deletePriorityLevelConfiguration parameters: - - description: name of the NetworkPolicy + - description: name of the PriorityLevelConfiguration in: path name: name required: true schema: type: string - - description: object name and auth scope, such as for teams and projects - in: path - name: namespace - required: true - schema: - type: string - - description: If 'true', then the output is pretty printed. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -47564,6 +50333,20 @@ paths: name: gracePeriodSeconds schema: type: integer + - description: 'if set to true, it will trigger an unsafe deletion of the resource + in case the normal deletion flow fails with a corrupt object error. A resource + is considered corrupt if it can not be retrieved from the underlying storage + successfully because of a) its data can not be transformed e.g. decryption + failure, or b) it fails to decode into an object. NOTE: unsafe deletion + ignores finalizer constraints, skips precondition checks, and removes the + object from the storage. WARNING: This may potentially break the cluster + if the workload associated with the resource being unsafe-deleted relies + on normal deletion flow. Use only if you REALLY know what you are doing. + The default value is false, and the user must opt in to enable it' + in: query + name: ignoreStoreReadErrorWithClusterBreakingPotential + schema: + type: boolean - description: '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 @@ -47601,6 +50384,9 @@ paths: application/vnd.kubernetes.protobuf: schema: $ref: '#/components/schemas/v1.Status' + application/cbor: + schema: + $ref: '#/components/schemas/v1.Status' description: OK "202": content: @@ -47613,37 +50399,36 @@ paths: application/vnd.kubernetes.protobuf: schema: $ref: '#/components/schemas/v1.Status' + application/cbor: + schema: + $ref: '#/components/schemas/v1.Status' description: Accepted "401": content: {} description: Unauthorized tags: - - networking_v1 + - flowcontrolApiserver_v1 x-kubernetes-action: delete x-kubernetes-group-version-kind: - group: networking.k8s.io - kind: NetworkPolicy + group: flowcontrol.apiserver.k8s.io + kind: PriorityLevelConfiguration version: v1 x-codegen-request-body-name: body x-contentType: application/json x-accepts: application/json get: - description: read the specified NetworkPolicy - operationId: readNamespacedNetworkPolicy + description: read the specified PriorityLevelConfiguration + operationId: readPriorityLevelConfiguration parameters: - - description: name of the NetworkPolicy + - description: name of the PriorityLevelConfiguration in: path name: name required: true schema: type: string - - description: object name and auth scope, such as for teams and projects - in: path - name: namespace - required: true - schema: - type: string - - description: If 'true', then the output is pretty printed. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -47653,42 +50438,41 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.NetworkPolicy' + $ref: '#/components/schemas/v1.PriorityLevelConfiguration' application/yaml: schema: - $ref: '#/components/schemas/v1.NetworkPolicy' + $ref: '#/components/schemas/v1.PriorityLevelConfiguration' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.NetworkPolicy' + $ref: '#/components/schemas/v1.PriorityLevelConfiguration' + application/cbor: + schema: + $ref: '#/components/schemas/v1.PriorityLevelConfiguration' description: OK "401": content: {} description: Unauthorized tags: - - networking_v1 + - flowcontrolApiserver_v1 x-kubernetes-action: get x-kubernetes-group-version-kind: - group: networking.k8s.io - kind: NetworkPolicy + group: flowcontrol.apiserver.k8s.io + kind: PriorityLevelConfiguration version: v1 x-accepts: application/json patch: - description: partially update the specified NetworkPolicy - operationId: patchNamespacedNetworkPolicy + description: partially update the specified PriorityLevelConfiguration + operationId: patchPriorityLevelConfiguration parameters: - - description: name of the NetworkPolicy + - description: name of the PriorityLevelConfiguration in: path name: name required: true schema: type: string - - description: object name and auth scope, such as for teams and projects - in: path - name: namespace - required: true - schema: - type: string - - description: If 'true', then the output is pretty printed. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -47745,56 +50529,202 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.NetworkPolicy' + $ref: '#/components/schemas/v1.PriorityLevelConfiguration' application/yaml: schema: - $ref: '#/components/schemas/v1.NetworkPolicy' + $ref: '#/components/schemas/v1.PriorityLevelConfiguration' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.NetworkPolicy' + $ref: '#/components/schemas/v1.PriorityLevelConfiguration' + application/cbor: + schema: + $ref: '#/components/schemas/v1.PriorityLevelConfiguration' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.NetworkPolicy' + $ref: '#/components/schemas/v1.PriorityLevelConfiguration' application/yaml: schema: - $ref: '#/components/schemas/v1.NetworkPolicy' + $ref: '#/components/schemas/v1.PriorityLevelConfiguration' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.NetworkPolicy' + $ref: '#/components/schemas/v1.PriorityLevelConfiguration' + application/cbor: + schema: + $ref: '#/components/schemas/v1.PriorityLevelConfiguration' description: Created "401": content: {} description: Unauthorized tags: - - networking_v1 + - flowcontrolApiserver_v1 x-kubernetes-action: patch x-kubernetes-group-version-kind: - group: networking.k8s.io - kind: NetworkPolicy + group: flowcontrol.apiserver.k8s.io + kind: PriorityLevelConfiguration version: v1 x-codegen-request-body-name: body x-contentType: application/json x-accepts: application/json put: - description: replace the specified NetworkPolicy - operationId: replaceNamespacedNetworkPolicy + description: replace the specified PriorityLevelConfiguration + operationId: replacePriorityLevelConfiguration parameters: - - description: name of the NetworkPolicy + - description: name of the PriorityLevelConfiguration in: path name: name required: true schema: type: string - - description: object name and auth scope, such as for teams and projects + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). + in: query + name: pretty + schema: + type: string + - description: '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' + in: query + name: dryRun + schema: + type: string + - description: fieldManager is a name associated with the actor or entity that + is making these changes. The value must be less than or 128 characters long, + and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + in: query + name: fieldManager + schema: + type: string + - description: 'fieldValidation instructs the server on how to handle objects + in the request (POST/PUT/PATCH) containing unknown or duplicate fields. + Valid values are: - Ignore: This will ignore any unknown fields that are + silently dropped from the object, and will ignore all but the last duplicate + field that the decoder encounters. This is the default behavior prior to + v1.23. - Warn: This will send a warning via the standard warning response + header for each unknown field that is dropped from the object, and for each + duplicate field that is encountered. The request will still succeed if there + are no other errors, and will only persist the last of any duplicate fields. + This is the default in v1.23+ - Strict: This will fail the request with + a BadRequest error if any unknown fields would be dropped from the object, + or if any duplicate fields are present. The error returned from the server + will contain all unknown and duplicate fields encountered.' + in: query + name: fieldValidation + schema: + type: string + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/v1.PriorityLevelConfiguration' + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.PriorityLevelConfiguration' + application/yaml: + schema: + $ref: '#/components/schemas/v1.PriorityLevelConfiguration' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.PriorityLevelConfiguration' + application/cbor: + schema: + $ref: '#/components/schemas/v1.PriorityLevelConfiguration' + description: OK + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.PriorityLevelConfiguration' + application/yaml: + schema: + $ref: '#/components/schemas/v1.PriorityLevelConfiguration' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.PriorityLevelConfiguration' + application/cbor: + schema: + $ref: '#/components/schemas/v1.PriorityLevelConfiguration' + description: Created + "401": + content: {} + description: Unauthorized + tags: + - flowcontrolApiserver_v1 + x-kubernetes-action: put + x-kubernetes-group-version-kind: + group: flowcontrol.apiserver.k8s.io + kind: PriorityLevelConfiguration + version: v1 + x-codegen-request-body-name: body + x-contentType: application/json + x-accepts: application/json + /apis/flowcontrol.apiserver.k8s.io/v1/prioritylevelconfigurations/{name}/status: + get: + description: read status of the specified PriorityLevelConfiguration + operationId: readPriorityLevelConfigurationStatus + parameters: + - description: name of the PriorityLevelConfiguration in: path - name: namespace + name: name required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). + in: query + name: pretty + schema: + type: string + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.PriorityLevelConfiguration' + application/yaml: + schema: + $ref: '#/components/schemas/v1.PriorityLevelConfiguration' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.PriorityLevelConfiguration' + application/cbor: + schema: + $ref: '#/components/schemas/v1.PriorityLevelConfiguration' + description: OK + "401": + content: {} + description: Unauthorized + tags: + - flowcontrolApiserver_v1 + x-kubernetes-action: get + x-kubernetes-group-version-kind: + group: flowcontrol.apiserver.k8s.io + kind: PriorityLevelConfiguration + version: v1 + x-accepts: application/json + patch: + description: partially update status of the specified PriorityLevelConfiguration + operationId: patchPriorityLevelConfigurationStatus + parameters: + - description: name of the PriorityLevelConfiguration + in: path + name: name + required: true + schema: + type: string + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -47810,6 +50740,8 @@ paths: - description: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + This field is required for apply requests (application/apply-patch) but + optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). in: query name: fieldManager schema: @@ -47831,183 +50763,190 @@ paths: name: fieldValidation schema: type: string + - description: Force is going to "force" Apply requests. It means user will + re-acquire conflicting fields owned by other people. Force flag must be + unset for non-apply patch requests. + in: query + name: force + schema: + type: boolean requestBody: content: application/json: schema: - $ref: '#/components/schemas/v1.NetworkPolicy' + $ref: '#/components/schemas/v1.Patch' required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.NetworkPolicy' + $ref: '#/components/schemas/v1.PriorityLevelConfiguration' application/yaml: schema: - $ref: '#/components/schemas/v1.NetworkPolicy' + $ref: '#/components/schemas/v1.PriorityLevelConfiguration' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.NetworkPolicy' + $ref: '#/components/schemas/v1.PriorityLevelConfiguration' + application/cbor: + schema: + $ref: '#/components/schemas/v1.PriorityLevelConfiguration' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.NetworkPolicy' + $ref: '#/components/schemas/v1.PriorityLevelConfiguration' application/yaml: schema: - $ref: '#/components/schemas/v1.NetworkPolicy' + $ref: '#/components/schemas/v1.PriorityLevelConfiguration' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.NetworkPolicy' + $ref: '#/components/schemas/v1.PriorityLevelConfiguration' + application/cbor: + schema: + $ref: '#/components/schemas/v1.PriorityLevelConfiguration' description: Created "401": content: {} description: Unauthorized tags: - - networking_v1 - x-kubernetes-action: put + - flowcontrolApiserver_v1 + x-kubernetes-action: patch x-kubernetes-group-version-kind: - group: networking.k8s.io - kind: NetworkPolicy + group: flowcontrol.apiserver.k8s.io + kind: PriorityLevelConfiguration version: v1 x-codegen-request-body-name: body x-contentType: application/json x-accepts: application/json - /apis/networking.k8s.io/v1/networkpolicies: - get: - description: list or watch objects of kind NetworkPolicy - operationId: listNetworkPolicyForAllNamespaces + put: + description: replace status of the specified PriorityLevelConfiguration + operationId: replacePriorityLevelConfigurationStatus parameters: - - description: 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. - in: query - name: allowWatchBookmarks - schema: - type: boolean - - description: |- - 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. - in: query - name: continue - schema: - type: string - - description: A selector to restrict the list of returned objects by their - fields. Defaults to everything. - in: query - name: fieldSelector + - description: name of the PriorityLevelConfiguration + in: path + name: name + required: true schema: type: string - - description: A selector to restrict the list of returned objects by their - labels. Defaults to everything. - in: query - name: labelSelector - schema: - type: string - - description: |- - limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. - - The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. - in: query - name: limit - schema: - type: integer - - description: If 'true', then the output is pretty printed. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: type: string - - description: |- - resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. - - Defaults to unset + - description: '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' in: query - name: resourceVersion + name: dryRun schema: type: string - - description: |- - resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. - - Defaults to unset + - description: fieldManager is a name associated with the actor or entity that + is making these changes. The value must be less than or 128 characters long, + and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. in: query - name: resourceVersionMatch + name: fieldManager schema: type: string - - description: |- - `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic "Bookmark" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `"k8s.io/initial-events-end": "true"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. - - When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan - is interpreted as "data at least as new as the provided `resourceVersion`" - and the bookmark event is send when the state is synced - to a `resourceVersion` at least as fresh as the one provided by the ListOptions. - If `resourceVersion` is unset, this is interpreted as "consistent read" and the - bookmark event is send when the state is synced at least to the moment - when request started being processed. - - `resourceVersionMatch` set to any other value or unset - Invalid error is returned. - - Defaults to true if `resourceVersion=""` or `resourceVersion="0"` (for backward compatibility reasons) and to false otherwise. - in: query - name: sendInitialEvents - schema: - type: boolean - - description: Timeout for the list/watch call. This limits the duration of - the call, regardless of any activity or inactivity. - in: query - name: timeoutSeconds - schema: - type: integer - - description: Watch for changes to the described resources and return them - as a stream of add, update, and remove notifications. Specify resourceVersion. + - description: 'fieldValidation instructs the server on how to handle objects + in the request (POST/PUT/PATCH) containing unknown or duplicate fields. + Valid values are: - Ignore: This will ignore any unknown fields that are + silently dropped from the object, and will ignore all but the last duplicate + field that the decoder encounters. This is the default behavior prior to + v1.23. - Warn: This will send a warning via the standard warning response + header for each unknown field that is dropped from the object, and for each + duplicate field that is encountered. The request will still succeed if there + are no other errors, and will only persist the last of any duplicate fields. + This is the default in v1.23+ - Strict: This will fail the request with + a BadRequest error if any unknown fields would be dropped from the object, + or if any duplicate fields are present. The error returned from the server + will contain all unknown and duplicate fields encountered.' in: query - name: watch + name: fieldValidation schema: - type: boolean + type: string + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/v1.PriorityLevelConfiguration' + required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.NetworkPolicyList' + $ref: '#/components/schemas/v1.PriorityLevelConfiguration' application/yaml: schema: - $ref: '#/components/schemas/v1.NetworkPolicyList' + $ref: '#/components/schemas/v1.PriorityLevelConfiguration' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.NetworkPolicyList' - application/json;stream=watch: - schema: - $ref: '#/components/schemas/v1.NetworkPolicyList' - application/vnd.kubernetes.protobuf;stream=watch: + $ref: '#/components/schemas/v1.PriorityLevelConfiguration' + application/cbor: schema: - $ref: '#/components/schemas/v1.NetworkPolicyList' + $ref: '#/components/schemas/v1.PriorityLevelConfiguration' description: OK + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.PriorityLevelConfiguration' + application/yaml: + schema: + $ref: '#/components/schemas/v1.PriorityLevelConfiguration' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.PriorityLevelConfiguration' + application/cbor: + schema: + $ref: '#/components/schemas/v1.PriorityLevelConfiguration' + description: Created "401": content: {} description: Unauthorized tags: - - networking_v1 - x-kubernetes-action: list + - flowcontrolApiserver_v1 + x-kubernetes-action: put x-kubernetes-group-version-kind: - group: networking.k8s.io - kind: NetworkPolicy + group: flowcontrol.apiserver.k8s.io + kind: PriorityLevelConfiguration version: v1 + x-codegen-request-body-name: body + x-contentType: application/json x-accepts: application/json - /apis/networking.k8s.io/v1/watch/ingressclasses: {} - /apis/networking.k8s.io/v1/watch/ingressclasses/{name}: {} - /apis/networking.k8s.io/v1/watch/ingresses: {} - /apis/networking.k8s.io/v1/watch/namespaces/{namespace}/ingresses: {} - /apis/networking.k8s.io/v1/watch/namespaces/{namespace}/ingresses/{name}: {} - /apis/networking.k8s.io/v1/watch/namespaces/{namespace}/networkpolicies: {} - /apis/networking.k8s.io/v1/watch/namespaces/{namespace}/networkpolicies/{name}: {} - /apis/networking.k8s.io/v1/watch/networkpolicies: {} - /apis/networking.k8s.io/v1alpha1/: + /apis/flowcontrol.apiserver.k8s.io/v1/watch/flowschemas: {} + /apis/flowcontrol.apiserver.k8s.io/v1/watch/flowschemas/{name}: {} + /apis/flowcontrol.apiserver.k8s.io/v1/watch/prioritylevelconfigurations: {} + /apis/flowcontrol.apiserver.k8s.io/v1/watch/prioritylevelconfigurations/{name}: {} + /apis/internal.apiserver.k8s.io/: + get: + description: get information of a group + operationId: getAPIGroup + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.APIGroup' + application/yaml: + schema: + $ref: '#/components/schemas/v1.APIGroup' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.APIGroup' + description: OK + "401": + content: {} + description: Unauthorized + tags: + - internalApiserver + x-accepts: application/json + /apis/internal.apiserver.k8s.io/v1alpha1/: get: description: get available resources operationId: getAPIResources @@ -48023,19 +50962,24 @@ paths: application/vnd.kubernetes.protobuf: schema: $ref: '#/components/schemas/v1.APIResourceList' + application/cbor: + schema: + $ref: '#/components/schemas/v1.APIResourceList' description: OK "401": content: {} description: Unauthorized tags: - - networking_v1alpha1 + - internalApiserver_v1alpha1 x-accepts: application/json - /apis/networking.k8s.io/v1alpha1/clustercidrs: + /apis/internal.apiserver.k8s.io/v1alpha1/storageversions: delete: - description: delete collection of ClusterCIDR - operationId: deleteCollectionClusterCIDR + description: delete collection of StorageVersion + operationId: deleteCollectionStorageVersion parameters: - - description: If 'true', then the output is pretty printed. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -48071,6 +51015,20 @@ paths: name: gracePeriodSeconds schema: type: integer + - description: 'if set to true, it will trigger an unsafe deletion of the resource + in case the normal deletion flow fails with a corrupt object error. A resource + is considered corrupt if it can not be retrieved from the underlying storage + successfully because of a) its data can not be transformed e.g. decryption + failure, or b) it fails to decode into an object. NOTE: unsafe deletion + ignores finalizer constraints, skips precondition checks, and removes the + object from the storage. WARNING: This may potentially break the cluster + if the workload associated with the resource being unsafe-deleted relies + on normal deletion flow. Use only if you REALLY know what you are doing. + The default value is false, and the user must opt in to enable it' + in: query + name: ignoreStoreReadErrorWithClusterBreakingPotential + schema: + type: boolean - description: A selector to restrict the list of returned objects by their labels. Defaults to everything. in: query @@ -48162,25 +51120,30 @@ paths: application/vnd.kubernetes.protobuf: schema: $ref: '#/components/schemas/v1.Status' + application/cbor: + schema: + $ref: '#/components/schemas/v1.Status' description: OK "401": content: {} description: Unauthorized tags: - - networking_v1alpha1 + - internalApiserver_v1alpha1 x-kubernetes-action: deletecollection x-kubernetes-group-version-kind: - group: networking.k8s.io - kind: ClusterCIDR + group: internal.apiserver.k8s.io + kind: StorageVersion version: v1alpha1 x-codegen-request-body-name: body x-contentType: application/json x-accepts: application/json get: - description: list or watch objects of kind ClusterCIDR - operationId: listClusterCIDR + description: list or watch objects of kind StorageVersion + operationId: listStorageVersion parameters: - - description: If 'true', then the output is pretty printed. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -48274,36 +51237,44 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1alpha1.ClusterCIDRList' + $ref: '#/components/schemas/v1alpha1.StorageVersionList' application/yaml: schema: - $ref: '#/components/schemas/v1alpha1.ClusterCIDRList' + $ref: '#/components/schemas/v1alpha1.StorageVersionList' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha1.ClusterCIDRList' + $ref: '#/components/schemas/v1alpha1.StorageVersionList' + application/cbor: + schema: + $ref: '#/components/schemas/v1alpha1.StorageVersionList' application/json;stream=watch: schema: - $ref: '#/components/schemas/v1alpha1.ClusterCIDRList' + $ref: '#/components/schemas/v1alpha1.StorageVersionList' application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: '#/components/schemas/v1alpha1.ClusterCIDRList' + $ref: '#/components/schemas/v1alpha1.StorageVersionList' + application/cbor-seq: + schema: + $ref: '#/components/schemas/v1alpha1.StorageVersionList' description: OK "401": content: {} description: Unauthorized tags: - - networking_v1alpha1 + - internalApiserver_v1alpha1 x-kubernetes-action: list x-kubernetes-group-version-kind: - group: networking.k8s.io - kind: ClusterCIDR + group: internal.apiserver.k8s.io + kind: StorageVersion version: v1alpha1 x-accepts: application/json post: - description: create a ClusterCIDR - operationId: createClusterCIDR + description: create a StorageVersion + operationId: createStorageVersion parameters: - - description: If 'true', then the output is pretty printed. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -48344,70 +51315,81 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1alpha1.ClusterCIDR' + $ref: '#/components/schemas/v1alpha1.StorageVersion' required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1alpha1.ClusterCIDR' + $ref: '#/components/schemas/v1alpha1.StorageVersion' application/yaml: schema: - $ref: '#/components/schemas/v1alpha1.ClusterCIDR' + $ref: '#/components/schemas/v1alpha1.StorageVersion' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha1.ClusterCIDR' + $ref: '#/components/schemas/v1alpha1.StorageVersion' + application/cbor: + schema: + $ref: '#/components/schemas/v1alpha1.StorageVersion' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1alpha1.ClusterCIDR' + $ref: '#/components/schemas/v1alpha1.StorageVersion' application/yaml: schema: - $ref: '#/components/schemas/v1alpha1.ClusterCIDR' + $ref: '#/components/schemas/v1alpha1.StorageVersion' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha1.ClusterCIDR' + $ref: '#/components/schemas/v1alpha1.StorageVersion' + application/cbor: + schema: + $ref: '#/components/schemas/v1alpha1.StorageVersion' description: Created "202": content: application/json: schema: - $ref: '#/components/schemas/v1alpha1.ClusterCIDR' + $ref: '#/components/schemas/v1alpha1.StorageVersion' application/yaml: schema: - $ref: '#/components/schemas/v1alpha1.ClusterCIDR' + $ref: '#/components/schemas/v1alpha1.StorageVersion' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha1.ClusterCIDR' + $ref: '#/components/schemas/v1alpha1.StorageVersion' + application/cbor: + schema: + $ref: '#/components/schemas/v1alpha1.StorageVersion' description: Accepted "401": content: {} description: Unauthorized tags: - - networking_v1alpha1 + - internalApiserver_v1alpha1 x-kubernetes-action: post x-kubernetes-group-version-kind: - group: networking.k8s.io - kind: ClusterCIDR + group: internal.apiserver.k8s.io + kind: StorageVersion version: v1alpha1 x-codegen-request-body-name: body x-contentType: application/json x-accepts: application/json - /apis/networking.k8s.io/v1alpha1/clustercidrs/{name}: + /apis/internal.apiserver.k8s.io/v1alpha1/storageversions/{name}: delete: - description: delete a ClusterCIDR - operationId: deleteClusterCIDR + description: delete a StorageVersion + operationId: deleteStorageVersion parameters: - - description: name of the ClusterCIDR + - description: name of the StorageVersion in: path name: name required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -48429,6 +51411,20 @@ paths: name: gracePeriodSeconds schema: type: integer + - description: 'if set to true, it will trigger an unsafe deletion of the resource + in case the normal deletion flow fails with a corrupt object error. A resource + is considered corrupt if it can not be retrieved from the underlying storage + successfully because of a) its data can not be transformed e.g. decryption + failure, or b) it fails to decode into an object. NOTE: unsafe deletion + ignores finalizer constraints, skips precondition checks, and removes the + object from the storage. WARNING: This may potentially break the cluster + if the workload associated with the resource being unsafe-deleted relies + on normal deletion flow. Use only if you REALLY know what you are doing. + The default value is false, and the user must opt in to enable it' + in: query + name: ignoreStoreReadErrorWithClusterBreakingPotential + schema: + type: boolean - description: '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 @@ -48466,6 +51462,9 @@ paths: application/vnd.kubernetes.protobuf: schema: $ref: '#/components/schemas/v1.Status' + application/cbor: + schema: + $ref: '#/components/schemas/v1.Status' description: OK "202": content: @@ -48478,31 +51477,36 @@ paths: application/vnd.kubernetes.protobuf: schema: $ref: '#/components/schemas/v1.Status' + application/cbor: + schema: + $ref: '#/components/schemas/v1.Status' description: Accepted "401": content: {} description: Unauthorized tags: - - networking_v1alpha1 + - internalApiserver_v1alpha1 x-kubernetes-action: delete x-kubernetes-group-version-kind: - group: networking.k8s.io - kind: ClusterCIDR + group: internal.apiserver.k8s.io + kind: StorageVersion version: v1alpha1 x-codegen-request-body-name: body x-contentType: application/json x-accepts: application/json get: - description: read the specified ClusterCIDR - operationId: readClusterCIDR + description: read the specified StorageVersion + operationId: readStorageVersion parameters: - - description: name of the ClusterCIDR + - description: name of the StorageVersion in: path name: name required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -48512,36 +51516,41 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1alpha1.ClusterCIDR' + $ref: '#/components/schemas/v1alpha1.StorageVersion' application/yaml: schema: - $ref: '#/components/schemas/v1alpha1.ClusterCIDR' + $ref: '#/components/schemas/v1alpha1.StorageVersion' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha1.ClusterCIDR' + $ref: '#/components/schemas/v1alpha1.StorageVersion' + application/cbor: + schema: + $ref: '#/components/schemas/v1alpha1.StorageVersion' description: OK "401": content: {} description: Unauthorized tags: - - networking_v1alpha1 + - internalApiserver_v1alpha1 x-kubernetes-action: get x-kubernetes-group-version-kind: - group: networking.k8s.io - kind: ClusterCIDR + group: internal.apiserver.k8s.io + kind: StorageVersion version: v1alpha1 x-accepts: application/json patch: - description: partially update the specified ClusterCIDR - operationId: patchClusterCIDR + description: partially update the specified StorageVersion + operationId: patchStorageVersion parameters: - - description: name of the ClusterCIDR + - description: name of the StorageVersion in: path name: name required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -48598,50 +51607,58 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1alpha1.ClusterCIDR' + $ref: '#/components/schemas/v1alpha1.StorageVersion' application/yaml: schema: - $ref: '#/components/schemas/v1alpha1.ClusterCIDR' + $ref: '#/components/schemas/v1alpha1.StorageVersion' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha1.ClusterCIDR' + $ref: '#/components/schemas/v1alpha1.StorageVersion' + application/cbor: + schema: + $ref: '#/components/schemas/v1alpha1.StorageVersion' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1alpha1.ClusterCIDR' + $ref: '#/components/schemas/v1alpha1.StorageVersion' application/yaml: schema: - $ref: '#/components/schemas/v1alpha1.ClusterCIDR' + $ref: '#/components/schemas/v1alpha1.StorageVersion' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha1.ClusterCIDR' + $ref: '#/components/schemas/v1alpha1.StorageVersion' + application/cbor: + schema: + $ref: '#/components/schemas/v1alpha1.StorageVersion' description: Created "401": content: {} description: Unauthorized tags: - - networking_v1alpha1 + - internalApiserver_v1alpha1 x-kubernetes-action: patch x-kubernetes-group-version-kind: - group: networking.k8s.io - kind: ClusterCIDR + group: internal.apiserver.k8s.io + kind: StorageVersion version: v1alpha1 x-codegen-request-body-name: body x-contentType: application/json x-accepts: application/json put: - description: replace the specified ClusterCIDR - operationId: replaceClusterCIDR + description: replace the specified StorageVersion + operationId: replaceStorageVersion parameters: - - description: name of the ClusterCIDR + - description: name of the StorageVersion in: path name: name required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -48682,52 +51699,363 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1alpha1.ClusterCIDR' + $ref: '#/components/schemas/v1alpha1.StorageVersion' required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1alpha1.ClusterCIDR' + $ref: '#/components/schemas/v1alpha1.StorageVersion' application/yaml: schema: - $ref: '#/components/schemas/v1alpha1.ClusterCIDR' + $ref: '#/components/schemas/v1alpha1.StorageVersion' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha1.ClusterCIDR' + $ref: '#/components/schemas/v1alpha1.StorageVersion' + application/cbor: + schema: + $ref: '#/components/schemas/v1alpha1.StorageVersion' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1alpha1.ClusterCIDR' + $ref: '#/components/schemas/v1alpha1.StorageVersion' application/yaml: schema: - $ref: '#/components/schemas/v1alpha1.ClusterCIDR' + $ref: '#/components/schemas/v1alpha1.StorageVersion' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha1.ClusterCIDR' + $ref: '#/components/schemas/v1alpha1.StorageVersion' + application/cbor: + schema: + $ref: '#/components/schemas/v1alpha1.StorageVersion' description: Created "401": content: {} description: Unauthorized tags: - - networking_v1alpha1 + - internalApiserver_v1alpha1 x-kubernetes-action: put x-kubernetes-group-version-kind: - group: networking.k8s.io - kind: ClusterCIDR + group: internal.apiserver.k8s.io + kind: StorageVersion + version: v1alpha1 + x-codegen-request-body-name: body + x-contentType: application/json + x-accepts: application/json + /apis/internal.apiserver.k8s.io/v1alpha1/storageversions/{name}/status: + get: + description: read status of the specified StorageVersion + operationId: readStorageVersionStatus + parameters: + - description: name of the StorageVersion + in: path + name: name + required: true + schema: + type: string + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). + in: query + name: pretty + schema: + type: string + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1alpha1.StorageVersion' + application/yaml: + schema: + $ref: '#/components/schemas/v1alpha1.StorageVersion' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1alpha1.StorageVersion' + application/cbor: + schema: + $ref: '#/components/schemas/v1alpha1.StorageVersion' + description: OK + "401": + content: {} + description: Unauthorized + tags: + - internalApiserver_v1alpha1 + x-kubernetes-action: get + x-kubernetes-group-version-kind: + group: internal.apiserver.k8s.io + kind: StorageVersion + version: v1alpha1 + x-accepts: application/json + patch: + description: partially update status of the specified StorageVersion + operationId: patchStorageVersionStatus + parameters: + - description: name of the StorageVersion + in: path + name: name + required: true + schema: + type: string + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). + in: query + name: pretty + schema: + type: string + - description: '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' + in: query + name: dryRun + schema: + type: string + - description: fieldManager is a name associated with the actor or entity that + is making these changes. The value must be less than or 128 characters long, + and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + This field is required for apply requests (application/apply-patch) but + optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). + in: query + name: fieldManager + schema: + type: string + - description: 'fieldValidation instructs the server on how to handle objects + in the request (POST/PUT/PATCH) containing unknown or duplicate fields. + Valid values are: - Ignore: This will ignore any unknown fields that are + silently dropped from the object, and will ignore all but the last duplicate + field that the decoder encounters. This is the default behavior prior to + v1.23. - Warn: This will send a warning via the standard warning response + header for each unknown field that is dropped from the object, and for each + duplicate field that is encountered. The request will still succeed if there + are no other errors, and will only persist the last of any duplicate fields. + This is the default in v1.23+ - Strict: This will fail the request with + a BadRequest error if any unknown fields would be dropped from the object, + or if any duplicate fields are present. The error returned from the server + will contain all unknown and duplicate fields encountered.' + in: query + name: fieldValidation + schema: + type: string + - description: Force is going to "force" Apply requests. It means user will + re-acquire conflicting fields owned by other people. Force flag must be + unset for non-apply patch requests. + in: query + name: force + schema: + type: boolean + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/v1.Patch' + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1alpha1.StorageVersion' + application/yaml: + schema: + $ref: '#/components/schemas/v1alpha1.StorageVersion' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1alpha1.StorageVersion' + application/cbor: + schema: + $ref: '#/components/schemas/v1alpha1.StorageVersion' + description: OK + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/v1alpha1.StorageVersion' + application/yaml: + schema: + $ref: '#/components/schemas/v1alpha1.StorageVersion' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1alpha1.StorageVersion' + application/cbor: + schema: + $ref: '#/components/schemas/v1alpha1.StorageVersion' + description: Created + "401": + content: {} + description: Unauthorized + tags: + - internalApiserver_v1alpha1 + x-kubernetes-action: patch + x-kubernetes-group-version-kind: + group: internal.apiserver.k8s.io + kind: StorageVersion version: v1alpha1 x-codegen-request-body-name: body x-contentType: application/json x-accepts: application/json - /apis/networking.k8s.io/v1alpha1/ipaddresses: + put: + description: replace status of the specified StorageVersion + operationId: replaceStorageVersionStatus + parameters: + - description: name of the StorageVersion + in: path + name: name + required: true + schema: + type: string + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). + in: query + name: pretty + schema: + type: string + - description: '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' + in: query + name: dryRun + schema: + type: string + - description: fieldManager is a name associated with the actor or entity that + is making these changes. The value must be less than or 128 characters long, + and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + in: query + name: fieldManager + schema: + type: string + - description: 'fieldValidation instructs the server on how to handle objects + in the request (POST/PUT/PATCH) containing unknown or duplicate fields. + Valid values are: - Ignore: This will ignore any unknown fields that are + silently dropped from the object, and will ignore all but the last duplicate + field that the decoder encounters. This is the default behavior prior to + v1.23. - Warn: This will send a warning via the standard warning response + header for each unknown field that is dropped from the object, and for each + duplicate field that is encountered. The request will still succeed if there + are no other errors, and will only persist the last of any duplicate fields. + This is the default in v1.23+ - Strict: This will fail the request with + a BadRequest error if any unknown fields would be dropped from the object, + or if any duplicate fields are present. The error returned from the server + will contain all unknown and duplicate fields encountered.' + in: query + name: fieldValidation + schema: + type: string + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/v1alpha1.StorageVersion' + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1alpha1.StorageVersion' + application/yaml: + schema: + $ref: '#/components/schemas/v1alpha1.StorageVersion' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1alpha1.StorageVersion' + application/cbor: + schema: + $ref: '#/components/schemas/v1alpha1.StorageVersion' + description: OK + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/v1alpha1.StorageVersion' + application/yaml: + schema: + $ref: '#/components/schemas/v1alpha1.StorageVersion' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1alpha1.StorageVersion' + application/cbor: + schema: + $ref: '#/components/schemas/v1alpha1.StorageVersion' + description: Created + "401": + content: {} + description: Unauthorized + tags: + - internalApiserver_v1alpha1 + x-kubernetes-action: put + x-kubernetes-group-version-kind: + group: internal.apiserver.k8s.io + kind: StorageVersion + version: v1alpha1 + x-codegen-request-body-name: body + x-contentType: application/json + x-accepts: application/json + /apis/internal.apiserver.k8s.io/v1alpha1/watch/storageversions: {} + /apis/internal.apiserver.k8s.io/v1alpha1/watch/storageversions/{name}: {} + /apis/networking.k8s.io/: + get: + description: get information of a group + operationId: getAPIGroup + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.APIGroup' + application/yaml: + schema: + $ref: '#/components/schemas/v1.APIGroup' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.APIGroup' + description: OK + "401": + content: {} + description: Unauthorized + tags: + - networking + x-accepts: application/json + /apis/networking.k8s.io/v1/: + get: + description: get available resources + operationId: getAPIResources + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.APIResourceList' + application/yaml: + schema: + $ref: '#/components/schemas/v1.APIResourceList' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.APIResourceList' + application/cbor: + schema: + $ref: '#/components/schemas/v1.APIResourceList' + description: OK + "401": + content: {} + description: Unauthorized + tags: + - networking_v1 + x-accepts: application/json + /apis/networking.k8s.io/v1/ingressclasses: delete: - description: delete collection of IPAddress - operationId: deleteCollectionIPAddress + description: delete collection of IngressClass + operationId: deleteCollectionIngressClass parameters: - - description: If 'true', then the output is pretty printed. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -48763,6 +52091,20 @@ paths: name: gracePeriodSeconds schema: type: integer + - description: 'if set to true, it will trigger an unsafe deletion of the resource + in case the normal deletion flow fails with a corrupt object error. A resource + is considered corrupt if it can not be retrieved from the underlying storage + successfully because of a) its data can not be transformed e.g. decryption + failure, or b) it fails to decode into an object. NOTE: unsafe deletion + ignores finalizer constraints, skips precondition checks, and removes the + object from the storage. WARNING: This may potentially break the cluster + if the workload associated with the resource being unsafe-deleted relies + on normal deletion flow. Use only if you REALLY know what you are doing. + The default value is false, and the user must opt in to enable it' + in: query + name: ignoreStoreReadErrorWithClusterBreakingPotential + schema: + type: boolean - description: A selector to restrict the list of returned objects by their labels. Defaults to everything. in: query @@ -48854,25 +52196,30 @@ paths: application/vnd.kubernetes.protobuf: schema: $ref: '#/components/schemas/v1.Status' + application/cbor: + schema: + $ref: '#/components/schemas/v1.Status' description: OK "401": content: {} description: Unauthorized tags: - - networking_v1alpha1 + - networking_v1 x-kubernetes-action: deletecollection x-kubernetes-group-version-kind: group: networking.k8s.io - kind: IPAddress - version: v1alpha1 + kind: IngressClass + version: v1 x-codegen-request-body-name: body x-contentType: application/json x-accepts: application/json get: - description: list or watch objects of kind IPAddress - operationId: listIPAddress + description: list or watch objects of kind IngressClass + operationId: listIngressClass parameters: - - description: If 'true', then the output is pretty printed. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -48966,36 +52313,44 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1alpha1.IPAddressList' + $ref: '#/components/schemas/v1.IngressClassList' application/yaml: schema: - $ref: '#/components/schemas/v1alpha1.IPAddressList' + $ref: '#/components/schemas/v1.IngressClassList' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha1.IPAddressList' + $ref: '#/components/schemas/v1.IngressClassList' + application/cbor: + schema: + $ref: '#/components/schemas/v1.IngressClassList' application/json;stream=watch: schema: - $ref: '#/components/schemas/v1alpha1.IPAddressList' + $ref: '#/components/schemas/v1.IngressClassList' application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: '#/components/schemas/v1alpha1.IPAddressList' + $ref: '#/components/schemas/v1.IngressClassList' + application/cbor-seq: + schema: + $ref: '#/components/schemas/v1.IngressClassList' description: OK "401": content: {} description: Unauthorized tags: - - networking_v1alpha1 + - networking_v1 x-kubernetes-action: list x-kubernetes-group-version-kind: group: networking.k8s.io - kind: IPAddress - version: v1alpha1 + kind: IngressClass + version: v1 x-accepts: application/json post: - description: create an IPAddress - operationId: createIPAddress + description: create an IngressClass + operationId: createIngressClass parameters: - - description: If 'true', then the output is pretty printed. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -49036,70 +52391,81 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1alpha1.IPAddress' + $ref: '#/components/schemas/v1.IngressClass' required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1alpha1.IPAddress' + $ref: '#/components/schemas/v1.IngressClass' application/yaml: schema: - $ref: '#/components/schemas/v1alpha1.IPAddress' + $ref: '#/components/schemas/v1.IngressClass' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha1.IPAddress' + $ref: '#/components/schemas/v1.IngressClass' + application/cbor: + schema: + $ref: '#/components/schemas/v1.IngressClass' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1alpha1.IPAddress' + $ref: '#/components/schemas/v1.IngressClass' application/yaml: schema: - $ref: '#/components/schemas/v1alpha1.IPAddress' + $ref: '#/components/schemas/v1.IngressClass' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha1.IPAddress' + $ref: '#/components/schemas/v1.IngressClass' + application/cbor: + schema: + $ref: '#/components/schemas/v1.IngressClass' description: Created "202": content: application/json: schema: - $ref: '#/components/schemas/v1alpha1.IPAddress' + $ref: '#/components/schemas/v1.IngressClass' application/yaml: schema: - $ref: '#/components/schemas/v1alpha1.IPAddress' + $ref: '#/components/schemas/v1.IngressClass' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha1.IPAddress' + $ref: '#/components/schemas/v1.IngressClass' + application/cbor: + schema: + $ref: '#/components/schemas/v1.IngressClass' description: Accepted "401": content: {} description: Unauthorized tags: - - networking_v1alpha1 + - networking_v1 x-kubernetes-action: post x-kubernetes-group-version-kind: group: networking.k8s.io - kind: IPAddress - version: v1alpha1 + kind: IngressClass + version: v1 x-codegen-request-body-name: body x-contentType: application/json x-accepts: application/json - /apis/networking.k8s.io/v1alpha1/ipaddresses/{name}: + /apis/networking.k8s.io/v1/ingressclasses/{name}: delete: - description: delete an IPAddress - operationId: deleteIPAddress + description: delete an IngressClass + operationId: deleteIngressClass parameters: - - description: name of the IPAddress + - description: name of the IngressClass in: path name: name required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -49121,6 +52487,20 @@ paths: name: gracePeriodSeconds schema: type: integer + - description: 'if set to true, it will trigger an unsafe deletion of the resource + in case the normal deletion flow fails with a corrupt object error. A resource + is considered corrupt if it can not be retrieved from the underlying storage + successfully because of a) its data can not be transformed e.g. decryption + failure, or b) it fails to decode into an object. NOTE: unsafe deletion + ignores finalizer constraints, skips precondition checks, and removes the + object from the storage. WARNING: This may potentially break the cluster + if the workload associated with the resource being unsafe-deleted relies + on normal deletion flow. Use only if you REALLY know what you are doing. + The default value is false, and the user must opt in to enable it' + in: query + name: ignoreStoreReadErrorWithClusterBreakingPotential + schema: + type: boolean - description: '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 @@ -49158,6 +52538,9 @@ paths: application/vnd.kubernetes.protobuf: schema: $ref: '#/components/schemas/v1.Status' + application/cbor: + schema: + $ref: '#/components/schemas/v1.Status' description: OK "202": content: @@ -49170,31 +52553,36 @@ paths: application/vnd.kubernetes.protobuf: schema: $ref: '#/components/schemas/v1.Status' + application/cbor: + schema: + $ref: '#/components/schemas/v1.Status' description: Accepted "401": content: {} description: Unauthorized tags: - - networking_v1alpha1 + - networking_v1 x-kubernetes-action: delete x-kubernetes-group-version-kind: group: networking.k8s.io - kind: IPAddress - version: v1alpha1 + kind: IngressClass + version: v1 x-codegen-request-body-name: body x-contentType: application/json x-accepts: application/json get: - description: read the specified IPAddress - operationId: readIPAddress + description: read the specified IngressClass + operationId: readIngressClass parameters: - - description: name of the IPAddress + - description: name of the IngressClass in: path name: name required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -49204,36 +52592,41 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1alpha1.IPAddress' + $ref: '#/components/schemas/v1.IngressClass' application/yaml: schema: - $ref: '#/components/schemas/v1alpha1.IPAddress' + $ref: '#/components/schemas/v1.IngressClass' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha1.IPAddress' + $ref: '#/components/schemas/v1.IngressClass' + application/cbor: + schema: + $ref: '#/components/schemas/v1.IngressClass' description: OK "401": content: {} description: Unauthorized tags: - - networking_v1alpha1 + - networking_v1 x-kubernetes-action: get x-kubernetes-group-version-kind: group: networking.k8s.io - kind: IPAddress - version: v1alpha1 + kind: IngressClass + version: v1 x-accepts: application/json patch: - description: partially update the specified IPAddress - operationId: patchIPAddress + description: partially update the specified IngressClass + operationId: patchIngressClass parameters: - - description: name of the IPAddress + - description: name of the IngressClass in: path name: name required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -49290,50 +52683,58 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1alpha1.IPAddress' + $ref: '#/components/schemas/v1.IngressClass' application/yaml: schema: - $ref: '#/components/schemas/v1alpha1.IPAddress' + $ref: '#/components/schemas/v1.IngressClass' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha1.IPAddress' + $ref: '#/components/schemas/v1.IngressClass' + application/cbor: + schema: + $ref: '#/components/schemas/v1.IngressClass' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1alpha1.IPAddress' + $ref: '#/components/schemas/v1.IngressClass' application/yaml: schema: - $ref: '#/components/schemas/v1alpha1.IPAddress' + $ref: '#/components/schemas/v1.IngressClass' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha1.IPAddress' + $ref: '#/components/schemas/v1.IngressClass' + application/cbor: + schema: + $ref: '#/components/schemas/v1.IngressClass' description: Created "401": content: {} description: Unauthorized tags: - - networking_v1alpha1 + - networking_v1 x-kubernetes-action: patch x-kubernetes-group-version-kind: group: networking.k8s.io - kind: IPAddress - version: v1alpha1 + kind: IngressClass + version: v1 x-codegen-request-body-name: body x-contentType: application/json x-accepts: application/json put: - description: replace the specified IPAddress - operationId: replaceIPAddress + description: replace the specified IngressClass + operationId: replaceIngressClass parameters: - - description: name of the IPAddress + - description: name of the IngressClass in: path name: name required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -49374,102 +52775,192 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1alpha1.IPAddress' + $ref: '#/components/schemas/v1.IngressClass' required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1alpha1.IPAddress' + $ref: '#/components/schemas/v1.IngressClass' application/yaml: schema: - $ref: '#/components/schemas/v1alpha1.IPAddress' + $ref: '#/components/schemas/v1.IngressClass' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha1.IPAddress' + $ref: '#/components/schemas/v1.IngressClass' + application/cbor: + schema: + $ref: '#/components/schemas/v1.IngressClass' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1alpha1.IPAddress' + $ref: '#/components/schemas/v1.IngressClass' application/yaml: schema: - $ref: '#/components/schemas/v1alpha1.IPAddress' + $ref: '#/components/schemas/v1.IngressClass' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha1.IPAddress' + $ref: '#/components/schemas/v1.IngressClass' + application/cbor: + schema: + $ref: '#/components/schemas/v1.IngressClass' description: Created "401": content: {} description: Unauthorized tags: - - networking_v1alpha1 + - networking_v1 x-kubernetes-action: put x-kubernetes-group-version-kind: group: networking.k8s.io - kind: IPAddress - version: v1alpha1 + kind: IngressClass + version: v1 x-codegen-request-body-name: body x-contentType: application/json x-accepts: application/json - /apis/networking.k8s.io/v1alpha1/watch/clustercidrs: {} - /apis/networking.k8s.io/v1alpha1/watch/clustercidrs/{name}: {} - /apis/networking.k8s.io/v1alpha1/watch/ipaddresses: {} - /apis/networking.k8s.io/v1alpha1/watch/ipaddresses/{name}: {} - /apis/node.k8s.io/: + /apis/networking.k8s.io/v1/ingresses: get: - description: get information of a group - operationId: getAPIGroup + description: list or watch objects of kind Ingress + operationId: listIngressForAllNamespaces + parameters: + - description: 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. + in: query + name: allowWatchBookmarks + schema: + type: boolean + - description: |- + 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. + in: query + name: continue + 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 + - description: A selector to restrict the list of returned objects by their + labels. Defaults to everything. + in: query + name: labelSelector + schema: + type: string + - description: |- + limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. + + The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + in: query + name: limit + schema: + type: integer + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). + in: query + name: pretty + schema: + type: string + - description: |- + resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersion + schema: + type: string + - description: |- + resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersionMatch + schema: + type: string + - description: |- + `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic "Bookmark" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `"k8s.io/initial-events-end": "true"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. + + When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan + is interpreted as "data at least as new as the provided `resourceVersion`" + and the bookmark event is send when the state is synced + to a `resourceVersion` at least as fresh as the one provided by the ListOptions. + If `resourceVersion` is unset, this is interpreted as "consistent read" and the + bookmark event is send when the state is synced at least to the moment + when request started being processed. + - `resourceVersionMatch` set to any other value or unset + Invalid error is returned. + + Defaults to true if `resourceVersion=""` or `resourceVersion="0"` (for backward compatibility reasons) and to false otherwise. + in: query + name: sendInitialEvents + schema: + type: boolean + - description: Timeout for the list/watch call. This limits the duration of + the call, regardless of any activity or inactivity. + in: query + name: timeoutSeconds + schema: + type: integer + - description: Watch for changes to the described resources and return them + as a stream of add, update, and remove notifications. Specify resourceVersion. + in: query + name: watch + schema: + type: boolean responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.APIGroup' + $ref: '#/components/schemas/v1.IngressList' application/yaml: schema: - $ref: '#/components/schemas/v1.APIGroup' + $ref: '#/components/schemas/v1.IngressList' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.APIGroup' - description: OK - "401": - content: {} - description: Unauthorized - tags: - - node - x-accepts: application/json - /apis/node.k8s.io/v1/: - get: - description: get available resources - operationId: getAPIResources - responses: - "200": - content: - application/json: + $ref: '#/components/schemas/v1.IngressList' + application/cbor: schema: - $ref: '#/components/schemas/v1.APIResourceList' - application/yaml: + $ref: '#/components/schemas/v1.IngressList' + application/json;stream=watch: schema: - $ref: '#/components/schemas/v1.APIResourceList' - application/vnd.kubernetes.protobuf: + $ref: '#/components/schemas/v1.IngressList' + application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: '#/components/schemas/v1.APIResourceList' + $ref: '#/components/schemas/v1.IngressList' + application/cbor-seq: + schema: + $ref: '#/components/schemas/v1.IngressList' description: OK "401": content: {} description: Unauthorized tags: - - node_v1 + - networking_v1 + x-kubernetes-action: list + x-kubernetes-group-version-kind: + group: networking.k8s.io + kind: Ingress + version: v1 x-accepts: application/json - /apis/node.k8s.io/v1/runtimeclasses: + /apis/networking.k8s.io/v1/ipaddresses: delete: - description: delete collection of RuntimeClass - operationId: deleteCollectionRuntimeClass + description: delete collection of IPAddress + operationId: deleteCollectionIPAddress parameters: - - description: If 'true', then the output is pretty printed. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -49505,6 +52996,20 @@ paths: name: gracePeriodSeconds schema: type: integer + - description: 'if set to true, it will trigger an unsafe deletion of the resource + in case the normal deletion flow fails with a corrupt object error. A resource + is considered corrupt if it can not be retrieved from the underlying storage + successfully because of a) its data can not be transformed e.g. decryption + failure, or b) it fails to decode into an object. NOTE: unsafe deletion + ignores finalizer constraints, skips precondition checks, and removes the + object from the storage. WARNING: This may potentially break the cluster + if the workload associated with the resource being unsafe-deleted relies + on normal deletion flow. Use only if you REALLY know what you are doing. + The default value is false, and the user must opt in to enable it' + in: query + name: ignoreStoreReadErrorWithClusterBreakingPotential + schema: + type: boolean - description: A selector to restrict the list of returned objects by their labels. Defaults to everything. in: query @@ -49596,25 +53101,30 @@ paths: application/vnd.kubernetes.protobuf: schema: $ref: '#/components/schemas/v1.Status' + application/cbor: + schema: + $ref: '#/components/schemas/v1.Status' description: OK "401": content: {} description: Unauthorized tags: - - node_v1 + - networking_v1 x-kubernetes-action: deletecollection x-kubernetes-group-version-kind: - group: node.k8s.io - kind: RuntimeClass + group: networking.k8s.io + kind: IPAddress version: v1 x-codegen-request-body-name: body x-contentType: application/json x-accepts: application/json get: - description: list or watch objects of kind RuntimeClass - operationId: listRuntimeClass + description: list or watch objects of kind IPAddress + operationId: listIPAddress parameters: - - description: If 'true', then the output is pretty printed. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -49708,36 +53218,44 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.RuntimeClassList' + $ref: '#/components/schemas/v1.IPAddressList' application/yaml: schema: - $ref: '#/components/schemas/v1.RuntimeClassList' + $ref: '#/components/schemas/v1.IPAddressList' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.RuntimeClassList' + $ref: '#/components/schemas/v1.IPAddressList' + application/cbor: + schema: + $ref: '#/components/schemas/v1.IPAddressList' application/json;stream=watch: schema: - $ref: '#/components/schemas/v1.RuntimeClassList' + $ref: '#/components/schemas/v1.IPAddressList' application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: '#/components/schemas/v1.RuntimeClassList' + $ref: '#/components/schemas/v1.IPAddressList' + application/cbor-seq: + schema: + $ref: '#/components/schemas/v1.IPAddressList' description: OK "401": content: {} description: Unauthorized tags: - - node_v1 + - networking_v1 x-kubernetes-action: list x-kubernetes-group-version-kind: - group: node.k8s.io - kind: RuntimeClass + group: networking.k8s.io + kind: IPAddress version: v1 x-accepts: application/json post: - description: create a RuntimeClass - operationId: createRuntimeClass + description: create an IPAddress + operationId: createIPAddress parameters: - - description: If 'true', then the output is pretty printed. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -49778,70 +53296,81 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.RuntimeClass' + $ref: '#/components/schemas/v1.IPAddress' required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.RuntimeClass' + $ref: '#/components/schemas/v1.IPAddress' application/yaml: schema: - $ref: '#/components/schemas/v1.RuntimeClass' + $ref: '#/components/schemas/v1.IPAddress' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.RuntimeClass' + $ref: '#/components/schemas/v1.IPAddress' + application/cbor: + schema: + $ref: '#/components/schemas/v1.IPAddress' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.RuntimeClass' + $ref: '#/components/schemas/v1.IPAddress' application/yaml: schema: - $ref: '#/components/schemas/v1.RuntimeClass' + $ref: '#/components/schemas/v1.IPAddress' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.RuntimeClass' + $ref: '#/components/schemas/v1.IPAddress' + application/cbor: + schema: + $ref: '#/components/schemas/v1.IPAddress' description: Created "202": content: application/json: schema: - $ref: '#/components/schemas/v1.RuntimeClass' + $ref: '#/components/schemas/v1.IPAddress' application/yaml: schema: - $ref: '#/components/schemas/v1.RuntimeClass' + $ref: '#/components/schemas/v1.IPAddress' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.RuntimeClass' + $ref: '#/components/schemas/v1.IPAddress' + application/cbor: + schema: + $ref: '#/components/schemas/v1.IPAddress' description: Accepted "401": content: {} description: Unauthorized tags: - - node_v1 + - networking_v1 x-kubernetes-action: post x-kubernetes-group-version-kind: - group: node.k8s.io - kind: RuntimeClass + group: networking.k8s.io + kind: IPAddress version: v1 x-codegen-request-body-name: body x-contentType: application/json x-accepts: application/json - /apis/node.k8s.io/v1/runtimeclasses/{name}: + /apis/networking.k8s.io/v1/ipaddresses/{name}: delete: - description: delete a RuntimeClass - operationId: deleteRuntimeClass + description: delete an IPAddress + operationId: deleteIPAddress parameters: - - description: name of the RuntimeClass + - description: name of the IPAddress in: path name: name required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -49863,6 +53392,20 @@ paths: name: gracePeriodSeconds schema: type: integer + - description: 'if set to true, it will trigger an unsafe deletion of the resource + in case the normal deletion flow fails with a corrupt object error. A resource + is considered corrupt if it can not be retrieved from the underlying storage + successfully because of a) its data can not be transformed e.g. decryption + failure, or b) it fails to decode into an object. NOTE: unsafe deletion + ignores finalizer constraints, skips precondition checks, and removes the + object from the storage. WARNING: This may potentially break the cluster + if the workload associated with the resource being unsafe-deleted relies + on normal deletion flow. Use only if you REALLY know what you are doing. + The default value is false, and the user must opt in to enable it' + in: query + name: ignoreStoreReadErrorWithClusterBreakingPotential + schema: + type: boolean - description: '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 @@ -49900,6 +53443,9 @@ paths: application/vnd.kubernetes.protobuf: schema: $ref: '#/components/schemas/v1.Status' + application/cbor: + schema: + $ref: '#/components/schemas/v1.Status' description: OK "202": content: @@ -49912,31 +53458,36 @@ paths: application/vnd.kubernetes.protobuf: schema: $ref: '#/components/schemas/v1.Status' + application/cbor: + schema: + $ref: '#/components/schemas/v1.Status' description: Accepted "401": content: {} description: Unauthorized tags: - - node_v1 + - networking_v1 x-kubernetes-action: delete x-kubernetes-group-version-kind: - group: node.k8s.io - kind: RuntimeClass + group: networking.k8s.io + kind: IPAddress version: v1 x-codegen-request-body-name: body x-contentType: application/json x-accepts: application/json get: - description: read the specified RuntimeClass - operationId: readRuntimeClass + description: read the specified IPAddress + operationId: readIPAddress parameters: - - description: name of the RuntimeClass + - description: name of the IPAddress in: path name: name required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -49946,36 +53497,41 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.RuntimeClass' + $ref: '#/components/schemas/v1.IPAddress' application/yaml: schema: - $ref: '#/components/schemas/v1.RuntimeClass' + $ref: '#/components/schemas/v1.IPAddress' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.RuntimeClass' + $ref: '#/components/schemas/v1.IPAddress' + application/cbor: + schema: + $ref: '#/components/schemas/v1.IPAddress' description: OK "401": content: {} description: Unauthorized tags: - - node_v1 + - networking_v1 x-kubernetes-action: get x-kubernetes-group-version-kind: - group: node.k8s.io - kind: RuntimeClass + group: networking.k8s.io + kind: IPAddress version: v1 x-accepts: application/json patch: - description: partially update the specified RuntimeClass - operationId: patchRuntimeClass + description: partially update the specified IPAddress + operationId: patchIPAddress parameters: - - description: name of the RuntimeClass + - description: name of the IPAddress in: path name: name required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -50032,50 +53588,58 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.RuntimeClass' + $ref: '#/components/schemas/v1.IPAddress' application/yaml: schema: - $ref: '#/components/schemas/v1.RuntimeClass' + $ref: '#/components/schemas/v1.IPAddress' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.RuntimeClass' + $ref: '#/components/schemas/v1.IPAddress' + application/cbor: + schema: + $ref: '#/components/schemas/v1.IPAddress' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.RuntimeClass' + $ref: '#/components/schemas/v1.IPAddress' application/yaml: schema: - $ref: '#/components/schemas/v1.RuntimeClass' + $ref: '#/components/schemas/v1.IPAddress' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.RuntimeClass' + $ref: '#/components/schemas/v1.IPAddress' + application/cbor: + schema: + $ref: '#/components/schemas/v1.IPAddress' description: Created "401": content: {} description: Unauthorized tags: - - node_v1 + - networking_v1 x-kubernetes-action: patch x-kubernetes-group-version-kind: - group: node.k8s.io - kind: RuntimeClass + group: networking.k8s.io + kind: IPAddress version: v1 x-codegen-request-body-name: body x-contentType: application/json x-accepts: application/json put: - description: replace the specified RuntimeClass - operationId: replaceRuntimeClass + description: replace the specified IPAddress + operationId: replaceIPAddress parameters: - - description: name of the RuntimeClass + - description: name of the IPAddress in: path name: name required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -50116,98 +53680,56 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.RuntimeClass' + $ref: '#/components/schemas/v1.IPAddress' required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.RuntimeClass' + $ref: '#/components/schemas/v1.IPAddress' application/yaml: schema: - $ref: '#/components/schemas/v1.RuntimeClass' + $ref: '#/components/schemas/v1.IPAddress' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.RuntimeClass' + $ref: '#/components/schemas/v1.IPAddress' + application/cbor: + schema: + $ref: '#/components/schemas/v1.IPAddress' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.RuntimeClass' + $ref: '#/components/schemas/v1.IPAddress' application/yaml: schema: - $ref: '#/components/schemas/v1.RuntimeClass' + $ref: '#/components/schemas/v1.IPAddress' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.RuntimeClass' + $ref: '#/components/schemas/v1.IPAddress' + application/cbor: + schema: + $ref: '#/components/schemas/v1.IPAddress' description: Created "401": content: {} description: Unauthorized tags: - - node_v1 + - networking_v1 x-kubernetes-action: put x-kubernetes-group-version-kind: - group: node.k8s.io - kind: RuntimeClass + group: networking.k8s.io + kind: IPAddress version: v1 x-codegen-request-body-name: body x-contentType: application/json x-accepts: application/json - /apis/node.k8s.io/v1/watch/runtimeclasses: {} - /apis/node.k8s.io/v1/watch/runtimeclasses/{name}: {} - /apis/policy/: - get: - description: get information of a group - operationId: getAPIGroup - responses: - "200": - content: - application/json: - schema: - $ref: '#/components/schemas/v1.APIGroup' - application/yaml: - schema: - $ref: '#/components/schemas/v1.APIGroup' - application/vnd.kubernetes.protobuf: - schema: - $ref: '#/components/schemas/v1.APIGroup' - description: OK - "401": - content: {} - description: Unauthorized - tags: - - policy - x-accepts: application/json - /apis/policy/v1/: - get: - description: get available resources - operationId: getAPIResources - responses: - "200": - content: - application/json: - schema: - $ref: '#/components/schemas/v1.APIResourceList' - application/yaml: - schema: - $ref: '#/components/schemas/v1.APIResourceList' - application/vnd.kubernetes.protobuf: - schema: - $ref: '#/components/schemas/v1.APIResourceList' - description: OK - "401": - content: {} - description: Unauthorized - tags: - - policy_v1 - x-accepts: application/json - /apis/policy/v1/namespaces/{namespace}/poddisruptionbudgets: + /apis/networking.k8s.io/v1/namespaces/{namespace}/ingresses: delete: - description: delete collection of PodDisruptionBudget - operationId: deleteCollectionNamespacedPodDisruptionBudget + description: delete collection of Ingress + operationId: deleteCollectionNamespacedIngress parameters: - description: object name and auth scope, such as for teams and projects in: path @@ -50215,7 +53737,9 @@ paths: required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -50251,6 +53775,20 @@ paths: name: gracePeriodSeconds schema: type: integer + - description: 'if set to true, it will trigger an unsafe deletion of the resource + in case the normal deletion flow fails with a corrupt object error. A resource + is considered corrupt if it can not be retrieved from the underlying storage + successfully because of a) its data can not be transformed e.g. decryption + failure, or b) it fails to decode into an object. NOTE: unsafe deletion + ignores finalizer constraints, skips precondition checks, and removes the + object from the storage. WARNING: This may potentially break the cluster + if the workload associated with the resource being unsafe-deleted relies + on normal deletion flow. Use only if you REALLY know what you are doing. + The default value is false, and the user must opt in to enable it' + in: query + name: ignoreStoreReadErrorWithClusterBreakingPotential + schema: + type: boolean - description: A selector to restrict the list of returned objects by their labels. Defaults to everything. in: query @@ -50342,23 +53880,26 @@ paths: application/vnd.kubernetes.protobuf: schema: $ref: '#/components/schemas/v1.Status' + application/cbor: + schema: + $ref: '#/components/schemas/v1.Status' description: OK "401": content: {} description: Unauthorized tags: - - policy_v1 + - networking_v1 x-kubernetes-action: deletecollection x-kubernetes-group-version-kind: - group: policy - kind: PodDisruptionBudget + group: networking.k8s.io + kind: Ingress version: v1 x-codegen-request-body-name: body x-contentType: application/json x-accepts: application/json get: - description: list or watch objects of kind PodDisruptionBudget - operationId: listNamespacedPodDisruptionBudget + description: list or watch objects of kind Ingress + operationId: listNamespacedIngress parameters: - description: object name and auth scope, such as for teams and projects in: path @@ -50366,7 +53907,9 @@ paths: required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -50460,34 +54003,40 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.PodDisruptionBudgetList' + $ref: '#/components/schemas/v1.IngressList' application/yaml: schema: - $ref: '#/components/schemas/v1.PodDisruptionBudgetList' + $ref: '#/components/schemas/v1.IngressList' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.PodDisruptionBudgetList' + $ref: '#/components/schemas/v1.IngressList' + application/cbor: + schema: + $ref: '#/components/schemas/v1.IngressList' application/json;stream=watch: schema: - $ref: '#/components/schemas/v1.PodDisruptionBudgetList' + $ref: '#/components/schemas/v1.IngressList' application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: '#/components/schemas/v1.PodDisruptionBudgetList' + $ref: '#/components/schemas/v1.IngressList' + application/cbor-seq: + schema: + $ref: '#/components/schemas/v1.IngressList' description: OK "401": content: {} description: Unauthorized tags: - - policy_v1 + - networking_v1 x-kubernetes-action: list x-kubernetes-group-version-kind: - group: policy - kind: PodDisruptionBudget + group: networking.k8s.io + kind: Ingress version: v1 x-accepts: application/json post: - description: create a PodDisruptionBudget - operationId: createNamespacedPodDisruptionBudget + description: create an Ingress + operationId: createNamespacedIngress parameters: - description: object name and auth scope, such as for teams and projects in: path @@ -50495,7 +54044,9 @@ paths: required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -50536,64 +54087,73 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.PodDisruptionBudget' + $ref: '#/components/schemas/v1.Ingress' required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.PodDisruptionBudget' + $ref: '#/components/schemas/v1.Ingress' application/yaml: schema: - $ref: '#/components/schemas/v1.PodDisruptionBudget' + $ref: '#/components/schemas/v1.Ingress' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.PodDisruptionBudget' + $ref: '#/components/schemas/v1.Ingress' + application/cbor: + schema: + $ref: '#/components/schemas/v1.Ingress' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.PodDisruptionBudget' + $ref: '#/components/schemas/v1.Ingress' application/yaml: schema: - $ref: '#/components/schemas/v1.PodDisruptionBudget' + $ref: '#/components/schemas/v1.Ingress' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.PodDisruptionBudget' + $ref: '#/components/schemas/v1.Ingress' + application/cbor: + schema: + $ref: '#/components/schemas/v1.Ingress' description: Created "202": content: application/json: schema: - $ref: '#/components/schemas/v1.PodDisruptionBudget' + $ref: '#/components/schemas/v1.Ingress' application/yaml: schema: - $ref: '#/components/schemas/v1.PodDisruptionBudget' + $ref: '#/components/schemas/v1.Ingress' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.PodDisruptionBudget' + $ref: '#/components/schemas/v1.Ingress' + application/cbor: + schema: + $ref: '#/components/schemas/v1.Ingress' description: Accepted "401": content: {} description: Unauthorized tags: - - policy_v1 + - networking_v1 x-kubernetes-action: post x-kubernetes-group-version-kind: - group: policy - kind: PodDisruptionBudget + group: networking.k8s.io + kind: Ingress version: v1 x-codegen-request-body-name: body x-contentType: application/json x-accepts: application/json - /apis/policy/v1/namespaces/{namespace}/poddisruptionbudgets/{name}: + /apis/networking.k8s.io/v1/namespaces/{namespace}/ingresses/{name}: delete: - description: delete a PodDisruptionBudget - operationId: deleteNamespacedPodDisruptionBudget + description: delete an Ingress + operationId: deleteNamespacedIngress parameters: - - description: name of the PodDisruptionBudget + - description: name of the Ingress in: path name: name required: true @@ -50605,7 +54165,9 @@ paths: required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -50627,6 +54189,20 @@ paths: name: gracePeriodSeconds schema: type: integer + - description: 'if set to true, it will trigger an unsafe deletion of the resource + in case the normal deletion flow fails with a corrupt object error. A resource + is considered corrupt if it can not be retrieved from the underlying storage + successfully because of a) its data can not be transformed e.g. decryption + failure, or b) it fails to decode into an object. NOTE: unsafe deletion + ignores finalizer constraints, skips precondition checks, and removes the + object from the storage. WARNING: This may potentially break the cluster + if the workload associated with the resource being unsafe-deleted relies + on normal deletion flow. Use only if you REALLY know what you are doing. + The default value is false, and the user must opt in to enable it' + in: query + name: ignoreStoreReadErrorWithClusterBreakingPotential + schema: + type: boolean - description: '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 @@ -50664,6 +54240,9 @@ paths: application/vnd.kubernetes.protobuf: schema: $ref: '#/components/schemas/v1.Status' + application/cbor: + schema: + $ref: '#/components/schemas/v1.Status' description: OK "202": content: @@ -50676,25 +54255,28 @@ paths: application/vnd.kubernetes.protobuf: schema: $ref: '#/components/schemas/v1.Status' + application/cbor: + schema: + $ref: '#/components/schemas/v1.Status' description: Accepted "401": content: {} description: Unauthorized tags: - - policy_v1 + - networking_v1 x-kubernetes-action: delete x-kubernetes-group-version-kind: - group: policy - kind: PodDisruptionBudget + group: networking.k8s.io + kind: Ingress version: v1 x-codegen-request-body-name: body x-contentType: application/json x-accepts: application/json get: - description: read the specified PodDisruptionBudget - operationId: readNamespacedPodDisruptionBudget + description: read the specified Ingress + operationId: readNamespacedIngress parameters: - - description: name of the PodDisruptionBudget + - description: name of the Ingress in: path name: name required: true @@ -50706,7 +54288,9 @@ paths: required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -50716,30 +54300,33 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.PodDisruptionBudget' + $ref: '#/components/schemas/v1.Ingress' application/yaml: schema: - $ref: '#/components/schemas/v1.PodDisruptionBudget' + $ref: '#/components/schemas/v1.Ingress' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.PodDisruptionBudget' + $ref: '#/components/schemas/v1.Ingress' + application/cbor: + schema: + $ref: '#/components/schemas/v1.Ingress' description: OK "401": content: {} description: Unauthorized tags: - - policy_v1 + - networking_v1 x-kubernetes-action: get x-kubernetes-group-version-kind: - group: policy - kind: PodDisruptionBudget + group: networking.k8s.io + kind: Ingress version: v1 x-accepts: application/json patch: - description: partially update the specified PodDisruptionBudget - operationId: patchNamespacedPodDisruptionBudget + description: partially update the specified Ingress + operationId: patchNamespacedIngress parameters: - - description: name of the PodDisruptionBudget + - description: name of the Ingress in: path name: name required: true @@ -50751,7 +54338,9 @@ paths: required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -50808,44 +54397,50 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.PodDisruptionBudget' + $ref: '#/components/schemas/v1.Ingress' application/yaml: schema: - $ref: '#/components/schemas/v1.PodDisruptionBudget' + $ref: '#/components/schemas/v1.Ingress' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.PodDisruptionBudget' + $ref: '#/components/schemas/v1.Ingress' + application/cbor: + schema: + $ref: '#/components/schemas/v1.Ingress' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.PodDisruptionBudget' + $ref: '#/components/schemas/v1.Ingress' application/yaml: schema: - $ref: '#/components/schemas/v1.PodDisruptionBudget' + $ref: '#/components/schemas/v1.Ingress' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.PodDisruptionBudget' + $ref: '#/components/schemas/v1.Ingress' + application/cbor: + schema: + $ref: '#/components/schemas/v1.Ingress' description: Created "401": content: {} description: Unauthorized tags: - - policy_v1 + - networking_v1 x-kubernetes-action: patch x-kubernetes-group-version-kind: - group: policy - kind: PodDisruptionBudget + group: networking.k8s.io + kind: Ingress version: v1 x-codegen-request-body-name: body x-contentType: application/json x-accepts: application/json put: - description: replace the specified PodDisruptionBudget - operationId: replaceNamespacedPodDisruptionBudget + description: replace the specified Ingress + operationId: replaceNamespacedIngress parameters: - - description: name of the PodDisruptionBudget + - description: name of the Ingress in: path name: name required: true @@ -50857,7 +54452,9 @@ paths: required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -50898,52 +54495,58 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.PodDisruptionBudget' + $ref: '#/components/schemas/v1.Ingress' required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.PodDisruptionBudget' + $ref: '#/components/schemas/v1.Ingress' application/yaml: schema: - $ref: '#/components/schemas/v1.PodDisruptionBudget' + $ref: '#/components/schemas/v1.Ingress' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.PodDisruptionBudget' + $ref: '#/components/schemas/v1.Ingress' + application/cbor: + schema: + $ref: '#/components/schemas/v1.Ingress' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.PodDisruptionBudget' + $ref: '#/components/schemas/v1.Ingress' application/yaml: schema: - $ref: '#/components/schemas/v1.PodDisruptionBudget' + $ref: '#/components/schemas/v1.Ingress' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.PodDisruptionBudget' + $ref: '#/components/schemas/v1.Ingress' + application/cbor: + schema: + $ref: '#/components/schemas/v1.Ingress' description: Created "401": content: {} description: Unauthorized tags: - - policy_v1 + - networking_v1 x-kubernetes-action: put x-kubernetes-group-version-kind: - group: policy - kind: PodDisruptionBudget + group: networking.k8s.io + kind: Ingress version: v1 x-codegen-request-body-name: body x-contentType: application/json x-accepts: application/json - /apis/policy/v1/namespaces/{namespace}/poddisruptionbudgets/{name}/status: + /apis/networking.k8s.io/v1/namespaces/{namespace}/ingresses/{name}/status: get: - description: read status of the specified PodDisruptionBudget - operationId: readNamespacedPodDisruptionBudgetStatus + description: read status of the specified Ingress + operationId: readNamespacedIngressStatus parameters: - - description: name of the PodDisruptionBudget + - description: name of the Ingress in: path name: name required: true @@ -50955,7 +54558,9 @@ paths: required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -50965,30 +54570,33 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.PodDisruptionBudget' + $ref: '#/components/schemas/v1.Ingress' application/yaml: schema: - $ref: '#/components/schemas/v1.PodDisruptionBudget' + $ref: '#/components/schemas/v1.Ingress' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.PodDisruptionBudget' + $ref: '#/components/schemas/v1.Ingress' + application/cbor: + schema: + $ref: '#/components/schemas/v1.Ingress' description: OK "401": content: {} description: Unauthorized tags: - - policy_v1 + - networking_v1 x-kubernetes-action: get x-kubernetes-group-version-kind: - group: policy - kind: PodDisruptionBudget + group: networking.k8s.io + kind: Ingress version: v1 x-accepts: application/json patch: - description: partially update status of the specified PodDisruptionBudget - operationId: patchNamespacedPodDisruptionBudgetStatus + description: partially update status of the specified Ingress + operationId: patchNamespacedIngressStatus parameters: - - description: name of the PodDisruptionBudget + - description: name of the Ingress in: path name: name required: true @@ -51000,7 +54608,9 @@ paths: required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -51057,44 +54667,50 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.PodDisruptionBudget' + $ref: '#/components/schemas/v1.Ingress' application/yaml: schema: - $ref: '#/components/schemas/v1.PodDisruptionBudget' + $ref: '#/components/schemas/v1.Ingress' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.PodDisruptionBudget' + $ref: '#/components/schemas/v1.Ingress' + application/cbor: + schema: + $ref: '#/components/schemas/v1.Ingress' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.PodDisruptionBudget' + $ref: '#/components/schemas/v1.Ingress' application/yaml: schema: - $ref: '#/components/schemas/v1.PodDisruptionBudget' + $ref: '#/components/schemas/v1.Ingress' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.PodDisruptionBudget' + $ref: '#/components/schemas/v1.Ingress' + application/cbor: + schema: + $ref: '#/components/schemas/v1.Ingress' description: Created "401": content: {} description: Unauthorized tags: - - policy_v1 + - networking_v1 x-kubernetes-action: patch x-kubernetes-group-version-kind: - group: policy - kind: PodDisruptionBudget + group: networking.k8s.io + kind: Ingress version: v1 x-codegen-request-body-name: body x-contentType: application/json x-accepts: application/json put: - description: replace status of the specified PodDisruptionBudget - operationId: replaceNamespacedPodDisruptionBudgetStatus + description: replace status of the specified Ingress + operationId: replaceNamespacedIngressStatus parameters: - - description: name of the PodDisruptionBudget + - description: name of the Ingress in: path name: name required: true @@ -51106,7 +54722,9 @@ paths: required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -51147,225 +54765,66 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.PodDisruptionBudget' + $ref: '#/components/schemas/v1.Ingress' required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.PodDisruptionBudget' + $ref: '#/components/schemas/v1.Ingress' application/yaml: schema: - $ref: '#/components/schemas/v1.PodDisruptionBudget' + $ref: '#/components/schemas/v1.Ingress' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.PodDisruptionBudget' + $ref: '#/components/schemas/v1.Ingress' + application/cbor: + schema: + $ref: '#/components/schemas/v1.Ingress' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.PodDisruptionBudget' + $ref: '#/components/schemas/v1.Ingress' application/yaml: schema: - $ref: '#/components/schemas/v1.PodDisruptionBudget' + $ref: '#/components/schemas/v1.Ingress' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.PodDisruptionBudget' + $ref: '#/components/schemas/v1.Ingress' + application/cbor: + schema: + $ref: '#/components/schemas/v1.Ingress' description: Created "401": content: {} description: Unauthorized tags: - - policy_v1 + - networking_v1 x-kubernetes-action: put x-kubernetes-group-version-kind: - group: policy - kind: PodDisruptionBudget + group: networking.k8s.io + kind: Ingress version: v1 x-codegen-request-body-name: body x-contentType: application/json x-accepts: application/json - /apis/policy/v1/poddisruptionbudgets: - get: - description: list or watch objects of kind PodDisruptionBudget - operationId: listPodDisruptionBudgetForAllNamespaces + /apis/networking.k8s.io/v1/namespaces/{namespace}/networkpolicies: + delete: + description: delete collection of NetworkPolicy + operationId: deleteCollectionNamespacedNetworkPolicy parameters: - - description: 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. - in: query - name: allowWatchBookmarks - schema: - type: boolean - - description: |- - 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. - in: query - name: continue - 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 - - description: A selector to restrict the list of returned objects by their - labels. Defaults to everything. - in: query - name: labelSelector - schema: - type: string - - description: |- - limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. - - The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. - in: query - name: limit - schema: - type: integer - - description: If 'true', then the output is pretty printed. - in: query - name: pretty - schema: - type: string - - description: |- - resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. - - Defaults to unset - in: query - name: resourceVersion - schema: - type: string - - description: |- - resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. - - Defaults to unset - in: query - name: resourceVersionMatch + - description: object name and auth scope, such as for teams and projects + in: path + name: namespace + required: true schema: type: string - - description: |- - `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic "Bookmark" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `"k8s.io/initial-events-end": "true"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. - - When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan - is interpreted as "data at least as new as the provided `resourceVersion`" - and the bookmark event is send when the state is synced - to a `resourceVersion` at least as fresh as the one provided by the ListOptions. - If `resourceVersion` is unset, this is interpreted as "consistent read" and the - bookmark event is send when the state is synced at least to the moment - when request started being processed. - - `resourceVersionMatch` set to any other value or unset - Invalid error is returned. - - Defaults to true if `resourceVersion=""` or `resourceVersion="0"` (for backward compatibility reasons) and to false otherwise. - in: query - name: sendInitialEvents - schema: - type: boolean - - description: Timeout for the list/watch call. This limits the duration of - the call, regardless of any activity or inactivity. - in: query - name: timeoutSeconds - schema: - type: integer - - description: Watch for changes to the described resources and return them - as a stream of add, update, and remove notifications. Specify resourceVersion. - in: query - name: watch - schema: - type: boolean - responses: - "200": - content: - application/json: - schema: - $ref: '#/components/schemas/v1.PodDisruptionBudgetList' - application/yaml: - schema: - $ref: '#/components/schemas/v1.PodDisruptionBudgetList' - application/vnd.kubernetes.protobuf: - schema: - $ref: '#/components/schemas/v1.PodDisruptionBudgetList' - application/json;stream=watch: - schema: - $ref: '#/components/schemas/v1.PodDisruptionBudgetList' - application/vnd.kubernetes.protobuf;stream=watch: - schema: - $ref: '#/components/schemas/v1.PodDisruptionBudgetList' - description: OK - "401": - content: {} - description: Unauthorized - tags: - - policy_v1 - x-kubernetes-action: list - x-kubernetes-group-version-kind: - group: policy - kind: PodDisruptionBudget - version: v1 - x-accepts: application/json - /apis/policy/v1/watch/namespaces/{namespace}/poddisruptionbudgets: {} - /apis/policy/v1/watch/namespaces/{namespace}/poddisruptionbudgets/{name}: {} - /apis/policy/v1/watch/poddisruptionbudgets: {} - /apis/rbac.authorization.k8s.io/: - get: - description: get information of a group - operationId: getAPIGroup - responses: - "200": - content: - application/json: - schema: - $ref: '#/components/schemas/v1.APIGroup' - application/yaml: - schema: - $ref: '#/components/schemas/v1.APIGroup' - application/vnd.kubernetes.protobuf: - schema: - $ref: '#/components/schemas/v1.APIGroup' - description: OK - "401": - content: {} - description: Unauthorized - tags: - - rbacAuthorization - x-accepts: application/json - /apis/rbac.authorization.k8s.io/v1/: - get: - description: get available resources - operationId: getAPIResources - responses: - "200": - content: - application/json: - schema: - $ref: '#/components/schemas/v1.APIResourceList' - application/yaml: - schema: - $ref: '#/components/schemas/v1.APIResourceList' - application/vnd.kubernetes.protobuf: - schema: - $ref: '#/components/schemas/v1.APIResourceList' - description: OK - "401": - content: {} - description: Unauthorized - tags: - - rbacAuthorization_v1 - x-accepts: application/json - /apis/rbac.authorization.k8s.io/v1/clusterrolebindings: - delete: - description: delete collection of ClusterRoleBinding - operationId: deleteCollectionClusterRoleBinding - parameters: - - description: If 'true', then the output is pretty printed. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -51401,6 +54860,20 @@ paths: name: gracePeriodSeconds schema: type: integer + - description: 'if set to true, it will trigger an unsafe deletion of the resource + in case the normal deletion flow fails with a corrupt object error. A resource + is considered corrupt if it can not be retrieved from the underlying storage + successfully because of a) its data can not be transformed e.g. decryption + failure, or b) it fails to decode into an object. NOTE: unsafe deletion + ignores finalizer constraints, skips precondition checks, and removes the + object from the storage. WARNING: This may potentially break the cluster + if the workload associated with the resource being unsafe-deleted relies + on normal deletion flow. Use only if you REALLY know what you are doing. + The default value is false, and the user must opt in to enable it' + in: query + name: ignoreStoreReadErrorWithClusterBreakingPotential + schema: + type: boolean - description: A selector to restrict the list of returned objects by their labels. Defaults to everything. in: query @@ -51492,25 +54965,36 @@ paths: application/vnd.kubernetes.protobuf: schema: $ref: '#/components/schemas/v1.Status' + application/cbor: + schema: + $ref: '#/components/schemas/v1.Status' description: OK "401": content: {} description: Unauthorized tags: - - rbacAuthorization_v1 + - networking_v1 x-kubernetes-action: deletecollection x-kubernetes-group-version-kind: - group: rbac.authorization.k8s.io - kind: ClusterRoleBinding + group: networking.k8s.io + kind: NetworkPolicy version: v1 x-codegen-request-body-name: body x-contentType: application/json x-accepts: application/json get: - description: list or watch objects of kind ClusterRoleBinding - operationId: listClusterRoleBinding + description: list or watch objects of kind NetworkPolicy + operationId: listNamespacedNetworkPolicy parameters: - - description: If 'true', then the output is pretty printed. + - description: object name and auth scope, such as for teams and projects + in: path + name: namespace + required: true + schema: + type: string + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -51604,36 +55088,50 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.ClusterRoleBindingList' + $ref: '#/components/schemas/v1.NetworkPolicyList' application/yaml: schema: - $ref: '#/components/schemas/v1.ClusterRoleBindingList' + $ref: '#/components/schemas/v1.NetworkPolicyList' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.ClusterRoleBindingList' + $ref: '#/components/schemas/v1.NetworkPolicyList' + application/cbor: + schema: + $ref: '#/components/schemas/v1.NetworkPolicyList' application/json;stream=watch: schema: - $ref: '#/components/schemas/v1.ClusterRoleBindingList' + $ref: '#/components/schemas/v1.NetworkPolicyList' application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: '#/components/schemas/v1.ClusterRoleBindingList' + $ref: '#/components/schemas/v1.NetworkPolicyList' + application/cbor-seq: + schema: + $ref: '#/components/schemas/v1.NetworkPolicyList' description: OK "401": content: {} description: Unauthorized tags: - - rbacAuthorization_v1 + - networking_v1 x-kubernetes-action: list x-kubernetes-group-version-kind: - group: rbac.authorization.k8s.io - kind: ClusterRoleBinding + group: networking.k8s.io + kind: NetworkPolicy version: v1 x-accepts: application/json post: - description: create a ClusterRoleBinding - operationId: createClusterRoleBinding + description: create a NetworkPolicy + operationId: createNamespacedNetworkPolicy parameters: - - description: If 'true', then the output is pretty printed. + - description: object name and auth scope, such as for teams and projects + in: path + name: namespace + required: true + schema: + type: string + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -51674,70 +55172,87 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.ClusterRoleBinding' + $ref: '#/components/schemas/v1.NetworkPolicy' required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.ClusterRoleBinding' + $ref: '#/components/schemas/v1.NetworkPolicy' application/yaml: schema: - $ref: '#/components/schemas/v1.ClusterRoleBinding' + $ref: '#/components/schemas/v1.NetworkPolicy' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.ClusterRoleBinding' + $ref: '#/components/schemas/v1.NetworkPolicy' + application/cbor: + schema: + $ref: '#/components/schemas/v1.NetworkPolicy' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.ClusterRoleBinding' + $ref: '#/components/schemas/v1.NetworkPolicy' application/yaml: schema: - $ref: '#/components/schemas/v1.ClusterRoleBinding' + $ref: '#/components/schemas/v1.NetworkPolicy' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.ClusterRoleBinding' + $ref: '#/components/schemas/v1.NetworkPolicy' + application/cbor: + schema: + $ref: '#/components/schemas/v1.NetworkPolicy' description: Created "202": content: application/json: schema: - $ref: '#/components/schemas/v1.ClusterRoleBinding' + $ref: '#/components/schemas/v1.NetworkPolicy' application/yaml: schema: - $ref: '#/components/schemas/v1.ClusterRoleBinding' + $ref: '#/components/schemas/v1.NetworkPolicy' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.ClusterRoleBinding' + $ref: '#/components/schemas/v1.NetworkPolicy' + application/cbor: + schema: + $ref: '#/components/schemas/v1.NetworkPolicy' description: Accepted "401": content: {} description: Unauthorized tags: - - rbacAuthorization_v1 + - networking_v1 x-kubernetes-action: post x-kubernetes-group-version-kind: - group: rbac.authorization.k8s.io - kind: ClusterRoleBinding + group: networking.k8s.io + kind: NetworkPolicy version: v1 x-codegen-request-body-name: body x-contentType: application/json x-accepts: application/json - /apis/rbac.authorization.k8s.io/v1/clusterrolebindings/{name}: + /apis/networking.k8s.io/v1/namespaces/{namespace}/networkpolicies/{name}: delete: - description: delete a ClusterRoleBinding - operationId: deleteClusterRoleBinding + description: delete a NetworkPolicy + operationId: deleteNamespacedNetworkPolicy parameters: - - description: name of the ClusterRoleBinding + - description: name of the NetworkPolicy in: path name: name required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: object name and auth scope, such as for teams and projects + in: path + name: namespace + required: true + schema: + type: string + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -51759,6 +55274,20 @@ paths: name: gracePeriodSeconds schema: type: integer + - description: 'if set to true, it will trigger an unsafe deletion of the resource + in case the normal deletion flow fails with a corrupt object error. A resource + is considered corrupt if it can not be retrieved from the underlying storage + successfully because of a) its data can not be transformed e.g. decryption + failure, or b) it fails to decode into an object. NOTE: unsafe deletion + ignores finalizer constraints, skips precondition checks, and removes the + object from the storage. WARNING: This may potentially break the cluster + if the workload associated with the resource being unsafe-deleted relies + on normal deletion flow. Use only if you REALLY know what you are doing. + The default value is false, and the user must opt in to enable it' + in: query + name: ignoreStoreReadErrorWithClusterBreakingPotential + schema: + type: boolean - description: '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 @@ -51796,6 +55325,9 @@ paths: application/vnd.kubernetes.protobuf: schema: $ref: '#/components/schemas/v1.Status' + application/cbor: + schema: + $ref: '#/components/schemas/v1.Status' description: OK "202": content: @@ -51808,31 +55340,42 @@ paths: application/vnd.kubernetes.protobuf: schema: $ref: '#/components/schemas/v1.Status' + application/cbor: + schema: + $ref: '#/components/schemas/v1.Status' description: Accepted "401": content: {} description: Unauthorized tags: - - rbacAuthorization_v1 + - networking_v1 x-kubernetes-action: delete x-kubernetes-group-version-kind: - group: rbac.authorization.k8s.io - kind: ClusterRoleBinding + group: networking.k8s.io + kind: NetworkPolicy version: v1 x-codegen-request-body-name: body x-contentType: application/json x-accepts: application/json get: - description: read the specified ClusterRoleBinding - operationId: readClusterRoleBinding + description: read the specified NetworkPolicy + operationId: readNamespacedNetworkPolicy parameters: - - description: name of the ClusterRoleBinding + - description: name of the NetworkPolicy in: path name: name required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: object name and auth scope, such as for teams and projects + in: path + name: namespace + required: true + schema: + type: string + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -51842,36 +55385,47 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.ClusterRoleBinding' + $ref: '#/components/schemas/v1.NetworkPolicy' application/yaml: schema: - $ref: '#/components/schemas/v1.ClusterRoleBinding' + $ref: '#/components/schemas/v1.NetworkPolicy' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.ClusterRoleBinding' + $ref: '#/components/schemas/v1.NetworkPolicy' + application/cbor: + schema: + $ref: '#/components/schemas/v1.NetworkPolicy' description: OK "401": content: {} description: Unauthorized tags: - - rbacAuthorization_v1 + - networking_v1 x-kubernetes-action: get x-kubernetes-group-version-kind: - group: rbac.authorization.k8s.io - kind: ClusterRoleBinding + group: networking.k8s.io + kind: NetworkPolicy version: v1 x-accepts: application/json patch: - description: partially update the specified ClusterRoleBinding - operationId: patchClusterRoleBinding + description: partially update the specified NetworkPolicy + operationId: patchNamespacedNetworkPolicy parameters: - - description: name of the ClusterRoleBinding + - description: name of the NetworkPolicy in: path name: name required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: object name and auth scope, such as for teams and projects + in: path + name: namespace + required: true + schema: + type: string + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -51928,50 +55482,64 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.ClusterRoleBinding' + $ref: '#/components/schemas/v1.NetworkPolicy' application/yaml: schema: - $ref: '#/components/schemas/v1.ClusterRoleBinding' + $ref: '#/components/schemas/v1.NetworkPolicy' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.ClusterRoleBinding' + $ref: '#/components/schemas/v1.NetworkPolicy' + application/cbor: + schema: + $ref: '#/components/schemas/v1.NetworkPolicy' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.ClusterRoleBinding' + $ref: '#/components/schemas/v1.NetworkPolicy' application/yaml: schema: - $ref: '#/components/schemas/v1.ClusterRoleBinding' + $ref: '#/components/schemas/v1.NetworkPolicy' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.ClusterRoleBinding' + $ref: '#/components/schemas/v1.NetworkPolicy' + application/cbor: + schema: + $ref: '#/components/schemas/v1.NetworkPolicy' description: Created "401": content: {} description: Unauthorized tags: - - rbacAuthorization_v1 + - networking_v1 x-kubernetes-action: patch x-kubernetes-group-version-kind: - group: rbac.authorization.k8s.io - kind: ClusterRoleBinding + group: networking.k8s.io + kind: NetworkPolicy version: v1 x-codegen-request-body-name: body x-contentType: application/json x-accepts: application/json put: - description: replace the specified ClusterRoleBinding - operationId: replaceClusterRoleBinding + description: replace the specified NetworkPolicy + operationId: replaceNamespacedNetworkPolicy parameters: - - description: name of the ClusterRoleBinding + - description: name of the NetworkPolicy in: path name: name required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: object name and auth scope, such as for teams and projects + in: path + name: namespace + required: true + schema: + type: string + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -52012,52 +55580,192 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.ClusterRoleBinding' + $ref: '#/components/schemas/v1.NetworkPolicy' required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.ClusterRoleBinding' + $ref: '#/components/schemas/v1.NetworkPolicy' application/yaml: schema: - $ref: '#/components/schemas/v1.ClusterRoleBinding' + $ref: '#/components/schemas/v1.NetworkPolicy' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.ClusterRoleBinding' + $ref: '#/components/schemas/v1.NetworkPolicy' + application/cbor: + schema: + $ref: '#/components/schemas/v1.NetworkPolicy' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.ClusterRoleBinding' + $ref: '#/components/schemas/v1.NetworkPolicy' application/yaml: schema: - $ref: '#/components/schemas/v1.ClusterRoleBinding' + $ref: '#/components/schemas/v1.NetworkPolicy' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.ClusterRoleBinding' + $ref: '#/components/schemas/v1.NetworkPolicy' + application/cbor: + schema: + $ref: '#/components/schemas/v1.NetworkPolicy' description: Created "401": content: {} description: Unauthorized tags: - - rbacAuthorization_v1 + - networking_v1 x-kubernetes-action: put x-kubernetes-group-version-kind: - group: rbac.authorization.k8s.io - kind: ClusterRoleBinding + group: networking.k8s.io + kind: NetworkPolicy version: v1 x-codegen-request-body-name: body x-contentType: application/json x-accepts: application/json - /apis/rbac.authorization.k8s.io/v1/clusterroles: + /apis/networking.k8s.io/v1/networkpolicies: + get: + description: list or watch objects of kind NetworkPolicy + operationId: listNetworkPolicyForAllNamespaces + parameters: + - description: 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. + in: query + name: allowWatchBookmarks + schema: + type: boolean + - description: |- + 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. + in: query + name: continue + 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 + - description: A selector to restrict the list of returned objects by their + labels. Defaults to everything. + in: query + name: labelSelector + schema: + type: string + - description: |- + limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. + + The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + in: query + name: limit + schema: + type: integer + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). + in: query + name: pretty + schema: + type: string + - description: |- + resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersion + schema: + type: string + - description: |- + resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersionMatch + schema: + type: string + - description: |- + `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic "Bookmark" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `"k8s.io/initial-events-end": "true"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. + + When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan + is interpreted as "data at least as new as the provided `resourceVersion`" + and the bookmark event is send when the state is synced + to a `resourceVersion` at least as fresh as the one provided by the ListOptions. + If `resourceVersion` is unset, this is interpreted as "consistent read" and the + bookmark event is send when the state is synced at least to the moment + when request started being processed. + - `resourceVersionMatch` set to any other value or unset + Invalid error is returned. + + Defaults to true if `resourceVersion=""` or `resourceVersion="0"` (for backward compatibility reasons) and to false otherwise. + in: query + name: sendInitialEvents + schema: + type: boolean + - description: Timeout for the list/watch call. This limits the duration of + the call, regardless of any activity or inactivity. + in: query + name: timeoutSeconds + schema: + type: integer + - description: Watch for changes to the described resources and return them + as a stream of add, update, and remove notifications. Specify resourceVersion. + in: query + name: watch + schema: + type: boolean + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.NetworkPolicyList' + application/yaml: + schema: + $ref: '#/components/schemas/v1.NetworkPolicyList' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.NetworkPolicyList' + application/cbor: + schema: + $ref: '#/components/schemas/v1.NetworkPolicyList' + application/json;stream=watch: + schema: + $ref: '#/components/schemas/v1.NetworkPolicyList' + application/vnd.kubernetes.protobuf;stream=watch: + schema: + $ref: '#/components/schemas/v1.NetworkPolicyList' + application/cbor-seq: + schema: + $ref: '#/components/schemas/v1.NetworkPolicyList' + description: OK + "401": + content: {} + description: Unauthorized + tags: + - networking_v1 + x-kubernetes-action: list + x-kubernetes-group-version-kind: + group: networking.k8s.io + kind: NetworkPolicy + version: v1 + x-accepts: application/json + /apis/networking.k8s.io/v1/servicecidrs: delete: - description: delete collection of ClusterRole - operationId: deleteCollectionClusterRole + description: delete collection of ServiceCIDR + operationId: deleteCollectionServiceCIDR parameters: - - description: If 'true', then the output is pretty printed. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -52093,6 +55801,20 @@ paths: name: gracePeriodSeconds schema: type: integer + - description: 'if set to true, it will trigger an unsafe deletion of the resource + in case the normal deletion flow fails with a corrupt object error. A resource + is considered corrupt if it can not be retrieved from the underlying storage + successfully because of a) its data can not be transformed e.g. decryption + failure, or b) it fails to decode into an object. NOTE: unsafe deletion + ignores finalizer constraints, skips precondition checks, and removes the + object from the storage. WARNING: This may potentially break the cluster + if the workload associated with the resource being unsafe-deleted relies + on normal deletion flow. Use only if you REALLY know what you are doing. + The default value is false, and the user must opt in to enable it' + in: query + name: ignoreStoreReadErrorWithClusterBreakingPotential + schema: + type: boolean - description: A selector to restrict the list of returned objects by their labels. Defaults to everything. in: query @@ -52184,25 +55906,30 @@ paths: application/vnd.kubernetes.protobuf: schema: $ref: '#/components/schemas/v1.Status' + application/cbor: + schema: + $ref: '#/components/schemas/v1.Status' description: OK "401": content: {} description: Unauthorized tags: - - rbacAuthorization_v1 + - networking_v1 x-kubernetes-action: deletecollection x-kubernetes-group-version-kind: - group: rbac.authorization.k8s.io - kind: ClusterRole + group: networking.k8s.io + kind: ServiceCIDR version: v1 x-codegen-request-body-name: body x-contentType: application/json x-accepts: application/json get: - description: list or watch objects of kind ClusterRole - operationId: listClusterRole + description: list or watch objects of kind ServiceCIDR + operationId: listServiceCIDR parameters: - - description: If 'true', then the output is pretty printed. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -52296,36 +56023,44 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.ClusterRoleList' + $ref: '#/components/schemas/v1.ServiceCIDRList' application/yaml: schema: - $ref: '#/components/schemas/v1.ClusterRoleList' + $ref: '#/components/schemas/v1.ServiceCIDRList' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.ClusterRoleList' + $ref: '#/components/schemas/v1.ServiceCIDRList' + application/cbor: + schema: + $ref: '#/components/schemas/v1.ServiceCIDRList' application/json;stream=watch: schema: - $ref: '#/components/schemas/v1.ClusterRoleList' + $ref: '#/components/schemas/v1.ServiceCIDRList' application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: '#/components/schemas/v1.ClusterRoleList' + $ref: '#/components/schemas/v1.ServiceCIDRList' + application/cbor-seq: + schema: + $ref: '#/components/schemas/v1.ServiceCIDRList' description: OK "401": content: {} description: Unauthorized tags: - - rbacAuthorization_v1 + - networking_v1 x-kubernetes-action: list x-kubernetes-group-version-kind: - group: rbac.authorization.k8s.io - kind: ClusterRole + group: networking.k8s.io + kind: ServiceCIDR version: v1 x-accepts: application/json post: - description: create a ClusterRole - operationId: createClusterRole + description: create a ServiceCIDR + operationId: createServiceCIDR parameters: - - description: If 'true', then the output is pretty printed. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -52366,70 +56101,81 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.ClusterRole' + $ref: '#/components/schemas/v1.ServiceCIDR' required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.ClusterRole' + $ref: '#/components/schemas/v1.ServiceCIDR' application/yaml: schema: - $ref: '#/components/schemas/v1.ClusterRole' + $ref: '#/components/schemas/v1.ServiceCIDR' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.ClusterRole' + $ref: '#/components/schemas/v1.ServiceCIDR' + application/cbor: + schema: + $ref: '#/components/schemas/v1.ServiceCIDR' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.ClusterRole' + $ref: '#/components/schemas/v1.ServiceCIDR' application/yaml: schema: - $ref: '#/components/schemas/v1.ClusterRole' + $ref: '#/components/schemas/v1.ServiceCIDR' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.ClusterRole' + $ref: '#/components/schemas/v1.ServiceCIDR' + application/cbor: + schema: + $ref: '#/components/schemas/v1.ServiceCIDR' description: Created "202": content: application/json: schema: - $ref: '#/components/schemas/v1.ClusterRole' + $ref: '#/components/schemas/v1.ServiceCIDR' application/yaml: schema: - $ref: '#/components/schemas/v1.ClusterRole' + $ref: '#/components/schemas/v1.ServiceCIDR' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.ClusterRole' + $ref: '#/components/schemas/v1.ServiceCIDR' + application/cbor: + schema: + $ref: '#/components/schemas/v1.ServiceCIDR' description: Accepted "401": content: {} description: Unauthorized tags: - - rbacAuthorization_v1 + - networking_v1 x-kubernetes-action: post x-kubernetes-group-version-kind: - group: rbac.authorization.k8s.io - kind: ClusterRole + group: networking.k8s.io + kind: ServiceCIDR version: v1 x-codegen-request-body-name: body x-contentType: application/json x-accepts: application/json - /apis/rbac.authorization.k8s.io/v1/clusterroles/{name}: + /apis/networking.k8s.io/v1/servicecidrs/{name}: delete: - description: delete a ClusterRole - operationId: deleteClusterRole + description: delete a ServiceCIDR + operationId: deleteServiceCIDR parameters: - - description: name of the ClusterRole + - description: name of the ServiceCIDR in: path name: name required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -52451,6 +56197,20 @@ paths: name: gracePeriodSeconds schema: type: integer + - description: 'if set to true, it will trigger an unsafe deletion of the resource + in case the normal deletion flow fails with a corrupt object error. A resource + is considered corrupt if it can not be retrieved from the underlying storage + successfully because of a) its data can not be transformed e.g. decryption + failure, or b) it fails to decode into an object. NOTE: unsafe deletion + ignores finalizer constraints, skips precondition checks, and removes the + object from the storage. WARNING: This may potentially break the cluster + if the workload associated with the resource being unsafe-deleted relies + on normal deletion flow. Use only if you REALLY know what you are doing. + The default value is false, and the user must opt in to enable it' + in: query + name: ignoreStoreReadErrorWithClusterBreakingPotential + schema: + type: boolean - description: '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 @@ -52488,6 +56248,9 @@ paths: application/vnd.kubernetes.protobuf: schema: $ref: '#/components/schemas/v1.Status' + application/cbor: + schema: + $ref: '#/components/schemas/v1.Status' description: OK "202": content: @@ -52500,31 +56263,36 @@ paths: application/vnd.kubernetes.protobuf: schema: $ref: '#/components/schemas/v1.Status' + application/cbor: + schema: + $ref: '#/components/schemas/v1.Status' description: Accepted "401": content: {} description: Unauthorized tags: - - rbacAuthorization_v1 + - networking_v1 x-kubernetes-action: delete x-kubernetes-group-version-kind: - group: rbac.authorization.k8s.io - kind: ClusterRole + group: networking.k8s.io + kind: ServiceCIDR version: v1 x-codegen-request-body-name: body x-contentType: application/json x-accepts: application/json get: - description: read the specified ClusterRole - operationId: readClusterRole + description: read the specified ServiceCIDR + operationId: readServiceCIDR parameters: - - description: name of the ClusterRole + - description: name of the ServiceCIDR in: path name: name required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -52534,36 +56302,41 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.ClusterRole' + $ref: '#/components/schemas/v1.ServiceCIDR' application/yaml: schema: - $ref: '#/components/schemas/v1.ClusterRole' + $ref: '#/components/schemas/v1.ServiceCIDR' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.ClusterRole' + $ref: '#/components/schemas/v1.ServiceCIDR' + application/cbor: + schema: + $ref: '#/components/schemas/v1.ServiceCIDR' description: OK "401": content: {} description: Unauthorized tags: - - rbacAuthorization_v1 + - networking_v1 x-kubernetes-action: get x-kubernetes-group-version-kind: - group: rbac.authorization.k8s.io - kind: ClusterRole + group: networking.k8s.io + kind: ServiceCIDR version: v1 x-accepts: application/json patch: - description: partially update the specified ClusterRole - operationId: patchClusterRole + description: partially update the specified ServiceCIDR + operationId: patchServiceCIDR parameters: - - description: name of the ClusterRole + - description: name of the ServiceCIDR in: path name: name required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -52620,50 +56393,58 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.ClusterRole' + $ref: '#/components/schemas/v1.ServiceCIDR' application/yaml: schema: - $ref: '#/components/schemas/v1.ClusterRole' + $ref: '#/components/schemas/v1.ServiceCIDR' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.ClusterRole' + $ref: '#/components/schemas/v1.ServiceCIDR' + application/cbor: + schema: + $ref: '#/components/schemas/v1.ServiceCIDR' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.ClusterRole' + $ref: '#/components/schemas/v1.ServiceCIDR' application/yaml: schema: - $ref: '#/components/schemas/v1.ClusterRole' + $ref: '#/components/schemas/v1.ServiceCIDR' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.ClusterRole' + $ref: '#/components/schemas/v1.ServiceCIDR' + application/cbor: + schema: + $ref: '#/components/schemas/v1.ServiceCIDR' description: Created "401": content: {} description: Unauthorized tags: - - rbacAuthorization_v1 + - networking_v1 x-kubernetes-action: patch x-kubernetes-group-version-kind: - group: rbac.authorization.k8s.io - kind: ClusterRole + group: networking.k8s.io + kind: ServiceCIDR version: v1 x-codegen-request-body-name: body x-contentType: application/json x-accepts: application/json put: - description: replace the specified ClusterRole - operationId: replaceClusterRole + description: replace the specified ServiceCIDR + operationId: replaceServiceCIDR parameters: - - description: name of the ClusterRole + - description: name of the ServiceCIDR in: path name: name required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -52704,58 +56485,350 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.ClusterRole' + $ref: '#/components/schemas/v1.ServiceCIDR' required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.ClusterRole' + $ref: '#/components/schemas/v1.ServiceCIDR' application/yaml: schema: - $ref: '#/components/schemas/v1.ClusterRole' + $ref: '#/components/schemas/v1.ServiceCIDR' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.ClusterRole' + $ref: '#/components/schemas/v1.ServiceCIDR' + application/cbor: + schema: + $ref: '#/components/schemas/v1.ServiceCIDR' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.ClusterRole' + $ref: '#/components/schemas/v1.ServiceCIDR' application/yaml: schema: - $ref: '#/components/schemas/v1.ClusterRole' + $ref: '#/components/schemas/v1.ServiceCIDR' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.ClusterRole' + $ref: '#/components/schemas/v1.ServiceCIDR' + application/cbor: + schema: + $ref: '#/components/schemas/v1.ServiceCIDR' description: Created "401": content: {} description: Unauthorized tags: - - rbacAuthorization_v1 + - networking_v1 x-kubernetes-action: put x-kubernetes-group-version-kind: - group: rbac.authorization.k8s.io - kind: ClusterRole + group: networking.k8s.io + kind: ServiceCIDR version: v1 x-codegen-request-body-name: body x-contentType: application/json x-accepts: application/json - /apis/rbac.authorization.k8s.io/v1/namespaces/{namespace}/rolebindings: - delete: - description: delete collection of RoleBinding - operationId: deleteCollectionNamespacedRoleBinding + /apis/networking.k8s.io/v1/servicecidrs/{name}/status: + get: + description: read status of the specified ServiceCIDR + operationId: readServiceCIDRStatus parameters: - - description: object name and auth scope, such as for teams and projects + - description: name of the ServiceCIDR in: path - name: namespace + name: name required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). + in: query + name: pretty + schema: + type: string + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.ServiceCIDR' + application/yaml: + schema: + $ref: '#/components/schemas/v1.ServiceCIDR' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.ServiceCIDR' + application/cbor: + schema: + $ref: '#/components/schemas/v1.ServiceCIDR' + description: OK + "401": + content: {} + description: Unauthorized + tags: + - networking_v1 + x-kubernetes-action: get + x-kubernetes-group-version-kind: + group: networking.k8s.io + kind: ServiceCIDR + version: v1 + x-accepts: application/json + patch: + description: partially update status of the specified ServiceCIDR + operationId: patchServiceCIDRStatus + parameters: + - description: name of the ServiceCIDR + in: path + name: name + required: true + schema: + type: string + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). + in: query + name: pretty + schema: + type: string + - description: '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' + in: query + name: dryRun + schema: + type: string + - description: fieldManager is a name associated with the actor or entity that + is making these changes. The value must be less than or 128 characters long, + and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + This field is required for apply requests (application/apply-patch) but + optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). + in: query + name: fieldManager + schema: + type: string + - description: 'fieldValidation instructs the server on how to handle objects + in the request (POST/PUT/PATCH) containing unknown or duplicate fields. + Valid values are: - Ignore: This will ignore any unknown fields that are + silently dropped from the object, and will ignore all but the last duplicate + field that the decoder encounters. This is the default behavior prior to + v1.23. - Warn: This will send a warning via the standard warning response + header for each unknown field that is dropped from the object, and for each + duplicate field that is encountered. The request will still succeed if there + are no other errors, and will only persist the last of any duplicate fields. + This is the default in v1.23+ - Strict: This will fail the request with + a BadRequest error if any unknown fields would be dropped from the object, + or if any duplicate fields are present. The error returned from the server + will contain all unknown and duplicate fields encountered.' + in: query + name: fieldValidation + schema: + type: string + - description: Force is going to "force" Apply requests. It means user will + re-acquire conflicting fields owned by other people. Force flag must be + unset for non-apply patch requests. + in: query + name: force + schema: + type: boolean + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/v1.Patch' + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.ServiceCIDR' + application/yaml: + schema: + $ref: '#/components/schemas/v1.ServiceCIDR' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.ServiceCIDR' + application/cbor: + schema: + $ref: '#/components/schemas/v1.ServiceCIDR' + description: OK + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.ServiceCIDR' + application/yaml: + schema: + $ref: '#/components/schemas/v1.ServiceCIDR' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.ServiceCIDR' + application/cbor: + schema: + $ref: '#/components/schemas/v1.ServiceCIDR' + description: Created + "401": + content: {} + description: Unauthorized + tags: + - networking_v1 + x-kubernetes-action: patch + x-kubernetes-group-version-kind: + group: networking.k8s.io + kind: ServiceCIDR + version: v1 + x-codegen-request-body-name: body + x-contentType: application/json + x-accepts: application/json + put: + description: replace status of the specified ServiceCIDR + operationId: replaceServiceCIDRStatus + parameters: + - description: name of the ServiceCIDR + in: path + name: name + required: true + schema: + type: string + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). + in: query + name: pretty + schema: + type: string + - description: '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' + in: query + name: dryRun + schema: + type: string + - description: fieldManager is a name associated with the actor or entity that + is making these changes. The value must be less than or 128 characters long, + and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + in: query + name: fieldManager + schema: + type: string + - description: 'fieldValidation instructs the server on how to handle objects + in the request (POST/PUT/PATCH) containing unknown or duplicate fields. + Valid values are: - Ignore: This will ignore any unknown fields that are + silently dropped from the object, and will ignore all but the last duplicate + field that the decoder encounters. This is the default behavior prior to + v1.23. - Warn: This will send a warning via the standard warning response + header for each unknown field that is dropped from the object, and for each + duplicate field that is encountered. The request will still succeed if there + are no other errors, and will only persist the last of any duplicate fields. + This is the default in v1.23+ - Strict: This will fail the request with + a BadRequest error if any unknown fields would be dropped from the object, + or if any duplicate fields are present. The error returned from the server + will contain all unknown and duplicate fields encountered.' + in: query + name: fieldValidation + schema: + type: string + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/v1.ServiceCIDR' + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.ServiceCIDR' + application/yaml: + schema: + $ref: '#/components/schemas/v1.ServiceCIDR' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.ServiceCIDR' + application/cbor: + schema: + $ref: '#/components/schemas/v1.ServiceCIDR' + description: OK + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.ServiceCIDR' + application/yaml: + schema: + $ref: '#/components/schemas/v1.ServiceCIDR' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.ServiceCIDR' + application/cbor: + schema: + $ref: '#/components/schemas/v1.ServiceCIDR' + description: Created + "401": + content: {} + description: Unauthorized + tags: + - networking_v1 + x-kubernetes-action: put + x-kubernetes-group-version-kind: + group: networking.k8s.io + kind: ServiceCIDR + version: v1 + x-codegen-request-body-name: body + x-contentType: application/json + x-accepts: application/json + /apis/networking.k8s.io/v1/watch/ingressclasses: {} + /apis/networking.k8s.io/v1/watch/ingressclasses/{name}: {} + /apis/networking.k8s.io/v1/watch/ingresses: {} + /apis/networking.k8s.io/v1/watch/ipaddresses: {} + /apis/networking.k8s.io/v1/watch/ipaddresses/{name}: {} + /apis/networking.k8s.io/v1/watch/namespaces/{namespace}/ingresses: {} + /apis/networking.k8s.io/v1/watch/namespaces/{namespace}/ingresses/{name}: {} + /apis/networking.k8s.io/v1/watch/namespaces/{namespace}/networkpolicies: {} + /apis/networking.k8s.io/v1/watch/namespaces/{namespace}/networkpolicies/{name}: {} + /apis/networking.k8s.io/v1/watch/networkpolicies: {} + /apis/networking.k8s.io/v1/watch/servicecidrs: {} + /apis/networking.k8s.io/v1/watch/servicecidrs/{name}: {} + /apis/networking.k8s.io/v1beta1/: + get: + description: get available resources + operationId: getAPIResources + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.APIResourceList' + application/yaml: + schema: + $ref: '#/components/schemas/v1.APIResourceList' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.APIResourceList' + application/cbor: + schema: + $ref: '#/components/schemas/v1.APIResourceList' + description: OK + "401": + content: {} + description: Unauthorized + tags: + - networking_v1beta1 + x-accepts: application/json + /apis/networking.k8s.io/v1beta1/ipaddresses: + delete: + description: delete collection of IPAddress + operationId: deleteCollectionIPAddress + parameters: + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -52791,6 +56864,20 @@ paths: name: gracePeriodSeconds schema: type: integer + - description: 'if set to true, it will trigger an unsafe deletion of the resource + in case the normal deletion flow fails with a corrupt object error. A resource + is considered corrupt if it can not be retrieved from the underlying storage + successfully because of a) its data can not be transformed e.g. decryption + failure, or b) it fails to decode into an object. NOTE: unsafe deletion + ignores finalizer constraints, skips precondition checks, and removes the + object from the storage. WARNING: This may potentially break the cluster + if the workload associated with the resource being unsafe-deleted relies + on normal deletion flow. Use only if you REALLY know what you are doing. + The default value is false, and the user must opt in to enable it' + in: query + name: ignoreStoreReadErrorWithClusterBreakingPotential + schema: + type: boolean - description: A selector to restrict the list of returned objects by their labels. Defaults to everything. in: query @@ -52882,31 +56969,30 @@ paths: application/vnd.kubernetes.protobuf: schema: $ref: '#/components/schemas/v1.Status' + application/cbor: + schema: + $ref: '#/components/schemas/v1.Status' description: OK "401": content: {} description: Unauthorized tags: - - rbacAuthorization_v1 + - networking_v1beta1 x-kubernetes-action: deletecollection x-kubernetes-group-version-kind: - group: rbac.authorization.k8s.io - kind: RoleBinding - version: v1 + group: networking.k8s.io + kind: IPAddress + version: v1beta1 x-codegen-request-body-name: body x-contentType: application/json x-accepts: application/json get: - description: list or watch objects of kind RoleBinding - operationId: listNamespacedRoleBinding + description: list or watch objects of kind IPAddress + operationId: listIPAddress parameters: - - description: object name and auth scope, such as for teams and projects - in: path - name: namespace - required: true - schema: - type: string - - description: If 'true', then the output is pretty printed. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -53000,42 +57086,44 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.RoleBindingList' + $ref: '#/components/schemas/v1beta1.IPAddressList' application/yaml: schema: - $ref: '#/components/schemas/v1.RoleBindingList' + $ref: '#/components/schemas/v1beta1.IPAddressList' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.RoleBindingList' + $ref: '#/components/schemas/v1beta1.IPAddressList' + application/cbor: + schema: + $ref: '#/components/schemas/v1beta1.IPAddressList' application/json;stream=watch: schema: - $ref: '#/components/schemas/v1.RoleBindingList' + $ref: '#/components/schemas/v1beta1.IPAddressList' application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: '#/components/schemas/v1.RoleBindingList' + $ref: '#/components/schemas/v1beta1.IPAddressList' + application/cbor-seq: + schema: + $ref: '#/components/schemas/v1beta1.IPAddressList' description: OK "401": content: {} description: Unauthorized tags: - - rbacAuthorization_v1 + - networking_v1beta1 x-kubernetes-action: list x-kubernetes-group-version-kind: - group: rbac.authorization.k8s.io - kind: RoleBinding - version: v1 + group: networking.k8s.io + kind: IPAddress + version: v1beta1 x-accepts: application/json post: - description: create a RoleBinding - operationId: createNamespacedRoleBinding + description: create an IPAddress + operationId: createIPAddress parameters: - - description: object name and auth scope, such as for teams and projects - in: path - name: namespace - required: true - schema: - type: string - - description: If 'true', then the output is pretty printed. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -53076,76 +57164,81 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.RoleBinding' + $ref: '#/components/schemas/v1beta1.IPAddress' required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.RoleBinding' + $ref: '#/components/schemas/v1beta1.IPAddress' application/yaml: schema: - $ref: '#/components/schemas/v1.RoleBinding' + $ref: '#/components/schemas/v1beta1.IPAddress' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.RoleBinding' + $ref: '#/components/schemas/v1beta1.IPAddress' + application/cbor: + schema: + $ref: '#/components/schemas/v1beta1.IPAddress' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.RoleBinding' + $ref: '#/components/schemas/v1beta1.IPAddress' application/yaml: schema: - $ref: '#/components/schemas/v1.RoleBinding' + $ref: '#/components/schemas/v1beta1.IPAddress' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.RoleBinding' + $ref: '#/components/schemas/v1beta1.IPAddress' + application/cbor: + schema: + $ref: '#/components/schemas/v1beta1.IPAddress' description: Created "202": content: application/json: schema: - $ref: '#/components/schemas/v1.RoleBinding' + $ref: '#/components/schemas/v1beta1.IPAddress' application/yaml: schema: - $ref: '#/components/schemas/v1.RoleBinding' + $ref: '#/components/schemas/v1beta1.IPAddress' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.RoleBinding' + $ref: '#/components/schemas/v1beta1.IPAddress' + application/cbor: + schema: + $ref: '#/components/schemas/v1beta1.IPAddress' description: Accepted "401": content: {} description: Unauthorized tags: - - rbacAuthorization_v1 + - networking_v1beta1 x-kubernetes-action: post x-kubernetes-group-version-kind: - group: rbac.authorization.k8s.io - kind: RoleBinding - version: v1 + group: networking.k8s.io + kind: IPAddress + version: v1beta1 x-codegen-request-body-name: body x-contentType: application/json x-accepts: application/json - /apis/rbac.authorization.k8s.io/v1/namespaces/{namespace}/rolebindings/{name}: + /apis/networking.k8s.io/v1beta1/ipaddresses/{name}: delete: - description: delete a RoleBinding - operationId: deleteNamespacedRoleBinding + description: delete an IPAddress + operationId: deleteIPAddress parameters: - - description: name of the RoleBinding + - description: name of the IPAddress in: path name: name required: true schema: type: string - - description: object name and auth scope, such as for teams and projects - in: path - name: namespace - required: true - schema: - type: string - - description: If 'true', then the output is pretty printed. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -53167,6 +57260,20 @@ paths: name: gracePeriodSeconds schema: type: integer + - description: 'if set to true, it will trigger an unsafe deletion of the resource + in case the normal deletion flow fails with a corrupt object error. A resource + is considered corrupt if it can not be retrieved from the underlying storage + successfully because of a) its data can not be transformed e.g. decryption + failure, or b) it fails to decode into an object. NOTE: unsafe deletion + ignores finalizer constraints, skips precondition checks, and removes the + object from the storage. WARNING: This may potentially break the cluster + if the workload associated with the resource being unsafe-deleted relies + on normal deletion flow. Use only if you REALLY know what you are doing. + The default value is false, and the user must opt in to enable it' + in: query + name: ignoreStoreReadErrorWithClusterBreakingPotential + schema: + type: boolean - description: '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 @@ -53204,6 +57311,9 @@ paths: application/vnd.kubernetes.protobuf: schema: $ref: '#/components/schemas/v1.Status' + application/cbor: + schema: + $ref: '#/components/schemas/v1.Status' description: OK "202": content: @@ -53216,37 +57326,36 @@ paths: application/vnd.kubernetes.protobuf: schema: $ref: '#/components/schemas/v1.Status' + application/cbor: + schema: + $ref: '#/components/schemas/v1.Status' description: Accepted "401": content: {} description: Unauthorized tags: - - rbacAuthorization_v1 + - networking_v1beta1 x-kubernetes-action: delete x-kubernetes-group-version-kind: - group: rbac.authorization.k8s.io - kind: RoleBinding - version: v1 + group: networking.k8s.io + kind: IPAddress + version: v1beta1 x-codegen-request-body-name: body x-contentType: application/json x-accepts: application/json get: - description: read the specified RoleBinding - operationId: readNamespacedRoleBinding + description: read the specified IPAddress + operationId: readIPAddress parameters: - - description: name of the RoleBinding + - description: name of the IPAddress in: path name: name required: true schema: type: string - - description: object name and auth scope, such as for teams and projects - in: path - name: namespace - required: true - schema: - type: string - - description: If 'true', then the output is pretty printed. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -53256,42 +57365,41 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.RoleBinding' + $ref: '#/components/schemas/v1beta1.IPAddress' application/yaml: schema: - $ref: '#/components/schemas/v1.RoleBinding' + $ref: '#/components/schemas/v1beta1.IPAddress' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.RoleBinding' + $ref: '#/components/schemas/v1beta1.IPAddress' + application/cbor: + schema: + $ref: '#/components/schemas/v1beta1.IPAddress' description: OK "401": content: {} description: Unauthorized tags: - - rbacAuthorization_v1 + - networking_v1beta1 x-kubernetes-action: get x-kubernetes-group-version-kind: - group: rbac.authorization.k8s.io - kind: RoleBinding - version: v1 + group: networking.k8s.io + kind: IPAddress + version: v1beta1 x-accepts: application/json patch: - description: partially update the specified RoleBinding - operationId: patchNamespacedRoleBinding + description: partially update the specified IPAddress + operationId: patchIPAddress parameters: - - description: name of the RoleBinding + - description: name of the IPAddress in: path name: name required: true schema: type: string - - description: object name and auth scope, such as for teams and projects - in: path - name: namespace - required: true - schema: - type: string - - description: If 'true', then the output is pretty printed. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -53348,56 +57456,58 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.RoleBinding' + $ref: '#/components/schemas/v1beta1.IPAddress' application/yaml: schema: - $ref: '#/components/schemas/v1.RoleBinding' + $ref: '#/components/schemas/v1beta1.IPAddress' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.RoleBinding' + $ref: '#/components/schemas/v1beta1.IPAddress' + application/cbor: + schema: + $ref: '#/components/schemas/v1beta1.IPAddress' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.RoleBinding' + $ref: '#/components/schemas/v1beta1.IPAddress' application/yaml: schema: - $ref: '#/components/schemas/v1.RoleBinding' + $ref: '#/components/schemas/v1beta1.IPAddress' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.RoleBinding' + $ref: '#/components/schemas/v1beta1.IPAddress' + application/cbor: + schema: + $ref: '#/components/schemas/v1beta1.IPAddress' description: Created "401": content: {} description: Unauthorized tags: - - rbacAuthorization_v1 + - networking_v1beta1 x-kubernetes-action: patch x-kubernetes-group-version-kind: - group: rbac.authorization.k8s.io - kind: RoleBinding - version: v1 + group: networking.k8s.io + kind: IPAddress + version: v1beta1 x-codegen-request-body-name: body x-contentType: application/json x-accepts: application/json put: - description: replace the specified RoleBinding - operationId: replaceNamespacedRoleBinding + description: replace the specified IPAddress + operationId: replaceIPAddress parameters: - - description: name of the RoleBinding + - description: name of the IPAddress in: path name: name required: true schema: type: string - - description: object name and auth scope, such as for teams and projects - in: path - name: namespace - required: true - schema: - type: string - - description: If 'true', then the output is pretty printed. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -53438,58 +57548,60 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.RoleBinding' + $ref: '#/components/schemas/v1beta1.IPAddress' required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.RoleBinding' + $ref: '#/components/schemas/v1beta1.IPAddress' application/yaml: schema: - $ref: '#/components/schemas/v1.RoleBinding' + $ref: '#/components/schemas/v1beta1.IPAddress' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.RoleBinding' + $ref: '#/components/schemas/v1beta1.IPAddress' + application/cbor: + schema: + $ref: '#/components/schemas/v1beta1.IPAddress' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.RoleBinding' + $ref: '#/components/schemas/v1beta1.IPAddress' application/yaml: schema: - $ref: '#/components/schemas/v1.RoleBinding' + $ref: '#/components/schemas/v1beta1.IPAddress' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.RoleBinding' + $ref: '#/components/schemas/v1beta1.IPAddress' + application/cbor: + schema: + $ref: '#/components/schemas/v1beta1.IPAddress' description: Created "401": content: {} description: Unauthorized tags: - - rbacAuthorization_v1 + - networking_v1beta1 x-kubernetes-action: put x-kubernetes-group-version-kind: - group: rbac.authorization.k8s.io - kind: RoleBinding - version: v1 + group: networking.k8s.io + kind: IPAddress + version: v1beta1 x-codegen-request-body-name: body x-contentType: application/json x-accepts: application/json - /apis/rbac.authorization.k8s.io/v1/namespaces/{namespace}/roles: + /apis/networking.k8s.io/v1beta1/servicecidrs: delete: - description: delete collection of Role - operationId: deleteCollectionNamespacedRole + description: delete collection of ServiceCIDR + operationId: deleteCollectionServiceCIDR parameters: - - description: object name and auth scope, such as for teams and projects - in: path - name: namespace - required: true - schema: - type: string - - description: If 'true', then the output is pretty printed. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -53525,6 +57637,20 @@ paths: name: gracePeriodSeconds schema: type: integer + - description: 'if set to true, it will trigger an unsafe deletion of the resource + in case the normal deletion flow fails with a corrupt object error. A resource + is considered corrupt if it can not be retrieved from the underlying storage + successfully because of a) its data can not be transformed e.g. decryption + failure, or b) it fails to decode into an object. NOTE: unsafe deletion + ignores finalizer constraints, skips precondition checks, and removes the + object from the storage. WARNING: This may potentially break the cluster + if the workload associated with the resource being unsafe-deleted relies + on normal deletion flow. Use only if you REALLY know what you are doing. + The default value is false, and the user must opt in to enable it' + in: query + name: ignoreStoreReadErrorWithClusterBreakingPotential + schema: + type: boolean - description: A selector to restrict the list of returned objects by their labels. Defaults to everything. in: query @@ -53616,31 +57742,30 @@ paths: application/vnd.kubernetes.protobuf: schema: $ref: '#/components/schemas/v1.Status' + application/cbor: + schema: + $ref: '#/components/schemas/v1.Status' description: OK "401": content: {} description: Unauthorized tags: - - rbacAuthorization_v1 + - networking_v1beta1 x-kubernetes-action: deletecollection x-kubernetes-group-version-kind: - group: rbac.authorization.k8s.io - kind: Role - version: v1 + group: networking.k8s.io + kind: ServiceCIDR + version: v1beta1 x-codegen-request-body-name: body x-contentType: application/json x-accepts: application/json get: - description: list or watch objects of kind Role - operationId: listNamespacedRole + description: list or watch objects of kind ServiceCIDR + operationId: listServiceCIDR parameters: - - description: object name and auth scope, such as for teams and projects - in: path - name: namespace - required: true - schema: - type: string - - description: If 'true', then the output is pretty printed. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -53734,42 +57859,44 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.RoleList' + $ref: '#/components/schemas/v1beta1.ServiceCIDRList' application/yaml: schema: - $ref: '#/components/schemas/v1.RoleList' + $ref: '#/components/schemas/v1beta1.ServiceCIDRList' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.RoleList' + $ref: '#/components/schemas/v1beta1.ServiceCIDRList' + application/cbor: + schema: + $ref: '#/components/schemas/v1beta1.ServiceCIDRList' application/json;stream=watch: schema: - $ref: '#/components/schemas/v1.RoleList' + $ref: '#/components/schemas/v1beta1.ServiceCIDRList' application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: '#/components/schemas/v1.RoleList' + $ref: '#/components/schemas/v1beta1.ServiceCIDRList' + application/cbor-seq: + schema: + $ref: '#/components/schemas/v1beta1.ServiceCIDRList' description: OK "401": content: {} description: Unauthorized tags: - - rbacAuthorization_v1 + - networking_v1beta1 x-kubernetes-action: list x-kubernetes-group-version-kind: - group: rbac.authorization.k8s.io - kind: Role - version: v1 + group: networking.k8s.io + kind: ServiceCIDR + version: v1beta1 x-accepts: application/json post: - description: create a Role - operationId: createNamespacedRole + description: create a ServiceCIDR + operationId: createServiceCIDR parameters: - - description: object name and auth scope, such as for teams and projects - in: path - name: namespace - required: true - schema: - type: string - - description: If 'true', then the output is pretty printed. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -53810,76 +57937,81 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.Role' + $ref: '#/components/schemas/v1beta1.ServiceCIDR' required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.Role' + $ref: '#/components/schemas/v1beta1.ServiceCIDR' application/yaml: schema: - $ref: '#/components/schemas/v1.Role' + $ref: '#/components/schemas/v1beta1.ServiceCIDR' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Role' + $ref: '#/components/schemas/v1beta1.ServiceCIDR' + application/cbor: + schema: + $ref: '#/components/schemas/v1beta1.ServiceCIDR' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.Role' + $ref: '#/components/schemas/v1beta1.ServiceCIDR' application/yaml: schema: - $ref: '#/components/schemas/v1.Role' + $ref: '#/components/schemas/v1beta1.ServiceCIDR' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Role' + $ref: '#/components/schemas/v1beta1.ServiceCIDR' + application/cbor: + schema: + $ref: '#/components/schemas/v1beta1.ServiceCIDR' description: Created "202": content: application/json: schema: - $ref: '#/components/schemas/v1.Role' + $ref: '#/components/schemas/v1beta1.ServiceCIDR' application/yaml: schema: - $ref: '#/components/schemas/v1.Role' + $ref: '#/components/schemas/v1beta1.ServiceCIDR' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Role' + $ref: '#/components/schemas/v1beta1.ServiceCIDR' + application/cbor: + schema: + $ref: '#/components/schemas/v1beta1.ServiceCIDR' description: Accepted "401": content: {} description: Unauthorized tags: - - rbacAuthorization_v1 + - networking_v1beta1 x-kubernetes-action: post x-kubernetes-group-version-kind: - group: rbac.authorization.k8s.io - kind: Role - version: v1 + group: networking.k8s.io + kind: ServiceCIDR + version: v1beta1 x-codegen-request-body-name: body x-contentType: application/json x-accepts: application/json - /apis/rbac.authorization.k8s.io/v1/namespaces/{namespace}/roles/{name}: + /apis/networking.k8s.io/v1beta1/servicecidrs/{name}: delete: - description: delete a Role - operationId: deleteNamespacedRole + description: delete a ServiceCIDR + operationId: deleteServiceCIDR parameters: - - description: name of the Role + - description: name of the ServiceCIDR in: path name: name required: true schema: type: string - - description: object name and auth scope, such as for teams and projects - in: path - name: namespace - required: true - schema: - type: string - - description: If 'true', then the output is pretty printed. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -53901,6 +58033,20 @@ paths: name: gracePeriodSeconds schema: type: integer + - description: 'if set to true, it will trigger an unsafe deletion of the resource + in case the normal deletion flow fails with a corrupt object error. A resource + is considered corrupt if it can not be retrieved from the underlying storage + successfully because of a) its data can not be transformed e.g. decryption + failure, or b) it fails to decode into an object. NOTE: unsafe deletion + ignores finalizer constraints, skips precondition checks, and removes the + object from the storage. WARNING: This may potentially break the cluster + if the workload associated with the resource being unsafe-deleted relies + on normal deletion flow. Use only if you REALLY know what you are doing. + The default value is false, and the user must opt in to enable it' + in: query + name: ignoreStoreReadErrorWithClusterBreakingPotential + schema: + type: boolean - description: '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 @@ -53938,6 +58084,9 @@ paths: application/vnd.kubernetes.protobuf: schema: $ref: '#/components/schemas/v1.Status' + application/cbor: + schema: + $ref: '#/components/schemas/v1.Status' description: OK "202": content: @@ -53950,37 +58099,36 @@ paths: application/vnd.kubernetes.protobuf: schema: $ref: '#/components/schemas/v1.Status' + application/cbor: + schema: + $ref: '#/components/schemas/v1.Status' description: Accepted "401": content: {} description: Unauthorized tags: - - rbacAuthorization_v1 + - networking_v1beta1 x-kubernetes-action: delete x-kubernetes-group-version-kind: - group: rbac.authorization.k8s.io - kind: Role - version: v1 + group: networking.k8s.io + kind: ServiceCIDR + version: v1beta1 x-codegen-request-body-name: body x-contentType: application/json x-accepts: application/json get: - description: read the specified Role - operationId: readNamespacedRole + description: read the specified ServiceCIDR + operationId: readServiceCIDR parameters: - - description: name of the Role + - description: name of the ServiceCIDR in: path name: name required: true schema: type: string - - description: object name and auth scope, such as for teams and projects - in: path - name: namespace - required: true - schema: - type: string - - description: If 'true', then the output is pretty printed. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -53990,42 +58138,41 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.Role' + $ref: '#/components/schemas/v1beta1.ServiceCIDR' application/yaml: schema: - $ref: '#/components/schemas/v1.Role' + $ref: '#/components/schemas/v1beta1.ServiceCIDR' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Role' + $ref: '#/components/schemas/v1beta1.ServiceCIDR' + application/cbor: + schema: + $ref: '#/components/schemas/v1beta1.ServiceCIDR' description: OK "401": content: {} description: Unauthorized tags: - - rbacAuthorization_v1 + - networking_v1beta1 x-kubernetes-action: get x-kubernetes-group-version-kind: - group: rbac.authorization.k8s.io - kind: Role - version: v1 + group: networking.k8s.io + kind: ServiceCIDR + version: v1beta1 x-accepts: application/json patch: - description: partially update the specified Role - operationId: patchNamespacedRole + description: partially update the specified ServiceCIDR + operationId: patchServiceCIDR parameters: - - description: name of the Role + - description: name of the ServiceCIDR in: path name: name required: true schema: type: string - - description: object name and auth scope, such as for teams and projects - in: path - name: namespace - required: true - schema: - type: string - - description: If 'true', then the output is pretty printed. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -54082,56 +58229,58 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.Role' + $ref: '#/components/schemas/v1beta1.ServiceCIDR' application/yaml: schema: - $ref: '#/components/schemas/v1.Role' + $ref: '#/components/schemas/v1beta1.ServiceCIDR' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Role' + $ref: '#/components/schemas/v1beta1.ServiceCIDR' + application/cbor: + schema: + $ref: '#/components/schemas/v1beta1.ServiceCIDR' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.Role' + $ref: '#/components/schemas/v1beta1.ServiceCIDR' application/yaml: schema: - $ref: '#/components/schemas/v1.Role' + $ref: '#/components/schemas/v1beta1.ServiceCIDR' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Role' + $ref: '#/components/schemas/v1beta1.ServiceCIDR' + application/cbor: + schema: + $ref: '#/components/schemas/v1beta1.ServiceCIDR' description: Created "401": content: {} description: Unauthorized tags: - - rbacAuthorization_v1 + - networking_v1beta1 x-kubernetes-action: patch x-kubernetes-group-version-kind: - group: rbac.authorization.k8s.io - kind: Role - version: v1 + group: networking.k8s.io + kind: ServiceCIDR + version: v1beta1 x-codegen-request-body-name: body x-contentType: application/json x-accepts: application/json put: - description: replace the specified Role - operationId: replaceNamespacedRole + description: replace the specified ServiceCIDR + operationId: replaceServiceCIDR parameters: - - description: name of the Role + - description: name of the ServiceCIDR in: path name: name required: true schema: type: string - - description: object name and auth scope, such as for teams and projects - in: path - name: namespace - required: true - schema: - type: string - - description: If 'true', then the output is pretty printed. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -54172,305 +58321,309 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.Role' + $ref: '#/components/schemas/v1beta1.ServiceCIDR' required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.Role' + $ref: '#/components/schemas/v1beta1.ServiceCIDR' application/yaml: schema: - $ref: '#/components/schemas/v1.Role' + $ref: '#/components/schemas/v1beta1.ServiceCIDR' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Role' + $ref: '#/components/schemas/v1beta1.ServiceCIDR' + application/cbor: + schema: + $ref: '#/components/schemas/v1beta1.ServiceCIDR' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.Role' + $ref: '#/components/schemas/v1beta1.ServiceCIDR' application/yaml: schema: - $ref: '#/components/schemas/v1.Role' + $ref: '#/components/schemas/v1beta1.ServiceCIDR' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Role' + $ref: '#/components/schemas/v1beta1.ServiceCIDR' + application/cbor: + schema: + $ref: '#/components/schemas/v1beta1.ServiceCIDR' description: Created "401": content: {} description: Unauthorized tags: - - rbacAuthorization_v1 + - networking_v1beta1 x-kubernetes-action: put x-kubernetes-group-version-kind: - group: rbac.authorization.k8s.io - kind: Role - version: v1 + group: networking.k8s.io + kind: ServiceCIDR + version: v1beta1 x-codegen-request-body-name: body x-contentType: application/json x-accepts: application/json - /apis/rbac.authorization.k8s.io/v1/rolebindings: + /apis/networking.k8s.io/v1beta1/servicecidrs/{name}/status: get: - description: list or watch objects of kind RoleBinding - operationId: listRoleBindingForAllNamespaces + description: read status of the specified ServiceCIDR + operationId: readServiceCIDRStatus parameters: - - description: 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. - in: query - name: allowWatchBookmarks - schema: - type: boolean - - description: |- - 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. - in: query - name: continue + - description: name of the ServiceCIDR + in: path + name: name + required: true schema: type: string - - description: A selector to restrict the list of returned objects by their - fields. Defaults to everything. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query - name: fieldSelector + name: pretty schema: type: string - - description: A selector to restrict the list of returned objects by their - labels. Defaults to everything. - in: query - name: labelSelector + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1beta1.ServiceCIDR' + application/yaml: + schema: + $ref: '#/components/schemas/v1beta1.ServiceCIDR' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1beta1.ServiceCIDR' + application/cbor: + schema: + $ref: '#/components/schemas/v1beta1.ServiceCIDR' + description: OK + "401": + content: {} + description: Unauthorized + tags: + - networking_v1beta1 + x-kubernetes-action: get + x-kubernetes-group-version-kind: + group: networking.k8s.io + kind: ServiceCIDR + version: v1beta1 + x-accepts: application/json + patch: + description: partially update status of the specified ServiceCIDR + operationId: patchServiceCIDRStatus + parameters: + - description: name of the ServiceCIDR + in: path + name: name + required: true schema: type: string - - description: |- - limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. - - The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. - in: query - name: limit - schema: - type: integer - - description: If 'true', then the output is pretty printed. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: type: string - - description: |- - resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. - - Defaults to unset + - description: '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' in: query - name: resourceVersion + name: dryRun schema: type: string - - description: |- - resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. - - Defaults to unset + - description: fieldManager is a name associated with the actor or entity that + is making these changes. The value must be less than or 128 characters long, + and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + This field is required for apply requests (application/apply-patch) but + optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). in: query - name: resourceVersionMatch + name: fieldManager schema: type: string - - description: |- - `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic "Bookmark" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `"k8s.io/initial-events-end": "true"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. - - When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan - is interpreted as "data at least as new as the provided `resourceVersion`" - and the bookmark event is send when the state is synced - to a `resourceVersion` at least as fresh as the one provided by the ListOptions. - If `resourceVersion` is unset, this is interpreted as "consistent read" and the - bookmark event is send when the state is synced at least to the moment - when request started being processed. - - `resourceVersionMatch` set to any other value or unset - Invalid error is returned. - - Defaults to true if `resourceVersion=""` or `resourceVersion="0"` (for backward compatibility reasons) and to false otherwise. - in: query - name: sendInitialEvents - schema: - type: boolean - - description: Timeout for the list/watch call. This limits the duration of - the call, regardless of any activity or inactivity. + - description: 'fieldValidation instructs the server on how to handle objects + in the request (POST/PUT/PATCH) containing unknown or duplicate fields. + Valid values are: - Ignore: This will ignore any unknown fields that are + silently dropped from the object, and will ignore all but the last duplicate + field that the decoder encounters. This is the default behavior prior to + v1.23. - Warn: This will send a warning via the standard warning response + header for each unknown field that is dropped from the object, and for each + duplicate field that is encountered. The request will still succeed if there + are no other errors, and will only persist the last of any duplicate fields. + This is the default in v1.23+ - Strict: This will fail the request with + a BadRequest error if any unknown fields would be dropped from the object, + or if any duplicate fields are present. The error returned from the server + will contain all unknown and duplicate fields encountered.' in: query - name: timeoutSeconds + name: fieldValidation schema: - type: integer - - description: Watch for changes to the described resources and return them - as a stream of add, update, and remove notifications. Specify resourceVersion. + type: string + - description: Force is going to "force" Apply requests. It means user will + re-acquire conflicting fields owned by other people. Force flag must be + unset for non-apply patch requests. in: query - name: watch + name: force schema: type: boolean + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/v1.Patch' + required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.RoleBindingList' + $ref: '#/components/schemas/v1beta1.ServiceCIDR' application/yaml: schema: - $ref: '#/components/schemas/v1.RoleBindingList' + $ref: '#/components/schemas/v1beta1.ServiceCIDR' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.RoleBindingList' - application/json;stream=watch: - schema: - $ref: '#/components/schemas/v1.RoleBindingList' - application/vnd.kubernetes.protobuf;stream=watch: + $ref: '#/components/schemas/v1beta1.ServiceCIDR' + application/cbor: schema: - $ref: '#/components/schemas/v1.RoleBindingList' + $ref: '#/components/schemas/v1beta1.ServiceCIDR' description: OK + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/v1beta1.ServiceCIDR' + application/yaml: + schema: + $ref: '#/components/schemas/v1beta1.ServiceCIDR' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1beta1.ServiceCIDR' + application/cbor: + schema: + $ref: '#/components/schemas/v1beta1.ServiceCIDR' + description: Created "401": content: {} description: Unauthorized tags: - - rbacAuthorization_v1 - x-kubernetes-action: list + - networking_v1beta1 + x-kubernetes-action: patch x-kubernetes-group-version-kind: - group: rbac.authorization.k8s.io - kind: RoleBinding - version: v1 + group: networking.k8s.io + kind: ServiceCIDR + version: v1beta1 + x-codegen-request-body-name: body + x-contentType: application/json x-accepts: application/json - /apis/rbac.authorization.k8s.io/v1/roles: - get: - description: list or watch objects of kind Role - operationId: listRoleForAllNamespaces + put: + description: replace status of the specified ServiceCIDR + operationId: replaceServiceCIDRStatus parameters: - - description: 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. - in: query - name: allowWatchBookmarks - schema: - type: boolean - - description: |- - 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. - in: query - name: continue - 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 - - description: A selector to restrict the list of returned objects by their - labels. Defaults to everything. - in: query - name: labelSelector + - description: name of the ServiceCIDR + in: path + name: name + required: true schema: type: string - - description: |- - limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. - - The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. - in: query - name: limit - schema: - type: integer - - description: If 'true', then the output is pretty printed. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: type: string - - description: |- - resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. - - Defaults to unset + - description: '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' in: query - name: resourceVersion + name: dryRun schema: type: string - - description: |- - resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. - - Defaults to unset + - description: fieldManager is a name associated with the actor or entity that + is making these changes. The value must be less than or 128 characters long, + and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. in: query - name: resourceVersionMatch + name: fieldManager schema: type: string - - description: |- - `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic "Bookmark" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `"k8s.io/initial-events-end": "true"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. - - When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan - is interpreted as "data at least as new as the provided `resourceVersion`" - and the bookmark event is send when the state is synced - to a `resourceVersion` at least as fresh as the one provided by the ListOptions. - If `resourceVersion` is unset, this is interpreted as "consistent read" and the - bookmark event is send when the state is synced at least to the moment - when request started being processed. - - `resourceVersionMatch` set to any other value or unset - Invalid error is returned. - - Defaults to true if `resourceVersion=""` or `resourceVersion="0"` (for backward compatibility reasons) and to false otherwise. - in: query - name: sendInitialEvents - schema: - type: boolean - - description: Timeout for the list/watch call. This limits the duration of - the call, regardless of any activity or inactivity. - in: query - name: timeoutSeconds - schema: - type: integer - - description: Watch for changes to the described resources and return them - as a stream of add, update, and remove notifications. Specify resourceVersion. + - description: 'fieldValidation instructs the server on how to handle objects + in the request (POST/PUT/PATCH) containing unknown or duplicate fields. + Valid values are: - Ignore: This will ignore any unknown fields that are + silently dropped from the object, and will ignore all but the last duplicate + field that the decoder encounters. This is the default behavior prior to + v1.23. - Warn: This will send a warning via the standard warning response + header for each unknown field that is dropped from the object, and for each + duplicate field that is encountered. The request will still succeed if there + are no other errors, and will only persist the last of any duplicate fields. + This is the default in v1.23+ - Strict: This will fail the request with + a BadRequest error if any unknown fields would be dropped from the object, + or if any duplicate fields are present. The error returned from the server + will contain all unknown and duplicate fields encountered.' in: query - name: watch + name: fieldValidation schema: - type: boolean + type: string + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/v1beta1.ServiceCIDR' + required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.RoleList' + $ref: '#/components/schemas/v1beta1.ServiceCIDR' application/yaml: schema: - $ref: '#/components/schemas/v1.RoleList' + $ref: '#/components/schemas/v1beta1.ServiceCIDR' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.RoleList' - application/json;stream=watch: + $ref: '#/components/schemas/v1beta1.ServiceCIDR' + application/cbor: schema: - $ref: '#/components/schemas/v1.RoleList' - application/vnd.kubernetes.protobuf;stream=watch: - schema: - $ref: '#/components/schemas/v1.RoleList' + $ref: '#/components/schemas/v1beta1.ServiceCIDR' description: OK + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/v1beta1.ServiceCIDR' + application/yaml: + schema: + $ref: '#/components/schemas/v1beta1.ServiceCIDR' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1beta1.ServiceCIDR' + application/cbor: + schema: + $ref: '#/components/schemas/v1beta1.ServiceCIDR' + description: Created "401": content: {} description: Unauthorized tags: - - rbacAuthorization_v1 - x-kubernetes-action: list + - networking_v1beta1 + x-kubernetes-action: put x-kubernetes-group-version-kind: - group: rbac.authorization.k8s.io - kind: Role - version: v1 + group: networking.k8s.io + kind: ServiceCIDR + version: v1beta1 + x-codegen-request-body-name: body + x-contentType: application/json x-accepts: application/json - /apis/rbac.authorization.k8s.io/v1/watch/clusterrolebindings: {} - /apis/rbac.authorization.k8s.io/v1/watch/clusterrolebindings/{name}: {} - /apis/rbac.authorization.k8s.io/v1/watch/clusterroles: {} - /apis/rbac.authorization.k8s.io/v1/watch/clusterroles/{name}: {} - /apis/rbac.authorization.k8s.io/v1/watch/namespaces/{namespace}/rolebindings: {} - /apis/rbac.authorization.k8s.io/v1/watch/namespaces/{namespace}/rolebindings/{name}: {} - /apis/rbac.authorization.k8s.io/v1/watch/namespaces/{namespace}/roles: {} - /apis/rbac.authorization.k8s.io/v1/watch/namespaces/{namespace}/roles/{name}: {} - /apis/rbac.authorization.k8s.io/v1/watch/rolebindings: {} - /apis/rbac.authorization.k8s.io/v1/watch/roles: {} - /apis/resource.k8s.io/: + /apis/networking.k8s.io/v1beta1/watch/ipaddresses: {} + /apis/networking.k8s.io/v1beta1/watch/ipaddresses/{name}: {} + /apis/networking.k8s.io/v1beta1/watch/servicecidrs: {} + /apis/networking.k8s.io/v1beta1/watch/servicecidrs/{name}: {} + /apis/node.k8s.io/: get: description: get information of a group operationId: getAPIGroup @@ -54491,9 +58644,9 @@ paths: content: {} description: Unauthorized tags: - - resource + - node x-accepts: application/json - /apis/resource.k8s.io/v1alpha2/: + /apis/node.k8s.io/v1/: get: description: get available resources operationId: getAPIResources @@ -54509,25 +58662,24 @@ paths: application/vnd.kubernetes.protobuf: schema: $ref: '#/components/schemas/v1.APIResourceList' + application/cbor: + schema: + $ref: '#/components/schemas/v1.APIResourceList' description: OK "401": content: {} description: Unauthorized tags: - - resource_v1alpha2 + - node_v1 x-accepts: application/json - /apis/resource.k8s.io/v1alpha2/namespaces/{namespace}/podschedulingcontexts: + /apis/node.k8s.io/v1/runtimeclasses: delete: - description: delete collection of PodSchedulingContext - operationId: deleteCollectionNamespacedPodSchedulingContext + description: delete collection of RuntimeClass + operationId: deleteCollectionRuntimeClass parameters: - - description: object name and auth scope, such as for teams and projects - in: path - name: namespace - required: true - schema: - type: string - - description: If 'true', then the output is pretty printed. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -54563,6 +58715,20 @@ paths: name: gracePeriodSeconds schema: type: integer + - description: 'if set to true, it will trigger an unsafe deletion of the resource + in case the normal deletion flow fails with a corrupt object error. A resource + is considered corrupt if it can not be retrieved from the underlying storage + successfully because of a) its data can not be transformed e.g. decryption + failure, or b) it fails to decode into an object. NOTE: unsafe deletion + ignores finalizer constraints, skips precondition checks, and removes the + object from the storage. WARNING: This may potentially break the cluster + if the workload associated with the resource being unsafe-deleted relies + on normal deletion flow. Use only if you REALLY know what you are doing. + The default value is false, and the user must opt in to enable it' + in: query + name: ignoreStoreReadErrorWithClusterBreakingPotential + schema: + type: boolean - description: A selector to restrict the list of returned objects by their labels. Defaults to everything. in: query @@ -54654,31 +58820,30 @@ paths: application/vnd.kubernetes.protobuf: schema: $ref: '#/components/schemas/v1.Status' + application/cbor: + schema: + $ref: '#/components/schemas/v1.Status' description: OK "401": content: {} description: Unauthorized tags: - - resource_v1alpha2 + - node_v1 x-kubernetes-action: deletecollection x-kubernetes-group-version-kind: - group: resource.k8s.io - kind: PodSchedulingContext - version: v1alpha2 + group: node.k8s.io + kind: RuntimeClass + version: v1 x-codegen-request-body-name: body x-contentType: application/json x-accepts: application/json get: - description: list or watch objects of kind PodSchedulingContext - operationId: listNamespacedPodSchedulingContext + description: list or watch objects of kind RuntimeClass + operationId: listRuntimeClass parameters: - - description: object name and auth scope, such as for teams and projects - in: path - name: namespace - required: true - schema: - type: string - - description: If 'true', then the output is pretty printed. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -54772,42 +58937,44 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1alpha2.PodSchedulingContextList' + $ref: '#/components/schemas/v1.RuntimeClassList' application/yaml: schema: - $ref: '#/components/schemas/v1alpha2.PodSchedulingContextList' + $ref: '#/components/schemas/v1.RuntimeClassList' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha2.PodSchedulingContextList' + $ref: '#/components/schemas/v1.RuntimeClassList' + application/cbor: + schema: + $ref: '#/components/schemas/v1.RuntimeClassList' application/json;stream=watch: schema: - $ref: '#/components/schemas/v1alpha2.PodSchedulingContextList' + $ref: '#/components/schemas/v1.RuntimeClassList' application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: '#/components/schemas/v1alpha2.PodSchedulingContextList' + $ref: '#/components/schemas/v1.RuntimeClassList' + application/cbor-seq: + schema: + $ref: '#/components/schemas/v1.RuntimeClassList' description: OK "401": content: {} description: Unauthorized tags: - - resource_v1alpha2 + - node_v1 x-kubernetes-action: list x-kubernetes-group-version-kind: - group: resource.k8s.io - kind: PodSchedulingContext - version: v1alpha2 + group: node.k8s.io + kind: RuntimeClass + version: v1 x-accepts: application/json post: - description: create a PodSchedulingContext - operationId: createNamespacedPodSchedulingContext + description: create a RuntimeClass + operationId: createRuntimeClass parameters: - - description: object name and auth scope, such as for teams and projects - in: path - name: namespace - required: true - schema: - type: string - - description: If 'true', then the output is pretty printed. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -54848,76 +59015,81 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1alpha2.PodSchedulingContext' + $ref: '#/components/schemas/v1.RuntimeClass' required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1alpha2.PodSchedulingContext' + $ref: '#/components/schemas/v1.RuntimeClass' application/yaml: schema: - $ref: '#/components/schemas/v1alpha2.PodSchedulingContext' + $ref: '#/components/schemas/v1.RuntimeClass' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha2.PodSchedulingContext' + $ref: '#/components/schemas/v1.RuntimeClass' + application/cbor: + schema: + $ref: '#/components/schemas/v1.RuntimeClass' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1alpha2.PodSchedulingContext' + $ref: '#/components/schemas/v1.RuntimeClass' application/yaml: schema: - $ref: '#/components/schemas/v1alpha2.PodSchedulingContext' + $ref: '#/components/schemas/v1.RuntimeClass' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha2.PodSchedulingContext' + $ref: '#/components/schemas/v1.RuntimeClass' + application/cbor: + schema: + $ref: '#/components/schemas/v1.RuntimeClass' description: Created "202": content: application/json: schema: - $ref: '#/components/schemas/v1alpha2.PodSchedulingContext' + $ref: '#/components/schemas/v1.RuntimeClass' application/yaml: schema: - $ref: '#/components/schemas/v1alpha2.PodSchedulingContext' + $ref: '#/components/schemas/v1.RuntimeClass' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha2.PodSchedulingContext' + $ref: '#/components/schemas/v1.RuntimeClass' + application/cbor: + schema: + $ref: '#/components/schemas/v1.RuntimeClass' description: Accepted "401": content: {} description: Unauthorized tags: - - resource_v1alpha2 + - node_v1 x-kubernetes-action: post x-kubernetes-group-version-kind: - group: resource.k8s.io - kind: PodSchedulingContext - version: v1alpha2 + group: node.k8s.io + kind: RuntimeClass + version: v1 x-codegen-request-body-name: body x-contentType: application/json x-accepts: application/json - /apis/resource.k8s.io/v1alpha2/namespaces/{namespace}/podschedulingcontexts/{name}: + /apis/node.k8s.io/v1/runtimeclasses/{name}: delete: - description: delete a PodSchedulingContext - operationId: deleteNamespacedPodSchedulingContext + description: delete a RuntimeClass + operationId: deleteRuntimeClass parameters: - - description: name of the PodSchedulingContext + - description: name of the RuntimeClass in: path name: name required: true schema: type: string - - description: object name and auth scope, such as for teams and projects - in: path - name: namespace - required: true - schema: - type: string - - description: If 'true', then the output is pretty printed. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -54939,6 +59111,20 @@ paths: name: gracePeriodSeconds schema: type: integer + - description: 'if set to true, it will trigger an unsafe deletion of the resource + in case the normal deletion flow fails with a corrupt object error. A resource + is considered corrupt if it can not be retrieved from the underlying storage + successfully because of a) its data can not be transformed e.g. decryption + failure, or b) it fails to decode into an object. NOTE: unsafe deletion + ignores finalizer constraints, skips precondition checks, and removes the + object from the storage. WARNING: This may potentially break the cluster + if the workload associated with the resource being unsafe-deleted relies + on normal deletion flow. Use only if you REALLY know what you are doing. + The default value is false, and the user must opt in to enable it' + in: query + name: ignoreStoreReadErrorWithClusterBreakingPotential + schema: + type: boolean - description: '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 @@ -54969,56 +59155,58 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1alpha2.PodSchedulingContext' + $ref: '#/components/schemas/v1.Status' application/yaml: schema: - $ref: '#/components/schemas/v1alpha2.PodSchedulingContext' + $ref: '#/components/schemas/v1.Status' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha2.PodSchedulingContext' + $ref: '#/components/schemas/v1.Status' + application/cbor: + schema: + $ref: '#/components/schemas/v1.Status' description: OK "202": content: application/json: schema: - $ref: '#/components/schemas/v1alpha2.PodSchedulingContext' + $ref: '#/components/schemas/v1.Status' application/yaml: schema: - $ref: '#/components/schemas/v1alpha2.PodSchedulingContext' + $ref: '#/components/schemas/v1.Status' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha2.PodSchedulingContext' + $ref: '#/components/schemas/v1.Status' + application/cbor: + schema: + $ref: '#/components/schemas/v1.Status' description: Accepted "401": content: {} description: Unauthorized tags: - - resource_v1alpha2 + - node_v1 x-kubernetes-action: delete x-kubernetes-group-version-kind: - group: resource.k8s.io - kind: PodSchedulingContext - version: v1alpha2 + group: node.k8s.io + kind: RuntimeClass + version: v1 x-codegen-request-body-name: body x-contentType: application/json x-accepts: application/json get: - description: read the specified PodSchedulingContext - operationId: readNamespacedPodSchedulingContext + description: read the specified RuntimeClass + operationId: readRuntimeClass parameters: - - description: name of the PodSchedulingContext + - description: name of the RuntimeClass in: path name: name required: true schema: type: string - - description: object name and auth scope, such as for teams and projects - in: path - name: namespace - required: true - schema: - type: string - - description: If 'true', then the output is pretty printed. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -55028,42 +59216,41 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1alpha2.PodSchedulingContext' + $ref: '#/components/schemas/v1.RuntimeClass' application/yaml: schema: - $ref: '#/components/schemas/v1alpha2.PodSchedulingContext' + $ref: '#/components/schemas/v1.RuntimeClass' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha2.PodSchedulingContext' + $ref: '#/components/schemas/v1.RuntimeClass' + application/cbor: + schema: + $ref: '#/components/schemas/v1.RuntimeClass' description: OK "401": content: {} description: Unauthorized tags: - - resource_v1alpha2 + - node_v1 x-kubernetes-action: get x-kubernetes-group-version-kind: - group: resource.k8s.io - kind: PodSchedulingContext - version: v1alpha2 + group: node.k8s.io + kind: RuntimeClass + version: v1 x-accepts: application/json patch: - description: partially update the specified PodSchedulingContext - operationId: patchNamespacedPodSchedulingContext + description: partially update the specified RuntimeClass + operationId: patchRuntimeClass parameters: - - description: name of the PodSchedulingContext + - description: name of the RuntimeClass in: path name: name required: true schema: type: string - - description: object name and auth scope, such as for teams and projects - in: path - name: namespace - required: true - schema: - type: string - - description: If 'true', then the output is pretty printed. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -55120,56 +59307,58 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1alpha2.PodSchedulingContext' + $ref: '#/components/schemas/v1.RuntimeClass' application/yaml: schema: - $ref: '#/components/schemas/v1alpha2.PodSchedulingContext' + $ref: '#/components/schemas/v1.RuntimeClass' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha2.PodSchedulingContext' + $ref: '#/components/schemas/v1.RuntimeClass' + application/cbor: + schema: + $ref: '#/components/schemas/v1.RuntimeClass' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1alpha2.PodSchedulingContext' + $ref: '#/components/schemas/v1.RuntimeClass' application/yaml: schema: - $ref: '#/components/schemas/v1alpha2.PodSchedulingContext' + $ref: '#/components/schemas/v1.RuntimeClass' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha2.PodSchedulingContext' + $ref: '#/components/schemas/v1.RuntimeClass' + application/cbor: + schema: + $ref: '#/components/schemas/v1.RuntimeClass' description: Created "401": content: {} description: Unauthorized tags: - - resource_v1alpha2 + - node_v1 x-kubernetes-action: patch x-kubernetes-group-version-kind: - group: resource.k8s.io - kind: PodSchedulingContext - version: v1alpha2 + group: node.k8s.io + kind: RuntimeClass + version: v1 x-codegen-request-body-name: body x-contentType: application/json x-accepts: application/json put: - description: replace the specified PodSchedulingContext - operationId: replaceNamespacedPodSchedulingContext + description: replace the specified RuntimeClass + operationId: replaceRuntimeClass parameters: - - description: name of the PodSchedulingContext + - description: name of the RuntimeClass in: path name: name required: true schema: type: string - - description: object name and auth scope, such as for teams and projects - in: path - name: namespace - required: true - schema: - type: string - - description: If 'true', then the output is pretty printed. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -55210,299 +59399,107 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1alpha2.PodSchedulingContext' + $ref: '#/components/schemas/v1.RuntimeClass' required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1alpha2.PodSchedulingContext' + $ref: '#/components/schemas/v1.RuntimeClass' application/yaml: schema: - $ref: '#/components/schemas/v1alpha2.PodSchedulingContext' + $ref: '#/components/schemas/v1.RuntimeClass' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha2.PodSchedulingContext' + $ref: '#/components/schemas/v1.RuntimeClass' + application/cbor: + schema: + $ref: '#/components/schemas/v1.RuntimeClass' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1alpha2.PodSchedulingContext' + $ref: '#/components/schemas/v1.RuntimeClass' application/yaml: schema: - $ref: '#/components/schemas/v1alpha2.PodSchedulingContext' + $ref: '#/components/schemas/v1.RuntimeClass' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha2.PodSchedulingContext' + $ref: '#/components/schemas/v1.RuntimeClass' + application/cbor: + schema: + $ref: '#/components/schemas/v1.RuntimeClass' description: Created "401": content: {} description: Unauthorized tags: - - resource_v1alpha2 + - node_v1 x-kubernetes-action: put x-kubernetes-group-version-kind: - group: resource.k8s.io - kind: PodSchedulingContext - version: v1alpha2 + group: node.k8s.io + kind: RuntimeClass + version: v1 x-codegen-request-body-name: body x-contentType: application/json x-accepts: application/json - /apis/resource.k8s.io/v1alpha2/namespaces/{namespace}/podschedulingcontexts/{name}/status: + /apis/node.k8s.io/v1/watch/runtimeclasses: {} + /apis/node.k8s.io/v1/watch/runtimeclasses/{name}: {} + /apis/policy/: get: - description: read status of the specified PodSchedulingContext - operationId: readNamespacedPodSchedulingContextStatus - parameters: - - description: name of the PodSchedulingContext - in: path - name: name - required: true - schema: - type: string - - description: object name and auth scope, such as for teams and projects - in: path - name: namespace - required: true - schema: - type: string - - description: If 'true', then the output is pretty printed. - in: query - name: pretty - schema: - type: string + description: get information of a group + operationId: getAPIGroup responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1alpha2.PodSchedulingContext' + $ref: '#/components/schemas/v1.APIGroup' application/yaml: schema: - $ref: '#/components/schemas/v1alpha2.PodSchedulingContext' + $ref: '#/components/schemas/v1.APIGroup' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha2.PodSchedulingContext' + $ref: '#/components/schemas/v1.APIGroup' description: OK "401": content: {} description: Unauthorized tags: - - resource_v1alpha2 - x-kubernetes-action: get - x-kubernetes-group-version-kind: - group: resource.k8s.io - kind: PodSchedulingContext - version: v1alpha2 + - policy x-accepts: application/json - patch: - description: partially update status of the specified PodSchedulingContext - operationId: patchNamespacedPodSchedulingContextStatus - parameters: - - description: name of the PodSchedulingContext - in: path - name: name - required: true - schema: - type: string - - description: object name and auth scope, such as for teams and projects - in: path - name: namespace - required: true - schema: - type: string - - description: If 'true', then the output is pretty printed. - in: query - name: pretty - schema: - type: string - - description: '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' - in: query - name: dryRun - schema: - type: string - - description: fieldManager is a name associated with the actor or entity that - is making these changes. The value must be less than or 128 characters long, - and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - This field is required for apply requests (application/apply-patch) but - optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). - in: query - name: fieldManager - schema: - type: string - - description: 'fieldValidation instructs the server on how to handle objects - in the request (POST/PUT/PATCH) containing unknown or duplicate fields. - Valid values are: - Ignore: This will ignore any unknown fields that are - silently dropped from the object, and will ignore all but the last duplicate - field that the decoder encounters. This is the default behavior prior to - v1.23. - Warn: This will send a warning via the standard warning response - header for each unknown field that is dropped from the object, and for each - duplicate field that is encountered. The request will still succeed if there - are no other errors, and will only persist the last of any duplicate fields. - This is the default in v1.23+ - Strict: This will fail the request with - a BadRequest error if any unknown fields would be dropped from the object, - or if any duplicate fields are present. The error returned from the server - will contain all unknown and duplicate fields encountered.' - in: query - name: fieldValidation - schema: - type: string - - description: Force is going to "force" Apply requests. It means user will - re-acquire conflicting fields owned by other people. Force flag must be - unset for non-apply patch requests. - in: query - name: force - schema: - type: boolean - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/v1.Patch' - required: true + /apis/policy/v1/: + get: + description: get available resources + operationId: getAPIResources responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1alpha2.PodSchedulingContext' - application/yaml: - schema: - $ref: '#/components/schemas/v1alpha2.PodSchedulingContext' - application/vnd.kubernetes.protobuf: - schema: - $ref: '#/components/schemas/v1alpha2.PodSchedulingContext' - description: OK - "201": - content: - application/json: - schema: - $ref: '#/components/schemas/v1alpha2.PodSchedulingContext' + $ref: '#/components/schemas/v1.APIResourceList' application/yaml: schema: - $ref: '#/components/schemas/v1alpha2.PodSchedulingContext' + $ref: '#/components/schemas/v1.APIResourceList' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha2.PodSchedulingContext' - description: Created - "401": - content: {} - description: Unauthorized - tags: - - resource_v1alpha2 - x-kubernetes-action: patch - x-kubernetes-group-version-kind: - group: resource.k8s.io - kind: PodSchedulingContext - version: v1alpha2 - x-codegen-request-body-name: body - x-contentType: application/json - x-accepts: application/json - put: - description: replace status of the specified PodSchedulingContext - operationId: replaceNamespacedPodSchedulingContextStatus - parameters: - - description: name of the PodSchedulingContext - in: path - name: name - required: true - schema: - type: string - - description: object name and auth scope, such as for teams and projects - in: path - name: namespace - required: true - schema: - type: string - - description: If 'true', then the output is pretty printed. - in: query - name: pretty - schema: - type: string - - description: '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' - in: query - name: dryRun - schema: - type: string - - description: fieldManager is a name associated with the actor or entity that - is making these changes. The value must be less than or 128 characters long, - and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - in: query - name: fieldManager - schema: - type: string - - description: 'fieldValidation instructs the server on how to handle objects - in the request (POST/PUT/PATCH) containing unknown or duplicate fields. - Valid values are: - Ignore: This will ignore any unknown fields that are - silently dropped from the object, and will ignore all but the last duplicate - field that the decoder encounters. This is the default behavior prior to - v1.23. - Warn: This will send a warning via the standard warning response - header for each unknown field that is dropped from the object, and for each - duplicate field that is encountered. The request will still succeed if there - are no other errors, and will only persist the last of any duplicate fields. - This is the default in v1.23+ - Strict: This will fail the request with - a BadRequest error if any unknown fields would be dropped from the object, - or if any duplicate fields are present. The error returned from the server - will contain all unknown and duplicate fields encountered.' - in: query - name: fieldValidation - schema: - type: string - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/v1alpha2.PodSchedulingContext' - required: true - responses: - "200": - content: - application/json: - schema: - $ref: '#/components/schemas/v1alpha2.PodSchedulingContext' - application/yaml: - schema: - $ref: '#/components/schemas/v1alpha2.PodSchedulingContext' - application/vnd.kubernetes.protobuf: + $ref: '#/components/schemas/v1.APIResourceList' + application/cbor: schema: - $ref: '#/components/schemas/v1alpha2.PodSchedulingContext' + $ref: '#/components/schemas/v1.APIResourceList' description: OK - "201": - content: - application/json: - schema: - $ref: '#/components/schemas/v1alpha2.PodSchedulingContext' - application/yaml: - schema: - $ref: '#/components/schemas/v1alpha2.PodSchedulingContext' - application/vnd.kubernetes.protobuf: - schema: - $ref: '#/components/schemas/v1alpha2.PodSchedulingContext' - description: Created "401": content: {} description: Unauthorized tags: - - resource_v1alpha2 - x-kubernetes-action: put - x-kubernetes-group-version-kind: - group: resource.k8s.io - kind: PodSchedulingContext - version: v1alpha2 - x-codegen-request-body-name: body - x-contentType: application/json + - policy_v1 x-accepts: application/json - /apis/resource.k8s.io/v1alpha2/namespaces/{namespace}/resourceclaims: + /apis/policy/v1/namespaces/{namespace}/poddisruptionbudgets: delete: - description: delete collection of ResourceClaim - operationId: deleteCollectionNamespacedResourceClaim + description: delete collection of PodDisruptionBudget + operationId: deleteCollectionNamespacedPodDisruptionBudget parameters: - description: object name and auth scope, such as for teams and projects in: path @@ -55510,7 +59507,9 @@ paths: required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -55546,6 +59545,20 @@ paths: name: gracePeriodSeconds schema: type: integer + - description: 'if set to true, it will trigger an unsafe deletion of the resource + in case the normal deletion flow fails with a corrupt object error. A resource + is considered corrupt if it can not be retrieved from the underlying storage + successfully because of a) its data can not be transformed e.g. decryption + failure, or b) it fails to decode into an object. NOTE: unsafe deletion + ignores finalizer constraints, skips precondition checks, and removes the + object from the storage. WARNING: This may potentially break the cluster + if the workload associated with the resource being unsafe-deleted relies + on normal deletion flow. Use only if you REALLY know what you are doing. + The default value is false, and the user must opt in to enable it' + in: query + name: ignoreStoreReadErrorWithClusterBreakingPotential + schema: + type: boolean - description: A selector to restrict the list of returned objects by their labels. Defaults to everything. in: query @@ -55637,23 +59650,26 @@ paths: application/vnd.kubernetes.protobuf: schema: $ref: '#/components/schemas/v1.Status' + application/cbor: + schema: + $ref: '#/components/schemas/v1.Status' description: OK "401": content: {} description: Unauthorized tags: - - resource_v1alpha2 + - policy_v1 x-kubernetes-action: deletecollection x-kubernetes-group-version-kind: - group: resource.k8s.io - kind: ResourceClaim - version: v1alpha2 + group: policy + kind: PodDisruptionBudget + version: v1 x-codegen-request-body-name: body x-contentType: application/json x-accepts: application/json get: - description: list or watch objects of kind ResourceClaim - operationId: listNamespacedResourceClaim + description: list or watch objects of kind PodDisruptionBudget + operationId: listNamespacedPodDisruptionBudget parameters: - description: object name and auth scope, such as for teams and projects in: path @@ -55661,7 +59677,9 @@ paths: required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -55755,34 +59773,40 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1alpha2.ResourceClaimList' + $ref: '#/components/schemas/v1.PodDisruptionBudgetList' application/yaml: schema: - $ref: '#/components/schemas/v1alpha2.ResourceClaimList' + $ref: '#/components/schemas/v1.PodDisruptionBudgetList' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha2.ResourceClaimList' + $ref: '#/components/schemas/v1.PodDisruptionBudgetList' + application/cbor: + schema: + $ref: '#/components/schemas/v1.PodDisruptionBudgetList' application/json;stream=watch: schema: - $ref: '#/components/schemas/v1alpha2.ResourceClaimList' + $ref: '#/components/schemas/v1.PodDisruptionBudgetList' application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: '#/components/schemas/v1alpha2.ResourceClaimList' + $ref: '#/components/schemas/v1.PodDisruptionBudgetList' + application/cbor-seq: + schema: + $ref: '#/components/schemas/v1.PodDisruptionBudgetList' description: OK "401": content: {} description: Unauthorized tags: - - resource_v1alpha2 + - policy_v1 x-kubernetes-action: list x-kubernetes-group-version-kind: - group: resource.k8s.io - kind: ResourceClaim - version: v1alpha2 + group: policy + kind: PodDisruptionBudget + version: v1 x-accepts: application/json post: - description: create a ResourceClaim - operationId: createNamespacedResourceClaim + description: create a PodDisruptionBudget + operationId: createNamespacedPodDisruptionBudget parameters: - description: object name and auth scope, such as for teams and projects in: path @@ -55790,7 +59814,9 @@ paths: required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -55831,64 +59857,73 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1alpha2.ResourceClaim' + $ref: '#/components/schemas/v1.PodDisruptionBudget' required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1alpha2.ResourceClaim' + $ref: '#/components/schemas/v1.PodDisruptionBudget' application/yaml: schema: - $ref: '#/components/schemas/v1alpha2.ResourceClaim' + $ref: '#/components/schemas/v1.PodDisruptionBudget' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha2.ResourceClaim' + $ref: '#/components/schemas/v1.PodDisruptionBudget' + application/cbor: + schema: + $ref: '#/components/schemas/v1.PodDisruptionBudget' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1alpha2.ResourceClaim' + $ref: '#/components/schemas/v1.PodDisruptionBudget' application/yaml: schema: - $ref: '#/components/schemas/v1alpha2.ResourceClaim' + $ref: '#/components/schemas/v1.PodDisruptionBudget' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha2.ResourceClaim' + $ref: '#/components/schemas/v1.PodDisruptionBudget' + application/cbor: + schema: + $ref: '#/components/schemas/v1.PodDisruptionBudget' description: Created "202": content: application/json: schema: - $ref: '#/components/schemas/v1alpha2.ResourceClaim' + $ref: '#/components/schemas/v1.PodDisruptionBudget' application/yaml: schema: - $ref: '#/components/schemas/v1alpha2.ResourceClaim' + $ref: '#/components/schemas/v1.PodDisruptionBudget' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha2.ResourceClaim' + $ref: '#/components/schemas/v1.PodDisruptionBudget' + application/cbor: + schema: + $ref: '#/components/schemas/v1.PodDisruptionBudget' description: Accepted "401": content: {} description: Unauthorized tags: - - resource_v1alpha2 + - policy_v1 x-kubernetes-action: post x-kubernetes-group-version-kind: - group: resource.k8s.io - kind: ResourceClaim - version: v1alpha2 + group: policy + kind: PodDisruptionBudget + version: v1 x-codegen-request-body-name: body x-contentType: application/json x-accepts: application/json - /apis/resource.k8s.io/v1alpha2/namespaces/{namespace}/resourceclaims/{name}: + /apis/policy/v1/namespaces/{namespace}/poddisruptionbudgets/{name}: delete: - description: delete a ResourceClaim - operationId: deleteNamespacedResourceClaim + description: delete a PodDisruptionBudget + operationId: deleteNamespacedPodDisruptionBudget parameters: - - description: name of the ResourceClaim + - description: name of the PodDisruptionBudget in: path name: name required: true @@ -55900,7 +59935,9 @@ paths: required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -55922,6 +59959,20 @@ paths: name: gracePeriodSeconds schema: type: integer + - description: 'if set to true, it will trigger an unsafe deletion of the resource + in case the normal deletion flow fails with a corrupt object error. A resource + is considered corrupt if it can not be retrieved from the underlying storage + successfully because of a) its data can not be transformed e.g. decryption + failure, or b) it fails to decode into an object. NOTE: unsafe deletion + ignores finalizer constraints, skips precondition checks, and removes the + object from the storage. WARNING: This may potentially break the cluster + if the workload associated with the resource being unsafe-deleted relies + on normal deletion flow. Use only if you REALLY know what you are doing. + The default value is false, and the user must opt in to enable it' + in: query + name: ignoreStoreReadErrorWithClusterBreakingPotential + schema: + type: boolean - description: '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 @@ -55952,44 +60003,50 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1alpha2.ResourceClaim' + $ref: '#/components/schemas/v1.Status' application/yaml: schema: - $ref: '#/components/schemas/v1alpha2.ResourceClaim' + $ref: '#/components/schemas/v1.Status' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha2.ResourceClaim' + $ref: '#/components/schemas/v1.Status' + application/cbor: + schema: + $ref: '#/components/schemas/v1.Status' description: OK "202": content: application/json: schema: - $ref: '#/components/schemas/v1alpha2.ResourceClaim' + $ref: '#/components/schemas/v1.Status' application/yaml: schema: - $ref: '#/components/schemas/v1alpha2.ResourceClaim' + $ref: '#/components/schemas/v1.Status' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha2.ResourceClaim' + $ref: '#/components/schemas/v1.Status' + application/cbor: + schema: + $ref: '#/components/schemas/v1.Status' description: Accepted "401": content: {} description: Unauthorized tags: - - resource_v1alpha2 + - policy_v1 x-kubernetes-action: delete x-kubernetes-group-version-kind: - group: resource.k8s.io - kind: ResourceClaim - version: v1alpha2 + group: policy + kind: PodDisruptionBudget + version: v1 x-codegen-request-body-name: body x-contentType: application/json x-accepts: application/json get: - description: read the specified ResourceClaim - operationId: readNamespacedResourceClaim + description: read the specified PodDisruptionBudget + operationId: readNamespacedPodDisruptionBudget parameters: - - description: name of the ResourceClaim + - description: name of the PodDisruptionBudget in: path name: name required: true @@ -56001,7 +60058,9 @@ paths: required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -56011,30 +60070,33 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1alpha2.ResourceClaim' + $ref: '#/components/schemas/v1.PodDisruptionBudget' application/yaml: schema: - $ref: '#/components/schemas/v1alpha2.ResourceClaim' + $ref: '#/components/schemas/v1.PodDisruptionBudget' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha2.ResourceClaim' + $ref: '#/components/schemas/v1.PodDisruptionBudget' + application/cbor: + schema: + $ref: '#/components/schemas/v1.PodDisruptionBudget' description: OK "401": content: {} description: Unauthorized tags: - - resource_v1alpha2 + - policy_v1 x-kubernetes-action: get x-kubernetes-group-version-kind: - group: resource.k8s.io - kind: ResourceClaim - version: v1alpha2 + group: policy + kind: PodDisruptionBudget + version: v1 x-accepts: application/json patch: - description: partially update the specified ResourceClaim - operationId: patchNamespacedResourceClaim + description: partially update the specified PodDisruptionBudget + operationId: patchNamespacedPodDisruptionBudget parameters: - - description: name of the ResourceClaim + - description: name of the PodDisruptionBudget in: path name: name required: true @@ -56046,7 +60108,9 @@ paths: required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -56103,44 +60167,50 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1alpha2.ResourceClaim' + $ref: '#/components/schemas/v1.PodDisruptionBudget' application/yaml: schema: - $ref: '#/components/schemas/v1alpha2.ResourceClaim' + $ref: '#/components/schemas/v1.PodDisruptionBudget' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha2.ResourceClaim' + $ref: '#/components/schemas/v1.PodDisruptionBudget' + application/cbor: + schema: + $ref: '#/components/schemas/v1.PodDisruptionBudget' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1alpha2.ResourceClaim' + $ref: '#/components/schemas/v1.PodDisruptionBudget' application/yaml: schema: - $ref: '#/components/schemas/v1alpha2.ResourceClaim' + $ref: '#/components/schemas/v1.PodDisruptionBudget' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha2.ResourceClaim' + $ref: '#/components/schemas/v1.PodDisruptionBudget' + application/cbor: + schema: + $ref: '#/components/schemas/v1.PodDisruptionBudget' description: Created "401": content: {} description: Unauthorized tags: - - resource_v1alpha2 + - policy_v1 x-kubernetes-action: patch x-kubernetes-group-version-kind: - group: resource.k8s.io - kind: ResourceClaim - version: v1alpha2 + group: policy + kind: PodDisruptionBudget + version: v1 x-codegen-request-body-name: body x-contentType: application/json x-accepts: application/json put: - description: replace the specified ResourceClaim - operationId: replaceNamespacedResourceClaim + description: replace the specified PodDisruptionBudget + operationId: replaceNamespacedPodDisruptionBudget parameters: - - description: name of the ResourceClaim + - description: name of the PodDisruptionBudget in: path name: name required: true @@ -56152,7 +60222,9 @@ paths: required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -56193,52 +60265,58 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1alpha2.ResourceClaim' + $ref: '#/components/schemas/v1.PodDisruptionBudget' required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1alpha2.ResourceClaim' + $ref: '#/components/schemas/v1.PodDisruptionBudget' application/yaml: schema: - $ref: '#/components/schemas/v1alpha2.ResourceClaim' + $ref: '#/components/schemas/v1.PodDisruptionBudget' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha2.ResourceClaim' + $ref: '#/components/schemas/v1.PodDisruptionBudget' + application/cbor: + schema: + $ref: '#/components/schemas/v1.PodDisruptionBudget' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1alpha2.ResourceClaim' + $ref: '#/components/schemas/v1.PodDisruptionBudget' application/yaml: schema: - $ref: '#/components/schemas/v1alpha2.ResourceClaim' + $ref: '#/components/schemas/v1.PodDisruptionBudget' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha2.ResourceClaim' + $ref: '#/components/schemas/v1.PodDisruptionBudget' + application/cbor: + schema: + $ref: '#/components/schemas/v1.PodDisruptionBudget' description: Created "401": content: {} description: Unauthorized tags: - - resource_v1alpha2 + - policy_v1 x-kubernetes-action: put x-kubernetes-group-version-kind: - group: resource.k8s.io - kind: ResourceClaim - version: v1alpha2 + group: policy + kind: PodDisruptionBudget + version: v1 x-codegen-request-body-name: body x-contentType: application/json x-accepts: application/json - /apis/resource.k8s.io/v1alpha2/namespaces/{namespace}/resourceclaims/{name}/status: + /apis/policy/v1/namespaces/{namespace}/poddisruptionbudgets/{name}/status: get: - description: read status of the specified ResourceClaim - operationId: readNamespacedResourceClaimStatus + description: read status of the specified PodDisruptionBudget + operationId: readNamespacedPodDisruptionBudgetStatus parameters: - - description: name of the ResourceClaim + - description: name of the PodDisruptionBudget in: path name: name required: true @@ -56250,7 +60328,9 @@ paths: required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -56260,30 +60340,33 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1alpha2.ResourceClaim' + $ref: '#/components/schemas/v1.PodDisruptionBudget' application/yaml: schema: - $ref: '#/components/schemas/v1alpha2.ResourceClaim' + $ref: '#/components/schemas/v1.PodDisruptionBudget' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha2.ResourceClaim' + $ref: '#/components/schemas/v1.PodDisruptionBudget' + application/cbor: + schema: + $ref: '#/components/schemas/v1.PodDisruptionBudget' description: OK "401": content: {} description: Unauthorized tags: - - resource_v1alpha2 + - policy_v1 x-kubernetes-action: get x-kubernetes-group-version-kind: - group: resource.k8s.io - kind: ResourceClaim - version: v1alpha2 + group: policy + kind: PodDisruptionBudget + version: v1 x-accepts: application/json patch: - description: partially update status of the specified ResourceClaim - operationId: patchNamespacedResourceClaimStatus + description: partially update status of the specified PodDisruptionBudget + operationId: patchNamespacedPodDisruptionBudgetStatus parameters: - - description: name of the ResourceClaim + - description: name of the PodDisruptionBudget in: path name: name required: true @@ -56295,7 +60378,9 @@ paths: required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -56352,44 +60437,50 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1alpha2.ResourceClaim' + $ref: '#/components/schemas/v1.PodDisruptionBudget' application/yaml: schema: - $ref: '#/components/schemas/v1alpha2.ResourceClaim' + $ref: '#/components/schemas/v1.PodDisruptionBudget' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha2.ResourceClaim' + $ref: '#/components/schemas/v1.PodDisruptionBudget' + application/cbor: + schema: + $ref: '#/components/schemas/v1.PodDisruptionBudget' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1alpha2.ResourceClaim' + $ref: '#/components/schemas/v1.PodDisruptionBudget' application/yaml: schema: - $ref: '#/components/schemas/v1alpha2.ResourceClaim' + $ref: '#/components/schemas/v1.PodDisruptionBudget' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha2.ResourceClaim' + $ref: '#/components/schemas/v1.PodDisruptionBudget' + application/cbor: + schema: + $ref: '#/components/schemas/v1.PodDisruptionBudget' description: Created "401": content: {} description: Unauthorized tags: - - resource_v1alpha2 + - policy_v1 x-kubernetes-action: patch x-kubernetes-group-version-kind: - group: resource.k8s.io - kind: ResourceClaim - version: v1alpha2 + group: policy + kind: PodDisruptionBudget + version: v1 x-codegen-request-body-name: body x-contentType: application/json x-accepts: application/json put: - description: replace status of the specified ResourceClaim - operationId: replaceNamespacedResourceClaimStatus + description: replace status of the specified PodDisruptionBudget + operationId: replaceNamespacedPodDisruptionBudgetStatus parameters: - - description: name of the ResourceClaim + - description: name of the PodDisruptionBudget in: path name: name required: true @@ -56401,7 +60492,9 @@ paths: required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -56442,62 +60535,67 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1alpha2.ResourceClaim' + $ref: '#/components/schemas/v1.PodDisruptionBudget' required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1alpha2.ResourceClaim' + $ref: '#/components/schemas/v1.PodDisruptionBudget' application/yaml: schema: - $ref: '#/components/schemas/v1alpha2.ResourceClaim' + $ref: '#/components/schemas/v1.PodDisruptionBudget' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha2.ResourceClaim' + $ref: '#/components/schemas/v1.PodDisruptionBudget' + application/cbor: + schema: + $ref: '#/components/schemas/v1.PodDisruptionBudget' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1alpha2.ResourceClaim' + $ref: '#/components/schemas/v1.PodDisruptionBudget' application/yaml: schema: - $ref: '#/components/schemas/v1alpha2.ResourceClaim' + $ref: '#/components/schemas/v1.PodDisruptionBudget' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha2.ResourceClaim' + $ref: '#/components/schemas/v1.PodDisruptionBudget' + application/cbor: + schema: + $ref: '#/components/schemas/v1.PodDisruptionBudget' description: Created "401": content: {} description: Unauthorized tags: - - resource_v1alpha2 + - policy_v1 x-kubernetes-action: put x-kubernetes-group-version-kind: - group: resource.k8s.io - kind: ResourceClaim - version: v1alpha2 + group: policy + kind: PodDisruptionBudget + version: v1 x-codegen-request-body-name: body x-contentType: application/json x-accepts: application/json - /apis/resource.k8s.io/v1alpha2/namespaces/{namespace}/resourceclaimtemplates: - delete: - description: delete collection of ResourceClaimTemplate - operationId: deleteCollectionNamespacedResourceClaimTemplate + /apis/policy/v1/poddisruptionbudgets: + get: + description: list or watch objects of kind PodDisruptionBudget + operationId: listPodDisruptionBudgetForAllNamespaces parameters: - - description: object name and auth scope, such as for teams and projects - in: path - name: namespace - required: true - schema: - type: string - - description: If 'true', then the output is pretty printed. + - description: 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. in: query - name: pretty + name: allowWatchBookmarks schema: - type: string + type: boolean - description: |- 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". @@ -56506,29 +60604,12 @@ paths: name: continue schema: type: string - - description: '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' - in: query - 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 - - description: 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. - in: query - name: gracePeriodSeconds - schema: - type: integer - description: A selector to restrict the list of returned objects by their labels. Defaults to everything. in: query @@ -56543,23 +60624,235 @@ paths: name: limit schema: type: integer - - description: '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.' - in: query - name: orphanDependents - schema: - type: boolean - - description: '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.' + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query - name: propagationPolicy + name: pretty + schema: + type: string + - description: |- + resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersion + schema: + type: string + - description: |- + resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersionMatch + schema: + type: string + - description: |- + `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic "Bookmark" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `"k8s.io/initial-events-end": "true"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. + + When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan + is interpreted as "data at least as new as the provided `resourceVersion`" + and the bookmark event is send when the state is synced + to a `resourceVersion` at least as fresh as the one provided by the ListOptions. + If `resourceVersion` is unset, this is interpreted as "consistent read" and the + bookmark event is send when the state is synced at least to the moment + when request started being processed. + - `resourceVersionMatch` set to any other value or unset + Invalid error is returned. + + Defaults to true if `resourceVersion=""` or `resourceVersion="0"` (for backward compatibility reasons) and to false otherwise. + in: query + name: sendInitialEvents + schema: + type: boolean + - description: Timeout for the list/watch call. This limits the duration of + the call, regardless of any activity or inactivity. + in: query + name: timeoutSeconds + schema: + type: integer + - description: Watch for changes to the described resources and return them + as a stream of add, update, and remove notifications. Specify resourceVersion. + in: query + name: watch + schema: + type: boolean + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.PodDisruptionBudgetList' + application/yaml: + schema: + $ref: '#/components/schemas/v1.PodDisruptionBudgetList' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.PodDisruptionBudgetList' + application/cbor: + schema: + $ref: '#/components/schemas/v1.PodDisruptionBudgetList' + application/json;stream=watch: + schema: + $ref: '#/components/schemas/v1.PodDisruptionBudgetList' + application/vnd.kubernetes.protobuf;stream=watch: + schema: + $ref: '#/components/schemas/v1.PodDisruptionBudgetList' + application/cbor-seq: + schema: + $ref: '#/components/schemas/v1.PodDisruptionBudgetList' + description: OK + "401": + content: {} + description: Unauthorized + tags: + - policy_v1 + x-kubernetes-action: list + x-kubernetes-group-version-kind: + group: policy + kind: PodDisruptionBudget + version: v1 + x-accepts: application/json + /apis/policy/v1/watch/namespaces/{namespace}/poddisruptionbudgets: {} + /apis/policy/v1/watch/namespaces/{namespace}/poddisruptionbudgets/{name}: {} + /apis/policy/v1/watch/poddisruptionbudgets: {} + /apis/rbac.authorization.k8s.io/: + get: + description: get information of a group + operationId: getAPIGroup + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.APIGroup' + application/yaml: + schema: + $ref: '#/components/schemas/v1.APIGroup' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.APIGroup' + description: OK + "401": + content: {} + description: Unauthorized + tags: + - rbacAuthorization + x-accepts: application/json + /apis/rbac.authorization.k8s.io/v1/: + get: + description: get available resources + operationId: getAPIResources + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.APIResourceList' + application/yaml: + schema: + $ref: '#/components/schemas/v1.APIResourceList' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.APIResourceList' + application/cbor: + schema: + $ref: '#/components/schemas/v1.APIResourceList' + description: OK + "401": + content: {} + description: Unauthorized + tags: + - rbacAuthorization_v1 + x-accepts: application/json + /apis/rbac.authorization.k8s.io/v1/clusterrolebindings: + delete: + description: delete collection of ClusterRoleBinding + operationId: deleteCollectionClusterRoleBinding + parameters: + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). + in: query + name: pretty + schema: + type: string + - description: |- + 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. + in: query + name: continue + schema: + type: string + - description: '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' + in: query + 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 + - description: 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. + in: query + name: gracePeriodSeconds + schema: + type: integer + - description: 'if set to true, it will trigger an unsafe deletion of the resource + in case the normal deletion flow fails with a corrupt object error. A resource + is considered corrupt if it can not be retrieved from the underlying storage + successfully because of a) its data can not be transformed e.g. decryption + failure, or b) it fails to decode into an object. NOTE: unsafe deletion + ignores finalizer constraints, skips precondition checks, and removes the + object from the storage. WARNING: This may potentially break the cluster + if the workload associated with the resource being unsafe-deleted relies + on normal deletion flow. Use only if you REALLY know what you are doing. + The default value is false, and the user must opt in to enable it' + in: query + name: ignoreStoreReadErrorWithClusterBreakingPotential + schema: + type: boolean + - description: A selector to restrict the list of returned objects by their + labels. Defaults to everything. + in: query + name: labelSelector + schema: + type: string + - description: |- + limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. + + The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + in: query + name: limit + schema: + type: integer + - description: '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.' + in: query + name: orphanDependents + schema: + type: boolean + - description: '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.' + in: query + name: propagationPolicy schema: type: string - description: |- @@ -56620,31 +60913,30 @@ paths: application/vnd.kubernetes.protobuf: schema: $ref: '#/components/schemas/v1.Status' + application/cbor: + schema: + $ref: '#/components/schemas/v1.Status' description: OK "401": content: {} description: Unauthorized tags: - - resource_v1alpha2 + - rbacAuthorization_v1 x-kubernetes-action: deletecollection x-kubernetes-group-version-kind: - group: resource.k8s.io - kind: ResourceClaimTemplate - version: v1alpha2 + group: rbac.authorization.k8s.io + kind: ClusterRoleBinding + version: v1 x-codegen-request-body-name: body x-contentType: application/json x-accepts: application/json get: - description: list or watch objects of kind ResourceClaimTemplate - operationId: listNamespacedResourceClaimTemplate + description: list or watch objects of kind ClusterRoleBinding + operationId: listClusterRoleBinding parameters: - - description: object name and auth scope, such as for teams and projects - in: path - name: namespace - required: true - schema: - type: string - - description: If 'true', then the output is pretty printed. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -56738,42 +61030,44 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1alpha2.ResourceClaimTemplateList' + $ref: '#/components/schemas/v1.ClusterRoleBindingList' application/yaml: schema: - $ref: '#/components/schemas/v1alpha2.ResourceClaimTemplateList' + $ref: '#/components/schemas/v1.ClusterRoleBindingList' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha2.ResourceClaimTemplateList' + $ref: '#/components/schemas/v1.ClusterRoleBindingList' + application/cbor: + schema: + $ref: '#/components/schemas/v1.ClusterRoleBindingList' application/json;stream=watch: schema: - $ref: '#/components/schemas/v1alpha2.ResourceClaimTemplateList' + $ref: '#/components/schemas/v1.ClusterRoleBindingList' application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: '#/components/schemas/v1alpha2.ResourceClaimTemplateList' + $ref: '#/components/schemas/v1.ClusterRoleBindingList' + application/cbor-seq: + schema: + $ref: '#/components/schemas/v1.ClusterRoleBindingList' description: OK "401": content: {} description: Unauthorized tags: - - resource_v1alpha2 + - rbacAuthorization_v1 x-kubernetes-action: list x-kubernetes-group-version-kind: - group: resource.k8s.io - kind: ResourceClaimTemplate - version: v1alpha2 + group: rbac.authorization.k8s.io + kind: ClusterRoleBinding + version: v1 x-accepts: application/json post: - description: create a ResourceClaimTemplate - operationId: createNamespacedResourceClaimTemplate + description: create a ClusterRoleBinding + operationId: createClusterRoleBinding parameters: - - description: object name and auth scope, such as for teams and projects - in: path - name: namespace - required: true - schema: - type: string - - description: If 'true', then the output is pretty printed. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -56814,76 +61108,81 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1alpha2.ResourceClaimTemplate' + $ref: '#/components/schemas/v1.ClusterRoleBinding' required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1alpha2.ResourceClaimTemplate' + $ref: '#/components/schemas/v1.ClusterRoleBinding' application/yaml: schema: - $ref: '#/components/schemas/v1alpha2.ResourceClaimTemplate' + $ref: '#/components/schemas/v1.ClusterRoleBinding' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha2.ResourceClaimTemplate' + $ref: '#/components/schemas/v1.ClusterRoleBinding' + application/cbor: + schema: + $ref: '#/components/schemas/v1.ClusterRoleBinding' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1alpha2.ResourceClaimTemplate' + $ref: '#/components/schemas/v1.ClusterRoleBinding' application/yaml: schema: - $ref: '#/components/schemas/v1alpha2.ResourceClaimTemplate' + $ref: '#/components/schemas/v1.ClusterRoleBinding' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha2.ResourceClaimTemplate' + $ref: '#/components/schemas/v1.ClusterRoleBinding' + application/cbor: + schema: + $ref: '#/components/schemas/v1.ClusterRoleBinding' description: Created "202": content: application/json: schema: - $ref: '#/components/schemas/v1alpha2.ResourceClaimTemplate' + $ref: '#/components/schemas/v1.ClusterRoleBinding' application/yaml: schema: - $ref: '#/components/schemas/v1alpha2.ResourceClaimTemplate' + $ref: '#/components/schemas/v1.ClusterRoleBinding' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha2.ResourceClaimTemplate' + $ref: '#/components/schemas/v1.ClusterRoleBinding' + application/cbor: + schema: + $ref: '#/components/schemas/v1.ClusterRoleBinding' description: Accepted "401": content: {} description: Unauthorized tags: - - resource_v1alpha2 + - rbacAuthorization_v1 x-kubernetes-action: post x-kubernetes-group-version-kind: - group: resource.k8s.io - kind: ResourceClaimTemplate - version: v1alpha2 + group: rbac.authorization.k8s.io + kind: ClusterRoleBinding + version: v1 x-codegen-request-body-name: body x-contentType: application/json x-accepts: application/json - /apis/resource.k8s.io/v1alpha2/namespaces/{namespace}/resourceclaimtemplates/{name}: + /apis/rbac.authorization.k8s.io/v1/clusterrolebindings/{name}: delete: - description: delete a ResourceClaimTemplate - operationId: deleteNamespacedResourceClaimTemplate + description: delete a ClusterRoleBinding + operationId: deleteClusterRoleBinding parameters: - - description: name of the ResourceClaimTemplate + - description: name of the ClusterRoleBinding in: path name: name required: true schema: type: string - - description: object name and auth scope, such as for teams and projects - in: path - name: namespace - required: true - schema: - type: string - - description: If 'true', then the output is pretty printed. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -56905,6 +61204,20 @@ paths: name: gracePeriodSeconds schema: type: integer + - description: 'if set to true, it will trigger an unsafe deletion of the resource + in case the normal deletion flow fails with a corrupt object error. A resource + is considered corrupt if it can not be retrieved from the underlying storage + successfully because of a) its data can not be transformed e.g. decryption + failure, or b) it fails to decode into an object. NOTE: unsafe deletion + ignores finalizer constraints, skips precondition checks, and removes the + object from the storage. WARNING: This may potentially break the cluster + if the workload associated with the resource being unsafe-deleted relies + on normal deletion flow. Use only if you REALLY know what you are doing. + The default value is false, and the user must opt in to enable it' + in: query + name: ignoreStoreReadErrorWithClusterBreakingPotential + schema: + type: boolean - description: '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 @@ -56935,56 +61248,58 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1alpha2.ResourceClaimTemplate' + $ref: '#/components/schemas/v1.Status' application/yaml: schema: - $ref: '#/components/schemas/v1alpha2.ResourceClaimTemplate' + $ref: '#/components/schemas/v1.Status' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha2.ResourceClaimTemplate' + $ref: '#/components/schemas/v1.Status' + application/cbor: + schema: + $ref: '#/components/schemas/v1.Status' description: OK "202": content: application/json: schema: - $ref: '#/components/schemas/v1alpha2.ResourceClaimTemplate' + $ref: '#/components/schemas/v1.Status' application/yaml: schema: - $ref: '#/components/schemas/v1alpha2.ResourceClaimTemplate' + $ref: '#/components/schemas/v1.Status' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha2.ResourceClaimTemplate' + $ref: '#/components/schemas/v1.Status' + application/cbor: + schema: + $ref: '#/components/schemas/v1.Status' description: Accepted "401": content: {} description: Unauthorized tags: - - resource_v1alpha2 + - rbacAuthorization_v1 x-kubernetes-action: delete x-kubernetes-group-version-kind: - group: resource.k8s.io - kind: ResourceClaimTemplate - version: v1alpha2 + group: rbac.authorization.k8s.io + kind: ClusterRoleBinding + version: v1 x-codegen-request-body-name: body x-contentType: application/json x-accepts: application/json get: - description: read the specified ResourceClaimTemplate - operationId: readNamespacedResourceClaimTemplate + description: read the specified ClusterRoleBinding + operationId: readClusterRoleBinding parameters: - - description: name of the ResourceClaimTemplate + - description: name of the ClusterRoleBinding in: path name: name required: true schema: type: string - - description: object name and auth scope, such as for teams and projects - in: path - name: namespace - required: true - schema: - type: string - - description: If 'true', then the output is pretty printed. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -56994,42 +61309,41 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1alpha2.ResourceClaimTemplate' + $ref: '#/components/schemas/v1.ClusterRoleBinding' application/yaml: schema: - $ref: '#/components/schemas/v1alpha2.ResourceClaimTemplate' + $ref: '#/components/schemas/v1.ClusterRoleBinding' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha2.ResourceClaimTemplate' + $ref: '#/components/schemas/v1.ClusterRoleBinding' + application/cbor: + schema: + $ref: '#/components/schemas/v1.ClusterRoleBinding' description: OK "401": content: {} description: Unauthorized tags: - - resource_v1alpha2 + - rbacAuthorization_v1 x-kubernetes-action: get x-kubernetes-group-version-kind: - group: resource.k8s.io - kind: ResourceClaimTemplate - version: v1alpha2 + group: rbac.authorization.k8s.io + kind: ClusterRoleBinding + version: v1 x-accepts: application/json patch: - description: partially update the specified ResourceClaimTemplate - operationId: patchNamespacedResourceClaimTemplate + description: partially update the specified ClusterRoleBinding + operationId: patchClusterRoleBinding parameters: - - description: name of the ResourceClaimTemplate + - description: name of the ClusterRoleBinding in: path name: name required: true schema: type: string - - description: object name and auth scope, such as for teams and projects - in: path - name: namespace - required: true - schema: - type: string - - description: If 'true', then the output is pretty printed. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -57086,56 +61400,58 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1alpha2.ResourceClaimTemplate' + $ref: '#/components/schemas/v1.ClusterRoleBinding' application/yaml: schema: - $ref: '#/components/schemas/v1alpha2.ResourceClaimTemplate' + $ref: '#/components/schemas/v1.ClusterRoleBinding' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha2.ResourceClaimTemplate' + $ref: '#/components/schemas/v1.ClusterRoleBinding' + application/cbor: + schema: + $ref: '#/components/schemas/v1.ClusterRoleBinding' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1alpha2.ResourceClaimTemplate' + $ref: '#/components/schemas/v1.ClusterRoleBinding' application/yaml: schema: - $ref: '#/components/schemas/v1alpha2.ResourceClaimTemplate' + $ref: '#/components/schemas/v1.ClusterRoleBinding' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha2.ResourceClaimTemplate' + $ref: '#/components/schemas/v1.ClusterRoleBinding' + application/cbor: + schema: + $ref: '#/components/schemas/v1.ClusterRoleBinding' description: Created "401": content: {} description: Unauthorized tags: - - resource_v1alpha2 + - rbacAuthorization_v1 x-kubernetes-action: patch x-kubernetes-group-version-kind: - group: resource.k8s.io - kind: ResourceClaimTemplate - version: v1alpha2 + group: rbac.authorization.k8s.io + kind: ClusterRoleBinding + version: v1 x-codegen-request-body-name: body x-contentType: application/json x-accepts: application/json put: - description: replace the specified ResourceClaimTemplate - operationId: replaceNamespacedResourceClaimTemplate + description: replace the specified ClusterRoleBinding + operationId: replaceClusterRoleBinding parameters: - - description: name of the ResourceClaimTemplate + - description: name of the ClusterRoleBinding in: path name: name required: true schema: type: string - - description: object name and auth scope, such as for teams and projects - in: path - name: namespace - required: true - schema: - type: string - - description: If 'true', then the output is pretty printed. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -57176,424 +61492,60 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1alpha2.ResourceClaimTemplate' + $ref: '#/components/schemas/v1.ClusterRoleBinding' required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1alpha2.ResourceClaimTemplate' + $ref: '#/components/schemas/v1.ClusterRoleBinding' application/yaml: schema: - $ref: '#/components/schemas/v1alpha2.ResourceClaimTemplate' + $ref: '#/components/schemas/v1.ClusterRoleBinding' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha2.ResourceClaimTemplate' + $ref: '#/components/schemas/v1.ClusterRoleBinding' + application/cbor: + schema: + $ref: '#/components/schemas/v1.ClusterRoleBinding' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1alpha2.ResourceClaimTemplate' + $ref: '#/components/schemas/v1.ClusterRoleBinding' application/yaml: schema: - $ref: '#/components/schemas/v1alpha2.ResourceClaimTemplate' + $ref: '#/components/schemas/v1.ClusterRoleBinding' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha2.ResourceClaimTemplate' + $ref: '#/components/schemas/v1.ClusterRoleBinding' + application/cbor: + schema: + $ref: '#/components/schemas/v1.ClusterRoleBinding' description: Created "401": content: {} description: Unauthorized tags: - - resource_v1alpha2 + - rbacAuthorization_v1 x-kubernetes-action: put x-kubernetes-group-version-kind: - group: resource.k8s.io - kind: ResourceClaimTemplate - version: v1alpha2 + group: rbac.authorization.k8s.io + kind: ClusterRoleBinding + version: v1 x-codegen-request-body-name: body x-contentType: application/json x-accepts: application/json - /apis/resource.k8s.io/v1alpha2/podschedulingcontexts: - get: - description: list or watch objects of kind PodSchedulingContext - operationId: listPodSchedulingContextForAllNamespaces - parameters: - - description: 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. - in: query - name: allowWatchBookmarks - schema: - type: boolean - - description: |- - 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. - in: query - name: continue - 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 - - description: A selector to restrict the list of returned objects by their - labels. Defaults to everything. - in: query - name: labelSelector - schema: - type: string - - description: |- - limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. - - The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. - in: query - name: limit - schema: - type: integer - - description: If 'true', then the output is pretty printed. - in: query - name: pretty - schema: - type: string - - description: |- - resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. - - Defaults to unset - in: query - name: resourceVersion - schema: - type: string - - description: |- - resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. - - Defaults to unset - in: query - name: resourceVersionMatch - schema: - type: string - - description: |- - `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic "Bookmark" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `"k8s.io/initial-events-end": "true"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. - - When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan - is interpreted as "data at least as new as the provided `resourceVersion`" - and the bookmark event is send when the state is synced - to a `resourceVersion` at least as fresh as the one provided by the ListOptions. - If `resourceVersion` is unset, this is interpreted as "consistent read" and the - bookmark event is send when the state is synced at least to the moment - when request started being processed. - - `resourceVersionMatch` set to any other value or unset - Invalid error is returned. - - Defaults to true if `resourceVersion=""` or `resourceVersion="0"` (for backward compatibility reasons) and to false otherwise. - in: query - name: sendInitialEvents - schema: - type: boolean - - description: Timeout for the list/watch call. This limits the duration of - the call, regardless of any activity or inactivity. - in: query - name: timeoutSeconds - schema: - type: integer - - description: Watch for changes to the described resources and return them - as a stream of add, update, and remove notifications. Specify resourceVersion. - in: query - name: watch - schema: - type: boolean - responses: - "200": - content: - application/json: - schema: - $ref: '#/components/schemas/v1alpha2.PodSchedulingContextList' - application/yaml: - schema: - $ref: '#/components/schemas/v1alpha2.PodSchedulingContextList' - application/vnd.kubernetes.protobuf: - schema: - $ref: '#/components/schemas/v1alpha2.PodSchedulingContextList' - application/json;stream=watch: - schema: - $ref: '#/components/schemas/v1alpha2.PodSchedulingContextList' - application/vnd.kubernetes.protobuf;stream=watch: - schema: - $ref: '#/components/schemas/v1alpha2.PodSchedulingContextList' - description: OK - "401": - content: {} - description: Unauthorized - tags: - - resource_v1alpha2 - x-kubernetes-action: list - x-kubernetes-group-version-kind: - group: resource.k8s.io - kind: PodSchedulingContext - version: v1alpha2 - x-accepts: application/json - /apis/resource.k8s.io/v1alpha2/resourceclaims: - get: - description: list or watch objects of kind ResourceClaim - operationId: listResourceClaimForAllNamespaces - parameters: - - description: 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. - in: query - name: allowWatchBookmarks - schema: - type: boolean - - description: |- - 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. - in: query - name: continue - 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 - - description: A selector to restrict the list of returned objects by their - labels. Defaults to everything. - in: query - name: labelSelector - schema: - type: string - - description: |- - limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. - - The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. - in: query - name: limit - schema: - type: integer - - description: If 'true', then the output is pretty printed. - in: query - name: pretty - schema: - type: string - - description: |- - resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. - - Defaults to unset - in: query - name: resourceVersion - schema: - type: string - - description: |- - resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. - - Defaults to unset - in: query - name: resourceVersionMatch - schema: - type: string - - description: |- - `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic "Bookmark" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `"k8s.io/initial-events-end": "true"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. - - When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan - is interpreted as "data at least as new as the provided `resourceVersion`" - and the bookmark event is send when the state is synced - to a `resourceVersion` at least as fresh as the one provided by the ListOptions. - If `resourceVersion` is unset, this is interpreted as "consistent read" and the - bookmark event is send when the state is synced at least to the moment - when request started being processed. - - `resourceVersionMatch` set to any other value or unset - Invalid error is returned. - - Defaults to true if `resourceVersion=""` or `resourceVersion="0"` (for backward compatibility reasons) and to false otherwise. - in: query - name: sendInitialEvents - schema: - type: boolean - - description: Timeout for the list/watch call. This limits the duration of - the call, regardless of any activity or inactivity. - in: query - name: timeoutSeconds - schema: - type: integer - - description: Watch for changes to the described resources and return them - as a stream of add, update, and remove notifications. Specify resourceVersion. - in: query - name: watch - schema: - type: boolean - responses: - "200": - content: - application/json: - schema: - $ref: '#/components/schemas/v1alpha2.ResourceClaimList' - application/yaml: - schema: - $ref: '#/components/schemas/v1alpha2.ResourceClaimList' - application/vnd.kubernetes.protobuf: - schema: - $ref: '#/components/schemas/v1alpha2.ResourceClaimList' - application/json;stream=watch: - schema: - $ref: '#/components/schemas/v1alpha2.ResourceClaimList' - application/vnd.kubernetes.protobuf;stream=watch: - schema: - $ref: '#/components/schemas/v1alpha2.ResourceClaimList' - description: OK - "401": - content: {} - description: Unauthorized - tags: - - resource_v1alpha2 - x-kubernetes-action: list - x-kubernetes-group-version-kind: - group: resource.k8s.io - kind: ResourceClaim - version: v1alpha2 - x-accepts: application/json - /apis/resource.k8s.io/v1alpha2/resourceclaimtemplates: - get: - description: list or watch objects of kind ResourceClaimTemplate - operationId: listResourceClaimTemplateForAllNamespaces - parameters: - - description: 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. - in: query - name: allowWatchBookmarks - schema: - type: boolean - - description: |- - 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. - in: query - name: continue - 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 - - description: A selector to restrict the list of returned objects by their - labels. Defaults to everything. - in: query - name: labelSelector - schema: - type: string - - description: |- - limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. - - The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. - in: query - name: limit - schema: - type: integer - - description: If 'true', then the output is pretty printed. - in: query - name: pretty - schema: - type: string - - description: |- - resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. - - Defaults to unset - in: query - name: resourceVersion - schema: - type: string - - description: |- - resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. - - Defaults to unset - in: query - name: resourceVersionMatch - schema: - type: string - - description: |- - `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic "Bookmark" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `"k8s.io/initial-events-end": "true"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. - - When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan - is interpreted as "data at least as new as the provided `resourceVersion`" - and the bookmark event is send when the state is synced - to a `resourceVersion` at least as fresh as the one provided by the ListOptions. - If `resourceVersion` is unset, this is interpreted as "consistent read" and the - bookmark event is send when the state is synced at least to the moment - when request started being processed. - - `resourceVersionMatch` set to any other value or unset - Invalid error is returned. - - Defaults to true if `resourceVersion=""` or `resourceVersion="0"` (for backward compatibility reasons) and to false otherwise. - in: query - name: sendInitialEvents - schema: - type: boolean - - description: Timeout for the list/watch call. This limits the duration of - the call, regardless of any activity or inactivity. - in: query - name: timeoutSeconds - schema: - type: integer - - description: Watch for changes to the described resources and return them - as a stream of add, update, and remove notifications. Specify resourceVersion. - in: query - name: watch - schema: - type: boolean - responses: - "200": - content: - application/json: - schema: - $ref: '#/components/schemas/v1alpha2.ResourceClaimTemplateList' - application/yaml: - schema: - $ref: '#/components/schemas/v1alpha2.ResourceClaimTemplateList' - application/vnd.kubernetes.protobuf: - schema: - $ref: '#/components/schemas/v1alpha2.ResourceClaimTemplateList' - application/json;stream=watch: - schema: - $ref: '#/components/schemas/v1alpha2.ResourceClaimTemplateList' - application/vnd.kubernetes.protobuf;stream=watch: - schema: - $ref: '#/components/schemas/v1alpha2.ResourceClaimTemplateList' - description: OK - "401": - content: {} - description: Unauthorized - tags: - - resource_v1alpha2 - x-kubernetes-action: list - x-kubernetes-group-version-kind: - group: resource.k8s.io - kind: ResourceClaimTemplate - version: v1alpha2 - x-accepts: application/json - /apis/resource.k8s.io/v1alpha2/resourceclasses: + /apis/rbac.authorization.k8s.io/v1/clusterroles: delete: - description: delete collection of ResourceClass - operationId: deleteCollectionResourceClass + description: delete collection of ClusterRole + operationId: deleteCollectionClusterRole parameters: - - description: If 'true', then the output is pretty printed. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -57629,6 +61581,20 @@ paths: name: gracePeriodSeconds schema: type: integer + - description: 'if set to true, it will trigger an unsafe deletion of the resource + in case the normal deletion flow fails with a corrupt object error. A resource + is considered corrupt if it can not be retrieved from the underlying storage + successfully because of a) its data can not be transformed e.g. decryption + failure, or b) it fails to decode into an object. NOTE: unsafe deletion + ignores finalizer constraints, skips precondition checks, and removes the + object from the storage. WARNING: This may potentially break the cluster + if the workload associated with the resource being unsafe-deleted relies + on normal deletion flow. Use only if you REALLY know what you are doing. + The default value is false, and the user must opt in to enable it' + in: query + name: ignoreStoreReadErrorWithClusterBreakingPotential + schema: + type: boolean - description: A selector to restrict the list of returned objects by their labels. Defaults to everything. in: query @@ -57720,25 +61686,30 @@ paths: application/vnd.kubernetes.protobuf: schema: $ref: '#/components/schemas/v1.Status' + application/cbor: + schema: + $ref: '#/components/schemas/v1.Status' description: OK "401": content: {} description: Unauthorized tags: - - resource_v1alpha2 + - rbacAuthorization_v1 x-kubernetes-action: deletecollection x-kubernetes-group-version-kind: - group: resource.k8s.io - kind: ResourceClass - version: v1alpha2 + group: rbac.authorization.k8s.io + kind: ClusterRole + version: v1 x-codegen-request-body-name: body x-contentType: application/json x-accepts: application/json get: - description: list or watch objects of kind ResourceClass - operationId: listResourceClass + description: list or watch objects of kind ClusterRole + operationId: listClusterRole parameters: - - description: If 'true', then the output is pretty printed. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -57832,36 +61803,44 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1alpha2.ResourceClassList' + $ref: '#/components/schemas/v1.ClusterRoleList' application/yaml: schema: - $ref: '#/components/schemas/v1alpha2.ResourceClassList' + $ref: '#/components/schemas/v1.ClusterRoleList' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha2.ResourceClassList' + $ref: '#/components/schemas/v1.ClusterRoleList' + application/cbor: + schema: + $ref: '#/components/schemas/v1.ClusterRoleList' application/json;stream=watch: schema: - $ref: '#/components/schemas/v1alpha2.ResourceClassList' + $ref: '#/components/schemas/v1.ClusterRoleList' application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: '#/components/schemas/v1alpha2.ResourceClassList' + $ref: '#/components/schemas/v1.ClusterRoleList' + application/cbor-seq: + schema: + $ref: '#/components/schemas/v1.ClusterRoleList' description: OK "401": content: {} description: Unauthorized tags: - - resource_v1alpha2 + - rbacAuthorization_v1 x-kubernetes-action: list x-kubernetes-group-version-kind: - group: resource.k8s.io - kind: ResourceClass - version: v1alpha2 + group: rbac.authorization.k8s.io + kind: ClusterRole + version: v1 x-accepts: application/json post: - description: create a ResourceClass - operationId: createResourceClass + description: create a ClusterRole + operationId: createClusterRole parameters: - - description: If 'true', then the output is pretty printed. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -57902,70 +61881,81 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1alpha2.ResourceClass' + $ref: '#/components/schemas/v1.ClusterRole' required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1alpha2.ResourceClass' + $ref: '#/components/schemas/v1.ClusterRole' application/yaml: schema: - $ref: '#/components/schemas/v1alpha2.ResourceClass' + $ref: '#/components/schemas/v1.ClusterRole' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha2.ResourceClass' + $ref: '#/components/schemas/v1.ClusterRole' + application/cbor: + schema: + $ref: '#/components/schemas/v1.ClusterRole' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1alpha2.ResourceClass' + $ref: '#/components/schemas/v1.ClusterRole' application/yaml: schema: - $ref: '#/components/schemas/v1alpha2.ResourceClass' + $ref: '#/components/schemas/v1.ClusterRole' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha2.ResourceClass' + $ref: '#/components/schemas/v1.ClusterRole' + application/cbor: + schema: + $ref: '#/components/schemas/v1.ClusterRole' description: Created "202": content: application/json: schema: - $ref: '#/components/schemas/v1alpha2.ResourceClass' + $ref: '#/components/schemas/v1.ClusterRole' application/yaml: schema: - $ref: '#/components/schemas/v1alpha2.ResourceClass' + $ref: '#/components/schemas/v1.ClusterRole' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha2.ResourceClass' + $ref: '#/components/schemas/v1.ClusterRole' + application/cbor: + schema: + $ref: '#/components/schemas/v1.ClusterRole' description: Accepted "401": content: {} description: Unauthorized tags: - - resource_v1alpha2 + - rbacAuthorization_v1 x-kubernetes-action: post x-kubernetes-group-version-kind: - group: resource.k8s.io - kind: ResourceClass - version: v1alpha2 + group: rbac.authorization.k8s.io + kind: ClusterRole + version: v1 x-codegen-request-body-name: body x-contentType: application/json x-accepts: application/json - /apis/resource.k8s.io/v1alpha2/resourceclasses/{name}: + /apis/rbac.authorization.k8s.io/v1/clusterroles/{name}: delete: - description: delete a ResourceClass - operationId: deleteResourceClass + description: delete a ClusterRole + operationId: deleteClusterRole parameters: - - description: name of the ResourceClass + - description: name of the ClusterRole in: path name: name required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -57987,6 +61977,20 @@ paths: name: gracePeriodSeconds schema: type: integer + - description: 'if set to true, it will trigger an unsafe deletion of the resource + in case the normal deletion flow fails with a corrupt object error. A resource + is considered corrupt if it can not be retrieved from the underlying storage + successfully because of a) its data can not be transformed e.g. decryption + failure, or b) it fails to decode into an object. NOTE: unsafe deletion + ignores finalizer constraints, skips precondition checks, and removes the + object from the storage. WARNING: This may potentially break the cluster + if the workload associated with the resource being unsafe-deleted relies + on normal deletion flow. Use only if you REALLY know what you are doing. + The default value is false, and the user must opt in to enable it' + in: query + name: ignoreStoreReadErrorWithClusterBreakingPotential + schema: + type: boolean - description: '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 @@ -58017,50 +62021,58 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1alpha2.ResourceClass' + $ref: '#/components/schemas/v1.Status' application/yaml: schema: - $ref: '#/components/schemas/v1alpha2.ResourceClass' + $ref: '#/components/schemas/v1.Status' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha2.ResourceClass' + $ref: '#/components/schemas/v1.Status' + application/cbor: + schema: + $ref: '#/components/schemas/v1.Status' description: OK "202": content: application/json: schema: - $ref: '#/components/schemas/v1alpha2.ResourceClass' + $ref: '#/components/schemas/v1.Status' application/yaml: schema: - $ref: '#/components/schemas/v1alpha2.ResourceClass' + $ref: '#/components/schemas/v1.Status' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha2.ResourceClass' + $ref: '#/components/schemas/v1.Status' + application/cbor: + schema: + $ref: '#/components/schemas/v1.Status' description: Accepted "401": content: {} description: Unauthorized tags: - - resource_v1alpha2 + - rbacAuthorization_v1 x-kubernetes-action: delete x-kubernetes-group-version-kind: - group: resource.k8s.io - kind: ResourceClass - version: v1alpha2 + group: rbac.authorization.k8s.io + kind: ClusterRole + version: v1 x-codegen-request-body-name: body x-contentType: application/json x-accepts: application/json get: - description: read the specified ResourceClass - operationId: readResourceClass + description: read the specified ClusterRole + operationId: readClusterRole parameters: - - description: name of the ResourceClass + - description: name of the ClusterRole in: path name: name required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -58070,36 +62082,41 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1alpha2.ResourceClass' + $ref: '#/components/schemas/v1.ClusterRole' application/yaml: schema: - $ref: '#/components/schemas/v1alpha2.ResourceClass' + $ref: '#/components/schemas/v1.ClusterRole' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha2.ResourceClass' + $ref: '#/components/schemas/v1.ClusterRole' + application/cbor: + schema: + $ref: '#/components/schemas/v1.ClusterRole' description: OK "401": content: {} description: Unauthorized tags: - - resource_v1alpha2 + - rbacAuthorization_v1 x-kubernetes-action: get x-kubernetes-group-version-kind: - group: resource.k8s.io - kind: ResourceClass - version: v1alpha2 + group: rbac.authorization.k8s.io + kind: ClusterRole + version: v1 x-accepts: application/json patch: - description: partially update the specified ResourceClass - operationId: patchResourceClass + description: partially update the specified ClusterRole + operationId: patchClusterRole parameters: - - description: name of the ResourceClass + - description: name of the ClusterRole in: path name: name required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -58156,50 +62173,58 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1alpha2.ResourceClass' + $ref: '#/components/schemas/v1.ClusterRole' application/yaml: schema: - $ref: '#/components/schemas/v1alpha2.ResourceClass' + $ref: '#/components/schemas/v1.ClusterRole' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha2.ResourceClass' + $ref: '#/components/schemas/v1.ClusterRole' + application/cbor: + schema: + $ref: '#/components/schemas/v1.ClusterRole' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1alpha2.ResourceClass' + $ref: '#/components/schemas/v1.ClusterRole' application/yaml: schema: - $ref: '#/components/schemas/v1alpha2.ResourceClass' + $ref: '#/components/schemas/v1.ClusterRole' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha2.ResourceClass' + $ref: '#/components/schemas/v1.ClusterRole' + application/cbor: + schema: + $ref: '#/components/schemas/v1.ClusterRole' description: Created "401": content: {} description: Unauthorized tags: - - resource_v1alpha2 + - rbacAuthorization_v1 x-kubernetes-action: patch x-kubernetes-group-version-kind: - group: resource.k8s.io - kind: ResourceClass - version: v1alpha2 + group: rbac.authorization.k8s.io + kind: ClusterRole + version: v1 x-codegen-request-body-name: body x-contentType: application/json x-accepts: application/json put: - description: replace the specified ResourceClass - operationId: replaceResourceClass + description: replace the specified ClusterRole + operationId: replaceClusterRole parameters: - - description: name of the ResourceClass + - description: name of the ClusterRole in: path name: name required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -58240,109 +62265,66 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1alpha2.ResourceClass' + $ref: '#/components/schemas/v1.ClusterRole' required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1alpha2.ResourceClass' + $ref: '#/components/schemas/v1.ClusterRole' application/yaml: schema: - $ref: '#/components/schemas/v1alpha2.ResourceClass' + $ref: '#/components/schemas/v1.ClusterRole' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha2.ResourceClass' + $ref: '#/components/schemas/v1.ClusterRole' + application/cbor: + schema: + $ref: '#/components/schemas/v1.ClusterRole' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1alpha2.ResourceClass' + $ref: '#/components/schemas/v1.ClusterRole' application/yaml: schema: - $ref: '#/components/schemas/v1alpha2.ResourceClass' + $ref: '#/components/schemas/v1.ClusterRole' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha2.ResourceClass' + $ref: '#/components/schemas/v1.ClusterRole' + application/cbor: + schema: + $ref: '#/components/schemas/v1.ClusterRole' description: Created "401": content: {} description: Unauthorized tags: - - resource_v1alpha2 + - rbacAuthorization_v1 x-kubernetes-action: put x-kubernetes-group-version-kind: - group: resource.k8s.io - kind: ResourceClass - version: v1alpha2 + group: rbac.authorization.k8s.io + kind: ClusterRole + version: v1 x-codegen-request-body-name: body x-contentType: application/json x-accepts: application/json - /apis/resource.k8s.io/v1alpha2/watch/namespaces/{namespace}/podschedulingcontexts: {} - /apis/resource.k8s.io/v1alpha2/watch/namespaces/{namespace}/podschedulingcontexts/{name}: {} - /apis/resource.k8s.io/v1alpha2/watch/namespaces/{namespace}/resourceclaims: {} - /apis/resource.k8s.io/v1alpha2/watch/namespaces/{namespace}/resourceclaims/{name}: {} - /apis/resource.k8s.io/v1alpha2/watch/namespaces/{namespace}/resourceclaimtemplates: {} - /apis/resource.k8s.io/v1alpha2/watch/namespaces/{namespace}/resourceclaimtemplates/{name}: {} - /apis/resource.k8s.io/v1alpha2/watch/podschedulingcontexts: {} - /apis/resource.k8s.io/v1alpha2/watch/resourceclaims: {} - /apis/resource.k8s.io/v1alpha2/watch/resourceclaimtemplates: {} - /apis/resource.k8s.io/v1alpha2/watch/resourceclasses: {} - /apis/resource.k8s.io/v1alpha2/watch/resourceclasses/{name}: {} - /apis/scheduling.k8s.io/: - get: - description: get information of a group - operationId: getAPIGroup - responses: - "200": - content: - application/json: - schema: - $ref: '#/components/schemas/v1.APIGroup' - application/yaml: - schema: - $ref: '#/components/schemas/v1.APIGroup' - application/vnd.kubernetes.protobuf: - schema: - $ref: '#/components/schemas/v1.APIGroup' - description: OK - "401": - content: {} - description: Unauthorized - tags: - - scheduling - x-accepts: application/json - /apis/scheduling.k8s.io/v1/: - get: - description: get available resources - operationId: getAPIResources - responses: - "200": - content: - application/json: - schema: - $ref: '#/components/schemas/v1.APIResourceList' - application/yaml: - schema: - $ref: '#/components/schemas/v1.APIResourceList' - application/vnd.kubernetes.protobuf: - schema: - $ref: '#/components/schemas/v1.APIResourceList' - description: OK - "401": - content: {} - description: Unauthorized - tags: - - scheduling_v1 - x-accepts: application/json - /apis/scheduling.k8s.io/v1/priorityclasses: + /apis/rbac.authorization.k8s.io/v1/namespaces/{namespace}/rolebindings: delete: - description: delete collection of PriorityClass - operationId: deleteCollectionPriorityClass + description: delete collection of RoleBinding + operationId: deleteCollectionNamespacedRoleBinding parameters: - - description: If 'true', then the output is pretty printed. + - description: object name and auth scope, such as for teams and projects + in: path + name: namespace + required: true + schema: + type: string + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -58378,6 +62360,20 @@ paths: name: gracePeriodSeconds schema: type: integer + - description: 'if set to true, it will trigger an unsafe deletion of the resource + in case the normal deletion flow fails with a corrupt object error. A resource + is considered corrupt if it can not be retrieved from the underlying storage + successfully because of a) its data can not be transformed e.g. decryption + failure, or b) it fails to decode into an object. NOTE: unsafe deletion + ignores finalizer constraints, skips precondition checks, and removes the + object from the storage. WARNING: This may potentially break the cluster + if the workload associated with the resource being unsafe-deleted relies + on normal deletion flow. Use only if you REALLY know what you are doing. + The default value is false, and the user must opt in to enable it' + in: query + name: ignoreStoreReadErrorWithClusterBreakingPotential + schema: + type: boolean - description: A selector to restrict the list of returned objects by their labels. Defaults to everything. in: query @@ -58469,25 +62465,36 @@ paths: application/vnd.kubernetes.protobuf: schema: $ref: '#/components/schemas/v1.Status' + application/cbor: + schema: + $ref: '#/components/schemas/v1.Status' description: OK "401": content: {} description: Unauthorized tags: - - scheduling_v1 + - rbacAuthorization_v1 x-kubernetes-action: deletecollection x-kubernetes-group-version-kind: - group: scheduling.k8s.io - kind: PriorityClass + group: rbac.authorization.k8s.io + kind: RoleBinding version: v1 x-codegen-request-body-name: body x-contentType: application/json x-accepts: application/json get: - description: list or watch objects of kind PriorityClass - operationId: listPriorityClass + description: list or watch objects of kind RoleBinding + operationId: listNamespacedRoleBinding parameters: - - description: If 'true', then the output is pretty printed. + - description: object name and auth scope, such as for teams and projects + in: path + name: namespace + required: true + schema: + type: string + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -58581,36 +62588,50 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.PriorityClassList' + $ref: '#/components/schemas/v1.RoleBindingList' application/yaml: schema: - $ref: '#/components/schemas/v1.PriorityClassList' + $ref: '#/components/schemas/v1.RoleBindingList' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.PriorityClassList' + $ref: '#/components/schemas/v1.RoleBindingList' + application/cbor: + schema: + $ref: '#/components/schemas/v1.RoleBindingList' application/json;stream=watch: schema: - $ref: '#/components/schemas/v1.PriorityClassList' + $ref: '#/components/schemas/v1.RoleBindingList' application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: '#/components/schemas/v1.PriorityClassList' + $ref: '#/components/schemas/v1.RoleBindingList' + application/cbor-seq: + schema: + $ref: '#/components/schemas/v1.RoleBindingList' description: OK "401": content: {} description: Unauthorized tags: - - scheduling_v1 + - rbacAuthorization_v1 x-kubernetes-action: list x-kubernetes-group-version-kind: - group: scheduling.k8s.io - kind: PriorityClass + group: rbac.authorization.k8s.io + kind: RoleBinding version: v1 x-accepts: application/json post: - description: create a PriorityClass - operationId: createPriorityClass + description: create a RoleBinding + operationId: createNamespacedRoleBinding parameters: - - description: If 'true', then the output is pretty printed. + - description: object name and auth scope, such as for teams and projects + in: path + name: namespace + required: true + schema: + type: string + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -58651,70 +62672,87 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.PriorityClass' + $ref: '#/components/schemas/v1.RoleBinding' required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.PriorityClass' + $ref: '#/components/schemas/v1.RoleBinding' application/yaml: schema: - $ref: '#/components/schemas/v1.PriorityClass' + $ref: '#/components/schemas/v1.RoleBinding' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.PriorityClass' + $ref: '#/components/schemas/v1.RoleBinding' + application/cbor: + schema: + $ref: '#/components/schemas/v1.RoleBinding' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.PriorityClass' + $ref: '#/components/schemas/v1.RoleBinding' application/yaml: schema: - $ref: '#/components/schemas/v1.PriorityClass' + $ref: '#/components/schemas/v1.RoleBinding' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.PriorityClass' + $ref: '#/components/schemas/v1.RoleBinding' + application/cbor: + schema: + $ref: '#/components/schemas/v1.RoleBinding' description: Created "202": content: application/json: schema: - $ref: '#/components/schemas/v1.PriorityClass' + $ref: '#/components/schemas/v1.RoleBinding' application/yaml: schema: - $ref: '#/components/schemas/v1.PriorityClass' + $ref: '#/components/schemas/v1.RoleBinding' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.PriorityClass' + $ref: '#/components/schemas/v1.RoleBinding' + application/cbor: + schema: + $ref: '#/components/schemas/v1.RoleBinding' description: Accepted "401": content: {} description: Unauthorized tags: - - scheduling_v1 + - rbacAuthorization_v1 x-kubernetes-action: post x-kubernetes-group-version-kind: - group: scheduling.k8s.io - kind: PriorityClass + group: rbac.authorization.k8s.io + kind: RoleBinding version: v1 x-codegen-request-body-name: body x-contentType: application/json x-accepts: application/json - /apis/scheduling.k8s.io/v1/priorityclasses/{name}: + /apis/rbac.authorization.k8s.io/v1/namespaces/{namespace}/rolebindings/{name}: delete: - description: delete a PriorityClass - operationId: deletePriorityClass + description: delete a RoleBinding + operationId: deleteNamespacedRoleBinding parameters: - - description: name of the PriorityClass + - description: name of the RoleBinding in: path name: name required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: object name and auth scope, such as for teams and projects + in: path + name: namespace + required: true + schema: + type: string + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -58736,6 +62774,20 @@ paths: name: gracePeriodSeconds schema: type: integer + - description: 'if set to true, it will trigger an unsafe deletion of the resource + in case the normal deletion flow fails with a corrupt object error. A resource + is considered corrupt if it can not be retrieved from the underlying storage + successfully because of a) its data can not be transformed e.g. decryption + failure, or b) it fails to decode into an object. NOTE: unsafe deletion + ignores finalizer constraints, skips precondition checks, and removes the + object from the storage. WARNING: This may potentially break the cluster + if the workload associated with the resource being unsafe-deleted relies + on normal deletion flow. Use only if you REALLY know what you are doing. + The default value is false, and the user must opt in to enable it' + in: query + name: ignoreStoreReadErrorWithClusterBreakingPotential + schema: + type: boolean - description: '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 @@ -58773,6 +62825,9 @@ paths: application/vnd.kubernetes.protobuf: schema: $ref: '#/components/schemas/v1.Status' + application/cbor: + schema: + $ref: '#/components/schemas/v1.Status' description: OK "202": content: @@ -58785,31 +62840,42 @@ paths: application/vnd.kubernetes.protobuf: schema: $ref: '#/components/schemas/v1.Status' + application/cbor: + schema: + $ref: '#/components/schemas/v1.Status' description: Accepted "401": content: {} description: Unauthorized tags: - - scheduling_v1 + - rbacAuthorization_v1 x-kubernetes-action: delete x-kubernetes-group-version-kind: - group: scheduling.k8s.io - kind: PriorityClass + group: rbac.authorization.k8s.io + kind: RoleBinding version: v1 x-codegen-request-body-name: body x-contentType: application/json x-accepts: application/json get: - description: read the specified PriorityClass - operationId: readPriorityClass + description: read the specified RoleBinding + operationId: readNamespacedRoleBinding parameters: - - description: name of the PriorityClass + - description: name of the RoleBinding in: path name: name required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: object name and auth scope, such as for teams and projects + in: path + name: namespace + required: true + schema: + type: string + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -58819,36 +62885,47 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.PriorityClass' + $ref: '#/components/schemas/v1.RoleBinding' application/yaml: schema: - $ref: '#/components/schemas/v1.PriorityClass' + $ref: '#/components/schemas/v1.RoleBinding' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.PriorityClass' + $ref: '#/components/schemas/v1.RoleBinding' + application/cbor: + schema: + $ref: '#/components/schemas/v1.RoleBinding' description: OK "401": content: {} description: Unauthorized tags: - - scheduling_v1 + - rbacAuthorization_v1 x-kubernetes-action: get x-kubernetes-group-version-kind: - group: scheduling.k8s.io - kind: PriorityClass + group: rbac.authorization.k8s.io + kind: RoleBinding version: v1 x-accepts: application/json patch: - description: partially update the specified PriorityClass - operationId: patchPriorityClass + description: partially update the specified RoleBinding + operationId: patchNamespacedRoleBinding parameters: - - description: name of the PriorityClass + - description: name of the RoleBinding in: path name: name required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: object name and auth scope, such as for teams and projects + in: path + name: namespace + required: true + schema: + type: string + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -58905,50 +62982,64 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.PriorityClass' + $ref: '#/components/schemas/v1.RoleBinding' application/yaml: schema: - $ref: '#/components/schemas/v1.PriorityClass' + $ref: '#/components/schemas/v1.RoleBinding' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.PriorityClass' + $ref: '#/components/schemas/v1.RoleBinding' + application/cbor: + schema: + $ref: '#/components/schemas/v1.RoleBinding' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.PriorityClass' + $ref: '#/components/schemas/v1.RoleBinding' application/yaml: schema: - $ref: '#/components/schemas/v1.PriorityClass' + $ref: '#/components/schemas/v1.RoleBinding' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.PriorityClass' + $ref: '#/components/schemas/v1.RoleBinding' + application/cbor: + schema: + $ref: '#/components/schemas/v1.RoleBinding' description: Created "401": content: {} description: Unauthorized tags: - - scheduling_v1 + - rbacAuthorization_v1 x-kubernetes-action: patch x-kubernetes-group-version-kind: - group: scheduling.k8s.io - kind: PriorityClass + group: rbac.authorization.k8s.io + kind: RoleBinding version: v1 x-codegen-request-body-name: body x-contentType: application/json x-accepts: application/json put: - description: replace the specified PriorityClass - operationId: replacePriorityClass + description: replace the specified RoleBinding + operationId: replaceNamespacedRoleBinding parameters: - - description: name of the PriorityClass + - description: name of the RoleBinding in: path name: name required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: object name and auth scope, such as for teams and projects + in: path + name: namespace + required: true + schema: + type: string + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -58989,100 +63080,66 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.PriorityClass' + $ref: '#/components/schemas/v1.RoleBinding' required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.PriorityClass' + $ref: '#/components/schemas/v1.RoleBinding' application/yaml: schema: - $ref: '#/components/schemas/v1.PriorityClass' + $ref: '#/components/schemas/v1.RoleBinding' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.PriorityClass' + $ref: '#/components/schemas/v1.RoleBinding' + application/cbor: + schema: + $ref: '#/components/schemas/v1.RoleBinding' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.PriorityClass' + $ref: '#/components/schemas/v1.RoleBinding' application/yaml: schema: - $ref: '#/components/schemas/v1.PriorityClass' + $ref: '#/components/schemas/v1.RoleBinding' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.PriorityClass' + $ref: '#/components/schemas/v1.RoleBinding' + application/cbor: + schema: + $ref: '#/components/schemas/v1.RoleBinding' description: Created "401": content: {} description: Unauthorized tags: - - scheduling_v1 + - rbacAuthorization_v1 x-kubernetes-action: put x-kubernetes-group-version-kind: - group: scheduling.k8s.io - kind: PriorityClass + group: rbac.authorization.k8s.io + kind: RoleBinding version: v1 x-codegen-request-body-name: body x-contentType: application/json x-accepts: application/json - /apis/scheduling.k8s.io/v1/watch/priorityclasses: {} - /apis/scheduling.k8s.io/v1/watch/priorityclasses/{name}: {} - /apis/storage.k8s.io/: - get: - description: get information of a group - operationId: getAPIGroup - responses: - "200": - content: - application/json: - schema: - $ref: '#/components/schemas/v1.APIGroup' - application/yaml: - schema: - $ref: '#/components/schemas/v1.APIGroup' - application/vnd.kubernetes.protobuf: - schema: - $ref: '#/components/schemas/v1.APIGroup' - description: OK - "401": - content: {} - description: Unauthorized - tags: - - storage - x-accepts: application/json - /apis/storage.k8s.io/v1/: - get: - description: get available resources - operationId: getAPIResources - responses: - "200": - content: - application/json: - schema: - $ref: '#/components/schemas/v1.APIResourceList' - application/yaml: - schema: - $ref: '#/components/schemas/v1.APIResourceList' - application/vnd.kubernetes.protobuf: - schema: - $ref: '#/components/schemas/v1.APIResourceList' - description: OK - "401": - content: {} - description: Unauthorized - tags: - - storage_v1 - x-accepts: application/json - /apis/storage.k8s.io/v1/csidrivers: + /apis/rbac.authorization.k8s.io/v1/namespaces/{namespace}/roles: delete: - description: delete collection of CSIDriver - operationId: deleteCollectionCSIDriver + description: delete collection of Role + operationId: deleteCollectionNamespacedRole parameters: - - description: If 'true', then the output is pretty printed. + - description: object name and auth scope, such as for teams and projects + in: path + name: namespace + required: true + schema: + type: string + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -59118,6 +63175,20 @@ paths: name: gracePeriodSeconds schema: type: integer + - description: 'if set to true, it will trigger an unsafe deletion of the resource + in case the normal deletion flow fails with a corrupt object error. A resource + is considered corrupt if it can not be retrieved from the underlying storage + successfully because of a) its data can not be transformed e.g. decryption + failure, or b) it fails to decode into an object. NOTE: unsafe deletion + ignores finalizer constraints, skips precondition checks, and removes the + object from the storage. WARNING: This may potentially break the cluster + if the workload associated with the resource being unsafe-deleted relies + on normal deletion flow. Use only if you REALLY know what you are doing. + The default value is false, and the user must opt in to enable it' + in: query + name: ignoreStoreReadErrorWithClusterBreakingPotential + schema: + type: boolean - description: A selector to restrict the list of returned objects by their labels. Defaults to everything. in: query @@ -59209,25 +63280,36 @@ paths: application/vnd.kubernetes.protobuf: schema: $ref: '#/components/schemas/v1.Status' + application/cbor: + schema: + $ref: '#/components/schemas/v1.Status' description: OK "401": content: {} description: Unauthorized tags: - - storage_v1 + - rbacAuthorization_v1 x-kubernetes-action: deletecollection x-kubernetes-group-version-kind: - group: storage.k8s.io - kind: CSIDriver + group: rbac.authorization.k8s.io + kind: Role version: v1 x-codegen-request-body-name: body x-contentType: application/json x-accepts: application/json get: - description: list or watch objects of kind CSIDriver - operationId: listCSIDriver + description: list or watch objects of kind Role + operationId: listNamespacedRole parameters: - - description: If 'true', then the output is pretty printed. + - description: object name and auth scope, such as for teams and projects + in: path + name: namespace + required: true + schema: + type: string + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -59321,36 +63403,50 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.CSIDriverList' + $ref: '#/components/schemas/v1.RoleList' application/yaml: schema: - $ref: '#/components/schemas/v1.CSIDriverList' + $ref: '#/components/schemas/v1.RoleList' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.CSIDriverList' + $ref: '#/components/schemas/v1.RoleList' + application/cbor: + schema: + $ref: '#/components/schemas/v1.RoleList' application/json;stream=watch: schema: - $ref: '#/components/schemas/v1.CSIDriverList' + $ref: '#/components/schemas/v1.RoleList' application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: '#/components/schemas/v1.CSIDriverList' + $ref: '#/components/schemas/v1.RoleList' + application/cbor-seq: + schema: + $ref: '#/components/schemas/v1.RoleList' description: OK "401": content: {} description: Unauthorized tags: - - storage_v1 + - rbacAuthorization_v1 x-kubernetes-action: list x-kubernetes-group-version-kind: - group: storage.k8s.io - kind: CSIDriver + group: rbac.authorization.k8s.io + kind: Role version: v1 x-accepts: application/json post: - description: create a CSIDriver - operationId: createCSIDriver + description: create a Role + operationId: createNamespacedRole parameters: - - description: If 'true', then the output is pretty printed. + - description: object name and auth scope, such as for teams and projects + in: path + name: namespace + required: true + schema: + type: string + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -59391,70 +63487,87 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.CSIDriver' + $ref: '#/components/schemas/v1.Role' required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.CSIDriver' + $ref: '#/components/schemas/v1.Role' application/yaml: schema: - $ref: '#/components/schemas/v1.CSIDriver' + $ref: '#/components/schemas/v1.Role' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.CSIDriver' + $ref: '#/components/schemas/v1.Role' + application/cbor: + schema: + $ref: '#/components/schemas/v1.Role' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.CSIDriver' + $ref: '#/components/schemas/v1.Role' application/yaml: schema: - $ref: '#/components/schemas/v1.CSIDriver' + $ref: '#/components/schemas/v1.Role' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.CSIDriver' + $ref: '#/components/schemas/v1.Role' + application/cbor: + schema: + $ref: '#/components/schemas/v1.Role' description: Created "202": content: application/json: schema: - $ref: '#/components/schemas/v1.CSIDriver' + $ref: '#/components/schemas/v1.Role' application/yaml: schema: - $ref: '#/components/schemas/v1.CSIDriver' + $ref: '#/components/schemas/v1.Role' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.CSIDriver' + $ref: '#/components/schemas/v1.Role' + application/cbor: + schema: + $ref: '#/components/schemas/v1.Role' description: Accepted "401": content: {} description: Unauthorized tags: - - storage_v1 + - rbacAuthorization_v1 x-kubernetes-action: post x-kubernetes-group-version-kind: - group: storage.k8s.io - kind: CSIDriver + group: rbac.authorization.k8s.io + kind: Role version: v1 x-codegen-request-body-name: body x-contentType: application/json x-accepts: application/json - /apis/storage.k8s.io/v1/csidrivers/{name}: + /apis/rbac.authorization.k8s.io/v1/namespaces/{namespace}/roles/{name}: delete: - description: delete a CSIDriver - operationId: deleteCSIDriver + description: delete a Role + operationId: deleteNamespacedRole parameters: - - description: name of the CSIDriver + - description: name of the Role in: path name: name required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: object name and auth scope, such as for teams and projects + in: path + name: namespace + required: true + schema: + type: string + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -59476,6 +63589,20 @@ paths: name: gracePeriodSeconds schema: type: integer + - description: 'if set to true, it will trigger an unsafe deletion of the resource + in case the normal deletion flow fails with a corrupt object error. A resource + is considered corrupt if it can not be retrieved from the underlying storage + successfully because of a) its data can not be transformed e.g. decryption + failure, or b) it fails to decode into an object. NOTE: unsafe deletion + ignores finalizer constraints, skips precondition checks, and removes the + object from the storage. WARNING: This may potentially break the cluster + if the workload associated with the resource being unsafe-deleted relies + on normal deletion flow. Use only if you REALLY know what you are doing. + The default value is false, and the user must opt in to enable it' + in: query + name: ignoreStoreReadErrorWithClusterBreakingPotential + schema: + type: boolean - description: '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 @@ -59506,50 +63633,64 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.CSIDriver' + $ref: '#/components/schemas/v1.Status' application/yaml: schema: - $ref: '#/components/schemas/v1.CSIDriver' + $ref: '#/components/schemas/v1.Status' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.CSIDriver' + $ref: '#/components/schemas/v1.Status' + application/cbor: + schema: + $ref: '#/components/schemas/v1.Status' description: OK "202": content: application/json: schema: - $ref: '#/components/schemas/v1.CSIDriver' + $ref: '#/components/schemas/v1.Status' application/yaml: schema: - $ref: '#/components/schemas/v1.CSIDriver' + $ref: '#/components/schemas/v1.Status' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.CSIDriver' + $ref: '#/components/schemas/v1.Status' + application/cbor: + schema: + $ref: '#/components/schemas/v1.Status' description: Accepted "401": content: {} description: Unauthorized tags: - - storage_v1 + - rbacAuthorization_v1 x-kubernetes-action: delete x-kubernetes-group-version-kind: - group: storage.k8s.io - kind: CSIDriver + group: rbac.authorization.k8s.io + kind: Role version: v1 x-codegen-request-body-name: body x-contentType: application/json x-accepts: application/json get: - description: read the specified CSIDriver - operationId: readCSIDriver + description: read the specified Role + operationId: readNamespacedRole parameters: - - description: name of the CSIDriver + - description: name of the Role in: path name: name required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: object name and auth scope, such as for teams and projects + in: path + name: namespace + required: true + schema: + type: string + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -59559,36 +63700,47 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.CSIDriver' + $ref: '#/components/schemas/v1.Role' application/yaml: schema: - $ref: '#/components/schemas/v1.CSIDriver' + $ref: '#/components/schemas/v1.Role' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.CSIDriver' + $ref: '#/components/schemas/v1.Role' + application/cbor: + schema: + $ref: '#/components/schemas/v1.Role' description: OK "401": content: {} description: Unauthorized tags: - - storage_v1 + - rbacAuthorization_v1 x-kubernetes-action: get x-kubernetes-group-version-kind: - group: storage.k8s.io - kind: CSIDriver + group: rbac.authorization.k8s.io + kind: Role version: v1 x-accepts: application/json patch: - description: partially update the specified CSIDriver - operationId: patchCSIDriver + description: partially update the specified Role + operationId: patchNamespacedRole parameters: - - description: name of the CSIDriver + - description: name of the Role in: path name: name required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: object name and auth scope, such as for teams and projects + in: path + name: namespace + required: true + schema: + type: string + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -59645,50 +63797,64 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.CSIDriver' + $ref: '#/components/schemas/v1.Role' application/yaml: schema: - $ref: '#/components/schemas/v1.CSIDriver' + $ref: '#/components/schemas/v1.Role' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.CSIDriver' + $ref: '#/components/schemas/v1.Role' + application/cbor: + schema: + $ref: '#/components/schemas/v1.Role' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.CSIDriver' + $ref: '#/components/schemas/v1.Role' application/yaml: schema: - $ref: '#/components/schemas/v1.CSIDriver' + $ref: '#/components/schemas/v1.Role' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.CSIDriver' + $ref: '#/components/schemas/v1.Role' + application/cbor: + schema: + $ref: '#/components/schemas/v1.Role' description: Created "401": content: {} description: Unauthorized tags: - - storage_v1 + - rbacAuthorization_v1 x-kubernetes-action: patch x-kubernetes-group-version-kind: - group: storage.k8s.io - kind: CSIDriver + group: rbac.authorization.k8s.io + kind: Role version: v1 x-codegen-request-body-name: body x-contentType: application/json x-accepts: application/json put: - description: replace the specified CSIDriver - operationId: replaceCSIDriver + description: replace the specified Role + operationId: replaceNamespacedRole parameters: - - description: name of the CSIDriver + - description: name of the Role in: path name: name required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: object name and auth scope, such as for teams and projects + in: path + name: namespace + required: true + schema: + type: string + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -59729,52 +63895,383 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.CSIDriver' + $ref: '#/components/schemas/v1.Role' required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.CSIDriver' + $ref: '#/components/schemas/v1.Role' application/yaml: schema: - $ref: '#/components/schemas/v1.CSIDriver' + $ref: '#/components/schemas/v1.Role' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.CSIDriver' + $ref: '#/components/schemas/v1.Role' + application/cbor: + schema: + $ref: '#/components/schemas/v1.Role' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.CSIDriver' + $ref: '#/components/schemas/v1.Role' application/yaml: schema: - $ref: '#/components/schemas/v1.CSIDriver' + $ref: '#/components/schemas/v1.Role' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.CSIDriver' + $ref: '#/components/schemas/v1.Role' + application/cbor: + schema: + $ref: '#/components/schemas/v1.Role' description: Created "401": content: {} description: Unauthorized tags: - - storage_v1 + - rbacAuthorization_v1 x-kubernetes-action: put x-kubernetes-group-version-kind: - group: storage.k8s.io - kind: CSIDriver + group: rbac.authorization.k8s.io + kind: Role version: v1 x-codegen-request-body-name: body x-contentType: application/json x-accepts: application/json - /apis/storage.k8s.io/v1/csinodes: + /apis/rbac.authorization.k8s.io/v1/rolebindings: + get: + description: list or watch objects of kind RoleBinding + operationId: listRoleBindingForAllNamespaces + parameters: + - description: 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. + in: query + name: allowWatchBookmarks + schema: + type: boolean + - description: |- + 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. + in: query + name: continue + 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 + - description: A selector to restrict the list of returned objects by their + labels. Defaults to everything. + in: query + name: labelSelector + schema: + type: string + - description: |- + limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. + + The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + in: query + name: limit + schema: + type: integer + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). + in: query + name: pretty + schema: + type: string + - description: |- + resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersion + schema: + type: string + - description: |- + resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersionMatch + schema: + type: string + - description: |- + `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic "Bookmark" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `"k8s.io/initial-events-end": "true"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. + + When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan + is interpreted as "data at least as new as the provided `resourceVersion`" + and the bookmark event is send when the state is synced + to a `resourceVersion` at least as fresh as the one provided by the ListOptions. + If `resourceVersion` is unset, this is interpreted as "consistent read" and the + bookmark event is send when the state is synced at least to the moment + when request started being processed. + - `resourceVersionMatch` set to any other value or unset + Invalid error is returned. + + Defaults to true if `resourceVersion=""` or `resourceVersion="0"` (for backward compatibility reasons) and to false otherwise. + in: query + name: sendInitialEvents + schema: + type: boolean + - description: Timeout for the list/watch call. This limits the duration of + the call, regardless of any activity or inactivity. + in: query + name: timeoutSeconds + schema: + type: integer + - description: Watch for changes to the described resources and return them + as a stream of add, update, and remove notifications. Specify resourceVersion. + in: query + name: watch + schema: + type: boolean + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.RoleBindingList' + application/yaml: + schema: + $ref: '#/components/schemas/v1.RoleBindingList' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.RoleBindingList' + application/cbor: + schema: + $ref: '#/components/schemas/v1.RoleBindingList' + application/json;stream=watch: + schema: + $ref: '#/components/schemas/v1.RoleBindingList' + application/vnd.kubernetes.protobuf;stream=watch: + schema: + $ref: '#/components/schemas/v1.RoleBindingList' + application/cbor-seq: + schema: + $ref: '#/components/schemas/v1.RoleBindingList' + description: OK + "401": + content: {} + description: Unauthorized + tags: + - rbacAuthorization_v1 + x-kubernetes-action: list + x-kubernetes-group-version-kind: + group: rbac.authorization.k8s.io + kind: RoleBinding + version: v1 + x-accepts: application/json + /apis/rbac.authorization.k8s.io/v1/roles: + get: + description: list or watch objects of kind Role + operationId: listRoleForAllNamespaces + parameters: + - description: 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. + in: query + name: allowWatchBookmarks + schema: + type: boolean + - description: |- + 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. + in: query + name: continue + 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 + - description: A selector to restrict the list of returned objects by their + labels. Defaults to everything. + in: query + name: labelSelector + schema: + type: string + - description: |- + limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. + + The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + in: query + name: limit + schema: + type: integer + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). + in: query + name: pretty + schema: + type: string + - description: |- + resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersion + schema: + type: string + - description: |- + resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersionMatch + schema: + type: string + - description: |- + `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic "Bookmark" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `"k8s.io/initial-events-end": "true"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. + + When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan + is interpreted as "data at least as new as the provided `resourceVersion`" + and the bookmark event is send when the state is synced + to a `resourceVersion` at least as fresh as the one provided by the ListOptions. + If `resourceVersion` is unset, this is interpreted as "consistent read" and the + bookmark event is send when the state is synced at least to the moment + when request started being processed. + - `resourceVersionMatch` set to any other value or unset + Invalid error is returned. + + Defaults to true if `resourceVersion=""` or `resourceVersion="0"` (for backward compatibility reasons) and to false otherwise. + in: query + name: sendInitialEvents + schema: + type: boolean + - description: Timeout for the list/watch call. This limits the duration of + the call, regardless of any activity or inactivity. + in: query + name: timeoutSeconds + schema: + type: integer + - description: Watch for changes to the described resources and return them + as a stream of add, update, and remove notifications. Specify resourceVersion. + in: query + name: watch + schema: + type: boolean + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.RoleList' + application/yaml: + schema: + $ref: '#/components/schemas/v1.RoleList' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.RoleList' + application/cbor: + schema: + $ref: '#/components/schemas/v1.RoleList' + application/json;stream=watch: + schema: + $ref: '#/components/schemas/v1.RoleList' + application/vnd.kubernetes.protobuf;stream=watch: + schema: + $ref: '#/components/schemas/v1.RoleList' + application/cbor-seq: + schema: + $ref: '#/components/schemas/v1.RoleList' + description: OK + "401": + content: {} + description: Unauthorized + tags: + - rbacAuthorization_v1 + x-kubernetes-action: list + x-kubernetes-group-version-kind: + group: rbac.authorization.k8s.io + kind: Role + version: v1 + x-accepts: application/json + /apis/rbac.authorization.k8s.io/v1/watch/clusterrolebindings: {} + /apis/rbac.authorization.k8s.io/v1/watch/clusterrolebindings/{name}: {} + /apis/rbac.authorization.k8s.io/v1/watch/clusterroles: {} + /apis/rbac.authorization.k8s.io/v1/watch/clusterroles/{name}: {} + /apis/rbac.authorization.k8s.io/v1/watch/namespaces/{namespace}/rolebindings: {} + /apis/rbac.authorization.k8s.io/v1/watch/namespaces/{namespace}/rolebindings/{name}: {} + /apis/rbac.authorization.k8s.io/v1/watch/namespaces/{namespace}/roles: {} + /apis/rbac.authorization.k8s.io/v1/watch/namespaces/{namespace}/roles/{name}: {} + /apis/rbac.authorization.k8s.io/v1/watch/rolebindings: {} + /apis/rbac.authorization.k8s.io/v1/watch/roles: {} + /apis/resource.k8s.io/: + get: + description: get information of a group + operationId: getAPIGroup + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.APIGroup' + application/yaml: + schema: + $ref: '#/components/schemas/v1.APIGroup' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.APIGroup' + description: OK + "401": + content: {} + description: Unauthorized + tags: + - resource + x-accepts: application/json + /apis/resource.k8s.io/v1alpha3/: + get: + description: get available resources + operationId: getAPIResources + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.APIResourceList' + application/yaml: + schema: + $ref: '#/components/schemas/v1.APIResourceList' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.APIResourceList' + application/cbor: + schema: + $ref: '#/components/schemas/v1.APIResourceList' + description: OK + "401": + content: {} + description: Unauthorized + tags: + - resource_v1alpha3 + x-accepts: application/json + /apis/resource.k8s.io/v1alpha3/deviceclasses: delete: - description: delete collection of CSINode - operationId: deleteCollectionCSINode + description: delete collection of DeviceClass + operationId: deleteCollectionDeviceClass parameters: - - description: If 'true', then the output is pretty printed. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -59810,6 +64307,20 @@ paths: name: gracePeriodSeconds schema: type: integer + - description: 'if set to true, it will trigger an unsafe deletion of the resource + in case the normal deletion flow fails with a corrupt object error. A resource + is considered corrupt if it can not be retrieved from the underlying storage + successfully because of a) its data can not be transformed e.g. decryption + failure, or b) it fails to decode into an object. NOTE: unsafe deletion + ignores finalizer constraints, skips precondition checks, and removes the + object from the storage. WARNING: This may potentially break the cluster + if the workload associated with the resource being unsafe-deleted relies + on normal deletion flow. Use only if you REALLY know what you are doing. + The default value is false, and the user must opt in to enable it' + in: query + name: ignoreStoreReadErrorWithClusterBreakingPotential + schema: + type: boolean - description: A selector to restrict the list of returned objects by their labels. Defaults to everything. in: query @@ -59901,25 +64412,30 @@ paths: application/vnd.kubernetes.protobuf: schema: $ref: '#/components/schemas/v1.Status' + application/cbor: + schema: + $ref: '#/components/schemas/v1.Status' description: OK "401": content: {} description: Unauthorized tags: - - storage_v1 + - resource_v1alpha3 x-kubernetes-action: deletecollection x-kubernetes-group-version-kind: - group: storage.k8s.io - kind: CSINode - version: v1 + group: resource.k8s.io + kind: DeviceClass + version: v1alpha3 x-codegen-request-body-name: body x-contentType: application/json x-accepts: application/json get: - description: list or watch objects of kind CSINode - operationId: listCSINode + description: list or watch objects of kind DeviceClass + operationId: listDeviceClass parameters: - - description: If 'true', then the output is pretty printed. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -60013,36 +64529,44 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.CSINodeList' + $ref: '#/components/schemas/v1alpha3.DeviceClassList' application/yaml: schema: - $ref: '#/components/schemas/v1.CSINodeList' + $ref: '#/components/schemas/v1alpha3.DeviceClassList' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.CSINodeList' + $ref: '#/components/schemas/v1alpha3.DeviceClassList' + application/cbor: + schema: + $ref: '#/components/schemas/v1alpha3.DeviceClassList' application/json;stream=watch: schema: - $ref: '#/components/schemas/v1.CSINodeList' + $ref: '#/components/schemas/v1alpha3.DeviceClassList' application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: '#/components/schemas/v1.CSINodeList' + $ref: '#/components/schemas/v1alpha3.DeviceClassList' + application/cbor-seq: + schema: + $ref: '#/components/schemas/v1alpha3.DeviceClassList' description: OK "401": content: {} description: Unauthorized tags: - - storage_v1 + - resource_v1alpha3 x-kubernetes-action: list x-kubernetes-group-version-kind: - group: storage.k8s.io - kind: CSINode - version: v1 + group: resource.k8s.io + kind: DeviceClass + version: v1alpha3 x-accepts: application/json post: - description: create a CSINode - operationId: createCSINode + description: create a DeviceClass + operationId: createDeviceClass parameters: - - description: If 'true', then the output is pretty printed. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -60083,70 +64607,81 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.CSINode' + $ref: '#/components/schemas/v1alpha3.DeviceClass' required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.CSINode' + $ref: '#/components/schemas/v1alpha3.DeviceClass' application/yaml: schema: - $ref: '#/components/schemas/v1.CSINode' + $ref: '#/components/schemas/v1alpha3.DeviceClass' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.CSINode' + $ref: '#/components/schemas/v1alpha3.DeviceClass' + application/cbor: + schema: + $ref: '#/components/schemas/v1alpha3.DeviceClass' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.CSINode' + $ref: '#/components/schemas/v1alpha3.DeviceClass' application/yaml: schema: - $ref: '#/components/schemas/v1.CSINode' + $ref: '#/components/schemas/v1alpha3.DeviceClass' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.CSINode' + $ref: '#/components/schemas/v1alpha3.DeviceClass' + application/cbor: + schema: + $ref: '#/components/schemas/v1alpha3.DeviceClass' description: Created "202": content: application/json: schema: - $ref: '#/components/schemas/v1.CSINode' + $ref: '#/components/schemas/v1alpha3.DeviceClass' application/yaml: schema: - $ref: '#/components/schemas/v1.CSINode' + $ref: '#/components/schemas/v1alpha3.DeviceClass' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.CSINode' + $ref: '#/components/schemas/v1alpha3.DeviceClass' + application/cbor: + schema: + $ref: '#/components/schemas/v1alpha3.DeviceClass' description: Accepted "401": content: {} description: Unauthorized tags: - - storage_v1 + - resource_v1alpha3 x-kubernetes-action: post x-kubernetes-group-version-kind: - group: storage.k8s.io - kind: CSINode - version: v1 + group: resource.k8s.io + kind: DeviceClass + version: v1alpha3 x-codegen-request-body-name: body x-contentType: application/json x-accepts: application/json - /apis/storage.k8s.io/v1/csinodes/{name}: + /apis/resource.k8s.io/v1alpha3/deviceclasses/{name}: delete: - description: delete a CSINode - operationId: deleteCSINode + description: delete a DeviceClass + operationId: deleteDeviceClass parameters: - - description: name of the CSINode + - description: name of the DeviceClass in: path name: name required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -60168,6 +64703,20 @@ paths: name: gracePeriodSeconds schema: type: integer + - description: 'if set to true, it will trigger an unsafe deletion of the resource + in case the normal deletion flow fails with a corrupt object error. A resource + is considered corrupt if it can not be retrieved from the underlying storage + successfully because of a) its data can not be transformed e.g. decryption + failure, or b) it fails to decode into an object. NOTE: unsafe deletion + ignores finalizer constraints, skips precondition checks, and removes the + object from the storage. WARNING: This may potentially break the cluster + if the workload associated with the resource being unsafe-deleted relies + on normal deletion flow. Use only if you REALLY know what you are doing. + The default value is false, and the user must opt in to enable it' + in: query + name: ignoreStoreReadErrorWithClusterBreakingPotential + schema: + type: boolean - description: '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 @@ -60198,50 +64747,58 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.CSINode' + $ref: '#/components/schemas/v1alpha3.DeviceClass' application/yaml: schema: - $ref: '#/components/schemas/v1.CSINode' + $ref: '#/components/schemas/v1alpha3.DeviceClass' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.CSINode' + $ref: '#/components/schemas/v1alpha3.DeviceClass' + application/cbor: + schema: + $ref: '#/components/schemas/v1alpha3.DeviceClass' description: OK "202": content: application/json: schema: - $ref: '#/components/schemas/v1.CSINode' + $ref: '#/components/schemas/v1alpha3.DeviceClass' application/yaml: schema: - $ref: '#/components/schemas/v1.CSINode' + $ref: '#/components/schemas/v1alpha3.DeviceClass' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.CSINode' + $ref: '#/components/schemas/v1alpha3.DeviceClass' + application/cbor: + schema: + $ref: '#/components/schemas/v1alpha3.DeviceClass' description: Accepted "401": content: {} description: Unauthorized tags: - - storage_v1 + - resource_v1alpha3 x-kubernetes-action: delete x-kubernetes-group-version-kind: - group: storage.k8s.io - kind: CSINode - version: v1 + group: resource.k8s.io + kind: DeviceClass + version: v1alpha3 x-codegen-request-body-name: body x-contentType: application/json x-accepts: application/json get: - description: read the specified CSINode - operationId: readCSINode + description: read the specified DeviceClass + operationId: readDeviceClass parameters: - - description: name of the CSINode + - description: name of the DeviceClass in: path name: name required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -60251,36 +64808,41 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.CSINode' + $ref: '#/components/schemas/v1alpha3.DeviceClass' application/yaml: schema: - $ref: '#/components/schemas/v1.CSINode' + $ref: '#/components/schemas/v1alpha3.DeviceClass' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.CSINode' + $ref: '#/components/schemas/v1alpha3.DeviceClass' + application/cbor: + schema: + $ref: '#/components/schemas/v1alpha3.DeviceClass' description: OK "401": content: {} description: Unauthorized tags: - - storage_v1 + - resource_v1alpha3 x-kubernetes-action: get x-kubernetes-group-version-kind: - group: storage.k8s.io - kind: CSINode - version: v1 + group: resource.k8s.io + kind: DeviceClass + version: v1alpha3 x-accepts: application/json patch: - description: partially update the specified CSINode - operationId: patchCSINode + description: partially update the specified DeviceClass + operationId: patchDeviceClass parameters: - - description: name of the CSINode + - description: name of the DeviceClass in: path name: name required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -60337,50 +64899,58 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.CSINode' + $ref: '#/components/schemas/v1alpha3.DeviceClass' application/yaml: schema: - $ref: '#/components/schemas/v1.CSINode' + $ref: '#/components/schemas/v1alpha3.DeviceClass' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.CSINode' + $ref: '#/components/schemas/v1alpha3.DeviceClass' + application/cbor: + schema: + $ref: '#/components/schemas/v1alpha3.DeviceClass' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.CSINode' + $ref: '#/components/schemas/v1alpha3.DeviceClass' application/yaml: schema: - $ref: '#/components/schemas/v1.CSINode' + $ref: '#/components/schemas/v1alpha3.DeviceClass' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.CSINode' + $ref: '#/components/schemas/v1alpha3.DeviceClass' + application/cbor: + schema: + $ref: '#/components/schemas/v1alpha3.DeviceClass' description: Created "401": content: {} description: Unauthorized tags: - - storage_v1 + - resource_v1alpha3 x-kubernetes-action: patch x-kubernetes-group-version-kind: - group: storage.k8s.io - kind: CSINode - version: v1 + group: resource.k8s.io + kind: DeviceClass + version: v1alpha3 x-codegen-request-body-name: body x-contentType: application/json x-accepts: application/json put: - description: replace the specified CSINode - operationId: replaceCSINode + description: replace the specified DeviceClass + operationId: replaceDeviceClass parameters: - - description: name of the CSINode + - description: name of the DeviceClass in: path name: name required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -60421,182 +64991,60 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.CSINode' + $ref: '#/components/schemas/v1alpha3.DeviceClass' required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.CSINode' + $ref: '#/components/schemas/v1alpha3.DeviceClass' application/yaml: schema: - $ref: '#/components/schemas/v1.CSINode' + $ref: '#/components/schemas/v1alpha3.DeviceClass' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.CSINode' + $ref: '#/components/schemas/v1alpha3.DeviceClass' + application/cbor: + schema: + $ref: '#/components/schemas/v1alpha3.DeviceClass' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.CSINode' + $ref: '#/components/schemas/v1alpha3.DeviceClass' application/yaml: schema: - $ref: '#/components/schemas/v1.CSINode' + $ref: '#/components/schemas/v1alpha3.DeviceClass' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.CSINode' + $ref: '#/components/schemas/v1alpha3.DeviceClass' + application/cbor: + schema: + $ref: '#/components/schemas/v1alpha3.DeviceClass' description: Created "401": content: {} description: Unauthorized tags: - - storage_v1 + - resource_v1alpha3 x-kubernetes-action: put x-kubernetes-group-version-kind: - group: storage.k8s.io - kind: CSINode - version: v1 + group: resource.k8s.io + kind: DeviceClass + version: v1alpha3 x-codegen-request-body-name: body x-contentType: application/json x-accepts: application/json - /apis/storage.k8s.io/v1/csistoragecapacities: - get: - description: list or watch objects of kind CSIStorageCapacity - operationId: listCSIStorageCapacityForAllNamespaces - parameters: - - description: 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. - in: query - name: allowWatchBookmarks - schema: - type: boolean - - description: |- - 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. - in: query - name: continue - 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 - - description: A selector to restrict the list of returned objects by their - labels. Defaults to everything. - in: query - name: labelSelector - schema: - type: string - - description: |- - limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. - - The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. - in: query - name: limit - schema: - type: integer - - description: If 'true', then the output is pretty printed. - in: query - name: pretty - schema: - type: string - - description: |- - resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. - - Defaults to unset - in: query - name: resourceVersion - schema: - type: string - - description: |- - resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. - - Defaults to unset - in: query - name: resourceVersionMatch - schema: - type: string - - description: |- - `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic "Bookmark" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `"k8s.io/initial-events-end": "true"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. - - When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan - is interpreted as "data at least as new as the provided `resourceVersion`" - and the bookmark event is send when the state is synced - to a `resourceVersion` at least as fresh as the one provided by the ListOptions. - If `resourceVersion` is unset, this is interpreted as "consistent read" and the - bookmark event is send when the state is synced at least to the moment - when request started being processed. - - `resourceVersionMatch` set to any other value or unset - Invalid error is returned. - - Defaults to true if `resourceVersion=""` or `resourceVersion="0"` (for backward compatibility reasons) and to false otherwise. - in: query - name: sendInitialEvents - schema: - type: boolean - - description: Timeout for the list/watch call. This limits the duration of - the call, regardless of any activity or inactivity. - in: query - name: timeoutSeconds - schema: - type: integer - - description: Watch for changes to the described resources and return them - as a stream of add, update, and remove notifications. Specify resourceVersion. - in: query - name: watch - schema: - type: boolean - responses: - "200": - content: - application/json: - schema: - $ref: '#/components/schemas/v1.CSIStorageCapacityList' - application/yaml: - schema: - $ref: '#/components/schemas/v1.CSIStorageCapacityList' - application/vnd.kubernetes.protobuf: - schema: - $ref: '#/components/schemas/v1.CSIStorageCapacityList' - application/json;stream=watch: - schema: - $ref: '#/components/schemas/v1.CSIStorageCapacityList' - application/vnd.kubernetes.protobuf;stream=watch: - schema: - $ref: '#/components/schemas/v1.CSIStorageCapacityList' - description: OK - "401": - content: {} - description: Unauthorized - tags: - - storage_v1 - x-kubernetes-action: list - x-kubernetes-group-version-kind: - group: storage.k8s.io - kind: CSIStorageCapacity - version: v1 - x-accepts: application/json - /apis/storage.k8s.io/v1/namespaces/{namespace}/csistoragecapacities: + /apis/resource.k8s.io/v1alpha3/devicetaintrules: delete: - description: delete collection of CSIStorageCapacity - operationId: deleteCollectionNamespacedCSIStorageCapacity + description: delete collection of DeviceTaintRule + operationId: deleteCollectionDeviceTaintRule parameters: - - description: object name and auth scope, such as for teams and projects - in: path - name: namespace - required: true - schema: - type: string - - description: If 'true', then the output is pretty printed. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -60632,6 +65080,20 @@ paths: name: gracePeriodSeconds schema: type: integer + - description: 'if set to true, it will trigger an unsafe deletion of the resource + in case the normal deletion flow fails with a corrupt object error. A resource + is considered corrupt if it can not be retrieved from the underlying storage + successfully because of a) its data can not be transformed e.g. decryption + failure, or b) it fails to decode into an object. NOTE: unsafe deletion + ignores finalizer constraints, skips precondition checks, and removes the + object from the storage. WARNING: This may potentially break the cluster + if the workload associated with the resource being unsafe-deleted relies + on normal deletion flow. Use only if you REALLY know what you are doing. + The default value is false, and the user must opt in to enable it' + in: query + name: ignoreStoreReadErrorWithClusterBreakingPotential + schema: + type: boolean - description: A selector to restrict the list of returned objects by their labels. Defaults to everything. in: query @@ -60723,31 +65185,30 @@ paths: application/vnd.kubernetes.protobuf: schema: $ref: '#/components/schemas/v1.Status' + application/cbor: + schema: + $ref: '#/components/schemas/v1.Status' description: OK "401": content: {} description: Unauthorized tags: - - storage_v1 + - resource_v1alpha3 x-kubernetes-action: deletecollection x-kubernetes-group-version-kind: - group: storage.k8s.io - kind: CSIStorageCapacity - version: v1 + group: resource.k8s.io + kind: DeviceTaintRule + version: v1alpha3 x-codegen-request-body-name: body x-contentType: application/json x-accepts: application/json get: - description: list or watch objects of kind CSIStorageCapacity - operationId: listNamespacedCSIStorageCapacity + description: list or watch objects of kind DeviceTaintRule + operationId: listDeviceTaintRule parameters: - - description: object name and auth scope, such as for teams and projects - in: path - name: namespace - required: true - schema: - type: string - - description: If 'true', then the output is pretty printed. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -60841,42 +65302,44 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.CSIStorageCapacityList' + $ref: '#/components/schemas/v1alpha3.DeviceTaintRuleList' application/yaml: schema: - $ref: '#/components/schemas/v1.CSIStorageCapacityList' + $ref: '#/components/schemas/v1alpha3.DeviceTaintRuleList' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.CSIStorageCapacityList' + $ref: '#/components/schemas/v1alpha3.DeviceTaintRuleList' + application/cbor: + schema: + $ref: '#/components/schemas/v1alpha3.DeviceTaintRuleList' application/json;stream=watch: schema: - $ref: '#/components/schemas/v1.CSIStorageCapacityList' + $ref: '#/components/schemas/v1alpha3.DeviceTaintRuleList' application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: '#/components/schemas/v1.CSIStorageCapacityList' + $ref: '#/components/schemas/v1alpha3.DeviceTaintRuleList' + application/cbor-seq: + schema: + $ref: '#/components/schemas/v1alpha3.DeviceTaintRuleList' description: OK "401": content: {} description: Unauthorized tags: - - storage_v1 + - resource_v1alpha3 x-kubernetes-action: list x-kubernetes-group-version-kind: - group: storage.k8s.io - kind: CSIStorageCapacity - version: v1 + group: resource.k8s.io + kind: DeviceTaintRule + version: v1alpha3 x-accepts: application/json post: - description: create a CSIStorageCapacity - operationId: createNamespacedCSIStorageCapacity + description: create a DeviceTaintRule + operationId: createDeviceTaintRule parameters: - - description: object name and auth scope, such as for teams and projects - in: path - name: namespace - required: true - schema: - type: string - - description: If 'true', then the output is pretty printed. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -60917,76 +65380,81 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.CSIStorageCapacity' + $ref: '#/components/schemas/v1alpha3.DeviceTaintRule' required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.CSIStorageCapacity' + $ref: '#/components/schemas/v1alpha3.DeviceTaintRule' application/yaml: schema: - $ref: '#/components/schemas/v1.CSIStorageCapacity' + $ref: '#/components/schemas/v1alpha3.DeviceTaintRule' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.CSIStorageCapacity' + $ref: '#/components/schemas/v1alpha3.DeviceTaintRule' + application/cbor: + schema: + $ref: '#/components/schemas/v1alpha3.DeviceTaintRule' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.CSIStorageCapacity' + $ref: '#/components/schemas/v1alpha3.DeviceTaintRule' application/yaml: schema: - $ref: '#/components/schemas/v1.CSIStorageCapacity' + $ref: '#/components/schemas/v1alpha3.DeviceTaintRule' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.CSIStorageCapacity' + $ref: '#/components/schemas/v1alpha3.DeviceTaintRule' + application/cbor: + schema: + $ref: '#/components/schemas/v1alpha3.DeviceTaintRule' description: Created "202": content: application/json: schema: - $ref: '#/components/schemas/v1.CSIStorageCapacity' + $ref: '#/components/schemas/v1alpha3.DeviceTaintRule' application/yaml: schema: - $ref: '#/components/schemas/v1.CSIStorageCapacity' + $ref: '#/components/schemas/v1alpha3.DeviceTaintRule' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.CSIStorageCapacity' + $ref: '#/components/schemas/v1alpha3.DeviceTaintRule' + application/cbor: + schema: + $ref: '#/components/schemas/v1alpha3.DeviceTaintRule' description: Accepted "401": content: {} description: Unauthorized tags: - - storage_v1 + - resource_v1alpha3 x-kubernetes-action: post x-kubernetes-group-version-kind: - group: storage.k8s.io - kind: CSIStorageCapacity - version: v1 + group: resource.k8s.io + kind: DeviceTaintRule + version: v1alpha3 x-codegen-request-body-name: body x-contentType: application/json x-accepts: application/json - /apis/storage.k8s.io/v1/namespaces/{namespace}/csistoragecapacities/{name}: + /apis/resource.k8s.io/v1alpha3/devicetaintrules/{name}: delete: - description: delete a CSIStorageCapacity - operationId: deleteNamespacedCSIStorageCapacity + description: delete a DeviceTaintRule + operationId: deleteDeviceTaintRule parameters: - - description: name of the CSIStorageCapacity + - description: name of the DeviceTaintRule in: path name: name required: true schema: type: string - - description: object name and auth scope, such as for teams and projects - in: path - name: namespace - required: true - schema: - type: string - - description: If 'true', then the output is pretty printed. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -61008,6 +65476,20 @@ paths: name: gracePeriodSeconds schema: type: integer + - description: 'if set to true, it will trigger an unsafe deletion of the resource + in case the normal deletion flow fails with a corrupt object error. A resource + is considered corrupt if it can not be retrieved from the underlying storage + successfully because of a) its data can not be transformed e.g. decryption + failure, or b) it fails to decode into an object. NOTE: unsafe deletion + ignores finalizer constraints, skips precondition checks, and removes the + object from the storage. WARNING: This may potentially break the cluster + if the workload associated with the resource being unsafe-deleted relies + on normal deletion flow. Use only if you REALLY know what you are doing. + The default value is false, and the user must opt in to enable it' + in: query + name: ignoreStoreReadErrorWithClusterBreakingPotential + schema: + type: boolean - description: '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 @@ -61038,56 +65520,58 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.Status' + $ref: '#/components/schemas/v1alpha3.DeviceTaintRule' application/yaml: schema: - $ref: '#/components/schemas/v1.Status' + $ref: '#/components/schemas/v1alpha3.DeviceTaintRule' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Status' + $ref: '#/components/schemas/v1alpha3.DeviceTaintRule' + application/cbor: + schema: + $ref: '#/components/schemas/v1alpha3.DeviceTaintRule' description: OK "202": content: application/json: schema: - $ref: '#/components/schemas/v1.Status' + $ref: '#/components/schemas/v1alpha3.DeviceTaintRule' application/yaml: schema: - $ref: '#/components/schemas/v1.Status' + $ref: '#/components/schemas/v1alpha3.DeviceTaintRule' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Status' + $ref: '#/components/schemas/v1alpha3.DeviceTaintRule' + application/cbor: + schema: + $ref: '#/components/schemas/v1alpha3.DeviceTaintRule' description: Accepted "401": content: {} description: Unauthorized tags: - - storage_v1 + - resource_v1alpha3 x-kubernetes-action: delete x-kubernetes-group-version-kind: - group: storage.k8s.io - kind: CSIStorageCapacity - version: v1 + group: resource.k8s.io + kind: DeviceTaintRule + version: v1alpha3 x-codegen-request-body-name: body x-contentType: application/json x-accepts: application/json get: - description: read the specified CSIStorageCapacity - operationId: readNamespacedCSIStorageCapacity + description: read the specified DeviceTaintRule + operationId: readDeviceTaintRule parameters: - - description: name of the CSIStorageCapacity + - description: name of the DeviceTaintRule in: path name: name required: true schema: type: string - - description: object name and auth scope, such as for teams and projects - in: path - name: namespace - required: true - schema: - type: string - - description: If 'true', then the output is pretty printed. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -61097,42 +65581,41 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.CSIStorageCapacity' + $ref: '#/components/schemas/v1alpha3.DeviceTaintRule' application/yaml: schema: - $ref: '#/components/schemas/v1.CSIStorageCapacity' + $ref: '#/components/schemas/v1alpha3.DeviceTaintRule' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.CSIStorageCapacity' + $ref: '#/components/schemas/v1alpha3.DeviceTaintRule' + application/cbor: + schema: + $ref: '#/components/schemas/v1alpha3.DeviceTaintRule' description: OK "401": content: {} description: Unauthorized tags: - - storage_v1 + - resource_v1alpha3 x-kubernetes-action: get x-kubernetes-group-version-kind: - group: storage.k8s.io - kind: CSIStorageCapacity - version: v1 + group: resource.k8s.io + kind: DeviceTaintRule + version: v1alpha3 x-accepts: application/json patch: - description: partially update the specified CSIStorageCapacity - operationId: patchNamespacedCSIStorageCapacity + description: partially update the specified DeviceTaintRule + operationId: patchDeviceTaintRule parameters: - - description: name of the CSIStorageCapacity + - description: name of the DeviceTaintRule in: path name: name required: true schema: type: string - - description: object name and auth scope, such as for teams and projects - in: path - name: namespace - required: true - schema: - type: string - - description: If 'true', then the output is pretty printed. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -61189,56 +65672,58 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.CSIStorageCapacity' + $ref: '#/components/schemas/v1alpha3.DeviceTaintRule' application/yaml: schema: - $ref: '#/components/schemas/v1.CSIStorageCapacity' + $ref: '#/components/schemas/v1alpha3.DeviceTaintRule' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.CSIStorageCapacity' + $ref: '#/components/schemas/v1alpha3.DeviceTaintRule' + application/cbor: + schema: + $ref: '#/components/schemas/v1alpha3.DeviceTaintRule' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.CSIStorageCapacity' + $ref: '#/components/schemas/v1alpha3.DeviceTaintRule' application/yaml: schema: - $ref: '#/components/schemas/v1.CSIStorageCapacity' + $ref: '#/components/schemas/v1alpha3.DeviceTaintRule' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.CSIStorageCapacity' + $ref: '#/components/schemas/v1alpha3.DeviceTaintRule' + application/cbor: + schema: + $ref: '#/components/schemas/v1alpha3.DeviceTaintRule' description: Created "401": content: {} description: Unauthorized tags: - - storage_v1 + - resource_v1alpha3 x-kubernetes-action: patch x-kubernetes-group-version-kind: - group: storage.k8s.io - kind: CSIStorageCapacity - version: v1 + group: resource.k8s.io + kind: DeviceTaintRule + version: v1alpha3 x-codegen-request-body-name: body x-contentType: application/json x-accepts: application/json put: - description: replace the specified CSIStorageCapacity - operationId: replaceNamespacedCSIStorageCapacity + description: replace the specified DeviceTaintRule + operationId: replaceDeviceTaintRule parameters: - - description: name of the CSIStorageCapacity + - description: name of the DeviceTaintRule in: path name: name required: true schema: type: string - - description: object name and auth scope, such as for teams and projects - in: path - name: namespace - required: true - schema: - type: string - - description: If 'true', then the output is pretty printed. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -61279,52 +65764,66 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.CSIStorageCapacity' + $ref: '#/components/schemas/v1alpha3.DeviceTaintRule' required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.CSIStorageCapacity' + $ref: '#/components/schemas/v1alpha3.DeviceTaintRule' application/yaml: schema: - $ref: '#/components/schemas/v1.CSIStorageCapacity' + $ref: '#/components/schemas/v1alpha3.DeviceTaintRule' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.CSIStorageCapacity' + $ref: '#/components/schemas/v1alpha3.DeviceTaintRule' + application/cbor: + schema: + $ref: '#/components/schemas/v1alpha3.DeviceTaintRule' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.CSIStorageCapacity' + $ref: '#/components/schemas/v1alpha3.DeviceTaintRule' application/yaml: schema: - $ref: '#/components/schemas/v1.CSIStorageCapacity' + $ref: '#/components/schemas/v1alpha3.DeviceTaintRule' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.CSIStorageCapacity' + $ref: '#/components/schemas/v1alpha3.DeviceTaintRule' + application/cbor: + schema: + $ref: '#/components/schemas/v1alpha3.DeviceTaintRule' description: Created "401": content: {} description: Unauthorized tags: - - storage_v1 + - resource_v1alpha3 x-kubernetes-action: put x-kubernetes-group-version-kind: - group: storage.k8s.io - kind: CSIStorageCapacity - version: v1 + group: resource.k8s.io + kind: DeviceTaintRule + version: v1alpha3 x-codegen-request-body-name: body x-contentType: application/json x-accepts: application/json - /apis/storage.k8s.io/v1/storageclasses: + /apis/resource.k8s.io/v1alpha3/namespaces/{namespace}/resourceclaims: delete: - description: delete collection of StorageClass - operationId: deleteCollectionStorageClass + description: delete collection of ResourceClaim + operationId: deleteCollectionNamespacedResourceClaim parameters: - - description: If 'true', then the output is pretty printed. + - description: object name and auth scope, such as for teams and projects + in: path + name: namespace + required: true + schema: + type: string + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -61360,6 +65859,20 @@ paths: name: gracePeriodSeconds schema: type: integer + - description: 'if set to true, it will trigger an unsafe deletion of the resource + in case the normal deletion flow fails with a corrupt object error. A resource + is considered corrupt if it can not be retrieved from the underlying storage + successfully because of a) its data can not be transformed e.g. decryption + failure, or b) it fails to decode into an object. NOTE: unsafe deletion + ignores finalizer constraints, skips precondition checks, and removes the + object from the storage. WARNING: This may potentially break the cluster + if the workload associated with the resource being unsafe-deleted relies + on normal deletion flow. Use only if you REALLY know what you are doing. + The default value is false, and the user must opt in to enable it' + in: query + name: ignoreStoreReadErrorWithClusterBreakingPotential + schema: + type: boolean - description: A selector to restrict the list of returned objects by their labels. Defaults to everything. in: query @@ -61451,25 +65964,36 @@ paths: application/vnd.kubernetes.protobuf: schema: $ref: '#/components/schemas/v1.Status' + application/cbor: + schema: + $ref: '#/components/schemas/v1.Status' description: OK "401": content: {} description: Unauthorized tags: - - storage_v1 + - resource_v1alpha3 x-kubernetes-action: deletecollection x-kubernetes-group-version-kind: - group: storage.k8s.io - kind: StorageClass - version: v1 + group: resource.k8s.io + kind: ResourceClaim + version: v1alpha3 x-codegen-request-body-name: body x-contentType: application/json x-accepts: application/json get: - description: list or watch objects of kind StorageClass - operationId: listStorageClass + description: list or watch objects of kind ResourceClaim + operationId: listNamespacedResourceClaim parameters: - - description: If 'true', then the output is pretty printed. + - description: object name and auth scope, such as for teams and projects + in: path + name: namespace + required: true + schema: + type: string + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -61563,36 +66087,50 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.StorageClassList' + $ref: '#/components/schemas/v1alpha3.ResourceClaimList' application/yaml: schema: - $ref: '#/components/schemas/v1.StorageClassList' + $ref: '#/components/schemas/v1alpha3.ResourceClaimList' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.StorageClassList' + $ref: '#/components/schemas/v1alpha3.ResourceClaimList' + application/cbor: + schema: + $ref: '#/components/schemas/v1alpha3.ResourceClaimList' application/json;stream=watch: schema: - $ref: '#/components/schemas/v1.StorageClassList' + $ref: '#/components/schemas/v1alpha3.ResourceClaimList' application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: '#/components/schemas/v1.StorageClassList' + $ref: '#/components/schemas/v1alpha3.ResourceClaimList' + application/cbor-seq: + schema: + $ref: '#/components/schemas/v1alpha3.ResourceClaimList' description: OK "401": content: {} description: Unauthorized tags: - - storage_v1 + - resource_v1alpha3 x-kubernetes-action: list x-kubernetes-group-version-kind: - group: storage.k8s.io - kind: StorageClass - version: v1 + group: resource.k8s.io + kind: ResourceClaim + version: v1alpha3 x-accepts: application/json post: - description: create a StorageClass - operationId: createStorageClass + description: create a ResourceClaim + operationId: createNamespacedResourceClaim parameters: - - description: If 'true', then the output is pretty printed. + - description: object name and auth scope, such as for teams and projects + in: path + name: namespace + required: true + schema: + type: string + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -61633,70 +66171,87 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.StorageClass' + $ref: '#/components/schemas/v1alpha3.ResourceClaim' required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.StorageClass' + $ref: '#/components/schemas/v1alpha3.ResourceClaim' application/yaml: schema: - $ref: '#/components/schemas/v1.StorageClass' + $ref: '#/components/schemas/v1alpha3.ResourceClaim' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.StorageClass' + $ref: '#/components/schemas/v1alpha3.ResourceClaim' + application/cbor: + schema: + $ref: '#/components/schemas/v1alpha3.ResourceClaim' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.StorageClass' + $ref: '#/components/schemas/v1alpha3.ResourceClaim' application/yaml: schema: - $ref: '#/components/schemas/v1.StorageClass' + $ref: '#/components/schemas/v1alpha3.ResourceClaim' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.StorageClass' + $ref: '#/components/schemas/v1alpha3.ResourceClaim' + application/cbor: + schema: + $ref: '#/components/schemas/v1alpha3.ResourceClaim' description: Created "202": content: application/json: schema: - $ref: '#/components/schemas/v1.StorageClass' + $ref: '#/components/schemas/v1alpha3.ResourceClaim' application/yaml: schema: - $ref: '#/components/schemas/v1.StorageClass' + $ref: '#/components/schemas/v1alpha3.ResourceClaim' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.StorageClass' + $ref: '#/components/schemas/v1alpha3.ResourceClaim' + application/cbor: + schema: + $ref: '#/components/schemas/v1alpha3.ResourceClaim' description: Accepted "401": content: {} description: Unauthorized tags: - - storage_v1 + - resource_v1alpha3 x-kubernetes-action: post x-kubernetes-group-version-kind: - group: storage.k8s.io - kind: StorageClass - version: v1 + group: resource.k8s.io + kind: ResourceClaim + version: v1alpha3 x-codegen-request-body-name: body x-contentType: application/json x-accepts: application/json - /apis/storage.k8s.io/v1/storageclasses/{name}: + /apis/resource.k8s.io/v1alpha3/namespaces/{namespace}/resourceclaims/{name}: delete: - description: delete a StorageClass - operationId: deleteStorageClass + description: delete a ResourceClaim + operationId: deleteNamespacedResourceClaim parameters: - - description: name of the StorageClass + - description: name of the ResourceClaim in: path name: name required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: object name and auth scope, such as for teams and projects + in: path + name: namespace + required: true + schema: + type: string + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -61718,6 +66273,20 @@ paths: name: gracePeriodSeconds schema: type: integer + - description: 'if set to true, it will trigger an unsafe deletion of the resource + in case the normal deletion flow fails with a corrupt object error. A resource + is considered corrupt if it can not be retrieved from the underlying storage + successfully because of a) its data can not be transformed e.g. decryption + failure, or b) it fails to decode into an object. NOTE: unsafe deletion + ignores finalizer constraints, skips precondition checks, and removes the + object from the storage. WARNING: This may potentially break the cluster + if the workload associated with the resource being unsafe-deleted relies + on normal deletion flow. Use only if you REALLY know what you are doing. + The default value is false, and the user must opt in to enable it' + in: query + name: ignoreStoreReadErrorWithClusterBreakingPotential + schema: + type: boolean - description: '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 @@ -61748,50 +66317,64 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.StorageClass' + $ref: '#/components/schemas/v1alpha3.ResourceClaim' application/yaml: schema: - $ref: '#/components/schemas/v1.StorageClass' + $ref: '#/components/schemas/v1alpha3.ResourceClaim' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.StorageClass' + $ref: '#/components/schemas/v1alpha3.ResourceClaim' + application/cbor: + schema: + $ref: '#/components/schemas/v1alpha3.ResourceClaim' description: OK "202": content: application/json: schema: - $ref: '#/components/schemas/v1.StorageClass' + $ref: '#/components/schemas/v1alpha3.ResourceClaim' application/yaml: schema: - $ref: '#/components/schemas/v1.StorageClass' + $ref: '#/components/schemas/v1alpha3.ResourceClaim' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.StorageClass' + $ref: '#/components/schemas/v1alpha3.ResourceClaim' + application/cbor: + schema: + $ref: '#/components/schemas/v1alpha3.ResourceClaim' description: Accepted "401": content: {} description: Unauthorized tags: - - storage_v1 + - resource_v1alpha3 x-kubernetes-action: delete x-kubernetes-group-version-kind: - group: storage.k8s.io - kind: StorageClass - version: v1 + group: resource.k8s.io + kind: ResourceClaim + version: v1alpha3 x-codegen-request-body-name: body x-contentType: application/json x-accepts: application/json get: - description: read the specified StorageClass - operationId: readStorageClass + description: read the specified ResourceClaim + operationId: readNamespacedResourceClaim parameters: - - description: name of the StorageClass + - description: name of the ResourceClaim in: path name: name required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: object name and auth scope, such as for teams and projects + in: path + name: namespace + required: true + schema: + type: string + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -61801,136 +66384,47 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.StorageClass' + $ref: '#/components/schemas/v1alpha3.ResourceClaim' application/yaml: schema: - $ref: '#/components/schemas/v1.StorageClass' + $ref: '#/components/schemas/v1alpha3.ResourceClaim' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.StorageClass' + $ref: '#/components/schemas/v1alpha3.ResourceClaim' + application/cbor: + schema: + $ref: '#/components/schemas/v1alpha3.ResourceClaim' description: OK "401": content: {} description: Unauthorized tags: - - storage_v1 + - resource_v1alpha3 x-kubernetes-action: get x-kubernetes-group-version-kind: - group: storage.k8s.io - kind: StorageClass - version: v1 + group: resource.k8s.io + kind: ResourceClaim + version: v1alpha3 x-accepts: application/json patch: - description: partially update the specified StorageClass - operationId: patchStorageClass + description: partially update the specified ResourceClaim + operationId: patchNamespacedResourceClaim parameters: - - description: name of the StorageClass + - description: name of the ResourceClaim in: path name: name required: true schema: type: string - - description: If 'true', then the output is pretty printed. - in: query - name: pretty - schema: - type: string - - description: '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' - in: query - name: dryRun - schema: - type: string - - description: fieldManager is a name associated with the actor or entity that - is making these changes. The value must be less than or 128 characters long, - and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - This field is required for apply requests (application/apply-patch) but - optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). - in: query - name: fieldManager - schema: - type: string - - description: 'fieldValidation instructs the server on how to handle objects - in the request (POST/PUT/PATCH) containing unknown or duplicate fields. - Valid values are: - Ignore: This will ignore any unknown fields that are - silently dropped from the object, and will ignore all but the last duplicate - field that the decoder encounters. This is the default behavior prior to - v1.23. - Warn: This will send a warning via the standard warning response - header for each unknown field that is dropped from the object, and for each - duplicate field that is encountered. The request will still succeed if there - are no other errors, and will only persist the last of any duplicate fields. - This is the default in v1.23+ - Strict: This will fail the request with - a BadRequest error if any unknown fields would be dropped from the object, - or if any duplicate fields are present. The error returned from the server - will contain all unknown and duplicate fields encountered.' - in: query - name: fieldValidation - schema: - type: string - - description: Force is going to "force" Apply requests. It means user will - re-acquire conflicting fields owned by other people. Force flag must be - unset for non-apply patch requests. - in: query - name: force - schema: - type: boolean - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/v1.Patch' - required: true - responses: - "200": - content: - application/json: - schema: - $ref: '#/components/schemas/v1.StorageClass' - application/yaml: - schema: - $ref: '#/components/schemas/v1.StorageClass' - application/vnd.kubernetes.protobuf: - schema: - $ref: '#/components/schemas/v1.StorageClass' - description: OK - "201": - content: - application/json: - schema: - $ref: '#/components/schemas/v1.StorageClass' - application/yaml: - schema: - $ref: '#/components/schemas/v1.StorageClass' - application/vnd.kubernetes.protobuf: - schema: - $ref: '#/components/schemas/v1.StorageClass' - description: Created - "401": - content: {} - description: Unauthorized - tags: - - storage_v1 - x-kubernetes-action: patch - x-kubernetes-group-version-kind: - group: storage.k8s.io - kind: StorageClass - version: v1 - x-codegen-request-body-name: body - x-contentType: application/json - x-accepts: application/json - put: - description: replace the specified StorageClass - operationId: replaceStorageClass - parameters: - - description: name of the StorageClass + - description: object name and auth scope, such as for teams and projects in: path - name: name + name: namespace required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -61946,6 +66440,8 @@ paths: - description: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + This field is required for apply requests (application/apply-patch) but + optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). in: query name: fieldManager schema: @@ -61967,56 +66463,452 @@ paths: name: fieldValidation schema: type: string + - description: Force is going to "force" Apply requests. It means user will + re-acquire conflicting fields owned by other people. Force flag must be + unset for non-apply patch requests. + in: query + name: force + schema: + type: boolean requestBody: content: application/json: schema: - $ref: '#/components/schemas/v1.StorageClass' + $ref: '#/components/schemas/v1.Patch' required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.StorageClass' + $ref: '#/components/schemas/v1alpha3.ResourceClaim' application/yaml: schema: - $ref: '#/components/schemas/v1.StorageClass' + $ref: '#/components/schemas/v1alpha3.ResourceClaim' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.StorageClass' + $ref: '#/components/schemas/v1alpha3.ResourceClaim' + application/cbor: + schema: + $ref: '#/components/schemas/v1alpha3.ResourceClaim' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.StorageClass' + $ref: '#/components/schemas/v1alpha3.ResourceClaim' application/yaml: schema: - $ref: '#/components/schemas/v1.StorageClass' + $ref: '#/components/schemas/v1alpha3.ResourceClaim' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.StorageClass' + $ref: '#/components/schemas/v1alpha3.ResourceClaim' + application/cbor: + schema: + $ref: '#/components/schemas/v1alpha3.ResourceClaim' description: Created "401": content: {} description: Unauthorized tags: - - storage_v1 + - resource_v1alpha3 + x-kubernetes-action: patch + x-kubernetes-group-version-kind: + group: resource.k8s.io + kind: ResourceClaim + version: v1alpha3 + x-codegen-request-body-name: body + x-contentType: application/json + x-accepts: application/json + put: + description: replace the specified ResourceClaim + operationId: replaceNamespacedResourceClaim + parameters: + - description: name of the ResourceClaim + in: path + name: name + required: true + schema: + type: string + - description: object name and auth scope, such as for teams and projects + in: path + name: namespace + required: true + schema: + type: string + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). + in: query + name: pretty + schema: + type: string + - description: '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' + in: query + name: dryRun + schema: + type: string + - description: fieldManager is a name associated with the actor or entity that + is making these changes. The value must be less than or 128 characters long, + and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + in: query + name: fieldManager + schema: + type: string + - description: 'fieldValidation instructs the server on how to handle objects + in the request (POST/PUT/PATCH) containing unknown or duplicate fields. + Valid values are: - Ignore: This will ignore any unknown fields that are + silently dropped from the object, and will ignore all but the last duplicate + field that the decoder encounters. This is the default behavior prior to + v1.23. - Warn: This will send a warning via the standard warning response + header for each unknown field that is dropped from the object, and for each + duplicate field that is encountered. The request will still succeed if there + are no other errors, and will only persist the last of any duplicate fields. + This is the default in v1.23+ - Strict: This will fail the request with + a BadRequest error if any unknown fields would be dropped from the object, + or if any duplicate fields are present. The error returned from the server + will contain all unknown and duplicate fields encountered.' + in: query + name: fieldValidation + schema: + type: string + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/v1alpha3.ResourceClaim' + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1alpha3.ResourceClaim' + application/yaml: + schema: + $ref: '#/components/schemas/v1alpha3.ResourceClaim' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1alpha3.ResourceClaim' + application/cbor: + schema: + $ref: '#/components/schemas/v1alpha3.ResourceClaim' + description: OK + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/v1alpha3.ResourceClaim' + application/yaml: + schema: + $ref: '#/components/schemas/v1alpha3.ResourceClaim' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1alpha3.ResourceClaim' + application/cbor: + schema: + $ref: '#/components/schemas/v1alpha3.ResourceClaim' + description: Created + "401": + content: {} + description: Unauthorized + tags: + - resource_v1alpha3 x-kubernetes-action: put x-kubernetes-group-version-kind: - group: storage.k8s.io - kind: StorageClass - version: v1 + group: resource.k8s.io + kind: ResourceClaim + version: v1alpha3 x-codegen-request-body-name: body x-contentType: application/json x-accepts: application/json - /apis/storage.k8s.io/v1/volumeattachments: + /apis/resource.k8s.io/v1alpha3/namespaces/{namespace}/resourceclaims/{name}/status: + get: + description: read status of the specified ResourceClaim + operationId: readNamespacedResourceClaimStatus + parameters: + - description: name of the ResourceClaim + in: path + name: name + required: true + schema: + type: string + - description: object name and auth scope, such as for teams and projects + in: path + name: namespace + required: true + schema: + type: string + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). + in: query + name: pretty + schema: + type: string + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1alpha3.ResourceClaim' + application/yaml: + schema: + $ref: '#/components/schemas/v1alpha3.ResourceClaim' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1alpha3.ResourceClaim' + application/cbor: + schema: + $ref: '#/components/schemas/v1alpha3.ResourceClaim' + description: OK + "401": + content: {} + description: Unauthorized + tags: + - resource_v1alpha3 + x-kubernetes-action: get + x-kubernetes-group-version-kind: + group: resource.k8s.io + kind: ResourceClaim + version: v1alpha3 + x-accepts: application/json + patch: + description: partially update status of the specified ResourceClaim + operationId: patchNamespacedResourceClaimStatus + parameters: + - description: name of the ResourceClaim + in: path + name: name + required: true + schema: + type: string + - description: object name and auth scope, such as for teams and projects + in: path + name: namespace + required: true + schema: + type: string + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). + in: query + name: pretty + schema: + type: string + - description: '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' + in: query + name: dryRun + schema: + type: string + - description: fieldManager is a name associated with the actor or entity that + is making these changes. The value must be less than or 128 characters long, + and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + This field is required for apply requests (application/apply-patch) but + optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). + in: query + name: fieldManager + schema: + type: string + - description: 'fieldValidation instructs the server on how to handle objects + in the request (POST/PUT/PATCH) containing unknown or duplicate fields. + Valid values are: - Ignore: This will ignore any unknown fields that are + silently dropped from the object, and will ignore all but the last duplicate + field that the decoder encounters. This is the default behavior prior to + v1.23. - Warn: This will send a warning via the standard warning response + header for each unknown field that is dropped from the object, and for each + duplicate field that is encountered. The request will still succeed if there + are no other errors, and will only persist the last of any duplicate fields. + This is the default in v1.23+ - Strict: This will fail the request with + a BadRequest error if any unknown fields would be dropped from the object, + or if any duplicate fields are present. The error returned from the server + will contain all unknown and duplicate fields encountered.' + in: query + name: fieldValidation + schema: + type: string + - description: Force is going to "force" Apply requests. It means user will + re-acquire conflicting fields owned by other people. Force flag must be + unset for non-apply patch requests. + in: query + name: force + schema: + type: boolean + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/v1.Patch' + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1alpha3.ResourceClaim' + application/yaml: + schema: + $ref: '#/components/schemas/v1alpha3.ResourceClaim' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1alpha3.ResourceClaim' + application/cbor: + schema: + $ref: '#/components/schemas/v1alpha3.ResourceClaim' + description: OK + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/v1alpha3.ResourceClaim' + application/yaml: + schema: + $ref: '#/components/schemas/v1alpha3.ResourceClaim' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1alpha3.ResourceClaim' + application/cbor: + schema: + $ref: '#/components/schemas/v1alpha3.ResourceClaim' + description: Created + "401": + content: {} + description: Unauthorized + tags: + - resource_v1alpha3 + x-kubernetes-action: patch + x-kubernetes-group-version-kind: + group: resource.k8s.io + kind: ResourceClaim + version: v1alpha3 + x-codegen-request-body-name: body + x-contentType: application/json + x-accepts: application/json + put: + description: replace status of the specified ResourceClaim + operationId: replaceNamespacedResourceClaimStatus + parameters: + - description: name of the ResourceClaim + in: path + name: name + required: true + schema: + type: string + - description: object name and auth scope, such as for teams and projects + in: path + name: namespace + required: true + schema: + type: string + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). + in: query + name: pretty + schema: + type: string + - description: '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' + in: query + name: dryRun + schema: + type: string + - description: fieldManager is a name associated with the actor or entity that + is making these changes. The value must be less than or 128 characters long, + and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + in: query + name: fieldManager + schema: + type: string + - description: 'fieldValidation instructs the server on how to handle objects + in the request (POST/PUT/PATCH) containing unknown or duplicate fields. + Valid values are: - Ignore: This will ignore any unknown fields that are + silently dropped from the object, and will ignore all but the last duplicate + field that the decoder encounters. This is the default behavior prior to + v1.23. - Warn: This will send a warning via the standard warning response + header for each unknown field that is dropped from the object, and for each + duplicate field that is encountered. The request will still succeed if there + are no other errors, and will only persist the last of any duplicate fields. + This is the default in v1.23+ - Strict: This will fail the request with + a BadRequest error if any unknown fields would be dropped from the object, + or if any duplicate fields are present. The error returned from the server + will contain all unknown and duplicate fields encountered.' + in: query + name: fieldValidation + schema: + type: string + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/v1alpha3.ResourceClaim' + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1alpha3.ResourceClaim' + application/yaml: + schema: + $ref: '#/components/schemas/v1alpha3.ResourceClaim' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1alpha3.ResourceClaim' + application/cbor: + schema: + $ref: '#/components/schemas/v1alpha3.ResourceClaim' + description: OK + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/v1alpha3.ResourceClaim' + application/yaml: + schema: + $ref: '#/components/schemas/v1alpha3.ResourceClaim' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1alpha3.ResourceClaim' + application/cbor: + schema: + $ref: '#/components/schemas/v1alpha3.ResourceClaim' + description: Created + "401": + content: {} + description: Unauthorized + tags: + - resource_v1alpha3 + x-kubernetes-action: put + x-kubernetes-group-version-kind: + group: resource.k8s.io + kind: ResourceClaim + version: v1alpha3 + x-codegen-request-body-name: body + x-contentType: application/json + x-accepts: application/json + /apis/resource.k8s.io/v1alpha3/namespaces/{namespace}/resourceclaimtemplates: delete: - description: delete collection of VolumeAttachment - operationId: deleteCollectionVolumeAttachment + description: delete collection of ResourceClaimTemplate + operationId: deleteCollectionNamespacedResourceClaimTemplate parameters: - - description: If 'true', then the output is pretty printed. + - description: object name and auth scope, such as for teams and projects + in: path + name: namespace + required: true + schema: + type: string + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -62052,6 +66944,20 @@ paths: name: gracePeriodSeconds schema: type: integer + - description: 'if set to true, it will trigger an unsafe deletion of the resource + in case the normal deletion flow fails with a corrupt object error. A resource + is considered corrupt if it can not be retrieved from the underlying storage + successfully because of a) its data can not be transformed e.g. decryption + failure, or b) it fails to decode into an object. NOTE: unsafe deletion + ignores finalizer constraints, skips precondition checks, and removes the + object from the storage. WARNING: This may potentially break the cluster + if the workload associated with the resource being unsafe-deleted relies + on normal deletion flow. Use only if you REALLY know what you are doing. + The default value is false, and the user must opt in to enable it' + in: query + name: ignoreStoreReadErrorWithClusterBreakingPotential + schema: + type: boolean - description: A selector to restrict the list of returned objects by their labels. Defaults to everything. in: query @@ -62143,25 +67049,36 @@ paths: application/vnd.kubernetes.protobuf: schema: $ref: '#/components/schemas/v1.Status' + application/cbor: + schema: + $ref: '#/components/schemas/v1.Status' description: OK "401": content: {} description: Unauthorized tags: - - storage_v1 + - resource_v1alpha3 x-kubernetes-action: deletecollection x-kubernetes-group-version-kind: - group: storage.k8s.io - kind: VolumeAttachment - version: v1 + group: resource.k8s.io + kind: ResourceClaimTemplate + version: v1alpha3 x-codegen-request-body-name: body x-contentType: application/json x-accepts: application/json get: - description: list or watch objects of kind VolumeAttachment - operationId: listVolumeAttachment + description: list or watch objects of kind ResourceClaimTemplate + operationId: listNamespacedResourceClaimTemplate parameters: - - description: If 'true', then the output is pretty printed. + - description: object name and auth scope, such as for teams and projects + in: path + name: namespace + required: true + schema: + type: string + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -62255,36 +67172,50 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.VolumeAttachmentList' + $ref: '#/components/schemas/v1alpha3.ResourceClaimTemplateList' application/yaml: schema: - $ref: '#/components/schemas/v1.VolumeAttachmentList' + $ref: '#/components/schemas/v1alpha3.ResourceClaimTemplateList' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.VolumeAttachmentList' + $ref: '#/components/schemas/v1alpha3.ResourceClaimTemplateList' + application/cbor: + schema: + $ref: '#/components/schemas/v1alpha3.ResourceClaimTemplateList' application/json;stream=watch: schema: - $ref: '#/components/schemas/v1.VolumeAttachmentList' + $ref: '#/components/schemas/v1alpha3.ResourceClaimTemplateList' application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: '#/components/schemas/v1.VolumeAttachmentList' + $ref: '#/components/schemas/v1alpha3.ResourceClaimTemplateList' + application/cbor-seq: + schema: + $ref: '#/components/schemas/v1alpha3.ResourceClaimTemplateList' description: OK "401": content: {} description: Unauthorized tags: - - storage_v1 + - resource_v1alpha3 x-kubernetes-action: list x-kubernetes-group-version-kind: - group: storage.k8s.io - kind: VolumeAttachment - version: v1 + group: resource.k8s.io + kind: ResourceClaimTemplate + version: v1alpha3 x-accepts: application/json post: - description: create a VolumeAttachment - operationId: createVolumeAttachment + description: create a ResourceClaimTemplate + operationId: createNamespacedResourceClaimTemplate parameters: - - description: If 'true', then the output is pretty printed. + - description: object name and auth scope, such as for teams and projects + in: path + name: namespace + required: true + schema: + type: string + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -62325,70 +67256,87 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.VolumeAttachment' + $ref: '#/components/schemas/v1alpha3.ResourceClaimTemplate' required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.VolumeAttachment' + $ref: '#/components/schemas/v1alpha3.ResourceClaimTemplate' application/yaml: schema: - $ref: '#/components/schemas/v1.VolumeAttachment' + $ref: '#/components/schemas/v1alpha3.ResourceClaimTemplate' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.VolumeAttachment' + $ref: '#/components/schemas/v1alpha3.ResourceClaimTemplate' + application/cbor: + schema: + $ref: '#/components/schemas/v1alpha3.ResourceClaimTemplate' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.VolumeAttachment' + $ref: '#/components/schemas/v1alpha3.ResourceClaimTemplate' application/yaml: schema: - $ref: '#/components/schemas/v1.VolumeAttachment' + $ref: '#/components/schemas/v1alpha3.ResourceClaimTemplate' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.VolumeAttachment' + $ref: '#/components/schemas/v1alpha3.ResourceClaimTemplate' + application/cbor: + schema: + $ref: '#/components/schemas/v1alpha3.ResourceClaimTemplate' description: Created "202": content: application/json: schema: - $ref: '#/components/schemas/v1.VolumeAttachment' + $ref: '#/components/schemas/v1alpha3.ResourceClaimTemplate' application/yaml: schema: - $ref: '#/components/schemas/v1.VolumeAttachment' + $ref: '#/components/schemas/v1alpha3.ResourceClaimTemplate' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.VolumeAttachment' + $ref: '#/components/schemas/v1alpha3.ResourceClaimTemplate' + application/cbor: + schema: + $ref: '#/components/schemas/v1alpha3.ResourceClaimTemplate' description: Accepted "401": content: {} description: Unauthorized tags: - - storage_v1 + - resource_v1alpha3 x-kubernetes-action: post x-kubernetes-group-version-kind: - group: storage.k8s.io - kind: VolumeAttachment - version: v1 + group: resource.k8s.io + kind: ResourceClaimTemplate + version: v1alpha3 x-codegen-request-body-name: body x-contentType: application/json x-accepts: application/json - /apis/storage.k8s.io/v1/volumeattachments/{name}: + /apis/resource.k8s.io/v1alpha3/namespaces/{namespace}/resourceclaimtemplates/{name}: delete: - description: delete a VolumeAttachment - operationId: deleteVolumeAttachment + description: delete a ResourceClaimTemplate + operationId: deleteNamespacedResourceClaimTemplate parameters: - - description: name of the VolumeAttachment + - description: name of the ResourceClaimTemplate in: path name: name required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: object name and auth scope, such as for teams and projects + in: path + name: namespace + required: true + schema: + type: string + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -62410,6 +67358,20 @@ paths: name: gracePeriodSeconds schema: type: integer + - description: 'if set to true, it will trigger an unsafe deletion of the resource + in case the normal deletion flow fails with a corrupt object error. A resource + is considered corrupt if it can not be retrieved from the underlying storage + successfully because of a) its data can not be transformed e.g. decryption + failure, or b) it fails to decode into an object. NOTE: unsafe deletion + ignores finalizer constraints, skips precondition checks, and removes the + object from the storage. WARNING: This may potentially break the cluster + if the workload associated with the resource being unsafe-deleted relies + on normal deletion flow. Use only if you REALLY know what you are doing. + The default value is false, and the user must opt in to enable it' + in: query + name: ignoreStoreReadErrorWithClusterBreakingPotential + schema: + type: boolean - description: '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 @@ -62440,50 +67402,64 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.VolumeAttachment' + $ref: '#/components/schemas/v1alpha3.ResourceClaimTemplate' application/yaml: schema: - $ref: '#/components/schemas/v1.VolumeAttachment' + $ref: '#/components/schemas/v1alpha3.ResourceClaimTemplate' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.VolumeAttachment' + $ref: '#/components/schemas/v1alpha3.ResourceClaimTemplate' + application/cbor: + schema: + $ref: '#/components/schemas/v1alpha3.ResourceClaimTemplate' description: OK "202": content: application/json: schema: - $ref: '#/components/schemas/v1.VolumeAttachment' + $ref: '#/components/schemas/v1alpha3.ResourceClaimTemplate' application/yaml: schema: - $ref: '#/components/schemas/v1.VolumeAttachment' + $ref: '#/components/schemas/v1alpha3.ResourceClaimTemplate' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.VolumeAttachment' + $ref: '#/components/schemas/v1alpha3.ResourceClaimTemplate' + application/cbor: + schema: + $ref: '#/components/schemas/v1alpha3.ResourceClaimTemplate' description: Accepted "401": content: {} description: Unauthorized tags: - - storage_v1 + - resource_v1alpha3 x-kubernetes-action: delete x-kubernetes-group-version-kind: - group: storage.k8s.io - kind: VolumeAttachment - version: v1 + group: resource.k8s.io + kind: ResourceClaimTemplate + version: v1alpha3 x-codegen-request-body-name: body x-contentType: application/json x-accepts: application/json get: - description: read the specified VolumeAttachment - operationId: readVolumeAttachment + description: read the specified ResourceClaimTemplate + operationId: readNamespacedResourceClaimTemplate parameters: - - description: name of the VolumeAttachment + - description: name of the ResourceClaimTemplate in: path name: name required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: object name and auth scope, such as for teams and projects + in: path + name: namespace + required: true + schema: + type: string + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -62493,36 +67469,47 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.VolumeAttachment' + $ref: '#/components/schemas/v1alpha3.ResourceClaimTemplate' application/yaml: schema: - $ref: '#/components/schemas/v1.VolumeAttachment' + $ref: '#/components/schemas/v1alpha3.ResourceClaimTemplate' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.VolumeAttachment' + $ref: '#/components/schemas/v1alpha3.ResourceClaimTemplate' + application/cbor: + schema: + $ref: '#/components/schemas/v1alpha3.ResourceClaimTemplate' description: OK "401": content: {} description: Unauthorized tags: - - storage_v1 + - resource_v1alpha3 x-kubernetes-action: get x-kubernetes-group-version-kind: - group: storage.k8s.io - kind: VolumeAttachment - version: v1 + group: resource.k8s.io + kind: ResourceClaimTemplate + version: v1alpha3 x-accepts: application/json patch: - description: partially update the specified VolumeAttachment - operationId: patchVolumeAttachment + description: partially update the specified ResourceClaimTemplate + operationId: patchNamespacedResourceClaimTemplate parameters: - - description: name of the VolumeAttachment + - description: name of the ResourceClaimTemplate in: path name: name required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: object name and auth scope, such as for teams and projects + in: path + name: namespace + required: true + schema: + type: string + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -62579,50 +67566,64 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.VolumeAttachment' + $ref: '#/components/schemas/v1alpha3.ResourceClaimTemplate' application/yaml: schema: - $ref: '#/components/schemas/v1.VolumeAttachment' + $ref: '#/components/schemas/v1alpha3.ResourceClaimTemplate' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.VolumeAttachment' + $ref: '#/components/schemas/v1alpha3.ResourceClaimTemplate' + application/cbor: + schema: + $ref: '#/components/schemas/v1alpha3.ResourceClaimTemplate' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.VolumeAttachment' + $ref: '#/components/schemas/v1alpha3.ResourceClaimTemplate' application/yaml: schema: - $ref: '#/components/schemas/v1.VolumeAttachment' + $ref: '#/components/schemas/v1alpha3.ResourceClaimTemplate' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.VolumeAttachment' + $ref: '#/components/schemas/v1alpha3.ResourceClaimTemplate' + application/cbor: + schema: + $ref: '#/components/schemas/v1alpha3.ResourceClaimTemplate' description: Created "401": content: {} description: Unauthorized tags: - - storage_v1 + - resource_v1alpha3 x-kubernetes-action: patch x-kubernetes-group-version-kind: - group: storage.k8s.io - kind: VolumeAttachment - version: v1 + group: resource.k8s.io + kind: ResourceClaimTemplate + version: v1alpha3 x-codegen-request-body-name: body x-contentType: application/json x-accepts: application/json put: - description: replace the specified VolumeAttachment - operationId: replaceVolumeAttachment + description: replace the specified ResourceClaimTemplate + operationId: replaceNamespacedResourceClaimTemplate parameters: - - description: name of the VolumeAttachment + - description: name of the ResourceClaimTemplate in: path name: name required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: object name and auth scope, such as for teams and projects + in: path + name: namespace + required: true + schema: + type: string + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -62663,101 +67664,336 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.VolumeAttachment' + $ref: '#/components/schemas/v1alpha3.ResourceClaimTemplate' required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.VolumeAttachment' + $ref: '#/components/schemas/v1alpha3.ResourceClaimTemplate' application/yaml: schema: - $ref: '#/components/schemas/v1.VolumeAttachment' + $ref: '#/components/schemas/v1alpha3.ResourceClaimTemplate' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.VolumeAttachment' + $ref: '#/components/schemas/v1alpha3.ResourceClaimTemplate' + application/cbor: + schema: + $ref: '#/components/schemas/v1alpha3.ResourceClaimTemplate' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.VolumeAttachment' + $ref: '#/components/schemas/v1alpha3.ResourceClaimTemplate' application/yaml: schema: - $ref: '#/components/schemas/v1.VolumeAttachment' + $ref: '#/components/schemas/v1alpha3.ResourceClaimTemplate' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.VolumeAttachment' + $ref: '#/components/schemas/v1alpha3.ResourceClaimTemplate' + application/cbor: + schema: + $ref: '#/components/schemas/v1alpha3.ResourceClaimTemplate' description: Created "401": content: {} description: Unauthorized tags: - - storage_v1 + - resource_v1alpha3 x-kubernetes-action: put x-kubernetes-group-version-kind: - group: storage.k8s.io - kind: VolumeAttachment - version: v1 + group: resource.k8s.io + kind: ResourceClaimTemplate + version: v1alpha3 x-codegen-request-body-name: body x-contentType: application/json x-accepts: application/json - /apis/storage.k8s.io/v1/volumeattachments/{name}/status: + /apis/resource.k8s.io/v1alpha3/resourceclaims: get: - description: read status of the specified VolumeAttachment - operationId: readVolumeAttachmentStatus + description: list or watch objects of kind ResourceClaim + operationId: listResourceClaimForAllNamespaces parameters: - - description: name of the VolumeAttachment - in: path - name: name - required: true + - description: 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. + in: query + name: allowWatchBookmarks + schema: + type: boolean + - description: |- + 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. + in: query + name: continue schema: type: string - - description: If 'true', then the output is pretty printed. + - description: A selector to restrict the list of returned objects by their + fields. Defaults to everything. + in: query + name: fieldSelector + schema: + type: string + - description: A selector to restrict the list of returned objects by their + labels. Defaults to everything. + in: query + name: labelSelector + schema: + type: string + - description: |- + limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. + + The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + in: query + name: limit + schema: + type: integer + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: type: string + - description: |- + resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersion + schema: + type: string + - description: |- + resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersionMatch + schema: + type: string + - description: |- + `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic "Bookmark" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `"k8s.io/initial-events-end": "true"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. + + When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan + is interpreted as "data at least as new as the provided `resourceVersion`" + and the bookmark event is send when the state is synced + to a `resourceVersion` at least as fresh as the one provided by the ListOptions. + If `resourceVersion` is unset, this is interpreted as "consistent read" and the + bookmark event is send when the state is synced at least to the moment + when request started being processed. + - `resourceVersionMatch` set to any other value or unset + Invalid error is returned. + + Defaults to true if `resourceVersion=""` or `resourceVersion="0"` (for backward compatibility reasons) and to false otherwise. + in: query + name: sendInitialEvents + schema: + type: boolean + - description: Timeout for the list/watch call. This limits the duration of + the call, regardless of any activity or inactivity. + in: query + name: timeoutSeconds + schema: + type: integer + - description: Watch for changes to the described resources and return them + as a stream of add, update, and remove notifications. Specify resourceVersion. + in: query + name: watch + schema: + type: boolean responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.VolumeAttachment' + $ref: '#/components/schemas/v1alpha3.ResourceClaimList' application/yaml: schema: - $ref: '#/components/schemas/v1.VolumeAttachment' + $ref: '#/components/schemas/v1alpha3.ResourceClaimList' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.VolumeAttachment' + $ref: '#/components/schemas/v1alpha3.ResourceClaimList' + application/cbor: + schema: + $ref: '#/components/schemas/v1alpha3.ResourceClaimList' + application/json;stream=watch: + schema: + $ref: '#/components/schemas/v1alpha3.ResourceClaimList' + application/vnd.kubernetes.protobuf;stream=watch: + schema: + $ref: '#/components/schemas/v1alpha3.ResourceClaimList' + application/cbor-seq: + schema: + $ref: '#/components/schemas/v1alpha3.ResourceClaimList' description: OK "401": content: {} description: Unauthorized tags: - - storage_v1 - x-kubernetes-action: get + - resource_v1alpha3 + x-kubernetes-action: list x-kubernetes-group-version-kind: - group: storage.k8s.io - kind: VolumeAttachment - version: v1 + group: resource.k8s.io + kind: ResourceClaim + version: v1alpha3 x-accepts: application/json - patch: - description: partially update status of the specified VolumeAttachment - operationId: patchVolumeAttachmentStatus + /apis/resource.k8s.io/v1alpha3/resourceclaimtemplates: + get: + description: list or watch objects of kind ResourceClaimTemplate + operationId: listResourceClaimTemplateForAllNamespaces parameters: - - description: name of the VolumeAttachment - in: path - name: name - required: true + - description: 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. + in: query + name: allowWatchBookmarks + schema: + type: boolean + - description: |- + 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. + in: query + name: continue schema: type: string - - description: If 'true', then the output is pretty printed. + - description: A selector to restrict the list of returned objects by their + fields. Defaults to everything. + in: query + name: fieldSelector + schema: + type: string + - description: A selector to restrict the list of returned objects by their + labels. Defaults to everything. + in: query + name: labelSelector + schema: + type: string + - description: |- + limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. + + The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + in: query + name: limit + schema: + type: integer + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). + in: query + name: pretty + schema: + type: string + - description: |- + resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersion + schema: + type: string + - description: |- + resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersionMatch + schema: + type: string + - description: |- + `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic "Bookmark" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `"k8s.io/initial-events-end": "true"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. + + When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan + is interpreted as "data at least as new as the provided `resourceVersion`" + and the bookmark event is send when the state is synced + to a `resourceVersion` at least as fresh as the one provided by the ListOptions. + If `resourceVersion` is unset, this is interpreted as "consistent read" and the + bookmark event is send when the state is synced at least to the moment + when request started being processed. + - `resourceVersionMatch` set to any other value or unset + Invalid error is returned. + + Defaults to true if `resourceVersion=""` or `resourceVersion="0"` (for backward compatibility reasons) and to false otherwise. + in: query + name: sendInitialEvents + schema: + type: boolean + - description: Timeout for the list/watch call. This limits the duration of + the call, regardless of any activity or inactivity. + in: query + name: timeoutSeconds + schema: + type: integer + - description: Watch for changes to the described resources and return them + as a stream of add, update, and remove notifications. Specify resourceVersion. + in: query + name: watch + schema: + type: boolean + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1alpha3.ResourceClaimTemplateList' + application/yaml: + schema: + $ref: '#/components/schemas/v1alpha3.ResourceClaimTemplateList' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1alpha3.ResourceClaimTemplateList' + application/cbor: + schema: + $ref: '#/components/schemas/v1alpha3.ResourceClaimTemplateList' + application/json;stream=watch: + schema: + $ref: '#/components/schemas/v1alpha3.ResourceClaimTemplateList' + application/vnd.kubernetes.protobuf;stream=watch: + schema: + $ref: '#/components/schemas/v1alpha3.ResourceClaimTemplateList' + application/cbor-seq: + schema: + $ref: '#/components/schemas/v1alpha3.ResourceClaimTemplateList' + description: OK + "401": + content: {} + description: Unauthorized + tags: + - resource_v1alpha3 + x-kubernetes-action: list + x-kubernetes-group-version-kind: + group: resource.k8s.io + kind: ResourceClaimTemplate + version: v1alpha3 + x-accepts: application/json + /apis/resource.k8s.io/v1alpha3/resourceslices: + delete: + description: delete collection of ResourceSlice + operationId: deleteCollectionResourceSlice + parameters: + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: type: string + - description: |- + 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. + in: query + name: continue + schema: + type: string - description: '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 @@ -62766,94 +68002,281 @@ paths: name: dryRun schema: type: string - - description: fieldManager is a name associated with the actor or entity that - is making these changes. The value must be less than or 128 characters long, - and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - This field is required for apply requests (application/apply-patch) but - optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). + - description: A selector to restrict the list of returned objects by their + fields. Defaults to everything. in: query - name: fieldManager + name: fieldSelector schema: type: string - - description: 'fieldValidation instructs the server on how to handle objects - in the request (POST/PUT/PATCH) containing unknown or duplicate fields. - Valid values are: - Ignore: This will ignore any unknown fields that are - silently dropped from the object, and will ignore all but the last duplicate - field that the decoder encounters. This is the default behavior prior to - v1.23. - Warn: This will send a warning via the standard warning response - header for each unknown field that is dropped from the object, and for each - duplicate field that is encountered. The request will still succeed if there - are no other errors, and will only persist the last of any duplicate fields. - This is the default in v1.23+ - Strict: This will fail the request with - a BadRequest error if any unknown fields would be dropped from the object, - or if any duplicate fields are present. The error returned from the server - will contain all unknown and duplicate fields encountered.' + - description: 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. in: query - name: fieldValidation + name: gracePeriodSeconds + schema: + type: integer + - description: 'if set to true, it will trigger an unsafe deletion of the resource + in case the normal deletion flow fails with a corrupt object error. A resource + is considered corrupt if it can not be retrieved from the underlying storage + successfully because of a) its data can not be transformed e.g. decryption + failure, or b) it fails to decode into an object. NOTE: unsafe deletion + ignores finalizer constraints, skips precondition checks, and removes the + object from the storage. WARNING: This may potentially break the cluster + if the workload associated with the resource being unsafe-deleted relies + on normal deletion flow. Use only if you REALLY know what you are doing. + The default value is false, and the user must opt in to enable it' + in: query + name: ignoreStoreReadErrorWithClusterBreakingPotential + schema: + type: boolean + - description: A selector to restrict the list of returned objects by their + labels. Defaults to everything. + in: query + name: labelSelector schema: type: string - - description: Force is going to "force" Apply requests. It means user will - re-acquire conflicting fields owned by other people. Force flag must be - unset for non-apply patch requests. + - description: |- + limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. + + The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. in: query - name: force + name: limit + schema: + type: integer + - description: '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.' + in: query + name: orphanDependents + schema: + type: boolean + - description: '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.' + in: query + name: propagationPolicy + schema: + type: string + - description: |- + resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersion + schema: + type: string + - description: |- + resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersionMatch + schema: + type: string + - description: |- + `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic "Bookmark" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `"k8s.io/initial-events-end": "true"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. + + When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan + is interpreted as "data at least as new as the provided `resourceVersion`" + and the bookmark event is send when the state is synced + to a `resourceVersion` at least as fresh as the one provided by the ListOptions. + If `resourceVersion` is unset, this is interpreted as "consistent read" and the + bookmark event is send when the state is synced at least to the moment + when request started being processed. + - `resourceVersionMatch` set to any other value or unset + Invalid error is returned. + + Defaults to true if `resourceVersion=""` or `resourceVersion="0"` (for backward compatibility reasons) and to false otherwise. + in: query + name: sendInitialEvents schema: type: boolean + - description: Timeout for the list/watch call. This limits the duration of + the call, regardless of any activity or inactivity. + in: query + name: timeoutSeconds + schema: + type: integer requestBody: content: application/json: schema: - $ref: '#/components/schemas/v1.Patch' - required: true + $ref: '#/components/schemas/v1.DeleteOptions' + required: false responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.VolumeAttachment' + $ref: '#/components/schemas/v1.Status' application/yaml: schema: - $ref: '#/components/schemas/v1.VolumeAttachment' + $ref: '#/components/schemas/v1.Status' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.VolumeAttachment' + $ref: '#/components/schemas/v1.Status' + application/cbor: + schema: + $ref: '#/components/schemas/v1.Status' description: OK - "201": + "401": + content: {} + description: Unauthorized + tags: + - resource_v1alpha3 + x-kubernetes-action: deletecollection + x-kubernetes-group-version-kind: + group: resource.k8s.io + kind: ResourceSlice + version: v1alpha3 + x-codegen-request-body-name: body + x-contentType: application/json + x-accepts: application/json + get: + description: list or watch objects of kind ResourceSlice + operationId: listResourceSlice + parameters: + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). + in: query + name: pretty + schema: + type: string + - description: 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. + in: query + name: allowWatchBookmarks + schema: + type: boolean + - description: |- + 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. + in: query + name: continue + 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 + - description: A selector to restrict the list of returned objects by their + labels. Defaults to everything. + in: query + name: labelSelector + schema: + type: string + - description: |- + limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. + + The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + in: query + name: limit + schema: + type: integer + - description: |- + resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersion + schema: + type: string + - description: |- + resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersionMatch + schema: + type: string + - description: |- + `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic "Bookmark" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `"k8s.io/initial-events-end": "true"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. + + When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan + is interpreted as "data at least as new as the provided `resourceVersion`" + and the bookmark event is send when the state is synced + to a `resourceVersion` at least as fresh as the one provided by the ListOptions. + If `resourceVersion` is unset, this is interpreted as "consistent read" and the + bookmark event is send when the state is synced at least to the moment + when request started being processed. + - `resourceVersionMatch` set to any other value or unset + Invalid error is returned. + + Defaults to true if `resourceVersion=""` or `resourceVersion="0"` (for backward compatibility reasons) and to false otherwise. + in: query + name: sendInitialEvents + schema: + type: boolean + - description: Timeout for the list/watch call. This limits the duration of + the call, regardless of any activity or inactivity. + in: query + name: timeoutSeconds + schema: + type: integer + - description: Watch for changes to the described resources and return them + as a stream of add, update, and remove notifications. Specify resourceVersion. + in: query + name: watch + schema: + type: boolean + responses: + "200": content: application/json: schema: - $ref: '#/components/schemas/v1.VolumeAttachment' + $ref: '#/components/schemas/v1alpha3.ResourceSliceList' application/yaml: schema: - $ref: '#/components/schemas/v1.VolumeAttachment' + $ref: '#/components/schemas/v1alpha3.ResourceSliceList' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.VolumeAttachment' - description: Created + $ref: '#/components/schemas/v1alpha3.ResourceSliceList' + application/cbor: + schema: + $ref: '#/components/schemas/v1alpha3.ResourceSliceList' + application/json;stream=watch: + schema: + $ref: '#/components/schemas/v1alpha3.ResourceSliceList' + application/vnd.kubernetes.protobuf;stream=watch: + schema: + $ref: '#/components/schemas/v1alpha3.ResourceSliceList' + application/cbor-seq: + schema: + $ref: '#/components/schemas/v1alpha3.ResourceSliceList' + description: OK "401": content: {} description: Unauthorized tags: - - storage_v1 - x-kubernetes-action: patch + - resource_v1alpha3 + x-kubernetes-action: list x-kubernetes-group-version-kind: - group: storage.k8s.io - kind: VolumeAttachment - version: v1 - x-codegen-request-body-name: body - x-contentType: application/json + group: resource.k8s.io + kind: ResourceSlice + version: v1alpha3 x-accepts: application/json - put: - description: replace status of the specified VolumeAttachment - operationId: replaceVolumeAttachmentStatus + post: + description: create a ResourceSlice + operationId: createResourceSlice parameters: - - description: name of the VolumeAttachment - in: path - name: name - required: true - schema: - type: string - - description: If 'true', then the output is pretty printed. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: @@ -62894,158 +68317,91 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.VolumeAttachment' + $ref: '#/components/schemas/v1alpha3.ResourceSlice' required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.VolumeAttachment' + $ref: '#/components/schemas/v1alpha3.ResourceSlice' application/yaml: schema: - $ref: '#/components/schemas/v1.VolumeAttachment' + $ref: '#/components/schemas/v1alpha3.ResourceSlice' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.VolumeAttachment' + $ref: '#/components/schemas/v1alpha3.ResourceSlice' + application/cbor: + schema: + $ref: '#/components/schemas/v1alpha3.ResourceSlice' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.VolumeAttachment' + $ref: '#/components/schemas/v1alpha3.ResourceSlice' application/yaml: schema: - $ref: '#/components/schemas/v1.VolumeAttachment' + $ref: '#/components/schemas/v1alpha3.ResourceSlice' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.VolumeAttachment' + $ref: '#/components/schemas/v1alpha3.ResourceSlice' + application/cbor: + schema: + $ref: '#/components/schemas/v1alpha3.ResourceSlice' description: Created - "401": - content: {} - description: Unauthorized - tags: - - storage_v1 - x-kubernetes-action: put - x-kubernetes-group-version-kind: - group: storage.k8s.io - kind: VolumeAttachment - version: v1 - x-codegen-request-body-name: body - x-contentType: application/json - x-accepts: application/json - /apis/storage.k8s.io/v1/watch/csidrivers: {} - /apis/storage.k8s.io/v1/watch/csidrivers/{name}: {} - /apis/storage.k8s.io/v1/watch/csinodes: {} - /apis/storage.k8s.io/v1/watch/csinodes/{name}: {} - /apis/storage.k8s.io/v1/watch/csistoragecapacities: {} - /apis/storage.k8s.io/v1/watch/namespaces/{namespace}/csistoragecapacities: {} - /apis/storage.k8s.io/v1/watch/namespaces/{namespace}/csistoragecapacities/{name}: {} - /apis/storage.k8s.io/v1/watch/storageclasses: {} - /apis/storage.k8s.io/v1/watch/storageclasses/{name}: {} - /apis/storage.k8s.io/v1/watch/volumeattachments: {} - /apis/storage.k8s.io/v1/watch/volumeattachments/{name}: {} - /logs/: - get: - operationId: logFileListHandler - responses: - "401": - content: {} - description: Unauthorized - tags: - - logs - x-accepts: application/json - /logs/{logpath}: - get: - operationId: logFileHandler - parameters: - - description: path to the log - in: path - name: logpath - required: true - schema: - type: string - responses: - "401": - content: {} - description: Unauthorized - tags: - - logs - x-accepts: application/json - /version/: - get: - description: get the code version - operationId: getCode - responses: - "200": + "202": content: application/json: schema: - $ref: '#/components/schemas/version.Info' - description: OK - "401": - content: {} - description: Unauthorized - tags: - - version - x-accepts: application/json - /apis/{group}/{version}: - get: - description: get available resources - operationId: getAPIResources - parameters: - - description: The custom resource's group name - in: path - name: group - required: true - schema: - type: string - - description: The custom resource's version - in: path - name: version - required: true - schema: - type: string - responses: - "200": - content: - application/json: + $ref: '#/components/schemas/v1alpha3.ResourceSlice' + application/yaml: schema: - $ref: '#/components/schemas/v1.APIResourceList' - description: OK + $ref: '#/components/schemas/v1alpha3.ResourceSlice' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1alpha3.ResourceSlice' + application/cbor: + schema: + $ref: '#/components/schemas/v1alpha3.ResourceSlice' + description: Accepted "401": content: {} description: Unauthorized tags: - - custom_objects + - resource_v1alpha3 + x-kubernetes-action: post + x-kubernetes-group-version-kind: + group: resource.k8s.io + kind: ResourceSlice + version: v1alpha3 + x-codegen-request-body-name: body + x-contentType: application/json x-accepts: application/json - /apis/{group}/{version}/{plural}: + /apis/resource.k8s.io/v1alpha3/resourceslices/{name}: delete: - description: Delete collection of cluster scoped custom objects - operationId: deleteCollectionClusterCustomObject + description: delete a ResourceSlice + operationId: deleteResourceSlice parameters: - - description: If 'true', then the output is pretty printed. - in: query - name: pretty - schema: - type: string - - description: The custom resource's group name + - description: name of the ResourceSlice in: path - name: group + name: name required: true schema: type: string - - description: The custom resource's version - in: path - name: version - required: true + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). + in: query + name: pretty schema: type: string - - description: The custom resource's plural name. For TPRs this would be lowercase - plural kind. - in: path - name: plural - required: true + - description: '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' + in: query + name: dryRun schema: type: string - description: The duration in seconds before the object should be deleted. @@ -63057,6 +68413,20 @@ paths: name: gracePeriodSeconds schema: type: integer + - description: 'if set to true, it will trigger an unsafe deletion of the resource + in case the normal deletion flow fails with a corrupt object error. A resource + is considered corrupt if it can not be retrieved from the underlying storage + successfully because of a) its data can not be transformed e.g. decryption + failure, or b) it fails to decode into an object. NOTE: unsafe deletion + ignores finalizer constraints, skips precondition checks, and removes the + object from the storage. WARNING: This may potentially break the cluster + if the workload associated with the resource being unsafe-deleted relies + on normal deletion flow. Use only if you REALLY know what you are doing. + The default value is false, and the user must opt in to enable it' + in: query + name: ignoreStoreReadErrorWithClusterBreakingPotential + schema: + type: boolean - description: '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 @@ -63065,22 +68435,17 @@ paths: name: orphanDependents schema: type: boolean - - description: Whether and how garbage collection will be performed. Either + - description: '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. + 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.' in: query name: propagationPolicy schema: type: string - - description: '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' - in: query - name: dryRun - schema: - type: string requestBody: content: application/json: @@ -63092,155 +68457,212 @@ paths: content: application/json: schema: - type: object + $ref: '#/components/schemas/v1alpha3.ResourceSlice' + application/yaml: + schema: + $ref: '#/components/schemas/v1alpha3.ResourceSlice' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1alpha3.ResourceSlice' + application/cbor: + schema: + $ref: '#/components/schemas/v1alpha3.ResourceSlice' description: OK + "202": + content: + application/json: + schema: + $ref: '#/components/schemas/v1alpha3.ResourceSlice' + application/yaml: + schema: + $ref: '#/components/schemas/v1alpha3.ResourceSlice' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1alpha3.ResourceSlice' + application/cbor: + schema: + $ref: '#/components/schemas/v1alpha3.ResourceSlice' + description: Accepted "401": content: {} description: Unauthorized tags: - - custom_objects + - resource_v1alpha3 + x-kubernetes-action: delete + x-kubernetes-group-version-kind: + group: resource.k8s.io + kind: ResourceSlice + version: v1alpha3 x-codegen-request-body-name: body x-contentType: application/json x-accepts: application/json get: - description: list or watch cluster scoped custom objects - operationId: listClusterCustomObject + description: read the specified ResourceSlice + operationId: readResourceSlice parameters: - - description: If 'true', then the output is pretty printed. - in: query - name: pretty - schema: - type: string - - description: The custom resource's group name + - description: name of the ResourceSlice in: path - name: group + name: name required: true schema: type: string - - description: The custom resource's version - in: path - name: version - required: true + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). + in: query + name: pretty schema: type: string - - description: The custom resource's plural name. For TPRs this would be lowercase - plural kind. + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1alpha3.ResourceSlice' + application/yaml: + schema: + $ref: '#/components/schemas/v1alpha3.ResourceSlice' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1alpha3.ResourceSlice' + application/cbor: + schema: + $ref: '#/components/schemas/v1alpha3.ResourceSlice' + description: OK + "401": + content: {} + description: Unauthorized + tags: + - resource_v1alpha3 + x-kubernetes-action: get + x-kubernetes-group-version-kind: + group: resource.k8s.io + kind: ResourceSlice + version: v1alpha3 + x-accepts: application/json + patch: + description: partially update the specified ResourceSlice + operationId: patchResourceSlice + parameters: + - description: name of the ResourceSlice in: path - name: plural + name: name required: true schema: type: string - - description: 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. - in: query - name: allowWatchBookmarks - schema: - type: boolean - - description: |- - 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. - in: query - name: continue - schema: - type: string - - description: A selector to restrict the list of returned objects by their - fields. Defaults to everything. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query - name: fieldSelector + name: pretty schema: type: string - - description: A selector to restrict the list of returned objects by their - labels. Defaults to everything. + - description: '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' in: query - name: labelSelector + name: dryRun schema: type: string - - description: |- - limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. - - The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. - in: query - name: limit - schema: - type: integer - - description: 'When specified with a watch call, shows changes that occur after - that particular version of a resource. Defaults to changes from the beginning - of history. When specified for list: - if unset, then the result is returned - from remote storage based on quorum-read flag; - if it''s 0, then we simply - return what we currently have in cache, no guarantee; - if set to non zero, - then the result is at least as fresh as given rv.' + - description: fieldManager is a name associated with the actor or entity that + is making these changes. The value must be less than or 128 characters long, + and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + This field is required for apply requests (application/apply-patch) but + optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). in: query - name: resourceVersion + name: fieldManager schema: type: string - - description: |- - resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. - - Defaults to unset + - description: 'fieldValidation instructs the server on how to handle objects + in the request (POST/PUT/PATCH) containing unknown or duplicate fields. + Valid values are: - Ignore: This will ignore any unknown fields that are + silently dropped from the object, and will ignore all but the last duplicate + field that the decoder encounters. This is the default behavior prior to + v1.23. - Warn: This will send a warning via the standard warning response + header for each unknown field that is dropped from the object, and for each + duplicate field that is encountered. The request will still succeed if there + are no other errors, and will only persist the last of any duplicate fields. + This is the default in v1.23+ - Strict: This will fail the request with + a BadRequest error if any unknown fields would be dropped from the object, + or if any duplicate fields are present. The error returned from the server + will contain all unknown and duplicate fields encountered.' in: query - name: resourceVersionMatch + name: fieldValidation schema: type: string - - description: Timeout for the list/watch call. This limits the duration of - the call, regardless of any activity or inactivity. - in: query - name: timeoutSeconds - schema: - type: integer - - description: Watch for changes to the described resources and return them - as a stream of add, update, and remove notifications. + - description: Force is going to "force" Apply requests. It means user will + re-acquire conflicting fields owned by other people. Force flag must be + unset for non-apply patch requests. in: query - name: watch + name: force schema: type: boolean + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/v1.Patch' + required: true responses: "200": content: application/json: schema: - type: object - application/json;stream=watch: + $ref: '#/components/schemas/v1alpha3.ResourceSlice' + application/yaml: schema: - type: object + $ref: '#/components/schemas/v1alpha3.ResourceSlice' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1alpha3.ResourceSlice' + application/cbor: + schema: + $ref: '#/components/schemas/v1alpha3.ResourceSlice' description: OK + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/v1alpha3.ResourceSlice' + application/yaml: + schema: + $ref: '#/components/schemas/v1alpha3.ResourceSlice' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1alpha3.ResourceSlice' + application/cbor: + schema: + $ref: '#/components/schemas/v1alpha3.ResourceSlice' + description: Created "401": content: {} description: Unauthorized tags: - - custom_objects + - resource_v1alpha3 + x-kubernetes-action: patch + x-kubernetes-group-version-kind: + group: resource.k8s.io + kind: ResourceSlice + version: v1alpha3 + x-codegen-request-body-name: body + x-contentType: application/json x-accepts: application/json - post: - description: Creates a cluster scoped Custom object - operationId: createClusterCustomObject + put: + description: replace the specified ResourceSlice + operationId: replaceResourceSlice parameters: - - description: If 'true', then the output is pretty printed. - in: query - name: pretty - schema: - type: string - - description: The custom resource's group name - in: path - name: group - required: true - schema: - type: string - - description: The custom resource's version + - description: name of the ResourceSlice in: path - name: version + name: name required: true schema: type: string - - description: The custom resource's plural name. For TPRs this would be lowercase - plural kind. - in: path - name: plural - required: true + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). + in: query + name: pretty schema: type: string - description: 'When present, indicates that modifications should not be persisted. @@ -63254,67 +68676,147 @@ paths: - description: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - This field is required for apply requests (application/apply-patch) but - optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). in: query name: fieldManager schema: type: string + - description: 'fieldValidation instructs the server on how to handle objects + in the request (POST/PUT/PATCH) containing unknown or duplicate fields. + Valid values are: - Ignore: This will ignore any unknown fields that are + silently dropped from the object, and will ignore all but the last duplicate + field that the decoder encounters. This is the default behavior prior to + v1.23. - Warn: This will send a warning via the standard warning response + header for each unknown field that is dropped from the object, and for each + duplicate field that is encountered. The request will still succeed if there + are no other errors, and will only persist the last of any duplicate fields. + This is the default in v1.23+ - Strict: This will fail the request with + a BadRequest error if any unknown fields would be dropped from the object, + or if any duplicate fields are present. The error returned from the server + will contain all unknown and duplicate fields encountered.' + in: query + name: fieldValidation + schema: + type: string requestBody: content: application/json: schema: - type: object - description: The JSON schema of the Resource to create. + $ref: '#/components/schemas/v1alpha3.ResourceSlice' required: true responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1alpha3.ResourceSlice' + application/yaml: + schema: + $ref: '#/components/schemas/v1alpha3.ResourceSlice' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1alpha3.ResourceSlice' + application/cbor: + schema: + $ref: '#/components/schemas/v1alpha3.ResourceSlice' + description: OK "201": content: application/json: schema: - type: object + $ref: '#/components/schemas/v1alpha3.ResourceSlice' + application/yaml: + schema: + $ref: '#/components/schemas/v1alpha3.ResourceSlice' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1alpha3.ResourceSlice' + application/cbor: + schema: + $ref: '#/components/schemas/v1alpha3.ResourceSlice' description: Created "401": content: {} description: Unauthorized tags: - - custom_objects + - resource_v1alpha3 + x-kubernetes-action: put + x-kubernetes-group-version-kind: + group: resource.k8s.io + kind: ResourceSlice + version: v1alpha3 x-codegen-request-body-name: body x-contentType: application/json x-accepts: application/json - /apis/{group}/{version}/namespaces/{namespace}/{plural}: + /apis/resource.k8s.io/v1alpha3/watch/deviceclasses: {} + /apis/resource.k8s.io/v1alpha3/watch/deviceclasses/{name}: {} + /apis/resource.k8s.io/v1alpha3/watch/devicetaintrules: {} + /apis/resource.k8s.io/v1alpha3/watch/devicetaintrules/{name}: {} + /apis/resource.k8s.io/v1alpha3/watch/namespaces/{namespace}/resourceclaims: {} + /apis/resource.k8s.io/v1alpha3/watch/namespaces/{namespace}/resourceclaims/{name}: {} + /apis/resource.k8s.io/v1alpha3/watch/namespaces/{namespace}/resourceclaimtemplates: {} + /apis/resource.k8s.io/v1alpha3/watch/namespaces/{namespace}/resourceclaimtemplates/{name}: {} + /apis/resource.k8s.io/v1alpha3/watch/resourceclaims: {} + /apis/resource.k8s.io/v1alpha3/watch/resourceclaimtemplates: {} + /apis/resource.k8s.io/v1alpha3/watch/resourceslices: {} + /apis/resource.k8s.io/v1alpha3/watch/resourceslices/{name}: {} + /apis/resource.k8s.io/v1beta1/: + get: + description: get available resources + operationId: getAPIResources + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.APIResourceList' + application/yaml: + schema: + $ref: '#/components/schemas/v1.APIResourceList' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.APIResourceList' + application/cbor: + schema: + $ref: '#/components/schemas/v1.APIResourceList' + description: OK + "401": + content: {} + description: Unauthorized + tags: + - resource_v1beta1 + x-accepts: application/json + /apis/resource.k8s.io/v1beta1/deviceclasses: delete: - description: Delete collection of namespace scoped custom objects - operationId: deleteCollectionNamespacedCustomObject + description: delete collection of DeviceClass + operationId: deleteCollectionDeviceClass parameters: - - description: If 'true', then the output is pretty printed. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: type: string - - description: The custom resource's group name - in: path - name: group - required: true - schema: - type: string - - description: The custom resource's version - in: path - name: version - required: true + - description: |- + 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. + in: query + name: continue schema: type: string - - description: The custom resource's namespace - in: path - name: namespace - required: true + - description: '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' + in: query + name: dryRun schema: type: string - - description: The custom resource's plural name. For TPRs this would be lowercase - plural kind. - in: path - name: plural - required: true + - description: A selector to restrict the list of returned objects by their + fields. Defaults to everything. + in: query + name: fieldSelector schema: type: string - description: The duration in seconds before the object should be deleted. @@ -63326,6 +68828,34 @@ paths: name: gracePeriodSeconds schema: type: integer + - description: 'if set to true, it will trigger an unsafe deletion of the resource + in case the normal deletion flow fails with a corrupt object error. A resource + is considered corrupt if it can not be retrieved from the underlying storage + successfully because of a) its data can not be transformed e.g. decryption + failure, or b) it fails to decode into an object. NOTE: unsafe deletion + ignores finalizer constraints, skips precondition checks, and removes the + object from the storage. WARNING: This may potentially break the cluster + if the workload associated with the resource being unsafe-deleted relies + on normal deletion flow. Use only if you REALLY know what you are doing. + The default value is false, and the user must opt in to enable it' + in: query + name: ignoreStoreReadErrorWithClusterBreakingPotential + schema: + type: boolean + - description: A selector to restrict the list of returned objects by their + labels. Defaults to everything. + in: query + name: labelSelector + schema: + type: string + - description: |- + limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. + + The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + in: query + name: limit + schema: + type: integer - description: '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 @@ -63334,22 +68864,57 @@ paths: name: orphanDependents schema: type: boolean - - description: Whether and how garbage collection will be performed. Either + - description: '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. + 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.' in: query name: propagationPolicy schema: type: string - - description: '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' + - description: |- + resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset in: query - name: dryRun + name: resourceVersion schema: type: string + - description: |- + resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersionMatch + schema: + type: string + - description: |- + `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic "Bookmark" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `"k8s.io/initial-events-end": "true"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. + + When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan + is interpreted as "data at least as new as the provided `resourceVersion`" + and the bookmark event is send when the state is synced + to a `resourceVersion` at least as fresh as the one provided by the ListOptions. + If `resourceVersion` is unset, this is interpreted as "consistent read" and the + bookmark event is send when the state is synced at least to the moment + when request started being processed. + - `resourceVersionMatch` set to any other value or unset + Invalid error is returned. + + Defaults to true if `resourceVersion=""` or `resourceVersion="0"` (for backward compatibility reasons) and to false otherwise. + in: query + name: sendInitialEvents + schema: + type: boolean + - description: Timeout for the list/watch call. This limits the duration of + the call, regardless of any activity or inactivity. + in: query + name: timeoutSeconds + schema: + type: integer requestBody: content: application/json: @@ -63361,57 +68926,47 @@ paths: content: application/json: schema: - type: object + $ref: '#/components/schemas/v1.Status' + application/yaml: + schema: + $ref: '#/components/schemas/v1.Status' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.Status' + application/cbor: + schema: + $ref: '#/components/schemas/v1.Status' description: OK "401": content: {} description: Unauthorized tags: - - custom_objects + - resource_v1beta1 + x-kubernetes-action: deletecollection + x-kubernetes-group-version-kind: + group: resource.k8s.io + kind: DeviceClass + version: v1beta1 x-codegen-request-body-name: body x-contentType: application/json x-accepts: application/json get: - description: list or watch namespace scoped custom objects - operationId: listNamespacedCustomObject + description: list or watch objects of kind DeviceClass + operationId: listDeviceClass parameters: - - description: If 'true', then the output is pretty printed. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: type: string - - description: The custom resource's group name - in: path - name: group - required: true - schema: - type: string - - description: The custom resource's version - in: path - name: version - required: true - schema: - type: string - - description: The custom resource's namespace - in: path - name: namespace - required: true - schema: - type: string - - description: The custom resource's plural name. For TPRs this would be lowercase - plural kind. - in: path - name: plural - required: true - schema: - type: string - description: 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. + is ignored. in: query name: allowWatchBookmarks schema: @@ -63444,12 +68999,10 @@ paths: name: limit schema: type: integer - - description: 'When specified with a watch call, shows changes that occur after - that particular version of a resource. Defaults to changes from the beginning - of history. When specified for list: - if unset, then the result is returned - from remote storage based on quorum-read flag; - if it''s 0, then we simply - return what we currently have in cache, no guarantee; - if set to non zero, - then the result is at least as fresh as given rv.' + - description: |- + resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset in: query name: resourceVersion schema: @@ -63462,6 +69015,24 @@ paths: name: resourceVersionMatch schema: type: string + - description: |- + `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic "Bookmark" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `"k8s.io/initial-events-end": "true"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. + + When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan + is interpreted as "data at least as new as the provided `resourceVersion`" + and the bookmark event is send when the state is synced + to a `resourceVersion` at least as fresh as the one provided by the ListOptions. + If `resourceVersion` is unset, this is interpreted as "consistent read" and the + bookmark event is send when the state is synced at least to the moment + when request started being processed. + - `resourceVersionMatch` set to any other value or unset + Invalid error is returned. + + Defaults to true if `resourceVersion=""` or `resourceVersion="0"` (for backward compatibility reasons) and to false otherwise. + in: query + name: sendInitialEvents + schema: + type: boolean - description: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. in: query @@ -63469,7 +69040,7 @@ paths: schema: type: integer - description: Watch for changes to the described resources and return them - as a stream of add, update, and remove notifications. + as a stream of add, update, and remove notifications. Specify resourceVersion. in: query name: watch schema: @@ -63479,51 +69050,48 @@ paths: content: application/json: schema: - type: object + $ref: '#/components/schemas/v1beta1.DeviceClassList' + application/yaml: + schema: + $ref: '#/components/schemas/v1beta1.DeviceClassList' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1beta1.DeviceClassList' + application/cbor: + schema: + $ref: '#/components/schemas/v1beta1.DeviceClassList' application/json;stream=watch: schema: - type: object + $ref: '#/components/schemas/v1beta1.DeviceClassList' + application/vnd.kubernetes.protobuf;stream=watch: + schema: + $ref: '#/components/schemas/v1beta1.DeviceClassList' + application/cbor-seq: + schema: + $ref: '#/components/schemas/v1beta1.DeviceClassList' description: OK "401": content: {} description: Unauthorized tags: - - custom_objects + - resource_v1beta1 + x-kubernetes-action: list + x-kubernetes-group-version-kind: + group: resource.k8s.io + kind: DeviceClass + version: v1beta1 x-accepts: application/json post: - description: Creates a namespace scoped Custom object - operationId: createNamespacedCustomObject + description: create a DeviceClass + operationId: createDeviceClass parameters: - - description: If 'true', then the output is pretty printed. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). in: query name: pretty schema: type: string - - description: The custom resource's group name - in: path - name: group - required: true - schema: - type: string - - description: The custom resource's version - in: path - name: version - required: true - schema: - type: string - - description: The custom resource's namespace - in: path - name: namespace - required: true - schema: - type: string - - description: The custom resource's plural name. For TPRs this would be lowercase - plural kind. - in: path - name: plural - required: true - schema: - type: string - description: '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 @@ -63539,56 +69107,112 @@ paths: name: fieldManager schema: type: string + - description: 'fieldValidation instructs the server on how to handle objects + in the request (POST/PUT/PATCH) containing unknown or duplicate fields. + Valid values are: - Ignore: This will ignore any unknown fields that are + silently dropped from the object, and will ignore all but the last duplicate + field that the decoder encounters. This is the default behavior prior to + v1.23. - Warn: This will send a warning via the standard warning response + header for each unknown field that is dropped from the object, and for each + duplicate field that is encountered. The request will still succeed if there + are no other errors, and will only persist the last of any duplicate fields. + This is the default in v1.23+ - Strict: This will fail the request with + a BadRequest error if any unknown fields would be dropped from the object, + or if any duplicate fields are present. The error returned from the server + will contain all unknown and duplicate fields encountered.' + in: query + name: fieldValidation + schema: + type: string requestBody: content: application/json: schema: - type: object - description: The JSON schema of the Resource to create. + $ref: '#/components/schemas/v1beta1.DeviceClass' required: true responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1beta1.DeviceClass' + application/yaml: + schema: + $ref: '#/components/schemas/v1beta1.DeviceClass' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1beta1.DeviceClass' + application/cbor: + schema: + $ref: '#/components/schemas/v1beta1.DeviceClass' + description: OK "201": content: application/json: schema: - type: object + $ref: '#/components/schemas/v1beta1.DeviceClass' + application/yaml: + schema: + $ref: '#/components/schemas/v1beta1.DeviceClass' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1beta1.DeviceClass' + application/cbor: + schema: + $ref: '#/components/schemas/v1beta1.DeviceClass' description: Created + "202": + content: + application/json: + schema: + $ref: '#/components/schemas/v1beta1.DeviceClass' + application/yaml: + schema: + $ref: '#/components/schemas/v1beta1.DeviceClass' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1beta1.DeviceClass' + application/cbor: + schema: + $ref: '#/components/schemas/v1beta1.DeviceClass' + description: Accepted "401": content: {} description: Unauthorized tags: - - custom_objects + - resource_v1beta1 + x-kubernetes-action: post + x-kubernetes-group-version-kind: + group: resource.k8s.io + kind: DeviceClass + version: v1beta1 x-codegen-request-body-name: body x-contentType: application/json x-accepts: application/json - /apis/{group}/{version}/{plural}/{name}: + /apis/resource.k8s.io/v1beta1/deviceclasses/{name}: delete: - description: Deletes the specified cluster scoped custom object - operationId: deleteClusterCustomObject + description: delete a DeviceClass + operationId: deleteDeviceClass parameters: - - description: the custom resource's group - in: path - name: group - required: true - schema: - type: string - - description: the custom resource's version + - description: name of the DeviceClass in: path - name: version + name: name required: true schema: type: string - - description: the custom object's plural name. For TPRs this would be lowercase - plural kind. - in: path - name: plural - required: true + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). + in: query + name: pretty schema: type: string - - description: the custom object's name - in: path - name: name - required: true + - description: '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' + in: query + name: dryRun schema: type: string - description: The duration in seconds before the object should be deleted. @@ -63600,6 +69224,20 @@ paths: name: gracePeriodSeconds schema: type: integer + - description: 'if set to true, it will trigger an unsafe deletion of the resource + in case the normal deletion flow fails with a corrupt object error. A resource + is considered corrupt if it can not be retrieved from the underlying storage + successfully because of a) its data can not be transformed e.g. decryption + failure, or b) it fails to decode into an object. NOTE: unsafe deletion + ignores finalizer constraints, skips precondition checks, and removes the + object from the storage. WARNING: This may potentially break the cluster + if the workload associated with the resource being unsafe-deleted relies + on normal deletion flow. Use only if you REALLY know what you are doing. + The default value is false, and the user must opt in to enable it' + in: query + name: ignoreStoreReadErrorWithClusterBreakingPotential + schema: + type: boolean - description: '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 @@ -63608,22 +69246,17 @@ paths: name: orphanDependents schema: type: boolean - - description: Whether and how garbage collection will be performed. Either + - description: '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. + 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.' in: query name: propagationPolicy schema: type: string - - description: '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' - in: query - name: dryRun - schema: - type: string requestBody: content: application/json: @@ -63635,43 +69268,60 @@ paths: content: application/json: schema: - type: object + $ref: '#/components/schemas/v1beta1.DeviceClass' + application/yaml: + schema: + $ref: '#/components/schemas/v1beta1.DeviceClass' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1beta1.DeviceClass' + application/cbor: + schema: + $ref: '#/components/schemas/v1beta1.DeviceClass' description: OK + "202": + content: + application/json: + schema: + $ref: '#/components/schemas/v1beta1.DeviceClass' + application/yaml: + schema: + $ref: '#/components/schemas/v1beta1.DeviceClass' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1beta1.DeviceClass' + application/cbor: + schema: + $ref: '#/components/schemas/v1beta1.DeviceClass' + description: Accepted "401": content: {} description: Unauthorized tags: - - custom_objects + - resource_v1beta1 + x-kubernetes-action: delete + x-kubernetes-group-version-kind: + group: resource.k8s.io + kind: DeviceClass + version: v1beta1 x-codegen-request-body-name: body x-contentType: application/json x-accepts: application/json get: - description: Returns a cluster scoped custom object - operationId: getClusterCustomObject + description: read the specified DeviceClass + operationId: readDeviceClass parameters: - - description: the custom resource's group - in: path - name: group - required: true - schema: - type: string - - description: the custom resource's version - in: path - name: version - required: true - schema: - type: string - - description: the custom object's plural name. For TPRs this would be lowercase - plural kind. + - description: name of the DeviceClass in: path - name: plural + name: name required: true schema: type: string - - description: the custom object's name - in: path - name: name - required: true + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). + in: query + name: pretty schema: type: string responses: @@ -63679,41 +69329,43 @@ paths: content: application/json: schema: - type: object - description: A single Resource + $ref: '#/components/schemas/v1beta1.DeviceClass' + application/yaml: + schema: + $ref: '#/components/schemas/v1beta1.DeviceClass' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1beta1.DeviceClass' + application/cbor: + schema: + $ref: '#/components/schemas/v1beta1.DeviceClass' + description: OK "401": content: {} description: Unauthorized tags: - - custom_objects + - resource_v1beta1 + x-kubernetes-action: get + x-kubernetes-group-version-kind: + group: resource.k8s.io + kind: DeviceClass + version: v1beta1 x-accepts: application/json patch: - description: patch the specified cluster scoped custom object - operationId: patchClusterCustomObject + description: partially update the specified DeviceClass + operationId: patchDeviceClass parameters: - - description: the custom resource's group - in: path - name: group - required: true - schema: - type: string - - description: the custom resource's version - in: path - name: version - required: true - schema: - type: string - - description: the custom object's plural name. For TPRs this would be lowercase - plural kind. + - description: name of the DeviceClass in: path - name: plural + name: name required: true schema: type: string - - description: the custom object's name - in: path - name: name - required: true + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). + in: query + name: pretty schema: type: string - description: 'When present, indicates that modifications should not be persisted. @@ -63733,6 +69385,23 @@ paths: name: fieldManager schema: type: string + - description: 'fieldValidation instructs the server on how to handle objects + in the request (POST/PUT/PATCH) containing unknown or duplicate fields. + Valid values are: - Ignore: This will ignore any unknown fields that are + silently dropped from the object, and will ignore all but the last duplicate + field that the decoder encounters. This is the default behavior prior to + v1.23. - Warn: This will send a warning via the standard warning response + header for each unknown field that is dropped from the object, and for each + duplicate field that is encountered. The request will still succeed if there + are no other errors, and will only persist the last of any duplicate fields. + This is the default in v1.23+ - Strict: This will fail the request with + a BadRequest error if any unknown fields would be dropped from the object, + or if any duplicate fields are present. The error returned from the server + will contain all unknown and duplicate fields encountered.' + in: query + name: fieldValidation + schema: + type: string - description: Force is going to "force" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. @@ -63744,51 +69413,67 @@ paths: content: application/json: schema: - type: object - description: The JSON schema of the Resource to patch. + $ref: '#/components/schemas/v1.Patch' required: true responses: "200": content: application/json: schema: - type: object + $ref: '#/components/schemas/v1beta1.DeviceClass' + application/yaml: + schema: + $ref: '#/components/schemas/v1beta1.DeviceClass' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1beta1.DeviceClass' + application/cbor: + schema: + $ref: '#/components/schemas/v1beta1.DeviceClass' description: OK + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/v1beta1.DeviceClass' + application/yaml: + schema: + $ref: '#/components/schemas/v1beta1.DeviceClass' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1beta1.DeviceClass' + application/cbor: + schema: + $ref: '#/components/schemas/v1beta1.DeviceClass' + description: Created "401": content: {} description: Unauthorized tags: - - custom_objects + - resource_v1beta1 + x-kubernetes-action: patch + x-kubernetes-group-version-kind: + group: resource.k8s.io + kind: DeviceClass + version: v1beta1 x-codegen-request-body-name: body x-contentType: application/json x-accepts: application/json put: - description: replace the specified cluster scoped custom object - operationId: replaceClusterCustomObject + description: replace the specified DeviceClass + operationId: replaceDeviceClass parameters: - - description: the custom resource's group - in: path - name: group - required: true - schema: - type: string - - description: the custom resource's version - in: path - name: version - required: true - schema: - type: string - - description: the custom object's plural name. For TPRs this would be lowercase - plural kind. + - description: name of the DeviceClass in: path - name: plural + name: name required: true schema: type: string - - description: the custom object's name - in: path - name: name - required: true + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). + in: query + name: pretty schema: type: string - description: 'When present, indicates that modifications should not be persisted. @@ -63806,105 +69491,97 @@ paths: name: fieldManager schema: type: string + - description: 'fieldValidation instructs the server on how to handle objects + in the request (POST/PUT/PATCH) containing unknown or duplicate fields. + Valid values are: - Ignore: This will ignore any unknown fields that are + silently dropped from the object, and will ignore all but the last duplicate + field that the decoder encounters. This is the default behavior prior to + v1.23. - Warn: This will send a warning via the standard warning response + header for each unknown field that is dropped from the object, and for each + duplicate field that is encountered. The request will still succeed if there + are no other errors, and will only persist the last of any duplicate fields. + This is the default in v1.23+ - Strict: This will fail the request with + a BadRequest error if any unknown fields would be dropped from the object, + or if any duplicate fields are present. The error returned from the server + will contain all unknown and duplicate fields encountered.' + in: query + name: fieldValidation + schema: + type: string requestBody: content: application/json: schema: - type: object - description: The JSON schema of the Resource to replace. + $ref: '#/components/schemas/v1beta1.DeviceClass' required: true responses: "200": content: application/json: schema: - type: object + $ref: '#/components/schemas/v1beta1.DeviceClass' + application/yaml: + schema: + $ref: '#/components/schemas/v1beta1.DeviceClass' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1beta1.DeviceClass' + application/cbor: + schema: + $ref: '#/components/schemas/v1beta1.DeviceClass' description: OK - "401": - content: {} - description: Unauthorized - tags: - - custom_objects - x-codegen-request-body-name: body - x-contentType: application/json - x-accepts: application/json - /apis/{group}/{version}/{plural}/{name}/status: - get: - description: read status of the specified cluster scoped custom object - operationId: getClusterCustomObjectStatus - parameters: - - description: the custom resource's group - in: path - name: group - required: true - schema: - type: string - - description: the custom resource's version - in: path - name: version - required: true - schema: - type: string - - description: the custom resource's plural name. For TPRs this would be lowercase - plural kind. - in: path - name: plural - required: true - schema: - type: string - - description: the custom object's name - in: path - name: name - required: true - schema: - type: string - responses: - "200": + "201": content: application/json: schema: - type: object + $ref: '#/components/schemas/v1beta1.DeviceClass' application/yaml: schema: - type: object + $ref: '#/components/schemas/v1beta1.DeviceClass' application/vnd.kubernetes.protobuf: schema: - type: object - description: OK + $ref: '#/components/schemas/v1beta1.DeviceClass' + application/cbor: + schema: + $ref: '#/components/schemas/v1beta1.DeviceClass' + description: Created "401": content: {} description: Unauthorized tags: - - custom_objects + - resource_v1beta1 + x-kubernetes-action: put + x-kubernetes-group-version-kind: + group: resource.k8s.io + kind: DeviceClass + version: v1beta1 + x-codegen-request-body-name: body + x-contentType: application/json x-accepts: application/json - patch: - description: partially update status of the specified cluster scoped custom - object - operationId: patchClusterCustomObjectStatus + /apis/resource.k8s.io/v1beta1/namespaces/{namespace}/resourceclaims: + delete: + description: delete collection of ResourceClaim + operationId: deleteCollectionNamespacedResourceClaim parameters: - - description: the custom resource's group - in: path - name: group - required: true - schema: - type: string - - description: the custom resource's version + - description: object name and auth scope, such as for teams and projects in: path - name: version + name: namespace required: true schema: type: string - - description: the custom resource's plural name. For TPRs this would be lowercase - plural kind. - in: path - name: plural - required: true + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). + in: query + name: pretty schema: type: string - - description: the custom object's name - in: path - name: name - required: true + - description: |- + 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. + in: query + name: continue schema: type: string - description: 'When present, indicates that modifications should not be persisted. @@ -63915,290 +69592,295 @@ paths: name: dryRun schema: type: string - - description: fieldManager is a name associated with the actor or entity that - is making these changes. The value must be less than or 128 characters long, - and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - This field is required for apply requests (application/apply-patch) but - optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). + - description: A selector to restrict the list of returned objects by their + fields. Defaults to everything. in: query - name: fieldManager + name: fieldSelector schema: type: string - - description: Force is going to "force" Apply requests. It means user will - re-acquire conflicting fields owned by other people. Force flag must be - unset for non-apply patch requests. + - description: 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. in: query - name: force + name: gracePeriodSeconds + schema: + type: integer + - description: 'if set to true, it will trigger an unsafe deletion of the resource + in case the normal deletion flow fails with a corrupt object error. A resource + is considered corrupt if it can not be retrieved from the underlying storage + successfully because of a) its data can not be transformed e.g. decryption + failure, or b) it fails to decode into an object. NOTE: unsafe deletion + ignores finalizer constraints, skips precondition checks, and removes the + object from the storage. WARNING: This may potentially break the cluster + if the workload associated with the resource being unsafe-deleted relies + on normal deletion flow. Use only if you REALLY know what you are doing. + The default value is false, and the user must opt in to enable it' + in: query + name: ignoreStoreReadErrorWithClusterBreakingPotential schema: type: boolean - requestBody: - content: - application/json: - schema: - description: The JSON schema of the Resource to patch. - type: object - required: true - responses: - "200": - content: - application/json: - schema: - type: object - application/yaml: - schema: - type: object - application/vnd.kubernetes.protobuf: - schema: - type: object - description: OK - "401": - content: {} - description: Unauthorized - tags: - - custom_objects - x-codegen-request-body-name: body - x-contentType: application/json - x-accepts: application/json - put: - description: replace status of the cluster scoped specified custom object - operationId: replaceClusterCustomObjectStatus - parameters: - - description: the custom resource's group - in: path - name: group - required: true + - description: A selector to restrict the list of returned objects by their + labels. Defaults to everything. + in: query + name: labelSelector schema: type: string - - description: the custom resource's version - in: path - name: version - required: true + - description: |- + limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. + + The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + in: query + name: limit schema: - type: string - - description: the custom resource's plural name. For TPRs this would be lowercase - plural kind. - in: path - name: plural - required: true + type: integer + - description: '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.' + in: query + name: orphanDependents schema: - type: string - - description: the custom object's name - in: path - name: name - required: true + type: boolean + - description: '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.' + in: query + name: propagationPolicy schema: type: string - - description: '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' + - description: |- + resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset in: query - name: dryRun + name: resourceVersion schema: type: string - - description: fieldManager is a name associated with the actor or entity that - is making these changes. The value must be less than or 128 characters long, - and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + - description: |- + resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset in: query - name: fieldManager + name: resourceVersionMatch schema: type: string + - description: |- + `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic "Bookmark" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `"k8s.io/initial-events-end": "true"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. + + When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan + is interpreted as "data at least as new as the provided `resourceVersion`" + and the bookmark event is send when the state is synced + to a `resourceVersion` at least as fresh as the one provided by the ListOptions. + If `resourceVersion` is unset, this is interpreted as "consistent read" and the + bookmark event is send when the state is synced at least to the moment + when request started being processed. + - `resourceVersionMatch` set to any other value or unset + Invalid error is returned. + + Defaults to true if `resourceVersion=""` or `resourceVersion="0"` (for backward compatibility reasons) and to false otherwise. + in: query + name: sendInitialEvents + schema: + type: boolean + - description: Timeout for the list/watch call. This limits the duration of + the call, regardless of any activity or inactivity. + in: query + name: timeoutSeconds + schema: + type: integer requestBody: content: application/json: schema: - type: object - required: true + $ref: '#/components/schemas/v1.DeleteOptions' + required: false responses: "200": content: application/json: schema: - type: object + $ref: '#/components/schemas/v1.Status' application/yaml: schema: - type: object + $ref: '#/components/schemas/v1.Status' application/vnd.kubernetes.protobuf: schema: - type: object - description: OK - "201": - content: - application/json: - schema: - type: object - application/yaml: - schema: - type: object - application/vnd.kubernetes.protobuf: + $ref: '#/components/schemas/v1.Status' + application/cbor: schema: - type: object - description: Created + $ref: '#/components/schemas/v1.Status' + description: OK "401": content: {} description: Unauthorized tags: - - custom_objects + - resource_v1beta1 + x-kubernetes-action: deletecollection + x-kubernetes-group-version-kind: + group: resource.k8s.io + kind: ResourceClaim + version: v1beta1 x-codegen-request-body-name: body x-contentType: application/json x-accepts: application/json - /apis/{group}/{version}/{plural}/{name}/scale: get: - description: read scale of the specified custom object - operationId: getClusterCustomObjectScale + description: list or watch objects of kind ResourceClaim + operationId: listNamespacedResourceClaim parameters: - - description: the custom resource's group + - description: object name and auth scope, such as for teams and projects in: path - name: group + name: namespace required: true schema: type: string - - description: the custom resource's version - in: path - name: version - required: true + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). + in: query + name: pretty schema: type: string - - description: the custom resource's plural name. For TPRs this would be lowercase - plural kind. - in: path - name: plural - required: true + - description: 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. + in: query + name: allowWatchBookmarks schema: - type: string - - description: the custom object's name - in: path - name: name - required: true + type: boolean + - description: |- + 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. + in: query + name: continue schema: type: string - responses: - "200": - content: - application/json: - schema: - type: object - application/yaml: - schema: - type: object - application/vnd.kubernetes.protobuf: - schema: - type: object - description: OK - "401": - content: {} - description: Unauthorized - tags: - - custom_objects - x-accepts: application/json - patch: - description: partially update scale of the specified cluster scoped custom object - operationId: patchClusterCustomObjectScale - parameters: - - description: the custom resource's group - in: path - name: group - required: true + - description: A selector to restrict the list of returned objects by their + fields. Defaults to everything. + in: query + name: fieldSelector schema: type: string - - description: the custom resource's version - in: path - name: version - required: true + - description: A selector to restrict the list of returned objects by their + labels. Defaults to everything. + in: query + name: labelSelector schema: type: string - - description: the custom resource's plural name. For TPRs this would be lowercase - plural kind. - in: path - name: plural - required: true + - description: |- + limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. + + The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + in: query + name: limit schema: - type: string - - description: the custom object's name - in: path - name: name - required: true + type: integer + - description: |- + resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersion schema: type: string - - description: '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' + - description: |- + resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset in: query - name: dryRun + name: resourceVersionMatch schema: type: string - - description: fieldManager is a name associated with the actor or entity that - is making these changes. The value must be less than or 128 characters long, - and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - This field is required for apply requests (application/apply-patch) but - optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). + - description: |- + `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic "Bookmark" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `"k8s.io/initial-events-end": "true"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. + + When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan + is interpreted as "data at least as new as the provided `resourceVersion`" + and the bookmark event is send when the state is synced + to a `resourceVersion` at least as fresh as the one provided by the ListOptions. + If `resourceVersion` is unset, this is interpreted as "consistent read" and the + bookmark event is send when the state is synced at least to the moment + when request started being processed. + - `resourceVersionMatch` set to any other value or unset + Invalid error is returned. + + Defaults to true if `resourceVersion=""` or `resourceVersion="0"` (for backward compatibility reasons) and to false otherwise. in: query - name: fieldManager + name: sendInitialEvents schema: - type: string - - description: Force is going to "force" Apply requests. It means user will - re-acquire conflicting fields owned by other people. Force flag must be - unset for non-apply patch requests. + type: boolean + - description: Timeout for the list/watch call. This limits the duration of + the call, regardless of any activity or inactivity. in: query - name: force + name: timeoutSeconds + schema: + type: integer + - description: Watch for changes to the described resources and return them + as a stream of add, update, and remove notifications. Specify resourceVersion. + in: query + name: watch schema: type: boolean - requestBody: - content: - application/json: - schema: - description: The JSON schema of the Resource to patch. - type: object - required: true responses: "200": content: application/json: schema: - type: object + $ref: '#/components/schemas/v1beta1.ResourceClaimList' application/yaml: schema: - type: object + $ref: '#/components/schemas/v1beta1.ResourceClaimList' application/vnd.kubernetes.protobuf: schema: - type: object + $ref: '#/components/schemas/v1beta1.ResourceClaimList' + application/cbor: + schema: + $ref: '#/components/schemas/v1beta1.ResourceClaimList' + application/json;stream=watch: + schema: + $ref: '#/components/schemas/v1beta1.ResourceClaimList' + application/vnd.kubernetes.protobuf;stream=watch: + schema: + $ref: '#/components/schemas/v1beta1.ResourceClaimList' + application/cbor-seq: + schema: + $ref: '#/components/schemas/v1beta1.ResourceClaimList' description: OK "401": content: {} description: Unauthorized tags: - - custom_objects - x-codegen-request-body-name: body - x-contentType: application/json + - resource_v1beta1 + x-kubernetes-action: list + x-kubernetes-group-version-kind: + group: resource.k8s.io + kind: ResourceClaim + version: v1beta1 x-accepts: application/json - put: - description: replace scale of the specified cluster scoped custom object - operationId: replaceClusterCustomObjectScale + post: + description: create a ResourceClaim + operationId: createNamespacedResourceClaim parameters: - - description: the custom resource's group - in: path - name: group - required: true - schema: - type: string - - description: the custom resource's version - in: path - name: version - required: true - schema: - type: string - - description: the custom resource's plural name. For TPRs this would be lowercase - plural kind. + - description: object name and auth scope, such as for teams and projects in: path - name: plural + name: namespace required: true schema: type: string - - description: the custom object's name - in: path - name: name - required: true + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). + in: query + name: pretty schema: type: string - description: 'When present, indicates that modifications should not be persisted. @@ -64216,79 +69898,118 @@ paths: name: fieldManager schema: type: string + - description: 'fieldValidation instructs the server on how to handle objects + in the request (POST/PUT/PATCH) containing unknown or duplicate fields. + Valid values are: - Ignore: This will ignore any unknown fields that are + silently dropped from the object, and will ignore all but the last duplicate + field that the decoder encounters. This is the default behavior prior to + v1.23. - Warn: This will send a warning via the standard warning response + header for each unknown field that is dropped from the object, and for each + duplicate field that is encountered. The request will still succeed if there + are no other errors, and will only persist the last of any duplicate fields. + This is the default in v1.23+ - Strict: This will fail the request with + a BadRequest error if any unknown fields would be dropped from the object, + or if any duplicate fields are present. The error returned from the server + will contain all unknown and duplicate fields encountered.' + in: query + name: fieldValidation + schema: + type: string requestBody: content: application/json: schema: - type: object + $ref: '#/components/schemas/v1beta1.ResourceClaim' required: true responses: "200": content: application/json: schema: - type: object + $ref: '#/components/schemas/v1beta1.ResourceClaim' application/yaml: schema: - type: object + $ref: '#/components/schemas/v1beta1.ResourceClaim' application/vnd.kubernetes.protobuf: schema: - type: object + $ref: '#/components/schemas/v1beta1.ResourceClaim' + application/cbor: + schema: + $ref: '#/components/schemas/v1beta1.ResourceClaim' description: OK "201": content: application/json: schema: - type: object + $ref: '#/components/schemas/v1beta1.ResourceClaim' application/yaml: schema: - type: object + $ref: '#/components/schemas/v1beta1.ResourceClaim' application/vnd.kubernetes.protobuf: schema: - type: object + $ref: '#/components/schemas/v1beta1.ResourceClaim' + application/cbor: + schema: + $ref: '#/components/schemas/v1beta1.ResourceClaim' description: Created + "202": + content: + application/json: + schema: + $ref: '#/components/schemas/v1beta1.ResourceClaim' + application/yaml: + schema: + $ref: '#/components/schemas/v1beta1.ResourceClaim' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1beta1.ResourceClaim' + application/cbor: + schema: + $ref: '#/components/schemas/v1beta1.ResourceClaim' + description: Accepted "401": content: {} description: Unauthorized tags: - - custom_objects + - resource_v1beta1 + x-kubernetes-action: post + x-kubernetes-group-version-kind: + group: resource.k8s.io + kind: ResourceClaim + version: v1beta1 x-codegen-request-body-name: body x-contentType: application/json x-accepts: application/json - /apis/{group}/{version}/namespaces/{namespace}/{plural}/{name}: + /apis/resource.k8s.io/v1beta1/namespaces/{namespace}/resourceclaims/{name}: delete: - description: Deletes the specified namespace scoped custom object - operationId: deleteNamespacedCustomObject + description: delete a ResourceClaim + operationId: deleteNamespacedResourceClaim parameters: - - description: the custom resource's group - in: path - name: group - required: true - schema: - type: string - - description: the custom resource's version + - description: name of the ResourceClaim in: path - name: version + name: name required: true schema: type: string - - description: The custom resource's namespace + - description: object name and auth scope, such as for teams and projects in: path name: namespace required: true schema: type: string - - description: the custom resource's plural name. For TPRs this would be lowercase - plural kind. - in: path - name: plural - required: true + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). + in: query + name: pretty schema: type: string - - description: the custom object's name - in: path - name: name - required: true + - description: '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' + in: query + name: dryRun schema: type: string - description: The duration in seconds before the object should be deleted. @@ -64300,6 +70021,20 @@ paths: name: gracePeriodSeconds schema: type: integer + - description: 'if set to true, it will trigger an unsafe deletion of the resource + in case the normal deletion flow fails with a corrupt object error. A resource + is considered corrupt if it can not be retrieved from the underlying storage + successfully because of a) its data can not be transformed e.g. decryption + failure, or b) it fails to decode into an object. NOTE: unsafe deletion + ignores finalizer constraints, skips precondition checks, and removes the + object from the storage. WARNING: This may potentially break the cluster + if the workload associated with the resource being unsafe-deleted relies + on normal deletion flow. Use only if you REALLY know what you are doing. + The default value is false, and the user must opt in to enable it' + in: query + name: ignoreStoreReadErrorWithClusterBreakingPotential + schema: + type: boolean - description: '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 @@ -64308,22 +70043,17 @@ paths: name: orphanDependents schema: type: boolean - - description: Whether and how garbage collection will be performed. Either + - description: '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. + 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.' in: query name: propagationPolicy schema: type: string - - description: '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' - in: query - name: dryRun - schema: - type: string requestBody: content: application/json: @@ -64335,49 +70065,66 @@ paths: content: application/json: schema: - type: object + $ref: '#/components/schemas/v1beta1.ResourceClaim' + application/yaml: + schema: + $ref: '#/components/schemas/v1beta1.ResourceClaim' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1beta1.ResourceClaim' + application/cbor: + schema: + $ref: '#/components/schemas/v1beta1.ResourceClaim' description: OK + "202": + content: + application/json: + schema: + $ref: '#/components/schemas/v1beta1.ResourceClaim' + application/yaml: + schema: + $ref: '#/components/schemas/v1beta1.ResourceClaim' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1beta1.ResourceClaim' + application/cbor: + schema: + $ref: '#/components/schemas/v1beta1.ResourceClaim' + description: Accepted "401": content: {} description: Unauthorized tags: - - custom_objects + - resource_v1beta1 + x-kubernetes-action: delete + x-kubernetes-group-version-kind: + group: resource.k8s.io + kind: ResourceClaim + version: v1beta1 x-codegen-request-body-name: body x-contentType: application/json x-accepts: application/json get: - description: Returns a namespace scoped custom object - operationId: getNamespacedCustomObject + description: read the specified ResourceClaim + operationId: readNamespacedResourceClaim parameters: - - description: the custom resource's group - in: path - name: group - required: true - schema: - type: string - - description: the custom resource's version + - description: name of the ResourceClaim in: path - name: version + name: name required: true schema: type: string - - description: The custom resource's namespace + - description: object name and auth scope, such as for teams and projects in: path name: namespace required: true schema: type: string - - description: the custom resource's plural name. For TPRs this would be lowercase - plural kind. - in: path - name: plural - required: true - schema: - type: string - - description: the custom object's name - in: path - name: name - required: true + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). + in: query + name: pretty schema: type: string responses: @@ -64385,47 +70132,49 @@ paths: content: application/json: schema: - type: object - description: A single Resource + $ref: '#/components/schemas/v1beta1.ResourceClaim' + application/yaml: + schema: + $ref: '#/components/schemas/v1beta1.ResourceClaim' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1beta1.ResourceClaim' + application/cbor: + schema: + $ref: '#/components/schemas/v1beta1.ResourceClaim' + description: OK "401": content: {} description: Unauthorized tags: - - custom_objects + - resource_v1beta1 + x-kubernetes-action: get + x-kubernetes-group-version-kind: + group: resource.k8s.io + kind: ResourceClaim + version: v1beta1 x-accepts: application/json patch: - description: patch the specified namespace scoped custom object - operationId: patchNamespacedCustomObject + description: partially update the specified ResourceClaim + operationId: patchNamespacedResourceClaim parameters: - - description: the custom resource's group - in: path - name: group - required: true - schema: - type: string - - description: the custom resource's version + - description: name of the ResourceClaim in: path - name: version + name: name required: true schema: type: string - - description: The custom resource's namespace + - description: object name and auth scope, such as for teams and projects in: path name: namespace required: true schema: type: string - - description: the custom resource's plural name. For TPRs this would be lowercase - plural kind. - in: path - name: plural - required: true - schema: - type: string - - description: the custom object's name - in: path - name: name - required: true + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). + in: query + name: pretty schema: type: string - description: 'When present, indicates that modifications should not be persisted. @@ -64445,6 +70194,23 @@ paths: name: fieldManager schema: type: string + - description: 'fieldValidation instructs the server on how to handle objects + in the request (POST/PUT/PATCH) containing unknown or duplicate fields. + Valid values are: - Ignore: This will ignore any unknown fields that are + silently dropped from the object, and will ignore all but the last duplicate + field that the decoder encounters. This is the default behavior prior to + v1.23. - Warn: This will send a warning via the standard warning response + header for each unknown field that is dropped from the object, and for each + duplicate field that is encountered. The request will still succeed if there + are no other errors, and will only persist the last of any duplicate fields. + This is the default in v1.23+ - Strict: This will fail the request with + a BadRequest error if any unknown fields would be dropped from the object, + or if any duplicate fields are present. The error returned from the server + will contain all unknown and duplicate fields encountered.' + in: query + name: fieldValidation + schema: + type: string - description: Force is going to "force" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. @@ -64456,57 +70222,73 @@ paths: content: application/json: schema: - type: object - description: The JSON schema of the Resource to patch. + $ref: '#/components/schemas/v1.Patch' required: true responses: "200": content: application/json: schema: - type: object + $ref: '#/components/schemas/v1beta1.ResourceClaim' + application/yaml: + schema: + $ref: '#/components/schemas/v1beta1.ResourceClaim' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1beta1.ResourceClaim' + application/cbor: + schema: + $ref: '#/components/schemas/v1beta1.ResourceClaim' description: OK + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/v1beta1.ResourceClaim' + application/yaml: + schema: + $ref: '#/components/schemas/v1beta1.ResourceClaim' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1beta1.ResourceClaim' + application/cbor: + schema: + $ref: '#/components/schemas/v1beta1.ResourceClaim' + description: Created "401": content: {} description: Unauthorized tags: - - custom_objects + - resource_v1beta1 + x-kubernetes-action: patch + x-kubernetes-group-version-kind: + group: resource.k8s.io + kind: ResourceClaim + version: v1beta1 x-codegen-request-body-name: body x-contentType: application/json x-accepts: application/json put: - description: replace the specified namespace scoped custom object - operationId: replaceNamespacedCustomObject + description: replace the specified ResourceClaim + operationId: replaceNamespacedResourceClaim parameters: - - description: the custom resource's group - in: path - name: group - required: true - schema: - type: string - - description: the custom resource's version + - description: name of the ResourceClaim in: path - name: version + name: name required: true schema: type: string - - description: The custom resource's namespace + - description: object name and auth scope, such as for teams and projects in: path name: namespace required: true schema: type: string - - description: the custom resource's plural name. For TPRs this would be lowercase - plural kind. - in: path - name: plural - required: true - schema: - type: string - - description: the custom object's name - in: path - name: name - required: true + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). + in: query + name: pretty schema: type: string - description: 'When present, indicates that modifications should not be persisted. @@ -64524,62 +70306,95 @@ paths: name: fieldManager schema: type: string + - description: 'fieldValidation instructs the server on how to handle objects + in the request (POST/PUT/PATCH) containing unknown or duplicate fields. + Valid values are: - Ignore: This will ignore any unknown fields that are + silently dropped from the object, and will ignore all but the last duplicate + field that the decoder encounters. This is the default behavior prior to + v1.23. - Warn: This will send a warning via the standard warning response + header for each unknown field that is dropped from the object, and for each + duplicate field that is encountered. The request will still succeed if there + are no other errors, and will only persist the last of any duplicate fields. + This is the default in v1.23+ - Strict: This will fail the request with + a BadRequest error if any unknown fields would be dropped from the object, + or if any duplicate fields are present. The error returned from the server + will contain all unknown and duplicate fields encountered.' + in: query + name: fieldValidation + schema: + type: string requestBody: content: application/json: schema: - type: object - description: The JSON schema of the Resource to replace. + $ref: '#/components/schemas/v1beta1.ResourceClaim' required: true responses: "200": content: application/json: schema: - type: object + $ref: '#/components/schemas/v1beta1.ResourceClaim' + application/yaml: + schema: + $ref: '#/components/schemas/v1beta1.ResourceClaim' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1beta1.ResourceClaim' + application/cbor: + schema: + $ref: '#/components/schemas/v1beta1.ResourceClaim' description: OK + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/v1beta1.ResourceClaim' + application/yaml: + schema: + $ref: '#/components/schemas/v1beta1.ResourceClaim' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1beta1.ResourceClaim' + application/cbor: + schema: + $ref: '#/components/schemas/v1beta1.ResourceClaim' + description: Created "401": content: {} description: Unauthorized tags: - - custom_objects + - resource_v1beta1 + x-kubernetes-action: put + x-kubernetes-group-version-kind: + group: resource.k8s.io + kind: ResourceClaim + version: v1beta1 x-codegen-request-body-name: body x-contentType: application/json x-accepts: application/json - /apis/{group}/{version}/namespaces/{namespace}/{plural}/{name}/status: + /apis/resource.k8s.io/v1beta1/namespaces/{namespace}/resourceclaims/{name}/status: get: - description: read status of the specified namespace scoped custom object - operationId: getNamespacedCustomObjectStatus + description: read status of the specified ResourceClaim + operationId: readNamespacedResourceClaimStatus parameters: - - description: the custom resource's group - in: path - name: group - required: true - schema: - type: string - - description: the custom resource's version + - description: name of the ResourceClaim in: path - name: version + name: name required: true schema: type: string - - description: The custom resource's namespace + - description: object name and auth scope, such as for teams and projects in: path name: namespace required: true schema: type: string - - description: the custom resource's plural name. For TPRs this would be lowercase - plural kind. - in: path - name: plural - required: true - schema: - type: string - - description: the custom object's name - in: path - name: name - required: true + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). + in: query + name: pretty schema: type: string responses: @@ -64587,54 +70402,49 @@ paths: content: application/json: schema: - type: object + $ref: '#/components/schemas/v1beta1.ResourceClaim' application/yaml: schema: - type: object + $ref: '#/components/schemas/v1beta1.ResourceClaim' application/vnd.kubernetes.protobuf: schema: - type: object + $ref: '#/components/schemas/v1beta1.ResourceClaim' + application/cbor: + schema: + $ref: '#/components/schemas/v1beta1.ResourceClaim' description: OK "401": content: {} description: Unauthorized tags: - - custom_objects + - resource_v1beta1 + x-kubernetes-action: get + x-kubernetes-group-version-kind: + group: resource.k8s.io + kind: ResourceClaim + version: v1beta1 x-accepts: application/json patch: - description: partially update status of the specified namespace scoped custom - object - operationId: patchNamespacedCustomObjectStatus + description: partially update status of the specified ResourceClaim + operationId: patchNamespacedResourceClaimStatus parameters: - - description: the custom resource's group - in: path - name: group - required: true - schema: - type: string - - description: the custom resource's version + - description: name of the ResourceClaim in: path - name: version + name: name required: true schema: type: string - - description: The custom resource's namespace + - description: object name and auth scope, such as for teams and projects in: path name: namespace required: true schema: type: string - - description: the custom resource's plural name. For TPRs this would be lowercase - plural kind. - in: path - name: plural - required: true - schema: - type: string - - description: the custom object's name - in: path - name: name - required: true + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). + in: query + name: pretty schema: type: string - description: 'When present, indicates that modifications should not be persisted. @@ -64654,6 +70464,23 @@ paths: name: fieldManager schema: type: string + - description: 'fieldValidation instructs the server on how to handle objects + in the request (POST/PUT/PATCH) containing unknown or duplicate fields. + Valid values are: - Ignore: This will ignore any unknown fields that are + silently dropped from the object, and will ignore all but the last duplicate + field that the decoder encounters. This is the default behavior prior to + v1.23. - Warn: This will send a warning via the standard warning response + header for each unknown field that is dropped from the object, and for each + duplicate field that is encountered. The request will still succeed if there + are no other errors, and will only persist the last of any duplicate fields. + This is the default in v1.23+ - Strict: This will fail the request with + a BadRequest error if any unknown fields would be dropped from the object, + or if any duplicate fields are present. The error returned from the server + will contain all unknown and duplicate fields encountered.' + in: query + name: fieldValidation + schema: + type: string - description: Force is going to "force" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. @@ -64665,63 +70492,73 @@ paths: content: application/json: schema: - description: The JSON schema of the Resource to patch. - type: object + $ref: '#/components/schemas/v1.Patch' required: true responses: "200": content: application/json: schema: - type: object + $ref: '#/components/schemas/v1beta1.ResourceClaim' application/yaml: schema: - type: object + $ref: '#/components/schemas/v1beta1.ResourceClaim' application/vnd.kubernetes.protobuf: schema: - type: object + $ref: '#/components/schemas/v1beta1.ResourceClaim' + application/cbor: + schema: + $ref: '#/components/schemas/v1beta1.ResourceClaim' description: OK + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/v1beta1.ResourceClaim' + application/yaml: + schema: + $ref: '#/components/schemas/v1beta1.ResourceClaim' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1beta1.ResourceClaim' + application/cbor: + schema: + $ref: '#/components/schemas/v1beta1.ResourceClaim' + description: Created "401": content: {} description: Unauthorized tags: - - custom_objects + - resource_v1beta1 + x-kubernetes-action: patch + x-kubernetes-group-version-kind: + group: resource.k8s.io + kind: ResourceClaim + version: v1beta1 x-codegen-request-body-name: body x-contentType: application/json x-accepts: application/json put: - description: replace status of the specified namespace scoped custom object - operationId: replaceNamespacedCustomObjectStatus + description: replace status of the specified ResourceClaim + operationId: replaceNamespacedResourceClaimStatus parameters: - - description: the custom resource's group - in: path - name: group - required: true - schema: - type: string - - description: the custom resource's version + - description: name of the ResourceClaim in: path - name: version + name: name required: true schema: type: string - - description: The custom resource's namespace + - description: object name and auth scope, such as for teams and projects in: path name: namespace required: true schema: type: string - - description: the custom resource's plural name. For TPRs this would be lowercase - plural kind. - in: path - name: plural - required: true - schema: - type: string - - description: the custom object's name - in: path - name: name - required: true + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). + in: query + name: pretty schema: type: string - description: 'When present, indicates that modifications should not be persisted. @@ -64739,223 +70576,398 @@ paths: name: fieldManager schema: type: string + - description: 'fieldValidation instructs the server on how to handle objects + in the request (POST/PUT/PATCH) containing unknown or duplicate fields. + Valid values are: - Ignore: This will ignore any unknown fields that are + silently dropped from the object, and will ignore all but the last duplicate + field that the decoder encounters. This is the default behavior prior to + v1.23. - Warn: This will send a warning via the standard warning response + header for each unknown field that is dropped from the object, and for each + duplicate field that is encountered. The request will still succeed if there + are no other errors, and will only persist the last of any duplicate fields. + This is the default in v1.23+ - Strict: This will fail the request with + a BadRequest error if any unknown fields would be dropped from the object, + or if any duplicate fields are present. The error returned from the server + will contain all unknown and duplicate fields encountered.' + in: query + name: fieldValidation + schema: + type: string requestBody: content: application/json: schema: - type: object + $ref: '#/components/schemas/v1beta1.ResourceClaim' required: true responses: "200": content: application/json: schema: - type: object + $ref: '#/components/schemas/v1beta1.ResourceClaim' application/yaml: schema: - type: object + $ref: '#/components/schemas/v1beta1.ResourceClaim' application/vnd.kubernetes.protobuf: schema: - type: object + $ref: '#/components/schemas/v1beta1.ResourceClaim' + application/cbor: + schema: + $ref: '#/components/schemas/v1beta1.ResourceClaim' description: OK "201": content: application/json: schema: - type: object + $ref: '#/components/schemas/v1beta1.ResourceClaim' application/yaml: schema: - type: object + $ref: '#/components/schemas/v1beta1.ResourceClaim' application/vnd.kubernetes.protobuf: schema: - type: object + $ref: '#/components/schemas/v1beta1.ResourceClaim' + application/cbor: + schema: + $ref: '#/components/schemas/v1beta1.ResourceClaim' description: Created "401": content: {} description: Unauthorized tags: - - custom_objects + - resource_v1beta1 + x-kubernetes-action: put + x-kubernetes-group-version-kind: + group: resource.k8s.io + kind: ResourceClaim + version: v1beta1 x-codegen-request-body-name: body x-contentType: application/json x-accepts: application/json - /apis/{group}/{version}/namespaces/{namespace}/{plural}/{name}/scale: - get: - description: read scale of the specified namespace scoped custom object - operationId: getNamespacedCustomObjectScale + /apis/resource.k8s.io/v1beta1/namespaces/{namespace}/resourceclaimtemplates: + delete: + description: delete collection of ResourceClaimTemplate + operationId: deleteCollectionNamespacedResourceClaimTemplate parameters: - - description: the custom resource's group + - description: object name and auth scope, such as for teams and projects in: path - name: group + name: namespace required: true schema: type: string - - description: the custom resource's version - in: path - name: version - required: true + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). + in: query + name: pretty schema: type: string - - description: The custom resource's namespace - in: path - name: namespace - required: true + - description: |- + 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. + in: query + name: continue schema: type: string - - description: the custom resource's plural name. For TPRs this would be lowercase - plural kind. - in: path - name: plural - required: true + - description: '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' + in: query + name: dryRun schema: type: string - - description: the custom object's name - in: path - name: name - required: true + - description: A selector to restrict the list of returned objects by their + fields. Defaults to everything. + in: query + name: fieldSelector schema: type: string - responses: - "200": - content: - application/json: - schema: - type: object - application/yaml: - schema: - type: object - application/vnd.kubernetes.protobuf: - schema: - type: object - description: OK - "401": - content: {} - description: Unauthorized - tags: - - custom_objects - x-accepts: application/json - patch: - description: partially update scale of the specified namespace scoped custom - object - operationId: patchNamespacedCustomObjectScale - parameters: - - description: the custom resource's group - in: path - name: group - required: true + - description: 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. + in: query + name: gracePeriodSeconds schema: - type: string - - description: the custom resource's version - in: path - name: version - required: true + type: integer + - description: 'if set to true, it will trigger an unsafe deletion of the resource + in case the normal deletion flow fails with a corrupt object error. A resource + is considered corrupt if it can not be retrieved from the underlying storage + successfully because of a) its data can not be transformed e.g. decryption + failure, or b) it fails to decode into an object. NOTE: unsafe deletion + ignores finalizer constraints, skips precondition checks, and removes the + object from the storage. WARNING: This may potentially break the cluster + if the workload associated with the resource being unsafe-deleted relies + on normal deletion flow. Use only if you REALLY know what you are doing. + The default value is false, and the user must opt in to enable it' + in: query + name: ignoreStoreReadErrorWithClusterBreakingPotential schema: - type: string - - description: The custom resource's namespace - in: path - name: namespace - required: true + type: boolean + - description: A selector to restrict the list of returned objects by their + labels. Defaults to everything. + in: query + name: labelSelector schema: type: string - - description: the custom resource's plural name. For TPRs this would be lowercase - plural kind. - in: path - name: plural - required: true + - description: |- + limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. + + The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + in: query + name: limit schema: - type: string - - description: the custom object's name - in: path - name: name - required: true + type: integer + - description: '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.' + in: query + name: orphanDependents + schema: + type: boolean + - description: '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.' + in: query + name: propagationPolicy schema: type: string - - description: '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' + - description: |- + resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset in: query - name: dryRun + name: resourceVersion schema: type: string - - description: fieldManager is a name associated with the actor or entity that - is making these changes. The value must be less than or 128 characters long, - and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - This field is required for apply requests (application/apply-patch) but - optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). + - description: |- + resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset in: query - name: fieldManager + name: resourceVersionMatch schema: type: string - - description: Force is going to "force" Apply requests. It means user will - re-acquire conflicting fields owned by other people. Force flag must be - unset for non-apply patch requests. + - description: |- + `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic "Bookmark" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `"k8s.io/initial-events-end": "true"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. + + When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan + is interpreted as "data at least as new as the provided `resourceVersion`" + and the bookmark event is send when the state is synced + to a `resourceVersion` at least as fresh as the one provided by the ListOptions. + If `resourceVersion` is unset, this is interpreted as "consistent read" and the + bookmark event is send when the state is synced at least to the moment + when request started being processed. + - `resourceVersionMatch` set to any other value or unset + Invalid error is returned. + + Defaults to true if `resourceVersion=""` or `resourceVersion="0"` (for backward compatibility reasons) and to false otherwise. in: query - name: force + name: sendInitialEvents schema: type: boolean + - description: Timeout for the list/watch call. This limits the duration of + the call, regardless of any activity or inactivity. + in: query + name: timeoutSeconds + schema: + type: integer requestBody: content: application/json: schema: - description: The JSON schema of the Resource to patch. - type: object - required: true + $ref: '#/components/schemas/v1.DeleteOptions' + required: false responses: "200": content: application/json: schema: - type: object + $ref: '#/components/schemas/v1.Status' application/yaml: schema: - type: object + $ref: '#/components/schemas/v1.Status' application/vnd.kubernetes.protobuf: schema: - type: object + $ref: '#/components/schemas/v1.Status' + application/cbor: + schema: + $ref: '#/components/schemas/v1.Status' description: OK "401": content: {} description: Unauthorized tags: - - custom_objects + - resource_v1beta1 + x-kubernetes-action: deletecollection + x-kubernetes-group-version-kind: + group: resource.k8s.io + kind: ResourceClaimTemplate + version: v1beta1 x-codegen-request-body-name: body x-contentType: application/json x-accepts: application/json - put: - description: replace scale of the specified namespace scoped custom object - operationId: replaceNamespacedCustomObjectScale + get: + description: list or watch objects of kind ResourceClaimTemplate + operationId: listNamespacedResourceClaimTemplate parameters: - - description: the custom resource's group - in: path - name: group - required: true - schema: - type: string - - description: the custom resource's version + - description: object name and auth scope, such as for teams and projects in: path - name: version + name: namespace required: true schema: type: string - - description: The custom resource's namespace - in: path - name: namespace - required: true + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). + in: query + name: pretty schema: type: string - - description: the custom resource's plural name. For TPRs this would be lowercase - plural kind. - in: path - name: plural - required: true + - description: 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. + in: query + name: allowWatchBookmarks + schema: + type: boolean + - description: |- + 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. + in: query + name: continue schema: type: string - - description: the custom object's name + - description: A selector to restrict the list of returned objects by their + fields. Defaults to everything. + in: query + name: fieldSelector + schema: + type: string + - description: A selector to restrict the list of returned objects by their + labels. Defaults to everything. + in: query + name: labelSelector + schema: + type: string + - description: |- + limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. + + The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + in: query + name: limit + schema: + type: integer + - description: |- + resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersion + schema: + type: string + - description: |- + resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersionMatch + schema: + type: string + - description: |- + `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic "Bookmark" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `"k8s.io/initial-events-end": "true"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. + + When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan + is interpreted as "data at least as new as the provided `resourceVersion`" + and the bookmark event is send when the state is synced + to a `resourceVersion` at least as fresh as the one provided by the ListOptions. + If `resourceVersion` is unset, this is interpreted as "consistent read" and the + bookmark event is send when the state is synced at least to the moment + when request started being processed. + - `resourceVersionMatch` set to any other value or unset + Invalid error is returned. + + Defaults to true if `resourceVersion=""` or `resourceVersion="0"` (for backward compatibility reasons) and to false otherwise. + in: query + name: sendInitialEvents + schema: + type: boolean + - description: Timeout for the list/watch call. This limits the duration of + the call, regardless of any activity or inactivity. + in: query + name: timeoutSeconds + schema: + type: integer + - description: Watch for changes to the described resources and return them + as a stream of add, update, and remove notifications. Specify resourceVersion. + in: query + name: watch + schema: + type: boolean + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1beta1.ResourceClaimTemplateList' + application/yaml: + schema: + $ref: '#/components/schemas/v1beta1.ResourceClaimTemplateList' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1beta1.ResourceClaimTemplateList' + application/cbor: + schema: + $ref: '#/components/schemas/v1beta1.ResourceClaimTemplateList' + application/json;stream=watch: + schema: + $ref: '#/components/schemas/v1beta1.ResourceClaimTemplateList' + application/vnd.kubernetes.protobuf;stream=watch: + schema: + $ref: '#/components/schemas/v1beta1.ResourceClaimTemplateList' + application/cbor-seq: + schema: + $ref: '#/components/schemas/v1beta1.ResourceClaimTemplateList' + description: OK + "401": + content: {} + description: Unauthorized + tags: + - resource_v1beta1 + x-kubernetes-action: list + x-kubernetes-group-version-kind: + group: resource.k8s.io + kind: ResourceClaimTemplate + version: v1beta1 + x-accepts: application/json + post: + description: create a ResourceClaimTemplate + operationId: createNamespacedResourceClaimTemplate + parameters: + - description: object name and auth scope, such as for teams and projects in: path - name: name + name: namespace required: true schema: type: string + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). + in: query + name: pretty + schema: + type: string - description: '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 @@ -64971,6797 +70983,24198 @@ paths: name: fieldManager schema: type: string + - description: 'fieldValidation instructs the server on how to handle objects + in the request (POST/PUT/PATCH) containing unknown or duplicate fields. + Valid values are: - Ignore: This will ignore any unknown fields that are + silently dropped from the object, and will ignore all but the last duplicate + field that the decoder encounters. This is the default behavior prior to + v1.23. - Warn: This will send a warning via the standard warning response + header for each unknown field that is dropped from the object, and for each + duplicate field that is encountered. The request will still succeed if there + are no other errors, and will only persist the last of any duplicate fields. + This is the default in v1.23+ - Strict: This will fail the request with + a BadRequest error if any unknown fields would be dropped from the object, + or if any duplicate fields are present. The error returned from the server + will contain all unknown and duplicate fields encountered.' + in: query + name: fieldValidation + schema: + type: string requestBody: content: application/json: schema: - type: object + $ref: '#/components/schemas/v1beta1.ResourceClaimTemplate' required: true responses: "200": content: application/json: schema: - type: object + $ref: '#/components/schemas/v1beta1.ResourceClaimTemplate' application/yaml: schema: - type: object + $ref: '#/components/schemas/v1beta1.ResourceClaimTemplate' application/vnd.kubernetes.protobuf: schema: - type: object + $ref: '#/components/schemas/v1beta1.ResourceClaimTemplate' + application/cbor: + schema: + $ref: '#/components/schemas/v1beta1.ResourceClaimTemplate' description: OK "201": content: application/json: schema: - type: object + $ref: '#/components/schemas/v1beta1.ResourceClaimTemplate' application/yaml: schema: - type: object + $ref: '#/components/schemas/v1beta1.ResourceClaimTemplate' application/vnd.kubernetes.protobuf: schema: - type: object + $ref: '#/components/schemas/v1beta1.ResourceClaimTemplate' + application/cbor: + schema: + $ref: '#/components/schemas/v1beta1.ResourceClaimTemplate' description: Created + "202": + content: + application/json: + schema: + $ref: '#/components/schemas/v1beta1.ResourceClaimTemplate' + application/yaml: + schema: + $ref: '#/components/schemas/v1beta1.ResourceClaimTemplate' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1beta1.ResourceClaimTemplate' + application/cbor: + schema: + $ref: '#/components/schemas/v1beta1.ResourceClaimTemplate' + description: Accepted "401": content: {} description: Unauthorized tags: - - custom_objects + - resource_v1beta1 + x-kubernetes-action: post + x-kubernetes-group-version-kind: + group: resource.k8s.io + kind: ResourceClaimTemplate + version: v1beta1 x-codegen-request-body-name: body x-contentType: application/json x-accepts: application/json - /.well-known/openid-configuration: - get: - description: get service account issuer OpenID configuration, also known as - the 'OIDC discovery doc' - operationId: getServiceAccountIssuerOpenIDConfiguration + /apis/resource.k8s.io/v1beta1/namespaces/{namespace}/resourceclaimtemplates/{name}: + delete: + description: delete a ResourceClaimTemplate + operationId: deleteNamespacedResourceClaimTemplate + parameters: + - description: name of the ResourceClaimTemplate + in: path + name: name + required: true + schema: + type: string + - description: object name and auth scope, such as for teams and projects + in: path + name: namespace + required: true + schema: + type: string + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). + in: query + name: pretty + schema: + type: string + - description: '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' + in: query + name: dryRun + schema: + type: string + - description: 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. + in: query + name: gracePeriodSeconds + schema: + type: integer + - description: 'if set to true, it will trigger an unsafe deletion of the resource + in case the normal deletion flow fails with a corrupt object error. A resource + is considered corrupt if it can not be retrieved from the underlying storage + successfully because of a) its data can not be transformed e.g. decryption + failure, or b) it fails to decode into an object. NOTE: unsafe deletion + ignores finalizer constraints, skips precondition checks, and removes the + object from the storage. WARNING: This may potentially break the cluster + if the workload associated with the resource being unsafe-deleted relies + on normal deletion flow. Use only if you REALLY know what you are doing. + The default value is false, and the user must opt in to enable it' + in: query + name: ignoreStoreReadErrorWithClusterBreakingPotential + schema: + type: boolean + - description: '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.' + in: query + name: orphanDependents + schema: + type: boolean + - description: '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.' + in: query + name: propagationPolicy + schema: + type: string + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/v1.DeleteOptions' + required: false responses: "200": content: application/json: schema: - type: string + $ref: '#/components/schemas/v1beta1.ResourceClaimTemplate' + application/yaml: + schema: + $ref: '#/components/schemas/v1beta1.ResourceClaimTemplate' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1beta1.ResourceClaimTemplate' + application/cbor: + schema: + $ref: '#/components/schemas/v1beta1.ResourceClaimTemplate' description: OK + "202": + content: + application/json: + schema: + $ref: '#/components/schemas/v1beta1.ResourceClaimTemplate' + application/yaml: + schema: + $ref: '#/components/schemas/v1beta1.ResourceClaimTemplate' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1beta1.ResourceClaimTemplate' + application/cbor: + schema: + $ref: '#/components/schemas/v1beta1.ResourceClaimTemplate' + description: Accepted "401": content: {} description: Unauthorized tags: - - WellKnown + - resource_v1beta1 + x-kubernetes-action: delete + x-kubernetes-group-version-kind: + group: resource.k8s.io + kind: ResourceClaimTemplate + version: v1beta1 + x-codegen-request-body-name: body + x-contentType: application/json x-accepts: application/json - /openid/v1/jwks: get: - description: get service account issuer OpenID JSON Web Key Set (contains public - token verification keys) - operationId: getServiceAccountIssuerOpenIDKeyset + description: read the specified ResourceClaimTemplate + operationId: readNamespacedResourceClaimTemplate + parameters: + - description: name of the ResourceClaimTemplate + in: path + name: name + required: true + schema: + type: string + - description: object name and auth scope, such as for teams and projects + in: path + name: namespace + required: true + schema: + type: string + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). + in: query + name: pretty + schema: + type: string responses: "200": content: - application/jwk-set+json: + application/json: schema: - type: string + $ref: '#/components/schemas/v1beta1.ResourceClaimTemplate' + application/yaml: + schema: + $ref: '#/components/schemas/v1beta1.ResourceClaimTemplate' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1beta1.ResourceClaimTemplate' + application/cbor: + schema: + $ref: '#/components/schemas/v1beta1.ResourceClaimTemplate' description: OK "401": content: {} description: Unauthorized tags: - - openid - x-accepts: application/jwk-set+json -components: - schemas: - v1.MatchCondition: - description: MatchCondition represents a condition which must by fulfilled for - a request to be sent to a webhook. - example: - expression: expression + - resource_v1beta1 + x-kubernetes-action: get + x-kubernetes-group-version-kind: + group: resource.k8s.io + kind: ResourceClaimTemplate + version: v1beta1 + x-accepts: application/json + patch: + description: partially update the specified ResourceClaimTemplate + operationId: patchNamespacedResourceClaimTemplate + parameters: + - description: name of the ResourceClaimTemplate + in: path name: name - properties: - expression: - description: |- - 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: + required: true + schema: + type: string + - description: object name and auth scope, such as for teams and projects + in: path + name: namespace + required: true + schema: + type: string + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). + in: query + name: pretty + schema: + type: string + - description: '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' + in: query + name: dryRun + schema: + type: string + - description: fieldManager is a name associated with the actor or entity that + is making these changes. The value must be less than or 128 characters long, + and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + This field is required for apply requests (application/apply-patch) but + optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). + in: query + name: fieldManager + schema: + type: string + - description: 'fieldValidation instructs the server on how to handle objects + in the request (POST/PUT/PATCH) containing unknown or duplicate fields. + Valid values are: - Ignore: This will ignore any unknown fields that are + silently dropped from the object, and will ignore all but the last duplicate + field that the decoder encounters. This is the default behavior prior to + v1.23. - Warn: This will send a warning via the standard warning response + header for each unknown field that is dropped from the object, and for each + duplicate field that is encountered. The request will still succeed if there + are no other errors, and will only persist the last of any duplicate fields. + This is the default in v1.23+ - Strict: This will fail the request with + a BadRequest error if any unknown fields would be dropped from the object, + or if any duplicate fields are present. The error returned from the server + will contain all unknown and duplicate fields encountered.' + in: query + name: fieldValidation + schema: + type: string + - description: Force is going to "force" Apply requests. It means user will + re-acquire conflicting fields owned by other people. Force flag must be + unset for non-apply patch requests. + in: query + name: force + schema: + type: boolean + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/v1.Patch' + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1beta1.ResourceClaimTemplate' + application/yaml: + schema: + $ref: '#/components/schemas/v1beta1.ResourceClaimTemplate' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1beta1.ResourceClaimTemplate' + application/cbor: + schema: + $ref: '#/components/schemas/v1beta1.ResourceClaimTemplate' + description: OK + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/v1beta1.ResourceClaimTemplate' + application/yaml: + schema: + $ref: '#/components/schemas/v1beta1.ResourceClaimTemplate' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1beta1.ResourceClaimTemplate' + application/cbor: + schema: + $ref: '#/components/schemas/v1beta1.ResourceClaimTemplate' + description: Created + "401": + content: {} + description: Unauthorized + tags: + - resource_v1beta1 + x-kubernetes-action: patch + x-kubernetes-group-version-kind: + group: resource.k8s.io + kind: ResourceClaimTemplate + version: v1beta1 + x-codegen-request-body-name: body + x-contentType: application/json + x-accepts: application/json + put: + description: replace the specified ResourceClaimTemplate + operationId: replaceNamespacedResourceClaimTemplate + parameters: + - description: name of the ResourceClaimTemplate + in: path + name: name + required: true + schema: + type: string + - description: object name and auth scope, such as for teams and projects + in: path + name: namespace + required: true + schema: + type: string + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). + in: query + name: pretty + schema: + type: string + - description: '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' + in: query + name: dryRun + schema: + type: string + - description: fieldManager is a name associated with the actor or entity that + is making these changes. The value must be less than or 128 characters long, + and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + in: query + name: fieldManager + schema: + type: string + - description: 'fieldValidation instructs the server on how to handle objects + in the request (POST/PUT/PATCH) containing unknown or duplicate fields. + Valid values are: - Ignore: This will ignore any unknown fields that are + silently dropped from the object, and will ignore all but the last duplicate + field that the decoder encounters. This is the default behavior prior to + v1.23. - Warn: This will send a warning via the standard warning response + header for each unknown field that is dropped from the object, and for each + duplicate field that is encountered. The request will still succeed if there + are no other errors, and will only persist the last of any duplicate fields. + This is the default in v1.23+ - Strict: This will fail the request with + a BadRequest error if any unknown fields would be dropped from the object, + or if any duplicate fields are present. The error returned from the server + will contain all unknown and duplicate fields encountered.' + in: query + name: fieldValidation + schema: + type: string + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/v1beta1.ResourceClaimTemplate' + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1beta1.ResourceClaimTemplate' + application/yaml: + schema: + $ref: '#/components/schemas/v1beta1.ResourceClaimTemplate' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1beta1.ResourceClaimTemplate' + application/cbor: + schema: + $ref: '#/components/schemas/v1beta1.ResourceClaimTemplate' + description: OK + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/v1beta1.ResourceClaimTemplate' + application/yaml: + schema: + $ref: '#/components/schemas/v1beta1.ResourceClaimTemplate' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1beta1.ResourceClaimTemplate' + application/cbor: + schema: + $ref: '#/components/schemas/v1beta1.ResourceClaimTemplate' + description: Created + "401": + content: {} + description: Unauthorized + tags: + - resource_v1beta1 + x-kubernetes-action: put + x-kubernetes-group-version-kind: + group: resource.k8s.io + kind: ResourceClaimTemplate + version: v1beta1 + x-codegen-request-body-name: body + x-contentType: application/json + x-accepts: application/json + /apis/resource.k8s.io/v1beta1/resourceclaims: + get: + description: list or watch objects of kind ResourceClaim + operationId: listResourceClaimForAllNamespaces + parameters: + - description: 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. + in: query + name: allowWatchBookmarks + schema: + type: boolean + - description: |- + 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". - '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/ + 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. + in: query + name: continue + 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 + - description: A selector to restrict the list of returned objects by their + labels. Defaults to everything. + in: query + name: labelSelector + schema: + type: string + - description: |- + limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. - Required. + The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + in: query + name: limit + schema: + type: integer + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). + in: query + name: pretty + schema: type: string - name: - description: |- - 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') + - description: |- + resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. - Required. + Defaults to unset + in: query + name: resourceVersion + schema: type: string - required: - - expression - - name - type: object - v1.MutatingWebhook: - description: MutatingWebhook describes an admission webhook and the resources - and operations it applies to. - example: - admissionReviewVersions: - - admissionReviewVersions - - admissionReviewVersions - matchPolicy: matchPolicy - reinvocationPolicy: reinvocationPolicy - name: name - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - timeoutSeconds: 6 - rules: - - operations: - - operations - - operations - apiVersions: - - apiVersions - - apiVersions - scope: scope - resources: - - resources - - resources - apiGroups: - - apiGroups - - apiGroups - - operations: - - operations - - operations - apiVersions: - - apiVersions - - apiVersions - scope: scope - resources: - - resources - - resources - apiGroups: - - apiGroups - - apiGroups - clientConfig: - caBundle: caBundle - service: - path: path - port: 0 - name: name - namespace: namespace - url: url - matchConditions: - - expression: expression - name: name - - expression: expression - name: name - objectSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - failurePolicy: failurePolicy - sideEffects: sideEffects - properties: - admissionReviewVersions: - description: 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. - items: - type: string - type: array - clientConfig: - $ref: '#/components/schemas/admissionregistration.v1.WebhookClientConfig' - failurePolicy: - description: FailurePolicy defines how unrecognized errors from the admission - endpoint are handled - allowed values are Ignore or Fail. Defaults to - Fail. + - description: |- + resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersionMatch + schema: type: string - matchConditions: - description: |- - 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. + - description: |- + `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic "Bookmark" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `"k8s.io/initial-events-end": "true"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. - 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 + When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan + is interpreted as "data at least as new as the provided `resourceVersion`" + and the bookmark event is send when the state is synced + to a `resourceVersion` at least as fresh as the one provided by the ListOptions. + If `resourceVersion` is unset, this is interpreted as "consistent read" and the + bookmark event is send when the state is synced at least to the moment + when request started being processed. + - `resourceVersionMatch` set to any other value or unset + Invalid error is returned. - This is a beta feature and managed by the AdmissionWebhookMatchConditions feature gate. - items: - $ref: '#/components/schemas/v1.MatchCondition' - type: array - x-kubernetes-patch-strategy: merge - x-kubernetes-list-type: map - x-kubernetes-list-map-keys: - - name - x-kubernetes-patch-merge-key: name - matchPolicy: - description: |- - matchPolicy defines how the "rules" list is used to match incoming requests. Allowed values are "Exact" or "Equivalent". + Defaults to true if `resourceVersion=""` or `resourceVersion="0"` (for backward compatibility reasons) and to false otherwise. + in: query + name: sendInitialEvents + schema: + type: boolean + - description: Timeout for the list/watch call. This limits the duration of + the call, regardless of any activity or inactivity. + in: query + name: timeoutSeconds + schema: + type: integer + - description: Watch for changes to the described resources and return them + as a stream of add, update, and remove notifications. Specify resourceVersion. + in: query + name: watch + schema: + type: boolean + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1beta1.ResourceClaimList' + application/yaml: + schema: + $ref: '#/components/schemas/v1beta1.ResourceClaimList' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1beta1.ResourceClaimList' + application/cbor: + schema: + $ref: '#/components/schemas/v1beta1.ResourceClaimList' + application/json;stream=watch: + schema: + $ref: '#/components/schemas/v1beta1.ResourceClaimList' + application/vnd.kubernetes.protobuf;stream=watch: + schema: + $ref: '#/components/schemas/v1beta1.ResourceClaimList' + application/cbor-seq: + schema: + $ref: '#/components/schemas/v1beta1.ResourceClaimList' + description: OK + "401": + content: {} + description: Unauthorized + tags: + - resource_v1beta1 + x-kubernetes-action: list + x-kubernetes-group-version-kind: + group: resource.k8s.io + kind: ResourceClaim + version: v1beta1 + x-accepts: application/json + /apis/resource.k8s.io/v1beta1/resourceclaimtemplates: + get: + description: list or watch objects of kind ResourceClaimTemplate + operationId: listResourceClaimTemplateForAllNamespaces + parameters: + - description: 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. + in: query + name: allowWatchBookmarks + schema: + type: boolean + - description: |- + 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". - - 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. + 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. + in: query + name: continue + 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 + - description: A selector to restrict the list of returned objects by their + labels. Defaults to everything. + in: query + name: labelSelector + schema: + type: string + - description: |- + limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. - - 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. + The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + in: query + name: limit + schema: + type: integer + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). + in: query + name: pretty + schema: + type: string + - description: |- + resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. - Defaults to "Equivalent" + Defaults to unset + in: query + name: resourceVersion + schema: type: string - name: - description: 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. + - description: |- + resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersionMatch + schema: type: string - namespaceSelector: - $ref: '#/components/schemas/v1.LabelSelector' - objectSelector: - $ref: '#/components/schemas/v1.LabelSelector' - reinvocationPolicy: - description: |- - reinvocationPolicy indicates whether this webhook should be called multiple times as part of a single admission evaluation. Allowed values are "Never" and "IfNeeded". + - description: |- + `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic "Bookmark" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `"k8s.io/initial-events-end": "true"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. - Never: the webhook will not be called more than once in a single admission evaluation. + When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan + is interpreted as "data at least as new as the provided `resourceVersion`" + and the bookmark event is send when the state is synced + to a `resourceVersion` at least as fresh as the one provided by the ListOptions. + If `resourceVersion` is unset, this is interpreted as "consistent read" and the + bookmark event is send when the state is synced at least to the moment + when request started being processed. + - `resourceVersionMatch` set to any other value or unset + Invalid error is returned. - 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 true if `resourceVersion=""` or `resourceVersion="0"` (for backward compatibility reasons) and to false otherwise. + in: query + name: sendInitialEvents + schema: + type: boolean + - description: Timeout for the list/watch call. This limits the duration of + the call, regardless of any activity or inactivity. + in: query + name: timeoutSeconds + schema: + type: integer + - description: Watch for changes to the described resources and return them + as a stream of add, update, and remove notifications. Specify resourceVersion. + in: query + name: watch + schema: + type: boolean + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1beta1.ResourceClaimTemplateList' + application/yaml: + schema: + $ref: '#/components/schemas/v1beta1.ResourceClaimTemplateList' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1beta1.ResourceClaimTemplateList' + application/cbor: + schema: + $ref: '#/components/schemas/v1beta1.ResourceClaimTemplateList' + application/json;stream=watch: + schema: + $ref: '#/components/schemas/v1beta1.ResourceClaimTemplateList' + application/vnd.kubernetes.protobuf;stream=watch: + schema: + $ref: '#/components/schemas/v1beta1.ResourceClaimTemplateList' + application/cbor-seq: + schema: + $ref: '#/components/schemas/v1beta1.ResourceClaimTemplateList' + description: OK + "401": + content: {} + description: Unauthorized + tags: + - resource_v1beta1 + x-kubernetes-action: list + x-kubernetes-group-version-kind: + group: resource.k8s.io + kind: ResourceClaimTemplate + version: v1beta1 + x-accepts: application/json + /apis/resource.k8s.io/v1beta1/resourceslices: + delete: + description: delete collection of ResourceSlice + operationId: deleteCollectionResourceSlice + parameters: + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). + in: query + name: pretty + schema: + type: string + - description: |- + 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". - Defaults to "Never". + 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. + in: query + name: continue + schema: type: string - rules: - description: 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. - items: - $ref: '#/components/schemas/v1.RuleWithOperations' - type: array - sideEffects: - description: '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.' + - description: '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' + in: query + name: dryRun + schema: type: string - timeoutSeconds: - description: 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. - format: int32 + - description: A selector to restrict the list of returned objects by their + fields. Defaults to everything. + in: query + name: fieldSelector + schema: + type: string + - description: 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. + in: query + name: gracePeriodSeconds + schema: type: integer - required: - - admissionReviewVersions - - clientConfig - - name - - sideEffects - type: object - v1.MutatingWebhookConfiguration: - description: MutatingWebhookConfiguration describes the configuration of and - admission webhook that accept or reject and may change the object. - example: - metadata: - generation: 6 - finalizers: - - finalizers - - finalizers - resourceVersion: resourceVersion - annotations: - key: annotations - generateName: generateName - deletionTimestamp: 2000-01-23T04:56:07.000+00:00 - labels: - key: labels - ownerReferences: - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - selfLink: selfLink - deletionGracePeriodSeconds: 0 - uid: uid - managedFields: - - apiVersion: apiVersion - fieldsV1: '{}' - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - - apiVersion: apiVersion - fieldsV1: '{}' - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - creationTimestamp: 2000-01-23T04:56:07.000+00:00 - name: name - namespace: namespace - apiVersion: apiVersion - webhooks: - - admissionReviewVersions: - - admissionReviewVersions - - admissionReviewVersions - matchPolicy: matchPolicy - reinvocationPolicy: reinvocationPolicy - name: name - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - timeoutSeconds: 6 - rules: - - operations: - - operations - - operations - apiVersions: - - apiVersions - - apiVersions - scope: scope - resources: - - resources - - resources - apiGroups: - - apiGroups - - apiGroups - - operations: - - operations - - operations - apiVersions: - - apiVersions - - apiVersions - scope: scope - resources: - - resources - - resources - apiGroups: - - apiGroups - - apiGroups - clientConfig: - caBundle: caBundle - service: - path: path - port: 0 - name: name - namespace: namespace - url: url - matchConditions: - - expression: expression - name: name - - expression: expression - name: name - objectSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - failurePolicy: failurePolicy - sideEffects: sideEffects - - admissionReviewVersions: - - admissionReviewVersions - - admissionReviewVersions - matchPolicy: matchPolicy - reinvocationPolicy: reinvocationPolicy - name: name - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - timeoutSeconds: 6 - rules: - - operations: - - operations - - operations - apiVersions: - - apiVersions - - apiVersions - scope: scope - resources: - - resources - - resources - apiGroups: - - apiGroups - - apiGroups - - operations: - - operations - - operations - apiVersions: - - apiVersions - - apiVersions - scope: scope - resources: - - resources - - resources - apiGroups: - - apiGroups - - apiGroups - clientConfig: - caBundle: caBundle - service: - path: path - port: 0 - name: name - namespace: namespace - url: url - matchConditions: - - expression: expression - name: name - - expression: expression - name: name - objectSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - failurePolicy: failurePolicy - sideEffects: sideEffects - kind: kind - properties: - apiVersion: - description: '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' - type: string - kind: - description: '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' + - description: 'if set to true, it will trigger an unsafe deletion of the resource + in case the normal deletion flow fails with a corrupt object error. A resource + is considered corrupt if it can not be retrieved from the underlying storage + successfully because of a) its data can not be transformed e.g. decryption + failure, or b) it fails to decode into an object. NOTE: unsafe deletion + ignores finalizer constraints, skips precondition checks, and removes the + object from the storage. WARNING: This may potentially break the cluster + if the workload associated with the resource being unsafe-deleted relies + on normal deletion flow. Use only if you REALLY know what you are doing. + The default value is false, and the user must opt in to enable it' + in: query + name: ignoreStoreReadErrorWithClusterBreakingPotential + schema: + type: boolean + - description: A selector to restrict the list of returned objects by their + labels. Defaults to everything. + in: query + name: labelSelector + schema: type: string - metadata: - $ref: '#/components/schemas/v1.ObjectMeta' - webhooks: - description: Webhooks is a list of webhooks and the affected resources and - operations. - items: - $ref: '#/components/schemas/v1.MutatingWebhook' - type: array - x-kubernetes-patch-strategy: merge - x-kubernetes-patch-merge-key: name - type: object - x-kubernetes-group-version-kind: - - group: admissionregistration.k8s.io - kind: MutatingWebhookConfiguration - version: v1 - x-implements: - - io.kubernetes.client.common.KubernetesObject - v1.MutatingWebhookConfigurationList: - description: MutatingWebhookConfigurationList is a list of MutatingWebhookConfiguration. - example: - metadata: - remainingItemCount: 1 - continue: continue - resourceVersion: resourceVersion - selfLink: selfLink - apiVersion: apiVersion - kind: kind - items: - - metadata: - generation: 6 - finalizers: - - finalizers - - finalizers - resourceVersion: resourceVersion - annotations: - key: annotations - generateName: generateName - deletionTimestamp: 2000-01-23T04:56:07.000+00:00 - labels: - key: labels - ownerReferences: - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - selfLink: selfLink - deletionGracePeriodSeconds: 0 - uid: uid - managedFields: - - apiVersion: apiVersion - fieldsV1: '{}' - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - - apiVersion: apiVersion - fieldsV1: '{}' - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - creationTimestamp: 2000-01-23T04:56:07.000+00:00 - name: name - namespace: namespace - apiVersion: apiVersion - webhooks: - - admissionReviewVersions: - - admissionReviewVersions - - admissionReviewVersions - matchPolicy: matchPolicy - reinvocationPolicy: reinvocationPolicy - name: name - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - timeoutSeconds: 6 - rules: - - operations: - - operations - - operations - apiVersions: - - apiVersions - - apiVersions - scope: scope - resources: - - resources - - resources - apiGroups: - - apiGroups - - apiGroups - - operations: - - operations - - operations - apiVersions: - - apiVersions - - apiVersions - scope: scope - resources: - - resources - - resources - apiGroups: - - apiGroups - - apiGroups - clientConfig: - caBundle: caBundle - service: - path: path - port: 0 - name: name - namespace: namespace - url: url - matchConditions: - - expression: expression - name: name - - expression: expression - name: name - objectSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - failurePolicy: failurePolicy - sideEffects: sideEffects - - admissionReviewVersions: - - admissionReviewVersions - - admissionReviewVersions - matchPolicy: matchPolicy - reinvocationPolicy: reinvocationPolicy - name: name - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - timeoutSeconds: 6 - rules: - - operations: - - operations - - operations - apiVersions: - - apiVersions - - apiVersions - scope: scope - resources: - - resources - - resources - apiGroups: - - apiGroups - - apiGroups - - operations: - - operations - - operations - apiVersions: - - apiVersions - - apiVersions - scope: scope - resources: - - resources - - resources - apiGroups: - - apiGroups - - apiGroups - clientConfig: - caBundle: caBundle - service: - path: path - port: 0 - name: name - namespace: namespace - url: url - matchConditions: - - expression: expression - name: name - - expression: expression - name: name - objectSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - failurePolicy: failurePolicy - sideEffects: sideEffects - kind: kind - - metadata: - generation: 6 - finalizers: - - finalizers - - finalizers - resourceVersion: resourceVersion - annotations: - key: annotations - generateName: generateName - deletionTimestamp: 2000-01-23T04:56:07.000+00:00 - labels: - key: labels - ownerReferences: - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - selfLink: selfLink - deletionGracePeriodSeconds: 0 - uid: uid - managedFields: - - apiVersion: apiVersion - fieldsV1: '{}' - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - - apiVersion: apiVersion - fieldsV1: '{}' - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - creationTimestamp: 2000-01-23T04:56:07.000+00:00 - name: name - namespace: namespace - apiVersion: apiVersion - webhooks: - - admissionReviewVersions: - - admissionReviewVersions - - admissionReviewVersions - matchPolicy: matchPolicy - reinvocationPolicy: reinvocationPolicy - name: name - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - timeoutSeconds: 6 - rules: - - operations: - - operations - - operations - apiVersions: - - apiVersions - - apiVersions - scope: scope - resources: - - resources - - resources - apiGroups: - - apiGroups - - apiGroups - - operations: - - operations - - operations - apiVersions: - - apiVersions - - apiVersions - scope: scope - resources: - - resources - - resources - apiGroups: - - apiGroups - - apiGroups - clientConfig: - caBundle: caBundle - service: - path: path - port: 0 - name: name - namespace: namespace - url: url - matchConditions: - - expression: expression - name: name - - expression: expression - name: name - objectSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - failurePolicy: failurePolicy - sideEffects: sideEffects - - admissionReviewVersions: - - admissionReviewVersions - - admissionReviewVersions - matchPolicy: matchPolicy - reinvocationPolicy: reinvocationPolicy - name: name - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - timeoutSeconds: 6 - rules: - - operations: - - operations - - operations - apiVersions: - - apiVersions - - apiVersions - scope: scope - resources: - - resources - - resources - apiGroups: - - apiGroups - - apiGroups - - operations: - - operations - - operations - apiVersions: - - apiVersions - - apiVersions - scope: scope - resources: - - resources - - resources - apiGroups: - - apiGroups - - apiGroups - clientConfig: - caBundle: caBundle - service: - path: path - port: 0 - name: name - namespace: namespace - url: url - matchConditions: - - expression: expression - name: name - - expression: expression - name: name - objectSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - failurePolicy: failurePolicy - sideEffects: sideEffects - kind: kind - properties: - apiVersion: - description: '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' + - description: |- + limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. + + The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + in: query + name: limit + schema: + type: integer + - description: '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.' + in: query + name: orphanDependents + schema: + type: boolean + - description: '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.' + in: query + name: propagationPolicy + schema: type: string - items: - description: List of MutatingWebhookConfiguration. - items: - $ref: '#/components/schemas/v1.MutatingWebhookConfiguration' - type: array - kind: - description: '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' + - description: |- + resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersion + schema: type: string - metadata: - $ref: '#/components/schemas/v1.ListMeta' - required: - - items - type: object - x-kubernetes-group-version-kind: - - group: admissionregistration.k8s.io - kind: MutatingWebhookConfigurationList - version: v1 - x-implements: - - io.kubernetes.client.common.KubernetesListObject - v1.RuleWithOperations: - description: RuleWithOperations is a tuple of Operations and Resources. It is - recommended to make sure that all the tuple expansions are valid. - example: - operations: - - operations - - operations - apiVersions: - - apiVersions - - apiVersions - scope: scope - resources: - - resources - - resources - apiGroups: - - apiGroups - - apiGroups - properties: - apiGroups: - description: APIGroups is the API groups the resources belong to. '*' is - all groups. If '*' is present, the length of the slice must be one. Required. - items: - type: string - type: array - x-kubernetes-list-type: atomic - apiVersions: - description: APIVersions is the API versions the resources belong to. '*' - is all versions. If '*' is present, the length of the slice must be one. - Required. - items: - type: string - type: array - x-kubernetes-list-type: atomic - operations: - description: 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. - items: - type: string - type: array - x-kubernetes-list-type: atomic - resources: - description: |- - Resources is a list of resources this rule applies to. + - description: |- + resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. - 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. + Defaults to unset + in: query + name: resourceVersionMatch + schema: + type: string + - description: |- + `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic "Bookmark" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `"k8s.io/initial-events-end": "true"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. - If wildcard is present, the validation rule will ensure resources do not overlap with each other. + When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan + is interpreted as "data at least as new as the provided `resourceVersion`" + and the bookmark event is send when the state is synced + to a `resourceVersion` at least as fresh as the one provided by the ListOptions. + If `resourceVersion` is unset, this is interpreted as "consistent read" and the + bookmark event is send when the state is synced at least to the moment + when request started being processed. + - `resourceVersionMatch` set to any other value or unset + Invalid error is returned. - Depending on the enclosing object, subresources might not be allowed. Required. - items: - type: string - type: array - x-kubernetes-list-type: atomic - scope: - description: 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 "*". - type: string - type: object - admissionregistration.v1.ServiceReference: - description: ServiceReference holds a reference to Service.legacy.k8s.io - example: - path: path - port: 0 - name: name - namespace: namespace - properties: - name: - description: '`name` is the name of the service. Required' + Defaults to true if `resourceVersion=""` or `resourceVersion="0"` (for backward compatibility reasons) and to false otherwise. + in: query + name: sendInitialEvents + schema: + type: boolean + - description: Timeout for the list/watch call. This limits the duration of + the call, regardless of any activity or inactivity. + in: query + name: timeoutSeconds + schema: + type: integer + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/v1.DeleteOptions' + required: false + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.Status' + application/yaml: + schema: + $ref: '#/components/schemas/v1.Status' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.Status' + application/cbor: + schema: + $ref: '#/components/schemas/v1.Status' + description: OK + "401": + content: {} + description: Unauthorized + tags: + - resource_v1beta1 + x-kubernetes-action: deletecollection + x-kubernetes-group-version-kind: + group: resource.k8s.io + kind: ResourceSlice + version: v1beta1 + x-codegen-request-body-name: body + x-contentType: application/json + x-accepts: application/json + get: + description: list or watch objects of kind ResourceSlice + operationId: listResourceSlice + parameters: + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). + in: query + name: pretty + schema: type: string - namespace: - description: '`namespace` is the namespace of the service. Required' + - description: 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. + in: query + name: allowWatchBookmarks + schema: + type: boolean + - description: |- + 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. + in: query + name: continue + schema: type: string - path: - description: '`path` is an optional URL path which will be sent in any request - to this service.' + - description: A selector to restrict the list of returned objects by their + fields. Defaults to everything. + in: query + name: fieldSelector + schema: type: string - port: - description: 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). - format: int32 - type: integer - required: - - name - - namespace - type: object - v1.ValidatingWebhook: - description: ValidatingWebhook describes an admission webhook and the resources - and operations it applies to. - example: - admissionReviewVersions: - - admissionReviewVersions - - admissionReviewVersions - matchPolicy: matchPolicy - name: name - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - timeoutSeconds: 0 - rules: - - operations: - - operations - - operations - apiVersions: - - apiVersions - - apiVersions - scope: scope - resources: - - resources - - resources - apiGroups: - - apiGroups - - apiGroups - - operations: - - operations - - operations - apiVersions: - - apiVersions - - apiVersions - scope: scope - resources: - - resources - - resources - apiGroups: - - apiGroups - - apiGroups - clientConfig: - caBundle: caBundle - service: - path: path - port: 0 - name: name - namespace: namespace - url: url - matchConditions: - - expression: expression - name: name - - expression: expression - name: name - objectSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - failurePolicy: failurePolicy - sideEffects: sideEffects - properties: - admissionReviewVersions: - description: 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. - items: - type: string - type: array - clientConfig: - $ref: '#/components/schemas/admissionregistration.v1.WebhookClientConfig' - failurePolicy: - description: FailurePolicy defines how unrecognized errors from the admission - endpoint are handled - allowed values are Ignore or Fail. Defaults to - Fail. + - description: A selector to restrict the list of returned objects by their + labels. Defaults to everything. + in: query + name: labelSelector + schema: type: string - matchConditions: - description: |- - 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. + - description: |- + limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. - 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 + The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + in: query + name: limit + schema: + type: integer + - description: |- + resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. - This is a beta feature and managed by the AdmissionWebhookMatchConditions feature gate. - items: - $ref: '#/components/schemas/v1.MatchCondition' - type: array - x-kubernetes-patch-strategy: merge - x-kubernetes-list-type: map - x-kubernetes-list-map-keys: - - name - x-kubernetes-patch-merge-key: name - matchPolicy: - description: |- - matchPolicy defines how the "rules" list is used to match incoming requests. Allowed values are "Exact" or "Equivalent". + Defaults to unset + in: query + name: resourceVersion + schema: + type: string + - description: |- + resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. - - 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. + Defaults to unset + in: query + name: resourceVersionMatch + schema: + type: string + - description: |- + `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic "Bookmark" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `"k8s.io/initial-events-end": "true"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. - - 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. + When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan + is interpreted as "data at least as new as the provided `resourceVersion`" + and the bookmark event is send when the state is synced + to a `resourceVersion` at least as fresh as the one provided by the ListOptions. + If `resourceVersion` is unset, this is interpreted as "consistent read" and the + bookmark event is send when the state is synced at least to the moment + when request started being processed. + - `resourceVersionMatch` set to any other value or unset + Invalid error is returned. - Defaults to "Equivalent" + Defaults to true if `resourceVersion=""` or `resourceVersion="0"` (for backward compatibility reasons) and to false otherwise. + in: query + name: sendInitialEvents + schema: + type: boolean + - description: Timeout for the list/watch call. This limits the duration of + the call, regardless of any activity or inactivity. + in: query + name: timeoutSeconds + schema: + type: integer + - description: Watch for changes to the described resources and return them + as a stream of add, update, and remove notifications. Specify resourceVersion. + in: query + name: watch + schema: + type: boolean + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1beta1.ResourceSliceList' + application/yaml: + schema: + $ref: '#/components/schemas/v1beta1.ResourceSliceList' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1beta1.ResourceSliceList' + application/cbor: + schema: + $ref: '#/components/schemas/v1beta1.ResourceSliceList' + application/json;stream=watch: + schema: + $ref: '#/components/schemas/v1beta1.ResourceSliceList' + application/vnd.kubernetes.protobuf;stream=watch: + schema: + $ref: '#/components/schemas/v1beta1.ResourceSliceList' + application/cbor-seq: + schema: + $ref: '#/components/schemas/v1beta1.ResourceSliceList' + description: OK + "401": + content: {} + description: Unauthorized + tags: + - resource_v1beta1 + x-kubernetes-action: list + x-kubernetes-group-version-kind: + group: resource.k8s.io + kind: ResourceSlice + version: v1beta1 + x-accepts: application/json + post: + description: create a ResourceSlice + operationId: createResourceSlice + parameters: + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). + in: query + name: pretty + schema: type: string - name: - description: 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. + - description: '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' + in: query + name: dryRun + schema: type: string - namespaceSelector: - $ref: '#/components/schemas/v1.LabelSelector' - objectSelector: - $ref: '#/components/schemas/v1.LabelSelector' - rules: - description: 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. - items: - $ref: '#/components/schemas/v1.RuleWithOperations' - type: array - sideEffects: - description: '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.' - type: string - timeoutSeconds: - description: 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. - format: int32 - type: integer - required: - - admissionReviewVersions - - clientConfig - - name - - sideEffects - type: object - v1.ValidatingWebhookConfiguration: - description: ValidatingWebhookConfiguration describes the configuration of and - admission webhook that accept or reject and object without changing it. - example: - metadata: - generation: 6 - finalizers: - - finalizers - - finalizers - resourceVersion: resourceVersion - annotations: - key: annotations - generateName: generateName - deletionTimestamp: 2000-01-23T04:56:07.000+00:00 - labels: - key: labels - ownerReferences: - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - selfLink: selfLink - deletionGracePeriodSeconds: 0 - uid: uid - managedFields: - - apiVersion: apiVersion - fieldsV1: '{}' - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - - apiVersion: apiVersion - fieldsV1: '{}' - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - creationTimestamp: 2000-01-23T04:56:07.000+00:00 - name: name - namespace: namespace - apiVersion: apiVersion - webhooks: - - admissionReviewVersions: - - admissionReviewVersions - - admissionReviewVersions - matchPolicy: matchPolicy - name: name - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - timeoutSeconds: 0 - rules: - - operations: - - operations - - operations - apiVersions: - - apiVersions - - apiVersions - scope: scope - resources: - - resources - - resources - apiGroups: - - apiGroups - - apiGroups - - operations: - - operations - - operations - apiVersions: - - apiVersions - - apiVersions - scope: scope - resources: - - resources - - resources - apiGroups: - - apiGroups - - apiGroups - clientConfig: - caBundle: caBundle - service: - path: path - port: 0 - name: name - namespace: namespace - url: url - matchConditions: - - expression: expression - name: name - - expression: expression - name: name - objectSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - failurePolicy: failurePolicy - sideEffects: sideEffects - - admissionReviewVersions: - - admissionReviewVersions - - admissionReviewVersions - matchPolicy: matchPolicy - name: name - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - timeoutSeconds: 0 - rules: - - operations: - - operations - - operations - apiVersions: - - apiVersions - - apiVersions - scope: scope - resources: - - resources - - resources - apiGroups: - - apiGroups - - apiGroups - - operations: - - operations - - operations - apiVersions: - - apiVersions - - apiVersions - scope: scope - resources: - - resources - - resources - apiGroups: - - apiGroups - - apiGroups - clientConfig: - caBundle: caBundle - service: - path: path - port: 0 - name: name - namespace: namespace - url: url - matchConditions: - - expression: expression - name: name - - expression: expression - name: name - objectSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - failurePolicy: failurePolicy - sideEffects: sideEffects - kind: kind - properties: - apiVersion: - description: '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' + - description: fieldManager is a name associated with the actor or entity that + is making these changes. The value must be less than or 128 characters long, + and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + in: query + name: fieldManager + schema: type: string - kind: - description: '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' + - description: 'fieldValidation instructs the server on how to handle objects + in the request (POST/PUT/PATCH) containing unknown or duplicate fields. + Valid values are: - Ignore: This will ignore any unknown fields that are + silently dropped from the object, and will ignore all but the last duplicate + field that the decoder encounters. This is the default behavior prior to + v1.23. - Warn: This will send a warning via the standard warning response + header for each unknown field that is dropped from the object, and for each + duplicate field that is encountered. The request will still succeed if there + are no other errors, and will only persist the last of any duplicate fields. + This is the default in v1.23+ - Strict: This will fail the request with + a BadRequest error if any unknown fields would be dropped from the object, + or if any duplicate fields are present. The error returned from the server + will contain all unknown and duplicate fields encountered.' + in: query + name: fieldValidation + schema: type: string - metadata: - $ref: '#/components/schemas/v1.ObjectMeta' - webhooks: - description: Webhooks is a list of webhooks and the affected resources and - operations. - items: - $ref: '#/components/schemas/v1.ValidatingWebhook' - type: array - x-kubernetes-patch-strategy: merge - x-kubernetes-patch-merge-key: name - type: object + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/v1beta1.ResourceSlice' + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1beta1.ResourceSlice' + application/yaml: + schema: + $ref: '#/components/schemas/v1beta1.ResourceSlice' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1beta1.ResourceSlice' + application/cbor: + schema: + $ref: '#/components/schemas/v1beta1.ResourceSlice' + description: OK + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/v1beta1.ResourceSlice' + application/yaml: + schema: + $ref: '#/components/schemas/v1beta1.ResourceSlice' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1beta1.ResourceSlice' + application/cbor: + schema: + $ref: '#/components/schemas/v1beta1.ResourceSlice' + description: Created + "202": + content: + application/json: + schema: + $ref: '#/components/schemas/v1beta1.ResourceSlice' + application/yaml: + schema: + $ref: '#/components/schemas/v1beta1.ResourceSlice' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1beta1.ResourceSlice' + application/cbor: + schema: + $ref: '#/components/schemas/v1beta1.ResourceSlice' + description: Accepted + "401": + content: {} + description: Unauthorized + tags: + - resource_v1beta1 + x-kubernetes-action: post x-kubernetes-group-version-kind: - - group: admissionregistration.k8s.io - kind: ValidatingWebhookConfiguration - version: v1 - x-implements: - - io.kubernetes.client.common.KubernetesObject - v1.ValidatingWebhookConfigurationList: - description: ValidatingWebhookConfigurationList is a list of ValidatingWebhookConfiguration. - example: - metadata: - remainingItemCount: 1 - continue: continue - resourceVersion: resourceVersion - selfLink: selfLink - apiVersion: apiVersion - kind: kind - items: - - metadata: - generation: 6 - finalizers: - - finalizers - - finalizers - resourceVersion: resourceVersion - annotations: - key: annotations - generateName: generateName - deletionTimestamp: 2000-01-23T04:56:07.000+00:00 - labels: - key: labels - ownerReferences: - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - selfLink: selfLink - deletionGracePeriodSeconds: 0 - uid: uid - managedFields: - - apiVersion: apiVersion - fieldsV1: '{}' - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - - apiVersion: apiVersion - fieldsV1: '{}' - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - creationTimestamp: 2000-01-23T04:56:07.000+00:00 - name: name - namespace: namespace - apiVersion: apiVersion - webhooks: - - admissionReviewVersions: - - admissionReviewVersions - - admissionReviewVersions - matchPolicy: matchPolicy - name: name - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - timeoutSeconds: 0 - rules: - - operations: - - operations - - operations - apiVersions: - - apiVersions - - apiVersions - scope: scope - resources: - - resources - - resources - apiGroups: - - apiGroups - - apiGroups - - operations: - - operations - - operations - apiVersions: - - apiVersions - - apiVersions - scope: scope - resources: - - resources - - resources - apiGroups: - - apiGroups - - apiGroups - clientConfig: - caBundle: caBundle - service: - path: path - port: 0 - name: name - namespace: namespace - url: url - matchConditions: - - expression: expression - name: name - - expression: expression - name: name - objectSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - failurePolicy: failurePolicy - sideEffects: sideEffects - - admissionReviewVersions: - - admissionReviewVersions - - admissionReviewVersions - matchPolicy: matchPolicy - name: name - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - timeoutSeconds: 0 - rules: - - operations: - - operations - - operations - apiVersions: - - apiVersions - - apiVersions - scope: scope - resources: - - resources - - resources - apiGroups: - - apiGroups - - apiGroups - - operations: - - operations - - operations - apiVersions: - - apiVersions - - apiVersions - scope: scope - resources: - - resources - - resources - apiGroups: - - apiGroups - - apiGroups - clientConfig: - caBundle: caBundle - service: - path: path - port: 0 - name: name - namespace: namespace - url: url - matchConditions: - - expression: expression - name: name - - expression: expression - name: name - objectSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - failurePolicy: failurePolicy - sideEffects: sideEffects - kind: kind - - metadata: - generation: 6 - finalizers: - - finalizers - - finalizers - resourceVersion: resourceVersion - annotations: - key: annotations - generateName: generateName - deletionTimestamp: 2000-01-23T04:56:07.000+00:00 - labels: - key: labels - ownerReferences: - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - selfLink: selfLink - deletionGracePeriodSeconds: 0 - uid: uid - managedFields: - - apiVersion: apiVersion - fieldsV1: '{}' - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - - apiVersion: apiVersion - fieldsV1: '{}' - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - creationTimestamp: 2000-01-23T04:56:07.000+00:00 - name: name - namespace: namespace - apiVersion: apiVersion - webhooks: - - admissionReviewVersions: - - admissionReviewVersions - - admissionReviewVersions - matchPolicy: matchPolicy - name: name - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - timeoutSeconds: 0 - rules: - - operations: - - operations - - operations - apiVersions: - - apiVersions - - apiVersions - scope: scope - resources: - - resources - - resources - apiGroups: - - apiGroups - - apiGroups - - operations: - - operations - - operations - apiVersions: - - apiVersions - - apiVersions - scope: scope - resources: - - resources - - resources - apiGroups: - - apiGroups - - apiGroups - clientConfig: - caBundle: caBundle - service: - path: path - port: 0 - name: name - namespace: namespace - url: url - matchConditions: - - expression: expression - name: name - - expression: expression - name: name - objectSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - failurePolicy: failurePolicy - sideEffects: sideEffects - - admissionReviewVersions: - - admissionReviewVersions - - admissionReviewVersions - matchPolicy: matchPolicy - name: name - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - timeoutSeconds: 0 - rules: - - operations: - - operations - - operations - apiVersions: - - apiVersions - - apiVersions - scope: scope - resources: - - resources - - resources - apiGroups: - - apiGroups - - apiGroups - - operations: - - operations - - operations - apiVersions: - - apiVersions - - apiVersions - scope: scope - resources: - - resources - - resources - apiGroups: - - apiGroups - - apiGroups - clientConfig: - caBundle: caBundle - service: - path: path - port: 0 - name: name - namespace: namespace - url: url - matchConditions: - - expression: expression - name: name - - expression: expression - name: name - objectSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - failurePolicy: failurePolicy - sideEffects: sideEffects - kind: kind - properties: - apiVersion: - description: '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' + group: resource.k8s.io + kind: ResourceSlice + version: v1beta1 + x-codegen-request-body-name: body + x-contentType: application/json + x-accepts: application/json + /apis/resource.k8s.io/v1beta1/resourceslices/{name}: + delete: + description: delete a ResourceSlice + operationId: deleteResourceSlice + parameters: + - description: name of the ResourceSlice + in: path + name: name + required: true + schema: type: string - items: - description: List of ValidatingWebhookConfiguration. - items: - $ref: '#/components/schemas/v1.ValidatingWebhookConfiguration' - type: array - kind: - description: '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' + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). + in: query + name: pretty + schema: type: string - metadata: - $ref: '#/components/schemas/v1.ListMeta' - required: - - items - type: object - x-kubernetes-group-version-kind: - - group: admissionregistration.k8s.io - kind: ValidatingWebhookConfigurationList - version: v1 - x-implements: - - io.kubernetes.client.common.KubernetesListObject - admissionregistration.v1.WebhookClientConfig: - description: WebhookClientConfig contains the information to make a TLS connection - with the webhook - example: - caBundle: caBundle - service: - path: path - port: 0 - name: name - namespace: namespace - url: url - properties: - caBundle: - description: '`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.' - format: byte - pattern: ^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$ + - description: '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' + in: query + name: dryRun + schema: type: string - service: - $ref: '#/components/schemas/admissionregistration.v1.ServiceReference' - url: - description: |- - `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. + - description: 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. + in: query + name: gracePeriodSeconds + schema: + type: integer + - description: 'if set to true, it will trigger an unsafe deletion of the resource + in case the normal deletion flow fails with a corrupt object error. A resource + is considered corrupt if it can not be retrieved from the underlying storage + successfully because of a) its data can not be transformed e.g. decryption + failure, or b) it fails to decode into an object. NOTE: unsafe deletion + ignores finalizer constraints, skips precondition checks, and removes the + object from the storage. WARNING: This may potentially break the cluster + if the workload associated with the resource being unsafe-deleted relies + on normal deletion flow. Use only if you REALLY know what you are doing. + The default value is false, and the user must opt in to enable it' + in: query + name: ignoreStoreReadErrorWithClusterBreakingPotential + schema: + type: boolean + - description: '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.' + in: query + name: orphanDependents + schema: + type: boolean + - description: '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.' + in: query + name: propagationPolicy + schema: type: string - type: object - v1alpha1.AuditAnnotation: - description: AuditAnnotation describes how to produce an audit annotation for - an API request. - example: - valueExpression: valueExpression - key: key - properties: - key: - description: |- - 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. + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/v1.DeleteOptions' + required: false + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1beta1.ResourceSlice' + application/yaml: + schema: + $ref: '#/components/schemas/v1beta1.ResourceSlice' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1beta1.ResourceSlice' + application/cbor: + schema: + $ref: '#/components/schemas/v1beta1.ResourceSlice' + description: OK + "202": + content: + application/json: + schema: + $ref: '#/components/schemas/v1beta1.ResourceSlice' + application/yaml: + schema: + $ref: '#/components/schemas/v1beta1.ResourceSlice' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1beta1.ResourceSlice' + application/cbor: + schema: + $ref: '#/components/schemas/v1beta1.ResourceSlice' + description: Accepted + "401": + content: {} + description: Unauthorized + tags: + - resource_v1beta1 + x-kubernetes-action: delete + x-kubernetes-group-version-kind: + group: resource.k8s.io + kind: ResourceSlice + version: v1beta1 + x-codegen-request-body-name: body + x-contentType: application/json + x-accepts: application/json + get: + description: read the specified ResourceSlice + operationId: readResourceSlice + parameters: + - description: name of the ResourceSlice + in: path + name: name + required: true + schema: type: string - valueExpression: - description: |- - 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. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). + in: query + name: pretty + schema: type: string - required: - - key - - valueExpression - type: object - v1alpha1.ExpressionWarning: - description: ExpressionWarning is a warning information that targets a specific - expression. - example: - fieldRef: fieldRef - warning: warning - properties: - fieldRef: - description: 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" + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1beta1.ResourceSlice' + application/yaml: + schema: + $ref: '#/components/schemas/v1beta1.ResourceSlice' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1beta1.ResourceSlice' + application/cbor: + schema: + $ref: '#/components/schemas/v1beta1.ResourceSlice' + description: OK + "401": + content: {} + description: Unauthorized + tags: + - resource_v1beta1 + x-kubernetes-action: get + x-kubernetes-group-version-kind: + group: resource.k8s.io + kind: ResourceSlice + version: v1beta1 + x-accepts: application/json + patch: + description: partially update the specified ResourceSlice + operationId: patchResourceSlice + parameters: + - description: name of the ResourceSlice + in: path + name: name + required: true + schema: type: string - warning: - description: 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. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). + in: query + name: pretty + schema: type: string - required: - - fieldRef - - warning - type: object - v1alpha1.MatchCondition: - example: - expression: expression - name: name - properties: - expression: - description: |- - 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. + - description: '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' + in: query + name: dryRun + schema: type: string - name: - description: |- - 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. + - description: fieldManager is a name associated with the actor or entity that + is making these changes. The value must be less than or 128 characters long, + and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + This field is required for apply requests (application/apply-patch) but + optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). + in: query + name: fieldManager + schema: type: string - required: - - expression - - name - type: object - v1alpha1.MatchResources: - 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) - example: - matchPolicy: matchPolicy - resourceRules: - - resourceNames: - - resourceNames - - resourceNames - operations: - - operations - - operations - apiVersions: - - apiVersions - - apiVersions - scope: scope - resources: - - resources - - resources - apiGroups: - - apiGroups - - apiGroups - - resourceNames: - - resourceNames - - resourceNames - operations: - - operations - - operations - apiVersions: - - apiVersions - - apiVersions - scope: scope - resources: - - resources - - resources - apiGroups: - - apiGroups - - apiGroups - excludeResourceRules: - - resourceNames: - - resourceNames - - resourceNames - operations: - - operations - - operations - apiVersions: - - apiVersions - - apiVersions - scope: scope - resources: - - resources - - resources - apiGroups: - - apiGroups - - apiGroups - - resourceNames: - - resourceNames - - resourceNames - operations: - - operations - - operations - apiVersions: - - apiVersions - - apiVersions - scope: scope - resources: - - resources - - resources - apiGroups: - - apiGroups - - apiGroups - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - objectSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - properties: - excludeResourceRules: - description: 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) - items: - $ref: '#/components/schemas/v1alpha1.NamedRuleWithOperations' - type: array - x-kubernetes-list-type: atomic - matchPolicy: - description: |- - matchPolicy defines how the "MatchResources" list is used to match incoming requests. Allowed values are "Exact" or "Equivalent". + - description: 'fieldValidation instructs the server on how to handle objects + in the request (POST/PUT/PATCH) containing unknown or duplicate fields. + Valid values are: - Ignore: This will ignore any unknown fields that are + silently dropped from the object, and will ignore all but the last duplicate + field that the decoder encounters. This is the default behavior prior to + v1.23. - Warn: This will send a warning via the standard warning response + header for each unknown field that is dropped from the object, and for each + duplicate field that is encountered. The request will still succeed if there + are no other errors, and will only persist the last of any duplicate fields. + This is the default in v1.23+ - Strict: This will fail the request with + a BadRequest error if any unknown fields would be dropped from the object, + or if any duplicate fields are present. The error returned from the server + will contain all unknown and duplicate fields encountered.' + in: query + name: fieldValidation + schema: + type: string + - description: Force is going to "force" Apply requests. It means user will + re-acquire conflicting fields owned by other people. Force flag must be + unset for non-apply patch requests. + in: query + name: force + schema: + type: boolean + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/v1.Patch' + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1beta1.ResourceSlice' + application/yaml: + schema: + $ref: '#/components/schemas/v1beta1.ResourceSlice' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1beta1.ResourceSlice' + application/cbor: + schema: + $ref: '#/components/schemas/v1beta1.ResourceSlice' + description: OK + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/v1beta1.ResourceSlice' + application/yaml: + schema: + $ref: '#/components/schemas/v1beta1.ResourceSlice' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1beta1.ResourceSlice' + application/cbor: + schema: + $ref: '#/components/schemas/v1beta1.ResourceSlice' + description: Created + "401": + content: {} + description: Unauthorized + tags: + - resource_v1beta1 + x-kubernetes-action: patch + x-kubernetes-group-version-kind: + group: resource.k8s.io + kind: ResourceSlice + version: v1beta1 + x-codegen-request-body-name: body + x-contentType: application/json + x-accepts: application/json + put: + description: replace the specified ResourceSlice + operationId: replaceResourceSlice + parameters: + - description: name of the ResourceSlice + in: path + name: name + required: true + schema: + type: string + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). + in: query + name: pretty + schema: + type: string + - description: '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' + in: query + name: dryRun + schema: + type: string + - description: fieldManager is a name associated with the actor or entity that + is making these changes. The value must be less than or 128 characters long, + and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + in: query + name: fieldManager + schema: + type: string + - description: 'fieldValidation instructs the server on how to handle objects + in the request (POST/PUT/PATCH) containing unknown or duplicate fields. + Valid values are: - Ignore: This will ignore any unknown fields that are + silently dropped from the object, and will ignore all but the last duplicate + field that the decoder encounters. This is the default behavior prior to + v1.23. - Warn: This will send a warning via the standard warning response + header for each unknown field that is dropped from the object, and for each + duplicate field that is encountered. The request will still succeed if there + are no other errors, and will only persist the last of any duplicate fields. + This is the default in v1.23+ - Strict: This will fail the request with + a BadRequest error if any unknown fields would be dropped from the object, + or if any duplicate fields are present. The error returned from the server + will contain all unknown and duplicate fields encountered.' + in: query + name: fieldValidation + schema: + type: string + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/v1beta1.ResourceSlice' + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1beta1.ResourceSlice' + application/yaml: + schema: + $ref: '#/components/schemas/v1beta1.ResourceSlice' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1beta1.ResourceSlice' + application/cbor: + schema: + $ref: '#/components/schemas/v1beta1.ResourceSlice' + description: OK + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/v1beta1.ResourceSlice' + application/yaml: + schema: + $ref: '#/components/schemas/v1beta1.ResourceSlice' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1beta1.ResourceSlice' + application/cbor: + schema: + $ref: '#/components/schemas/v1beta1.ResourceSlice' + description: Created + "401": + content: {} + description: Unauthorized + tags: + - resource_v1beta1 + x-kubernetes-action: put + x-kubernetes-group-version-kind: + group: resource.k8s.io + kind: ResourceSlice + version: v1beta1 + x-codegen-request-body-name: body + x-contentType: application/json + x-accepts: application/json + /apis/resource.k8s.io/v1beta1/watch/deviceclasses: {} + /apis/resource.k8s.io/v1beta1/watch/deviceclasses/{name}: {} + /apis/resource.k8s.io/v1beta1/watch/namespaces/{namespace}/resourceclaims: {} + /apis/resource.k8s.io/v1beta1/watch/namespaces/{namespace}/resourceclaims/{name}: {} + /apis/resource.k8s.io/v1beta1/watch/namespaces/{namespace}/resourceclaimtemplates: {} + /apis/resource.k8s.io/v1beta1/watch/namespaces/{namespace}/resourceclaimtemplates/{name}: {} + /apis/resource.k8s.io/v1beta1/watch/resourceclaims: {} + /apis/resource.k8s.io/v1beta1/watch/resourceclaimtemplates: {} + /apis/resource.k8s.io/v1beta1/watch/resourceslices: {} + /apis/resource.k8s.io/v1beta1/watch/resourceslices/{name}: {} + /apis/resource.k8s.io/v1beta2/: + get: + description: get available resources + operationId: getAPIResources + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.APIResourceList' + application/yaml: + schema: + $ref: '#/components/schemas/v1.APIResourceList' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.APIResourceList' + application/cbor: + schema: + $ref: '#/components/schemas/v1.APIResourceList' + description: OK + "401": + content: {} + description: Unauthorized + tags: + - resource_v1beta2 + x-accepts: application/json + /apis/resource.k8s.io/v1beta2/deviceclasses: + delete: + description: delete collection of DeviceClass + operationId: deleteCollectionDeviceClass + parameters: + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). + in: query + name: pretty + schema: + type: string + - description: |- + 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". - - 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. + 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. + in: query + name: continue + schema: + type: string + - description: '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' + in: query + 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 + - description: 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. + in: query + name: gracePeriodSeconds + schema: + type: integer + - description: 'if set to true, it will trigger an unsafe deletion of the resource + in case the normal deletion flow fails with a corrupt object error. A resource + is considered corrupt if it can not be retrieved from the underlying storage + successfully because of a) its data can not be transformed e.g. decryption + failure, or b) it fails to decode into an object. NOTE: unsafe deletion + ignores finalizer constraints, skips precondition checks, and removes the + object from the storage. WARNING: This may potentially break the cluster + if the workload associated with the resource being unsafe-deleted relies + on normal deletion flow. Use only if you REALLY know what you are doing. + The default value is false, and the user must opt in to enable it' + in: query + name: ignoreStoreReadErrorWithClusterBreakingPotential + schema: + type: boolean + - description: A selector to restrict the list of returned objects by their + labels. Defaults to everything. + in: query + name: labelSelector + schema: + type: string + - description: |- + limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. - - 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. + The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + in: query + name: limit + schema: + type: integer + - description: '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.' + in: query + name: orphanDependents + schema: + type: boolean + - description: '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.' + in: query + name: propagationPolicy + schema: + type: string + - description: |- + resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. - Defaults to "Equivalent" + Defaults to unset + in: query + name: resourceVersion + schema: type: string - namespaceSelector: - $ref: '#/components/schemas/v1.LabelSelector' - objectSelector: - $ref: '#/components/schemas/v1.LabelSelector' - resourceRules: - description: ResourceRules describes what operations on what resources/subresources - the ValidatingAdmissionPolicy matches. The policy cares about an operation - if it matches _any_ Rule. - items: - $ref: '#/components/schemas/v1alpha1.NamedRuleWithOperations' - type: array - x-kubernetes-list-type: atomic - type: object - x-kubernetes-map-type: atomic - v1alpha1.NamedRuleWithOperations: - description: NamedRuleWithOperations is a tuple of Operations and Resources - with ResourceNames. - example: - resourceNames: - - resourceNames - - resourceNames - operations: - - operations - - operations - apiVersions: - - apiVersions - - apiVersions - scope: scope - resources: - - resources - - resources - apiGroups: - - apiGroups - - apiGroups - properties: - apiGroups: - description: APIGroups is the API groups the resources belong to. '*' is - all groups. If '*' is present, the length of the slice must be one. Required. - items: - type: string - type: array - x-kubernetes-list-type: atomic - apiVersions: - description: APIVersions is the API versions the resources belong to. '*' - is all versions. If '*' is present, the length of the slice must be one. - Required. - items: - type: string - type: array - x-kubernetes-list-type: atomic - operations: - description: 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. - items: - type: string - type: array - x-kubernetes-list-type: atomic - resourceNames: - description: ResourceNames is an optional white list of names that the rule - applies to. An empty set means that everything is allowed. - items: - type: string - type: array - x-kubernetes-list-type: atomic - resources: - description: |- - Resources is a list of resources this rule applies to. + - description: |- + resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. - 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. + Defaults to unset + in: query + name: resourceVersionMatch + schema: + type: string + - description: |- + `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic "Bookmark" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `"k8s.io/initial-events-end": "true"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. - If wildcard is present, the validation rule will ensure resources do not overlap with each other. + When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan + is interpreted as "data at least as new as the provided `resourceVersion`" + and the bookmark event is send when the state is synced + to a `resourceVersion` at least as fresh as the one provided by the ListOptions. + If `resourceVersion` is unset, this is interpreted as "consistent read" and the + bookmark event is send when the state is synced at least to the moment + when request started being processed. + - `resourceVersionMatch` set to any other value or unset + Invalid error is returned. - Depending on the enclosing object, subresources might not be allowed. Required. - items: - type: string - type: array - x-kubernetes-list-type: atomic - scope: - description: 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 "*". + Defaults to true if `resourceVersion=""` or `resourceVersion="0"` (for backward compatibility reasons) and to false otherwise. + in: query + name: sendInitialEvents + schema: + type: boolean + - description: Timeout for the list/watch call. This limits the duration of + the call, regardless of any activity or inactivity. + in: query + name: timeoutSeconds + schema: + type: integer + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/v1.DeleteOptions' + required: false + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.Status' + application/yaml: + schema: + $ref: '#/components/schemas/v1.Status' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.Status' + application/cbor: + schema: + $ref: '#/components/schemas/v1.Status' + description: OK + "401": + content: {} + description: Unauthorized + tags: + - resource_v1beta2 + x-kubernetes-action: deletecollection + x-kubernetes-group-version-kind: + group: resource.k8s.io + kind: DeviceClass + version: v1beta2 + x-codegen-request-body-name: body + x-contentType: application/json + x-accepts: application/json + get: + description: list or watch objects of kind DeviceClass + operationId: listDeviceClass + parameters: + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). + in: query + name: pretty + schema: type: string - type: object - x-kubernetes-map-type: atomic - v1alpha1.ParamKind: - description: ParamKind is a tuple of Group Kind and Version. - example: - apiVersion: apiVersion - kind: kind - properties: - apiVersion: - description: APIVersion is the API group version the resources belong to. - In format of "group/version". Required. + - description: 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. + in: query + name: allowWatchBookmarks + schema: + type: boolean + - description: |- + 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. + in: query + name: continue + schema: type: string - kind: - description: Kind is the API kind the resources belong to. Required. + - description: A selector to restrict the list of returned objects by their + fields. Defaults to everything. + in: query + name: fieldSelector + schema: type: string - type: object - x-kubernetes-map-type: atomic - v1alpha1.ParamRef: - description: ParamRef describes how to locate the params to be used as input - to expressions of rules applied by a policy binding. - example: - name: name - namespace: namespace - selector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - parameterNotFoundAction: parameterNotFoundAction - properties: - name: - description: |- - `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. + - description: A selector to restrict the list of returned objects by their + labels. Defaults to everything. + in: query + name: labelSelector + schema: type: string - namespace: - description: |- - 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. + - description: |- + limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. - A per-namespace parameter may be used by specifying a namespace-scoped `paramKind` in the policy and leaving this field empty. + The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + in: query + name: limit + schema: + type: integer + - description: |- + resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. - - If `paramKind` is cluster-scoped, this field MUST be unset. Setting this field results in a configuration error. + Defaults to unset + in: query + name: resourceVersion + schema: + type: string + - description: |- + resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. - - 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. + Defaults to unset + in: query + name: resourceVersionMatch + schema: type: string - parameterNotFoundAction: - description: |- - `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. + - description: |- + `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic "Bookmark" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `"k8s.io/initial-events-end": "true"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. - Allowed values are `Allow` or `Deny` Default to `Deny` + When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan + is interpreted as "data at least as new as the provided `resourceVersion`" + and the bookmark event is send when the state is synced + to a `resourceVersion` at least as fresh as the one provided by the ListOptions. + If `resourceVersion` is unset, this is interpreted as "consistent read" and the + bookmark event is send when the state is synced at least to the moment + when request started being processed. + - `resourceVersionMatch` set to any other value or unset + Invalid error is returned. + + Defaults to true if `resourceVersion=""` or `resourceVersion="0"` (for backward compatibility reasons) and to false otherwise. + in: query + name: sendInitialEvents + schema: + type: boolean + - description: Timeout for the list/watch call. This limits the duration of + the call, regardless of any activity or inactivity. + in: query + name: timeoutSeconds + schema: + type: integer + - description: Watch for changes to the described resources and return them + as a stream of add, update, and remove notifications. Specify resourceVersion. + in: query + name: watch + schema: + type: boolean + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1beta2.DeviceClassList' + application/yaml: + schema: + $ref: '#/components/schemas/v1beta2.DeviceClassList' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1beta2.DeviceClassList' + application/cbor: + schema: + $ref: '#/components/schemas/v1beta2.DeviceClassList' + application/json;stream=watch: + schema: + $ref: '#/components/schemas/v1beta2.DeviceClassList' + application/vnd.kubernetes.protobuf;stream=watch: + schema: + $ref: '#/components/schemas/v1beta2.DeviceClassList' + application/cbor-seq: + schema: + $ref: '#/components/schemas/v1beta2.DeviceClassList' + description: OK + "401": + content: {} + description: Unauthorized + tags: + - resource_v1beta2 + x-kubernetes-action: list + x-kubernetes-group-version-kind: + group: resource.k8s.io + kind: DeviceClass + version: v1beta2 + x-accepts: application/json + post: + description: create a DeviceClass + operationId: createDeviceClass + parameters: + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). + in: query + name: pretty + schema: type: string - selector: - $ref: '#/components/schemas/v1.LabelSelector' - type: object - x-kubernetes-map-type: atomic - v1alpha1.TypeChecking: - description: TypeChecking contains results of type checking the expressions - in the ValidatingAdmissionPolicy - example: - expressionWarnings: - - fieldRef: fieldRef - warning: warning - - fieldRef: fieldRef - warning: warning - properties: - expressionWarnings: - description: The type checking warnings for each expression. - items: - $ref: '#/components/schemas/v1alpha1.ExpressionWarning' - type: array - x-kubernetes-list-type: atomic - type: object - v1alpha1.ValidatingAdmissionPolicy: - description: ValidatingAdmissionPolicy describes the definition of an admission - validation policy that accepts or rejects an object without changing it. - example: - metadata: - generation: 6 - finalizers: - - finalizers - - finalizers - resourceVersion: resourceVersion - annotations: - key: annotations - generateName: generateName - deletionTimestamp: 2000-01-23T04:56:07.000+00:00 - labels: - key: labels - ownerReferences: - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - selfLink: selfLink - deletionGracePeriodSeconds: 0 - uid: uid - managedFields: - - apiVersion: apiVersion - fieldsV1: '{}' - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - - apiVersion: apiVersion - fieldsV1: '{}' - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - creationTimestamp: 2000-01-23T04:56:07.000+00:00 - name: name - namespace: namespace - apiVersion: apiVersion - kind: kind - spec: - variables: - - expression: expression - name: name - - expression: expression - name: name - paramKind: - apiVersion: apiVersion - kind: kind - auditAnnotations: - - valueExpression: valueExpression - key: key - - valueExpression: valueExpression - key: key - matchConditions: - - expression: expression - name: name - - expression: expression - name: name - matchConstraints: - matchPolicy: matchPolicy - resourceRules: - - resourceNames: - - resourceNames - - resourceNames - operations: - - operations - - operations - apiVersions: - - apiVersions - - apiVersions - scope: scope - resources: - - resources - - resources - apiGroups: - - apiGroups - - apiGroups - - resourceNames: - - resourceNames - - resourceNames - operations: - - operations - - operations - apiVersions: - - apiVersions - - apiVersions - scope: scope - resources: - - resources - - resources - apiGroups: - - apiGroups - - apiGroups - excludeResourceRules: - - resourceNames: - - resourceNames - - resourceNames - operations: - - operations - - operations - apiVersions: - - apiVersions - - apiVersions - scope: scope - resources: - - resources - - resources - apiGroups: - - apiGroups - - apiGroups - - resourceNames: - - resourceNames - - resourceNames - operations: - - operations - - operations - apiVersions: - - apiVersions - - apiVersions - scope: scope - resources: - - resources - - resources - apiGroups: - - apiGroups - - apiGroups - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - objectSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - validations: - - reason: reason - expression: expression - messageExpression: messageExpression - message: message - - reason: reason - expression: expression - messageExpression: messageExpression - message: message - failurePolicy: failurePolicy - status: - typeChecking: - expressionWarnings: - - fieldRef: fieldRef - warning: warning - - fieldRef: fieldRef - warning: warning - conditions: - - reason: reason - lastTransitionTime: 2000-01-23T04:56:07.000+00:00 - message: message - type: type - observedGeneration: 5 - status: status - - reason: reason - lastTransitionTime: 2000-01-23T04:56:07.000+00:00 - message: message - type: type - observedGeneration: 5 - status: status - observedGeneration: 0 - properties: - apiVersion: - description: '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' + - description: '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' + in: query + name: dryRun + schema: type: string - kind: - description: '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' + - description: fieldManager is a name associated with the actor or entity that + is making these changes. The value must be less than or 128 characters long, + and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + in: query + name: fieldManager + schema: type: string - metadata: - $ref: '#/components/schemas/v1.ObjectMeta' - spec: - $ref: '#/components/schemas/v1alpha1.ValidatingAdmissionPolicySpec' - status: - $ref: '#/components/schemas/v1alpha1.ValidatingAdmissionPolicyStatus' - type: object + - description: 'fieldValidation instructs the server on how to handle objects + in the request (POST/PUT/PATCH) containing unknown or duplicate fields. + Valid values are: - Ignore: This will ignore any unknown fields that are + silently dropped from the object, and will ignore all but the last duplicate + field that the decoder encounters. This is the default behavior prior to + v1.23. - Warn: This will send a warning via the standard warning response + header for each unknown field that is dropped from the object, and for each + duplicate field that is encountered. The request will still succeed if there + are no other errors, and will only persist the last of any duplicate fields. + This is the default in v1.23+ - Strict: This will fail the request with + a BadRequest error if any unknown fields would be dropped from the object, + or if any duplicate fields are present. The error returned from the server + will contain all unknown and duplicate fields encountered.' + in: query + name: fieldValidation + schema: + type: string + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/v1beta2.DeviceClass' + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1beta2.DeviceClass' + application/yaml: + schema: + $ref: '#/components/schemas/v1beta2.DeviceClass' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1beta2.DeviceClass' + application/cbor: + schema: + $ref: '#/components/schemas/v1beta2.DeviceClass' + description: OK + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/v1beta2.DeviceClass' + application/yaml: + schema: + $ref: '#/components/schemas/v1beta2.DeviceClass' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1beta2.DeviceClass' + application/cbor: + schema: + $ref: '#/components/schemas/v1beta2.DeviceClass' + description: Created + "202": + content: + application/json: + schema: + $ref: '#/components/schemas/v1beta2.DeviceClass' + application/yaml: + schema: + $ref: '#/components/schemas/v1beta2.DeviceClass' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1beta2.DeviceClass' + application/cbor: + schema: + $ref: '#/components/schemas/v1beta2.DeviceClass' + description: Accepted + "401": + content: {} + description: Unauthorized + tags: + - resource_v1beta2 + x-kubernetes-action: post x-kubernetes-group-version-kind: - - group: admissionregistration.k8s.io - kind: ValidatingAdmissionPolicy - version: v1alpha1 - x-implements: - - io.kubernetes.client.common.KubernetesObject - v1alpha1.ValidatingAdmissionPolicyBinding: - 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. - example: - metadata: - generation: 6 - finalizers: - - finalizers - - finalizers - resourceVersion: resourceVersion - annotations: - key: annotations - generateName: generateName - deletionTimestamp: 2000-01-23T04:56:07.000+00:00 - labels: - key: labels - ownerReferences: - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - selfLink: selfLink - deletionGracePeriodSeconds: 0 - uid: uid - managedFields: - - apiVersion: apiVersion - fieldsV1: '{}' - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - - apiVersion: apiVersion - fieldsV1: '{}' - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - creationTimestamp: 2000-01-23T04:56:07.000+00:00 - name: name - namespace: namespace - apiVersion: apiVersion - kind: kind - spec: - paramRef: - name: name - namespace: namespace - selector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - parameterNotFoundAction: parameterNotFoundAction - policyName: policyName - matchResources: - matchPolicy: matchPolicy - resourceRules: - - resourceNames: - - resourceNames - - resourceNames - operations: - - operations - - operations - apiVersions: - - apiVersions - - apiVersions - scope: scope - resources: - - resources - - resources - apiGroups: - - apiGroups - - apiGroups - - resourceNames: - - resourceNames - - resourceNames - operations: - - operations - - operations - apiVersions: - - apiVersions - - apiVersions - scope: scope - resources: - - resources - - resources - apiGroups: - - apiGroups - - apiGroups - excludeResourceRules: - - resourceNames: - - resourceNames - - resourceNames - operations: - - operations - - operations - apiVersions: - - apiVersions - - apiVersions - scope: scope - resources: - - resources - - resources - apiGroups: - - apiGroups - - apiGroups - - resourceNames: - - resourceNames - - resourceNames - operations: - - operations - - operations - apiVersions: - - apiVersions - - apiVersions - scope: scope - resources: - - resources - - resources - apiGroups: - - apiGroups - - apiGroups - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - objectSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - validationActions: - - validationActions - - validationActions - properties: - apiVersion: - description: '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' + group: resource.k8s.io + kind: DeviceClass + version: v1beta2 + x-codegen-request-body-name: body + x-contentType: application/json + x-accepts: application/json + /apis/resource.k8s.io/v1beta2/deviceclasses/{name}: + delete: + description: delete a DeviceClass + operationId: deleteDeviceClass + parameters: + - description: name of the DeviceClass + in: path + name: name + required: true + schema: type: string - kind: - description: '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' + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). + in: query + name: pretty + schema: type: string - metadata: - $ref: '#/components/schemas/v1.ObjectMeta' - spec: - $ref: '#/components/schemas/v1alpha1.ValidatingAdmissionPolicyBindingSpec' - type: object + - description: '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' + in: query + name: dryRun + schema: + type: string + - description: 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. + in: query + name: gracePeriodSeconds + schema: + type: integer + - description: 'if set to true, it will trigger an unsafe deletion of the resource + in case the normal deletion flow fails with a corrupt object error. A resource + is considered corrupt if it can not be retrieved from the underlying storage + successfully because of a) its data can not be transformed e.g. decryption + failure, or b) it fails to decode into an object. NOTE: unsafe deletion + ignores finalizer constraints, skips precondition checks, and removes the + object from the storage. WARNING: This may potentially break the cluster + if the workload associated with the resource being unsafe-deleted relies + on normal deletion flow. Use only if you REALLY know what you are doing. + The default value is false, and the user must opt in to enable it' + in: query + name: ignoreStoreReadErrorWithClusterBreakingPotential + schema: + type: boolean + - description: '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.' + in: query + name: orphanDependents + schema: + type: boolean + - description: '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.' + in: query + name: propagationPolicy + schema: + type: string + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/v1.DeleteOptions' + required: false + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1beta2.DeviceClass' + application/yaml: + schema: + $ref: '#/components/schemas/v1beta2.DeviceClass' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1beta2.DeviceClass' + application/cbor: + schema: + $ref: '#/components/schemas/v1beta2.DeviceClass' + description: OK + "202": + content: + application/json: + schema: + $ref: '#/components/schemas/v1beta2.DeviceClass' + application/yaml: + schema: + $ref: '#/components/schemas/v1beta2.DeviceClass' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1beta2.DeviceClass' + application/cbor: + schema: + $ref: '#/components/schemas/v1beta2.DeviceClass' + description: Accepted + "401": + content: {} + description: Unauthorized + tags: + - resource_v1beta2 + x-kubernetes-action: delete x-kubernetes-group-version-kind: - - group: admissionregistration.k8s.io - kind: ValidatingAdmissionPolicyBinding - version: v1alpha1 - x-implements: - - io.kubernetes.client.common.KubernetesObject - v1alpha1.ValidatingAdmissionPolicyBindingList: - description: ValidatingAdmissionPolicyBindingList is a list of ValidatingAdmissionPolicyBinding. - example: - metadata: - remainingItemCount: 1 - continue: continue - resourceVersion: resourceVersion - selfLink: selfLink - apiVersion: apiVersion - kind: kind - items: - - metadata: - generation: 6 - finalizers: - - finalizers - - finalizers - resourceVersion: resourceVersion - annotations: - key: annotations - generateName: generateName - deletionTimestamp: 2000-01-23T04:56:07.000+00:00 - labels: - key: labels - ownerReferences: - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - selfLink: selfLink - deletionGracePeriodSeconds: 0 - uid: uid - managedFields: - - apiVersion: apiVersion - fieldsV1: '{}' - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - - apiVersion: apiVersion - fieldsV1: '{}' - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - creationTimestamp: 2000-01-23T04:56:07.000+00:00 - name: name - namespace: namespace - apiVersion: apiVersion - kind: kind - spec: - paramRef: - name: name - namespace: namespace - selector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - parameterNotFoundAction: parameterNotFoundAction - policyName: policyName - matchResources: - matchPolicy: matchPolicy - resourceRules: - - resourceNames: - - resourceNames - - resourceNames - operations: - - operations - - operations - apiVersions: - - apiVersions - - apiVersions - scope: scope - resources: - - resources - - resources - apiGroups: - - apiGroups - - apiGroups - - resourceNames: - - resourceNames - - resourceNames - operations: - - operations - - operations - apiVersions: - - apiVersions - - apiVersions - scope: scope - resources: - - resources - - resources - apiGroups: - - apiGroups - - apiGroups - excludeResourceRules: - - resourceNames: - - resourceNames - - resourceNames - operations: - - operations - - operations - apiVersions: - - apiVersions - - apiVersions - scope: scope - resources: - - resources - - resources - apiGroups: - - apiGroups - - apiGroups - - resourceNames: - - resourceNames - - resourceNames - operations: - - operations - - operations - apiVersions: - - apiVersions - - apiVersions - scope: scope - resources: - - resources - - resources - apiGroups: - - apiGroups - - apiGroups - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - objectSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - validationActions: - - validationActions - - validationActions - - metadata: - generation: 6 - finalizers: - - finalizers - - finalizers - resourceVersion: resourceVersion - annotations: - key: annotations - generateName: generateName - deletionTimestamp: 2000-01-23T04:56:07.000+00:00 - labels: - key: labels - ownerReferences: - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - selfLink: selfLink - deletionGracePeriodSeconds: 0 - uid: uid - managedFields: - - apiVersion: apiVersion - fieldsV1: '{}' - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - - apiVersion: apiVersion - fieldsV1: '{}' - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - creationTimestamp: 2000-01-23T04:56:07.000+00:00 - name: name - namespace: namespace - apiVersion: apiVersion - kind: kind - spec: - paramRef: - name: name - namespace: namespace - selector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - parameterNotFoundAction: parameterNotFoundAction - policyName: policyName - matchResources: - matchPolicy: matchPolicy - resourceRules: - - resourceNames: - - resourceNames - - resourceNames - operations: - - operations - - operations - apiVersions: - - apiVersions - - apiVersions - scope: scope - resources: - - resources - - resources - apiGroups: - - apiGroups - - apiGroups - - resourceNames: - - resourceNames - - resourceNames - operations: - - operations - - operations - apiVersions: - - apiVersions - - apiVersions - scope: scope - resources: - - resources - - resources - apiGroups: - - apiGroups - - apiGroups - excludeResourceRules: - - resourceNames: - - resourceNames - - resourceNames - operations: - - operations - - operations - apiVersions: - - apiVersions - - apiVersions - scope: scope - resources: - - resources - - resources - apiGroups: - - apiGroups - - apiGroups - - resourceNames: - - resourceNames - - resourceNames - operations: - - operations - - operations - apiVersions: - - apiVersions - - apiVersions - scope: scope - resources: - - resources - - resources - apiGroups: - - apiGroups - - apiGroups - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - objectSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - validationActions: - - validationActions - - validationActions - properties: - apiVersion: - description: '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' + group: resource.k8s.io + kind: DeviceClass + version: v1beta2 + x-codegen-request-body-name: body + x-contentType: application/json + x-accepts: application/json + get: + description: read the specified DeviceClass + operationId: readDeviceClass + parameters: + - description: name of the DeviceClass + in: path + name: name + required: true + schema: type: string - items: - description: List of PolicyBinding. - items: - $ref: '#/components/schemas/v1alpha1.ValidatingAdmissionPolicyBinding' - type: array - kind: - description: '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' + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). + in: query + name: pretty + schema: type: string - metadata: - $ref: '#/components/schemas/v1.ListMeta' - type: object + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1beta2.DeviceClass' + application/yaml: + schema: + $ref: '#/components/schemas/v1beta2.DeviceClass' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1beta2.DeviceClass' + application/cbor: + schema: + $ref: '#/components/schemas/v1beta2.DeviceClass' + description: OK + "401": + content: {} + description: Unauthorized + tags: + - resource_v1beta2 + x-kubernetes-action: get x-kubernetes-group-version-kind: - - group: admissionregistration.k8s.io - kind: ValidatingAdmissionPolicyBindingList - version: v1alpha1 - x-implements: - - io.kubernetes.client.common.KubernetesListObject - v1alpha1.ValidatingAdmissionPolicyBindingSpec: - description: ValidatingAdmissionPolicyBindingSpec is the specification of the - ValidatingAdmissionPolicyBinding. - example: - paramRef: - name: name - namespace: namespace - selector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - parameterNotFoundAction: parameterNotFoundAction - policyName: policyName - matchResources: - matchPolicy: matchPolicy - resourceRules: - - resourceNames: - - resourceNames - - resourceNames - operations: - - operations - - operations - apiVersions: - - apiVersions - - apiVersions - scope: scope - resources: - - resources - - resources - apiGroups: - - apiGroups - - apiGroups - - resourceNames: - - resourceNames - - resourceNames - operations: - - operations - - operations - apiVersions: - - apiVersions - - apiVersions - scope: scope - resources: - - resources - - resources - apiGroups: - - apiGroups - - apiGroups - excludeResourceRules: - - resourceNames: - - resourceNames - - resourceNames - operations: - - operations - - operations - apiVersions: - - apiVersions - - apiVersions - scope: scope - resources: - - resources - - resources - apiGroups: - - apiGroups - - apiGroups - - resourceNames: - - resourceNames - - resourceNames - operations: - - operations - - operations - apiVersions: - - apiVersions - - apiVersions - scope: scope - resources: - - resources - - resources - apiGroups: - - apiGroups - - apiGroups - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - objectSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - validationActions: - - validationActions - - validationActions - properties: - matchResources: - $ref: '#/components/schemas/v1alpha1.MatchResources' - paramRef: - $ref: '#/components/schemas/v1alpha1.ParamRef' - policyName: - description: 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. + group: resource.k8s.io + kind: DeviceClass + version: v1beta2 + x-accepts: application/json + patch: + description: partially update the specified DeviceClass + operationId: patchDeviceClass + parameters: + - description: name of the DeviceClass + in: path + name: name + required: true + schema: type: string - validationActions: - description: |- - 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: + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). + in: query + name: pretty + schema: + type: string + - description: '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' + in: query + name: dryRun + schema: + type: string + - description: fieldManager is a name associated with the actor or entity that + is making these changes. The value must be less than or 128 characters long, + and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + This field is required for apply requests (application/apply-patch) but + optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). + in: query + name: fieldManager + schema: + type: string + - description: 'fieldValidation instructs the server on how to handle objects + in the request (POST/PUT/PATCH) containing unknown or duplicate fields. + Valid values are: - Ignore: This will ignore any unknown fields that are + silently dropped from the object, and will ignore all but the last duplicate + field that the decoder encounters. This is the default behavior prior to + v1.23. - Warn: This will send a warning via the standard warning response + header for each unknown field that is dropped from the object, and for each + duplicate field that is encountered. The request will still succeed if there + are no other errors, and will only persist the last of any duplicate fields. + This is the default in v1.23+ - Strict: This will fail the request with + a BadRequest error if any unknown fields would be dropped from the object, + or if any duplicate fields are present. The error returned from the server + will contain all unknown and duplicate fields encountered.' + in: query + name: fieldValidation + schema: + type: string + - description: Force is going to "force" Apply requests. It means user will + re-acquire conflicting fields owned by other people. Force flag must be + unset for non-apply patch requests. + in: query + name: force + schema: + type: boolean + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/v1.Patch' + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1beta2.DeviceClass' + application/yaml: + schema: + $ref: '#/components/schemas/v1beta2.DeviceClass' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1beta2.DeviceClass' + application/cbor: + schema: + $ref: '#/components/schemas/v1beta2.DeviceClass' + description: OK + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/v1beta2.DeviceClass' + application/yaml: + schema: + $ref: '#/components/schemas/v1beta2.DeviceClass' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1beta2.DeviceClass' + application/cbor: + schema: + $ref: '#/components/schemas/v1beta2.DeviceClass' + description: Created + "401": + content: {} + description: Unauthorized + tags: + - resource_v1beta2 + x-kubernetes-action: patch + x-kubernetes-group-version-kind: + group: resource.k8s.io + kind: DeviceClass + version: v1beta2 + x-codegen-request-body-name: body + x-contentType: application/json + x-accepts: application/json + put: + description: replace the specified DeviceClass + operationId: replaceDeviceClass + parameters: + - description: name of the DeviceClass + in: path + name: name + required: true + schema: + type: string + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). + in: query + name: pretty + schema: + type: string + - description: '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' + in: query + name: dryRun + schema: + type: string + - description: fieldManager is a name associated with the actor or entity that + is making these changes. The value must be less than or 128 characters long, + and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + in: query + name: fieldManager + schema: + type: string + - description: 'fieldValidation instructs the server on how to handle objects + in the request (POST/PUT/PATCH) containing unknown or duplicate fields. + Valid values are: - Ignore: This will ignore any unknown fields that are + silently dropped from the object, and will ignore all but the last duplicate + field that the decoder encounters. This is the default behavior prior to + v1.23. - Warn: This will send a warning via the standard warning response + header for each unknown field that is dropped from the object, and for each + duplicate field that is encountered. The request will still succeed if there + are no other errors, and will only persist the last of any duplicate fields. + This is the default in v1.23+ - Strict: This will fail the request with + a BadRequest error if any unknown fields would be dropped from the object, + or if any duplicate fields are present. The error returned from the server + will contain all unknown and duplicate fields encountered.' + in: query + name: fieldValidation + schema: + type: string + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/v1beta2.DeviceClass' + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1beta2.DeviceClass' + application/yaml: + schema: + $ref: '#/components/schemas/v1beta2.DeviceClass' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1beta2.DeviceClass' + application/cbor: + schema: + $ref: '#/components/schemas/v1beta2.DeviceClass' + description: OK + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/v1beta2.DeviceClass' + application/yaml: + schema: + $ref: '#/components/schemas/v1beta2.DeviceClass' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1beta2.DeviceClass' + application/cbor: + schema: + $ref: '#/components/schemas/v1beta2.DeviceClass' + description: Created + "401": + content: {} + description: Unauthorized + tags: + - resource_v1beta2 + x-kubernetes-action: put + x-kubernetes-group-version-kind: + group: resource.k8s.io + kind: DeviceClass + version: v1beta2 + x-codegen-request-body-name: body + x-contentType: application/json + x-accepts: application/json + /apis/resource.k8s.io/v1beta2/namespaces/{namespace}/resourceclaims: + delete: + description: delete collection of ResourceClaim + operationId: deleteCollectionNamespacedResourceClaim + parameters: + - description: object name and auth scope, such as for teams and projects + in: path + name: namespace + required: true + schema: + type: string + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). + in: query + name: pretty + schema: + type: string + - description: |- + 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". - "Deny" specifies that a validation failure results in a denied request. + 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. + in: query + name: continue + schema: + type: string + - description: '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' + in: query + 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 + - description: 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. + in: query + name: gracePeriodSeconds + schema: + type: integer + - description: 'if set to true, it will trigger an unsafe deletion of the resource + in case the normal deletion flow fails with a corrupt object error. A resource + is considered corrupt if it can not be retrieved from the underlying storage + successfully because of a) its data can not be transformed e.g. decryption + failure, or b) it fails to decode into an object. NOTE: unsafe deletion + ignores finalizer constraints, skips precondition checks, and removes the + object from the storage. WARNING: This may potentially break the cluster + if the workload associated with the resource being unsafe-deleted relies + on normal deletion flow. Use only if you REALLY know what you are doing. + The default value is false, and the user must opt in to enable it' + in: query + name: ignoreStoreReadErrorWithClusterBreakingPotential + schema: + type: boolean + - description: A selector to restrict the list of returned objects by their + labels. Defaults to everything. + in: query + name: labelSelector + schema: + type: string + - description: |- + limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. - "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. + The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + in: query + name: limit + schema: + type: integer + - description: '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.' + in: query + name: orphanDependents + schema: + type: boolean + - description: '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.' + in: query + name: propagationPolicy + schema: + type: string + - description: |- + resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. - "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"]}]"` + Defaults to unset + in: query + name: resourceVersion + schema: + type: string + - description: |- + resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. - Clients should expect to handle additional values by ignoring any values not recognized. + Defaults to unset + in: query + name: resourceVersionMatch + schema: + type: string + - description: |- + `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic "Bookmark" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `"k8s.io/initial-events-end": "true"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. - "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. + When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan + is interpreted as "data at least as new as the provided `resourceVersion`" + and the bookmark event is send when the state is synced + to a `resourceVersion` at least as fresh as the one provided by the ListOptions. + If `resourceVersion` is unset, this is interpreted as "consistent read" and the + bookmark event is send when the state is synced at least to the moment + when request started being processed. + - `resourceVersionMatch` set to any other value or unset + Invalid error is returned. - Required. - items: - type: string - type: array - x-kubernetes-list-type: set - type: object - v1alpha1.ValidatingAdmissionPolicyList: - description: ValidatingAdmissionPolicyList is a list of ValidatingAdmissionPolicy. - example: - metadata: - remainingItemCount: 1 - continue: continue - resourceVersion: resourceVersion - selfLink: selfLink - apiVersion: apiVersion - kind: kind - items: - - metadata: - generation: 6 - finalizers: - - finalizers - - finalizers - resourceVersion: resourceVersion - annotations: - key: annotations - generateName: generateName - deletionTimestamp: 2000-01-23T04:56:07.000+00:00 - labels: - key: labels - ownerReferences: - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - selfLink: selfLink - deletionGracePeriodSeconds: 0 - uid: uid - managedFields: - - apiVersion: apiVersion - fieldsV1: '{}' - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - - apiVersion: apiVersion - fieldsV1: '{}' - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - creationTimestamp: 2000-01-23T04:56:07.000+00:00 - name: name - namespace: namespace - apiVersion: apiVersion - kind: kind - spec: - variables: - - expression: expression - name: name - - expression: expression - name: name - paramKind: - apiVersion: apiVersion - kind: kind - auditAnnotations: - - valueExpression: valueExpression - key: key - - valueExpression: valueExpression - key: key - matchConditions: - - expression: expression - name: name - - expression: expression - name: name - matchConstraints: - matchPolicy: matchPolicy - resourceRules: - - resourceNames: - - resourceNames - - resourceNames - operations: - - operations - - operations - apiVersions: - - apiVersions - - apiVersions - scope: scope - resources: - - resources - - resources - apiGroups: - - apiGroups - - apiGroups - - resourceNames: - - resourceNames - - resourceNames - operations: - - operations - - operations - apiVersions: - - apiVersions - - apiVersions - scope: scope - resources: - - resources - - resources - apiGroups: - - apiGroups - - apiGroups - excludeResourceRules: - - resourceNames: - - resourceNames - - resourceNames - operations: - - operations - - operations - apiVersions: - - apiVersions - - apiVersions - scope: scope - resources: - - resources - - resources - apiGroups: - - apiGroups - - apiGroups - - resourceNames: - - resourceNames - - resourceNames - operations: - - operations - - operations - apiVersions: - - apiVersions - - apiVersions - scope: scope - resources: - - resources - - resources - apiGroups: - - apiGroups - - apiGroups - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - objectSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - validations: - - reason: reason - expression: expression - messageExpression: messageExpression - message: message - - reason: reason - expression: expression - messageExpression: messageExpression - message: message - failurePolicy: failurePolicy - status: - typeChecking: - expressionWarnings: - - fieldRef: fieldRef - warning: warning - - fieldRef: fieldRef - warning: warning - conditions: - - reason: reason - lastTransitionTime: 2000-01-23T04:56:07.000+00:00 - message: message - type: type - observedGeneration: 5 - status: status - - reason: reason - lastTransitionTime: 2000-01-23T04:56:07.000+00:00 - message: message - type: type - observedGeneration: 5 - status: status - observedGeneration: 0 - - metadata: - generation: 6 - finalizers: - - finalizers - - finalizers - resourceVersion: resourceVersion - annotations: - key: annotations - generateName: generateName - deletionTimestamp: 2000-01-23T04:56:07.000+00:00 - labels: - key: labels - ownerReferences: - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - selfLink: selfLink - deletionGracePeriodSeconds: 0 - uid: uid - managedFields: - - apiVersion: apiVersion - fieldsV1: '{}' - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - - apiVersion: apiVersion - fieldsV1: '{}' - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - creationTimestamp: 2000-01-23T04:56:07.000+00:00 - name: name - namespace: namespace - apiVersion: apiVersion - kind: kind - spec: - variables: - - expression: expression - name: name - - expression: expression - name: name - paramKind: - apiVersion: apiVersion - kind: kind - auditAnnotations: - - valueExpression: valueExpression - key: key - - valueExpression: valueExpression - key: key - matchConditions: - - expression: expression - name: name - - expression: expression - name: name - matchConstraints: - matchPolicy: matchPolicy - resourceRules: - - resourceNames: - - resourceNames - - resourceNames - operations: - - operations - - operations - apiVersions: - - apiVersions - - apiVersions - scope: scope - resources: - - resources - - resources - apiGroups: - - apiGroups - - apiGroups - - resourceNames: - - resourceNames - - resourceNames - operations: - - operations - - operations - apiVersions: - - apiVersions - - apiVersions - scope: scope - resources: - - resources - - resources - apiGroups: - - apiGroups - - apiGroups - excludeResourceRules: - - resourceNames: - - resourceNames - - resourceNames - operations: - - operations - - operations - apiVersions: - - apiVersions - - apiVersions - scope: scope - resources: - - resources - - resources - apiGroups: - - apiGroups - - apiGroups - - resourceNames: - - resourceNames - - resourceNames - operations: - - operations - - operations - apiVersions: - - apiVersions - - apiVersions - scope: scope - resources: - - resources - - resources - apiGroups: - - apiGroups - - apiGroups - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - objectSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - validations: - - reason: reason - expression: expression - messageExpression: messageExpression - message: message - - reason: reason - expression: expression - messageExpression: messageExpression - message: message - failurePolicy: failurePolicy - status: - typeChecking: - expressionWarnings: - - fieldRef: fieldRef - warning: warning - - fieldRef: fieldRef - warning: warning - conditions: - - reason: reason - lastTransitionTime: 2000-01-23T04:56:07.000+00:00 - message: message - type: type - observedGeneration: 5 - status: status - - reason: reason - lastTransitionTime: 2000-01-23T04:56:07.000+00:00 - message: message - type: type - observedGeneration: 5 - status: status - observedGeneration: 0 - properties: - apiVersion: - description: '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' + Defaults to true if `resourceVersion=""` or `resourceVersion="0"` (for backward compatibility reasons) and to false otherwise. + in: query + name: sendInitialEvents + schema: + type: boolean + - description: Timeout for the list/watch call. This limits the duration of + the call, regardless of any activity or inactivity. + in: query + name: timeoutSeconds + schema: + type: integer + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/v1.DeleteOptions' + required: false + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.Status' + application/yaml: + schema: + $ref: '#/components/schemas/v1.Status' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.Status' + application/cbor: + schema: + $ref: '#/components/schemas/v1.Status' + description: OK + "401": + content: {} + description: Unauthorized + tags: + - resource_v1beta2 + x-kubernetes-action: deletecollection + x-kubernetes-group-version-kind: + group: resource.k8s.io + kind: ResourceClaim + version: v1beta2 + x-codegen-request-body-name: body + x-contentType: application/json + x-accepts: application/json + get: + description: list or watch objects of kind ResourceClaim + operationId: listNamespacedResourceClaim + parameters: + - description: object name and auth scope, such as for teams and projects + in: path + name: namespace + required: true + schema: type: string - items: - description: List of ValidatingAdmissionPolicy. - items: - $ref: '#/components/schemas/v1alpha1.ValidatingAdmissionPolicy' - type: array - kind: - description: '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' + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). + in: query + name: pretty + schema: type: string - metadata: - $ref: '#/components/schemas/v1.ListMeta' - type: object - x-kubernetes-group-version-kind: - - group: admissionregistration.k8s.io - kind: ValidatingAdmissionPolicyList - version: v1alpha1 - x-implements: - - io.kubernetes.client.common.KubernetesListObject - v1alpha1.ValidatingAdmissionPolicySpec: - description: ValidatingAdmissionPolicySpec is the specification of the desired - behavior of the AdmissionPolicy. - example: - variables: - - expression: expression - name: name - - expression: expression - name: name - paramKind: - apiVersion: apiVersion - kind: kind - auditAnnotations: - - valueExpression: valueExpression - key: key - - valueExpression: valueExpression - key: key - matchConditions: - - expression: expression - name: name - - expression: expression - name: name - matchConstraints: - matchPolicy: matchPolicy - resourceRules: - - resourceNames: - - resourceNames - - resourceNames - operations: - - operations - - operations - apiVersions: - - apiVersions - - apiVersions - scope: scope - resources: - - resources - - resources - apiGroups: - - apiGroups - - apiGroups - - resourceNames: - - resourceNames - - resourceNames - operations: - - operations - - operations - apiVersions: - - apiVersions - - apiVersions - scope: scope - resources: - - resources - - resources - apiGroups: - - apiGroups - - apiGroups - excludeResourceRules: - - resourceNames: - - resourceNames - - resourceNames - operations: - - operations - - operations - apiVersions: - - apiVersions - - apiVersions - scope: scope - resources: - - resources - - resources - apiGroups: - - apiGroups - - apiGroups - - resourceNames: - - resourceNames - - resourceNames - operations: - - operations - - operations - apiVersions: - - apiVersions - - apiVersions - scope: scope - resources: - - resources - - resources - apiGroups: - - apiGroups - - apiGroups - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - objectSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - validations: - - reason: reason - expression: expression - messageExpression: messageExpression - message: message - - reason: reason - expression: expression - messageExpression: messageExpression - message: message - failurePolicy: failurePolicy - properties: - auditAnnotations: - description: 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. - items: - $ref: '#/components/schemas/v1alpha1.AuditAnnotation' - type: array - x-kubernetes-list-type: atomic - failurePolicy: - description: |- - 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. + - description: 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. + in: query + name: allowWatchBookmarks + schema: + type: boolean + - description: |- + 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". - failurePolicy does not define how validations that evaluate to false are handled. + 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. + in: query + name: continue + 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 + - description: A selector to restrict the list of returned objects by their + labels. Defaults to everything. + in: query + name: labelSelector + schema: + type: string + - description: |- + limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. - When failurePolicy is set to Fail, ValidatingAdmissionPolicyBinding validationActions define how failures are enforced. + The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + in: query + name: limit + schema: + type: integer + - description: |- + resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. - Allowed values are Ignore or Fail. Defaults to Fail. + Defaults to unset + in: query + name: resourceVersion + schema: type: string - matchConditions: - description: |- - 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. + - description: |- + resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. - If a parameter object is provided, it can be accessed via the `params` handle in the same manner as validation expressions. + Defaults to unset + in: query + name: resourceVersionMatch + schema: + type: string + - description: |- + `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic "Bookmark" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `"k8s.io/initial-events-end": "true"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. - 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 - items: - $ref: '#/components/schemas/v1alpha1.MatchCondition' - type: array - x-kubernetes-patch-strategy: merge - x-kubernetes-list-type: map - x-kubernetes-list-map-keys: - - name - x-kubernetes-patch-merge-key: name - matchConstraints: - $ref: '#/components/schemas/v1alpha1.MatchResources' - paramKind: - $ref: '#/components/schemas/v1alpha1.ParamKind' - validations: - description: 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. - items: - $ref: '#/components/schemas/v1alpha1.Validation' - type: array - x-kubernetes-list-type: atomic - variables: - description: |- - 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. + When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan + is interpreted as "data at least as new as the provided `resourceVersion`" + and the bookmark event is send when the state is synced + to a `resourceVersion` at least as fresh as the one provided by the ListOptions. + If `resourceVersion` is unset, this is interpreted as "consistent read" and the + bookmark event is send when the state is synced at least to the moment + when request started being processed. + - `resourceVersionMatch` set to any other value or unset + Invalid error is returned. - 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. - items: - $ref: '#/components/schemas/v1alpha1.Variable' - type: array - x-kubernetes-patch-strategy: merge - x-kubernetes-list-type: map - x-kubernetes-list-map-keys: - - name - x-kubernetes-patch-merge-key: name - type: object - v1alpha1.ValidatingAdmissionPolicyStatus: - description: ValidatingAdmissionPolicyStatus represents the status of a ValidatingAdmissionPolicy. - example: - typeChecking: - expressionWarnings: - - fieldRef: fieldRef - warning: warning - - fieldRef: fieldRef - warning: warning - conditions: - - reason: reason - lastTransitionTime: 2000-01-23T04:56:07.000+00:00 - message: message - type: type - observedGeneration: 5 - status: status - - reason: reason - lastTransitionTime: 2000-01-23T04:56:07.000+00:00 - message: message - type: type - observedGeneration: 5 - status: status - observedGeneration: 0 - properties: - conditions: - description: The conditions represent the latest available observations - of a policy's current state. - items: - $ref: '#/components/schemas/v1.Condition' - type: array - x-kubernetes-list-type: map - x-kubernetes-list-map-keys: - - type - observedGeneration: - description: The generation observed by the controller. - format: int64 + Defaults to true if `resourceVersion=""` or `resourceVersion="0"` (for backward compatibility reasons) and to false otherwise. + in: query + name: sendInitialEvents + schema: + type: boolean + - description: Timeout for the list/watch call. This limits the duration of + the call, regardless of any activity or inactivity. + in: query + name: timeoutSeconds + schema: type: integer - typeChecking: - $ref: '#/components/schemas/v1alpha1.TypeChecking' - type: object - v1alpha1.Validation: - description: Validation specifies the CEL expression which is used to apply - the validation. - example: - reason: reason - expression: expression - messageExpression: messageExpression - message: message - properties: - expression: - description: "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:\n\n- '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.\n For example,\ - \ a variable named 'foo' can be accessed as 'variables.foo'.\n- 'authorizer'\ - \ - A CEL Authorizer. May be used to perform authorization checks for\ - \ the principal (user or service account) of the request.\n See https://pkg.go.dev/k8s.io/apiserver/pkg/cel/library#Authz\n\ - - 'authorizer.requestResource' - A CEL ResourceCheck constructed from\ - \ the 'authorizer' and configured with the\n request resource.\n\nThe\ - \ `apiVersion`, `kind`, `metadata.name` and `metadata.generateName` are\ - \ always accessible from the root of the object. No other metadata properties\ - \ are accessible.\n\nOnly 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:\n\t \"true\", \"false\"\ - , \"null\", \"in\", \"as\", \"break\", \"const\", \"continue\", \"else\"\ - , \"for\", \"function\", \"if\",\n\t \"import\", \"let\", \"loop\", \"\ - package\", \"namespace\", \"return\".\nExamples:\n - Expression accessing\ - \ a property named \"namespace\": {\"Expression\": \"object.__namespace__\ - \ > 0\"}\n - Expression accessing a property named \"x-prop\": {\"Expression\"\ - : \"object.x__dash__prop > 0\"}\n - Expression accessing a property named\ - \ \"redact__d\": {\"Expression\": \"object.redact__underscores__d > 0\"\ - }\n\nEquality 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:\n - 'set': `X + Y` performs a union\ - \ where the array positions of all elements in `X` are preserved and\n\ - \ non-intersecting elements in `Y` are appended, retaining their partial\ - \ order.\n - 'map': `X + Y` performs a merge where the array positions\ - \ of all keys in `X` are preserved but the values\n are overwritten\ - \ by values in `Y` when the key sets of `X` and `Y` intersect. Elements\ - \ in `Y` with\n non-intersecting keys are appended, retaining their\ - \ partial order.\nRequired." + - description: Watch for changes to the described resources and return them + as a stream of add, update, and remove notifications. Specify resourceVersion. + in: query + name: watch + schema: + type: boolean + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1beta2.ResourceClaimList' + application/yaml: + schema: + $ref: '#/components/schemas/v1beta2.ResourceClaimList' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1beta2.ResourceClaimList' + application/cbor: + schema: + $ref: '#/components/schemas/v1beta2.ResourceClaimList' + application/json;stream=watch: + schema: + $ref: '#/components/schemas/v1beta2.ResourceClaimList' + application/vnd.kubernetes.protobuf;stream=watch: + schema: + $ref: '#/components/schemas/v1beta2.ResourceClaimList' + application/cbor-seq: + schema: + $ref: '#/components/schemas/v1beta2.ResourceClaimList' + description: OK + "401": + content: {} + description: Unauthorized + tags: + - resource_v1beta2 + x-kubernetes-action: list + x-kubernetes-group-version-kind: + group: resource.k8s.io + kind: ResourceClaim + version: v1beta2 + x-accepts: application/json + post: + description: create a ResourceClaim + operationId: createNamespacedResourceClaim + parameters: + - description: object name and auth scope, such as for teams and projects + in: path + name: namespace + required: true + schema: type: string - message: - description: '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}".' + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). + in: query + name: pretty + schema: type: string - messageExpression: - description: '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)+")"' + - description: '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' + in: query + name: dryRun + schema: type: string - reason: - description: '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.' + - description: fieldManager is a name associated with the actor or entity that + is making these changes. The value must be less than or 128 characters long, + and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + in: query + name: fieldManager + schema: type: string - required: - - expression - type: object - v1alpha1.Variable: - description: Variable is the definition of a variable that is used for composition. - example: - expression: expression + - description: 'fieldValidation instructs the server on how to handle objects + in the request (POST/PUT/PATCH) containing unknown or duplicate fields. + Valid values are: - Ignore: This will ignore any unknown fields that are + silently dropped from the object, and will ignore all but the last duplicate + field that the decoder encounters. This is the default behavior prior to + v1.23. - Warn: This will send a warning via the standard warning response + header for each unknown field that is dropped from the object, and for each + duplicate field that is encountered. The request will still succeed if there + are no other errors, and will only persist the last of any duplicate fields. + This is the default in v1.23+ - Strict: This will fail the request with + a BadRequest error if any unknown fields would be dropped from the object, + or if any duplicate fields are present. The error returned from the server + will contain all unknown and duplicate fields encountered.' + in: query + name: fieldValidation + schema: + type: string + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/v1beta2.ResourceClaim' + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1beta2.ResourceClaim' + application/yaml: + schema: + $ref: '#/components/schemas/v1beta2.ResourceClaim' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1beta2.ResourceClaim' + application/cbor: + schema: + $ref: '#/components/schemas/v1beta2.ResourceClaim' + description: OK + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/v1beta2.ResourceClaim' + application/yaml: + schema: + $ref: '#/components/schemas/v1beta2.ResourceClaim' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1beta2.ResourceClaim' + application/cbor: + schema: + $ref: '#/components/schemas/v1beta2.ResourceClaim' + description: Created + "202": + content: + application/json: + schema: + $ref: '#/components/schemas/v1beta2.ResourceClaim' + application/yaml: + schema: + $ref: '#/components/schemas/v1beta2.ResourceClaim' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1beta2.ResourceClaim' + application/cbor: + schema: + $ref: '#/components/schemas/v1beta2.ResourceClaim' + description: Accepted + "401": + content: {} + description: Unauthorized + tags: + - resource_v1beta2 + x-kubernetes-action: post + x-kubernetes-group-version-kind: + group: resource.k8s.io + kind: ResourceClaim + version: v1beta2 + x-codegen-request-body-name: body + x-contentType: application/json + x-accepts: application/json + /apis/resource.k8s.io/v1beta2/namespaces/{namespace}/resourceclaims/{name}: + delete: + description: delete a ResourceClaim + operationId: deleteNamespacedResourceClaim + parameters: + - description: name of the ResourceClaim + in: path name: name - properties: - expression: - description: 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. + required: true + schema: type: string - name: - description: 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` + - description: object name and auth scope, such as for teams and projects + in: path + name: namespace + required: true + schema: type: string - required: - - expression - - name - type: object - v1beta1.AuditAnnotation: - description: AuditAnnotation describes how to produce an audit annotation for - an API request. - example: - valueExpression: valueExpression - key: key - properties: - key: - description: |- - 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. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). + in: query + name: pretty + schema: type: string - valueExpression: - description: |- - 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. + - description: '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' + in: query + name: dryRun + schema: type: string - required: - - key - - valueExpression - type: object - v1beta1.ExpressionWarning: - description: ExpressionWarning is a warning information that targets a specific - expression. - example: - fieldRef: fieldRef - warning: warning - properties: - fieldRef: - description: 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" + - description: 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. + in: query + name: gracePeriodSeconds + schema: + type: integer + - description: 'if set to true, it will trigger an unsafe deletion of the resource + in case the normal deletion flow fails with a corrupt object error. A resource + is considered corrupt if it can not be retrieved from the underlying storage + successfully because of a) its data can not be transformed e.g. decryption + failure, or b) it fails to decode into an object. NOTE: unsafe deletion + ignores finalizer constraints, skips precondition checks, and removes the + object from the storage. WARNING: This may potentially break the cluster + if the workload associated with the resource being unsafe-deleted relies + on normal deletion flow. Use only if you REALLY know what you are doing. + The default value is false, and the user must opt in to enable it' + in: query + name: ignoreStoreReadErrorWithClusterBreakingPotential + schema: + type: boolean + - description: '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.' + in: query + name: orphanDependents + schema: + type: boolean + - description: '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.' + in: query + name: propagationPolicy + schema: type: string - warning: - description: 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. + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/v1.DeleteOptions' + required: false + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1beta2.ResourceClaim' + application/yaml: + schema: + $ref: '#/components/schemas/v1beta2.ResourceClaim' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1beta2.ResourceClaim' + application/cbor: + schema: + $ref: '#/components/schemas/v1beta2.ResourceClaim' + description: OK + "202": + content: + application/json: + schema: + $ref: '#/components/schemas/v1beta2.ResourceClaim' + application/yaml: + schema: + $ref: '#/components/schemas/v1beta2.ResourceClaim' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1beta2.ResourceClaim' + application/cbor: + schema: + $ref: '#/components/schemas/v1beta2.ResourceClaim' + description: Accepted + "401": + content: {} + description: Unauthorized + tags: + - resource_v1beta2 + x-kubernetes-action: delete + x-kubernetes-group-version-kind: + group: resource.k8s.io + kind: ResourceClaim + version: v1beta2 + x-codegen-request-body-name: body + x-contentType: application/json + x-accepts: application/json + get: + description: read the specified ResourceClaim + operationId: readNamespacedResourceClaim + parameters: + - description: name of the ResourceClaim + in: path + name: name + required: true + schema: type: string - required: - - fieldRef - - warning - type: object - v1beta1.MatchCondition: - description: MatchCondition represents a condition which must be fulfilled for - a request to be sent to a webhook. - example: - expression: expression + - description: object name and auth scope, such as for teams and projects + in: path + name: namespace + required: true + schema: + type: string + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). + in: query + name: pretty + schema: + type: string + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1beta2.ResourceClaim' + application/yaml: + schema: + $ref: '#/components/schemas/v1beta2.ResourceClaim' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1beta2.ResourceClaim' + application/cbor: + schema: + $ref: '#/components/schemas/v1beta2.ResourceClaim' + description: OK + "401": + content: {} + description: Unauthorized + tags: + - resource_v1beta2 + x-kubernetes-action: get + x-kubernetes-group-version-kind: + group: resource.k8s.io + kind: ResourceClaim + version: v1beta2 + x-accepts: application/json + patch: + description: partially update the specified ResourceClaim + operationId: patchNamespacedResourceClaim + parameters: + - description: name of the ResourceClaim + in: path name: name - properties: - expression: - description: |- - 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. + required: true + schema: type: string - name: - description: |- - 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. + - description: object name and auth scope, such as for teams and projects + in: path + name: namespace + required: true + schema: type: string - required: - - expression - - name - type: object - v1beta1.MatchResources: - 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) - example: - matchPolicy: matchPolicy - resourceRules: - - resourceNames: - - resourceNames - - resourceNames - operations: - - operations - - operations - apiVersions: - - apiVersions - - apiVersions - scope: scope - resources: - - resources - - resources - apiGroups: - - apiGroups - - apiGroups - - resourceNames: - - resourceNames - - resourceNames - operations: - - operations - - operations - apiVersions: - - apiVersions - - apiVersions - scope: scope - resources: - - resources - - resources - apiGroups: - - apiGroups - - apiGroups - excludeResourceRules: - - resourceNames: - - resourceNames - - resourceNames - operations: - - operations - - operations - apiVersions: - - apiVersions - - apiVersions - scope: scope - resources: - - resources - - resources - apiGroups: - - apiGroups - - apiGroups - - resourceNames: - - resourceNames - - resourceNames - operations: - - operations - - operations - apiVersions: - - apiVersions - - apiVersions - scope: scope - resources: - - resources - - resources - apiGroups: - - apiGroups - - apiGroups - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - objectSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - properties: - excludeResourceRules: - description: 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) - items: - $ref: '#/components/schemas/v1beta1.NamedRuleWithOperations' - type: array - x-kubernetes-list-type: atomic - matchPolicy: - description: |- - 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" + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). + in: query + name: pretty + schema: type: string - namespaceSelector: - $ref: '#/components/schemas/v1.LabelSelector' - objectSelector: - $ref: '#/components/schemas/v1.LabelSelector' - resourceRules: - description: ResourceRules describes what operations on what resources/subresources - the ValidatingAdmissionPolicy matches. The policy cares about an operation - if it matches _any_ Rule. - items: - $ref: '#/components/schemas/v1beta1.NamedRuleWithOperations' - type: array - x-kubernetes-list-type: atomic - type: object - x-kubernetes-map-type: atomic - v1beta1.NamedRuleWithOperations: - description: NamedRuleWithOperations is a tuple of Operations and Resources - with ResourceNames. - example: - resourceNames: - - resourceNames - - resourceNames - operations: - - operations - - operations - apiVersions: - - apiVersions - - apiVersions - scope: scope - resources: - - resources - - resources - apiGroups: - - apiGroups - - apiGroups - properties: - apiGroups: - description: APIGroups is the API groups the resources belong to. '*' is - all groups. If '*' is present, the length of the slice must be one. Required. - items: - type: string - type: array - x-kubernetes-list-type: atomic - apiVersions: - description: APIVersions is the API versions the resources belong to. '*' - is all versions. If '*' is present, the length of the slice must be one. - Required. - items: - type: string - type: array - x-kubernetes-list-type: atomic - operations: - description: 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. - items: - type: string - type: array - x-kubernetes-list-type: atomic - resourceNames: - description: ResourceNames is an optional white list of names that the rule - applies to. An empty set means that everything is allowed. - items: - type: string - type: array - x-kubernetes-list-type: atomic - resources: - description: |- - 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. - items: - type: string - type: array - x-kubernetes-list-type: atomic - scope: - description: 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 "*". + - description: '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' + in: query + name: dryRun + schema: type: string - type: object - x-kubernetes-map-type: atomic - v1beta1.ParamKind: - description: ParamKind is a tuple of Group Kind and Version. - example: - apiVersion: apiVersion - kind: kind - properties: - apiVersion: - description: APIVersion is the API group version the resources belong to. - In format of "group/version". Required. + - description: fieldManager is a name associated with the actor or entity that + is making these changes. The value must be less than or 128 characters long, + and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + This field is required for apply requests (application/apply-patch) but + optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). + in: query + name: fieldManager + schema: type: string - kind: - description: Kind is the API kind the resources belong to. Required. + - description: 'fieldValidation instructs the server on how to handle objects + in the request (POST/PUT/PATCH) containing unknown or duplicate fields. + Valid values are: - Ignore: This will ignore any unknown fields that are + silently dropped from the object, and will ignore all but the last duplicate + field that the decoder encounters. This is the default behavior prior to + v1.23. - Warn: This will send a warning via the standard warning response + header for each unknown field that is dropped from the object, and for each + duplicate field that is encountered. The request will still succeed if there + are no other errors, and will only persist the last of any duplicate fields. + This is the default in v1.23+ - Strict: This will fail the request with + a BadRequest error if any unknown fields would be dropped from the object, + or if any duplicate fields are present. The error returned from the server + will contain all unknown and duplicate fields encountered.' + in: query + name: fieldValidation + schema: type: string - type: object - x-kubernetes-map-type: atomic - v1beta1.ParamRef: - description: ParamRef describes how to locate the params to be used as input - to expressions of rules applied by a policy binding. - example: + - description: Force is going to "force" Apply requests. It means user will + re-acquire conflicting fields owned by other people. Force flag must be + unset for non-apply patch requests. + in: query + name: force + schema: + type: boolean + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/v1.Patch' + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1beta2.ResourceClaim' + application/yaml: + schema: + $ref: '#/components/schemas/v1beta2.ResourceClaim' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1beta2.ResourceClaim' + application/cbor: + schema: + $ref: '#/components/schemas/v1beta2.ResourceClaim' + description: OK + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/v1beta2.ResourceClaim' + application/yaml: + schema: + $ref: '#/components/schemas/v1beta2.ResourceClaim' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1beta2.ResourceClaim' + application/cbor: + schema: + $ref: '#/components/schemas/v1beta2.ResourceClaim' + description: Created + "401": + content: {} + description: Unauthorized + tags: + - resource_v1beta2 + x-kubernetes-action: patch + x-kubernetes-group-version-kind: + group: resource.k8s.io + kind: ResourceClaim + version: v1beta2 + x-codegen-request-body-name: body + x-contentType: application/json + x-accepts: application/json + put: + description: replace the specified ResourceClaim + operationId: replaceNamespacedResourceClaim + parameters: + - description: name of the ResourceClaim + in: path name: name - namespace: namespace - selector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - parameterNotFoundAction: parameterNotFoundAction - properties: - name: - description: |- - 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. + required: true + schema: + type: string + - description: object name and auth scope, such as for teams and projects + in: path + name: namespace + required: true + schema: + type: string + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). + in: query + name: pretty + schema: + type: string + - description: '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' + in: query + name: dryRun + schema: + type: string + - description: fieldManager is a name associated with the actor or entity that + is making these changes. The value must be less than or 128 characters long, + and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + in: query + name: fieldManager + schema: + type: string + - description: 'fieldValidation instructs the server on how to handle objects + in the request (POST/PUT/PATCH) containing unknown or duplicate fields. + Valid values are: - Ignore: This will ignore any unknown fields that are + silently dropped from the object, and will ignore all but the last duplicate + field that the decoder encounters. This is the default behavior prior to + v1.23. - Warn: This will send a warning via the standard warning response + header for each unknown field that is dropped from the object, and for each + duplicate field that is encountered. The request will still succeed if there + are no other errors, and will only persist the last of any duplicate fields. + This is the default in v1.23+ - Strict: This will fail the request with + a BadRequest error if any unknown fields would be dropped from the object, + or if any duplicate fields are present. The error returned from the server + will contain all unknown and duplicate fields encountered.' + in: query + name: fieldValidation + schema: + type: string + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/v1beta2.ResourceClaim' + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1beta2.ResourceClaim' + application/yaml: + schema: + $ref: '#/components/schemas/v1beta2.ResourceClaim' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1beta2.ResourceClaim' + application/cbor: + schema: + $ref: '#/components/schemas/v1beta2.ResourceClaim' + description: OK + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/v1beta2.ResourceClaim' + application/yaml: + schema: + $ref: '#/components/schemas/v1beta2.ResourceClaim' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1beta2.ResourceClaim' + application/cbor: + schema: + $ref: '#/components/schemas/v1beta2.ResourceClaim' + description: Created + "401": + content: {} + description: Unauthorized + tags: + - resource_v1beta2 + x-kubernetes-action: put + x-kubernetes-group-version-kind: + group: resource.k8s.io + kind: ResourceClaim + version: v1beta2 + x-codegen-request-body-name: body + x-contentType: application/json + x-accepts: application/json + /apis/resource.k8s.io/v1beta2/namespaces/{namespace}/resourceclaims/{name}/status: + get: + description: read status of the specified ResourceClaim + operationId: readNamespacedResourceClaimStatus + parameters: + - description: name of the ResourceClaim + in: path + name: name + required: true + schema: + type: string + - description: object name and auth scope, such as for teams and projects + in: path + name: namespace + required: true + schema: + type: string + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). + in: query + name: pretty + schema: + type: string + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1beta2.ResourceClaim' + application/yaml: + schema: + $ref: '#/components/schemas/v1beta2.ResourceClaim' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1beta2.ResourceClaim' + application/cbor: + schema: + $ref: '#/components/schemas/v1beta2.ResourceClaim' + description: OK + "401": + content: {} + description: Unauthorized + tags: + - resource_v1beta2 + x-kubernetes-action: get + x-kubernetes-group-version-kind: + group: resource.k8s.io + kind: ResourceClaim + version: v1beta2 + x-accepts: application/json + patch: + description: partially update status of the specified ResourceClaim + operationId: patchNamespacedResourceClaimStatus + parameters: + - description: name of the ResourceClaim + in: path + name: name + required: true + schema: + type: string + - description: object name and auth scope, such as for teams and projects + in: path + name: namespace + required: true + schema: + type: string + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). + in: query + name: pretty + schema: + type: string + - description: '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' + in: query + name: dryRun + schema: + type: string + - description: fieldManager is a name associated with the actor or entity that + is making these changes. The value must be less than or 128 characters long, + and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + This field is required for apply requests (application/apply-patch) but + optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). + in: query + name: fieldManager + schema: + type: string + - description: 'fieldValidation instructs the server on how to handle objects + in the request (POST/PUT/PATCH) containing unknown or duplicate fields. + Valid values are: - Ignore: This will ignore any unknown fields that are + silently dropped from the object, and will ignore all but the last duplicate + field that the decoder encounters. This is the default behavior prior to + v1.23. - Warn: This will send a warning via the standard warning response + header for each unknown field that is dropped from the object, and for each + duplicate field that is encountered. The request will still succeed if there + are no other errors, and will only persist the last of any duplicate fields. + This is the default in v1.23+ - Strict: This will fail the request with + a BadRequest error if any unknown fields would be dropped from the object, + or if any duplicate fields are present. The error returned from the server + will contain all unknown and duplicate fields encountered.' + in: query + name: fieldValidation + schema: + type: string + - description: Force is going to "force" Apply requests. It means user will + re-acquire conflicting fields owned by other people. Force flag must be + unset for non-apply patch requests. + in: query + name: force + schema: + type: boolean + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/v1.Patch' + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1beta2.ResourceClaim' + application/yaml: + schema: + $ref: '#/components/schemas/v1beta2.ResourceClaim' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1beta2.ResourceClaim' + application/cbor: + schema: + $ref: '#/components/schemas/v1beta2.ResourceClaim' + description: OK + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/v1beta2.ResourceClaim' + application/yaml: + schema: + $ref: '#/components/schemas/v1beta2.ResourceClaim' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1beta2.ResourceClaim' + application/cbor: + schema: + $ref: '#/components/schemas/v1beta2.ResourceClaim' + description: Created + "401": + content: {} + description: Unauthorized + tags: + - resource_v1beta2 + x-kubernetes-action: patch + x-kubernetes-group-version-kind: + group: resource.k8s.io + kind: ResourceClaim + version: v1beta2 + x-codegen-request-body-name: body + x-contentType: application/json + x-accepts: application/json + put: + description: replace status of the specified ResourceClaim + operationId: replaceNamespacedResourceClaimStatus + parameters: + - description: name of the ResourceClaim + in: path + name: name + required: true + schema: + type: string + - description: object name and auth scope, such as for teams and projects + in: path + name: namespace + required: true + schema: + type: string + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). + in: query + name: pretty + schema: + type: string + - description: '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' + in: query + name: dryRun + schema: + type: string + - description: fieldManager is a name associated with the actor or entity that + is making these changes. The value must be less than or 128 characters long, + and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + in: query + name: fieldManager + schema: + type: string + - description: 'fieldValidation instructs the server on how to handle objects + in the request (POST/PUT/PATCH) containing unknown or duplicate fields. + Valid values are: - Ignore: This will ignore any unknown fields that are + silently dropped from the object, and will ignore all but the last duplicate + field that the decoder encounters. This is the default behavior prior to + v1.23. - Warn: This will send a warning via the standard warning response + header for each unknown field that is dropped from the object, and for each + duplicate field that is encountered. The request will still succeed if there + are no other errors, and will only persist the last of any duplicate fields. + This is the default in v1.23+ - Strict: This will fail the request with + a BadRequest error if any unknown fields would be dropped from the object, + or if any duplicate fields are present. The error returned from the server + will contain all unknown and duplicate fields encountered.' + in: query + name: fieldValidation + schema: + type: string + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/v1beta2.ResourceClaim' + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1beta2.ResourceClaim' + application/yaml: + schema: + $ref: '#/components/schemas/v1beta2.ResourceClaim' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1beta2.ResourceClaim' + application/cbor: + schema: + $ref: '#/components/schemas/v1beta2.ResourceClaim' + description: OK + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/v1beta2.ResourceClaim' + application/yaml: + schema: + $ref: '#/components/schemas/v1beta2.ResourceClaim' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1beta2.ResourceClaim' + application/cbor: + schema: + $ref: '#/components/schemas/v1beta2.ResourceClaim' + description: Created + "401": + content: {} + description: Unauthorized + tags: + - resource_v1beta2 + x-kubernetes-action: put + x-kubernetes-group-version-kind: + group: resource.k8s.io + kind: ResourceClaim + version: v1beta2 + x-codegen-request-body-name: body + x-contentType: application/json + x-accepts: application/json + /apis/resource.k8s.io/v1beta2/namespaces/{namespace}/resourceclaimtemplates: + delete: + description: delete collection of ResourceClaimTemplate + operationId: deleteCollectionNamespacedResourceClaimTemplate + parameters: + - description: object name and auth scope, such as for teams and projects + in: path + name: namespace + required: true + schema: + type: string + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). + in: query + name: pretty + schema: + type: string + - description: |- + 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". - 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. + 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. + in: query + name: continue + schema: type: string - namespace: - description: |- - 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. + - description: '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' + in: query + 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 + - description: 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. + in: query + name: gracePeriodSeconds + schema: + type: integer + - description: 'if set to true, it will trigger an unsafe deletion of the resource + in case the normal deletion flow fails with a corrupt object error. A resource + is considered corrupt if it can not be retrieved from the underlying storage + successfully because of a) its data can not be transformed e.g. decryption + failure, or b) it fails to decode into an object. NOTE: unsafe deletion + ignores finalizer constraints, skips precondition checks, and removes the + object from the storage. WARNING: This may potentially break the cluster + if the workload associated with the resource being unsafe-deleted relies + on normal deletion flow. Use only if you REALLY know what you are doing. + The default value is false, and the user must opt in to enable it' + in: query + name: ignoreStoreReadErrorWithClusterBreakingPotential + schema: + type: boolean + - description: A selector to restrict the list of returned objects by their + labels. Defaults to everything. + in: query + name: labelSelector + schema: + type: string + - description: |- + limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. - A per-namespace parameter may be used by specifying a namespace-scoped `paramKind` in the policy and leaving this field empty. + The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + in: query + name: limit + schema: + type: integer + - description: '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.' + in: query + name: orphanDependents + schema: + type: boolean + - description: '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.' + in: query + name: propagationPolicy + schema: + type: string + - description: |- + resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. - - If `paramKind` is cluster-scoped, this field MUST be unset. Setting this field results in a configuration error. + Defaults to unset + in: query + name: resourceVersion + schema: + type: string + - description: |- + resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. - - 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. + Defaults to unset + in: query + name: resourceVersionMatch + schema: type: string - parameterNotFoundAction: - description: |- - `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. + - description: |- + `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic "Bookmark" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `"k8s.io/initial-events-end": "true"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. - Allowed values are `Allow` or `Deny` + When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan + is interpreted as "data at least as new as the provided `resourceVersion`" + and the bookmark event is send when the state is synced + to a `resourceVersion` at least as fresh as the one provided by the ListOptions. + If `resourceVersion` is unset, this is interpreted as "consistent read" and the + bookmark event is send when the state is synced at least to the moment + when request started being processed. + - `resourceVersionMatch` set to any other value or unset + Invalid error is returned. - Required + Defaults to true if `resourceVersion=""` or `resourceVersion="0"` (for backward compatibility reasons) and to false otherwise. + in: query + name: sendInitialEvents + schema: + type: boolean + - description: Timeout for the list/watch call. This limits the duration of + the call, regardless of any activity or inactivity. + in: query + name: timeoutSeconds + schema: + type: integer + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/v1.DeleteOptions' + required: false + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.Status' + application/yaml: + schema: + $ref: '#/components/schemas/v1.Status' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.Status' + application/cbor: + schema: + $ref: '#/components/schemas/v1.Status' + description: OK + "401": + content: {} + description: Unauthorized + tags: + - resource_v1beta2 + x-kubernetes-action: deletecollection + x-kubernetes-group-version-kind: + group: resource.k8s.io + kind: ResourceClaimTemplate + version: v1beta2 + x-codegen-request-body-name: body + x-contentType: application/json + x-accepts: application/json + get: + description: list or watch objects of kind ResourceClaimTemplate + operationId: listNamespacedResourceClaimTemplate + parameters: + - description: object name and auth scope, such as for teams and projects + in: path + name: namespace + required: true + schema: type: string - selector: - $ref: '#/components/schemas/v1.LabelSelector' - type: object - x-kubernetes-map-type: atomic - v1beta1.TypeChecking: - description: TypeChecking contains results of type checking the expressions - in the ValidatingAdmissionPolicy - example: - expressionWarnings: - - fieldRef: fieldRef - warning: warning - - fieldRef: fieldRef - warning: warning - properties: - expressionWarnings: - description: The type checking warnings for each expression. - items: - $ref: '#/components/schemas/v1beta1.ExpressionWarning' - type: array - x-kubernetes-list-type: atomic - type: object - v1beta1.ValidatingAdmissionPolicy: - description: ValidatingAdmissionPolicy describes the definition of an admission - validation policy that accepts or rejects an object without changing it. - example: - metadata: - generation: 6 - finalizers: - - finalizers - - finalizers - resourceVersion: resourceVersion - annotations: - key: annotations - generateName: generateName - deletionTimestamp: 2000-01-23T04:56:07.000+00:00 - labels: - key: labels - ownerReferences: - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - selfLink: selfLink - deletionGracePeriodSeconds: 0 - uid: uid - managedFields: - - apiVersion: apiVersion - fieldsV1: '{}' - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - - apiVersion: apiVersion - fieldsV1: '{}' - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - creationTimestamp: 2000-01-23T04:56:07.000+00:00 - name: name - namespace: namespace - apiVersion: apiVersion - kind: kind - spec: - variables: - - expression: expression - name: name - - expression: expression - name: name - paramKind: - apiVersion: apiVersion - kind: kind - auditAnnotations: - - valueExpression: valueExpression - key: key - - valueExpression: valueExpression - key: key - matchConditions: - - expression: expression - name: name - - expression: expression - name: name - matchConstraints: - matchPolicy: matchPolicy - resourceRules: - - resourceNames: - - resourceNames - - resourceNames - operations: - - operations - - operations - apiVersions: - - apiVersions - - apiVersions - scope: scope - resources: - - resources - - resources - apiGroups: - - apiGroups - - apiGroups - - resourceNames: - - resourceNames - - resourceNames - operations: - - operations - - operations - apiVersions: - - apiVersions - - apiVersions - scope: scope - resources: - - resources - - resources - apiGroups: - - apiGroups - - apiGroups - excludeResourceRules: - - resourceNames: - - resourceNames - - resourceNames - operations: - - operations - - operations - apiVersions: - - apiVersions - - apiVersions - scope: scope - resources: - - resources - - resources - apiGroups: - - apiGroups - - apiGroups - - resourceNames: - - resourceNames - - resourceNames - operations: - - operations - - operations - apiVersions: - - apiVersions - - apiVersions - scope: scope - resources: - - resources - - resources - apiGroups: - - apiGroups - - apiGroups - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - objectSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - validations: - - reason: reason - expression: expression - messageExpression: messageExpression - message: message - - reason: reason - expression: expression - messageExpression: messageExpression - message: message - failurePolicy: failurePolicy - status: - typeChecking: - expressionWarnings: - - fieldRef: fieldRef - warning: warning - - fieldRef: fieldRef - warning: warning - conditions: - - reason: reason - lastTransitionTime: 2000-01-23T04:56:07.000+00:00 - message: message - type: type - observedGeneration: 5 - status: status - - reason: reason - lastTransitionTime: 2000-01-23T04:56:07.000+00:00 - message: message - type: type - observedGeneration: 5 - status: status - observedGeneration: 0 - properties: - apiVersion: - description: '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' - type: string - kind: - description: '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' + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). + in: query + name: pretty + schema: type: string - metadata: - $ref: '#/components/schemas/v1.ObjectMeta' - spec: - $ref: '#/components/schemas/v1beta1.ValidatingAdmissionPolicySpec' - status: - $ref: '#/components/schemas/v1beta1.ValidatingAdmissionPolicyStatus' - type: object - x-kubernetes-group-version-kind: - - group: admissionregistration.k8s.io - kind: ValidatingAdmissionPolicy - version: v1beta1 - x-implements: - - io.kubernetes.client.common.KubernetesObject - v1beta1.ValidatingAdmissionPolicyBinding: - 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. + - description: 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. + in: query + name: allowWatchBookmarks + schema: + type: boolean + - description: |- + 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". - 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. - example: - metadata: - generation: 6 - finalizers: - - finalizers - - finalizers - resourceVersion: resourceVersion - annotations: - key: annotations - generateName: generateName - deletionTimestamp: 2000-01-23T04:56:07.000+00:00 - labels: - key: labels - ownerReferences: - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - selfLink: selfLink - deletionGracePeriodSeconds: 0 - uid: uid - managedFields: - - apiVersion: apiVersion - fieldsV1: '{}' - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - - apiVersion: apiVersion - fieldsV1: '{}' - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - creationTimestamp: 2000-01-23T04:56:07.000+00:00 - name: name - namespace: namespace - apiVersion: apiVersion - kind: kind - spec: - paramRef: - name: name - namespace: namespace - selector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - parameterNotFoundAction: parameterNotFoundAction - policyName: policyName - matchResources: - matchPolicy: matchPolicy - resourceRules: - - resourceNames: - - resourceNames - - resourceNames - operations: - - operations - - operations - apiVersions: - - apiVersions - - apiVersions - scope: scope - resources: - - resources - - resources - apiGroups: - - apiGroups - - apiGroups - - resourceNames: - - resourceNames - - resourceNames - operations: - - operations - - operations - apiVersions: - - apiVersions - - apiVersions - scope: scope - resources: - - resources - - resources - apiGroups: - - apiGroups - - apiGroups - excludeResourceRules: - - resourceNames: - - resourceNames - - resourceNames - operations: - - operations - - operations - apiVersions: - - apiVersions - - apiVersions - scope: scope - resources: - - resources - - resources - apiGroups: - - apiGroups - - apiGroups - - resourceNames: - - resourceNames - - resourceNames - operations: - - operations - - operations - apiVersions: - - apiVersions - - apiVersions - scope: scope - resources: - - resources - - resources - apiGroups: - - apiGroups - - apiGroups - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - objectSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - validationActions: - - validationActions - - validationActions - properties: - apiVersion: - description: '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' - type: string - kind: - description: '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' - type: string - metadata: - $ref: '#/components/schemas/v1.ObjectMeta' - spec: - $ref: '#/components/schemas/v1beta1.ValidatingAdmissionPolicyBindingSpec' - type: object - x-kubernetes-group-version-kind: - - group: admissionregistration.k8s.io - kind: ValidatingAdmissionPolicyBinding - version: v1beta1 - x-implements: - - io.kubernetes.client.common.KubernetesObject - v1beta1.ValidatingAdmissionPolicyBindingList: - description: ValidatingAdmissionPolicyBindingList is a list of ValidatingAdmissionPolicyBinding. - example: - metadata: - remainingItemCount: 1 - continue: continue - resourceVersion: resourceVersion - selfLink: selfLink - apiVersion: apiVersion - kind: kind - items: - - metadata: - generation: 6 - finalizers: - - finalizers - - finalizers - resourceVersion: resourceVersion - annotations: - key: annotations - generateName: generateName - deletionTimestamp: 2000-01-23T04:56:07.000+00:00 - labels: - key: labels - ownerReferences: - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - selfLink: selfLink - deletionGracePeriodSeconds: 0 - uid: uid - managedFields: - - apiVersion: apiVersion - fieldsV1: '{}' - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - - apiVersion: apiVersion - fieldsV1: '{}' - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - creationTimestamp: 2000-01-23T04:56:07.000+00:00 - name: name - namespace: namespace - apiVersion: apiVersion - kind: kind - spec: - paramRef: - name: name - namespace: namespace - selector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - parameterNotFoundAction: parameterNotFoundAction - policyName: policyName - matchResources: - matchPolicy: matchPolicy - resourceRules: - - resourceNames: - - resourceNames - - resourceNames - operations: - - operations - - operations - apiVersions: - - apiVersions - - apiVersions - scope: scope - resources: - - resources - - resources - apiGroups: - - apiGroups - - apiGroups - - resourceNames: - - resourceNames - - resourceNames - operations: - - operations - - operations - apiVersions: - - apiVersions - - apiVersions - scope: scope - resources: - - resources - - resources - apiGroups: - - apiGroups - - apiGroups - excludeResourceRules: - - resourceNames: - - resourceNames - - resourceNames - operations: - - operations - - operations - apiVersions: - - apiVersions - - apiVersions - scope: scope - resources: - - resources - - resources - apiGroups: - - apiGroups - - apiGroups - - resourceNames: - - resourceNames - - resourceNames - operations: - - operations - - operations - apiVersions: - - apiVersions - - apiVersions - scope: scope - resources: - - resources - - resources - apiGroups: - - apiGroups - - apiGroups - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - objectSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - validationActions: - - validationActions - - validationActions - - metadata: - generation: 6 - finalizers: - - finalizers - - finalizers - resourceVersion: resourceVersion - annotations: - key: annotations - generateName: generateName - deletionTimestamp: 2000-01-23T04:56:07.000+00:00 - labels: - key: labels - ownerReferences: - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - selfLink: selfLink - deletionGracePeriodSeconds: 0 - uid: uid - managedFields: - - apiVersion: apiVersion - fieldsV1: '{}' - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - - apiVersion: apiVersion - fieldsV1: '{}' - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - creationTimestamp: 2000-01-23T04:56:07.000+00:00 - name: name - namespace: namespace - apiVersion: apiVersion - kind: kind - spec: - paramRef: - name: name - namespace: namespace - selector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - parameterNotFoundAction: parameterNotFoundAction - policyName: policyName - matchResources: - matchPolicy: matchPolicy - resourceRules: - - resourceNames: - - resourceNames - - resourceNames - operations: - - operations - - operations - apiVersions: - - apiVersions - - apiVersions - scope: scope - resources: - - resources - - resources - apiGroups: - - apiGroups - - apiGroups - - resourceNames: - - resourceNames - - resourceNames - operations: - - operations - - operations - apiVersions: - - apiVersions - - apiVersions - scope: scope - resources: - - resources - - resources - apiGroups: - - apiGroups - - apiGroups - excludeResourceRules: - - resourceNames: - - resourceNames - - resourceNames - operations: - - operations - - operations - apiVersions: - - apiVersions - - apiVersions - scope: scope - resources: - - resources - - resources - apiGroups: - - apiGroups - - apiGroups - - resourceNames: - - resourceNames - - resourceNames - operations: - - operations - - operations - apiVersions: - - apiVersions - - apiVersions - scope: scope - resources: - - resources - - resources - apiGroups: - - apiGroups - - apiGroups - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - objectSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - validationActions: - - validationActions - - validationActions - properties: - apiVersion: - description: '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' + 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. + in: query + name: continue + schema: type: string - items: - description: List of PolicyBinding. - items: - $ref: '#/components/schemas/v1beta1.ValidatingAdmissionPolicyBinding' - type: array - kind: - description: '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' + - description: A selector to restrict the list of returned objects by their + fields. Defaults to everything. + in: query + name: fieldSelector + schema: type: string - metadata: - $ref: '#/components/schemas/v1.ListMeta' - type: object - x-kubernetes-group-version-kind: - - group: admissionregistration.k8s.io - kind: ValidatingAdmissionPolicyBindingList - version: v1beta1 - x-implements: - - io.kubernetes.client.common.KubernetesListObject - v1beta1.ValidatingAdmissionPolicyBindingSpec: - description: ValidatingAdmissionPolicyBindingSpec is the specification of the - ValidatingAdmissionPolicyBinding. - example: - paramRef: - name: name - namespace: namespace - selector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - parameterNotFoundAction: parameterNotFoundAction - policyName: policyName - matchResources: - matchPolicy: matchPolicy - resourceRules: - - resourceNames: - - resourceNames - - resourceNames - operations: - - operations - - operations - apiVersions: - - apiVersions - - apiVersions - scope: scope - resources: - - resources - - resources - apiGroups: - - apiGroups - - apiGroups - - resourceNames: - - resourceNames - - resourceNames - operations: - - operations - - operations - apiVersions: - - apiVersions - - apiVersions - scope: scope - resources: - - resources - - resources - apiGroups: - - apiGroups - - apiGroups - excludeResourceRules: - - resourceNames: - - resourceNames - - resourceNames - operations: - - operations - - operations - apiVersions: - - apiVersions - - apiVersions - scope: scope - resources: - - resources - - resources - apiGroups: - - apiGroups - - apiGroups - - resourceNames: - - resourceNames - - resourceNames - operations: - - operations - - operations - apiVersions: - - apiVersions - - apiVersions - scope: scope - resources: - - resources - - resources - apiGroups: - - apiGroups - - apiGroups - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - objectSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - validationActions: - - validationActions - - validationActions - properties: - matchResources: - $ref: '#/components/schemas/v1beta1.MatchResources' - paramRef: - $ref: '#/components/schemas/v1beta1.ParamRef' - policyName: - description: 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. + - description: A selector to restrict the list of returned objects by their + labels. Defaults to everything. + in: query + name: labelSelector + schema: type: string - validationActions: - description: |- - 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. + - description: |- + limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. - "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. + The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + in: query + name: limit + schema: + type: integer + - description: |- + resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. - "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"]}]"` + Defaults to unset + in: query + name: resourceVersion + schema: + type: string + - description: |- + resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. - Clients should expect to handle additional values by ignoring any values not recognized. + Defaults to unset + in: query + name: resourceVersionMatch + schema: + type: string + - description: |- + `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic "Bookmark" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `"k8s.io/initial-events-end": "true"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. - "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. + When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan + is interpreted as "data at least as new as the provided `resourceVersion`" + and the bookmark event is send when the state is synced + to a `resourceVersion` at least as fresh as the one provided by the ListOptions. + If `resourceVersion` is unset, this is interpreted as "consistent read" and the + bookmark event is send when the state is synced at least to the moment + when request started being processed. + - `resourceVersionMatch` set to any other value or unset + Invalid error is returned. - Required. - items: - type: string - type: array - x-kubernetes-list-type: set - type: object - v1beta1.ValidatingAdmissionPolicyList: - description: ValidatingAdmissionPolicyList is a list of ValidatingAdmissionPolicy. - example: - metadata: - remainingItemCount: 1 - continue: continue - resourceVersion: resourceVersion - selfLink: selfLink - apiVersion: apiVersion - kind: kind - items: - - metadata: - generation: 6 - finalizers: - - finalizers - - finalizers - resourceVersion: resourceVersion - annotations: - key: annotations - generateName: generateName - deletionTimestamp: 2000-01-23T04:56:07.000+00:00 - labels: - key: labels - ownerReferences: - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - selfLink: selfLink - deletionGracePeriodSeconds: 0 - uid: uid - managedFields: - - apiVersion: apiVersion - fieldsV1: '{}' - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - - apiVersion: apiVersion - fieldsV1: '{}' - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - creationTimestamp: 2000-01-23T04:56:07.000+00:00 - name: name - namespace: namespace - apiVersion: apiVersion - kind: kind - spec: - variables: - - expression: expression - name: name - - expression: expression - name: name - paramKind: - apiVersion: apiVersion - kind: kind - auditAnnotations: - - valueExpression: valueExpression - key: key - - valueExpression: valueExpression - key: key - matchConditions: - - expression: expression - name: name - - expression: expression - name: name - matchConstraints: - matchPolicy: matchPolicy - resourceRules: - - resourceNames: - - resourceNames - - resourceNames - operations: - - operations - - operations - apiVersions: - - apiVersions - - apiVersions - scope: scope - resources: - - resources - - resources - apiGroups: - - apiGroups - - apiGroups - - resourceNames: - - resourceNames - - resourceNames - operations: - - operations - - operations - apiVersions: - - apiVersions - - apiVersions - scope: scope - resources: - - resources - - resources - apiGroups: - - apiGroups - - apiGroups - excludeResourceRules: - - resourceNames: - - resourceNames - - resourceNames - operations: - - operations - - operations - apiVersions: - - apiVersions - - apiVersions - scope: scope - resources: - - resources - - resources - apiGroups: - - apiGroups - - apiGroups - - resourceNames: - - resourceNames - - resourceNames - operations: - - operations - - operations - apiVersions: - - apiVersions - - apiVersions - scope: scope - resources: - - resources - - resources - apiGroups: - - apiGroups - - apiGroups - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - objectSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - validations: - - reason: reason - expression: expression - messageExpression: messageExpression - message: message - - reason: reason - expression: expression - messageExpression: messageExpression - message: message - failurePolicy: failurePolicy - status: - typeChecking: - expressionWarnings: - - fieldRef: fieldRef - warning: warning - - fieldRef: fieldRef - warning: warning - conditions: - - reason: reason - lastTransitionTime: 2000-01-23T04:56:07.000+00:00 - message: message - type: type - observedGeneration: 5 - status: status - - reason: reason - lastTransitionTime: 2000-01-23T04:56:07.000+00:00 - message: message - type: type - observedGeneration: 5 - status: status - observedGeneration: 0 - - metadata: - generation: 6 - finalizers: - - finalizers - - finalizers - resourceVersion: resourceVersion - annotations: - key: annotations - generateName: generateName - deletionTimestamp: 2000-01-23T04:56:07.000+00:00 - labels: - key: labels - ownerReferences: - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - selfLink: selfLink - deletionGracePeriodSeconds: 0 - uid: uid - managedFields: - - apiVersion: apiVersion - fieldsV1: '{}' - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - - apiVersion: apiVersion - fieldsV1: '{}' - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - creationTimestamp: 2000-01-23T04:56:07.000+00:00 - name: name - namespace: namespace - apiVersion: apiVersion - kind: kind - spec: - variables: - - expression: expression - name: name - - expression: expression - name: name - paramKind: - apiVersion: apiVersion - kind: kind - auditAnnotations: - - valueExpression: valueExpression - key: key - - valueExpression: valueExpression - key: key - matchConditions: - - expression: expression - name: name - - expression: expression - name: name - matchConstraints: - matchPolicy: matchPolicy - resourceRules: - - resourceNames: - - resourceNames - - resourceNames - operations: - - operations - - operations - apiVersions: - - apiVersions - - apiVersions - scope: scope - resources: - - resources - - resources - apiGroups: - - apiGroups - - apiGroups - - resourceNames: - - resourceNames - - resourceNames - operations: - - operations - - operations - apiVersions: - - apiVersions - - apiVersions - scope: scope - resources: - - resources - - resources - apiGroups: - - apiGroups - - apiGroups - excludeResourceRules: - - resourceNames: - - resourceNames - - resourceNames - operations: - - operations - - operations - apiVersions: - - apiVersions - - apiVersions - scope: scope - resources: - - resources - - resources - apiGroups: - - apiGroups - - apiGroups - - resourceNames: - - resourceNames - - resourceNames - operations: - - operations - - operations - apiVersions: - - apiVersions - - apiVersions - scope: scope - resources: - - resources - - resources - apiGroups: - - apiGroups - - apiGroups - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - objectSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - validations: - - reason: reason - expression: expression - messageExpression: messageExpression - message: message - - reason: reason - expression: expression - messageExpression: messageExpression - message: message - failurePolicy: failurePolicy - status: - typeChecking: - expressionWarnings: - - fieldRef: fieldRef - warning: warning - - fieldRef: fieldRef - warning: warning - conditions: - - reason: reason - lastTransitionTime: 2000-01-23T04:56:07.000+00:00 - message: message - type: type - observedGeneration: 5 - status: status - - reason: reason - lastTransitionTime: 2000-01-23T04:56:07.000+00:00 - message: message - type: type - observedGeneration: 5 - status: status - observedGeneration: 0 - properties: - apiVersion: - description: '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' + Defaults to true if `resourceVersion=""` or `resourceVersion="0"` (for backward compatibility reasons) and to false otherwise. + in: query + name: sendInitialEvents + schema: + type: boolean + - description: Timeout for the list/watch call. This limits the duration of + the call, regardless of any activity or inactivity. + in: query + name: timeoutSeconds + schema: + type: integer + - description: Watch for changes to the described resources and return them + as a stream of add, update, and remove notifications. Specify resourceVersion. + in: query + name: watch + schema: + type: boolean + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1beta2.ResourceClaimTemplateList' + application/yaml: + schema: + $ref: '#/components/schemas/v1beta2.ResourceClaimTemplateList' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1beta2.ResourceClaimTemplateList' + application/cbor: + schema: + $ref: '#/components/schemas/v1beta2.ResourceClaimTemplateList' + application/json;stream=watch: + schema: + $ref: '#/components/schemas/v1beta2.ResourceClaimTemplateList' + application/vnd.kubernetes.protobuf;stream=watch: + schema: + $ref: '#/components/schemas/v1beta2.ResourceClaimTemplateList' + application/cbor-seq: + schema: + $ref: '#/components/schemas/v1beta2.ResourceClaimTemplateList' + description: OK + "401": + content: {} + description: Unauthorized + tags: + - resource_v1beta2 + x-kubernetes-action: list + x-kubernetes-group-version-kind: + group: resource.k8s.io + kind: ResourceClaimTemplate + version: v1beta2 + x-accepts: application/json + post: + description: create a ResourceClaimTemplate + operationId: createNamespacedResourceClaimTemplate + parameters: + - description: object name and auth scope, such as for teams and projects + in: path + name: namespace + required: true + schema: type: string - items: - description: List of ValidatingAdmissionPolicy. - items: - $ref: '#/components/schemas/v1beta1.ValidatingAdmissionPolicy' - type: array - kind: - description: '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' + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). + in: query + name: pretty + schema: type: string - metadata: - $ref: '#/components/schemas/v1.ListMeta' - type: object + - description: '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' + in: query + name: dryRun + schema: + type: string + - description: fieldManager is a name associated with the actor or entity that + is making these changes. The value must be less than or 128 characters long, + and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + in: query + name: fieldManager + schema: + type: string + - description: 'fieldValidation instructs the server on how to handle objects + in the request (POST/PUT/PATCH) containing unknown or duplicate fields. + Valid values are: - Ignore: This will ignore any unknown fields that are + silently dropped from the object, and will ignore all but the last duplicate + field that the decoder encounters. This is the default behavior prior to + v1.23. - Warn: This will send a warning via the standard warning response + header for each unknown field that is dropped from the object, and for each + duplicate field that is encountered. The request will still succeed if there + are no other errors, and will only persist the last of any duplicate fields. + This is the default in v1.23+ - Strict: This will fail the request with + a BadRequest error if any unknown fields would be dropped from the object, + or if any duplicate fields are present. The error returned from the server + will contain all unknown and duplicate fields encountered.' + in: query + name: fieldValidation + schema: + type: string + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/v1beta2.ResourceClaimTemplate' + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1beta2.ResourceClaimTemplate' + application/yaml: + schema: + $ref: '#/components/schemas/v1beta2.ResourceClaimTemplate' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1beta2.ResourceClaimTemplate' + application/cbor: + schema: + $ref: '#/components/schemas/v1beta2.ResourceClaimTemplate' + description: OK + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/v1beta2.ResourceClaimTemplate' + application/yaml: + schema: + $ref: '#/components/schemas/v1beta2.ResourceClaimTemplate' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1beta2.ResourceClaimTemplate' + application/cbor: + schema: + $ref: '#/components/schemas/v1beta2.ResourceClaimTemplate' + description: Created + "202": + content: + application/json: + schema: + $ref: '#/components/schemas/v1beta2.ResourceClaimTemplate' + application/yaml: + schema: + $ref: '#/components/schemas/v1beta2.ResourceClaimTemplate' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1beta2.ResourceClaimTemplate' + application/cbor: + schema: + $ref: '#/components/schemas/v1beta2.ResourceClaimTemplate' + description: Accepted + "401": + content: {} + description: Unauthorized + tags: + - resource_v1beta2 + x-kubernetes-action: post x-kubernetes-group-version-kind: - - group: admissionregistration.k8s.io - kind: ValidatingAdmissionPolicyList - version: v1beta1 - x-implements: - - io.kubernetes.client.common.KubernetesListObject - v1beta1.ValidatingAdmissionPolicySpec: - description: ValidatingAdmissionPolicySpec is the specification of the desired - behavior of the AdmissionPolicy. - example: - variables: - - expression: expression - name: name - - expression: expression - name: name - paramKind: - apiVersion: apiVersion - kind: kind - auditAnnotations: - - valueExpression: valueExpression - key: key - - valueExpression: valueExpression - key: key - matchConditions: - - expression: expression - name: name - - expression: expression - name: name - matchConstraints: - matchPolicy: matchPolicy - resourceRules: - - resourceNames: - - resourceNames - - resourceNames - operations: - - operations - - operations - apiVersions: - - apiVersions - - apiVersions - scope: scope - resources: - - resources - - resources - apiGroups: - - apiGroups - - apiGroups - - resourceNames: - - resourceNames - - resourceNames - operations: - - operations - - operations - apiVersions: - - apiVersions - - apiVersions - scope: scope - resources: - - resources - - resources - apiGroups: - - apiGroups - - apiGroups - excludeResourceRules: - - resourceNames: - - resourceNames - - resourceNames - operations: - - operations - - operations - apiVersions: - - apiVersions - - apiVersions - scope: scope - resources: - - resources - - resources - apiGroups: - - apiGroups - - apiGroups - - resourceNames: - - resourceNames - - resourceNames - operations: - - operations - - operations - apiVersions: - - apiVersions - - apiVersions - scope: scope - resources: - - resources - - resources - apiGroups: - - apiGroups - - apiGroups - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - objectSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - validations: - - reason: reason - expression: expression - messageExpression: messageExpression - message: message - - reason: reason - expression: expression - messageExpression: messageExpression - message: message - failurePolicy: failurePolicy - properties: - auditAnnotations: - description: 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. - items: - $ref: '#/components/schemas/v1beta1.AuditAnnotation' - type: array - x-kubernetes-list-type: atomic - failurePolicy: - description: |- - 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. + group: resource.k8s.io + kind: ResourceClaimTemplate + version: v1beta2 + x-codegen-request-body-name: body + x-contentType: application/json + x-accepts: application/json + /apis/resource.k8s.io/v1beta2/namespaces/{namespace}/resourceclaimtemplates/{name}: + delete: + description: delete a ResourceClaimTemplate + operationId: deleteNamespacedResourceClaimTemplate + parameters: + - description: name of the ResourceClaimTemplate + in: path + name: name + required: true + schema: type: string - matchConditions: - description: |- - 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 - items: - $ref: '#/components/schemas/v1beta1.MatchCondition' - type: array - x-kubernetes-patch-strategy: merge - x-kubernetes-list-type: map - x-kubernetes-list-map-keys: - - name - x-kubernetes-patch-merge-key: name - matchConstraints: - $ref: '#/components/schemas/v1beta1.MatchResources' - paramKind: - $ref: '#/components/schemas/v1beta1.ParamKind' - validations: - description: 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. - items: - $ref: '#/components/schemas/v1beta1.Validation' - type: array - x-kubernetes-list-type: atomic - variables: - description: |- - 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. - items: - $ref: '#/components/schemas/v1beta1.Variable' - type: array - x-kubernetes-patch-strategy: merge - x-kubernetes-list-type: map - x-kubernetes-list-map-keys: - - name - x-kubernetes-patch-merge-key: name - type: object - v1beta1.ValidatingAdmissionPolicyStatus: - description: ValidatingAdmissionPolicyStatus represents the status of an admission - validation policy. - example: - typeChecking: - expressionWarnings: - - fieldRef: fieldRef - warning: warning - - fieldRef: fieldRef - warning: warning - conditions: - - reason: reason - lastTransitionTime: 2000-01-23T04:56:07.000+00:00 - message: message - type: type - observedGeneration: 5 - status: status - - reason: reason - lastTransitionTime: 2000-01-23T04:56:07.000+00:00 - message: message - type: type - observedGeneration: 5 - status: status - observedGeneration: 0 - properties: - conditions: - description: The conditions represent the latest available observations - of a policy's current state. - items: - $ref: '#/components/schemas/v1.Condition' - type: array - x-kubernetes-list-type: map - x-kubernetes-list-map-keys: - - type - observedGeneration: - description: The generation observed by the controller. - format: int64 - type: integer - typeChecking: - $ref: '#/components/schemas/v1beta1.TypeChecking' - type: object - v1beta1.Validation: - description: Validation specifies the CEL expression which is used to apply - the validation. - example: - reason: reason - expression: expression - messageExpression: messageExpression - message: message - properties: - expression: - description: "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:\n\n- '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.\n For example,\ - \ a variable named 'foo' can be accessed as 'variables.foo'.\n- 'authorizer'\ - \ - A CEL Authorizer. May be used to perform authorization checks for\ - \ the principal (user or service account) of the request.\n See https://pkg.go.dev/k8s.io/apiserver/pkg/cel/library#Authz\n\ - - 'authorizer.requestResource' - A CEL ResourceCheck constructed from\ - \ the 'authorizer' and configured with the\n request resource.\n\nThe\ - \ `apiVersion`, `kind`, `metadata.name` and `metadata.generateName` are\ - \ always accessible from the root of the object. No other metadata properties\ - \ are accessible.\n\nOnly 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:\n\t \"true\", \"false\"\ - , \"null\", \"in\", \"as\", \"break\", \"const\", \"continue\", \"else\"\ - , \"for\", \"function\", \"if\",\n\t \"import\", \"let\", \"loop\", \"\ - package\", \"namespace\", \"return\".\nExamples:\n - Expression accessing\ - \ a property named \"namespace\": {\"Expression\": \"object.__namespace__\ - \ > 0\"}\n - Expression accessing a property named \"x-prop\": {\"Expression\"\ - : \"object.x__dash__prop > 0\"}\n - Expression accessing a property named\ - \ \"redact__d\": {\"Expression\": \"object.redact__underscores__d > 0\"\ - }\n\nEquality 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:\n - 'set': `X + Y` performs a union\ - \ where the array positions of all elements in `X` are preserved and\n\ - \ non-intersecting elements in `Y` are appended, retaining their partial\ - \ order.\n - 'map': `X + Y` performs a merge where the array positions\ - \ of all keys in `X` are preserved but the values\n are overwritten\ - \ by values in `Y` when the key sets of `X` and `Y` intersect. Elements\ - \ in `Y` with\n non-intersecting keys are appended, retaining their\ - \ partial order.\nRequired." + - description: object name and auth scope, such as for teams and projects + in: path + name: namespace + required: true + schema: type: string - message: - description: '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}".' + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). + in: query + name: pretty + schema: type: string - messageExpression: - description: '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)+")"' + - description: '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' + in: query + name: dryRun + schema: type: string - reason: - description: '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.' + - description: 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. + in: query + name: gracePeriodSeconds + schema: + type: integer + - description: 'if set to true, it will trigger an unsafe deletion of the resource + in case the normal deletion flow fails with a corrupt object error. A resource + is considered corrupt if it can not be retrieved from the underlying storage + successfully because of a) its data can not be transformed e.g. decryption + failure, or b) it fails to decode into an object. NOTE: unsafe deletion + ignores finalizer constraints, skips precondition checks, and removes the + object from the storage. WARNING: This may potentially break the cluster + if the workload associated with the resource being unsafe-deleted relies + on normal deletion flow. Use only if you REALLY know what you are doing. + The default value is false, and the user must opt in to enable it' + in: query + name: ignoreStoreReadErrorWithClusterBreakingPotential + schema: + type: boolean + - description: '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.' + in: query + name: orphanDependents + schema: + type: boolean + - description: '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.' + in: query + name: propagationPolicy + schema: type: string - required: - - expression - type: object - v1beta1.Variable: - description: Variable is the definition of a variable that is used for composition. - A variable is defined as a named expression. - example: - expression: expression + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/v1.DeleteOptions' + required: false + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1beta2.ResourceClaimTemplate' + application/yaml: + schema: + $ref: '#/components/schemas/v1beta2.ResourceClaimTemplate' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1beta2.ResourceClaimTemplate' + application/cbor: + schema: + $ref: '#/components/schemas/v1beta2.ResourceClaimTemplate' + description: OK + "202": + content: + application/json: + schema: + $ref: '#/components/schemas/v1beta2.ResourceClaimTemplate' + application/yaml: + schema: + $ref: '#/components/schemas/v1beta2.ResourceClaimTemplate' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1beta2.ResourceClaimTemplate' + application/cbor: + schema: + $ref: '#/components/schemas/v1beta2.ResourceClaimTemplate' + description: Accepted + "401": + content: {} + description: Unauthorized + tags: + - resource_v1beta2 + x-kubernetes-action: delete + x-kubernetes-group-version-kind: + group: resource.k8s.io + kind: ResourceClaimTemplate + version: v1beta2 + x-codegen-request-body-name: body + x-contentType: application/json + x-accepts: application/json + get: + description: read the specified ResourceClaimTemplate + operationId: readNamespacedResourceClaimTemplate + parameters: + - description: name of the ResourceClaimTemplate + in: path name: name - properties: - expression: - description: 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. + required: true + schema: type: string - name: - description: 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` + - description: object name and auth scope, such as for teams and projects + in: path + name: namespace + required: true + schema: type: string - required: - - expression - - name - type: object - x-kubernetes-map-type: atomic - v1alpha1.ServerStorageVersion: - description: An API server instance reports the version it can decode and the - version it encodes objects to when persisting objects in the backend. - example: - apiServerID: apiServerID - decodableVersions: - - decodableVersions - - decodableVersions - encodingVersion: encodingVersion - servedVersions: - - servedVersions - - servedVersions - properties: - apiServerID: - description: The ID of the reporting API server. + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). + in: query + name: pretty + schema: type: string - decodableVersions: - description: The API server can decode objects encoded in these versions. - The encodingVersion must be included in the decodableVersions. - items: - type: string - type: array - x-kubernetes-list-type: set - encodingVersion: - description: The API server encodes the object to this version when persisting - it in the backend (e.g., etcd). + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1beta2.ResourceClaimTemplate' + application/yaml: + schema: + $ref: '#/components/schemas/v1beta2.ResourceClaimTemplate' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1beta2.ResourceClaimTemplate' + application/cbor: + schema: + $ref: '#/components/schemas/v1beta2.ResourceClaimTemplate' + description: OK + "401": + content: {} + description: Unauthorized + tags: + - resource_v1beta2 + x-kubernetes-action: get + x-kubernetes-group-version-kind: + group: resource.k8s.io + kind: ResourceClaimTemplate + version: v1beta2 + x-accepts: application/json + patch: + description: partially update the specified ResourceClaimTemplate + operationId: patchNamespacedResourceClaimTemplate + parameters: + - description: name of the ResourceClaimTemplate + in: path + name: name + required: true + schema: type: string - servedVersions: - description: The API server can serve these versions. DecodableVersions - must include all ServedVersions. - items: - type: string - type: array - x-kubernetes-list-type: set - type: object - v1alpha1.StorageVersion: - description: Storage version of a specific resource. - example: - metadata: - generation: 6 - finalizers: - - finalizers - - finalizers - resourceVersion: resourceVersion - annotations: - key: annotations - generateName: generateName - deletionTimestamp: 2000-01-23T04:56:07.000+00:00 - labels: - key: labels - ownerReferences: - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - selfLink: selfLink - deletionGracePeriodSeconds: 0 - uid: uid - managedFields: - - apiVersion: apiVersion - fieldsV1: '{}' - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - - apiVersion: apiVersion - fieldsV1: '{}' - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - creationTimestamp: 2000-01-23T04:56:07.000+00:00 - name: name - namespace: namespace - apiVersion: apiVersion - kind: kind - spec: '{}' - status: - commonEncodingVersion: commonEncodingVersion - conditions: - - reason: reason - lastTransitionTime: 2000-01-23T04:56:07.000+00:00 - message: message - type: type - observedGeneration: 0 - status: status - - reason: reason - lastTransitionTime: 2000-01-23T04:56:07.000+00:00 - message: message - type: type - observedGeneration: 0 - status: status - storageVersions: - - apiServerID: apiServerID - decodableVersions: - - decodableVersions - - decodableVersions - encodingVersion: encodingVersion - servedVersions: - - servedVersions - - servedVersions - - apiServerID: apiServerID - decodableVersions: - - decodableVersions - - decodableVersions - encodingVersion: encodingVersion - servedVersions: - - servedVersions - - servedVersions - properties: - apiVersion: - description: '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' + - description: object name and auth scope, such as for teams and projects + in: path + name: namespace + required: true + schema: type: string - kind: - description: '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' + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). + in: query + name: pretty + schema: type: string - metadata: - $ref: '#/components/schemas/v1.ObjectMeta' - spec: - description: Spec is an empty spec. It is here to comply with Kubernetes - API style. - properties: {} - type: object - status: - $ref: '#/components/schemas/v1alpha1.StorageVersionStatus' - required: - - spec - - status - type: object - x-kubernetes-group-version-kind: - - group: internal.apiserver.k8s.io - kind: StorageVersion - version: v1alpha1 - x-implements: - - io.kubernetes.client.common.KubernetesObject - v1alpha1.StorageVersionCondition: - description: Describes the state of the storageVersion at a certain point. - example: - reason: reason - lastTransitionTime: 2000-01-23T04:56:07.000+00:00 - message: message - type: type - observedGeneration: 0 - status: status - properties: - lastTransitionTime: - description: Last time the condition transitioned from one status to another. - format: date-time + - description: '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' + in: query + name: dryRun + schema: type: string - message: - description: A human readable message indicating details about the transition. + - description: fieldManager is a name associated with the actor or entity that + is making these changes. The value must be less than or 128 characters long, + and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + This field is required for apply requests (application/apply-patch) but + optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). + in: query + name: fieldManager + schema: type: string - observedGeneration: - description: If set, this represents the .metadata.generation that the condition - was set based upon. - format: int64 - type: integer - reason: - description: The reason for the condition's last transition. + - description: 'fieldValidation instructs the server on how to handle objects + in the request (POST/PUT/PATCH) containing unknown or duplicate fields. + Valid values are: - Ignore: This will ignore any unknown fields that are + silently dropped from the object, and will ignore all but the last duplicate + field that the decoder encounters. This is the default behavior prior to + v1.23. - Warn: This will send a warning via the standard warning response + header for each unknown field that is dropped from the object, and for each + duplicate field that is encountered. The request will still succeed if there + are no other errors, and will only persist the last of any duplicate fields. + This is the default in v1.23+ - Strict: This will fail the request with + a BadRequest error if any unknown fields would be dropped from the object, + or if any duplicate fields are present. The error returned from the server + will contain all unknown and duplicate fields encountered.' + in: query + name: fieldValidation + schema: type: string - status: - description: Status of the condition, one of True, False, Unknown. + - description: Force is going to "force" Apply requests. It means user will + re-acquire conflicting fields owned by other people. Force flag must be + unset for non-apply patch requests. + in: query + name: force + schema: + type: boolean + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/v1.Patch' + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1beta2.ResourceClaimTemplate' + application/yaml: + schema: + $ref: '#/components/schemas/v1beta2.ResourceClaimTemplate' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1beta2.ResourceClaimTemplate' + application/cbor: + schema: + $ref: '#/components/schemas/v1beta2.ResourceClaimTemplate' + description: OK + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/v1beta2.ResourceClaimTemplate' + application/yaml: + schema: + $ref: '#/components/schemas/v1beta2.ResourceClaimTemplate' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1beta2.ResourceClaimTemplate' + application/cbor: + schema: + $ref: '#/components/schemas/v1beta2.ResourceClaimTemplate' + description: Created + "401": + content: {} + description: Unauthorized + tags: + - resource_v1beta2 + x-kubernetes-action: patch + x-kubernetes-group-version-kind: + group: resource.k8s.io + kind: ResourceClaimTemplate + version: v1beta2 + x-codegen-request-body-name: body + x-contentType: application/json + x-accepts: application/json + put: + description: replace the specified ResourceClaimTemplate + operationId: replaceNamespacedResourceClaimTemplate + parameters: + - description: name of the ResourceClaimTemplate + in: path + name: name + required: true + schema: type: string - type: - description: Type of the condition. + - description: object name and auth scope, such as for teams and projects + in: path + name: namespace + required: true + schema: type: string - required: - - reason - - status - - type - type: object - v1alpha1.StorageVersionList: - description: A list of StorageVersions. - example: - metadata: - remainingItemCount: 1 - continue: continue - resourceVersion: resourceVersion - selfLink: selfLink - apiVersion: apiVersion - kind: kind - items: - - metadata: - generation: 6 - finalizers: - - finalizers - - finalizers - resourceVersion: resourceVersion - annotations: - key: annotations - generateName: generateName - deletionTimestamp: 2000-01-23T04:56:07.000+00:00 - labels: - key: labels - ownerReferences: - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - selfLink: selfLink - deletionGracePeriodSeconds: 0 - uid: uid - managedFields: - - apiVersion: apiVersion - fieldsV1: '{}' - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - - apiVersion: apiVersion - fieldsV1: '{}' - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - creationTimestamp: 2000-01-23T04:56:07.000+00:00 - name: name - namespace: namespace - apiVersion: apiVersion - kind: kind - spec: '{}' - status: - commonEncodingVersion: commonEncodingVersion - conditions: - - reason: reason - lastTransitionTime: 2000-01-23T04:56:07.000+00:00 - message: message - type: type - observedGeneration: 0 - status: status - - reason: reason - lastTransitionTime: 2000-01-23T04:56:07.000+00:00 - message: message - type: type - observedGeneration: 0 - status: status - storageVersions: - - apiServerID: apiServerID - decodableVersions: - - decodableVersions - - decodableVersions - encodingVersion: encodingVersion - servedVersions: - - servedVersions - - servedVersions - - apiServerID: apiServerID - decodableVersions: - - decodableVersions - - decodableVersions - encodingVersion: encodingVersion - servedVersions: - - servedVersions - - servedVersions - - metadata: - generation: 6 - finalizers: - - finalizers - - finalizers - resourceVersion: resourceVersion - annotations: - key: annotations - generateName: generateName - deletionTimestamp: 2000-01-23T04:56:07.000+00:00 - labels: - key: labels - ownerReferences: - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - selfLink: selfLink - deletionGracePeriodSeconds: 0 - uid: uid - managedFields: - - apiVersion: apiVersion - fieldsV1: '{}' - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - - apiVersion: apiVersion - fieldsV1: '{}' - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - creationTimestamp: 2000-01-23T04:56:07.000+00:00 - name: name - namespace: namespace - apiVersion: apiVersion - kind: kind - spec: '{}' - status: - commonEncodingVersion: commonEncodingVersion - conditions: - - reason: reason - lastTransitionTime: 2000-01-23T04:56:07.000+00:00 - message: message - type: type - observedGeneration: 0 - status: status - - reason: reason - lastTransitionTime: 2000-01-23T04:56:07.000+00:00 - message: message - type: type - observedGeneration: 0 - status: status - storageVersions: - - apiServerID: apiServerID - decodableVersions: - - decodableVersions - - decodableVersions - encodingVersion: encodingVersion - servedVersions: - - servedVersions - - servedVersions - - apiServerID: apiServerID - decodableVersions: - - decodableVersions - - decodableVersions - encodingVersion: encodingVersion - servedVersions: - - servedVersions - - servedVersions - properties: - apiVersion: - description: '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' + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). + in: query + name: pretty + schema: type: string - items: - description: Items holds a list of StorageVersion - items: - $ref: '#/components/schemas/v1alpha1.StorageVersion' - type: array - kind: - description: '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' + - description: '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' + in: query + name: dryRun + schema: type: string - metadata: - $ref: '#/components/schemas/v1.ListMeta' - required: - - items - type: object + - description: fieldManager is a name associated with the actor or entity that + is making these changes. The value must be less than or 128 characters long, + and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + in: query + name: fieldManager + schema: + type: string + - description: 'fieldValidation instructs the server on how to handle objects + in the request (POST/PUT/PATCH) containing unknown or duplicate fields. + Valid values are: - Ignore: This will ignore any unknown fields that are + silently dropped from the object, and will ignore all but the last duplicate + field that the decoder encounters. This is the default behavior prior to + v1.23. - Warn: This will send a warning via the standard warning response + header for each unknown field that is dropped from the object, and for each + duplicate field that is encountered. The request will still succeed if there + are no other errors, and will only persist the last of any duplicate fields. + This is the default in v1.23+ - Strict: This will fail the request with + a BadRequest error if any unknown fields would be dropped from the object, + or if any duplicate fields are present. The error returned from the server + will contain all unknown and duplicate fields encountered.' + in: query + name: fieldValidation + schema: + type: string + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/v1beta2.ResourceClaimTemplate' + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1beta2.ResourceClaimTemplate' + application/yaml: + schema: + $ref: '#/components/schemas/v1beta2.ResourceClaimTemplate' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1beta2.ResourceClaimTemplate' + application/cbor: + schema: + $ref: '#/components/schemas/v1beta2.ResourceClaimTemplate' + description: OK + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/v1beta2.ResourceClaimTemplate' + application/yaml: + schema: + $ref: '#/components/schemas/v1beta2.ResourceClaimTemplate' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1beta2.ResourceClaimTemplate' + application/cbor: + schema: + $ref: '#/components/schemas/v1beta2.ResourceClaimTemplate' + description: Created + "401": + content: {} + description: Unauthorized + tags: + - resource_v1beta2 + x-kubernetes-action: put x-kubernetes-group-version-kind: - - group: internal.apiserver.k8s.io - kind: StorageVersionList - version: v1alpha1 - x-implements: - - io.kubernetes.client.common.KubernetesListObject - v1alpha1.StorageVersionStatus: - description: API server instances report the versions they can decode and the - version they encode objects to when persisting objects in the backend. - example: - commonEncodingVersion: commonEncodingVersion - conditions: - - reason: reason - lastTransitionTime: 2000-01-23T04:56:07.000+00:00 - message: message - type: type - observedGeneration: 0 - status: status - - reason: reason - lastTransitionTime: 2000-01-23T04:56:07.000+00:00 - message: message - type: type - observedGeneration: 0 - status: status - storageVersions: - - apiServerID: apiServerID - decodableVersions: - - decodableVersions - - decodableVersions - encodingVersion: encodingVersion - servedVersions: - - servedVersions - - servedVersions - - apiServerID: apiServerID - decodableVersions: - - decodableVersions - - decodableVersions - encodingVersion: encodingVersion - servedVersions: - - servedVersions - - servedVersions - properties: - commonEncodingVersion: - description: 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. + group: resource.k8s.io + kind: ResourceClaimTemplate + version: v1beta2 + x-codegen-request-body-name: body + x-contentType: application/json + x-accepts: application/json + /apis/resource.k8s.io/v1beta2/resourceclaims: + get: + description: list or watch objects of kind ResourceClaim + operationId: listResourceClaimForAllNamespaces + parameters: + - description: 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. + in: query + name: allowWatchBookmarks + schema: + type: boolean + - description: |- + 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. + in: query + name: continue + schema: type: string - conditions: - description: The latest available observations of the storageVersion's state. - items: - $ref: '#/components/schemas/v1alpha1.StorageVersionCondition' - type: array - x-kubernetes-list-type: map - x-kubernetes-list-map-keys: - - type - storageVersions: - description: The reported versions per API server instance. - items: - $ref: '#/components/schemas/v1alpha1.ServerStorageVersion' - type: array - x-kubernetes-list-type: map - x-kubernetes-list-map-keys: - - apiServerID - type: object - v1.ControllerRevision: - 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. - example: - metadata: - generation: 6 - finalizers: - - finalizers - - finalizers - resourceVersion: resourceVersion - annotations: - key: annotations - generateName: generateName - deletionTimestamp: 2000-01-23T04:56:07.000+00:00 - labels: - key: labels - ownerReferences: - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - selfLink: selfLink - deletionGracePeriodSeconds: 0 - uid: uid - managedFields: - - apiVersion: apiVersion - fieldsV1: '{}' - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - - apiVersion: apiVersion - fieldsV1: '{}' - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - creationTimestamp: 2000-01-23T04:56:07.000+00:00 - name: name - namespace: namespace - apiVersion: apiVersion - data: '{}' - kind: kind - revision: 0 - properties: - apiVersion: - description: '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' + - description: A selector to restrict the list of returned objects by their + fields. Defaults to everything. + in: query + name: fieldSelector + schema: type: string - data: - description: Data is the serialized representation of the state. - properties: {} - type: object - kind: - description: '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' + - description: A selector to restrict the list of returned objects by their + labels. Defaults to everything. + in: query + name: labelSelector + schema: type: string - metadata: - $ref: '#/components/schemas/v1.ObjectMeta' - revision: - description: Revision indicates the revision of the state represented by - Data. - format: int64 + - description: |- + limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. + + The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + in: query + name: limit + schema: type: integer - required: - - revision - type: object + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). + in: query + name: pretty + schema: + type: string + - description: |- + resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersion + schema: + type: string + - description: |- + resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersionMatch + schema: + type: string + - description: |- + `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic "Bookmark" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `"k8s.io/initial-events-end": "true"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. + + When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan + is interpreted as "data at least as new as the provided `resourceVersion`" + and the bookmark event is send when the state is synced + to a `resourceVersion` at least as fresh as the one provided by the ListOptions. + If `resourceVersion` is unset, this is interpreted as "consistent read" and the + bookmark event is send when the state is synced at least to the moment + when request started being processed. + - `resourceVersionMatch` set to any other value or unset + Invalid error is returned. + + Defaults to true if `resourceVersion=""` or `resourceVersion="0"` (for backward compatibility reasons) and to false otherwise. + in: query + name: sendInitialEvents + schema: + type: boolean + - description: Timeout for the list/watch call. This limits the duration of + the call, regardless of any activity or inactivity. + in: query + name: timeoutSeconds + schema: + type: integer + - description: Watch for changes to the described resources and return them + as a stream of add, update, and remove notifications. Specify resourceVersion. + in: query + name: watch + schema: + type: boolean + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1beta2.ResourceClaimList' + application/yaml: + schema: + $ref: '#/components/schemas/v1beta2.ResourceClaimList' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1beta2.ResourceClaimList' + application/cbor: + schema: + $ref: '#/components/schemas/v1beta2.ResourceClaimList' + application/json;stream=watch: + schema: + $ref: '#/components/schemas/v1beta2.ResourceClaimList' + application/vnd.kubernetes.protobuf;stream=watch: + schema: + $ref: '#/components/schemas/v1beta2.ResourceClaimList' + application/cbor-seq: + schema: + $ref: '#/components/schemas/v1beta2.ResourceClaimList' + description: OK + "401": + content: {} + description: Unauthorized + tags: + - resource_v1beta2 + x-kubernetes-action: list x-kubernetes-group-version-kind: - - group: apps - kind: ControllerRevision - version: v1 - x-implements: - - io.kubernetes.client.common.KubernetesObject - v1.ControllerRevisionList: - description: ControllerRevisionList is a resource containing a list of ControllerRevision - objects. - example: - metadata: - remainingItemCount: 1 - continue: continue - resourceVersion: resourceVersion - selfLink: selfLink - apiVersion: apiVersion - kind: kind - items: - - metadata: - generation: 6 - finalizers: - - finalizers - - finalizers - resourceVersion: resourceVersion - annotations: - key: annotations - generateName: generateName - deletionTimestamp: 2000-01-23T04:56:07.000+00:00 - labels: - key: labels - ownerReferences: - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - selfLink: selfLink - deletionGracePeriodSeconds: 0 - uid: uid - managedFields: - - apiVersion: apiVersion - fieldsV1: '{}' - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - - apiVersion: apiVersion - fieldsV1: '{}' - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - creationTimestamp: 2000-01-23T04:56:07.000+00:00 - name: name - namespace: namespace - apiVersion: apiVersion - data: '{}' - kind: kind - revision: 0 - - metadata: - generation: 6 - finalizers: - - finalizers - - finalizers - resourceVersion: resourceVersion - annotations: - key: annotations - generateName: generateName - deletionTimestamp: 2000-01-23T04:56:07.000+00:00 - labels: - key: labels - ownerReferences: - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - selfLink: selfLink - deletionGracePeriodSeconds: 0 - uid: uid - managedFields: - - apiVersion: apiVersion - fieldsV1: '{}' - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - - apiVersion: apiVersion - fieldsV1: '{}' - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - creationTimestamp: 2000-01-23T04:56:07.000+00:00 - name: name - namespace: namespace - apiVersion: apiVersion - data: '{}' - kind: kind - revision: 0 - properties: - apiVersion: - description: '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' + group: resource.k8s.io + kind: ResourceClaim + version: v1beta2 + x-accepts: application/json + /apis/resource.k8s.io/v1beta2/resourceclaimtemplates: + get: + description: list or watch objects of kind ResourceClaimTemplate + operationId: listResourceClaimTemplateForAllNamespaces + parameters: + - description: 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. + in: query + name: allowWatchBookmarks + schema: + type: boolean + - description: |- + 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. + in: query + name: continue + schema: type: string - items: - description: Items is the list of ControllerRevisions - items: - $ref: '#/components/schemas/v1.ControllerRevision' - type: array - kind: - description: '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' + - description: A selector to restrict the list of returned objects by their + fields. Defaults to everything. + in: query + name: fieldSelector + schema: type: string - metadata: - $ref: '#/components/schemas/v1.ListMeta' - required: - - items - type: object + - description: A selector to restrict the list of returned objects by their + labels. Defaults to everything. + in: query + name: labelSelector + schema: + type: string + - description: |- + limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. + + The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + in: query + name: limit + schema: + type: integer + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). + in: query + name: pretty + schema: + type: string + - description: |- + resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersion + schema: + type: string + - description: |- + resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersionMatch + schema: + type: string + - description: |- + `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic "Bookmark" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `"k8s.io/initial-events-end": "true"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. + + When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan + is interpreted as "data at least as new as the provided `resourceVersion`" + and the bookmark event is send when the state is synced + to a `resourceVersion` at least as fresh as the one provided by the ListOptions. + If `resourceVersion` is unset, this is interpreted as "consistent read" and the + bookmark event is send when the state is synced at least to the moment + when request started being processed. + - `resourceVersionMatch` set to any other value or unset + Invalid error is returned. + + Defaults to true if `resourceVersion=""` or `resourceVersion="0"` (for backward compatibility reasons) and to false otherwise. + in: query + name: sendInitialEvents + schema: + type: boolean + - description: Timeout for the list/watch call. This limits the duration of + the call, regardless of any activity or inactivity. + in: query + name: timeoutSeconds + schema: + type: integer + - description: Watch for changes to the described resources and return them + as a stream of add, update, and remove notifications. Specify resourceVersion. + in: query + name: watch + schema: + type: boolean + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1beta2.ResourceClaimTemplateList' + application/yaml: + schema: + $ref: '#/components/schemas/v1beta2.ResourceClaimTemplateList' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1beta2.ResourceClaimTemplateList' + application/cbor: + schema: + $ref: '#/components/schemas/v1beta2.ResourceClaimTemplateList' + application/json;stream=watch: + schema: + $ref: '#/components/schemas/v1beta2.ResourceClaimTemplateList' + application/vnd.kubernetes.protobuf;stream=watch: + schema: + $ref: '#/components/schemas/v1beta2.ResourceClaimTemplateList' + application/cbor-seq: + schema: + $ref: '#/components/schemas/v1beta2.ResourceClaimTemplateList' + description: OK + "401": + content: {} + description: Unauthorized + tags: + - resource_v1beta2 + x-kubernetes-action: list x-kubernetes-group-version-kind: - - group: apps - kind: ControllerRevisionList - version: v1 - x-implements: - - io.kubernetes.client.common.KubernetesListObject - v1.DaemonSet: + group: resource.k8s.io + kind: ResourceClaimTemplate + version: v1beta2 + x-accepts: application/json + /apis/resource.k8s.io/v1beta2/resourceslices: + delete: + description: delete collection of ResourceSlice + operationId: deleteCollectionResourceSlice + parameters: + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). + in: query + name: pretty + schema: + type: string + - description: |- + 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. + in: query + name: continue + schema: + type: string + - description: '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' + in: query + 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 + - description: 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. + in: query + name: gracePeriodSeconds + schema: + type: integer + - description: 'if set to true, it will trigger an unsafe deletion of the resource + in case the normal deletion flow fails with a corrupt object error. A resource + is considered corrupt if it can not be retrieved from the underlying storage + successfully because of a) its data can not be transformed e.g. decryption + failure, or b) it fails to decode into an object. NOTE: unsafe deletion + ignores finalizer constraints, skips precondition checks, and removes the + object from the storage. WARNING: This may potentially break the cluster + if the workload associated with the resource being unsafe-deleted relies + on normal deletion flow. Use only if you REALLY know what you are doing. + The default value is false, and the user must opt in to enable it' + in: query + name: ignoreStoreReadErrorWithClusterBreakingPotential + schema: + type: boolean + - description: A selector to restrict the list of returned objects by their + labels. Defaults to everything. + in: query + name: labelSelector + schema: + type: string + - description: |- + limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. + + The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + in: query + name: limit + schema: + type: integer + - description: '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.' + in: query + name: orphanDependents + schema: + type: boolean + - description: '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.' + in: query + name: propagationPolicy + schema: + type: string + - description: |- + resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersion + schema: + type: string + - description: |- + resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersionMatch + schema: + type: string + - description: |- + `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic "Bookmark" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `"k8s.io/initial-events-end": "true"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. + + When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan + is interpreted as "data at least as new as the provided `resourceVersion`" + and the bookmark event is send when the state is synced + to a `resourceVersion` at least as fresh as the one provided by the ListOptions. + If `resourceVersion` is unset, this is interpreted as "consistent read" and the + bookmark event is send when the state is synced at least to the moment + when request started being processed. + - `resourceVersionMatch` set to any other value or unset + Invalid error is returned. + + Defaults to true if `resourceVersion=""` or `resourceVersion="0"` (for backward compatibility reasons) and to false otherwise. + in: query + name: sendInitialEvents + schema: + type: boolean + - description: Timeout for the list/watch call. This limits the duration of + the call, regardless of any activity or inactivity. + in: query + name: timeoutSeconds + schema: + type: integer + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/v1.DeleteOptions' + required: false + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.Status' + application/yaml: + schema: + $ref: '#/components/schemas/v1.Status' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.Status' + application/cbor: + schema: + $ref: '#/components/schemas/v1.Status' + description: OK + "401": + content: {} + description: Unauthorized + tags: + - resource_v1beta2 + x-kubernetes-action: deletecollection + x-kubernetes-group-version-kind: + group: resource.k8s.io + kind: ResourceSlice + version: v1beta2 + x-codegen-request-body-name: body + x-contentType: application/json + x-accepts: application/json + get: + description: list or watch objects of kind ResourceSlice + operationId: listResourceSlice + parameters: + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). + in: query + name: pretty + schema: + type: string + - description: 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. + in: query + name: allowWatchBookmarks + schema: + type: boolean + - description: |- + 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. + in: query + name: continue + 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 + - description: A selector to restrict the list of returned objects by their + labels. Defaults to everything. + in: query + name: labelSelector + schema: + type: string + - description: |- + limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. + + The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + in: query + name: limit + schema: + type: integer + - description: |- + resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersion + schema: + type: string + - description: |- + resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersionMatch + schema: + type: string + - description: |- + `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic "Bookmark" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `"k8s.io/initial-events-end": "true"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. + + When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan + is interpreted as "data at least as new as the provided `resourceVersion`" + and the bookmark event is send when the state is synced + to a `resourceVersion` at least as fresh as the one provided by the ListOptions. + If `resourceVersion` is unset, this is interpreted as "consistent read" and the + bookmark event is send when the state is synced at least to the moment + when request started being processed. + - `resourceVersionMatch` set to any other value or unset + Invalid error is returned. + + Defaults to true if `resourceVersion=""` or `resourceVersion="0"` (for backward compatibility reasons) and to false otherwise. + in: query + name: sendInitialEvents + schema: + type: boolean + - description: Timeout for the list/watch call. This limits the duration of + the call, regardless of any activity or inactivity. + in: query + name: timeoutSeconds + schema: + type: integer + - description: Watch for changes to the described resources and return them + as a stream of add, update, and remove notifications. Specify resourceVersion. + in: query + name: watch + schema: + type: boolean + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1beta2.ResourceSliceList' + application/yaml: + schema: + $ref: '#/components/schemas/v1beta2.ResourceSliceList' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1beta2.ResourceSliceList' + application/cbor: + schema: + $ref: '#/components/schemas/v1beta2.ResourceSliceList' + application/json;stream=watch: + schema: + $ref: '#/components/schemas/v1beta2.ResourceSliceList' + application/vnd.kubernetes.protobuf;stream=watch: + schema: + $ref: '#/components/schemas/v1beta2.ResourceSliceList' + application/cbor-seq: + schema: + $ref: '#/components/schemas/v1beta2.ResourceSliceList' + description: OK + "401": + content: {} + description: Unauthorized + tags: + - resource_v1beta2 + x-kubernetes-action: list + x-kubernetes-group-version-kind: + group: resource.k8s.io + kind: ResourceSlice + version: v1beta2 + x-accepts: application/json + post: + description: create a ResourceSlice + operationId: createResourceSlice + parameters: + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). + in: query + name: pretty + schema: + type: string + - description: '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' + in: query + name: dryRun + schema: + type: string + - description: fieldManager is a name associated with the actor or entity that + is making these changes. The value must be less than or 128 characters long, + and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + in: query + name: fieldManager + schema: + type: string + - description: 'fieldValidation instructs the server on how to handle objects + in the request (POST/PUT/PATCH) containing unknown or duplicate fields. + Valid values are: - Ignore: This will ignore any unknown fields that are + silently dropped from the object, and will ignore all but the last duplicate + field that the decoder encounters. This is the default behavior prior to + v1.23. - Warn: This will send a warning via the standard warning response + header for each unknown field that is dropped from the object, and for each + duplicate field that is encountered. The request will still succeed if there + are no other errors, and will only persist the last of any duplicate fields. + This is the default in v1.23+ - Strict: This will fail the request with + a BadRequest error if any unknown fields would be dropped from the object, + or if any duplicate fields are present. The error returned from the server + will contain all unknown and duplicate fields encountered.' + in: query + name: fieldValidation + schema: + type: string + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/v1beta2.ResourceSlice' + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1beta2.ResourceSlice' + application/yaml: + schema: + $ref: '#/components/schemas/v1beta2.ResourceSlice' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1beta2.ResourceSlice' + application/cbor: + schema: + $ref: '#/components/schemas/v1beta2.ResourceSlice' + description: OK + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/v1beta2.ResourceSlice' + application/yaml: + schema: + $ref: '#/components/schemas/v1beta2.ResourceSlice' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1beta2.ResourceSlice' + application/cbor: + schema: + $ref: '#/components/schemas/v1beta2.ResourceSlice' + description: Created + "202": + content: + application/json: + schema: + $ref: '#/components/schemas/v1beta2.ResourceSlice' + application/yaml: + schema: + $ref: '#/components/schemas/v1beta2.ResourceSlice' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1beta2.ResourceSlice' + application/cbor: + schema: + $ref: '#/components/schemas/v1beta2.ResourceSlice' + description: Accepted + "401": + content: {} + description: Unauthorized + tags: + - resource_v1beta2 + x-kubernetes-action: post + x-kubernetes-group-version-kind: + group: resource.k8s.io + kind: ResourceSlice + version: v1beta2 + x-codegen-request-body-name: body + x-contentType: application/json + x-accepts: application/json + /apis/resource.k8s.io/v1beta2/resourceslices/{name}: + delete: + description: delete a ResourceSlice + operationId: deleteResourceSlice + parameters: + - description: name of the ResourceSlice + in: path + name: name + required: true + schema: + type: string + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). + in: query + name: pretty + schema: + type: string + - description: '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' + in: query + name: dryRun + schema: + type: string + - description: 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. + in: query + name: gracePeriodSeconds + schema: + type: integer + - description: 'if set to true, it will trigger an unsafe deletion of the resource + in case the normal deletion flow fails with a corrupt object error. A resource + is considered corrupt if it can not be retrieved from the underlying storage + successfully because of a) its data can not be transformed e.g. decryption + failure, or b) it fails to decode into an object. NOTE: unsafe deletion + ignores finalizer constraints, skips precondition checks, and removes the + object from the storage. WARNING: This may potentially break the cluster + if the workload associated with the resource being unsafe-deleted relies + on normal deletion flow. Use only if you REALLY know what you are doing. + The default value is false, and the user must opt in to enable it' + in: query + name: ignoreStoreReadErrorWithClusterBreakingPotential + schema: + type: boolean + - description: '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.' + in: query + name: orphanDependents + schema: + type: boolean + - description: '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.' + in: query + name: propagationPolicy + schema: + type: string + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/v1.DeleteOptions' + required: false + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1beta2.ResourceSlice' + application/yaml: + schema: + $ref: '#/components/schemas/v1beta2.ResourceSlice' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1beta2.ResourceSlice' + application/cbor: + schema: + $ref: '#/components/schemas/v1beta2.ResourceSlice' + description: OK + "202": + content: + application/json: + schema: + $ref: '#/components/schemas/v1beta2.ResourceSlice' + application/yaml: + schema: + $ref: '#/components/schemas/v1beta2.ResourceSlice' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1beta2.ResourceSlice' + application/cbor: + schema: + $ref: '#/components/schemas/v1beta2.ResourceSlice' + description: Accepted + "401": + content: {} + description: Unauthorized + tags: + - resource_v1beta2 + x-kubernetes-action: delete + x-kubernetes-group-version-kind: + group: resource.k8s.io + kind: ResourceSlice + version: v1beta2 + x-codegen-request-body-name: body + x-contentType: application/json + x-accepts: application/json + get: + description: read the specified ResourceSlice + operationId: readResourceSlice + parameters: + - description: name of the ResourceSlice + in: path + name: name + required: true + schema: + type: string + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). + in: query + name: pretty + schema: + type: string + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1beta2.ResourceSlice' + application/yaml: + schema: + $ref: '#/components/schemas/v1beta2.ResourceSlice' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1beta2.ResourceSlice' + application/cbor: + schema: + $ref: '#/components/schemas/v1beta2.ResourceSlice' + description: OK + "401": + content: {} + description: Unauthorized + tags: + - resource_v1beta2 + x-kubernetes-action: get + x-kubernetes-group-version-kind: + group: resource.k8s.io + kind: ResourceSlice + version: v1beta2 + x-accepts: application/json + patch: + description: partially update the specified ResourceSlice + operationId: patchResourceSlice + parameters: + - description: name of the ResourceSlice + in: path + name: name + required: true + schema: + type: string + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). + in: query + name: pretty + schema: + type: string + - description: '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' + in: query + name: dryRun + schema: + type: string + - description: fieldManager is a name associated with the actor or entity that + is making these changes. The value must be less than or 128 characters long, + and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + This field is required for apply requests (application/apply-patch) but + optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). + in: query + name: fieldManager + schema: + type: string + - description: 'fieldValidation instructs the server on how to handle objects + in the request (POST/PUT/PATCH) containing unknown or duplicate fields. + Valid values are: - Ignore: This will ignore any unknown fields that are + silently dropped from the object, and will ignore all but the last duplicate + field that the decoder encounters. This is the default behavior prior to + v1.23. - Warn: This will send a warning via the standard warning response + header for each unknown field that is dropped from the object, and for each + duplicate field that is encountered. The request will still succeed if there + are no other errors, and will only persist the last of any duplicate fields. + This is the default in v1.23+ - Strict: This will fail the request with + a BadRequest error if any unknown fields would be dropped from the object, + or if any duplicate fields are present. The error returned from the server + will contain all unknown and duplicate fields encountered.' + in: query + name: fieldValidation + schema: + type: string + - description: Force is going to "force" Apply requests. It means user will + re-acquire conflicting fields owned by other people. Force flag must be + unset for non-apply patch requests. + in: query + name: force + schema: + type: boolean + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/v1.Patch' + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1beta2.ResourceSlice' + application/yaml: + schema: + $ref: '#/components/schemas/v1beta2.ResourceSlice' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1beta2.ResourceSlice' + application/cbor: + schema: + $ref: '#/components/schemas/v1beta2.ResourceSlice' + description: OK + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/v1beta2.ResourceSlice' + application/yaml: + schema: + $ref: '#/components/schemas/v1beta2.ResourceSlice' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1beta2.ResourceSlice' + application/cbor: + schema: + $ref: '#/components/schemas/v1beta2.ResourceSlice' + description: Created + "401": + content: {} + description: Unauthorized + tags: + - resource_v1beta2 + x-kubernetes-action: patch + x-kubernetes-group-version-kind: + group: resource.k8s.io + kind: ResourceSlice + version: v1beta2 + x-codegen-request-body-name: body + x-contentType: application/json + x-accepts: application/json + put: + description: replace the specified ResourceSlice + operationId: replaceResourceSlice + parameters: + - description: name of the ResourceSlice + in: path + name: name + required: true + schema: + type: string + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). + in: query + name: pretty + schema: + type: string + - description: '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' + in: query + name: dryRun + schema: + type: string + - description: fieldManager is a name associated with the actor or entity that + is making these changes. The value must be less than or 128 characters long, + and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + in: query + name: fieldManager + schema: + type: string + - description: 'fieldValidation instructs the server on how to handle objects + in the request (POST/PUT/PATCH) containing unknown or duplicate fields. + Valid values are: - Ignore: This will ignore any unknown fields that are + silently dropped from the object, and will ignore all but the last duplicate + field that the decoder encounters. This is the default behavior prior to + v1.23. - Warn: This will send a warning via the standard warning response + header for each unknown field that is dropped from the object, and for each + duplicate field that is encountered. The request will still succeed if there + are no other errors, and will only persist the last of any duplicate fields. + This is the default in v1.23+ - Strict: This will fail the request with + a BadRequest error if any unknown fields would be dropped from the object, + or if any duplicate fields are present. The error returned from the server + will contain all unknown and duplicate fields encountered.' + in: query + name: fieldValidation + schema: + type: string + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/v1beta2.ResourceSlice' + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1beta2.ResourceSlice' + application/yaml: + schema: + $ref: '#/components/schemas/v1beta2.ResourceSlice' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1beta2.ResourceSlice' + application/cbor: + schema: + $ref: '#/components/schemas/v1beta2.ResourceSlice' + description: OK + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/v1beta2.ResourceSlice' + application/yaml: + schema: + $ref: '#/components/schemas/v1beta2.ResourceSlice' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1beta2.ResourceSlice' + application/cbor: + schema: + $ref: '#/components/schemas/v1beta2.ResourceSlice' + description: Created + "401": + content: {} + description: Unauthorized + tags: + - resource_v1beta2 + x-kubernetes-action: put + x-kubernetes-group-version-kind: + group: resource.k8s.io + kind: ResourceSlice + version: v1beta2 + x-codegen-request-body-name: body + x-contentType: application/json + x-accepts: application/json + /apis/resource.k8s.io/v1beta2/watch/deviceclasses: {} + /apis/resource.k8s.io/v1beta2/watch/deviceclasses/{name}: {} + /apis/resource.k8s.io/v1beta2/watch/namespaces/{namespace}/resourceclaims: {} + /apis/resource.k8s.io/v1beta2/watch/namespaces/{namespace}/resourceclaims/{name}: {} + /apis/resource.k8s.io/v1beta2/watch/namespaces/{namespace}/resourceclaimtemplates: {} + /apis/resource.k8s.io/v1beta2/watch/namespaces/{namespace}/resourceclaimtemplates/{name}: {} + /apis/resource.k8s.io/v1beta2/watch/resourceclaims: {} + /apis/resource.k8s.io/v1beta2/watch/resourceclaimtemplates: {} + /apis/resource.k8s.io/v1beta2/watch/resourceslices: {} + /apis/resource.k8s.io/v1beta2/watch/resourceslices/{name}: {} + /apis/scheduling.k8s.io/: + get: + description: get information of a group + operationId: getAPIGroup + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.APIGroup' + application/yaml: + schema: + $ref: '#/components/schemas/v1.APIGroup' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.APIGroup' + description: OK + "401": + content: {} + description: Unauthorized + tags: + - scheduling + x-accepts: application/json + /apis/scheduling.k8s.io/v1/: + get: + description: get available resources + operationId: getAPIResources + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.APIResourceList' + application/yaml: + schema: + $ref: '#/components/schemas/v1.APIResourceList' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.APIResourceList' + application/cbor: + schema: + $ref: '#/components/schemas/v1.APIResourceList' + description: OK + "401": + content: {} + description: Unauthorized + tags: + - scheduling_v1 + x-accepts: application/json + /apis/scheduling.k8s.io/v1/priorityclasses: + delete: + description: delete collection of PriorityClass + operationId: deleteCollectionPriorityClass + parameters: + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). + in: query + name: pretty + schema: + type: string + - description: |- + 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. + in: query + name: continue + schema: + type: string + - description: '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' + in: query + 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 + - description: 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. + in: query + name: gracePeriodSeconds + schema: + type: integer + - description: 'if set to true, it will trigger an unsafe deletion of the resource + in case the normal deletion flow fails with a corrupt object error. A resource + is considered corrupt if it can not be retrieved from the underlying storage + successfully because of a) its data can not be transformed e.g. decryption + failure, or b) it fails to decode into an object. NOTE: unsafe deletion + ignores finalizer constraints, skips precondition checks, and removes the + object from the storage. WARNING: This may potentially break the cluster + if the workload associated with the resource being unsafe-deleted relies + on normal deletion flow. Use only if you REALLY know what you are doing. + The default value is false, and the user must opt in to enable it' + in: query + name: ignoreStoreReadErrorWithClusterBreakingPotential + schema: + type: boolean + - description: A selector to restrict the list of returned objects by their + labels. Defaults to everything. + in: query + name: labelSelector + schema: + type: string + - description: |- + limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. + + The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + in: query + name: limit + schema: + type: integer + - description: '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.' + in: query + name: orphanDependents + schema: + type: boolean + - description: '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.' + in: query + name: propagationPolicy + schema: + type: string + - description: |- + resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersion + schema: + type: string + - description: |- + resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersionMatch + schema: + type: string + - description: |- + `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic "Bookmark" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `"k8s.io/initial-events-end": "true"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. + + When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan + is interpreted as "data at least as new as the provided `resourceVersion`" + and the bookmark event is send when the state is synced + to a `resourceVersion` at least as fresh as the one provided by the ListOptions. + If `resourceVersion` is unset, this is interpreted as "consistent read" and the + bookmark event is send when the state is synced at least to the moment + when request started being processed. + - `resourceVersionMatch` set to any other value or unset + Invalid error is returned. + + Defaults to true if `resourceVersion=""` or `resourceVersion="0"` (for backward compatibility reasons) and to false otherwise. + in: query + name: sendInitialEvents + schema: + type: boolean + - description: Timeout for the list/watch call. This limits the duration of + the call, regardless of any activity or inactivity. + in: query + name: timeoutSeconds + schema: + type: integer + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/v1.DeleteOptions' + required: false + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.Status' + application/yaml: + schema: + $ref: '#/components/schemas/v1.Status' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.Status' + application/cbor: + schema: + $ref: '#/components/schemas/v1.Status' + description: OK + "401": + content: {} + description: Unauthorized + tags: + - scheduling_v1 + x-kubernetes-action: deletecollection + x-kubernetes-group-version-kind: + group: scheduling.k8s.io + kind: PriorityClass + version: v1 + x-codegen-request-body-name: body + x-contentType: application/json + x-accepts: application/json + get: + description: list or watch objects of kind PriorityClass + operationId: listPriorityClass + parameters: + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). + in: query + name: pretty + schema: + type: string + - description: 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. + in: query + name: allowWatchBookmarks + schema: + type: boolean + - description: |- + 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. + in: query + name: continue + 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 + - description: A selector to restrict the list of returned objects by their + labels. Defaults to everything. + in: query + name: labelSelector + schema: + type: string + - description: |- + limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. + + The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + in: query + name: limit + schema: + type: integer + - description: |- + resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersion + schema: + type: string + - description: |- + resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersionMatch + schema: + type: string + - description: |- + `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic "Bookmark" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `"k8s.io/initial-events-end": "true"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. + + When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan + is interpreted as "data at least as new as the provided `resourceVersion`" + and the bookmark event is send when the state is synced + to a `resourceVersion` at least as fresh as the one provided by the ListOptions. + If `resourceVersion` is unset, this is interpreted as "consistent read" and the + bookmark event is send when the state is synced at least to the moment + when request started being processed. + - `resourceVersionMatch` set to any other value or unset + Invalid error is returned. + + Defaults to true if `resourceVersion=""` or `resourceVersion="0"` (for backward compatibility reasons) and to false otherwise. + in: query + name: sendInitialEvents + schema: + type: boolean + - description: Timeout for the list/watch call. This limits the duration of + the call, regardless of any activity or inactivity. + in: query + name: timeoutSeconds + schema: + type: integer + - description: Watch for changes to the described resources and return them + as a stream of add, update, and remove notifications. Specify resourceVersion. + in: query + name: watch + schema: + type: boolean + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.PriorityClassList' + application/yaml: + schema: + $ref: '#/components/schemas/v1.PriorityClassList' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.PriorityClassList' + application/cbor: + schema: + $ref: '#/components/schemas/v1.PriorityClassList' + application/json;stream=watch: + schema: + $ref: '#/components/schemas/v1.PriorityClassList' + application/vnd.kubernetes.protobuf;stream=watch: + schema: + $ref: '#/components/schemas/v1.PriorityClassList' + application/cbor-seq: + schema: + $ref: '#/components/schemas/v1.PriorityClassList' + description: OK + "401": + content: {} + description: Unauthorized + tags: + - scheduling_v1 + x-kubernetes-action: list + x-kubernetes-group-version-kind: + group: scheduling.k8s.io + kind: PriorityClass + version: v1 + x-accepts: application/json + post: + description: create a PriorityClass + operationId: createPriorityClass + parameters: + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). + in: query + name: pretty + schema: + type: string + - description: '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' + in: query + name: dryRun + schema: + type: string + - description: fieldManager is a name associated with the actor or entity that + is making these changes. The value must be less than or 128 characters long, + and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + in: query + name: fieldManager + schema: + type: string + - description: 'fieldValidation instructs the server on how to handle objects + in the request (POST/PUT/PATCH) containing unknown or duplicate fields. + Valid values are: - Ignore: This will ignore any unknown fields that are + silently dropped from the object, and will ignore all but the last duplicate + field that the decoder encounters. This is the default behavior prior to + v1.23. - Warn: This will send a warning via the standard warning response + header for each unknown field that is dropped from the object, and for each + duplicate field that is encountered. The request will still succeed if there + are no other errors, and will only persist the last of any duplicate fields. + This is the default in v1.23+ - Strict: This will fail the request with + a BadRequest error if any unknown fields would be dropped from the object, + or if any duplicate fields are present. The error returned from the server + will contain all unknown and duplicate fields encountered.' + in: query + name: fieldValidation + schema: + type: string + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/v1.PriorityClass' + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.PriorityClass' + application/yaml: + schema: + $ref: '#/components/schemas/v1.PriorityClass' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.PriorityClass' + application/cbor: + schema: + $ref: '#/components/schemas/v1.PriorityClass' + description: OK + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.PriorityClass' + application/yaml: + schema: + $ref: '#/components/schemas/v1.PriorityClass' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.PriorityClass' + application/cbor: + schema: + $ref: '#/components/schemas/v1.PriorityClass' + description: Created + "202": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.PriorityClass' + application/yaml: + schema: + $ref: '#/components/schemas/v1.PriorityClass' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.PriorityClass' + application/cbor: + schema: + $ref: '#/components/schemas/v1.PriorityClass' + description: Accepted + "401": + content: {} + description: Unauthorized + tags: + - scheduling_v1 + x-kubernetes-action: post + x-kubernetes-group-version-kind: + group: scheduling.k8s.io + kind: PriorityClass + version: v1 + x-codegen-request-body-name: body + x-contentType: application/json + x-accepts: application/json + /apis/scheduling.k8s.io/v1/priorityclasses/{name}: + delete: + description: delete a PriorityClass + operationId: deletePriorityClass + parameters: + - description: name of the PriorityClass + in: path + name: name + required: true + schema: + type: string + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). + in: query + name: pretty + schema: + type: string + - description: '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' + in: query + name: dryRun + schema: + type: string + - description: 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. + in: query + name: gracePeriodSeconds + schema: + type: integer + - description: 'if set to true, it will trigger an unsafe deletion of the resource + in case the normal deletion flow fails with a corrupt object error. A resource + is considered corrupt if it can not be retrieved from the underlying storage + successfully because of a) its data can not be transformed e.g. decryption + failure, or b) it fails to decode into an object. NOTE: unsafe deletion + ignores finalizer constraints, skips precondition checks, and removes the + object from the storage. WARNING: This may potentially break the cluster + if the workload associated with the resource being unsafe-deleted relies + on normal deletion flow. Use only if you REALLY know what you are doing. + The default value is false, and the user must opt in to enable it' + in: query + name: ignoreStoreReadErrorWithClusterBreakingPotential + schema: + type: boolean + - description: '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.' + in: query + name: orphanDependents + schema: + type: boolean + - description: '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.' + in: query + name: propagationPolicy + schema: + type: string + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/v1.DeleteOptions' + required: false + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.Status' + application/yaml: + schema: + $ref: '#/components/schemas/v1.Status' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.Status' + application/cbor: + schema: + $ref: '#/components/schemas/v1.Status' + description: OK + "202": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.Status' + application/yaml: + schema: + $ref: '#/components/schemas/v1.Status' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.Status' + application/cbor: + schema: + $ref: '#/components/schemas/v1.Status' + description: Accepted + "401": + content: {} + description: Unauthorized + tags: + - scheduling_v1 + x-kubernetes-action: delete + x-kubernetes-group-version-kind: + group: scheduling.k8s.io + kind: PriorityClass + version: v1 + x-codegen-request-body-name: body + x-contentType: application/json + x-accepts: application/json + get: + description: read the specified PriorityClass + operationId: readPriorityClass + parameters: + - description: name of the PriorityClass + in: path + name: name + required: true + schema: + type: string + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). + in: query + name: pretty + schema: + type: string + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.PriorityClass' + application/yaml: + schema: + $ref: '#/components/schemas/v1.PriorityClass' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.PriorityClass' + application/cbor: + schema: + $ref: '#/components/schemas/v1.PriorityClass' + description: OK + "401": + content: {} + description: Unauthorized + tags: + - scheduling_v1 + x-kubernetes-action: get + x-kubernetes-group-version-kind: + group: scheduling.k8s.io + kind: PriorityClass + version: v1 + x-accepts: application/json + patch: + description: partially update the specified PriorityClass + operationId: patchPriorityClass + parameters: + - description: name of the PriorityClass + in: path + name: name + required: true + schema: + type: string + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). + in: query + name: pretty + schema: + type: string + - description: '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' + in: query + name: dryRun + schema: + type: string + - description: fieldManager is a name associated with the actor or entity that + is making these changes. The value must be less than or 128 characters long, + and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + This field is required for apply requests (application/apply-patch) but + optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). + in: query + name: fieldManager + schema: + type: string + - description: 'fieldValidation instructs the server on how to handle objects + in the request (POST/PUT/PATCH) containing unknown or duplicate fields. + Valid values are: - Ignore: This will ignore any unknown fields that are + silently dropped from the object, and will ignore all but the last duplicate + field that the decoder encounters. This is the default behavior prior to + v1.23. - Warn: This will send a warning via the standard warning response + header for each unknown field that is dropped from the object, and for each + duplicate field that is encountered. The request will still succeed if there + are no other errors, and will only persist the last of any duplicate fields. + This is the default in v1.23+ - Strict: This will fail the request with + a BadRequest error if any unknown fields would be dropped from the object, + or if any duplicate fields are present. The error returned from the server + will contain all unknown and duplicate fields encountered.' + in: query + name: fieldValidation + schema: + type: string + - description: Force is going to "force" Apply requests. It means user will + re-acquire conflicting fields owned by other people. Force flag must be + unset for non-apply patch requests. + in: query + name: force + schema: + type: boolean + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/v1.Patch' + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.PriorityClass' + application/yaml: + schema: + $ref: '#/components/schemas/v1.PriorityClass' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.PriorityClass' + application/cbor: + schema: + $ref: '#/components/schemas/v1.PriorityClass' + description: OK + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.PriorityClass' + application/yaml: + schema: + $ref: '#/components/schemas/v1.PriorityClass' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.PriorityClass' + application/cbor: + schema: + $ref: '#/components/schemas/v1.PriorityClass' + description: Created + "401": + content: {} + description: Unauthorized + tags: + - scheduling_v1 + x-kubernetes-action: patch + x-kubernetes-group-version-kind: + group: scheduling.k8s.io + kind: PriorityClass + version: v1 + x-codegen-request-body-name: body + x-contentType: application/json + x-accepts: application/json + put: + description: replace the specified PriorityClass + operationId: replacePriorityClass + parameters: + - description: name of the PriorityClass + in: path + name: name + required: true + schema: + type: string + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). + in: query + name: pretty + schema: + type: string + - description: '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' + in: query + name: dryRun + schema: + type: string + - description: fieldManager is a name associated with the actor or entity that + is making these changes. The value must be less than or 128 characters long, + and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + in: query + name: fieldManager + schema: + type: string + - description: 'fieldValidation instructs the server on how to handle objects + in the request (POST/PUT/PATCH) containing unknown or duplicate fields. + Valid values are: - Ignore: This will ignore any unknown fields that are + silently dropped from the object, and will ignore all but the last duplicate + field that the decoder encounters. This is the default behavior prior to + v1.23. - Warn: This will send a warning via the standard warning response + header for each unknown field that is dropped from the object, and for each + duplicate field that is encountered. The request will still succeed if there + are no other errors, and will only persist the last of any duplicate fields. + This is the default in v1.23+ - Strict: This will fail the request with + a BadRequest error if any unknown fields would be dropped from the object, + or if any duplicate fields are present. The error returned from the server + will contain all unknown and duplicate fields encountered.' + in: query + name: fieldValidation + schema: + type: string + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/v1.PriorityClass' + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.PriorityClass' + application/yaml: + schema: + $ref: '#/components/schemas/v1.PriorityClass' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.PriorityClass' + application/cbor: + schema: + $ref: '#/components/schemas/v1.PriorityClass' + description: OK + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.PriorityClass' + application/yaml: + schema: + $ref: '#/components/schemas/v1.PriorityClass' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.PriorityClass' + application/cbor: + schema: + $ref: '#/components/schemas/v1.PriorityClass' + description: Created + "401": + content: {} + description: Unauthorized + tags: + - scheduling_v1 + x-kubernetes-action: put + x-kubernetes-group-version-kind: + group: scheduling.k8s.io + kind: PriorityClass + version: v1 + x-codegen-request-body-name: body + x-contentType: application/json + x-accepts: application/json + /apis/scheduling.k8s.io/v1/watch/priorityclasses: {} + /apis/scheduling.k8s.io/v1/watch/priorityclasses/{name}: {} + /apis/storage.k8s.io/: + get: + description: get information of a group + operationId: getAPIGroup + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.APIGroup' + application/yaml: + schema: + $ref: '#/components/schemas/v1.APIGroup' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.APIGroup' + description: OK + "401": + content: {} + description: Unauthorized + tags: + - storage + x-accepts: application/json + /apis/storage.k8s.io/v1/: + get: + description: get available resources + operationId: getAPIResources + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.APIResourceList' + application/yaml: + schema: + $ref: '#/components/schemas/v1.APIResourceList' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.APIResourceList' + application/cbor: + schema: + $ref: '#/components/schemas/v1.APIResourceList' + description: OK + "401": + content: {} + description: Unauthorized + tags: + - storage_v1 + x-accepts: application/json + /apis/storage.k8s.io/v1/csidrivers: + delete: + description: delete collection of CSIDriver + operationId: deleteCollectionCSIDriver + parameters: + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). + in: query + name: pretty + schema: + type: string + - description: |- + 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. + in: query + name: continue + schema: + type: string + - description: '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' + in: query + 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 + - description: 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. + in: query + name: gracePeriodSeconds + schema: + type: integer + - description: 'if set to true, it will trigger an unsafe deletion of the resource + in case the normal deletion flow fails with a corrupt object error. A resource + is considered corrupt if it can not be retrieved from the underlying storage + successfully because of a) its data can not be transformed e.g. decryption + failure, or b) it fails to decode into an object. NOTE: unsafe deletion + ignores finalizer constraints, skips precondition checks, and removes the + object from the storage. WARNING: This may potentially break the cluster + if the workload associated with the resource being unsafe-deleted relies + on normal deletion flow. Use only if you REALLY know what you are doing. + The default value is false, and the user must opt in to enable it' + in: query + name: ignoreStoreReadErrorWithClusterBreakingPotential + schema: + type: boolean + - description: A selector to restrict the list of returned objects by their + labels. Defaults to everything. + in: query + name: labelSelector + schema: + type: string + - description: |- + limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. + + The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + in: query + name: limit + schema: + type: integer + - description: '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.' + in: query + name: orphanDependents + schema: + type: boolean + - description: '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.' + in: query + name: propagationPolicy + schema: + type: string + - description: |- + resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersion + schema: + type: string + - description: |- + resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersionMatch + schema: + type: string + - description: |- + `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic "Bookmark" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `"k8s.io/initial-events-end": "true"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. + + When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan + is interpreted as "data at least as new as the provided `resourceVersion`" + and the bookmark event is send when the state is synced + to a `resourceVersion` at least as fresh as the one provided by the ListOptions. + If `resourceVersion` is unset, this is interpreted as "consistent read" and the + bookmark event is send when the state is synced at least to the moment + when request started being processed. + - `resourceVersionMatch` set to any other value or unset + Invalid error is returned. + + Defaults to true if `resourceVersion=""` or `resourceVersion="0"` (for backward compatibility reasons) and to false otherwise. + in: query + name: sendInitialEvents + schema: + type: boolean + - description: Timeout for the list/watch call. This limits the duration of + the call, regardless of any activity or inactivity. + in: query + name: timeoutSeconds + schema: + type: integer + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/v1.DeleteOptions' + required: false + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.Status' + application/yaml: + schema: + $ref: '#/components/schemas/v1.Status' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.Status' + application/cbor: + schema: + $ref: '#/components/schemas/v1.Status' + description: OK + "401": + content: {} + description: Unauthorized + tags: + - storage_v1 + x-kubernetes-action: deletecollection + x-kubernetes-group-version-kind: + group: storage.k8s.io + kind: CSIDriver + version: v1 + x-codegen-request-body-name: body + x-contentType: application/json + x-accepts: application/json + get: + description: list or watch objects of kind CSIDriver + operationId: listCSIDriver + parameters: + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). + in: query + name: pretty + schema: + type: string + - description: 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. + in: query + name: allowWatchBookmarks + schema: + type: boolean + - description: |- + 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. + in: query + name: continue + 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 + - description: A selector to restrict the list of returned objects by their + labels. Defaults to everything. + in: query + name: labelSelector + schema: + type: string + - description: |- + limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. + + The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + in: query + name: limit + schema: + type: integer + - description: |- + resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersion + schema: + type: string + - description: |- + resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersionMatch + schema: + type: string + - description: |- + `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic "Bookmark" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `"k8s.io/initial-events-end": "true"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. + + When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan + is interpreted as "data at least as new as the provided `resourceVersion`" + and the bookmark event is send when the state is synced + to a `resourceVersion` at least as fresh as the one provided by the ListOptions. + If `resourceVersion` is unset, this is interpreted as "consistent read" and the + bookmark event is send when the state is synced at least to the moment + when request started being processed. + - `resourceVersionMatch` set to any other value or unset + Invalid error is returned. + + Defaults to true if `resourceVersion=""` or `resourceVersion="0"` (for backward compatibility reasons) and to false otherwise. + in: query + name: sendInitialEvents + schema: + type: boolean + - description: Timeout for the list/watch call. This limits the duration of + the call, regardless of any activity or inactivity. + in: query + name: timeoutSeconds + schema: + type: integer + - description: Watch for changes to the described resources and return them + as a stream of add, update, and remove notifications. Specify resourceVersion. + in: query + name: watch + schema: + type: boolean + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.CSIDriverList' + application/yaml: + schema: + $ref: '#/components/schemas/v1.CSIDriverList' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.CSIDriverList' + application/cbor: + schema: + $ref: '#/components/schemas/v1.CSIDriverList' + application/json;stream=watch: + schema: + $ref: '#/components/schemas/v1.CSIDriverList' + application/vnd.kubernetes.protobuf;stream=watch: + schema: + $ref: '#/components/schemas/v1.CSIDriverList' + application/cbor-seq: + schema: + $ref: '#/components/schemas/v1.CSIDriverList' + description: OK + "401": + content: {} + description: Unauthorized + tags: + - storage_v1 + x-kubernetes-action: list + x-kubernetes-group-version-kind: + group: storage.k8s.io + kind: CSIDriver + version: v1 + x-accepts: application/json + post: + description: create a CSIDriver + operationId: createCSIDriver + parameters: + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). + in: query + name: pretty + schema: + type: string + - description: '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' + in: query + name: dryRun + schema: + type: string + - description: fieldManager is a name associated with the actor or entity that + is making these changes. The value must be less than or 128 characters long, + and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + in: query + name: fieldManager + schema: + type: string + - description: 'fieldValidation instructs the server on how to handle objects + in the request (POST/PUT/PATCH) containing unknown or duplicate fields. + Valid values are: - Ignore: This will ignore any unknown fields that are + silently dropped from the object, and will ignore all but the last duplicate + field that the decoder encounters. This is the default behavior prior to + v1.23. - Warn: This will send a warning via the standard warning response + header for each unknown field that is dropped from the object, and for each + duplicate field that is encountered. The request will still succeed if there + are no other errors, and will only persist the last of any duplicate fields. + This is the default in v1.23+ - Strict: This will fail the request with + a BadRequest error if any unknown fields would be dropped from the object, + or if any duplicate fields are present. The error returned from the server + will contain all unknown and duplicate fields encountered.' + in: query + name: fieldValidation + schema: + type: string + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/v1.CSIDriver' + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.CSIDriver' + application/yaml: + schema: + $ref: '#/components/schemas/v1.CSIDriver' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.CSIDriver' + application/cbor: + schema: + $ref: '#/components/schemas/v1.CSIDriver' + description: OK + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.CSIDriver' + application/yaml: + schema: + $ref: '#/components/schemas/v1.CSIDriver' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.CSIDriver' + application/cbor: + schema: + $ref: '#/components/schemas/v1.CSIDriver' + description: Created + "202": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.CSIDriver' + application/yaml: + schema: + $ref: '#/components/schemas/v1.CSIDriver' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.CSIDriver' + application/cbor: + schema: + $ref: '#/components/schemas/v1.CSIDriver' + description: Accepted + "401": + content: {} + description: Unauthorized + tags: + - storage_v1 + x-kubernetes-action: post + x-kubernetes-group-version-kind: + group: storage.k8s.io + kind: CSIDriver + version: v1 + x-codegen-request-body-name: body + x-contentType: application/json + x-accepts: application/json + /apis/storage.k8s.io/v1/csidrivers/{name}: + delete: + description: delete a CSIDriver + operationId: deleteCSIDriver + parameters: + - description: name of the CSIDriver + in: path + name: name + required: true + schema: + type: string + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). + in: query + name: pretty + schema: + type: string + - description: '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' + in: query + name: dryRun + schema: + type: string + - description: 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. + in: query + name: gracePeriodSeconds + schema: + type: integer + - description: 'if set to true, it will trigger an unsafe deletion of the resource + in case the normal deletion flow fails with a corrupt object error. A resource + is considered corrupt if it can not be retrieved from the underlying storage + successfully because of a) its data can not be transformed e.g. decryption + failure, or b) it fails to decode into an object. NOTE: unsafe deletion + ignores finalizer constraints, skips precondition checks, and removes the + object from the storage. WARNING: This may potentially break the cluster + if the workload associated with the resource being unsafe-deleted relies + on normal deletion flow. Use only if you REALLY know what you are doing. + The default value is false, and the user must opt in to enable it' + in: query + name: ignoreStoreReadErrorWithClusterBreakingPotential + schema: + type: boolean + - description: '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.' + in: query + name: orphanDependents + schema: + type: boolean + - description: '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.' + in: query + name: propagationPolicy + schema: + type: string + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/v1.DeleteOptions' + required: false + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.CSIDriver' + application/yaml: + schema: + $ref: '#/components/schemas/v1.CSIDriver' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.CSIDriver' + application/cbor: + schema: + $ref: '#/components/schemas/v1.CSIDriver' + description: OK + "202": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.CSIDriver' + application/yaml: + schema: + $ref: '#/components/schemas/v1.CSIDriver' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.CSIDriver' + application/cbor: + schema: + $ref: '#/components/schemas/v1.CSIDriver' + description: Accepted + "401": + content: {} + description: Unauthorized + tags: + - storage_v1 + x-kubernetes-action: delete + x-kubernetes-group-version-kind: + group: storage.k8s.io + kind: CSIDriver + version: v1 + x-codegen-request-body-name: body + x-contentType: application/json + x-accepts: application/json + get: + description: read the specified CSIDriver + operationId: readCSIDriver + parameters: + - description: name of the CSIDriver + in: path + name: name + required: true + schema: + type: string + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). + in: query + name: pretty + schema: + type: string + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.CSIDriver' + application/yaml: + schema: + $ref: '#/components/schemas/v1.CSIDriver' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.CSIDriver' + application/cbor: + schema: + $ref: '#/components/schemas/v1.CSIDriver' + description: OK + "401": + content: {} + description: Unauthorized + tags: + - storage_v1 + x-kubernetes-action: get + x-kubernetes-group-version-kind: + group: storage.k8s.io + kind: CSIDriver + version: v1 + x-accepts: application/json + patch: + description: partially update the specified CSIDriver + operationId: patchCSIDriver + parameters: + - description: name of the CSIDriver + in: path + name: name + required: true + schema: + type: string + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). + in: query + name: pretty + schema: + type: string + - description: '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' + in: query + name: dryRun + schema: + type: string + - description: fieldManager is a name associated with the actor or entity that + is making these changes. The value must be less than or 128 characters long, + and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + This field is required for apply requests (application/apply-patch) but + optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). + in: query + name: fieldManager + schema: + type: string + - description: 'fieldValidation instructs the server on how to handle objects + in the request (POST/PUT/PATCH) containing unknown or duplicate fields. + Valid values are: - Ignore: This will ignore any unknown fields that are + silently dropped from the object, and will ignore all but the last duplicate + field that the decoder encounters. This is the default behavior prior to + v1.23. - Warn: This will send a warning via the standard warning response + header for each unknown field that is dropped from the object, and for each + duplicate field that is encountered. The request will still succeed if there + are no other errors, and will only persist the last of any duplicate fields. + This is the default in v1.23+ - Strict: This will fail the request with + a BadRequest error if any unknown fields would be dropped from the object, + or if any duplicate fields are present. The error returned from the server + will contain all unknown and duplicate fields encountered.' + in: query + name: fieldValidation + schema: + type: string + - description: Force is going to "force" Apply requests. It means user will + re-acquire conflicting fields owned by other people. Force flag must be + unset for non-apply patch requests. + in: query + name: force + schema: + type: boolean + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/v1.Patch' + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.CSIDriver' + application/yaml: + schema: + $ref: '#/components/schemas/v1.CSIDriver' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.CSIDriver' + application/cbor: + schema: + $ref: '#/components/schemas/v1.CSIDriver' + description: OK + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.CSIDriver' + application/yaml: + schema: + $ref: '#/components/schemas/v1.CSIDriver' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.CSIDriver' + application/cbor: + schema: + $ref: '#/components/schemas/v1.CSIDriver' + description: Created + "401": + content: {} + description: Unauthorized + tags: + - storage_v1 + x-kubernetes-action: patch + x-kubernetes-group-version-kind: + group: storage.k8s.io + kind: CSIDriver + version: v1 + x-codegen-request-body-name: body + x-contentType: application/json + x-accepts: application/json + put: + description: replace the specified CSIDriver + operationId: replaceCSIDriver + parameters: + - description: name of the CSIDriver + in: path + name: name + required: true + schema: + type: string + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). + in: query + name: pretty + schema: + type: string + - description: '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' + in: query + name: dryRun + schema: + type: string + - description: fieldManager is a name associated with the actor or entity that + is making these changes. The value must be less than or 128 characters long, + and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + in: query + name: fieldManager + schema: + type: string + - description: 'fieldValidation instructs the server on how to handle objects + in the request (POST/PUT/PATCH) containing unknown or duplicate fields. + Valid values are: - Ignore: This will ignore any unknown fields that are + silently dropped from the object, and will ignore all but the last duplicate + field that the decoder encounters. This is the default behavior prior to + v1.23. - Warn: This will send a warning via the standard warning response + header for each unknown field that is dropped from the object, and for each + duplicate field that is encountered. The request will still succeed if there + are no other errors, and will only persist the last of any duplicate fields. + This is the default in v1.23+ - Strict: This will fail the request with + a BadRequest error if any unknown fields would be dropped from the object, + or if any duplicate fields are present. The error returned from the server + will contain all unknown and duplicate fields encountered.' + in: query + name: fieldValidation + schema: + type: string + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/v1.CSIDriver' + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.CSIDriver' + application/yaml: + schema: + $ref: '#/components/schemas/v1.CSIDriver' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.CSIDriver' + application/cbor: + schema: + $ref: '#/components/schemas/v1.CSIDriver' + description: OK + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.CSIDriver' + application/yaml: + schema: + $ref: '#/components/schemas/v1.CSIDriver' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.CSIDriver' + application/cbor: + schema: + $ref: '#/components/schemas/v1.CSIDriver' + description: Created + "401": + content: {} + description: Unauthorized + tags: + - storage_v1 + x-kubernetes-action: put + x-kubernetes-group-version-kind: + group: storage.k8s.io + kind: CSIDriver + version: v1 + x-codegen-request-body-name: body + x-contentType: application/json + x-accepts: application/json + /apis/storage.k8s.io/v1/csinodes: + delete: + description: delete collection of CSINode + operationId: deleteCollectionCSINode + parameters: + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). + in: query + name: pretty + schema: + type: string + - description: |- + 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. + in: query + name: continue + schema: + type: string + - description: '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' + in: query + 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 + - description: 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. + in: query + name: gracePeriodSeconds + schema: + type: integer + - description: 'if set to true, it will trigger an unsafe deletion of the resource + in case the normal deletion flow fails with a corrupt object error. A resource + is considered corrupt if it can not be retrieved from the underlying storage + successfully because of a) its data can not be transformed e.g. decryption + failure, or b) it fails to decode into an object. NOTE: unsafe deletion + ignores finalizer constraints, skips precondition checks, and removes the + object from the storage. WARNING: This may potentially break the cluster + if the workload associated with the resource being unsafe-deleted relies + on normal deletion flow. Use only if you REALLY know what you are doing. + The default value is false, and the user must opt in to enable it' + in: query + name: ignoreStoreReadErrorWithClusterBreakingPotential + schema: + type: boolean + - description: A selector to restrict the list of returned objects by their + labels. Defaults to everything. + in: query + name: labelSelector + schema: + type: string + - description: |- + limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. + + The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + in: query + name: limit + schema: + type: integer + - description: '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.' + in: query + name: orphanDependents + schema: + type: boolean + - description: '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.' + in: query + name: propagationPolicy + schema: + type: string + - description: |- + resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersion + schema: + type: string + - description: |- + resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersionMatch + schema: + type: string + - description: |- + `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic "Bookmark" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `"k8s.io/initial-events-end": "true"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. + + When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan + is interpreted as "data at least as new as the provided `resourceVersion`" + and the bookmark event is send when the state is synced + to a `resourceVersion` at least as fresh as the one provided by the ListOptions. + If `resourceVersion` is unset, this is interpreted as "consistent read" and the + bookmark event is send when the state is synced at least to the moment + when request started being processed. + - `resourceVersionMatch` set to any other value or unset + Invalid error is returned. + + Defaults to true if `resourceVersion=""` or `resourceVersion="0"` (for backward compatibility reasons) and to false otherwise. + in: query + name: sendInitialEvents + schema: + type: boolean + - description: Timeout for the list/watch call. This limits the duration of + the call, regardless of any activity or inactivity. + in: query + name: timeoutSeconds + schema: + type: integer + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/v1.DeleteOptions' + required: false + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.Status' + application/yaml: + schema: + $ref: '#/components/schemas/v1.Status' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.Status' + application/cbor: + schema: + $ref: '#/components/schemas/v1.Status' + description: OK + "401": + content: {} + description: Unauthorized + tags: + - storage_v1 + x-kubernetes-action: deletecollection + x-kubernetes-group-version-kind: + group: storage.k8s.io + kind: CSINode + version: v1 + x-codegen-request-body-name: body + x-contentType: application/json + x-accepts: application/json + get: + description: list or watch objects of kind CSINode + operationId: listCSINode + parameters: + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). + in: query + name: pretty + schema: + type: string + - description: 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. + in: query + name: allowWatchBookmarks + schema: + type: boolean + - description: |- + 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. + in: query + name: continue + 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 + - description: A selector to restrict the list of returned objects by their + labels. Defaults to everything. + in: query + name: labelSelector + schema: + type: string + - description: |- + limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. + + The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + in: query + name: limit + schema: + type: integer + - description: |- + resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersion + schema: + type: string + - description: |- + resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersionMatch + schema: + type: string + - description: |- + `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic "Bookmark" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `"k8s.io/initial-events-end": "true"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. + + When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan + is interpreted as "data at least as new as the provided `resourceVersion`" + and the bookmark event is send when the state is synced + to a `resourceVersion` at least as fresh as the one provided by the ListOptions. + If `resourceVersion` is unset, this is interpreted as "consistent read" and the + bookmark event is send when the state is synced at least to the moment + when request started being processed. + - `resourceVersionMatch` set to any other value or unset + Invalid error is returned. + + Defaults to true if `resourceVersion=""` or `resourceVersion="0"` (for backward compatibility reasons) and to false otherwise. + in: query + name: sendInitialEvents + schema: + type: boolean + - description: Timeout for the list/watch call. This limits the duration of + the call, regardless of any activity or inactivity. + in: query + name: timeoutSeconds + schema: + type: integer + - description: Watch for changes to the described resources and return them + as a stream of add, update, and remove notifications. Specify resourceVersion. + in: query + name: watch + schema: + type: boolean + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.CSINodeList' + application/yaml: + schema: + $ref: '#/components/schemas/v1.CSINodeList' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.CSINodeList' + application/cbor: + schema: + $ref: '#/components/schemas/v1.CSINodeList' + application/json;stream=watch: + schema: + $ref: '#/components/schemas/v1.CSINodeList' + application/vnd.kubernetes.protobuf;stream=watch: + schema: + $ref: '#/components/schemas/v1.CSINodeList' + application/cbor-seq: + schema: + $ref: '#/components/schemas/v1.CSINodeList' + description: OK + "401": + content: {} + description: Unauthorized + tags: + - storage_v1 + x-kubernetes-action: list + x-kubernetes-group-version-kind: + group: storage.k8s.io + kind: CSINode + version: v1 + x-accepts: application/json + post: + description: create a CSINode + operationId: createCSINode + parameters: + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). + in: query + name: pretty + schema: + type: string + - description: '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' + in: query + name: dryRun + schema: + type: string + - description: fieldManager is a name associated with the actor or entity that + is making these changes. The value must be less than or 128 characters long, + and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + in: query + name: fieldManager + schema: + type: string + - description: 'fieldValidation instructs the server on how to handle objects + in the request (POST/PUT/PATCH) containing unknown or duplicate fields. + Valid values are: - Ignore: This will ignore any unknown fields that are + silently dropped from the object, and will ignore all but the last duplicate + field that the decoder encounters. This is the default behavior prior to + v1.23. - Warn: This will send a warning via the standard warning response + header for each unknown field that is dropped from the object, and for each + duplicate field that is encountered. The request will still succeed if there + are no other errors, and will only persist the last of any duplicate fields. + This is the default in v1.23+ - Strict: This will fail the request with + a BadRequest error if any unknown fields would be dropped from the object, + or if any duplicate fields are present. The error returned from the server + will contain all unknown and duplicate fields encountered.' + in: query + name: fieldValidation + schema: + type: string + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/v1.CSINode' + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.CSINode' + application/yaml: + schema: + $ref: '#/components/schemas/v1.CSINode' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.CSINode' + application/cbor: + schema: + $ref: '#/components/schemas/v1.CSINode' + description: OK + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.CSINode' + application/yaml: + schema: + $ref: '#/components/schemas/v1.CSINode' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.CSINode' + application/cbor: + schema: + $ref: '#/components/schemas/v1.CSINode' + description: Created + "202": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.CSINode' + application/yaml: + schema: + $ref: '#/components/schemas/v1.CSINode' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.CSINode' + application/cbor: + schema: + $ref: '#/components/schemas/v1.CSINode' + description: Accepted + "401": + content: {} + description: Unauthorized + tags: + - storage_v1 + x-kubernetes-action: post + x-kubernetes-group-version-kind: + group: storage.k8s.io + kind: CSINode + version: v1 + x-codegen-request-body-name: body + x-contentType: application/json + x-accepts: application/json + /apis/storage.k8s.io/v1/csinodes/{name}: + delete: + description: delete a CSINode + operationId: deleteCSINode + parameters: + - description: name of the CSINode + in: path + name: name + required: true + schema: + type: string + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). + in: query + name: pretty + schema: + type: string + - description: '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' + in: query + name: dryRun + schema: + type: string + - description: 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. + in: query + name: gracePeriodSeconds + schema: + type: integer + - description: 'if set to true, it will trigger an unsafe deletion of the resource + in case the normal deletion flow fails with a corrupt object error. A resource + is considered corrupt if it can not be retrieved from the underlying storage + successfully because of a) its data can not be transformed e.g. decryption + failure, or b) it fails to decode into an object. NOTE: unsafe deletion + ignores finalizer constraints, skips precondition checks, and removes the + object from the storage. WARNING: This may potentially break the cluster + if the workload associated with the resource being unsafe-deleted relies + on normal deletion flow. Use only if you REALLY know what you are doing. + The default value is false, and the user must opt in to enable it' + in: query + name: ignoreStoreReadErrorWithClusterBreakingPotential + schema: + type: boolean + - description: '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.' + in: query + name: orphanDependents + schema: + type: boolean + - description: '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.' + in: query + name: propagationPolicy + schema: + type: string + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/v1.DeleteOptions' + required: false + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.CSINode' + application/yaml: + schema: + $ref: '#/components/schemas/v1.CSINode' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.CSINode' + application/cbor: + schema: + $ref: '#/components/schemas/v1.CSINode' + description: OK + "202": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.CSINode' + application/yaml: + schema: + $ref: '#/components/schemas/v1.CSINode' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.CSINode' + application/cbor: + schema: + $ref: '#/components/schemas/v1.CSINode' + description: Accepted + "401": + content: {} + description: Unauthorized + tags: + - storage_v1 + x-kubernetes-action: delete + x-kubernetes-group-version-kind: + group: storage.k8s.io + kind: CSINode + version: v1 + x-codegen-request-body-name: body + x-contentType: application/json + x-accepts: application/json + get: + description: read the specified CSINode + operationId: readCSINode + parameters: + - description: name of the CSINode + in: path + name: name + required: true + schema: + type: string + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). + in: query + name: pretty + schema: + type: string + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.CSINode' + application/yaml: + schema: + $ref: '#/components/schemas/v1.CSINode' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.CSINode' + application/cbor: + schema: + $ref: '#/components/schemas/v1.CSINode' + description: OK + "401": + content: {} + description: Unauthorized + tags: + - storage_v1 + x-kubernetes-action: get + x-kubernetes-group-version-kind: + group: storage.k8s.io + kind: CSINode + version: v1 + x-accepts: application/json + patch: + description: partially update the specified CSINode + operationId: patchCSINode + parameters: + - description: name of the CSINode + in: path + name: name + required: true + schema: + type: string + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). + in: query + name: pretty + schema: + type: string + - description: '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' + in: query + name: dryRun + schema: + type: string + - description: fieldManager is a name associated with the actor or entity that + is making these changes. The value must be less than or 128 characters long, + and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + This field is required for apply requests (application/apply-patch) but + optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). + in: query + name: fieldManager + schema: + type: string + - description: 'fieldValidation instructs the server on how to handle objects + in the request (POST/PUT/PATCH) containing unknown or duplicate fields. + Valid values are: - Ignore: This will ignore any unknown fields that are + silently dropped from the object, and will ignore all but the last duplicate + field that the decoder encounters. This is the default behavior prior to + v1.23. - Warn: This will send a warning via the standard warning response + header for each unknown field that is dropped from the object, and for each + duplicate field that is encountered. The request will still succeed if there + are no other errors, and will only persist the last of any duplicate fields. + This is the default in v1.23+ - Strict: This will fail the request with + a BadRequest error if any unknown fields would be dropped from the object, + or if any duplicate fields are present. The error returned from the server + will contain all unknown and duplicate fields encountered.' + in: query + name: fieldValidation + schema: + type: string + - description: Force is going to "force" Apply requests. It means user will + re-acquire conflicting fields owned by other people. Force flag must be + unset for non-apply patch requests. + in: query + name: force + schema: + type: boolean + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/v1.Patch' + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.CSINode' + application/yaml: + schema: + $ref: '#/components/schemas/v1.CSINode' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.CSINode' + application/cbor: + schema: + $ref: '#/components/schemas/v1.CSINode' + description: OK + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.CSINode' + application/yaml: + schema: + $ref: '#/components/schemas/v1.CSINode' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.CSINode' + application/cbor: + schema: + $ref: '#/components/schemas/v1.CSINode' + description: Created + "401": + content: {} + description: Unauthorized + tags: + - storage_v1 + x-kubernetes-action: patch + x-kubernetes-group-version-kind: + group: storage.k8s.io + kind: CSINode + version: v1 + x-codegen-request-body-name: body + x-contentType: application/json + x-accepts: application/json + put: + description: replace the specified CSINode + operationId: replaceCSINode + parameters: + - description: name of the CSINode + in: path + name: name + required: true + schema: + type: string + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). + in: query + name: pretty + schema: + type: string + - description: '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' + in: query + name: dryRun + schema: + type: string + - description: fieldManager is a name associated with the actor or entity that + is making these changes. The value must be less than or 128 characters long, + and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + in: query + name: fieldManager + schema: + type: string + - description: 'fieldValidation instructs the server on how to handle objects + in the request (POST/PUT/PATCH) containing unknown or duplicate fields. + Valid values are: - Ignore: This will ignore any unknown fields that are + silently dropped from the object, and will ignore all but the last duplicate + field that the decoder encounters. This is the default behavior prior to + v1.23. - Warn: This will send a warning via the standard warning response + header for each unknown field that is dropped from the object, and for each + duplicate field that is encountered. The request will still succeed if there + are no other errors, and will only persist the last of any duplicate fields. + This is the default in v1.23+ - Strict: This will fail the request with + a BadRequest error if any unknown fields would be dropped from the object, + or if any duplicate fields are present. The error returned from the server + will contain all unknown and duplicate fields encountered.' + in: query + name: fieldValidation + schema: + type: string + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/v1.CSINode' + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.CSINode' + application/yaml: + schema: + $ref: '#/components/schemas/v1.CSINode' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.CSINode' + application/cbor: + schema: + $ref: '#/components/schemas/v1.CSINode' + description: OK + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.CSINode' + application/yaml: + schema: + $ref: '#/components/schemas/v1.CSINode' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.CSINode' + application/cbor: + schema: + $ref: '#/components/schemas/v1.CSINode' + description: Created + "401": + content: {} + description: Unauthorized + tags: + - storage_v1 + x-kubernetes-action: put + x-kubernetes-group-version-kind: + group: storage.k8s.io + kind: CSINode + version: v1 + x-codegen-request-body-name: body + x-contentType: application/json + x-accepts: application/json + /apis/storage.k8s.io/v1/csistoragecapacities: + get: + description: list or watch objects of kind CSIStorageCapacity + operationId: listCSIStorageCapacityForAllNamespaces + parameters: + - description: 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. + in: query + name: allowWatchBookmarks + schema: + type: boolean + - description: |- + 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. + in: query + name: continue + 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 + - description: A selector to restrict the list of returned objects by their + labels. Defaults to everything. + in: query + name: labelSelector + schema: + type: string + - description: |- + limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. + + The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + in: query + name: limit + schema: + type: integer + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). + in: query + name: pretty + schema: + type: string + - description: |- + resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersion + schema: + type: string + - description: |- + resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersionMatch + schema: + type: string + - description: |- + `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic "Bookmark" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `"k8s.io/initial-events-end": "true"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. + + When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan + is interpreted as "data at least as new as the provided `resourceVersion`" + and the bookmark event is send when the state is synced + to a `resourceVersion` at least as fresh as the one provided by the ListOptions. + If `resourceVersion` is unset, this is interpreted as "consistent read" and the + bookmark event is send when the state is synced at least to the moment + when request started being processed. + - `resourceVersionMatch` set to any other value or unset + Invalid error is returned. + + Defaults to true if `resourceVersion=""` or `resourceVersion="0"` (for backward compatibility reasons) and to false otherwise. + in: query + name: sendInitialEvents + schema: + type: boolean + - description: Timeout for the list/watch call. This limits the duration of + the call, regardless of any activity or inactivity. + in: query + name: timeoutSeconds + schema: + type: integer + - description: Watch for changes to the described resources and return them + as a stream of add, update, and remove notifications. Specify resourceVersion. + in: query + name: watch + schema: + type: boolean + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.CSIStorageCapacityList' + application/yaml: + schema: + $ref: '#/components/schemas/v1.CSIStorageCapacityList' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.CSIStorageCapacityList' + application/cbor: + schema: + $ref: '#/components/schemas/v1.CSIStorageCapacityList' + application/json;stream=watch: + schema: + $ref: '#/components/schemas/v1.CSIStorageCapacityList' + application/vnd.kubernetes.protobuf;stream=watch: + schema: + $ref: '#/components/schemas/v1.CSIStorageCapacityList' + application/cbor-seq: + schema: + $ref: '#/components/schemas/v1.CSIStorageCapacityList' + description: OK + "401": + content: {} + description: Unauthorized + tags: + - storage_v1 + x-kubernetes-action: list + x-kubernetes-group-version-kind: + group: storage.k8s.io + kind: CSIStorageCapacity + version: v1 + x-accepts: application/json + /apis/storage.k8s.io/v1/namespaces/{namespace}/csistoragecapacities: + delete: + description: delete collection of CSIStorageCapacity + operationId: deleteCollectionNamespacedCSIStorageCapacity + parameters: + - description: object name and auth scope, such as for teams and projects + in: path + name: namespace + required: true + schema: + type: string + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). + in: query + name: pretty + schema: + type: string + - description: |- + 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. + in: query + name: continue + schema: + type: string + - description: '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' + in: query + 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 + - description: 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. + in: query + name: gracePeriodSeconds + schema: + type: integer + - description: 'if set to true, it will trigger an unsafe deletion of the resource + in case the normal deletion flow fails with a corrupt object error. A resource + is considered corrupt if it can not be retrieved from the underlying storage + successfully because of a) its data can not be transformed e.g. decryption + failure, or b) it fails to decode into an object. NOTE: unsafe deletion + ignores finalizer constraints, skips precondition checks, and removes the + object from the storage. WARNING: This may potentially break the cluster + if the workload associated with the resource being unsafe-deleted relies + on normal deletion flow. Use only if you REALLY know what you are doing. + The default value is false, and the user must opt in to enable it' + in: query + name: ignoreStoreReadErrorWithClusterBreakingPotential + schema: + type: boolean + - description: A selector to restrict the list of returned objects by their + labels. Defaults to everything. + in: query + name: labelSelector + schema: + type: string + - description: |- + limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. + + The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + in: query + name: limit + schema: + type: integer + - description: '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.' + in: query + name: orphanDependents + schema: + type: boolean + - description: '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.' + in: query + name: propagationPolicy + schema: + type: string + - description: |- + resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersion + schema: + type: string + - description: |- + resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersionMatch + schema: + type: string + - description: |- + `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic "Bookmark" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `"k8s.io/initial-events-end": "true"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. + + When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan + is interpreted as "data at least as new as the provided `resourceVersion`" + and the bookmark event is send when the state is synced + to a `resourceVersion` at least as fresh as the one provided by the ListOptions. + If `resourceVersion` is unset, this is interpreted as "consistent read" and the + bookmark event is send when the state is synced at least to the moment + when request started being processed. + - `resourceVersionMatch` set to any other value or unset + Invalid error is returned. + + Defaults to true if `resourceVersion=""` or `resourceVersion="0"` (for backward compatibility reasons) and to false otherwise. + in: query + name: sendInitialEvents + schema: + type: boolean + - description: Timeout for the list/watch call. This limits the duration of + the call, regardless of any activity or inactivity. + in: query + name: timeoutSeconds + schema: + type: integer + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/v1.DeleteOptions' + required: false + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.Status' + application/yaml: + schema: + $ref: '#/components/schemas/v1.Status' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.Status' + application/cbor: + schema: + $ref: '#/components/schemas/v1.Status' + description: OK + "401": + content: {} + description: Unauthorized + tags: + - storage_v1 + x-kubernetes-action: deletecollection + x-kubernetes-group-version-kind: + group: storage.k8s.io + kind: CSIStorageCapacity + version: v1 + x-codegen-request-body-name: body + x-contentType: application/json + x-accepts: application/json + get: + description: list or watch objects of kind CSIStorageCapacity + operationId: listNamespacedCSIStorageCapacity + parameters: + - description: object name and auth scope, such as for teams and projects + in: path + name: namespace + required: true + schema: + type: string + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). + in: query + name: pretty + schema: + type: string + - description: 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. + in: query + name: allowWatchBookmarks + schema: + type: boolean + - description: |- + 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. + in: query + name: continue + 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 + - description: A selector to restrict the list of returned objects by their + labels. Defaults to everything. + in: query + name: labelSelector + schema: + type: string + - description: |- + limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. + + The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + in: query + name: limit + schema: + type: integer + - description: |- + resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersion + schema: + type: string + - description: |- + resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersionMatch + schema: + type: string + - description: |- + `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic "Bookmark" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `"k8s.io/initial-events-end": "true"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. + + When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan + is interpreted as "data at least as new as the provided `resourceVersion`" + and the bookmark event is send when the state is synced + to a `resourceVersion` at least as fresh as the one provided by the ListOptions. + If `resourceVersion` is unset, this is interpreted as "consistent read" and the + bookmark event is send when the state is synced at least to the moment + when request started being processed. + - `resourceVersionMatch` set to any other value or unset + Invalid error is returned. + + Defaults to true if `resourceVersion=""` or `resourceVersion="0"` (for backward compatibility reasons) and to false otherwise. + in: query + name: sendInitialEvents + schema: + type: boolean + - description: Timeout for the list/watch call. This limits the duration of + the call, regardless of any activity or inactivity. + in: query + name: timeoutSeconds + schema: + type: integer + - description: Watch for changes to the described resources and return them + as a stream of add, update, and remove notifications. Specify resourceVersion. + in: query + name: watch + schema: + type: boolean + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.CSIStorageCapacityList' + application/yaml: + schema: + $ref: '#/components/schemas/v1.CSIStorageCapacityList' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.CSIStorageCapacityList' + application/cbor: + schema: + $ref: '#/components/schemas/v1.CSIStorageCapacityList' + application/json;stream=watch: + schema: + $ref: '#/components/schemas/v1.CSIStorageCapacityList' + application/vnd.kubernetes.protobuf;stream=watch: + schema: + $ref: '#/components/schemas/v1.CSIStorageCapacityList' + application/cbor-seq: + schema: + $ref: '#/components/schemas/v1.CSIStorageCapacityList' + description: OK + "401": + content: {} + description: Unauthorized + tags: + - storage_v1 + x-kubernetes-action: list + x-kubernetes-group-version-kind: + group: storage.k8s.io + kind: CSIStorageCapacity + version: v1 + x-accepts: application/json + post: + description: create a CSIStorageCapacity + operationId: createNamespacedCSIStorageCapacity + parameters: + - description: object name and auth scope, such as for teams and projects + in: path + name: namespace + required: true + schema: + type: string + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). + in: query + name: pretty + schema: + type: string + - description: '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' + in: query + name: dryRun + schema: + type: string + - description: fieldManager is a name associated with the actor or entity that + is making these changes. The value must be less than or 128 characters long, + and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + in: query + name: fieldManager + schema: + type: string + - description: 'fieldValidation instructs the server on how to handle objects + in the request (POST/PUT/PATCH) containing unknown or duplicate fields. + Valid values are: - Ignore: This will ignore any unknown fields that are + silently dropped from the object, and will ignore all but the last duplicate + field that the decoder encounters. This is the default behavior prior to + v1.23. - Warn: This will send a warning via the standard warning response + header for each unknown field that is dropped from the object, and for each + duplicate field that is encountered. The request will still succeed if there + are no other errors, and will only persist the last of any duplicate fields. + This is the default in v1.23+ - Strict: This will fail the request with + a BadRequest error if any unknown fields would be dropped from the object, + or if any duplicate fields are present. The error returned from the server + will contain all unknown and duplicate fields encountered.' + in: query + name: fieldValidation + schema: + type: string + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/v1.CSIStorageCapacity' + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.CSIStorageCapacity' + application/yaml: + schema: + $ref: '#/components/schemas/v1.CSIStorageCapacity' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.CSIStorageCapacity' + application/cbor: + schema: + $ref: '#/components/schemas/v1.CSIStorageCapacity' + description: OK + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.CSIStorageCapacity' + application/yaml: + schema: + $ref: '#/components/schemas/v1.CSIStorageCapacity' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.CSIStorageCapacity' + application/cbor: + schema: + $ref: '#/components/schemas/v1.CSIStorageCapacity' + description: Created + "202": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.CSIStorageCapacity' + application/yaml: + schema: + $ref: '#/components/schemas/v1.CSIStorageCapacity' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.CSIStorageCapacity' + application/cbor: + schema: + $ref: '#/components/schemas/v1.CSIStorageCapacity' + description: Accepted + "401": + content: {} + description: Unauthorized + tags: + - storage_v1 + x-kubernetes-action: post + x-kubernetes-group-version-kind: + group: storage.k8s.io + kind: CSIStorageCapacity + version: v1 + x-codegen-request-body-name: body + x-contentType: application/json + x-accepts: application/json + /apis/storage.k8s.io/v1/namespaces/{namespace}/csistoragecapacities/{name}: + delete: + description: delete a CSIStorageCapacity + operationId: deleteNamespacedCSIStorageCapacity + parameters: + - description: name of the CSIStorageCapacity + in: path + name: name + required: true + schema: + type: string + - description: object name and auth scope, such as for teams and projects + in: path + name: namespace + required: true + schema: + type: string + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). + in: query + name: pretty + schema: + type: string + - description: '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' + in: query + name: dryRun + schema: + type: string + - description: 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. + in: query + name: gracePeriodSeconds + schema: + type: integer + - description: 'if set to true, it will trigger an unsafe deletion of the resource + in case the normal deletion flow fails with a corrupt object error. A resource + is considered corrupt if it can not be retrieved from the underlying storage + successfully because of a) its data can not be transformed e.g. decryption + failure, or b) it fails to decode into an object. NOTE: unsafe deletion + ignores finalizer constraints, skips precondition checks, and removes the + object from the storage. WARNING: This may potentially break the cluster + if the workload associated with the resource being unsafe-deleted relies + on normal deletion flow. Use only if you REALLY know what you are doing. + The default value is false, and the user must opt in to enable it' + in: query + name: ignoreStoreReadErrorWithClusterBreakingPotential + schema: + type: boolean + - description: '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.' + in: query + name: orphanDependents + schema: + type: boolean + - description: '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.' + in: query + name: propagationPolicy + schema: + type: string + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/v1.DeleteOptions' + required: false + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.Status' + application/yaml: + schema: + $ref: '#/components/schemas/v1.Status' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.Status' + application/cbor: + schema: + $ref: '#/components/schemas/v1.Status' + description: OK + "202": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.Status' + application/yaml: + schema: + $ref: '#/components/schemas/v1.Status' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.Status' + application/cbor: + schema: + $ref: '#/components/schemas/v1.Status' + description: Accepted + "401": + content: {} + description: Unauthorized + tags: + - storage_v1 + x-kubernetes-action: delete + x-kubernetes-group-version-kind: + group: storage.k8s.io + kind: CSIStorageCapacity + version: v1 + x-codegen-request-body-name: body + x-contentType: application/json + x-accepts: application/json + get: + description: read the specified CSIStorageCapacity + operationId: readNamespacedCSIStorageCapacity + parameters: + - description: name of the CSIStorageCapacity + in: path + name: name + required: true + schema: + type: string + - description: object name and auth scope, such as for teams and projects + in: path + name: namespace + required: true + schema: + type: string + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). + in: query + name: pretty + schema: + type: string + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.CSIStorageCapacity' + application/yaml: + schema: + $ref: '#/components/schemas/v1.CSIStorageCapacity' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.CSIStorageCapacity' + application/cbor: + schema: + $ref: '#/components/schemas/v1.CSIStorageCapacity' + description: OK + "401": + content: {} + description: Unauthorized + tags: + - storage_v1 + x-kubernetes-action: get + x-kubernetes-group-version-kind: + group: storage.k8s.io + kind: CSIStorageCapacity + version: v1 + x-accepts: application/json + patch: + description: partially update the specified CSIStorageCapacity + operationId: patchNamespacedCSIStorageCapacity + parameters: + - description: name of the CSIStorageCapacity + in: path + name: name + required: true + schema: + type: string + - description: object name and auth scope, such as for teams and projects + in: path + name: namespace + required: true + schema: + type: string + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). + in: query + name: pretty + schema: + type: string + - description: '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' + in: query + name: dryRun + schema: + type: string + - description: fieldManager is a name associated with the actor or entity that + is making these changes. The value must be less than or 128 characters long, + and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + This field is required for apply requests (application/apply-patch) but + optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). + in: query + name: fieldManager + schema: + type: string + - description: 'fieldValidation instructs the server on how to handle objects + in the request (POST/PUT/PATCH) containing unknown or duplicate fields. + Valid values are: - Ignore: This will ignore any unknown fields that are + silently dropped from the object, and will ignore all but the last duplicate + field that the decoder encounters. This is the default behavior prior to + v1.23. - Warn: This will send a warning via the standard warning response + header for each unknown field that is dropped from the object, and for each + duplicate field that is encountered. The request will still succeed if there + are no other errors, and will only persist the last of any duplicate fields. + This is the default in v1.23+ - Strict: This will fail the request with + a BadRequest error if any unknown fields would be dropped from the object, + or if any duplicate fields are present. The error returned from the server + will contain all unknown and duplicate fields encountered.' + in: query + name: fieldValidation + schema: + type: string + - description: Force is going to "force" Apply requests. It means user will + re-acquire conflicting fields owned by other people. Force flag must be + unset for non-apply patch requests. + in: query + name: force + schema: + type: boolean + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/v1.Patch' + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.CSIStorageCapacity' + application/yaml: + schema: + $ref: '#/components/schemas/v1.CSIStorageCapacity' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.CSIStorageCapacity' + application/cbor: + schema: + $ref: '#/components/schemas/v1.CSIStorageCapacity' + description: OK + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.CSIStorageCapacity' + application/yaml: + schema: + $ref: '#/components/schemas/v1.CSIStorageCapacity' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.CSIStorageCapacity' + application/cbor: + schema: + $ref: '#/components/schemas/v1.CSIStorageCapacity' + description: Created + "401": + content: {} + description: Unauthorized + tags: + - storage_v1 + x-kubernetes-action: patch + x-kubernetes-group-version-kind: + group: storage.k8s.io + kind: CSIStorageCapacity + version: v1 + x-codegen-request-body-name: body + x-contentType: application/json + x-accepts: application/json + put: + description: replace the specified CSIStorageCapacity + operationId: replaceNamespacedCSIStorageCapacity + parameters: + - description: name of the CSIStorageCapacity + in: path + name: name + required: true + schema: + type: string + - description: object name and auth scope, such as for teams and projects + in: path + name: namespace + required: true + schema: + type: string + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). + in: query + name: pretty + schema: + type: string + - description: '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' + in: query + name: dryRun + schema: + type: string + - description: fieldManager is a name associated with the actor or entity that + is making these changes. The value must be less than or 128 characters long, + and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + in: query + name: fieldManager + schema: + type: string + - description: 'fieldValidation instructs the server on how to handle objects + in the request (POST/PUT/PATCH) containing unknown or duplicate fields. + Valid values are: - Ignore: This will ignore any unknown fields that are + silently dropped from the object, and will ignore all but the last duplicate + field that the decoder encounters. This is the default behavior prior to + v1.23. - Warn: This will send a warning via the standard warning response + header for each unknown field that is dropped from the object, and for each + duplicate field that is encountered. The request will still succeed if there + are no other errors, and will only persist the last of any duplicate fields. + This is the default in v1.23+ - Strict: This will fail the request with + a BadRequest error if any unknown fields would be dropped from the object, + or if any duplicate fields are present. The error returned from the server + will contain all unknown and duplicate fields encountered.' + in: query + name: fieldValidation + schema: + type: string + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/v1.CSIStorageCapacity' + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.CSIStorageCapacity' + application/yaml: + schema: + $ref: '#/components/schemas/v1.CSIStorageCapacity' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.CSIStorageCapacity' + application/cbor: + schema: + $ref: '#/components/schemas/v1.CSIStorageCapacity' + description: OK + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.CSIStorageCapacity' + application/yaml: + schema: + $ref: '#/components/schemas/v1.CSIStorageCapacity' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.CSIStorageCapacity' + application/cbor: + schema: + $ref: '#/components/schemas/v1.CSIStorageCapacity' + description: Created + "401": + content: {} + description: Unauthorized + tags: + - storage_v1 + x-kubernetes-action: put + x-kubernetes-group-version-kind: + group: storage.k8s.io + kind: CSIStorageCapacity + version: v1 + x-codegen-request-body-name: body + x-contentType: application/json + x-accepts: application/json + /apis/storage.k8s.io/v1/storageclasses: + delete: + description: delete collection of StorageClass + operationId: deleteCollectionStorageClass + parameters: + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). + in: query + name: pretty + schema: + type: string + - description: |- + 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. + in: query + name: continue + schema: + type: string + - description: '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' + in: query + 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 + - description: 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. + in: query + name: gracePeriodSeconds + schema: + type: integer + - description: 'if set to true, it will trigger an unsafe deletion of the resource + in case the normal deletion flow fails with a corrupt object error. A resource + is considered corrupt if it can not be retrieved from the underlying storage + successfully because of a) its data can not be transformed e.g. decryption + failure, or b) it fails to decode into an object. NOTE: unsafe deletion + ignores finalizer constraints, skips precondition checks, and removes the + object from the storage. WARNING: This may potentially break the cluster + if the workload associated with the resource being unsafe-deleted relies + on normal deletion flow. Use only if you REALLY know what you are doing. + The default value is false, and the user must opt in to enable it' + in: query + name: ignoreStoreReadErrorWithClusterBreakingPotential + schema: + type: boolean + - description: A selector to restrict the list of returned objects by their + labels. Defaults to everything. + in: query + name: labelSelector + schema: + type: string + - description: |- + limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. + + The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + in: query + name: limit + schema: + type: integer + - description: '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.' + in: query + name: orphanDependents + schema: + type: boolean + - description: '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.' + in: query + name: propagationPolicy + schema: + type: string + - description: |- + resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersion + schema: + type: string + - description: |- + resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersionMatch + schema: + type: string + - description: |- + `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic "Bookmark" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `"k8s.io/initial-events-end": "true"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. + + When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan + is interpreted as "data at least as new as the provided `resourceVersion`" + and the bookmark event is send when the state is synced + to a `resourceVersion` at least as fresh as the one provided by the ListOptions. + If `resourceVersion` is unset, this is interpreted as "consistent read" and the + bookmark event is send when the state is synced at least to the moment + when request started being processed. + - `resourceVersionMatch` set to any other value or unset + Invalid error is returned. + + Defaults to true if `resourceVersion=""` or `resourceVersion="0"` (for backward compatibility reasons) and to false otherwise. + in: query + name: sendInitialEvents + schema: + type: boolean + - description: Timeout for the list/watch call. This limits the duration of + the call, regardless of any activity or inactivity. + in: query + name: timeoutSeconds + schema: + type: integer + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/v1.DeleteOptions' + required: false + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.Status' + application/yaml: + schema: + $ref: '#/components/schemas/v1.Status' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.Status' + application/cbor: + schema: + $ref: '#/components/schemas/v1.Status' + description: OK + "401": + content: {} + description: Unauthorized + tags: + - storage_v1 + x-kubernetes-action: deletecollection + x-kubernetes-group-version-kind: + group: storage.k8s.io + kind: StorageClass + version: v1 + x-codegen-request-body-name: body + x-contentType: application/json + x-accepts: application/json + get: + description: list or watch objects of kind StorageClass + operationId: listStorageClass + parameters: + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). + in: query + name: pretty + schema: + type: string + - description: 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. + in: query + name: allowWatchBookmarks + schema: + type: boolean + - description: |- + 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. + in: query + name: continue + 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 + - description: A selector to restrict the list of returned objects by their + labels. Defaults to everything. + in: query + name: labelSelector + schema: + type: string + - description: |- + limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. + + The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + in: query + name: limit + schema: + type: integer + - description: |- + resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersion + schema: + type: string + - description: |- + resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersionMatch + schema: + type: string + - description: |- + `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic "Bookmark" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `"k8s.io/initial-events-end": "true"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. + + When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan + is interpreted as "data at least as new as the provided `resourceVersion`" + and the bookmark event is send when the state is synced + to a `resourceVersion` at least as fresh as the one provided by the ListOptions. + If `resourceVersion` is unset, this is interpreted as "consistent read" and the + bookmark event is send when the state is synced at least to the moment + when request started being processed. + - `resourceVersionMatch` set to any other value or unset + Invalid error is returned. + + Defaults to true if `resourceVersion=""` or `resourceVersion="0"` (for backward compatibility reasons) and to false otherwise. + in: query + name: sendInitialEvents + schema: + type: boolean + - description: Timeout for the list/watch call. This limits the duration of + the call, regardless of any activity or inactivity. + in: query + name: timeoutSeconds + schema: + type: integer + - description: Watch for changes to the described resources and return them + as a stream of add, update, and remove notifications. Specify resourceVersion. + in: query + name: watch + schema: + type: boolean + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.StorageClassList' + application/yaml: + schema: + $ref: '#/components/schemas/v1.StorageClassList' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.StorageClassList' + application/cbor: + schema: + $ref: '#/components/schemas/v1.StorageClassList' + application/json;stream=watch: + schema: + $ref: '#/components/schemas/v1.StorageClassList' + application/vnd.kubernetes.protobuf;stream=watch: + schema: + $ref: '#/components/schemas/v1.StorageClassList' + application/cbor-seq: + schema: + $ref: '#/components/schemas/v1.StorageClassList' + description: OK + "401": + content: {} + description: Unauthorized + tags: + - storage_v1 + x-kubernetes-action: list + x-kubernetes-group-version-kind: + group: storage.k8s.io + kind: StorageClass + version: v1 + x-accepts: application/json + post: + description: create a StorageClass + operationId: createStorageClass + parameters: + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). + in: query + name: pretty + schema: + type: string + - description: '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' + in: query + name: dryRun + schema: + type: string + - description: fieldManager is a name associated with the actor or entity that + is making these changes. The value must be less than or 128 characters long, + and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + in: query + name: fieldManager + schema: + type: string + - description: 'fieldValidation instructs the server on how to handle objects + in the request (POST/PUT/PATCH) containing unknown or duplicate fields. + Valid values are: - Ignore: This will ignore any unknown fields that are + silently dropped from the object, and will ignore all but the last duplicate + field that the decoder encounters. This is the default behavior prior to + v1.23. - Warn: This will send a warning via the standard warning response + header for each unknown field that is dropped from the object, and for each + duplicate field that is encountered. The request will still succeed if there + are no other errors, and will only persist the last of any duplicate fields. + This is the default in v1.23+ - Strict: This will fail the request with + a BadRequest error if any unknown fields would be dropped from the object, + or if any duplicate fields are present. The error returned from the server + will contain all unknown and duplicate fields encountered.' + in: query + name: fieldValidation + schema: + type: string + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/v1.StorageClass' + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.StorageClass' + application/yaml: + schema: + $ref: '#/components/schemas/v1.StorageClass' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.StorageClass' + application/cbor: + schema: + $ref: '#/components/schemas/v1.StorageClass' + description: OK + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.StorageClass' + application/yaml: + schema: + $ref: '#/components/schemas/v1.StorageClass' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.StorageClass' + application/cbor: + schema: + $ref: '#/components/schemas/v1.StorageClass' + description: Created + "202": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.StorageClass' + application/yaml: + schema: + $ref: '#/components/schemas/v1.StorageClass' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.StorageClass' + application/cbor: + schema: + $ref: '#/components/schemas/v1.StorageClass' + description: Accepted + "401": + content: {} + description: Unauthorized + tags: + - storage_v1 + x-kubernetes-action: post + x-kubernetes-group-version-kind: + group: storage.k8s.io + kind: StorageClass + version: v1 + x-codegen-request-body-name: body + x-contentType: application/json + x-accepts: application/json + /apis/storage.k8s.io/v1/storageclasses/{name}: + delete: + description: delete a StorageClass + operationId: deleteStorageClass + parameters: + - description: name of the StorageClass + in: path + name: name + required: true + schema: + type: string + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). + in: query + name: pretty + schema: + type: string + - description: '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' + in: query + name: dryRun + schema: + type: string + - description: 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. + in: query + name: gracePeriodSeconds + schema: + type: integer + - description: 'if set to true, it will trigger an unsafe deletion of the resource + in case the normal deletion flow fails with a corrupt object error. A resource + is considered corrupt if it can not be retrieved from the underlying storage + successfully because of a) its data can not be transformed e.g. decryption + failure, or b) it fails to decode into an object. NOTE: unsafe deletion + ignores finalizer constraints, skips precondition checks, and removes the + object from the storage. WARNING: This may potentially break the cluster + if the workload associated with the resource being unsafe-deleted relies + on normal deletion flow. Use only if you REALLY know what you are doing. + The default value is false, and the user must opt in to enable it' + in: query + name: ignoreStoreReadErrorWithClusterBreakingPotential + schema: + type: boolean + - description: '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.' + in: query + name: orphanDependents + schema: + type: boolean + - description: '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.' + in: query + name: propagationPolicy + schema: + type: string + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/v1.DeleteOptions' + required: false + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.StorageClass' + application/yaml: + schema: + $ref: '#/components/schemas/v1.StorageClass' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.StorageClass' + application/cbor: + schema: + $ref: '#/components/schemas/v1.StorageClass' + description: OK + "202": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.StorageClass' + application/yaml: + schema: + $ref: '#/components/schemas/v1.StorageClass' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.StorageClass' + application/cbor: + schema: + $ref: '#/components/schemas/v1.StorageClass' + description: Accepted + "401": + content: {} + description: Unauthorized + tags: + - storage_v1 + x-kubernetes-action: delete + x-kubernetes-group-version-kind: + group: storage.k8s.io + kind: StorageClass + version: v1 + x-codegen-request-body-name: body + x-contentType: application/json + x-accepts: application/json + get: + description: read the specified StorageClass + operationId: readStorageClass + parameters: + - description: name of the StorageClass + in: path + name: name + required: true + schema: + type: string + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). + in: query + name: pretty + schema: + type: string + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.StorageClass' + application/yaml: + schema: + $ref: '#/components/schemas/v1.StorageClass' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.StorageClass' + application/cbor: + schema: + $ref: '#/components/schemas/v1.StorageClass' + description: OK + "401": + content: {} + description: Unauthorized + tags: + - storage_v1 + x-kubernetes-action: get + x-kubernetes-group-version-kind: + group: storage.k8s.io + kind: StorageClass + version: v1 + x-accepts: application/json + patch: + description: partially update the specified StorageClass + operationId: patchStorageClass + parameters: + - description: name of the StorageClass + in: path + name: name + required: true + schema: + type: string + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). + in: query + name: pretty + schema: + type: string + - description: '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' + in: query + name: dryRun + schema: + type: string + - description: fieldManager is a name associated with the actor or entity that + is making these changes. The value must be less than or 128 characters long, + and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + This field is required for apply requests (application/apply-patch) but + optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). + in: query + name: fieldManager + schema: + type: string + - description: 'fieldValidation instructs the server on how to handle objects + in the request (POST/PUT/PATCH) containing unknown or duplicate fields. + Valid values are: - Ignore: This will ignore any unknown fields that are + silently dropped from the object, and will ignore all but the last duplicate + field that the decoder encounters. This is the default behavior prior to + v1.23. - Warn: This will send a warning via the standard warning response + header for each unknown field that is dropped from the object, and for each + duplicate field that is encountered. The request will still succeed if there + are no other errors, and will only persist the last of any duplicate fields. + This is the default in v1.23+ - Strict: This will fail the request with + a BadRequest error if any unknown fields would be dropped from the object, + or if any duplicate fields are present. The error returned from the server + will contain all unknown and duplicate fields encountered.' + in: query + name: fieldValidation + schema: + type: string + - description: Force is going to "force" Apply requests. It means user will + re-acquire conflicting fields owned by other people. Force flag must be + unset for non-apply patch requests. + in: query + name: force + schema: + type: boolean + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/v1.Patch' + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.StorageClass' + application/yaml: + schema: + $ref: '#/components/schemas/v1.StorageClass' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.StorageClass' + application/cbor: + schema: + $ref: '#/components/schemas/v1.StorageClass' + description: OK + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.StorageClass' + application/yaml: + schema: + $ref: '#/components/schemas/v1.StorageClass' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.StorageClass' + application/cbor: + schema: + $ref: '#/components/schemas/v1.StorageClass' + description: Created + "401": + content: {} + description: Unauthorized + tags: + - storage_v1 + x-kubernetes-action: patch + x-kubernetes-group-version-kind: + group: storage.k8s.io + kind: StorageClass + version: v1 + x-codegen-request-body-name: body + x-contentType: application/json + x-accepts: application/json + put: + description: replace the specified StorageClass + operationId: replaceStorageClass + parameters: + - description: name of the StorageClass + in: path + name: name + required: true + schema: + type: string + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). + in: query + name: pretty + schema: + type: string + - description: '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' + in: query + name: dryRun + schema: + type: string + - description: fieldManager is a name associated with the actor or entity that + is making these changes. The value must be less than or 128 characters long, + and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + in: query + name: fieldManager + schema: + type: string + - description: 'fieldValidation instructs the server on how to handle objects + in the request (POST/PUT/PATCH) containing unknown or duplicate fields. + Valid values are: - Ignore: This will ignore any unknown fields that are + silently dropped from the object, and will ignore all but the last duplicate + field that the decoder encounters. This is the default behavior prior to + v1.23. - Warn: This will send a warning via the standard warning response + header for each unknown field that is dropped from the object, and for each + duplicate field that is encountered. The request will still succeed if there + are no other errors, and will only persist the last of any duplicate fields. + This is the default in v1.23+ - Strict: This will fail the request with + a BadRequest error if any unknown fields would be dropped from the object, + or if any duplicate fields are present. The error returned from the server + will contain all unknown and duplicate fields encountered.' + in: query + name: fieldValidation + schema: + type: string + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/v1.StorageClass' + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.StorageClass' + application/yaml: + schema: + $ref: '#/components/schemas/v1.StorageClass' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.StorageClass' + application/cbor: + schema: + $ref: '#/components/schemas/v1.StorageClass' + description: OK + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.StorageClass' + application/yaml: + schema: + $ref: '#/components/schemas/v1.StorageClass' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.StorageClass' + application/cbor: + schema: + $ref: '#/components/schemas/v1.StorageClass' + description: Created + "401": + content: {} + description: Unauthorized + tags: + - storage_v1 + x-kubernetes-action: put + x-kubernetes-group-version-kind: + group: storage.k8s.io + kind: StorageClass + version: v1 + x-codegen-request-body-name: body + x-contentType: application/json + x-accepts: application/json + /apis/storage.k8s.io/v1/volumeattachments: + delete: + description: delete collection of VolumeAttachment + operationId: deleteCollectionVolumeAttachment + parameters: + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). + in: query + name: pretty + schema: + type: string + - description: |- + 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. + in: query + name: continue + schema: + type: string + - description: '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' + in: query + 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 + - description: 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. + in: query + name: gracePeriodSeconds + schema: + type: integer + - description: 'if set to true, it will trigger an unsafe deletion of the resource + in case the normal deletion flow fails with a corrupt object error. A resource + is considered corrupt if it can not be retrieved from the underlying storage + successfully because of a) its data can not be transformed e.g. decryption + failure, or b) it fails to decode into an object. NOTE: unsafe deletion + ignores finalizer constraints, skips precondition checks, and removes the + object from the storage. WARNING: This may potentially break the cluster + if the workload associated with the resource being unsafe-deleted relies + on normal deletion flow. Use only if you REALLY know what you are doing. + The default value is false, and the user must opt in to enable it' + in: query + name: ignoreStoreReadErrorWithClusterBreakingPotential + schema: + type: boolean + - description: A selector to restrict the list of returned objects by their + labels. Defaults to everything. + in: query + name: labelSelector + schema: + type: string + - description: |- + limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. + + The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + in: query + name: limit + schema: + type: integer + - description: '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.' + in: query + name: orphanDependents + schema: + type: boolean + - description: '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.' + in: query + name: propagationPolicy + schema: + type: string + - description: |- + resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersion + schema: + type: string + - description: |- + resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersionMatch + schema: + type: string + - description: |- + `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic "Bookmark" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `"k8s.io/initial-events-end": "true"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. + + When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan + is interpreted as "data at least as new as the provided `resourceVersion`" + and the bookmark event is send when the state is synced + to a `resourceVersion` at least as fresh as the one provided by the ListOptions. + If `resourceVersion` is unset, this is interpreted as "consistent read" and the + bookmark event is send when the state is synced at least to the moment + when request started being processed. + - `resourceVersionMatch` set to any other value or unset + Invalid error is returned. + + Defaults to true if `resourceVersion=""` or `resourceVersion="0"` (for backward compatibility reasons) and to false otherwise. + in: query + name: sendInitialEvents + schema: + type: boolean + - description: Timeout for the list/watch call. This limits the duration of + the call, regardless of any activity or inactivity. + in: query + name: timeoutSeconds + schema: + type: integer + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/v1.DeleteOptions' + required: false + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.Status' + application/yaml: + schema: + $ref: '#/components/schemas/v1.Status' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.Status' + application/cbor: + schema: + $ref: '#/components/schemas/v1.Status' + description: OK + "401": + content: {} + description: Unauthorized + tags: + - storage_v1 + x-kubernetes-action: deletecollection + x-kubernetes-group-version-kind: + group: storage.k8s.io + kind: VolumeAttachment + version: v1 + x-codegen-request-body-name: body + x-contentType: application/json + x-accepts: application/json + get: + description: list or watch objects of kind VolumeAttachment + operationId: listVolumeAttachment + parameters: + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). + in: query + name: pretty + schema: + type: string + - description: 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. + in: query + name: allowWatchBookmarks + schema: + type: boolean + - description: |- + 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. + in: query + name: continue + 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 + - description: A selector to restrict the list of returned objects by their + labels. Defaults to everything. + in: query + name: labelSelector + schema: + type: string + - description: |- + limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. + + The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + in: query + name: limit + schema: + type: integer + - description: |- + resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersion + schema: + type: string + - description: |- + resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersionMatch + schema: + type: string + - description: |- + `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic "Bookmark" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `"k8s.io/initial-events-end": "true"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. + + When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan + is interpreted as "data at least as new as the provided `resourceVersion`" + and the bookmark event is send when the state is synced + to a `resourceVersion` at least as fresh as the one provided by the ListOptions. + If `resourceVersion` is unset, this is interpreted as "consistent read" and the + bookmark event is send when the state is synced at least to the moment + when request started being processed. + - `resourceVersionMatch` set to any other value or unset + Invalid error is returned. + + Defaults to true if `resourceVersion=""` or `resourceVersion="0"` (for backward compatibility reasons) and to false otherwise. + in: query + name: sendInitialEvents + schema: + type: boolean + - description: Timeout for the list/watch call. This limits the duration of + the call, regardless of any activity or inactivity. + in: query + name: timeoutSeconds + schema: + type: integer + - description: Watch for changes to the described resources and return them + as a stream of add, update, and remove notifications. Specify resourceVersion. + in: query + name: watch + schema: + type: boolean + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.VolumeAttachmentList' + application/yaml: + schema: + $ref: '#/components/schemas/v1.VolumeAttachmentList' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.VolumeAttachmentList' + application/cbor: + schema: + $ref: '#/components/schemas/v1.VolumeAttachmentList' + application/json;stream=watch: + schema: + $ref: '#/components/schemas/v1.VolumeAttachmentList' + application/vnd.kubernetes.protobuf;stream=watch: + schema: + $ref: '#/components/schemas/v1.VolumeAttachmentList' + application/cbor-seq: + schema: + $ref: '#/components/schemas/v1.VolumeAttachmentList' + description: OK + "401": + content: {} + description: Unauthorized + tags: + - storage_v1 + x-kubernetes-action: list + x-kubernetes-group-version-kind: + group: storage.k8s.io + kind: VolumeAttachment + version: v1 + x-accepts: application/json + post: + description: create a VolumeAttachment + operationId: createVolumeAttachment + parameters: + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). + in: query + name: pretty + schema: + type: string + - description: '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' + in: query + name: dryRun + schema: + type: string + - description: fieldManager is a name associated with the actor or entity that + is making these changes. The value must be less than or 128 characters long, + and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + in: query + name: fieldManager + schema: + type: string + - description: 'fieldValidation instructs the server on how to handle objects + in the request (POST/PUT/PATCH) containing unknown or duplicate fields. + Valid values are: - Ignore: This will ignore any unknown fields that are + silently dropped from the object, and will ignore all but the last duplicate + field that the decoder encounters. This is the default behavior prior to + v1.23. - Warn: This will send a warning via the standard warning response + header for each unknown field that is dropped from the object, and for each + duplicate field that is encountered. The request will still succeed if there + are no other errors, and will only persist the last of any duplicate fields. + This is the default in v1.23+ - Strict: This will fail the request with + a BadRequest error if any unknown fields would be dropped from the object, + or if any duplicate fields are present. The error returned from the server + will contain all unknown and duplicate fields encountered.' + in: query + name: fieldValidation + schema: + type: string + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/v1.VolumeAttachment' + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.VolumeAttachment' + application/yaml: + schema: + $ref: '#/components/schemas/v1.VolumeAttachment' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.VolumeAttachment' + application/cbor: + schema: + $ref: '#/components/schemas/v1.VolumeAttachment' + description: OK + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.VolumeAttachment' + application/yaml: + schema: + $ref: '#/components/schemas/v1.VolumeAttachment' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.VolumeAttachment' + application/cbor: + schema: + $ref: '#/components/schemas/v1.VolumeAttachment' + description: Created + "202": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.VolumeAttachment' + application/yaml: + schema: + $ref: '#/components/schemas/v1.VolumeAttachment' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.VolumeAttachment' + application/cbor: + schema: + $ref: '#/components/schemas/v1.VolumeAttachment' + description: Accepted + "401": + content: {} + description: Unauthorized + tags: + - storage_v1 + x-kubernetes-action: post + x-kubernetes-group-version-kind: + group: storage.k8s.io + kind: VolumeAttachment + version: v1 + x-codegen-request-body-name: body + x-contentType: application/json + x-accepts: application/json + /apis/storage.k8s.io/v1/volumeattachments/{name}: + delete: + description: delete a VolumeAttachment + operationId: deleteVolumeAttachment + parameters: + - description: name of the VolumeAttachment + in: path + name: name + required: true + schema: + type: string + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). + in: query + name: pretty + schema: + type: string + - description: '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' + in: query + name: dryRun + schema: + type: string + - description: 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. + in: query + name: gracePeriodSeconds + schema: + type: integer + - description: 'if set to true, it will trigger an unsafe deletion of the resource + in case the normal deletion flow fails with a corrupt object error. A resource + is considered corrupt if it can not be retrieved from the underlying storage + successfully because of a) its data can not be transformed e.g. decryption + failure, or b) it fails to decode into an object. NOTE: unsafe deletion + ignores finalizer constraints, skips precondition checks, and removes the + object from the storage. WARNING: This may potentially break the cluster + if the workload associated with the resource being unsafe-deleted relies + on normal deletion flow. Use only if you REALLY know what you are doing. + The default value is false, and the user must opt in to enable it' + in: query + name: ignoreStoreReadErrorWithClusterBreakingPotential + schema: + type: boolean + - description: '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.' + in: query + name: orphanDependents + schema: + type: boolean + - description: '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.' + in: query + name: propagationPolicy + schema: + type: string + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/v1.DeleteOptions' + required: false + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.VolumeAttachment' + application/yaml: + schema: + $ref: '#/components/schemas/v1.VolumeAttachment' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.VolumeAttachment' + application/cbor: + schema: + $ref: '#/components/schemas/v1.VolumeAttachment' + description: OK + "202": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.VolumeAttachment' + application/yaml: + schema: + $ref: '#/components/schemas/v1.VolumeAttachment' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.VolumeAttachment' + application/cbor: + schema: + $ref: '#/components/schemas/v1.VolumeAttachment' + description: Accepted + "401": + content: {} + description: Unauthorized + tags: + - storage_v1 + x-kubernetes-action: delete + x-kubernetes-group-version-kind: + group: storage.k8s.io + kind: VolumeAttachment + version: v1 + x-codegen-request-body-name: body + x-contentType: application/json + x-accepts: application/json + get: + description: read the specified VolumeAttachment + operationId: readVolumeAttachment + parameters: + - description: name of the VolumeAttachment + in: path + name: name + required: true + schema: + type: string + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). + in: query + name: pretty + schema: + type: string + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.VolumeAttachment' + application/yaml: + schema: + $ref: '#/components/schemas/v1.VolumeAttachment' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.VolumeAttachment' + application/cbor: + schema: + $ref: '#/components/schemas/v1.VolumeAttachment' + description: OK + "401": + content: {} + description: Unauthorized + tags: + - storage_v1 + x-kubernetes-action: get + x-kubernetes-group-version-kind: + group: storage.k8s.io + kind: VolumeAttachment + version: v1 + x-accepts: application/json + patch: + description: partially update the specified VolumeAttachment + operationId: patchVolumeAttachment + parameters: + - description: name of the VolumeAttachment + in: path + name: name + required: true + schema: + type: string + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). + in: query + name: pretty + schema: + type: string + - description: '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' + in: query + name: dryRun + schema: + type: string + - description: fieldManager is a name associated with the actor or entity that + is making these changes. The value must be less than or 128 characters long, + and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + This field is required for apply requests (application/apply-patch) but + optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). + in: query + name: fieldManager + schema: + type: string + - description: 'fieldValidation instructs the server on how to handle objects + in the request (POST/PUT/PATCH) containing unknown or duplicate fields. + Valid values are: - Ignore: This will ignore any unknown fields that are + silently dropped from the object, and will ignore all but the last duplicate + field that the decoder encounters. This is the default behavior prior to + v1.23. - Warn: This will send a warning via the standard warning response + header for each unknown field that is dropped from the object, and for each + duplicate field that is encountered. The request will still succeed if there + are no other errors, and will only persist the last of any duplicate fields. + This is the default in v1.23+ - Strict: This will fail the request with + a BadRequest error if any unknown fields would be dropped from the object, + or if any duplicate fields are present. The error returned from the server + will contain all unknown and duplicate fields encountered.' + in: query + name: fieldValidation + schema: + type: string + - description: Force is going to "force" Apply requests. It means user will + re-acquire conflicting fields owned by other people. Force flag must be + unset for non-apply patch requests. + in: query + name: force + schema: + type: boolean + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/v1.Patch' + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.VolumeAttachment' + application/yaml: + schema: + $ref: '#/components/schemas/v1.VolumeAttachment' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.VolumeAttachment' + application/cbor: + schema: + $ref: '#/components/schemas/v1.VolumeAttachment' + description: OK + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.VolumeAttachment' + application/yaml: + schema: + $ref: '#/components/schemas/v1.VolumeAttachment' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.VolumeAttachment' + application/cbor: + schema: + $ref: '#/components/schemas/v1.VolumeAttachment' + description: Created + "401": + content: {} + description: Unauthorized + tags: + - storage_v1 + x-kubernetes-action: patch + x-kubernetes-group-version-kind: + group: storage.k8s.io + kind: VolumeAttachment + version: v1 + x-codegen-request-body-name: body + x-contentType: application/json + x-accepts: application/json + put: + description: replace the specified VolumeAttachment + operationId: replaceVolumeAttachment + parameters: + - description: name of the VolumeAttachment + in: path + name: name + required: true + schema: + type: string + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). + in: query + name: pretty + schema: + type: string + - description: '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' + in: query + name: dryRun + schema: + type: string + - description: fieldManager is a name associated with the actor or entity that + is making these changes. The value must be less than or 128 characters long, + and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + in: query + name: fieldManager + schema: + type: string + - description: 'fieldValidation instructs the server on how to handle objects + in the request (POST/PUT/PATCH) containing unknown or duplicate fields. + Valid values are: - Ignore: This will ignore any unknown fields that are + silently dropped from the object, and will ignore all but the last duplicate + field that the decoder encounters. This is the default behavior prior to + v1.23. - Warn: This will send a warning via the standard warning response + header for each unknown field that is dropped from the object, and for each + duplicate field that is encountered. The request will still succeed if there + are no other errors, and will only persist the last of any duplicate fields. + This is the default in v1.23+ - Strict: This will fail the request with + a BadRequest error if any unknown fields would be dropped from the object, + or if any duplicate fields are present. The error returned from the server + will contain all unknown and duplicate fields encountered.' + in: query + name: fieldValidation + schema: + type: string + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/v1.VolumeAttachment' + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.VolumeAttachment' + application/yaml: + schema: + $ref: '#/components/schemas/v1.VolumeAttachment' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.VolumeAttachment' + application/cbor: + schema: + $ref: '#/components/schemas/v1.VolumeAttachment' + description: OK + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.VolumeAttachment' + application/yaml: + schema: + $ref: '#/components/schemas/v1.VolumeAttachment' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.VolumeAttachment' + application/cbor: + schema: + $ref: '#/components/schemas/v1.VolumeAttachment' + description: Created + "401": + content: {} + description: Unauthorized + tags: + - storage_v1 + x-kubernetes-action: put + x-kubernetes-group-version-kind: + group: storage.k8s.io + kind: VolumeAttachment + version: v1 + x-codegen-request-body-name: body + x-contentType: application/json + x-accepts: application/json + /apis/storage.k8s.io/v1/volumeattachments/{name}/status: + get: + description: read status of the specified VolumeAttachment + operationId: readVolumeAttachmentStatus + parameters: + - description: name of the VolumeAttachment + in: path + name: name + required: true + schema: + type: string + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). + in: query + name: pretty + schema: + type: string + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.VolumeAttachment' + application/yaml: + schema: + $ref: '#/components/schemas/v1.VolumeAttachment' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.VolumeAttachment' + application/cbor: + schema: + $ref: '#/components/schemas/v1.VolumeAttachment' + description: OK + "401": + content: {} + description: Unauthorized + tags: + - storage_v1 + x-kubernetes-action: get + x-kubernetes-group-version-kind: + group: storage.k8s.io + kind: VolumeAttachment + version: v1 + x-accepts: application/json + patch: + description: partially update status of the specified VolumeAttachment + operationId: patchVolumeAttachmentStatus + parameters: + - description: name of the VolumeAttachment + in: path + name: name + required: true + schema: + type: string + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). + in: query + name: pretty + schema: + type: string + - description: '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' + in: query + name: dryRun + schema: + type: string + - description: fieldManager is a name associated with the actor or entity that + is making these changes. The value must be less than or 128 characters long, + and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + This field is required for apply requests (application/apply-patch) but + optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). + in: query + name: fieldManager + schema: + type: string + - description: 'fieldValidation instructs the server on how to handle objects + in the request (POST/PUT/PATCH) containing unknown or duplicate fields. + Valid values are: - Ignore: This will ignore any unknown fields that are + silently dropped from the object, and will ignore all but the last duplicate + field that the decoder encounters. This is the default behavior prior to + v1.23. - Warn: This will send a warning via the standard warning response + header for each unknown field that is dropped from the object, and for each + duplicate field that is encountered. The request will still succeed if there + are no other errors, and will only persist the last of any duplicate fields. + This is the default in v1.23+ - Strict: This will fail the request with + a BadRequest error if any unknown fields would be dropped from the object, + or if any duplicate fields are present. The error returned from the server + will contain all unknown and duplicate fields encountered.' + in: query + name: fieldValidation + schema: + type: string + - description: Force is going to "force" Apply requests. It means user will + re-acquire conflicting fields owned by other people. Force flag must be + unset for non-apply patch requests. + in: query + name: force + schema: + type: boolean + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/v1.Patch' + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.VolumeAttachment' + application/yaml: + schema: + $ref: '#/components/schemas/v1.VolumeAttachment' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.VolumeAttachment' + application/cbor: + schema: + $ref: '#/components/schemas/v1.VolumeAttachment' + description: OK + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.VolumeAttachment' + application/yaml: + schema: + $ref: '#/components/schemas/v1.VolumeAttachment' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.VolumeAttachment' + application/cbor: + schema: + $ref: '#/components/schemas/v1.VolumeAttachment' + description: Created + "401": + content: {} + description: Unauthorized + tags: + - storage_v1 + x-kubernetes-action: patch + x-kubernetes-group-version-kind: + group: storage.k8s.io + kind: VolumeAttachment + version: v1 + x-codegen-request-body-name: body + x-contentType: application/json + x-accepts: application/json + put: + description: replace status of the specified VolumeAttachment + operationId: replaceVolumeAttachmentStatus + parameters: + - description: name of the VolumeAttachment + in: path + name: name + required: true + schema: + type: string + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). + in: query + name: pretty + schema: + type: string + - description: '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' + in: query + name: dryRun + schema: + type: string + - description: fieldManager is a name associated with the actor or entity that + is making these changes. The value must be less than or 128 characters long, + and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + in: query + name: fieldManager + schema: + type: string + - description: 'fieldValidation instructs the server on how to handle objects + in the request (POST/PUT/PATCH) containing unknown or duplicate fields. + Valid values are: - Ignore: This will ignore any unknown fields that are + silently dropped from the object, and will ignore all but the last duplicate + field that the decoder encounters. This is the default behavior prior to + v1.23. - Warn: This will send a warning via the standard warning response + header for each unknown field that is dropped from the object, and for each + duplicate field that is encountered. The request will still succeed if there + are no other errors, and will only persist the last of any duplicate fields. + This is the default in v1.23+ - Strict: This will fail the request with + a BadRequest error if any unknown fields would be dropped from the object, + or if any duplicate fields are present. The error returned from the server + will contain all unknown and duplicate fields encountered.' + in: query + name: fieldValidation + schema: + type: string + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/v1.VolumeAttachment' + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.VolumeAttachment' + application/yaml: + schema: + $ref: '#/components/schemas/v1.VolumeAttachment' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.VolumeAttachment' + application/cbor: + schema: + $ref: '#/components/schemas/v1.VolumeAttachment' + description: OK + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.VolumeAttachment' + application/yaml: + schema: + $ref: '#/components/schemas/v1.VolumeAttachment' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.VolumeAttachment' + application/cbor: + schema: + $ref: '#/components/schemas/v1.VolumeAttachment' + description: Created + "401": + content: {} + description: Unauthorized + tags: + - storage_v1 + x-kubernetes-action: put + x-kubernetes-group-version-kind: + group: storage.k8s.io + kind: VolumeAttachment + version: v1 + x-codegen-request-body-name: body + x-contentType: application/json + x-accepts: application/json + /apis/storage.k8s.io/v1/watch/csidrivers: {} + /apis/storage.k8s.io/v1/watch/csidrivers/{name}: {} + /apis/storage.k8s.io/v1/watch/csinodes: {} + /apis/storage.k8s.io/v1/watch/csinodes/{name}: {} + /apis/storage.k8s.io/v1/watch/csistoragecapacities: {} + /apis/storage.k8s.io/v1/watch/namespaces/{namespace}/csistoragecapacities: {} + /apis/storage.k8s.io/v1/watch/namespaces/{namespace}/csistoragecapacities/{name}: {} + /apis/storage.k8s.io/v1/watch/storageclasses: {} + /apis/storage.k8s.io/v1/watch/storageclasses/{name}: {} + /apis/storage.k8s.io/v1/watch/volumeattachments: {} + /apis/storage.k8s.io/v1/watch/volumeattachments/{name}: {} + /apis/storage.k8s.io/v1alpha1/: + get: + description: get available resources + operationId: getAPIResources + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.APIResourceList' + application/yaml: + schema: + $ref: '#/components/schemas/v1.APIResourceList' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.APIResourceList' + application/cbor: + schema: + $ref: '#/components/schemas/v1.APIResourceList' + description: OK + "401": + content: {} + description: Unauthorized + tags: + - storage_v1alpha1 + x-accepts: application/json + /apis/storage.k8s.io/v1alpha1/volumeattributesclasses: + delete: + description: delete collection of VolumeAttributesClass + operationId: deleteCollectionVolumeAttributesClass + parameters: + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). + in: query + name: pretty + schema: + type: string + - description: |- + 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. + in: query + name: continue + schema: + type: string + - description: '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' + in: query + 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 + - description: 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. + in: query + name: gracePeriodSeconds + schema: + type: integer + - description: 'if set to true, it will trigger an unsafe deletion of the resource + in case the normal deletion flow fails with a corrupt object error. A resource + is considered corrupt if it can not be retrieved from the underlying storage + successfully because of a) its data can not be transformed e.g. decryption + failure, or b) it fails to decode into an object. NOTE: unsafe deletion + ignores finalizer constraints, skips precondition checks, and removes the + object from the storage. WARNING: This may potentially break the cluster + if the workload associated with the resource being unsafe-deleted relies + on normal deletion flow. Use only if you REALLY know what you are doing. + The default value is false, and the user must opt in to enable it' + in: query + name: ignoreStoreReadErrorWithClusterBreakingPotential + schema: + type: boolean + - description: A selector to restrict the list of returned objects by their + labels. Defaults to everything. + in: query + name: labelSelector + schema: + type: string + - description: |- + limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. + + The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + in: query + name: limit + schema: + type: integer + - description: '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.' + in: query + name: orphanDependents + schema: + type: boolean + - description: '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.' + in: query + name: propagationPolicy + schema: + type: string + - description: |- + resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersion + schema: + type: string + - description: |- + resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersionMatch + schema: + type: string + - description: |- + `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic "Bookmark" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `"k8s.io/initial-events-end": "true"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. + + When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan + is interpreted as "data at least as new as the provided `resourceVersion`" + and the bookmark event is send when the state is synced + to a `resourceVersion` at least as fresh as the one provided by the ListOptions. + If `resourceVersion` is unset, this is interpreted as "consistent read" and the + bookmark event is send when the state is synced at least to the moment + when request started being processed. + - `resourceVersionMatch` set to any other value or unset + Invalid error is returned. + + Defaults to true if `resourceVersion=""` or `resourceVersion="0"` (for backward compatibility reasons) and to false otherwise. + in: query + name: sendInitialEvents + schema: + type: boolean + - description: Timeout for the list/watch call. This limits the duration of + the call, regardless of any activity or inactivity. + in: query + name: timeoutSeconds + schema: + type: integer + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/v1.DeleteOptions' + required: false + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.Status' + application/yaml: + schema: + $ref: '#/components/schemas/v1.Status' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.Status' + application/cbor: + schema: + $ref: '#/components/schemas/v1.Status' + description: OK + "401": + content: {} + description: Unauthorized + tags: + - storage_v1alpha1 + x-kubernetes-action: deletecollection + x-kubernetes-group-version-kind: + group: storage.k8s.io + kind: VolumeAttributesClass + version: v1alpha1 + x-codegen-request-body-name: body + x-contentType: application/json + x-accepts: application/json + get: + description: list or watch objects of kind VolumeAttributesClass + operationId: listVolumeAttributesClass + parameters: + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). + in: query + name: pretty + schema: + type: string + - description: 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. + in: query + name: allowWatchBookmarks + schema: + type: boolean + - description: |- + 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. + in: query + name: continue + 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 + - description: A selector to restrict the list of returned objects by their + labels. Defaults to everything. + in: query + name: labelSelector + schema: + type: string + - description: |- + limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. + + The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + in: query + name: limit + schema: + type: integer + - description: |- + resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersion + schema: + type: string + - description: |- + resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersionMatch + schema: + type: string + - description: |- + `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic "Bookmark" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `"k8s.io/initial-events-end": "true"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. + + When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan + is interpreted as "data at least as new as the provided `resourceVersion`" + and the bookmark event is send when the state is synced + to a `resourceVersion` at least as fresh as the one provided by the ListOptions. + If `resourceVersion` is unset, this is interpreted as "consistent read" and the + bookmark event is send when the state is synced at least to the moment + when request started being processed. + - `resourceVersionMatch` set to any other value or unset + Invalid error is returned. + + Defaults to true if `resourceVersion=""` or `resourceVersion="0"` (for backward compatibility reasons) and to false otherwise. + in: query + name: sendInitialEvents + schema: + type: boolean + - description: Timeout for the list/watch call. This limits the duration of + the call, regardless of any activity or inactivity. + in: query + name: timeoutSeconds + schema: + type: integer + - description: Watch for changes to the described resources and return them + as a stream of add, update, and remove notifications. Specify resourceVersion. + in: query + name: watch + schema: + type: boolean + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1alpha1.VolumeAttributesClassList' + application/yaml: + schema: + $ref: '#/components/schemas/v1alpha1.VolumeAttributesClassList' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1alpha1.VolumeAttributesClassList' + application/cbor: + schema: + $ref: '#/components/schemas/v1alpha1.VolumeAttributesClassList' + application/json;stream=watch: + schema: + $ref: '#/components/schemas/v1alpha1.VolumeAttributesClassList' + application/vnd.kubernetes.protobuf;stream=watch: + schema: + $ref: '#/components/schemas/v1alpha1.VolumeAttributesClassList' + application/cbor-seq: + schema: + $ref: '#/components/schemas/v1alpha1.VolumeAttributesClassList' + description: OK + "401": + content: {} + description: Unauthorized + tags: + - storage_v1alpha1 + x-kubernetes-action: list + x-kubernetes-group-version-kind: + group: storage.k8s.io + kind: VolumeAttributesClass + version: v1alpha1 + x-accepts: application/json + post: + description: create a VolumeAttributesClass + operationId: createVolumeAttributesClass + parameters: + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). + in: query + name: pretty + schema: + type: string + - description: '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' + in: query + name: dryRun + schema: + type: string + - description: fieldManager is a name associated with the actor or entity that + is making these changes. The value must be less than or 128 characters long, + and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + in: query + name: fieldManager + schema: + type: string + - description: 'fieldValidation instructs the server on how to handle objects + in the request (POST/PUT/PATCH) containing unknown or duplicate fields. + Valid values are: - Ignore: This will ignore any unknown fields that are + silently dropped from the object, and will ignore all but the last duplicate + field that the decoder encounters. This is the default behavior prior to + v1.23. - Warn: This will send a warning via the standard warning response + header for each unknown field that is dropped from the object, and for each + duplicate field that is encountered. The request will still succeed if there + are no other errors, and will only persist the last of any duplicate fields. + This is the default in v1.23+ - Strict: This will fail the request with + a BadRequest error if any unknown fields would be dropped from the object, + or if any duplicate fields are present. The error returned from the server + will contain all unknown and duplicate fields encountered.' + in: query + name: fieldValidation + schema: + type: string + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/v1alpha1.VolumeAttributesClass' + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1alpha1.VolumeAttributesClass' + application/yaml: + schema: + $ref: '#/components/schemas/v1alpha1.VolumeAttributesClass' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1alpha1.VolumeAttributesClass' + application/cbor: + schema: + $ref: '#/components/schemas/v1alpha1.VolumeAttributesClass' + description: OK + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/v1alpha1.VolumeAttributesClass' + application/yaml: + schema: + $ref: '#/components/schemas/v1alpha1.VolumeAttributesClass' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1alpha1.VolumeAttributesClass' + application/cbor: + schema: + $ref: '#/components/schemas/v1alpha1.VolumeAttributesClass' + description: Created + "202": + content: + application/json: + schema: + $ref: '#/components/schemas/v1alpha1.VolumeAttributesClass' + application/yaml: + schema: + $ref: '#/components/schemas/v1alpha1.VolumeAttributesClass' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1alpha1.VolumeAttributesClass' + application/cbor: + schema: + $ref: '#/components/schemas/v1alpha1.VolumeAttributesClass' + description: Accepted + "401": + content: {} + description: Unauthorized + tags: + - storage_v1alpha1 + x-kubernetes-action: post + x-kubernetes-group-version-kind: + group: storage.k8s.io + kind: VolumeAttributesClass + version: v1alpha1 + x-codegen-request-body-name: body + x-contentType: application/json + x-accepts: application/json + /apis/storage.k8s.io/v1alpha1/volumeattributesclasses/{name}: + delete: + description: delete a VolumeAttributesClass + operationId: deleteVolumeAttributesClass + parameters: + - description: name of the VolumeAttributesClass + in: path + name: name + required: true + schema: + type: string + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). + in: query + name: pretty + schema: + type: string + - description: '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' + in: query + name: dryRun + schema: + type: string + - description: 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. + in: query + name: gracePeriodSeconds + schema: + type: integer + - description: 'if set to true, it will trigger an unsafe deletion of the resource + in case the normal deletion flow fails with a corrupt object error. A resource + is considered corrupt if it can not be retrieved from the underlying storage + successfully because of a) its data can not be transformed e.g. decryption + failure, or b) it fails to decode into an object. NOTE: unsafe deletion + ignores finalizer constraints, skips precondition checks, and removes the + object from the storage. WARNING: This may potentially break the cluster + if the workload associated with the resource being unsafe-deleted relies + on normal deletion flow. Use only if you REALLY know what you are doing. + The default value is false, and the user must opt in to enable it' + in: query + name: ignoreStoreReadErrorWithClusterBreakingPotential + schema: + type: boolean + - description: '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.' + in: query + name: orphanDependents + schema: + type: boolean + - description: '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.' + in: query + name: propagationPolicy + schema: + type: string + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/v1.DeleteOptions' + required: false + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1alpha1.VolumeAttributesClass' + application/yaml: + schema: + $ref: '#/components/schemas/v1alpha1.VolumeAttributesClass' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1alpha1.VolumeAttributesClass' + application/cbor: + schema: + $ref: '#/components/schemas/v1alpha1.VolumeAttributesClass' + description: OK + "202": + content: + application/json: + schema: + $ref: '#/components/schemas/v1alpha1.VolumeAttributesClass' + application/yaml: + schema: + $ref: '#/components/schemas/v1alpha1.VolumeAttributesClass' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1alpha1.VolumeAttributesClass' + application/cbor: + schema: + $ref: '#/components/schemas/v1alpha1.VolumeAttributesClass' + description: Accepted + "401": + content: {} + description: Unauthorized + tags: + - storage_v1alpha1 + x-kubernetes-action: delete + x-kubernetes-group-version-kind: + group: storage.k8s.io + kind: VolumeAttributesClass + version: v1alpha1 + x-codegen-request-body-name: body + x-contentType: application/json + x-accepts: application/json + get: + description: read the specified VolumeAttributesClass + operationId: readVolumeAttributesClass + parameters: + - description: name of the VolumeAttributesClass + in: path + name: name + required: true + schema: + type: string + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). + in: query + name: pretty + schema: + type: string + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1alpha1.VolumeAttributesClass' + application/yaml: + schema: + $ref: '#/components/schemas/v1alpha1.VolumeAttributesClass' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1alpha1.VolumeAttributesClass' + application/cbor: + schema: + $ref: '#/components/schemas/v1alpha1.VolumeAttributesClass' + description: OK + "401": + content: {} + description: Unauthorized + tags: + - storage_v1alpha1 + x-kubernetes-action: get + x-kubernetes-group-version-kind: + group: storage.k8s.io + kind: VolumeAttributesClass + version: v1alpha1 + x-accepts: application/json + patch: + description: partially update the specified VolumeAttributesClass + operationId: patchVolumeAttributesClass + parameters: + - description: name of the VolumeAttributesClass + in: path + name: name + required: true + schema: + type: string + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). + in: query + name: pretty + schema: + type: string + - description: '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' + in: query + name: dryRun + schema: + type: string + - description: fieldManager is a name associated with the actor or entity that + is making these changes. The value must be less than or 128 characters long, + and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + This field is required for apply requests (application/apply-patch) but + optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). + in: query + name: fieldManager + schema: + type: string + - description: 'fieldValidation instructs the server on how to handle objects + in the request (POST/PUT/PATCH) containing unknown or duplicate fields. + Valid values are: - Ignore: This will ignore any unknown fields that are + silently dropped from the object, and will ignore all but the last duplicate + field that the decoder encounters. This is the default behavior prior to + v1.23. - Warn: This will send a warning via the standard warning response + header for each unknown field that is dropped from the object, and for each + duplicate field that is encountered. The request will still succeed if there + are no other errors, and will only persist the last of any duplicate fields. + This is the default in v1.23+ - Strict: This will fail the request with + a BadRequest error if any unknown fields would be dropped from the object, + or if any duplicate fields are present. The error returned from the server + will contain all unknown and duplicate fields encountered.' + in: query + name: fieldValidation + schema: + type: string + - description: Force is going to "force" Apply requests. It means user will + re-acquire conflicting fields owned by other people. Force flag must be + unset for non-apply patch requests. + in: query + name: force + schema: + type: boolean + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/v1.Patch' + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1alpha1.VolumeAttributesClass' + application/yaml: + schema: + $ref: '#/components/schemas/v1alpha1.VolumeAttributesClass' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1alpha1.VolumeAttributesClass' + application/cbor: + schema: + $ref: '#/components/schemas/v1alpha1.VolumeAttributesClass' + description: OK + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/v1alpha1.VolumeAttributesClass' + application/yaml: + schema: + $ref: '#/components/schemas/v1alpha1.VolumeAttributesClass' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1alpha1.VolumeAttributesClass' + application/cbor: + schema: + $ref: '#/components/schemas/v1alpha1.VolumeAttributesClass' + description: Created + "401": + content: {} + description: Unauthorized + tags: + - storage_v1alpha1 + x-kubernetes-action: patch + x-kubernetes-group-version-kind: + group: storage.k8s.io + kind: VolumeAttributesClass + version: v1alpha1 + x-codegen-request-body-name: body + x-contentType: application/json + x-accepts: application/json + put: + description: replace the specified VolumeAttributesClass + operationId: replaceVolumeAttributesClass + parameters: + - description: name of the VolumeAttributesClass + in: path + name: name + required: true + schema: + type: string + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). + in: query + name: pretty + schema: + type: string + - description: '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' + in: query + name: dryRun + schema: + type: string + - description: fieldManager is a name associated with the actor or entity that + is making these changes. The value must be less than or 128 characters long, + and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + in: query + name: fieldManager + schema: + type: string + - description: 'fieldValidation instructs the server on how to handle objects + in the request (POST/PUT/PATCH) containing unknown or duplicate fields. + Valid values are: - Ignore: This will ignore any unknown fields that are + silently dropped from the object, and will ignore all but the last duplicate + field that the decoder encounters. This is the default behavior prior to + v1.23. - Warn: This will send a warning via the standard warning response + header for each unknown field that is dropped from the object, and for each + duplicate field that is encountered. The request will still succeed if there + are no other errors, and will only persist the last of any duplicate fields. + This is the default in v1.23+ - Strict: This will fail the request with + a BadRequest error if any unknown fields would be dropped from the object, + or if any duplicate fields are present. The error returned from the server + will contain all unknown and duplicate fields encountered.' + in: query + name: fieldValidation + schema: + type: string + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/v1alpha1.VolumeAttributesClass' + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1alpha1.VolumeAttributesClass' + application/yaml: + schema: + $ref: '#/components/schemas/v1alpha1.VolumeAttributesClass' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1alpha1.VolumeAttributesClass' + application/cbor: + schema: + $ref: '#/components/schemas/v1alpha1.VolumeAttributesClass' + description: OK + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/v1alpha1.VolumeAttributesClass' + application/yaml: + schema: + $ref: '#/components/schemas/v1alpha1.VolumeAttributesClass' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1alpha1.VolumeAttributesClass' + application/cbor: + schema: + $ref: '#/components/schemas/v1alpha1.VolumeAttributesClass' + description: Created + "401": + content: {} + description: Unauthorized + tags: + - storage_v1alpha1 + x-kubernetes-action: put + x-kubernetes-group-version-kind: + group: storage.k8s.io + kind: VolumeAttributesClass + version: v1alpha1 + x-codegen-request-body-name: body + x-contentType: application/json + x-accepts: application/json + /apis/storage.k8s.io/v1alpha1/watch/volumeattributesclasses: {} + /apis/storage.k8s.io/v1alpha1/watch/volumeattributesclasses/{name}: {} + /apis/storage.k8s.io/v1beta1/: + get: + description: get available resources + operationId: getAPIResources + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.APIResourceList' + application/yaml: + schema: + $ref: '#/components/schemas/v1.APIResourceList' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.APIResourceList' + application/cbor: + schema: + $ref: '#/components/schemas/v1.APIResourceList' + description: OK + "401": + content: {} + description: Unauthorized + tags: + - storage_v1beta1 + x-accepts: application/json + /apis/storage.k8s.io/v1beta1/volumeattributesclasses: + delete: + description: delete collection of VolumeAttributesClass + operationId: deleteCollectionVolumeAttributesClass + parameters: + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). + in: query + name: pretty + schema: + type: string + - description: |- + 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. + in: query + name: continue + schema: + type: string + - description: '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' + in: query + 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 + - description: 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. + in: query + name: gracePeriodSeconds + schema: + type: integer + - description: 'if set to true, it will trigger an unsafe deletion of the resource + in case the normal deletion flow fails with a corrupt object error. A resource + is considered corrupt if it can not be retrieved from the underlying storage + successfully because of a) its data can not be transformed e.g. decryption + failure, or b) it fails to decode into an object. NOTE: unsafe deletion + ignores finalizer constraints, skips precondition checks, and removes the + object from the storage. WARNING: This may potentially break the cluster + if the workload associated with the resource being unsafe-deleted relies + on normal deletion flow. Use only if you REALLY know what you are doing. + The default value is false, and the user must opt in to enable it' + in: query + name: ignoreStoreReadErrorWithClusterBreakingPotential + schema: + type: boolean + - description: A selector to restrict the list of returned objects by their + labels. Defaults to everything. + in: query + name: labelSelector + schema: + type: string + - description: |- + limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. + + The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + in: query + name: limit + schema: + type: integer + - description: '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.' + in: query + name: orphanDependents + schema: + type: boolean + - description: '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.' + in: query + name: propagationPolicy + schema: + type: string + - description: |- + resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersion + schema: + type: string + - description: |- + resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersionMatch + schema: + type: string + - description: |- + `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic "Bookmark" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `"k8s.io/initial-events-end": "true"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. + + When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan + is interpreted as "data at least as new as the provided `resourceVersion`" + and the bookmark event is send when the state is synced + to a `resourceVersion` at least as fresh as the one provided by the ListOptions. + If `resourceVersion` is unset, this is interpreted as "consistent read" and the + bookmark event is send when the state is synced at least to the moment + when request started being processed. + - `resourceVersionMatch` set to any other value or unset + Invalid error is returned. + + Defaults to true if `resourceVersion=""` or `resourceVersion="0"` (for backward compatibility reasons) and to false otherwise. + in: query + name: sendInitialEvents + schema: + type: boolean + - description: Timeout for the list/watch call. This limits the duration of + the call, regardless of any activity or inactivity. + in: query + name: timeoutSeconds + schema: + type: integer + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/v1.DeleteOptions' + required: false + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.Status' + application/yaml: + schema: + $ref: '#/components/schemas/v1.Status' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.Status' + application/cbor: + schema: + $ref: '#/components/schemas/v1.Status' + description: OK + "401": + content: {} + description: Unauthorized + tags: + - storage_v1beta1 + x-kubernetes-action: deletecollection + x-kubernetes-group-version-kind: + group: storage.k8s.io + kind: VolumeAttributesClass + version: v1beta1 + x-codegen-request-body-name: body + x-contentType: application/json + x-accepts: application/json + get: + description: list or watch objects of kind VolumeAttributesClass + operationId: listVolumeAttributesClass + parameters: + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). + in: query + name: pretty + schema: + type: string + - description: 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. + in: query + name: allowWatchBookmarks + schema: + type: boolean + - description: |- + 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. + in: query + name: continue + 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 + - description: A selector to restrict the list of returned objects by their + labels. Defaults to everything. + in: query + name: labelSelector + schema: + type: string + - description: |- + limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. + + The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + in: query + name: limit + schema: + type: integer + - description: |- + resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersion + schema: + type: string + - description: |- + resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersionMatch + schema: + type: string + - description: |- + `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic "Bookmark" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `"k8s.io/initial-events-end": "true"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. + + When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan + is interpreted as "data at least as new as the provided `resourceVersion`" + and the bookmark event is send when the state is synced + to a `resourceVersion` at least as fresh as the one provided by the ListOptions. + If `resourceVersion` is unset, this is interpreted as "consistent read" and the + bookmark event is send when the state is synced at least to the moment + when request started being processed. + - `resourceVersionMatch` set to any other value or unset + Invalid error is returned. + + Defaults to true if `resourceVersion=""` or `resourceVersion="0"` (for backward compatibility reasons) and to false otherwise. + in: query + name: sendInitialEvents + schema: + type: boolean + - description: Timeout for the list/watch call. This limits the duration of + the call, regardless of any activity or inactivity. + in: query + name: timeoutSeconds + schema: + type: integer + - description: Watch for changes to the described resources and return them + as a stream of add, update, and remove notifications. Specify resourceVersion. + in: query + name: watch + schema: + type: boolean + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1beta1.VolumeAttributesClassList' + application/yaml: + schema: + $ref: '#/components/schemas/v1beta1.VolumeAttributesClassList' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1beta1.VolumeAttributesClassList' + application/cbor: + schema: + $ref: '#/components/schemas/v1beta1.VolumeAttributesClassList' + application/json;stream=watch: + schema: + $ref: '#/components/schemas/v1beta1.VolumeAttributesClassList' + application/vnd.kubernetes.protobuf;stream=watch: + schema: + $ref: '#/components/schemas/v1beta1.VolumeAttributesClassList' + application/cbor-seq: + schema: + $ref: '#/components/schemas/v1beta1.VolumeAttributesClassList' + description: OK + "401": + content: {} + description: Unauthorized + tags: + - storage_v1beta1 + x-kubernetes-action: list + x-kubernetes-group-version-kind: + group: storage.k8s.io + kind: VolumeAttributesClass + version: v1beta1 + x-accepts: application/json + post: + description: create a VolumeAttributesClass + operationId: createVolumeAttributesClass + parameters: + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). + in: query + name: pretty + schema: + type: string + - description: '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' + in: query + name: dryRun + schema: + type: string + - description: fieldManager is a name associated with the actor or entity that + is making these changes. The value must be less than or 128 characters long, + and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + in: query + name: fieldManager + schema: + type: string + - description: 'fieldValidation instructs the server on how to handle objects + in the request (POST/PUT/PATCH) containing unknown or duplicate fields. + Valid values are: - Ignore: This will ignore any unknown fields that are + silently dropped from the object, and will ignore all but the last duplicate + field that the decoder encounters. This is the default behavior prior to + v1.23. - Warn: This will send a warning via the standard warning response + header for each unknown field that is dropped from the object, and for each + duplicate field that is encountered. The request will still succeed if there + are no other errors, and will only persist the last of any duplicate fields. + This is the default in v1.23+ - Strict: This will fail the request with + a BadRequest error if any unknown fields would be dropped from the object, + or if any duplicate fields are present. The error returned from the server + will contain all unknown and duplicate fields encountered.' + in: query + name: fieldValidation + schema: + type: string + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/v1beta1.VolumeAttributesClass' + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1beta1.VolumeAttributesClass' + application/yaml: + schema: + $ref: '#/components/schemas/v1beta1.VolumeAttributesClass' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1beta1.VolumeAttributesClass' + application/cbor: + schema: + $ref: '#/components/schemas/v1beta1.VolumeAttributesClass' + description: OK + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/v1beta1.VolumeAttributesClass' + application/yaml: + schema: + $ref: '#/components/schemas/v1beta1.VolumeAttributesClass' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1beta1.VolumeAttributesClass' + application/cbor: + schema: + $ref: '#/components/schemas/v1beta1.VolumeAttributesClass' + description: Created + "202": + content: + application/json: + schema: + $ref: '#/components/schemas/v1beta1.VolumeAttributesClass' + application/yaml: + schema: + $ref: '#/components/schemas/v1beta1.VolumeAttributesClass' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1beta1.VolumeAttributesClass' + application/cbor: + schema: + $ref: '#/components/schemas/v1beta1.VolumeAttributesClass' + description: Accepted + "401": + content: {} + description: Unauthorized + tags: + - storage_v1beta1 + x-kubernetes-action: post + x-kubernetes-group-version-kind: + group: storage.k8s.io + kind: VolumeAttributesClass + version: v1beta1 + x-codegen-request-body-name: body + x-contentType: application/json + x-accepts: application/json + /apis/storage.k8s.io/v1beta1/volumeattributesclasses/{name}: + delete: + description: delete a VolumeAttributesClass + operationId: deleteVolumeAttributesClass + parameters: + - description: name of the VolumeAttributesClass + in: path + name: name + required: true + schema: + type: string + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). + in: query + name: pretty + schema: + type: string + - description: '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' + in: query + name: dryRun + schema: + type: string + - description: 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. + in: query + name: gracePeriodSeconds + schema: + type: integer + - description: 'if set to true, it will trigger an unsafe deletion of the resource + in case the normal deletion flow fails with a corrupt object error. A resource + is considered corrupt if it can not be retrieved from the underlying storage + successfully because of a) its data can not be transformed e.g. decryption + failure, or b) it fails to decode into an object. NOTE: unsafe deletion + ignores finalizer constraints, skips precondition checks, and removes the + object from the storage. WARNING: This may potentially break the cluster + if the workload associated with the resource being unsafe-deleted relies + on normal deletion flow. Use only if you REALLY know what you are doing. + The default value is false, and the user must opt in to enable it' + in: query + name: ignoreStoreReadErrorWithClusterBreakingPotential + schema: + type: boolean + - description: '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.' + in: query + name: orphanDependents + schema: + type: boolean + - description: '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.' + in: query + name: propagationPolicy + schema: + type: string + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/v1.DeleteOptions' + required: false + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1beta1.VolumeAttributesClass' + application/yaml: + schema: + $ref: '#/components/schemas/v1beta1.VolumeAttributesClass' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1beta1.VolumeAttributesClass' + application/cbor: + schema: + $ref: '#/components/schemas/v1beta1.VolumeAttributesClass' + description: OK + "202": + content: + application/json: + schema: + $ref: '#/components/schemas/v1beta1.VolumeAttributesClass' + application/yaml: + schema: + $ref: '#/components/schemas/v1beta1.VolumeAttributesClass' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1beta1.VolumeAttributesClass' + application/cbor: + schema: + $ref: '#/components/schemas/v1beta1.VolumeAttributesClass' + description: Accepted + "401": + content: {} + description: Unauthorized + tags: + - storage_v1beta1 + x-kubernetes-action: delete + x-kubernetes-group-version-kind: + group: storage.k8s.io + kind: VolumeAttributesClass + version: v1beta1 + x-codegen-request-body-name: body + x-contentType: application/json + x-accepts: application/json + get: + description: read the specified VolumeAttributesClass + operationId: readVolumeAttributesClass + parameters: + - description: name of the VolumeAttributesClass + in: path + name: name + required: true + schema: + type: string + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). + in: query + name: pretty + schema: + type: string + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1beta1.VolumeAttributesClass' + application/yaml: + schema: + $ref: '#/components/schemas/v1beta1.VolumeAttributesClass' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1beta1.VolumeAttributesClass' + application/cbor: + schema: + $ref: '#/components/schemas/v1beta1.VolumeAttributesClass' + description: OK + "401": + content: {} + description: Unauthorized + tags: + - storage_v1beta1 + x-kubernetes-action: get + x-kubernetes-group-version-kind: + group: storage.k8s.io + kind: VolumeAttributesClass + version: v1beta1 + x-accepts: application/json + patch: + description: partially update the specified VolumeAttributesClass + operationId: patchVolumeAttributesClass + parameters: + - description: name of the VolumeAttributesClass + in: path + name: name + required: true + schema: + type: string + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). + in: query + name: pretty + schema: + type: string + - description: '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' + in: query + name: dryRun + schema: + type: string + - description: fieldManager is a name associated with the actor or entity that + is making these changes. The value must be less than or 128 characters long, + and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + This field is required for apply requests (application/apply-patch) but + optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). + in: query + name: fieldManager + schema: + type: string + - description: 'fieldValidation instructs the server on how to handle objects + in the request (POST/PUT/PATCH) containing unknown or duplicate fields. + Valid values are: - Ignore: This will ignore any unknown fields that are + silently dropped from the object, and will ignore all but the last duplicate + field that the decoder encounters. This is the default behavior prior to + v1.23. - Warn: This will send a warning via the standard warning response + header for each unknown field that is dropped from the object, and for each + duplicate field that is encountered. The request will still succeed if there + are no other errors, and will only persist the last of any duplicate fields. + This is the default in v1.23+ - Strict: This will fail the request with + a BadRequest error if any unknown fields would be dropped from the object, + or if any duplicate fields are present. The error returned from the server + will contain all unknown and duplicate fields encountered.' + in: query + name: fieldValidation + schema: + type: string + - description: Force is going to "force" Apply requests. It means user will + re-acquire conflicting fields owned by other people. Force flag must be + unset for non-apply patch requests. + in: query + name: force + schema: + type: boolean + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/v1.Patch' + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1beta1.VolumeAttributesClass' + application/yaml: + schema: + $ref: '#/components/schemas/v1beta1.VolumeAttributesClass' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1beta1.VolumeAttributesClass' + application/cbor: + schema: + $ref: '#/components/schemas/v1beta1.VolumeAttributesClass' + description: OK + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/v1beta1.VolumeAttributesClass' + application/yaml: + schema: + $ref: '#/components/schemas/v1beta1.VolumeAttributesClass' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1beta1.VolumeAttributesClass' + application/cbor: + schema: + $ref: '#/components/schemas/v1beta1.VolumeAttributesClass' + description: Created + "401": + content: {} + description: Unauthorized + tags: + - storage_v1beta1 + x-kubernetes-action: patch + x-kubernetes-group-version-kind: + group: storage.k8s.io + kind: VolumeAttributesClass + version: v1beta1 + x-codegen-request-body-name: body + x-contentType: application/json + x-accepts: application/json + put: + description: replace the specified VolumeAttributesClass + operationId: replaceVolumeAttributesClass + parameters: + - description: name of the VolumeAttributesClass + in: path + name: name + required: true + schema: + type: string + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). + in: query + name: pretty + schema: + type: string + - description: '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' + in: query + name: dryRun + schema: + type: string + - description: fieldManager is a name associated with the actor or entity that + is making these changes. The value must be less than or 128 characters long, + and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + in: query + name: fieldManager + schema: + type: string + - description: 'fieldValidation instructs the server on how to handle objects + in the request (POST/PUT/PATCH) containing unknown or duplicate fields. + Valid values are: - Ignore: This will ignore any unknown fields that are + silently dropped from the object, and will ignore all but the last duplicate + field that the decoder encounters. This is the default behavior prior to + v1.23. - Warn: This will send a warning via the standard warning response + header for each unknown field that is dropped from the object, and for each + duplicate field that is encountered. The request will still succeed if there + are no other errors, and will only persist the last of any duplicate fields. + This is the default in v1.23+ - Strict: This will fail the request with + a BadRequest error if any unknown fields would be dropped from the object, + or if any duplicate fields are present. The error returned from the server + will contain all unknown and duplicate fields encountered.' + in: query + name: fieldValidation + schema: + type: string + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/v1beta1.VolumeAttributesClass' + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1beta1.VolumeAttributesClass' + application/yaml: + schema: + $ref: '#/components/schemas/v1beta1.VolumeAttributesClass' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1beta1.VolumeAttributesClass' + application/cbor: + schema: + $ref: '#/components/schemas/v1beta1.VolumeAttributesClass' + description: OK + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/v1beta1.VolumeAttributesClass' + application/yaml: + schema: + $ref: '#/components/schemas/v1beta1.VolumeAttributesClass' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1beta1.VolumeAttributesClass' + application/cbor: + schema: + $ref: '#/components/schemas/v1beta1.VolumeAttributesClass' + description: Created + "401": + content: {} + description: Unauthorized + tags: + - storage_v1beta1 + x-kubernetes-action: put + x-kubernetes-group-version-kind: + group: storage.k8s.io + kind: VolumeAttributesClass + version: v1beta1 + x-codegen-request-body-name: body + x-contentType: application/json + x-accepts: application/json + /apis/storage.k8s.io/v1beta1/watch/volumeattributesclasses: {} + /apis/storage.k8s.io/v1beta1/watch/volumeattributesclasses/{name}: {} + /apis/storagemigration.k8s.io/: + get: + description: get information of a group + operationId: getAPIGroup + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.APIGroup' + application/yaml: + schema: + $ref: '#/components/schemas/v1.APIGroup' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.APIGroup' + description: OK + "401": + content: {} + description: Unauthorized + tags: + - storagemigration + x-accepts: application/json + /apis/storagemigration.k8s.io/v1alpha1/: + get: + description: get available resources + operationId: getAPIResources + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.APIResourceList' + application/yaml: + schema: + $ref: '#/components/schemas/v1.APIResourceList' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.APIResourceList' + application/cbor: + schema: + $ref: '#/components/schemas/v1.APIResourceList' + description: OK + "401": + content: {} + description: Unauthorized + tags: + - storagemigration_v1alpha1 + x-accepts: application/json + /apis/storagemigration.k8s.io/v1alpha1/storageversionmigrations: + delete: + description: delete collection of StorageVersionMigration + operationId: deleteCollectionStorageVersionMigration + parameters: + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). + in: query + name: pretty + schema: + type: string + - description: |- + 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. + in: query + name: continue + schema: + type: string + - description: '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' + in: query + 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 + - description: 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. + in: query + name: gracePeriodSeconds + schema: + type: integer + - description: 'if set to true, it will trigger an unsafe deletion of the resource + in case the normal deletion flow fails with a corrupt object error. A resource + is considered corrupt if it can not be retrieved from the underlying storage + successfully because of a) its data can not be transformed e.g. decryption + failure, or b) it fails to decode into an object. NOTE: unsafe deletion + ignores finalizer constraints, skips precondition checks, and removes the + object from the storage. WARNING: This may potentially break the cluster + if the workload associated with the resource being unsafe-deleted relies + on normal deletion flow. Use only if you REALLY know what you are doing. + The default value is false, and the user must opt in to enable it' + in: query + name: ignoreStoreReadErrorWithClusterBreakingPotential + schema: + type: boolean + - description: A selector to restrict the list of returned objects by their + labels. Defaults to everything. + in: query + name: labelSelector + schema: + type: string + - description: |- + limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. + + The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + in: query + name: limit + schema: + type: integer + - description: '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.' + in: query + name: orphanDependents + schema: + type: boolean + - description: '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.' + in: query + name: propagationPolicy + schema: + type: string + - description: |- + resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersion + schema: + type: string + - description: |- + resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersionMatch + schema: + type: string + - description: |- + `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic "Bookmark" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `"k8s.io/initial-events-end": "true"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. + + When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan + is interpreted as "data at least as new as the provided `resourceVersion`" + and the bookmark event is send when the state is synced + to a `resourceVersion` at least as fresh as the one provided by the ListOptions. + If `resourceVersion` is unset, this is interpreted as "consistent read" and the + bookmark event is send when the state is synced at least to the moment + when request started being processed. + - `resourceVersionMatch` set to any other value or unset + Invalid error is returned. + + Defaults to true if `resourceVersion=""` or `resourceVersion="0"` (for backward compatibility reasons) and to false otherwise. + in: query + name: sendInitialEvents + schema: + type: boolean + - description: Timeout for the list/watch call. This limits the duration of + the call, regardless of any activity or inactivity. + in: query + name: timeoutSeconds + schema: + type: integer + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/v1.DeleteOptions' + required: false + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.Status' + application/yaml: + schema: + $ref: '#/components/schemas/v1.Status' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.Status' + application/cbor: + schema: + $ref: '#/components/schemas/v1.Status' + description: OK + "401": + content: {} + description: Unauthorized + tags: + - storagemigration_v1alpha1 + x-kubernetes-action: deletecollection + x-kubernetes-group-version-kind: + group: storagemigration.k8s.io + kind: StorageVersionMigration + version: v1alpha1 + x-codegen-request-body-name: body + x-contentType: application/json + x-accepts: application/json + get: + description: list or watch objects of kind StorageVersionMigration + operationId: listStorageVersionMigration + parameters: + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). + in: query + name: pretty + schema: + type: string + - description: 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. + in: query + name: allowWatchBookmarks + schema: + type: boolean + - description: |- + 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. + in: query + name: continue + 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 + - description: A selector to restrict the list of returned objects by their + labels. Defaults to everything. + in: query + name: labelSelector + schema: + type: string + - description: |- + limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. + + The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + in: query + name: limit + schema: + type: integer + - description: |- + resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersion + schema: + type: string + - description: |- + resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersionMatch + schema: + type: string + - description: |- + `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic "Bookmark" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `"k8s.io/initial-events-end": "true"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. + + When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan + is interpreted as "data at least as new as the provided `resourceVersion`" + and the bookmark event is send when the state is synced + to a `resourceVersion` at least as fresh as the one provided by the ListOptions. + If `resourceVersion` is unset, this is interpreted as "consistent read" and the + bookmark event is send when the state is synced at least to the moment + when request started being processed. + - `resourceVersionMatch` set to any other value or unset + Invalid error is returned. + + Defaults to true if `resourceVersion=""` or `resourceVersion="0"` (for backward compatibility reasons) and to false otherwise. + in: query + name: sendInitialEvents + schema: + type: boolean + - description: Timeout for the list/watch call. This limits the duration of + the call, regardless of any activity or inactivity. + in: query + name: timeoutSeconds + schema: + type: integer + - description: Watch for changes to the described resources and return them + as a stream of add, update, and remove notifications. Specify resourceVersion. + in: query + name: watch + schema: + type: boolean + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1alpha1.StorageVersionMigrationList' + application/yaml: + schema: + $ref: '#/components/schemas/v1alpha1.StorageVersionMigrationList' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1alpha1.StorageVersionMigrationList' + application/cbor: + schema: + $ref: '#/components/schemas/v1alpha1.StorageVersionMigrationList' + application/json;stream=watch: + schema: + $ref: '#/components/schemas/v1alpha1.StorageVersionMigrationList' + application/vnd.kubernetes.protobuf;stream=watch: + schema: + $ref: '#/components/schemas/v1alpha1.StorageVersionMigrationList' + application/cbor-seq: + schema: + $ref: '#/components/schemas/v1alpha1.StorageVersionMigrationList' + description: OK + "401": + content: {} + description: Unauthorized + tags: + - storagemigration_v1alpha1 + x-kubernetes-action: list + x-kubernetes-group-version-kind: + group: storagemigration.k8s.io + kind: StorageVersionMigration + version: v1alpha1 + x-accepts: application/json + post: + description: create a StorageVersionMigration + operationId: createStorageVersionMigration + parameters: + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). + in: query + name: pretty + schema: + type: string + - description: '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' + in: query + name: dryRun + schema: + type: string + - description: fieldManager is a name associated with the actor or entity that + is making these changes. The value must be less than or 128 characters long, + and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + in: query + name: fieldManager + schema: + type: string + - description: 'fieldValidation instructs the server on how to handle objects + in the request (POST/PUT/PATCH) containing unknown or duplicate fields. + Valid values are: - Ignore: This will ignore any unknown fields that are + silently dropped from the object, and will ignore all but the last duplicate + field that the decoder encounters. This is the default behavior prior to + v1.23. - Warn: This will send a warning via the standard warning response + header for each unknown field that is dropped from the object, and for each + duplicate field that is encountered. The request will still succeed if there + are no other errors, and will only persist the last of any duplicate fields. + This is the default in v1.23+ - Strict: This will fail the request with + a BadRequest error if any unknown fields would be dropped from the object, + or if any duplicate fields are present. The error returned from the server + will contain all unknown and duplicate fields encountered.' + in: query + name: fieldValidation + schema: + type: string + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/v1alpha1.StorageVersionMigration' + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1alpha1.StorageVersionMigration' + application/yaml: + schema: + $ref: '#/components/schemas/v1alpha1.StorageVersionMigration' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1alpha1.StorageVersionMigration' + application/cbor: + schema: + $ref: '#/components/schemas/v1alpha1.StorageVersionMigration' + description: OK + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/v1alpha1.StorageVersionMigration' + application/yaml: + schema: + $ref: '#/components/schemas/v1alpha1.StorageVersionMigration' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1alpha1.StorageVersionMigration' + application/cbor: + schema: + $ref: '#/components/schemas/v1alpha1.StorageVersionMigration' + description: Created + "202": + content: + application/json: + schema: + $ref: '#/components/schemas/v1alpha1.StorageVersionMigration' + application/yaml: + schema: + $ref: '#/components/schemas/v1alpha1.StorageVersionMigration' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1alpha1.StorageVersionMigration' + application/cbor: + schema: + $ref: '#/components/schemas/v1alpha1.StorageVersionMigration' + description: Accepted + "401": + content: {} + description: Unauthorized + tags: + - storagemigration_v1alpha1 + x-kubernetes-action: post + x-kubernetes-group-version-kind: + group: storagemigration.k8s.io + kind: StorageVersionMigration + version: v1alpha1 + x-codegen-request-body-name: body + x-contentType: application/json + x-accepts: application/json + /apis/storagemigration.k8s.io/v1alpha1/storageversionmigrations/{name}: + delete: + description: delete a StorageVersionMigration + operationId: deleteStorageVersionMigration + parameters: + - description: name of the StorageVersionMigration + in: path + name: name + required: true + schema: + type: string + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). + in: query + name: pretty + schema: + type: string + - description: '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' + in: query + name: dryRun + schema: + type: string + - description: 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. + in: query + name: gracePeriodSeconds + schema: + type: integer + - description: 'if set to true, it will trigger an unsafe deletion of the resource + in case the normal deletion flow fails with a corrupt object error. A resource + is considered corrupt if it can not be retrieved from the underlying storage + successfully because of a) its data can not be transformed e.g. decryption + failure, or b) it fails to decode into an object. NOTE: unsafe deletion + ignores finalizer constraints, skips precondition checks, and removes the + object from the storage. WARNING: This may potentially break the cluster + if the workload associated with the resource being unsafe-deleted relies + on normal deletion flow. Use only if you REALLY know what you are doing. + The default value is false, and the user must opt in to enable it' + in: query + name: ignoreStoreReadErrorWithClusterBreakingPotential + schema: + type: boolean + - description: '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.' + in: query + name: orphanDependents + schema: + type: boolean + - description: '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.' + in: query + name: propagationPolicy + schema: + type: string + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/v1.DeleteOptions' + required: false + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.Status' + application/yaml: + schema: + $ref: '#/components/schemas/v1.Status' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.Status' + application/cbor: + schema: + $ref: '#/components/schemas/v1.Status' + description: OK + "202": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.Status' + application/yaml: + schema: + $ref: '#/components/schemas/v1.Status' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.Status' + application/cbor: + schema: + $ref: '#/components/schemas/v1.Status' + description: Accepted + "401": + content: {} + description: Unauthorized + tags: + - storagemigration_v1alpha1 + x-kubernetes-action: delete + x-kubernetes-group-version-kind: + group: storagemigration.k8s.io + kind: StorageVersionMigration + version: v1alpha1 + x-codegen-request-body-name: body + x-contentType: application/json + x-accepts: application/json + get: + description: read the specified StorageVersionMigration + operationId: readStorageVersionMigration + parameters: + - description: name of the StorageVersionMigration + in: path + name: name + required: true + schema: + type: string + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). + in: query + name: pretty + schema: + type: string + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1alpha1.StorageVersionMigration' + application/yaml: + schema: + $ref: '#/components/schemas/v1alpha1.StorageVersionMigration' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1alpha1.StorageVersionMigration' + application/cbor: + schema: + $ref: '#/components/schemas/v1alpha1.StorageVersionMigration' + description: OK + "401": + content: {} + description: Unauthorized + tags: + - storagemigration_v1alpha1 + x-kubernetes-action: get + x-kubernetes-group-version-kind: + group: storagemigration.k8s.io + kind: StorageVersionMigration + version: v1alpha1 + x-accepts: application/json + patch: + description: partially update the specified StorageVersionMigration + operationId: patchStorageVersionMigration + parameters: + - description: name of the StorageVersionMigration + in: path + name: name + required: true + schema: + type: string + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). + in: query + name: pretty + schema: + type: string + - description: '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' + in: query + name: dryRun + schema: + type: string + - description: fieldManager is a name associated with the actor or entity that + is making these changes. The value must be less than or 128 characters long, + and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + This field is required for apply requests (application/apply-patch) but + optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). + in: query + name: fieldManager + schema: + type: string + - description: 'fieldValidation instructs the server on how to handle objects + in the request (POST/PUT/PATCH) containing unknown or duplicate fields. + Valid values are: - Ignore: This will ignore any unknown fields that are + silently dropped from the object, and will ignore all but the last duplicate + field that the decoder encounters. This is the default behavior prior to + v1.23. - Warn: This will send a warning via the standard warning response + header for each unknown field that is dropped from the object, and for each + duplicate field that is encountered. The request will still succeed if there + are no other errors, and will only persist the last of any duplicate fields. + This is the default in v1.23+ - Strict: This will fail the request with + a BadRequest error if any unknown fields would be dropped from the object, + or if any duplicate fields are present. The error returned from the server + will contain all unknown and duplicate fields encountered.' + in: query + name: fieldValidation + schema: + type: string + - description: Force is going to "force" Apply requests. It means user will + re-acquire conflicting fields owned by other people. Force flag must be + unset for non-apply patch requests. + in: query + name: force + schema: + type: boolean + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/v1.Patch' + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1alpha1.StorageVersionMigration' + application/yaml: + schema: + $ref: '#/components/schemas/v1alpha1.StorageVersionMigration' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1alpha1.StorageVersionMigration' + application/cbor: + schema: + $ref: '#/components/schemas/v1alpha1.StorageVersionMigration' + description: OK + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/v1alpha1.StorageVersionMigration' + application/yaml: + schema: + $ref: '#/components/schemas/v1alpha1.StorageVersionMigration' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1alpha1.StorageVersionMigration' + application/cbor: + schema: + $ref: '#/components/schemas/v1alpha1.StorageVersionMigration' + description: Created + "401": + content: {} + description: Unauthorized + tags: + - storagemigration_v1alpha1 + x-kubernetes-action: patch + x-kubernetes-group-version-kind: + group: storagemigration.k8s.io + kind: StorageVersionMigration + version: v1alpha1 + x-codegen-request-body-name: body + x-contentType: application/json + x-accepts: application/json + put: + description: replace the specified StorageVersionMigration + operationId: replaceStorageVersionMigration + parameters: + - description: name of the StorageVersionMigration + in: path + name: name + required: true + schema: + type: string + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). + in: query + name: pretty + schema: + type: string + - description: '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' + in: query + name: dryRun + schema: + type: string + - description: fieldManager is a name associated with the actor or entity that + is making these changes. The value must be less than or 128 characters long, + and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + in: query + name: fieldManager + schema: + type: string + - description: 'fieldValidation instructs the server on how to handle objects + in the request (POST/PUT/PATCH) containing unknown or duplicate fields. + Valid values are: - Ignore: This will ignore any unknown fields that are + silently dropped from the object, and will ignore all but the last duplicate + field that the decoder encounters. This is the default behavior prior to + v1.23. - Warn: This will send a warning via the standard warning response + header for each unknown field that is dropped from the object, and for each + duplicate field that is encountered. The request will still succeed if there + are no other errors, and will only persist the last of any duplicate fields. + This is the default in v1.23+ - Strict: This will fail the request with + a BadRequest error if any unknown fields would be dropped from the object, + or if any duplicate fields are present. The error returned from the server + will contain all unknown and duplicate fields encountered.' + in: query + name: fieldValidation + schema: + type: string + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/v1alpha1.StorageVersionMigration' + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1alpha1.StorageVersionMigration' + application/yaml: + schema: + $ref: '#/components/schemas/v1alpha1.StorageVersionMigration' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1alpha1.StorageVersionMigration' + application/cbor: + schema: + $ref: '#/components/schemas/v1alpha1.StorageVersionMigration' + description: OK + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/v1alpha1.StorageVersionMigration' + application/yaml: + schema: + $ref: '#/components/schemas/v1alpha1.StorageVersionMigration' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1alpha1.StorageVersionMigration' + application/cbor: + schema: + $ref: '#/components/schemas/v1alpha1.StorageVersionMigration' + description: Created + "401": + content: {} + description: Unauthorized + tags: + - storagemigration_v1alpha1 + x-kubernetes-action: put + x-kubernetes-group-version-kind: + group: storagemigration.k8s.io + kind: StorageVersionMigration + version: v1alpha1 + x-codegen-request-body-name: body + x-contentType: application/json + x-accepts: application/json + /apis/storagemigration.k8s.io/v1alpha1/storageversionmigrations/{name}/status: + get: + description: read status of the specified StorageVersionMigration + operationId: readStorageVersionMigrationStatus + parameters: + - description: name of the StorageVersionMigration + in: path + name: name + required: true + schema: + type: string + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). + in: query + name: pretty + schema: + type: string + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1alpha1.StorageVersionMigration' + application/yaml: + schema: + $ref: '#/components/schemas/v1alpha1.StorageVersionMigration' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1alpha1.StorageVersionMigration' + application/cbor: + schema: + $ref: '#/components/schemas/v1alpha1.StorageVersionMigration' + description: OK + "401": + content: {} + description: Unauthorized + tags: + - storagemigration_v1alpha1 + x-kubernetes-action: get + x-kubernetes-group-version-kind: + group: storagemigration.k8s.io + kind: StorageVersionMigration + version: v1alpha1 + x-accepts: application/json + patch: + description: partially update status of the specified StorageVersionMigration + operationId: patchStorageVersionMigrationStatus + parameters: + - description: name of the StorageVersionMigration + in: path + name: name + required: true + schema: + type: string + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). + in: query + name: pretty + schema: + type: string + - description: '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' + in: query + name: dryRun + schema: + type: string + - description: fieldManager is a name associated with the actor or entity that + is making these changes. The value must be less than or 128 characters long, + and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + This field is required for apply requests (application/apply-patch) but + optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). + in: query + name: fieldManager + schema: + type: string + - description: 'fieldValidation instructs the server on how to handle objects + in the request (POST/PUT/PATCH) containing unknown or duplicate fields. + Valid values are: - Ignore: This will ignore any unknown fields that are + silently dropped from the object, and will ignore all but the last duplicate + field that the decoder encounters. This is the default behavior prior to + v1.23. - Warn: This will send a warning via the standard warning response + header for each unknown field that is dropped from the object, and for each + duplicate field that is encountered. The request will still succeed if there + are no other errors, and will only persist the last of any duplicate fields. + This is the default in v1.23+ - Strict: This will fail the request with + a BadRequest error if any unknown fields would be dropped from the object, + or if any duplicate fields are present. The error returned from the server + will contain all unknown and duplicate fields encountered.' + in: query + name: fieldValidation + schema: + type: string + - description: Force is going to "force" Apply requests. It means user will + re-acquire conflicting fields owned by other people. Force flag must be + unset for non-apply patch requests. + in: query + name: force + schema: + type: boolean + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/v1.Patch' + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1alpha1.StorageVersionMigration' + application/yaml: + schema: + $ref: '#/components/schemas/v1alpha1.StorageVersionMigration' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1alpha1.StorageVersionMigration' + application/cbor: + schema: + $ref: '#/components/schemas/v1alpha1.StorageVersionMigration' + description: OK + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/v1alpha1.StorageVersionMigration' + application/yaml: + schema: + $ref: '#/components/schemas/v1alpha1.StorageVersionMigration' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1alpha1.StorageVersionMigration' + application/cbor: + schema: + $ref: '#/components/schemas/v1alpha1.StorageVersionMigration' + description: Created + "401": + content: {} + description: Unauthorized + tags: + - storagemigration_v1alpha1 + x-kubernetes-action: patch + x-kubernetes-group-version-kind: + group: storagemigration.k8s.io + kind: StorageVersionMigration + version: v1alpha1 + x-codegen-request-body-name: body + x-contentType: application/json + x-accepts: application/json + put: + description: replace status of the specified StorageVersionMigration + operationId: replaceStorageVersionMigrationStatus + parameters: + - description: name of the StorageVersionMigration + in: path + name: name + required: true + schema: + type: string + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). + in: query + name: pretty + schema: + type: string + - description: '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' + in: query + name: dryRun + schema: + type: string + - description: fieldManager is a name associated with the actor or entity that + is making these changes. The value must be less than or 128 characters long, + and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + in: query + name: fieldManager + schema: + type: string + - description: 'fieldValidation instructs the server on how to handle objects + in the request (POST/PUT/PATCH) containing unknown or duplicate fields. + Valid values are: - Ignore: This will ignore any unknown fields that are + silently dropped from the object, and will ignore all but the last duplicate + field that the decoder encounters. This is the default behavior prior to + v1.23. - Warn: This will send a warning via the standard warning response + header for each unknown field that is dropped from the object, and for each + duplicate field that is encountered. The request will still succeed if there + are no other errors, and will only persist the last of any duplicate fields. + This is the default in v1.23+ - Strict: This will fail the request with + a BadRequest error if any unknown fields would be dropped from the object, + or if any duplicate fields are present. The error returned from the server + will contain all unknown and duplicate fields encountered.' + in: query + name: fieldValidation + schema: + type: string + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/v1alpha1.StorageVersionMigration' + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1alpha1.StorageVersionMigration' + application/yaml: + schema: + $ref: '#/components/schemas/v1alpha1.StorageVersionMigration' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1alpha1.StorageVersionMigration' + application/cbor: + schema: + $ref: '#/components/schemas/v1alpha1.StorageVersionMigration' + description: OK + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/v1alpha1.StorageVersionMigration' + application/yaml: + schema: + $ref: '#/components/schemas/v1alpha1.StorageVersionMigration' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1alpha1.StorageVersionMigration' + application/cbor: + schema: + $ref: '#/components/schemas/v1alpha1.StorageVersionMigration' + description: Created + "401": + content: {} + description: Unauthorized + tags: + - storagemigration_v1alpha1 + x-kubernetes-action: put + x-kubernetes-group-version-kind: + group: storagemigration.k8s.io + kind: StorageVersionMigration + version: v1alpha1 + x-codegen-request-body-name: body + x-contentType: application/json + x-accepts: application/json + /apis/storagemigration.k8s.io/v1alpha1/watch/storageversionmigrations: {} + /apis/storagemigration.k8s.io/v1alpha1/watch/storageversionmigrations/{name}: {} + /logs/: + get: + operationId: logFileListHandler + responses: + "401": + content: {} + description: Unauthorized + tags: + - logs + x-accepts: application/json + /logs/{logpath}: + get: + operationId: logFileHandler + parameters: + - description: path to the log + in: path + name: logpath + required: true + schema: + type: string + responses: + "401": + content: {} + description: Unauthorized + tags: + - logs + x-accepts: application/json + /version/: + get: + description: get the version information for this server + operationId: getCode + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/version.Info' + description: OK + "401": + content: {} + description: Unauthorized + tags: + - version + x-accepts: application/json + /apis/{group}/{version}: + get: + description: get available resources + operationId: getAPIResources + parameters: + - description: The custom resource's group name + in: path + name: group + required: true + schema: + type: string + - description: The custom resource's version + in: path + name: version + required: true + schema: + type: string + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.APIResourceList' + description: OK + "401": + content: {} + description: Unauthorized + tags: + - custom_objects + x-accepts: application/json + /apis/{group}/{version}/{resource_plural}: + get: + description: list or watch namespace scoped custom objects + operationId: listCustomObjectForAllNamespaces + parameters: + - description: If 'true', then the output is pretty printed. + in: query + name: pretty + schema: + type: string + - description: The custom resource's group name + in: path + name: group + required: true + schema: + type: string + - description: The custom resource's version + in: path + name: version + required: true + schema: + type: string + - description: The custom resource's plural name. For TPRs this would be lowercase + plural kind. + in: path + name: resource_plural + required: true + schema: + type: string + - description: 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. + in: query + name: allowWatchBookmarks + schema: + type: boolean + - description: |- + 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. + in: query + name: continue + 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 + - description: A selector to restrict the list of returned objects by their + labels. Defaults to everything. + in: query + name: labelSelector + schema: + type: string + - description: |- + limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. + + The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + in: query + name: limit + schema: + type: integer + - description: 'When specified with a watch call, shows changes that occur after + that particular version of a resource. Defaults to changes from the beginning + of history. When specified for list: - if unset, then the result is returned + from remote storage based on quorum-read flag; - if it''s 0, then we simply + return what we currently have in cache, no guarantee; - if set to non zero, + then the result is at least as fresh as given rv.' + in: query + name: resourceVersion + schema: + type: string + - description: |- + resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersionMatch + schema: + type: string + - description: Timeout for the list/watch call. This limits the duration of + the call, regardless of any activity or inactivity. + in: query + name: timeoutSeconds + schema: + type: integer + - description: Watch for changes to the described resources and return them + as a stream of add, update, and remove notifications. + in: query + name: watch + schema: + type: boolean + responses: + "200": + content: + application/json: + schema: + type: object + application/json;stream=watch: + schema: + type: object + description: OK + "401": + content: {} + description: Unauthorized + tags: + - custom_objects + x-accepts: application/json + /apis/{group}/{version}/{plural}: + delete: + description: Delete collection of cluster scoped custom objects + operationId: deleteCollectionClusterCustomObject + parameters: + - description: If 'true', then the output is pretty printed. + in: query + name: pretty + schema: + type: string + - description: The custom resource's group name + in: path + name: group + required: true + schema: + type: string + - description: The custom resource's version + in: path + name: version + required: true + schema: + type: string + - description: The custom resource's plural name. For TPRs this would be lowercase + plural kind. + in: path + name: plural + required: true + schema: + type: string + - description: A selector to restrict the list of returned objects by their + labels. Defaults to everything. + in: query + name: labelSelector + schema: + type: string + - description: 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. + in: query + name: gracePeriodSeconds + schema: + type: integer + - description: '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.' + in: query + name: orphanDependents + schema: + type: boolean + - description: 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. + in: query + name: propagationPolicy + schema: + type: string + - description: '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' + in: query + name: dryRun + schema: + type: string + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/v1.DeleteOptions' + required: false + responses: + "200": + content: + application/json: + schema: + type: object + description: OK + "401": + content: {} + description: Unauthorized + tags: + - custom_objects + x-codegen-request-body-name: body + x-contentType: application/json + x-accepts: application/json + get: + description: list or watch cluster scoped custom objects + operationId: listClusterCustomObject + parameters: + - description: If 'true', then the output is pretty printed. + in: query + name: pretty + schema: + type: string + - description: The custom resource's group name + in: path + name: group + required: true + schema: + type: string + - description: The custom resource's version + in: path + name: version + required: true + schema: + type: string + - description: The custom resource's plural name. For TPRs this would be lowercase + plural kind. + in: path + name: plural + required: true + schema: + type: string + - description: 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. + in: query + name: allowWatchBookmarks + schema: + type: boolean + - description: |- + 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. + in: query + name: continue + 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 + - description: A selector to restrict the list of returned objects by their + labels. Defaults to everything. + in: query + name: labelSelector + schema: + type: string + - description: |- + limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. + + The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + in: query + name: limit + schema: + type: integer + - description: 'When specified with a watch call, shows changes that occur after + that particular version of a resource. Defaults to changes from the beginning + of history. When specified for list: - if unset, then the result is returned + from remote storage based on quorum-read flag; - if it''s 0, then we simply + return what we currently have in cache, no guarantee; - if set to non zero, + then the result is at least as fresh as given rv.' + in: query + name: resourceVersion + schema: + type: string + - description: |- + resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersionMatch + schema: + type: string + - description: Timeout for the list/watch call. This limits the duration of + the call, regardless of any activity or inactivity. + in: query + name: timeoutSeconds + schema: + type: integer + - description: Watch for changes to the described resources and return them + as a stream of add, update, and remove notifications. + in: query + name: watch + schema: + type: boolean + responses: + "200": + content: + application/json: + schema: + type: object + application/json;stream=watch: + schema: + type: object + description: OK + "401": + content: {} + description: Unauthorized + tags: + - custom_objects + x-accepts: application/json + post: + description: Creates a cluster scoped Custom object + operationId: createClusterCustomObject + parameters: + - description: If 'true', then the output is pretty printed. + in: query + name: pretty + schema: + type: string + - description: The custom resource's group name + in: path + name: group + required: true + schema: + type: string + - description: The custom resource's version + in: path + name: version + required: true + schema: + type: string + - description: The custom resource's plural name. For TPRs this would be lowercase + plural kind. + in: path + name: plural + required: true + schema: + type: string + - description: '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' + in: query + name: dryRun + schema: + type: string + - description: fieldManager is a name associated with the actor or entity that + is making these changes. The value must be less than or 128 characters long, + and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + This field is required for apply requests (application/apply-patch) but + optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). + in: query + name: fieldManager + schema: + type: string + - description: 'fieldValidation instructs the server on how to handle objects + in the request (POST/PUT/PATCH) containing unknown or duplicate fields. + Valid values are: - Ignore: This will ignore any unknown fields that are + silently dropped from the object, and will ignore all but the last duplicate + field that the decoder encounters. This is the default behavior prior to + v1.23. - Warn: This will send a warning via the standard warning response + header for each unknown field that is dropped from the object, and for each + duplicate field that is encountered. The request will still succeed if there + are no other errors, and will only persist the last of any duplicate fields. + This is the default in v1.23+ - Strict: This will fail the request with + a BadRequest error if any unknown fields would be dropped from the object, + or if any duplicate fields are present. The error returned from the server + will contain all unknown and duplicate fields encountered. (optional)' + in: query + name: fieldValidation + schema: + type: string + requestBody: + content: + application/json: + schema: + type: object + description: The JSON schema of the Resource to create. + required: true + responses: + "201": + content: + application/json: + schema: + type: object + description: Created + "401": + content: {} + description: Unauthorized + tags: + - custom_objects + x-codegen-request-body-name: body + x-contentType: application/json + x-accepts: application/json + /apis/{group}/{version}/namespaces/{namespace}/{plural}: + delete: + description: Delete collection of namespace scoped custom objects + operationId: deleteCollectionNamespacedCustomObject + parameters: + - description: If 'true', then the output is pretty printed. + in: query + name: pretty + schema: + type: string + - description: The custom resource's group name + in: path + name: group + required: true + schema: + type: string + - description: The custom resource's version + in: path + name: version + required: true + schema: + type: string + - description: The custom resource's namespace + in: path + name: namespace + required: true + schema: + type: string + - description: The custom resource's plural name. For TPRs this would be lowercase + plural kind. + in: path + name: plural + required: true + schema: + type: string + - description: A selector to restrict the list of returned objects by their + labels. Defaults to everything. + in: query + name: labelSelector + schema: + type: string + - description: 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. + in: query + name: gracePeriodSeconds + schema: + type: integer + - description: '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.' + in: query + name: orphanDependents + schema: + type: boolean + - description: 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. + in: query + name: propagationPolicy + schema: + type: string + - description: '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' + in: query + 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: + schema: + $ref: '#/components/schemas/v1.DeleteOptions' + required: false + responses: + "200": + content: + application/json: + schema: + type: object + description: OK + "401": + content: {} + description: Unauthorized + tags: + - custom_objects + x-codegen-request-body-name: body + x-contentType: application/json + x-accepts: application/json + get: + description: list or watch namespace scoped custom objects + operationId: listNamespacedCustomObject + parameters: + - description: If 'true', then the output is pretty printed. + in: query + name: pretty + schema: + type: string + - description: The custom resource's group name + in: path + name: group + required: true + schema: + type: string + - description: The custom resource's version + in: path + name: version + required: true + schema: + type: string + - description: The custom resource's namespace + in: path + name: namespace + required: true + schema: + type: string + - description: The custom resource's plural name. For TPRs this would be lowercase + plural kind. + in: path + name: plural + required: true + schema: + type: string + - description: 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. + in: query + name: allowWatchBookmarks + schema: + type: boolean + - description: |- + 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. + in: query + name: continue + 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 + - description: A selector to restrict the list of returned objects by their + labels. Defaults to everything. + in: query + name: labelSelector + schema: + type: string + - description: |- + limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. + + The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + in: query + name: limit + schema: + type: integer + - description: 'When specified with a watch call, shows changes that occur after + that particular version of a resource. Defaults to changes from the beginning + of history. When specified for list: - if unset, then the result is returned + from remote storage based on quorum-read flag; - if it''s 0, then we simply + return what we currently have in cache, no guarantee; - if set to non zero, + then the result is at least as fresh as given rv.' + in: query + name: resourceVersion + schema: + type: string + - description: |- + resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersionMatch + schema: + type: string + - description: Timeout for the list/watch call. This limits the duration of + the call, regardless of any activity or inactivity. + in: query + name: timeoutSeconds + schema: + type: integer + - description: Watch for changes to the described resources and return them + as a stream of add, update, and remove notifications. + in: query + name: watch + schema: + type: boolean + responses: + "200": + content: + application/json: + schema: + type: object + application/json;stream=watch: + schema: + type: object + description: OK + "401": + content: {} + description: Unauthorized + tags: + - custom_objects + x-accepts: application/json + post: + description: Creates a namespace scoped Custom object + operationId: createNamespacedCustomObject + parameters: + - description: If 'true', then the output is pretty printed. + in: query + name: pretty + schema: + type: string + - description: The custom resource's group name + in: path + name: group + required: true + schema: + type: string + - description: The custom resource's version + in: path + name: version + required: true + schema: + type: string + - description: The custom resource's namespace + in: path + name: namespace + required: true + schema: + type: string + - description: The custom resource's plural name. For TPRs this would be lowercase + plural kind. + in: path + name: plural + required: true + schema: + type: string + - description: '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' + in: query + name: dryRun + schema: + type: string + - description: fieldManager is a name associated with the actor or entity that + is making these changes. The value must be less than or 128 characters long, + and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + in: query + name: fieldManager + schema: + type: string + - description: 'fieldValidation instructs the server on how to handle objects + in the request (POST/PUT/PATCH) containing unknown or duplicate fields. + Valid values are: - Ignore: This will ignore any unknown fields that are + silently dropped from the object, and will ignore all but the last duplicate + field that the decoder encounters. This is the default behavior prior to + v1.23. - Warn: This will send a warning via the standard warning response + header for each unknown field that is dropped from the object, and for each + duplicate field that is encountered. The request will still succeed if there + are no other errors, and will only persist the last of any duplicate fields. + This is the default in v1.23+ - Strict: This will fail the request with + a BadRequest error if any unknown fields would be dropped from the object, + or if any duplicate fields are present. The error returned from the server + will contain all unknown and duplicate fields encountered. (optional)' + in: query + name: fieldValidation + schema: + type: string + requestBody: + content: + application/json: + schema: + type: object + description: The JSON schema of the Resource to create. + required: true + responses: + "201": + content: + application/json: + schema: + type: object + description: Created + "401": + content: {} + description: Unauthorized + tags: + - custom_objects + x-codegen-request-body-name: body + x-contentType: application/json + x-accepts: application/json + /apis/{group}/{version}/{plural}/{name}: + delete: + description: Deletes the specified cluster scoped custom object + operationId: deleteClusterCustomObject + parameters: + - description: the custom resource's group + in: path + name: group + required: true + schema: + type: string + - description: the custom resource's version + in: path + name: version + required: true + schema: + type: string + - description: the custom object's plural name. For TPRs this would be lowercase + plural kind. + in: path + name: plural + required: true + schema: + type: string + - description: the custom object's name + in: path + name: name + required: true + schema: + type: string + - description: 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. + in: query + name: gracePeriodSeconds + schema: + type: integer + - description: '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.' + in: query + name: orphanDependents + schema: + type: boolean + - description: 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. + in: query + name: propagationPolicy + schema: + type: string + - description: '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' + in: query + name: dryRun + schema: + type: string + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/v1.DeleteOptions' + required: false + responses: + "200": + content: + application/json: + schema: + type: object + description: OK + "401": + content: {} + description: Unauthorized + tags: + - custom_objects + x-codegen-request-body-name: body + x-contentType: application/json + x-accepts: application/json + get: + description: Returns a cluster scoped custom object + operationId: getClusterCustomObject + parameters: + - description: the custom resource's group + in: path + name: group + required: true + schema: + type: string + - description: the custom resource's version + in: path + name: version + required: true + schema: + type: string + - description: the custom object's plural name. For TPRs this would be lowercase + plural kind. + in: path + name: plural + required: true + schema: + type: string + - description: the custom object's name + in: path + name: name + required: true + schema: + type: string + responses: + "200": + content: + application/json: + schema: + type: object + description: A single Resource + "401": + content: {} + description: Unauthorized + tags: + - custom_objects + x-accepts: application/json + patch: + description: patch the specified cluster scoped custom object + operationId: patchClusterCustomObject + parameters: + - description: the custom resource's group + in: path + name: group + required: true + schema: + type: string + - description: the custom resource's version + in: path + name: version + required: true + schema: + type: string + - description: the custom object's plural name. For TPRs this would be lowercase + plural kind. + in: path + name: plural + required: true + schema: + type: string + - description: the custom object's name + in: path + name: name + required: true + schema: + type: string + - description: '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' + in: query + name: dryRun + schema: + type: string + - description: fieldManager is a name associated with the actor or entity that + is making these changes. The value must be less than or 128 characters long, + and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + This field is required for apply requests (application/apply-patch) but + optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). + in: query + name: fieldManager + schema: + type: string + - description: 'fieldValidation instructs the server on how to handle objects + in the request (POST/PUT/PATCH) containing unknown or duplicate fields. + Valid values are: - Ignore: This will ignore any unknown fields that are + silently dropped from the object, and will ignore all but the last duplicate + field that the decoder encounters. This is the default behavior prior to + v1.23. - Warn: This will send a warning via the standard warning response + header for each unknown field that is dropped from the object, and for each + duplicate field that is encountered. The request will still succeed if there + are no other errors, and will only persist the last of any duplicate fields. + This is the default in v1.23+ - Strict: This will fail the request with + a BadRequest error if any unknown fields would be dropped from the object, + or if any duplicate fields are present. The error returned from the server + will contain all unknown and duplicate fields encountered. (optional)' + in: query + name: fieldValidation + schema: + type: string + - description: Force is going to "force" Apply requests. It means user will + re-acquire conflicting fields owned by other people. Force flag must be + unset for non-apply patch requests. + in: query + name: force + schema: + type: boolean + requestBody: + content: + application/json: + schema: + type: object + description: The JSON schema of the Resource to patch. + required: true + responses: + "200": + content: + application/json: + schema: + type: object + description: OK + "401": + content: {} + description: Unauthorized + tags: + - custom_objects + x-codegen-request-body-name: body + x-contentType: application/json + x-accepts: application/json + put: + description: replace the specified cluster scoped custom object + operationId: replaceClusterCustomObject + parameters: + - description: the custom resource's group + in: path + name: group + required: true + schema: + type: string + - description: the custom resource's version + in: path + name: version + required: true + schema: + type: string + - description: the custom object's plural name. For TPRs this would be lowercase + plural kind. + in: path + name: plural + required: true + schema: + type: string + - description: the custom object's name + in: path + name: name + required: true + schema: + type: string + - description: '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' + in: query + name: dryRun + schema: + type: string + - description: fieldManager is a name associated with the actor or entity that + is making these changes. The value must be less than or 128 characters long, + and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + in: query + name: fieldManager + schema: + type: string + - description: 'fieldValidation instructs the server on how to handle objects + in the request (POST/PUT/PATCH) containing unknown or duplicate fields. + Valid values are: - Ignore: This will ignore any unknown fields that are + silently dropped from the object, and will ignore all but the last duplicate + field that the decoder encounters. This is the default behavior prior to + v1.23. - Warn: This will send a warning via the standard warning response + header for each unknown field that is dropped from the object, and for each + duplicate field that is encountered. The request will still succeed if there + are no other errors, and will only persist the last of any duplicate fields. + This is the default in v1.23+ - Strict: This will fail the request with + a BadRequest error if any unknown fields would be dropped from the object, + or if any duplicate fields are present. The error returned from the server + will contain all unknown and duplicate fields encountered. (optional)' + in: query + name: fieldValidation + schema: + type: string + requestBody: + content: + application/json: + schema: + type: object + description: The JSON schema of the Resource to replace. + required: true + responses: + "200": + content: + application/json: + schema: + type: object + description: OK + "401": + content: {} + description: Unauthorized + tags: + - custom_objects + x-codegen-request-body-name: body + x-contentType: application/json + x-accepts: application/json + /apis/{group}/{version}/{plural}/{name}/status: + get: + description: read status of the specified cluster scoped custom object + operationId: getClusterCustomObjectStatus + parameters: + - description: the custom resource's group + in: path + name: group + required: true + schema: + type: string + - description: the custom resource's version + in: path + name: version + required: true + schema: + type: string + - description: the custom resource's plural name. For TPRs this would be lowercase + plural kind. + in: path + name: plural + required: true + schema: + type: string + - description: the custom object's name + in: path + name: name + required: true + schema: + type: string + responses: + "200": + content: + application/json: + schema: + type: object + application/yaml: + schema: + type: object + application/vnd.kubernetes.protobuf: + schema: + type: object + description: OK + "401": + content: {} + description: Unauthorized + tags: + - custom_objects + x-accepts: application/json + patch: + description: partially update status of the specified cluster scoped custom + object + operationId: patchClusterCustomObjectStatus + parameters: + - description: the custom resource's group + in: path + name: group + required: true + schema: + type: string + - description: the custom resource's version + in: path + name: version + required: true + schema: + type: string + - description: the custom resource's plural name. For TPRs this would be lowercase + plural kind. + in: path + name: plural + required: true + schema: + type: string + - description: the custom object's name + in: path + name: name + required: true + schema: + type: string + - description: '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' + in: query + name: dryRun + schema: + type: string + - description: fieldManager is a name associated with the actor or entity that + is making these changes. The value must be less than or 128 characters long, + and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + This field is required for apply requests (application/apply-patch) but + optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). + in: query + name: fieldManager + schema: + type: string + - description: 'fieldValidation instructs the server on how to handle objects + in the request (POST/PUT/PATCH) containing unknown or duplicate fields. + Valid values are: - Ignore: This will ignore any unknown fields that are + silently dropped from the object, and will ignore all but the last duplicate + field that the decoder encounters. This is the default behavior prior to + v1.23. - Warn: This will send a warning via the standard warning response + header for each unknown field that is dropped from the object, and for each + duplicate field that is encountered. The request will still succeed if there + are no other errors, and will only persist the last of any duplicate fields. + This is the default in v1.23+ - Strict: This will fail the request with + a BadRequest error if any unknown fields would be dropped from the object, + or if any duplicate fields are present. The error returned from the server + will contain all unknown and duplicate fields encountered. (optional)' + in: query + name: fieldValidation + schema: + type: string + - description: Force is going to "force" Apply requests. It means user will + re-acquire conflicting fields owned by other people. Force flag must be + unset for non-apply patch requests. + in: query + name: force + schema: + type: boolean + requestBody: + content: + application/json: + schema: + description: The JSON schema of the Resource to patch. + type: object + required: true + responses: + "200": + content: + application/json: + schema: + type: object + application/yaml: + schema: + type: object + application/vnd.kubernetes.protobuf: + schema: + type: object + description: OK + "401": + content: {} + description: Unauthorized + tags: + - custom_objects + x-codegen-request-body-name: body + x-contentType: application/json + x-accepts: application/json + put: + description: replace status of the cluster scoped specified custom object + operationId: replaceClusterCustomObjectStatus + parameters: + - description: the custom resource's group + in: path + name: group + required: true + schema: + type: string + - description: the custom resource's version + in: path + name: version + required: true + schema: + type: string + - description: the custom resource's plural name. For TPRs this would be lowercase + plural kind. + in: path + name: plural + required: true + schema: + type: string + - description: the custom object's name + in: path + name: name + required: true + schema: + type: string + - description: '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' + in: query + name: dryRun + schema: + type: string + - description: fieldManager is a name associated with the actor or entity that + is making these changes. The value must be less than or 128 characters long, + and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + in: query + name: fieldManager + schema: + type: string + - description: 'fieldValidation instructs the server on how to handle objects + in the request (POST/PUT/PATCH) containing unknown or duplicate fields. + Valid values are: - Ignore: This will ignore any unknown fields that are + silently dropped from the object, and will ignore all but the last duplicate + field that the decoder encounters. This is the default behavior prior to + v1.23. - Warn: This will send a warning via the standard warning response + header for each unknown field that is dropped from the object, and for each + duplicate field that is encountered. The request will still succeed if there + are no other errors, and will only persist the last of any duplicate fields. + This is the default in v1.23+ - Strict: This will fail the request with + a BadRequest error if any unknown fields would be dropped from the object, + or if any duplicate fields are present. The error returned from the server + will contain all unknown and duplicate fields encountered. (optional)' + in: query + name: fieldValidation + schema: + type: string + requestBody: + content: + application/json: + schema: + type: object + required: true + responses: + "200": + content: + application/json: + schema: + type: object + application/yaml: + schema: + type: object + application/vnd.kubernetes.protobuf: + schema: + type: object + description: OK + "201": + content: + application/json: + schema: + type: object + application/yaml: + schema: + type: object + application/vnd.kubernetes.protobuf: + schema: + type: object + description: Created + "401": + content: {} + description: Unauthorized + tags: + - custom_objects + x-codegen-request-body-name: body + x-contentType: application/json + x-accepts: application/json + /apis/{group}/{version}/{plural}/{name}/scale: + get: + description: read scale of the specified custom object + operationId: getClusterCustomObjectScale + parameters: + - description: the custom resource's group + in: path + name: group + required: true + schema: + type: string + - description: the custom resource's version + in: path + name: version + required: true + schema: + type: string + - description: the custom resource's plural name. For TPRs this would be lowercase + plural kind. + in: path + name: plural + required: true + schema: + type: string + - description: the custom object's name + in: path + name: name + required: true + schema: + type: string + responses: + "200": + content: + application/json: + schema: + type: object + application/yaml: + schema: + type: object + application/vnd.kubernetes.protobuf: + schema: + type: object + description: OK + "401": + content: {} + description: Unauthorized + tags: + - custom_objects + x-accepts: application/json + patch: + description: partially update scale of the specified cluster scoped custom object + operationId: patchClusterCustomObjectScale + parameters: + - description: the custom resource's group + in: path + name: group + required: true + schema: + type: string + - description: the custom resource's version + in: path + name: version + required: true + schema: + type: string + - description: the custom resource's plural name. For TPRs this would be lowercase + plural kind. + in: path + name: plural + required: true + schema: + type: string + - description: the custom object's name + in: path + name: name + required: true + schema: + type: string + - description: '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' + in: query + name: dryRun + schema: + type: string + - description: fieldManager is a name associated with the actor or entity that + is making these changes. The value must be less than or 128 characters long, + and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + This field is required for apply requests (application/apply-patch) but + optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). + in: query + name: fieldManager + schema: + type: string + - description: 'fieldValidation instructs the server on how to handle objects + in the request (POST/PUT/PATCH) containing unknown or duplicate fields. + Valid values are: - Ignore: This will ignore any unknown fields that are + silently dropped from the object, and will ignore all but the last duplicate + field that the decoder encounters. This is the default behavior prior to + v1.23. - Warn: This will send a warning via the standard warning response + header for each unknown field that is dropped from the object, and for each + duplicate field that is encountered. The request will still succeed if there + are no other errors, and will only persist the last of any duplicate fields. + This is the default in v1.23+ - Strict: This will fail the request with + a BadRequest error if any unknown fields would be dropped from the object, + or if any duplicate fields are present. The error returned from the server + will contain all unknown and duplicate fields encountered. (optional)' + in: query + name: fieldValidation + schema: + type: string + - description: Force is going to "force" Apply requests. It means user will + re-acquire conflicting fields owned by other people. Force flag must be + unset for non-apply patch requests. + in: query + name: force + schema: + type: boolean + requestBody: + content: + application/json: + schema: + description: The JSON schema of the Resource to patch. + type: object + required: true + responses: + "200": + content: + application/json: + schema: + type: object + application/yaml: + schema: + type: object + application/vnd.kubernetes.protobuf: + schema: + type: object + description: OK + "401": + content: {} + description: Unauthorized + tags: + - custom_objects + x-codegen-request-body-name: body + x-contentType: application/json + x-accepts: application/json + put: + description: replace scale of the specified cluster scoped custom object + operationId: replaceClusterCustomObjectScale + parameters: + - description: the custom resource's group + in: path + name: group + required: true + schema: + type: string + - description: the custom resource's version + in: path + name: version + required: true + schema: + type: string + - description: the custom resource's plural name. For TPRs this would be lowercase + plural kind. + in: path + name: plural + required: true + schema: + type: string + - description: the custom object's name + in: path + name: name + required: true + schema: + type: string + - description: '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' + in: query + name: dryRun + schema: + type: string + - description: fieldManager is a name associated with the actor or entity that + is making these changes. The value must be less than or 128 characters long, + and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + in: query + name: fieldManager + schema: + type: string + - description: 'fieldValidation instructs the server on how to handle objects + in the request (POST/PUT/PATCH) containing unknown or duplicate fields. + Valid values are: - Ignore: This will ignore any unknown fields that are + silently dropped from the object, and will ignore all but the last duplicate + field that the decoder encounters. This is the default behavior prior to + v1.23. - Warn: This will send a warning via the standard warning response + header for each unknown field that is dropped from the object, and for each + duplicate field that is encountered. The request will still succeed if there + are no other errors, and will only persist the last of any duplicate fields. + This is the default in v1.23+ - Strict: This will fail the request with + a BadRequest error if any unknown fields would be dropped from the object, + or if any duplicate fields are present. The error returned from the server + will contain all unknown and duplicate fields encountered. (optional)' + in: query + name: fieldValidation + schema: + type: string + requestBody: + content: + application/json: + schema: + type: object + required: true + responses: + "200": + content: + application/json: + schema: + type: object + application/yaml: + schema: + type: object + application/vnd.kubernetes.protobuf: + schema: + type: object + description: OK + "201": + content: + application/json: + schema: + type: object + application/yaml: + schema: + type: object + application/vnd.kubernetes.protobuf: + schema: + type: object + description: Created + "401": + content: {} + description: Unauthorized + tags: + - custom_objects + x-codegen-request-body-name: body + x-contentType: application/json + x-accepts: application/json + /apis/{group}/{version}/namespaces/{namespace}/{plural}/{name}: + delete: + description: Deletes the specified namespace scoped custom object + operationId: deleteNamespacedCustomObject + parameters: + - description: the custom resource's group + in: path + name: group + required: true + schema: + type: string + - description: the custom resource's version + in: path + name: version + required: true + schema: + type: string + - description: The custom resource's namespace + in: path + name: namespace + required: true + schema: + type: string + - description: the custom resource's plural name. For TPRs this would be lowercase + plural kind. + in: path + name: plural + required: true + schema: + type: string + - description: the custom object's name + in: path + name: name + required: true + schema: + type: string + - description: 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. + in: query + name: gracePeriodSeconds + schema: + type: integer + - description: '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.' + in: query + name: orphanDependents + schema: + type: boolean + - description: 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. + in: query + name: propagationPolicy + schema: + type: string + - description: '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' + in: query + name: dryRun + schema: + type: string + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/v1.DeleteOptions' + required: false + responses: + "200": + content: + application/json: + schema: + type: object + description: OK + "401": + content: {} + description: Unauthorized + tags: + - custom_objects + x-codegen-request-body-name: body + x-contentType: application/json + x-accepts: application/json + get: + description: Returns a namespace scoped custom object + operationId: getNamespacedCustomObject + parameters: + - description: the custom resource's group + in: path + name: group + required: true + schema: + type: string + - description: the custom resource's version + in: path + name: version + required: true + schema: + type: string + - description: The custom resource's namespace + in: path + name: namespace + required: true + schema: + type: string + - description: the custom resource's plural name. For TPRs this would be lowercase + plural kind. + in: path + name: plural + required: true + schema: + type: string + - description: the custom object's name + in: path + name: name + required: true + schema: + type: string + responses: + "200": + content: + application/json: + schema: + type: object + description: A single Resource + "401": + content: {} + description: Unauthorized + tags: + - custom_objects + x-accepts: application/json + patch: + description: patch the specified namespace scoped custom object + operationId: patchNamespacedCustomObject + parameters: + - description: the custom resource's group + in: path + name: group + required: true + schema: + type: string + - description: the custom resource's version + in: path + name: version + required: true + schema: + type: string + - description: The custom resource's namespace + in: path + name: namespace + required: true + schema: + type: string + - description: the custom resource's plural name. For TPRs this would be lowercase + plural kind. + in: path + name: plural + required: true + schema: + type: string + - description: the custom object's name + in: path + name: name + required: true + schema: + type: string + - description: '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' + in: query + name: dryRun + schema: + type: string + - description: fieldManager is a name associated with the actor or entity that + is making these changes. The value must be less than or 128 characters long, + and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + This field is required for apply requests (application/apply-patch) but + optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). + in: query + name: fieldManager + schema: + type: string + - description: 'fieldValidation instructs the server on how to handle objects + in the request (POST/PUT/PATCH) containing unknown or duplicate fields. + Valid values are: - Ignore: This will ignore any unknown fields that are + silently dropped from the object, and will ignore all but the last duplicate + field that the decoder encounters. This is the default behavior prior to + v1.23. - Warn: This will send a warning via the standard warning response + header for each unknown field that is dropped from the object, and for each + duplicate field that is encountered. The request will still succeed if there + are no other errors, and will only persist the last of any duplicate fields. + This is the default in v1.23+ - Strict: This will fail the request with + a BadRequest error if any unknown fields would be dropped from the object, + or if any duplicate fields are present. The error returned from the server + will contain all unknown and duplicate fields encountered. (optional)' + in: query + name: fieldValidation + schema: + type: string + - description: Force is going to "force" Apply requests. It means user will + re-acquire conflicting fields owned by other people. Force flag must be + unset for non-apply patch requests. + in: query + name: force + schema: + type: boolean + requestBody: + content: + application/json: + schema: + type: object + description: The JSON schema of the Resource to patch. + required: true + responses: + "200": + content: + application/json: + schema: + type: object + description: OK + "401": + content: {} + description: Unauthorized + tags: + - custom_objects + x-codegen-request-body-name: body + x-contentType: application/json + x-accepts: application/json + put: + description: replace the specified namespace scoped custom object + operationId: replaceNamespacedCustomObject + parameters: + - description: the custom resource's group + in: path + name: group + required: true + schema: + type: string + - description: the custom resource's version + in: path + name: version + required: true + schema: + type: string + - description: The custom resource's namespace + in: path + name: namespace + required: true + schema: + type: string + - description: the custom resource's plural name. For TPRs this would be lowercase + plural kind. + in: path + name: plural + required: true + schema: + type: string + - description: the custom object's name + in: path + name: name + required: true + schema: + type: string + - description: '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' + in: query + name: dryRun + schema: + type: string + - description: fieldManager is a name associated with the actor or entity that + is making these changes. The value must be less than or 128 characters long, + and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + in: query + name: fieldManager + schema: + type: string + - description: 'fieldValidation instructs the server on how to handle objects + in the request (POST/PUT/PATCH) containing unknown or duplicate fields. + Valid values are: - Ignore: This will ignore any unknown fields that are + silently dropped from the object, and will ignore all but the last duplicate + field that the decoder encounters. This is the default behavior prior to + v1.23. - Warn: This will send a warning via the standard warning response + header for each unknown field that is dropped from the object, and for each + duplicate field that is encountered. The request will still succeed if there + are no other errors, and will only persist the last of any duplicate fields. + This is the default in v1.23+ - Strict: This will fail the request with + a BadRequest error if any unknown fields would be dropped from the object, + or if any duplicate fields are present. The error returned from the server + will contain all unknown and duplicate fields encountered. (optional)' + in: query + name: fieldValidation + schema: + type: string + requestBody: + content: + application/json: + schema: + type: object + description: The JSON schema of the Resource to replace. + required: true + responses: + "200": + content: + application/json: + schema: + type: object + description: OK + "401": + content: {} + description: Unauthorized + tags: + - custom_objects + x-codegen-request-body-name: body + x-contentType: application/json + x-accepts: application/json + /apis/{group}/{version}/namespaces/{namespace}/{plural}/{name}/status: + get: + description: read status of the specified namespace scoped custom object + operationId: getNamespacedCustomObjectStatus + parameters: + - description: the custom resource's group + in: path + name: group + required: true + schema: + type: string + - description: the custom resource's version + in: path + name: version + required: true + schema: + type: string + - description: The custom resource's namespace + in: path + name: namespace + required: true + schema: + type: string + - description: the custom resource's plural name. For TPRs this would be lowercase + plural kind. + in: path + name: plural + required: true + schema: + type: string + - description: the custom object's name + in: path + name: name + required: true + schema: + type: string + responses: + "200": + content: + application/json: + schema: + type: object + application/yaml: + schema: + type: object + application/vnd.kubernetes.protobuf: + schema: + type: object + description: OK + "401": + content: {} + description: Unauthorized + tags: + - custom_objects + x-accepts: application/json + patch: + description: partially update status of the specified namespace scoped custom + object + operationId: patchNamespacedCustomObjectStatus + parameters: + - description: the custom resource's group + in: path + name: group + required: true + schema: + type: string + - description: the custom resource's version + in: path + name: version + required: true + schema: + type: string + - description: The custom resource's namespace + in: path + name: namespace + required: true + schema: + type: string + - description: the custom resource's plural name. For TPRs this would be lowercase + plural kind. + in: path + name: plural + required: true + schema: + type: string + - description: the custom object's name + in: path + name: name + required: true + schema: + type: string + - description: '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' + in: query + name: dryRun + schema: + type: string + - description: fieldManager is a name associated with the actor or entity that + is making these changes. The value must be less than or 128 characters long, + and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + This field is required for apply requests (application/apply-patch) but + optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). + in: query + name: fieldManager + schema: + type: string + - description: 'fieldValidation instructs the server on how to handle objects + in the request (POST/PUT/PATCH) containing unknown or duplicate fields. + Valid values are: - Ignore: This will ignore any unknown fields that are + silently dropped from the object, and will ignore all but the last duplicate + field that the decoder encounters. This is the default behavior prior to + v1.23. - Warn: This will send a warning via the standard warning response + header for each unknown field that is dropped from the object, and for each + duplicate field that is encountered. The request will still succeed if there + are no other errors, and will only persist the last of any duplicate fields. + This is the default in v1.23+ - Strict: This will fail the request with + a BadRequest error if any unknown fields would be dropped from the object, + or if any duplicate fields are present. The error returned from the server + will contain all unknown and duplicate fields encountered. (optional)' + in: query + name: fieldValidation + schema: + type: string + - description: Force is going to "force" Apply requests. It means user will + re-acquire conflicting fields owned by other people. Force flag must be + unset for non-apply patch requests. + in: query + name: force + schema: + type: boolean + requestBody: + content: + application/json: + schema: + description: The JSON schema of the Resource to patch. + type: object + required: true + responses: + "200": + content: + application/json: + schema: + type: object + application/yaml: + schema: + type: object + application/vnd.kubernetes.protobuf: + schema: + type: object + description: OK + "401": + content: {} + description: Unauthorized + tags: + - custom_objects + x-codegen-request-body-name: body + x-contentType: application/json + x-accepts: application/json + put: + description: replace status of the specified namespace scoped custom object + operationId: replaceNamespacedCustomObjectStatus + parameters: + - description: the custom resource's group + in: path + name: group + required: true + schema: + type: string + - description: the custom resource's version + in: path + name: version + required: true + schema: + type: string + - description: The custom resource's namespace + in: path + name: namespace + required: true + schema: + type: string + - description: the custom resource's plural name. For TPRs this would be lowercase + plural kind. + in: path + name: plural + required: true + schema: + type: string + - description: the custom object's name + in: path + name: name + required: true + schema: + type: string + - description: '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' + in: query + name: dryRun + schema: + type: string + - description: fieldManager is a name associated with the actor or entity that + is making these changes. The value must be less than or 128 characters long, + and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + in: query + name: fieldManager + schema: + type: string + - description: 'fieldValidation instructs the server on how to handle objects + in the request (POST/PUT/PATCH) containing unknown or duplicate fields. + Valid values are: - Ignore: This will ignore any unknown fields that are + silently dropped from the object, and will ignore all but the last duplicate + field that the decoder encounters. This is the default behavior prior to + v1.23. - Warn: This will send a warning via the standard warning response + header for each unknown field that is dropped from the object, and for each + duplicate field that is encountered. The request will still succeed if there + are no other errors, and will only persist the last of any duplicate fields. + This is the default in v1.23+ - Strict: This will fail the request with + a BadRequest error if any unknown fields would be dropped from the object, + or if any duplicate fields are present. The error returned from the server + will contain all unknown and duplicate fields encountered. (optional)' + in: query + name: fieldValidation + schema: + type: string + requestBody: + content: + application/json: + schema: + type: object + required: true + responses: + "200": + content: + application/json: + schema: + type: object + application/yaml: + schema: + type: object + application/vnd.kubernetes.protobuf: + schema: + type: object + description: OK + "201": + content: + application/json: + schema: + type: object + application/yaml: + schema: + type: object + application/vnd.kubernetes.protobuf: + schema: + type: object + description: Created + "401": + content: {} + description: Unauthorized + tags: + - custom_objects + x-codegen-request-body-name: body + x-contentType: application/json + x-accepts: application/json + /apis/{group}/{version}/namespaces/{namespace}/{plural}/{name}/scale: + get: + description: read scale of the specified namespace scoped custom object + operationId: getNamespacedCustomObjectScale + parameters: + - description: the custom resource's group + in: path + name: group + required: true + schema: + type: string + - description: the custom resource's version + in: path + name: version + required: true + schema: + type: string + - description: The custom resource's namespace + in: path + name: namespace + required: true + schema: + type: string + - description: the custom resource's plural name. For TPRs this would be lowercase + plural kind. + in: path + name: plural + required: true + schema: + type: string + - description: the custom object's name + in: path + name: name + required: true + schema: + type: string + responses: + "200": + content: + application/json: + schema: + type: object + application/yaml: + schema: + type: object + application/vnd.kubernetes.protobuf: + schema: + type: object + description: OK + "401": + content: {} + description: Unauthorized + tags: + - custom_objects + x-accepts: application/json + patch: + description: partially update scale of the specified namespace scoped custom + object + operationId: patchNamespacedCustomObjectScale + parameters: + - description: the custom resource's group + in: path + name: group + required: true + schema: + type: string + - description: the custom resource's version + in: path + name: version + required: true + schema: + type: string + - description: The custom resource's namespace + in: path + name: namespace + required: true + schema: + type: string + - description: the custom resource's plural name. For TPRs this would be lowercase + plural kind. + in: path + name: plural + required: true + schema: + type: string + - description: the custom object's name + in: path + name: name + required: true + schema: + type: string + - description: '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' + in: query + name: dryRun + schema: + type: string + - description: fieldManager is a name associated with the actor or entity that + is making these changes. The value must be less than or 128 characters long, + and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + This field is required for apply requests (application/apply-patch) but + optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). + in: query + name: fieldManager + schema: + type: string + - description: 'fieldValidation instructs the server on how to handle objects + in the request (POST/PUT/PATCH) containing unknown or duplicate fields. + Valid values are: - Ignore: This will ignore any unknown fields that are + silently dropped from the object, and will ignore all but the last duplicate + field that the decoder encounters. This is the default behavior prior to + v1.23. - Warn: This will send a warning via the standard warning response + header for each unknown field that is dropped from the object, and for each + duplicate field that is encountered. The request will still succeed if there + are no other errors, and will only persist the last of any duplicate fields. + This is the default in v1.23+ - Strict: This will fail the request with + a BadRequest error if any unknown fields would be dropped from the object, + or if any duplicate fields are present. The error returned from the server + will contain all unknown and duplicate fields encountered. (optional)' + in: query + name: fieldValidation + schema: + type: string + - description: Force is going to "force" Apply requests. It means user will + re-acquire conflicting fields owned by other people. Force flag must be + unset for non-apply patch requests. + in: query + name: force + schema: + type: boolean + requestBody: + content: + application/json: + schema: + description: The JSON schema of the Resource to patch. + type: object + required: true + responses: + "200": + content: + application/json: + schema: + type: object + application/yaml: + schema: + type: object + application/vnd.kubernetes.protobuf: + schema: + type: object + description: OK + "401": + content: {} + description: Unauthorized + tags: + - custom_objects + x-codegen-request-body-name: body + x-contentType: application/json + x-accepts: application/json + put: + description: replace scale of the specified namespace scoped custom object + operationId: replaceNamespacedCustomObjectScale + parameters: + - description: the custom resource's group + in: path + name: group + required: true + schema: + type: string + - description: the custom resource's version + in: path + name: version + required: true + schema: + type: string + - description: The custom resource's namespace + in: path + name: namespace + required: true + schema: + type: string + - description: the custom resource's plural name. For TPRs this would be lowercase + plural kind. + in: path + name: plural + required: true + schema: + type: string + - description: the custom object's name + in: path + name: name + required: true + schema: + type: string + - description: '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' + in: query + name: dryRun + schema: + type: string + - description: fieldManager is a name associated with the actor or entity that + is making these changes. The value must be less than or 128 characters long, + and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + in: query + name: fieldManager + schema: + type: string + - description: 'fieldValidation instructs the server on how to handle objects + in the request (POST/PUT/PATCH) containing unknown or duplicate fields. + Valid values are: - Ignore: This will ignore any unknown fields that are + silently dropped from the object, and will ignore all but the last duplicate + field that the decoder encounters. This is the default behavior prior to + v1.23. - Warn: This will send a warning via the standard warning response + header for each unknown field that is dropped from the object, and for each + duplicate field that is encountered. The request will still succeed if there + are no other errors, and will only persist the last of any duplicate fields. + This is the default in v1.23+ - Strict: This will fail the request with + a BadRequest error if any unknown fields would be dropped from the object, + or if any duplicate fields are present. The error returned from the server + will contain all unknown and duplicate fields encountered. (optional)' + in: query + name: fieldValidation + schema: + type: string + requestBody: + content: + application/json: + schema: + type: object + required: true + responses: + "200": + content: + application/json: + schema: + type: object + application/yaml: + schema: + type: object + application/vnd.kubernetes.protobuf: + schema: + type: object + description: OK + "201": + content: + application/json: + schema: + type: object + application/yaml: + schema: + type: object + application/vnd.kubernetes.protobuf: + schema: + type: object + description: Created + "401": + content: {} + description: Unauthorized + tags: + - custom_objects + x-codegen-request-body-name: body + x-contentType: application/json + x-accepts: application/json + /.well-known/openid-configuration: + get: + description: get service account issuer OpenID configuration, also known as + the 'OIDC discovery doc' + operationId: getServiceAccountIssuerOpenIDConfiguration + responses: + "200": + content: + application/json: + schema: + type: string + description: OK + "401": + content: {} + description: Unauthorized + tags: + - WellKnown + x-accepts: application/json + /openid/v1/jwks: + get: + description: get service account issuer OpenID JSON Web Key Set (contains public + token verification keys) + operationId: getServiceAccountIssuerOpenIDKeyset + responses: + "200": + content: + application/jwk-set+json: + schema: + type: string + description: OK + "401": + content: {} + description: Unauthorized + tags: + - openid + x-accepts: application/jwk-set+json +components: + schemas: + v1.AuditAnnotation: + description: AuditAnnotation describes how to produce an audit annotation for + an API request. + example: + valueExpression: valueExpression + key: key + properties: + key: + description: |- + 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. + type: string + valueExpression: + description: |- + 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. + type: string + required: + - key + - valueExpression + type: object + v1.ExpressionWarning: + description: ExpressionWarning is a warning information that targets a specific + expression. + example: + fieldRef: fieldRef + warning: warning + properties: + fieldRef: + description: 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" + type: string + warning: + description: 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. + type: string + required: + - fieldRef + - warning + type: object + v1.MatchCondition: + description: MatchCondition represents a condition which must by fulfilled for + a request to be sent to a webhook. + example: + expression: expression + name: name + properties: + expression: + description: |- + 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. + type: string + name: + description: |- + 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. + type: string + required: + - expression + - name + type: object + v1.MatchResources: + 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) + example: + matchPolicy: matchPolicy + resourceRules: + - resourceNames: + - resourceNames + - resourceNames + operations: + - operations + - operations + apiVersions: + - apiVersions + - apiVersions + scope: scope + resources: + - resources + - resources + apiGroups: + - apiGroups + - apiGroups + - resourceNames: + - resourceNames + - resourceNames + operations: + - operations + - operations + apiVersions: + - apiVersions + - apiVersions + scope: scope + resources: + - resources + - resources + apiGroups: + - apiGroups + - apiGroups + excludeResourceRules: + - resourceNames: + - resourceNames + - resourceNames + operations: + - operations + - operations + apiVersions: + - apiVersions + - apiVersions + scope: scope + resources: + - resources + - resources + apiGroups: + - apiGroups + - apiGroups + - resourceNames: + - resourceNames + - resourceNames + operations: + - operations + - operations + apiVersions: + - apiVersions + - apiVersions + scope: scope + resources: + - resources + - resources + apiGroups: + - apiGroups + - apiGroups + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + objectSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + properties: + excludeResourceRules: + description: 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) + items: + $ref: '#/components/schemas/v1.NamedRuleWithOperations' + type: array + x-kubernetes-list-type: atomic + matchPolicy: + description: |- + 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" + type: string + namespaceSelector: + $ref: '#/components/schemas/v1.LabelSelector' + objectSelector: + $ref: '#/components/schemas/v1.LabelSelector' + resourceRules: + description: ResourceRules describes what operations on what resources/subresources + the ValidatingAdmissionPolicy matches. The policy cares about an operation + if it matches _any_ Rule. + items: + $ref: '#/components/schemas/v1.NamedRuleWithOperations' + type: array + x-kubernetes-list-type: atomic + type: object + x-kubernetes-map-type: atomic + v1.MutatingWebhook: + description: MutatingWebhook describes an admission webhook and the resources + and operations it applies to. + example: + admissionReviewVersions: + - admissionReviewVersions + - admissionReviewVersions + matchPolicy: matchPolicy + reinvocationPolicy: reinvocationPolicy + name: name + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + timeoutSeconds: 6 + rules: + - operations: + - operations + - operations + apiVersions: + - apiVersions + - apiVersions + scope: scope + resources: + - resources + - resources + apiGroups: + - apiGroups + - apiGroups + - operations: + - operations + - operations + apiVersions: + - apiVersions + - apiVersions + scope: scope + resources: + - resources + - resources + apiGroups: + - apiGroups + - apiGroups + clientConfig: + caBundle: caBundle + service: + path: path + port: 0 + name: name + namespace: namespace + url: url + matchConditions: + - expression: expression + name: name + - expression: expression + name: name + objectSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + failurePolicy: failurePolicy + sideEffects: sideEffects + properties: + admissionReviewVersions: + description: 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. + items: + type: string + type: array + x-kubernetes-list-type: atomic + clientConfig: + $ref: '#/components/schemas/admissionregistration.v1.WebhookClientConfig' + failurePolicy: + description: FailurePolicy defines how unrecognized errors from the admission + endpoint are handled - allowed values are Ignore or Fail. Defaults to + Fail. + type: string + matchConditions: + description: |- + 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 + items: + $ref: '#/components/schemas/v1.MatchCondition' + type: array + x-kubernetes-patch-strategy: merge + x-kubernetes-list-type: map + x-kubernetes-list-map-keys: + - name + x-kubernetes-patch-merge-key: name + matchPolicy: + description: |- + 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" + type: string + name: + description: 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. + type: string + namespaceSelector: + $ref: '#/components/schemas/v1.LabelSelector' + objectSelector: + $ref: '#/components/schemas/v1.LabelSelector' + reinvocationPolicy: + description: |- + 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". + type: string + rules: + description: 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. + items: + $ref: '#/components/schemas/v1.RuleWithOperations' + type: array + x-kubernetes-list-type: atomic + sideEffects: + description: '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.' + type: string + timeoutSeconds: + description: 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. + format: int32 + type: integer + required: + - admissionReviewVersions + - clientConfig + - name + - sideEffects + type: object + v1.MutatingWebhookConfiguration: + description: MutatingWebhookConfiguration describes the configuration of and + admission webhook that accept or reject and may change the object. + example: + metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: '{}' + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: '{}' + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + creationTimestamp: 2000-01-23T04:56:07.000+00:00 + name: name + namespace: namespace + apiVersion: apiVersion + webhooks: + - admissionReviewVersions: + - admissionReviewVersions + - admissionReviewVersions + matchPolicy: matchPolicy + reinvocationPolicy: reinvocationPolicy + name: name + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + timeoutSeconds: 6 + rules: + - operations: + - operations + - operations + apiVersions: + - apiVersions + - apiVersions + scope: scope + resources: + - resources + - resources + apiGroups: + - apiGroups + - apiGroups + - operations: + - operations + - operations + apiVersions: + - apiVersions + - apiVersions + scope: scope + resources: + - resources + - resources + apiGroups: + - apiGroups + - apiGroups + clientConfig: + caBundle: caBundle + service: + path: path + port: 0 + name: name + namespace: namespace + url: url + matchConditions: + - expression: expression + name: name + - expression: expression + name: name + objectSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + failurePolicy: failurePolicy + sideEffects: sideEffects + - admissionReviewVersions: + - admissionReviewVersions + - admissionReviewVersions + matchPolicy: matchPolicy + reinvocationPolicy: reinvocationPolicy + name: name + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + timeoutSeconds: 6 + rules: + - operations: + - operations + - operations + apiVersions: + - apiVersions + - apiVersions + scope: scope + resources: + - resources + - resources + apiGroups: + - apiGroups + - apiGroups + - operations: + - operations + - operations + apiVersions: + - apiVersions + - apiVersions + scope: scope + resources: + - resources + - resources + apiGroups: + - apiGroups + - apiGroups + clientConfig: + caBundle: caBundle + service: + path: path + port: 0 + name: name + namespace: namespace + url: url + matchConditions: + - expression: expression + name: name + - expression: expression + name: name + objectSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + failurePolicy: failurePolicy + sideEffects: sideEffects + kind: kind + properties: + apiVersion: + description: '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' + type: string + kind: + description: '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' + type: string + metadata: + $ref: '#/components/schemas/v1.ObjectMeta' + webhooks: + description: Webhooks is a list of webhooks and the affected resources and + operations. + items: + $ref: '#/components/schemas/v1.MutatingWebhook' + type: array + x-kubernetes-patch-strategy: merge + x-kubernetes-list-type: map + x-kubernetes-list-map-keys: + - name + x-kubernetes-patch-merge-key: name + type: object + x-kubernetes-group-version-kind: + - group: admissionregistration.k8s.io + kind: MutatingWebhookConfiguration + version: v1 + x-implements: + - io.kubernetes.client.common.KubernetesObject + v1.MutatingWebhookConfigurationList: + description: MutatingWebhookConfigurationList is a list of MutatingWebhookConfiguration. + example: + metadata: + remainingItemCount: 1 + continue: continue + resourceVersion: resourceVersion + selfLink: selfLink + apiVersion: apiVersion + kind: kind + items: + - metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: '{}' + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: '{}' + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + creationTimestamp: 2000-01-23T04:56:07.000+00:00 + name: name + namespace: namespace + apiVersion: apiVersion + webhooks: + - admissionReviewVersions: + - admissionReviewVersions + - admissionReviewVersions + matchPolicy: matchPolicy + reinvocationPolicy: reinvocationPolicy + name: name + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + timeoutSeconds: 6 + rules: + - operations: + - operations + - operations + apiVersions: + - apiVersions + - apiVersions + scope: scope + resources: + - resources + - resources + apiGroups: + - apiGroups + - apiGroups + - operations: + - operations + - operations + apiVersions: + - apiVersions + - apiVersions + scope: scope + resources: + - resources + - resources + apiGroups: + - apiGroups + - apiGroups + clientConfig: + caBundle: caBundle + service: + path: path + port: 0 + name: name + namespace: namespace + url: url + matchConditions: + - expression: expression + name: name + - expression: expression + name: name + objectSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + failurePolicy: failurePolicy + sideEffects: sideEffects + - admissionReviewVersions: + - admissionReviewVersions + - admissionReviewVersions + matchPolicy: matchPolicy + reinvocationPolicy: reinvocationPolicy + name: name + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + timeoutSeconds: 6 + rules: + - operations: + - operations + - operations + apiVersions: + - apiVersions + - apiVersions + scope: scope + resources: + - resources + - resources + apiGroups: + - apiGroups + - apiGroups + - operations: + - operations + - operations + apiVersions: + - apiVersions + - apiVersions + scope: scope + resources: + - resources + - resources + apiGroups: + - apiGroups + - apiGroups + clientConfig: + caBundle: caBundle + service: + path: path + port: 0 + name: name + namespace: namespace + url: url + matchConditions: + - expression: expression + name: name + - expression: expression + name: name + objectSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + failurePolicy: failurePolicy + sideEffects: sideEffects + kind: kind + - metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: '{}' + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: '{}' + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + creationTimestamp: 2000-01-23T04:56:07.000+00:00 + name: name + namespace: namespace + apiVersion: apiVersion + webhooks: + - admissionReviewVersions: + - admissionReviewVersions + - admissionReviewVersions + matchPolicy: matchPolicy + reinvocationPolicy: reinvocationPolicy + name: name + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + timeoutSeconds: 6 + rules: + - operations: + - operations + - operations + apiVersions: + - apiVersions + - apiVersions + scope: scope + resources: + - resources + - resources + apiGroups: + - apiGroups + - apiGroups + - operations: + - operations + - operations + apiVersions: + - apiVersions + - apiVersions + scope: scope + resources: + - resources + - resources + apiGroups: + - apiGroups + - apiGroups + clientConfig: + caBundle: caBundle + service: + path: path + port: 0 + name: name + namespace: namespace + url: url + matchConditions: + - expression: expression + name: name + - expression: expression + name: name + objectSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + failurePolicy: failurePolicy + sideEffects: sideEffects + - admissionReviewVersions: + - admissionReviewVersions + - admissionReviewVersions + matchPolicy: matchPolicy + reinvocationPolicy: reinvocationPolicy + name: name + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + timeoutSeconds: 6 + rules: + - operations: + - operations + - operations + apiVersions: + - apiVersions + - apiVersions + scope: scope + resources: + - resources + - resources + apiGroups: + - apiGroups + - apiGroups + - operations: + - operations + - operations + apiVersions: + - apiVersions + - apiVersions + scope: scope + resources: + - resources + - resources + apiGroups: + - apiGroups + - apiGroups + clientConfig: + caBundle: caBundle + service: + path: path + port: 0 + name: name + namespace: namespace + url: url + matchConditions: + - expression: expression + name: name + - expression: expression + name: name + objectSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + failurePolicy: failurePolicy + sideEffects: sideEffects + kind: kind + properties: + apiVersion: + description: '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' + type: string + items: + description: List of MutatingWebhookConfiguration. + items: + $ref: '#/components/schemas/v1.MutatingWebhookConfiguration' + type: array + kind: + description: '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' + type: string + metadata: + $ref: '#/components/schemas/v1.ListMeta' + required: + - items + type: object + x-kubernetes-group-version-kind: + - group: admissionregistration.k8s.io + kind: MutatingWebhookConfigurationList + version: v1 + x-implements: + - io.kubernetes.client.common.KubernetesListObject + v1.NamedRuleWithOperations: + description: NamedRuleWithOperations is a tuple of Operations and Resources + with ResourceNames. + example: + resourceNames: + - resourceNames + - resourceNames + operations: + - operations + - operations + apiVersions: + - apiVersions + - apiVersions + scope: scope + resources: + - resources + - resources + apiGroups: + - apiGroups + - apiGroups + properties: + apiGroups: + description: APIGroups is the API groups the resources belong to. '*' is + all groups. If '*' is present, the length of the slice must be one. Required. + items: + type: string + type: array + x-kubernetes-list-type: atomic + apiVersions: + description: APIVersions is the API versions the resources belong to. '*' + is all versions. If '*' is present, the length of the slice must be one. + Required. + items: + type: string + type: array + x-kubernetes-list-type: atomic + operations: + description: 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. + items: + type: string + type: array + x-kubernetes-list-type: atomic + resourceNames: + description: ResourceNames is an optional white list of names that the rule + applies to. An empty set means that everything is allowed. + items: + type: string + type: array + x-kubernetes-list-type: atomic + resources: + description: |- + 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. + items: + type: string + type: array + x-kubernetes-list-type: atomic + scope: + description: 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 "*". + type: string + type: object + x-kubernetes-map-type: atomic + v1.ParamKind: + description: ParamKind is a tuple of Group Kind and Version. + example: + apiVersion: apiVersion + kind: kind + properties: + apiVersion: + description: APIVersion is the API group version the resources belong to. + In format of "group/version". Required. + type: string + kind: + description: Kind is the API kind the resources belong to. Required. + type: string + type: object + x-kubernetes-map-type: atomic + v1.ParamRef: + description: ParamRef describes how to locate the params to be used as input + to expressions of rules applied by a policy binding. + example: + name: name + namespace: namespace + selector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + parameterNotFoundAction: parameterNotFoundAction + properties: + name: + description: |- + 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. + type: string + namespace: + description: |- + 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. + type: string + parameterNotFoundAction: + description: |- + `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 + type: string + selector: + $ref: '#/components/schemas/v1.LabelSelector' + type: object + x-kubernetes-map-type: atomic + v1.RuleWithOperations: + description: RuleWithOperations is a tuple of Operations and Resources. It is + recommended to make sure that all the tuple expansions are valid. + example: + operations: + - operations + - operations + apiVersions: + - apiVersions + - apiVersions + scope: scope + resources: + - resources + - resources + apiGroups: + - apiGroups + - apiGroups + properties: + apiGroups: + description: APIGroups is the API groups the resources belong to. '*' is + all groups. If '*' is present, the length of the slice must be one. Required. + items: + type: string + type: array + x-kubernetes-list-type: atomic + apiVersions: + description: APIVersions is the API versions the resources belong to. '*' + is all versions. If '*' is present, the length of the slice must be one. + Required. + items: + type: string + type: array + x-kubernetes-list-type: atomic + operations: + description: 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. + items: + type: string + type: array + x-kubernetes-list-type: atomic + resources: + description: |- + 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. + items: + type: string + type: array + x-kubernetes-list-type: atomic + scope: + description: 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 "*". + type: string + type: object + admissionregistration.v1.ServiceReference: + description: ServiceReference holds a reference to Service.legacy.k8s.io + example: + path: path + port: 0 + name: name + namespace: namespace + properties: + name: + description: '`name` is the name of the service. Required' + type: string + namespace: + description: '`namespace` is the namespace of the service. Required' + type: string + path: + description: '`path` is an optional URL path which will be sent in any request + to this service.' + type: string + port: + description: 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). + format: int32 + type: integer + required: + - name + - namespace + type: object + v1.TypeChecking: + description: TypeChecking contains results of type checking the expressions + in the ValidatingAdmissionPolicy + example: + expressionWarnings: + - fieldRef: fieldRef + warning: warning + - fieldRef: fieldRef + warning: warning + properties: + expressionWarnings: + description: The type checking warnings for each expression. + items: + $ref: '#/components/schemas/v1.ExpressionWarning' + type: array + x-kubernetes-list-type: atomic + type: object + v1.ValidatingAdmissionPolicy: + description: ValidatingAdmissionPolicy describes the definition of an admission + validation policy that accepts or rejects an object without changing it. + example: + metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: '{}' + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: '{}' + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + creationTimestamp: 2000-01-23T04:56:07.000+00:00 + name: name + namespace: namespace + apiVersion: apiVersion + kind: kind + spec: + variables: + - expression: expression + name: name + - expression: expression + name: name + paramKind: + apiVersion: apiVersion + kind: kind + auditAnnotations: + - valueExpression: valueExpression + key: key + - valueExpression: valueExpression + key: key + matchConditions: + - expression: expression + name: name + - expression: expression + name: name + matchConstraints: + matchPolicy: matchPolicy + resourceRules: + - resourceNames: + - resourceNames + - resourceNames + operations: + - operations + - operations + apiVersions: + - apiVersions + - apiVersions + scope: scope + resources: + - resources + - resources + apiGroups: + - apiGroups + - apiGroups + - resourceNames: + - resourceNames + - resourceNames + operations: + - operations + - operations + apiVersions: + - apiVersions + - apiVersions + scope: scope + resources: + - resources + - resources + apiGroups: + - apiGroups + - apiGroups + excludeResourceRules: + - resourceNames: + - resourceNames + - resourceNames + operations: + - operations + - operations + apiVersions: + - apiVersions + - apiVersions + scope: scope + resources: + - resources + - resources + apiGroups: + - apiGroups + - apiGroups + - resourceNames: + - resourceNames + - resourceNames + operations: + - operations + - operations + apiVersions: + - apiVersions + - apiVersions + scope: scope + resources: + - resources + - resources + apiGroups: + - apiGroups + - apiGroups + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + objectSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + validations: + - reason: reason + expression: expression + messageExpression: messageExpression + message: message + - reason: reason + expression: expression + messageExpression: messageExpression + message: message + failurePolicy: failurePolicy + status: + typeChecking: + expressionWarnings: + - fieldRef: fieldRef + warning: warning + - fieldRef: fieldRef + warning: warning + conditions: + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + observedGeneration: 5 + status: status + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + observedGeneration: 5 + status: status + observedGeneration: 0 + properties: + apiVersion: + description: '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' + type: string + kind: + description: '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' + type: string + metadata: + $ref: '#/components/schemas/v1.ObjectMeta' + spec: + $ref: '#/components/schemas/v1.ValidatingAdmissionPolicySpec' + status: + $ref: '#/components/schemas/v1.ValidatingAdmissionPolicyStatus' + type: object + x-kubernetes-group-version-kind: + - group: admissionregistration.k8s.io + kind: ValidatingAdmissionPolicy + version: v1 + x-implements: + - io.kubernetes.client.common.KubernetesObject + v1.ValidatingAdmissionPolicyBinding: + 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. + example: + metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: '{}' + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: '{}' + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + creationTimestamp: 2000-01-23T04:56:07.000+00:00 + name: name + namespace: namespace + apiVersion: apiVersion + kind: kind + spec: + paramRef: + name: name + namespace: namespace + selector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + parameterNotFoundAction: parameterNotFoundAction + policyName: policyName + matchResources: + matchPolicy: matchPolicy + resourceRules: + - resourceNames: + - resourceNames + - resourceNames + operations: + - operations + - operations + apiVersions: + - apiVersions + - apiVersions + scope: scope + resources: + - resources + - resources + apiGroups: + - apiGroups + - apiGroups + - resourceNames: + - resourceNames + - resourceNames + operations: + - operations + - operations + apiVersions: + - apiVersions + - apiVersions + scope: scope + resources: + - resources + - resources + apiGroups: + - apiGroups + - apiGroups + excludeResourceRules: + - resourceNames: + - resourceNames + - resourceNames + operations: + - operations + - operations + apiVersions: + - apiVersions + - apiVersions + scope: scope + resources: + - resources + - resources + apiGroups: + - apiGroups + - apiGroups + - resourceNames: + - resourceNames + - resourceNames + operations: + - operations + - operations + apiVersions: + - apiVersions + - apiVersions + scope: scope + resources: + - resources + - resources + apiGroups: + - apiGroups + - apiGroups + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + objectSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + validationActions: + - validationActions + - validationActions + properties: + apiVersion: + description: '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' + type: string + kind: + description: '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' + type: string + metadata: + $ref: '#/components/schemas/v1.ObjectMeta' + spec: + $ref: '#/components/schemas/v1.ValidatingAdmissionPolicyBindingSpec' + type: object + x-kubernetes-group-version-kind: + - group: admissionregistration.k8s.io + kind: ValidatingAdmissionPolicyBinding + version: v1 + x-implements: + - io.kubernetes.client.common.KubernetesObject + v1.ValidatingAdmissionPolicyBindingList: + description: ValidatingAdmissionPolicyBindingList is a list of ValidatingAdmissionPolicyBinding. + example: + metadata: + remainingItemCount: 1 + continue: continue + resourceVersion: resourceVersion + selfLink: selfLink + apiVersion: apiVersion + kind: kind + items: + - metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: '{}' + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: '{}' + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + creationTimestamp: 2000-01-23T04:56:07.000+00:00 + name: name + namespace: namespace + apiVersion: apiVersion + kind: kind + spec: + paramRef: + name: name + namespace: namespace + selector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + parameterNotFoundAction: parameterNotFoundAction + policyName: policyName + matchResources: + matchPolicy: matchPolicy + resourceRules: + - resourceNames: + - resourceNames + - resourceNames + operations: + - operations + - operations + apiVersions: + - apiVersions + - apiVersions + scope: scope + resources: + - resources + - resources + apiGroups: + - apiGroups + - apiGroups + - resourceNames: + - resourceNames + - resourceNames + operations: + - operations + - operations + apiVersions: + - apiVersions + - apiVersions + scope: scope + resources: + - resources + - resources + apiGroups: + - apiGroups + - apiGroups + excludeResourceRules: + - resourceNames: + - resourceNames + - resourceNames + operations: + - operations + - operations + apiVersions: + - apiVersions + - apiVersions + scope: scope + resources: + - resources + - resources + apiGroups: + - apiGroups + - apiGroups + - resourceNames: + - resourceNames + - resourceNames + operations: + - operations + - operations + apiVersions: + - apiVersions + - apiVersions + scope: scope + resources: + - resources + - resources + apiGroups: + - apiGroups + - apiGroups + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + objectSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + validationActions: + - validationActions + - validationActions + - metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: '{}' + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: '{}' + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + creationTimestamp: 2000-01-23T04:56:07.000+00:00 + name: name + namespace: namespace + apiVersion: apiVersion + kind: kind + spec: + paramRef: + name: name + namespace: namespace + selector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + parameterNotFoundAction: parameterNotFoundAction + policyName: policyName + matchResources: + matchPolicy: matchPolicy + resourceRules: + - resourceNames: + - resourceNames + - resourceNames + operations: + - operations + - operations + apiVersions: + - apiVersions + - apiVersions + scope: scope + resources: + - resources + - resources + apiGroups: + - apiGroups + - apiGroups + - resourceNames: + - resourceNames + - resourceNames + operations: + - operations + - operations + apiVersions: + - apiVersions + - apiVersions + scope: scope + resources: + - resources + - resources + apiGroups: + - apiGroups + - apiGroups + excludeResourceRules: + - resourceNames: + - resourceNames + - resourceNames + operations: + - operations + - operations + apiVersions: + - apiVersions + - apiVersions + scope: scope + resources: + - resources + - resources + apiGroups: + - apiGroups + - apiGroups + - resourceNames: + - resourceNames + - resourceNames + operations: + - operations + - operations + apiVersions: + - apiVersions + - apiVersions + scope: scope + resources: + - resources + - resources + apiGroups: + - apiGroups + - apiGroups + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + objectSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + validationActions: + - validationActions + - validationActions + properties: + apiVersion: + description: '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' + type: string + items: + description: List of PolicyBinding. + items: + $ref: '#/components/schemas/v1.ValidatingAdmissionPolicyBinding' + type: array + kind: + description: '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' + type: string + metadata: + $ref: '#/components/schemas/v1.ListMeta' + required: + - items + type: object + x-kubernetes-group-version-kind: + - group: admissionregistration.k8s.io + kind: ValidatingAdmissionPolicyBindingList + version: v1 + x-implements: + - io.kubernetes.client.common.KubernetesListObject + v1.ValidatingAdmissionPolicyBindingSpec: + description: ValidatingAdmissionPolicyBindingSpec is the specification of the + ValidatingAdmissionPolicyBinding. + example: + paramRef: + name: name + namespace: namespace + selector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + parameterNotFoundAction: parameterNotFoundAction + policyName: policyName + matchResources: + matchPolicy: matchPolicy + resourceRules: + - resourceNames: + - resourceNames + - resourceNames + operations: + - operations + - operations + apiVersions: + - apiVersions + - apiVersions + scope: scope + resources: + - resources + - resources + apiGroups: + - apiGroups + - apiGroups + - resourceNames: + - resourceNames + - resourceNames + operations: + - operations + - operations + apiVersions: + - apiVersions + - apiVersions + scope: scope + resources: + - resources + - resources + apiGroups: + - apiGroups + - apiGroups + excludeResourceRules: + - resourceNames: + - resourceNames + - resourceNames + operations: + - operations + - operations + apiVersions: + - apiVersions + - apiVersions + scope: scope + resources: + - resources + - resources + apiGroups: + - apiGroups + - apiGroups + - resourceNames: + - resourceNames + - resourceNames + operations: + - operations + - operations + apiVersions: + - apiVersions + - apiVersions + scope: scope + resources: + - resources + - resources + apiGroups: + - apiGroups + - apiGroups + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + objectSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + validationActions: + - validationActions + - validationActions + properties: + matchResources: + $ref: '#/components/schemas/v1.MatchResources' + paramRef: + $ref: '#/components/schemas/v1.ParamRef' + policyName: + description: 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. + type: string + validationActions: + description: |- + 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. + items: + type: string + type: array + x-kubernetes-list-type: set + type: object + v1.ValidatingAdmissionPolicyList: + description: ValidatingAdmissionPolicyList is a list of ValidatingAdmissionPolicy. + example: + metadata: + remainingItemCount: 1 + continue: continue + resourceVersion: resourceVersion + selfLink: selfLink + apiVersion: apiVersion + kind: kind + items: + - metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: '{}' + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: '{}' + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + creationTimestamp: 2000-01-23T04:56:07.000+00:00 + name: name + namespace: namespace + apiVersion: apiVersion + kind: kind + spec: + variables: + - expression: expression + name: name + - expression: expression + name: name + paramKind: + apiVersion: apiVersion + kind: kind + auditAnnotations: + - valueExpression: valueExpression + key: key + - valueExpression: valueExpression + key: key + matchConditions: + - expression: expression + name: name + - expression: expression + name: name + matchConstraints: + matchPolicy: matchPolicy + resourceRules: + - resourceNames: + - resourceNames + - resourceNames + operations: + - operations + - operations + apiVersions: + - apiVersions + - apiVersions + scope: scope + resources: + - resources + - resources + apiGroups: + - apiGroups + - apiGroups + - resourceNames: + - resourceNames + - resourceNames + operations: + - operations + - operations + apiVersions: + - apiVersions + - apiVersions + scope: scope + resources: + - resources + - resources + apiGroups: + - apiGroups + - apiGroups + excludeResourceRules: + - resourceNames: + - resourceNames + - resourceNames + operations: + - operations + - operations + apiVersions: + - apiVersions + - apiVersions + scope: scope + resources: + - resources + - resources + apiGroups: + - apiGroups + - apiGroups + - resourceNames: + - resourceNames + - resourceNames + operations: + - operations + - operations + apiVersions: + - apiVersions + - apiVersions + scope: scope + resources: + - resources + - resources + apiGroups: + - apiGroups + - apiGroups + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + objectSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + validations: + - reason: reason + expression: expression + messageExpression: messageExpression + message: message + - reason: reason + expression: expression + messageExpression: messageExpression + message: message + failurePolicy: failurePolicy + status: + typeChecking: + expressionWarnings: + - fieldRef: fieldRef + warning: warning + - fieldRef: fieldRef + warning: warning + conditions: + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + observedGeneration: 5 + status: status + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + observedGeneration: 5 + status: status + observedGeneration: 0 + - metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: '{}' + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: '{}' + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + creationTimestamp: 2000-01-23T04:56:07.000+00:00 + name: name + namespace: namespace + apiVersion: apiVersion + kind: kind + spec: + variables: + - expression: expression + name: name + - expression: expression + name: name + paramKind: + apiVersion: apiVersion + kind: kind + auditAnnotations: + - valueExpression: valueExpression + key: key + - valueExpression: valueExpression + key: key + matchConditions: + - expression: expression + name: name + - expression: expression + name: name + matchConstraints: + matchPolicy: matchPolicy + resourceRules: + - resourceNames: + - resourceNames + - resourceNames + operations: + - operations + - operations + apiVersions: + - apiVersions + - apiVersions + scope: scope + resources: + - resources + - resources + apiGroups: + - apiGroups + - apiGroups + - resourceNames: + - resourceNames + - resourceNames + operations: + - operations + - operations + apiVersions: + - apiVersions + - apiVersions + scope: scope + resources: + - resources + - resources + apiGroups: + - apiGroups + - apiGroups + excludeResourceRules: + - resourceNames: + - resourceNames + - resourceNames + operations: + - operations + - operations + apiVersions: + - apiVersions + - apiVersions + scope: scope + resources: + - resources + - resources + apiGroups: + - apiGroups + - apiGroups + - resourceNames: + - resourceNames + - resourceNames + operations: + - operations + - operations + apiVersions: + - apiVersions + - apiVersions + scope: scope + resources: + - resources + - resources + apiGroups: + - apiGroups + - apiGroups + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + objectSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + validations: + - reason: reason + expression: expression + messageExpression: messageExpression + message: message + - reason: reason + expression: expression + messageExpression: messageExpression + message: message + failurePolicy: failurePolicy + status: + typeChecking: + expressionWarnings: + - fieldRef: fieldRef + warning: warning + - fieldRef: fieldRef + warning: warning + conditions: + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + observedGeneration: 5 + status: status + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + observedGeneration: 5 + status: status + observedGeneration: 0 + properties: + apiVersion: + description: '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' + type: string + items: + description: List of ValidatingAdmissionPolicy. + items: + $ref: '#/components/schemas/v1.ValidatingAdmissionPolicy' + type: array + kind: + description: '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' + type: string + metadata: + $ref: '#/components/schemas/v1.ListMeta' + required: + - items + type: object + x-kubernetes-group-version-kind: + - group: admissionregistration.k8s.io + kind: ValidatingAdmissionPolicyList + version: v1 + x-implements: + - io.kubernetes.client.common.KubernetesListObject + v1.ValidatingAdmissionPolicySpec: + description: ValidatingAdmissionPolicySpec is the specification of the desired + behavior of the AdmissionPolicy. + example: + variables: + - expression: expression + name: name + - expression: expression + name: name + paramKind: + apiVersion: apiVersion + kind: kind + auditAnnotations: + - valueExpression: valueExpression + key: key + - valueExpression: valueExpression + key: key + matchConditions: + - expression: expression + name: name + - expression: expression + name: name + matchConstraints: + matchPolicy: matchPolicy + resourceRules: + - resourceNames: + - resourceNames + - resourceNames + operations: + - operations + - operations + apiVersions: + - apiVersions + - apiVersions + scope: scope + resources: + - resources + - resources + apiGroups: + - apiGroups + - apiGroups + - resourceNames: + - resourceNames + - resourceNames + operations: + - operations + - operations + apiVersions: + - apiVersions + - apiVersions + scope: scope + resources: + - resources + - resources + apiGroups: + - apiGroups + - apiGroups + excludeResourceRules: + - resourceNames: + - resourceNames + - resourceNames + operations: + - operations + - operations + apiVersions: + - apiVersions + - apiVersions + scope: scope + resources: + - resources + - resources + apiGroups: + - apiGroups + - apiGroups + - resourceNames: + - resourceNames + - resourceNames + operations: + - operations + - operations + apiVersions: + - apiVersions + - apiVersions + scope: scope + resources: + - resources + - resources + apiGroups: + - apiGroups + - apiGroups + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + objectSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + validations: + - reason: reason + expression: expression + messageExpression: messageExpression + message: message + - reason: reason + expression: expression + messageExpression: messageExpression + message: message + failurePolicy: failurePolicy + properties: + auditAnnotations: + description: 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. + items: + $ref: '#/components/schemas/v1.AuditAnnotation' + type: array + x-kubernetes-list-type: atomic + failurePolicy: + description: |- + 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. + type: string + matchConditions: + description: |- + 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 + items: + $ref: '#/components/schemas/v1.MatchCondition' + type: array + x-kubernetes-patch-strategy: merge + x-kubernetes-list-type: map + x-kubernetes-list-map-keys: + - name + x-kubernetes-patch-merge-key: name + matchConstraints: + $ref: '#/components/schemas/v1.MatchResources' + paramKind: + $ref: '#/components/schemas/v1.ParamKind' + validations: + description: 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. + items: + $ref: '#/components/schemas/v1.Validation' + type: array + x-kubernetes-list-type: atomic + variables: + description: |- + 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. + items: + $ref: '#/components/schemas/v1.Variable' + type: array + x-kubernetes-patch-strategy: merge + x-kubernetes-list-type: map + x-kubernetes-list-map-keys: + - name + x-kubernetes-patch-merge-key: name + type: object + v1.ValidatingAdmissionPolicyStatus: + description: ValidatingAdmissionPolicyStatus represents the status of an admission + validation policy. + example: + typeChecking: + expressionWarnings: + - fieldRef: fieldRef + warning: warning + - fieldRef: fieldRef + warning: warning + conditions: + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + observedGeneration: 5 + status: status + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + observedGeneration: 5 + status: status + observedGeneration: 0 + properties: + conditions: + description: The conditions represent the latest available observations + of a policy's current state. + items: + $ref: '#/components/schemas/v1.Condition' + type: array + x-kubernetes-list-type: map + x-kubernetes-list-map-keys: + - type + observedGeneration: + description: The generation observed by the controller. + format: int64 + type: integer + typeChecking: + $ref: '#/components/schemas/v1.TypeChecking' + type: object + v1.ValidatingWebhook: + description: ValidatingWebhook describes an admission webhook and the resources + and operations it applies to. + example: + admissionReviewVersions: + - admissionReviewVersions + - admissionReviewVersions + matchPolicy: matchPolicy + name: name + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + timeoutSeconds: 0 + rules: + - operations: + - operations + - operations + apiVersions: + - apiVersions + - apiVersions + scope: scope + resources: + - resources + - resources + apiGroups: + - apiGroups + - apiGroups + - operations: + - operations + - operations + apiVersions: + - apiVersions + - apiVersions + scope: scope + resources: + - resources + - resources + apiGroups: + - apiGroups + - apiGroups + clientConfig: + caBundle: caBundle + service: + path: path + port: 0 + name: name + namespace: namespace + url: url + matchConditions: + - expression: expression + name: name + - expression: expression + name: name + objectSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + failurePolicy: failurePolicy + sideEffects: sideEffects + properties: + admissionReviewVersions: + description: 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. + items: + type: string + type: array + x-kubernetes-list-type: atomic + clientConfig: + $ref: '#/components/schemas/admissionregistration.v1.WebhookClientConfig' + failurePolicy: + description: FailurePolicy defines how unrecognized errors from the admission + endpoint are handled - allowed values are Ignore or Fail. Defaults to + Fail. + type: string + matchConditions: + description: |- + 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 + items: + $ref: '#/components/schemas/v1.MatchCondition' + type: array + x-kubernetes-patch-strategy: merge + x-kubernetes-list-type: map + x-kubernetes-list-map-keys: + - name + x-kubernetes-patch-merge-key: name + matchPolicy: + description: |- + 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" + type: string + name: + description: 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. + type: string + namespaceSelector: + $ref: '#/components/schemas/v1.LabelSelector' + objectSelector: + $ref: '#/components/schemas/v1.LabelSelector' + rules: + description: 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. + items: + $ref: '#/components/schemas/v1.RuleWithOperations' + type: array + x-kubernetes-list-type: atomic + sideEffects: + description: '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.' + type: string + timeoutSeconds: + description: 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. + format: int32 + type: integer + required: + - admissionReviewVersions + - clientConfig + - name + - sideEffects + type: object + v1.ValidatingWebhookConfiguration: + description: ValidatingWebhookConfiguration describes the configuration of and + admission webhook that accept or reject and object without changing it. + example: + metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: '{}' + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: '{}' + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + creationTimestamp: 2000-01-23T04:56:07.000+00:00 + name: name + namespace: namespace + apiVersion: apiVersion + webhooks: + - admissionReviewVersions: + - admissionReviewVersions + - admissionReviewVersions + matchPolicy: matchPolicy + name: name + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + timeoutSeconds: 0 + rules: + - operations: + - operations + - operations + apiVersions: + - apiVersions + - apiVersions + scope: scope + resources: + - resources + - resources + apiGroups: + - apiGroups + - apiGroups + - operations: + - operations + - operations + apiVersions: + - apiVersions + - apiVersions + scope: scope + resources: + - resources + - resources + apiGroups: + - apiGroups + - apiGroups + clientConfig: + caBundle: caBundle + service: + path: path + port: 0 + name: name + namespace: namespace + url: url + matchConditions: + - expression: expression + name: name + - expression: expression + name: name + objectSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + failurePolicy: failurePolicy + sideEffects: sideEffects + - admissionReviewVersions: + - admissionReviewVersions + - admissionReviewVersions + matchPolicy: matchPolicy + name: name + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + timeoutSeconds: 0 + rules: + - operations: + - operations + - operations + apiVersions: + - apiVersions + - apiVersions + scope: scope + resources: + - resources + - resources + apiGroups: + - apiGroups + - apiGroups + - operations: + - operations + - operations + apiVersions: + - apiVersions + - apiVersions + scope: scope + resources: + - resources + - resources + apiGroups: + - apiGroups + - apiGroups + clientConfig: + caBundle: caBundle + service: + path: path + port: 0 + name: name + namespace: namespace + url: url + matchConditions: + - expression: expression + name: name + - expression: expression + name: name + objectSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + failurePolicy: failurePolicy + sideEffects: sideEffects + kind: kind + properties: + apiVersion: + description: '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' + type: string + kind: + description: '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' + type: string + metadata: + $ref: '#/components/schemas/v1.ObjectMeta' + webhooks: + description: Webhooks is a list of webhooks and the affected resources and + operations. + items: + $ref: '#/components/schemas/v1.ValidatingWebhook' + type: array + x-kubernetes-patch-strategy: merge + x-kubernetes-list-type: map + x-kubernetes-list-map-keys: + - name + x-kubernetes-patch-merge-key: name + type: object + x-kubernetes-group-version-kind: + - group: admissionregistration.k8s.io + kind: ValidatingWebhookConfiguration + version: v1 + x-implements: + - io.kubernetes.client.common.KubernetesObject + v1.ValidatingWebhookConfigurationList: + description: ValidatingWebhookConfigurationList is a list of ValidatingWebhookConfiguration. + example: + metadata: + remainingItemCount: 1 + continue: continue + resourceVersion: resourceVersion + selfLink: selfLink + apiVersion: apiVersion + kind: kind + items: + - metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: '{}' + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: '{}' + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + creationTimestamp: 2000-01-23T04:56:07.000+00:00 + name: name + namespace: namespace + apiVersion: apiVersion + webhooks: + - admissionReviewVersions: + - admissionReviewVersions + - admissionReviewVersions + matchPolicy: matchPolicy + name: name + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + timeoutSeconds: 0 + rules: + - operations: + - operations + - operations + apiVersions: + - apiVersions + - apiVersions + scope: scope + resources: + - resources + - resources + apiGroups: + - apiGroups + - apiGroups + - operations: + - operations + - operations + apiVersions: + - apiVersions + - apiVersions + scope: scope + resources: + - resources + - resources + apiGroups: + - apiGroups + - apiGroups + clientConfig: + caBundle: caBundle + service: + path: path + port: 0 + name: name + namespace: namespace + url: url + matchConditions: + - expression: expression + name: name + - expression: expression + name: name + objectSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + failurePolicy: failurePolicy + sideEffects: sideEffects + - admissionReviewVersions: + - admissionReviewVersions + - admissionReviewVersions + matchPolicy: matchPolicy + name: name + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + timeoutSeconds: 0 + rules: + - operations: + - operations + - operations + apiVersions: + - apiVersions + - apiVersions + scope: scope + resources: + - resources + - resources + apiGroups: + - apiGroups + - apiGroups + - operations: + - operations + - operations + apiVersions: + - apiVersions + - apiVersions + scope: scope + resources: + - resources + - resources + apiGroups: + - apiGroups + - apiGroups + clientConfig: + caBundle: caBundle + service: + path: path + port: 0 + name: name + namespace: namespace + url: url + matchConditions: + - expression: expression + name: name + - expression: expression + name: name + objectSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + failurePolicy: failurePolicy + sideEffects: sideEffects + kind: kind + - metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: '{}' + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: '{}' + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + creationTimestamp: 2000-01-23T04:56:07.000+00:00 + name: name + namespace: namespace + apiVersion: apiVersion + webhooks: + - admissionReviewVersions: + - admissionReviewVersions + - admissionReviewVersions + matchPolicy: matchPolicy + name: name + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + timeoutSeconds: 0 + rules: + - operations: + - operations + - operations + apiVersions: + - apiVersions + - apiVersions + scope: scope + resources: + - resources + - resources + apiGroups: + - apiGroups + - apiGroups + - operations: + - operations + - operations + apiVersions: + - apiVersions + - apiVersions + scope: scope + resources: + - resources + - resources + apiGroups: + - apiGroups + - apiGroups + clientConfig: + caBundle: caBundle + service: + path: path + port: 0 + name: name + namespace: namespace + url: url + matchConditions: + - expression: expression + name: name + - expression: expression + name: name + objectSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + failurePolicy: failurePolicy + sideEffects: sideEffects + - admissionReviewVersions: + - admissionReviewVersions + - admissionReviewVersions + matchPolicy: matchPolicy + name: name + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + timeoutSeconds: 0 + rules: + - operations: + - operations + - operations + apiVersions: + - apiVersions + - apiVersions + scope: scope + resources: + - resources + - resources + apiGroups: + - apiGroups + - apiGroups + - operations: + - operations + - operations + apiVersions: + - apiVersions + - apiVersions + scope: scope + resources: + - resources + - resources + apiGroups: + - apiGroups + - apiGroups + clientConfig: + caBundle: caBundle + service: + path: path + port: 0 + name: name + namespace: namespace + url: url + matchConditions: + - expression: expression + name: name + - expression: expression + name: name + objectSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + failurePolicy: failurePolicy + sideEffects: sideEffects + kind: kind + properties: + apiVersion: + description: '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' + type: string + items: + description: List of ValidatingWebhookConfiguration. + items: + $ref: '#/components/schemas/v1.ValidatingWebhookConfiguration' + type: array + kind: + description: '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' + type: string + metadata: + $ref: '#/components/schemas/v1.ListMeta' + required: + - items + type: object + x-kubernetes-group-version-kind: + - group: admissionregistration.k8s.io + kind: ValidatingWebhookConfigurationList + version: v1 + x-implements: + - io.kubernetes.client.common.KubernetesListObject + v1.Validation: + description: Validation specifies the CEL expression which is used to apply + the validation. + example: + reason: reason + expression: expression + messageExpression: messageExpression + message: message + properties: + expression: + description: "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:\n\n- '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.\n For example,\ + \ a variable named 'foo' can be accessed as 'variables.foo'.\n- 'authorizer'\ + \ - A CEL Authorizer. May be used to perform authorization checks for\ + \ the principal (user or service account) of the request.\n See https://pkg.go.dev/k8s.io/apiserver/pkg/cel/library#Authz\n\ + - 'authorizer.requestResource' - A CEL ResourceCheck constructed from\ + \ the 'authorizer' and configured with the\n request resource.\n\nThe\ + \ `apiVersion`, `kind`, `metadata.name` and `metadata.generateName` are\ + \ always accessible from the root of the object. No other metadata properties\ + \ are accessible.\n\nOnly 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:\n\t \"true\", \"false\"\ + , \"null\", \"in\", \"as\", \"break\", \"const\", \"continue\", \"else\"\ + , \"for\", \"function\", \"if\",\n\t \"import\", \"let\", \"loop\", \"\ + package\", \"namespace\", \"return\".\nExamples:\n - Expression accessing\ + \ a property named \"namespace\": {\"Expression\": \"object.__namespace__\ + \ > 0\"}\n - Expression accessing a property named \"x-prop\": {\"Expression\"\ + : \"object.x__dash__prop > 0\"}\n - Expression accessing a property named\ + \ \"redact__d\": {\"Expression\": \"object.redact__underscores__d > 0\"\ + }\n\nEquality 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:\n - 'set': `X + Y` performs a union\ + \ where the array positions of all elements in `X` are preserved and\n\ + \ non-intersecting elements in `Y` are appended, retaining their partial\ + \ order.\n - 'map': `X + Y` performs a merge where the array positions\ + \ of all keys in `X` are preserved but the values\n are overwritten\ + \ by values in `Y` when the key sets of `X` and `Y` intersect. Elements\ + \ in `Y` with\n non-intersecting keys are appended, retaining their\ + \ partial order.\nRequired." + type: string + message: + description: '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}".' + type: string + messageExpression: + description: '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)+")"' + type: string + reason: + description: '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.' + type: string + required: + - expression + type: object + v1.Variable: + description: Variable is the definition of a variable that is used for composition. + A variable is defined as a named expression. + example: + expression: expression + name: name + properties: + expression: + description: 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. + type: string + name: + description: 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` + type: string + required: + - expression + - name + type: object + x-kubernetes-map-type: atomic + admissionregistration.v1.WebhookClientConfig: + description: WebhookClientConfig contains the information to make a TLS connection + with the webhook + example: + caBundle: caBundle + service: + path: path + port: 0 + name: name + namespace: namespace + url: url + properties: + caBundle: + description: '`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.' + format: byte + pattern: ^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$ + type: string + service: + $ref: '#/components/schemas/admissionregistration.v1.ServiceReference' + url: + description: |- + `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. + type: string + type: object + v1alpha1.ApplyConfiguration: + description: ApplyConfiguration defines the desired configuration values of + an object. + example: + expression: expression + properties: + expression: + description: "expression will be evaluated by CEL to create an apply configuration.\ + \ ref: https://github.com/google/cel-spec\n\nApply configurations are\ + \ declared in CEL using object initialization. For example, this CEL expression\ + \ returns an apply configuration to set a single field:\n\n\tObject{\n\ + \t spec: Object.spec{\n\t serviceAccountName: \"example\"\n\t }\n\ + \t}\n\nApply configurations may not modify atomic structs, maps or arrays\ + \ due to the risk of accidental deletion of values not included in the\ + \ apply configuration.\n\nCEL expressions have access to the object types\ + \ needed to create apply configurations:\n\n- 'Object' - CEL type of the\ + \ resource object. - 'Object.' - CEL type of object field (such\ + \ as 'Object.spec') - 'Object.....`\ + \ - CEL type of nested field (such as 'Object.spec.containers')\n\nCEL\ + \ expressions have access to the contents of the API request, organized\ + \ into CEL variables as well as some other useful variables:\n\n- '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.\n For example,\ + \ a variable named 'foo' can be accessed as 'variables.foo'.\n- 'authorizer'\ + \ - A CEL Authorizer. May be used to perform authorization checks for\ + \ the principal (user or service account) of the request.\n See https://pkg.go.dev/k8s.io/apiserver/pkg/cel/library#Authz\n\ + - 'authorizer.requestResource' - A CEL ResourceCheck constructed from\ + \ the 'authorizer' and configured with the\n request resource.\n\nThe\ + \ `apiVersion`, `kind`, `metadata.name` and `metadata.generateName` are\ + \ always accessible from the root of the object. No other metadata properties\ + \ are accessible.\n\nOnly property names of the form `[a-zA-Z_.-/][a-zA-Z0-9_.-/]*`\ + \ are accessible. Required." + type: string + type: object + v1alpha1.JSONPatch: + description: JSONPatch defines a JSON Patch. + example: + expression: expression + properties: + expression: + description: "expression will be evaluated by CEL to create a [JSON patch](https://jsonpatch.com/).\ + \ ref: https://github.com/google/cel-spec\n\nexpression must return an\ + \ array of JSONPatch values.\n\nFor example, this CEL expression returns\ + \ a JSON patch to conditionally modify a value:\n\n\t [\n\t JSONPatch{op:\ + \ \"test\", path: \"/spec/example\", value: \"Red\"},\n\t JSONPatch{op:\ + \ \"replace\", path: \"/spec/example\", value: \"Green\"}\n\t ]\n\nTo\ + \ define an object for the patch value, use Object types. For example:\n\ + \n\t [\n\t JSONPatch{\n\t op: \"add\",\n\t path: \"/spec/selector\"\ + ,\n\t value: Object.spec.selector{matchLabels: {\"environment\":\ + \ \"test\"}}\n\t }\n\t ]\n\nTo use strings containing '/' and '~'\ + \ as JSONPatch path keys, use \"jsonpatch.escapeKey\". For example:\n\n\ + \t [\n\t JSONPatch{\n\t op: \"add\",\n\t path: \"/metadata/labels/\"\ + \ + jsonpatch.escapeKey(\"example.com/environment\"),\n\t value:\ + \ \"test\"\n\t },\n\t ]\n\nCEL expressions have access to the types\ + \ needed to create JSON patches and objects:\n\n- 'JSONPatch' - CEL type\ + \ of JSON Patch operations. JSONPatch has the fields 'op', 'from', 'path'\ + \ and 'value'.\n See [JSON patch](https://jsonpatch.com/) for more details.\ + \ The 'value' field may be set to any of: string,\n integer, array, map\ + \ or object. If set, the 'path' and 'from' fields must be set to a\n\ + \ [JSON pointer](https://datatracker.ietf.org/doc/html/rfc6901/) string,\ + \ where the 'jsonpatch.escapeKey()' CEL\n function may be used to escape\ + \ path keys containing '/' and '~'.\n- 'Object' - CEL type of the resource\ + \ object. - 'Object.' - CEL type of object field (such as 'Object.spec')\ + \ - 'Object.....` - CEL type of nested\ + \ field (such as 'Object.spec.containers')\n\nCEL expressions have access\ + \ to the contents of the API request, organized into CEL variables as\ + \ well as some other useful variables:\n\n- '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.\n For example,\ + \ a variable named 'foo' can be accessed as 'variables.foo'.\n- 'authorizer'\ + \ - A CEL Authorizer. May be used to perform authorization checks for\ + \ the principal (user or service account) of the request.\n See https://pkg.go.dev/k8s.io/apiserver/pkg/cel/library#Authz\n\ + - 'authorizer.requestResource' - A CEL ResourceCheck constructed from\ + \ the 'authorizer' and configured with the\n request resource.\n\nCEL\ + \ expressions have access to [Kubernetes CEL function libraries](https://kubernetes.io/docs/reference/using-api/cel/#cel-options-language-features-and-libraries)\ + \ as well as:\n\n- 'jsonpatch.escapeKey' - Performs JSONPatch key escaping.\ + \ '~' and '/' are escaped as '~0' and `~1' respectively).\n\nOnly property\ + \ names of the form `[a-zA-Z_.-/][a-zA-Z0-9_.-/]*` are accessible. Required." + type: string + type: object + v1alpha1.MatchCondition: + example: + expression: expression + name: name + properties: + expression: + description: |- + 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. + type: string + name: + description: |- + 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. + type: string + required: + - expression + - name + type: object + v1alpha1.MatchResources: + 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) + example: + matchPolicy: matchPolicy + resourceRules: + - resourceNames: + - resourceNames + - resourceNames + operations: + - operations + - operations + apiVersions: + - apiVersions + - apiVersions + scope: scope + resources: + - resources + - resources + apiGroups: + - apiGroups + - apiGroups + - resourceNames: + - resourceNames + - resourceNames + operations: + - operations + - operations + apiVersions: + - apiVersions + - apiVersions + scope: scope + resources: + - resources + - resources + apiGroups: + - apiGroups + - apiGroups + excludeResourceRules: + - resourceNames: + - resourceNames + - resourceNames + operations: + - operations + - operations + apiVersions: + - apiVersions + - apiVersions + scope: scope + resources: + - resources + - resources + apiGroups: + - apiGroups + - apiGroups + - resourceNames: + - resourceNames + - resourceNames + operations: + - operations + - operations + apiVersions: + - apiVersions + - apiVersions + scope: scope + resources: + - resources + - resources + apiGroups: + - apiGroups + - apiGroups + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + objectSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + properties: + excludeResourceRules: + description: ExcludeResourceRules describes what operations on what resources/subresources + the policy should not care about. The exclude rules take precedence over + include rules (if a resource matches both, it is excluded) + items: + $ref: '#/components/schemas/v1alpha1.NamedRuleWithOperations' + type: array + x-kubernetes-list-type: atomic + matchPolicy: + description: |- + 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"]`, the admission policy does not consider requests to apps/v1beta1 or extensions/v1beta1 API groups. + + - 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"]`, the admission policy **does** consider requests made to apps/v1beta1 or extensions/v1beta1 API groups. The API server translates the request to a matched resource API if necessary. + + Defaults to "Equivalent" + type: string + namespaceSelector: + $ref: '#/components/schemas/v1.LabelSelector' + objectSelector: + $ref: '#/components/schemas/v1.LabelSelector' + resourceRules: + description: ResourceRules describes what operations on what resources/subresources + the admission policy matches. The policy cares about an operation if it + matches _any_ Rule. + items: + $ref: '#/components/schemas/v1alpha1.NamedRuleWithOperations' + type: array + x-kubernetes-list-type: atomic + type: object + x-kubernetes-map-type: atomic + v1alpha1.MutatingAdmissionPolicy: + description: MutatingAdmissionPolicy describes the definition of an admission + mutation policy that mutates the object coming into admission chain. + example: + metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: '{}' + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: '{}' + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + creationTimestamp: 2000-01-23T04:56:07.000+00:00 + name: name + namespace: namespace + apiVersion: apiVersion + kind: kind + spec: + reinvocationPolicy: reinvocationPolicy + variables: + - expression: expression + name: name + - expression: expression + name: name + mutations: + - patchType: patchType + applyConfiguration: + expression: expression + jsonPatch: + expression: expression + - patchType: patchType + applyConfiguration: + expression: expression + jsonPatch: + expression: expression + paramKind: + apiVersion: apiVersion + kind: kind + matchConditions: + - expression: expression + name: name + - expression: expression + name: name + matchConstraints: + matchPolicy: matchPolicy + resourceRules: + - resourceNames: + - resourceNames + - resourceNames + operations: + - operations + - operations + apiVersions: + - apiVersions + - apiVersions + scope: scope + resources: + - resources + - resources + apiGroups: + - apiGroups + - apiGroups + - resourceNames: + - resourceNames + - resourceNames + operations: + - operations + - operations + apiVersions: + - apiVersions + - apiVersions + scope: scope + resources: + - resources + - resources + apiGroups: + - apiGroups + - apiGroups + excludeResourceRules: + - resourceNames: + - resourceNames + - resourceNames + operations: + - operations + - operations + apiVersions: + - apiVersions + - apiVersions + scope: scope + resources: + - resources + - resources + apiGroups: + - apiGroups + - apiGroups + - resourceNames: + - resourceNames + - resourceNames + operations: + - operations + - operations + apiVersions: + - apiVersions + - apiVersions + scope: scope + resources: + - resources + - resources + apiGroups: + - apiGroups + - apiGroups + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + objectSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + failurePolicy: failurePolicy + properties: + apiVersion: + description: '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' + type: string + kind: + description: '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' + type: string + metadata: + $ref: '#/components/schemas/v1.ObjectMeta' + spec: + $ref: '#/components/schemas/v1alpha1.MutatingAdmissionPolicySpec' + type: object + x-kubernetes-group-version-kind: + - group: admissionregistration.k8s.io + kind: MutatingAdmissionPolicy + version: v1alpha1 + x-implements: + - io.kubernetes.client.common.KubernetesObject + v1alpha1.MutatingAdmissionPolicyBinding: + description: |- + MutatingAdmissionPolicyBinding binds the MutatingAdmissionPolicy with parametrized resources. MutatingAdmissionPolicyBinding and the optional parameter resource 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. Each evaluation is constrained by a [runtime cost budget](https://kubernetes.io/docs/reference/using-api/cel/#runtime-cost-budget). + + Adding/removing policies, bindings, or params can not affect whether a given (policy, binding, param) combination is within its own CEL budget. + example: + metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: '{}' + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: '{}' + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + creationTimestamp: 2000-01-23T04:56:07.000+00:00 + name: name + namespace: namespace + apiVersion: apiVersion + kind: kind + spec: + paramRef: + name: name + namespace: namespace + selector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + parameterNotFoundAction: parameterNotFoundAction + policyName: policyName + matchResources: + matchPolicy: matchPolicy + resourceRules: + - resourceNames: + - resourceNames + - resourceNames + operations: + - operations + - operations + apiVersions: + - apiVersions + - apiVersions + scope: scope + resources: + - resources + - resources + apiGroups: + - apiGroups + - apiGroups + - resourceNames: + - resourceNames + - resourceNames + operations: + - operations + - operations + apiVersions: + - apiVersions + - apiVersions + scope: scope + resources: + - resources + - resources + apiGroups: + - apiGroups + - apiGroups + excludeResourceRules: + - resourceNames: + - resourceNames + - resourceNames + operations: + - operations + - operations + apiVersions: + - apiVersions + - apiVersions + scope: scope + resources: + - resources + - resources + apiGroups: + - apiGroups + - apiGroups + - resourceNames: + - resourceNames + - resourceNames + operations: + - operations + - operations + apiVersions: + - apiVersions + - apiVersions + scope: scope + resources: + - resources + - resources + apiGroups: + - apiGroups + - apiGroups + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + objectSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + properties: + apiVersion: + description: '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' + type: string + kind: + description: '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' + type: string + metadata: + $ref: '#/components/schemas/v1.ObjectMeta' + spec: + $ref: '#/components/schemas/v1alpha1.MutatingAdmissionPolicyBindingSpec' + type: object + x-kubernetes-group-version-kind: + - group: admissionregistration.k8s.io + kind: MutatingAdmissionPolicyBinding + version: v1alpha1 + x-implements: + - io.kubernetes.client.common.KubernetesObject + v1alpha1.MutatingAdmissionPolicyBindingList: + description: MutatingAdmissionPolicyBindingList is a list of MutatingAdmissionPolicyBinding. + example: + metadata: + remainingItemCount: 1 + continue: continue + resourceVersion: resourceVersion + selfLink: selfLink + apiVersion: apiVersion + kind: kind + items: + - metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: '{}' + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: '{}' + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + creationTimestamp: 2000-01-23T04:56:07.000+00:00 + name: name + namespace: namespace + apiVersion: apiVersion + kind: kind + spec: + paramRef: + name: name + namespace: namespace + selector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + parameterNotFoundAction: parameterNotFoundAction + policyName: policyName + matchResources: + matchPolicy: matchPolicy + resourceRules: + - resourceNames: + - resourceNames + - resourceNames + operations: + - operations + - operations + apiVersions: + - apiVersions + - apiVersions + scope: scope + resources: + - resources + - resources + apiGroups: + - apiGroups + - apiGroups + - resourceNames: + - resourceNames + - resourceNames + operations: + - operations + - operations + apiVersions: + - apiVersions + - apiVersions + scope: scope + resources: + - resources + - resources + apiGroups: + - apiGroups + - apiGroups + excludeResourceRules: + - resourceNames: + - resourceNames + - resourceNames + operations: + - operations + - operations + apiVersions: + - apiVersions + - apiVersions + scope: scope + resources: + - resources + - resources + apiGroups: + - apiGroups + - apiGroups + - resourceNames: + - resourceNames + - resourceNames + operations: + - operations + - operations + apiVersions: + - apiVersions + - apiVersions + scope: scope + resources: + - resources + - resources + apiGroups: + - apiGroups + - apiGroups + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + objectSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + - metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: '{}' + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: '{}' + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + creationTimestamp: 2000-01-23T04:56:07.000+00:00 + name: name + namespace: namespace + apiVersion: apiVersion + kind: kind + spec: + paramRef: + name: name + namespace: namespace + selector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + parameterNotFoundAction: parameterNotFoundAction + policyName: policyName + matchResources: + matchPolicy: matchPolicy + resourceRules: + - resourceNames: + - resourceNames + - resourceNames + operations: + - operations + - operations + apiVersions: + - apiVersions + - apiVersions + scope: scope + resources: + - resources + - resources + apiGroups: + - apiGroups + - apiGroups + - resourceNames: + - resourceNames + - resourceNames + operations: + - operations + - operations + apiVersions: + - apiVersions + - apiVersions + scope: scope + resources: + - resources + - resources + apiGroups: + - apiGroups + - apiGroups + excludeResourceRules: + - resourceNames: + - resourceNames + - resourceNames + operations: + - operations + - operations + apiVersions: + - apiVersions + - apiVersions + scope: scope + resources: + - resources + - resources + apiGroups: + - apiGroups + - apiGroups + - resourceNames: + - resourceNames + - resourceNames + operations: + - operations + - operations + apiVersions: + - apiVersions + - apiVersions + scope: scope + resources: + - resources + - resources + apiGroups: + - apiGroups + - apiGroups + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + objectSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + properties: + apiVersion: + description: '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' + type: string + items: + description: List of PolicyBinding. + items: + $ref: '#/components/schemas/v1alpha1.MutatingAdmissionPolicyBinding' + type: array + kind: + description: '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' + type: string + metadata: + $ref: '#/components/schemas/v1.ListMeta' + required: + - items + type: object + x-kubernetes-group-version-kind: + - group: admissionregistration.k8s.io + kind: MutatingAdmissionPolicyBindingList + version: v1alpha1 + x-implements: + - io.kubernetes.client.common.KubernetesListObject + v1alpha1.MutatingAdmissionPolicyBindingSpec: + description: MutatingAdmissionPolicyBindingSpec is the specification of the + MutatingAdmissionPolicyBinding. + example: + paramRef: + name: name + namespace: namespace + selector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + parameterNotFoundAction: parameterNotFoundAction + policyName: policyName + matchResources: + matchPolicy: matchPolicy + resourceRules: + - resourceNames: + - resourceNames + - resourceNames + operations: + - operations + - operations + apiVersions: + - apiVersions + - apiVersions + scope: scope + resources: + - resources + - resources + apiGroups: + - apiGroups + - apiGroups + - resourceNames: + - resourceNames + - resourceNames + operations: + - operations + - operations + apiVersions: + - apiVersions + - apiVersions + scope: scope + resources: + - resources + - resources + apiGroups: + - apiGroups + - apiGroups + excludeResourceRules: + - resourceNames: + - resourceNames + - resourceNames + operations: + - operations + - operations + apiVersions: + - apiVersions + - apiVersions + scope: scope + resources: + - resources + - resources + apiGroups: + - apiGroups + - apiGroups + - resourceNames: + - resourceNames + - resourceNames + operations: + - operations + - operations + apiVersions: + - apiVersions + - apiVersions + scope: scope + resources: + - resources + - resources + apiGroups: + - apiGroups + - apiGroups + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + objectSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + properties: + matchResources: + $ref: '#/components/schemas/v1alpha1.MatchResources' + paramRef: + $ref: '#/components/schemas/v1alpha1.ParamRef' + policyName: + description: policyName references a MutatingAdmissionPolicy name which + the MutatingAdmissionPolicyBinding binds to. If the referenced resource + does not exist, this binding is considered invalid and will be ignored + Required. + type: string + type: object + v1alpha1.MutatingAdmissionPolicyList: + description: MutatingAdmissionPolicyList is a list of MutatingAdmissionPolicy. + example: + metadata: + remainingItemCount: 1 + continue: continue + resourceVersion: resourceVersion + selfLink: selfLink + apiVersion: apiVersion + kind: kind + items: + - metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: '{}' + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: '{}' + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + creationTimestamp: 2000-01-23T04:56:07.000+00:00 + name: name + namespace: namespace + apiVersion: apiVersion + kind: kind + spec: + reinvocationPolicy: reinvocationPolicy + variables: + - expression: expression + name: name + - expression: expression + name: name + mutations: + - patchType: patchType + applyConfiguration: + expression: expression + jsonPatch: + expression: expression + - patchType: patchType + applyConfiguration: + expression: expression + jsonPatch: + expression: expression + paramKind: + apiVersion: apiVersion + kind: kind + matchConditions: + - expression: expression + name: name + - expression: expression + name: name + matchConstraints: + matchPolicy: matchPolicy + resourceRules: + - resourceNames: + - resourceNames + - resourceNames + operations: + - operations + - operations + apiVersions: + - apiVersions + - apiVersions + scope: scope + resources: + - resources + - resources + apiGroups: + - apiGroups + - apiGroups + - resourceNames: + - resourceNames + - resourceNames + operations: + - operations + - operations + apiVersions: + - apiVersions + - apiVersions + scope: scope + resources: + - resources + - resources + apiGroups: + - apiGroups + - apiGroups + excludeResourceRules: + - resourceNames: + - resourceNames + - resourceNames + operations: + - operations + - operations + apiVersions: + - apiVersions + - apiVersions + scope: scope + resources: + - resources + - resources + apiGroups: + - apiGroups + - apiGroups + - resourceNames: + - resourceNames + - resourceNames + operations: + - operations + - operations + apiVersions: + - apiVersions + - apiVersions + scope: scope + resources: + - resources + - resources + apiGroups: + - apiGroups + - apiGroups + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + objectSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + failurePolicy: failurePolicy + - metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: '{}' + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: '{}' + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + creationTimestamp: 2000-01-23T04:56:07.000+00:00 + name: name + namespace: namespace + apiVersion: apiVersion + kind: kind + spec: + reinvocationPolicy: reinvocationPolicy + variables: + - expression: expression + name: name + - expression: expression + name: name + mutations: + - patchType: patchType + applyConfiguration: + expression: expression + jsonPatch: + expression: expression + - patchType: patchType + applyConfiguration: + expression: expression + jsonPatch: + expression: expression + paramKind: + apiVersion: apiVersion + kind: kind + matchConditions: + - expression: expression + name: name + - expression: expression + name: name + matchConstraints: + matchPolicy: matchPolicy + resourceRules: + - resourceNames: + - resourceNames + - resourceNames + operations: + - operations + - operations + apiVersions: + - apiVersions + - apiVersions + scope: scope + resources: + - resources + - resources + apiGroups: + - apiGroups + - apiGroups + - resourceNames: + - resourceNames + - resourceNames + operations: + - operations + - operations + apiVersions: + - apiVersions + - apiVersions + scope: scope + resources: + - resources + - resources + apiGroups: + - apiGroups + - apiGroups + excludeResourceRules: + - resourceNames: + - resourceNames + - resourceNames + operations: + - operations + - operations + apiVersions: + - apiVersions + - apiVersions + scope: scope + resources: + - resources + - resources + apiGroups: + - apiGroups + - apiGroups + - resourceNames: + - resourceNames + - resourceNames + operations: + - operations + - operations + apiVersions: + - apiVersions + - apiVersions + scope: scope + resources: + - resources + - resources + apiGroups: + - apiGroups + - apiGroups + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + objectSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + failurePolicy: failurePolicy + properties: + apiVersion: + description: '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' + type: string + items: + description: List of ValidatingAdmissionPolicy. + items: + $ref: '#/components/schemas/v1alpha1.MutatingAdmissionPolicy' + type: array + kind: + description: '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' + type: string + metadata: + $ref: '#/components/schemas/v1.ListMeta' + required: + - items + type: object + x-kubernetes-group-version-kind: + - group: admissionregistration.k8s.io + kind: MutatingAdmissionPolicyList + version: v1alpha1 + x-implements: + - io.kubernetes.client.common.KubernetesListObject + v1alpha1.MutatingAdmissionPolicySpec: + description: MutatingAdmissionPolicySpec is the specification of the desired + behavior of the admission policy. + example: + reinvocationPolicy: reinvocationPolicy + variables: + - expression: expression + name: name + - expression: expression + name: name + mutations: + - patchType: patchType + applyConfiguration: + expression: expression + jsonPatch: + expression: expression + - patchType: patchType + applyConfiguration: + expression: expression + jsonPatch: + expression: expression + paramKind: + apiVersion: apiVersion + kind: kind + matchConditions: + - expression: expression + name: name + - expression: expression + name: name + matchConstraints: + matchPolicy: matchPolicy + resourceRules: + - resourceNames: + - resourceNames + - resourceNames + operations: + - operations + - operations + apiVersions: + - apiVersions + - apiVersions + scope: scope + resources: + - resources + - resources + apiGroups: + - apiGroups + - apiGroups + - resourceNames: + - resourceNames + - resourceNames + operations: + - operations + - operations + apiVersions: + - apiVersions + - apiVersions + scope: scope + resources: + - resources + - resources + apiGroups: + - apiGroups + - apiGroups + excludeResourceRules: + - resourceNames: + - resourceNames + - resourceNames + operations: + - operations + - operations + apiVersions: + - apiVersions + - apiVersions + scope: scope + resources: + - resources + - resources + apiGroups: + - apiGroups + - apiGroups + - resourceNames: + - resourceNames + - resourceNames + operations: + - operations + - operations + apiVersions: + - apiVersions + - apiVersions + scope: scope + resources: + - resources + - resources + apiGroups: + - apiGroups + - apiGroups + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + objectSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + failurePolicy: failurePolicy + properties: + failurePolicy: + description: |- + 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 paramKind refers to a non-existent Kind. A binding is invalid if paramRef.name refers to a non-existent resource. + + failurePolicy does not define how validations that evaluate to false are handled. + + Allowed values are Ignore or Fail. Defaults to Fail. + type: string + matchConditions: + description: |- + 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 matchConstraints. 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 + items: + $ref: '#/components/schemas/v1alpha1.MatchCondition' + type: array + x-kubernetes-patch-strategy: merge + x-kubernetes-list-type: map + x-kubernetes-list-map-keys: + - name + x-kubernetes-patch-merge-key: name + matchConstraints: + $ref: '#/components/schemas/v1alpha1.MatchResources' + mutations: + description: mutations contain operations to perform on matching objects. + mutations may not be empty; a minimum of one mutation is required. mutations + are evaluated in order, and are reinvoked according to the reinvocationPolicy. + The mutations of a policy are invoked for each binding of this policy + and reinvocation of mutations occurs on a per binding basis. + items: + $ref: '#/components/schemas/v1alpha1.Mutation' + type: array + x-kubernetes-list-type: atomic + paramKind: + $ref: '#/components/schemas/v1alpha1.ParamKind' + reinvocationPolicy: + description: |- + reinvocationPolicy indicates whether mutations may be called multiple times per MutatingAdmissionPolicyBinding as part of a single admission evaluation. Allowed values are "Never" and "IfNeeded". + + Never: These mutations will not be called more than once per binding in a single admission evaluation. + + IfNeeded: These mutations may be invoked more than once per binding for a single admission request and there is no guarantee of order with respect to other admission plugins, admission webhooks, bindings of this policy and admission policies. Mutations are only reinvoked when mutations change the object after this mutation is invoked. Required. + type: string + variables: + description: |- + 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. + items: + $ref: '#/components/schemas/v1alpha1.Variable' + type: array + x-kubernetes-list-type: atomic + type: object + v1alpha1.Mutation: + description: Mutation specifies the CEL expression which is used to apply the + Mutation. + example: + patchType: patchType + applyConfiguration: + expression: expression + jsonPatch: + expression: expression + properties: + applyConfiguration: + $ref: '#/components/schemas/v1alpha1.ApplyConfiguration' + jsonPatch: + $ref: '#/components/schemas/v1alpha1.JSONPatch' + patchType: + description: patchType indicates the patch strategy used. Allowed values + are "ApplyConfiguration" and "JSONPatch". Required. + type: string + required: + - patchType + type: object + v1alpha1.NamedRuleWithOperations: + description: NamedRuleWithOperations is a tuple of Operations and Resources + with ResourceNames. + example: + resourceNames: + - resourceNames + - resourceNames + operations: + - operations + - operations + apiVersions: + - apiVersions + - apiVersions + scope: scope + resources: + - resources + - resources + apiGroups: + - apiGroups + - apiGroups + properties: + apiGroups: + description: APIGroups is the API groups the resources belong to. '*' is + all groups. If '*' is present, the length of the slice must be one. Required. + items: + type: string + type: array + x-kubernetes-list-type: atomic + apiVersions: + description: APIVersions is the API versions the resources belong to. '*' + is all versions. If '*' is present, the length of the slice must be one. + Required. + items: + type: string + type: array + x-kubernetes-list-type: atomic + operations: + description: 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. + items: + type: string + type: array + x-kubernetes-list-type: atomic + resourceNames: + description: ResourceNames is an optional white list of names that the rule + applies to. An empty set means that everything is allowed. + items: + type: string + type: array + x-kubernetes-list-type: atomic + resources: + description: |- + 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. + items: + type: string + type: array + x-kubernetes-list-type: atomic + scope: + description: 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 "*". + type: string + type: object + x-kubernetes-map-type: atomic + v1alpha1.ParamKind: + description: ParamKind is a tuple of Group Kind and Version. + example: + apiVersion: apiVersion + kind: kind + properties: + apiVersion: + description: APIVersion is the API group version the resources belong to. + In format of "group/version". Required. + type: string + kind: + description: Kind is the API kind the resources belong to. Required. + type: string + type: object + x-kubernetes-map-type: atomic + v1alpha1.ParamRef: + description: ParamRef describes how to locate the params to be used as input + to expressions of rules applied by a policy binding. + example: + name: name + namespace: namespace + selector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + parameterNotFoundAction: parameterNotFoundAction + properties: + name: + description: |- + `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. + type: string + namespace: + description: |- + 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. + type: string + parameterNotFoundAction: + description: |- + `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` + type: string + selector: + $ref: '#/components/schemas/v1.LabelSelector' + type: object + x-kubernetes-map-type: atomic + v1alpha1.Variable: + description: Variable is the definition of a variable that is used for composition. + example: + expression: expression + name: name + properties: + expression: + description: 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. + type: string + name: + description: 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` + type: string + required: + - expression + - name + type: object + v1beta1.AuditAnnotation: + description: AuditAnnotation describes how to produce an audit annotation for + an API request. + example: + valueExpression: valueExpression + key: key + properties: + key: + description: |- + 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. + type: string + valueExpression: + description: |- + 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. + type: string + required: + - key + - valueExpression + type: object + v1beta1.ExpressionWarning: + description: ExpressionWarning is a warning information that targets a specific + expression. + example: + fieldRef: fieldRef + warning: warning + properties: + fieldRef: + description: 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" + type: string + warning: + description: 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. + type: string + required: + - fieldRef + - warning + type: object + v1beta1.MatchCondition: + description: MatchCondition represents a condition which must be fulfilled for + a request to be sent to a webhook. + example: + expression: expression + name: name + properties: + expression: + description: |- + 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. + type: string + name: + description: |- + 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. + type: string + required: + - expression + - name + type: object + v1beta1.MatchResources: + 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) + example: + matchPolicy: matchPolicy + resourceRules: + - resourceNames: + - resourceNames + - resourceNames + operations: + - operations + - operations + apiVersions: + - apiVersions + - apiVersions + scope: scope + resources: + - resources + - resources + apiGroups: + - apiGroups + - apiGroups + - resourceNames: + - resourceNames + - resourceNames + operations: + - operations + - operations + apiVersions: + - apiVersions + - apiVersions + scope: scope + resources: + - resources + - resources + apiGroups: + - apiGroups + - apiGroups + excludeResourceRules: + - resourceNames: + - resourceNames + - resourceNames + operations: + - operations + - operations + apiVersions: + - apiVersions + - apiVersions + scope: scope + resources: + - resources + - resources + apiGroups: + - apiGroups + - apiGroups + - resourceNames: + - resourceNames + - resourceNames + operations: + - operations + - operations + apiVersions: + - apiVersions + - apiVersions + scope: scope + resources: + - resources + - resources + apiGroups: + - apiGroups + - apiGroups + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + objectSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + properties: + excludeResourceRules: + description: 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) + items: + $ref: '#/components/schemas/v1beta1.NamedRuleWithOperations' + type: array + x-kubernetes-list-type: atomic + matchPolicy: + description: |- + 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" + type: string + namespaceSelector: + $ref: '#/components/schemas/v1.LabelSelector' + objectSelector: + $ref: '#/components/schemas/v1.LabelSelector' + resourceRules: + description: ResourceRules describes what operations on what resources/subresources + the ValidatingAdmissionPolicy matches. The policy cares about an operation + if it matches _any_ Rule. + items: + $ref: '#/components/schemas/v1beta1.NamedRuleWithOperations' + type: array + x-kubernetes-list-type: atomic + type: object + x-kubernetes-map-type: atomic + v1beta1.NamedRuleWithOperations: + description: NamedRuleWithOperations is a tuple of Operations and Resources + with ResourceNames. + example: + resourceNames: + - resourceNames + - resourceNames + operations: + - operations + - operations + apiVersions: + - apiVersions + - apiVersions + scope: scope + resources: + - resources + - resources + apiGroups: + - apiGroups + - apiGroups + properties: + apiGroups: + description: APIGroups is the API groups the resources belong to. '*' is + all groups. If '*' is present, the length of the slice must be one. Required. + items: + type: string + type: array + x-kubernetes-list-type: atomic + apiVersions: + description: APIVersions is the API versions the resources belong to. '*' + is all versions. If '*' is present, the length of the slice must be one. + Required. + items: + type: string + type: array + x-kubernetes-list-type: atomic + operations: + description: 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. + items: + type: string + type: array + x-kubernetes-list-type: atomic + resourceNames: + description: ResourceNames is an optional white list of names that the rule + applies to. An empty set means that everything is allowed. + items: + type: string + type: array + x-kubernetes-list-type: atomic + resources: + description: |- + 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. + items: + type: string + type: array + x-kubernetes-list-type: atomic + scope: + description: 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 "*". + type: string + type: object + x-kubernetes-map-type: atomic + v1beta1.ParamKind: + description: ParamKind is a tuple of Group Kind and Version. + example: + apiVersion: apiVersion + kind: kind + properties: + apiVersion: + description: APIVersion is the API group version the resources belong to. + In format of "group/version". Required. + type: string + kind: + description: Kind is the API kind the resources belong to. Required. + type: string + type: object + x-kubernetes-map-type: atomic + v1beta1.ParamRef: + description: ParamRef describes how to locate the params to be used as input + to expressions of rules applied by a policy binding. + example: + name: name + namespace: namespace + selector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + parameterNotFoundAction: parameterNotFoundAction + properties: + name: + description: |- + 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. + type: string + namespace: + description: |- + 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. + type: string + parameterNotFoundAction: + description: |- + `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 + type: string + selector: + $ref: '#/components/schemas/v1.LabelSelector' + type: object + x-kubernetes-map-type: atomic + v1beta1.TypeChecking: + description: TypeChecking contains results of type checking the expressions + in the ValidatingAdmissionPolicy + example: + expressionWarnings: + - fieldRef: fieldRef + warning: warning + - fieldRef: fieldRef + warning: warning + properties: + expressionWarnings: + description: The type checking warnings for each expression. + items: + $ref: '#/components/schemas/v1beta1.ExpressionWarning' + type: array + x-kubernetes-list-type: atomic + type: object + v1beta1.ValidatingAdmissionPolicy: + description: ValidatingAdmissionPolicy describes the definition of an admission + validation policy that accepts or rejects an object without changing it. + example: + metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: '{}' + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: '{}' + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + creationTimestamp: 2000-01-23T04:56:07.000+00:00 + name: name + namespace: namespace + apiVersion: apiVersion + kind: kind + spec: + variables: + - expression: expression + name: name + - expression: expression + name: name + paramKind: + apiVersion: apiVersion + kind: kind + auditAnnotations: + - valueExpression: valueExpression + key: key + - valueExpression: valueExpression + key: key + matchConditions: + - expression: expression + name: name + - expression: expression + name: name + matchConstraints: + matchPolicy: matchPolicy + resourceRules: + - resourceNames: + - resourceNames + - resourceNames + operations: + - operations + - operations + apiVersions: + - apiVersions + - apiVersions + scope: scope + resources: + - resources + - resources + apiGroups: + - apiGroups + - apiGroups + - resourceNames: + - resourceNames + - resourceNames + operations: + - operations + - operations + apiVersions: + - apiVersions + - apiVersions + scope: scope + resources: + - resources + - resources + apiGroups: + - apiGroups + - apiGroups + excludeResourceRules: + - resourceNames: + - resourceNames + - resourceNames + operations: + - operations + - operations + apiVersions: + - apiVersions + - apiVersions + scope: scope + resources: + - resources + - resources + apiGroups: + - apiGroups + - apiGroups + - resourceNames: + - resourceNames + - resourceNames + operations: + - operations + - operations + apiVersions: + - apiVersions + - apiVersions + scope: scope + resources: + - resources + - resources + apiGroups: + - apiGroups + - apiGroups + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + objectSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + validations: + - reason: reason + expression: expression + messageExpression: messageExpression + message: message + - reason: reason + expression: expression + messageExpression: messageExpression + message: message + failurePolicy: failurePolicy + status: + typeChecking: + expressionWarnings: + - fieldRef: fieldRef + warning: warning + - fieldRef: fieldRef + warning: warning + conditions: + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + observedGeneration: 5 + status: status + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + observedGeneration: 5 + status: status + observedGeneration: 0 + properties: + apiVersion: + description: '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' + type: string + kind: + description: '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' + type: string + metadata: + $ref: '#/components/schemas/v1.ObjectMeta' + spec: + $ref: '#/components/schemas/v1beta1.ValidatingAdmissionPolicySpec' + status: + $ref: '#/components/schemas/v1beta1.ValidatingAdmissionPolicyStatus' + type: object + x-kubernetes-group-version-kind: + - group: admissionregistration.k8s.io + kind: ValidatingAdmissionPolicy + version: v1beta1 + x-implements: + - io.kubernetes.client.common.KubernetesObject + v1beta1.ValidatingAdmissionPolicyBinding: + 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. + example: + metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: '{}' + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: '{}' + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + creationTimestamp: 2000-01-23T04:56:07.000+00:00 + name: name + namespace: namespace + apiVersion: apiVersion + kind: kind + spec: + paramRef: + name: name + namespace: namespace + selector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + parameterNotFoundAction: parameterNotFoundAction + policyName: policyName + matchResources: + matchPolicy: matchPolicy + resourceRules: + - resourceNames: + - resourceNames + - resourceNames + operations: + - operations + - operations + apiVersions: + - apiVersions + - apiVersions + scope: scope + resources: + - resources + - resources + apiGroups: + - apiGroups + - apiGroups + - resourceNames: + - resourceNames + - resourceNames + operations: + - operations + - operations + apiVersions: + - apiVersions + - apiVersions + scope: scope + resources: + - resources + - resources + apiGroups: + - apiGroups + - apiGroups + excludeResourceRules: + - resourceNames: + - resourceNames + - resourceNames + operations: + - operations + - operations + apiVersions: + - apiVersions + - apiVersions + scope: scope + resources: + - resources + - resources + apiGroups: + - apiGroups + - apiGroups + - resourceNames: + - resourceNames + - resourceNames + operations: + - operations + - operations + apiVersions: + - apiVersions + - apiVersions + scope: scope + resources: + - resources + - resources + apiGroups: + - apiGroups + - apiGroups + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + objectSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + validationActions: + - validationActions + - validationActions + properties: + apiVersion: + description: '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' + type: string + kind: + description: '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' + type: string + metadata: + $ref: '#/components/schemas/v1.ObjectMeta' + spec: + $ref: '#/components/schemas/v1beta1.ValidatingAdmissionPolicyBindingSpec' + type: object + x-kubernetes-group-version-kind: + - group: admissionregistration.k8s.io + kind: ValidatingAdmissionPolicyBinding + version: v1beta1 + x-implements: + - io.kubernetes.client.common.KubernetesObject + v1beta1.ValidatingAdmissionPolicyBindingList: + description: ValidatingAdmissionPolicyBindingList is a list of ValidatingAdmissionPolicyBinding. + example: + metadata: + remainingItemCount: 1 + continue: continue + resourceVersion: resourceVersion + selfLink: selfLink + apiVersion: apiVersion + kind: kind + items: + - metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: '{}' + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: '{}' + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + creationTimestamp: 2000-01-23T04:56:07.000+00:00 + name: name + namespace: namespace + apiVersion: apiVersion + kind: kind + spec: + paramRef: + name: name + namespace: namespace + selector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + parameterNotFoundAction: parameterNotFoundAction + policyName: policyName + matchResources: + matchPolicy: matchPolicy + resourceRules: + - resourceNames: + - resourceNames + - resourceNames + operations: + - operations + - operations + apiVersions: + - apiVersions + - apiVersions + scope: scope + resources: + - resources + - resources + apiGroups: + - apiGroups + - apiGroups + - resourceNames: + - resourceNames + - resourceNames + operations: + - operations + - operations + apiVersions: + - apiVersions + - apiVersions + scope: scope + resources: + - resources + - resources + apiGroups: + - apiGroups + - apiGroups + excludeResourceRules: + - resourceNames: + - resourceNames + - resourceNames + operations: + - operations + - operations + apiVersions: + - apiVersions + - apiVersions + scope: scope + resources: + - resources + - resources + apiGroups: + - apiGroups + - apiGroups + - resourceNames: + - resourceNames + - resourceNames + operations: + - operations + - operations + apiVersions: + - apiVersions + - apiVersions + scope: scope + resources: + - resources + - resources + apiGroups: + - apiGroups + - apiGroups + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + objectSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + validationActions: + - validationActions + - validationActions + - metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: '{}' + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: '{}' + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + creationTimestamp: 2000-01-23T04:56:07.000+00:00 + name: name + namespace: namespace + apiVersion: apiVersion + kind: kind + spec: + paramRef: + name: name + namespace: namespace + selector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + parameterNotFoundAction: parameterNotFoundAction + policyName: policyName + matchResources: + matchPolicy: matchPolicy + resourceRules: + - resourceNames: + - resourceNames + - resourceNames + operations: + - operations + - operations + apiVersions: + - apiVersions + - apiVersions + scope: scope + resources: + - resources + - resources + apiGroups: + - apiGroups + - apiGroups + - resourceNames: + - resourceNames + - resourceNames + operations: + - operations + - operations + apiVersions: + - apiVersions + - apiVersions + scope: scope + resources: + - resources + - resources + apiGroups: + - apiGroups + - apiGroups + excludeResourceRules: + - resourceNames: + - resourceNames + - resourceNames + operations: + - operations + - operations + apiVersions: + - apiVersions + - apiVersions + scope: scope + resources: + - resources + - resources + apiGroups: + - apiGroups + - apiGroups + - resourceNames: + - resourceNames + - resourceNames + operations: + - operations + - operations + apiVersions: + - apiVersions + - apiVersions + scope: scope + resources: + - resources + - resources + apiGroups: + - apiGroups + - apiGroups + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + objectSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + validationActions: + - validationActions + - validationActions + properties: + apiVersion: + description: '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' + type: string + items: + description: List of PolicyBinding. + items: + $ref: '#/components/schemas/v1beta1.ValidatingAdmissionPolicyBinding' + type: array + kind: + description: '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' + type: string + metadata: + $ref: '#/components/schemas/v1.ListMeta' + required: + - items + type: object + x-kubernetes-group-version-kind: + - group: admissionregistration.k8s.io + kind: ValidatingAdmissionPolicyBindingList + version: v1beta1 + x-implements: + - io.kubernetes.client.common.KubernetesListObject + v1beta1.ValidatingAdmissionPolicyBindingSpec: + description: ValidatingAdmissionPolicyBindingSpec is the specification of the + ValidatingAdmissionPolicyBinding. + example: + paramRef: + name: name + namespace: namespace + selector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + parameterNotFoundAction: parameterNotFoundAction + policyName: policyName + matchResources: + matchPolicy: matchPolicy + resourceRules: + - resourceNames: + - resourceNames + - resourceNames + operations: + - operations + - operations + apiVersions: + - apiVersions + - apiVersions + scope: scope + resources: + - resources + - resources + apiGroups: + - apiGroups + - apiGroups + - resourceNames: + - resourceNames + - resourceNames + operations: + - operations + - operations + apiVersions: + - apiVersions + - apiVersions + scope: scope + resources: + - resources + - resources + apiGroups: + - apiGroups + - apiGroups + excludeResourceRules: + - resourceNames: + - resourceNames + - resourceNames + operations: + - operations + - operations + apiVersions: + - apiVersions + - apiVersions + scope: scope + resources: + - resources + - resources + apiGroups: + - apiGroups + - apiGroups + - resourceNames: + - resourceNames + - resourceNames + operations: + - operations + - operations + apiVersions: + - apiVersions + - apiVersions + scope: scope + resources: + - resources + - resources + apiGroups: + - apiGroups + - apiGroups + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + objectSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + validationActions: + - validationActions + - validationActions + properties: + matchResources: + $ref: '#/components/schemas/v1beta1.MatchResources' + paramRef: + $ref: '#/components/schemas/v1beta1.ParamRef' + policyName: + description: 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. + type: string + validationActions: + description: |- + 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. + items: + type: string + type: array + x-kubernetes-list-type: set + type: object + v1beta1.ValidatingAdmissionPolicyList: + description: ValidatingAdmissionPolicyList is a list of ValidatingAdmissionPolicy. + example: + metadata: + remainingItemCount: 1 + continue: continue + resourceVersion: resourceVersion + selfLink: selfLink + apiVersion: apiVersion + kind: kind + items: + - metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: '{}' + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: '{}' + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + creationTimestamp: 2000-01-23T04:56:07.000+00:00 + name: name + namespace: namespace + apiVersion: apiVersion + kind: kind + spec: + variables: + - expression: expression + name: name + - expression: expression + name: name + paramKind: + apiVersion: apiVersion + kind: kind + auditAnnotations: + - valueExpression: valueExpression + key: key + - valueExpression: valueExpression + key: key + matchConditions: + - expression: expression + name: name + - expression: expression + name: name + matchConstraints: + matchPolicy: matchPolicy + resourceRules: + - resourceNames: + - resourceNames + - resourceNames + operations: + - operations + - operations + apiVersions: + - apiVersions + - apiVersions + scope: scope + resources: + - resources + - resources + apiGroups: + - apiGroups + - apiGroups + - resourceNames: + - resourceNames + - resourceNames + operations: + - operations + - operations + apiVersions: + - apiVersions + - apiVersions + scope: scope + resources: + - resources + - resources + apiGroups: + - apiGroups + - apiGroups + excludeResourceRules: + - resourceNames: + - resourceNames + - resourceNames + operations: + - operations + - operations + apiVersions: + - apiVersions + - apiVersions + scope: scope + resources: + - resources + - resources + apiGroups: + - apiGroups + - apiGroups + - resourceNames: + - resourceNames + - resourceNames + operations: + - operations + - operations + apiVersions: + - apiVersions + - apiVersions + scope: scope + resources: + - resources + - resources + apiGroups: + - apiGroups + - apiGroups + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + objectSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + validations: + - reason: reason + expression: expression + messageExpression: messageExpression + message: message + - reason: reason + expression: expression + messageExpression: messageExpression + message: message + failurePolicy: failurePolicy + status: + typeChecking: + expressionWarnings: + - fieldRef: fieldRef + warning: warning + - fieldRef: fieldRef + warning: warning + conditions: + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + observedGeneration: 5 + status: status + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + observedGeneration: 5 + status: status + observedGeneration: 0 + - metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: '{}' + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: '{}' + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + creationTimestamp: 2000-01-23T04:56:07.000+00:00 + name: name + namespace: namespace + apiVersion: apiVersion + kind: kind + spec: + variables: + - expression: expression + name: name + - expression: expression + name: name + paramKind: + apiVersion: apiVersion + kind: kind + auditAnnotations: + - valueExpression: valueExpression + key: key + - valueExpression: valueExpression + key: key + matchConditions: + - expression: expression + name: name + - expression: expression + name: name + matchConstraints: + matchPolicy: matchPolicy + resourceRules: + - resourceNames: + - resourceNames + - resourceNames + operations: + - operations + - operations + apiVersions: + - apiVersions + - apiVersions + scope: scope + resources: + - resources + - resources + apiGroups: + - apiGroups + - apiGroups + - resourceNames: + - resourceNames + - resourceNames + operations: + - operations + - operations + apiVersions: + - apiVersions + - apiVersions + scope: scope + resources: + - resources + - resources + apiGroups: + - apiGroups + - apiGroups + excludeResourceRules: + - resourceNames: + - resourceNames + - resourceNames + operations: + - operations + - operations + apiVersions: + - apiVersions + - apiVersions + scope: scope + resources: + - resources + - resources + apiGroups: + - apiGroups + - apiGroups + - resourceNames: + - resourceNames + - resourceNames + operations: + - operations + - operations + apiVersions: + - apiVersions + - apiVersions + scope: scope + resources: + - resources + - resources + apiGroups: + - apiGroups + - apiGroups + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + objectSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + validations: + - reason: reason + expression: expression + messageExpression: messageExpression + message: message + - reason: reason + expression: expression + messageExpression: messageExpression + message: message + failurePolicy: failurePolicy + status: + typeChecking: + expressionWarnings: + - fieldRef: fieldRef + warning: warning + - fieldRef: fieldRef + warning: warning + conditions: + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + observedGeneration: 5 + status: status + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + observedGeneration: 5 + status: status + observedGeneration: 0 + properties: + apiVersion: + description: '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' + type: string + items: + description: List of ValidatingAdmissionPolicy. + items: + $ref: '#/components/schemas/v1beta1.ValidatingAdmissionPolicy' + type: array + kind: + description: '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' + type: string + metadata: + $ref: '#/components/schemas/v1.ListMeta' + required: + - items + type: object + x-kubernetes-group-version-kind: + - group: admissionregistration.k8s.io + kind: ValidatingAdmissionPolicyList + version: v1beta1 + x-implements: + - io.kubernetes.client.common.KubernetesListObject + v1beta1.ValidatingAdmissionPolicySpec: + description: ValidatingAdmissionPolicySpec is the specification of the desired + behavior of the AdmissionPolicy. + example: + variables: + - expression: expression + name: name + - expression: expression + name: name + paramKind: + apiVersion: apiVersion + kind: kind + auditAnnotations: + - valueExpression: valueExpression + key: key + - valueExpression: valueExpression + key: key + matchConditions: + - expression: expression + name: name + - expression: expression + name: name + matchConstraints: + matchPolicy: matchPolicy + resourceRules: + - resourceNames: + - resourceNames + - resourceNames + operations: + - operations + - operations + apiVersions: + - apiVersions + - apiVersions + scope: scope + resources: + - resources + - resources + apiGroups: + - apiGroups + - apiGroups + - resourceNames: + - resourceNames + - resourceNames + operations: + - operations + - operations + apiVersions: + - apiVersions + - apiVersions + scope: scope + resources: + - resources + - resources + apiGroups: + - apiGroups + - apiGroups + excludeResourceRules: + - resourceNames: + - resourceNames + - resourceNames + operations: + - operations + - operations + apiVersions: + - apiVersions + - apiVersions + scope: scope + resources: + - resources + - resources + apiGroups: + - apiGroups + - apiGroups + - resourceNames: + - resourceNames + - resourceNames + operations: + - operations + - operations + apiVersions: + - apiVersions + - apiVersions + scope: scope + resources: + - resources + - resources + apiGroups: + - apiGroups + - apiGroups + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + objectSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + validations: + - reason: reason + expression: expression + messageExpression: messageExpression + message: message + - reason: reason + expression: expression + messageExpression: messageExpression + message: message + failurePolicy: failurePolicy + properties: + auditAnnotations: + description: 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. + items: + $ref: '#/components/schemas/v1beta1.AuditAnnotation' + type: array + x-kubernetes-list-type: atomic + failurePolicy: + description: |- + 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. + type: string + matchConditions: + description: |- + 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 + items: + $ref: '#/components/schemas/v1beta1.MatchCondition' + type: array + x-kubernetes-patch-strategy: merge + x-kubernetes-list-type: map + x-kubernetes-list-map-keys: + - name + x-kubernetes-patch-merge-key: name + matchConstraints: + $ref: '#/components/schemas/v1beta1.MatchResources' + paramKind: + $ref: '#/components/schemas/v1beta1.ParamKind' + validations: + description: 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. + items: + $ref: '#/components/schemas/v1beta1.Validation' + type: array + x-kubernetes-list-type: atomic + variables: + description: |- + 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. + items: + $ref: '#/components/schemas/v1beta1.Variable' + type: array + x-kubernetes-patch-strategy: merge + x-kubernetes-list-type: map + x-kubernetes-list-map-keys: + - name + x-kubernetes-patch-merge-key: name + type: object + v1beta1.ValidatingAdmissionPolicyStatus: + description: ValidatingAdmissionPolicyStatus represents the status of an admission + validation policy. + example: + typeChecking: + expressionWarnings: + - fieldRef: fieldRef + warning: warning + - fieldRef: fieldRef + warning: warning + conditions: + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + observedGeneration: 5 + status: status + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + observedGeneration: 5 + status: status + observedGeneration: 0 + properties: + conditions: + description: The conditions represent the latest available observations + of a policy's current state. + items: + $ref: '#/components/schemas/v1.Condition' + type: array + x-kubernetes-list-type: map + x-kubernetes-list-map-keys: + - type + observedGeneration: + description: The generation observed by the controller. + format: int64 + type: integer + typeChecking: + $ref: '#/components/schemas/v1beta1.TypeChecking' + type: object + v1beta1.Validation: + description: Validation specifies the CEL expression which is used to apply + the validation. + example: + reason: reason + expression: expression + messageExpression: messageExpression + message: message + properties: + expression: + description: "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:\n\n- '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.\n For example,\ + \ a variable named 'foo' can be accessed as 'variables.foo'.\n- 'authorizer'\ + \ - A CEL Authorizer. May be used to perform authorization checks for\ + \ the principal (user or service account) of the request.\n See https://pkg.go.dev/k8s.io/apiserver/pkg/cel/library#Authz\n\ + - 'authorizer.requestResource' - A CEL ResourceCheck constructed from\ + \ the 'authorizer' and configured with the\n request resource.\n\nThe\ + \ `apiVersion`, `kind`, `metadata.name` and `metadata.generateName` are\ + \ always accessible from the root of the object. No other metadata properties\ + \ are accessible.\n\nOnly 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:\n\t \"true\", \"false\"\ + , \"null\", \"in\", \"as\", \"break\", \"const\", \"continue\", \"else\"\ + , \"for\", \"function\", \"if\",\n\t \"import\", \"let\", \"loop\", \"\ + package\", \"namespace\", \"return\".\nExamples:\n - Expression accessing\ + \ a property named \"namespace\": {\"Expression\": \"object.__namespace__\ + \ > 0\"}\n - Expression accessing a property named \"x-prop\": {\"Expression\"\ + : \"object.x__dash__prop > 0\"}\n - Expression accessing a property named\ + \ \"redact__d\": {\"Expression\": \"object.redact__underscores__d > 0\"\ + }\n\nEquality 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:\n - 'set': `X + Y` performs a union\ + \ where the array positions of all elements in `X` are preserved and\n\ + \ non-intersecting elements in `Y` are appended, retaining their partial\ + \ order.\n - 'map': `X + Y` performs a merge where the array positions\ + \ of all keys in `X` are preserved but the values\n are overwritten\ + \ by values in `Y` when the key sets of `X` and `Y` intersect. Elements\ + \ in `Y` with\n non-intersecting keys are appended, retaining their\ + \ partial order.\nRequired." + type: string + message: + description: '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}".' + type: string + messageExpression: + description: '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)+")"' + type: string + reason: + description: '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.' + type: string + required: + - expression + type: object + v1beta1.Variable: + description: Variable is the definition of a variable that is used for composition. + A variable is defined as a named expression. + example: + expression: expression + name: name + properties: + expression: + description: 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. + type: string + name: + description: 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` + type: string + required: + - expression + - name + type: object + x-kubernetes-map-type: atomic + v1alpha1.ServerStorageVersion: + description: An API server instance reports the version it can decode and the + version it encodes objects to when persisting objects in the backend. + example: + apiServerID: apiServerID + decodableVersions: + - decodableVersions + - decodableVersions + encodingVersion: encodingVersion + servedVersions: + - servedVersions + - servedVersions + properties: + apiServerID: + description: The ID of the reporting API server. + type: string + decodableVersions: + description: The API server can decode objects encoded in these versions. + The encodingVersion must be included in the decodableVersions. + items: + type: string + type: array + x-kubernetes-list-type: set + encodingVersion: + description: The API server encodes the object to this version when persisting + it in the backend (e.g., etcd). + type: string + servedVersions: + description: The API server can serve these versions. DecodableVersions + must include all ServedVersions. + items: + type: string + type: array + x-kubernetes-list-type: set + type: object + v1alpha1.StorageVersion: + description: Storage version of a specific resource. + example: + metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: '{}' + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: '{}' + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + creationTimestamp: 2000-01-23T04:56:07.000+00:00 + name: name + namespace: namespace + apiVersion: apiVersion + kind: kind + spec: '{}' + status: + commonEncodingVersion: commonEncodingVersion + conditions: + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + observedGeneration: 0 + status: status + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + observedGeneration: 0 + status: status + storageVersions: + - apiServerID: apiServerID + decodableVersions: + - decodableVersions + - decodableVersions + encodingVersion: encodingVersion + servedVersions: + - servedVersions + - servedVersions + - apiServerID: apiServerID + decodableVersions: + - decodableVersions + - decodableVersions + encodingVersion: encodingVersion + servedVersions: + - servedVersions + - servedVersions + properties: + apiVersion: + description: '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' + type: string + kind: + description: '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' + type: string + metadata: + $ref: '#/components/schemas/v1.ObjectMeta' + spec: + description: Spec is an empty spec. It is here to comply with Kubernetes + API style. + properties: {} + type: object + status: + $ref: '#/components/schemas/v1alpha1.StorageVersionStatus' + required: + - spec + - status + type: object + x-kubernetes-group-version-kind: + - group: internal.apiserver.k8s.io + kind: StorageVersion + version: v1alpha1 + x-implements: + - io.kubernetes.client.common.KubernetesObject + v1alpha1.StorageVersionCondition: + description: Describes the state of the storageVersion at a certain point. + example: + reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + observedGeneration: 0 + status: status + properties: + lastTransitionTime: + description: Last time the condition transitioned from one status to another. + format: date-time + type: string + message: + description: A human readable message indicating details about the transition. + type: string + observedGeneration: + description: If set, this represents the .metadata.generation that the condition + was set based upon. + format: int64 + type: integer + reason: + description: The reason for the condition's last transition. + type: string + status: + description: Status of the condition, one of True, False, Unknown. + type: string + type: + description: Type of the condition. + type: string + required: + - message + - reason + - status + - type + type: object + v1alpha1.StorageVersionList: + description: A list of StorageVersions. + example: + metadata: + remainingItemCount: 1 + continue: continue + resourceVersion: resourceVersion + selfLink: selfLink + apiVersion: apiVersion + kind: kind + items: + - metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: '{}' + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: '{}' + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + creationTimestamp: 2000-01-23T04:56:07.000+00:00 + name: name + namespace: namespace + apiVersion: apiVersion + kind: kind + spec: '{}' + status: + commonEncodingVersion: commonEncodingVersion + conditions: + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + observedGeneration: 0 + status: status + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + observedGeneration: 0 + status: status + storageVersions: + - apiServerID: apiServerID + decodableVersions: + - decodableVersions + - decodableVersions + encodingVersion: encodingVersion + servedVersions: + - servedVersions + - servedVersions + - apiServerID: apiServerID + decodableVersions: + - decodableVersions + - decodableVersions + encodingVersion: encodingVersion + servedVersions: + - servedVersions + - servedVersions + - metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: '{}' + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: '{}' + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + creationTimestamp: 2000-01-23T04:56:07.000+00:00 + name: name + namespace: namespace + apiVersion: apiVersion + kind: kind + spec: '{}' + status: + commonEncodingVersion: commonEncodingVersion + conditions: + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + observedGeneration: 0 + status: status + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + observedGeneration: 0 + status: status + storageVersions: + - apiServerID: apiServerID + decodableVersions: + - decodableVersions + - decodableVersions + encodingVersion: encodingVersion + servedVersions: + - servedVersions + - servedVersions + - apiServerID: apiServerID + decodableVersions: + - decodableVersions + - decodableVersions + encodingVersion: encodingVersion + servedVersions: + - servedVersions + - servedVersions + properties: + apiVersion: + description: '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' + type: string + items: + description: Items holds a list of StorageVersion + items: + $ref: '#/components/schemas/v1alpha1.StorageVersion' + type: array + kind: + description: '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' + type: string + metadata: + $ref: '#/components/schemas/v1.ListMeta' + required: + - items + type: object + x-kubernetes-group-version-kind: + - group: internal.apiserver.k8s.io + kind: StorageVersionList + version: v1alpha1 + x-implements: + - io.kubernetes.client.common.KubernetesListObject + v1alpha1.StorageVersionStatus: + description: API server instances report the versions they can decode and the + version they encode objects to when persisting objects in the backend. + example: + commonEncodingVersion: commonEncodingVersion + conditions: + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + observedGeneration: 0 + status: status + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + observedGeneration: 0 + status: status + storageVersions: + - apiServerID: apiServerID + decodableVersions: + - decodableVersions + - decodableVersions + encodingVersion: encodingVersion + servedVersions: + - servedVersions + - servedVersions + - apiServerID: apiServerID + decodableVersions: + - decodableVersions + - decodableVersions + encodingVersion: encodingVersion + servedVersions: + - servedVersions + - servedVersions + properties: + commonEncodingVersion: + description: 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. + type: string + conditions: + description: The latest available observations of the storageVersion's state. + items: + $ref: '#/components/schemas/v1alpha1.StorageVersionCondition' + type: array + x-kubernetes-list-type: map + x-kubernetes-list-map-keys: + - type + storageVersions: + description: The reported versions per API server instance. + items: + $ref: '#/components/schemas/v1alpha1.ServerStorageVersion' + type: array + x-kubernetes-list-type: map + x-kubernetes-list-map-keys: + - apiServerID + type: object + v1.ControllerRevision: + 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. + example: + metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: '{}' + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: '{}' + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + creationTimestamp: 2000-01-23T04:56:07.000+00:00 + name: name + namespace: namespace + apiVersion: apiVersion + data: '{}' + kind: kind + revision: 0 + properties: + apiVersion: + description: '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' + type: string + data: + description: Data is the serialized representation of the state. + properties: {} + type: object + kind: + description: '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' + type: string + metadata: + $ref: '#/components/schemas/v1.ObjectMeta' + revision: + description: Revision indicates the revision of the state represented by + Data. + format: int64 + type: integer + required: + - revision + type: object + x-kubernetes-group-version-kind: + - group: apps + kind: ControllerRevision + version: v1 + x-implements: + - io.kubernetes.client.common.KubernetesObject + v1.ControllerRevisionList: + description: ControllerRevisionList is a resource containing a list of ControllerRevision + objects. + example: + metadata: + remainingItemCount: 1 + continue: continue + resourceVersion: resourceVersion + selfLink: selfLink + apiVersion: apiVersion + kind: kind + items: + - metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: '{}' + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: '{}' + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + creationTimestamp: 2000-01-23T04:56:07.000+00:00 + name: name + namespace: namespace + apiVersion: apiVersion + data: '{}' + kind: kind + revision: 0 + - metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: '{}' + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: '{}' + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + creationTimestamp: 2000-01-23T04:56:07.000+00:00 + name: name + namespace: namespace + apiVersion: apiVersion + data: '{}' + kind: kind + revision: 0 + properties: + apiVersion: + description: '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' + type: string + items: + description: Items is the list of ControllerRevisions + items: + $ref: '#/components/schemas/v1.ControllerRevision' + type: array + kind: + description: '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' + type: string + metadata: + $ref: '#/components/schemas/v1.ListMeta' + required: + - items + type: object + x-kubernetes-group-version-kind: + - group: apps + kind: ControllerRevisionList + version: v1 + x-implements: + - io.kubernetes.client.common.KubernetesListObject + v1.DaemonSet: description: DaemonSet represents the configuration of a daemon set. example: metadata: @@ -71863,7 +95276,7 @@ components: spec: dnsPolicy: dnsPolicy nodeName: nodeName - terminationGracePeriodSeconds: 5 + terminationGracePeriodSeconds: 9 dnsConfig: searches: - searches @@ -71895,32 +95308,37 @@ components: - hostnames - hostnames securityContext: - runAsUser: 1 seLinuxOptions: role: role level: level type: type user: user - fsGroup: 6 - seccompProfile: + appArmorProfile: localhostProfile: localhostProfile type: type - windowsOptions: - gmsaCredentialSpec: gmsaCredentialSpec - runAsUserName: runAsUserName - hostProcess: true - gmsaCredentialSpecName: gmsaCredentialSpecName + fsGroup: 7 fsGroupChangePolicy: fsGroupChangePolicy - supplementalGroups: - - 4 - - 4 - runAsGroup: 7 + seLinuxChangePolicy: seLinuxChangePolicy + runAsGroup: 1 runAsNonRoot: true sysctls: - name: name value: value - name: name value: value + runAsUser: 4 + seccompProfile: + localhostProfile: localhostProfile + type: type + windowsOptions: + gmsaCredentialSpec: gmsaCredentialSpec + runAsUserName: runAsUserName + hostProcess: true + gmsaCredentialSpecName: gmsaCredentialSpecName + supplementalGroups: + - 5 + - 5 + supplementalGroupsPolicy: supplementalGroupsPolicy preemptionPolicy: preemptionPolicy nodeSelector: key: nodeSelector @@ -71952,7 +95370,7 @@ components: topologySpreadConstraints: - nodeTaintsPolicy: nodeTaintsPolicy whenUnsatisfiable: whenUnsatisfiable - maxSkew: 9 + maxSkew: 6 nodeAffinityPolicy: nodeAffinityPolicy labelSelector: matchExpressions: @@ -71968,14 +95386,14 @@ components: operator: operator matchLabels: key: matchLabels - minDomains: 6 + minDomains: 8 topologyKey: topologyKey matchLabelKeys: - matchLabelKeys - matchLabelKeys - nodeTaintsPolicy: nodeTaintsPolicy whenUnsatisfiable: whenUnsatisfiable - maxSkew: 9 + maxSkew: 6 nodeAffinityPolicy: nodeAffinityPolicy labelSelector: matchExpressions: @@ -71991,7 +95409,7 @@ components: operator: operator matchLabels: key: matchLabels - minDomains: 6 + minDomains: 8 topologyKey: topologyKey matchLabelKeys: - matchLabelKeys @@ -72072,10 +95490,8 @@ components: name: name namespace: namespace volumeName: volumeName + volumeAttributesClassName: volumeAttributesClassName resources: - claims: - - name: name - - name: name requests: {} limits: {} selector: @@ -72102,20 +95518,20 @@ components: volumeMode: volumeMode secret: secretName: secretName - defaultMode: 6 + defaultMode: 3 optional: true items: - - mode: 6 + - mode: 3 path: path key: key - - mode: 6 + - mode: 3 path: path key: key projected: sources: - downwardAPI: items: - - mode: 6 + - mode: 1 path: path resourceFieldRef: divisor: divisor @@ -72124,7 +95540,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 6 + - mode: 1 path: path resourceFieldRef: divisor: divisor @@ -72137,29 +95553,48 @@ components: name: name optional: true items: - - mode: 6 + - mode: 3 path: path key: key - - mode: 6 + - mode: 3 path: path key: key secret: name: name optional: true items: - - mode: 6 + - mode: 3 path: path key: key - - mode: 6 + - mode: 3 path: path key: key serviceAccountToken: path: path audience: audience - expirationSeconds: 5 + expirationSeconds: 6 + clusterTrustBundle: + path: path + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + name: name + optional: true + signerName: signerName - downwardAPI: items: - - mode: 6 + - mode: 1 path: path resourceFieldRef: divisor: divisor @@ -72168,7 +95603,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 6 + - mode: 1 path: path resourceFieldRef: divisor: divisor @@ -72181,27 +95616,46 @@ components: name: name optional: true items: - - mode: 6 + - mode: 3 path: path key: key - - mode: 6 + - mode: 3 path: path key: key secret: name: name optional: true items: - - mode: 6 + - mode: 3 path: path key: key - - mode: 6 + - mode: 3 path: path key: key serviceAccountToken: path: path audience: audience - expirationSeconds: 5 - defaultMode: 6 + expirationSeconds: 6 + clusterTrustBundle: + path: path + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + name: name + optional: true + signerName: signerName + defaultMode: 5 cephfs: path: path secretRef: @@ -72232,10 +95686,13 @@ components: endpoints: endpoints readOnly: true gcePersistentDisk: - partition: 2 + partition: 6 readOnly: true pdName: pdName fsType: fsType + image: + reference: reference + pullPolicy: pullPolicy photonPersistentDisk: pdID: pdID fsType: fsType @@ -72253,9 +95710,9 @@ components: readOnly: true fsType: fsType downwardAPI: - defaultMode: 3 + defaultMode: 6 items: - - mode: 6 + - mode: 1 path: path resourceFieldRef: divisor: divisor @@ -72264,7 +95721,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 6 + - mode: 1 path: path resourceFieldRef: divisor: divisor @@ -72274,7 +95731,7 @@ components: apiVersion: apiVersion fieldPath: fieldPath awsElasticBlockStore: - partition: 8 + partition: 9 volumeID: volumeID readOnly: true fsType: fsType @@ -72309,14 +95766,14 @@ components: - monitors - monitors configMap: - defaultMode: 9 + defaultMode: 6 name: name optional: true items: - - mode: 6 + - mode: 3 path: path key: key - - mode: 6 + - mode: 3 path: path key: key storageos: @@ -72356,7 +95813,7 @@ components: volumePath: volumePath fsType: fsType fc: - lun: 1 + lun: 2 targetWWNs: - targetWWNs - targetWWNs @@ -72443,10 +95900,8 @@ components: name: name namespace: namespace volumeName: volumeName + volumeAttributesClassName: volumeAttributesClassName resources: - claims: - - name: name - - name: name requests: {} limits: {} selector: @@ -72473,20 +95928,20 @@ components: volumeMode: volumeMode secret: secretName: secretName - defaultMode: 6 + defaultMode: 3 optional: true items: - - mode: 6 + - mode: 3 path: path key: key - - mode: 6 + - mode: 3 path: path key: key projected: sources: - downwardAPI: items: - - mode: 6 + - mode: 1 path: path resourceFieldRef: divisor: divisor @@ -72495,7 +95950,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 6 + - mode: 1 path: path resourceFieldRef: divisor: divisor @@ -72508,29 +95963,48 @@ components: name: name optional: true items: - - mode: 6 + - mode: 3 path: path key: key - - mode: 6 + - mode: 3 path: path key: key secret: name: name optional: true items: - - mode: 6 + - mode: 3 path: path key: key - - mode: 6 + - mode: 3 path: path key: key serviceAccountToken: path: path audience: audience - expirationSeconds: 5 + expirationSeconds: 6 + clusterTrustBundle: + path: path + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + name: name + optional: true + signerName: signerName - downwardAPI: items: - - mode: 6 + - mode: 1 path: path resourceFieldRef: divisor: divisor @@ -72539,7 +96013,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 6 + - mode: 1 path: path resourceFieldRef: divisor: divisor @@ -72552,27 +96026,46 @@ components: name: name optional: true items: - - mode: 6 + - mode: 3 path: path key: key - - mode: 6 + - mode: 3 path: path key: key secret: name: name optional: true items: - - mode: 6 + - mode: 3 path: path key: key - - mode: 6 + - mode: 3 path: path key: key serviceAccountToken: path: path audience: audience - expirationSeconds: 5 - defaultMode: 6 + expirationSeconds: 6 + clusterTrustBundle: + path: path + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + name: name + optional: true + signerName: signerName + defaultMode: 5 cephfs: path: path secretRef: @@ -72603,10 +96096,13 @@ components: endpoints: endpoints readOnly: true gcePersistentDisk: - partition: 2 + partition: 6 readOnly: true pdName: pdName fsType: fsType + image: + reference: reference + pullPolicy: pullPolicy photonPersistentDisk: pdID: pdID fsType: fsType @@ -72624,9 +96120,9 @@ components: readOnly: true fsType: fsType downwardAPI: - defaultMode: 3 + defaultMode: 6 items: - - mode: 6 + - mode: 1 path: path resourceFieldRef: divisor: divisor @@ -72635,7 +96131,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 6 + - mode: 1 path: path resourceFieldRef: divisor: divisor @@ -72645,7 +96141,7 @@ components: apiVersion: apiVersion fieldPath: fieldPath awsElasticBlockStore: - partition: 8 + partition: 9 volumeID: volumeID readOnly: true fsType: fsType @@ -72680,14 +96176,14 @@ components: - monitors - monitors configMap: - defaultMode: 9 + defaultMode: 6 name: name optional: true items: - - mode: 6 + - mode: 3 path: path key: key - - mode: 6 + - mode: 3 path: path key: key storageos: @@ -72727,7 +96223,7 @@ components: volumePath: volumePath fsType: fsType fc: - lun: 1 + lun: 2 targetWWNs: - targetWWNs - targetWWNs @@ -72739,6 +96235,14 @@ components: hostPath: path: path type: type + resources: + claims: + - request: request + name: name + - request: request + name: name + requests: {} + limits: {} ephemeralContainers: - volumeDevices: - devicePath: devicePath @@ -72762,6 +96266,276 @@ components: level: level type: type user: user + appArmorProfile: + localhostProfile: localhostProfile + type: type + seccompProfile: + localhostProfile: localhostProfile + type: type + windowsOptions: + gmsaCredentialSpec: gmsaCredentialSpec + runAsUserName: runAsUserName + hostProcess: true + gmsaCredentialSpecName: gmsaCredentialSpecName + procMount: procMount + allowPrivilegeEscalation: true + runAsGroup: 1 + runAsNonRoot: true + readOnlyRootFilesystem: true + startupProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: port + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + ports: + - protocol: protocol + hostIP: hostIP + name: name + containerPort: 7 + hostPort: 1 + - protocol: protocol + hostIP: hostIP + name: name + containerPort: 7 + hostPort: 1 + volumeMounts: + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + recursiveReadOnly: recursiveReadOnly + subPathExpr: subPathExpr + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + recursiveReadOnly: recursiveReadOnly + subPathExpr: subPathExpr + lifecycle: + postStart: + sleep: + seconds: 5 + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + preStop: + sleep: + seconds: 5 + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + stopSignal: stopSignal + readinessProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: port + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + resizePolicy: + - resourceName: resourceName + restartPolicy: restartPolicy + - resourceName: resourceName + restartPolicy: restartPolicy + envFrom: + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + image: image + imagePullPolicy: imagePullPolicy + livenessProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: port + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + targetContainerName: targetContainerName + terminationMessagePath: terminationMessagePath + workingDir: workingDir + resources: + claims: + - request: request + name: name + - request: request + name: name + requests: {} + limits: {} + env: + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + restartPolicy: restartPolicy + command: + - command + - command + args: + - args + - args + name: name + tty: true + stdinOnce: true + - volumeDevices: + - devicePath: devicePath + name: name + - devicePath: devicePath + name: name + stdin: true + terminationMessagePolicy: terminationMessagePolicy + securityContext: + privileged: true + runAsUser: 1 + capabilities: + add: + - add + - add + drop: + - drop + - drop + seLinuxOptions: + role: role + level: level + type: type + user: user + appArmorProfile: + localhostProfile: localhostProfile + type: type seccompProfile: localhostProfile: localhostProfile type: type @@ -72776,21 +96550,21 @@ components: runAsNonRoot: true readOnlyRootFilesystem: true startupProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -72806,28 +96580,32 @@ components: - protocol: protocol hostIP: hostIP name: name - containerPort: 4 - hostPort: 7 + containerPort: 7 + hostPort: 1 - protocol: protocol hostIP: hostIP name: name - containerPort: 4 - hostPort: 7 + containerPort: 7 + hostPort: 1 volumeMounts: - mountPath: mountPath mountPropagation: mountPropagation name: name readOnly: true subPath: subPath + recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - mountPath: mountPath mountPropagation: mountPropagation name: name readOnly: true subPath: subPath + recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr lifecycle: postStart: + sleep: + seconds: 5 tcpSocket: port: port host: host @@ -72846,6 +96624,8 @@ components: - name: name value: value preStop: + sleep: + seconds: 5 tcpSocket: port: port host: host @@ -72863,22 +96643,23 @@ components: value: value - name: name value: value + stopSignal: stopSignal readinessProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -72913,21 +96694,21 @@ components: image: image imagePullPolicy: imagePullPolicy livenessProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -72944,263 +96725,10 @@ components: workingDir: workingDir resources: claims: - - name: name - - name: name - requests: {} - limits: {} - env: - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - restartPolicy: restartPolicy - command: - - command - - command - args: - - args - - args - name: name - tty: true - stdinOnce: true - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name - stdin: true - terminationMessagePolicy: terminationMessagePolicy - securityContext: - privileged: true - runAsUser: 1 - capabilities: - add: - - add - - add - drop: - - drop - - drop - seLinuxOptions: - role: role - level: level - type: type - user: user - seccompProfile: - localhostProfile: localhostProfile - type: type - windowsOptions: - gmsaCredentialSpec: gmsaCredentialSpec - runAsUserName: runAsUserName - hostProcess: true - gmsaCredentialSpecName: gmsaCredentialSpecName - procMount: procMount - allowPrivilegeEscalation: true - runAsGroup: 1 - runAsNonRoot: true - readOnlyRootFilesystem: true - startupProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - ports: - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 4 - hostPort: 7 - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 4 - hostPort: 7 - volumeMounts: - - mountPath: mountPath - mountPropagation: mountPropagation - name: name - readOnly: true - subPath: subPath - subPathExpr: subPathExpr - - mountPath: mountPath - mountPropagation: mountPropagation - name: name - readOnly: true - subPath: subPath - subPathExpr: subPathExpr - lifecycle: - postStart: - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - preStop: - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - readinessProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - resizePolicy: - - resourceName: resourceName - restartPolicy: restartPolicy - - resourceName: resourceName - restartPolicy: restartPolicy - envFrom: - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: + - request: request name: name - optional: true - - configMapRef: + - request: request name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - image: image - imagePullPolicy: imagePullPolicy - livenessProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - targetContainerName: targetContainerName - terminationMessagePath: terminationMessagePath - workingDir: workingDir - resources: - claims: - - name: name - - name: name requests: {} limits: {} env: @@ -73251,19 +96779,17 @@ components: tty: true stdinOnce: true serviceAccount: serviceAccount - priority: 1 + priority: 6 restartPolicy: restartPolicy shareProcessNamespace: true hostUsers: true resourceClaims: - - name: name - source: - resourceClaimName: resourceClaimName - resourceClaimTemplateName: resourceClaimTemplateName - - name: name - source: - resourceClaimName: resourceClaimName - resourceClaimTemplateName: resourceClaimTemplateName + - resourceClaimName: resourceClaimName + name: name + resourceClaimTemplateName: resourceClaimTemplateName + - resourceClaimName: resourceClaimName + name: name + resourceClaimTemplateName: resourceClaimTemplateName subdomain: subdomain containers: - volumeDevices: @@ -73274,21 +96800,21 @@ components: image: image imagePullPolicy: imagePullPolicy livenessProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -73306,8 +96832,10 @@ components: workingDir: workingDir resources: claims: - - name: name - - name: name + - request: request + name: name + - request: request + name: name requests: {} limits: {} securityContext: @@ -73325,6 +96853,9 @@ components: level: level type: type user: user + appArmorProfile: + localhostProfile: localhostProfile + type: type seccompProfile: localhostProfile: localhostProfile type: type @@ -73339,21 +96870,21 @@ components: runAsNonRoot: true readOnlyRootFilesystem: true startupProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -73406,13 +96937,13 @@ components: - protocol: protocol hostIP: hostIP name: name - containerPort: 4 - hostPort: 7 + containerPort: 7 + hostPort: 1 - protocol: protocol hostIP: hostIP name: name - containerPort: 4 - hostPort: 7 + containerPort: 7 + hostPort: 1 restartPolicy: restartPolicy command: - command @@ -73423,18 +96954,22 @@ components: name: name readOnly: true subPath: subPath + recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - mountPath: mountPath mountPropagation: mountPropagation name: name readOnly: true subPath: subPath + recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr args: - args - args lifecycle: postStart: + sleep: + seconds: 5 tcpSocket: port: port host: host @@ -73453,6 +96988,8 @@ components: - name: name value: value preStop: + sleep: + seconds: 5 tcpSocket: port: port host: host @@ -73470,24 +97007,25 @@ components: value: value - name: name value: value + stopSignal: stopSignal name: name tty: true readinessProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -73528,21 +97066,21 @@ components: image: image imagePullPolicy: imagePullPolicy livenessProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -73560,8 +97098,10 @@ components: workingDir: workingDir resources: claims: - - name: name - - name: name + - request: request + name: name + - request: request + name: name requests: {} limits: {} securityContext: @@ -73579,6 +97119,9 @@ components: level: level type: type user: user + appArmorProfile: + localhostProfile: localhostProfile + type: type seccompProfile: localhostProfile: localhostProfile type: type @@ -73593,21 +97136,21 @@ components: runAsNonRoot: true readOnlyRootFilesystem: true startupProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -73660,13 +97203,13 @@ components: - protocol: protocol hostIP: hostIP name: name - containerPort: 4 - hostPort: 7 + containerPort: 7 + hostPort: 1 - protocol: protocol hostIP: hostIP name: name - containerPort: 4 - hostPort: 7 + containerPort: 7 + hostPort: 1 restartPolicy: restartPolicy command: - command @@ -73677,18 +97220,22 @@ components: name: name readOnly: true subPath: subPath + recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - mountPath: mountPath mountPropagation: mountPropagation name: name readOnly: true subPath: subPath + recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr args: - args - args lifecycle: postStart: + sleep: + seconds: 5 tcpSocket: port: port host: host @@ -73707,6 +97254,8 @@ components: - name: name value: value preStop: + sleep: + seconds: 5 tcpSocket: port: port host: host @@ -73724,24 +97273,25 @@ components: value: value - name: name value: value + stopSignal: stopSignal name: name tty: true readinessProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -73783,21 +97333,21 @@ components: image: image imagePullPolicy: imagePullPolicy livenessProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -73815,8 +97365,10 @@ components: workingDir: workingDir resources: claims: - - name: name - - name: name + - request: request + name: name + - request: request + name: name requests: {} limits: {} securityContext: @@ -73834,6 +97386,9 @@ components: level: level type: type user: user + appArmorProfile: + localhostProfile: localhostProfile + type: type seccompProfile: localhostProfile: localhostProfile type: type @@ -73848,21 +97403,21 @@ components: runAsNonRoot: true readOnlyRootFilesystem: true startupProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -73915,13 +97470,13 @@ components: - protocol: protocol hostIP: hostIP name: name - containerPort: 4 - hostPort: 7 + containerPort: 7 + hostPort: 1 - protocol: protocol hostIP: hostIP name: name - containerPort: 4 - hostPort: 7 + containerPort: 7 + hostPort: 1 restartPolicy: restartPolicy command: - command @@ -73932,18 +97487,22 @@ components: name: name readOnly: true subPath: subPath + recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - mountPath: mountPath mountPropagation: mountPropagation name: name readOnly: true subPath: subPath + recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr args: - args - args lifecycle: postStart: + sleep: + seconds: 5 tcpSocket: port: port host: host @@ -73962,6 +97521,8 @@ components: - name: name value: value preStop: + sleep: + seconds: 5 tcpSocket: port: port host: host @@ -73979,24 +97540,25 @@ components: value: value - name: name value: value + stopSignal: stopSignal name: name tty: true readinessProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -74037,21 +97599,21 @@ components: image: image imagePullPolicy: imagePullPolicy livenessProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -74069,8 +97631,10 @@ components: workingDir: workingDir resources: claims: - - name: name - - name: name + - request: request + name: name + - request: request + name: name requests: {} limits: {} securityContext: @@ -74088,6 +97652,9 @@ components: level: level type: type user: user + appArmorProfile: + localhostProfile: localhostProfile + type: type seccompProfile: localhostProfile: localhostProfile type: type @@ -74102,21 +97669,21 @@ components: runAsNonRoot: true readOnlyRootFilesystem: true startupProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -74169,13 +97736,13 @@ components: - protocol: protocol hostIP: hostIP name: name - containerPort: 4 - hostPort: 7 + containerPort: 7 + hostPort: 1 - protocol: protocol hostIP: hostIP name: name - containerPort: 4 - hostPort: 7 + containerPort: 7 + hostPort: 1 restartPolicy: restartPolicy command: - command @@ -74186,18 +97753,22 @@ components: name: name readOnly: true subPath: subPath + recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - mountPath: mountPath mountPropagation: mountPropagation name: name readOnly: true subPath: subPath + recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr args: - args - args lifecycle: postStart: + sleep: + seconds: 5 tcpSocket: port: port host: host @@ -74216,6 +97787,8 @@ components: - name: name value: value preStop: + sleep: + seconds: 5 tcpSocket: port: port host: host @@ -74233,24 +97806,25 @@ components: value: value - name: name value: value + stopSignal: stopSignal name: name tty: true readinessProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -74411,6 +97985,12 @@ components: matchLabels: key: matchLabels topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + mismatchLabelKeys: + - mismatchLabelKeys + - mismatchLabelKeys namespaces: - namespaces - namespaces @@ -74443,6 +98023,12 @@ components: matchLabels: key: matchLabels topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + mismatchLabelKeys: + - mismatchLabelKeys + - mismatchLabelKeys namespaces: - namespaces - namespaces @@ -74477,6 +98063,12 @@ components: matchLabels: key: matchLabels topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + mismatchLabelKeys: + - mismatchLabelKeys + - mismatchLabelKeys namespaces: - namespaces - namespaces @@ -74511,6 +98103,12 @@ components: matchLabels: key: matchLabels topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + mismatchLabelKeys: + - mismatchLabelKeys + - mismatchLabelKeys namespaces: - namespaces - namespaces @@ -74546,6 +98144,12 @@ components: matchLabels: key: matchLabels topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + mismatchLabelKeys: + - mismatchLabelKeys + - mismatchLabelKeys namespaces: - namespaces - namespaces @@ -74578,6 +98182,12 @@ components: matchLabels: key: matchLabels topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + mismatchLabelKeys: + - mismatchLabelKeys + - mismatchLabelKeys namespaces: - namespaces - namespaces @@ -74612,6 +98222,12 @@ components: matchLabels: key: matchLabels topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + mismatchLabelKeys: + - mismatchLabelKeys + - mismatchLabelKeys namespaces: - namespaces - namespaces @@ -74646,6 +98262,12 @@ components: matchLabels: key: matchLabels topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + mismatchLabelKeys: + - mismatchLabelKeys + - mismatchLabelKeys namespaces: - namespaces - namespaces @@ -74857,7 +98479,7 @@ components: spec: dnsPolicy: dnsPolicy nodeName: nodeName - terminationGracePeriodSeconds: 5 + terminationGracePeriodSeconds: 9 dnsConfig: searches: - searches @@ -74889,32 +98511,37 @@ components: - hostnames - hostnames securityContext: - runAsUser: 1 seLinuxOptions: role: role level: level type: type user: user - fsGroup: 6 - seccompProfile: + appArmorProfile: localhostProfile: localhostProfile type: type - windowsOptions: - gmsaCredentialSpec: gmsaCredentialSpec - runAsUserName: runAsUserName - hostProcess: true - gmsaCredentialSpecName: gmsaCredentialSpecName + fsGroup: 7 fsGroupChangePolicy: fsGroupChangePolicy - supplementalGroups: - - 4 - - 4 - runAsGroup: 7 + seLinuxChangePolicy: seLinuxChangePolicy + runAsGroup: 1 runAsNonRoot: true sysctls: - name: name value: value - name: name value: value + runAsUser: 4 + seccompProfile: + localhostProfile: localhostProfile + type: type + windowsOptions: + gmsaCredentialSpec: gmsaCredentialSpec + runAsUserName: runAsUserName + hostProcess: true + gmsaCredentialSpecName: gmsaCredentialSpecName + supplementalGroups: + - 5 + - 5 + supplementalGroupsPolicy: supplementalGroupsPolicy preemptionPolicy: preemptionPolicy nodeSelector: key: nodeSelector @@ -74946,7 +98573,7 @@ components: topologySpreadConstraints: - nodeTaintsPolicy: nodeTaintsPolicy whenUnsatisfiable: whenUnsatisfiable - maxSkew: 9 + maxSkew: 6 nodeAffinityPolicy: nodeAffinityPolicy labelSelector: matchExpressions: @@ -74962,14 +98589,14 @@ components: operator: operator matchLabels: key: matchLabels - minDomains: 6 + minDomains: 8 topologyKey: topologyKey matchLabelKeys: - matchLabelKeys - matchLabelKeys - nodeTaintsPolicy: nodeTaintsPolicy whenUnsatisfiable: whenUnsatisfiable - maxSkew: 9 + maxSkew: 6 nodeAffinityPolicy: nodeAffinityPolicy labelSelector: matchExpressions: @@ -74985,7 +98612,7 @@ components: operator: operator matchLabels: key: matchLabels - minDomains: 6 + minDomains: 8 topologyKey: topologyKey matchLabelKeys: - matchLabelKeys @@ -75066,10 +98693,8 @@ components: name: name namespace: namespace volumeName: volumeName + volumeAttributesClassName: volumeAttributesClassName resources: - claims: - - name: name - - name: name requests: {} limits: {} selector: @@ -75096,20 +98721,20 @@ components: volumeMode: volumeMode secret: secretName: secretName - defaultMode: 6 + defaultMode: 3 optional: true items: - - mode: 6 + - mode: 3 path: path key: key - - mode: 6 + - mode: 3 path: path key: key projected: sources: - downwardAPI: items: - - mode: 6 + - mode: 1 path: path resourceFieldRef: divisor: divisor @@ -75118,7 +98743,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 6 + - mode: 1 path: path resourceFieldRef: divisor: divisor @@ -75131,29 +98756,48 @@ components: name: name optional: true items: - - mode: 6 + - mode: 3 path: path key: key - - mode: 6 + - mode: 3 path: path key: key secret: name: name optional: true items: - - mode: 6 + - mode: 3 path: path key: key - - mode: 6 + - mode: 3 path: path key: key serviceAccountToken: path: path audience: audience - expirationSeconds: 5 + expirationSeconds: 6 + clusterTrustBundle: + path: path + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + name: name + optional: true + signerName: signerName - downwardAPI: items: - - mode: 6 + - mode: 1 path: path resourceFieldRef: divisor: divisor @@ -75162,7 +98806,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 6 + - mode: 1 path: path resourceFieldRef: divisor: divisor @@ -75175,27 +98819,46 @@ components: name: name optional: true items: - - mode: 6 + - mode: 3 path: path key: key - - mode: 6 + - mode: 3 path: path key: key secret: name: name optional: true items: - - mode: 6 + - mode: 3 path: path key: key - - mode: 6 + - mode: 3 path: path key: key serviceAccountToken: path: path audience: audience - expirationSeconds: 5 - defaultMode: 6 + expirationSeconds: 6 + clusterTrustBundle: + path: path + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + name: name + optional: true + signerName: signerName + defaultMode: 5 cephfs: path: path secretRef: @@ -75226,10 +98889,13 @@ components: endpoints: endpoints readOnly: true gcePersistentDisk: - partition: 2 + partition: 6 readOnly: true pdName: pdName fsType: fsType + image: + reference: reference + pullPolicy: pullPolicy photonPersistentDisk: pdID: pdID fsType: fsType @@ -75247,9 +98913,9 @@ components: readOnly: true fsType: fsType downwardAPI: - defaultMode: 3 + defaultMode: 6 items: - - mode: 6 + - mode: 1 path: path resourceFieldRef: divisor: divisor @@ -75258,7 +98924,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 6 + - mode: 1 path: path resourceFieldRef: divisor: divisor @@ -75268,7 +98934,7 @@ components: apiVersion: apiVersion fieldPath: fieldPath awsElasticBlockStore: - partition: 8 + partition: 9 volumeID: volumeID readOnly: true fsType: fsType @@ -75303,14 +98969,14 @@ components: - monitors - monitors configMap: - defaultMode: 9 + defaultMode: 6 name: name optional: true items: - - mode: 6 + - mode: 3 path: path key: key - - mode: 6 + - mode: 3 path: path key: key storageos: @@ -75350,7 +99016,7 @@ components: volumePath: volumePath fsType: fsType fc: - lun: 1 + lun: 2 targetWWNs: - targetWWNs - targetWWNs @@ -75437,10 +99103,8 @@ components: name: name namespace: namespace volumeName: volumeName + volumeAttributesClassName: volumeAttributesClassName resources: - claims: - - name: name - - name: name requests: {} limits: {} selector: @@ -75467,20 +99131,20 @@ components: volumeMode: volumeMode secret: secretName: secretName - defaultMode: 6 + defaultMode: 3 optional: true items: - - mode: 6 + - mode: 3 path: path key: key - - mode: 6 + - mode: 3 path: path key: key projected: sources: - downwardAPI: items: - - mode: 6 + - mode: 1 path: path resourceFieldRef: divisor: divisor @@ -75489,7 +99153,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 6 + - mode: 1 path: path resourceFieldRef: divisor: divisor @@ -75502,29 +99166,48 @@ components: name: name optional: true items: - - mode: 6 + - mode: 3 path: path key: key - - mode: 6 + - mode: 3 path: path key: key secret: name: name optional: true items: - - mode: 6 + - mode: 3 path: path key: key - - mode: 6 + - mode: 3 path: path key: key serviceAccountToken: path: path audience: audience - expirationSeconds: 5 + expirationSeconds: 6 + clusterTrustBundle: + path: path + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + name: name + optional: true + signerName: signerName - downwardAPI: items: - - mode: 6 + - mode: 1 path: path resourceFieldRef: divisor: divisor @@ -75533,7 +99216,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 6 + - mode: 1 path: path resourceFieldRef: divisor: divisor @@ -75546,27 +99229,46 @@ components: name: name optional: true items: - - mode: 6 + - mode: 3 path: path key: key - - mode: 6 + - mode: 3 path: path key: key secret: name: name optional: true items: - - mode: 6 + - mode: 3 path: path key: key - - mode: 6 + - mode: 3 path: path key: key serviceAccountToken: path: path audience: audience - expirationSeconds: 5 - defaultMode: 6 + expirationSeconds: 6 + clusterTrustBundle: + path: path + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + name: name + optional: true + signerName: signerName + defaultMode: 5 cephfs: path: path secretRef: @@ -75597,10 +99299,13 @@ components: endpoints: endpoints readOnly: true gcePersistentDisk: - partition: 2 + partition: 6 readOnly: true pdName: pdName fsType: fsType + image: + reference: reference + pullPolicy: pullPolicy photonPersistentDisk: pdID: pdID fsType: fsType @@ -75618,9 +99323,9 @@ components: readOnly: true fsType: fsType downwardAPI: - defaultMode: 3 + defaultMode: 6 items: - - mode: 6 + - mode: 1 path: path resourceFieldRef: divisor: divisor @@ -75629,7 +99334,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 6 + - mode: 1 path: path resourceFieldRef: divisor: divisor @@ -75639,7 +99344,7 @@ components: apiVersion: apiVersion fieldPath: fieldPath awsElasticBlockStore: - partition: 8 + partition: 9 volumeID: volumeID readOnly: true fsType: fsType @@ -75674,14 +99379,14 @@ components: - monitors - monitors configMap: - defaultMode: 9 + defaultMode: 6 name: name optional: true items: - - mode: 6 + - mode: 3 path: path key: key - - mode: 6 + - mode: 3 path: path key: key storageos: @@ -75721,7 +99426,7 @@ components: volumePath: volumePath fsType: fsType fc: - lun: 1 + lun: 2 targetWWNs: - targetWWNs - targetWWNs @@ -75733,6 +99438,14 @@ components: hostPath: path: path type: type + resources: + claims: + - request: request + name: name + - request: request + name: name + requests: {} + limits: {} ephemeralContainers: - volumeDevices: - devicePath: devicePath @@ -75756,6 +99469,9 @@ components: level: level type: type user: user + appArmorProfile: + localhostProfile: localhostProfile + type: type seccompProfile: localhostProfile: localhostProfile type: type @@ -75770,21 +99486,21 @@ components: runAsNonRoot: true readOnlyRootFilesystem: true startupProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -75800,28 +99516,32 @@ components: - protocol: protocol hostIP: hostIP name: name - containerPort: 4 - hostPort: 7 + containerPort: 7 + hostPort: 1 - protocol: protocol hostIP: hostIP name: name - containerPort: 4 - hostPort: 7 + containerPort: 7 + hostPort: 1 volumeMounts: - mountPath: mountPath mountPropagation: mountPropagation name: name readOnly: true subPath: subPath + recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - mountPath: mountPath mountPropagation: mountPropagation name: name readOnly: true subPath: subPath + recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr lifecycle: postStart: + sleep: + seconds: 5 tcpSocket: port: port host: host @@ -75840,6 +99560,8 @@ components: - name: name value: value preStop: + sleep: + seconds: 5 tcpSocket: port: port host: host @@ -75857,22 +99579,23 @@ components: value: value - name: name value: value + stopSignal: stopSignal readinessProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -75907,21 +99630,21 @@ components: image: image imagePullPolicy: imagePullPolicy livenessProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -75938,8 +99661,10 @@ components: workingDir: workingDir resources: claims: - - name: name - - name: name + - request: request + name: name + - request: request + name: name requests: {} limits: {} env: @@ -76011,6 +99736,9 @@ components: level: level type: type user: user + appArmorProfile: + localhostProfile: localhostProfile + type: type seccompProfile: localhostProfile: localhostProfile type: type @@ -76025,21 +99753,21 @@ components: runAsNonRoot: true readOnlyRootFilesystem: true startupProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -76055,28 +99783,32 @@ components: - protocol: protocol hostIP: hostIP name: name - containerPort: 4 - hostPort: 7 + containerPort: 7 + hostPort: 1 - protocol: protocol hostIP: hostIP name: name - containerPort: 4 - hostPort: 7 + containerPort: 7 + hostPort: 1 volumeMounts: - mountPath: mountPath mountPropagation: mountPropagation name: name readOnly: true subPath: subPath + recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - mountPath: mountPath mountPropagation: mountPropagation name: name readOnly: true subPath: subPath + recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr lifecycle: postStart: + sleep: + seconds: 5 tcpSocket: port: port host: host @@ -76095,6 +99827,8 @@ components: - name: name value: value preStop: + sleep: + seconds: 5 tcpSocket: port: port host: host @@ -76112,22 +99846,23 @@ components: value: value - name: name value: value + stopSignal: stopSignal readinessProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -76162,21 +99897,21 @@ components: image: image imagePullPolicy: imagePullPolicy livenessProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -76193,8 +99928,10 @@ components: workingDir: workingDir resources: claims: - - name: name - - name: name + - request: request + name: name + - request: request + name: name requests: {} limits: {} env: @@ -76245,19 +99982,17 @@ components: tty: true stdinOnce: true serviceAccount: serviceAccount - priority: 1 + priority: 6 restartPolicy: restartPolicy shareProcessNamespace: true hostUsers: true resourceClaims: - - name: name - source: - resourceClaimName: resourceClaimName - resourceClaimTemplateName: resourceClaimTemplateName - - name: name - source: - resourceClaimName: resourceClaimName - resourceClaimTemplateName: resourceClaimTemplateName + - resourceClaimName: resourceClaimName + name: name + resourceClaimTemplateName: resourceClaimTemplateName + - resourceClaimName: resourceClaimName + name: name + resourceClaimTemplateName: resourceClaimTemplateName subdomain: subdomain containers: - volumeDevices: @@ -76268,21 +100003,21 @@ components: image: image imagePullPolicy: imagePullPolicy livenessProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -76300,8 +100035,10 @@ components: workingDir: workingDir resources: claims: - - name: name - - name: name + - request: request + name: name + - request: request + name: name requests: {} limits: {} securityContext: @@ -76319,6 +100056,9 @@ components: level: level type: type user: user + appArmorProfile: + localhostProfile: localhostProfile + type: type seccompProfile: localhostProfile: localhostProfile type: type @@ -76333,21 +100073,21 @@ components: runAsNonRoot: true readOnlyRootFilesystem: true startupProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -76400,13 +100140,13 @@ components: - protocol: protocol hostIP: hostIP name: name - containerPort: 4 - hostPort: 7 + containerPort: 7 + hostPort: 1 - protocol: protocol hostIP: hostIP name: name - containerPort: 4 - hostPort: 7 + containerPort: 7 + hostPort: 1 restartPolicy: restartPolicy command: - command @@ -76417,18 +100157,22 @@ components: name: name readOnly: true subPath: subPath + recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - mountPath: mountPath mountPropagation: mountPropagation name: name readOnly: true subPath: subPath + recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr args: - args - args lifecycle: postStart: + sleep: + seconds: 5 tcpSocket: port: port host: host @@ -76447,6 +100191,8 @@ components: - name: name value: value preStop: + sleep: + seconds: 5 tcpSocket: port: port host: host @@ -76464,24 +100210,25 @@ components: value: value - name: name value: value + stopSignal: stopSignal name: name tty: true readinessProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -76522,21 +100269,21 @@ components: image: image imagePullPolicy: imagePullPolicy livenessProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -76554,8 +100301,10 @@ components: workingDir: workingDir resources: claims: - - name: name - - name: name + - request: request + name: name + - request: request + name: name requests: {} limits: {} securityContext: @@ -76573,6 +100322,9 @@ components: level: level type: type user: user + appArmorProfile: + localhostProfile: localhostProfile + type: type seccompProfile: localhostProfile: localhostProfile type: type @@ -76587,21 +100339,21 @@ components: runAsNonRoot: true readOnlyRootFilesystem: true startupProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -76654,13 +100406,13 @@ components: - protocol: protocol hostIP: hostIP name: name - containerPort: 4 - hostPort: 7 + containerPort: 7 + hostPort: 1 - protocol: protocol hostIP: hostIP name: name - containerPort: 4 - hostPort: 7 + containerPort: 7 + hostPort: 1 restartPolicy: restartPolicy command: - command @@ -76671,18 +100423,22 @@ components: name: name readOnly: true subPath: subPath + recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - mountPath: mountPath mountPropagation: mountPropagation name: name readOnly: true subPath: subPath + recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr args: - args - args lifecycle: postStart: + sleep: + seconds: 5 tcpSocket: port: port host: host @@ -76701,6 +100457,8 @@ components: - name: name value: value preStop: + sleep: + seconds: 5 tcpSocket: port: port host: host @@ -76718,24 +100476,25 @@ components: value: value - name: name value: value + stopSignal: stopSignal name: name tty: true readinessProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -76777,21 +100536,21 @@ components: image: image imagePullPolicy: imagePullPolicy livenessProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -76809,8 +100568,10 @@ components: workingDir: workingDir resources: claims: - - name: name - - name: name + - request: request + name: name + - request: request + name: name requests: {} limits: {} securityContext: @@ -76828,6 +100589,9 @@ components: level: level type: type user: user + appArmorProfile: + localhostProfile: localhostProfile + type: type seccompProfile: localhostProfile: localhostProfile type: type @@ -76842,21 +100606,21 @@ components: runAsNonRoot: true readOnlyRootFilesystem: true startupProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -76909,13 +100673,13 @@ components: - protocol: protocol hostIP: hostIP name: name - containerPort: 4 - hostPort: 7 + containerPort: 7 + hostPort: 1 - protocol: protocol hostIP: hostIP name: name - containerPort: 4 - hostPort: 7 + containerPort: 7 + hostPort: 1 restartPolicy: restartPolicy command: - command @@ -76926,18 +100690,22 @@ components: name: name readOnly: true subPath: subPath + recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - mountPath: mountPath mountPropagation: mountPropagation name: name readOnly: true subPath: subPath + recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr args: - args - args lifecycle: postStart: + sleep: + seconds: 5 tcpSocket: port: port host: host @@ -76956,6 +100724,8 @@ components: - name: name value: value preStop: + sleep: + seconds: 5 tcpSocket: port: port host: host @@ -76973,24 +100743,25 @@ components: value: value - name: name value: value + stopSignal: stopSignal name: name tty: true readinessProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -77031,21 +100802,21 @@ components: image: image imagePullPolicy: imagePullPolicy livenessProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -77063,8 +100834,10 @@ components: workingDir: workingDir resources: claims: - - name: name - - name: name + - request: request + name: name + - request: request + name: name requests: {} limits: {} securityContext: @@ -77082,6 +100855,9 @@ components: level: level type: type user: user + appArmorProfile: + localhostProfile: localhostProfile + type: type seccompProfile: localhostProfile: localhostProfile type: type @@ -77096,21 +100872,21 @@ components: runAsNonRoot: true readOnlyRootFilesystem: true startupProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -77163,13 +100939,13 @@ components: - protocol: protocol hostIP: hostIP name: name - containerPort: 4 - hostPort: 7 + containerPort: 7 + hostPort: 1 - protocol: protocol hostIP: hostIP name: name - containerPort: 4 - hostPort: 7 + containerPort: 7 + hostPort: 1 restartPolicy: restartPolicy command: - command @@ -77180,18 +100956,22 @@ components: name: name readOnly: true subPath: subPath + recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - mountPath: mountPath mountPropagation: mountPropagation name: name readOnly: true subPath: subPath + recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr args: - args - args lifecycle: postStart: + sleep: + seconds: 5 tcpSocket: port: port host: host @@ -77210,6 +100990,8 @@ components: - name: name value: value preStop: + sleep: + seconds: 5 tcpSocket: port: port host: host @@ -77227,24 +101009,25 @@ components: value: value - name: name value: value + stopSignal: stopSignal name: name tty: true readinessProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -77405,6 +101188,12 @@ components: matchLabels: key: matchLabels topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + mismatchLabelKeys: + - mismatchLabelKeys + - mismatchLabelKeys namespaces: - namespaces - namespaces @@ -77437,6 +101226,12 @@ components: matchLabels: key: matchLabels topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + mismatchLabelKeys: + - mismatchLabelKeys + - mismatchLabelKeys namespaces: - namespaces - namespaces @@ -77471,6 +101266,12 @@ components: matchLabels: key: matchLabels topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + mismatchLabelKeys: + - mismatchLabelKeys + - mismatchLabelKeys namespaces: - namespaces - namespaces @@ -77505,6 +101306,12 @@ components: matchLabels: key: matchLabels topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + mismatchLabelKeys: + - mismatchLabelKeys + - mismatchLabelKeys namespaces: - namespaces - namespaces @@ -77540,6 +101347,12 @@ components: matchLabels: key: matchLabels topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + mismatchLabelKeys: + - mismatchLabelKeys + - mismatchLabelKeys namespaces: - namespaces - namespaces @@ -77572,6 +101385,12 @@ components: matchLabels: key: matchLabels topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + mismatchLabelKeys: + - mismatchLabelKeys + - mismatchLabelKeys namespaces: - namespaces - namespaces @@ -77606,6 +101425,12 @@ components: matchLabels: key: matchLabels topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + mismatchLabelKeys: + - mismatchLabelKeys + - mismatchLabelKeys namespaces: - namespaces - namespaces @@ -77640,6 +101465,12 @@ components: matchLabels: key: matchLabels topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + mismatchLabelKeys: + - mismatchLabelKeys + - mismatchLabelKeys namespaces: - namespaces - namespaces @@ -77786,7 +101617,7 @@ components: spec: dnsPolicy: dnsPolicy nodeName: nodeName - terminationGracePeriodSeconds: 5 + terminationGracePeriodSeconds: 9 dnsConfig: searches: - searches @@ -77818,32 +101649,37 @@ components: - hostnames - hostnames securityContext: - runAsUser: 1 seLinuxOptions: role: role level: level type: type user: user - fsGroup: 6 - seccompProfile: + appArmorProfile: localhostProfile: localhostProfile type: type - windowsOptions: - gmsaCredentialSpec: gmsaCredentialSpec - runAsUserName: runAsUserName - hostProcess: true - gmsaCredentialSpecName: gmsaCredentialSpecName + fsGroup: 7 fsGroupChangePolicy: fsGroupChangePolicy - supplementalGroups: - - 4 - - 4 - runAsGroup: 7 + seLinuxChangePolicy: seLinuxChangePolicy + runAsGroup: 1 runAsNonRoot: true sysctls: - name: name value: value - name: name value: value + runAsUser: 4 + seccompProfile: + localhostProfile: localhostProfile + type: type + windowsOptions: + gmsaCredentialSpec: gmsaCredentialSpec + runAsUserName: runAsUserName + hostProcess: true + gmsaCredentialSpecName: gmsaCredentialSpecName + supplementalGroups: + - 5 + - 5 + supplementalGroupsPolicy: supplementalGroupsPolicy preemptionPolicy: preemptionPolicy nodeSelector: key: nodeSelector @@ -77875,7 +101711,7 @@ components: topologySpreadConstraints: - nodeTaintsPolicy: nodeTaintsPolicy whenUnsatisfiable: whenUnsatisfiable - maxSkew: 9 + maxSkew: 6 nodeAffinityPolicy: nodeAffinityPolicy labelSelector: matchExpressions: @@ -77891,14 +101727,14 @@ components: operator: operator matchLabels: key: matchLabels - minDomains: 6 + minDomains: 8 topologyKey: topologyKey matchLabelKeys: - matchLabelKeys - matchLabelKeys - nodeTaintsPolicy: nodeTaintsPolicy whenUnsatisfiable: whenUnsatisfiable - maxSkew: 9 + maxSkew: 6 nodeAffinityPolicy: nodeAffinityPolicy labelSelector: matchExpressions: @@ -77914,7 +101750,7 @@ components: operator: operator matchLabels: key: matchLabels - minDomains: 6 + minDomains: 8 topologyKey: topologyKey matchLabelKeys: - matchLabelKeys @@ -77995,10 +101831,8 @@ components: name: name namespace: namespace volumeName: volumeName + volumeAttributesClassName: volumeAttributesClassName resources: - claims: - - name: name - - name: name requests: {} limits: {} selector: @@ -78025,20 +101859,20 @@ components: volumeMode: volumeMode secret: secretName: secretName - defaultMode: 6 + defaultMode: 3 optional: true items: - - mode: 6 + - mode: 3 path: path key: key - - mode: 6 + - mode: 3 path: path key: key projected: sources: - downwardAPI: items: - - mode: 6 + - mode: 1 path: path resourceFieldRef: divisor: divisor @@ -78047,7 +101881,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 6 + - mode: 1 path: path resourceFieldRef: divisor: divisor @@ -78060,29 +101894,48 @@ components: name: name optional: true items: - - mode: 6 + - mode: 3 path: path key: key - - mode: 6 + - mode: 3 path: path key: key secret: name: name optional: true items: - - mode: 6 + - mode: 3 path: path key: key - - mode: 6 + - mode: 3 path: path key: key serviceAccountToken: path: path audience: audience - expirationSeconds: 5 + expirationSeconds: 6 + clusterTrustBundle: + path: path + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + name: name + optional: true + signerName: signerName - downwardAPI: items: - - mode: 6 + - mode: 1 path: path resourceFieldRef: divisor: divisor @@ -78091,7 +101944,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 6 + - mode: 1 path: path resourceFieldRef: divisor: divisor @@ -78104,27 +101957,46 @@ components: name: name optional: true items: - - mode: 6 + - mode: 3 path: path key: key - - mode: 6 + - mode: 3 path: path key: key secret: name: name optional: true items: - - mode: 6 + - mode: 3 path: path key: key - - mode: 6 + - mode: 3 path: path key: key serviceAccountToken: path: path audience: audience - expirationSeconds: 5 - defaultMode: 6 + expirationSeconds: 6 + clusterTrustBundle: + path: path + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + name: name + optional: true + signerName: signerName + defaultMode: 5 cephfs: path: path secretRef: @@ -78155,10 +102027,13 @@ components: endpoints: endpoints readOnly: true gcePersistentDisk: - partition: 2 + partition: 6 readOnly: true pdName: pdName fsType: fsType + image: + reference: reference + pullPolicy: pullPolicy photonPersistentDisk: pdID: pdID fsType: fsType @@ -78176,9 +102051,9 @@ components: readOnly: true fsType: fsType downwardAPI: - defaultMode: 3 + defaultMode: 6 items: - - mode: 6 + - mode: 1 path: path resourceFieldRef: divisor: divisor @@ -78187,7 +102062,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 6 + - mode: 1 path: path resourceFieldRef: divisor: divisor @@ -78197,7 +102072,7 @@ components: apiVersion: apiVersion fieldPath: fieldPath awsElasticBlockStore: - partition: 8 + partition: 9 volumeID: volumeID readOnly: true fsType: fsType @@ -78232,14 +102107,14 @@ components: - monitors - monitors configMap: - defaultMode: 9 + defaultMode: 6 name: name optional: true items: - - mode: 6 + - mode: 3 path: path key: key - - mode: 6 + - mode: 3 path: path key: key storageos: @@ -78279,7 +102154,7 @@ components: volumePath: volumePath fsType: fsType fc: - lun: 1 + lun: 2 targetWWNs: - targetWWNs - targetWWNs @@ -78366,10 +102241,8 @@ components: name: name namespace: namespace volumeName: volumeName + volumeAttributesClassName: volumeAttributesClassName resources: - claims: - - name: name - - name: name requests: {} limits: {} selector: @@ -78396,20 +102269,20 @@ components: volumeMode: volumeMode secret: secretName: secretName - defaultMode: 6 + defaultMode: 3 optional: true items: - - mode: 6 + - mode: 3 path: path key: key - - mode: 6 + - mode: 3 path: path key: key projected: sources: - downwardAPI: items: - - mode: 6 + - mode: 1 path: path resourceFieldRef: divisor: divisor @@ -78418,7 +102291,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 6 + - mode: 1 path: path resourceFieldRef: divisor: divisor @@ -78431,29 +102304,48 @@ components: name: name optional: true items: - - mode: 6 + - mode: 3 path: path key: key - - mode: 6 + - mode: 3 path: path key: key secret: name: name optional: true items: - - mode: 6 + - mode: 3 path: path key: key - - mode: 6 + - mode: 3 path: path key: key serviceAccountToken: path: path audience: audience - expirationSeconds: 5 + expirationSeconds: 6 + clusterTrustBundle: + path: path + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + name: name + optional: true + signerName: signerName - downwardAPI: items: - - mode: 6 + - mode: 1 path: path resourceFieldRef: divisor: divisor @@ -78462,7 +102354,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 6 + - mode: 1 path: path resourceFieldRef: divisor: divisor @@ -78475,27 +102367,46 @@ components: name: name optional: true items: - - mode: 6 + - mode: 3 path: path key: key - - mode: 6 + - mode: 3 path: path key: key secret: name: name optional: true items: - - mode: 6 + - mode: 3 path: path key: key - - mode: 6 + - mode: 3 path: path key: key serviceAccountToken: path: path audience: audience - expirationSeconds: 5 - defaultMode: 6 + expirationSeconds: 6 + clusterTrustBundle: + path: path + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + name: name + optional: true + signerName: signerName + defaultMode: 5 cephfs: path: path secretRef: @@ -78526,10 +102437,13 @@ components: endpoints: endpoints readOnly: true gcePersistentDisk: - partition: 2 + partition: 6 readOnly: true pdName: pdName fsType: fsType + image: + reference: reference + pullPolicy: pullPolicy photonPersistentDisk: pdID: pdID fsType: fsType @@ -78547,9 +102461,9 @@ components: readOnly: true fsType: fsType downwardAPI: - defaultMode: 3 + defaultMode: 6 items: - - mode: 6 + - mode: 1 path: path resourceFieldRef: divisor: divisor @@ -78558,7 +102472,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 6 + - mode: 1 path: path resourceFieldRef: divisor: divisor @@ -78568,7 +102482,7 @@ components: apiVersion: apiVersion fieldPath: fieldPath awsElasticBlockStore: - partition: 8 + partition: 9 volumeID: volumeID readOnly: true fsType: fsType @@ -78603,14 +102517,14 @@ components: - monitors - monitors configMap: - defaultMode: 9 + defaultMode: 6 name: name optional: true items: - - mode: 6 + - mode: 3 path: path key: key - - mode: 6 + - mode: 3 path: path key: key storageos: @@ -78650,7 +102564,7 @@ components: volumePath: volumePath fsType: fsType fc: - lun: 1 + lun: 2 targetWWNs: - targetWWNs - targetWWNs @@ -78662,6 +102576,14 @@ components: hostPath: path: path type: type + resources: + claims: + - request: request + name: name + - request: request + name: name + requests: {} + limits: {} ephemeralContainers: - volumeDevices: - devicePath: devicePath @@ -78685,6 +102607,9 @@ components: level: level type: type user: user + appArmorProfile: + localhostProfile: localhostProfile + type: type seccompProfile: localhostProfile: localhostProfile type: type @@ -78699,21 +102624,21 @@ components: runAsNonRoot: true readOnlyRootFilesystem: true startupProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -78729,28 +102654,32 @@ components: - protocol: protocol hostIP: hostIP name: name - containerPort: 4 - hostPort: 7 + containerPort: 7 + hostPort: 1 - protocol: protocol hostIP: hostIP name: name - containerPort: 4 - hostPort: 7 + containerPort: 7 + hostPort: 1 volumeMounts: - mountPath: mountPath mountPropagation: mountPropagation name: name readOnly: true subPath: subPath + recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - mountPath: mountPath mountPropagation: mountPropagation name: name readOnly: true subPath: subPath + recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr lifecycle: postStart: + sleep: + seconds: 5 tcpSocket: port: port host: host @@ -78769,6 +102698,8 @@ components: - name: name value: value preStop: + sleep: + seconds: 5 tcpSocket: port: port host: host @@ -78786,22 +102717,23 @@ components: value: value - name: name value: value + stopSignal: stopSignal readinessProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -78836,21 +102768,21 @@ components: image: image imagePullPolicy: imagePullPolicy livenessProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -78867,8 +102799,10 @@ components: workingDir: workingDir resources: claims: - - name: name - - name: name + - request: request + name: name + - request: request + name: name requests: {} limits: {} env: @@ -78940,6 +102874,9 @@ components: level: level type: type user: user + appArmorProfile: + localhostProfile: localhostProfile + type: type seccompProfile: localhostProfile: localhostProfile type: type @@ -78954,21 +102891,21 @@ components: runAsNonRoot: true readOnlyRootFilesystem: true startupProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -78984,28 +102921,32 @@ components: - protocol: protocol hostIP: hostIP name: name - containerPort: 4 - hostPort: 7 + containerPort: 7 + hostPort: 1 - protocol: protocol hostIP: hostIP name: name - containerPort: 4 - hostPort: 7 + containerPort: 7 + hostPort: 1 volumeMounts: - mountPath: mountPath mountPropagation: mountPropagation name: name readOnly: true subPath: subPath + recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - mountPath: mountPath mountPropagation: mountPropagation name: name readOnly: true subPath: subPath + recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr lifecycle: postStart: + sleep: + seconds: 5 tcpSocket: port: port host: host @@ -79024,6 +102965,8 @@ components: - name: name value: value preStop: + sleep: + seconds: 5 tcpSocket: port: port host: host @@ -79041,22 +102984,23 @@ components: value: value - name: name value: value + stopSignal: stopSignal readinessProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -79091,21 +103035,21 @@ components: image: image imagePullPolicy: imagePullPolicy livenessProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -79122,8 +103066,10 @@ components: workingDir: workingDir resources: claims: - - name: name - - name: name + - request: request + name: name + - request: request + name: name requests: {} limits: {} env: @@ -79174,19 +103120,17 @@ components: tty: true stdinOnce: true serviceAccount: serviceAccount - priority: 1 + priority: 6 restartPolicy: restartPolicy shareProcessNamespace: true hostUsers: true resourceClaims: - - name: name - source: - resourceClaimName: resourceClaimName - resourceClaimTemplateName: resourceClaimTemplateName - - name: name - source: - resourceClaimName: resourceClaimName - resourceClaimTemplateName: resourceClaimTemplateName + - resourceClaimName: resourceClaimName + name: name + resourceClaimTemplateName: resourceClaimTemplateName + - resourceClaimName: resourceClaimName + name: name + resourceClaimTemplateName: resourceClaimTemplateName subdomain: subdomain containers: - volumeDevices: @@ -79197,21 +103141,21 @@ components: image: image imagePullPolicy: imagePullPolicy livenessProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -79229,8 +103173,10 @@ components: workingDir: workingDir resources: claims: - - name: name - - name: name + - request: request + name: name + - request: request + name: name requests: {} limits: {} securityContext: @@ -79248,6 +103194,9 @@ components: level: level type: type user: user + appArmorProfile: + localhostProfile: localhostProfile + type: type seccompProfile: localhostProfile: localhostProfile type: type @@ -79262,21 +103211,21 @@ components: runAsNonRoot: true readOnlyRootFilesystem: true startupProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -79329,13 +103278,13 @@ components: - protocol: protocol hostIP: hostIP name: name - containerPort: 4 - hostPort: 7 + containerPort: 7 + hostPort: 1 - protocol: protocol hostIP: hostIP name: name - containerPort: 4 - hostPort: 7 + containerPort: 7 + hostPort: 1 restartPolicy: restartPolicy command: - command @@ -79346,18 +103295,22 @@ components: name: name readOnly: true subPath: subPath + recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - mountPath: mountPath mountPropagation: mountPropagation name: name readOnly: true subPath: subPath + recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr args: - args - args lifecycle: postStart: + sleep: + seconds: 5 tcpSocket: port: port host: host @@ -79376,6 +103329,8 @@ components: - name: name value: value preStop: + sleep: + seconds: 5 tcpSocket: port: port host: host @@ -79393,24 +103348,25 @@ components: value: value - name: name value: value + stopSignal: stopSignal name: name tty: true readinessProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -79451,21 +103407,21 @@ components: image: image imagePullPolicy: imagePullPolicy livenessProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -79483,8 +103439,10 @@ components: workingDir: workingDir resources: claims: - - name: name - - name: name + - request: request + name: name + - request: request + name: name requests: {} limits: {} securityContext: @@ -79502,6 +103460,9 @@ components: level: level type: type user: user + appArmorProfile: + localhostProfile: localhostProfile + type: type seccompProfile: localhostProfile: localhostProfile type: type @@ -79516,21 +103477,21 @@ components: runAsNonRoot: true readOnlyRootFilesystem: true startupProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -79583,13 +103544,13 @@ components: - protocol: protocol hostIP: hostIP name: name - containerPort: 4 - hostPort: 7 + containerPort: 7 + hostPort: 1 - protocol: protocol hostIP: hostIP name: name - containerPort: 4 - hostPort: 7 + containerPort: 7 + hostPort: 1 restartPolicy: restartPolicy command: - command @@ -79600,18 +103561,22 @@ components: name: name readOnly: true subPath: subPath + recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - mountPath: mountPath mountPropagation: mountPropagation name: name readOnly: true subPath: subPath + recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr args: - args - args lifecycle: postStart: + sleep: + seconds: 5 tcpSocket: port: port host: host @@ -79630,6 +103595,8 @@ components: - name: name value: value preStop: + sleep: + seconds: 5 tcpSocket: port: port host: host @@ -79647,24 +103614,25 @@ components: value: value - name: name value: value + stopSignal: stopSignal name: name tty: true readinessProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -79706,21 +103674,21 @@ components: image: image imagePullPolicy: imagePullPolicy livenessProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -79738,8 +103706,10 @@ components: workingDir: workingDir resources: claims: - - name: name - - name: name + - request: request + name: name + - request: request + name: name requests: {} limits: {} securityContext: @@ -79757,6 +103727,9 @@ components: level: level type: type user: user + appArmorProfile: + localhostProfile: localhostProfile + type: type seccompProfile: localhostProfile: localhostProfile type: type @@ -79771,21 +103744,21 @@ components: runAsNonRoot: true readOnlyRootFilesystem: true startupProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -79838,13 +103811,13 @@ components: - protocol: protocol hostIP: hostIP name: name - containerPort: 4 - hostPort: 7 + containerPort: 7 + hostPort: 1 - protocol: protocol hostIP: hostIP name: name - containerPort: 4 - hostPort: 7 + containerPort: 7 + hostPort: 1 restartPolicy: restartPolicy command: - command @@ -79855,18 +103828,22 @@ components: name: name readOnly: true subPath: subPath + recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - mountPath: mountPath mountPropagation: mountPropagation name: name readOnly: true subPath: subPath + recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr args: - args - args lifecycle: postStart: + sleep: + seconds: 5 tcpSocket: port: port host: host @@ -79885,6 +103862,8 @@ components: - name: name value: value preStop: + sleep: + seconds: 5 tcpSocket: port: port host: host @@ -79902,24 +103881,25 @@ components: value: value - name: name value: value + stopSignal: stopSignal name: name tty: true readinessProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -79960,21 +103940,21 @@ components: image: image imagePullPolicy: imagePullPolicy livenessProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -79992,8 +103972,10 @@ components: workingDir: workingDir resources: claims: - - name: name - - name: name + - request: request + name: name + - request: request + name: name requests: {} limits: {} securityContext: @@ -80011,6 +103993,9 @@ components: level: level type: type user: user + appArmorProfile: + localhostProfile: localhostProfile + type: type seccompProfile: localhostProfile: localhostProfile type: type @@ -80025,21 +104010,21 @@ components: runAsNonRoot: true readOnlyRootFilesystem: true startupProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -80092,13 +104077,13 @@ components: - protocol: protocol hostIP: hostIP name: name - containerPort: 4 - hostPort: 7 + containerPort: 7 + hostPort: 1 - protocol: protocol hostIP: hostIP name: name - containerPort: 4 - hostPort: 7 + containerPort: 7 + hostPort: 1 restartPolicy: restartPolicy command: - command @@ -80109,18 +104094,22 @@ components: name: name readOnly: true subPath: subPath + recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - mountPath: mountPath mountPropagation: mountPropagation name: name readOnly: true subPath: subPath + recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr args: - args - args lifecycle: postStart: + sleep: + seconds: 5 tcpSocket: port: port host: host @@ -80139,6 +104128,8 @@ components: - name: name value: value preStop: + sleep: + seconds: 5 tcpSocket: port: port host: host @@ -80156,24 +104147,25 @@ components: value: value - name: name value: value + stopSignal: stopSignal name: name tty: true readinessProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -80334,6 +104326,12 @@ components: matchLabels: key: matchLabels topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + mismatchLabelKeys: + - mismatchLabelKeys + - mismatchLabelKeys namespaces: - namespaces - namespaces @@ -80366,6 +104364,12 @@ components: matchLabels: key: matchLabels topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + mismatchLabelKeys: + - mismatchLabelKeys + - mismatchLabelKeys namespaces: - namespaces - namespaces @@ -80400,6 +104404,12 @@ components: matchLabels: key: matchLabels topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + mismatchLabelKeys: + - mismatchLabelKeys + - mismatchLabelKeys namespaces: - namespaces - namespaces @@ -80434,6 +104444,12 @@ components: matchLabels: key: matchLabels topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + mismatchLabelKeys: + - mismatchLabelKeys + - mismatchLabelKeys namespaces: - namespaces - namespaces @@ -80469,6 +104485,12 @@ components: matchLabels: key: matchLabels topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + mismatchLabelKeys: + - mismatchLabelKeys + - mismatchLabelKeys namespaces: - namespaces - namespaces @@ -80501,6 +104523,12 @@ components: matchLabels: key: matchLabels topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + mismatchLabelKeys: + - mismatchLabelKeys + - mismatchLabelKeys namespaces: - namespaces - namespaces @@ -80535,6 +104563,12 @@ components: matchLabels: key: matchLabels topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + mismatchLabelKeys: + - mismatchLabelKeys + - mismatchLabelKeys namespaces: - namespaces - namespaces @@ -80569,6 +104603,12 @@ components: matchLabels: key: matchLabels topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + mismatchLabelKeys: + - mismatchLabelKeys + - mismatchLabelKeys namespaces: - namespaces - namespaces @@ -80696,7 +104736,7 @@ components: spec: dnsPolicy: dnsPolicy nodeName: nodeName - terminationGracePeriodSeconds: 5 + terminationGracePeriodSeconds: 9 dnsConfig: searches: - searches @@ -80728,32 +104768,37 @@ components: - hostnames - hostnames securityContext: - runAsUser: 1 seLinuxOptions: role: role level: level type: type user: user - fsGroup: 6 - seccompProfile: + appArmorProfile: localhostProfile: localhostProfile type: type - windowsOptions: - gmsaCredentialSpec: gmsaCredentialSpec - runAsUserName: runAsUserName - hostProcess: true - gmsaCredentialSpecName: gmsaCredentialSpecName + fsGroup: 7 fsGroupChangePolicy: fsGroupChangePolicy - supplementalGroups: - - 4 - - 4 - runAsGroup: 7 + seLinuxChangePolicy: seLinuxChangePolicy + runAsGroup: 1 runAsNonRoot: true sysctls: - name: name value: value - name: name value: value + runAsUser: 4 + seccompProfile: + localhostProfile: localhostProfile + type: type + windowsOptions: + gmsaCredentialSpec: gmsaCredentialSpec + runAsUserName: runAsUserName + hostProcess: true + gmsaCredentialSpecName: gmsaCredentialSpecName + supplementalGroups: + - 5 + - 5 + supplementalGroupsPolicy: supplementalGroupsPolicy preemptionPolicy: preemptionPolicy nodeSelector: key: nodeSelector @@ -80785,7 +104830,7 @@ components: topologySpreadConstraints: - nodeTaintsPolicy: nodeTaintsPolicy whenUnsatisfiable: whenUnsatisfiable - maxSkew: 9 + maxSkew: 6 nodeAffinityPolicy: nodeAffinityPolicy labelSelector: matchExpressions: @@ -80801,14 +104846,14 @@ components: operator: operator matchLabels: key: matchLabels - minDomains: 6 + minDomains: 8 topologyKey: topologyKey matchLabelKeys: - matchLabelKeys - matchLabelKeys - nodeTaintsPolicy: nodeTaintsPolicy whenUnsatisfiable: whenUnsatisfiable - maxSkew: 9 + maxSkew: 6 nodeAffinityPolicy: nodeAffinityPolicy labelSelector: matchExpressions: @@ -80824,7 +104869,7 @@ components: operator: operator matchLabels: key: matchLabels - minDomains: 6 + minDomains: 8 topologyKey: topologyKey matchLabelKeys: - matchLabelKeys @@ -80905,10 +104950,8 @@ components: name: name namespace: namespace volumeName: volumeName + volumeAttributesClassName: volumeAttributesClassName resources: - claims: - - name: name - - name: name requests: {} limits: {} selector: @@ -80935,20 +104978,20 @@ components: volumeMode: volumeMode secret: secretName: secretName - defaultMode: 6 + defaultMode: 3 optional: true items: - - mode: 6 + - mode: 3 path: path key: key - - mode: 6 + - mode: 3 path: path key: key projected: sources: - downwardAPI: items: - - mode: 6 + - mode: 1 path: path resourceFieldRef: divisor: divisor @@ -80957,7 +105000,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 6 + - mode: 1 path: path resourceFieldRef: divisor: divisor @@ -80970,29 +105013,48 @@ components: name: name optional: true items: - - mode: 6 + - mode: 3 path: path key: key - - mode: 6 + - mode: 3 path: path key: key secret: name: name optional: true items: - - mode: 6 + - mode: 3 path: path key: key - - mode: 6 + - mode: 3 path: path key: key serviceAccountToken: path: path audience: audience - expirationSeconds: 5 + expirationSeconds: 6 + clusterTrustBundle: + path: path + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + name: name + optional: true + signerName: signerName - downwardAPI: items: - - mode: 6 + - mode: 1 path: path resourceFieldRef: divisor: divisor @@ -81001,7 +105063,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 6 + - mode: 1 path: path resourceFieldRef: divisor: divisor @@ -81014,27 +105076,46 @@ components: name: name optional: true items: - - mode: 6 + - mode: 3 path: path key: key - - mode: 6 + - mode: 3 path: path key: key secret: name: name optional: true items: - - mode: 6 + - mode: 3 path: path key: key - - mode: 6 + - mode: 3 path: path key: key serviceAccountToken: path: path audience: audience - expirationSeconds: 5 - defaultMode: 6 + expirationSeconds: 6 + clusterTrustBundle: + path: path + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + name: name + optional: true + signerName: signerName + defaultMode: 5 cephfs: path: path secretRef: @@ -81065,10 +105146,13 @@ components: endpoints: endpoints readOnly: true gcePersistentDisk: - partition: 2 + partition: 6 readOnly: true pdName: pdName fsType: fsType + image: + reference: reference + pullPolicy: pullPolicy photonPersistentDisk: pdID: pdID fsType: fsType @@ -81086,9 +105170,9 @@ components: readOnly: true fsType: fsType downwardAPI: - defaultMode: 3 + defaultMode: 6 items: - - mode: 6 + - mode: 1 path: path resourceFieldRef: divisor: divisor @@ -81097,7 +105181,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 6 + - mode: 1 path: path resourceFieldRef: divisor: divisor @@ -81107,7 +105191,7 @@ components: apiVersion: apiVersion fieldPath: fieldPath awsElasticBlockStore: - partition: 8 + partition: 9 volumeID: volumeID readOnly: true fsType: fsType @@ -81142,14 +105226,14 @@ components: - monitors - monitors configMap: - defaultMode: 9 + defaultMode: 6 name: name optional: true items: - - mode: 6 + - mode: 3 path: path key: key - - mode: 6 + - mode: 3 path: path key: key storageos: @@ -81189,7 +105273,7 @@ components: volumePath: volumePath fsType: fsType fc: - lun: 1 + lun: 2 targetWWNs: - targetWWNs - targetWWNs @@ -81276,10 +105360,8 @@ components: name: name namespace: namespace volumeName: volumeName + volumeAttributesClassName: volumeAttributesClassName resources: - claims: - - name: name - - name: name requests: {} limits: {} selector: @@ -81306,20 +105388,20 @@ components: volumeMode: volumeMode secret: secretName: secretName - defaultMode: 6 + defaultMode: 3 optional: true items: - - mode: 6 + - mode: 3 path: path key: key - - mode: 6 + - mode: 3 path: path key: key projected: sources: - downwardAPI: items: - - mode: 6 + - mode: 1 path: path resourceFieldRef: divisor: divisor @@ -81328,7 +105410,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 6 + - mode: 1 path: path resourceFieldRef: divisor: divisor @@ -81341,29 +105423,48 @@ components: name: name optional: true items: - - mode: 6 + - mode: 3 path: path key: key - - mode: 6 + - mode: 3 path: path key: key secret: name: name optional: true items: - - mode: 6 + - mode: 3 path: path key: key - - mode: 6 + - mode: 3 path: path key: key serviceAccountToken: path: path audience: audience - expirationSeconds: 5 + expirationSeconds: 6 + clusterTrustBundle: + path: path + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + name: name + optional: true + signerName: signerName - downwardAPI: items: - - mode: 6 + - mode: 1 path: path resourceFieldRef: divisor: divisor @@ -81372,7 +105473,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 6 + - mode: 1 path: path resourceFieldRef: divisor: divisor @@ -81385,27 +105486,46 @@ components: name: name optional: true items: - - mode: 6 + - mode: 3 path: path key: key - - mode: 6 + - mode: 3 path: path key: key secret: name: name optional: true items: - - mode: 6 + - mode: 3 path: path key: key - - mode: 6 + - mode: 3 path: path key: key serviceAccountToken: path: path audience: audience - expirationSeconds: 5 - defaultMode: 6 + expirationSeconds: 6 + clusterTrustBundle: + path: path + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + name: name + optional: true + signerName: signerName + defaultMode: 5 cephfs: path: path secretRef: @@ -81436,10 +105556,13 @@ components: endpoints: endpoints readOnly: true gcePersistentDisk: - partition: 2 + partition: 6 readOnly: true pdName: pdName fsType: fsType + image: + reference: reference + pullPolicy: pullPolicy photonPersistentDisk: pdID: pdID fsType: fsType @@ -81457,9 +105580,9 @@ components: readOnly: true fsType: fsType downwardAPI: - defaultMode: 3 + defaultMode: 6 items: - - mode: 6 + - mode: 1 path: path resourceFieldRef: divisor: divisor @@ -81468,7 +105591,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 6 + - mode: 1 path: path resourceFieldRef: divisor: divisor @@ -81478,7 +105601,7 @@ components: apiVersion: apiVersion fieldPath: fieldPath awsElasticBlockStore: - partition: 8 + partition: 9 volumeID: volumeID readOnly: true fsType: fsType @@ -81513,14 +105636,14 @@ components: - monitors - monitors configMap: - defaultMode: 9 + defaultMode: 6 name: name optional: true items: - - mode: 6 + - mode: 3 path: path key: key - - mode: 6 + - mode: 3 path: path key: key storageos: @@ -81560,7 +105683,7 @@ components: volumePath: volumePath fsType: fsType fc: - lun: 1 + lun: 2 targetWWNs: - targetWWNs - targetWWNs @@ -81572,6 +105695,14 @@ components: hostPath: path: path type: type + resources: + claims: + - request: request + name: name + - request: request + name: name + requests: {} + limits: {} ephemeralContainers: - volumeDevices: - devicePath: devicePath @@ -81595,6 +105726,9 @@ components: level: level type: type user: user + appArmorProfile: + localhostProfile: localhostProfile + type: type seccompProfile: localhostProfile: localhostProfile type: type @@ -81609,21 +105743,21 @@ components: runAsNonRoot: true readOnlyRootFilesystem: true startupProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -81639,28 +105773,32 @@ components: - protocol: protocol hostIP: hostIP name: name - containerPort: 4 - hostPort: 7 + containerPort: 7 + hostPort: 1 - protocol: protocol hostIP: hostIP name: name - containerPort: 4 - hostPort: 7 + containerPort: 7 + hostPort: 1 volumeMounts: - mountPath: mountPath mountPropagation: mountPropagation name: name readOnly: true subPath: subPath + recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - mountPath: mountPath mountPropagation: mountPropagation name: name readOnly: true subPath: subPath + recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr lifecycle: postStart: + sleep: + seconds: 5 tcpSocket: port: port host: host @@ -81679,6 +105817,8 @@ components: - name: name value: value preStop: + sleep: + seconds: 5 tcpSocket: port: port host: host @@ -81696,22 +105836,23 @@ components: value: value - name: name value: value + stopSignal: stopSignal readinessProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -81746,21 +105887,21 @@ components: image: image imagePullPolicy: imagePullPolicy livenessProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -81777,8 +105918,10 @@ components: workingDir: workingDir resources: claims: - - name: name - - name: name + - request: request + name: name + - request: request + name: name requests: {} limits: {} env: @@ -81850,6 +105993,9 @@ components: level: level type: type user: user + appArmorProfile: + localhostProfile: localhostProfile + type: type seccompProfile: localhostProfile: localhostProfile type: type @@ -81864,21 +106010,21 @@ components: runAsNonRoot: true readOnlyRootFilesystem: true startupProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -81894,28 +106040,32 @@ components: - protocol: protocol hostIP: hostIP name: name - containerPort: 4 - hostPort: 7 + containerPort: 7 + hostPort: 1 - protocol: protocol hostIP: hostIP name: name - containerPort: 4 - hostPort: 7 + containerPort: 7 + hostPort: 1 volumeMounts: - mountPath: mountPath mountPropagation: mountPropagation name: name readOnly: true subPath: subPath + recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - mountPath: mountPath mountPropagation: mountPropagation name: name readOnly: true subPath: subPath + recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr lifecycle: postStart: + sleep: + seconds: 5 tcpSocket: port: port host: host @@ -81934,6 +106084,8 @@ components: - name: name value: value preStop: + sleep: + seconds: 5 tcpSocket: port: port host: host @@ -81951,22 +106103,23 @@ components: value: value - name: name value: value + stopSignal: stopSignal readinessProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -82001,21 +106154,21 @@ components: image: image imagePullPolicy: imagePullPolicy livenessProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -82032,8 +106185,10 @@ components: workingDir: workingDir resources: claims: - - name: name - - name: name + - request: request + name: name + - request: request + name: name requests: {} limits: {} env: @@ -82084,19 +106239,17 @@ components: tty: true stdinOnce: true serviceAccount: serviceAccount - priority: 1 + priority: 6 restartPolicy: restartPolicy shareProcessNamespace: true hostUsers: true resourceClaims: - - name: name - source: - resourceClaimName: resourceClaimName - resourceClaimTemplateName: resourceClaimTemplateName - - name: name - source: - resourceClaimName: resourceClaimName - resourceClaimTemplateName: resourceClaimTemplateName + - resourceClaimName: resourceClaimName + name: name + resourceClaimTemplateName: resourceClaimTemplateName + - resourceClaimName: resourceClaimName + name: name + resourceClaimTemplateName: resourceClaimTemplateName subdomain: subdomain containers: - volumeDevices: @@ -82107,21 +106260,21 @@ components: image: image imagePullPolicy: imagePullPolicy livenessProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -82139,8 +106292,10 @@ components: workingDir: workingDir resources: claims: - - name: name - - name: name + - request: request + name: name + - request: request + name: name requests: {} limits: {} securityContext: @@ -82158,6 +106313,9 @@ components: level: level type: type user: user + appArmorProfile: + localhostProfile: localhostProfile + type: type seccompProfile: localhostProfile: localhostProfile type: type @@ -82172,21 +106330,21 @@ components: runAsNonRoot: true readOnlyRootFilesystem: true startupProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -82239,13 +106397,13 @@ components: - protocol: protocol hostIP: hostIP name: name - containerPort: 4 - hostPort: 7 + containerPort: 7 + hostPort: 1 - protocol: protocol hostIP: hostIP name: name - containerPort: 4 - hostPort: 7 + containerPort: 7 + hostPort: 1 restartPolicy: restartPolicy command: - command @@ -82256,18 +106414,22 @@ components: name: name readOnly: true subPath: subPath + recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - mountPath: mountPath mountPropagation: mountPropagation name: name readOnly: true subPath: subPath + recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr args: - args - args lifecycle: postStart: + sleep: + seconds: 5 tcpSocket: port: port host: host @@ -82286,6 +106448,8 @@ components: - name: name value: value preStop: + sleep: + seconds: 5 tcpSocket: port: port host: host @@ -82303,24 +106467,25 @@ components: value: value - name: name value: value + stopSignal: stopSignal name: name tty: true readinessProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -82361,21 +106526,21 @@ components: image: image imagePullPolicy: imagePullPolicy livenessProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -82393,8 +106558,10 @@ components: workingDir: workingDir resources: claims: - - name: name - - name: name + - request: request + name: name + - request: request + name: name requests: {} limits: {} securityContext: @@ -82412,6 +106579,9 @@ components: level: level type: type user: user + appArmorProfile: + localhostProfile: localhostProfile + type: type seccompProfile: localhostProfile: localhostProfile type: type @@ -82426,21 +106596,21 @@ components: runAsNonRoot: true readOnlyRootFilesystem: true startupProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -82493,13 +106663,13 @@ components: - protocol: protocol hostIP: hostIP name: name - containerPort: 4 - hostPort: 7 + containerPort: 7 + hostPort: 1 - protocol: protocol hostIP: hostIP name: name - containerPort: 4 - hostPort: 7 + containerPort: 7 + hostPort: 1 restartPolicy: restartPolicy command: - command @@ -82510,18 +106680,22 @@ components: name: name readOnly: true subPath: subPath + recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - mountPath: mountPath mountPropagation: mountPropagation name: name readOnly: true subPath: subPath + recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr args: - args - args lifecycle: postStart: + sleep: + seconds: 5 tcpSocket: port: port host: host @@ -82540,6 +106714,8 @@ components: - name: name value: value preStop: + sleep: + seconds: 5 tcpSocket: port: port host: host @@ -82557,24 +106733,25 @@ components: value: value - name: name value: value + stopSignal: stopSignal name: name tty: true readinessProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -82616,21 +106793,21 @@ components: image: image imagePullPolicy: imagePullPolicy livenessProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -82648,8 +106825,10 @@ components: workingDir: workingDir resources: claims: - - name: name - - name: name + - request: request + name: name + - request: request + name: name requests: {} limits: {} securityContext: @@ -82667,6 +106846,9 @@ components: level: level type: type user: user + appArmorProfile: + localhostProfile: localhostProfile + type: type seccompProfile: localhostProfile: localhostProfile type: type @@ -82681,21 +106863,21 @@ components: runAsNonRoot: true readOnlyRootFilesystem: true startupProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -82748,13 +106930,13 @@ components: - protocol: protocol hostIP: hostIP name: name - containerPort: 4 - hostPort: 7 + containerPort: 7 + hostPort: 1 - protocol: protocol hostIP: hostIP name: name - containerPort: 4 - hostPort: 7 + containerPort: 7 + hostPort: 1 restartPolicy: restartPolicy command: - command @@ -82765,18 +106947,22 @@ components: name: name readOnly: true subPath: subPath + recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - mountPath: mountPath mountPropagation: mountPropagation name: name readOnly: true subPath: subPath + recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr args: - args - args lifecycle: postStart: + sleep: + seconds: 5 tcpSocket: port: port host: host @@ -82795,6 +106981,8 @@ components: - name: name value: value preStop: + sleep: + seconds: 5 tcpSocket: port: port host: host @@ -82812,24 +107000,25 @@ components: value: value - name: name value: value + stopSignal: stopSignal name: name tty: true readinessProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -82870,21 +107059,21 @@ components: image: image imagePullPolicy: imagePullPolicy livenessProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -82902,8 +107091,10 @@ components: workingDir: workingDir resources: claims: - - name: name - - name: name + - request: request + name: name + - request: request + name: name requests: {} limits: {} securityContext: @@ -82921,6 +107112,9 @@ components: level: level type: type user: user + appArmorProfile: + localhostProfile: localhostProfile + type: type seccompProfile: localhostProfile: localhostProfile type: type @@ -82935,21 +107129,21 @@ components: runAsNonRoot: true readOnlyRootFilesystem: true startupProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -83002,13 +107196,13 @@ components: - protocol: protocol hostIP: hostIP name: name - containerPort: 4 - hostPort: 7 + containerPort: 7 + hostPort: 1 - protocol: protocol hostIP: hostIP name: name - containerPort: 4 - hostPort: 7 + containerPort: 7 + hostPort: 1 restartPolicy: restartPolicy command: - command @@ -83019,18 +107213,22 @@ components: name: name readOnly: true subPath: subPath + recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - mountPath: mountPath mountPropagation: mountPropagation name: name readOnly: true subPath: subPath + recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr args: - args - args lifecycle: postStart: + sleep: + seconds: 5 tcpSocket: port: port host: host @@ -83049,6 +107247,8 @@ components: - name: name value: value preStop: + sleep: + seconds: 5 tcpSocket: port: port host: host @@ -83066,24 +107266,25 @@ components: value: value - name: name value: value + stopSignal: stopSignal name: name tty: true readinessProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -83244,6 +107445,12 @@ components: matchLabels: key: matchLabels topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + mismatchLabelKeys: + - mismatchLabelKeys + - mismatchLabelKeys namespaces: - namespaces - namespaces @@ -83276,6 +107483,12 @@ components: matchLabels: key: matchLabels topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + mismatchLabelKeys: + - mismatchLabelKeys + - mismatchLabelKeys namespaces: - namespaces - namespaces @@ -83310,6 +107523,12 @@ components: matchLabels: key: matchLabels topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + mismatchLabelKeys: + - mismatchLabelKeys + - mismatchLabelKeys namespaces: - namespaces - namespaces @@ -83344,6 +107563,12 @@ components: matchLabels: key: matchLabels topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + mismatchLabelKeys: + - mismatchLabelKeys + - mismatchLabelKeys namespaces: - namespaces - namespaces @@ -83379,6 +107604,12 @@ components: matchLabels: key: matchLabels topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + mismatchLabelKeys: + - mismatchLabelKeys + - mismatchLabelKeys namespaces: - namespaces - namespaces @@ -83411,6 +107642,12 @@ components: matchLabels: key: matchLabels topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + mismatchLabelKeys: + - mismatchLabelKeys + - mismatchLabelKeys namespaces: - namespaces - namespaces @@ -83445,6 +107682,12 @@ components: matchLabels: key: matchLabels topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + mismatchLabelKeys: + - mismatchLabelKeys + - mismatchLabelKeys namespaces: - namespaces - namespaces @@ -83479,6 +107722,12 @@ components: matchLabels: key: matchLabels topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + mismatchLabelKeys: + - mismatchLabelKeys + - mismatchLabelKeys namespaces: - namespaces - namespaces @@ -83566,6 +107815,9 @@ components: $ref: '#/components/schemas/v1.DaemonSetCondition' type: array x-kubernetes-patch-strategy: merge + x-kubernetes-list-type: map + x-kubernetes-list-map-keys: + - type x-kubernetes-patch-merge-key: type currentNumberScheduled: description: 'The number of nodes that are running at least 1 daemon pod @@ -83732,7 +107984,7 @@ components: spec: dnsPolicy: dnsPolicy nodeName: nodeName - terminationGracePeriodSeconds: 5 + terminationGracePeriodSeconds: 9 dnsConfig: searches: - searches @@ -83764,32 +108016,37 @@ components: - hostnames - hostnames securityContext: - runAsUser: 1 seLinuxOptions: role: role level: level type: type user: user - fsGroup: 6 - seccompProfile: + appArmorProfile: localhostProfile: localhostProfile type: type - windowsOptions: - gmsaCredentialSpec: gmsaCredentialSpec - runAsUserName: runAsUserName - hostProcess: true - gmsaCredentialSpecName: gmsaCredentialSpecName + fsGroup: 7 fsGroupChangePolicy: fsGroupChangePolicy - supplementalGroups: - - 4 - - 4 - runAsGroup: 7 + seLinuxChangePolicy: seLinuxChangePolicy + runAsGroup: 1 runAsNonRoot: true sysctls: - name: name value: value - name: name value: value + runAsUser: 4 + seccompProfile: + localhostProfile: localhostProfile + type: type + windowsOptions: + gmsaCredentialSpec: gmsaCredentialSpec + runAsUserName: runAsUserName + hostProcess: true + gmsaCredentialSpecName: gmsaCredentialSpecName + supplementalGroups: + - 5 + - 5 + supplementalGroupsPolicy: supplementalGroupsPolicy preemptionPolicy: preemptionPolicy nodeSelector: key: nodeSelector @@ -83821,7 +108078,7 @@ components: topologySpreadConstraints: - nodeTaintsPolicy: nodeTaintsPolicy whenUnsatisfiable: whenUnsatisfiable - maxSkew: 9 + maxSkew: 6 nodeAffinityPolicy: nodeAffinityPolicy labelSelector: matchExpressions: @@ -83837,14 +108094,14 @@ components: operator: operator matchLabels: key: matchLabels - minDomains: 6 + minDomains: 8 topologyKey: topologyKey matchLabelKeys: - matchLabelKeys - matchLabelKeys - nodeTaintsPolicy: nodeTaintsPolicy whenUnsatisfiable: whenUnsatisfiable - maxSkew: 9 + maxSkew: 6 nodeAffinityPolicy: nodeAffinityPolicy labelSelector: matchExpressions: @@ -83860,7 +108117,7 @@ components: operator: operator matchLabels: key: matchLabels - minDomains: 6 + minDomains: 8 topologyKey: topologyKey matchLabelKeys: - matchLabelKeys @@ -83941,10 +108198,8 @@ components: name: name namespace: namespace volumeName: volumeName + volumeAttributesClassName: volumeAttributesClassName resources: - claims: - - name: name - - name: name requests: {} limits: {} selector: @@ -83971,20 +108226,20 @@ components: volumeMode: volumeMode secret: secretName: secretName - defaultMode: 6 + defaultMode: 3 optional: true items: - - mode: 6 + - mode: 3 path: path key: key - - mode: 6 + - mode: 3 path: path key: key projected: sources: - downwardAPI: items: - - mode: 6 + - mode: 1 path: path resourceFieldRef: divisor: divisor @@ -83993,7 +108248,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 6 + - mode: 1 path: path resourceFieldRef: divisor: divisor @@ -84006,29 +108261,48 @@ components: name: name optional: true items: - - mode: 6 + - mode: 3 path: path key: key - - mode: 6 + - mode: 3 path: path key: key secret: name: name optional: true items: - - mode: 6 + - mode: 3 path: path key: key - - mode: 6 + - mode: 3 path: path key: key serviceAccountToken: path: path audience: audience - expirationSeconds: 5 + expirationSeconds: 6 + clusterTrustBundle: + path: path + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + name: name + optional: true + signerName: signerName - downwardAPI: items: - - mode: 6 + - mode: 1 path: path resourceFieldRef: divisor: divisor @@ -84037,7 +108311,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 6 + - mode: 1 path: path resourceFieldRef: divisor: divisor @@ -84050,27 +108324,46 @@ components: name: name optional: true items: - - mode: 6 + - mode: 3 path: path key: key - - mode: 6 + - mode: 3 path: path key: key secret: name: name optional: true items: - - mode: 6 + - mode: 3 path: path key: key - - mode: 6 + - mode: 3 path: path key: key serviceAccountToken: path: path audience: audience - expirationSeconds: 5 - defaultMode: 6 + expirationSeconds: 6 + clusterTrustBundle: + path: path + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + name: name + optional: true + signerName: signerName + defaultMode: 5 cephfs: path: path secretRef: @@ -84101,10 +108394,13 @@ components: endpoints: endpoints readOnly: true gcePersistentDisk: - partition: 2 + partition: 6 readOnly: true pdName: pdName fsType: fsType + image: + reference: reference + pullPolicy: pullPolicy photonPersistentDisk: pdID: pdID fsType: fsType @@ -84122,9 +108418,9 @@ components: readOnly: true fsType: fsType downwardAPI: - defaultMode: 3 + defaultMode: 6 items: - - mode: 6 + - mode: 1 path: path resourceFieldRef: divisor: divisor @@ -84133,7 +108429,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 6 + - mode: 1 path: path resourceFieldRef: divisor: divisor @@ -84143,7 +108439,7 @@ components: apiVersion: apiVersion fieldPath: fieldPath awsElasticBlockStore: - partition: 8 + partition: 9 volumeID: volumeID readOnly: true fsType: fsType @@ -84178,14 +108474,14 @@ components: - monitors - monitors configMap: - defaultMode: 9 + defaultMode: 6 name: name optional: true items: - - mode: 6 + - mode: 3 path: path key: key - - mode: 6 + - mode: 3 path: path key: key storageos: @@ -84225,7 +108521,7 @@ components: volumePath: volumePath fsType: fsType fc: - lun: 1 + lun: 2 targetWWNs: - targetWWNs - targetWWNs @@ -84312,10 +108608,8 @@ components: name: name namespace: namespace volumeName: volumeName + volumeAttributesClassName: volumeAttributesClassName resources: - claims: - - name: name - - name: name requests: {} limits: {} selector: @@ -84342,20 +108636,20 @@ components: volumeMode: volumeMode secret: secretName: secretName - defaultMode: 6 + defaultMode: 3 optional: true items: - - mode: 6 + - mode: 3 path: path key: key - - mode: 6 + - mode: 3 path: path key: key projected: sources: - downwardAPI: items: - - mode: 6 + - mode: 1 path: path resourceFieldRef: divisor: divisor @@ -84364,7 +108658,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 6 + - mode: 1 path: path resourceFieldRef: divisor: divisor @@ -84377,29 +108671,48 @@ components: name: name optional: true items: - - mode: 6 + - mode: 3 path: path key: key - - mode: 6 + - mode: 3 path: path key: key secret: name: name optional: true items: - - mode: 6 + - mode: 3 path: path key: key - - mode: 6 + - mode: 3 path: path key: key serviceAccountToken: path: path audience: audience - expirationSeconds: 5 + expirationSeconds: 6 + clusterTrustBundle: + path: path + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + name: name + optional: true + signerName: signerName - downwardAPI: items: - - mode: 6 + - mode: 1 path: path resourceFieldRef: divisor: divisor @@ -84408,7 +108721,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 6 + - mode: 1 path: path resourceFieldRef: divisor: divisor @@ -84421,27 +108734,46 @@ components: name: name optional: true items: - - mode: 6 + - mode: 3 path: path key: key - - mode: 6 + - mode: 3 path: path key: key secret: name: name optional: true items: - - mode: 6 + - mode: 3 path: path key: key - - mode: 6 + - mode: 3 path: path key: key serviceAccountToken: path: path audience: audience - expirationSeconds: 5 - defaultMode: 6 + expirationSeconds: 6 + clusterTrustBundle: + path: path + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + name: name + optional: true + signerName: signerName + defaultMode: 5 cephfs: path: path secretRef: @@ -84472,10 +108804,13 @@ components: endpoints: endpoints readOnly: true gcePersistentDisk: - partition: 2 + partition: 6 readOnly: true pdName: pdName fsType: fsType + image: + reference: reference + pullPolicy: pullPolicy photonPersistentDisk: pdID: pdID fsType: fsType @@ -84493,9 +108828,9 @@ components: readOnly: true fsType: fsType downwardAPI: - defaultMode: 3 + defaultMode: 6 items: - - mode: 6 + - mode: 1 path: path resourceFieldRef: divisor: divisor @@ -84504,7 +108839,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 6 + - mode: 1 path: path resourceFieldRef: divisor: divisor @@ -84514,7 +108849,7 @@ components: apiVersion: apiVersion fieldPath: fieldPath awsElasticBlockStore: - partition: 8 + partition: 9 volumeID: volumeID readOnly: true fsType: fsType @@ -84549,14 +108884,14 @@ components: - monitors - monitors configMap: - defaultMode: 9 + defaultMode: 6 name: name optional: true items: - - mode: 6 + - mode: 3 path: path key: key - - mode: 6 + - mode: 3 path: path key: key storageos: @@ -84596,7 +108931,7 @@ components: volumePath: volumePath fsType: fsType fc: - lun: 1 + lun: 2 targetWWNs: - targetWWNs - targetWWNs @@ -84608,6 +108943,14 @@ components: hostPath: path: path type: type + resources: + claims: + - request: request + name: name + - request: request + name: name + requests: {} + limits: {} ephemeralContainers: - volumeDevices: - devicePath: devicePath @@ -84631,6 +108974,9 @@ components: level: level type: type user: user + appArmorProfile: + localhostProfile: localhostProfile + type: type seccompProfile: localhostProfile: localhostProfile type: type @@ -84645,21 +108991,21 @@ components: runAsNonRoot: true readOnlyRootFilesystem: true startupProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -84675,28 +109021,32 @@ components: - protocol: protocol hostIP: hostIP name: name - containerPort: 4 - hostPort: 7 + containerPort: 7 + hostPort: 1 - protocol: protocol hostIP: hostIP name: name - containerPort: 4 - hostPort: 7 + containerPort: 7 + hostPort: 1 volumeMounts: - mountPath: mountPath mountPropagation: mountPropagation name: name readOnly: true subPath: subPath + recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - mountPath: mountPath mountPropagation: mountPropagation name: name readOnly: true subPath: subPath + recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr lifecycle: postStart: + sleep: + seconds: 5 tcpSocket: port: port host: host @@ -84715,6 +109065,8 @@ components: - name: name value: value preStop: + sleep: + seconds: 5 tcpSocket: port: port host: host @@ -84732,22 +109084,23 @@ components: value: value - name: name value: value + stopSignal: stopSignal readinessProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -84782,21 +109135,21 @@ components: image: image imagePullPolicy: imagePullPolicy livenessProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -84813,8 +109166,10 @@ components: workingDir: workingDir resources: claims: - - name: name - - name: name + - request: request + name: name + - request: request + name: name requests: {} limits: {} env: @@ -84886,6 +109241,9 @@ components: level: level type: type user: user + appArmorProfile: + localhostProfile: localhostProfile + type: type seccompProfile: localhostProfile: localhostProfile type: type @@ -84900,21 +109258,21 @@ components: runAsNonRoot: true readOnlyRootFilesystem: true startupProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -84930,28 +109288,32 @@ components: - protocol: protocol hostIP: hostIP name: name - containerPort: 4 - hostPort: 7 + containerPort: 7 + hostPort: 1 - protocol: protocol hostIP: hostIP name: name - containerPort: 4 - hostPort: 7 + containerPort: 7 + hostPort: 1 volumeMounts: - mountPath: mountPath mountPropagation: mountPropagation name: name readOnly: true subPath: subPath + recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - mountPath: mountPath mountPropagation: mountPropagation name: name readOnly: true subPath: subPath + recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr lifecycle: postStart: + sleep: + seconds: 5 tcpSocket: port: port host: host @@ -84970,6 +109332,8 @@ components: - name: name value: value preStop: + sleep: + seconds: 5 tcpSocket: port: port host: host @@ -84987,22 +109351,23 @@ components: value: value - name: name value: value + stopSignal: stopSignal readinessProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -85037,21 +109402,21 @@ components: image: image imagePullPolicy: imagePullPolicy livenessProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -85068,8 +109433,10 @@ components: workingDir: workingDir resources: claims: - - name: name - - name: name + - request: request + name: name + - request: request + name: name requests: {} limits: {} env: @@ -85120,19 +109487,17 @@ components: tty: true stdinOnce: true serviceAccount: serviceAccount - priority: 1 + priority: 6 restartPolicy: restartPolicy shareProcessNamespace: true hostUsers: true resourceClaims: - - name: name - source: - resourceClaimName: resourceClaimName - resourceClaimTemplateName: resourceClaimTemplateName - - name: name - source: - resourceClaimName: resourceClaimName - resourceClaimTemplateName: resourceClaimTemplateName + - resourceClaimName: resourceClaimName + name: name + resourceClaimTemplateName: resourceClaimTemplateName + - resourceClaimName: resourceClaimName + name: name + resourceClaimTemplateName: resourceClaimTemplateName subdomain: subdomain containers: - volumeDevices: @@ -85143,21 +109508,21 @@ components: image: image imagePullPolicy: imagePullPolicy livenessProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -85175,8 +109540,10 @@ components: workingDir: workingDir resources: claims: - - name: name - - name: name + - request: request + name: name + - request: request + name: name requests: {} limits: {} securityContext: @@ -85194,6 +109561,9 @@ components: level: level type: type user: user + appArmorProfile: + localhostProfile: localhostProfile + type: type seccompProfile: localhostProfile: localhostProfile type: type @@ -85208,21 +109578,21 @@ components: runAsNonRoot: true readOnlyRootFilesystem: true startupProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -85275,13 +109645,13 @@ components: - protocol: protocol hostIP: hostIP name: name - containerPort: 4 - hostPort: 7 + containerPort: 7 + hostPort: 1 - protocol: protocol hostIP: hostIP name: name - containerPort: 4 - hostPort: 7 + containerPort: 7 + hostPort: 1 restartPolicy: restartPolicy command: - command @@ -85292,18 +109662,22 @@ components: name: name readOnly: true subPath: subPath + recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - mountPath: mountPath mountPropagation: mountPropagation name: name readOnly: true subPath: subPath + recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr args: - args - args lifecycle: postStart: + sleep: + seconds: 5 tcpSocket: port: port host: host @@ -85322,6 +109696,8 @@ components: - name: name value: value preStop: + sleep: + seconds: 5 tcpSocket: port: port host: host @@ -85339,24 +109715,25 @@ components: value: value - name: name value: value + stopSignal: stopSignal name: name tty: true readinessProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -85397,21 +109774,21 @@ components: image: image imagePullPolicy: imagePullPolicy livenessProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -85429,8 +109806,10 @@ components: workingDir: workingDir resources: claims: - - name: name - - name: name + - request: request + name: name + - request: request + name: name requests: {} limits: {} securityContext: @@ -85448,6 +109827,9 @@ components: level: level type: type user: user + appArmorProfile: + localhostProfile: localhostProfile + type: type seccompProfile: localhostProfile: localhostProfile type: type @@ -85462,21 +109844,21 @@ components: runAsNonRoot: true readOnlyRootFilesystem: true startupProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -85529,13 +109911,13 @@ components: - protocol: protocol hostIP: hostIP name: name - containerPort: 4 - hostPort: 7 + containerPort: 7 + hostPort: 1 - protocol: protocol hostIP: hostIP name: name - containerPort: 4 - hostPort: 7 + containerPort: 7 + hostPort: 1 restartPolicy: restartPolicy command: - command @@ -85546,18 +109928,22 @@ components: name: name readOnly: true subPath: subPath + recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - mountPath: mountPath mountPropagation: mountPropagation name: name readOnly: true subPath: subPath + recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr args: - args - args lifecycle: postStart: + sleep: + seconds: 5 tcpSocket: port: port host: host @@ -85576,6 +109962,8 @@ components: - name: name value: value preStop: + sleep: + seconds: 5 tcpSocket: port: port host: host @@ -85593,24 +109981,25 @@ components: value: value - name: name value: value + stopSignal: stopSignal name: name tty: true readinessProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -85652,21 +110041,21 @@ components: image: image imagePullPolicy: imagePullPolicy livenessProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -85684,8 +110073,10 @@ components: workingDir: workingDir resources: claims: - - name: name - - name: name + - request: request + name: name + - request: request + name: name requests: {} limits: {} securityContext: @@ -85703,6 +110094,9 @@ components: level: level type: type user: user + appArmorProfile: + localhostProfile: localhostProfile + type: type seccompProfile: localhostProfile: localhostProfile type: type @@ -85717,21 +110111,21 @@ components: runAsNonRoot: true readOnlyRootFilesystem: true startupProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -85784,13 +110178,13 @@ components: - protocol: protocol hostIP: hostIP name: name - containerPort: 4 - hostPort: 7 + containerPort: 7 + hostPort: 1 - protocol: protocol hostIP: hostIP name: name - containerPort: 4 - hostPort: 7 + containerPort: 7 + hostPort: 1 restartPolicy: restartPolicy command: - command @@ -85801,18 +110195,22 @@ components: name: name readOnly: true subPath: subPath + recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - mountPath: mountPath mountPropagation: mountPropagation name: name readOnly: true subPath: subPath + recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr args: - args - args lifecycle: postStart: + sleep: + seconds: 5 tcpSocket: port: port host: host @@ -85831,6 +110229,8 @@ components: - name: name value: value preStop: + sleep: + seconds: 5 tcpSocket: port: port host: host @@ -85848,24 +110248,25 @@ components: value: value - name: name value: value + stopSignal: stopSignal name: name tty: true readinessProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -85906,21 +110307,21 @@ components: image: image imagePullPolicy: imagePullPolicy livenessProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -85938,8 +110339,10 @@ components: workingDir: workingDir resources: claims: - - name: name - - name: name + - request: request + name: name + - request: request + name: name requests: {} limits: {} securityContext: @@ -85957,6 +110360,9 @@ components: level: level type: type user: user + appArmorProfile: + localhostProfile: localhostProfile + type: type seccompProfile: localhostProfile: localhostProfile type: type @@ -85971,21 +110377,21 @@ components: runAsNonRoot: true readOnlyRootFilesystem: true startupProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -86038,13 +110444,13 @@ components: - protocol: protocol hostIP: hostIP name: name - containerPort: 4 - hostPort: 7 + containerPort: 7 + hostPort: 1 - protocol: protocol hostIP: hostIP name: name - containerPort: 4 - hostPort: 7 + containerPort: 7 + hostPort: 1 restartPolicy: restartPolicy command: - command @@ -86055,18 +110461,22 @@ components: name: name readOnly: true subPath: subPath + recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - mountPath: mountPath mountPropagation: mountPropagation name: name readOnly: true subPath: subPath + recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr args: - args - args lifecycle: postStart: + sleep: + seconds: 5 tcpSocket: port: port host: host @@ -86085,6 +110495,8 @@ components: - name: name value: value preStop: + sleep: + seconds: 5 tcpSocket: port: port host: host @@ -86102,24 +110514,25 @@ components: value: value - name: name value: value + stopSignal: stopSignal name: name tty: true readinessProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -86280,6 +110693,12 @@ components: matchLabels: key: matchLabels topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + mismatchLabelKeys: + - mismatchLabelKeys + - mismatchLabelKeys namespaces: - namespaces - namespaces @@ -86312,6 +110731,12 @@ components: matchLabels: key: matchLabels topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + mismatchLabelKeys: + - mismatchLabelKeys + - mismatchLabelKeys namespaces: - namespaces - namespaces @@ -86346,6 +110771,12 @@ components: matchLabels: key: matchLabels topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + mismatchLabelKeys: + - mismatchLabelKeys + - mismatchLabelKeys namespaces: - namespaces - namespaces @@ -86380,6 +110811,12 @@ components: matchLabels: key: matchLabels topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + mismatchLabelKeys: + - mismatchLabelKeys + - mismatchLabelKeys namespaces: - namespaces - namespaces @@ -86415,6 +110852,12 @@ components: matchLabels: key: matchLabels topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + mismatchLabelKeys: + - mismatchLabelKeys + - mismatchLabelKeys namespaces: - namespaces - namespaces @@ -86447,6 +110890,12 @@ components: matchLabels: key: matchLabels topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + mismatchLabelKeys: + - mismatchLabelKeys + - mismatchLabelKeys namespaces: - namespaces - namespaces @@ -86481,6 +110930,12 @@ components: matchLabels: key: matchLabels topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + mismatchLabelKeys: + - mismatchLabelKeys + - mismatchLabelKeys namespaces: - namespaces - namespaces @@ -86515,6 +110970,12 @@ components: matchLabels: key: matchLabels topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + mismatchLabelKeys: + - mismatchLabelKeys + - mismatchLabelKeys namespaces: - namespaces - namespaces @@ -86545,8 +111006,9 @@ components: maxUnavailable: maxUnavailable progressDeadlineSeconds: 6 status: - unavailableReplicas: 2 + unavailableReplicas: 4 replicas: 3 + terminatingReplicas: 2 readyReplicas: 9 collisionCount: 2 conditions: @@ -86562,7 +111024,7 @@ components: type: type lastUpdateTime: 2000-01-23T04:56:07.000+00:00 status: status - updatedReplicas: 4 + updatedReplicas: 7 availableReplicas: 5 observedGeneration: 7 properties: @@ -86734,7 +111196,7 @@ components: spec: dnsPolicy: dnsPolicy nodeName: nodeName - terminationGracePeriodSeconds: 5 + terminationGracePeriodSeconds: 9 dnsConfig: searches: - searches @@ -86766,32 +111228,37 @@ components: - hostnames - hostnames securityContext: - runAsUser: 1 seLinuxOptions: role: role level: level type: type user: user - fsGroup: 6 - seccompProfile: + appArmorProfile: localhostProfile: localhostProfile type: type - windowsOptions: - gmsaCredentialSpec: gmsaCredentialSpec - runAsUserName: runAsUserName - hostProcess: true - gmsaCredentialSpecName: gmsaCredentialSpecName + fsGroup: 7 fsGroupChangePolicy: fsGroupChangePolicy - supplementalGroups: - - 4 - - 4 - runAsGroup: 7 + seLinuxChangePolicy: seLinuxChangePolicy + runAsGroup: 1 runAsNonRoot: true sysctls: - name: name value: value - name: name value: value + runAsUser: 4 + seccompProfile: + localhostProfile: localhostProfile + type: type + windowsOptions: + gmsaCredentialSpec: gmsaCredentialSpec + runAsUserName: runAsUserName + hostProcess: true + gmsaCredentialSpecName: gmsaCredentialSpecName + supplementalGroups: + - 5 + - 5 + supplementalGroupsPolicy: supplementalGroupsPolicy preemptionPolicy: preemptionPolicy nodeSelector: key: nodeSelector @@ -86823,7 +111290,7 @@ components: topologySpreadConstraints: - nodeTaintsPolicy: nodeTaintsPolicy whenUnsatisfiable: whenUnsatisfiable - maxSkew: 9 + maxSkew: 6 nodeAffinityPolicy: nodeAffinityPolicy labelSelector: matchExpressions: @@ -86839,14 +111306,14 @@ components: operator: operator matchLabels: key: matchLabels - minDomains: 6 + minDomains: 8 topologyKey: topologyKey matchLabelKeys: - matchLabelKeys - matchLabelKeys - nodeTaintsPolicy: nodeTaintsPolicy whenUnsatisfiable: whenUnsatisfiable - maxSkew: 9 + maxSkew: 6 nodeAffinityPolicy: nodeAffinityPolicy labelSelector: matchExpressions: @@ -86862,7 +111329,7 @@ components: operator: operator matchLabels: key: matchLabels - minDomains: 6 + minDomains: 8 topologyKey: topologyKey matchLabelKeys: - matchLabelKeys @@ -86943,10 +111410,8 @@ components: name: name namespace: namespace volumeName: volumeName + volumeAttributesClassName: volumeAttributesClassName resources: - claims: - - name: name - - name: name requests: {} limits: {} selector: @@ -86973,20 +111438,20 @@ components: volumeMode: volumeMode secret: secretName: secretName - defaultMode: 6 + defaultMode: 3 optional: true items: - - mode: 6 + - mode: 3 path: path key: key - - mode: 6 + - mode: 3 path: path key: key projected: sources: - downwardAPI: items: - - mode: 6 + - mode: 1 path: path resourceFieldRef: divisor: divisor @@ -86995,7 +111460,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 6 + - mode: 1 path: path resourceFieldRef: divisor: divisor @@ -87008,29 +111473,48 @@ components: name: name optional: true items: - - mode: 6 + - mode: 3 path: path key: key - - mode: 6 + - mode: 3 path: path key: key secret: name: name optional: true items: - - mode: 6 + - mode: 3 path: path key: key - - mode: 6 + - mode: 3 path: path key: key serviceAccountToken: path: path audience: audience - expirationSeconds: 5 + expirationSeconds: 6 + clusterTrustBundle: + path: path + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + name: name + optional: true + signerName: signerName - downwardAPI: items: - - mode: 6 + - mode: 1 path: path resourceFieldRef: divisor: divisor @@ -87039,7 +111523,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 6 + - mode: 1 path: path resourceFieldRef: divisor: divisor @@ -87052,27 +111536,46 @@ components: name: name optional: true items: - - mode: 6 + - mode: 3 path: path key: key - - mode: 6 + - mode: 3 path: path key: key secret: name: name optional: true items: - - mode: 6 + - mode: 3 path: path key: key - - mode: 6 + - mode: 3 path: path key: key serviceAccountToken: path: path audience: audience - expirationSeconds: 5 - defaultMode: 6 + expirationSeconds: 6 + clusterTrustBundle: + path: path + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + name: name + optional: true + signerName: signerName + defaultMode: 5 cephfs: path: path secretRef: @@ -87103,10 +111606,13 @@ components: endpoints: endpoints readOnly: true gcePersistentDisk: - partition: 2 + partition: 6 readOnly: true pdName: pdName fsType: fsType + image: + reference: reference + pullPolicy: pullPolicy photonPersistentDisk: pdID: pdID fsType: fsType @@ -87124,9 +111630,9 @@ components: readOnly: true fsType: fsType downwardAPI: - defaultMode: 3 + defaultMode: 6 items: - - mode: 6 + - mode: 1 path: path resourceFieldRef: divisor: divisor @@ -87135,7 +111641,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 6 + - mode: 1 path: path resourceFieldRef: divisor: divisor @@ -87145,7 +111651,7 @@ components: apiVersion: apiVersion fieldPath: fieldPath awsElasticBlockStore: - partition: 8 + partition: 9 volumeID: volumeID readOnly: true fsType: fsType @@ -87180,14 +111686,14 @@ components: - monitors - monitors configMap: - defaultMode: 9 + defaultMode: 6 name: name optional: true items: - - mode: 6 + - mode: 3 path: path key: key - - mode: 6 + - mode: 3 path: path key: key storageos: @@ -87227,7 +111733,7 @@ components: volumePath: volumePath fsType: fsType fc: - lun: 1 + lun: 2 targetWWNs: - targetWWNs - targetWWNs @@ -87314,10 +111820,8 @@ components: name: name namespace: namespace volumeName: volumeName + volumeAttributesClassName: volumeAttributesClassName resources: - claims: - - name: name - - name: name requests: {} limits: {} selector: @@ -87344,20 +111848,20 @@ components: volumeMode: volumeMode secret: secretName: secretName - defaultMode: 6 + defaultMode: 3 optional: true items: - - mode: 6 + - mode: 3 path: path key: key - - mode: 6 + - mode: 3 path: path key: key projected: sources: - downwardAPI: items: - - mode: 6 + - mode: 1 path: path resourceFieldRef: divisor: divisor @@ -87366,7 +111870,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 6 + - mode: 1 path: path resourceFieldRef: divisor: divisor @@ -87379,29 +111883,48 @@ components: name: name optional: true items: - - mode: 6 + - mode: 3 path: path key: key - - mode: 6 + - mode: 3 path: path key: key secret: name: name optional: true items: - - mode: 6 + - mode: 3 path: path key: key - - mode: 6 + - mode: 3 path: path key: key serviceAccountToken: path: path audience: audience - expirationSeconds: 5 + expirationSeconds: 6 + clusterTrustBundle: + path: path + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + name: name + optional: true + signerName: signerName - downwardAPI: items: - - mode: 6 + - mode: 1 path: path resourceFieldRef: divisor: divisor @@ -87410,7 +111933,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 6 + - mode: 1 path: path resourceFieldRef: divisor: divisor @@ -87423,27 +111946,46 @@ components: name: name optional: true items: - - mode: 6 + - mode: 3 path: path key: key - - mode: 6 + - mode: 3 path: path key: key secret: name: name optional: true items: - - mode: 6 + - mode: 3 path: path key: key - - mode: 6 + - mode: 3 path: path key: key serviceAccountToken: path: path audience: audience - expirationSeconds: 5 - defaultMode: 6 + expirationSeconds: 6 + clusterTrustBundle: + path: path + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + name: name + optional: true + signerName: signerName + defaultMode: 5 cephfs: path: path secretRef: @@ -87474,10 +112016,13 @@ components: endpoints: endpoints readOnly: true gcePersistentDisk: - partition: 2 + partition: 6 readOnly: true pdName: pdName fsType: fsType + image: + reference: reference + pullPolicy: pullPolicy photonPersistentDisk: pdID: pdID fsType: fsType @@ -87495,9 +112040,9 @@ components: readOnly: true fsType: fsType downwardAPI: - defaultMode: 3 + defaultMode: 6 items: - - mode: 6 + - mode: 1 path: path resourceFieldRef: divisor: divisor @@ -87506,7 +112051,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 6 + - mode: 1 path: path resourceFieldRef: divisor: divisor @@ -87516,7 +112061,7 @@ components: apiVersion: apiVersion fieldPath: fieldPath awsElasticBlockStore: - partition: 8 + partition: 9 volumeID: volumeID readOnly: true fsType: fsType @@ -87551,14 +112096,14 @@ components: - monitors - monitors configMap: - defaultMode: 9 + defaultMode: 6 name: name optional: true items: - - mode: 6 + - mode: 3 path: path key: key - - mode: 6 + - mode: 3 path: path key: key storageos: @@ -87598,7 +112143,7 @@ components: volumePath: volumePath fsType: fsType fc: - lun: 1 + lun: 2 targetWWNs: - targetWWNs - targetWWNs @@ -87610,6 +112155,14 @@ components: hostPath: path: path type: type + resources: + claims: + - request: request + name: name + - request: request + name: name + requests: {} + limits: {} ephemeralContainers: - volumeDevices: - devicePath: devicePath @@ -87633,6 +112186,9 @@ components: level: level type: type user: user + appArmorProfile: + localhostProfile: localhostProfile + type: type seccompProfile: localhostProfile: localhostProfile type: type @@ -87647,21 +112203,21 @@ components: runAsNonRoot: true readOnlyRootFilesystem: true startupProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -87677,28 +112233,32 @@ components: - protocol: protocol hostIP: hostIP name: name - containerPort: 4 - hostPort: 7 + containerPort: 7 + hostPort: 1 - protocol: protocol hostIP: hostIP name: name - containerPort: 4 - hostPort: 7 + containerPort: 7 + hostPort: 1 volumeMounts: - mountPath: mountPath mountPropagation: mountPropagation name: name readOnly: true subPath: subPath + recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - mountPath: mountPath mountPropagation: mountPropagation name: name readOnly: true subPath: subPath + recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr lifecycle: postStart: + sleep: + seconds: 5 tcpSocket: port: port host: host @@ -87717,6 +112277,8 @@ components: - name: name value: value preStop: + sleep: + seconds: 5 tcpSocket: port: port host: host @@ -87734,22 +112296,23 @@ components: value: value - name: name value: value + stopSignal: stopSignal readinessProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -87784,21 +112347,21 @@ components: image: image imagePullPolicy: imagePullPolicy livenessProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -87815,8 +112378,10 @@ components: workingDir: workingDir resources: claims: - - name: name - - name: name + - request: request + name: name + - request: request + name: name requests: {} limits: {} env: @@ -87888,6 +112453,9 @@ components: level: level type: type user: user + appArmorProfile: + localhostProfile: localhostProfile + type: type seccompProfile: localhostProfile: localhostProfile type: type @@ -87902,21 +112470,21 @@ components: runAsNonRoot: true readOnlyRootFilesystem: true startupProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -87932,28 +112500,32 @@ components: - protocol: protocol hostIP: hostIP name: name - containerPort: 4 - hostPort: 7 + containerPort: 7 + hostPort: 1 - protocol: protocol hostIP: hostIP name: name - containerPort: 4 - hostPort: 7 + containerPort: 7 + hostPort: 1 volumeMounts: - mountPath: mountPath mountPropagation: mountPropagation name: name readOnly: true subPath: subPath + recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - mountPath: mountPath mountPropagation: mountPropagation name: name readOnly: true subPath: subPath + recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr lifecycle: postStart: + sleep: + seconds: 5 tcpSocket: port: port host: host @@ -87972,6 +112544,8 @@ components: - name: name value: value preStop: + sleep: + seconds: 5 tcpSocket: port: port host: host @@ -87989,22 +112563,23 @@ components: value: value - name: name value: value + stopSignal: stopSignal readinessProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -88039,21 +112614,21 @@ components: image: image imagePullPolicy: imagePullPolicy livenessProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -88070,8 +112645,10 @@ components: workingDir: workingDir resources: claims: - - name: name - - name: name + - request: request + name: name + - request: request + name: name requests: {} limits: {} env: @@ -88122,19 +112699,17 @@ components: tty: true stdinOnce: true serviceAccount: serviceAccount - priority: 1 + priority: 6 restartPolicy: restartPolicy shareProcessNamespace: true hostUsers: true resourceClaims: - - name: name - source: - resourceClaimName: resourceClaimName - resourceClaimTemplateName: resourceClaimTemplateName - - name: name - source: - resourceClaimName: resourceClaimName - resourceClaimTemplateName: resourceClaimTemplateName + - resourceClaimName: resourceClaimName + name: name + resourceClaimTemplateName: resourceClaimTemplateName + - resourceClaimName: resourceClaimName + name: name + resourceClaimTemplateName: resourceClaimTemplateName subdomain: subdomain containers: - volumeDevices: @@ -88145,21 +112720,21 @@ components: image: image imagePullPolicy: imagePullPolicy livenessProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -88177,8 +112752,10 @@ components: workingDir: workingDir resources: claims: - - name: name - - name: name + - request: request + name: name + - request: request + name: name requests: {} limits: {} securityContext: @@ -88196,6 +112773,9 @@ components: level: level type: type user: user + appArmorProfile: + localhostProfile: localhostProfile + type: type seccompProfile: localhostProfile: localhostProfile type: type @@ -88210,21 +112790,21 @@ components: runAsNonRoot: true readOnlyRootFilesystem: true startupProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -88277,13 +112857,13 @@ components: - protocol: protocol hostIP: hostIP name: name - containerPort: 4 - hostPort: 7 + containerPort: 7 + hostPort: 1 - protocol: protocol hostIP: hostIP name: name - containerPort: 4 - hostPort: 7 + containerPort: 7 + hostPort: 1 restartPolicy: restartPolicy command: - command @@ -88294,18 +112874,22 @@ components: name: name readOnly: true subPath: subPath + recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - mountPath: mountPath mountPropagation: mountPropagation name: name readOnly: true subPath: subPath + recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr args: - args - args lifecycle: postStart: + sleep: + seconds: 5 tcpSocket: port: port host: host @@ -88324,6 +112908,8 @@ components: - name: name value: value preStop: + sleep: + seconds: 5 tcpSocket: port: port host: host @@ -88341,24 +112927,25 @@ components: value: value - name: name value: value + stopSignal: stopSignal name: name tty: true readinessProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -88399,21 +112986,21 @@ components: image: image imagePullPolicy: imagePullPolicy livenessProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -88431,8 +113018,10 @@ components: workingDir: workingDir resources: claims: - - name: name - - name: name + - request: request + name: name + - request: request + name: name requests: {} limits: {} securityContext: @@ -88450,6 +113039,9 @@ components: level: level type: type user: user + appArmorProfile: + localhostProfile: localhostProfile + type: type seccompProfile: localhostProfile: localhostProfile type: type @@ -88464,21 +113056,21 @@ components: runAsNonRoot: true readOnlyRootFilesystem: true startupProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -88531,13 +113123,13 @@ components: - protocol: protocol hostIP: hostIP name: name - containerPort: 4 - hostPort: 7 + containerPort: 7 + hostPort: 1 - protocol: protocol hostIP: hostIP name: name - containerPort: 4 - hostPort: 7 + containerPort: 7 + hostPort: 1 restartPolicy: restartPolicy command: - command @@ -88548,18 +113140,22 @@ components: name: name readOnly: true subPath: subPath + recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - mountPath: mountPath mountPropagation: mountPropagation name: name readOnly: true subPath: subPath + recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr args: - args - args lifecycle: postStart: + sleep: + seconds: 5 tcpSocket: port: port host: host @@ -88578,6 +113174,8 @@ components: - name: name value: value preStop: + sleep: + seconds: 5 tcpSocket: port: port host: host @@ -88595,24 +113193,25 @@ components: value: value - name: name value: value + stopSignal: stopSignal name: name tty: true readinessProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -88654,21 +113253,21 @@ components: image: image imagePullPolicy: imagePullPolicy livenessProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -88686,8 +113285,10 @@ components: workingDir: workingDir resources: claims: - - name: name - - name: name + - request: request + name: name + - request: request + name: name requests: {} limits: {} securityContext: @@ -88705,6 +113306,9 @@ components: level: level type: type user: user + appArmorProfile: + localhostProfile: localhostProfile + type: type seccompProfile: localhostProfile: localhostProfile type: type @@ -88719,21 +113323,21 @@ components: runAsNonRoot: true readOnlyRootFilesystem: true startupProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -88786,13 +113390,13 @@ components: - protocol: protocol hostIP: hostIP name: name - containerPort: 4 - hostPort: 7 + containerPort: 7 + hostPort: 1 - protocol: protocol hostIP: hostIP name: name - containerPort: 4 - hostPort: 7 + containerPort: 7 + hostPort: 1 restartPolicy: restartPolicy command: - command @@ -88803,18 +113407,22 @@ components: name: name readOnly: true subPath: subPath + recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - mountPath: mountPath mountPropagation: mountPropagation name: name readOnly: true subPath: subPath + recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr args: - args - args lifecycle: postStart: + sleep: + seconds: 5 tcpSocket: port: port host: host @@ -88833,6 +113441,8 @@ components: - name: name value: value preStop: + sleep: + seconds: 5 tcpSocket: port: port host: host @@ -88850,24 +113460,25 @@ components: value: value - name: name value: value + stopSignal: stopSignal name: name tty: true readinessProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -88908,21 +113519,21 @@ components: image: image imagePullPolicy: imagePullPolicy livenessProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -88940,8 +113551,10 @@ components: workingDir: workingDir resources: claims: - - name: name - - name: name + - request: request + name: name + - request: request + name: name requests: {} limits: {} securityContext: @@ -88959,6 +113572,9 @@ components: level: level type: type user: user + appArmorProfile: + localhostProfile: localhostProfile + type: type seccompProfile: localhostProfile: localhostProfile type: type @@ -88973,21 +113589,21 @@ components: runAsNonRoot: true readOnlyRootFilesystem: true startupProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -89040,13 +113656,13 @@ components: - protocol: protocol hostIP: hostIP name: name - containerPort: 4 - hostPort: 7 + containerPort: 7 + hostPort: 1 - protocol: protocol hostIP: hostIP name: name - containerPort: 4 - hostPort: 7 + containerPort: 7 + hostPort: 1 restartPolicy: restartPolicy command: - command @@ -89057,18 +113673,22 @@ components: name: name readOnly: true subPath: subPath + recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - mountPath: mountPath mountPropagation: mountPropagation name: name readOnly: true subPath: subPath + recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr args: - args - args lifecycle: postStart: + sleep: + seconds: 5 tcpSocket: port: port host: host @@ -89087,6 +113707,8 @@ components: - name: name value: value preStop: + sleep: + seconds: 5 tcpSocket: port: port host: host @@ -89104,24 +113726,25 @@ components: value: value - name: name value: value + stopSignal: stopSignal name: name tty: true readinessProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -89282,6 +113905,12 @@ components: matchLabels: key: matchLabels topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + mismatchLabelKeys: + - mismatchLabelKeys + - mismatchLabelKeys namespaces: - namespaces - namespaces @@ -89314,6 +113943,12 @@ components: matchLabels: key: matchLabels topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + mismatchLabelKeys: + - mismatchLabelKeys + - mismatchLabelKeys namespaces: - namespaces - namespaces @@ -89348,6 +113983,12 @@ components: matchLabels: key: matchLabels topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + mismatchLabelKeys: + - mismatchLabelKeys + - mismatchLabelKeys namespaces: - namespaces - namespaces @@ -89382,6 +114023,12 @@ components: matchLabels: key: matchLabels topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + mismatchLabelKeys: + - mismatchLabelKeys + - mismatchLabelKeys namespaces: - namespaces - namespaces @@ -89417,6 +114064,12 @@ components: matchLabels: key: matchLabels topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + mismatchLabelKeys: + - mismatchLabelKeys + - mismatchLabelKeys namespaces: - namespaces - namespaces @@ -89449,6 +114102,12 @@ components: matchLabels: key: matchLabels topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + mismatchLabelKeys: + - mismatchLabelKeys + - mismatchLabelKeys namespaces: - namespaces - namespaces @@ -89483,6 +114142,12 @@ components: matchLabels: key: matchLabels topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + mismatchLabelKeys: + - mismatchLabelKeys + - mismatchLabelKeys namespaces: - namespaces - namespaces @@ -89517,6 +114182,12 @@ components: matchLabels: key: matchLabels topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + mismatchLabelKeys: + - mismatchLabelKeys + - mismatchLabelKeys namespaces: - namespaces - namespaces @@ -89547,8 +114218,9 @@ components: maxUnavailable: maxUnavailable progressDeadlineSeconds: 6 status: - unavailableReplicas: 2 + unavailableReplicas: 4 replicas: 3 + terminatingReplicas: 2 readyReplicas: 9 collisionCount: 2 conditions: @@ -89564,7 +114236,7 @@ components: type: type lastUpdateTime: 2000-01-23T04:56:07.000+00:00 status: status - updatedReplicas: 4 + updatedReplicas: 7 availableReplicas: 5 observedGeneration: 7 - metadata: @@ -89666,7 +114338,7 @@ components: spec: dnsPolicy: dnsPolicy nodeName: nodeName - terminationGracePeriodSeconds: 5 + terminationGracePeriodSeconds: 9 dnsConfig: searches: - searches @@ -89698,32 +114370,37 @@ components: - hostnames - hostnames securityContext: - runAsUser: 1 seLinuxOptions: role: role level: level type: type user: user - fsGroup: 6 - seccompProfile: + appArmorProfile: localhostProfile: localhostProfile type: type - windowsOptions: - gmsaCredentialSpec: gmsaCredentialSpec - runAsUserName: runAsUserName - hostProcess: true - gmsaCredentialSpecName: gmsaCredentialSpecName + fsGroup: 7 fsGroupChangePolicy: fsGroupChangePolicy - supplementalGroups: - - 4 - - 4 - runAsGroup: 7 + seLinuxChangePolicy: seLinuxChangePolicy + runAsGroup: 1 runAsNonRoot: true sysctls: - name: name value: value - name: name value: value + runAsUser: 4 + seccompProfile: + localhostProfile: localhostProfile + type: type + windowsOptions: + gmsaCredentialSpec: gmsaCredentialSpec + runAsUserName: runAsUserName + hostProcess: true + gmsaCredentialSpecName: gmsaCredentialSpecName + supplementalGroups: + - 5 + - 5 + supplementalGroupsPolicy: supplementalGroupsPolicy preemptionPolicy: preemptionPolicy nodeSelector: key: nodeSelector @@ -89755,7 +114432,7 @@ components: topologySpreadConstraints: - nodeTaintsPolicy: nodeTaintsPolicy whenUnsatisfiable: whenUnsatisfiable - maxSkew: 9 + maxSkew: 6 nodeAffinityPolicy: nodeAffinityPolicy labelSelector: matchExpressions: @@ -89771,14 +114448,14 @@ components: operator: operator matchLabels: key: matchLabels - minDomains: 6 + minDomains: 8 topologyKey: topologyKey matchLabelKeys: - matchLabelKeys - matchLabelKeys - nodeTaintsPolicy: nodeTaintsPolicy whenUnsatisfiable: whenUnsatisfiable - maxSkew: 9 + maxSkew: 6 nodeAffinityPolicy: nodeAffinityPolicy labelSelector: matchExpressions: @@ -89794,7 +114471,7 @@ components: operator: operator matchLabels: key: matchLabels - minDomains: 6 + minDomains: 8 topologyKey: topologyKey matchLabelKeys: - matchLabelKeys @@ -89875,10 +114552,8 @@ components: name: name namespace: namespace volumeName: volumeName + volumeAttributesClassName: volumeAttributesClassName resources: - claims: - - name: name - - name: name requests: {} limits: {} selector: @@ -89905,20 +114580,20 @@ components: volumeMode: volumeMode secret: secretName: secretName - defaultMode: 6 + defaultMode: 3 optional: true items: - - mode: 6 + - mode: 3 path: path key: key - - mode: 6 + - mode: 3 path: path key: key projected: sources: - downwardAPI: items: - - mode: 6 + - mode: 1 path: path resourceFieldRef: divisor: divisor @@ -89927,7 +114602,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 6 + - mode: 1 path: path resourceFieldRef: divisor: divisor @@ -89940,29 +114615,48 @@ components: name: name optional: true items: - - mode: 6 + - mode: 3 path: path key: key - - mode: 6 + - mode: 3 path: path key: key secret: name: name optional: true items: - - mode: 6 + - mode: 3 path: path key: key - - mode: 6 + - mode: 3 path: path key: key serviceAccountToken: path: path audience: audience - expirationSeconds: 5 + expirationSeconds: 6 + clusterTrustBundle: + path: path + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + name: name + optional: true + signerName: signerName - downwardAPI: items: - - mode: 6 + - mode: 1 path: path resourceFieldRef: divisor: divisor @@ -89971,7 +114665,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 6 + - mode: 1 path: path resourceFieldRef: divisor: divisor @@ -89984,27 +114678,46 @@ components: name: name optional: true items: - - mode: 6 + - mode: 3 path: path key: key - - mode: 6 + - mode: 3 path: path key: key secret: name: name optional: true items: - - mode: 6 + - mode: 3 path: path key: key - - mode: 6 + - mode: 3 path: path key: key serviceAccountToken: path: path audience: audience - expirationSeconds: 5 - defaultMode: 6 + expirationSeconds: 6 + clusterTrustBundle: + path: path + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + name: name + optional: true + signerName: signerName + defaultMode: 5 cephfs: path: path secretRef: @@ -90035,10 +114748,13 @@ components: endpoints: endpoints readOnly: true gcePersistentDisk: - partition: 2 + partition: 6 readOnly: true pdName: pdName fsType: fsType + image: + reference: reference + pullPolicy: pullPolicy photonPersistentDisk: pdID: pdID fsType: fsType @@ -90056,9 +114772,9 @@ components: readOnly: true fsType: fsType downwardAPI: - defaultMode: 3 + defaultMode: 6 items: - - mode: 6 + - mode: 1 path: path resourceFieldRef: divisor: divisor @@ -90067,7 +114783,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 6 + - mode: 1 path: path resourceFieldRef: divisor: divisor @@ -90077,7 +114793,7 @@ components: apiVersion: apiVersion fieldPath: fieldPath awsElasticBlockStore: - partition: 8 + partition: 9 volumeID: volumeID readOnly: true fsType: fsType @@ -90112,14 +114828,14 @@ components: - monitors - monitors configMap: - defaultMode: 9 + defaultMode: 6 name: name optional: true items: - - mode: 6 + - mode: 3 path: path key: key - - mode: 6 + - mode: 3 path: path key: key storageos: @@ -90159,7 +114875,7 @@ components: volumePath: volumePath fsType: fsType fc: - lun: 1 + lun: 2 targetWWNs: - targetWWNs - targetWWNs @@ -90246,10 +114962,8 @@ components: name: name namespace: namespace volumeName: volumeName + volumeAttributesClassName: volumeAttributesClassName resources: - claims: - - name: name - - name: name requests: {} limits: {} selector: @@ -90276,20 +114990,20 @@ components: volumeMode: volumeMode secret: secretName: secretName - defaultMode: 6 + defaultMode: 3 optional: true items: - - mode: 6 + - mode: 3 path: path key: key - - mode: 6 + - mode: 3 path: path key: key projected: sources: - downwardAPI: items: - - mode: 6 + - mode: 1 path: path resourceFieldRef: divisor: divisor @@ -90298,7 +115012,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 6 + - mode: 1 path: path resourceFieldRef: divisor: divisor @@ -90311,29 +115025,48 @@ components: name: name optional: true items: - - mode: 6 + - mode: 3 path: path key: key - - mode: 6 + - mode: 3 path: path key: key secret: name: name optional: true items: - - mode: 6 + - mode: 3 path: path key: key - - mode: 6 + - mode: 3 path: path key: key serviceAccountToken: path: path audience: audience - expirationSeconds: 5 + expirationSeconds: 6 + clusterTrustBundle: + path: path + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + name: name + optional: true + signerName: signerName - downwardAPI: items: - - mode: 6 + - mode: 1 path: path resourceFieldRef: divisor: divisor @@ -90342,7 +115075,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 6 + - mode: 1 path: path resourceFieldRef: divisor: divisor @@ -90355,27 +115088,46 @@ components: name: name optional: true items: - - mode: 6 + - mode: 3 path: path key: key - - mode: 6 + - mode: 3 path: path key: key secret: name: name optional: true items: - - mode: 6 + - mode: 3 path: path key: key - - mode: 6 + - mode: 3 path: path key: key serviceAccountToken: path: path audience: audience - expirationSeconds: 5 - defaultMode: 6 + expirationSeconds: 6 + clusterTrustBundle: + path: path + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + name: name + optional: true + signerName: signerName + defaultMode: 5 cephfs: path: path secretRef: @@ -90406,10 +115158,13 @@ components: endpoints: endpoints readOnly: true gcePersistentDisk: - partition: 2 + partition: 6 readOnly: true pdName: pdName fsType: fsType + image: + reference: reference + pullPolicy: pullPolicy photonPersistentDisk: pdID: pdID fsType: fsType @@ -90427,9 +115182,9 @@ components: readOnly: true fsType: fsType downwardAPI: - defaultMode: 3 + defaultMode: 6 items: - - mode: 6 + - mode: 1 path: path resourceFieldRef: divisor: divisor @@ -90438,7 +115193,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 6 + - mode: 1 path: path resourceFieldRef: divisor: divisor @@ -90448,7 +115203,7 @@ components: apiVersion: apiVersion fieldPath: fieldPath awsElasticBlockStore: - partition: 8 + partition: 9 volumeID: volumeID readOnly: true fsType: fsType @@ -90483,14 +115238,14 @@ components: - monitors - monitors configMap: - defaultMode: 9 + defaultMode: 6 name: name optional: true items: - - mode: 6 + - mode: 3 path: path key: key - - mode: 6 + - mode: 3 path: path key: key storageos: @@ -90530,7 +115285,7 @@ components: volumePath: volumePath fsType: fsType fc: - lun: 1 + lun: 2 targetWWNs: - targetWWNs - targetWWNs @@ -90542,6 +115297,14 @@ components: hostPath: path: path type: type + resources: + claims: + - request: request + name: name + - request: request + name: name + requests: {} + limits: {} ephemeralContainers: - volumeDevices: - devicePath: devicePath @@ -90565,6 +115328,9 @@ components: level: level type: type user: user + appArmorProfile: + localhostProfile: localhostProfile + type: type seccompProfile: localhostProfile: localhostProfile type: type @@ -90579,21 +115345,21 @@ components: runAsNonRoot: true readOnlyRootFilesystem: true startupProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -90609,28 +115375,32 @@ components: - protocol: protocol hostIP: hostIP name: name - containerPort: 4 - hostPort: 7 + containerPort: 7 + hostPort: 1 - protocol: protocol hostIP: hostIP name: name - containerPort: 4 - hostPort: 7 + containerPort: 7 + hostPort: 1 volumeMounts: - mountPath: mountPath mountPropagation: mountPropagation name: name readOnly: true subPath: subPath + recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - mountPath: mountPath mountPropagation: mountPropagation name: name readOnly: true subPath: subPath + recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr lifecycle: postStart: + sleep: + seconds: 5 tcpSocket: port: port host: host @@ -90649,6 +115419,8 @@ components: - name: name value: value preStop: + sleep: + seconds: 5 tcpSocket: port: port host: host @@ -90666,22 +115438,23 @@ components: value: value - name: name value: value + stopSignal: stopSignal readinessProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -90716,21 +115489,21 @@ components: image: image imagePullPolicy: imagePullPolicy livenessProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -90747,8 +115520,10 @@ components: workingDir: workingDir resources: claims: - - name: name - - name: name + - request: request + name: name + - request: request + name: name requests: {} limits: {} env: @@ -90820,6 +115595,9 @@ components: level: level type: type user: user + appArmorProfile: + localhostProfile: localhostProfile + type: type seccompProfile: localhostProfile: localhostProfile type: type @@ -90834,21 +115612,21 @@ components: runAsNonRoot: true readOnlyRootFilesystem: true startupProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -90864,28 +115642,32 @@ components: - protocol: protocol hostIP: hostIP name: name - containerPort: 4 - hostPort: 7 + containerPort: 7 + hostPort: 1 - protocol: protocol hostIP: hostIP name: name - containerPort: 4 - hostPort: 7 + containerPort: 7 + hostPort: 1 volumeMounts: - mountPath: mountPath mountPropagation: mountPropagation name: name readOnly: true subPath: subPath + recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - mountPath: mountPath mountPropagation: mountPropagation name: name readOnly: true subPath: subPath + recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr lifecycle: postStart: + sleep: + seconds: 5 tcpSocket: port: port host: host @@ -90904,6 +115686,8 @@ components: - name: name value: value preStop: + sleep: + seconds: 5 tcpSocket: port: port host: host @@ -90921,22 +115705,23 @@ components: value: value - name: name value: value + stopSignal: stopSignal readinessProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -90971,21 +115756,21 @@ components: image: image imagePullPolicy: imagePullPolicy livenessProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -91002,8 +115787,10 @@ components: workingDir: workingDir resources: claims: - - name: name - - name: name + - request: request + name: name + - request: request + name: name requests: {} limits: {} env: @@ -91054,19 +115841,17 @@ components: tty: true stdinOnce: true serviceAccount: serviceAccount - priority: 1 + priority: 6 restartPolicy: restartPolicy shareProcessNamespace: true hostUsers: true resourceClaims: - - name: name - source: - resourceClaimName: resourceClaimName - resourceClaimTemplateName: resourceClaimTemplateName - - name: name - source: - resourceClaimName: resourceClaimName - resourceClaimTemplateName: resourceClaimTemplateName + - resourceClaimName: resourceClaimName + name: name + resourceClaimTemplateName: resourceClaimTemplateName + - resourceClaimName: resourceClaimName + name: name + resourceClaimTemplateName: resourceClaimTemplateName subdomain: subdomain containers: - volumeDevices: @@ -91077,21 +115862,21 @@ components: image: image imagePullPolicy: imagePullPolicy livenessProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -91109,8 +115894,10 @@ components: workingDir: workingDir resources: claims: - - name: name - - name: name + - request: request + name: name + - request: request + name: name requests: {} limits: {} securityContext: @@ -91128,6 +115915,9 @@ components: level: level type: type user: user + appArmorProfile: + localhostProfile: localhostProfile + type: type seccompProfile: localhostProfile: localhostProfile type: type @@ -91142,21 +115932,21 @@ components: runAsNonRoot: true readOnlyRootFilesystem: true startupProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -91209,13 +115999,13 @@ components: - protocol: protocol hostIP: hostIP name: name - containerPort: 4 - hostPort: 7 + containerPort: 7 + hostPort: 1 - protocol: protocol hostIP: hostIP name: name - containerPort: 4 - hostPort: 7 + containerPort: 7 + hostPort: 1 restartPolicy: restartPolicy command: - command @@ -91226,18 +116016,22 @@ components: name: name readOnly: true subPath: subPath + recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - mountPath: mountPath mountPropagation: mountPropagation name: name readOnly: true subPath: subPath + recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr args: - args - args lifecycle: postStart: + sleep: + seconds: 5 tcpSocket: port: port host: host @@ -91256,6 +116050,8 @@ components: - name: name value: value preStop: + sleep: + seconds: 5 tcpSocket: port: port host: host @@ -91273,24 +116069,25 @@ components: value: value - name: name value: value + stopSignal: stopSignal name: name tty: true readinessProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -91331,21 +116128,21 @@ components: image: image imagePullPolicy: imagePullPolicy livenessProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -91363,8 +116160,10 @@ components: workingDir: workingDir resources: claims: - - name: name - - name: name + - request: request + name: name + - request: request + name: name requests: {} limits: {} securityContext: @@ -91382,6 +116181,9 @@ components: level: level type: type user: user + appArmorProfile: + localhostProfile: localhostProfile + type: type seccompProfile: localhostProfile: localhostProfile type: type @@ -91396,21 +116198,21 @@ components: runAsNonRoot: true readOnlyRootFilesystem: true startupProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -91463,13 +116265,13 @@ components: - protocol: protocol hostIP: hostIP name: name - containerPort: 4 - hostPort: 7 + containerPort: 7 + hostPort: 1 - protocol: protocol hostIP: hostIP name: name - containerPort: 4 - hostPort: 7 + containerPort: 7 + hostPort: 1 restartPolicy: restartPolicy command: - command @@ -91480,18 +116282,22 @@ components: name: name readOnly: true subPath: subPath + recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - mountPath: mountPath mountPropagation: mountPropagation name: name readOnly: true subPath: subPath + recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr args: - args - args lifecycle: postStart: + sleep: + seconds: 5 tcpSocket: port: port host: host @@ -91510,6 +116316,8 @@ components: - name: name value: value preStop: + sleep: + seconds: 5 tcpSocket: port: port host: host @@ -91527,24 +116335,25 @@ components: value: value - name: name value: value + stopSignal: stopSignal name: name tty: true readinessProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -91586,21 +116395,21 @@ components: image: image imagePullPolicy: imagePullPolicy livenessProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -91618,8 +116427,10 @@ components: workingDir: workingDir resources: claims: - - name: name - - name: name + - request: request + name: name + - request: request + name: name requests: {} limits: {} securityContext: @@ -91637,6 +116448,9 @@ components: level: level type: type user: user + appArmorProfile: + localhostProfile: localhostProfile + type: type seccompProfile: localhostProfile: localhostProfile type: type @@ -91651,21 +116465,21 @@ components: runAsNonRoot: true readOnlyRootFilesystem: true startupProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -91718,13 +116532,13 @@ components: - protocol: protocol hostIP: hostIP name: name - containerPort: 4 - hostPort: 7 + containerPort: 7 + hostPort: 1 - protocol: protocol hostIP: hostIP name: name - containerPort: 4 - hostPort: 7 + containerPort: 7 + hostPort: 1 restartPolicy: restartPolicy command: - command @@ -91735,18 +116549,22 @@ components: name: name readOnly: true subPath: subPath + recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - mountPath: mountPath mountPropagation: mountPropagation name: name readOnly: true subPath: subPath + recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr args: - args - args lifecycle: postStart: + sleep: + seconds: 5 tcpSocket: port: port host: host @@ -91765,6 +116583,8 @@ components: - name: name value: value preStop: + sleep: + seconds: 5 tcpSocket: port: port host: host @@ -91782,24 +116602,25 @@ components: value: value - name: name value: value + stopSignal: stopSignal name: name tty: true readinessProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -91840,21 +116661,21 @@ components: image: image imagePullPolicy: imagePullPolicy livenessProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -91872,8 +116693,10 @@ components: workingDir: workingDir resources: claims: - - name: name - - name: name + - request: request + name: name + - request: request + name: name requests: {} limits: {} securityContext: @@ -91891,6 +116714,9 @@ components: level: level type: type user: user + appArmorProfile: + localhostProfile: localhostProfile + type: type seccompProfile: localhostProfile: localhostProfile type: type @@ -91905,21 +116731,21 @@ components: runAsNonRoot: true readOnlyRootFilesystem: true startupProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -91972,13 +116798,13 @@ components: - protocol: protocol hostIP: hostIP name: name - containerPort: 4 - hostPort: 7 + containerPort: 7 + hostPort: 1 - protocol: protocol hostIP: hostIP name: name - containerPort: 4 - hostPort: 7 + containerPort: 7 + hostPort: 1 restartPolicy: restartPolicy command: - command @@ -91989,18 +116815,22 @@ components: name: name readOnly: true subPath: subPath + recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - mountPath: mountPath mountPropagation: mountPropagation name: name readOnly: true subPath: subPath + recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr args: - args - args lifecycle: postStart: + sleep: + seconds: 5 tcpSocket: port: port host: host @@ -92019,6 +116849,8 @@ components: - name: name value: value preStop: + sleep: + seconds: 5 tcpSocket: port: port host: host @@ -92036,24 +116868,25 @@ components: value: value - name: name value: value + stopSignal: stopSignal name: name tty: true readinessProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -92214,6 +117047,12 @@ components: matchLabels: key: matchLabels topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + mismatchLabelKeys: + - mismatchLabelKeys + - mismatchLabelKeys namespaces: - namespaces - namespaces @@ -92246,6 +117085,12 @@ components: matchLabels: key: matchLabels topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + mismatchLabelKeys: + - mismatchLabelKeys + - mismatchLabelKeys namespaces: - namespaces - namespaces @@ -92280,6 +117125,12 @@ components: matchLabels: key: matchLabels topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + mismatchLabelKeys: + - mismatchLabelKeys + - mismatchLabelKeys namespaces: - namespaces - namespaces @@ -92314,6 +117165,12 @@ components: matchLabels: key: matchLabels topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + mismatchLabelKeys: + - mismatchLabelKeys + - mismatchLabelKeys namespaces: - namespaces - namespaces @@ -92349,6 +117206,12 @@ components: matchLabels: key: matchLabels topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + mismatchLabelKeys: + - mismatchLabelKeys + - mismatchLabelKeys namespaces: - namespaces - namespaces @@ -92381,6 +117244,12 @@ components: matchLabels: key: matchLabels topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + mismatchLabelKeys: + - mismatchLabelKeys + - mismatchLabelKeys namespaces: - namespaces - namespaces @@ -92415,6 +117284,12 @@ components: matchLabels: key: matchLabels topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + mismatchLabelKeys: + - mismatchLabelKeys + - mismatchLabelKeys namespaces: - namespaces - namespaces @@ -92449,6 +117324,12 @@ components: matchLabels: key: matchLabels topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + mismatchLabelKeys: + - mismatchLabelKeys + - mismatchLabelKeys namespaces: - namespaces - namespaces @@ -92479,8 +117360,9 @@ components: maxUnavailable: maxUnavailable progressDeadlineSeconds: 6 status: - unavailableReplicas: 2 + unavailableReplicas: 4 replicas: 3 + terminatingReplicas: 2 readyReplicas: 9 collisionCount: 2 conditions: @@ -92496,7 +117378,7 @@ components: type: type lastUpdateTime: 2000-01-23T04:56:07.000+00:00 status: status - updatedReplicas: 4 + updatedReplicas: 7 availableReplicas: 5 observedGeneration: 7 properties: @@ -92580,7 +117462,7 @@ components: spec: dnsPolicy: dnsPolicy nodeName: nodeName - terminationGracePeriodSeconds: 5 + terminationGracePeriodSeconds: 9 dnsConfig: searches: - searches @@ -92612,32 +117494,37 @@ components: - hostnames - hostnames securityContext: - runAsUser: 1 seLinuxOptions: role: role level: level type: type user: user - fsGroup: 6 - seccompProfile: + appArmorProfile: localhostProfile: localhostProfile type: type - windowsOptions: - gmsaCredentialSpec: gmsaCredentialSpec - runAsUserName: runAsUserName - hostProcess: true - gmsaCredentialSpecName: gmsaCredentialSpecName + fsGroup: 7 fsGroupChangePolicy: fsGroupChangePolicy - supplementalGroups: - - 4 - - 4 - runAsGroup: 7 + seLinuxChangePolicy: seLinuxChangePolicy + runAsGroup: 1 runAsNonRoot: true sysctls: - name: name value: value - name: name value: value + runAsUser: 4 + seccompProfile: + localhostProfile: localhostProfile + type: type + windowsOptions: + gmsaCredentialSpec: gmsaCredentialSpec + runAsUserName: runAsUserName + hostProcess: true + gmsaCredentialSpecName: gmsaCredentialSpecName + supplementalGroups: + - 5 + - 5 + supplementalGroupsPolicy: supplementalGroupsPolicy preemptionPolicy: preemptionPolicy nodeSelector: key: nodeSelector @@ -92669,7 +117556,7 @@ components: topologySpreadConstraints: - nodeTaintsPolicy: nodeTaintsPolicy whenUnsatisfiable: whenUnsatisfiable - maxSkew: 9 + maxSkew: 6 nodeAffinityPolicy: nodeAffinityPolicy labelSelector: matchExpressions: @@ -92685,14 +117572,14 @@ components: operator: operator matchLabels: key: matchLabels - minDomains: 6 + minDomains: 8 topologyKey: topologyKey matchLabelKeys: - matchLabelKeys - matchLabelKeys - nodeTaintsPolicy: nodeTaintsPolicy whenUnsatisfiable: whenUnsatisfiable - maxSkew: 9 + maxSkew: 6 nodeAffinityPolicy: nodeAffinityPolicy labelSelector: matchExpressions: @@ -92708,7 +117595,7 @@ components: operator: operator matchLabels: key: matchLabels - minDomains: 6 + minDomains: 8 topologyKey: topologyKey matchLabelKeys: - matchLabelKeys @@ -92789,10 +117676,8 @@ components: name: name namespace: namespace volumeName: volumeName + volumeAttributesClassName: volumeAttributesClassName resources: - claims: - - name: name - - name: name requests: {} limits: {} selector: @@ -92819,20 +117704,20 @@ components: volumeMode: volumeMode secret: secretName: secretName - defaultMode: 6 + defaultMode: 3 optional: true items: - - mode: 6 + - mode: 3 path: path key: key - - mode: 6 + - mode: 3 path: path key: key projected: sources: - downwardAPI: items: - - mode: 6 + - mode: 1 path: path resourceFieldRef: divisor: divisor @@ -92841,7 +117726,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 6 + - mode: 1 path: path resourceFieldRef: divisor: divisor @@ -92854,29 +117739,48 @@ components: name: name optional: true items: - - mode: 6 + - mode: 3 path: path key: key - - mode: 6 + - mode: 3 path: path key: key secret: name: name optional: true items: - - mode: 6 + - mode: 3 path: path key: key - - mode: 6 + - mode: 3 path: path key: key serviceAccountToken: path: path audience: audience - expirationSeconds: 5 + expirationSeconds: 6 + clusterTrustBundle: + path: path + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + name: name + optional: true + signerName: signerName - downwardAPI: items: - - mode: 6 + - mode: 1 path: path resourceFieldRef: divisor: divisor @@ -92885,7 +117789,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 6 + - mode: 1 path: path resourceFieldRef: divisor: divisor @@ -92898,27 +117802,46 @@ components: name: name optional: true items: - - mode: 6 + - mode: 3 path: path key: key - - mode: 6 + - mode: 3 path: path key: key secret: name: name optional: true items: - - mode: 6 + - mode: 3 path: path key: key - - mode: 6 + - mode: 3 path: path key: key serviceAccountToken: path: path audience: audience - expirationSeconds: 5 - defaultMode: 6 + expirationSeconds: 6 + clusterTrustBundle: + path: path + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + name: name + optional: true + signerName: signerName + defaultMode: 5 cephfs: path: path secretRef: @@ -92949,10 +117872,13 @@ components: endpoints: endpoints readOnly: true gcePersistentDisk: - partition: 2 + partition: 6 readOnly: true pdName: pdName fsType: fsType + image: + reference: reference + pullPolicy: pullPolicy photonPersistentDisk: pdID: pdID fsType: fsType @@ -92970,9 +117896,9 @@ components: readOnly: true fsType: fsType downwardAPI: - defaultMode: 3 + defaultMode: 6 items: - - mode: 6 + - mode: 1 path: path resourceFieldRef: divisor: divisor @@ -92981,7 +117907,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 6 + - mode: 1 path: path resourceFieldRef: divisor: divisor @@ -92991,7 +117917,7 @@ components: apiVersion: apiVersion fieldPath: fieldPath awsElasticBlockStore: - partition: 8 + partition: 9 volumeID: volumeID readOnly: true fsType: fsType @@ -93026,14 +117952,14 @@ components: - monitors - monitors configMap: - defaultMode: 9 + defaultMode: 6 name: name optional: true items: - - mode: 6 + - mode: 3 path: path key: key - - mode: 6 + - mode: 3 path: path key: key storageos: @@ -93073,7 +117999,7 @@ components: volumePath: volumePath fsType: fsType fc: - lun: 1 + lun: 2 targetWWNs: - targetWWNs - targetWWNs @@ -93160,10 +118086,8 @@ components: name: name namespace: namespace volumeName: volumeName + volumeAttributesClassName: volumeAttributesClassName resources: - claims: - - name: name - - name: name requests: {} limits: {} selector: @@ -93190,20 +118114,20 @@ components: volumeMode: volumeMode secret: secretName: secretName - defaultMode: 6 + defaultMode: 3 optional: true items: - - mode: 6 + - mode: 3 path: path key: key - - mode: 6 + - mode: 3 path: path key: key projected: sources: - downwardAPI: items: - - mode: 6 + - mode: 1 path: path resourceFieldRef: divisor: divisor @@ -93212,7 +118136,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 6 + - mode: 1 path: path resourceFieldRef: divisor: divisor @@ -93225,29 +118149,48 @@ components: name: name optional: true items: - - mode: 6 + - mode: 3 path: path key: key - - mode: 6 + - mode: 3 path: path key: key secret: name: name optional: true items: - - mode: 6 + - mode: 3 path: path key: key - - mode: 6 + - mode: 3 path: path key: key serviceAccountToken: path: path audience: audience - expirationSeconds: 5 + expirationSeconds: 6 + clusterTrustBundle: + path: path + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + name: name + optional: true + signerName: signerName - downwardAPI: items: - - mode: 6 + - mode: 1 path: path resourceFieldRef: divisor: divisor @@ -93256,7 +118199,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 6 + - mode: 1 path: path resourceFieldRef: divisor: divisor @@ -93269,27 +118212,46 @@ components: name: name optional: true items: - - mode: 6 + - mode: 3 path: path key: key - - mode: 6 + - mode: 3 path: path key: key secret: name: name optional: true items: - - mode: 6 + - mode: 3 path: path key: key - - mode: 6 + - mode: 3 path: path key: key serviceAccountToken: path: path audience: audience - expirationSeconds: 5 - defaultMode: 6 + expirationSeconds: 6 + clusterTrustBundle: + path: path + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + name: name + optional: true + signerName: signerName + defaultMode: 5 cephfs: path: path secretRef: @@ -93320,10 +118282,13 @@ components: endpoints: endpoints readOnly: true gcePersistentDisk: - partition: 2 + partition: 6 readOnly: true pdName: pdName fsType: fsType + image: + reference: reference + pullPolicy: pullPolicy photonPersistentDisk: pdID: pdID fsType: fsType @@ -93341,9 +118306,9 @@ components: readOnly: true fsType: fsType downwardAPI: - defaultMode: 3 + defaultMode: 6 items: - - mode: 6 + - mode: 1 path: path resourceFieldRef: divisor: divisor @@ -93352,7 +118317,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 6 + - mode: 1 path: path resourceFieldRef: divisor: divisor @@ -93362,7 +118327,7 @@ components: apiVersion: apiVersion fieldPath: fieldPath awsElasticBlockStore: - partition: 8 + partition: 9 volumeID: volumeID readOnly: true fsType: fsType @@ -93397,14 +118362,14 @@ components: - monitors - monitors configMap: - defaultMode: 9 + defaultMode: 6 name: name optional: true items: - - mode: 6 + - mode: 3 path: path key: key - - mode: 6 + - mode: 3 path: path key: key storageos: @@ -93444,7 +118409,7 @@ components: volumePath: volumePath fsType: fsType fc: - lun: 1 + lun: 2 targetWWNs: - targetWWNs - targetWWNs @@ -93456,6 +118421,14 @@ components: hostPath: path: path type: type + resources: + claims: + - request: request + name: name + - request: request + name: name + requests: {} + limits: {} ephemeralContainers: - volumeDevices: - devicePath: devicePath @@ -93479,6 +118452,9 @@ components: level: level type: type user: user + appArmorProfile: + localhostProfile: localhostProfile + type: type seccompProfile: localhostProfile: localhostProfile type: type @@ -93493,21 +118469,21 @@ components: runAsNonRoot: true readOnlyRootFilesystem: true startupProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -93523,28 +118499,32 @@ components: - protocol: protocol hostIP: hostIP name: name - containerPort: 4 - hostPort: 7 + containerPort: 7 + hostPort: 1 - protocol: protocol hostIP: hostIP name: name - containerPort: 4 - hostPort: 7 + containerPort: 7 + hostPort: 1 volumeMounts: - mountPath: mountPath mountPropagation: mountPropagation name: name readOnly: true subPath: subPath + recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - mountPath: mountPath mountPropagation: mountPropagation name: name readOnly: true subPath: subPath + recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr lifecycle: postStart: + sleep: + seconds: 5 tcpSocket: port: port host: host @@ -93563,6 +118543,8 @@ components: - name: name value: value preStop: + sleep: + seconds: 5 tcpSocket: port: port host: host @@ -93580,22 +118562,23 @@ components: value: value - name: name value: value + stopSignal: stopSignal readinessProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -93630,21 +118613,21 @@ components: image: image imagePullPolicy: imagePullPolicy livenessProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -93661,8 +118644,10 @@ components: workingDir: workingDir resources: claims: - - name: name - - name: name + - request: request + name: name + - request: request + name: name requests: {} limits: {} env: @@ -93734,6 +118719,9 @@ components: level: level type: type user: user + appArmorProfile: + localhostProfile: localhostProfile + type: type seccompProfile: localhostProfile: localhostProfile type: type @@ -93748,21 +118736,21 @@ components: runAsNonRoot: true readOnlyRootFilesystem: true startupProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -93778,28 +118766,32 @@ components: - protocol: protocol hostIP: hostIP name: name - containerPort: 4 - hostPort: 7 + containerPort: 7 + hostPort: 1 - protocol: protocol hostIP: hostIP name: name - containerPort: 4 - hostPort: 7 + containerPort: 7 + hostPort: 1 volumeMounts: - mountPath: mountPath mountPropagation: mountPropagation name: name readOnly: true subPath: subPath + recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - mountPath: mountPath mountPropagation: mountPropagation name: name readOnly: true subPath: subPath + recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr lifecycle: postStart: + sleep: + seconds: 5 tcpSocket: port: port host: host @@ -93818,6 +118810,8 @@ components: - name: name value: value preStop: + sleep: + seconds: 5 tcpSocket: port: port host: host @@ -93835,22 +118829,23 @@ components: value: value - name: name value: value + stopSignal: stopSignal readinessProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -93885,21 +118880,21 @@ components: image: image imagePullPolicy: imagePullPolicy livenessProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -93916,8 +118911,10 @@ components: workingDir: workingDir resources: claims: - - name: name - - name: name + - request: request + name: name + - request: request + name: name requests: {} limits: {} env: @@ -93968,19 +118965,17 @@ components: tty: true stdinOnce: true serviceAccount: serviceAccount - priority: 1 + priority: 6 restartPolicy: restartPolicy shareProcessNamespace: true hostUsers: true resourceClaims: - - name: name - source: - resourceClaimName: resourceClaimName - resourceClaimTemplateName: resourceClaimTemplateName - - name: name - source: - resourceClaimName: resourceClaimName - resourceClaimTemplateName: resourceClaimTemplateName + - resourceClaimName: resourceClaimName + name: name + resourceClaimTemplateName: resourceClaimTemplateName + - resourceClaimName: resourceClaimName + name: name + resourceClaimTemplateName: resourceClaimTemplateName subdomain: subdomain containers: - volumeDevices: @@ -93991,21 +118986,21 @@ components: image: image imagePullPolicy: imagePullPolicy livenessProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -94023,8 +119018,10 @@ components: workingDir: workingDir resources: claims: - - name: name - - name: name + - request: request + name: name + - request: request + name: name requests: {} limits: {} securityContext: @@ -94042,6 +119039,9 @@ components: level: level type: type user: user + appArmorProfile: + localhostProfile: localhostProfile + type: type seccompProfile: localhostProfile: localhostProfile type: type @@ -94056,21 +119056,21 @@ components: runAsNonRoot: true readOnlyRootFilesystem: true startupProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -94123,13 +119123,13 @@ components: - protocol: protocol hostIP: hostIP name: name - containerPort: 4 - hostPort: 7 + containerPort: 7 + hostPort: 1 - protocol: protocol hostIP: hostIP name: name - containerPort: 4 - hostPort: 7 + containerPort: 7 + hostPort: 1 restartPolicy: restartPolicy command: - command @@ -94140,18 +119140,22 @@ components: name: name readOnly: true subPath: subPath + recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - mountPath: mountPath mountPropagation: mountPropagation name: name readOnly: true subPath: subPath + recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr args: - args - args lifecycle: postStart: + sleep: + seconds: 5 tcpSocket: port: port host: host @@ -94170,6 +119174,8 @@ components: - name: name value: value preStop: + sleep: + seconds: 5 tcpSocket: port: port host: host @@ -94187,24 +119193,25 @@ components: value: value - name: name value: value + stopSignal: stopSignal name: name tty: true readinessProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -94245,21 +119252,21 @@ components: image: image imagePullPolicy: imagePullPolicy livenessProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -94277,8 +119284,10 @@ components: workingDir: workingDir resources: claims: - - name: name - - name: name + - request: request + name: name + - request: request + name: name requests: {} limits: {} securityContext: @@ -94296,6 +119305,9 @@ components: level: level type: type user: user + appArmorProfile: + localhostProfile: localhostProfile + type: type seccompProfile: localhostProfile: localhostProfile type: type @@ -94310,21 +119322,21 @@ components: runAsNonRoot: true readOnlyRootFilesystem: true startupProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -94377,13 +119389,13 @@ components: - protocol: protocol hostIP: hostIP name: name - containerPort: 4 - hostPort: 7 + containerPort: 7 + hostPort: 1 - protocol: protocol hostIP: hostIP name: name - containerPort: 4 - hostPort: 7 + containerPort: 7 + hostPort: 1 restartPolicy: restartPolicy command: - command @@ -94394,18 +119406,22 @@ components: name: name readOnly: true subPath: subPath + recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - mountPath: mountPath mountPropagation: mountPropagation name: name readOnly: true subPath: subPath + recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr args: - args - args lifecycle: postStart: + sleep: + seconds: 5 tcpSocket: port: port host: host @@ -94424,6 +119440,8 @@ components: - name: name value: value preStop: + sleep: + seconds: 5 tcpSocket: port: port host: host @@ -94441,24 +119459,25 @@ components: value: value - name: name value: value + stopSignal: stopSignal name: name tty: true readinessProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -94500,21 +119519,21 @@ components: image: image imagePullPolicy: imagePullPolicy livenessProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -94532,8 +119551,10 @@ components: workingDir: workingDir resources: claims: - - name: name - - name: name + - request: request + name: name + - request: request + name: name requests: {} limits: {} securityContext: @@ -94551,6 +119572,9 @@ components: level: level type: type user: user + appArmorProfile: + localhostProfile: localhostProfile + type: type seccompProfile: localhostProfile: localhostProfile type: type @@ -94565,21 +119589,21 @@ components: runAsNonRoot: true readOnlyRootFilesystem: true startupProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -94632,13 +119656,13 @@ components: - protocol: protocol hostIP: hostIP name: name - containerPort: 4 - hostPort: 7 + containerPort: 7 + hostPort: 1 - protocol: protocol hostIP: hostIP name: name - containerPort: 4 - hostPort: 7 + containerPort: 7 + hostPort: 1 restartPolicy: restartPolicy command: - command @@ -94649,18 +119673,22 @@ components: name: name readOnly: true subPath: subPath + recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - mountPath: mountPath mountPropagation: mountPropagation name: name readOnly: true subPath: subPath + recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr args: - args - args lifecycle: postStart: + sleep: + seconds: 5 tcpSocket: port: port host: host @@ -94679,6 +119707,8 @@ components: - name: name value: value preStop: + sleep: + seconds: 5 tcpSocket: port: port host: host @@ -94696,24 +119726,25 @@ components: value: value - name: name value: value + stopSignal: stopSignal name: name tty: true readinessProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -94754,21 +119785,21 @@ components: image: image imagePullPolicy: imagePullPolicy livenessProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -94786,8 +119817,10 @@ components: workingDir: workingDir resources: claims: - - name: name - - name: name + - request: request + name: name + - request: request + name: name requests: {} limits: {} securityContext: @@ -94805,6 +119838,9 @@ components: level: level type: type user: user + appArmorProfile: + localhostProfile: localhostProfile + type: type seccompProfile: localhostProfile: localhostProfile type: type @@ -94819,21 +119855,21 @@ components: runAsNonRoot: true readOnlyRootFilesystem: true startupProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -94886,13 +119922,13 @@ components: - protocol: protocol hostIP: hostIP name: name - containerPort: 4 - hostPort: 7 + containerPort: 7 + hostPort: 1 - protocol: protocol hostIP: hostIP name: name - containerPort: 4 - hostPort: 7 + containerPort: 7 + hostPort: 1 restartPolicy: restartPolicy command: - command @@ -94903,18 +119939,22 @@ components: name: name readOnly: true subPath: subPath + recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - mountPath: mountPath mountPropagation: mountPropagation name: name readOnly: true subPath: subPath + recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr args: - args - args lifecycle: postStart: + sleep: + seconds: 5 tcpSocket: port: port host: host @@ -94933,6 +119973,8 @@ components: - name: name value: value preStop: + sleep: + seconds: 5 tcpSocket: port: port host: host @@ -94950,24 +119992,25 @@ components: value: value - name: name value: value + stopSignal: stopSignal name: name tty: true readinessProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -95128,6 +120171,12 @@ components: matchLabels: key: matchLabels topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + mismatchLabelKeys: + - mismatchLabelKeys + - mismatchLabelKeys namespaces: - namespaces - namespaces @@ -95160,6 +120209,12 @@ components: matchLabels: key: matchLabels topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + mismatchLabelKeys: + - mismatchLabelKeys + - mismatchLabelKeys namespaces: - namespaces - namespaces @@ -95194,6 +120249,12 @@ components: matchLabels: key: matchLabels topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + mismatchLabelKeys: + - mismatchLabelKeys + - mismatchLabelKeys namespaces: - namespaces - namespaces @@ -95228,6 +120289,12 @@ components: matchLabels: key: matchLabels topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + mismatchLabelKeys: + - mismatchLabelKeys + - mismatchLabelKeys namespaces: - namespaces - namespaces @@ -95263,6 +120330,12 @@ components: matchLabels: key: matchLabels topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + mismatchLabelKeys: + - mismatchLabelKeys + - mismatchLabelKeys namespaces: - namespaces - namespaces @@ -95295,6 +120368,12 @@ components: matchLabels: key: matchLabels topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + mismatchLabelKeys: + - mismatchLabelKeys + - mismatchLabelKeys namespaces: - namespaces - namespaces @@ -95329,6 +120408,12 @@ components: matchLabels: key: matchLabels topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + mismatchLabelKeys: + - mismatchLabelKeys + - mismatchLabelKeys namespaces: - namespaces - namespaces @@ -95363,6 +120448,12 @@ components: matchLabels: key: matchLabels topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + mismatchLabelKeys: + - mismatchLabelKeys + - mismatchLabelKeys namespaces: - namespaces - namespaces @@ -95435,8 +120526,9 @@ components: v1.DeploymentStatus: description: DeploymentStatus is the most recently observed status of the Deployment. example: - unavailableReplicas: 2 + unavailableReplicas: 4 replicas: 3 + terminatingReplicas: 2 readyReplicas: 9 collisionCount: 2 conditions: @@ -95452,13 +120544,13 @@ components: type: type lastUpdateTime: 2000-01-23T04:56:07.000+00:00 status: status - updatedReplicas: 4 + updatedReplicas: 7 availableReplicas: 5 observedGeneration: 7 properties: availableReplicas: - description: Total number of available pods (ready for at least minReadySeconds) - targeted by this deployment. + description: Total number of available non-terminating pods (ready for at + least minReadySeconds) targeted by this deployment. format: int32 type: integer collisionCount: @@ -95474,21 +120566,31 @@ components: $ref: '#/components/schemas/v1.DeploymentCondition' type: array x-kubernetes-patch-strategy: merge + x-kubernetes-list-type: map + x-kubernetes-list-map-keys: + - type x-kubernetes-patch-merge-key: type observedGeneration: description: The generation observed by the deployment controller. format: int64 type: integer readyReplicas: - description: readyReplicas is the number of pods targeted by this Deployment + description: Total number of non-terminating pods targeted by this Deployment with a Ready Condition. format: int32 type: integer replicas: - description: Total number of non-terminated pods targeted by this deployment + description: Total number of non-terminating pods targeted by this deployment (their labels match the selector). format: int32 type: integer + terminatingReplicas: + description: |- + Total number of terminating pods targeted by this deployment. Terminating pods have a non-null .metadata.deletionTimestamp and have not yet reached the Failed or Succeeded .status.phase. + + This is an alpha field. Enable DeploymentReplicaSetTerminatingReplicas to be able to use this field. + format: int32 + type: integer unavailableReplicas: description: Total number of unavailable pods targeted by this deployment. This is the total number of pods that are still required for the deployment @@ -95497,7 +120599,7 @@ components: format: int32 type: integer updatedReplicas: - description: Total number of non-terminated pods targeted by this deployment + description: Total number of non-terminating pods targeted by this deployment that have the desired template spec. format: int32 type: integer @@ -95621,7 +120723,7 @@ components: spec: dnsPolicy: dnsPolicy nodeName: nodeName - terminationGracePeriodSeconds: 5 + terminationGracePeriodSeconds: 9 dnsConfig: searches: - searches @@ -95653,32 +120755,37 @@ components: - hostnames - hostnames securityContext: - runAsUser: 1 seLinuxOptions: role: role level: level type: type user: user - fsGroup: 6 - seccompProfile: + appArmorProfile: localhostProfile: localhostProfile type: type - windowsOptions: - gmsaCredentialSpec: gmsaCredentialSpec - runAsUserName: runAsUserName - hostProcess: true - gmsaCredentialSpecName: gmsaCredentialSpecName + fsGroup: 7 fsGroupChangePolicy: fsGroupChangePolicy - supplementalGroups: - - 4 - - 4 - runAsGroup: 7 + seLinuxChangePolicy: seLinuxChangePolicy + runAsGroup: 1 runAsNonRoot: true sysctls: - name: name value: value - name: name value: value + runAsUser: 4 + seccompProfile: + localhostProfile: localhostProfile + type: type + windowsOptions: + gmsaCredentialSpec: gmsaCredentialSpec + runAsUserName: runAsUserName + hostProcess: true + gmsaCredentialSpecName: gmsaCredentialSpecName + supplementalGroups: + - 5 + - 5 + supplementalGroupsPolicy: supplementalGroupsPolicy preemptionPolicy: preemptionPolicy nodeSelector: key: nodeSelector @@ -95710,7 +120817,7 @@ components: topologySpreadConstraints: - nodeTaintsPolicy: nodeTaintsPolicy whenUnsatisfiable: whenUnsatisfiable - maxSkew: 9 + maxSkew: 6 nodeAffinityPolicy: nodeAffinityPolicy labelSelector: matchExpressions: @@ -95726,14 +120833,14 @@ components: operator: operator matchLabels: key: matchLabels - minDomains: 6 + minDomains: 8 topologyKey: topologyKey matchLabelKeys: - matchLabelKeys - matchLabelKeys - nodeTaintsPolicy: nodeTaintsPolicy whenUnsatisfiable: whenUnsatisfiable - maxSkew: 9 + maxSkew: 6 nodeAffinityPolicy: nodeAffinityPolicy labelSelector: matchExpressions: @@ -95749,7 +120856,7 @@ components: operator: operator matchLabels: key: matchLabels - minDomains: 6 + minDomains: 8 topologyKey: topologyKey matchLabelKeys: - matchLabelKeys @@ -95830,10 +120937,8 @@ components: name: name namespace: namespace volumeName: volumeName + volumeAttributesClassName: volumeAttributesClassName resources: - claims: - - name: name - - name: name requests: {} limits: {} selector: @@ -95860,20 +120965,20 @@ components: volumeMode: volumeMode secret: secretName: secretName - defaultMode: 6 + defaultMode: 3 optional: true items: - - mode: 6 + - mode: 3 path: path key: key - - mode: 6 + - mode: 3 path: path key: key projected: sources: - downwardAPI: items: - - mode: 6 + - mode: 1 path: path resourceFieldRef: divisor: divisor @@ -95882,7 +120987,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 6 + - mode: 1 path: path resourceFieldRef: divisor: divisor @@ -95895,29 +121000,48 @@ components: name: name optional: true items: - - mode: 6 + - mode: 3 path: path key: key - - mode: 6 + - mode: 3 path: path key: key secret: name: name optional: true items: - - mode: 6 + - mode: 3 path: path key: key - - mode: 6 + - mode: 3 path: path key: key serviceAccountToken: path: path audience: audience - expirationSeconds: 5 + expirationSeconds: 6 + clusterTrustBundle: + path: path + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + name: name + optional: true + signerName: signerName - downwardAPI: items: - - mode: 6 + - mode: 1 path: path resourceFieldRef: divisor: divisor @@ -95926,7 +121050,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 6 + - mode: 1 path: path resourceFieldRef: divisor: divisor @@ -95939,27 +121063,46 @@ components: name: name optional: true items: - - mode: 6 + - mode: 3 path: path key: key - - mode: 6 + - mode: 3 path: path key: key secret: name: name optional: true items: - - mode: 6 + - mode: 3 path: path key: key - - mode: 6 + - mode: 3 path: path key: key serviceAccountToken: path: path audience: audience - expirationSeconds: 5 - defaultMode: 6 + expirationSeconds: 6 + clusterTrustBundle: + path: path + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + name: name + optional: true + signerName: signerName + defaultMode: 5 cephfs: path: path secretRef: @@ -95990,10 +121133,13 @@ components: endpoints: endpoints readOnly: true gcePersistentDisk: - partition: 2 + partition: 6 readOnly: true pdName: pdName fsType: fsType + image: + reference: reference + pullPolicy: pullPolicy photonPersistentDisk: pdID: pdID fsType: fsType @@ -96011,9 +121157,9 @@ components: readOnly: true fsType: fsType downwardAPI: - defaultMode: 3 + defaultMode: 6 items: - - mode: 6 + - mode: 1 path: path resourceFieldRef: divisor: divisor @@ -96022,7 +121168,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 6 + - mode: 1 path: path resourceFieldRef: divisor: divisor @@ -96032,7 +121178,7 @@ components: apiVersion: apiVersion fieldPath: fieldPath awsElasticBlockStore: - partition: 8 + partition: 9 volumeID: volumeID readOnly: true fsType: fsType @@ -96067,14 +121213,14 @@ components: - monitors - monitors configMap: - defaultMode: 9 + defaultMode: 6 name: name optional: true items: - - mode: 6 + - mode: 3 path: path key: key - - mode: 6 + - mode: 3 path: path key: key storageos: @@ -96114,7 +121260,7 @@ components: volumePath: volumePath fsType: fsType fc: - lun: 1 + lun: 2 targetWWNs: - targetWWNs - targetWWNs @@ -96201,10 +121347,8 @@ components: name: name namespace: namespace volumeName: volumeName + volumeAttributesClassName: volumeAttributesClassName resources: - claims: - - name: name - - name: name requests: {} limits: {} selector: @@ -96231,20 +121375,20 @@ components: volumeMode: volumeMode secret: secretName: secretName - defaultMode: 6 + defaultMode: 3 optional: true items: - - mode: 6 + - mode: 3 path: path key: key - - mode: 6 + - mode: 3 path: path key: key projected: sources: - downwardAPI: items: - - mode: 6 + - mode: 1 path: path resourceFieldRef: divisor: divisor @@ -96253,7 +121397,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 6 + - mode: 1 path: path resourceFieldRef: divisor: divisor @@ -96266,29 +121410,48 @@ components: name: name optional: true items: - - mode: 6 + - mode: 3 path: path key: key - - mode: 6 + - mode: 3 path: path key: key secret: name: name optional: true items: - - mode: 6 + - mode: 3 path: path key: key - - mode: 6 + - mode: 3 path: path key: key serviceAccountToken: path: path audience: audience - expirationSeconds: 5 + expirationSeconds: 6 + clusterTrustBundle: + path: path + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + name: name + optional: true + signerName: signerName - downwardAPI: items: - - mode: 6 + - mode: 1 path: path resourceFieldRef: divisor: divisor @@ -96297,7 +121460,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 6 + - mode: 1 path: path resourceFieldRef: divisor: divisor @@ -96310,27 +121473,46 @@ components: name: name optional: true items: - - mode: 6 + - mode: 3 path: path key: key - - mode: 6 + - mode: 3 path: path key: key secret: name: name optional: true items: - - mode: 6 + - mode: 3 path: path key: key - - mode: 6 + - mode: 3 path: path key: key serviceAccountToken: path: path audience: audience - expirationSeconds: 5 - defaultMode: 6 + expirationSeconds: 6 + clusterTrustBundle: + path: path + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + name: name + optional: true + signerName: signerName + defaultMode: 5 cephfs: path: path secretRef: @@ -96361,10 +121543,13 @@ components: endpoints: endpoints readOnly: true gcePersistentDisk: - partition: 2 + partition: 6 readOnly: true pdName: pdName fsType: fsType + image: + reference: reference + pullPolicy: pullPolicy photonPersistentDisk: pdID: pdID fsType: fsType @@ -96382,9 +121567,9 @@ components: readOnly: true fsType: fsType downwardAPI: - defaultMode: 3 + defaultMode: 6 items: - - mode: 6 + - mode: 1 path: path resourceFieldRef: divisor: divisor @@ -96393,7 +121578,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 6 + - mode: 1 path: path resourceFieldRef: divisor: divisor @@ -96403,7 +121588,7 @@ components: apiVersion: apiVersion fieldPath: fieldPath awsElasticBlockStore: - partition: 8 + partition: 9 volumeID: volumeID readOnly: true fsType: fsType @@ -96438,14 +121623,14 @@ components: - monitors - monitors configMap: - defaultMode: 9 + defaultMode: 6 name: name optional: true items: - - mode: 6 + - mode: 3 path: path key: key - - mode: 6 + - mode: 3 path: path key: key storageos: @@ -96485,7 +121670,7 @@ components: volumePath: volumePath fsType: fsType fc: - lun: 1 + lun: 2 targetWWNs: - targetWWNs - targetWWNs @@ -96497,6 +121682,14 @@ components: hostPath: path: path type: type + resources: + claims: + - request: request + name: name + - request: request + name: name + requests: {} + limits: {} ephemeralContainers: - volumeDevices: - devicePath: devicePath @@ -96520,6 +121713,276 @@ components: level: level type: type user: user + appArmorProfile: + localhostProfile: localhostProfile + type: type + seccompProfile: + localhostProfile: localhostProfile + type: type + windowsOptions: + gmsaCredentialSpec: gmsaCredentialSpec + runAsUserName: runAsUserName + hostProcess: true + gmsaCredentialSpecName: gmsaCredentialSpecName + procMount: procMount + allowPrivilegeEscalation: true + runAsGroup: 1 + runAsNonRoot: true + readOnlyRootFilesystem: true + startupProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: port + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + ports: + - protocol: protocol + hostIP: hostIP + name: name + containerPort: 7 + hostPort: 1 + - protocol: protocol + hostIP: hostIP + name: name + containerPort: 7 + hostPort: 1 + volumeMounts: + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + recursiveReadOnly: recursiveReadOnly + subPathExpr: subPathExpr + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + recursiveReadOnly: recursiveReadOnly + subPathExpr: subPathExpr + lifecycle: + postStart: + sleep: + seconds: 5 + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + preStop: + sleep: + seconds: 5 + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + stopSignal: stopSignal + readinessProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: port + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + resizePolicy: + - resourceName: resourceName + restartPolicy: restartPolicy + - resourceName: resourceName + restartPolicy: restartPolicy + envFrom: + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + image: image + imagePullPolicy: imagePullPolicy + livenessProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: port + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + targetContainerName: targetContainerName + terminationMessagePath: terminationMessagePath + workingDir: workingDir + resources: + claims: + - request: request + name: name + - request: request + name: name + requests: {} + limits: {} + env: + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + restartPolicy: restartPolicy + command: + - command + - command + args: + - args + - args + name: name + tty: true + stdinOnce: true + - volumeDevices: + - devicePath: devicePath + name: name + - devicePath: devicePath + name: name + stdin: true + terminationMessagePolicy: terminationMessagePolicy + securityContext: + privileged: true + runAsUser: 1 + capabilities: + add: + - add + - add + drop: + - drop + - drop + seLinuxOptions: + role: role + level: level + type: type + user: user + appArmorProfile: + localhostProfile: localhostProfile + type: type seccompProfile: localhostProfile: localhostProfile type: type @@ -96534,21 +121997,21 @@ components: runAsNonRoot: true readOnlyRootFilesystem: true startupProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -96564,28 +122027,32 @@ components: - protocol: protocol hostIP: hostIP name: name - containerPort: 4 - hostPort: 7 + containerPort: 7 + hostPort: 1 - protocol: protocol hostIP: hostIP name: name - containerPort: 4 - hostPort: 7 + containerPort: 7 + hostPort: 1 volumeMounts: - mountPath: mountPath mountPropagation: mountPropagation name: name readOnly: true subPath: subPath + recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - mountPath: mountPath mountPropagation: mountPropagation name: name readOnly: true subPath: subPath + recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr lifecycle: postStart: + sleep: + seconds: 5 tcpSocket: port: port host: host @@ -96604,6 +122071,8 @@ components: - name: name value: value preStop: + sleep: + seconds: 5 tcpSocket: port: port host: host @@ -96621,22 +122090,23 @@ components: value: value - name: name value: value + stopSignal: stopSignal readinessProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -96671,21 +122141,21 @@ components: image: image imagePullPolicy: imagePullPolicy livenessProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -96702,263 +122172,10 @@ components: workingDir: workingDir resources: claims: - - name: name - - name: name - requests: {} - limits: {} - env: - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - restartPolicy: restartPolicy - command: - - command - - command - args: - - args - - args - name: name - tty: true - stdinOnce: true - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name - stdin: true - terminationMessagePolicy: terminationMessagePolicy - securityContext: - privileged: true - runAsUser: 1 - capabilities: - add: - - add - - add - drop: - - drop - - drop - seLinuxOptions: - role: role - level: level - type: type - user: user - seccompProfile: - localhostProfile: localhostProfile - type: type - windowsOptions: - gmsaCredentialSpec: gmsaCredentialSpec - runAsUserName: runAsUserName - hostProcess: true - gmsaCredentialSpecName: gmsaCredentialSpecName - procMount: procMount - allowPrivilegeEscalation: true - runAsGroup: 1 - runAsNonRoot: true - readOnlyRootFilesystem: true - startupProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - ports: - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 4 - hostPort: 7 - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 4 - hostPort: 7 - volumeMounts: - - mountPath: mountPath - mountPropagation: mountPropagation - name: name - readOnly: true - subPath: subPath - subPathExpr: subPathExpr - - mountPath: mountPath - mountPropagation: mountPropagation - name: name - readOnly: true - subPath: subPath - subPathExpr: subPathExpr - lifecycle: - postStart: - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - preStop: - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - readinessProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - resizePolicy: - - resourceName: resourceName - restartPolicy: restartPolicy - - resourceName: resourceName - restartPolicy: restartPolicy - envFrom: - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: + - request: request name: name - optional: true - - configMapRef: + - request: request name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - image: image - imagePullPolicy: imagePullPolicy - livenessProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - targetContainerName: targetContainerName - terminationMessagePath: terminationMessagePath - workingDir: workingDir - resources: - claims: - - name: name - - name: name requests: {} limits: {} env: @@ -97009,19 +122226,17 @@ components: tty: true stdinOnce: true serviceAccount: serviceAccount - priority: 1 + priority: 6 restartPolicy: restartPolicy shareProcessNamespace: true hostUsers: true resourceClaims: - - name: name - source: - resourceClaimName: resourceClaimName - resourceClaimTemplateName: resourceClaimTemplateName - - name: name - source: - resourceClaimName: resourceClaimName - resourceClaimTemplateName: resourceClaimTemplateName + - resourceClaimName: resourceClaimName + name: name + resourceClaimTemplateName: resourceClaimTemplateName + - resourceClaimName: resourceClaimName + name: name + resourceClaimTemplateName: resourceClaimTemplateName subdomain: subdomain containers: - volumeDevices: @@ -97032,21 +122247,21 @@ components: image: image imagePullPolicy: imagePullPolicy livenessProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -97064,8 +122279,10 @@ components: workingDir: workingDir resources: claims: - - name: name - - name: name + - request: request + name: name + - request: request + name: name requests: {} limits: {} securityContext: @@ -97083,6 +122300,9 @@ components: level: level type: type user: user + appArmorProfile: + localhostProfile: localhostProfile + type: type seccompProfile: localhostProfile: localhostProfile type: type @@ -97097,21 +122317,21 @@ components: runAsNonRoot: true readOnlyRootFilesystem: true startupProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -97164,13 +122384,13 @@ components: - protocol: protocol hostIP: hostIP name: name - containerPort: 4 - hostPort: 7 + containerPort: 7 + hostPort: 1 - protocol: protocol hostIP: hostIP name: name - containerPort: 4 - hostPort: 7 + containerPort: 7 + hostPort: 1 restartPolicy: restartPolicy command: - command @@ -97181,18 +122401,22 @@ components: name: name readOnly: true subPath: subPath + recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - mountPath: mountPath mountPropagation: mountPropagation name: name readOnly: true subPath: subPath + recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr args: - args - args lifecycle: postStart: + sleep: + seconds: 5 tcpSocket: port: port host: host @@ -97211,6 +122435,8 @@ components: - name: name value: value preStop: + sleep: + seconds: 5 tcpSocket: port: port host: host @@ -97228,24 +122454,25 @@ components: value: value - name: name value: value + stopSignal: stopSignal name: name tty: true readinessProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -97286,21 +122513,21 @@ components: image: image imagePullPolicy: imagePullPolicy livenessProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -97318,8 +122545,10 @@ components: workingDir: workingDir resources: claims: - - name: name - - name: name + - request: request + name: name + - request: request + name: name requests: {} limits: {} securityContext: @@ -97337,6 +122566,9 @@ components: level: level type: type user: user + appArmorProfile: + localhostProfile: localhostProfile + type: type seccompProfile: localhostProfile: localhostProfile type: type @@ -97351,21 +122583,21 @@ components: runAsNonRoot: true readOnlyRootFilesystem: true startupProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -97418,13 +122650,13 @@ components: - protocol: protocol hostIP: hostIP name: name - containerPort: 4 - hostPort: 7 + containerPort: 7 + hostPort: 1 - protocol: protocol hostIP: hostIP name: name - containerPort: 4 - hostPort: 7 + containerPort: 7 + hostPort: 1 restartPolicy: restartPolicy command: - command @@ -97435,18 +122667,22 @@ components: name: name readOnly: true subPath: subPath + recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - mountPath: mountPath mountPropagation: mountPropagation name: name readOnly: true subPath: subPath + recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr args: - args - args lifecycle: postStart: + sleep: + seconds: 5 tcpSocket: port: port host: host @@ -97465,6 +122701,8 @@ components: - name: name value: value preStop: + sleep: + seconds: 5 tcpSocket: port: port host: host @@ -97482,24 +122720,25 @@ components: value: value - name: name value: value + stopSignal: stopSignal name: name tty: true readinessProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -97541,21 +122780,21 @@ components: image: image imagePullPolicy: imagePullPolicy livenessProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -97573,8 +122812,10 @@ components: workingDir: workingDir resources: claims: - - name: name - - name: name + - request: request + name: name + - request: request + name: name requests: {} limits: {} securityContext: @@ -97592,6 +122833,9 @@ components: level: level type: type user: user + appArmorProfile: + localhostProfile: localhostProfile + type: type seccompProfile: localhostProfile: localhostProfile type: type @@ -97606,21 +122850,21 @@ components: runAsNonRoot: true readOnlyRootFilesystem: true startupProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -97673,13 +122917,13 @@ components: - protocol: protocol hostIP: hostIP name: name - containerPort: 4 - hostPort: 7 + containerPort: 7 + hostPort: 1 - protocol: protocol hostIP: hostIP name: name - containerPort: 4 - hostPort: 7 + containerPort: 7 + hostPort: 1 restartPolicy: restartPolicy command: - command @@ -97690,18 +122934,22 @@ components: name: name readOnly: true subPath: subPath + recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - mountPath: mountPath mountPropagation: mountPropagation name: name readOnly: true subPath: subPath + recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr args: - args - args lifecycle: postStart: + sleep: + seconds: 5 tcpSocket: port: port host: host @@ -97720,6 +122968,8 @@ components: - name: name value: value preStop: + sleep: + seconds: 5 tcpSocket: port: port host: host @@ -97737,24 +122987,25 @@ components: value: value - name: name value: value + stopSignal: stopSignal name: name tty: true readinessProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -97795,21 +123046,21 @@ components: image: image imagePullPolicy: imagePullPolicy livenessProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -97827,8 +123078,10 @@ components: workingDir: workingDir resources: claims: - - name: name - - name: name + - request: request + name: name + - request: request + name: name requests: {} limits: {} securityContext: @@ -97846,6 +123099,9 @@ components: level: level type: type user: user + appArmorProfile: + localhostProfile: localhostProfile + type: type seccompProfile: localhostProfile: localhostProfile type: type @@ -97860,21 +123116,21 @@ components: runAsNonRoot: true readOnlyRootFilesystem: true startupProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -97927,13 +123183,13 @@ components: - protocol: protocol hostIP: hostIP name: name - containerPort: 4 - hostPort: 7 + containerPort: 7 + hostPort: 1 - protocol: protocol hostIP: hostIP name: name - containerPort: 4 - hostPort: 7 + containerPort: 7 + hostPort: 1 restartPolicy: restartPolicy command: - command @@ -97944,18 +123200,22 @@ components: name: name readOnly: true subPath: subPath + recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - mountPath: mountPath mountPropagation: mountPropagation name: name readOnly: true subPath: subPath + recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr args: - args - args lifecycle: postStart: + sleep: + seconds: 5 tcpSocket: port: port host: host @@ -97974,6 +123234,8 @@ components: - name: name value: value preStop: + sleep: + seconds: 5 tcpSocket: port: port host: host @@ -97991,24 +123253,25 @@ components: value: value - name: name value: value + stopSignal: stopSignal name: name tty: true readinessProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -98169,6 +123432,12 @@ components: matchLabels: key: matchLabels topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + mismatchLabelKeys: + - mismatchLabelKeys + - mismatchLabelKeys namespaces: - namespaces - namespaces @@ -98201,6 +123470,12 @@ components: matchLabels: key: matchLabels topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + mismatchLabelKeys: + - mismatchLabelKeys + - mismatchLabelKeys namespaces: - namespaces - namespaces @@ -98235,6 +123510,12 @@ components: matchLabels: key: matchLabels topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + mismatchLabelKeys: + - mismatchLabelKeys + - mismatchLabelKeys namespaces: - namespaces - namespaces @@ -98269,6 +123550,12 @@ components: matchLabels: key: matchLabels topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + mismatchLabelKeys: + - mismatchLabelKeys + - mismatchLabelKeys namespaces: - namespaces - namespaces @@ -98304,6 +123591,12 @@ components: matchLabels: key: matchLabels topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + mismatchLabelKeys: + - mismatchLabelKeys + - mismatchLabelKeys namespaces: - namespaces - namespaces @@ -98336,6 +123629,12 @@ components: matchLabels: key: matchLabels topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + mismatchLabelKeys: + - mismatchLabelKeys + - mismatchLabelKeys namespaces: - namespaces - namespaces @@ -98370,6 +123669,12 @@ components: matchLabels: key: matchLabels topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + mismatchLabelKeys: + - mismatchLabelKeys + - mismatchLabelKeys namespaces: - namespaces - namespaces @@ -98404,6 +123709,12 @@ components: matchLabels: key: matchLabels topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + mismatchLabelKeys: + - mismatchLabelKeys + - mismatchLabelKeys namespaces: - namespaces - namespaces @@ -98428,6 +123739,7 @@ components: status: fullyLabeledReplicas: 5 replicas: 7 + terminatingReplicas: 9 readyReplicas: 2 conditions: - reason: reason @@ -98607,7 +123919,7 @@ components: spec: dnsPolicy: dnsPolicy nodeName: nodeName - terminationGracePeriodSeconds: 5 + terminationGracePeriodSeconds: 9 dnsConfig: searches: - searches @@ -98639,32 +123951,37 @@ components: - hostnames - hostnames securityContext: - runAsUser: 1 seLinuxOptions: role: role level: level type: type user: user - fsGroup: 6 - seccompProfile: + appArmorProfile: localhostProfile: localhostProfile type: type - windowsOptions: - gmsaCredentialSpec: gmsaCredentialSpec - runAsUserName: runAsUserName - hostProcess: true - gmsaCredentialSpecName: gmsaCredentialSpecName + fsGroup: 7 fsGroupChangePolicy: fsGroupChangePolicy - supplementalGroups: - - 4 - - 4 - runAsGroup: 7 + seLinuxChangePolicy: seLinuxChangePolicy + runAsGroup: 1 runAsNonRoot: true sysctls: - name: name value: value - name: name value: value + runAsUser: 4 + seccompProfile: + localhostProfile: localhostProfile + type: type + windowsOptions: + gmsaCredentialSpec: gmsaCredentialSpec + runAsUserName: runAsUserName + hostProcess: true + gmsaCredentialSpecName: gmsaCredentialSpecName + supplementalGroups: + - 5 + - 5 + supplementalGroupsPolicy: supplementalGroupsPolicy preemptionPolicy: preemptionPolicy nodeSelector: key: nodeSelector @@ -98696,7 +124013,7 @@ components: topologySpreadConstraints: - nodeTaintsPolicy: nodeTaintsPolicy whenUnsatisfiable: whenUnsatisfiable - maxSkew: 9 + maxSkew: 6 nodeAffinityPolicy: nodeAffinityPolicy labelSelector: matchExpressions: @@ -98712,14 +124029,14 @@ components: operator: operator matchLabels: key: matchLabels - minDomains: 6 + minDomains: 8 topologyKey: topologyKey matchLabelKeys: - matchLabelKeys - matchLabelKeys - nodeTaintsPolicy: nodeTaintsPolicy whenUnsatisfiable: whenUnsatisfiable - maxSkew: 9 + maxSkew: 6 nodeAffinityPolicy: nodeAffinityPolicy labelSelector: matchExpressions: @@ -98735,7 +124052,7 @@ components: operator: operator matchLabels: key: matchLabels - minDomains: 6 + minDomains: 8 topologyKey: topologyKey matchLabelKeys: - matchLabelKeys @@ -98816,10 +124133,8 @@ components: name: name namespace: namespace volumeName: volumeName + volumeAttributesClassName: volumeAttributesClassName resources: - claims: - - name: name - - name: name requests: {} limits: {} selector: @@ -98846,20 +124161,20 @@ components: volumeMode: volumeMode secret: secretName: secretName - defaultMode: 6 + defaultMode: 3 optional: true items: - - mode: 6 + - mode: 3 path: path key: key - - mode: 6 + - mode: 3 path: path key: key projected: sources: - downwardAPI: items: - - mode: 6 + - mode: 1 path: path resourceFieldRef: divisor: divisor @@ -98868,7 +124183,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 6 + - mode: 1 path: path resourceFieldRef: divisor: divisor @@ -98881,29 +124196,48 @@ components: name: name optional: true items: - - mode: 6 + - mode: 3 path: path key: key - - mode: 6 + - mode: 3 path: path key: key secret: name: name optional: true items: - - mode: 6 + - mode: 3 path: path key: key - - mode: 6 + - mode: 3 path: path key: key serviceAccountToken: path: path audience: audience - expirationSeconds: 5 + expirationSeconds: 6 + clusterTrustBundle: + path: path + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + name: name + optional: true + signerName: signerName - downwardAPI: items: - - mode: 6 + - mode: 1 path: path resourceFieldRef: divisor: divisor @@ -98912,7 +124246,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 6 + - mode: 1 path: path resourceFieldRef: divisor: divisor @@ -98925,27 +124259,46 @@ components: name: name optional: true items: - - mode: 6 + - mode: 3 path: path key: key - - mode: 6 + - mode: 3 path: path key: key secret: name: name optional: true items: - - mode: 6 + - mode: 3 path: path key: key - - mode: 6 + - mode: 3 path: path key: key serviceAccountToken: path: path audience: audience - expirationSeconds: 5 - defaultMode: 6 + expirationSeconds: 6 + clusterTrustBundle: + path: path + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + name: name + optional: true + signerName: signerName + defaultMode: 5 cephfs: path: path secretRef: @@ -98976,10 +124329,13 @@ components: endpoints: endpoints readOnly: true gcePersistentDisk: - partition: 2 + partition: 6 readOnly: true pdName: pdName fsType: fsType + image: + reference: reference + pullPolicy: pullPolicy photonPersistentDisk: pdID: pdID fsType: fsType @@ -98997,9 +124353,9 @@ components: readOnly: true fsType: fsType downwardAPI: - defaultMode: 3 + defaultMode: 6 items: - - mode: 6 + - mode: 1 path: path resourceFieldRef: divisor: divisor @@ -99008,7 +124364,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 6 + - mode: 1 path: path resourceFieldRef: divisor: divisor @@ -99018,7 +124374,7 @@ components: apiVersion: apiVersion fieldPath: fieldPath awsElasticBlockStore: - partition: 8 + partition: 9 volumeID: volumeID readOnly: true fsType: fsType @@ -99053,14 +124409,14 @@ components: - monitors - monitors configMap: - defaultMode: 9 + defaultMode: 6 name: name optional: true items: - - mode: 6 + - mode: 3 path: path key: key - - mode: 6 + - mode: 3 path: path key: key storageos: @@ -99100,7 +124456,7 @@ components: volumePath: volumePath fsType: fsType fc: - lun: 1 + lun: 2 targetWWNs: - targetWWNs - targetWWNs @@ -99187,10 +124543,8 @@ components: name: name namespace: namespace volumeName: volumeName + volumeAttributesClassName: volumeAttributesClassName resources: - claims: - - name: name - - name: name requests: {} limits: {} selector: @@ -99217,20 +124571,20 @@ components: volumeMode: volumeMode secret: secretName: secretName - defaultMode: 6 + defaultMode: 3 optional: true items: - - mode: 6 + - mode: 3 path: path key: key - - mode: 6 + - mode: 3 path: path key: key projected: sources: - downwardAPI: items: - - mode: 6 + - mode: 1 path: path resourceFieldRef: divisor: divisor @@ -99239,7 +124593,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 6 + - mode: 1 path: path resourceFieldRef: divisor: divisor @@ -99252,29 +124606,48 @@ components: name: name optional: true items: - - mode: 6 + - mode: 3 path: path key: key - - mode: 6 + - mode: 3 path: path key: key secret: name: name optional: true items: - - mode: 6 + - mode: 3 path: path key: key - - mode: 6 + - mode: 3 path: path key: key serviceAccountToken: path: path audience: audience - expirationSeconds: 5 + expirationSeconds: 6 + clusterTrustBundle: + path: path + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + name: name + optional: true + signerName: signerName - downwardAPI: items: - - mode: 6 + - mode: 1 path: path resourceFieldRef: divisor: divisor @@ -99283,7 +124656,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 6 + - mode: 1 path: path resourceFieldRef: divisor: divisor @@ -99296,27 +124669,46 @@ components: name: name optional: true items: - - mode: 6 + - mode: 3 path: path key: key - - mode: 6 + - mode: 3 path: path key: key secret: name: name optional: true items: - - mode: 6 + - mode: 3 path: path key: key - - mode: 6 + - mode: 3 path: path key: key serviceAccountToken: path: path audience: audience - expirationSeconds: 5 - defaultMode: 6 + expirationSeconds: 6 + clusterTrustBundle: + path: path + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + name: name + optional: true + signerName: signerName + defaultMode: 5 cephfs: path: path secretRef: @@ -99347,10 +124739,13 @@ components: endpoints: endpoints readOnly: true gcePersistentDisk: - partition: 2 + partition: 6 readOnly: true pdName: pdName fsType: fsType + image: + reference: reference + pullPolicy: pullPolicy photonPersistentDisk: pdID: pdID fsType: fsType @@ -99368,9 +124763,9 @@ components: readOnly: true fsType: fsType downwardAPI: - defaultMode: 3 + defaultMode: 6 items: - - mode: 6 + - mode: 1 path: path resourceFieldRef: divisor: divisor @@ -99379,7 +124774,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 6 + - mode: 1 path: path resourceFieldRef: divisor: divisor @@ -99389,7 +124784,7 @@ components: apiVersion: apiVersion fieldPath: fieldPath awsElasticBlockStore: - partition: 8 + partition: 9 volumeID: volumeID readOnly: true fsType: fsType @@ -99424,14 +124819,14 @@ components: - monitors - monitors configMap: - defaultMode: 9 + defaultMode: 6 name: name optional: true items: - - mode: 6 + - mode: 3 path: path key: key - - mode: 6 + - mode: 3 path: path key: key storageos: @@ -99471,7 +124866,7 @@ components: volumePath: volumePath fsType: fsType fc: - lun: 1 + lun: 2 targetWWNs: - targetWWNs - targetWWNs @@ -99483,6 +124878,14 @@ components: hostPath: path: path type: type + resources: + claims: + - request: request + name: name + - request: request + name: name + requests: {} + limits: {} ephemeralContainers: - volumeDevices: - devicePath: devicePath @@ -99506,6 +124909,9 @@ components: level: level type: type user: user + appArmorProfile: + localhostProfile: localhostProfile + type: type seccompProfile: localhostProfile: localhostProfile type: type @@ -99520,21 +124926,21 @@ components: runAsNonRoot: true readOnlyRootFilesystem: true startupProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -99550,28 +124956,32 @@ components: - protocol: protocol hostIP: hostIP name: name - containerPort: 4 - hostPort: 7 + containerPort: 7 + hostPort: 1 - protocol: protocol hostIP: hostIP name: name - containerPort: 4 - hostPort: 7 + containerPort: 7 + hostPort: 1 volumeMounts: - mountPath: mountPath mountPropagation: mountPropagation name: name readOnly: true subPath: subPath + recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - mountPath: mountPath mountPropagation: mountPropagation name: name readOnly: true subPath: subPath + recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr lifecycle: postStart: + sleep: + seconds: 5 tcpSocket: port: port host: host @@ -99590,6 +125000,8 @@ components: - name: name value: value preStop: + sleep: + seconds: 5 tcpSocket: port: port host: host @@ -99607,22 +125019,23 @@ components: value: value - name: name value: value + stopSignal: stopSignal readinessProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -99657,21 +125070,21 @@ components: image: image imagePullPolicy: imagePullPolicy livenessProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -99688,8 +125101,10 @@ components: workingDir: workingDir resources: claims: - - name: name - - name: name + - request: request + name: name + - request: request + name: name requests: {} limits: {} env: @@ -99761,6 +125176,9 @@ components: level: level type: type user: user + appArmorProfile: + localhostProfile: localhostProfile + type: type seccompProfile: localhostProfile: localhostProfile type: type @@ -99775,21 +125193,21 @@ components: runAsNonRoot: true readOnlyRootFilesystem: true startupProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -99805,28 +125223,32 @@ components: - protocol: protocol hostIP: hostIP name: name - containerPort: 4 - hostPort: 7 + containerPort: 7 + hostPort: 1 - protocol: protocol hostIP: hostIP name: name - containerPort: 4 - hostPort: 7 + containerPort: 7 + hostPort: 1 volumeMounts: - mountPath: mountPath mountPropagation: mountPropagation name: name readOnly: true subPath: subPath + recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - mountPath: mountPath mountPropagation: mountPropagation name: name readOnly: true subPath: subPath + recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr lifecycle: postStart: + sleep: + seconds: 5 tcpSocket: port: port host: host @@ -99845,6 +125267,8 @@ components: - name: name value: value preStop: + sleep: + seconds: 5 tcpSocket: port: port host: host @@ -99862,22 +125286,23 @@ components: value: value - name: name value: value + stopSignal: stopSignal readinessProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -99912,21 +125337,21 @@ components: image: image imagePullPolicy: imagePullPolicy livenessProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -99943,8 +125368,10 @@ components: workingDir: workingDir resources: claims: - - name: name - - name: name + - request: request + name: name + - request: request + name: name requests: {} limits: {} env: @@ -99995,19 +125422,17 @@ components: tty: true stdinOnce: true serviceAccount: serviceAccount - priority: 1 + priority: 6 restartPolicy: restartPolicy shareProcessNamespace: true hostUsers: true resourceClaims: - - name: name - source: - resourceClaimName: resourceClaimName - resourceClaimTemplateName: resourceClaimTemplateName - - name: name - source: - resourceClaimName: resourceClaimName - resourceClaimTemplateName: resourceClaimTemplateName + - resourceClaimName: resourceClaimName + name: name + resourceClaimTemplateName: resourceClaimTemplateName + - resourceClaimName: resourceClaimName + name: name + resourceClaimTemplateName: resourceClaimTemplateName subdomain: subdomain containers: - volumeDevices: @@ -100018,21 +125443,21 @@ components: image: image imagePullPolicy: imagePullPolicy livenessProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -100050,8 +125475,10 @@ components: workingDir: workingDir resources: claims: - - name: name - - name: name + - request: request + name: name + - request: request + name: name requests: {} limits: {} securityContext: @@ -100069,6 +125496,9 @@ components: level: level type: type user: user + appArmorProfile: + localhostProfile: localhostProfile + type: type seccompProfile: localhostProfile: localhostProfile type: type @@ -100083,21 +125513,21 @@ components: runAsNonRoot: true readOnlyRootFilesystem: true startupProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -100150,13 +125580,13 @@ components: - protocol: protocol hostIP: hostIP name: name - containerPort: 4 - hostPort: 7 + containerPort: 7 + hostPort: 1 - protocol: protocol hostIP: hostIP name: name - containerPort: 4 - hostPort: 7 + containerPort: 7 + hostPort: 1 restartPolicy: restartPolicy command: - command @@ -100167,18 +125597,22 @@ components: name: name readOnly: true subPath: subPath + recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - mountPath: mountPath mountPropagation: mountPropagation name: name readOnly: true subPath: subPath + recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr args: - args - args lifecycle: postStart: + sleep: + seconds: 5 tcpSocket: port: port host: host @@ -100197,6 +125631,8 @@ components: - name: name value: value preStop: + sleep: + seconds: 5 tcpSocket: port: port host: host @@ -100214,24 +125650,25 @@ components: value: value - name: name value: value + stopSignal: stopSignal name: name tty: true readinessProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -100272,21 +125709,21 @@ components: image: image imagePullPolicy: imagePullPolicy livenessProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -100304,8 +125741,10 @@ components: workingDir: workingDir resources: claims: - - name: name - - name: name + - request: request + name: name + - request: request + name: name requests: {} limits: {} securityContext: @@ -100323,6 +125762,9 @@ components: level: level type: type user: user + appArmorProfile: + localhostProfile: localhostProfile + type: type seccompProfile: localhostProfile: localhostProfile type: type @@ -100337,21 +125779,21 @@ components: runAsNonRoot: true readOnlyRootFilesystem: true startupProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -100404,13 +125846,13 @@ components: - protocol: protocol hostIP: hostIP name: name - containerPort: 4 - hostPort: 7 + containerPort: 7 + hostPort: 1 - protocol: protocol hostIP: hostIP name: name - containerPort: 4 - hostPort: 7 + containerPort: 7 + hostPort: 1 restartPolicy: restartPolicy command: - command @@ -100421,18 +125863,22 @@ components: name: name readOnly: true subPath: subPath + recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - mountPath: mountPath mountPropagation: mountPropagation name: name readOnly: true subPath: subPath + recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr args: - args - args lifecycle: postStart: + sleep: + seconds: 5 tcpSocket: port: port host: host @@ -100451,6 +125897,8 @@ components: - name: name value: value preStop: + sleep: + seconds: 5 tcpSocket: port: port host: host @@ -100468,24 +125916,25 @@ components: value: value - name: name value: value + stopSignal: stopSignal name: name tty: true readinessProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -100527,21 +125976,21 @@ components: image: image imagePullPolicy: imagePullPolicy livenessProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -100559,8 +126008,10 @@ components: workingDir: workingDir resources: claims: - - name: name - - name: name + - request: request + name: name + - request: request + name: name requests: {} limits: {} securityContext: @@ -100578,6 +126029,9 @@ components: level: level type: type user: user + appArmorProfile: + localhostProfile: localhostProfile + type: type seccompProfile: localhostProfile: localhostProfile type: type @@ -100592,21 +126046,21 @@ components: runAsNonRoot: true readOnlyRootFilesystem: true startupProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -100659,13 +126113,13 @@ components: - protocol: protocol hostIP: hostIP name: name - containerPort: 4 - hostPort: 7 + containerPort: 7 + hostPort: 1 - protocol: protocol hostIP: hostIP name: name - containerPort: 4 - hostPort: 7 + containerPort: 7 + hostPort: 1 restartPolicy: restartPolicy command: - command @@ -100676,18 +126130,22 @@ components: name: name readOnly: true subPath: subPath + recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - mountPath: mountPath mountPropagation: mountPropagation name: name readOnly: true subPath: subPath + recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr args: - args - args lifecycle: postStart: + sleep: + seconds: 5 tcpSocket: port: port host: host @@ -100706,6 +126164,8 @@ components: - name: name value: value preStop: + sleep: + seconds: 5 tcpSocket: port: port host: host @@ -100723,24 +126183,25 @@ components: value: value - name: name value: value + stopSignal: stopSignal name: name tty: true readinessProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -100781,21 +126242,21 @@ components: image: image imagePullPolicy: imagePullPolicy livenessProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -100813,8 +126274,10 @@ components: workingDir: workingDir resources: claims: - - name: name - - name: name + - request: request + name: name + - request: request + name: name requests: {} limits: {} securityContext: @@ -100832,6 +126295,9 @@ components: level: level type: type user: user + appArmorProfile: + localhostProfile: localhostProfile + type: type seccompProfile: localhostProfile: localhostProfile type: type @@ -100846,21 +126312,21 @@ components: runAsNonRoot: true readOnlyRootFilesystem: true startupProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -100913,13 +126379,13 @@ components: - protocol: protocol hostIP: hostIP name: name - containerPort: 4 - hostPort: 7 + containerPort: 7 + hostPort: 1 - protocol: protocol hostIP: hostIP name: name - containerPort: 4 - hostPort: 7 + containerPort: 7 + hostPort: 1 restartPolicy: restartPolicy command: - command @@ -100930,18 +126396,22 @@ components: name: name readOnly: true subPath: subPath + recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - mountPath: mountPath mountPropagation: mountPropagation name: name readOnly: true subPath: subPath + recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr args: - args - args lifecycle: postStart: + sleep: + seconds: 5 tcpSocket: port: port host: host @@ -100960,6 +126430,8 @@ components: - name: name value: value preStop: + sleep: + seconds: 5 tcpSocket: port: port host: host @@ -100977,24 +126449,25 @@ components: value: value - name: name value: value + stopSignal: stopSignal name: name tty: true readinessProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -101155,6 +126628,12 @@ components: matchLabels: key: matchLabels topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + mismatchLabelKeys: + - mismatchLabelKeys + - mismatchLabelKeys namespaces: - namespaces - namespaces @@ -101187,6 +126666,12 @@ components: matchLabels: key: matchLabels topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + mismatchLabelKeys: + - mismatchLabelKeys + - mismatchLabelKeys namespaces: - namespaces - namespaces @@ -101221,6 +126706,12 @@ components: matchLabels: key: matchLabels topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + mismatchLabelKeys: + - mismatchLabelKeys + - mismatchLabelKeys namespaces: - namespaces - namespaces @@ -101255,6 +126746,12 @@ components: matchLabels: key: matchLabels topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + mismatchLabelKeys: + - mismatchLabelKeys + - mismatchLabelKeys namespaces: - namespaces - namespaces @@ -101290,6 +126787,12 @@ components: matchLabels: key: matchLabels topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + mismatchLabelKeys: + - mismatchLabelKeys + - mismatchLabelKeys namespaces: - namespaces - namespaces @@ -101322,6 +126825,12 @@ components: matchLabels: key: matchLabels topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + mismatchLabelKeys: + - mismatchLabelKeys + - mismatchLabelKeys namespaces: - namespaces - namespaces @@ -101356,6 +126865,12 @@ components: matchLabels: key: matchLabels topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + mismatchLabelKeys: + - mismatchLabelKeys + - mismatchLabelKeys namespaces: - namespaces - namespaces @@ -101390,6 +126905,12 @@ components: matchLabels: key: matchLabels topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + mismatchLabelKeys: + - mismatchLabelKeys + - mismatchLabelKeys namespaces: - namespaces - namespaces @@ -101414,6 +126935,7 @@ components: status: fullyLabeledReplicas: 5 replicas: 7 + terminatingReplicas: 9 readyReplicas: 2 conditions: - reason: reason @@ -101527,7 +127049,7 @@ components: spec: dnsPolicy: dnsPolicy nodeName: nodeName - terminationGracePeriodSeconds: 5 + terminationGracePeriodSeconds: 9 dnsConfig: searches: - searches @@ -101559,32 +127081,37 @@ components: - hostnames - hostnames securityContext: - runAsUser: 1 seLinuxOptions: role: role level: level type: type user: user - fsGroup: 6 - seccompProfile: + appArmorProfile: localhostProfile: localhostProfile type: type - windowsOptions: - gmsaCredentialSpec: gmsaCredentialSpec - runAsUserName: runAsUserName - hostProcess: true - gmsaCredentialSpecName: gmsaCredentialSpecName + fsGroup: 7 fsGroupChangePolicy: fsGroupChangePolicy - supplementalGroups: - - 4 - - 4 - runAsGroup: 7 + seLinuxChangePolicy: seLinuxChangePolicy + runAsGroup: 1 runAsNonRoot: true sysctls: - name: name value: value - name: name value: value + runAsUser: 4 + seccompProfile: + localhostProfile: localhostProfile + type: type + windowsOptions: + gmsaCredentialSpec: gmsaCredentialSpec + runAsUserName: runAsUserName + hostProcess: true + gmsaCredentialSpecName: gmsaCredentialSpecName + supplementalGroups: + - 5 + - 5 + supplementalGroupsPolicy: supplementalGroupsPolicy preemptionPolicy: preemptionPolicy nodeSelector: key: nodeSelector @@ -101616,7 +127143,7 @@ components: topologySpreadConstraints: - nodeTaintsPolicy: nodeTaintsPolicy whenUnsatisfiable: whenUnsatisfiable - maxSkew: 9 + maxSkew: 6 nodeAffinityPolicy: nodeAffinityPolicy labelSelector: matchExpressions: @@ -101632,14 +127159,14 @@ components: operator: operator matchLabels: key: matchLabels - minDomains: 6 + minDomains: 8 topologyKey: topologyKey matchLabelKeys: - matchLabelKeys - matchLabelKeys - nodeTaintsPolicy: nodeTaintsPolicy whenUnsatisfiable: whenUnsatisfiable - maxSkew: 9 + maxSkew: 6 nodeAffinityPolicy: nodeAffinityPolicy labelSelector: matchExpressions: @@ -101655,7 +127182,7 @@ components: operator: operator matchLabels: key: matchLabels - minDomains: 6 + minDomains: 8 topologyKey: topologyKey matchLabelKeys: - matchLabelKeys @@ -101736,10 +127263,8 @@ components: name: name namespace: namespace volumeName: volumeName + volumeAttributesClassName: volumeAttributesClassName resources: - claims: - - name: name - - name: name requests: {} limits: {} selector: @@ -101766,20 +127291,20 @@ components: volumeMode: volumeMode secret: secretName: secretName - defaultMode: 6 + defaultMode: 3 optional: true items: - - mode: 6 + - mode: 3 path: path key: key - - mode: 6 + - mode: 3 path: path key: key projected: sources: - downwardAPI: items: - - mode: 6 + - mode: 1 path: path resourceFieldRef: divisor: divisor @@ -101788,7 +127313,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 6 + - mode: 1 path: path resourceFieldRef: divisor: divisor @@ -101801,29 +127326,48 @@ components: name: name optional: true items: - - mode: 6 + - mode: 3 path: path key: key - - mode: 6 + - mode: 3 path: path key: key secret: name: name optional: true items: - - mode: 6 + - mode: 3 path: path key: key - - mode: 6 + - mode: 3 path: path key: key serviceAccountToken: path: path audience: audience - expirationSeconds: 5 + expirationSeconds: 6 + clusterTrustBundle: + path: path + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + name: name + optional: true + signerName: signerName - downwardAPI: items: - - mode: 6 + - mode: 1 path: path resourceFieldRef: divisor: divisor @@ -101832,7 +127376,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 6 + - mode: 1 path: path resourceFieldRef: divisor: divisor @@ -101845,27 +127389,46 @@ components: name: name optional: true items: - - mode: 6 + - mode: 3 path: path key: key - - mode: 6 + - mode: 3 path: path key: key secret: name: name optional: true items: - - mode: 6 + - mode: 3 path: path key: key - - mode: 6 + - mode: 3 path: path key: key serviceAccountToken: path: path audience: audience - expirationSeconds: 5 - defaultMode: 6 + expirationSeconds: 6 + clusterTrustBundle: + path: path + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + name: name + optional: true + signerName: signerName + defaultMode: 5 cephfs: path: path secretRef: @@ -101896,10 +127459,13 @@ components: endpoints: endpoints readOnly: true gcePersistentDisk: - partition: 2 + partition: 6 readOnly: true pdName: pdName fsType: fsType + image: + reference: reference + pullPolicy: pullPolicy photonPersistentDisk: pdID: pdID fsType: fsType @@ -101917,9 +127483,9 @@ components: readOnly: true fsType: fsType downwardAPI: - defaultMode: 3 + defaultMode: 6 items: - - mode: 6 + - mode: 1 path: path resourceFieldRef: divisor: divisor @@ -101928,7 +127494,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 6 + - mode: 1 path: path resourceFieldRef: divisor: divisor @@ -101938,7 +127504,7 @@ components: apiVersion: apiVersion fieldPath: fieldPath awsElasticBlockStore: - partition: 8 + partition: 9 volumeID: volumeID readOnly: true fsType: fsType @@ -101973,14 +127539,14 @@ components: - monitors - monitors configMap: - defaultMode: 9 + defaultMode: 6 name: name optional: true items: - - mode: 6 + - mode: 3 path: path key: key - - mode: 6 + - mode: 3 path: path key: key storageos: @@ -102020,7 +127586,7 @@ components: volumePath: volumePath fsType: fsType fc: - lun: 1 + lun: 2 targetWWNs: - targetWWNs - targetWWNs @@ -102107,10 +127673,8 @@ components: name: name namespace: namespace volumeName: volumeName + volumeAttributesClassName: volumeAttributesClassName resources: - claims: - - name: name - - name: name requests: {} limits: {} selector: @@ -102137,20 +127701,20 @@ components: volumeMode: volumeMode secret: secretName: secretName - defaultMode: 6 + defaultMode: 3 optional: true items: - - mode: 6 + - mode: 3 path: path key: key - - mode: 6 + - mode: 3 path: path key: key projected: sources: - downwardAPI: items: - - mode: 6 + - mode: 1 path: path resourceFieldRef: divisor: divisor @@ -102159,7 +127723,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 6 + - mode: 1 path: path resourceFieldRef: divisor: divisor @@ -102172,29 +127736,48 @@ components: name: name optional: true items: - - mode: 6 + - mode: 3 path: path key: key - - mode: 6 + - mode: 3 path: path key: key secret: name: name optional: true items: - - mode: 6 + - mode: 3 path: path key: key - - mode: 6 + - mode: 3 path: path key: key serviceAccountToken: path: path audience: audience - expirationSeconds: 5 + expirationSeconds: 6 + clusterTrustBundle: + path: path + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + name: name + optional: true + signerName: signerName - downwardAPI: items: - - mode: 6 + - mode: 1 path: path resourceFieldRef: divisor: divisor @@ -102203,7 +127786,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 6 + - mode: 1 path: path resourceFieldRef: divisor: divisor @@ -102216,27 +127799,46 @@ components: name: name optional: true items: - - mode: 6 + - mode: 3 path: path key: key - - mode: 6 + - mode: 3 path: path key: key secret: name: name optional: true items: - - mode: 6 + - mode: 3 path: path key: key - - mode: 6 + - mode: 3 path: path key: key serviceAccountToken: path: path audience: audience - expirationSeconds: 5 - defaultMode: 6 + expirationSeconds: 6 + clusterTrustBundle: + path: path + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + name: name + optional: true + signerName: signerName + defaultMode: 5 cephfs: path: path secretRef: @@ -102267,10 +127869,13 @@ components: endpoints: endpoints readOnly: true gcePersistentDisk: - partition: 2 + partition: 6 readOnly: true pdName: pdName fsType: fsType + image: + reference: reference + pullPolicy: pullPolicy photonPersistentDisk: pdID: pdID fsType: fsType @@ -102288,9 +127893,9 @@ components: readOnly: true fsType: fsType downwardAPI: - defaultMode: 3 + defaultMode: 6 items: - - mode: 6 + - mode: 1 path: path resourceFieldRef: divisor: divisor @@ -102299,7 +127904,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 6 + - mode: 1 path: path resourceFieldRef: divisor: divisor @@ -102309,7 +127914,7 @@ components: apiVersion: apiVersion fieldPath: fieldPath awsElasticBlockStore: - partition: 8 + partition: 9 volumeID: volumeID readOnly: true fsType: fsType @@ -102344,14 +127949,14 @@ components: - monitors - monitors configMap: - defaultMode: 9 + defaultMode: 6 name: name optional: true items: - - mode: 6 + - mode: 3 path: path key: key - - mode: 6 + - mode: 3 path: path key: key storageos: @@ -102391,7 +127996,7 @@ components: volumePath: volumePath fsType: fsType fc: - lun: 1 + lun: 2 targetWWNs: - targetWWNs - targetWWNs @@ -102403,6 +128008,14 @@ components: hostPath: path: path type: type + resources: + claims: + - request: request + name: name + - request: request + name: name + requests: {} + limits: {} ephemeralContainers: - volumeDevices: - devicePath: devicePath @@ -102426,6 +128039,9 @@ components: level: level type: type user: user + appArmorProfile: + localhostProfile: localhostProfile + type: type seccompProfile: localhostProfile: localhostProfile type: type @@ -102440,21 +128056,21 @@ components: runAsNonRoot: true readOnlyRootFilesystem: true startupProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -102470,28 +128086,32 @@ components: - protocol: protocol hostIP: hostIP name: name - containerPort: 4 - hostPort: 7 + containerPort: 7 + hostPort: 1 - protocol: protocol hostIP: hostIP name: name - containerPort: 4 - hostPort: 7 + containerPort: 7 + hostPort: 1 volumeMounts: - mountPath: mountPath mountPropagation: mountPropagation name: name readOnly: true subPath: subPath + recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - mountPath: mountPath mountPropagation: mountPropagation name: name readOnly: true subPath: subPath + recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr lifecycle: postStart: + sleep: + seconds: 5 tcpSocket: port: port host: host @@ -102510,6 +128130,8 @@ components: - name: name value: value preStop: + sleep: + seconds: 5 tcpSocket: port: port host: host @@ -102527,22 +128149,23 @@ components: value: value - name: name value: value + stopSignal: stopSignal readinessProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -102577,21 +128200,21 @@ components: image: image imagePullPolicy: imagePullPolicy livenessProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -102608,8 +128231,10 @@ components: workingDir: workingDir resources: claims: - - name: name - - name: name + - request: request + name: name + - request: request + name: name requests: {} limits: {} env: @@ -102681,6 +128306,9 @@ components: level: level type: type user: user + appArmorProfile: + localhostProfile: localhostProfile + type: type seccompProfile: localhostProfile: localhostProfile type: type @@ -102695,21 +128323,21 @@ components: runAsNonRoot: true readOnlyRootFilesystem: true startupProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -102725,28 +128353,32 @@ components: - protocol: protocol hostIP: hostIP name: name - containerPort: 4 - hostPort: 7 + containerPort: 7 + hostPort: 1 - protocol: protocol hostIP: hostIP name: name - containerPort: 4 - hostPort: 7 + containerPort: 7 + hostPort: 1 volumeMounts: - mountPath: mountPath mountPropagation: mountPropagation name: name readOnly: true subPath: subPath + recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - mountPath: mountPath mountPropagation: mountPropagation name: name readOnly: true subPath: subPath + recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr lifecycle: postStart: + sleep: + seconds: 5 tcpSocket: port: port host: host @@ -102765,6 +128397,8 @@ components: - name: name value: value preStop: + sleep: + seconds: 5 tcpSocket: port: port host: host @@ -102782,22 +128416,23 @@ components: value: value - name: name value: value + stopSignal: stopSignal readinessProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -102832,21 +128467,21 @@ components: image: image imagePullPolicy: imagePullPolicy livenessProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -102863,8 +128498,10 @@ components: workingDir: workingDir resources: claims: - - name: name - - name: name + - request: request + name: name + - request: request + name: name requests: {} limits: {} env: @@ -102915,19 +128552,17 @@ components: tty: true stdinOnce: true serviceAccount: serviceAccount - priority: 1 + priority: 6 restartPolicy: restartPolicy shareProcessNamespace: true hostUsers: true resourceClaims: - - name: name - source: - resourceClaimName: resourceClaimName - resourceClaimTemplateName: resourceClaimTemplateName - - name: name - source: - resourceClaimName: resourceClaimName - resourceClaimTemplateName: resourceClaimTemplateName + - resourceClaimName: resourceClaimName + name: name + resourceClaimTemplateName: resourceClaimTemplateName + - resourceClaimName: resourceClaimName + name: name + resourceClaimTemplateName: resourceClaimTemplateName subdomain: subdomain containers: - volumeDevices: @@ -102938,21 +128573,21 @@ components: image: image imagePullPolicy: imagePullPolicy livenessProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -102970,8 +128605,10 @@ components: workingDir: workingDir resources: claims: - - name: name - - name: name + - request: request + name: name + - request: request + name: name requests: {} limits: {} securityContext: @@ -102989,6 +128626,9 @@ components: level: level type: type user: user + appArmorProfile: + localhostProfile: localhostProfile + type: type seccompProfile: localhostProfile: localhostProfile type: type @@ -103003,21 +128643,21 @@ components: runAsNonRoot: true readOnlyRootFilesystem: true startupProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -103070,13 +128710,13 @@ components: - protocol: protocol hostIP: hostIP name: name - containerPort: 4 - hostPort: 7 + containerPort: 7 + hostPort: 1 - protocol: protocol hostIP: hostIP name: name - containerPort: 4 - hostPort: 7 + containerPort: 7 + hostPort: 1 restartPolicy: restartPolicy command: - command @@ -103087,18 +128727,22 @@ components: name: name readOnly: true subPath: subPath + recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - mountPath: mountPath mountPropagation: mountPropagation name: name readOnly: true subPath: subPath + recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr args: - args - args lifecycle: postStart: + sleep: + seconds: 5 tcpSocket: port: port host: host @@ -103117,6 +128761,8 @@ components: - name: name value: value preStop: + sleep: + seconds: 5 tcpSocket: port: port host: host @@ -103134,24 +128780,25 @@ components: value: value - name: name value: value + stopSignal: stopSignal name: name tty: true readinessProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -103192,21 +128839,21 @@ components: image: image imagePullPolicy: imagePullPolicy livenessProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -103224,8 +128871,10 @@ components: workingDir: workingDir resources: claims: - - name: name - - name: name + - request: request + name: name + - request: request + name: name requests: {} limits: {} securityContext: @@ -103243,6 +128892,9 @@ components: level: level type: type user: user + appArmorProfile: + localhostProfile: localhostProfile + type: type seccompProfile: localhostProfile: localhostProfile type: type @@ -103257,21 +128909,21 @@ components: runAsNonRoot: true readOnlyRootFilesystem: true startupProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -103324,13 +128976,13 @@ components: - protocol: protocol hostIP: hostIP name: name - containerPort: 4 - hostPort: 7 + containerPort: 7 + hostPort: 1 - protocol: protocol hostIP: hostIP name: name - containerPort: 4 - hostPort: 7 + containerPort: 7 + hostPort: 1 restartPolicy: restartPolicy command: - command @@ -103341,18 +128993,22 @@ components: name: name readOnly: true subPath: subPath + recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - mountPath: mountPath mountPropagation: mountPropagation name: name readOnly: true subPath: subPath + recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr args: - args - args lifecycle: postStart: + sleep: + seconds: 5 tcpSocket: port: port host: host @@ -103371,6 +129027,8 @@ components: - name: name value: value preStop: + sleep: + seconds: 5 tcpSocket: port: port host: host @@ -103388,24 +129046,25 @@ components: value: value - name: name value: value + stopSignal: stopSignal name: name tty: true readinessProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -103447,21 +129106,21 @@ components: image: image imagePullPolicy: imagePullPolicy livenessProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -103479,8 +129138,10 @@ components: workingDir: workingDir resources: claims: - - name: name - - name: name + - request: request + name: name + - request: request + name: name requests: {} limits: {} securityContext: @@ -103498,6 +129159,9 @@ components: level: level type: type user: user + appArmorProfile: + localhostProfile: localhostProfile + type: type seccompProfile: localhostProfile: localhostProfile type: type @@ -103512,21 +129176,21 @@ components: runAsNonRoot: true readOnlyRootFilesystem: true startupProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -103579,13 +129243,13 @@ components: - protocol: protocol hostIP: hostIP name: name - containerPort: 4 - hostPort: 7 + containerPort: 7 + hostPort: 1 - protocol: protocol hostIP: hostIP name: name - containerPort: 4 - hostPort: 7 + containerPort: 7 + hostPort: 1 restartPolicy: restartPolicy command: - command @@ -103596,18 +129260,22 @@ components: name: name readOnly: true subPath: subPath + recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - mountPath: mountPath mountPropagation: mountPropagation name: name readOnly: true subPath: subPath + recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr args: - args - args lifecycle: postStart: + sleep: + seconds: 5 tcpSocket: port: port host: host @@ -103626,6 +129294,8 @@ components: - name: name value: value preStop: + sleep: + seconds: 5 tcpSocket: port: port host: host @@ -103643,24 +129313,25 @@ components: value: value - name: name value: value + stopSignal: stopSignal name: name tty: true readinessProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -103701,21 +129372,21 @@ components: image: image imagePullPolicy: imagePullPolicy livenessProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -103733,8 +129404,10 @@ components: workingDir: workingDir resources: claims: - - name: name - - name: name + - request: request + name: name + - request: request + name: name requests: {} limits: {} securityContext: @@ -103752,6 +129425,9 @@ components: level: level type: type user: user + appArmorProfile: + localhostProfile: localhostProfile + type: type seccompProfile: localhostProfile: localhostProfile type: type @@ -103766,21 +129442,21 @@ components: runAsNonRoot: true readOnlyRootFilesystem: true startupProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -103833,13 +129509,13 @@ components: - protocol: protocol hostIP: hostIP name: name - containerPort: 4 - hostPort: 7 + containerPort: 7 + hostPort: 1 - protocol: protocol hostIP: hostIP name: name - containerPort: 4 - hostPort: 7 + containerPort: 7 + hostPort: 1 restartPolicy: restartPolicy command: - command @@ -103850,18 +129526,22 @@ components: name: name readOnly: true subPath: subPath + recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - mountPath: mountPath mountPropagation: mountPropagation name: name readOnly: true subPath: subPath + recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr args: - args - args lifecycle: postStart: + sleep: + seconds: 5 tcpSocket: port: port host: host @@ -103880,6 +129560,8 @@ components: - name: name value: value preStop: + sleep: + seconds: 5 tcpSocket: port: port host: host @@ -103897,24 +129579,25 @@ components: value: value - name: name value: value + stopSignal: stopSignal name: name tty: true readinessProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -104075,6 +129758,12 @@ components: matchLabels: key: matchLabels topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + mismatchLabelKeys: + - mismatchLabelKeys + - mismatchLabelKeys namespaces: - namespaces - namespaces @@ -104107,6 +129796,12 @@ components: matchLabels: key: matchLabels topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + mismatchLabelKeys: + - mismatchLabelKeys + - mismatchLabelKeys namespaces: - namespaces - namespaces @@ -104141,6 +129836,12 @@ components: matchLabels: key: matchLabels topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + mismatchLabelKeys: + - mismatchLabelKeys + - mismatchLabelKeys namespaces: - namespaces - namespaces @@ -104175,6 +129876,12 @@ components: matchLabels: key: matchLabels topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + mismatchLabelKeys: + - mismatchLabelKeys + - mismatchLabelKeys namespaces: - namespaces - namespaces @@ -104210,6 +129917,12 @@ components: matchLabels: key: matchLabels topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + mismatchLabelKeys: + - mismatchLabelKeys + - mismatchLabelKeys namespaces: - namespaces - namespaces @@ -104242,6 +129955,12 @@ components: matchLabels: key: matchLabels topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + mismatchLabelKeys: + - mismatchLabelKeys + - mismatchLabelKeys namespaces: - namespaces - namespaces @@ -104276,6 +129995,12 @@ components: matchLabels: key: matchLabels topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + mismatchLabelKeys: + - mismatchLabelKeys + - mismatchLabelKeys namespaces: - namespaces - namespaces @@ -104310,6 +130035,12 @@ components: matchLabels: key: matchLabels topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + mismatchLabelKeys: + - mismatchLabelKeys + - mismatchLabelKeys namespaces: - namespaces - namespaces @@ -104334,6 +130065,7 @@ components: status: fullyLabeledReplicas: 5 replicas: 7 + terminatingReplicas: 9 readyReplicas: 2 conditions: - reason: reason @@ -104355,7 +130087,7 @@ components: internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources' type: string items: - description: 'List of ReplicaSets. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller' + description: 'List of ReplicaSets. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicaset' items: $ref: '#/components/schemas/v1.ReplicaSet' type: array @@ -104428,7 +130160,7 @@ components: spec: dnsPolicy: dnsPolicy nodeName: nodeName - terminationGracePeriodSeconds: 5 + terminationGracePeriodSeconds: 9 dnsConfig: searches: - searches @@ -104460,32 +130192,37 @@ components: - hostnames - hostnames securityContext: - runAsUser: 1 seLinuxOptions: role: role level: level type: type user: user - fsGroup: 6 - seccompProfile: + appArmorProfile: localhostProfile: localhostProfile type: type - windowsOptions: - gmsaCredentialSpec: gmsaCredentialSpec - runAsUserName: runAsUserName - hostProcess: true - gmsaCredentialSpecName: gmsaCredentialSpecName + fsGroup: 7 fsGroupChangePolicy: fsGroupChangePolicy - supplementalGroups: - - 4 - - 4 - runAsGroup: 7 + seLinuxChangePolicy: seLinuxChangePolicy + runAsGroup: 1 runAsNonRoot: true sysctls: - name: name value: value - name: name value: value + runAsUser: 4 + seccompProfile: + localhostProfile: localhostProfile + type: type + windowsOptions: + gmsaCredentialSpec: gmsaCredentialSpec + runAsUserName: runAsUserName + hostProcess: true + gmsaCredentialSpecName: gmsaCredentialSpecName + supplementalGroups: + - 5 + - 5 + supplementalGroupsPolicy: supplementalGroupsPolicy preemptionPolicy: preemptionPolicy nodeSelector: key: nodeSelector @@ -104517,7 +130254,7 @@ components: topologySpreadConstraints: - nodeTaintsPolicy: nodeTaintsPolicy whenUnsatisfiable: whenUnsatisfiable - maxSkew: 9 + maxSkew: 6 nodeAffinityPolicy: nodeAffinityPolicy labelSelector: matchExpressions: @@ -104533,14 +130270,14 @@ components: operator: operator matchLabels: key: matchLabels - minDomains: 6 + minDomains: 8 topologyKey: topologyKey matchLabelKeys: - matchLabelKeys - matchLabelKeys - nodeTaintsPolicy: nodeTaintsPolicy whenUnsatisfiable: whenUnsatisfiable - maxSkew: 9 + maxSkew: 6 nodeAffinityPolicy: nodeAffinityPolicy labelSelector: matchExpressions: @@ -104556,7 +130293,7 @@ components: operator: operator matchLabels: key: matchLabels - minDomains: 6 + minDomains: 8 topologyKey: topologyKey matchLabelKeys: - matchLabelKeys @@ -104637,10 +130374,8 @@ components: name: name namespace: namespace volumeName: volumeName + volumeAttributesClassName: volumeAttributesClassName resources: - claims: - - name: name - - name: name requests: {} limits: {} selector: @@ -104667,20 +130402,20 @@ components: volumeMode: volumeMode secret: secretName: secretName - defaultMode: 6 + defaultMode: 3 optional: true items: - - mode: 6 + - mode: 3 path: path key: key - - mode: 6 + - mode: 3 path: path key: key projected: sources: - downwardAPI: items: - - mode: 6 + - mode: 1 path: path resourceFieldRef: divisor: divisor @@ -104689,7 +130424,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 6 + - mode: 1 path: path resourceFieldRef: divisor: divisor @@ -104702,29 +130437,48 @@ components: name: name optional: true items: - - mode: 6 + - mode: 3 path: path key: key - - mode: 6 + - mode: 3 path: path key: key secret: name: name optional: true items: - - mode: 6 + - mode: 3 path: path key: key - - mode: 6 + - mode: 3 path: path key: key serviceAccountToken: path: path audience: audience - expirationSeconds: 5 + expirationSeconds: 6 + clusterTrustBundle: + path: path + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + name: name + optional: true + signerName: signerName - downwardAPI: items: - - mode: 6 + - mode: 1 path: path resourceFieldRef: divisor: divisor @@ -104733,7 +130487,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 6 + - mode: 1 path: path resourceFieldRef: divisor: divisor @@ -104746,27 +130500,46 @@ components: name: name optional: true items: - - mode: 6 + - mode: 3 path: path key: key - - mode: 6 + - mode: 3 path: path key: key secret: name: name optional: true items: - - mode: 6 + - mode: 3 path: path key: key - - mode: 6 + - mode: 3 path: path key: key serviceAccountToken: path: path audience: audience - expirationSeconds: 5 - defaultMode: 6 + expirationSeconds: 6 + clusterTrustBundle: + path: path + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + name: name + optional: true + signerName: signerName + defaultMode: 5 cephfs: path: path secretRef: @@ -104797,10 +130570,13 @@ components: endpoints: endpoints readOnly: true gcePersistentDisk: - partition: 2 + partition: 6 readOnly: true pdName: pdName fsType: fsType + image: + reference: reference + pullPolicy: pullPolicy photonPersistentDisk: pdID: pdID fsType: fsType @@ -104818,9 +130594,9 @@ components: readOnly: true fsType: fsType downwardAPI: - defaultMode: 3 + defaultMode: 6 items: - - mode: 6 + - mode: 1 path: path resourceFieldRef: divisor: divisor @@ -104829,7 +130605,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 6 + - mode: 1 path: path resourceFieldRef: divisor: divisor @@ -104839,7 +130615,7 @@ components: apiVersion: apiVersion fieldPath: fieldPath awsElasticBlockStore: - partition: 8 + partition: 9 volumeID: volumeID readOnly: true fsType: fsType @@ -104874,14 +130650,14 @@ components: - monitors - monitors configMap: - defaultMode: 9 + defaultMode: 6 name: name optional: true items: - - mode: 6 + - mode: 3 path: path key: key - - mode: 6 + - mode: 3 path: path key: key storageos: @@ -104921,7 +130697,7 @@ components: volumePath: volumePath fsType: fsType fc: - lun: 1 + lun: 2 targetWWNs: - targetWWNs - targetWWNs @@ -105008,10 +130784,8 @@ components: name: name namespace: namespace volumeName: volumeName + volumeAttributesClassName: volumeAttributesClassName resources: - claims: - - name: name - - name: name requests: {} limits: {} selector: @@ -105038,20 +130812,20 @@ components: volumeMode: volumeMode secret: secretName: secretName - defaultMode: 6 + defaultMode: 3 optional: true items: - - mode: 6 + - mode: 3 path: path key: key - - mode: 6 + - mode: 3 path: path key: key projected: sources: - downwardAPI: items: - - mode: 6 + - mode: 1 path: path resourceFieldRef: divisor: divisor @@ -105060,7 +130834,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 6 + - mode: 1 path: path resourceFieldRef: divisor: divisor @@ -105073,29 +130847,48 @@ components: name: name optional: true items: - - mode: 6 + - mode: 3 path: path key: key - - mode: 6 + - mode: 3 path: path key: key secret: name: name optional: true items: - - mode: 6 + - mode: 3 path: path key: key - - mode: 6 + - mode: 3 path: path key: key serviceAccountToken: path: path audience: audience - expirationSeconds: 5 + expirationSeconds: 6 + clusterTrustBundle: + path: path + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + name: name + optional: true + signerName: signerName - downwardAPI: items: - - mode: 6 + - mode: 1 path: path resourceFieldRef: divisor: divisor @@ -105104,7 +130897,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 6 + - mode: 1 path: path resourceFieldRef: divisor: divisor @@ -105117,27 +130910,46 @@ components: name: name optional: true items: - - mode: 6 + - mode: 3 path: path key: key - - mode: 6 + - mode: 3 path: path key: key secret: name: name optional: true items: - - mode: 6 + - mode: 3 path: path key: key - - mode: 6 + - mode: 3 path: path key: key serviceAccountToken: path: path audience: audience - expirationSeconds: 5 - defaultMode: 6 + expirationSeconds: 6 + clusterTrustBundle: + path: path + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + name: name + optional: true + signerName: signerName + defaultMode: 5 cephfs: path: path secretRef: @@ -105168,10 +130980,13 @@ components: endpoints: endpoints readOnly: true gcePersistentDisk: - partition: 2 + partition: 6 readOnly: true pdName: pdName fsType: fsType + image: + reference: reference + pullPolicy: pullPolicy photonPersistentDisk: pdID: pdID fsType: fsType @@ -105189,9 +131004,9 @@ components: readOnly: true fsType: fsType downwardAPI: - defaultMode: 3 + defaultMode: 6 items: - - mode: 6 + - mode: 1 path: path resourceFieldRef: divisor: divisor @@ -105200,7 +131015,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 6 + - mode: 1 path: path resourceFieldRef: divisor: divisor @@ -105210,7 +131025,7 @@ components: apiVersion: apiVersion fieldPath: fieldPath awsElasticBlockStore: - partition: 8 + partition: 9 volumeID: volumeID readOnly: true fsType: fsType @@ -105245,14 +131060,14 @@ components: - monitors - monitors configMap: - defaultMode: 9 + defaultMode: 6 name: name optional: true items: - - mode: 6 + - mode: 3 path: path key: key - - mode: 6 + - mode: 3 path: path key: key storageos: @@ -105292,7 +131107,7 @@ components: volumePath: volumePath fsType: fsType fc: - lun: 1 + lun: 2 targetWWNs: - targetWWNs - targetWWNs @@ -105304,6 +131119,14 @@ components: hostPath: path: path type: type + resources: + claims: + - request: request + name: name + - request: request + name: name + requests: {} + limits: {} ephemeralContainers: - volumeDevices: - devicePath: devicePath @@ -105327,6 +131150,9 @@ components: level: level type: type user: user + appArmorProfile: + localhostProfile: localhostProfile + type: type seccompProfile: localhostProfile: localhostProfile type: type @@ -105341,21 +131167,21 @@ components: runAsNonRoot: true readOnlyRootFilesystem: true startupProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -105371,28 +131197,32 @@ components: - protocol: protocol hostIP: hostIP name: name - containerPort: 4 - hostPort: 7 + containerPort: 7 + hostPort: 1 - protocol: protocol hostIP: hostIP name: name - containerPort: 4 - hostPort: 7 + containerPort: 7 + hostPort: 1 volumeMounts: - mountPath: mountPath mountPropagation: mountPropagation name: name readOnly: true subPath: subPath + recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - mountPath: mountPath mountPropagation: mountPropagation name: name readOnly: true subPath: subPath + recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr lifecycle: postStart: + sleep: + seconds: 5 tcpSocket: port: port host: host @@ -105411,6 +131241,8 @@ components: - name: name value: value preStop: + sleep: + seconds: 5 tcpSocket: port: port host: host @@ -105428,22 +131260,23 @@ components: value: value - name: name value: value + stopSignal: stopSignal readinessProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -105478,21 +131311,21 @@ components: image: image imagePullPolicy: imagePullPolicy livenessProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -105509,8 +131342,10 @@ components: workingDir: workingDir resources: claims: - - name: name - - name: name + - request: request + name: name + - request: request + name: name requests: {} limits: {} env: @@ -105582,6 +131417,9 @@ components: level: level type: type user: user + appArmorProfile: + localhostProfile: localhostProfile + type: type seccompProfile: localhostProfile: localhostProfile type: type @@ -105596,21 +131434,21 @@ components: runAsNonRoot: true readOnlyRootFilesystem: true startupProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -105626,28 +131464,32 @@ components: - protocol: protocol hostIP: hostIP name: name - containerPort: 4 - hostPort: 7 + containerPort: 7 + hostPort: 1 - protocol: protocol hostIP: hostIP name: name - containerPort: 4 - hostPort: 7 + containerPort: 7 + hostPort: 1 volumeMounts: - mountPath: mountPath mountPropagation: mountPropagation name: name readOnly: true subPath: subPath + recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - mountPath: mountPath mountPropagation: mountPropagation name: name readOnly: true subPath: subPath + recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr lifecycle: postStart: + sleep: + seconds: 5 tcpSocket: port: port host: host @@ -105666,6 +131508,8 @@ components: - name: name value: value preStop: + sleep: + seconds: 5 tcpSocket: port: port host: host @@ -105683,22 +131527,23 @@ components: value: value - name: name value: value + stopSignal: stopSignal readinessProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -105733,21 +131578,21 @@ components: image: image imagePullPolicy: imagePullPolicy livenessProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -105764,8 +131609,10 @@ components: workingDir: workingDir resources: claims: - - name: name - - name: name + - request: request + name: name + - request: request + name: name requests: {} limits: {} env: @@ -105816,19 +131663,17 @@ components: tty: true stdinOnce: true serviceAccount: serviceAccount - priority: 1 + priority: 6 restartPolicy: restartPolicy shareProcessNamespace: true hostUsers: true resourceClaims: - - name: name - source: - resourceClaimName: resourceClaimName - resourceClaimTemplateName: resourceClaimTemplateName - - name: name - source: - resourceClaimName: resourceClaimName - resourceClaimTemplateName: resourceClaimTemplateName + - resourceClaimName: resourceClaimName + name: name + resourceClaimTemplateName: resourceClaimTemplateName + - resourceClaimName: resourceClaimName + name: name + resourceClaimTemplateName: resourceClaimTemplateName subdomain: subdomain containers: - volumeDevices: @@ -105839,21 +131684,21 @@ components: image: image imagePullPolicy: imagePullPolicy livenessProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -105871,8 +131716,10 @@ components: workingDir: workingDir resources: claims: - - name: name - - name: name + - request: request + name: name + - request: request + name: name requests: {} limits: {} securityContext: @@ -105890,6 +131737,9 @@ components: level: level type: type user: user + appArmorProfile: + localhostProfile: localhostProfile + type: type seccompProfile: localhostProfile: localhostProfile type: type @@ -105904,21 +131754,21 @@ components: runAsNonRoot: true readOnlyRootFilesystem: true startupProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -105971,13 +131821,13 @@ components: - protocol: protocol hostIP: hostIP name: name - containerPort: 4 - hostPort: 7 + containerPort: 7 + hostPort: 1 - protocol: protocol hostIP: hostIP name: name - containerPort: 4 - hostPort: 7 + containerPort: 7 + hostPort: 1 restartPolicy: restartPolicy command: - command @@ -105988,18 +131838,22 @@ components: name: name readOnly: true subPath: subPath + recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - mountPath: mountPath mountPropagation: mountPropagation name: name readOnly: true subPath: subPath + recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr args: - args - args lifecycle: postStart: + sleep: + seconds: 5 tcpSocket: port: port host: host @@ -106018,6 +131872,8 @@ components: - name: name value: value preStop: + sleep: + seconds: 5 tcpSocket: port: port host: host @@ -106035,24 +131891,25 @@ components: value: value - name: name value: value + stopSignal: stopSignal name: name tty: true readinessProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -106093,21 +131950,21 @@ components: image: image imagePullPolicy: imagePullPolicy livenessProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -106125,8 +131982,10 @@ components: workingDir: workingDir resources: claims: - - name: name - - name: name + - request: request + name: name + - request: request + name: name requests: {} limits: {} securityContext: @@ -106144,6 +132003,9 @@ components: level: level type: type user: user + appArmorProfile: + localhostProfile: localhostProfile + type: type seccompProfile: localhostProfile: localhostProfile type: type @@ -106158,21 +132020,21 @@ components: runAsNonRoot: true readOnlyRootFilesystem: true startupProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -106225,13 +132087,13 @@ components: - protocol: protocol hostIP: hostIP name: name - containerPort: 4 - hostPort: 7 + containerPort: 7 + hostPort: 1 - protocol: protocol hostIP: hostIP name: name - containerPort: 4 - hostPort: 7 + containerPort: 7 + hostPort: 1 restartPolicy: restartPolicy command: - command @@ -106242,18 +132104,22 @@ components: name: name readOnly: true subPath: subPath + recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - mountPath: mountPath mountPropagation: mountPropagation name: name readOnly: true subPath: subPath + recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr args: - args - args lifecycle: postStart: + sleep: + seconds: 5 tcpSocket: port: port host: host @@ -106272,6 +132138,8 @@ components: - name: name value: value preStop: + sleep: + seconds: 5 tcpSocket: port: port host: host @@ -106289,24 +132157,25 @@ components: value: value - name: name value: value + stopSignal: stopSignal name: name tty: true readinessProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -106348,21 +132217,21 @@ components: image: image imagePullPolicy: imagePullPolicy livenessProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -106380,8 +132249,10 @@ components: workingDir: workingDir resources: claims: - - name: name - - name: name + - request: request + name: name + - request: request + name: name requests: {} limits: {} securityContext: @@ -106399,6 +132270,9 @@ components: level: level type: type user: user + appArmorProfile: + localhostProfile: localhostProfile + type: type seccompProfile: localhostProfile: localhostProfile type: type @@ -106413,21 +132287,21 @@ components: runAsNonRoot: true readOnlyRootFilesystem: true startupProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -106480,13 +132354,13 @@ components: - protocol: protocol hostIP: hostIP name: name - containerPort: 4 - hostPort: 7 + containerPort: 7 + hostPort: 1 - protocol: protocol hostIP: hostIP name: name - containerPort: 4 - hostPort: 7 + containerPort: 7 + hostPort: 1 restartPolicy: restartPolicy command: - command @@ -106497,18 +132371,22 @@ components: name: name readOnly: true subPath: subPath + recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - mountPath: mountPath mountPropagation: mountPropagation name: name readOnly: true subPath: subPath + recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr args: - args - args lifecycle: postStart: + sleep: + seconds: 5 tcpSocket: port: port host: host @@ -106527,6 +132405,8 @@ components: - name: name value: value preStop: + sleep: + seconds: 5 tcpSocket: port: port host: host @@ -106544,24 +132424,25 @@ components: value: value - name: name value: value + stopSignal: stopSignal name: name tty: true readinessProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -106602,21 +132483,21 @@ components: image: image imagePullPolicy: imagePullPolicy livenessProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -106634,8 +132515,10 @@ components: workingDir: workingDir resources: claims: - - name: name - - name: name + - request: request + name: name + - request: request + name: name requests: {} limits: {} securityContext: @@ -106653,6 +132536,9 @@ components: level: level type: type user: user + appArmorProfile: + localhostProfile: localhostProfile + type: type seccompProfile: localhostProfile: localhostProfile type: type @@ -106667,21 +132553,21 @@ components: runAsNonRoot: true readOnlyRootFilesystem: true startupProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -106734,13 +132620,13 @@ components: - protocol: protocol hostIP: hostIP name: name - containerPort: 4 - hostPort: 7 + containerPort: 7 + hostPort: 1 - protocol: protocol hostIP: hostIP name: name - containerPort: 4 - hostPort: 7 + containerPort: 7 + hostPort: 1 restartPolicy: restartPolicy command: - command @@ -106751,18 +132637,22 @@ components: name: name readOnly: true subPath: subPath + recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - mountPath: mountPath mountPropagation: mountPropagation name: name readOnly: true subPath: subPath + recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr args: - args - args lifecycle: postStart: + sleep: + seconds: 5 tcpSocket: port: port host: host @@ -106781,6 +132671,8 @@ components: - name: name value: value preStop: + sleep: + seconds: 5 tcpSocket: port: port host: host @@ -106798,24 +132690,25 @@ components: value: value - name: name value: value + stopSignal: stopSignal name: name tty: true readinessProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -106976,6 +132869,12 @@ components: matchLabels: key: matchLabels topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + mismatchLabelKeys: + - mismatchLabelKeys + - mismatchLabelKeys namespaces: - namespaces - namespaces @@ -107008,6 +132907,12 @@ components: matchLabels: key: matchLabels topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + mismatchLabelKeys: + - mismatchLabelKeys + - mismatchLabelKeys namespaces: - namespaces - namespaces @@ -107042,6 +132947,12 @@ components: matchLabels: key: matchLabels topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + mismatchLabelKeys: + - mismatchLabelKeys + - mismatchLabelKeys namespaces: - namespaces - namespaces @@ -107076,6 +132987,12 @@ components: matchLabels: key: matchLabels topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + mismatchLabelKeys: + - mismatchLabelKeys + - mismatchLabelKeys namespaces: - namespaces - namespaces @@ -107111,6 +133028,12 @@ components: matchLabels: key: matchLabels topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + mismatchLabelKeys: + - mismatchLabelKeys + - mismatchLabelKeys namespaces: - namespaces - namespaces @@ -107143,6 +133066,12 @@ components: matchLabels: key: matchLabels topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + mismatchLabelKeys: + - mismatchLabelKeys + - mismatchLabelKeys namespaces: - namespaces - namespaces @@ -107177,6 +133106,12 @@ components: matchLabels: key: matchLabels topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + mismatchLabelKeys: + - mismatchLabelKeys + - mismatchLabelKeys namespaces: - namespaces - namespaces @@ -107211,6 +133146,12 @@ components: matchLabels: key: matchLabels topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + mismatchLabelKeys: + - mismatchLabelKeys + - mismatchLabelKeys namespaces: - namespaces - namespaces @@ -107241,9 +133182,9 @@ components: format: int32 type: integer replicas: - description: 'Replicas is the number of desired replicas. This is a pointer + description: 'Replicas is the number of desired pods. 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' + info: https://kubernetes.io/docs/concepts/workloads/controllers/replicaset' format: int32 type: integer selector: @@ -107258,6 +133199,7 @@ components: example: fullyLabeledReplicas: 5 replicas: 7 + terminatingReplicas: 9 readyReplicas: 2 conditions: - reason: reason @@ -107274,8 +133216,8 @@ components: observedGeneration: 5 properties: availableReplicas: - description: The number of available replicas (ready for at least minReadySeconds) - for this replica set. + description: The number of available non-terminating pods (ready for at + least minReadySeconds) for this replica set. format: int32 type: integer conditions: @@ -107285,10 +133227,13 @@ components: $ref: '#/components/schemas/v1.ReplicaSetCondition' type: array x-kubernetes-patch-strategy: merge + x-kubernetes-list-type: map + x-kubernetes-list-map-keys: + - type x-kubernetes-patch-merge-key: type fullyLabeledReplicas: - description: The number of pods that have labels matching the labels of - the pod template of the replicaset. + description: The number of non-terminating pods that have labels matching + the labels of the pod template of the replicaset. format: int32 type: integer observedGeneration: @@ -107297,13 +133242,20 @@ components: format: int64 type: integer readyReplicas: - description: readyReplicas is the number of pods targeted by this ReplicaSet + description: The number of non-terminating pods targeted by this ReplicaSet with a Ready Condition. format: int32 type: integer replicas: - description: 'Replicas is the most recently observed number of replicas. - More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller/#what-is-a-replicationcontroller' + description: 'Replicas is the most recently observed number of non-terminating + pods. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicaset' + format: int32 + type: integer + terminatingReplicas: + description: |- + The number of terminating pods for this replica set. Terminating pods have a non-null .metadata.deletionTimestamp and have not yet reached the Failed or Succeeded .status.phase. + + This is an alpha field. Enable DeploymentReplicaSetTerminatingReplicas to be able to use this field. format: int32 type: integer required: @@ -107481,7 +133433,7 @@ components: spec: dnsPolicy: dnsPolicy nodeName: nodeName - terminationGracePeriodSeconds: 5 + terminationGracePeriodSeconds: 9 dnsConfig: searches: - searches @@ -107513,32 +133465,37 @@ components: - hostnames - hostnames securityContext: - runAsUser: 1 seLinuxOptions: role: role level: level type: type user: user - fsGroup: 6 - seccompProfile: + appArmorProfile: localhostProfile: localhostProfile type: type - windowsOptions: - gmsaCredentialSpec: gmsaCredentialSpec - runAsUserName: runAsUserName - hostProcess: true - gmsaCredentialSpecName: gmsaCredentialSpecName + fsGroup: 7 fsGroupChangePolicy: fsGroupChangePolicy - supplementalGroups: - - 4 - - 4 - runAsGroup: 7 + seLinuxChangePolicy: seLinuxChangePolicy + runAsGroup: 1 runAsNonRoot: true sysctls: - name: name value: value - name: name value: value + runAsUser: 4 + seccompProfile: + localhostProfile: localhostProfile + type: type + windowsOptions: + gmsaCredentialSpec: gmsaCredentialSpec + runAsUserName: runAsUserName + hostProcess: true + gmsaCredentialSpecName: gmsaCredentialSpecName + supplementalGroups: + - 5 + - 5 + supplementalGroupsPolicy: supplementalGroupsPolicy preemptionPolicy: preemptionPolicy nodeSelector: key: nodeSelector @@ -107570,7 +133527,7 @@ components: topologySpreadConstraints: - nodeTaintsPolicy: nodeTaintsPolicy whenUnsatisfiable: whenUnsatisfiable - maxSkew: 9 + maxSkew: 6 nodeAffinityPolicy: nodeAffinityPolicy labelSelector: matchExpressions: @@ -107586,14 +133543,14 @@ components: operator: operator matchLabels: key: matchLabels - minDomains: 6 + minDomains: 8 topologyKey: topologyKey matchLabelKeys: - matchLabelKeys - matchLabelKeys - nodeTaintsPolicy: nodeTaintsPolicy whenUnsatisfiable: whenUnsatisfiable - maxSkew: 9 + maxSkew: 6 nodeAffinityPolicy: nodeAffinityPolicy labelSelector: matchExpressions: @@ -107609,7 +133566,7 @@ components: operator: operator matchLabels: key: matchLabels - minDomains: 6 + minDomains: 8 topologyKey: topologyKey matchLabelKeys: - matchLabelKeys @@ -107690,10 +133647,8 @@ components: name: name namespace: namespace volumeName: volumeName + volumeAttributesClassName: volumeAttributesClassName resources: - claims: - - name: name - - name: name requests: {} limits: {} selector: @@ -107720,20 +133675,20 @@ components: volumeMode: volumeMode secret: secretName: secretName - defaultMode: 6 + defaultMode: 3 optional: true items: - - mode: 6 + - mode: 3 path: path key: key - - mode: 6 + - mode: 3 path: path key: key projected: sources: - downwardAPI: items: - - mode: 6 + - mode: 1 path: path resourceFieldRef: divisor: divisor @@ -107742,7 +133697,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 6 + - mode: 1 path: path resourceFieldRef: divisor: divisor @@ -107755,29 +133710,48 @@ components: name: name optional: true items: - - mode: 6 + - mode: 3 path: path key: key - - mode: 6 + - mode: 3 path: path key: key secret: name: name optional: true items: - - mode: 6 + - mode: 3 path: path key: key - - mode: 6 + - mode: 3 path: path key: key serviceAccountToken: path: path audience: audience - expirationSeconds: 5 + expirationSeconds: 6 + clusterTrustBundle: + path: path + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + name: name + optional: true + signerName: signerName - downwardAPI: items: - - mode: 6 + - mode: 1 path: path resourceFieldRef: divisor: divisor @@ -107786,7 +133760,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 6 + - mode: 1 path: path resourceFieldRef: divisor: divisor @@ -107799,27 +133773,46 @@ components: name: name optional: true items: - - mode: 6 + - mode: 3 path: path key: key - - mode: 6 + - mode: 3 path: path key: key secret: name: name optional: true items: - - mode: 6 + - mode: 3 path: path key: key - - mode: 6 + - mode: 3 path: path key: key serviceAccountToken: path: path audience: audience - expirationSeconds: 5 - defaultMode: 6 + expirationSeconds: 6 + clusterTrustBundle: + path: path + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + name: name + optional: true + signerName: signerName + defaultMode: 5 cephfs: path: path secretRef: @@ -107850,10 +133843,13 @@ components: endpoints: endpoints readOnly: true gcePersistentDisk: - partition: 2 + partition: 6 readOnly: true pdName: pdName fsType: fsType + image: + reference: reference + pullPolicy: pullPolicy photonPersistentDisk: pdID: pdID fsType: fsType @@ -107871,9 +133867,9 @@ components: readOnly: true fsType: fsType downwardAPI: - defaultMode: 3 + defaultMode: 6 items: - - mode: 6 + - mode: 1 path: path resourceFieldRef: divisor: divisor @@ -107882,7 +133878,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 6 + - mode: 1 path: path resourceFieldRef: divisor: divisor @@ -107892,7 +133888,7 @@ components: apiVersion: apiVersion fieldPath: fieldPath awsElasticBlockStore: - partition: 8 + partition: 9 volumeID: volumeID readOnly: true fsType: fsType @@ -107927,14 +133923,14 @@ components: - monitors - monitors configMap: - defaultMode: 9 + defaultMode: 6 name: name optional: true items: - - mode: 6 + - mode: 3 path: path key: key - - mode: 6 + - mode: 3 path: path key: key storageos: @@ -107974,7 +133970,7 @@ components: volumePath: volumePath fsType: fsType fc: - lun: 1 + lun: 2 targetWWNs: - targetWWNs - targetWWNs @@ -108061,10 +134057,8 @@ components: name: name namespace: namespace volumeName: volumeName + volumeAttributesClassName: volumeAttributesClassName resources: - claims: - - name: name - - name: name requests: {} limits: {} selector: @@ -108091,20 +134085,20 @@ components: volumeMode: volumeMode secret: secretName: secretName - defaultMode: 6 + defaultMode: 3 optional: true items: - - mode: 6 + - mode: 3 path: path key: key - - mode: 6 + - mode: 3 path: path key: key projected: sources: - downwardAPI: items: - - mode: 6 + - mode: 1 path: path resourceFieldRef: divisor: divisor @@ -108113,7 +134107,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 6 + - mode: 1 path: path resourceFieldRef: divisor: divisor @@ -108126,29 +134120,48 @@ components: name: name optional: true items: - - mode: 6 + - mode: 3 path: path key: key - - mode: 6 + - mode: 3 path: path key: key secret: name: name optional: true items: - - mode: 6 + - mode: 3 path: path key: key - - mode: 6 + - mode: 3 path: path key: key serviceAccountToken: path: path audience: audience - expirationSeconds: 5 + expirationSeconds: 6 + clusterTrustBundle: + path: path + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + name: name + optional: true + signerName: signerName - downwardAPI: items: - - mode: 6 + - mode: 1 path: path resourceFieldRef: divisor: divisor @@ -108157,7 +134170,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 6 + - mode: 1 path: path resourceFieldRef: divisor: divisor @@ -108170,27 +134183,46 @@ components: name: name optional: true items: - - mode: 6 + - mode: 3 path: path key: key - - mode: 6 + - mode: 3 path: path key: key secret: name: name optional: true items: - - mode: 6 + - mode: 3 path: path key: key - - mode: 6 + - mode: 3 path: path key: key serviceAccountToken: path: path audience: audience - expirationSeconds: 5 - defaultMode: 6 + expirationSeconds: 6 + clusterTrustBundle: + path: path + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + name: name + optional: true + signerName: signerName + defaultMode: 5 cephfs: path: path secretRef: @@ -108221,10 +134253,13 @@ components: endpoints: endpoints readOnly: true gcePersistentDisk: - partition: 2 + partition: 6 readOnly: true pdName: pdName fsType: fsType + image: + reference: reference + pullPolicy: pullPolicy photonPersistentDisk: pdID: pdID fsType: fsType @@ -108242,9 +134277,9 @@ components: readOnly: true fsType: fsType downwardAPI: - defaultMode: 3 + defaultMode: 6 items: - - mode: 6 + - mode: 1 path: path resourceFieldRef: divisor: divisor @@ -108253,7 +134288,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 6 + - mode: 1 path: path resourceFieldRef: divisor: divisor @@ -108263,7 +134298,7 @@ components: apiVersion: apiVersion fieldPath: fieldPath awsElasticBlockStore: - partition: 8 + partition: 9 volumeID: volumeID readOnly: true fsType: fsType @@ -108298,14 +134333,14 @@ components: - monitors - monitors configMap: - defaultMode: 9 + defaultMode: 6 name: name optional: true items: - - mode: 6 + - mode: 3 path: path key: key - - mode: 6 + - mode: 3 path: path key: key storageos: @@ -108345,7 +134380,7 @@ components: volumePath: volumePath fsType: fsType fc: - lun: 1 + lun: 2 targetWWNs: - targetWWNs - targetWWNs @@ -108357,6 +134392,14 @@ components: hostPath: path: path type: type + resources: + claims: + - request: request + name: name + - request: request + name: name + requests: {} + limits: {} ephemeralContainers: - volumeDevices: - devicePath: devicePath @@ -108380,6 +134423,9 @@ components: level: level type: type user: user + appArmorProfile: + localhostProfile: localhostProfile + type: type seccompProfile: localhostProfile: localhostProfile type: type @@ -108394,21 +134440,21 @@ components: runAsNonRoot: true readOnlyRootFilesystem: true startupProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -108424,28 +134470,32 @@ components: - protocol: protocol hostIP: hostIP name: name - containerPort: 4 - hostPort: 7 + containerPort: 7 + hostPort: 1 - protocol: protocol hostIP: hostIP name: name - containerPort: 4 - hostPort: 7 + containerPort: 7 + hostPort: 1 volumeMounts: - mountPath: mountPath mountPropagation: mountPropagation name: name readOnly: true subPath: subPath + recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - mountPath: mountPath mountPropagation: mountPropagation name: name readOnly: true subPath: subPath + recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr lifecycle: postStart: + sleep: + seconds: 5 tcpSocket: port: port host: host @@ -108464,6 +134514,8 @@ components: - name: name value: value preStop: + sleep: + seconds: 5 tcpSocket: port: port host: host @@ -108481,22 +134533,23 @@ components: value: value - name: name value: value + stopSignal: stopSignal readinessProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -108531,21 +134584,21 @@ components: image: image imagePullPolicy: imagePullPolicy livenessProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -108562,8 +134615,10 @@ components: workingDir: workingDir resources: claims: - - name: name - - name: name + - request: request + name: name + - request: request + name: name requests: {} limits: {} env: @@ -108635,6 +134690,9 @@ components: level: level type: type user: user + appArmorProfile: + localhostProfile: localhostProfile + type: type seccompProfile: localhostProfile: localhostProfile type: type @@ -108649,21 +134707,21 @@ components: runAsNonRoot: true readOnlyRootFilesystem: true startupProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -108679,28 +134737,32 @@ components: - protocol: protocol hostIP: hostIP name: name - containerPort: 4 - hostPort: 7 + containerPort: 7 + hostPort: 1 - protocol: protocol hostIP: hostIP name: name - containerPort: 4 - hostPort: 7 + containerPort: 7 + hostPort: 1 volumeMounts: - mountPath: mountPath mountPropagation: mountPropagation name: name readOnly: true subPath: subPath + recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - mountPath: mountPath mountPropagation: mountPropagation name: name readOnly: true subPath: subPath + recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr lifecycle: postStart: + sleep: + seconds: 5 tcpSocket: port: port host: host @@ -108719,6 +134781,8 @@ components: - name: name value: value preStop: + sleep: + seconds: 5 tcpSocket: port: port host: host @@ -108736,22 +134800,23 @@ components: value: value - name: name value: value + stopSignal: stopSignal readinessProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -108786,21 +134851,21 @@ components: image: image imagePullPolicy: imagePullPolicy livenessProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -108817,8 +134882,10 @@ components: workingDir: workingDir resources: claims: - - name: name - - name: name + - request: request + name: name + - request: request + name: name requests: {} limits: {} env: @@ -108869,19 +134936,17 @@ components: tty: true stdinOnce: true serviceAccount: serviceAccount - priority: 1 + priority: 6 restartPolicy: restartPolicy shareProcessNamespace: true hostUsers: true resourceClaims: - - name: name - source: - resourceClaimName: resourceClaimName - resourceClaimTemplateName: resourceClaimTemplateName - - name: name - source: - resourceClaimName: resourceClaimName - resourceClaimTemplateName: resourceClaimTemplateName + - resourceClaimName: resourceClaimName + name: name + resourceClaimTemplateName: resourceClaimTemplateName + - resourceClaimName: resourceClaimName + name: name + resourceClaimTemplateName: resourceClaimTemplateName subdomain: subdomain containers: - volumeDevices: @@ -108892,21 +134957,21 @@ components: image: image imagePullPolicy: imagePullPolicy livenessProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -108924,8 +134989,10 @@ components: workingDir: workingDir resources: claims: - - name: name - - name: name + - request: request + name: name + - request: request + name: name requests: {} limits: {} securityContext: @@ -108943,6 +135010,9 @@ components: level: level type: type user: user + appArmorProfile: + localhostProfile: localhostProfile + type: type seccompProfile: localhostProfile: localhostProfile type: type @@ -108957,21 +135027,21 @@ components: runAsNonRoot: true readOnlyRootFilesystem: true startupProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -109024,13 +135094,13 @@ components: - protocol: protocol hostIP: hostIP name: name - containerPort: 4 - hostPort: 7 + containerPort: 7 + hostPort: 1 - protocol: protocol hostIP: hostIP name: name - containerPort: 4 - hostPort: 7 + containerPort: 7 + hostPort: 1 restartPolicy: restartPolicy command: - command @@ -109041,18 +135111,22 @@ components: name: name readOnly: true subPath: subPath + recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - mountPath: mountPath mountPropagation: mountPropagation name: name readOnly: true subPath: subPath + recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr args: - args - args lifecycle: postStart: + sleep: + seconds: 5 tcpSocket: port: port host: host @@ -109071,6 +135145,8 @@ components: - name: name value: value preStop: + sleep: + seconds: 5 tcpSocket: port: port host: host @@ -109088,24 +135164,25 @@ components: value: value - name: name value: value + stopSignal: stopSignal name: name tty: true readinessProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -109146,21 +135223,21 @@ components: image: image imagePullPolicy: imagePullPolicy livenessProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -109178,8 +135255,10 @@ components: workingDir: workingDir resources: claims: - - name: name - - name: name + - request: request + name: name + - request: request + name: name requests: {} limits: {} securityContext: @@ -109197,6 +135276,9 @@ components: level: level type: type user: user + appArmorProfile: + localhostProfile: localhostProfile + type: type seccompProfile: localhostProfile: localhostProfile type: type @@ -109211,21 +135293,21 @@ components: runAsNonRoot: true readOnlyRootFilesystem: true startupProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -109278,13 +135360,13 @@ components: - protocol: protocol hostIP: hostIP name: name - containerPort: 4 - hostPort: 7 + containerPort: 7 + hostPort: 1 - protocol: protocol hostIP: hostIP name: name - containerPort: 4 - hostPort: 7 + containerPort: 7 + hostPort: 1 restartPolicy: restartPolicy command: - command @@ -109295,18 +135377,22 @@ components: name: name readOnly: true subPath: subPath + recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - mountPath: mountPath mountPropagation: mountPropagation name: name readOnly: true subPath: subPath + recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr args: - args - args lifecycle: postStart: + sleep: + seconds: 5 tcpSocket: port: port host: host @@ -109325,6 +135411,8 @@ components: - name: name value: value preStop: + sleep: + seconds: 5 tcpSocket: port: port host: host @@ -109342,24 +135430,25 @@ components: value: value - name: name value: value + stopSignal: stopSignal name: name tty: true readinessProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -109401,21 +135490,21 @@ components: image: image imagePullPolicy: imagePullPolicy livenessProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -109433,8 +135522,10 @@ components: workingDir: workingDir resources: claims: - - name: name - - name: name + - request: request + name: name + - request: request + name: name requests: {} limits: {} securityContext: @@ -109452,6 +135543,9 @@ components: level: level type: type user: user + appArmorProfile: + localhostProfile: localhostProfile + type: type seccompProfile: localhostProfile: localhostProfile type: type @@ -109466,21 +135560,21 @@ components: runAsNonRoot: true readOnlyRootFilesystem: true startupProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -109533,13 +135627,13 @@ components: - protocol: protocol hostIP: hostIP name: name - containerPort: 4 - hostPort: 7 + containerPort: 7 + hostPort: 1 - protocol: protocol hostIP: hostIP name: name - containerPort: 4 - hostPort: 7 + containerPort: 7 + hostPort: 1 restartPolicy: restartPolicy command: - command @@ -109550,18 +135644,22 @@ components: name: name readOnly: true subPath: subPath + recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - mountPath: mountPath mountPropagation: mountPropagation name: name readOnly: true subPath: subPath + recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr args: - args - args lifecycle: postStart: + sleep: + seconds: 5 tcpSocket: port: port host: host @@ -109580,6 +135678,8 @@ components: - name: name value: value preStop: + sleep: + seconds: 5 tcpSocket: port: port host: host @@ -109597,24 +135697,25 @@ components: value: value - name: name value: value + stopSignal: stopSignal name: name tty: true readinessProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -109655,21 +135756,21 @@ components: image: image imagePullPolicy: imagePullPolicy livenessProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -109687,8 +135788,10 @@ components: workingDir: workingDir resources: claims: - - name: name - - name: name + - request: request + name: name + - request: request + name: name requests: {} limits: {} securityContext: @@ -109706,6 +135809,9 @@ components: level: level type: type user: user + appArmorProfile: + localhostProfile: localhostProfile + type: type seccompProfile: localhostProfile: localhostProfile type: type @@ -109720,21 +135826,21 @@ components: runAsNonRoot: true readOnlyRootFilesystem: true startupProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -109787,13 +135893,13 @@ components: - protocol: protocol hostIP: hostIP name: name - containerPort: 4 - hostPort: 7 + containerPort: 7 + hostPort: 1 - protocol: protocol hostIP: hostIP name: name - containerPort: 4 - hostPort: 7 + containerPort: 7 + hostPort: 1 restartPolicy: restartPolicy command: - command @@ -109804,18 +135910,22 @@ components: name: name readOnly: true subPath: subPath + recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - mountPath: mountPath mountPropagation: mountPropagation name: name readOnly: true subPath: subPath + recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr args: - args - args lifecycle: postStart: + sleep: + seconds: 5 tcpSocket: port: port host: host @@ -109834,6 +135944,8 @@ components: - name: name value: value preStop: + sleep: + seconds: 5 tcpSocket: port: port host: host @@ -109851,24 +135963,25 @@ components: value: value - name: name value: value + stopSignal: stopSignal name: name tty: true readinessProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -110029,6 +136142,12 @@ components: matchLabels: key: matchLabels topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + mismatchLabelKeys: + - mismatchLabelKeys + - mismatchLabelKeys namespaces: - namespaces - namespaces @@ -110061,6 +136180,12 @@ components: matchLabels: key: matchLabels topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + mismatchLabelKeys: + - mismatchLabelKeys + - mismatchLabelKeys namespaces: - namespaces - namespaces @@ -110095,6 +136220,12 @@ components: matchLabels: key: matchLabels topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + mismatchLabelKeys: + - mismatchLabelKeys + - mismatchLabelKeys namespaces: - namespaces - namespaces @@ -110129,6 +136260,12 @@ components: matchLabels: key: matchLabels topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + mismatchLabelKeys: + - mismatchLabelKeys + - mismatchLabelKeys namespaces: - namespaces - namespaces @@ -110164,6 +136301,12 @@ components: matchLabels: key: matchLabels topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + mismatchLabelKeys: + - mismatchLabelKeys + - mismatchLabelKeys namespaces: - namespaces - namespaces @@ -110196,6 +136339,12 @@ components: matchLabels: key: matchLabels topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + mismatchLabelKeys: + - mismatchLabelKeys + - mismatchLabelKeys namespaces: - namespaces - namespaces @@ -110230,6 +136379,12 @@ components: matchLabels: key: matchLabels topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + mismatchLabelKeys: + - mismatchLabelKeys + - mismatchLabelKeys namespaces: - namespaces - namespaces @@ -110264,6 +136419,12 @@ components: matchLabels: key: matchLabels topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + mismatchLabelKeys: + - mismatchLabelKeys + - mismatchLabelKeys namespaces: - namespaces - namespaces @@ -110355,10 +136516,8 @@ components: name: name namespace: namespace volumeName: volumeName + volumeAttributesClassName: volumeAttributesClassName resources: - claims: - - name: name - - name: name requests: {} limits: {} selector: @@ -110386,6 +136545,7 @@ components: status: phase: phase allocatedResources: {} + currentVolumeAttributesClassName: currentVolumeAttributesClassName allocatedResourceStatuses: key: allocatedResourceStatuses accessModes: @@ -110404,6 +136564,9 @@ components: type: type lastProbeTime: 2000-01-23T04:56:07.000+00:00 status: status + modifyVolumeStatus: + targetVolumeAttributesClassName: targetVolumeAttributesClassName + status: status capacity: {} - metadata: generation: 6 @@ -110461,10 +136624,8 @@ components: name: name namespace: namespace volumeName: volumeName + volumeAttributesClassName: volumeAttributesClassName resources: - claims: - - name: name - - name: name requests: {} limits: {} selector: @@ -110492,6 +136653,7 @@ components: status: phase: phase allocatedResources: {} + currentVolumeAttributesClassName: currentVolumeAttributesClassName allocatedResourceStatuses: key: allocatedResourceStatuses accessModes: @@ -110510,6 +136672,9 @@ components: type: type lastProbeTime: 2000-01-23T04:56:07.000+00:00 status: status + modifyVolumeStatus: + targetVolumeAttributesClassName: targetVolumeAttributesClassName + status: status capacity: {} status: currentRevision: currentRevision @@ -110696,7 +136861,7 @@ components: spec: dnsPolicy: dnsPolicy nodeName: nodeName - terminationGracePeriodSeconds: 5 + terminationGracePeriodSeconds: 9 dnsConfig: searches: - searches @@ -110728,32 +136893,37 @@ components: - hostnames - hostnames securityContext: - runAsUser: 1 seLinuxOptions: role: role level: level type: type user: user - fsGroup: 6 - seccompProfile: + appArmorProfile: localhostProfile: localhostProfile type: type - windowsOptions: - gmsaCredentialSpec: gmsaCredentialSpec - runAsUserName: runAsUserName - hostProcess: true - gmsaCredentialSpecName: gmsaCredentialSpecName + fsGroup: 7 fsGroupChangePolicy: fsGroupChangePolicy - supplementalGroups: - - 4 - - 4 - runAsGroup: 7 + seLinuxChangePolicy: seLinuxChangePolicy + runAsGroup: 1 runAsNonRoot: true sysctls: - name: name value: value - name: name value: value + runAsUser: 4 + seccompProfile: + localhostProfile: localhostProfile + type: type + windowsOptions: + gmsaCredentialSpec: gmsaCredentialSpec + runAsUserName: runAsUserName + hostProcess: true + gmsaCredentialSpecName: gmsaCredentialSpecName + supplementalGroups: + - 5 + - 5 + supplementalGroupsPolicy: supplementalGroupsPolicy preemptionPolicy: preemptionPolicy nodeSelector: key: nodeSelector @@ -110785,7 +136955,7 @@ components: topologySpreadConstraints: - nodeTaintsPolicy: nodeTaintsPolicy whenUnsatisfiable: whenUnsatisfiable - maxSkew: 9 + maxSkew: 6 nodeAffinityPolicy: nodeAffinityPolicy labelSelector: matchExpressions: @@ -110801,14 +136971,14 @@ components: operator: operator matchLabels: key: matchLabels - minDomains: 6 + minDomains: 8 topologyKey: topologyKey matchLabelKeys: - matchLabelKeys - matchLabelKeys - nodeTaintsPolicy: nodeTaintsPolicy whenUnsatisfiable: whenUnsatisfiable - maxSkew: 9 + maxSkew: 6 nodeAffinityPolicy: nodeAffinityPolicy labelSelector: matchExpressions: @@ -110824,7 +136994,7 @@ components: operator: operator matchLabels: key: matchLabels - minDomains: 6 + minDomains: 8 topologyKey: topologyKey matchLabelKeys: - matchLabelKeys @@ -110905,10 +137075,8 @@ components: name: name namespace: namespace volumeName: volumeName + volumeAttributesClassName: volumeAttributesClassName resources: - claims: - - name: name - - name: name requests: {} limits: {} selector: @@ -110935,20 +137103,20 @@ components: volumeMode: volumeMode secret: secretName: secretName - defaultMode: 6 + defaultMode: 3 optional: true items: - - mode: 6 + - mode: 3 path: path key: key - - mode: 6 + - mode: 3 path: path key: key projected: sources: - downwardAPI: items: - - mode: 6 + - mode: 1 path: path resourceFieldRef: divisor: divisor @@ -110957,7 +137125,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 6 + - mode: 1 path: path resourceFieldRef: divisor: divisor @@ -110970,29 +137138,48 @@ components: name: name optional: true items: - - mode: 6 + - mode: 3 path: path key: key - - mode: 6 + - mode: 3 path: path key: key secret: name: name optional: true items: - - mode: 6 + - mode: 3 path: path key: key - - mode: 6 + - mode: 3 path: path key: key serviceAccountToken: path: path audience: audience - expirationSeconds: 5 + expirationSeconds: 6 + clusterTrustBundle: + path: path + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + name: name + optional: true + signerName: signerName - downwardAPI: items: - - mode: 6 + - mode: 1 path: path resourceFieldRef: divisor: divisor @@ -111001,7 +137188,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 6 + - mode: 1 path: path resourceFieldRef: divisor: divisor @@ -111014,27 +137201,46 @@ components: name: name optional: true items: - - mode: 6 + - mode: 3 path: path key: key - - mode: 6 + - mode: 3 path: path key: key secret: name: name optional: true items: - - mode: 6 + - mode: 3 path: path key: key - - mode: 6 + - mode: 3 path: path key: key serviceAccountToken: path: path audience: audience - expirationSeconds: 5 - defaultMode: 6 + expirationSeconds: 6 + clusterTrustBundle: + path: path + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + name: name + optional: true + signerName: signerName + defaultMode: 5 cephfs: path: path secretRef: @@ -111065,10 +137271,13 @@ components: endpoints: endpoints readOnly: true gcePersistentDisk: - partition: 2 + partition: 6 readOnly: true pdName: pdName fsType: fsType + image: + reference: reference + pullPolicy: pullPolicy photonPersistentDisk: pdID: pdID fsType: fsType @@ -111086,9 +137295,9 @@ components: readOnly: true fsType: fsType downwardAPI: - defaultMode: 3 + defaultMode: 6 items: - - mode: 6 + - mode: 1 path: path resourceFieldRef: divisor: divisor @@ -111097,7 +137306,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 6 + - mode: 1 path: path resourceFieldRef: divisor: divisor @@ -111107,7 +137316,7 @@ components: apiVersion: apiVersion fieldPath: fieldPath awsElasticBlockStore: - partition: 8 + partition: 9 volumeID: volumeID readOnly: true fsType: fsType @@ -111142,14 +137351,14 @@ components: - monitors - monitors configMap: - defaultMode: 9 + defaultMode: 6 name: name optional: true items: - - mode: 6 + - mode: 3 path: path key: key - - mode: 6 + - mode: 3 path: path key: key storageos: @@ -111189,7 +137398,7 @@ components: volumePath: volumePath fsType: fsType fc: - lun: 1 + lun: 2 targetWWNs: - targetWWNs - targetWWNs @@ -111276,10 +137485,8 @@ components: name: name namespace: namespace volumeName: volumeName + volumeAttributesClassName: volumeAttributesClassName resources: - claims: - - name: name - - name: name requests: {} limits: {} selector: @@ -111306,20 +137513,20 @@ components: volumeMode: volumeMode secret: secretName: secretName - defaultMode: 6 + defaultMode: 3 optional: true items: - - mode: 6 + - mode: 3 path: path key: key - - mode: 6 + - mode: 3 path: path key: key projected: sources: - downwardAPI: items: - - mode: 6 + - mode: 1 path: path resourceFieldRef: divisor: divisor @@ -111328,7 +137535,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 6 + - mode: 1 path: path resourceFieldRef: divisor: divisor @@ -111341,29 +137548,48 @@ components: name: name optional: true items: - - mode: 6 + - mode: 3 path: path key: key - - mode: 6 + - mode: 3 path: path key: key secret: name: name optional: true items: - - mode: 6 + - mode: 3 path: path key: key - - mode: 6 + - mode: 3 path: path key: key serviceAccountToken: path: path audience: audience - expirationSeconds: 5 + expirationSeconds: 6 + clusterTrustBundle: + path: path + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + name: name + optional: true + signerName: signerName - downwardAPI: items: - - mode: 6 + - mode: 1 path: path resourceFieldRef: divisor: divisor @@ -111372,7 +137598,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 6 + - mode: 1 path: path resourceFieldRef: divisor: divisor @@ -111385,27 +137611,46 @@ components: name: name optional: true items: - - mode: 6 + - mode: 3 path: path key: key - - mode: 6 + - mode: 3 path: path key: key secret: name: name optional: true items: - - mode: 6 + - mode: 3 path: path key: key - - mode: 6 + - mode: 3 path: path key: key serviceAccountToken: path: path audience: audience - expirationSeconds: 5 - defaultMode: 6 + expirationSeconds: 6 + clusterTrustBundle: + path: path + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + name: name + optional: true + signerName: signerName + defaultMode: 5 cephfs: path: path secretRef: @@ -111436,10 +137681,13 @@ components: endpoints: endpoints readOnly: true gcePersistentDisk: - partition: 2 + partition: 6 readOnly: true pdName: pdName fsType: fsType + image: + reference: reference + pullPolicy: pullPolicy photonPersistentDisk: pdID: pdID fsType: fsType @@ -111457,9 +137705,9 @@ components: readOnly: true fsType: fsType downwardAPI: - defaultMode: 3 + defaultMode: 6 items: - - mode: 6 + - mode: 1 path: path resourceFieldRef: divisor: divisor @@ -111468,7 +137716,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 6 + - mode: 1 path: path resourceFieldRef: divisor: divisor @@ -111478,7 +137726,7 @@ components: apiVersion: apiVersion fieldPath: fieldPath awsElasticBlockStore: - partition: 8 + partition: 9 volumeID: volumeID readOnly: true fsType: fsType @@ -111513,14 +137761,14 @@ components: - monitors - monitors configMap: - defaultMode: 9 + defaultMode: 6 name: name optional: true items: - - mode: 6 + - mode: 3 path: path key: key - - mode: 6 + - mode: 3 path: path key: key storageos: @@ -111560,7 +137808,7 @@ components: volumePath: volumePath fsType: fsType fc: - lun: 1 + lun: 2 targetWWNs: - targetWWNs - targetWWNs @@ -111572,6 +137820,14 @@ components: hostPath: path: path type: type + resources: + claims: + - request: request + name: name + - request: request + name: name + requests: {} + limits: {} ephemeralContainers: - volumeDevices: - devicePath: devicePath @@ -111595,6 +137851,9 @@ components: level: level type: type user: user + appArmorProfile: + localhostProfile: localhostProfile + type: type seccompProfile: localhostProfile: localhostProfile type: type @@ -111609,21 +137868,21 @@ components: runAsNonRoot: true readOnlyRootFilesystem: true startupProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -111639,28 +137898,32 @@ components: - protocol: protocol hostIP: hostIP name: name - containerPort: 4 - hostPort: 7 + containerPort: 7 + hostPort: 1 - protocol: protocol hostIP: hostIP name: name - containerPort: 4 - hostPort: 7 + containerPort: 7 + hostPort: 1 volumeMounts: - mountPath: mountPath mountPropagation: mountPropagation name: name readOnly: true subPath: subPath + recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - mountPath: mountPath mountPropagation: mountPropagation name: name readOnly: true subPath: subPath + recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr lifecycle: postStart: + sleep: + seconds: 5 tcpSocket: port: port host: host @@ -111679,6 +137942,8 @@ components: - name: name value: value preStop: + sleep: + seconds: 5 tcpSocket: port: port host: host @@ -111696,22 +137961,23 @@ components: value: value - name: name value: value + stopSignal: stopSignal readinessProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -111746,21 +138012,21 @@ components: image: image imagePullPolicy: imagePullPolicy livenessProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -111777,8 +138043,10 @@ components: workingDir: workingDir resources: claims: - - name: name - - name: name + - request: request + name: name + - request: request + name: name requests: {} limits: {} env: @@ -111850,6 +138118,9 @@ components: level: level type: type user: user + appArmorProfile: + localhostProfile: localhostProfile + type: type seccompProfile: localhostProfile: localhostProfile type: type @@ -111864,21 +138135,21 @@ components: runAsNonRoot: true readOnlyRootFilesystem: true startupProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -111894,28 +138165,32 @@ components: - protocol: protocol hostIP: hostIP name: name - containerPort: 4 - hostPort: 7 + containerPort: 7 + hostPort: 1 - protocol: protocol hostIP: hostIP name: name - containerPort: 4 - hostPort: 7 + containerPort: 7 + hostPort: 1 volumeMounts: - mountPath: mountPath mountPropagation: mountPropagation name: name readOnly: true subPath: subPath + recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - mountPath: mountPath mountPropagation: mountPropagation name: name readOnly: true subPath: subPath + recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr lifecycle: postStart: + sleep: + seconds: 5 tcpSocket: port: port host: host @@ -111934,6 +138209,8 @@ components: - name: name value: value preStop: + sleep: + seconds: 5 tcpSocket: port: port host: host @@ -111951,22 +138228,23 @@ components: value: value - name: name value: value + stopSignal: stopSignal readinessProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -112001,21 +138279,21 @@ components: image: image imagePullPolicy: imagePullPolicy livenessProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -112032,8 +138310,10 @@ components: workingDir: workingDir resources: claims: - - name: name - - name: name + - request: request + name: name + - request: request + name: name requests: {} limits: {} env: @@ -112084,19 +138364,17 @@ components: tty: true stdinOnce: true serviceAccount: serviceAccount - priority: 1 + priority: 6 restartPolicy: restartPolicy shareProcessNamespace: true hostUsers: true resourceClaims: - - name: name - source: - resourceClaimName: resourceClaimName - resourceClaimTemplateName: resourceClaimTemplateName - - name: name - source: - resourceClaimName: resourceClaimName - resourceClaimTemplateName: resourceClaimTemplateName + - resourceClaimName: resourceClaimName + name: name + resourceClaimTemplateName: resourceClaimTemplateName + - resourceClaimName: resourceClaimName + name: name + resourceClaimTemplateName: resourceClaimTemplateName subdomain: subdomain containers: - volumeDevices: @@ -112107,21 +138385,21 @@ components: image: image imagePullPolicy: imagePullPolicy livenessProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -112139,8 +138417,10 @@ components: workingDir: workingDir resources: claims: - - name: name - - name: name + - request: request + name: name + - request: request + name: name requests: {} limits: {} securityContext: @@ -112158,6 +138438,9 @@ components: level: level type: type user: user + appArmorProfile: + localhostProfile: localhostProfile + type: type seccompProfile: localhostProfile: localhostProfile type: type @@ -112172,21 +138455,21 @@ components: runAsNonRoot: true readOnlyRootFilesystem: true startupProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -112239,13 +138522,13 @@ components: - protocol: protocol hostIP: hostIP name: name - containerPort: 4 - hostPort: 7 + containerPort: 7 + hostPort: 1 - protocol: protocol hostIP: hostIP name: name - containerPort: 4 - hostPort: 7 + containerPort: 7 + hostPort: 1 restartPolicy: restartPolicy command: - command @@ -112256,18 +138539,22 @@ components: name: name readOnly: true subPath: subPath + recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - mountPath: mountPath mountPropagation: mountPropagation name: name readOnly: true subPath: subPath + recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr args: - args - args lifecycle: postStart: + sleep: + seconds: 5 tcpSocket: port: port host: host @@ -112286,6 +138573,8 @@ components: - name: name value: value preStop: + sleep: + seconds: 5 tcpSocket: port: port host: host @@ -112303,24 +138592,25 @@ components: value: value - name: name value: value + stopSignal: stopSignal name: name tty: true readinessProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -112361,21 +138651,21 @@ components: image: image imagePullPolicy: imagePullPolicy livenessProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -112393,8 +138683,10 @@ components: workingDir: workingDir resources: claims: - - name: name - - name: name + - request: request + name: name + - request: request + name: name requests: {} limits: {} securityContext: @@ -112412,6 +138704,9 @@ components: level: level type: type user: user + appArmorProfile: + localhostProfile: localhostProfile + type: type seccompProfile: localhostProfile: localhostProfile type: type @@ -112426,21 +138721,21 @@ components: runAsNonRoot: true readOnlyRootFilesystem: true startupProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -112493,13 +138788,13 @@ components: - protocol: protocol hostIP: hostIP name: name - containerPort: 4 - hostPort: 7 + containerPort: 7 + hostPort: 1 - protocol: protocol hostIP: hostIP name: name - containerPort: 4 - hostPort: 7 + containerPort: 7 + hostPort: 1 restartPolicy: restartPolicy command: - command @@ -112510,18 +138805,22 @@ components: name: name readOnly: true subPath: subPath + recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - mountPath: mountPath mountPropagation: mountPropagation name: name readOnly: true subPath: subPath + recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr args: - args - args lifecycle: postStart: + sleep: + seconds: 5 tcpSocket: port: port host: host @@ -112540,6 +138839,8 @@ components: - name: name value: value preStop: + sleep: + seconds: 5 tcpSocket: port: port host: host @@ -112557,24 +138858,25 @@ components: value: value - name: name value: value + stopSignal: stopSignal name: name tty: true readinessProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -112616,21 +138918,21 @@ components: image: image imagePullPolicy: imagePullPolicy livenessProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -112648,8 +138950,10 @@ components: workingDir: workingDir resources: claims: - - name: name - - name: name + - request: request + name: name + - request: request + name: name requests: {} limits: {} securityContext: @@ -112667,6 +138971,9 @@ components: level: level type: type user: user + appArmorProfile: + localhostProfile: localhostProfile + type: type seccompProfile: localhostProfile: localhostProfile type: type @@ -112681,21 +138988,21 @@ components: runAsNonRoot: true readOnlyRootFilesystem: true startupProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -112748,13 +139055,13 @@ components: - protocol: protocol hostIP: hostIP name: name - containerPort: 4 - hostPort: 7 + containerPort: 7 + hostPort: 1 - protocol: protocol hostIP: hostIP name: name - containerPort: 4 - hostPort: 7 + containerPort: 7 + hostPort: 1 restartPolicy: restartPolicy command: - command @@ -112765,18 +139072,22 @@ components: name: name readOnly: true subPath: subPath + recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - mountPath: mountPath mountPropagation: mountPropagation name: name readOnly: true subPath: subPath + recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr args: - args - args lifecycle: postStart: + sleep: + seconds: 5 tcpSocket: port: port host: host @@ -112795,6 +139106,8 @@ components: - name: name value: value preStop: + sleep: + seconds: 5 tcpSocket: port: port host: host @@ -112812,24 +139125,25 @@ components: value: value - name: name value: value + stopSignal: stopSignal name: name tty: true readinessProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -112870,21 +139184,21 @@ components: image: image imagePullPolicy: imagePullPolicy livenessProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -112902,8 +139216,10 @@ components: workingDir: workingDir resources: claims: - - name: name - - name: name + - request: request + name: name + - request: request + name: name requests: {} limits: {} securityContext: @@ -112921,6 +139237,9 @@ components: level: level type: type user: user + appArmorProfile: + localhostProfile: localhostProfile + type: type seccompProfile: localhostProfile: localhostProfile type: type @@ -112935,21 +139254,21 @@ components: runAsNonRoot: true readOnlyRootFilesystem: true startupProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -113002,13 +139321,13 @@ components: - protocol: protocol hostIP: hostIP name: name - containerPort: 4 - hostPort: 7 + containerPort: 7 + hostPort: 1 - protocol: protocol hostIP: hostIP name: name - containerPort: 4 - hostPort: 7 + containerPort: 7 + hostPort: 1 restartPolicy: restartPolicy command: - command @@ -113019,18 +139338,22 @@ components: name: name readOnly: true subPath: subPath + recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - mountPath: mountPath mountPropagation: mountPropagation name: name readOnly: true subPath: subPath + recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr args: - args - args lifecycle: postStart: + sleep: + seconds: 5 tcpSocket: port: port host: host @@ -113049,6 +139372,8 @@ components: - name: name value: value preStop: + sleep: + seconds: 5 tcpSocket: port: port host: host @@ -113066,24 +139391,25 @@ components: value: value - name: name value: value + stopSignal: stopSignal name: name tty: true readinessProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -113244,6 +139570,12 @@ components: matchLabels: key: matchLabels topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + mismatchLabelKeys: + - mismatchLabelKeys + - mismatchLabelKeys namespaces: - namespaces - namespaces @@ -113276,6 +139608,12 @@ components: matchLabels: key: matchLabels topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + mismatchLabelKeys: + - mismatchLabelKeys + - mismatchLabelKeys namespaces: - namespaces - namespaces @@ -113310,6 +139648,12 @@ components: matchLabels: key: matchLabels topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + mismatchLabelKeys: + - mismatchLabelKeys + - mismatchLabelKeys namespaces: - namespaces - namespaces @@ -113344,6 +139688,12 @@ components: matchLabels: key: matchLabels topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + mismatchLabelKeys: + - mismatchLabelKeys + - mismatchLabelKeys namespaces: - namespaces - namespaces @@ -113379,6 +139729,12 @@ components: matchLabels: key: matchLabels topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + mismatchLabelKeys: + - mismatchLabelKeys + - mismatchLabelKeys namespaces: - namespaces - namespaces @@ -113411,6 +139767,12 @@ components: matchLabels: key: matchLabels topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + mismatchLabelKeys: + - mismatchLabelKeys + - mismatchLabelKeys namespaces: - namespaces - namespaces @@ -113445,6 +139807,12 @@ components: matchLabels: key: matchLabels topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + mismatchLabelKeys: + - mismatchLabelKeys + - mismatchLabelKeys namespaces: - namespaces - namespaces @@ -113479,6 +139847,12 @@ components: matchLabels: key: matchLabels topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + mismatchLabelKeys: + - mismatchLabelKeys + - mismatchLabelKeys namespaces: - namespaces - namespaces @@ -113570,10 +139944,8 @@ components: name: name namespace: namespace volumeName: volumeName + volumeAttributesClassName: volumeAttributesClassName resources: - claims: - - name: name - - name: name requests: {} limits: {} selector: @@ -113601,6 +139973,7 @@ components: status: phase: phase allocatedResources: {} + currentVolumeAttributesClassName: currentVolumeAttributesClassName allocatedResourceStatuses: key: allocatedResourceStatuses accessModes: @@ -113619,6 +139992,9 @@ components: type: type lastProbeTime: 2000-01-23T04:56:07.000+00:00 status: status + modifyVolumeStatus: + targetVolumeAttributesClassName: targetVolumeAttributesClassName + status: status capacity: {} - metadata: generation: 6 @@ -113676,10 +140052,8 @@ components: name: name namespace: namespace volumeName: volumeName + volumeAttributesClassName: volumeAttributesClassName resources: - claims: - - name: name - - name: name requests: {} limits: {} selector: @@ -113707,6 +140081,7 @@ components: status: phase: phase allocatedResources: {} + currentVolumeAttributesClassName: currentVolumeAttributesClassName allocatedResourceStatuses: key: allocatedResourceStatuses accessModes: @@ -113725,6 +140100,9 @@ components: type: type lastProbeTime: 2000-01-23T04:56:07.000+00:00 status: status + modifyVolumeStatus: + targetVolumeAttributesClassName: targetVolumeAttributesClassName + status: status capacity: {} status: currentRevision: currentRevision @@ -113846,7 +140224,7 @@ components: spec: dnsPolicy: dnsPolicy nodeName: nodeName - terminationGracePeriodSeconds: 5 + terminationGracePeriodSeconds: 9 dnsConfig: searches: - searches @@ -113878,32 +140256,37 @@ components: - hostnames - hostnames securityContext: - runAsUser: 1 seLinuxOptions: role: role level: level type: type user: user - fsGroup: 6 - seccompProfile: + appArmorProfile: localhostProfile: localhostProfile type: type - windowsOptions: - gmsaCredentialSpec: gmsaCredentialSpec - runAsUserName: runAsUserName - hostProcess: true - gmsaCredentialSpecName: gmsaCredentialSpecName + fsGroup: 7 fsGroupChangePolicy: fsGroupChangePolicy - supplementalGroups: - - 4 - - 4 - runAsGroup: 7 + seLinuxChangePolicy: seLinuxChangePolicy + runAsGroup: 1 runAsNonRoot: true sysctls: - name: name value: value - name: name value: value + runAsUser: 4 + seccompProfile: + localhostProfile: localhostProfile + type: type + windowsOptions: + gmsaCredentialSpec: gmsaCredentialSpec + runAsUserName: runAsUserName + hostProcess: true + gmsaCredentialSpecName: gmsaCredentialSpecName + supplementalGroups: + - 5 + - 5 + supplementalGroupsPolicy: supplementalGroupsPolicy preemptionPolicy: preemptionPolicy nodeSelector: key: nodeSelector @@ -113935,7 +140318,7 @@ components: topologySpreadConstraints: - nodeTaintsPolicy: nodeTaintsPolicy whenUnsatisfiable: whenUnsatisfiable - maxSkew: 9 + maxSkew: 6 nodeAffinityPolicy: nodeAffinityPolicy labelSelector: matchExpressions: @@ -113951,14 +140334,14 @@ components: operator: operator matchLabels: key: matchLabels - minDomains: 6 + minDomains: 8 topologyKey: topologyKey matchLabelKeys: - matchLabelKeys - matchLabelKeys - nodeTaintsPolicy: nodeTaintsPolicy whenUnsatisfiable: whenUnsatisfiable - maxSkew: 9 + maxSkew: 6 nodeAffinityPolicy: nodeAffinityPolicy labelSelector: matchExpressions: @@ -113974,7 +140357,7 @@ components: operator: operator matchLabels: key: matchLabels - minDomains: 6 + minDomains: 8 topologyKey: topologyKey matchLabelKeys: - matchLabelKeys @@ -114055,10 +140438,8 @@ components: name: name namespace: namespace volumeName: volumeName + volumeAttributesClassName: volumeAttributesClassName resources: - claims: - - name: name - - name: name requests: {} limits: {} selector: @@ -114085,20 +140466,20 @@ components: volumeMode: volumeMode secret: secretName: secretName - defaultMode: 6 + defaultMode: 3 optional: true items: - - mode: 6 + - mode: 3 path: path key: key - - mode: 6 + - mode: 3 path: path key: key projected: sources: - downwardAPI: items: - - mode: 6 + - mode: 1 path: path resourceFieldRef: divisor: divisor @@ -114107,7 +140488,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 6 + - mode: 1 path: path resourceFieldRef: divisor: divisor @@ -114120,29 +140501,48 @@ components: name: name optional: true items: - - mode: 6 + - mode: 3 path: path key: key - - mode: 6 + - mode: 3 path: path key: key secret: name: name optional: true items: - - mode: 6 + - mode: 3 path: path key: key - - mode: 6 + - mode: 3 path: path key: key serviceAccountToken: path: path audience: audience - expirationSeconds: 5 + expirationSeconds: 6 + clusterTrustBundle: + path: path + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + name: name + optional: true + signerName: signerName - downwardAPI: items: - - mode: 6 + - mode: 1 path: path resourceFieldRef: divisor: divisor @@ -114151,7 +140551,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 6 + - mode: 1 path: path resourceFieldRef: divisor: divisor @@ -114164,27 +140564,46 @@ components: name: name optional: true items: - - mode: 6 + - mode: 3 path: path key: key - - mode: 6 + - mode: 3 path: path key: key secret: name: name optional: true items: - - mode: 6 + - mode: 3 path: path key: key - - mode: 6 + - mode: 3 path: path key: key serviceAccountToken: path: path audience: audience - expirationSeconds: 5 - defaultMode: 6 + expirationSeconds: 6 + clusterTrustBundle: + path: path + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + name: name + optional: true + signerName: signerName + defaultMode: 5 cephfs: path: path secretRef: @@ -114215,10 +140634,13 @@ components: endpoints: endpoints readOnly: true gcePersistentDisk: - partition: 2 + partition: 6 readOnly: true pdName: pdName fsType: fsType + image: + reference: reference + pullPolicy: pullPolicy photonPersistentDisk: pdID: pdID fsType: fsType @@ -114236,9 +140658,9 @@ components: readOnly: true fsType: fsType downwardAPI: - defaultMode: 3 + defaultMode: 6 items: - - mode: 6 + - mode: 1 path: path resourceFieldRef: divisor: divisor @@ -114247,7 +140669,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 6 + - mode: 1 path: path resourceFieldRef: divisor: divisor @@ -114257,7 +140679,7 @@ components: apiVersion: apiVersion fieldPath: fieldPath awsElasticBlockStore: - partition: 8 + partition: 9 volumeID: volumeID readOnly: true fsType: fsType @@ -114292,14 +140714,14 @@ components: - monitors - monitors configMap: - defaultMode: 9 + defaultMode: 6 name: name optional: true items: - - mode: 6 + - mode: 3 path: path key: key - - mode: 6 + - mode: 3 path: path key: key storageos: @@ -114339,7 +140761,7 @@ components: volumePath: volumePath fsType: fsType fc: - lun: 1 + lun: 2 targetWWNs: - targetWWNs - targetWWNs @@ -114426,10 +140848,8 @@ components: name: name namespace: namespace volumeName: volumeName + volumeAttributesClassName: volumeAttributesClassName resources: - claims: - - name: name - - name: name requests: {} limits: {} selector: @@ -114456,20 +140876,20 @@ components: volumeMode: volumeMode secret: secretName: secretName - defaultMode: 6 + defaultMode: 3 optional: true items: - - mode: 6 + - mode: 3 path: path key: key - - mode: 6 + - mode: 3 path: path key: key projected: sources: - downwardAPI: items: - - mode: 6 + - mode: 1 path: path resourceFieldRef: divisor: divisor @@ -114478,7 +140898,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 6 + - mode: 1 path: path resourceFieldRef: divisor: divisor @@ -114491,29 +140911,48 @@ components: name: name optional: true items: - - mode: 6 + - mode: 3 path: path key: key - - mode: 6 + - mode: 3 path: path key: key secret: name: name optional: true items: - - mode: 6 + - mode: 3 path: path key: key - - mode: 6 + - mode: 3 path: path key: key serviceAccountToken: path: path audience: audience - expirationSeconds: 5 + expirationSeconds: 6 + clusterTrustBundle: + path: path + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + name: name + optional: true + signerName: signerName - downwardAPI: items: - - mode: 6 + - mode: 1 path: path resourceFieldRef: divisor: divisor @@ -114522,7 +140961,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 6 + - mode: 1 path: path resourceFieldRef: divisor: divisor @@ -114535,27 +140974,46 @@ components: name: name optional: true items: - - mode: 6 + - mode: 3 path: path key: key - - mode: 6 + - mode: 3 path: path key: key secret: name: name optional: true items: - - mode: 6 + - mode: 3 path: path key: key - - mode: 6 + - mode: 3 path: path key: key serviceAccountToken: path: path audience: audience - expirationSeconds: 5 - defaultMode: 6 + expirationSeconds: 6 + clusterTrustBundle: + path: path + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + name: name + optional: true + signerName: signerName + defaultMode: 5 cephfs: path: path secretRef: @@ -114586,10 +141044,13 @@ components: endpoints: endpoints readOnly: true gcePersistentDisk: - partition: 2 + partition: 6 readOnly: true pdName: pdName fsType: fsType + image: + reference: reference + pullPolicy: pullPolicy photonPersistentDisk: pdID: pdID fsType: fsType @@ -114607,9 +141068,9 @@ components: readOnly: true fsType: fsType downwardAPI: - defaultMode: 3 + defaultMode: 6 items: - - mode: 6 + - mode: 1 path: path resourceFieldRef: divisor: divisor @@ -114618,7 +141079,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 6 + - mode: 1 path: path resourceFieldRef: divisor: divisor @@ -114628,7 +141089,7 @@ components: apiVersion: apiVersion fieldPath: fieldPath awsElasticBlockStore: - partition: 8 + partition: 9 volumeID: volumeID readOnly: true fsType: fsType @@ -114663,14 +141124,14 @@ components: - monitors - monitors configMap: - defaultMode: 9 + defaultMode: 6 name: name optional: true items: - - mode: 6 + - mode: 3 path: path key: key - - mode: 6 + - mode: 3 path: path key: key storageos: @@ -114710,7 +141171,7 @@ components: volumePath: volumePath fsType: fsType fc: - lun: 1 + lun: 2 targetWWNs: - targetWWNs - targetWWNs @@ -114722,6 +141183,14 @@ components: hostPath: path: path type: type + resources: + claims: + - request: request + name: name + - request: request + name: name + requests: {} + limits: {} ephemeralContainers: - volumeDevices: - devicePath: devicePath @@ -114745,6 +141214,9 @@ components: level: level type: type user: user + appArmorProfile: + localhostProfile: localhostProfile + type: type seccompProfile: localhostProfile: localhostProfile type: type @@ -114759,21 +141231,21 @@ components: runAsNonRoot: true readOnlyRootFilesystem: true startupProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -114789,28 +141261,32 @@ components: - protocol: protocol hostIP: hostIP name: name - containerPort: 4 - hostPort: 7 + containerPort: 7 + hostPort: 1 - protocol: protocol hostIP: hostIP name: name - containerPort: 4 - hostPort: 7 + containerPort: 7 + hostPort: 1 volumeMounts: - mountPath: mountPath mountPropagation: mountPropagation name: name readOnly: true subPath: subPath + recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - mountPath: mountPath mountPropagation: mountPropagation name: name readOnly: true subPath: subPath + recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr lifecycle: postStart: + sleep: + seconds: 5 tcpSocket: port: port host: host @@ -114829,6 +141305,8 @@ components: - name: name value: value preStop: + sleep: + seconds: 5 tcpSocket: port: port host: host @@ -114846,22 +141324,23 @@ components: value: value - name: name value: value + stopSignal: stopSignal readinessProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -114896,21 +141375,21 @@ components: image: image imagePullPolicy: imagePullPolicy livenessProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -114927,8 +141406,10 @@ components: workingDir: workingDir resources: claims: - - name: name - - name: name + - request: request + name: name + - request: request + name: name requests: {} limits: {} env: @@ -115000,6 +141481,9 @@ components: level: level type: type user: user + appArmorProfile: + localhostProfile: localhostProfile + type: type seccompProfile: localhostProfile: localhostProfile type: type @@ -115014,21 +141498,21 @@ components: runAsNonRoot: true readOnlyRootFilesystem: true startupProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -115044,28 +141528,32 @@ components: - protocol: protocol hostIP: hostIP name: name - containerPort: 4 - hostPort: 7 + containerPort: 7 + hostPort: 1 - protocol: protocol hostIP: hostIP name: name - containerPort: 4 - hostPort: 7 + containerPort: 7 + hostPort: 1 volumeMounts: - mountPath: mountPath mountPropagation: mountPropagation name: name readOnly: true subPath: subPath + recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - mountPath: mountPath mountPropagation: mountPropagation name: name readOnly: true subPath: subPath + recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr lifecycle: postStart: + sleep: + seconds: 5 tcpSocket: port: port host: host @@ -115084,6 +141572,8 @@ components: - name: name value: value preStop: + sleep: + seconds: 5 tcpSocket: port: port host: host @@ -115101,22 +141591,23 @@ components: value: value - name: name value: value + stopSignal: stopSignal readinessProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -115151,21 +141642,21 @@ components: image: image imagePullPolicy: imagePullPolicy livenessProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -115182,8 +141673,10 @@ components: workingDir: workingDir resources: claims: - - name: name - - name: name + - request: request + name: name + - request: request + name: name requests: {} limits: {} env: @@ -115234,19 +141727,17 @@ components: tty: true stdinOnce: true serviceAccount: serviceAccount - priority: 1 + priority: 6 restartPolicy: restartPolicy shareProcessNamespace: true hostUsers: true resourceClaims: - - name: name - source: - resourceClaimName: resourceClaimName - resourceClaimTemplateName: resourceClaimTemplateName - - name: name - source: - resourceClaimName: resourceClaimName - resourceClaimTemplateName: resourceClaimTemplateName + - resourceClaimName: resourceClaimName + name: name + resourceClaimTemplateName: resourceClaimTemplateName + - resourceClaimName: resourceClaimName + name: name + resourceClaimTemplateName: resourceClaimTemplateName subdomain: subdomain containers: - volumeDevices: @@ -115257,21 +141748,21 @@ components: image: image imagePullPolicy: imagePullPolicy livenessProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -115289,8 +141780,10 @@ components: workingDir: workingDir resources: claims: - - name: name - - name: name + - request: request + name: name + - request: request + name: name requests: {} limits: {} securityContext: @@ -115308,6 +141801,9 @@ components: level: level type: type user: user + appArmorProfile: + localhostProfile: localhostProfile + type: type seccompProfile: localhostProfile: localhostProfile type: type @@ -115322,21 +141818,21 @@ components: runAsNonRoot: true readOnlyRootFilesystem: true startupProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -115389,13 +141885,13 @@ components: - protocol: protocol hostIP: hostIP name: name - containerPort: 4 - hostPort: 7 + containerPort: 7 + hostPort: 1 - protocol: protocol hostIP: hostIP name: name - containerPort: 4 - hostPort: 7 + containerPort: 7 + hostPort: 1 restartPolicy: restartPolicy command: - command @@ -115406,18 +141902,22 @@ components: name: name readOnly: true subPath: subPath + recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - mountPath: mountPath mountPropagation: mountPropagation name: name readOnly: true subPath: subPath + recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr args: - args - args lifecycle: postStart: + sleep: + seconds: 5 tcpSocket: port: port host: host @@ -115436,6 +141936,8 @@ components: - name: name value: value preStop: + sleep: + seconds: 5 tcpSocket: port: port host: host @@ -115453,24 +141955,25 @@ components: value: value - name: name value: value + stopSignal: stopSignal name: name tty: true readinessProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -115511,21 +142014,21 @@ components: image: image imagePullPolicy: imagePullPolicy livenessProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -115543,8 +142046,10 @@ components: workingDir: workingDir resources: claims: - - name: name - - name: name + - request: request + name: name + - request: request + name: name requests: {} limits: {} securityContext: @@ -115562,6 +142067,9 @@ components: level: level type: type user: user + appArmorProfile: + localhostProfile: localhostProfile + type: type seccompProfile: localhostProfile: localhostProfile type: type @@ -115576,21 +142084,21 @@ components: runAsNonRoot: true readOnlyRootFilesystem: true startupProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -115643,13 +142151,13 @@ components: - protocol: protocol hostIP: hostIP name: name - containerPort: 4 - hostPort: 7 + containerPort: 7 + hostPort: 1 - protocol: protocol hostIP: hostIP name: name - containerPort: 4 - hostPort: 7 + containerPort: 7 + hostPort: 1 restartPolicy: restartPolicy command: - command @@ -115660,18 +142168,22 @@ components: name: name readOnly: true subPath: subPath + recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - mountPath: mountPath mountPropagation: mountPropagation name: name readOnly: true subPath: subPath + recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr args: - args - args lifecycle: postStart: + sleep: + seconds: 5 tcpSocket: port: port host: host @@ -115690,6 +142202,8 @@ components: - name: name value: value preStop: + sleep: + seconds: 5 tcpSocket: port: port host: host @@ -115707,24 +142221,25 @@ components: value: value - name: name value: value + stopSignal: stopSignal name: name tty: true readinessProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -115766,21 +142281,21 @@ components: image: image imagePullPolicy: imagePullPolicy livenessProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -115798,8 +142313,10 @@ components: workingDir: workingDir resources: claims: - - name: name - - name: name + - request: request + name: name + - request: request + name: name requests: {} limits: {} securityContext: @@ -115817,6 +142334,9 @@ components: level: level type: type user: user + appArmorProfile: + localhostProfile: localhostProfile + type: type seccompProfile: localhostProfile: localhostProfile type: type @@ -115831,21 +142351,21 @@ components: runAsNonRoot: true readOnlyRootFilesystem: true startupProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -115898,13 +142418,13 @@ components: - protocol: protocol hostIP: hostIP name: name - containerPort: 4 - hostPort: 7 + containerPort: 7 + hostPort: 1 - protocol: protocol hostIP: hostIP name: name - containerPort: 4 - hostPort: 7 + containerPort: 7 + hostPort: 1 restartPolicy: restartPolicy command: - command @@ -115915,18 +142435,22 @@ components: name: name readOnly: true subPath: subPath + recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - mountPath: mountPath mountPropagation: mountPropagation name: name readOnly: true subPath: subPath + recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr args: - args - args lifecycle: postStart: + sleep: + seconds: 5 tcpSocket: port: port host: host @@ -115945,6 +142469,8 @@ components: - name: name value: value preStop: + sleep: + seconds: 5 tcpSocket: port: port host: host @@ -115962,24 +142488,25 @@ components: value: value - name: name value: value + stopSignal: stopSignal name: name tty: true readinessProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -116020,21 +142547,21 @@ components: image: image imagePullPolicy: imagePullPolicy livenessProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -116052,8 +142579,10 @@ components: workingDir: workingDir resources: claims: - - name: name - - name: name + - request: request + name: name + - request: request + name: name requests: {} limits: {} securityContext: @@ -116071,6 +142600,9 @@ components: level: level type: type user: user + appArmorProfile: + localhostProfile: localhostProfile + type: type seccompProfile: localhostProfile: localhostProfile type: type @@ -116085,21 +142617,21 @@ components: runAsNonRoot: true readOnlyRootFilesystem: true startupProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -116152,13 +142684,13 @@ components: - protocol: protocol hostIP: hostIP name: name - containerPort: 4 - hostPort: 7 + containerPort: 7 + hostPort: 1 - protocol: protocol hostIP: hostIP name: name - containerPort: 4 - hostPort: 7 + containerPort: 7 + hostPort: 1 restartPolicy: restartPolicy command: - command @@ -116169,18 +142701,22 @@ components: name: name readOnly: true subPath: subPath + recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - mountPath: mountPath mountPropagation: mountPropagation name: name readOnly: true subPath: subPath + recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr args: - args - args lifecycle: postStart: + sleep: + seconds: 5 tcpSocket: port: port host: host @@ -116199,6 +142735,8 @@ components: - name: name value: value preStop: + sleep: + seconds: 5 tcpSocket: port: port host: host @@ -116216,24 +142754,25 @@ components: value: value - name: name value: value + stopSignal: stopSignal name: name tty: true readinessProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -116394,6 +142933,12 @@ components: matchLabels: key: matchLabels topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + mismatchLabelKeys: + - mismatchLabelKeys + - mismatchLabelKeys namespaces: - namespaces - namespaces @@ -116426,6 +142971,12 @@ components: matchLabels: key: matchLabels topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + mismatchLabelKeys: + - mismatchLabelKeys + - mismatchLabelKeys namespaces: - namespaces - namespaces @@ -116460,6 +143011,12 @@ components: matchLabels: key: matchLabels topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + mismatchLabelKeys: + - mismatchLabelKeys + - mismatchLabelKeys namespaces: - namespaces - namespaces @@ -116494,6 +143051,12 @@ components: matchLabels: key: matchLabels topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + mismatchLabelKeys: + - mismatchLabelKeys + - mismatchLabelKeys namespaces: - namespaces - namespaces @@ -116529,6 +143092,12 @@ components: matchLabels: key: matchLabels topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + mismatchLabelKeys: + - mismatchLabelKeys + - mismatchLabelKeys namespaces: - namespaces - namespaces @@ -116561,6 +143130,12 @@ components: matchLabels: key: matchLabels topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + mismatchLabelKeys: + - mismatchLabelKeys + - mismatchLabelKeys namespaces: - namespaces - namespaces @@ -116595,6 +143170,12 @@ components: matchLabels: key: matchLabels topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + mismatchLabelKeys: + - mismatchLabelKeys + - mismatchLabelKeys namespaces: - namespaces - namespaces @@ -116629,6 +143210,12 @@ components: matchLabels: key: matchLabels topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + mismatchLabelKeys: + - mismatchLabelKeys + - mismatchLabelKeys namespaces: - namespaces - namespaces @@ -116720,10 +143307,8 @@ components: name: name namespace: namespace volumeName: volumeName + volumeAttributesClassName: volumeAttributesClassName resources: - claims: - - name: name - - name: name requests: {} limits: {} selector: @@ -116751,6 +143336,7 @@ components: status: phase: phase allocatedResources: {} + currentVolumeAttributesClassName: currentVolumeAttributesClassName allocatedResourceStatuses: key: allocatedResourceStatuses accessModes: @@ -116769,6 +143355,9 @@ components: type: type lastProbeTime: 2000-01-23T04:56:07.000+00:00 status: status + modifyVolumeStatus: + targetVolumeAttributesClassName: targetVolumeAttributesClassName + status: status capacity: {} - metadata: generation: 6 @@ -116826,10 +143415,8 @@ components: name: name namespace: namespace volumeName: volumeName + volumeAttributesClassName: volumeAttributesClassName resources: - claims: - - name: name - - name: name requests: {} limits: {} selector: @@ -116857,6 +143444,7 @@ components: status: phase: phase allocatedResources: {} + currentVolumeAttributesClassName: currentVolumeAttributesClassName allocatedResourceStatuses: key: allocatedResourceStatuses accessModes: @@ -116875,6 +143463,9 @@ components: type: type lastProbeTime: 2000-01-23T04:56:07.000+00:00 status: status + modifyVolumeStatus: + targetVolumeAttributesClassName: targetVolumeAttributesClassName + status: status capacity: {} status: currentRevision: currentRevision @@ -117013,7 +143604,7 @@ components: spec: dnsPolicy: dnsPolicy nodeName: nodeName - terminationGracePeriodSeconds: 5 + terminationGracePeriodSeconds: 9 dnsConfig: searches: - searches @@ -117045,32 +143636,37 @@ components: - hostnames - hostnames securityContext: - runAsUser: 1 seLinuxOptions: role: role level: level type: type user: user - fsGroup: 6 - seccompProfile: + appArmorProfile: localhostProfile: localhostProfile type: type - windowsOptions: - gmsaCredentialSpec: gmsaCredentialSpec - runAsUserName: runAsUserName - hostProcess: true - gmsaCredentialSpecName: gmsaCredentialSpecName + fsGroup: 7 fsGroupChangePolicy: fsGroupChangePolicy - supplementalGroups: - - 4 - - 4 - runAsGroup: 7 + seLinuxChangePolicy: seLinuxChangePolicy + runAsGroup: 1 runAsNonRoot: true sysctls: - name: name value: value - name: name value: value + runAsUser: 4 + seccompProfile: + localhostProfile: localhostProfile + type: type + windowsOptions: + gmsaCredentialSpec: gmsaCredentialSpec + runAsUserName: runAsUserName + hostProcess: true + gmsaCredentialSpecName: gmsaCredentialSpecName + supplementalGroups: + - 5 + - 5 + supplementalGroupsPolicy: supplementalGroupsPolicy preemptionPolicy: preemptionPolicy nodeSelector: key: nodeSelector @@ -117102,7 +143698,7 @@ components: topologySpreadConstraints: - nodeTaintsPolicy: nodeTaintsPolicy whenUnsatisfiable: whenUnsatisfiable - maxSkew: 9 + maxSkew: 6 nodeAffinityPolicy: nodeAffinityPolicy labelSelector: matchExpressions: @@ -117118,14 +143714,14 @@ components: operator: operator matchLabels: key: matchLabels - minDomains: 6 + minDomains: 8 topologyKey: topologyKey matchLabelKeys: - matchLabelKeys - matchLabelKeys - nodeTaintsPolicy: nodeTaintsPolicy whenUnsatisfiable: whenUnsatisfiable - maxSkew: 9 + maxSkew: 6 nodeAffinityPolicy: nodeAffinityPolicy labelSelector: matchExpressions: @@ -117141,7 +143737,7 @@ components: operator: operator matchLabels: key: matchLabels - minDomains: 6 + minDomains: 8 topologyKey: topologyKey matchLabelKeys: - matchLabelKeys @@ -117222,10 +143818,8 @@ components: name: name namespace: namespace volumeName: volumeName + volumeAttributesClassName: volumeAttributesClassName resources: - claims: - - name: name - - name: name requests: {} limits: {} selector: @@ -117252,20 +143846,20 @@ components: volumeMode: volumeMode secret: secretName: secretName - defaultMode: 6 + defaultMode: 3 optional: true items: - - mode: 6 + - mode: 3 path: path key: key - - mode: 6 + - mode: 3 path: path key: key projected: sources: - downwardAPI: items: - - mode: 6 + - mode: 1 path: path resourceFieldRef: divisor: divisor @@ -117274,7 +143868,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 6 + - mode: 1 path: path resourceFieldRef: divisor: divisor @@ -117287,29 +143881,48 @@ components: name: name optional: true items: - - mode: 6 + - mode: 3 path: path key: key - - mode: 6 + - mode: 3 path: path key: key secret: name: name optional: true items: - - mode: 6 + - mode: 3 path: path key: key - - mode: 6 + - mode: 3 path: path key: key serviceAccountToken: path: path audience: audience - expirationSeconds: 5 + expirationSeconds: 6 + clusterTrustBundle: + path: path + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + name: name + optional: true + signerName: signerName - downwardAPI: items: - - mode: 6 + - mode: 1 path: path resourceFieldRef: divisor: divisor @@ -117318,7 +143931,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 6 + - mode: 1 path: path resourceFieldRef: divisor: divisor @@ -117331,27 +143944,46 @@ components: name: name optional: true items: - - mode: 6 + - mode: 3 path: path key: key - - mode: 6 + - mode: 3 path: path key: key secret: name: name optional: true items: - - mode: 6 + - mode: 3 path: path key: key - - mode: 6 + - mode: 3 path: path key: key serviceAccountToken: path: path audience: audience - expirationSeconds: 5 - defaultMode: 6 + expirationSeconds: 6 + clusterTrustBundle: + path: path + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + name: name + optional: true + signerName: signerName + defaultMode: 5 cephfs: path: path secretRef: @@ -117382,10 +144014,13 @@ components: endpoints: endpoints readOnly: true gcePersistentDisk: - partition: 2 + partition: 6 readOnly: true pdName: pdName fsType: fsType + image: + reference: reference + pullPolicy: pullPolicy photonPersistentDisk: pdID: pdID fsType: fsType @@ -117403,9 +144038,9 @@ components: readOnly: true fsType: fsType downwardAPI: - defaultMode: 3 + defaultMode: 6 items: - - mode: 6 + - mode: 1 path: path resourceFieldRef: divisor: divisor @@ -117414,7 +144049,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 6 + - mode: 1 path: path resourceFieldRef: divisor: divisor @@ -117424,7 +144059,7 @@ components: apiVersion: apiVersion fieldPath: fieldPath awsElasticBlockStore: - partition: 8 + partition: 9 volumeID: volumeID readOnly: true fsType: fsType @@ -117459,14 +144094,14 @@ components: - monitors - monitors configMap: - defaultMode: 9 + defaultMode: 6 name: name optional: true items: - - mode: 6 + - mode: 3 path: path key: key - - mode: 6 + - mode: 3 path: path key: key storageos: @@ -117506,7 +144141,7 @@ components: volumePath: volumePath fsType: fsType fc: - lun: 1 + lun: 2 targetWWNs: - targetWWNs - targetWWNs @@ -117593,10 +144228,8 @@ components: name: name namespace: namespace volumeName: volumeName + volumeAttributesClassName: volumeAttributesClassName resources: - claims: - - name: name - - name: name requests: {} limits: {} selector: @@ -117623,20 +144256,20 @@ components: volumeMode: volumeMode secret: secretName: secretName - defaultMode: 6 + defaultMode: 3 optional: true items: - - mode: 6 + - mode: 3 path: path key: key - - mode: 6 + - mode: 3 path: path key: key projected: sources: - downwardAPI: items: - - mode: 6 + - mode: 1 path: path resourceFieldRef: divisor: divisor @@ -117645,7 +144278,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 6 + - mode: 1 path: path resourceFieldRef: divisor: divisor @@ -117658,29 +144291,48 @@ components: name: name optional: true items: - - mode: 6 + - mode: 3 path: path key: key - - mode: 6 + - mode: 3 path: path key: key secret: name: name optional: true items: - - mode: 6 + - mode: 3 path: path key: key - - mode: 6 + - mode: 3 path: path key: key serviceAccountToken: path: path audience: audience - expirationSeconds: 5 + expirationSeconds: 6 + clusterTrustBundle: + path: path + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + name: name + optional: true + signerName: signerName - downwardAPI: items: - - mode: 6 + - mode: 1 path: path resourceFieldRef: divisor: divisor @@ -117689,7 +144341,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 6 + - mode: 1 path: path resourceFieldRef: divisor: divisor @@ -117702,27 +144354,46 @@ components: name: name optional: true items: - - mode: 6 + - mode: 3 path: path key: key - - mode: 6 + - mode: 3 path: path key: key secret: name: name optional: true items: - - mode: 6 + - mode: 3 path: path key: key - - mode: 6 + - mode: 3 path: path key: key serviceAccountToken: path: path audience: audience - expirationSeconds: 5 - defaultMode: 6 + expirationSeconds: 6 + clusterTrustBundle: + path: path + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + name: name + optional: true + signerName: signerName + defaultMode: 5 cephfs: path: path secretRef: @@ -117753,10 +144424,13 @@ components: endpoints: endpoints readOnly: true gcePersistentDisk: - partition: 2 + partition: 6 readOnly: true pdName: pdName fsType: fsType + image: + reference: reference + pullPolicy: pullPolicy photonPersistentDisk: pdID: pdID fsType: fsType @@ -117774,9 +144448,9 @@ components: readOnly: true fsType: fsType downwardAPI: - defaultMode: 3 + defaultMode: 6 items: - - mode: 6 + - mode: 1 path: path resourceFieldRef: divisor: divisor @@ -117785,7 +144459,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 6 + - mode: 1 path: path resourceFieldRef: divisor: divisor @@ -117795,7 +144469,7 @@ components: apiVersion: apiVersion fieldPath: fieldPath awsElasticBlockStore: - partition: 8 + partition: 9 volumeID: volumeID readOnly: true fsType: fsType @@ -117830,14 +144504,14 @@ components: - monitors - monitors configMap: - defaultMode: 9 + defaultMode: 6 name: name optional: true items: - - mode: 6 + - mode: 3 path: path key: key - - mode: 6 + - mode: 3 path: path key: key storageos: @@ -117877,7 +144551,7 @@ components: volumePath: volumePath fsType: fsType fc: - lun: 1 + lun: 2 targetWWNs: - targetWWNs - targetWWNs @@ -117889,6 +144563,14 @@ components: hostPath: path: path type: type + resources: + claims: + - request: request + name: name + - request: request + name: name + requests: {} + limits: {} ephemeralContainers: - volumeDevices: - devicePath: devicePath @@ -117912,6 +144594,9 @@ components: level: level type: type user: user + appArmorProfile: + localhostProfile: localhostProfile + type: type seccompProfile: localhostProfile: localhostProfile type: type @@ -117926,21 +144611,21 @@ components: runAsNonRoot: true readOnlyRootFilesystem: true startupProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -117956,28 +144641,32 @@ components: - protocol: protocol hostIP: hostIP name: name - containerPort: 4 - hostPort: 7 + containerPort: 7 + hostPort: 1 - protocol: protocol hostIP: hostIP name: name - containerPort: 4 - hostPort: 7 + containerPort: 7 + hostPort: 1 volumeMounts: - mountPath: mountPath mountPropagation: mountPropagation name: name readOnly: true subPath: subPath + recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - mountPath: mountPath mountPropagation: mountPropagation name: name readOnly: true subPath: subPath + recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr lifecycle: postStart: + sleep: + seconds: 5 tcpSocket: port: port host: host @@ -117996,6 +144685,8 @@ components: - name: name value: value preStop: + sleep: + seconds: 5 tcpSocket: port: port host: host @@ -118013,22 +144704,23 @@ components: value: value - name: name value: value + stopSignal: stopSignal readinessProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -118063,21 +144755,21 @@ components: image: image imagePullPolicy: imagePullPolicy livenessProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -118094,8 +144786,10 @@ components: workingDir: workingDir resources: claims: - - name: name - - name: name + - request: request + name: name + - request: request + name: name requests: {} limits: {} env: @@ -118167,6 +144861,9 @@ components: level: level type: type user: user + appArmorProfile: + localhostProfile: localhostProfile + type: type seccompProfile: localhostProfile: localhostProfile type: type @@ -118181,21 +144878,21 @@ components: runAsNonRoot: true readOnlyRootFilesystem: true startupProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -118211,28 +144908,32 @@ components: - protocol: protocol hostIP: hostIP name: name - containerPort: 4 - hostPort: 7 + containerPort: 7 + hostPort: 1 - protocol: protocol hostIP: hostIP name: name - containerPort: 4 - hostPort: 7 + containerPort: 7 + hostPort: 1 volumeMounts: - mountPath: mountPath mountPropagation: mountPropagation name: name readOnly: true subPath: subPath + recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - mountPath: mountPath mountPropagation: mountPropagation name: name readOnly: true subPath: subPath + recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr lifecycle: postStart: + sleep: + seconds: 5 tcpSocket: port: port host: host @@ -118251,6 +144952,8 @@ components: - name: name value: value preStop: + sleep: + seconds: 5 tcpSocket: port: port host: host @@ -118268,22 +144971,23 @@ components: value: value - name: name value: value + stopSignal: stopSignal readinessProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -118318,21 +145022,21 @@ components: image: image imagePullPolicy: imagePullPolicy livenessProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -118349,8 +145053,10 @@ components: workingDir: workingDir resources: claims: - - name: name - - name: name + - request: request + name: name + - request: request + name: name requests: {} limits: {} env: @@ -118401,19 +145107,17 @@ components: tty: true stdinOnce: true serviceAccount: serviceAccount - priority: 1 + priority: 6 restartPolicy: restartPolicy shareProcessNamespace: true hostUsers: true resourceClaims: - - name: name - source: - resourceClaimName: resourceClaimName - resourceClaimTemplateName: resourceClaimTemplateName - - name: name - source: - resourceClaimName: resourceClaimName - resourceClaimTemplateName: resourceClaimTemplateName + - resourceClaimName: resourceClaimName + name: name + resourceClaimTemplateName: resourceClaimTemplateName + - resourceClaimName: resourceClaimName + name: name + resourceClaimTemplateName: resourceClaimTemplateName subdomain: subdomain containers: - volumeDevices: @@ -118424,21 +145128,21 @@ components: image: image imagePullPolicy: imagePullPolicy livenessProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -118456,8 +145160,10 @@ components: workingDir: workingDir resources: claims: - - name: name - - name: name + - request: request + name: name + - request: request + name: name requests: {} limits: {} securityContext: @@ -118475,6 +145181,9 @@ components: level: level type: type user: user + appArmorProfile: + localhostProfile: localhostProfile + type: type seccompProfile: localhostProfile: localhostProfile type: type @@ -118489,21 +145198,21 @@ components: runAsNonRoot: true readOnlyRootFilesystem: true startupProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -118556,13 +145265,13 @@ components: - protocol: protocol hostIP: hostIP name: name - containerPort: 4 - hostPort: 7 + containerPort: 7 + hostPort: 1 - protocol: protocol hostIP: hostIP name: name - containerPort: 4 - hostPort: 7 + containerPort: 7 + hostPort: 1 restartPolicy: restartPolicy command: - command @@ -118573,18 +145282,22 @@ components: name: name readOnly: true subPath: subPath + recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - mountPath: mountPath mountPropagation: mountPropagation name: name readOnly: true subPath: subPath + recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr args: - args - args lifecycle: postStart: + sleep: + seconds: 5 tcpSocket: port: port host: host @@ -118603,6 +145316,8 @@ components: - name: name value: value preStop: + sleep: + seconds: 5 tcpSocket: port: port host: host @@ -118620,24 +145335,25 @@ components: value: value - name: name value: value + stopSignal: stopSignal name: name tty: true readinessProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -118678,21 +145394,21 @@ components: image: image imagePullPolicy: imagePullPolicy livenessProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -118710,8 +145426,10 @@ components: workingDir: workingDir resources: claims: - - name: name - - name: name + - request: request + name: name + - request: request + name: name requests: {} limits: {} securityContext: @@ -118729,6 +145447,9 @@ components: level: level type: type user: user + appArmorProfile: + localhostProfile: localhostProfile + type: type seccompProfile: localhostProfile: localhostProfile type: type @@ -118743,21 +145464,21 @@ components: runAsNonRoot: true readOnlyRootFilesystem: true startupProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -118810,13 +145531,13 @@ components: - protocol: protocol hostIP: hostIP name: name - containerPort: 4 - hostPort: 7 + containerPort: 7 + hostPort: 1 - protocol: protocol hostIP: hostIP name: name - containerPort: 4 - hostPort: 7 + containerPort: 7 + hostPort: 1 restartPolicy: restartPolicy command: - command @@ -118827,18 +145548,22 @@ components: name: name readOnly: true subPath: subPath + recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - mountPath: mountPath mountPropagation: mountPropagation name: name readOnly: true subPath: subPath + recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr args: - args - args lifecycle: postStart: + sleep: + seconds: 5 tcpSocket: port: port host: host @@ -118857,6 +145582,8 @@ components: - name: name value: value preStop: + sleep: + seconds: 5 tcpSocket: port: port host: host @@ -118874,24 +145601,25 @@ components: value: value - name: name value: value + stopSignal: stopSignal name: name tty: true readinessProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -118933,21 +145661,21 @@ components: image: image imagePullPolicy: imagePullPolicy livenessProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -118965,8 +145693,10 @@ components: workingDir: workingDir resources: claims: - - name: name - - name: name + - request: request + name: name + - request: request + name: name requests: {} limits: {} securityContext: @@ -118984,6 +145714,9 @@ components: level: level type: type user: user + appArmorProfile: + localhostProfile: localhostProfile + type: type seccompProfile: localhostProfile: localhostProfile type: type @@ -118998,21 +145731,21 @@ components: runAsNonRoot: true readOnlyRootFilesystem: true startupProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -119065,13 +145798,13 @@ components: - protocol: protocol hostIP: hostIP name: name - containerPort: 4 - hostPort: 7 + containerPort: 7 + hostPort: 1 - protocol: protocol hostIP: hostIP name: name - containerPort: 4 - hostPort: 7 + containerPort: 7 + hostPort: 1 restartPolicy: restartPolicy command: - command @@ -119082,18 +145815,22 @@ components: name: name readOnly: true subPath: subPath + recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - mountPath: mountPath mountPropagation: mountPropagation name: name readOnly: true subPath: subPath + recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr args: - args - args lifecycle: postStart: + sleep: + seconds: 5 tcpSocket: port: port host: host @@ -119112,6 +145849,8 @@ components: - name: name value: value preStop: + sleep: + seconds: 5 tcpSocket: port: port host: host @@ -119129,24 +145868,25 @@ components: value: value - name: name value: value + stopSignal: stopSignal name: name tty: true readinessProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -119187,21 +145927,21 @@ components: image: image imagePullPolicy: imagePullPolicy livenessProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -119219,8 +145959,10 @@ components: workingDir: workingDir resources: claims: - - name: name - - name: name + - request: request + name: name + - request: request + name: name requests: {} limits: {} securityContext: @@ -119238,6 +145980,9 @@ components: level: level type: type user: user + appArmorProfile: + localhostProfile: localhostProfile + type: type seccompProfile: localhostProfile: localhostProfile type: type @@ -119252,21 +145997,21 @@ components: runAsNonRoot: true readOnlyRootFilesystem: true startupProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -119319,13 +146064,13 @@ components: - protocol: protocol hostIP: hostIP name: name - containerPort: 4 - hostPort: 7 + containerPort: 7 + hostPort: 1 - protocol: protocol hostIP: hostIP name: name - containerPort: 4 - hostPort: 7 + containerPort: 7 + hostPort: 1 restartPolicy: restartPolicy command: - command @@ -119336,18 +146081,22 @@ components: name: name readOnly: true subPath: subPath + recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - mountPath: mountPath mountPropagation: mountPropagation name: name readOnly: true subPath: subPath + recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr args: - args - args lifecycle: postStart: + sleep: + seconds: 5 tcpSocket: port: port host: host @@ -119366,6 +146115,8 @@ components: - name: name value: value preStop: + sleep: + seconds: 5 tcpSocket: port: port host: host @@ -119383,24 +146134,25 @@ components: value: value - name: name value: value + stopSignal: stopSignal name: name tty: true readinessProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -119561,6 +146313,12 @@ components: matchLabels: key: matchLabels topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + mismatchLabelKeys: + - mismatchLabelKeys + - mismatchLabelKeys namespaces: - namespaces - namespaces @@ -119593,6 +146351,12 @@ components: matchLabels: key: matchLabels topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + mismatchLabelKeys: + - mismatchLabelKeys + - mismatchLabelKeys namespaces: - namespaces - namespaces @@ -119627,6 +146391,12 @@ components: matchLabels: key: matchLabels topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + mismatchLabelKeys: + - mismatchLabelKeys + - mismatchLabelKeys namespaces: - namespaces - namespaces @@ -119661,6 +146431,12 @@ components: matchLabels: key: matchLabels topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + mismatchLabelKeys: + - mismatchLabelKeys + - mismatchLabelKeys namespaces: - namespaces - namespaces @@ -119696,6 +146472,12 @@ components: matchLabels: key: matchLabels topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + mismatchLabelKeys: + - mismatchLabelKeys + - mismatchLabelKeys namespaces: - namespaces - namespaces @@ -119728,6 +146510,12 @@ components: matchLabels: key: matchLabels topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + mismatchLabelKeys: + - mismatchLabelKeys + - mismatchLabelKeys namespaces: - namespaces - namespaces @@ -119762,6 +146550,12 @@ components: matchLabels: key: matchLabels topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + mismatchLabelKeys: + - mismatchLabelKeys + - mismatchLabelKeys namespaces: - namespaces - namespaces @@ -119796,6 +146590,12 @@ components: matchLabels: key: matchLabels topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + mismatchLabelKeys: + - mismatchLabelKeys + - mismatchLabelKeys namespaces: - namespaces - namespaces @@ -119887,10 +146687,8 @@ components: name: name namespace: namespace volumeName: volumeName + volumeAttributesClassName: volumeAttributesClassName resources: - claims: - - name: name - - name: name requests: {} limits: {} selector: @@ -119918,6 +146716,7 @@ components: status: phase: phase allocatedResources: {} + currentVolumeAttributesClassName: currentVolumeAttributesClassName allocatedResourceStatuses: key: allocatedResourceStatuses accessModes: @@ -119936,6 +146735,9 @@ components: type: type lastProbeTime: 2000-01-23T04:56:07.000+00:00 status: status + modifyVolumeStatus: + targetVolumeAttributesClassName: targetVolumeAttributesClassName + status: status capacity: {} - metadata: generation: 6 @@ -119993,10 +146795,8 @@ components: name: name namespace: namespace volumeName: volumeName + volumeAttributesClassName: volumeAttributesClassName resources: - claims: - - name: name - - name: name requests: {} limits: {} selector: @@ -120024,6 +146824,7 @@ components: status: phase: phase allocatedResources: {} + currentVolumeAttributesClassName: currentVolumeAttributesClassName allocatedResourceStatuses: key: allocatedResourceStatuses accessModes: @@ -120042,6 +146843,9 @@ components: type: type lastProbeTime: 2000-01-23T04:56:07.000+00:00 status: status + modifyVolumeStatus: + targetVolumeAttributesClassName: targetVolumeAttributesClassName + status: status capacity: {} properties: minReadySeconds: @@ -120102,9 +146906,9 @@ components: items: $ref: '#/components/schemas/v1.PersistentVolumeClaim' type: array + x-kubernetes-list-type: atomic required: - selector - - serviceName - template type: object v1.StatefulSetStatus: @@ -120149,6 +146953,9 @@ components: $ref: '#/components/schemas/v1.StatefulSetCondition' type: array x-kubernetes-patch-strategy: merge + x-kubernetes-list-type: map + x-kubernetes-list-map-keys: + - type x-kubernetes-patch-merge-key: type currentReplicas: description: currentReplicas is the number of Pods created by the StatefulSet @@ -120444,6 +147251,7 @@ components: items: type: string type: array + x-kubernetes-list-type: atomic boundObjectRef: $ref: '#/components/schemas/v1.BoundObjectReference' expirationSeconds: @@ -120560,317 +147368,50 @@ components: type: string metadata: $ref: '#/components/schemas/v1.ObjectMeta' - spec: - $ref: '#/components/schemas/v1.TokenReviewSpec' - status: - $ref: '#/components/schemas/v1.TokenReviewStatus' - required: - - spec - type: object - x-kubernetes-group-version-kind: - - group: authentication.k8s.io - kind: TokenReview - version: v1 - x-implements: - - io.kubernetes.client.common.KubernetesObject - v1.TokenReviewSpec: - description: TokenReviewSpec is a description of the token authentication request. - example: - audiences: - - audiences - - audiences - token: token - properties: - audiences: - description: 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. - items: - type: string - type: array - token: - description: Token is the opaque bearer token. - type: string - type: object - v1.TokenReviewStatus: - description: TokenReviewStatus is the result of the token authentication request. - example: - authenticated: true - audiences: - - audiences - - audiences - error: error - user: - uid: uid - extra: - key: - - extra - - extra - groups: - - groups - - groups - username: username - properties: - audiences: - description: 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. - items: - type: string - type: array - authenticated: - description: Authenticated indicates that the token was associated with - a known user. - type: boolean - error: - description: Error indicates that the token couldn't be checked - type: string - user: - $ref: '#/components/schemas/v1.UserInfo' - type: object - v1.UserInfo: - description: UserInfo holds the information about the user needed to implement - the user.Info interface. - example: - uid: uid - extra: - key: - - extra - - extra - groups: - - groups - - groups - username: username - properties: - extra: - additionalProperties: - items: - type: string - type: array - description: Any additional information provided by the authenticator. - type: object - groups: - description: The names of groups this user is a part of. - items: - type: string - type: array - uid: - description: 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. - type: string - username: - description: The name that uniquely identifies this user among all active - users. - type: string - type: object - v1alpha1.SelfSubjectReview: - 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. - example: - metadata: - generation: 6 - finalizers: - - finalizers - - finalizers - resourceVersion: resourceVersion - annotations: - key: annotations - generateName: generateName - deletionTimestamp: 2000-01-23T04:56:07.000+00:00 - labels: - key: labels - ownerReferences: - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - selfLink: selfLink - deletionGracePeriodSeconds: 0 - uid: uid - managedFields: - - apiVersion: apiVersion - fieldsV1: '{}' - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - - apiVersion: apiVersion - fieldsV1: '{}' - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - creationTimestamp: 2000-01-23T04:56:07.000+00:00 - name: name - namespace: namespace - apiVersion: apiVersion - kind: kind - status: - userInfo: - uid: uid - extra: - key: - - extra - - extra - groups: - - groups - - groups - username: username - properties: - apiVersion: - description: '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' - type: string - kind: - description: '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' - type: string - metadata: - $ref: '#/components/schemas/v1.ObjectMeta' - status: - $ref: '#/components/schemas/v1alpha1.SelfSubjectReviewStatus' - type: object - x-kubernetes-group-version-kind: - - group: authentication.k8s.io - kind: SelfSubjectReview - version: v1alpha1 - x-implements: - - io.kubernetes.client.common.KubernetesObject - v1alpha1.SelfSubjectReviewStatus: - description: SelfSubjectReviewStatus is filled by the kube-apiserver and sent - back to a user. - example: - userInfo: - uid: uid - extra: - key: - - extra - - extra - groups: - - groups - - groups - username: username - properties: - userInfo: - $ref: '#/components/schemas/v1.UserInfo' - type: object - v1beta1.SelfSubjectReview: - 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. - example: - metadata: - generation: 6 - finalizers: - - finalizers - - finalizers - resourceVersion: resourceVersion - annotations: - key: annotations - generateName: generateName - deletionTimestamp: 2000-01-23T04:56:07.000+00:00 - labels: - key: labels - ownerReferences: - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - selfLink: selfLink - deletionGracePeriodSeconds: 0 - uid: uid - managedFields: - - apiVersion: apiVersion - fieldsV1: '{}' - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - - apiVersion: apiVersion - fieldsV1: '{}' - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - creationTimestamp: 2000-01-23T04:56:07.000+00:00 - name: name - namespace: namespace - apiVersion: apiVersion - kind: kind - status: - userInfo: - uid: uid - extra: - key: - - extra - - extra - groups: - - groups - - groups - username: username - properties: - apiVersion: - description: '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' - type: string - kind: - description: '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' - type: string - metadata: - $ref: '#/components/schemas/v1.ObjectMeta' + spec: + $ref: '#/components/schemas/v1.TokenReviewSpec' status: - $ref: '#/components/schemas/v1beta1.SelfSubjectReviewStatus' + $ref: '#/components/schemas/v1.TokenReviewStatus' + required: + - spec type: object x-kubernetes-group-version-kind: - group: authentication.k8s.io - kind: SelfSubjectReview - version: v1beta1 + kind: TokenReview + version: v1 x-implements: - io.kubernetes.client.common.KubernetesObject - v1beta1.SelfSubjectReviewStatus: - description: SelfSubjectReviewStatus is filled by the kube-apiserver and sent - back to a user. + v1.TokenReviewSpec: + description: TokenReviewSpec is a description of the token authentication request. example: - userInfo: + audiences: + - audiences + - audiences + token: token + properties: + audiences: + description: 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. + items: + type: string + type: array + x-kubernetes-list-type: atomic + token: + description: Token is the opaque bearer token. + type: string + type: object + v1.TokenReviewStatus: + description: TokenReviewStatus is the result of the token authentication request. + example: + authenticated: true + audiences: + - audiences + - audiences + error: error + user: uid: uid extra: key: @@ -120881,9 +147422,157 @@ components: - groups username: username properties: - userInfo: + audiences: + description: 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. + items: + type: string + type: array + x-kubernetes-list-type: atomic + authenticated: + description: Authenticated indicates that the token was associated with + a known user. + type: boolean + error: + description: Error indicates that the token couldn't be checked + type: string + user: $ref: '#/components/schemas/v1.UserInfo' type: object + v1.UserInfo: + description: UserInfo holds the information about the user needed to implement + the user.Info interface. + example: + uid: uid + extra: + key: + - extra + - extra + groups: + - groups + - groups + username: username + properties: + extra: + additionalProperties: + items: + type: string + type: array + description: Any additional information provided by the authenticator. + type: object + groups: + description: The names of groups this user is a part of. + items: + type: string + type: array + x-kubernetes-list-type: atomic + uid: + description: 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. + type: string + username: + description: The name that uniquely identifies this user among all active + users. + type: string + type: object + v1.FieldSelectorAttributes: + 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.' + example: + requirements: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + rawSelector: rawSelector + properties: + rawSelector: + description: 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. + type: string + requirements: + description: 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. + items: + $ref: '#/components/schemas/v1.FieldSelectorRequirement' + type: array + x-kubernetes-list-type: atomic + type: object + v1.LabelSelectorAttributes: + 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.' + example: + requirements: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + rawSelector: rawSelector + properties: + rawSelector: + description: 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. + type: string + requirements: + description: 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. + items: + $ref: '#/components/schemas/v1.LabelSelectorRequirement' + type: array + x-kubernetes-list-type: atomic + type: object v1.LocalSubjectAccessReview: description: LocalSubjectAccessReview checks whether or not a user or group can perform an action in a given namespace. Having a namespace scoped resource @@ -120953,9 +147642,35 @@ components: resourceAttributes: resource: resource subresource: subresource + labelSelector: + requirements: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + rawSelector: rawSelector name: name namespace: namespace verb: verb + fieldSelector: + requirements: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + rawSelector: rawSelector version: version group: group user: user @@ -121022,12 +147737,14 @@ components: items: type: string type: array + x-kubernetes-list-type: atomic verbs: description: 'Verb is a list of kubernetes non-resource API verbs, like: get, post, put, delete, patch, head, options. "*" means all.' items: type: string type: array + x-kubernetes-list-type: atomic required: - verbs type: object @@ -121037,15 +147754,45 @@ components: example: resource: resource subresource: subresource + labelSelector: + requirements: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + rawSelector: rawSelector name: name namespace: namespace verb: verb + fieldSelector: + requirements: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + rawSelector: rawSelector version: version group: group properties: + fieldSelector: + $ref: '#/components/schemas/v1.FieldSelectorAttributes' group: description: Group is the API Group of the Resource. "*" means all. type: string + labelSelector: + $ref: '#/components/schemas/v1.LabelSelectorAttributes' name: description: Name is the name of the resource being requested for a "get" or deleted for a "delete". "" (empty) means all. @@ -121099,6 +147846,7 @@ components: items: type: string type: array + x-kubernetes-list-type: atomic resourceNames: description: ResourceNames is an optional white list of names that the rule applies to. An empty set means that everything is allowed. "*" means @@ -121106,6 +147854,7 @@ components: items: type: string type: array + x-kubernetes-list-type: atomic resources: description: |- Resources is a list of resources this rule applies to. "*" means all in the specified apiGroups. @@ -121113,12 +147862,14 @@ components: items: type: string type: array + x-kubernetes-list-type: atomic verbs: description: 'Verb is a list of kubernetes resource API verbs, like: get, list, watch, create, update, delete, proxy. "*" means all.' items: type: string type: array + x-kubernetes-list-type: atomic required: - verbs type: object @@ -121183,9 +147934,35 @@ components: resourceAttributes: resource: resource subresource: subresource + labelSelector: + requirements: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + rawSelector: rawSelector name: name namespace: namespace verb: verb + fieldSelector: + requirements: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + rawSelector: rawSelector version: version group: group status: @@ -121230,9 +148007,35 @@ components: resourceAttributes: resource: resource subresource: subresource + labelSelector: + requirements: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + rawSelector: rawSelector name: name namespace: namespace verb: verb + fieldSelector: + requirements: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + rawSelector: rawSelector version: version group: group properties: @@ -121445,9 +148248,35 @@ components: resourceAttributes: resource: resource subresource: subresource + labelSelector: + requirements: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + rawSelector: rawSelector name: name namespace: namespace verb: verb + fieldSelector: + requirements: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + rawSelector: rawSelector version: version group: group user: user @@ -121501,9 +148330,35 @@ components: resourceAttributes: resource: resource subresource: subresource + labelSelector: + requirements: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + rawSelector: rawSelector name: name namespace: namespace verb: verb + fieldSelector: + requirements: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + rawSelector: rawSelector version: version group: group user: user @@ -121522,6 +148377,7 @@ components: items: type: string type: array + x-kubernetes-list-type: atomic nonResourceAttributes: $ref: '#/components/schemas/v1.NonResourceAttributes' resourceAttributes: @@ -121633,6 +148489,7 @@ components: items: $ref: '#/components/schemas/v1.NonResourceRule' type: array + x-kubernetes-list-type: atomic resourceRules: description: ResourceRules is the list of actions the subject is allowed to perform on resources. The list ordering isn't significant, may contain @@ -121640,6 +148497,7 @@ components: items: $ref: '#/components/schemas/v1.ResourceRule' type: array + x-kubernetes-list-type: atomic required: - incomplete - nonResourceRules @@ -122282,12 +149140,12 @@ components: - value type: object v2.HPAScalingRules: - 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. + description: |- + HPAScalingRules configures the scaling behavior for one direction via scaling Policy Rules and a configurable metric tolerance. + + Scaling Policy 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. + + The tolerance is applied to the metric values and prevents scaling too eagerly for small metric variations. (Note that setting a tolerance requires enabling the alpha HPAConfigurableTolerance feature gate.) example: selectPolicy: selectPolicy stabilizationWindowSeconds: 1 @@ -122298,11 +149156,14 @@ components: - periodSeconds: 0 type: type value: 6 + tolerance: tolerance properties: policies: - description: 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 + description: 'policies is a list of potential scaling polices which can + be used during scaling. If not set, use the default values: - For scale + up: allow doubling the number of pods, or an absolute change of 4 pods + in a 15s window. - For scale down: allow all pods to be removed in a 15s + window.' items: $ref: '#/components/schemas/v2.HPAScalingPolicy' type: array @@ -122320,6 +149181,44 @@ components: down: 300 (i.e. the stabilization window is 300 seconds long).' format: int32 type: integer + tolerance: + description: "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.\n\nThe serialization format is:\n\n\ + ``` ::= \n\n\t(Note that \ + \ may be empty, from the \"\" case in .)\n\n \ + \ ::= 0 | 1 | ... | 9 ::= | \ + \ ::= | . | . | .\ + \ ::= \"+\" | \"-\" ::= |\ + \ ::= | \ + \ | ::= Ki | Mi | Gi | Ti | Pi | Ei\n\n\t\ + (International System of units; See: http://physics.nist.gov/cuu/Units/binary.html)\n\ + \n ::= m | \"\" | k | M | G | T | P | E\n\n\t(Note that\ + \ 1024 = 1Ki but 1000 = 1k; I didn't choose the capitalization.)\n\n\ + \ ::= \"e\" | \"E\" ```\n\nNo 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.\n\nWhen 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.\n\nBefore 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:\n\n- No precision is lost - No fractional digits\ + \ will be emitted - The exponent (or suffix) is as large as possible.\n\ + \nThe sign will be omitted unless the number is negative.\n\nExamples:\n\ + \n- 1.5 will be serialized as \"1500m\" - 1.5Gi will be serialized as\ + \ \"1536Mi\"\n\nNote that the quantity will NEVER be internally represented\ + \ by a floating point number. That is the whole point of this exercise.\n\ + \nNon-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.)\n\nThis 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." + format: quantity + type: string type: object v2.HorizontalPodAutoscaler: description: HorizontalPodAutoscaler is the configuration for a horizontal pod @@ -122561,6 +149460,7 @@ components: - periodSeconds: 0 type: type value: 6 + tolerance: tolerance scaleDown: selectPolicy: selectPolicy stabilizationWindowSeconds: 1 @@ -122571,6 +149471,7 @@ components: - periodSeconds: 0 type: type value: 6 + tolerance: tolerance scaleTargetRef: apiVersion: apiVersion kind: kind @@ -122793,6 +149694,7 @@ components: - periodSeconds: 0 type: type value: 6 + tolerance: tolerance scaleDown: selectPolicy: selectPolicy stabilizationWindowSeconds: 1 @@ -122803,6 +149705,7 @@ components: - periodSeconds: 0 type: type value: 6 + tolerance: tolerance properties: scaleDown: $ref: '#/components/schemas/v2.HPAScalingRules' @@ -123088,6 +149991,7 @@ components: - periodSeconds: 0 type: type value: 6 + tolerance: tolerance scaleDown: selectPolicy: selectPolicy stabilizationWindowSeconds: 1 @@ -123098,6 +150002,7 @@ components: - periodSeconds: 0 type: type value: 6 + tolerance: tolerance scaleTargetRef: apiVersion: apiVersion kind: kind @@ -123516,6 +150421,7 @@ components: - periodSeconds: 0 type: type value: 6 + tolerance: tolerance scaleDown: selectPolicy: selectPolicy stabilizationWindowSeconds: 1 @@ -123526,6 +150432,7 @@ components: - periodSeconds: 0 type: type value: 6 + tolerance: tolerance scaleTargetRef: apiVersion: apiVersion kind: kind @@ -123926,6 +150833,7 @@ components: - periodSeconds: 0 type: type value: 6 + tolerance: tolerance scaleDown: selectPolicy: selectPolicy stabilizationWindowSeconds: 1 @@ -123936,6 +150844,7 @@ components: - periodSeconds: 0 type: type value: 6 + tolerance: tolerance scaleTargetRef: apiVersion: apiVersion kind: kind @@ -124331,10 +151240,9 @@ components: resource: $ref: '#/components/schemas/v2.ResourceMetricSource' type: - description: 'type is the type of metric source. It should be one of "ContainerResource", + description: 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' + field in the object. type: string required: - type @@ -124435,10 +151343,9 @@ components: resource: $ref: '#/components/schemas/v2.ResourceMetricStatus' type: - description: 'type is the type of metric source. It will be one of "ContainerResource", + description: 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' + field in the object. type: string required: - type @@ -124981,7 +151888,7 @@ components: spec: dnsPolicy: dnsPolicy nodeName: nodeName - terminationGracePeriodSeconds: 5 + terminationGracePeriodSeconds: 9 dnsConfig: searches: - searches @@ -125013,32 +151920,37 @@ components: - hostnames - hostnames securityContext: - runAsUser: 1 seLinuxOptions: role: role level: level type: type user: user - fsGroup: 6 - seccompProfile: + appArmorProfile: localhostProfile: localhostProfile type: type - windowsOptions: - gmsaCredentialSpec: gmsaCredentialSpec - runAsUserName: runAsUserName - hostProcess: true - gmsaCredentialSpecName: gmsaCredentialSpecName + fsGroup: 7 fsGroupChangePolicy: fsGroupChangePolicy - supplementalGroups: - - 4 - - 4 - runAsGroup: 7 + seLinuxChangePolicy: seLinuxChangePolicy + runAsGroup: 1 runAsNonRoot: true sysctls: - name: name value: value - name: name value: value + runAsUser: 4 + seccompProfile: + localhostProfile: localhostProfile + type: type + windowsOptions: + gmsaCredentialSpec: gmsaCredentialSpec + runAsUserName: runAsUserName + hostProcess: true + gmsaCredentialSpecName: gmsaCredentialSpecName + supplementalGroups: + - 5 + - 5 + supplementalGroupsPolicy: supplementalGroupsPolicy preemptionPolicy: preemptionPolicy nodeSelector: key: nodeSelector @@ -125070,7 +151982,7 @@ components: topologySpreadConstraints: - nodeTaintsPolicy: nodeTaintsPolicy whenUnsatisfiable: whenUnsatisfiable - maxSkew: 9 + maxSkew: 6 nodeAffinityPolicy: nodeAffinityPolicy labelSelector: matchExpressions: @@ -125086,14 +151998,14 @@ components: operator: operator matchLabels: key: matchLabels - minDomains: 6 + minDomains: 8 topologyKey: topologyKey matchLabelKeys: - matchLabelKeys - matchLabelKeys - nodeTaintsPolicy: nodeTaintsPolicy whenUnsatisfiable: whenUnsatisfiable - maxSkew: 9 + maxSkew: 6 nodeAffinityPolicy: nodeAffinityPolicy labelSelector: matchExpressions: @@ -125109,7 +152021,7 @@ components: operator: operator matchLabels: key: matchLabels - minDomains: 6 + minDomains: 8 topologyKey: topologyKey matchLabelKeys: - matchLabelKeys @@ -125190,10 +152102,8 @@ components: name: name namespace: namespace volumeName: volumeName + volumeAttributesClassName: volumeAttributesClassName resources: - claims: - - name: name - - name: name requests: {} limits: {} selector: @@ -125220,20 +152130,20 @@ components: volumeMode: volumeMode secret: secretName: secretName - defaultMode: 6 + defaultMode: 3 optional: true items: - - mode: 6 + - mode: 3 path: path key: key - - mode: 6 + - mode: 3 path: path key: key projected: sources: - downwardAPI: items: - - mode: 6 + - mode: 1 path: path resourceFieldRef: divisor: divisor @@ -125242,7 +152152,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 6 + - mode: 1 path: path resourceFieldRef: divisor: divisor @@ -125255,29 +152165,48 @@ components: name: name optional: true items: - - mode: 6 + - mode: 3 path: path key: key - - mode: 6 + - mode: 3 path: path key: key secret: name: name optional: true items: - - mode: 6 + - mode: 3 path: path key: key - - mode: 6 + - mode: 3 path: path key: key serviceAccountToken: path: path audience: audience - expirationSeconds: 5 + expirationSeconds: 6 + clusterTrustBundle: + path: path + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + name: name + optional: true + signerName: signerName - downwardAPI: items: - - mode: 6 + - mode: 1 path: path resourceFieldRef: divisor: divisor @@ -125286,7 +152215,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 6 + - mode: 1 path: path resourceFieldRef: divisor: divisor @@ -125299,27 +152228,46 @@ components: name: name optional: true items: - - mode: 6 + - mode: 3 path: path key: key - - mode: 6 + - mode: 3 path: path key: key secret: name: name optional: true items: - - mode: 6 + - mode: 3 path: path key: key - - mode: 6 + - mode: 3 path: path key: key serviceAccountToken: path: path audience: audience - expirationSeconds: 5 - defaultMode: 6 + expirationSeconds: 6 + clusterTrustBundle: + path: path + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + name: name + optional: true + signerName: signerName + defaultMode: 5 cephfs: path: path secretRef: @@ -125350,10 +152298,13 @@ components: endpoints: endpoints readOnly: true gcePersistentDisk: - partition: 2 + partition: 6 readOnly: true pdName: pdName fsType: fsType + image: + reference: reference + pullPolicy: pullPolicy photonPersistentDisk: pdID: pdID fsType: fsType @@ -125371,9 +152322,9 @@ components: readOnly: true fsType: fsType downwardAPI: - defaultMode: 3 + defaultMode: 6 items: - - mode: 6 + - mode: 1 path: path resourceFieldRef: divisor: divisor @@ -125382,7 +152333,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 6 + - mode: 1 path: path resourceFieldRef: divisor: divisor @@ -125392,7 +152343,7 @@ components: apiVersion: apiVersion fieldPath: fieldPath awsElasticBlockStore: - partition: 8 + partition: 9 volumeID: volumeID readOnly: true fsType: fsType @@ -125427,14 +152378,14 @@ components: - monitors - monitors configMap: - defaultMode: 9 + defaultMode: 6 name: name optional: true items: - - mode: 6 + - mode: 3 path: path key: key - - mode: 6 + - mode: 3 path: path key: key storageos: @@ -125474,7 +152425,7 @@ components: volumePath: volumePath fsType: fsType fc: - lun: 1 + lun: 2 targetWWNs: - targetWWNs - targetWWNs @@ -125561,10 +152512,8 @@ components: name: name namespace: namespace volumeName: volumeName + volumeAttributesClassName: volumeAttributesClassName resources: - claims: - - name: name - - name: name requests: {} limits: {} selector: @@ -125591,20 +152540,20 @@ components: volumeMode: volumeMode secret: secretName: secretName - defaultMode: 6 + defaultMode: 3 optional: true items: - - mode: 6 + - mode: 3 path: path key: key - - mode: 6 + - mode: 3 path: path key: key projected: sources: - downwardAPI: items: - - mode: 6 + - mode: 1 path: path resourceFieldRef: divisor: divisor @@ -125613,7 +152562,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 6 + - mode: 1 path: path resourceFieldRef: divisor: divisor @@ -125626,29 +152575,48 @@ components: name: name optional: true items: - - mode: 6 + - mode: 3 path: path key: key - - mode: 6 + - mode: 3 path: path key: key secret: name: name optional: true items: - - mode: 6 + - mode: 3 path: path key: key - - mode: 6 + - mode: 3 path: path key: key serviceAccountToken: path: path audience: audience - expirationSeconds: 5 + expirationSeconds: 6 + clusterTrustBundle: + path: path + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + name: name + optional: true + signerName: signerName - downwardAPI: items: - - mode: 6 + - mode: 1 path: path resourceFieldRef: divisor: divisor @@ -125657,7 +152625,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 6 + - mode: 1 path: path resourceFieldRef: divisor: divisor @@ -125670,27 +152638,46 @@ components: name: name optional: true items: - - mode: 6 + - mode: 3 path: path key: key - - mode: 6 + - mode: 3 path: path key: key secret: name: name optional: true items: - - mode: 6 + - mode: 3 path: path key: key - - mode: 6 + - mode: 3 path: path key: key serviceAccountToken: path: path audience: audience - expirationSeconds: 5 - defaultMode: 6 + expirationSeconds: 6 + clusterTrustBundle: + path: path + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + name: name + optional: true + signerName: signerName + defaultMode: 5 cephfs: path: path secretRef: @@ -125721,10 +152708,13 @@ components: endpoints: endpoints readOnly: true gcePersistentDisk: - partition: 2 + partition: 6 readOnly: true pdName: pdName fsType: fsType + image: + reference: reference + pullPolicy: pullPolicy photonPersistentDisk: pdID: pdID fsType: fsType @@ -125742,9 +152732,9 @@ components: readOnly: true fsType: fsType downwardAPI: - defaultMode: 3 + defaultMode: 6 items: - - mode: 6 + - mode: 1 path: path resourceFieldRef: divisor: divisor @@ -125753,7 +152743,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 6 + - mode: 1 path: path resourceFieldRef: divisor: divisor @@ -125763,7 +152753,7 @@ components: apiVersion: apiVersion fieldPath: fieldPath awsElasticBlockStore: - partition: 8 + partition: 9 volumeID: volumeID readOnly: true fsType: fsType @@ -125798,14 +152788,14 @@ components: - monitors - monitors configMap: - defaultMode: 9 + defaultMode: 6 name: name optional: true items: - - mode: 6 + - mode: 3 path: path key: key - - mode: 6 + - mode: 3 path: path key: key storageos: @@ -125845,7 +152835,7 @@ components: volumePath: volumePath fsType: fsType fc: - lun: 1 + lun: 2 targetWWNs: - targetWWNs - targetWWNs @@ -125857,6 +152847,14 @@ components: hostPath: path: path type: type + resources: + claims: + - request: request + name: name + - request: request + name: name + requests: {} + limits: {} ephemeralContainers: - volumeDevices: - devicePath: devicePath @@ -125880,6 +152878,9 @@ components: level: level type: type user: user + appArmorProfile: + localhostProfile: localhostProfile + type: type seccompProfile: localhostProfile: localhostProfile type: type @@ -125894,21 +152895,21 @@ components: runAsNonRoot: true readOnlyRootFilesystem: true startupProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -125924,28 +152925,32 @@ components: - protocol: protocol hostIP: hostIP name: name - containerPort: 4 - hostPort: 7 + containerPort: 7 + hostPort: 1 - protocol: protocol hostIP: hostIP name: name - containerPort: 4 - hostPort: 7 + containerPort: 7 + hostPort: 1 volumeMounts: - mountPath: mountPath mountPropagation: mountPropagation name: name readOnly: true subPath: subPath + recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - mountPath: mountPath mountPropagation: mountPropagation name: name readOnly: true subPath: subPath + recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr lifecycle: postStart: + sleep: + seconds: 5 tcpSocket: port: port host: host @@ -125964,6 +152969,8 @@ components: - name: name value: value preStop: + sleep: + seconds: 5 tcpSocket: port: port host: host @@ -125981,22 +152988,23 @@ components: value: value - name: name value: value + stopSignal: stopSignal readinessProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -126031,21 +153039,21 @@ components: image: image imagePullPolicy: imagePullPolicy livenessProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -126062,8 +153070,10 @@ components: workingDir: workingDir resources: claims: - - name: name - - name: name + - request: request + name: name + - request: request + name: name requests: {} limits: {} env: @@ -126135,6 +153145,9 @@ components: level: level type: type user: user + appArmorProfile: + localhostProfile: localhostProfile + type: type seccompProfile: localhostProfile: localhostProfile type: type @@ -126149,21 +153162,21 @@ components: runAsNonRoot: true readOnlyRootFilesystem: true startupProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -126179,28 +153192,32 @@ components: - protocol: protocol hostIP: hostIP name: name - containerPort: 4 - hostPort: 7 + containerPort: 7 + hostPort: 1 - protocol: protocol hostIP: hostIP name: name - containerPort: 4 - hostPort: 7 + containerPort: 7 + hostPort: 1 volumeMounts: - mountPath: mountPath mountPropagation: mountPropagation name: name readOnly: true subPath: subPath + recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - mountPath: mountPath mountPropagation: mountPropagation name: name readOnly: true subPath: subPath + recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr lifecycle: postStart: + sleep: + seconds: 5 tcpSocket: port: port host: host @@ -126219,6 +153236,8 @@ components: - name: name value: value preStop: + sleep: + seconds: 5 tcpSocket: port: port host: host @@ -126236,22 +153255,23 @@ components: value: value - name: name value: value + stopSignal: stopSignal readinessProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -126286,21 +153306,21 @@ components: image: image imagePullPolicy: imagePullPolicy livenessProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -126317,8 +153337,10 @@ components: workingDir: workingDir resources: claims: - - name: name - - name: name + - request: request + name: name + - request: request + name: name requests: {} limits: {} env: @@ -126369,19 +153391,17 @@ components: tty: true stdinOnce: true serviceAccount: serviceAccount - priority: 1 + priority: 6 restartPolicy: restartPolicy shareProcessNamespace: true hostUsers: true resourceClaims: - - name: name - source: - resourceClaimName: resourceClaimName - resourceClaimTemplateName: resourceClaimTemplateName - - name: name - source: - resourceClaimName: resourceClaimName - resourceClaimTemplateName: resourceClaimTemplateName + - resourceClaimName: resourceClaimName + name: name + resourceClaimTemplateName: resourceClaimTemplateName + - resourceClaimName: resourceClaimName + name: name + resourceClaimTemplateName: resourceClaimTemplateName subdomain: subdomain containers: - volumeDevices: @@ -126392,21 +153412,21 @@ components: image: image imagePullPolicy: imagePullPolicy livenessProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -126424,8 +153444,10 @@ components: workingDir: workingDir resources: claims: - - name: name - - name: name + - request: request + name: name + - request: request + name: name requests: {} limits: {} securityContext: @@ -126443,6 +153465,9 @@ components: level: level type: type user: user + appArmorProfile: + localhostProfile: localhostProfile + type: type seccompProfile: localhostProfile: localhostProfile type: type @@ -126457,21 +153482,21 @@ components: runAsNonRoot: true readOnlyRootFilesystem: true startupProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -126524,13 +153549,13 @@ components: - protocol: protocol hostIP: hostIP name: name - containerPort: 4 - hostPort: 7 + containerPort: 7 + hostPort: 1 - protocol: protocol hostIP: hostIP name: name - containerPort: 4 - hostPort: 7 + containerPort: 7 + hostPort: 1 restartPolicy: restartPolicy command: - command @@ -126541,18 +153566,22 @@ components: name: name readOnly: true subPath: subPath + recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - mountPath: mountPath mountPropagation: mountPropagation name: name readOnly: true subPath: subPath + recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr args: - args - args lifecycle: postStart: + sleep: + seconds: 5 tcpSocket: port: port host: host @@ -126571,6 +153600,8 @@ components: - name: name value: value preStop: + sleep: + seconds: 5 tcpSocket: port: port host: host @@ -126588,24 +153619,25 @@ components: value: value - name: name value: value + stopSignal: stopSignal name: name tty: true readinessProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -126646,21 +153678,21 @@ components: image: image imagePullPolicy: imagePullPolicy livenessProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -126678,8 +153710,10 @@ components: workingDir: workingDir resources: claims: - - name: name - - name: name + - request: request + name: name + - request: request + name: name requests: {} limits: {} securityContext: @@ -126697,6 +153731,9 @@ components: level: level type: type user: user + appArmorProfile: + localhostProfile: localhostProfile + type: type seccompProfile: localhostProfile: localhostProfile type: type @@ -126711,21 +153748,21 @@ components: runAsNonRoot: true readOnlyRootFilesystem: true startupProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -126778,13 +153815,13 @@ components: - protocol: protocol hostIP: hostIP name: name - containerPort: 4 - hostPort: 7 + containerPort: 7 + hostPort: 1 - protocol: protocol hostIP: hostIP name: name - containerPort: 4 - hostPort: 7 + containerPort: 7 + hostPort: 1 restartPolicy: restartPolicy command: - command @@ -126795,18 +153832,22 @@ components: name: name readOnly: true subPath: subPath + recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - mountPath: mountPath mountPropagation: mountPropagation name: name readOnly: true subPath: subPath + recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr args: - args - args lifecycle: postStart: + sleep: + seconds: 5 tcpSocket: port: port host: host @@ -126825,6 +153866,8 @@ components: - name: name value: value preStop: + sleep: + seconds: 5 tcpSocket: port: port host: host @@ -126842,24 +153885,25 @@ components: value: value - name: name value: value + stopSignal: stopSignal name: name tty: true readinessProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -126901,21 +153945,21 @@ components: image: image imagePullPolicy: imagePullPolicy livenessProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -126933,8 +153977,10 @@ components: workingDir: workingDir resources: claims: - - name: name - - name: name + - request: request + name: name + - request: request + name: name requests: {} limits: {} securityContext: @@ -126952,6 +153998,9 @@ components: level: level type: type user: user + appArmorProfile: + localhostProfile: localhostProfile + type: type seccompProfile: localhostProfile: localhostProfile type: type @@ -126966,21 +154015,21 @@ components: runAsNonRoot: true readOnlyRootFilesystem: true startupProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -127033,13 +154082,13 @@ components: - protocol: protocol hostIP: hostIP name: name - containerPort: 4 - hostPort: 7 + containerPort: 7 + hostPort: 1 - protocol: protocol hostIP: hostIP name: name - containerPort: 4 - hostPort: 7 + containerPort: 7 + hostPort: 1 restartPolicy: restartPolicy command: - command @@ -127050,18 +154099,22 @@ components: name: name readOnly: true subPath: subPath + recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - mountPath: mountPath mountPropagation: mountPropagation name: name readOnly: true subPath: subPath + recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr args: - args - args lifecycle: postStart: + sleep: + seconds: 5 tcpSocket: port: port host: host @@ -127080,6 +154133,8 @@ components: - name: name value: value preStop: + sleep: + seconds: 5 tcpSocket: port: port host: host @@ -127097,24 +154152,25 @@ components: value: value - name: name value: value + stopSignal: stopSignal name: name tty: true readinessProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -127155,21 +154211,21 @@ components: image: image imagePullPolicy: imagePullPolicy livenessProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -127187,8 +154243,10 @@ components: workingDir: workingDir resources: claims: - - name: name - - name: name + - request: request + name: name + - request: request + name: name requests: {} limits: {} securityContext: @@ -127206,6 +154264,9 @@ components: level: level type: type user: user + appArmorProfile: + localhostProfile: localhostProfile + type: type seccompProfile: localhostProfile: localhostProfile type: type @@ -127220,21 +154281,21 @@ components: runAsNonRoot: true readOnlyRootFilesystem: true startupProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -127287,13 +154348,13 @@ components: - protocol: protocol hostIP: hostIP name: name - containerPort: 4 - hostPort: 7 + containerPort: 7 + hostPort: 1 - protocol: protocol hostIP: hostIP name: name - containerPort: 4 - hostPort: 7 + containerPort: 7 + hostPort: 1 restartPolicy: restartPolicy command: - command @@ -127304,18 +154365,22 @@ components: name: name readOnly: true subPath: subPath + recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - mountPath: mountPath mountPropagation: mountPropagation name: name readOnly: true subPath: subPath + recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr args: - args - args lifecycle: postStart: + sleep: + seconds: 5 tcpSocket: port: port host: host @@ -127334,6 +154399,8 @@ components: - name: name value: value preStop: + sleep: + seconds: 5 tcpSocket: port: port host: host @@ -127351,24 +154418,25 @@ components: value: value - name: name value: value + stopSignal: stopSignal name: name tty: true readinessProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -127529,6 +154597,12 @@ components: matchLabels: key: matchLabels topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + mismatchLabelKeys: + - mismatchLabelKeys + - mismatchLabelKeys namespaces: - namespaces - namespaces @@ -127561,6 +154635,12 @@ components: matchLabels: key: matchLabels topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + mismatchLabelKeys: + - mismatchLabelKeys + - mismatchLabelKeys namespaces: - namespaces - namespaces @@ -127595,6 +154675,12 @@ components: matchLabels: key: matchLabels topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + mismatchLabelKeys: + - mismatchLabelKeys + - mismatchLabelKeys namespaces: - namespaces - namespaces @@ -127629,6 +154715,12 @@ components: matchLabels: key: matchLabels topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + mismatchLabelKeys: + - mismatchLabelKeys + - mismatchLabelKeys namespaces: - namespaces - namespaces @@ -127664,6 +154756,12 @@ components: matchLabels: key: matchLabels topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + mismatchLabelKeys: + - mismatchLabelKeys + - mismatchLabelKeys namespaces: - namespaces - namespaces @@ -127696,6 +154794,12 @@ components: matchLabels: key: matchLabels topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + mismatchLabelKeys: + - mismatchLabelKeys + - mismatchLabelKeys namespaces: - namespaces - namespaces @@ -127730,6 +154834,12 @@ components: matchLabels: key: matchLabels topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + mismatchLabelKeys: + - mismatchLabelKeys + - mismatchLabelKeys namespaces: - namespaces - namespaces @@ -127764,6 +154874,12 @@ components: matchLabels: key: matchLabels topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + mismatchLabelKeys: + - mismatchLabelKeys + - mismatchLabelKeys namespaces: - namespaces - namespaces @@ -127801,8 +154917,9 @@ components: status: status - type: type status: status - ttlSecondsAfterFinished: 3 + ttlSecondsAfterFinished: 2 podReplacementPolicy: podReplacementPolicy + managedBy: managedBy selector: matchExpressions: - values: @@ -127819,11 +154936,17 @@ components: key: matchLabels maxFailedIndexes: 2 activeDeadlineSeconds: 6 - startingDeadlineSeconds: 2 + successPolicy: + rules: + - succeededCount: 3 + succeededIndexes: succeededIndexes + - succeededCount: 3 + succeededIndexes: succeededIndexes + startingDeadlineSeconds: 4 concurrencyPolicy: concurrencyPolicy timeZone: timeZone failedJobsHistoryLimit: 0 - successfulJobsHistoryLimit: 4 + successfulJobsHistoryLimit: 7 status: lastScheduleTime: 2000-01-23T04:56:07.000+00:00 active: @@ -128027,7 +155150,7 @@ components: spec: dnsPolicy: dnsPolicy nodeName: nodeName - terminationGracePeriodSeconds: 5 + terminationGracePeriodSeconds: 9 dnsConfig: searches: - searches @@ -128059,32 +155182,37 @@ components: - hostnames - hostnames securityContext: - runAsUser: 1 seLinuxOptions: role: role level: level type: type user: user - fsGroup: 6 - seccompProfile: + appArmorProfile: localhostProfile: localhostProfile type: type - windowsOptions: - gmsaCredentialSpec: gmsaCredentialSpec - runAsUserName: runAsUserName - hostProcess: true - gmsaCredentialSpecName: gmsaCredentialSpecName + fsGroup: 7 fsGroupChangePolicy: fsGroupChangePolicy - supplementalGroups: - - 4 - - 4 - runAsGroup: 7 + seLinuxChangePolicy: seLinuxChangePolicy + runAsGroup: 1 runAsNonRoot: true sysctls: - name: name value: value - name: name value: value + runAsUser: 4 + seccompProfile: + localhostProfile: localhostProfile + type: type + windowsOptions: + gmsaCredentialSpec: gmsaCredentialSpec + runAsUserName: runAsUserName + hostProcess: true + gmsaCredentialSpecName: gmsaCredentialSpecName + supplementalGroups: + - 5 + - 5 + supplementalGroupsPolicy: supplementalGroupsPolicy preemptionPolicy: preemptionPolicy nodeSelector: key: nodeSelector @@ -128116,7 +155244,7 @@ components: topologySpreadConstraints: - nodeTaintsPolicy: nodeTaintsPolicy whenUnsatisfiable: whenUnsatisfiable - maxSkew: 9 + maxSkew: 6 nodeAffinityPolicy: nodeAffinityPolicy labelSelector: matchExpressions: @@ -128132,14 +155260,14 @@ components: operator: operator matchLabels: key: matchLabels - minDomains: 6 + minDomains: 8 topologyKey: topologyKey matchLabelKeys: - matchLabelKeys - matchLabelKeys - nodeTaintsPolicy: nodeTaintsPolicy whenUnsatisfiable: whenUnsatisfiable - maxSkew: 9 + maxSkew: 6 nodeAffinityPolicy: nodeAffinityPolicy labelSelector: matchExpressions: @@ -128155,7 +155283,7 @@ components: operator: operator matchLabels: key: matchLabels - minDomains: 6 + minDomains: 8 topologyKey: topologyKey matchLabelKeys: - matchLabelKeys @@ -128236,10 +155364,8 @@ components: name: name namespace: namespace volumeName: volumeName + volumeAttributesClassName: volumeAttributesClassName resources: - claims: - - name: name - - name: name requests: {} limits: {} selector: @@ -128266,20 +155392,20 @@ components: volumeMode: volumeMode secret: secretName: secretName - defaultMode: 6 + defaultMode: 3 optional: true items: - - mode: 6 + - mode: 3 path: path key: key - - mode: 6 + - mode: 3 path: path key: key projected: sources: - downwardAPI: items: - - mode: 6 + - mode: 1 path: path resourceFieldRef: divisor: divisor @@ -128288,7 +155414,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 6 + - mode: 1 path: path resourceFieldRef: divisor: divisor @@ -128301,29 +155427,48 @@ components: name: name optional: true items: - - mode: 6 + - mode: 3 path: path key: key - - mode: 6 + - mode: 3 path: path key: key secret: name: name optional: true items: - - mode: 6 + - mode: 3 path: path key: key - - mode: 6 + - mode: 3 path: path key: key serviceAccountToken: path: path audience: audience - expirationSeconds: 5 + expirationSeconds: 6 + clusterTrustBundle: + path: path + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + name: name + optional: true + signerName: signerName - downwardAPI: items: - - mode: 6 + - mode: 1 path: path resourceFieldRef: divisor: divisor @@ -128332,7 +155477,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 6 + - mode: 1 path: path resourceFieldRef: divisor: divisor @@ -128345,27 +155490,46 @@ components: name: name optional: true items: - - mode: 6 + - mode: 3 path: path key: key - - mode: 6 + - mode: 3 path: path key: key secret: name: name optional: true items: - - mode: 6 + - mode: 3 path: path key: key - - mode: 6 + - mode: 3 path: path key: key serviceAccountToken: path: path audience: audience - expirationSeconds: 5 - defaultMode: 6 + expirationSeconds: 6 + clusterTrustBundle: + path: path + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + name: name + optional: true + signerName: signerName + defaultMode: 5 cephfs: path: path secretRef: @@ -128396,10 +155560,13 @@ components: endpoints: endpoints readOnly: true gcePersistentDisk: - partition: 2 + partition: 6 readOnly: true pdName: pdName fsType: fsType + image: + reference: reference + pullPolicy: pullPolicy photonPersistentDisk: pdID: pdID fsType: fsType @@ -128417,9 +155584,9 @@ components: readOnly: true fsType: fsType downwardAPI: - defaultMode: 3 + defaultMode: 6 items: - - mode: 6 + - mode: 1 path: path resourceFieldRef: divisor: divisor @@ -128428,7 +155595,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 6 + - mode: 1 path: path resourceFieldRef: divisor: divisor @@ -128438,7 +155605,7 @@ components: apiVersion: apiVersion fieldPath: fieldPath awsElasticBlockStore: - partition: 8 + partition: 9 volumeID: volumeID readOnly: true fsType: fsType @@ -128473,14 +155640,14 @@ components: - monitors - monitors configMap: - defaultMode: 9 + defaultMode: 6 name: name optional: true items: - - mode: 6 + - mode: 3 path: path key: key - - mode: 6 + - mode: 3 path: path key: key storageos: @@ -128520,7 +155687,7 @@ components: volumePath: volumePath fsType: fsType fc: - lun: 1 + lun: 2 targetWWNs: - targetWWNs - targetWWNs @@ -128607,10 +155774,8 @@ components: name: name namespace: namespace volumeName: volumeName + volumeAttributesClassName: volumeAttributesClassName resources: - claims: - - name: name - - name: name requests: {} limits: {} selector: @@ -128637,20 +155802,20 @@ components: volumeMode: volumeMode secret: secretName: secretName - defaultMode: 6 + defaultMode: 3 optional: true items: - - mode: 6 + - mode: 3 path: path key: key - - mode: 6 + - mode: 3 path: path key: key projected: sources: - downwardAPI: items: - - mode: 6 + - mode: 1 path: path resourceFieldRef: divisor: divisor @@ -128659,7 +155824,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 6 + - mode: 1 path: path resourceFieldRef: divisor: divisor @@ -128672,29 +155837,48 @@ components: name: name optional: true items: - - mode: 6 + - mode: 3 path: path key: key - - mode: 6 + - mode: 3 path: path key: key secret: name: name optional: true items: - - mode: 6 + - mode: 3 path: path key: key - - mode: 6 + - mode: 3 path: path key: key serviceAccountToken: path: path audience: audience - expirationSeconds: 5 + expirationSeconds: 6 + clusterTrustBundle: + path: path + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + name: name + optional: true + signerName: signerName - downwardAPI: items: - - mode: 6 + - mode: 1 path: path resourceFieldRef: divisor: divisor @@ -128703,7 +155887,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 6 + - mode: 1 path: path resourceFieldRef: divisor: divisor @@ -128716,27 +155900,46 @@ components: name: name optional: true items: - - mode: 6 + - mode: 3 path: path key: key - - mode: 6 + - mode: 3 path: path key: key secret: name: name optional: true items: - - mode: 6 + - mode: 3 path: path key: key - - mode: 6 + - mode: 3 path: path key: key serviceAccountToken: path: path audience: audience - expirationSeconds: 5 - defaultMode: 6 + expirationSeconds: 6 + clusterTrustBundle: + path: path + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + name: name + optional: true + signerName: signerName + defaultMode: 5 cephfs: path: path secretRef: @@ -128767,10 +155970,13 @@ components: endpoints: endpoints readOnly: true gcePersistentDisk: - partition: 2 + partition: 6 readOnly: true pdName: pdName fsType: fsType + image: + reference: reference + pullPolicy: pullPolicy photonPersistentDisk: pdID: pdID fsType: fsType @@ -128788,9 +155994,9 @@ components: readOnly: true fsType: fsType downwardAPI: - defaultMode: 3 + defaultMode: 6 items: - - mode: 6 + - mode: 1 path: path resourceFieldRef: divisor: divisor @@ -128799,7 +156005,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 6 + - mode: 1 path: path resourceFieldRef: divisor: divisor @@ -128809,7 +156015,7 @@ components: apiVersion: apiVersion fieldPath: fieldPath awsElasticBlockStore: - partition: 8 + partition: 9 volumeID: volumeID readOnly: true fsType: fsType @@ -128844,14 +156050,14 @@ components: - monitors - monitors configMap: - defaultMode: 9 + defaultMode: 6 name: name optional: true items: - - mode: 6 + - mode: 3 path: path key: key - - mode: 6 + - mode: 3 path: path key: key storageos: @@ -128891,7 +156097,7 @@ components: volumePath: volumePath fsType: fsType fc: - lun: 1 + lun: 2 targetWWNs: - targetWWNs - targetWWNs @@ -128903,6 +156109,14 @@ components: hostPath: path: path type: type + resources: + claims: + - request: request + name: name + - request: request + name: name + requests: {} + limits: {} ephemeralContainers: - volumeDevices: - devicePath: devicePath @@ -128926,6 +156140,9 @@ components: level: level type: type user: user + appArmorProfile: + localhostProfile: localhostProfile + type: type seccompProfile: localhostProfile: localhostProfile type: type @@ -128940,21 +156157,21 @@ components: runAsNonRoot: true readOnlyRootFilesystem: true startupProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -128970,28 +156187,32 @@ components: - protocol: protocol hostIP: hostIP name: name - containerPort: 4 - hostPort: 7 + containerPort: 7 + hostPort: 1 - protocol: protocol hostIP: hostIP name: name - containerPort: 4 - hostPort: 7 + containerPort: 7 + hostPort: 1 volumeMounts: - mountPath: mountPath mountPropagation: mountPropagation name: name readOnly: true subPath: subPath + recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - mountPath: mountPath mountPropagation: mountPropagation name: name readOnly: true subPath: subPath + recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr lifecycle: postStart: + sleep: + seconds: 5 tcpSocket: port: port host: host @@ -129010,6 +156231,8 @@ components: - name: name value: value preStop: + sleep: + seconds: 5 tcpSocket: port: port host: host @@ -129027,22 +156250,23 @@ components: value: value - name: name value: value + stopSignal: stopSignal readinessProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -129077,21 +156301,21 @@ components: image: image imagePullPolicy: imagePullPolicy livenessProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -129108,8 +156332,10 @@ components: workingDir: workingDir resources: claims: - - name: name - - name: name + - request: request + name: name + - request: request + name: name requests: {} limits: {} env: @@ -129181,6 +156407,9 @@ components: level: level type: type user: user + appArmorProfile: + localhostProfile: localhostProfile + type: type seccompProfile: localhostProfile: localhostProfile type: type @@ -129195,21 +156424,21 @@ components: runAsNonRoot: true readOnlyRootFilesystem: true startupProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -129225,28 +156454,32 @@ components: - protocol: protocol hostIP: hostIP name: name - containerPort: 4 - hostPort: 7 + containerPort: 7 + hostPort: 1 - protocol: protocol hostIP: hostIP name: name - containerPort: 4 - hostPort: 7 + containerPort: 7 + hostPort: 1 volumeMounts: - mountPath: mountPath mountPropagation: mountPropagation name: name readOnly: true subPath: subPath + recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - mountPath: mountPath mountPropagation: mountPropagation name: name readOnly: true subPath: subPath + recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr lifecycle: postStart: + sleep: + seconds: 5 tcpSocket: port: port host: host @@ -129265,6 +156498,8 @@ components: - name: name value: value preStop: + sleep: + seconds: 5 tcpSocket: port: port host: host @@ -129282,22 +156517,23 @@ components: value: value - name: name value: value + stopSignal: stopSignal readinessProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -129332,21 +156568,21 @@ components: image: image imagePullPolicy: imagePullPolicy livenessProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -129363,8 +156599,10 @@ components: workingDir: workingDir resources: claims: - - name: name - - name: name + - request: request + name: name + - request: request + name: name requests: {} limits: {} env: @@ -129415,19 +156653,17 @@ components: tty: true stdinOnce: true serviceAccount: serviceAccount - priority: 1 + priority: 6 restartPolicy: restartPolicy shareProcessNamespace: true hostUsers: true resourceClaims: - - name: name - source: - resourceClaimName: resourceClaimName - resourceClaimTemplateName: resourceClaimTemplateName - - name: name - source: - resourceClaimName: resourceClaimName - resourceClaimTemplateName: resourceClaimTemplateName + - resourceClaimName: resourceClaimName + name: name + resourceClaimTemplateName: resourceClaimTemplateName + - resourceClaimName: resourceClaimName + name: name + resourceClaimTemplateName: resourceClaimTemplateName subdomain: subdomain containers: - volumeDevices: @@ -129438,21 +156674,21 @@ components: image: image imagePullPolicy: imagePullPolicy livenessProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -129470,8 +156706,10 @@ components: workingDir: workingDir resources: claims: - - name: name - - name: name + - request: request + name: name + - request: request + name: name requests: {} limits: {} securityContext: @@ -129489,6 +156727,9 @@ components: level: level type: type user: user + appArmorProfile: + localhostProfile: localhostProfile + type: type seccompProfile: localhostProfile: localhostProfile type: type @@ -129503,21 +156744,21 @@ components: runAsNonRoot: true readOnlyRootFilesystem: true startupProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -129570,13 +156811,13 @@ components: - protocol: protocol hostIP: hostIP name: name - containerPort: 4 - hostPort: 7 + containerPort: 7 + hostPort: 1 - protocol: protocol hostIP: hostIP name: name - containerPort: 4 - hostPort: 7 + containerPort: 7 + hostPort: 1 restartPolicy: restartPolicy command: - command @@ -129587,18 +156828,22 @@ components: name: name readOnly: true subPath: subPath + recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - mountPath: mountPath mountPropagation: mountPropagation name: name readOnly: true subPath: subPath + recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr args: - args - args lifecycle: postStart: + sleep: + seconds: 5 tcpSocket: port: port host: host @@ -129617,6 +156862,8 @@ components: - name: name value: value preStop: + sleep: + seconds: 5 tcpSocket: port: port host: host @@ -129634,24 +156881,25 @@ components: value: value - name: name value: value + stopSignal: stopSignal name: name tty: true readinessProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -129692,21 +156940,21 @@ components: image: image imagePullPolicy: imagePullPolicy livenessProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -129724,8 +156972,10 @@ components: workingDir: workingDir resources: claims: - - name: name - - name: name + - request: request + name: name + - request: request + name: name requests: {} limits: {} securityContext: @@ -129743,6 +156993,9 @@ components: level: level type: type user: user + appArmorProfile: + localhostProfile: localhostProfile + type: type seccompProfile: localhostProfile: localhostProfile type: type @@ -129757,21 +157010,21 @@ components: runAsNonRoot: true readOnlyRootFilesystem: true startupProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -129824,13 +157077,13 @@ components: - protocol: protocol hostIP: hostIP name: name - containerPort: 4 - hostPort: 7 + containerPort: 7 + hostPort: 1 - protocol: protocol hostIP: hostIP name: name - containerPort: 4 - hostPort: 7 + containerPort: 7 + hostPort: 1 restartPolicy: restartPolicy command: - command @@ -129841,18 +157094,22 @@ components: name: name readOnly: true subPath: subPath + recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - mountPath: mountPath mountPropagation: mountPropagation name: name readOnly: true subPath: subPath + recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr args: - args - args lifecycle: postStart: + sleep: + seconds: 5 tcpSocket: port: port host: host @@ -129871,6 +157128,8 @@ components: - name: name value: value preStop: + sleep: + seconds: 5 tcpSocket: port: port host: host @@ -129888,24 +157147,25 @@ components: value: value - name: name value: value + stopSignal: stopSignal name: name tty: true readinessProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -129947,21 +157207,21 @@ components: image: image imagePullPolicy: imagePullPolicy livenessProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -129979,8 +157239,10 @@ components: workingDir: workingDir resources: claims: - - name: name - - name: name + - request: request + name: name + - request: request + name: name requests: {} limits: {} securityContext: @@ -129998,6 +157260,9 @@ components: level: level type: type user: user + appArmorProfile: + localhostProfile: localhostProfile + type: type seccompProfile: localhostProfile: localhostProfile type: type @@ -130012,21 +157277,21 @@ components: runAsNonRoot: true readOnlyRootFilesystem: true startupProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -130079,13 +157344,13 @@ components: - protocol: protocol hostIP: hostIP name: name - containerPort: 4 - hostPort: 7 + containerPort: 7 + hostPort: 1 - protocol: protocol hostIP: hostIP name: name - containerPort: 4 - hostPort: 7 + containerPort: 7 + hostPort: 1 restartPolicy: restartPolicy command: - command @@ -130096,18 +157361,22 @@ components: name: name readOnly: true subPath: subPath + recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - mountPath: mountPath mountPropagation: mountPropagation name: name readOnly: true subPath: subPath + recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr args: - args - args lifecycle: postStart: + sleep: + seconds: 5 tcpSocket: port: port host: host @@ -130126,6 +157395,8 @@ components: - name: name value: value preStop: + sleep: + seconds: 5 tcpSocket: port: port host: host @@ -130143,24 +157414,25 @@ components: value: value - name: name value: value + stopSignal: stopSignal name: name tty: true readinessProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -130201,21 +157473,21 @@ components: image: image imagePullPolicy: imagePullPolicy livenessProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -130233,8 +157505,10 @@ components: workingDir: workingDir resources: claims: - - name: name - - name: name + - request: request + name: name + - request: request + name: name requests: {} limits: {} securityContext: @@ -130252,6 +157526,9 @@ components: level: level type: type user: user + appArmorProfile: + localhostProfile: localhostProfile + type: type seccompProfile: localhostProfile: localhostProfile type: type @@ -130266,21 +157543,21 @@ components: runAsNonRoot: true readOnlyRootFilesystem: true startupProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -130333,13 +157610,13 @@ components: - protocol: protocol hostIP: hostIP name: name - containerPort: 4 - hostPort: 7 + containerPort: 7 + hostPort: 1 - protocol: protocol hostIP: hostIP name: name - containerPort: 4 - hostPort: 7 + containerPort: 7 + hostPort: 1 restartPolicy: restartPolicy command: - command @@ -130350,18 +157627,22 @@ components: name: name readOnly: true subPath: subPath + recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - mountPath: mountPath mountPropagation: mountPropagation name: name readOnly: true subPath: subPath + recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr args: - args - args lifecycle: postStart: + sleep: + seconds: 5 tcpSocket: port: port host: host @@ -130380,6 +157661,8 @@ components: - name: name value: value preStop: + sleep: + seconds: 5 tcpSocket: port: port host: host @@ -130397,24 +157680,25 @@ components: value: value - name: name value: value + stopSignal: stopSignal name: name tty: true readinessProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -130575,6 +157859,12 @@ components: matchLabels: key: matchLabels topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + mismatchLabelKeys: + - mismatchLabelKeys + - mismatchLabelKeys namespaces: - namespaces - namespaces @@ -130607,6 +157897,12 @@ components: matchLabels: key: matchLabels topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + mismatchLabelKeys: + - mismatchLabelKeys + - mismatchLabelKeys namespaces: - namespaces - namespaces @@ -130641,6 +157937,12 @@ components: matchLabels: key: matchLabels topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + mismatchLabelKeys: + - mismatchLabelKeys + - mismatchLabelKeys namespaces: - namespaces - namespaces @@ -130675,6 +157977,12 @@ components: matchLabels: key: matchLabels topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + mismatchLabelKeys: + - mismatchLabelKeys + - mismatchLabelKeys namespaces: - namespaces - namespaces @@ -130710,6 +158018,12 @@ components: matchLabels: key: matchLabels topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + mismatchLabelKeys: + - mismatchLabelKeys + - mismatchLabelKeys namespaces: - namespaces - namespaces @@ -130742,6 +158056,12 @@ components: matchLabels: key: matchLabels topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + mismatchLabelKeys: + - mismatchLabelKeys + - mismatchLabelKeys namespaces: - namespaces - namespaces @@ -130776,6 +158096,12 @@ components: matchLabels: key: matchLabels topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + mismatchLabelKeys: + - mismatchLabelKeys + - mismatchLabelKeys namespaces: - namespaces - namespaces @@ -130810,6 +158136,12 @@ components: matchLabels: key: matchLabels topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + mismatchLabelKeys: + - mismatchLabelKeys + - mismatchLabelKeys namespaces: - namespaces - namespaces @@ -130847,8 +158179,9 @@ components: status: status - type: type status: status - ttlSecondsAfterFinished: 3 + ttlSecondsAfterFinished: 2 podReplacementPolicy: podReplacementPolicy + managedBy: managedBy selector: matchExpressions: - values: @@ -130865,11 +158198,17 @@ components: key: matchLabels maxFailedIndexes: 2 activeDeadlineSeconds: 6 - startingDeadlineSeconds: 2 + successPolicy: + rules: + - succeededCount: 3 + succeededIndexes: succeededIndexes + - succeededCount: 3 + succeededIndexes: succeededIndexes + startingDeadlineSeconds: 4 concurrencyPolicy: concurrencyPolicy timeZone: timeZone failedJobsHistoryLimit: 0 - successfulJobsHistoryLimit: 4 + successfulJobsHistoryLimit: 7 status: lastScheduleTime: 2000-01-23T04:56:07.000+00:00 active: @@ -131038,7 +158377,7 @@ components: spec: dnsPolicy: dnsPolicy nodeName: nodeName - terminationGracePeriodSeconds: 5 + terminationGracePeriodSeconds: 9 dnsConfig: searches: - searches @@ -131070,32 +158409,37 @@ components: - hostnames - hostnames securityContext: - runAsUser: 1 seLinuxOptions: role: role level: level type: type user: user - fsGroup: 6 - seccompProfile: + appArmorProfile: localhostProfile: localhostProfile type: type - windowsOptions: - gmsaCredentialSpec: gmsaCredentialSpec - runAsUserName: runAsUserName - hostProcess: true - gmsaCredentialSpecName: gmsaCredentialSpecName + fsGroup: 7 fsGroupChangePolicy: fsGroupChangePolicy - supplementalGroups: - - 4 - - 4 - runAsGroup: 7 + seLinuxChangePolicy: seLinuxChangePolicy + runAsGroup: 1 runAsNonRoot: true sysctls: - name: name value: value - name: name value: value + runAsUser: 4 + seccompProfile: + localhostProfile: localhostProfile + type: type + windowsOptions: + gmsaCredentialSpec: gmsaCredentialSpec + runAsUserName: runAsUserName + hostProcess: true + gmsaCredentialSpecName: gmsaCredentialSpecName + supplementalGroups: + - 5 + - 5 + supplementalGroupsPolicy: supplementalGroupsPolicy preemptionPolicy: preemptionPolicy nodeSelector: key: nodeSelector @@ -131127,7 +158471,7 @@ components: topologySpreadConstraints: - nodeTaintsPolicy: nodeTaintsPolicy whenUnsatisfiable: whenUnsatisfiable - maxSkew: 9 + maxSkew: 6 nodeAffinityPolicy: nodeAffinityPolicy labelSelector: matchExpressions: @@ -131143,14 +158487,14 @@ components: operator: operator matchLabels: key: matchLabels - minDomains: 6 + minDomains: 8 topologyKey: topologyKey matchLabelKeys: - matchLabelKeys - matchLabelKeys - nodeTaintsPolicy: nodeTaintsPolicy whenUnsatisfiable: whenUnsatisfiable - maxSkew: 9 + maxSkew: 6 nodeAffinityPolicy: nodeAffinityPolicy labelSelector: matchExpressions: @@ -131166,7 +158510,7 @@ components: operator: operator matchLabels: key: matchLabels - minDomains: 6 + minDomains: 8 topologyKey: topologyKey matchLabelKeys: - matchLabelKeys @@ -131247,10 +158591,8 @@ components: name: name namespace: namespace volumeName: volumeName + volumeAttributesClassName: volumeAttributesClassName resources: - claims: - - name: name - - name: name requests: {} limits: {} selector: @@ -131277,20 +158619,20 @@ components: volumeMode: volumeMode secret: secretName: secretName - defaultMode: 6 + defaultMode: 3 optional: true items: - - mode: 6 + - mode: 3 path: path key: key - - mode: 6 + - mode: 3 path: path key: key projected: sources: - downwardAPI: items: - - mode: 6 + - mode: 1 path: path resourceFieldRef: divisor: divisor @@ -131299,7 +158641,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 6 + - mode: 1 path: path resourceFieldRef: divisor: divisor @@ -131312,29 +158654,48 @@ components: name: name optional: true items: - - mode: 6 + - mode: 3 path: path key: key - - mode: 6 + - mode: 3 path: path key: key secret: name: name optional: true items: - - mode: 6 + - mode: 3 path: path key: key - - mode: 6 + - mode: 3 path: path key: key serviceAccountToken: path: path audience: audience - expirationSeconds: 5 + expirationSeconds: 6 + clusterTrustBundle: + path: path + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + name: name + optional: true + signerName: signerName - downwardAPI: items: - - mode: 6 + - mode: 1 path: path resourceFieldRef: divisor: divisor @@ -131343,7 +158704,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 6 + - mode: 1 path: path resourceFieldRef: divisor: divisor @@ -131356,27 +158717,46 @@ components: name: name optional: true items: - - mode: 6 + - mode: 3 path: path key: key - - mode: 6 + - mode: 3 path: path key: key secret: name: name optional: true items: - - mode: 6 + - mode: 3 path: path key: key - - mode: 6 + - mode: 3 path: path key: key serviceAccountToken: path: path audience: audience - expirationSeconds: 5 - defaultMode: 6 + expirationSeconds: 6 + clusterTrustBundle: + path: path + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + name: name + optional: true + signerName: signerName + defaultMode: 5 cephfs: path: path secretRef: @@ -131407,10 +158787,13 @@ components: endpoints: endpoints readOnly: true gcePersistentDisk: - partition: 2 + partition: 6 readOnly: true pdName: pdName fsType: fsType + image: + reference: reference + pullPolicy: pullPolicy photonPersistentDisk: pdID: pdID fsType: fsType @@ -131428,9 +158811,9 @@ components: readOnly: true fsType: fsType downwardAPI: - defaultMode: 3 + defaultMode: 6 items: - - mode: 6 + - mode: 1 path: path resourceFieldRef: divisor: divisor @@ -131439,7 +158822,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 6 + - mode: 1 path: path resourceFieldRef: divisor: divisor @@ -131449,7 +158832,7 @@ components: apiVersion: apiVersion fieldPath: fieldPath awsElasticBlockStore: - partition: 8 + partition: 9 volumeID: volumeID readOnly: true fsType: fsType @@ -131484,14 +158867,14 @@ components: - monitors - monitors configMap: - defaultMode: 9 + defaultMode: 6 name: name optional: true items: - - mode: 6 + - mode: 3 path: path key: key - - mode: 6 + - mode: 3 path: path key: key storageos: @@ -131531,7 +158914,7 @@ components: volumePath: volumePath fsType: fsType fc: - lun: 1 + lun: 2 targetWWNs: - targetWWNs - targetWWNs @@ -131618,10 +159001,8 @@ components: name: name namespace: namespace volumeName: volumeName + volumeAttributesClassName: volumeAttributesClassName resources: - claims: - - name: name - - name: name requests: {} limits: {} selector: @@ -131648,20 +159029,20 @@ components: volumeMode: volumeMode secret: secretName: secretName - defaultMode: 6 + defaultMode: 3 optional: true items: - - mode: 6 + - mode: 3 path: path key: key - - mode: 6 + - mode: 3 path: path key: key projected: sources: - downwardAPI: items: - - mode: 6 + - mode: 1 path: path resourceFieldRef: divisor: divisor @@ -131670,7 +159051,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 6 + - mode: 1 path: path resourceFieldRef: divisor: divisor @@ -131683,29 +159064,48 @@ components: name: name optional: true items: - - mode: 6 + - mode: 3 path: path key: key - - mode: 6 + - mode: 3 path: path key: key secret: name: name optional: true items: - - mode: 6 + - mode: 3 path: path key: key - - mode: 6 + - mode: 3 path: path key: key serviceAccountToken: path: path audience: audience - expirationSeconds: 5 + expirationSeconds: 6 + clusterTrustBundle: + path: path + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + name: name + optional: true + signerName: signerName - downwardAPI: items: - - mode: 6 + - mode: 1 path: path resourceFieldRef: divisor: divisor @@ -131714,7 +159114,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 6 + - mode: 1 path: path resourceFieldRef: divisor: divisor @@ -131727,27 +159127,46 @@ components: name: name optional: true items: - - mode: 6 + - mode: 3 path: path key: key - - mode: 6 + - mode: 3 path: path key: key secret: name: name optional: true items: - - mode: 6 + - mode: 3 path: path key: key - - mode: 6 + - mode: 3 path: path key: key serviceAccountToken: path: path audience: audience - expirationSeconds: 5 - defaultMode: 6 + expirationSeconds: 6 + clusterTrustBundle: + path: path + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + name: name + optional: true + signerName: signerName + defaultMode: 5 cephfs: path: path secretRef: @@ -131778,10 +159197,13 @@ components: endpoints: endpoints readOnly: true gcePersistentDisk: - partition: 2 + partition: 6 readOnly: true pdName: pdName fsType: fsType + image: + reference: reference + pullPolicy: pullPolicy photonPersistentDisk: pdID: pdID fsType: fsType @@ -131799,9 +159221,9 @@ components: readOnly: true fsType: fsType downwardAPI: - defaultMode: 3 + defaultMode: 6 items: - - mode: 6 + - mode: 1 path: path resourceFieldRef: divisor: divisor @@ -131810,7 +159232,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 6 + - mode: 1 path: path resourceFieldRef: divisor: divisor @@ -131820,7 +159242,7 @@ components: apiVersion: apiVersion fieldPath: fieldPath awsElasticBlockStore: - partition: 8 + partition: 9 volumeID: volumeID readOnly: true fsType: fsType @@ -131855,14 +159277,14 @@ components: - monitors - monitors configMap: - defaultMode: 9 + defaultMode: 6 name: name optional: true items: - - mode: 6 + - mode: 3 path: path key: key - - mode: 6 + - mode: 3 path: path key: key storageos: @@ -131902,7 +159324,7 @@ components: volumePath: volumePath fsType: fsType fc: - lun: 1 + lun: 2 targetWWNs: - targetWWNs - targetWWNs @@ -131914,6 +159336,14 @@ components: hostPath: path: path type: type + resources: + claims: + - request: request + name: name + - request: request + name: name + requests: {} + limits: {} ephemeralContainers: - volumeDevices: - devicePath: devicePath @@ -131937,6 +159367,9 @@ components: level: level type: type user: user + appArmorProfile: + localhostProfile: localhostProfile + type: type seccompProfile: localhostProfile: localhostProfile type: type @@ -131951,21 +159384,21 @@ components: runAsNonRoot: true readOnlyRootFilesystem: true startupProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -131981,28 +159414,32 @@ components: - protocol: protocol hostIP: hostIP name: name - containerPort: 4 - hostPort: 7 + containerPort: 7 + hostPort: 1 - protocol: protocol hostIP: hostIP name: name - containerPort: 4 - hostPort: 7 + containerPort: 7 + hostPort: 1 volumeMounts: - mountPath: mountPath mountPropagation: mountPropagation name: name readOnly: true subPath: subPath + recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - mountPath: mountPath mountPropagation: mountPropagation name: name readOnly: true subPath: subPath + recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr lifecycle: postStart: + sleep: + seconds: 5 tcpSocket: port: port host: host @@ -132021,6 +159458,8 @@ components: - name: name value: value preStop: + sleep: + seconds: 5 tcpSocket: port: port host: host @@ -132038,22 +159477,23 @@ components: value: value - name: name value: value + stopSignal: stopSignal readinessProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -132088,21 +159528,21 @@ components: image: image imagePullPolicy: imagePullPolicy livenessProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -132119,8 +159559,10 @@ components: workingDir: workingDir resources: claims: - - name: name - - name: name + - request: request + name: name + - request: request + name: name requests: {} limits: {} env: @@ -132192,6 +159634,9 @@ components: level: level type: type user: user + appArmorProfile: + localhostProfile: localhostProfile + type: type seccompProfile: localhostProfile: localhostProfile type: type @@ -132206,21 +159651,21 @@ components: runAsNonRoot: true readOnlyRootFilesystem: true startupProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -132236,28 +159681,32 @@ components: - protocol: protocol hostIP: hostIP name: name - containerPort: 4 - hostPort: 7 + containerPort: 7 + hostPort: 1 - protocol: protocol hostIP: hostIP name: name - containerPort: 4 - hostPort: 7 + containerPort: 7 + hostPort: 1 volumeMounts: - mountPath: mountPath mountPropagation: mountPropagation name: name readOnly: true subPath: subPath + recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - mountPath: mountPath mountPropagation: mountPropagation name: name readOnly: true subPath: subPath + recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr lifecycle: postStart: + sleep: + seconds: 5 tcpSocket: port: port host: host @@ -132276,6 +159725,8 @@ components: - name: name value: value preStop: + sleep: + seconds: 5 tcpSocket: port: port host: host @@ -132293,22 +159744,23 @@ components: value: value - name: name value: value + stopSignal: stopSignal readinessProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -132343,21 +159795,21 @@ components: image: image imagePullPolicy: imagePullPolicy livenessProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -132374,8 +159826,10 @@ components: workingDir: workingDir resources: claims: - - name: name - - name: name + - request: request + name: name + - request: request + name: name requests: {} limits: {} env: @@ -132426,19 +159880,17 @@ components: tty: true stdinOnce: true serviceAccount: serviceAccount - priority: 1 + priority: 6 restartPolicy: restartPolicy shareProcessNamespace: true hostUsers: true resourceClaims: - - name: name - source: - resourceClaimName: resourceClaimName - resourceClaimTemplateName: resourceClaimTemplateName - - name: name - source: - resourceClaimName: resourceClaimName - resourceClaimTemplateName: resourceClaimTemplateName + - resourceClaimName: resourceClaimName + name: name + resourceClaimTemplateName: resourceClaimTemplateName + - resourceClaimName: resourceClaimName + name: name + resourceClaimTemplateName: resourceClaimTemplateName subdomain: subdomain containers: - volumeDevices: @@ -132449,21 +159901,21 @@ components: image: image imagePullPolicy: imagePullPolicy livenessProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -132481,8 +159933,10 @@ components: workingDir: workingDir resources: claims: - - name: name - - name: name + - request: request + name: name + - request: request + name: name requests: {} limits: {} securityContext: @@ -132500,6 +159954,9 @@ components: level: level type: type user: user + appArmorProfile: + localhostProfile: localhostProfile + type: type seccompProfile: localhostProfile: localhostProfile type: type @@ -132514,21 +159971,21 @@ components: runAsNonRoot: true readOnlyRootFilesystem: true startupProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -132581,13 +160038,13 @@ components: - protocol: protocol hostIP: hostIP name: name - containerPort: 4 - hostPort: 7 + containerPort: 7 + hostPort: 1 - protocol: protocol hostIP: hostIP name: name - containerPort: 4 - hostPort: 7 + containerPort: 7 + hostPort: 1 restartPolicy: restartPolicy command: - command @@ -132598,18 +160055,22 @@ components: name: name readOnly: true subPath: subPath + recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - mountPath: mountPath mountPropagation: mountPropagation name: name readOnly: true subPath: subPath + recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr args: - args - args lifecycle: postStart: + sleep: + seconds: 5 tcpSocket: port: port host: host @@ -132628,6 +160089,8 @@ components: - name: name value: value preStop: + sleep: + seconds: 5 tcpSocket: port: port host: host @@ -132645,24 +160108,25 @@ components: value: value - name: name value: value + stopSignal: stopSignal name: name tty: true readinessProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -132703,21 +160167,21 @@ components: image: image imagePullPolicy: imagePullPolicy livenessProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -132735,8 +160199,10 @@ components: workingDir: workingDir resources: claims: - - name: name - - name: name + - request: request + name: name + - request: request + name: name requests: {} limits: {} securityContext: @@ -132754,6 +160220,9 @@ components: level: level type: type user: user + appArmorProfile: + localhostProfile: localhostProfile + type: type seccompProfile: localhostProfile: localhostProfile type: type @@ -132768,21 +160237,21 @@ components: runAsNonRoot: true readOnlyRootFilesystem: true startupProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -132835,13 +160304,13 @@ components: - protocol: protocol hostIP: hostIP name: name - containerPort: 4 - hostPort: 7 + containerPort: 7 + hostPort: 1 - protocol: protocol hostIP: hostIP name: name - containerPort: 4 - hostPort: 7 + containerPort: 7 + hostPort: 1 restartPolicy: restartPolicy command: - command @@ -132852,18 +160321,22 @@ components: name: name readOnly: true subPath: subPath + recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - mountPath: mountPath mountPropagation: mountPropagation name: name readOnly: true subPath: subPath + recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr args: - args - args lifecycle: postStart: + sleep: + seconds: 5 tcpSocket: port: port host: host @@ -132882,6 +160355,8 @@ components: - name: name value: value preStop: + sleep: + seconds: 5 tcpSocket: port: port host: host @@ -132899,24 +160374,25 @@ components: value: value - name: name value: value + stopSignal: stopSignal name: name tty: true readinessProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -132958,21 +160434,21 @@ components: image: image imagePullPolicy: imagePullPolicy livenessProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -132990,8 +160466,10 @@ components: workingDir: workingDir resources: claims: - - name: name - - name: name + - request: request + name: name + - request: request + name: name requests: {} limits: {} securityContext: @@ -133009,6 +160487,9 @@ components: level: level type: type user: user + appArmorProfile: + localhostProfile: localhostProfile + type: type seccompProfile: localhostProfile: localhostProfile type: type @@ -133023,21 +160504,21 @@ components: runAsNonRoot: true readOnlyRootFilesystem: true startupProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -133090,13 +160571,13 @@ components: - protocol: protocol hostIP: hostIP name: name - containerPort: 4 - hostPort: 7 + containerPort: 7 + hostPort: 1 - protocol: protocol hostIP: hostIP name: name - containerPort: 4 - hostPort: 7 + containerPort: 7 + hostPort: 1 restartPolicy: restartPolicy command: - command @@ -133107,18 +160588,22 @@ components: name: name readOnly: true subPath: subPath + recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - mountPath: mountPath mountPropagation: mountPropagation name: name readOnly: true subPath: subPath + recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr args: - args - args lifecycle: postStart: + sleep: + seconds: 5 tcpSocket: port: port host: host @@ -133137,6 +160622,8 @@ components: - name: name value: value preStop: + sleep: + seconds: 5 tcpSocket: port: port host: host @@ -133154,24 +160641,25 @@ components: value: value - name: name value: value + stopSignal: stopSignal name: name tty: true readinessProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -133212,21 +160700,21 @@ components: image: image imagePullPolicy: imagePullPolicy livenessProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -133244,8 +160732,10 @@ components: workingDir: workingDir resources: claims: - - name: name - - name: name + - request: request + name: name + - request: request + name: name requests: {} limits: {} securityContext: @@ -133263,6 +160753,9 @@ components: level: level type: type user: user + appArmorProfile: + localhostProfile: localhostProfile + type: type seccompProfile: localhostProfile: localhostProfile type: type @@ -133277,21 +160770,21 @@ components: runAsNonRoot: true readOnlyRootFilesystem: true startupProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -133344,13 +160837,13 @@ components: - protocol: protocol hostIP: hostIP name: name - containerPort: 4 - hostPort: 7 + containerPort: 7 + hostPort: 1 - protocol: protocol hostIP: hostIP name: name - containerPort: 4 - hostPort: 7 + containerPort: 7 + hostPort: 1 restartPolicy: restartPolicy command: - command @@ -133361,18 +160854,22 @@ components: name: name readOnly: true subPath: subPath + recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - mountPath: mountPath mountPropagation: mountPropagation name: name readOnly: true subPath: subPath + recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr args: - args - args lifecycle: postStart: + sleep: + seconds: 5 tcpSocket: port: port host: host @@ -133391,6 +160888,8 @@ components: - name: name value: value preStop: + sleep: + seconds: 5 tcpSocket: port: port host: host @@ -133408,24 +160907,25 @@ components: value: value - name: name value: value + stopSignal: stopSignal name: name tty: true readinessProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -133586,6 +161086,12 @@ components: matchLabels: key: matchLabels topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + mismatchLabelKeys: + - mismatchLabelKeys + - mismatchLabelKeys namespaces: - namespaces - namespaces @@ -133618,6 +161124,12 @@ components: matchLabels: key: matchLabels topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + mismatchLabelKeys: + - mismatchLabelKeys + - mismatchLabelKeys namespaces: - namespaces - namespaces @@ -133652,6 +161164,12 @@ components: matchLabels: key: matchLabels topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + mismatchLabelKeys: + - mismatchLabelKeys + - mismatchLabelKeys namespaces: - namespaces - namespaces @@ -133686,6 +161204,12 @@ components: matchLabels: key: matchLabels topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + mismatchLabelKeys: + - mismatchLabelKeys + - mismatchLabelKeys namespaces: - namespaces - namespaces @@ -133721,6 +161245,12 @@ components: matchLabels: key: matchLabels topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + mismatchLabelKeys: + - mismatchLabelKeys + - mismatchLabelKeys namespaces: - namespaces - namespaces @@ -133753,6 +161283,12 @@ components: matchLabels: key: matchLabels topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + mismatchLabelKeys: + - mismatchLabelKeys + - mismatchLabelKeys namespaces: - namespaces - namespaces @@ -133787,6 +161323,12 @@ components: matchLabels: key: matchLabels topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + mismatchLabelKeys: + - mismatchLabelKeys + - mismatchLabelKeys namespaces: - namespaces - namespaces @@ -133821,6 +161363,12 @@ components: matchLabels: key: matchLabels topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + mismatchLabelKeys: + - mismatchLabelKeys + - mismatchLabelKeys namespaces: - namespaces - namespaces @@ -133858,8 +161406,9 @@ components: status: status - type: type status: status - ttlSecondsAfterFinished: 3 + ttlSecondsAfterFinished: 2 podReplacementPolicy: podReplacementPolicy + managedBy: managedBy selector: matchExpressions: - values: @@ -133876,11 +161425,17 @@ components: key: matchLabels maxFailedIndexes: 2 activeDeadlineSeconds: 6 - startingDeadlineSeconds: 2 + successPolicy: + rules: + - succeededCount: 3 + succeededIndexes: succeededIndexes + - succeededCount: 3 + succeededIndexes: succeededIndexes + startingDeadlineSeconds: 4 concurrencyPolicy: concurrencyPolicy timeZone: timeZone failedJobsHistoryLimit: 0 - successfulJobsHistoryLimit: 4 + successfulJobsHistoryLimit: 7 status: lastScheduleTime: 2000-01-23T04:56:07.000+00:00 active: @@ -134031,7 +161586,7 @@ components: spec: dnsPolicy: dnsPolicy nodeName: nodeName - terminationGracePeriodSeconds: 5 + terminationGracePeriodSeconds: 9 dnsConfig: searches: - searches @@ -134063,32 +161618,37 @@ components: - hostnames - hostnames securityContext: - runAsUser: 1 seLinuxOptions: role: role level: level type: type user: user - fsGroup: 6 - seccompProfile: + appArmorProfile: localhostProfile: localhostProfile type: type - windowsOptions: - gmsaCredentialSpec: gmsaCredentialSpec - runAsUserName: runAsUserName - hostProcess: true - gmsaCredentialSpecName: gmsaCredentialSpecName + fsGroup: 7 fsGroupChangePolicy: fsGroupChangePolicy - supplementalGroups: - - 4 - - 4 - runAsGroup: 7 + seLinuxChangePolicy: seLinuxChangePolicy + runAsGroup: 1 runAsNonRoot: true sysctls: - name: name value: value - name: name value: value + runAsUser: 4 + seccompProfile: + localhostProfile: localhostProfile + type: type + windowsOptions: + gmsaCredentialSpec: gmsaCredentialSpec + runAsUserName: runAsUserName + hostProcess: true + gmsaCredentialSpecName: gmsaCredentialSpecName + supplementalGroups: + - 5 + - 5 + supplementalGroupsPolicy: supplementalGroupsPolicy preemptionPolicy: preemptionPolicy nodeSelector: key: nodeSelector @@ -134120,7 +161680,7 @@ components: topologySpreadConstraints: - nodeTaintsPolicy: nodeTaintsPolicy whenUnsatisfiable: whenUnsatisfiable - maxSkew: 9 + maxSkew: 6 nodeAffinityPolicy: nodeAffinityPolicy labelSelector: matchExpressions: @@ -134136,14 +161696,14 @@ components: operator: operator matchLabels: key: matchLabels - minDomains: 6 + minDomains: 8 topologyKey: topologyKey matchLabelKeys: - matchLabelKeys - matchLabelKeys - nodeTaintsPolicy: nodeTaintsPolicy whenUnsatisfiable: whenUnsatisfiable - maxSkew: 9 + maxSkew: 6 nodeAffinityPolicy: nodeAffinityPolicy labelSelector: matchExpressions: @@ -134159,7 +161719,7 @@ components: operator: operator matchLabels: key: matchLabels - minDomains: 6 + minDomains: 8 topologyKey: topologyKey matchLabelKeys: - matchLabelKeys @@ -134240,10 +161800,8 @@ components: name: name namespace: namespace volumeName: volumeName + volumeAttributesClassName: volumeAttributesClassName resources: - claims: - - name: name - - name: name requests: {} limits: {} selector: @@ -134270,20 +161828,20 @@ components: volumeMode: volumeMode secret: secretName: secretName - defaultMode: 6 + defaultMode: 3 optional: true items: - - mode: 6 + - mode: 3 path: path key: key - - mode: 6 + - mode: 3 path: path key: key projected: sources: - downwardAPI: items: - - mode: 6 + - mode: 1 path: path resourceFieldRef: divisor: divisor @@ -134292,7 +161850,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 6 + - mode: 1 path: path resourceFieldRef: divisor: divisor @@ -134305,29 +161863,48 @@ components: name: name optional: true items: - - mode: 6 + - mode: 3 path: path key: key - - mode: 6 + - mode: 3 path: path key: key secret: name: name optional: true items: - - mode: 6 + - mode: 3 path: path key: key - - mode: 6 + - mode: 3 path: path key: key serviceAccountToken: path: path audience: audience - expirationSeconds: 5 + expirationSeconds: 6 + clusterTrustBundle: + path: path + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + name: name + optional: true + signerName: signerName - downwardAPI: items: - - mode: 6 + - mode: 1 path: path resourceFieldRef: divisor: divisor @@ -134336,7 +161913,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 6 + - mode: 1 path: path resourceFieldRef: divisor: divisor @@ -134349,27 +161926,46 @@ components: name: name optional: true items: - - mode: 6 + - mode: 3 path: path key: key - - mode: 6 + - mode: 3 path: path key: key secret: name: name optional: true items: - - mode: 6 + - mode: 3 path: path key: key - - mode: 6 + - mode: 3 path: path key: key serviceAccountToken: path: path audience: audience - expirationSeconds: 5 - defaultMode: 6 + expirationSeconds: 6 + clusterTrustBundle: + path: path + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + name: name + optional: true + signerName: signerName + defaultMode: 5 cephfs: path: path secretRef: @@ -134400,10 +161996,13 @@ components: endpoints: endpoints readOnly: true gcePersistentDisk: - partition: 2 + partition: 6 readOnly: true pdName: pdName fsType: fsType + image: + reference: reference + pullPolicy: pullPolicy photonPersistentDisk: pdID: pdID fsType: fsType @@ -134421,9 +162020,9 @@ components: readOnly: true fsType: fsType downwardAPI: - defaultMode: 3 + defaultMode: 6 items: - - mode: 6 + - mode: 1 path: path resourceFieldRef: divisor: divisor @@ -134432,7 +162031,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 6 + - mode: 1 path: path resourceFieldRef: divisor: divisor @@ -134442,7 +162041,7 @@ components: apiVersion: apiVersion fieldPath: fieldPath awsElasticBlockStore: - partition: 8 + partition: 9 volumeID: volumeID readOnly: true fsType: fsType @@ -134477,14 +162076,14 @@ components: - monitors - monitors configMap: - defaultMode: 9 + defaultMode: 6 name: name optional: true items: - - mode: 6 + - mode: 3 path: path key: key - - mode: 6 + - mode: 3 path: path key: key storageos: @@ -134524,7 +162123,7 @@ components: volumePath: volumePath fsType: fsType fc: - lun: 1 + lun: 2 targetWWNs: - targetWWNs - targetWWNs @@ -134611,10 +162210,8 @@ components: name: name namespace: namespace volumeName: volumeName + volumeAttributesClassName: volumeAttributesClassName resources: - claims: - - name: name - - name: name requests: {} limits: {} selector: @@ -134641,20 +162238,20 @@ components: volumeMode: volumeMode secret: secretName: secretName - defaultMode: 6 + defaultMode: 3 optional: true items: - - mode: 6 + - mode: 3 path: path key: key - - mode: 6 + - mode: 3 path: path key: key projected: sources: - downwardAPI: items: - - mode: 6 + - mode: 1 path: path resourceFieldRef: divisor: divisor @@ -134663,7 +162260,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 6 + - mode: 1 path: path resourceFieldRef: divisor: divisor @@ -134676,29 +162273,48 @@ components: name: name optional: true items: - - mode: 6 + - mode: 3 path: path key: key - - mode: 6 + - mode: 3 path: path key: key secret: name: name optional: true items: - - mode: 6 + - mode: 3 path: path key: key - - mode: 6 + - mode: 3 path: path key: key serviceAccountToken: path: path audience: audience - expirationSeconds: 5 + expirationSeconds: 6 + clusterTrustBundle: + path: path + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + name: name + optional: true + signerName: signerName - downwardAPI: items: - - mode: 6 + - mode: 1 path: path resourceFieldRef: divisor: divisor @@ -134707,7 +162323,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 6 + - mode: 1 path: path resourceFieldRef: divisor: divisor @@ -134720,27 +162336,46 @@ components: name: name optional: true items: - - mode: 6 + - mode: 3 path: path key: key - - mode: 6 + - mode: 3 path: path key: key secret: name: name optional: true items: - - mode: 6 + - mode: 3 path: path key: key - - mode: 6 + - mode: 3 path: path key: key serviceAccountToken: path: path audience: audience - expirationSeconds: 5 - defaultMode: 6 + expirationSeconds: 6 + clusterTrustBundle: + path: path + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + name: name + optional: true + signerName: signerName + defaultMode: 5 cephfs: path: path secretRef: @@ -134771,10 +162406,13 @@ components: endpoints: endpoints readOnly: true gcePersistentDisk: - partition: 2 + partition: 6 readOnly: true pdName: pdName fsType: fsType + image: + reference: reference + pullPolicy: pullPolicy photonPersistentDisk: pdID: pdID fsType: fsType @@ -134792,9 +162430,9 @@ components: readOnly: true fsType: fsType downwardAPI: - defaultMode: 3 + defaultMode: 6 items: - - mode: 6 + - mode: 1 path: path resourceFieldRef: divisor: divisor @@ -134803,7 +162441,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 6 + - mode: 1 path: path resourceFieldRef: divisor: divisor @@ -134813,7 +162451,7 @@ components: apiVersion: apiVersion fieldPath: fieldPath awsElasticBlockStore: - partition: 8 + partition: 9 volumeID: volumeID readOnly: true fsType: fsType @@ -134848,14 +162486,14 @@ components: - monitors - monitors configMap: - defaultMode: 9 + defaultMode: 6 name: name optional: true items: - - mode: 6 + - mode: 3 path: path key: key - - mode: 6 + - mode: 3 path: path key: key storageos: @@ -134895,7 +162533,7 @@ components: volumePath: volumePath fsType: fsType fc: - lun: 1 + lun: 2 targetWWNs: - targetWWNs - targetWWNs @@ -134907,6 +162545,14 @@ components: hostPath: path: path type: type + resources: + claims: + - request: request + name: name + - request: request + name: name + requests: {} + limits: {} ephemeralContainers: - volumeDevices: - devicePath: devicePath @@ -134930,6 +162576,9 @@ components: level: level type: type user: user + appArmorProfile: + localhostProfile: localhostProfile + type: type seccompProfile: localhostProfile: localhostProfile type: type @@ -134944,21 +162593,21 @@ components: runAsNonRoot: true readOnlyRootFilesystem: true startupProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -134974,28 +162623,32 @@ components: - protocol: protocol hostIP: hostIP name: name - containerPort: 4 - hostPort: 7 + containerPort: 7 + hostPort: 1 - protocol: protocol hostIP: hostIP name: name - containerPort: 4 - hostPort: 7 + containerPort: 7 + hostPort: 1 volumeMounts: - mountPath: mountPath mountPropagation: mountPropagation name: name readOnly: true subPath: subPath + recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - mountPath: mountPath mountPropagation: mountPropagation name: name readOnly: true subPath: subPath + recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr lifecycle: postStart: + sleep: + seconds: 5 tcpSocket: port: port host: host @@ -135014,6 +162667,8 @@ components: - name: name value: value preStop: + sleep: + seconds: 5 tcpSocket: port: port host: host @@ -135031,22 +162686,23 @@ components: value: value - name: name value: value + stopSignal: stopSignal readinessProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -135081,21 +162737,21 @@ components: image: image imagePullPolicy: imagePullPolicy livenessProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -135112,8 +162768,10 @@ components: workingDir: workingDir resources: claims: - - name: name - - name: name + - request: request + name: name + - request: request + name: name requests: {} limits: {} env: @@ -135185,6 +162843,9 @@ components: level: level type: type user: user + appArmorProfile: + localhostProfile: localhostProfile + type: type seccompProfile: localhostProfile: localhostProfile type: type @@ -135199,21 +162860,21 @@ components: runAsNonRoot: true readOnlyRootFilesystem: true startupProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -135229,28 +162890,32 @@ components: - protocol: protocol hostIP: hostIP name: name - containerPort: 4 - hostPort: 7 + containerPort: 7 + hostPort: 1 - protocol: protocol hostIP: hostIP name: name - containerPort: 4 - hostPort: 7 + containerPort: 7 + hostPort: 1 volumeMounts: - mountPath: mountPath mountPropagation: mountPropagation name: name readOnly: true subPath: subPath + recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - mountPath: mountPath mountPropagation: mountPropagation name: name readOnly: true subPath: subPath + recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr lifecycle: postStart: + sleep: + seconds: 5 tcpSocket: port: port host: host @@ -135269,6 +162934,8 @@ components: - name: name value: value preStop: + sleep: + seconds: 5 tcpSocket: port: port host: host @@ -135286,22 +162953,23 @@ components: value: value - name: name value: value + stopSignal: stopSignal readinessProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -135336,21 +163004,21 @@ components: image: image imagePullPolicy: imagePullPolicy livenessProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -135367,8 +163035,10 @@ components: workingDir: workingDir resources: claims: - - name: name - - name: name + - request: request + name: name + - request: request + name: name requests: {} limits: {} env: @@ -135419,19 +163089,17 @@ components: tty: true stdinOnce: true serviceAccount: serviceAccount - priority: 1 + priority: 6 restartPolicy: restartPolicy shareProcessNamespace: true hostUsers: true resourceClaims: - - name: name - source: - resourceClaimName: resourceClaimName - resourceClaimTemplateName: resourceClaimTemplateName - - name: name - source: - resourceClaimName: resourceClaimName - resourceClaimTemplateName: resourceClaimTemplateName + - resourceClaimName: resourceClaimName + name: name + resourceClaimTemplateName: resourceClaimTemplateName + - resourceClaimName: resourceClaimName + name: name + resourceClaimTemplateName: resourceClaimTemplateName subdomain: subdomain containers: - volumeDevices: @@ -135442,21 +163110,21 @@ components: image: image imagePullPolicy: imagePullPolicy livenessProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -135474,8 +163142,10 @@ components: workingDir: workingDir resources: claims: - - name: name - - name: name + - request: request + name: name + - request: request + name: name requests: {} limits: {} securityContext: @@ -135493,6 +163163,9 @@ components: level: level type: type user: user + appArmorProfile: + localhostProfile: localhostProfile + type: type seccompProfile: localhostProfile: localhostProfile type: type @@ -135507,21 +163180,21 @@ components: runAsNonRoot: true readOnlyRootFilesystem: true startupProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -135574,13 +163247,13 @@ components: - protocol: protocol hostIP: hostIP name: name - containerPort: 4 - hostPort: 7 + containerPort: 7 + hostPort: 1 - protocol: protocol hostIP: hostIP name: name - containerPort: 4 - hostPort: 7 + containerPort: 7 + hostPort: 1 restartPolicy: restartPolicy command: - command @@ -135591,18 +163264,22 @@ components: name: name readOnly: true subPath: subPath + recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - mountPath: mountPath mountPropagation: mountPropagation name: name readOnly: true subPath: subPath + recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr args: - args - args lifecycle: postStart: + sleep: + seconds: 5 tcpSocket: port: port host: host @@ -135621,6 +163298,8 @@ components: - name: name value: value preStop: + sleep: + seconds: 5 tcpSocket: port: port host: host @@ -135638,24 +163317,25 @@ components: value: value - name: name value: value + stopSignal: stopSignal name: name tty: true readinessProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -135696,21 +163376,21 @@ components: image: image imagePullPolicy: imagePullPolicy livenessProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -135728,8 +163408,10 @@ components: workingDir: workingDir resources: claims: - - name: name - - name: name + - request: request + name: name + - request: request + name: name requests: {} limits: {} securityContext: @@ -135747,6 +163429,9 @@ components: level: level type: type user: user + appArmorProfile: + localhostProfile: localhostProfile + type: type seccompProfile: localhostProfile: localhostProfile type: type @@ -135761,21 +163446,21 @@ components: runAsNonRoot: true readOnlyRootFilesystem: true startupProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -135828,13 +163513,13 @@ components: - protocol: protocol hostIP: hostIP name: name - containerPort: 4 - hostPort: 7 + containerPort: 7 + hostPort: 1 - protocol: protocol hostIP: hostIP name: name - containerPort: 4 - hostPort: 7 + containerPort: 7 + hostPort: 1 restartPolicy: restartPolicy command: - command @@ -135845,18 +163530,22 @@ components: name: name readOnly: true subPath: subPath + recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - mountPath: mountPath mountPropagation: mountPropagation name: name readOnly: true subPath: subPath + recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr args: - args - args lifecycle: postStart: + sleep: + seconds: 5 tcpSocket: port: port host: host @@ -135875,6 +163564,8 @@ components: - name: name value: value preStop: + sleep: + seconds: 5 tcpSocket: port: port host: host @@ -135892,24 +163583,25 @@ components: value: value - name: name value: value + stopSignal: stopSignal name: name tty: true readinessProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -135951,21 +163643,21 @@ components: image: image imagePullPolicy: imagePullPolicy livenessProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -135983,8 +163675,10 @@ components: workingDir: workingDir resources: claims: - - name: name - - name: name + - request: request + name: name + - request: request + name: name requests: {} limits: {} securityContext: @@ -136002,6 +163696,9 @@ components: level: level type: type user: user + appArmorProfile: + localhostProfile: localhostProfile + type: type seccompProfile: localhostProfile: localhostProfile type: type @@ -136016,21 +163713,21 @@ components: runAsNonRoot: true readOnlyRootFilesystem: true startupProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -136083,13 +163780,13 @@ components: - protocol: protocol hostIP: hostIP name: name - containerPort: 4 - hostPort: 7 + containerPort: 7 + hostPort: 1 - protocol: protocol hostIP: hostIP name: name - containerPort: 4 - hostPort: 7 + containerPort: 7 + hostPort: 1 restartPolicy: restartPolicy command: - command @@ -136100,18 +163797,22 @@ components: name: name readOnly: true subPath: subPath + recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - mountPath: mountPath mountPropagation: mountPropagation name: name readOnly: true subPath: subPath + recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr args: - args - args lifecycle: postStart: + sleep: + seconds: 5 tcpSocket: port: port host: host @@ -136130,6 +163831,8 @@ components: - name: name value: value preStop: + sleep: + seconds: 5 tcpSocket: port: port host: host @@ -136147,24 +163850,25 @@ components: value: value - name: name value: value + stopSignal: stopSignal name: name tty: true readinessProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -136205,21 +163909,21 @@ components: image: image imagePullPolicy: imagePullPolicy livenessProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -136237,8 +163941,10 @@ components: workingDir: workingDir resources: claims: - - name: name - - name: name + - request: request + name: name + - request: request + name: name requests: {} limits: {} securityContext: @@ -136256,6 +163962,9 @@ components: level: level type: type user: user + appArmorProfile: + localhostProfile: localhostProfile + type: type seccompProfile: localhostProfile: localhostProfile type: type @@ -136270,21 +163979,21 @@ components: runAsNonRoot: true readOnlyRootFilesystem: true startupProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -136337,13 +164046,13 @@ components: - protocol: protocol hostIP: hostIP name: name - containerPort: 4 - hostPort: 7 + containerPort: 7 + hostPort: 1 - protocol: protocol hostIP: hostIP name: name - containerPort: 4 - hostPort: 7 + containerPort: 7 + hostPort: 1 restartPolicy: restartPolicy command: - command @@ -136354,18 +164063,22 @@ components: name: name readOnly: true subPath: subPath + recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - mountPath: mountPath mountPropagation: mountPropagation name: name readOnly: true subPath: subPath + recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr args: - args - args lifecycle: postStart: + sleep: + seconds: 5 tcpSocket: port: port host: host @@ -136384,6 +164097,8 @@ components: - name: name value: value preStop: + sleep: + seconds: 5 tcpSocket: port: port host: host @@ -136401,24 +164116,25 @@ components: value: value - name: name value: value + stopSignal: stopSignal name: name tty: true readinessProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -136579,6 +164295,12 @@ components: matchLabels: key: matchLabels topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + mismatchLabelKeys: + - mismatchLabelKeys + - mismatchLabelKeys namespaces: - namespaces - namespaces @@ -136611,6 +164333,12 @@ components: matchLabels: key: matchLabels topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + mismatchLabelKeys: + - mismatchLabelKeys + - mismatchLabelKeys namespaces: - namespaces - namespaces @@ -136645,6 +164373,12 @@ components: matchLabels: key: matchLabels topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + mismatchLabelKeys: + - mismatchLabelKeys + - mismatchLabelKeys namespaces: - namespaces - namespaces @@ -136679,6 +164413,12 @@ components: matchLabels: key: matchLabels topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + mismatchLabelKeys: + - mismatchLabelKeys + - mismatchLabelKeys namespaces: - namespaces - namespaces @@ -136714,6 +164454,12 @@ components: matchLabels: key: matchLabels topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + mismatchLabelKeys: + - mismatchLabelKeys + - mismatchLabelKeys namespaces: - namespaces - namespaces @@ -136746,6 +164492,12 @@ components: matchLabels: key: matchLabels topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + mismatchLabelKeys: + - mismatchLabelKeys + - mismatchLabelKeys namespaces: - namespaces - namespaces @@ -136780,6 +164532,12 @@ components: matchLabels: key: matchLabels topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + mismatchLabelKeys: + - mismatchLabelKeys + - mismatchLabelKeys namespaces: - namespaces - namespaces @@ -136814,6 +164572,12 @@ components: matchLabels: key: matchLabels topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + mismatchLabelKeys: + - mismatchLabelKeys + - mismatchLabelKeys namespaces: - namespaces - namespaces @@ -136851,8 +164615,9 @@ components: status: status - type: type status: status - ttlSecondsAfterFinished: 3 + ttlSecondsAfterFinished: 2 podReplacementPolicy: podReplacementPolicy + managedBy: managedBy selector: matchExpressions: - values: @@ -136869,11 +164634,17 @@ components: key: matchLabels maxFailedIndexes: 2 activeDeadlineSeconds: 6 - startingDeadlineSeconds: 2 + successPolicy: + rules: + - succeededCount: 3 + succeededIndexes: succeededIndexes + - succeededCount: 3 + succeededIndexes: succeededIndexes + startingDeadlineSeconds: 4 concurrencyPolicy: concurrencyPolicy timeZone: timeZone failedJobsHistoryLimit: 0 - successfulJobsHistoryLimit: 4 + successfulJobsHistoryLimit: 7 properties: concurrencyPolicy: description: |- @@ -137062,7 +164833,7 @@ components: spec: dnsPolicy: dnsPolicy nodeName: nodeName - terminationGracePeriodSeconds: 5 + terminationGracePeriodSeconds: 9 dnsConfig: searches: - searches @@ -137094,32 +164865,37 @@ components: - hostnames - hostnames securityContext: - runAsUser: 1 seLinuxOptions: role: role level: level type: type user: user - fsGroup: 6 - seccompProfile: + appArmorProfile: localhostProfile: localhostProfile type: type - windowsOptions: - gmsaCredentialSpec: gmsaCredentialSpec - runAsUserName: runAsUserName - hostProcess: true - gmsaCredentialSpecName: gmsaCredentialSpecName + fsGroup: 7 fsGroupChangePolicy: fsGroupChangePolicy - supplementalGroups: - - 4 - - 4 - runAsGroup: 7 + seLinuxChangePolicy: seLinuxChangePolicy + runAsGroup: 1 runAsNonRoot: true sysctls: - name: name value: value - name: name value: value + runAsUser: 4 + seccompProfile: + localhostProfile: localhostProfile + type: type + windowsOptions: + gmsaCredentialSpec: gmsaCredentialSpec + runAsUserName: runAsUserName + hostProcess: true + gmsaCredentialSpecName: gmsaCredentialSpecName + supplementalGroups: + - 5 + - 5 + supplementalGroupsPolicy: supplementalGroupsPolicy preemptionPolicy: preemptionPolicy nodeSelector: key: nodeSelector @@ -137151,7 +164927,7 @@ components: topologySpreadConstraints: - nodeTaintsPolicy: nodeTaintsPolicy whenUnsatisfiable: whenUnsatisfiable - maxSkew: 9 + maxSkew: 6 nodeAffinityPolicy: nodeAffinityPolicy labelSelector: matchExpressions: @@ -137167,14 +164943,14 @@ components: operator: operator matchLabels: key: matchLabels - minDomains: 6 + minDomains: 8 topologyKey: topologyKey matchLabelKeys: - matchLabelKeys - matchLabelKeys - nodeTaintsPolicy: nodeTaintsPolicy whenUnsatisfiable: whenUnsatisfiable - maxSkew: 9 + maxSkew: 6 nodeAffinityPolicy: nodeAffinityPolicy labelSelector: matchExpressions: @@ -137190,7 +164966,7 @@ components: operator: operator matchLabels: key: matchLabels - minDomains: 6 + minDomains: 8 topologyKey: topologyKey matchLabelKeys: - matchLabelKeys @@ -137271,10 +165047,8 @@ components: name: name namespace: namespace volumeName: volumeName + volumeAttributesClassName: volumeAttributesClassName resources: - claims: - - name: name - - name: name requests: {} limits: {} selector: @@ -137301,20 +165075,20 @@ components: volumeMode: volumeMode secret: secretName: secretName - defaultMode: 6 + defaultMode: 3 optional: true items: - - mode: 6 + - mode: 3 path: path key: key - - mode: 6 + - mode: 3 path: path key: key projected: sources: - downwardAPI: items: - - mode: 6 + - mode: 1 path: path resourceFieldRef: divisor: divisor @@ -137323,7 +165097,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 6 + - mode: 1 path: path resourceFieldRef: divisor: divisor @@ -137336,29 +165110,48 @@ components: name: name optional: true items: - - mode: 6 + - mode: 3 path: path key: key - - mode: 6 + - mode: 3 path: path key: key secret: name: name optional: true items: - - mode: 6 + - mode: 3 path: path key: key - - mode: 6 + - mode: 3 path: path key: key serviceAccountToken: path: path audience: audience - expirationSeconds: 5 + expirationSeconds: 6 + clusterTrustBundle: + path: path + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + name: name + optional: true + signerName: signerName - downwardAPI: items: - - mode: 6 + - mode: 1 path: path resourceFieldRef: divisor: divisor @@ -137367,7 +165160,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 6 + - mode: 1 path: path resourceFieldRef: divisor: divisor @@ -137380,27 +165173,46 @@ components: name: name optional: true items: - - mode: 6 + - mode: 3 path: path key: key - - mode: 6 + - mode: 3 path: path key: key secret: name: name optional: true items: - - mode: 6 + - mode: 3 path: path key: key - - mode: 6 + - mode: 3 path: path key: key serviceAccountToken: path: path audience: audience - expirationSeconds: 5 - defaultMode: 6 + expirationSeconds: 6 + clusterTrustBundle: + path: path + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + name: name + optional: true + signerName: signerName + defaultMode: 5 cephfs: path: path secretRef: @@ -137431,10 +165243,13 @@ components: endpoints: endpoints readOnly: true gcePersistentDisk: - partition: 2 + partition: 6 readOnly: true pdName: pdName fsType: fsType + image: + reference: reference + pullPolicy: pullPolicy photonPersistentDisk: pdID: pdID fsType: fsType @@ -137452,9 +165267,9 @@ components: readOnly: true fsType: fsType downwardAPI: - defaultMode: 3 + defaultMode: 6 items: - - mode: 6 + - mode: 1 path: path resourceFieldRef: divisor: divisor @@ -137463,7 +165278,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 6 + - mode: 1 path: path resourceFieldRef: divisor: divisor @@ -137473,7 +165288,7 @@ components: apiVersion: apiVersion fieldPath: fieldPath awsElasticBlockStore: - partition: 8 + partition: 9 volumeID: volumeID readOnly: true fsType: fsType @@ -137508,14 +165323,14 @@ components: - monitors - monitors configMap: - defaultMode: 9 + defaultMode: 6 name: name optional: true items: - - mode: 6 + - mode: 3 path: path key: key - - mode: 6 + - mode: 3 path: path key: key storageos: @@ -137555,7 +165370,7 @@ components: volumePath: volumePath fsType: fsType fc: - lun: 1 + lun: 2 targetWWNs: - targetWWNs - targetWWNs @@ -137642,10 +165457,8 @@ components: name: name namespace: namespace volumeName: volumeName + volumeAttributesClassName: volumeAttributesClassName resources: - claims: - - name: name - - name: name requests: {} limits: {} selector: @@ -137672,20 +165485,20 @@ components: volumeMode: volumeMode secret: secretName: secretName - defaultMode: 6 + defaultMode: 3 optional: true items: - - mode: 6 + - mode: 3 path: path key: key - - mode: 6 + - mode: 3 path: path key: key projected: sources: - downwardAPI: items: - - mode: 6 + - mode: 1 path: path resourceFieldRef: divisor: divisor @@ -137694,7 +165507,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 6 + - mode: 1 path: path resourceFieldRef: divisor: divisor @@ -137707,29 +165520,48 @@ components: name: name optional: true items: - - mode: 6 + - mode: 3 path: path key: key - - mode: 6 + - mode: 3 path: path key: key secret: name: name optional: true items: - - mode: 6 + - mode: 3 path: path key: key - - mode: 6 + - mode: 3 path: path key: key serviceAccountToken: path: path audience: audience - expirationSeconds: 5 + expirationSeconds: 6 + clusterTrustBundle: + path: path + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + name: name + optional: true + signerName: signerName - downwardAPI: items: - - mode: 6 + - mode: 1 path: path resourceFieldRef: divisor: divisor @@ -137738,7 +165570,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 6 + - mode: 1 path: path resourceFieldRef: divisor: divisor @@ -137751,27 +165583,46 @@ components: name: name optional: true items: - - mode: 6 + - mode: 3 path: path key: key - - mode: 6 + - mode: 3 path: path key: key secret: name: name optional: true items: - - mode: 6 + - mode: 3 path: path key: key - - mode: 6 + - mode: 3 path: path key: key serviceAccountToken: path: path audience: audience - expirationSeconds: 5 - defaultMode: 6 + expirationSeconds: 6 + clusterTrustBundle: + path: path + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + name: name + optional: true + signerName: signerName + defaultMode: 5 cephfs: path: path secretRef: @@ -137802,10 +165653,13 @@ components: endpoints: endpoints readOnly: true gcePersistentDisk: - partition: 2 + partition: 6 readOnly: true pdName: pdName fsType: fsType + image: + reference: reference + pullPolicy: pullPolicy photonPersistentDisk: pdID: pdID fsType: fsType @@ -137823,9 +165677,9 @@ components: readOnly: true fsType: fsType downwardAPI: - defaultMode: 3 + defaultMode: 6 items: - - mode: 6 + - mode: 1 path: path resourceFieldRef: divisor: divisor @@ -137834,7 +165688,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 6 + - mode: 1 path: path resourceFieldRef: divisor: divisor @@ -137844,7 +165698,7 @@ components: apiVersion: apiVersion fieldPath: fieldPath awsElasticBlockStore: - partition: 8 + partition: 9 volumeID: volumeID readOnly: true fsType: fsType @@ -137879,14 +165733,14 @@ components: - monitors - monitors configMap: - defaultMode: 9 + defaultMode: 6 name: name optional: true items: - - mode: 6 + - mode: 3 path: path key: key - - mode: 6 + - mode: 3 path: path key: key storageos: @@ -137926,7 +165780,7 @@ components: volumePath: volumePath fsType: fsType fc: - lun: 1 + lun: 2 targetWWNs: - targetWWNs - targetWWNs @@ -137938,6 +165792,14 @@ components: hostPath: path: path type: type + resources: + claims: + - request: request + name: name + - request: request + name: name + requests: {} + limits: {} ephemeralContainers: - volumeDevices: - devicePath: devicePath @@ -137961,6 +165823,9 @@ components: level: level type: type user: user + appArmorProfile: + localhostProfile: localhostProfile + type: type seccompProfile: localhostProfile: localhostProfile type: type @@ -137975,21 +165840,21 @@ components: runAsNonRoot: true readOnlyRootFilesystem: true startupProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -138005,28 +165870,32 @@ components: - protocol: protocol hostIP: hostIP name: name - containerPort: 4 - hostPort: 7 + containerPort: 7 + hostPort: 1 - protocol: protocol hostIP: hostIP name: name - containerPort: 4 - hostPort: 7 + containerPort: 7 + hostPort: 1 volumeMounts: - mountPath: mountPath mountPropagation: mountPropagation name: name readOnly: true subPath: subPath + recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - mountPath: mountPath mountPropagation: mountPropagation name: name readOnly: true subPath: subPath + recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr lifecycle: postStart: + sleep: + seconds: 5 tcpSocket: port: port host: host @@ -138045,6 +165914,8 @@ components: - name: name value: value preStop: + sleep: + seconds: 5 tcpSocket: port: port host: host @@ -138062,22 +165933,23 @@ components: value: value - name: name value: value + stopSignal: stopSignal readinessProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -138112,21 +165984,21 @@ components: image: image imagePullPolicy: imagePullPolicy livenessProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -138143,8 +166015,10 @@ components: workingDir: workingDir resources: claims: - - name: name - - name: name + - request: request + name: name + - request: request + name: name requests: {} limits: {} env: @@ -138216,6 +166090,9 @@ components: level: level type: type user: user + appArmorProfile: + localhostProfile: localhostProfile + type: type seccompProfile: localhostProfile: localhostProfile type: type @@ -138230,21 +166107,21 @@ components: runAsNonRoot: true readOnlyRootFilesystem: true startupProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -138260,28 +166137,32 @@ components: - protocol: protocol hostIP: hostIP name: name - containerPort: 4 - hostPort: 7 + containerPort: 7 + hostPort: 1 - protocol: protocol hostIP: hostIP name: name - containerPort: 4 - hostPort: 7 + containerPort: 7 + hostPort: 1 volumeMounts: - mountPath: mountPath mountPropagation: mountPropagation name: name readOnly: true subPath: subPath + recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - mountPath: mountPath mountPropagation: mountPropagation name: name readOnly: true subPath: subPath + recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr lifecycle: postStart: + sleep: + seconds: 5 tcpSocket: port: port host: host @@ -138300,6 +166181,8 @@ components: - name: name value: value preStop: + sleep: + seconds: 5 tcpSocket: port: port host: host @@ -138317,22 +166200,23 @@ components: value: value - name: name value: value + stopSignal: stopSignal readinessProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -138367,21 +166251,21 @@ components: image: image imagePullPolicy: imagePullPolicy livenessProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -138398,8 +166282,10 @@ components: workingDir: workingDir resources: claims: - - name: name - - name: name + - request: request + name: name + - request: request + name: name requests: {} limits: {} env: @@ -138450,19 +166336,17 @@ components: tty: true stdinOnce: true serviceAccount: serviceAccount - priority: 1 + priority: 6 restartPolicy: restartPolicy shareProcessNamespace: true hostUsers: true resourceClaims: - - name: name - source: - resourceClaimName: resourceClaimName - resourceClaimTemplateName: resourceClaimTemplateName - - name: name - source: - resourceClaimName: resourceClaimName - resourceClaimTemplateName: resourceClaimTemplateName + - resourceClaimName: resourceClaimName + name: name + resourceClaimTemplateName: resourceClaimTemplateName + - resourceClaimName: resourceClaimName + name: name + resourceClaimTemplateName: resourceClaimTemplateName subdomain: subdomain containers: - volumeDevices: @@ -138473,21 +166357,21 @@ components: image: image imagePullPolicy: imagePullPolicy livenessProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -138505,8 +166389,10 @@ components: workingDir: workingDir resources: claims: - - name: name - - name: name + - request: request + name: name + - request: request + name: name requests: {} limits: {} securityContext: @@ -138524,6 +166410,9 @@ components: level: level type: type user: user + appArmorProfile: + localhostProfile: localhostProfile + type: type seccompProfile: localhostProfile: localhostProfile type: type @@ -138538,21 +166427,21 @@ components: runAsNonRoot: true readOnlyRootFilesystem: true startupProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -138605,13 +166494,13 @@ components: - protocol: protocol hostIP: hostIP name: name - containerPort: 4 - hostPort: 7 + containerPort: 7 + hostPort: 1 - protocol: protocol hostIP: hostIP name: name - containerPort: 4 - hostPort: 7 + containerPort: 7 + hostPort: 1 restartPolicy: restartPolicy command: - command @@ -138622,18 +166511,22 @@ components: name: name readOnly: true subPath: subPath + recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - mountPath: mountPath mountPropagation: mountPropagation name: name readOnly: true subPath: subPath + recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr args: - args - args lifecycle: postStart: + sleep: + seconds: 5 tcpSocket: port: port host: host @@ -138652,6 +166545,8 @@ components: - name: name value: value preStop: + sleep: + seconds: 5 tcpSocket: port: port host: host @@ -138669,24 +166564,25 @@ components: value: value - name: name value: value + stopSignal: stopSignal name: name tty: true readinessProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -138727,21 +166623,21 @@ components: image: image imagePullPolicy: imagePullPolicy livenessProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -138759,8 +166655,10 @@ components: workingDir: workingDir resources: claims: - - name: name - - name: name + - request: request + name: name + - request: request + name: name requests: {} limits: {} securityContext: @@ -138778,6 +166676,9 @@ components: level: level type: type user: user + appArmorProfile: + localhostProfile: localhostProfile + type: type seccompProfile: localhostProfile: localhostProfile type: type @@ -138792,21 +166693,21 @@ components: runAsNonRoot: true readOnlyRootFilesystem: true startupProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -138859,13 +166760,13 @@ components: - protocol: protocol hostIP: hostIP name: name - containerPort: 4 - hostPort: 7 + containerPort: 7 + hostPort: 1 - protocol: protocol hostIP: hostIP name: name - containerPort: 4 - hostPort: 7 + containerPort: 7 + hostPort: 1 restartPolicy: restartPolicy command: - command @@ -138876,18 +166777,22 @@ components: name: name readOnly: true subPath: subPath + recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - mountPath: mountPath mountPropagation: mountPropagation name: name readOnly: true subPath: subPath + recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr args: - args - args lifecycle: postStart: + sleep: + seconds: 5 tcpSocket: port: port host: host @@ -138906,6 +166811,8 @@ components: - name: name value: value preStop: + sleep: + seconds: 5 tcpSocket: port: port host: host @@ -138923,24 +166830,25 @@ components: value: value - name: name value: value + stopSignal: stopSignal name: name tty: true readinessProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -138982,21 +166890,21 @@ components: image: image imagePullPolicy: imagePullPolicy livenessProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -139014,8 +166922,10 @@ components: workingDir: workingDir resources: claims: - - name: name - - name: name + - request: request + name: name + - request: request + name: name requests: {} limits: {} securityContext: @@ -139033,6 +166943,9 @@ components: level: level type: type user: user + appArmorProfile: + localhostProfile: localhostProfile + type: type seccompProfile: localhostProfile: localhostProfile type: type @@ -139047,21 +166960,21 @@ components: runAsNonRoot: true readOnlyRootFilesystem: true startupProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -139114,13 +167027,13 @@ components: - protocol: protocol hostIP: hostIP name: name - containerPort: 4 - hostPort: 7 + containerPort: 7 + hostPort: 1 - protocol: protocol hostIP: hostIP name: name - containerPort: 4 - hostPort: 7 + containerPort: 7 + hostPort: 1 restartPolicy: restartPolicy command: - command @@ -139131,18 +167044,22 @@ components: name: name readOnly: true subPath: subPath + recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - mountPath: mountPath mountPropagation: mountPropagation name: name readOnly: true subPath: subPath + recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr args: - args - args lifecycle: postStart: + sleep: + seconds: 5 tcpSocket: port: port host: host @@ -139161,6 +167078,8 @@ components: - name: name value: value preStop: + sleep: + seconds: 5 tcpSocket: port: port host: host @@ -139178,24 +167097,25 @@ components: value: value - name: name value: value + stopSignal: stopSignal name: name tty: true readinessProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -139236,21 +167156,21 @@ components: image: image imagePullPolicy: imagePullPolicy livenessProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -139268,8 +167188,10 @@ components: workingDir: workingDir resources: claims: - - name: name - - name: name + - request: request + name: name + - request: request + name: name requests: {} limits: {} securityContext: @@ -139287,6 +167209,9 @@ components: level: level type: type user: user + appArmorProfile: + localhostProfile: localhostProfile + type: type seccompProfile: localhostProfile: localhostProfile type: type @@ -139301,21 +167226,21 @@ components: runAsNonRoot: true readOnlyRootFilesystem: true startupProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -139368,13 +167293,13 @@ components: - protocol: protocol hostIP: hostIP name: name - containerPort: 4 - hostPort: 7 + containerPort: 7 + hostPort: 1 - protocol: protocol hostIP: hostIP name: name - containerPort: 4 - hostPort: 7 + containerPort: 7 + hostPort: 1 restartPolicy: restartPolicy command: - command @@ -139385,18 +167310,22 @@ components: name: name readOnly: true subPath: subPath + recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - mountPath: mountPath mountPropagation: mountPropagation name: name readOnly: true subPath: subPath + recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr args: - args - args lifecycle: postStart: + sleep: + seconds: 5 tcpSocket: port: port host: host @@ -139415,6 +167344,8 @@ components: - name: name value: value preStop: + sleep: + seconds: 5 tcpSocket: port: port host: host @@ -139432,24 +167363,25 @@ components: value: value - name: name value: value + stopSignal: stopSignal name: name tty: true readinessProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -139610,6 +167542,12 @@ components: matchLabels: key: matchLabels topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + mismatchLabelKeys: + - mismatchLabelKeys + - mismatchLabelKeys namespaces: - namespaces - namespaces @@ -139642,6 +167580,12 @@ components: matchLabels: key: matchLabels topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + mismatchLabelKeys: + - mismatchLabelKeys + - mismatchLabelKeys namespaces: - namespaces - namespaces @@ -139676,6 +167620,12 @@ components: matchLabels: key: matchLabels topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + mismatchLabelKeys: + - mismatchLabelKeys + - mismatchLabelKeys namespaces: - namespaces - namespaces @@ -139710,6 +167660,12 @@ components: matchLabels: key: matchLabels topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + mismatchLabelKeys: + - mismatchLabelKeys + - mismatchLabelKeys namespaces: - namespaces - namespaces @@ -139745,6 +167701,12 @@ components: matchLabels: key: matchLabels topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + mismatchLabelKeys: + - mismatchLabelKeys + - mismatchLabelKeys namespaces: - namespaces - namespaces @@ -139777,6 +167739,12 @@ components: matchLabels: key: matchLabels topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + mismatchLabelKeys: + - mismatchLabelKeys + - mismatchLabelKeys namespaces: - namespaces - namespaces @@ -139811,6 +167779,12 @@ components: matchLabels: key: matchLabels topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + mismatchLabelKeys: + - mismatchLabelKeys + - mismatchLabelKeys namespaces: - namespaces - namespaces @@ -139845,6 +167819,12 @@ components: matchLabels: key: matchLabels topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + mismatchLabelKeys: + - mismatchLabelKeys + - mismatchLabelKeys namespaces: - namespaces - namespaces @@ -139882,8 +167862,9 @@ components: status: status - type: type status: status - ttlSecondsAfterFinished: 3 + ttlSecondsAfterFinished: 2 podReplacementPolicy: podReplacementPolicy + managedBy: managedBy selector: matchExpressions: - values: @@ -139900,6 +167881,12 @@ components: key: matchLabels maxFailedIndexes: 2 activeDeadlineSeconds: 6 + successPolicy: + rules: + - succeededCount: 3 + succeededIndexes: succeededIndexes + - succeededCount: 3 + succeededIndexes: succeededIndexes status: completionTime: 2000-01-23T04:56:07.000+00:00 completedIndexes: completedIndexes @@ -140099,7 +168086,7 @@ components: spec: dnsPolicy: dnsPolicy nodeName: nodeName - terminationGracePeriodSeconds: 5 + terminationGracePeriodSeconds: 9 dnsConfig: searches: - searches @@ -140131,32 +168118,37 @@ components: - hostnames - hostnames securityContext: - runAsUser: 1 seLinuxOptions: role: role level: level type: type user: user - fsGroup: 6 - seccompProfile: + appArmorProfile: localhostProfile: localhostProfile type: type - windowsOptions: - gmsaCredentialSpec: gmsaCredentialSpec - runAsUserName: runAsUserName - hostProcess: true - gmsaCredentialSpecName: gmsaCredentialSpecName + fsGroup: 7 fsGroupChangePolicy: fsGroupChangePolicy - supplementalGroups: - - 4 - - 4 - runAsGroup: 7 + seLinuxChangePolicy: seLinuxChangePolicy + runAsGroup: 1 runAsNonRoot: true sysctls: - name: name value: value - name: name value: value + runAsUser: 4 + seccompProfile: + localhostProfile: localhostProfile + type: type + windowsOptions: + gmsaCredentialSpec: gmsaCredentialSpec + runAsUserName: runAsUserName + hostProcess: true + gmsaCredentialSpecName: gmsaCredentialSpecName + supplementalGroups: + - 5 + - 5 + supplementalGroupsPolicy: supplementalGroupsPolicy preemptionPolicy: preemptionPolicy nodeSelector: key: nodeSelector @@ -140188,7 +168180,7 @@ components: topologySpreadConstraints: - nodeTaintsPolicy: nodeTaintsPolicy whenUnsatisfiable: whenUnsatisfiable - maxSkew: 9 + maxSkew: 6 nodeAffinityPolicy: nodeAffinityPolicy labelSelector: matchExpressions: @@ -140204,14 +168196,14 @@ components: operator: operator matchLabels: key: matchLabels - minDomains: 6 + minDomains: 8 topologyKey: topologyKey matchLabelKeys: - matchLabelKeys - matchLabelKeys - nodeTaintsPolicy: nodeTaintsPolicy whenUnsatisfiable: whenUnsatisfiable - maxSkew: 9 + maxSkew: 6 nodeAffinityPolicy: nodeAffinityPolicy labelSelector: matchExpressions: @@ -140227,7 +168219,7 @@ components: operator: operator matchLabels: key: matchLabels - minDomains: 6 + minDomains: 8 topologyKey: topologyKey matchLabelKeys: - matchLabelKeys @@ -140308,10 +168300,8 @@ components: name: name namespace: namespace volumeName: volumeName + volumeAttributesClassName: volumeAttributesClassName resources: - claims: - - name: name - - name: name requests: {} limits: {} selector: @@ -140338,20 +168328,20 @@ components: volumeMode: volumeMode secret: secretName: secretName - defaultMode: 6 + defaultMode: 3 optional: true items: - - mode: 6 + - mode: 3 path: path key: key - - mode: 6 + - mode: 3 path: path key: key projected: sources: - downwardAPI: items: - - mode: 6 + - mode: 1 path: path resourceFieldRef: divisor: divisor @@ -140360,7 +168350,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 6 + - mode: 1 path: path resourceFieldRef: divisor: divisor @@ -140373,29 +168363,48 @@ components: name: name optional: true items: - - mode: 6 + - mode: 3 path: path key: key - - mode: 6 + - mode: 3 path: path key: key secret: name: name optional: true items: - - mode: 6 + - mode: 3 path: path key: key - - mode: 6 + - mode: 3 path: path key: key serviceAccountToken: path: path audience: audience - expirationSeconds: 5 + expirationSeconds: 6 + clusterTrustBundle: + path: path + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + name: name + optional: true + signerName: signerName - downwardAPI: items: - - mode: 6 + - mode: 1 path: path resourceFieldRef: divisor: divisor @@ -140404,7 +168413,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 6 + - mode: 1 path: path resourceFieldRef: divisor: divisor @@ -140417,27 +168426,46 @@ components: name: name optional: true items: - - mode: 6 + - mode: 3 path: path key: key - - mode: 6 + - mode: 3 path: path key: key secret: name: name optional: true items: - - mode: 6 + - mode: 3 path: path key: key - - mode: 6 + - mode: 3 path: path key: key serviceAccountToken: path: path audience: audience - expirationSeconds: 5 - defaultMode: 6 + expirationSeconds: 6 + clusterTrustBundle: + path: path + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + name: name + optional: true + signerName: signerName + defaultMode: 5 cephfs: path: path secretRef: @@ -140468,10 +168496,13 @@ components: endpoints: endpoints readOnly: true gcePersistentDisk: - partition: 2 + partition: 6 readOnly: true pdName: pdName fsType: fsType + image: + reference: reference + pullPolicy: pullPolicy photonPersistentDisk: pdID: pdID fsType: fsType @@ -140489,9 +168520,9 @@ components: readOnly: true fsType: fsType downwardAPI: - defaultMode: 3 + defaultMode: 6 items: - - mode: 6 + - mode: 1 path: path resourceFieldRef: divisor: divisor @@ -140500,7 +168531,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 6 + - mode: 1 path: path resourceFieldRef: divisor: divisor @@ -140510,7 +168541,7 @@ components: apiVersion: apiVersion fieldPath: fieldPath awsElasticBlockStore: - partition: 8 + partition: 9 volumeID: volumeID readOnly: true fsType: fsType @@ -140545,14 +168576,14 @@ components: - monitors - monitors configMap: - defaultMode: 9 + defaultMode: 6 name: name optional: true items: - - mode: 6 + - mode: 3 path: path key: key - - mode: 6 + - mode: 3 path: path key: key storageos: @@ -140592,7 +168623,7 @@ components: volumePath: volumePath fsType: fsType fc: - lun: 1 + lun: 2 targetWWNs: - targetWWNs - targetWWNs @@ -140679,10 +168710,8 @@ components: name: name namespace: namespace volumeName: volumeName + volumeAttributesClassName: volumeAttributesClassName resources: - claims: - - name: name - - name: name requests: {} limits: {} selector: @@ -140709,20 +168738,20 @@ components: volumeMode: volumeMode secret: secretName: secretName - defaultMode: 6 + defaultMode: 3 optional: true items: - - mode: 6 + - mode: 3 path: path key: key - - mode: 6 + - mode: 3 path: path key: key projected: sources: - downwardAPI: items: - - mode: 6 + - mode: 1 path: path resourceFieldRef: divisor: divisor @@ -140731,7 +168760,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 6 + - mode: 1 path: path resourceFieldRef: divisor: divisor @@ -140744,29 +168773,48 @@ components: name: name optional: true items: - - mode: 6 + - mode: 3 path: path key: key - - mode: 6 + - mode: 3 path: path key: key secret: name: name optional: true items: - - mode: 6 + - mode: 3 path: path key: key - - mode: 6 + - mode: 3 path: path key: key serviceAccountToken: path: path audience: audience - expirationSeconds: 5 + expirationSeconds: 6 + clusterTrustBundle: + path: path + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + name: name + optional: true + signerName: signerName - downwardAPI: items: - - mode: 6 + - mode: 1 path: path resourceFieldRef: divisor: divisor @@ -140775,7 +168823,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 6 + - mode: 1 path: path resourceFieldRef: divisor: divisor @@ -140788,27 +168836,46 @@ components: name: name optional: true items: - - mode: 6 + - mode: 3 path: path key: key - - mode: 6 + - mode: 3 path: path key: key secret: name: name optional: true items: - - mode: 6 + - mode: 3 path: path key: key - - mode: 6 + - mode: 3 path: path key: key serviceAccountToken: path: path audience: audience - expirationSeconds: 5 - defaultMode: 6 + expirationSeconds: 6 + clusterTrustBundle: + path: path + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + name: name + optional: true + signerName: signerName + defaultMode: 5 cephfs: path: path secretRef: @@ -140839,10 +168906,13 @@ components: endpoints: endpoints readOnly: true gcePersistentDisk: - partition: 2 + partition: 6 readOnly: true pdName: pdName fsType: fsType + image: + reference: reference + pullPolicy: pullPolicy photonPersistentDisk: pdID: pdID fsType: fsType @@ -140860,9 +168930,9 @@ components: readOnly: true fsType: fsType downwardAPI: - defaultMode: 3 + defaultMode: 6 items: - - mode: 6 + - mode: 1 path: path resourceFieldRef: divisor: divisor @@ -140871,7 +168941,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 6 + - mode: 1 path: path resourceFieldRef: divisor: divisor @@ -140881,7 +168951,7 @@ components: apiVersion: apiVersion fieldPath: fieldPath awsElasticBlockStore: - partition: 8 + partition: 9 volumeID: volumeID readOnly: true fsType: fsType @@ -140916,14 +168986,14 @@ components: - monitors - monitors configMap: - defaultMode: 9 + defaultMode: 6 name: name optional: true items: - - mode: 6 + - mode: 3 path: path key: key - - mode: 6 + - mode: 3 path: path key: key storageos: @@ -140963,7 +169033,7 @@ components: volumePath: volumePath fsType: fsType fc: - lun: 1 + lun: 2 targetWWNs: - targetWWNs - targetWWNs @@ -140975,6 +169045,14 @@ components: hostPath: path: path type: type + resources: + claims: + - request: request + name: name + - request: request + name: name + requests: {} + limits: {} ephemeralContainers: - volumeDevices: - devicePath: devicePath @@ -140998,6 +169076,276 @@ components: level: level type: type user: user + appArmorProfile: + localhostProfile: localhostProfile + type: type + seccompProfile: + localhostProfile: localhostProfile + type: type + windowsOptions: + gmsaCredentialSpec: gmsaCredentialSpec + runAsUserName: runAsUserName + hostProcess: true + gmsaCredentialSpecName: gmsaCredentialSpecName + procMount: procMount + allowPrivilegeEscalation: true + runAsGroup: 1 + runAsNonRoot: true + readOnlyRootFilesystem: true + startupProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: port + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + ports: + - protocol: protocol + hostIP: hostIP + name: name + containerPort: 7 + hostPort: 1 + - protocol: protocol + hostIP: hostIP + name: name + containerPort: 7 + hostPort: 1 + volumeMounts: + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + recursiveReadOnly: recursiveReadOnly + subPathExpr: subPathExpr + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + recursiveReadOnly: recursiveReadOnly + subPathExpr: subPathExpr + lifecycle: + postStart: + sleep: + seconds: 5 + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + preStop: + sleep: + seconds: 5 + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + stopSignal: stopSignal + readinessProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: port + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + resizePolicy: + - resourceName: resourceName + restartPolicy: restartPolicy + - resourceName: resourceName + restartPolicy: restartPolicy + envFrom: + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + image: image + imagePullPolicy: imagePullPolicy + livenessProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: port + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + targetContainerName: targetContainerName + terminationMessagePath: terminationMessagePath + workingDir: workingDir + resources: + claims: + - request: request + name: name + - request: request + name: name + requests: {} + limits: {} + env: + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + restartPolicy: restartPolicy + command: + - command + - command + args: + - args + - args + name: name + tty: true + stdinOnce: true + - volumeDevices: + - devicePath: devicePath + name: name + - devicePath: devicePath + name: name + stdin: true + terminationMessagePolicy: terminationMessagePolicy + securityContext: + privileged: true + runAsUser: 1 + capabilities: + add: + - add + - add + drop: + - drop + - drop + seLinuxOptions: + role: role + level: level + type: type + user: user + appArmorProfile: + localhostProfile: localhostProfile + type: type seccompProfile: localhostProfile: localhostProfile type: type @@ -141012,21 +169360,21 @@ components: runAsNonRoot: true readOnlyRootFilesystem: true startupProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -141042,28 +169390,32 @@ components: - protocol: protocol hostIP: hostIP name: name - containerPort: 4 - hostPort: 7 + containerPort: 7 + hostPort: 1 - protocol: protocol hostIP: hostIP name: name - containerPort: 4 - hostPort: 7 + containerPort: 7 + hostPort: 1 volumeMounts: - mountPath: mountPath mountPropagation: mountPropagation name: name readOnly: true subPath: subPath + recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - mountPath: mountPath mountPropagation: mountPropagation name: name readOnly: true subPath: subPath + recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr lifecycle: postStart: + sleep: + seconds: 5 tcpSocket: port: port host: host @@ -141082,6 +169434,8 @@ components: - name: name value: value preStop: + sleep: + seconds: 5 tcpSocket: port: port host: host @@ -141099,22 +169453,23 @@ components: value: value - name: name value: value + stopSignal: stopSignal readinessProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -141149,21 +169504,21 @@ components: image: image imagePullPolicy: imagePullPolicy livenessProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -141180,263 +169535,10 @@ components: workingDir: workingDir resources: claims: - - name: name - - name: name - requests: {} - limits: {} - env: - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - restartPolicy: restartPolicy - command: - - command - - command - args: - - args - - args - name: name - tty: true - stdinOnce: true - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name - stdin: true - terminationMessagePolicy: terminationMessagePolicy - securityContext: - privileged: true - runAsUser: 1 - capabilities: - add: - - add - - add - drop: - - drop - - drop - seLinuxOptions: - role: role - level: level - type: type - user: user - seccompProfile: - localhostProfile: localhostProfile - type: type - windowsOptions: - gmsaCredentialSpec: gmsaCredentialSpec - runAsUserName: runAsUserName - hostProcess: true - gmsaCredentialSpecName: gmsaCredentialSpecName - procMount: procMount - allowPrivilegeEscalation: true - runAsGroup: 1 - runAsNonRoot: true - readOnlyRootFilesystem: true - startupProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - ports: - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 4 - hostPort: 7 - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 4 - hostPort: 7 - volumeMounts: - - mountPath: mountPath - mountPropagation: mountPropagation - name: name - readOnly: true - subPath: subPath - subPathExpr: subPathExpr - - mountPath: mountPath - mountPropagation: mountPropagation - name: name - readOnly: true - subPath: subPath - subPathExpr: subPathExpr - lifecycle: - postStart: - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - preStop: - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - readinessProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - resizePolicy: - - resourceName: resourceName - restartPolicy: restartPolicy - - resourceName: resourceName - restartPolicy: restartPolicy - envFrom: - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - - configMapRef: + - request: request name: name - optional: true - prefix: prefix - secretRef: + - request: request name: name - optional: true - image: image - imagePullPolicy: imagePullPolicy - livenessProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - targetContainerName: targetContainerName - terminationMessagePath: terminationMessagePath - workingDir: workingDir - resources: - claims: - - name: name - - name: name requests: {} limits: {} env: @@ -141487,19 +169589,17 @@ components: tty: true stdinOnce: true serviceAccount: serviceAccount - priority: 1 + priority: 6 restartPolicy: restartPolicy shareProcessNamespace: true hostUsers: true resourceClaims: - - name: name - source: - resourceClaimName: resourceClaimName - resourceClaimTemplateName: resourceClaimTemplateName - - name: name - source: - resourceClaimName: resourceClaimName - resourceClaimTemplateName: resourceClaimTemplateName + - resourceClaimName: resourceClaimName + name: name + resourceClaimTemplateName: resourceClaimTemplateName + - resourceClaimName: resourceClaimName + name: name + resourceClaimTemplateName: resourceClaimTemplateName subdomain: subdomain containers: - volumeDevices: @@ -141510,21 +169610,21 @@ components: image: image imagePullPolicy: imagePullPolicy livenessProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -141542,8 +169642,10 @@ components: workingDir: workingDir resources: claims: - - name: name - - name: name + - request: request + name: name + - request: request + name: name requests: {} limits: {} securityContext: @@ -141561,6 +169663,9 @@ components: level: level type: type user: user + appArmorProfile: + localhostProfile: localhostProfile + type: type seccompProfile: localhostProfile: localhostProfile type: type @@ -141575,21 +169680,21 @@ components: runAsNonRoot: true readOnlyRootFilesystem: true startupProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -141642,13 +169747,13 @@ components: - protocol: protocol hostIP: hostIP name: name - containerPort: 4 - hostPort: 7 + containerPort: 7 + hostPort: 1 - protocol: protocol hostIP: hostIP name: name - containerPort: 4 - hostPort: 7 + containerPort: 7 + hostPort: 1 restartPolicy: restartPolicy command: - command @@ -141659,18 +169764,22 @@ components: name: name readOnly: true subPath: subPath + recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - mountPath: mountPath mountPropagation: mountPropagation name: name readOnly: true subPath: subPath + recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr args: - args - args lifecycle: postStart: + sleep: + seconds: 5 tcpSocket: port: port host: host @@ -141689,6 +169798,8 @@ components: - name: name value: value preStop: + sleep: + seconds: 5 tcpSocket: port: port host: host @@ -141706,24 +169817,25 @@ components: value: value - name: name value: value + stopSignal: stopSignal name: name tty: true readinessProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -141764,21 +169876,21 @@ components: image: image imagePullPolicy: imagePullPolicy livenessProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -141796,8 +169908,10 @@ components: workingDir: workingDir resources: claims: - - name: name - - name: name + - request: request + name: name + - request: request + name: name requests: {} limits: {} securityContext: @@ -141815,6 +169929,9 @@ components: level: level type: type user: user + appArmorProfile: + localhostProfile: localhostProfile + type: type seccompProfile: localhostProfile: localhostProfile type: type @@ -141829,21 +169946,21 @@ components: runAsNonRoot: true readOnlyRootFilesystem: true startupProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -141896,13 +170013,13 @@ components: - protocol: protocol hostIP: hostIP name: name - containerPort: 4 - hostPort: 7 + containerPort: 7 + hostPort: 1 - protocol: protocol hostIP: hostIP name: name - containerPort: 4 - hostPort: 7 + containerPort: 7 + hostPort: 1 restartPolicy: restartPolicy command: - command @@ -141913,18 +170030,22 @@ components: name: name readOnly: true subPath: subPath + recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - mountPath: mountPath mountPropagation: mountPropagation name: name readOnly: true subPath: subPath + recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr args: - args - args lifecycle: postStart: + sleep: + seconds: 5 tcpSocket: port: port host: host @@ -141943,6 +170064,8 @@ components: - name: name value: value preStop: + sleep: + seconds: 5 tcpSocket: port: port host: host @@ -141960,24 +170083,25 @@ components: value: value - name: name value: value + stopSignal: stopSignal name: name tty: true readinessProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -142019,21 +170143,21 @@ components: image: image imagePullPolicy: imagePullPolicy livenessProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -142051,8 +170175,10 @@ components: workingDir: workingDir resources: claims: - - name: name - - name: name + - request: request + name: name + - request: request + name: name requests: {} limits: {} securityContext: @@ -142070,6 +170196,9 @@ components: level: level type: type user: user + appArmorProfile: + localhostProfile: localhostProfile + type: type seccompProfile: localhostProfile: localhostProfile type: type @@ -142084,21 +170213,21 @@ components: runAsNonRoot: true readOnlyRootFilesystem: true startupProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -142151,13 +170280,13 @@ components: - protocol: protocol hostIP: hostIP name: name - containerPort: 4 - hostPort: 7 + containerPort: 7 + hostPort: 1 - protocol: protocol hostIP: hostIP name: name - containerPort: 4 - hostPort: 7 + containerPort: 7 + hostPort: 1 restartPolicy: restartPolicy command: - command @@ -142168,18 +170297,22 @@ components: name: name readOnly: true subPath: subPath + recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - mountPath: mountPath mountPropagation: mountPropagation name: name readOnly: true subPath: subPath + recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr args: - args - args lifecycle: postStart: + sleep: + seconds: 5 tcpSocket: port: port host: host @@ -142198,6 +170331,8 @@ components: - name: name value: value preStop: + sleep: + seconds: 5 tcpSocket: port: port host: host @@ -142215,24 +170350,25 @@ components: value: value - name: name value: value + stopSignal: stopSignal name: name tty: true readinessProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -142273,21 +170409,21 @@ components: image: image imagePullPolicy: imagePullPolicy livenessProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -142305,8 +170441,10 @@ components: workingDir: workingDir resources: claims: - - name: name - - name: name + - request: request + name: name + - request: request + name: name requests: {} limits: {} securityContext: @@ -142324,6 +170462,9 @@ components: level: level type: type user: user + appArmorProfile: + localhostProfile: localhostProfile + type: type seccompProfile: localhostProfile: localhostProfile type: type @@ -142338,21 +170479,21 @@ components: runAsNonRoot: true readOnlyRootFilesystem: true startupProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -142405,13 +170546,13 @@ components: - protocol: protocol hostIP: hostIP name: name - containerPort: 4 - hostPort: 7 + containerPort: 7 + hostPort: 1 - protocol: protocol hostIP: hostIP name: name - containerPort: 4 - hostPort: 7 + containerPort: 7 + hostPort: 1 restartPolicy: restartPolicy command: - command @@ -142422,18 +170563,22 @@ components: name: name readOnly: true subPath: subPath + recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - mountPath: mountPath mountPropagation: mountPropagation name: name readOnly: true subPath: subPath + recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr args: - args - args lifecycle: postStart: + sleep: + seconds: 5 tcpSocket: port: port host: host @@ -142452,6 +170597,8 @@ components: - name: name value: value preStop: + sleep: + seconds: 5 tcpSocket: port: port host: host @@ -142469,24 +170616,25 @@ components: value: value - name: name value: value + stopSignal: stopSignal name: name tty: true readinessProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -142647,6 +170795,12 @@ components: matchLabels: key: matchLabels topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + mismatchLabelKeys: + - mismatchLabelKeys + - mismatchLabelKeys namespaces: - namespaces - namespaces @@ -142679,6 +170833,12 @@ components: matchLabels: key: matchLabels topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + mismatchLabelKeys: + - mismatchLabelKeys + - mismatchLabelKeys namespaces: - namespaces - namespaces @@ -142713,6 +170873,12 @@ components: matchLabels: key: matchLabels topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + mismatchLabelKeys: + - mismatchLabelKeys + - mismatchLabelKeys namespaces: - namespaces - namespaces @@ -142747,6 +170913,12 @@ components: matchLabels: key: matchLabels topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + mismatchLabelKeys: + - mismatchLabelKeys + - mismatchLabelKeys namespaces: - namespaces - namespaces @@ -142782,6 +170954,12 @@ components: matchLabels: key: matchLabels topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + mismatchLabelKeys: + - mismatchLabelKeys + - mismatchLabelKeys namespaces: - namespaces - namespaces @@ -142814,6 +170992,12 @@ components: matchLabels: key: matchLabels topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + mismatchLabelKeys: + - mismatchLabelKeys + - mismatchLabelKeys namespaces: - namespaces - namespaces @@ -142848,6 +171032,12 @@ components: matchLabels: key: matchLabels topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + mismatchLabelKeys: + - mismatchLabelKeys + - mismatchLabelKeys namespaces: - namespaces - namespaces @@ -142882,6 +171072,12 @@ components: matchLabels: key: matchLabels topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + mismatchLabelKeys: + - mismatchLabelKeys + - mismatchLabelKeys namespaces: - namespaces - namespaces @@ -142919,8 +171115,9 @@ components: status: status - type: type status: status - ttlSecondsAfterFinished: 3 + ttlSecondsAfterFinished: 2 podReplacementPolicy: podReplacementPolicy + managedBy: managedBy selector: matchExpressions: - values: @@ -142937,6 +171134,12 @@ components: key: matchLabels maxFailedIndexes: 2 activeDeadlineSeconds: 6 + successPolicy: + rules: + - succeededCount: 3 + succeededIndexes: succeededIndexes + - succeededCount: 3 + succeededIndexes: succeededIndexes status: completionTime: 2000-01-23T04:56:07.000+00:00 completedIndexes: completedIndexes @@ -143067,7 +171270,7 @@ components: spec: dnsPolicy: dnsPolicy nodeName: nodeName - terminationGracePeriodSeconds: 5 + terminationGracePeriodSeconds: 9 dnsConfig: searches: - searches @@ -143099,32 +171302,37 @@ components: - hostnames - hostnames securityContext: - runAsUser: 1 seLinuxOptions: role: role level: level type: type user: user - fsGroup: 6 - seccompProfile: + appArmorProfile: localhostProfile: localhostProfile type: type - windowsOptions: - gmsaCredentialSpec: gmsaCredentialSpec - runAsUserName: runAsUserName - hostProcess: true - gmsaCredentialSpecName: gmsaCredentialSpecName + fsGroup: 7 fsGroupChangePolicy: fsGroupChangePolicy - supplementalGroups: - - 4 - - 4 - runAsGroup: 7 + seLinuxChangePolicy: seLinuxChangePolicy + runAsGroup: 1 runAsNonRoot: true sysctls: - name: name value: value - name: name value: value + runAsUser: 4 + seccompProfile: + localhostProfile: localhostProfile + type: type + windowsOptions: + gmsaCredentialSpec: gmsaCredentialSpec + runAsUserName: runAsUserName + hostProcess: true + gmsaCredentialSpecName: gmsaCredentialSpecName + supplementalGroups: + - 5 + - 5 + supplementalGroupsPolicy: supplementalGroupsPolicy preemptionPolicy: preemptionPolicy nodeSelector: key: nodeSelector @@ -143156,7 +171364,7 @@ components: topologySpreadConstraints: - nodeTaintsPolicy: nodeTaintsPolicy whenUnsatisfiable: whenUnsatisfiable - maxSkew: 9 + maxSkew: 6 nodeAffinityPolicy: nodeAffinityPolicy labelSelector: matchExpressions: @@ -143172,14 +171380,14 @@ components: operator: operator matchLabels: key: matchLabels - minDomains: 6 + minDomains: 8 topologyKey: topologyKey matchLabelKeys: - matchLabelKeys - matchLabelKeys - nodeTaintsPolicy: nodeTaintsPolicy whenUnsatisfiable: whenUnsatisfiable - maxSkew: 9 + maxSkew: 6 nodeAffinityPolicy: nodeAffinityPolicy labelSelector: matchExpressions: @@ -143195,7 +171403,7 @@ components: operator: operator matchLabels: key: matchLabels - minDomains: 6 + minDomains: 8 topologyKey: topologyKey matchLabelKeys: - matchLabelKeys @@ -143276,10 +171484,8 @@ components: name: name namespace: namespace volumeName: volumeName + volumeAttributesClassName: volumeAttributesClassName resources: - claims: - - name: name - - name: name requests: {} limits: {} selector: @@ -143306,20 +171512,20 @@ components: volumeMode: volumeMode secret: secretName: secretName - defaultMode: 6 + defaultMode: 3 optional: true items: - - mode: 6 + - mode: 3 path: path key: key - - mode: 6 + - mode: 3 path: path key: key projected: sources: - downwardAPI: items: - - mode: 6 + - mode: 1 path: path resourceFieldRef: divisor: divisor @@ -143328,7 +171534,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 6 + - mode: 1 path: path resourceFieldRef: divisor: divisor @@ -143341,29 +171547,48 @@ components: name: name optional: true items: - - mode: 6 + - mode: 3 path: path key: key - - mode: 6 + - mode: 3 path: path key: key secret: name: name optional: true items: - - mode: 6 + - mode: 3 path: path key: key - - mode: 6 + - mode: 3 path: path key: key serviceAccountToken: path: path audience: audience - expirationSeconds: 5 + expirationSeconds: 6 + clusterTrustBundle: + path: path + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + name: name + optional: true + signerName: signerName - downwardAPI: items: - - mode: 6 + - mode: 1 path: path resourceFieldRef: divisor: divisor @@ -143372,7 +171597,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 6 + - mode: 1 path: path resourceFieldRef: divisor: divisor @@ -143385,27 +171610,46 @@ components: name: name optional: true items: - - mode: 6 + - mode: 3 path: path key: key - - mode: 6 + - mode: 3 path: path key: key secret: name: name optional: true items: - - mode: 6 + - mode: 3 path: path key: key - - mode: 6 + - mode: 3 path: path key: key serviceAccountToken: path: path audience: audience - expirationSeconds: 5 - defaultMode: 6 + expirationSeconds: 6 + clusterTrustBundle: + path: path + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + name: name + optional: true + signerName: signerName + defaultMode: 5 cephfs: path: path secretRef: @@ -143436,10 +171680,13 @@ components: endpoints: endpoints readOnly: true gcePersistentDisk: - partition: 2 + partition: 6 readOnly: true pdName: pdName fsType: fsType + image: + reference: reference + pullPolicy: pullPolicy photonPersistentDisk: pdID: pdID fsType: fsType @@ -143457,9 +171704,9 @@ components: readOnly: true fsType: fsType downwardAPI: - defaultMode: 3 + defaultMode: 6 items: - - mode: 6 + - mode: 1 path: path resourceFieldRef: divisor: divisor @@ -143468,7 +171715,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 6 + - mode: 1 path: path resourceFieldRef: divisor: divisor @@ -143478,7 +171725,7 @@ components: apiVersion: apiVersion fieldPath: fieldPath awsElasticBlockStore: - partition: 8 + partition: 9 volumeID: volumeID readOnly: true fsType: fsType @@ -143513,14 +171760,14 @@ components: - monitors - monitors configMap: - defaultMode: 9 + defaultMode: 6 name: name optional: true items: - - mode: 6 + - mode: 3 path: path key: key - - mode: 6 + - mode: 3 path: path key: key storageos: @@ -143560,7 +171807,7 @@ components: volumePath: volumePath fsType: fsType fc: - lun: 1 + lun: 2 targetWWNs: - targetWWNs - targetWWNs @@ -143647,10 +171894,8 @@ components: name: name namespace: namespace volumeName: volumeName + volumeAttributesClassName: volumeAttributesClassName resources: - claims: - - name: name - - name: name requests: {} limits: {} selector: @@ -143677,20 +171922,20 @@ components: volumeMode: volumeMode secret: secretName: secretName - defaultMode: 6 + defaultMode: 3 optional: true items: - - mode: 6 + - mode: 3 path: path key: key - - mode: 6 + - mode: 3 path: path key: key projected: sources: - downwardAPI: items: - - mode: 6 + - mode: 1 path: path resourceFieldRef: divisor: divisor @@ -143699,7 +171944,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 6 + - mode: 1 path: path resourceFieldRef: divisor: divisor @@ -143712,29 +171957,48 @@ components: name: name optional: true items: - - mode: 6 + - mode: 3 path: path key: key - - mode: 6 + - mode: 3 path: path key: key secret: name: name optional: true items: - - mode: 6 + - mode: 3 path: path key: key - - mode: 6 + - mode: 3 path: path key: key serviceAccountToken: path: path audience: audience - expirationSeconds: 5 + expirationSeconds: 6 + clusterTrustBundle: + path: path + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + name: name + optional: true + signerName: signerName - downwardAPI: items: - - mode: 6 + - mode: 1 path: path resourceFieldRef: divisor: divisor @@ -143743,7 +172007,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 6 + - mode: 1 path: path resourceFieldRef: divisor: divisor @@ -143756,27 +172020,46 @@ components: name: name optional: true items: - - mode: 6 + - mode: 3 path: path key: key - - mode: 6 + - mode: 3 path: path key: key secret: name: name optional: true items: - - mode: 6 + - mode: 3 path: path key: key - - mode: 6 + - mode: 3 path: path key: key serviceAccountToken: path: path audience: audience - expirationSeconds: 5 - defaultMode: 6 + expirationSeconds: 6 + clusterTrustBundle: + path: path + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + name: name + optional: true + signerName: signerName + defaultMode: 5 cephfs: path: path secretRef: @@ -143807,10 +172090,13 @@ components: endpoints: endpoints readOnly: true gcePersistentDisk: - partition: 2 + partition: 6 readOnly: true pdName: pdName fsType: fsType + image: + reference: reference + pullPolicy: pullPolicy photonPersistentDisk: pdID: pdID fsType: fsType @@ -143828,9 +172114,9 @@ components: readOnly: true fsType: fsType downwardAPI: - defaultMode: 3 + defaultMode: 6 items: - - mode: 6 + - mode: 1 path: path resourceFieldRef: divisor: divisor @@ -143839,7 +172125,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 6 + - mode: 1 path: path resourceFieldRef: divisor: divisor @@ -143849,7 +172135,7 @@ components: apiVersion: apiVersion fieldPath: fieldPath awsElasticBlockStore: - partition: 8 + partition: 9 volumeID: volumeID readOnly: true fsType: fsType @@ -143884,14 +172170,14 @@ components: - monitors - monitors configMap: - defaultMode: 9 + defaultMode: 6 name: name optional: true items: - - mode: 6 + - mode: 3 path: path key: key - - mode: 6 + - mode: 3 path: path key: key storageos: @@ -143931,7 +172217,7 @@ components: volumePath: volumePath fsType: fsType fc: - lun: 1 + lun: 2 targetWWNs: - targetWWNs - targetWWNs @@ -143943,6 +172229,14 @@ components: hostPath: path: path type: type + resources: + claims: + - request: request + name: name + - request: request + name: name + requests: {} + limits: {} ephemeralContainers: - volumeDevices: - devicePath: devicePath @@ -143966,6 +172260,9 @@ components: level: level type: type user: user + appArmorProfile: + localhostProfile: localhostProfile + type: type seccompProfile: localhostProfile: localhostProfile type: type @@ -143980,21 +172277,21 @@ components: runAsNonRoot: true readOnlyRootFilesystem: true startupProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -144010,28 +172307,32 @@ components: - protocol: protocol hostIP: hostIP name: name - containerPort: 4 - hostPort: 7 + containerPort: 7 + hostPort: 1 - protocol: protocol hostIP: hostIP name: name - containerPort: 4 - hostPort: 7 + containerPort: 7 + hostPort: 1 volumeMounts: - mountPath: mountPath mountPropagation: mountPropagation name: name readOnly: true subPath: subPath + recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - mountPath: mountPath mountPropagation: mountPropagation name: name readOnly: true subPath: subPath + recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr lifecycle: postStart: + sleep: + seconds: 5 tcpSocket: port: port host: host @@ -144050,6 +172351,8 @@ components: - name: name value: value preStop: + sleep: + seconds: 5 tcpSocket: port: port host: host @@ -144067,22 +172370,23 @@ components: value: value - name: name value: value + stopSignal: stopSignal readinessProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -144117,21 +172421,21 @@ components: image: image imagePullPolicy: imagePullPolicy livenessProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -144148,8 +172452,10 @@ components: workingDir: workingDir resources: claims: - - name: name - - name: name + - request: request + name: name + - request: request + name: name requests: {} limits: {} env: @@ -144221,6 +172527,9 @@ components: level: level type: type user: user + appArmorProfile: + localhostProfile: localhostProfile + type: type seccompProfile: localhostProfile: localhostProfile type: type @@ -144235,21 +172544,21 @@ components: runAsNonRoot: true readOnlyRootFilesystem: true startupProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -144265,28 +172574,32 @@ components: - protocol: protocol hostIP: hostIP name: name - containerPort: 4 - hostPort: 7 + containerPort: 7 + hostPort: 1 - protocol: protocol hostIP: hostIP name: name - containerPort: 4 - hostPort: 7 + containerPort: 7 + hostPort: 1 volumeMounts: - mountPath: mountPath mountPropagation: mountPropagation name: name readOnly: true subPath: subPath + recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - mountPath: mountPath mountPropagation: mountPropagation name: name readOnly: true subPath: subPath + recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr lifecycle: postStart: + sleep: + seconds: 5 tcpSocket: port: port host: host @@ -144305,6 +172618,8 @@ components: - name: name value: value preStop: + sleep: + seconds: 5 tcpSocket: port: port host: host @@ -144322,22 +172637,23 @@ components: value: value - name: name value: value + stopSignal: stopSignal readinessProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -144372,21 +172688,21 @@ components: image: image imagePullPolicy: imagePullPolicy livenessProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -144403,8 +172719,10 @@ components: workingDir: workingDir resources: claims: - - name: name - - name: name + - request: request + name: name + - request: request + name: name requests: {} limits: {} env: @@ -144455,19 +172773,17 @@ components: tty: true stdinOnce: true serviceAccount: serviceAccount - priority: 1 + priority: 6 restartPolicy: restartPolicy shareProcessNamespace: true hostUsers: true resourceClaims: - - name: name - source: - resourceClaimName: resourceClaimName - resourceClaimTemplateName: resourceClaimTemplateName - - name: name - source: - resourceClaimName: resourceClaimName - resourceClaimTemplateName: resourceClaimTemplateName + - resourceClaimName: resourceClaimName + name: name + resourceClaimTemplateName: resourceClaimTemplateName + - resourceClaimName: resourceClaimName + name: name + resourceClaimTemplateName: resourceClaimTemplateName subdomain: subdomain containers: - volumeDevices: @@ -144478,21 +172794,21 @@ components: image: image imagePullPolicy: imagePullPolicy livenessProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -144510,8 +172826,10 @@ components: workingDir: workingDir resources: claims: - - name: name - - name: name + - request: request + name: name + - request: request + name: name requests: {} limits: {} securityContext: @@ -144529,6 +172847,9 @@ components: level: level type: type user: user + appArmorProfile: + localhostProfile: localhostProfile + type: type seccompProfile: localhostProfile: localhostProfile type: type @@ -144543,21 +172864,21 @@ components: runAsNonRoot: true readOnlyRootFilesystem: true startupProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -144610,13 +172931,13 @@ components: - protocol: protocol hostIP: hostIP name: name - containerPort: 4 - hostPort: 7 + containerPort: 7 + hostPort: 1 - protocol: protocol hostIP: hostIP name: name - containerPort: 4 - hostPort: 7 + containerPort: 7 + hostPort: 1 restartPolicy: restartPolicy command: - command @@ -144627,18 +172948,22 @@ components: name: name readOnly: true subPath: subPath + recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - mountPath: mountPath mountPropagation: mountPropagation name: name readOnly: true subPath: subPath + recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr args: - args - args lifecycle: postStart: + sleep: + seconds: 5 tcpSocket: port: port host: host @@ -144657,6 +172982,8 @@ components: - name: name value: value preStop: + sleep: + seconds: 5 tcpSocket: port: port host: host @@ -144674,24 +173001,25 @@ components: value: value - name: name value: value + stopSignal: stopSignal name: name tty: true readinessProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -144732,21 +173060,21 @@ components: image: image imagePullPolicy: imagePullPolicy livenessProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -144764,8 +173092,10 @@ components: workingDir: workingDir resources: claims: - - name: name - - name: name + - request: request + name: name + - request: request + name: name requests: {} limits: {} securityContext: @@ -144783,6 +173113,9 @@ components: level: level type: type user: user + appArmorProfile: + localhostProfile: localhostProfile + type: type seccompProfile: localhostProfile: localhostProfile type: type @@ -144797,21 +173130,21 @@ components: runAsNonRoot: true readOnlyRootFilesystem: true startupProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -144864,13 +173197,13 @@ components: - protocol: protocol hostIP: hostIP name: name - containerPort: 4 - hostPort: 7 + containerPort: 7 + hostPort: 1 - protocol: protocol hostIP: hostIP name: name - containerPort: 4 - hostPort: 7 + containerPort: 7 + hostPort: 1 restartPolicy: restartPolicy command: - command @@ -144881,18 +173214,22 @@ components: name: name readOnly: true subPath: subPath + recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - mountPath: mountPath mountPropagation: mountPropagation name: name readOnly: true subPath: subPath + recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr args: - args - args lifecycle: postStart: + sleep: + seconds: 5 tcpSocket: port: port host: host @@ -144911,6 +173248,8 @@ components: - name: name value: value preStop: + sleep: + seconds: 5 tcpSocket: port: port host: host @@ -144928,24 +173267,25 @@ components: value: value - name: name value: value + stopSignal: stopSignal name: name tty: true readinessProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -144987,21 +173327,21 @@ components: image: image imagePullPolicy: imagePullPolicy livenessProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -145019,8 +173359,10 @@ components: workingDir: workingDir resources: claims: - - name: name - - name: name + - request: request + name: name + - request: request + name: name requests: {} limits: {} securityContext: @@ -145038,6 +173380,9 @@ components: level: level type: type user: user + appArmorProfile: + localhostProfile: localhostProfile + type: type seccompProfile: localhostProfile: localhostProfile type: type @@ -145052,21 +173397,21 @@ components: runAsNonRoot: true readOnlyRootFilesystem: true startupProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -145119,13 +173464,13 @@ components: - protocol: protocol hostIP: hostIP name: name - containerPort: 4 - hostPort: 7 + containerPort: 7 + hostPort: 1 - protocol: protocol hostIP: hostIP name: name - containerPort: 4 - hostPort: 7 + containerPort: 7 + hostPort: 1 restartPolicy: restartPolicy command: - command @@ -145136,18 +173481,22 @@ components: name: name readOnly: true subPath: subPath + recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - mountPath: mountPath mountPropagation: mountPropagation name: name readOnly: true subPath: subPath + recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr args: - args - args lifecycle: postStart: + sleep: + seconds: 5 tcpSocket: port: port host: host @@ -145166,6 +173515,8 @@ components: - name: name value: value preStop: + sleep: + seconds: 5 tcpSocket: port: port host: host @@ -145183,24 +173534,25 @@ components: value: value - name: name value: value + stopSignal: stopSignal name: name tty: true readinessProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -145241,21 +173593,21 @@ components: image: image imagePullPolicy: imagePullPolicy livenessProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -145273,8 +173625,10 @@ components: workingDir: workingDir resources: claims: - - name: name - - name: name + - request: request + name: name + - request: request + name: name requests: {} limits: {} securityContext: @@ -145292,6 +173646,9 @@ components: level: level type: type user: user + appArmorProfile: + localhostProfile: localhostProfile + type: type seccompProfile: localhostProfile: localhostProfile type: type @@ -145306,21 +173663,21 @@ components: runAsNonRoot: true readOnlyRootFilesystem: true startupProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -145373,13 +173730,13 @@ components: - protocol: protocol hostIP: hostIP name: name - containerPort: 4 - hostPort: 7 + containerPort: 7 + hostPort: 1 - protocol: protocol hostIP: hostIP name: name - containerPort: 4 - hostPort: 7 + containerPort: 7 + hostPort: 1 restartPolicy: restartPolicy command: - command @@ -145390,18 +173747,22 @@ components: name: name readOnly: true subPath: subPath + recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - mountPath: mountPath mountPropagation: mountPropagation name: name readOnly: true subPath: subPath + recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr args: - args - args lifecycle: postStart: + sleep: + seconds: 5 tcpSocket: port: port host: host @@ -145420,6 +173781,8 @@ components: - name: name value: value preStop: + sleep: + seconds: 5 tcpSocket: port: port host: host @@ -145437,24 +173800,25 @@ components: value: value - name: name value: value + stopSignal: stopSignal name: name tty: true readinessProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -145615,6 +173979,12 @@ components: matchLabels: key: matchLabels topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + mismatchLabelKeys: + - mismatchLabelKeys + - mismatchLabelKeys namespaces: - namespaces - namespaces @@ -145647,6 +174017,12 @@ components: matchLabels: key: matchLabels topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + mismatchLabelKeys: + - mismatchLabelKeys + - mismatchLabelKeys namespaces: - namespaces - namespaces @@ -145681,6 +174057,12 @@ components: matchLabels: key: matchLabels topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + mismatchLabelKeys: + - mismatchLabelKeys + - mismatchLabelKeys namespaces: - namespaces - namespaces @@ -145715,6 +174097,12 @@ components: matchLabels: key: matchLabels topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + mismatchLabelKeys: + - mismatchLabelKeys + - mismatchLabelKeys namespaces: - namespaces - namespaces @@ -145750,6 +174138,12 @@ components: matchLabels: key: matchLabels topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + mismatchLabelKeys: + - mismatchLabelKeys + - mismatchLabelKeys namespaces: - namespaces - namespaces @@ -145782,6 +174176,12 @@ components: matchLabels: key: matchLabels topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + mismatchLabelKeys: + - mismatchLabelKeys + - mismatchLabelKeys namespaces: - namespaces - namespaces @@ -145816,6 +174216,12 @@ components: matchLabels: key: matchLabels topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + mismatchLabelKeys: + - mismatchLabelKeys + - mismatchLabelKeys namespaces: - namespaces - namespaces @@ -145850,6 +174256,12 @@ components: matchLabels: key: matchLabels topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + mismatchLabelKeys: + - mismatchLabelKeys + - mismatchLabelKeys namespaces: - namespaces - namespaces @@ -145887,8 +174299,9 @@ components: status: status - type: type status: status - ttlSecondsAfterFinished: 3 + ttlSecondsAfterFinished: 2 podReplacementPolicy: podReplacementPolicy + managedBy: managedBy selector: matchExpressions: - values: @@ -145905,6 +174318,12 @@ components: key: matchLabels maxFailedIndexes: 2 activeDeadlineSeconds: 6 + successPolicy: + rules: + - succeededCount: 3 + succeededIndexes: succeededIndexes + - succeededCount: 3 + succeededIndexes: succeededIndexes status: completionTime: 2000-01-23T04:56:07.000+00:00 completedIndexes: completedIndexes @@ -146016,7 +174435,7 @@ components: spec: dnsPolicy: dnsPolicy nodeName: nodeName - terminationGracePeriodSeconds: 5 + terminationGracePeriodSeconds: 9 dnsConfig: searches: - searches @@ -146048,32 +174467,37 @@ components: - hostnames - hostnames securityContext: - runAsUser: 1 seLinuxOptions: role: role level: level type: type user: user - fsGroup: 6 - seccompProfile: + appArmorProfile: localhostProfile: localhostProfile type: type - windowsOptions: - gmsaCredentialSpec: gmsaCredentialSpec - runAsUserName: runAsUserName - hostProcess: true - gmsaCredentialSpecName: gmsaCredentialSpecName + fsGroup: 7 fsGroupChangePolicy: fsGroupChangePolicy - supplementalGroups: - - 4 - - 4 - runAsGroup: 7 + seLinuxChangePolicy: seLinuxChangePolicy + runAsGroup: 1 runAsNonRoot: true sysctls: - name: name value: value - name: name value: value + runAsUser: 4 + seccompProfile: + localhostProfile: localhostProfile + type: type + windowsOptions: + gmsaCredentialSpec: gmsaCredentialSpec + runAsUserName: runAsUserName + hostProcess: true + gmsaCredentialSpecName: gmsaCredentialSpecName + supplementalGroups: + - 5 + - 5 + supplementalGroupsPolicy: supplementalGroupsPolicy preemptionPolicy: preemptionPolicy nodeSelector: key: nodeSelector @@ -146105,7 +174529,7 @@ components: topologySpreadConstraints: - nodeTaintsPolicy: nodeTaintsPolicy whenUnsatisfiable: whenUnsatisfiable - maxSkew: 9 + maxSkew: 6 nodeAffinityPolicy: nodeAffinityPolicy labelSelector: matchExpressions: @@ -146121,14 +174545,14 @@ components: operator: operator matchLabels: key: matchLabels - minDomains: 6 + minDomains: 8 topologyKey: topologyKey matchLabelKeys: - matchLabelKeys - matchLabelKeys - nodeTaintsPolicy: nodeTaintsPolicy whenUnsatisfiable: whenUnsatisfiable - maxSkew: 9 + maxSkew: 6 nodeAffinityPolicy: nodeAffinityPolicy labelSelector: matchExpressions: @@ -146144,7 +174568,7 @@ components: operator: operator matchLabels: key: matchLabels - minDomains: 6 + minDomains: 8 topologyKey: topologyKey matchLabelKeys: - matchLabelKeys @@ -146225,10 +174649,8 @@ components: name: name namespace: namespace volumeName: volumeName + volumeAttributesClassName: volumeAttributesClassName resources: - claims: - - name: name - - name: name requests: {} limits: {} selector: @@ -146255,20 +174677,20 @@ components: volumeMode: volumeMode secret: secretName: secretName - defaultMode: 6 + defaultMode: 3 optional: true items: - - mode: 6 + - mode: 3 path: path key: key - - mode: 6 + - mode: 3 path: path key: key projected: sources: - downwardAPI: items: - - mode: 6 + - mode: 1 path: path resourceFieldRef: divisor: divisor @@ -146277,7 +174699,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 6 + - mode: 1 path: path resourceFieldRef: divisor: divisor @@ -146290,29 +174712,48 @@ components: name: name optional: true items: - - mode: 6 + - mode: 3 path: path key: key - - mode: 6 + - mode: 3 path: path key: key secret: name: name optional: true items: - - mode: 6 + - mode: 3 path: path key: key - - mode: 6 + - mode: 3 path: path key: key serviceAccountToken: path: path audience: audience - expirationSeconds: 5 + expirationSeconds: 6 + clusterTrustBundle: + path: path + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + name: name + optional: true + signerName: signerName - downwardAPI: items: - - mode: 6 + - mode: 1 path: path resourceFieldRef: divisor: divisor @@ -146321,7 +174762,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 6 + - mode: 1 path: path resourceFieldRef: divisor: divisor @@ -146334,27 +174775,46 @@ components: name: name optional: true items: - - mode: 6 + - mode: 3 path: path key: key - - mode: 6 + - mode: 3 path: path key: key secret: name: name optional: true items: - - mode: 6 + - mode: 3 path: path key: key - - mode: 6 + - mode: 3 path: path key: key serviceAccountToken: path: path audience: audience - expirationSeconds: 5 - defaultMode: 6 + expirationSeconds: 6 + clusterTrustBundle: + path: path + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + name: name + optional: true + signerName: signerName + defaultMode: 5 cephfs: path: path secretRef: @@ -146385,10 +174845,13 @@ components: endpoints: endpoints readOnly: true gcePersistentDisk: - partition: 2 + partition: 6 readOnly: true pdName: pdName fsType: fsType + image: + reference: reference + pullPolicy: pullPolicy photonPersistentDisk: pdID: pdID fsType: fsType @@ -146406,9 +174869,9 @@ components: readOnly: true fsType: fsType downwardAPI: - defaultMode: 3 + defaultMode: 6 items: - - mode: 6 + - mode: 1 path: path resourceFieldRef: divisor: divisor @@ -146417,7 +174880,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 6 + - mode: 1 path: path resourceFieldRef: divisor: divisor @@ -146427,7 +174890,7 @@ components: apiVersion: apiVersion fieldPath: fieldPath awsElasticBlockStore: - partition: 8 + partition: 9 volumeID: volumeID readOnly: true fsType: fsType @@ -146462,14 +174925,14 @@ components: - monitors - monitors configMap: - defaultMode: 9 + defaultMode: 6 name: name optional: true items: - - mode: 6 + - mode: 3 path: path key: key - - mode: 6 + - mode: 3 path: path key: key storageos: @@ -146509,7 +174972,7 @@ components: volumePath: volumePath fsType: fsType fc: - lun: 1 + lun: 2 targetWWNs: - targetWWNs - targetWWNs @@ -146596,10 +175059,8 @@ components: name: name namespace: namespace volumeName: volumeName + volumeAttributesClassName: volumeAttributesClassName resources: - claims: - - name: name - - name: name requests: {} limits: {} selector: @@ -146626,20 +175087,20 @@ components: volumeMode: volumeMode secret: secretName: secretName - defaultMode: 6 + defaultMode: 3 optional: true items: - - mode: 6 + - mode: 3 path: path key: key - - mode: 6 + - mode: 3 path: path key: key projected: sources: - downwardAPI: items: - - mode: 6 + - mode: 1 path: path resourceFieldRef: divisor: divisor @@ -146648,7 +175109,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 6 + - mode: 1 path: path resourceFieldRef: divisor: divisor @@ -146661,29 +175122,48 @@ components: name: name optional: true items: - - mode: 6 + - mode: 3 path: path key: key - - mode: 6 + - mode: 3 path: path key: key secret: name: name optional: true items: - - mode: 6 + - mode: 3 path: path key: key - - mode: 6 + - mode: 3 path: path key: key serviceAccountToken: path: path audience: audience - expirationSeconds: 5 + expirationSeconds: 6 + clusterTrustBundle: + path: path + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + name: name + optional: true + signerName: signerName - downwardAPI: items: - - mode: 6 + - mode: 1 path: path resourceFieldRef: divisor: divisor @@ -146692,7 +175172,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 6 + - mode: 1 path: path resourceFieldRef: divisor: divisor @@ -146705,27 +175185,46 @@ components: name: name optional: true items: - - mode: 6 + - mode: 3 path: path key: key - - mode: 6 + - mode: 3 path: path key: key secret: name: name optional: true items: - - mode: 6 + - mode: 3 path: path key: key - - mode: 6 + - mode: 3 path: path key: key serviceAccountToken: path: path audience: audience - expirationSeconds: 5 - defaultMode: 6 + expirationSeconds: 6 + clusterTrustBundle: + path: path + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + name: name + optional: true + signerName: signerName + defaultMode: 5 cephfs: path: path secretRef: @@ -146756,10 +175255,13 @@ components: endpoints: endpoints readOnly: true gcePersistentDisk: - partition: 2 + partition: 6 readOnly: true pdName: pdName fsType: fsType + image: + reference: reference + pullPolicy: pullPolicy photonPersistentDisk: pdID: pdID fsType: fsType @@ -146777,9 +175279,9 @@ components: readOnly: true fsType: fsType downwardAPI: - defaultMode: 3 + defaultMode: 6 items: - - mode: 6 + - mode: 1 path: path resourceFieldRef: divisor: divisor @@ -146788,7 +175290,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 6 + - mode: 1 path: path resourceFieldRef: divisor: divisor @@ -146798,7 +175300,7 @@ components: apiVersion: apiVersion fieldPath: fieldPath awsElasticBlockStore: - partition: 8 + partition: 9 volumeID: volumeID readOnly: true fsType: fsType @@ -146833,14 +175335,14 @@ components: - monitors - monitors configMap: - defaultMode: 9 + defaultMode: 6 name: name optional: true items: - - mode: 6 + - mode: 3 path: path key: key - - mode: 6 + - mode: 3 path: path key: key storageos: @@ -146880,7 +175382,7 @@ components: volumePath: volumePath fsType: fsType fc: - lun: 1 + lun: 2 targetWWNs: - targetWWNs - targetWWNs @@ -146892,6 +175394,14 @@ components: hostPath: path: path type: type + resources: + claims: + - request: request + name: name + - request: request + name: name + requests: {} + limits: {} ephemeralContainers: - volumeDevices: - devicePath: devicePath @@ -146915,6 +175425,9 @@ components: level: level type: type user: user + appArmorProfile: + localhostProfile: localhostProfile + type: type seccompProfile: localhostProfile: localhostProfile type: type @@ -146929,21 +175442,21 @@ components: runAsNonRoot: true readOnlyRootFilesystem: true startupProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -146959,28 +175472,32 @@ components: - protocol: protocol hostIP: hostIP name: name - containerPort: 4 - hostPort: 7 + containerPort: 7 + hostPort: 1 - protocol: protocol hostIP: hostIP name: name - containerPort: 4 - hostPort: 7 + containerPort: 7 + hostPort: 1 volumeMounts: - mountPath: mountPath mountPropagation: mountPropagation name: name readOnly: true subPath: subPath + recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - mountPath: mountPath mountPropagation: mountPropagation name: name readOnly: true subPath: subPath + recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr lifecycle: postStart: + sleep: + seconds: 5 tcpSocket: port: port host: host @@ -146999,6 +175516,8 @@ components: - name: name value: value preStop: + sleep: + seconds: 5 tcpSocket: port: port host: host @@ -147016,22 +175535,23 @@ components: value: value - name: name value: value + stopSignal: stopSignal readinessProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -147066,21 +175586,21 @@ components: image: image imagePullPolicy: imagePullPolicy livenessProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -147097,8 +175617,10 @@ components: workingDir: workingDir resources: claims: - - name: name - - name: name + - request: request + name: name + - request: request + name: name requests: {} limits: {} env: @@ -147170,6 +175692,9 @@ components: level: level type: type user: user + appArmorProfile: + localhostProfile: localhostProfile + type: type seccompProfile: localhostProfile: localhostProfile type: type @@ -147184,21 +175709,21 @@ components: runAsNonRoot: true readOnlyRootFilesystem: true startupProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -147214,28 +175739,32 @@ components: - protocol: protocol hostIP: hostIP name: name - containerPort: 4 - hostPort: 7 + containerPort: 7 + hostPort: 1 - protocol: protocol hostIP: hostIP name: name - containerPort: 4 - hostPort: 7 + containerPort: 7 + hostPort: 1 volumeMounts: - mountPath: mountPath mountPropagation: mountPropagation name: name readOnly: true subPath: subPath + recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - mountPath: mountPath mountPropagation: mountPropagation name: name readOnly: true subPath: subPath + recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr lifecycle: postStart: + sleep: + seconds: 5 tcpSocket: port: port host: host @@ -147254,6 +175783,8 @@ components: - name: name value: value preStop: + sleep: + seconds: 5 tcpSocket: port: port host: host @@ -147271,22 +175802,23 @@ components: value: value - name: name value: value + stopSignal: stopSignal readinessProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -147321,21 +175853,21 @@ components: image: image imagePullPolicy: imagePullPolicy livenessProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -147352,8 +175884,10 @@ components: workingDir: workingDir resources: claims: - - name: name - - name: name + - request: request + name: name + - request: request + name: name requests: {} limits: {} env: @@ -147404,19 +175938,17 @@ components: tty: true stdinOnce: true serviceAccount: serviceAccount - priority: 1 + priority: 6 restartPolicy: restartPolicy shareProcessNamespace: true hostUsers: true resourceClaims: - - name: name - source: - resourceClaimName: resourceClaimName - resourceClaimTemplateName: resourceClaimTemplateName - - name: name - source: - resourceClaimName: resourceClaimName - resourceClaimTemplateName: resourceClaimTemplateName + - resourceClaimName: resourceClaimName + name: name + resourceClaimTemplateName: resourceClaimTemplateName + - resourceClaimName: resourceClaimName + name: name + resourceClaimTemplateName: resourceClaimTemplateName subdomain: subdomain containers: - volumeDevices: @@ -147427,21 +175959,21 @@ components: image: image imagePullPolicy: imagePullPolicy livenessProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -147459,8 +175991,10 @@ components: workingDir: workingDir resources: claims: - - name: name - - name: name + - request: request + name: name + - request: request + name: name requests: {} limits: {} securityContext: @@ -147478,6 +176012,9 @@ components: level: level type: type user: user + appArmorProfile: + localhostProfile: localhostProfile + type: type seccompProfile: localhostProfile: localhostProfile type: type @@ -147492,21 +176029,21 @@ components: runAsNonRoot: true readOnlyRootFilesystem: true startupProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -147559,13 +176096,13 @@ components: - protocol: protocol hostIP: hostIP name: name - containerPort: 4 - hostPort: 7 + containerPort: 7 + hostPort: 1 - protocol: protocol hostIP: hostIP name: name - containerPort: 4 - hostPort: 7 + containerPort: 7 + hostPort: 1 restartPolicy: restartPolicy command: - command @@ -147576,18 +176113,22 @@ components: name: name readOnly: true subPath: subPath + recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - mountPath: mountPath mountPropagation: mountPropagation name: name readOnly: true subPath: subPath + recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr args: - args - args lifecycle: postStart: + sleep: + seconds: 5 tcpSocket: port: port host: host @@ -147606,6 +176147,8 @@ components: - name: name value: value preStop: + sleep: + seconds: 5 tcpSocket: port: port host: host @@ -147623,24 +176166,25 @@ components: value: value - name: name value: value + stopSignal: stopSignal name: name tty: true readinessProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -147681,21 +176225,21 @@ components: image: image imagePullPolicy: imagePullPolicy livenessProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -147713,8 +176257,10 @@ components: workingDir: workingDir resources: claims: - - name: name - - name: name + - request: request + name: name + - request: request + name: name requests: {} limits: {} securityContext: @@ -147732,6 +176278,9 @@ components: level: level type: type user: user + appArmorProfile: + localhostProfile: localhostProfile + type: type seccompProfile: localhostProfile: localhostProfile type: type @@ -147746,21 +176295,21 @@ components: runAsNonRoot: true readOnlyRootFilesystem: true startupProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -147813,13 +176362,13 @@ components: - protocol: protocol hostIP: hostIP name: name - containerPort: 4 - hostPort: 7 + containerPort: 7 + hostPort: 1 - protocol: protocol hostIP: hostIP name: name - containerPort: 4 - hostPort: 7 + containerPort: 7 + hostPort: 1 restartPolicy: restartPolicy command: - command @@ -147830,18 +176379,22 @@ components: name: name readOnly: true subPath: subPath + recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - mountPath: mountPath mountPropagation: mountPropagation name: name readOnly: true subPath: subPath + recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr args: - args - args lifecycle: postStart: + sleep: + seconds: 5 tcpSocket: port: port host: host @@ -147860,6 +176413,8 @@ components: - name: name value: value preStop: + sleep: + seconds: 5 tcpSocket: port: port host: host @@ -147877,24 +176432,25 @@ components: value: value - name: name value: value + stopSignal: stopSignal name: name tty: true readinessProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -147936,21 +176492,21 @@ components: image: image imagePullPolicy: imagePullPolicy livenessProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -147968,8 +176524,10 @@ components: workingDir: workingDir resources: claims: - - name: name - - name: name + - request: request + name: name + - request: request + name: name requests: {} limits: {} securityContext: @@ -147987,6 +176545,9 @@ components: level: level type: type user: user + appArmorProfile: + localhostProfile: localhostProfile + type: type seccompProfile: localhostProfile: localhostProfile type: type @@ -148001,21 +176562,21 @@ components: runAsNonRoot: true readOnlyRootFilesystem: true startupProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -148068,13 +176629,13 @@ components: - protocol: protocol hostIP: hostIP name: name - containerPort: 4 - hostPort: 7 + containerPort: 7 + hostPort: 1 - protocol: protocol hostIP: hostIP name: name - containerPort: 4 - hostPort: 7 + containerPort: 7 + hostPort: 1 restartPolicy: restartPolicy command: - command @@ -148085,18 +176646,22 @@ components: name: name readOnly: true subPath: subPath + recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - mountPath: mountPath mountPropagation: mountPropagation name: name readOnly: true subPath: subPath + recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr args: - args - args lifecycle: postStart: + sleep: + seconds: 5 tcpSocket: port: port host: host @@ -148115,6 +176680,8 @@ components: - name: name value: value preStop: + sleep: + seconds: 5 tcpSocket: port: port host: host @@ -148132,24 +176699,25 @@ components: value: value - name: name value: value + stopSignal: stopSignal name: name tty: true readinessProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -148190,21 +176758,21 @@ components: image: image imagePullPolicy: imagePullPolicy livenessProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -148222,8 +176790,10 @@ components: workingDir: workingDir resources: claims: - - name: name - - name: name + - request: request + name: name + - request: request + name: name requests: {} limits: {} securityContext: @@ -148241,6 +176811,9 @@ components: level: level type: type user: user + appArmorProfile: + localhostProfile: localhostProfile + type: type seccompProfile: localhostProfile: localhostProfile type: type @@ -148255,21 +176828,21 @@ components: runAsNonRoot: true readOnlyRootFilesystem: true startupProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -148322,13 +176895,13 @@ components: - protocol: protocol hostIP: hostIP name: name - containerPort: 4 - hostPort: 7 + containerPort: 7 + hostPort: 1 - protocol: protocol hostIP: hostIP name: name - containerPort: 4 - hostPort: 7 + containerPort: 7 + hostPort: 1 restartPolicy: restartPolicy command: - command @@ -148339,18 +176912,22 @@ components: name: name readOnly: true subPath: subPath + recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - mountPath: mountPath mountPropagation: mountPropagation name: name readOnly: true subPath: subPath + recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr args: - args - args lifecycle: postStart: + sleep: + seconds: 5 tcpSocket: port: port host: host @@ -148369,6 +176946,8 @@ components: - name: name value: value preStop: + sleep: + seconds: 5 tcpSocket: port: port host: host @@ -148386,24 +176965,25 @@ components: value: value - name: name value: value + stopSignal: stopSignal name: name tty: true readinessProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -148564,6 +177144,12 @@ components: matchLabels: key: matchLabels topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + mismatchLabelKeys: + - mismatchLabelKeys + - mismatchLabelKeys namespaces: - namespaces - namespaces @@ -148596,6 +177182,12 @@ components: matchLabels: key: matchLabels topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + mismatchLabelKeys: + - mismatchLabelKeys + - mismatchLabelKeys namespaces: - namespaces - namespaces @@ -148630,6 +177222,12 @@ components: matchLabels: key: matchLabels topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + mismatchLabelKeys: + - mismatchLabelKeys + - mismatchLabelKeys namespaces: - namespaces - namespaces @@ -148664,6 +177262,12 @@ components: matchLabels: key: matchLabels topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + mismatchLabelKeys: + - mismatchLabelKeys + - mismatchLabelKeys namespaces: - namespaces - namespaces @@ -148699,6 +177303,12 @@ components: matchLabels: key: matchLabels topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + mismatchLabelKeys: + - mismatchLabelKeys + - mismatchLabelKeys namespaces: - namespaces - namespaces @@ -148731,6 +177341,12 @@ components: matchLabels: key: matchLabels topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + mismatchLabelKeys: + - mismatchLabelKeys + - mismatchLabelKeys namespaces: - namespaces - namespaces @@ -148765,6 +177381,12 @@ components: matchLabels: key: matchLabels topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + mismatchLabelKeys: + - mismatchLabelKeys + - mismatchLabelKeys namespaces: - namespaces - namespaces @@ -148799,6 +177421,12 @@ components: matchLabels: key: matchLabels topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + mismatchLabelKeys: + - mismatchLabelKeys + - mismatchLabelKeys namespaces: - namespaces - namespaces @@ -148836,8 +177464,9 @@ components: status: status - type: type status: status - ttlSecondsAfterFinished: 3 + ttlSecondsAfterFinished: 2 podReplacementPolicy: podReplacementPolicy + managedBy: managedBy selector: matchExpressions: - values: @@ -148854,6 +177483,12 @@ components: key: matchLabels maxFailedIndexes: 2 activeDeadlineSeconds: 6 + successPolicy: + rules: + - succeededCount: 3 + succeededIndexes: succeededIndexes + - succeededCount: 3 + succeededIndexes: succeededIndexes properties: activeDeadlineSeconds: description: Specifies the duration in seconds relative to the startTime @@ -148873,9 +177508,7 @@ components: 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 alpha-level. It can be used when the `JobBackoffLimitPerIndex` feature - gate is enabled (disabled by default). + the Pod's restart policy is Never. The field is immutable. format: int32 type: integer completionMode: @@ -148897,6 +177530,12 @@ components: https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/' format: int32 type: integer + managedBy: + description: |- + 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 beta-level. The job controller accepts setting the field when the feature gate JobManagedBy is enabled (enabled by default). + type: string manualSelector: description: 'manualSelector controls generation of pod labels and pod selectors. Leave `manualSelector` unset unless you are certain what you are doing. @@ -148915,9 +177554,7 @@ components: 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 alpha-level. - It can be used when the `JobBackoffLimitPerIndex` feature gate is enabled - (disabled by default). + 10^4 when is completions greater than 10^5. format: int32 type: integer parallelism: @@ -148937,10 +177574,12 @@ components: - 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 alpha field. Enable JobPodReplacementPolicy to be able to use this field. + 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. type: string selector: $ref: '#/components/schemas/v1.LabelSelector' + successPolicy: + $ref: '#/components/schemas/v1.SuccessPolicy' suspend: description: suspend specifies whether the Job controller should create Pods or not. If a Job is created with suspend set to true, no Pods are @@ -149000,7 +177639,8 @@ components: succeeded: 5 properties: active: - description: The number of pending and running pods. + description: The number of pending and running pods which are not terminating + (without a deletionTimestamp). The value is zero for finished jobs. format: int32 type: integer completedIndexes: @@ -149014,17 +177654,18 @@ components: completionTime: description: 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 only set when the - job finishes successfully. + 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. format: date-time type: string conditions: - description: '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. More info: https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/' + description: |- + 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/ items: $ref: '#/components/schemas/v1.JobCondition' type: array @@ -149032,44 +177673,43 @@ components: x-kubernetes-list-type: atomic x-kubernetes-patch-merge-key: type failed: - description: The number of pods which reached phase Failed. + description: The number of pods which reached phase Failed. The value increases + monotonically. format: int32 type: integer failedIndexes: - description: FailedIndexes holds the failed indexes when backoffLimitPerIndex=true. - 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". This field is alpha-level. - It can be used when the `JobBackoffLimitPerIndex` feature gate is enabled - (disabled by default). + description: 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. type: string ready: - description: |- - The number of pods which have a Ready condition. - - This field is beta-level. The job controller populates the field when the feature gate JobReadyPods is enabled (enabled by default). + description: The number of active pods which have a Ready condition and + are not terminating (without a deletionTimestamp). format: int32 type: integer startTime: - description: 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. + description: |- + 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. format: date-time type: string succeeded: - description: The number of pods which reached phase Succeeded. + description: 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. format: int32 type: integer terminating: description: |- The number of pods which are terminating (in phase Pending or Running and have a deletionTimestamp). - This field is alpha-level. The job controller populates the field when the feature gate JobPodReplacementPolicy is enabled (disabled by default). + This field is beta-level. The job controller populates the field when the feature gate JobPodReplacementPolicy is enabled (enabled by default). format: int32 type: integer uncountedTerminatedPods: @@ -149177,7 +177817,7 @@ components: spec: dnsPolicy: dnsPolicy nodeName: nodeName - terminationGracePeriodSeconds: 5 + terminationGracePeriodSeconds: 9 dnsConfig: searches: - searches @@ -149209,32 +177849,37 @@ components: - hostnames - hostnames securityContext: - runAsUser: 1 seLinuxOptions: role: role level: level type: type user: user - fsGroup: 6 - seccompProfile: + appArmorProfile: localhostProfile: localhostProfile type: type - windowsOptions: - gmsaCredentialSpec: gmsaCredentialSpec - runAsUserName: runAsUserName - hostProcess: true - gmsaCredentialSpecName: gmsaCredentialSpecName + fsGroup: 7 fsGroupChangePolicy: fsGroupChangePolicy - supplementalGroups: - - 4 - - 4 - runAsGroup: 7 + seLinuxChangePolicy: seLinuxChangePolicy + runAsGroup: 1 runAsNonRoot: true sysctls: - name: name value: value - name: name value: value + runAsUser: 4 + seccompProfile: + localhostProfile: localhostProfile + type: type + windowsOptions: + gmsaCredentialSpec: gmsaCredentialSpec + runAsUserName: runAsUserName + hostProcess: true + gmsaCredentialSpecName: gmsaCredentialSpecName + supplementalGroups: + - 5 + - 5 + supplementalGroupsPolicy: supplementalGroupsPolicy preemptionPolicy: preemptionPolicy nodeSelector: key: nodeSelector @@ -149266,7 +177911,7 @@ components: topologySpreadConstraints: - nodeTaintsPolicy: nodeTaintsPolicy whenUnsatisfiable: whenUnsatisfiable - maxSkew: 9 + maxSkew: 6 nodeAffinityPolicy: nodeAffinityPolicy labelSelector: matchExpressions: @@ -149282,14 +177927,14 @@ components: operator: operator matchLabels: key: matchLabels - minDomains: 6 + minDomains: 8 topologyKey: topologyKey matchLabelKeys: - matchLabelKeys - matchLabelKeys - nodeTaintsPolicy: nodeTaintsPolicy whenUnsatisfiable: whenUnsatisfiable - maxSkew: 9 + maxSkew: 6 nodeAffinityPolicy: nodeAffinityPolicy labelSelector: matchExpressions: @@ -149305,7 +177950,7 @@ components: operator: operator matchLabels: key: matchLabels - minDomains: 6 + minDomains: 8 topologyKey: topologyKey matchLabelKeys: - matchLabelKeys @@ -149386,10 +178031,8 @@ components: name: name namespace: namespace volumeName: volumeName + volumeAttributesClassName: volumeAttributesClassName resources: - claims: - - name: name - - name: name requests: {} limits: {} selector: @@ -149416,20 +178059,20 @@ components: volumeMode: volumeMode secret: secretName: secretName - defaultMode: 6 + defaultMode: 3 optional: true items: - - mode: 6 + - mode: 3 path: path key: key - - mode: 6 + - mode: 3 path: path key: key projected: sources: - downwardAPI: items: - - mode: 6 + - mode: 1 path: path resourceFieldRef: divisor: divisor @@ -149438,7 +178081,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 6 + - mode: 1 path: path resourceFieldRef: divisor: divisor @@ -149451,29 +178094,48 @@ components: name: name optional: true items: - - mode: 6 + - mode: 3 path: path key: key - - mode: 6 + - mode: 3 path: path key: key secret: name: name optional: true items: - - mode: 6 + - mode: 3 path: path key: key - - mode: 6 + - mode: 3 path: path key: key serviceAccountToken: path: path audience: audience - expirationSeconds: 5 + expirationSeconds: 6 + clusterTrustBundle: + path: path + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + name: name + optional: true + signerName: signerName - downwardAPI: items: - - mode: 6 + - mode: 1 path: path resourceFieldRef: divisor: divisor @@ -149482,7 +178144,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 6 + - mode: 1 path: path resourceFieldRef: divisor: divisor @@ -149495,27 +178157,46 @@ components: name: name optional: true items: - - mode: 6 + - mode: 3 path: path key: key - - mode: 6 + - mode: 3 path: path key: key secret: name: name optional: true items: - - mode: 6 + - mode: 3 path: path key: key - - mode: 6 + - mode: 3 path: path key: key serviceAccountToken: path: path audience: audience - expirationSeconds: 5 - defaultMode: 6 + expirationSeconds: 6 + clusterTrustBundle: + path: path + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + name: name + optional: true + signerName: signerName + defaultMode: 5 cephfs: path: path secretRef: @@ -149546,10 +178227,13 @@ components: endpoints: endpoints readOnly: true gcePersistentDisk: - partition: 2 + partition: 6 readOnly: true pdName: pdName fsType: fsType + image: + reference: reference + pullPolicy: pullPolicy photonPersistentDisk: pdID: pdID fsType: fsType @@ -149567,9 +178251,9 @@ components: readOnly: true fsType: fsType downwardAPI: - defaultMode: 3 + defaultMode: 6 items: - - mode: 6 + - mode: 1 path: path resourceFieldRef: divisor: divisor @@ -149578,7 +178262,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 6 + - mode: 1 path: path resourceFieldRef: divisor: divisor @@ -149588,7 +178272,7 @@ components: apiVersion: apiVersion fieldPath: fieldPath awsElasticBlockStore: - partition: 8 + partition: 9 volumeID: volumeID readOnly: true fsType: fsType @@ -149623,14 +178307,14 @@ components: - monitors - monitors configMap: - defaultMode: 9 + defaultMode: 6 name: name optional: true items: - - mode: 6 + - mode: 3 path: path key: key - - mode: 6 + - mode: 3 path: path key: key storageos: @@ -149670,7 +178354,7 @@ components: volumePath: volumePath fsType: fsType fc: - lun: 1 + lun: 2 targetWWNs: - targetWWNs - targetWWNs @@ -149757,10 +178441,8 @@ components: name: name namespace: namespace volumeName: volumeName + volumeAttributesClassName: volumeAttributesClassName resources: - claims: - - name: name - - name: name requests: {} limits: {} selector: @@ -149787,20 +178469,20 @@ components: volumeMode: volumeMode secret: secretName: secretName - defaultMode: 6 + defaultMode: 3 optional: true items: - - mode: 6 + - mode: 3 path: path key: key - - mode: 6 + - mode: 3 path: path key: key projected: sources: - downwardAPI: items: - - mode: 6 + - mode: 1 path: path resourceFieldRef: divisor: divisor @@ -149809,7 +178491,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 6 + - mode: 1 path: path resourceFieldRef: divisor: divisor @@ -149822,29 +178504,48 @@ components: name: name optional: true items: - - mode: 6 + - mode: 3 path: path key: key - - mode: 6 + - mode: 3 path: path key: key secret: name: name optional: true items: - - mode: 6 + - mode: 3 path: path key: key - - mode: 6 + - mode: 3 path: path key: key serviceAccountToken: path: path audience: audience - expirationSeconds: 5 + expirationSeconds: 6 + clusterTrustBundle: + path: path + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + name: name + optional: true + signerName: signerName - downwardAPI: items: - - mode: 6 + - mode: 1 path: path resourceFieldRef: divisor: divisor @@ -149853,7 +178554,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 6 + - mode: 1 path: path resourceFieldRef: divisor: divisor @@ -149866,27 +178567,46 @@ components: name: name optional: true items: - - mode: 6 + - mode: 3 path: path key: key - - mode: 6 + - mode: 3 path: path key: key secret: name: name optional: true items: - - mode: 6 + - mode: 3 path: path key: key - - mode: 6 + - mode: 3 path: path key: key serviceAccountToken: path: path audience: audience - expirationSeconds: 5 - defaultMode: 6 + expirationSeconds: 6 + clusterTrustBundle: + path: path + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + name: name + optional: true + signerName: signerName + defaultMode: 5 cephfs: path: path secretRef: @@ -149917,10 +178637,13 @@ components: endpoints: endpoints readOnly: true gcePersistentDisk: - partition: 2 + partition: 6 readOnly: true pdName: pdName fsType: fsType + image: + reference: reference + pullPolicy: pullPolicy photonPersistentDisk: pdID: pdID fsType: fsType @@ -149938,9 +178661,9 @@ components: readOnly: true fsType: fsType downwardAPI: - defaultMode: 3 + defaultMode: 6 items: - - mode: 6 + - mode: 1 path: path resourceFieldRef: divisor: divisor @@ -149949,7 +178672,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 6 + - mode: 1 path: path resourceFieldRef: divisor: divisor @@ -149959,7 +178682,7 @@ components: apiVersion: apiVersion fieldPath: fieldPath awsElasticBlockStore: - partition: 8 + partition: 9 volumeID: volumeID readOnly: true fsType: fsType @@ -149994,14 +178717,14 @@ components: - monitors - monitors configMap: - defaultMode: 9 + defaultMode: 6 name: name optional: true items: - - mode: 6 + - mode: 3 path: path key: key - - mode: 6 + - mode: 3 path: path key: key storageos: @@ -150041,7 +178764,7 @@ components: volumePath: volumePath fsType: fsType fc: - lun: 1 + lun: 2 targetWWNs: - targetWWNs - targetWWNs @@ -150053,6 +178776,14 @@ components: hostPath: path: path type: type + resources: + claims: + - request: request + name: name + - request: request + name: name + requests: {} + limits: {} ephemeralContainers: - volumeDevices: - devicePath: devicePath @@ -150076,6 +178807,9 @@ components: level: level type: type user: user + appArmorProfile: + localhostProfile: localhostProfile + type: type seccompProfile: localhostProfile: localhostProfile type: type @@ -150090,21 +178824,21 @@ components: runAsNonRoot: true readOnlyRootFilesystem: true startupProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -150120,28 +178854,32 @@ components: - protocol: protocol hostIP: hostIP name: name - containerPort: 4 - hostPort: 7 + containerPort: 7 + hostPort: 1 - protocol: protocol hostIP: hostIP name: name - containerPort: 4 - hostPort: 7 + containerPort: 7 + hostPort: 1 volumeMounts: - mountPath: mountPath mountPropagation: mountPropagation name: name readOnly: true subPath: subPath + recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - mountPath: mountPath mountPropagation: mountPropagation name: name readOnly: true subPath: subPath + recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr lifecycle: postStart: + sleep: + seconds: 5 tcpSocket: port: port host: host @@ -150160,6 +178898,8 @@ components: - name: name value: value preStop: + sleep: + seconds: 5 tcpSocket: port: port host: host @@ -150177,22 +178917,23 @@ components: value: value - name: name value: value + stopSignal: stopSignal readinessProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -150227,21 +178968,21 @@ components: image: image imagePullPolicy: imagePullPolicy livenessProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -150258,8 +178999,10 @@ components: workingDir: workingDir resources: claims: - - name: name - - name: name + - request: request + name: name + - request: request + name: name requests: {} limits: {} env: @@ -150331,6 +179074,9 @@ components: level: level type: type user: user + appArmorProfile: + localhostProfile: localhostProfile + type: type seccompProfile: localhostProfile: localhostProfile type: type @@ -150345,21 +179091,21 @@ components: runAsNonRoot: true readOnlyRootFilesystem: true startupProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -150375,28 +179121,32 @@ components: - protocol: protocol hostIP: hostIP name: name - containerPort: 4 - hostPort: 7 + containerPort: 7 + hostPort: 1 - protocol: protocol hostIP: hostIP name: name - containerPort: 4 - hostPort: 7 + containerPort: 7 + hostPort: 1 volumeMounts: - mountPath: mountPath mountPropagation: mountPropagation name: name readOnly: true subPath: subPath + recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - mountPath: mountPath mountPropagation: mountPropagation name: name readOnly: true subPath: subPath + recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr lifecycle: postStart: + sleep: + seconds: 5 tcpSocket: port: port host: host @@ -150415,6 +179165,8 @@ components: - name: name value: value preStop: + sleep: + seconds: 5 tcpSocket: port: port host: host @@ -150432,22 +179184,23 @@ components: value: value - name: name value: value + stopSignal: stopSignal readinessProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -150482,21 +179235,21 @@ components: image: image imagePullPolicy: imagePullPolicy livenessProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -150513,8 +179266,10 @@ components: workingDir: workingDir resources: claims: - - name: name - - name: name + - request: request + name: name + - request: request + name: name requests: {} limits: {} env: @@ -150565,19 +179320,17 @@ components: tty: true stdinOnce: true serviceAccount: serviceAccount - priority: 1 + priority: 6 restartPolicy: restartPolicy shareProcessNamespace: true hostUsers: true resourceClaims: - - name: name - source: - resourceClaimName: resourceClaimName - resourceClaimTemplateName: resourceClaimTemplateName - - name: name - source: - resourceClaimName: resourceClaimName - resourceClaimTemplateName: resourceClaimTemplateName + - resourceClaimName: resourceClaimName + name: name + resourceClaimTemplateName: resourceClaimTemplateName + - resourceClaimName: resourceClaimName + name: name + resourceClaimTemplateName: resourceClaimTemplateName subdomain: subdomain containers: - volumeDevices: @@ -150588,21 +179341,21 @@ components: image: image imagePullPolicy: imagePullPolicy livenessProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -150620,8 +179373,10 @@ components: workingDir: workingDir resources: claims: - - name: name - - name: name + - request: request + name: name + - request: request + name: name requests: {} limits: {} securityContext: @@ -150639,6 +179394,9 @@ components: level: level type: type user: user + appArmorProfile: + localhostProfile: localhostProfile + type: type seccompProfile: localhostProfile: localhostProfile type: type @@ -150653,21 +179411,21 @@ components: runAsNonRoot: true readOnlyRootFilesystem: true startupProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -150720,13 +179478,13 @@ components: - protocol: protocol hostIP: hostIP name: name - containerPort: 4 - hostPort: 7 + containerPort: 7 + hostPort: 1 - protocol: protocol hostIP: hostIP name: name - containerPort: 4 - hostPort: 7 + containerPort: 7 + hostPort: 1 restartPolicy: restartPolicy command: - command @@ -150737,18 +179495,22 @@ components: name: name readOnly: true subPath: subPath + recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - mountPath: mountPath mountPropagation: mountPropagation name: name readOnly: true subPath: subPath + recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr args: - args - args lifecycle: postStart: + sleep: + seconds: 5 tcpSocket: port: port host: host @@ -150767,6 +179529,8 @@ components: - name: name value: value preStop: + sleep: + seconds: 5 tcpSocket: port: port host: host @@ -150784,24 +179548,25 @@ components: value: value - name: name value: value + stopSignal: stopSignal name: name tty: true readinessProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -150842,21 +179607,21 @@ components: image: image imagePullPolicy: imagePullPolicy livenessProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -150874,8 +179639,10 @@ components: workingDir: workingDir resources: claims: - - name: name - - name: name + - request: request + name: name + - request: request + name: name requests: {} limits: {} securityContext: @@ -150893,6 +179660,9 @@ components: level: level type: type user: user + appArmorProfile: + localhostProfile: localhostProfile + type: type seccompProfile: localhostProfile: localhostProfile type: type @@ -150907,21 +179677,21 @@ components: runAsNonRoot: true readOnlyRootFilesystem: true startupProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -150974,13 +179744,13 @@ components: - protocol: protocol hostIP: hostIP name: name - containerPort: 4 - hostPort: 7 + containerPort: 7 + hostPort: 1 - protocol: protocol hostIP: hostIP name: name - containerPort: 4 - hostPort: 7 + containerPort: 7 + hostPort: 1 restartPolicy: restartPolicy command: - command @@ -150991,18 +179761,22 @@ components: name: name readOnly: true subPath: subPath + recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - mountPath: mountPath mountPropagation: mountPropagation name: name readOnly: true subPath: subPath + recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr args: - args - args lifecycle: postStart: + sleep: + seconds: 5 tcpSocket: port: port host: host @@ -151021,6 +179795,8 @@ components: - name: name value: value preStop: + sleep: + seconds: 5 tcpSocket: port: port host: host @@ -151038,24 +179814,25 @@ components: value: value - name: name value: value + stopSignal: stopSignal name: name tty: true readinessProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -151097,21 +179874,21 @@ components: image: image imagePullPolicy: imagePullPolicy livenessProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -151129,8 +179906,10 @@ components: workingDir: workingDir resources: claims: - - name: name - - name: name + - request: request + name: name + - request: request + name: name requests: {} limits: {} securityContext: @@ -151148,6 +179927,9 @@ components: level: level type: type user: user + appArmorProfile: + localhostProfile: localhostProfile + type: type seccompProfile: localhostProfile: localhostProfile type: type @@ -151162,21 +179944,21 @@ components: runAsNonRoot: true readOnlyRootFilesystem: true startupProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -151229,13 +180011,13 @@ components: - protocol: protocol hostIP: hostIP name: name - containerPort: 4 - hostPort: 7 + containerPort: 7 + hostPort: 1 - protocol: protocol hostIP: hostIP name: name - containerPort: 4 - hostPort: 7 + containerPort: 7 + hostPort: 1 restartPolicy: restartPolicy command: - command @@ -151246,18 +180028,22 @@ components: name: name readOnly: true subPath: subPath + recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - mountPath: mountPath mountPropagation: mountPropagation name: name readOnly: true subPath: subPath + recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr args: - args - args lifecycle: postStart: + sleep: + seconds: 5 tcpSocket: port: port host: host @@ -151276,6 +180062,8 @@ components: - name: name value: value preStop: + sleep: + seconds: 5 tcpSocket: port: port host: host @@ -151293,24 +180081,25 @@ components: value: value - name: name value: value + stopSignal: stopSignal name: name tty: true readinessProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -151351,21 +180140,21 @@ components: image: image imagePullPolicy: imagePullPolicy livenessProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -151383,8 +180172,10 @@ components: workingDir: workingDir resources: claims: - - name: name - - name: name + - request: request + name: name + - request: request + name: name requests: {} limits: {} securityContext: @@ -151402,6 +180193,9 @@ components: level: level type: type user: user + appArmorProfile: + localhostProfile: localhostProfile + type: type seccompProfile: localhostProfile: localhostProfile type: type @@ -151416,21 +180210,21 @@ components: runAsNonRoot: true readOnlyRootFilesystem: true startupProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -151483,13 +180277,13 @@ components: - protocol: protocol hostIP: hostIP name: name - containerPort: 4 - hostPort: 7 + containerPort: 7 + hostPort: 1 - protocol: protocol hostIP: hostIP name: name - containerPort: 4 - hostPort: 7 + containerPort: 7 + hostPort: 1 restartPolicy: restartPolicy command: - command @@ -151500,18 +180294,22 @@ components: name: name readOnly: true subPath: subPath + recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - mountPath: mountPath mountPropagation: mountPropagation name: name readOnly: true subPath: subPath + recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr args: - args - args lifecycle: postStart: + sleep: + seconds: 5 tcpSocket: port: port host: host @@ -151530,6 +180328,8 @@ components: - name: name value: value preStop: + sleep: + seconds: 5 tcpSocket: port: port host: host @@ -151547,24 +180347,25 @@ components: value: value - name: name value: value + stopSignal: stopSignal name: name tty: true readinessProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -151725,6 +180526,12 @@ components: matchLabels: key: matchLabels topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + mismatchLabelKeys: + - mismatchLabelKeys + - mismatchLabelKeys namespaces: - namespaces - namespaces @@ -151757,6 +180564,12 @@ components: matchLabels: key: matchLabels topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + mismatchLabelKeys: + - mismatchLabelKeys + - mismatchLabelKeys namespaces: - namespaces - namespaces @@ -151791,6 +180604,12 @@ components: matchLabels: key: matchLabels topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + mismatchLabelKeys: + - mismatchLabelKeys + - mismatchLabelKeys namespaces: - namespaces - namespaces @@ -151825,6 +180644,12 @@ components: matchLabels: key: matchLabels topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + mismatchLabelKeys: + - mismatchLabelKeys + - mismatchLabelKeys namespaces: - namespaces - namespaces @@ -151860,6 +180685,12 @@ components: matchLabels: key: matchLabels topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + mismatchLabelKeys: + - mismatchLabelKeys + - mismatchLabelKeys namespaces: - namespaces - namespaces @@ -151892,6 +180723,12 @@ components: matchLabels: key: matchLabels topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + mismatchLabelKeys: + - mismatchLabelKeys + - mismatchLabelKeys namespaces: - namespaces - namespaces @@ -151926,6 +180763,12 @@ components: matchLabels: key: matchLabels topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + mismatchLabelKeys: + - mismatchLabelKeys + - mismatchLabelKeys namespaces: - namespaces - namespaces @@ -151960,6 +180803,12 @@ components: matchLabels: key: matchLabels topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + mismatchLabelKeys: + - mismatchLabelKeys + - mismatchLabelKeys namespaces: - namespaces - namespaces @@ -151997,8 +180846,9 @@ components: status: status - type: type status: status - ttlSecondsAfterFinished: 3 + ttlSecondsAfterFinished: 2 podReplacementPolicy: podReplacementPolicy + managedBy: managedBy selector: matchExpressions: - values: @@ -152015,202 +180865,2737 @@ components: key: matchLabels maxFailedIndexes: 2 activeDeadlineSeconds: 6 + successPolicy: + rules: + - succeededCount: 3 + succeededIndexes: succeededIndexes + - succeededCount: 3 + succeededIndexes: succeededIndexes + properties: + metadata: + $ref: '#/components/schemas/v1.ObjectMeta' + spec: + $ref: '#/components/schemas/v1.JobSpec' + type: object + v1.PodFailurePolicy: + description: PodFailurePolicy describes how failed pods influence the backoffLimit. + example: + rules: + - onExitCodes: + containerName: containerName + values: + - 9 + - 9 + operator: operator + action: action + onPodConditions: + - type: type + status: status + - type: type + status: status + - onExitCodes: + containerName: containerName + values: + - 9 + - 9 + operator: operator + action: action + onPodConditions: + - type: type + status: status + - type: type + status: status + properties: + rules: + description: 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. + items: + $ref: '#/components/schemas/v1.PodFailurePolicyRule' + type: array + x-kubernetes-list-type: atomic + required: + - rules + type: object + v1.PodFailurePolicyOnExitCodesRequirement: + 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. + example: + containerName: containerName + values: + - 9 + - 9 + operator: operator + properties: + containerName: + description: 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. + type: string + operator: + description: |- + 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. + type: string + values: + description: 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. + items: + format: int32 + type: integer + type: array + x-kubernetes-list-type: set + required: + - operator + - values + type: object + v1.PodFailurePolicyOnPodConditionsPattern: + description: PodFailurePolicyOnPodConditionsPattern describes a pattern for + matching an actual pod condition type. + example: + type: type + status: status + properties: + status: + description: 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. + type: string + type: + description: Specifies the required Pod condition type. To match a pod condition + it is required that specified type equals the pod condition type. + type: string + required: + - status + - type + type: object + v1.PodFailurePolicyRule: + 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. + example: + onExitCodes: + containerName: containerName + values: + - 9 + - 9 + operator: operator + action: action + onPodConditions: + - type: type + status: status + - type: type + status: status + properties: + action: + description: |- + 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. + - 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. + type: string + onExitCodes: + $ref: '#/components/schemas/v1.PodFailurePolicyOnExitCodesRequirement' + onPodConditions: + description: 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. + items: + $ref: '#/components/schemas/v1.PodFailurePolicyOnPodConditionsPattern' + type: array + x-kubernetes-list-type: atomic + required: + - action + type: object + v1.SuccessPolicy: + description: SuccessPolicy describes when a Job can be declared as succeeded + based on the success of some indexes. + example: + rules: + - succeededCount: 3 + succeededIndexes: succeededIndexes + - succeededCount: 3 + succeededIndexes: succeededIndexes + properties: + rules: + description: 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. + items: + $ref: '#/components/schemas/v1.SuccessPolicyRule' + type: array + x-kubernetes-list-type: atomic + required: + - rules + type: object + v1.SuccessPolicyRule: + description: SuccessPolicyRule describes rule for declaring a Job as succeeded. + Each rule must have at least one of the "succeededIndexes" or "succeededCount" + specified. + example: + succeededCount: 3 + succeededIndexes: succeededIndexes + properties: + succeededCount: + description: 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. + format: int32 + type: integer + succeededIndexes: + description: 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. + type: string + type: object + v1.UncountedTerminatedPods: + description: UncountedTerminatedPods holds UIDs of Pods that have terminated + but haven't been accounted in Job status counters. + example: + failed: + - failed + - failed + succeeded: + - succeeded + - succeeded + properties: + failed: + description: failed holds UIDs of failed Pods. + items: + type: string + type: array + x-kubernetes-list-type: set + succeeded: + description: succeeded holds UIDs of succeeded Pods. + items: + type: string + type: array + x-kubernetes-list-type: set + type: object + v1.CertificateSigningRequest: + 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. + example: + metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: '{}' + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: '{}' + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + creationTimestamp: 2000-01-23T04:56:07.000+00:00 + name: name + namespace: namespace + apiVersion: apiVersion + kind: kind + spec: + request: request + uid: uid + expirationSeconds: 0 + extra: + key: + - extra + - extra + groups: + - groups + - groups + usages: + - usages + - usages + signerName: signerName + username: username + status: + certificate: certificate + conditions: + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + lastUpdateTime: 2000-01-23T04:56:07.000+00:00 + status: status + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + lastUpdateTime: 2000-01-23T04:56:07.000+00:00 + status: status + properties: + apiVersion: + description: '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' + type: string + kind: + description: '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' + type: string + metadata: + $ref: '#/components/schemas/v1.ObjectMeta' + spec: + $ref: '#/components/schemas/v1.CertificateSigningRequestSpec' + status: + $ref: '#/components/schemas/v1.CertificateSigningRequestStatus' + required: + - spec + type: object + x-kubernetes-group-version-kind: + - group: certificates.k8s.io + kind: CertificateSigningRequest + version: v1 + x-implements: + - io.kubernetes.client.common.KubernetesObject + v1.CertificateSigningRequestCondition: + description: CertificateSigningRequestCondition describes a condition of a CertificateSigningRequest + object + example: + reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + lastUpdateTime: 2000-01-23T04:56:07.000+00:00 + status: status + properties: + lastTransitionTime: + description: 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. + format: date-time + type: string + lastUpdateTime: + description: lastUpdateTime is the time of the last update to this condition + format: date-time + type: string + message: + description: message contains a human readable message with details about + the request state + type: string + reason: + description: reason indicates a brief reason for the request state + type: string + status: + description: status of the condition, one of True, False, Unknown. Approved, + Denied, and Failed conditions may not be "False" or "Unknown". + type: string + type: + description: |- + 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. + type: string + required: + - status + - type + type: object + v1.CertificateSigningRequestList: + description: CertificateSigningRequestList is a collection of CertificateSigningRequest + objects + example: + metadata: + remainingItemCount: 1 + continue: continue + resourceVersion: resourceVersion + selfLink: selfLink + apiVersion: apiVersion + kind: kind + items: + - metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: '{}' + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: '{}' + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + creationTimestamp: 2000-01-23T04:56:07.000+00:00 + name: name + namespace: namespace + apiVersion: apiVersion + kind: kind + spec: + request: request + uid: uid + expirationSeconds: 0 + extra: + key: + - extra + - extra + groups: + - groups + - groups + usages: + - usages + - usages + signerName: signerName + username: username + status: + certificate: certificate + conditions: + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + lastUpdateTime: 2000-01-23T04:56:07.000+00:00 + status: status + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + lastUpdateTime: 2000-01-23T04:56:07.000+00:00 + status: status + - metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: '{}' + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: '{}' + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + creationTimestamp: 2000-01-23T04:56:07.000+00:00 + name: name + namespace: namespace + apiVersion: apiVersion + kind: kind + spec: + request: request + uid: uid + expirationSeconds: 0 + extra: + key: + - extra + - extra + groups: + - groups + - groups + usages: + - usages + - usages + signerName: signerName + username: username + status: + certificate: certificate + conditions: + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + lastUpdateTime: 2000-01-23T04:56:07.000+00:00 + status: status + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + lastUpdateTime: 2000-01-23T04:56:07.000+00:00 + status: status + properties: + apiVersion: + description: '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' + type: string + items: + description: items is a collection of CertificateSigningRequest objects + items: + $ref: '#/components/schemas/v1.CertificateSigningRequest' + type: array + kind: + description: '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' + type: string + metadata: + $ref: '#/components/schemas/v1.ListMeta' + required: + - items + type: object + x-kubernetes-group-version-kind: + - group: certificates.k8s.io + kind: CertificateSigningRequestList + version: v1 + x-implements: + - io.kubernetes.client.common.KubernetesListObject + v1.CertificateSigningRequestSpec: + description: CertificateSigningRequestSpec contains the certificate request. + example: + request: request + uid: uid + expirationSeconds: 0 + extra: + key: + - extra + - extra + groups: + - groups + - groups + usages: + - usages + - usages + signerName: signerName + username: username + properties: + expirationSeconds: + description: |- + 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. + format: int32 + type: integer + extra: + additionalProperties: + items: + type: string + type: array + description: extra contains extra attributes of the user that created the + CertificateSigningRequest. Populated by the API server on creation and + immutable. + type: object + groups: + description: groups contains group membership of the user that created the + CertificateSigningRequest. Populated by the API server on creation and + immutable. + items: + type: string + type: array + x-kubernetes-list-type: atomic + request: + description: 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. + format: byte + pattern: ^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$ + type: string + x-kubernetes-list-type: atomic + signerName: + description: |- + 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. + type: string + uid: + description: uid contains the uid of the user that created the CertificateSigningRequest. + Populated by the API server on creation and immutable. + type: string + usages: + description: |- + 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" + items: + type: string + type: array + x-kubernetes-list-type: atomic + username: + description: username contains the name of the user that created the CertificateSigningRequest. + Populated by the API server on creation and immutable. + type: string + required: + - request + - signerName + type: object + v1.CertificateSigningRequestStatus: + description: CertificateSigningRequestStatus contains conditions used to indicate + approved/denied/failed status of the request, and the issued certificate. + example: + certificate: certificate + conditions: + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + lastUpdateTime: 2000-01-23T04:56:07.000+00:00 + status: status + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + lastUpdateTime: 2000-01-23T04:56:07.000+00:00 + status: status + properties: + certificate: + description: |- + 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----- + ) + format: byte + pattern: ^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$ + type: string + x-kubernetes-list-type: atomic + conditions: + description: conditions applied to the request. Known conditions are "Approved", + "Denied", and "Failed". + items: + $ref: '#/components/schemas/v1.CertificateSigningRequestCondition' + type: array + x-kubernetes-list-type: map + x-kubernetes-list-map-keys: + - type + type: object + v1alpha1.ClusterTrustBundle: + 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. + example: + metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: '{}' + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: '{}' + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + creationTimestamp: 2000-01-23T04:56:07.000+00:00 + name: name + namespace: namespace + apiVersion: apiVersion + kind: kind + spec: + trustBundle: trustBundle + signerName: signerName + properties: + apiVersion: + description: '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' + type: string + kind: + description: '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' + type: string + metadata: + $ref: '#/components/schemas/v1.ObjectMeta' + spec: + $ref: '#/components/schemas/v1alpha1.ClusterTrustBundleSpec' + required: + - spec + type: object + x-kubernetes-group-version-kind: + - group: certificates.k8s.io + kind: ClusterTrustBundle + version: v1alpha1 + x-implements: + - io.kubernetes.client.common.KubernetesObject + v1alpha1.ClusterTrustBundleList: + description: ClusterTrustBundleList is a collection of ClusterTrustBundle objects + example: + metadata: + remainingItemCount: 1 + continue: continue + resourceVersion: resourceVersion + selfLink: selfLink + apiVersion: apiVersion + kind: kind + items: + - metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: '{}' + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: '{}' + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + creationTimestamp: 2000-01-23T04:56:07.000+00:00 + name: name + namespace: namespace + apiVersion: apiVersion + kind: kind + spec: + trustBundle: trustBundle + signerName: signerName + - metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: '{}' + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: '{}' + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + creationTimestamp: 2000-01-23T04:56:07.000+00:00 + name: name + namespace: namespace + apiVersion: apiVersion + kind: kind + spec: + trustBundle: trustBundle + signerName: signerName + properties: + apiVersion: + description: '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' + type: string + items: + description: items is a collection of ClusterTrustBundle objects + items: + $ref: '#/components/schemas/v1alpha1.ClusterTrustBundle' + type: array + kind: + description: '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' + type: string + metadata: + $ref: '#/components/schemas/v1.ListMeta' + required: + - items + type: object + x-kubernetes-group-version-kind: + - group: certificates.k8s.io + kind: ClusterTrustBundleList + version: v1alpha1 + x-implements: + - io.kubernetes.client.common.KubernetesListObject + v1alpha1.ClusterTrustBundleSpec: + description: ClusterTrustBundleSpec contains the signer and trust anchors. + example: + trustBundle: trustBundle + signerName: signerName + properties: + signerName: + description: |- + 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. + type: string + trustBundle: + description: |- + 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. + type: string + required: + - trustBundle + type: object + v1beta1.ClusterTrustBundle: + 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. + example: + metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: '{}' + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: '{}' + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + creationTimestamp: 2000-01-23T04:56:07.000+00:00 + name: name + namespace: namespace + apiVersion: apiVersion + kind: kind + spec: + trustBundle: trustBundle + signerName: signerName + properties: + apiVersion: + description: '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' + type: string + kind: + description: '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' + type: string + metadata: + $ref: '#/components/schemas/v1.ObjectMeta' + spec: + $ref: '#/components/schemas/v1beta1.ClusterTrustBundleSpec' + required: + - spec + type: object + x-kubernetes-group-version-kind: + - group: certificates.k8s.io + kind: ClusterTrustBundle + version: v1beta1 + x-implements: + - io.kubernetes.client.common.KubernetesObject + v1beta1.ClusterTrustBundleList: + description: ClusterTrustBundleList is a collection of ClusterTrustBundle objects + example: + metadata: + remainingItemCount: 1 + continue: continue + resourceVersion: resourceVersion + selfLink: selfLink + apiVersion: apiVersion + kind: kind + items: + - metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: '{}' + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: '{}' + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + creationTimestamp: 2000-01-23T04:56:07.000+00:00 + name: name + namespace: namespace + apiVersion: apiVersion + kind: kind + spec: + trustBundle: trustBundle + signerName: signerName + - metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: '{}' + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: '{}' + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + creationTimestamp: 2000-01-23T04:56:07.000+00:00 + name: name + namespace: namespace + apiVersion: apiVersion + kind: kind + spec: + trustBundle: trustBundle + signerName: signerName + properties: + apiVersion: + description: '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' + type: string + items: + description: items is a collection of ClusterTrustBundle objects + items: + $ref: '#/components/schemas/v1beta1.ClusterTrustBundle' + type: array + kind: + description: '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' + type: string + metadata: + $ref: '#/components/schemas/v1.ListMeta' + required: + - items + type: object + x-kubernetes-group-version-kind: + - group: certificates.k8s.io + kind: ClusterTrustBundleList + version: v1beta1 + x-implements: + - io.kubernetes.client.common.KubernetesListObject + v1beta1.ClusterTrustBundleSpec: + description: ClusterTrustBundleSpec contains the signer and trust anchors. + example: + trustBundle: trustBundle + signerName: signerName + properties: + signerName: + description: |- + 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. + type: string + trustBundle: + description: |- + 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. + type: string + required: + - trustBundle + type: object + v1.Lease: + description: Lease defines a lease concept. + example: + metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: '{}' + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: '{}' + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + creationTimestamp: 2000-01-23T04:56:07.000+00:00 + name: name + namespace: namespace + apiVersion: apiVersion + kind: kind + spec: + renewTime: 2000-01-23T04:56:07.000+00:00 + leaseDurationSeconds: 0 + leaseTransitions: 6 + preferredHolder: preferredHolder + acquireTime: 2000-01-23T04:56:07.000+00:00 + strategy: strategy + holderIdentity: holderIdentity + properties: + apiVersion: + description: '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' + type: string + kind: + description: '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' + type: string + metadata: + $ref: '#/components/schemas/v1.ObjectMeta' + spec: + $ref: '#/components/schemas/v1.LeaseSpec' + type: object + x-kubernetes-group-version-kind: + - group: coordination.k8s.io + kind: Lease + version: v1 + x-implements: + - io.kubernetes.client.common.KubernetesObject + v1.LeaseList: + description: LeaseList is a list of Lease objects. + example: + metadata: + remainingItemCount: 1 + continue: continue + resourceVersion: resourceVersion + selfLink: selfLink + apiVersion: apiVersion + kind: kind + items: + - metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: '{}' + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: '{}' + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + creationTimestamp: 2000-01-23T04:56:07.000+00:00 + name: name + namespace: namespace + apiVersion: apiVersion + kind: kind + spec: + renewTime: 2000-01-23T04:56:07.000+00:00 + leaseDurationSeconds: 0 + leaseTransitions: 6 + preferredHolder: preferredHolder + acquireTime: 2000-01-23T04:56:07.000+00:00 + strategy: strategy + holderIdentity: holderIdentity + - metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: '{}' + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: '{}' + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + creationTimestamp: 2000-01-23T04:56:07.000+00:00 + name: name + namespace: namespace + apiVersion: apiVersion + kind: kind + spec: + renewTime: 2000-01-23T04:56:07.000+00:00 + leaseDurationSeconds: 0 + leaseTransitions: 6 + preferredHolder: preferredHolder + acquireTime: 2000-01-23T04:56:07.000+00:00 + strategy: strategy + holderIdentity: holderIdentity properties: + apiVersion: + description: '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' + type: string + items: + description: items is a list of schema objects. + items: + $ref: '#/components/schemas/v1.Lease' + type: array + kind: + description: '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' + type: string + metadata: + $ref: '#/components/schemas/v1.ListMeta' + required: + - items + type: object + x-kubernetes-group-version-kind: + - group: coordination.k8s.io + kind: LeaseList + version: v1 + x-implements: + - io.kubernetes.client.common.KubernetesListObject + v1.LeaseSpec: + description: LeaseSpec is a specification of a Lease. + example: + renewTime: 2000-01-23T04:56:07.000+00:00 + leaseDurationSeconds: 0 + leaseTransitions: 6 + preferredHolder: preferredHolder + acquireTime: 2000-01-23T04:56:07.000+00:00 + strategy: strategy + holderIdentity: holderIdentity + properties: + acquireTime: + description: acquireTime is a time when the current lease was acquired. + format: date-time + type: string + holderIdentity: + description: 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. + type: string + leaseDurationSeconds: + description: 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. + format: int32 + type: integer + leaseTransitions: + description: leaseTransitions is the number of transitions of a lease between + holders. + format: int32 + type: integer + preferredHolder: + description: 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. + type: string + renewTime: + description: renewTime is a time when the current holder of a lease has + last updated the lease. + format: date-time + type: string + strategy: + description: 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. + type: string + type: object + v1alpha2.LeaseCandidate: + 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. + example: + metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: '{}' + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: '{}' + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + creationTimestamp: 2000-01-23T04:56:07.000+00:00 + name: name + namespace: namespace + apiVersion: apiVersion + kind: kind + spec: + renewTime: 2000-01-23T04:56:07.000+00:00 + binaryVersion: binaryVersion + emulationVersion: emulationVersion + pingTime: 2000-01-23T04:56:07.000+00:00 + leaseName: leaseName + strategy: strategy + properties: + apiVersion: + description: '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' + type: string + kind: + description: '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' + type: string metadata: $ref: '#/components/schemas/v1.ObjectMeta' spec: - $ref: '#/components/schemas/v1.JobSpec' + $ref: '#/components/schemas/v1alpha2.LeaseCandidateSpec' type: object - v1.PodFailurePolicy: - description: PodFailurePolicy describes how failed pods influence the backoffLimit. + x-kubernetes-group-version-kind: + - group: coordination.k8s.io + kind: LeaseCandidate + version: v1alpha2 + x-implements: + - io.kubernetes.client.common.KubernetesObject + v1alpha2.LeaseCandidateList: + description: LeaseCandidateList is a list of Lease objects. example: - rules: - - onExitCodes: - containerName: containerName - values: - - 9 - - 9 - operator: operator - action: action - onPodConditions: - - type: type - status: status - - type: type - status: status - - onExitCodes: - containerName: containerName - values: - - 9 - - 9 - operator: operator - action: action - onPodConditions: - - type: type - status: status - - type: type - status: status + metadata: + remainingItemCount: 1 + continue: continue + resourceVersion: resourceVersion + selfLink: selfLink + apiVersion: apiVersion + kind: kind + items: + - metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: '{}' + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: '{}' + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + creationTimestamp: 2000-01-23T04:56:07.000+00:00 + name: name + namespace: namespace + apiVersion: apiVersion + kind: kind + spec: + renewTime: 2000-01-23T04:56:07.000+00:00 + binaryVersion: binaryVersion + emulationVersion: emulationVersion + pingTime: 2000-01-23T04:56:07.000+00:00 + leaseName: leaseName + strategy: strategy + - metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: '{}' + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: '{}' + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + creationTimestamp: 2000-01-23T04:56:07.000+00:00 + name: name + namespace: namespace + apiVersion: apiVersion + kind: kind + spec: + renewTime: 2000-01-23T04:56:07.000+00:00 + binaryVersion: binaryVersion + emulationVersion: emulationVersion + pingTime: 2000-01-23T04:56:07.000+00:00 + leaseName: leaseName + strategy: strategy properties: - rules: - description: 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. + apiVersion: + description: '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' + type: string + items: + description: items is a list of schema objects. items: - $ref: '#/components/schemas/v1.PodFailurePolicyRule' + $ref: '#/components/schemas/v1alpha2.LeaseCandidate' type: array - x-kubernetes-list-type: atomic + kind: + description: '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' + type: string + metadata: + $ref: '#/components/schemas/v1.ListMeta' required: - - rules + - items type: object - v1.PodFailurePolicyOnExitCodesRequirement: - 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. + x-kubernetes-group-version-kind: + - group: coordination.k8s.io + kind: LeaseCandidateList + version: v1alpha2 + x-implements: + - io.kubernetes.client.common.KubernetesListObject + v1alpha2.LeaseCandidateSpec: + description: LeaseCandidateSpec is a specification of a Lease. example: - containerName: containerName - values: - - 9 - - 9 - operator: operator + renewTime: 2000-01-23T04:56:07.000+00:00 + binaryVersion: binaryVersion + emulationVersion: emulationVersion + pingTime: 2000-01-23T04:56:07.000+00:00 + leaseName: leaseName + strategy: strategy properties: - containerName: - description: 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. + binaryVersion: + description: BinaryVersion is the binary version. It must be in a semver + format without leading `v`. This field is required. + type: string + emulationVersion: + description: 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" + type: string + leaseName: + description: LeaseName is the name of the lease for which this candidate + is contending. This field is immutable. + type: string + pingTime: + description: 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. + format: date-time type: string - operator: - description: |- - 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. + renewTime: + description: 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. + format: date-time type: string - values: - description: 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. + strategy: + description: Strategy is the strategy that coordinated leader election will + use for picking the leader. If multiple candidates for the same Lease + return different strategies, the strategy provided by the candidate with + the latest BinaryVersion will be used. If there is still conflict, this + is a user error and coordinated leader election will not operate the Lease + until resolved. + type: string + required: + - binaryVersion + - leaseName + - strategy + type: object + v1beta1.LeaseCandidate: + 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. + example: + metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: '{}' + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: '{}' + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + creationTimestamp: 2000-01-23T04:56:07.000+00:00 + name: name + namespace: namespace + apiVersion: apiVersion + kind: kind + spec: + renewTime: 2000-01-23T04:56:07.000+00:00 + binaryVersion: binaryVersion + emulationVersion: emulationVersion + pingTime: 2000-01-23T04:56:07.000+00:00 + leaseName: leaseName + strategy: strategy + properties: + apiVersion: + description: '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' + type: string + kind: + description: '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' + type: string + metadata: + $ref: '#/components/schemas/v1.ObjectMeta' + spec: + $ref: '#/components/schemas/v1beta1.LeaseCandidateSpec' + type: object + x-kubernetes-group-version-kind: + - group: coordination.k8s.io + kind: LeaseCandidate + version: v1beta1 + x-implements: + - io.kubernetes.client.common.KubernetesObject + v1beta1.LeaseCandidateList: + description: LeaseCandidateList is a list of Lease objects. + example: + metadata: + remainingItemCount: 1 + continue: continue + resourceVersion: resourceVersion + selfLink: selfLink + apiVersion: apiVersion + kind: kind + items: + - metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: '{}' + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: '{}' + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + creationTimestamp: 2000-01-23T04:56:07.000+00:00 + name: name + namespace: namespace + apiVersion: apiVersion + kind: kind + spec: + renewTime: 2000-01-23T04:56:07.000+00:00 + binaryVersion: binaryVersion + emulationVersion: emulationVersion + pingTime: 2000-01-23T04:56:07.000+00:00 + leaseName: leaseName + strategy: strategy + - metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: '{}' + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: '{}' + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + creationTimestamp: 2000-01-23T04:56:07.000+00:00 + name: name + namespace: namespace + apiVersion: apiVersion + kind: kind + spec: + renewTime: 2000-01-23T04:56:07.000+00:00 + binaryVersion: binaryVersion + emulationVersion: emulationVersion + pingTime: 2000-01-23T04:56:07.000+00:00 + leaseName: leaseName + strategy: strategy + properties: + apiVersion: + description: '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' + type: string + items: + description: items is a list of schema objects. items: - format: int32 - type: integer + $ref: '#/components/schemas/v1beta1.LeaseCandidate' type: array - x-kubernetes-list-type: set + kind: + description: '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' + type: string + metadata: + $ref: '#/components/schemas/v1.ListMeta' + required: + - items + type: object + x-kubernetes-group-version-kind: + - group: coordination.k8s.io + kind: LeaseCandidateList + version: v1beta1 + x-implements: + - io.kubernetes.client.common.KubernetesListObject + v1beta1.LeaseCandidateSpec: + description: LeaseCandidateSpec is a specification of a Lease. + example: + renewTime: 2000-01-23T04:56:07.000+00:00 + binaryVersion: binaryVersion + emulationVersion: emulationVersion + pingTime: 2000-01-23T04:56:07.000+00:00 + leaseName: leaseName + strategy: strategy + properties: + binaryVersion: + description: BinaryVersion is the binary version. It must be in a semver + format without leading `v`. This field is required. + type: string + emulationVersion: + description: 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" + type: string + leaseName: + description: LeaseName is the name of the lease for which this candidate + is contending. The limits on this field are the same as on Lease.name. + Multiple lease candidates may reference the same Lease.name. This field + is immutable. + type: string + pingTime: + description: 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. + format: date-time + type: string + renewTime: + description: 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. + format: date-time + type: string + strategy: + description: Strategy is the strategy that coordinated leader election will + use for picking the leader. If multiple candidates for the same Lease + return different strategies, the strategy provided by the candidate with + the latest BinaryVersion will be used. If there is still conflict, this + is a user error and coordinated leader election will not operate the Lease + until resolved. + type: string + required: + - binaryVersion + - leaseName + - strategy + type: object + v1.AWSElasticBlockStoreVolumeSource: + 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. + example: + partition: 9 + volumeID: volumeID + readOnly: true + fsType: fsType + properties: + fsType: + description: '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' + type: string + partition: + description: '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).' + format: int32 + type: integer + readOnly: + description: 'readOnly value true will force the readOnly setting in VolumeMounts. + More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore' + type: boolean + volumeID: + description: 'volumeID is unique ID of the persistent disk resource in AWS + (Amazon EBS volume). More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore' + type: string + required: + - volumeID + type: object + v1.Affinity: + description: Affinity is a group of affinity scheduling rules. + example: + nodeAffinity: + requiredDuringSchedulingIgnoredDuringExecution: + nodeSelectorTerms: + - matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchFields: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + - matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchFields: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + preferredDuringSchedulingIgnoredDuringExecution: + - preference: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchFields: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + weight: 6 + - preference: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchFields: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + weight: 6 + podAffinity: + requiredDuringSchedulingIgnoredDuringExecution: + - labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + mismatchLabelKeys: + - mismatchLabelKeys + - mismatchLabelKeys + namespaces: + - namespaces + - namespaces + - labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + mismatchLabelKeys: + - mismatchLabelKeys + - mismatchLabelKeys + namespaces: + - namespaces + - namespaces + preferredDuringSchedulingIgnoredDuringExecution: + - podAffinityTerm: + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + mismatchLabelKeys: + - mismatchLabelKeys + - mismatchLabelKeys + namespaces: + - namespaces + - namespaces + weight: 1 + - podAffinityTerm: + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + mismatchLabelKeys: + - mismatchLabelKeys + - mismatchLabelKeys + namespaces: + - namespaces + - namespaces + weight: 1 + podAntiAffinity: + requiredDuringSchedulingIgnoredDuringExecution: + - labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + mismatchLabelKeys: + - mismatchLabelKeys + - mismatchLabelKeys + namespaces: + - namespaces + - namespaces + - labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + mismatchLabelKeys: + - mismatchLabelKeys + - mismatchLabelKeys + namespaces: + - namespaces + - namespaces + preferredDuringSchedulingIgnoredDuringExecution: + - podAffinityTerm: + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + mismatchLabelKeys: + - mismatchLabelKeys + - mismatchLabelKeys + namespaces: + - namespaces + - namespaces + weight: 1 + - podAffinityTerm: + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + mismatchLabelKeys: + - mismatchLabelKeys + - mismatchLabelKeys + namespaces: + - namespaces + - namespaces + weight: 1 + properties: + nodeAffinity: + $ref: '#/components/schemas/v1.NodeAffinity' + podAffinity: + $ref: '#/components/schemas/v1.PodAffinity' + podAntiAffinity: + $ref: '#/components/schemas/v1.PodAntiAffinity' + type: object + v1.AppArmorProfile: + description: AppArmorProfile defines a pod or container's AppArmor settings. + example: + localhostProfile: localhostProfile + type: type + properties: + localhostProfile: + description: 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". + type: string + type: + description: |- + 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. + type: string + required: + - type + type: object + x-kubernetes-unions: + - discriminator: type + fields-to-discriminateBy: + localhostProfile: LocalhostProfile + v1.AttachedVolume: + description: AttachedVolume describes a volume attached to a node + example: + devicePath: devicePath + name: name + properties: + devicePath: + description: DevicePath represents the device path where the volume should + be available + type: string + name: + description: Name of the attached volume + type: string required: - - operator - - values + - devicePath + - name type: object - v1.PodFailurePolicyOnPodConditionsPattern: - description: PodFailurePolicyOnPodConditionsPattern describes a pattern for - matching an actual pod condition type. + v1.AzureDiskVolumeSource: + description: AzureDisk represents an Azure Data Disk mount on the host and bind + mount to the pod. example: - type: type - status: status + diskName: diskName + kind: kind + readOnly: true + cachingMode: cachingMode + diskURI: diskURI + fsType: fsType properties: - status: - description: 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. + cachingMode: + description: 'cachingMode is the Host Caching mode: None, Read Only, Read + Write.' type: string - type: - description: Specifies the required Pod condition type. To match a pod condition - it is required that specified type equals the pod condition type. + diskName: + description: diskName is the Name of the data disk in the blob storage + type: string + diskURI: + description: diskURI is the URI of data disk in the blob storage + type: string + fsType: + description: 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. + type: string + kind: + description: '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' type: string + readOnly: + description: readOnly Defaults to false (read/write). ReadOnly here will + force the ReadOnly setting in VolumeMounts. + type: boolean required: - - status - - type + - diskName + - diskURI type: object - v1.PodFailurePolicyRule: - 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. + v1.AzureFilePersistentVolumeSource: + description: AzureFile represents an Azure File Service mount on the host and + bind mount to the pod. example: - onExitCodes: - containerName: containerName - values: - - 9 - - 9 - operator: operator - action: action - onPodConditions: - - type: type - status: status - - type: type - status: status + secretName: secretName + secretNamespace: secretNamespace + readOnly: true + shareName: shareName properties: - action: - description: |- - 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 alpha-level. It can be used when the - `JobBackoffLimitPerIndex` feature gate is enabled (disabled 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. + readOnly: + description: readOnly defaults to false (read/write). ReadOnly here will + force the ReadOnly setting in VolumeMounts. + type: boolean + secretName: + description: secretName is the name of secret that contains Azure Storage + Account Name and Key + type: string + secretNamespace: + description: secretNamespace is the namespace of the secret that contains + Azure Storage Account Name and Key default is the same as the Pod + type: string + shareName: + description: shareName is the azure Share Name type: string - onExitCodes: - $ref: '#/components/schemas/v1.PodFailurePolicyOnExitCodesRequirement' - onPodConditions: - description: 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. - items: - $ref: '#/components/schemas/v1.PodFailurePolicyOnPodConditionsPattern' - type: array - x-kubernetes-list-type: atomic required: - - action + - secretName + - shareName type: object - v1.UncountedTerminatedPods: - description: UncountedTerminatedPods holds UIDs of Pods that have terminated - but haven't been accounted in Job status counters. + v1.AzureFileVolumeSource: + description: AzureFile represents an Azure File Service mount on the host and + bind mount to the pod. example: - failed: - - failed - - failed - succeeded: - - succeeded - - succeeded + secretName: secretName + readOnly: true + shareName: shareName properties: - failed: - description: failed holds UIDs of failed Pods. - items: - type: string - type: array - x-kubernetes-list-type: set - succeeded: - description: succeeded holds UIDs of succeeded Pods. - items: - type: string - type: array - x-kubernetes-list-type: set + readOnly: + description: readOnly defaults to false (read/write). ReadOnly here will + force the ReadOnly setting in VolumeMounts. + type: boolean + secretName: + description: secretName is the name of secret that contains Azure Storage + Account Name and Key + type: string + shareName: + description: shareName is the azure share Name + type: string + required: + - secretName + - shareName type: object - v1.CertificateSigningRequest: - 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. + v1.Binding: + description: Binding ties one object to another; for example, a pod is bound + to a node by a scheduler. example: metadata: generation: 6 @@ -152260,37 +183645,14 @@ components: namespace: namespace apiVersion: apiVersion kind: kind - spec: - request: request + target: uid: uid - expirationSeconds: 0 - extra: - key: - - extra - - extra - groups: - - groups - - groups - usages: - - usages - - usages - signerName: signerName - username: username - status: - certificate: certificate - conditions: - - reason: reason - lastTransitionTime: 2000-01-23T04:56:07.000+00:00 - message: message - type: type - lastUpdateTime: 2000-01-23T04:56:07.000+00:00 - status: status - - reason: reason - lastTransitionTime: 2000-01-23T04:56:07.000+00:00 - message: message - type: type - lastUpdateTime: 2000-01-23T04:56:07.000+00:00 - status: status + apiVersion: apiVersion + kind: kind + resourceVersion: resourceVersion + fieldPath: fieldPath + name: name + namespace: namespace properties: apiVersion: description: 'APIVersion defines the versioned schema of this representation @@ -152304,73 +183666,463 @@ components: type: string metadata: $ref: '#/components/schemas/v1.ObjectMeta' - spec: - $ref: '#/components/schemas/v1.CertificateSigningRequestSpec' - status: - $ref: '#/components/schemas/v1.CertificateSigningRequestStatus' + target: + $ref: '#/components/schemas/v1.ObjectReference' required: - - spec + - target type: object x-kubernetes-group-version-kind: - - group: certificates.k8s.io - kind: CertificateSigningRequest + - group: "" + kind: Binding version: v1 x-implements: - io.kubernetes.client.common.KubernetesObject - v1.CertificateSigningRequestCondition: - description: CertificateSigningRequestCondition describes a condition of a CertificateSigningRequest - object + v1.CSIPersistentVolumeSource: + description: Represents storage that is managed by an external CSI volume driver example: - reason: reason - lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + controllerPublishSecretRef: + name: name + namespace: namespace + driver: driver + nodePublishSecretRef: + name: name + namespace: namespace + nodeStageSecretRef: + name: name + namespace: namespace + volumeHandle: volumeHandle + nodeExpandSecretRef: + name: name + namespace: namespace + readOnly: true + controllerExpandSecretRef: + name: name + namespace: namespace + fsType: fsType + volumeAttributes: + key: volumeAttributes + properties: + controllerExpandSecretRef: + $ref: '#/components/schemas/v1.SecretReference' + controllerPublishSecretRef: + $ref: '#/components/schemas/v1.SecretReference' + driver: + description: driver is the name of the driver to use for this volume. Required. + type: string + fsType: + description: fsType to mount. Must be a filesystem type supported by the + host operating system. Ex. "ext4", "xfs", "ntfs". + type: string + nodeExpandSecretRef: + $ref: '#/components/schemas/v1.SecretReference' + nodePublishSecretRef: + $ref: '#/components/schemas/v1.SecretReference' + nodeStageSecretRef: + $ref: '#/components/schemas/v1.SecretReference' + readOnly: + description: readOnly value to pass to ControllerPublishVolumeRequest. Defaults + to false (read/write). + type: boolean + volumeAttributes: + additionalProperties: + type: string + description: volumeAttributes of the volume to publish. + type: object + volumeHandle: + description: volumeHandle is the unique volume name returned by the CSI + volume plugin’s CreateVolume to refer to the volume on all subsequent + calls. Required. + type: string + required: + - driver + - volumeHandle + type: object + v1.CSIVolumeSource: + description: Represents a source location of a volume to mount, managed by an + external CSI driver + example: + driver: driver + nodePublishSecretRef: + name: name + readOnly: true + fsType: fsType + volumeAttributes: + key: volumeAttributes + properties: + driver: + description: 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. + type: string + fsType: + description: 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. + type: string + nodePublishSecretRef: + $ref: '#/components/schemas/v1.LocalObjectReference' + readOnly: + description: readOnly specifies a read-only configuration for the volume. + Defaults to false (read/write). + type: boolean + volumeAttributes: + additionalProperties: + type: string + description: volumeAttributes stores driver-specific properties that are + passed to the CSI driver. Consult your driver's documentation for supported + values. + type: object + required: + - driver + type: object + v1.Capabilities: + description: Adds and removes POSIX capabilities from running containers. + example: + add: + - add + - add + drop: + - drop + - drop + properties: + add: + description: Added capabilities + items: + type: string + type: array + x-kubernetes-list-type: atomic + drop: + description: Removed capabilities + items: + type: string + type: array + x-kubernetes-list-type: atomic + type: object + v1.CephFSPersistentVolumeSource: + description: Represents a Ceph Filesystem mount that lasts the lifetime of a + pod Cephfs volumes do not support ownership management or SELinux relabeling. + example: + path: path + secretRef: + name: name + namespace: namespace + secretFile: secretFile + readOnly: true + user: user + monitors: + - monitors + - monitors + properties: + monitors: + description: 'monitors is Required: Monitors is a collection of Ceph monitors + More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it' + items: + type: string + type: array + x-kubernetes-list-type: atomic + path: + description: 'path is Optional: Used as the mounted root, rather than the + full Ceph tree, default is /' + type: string + readOnly: + description: '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' + type: boolean + secretFile: + description: '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' + type: string + secretRef: + $ref: '#/components/schemas/v1.SecretReference' + user: + description: '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' + type: string + required: + - monitors + type: object + v1.CephFSVolumeSource: + description: Represents a Ceph Filesystem mount that lasts the lifetime of a + pod Cephfs volumes do not support ownership management or SELinux relabeling. + example: + path: path + secretRef: + name: name + secretFile: secretFile + readOnly: true + user: user + monitors: + - monitors + - monitors + properties: + monitors: + description: 'monitors is Required: Monitors is a collection of Ceph monitors + More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it' + items: + type: string + type: array + x-kubernetes-list-type: atomic + path: + description: 'path is Optional: Used as the mounted root, rather than the + full Ceph tree, default is /' + type: string + readOnly: + description: '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' + type: boolean + secretFile: + description: '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' + type: string + secretRef: + $ref: '#/components/schemas/v1.LocalObjectReference' + user: + description: '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' + type: string + required: + - monitors + type: object + v1.CinderPersistentVolumeSource: + 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. + example: + secretRef: + name: name + namespace: namespace + volumeID: volumeID + readOnly: true + fsType: fsType + properties: + fsType: + description: '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' + type: string + readOnly: + description: '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' + type: boolean + secretRef: + $ref: '#/components/schemas/v1.SecretReference' + volumeID: + description: 'volumeID used to identify the volume in cinder. More info: + https://examples.k8s.io/mysql-cinder-pd/README.md' + type: string + required: + - volumeID + type: object + v1.CinderVolumeSource: + 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. + example: + secretRef: + name: name + volumeID: volumeID + readOnly: true + fsType: fsType + properties: + fsType: + description: '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' + type: string + readOnly: + description: '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' + type: boolean + secretRef: + $ref: '#/components/schemas/v1.LocalObjectReference' + volumeID: + description: 'volumeID used to identify the volume in cinder. More info: + https://examples.k8s.io/mysql-cinder-pd/README.md' + type: string + required: + - volumeID + type: object + v1.ClientIPConfig: + description: ClientIPConfig represents the configurations of Client IP based + session affinity. + example: + timeoutSeconds: 5 + properties: + timeoutSeconds: + description: 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). + format: int32 + type: integer + type: object + v1.ClusterTrustBundleProjection: + description: ClusterTrustBundleProjection describes how to select a set of ClusterTrustBundle + objects and project their contents into the pod filesystem. + example: + path: path + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + name: name + optional: true + signerName: signerName + properties: + labelSelector: + $ref: '#/components/schemas/v1.LabelSelector' + name: + description: Select a single ClusterTrustBundle by object name. Mutually-exclusive + with signerName and labelSelector. + type: string + optional: + description: 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. + type: boolean + path: + description: Relative path from the volume root to write the bundle. + type: string + signerName: + description: Select all ClusterTrustBundles that match this signer name. + Mutually-exclusive with name. The contents of all selected ClusterTrustBundles + will be unified and deduplicated. + type: string + required: + - path + type: object + v1.ComponentCondition: + description: Information about the condition of a component. + example: + error: error message: message type: type - lastUpdateTime: 2000-01-23T04:56:07.000+00:00 status: status properties: - lastTransitionTime: - description: 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. - format: date-time - type: string - lastUpdateTime: - description: lastUpdateTime is the time of the last update to this condition - format: date-time + error: + description: Condition error code for a component. For example, a health + check error code. type: string message: - description: message contains a human readable message with details about - the request state - type: string - reason: - description: reason indicates a brief reason for the request state + description: Message about the condition for a component. For example, information + about a health check. type: string status: - description: status of the condition, one of True, False, Unknown. Approved, - Denied, and Failed conditions may not be "False" or "Unknown". + description: 'Status of the condition for a component. Valid values for + "Healthy": "True", "False", or "Unknown".' type: string type: - description: |- - 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. + description: 'Type of condition for a component. Valid value: "Healthy"' type: string required: - status - type type: object - v1.CertificateSigningRequestList: - description: CertificateSigningRequestList is a collection of CertificateSigningRequest - objects + v1.ComponentStatus: + description: 'ComponentStatus (and ComponentStatusList) holds the cluster validation + info. Deprecated: This API is deprecated in v1.19+' + example: + metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: '{}' + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: '{}' + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + creationTimestamp: 2000-01-23T04:56:07.000+00:00 + name: name + namespace: namespace + apiVersion: apiVersion + kind: kind + conditions: + - error: error + message: message + type: type + status: status + - error: error + message: message + type: type + status: status + properties: + apiVersion: + description: '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' + type: string + conditions: + description: List of component conditions observed + items: + $ref: '#/components/schemas/v1.ComponentCondition' + type: array + x-kubernetes-patch-strategy: merge + x-kubernetes-list-type: map + x-kubernetes-list-map-keys: + - type + x-kubernetes-patch-merge-key: type + kind: + description: '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' + type: string + metadata: + $ref: '#/components/schemas/v1.ObjectMeta' + type: object + x-kubernetes-group-version-kind: + - group: "" + kind: ComponentStatus + version: v1 + x-implements: + - io.kubernetes.client.common.KubernetesObject + v1.ComponentStatusList: + description: 'Status of all the conditions for the component as a list of ComponentStatus + objects. Deprecated: This API is deprecated in v1.19+' example: metadata: remainingItemCount: 1 @@ -152428,37 +184180,15 @@ components: namespace: namespace apiVersion: apiVersion kind: kind - spec: - request: request - uid: uid - expirationSeconds: 0 - extra: - key: - - extra - - extra - groups: - - groups - - groups - usages: - - usages - - usages - signerName: signerName - username: username - status: - certificate: certificate - conditions: - - reason: reason - lastTransitionTime: 2000-01-23T04:56:07.000+00:00 - message: message - type: type - lastUpdateTime: 2000-01-23T04:56:07.000+00:00 - status: status - - reason: reason - lastTransitionTime: 2000-01-23T04:56:07.000+00:00 - message: message - type: type - lastUpdateTime: 2000-01-23T04:56:07.000+00:00 - status: status + conditions: + - error: error + message: message + type: type + status: status + - error: error + message: message + type: type + status: status - metadata: generation: 6 finalizers: @@ -152507,37 +184237,15 @@ components: namespace: namespace apiVersion: apiVersion kind: kind - spec: - request: request - uid: uid - expirationSeconds: 0 - extra: - key: - - extra - - extra - groups: - - groups - - groups - usages: - - usages - - usages - signerName: signerName - username: username - status: - certificate: certificate - conditions: - - reason: reason - lastTransitionTime: 2000-01-23T04:56:07.000+00:00 - message: message - type: type - lastUpdateTime: 2000-01-23T04:56:07.000+00:00 - status: status - - reason: reason - lastTransitionTime: 2000-01-23T04:56:07.000+00:00 - message: message - type: type - lastUpdateTime: 2000-01-23T04:56:07.000+00:00 - status: status + conditions: + - error: error + message: message + type: type + status: status + - error: error + message: message + type: type + status: status properties: apiVersion: description: 'APIVersion defines the versioned schema of this representation @@ -152545,9 +184253,9 @@ components: internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources' type: string items: - description: items is a collection of CertificateSigningRequest objects + description: List of ComponentStatus objects. items: - $ref: '#/components/schemas/v1.CertificateSigningRequest' + $ref: '#/components/schemas/v1.ComponentStatus' type: array kind: description: 'Kind is a string value representing the REST resource this @@ -152560,192 +184268,15 @@ components: - items type: object x-kubernetes-group-version-kind: - - group: certificates.k8s.io - kind: CertificateSigningRequestList + - group: "" + kind: ComponentStatusList version: v1 x-implements: - io.kubernetes.client.common.KubernetesListObject - v1.CertificateSigningRequestSpec: - description: CertificateSigningRequestSpec contains the certificate request. - example: - request: request - uid: uid - expirationSeconds: 0 - extra: - key: - - extra - - extra - groups: - - groups - - groups - usages: - - usages - - usages - signerName: signerName - username: username - properties: - expirationSeconds: - description: |- - 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. - format: int32 - type: integer - extra: - additionalProperties: - items: - type: string - type: array - description: extra contains extra attributes of the user that created the - CertificateSigningRequest. Populated by the API server on creation and - immutable. - type: object - groups: - description: groups contains group membership of the user that created the - CertificateSigningRequest. Populated by the API server on creation and - immutable. - items: - type: string - type: array - x-kubernetes-list-type: atomic - request: - description: 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. - format: byte - pattern: ^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$ - type: string - x-kubernetes-list-type: atomic - signerName: - description: |- - 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. - type: string - uid: - description: uid contains the uid of the user that created the CertificateSigningRequest. - Populated by the API server on creation and immutable. - type: string - usages: - description: |- - 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" - items: - type: string - type: array - x-kubernetes-list-type: atomic - username: - description: username contains the name of the user that created the CertificateSigningRequest. - Populated by the API server on creation and immutable. - type: string - required: - - request - - signerName - type: object - v1.CertificateSigningRequestStatus: - description: CertificateSigningRequestStatus contains conditions used to indicate - approved/denied/failed status of the request, and the issued certificate. - example: - certificate: certificate - conditions: - - reason: reason - lastTransitionTime: 2000-01-23T04:56:07.000+00:00 - message: message - type: type - lastUpdateTime: 2000-01-23T04:56:07.000+00:00 - status: status - - reason: reason - lastTransitionTime: 2000-01-23T04:56:07.000+00:00 - message: message - type: type - lastUpdateTime: 2000-01-23T04:56:07.000+00:00 - status: status - properties: - certificate: - description: |- - 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----- - ) - format: byte - pattern: ^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$ - type: string - x-kubernetes-list-type: atomic - conditions: - description: conditions applied to the request. Known conditions are "Approved", - "Denied", and "Failed". - items: - $ref: '#/components/schemas/v1.CertificateSigningRequestCondition' - type: array - x-kubernetes-list-type: map - x-kubernetes-list-map-keys: - - type - type: object - v1alpha1.ClusterTrustBundle: - 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. + v1.ConfigMap: + description: ConfigMap holds configuration data for pods to consume. example: + immutable: true metadata: generation: 6 finalizers: @@ -152793,16 +184324,43 @@ components: name: name namespace: namespace apiVersion: apiVersion + data: + key: data + binaryData: + key: binaryData kind: kind - spec: - trustBundle: trustBundle - signerName: signerName properties: apiVersion: description: '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' type: string + binaryData: + additionalProperties: + format: byte + pattern: ^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$ + type: string + description: 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. + type: object + data: + additionalProperties: + type: string + description: 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. + type: object + immutable: + description: 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. + type: boolean kind: description: 'Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client @@ -152810,19 +184368,57 @@ components: type: string metadata: $ref: '#/components/schemas/v1.ObjectMeta' - spec: - $ref: '#/components/schemas/v1alpha1.ClusterTrustBundleSpec' - required: - - spec type: object x-kubernetes-group-version-kind: - - group: certificates.k8s.io - kind: ClusterTrustBundle - version: v1alpha1 + - group: "" + kind: ConfigMap + version: v1 x-implements: - io.kubernetes.client.common.KubernetesObject - v1alpha1.ClusterTrustBundleList: - description: ClusterTrustBundleList is a collection of ClusterTrustBundle objects + v1.ConfigMapEnvSource: + 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. + example: + name: name + optional: true + properties: + name: + description: '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' + type: string + optional: + description: Specify whether the ConfigMap must be defined + type: boolean + type: object + v1.ConfigMapKeySelector: + description: Selects a key from a ConfigMap. + example: + name: name + optional: true + key: key + properties: + key: + description: The key to select. + type: string + name: + description: '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' + type: string + optional: + description: Specify whether the ConfigMap or its key must be defined + type: boolean + required: + - key + type: object + x-kubernetes-map-type: atomic + v1.ConfigMapList: + description: ConfigMapList is a resource containing a list of ConfigMap objects. example: metadata: remainingItemCount: 1 @@ -152832,7 +184428,8 @@ components: apiVersion: apiVersion kind: kind items: - - metadata: + - immutable: true + metadata: generation: 6 finalizers: - finalizers @@ -152879,11 +184476,13 @@ components: name: name namespace: namespace apiVersion: apiVersion + data: + key: data + binaryData: + key: binaryData kind: kind - spec: - trustBundle: trustBundle - signerName: signerName - - metadata: + - immutable: true + metadata: generation: 6 finalizers: - finalizers @@ -152930,68 +184529,1302 @@ components: name: name namespace: namespace apiVersion: apiVersion + data: + key: data + binaryData: + key: binaryData + kind: kind + properties: + apiVersion: + description: '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' + type: string + items: + description: Items is the list of ConfigMaps. + items: + $ref: '#/components/schemas/v1.ConfigMap' + type: array + kind: + description: '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' + type: string + metadata: + $ref: '#/components/schemas/v1.ListMeta' + required: + - items + type: object + x-kubernetes-group-version-kind: + - group: "" + kind: ConfigMapList + version: v1 + x-implements: + - io.kubernetes.client.common.KubernetesListObject + v1.ConfigMapNodeConfigSource: + 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' + example: + uid: uid + kubeletConfigKey: kubeletConfigKey + resourceVersion: resourceVersion + name: name + namespace: namespace + properties: + kubeletConfigKey: + description: KubeletConfigKey declares which key of the referenced ConfigMap + corresponds to the KubeletConfiguration structure This field is required + in all cases. + type: string + name: + description: Name is the metadata.name of the referenced ConfigMap. This + field is required in all cases. + type: string + namespace: + description: Namespace is the metadata.namespace of the referenced ConfigMap. + This field is required in all cases. + type: string + resourceVersion: + description: ResourceVersion is the metadata.ResourceVersion of the referenced + ConfigMap. This field is forbidden in Node.Spec, and required in Node.Status. + type: string + uid: + description: UID is the metadata.UID of the referenced ConfigMap. This field + is forbidden in Node.Spec, and required in Node.Status. + type: string + required: + - kubeletConfigKey + - name + - namespace + type: object + v1.ConfigMapProjection: + 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. + example: + name: name + optional: true + items: + - mode: 3 + path: path + key: key + - mode: 3 + path: path + key: key + properties: + items: + description: 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 '..'. + items: + $ref: '#/components/schemas/v1.KeyToPath' + type: array + x-kubernetes-list-type: atomic + name: + description: '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' + type: string + optional: + description: optional specify whether the ConfigMap or its keys must be + defined + type: boolean + type: object + v1.ConfigMapVolumeSource: + 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. + example: + defaultMode: 6 + name: name + optional: true + items: + - mode: 3 + path: path + key: key + - mode: 3 + path: path + key: key + properties: + defaultMode: + description: '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.' + format: int32 + type: integer + items: + description: 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 '..'. + items: + $ref: '#/components/schemas/v1.KeyToPath' + type: array + x-kubernetes-list-type: atomic + name: + description: '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' + type: string + optional: + description: optional specify whether the ConfigMap or its keys must be + defined + type: boolean + type: object + v1.Container: + description: A single application container that you want to run within a pod. + example: + volumeDevices: + - devicePath: devicePath + name: name + - devicePath: devicePath + name: name + image: image + imagePullPolicy: imagePullPolicy + livenessProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: port + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + stdin: true + terminationMessagePolicy: terminationMessagePolicy + terminationMessagePath: terminationMessagePath + workingDir: workingDir + resources: + claims: + - request: request + name: name + - request: request + name: name + requests: {} + limits: {} + securityContext: + privileged: true + runAsUser: 1 + capabilities: + add: + - add + - add + drop: + - drop + - drop + seLinuxOptions: + role: role + level: level + type: type + user: user + appArmorProfile: + localhostProfile: localhostProfile + type: type + seccompProfile: + localhostProfile: localhostProfile + type: type + windowsOptions: + gmsaCredentialSpec: gmsaCredentialSpec + runAsUserName: runAsUserName + hostProcess: true + gmsaCredentialSpecName: gmsaCredentialSpecName + procMount: procMount + allowPrivilegeEscalation: true + runAsGroup: 1 + runAsNonRoot: true + readOnlyRootFilesystem: true + startupProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: port + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + env: + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + ports: + - protocol: protocol + hostIP: hostIP + name: name + containerPort: 7 + hostPort: 1 + - protocol: protocol + hostIP: hostIP + name: name + containerPort: 7 + hostPort: 1 + restartPolicy: restartPolicy + command: + - command + - command + volumeMounts: + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + recursiveReadOnly: recursiveReadOnly + subPathExpr: subPathExpr + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + recursiveReadOnly: recursiveReadOnly + subPathExpr: subPathExpr + args: + - args + - args + lifecycle: + postStart: + sleep: + seconds: 5 + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + preStop: + sleep: + seconds: 5 + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + stopSignal: stopSignal + name: name + tty: true + readinessProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: port + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + resizePolicy: + - resourceName: resourceName + restartPolicy: restartPolicy + - resourceName: resourceName + restartPolicy: restartPolicy + stdinOnce: true + envFrom: + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + properties: + args: + description: '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' + items: + type: string + type: array + x-kubernetes-list-type: atomic + command: + description: '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' + items: + type: string + type: array + x-kubernetes-list-type: atomic + env: + description: List of environment variables to set in the container. Cannot + be updated. + items: + $ref: '#/components/schemas/v1.EnvVar' + type: array + x-kubernetes-patch-strategy: merge + x-kubernetes-list-type: map + x-kubernetes-list-map-keys: + - name + x-kubernetes-patch-merge-key: name + envFrom: + description: 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. + items: + $ref: '#/components/schemas/v1.EnvFromSource' + type: array + x-kubernetes-list-type: atomic + image: + description: '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.' + type: string + imagePullPolicy: + description: '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' + type: string + lifecycle: + $ref: '#/components/schemas/v1.Lifecycle' + livenessProbe: + $ref: '#/components/schemas/v1.Probe' + name: + description: Name of the container specified as a DNS_LABEL. Each container + in a pod must have a unique name (DNS_LABEL). Cannot be updated. + type: string + ports: + description: 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. + items: + $ref: '#/components/schemas/v1.ContainerPort' + type: array + x-kubernetes-patch-strategy: merge + x-kubernetes-list-type: map + x-kubernetes-list-map-keys: + - containerPort + - protocol + x-kubernetes-patch-merge-key: containerPort + readinessProbe: + $ref: '#/components/schemas/v1.Probe' + resizePolicy: + description: Resources resize policy for the container. + items: + $ref: '#/components/schemas/v1.ContainerResizePolicy' + type: array + x-kubernetes-list-type: atomic + resources: + $ref: '#/components/schemas/v1.ResourceRequirements' + restartPolicy: + description: '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.' + type: string + securityContext: + $ref: '#/components/schemas/v1.SecurityContext' + startupProbe: + $ref: '#/components/schemas/v1.Probe' + stdin: + description: 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. + type: boolean + stdinOnce: + description: 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 + type: boolean + terminationMessagePath: + description: '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.' + type: string + terminationMessagePolicy: + description: 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. + type: string + tty: + description: Whether this container should allocate a TTY for itself, also + requires 'stdin' to be true. Default is false. + type: boolean + volumeDevices: + description: volumeDevices is the list of block devices to be used by the + container. + items: + $ref: '#/components/schemas/v1.VolumeDevice' + type: array + x-kubernetes-patch-strategy: merge + x-kubernetes-list-type: map + x-kubernetes-list-map-keys: + - devicePath + x-kubernetes-patch-merge-key: devicePath + volumeMounts: + description: Pod volumes to mount into the container's filesystem. Cannot + be updated. + items: + $ref: '#/components/schemas/v1.VolumeMount' + type: array + x-kubernetes-patch-strategy: merge + x-kubernetes-list-type: map + x-kubernetes-list-map-keys: + - mountPath + x-kubernetes-patch-merge-key: mountPath + workingDir: + description: 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. + type: string + required: + - name + type: object + v1.ContainerImage: + description: Describe a container image + example: + names: + - names + - names + sizeBytes: 6 + properties: + names: + description: 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"] + items: + type: string + type: array + x-kubernetes-list-type: atomic + sizeBytes: + description: The size of the image in bytes. + format: int64 + type: integer + type: object + v1.ContainerPort: + description: ContainerPort represents a network port in a single container. + example: + protocol: protocol + hostIP: hostIP + name: name + containerPort: 7 + hostPort: 1 + properties: + containerPort: + description: Number of port to expose on the pod's IP address. This must + be a valid port number, 0 < x < 65536. + format: int32 + type: integer + hostIP: + description: What host IP to bind the external port to. + type: string + hostPort: + description: 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. + format: int32 + type: integer + name: + description: 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. + type: string + protocol: + description: Protocol for port. Must be UDP, TCP, or SCTP. Defaults to "TCP". + type: string + required: + - containerPort + type: object + v1.ContainerResizePolicy: + description: ContainerResizePolicy represents resource resize policy for the + container. + example: + resourceName: resourceName + restartPolicy: restartPolicy + properties: + resourceName: + description: 'Name of the resource to which this resource resize policy + applies. Supported values: cpu, memory.' + type: string + restartPolicy: + description: Restart policy to apply when specified resource is resized. + If not specified, it defaults to NotRequired. + type: string + required: + - resourceName + - restartPolicy + type: object + v1.ContainerState: + 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. + example: + running: + startedAt: 2000-01-23T04:56:07.000+00:00 + waiting: + reason: reason + message: message + terminated: + reason: reason + exitCode: 7 + startedAt: 2000-01-23T04:56:07.000+00:00 + containerID: containerID + message: message + signal: 0 + finishedAt: 2000-01-23T04:56:07.000+00:00 + properties: + running: + $ref: '#/components/schemas/v1.ContainerStateRunning' + terminated: + $ref: '#/components/schemas/v1.ContainerStateTerminated' + waiting: + $ref: '#/components/schemas/v1.ContainerStateWaiting' + type: object + v1.ContainerStateRunning: + description: ContainerStateRunning is a running state of a container. + example: + startedAt: 2000-01-23T04:56:07.000+00:00 + properties: + startedAt: + description: Time at which the container was last (re-)started + format: date-time + type: string + type: object + v1.ContainerStateTerminated: + description: ContainerStateTerminated is a terminated state of a container. + example: + reason: reason + exitCode: 7 + startedAt: 2000-01-23T04:56:07.000+00:00 + containerID: containerID + message: message + signal: 0 + finishedAt: 2000-01-23T04:56:07.000+00:00 + properties: + containerID: + description: Container's ID in the format '://' + type: string + exitCode: + description: Exit status from the last termination of the container + format: int32 + type: integer + finishedAt: + description: Time at which the container last terminated + format: date-time + type: string + message: + description: Message regarding the last termination of the container + type: string + reason: + description: (brief) reason from the last termination of the container + type: string + signal: + description: Signal from the last termination of the container + format: int32 + type: integer + startedAt: + description: Time at which previous execution of the container started + format: date-time + type: string + required: + - exitCode + type: object + v1.ContainerStateWaiting: + description: ContainerStateWaiting is a waiting state of a container. + example: + reason: reason + message: message + properties: + message: + description: Message regarding why the container is not yet running. + type: string + reason: + description: (brief) reason the container is not yet running. + type: string + type: object + v1.ContainerStatus: + description: ContainerStatus contains details for the current status of this + container. + example: + allocatedResourcesStatus: + - name: name + resources: + - resourceID: resourceID + health: health + - resourceID: resourceID + health: health + - name: name + resources: + - resourceID: resourceID + health: health + - resourceID: resourceID + health: health + image: image + imageID: imageID + restartCount: 7 + resources: + claims: + - request: request + name: name + - request: request + name: name + requests: {} + limits: {} + started: true + lastState: + running: + startedAt: 2000-01-23T04:56:07.000+00:00 + waiting: + reason: reason + message: message + terminated: + reason: reason + exitCode: 7 + startedAt: 2000-01-23T04:56:07.000+00:00 + containerID: containerID + message: message + signal: 0 + finishedAt: 2000-01-23T04:56:07.000+00:00 + volumeMounts: + - mountPath: mountPath + name: name + readOnly: true + recursiveReadOnly: recursiveReadOnly + - mountPath: mountPath + name: name + readOnly: true + recursiveReadOnly: recursiveReadOnly + allocatedResources: {} + ready: true + name: name + state: + running: + startedAt: 2000-01-23T04:56:07.000+00:00 + waiting: + reason: reason + message: message + terminated: + reason: reason + exitCode: 7 + startedAt: 2000-01-23T04:56:07.000+00:00 + containerID: containerID + message: message + signal: 0 + finishedAt: 2000-01-23T04:56:07.000+00:00 + containerID: containerID + stopSignal: stopSignal + user: + linux: + uid: 4 + gid: 6 + supplementalGroups: + - 0 + - 0 + properties: + allocatedResources: + additionalProperties: + $ref: '#/components/schemas/resource.Quantity' + description: 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. + type: object + allocatedResourcesStatus: + description: AllocatedResourcesStatus represents the status of various resources + allocated for this Pod. + items: + $ref: '#/components/schemas/v1.ResourceStatus' + type: array + x-kubernetes-patch-strategy: merge + x-kubernetes-list-type: map + x-kubernetes-list-map-keys: + - name + x-kubernetes-patch-merge-key: name + containerID: + description: 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"). + type: string + image: + description: '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.' + type: string + imageID: + description: 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. + type: string + lastState: + $ref: '#/components/schemas/v1.ContainerState' + name: + description: 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. + type: string + ready: + description: |- + 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. + type: boolean + resources: + $ref: '#/components/schemas/v1.ResourceRequirements' + restartCount: + description: 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. + format: int32 + type: integer + started: + description: 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. + type: boolean + state: + $ref: '#/components/schemas/v1.ContainerState' + stopSignal: + description: StopSignal reports the effective stop signal for this container + type: string + user: + $ref: '#/components/schemas/v1.ContainerUser' + volumeMounts: + description: Status of volume mounts. + items: + $ref: '#/components/schemas/v1.VolumeMountStatus' + type: array + x-kubernetes-patch-strategy: merge + x-kubernetes-list-type: map + x-kubernetes-list-map-keys: + - mountPath + x-kubernetes-patch-merge-key: mountPath + required: + - image + - imageID + - name + - ready + - restartCount + type: object + v1.ContainerUser: + description: ContainerUser represents user identity information + example: + linux: + uid: 4 + gid: 6 + supplementalGroups: + - 0 + - 0 + properties: + linux: + $ref: '#/components/schemas/v1.LinuxContainerUser' + type: object + v1.DaemonEndpoint: + description: DaemonEndpoint contains information about a single Daemon endpoint. + example: + Port: 0 + properties: + Port: + description: Port number of the given endpoint. + format: int32 + type: integer + required: + - Port + type: object + v1.DownwardAPIProjection: + 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. + example: + items: + - mode: 1 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - mode: 1 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + properties: + items: + description: Items is a list of DownwardAPIVolume file + items: + $ref: '#/components/schemas/v1.DownwardAPIVolumeFile' + type: array + x-kubernetes-list-type: atomic + type: object + v1.DownwardAPIVolumeFile: + description: DownwardAPIVolumeFile represents information to create the file + containing the pod field + example: + mode: 1 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + properties: + fieldRef: + $ref: '#/components/schemas/v1.ObjectFieldSelector' + mode: + description: '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.' + format: int32 + type: integer + path: + description: '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 ''..''' + type: string + resourceFieldRef: + $ref: '#/components/schemas/v1.ResourceFieldSelector' + required: + - path + type: object + v1.DownwardAPIVolumeSource: + description: DownwardAPIVolumeSource represents a volume containing downward + API info. Downward API volumes support ownership management and SELinux relabeling. + example: + defaultMode: 6 + items: + - mode: 1 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - mode: 1 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + properties: + defaultMode: + description: '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.' + format: int32 + type: integer + items: + description: Items is a list of downward API volume file + items: + $ref: '#/components/schemas/v1.DownwardAPIVolumeFile' + type: array + x-kubernetes-list-type: atomic + type: object + v1.EmptyDirVolumeSource: + description: Represents an empty directory for a pod. Empty directory volumes + support ownership management and SELinux relabeling. + example: + sizeLimit: sizeLimit + medium: medium + properties: + medium: + description: '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' + type: string + sizeLimit: + description: "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.\n\nThe serialization format is:\n\n\ + ``` ::= \n\n\t(Note that \ + \ may be empty, from the \"\" case in .)\n\n \ + \ ::= 0 | 1 | ... | 9 ::= | \ + \ ::= | . | . | .\ + \ ::= \"+\" | \"-\" ::= |\ + \ ::= | \ + \ | ::= Ki | Mi | Gi | Ti | Pi | Ei\n\n\t\ + (International System of units; See: http://physics.nist.gov/cuu/Units/binary.html)\n\ + \n ::= m | \"\" | k | M | G | T | P | E\n\n\t(Note that\ + \ 1024 = 1Ki but 1000 = 1k; I didn't choose the capitalization.)\n\n\ + \ ::= \"e\" | \"E\" ```\n\nNo 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.\n\nWhen 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.\n\nBefore 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:\n\n- No precision is lost - No fractional digits\ + \ will be emitted - The exponent (or suffix) is as large as possible.\n\ + \nThe sign will be omitted unless the number is negative.\n\nExamples:\n\ + \n- 1.5 will be serialized as \"1500m\" - 1.5Gi will be serialized as\ + \ \"1536Mi\"\n\nNote that the quantity will NEVER be internally represented\ + \ by a floating point number. That is the whole point of this exercise.\n\ + \nNon-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.)\n\nThis 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." + format: quantity + type: string + type: object + v1.EndpointAddress: + description: 'EndpointAddress is a tuple that describes single IP address. Deprecated: + This API is deprecated in v1.33+.' + example: + nodeName: nodeName + targetRef: + uid: uid + apiVersion: apiVersion kind: kind - spec: - trustBundle: trustBundle - signerName: signerName + resourceVersion: resourceVersion + fieldPath: fieldPath + name: name + namespace: namespace + hostname: hostname + ip: ip properties: - apiVersion: - description: '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' + hostname: + description: The Hostname of this endpoint type: string - items: - description: items is a collection of ClusterTrustBundle objects - items: - $ref: '#/components/schemas/v1alpha1.ClusterTrustBundle' - type: array - kind: - description: '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' + ip: + description: 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). type: string - metadata: - $ref: '#/components/schemas/v1.ListMeta' + nodeName: + description: 'Optional: Node hosting this endpoint. This can be used to + determine endpoints local to a node.' + type: string + targetRef: + $ref: '#/components/schemas/v1.ObjectReference' required: - - items + - ip type: object - x-kubernetes-group-version-kind: - - group: certificates.k8s.io - kind: ClusterTrustBundleList - version: v1alpha1 - x-implements: - - io.kubernetes.client.common.KubernetesListObject - v1alpha1.ClusterTrustBundleSpec: - description: ClusterTrustBundleSpec contains the signer and trust anchors. + x-kubernetes-map-type: atomic + core.v1.EndpointPort: + description: 'EndpointPort is a tuple that describes a single port. Deprecated: + This API is deprecated in v1.33+.' example: - trustBundle: trustBundle - signerName: signerName + protocol: protocol + port: 0 + appProtocol: appProtocol + name: name properties: - signerName: + appProtocol: description: |- - 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. + 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: - 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`. + * Un-prefixed protocol names - reserved for IANA standard service names (as per RFC-6335 and https://www.iana.org/assignments/service-names). - If signerName is empty, then the ClusterTrustBundle object's name must not have such a prefix. + * 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 - List/watch requests for ClusterTrustBundles can filter on this field using a `spec.signerName=NAME` field selector. + * Other protocols should use implementation-defined prefixed names such as mycompany.com/my-custom-protocol. type: string - trustBundle: - description: |- - 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. + name: + description: 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. + type: string + port: + description: The port number of the endpoint. + format: int32 + type: integer + protocol: + description: The IP protocol for this port. Must be UDP, TCP, or SCTP. Default + is TCP. type: string required: - - trustBundle + - port type: object - v1.Lease: - description: Lease defines a lease concept. + x-kubernetes-map-type: atomic + v1.EndpointSubset: + 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:\n\n\t{\n\t Addresses: [{\"ip\": \"10.10.1.1\"}, {\"\ + ip\": \"10.10.2.2\"}],\n\t Ports: [{\"name\": \"a\", \"port\": 8675},\ + \ {\"name\": \"b\", \"port\": 309}]\n\t}\n\nThe resulting set of endpoints\ + \ can be viewed as:\n\n\ta: [ 10.10.1.1:8675, 10.10.2.2:8675 ],\n\tb: [ 10.10.1.1:309,\ + \ 10.10.2.2:309 ]\n\nDeprecated: This API is deprecated in v1.33+." + example: + notReadyAddresses: + - nodeName: nodeName + targetRef: + uid: uid + apiVersion: apiVersion + kind: kind + resourceVersion: resourceVersion + fieldPath: fieldPath + name: name + namespace: namespace + hostname: hostname + ip: ip + - nodeName: nodeName + targetRef: + uid: uid + apiVersion: apiVersion + kind: kind + resourceVersion: resourceVersion + fieldPath: fieldPath + name: name + namespace: namespace + hostname: hostname + ip: ip + addresses: + - nodeName: nodeName + targetRef: + uid: uid + apiVersion: apiVersion + kind: kind + resourceVersion: resourceVersion + fieldPath: fieldPath + name: name + namespace: namespace + hostname: hostname + ip: ip + - nodeName: nodeName + targetRef: + uid: uid + apiVersion: apiVersion + kind: kind + resourceVersion: resourceVersion + fieldPath: fieldPath + name: name + namespace: namespace + hostname: hostname + ip: ip + ports: + - protocol: protocol + port: 0 + appProtocol: appProtocol + name: name + - protocol: protocol + port: 0 + appProtocol: appProtocol + name: name + properties: + addresses: + description: 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. + items: + $ref: '#/components/schemas/v1.EndpointAddress' + type: array + x-kubernetes-list-type: atomic + notReadyAddresses: + description: 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. + items: + $ref: '#/components/schemas/v1.EndpointAddress' + type: array + x-kubernetes-list-type: atomic + ports: + description: Port numbers available on the related IP addresses. + items: + $ref: '#/components/schemas/core.v1.EndpointPort' + type: array + x-kubernetes-list-type: atomic + type: object + v1.Endpoints: + description: "Endpoints is a collection of endpoints that implement the actual\ + \ service. Example:\n\n\t Name: \"mysvc\",\n\t Subsets: [\n\t {\n\t \ + \ Addresses: [{\"ip\": \"10.10.1.1\"}, {\"ip\": \"10.10.2.2\"}],\n\t Ports:\ + \ [{\"name\": \"a\", \"port\": 8675}, {\"name\": \"b\", \"port\": 309}]\n\t\ + \ },\n\t {\n\t Addresses: [{\"ip\": \"10.10.3.3\"}],\n\t Ports:\ + \ [{\"name\": \"a\", \"port\": 93}, {\"name\": \"b\", \"port\": 76}]\n\t \ + \ },\n\t]\n\nEndpoints is a legacy API and does not contain information about\ + \ all Service features. Use discoveryv1.EndpointSlice for complete information\ + \ about Service endpoints.\n\nDeprecated: This API is deprecated in v1.33+.\ + \ Use discoveryv1.EndpointSlice." example: metadata: generation: 6 @@ -153041,12 +185874,117 @@ components: namespace: namespace apiVersion: apiVersion kind: kind - spec: - renewTime: 2000-01-23T04:56:07.000+00:00 - leaseDurationSeconds: 0 - leaseTransitions: 6 - acquireTime: 2000-01-23T04:56:07.000+00:00 - holderIdentity: holderIdentity + subsets: + - notReadyAddresses: + - nodeName: nodeName + targetRef: + uid: uid + apiVersion: apiVersion + kind: kind + resourceVersion: resourceVersion + fieldPath: fieldPath + name: name + namespace: namespace + hostname: hostname + ip: ip + - nodeName: nodeName + targetRef: + uid: uid + apiVersion: apiVersion + kind: kind + resourceVersion: resourceVersion + fieldPath: fieldPath + name: name + namespace: namespace + hostname: hostname + ip: ip + addresses: + - nodeName: nodeName + targetRef: + uid: uid + apiVersion: apiVersion + kind: kind + resourceVersion: resourceVersion + fieldPath: fieldPath + name: name + namespace: namespace + hostname: hostname + ip: ip + - nodeName: nodeName + targetRef: + uid: uid + apiVersion: apiVersion + kind: kind + resourceVersion: resourceVersion + fieldPath: fieldPath + name: name + namespace: namespace + hostname: hostname + ip: ip + ports: + - protocol: protocol + port: 0 + appProtocol: appProtocol + name: name + - protocol: protocol + port: 0 + appProtocol: appProtocol + name: name + - notReadyAddresses: + - nodeName: nodeName + targetRef: + uid: uid + apiVersion: apiVersion + kind: kind + resourceVersion: resourceVersion + fieldPath: fieldPath + name: name + namespace: namespace + hostname: hostname + ip: ip + - nodeName: nodeName + targetRef: + uid: uid + apiVersion: apiVersion + kind: kind + resourceVersion: resourceVersion + fieldPath: fieldPath + name: name + namespace: namespace + hostname: hostname + ip: ip + addresses: + - nodeName: nodeName + targetRef: + uid: uid + apiVersion: apiVersion + kind: kind + resourceVersion: resourceVersion + fieldPath: fieldPath + name: name + namespace: namespace + hostname: hostname + ip: ip + - nodeName: nodeName + targetRef: + uid: uid + apiVersion: apiVersion + kind: kind + resourceVersion: resourceVersion + fieldPath: fieldPath + name: name + namespace: namespace + hostname: hostname + ip: ip + ports: + - protocol: protocol + port: 0 + appProtocol: appProtocol + name: name + - protocol: protocol + port: 0 + appProtocol: appProtocol + name: name properties: apiVersion: description: 'APIVersion defines the versioned schema of this representation @@ -153060,17 +185998,28 @@ components: type: string metadata: $ref: '#/components/schemas/v1.ObjectMeta' - spec: - $ref: '#/components/schemas/v1.LeaseSpec' + subsets: + description: 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. + items: + $ref: '#/components/schemas/v1.EndpointSubset' + type: array + x-kubernetes-list-type: atomic type: object x-kubernetes-group-version-kind: - - group: coordination.k8s.io - kind: Lease + - group: "" + kind: Endpoints version: v1 x-implements: - io.kubernetes.client.common.KubernetesObject - v1.LeaseList: - description: LeaseList is a list of Lease objects. + v1.EndpointsList: + description: 'EndpointsList is a list of endpoints. Deprecated: This API is + deprecated in v1.33+.' example: metadata: remainingItemCount: 1 @@ -153111,1077 +186060,947 @@ components: managedFields: - apiVersion: apiVersion fieldsV1: '{}' - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - - apiVersion: apiVersion - fieldsV1: '{}' - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - creationTimestamp: 2000-01-23T04:56:07.000+00:00 - name: name - namespace: namespace - apiVersion: apiVersion - kind: kind - spec: - renewTime: 2000-01-23T04:56:07.000+00:00 - leaseDurationSeconds: 0 - leaseTransitions: 6 - acquireTime: 2000-01-23T04:56:07.000+00:00 - holderIdentity: holderIdentity - - metadata: - generation: 6 - finalizers: - - finalizers - - finalizers - resourceVersion: resourceVersion - annotations: - key: annotations - generateName: generateName - deletionTimestamp: 2000-01-23T04:56:07.000+00:00 - labels: - key: labels - ownerReferences: - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - selfLink: selfLink - deletionGracePeriodSeconds: 0 - uid: uid - managedFields: - - apiVersion: apiVersion - fieldsV1: '{}' - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - - apiVersion: apiVersion - fieldsV1: '{}' - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - creationTimestamp: 2000-01-23T04:56:07.000+00:00 - name: name - namespace: namespace - apiVersion: apiVersion - kind: kind - spec: - renewTime: 2000-01-23T04:56:07.000+00:00 - leaseDurationSeconds: 0 - leaseTransitions: 6 - acquireTime: 2000-01-23T04:56:07.000+00:00 - holderIdentity: holderIdentity - properties: - apiVersion: - description: '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' - type: string - items: - description: items is a list of schema objects. - items: - $ref: '#/components/schemas/v1.Lease' - type: array - kind: - description: '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' - type: string - metadata: - $ref: '#/components/schemas/v1.ListMeta' - required: - - items - type: object - x-kubernetes-group-version-kind: - - group: coordination.k8s.io - kind: LeaseList - version: v1 - x-implements: - - io.kubernetes.client.common.KubernetesListObject - v1.LeaseSpec: - description: LeaseSpec is a specification of a Lease. - example: - renewTime: 2000-01-23T04:56:07.000+00:00 - leaseDurationSeconds: 0 - leaseTransitions: 6 - acquireTime: 2000-01-23T04:56:07.000+00:00 - holderIdentity: holderIdentity - properties: - acquireTime: - description: acquireTime is a time when the current lease was acquired. - format: date-time - type: string - holderIdentity: - description: holderIdentity contains the identity of the holder of a current - lease. - type: string - leaseDurationSeconds: - description: leaseDurationSeconds is a duration that candidates for a lease - need to wait to force acquire it. This is measure against time of last - observed renewTime. - format: int32 - type: integer - leaseTransitions: - description: leaseTransitions is the number of transitions of a lease between - holders. - format: int32 - type: integer - renewTime: - description: renewTime is a time when the current holder of a lease has - last updated the lease. - format: date-time - type: string - type: object - v1.AWSElasticBlockStoreVolumeSource: - 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. - example: - partition: 8 - volumeID: volumeID - readOnly: true - fsType: fsType - properties: - fsType: - description: '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' - type: string - partition: - description: '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).' - format: int32 - type: integer - readOnly: - description: 'readOnly value true will force the readOnly setting in VolumeMounts. - More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore' - type: boolean - volumeID: - description: 'volumeID is unique ID of the persistent disk resource in AWS - (Amazon EBS volume). More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore' - type: string - required: - - volumeID - type: object - v1.Affinity: - description: Affinity is a group of affinity scheduling rules. - example: - nodeAffinity: - requiredDuringSchedulingIgnoredDuringExecution: - nodeSelectorTerms: - - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchFields: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchFields: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - preferredDuringSchedulingIgnoredDuringExecution: - - preference: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchFields: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - weight: 6 - - preference: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchFields: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - weight: 6 - podAffinity: - requiredDuringSchedulingIgnoredDuringExecution: - - labelSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - topologyKey: topologyKey - namespaces: - - namespaces - - namespaces - - labelSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - topologyKey: topologyKey - namespaces: - - namespaces - - namespaces - preferredDuringSchedulingIgnoredDuringExecution: - - podAffinityTerm: - labelSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - topologyKey: topologyKey - namespaces: - - namespaces - - namespaces - weight: 1 - - podAffinityTerm: - labelSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - topologyKey: topologyKey - namespaces: - - namespaces - - namespaces - weight: 1 - podAntiAffinity: - requiredDuringSchedulingIgnoredDuringExecution: - - labelSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - topologyKey: topologyKey - namespaces: - - namespaces - - namespaces - - labelSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - topologyKey: topologyKey - namespaces: - - namespaces - - namespaces - preferredDuringSchedulingIgnoredDuringExecution: - - podAffinityTerm: - labelSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - topologyKey: topologyKey - namespaces: - - namespaces - - namespaces - weight: 1 - - podAffinityTerm: - labelSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - topologyKey: topologyKey - namespaces: - - namespaces - - namespaces - weight: 1 - properties: - nodeAffinity: - $ref: '#/components/schemas/v1.NodeAffinity' - podAffinity: - $ref: '#/components/schemas/v1.PodAffinity' - podAntiAffinity: - $ref: '#/components/schemas/v1.PodAntiAffinity' - type: object - v1.AttachedVolume: - description: AttachedVolume describes a volume attached to a node - example: - devicePath: devicePath - name: name - properties: - devicePath: - description: DevicePath represents the device path where the volume should - be available - type: string - name: - description: Name of the attached volume - type: string - required: - - devicePath - - name - type: object - v1.AzureDiskVolumeSource: - description: AzureDisk represents an Azure Data Disk mount on the host and bind - mount to the pod. - example: - diskName: diskName - kind: kind - readOnly: true - cachingMode: cachingMode - diskURI: diskURI - fsType: fsType - properties: - cachingMode: - description: 'cachingMode is the Host Caching mode: None, Read Only, Read - Write.' - type: string - diskName: - description: diskName is the Name of the data disk in the blob storage - type: string - diskURI: - description: diskURI is the URI of data disk in the blob storage - type: string - fsType: - description: 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. - type: string - kind: - description: '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' - type: string - readOnly: - description: readOnly Defaults to false (read/write). ReadOnly here will - force the ReadOnly setting in VolumeMounts. - type: boolean - required: - - diskName - - diskURI - type: object - v1.AzureFilePersistentVolumeSource: - description: AzureFile represents an Azure File Service mount on the host and - bind mount to the pod. - example: - secretName: secretName - secretNamespace: secretNamespace - readOnly: true - shareName: shareName - properties: - readOnly: - description: readOnly defaults to false (read/write). ReadOnly here will - force the ReadOnly setting in VolumeMounts. - type: boolean - secretName: - description: secretName is the name of secret that contains Azure Storage - Account Name and Key - type: string - secretNamespace: - description: secretNamespace is the namespace of the secret that contains - Azure Storage Account Name and Key default is the same as the Pod - type: string - shareName: - description: shareName is the azure Share Name - type: string - required: - - secretName - - shareName - type: object - v1.AzureFileVolumeSource: - description: AzureFile represents an Azure File Service mount on the host and - bind mount to the pod. - example: - secretName: secretName - readOnly: true - shareName: shareName - properties: - readOnly: - description: readOnly defaults to false (read/write). ReadOnly here will - force the ReadOnly setting in VolumeMounts. - type: boolean - secretName: - description: secretName is the name of secret that contains Azure Storage - Account Name and Key - type: string - shareName: - description: shareName is the azure share Name - type: string - required: - - secretName - - shareName - type: object - v1.Binding: - 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. - example: - metadata: - generation: 6 - finalizers: - - finalizers - - finalizers - resourceVersion: resourceVersion - annotations: - key: annotations - generateName: generateName - deletionTimestamp: 2000-01-23T04:56:07.000+00:00 - labels: - key: labels - ownerReferences: - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: '{}' + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + creationTimestamp: 2000-01-23T04:56:07.000+00:00 name: name - blockOwnerDeletion: true - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind + namespace: namespace + apiVersion: apiVersion + kind: kind + subsets: + - notReadyAddresses: + - nodeName: nodeName + targetRef: + uid: uid + apiVersion: apiVersion + kind: kind + resourceVersion: resourceVersion + fieldPath: fieldPath + name: name + namespace: namespace + hostname: hostname + ip: ip + - nodeName: nodeName + targetRef: + uid: uid + apiVersion: apiVersion + kind: kind + resourceVersion: resourceVersion + fieldPath: fieldPath + name: name + namespace: namespace + hostname: hostname + ip: ip + addresses: + - nodeName: nodeName + targetRef: + uid: uid + apiVersion: apiVersion + kind: kind + resourceVersion: resourceVersion + fieldPath: fieldPath + name: name + namespace: namespace + hostname: hostname + ip: ip + - nodeName: nodeName + targetRef: + uid: uid + apiVersion: apiVersion + kind: kind + resourceVersion: resourceVersion + fieldPath: fieldPath + name: name + namespace: namespace + hostname: hostname + ip: ip + ports: + - protocol: protocol + port: 0 + appProtocol: appProtocol + name: name + - protocol: protocol + port: 0 + appProtocol: appProtocol + name: name + - notReadyAddresses: + - nodeName: nodeName + targetRef: + uid: uid + apiVersion: apiVersion + kind: kind + resourceVersion: resourceVersion + fieldPath: fieldPath + name: name + namespace: namespace + hostname: hostname + ip: ip + - nodeName: nodeName + targetRef: + uid: uid + apiVersion: apiVersion + kind: kind + resourceVersion: resourceVersion + fieldPath: fieldPath + name: name + namespace: namespace + hostname: hostname + ip: ip + addresses: + - nodeName: nodeName + targetRef: + uid: uid + apiVersion: apiVersion + kind: kind + resourceVersion: resourceVersion + fieldPath: fieldPath + name: name + namespace: namespace + hostname: hostname + ip: ip + - nodeName: nodeName + targetRef: + uid: uid + apiVersion: apiVersion + kind: kind + resourceVersion: resourceVersion + fieldPath: fieldPath + name: name + namespace: namespace + hostname: hostname + ip: ip + ports: + - protocol: protocol + port: 0 + appProtocol: appProtocol + name: name + - protocol: protocol + port: 0 + appProtocol: appProtocol + name: name + - metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: '{}' + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: '{}' + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + creationTimestamp: 2000-01-23T04:56:07.000+00:00 name: name - blockOwnerDeletion: true - selfLink: selfLink - deletionGracePeriodSeconds: 0 - uid: uid - managedFields: - - apiVersion: apiVersion - fieldsV1: '{}' - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - - apiVersion: apiVersion - fieldsV1: '{}' - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - creationTimestamp: 2000-01-23T04:56:07.000+00:00 - name: name - namespace: namespace - apiVersion: apiVersion - kind: kind - target: - uid: uid + namespace: namespace apiVersion: apiVersion kind: kind - resourceVersion: resourceVersion - fieldPath: fieldPath - name: name - namespace: namespace + subsets: + - notReadyAddresses: + - nodeName: nodeName + targetRef: + uid: uid + apiVersion: apiVersion + kind: kind + resourceVersion: resourceVersion + fieldPath: fieldPath + name: name + namespace: namespace + hostname: hostname + ip: ip + - nodeName: nodeName + targetRef: + uid: uid + apiVersion: apiVersion + kind: kind + resourceVersion: resourceVersion + fieldPath: fieldPath + name: name + namespace: namespace + hostname: hostname + ip: ip + addresses: + - nodeName: nodeName + targetRef: + uid: uid + apiVersion: apiVersion + kind: kind + resourceVersion: resourceVersion + fieldPath: fieldPath + name: name + namespace: namespace + hostname: hostname + ip: ip + - nodeName: nodeName + targetRef: + uid: uid + apiVersion: apiVersion + kind: kind + resourceVersion: resourceVersion + fieldPath: fieldPath + name: name + namespace: namespace + hostname: hostname + ip: ip + ports: + - protocol: protocol + port: 0 + appProtocol: appProtocol + name: name + - protocol: protocol + port: 0 + appProtocol: appProtocol + name: name + - notReadyAddresses: + - nodeName: nodeName + targetRef: + uid: uid + apiVersion: apiVersion + kind: kind + resourceVersion: resourceVersion + fieldPath: fieldPath + name: name + namespace: namespace + hostname: hostname + ip: ip + - nodeName: nodeName + targetRef: + uid: uid + apiVersion: apiVersion + kind: kind + resourceVersion: resourceVersion + fieldPath: fieldPath + name: name + namespace: namespace + hostname: hostname + ip: ip + addresses: + - nodeName: nodeName + targetRef: + uid: uid + apiVersion: apiVersion + kind: kind + resourceVersion: resourceVersion + fieldPath: fieldPath + name: name + namespace: namespace + hostname: hostname + ip: ip + - nodeName: nodeName + targetRef: + uid: uid + apiVersion: apiVersion + kind: kind + resourceVersion: resourceVersion + fieldPath: fieldPath + name: name + namespace: namespace + hostname: hostname + ip: ip + ports: + - protocol: protocol + port: 0 + appProtocol: appProtocol + name: name + - protocol: protocol + port: 0 + appProtocol: appProtocol + name: name properties: apiVersion: description: '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' type: string + items: + description: List of endpoints. + items: + $ref: '#/components/schemas/v1.Endpoints' + type: array kind: description: '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' type: string metadata: - $ref: '#/components/schemas/v1.ObjectMeta' - target: - $ref: '#/components/schemas/v1.ObjectReference' + $ref: '#/components/schemas/v1.ListMeta' required: - - target + - items type: object x-kubernetes-group-version-kind: - group: "" - kind: Binding + kind: EndpointsList version: v1 x-implements: - - io.kubernetes.client.common.KubernetesObject - v1.CSIPersistentVolumeSource: - description: Represents storage that is managed by an external CSI volume driver - (Beta feature) + - io.kubernetes.client.common.KubernetesListObject + v1.EnvFromSource: + description: EnvFromSource represents the source of a set of ConfigMaps or Secrets example: - controllerPublishSecretRef: - name: name - namespace: namespace - driver: driver - nodePublishSecretRef: - name: name - namespace: namespace - nodeStageSecretRef: - name: name - namespace: namespace - volumeHandle: volumeHandle - nodeExpandSecretRef: + configMapRef: name: name - namespace: namespace - readOnly: true - controllerExpandSecretRef: + optional: true + prefix: prefix + secretRef: name: name - namespace: namespace - fsType: fsType - volumeAttributes: - key: volumeAttributes + optional: true properties: - controllerExpandSecretRef: - $ref: '#/components/schemas/v1.SecretReference' - controllerPublishSecretRef: - $ref: '#/components/schemas/v1.SecretReference' - driver: - description: driver is the name of the driver to use for this volume. Required. + configMapRef: + $ref: '#/components/schemas/v1.ConfigMapEnvSource' + prefix: + description: Optional text to prepend to the name of each environment variable. + Must be a C_IDENTIFIER. type: string - fsType: - description: fsType to mount. Must be a filesystem type supported by the - host operating system. Ex. "ext4", "xfs", "ntfs". + secretRef: + $ref: '#/components/schemas/v1.SecretEnvSource' + type: object + v1.EnvVar: + description: EnvVar represents an environment variable present in a Container. + example: + name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + properties: + name: + description: Name of the environment variable. Must be a C_IDENTIFIER. type: string - nodeExpandSecretRef: - $ref: '#/components/schemas/v1.SecretReference' - nodePublishSecretRef: - $ref: '#/components/schemas/v1.SecretReference' - nodeStageSecretRef: - $ref: '#/components/schemas/v1.SecretReference' - readOnly: - description: readOnly value to pass to ControllerPublishVolumeRequest. Defaults - to false (read/write). - type: boolean - volumeAttributes: - additionalProperties: - type: string - description: volumeAttributes of the volume to publish. - type: object - volumeHandle: - description: volumeHandle is the unique volume name returned by the CSI - volume plugin’s CreateVolume to refer to the volume on all subsequent - calls. Required. + value: + description: '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 "".' type: string + valueFrom: + $ref: '#/components/schemas/v1.EnvVarSource' required: - - driver - - volumeHandle + - name type: object - v1.CSIVolumeSource: - description: Represents a source location of a volume to mount, managed by an - external CSI driver + v1.EnvVarSource: + description: EnvVarSource represents a source for the value of an EnvVar. example: - driver: driver - nodePublishSecretRef: + secretKeyRef: name: name - readOnly: true - fsType: fsType - volumeAttributes: - key: volumeAttributes + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath properties: - driver: - description: 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. - type: string - fsType: - description: 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. - type: string - nodePublishSecretRef: - $ref: '#/components/schemas/v1.LocalObjectReference' - readOnly: - description: readOnly specifies a read-only configuration for the volume. - Defaults to false (read/write). - type: boolean - volumeAttributes: - additionalProperties: - type: string - description: volumeAttributes stores driver-specific properties that are - passed to the CSI driver. Consult your driver's documentation for supported - values. - type: object - required: - - driver + configMapKeyRef: + $ref: '#/components/schemas/v1.ConfigMapKeySelector' + fieldRef: + $ref: '#/components/schemas/v1.ObjectFieldSelector' + resourceFieldRef: + $ref: '#/components/schemas/v1.ResourceFieldSelector' + secretKeyRef: + $ref: '#/components/schemas/v1.SecretKeySelector' type: object - v1.Capabilities: - description: Adds and removes POSIX capabilities from running containers. + v1.EphemeralContainer: + 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. example: - add: - - add - - add - drop: - - drop - - drop + volumeDevices: + - devicePath: devicePath + name: name + - devicePath: devicePath + name: name + stdin: true + terminationMessagePolicy: terminationMessagePolicy + securityContext: + privileged: true + runAsUser: 1 + capabilities: + add: + - add + - add + drop: + - drop + - drop + seLinuxOptions: + role: role + level: level + type: type + user: user + appArmorProfile: + localhostProfile: localhostProfile + type: type + seccompProfile: + localhostProfile: localhostProfile + type: type + windowsOptions: + gmsaCredentialSpec: gmsaCredentialSpec + runAsUserName: runAsUserName + hostProcess: true + gmsaCredentialSpecName: gmsaCredentialSpecName + procMount: procMount + allowPrivilegeEscalation: true + runAsGroup: 1 + runAsNonRoot: true + readOnlyRootFilesystem: true + startupProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: port + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + ports: + - protocol: protocol + hostIP: hostIP + name: name + containerPort: 7 + hostPort: 1 + - protocol: protocol + hostIP: hostIP + name: name + containerPort: 7 + hostPort: 1 + volumeMounts: + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + recursiveReadOnly: recursiveReadOnly + subPathExpr: subPathExpr + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + recursiveReadOnly: recursiveReadOnly + subPathExpr: subPathExpr + lifecycle: + postStart: + sleep: + seconds: 5 + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + preStop: + sleep: + seconds: 5 + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + stopSignal: stopSignal + readinessProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: port + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + resizePolicy: + - resourceName: resourceName + restartPolicy: restartPolicy + - resourceName: resourceName + restartPolicy: restartPolicy + envFrom: + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + image: image + imagePullPolicy: imagePullPolicy + livenessProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: port + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + targetContainerName: targetContainerName + terminationMessagePath: terminationMessagePath + workingDir: workingDir + resources: + claims: + - request: request + name: name + - request: request + name: name + requests: {} + limits: {} + env: + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + restartPolicy: restartPolicy + command: + - command + - command + args: + - args + - args + name: name + tty: true + stdinOnce: true properties: - add: - description: Added capabilities + args: + description: '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' items: type: string type: array - drop: - description: Removed capabilities + x-kubernetes-list-type: atomic + command: + description: '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' items: type: string type: array - type: object - v1.CephFSPersistentVolumeSource: - description: Represents a Ceph Filesystem mount that lasts the lifetime of a - pod Cephfs volumes do not support ownership management or SELinux relabeling. - example: - path: path - secretRef: - name: name - namespace: namespace - secretFile: secretFile - readOnly: true - user: user - monitors: - - monitors - - monitors - properties: - monitors: - description: 'monitors is Required: Monitors is a collection of Ceph monitors - More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it' + x-kubernetes-list-type: atomic + env: + description: List of environment variables to set in the container. Cannot + be updated. items: - type: string + $ref: '#/components/schemas/v1.EnvVar' type: array - path: - description: 'path is Optional: Used as the mounted root, rather than the - full Ceph tree, default is /' - type: string - readOnly: - description: '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' - type: boolean - secretFile: - description: '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' - type: string - secretRef: - $ref: '#/components/schemas/v1.SecretReference' - user: - description: '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' - type: string - required: - - monitors - type: object - v1.CephFSVolumeSource: - description: Represents a Ceph Filesystem mount that lasts the lifetime of a - pod Cephfs volumes do not support ownership management or SELinux relabeling. - example: - path: path - secretRef: - name: name - secretFile: secretFile - readOnly: true - user: user - monitors: - - monitors - - monitors - properties: - monitors: - description: 'monitors is Required: Monitors is a collection of Ceph monitors - More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it' + x-kubernetes-patch-strategy: merge + x-kubernetes-list-type: map + x-kubernetes-list-map-keys: + - name + x-kubernetes-patch-merge-key: name + envFrom: + description: 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. items: - type: string + $ref: '#/components/schemas/v1.EnvFromSource' type: array - path: - description: 'path is Optional: Used as the mounted root, rather than the - full Ceph tree, default is /' + x-kubernetes-list-type: atomic + image: + description: 'Container image name. More info: https://kubernetes.io/docs/concepts/containers/images' type: string - readOnly: - description: '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' - type: boolean - secretFile: - description: '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' + imagePullPolicy: + description: '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' type: string - secretRef: - $ref: '#/components/schemas/v1.LocalObjectReference' - user: - description: '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' + lifecycle: + $ref: '#/components/schemas/v1.Lifecycle' + livenessProbe: + $ref: '#/components/schemas/v1.Probe' + name: + description: Name of the ephemeral container specified as a DNS_LABEL. This + name must be unique among all containers, init containers and ephemeral + containers. type: string - required: - - monitors - type: object - v1.CinderPersistentVolumeSource: - 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. - example: - secretRef: - name: name - namespace: namespace - volumeID: volumeID - readOnly: true - fsType: fsType - properties: - fsType: - description: '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' + ports: + description: Ports are not allowed for ephemeral containers. + items: + $ref: '#/components/schemas/v1.ContainerPort' + type: array + x-kubernetes-patch-strategy: merge + x-kubernetes-list-type: map + x-kubernetes-list-map-keys: + - containerPort + - protocol + x-kubernetes-patch-merge-key: containerPort + readinessProbe: + $ref: '#/components/schemas/v1.Probe' + resizePolicy: + description: Resources resize policy for the container. + items: + $ref: '#/components/schemas/v1.ContainerResizePolicy' + type: array + x-kubernetes-list-type: atomic + resources: + $ref: '#/components/schemas/v1.ResourceRequirements' + restartPolicy: + description: 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. type: string - readOnly: - description: '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' + securityContext: + $ref: '#/components/schemas/v1.SecurityContext' + startupProbe: + $ref: '#/components/schemas/v1.Probe' + stdin: + description: 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. type: boolean - secretRef: - $ref: '#/components/schemas/v1.SecretReference' - volumeID: - description: 'volumeID used to identify the volume in cinder. More info: - https://examples.k8s.io/mysql-cinder-pd/README.md' - type: string - required: - - volumeID - type: object - v1.CinderVolumeSource: - 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. - example: - secretRef: - name: name - volumeID: volumeID - readOnly: true - fsType: fsType - properties: - fsType: - description: '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' - type: string - readOnly: - description: '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' + stdinOnce: + description: 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 type: boolean - secretRef: - $ref: '#/components/schemas/v1.LocalObjectReference' - volumeID: - description: 'volumeID used to identify the volume in cinder. More info: - https://examples.k8s.io/mysql-cinder-pd/README.md' - type: string - required: - - volumeID - type: object - v1.ClaimSource: - description: |- - ClaimSource describes a reference to a ResourceClaim. - - Exactly one of these fields should be set. Consumers of this type must treat an empty object as if it has an unknown value. - example: - resourceClaimName: resourceClaimName - resourceClaimTemplateName: resourceClaimTemplateName - properties: - resourceClaimName: - description: ResourceClaimName is the name of a ResourceClaim object in - the same namespace as this pod. - type: string - resourceClaimTemplateName: + targetContainerName: description: |- - 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. + 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. - This field is immutable and no changes will be made to the corresponding ResourceClaim by the control plane after creating the ResourceClaim. - type: string - type: object - v1.ClientIPConfig: - description: ClientIPConfig represents the configurations of Client IP based - session affinity. - example: - timeoutSeconds: 5 - properties: - timeoutSeconds: - description: 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). - format: int32 - type: integer - type: object - v1.ComponentCondition: - description: Information about the condition of a component. - example: - error: error - message: message - type: type - status: status - properties: - error: - description: Condition error code for a component. For example, a health - check error code. + 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. type: string - message: - description: Message about the condition for a component. For example, information - about a health check. + terminationMessagePath: + description: '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.' type: string - status: - description: 'Status of the condition for a component. Valid values for - "Healthy": "True", "False", or "Unknown".' + terminationMessagePolicy: + description: 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. type: string - type: - description: 'Type of condition for a component. Valid value: "Healthy"' + tty: + description: Whether this container should allocate a TTY for itself, also + requires 'stdin' to be true. Default is false. + type: boolean + volumeDevices: + description: volumeDevices is the list of block devices to be used by the + container. + items: + $ref: '#/components/schemas/v1.VolumeDevice' + type: array + x-kubernetes-patch-strategy: merge + x-kubernetes-list-type: map + x-kubernetes-list-map-keys: + - devicePath + x-kubernetes-patch-merge-key: devicePath + volumeMounts: + description: Pod volumes to mount into the container's filesystem. Subpath + mounts are not allowed for ephemeral containers. Cannot be updated. + items: + $ref: '#/components/schemas/v1.VolumeMount' + type: array + x-kubernetes-patch-strategy: merge + x-kubernetes-list-type: map + x-kubernetes-list-map-keys: + - mountPath + x-kubernetes-patch-merge-key: mountPath + workingDir: + description: 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. type: string required: - - status - - type + - name type: object - v1.ComponentStatus: - description: 'ComponentStatus (and ComponentStatusList) holds the cluster validation - info. Deprecated: This API is deprecated in v1.19+' + v1.EphemeralVolumeSource: + description: Represents an ephemeral volume that is handled by a normal storage + driver. + example: + volumeClaimTemplate: + metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: '{}' + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: '{}' + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + creationTimestamp: 2000-01-23T04:56:07.000+00:00 + name: name + namespace: namespace + spec: + storageClassName: storageClassName + dataSourceRef: + apiGroup: apiGroup + kind: kind + name: name + namespace: namespace + volumeName: volumeName + volumeAttributesClassName: volumeAttributesClassName + resources: + requests: {} + limits: {} + selector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + accessModes: + - accessModes + - accessModes + dataSource: + apiGroup: apiGroup + kind: kind + name: name + volumeMode: volumeMode + properties: + volumeClaimTemplate: + $ref: '#/components/schemas/v1.PersistentVolumeClaimTemplate' + type: object + core.v1.Event: + 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. example: + reason: reason metadata: generation: 6 finalizers: @@ -154228,47 +187047,110 @@ components: creationTimestamp: 2000-01-23T04:56:07.000+00:00 name: name namespace: namespace - apiVersion: apiVersion + involvedObject: + uid: uid + apiVersion: apiVersion + kind: kind + resourceVersion: resourceVersion + fieldPath: fieldPath + name: name + namespace: namespace + reportingInstance: reportingInstance kind: kind - conditions: - - error: error - message: message - type: type - status: status - - error: error - message: message - type: type - status: status + count: 0 + source: + component: component + host: host + message: message + type: type + reportingComponent: reportingComponent + firstTimestamp: 2000-01-23T04:56:07.000+00:00 + apiVersion: apiVersion + related: + uid: uid + apiVersion: apiVersion + kind: kind + resourceVersion: resourceVersion + fieldPath: fieldPath + name: name + namespace: namespace + lastTimestamp: 2000-01-23T04:56:07.000+00:00 + series: + count: 6 + lastObservedTime: 2000-01-23T04:56:07.000+00:00 + eventTime: 2000-01-23T04:56:07.000+00:00 + action: action properties: + action: + description: What action was taken/failed regarding to the Regarding object. + type: string apiVersion: description: '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' type: string - conditions: - description: List of component conditions observed - items: - $ref: '#/components/schemas/v1.ComponentCondition' - type: array - x-kubernetes-patch-strategy: merge - x-kubernetes-patch-merge-key: type + count: + description: The number of times this event has occurred. + format: int32 + type: integer + eventTime: + description: Time when this Event was first observed. + format: date-time + type: string + firstTimestamp: + description: The time at which the event was first recorded. (Time of server + receipt is in TypeMeta.) + format: date-time + type: string + involvedObject: + $ref: '#/components/schemas/v1.ObjectReference' kind: description: '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' type: string + lastTimestamp: + description: The time at which the most recent occurrence of this event + was recorded. + format: date-time + type: string + message: + description: A human-readable description of the status of this operation. + type: string metadata: $ref: '#/components/schemas/v1.ObjectMeta' + reason: + description: This should be a short, machine understandable string that + gives the reason for the transition into the object's current status. + type: string + related: + $ref: '#/components/schemas/v1.ObjectReference' + reportingComponent: + description: Name of the controller that emitted this Event, e.g. `kubernetes.io/kubelet`. + type: string + reportingInstance: + description: ID of the controller instance, e.g. `kubelet-xyzf`. + type: string + series: + $ref: '#/components/schemas/core.v1.EventSeries' + source: + $ref: '#/components/schemas/v1.EventSource' + type: + description: Type of this event (Normal, Warning), new types could be added + in the future + type: string + required: + - involvedObject + - metadata type: object x-kubernetes-group-version-kind: - group: "" - kind: ComponentStatus + kind: Event version: v1 x-implements: - io.kubernetes.client.common.KubernetesObject - v1.ComponentStatusList: - description: 'Status of all the conditions for the component as a list of ComponentStatus - objects. Deprecated: This API is deprecated in v1.19+' + core.v1.EventList: + description: EventList is a list of events. example: metadata: remainingItemCount: 1 @@ -154278,7 +187160,8 @@ components: apiVersion: apiVersion kind: kind items: - - metadata: + - reason: reason + metadata: generation: 6 finalizers: - finalizers @@ -154324,18 +187207,41 @@ components: creationTimestamp: 2000-01-23T04:56:07.000+00:00 name: name namespace: namespace - apiVersion: apiVersion + involvedObject: + uid: uid + apiVersion: apiVersion + kind: kind + resourceVersion: resourceVersion + fieldPath: fieldPath + name: name + namespace: namespace + reportingInstance: reportingInstance kind: kind - conditions: - - error: error - message: message - type: type - status: status - - error: error - message: message - type: type - status: status - - metadata: + count: 0 + source: + component: component + host: host + message: message + type: type + reportingComponent: reportingComponent + firstTimestamp: 2000-01-23T04:56:07.000+00:00 + apiVersion: apiVersion + related: + uid: uid + apiVersion: apiVersion + kind: kind + resourceVersion: resourceVersion + fieldPath: fieldPath + name: name + namespace: namespace + lastTimestamp: 2000-01-23T04:56:07.000+00:00 + series: + count: 6 + lastObservedTime: 2000-01-23T04:56:07.000+00:00 + eventTime: 2000-01-23T04:56:07.000+00:00 + action: action + - reason: reason + metadata: generation: 6 finalizers: - finalizers @@ -154381,48 +187287,783 @@ components: creationTimestamp: 2000-01-23T04:56:07.000+00:00 name: name namespace: namespace - apiVersion: apiVersion + involvedObject: + uid: uid + apiVersion: apiVersion + kind: kind + resourceVersion: resourceVersion + fieldPath: fieldPath + name: name + namespace: namespace + reportingInstance: reportingInstance kind: kind - conditions: - - error: error - message: message - type: type - status: status - - error: error - message: message - type: type - status: status + count: 0 + source: + component: component + host: host + message: message + type: type + reportingComponent: reportingComponent + firstTimestamp: 2000-01-23T04:56:07.000+00:00 + apiVersion: apiVersion + related: + uid: uid + apiVersion: apiVersion + kind: kind + resourceVersion: resourceVersion + fieldPath: fieldPath + name: name + namespace: namespace + lastTimestamp: 2000-01-23T04:56:07.000+00:00 + series: + count: 6 + lastObservedTime: 2000-01-23T04:56:07.000+00:00 + eventTime: 2000-01-23T04:56:07.000+00:00 + action: action + properties: + apiVersion: + description: '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' + type: string + items: + description: List of events + items: + $ref: '#/components/schemas/core.v1.Event' + type: array + kind: + description: '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' + type: string + metadata: + $ref: '#/components/schemas/v1.ListMeta' + required: + - items + type: object + x-kubernetes-group-version-kind: + - group: "" + kind: EventList + version: v1 + x-implements: + - io.kubernetes.client.common.KubernetesListObject + core.v1.EventSeries: + description: EventSeries contain information on series of events, i.e. thing + that was/is happening continuously for some time. + example: + count: 6 + lastObservedTime: 2000-01-23T04:56:07.000+00:00 + properties: + count: + description: Number of occurrences in this series up to the last heartbeat + time + format: int32 + type: integer + lastObservedTime: + description: Time of the last occurrence observed + format: date-time + type: string + type: object + v1.EventSource: + description: EventSource contains information for an event. + example: + component: component + host: host + properties: + component: + description: Component from which the event is generated. + type: string + host: + description: Node name on which the event is generated. + type: string + type: object + v1.ExecAction: + description: ExecAction describes a "run in container" action. + example: + command: + - command + - command + properties: + command: + description: 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. + items: + type: string + type: array + x-kubernetes-list-type: atomic + type: object + v1.FCVolumeSource: + 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. + example: + lun: 2 + targetWWNs: + - targetWWNs + - targetWWNs + readOnly: true + wwids: + - wwids + - wwids + fsType: fsType + properties: + fsType: + description: 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. + type: string + lun: + description: 'lun is Optional: FC target lun number' + format: int32 + type: integer + readOnly: + description: 'readOnly is Optional: Defaults to false (read/write). ReadOnly + here will force the ReadOnly setting in VolumeMounts.' + type: boolean + targetWWNs: + description: 'targetWWNs is Optional: FC target worldwide names (WWNs)' + items: + type: string + type: array + x-kubernetes-list-type: atomic + wwids: + description: 'wwids Optional: FC volume world wide identifiers (wwids) Either + wwids or combination of targetWWNs and lun must be set, but not both simultaneously.' + items: + type: string + type: array + x-kubernetes-list-type: atomic + type: object + v1.FlexPersistentVolumeSource: + description: FlexPersistentVolumeSource represents a generic persistent volume + resource that is provisioned/attached using an exec based plugin. + example: + driver: driver + options: + key: options + secretRef: + name: name + namespace: namespace + readOnly: true + fsType: fsType + properties: + driver: + description: driver is the name of the driver to use for this volume. + type: string + fsType: + description: 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. + type: string + options: + additionalProperties: + type: string + description: 'options is Optional: this field holds extra command options + if any.' + type: object + readOnly: + description: 'readOnly is Optional: defaults to false (read/write). ReadOnly + here will force the ReadOnly setting in VolumeMounts.' + type: boolean + secretRef: + $ref: '#/components/schemas/v1.SecretReference' + required: + - driver + type: object + v1.FlexVolumeSource: + description: FlexVolume represents a generic volume resource that is provisioned/attached + using an exec based plugin. + example: + driver: driver + options: + key: options + secretRef: + name: name + readOnly: true + fsType: fsType + properties: + driver: + description: driver is the name of the driver to use for this volume. + type: string + fsType: + description: 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. + type: string + options: + additionalProperties: + type: string + description: 'options is Optional: this field holds extra command options + if any.' + type: object + readOnly: + description: 'readOnly is Optional: defaults to false (read/write). ReadOnly + here will force the ReadOnly setting in VolumeMounts.' + type: boolean + secretRef: + $ref: '#/components/schemas/v1.LocalObjectReference' + required: + - driver + type: object + v1.FlockerVolumeSource: + 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. + example: + datasetName: datasetName + datasetUUID: datasetUUID + properties: + datasetName: + description: datasetName is Name of the dataset stored as metadata -> name + on the dataset for Flocker should be considered as deprecated + type: string + datasetUUID: + description: datasetUUID is the UUID of the dataset. This is unique identifier + of a Flocker dataset + type: string + type: object + v1.GCEPersistentDiskVolumeSource: + 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. + example: + partition: 6 + readOnly: true + pdName: pdName + fsType: fsType + properties: + fsType: + description: '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' + type: string + partition: + description: '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' + format: int32 + type: integer + pdName: + description: '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' + type: string + readOnly: + description: 'readOnly here will force the ReadOnly setting in VolumeMounts. + Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk' + type: boolean + required: + - pdName + type: object + v1.GRPCAction: + description: GRPCAction specifies an action involving a GRPC service. + example: + port: 2 + service: service + properties: + port: + description: Port number of the gRPC service. Number must be in the range + 1 to 65535. + format: int32 + type: integer + service: + description: |- + 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. + type: string + required: + - port + type: object + v1.GitRepoVolumeSource: + 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. + example: + repository: repository + directory: directory + revision: revision + properties: + directory: + description: 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. + type: string + repository: + description: repository is the URL + type: string + revision: + description: revision is the commit hash for the specified revision. + type: string + required: + - repository + type: object + v1.GlusterfsPersistentVolumeSource: + description: Represents a Glusterfs mount that lasts the lifetime of a pod. + Glusterfs volumes do not support ownership management or SELinux relabeling. + example: + path: path + endpoints: endpoints + readOnly: true + endpointsNamespace: endpointsNamespace + properties: + endpoints: + description: 'endpoints is the endpoint name that details Glusterfs topology. + More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod' + type: string + endpointsNamespace: + description: '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' + type: string + path: + description: 'path is the Glusterfs volume path. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod' + type: string + readOnly: + description: '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' + type: boolean + required: + - endpoints + - path + type: object + v1.GlusterfsVolumeSource: + description: Represents a Glusterfs mount that lasts the lifetime of a pod. + Glusterfs volumes do not support ownership management or SELinux relabeling. + example: + path: path + endpoints: endpoints + readOnly: true + properties: + endpoints: + description: 'endpoints is the endpoint name that details Glusterfs topology. + More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod' + type: string + path: + description: 'path is the Glusterfs volume path. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod' + type: string + readOnly: + description: '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' + type: boolean + required: + - endpoints + - path + type: object + v1.HTTPGetAction: + description: HTTPGetAction describes an action based on HTTP Get requests. + example: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + properties: + host: + description: Host name to connect to, defaults to the pod IP. You probably + want to set "Host" in httpHeaders instead. + type: string + httpHeaders: + description: Custom headers to set in the request. HTTP allows repeated + headers. + items: + $ref: '#/components/schemas/v1.HTTPHeader' + type: array + x-kubernetes-list-type: atomic + path: + description: Path to access on the HTTP server. + type: string + port: + description: 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. + format: int-or-string + type: string + scheme: + description: Scheme to use for connecting to the host. Defaults to HTTP. + type: string + required: + - port + type: object + v1.HTTPHeader: + description: HTTPHeader describes a custom header to be used in HTTP probes + example: + name: name + value: value + properties: + name: + description: The header field name. This will be canonicalized upon output, + so case-variant names will be understood as the same header. + type: string + value: + description: The header field value + type: string + required: + - name + - value + type: object + v1.HostAlias: + description: HostAlias holds the mapping between IP and hostnames that will + be injected as an entry in the pod's hosts file. + example: + ip: ip + hostnames: + - hostnames + - hostnames + properties: + hostnames: + description: Hostnames for the above IP address. + items: + type: string + type: array + x-kubernetes-list-type: atomic + ip: + description: IP address of the host file entry. + type: string + required: + - ip + type: object + v1.HostIP: + description: HostIP represents a single IP address allocated to the host. + example: + ip: ip + properties: + ip: + description: IP is the IP address assigned to the host + type: string + required: + - ip + type: object + v1.HostPathVolumeSource: + description: Represents a host path mapped into a pod. Host path volumes do + not support ownership management or SELinux relabeling. + example: + path: path + type: type + properties: + path: + description: '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' + type: string + type: + description: 'type for HostPath Volume Defaults to "" More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath' + type: string + required: + - path + type: object + v1.ISCSIPersistentVolumeSource: + description: ISCSIPersistentVolumeSource represents an ISCSI disk. ISCSI volumes + can only be mounted as read/write once. ISCSI volumes support ownership management + and SELinux relabeling. + example: + chapAuthSession: true + iscsiInterface: iscsiInterface + lun: 0 + chapAuthDiscovery: true + iqn: iqn + portals: + - portals + - portals + secretRef: + name: name + namespace: namespace + initiatorName: initiatorName + readOnly: true + fsType: fsType + targetPortal: targetPortal + properties: + chapAuthDiscovery: + description: chapAuthDiscovery defines whether support iSCSI Discovery CHAP + authentication + type: boolean + chapAuthSession: + description: chapAuthSession defines whether support iSCSI Session CHAP + authentication + type: boolean + fsType: + description: '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' + type: string + initiatorName: + description: initiatorName is the custom iSCSI Initiator Name. If initiatorName + is specified with iscsiInterface simultaneously, new iSCSI interface : will be created for the connection. + type: string + iqn: + description: iqn is Target iSCSI Qualified Name. + type: string + iscsiInterface: + description: iscsiInterface is the interface Name that uses an iSCSI transport. + Defaults to 'default' (tcp). + type: string + lun: + description: lun is iSCSI Target Lun number. + format: int32 + type: integer + portals: + description: 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). + items: + type: string + type: array + x-kubernetes-list-type: atomic + readOnly: + description: readOnly here will force the ReadOnly setting in VolumeMounts. + Defaults to false. + type: boolean + secretRef: + $ref: '#/components/schemas/v1.SecretReference' + targetPortal: + description: 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). + type: string + required: + - iqn + - lun + - targetPortal + type: object + v1.ISCSIVolumeSource: + description: Represents an ISCSI disk. ISCSI volumes can only be mounted as + read/write once. ISCSI volumes support ownership management and SELinux relabeling. + example: + chapAuthSession: true + iscsiInterface: iscsiInterface + lun: 6 + chapAuthDiscovery: true + iqn: iqn + portals: + - portals + - portals + secretRef: + name: name + initiatorName: initiatorName + readOnly: true + fsType: fsType + targetPortal: targetPortal + properties: + chapAuthDiscovery: + description: chapAuthDiscovery defines whether support iSCSI Discovery CHAP + authentication + type: boolean + chapAuthSession: + description: chapAuthSession defines whether support iSCSI Session CHAP + authentication + type: boolean + fsType: + description: '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' + type: string + initiatorName: + description: initiatorName is the custom iSCSI Initiator Name. If initiatorName + is specified with iscsiInterface simultaneously, new iSCSI interface : will be created for the connection. + type: string + iqn: + description: iqn is the target iSCSI Qualified Name. + type: string + iscsiInterface: + description: iscsiInterface is the interface Name that uses an iSCSI transport. + Defaults to 'default' (tcp). + type: string + lun: + description: lun represents iSCSI Target Lun number. + format: int32 + type: integer + portals: + description: 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). + items: + type: string + type: array + x-kubernetes-list-type: atomic + readOnly: + description: readOnly here will force the ReadOnly setting in VolumeMounts. + Defaults to false. + type: boolean + secretRef: + $ref: '#/components/schemas/v1.LocalObjectReference' + targetPortal: + description: 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). + type: string + required: + - iqn + - lun + - targetPortal + type: object + v1.ImageVolumeSource: + description: ImageVolumeSource represents a image volume resource. + example: + reference: reference + pullPolicy: pullPolicy + properties: + pullPolicy: + description: '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.' + type: string + reference: + description: '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.' + type: string + type: object + v1.KeyToPath: + description: Maps a string key to a path within a volume. + example: + mode: 3 + path: path + key: key + properties: + key: + description: key is the key to project. + type: string + mode: + description: '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.' + format: int32 + type: integer + path: + description: 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 '..'. + type: string + required: + - key + - path + type: object + v1.Lifecycle: + 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. + example: + postStart: + sleep: + seconds: 5 + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + preStop: + sleep: + seconds: 5 + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + stopSignal: stopSignal + properties: + postStart: + $ref: '#/components/schemas/v1.LifecycleHandler' + preStop: + $ref: '#/components/schemas/v1.LifecycleHandler' + stopSignal: + description: StopSignal defines which signal will be sent to a container + when it is being stopped. If not specified, the default is defined by + the container runtime in use. StopSignal can only be set for Pods with + a non-empty .spec.os.name + type: string + type: object + v1.LifecycleHandler: + 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. + example: + sleep: + seconds: 5 + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value properties: - apiVersion: - description: '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' - type: string - items: - description: List of ComponentStatus objects. - items: - $ref: '#/components/schemas/v1.ComponentStatus' - type: array - kind: - description: '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' - type: string - metadata: - $ref: '#/components/schemas/v1.ListMeta' - required: - - items + exec: + $ref: '#/components/schemas/v1.ExecAction' + httpGet: + $ref: '#/components/schemas/v1.HTTPGetAction' + sleep: + $ref: '#/components/schemas/v1.SleepAction' + tcpSocket: + $ref: '#/components/schemas/v1.TCPSocketAction' type: object - x-kubernetes-group-version-kind: - - group: "" - kind: ComponentStatusList - version: v1 - x-implements: - - io.kubernetes.client.common.KubernetesListObject - v1.ConfigMap: - description: ConfigMap holds configuration data for pods to consume. + v1.LimitRange: + description: LimitRange sets resource usage limits for each kind of resource + in a Namespace. example: - immutable: true metadata: generation: 6 finalizers: @@ -154470,43 +188111,27 @@ components: name: name namespace: namespace apiVersion: apiVersion - data: - key: data - binaryData: - key: binaryData kind: kind + spec: + limits: + - default: {} + min: {} + max: {} + maxLimitRequestRatio: {} + type: type + defaultRequest: {} + - default: {} + min: {} + max: {} + maxLimitRequestRatio: {} + type: type + defaultRequest: {} properties: apiVersion: description: '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' type: string - binaryData: - additionalProperties: - format: byte - pattern: ^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$ - type: string - description: 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. - type: object - data: - additionalProperties: - type: string - description: 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. - type: object - immutable: - description: 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. - type: boolean kind: description: 'Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client @@ -154514,51 +188139,64 @@ components: type: string metadata: $ref: '#/components/schemas/v1.ObjectMeta' + spec: + $ref: '#/components/schemas/v1.LimitRangeSpec' type: object x-kubernetes-group-version-kind: - group: "" - kind: ConfigMap + kind: LimitRange version: v1 x-implements: - io.kubernetes.client.common.KubernetesObject - v1.ConfigMapEnvSource: - 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. - example: - name: name - optional: true - properties: - name: - description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names' - type: string - optional: - description: Specify whether the ConfigMap must be defined - type: boolean - type: object - v1.ConfigMapKeySelector: - description: Selects a key from a ConfigMap. + v1.LimitRangeItem: + description: LimitRangeItem defines a min/max usage limit for any resource that + matches on kind. example: - name: name - optional: true - key: key + default: {} + min: {} + max: {} + maxLimitRequestRatio: {} + type: type + defaultRequest: {} properties: - key: - description: The key to select. - type: string - name: - description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names' + default: + additionalProperties: + $ref: '#/components/schemas/resource.Quantity' + description: Default resource requirement limit value by resource name if + resource limit is omitted. + type: object + defaultRequest: + additionalProperties: + $ref: '#/components/schemas/resource.Quantity' + description: DefaultRequest is the default resource requirement request + value by resource name if resource request is omitted. + type: object + max: + additionalProperties: + $ref: '#/components/schemas/resource.Quantity' + description: Max usage constraints on this kind by resource name. + type: object + maxLimitRequestRatio: + additionalProperties: + $ref: '#/components/schemas/resource.Quantity' + description: 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. + type: object + min: + additionalProperties: + $ref: '#/components/schemas/resource.Quantity' + description: Min usage constraints on this kind by resource name. + type: object + type: + description: Type of resource that this limit applies to. type: string - optional: - description: Specify whether the ConfigMap or its key must be defined - type: boolean required: - - key + - type type: object - x-kubernetes-map-type: atomic - v1.ConfigMapList: - description: ConfigMapList is a resource containing a list of ConfigMap objects. + v1.LimitRangeList: + description: LimitRangeList is a list of LimitRange items. example: metadata: remainingItemCount: 1 @@ -154568,8 +188206,7 @@ components: apiVersion: apiVersion kind: kind items: - - immutable: true - metadata: + - metadata: generation: 6 finalizers: - finalizers @@ -154616,13 +188253,22 @@ components: name: name namespace: namespace apiVersion: apiVersion - data: - key: data - binaryData: - key: binaryData kind: kind - - immutable: true - metadata: + spec: + limits: + - default: {} + min: {} + max: {} + maxLimitRequestRatio: {} + type: type + defaultRequest: {} + - default: {} + min: {} + max: {} + maxLimitRequestRatio: {} + type: type + defaultRequest: {} + - metadata: generation: 6 finalizers: - finalizers @@ -154669,11 +188315,21 @@ components: name: name namespace: namespace apiVersion: apiVersion - data: - key: data - binaryData: - key: binaryData kind: kind + spec: + limits: + - default: {} + min: {} + max: {} + maxLimitRequestRatio: {} + type: type + defaultRequest: {} + - default: {} + min: {} + max: {} + maxLimitRequestRatio: {} + type: type + defaultRequest: {} properties: apiVersion: description: 'APIVersion defines the versioned schema of this representation @@ -154681,9 +188337,9 @@ components: internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources' type: string items: - description: Items is the list of ConfigMaps. + description: 'Items is a list of LimitRange objects. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/' items: - $ref: '#/components/schemas/v1.ConfigMap' + $ref: '#/components/schemas/v1.LimitRange' type: array kind: description: 'Kind is a string value representing the REST resource this @@ -154697,1160 +188353,565 @@ components: type: object x-kubernetes-group-version-kind: - group: "" - kind: ConfigMapList + kind: LimitRangeList version: v1 x-implements: - io.kubernetes.client.common.KubernetesListObject - v1.ConfigMapNodeConfigSource: - 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' - example: - uid: uid - kubeletConfigKey: kubeletConfigKey - resourceVersion: resourceVersion - name: name - namespace: namespace - properties: - kubeletConfigKey: - description: KubeletConfigKey declares which key of the referenced ConfigMap - corresponds to the KubeletConfiguration structure This field is required - in all cases. - type: string - name: - description: Name is the metadata.name of the referenced ConfigMap. This - field is required in all cases. - type: string - namespace: - description: Namespace is the metadata.namespace of the referenced ConfigMap. - This field is required in all cases. - type: string - resourceVersion: - description: ResourceVersion is the metadata.ResourceVersion of the referenced - ConfigMap. This field is forbidden in Node.Spec, and required in Node.Status. - type: string - uid: - description: UID is the metadata.UID of the referenced ConfigMap. This field - is forbidden in Node.Spec, and required in Node.Status. - type: string - required: - - kubeletConfigKey - - name - - namespace - type: object - v1.ConfigMapProjection: - 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. - example: - name: name - optional: true - items: - - mode: 6 - path: path - key: key - - mode: 6 - path: path - key: key - properties: - items: - description: 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 '..'. - items: - $ref: '#/components/schemas/v1.KeyToPath' - type: array - name: - description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names' - type: string - optional: - description: optional specify whether the ConfigMap or its keys must be - defined - type: boolean - type: object - v1.ConfigMapVolumeSource: - 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. - example: - defaultMode: 9 - name: name - optional: true - items: - - mode: 6 - path: path - key: key - - mode: 6 - path: path - key: key - properties: - defaultMode: - description: '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.' - format: int32 - type: integer - items: - description: 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 '..'. - items: - $ref: '#/components/schemas/v1.KeyToPath' - type: array - name: - description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names' - type: string - optional: - description: optional specify whether the ConfigMap or its keys must be - defined - type: boolean - type: object - v1.Container: - description: A single application container that you want to run within a pod. + v1.LimitRangeSpec: + description: LimitRangeSpec defines a min/max usage limit for resources that + match on kind. example: - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name - image: image - imagePullPolicy: imagePullPolicy - livenessProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - stdin: true - terminationMessagePolicy: terminationMessagePolicy - terminationMessagePath: terminationMessagePath - workingDir: workingDir - resources: - claims: - - name: name - - name: name - requests: {} - limits: {} - securityContext: - privileged: true - runAsUser: 1 - capabilities: - add: - - add - - add - drop: - - drop - - drop - seLinuxOptions: - role: role - level: level - type: type - user: user - seccompProfile: - localhostProfile: localhostProfile - type: type - windowsOptions: - gmsaCredentialSpec: gmsaCredentialSpec - runAsUserName: runAsUserName - hostProcess: true - gmsaCredentialSpecName: gmsaCredentialSpecName - procMount: procMount - allowPrivilegeEscalation: true - runAsGroup: 1 - runAsNonRoot: true - readOnlyRootFilesystem: true - startupProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - env: - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - ports: - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 4 - hostPort: 7 - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 4 - hostPort: 7 - restartPolicy: restartPolicy - command: - - command - - command - volumeMounts: - - mountPath: mountPath - mountPropagation: mountPropagation - name: name - readOnly: true - subPath: subPath - subPathExpr: subPathExpr - - mountPath: mountPath - mountPropagation: mountPropagation - name: name - readOnly: true - subPath: subPath - subPathExpr: subPathExpr - args: - - args - - args - lifecycle: - postStart: - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - preStop: - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - name: name - tty: true - readinessProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - resizePolicy: - - resourceName: resourceName - restartPolicy: restartPolicy - - resourceName: resourceName - restartPolicy: restartPolicy - stdinOnce: true - envFrom: - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true + limits: + - default: {} + min: {} + max: {} + maxLimitRequestRatio: {} + type: type + defaultRequest: {} + - default: {} + min: {} + max: {} + maxLimitRequestRatio: {} + type: type + defaultRequest: {} properties: - args: - description: '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' - items: - type: string - type: array - command: - description: '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' - items: - type: string - type: array - env: - description: List of environment variables to set in the container. Cannot - be updated. - items: - $ref: '#/components/schemas/v1.EnvVar' - type: array - x-kubernetes-patch-strategy: merge - x-kubernetes-patch-merge-key: name - envFrom: - description: 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. - items: - $ref: '#/components/schemas/v1.EnvFromSource' - type: array - image: - description: '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.' - type: string - imagePullPolicy: - description: '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' - type: string - lifecycle: - $ref: '#/components/schemas/v1.Lifecycle' - livenessProbe: - $ref: '#/components/schemas/v1.Probe' - name: - description: Name of the container specified as a DNS_LABEL. Each container - in a pod must have a unique name (DNS_LABEL). Cannot be updated. - type: string - ports: - description: 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. - items: - $ref: '#/components/schemas/v1.ContainerPort' - type: array - x-kubernetes-patch-strategy: merge - x-kubernetes-list-type: map - x-kubernetes-list-map-keys: - - containerPort - - protocol - x-kubernetes-patch-merge-key: containerPort - readinessProbe: - $ref: '#/components/schemas/v1.Probe' - resizePolicy: - description: Resources resize policy for the container. + limits: + description: Limits is the list of LimitRangeItem objects that are enforced. items: - $ref: '#/components/schemas/v1.ContainerResizePolicy' + $ref: '#/components/schemas/v1.LimitRangeItem' type: array x-kubernetes-list-type: atomic - resources: - $ref: '#/components/schemas/v1.ResourceRequirements' - restartPolicy: - description: '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.' - type: string - securityContext: - $ref: '#/components/schemas/v1.SecurityContext' - startupProbe: - $ref: '#/components/schemas/v1.Probe' - stdin: - description: 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. - type: boolean - stdinOnce: - description: 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 - type: boolean - terminationMessagePath: - description: '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.' - type: string - terminationMessagePolicy: - description: 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. - type: string - tty: - description: Whether this container should allocate a TTY for itself, also - requires 'stdin' to be true. Default is false. - type: boolean - volumeDevices: - description: volumeDevices is the list of block devices to be used by the - container. - items: - $ref: '#/components/schemas/v1.VolumeDevice' - type: array - x-kubernetes-patch-strategy: merge - x-kubernetes-patch-merge-key: devicePath - volumeMounts: - description: Pod volumes to mount into the container's filesystem. Cannot - be updated. - items: - $ref: '#/components/schemas/v1.VolumeMount' - type: array - x-kubernetes-patch-strategy: merge - x-kubernetes-patch-merge-key: mountPath - workingDir: - description: 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. - type: string required: - - name + - limits type: object - v1.ContainerImage: - description: Describe a container image + v1.LinuxContainerUser: + description: LinuxContainerUser represents user identity information in Linux + containers example: - names: - - names - - names - sizeBytes: 6 + uid: 4 + gid: 6 + supplementalGroups: + - 0 + - 0 properties: - names: - description: 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"] + gid: + description: GID is the primary gid initially attached to the first process + in the container + format: int64 + type: integer + supplementalGroups: + description: SupplementalGroups are the supplemental groups initially attached + to the first process in the container items: - type: string + format: int64 + type: integer type: array - sizeBytes: - description: The size of the image in bytes. + x-kubernetes-list-type: atomic + uid: + description: UID is the primary uid initially attached to the first process + in the container format: int64 type: integer - type: object - v1.ContainerPort: - description: ContainerPort represents a network port in a single container. - example: - protocol: protocol - hostIP: hostIP - name: name - containerPort: 4 - hostPort: 7 - properties: - containerPort: - description: Number of port to expose on the pod's IP address. This must - be a valid port number, 0 < x < 65536. - format: int32 - type: integer - hostIP: - description: What host IP to bind the external port to. - type: string - hostPort: - description: 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. - format: int32 - type: integer - name: - description: 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. - type: string - protocol: - description: Protocol for port. Must be UDP, TCP, or SCTP. Defaults to "TCP". - type: string - required: - - containerPort - type: object - v1.ContainerResizePolicy: - description: ContainerResizePolicy represents resource resize policy for the - container. - example: - resourceName: resourceName - restartPolicy: restartPolicy - properties: - resourceName: - description: 'Name of the resource to which this resource resize policy - applies. Supported values: cpu, memory.' - type: string - restartPolicy: - description: Restart policy to apply when specified resource is resized. - If not specified, it defaults to NotRequired. - type: string - required: - - resourceName - - restartPolicy - type: object - v1.ContainerState: - 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. - example: - running: - startedAt: 2000-01-23T04:56:07.000+00:00 - waiting: - reason: reason - message: message - terminated: - reason: reason - exitCode: 3 - startedAt: 2000-01-23T04:56:07.000+00:00 - containerID: containerID - message: message - signal: 3 - finishedAt: 2000-01-23T04:56:07.000+00:00 - properties: - running: - $ref: '#/components/schemas/v1.ContainerStateRunning' - terminated: - $ref: '#/components/schemas/v1.ContainerStateTerminated' - waiting: - $ref: '#/components/schemas/v1.ContainerStateWaiting' - type: object - v1.ContainerStateRunning: - description: ContainerStateRunning is a running state of a container. - example: - startedAt: 2000-01-23T04:56:07.000+00:00 - properties: - startedAt: - description: Time at which the container was last (re-)started - format: date-time - type: string - type: object - v1.ContainerStateTerminated: - description: ContainerStateTerminated is a terminated state of a container. - example: - reason: reason - exitCode: 3 - startedAt: 2000-01-23T04:56:07.000+00:00 - containerID: containerID - message: message - signal: 3 - finishedAt: 2000-01-23T04:56:07.000+00:00 - properties: - containerID: - description: Container's ID in the format '://' - type: string - exitCode: - description: Exit status from the last termination of the container - format: int32 - type: integer - finishedAt: - description: Time at which the container last terminated - format: date-time - type: string - message: - description: Message regarding the last termination of the container - type: string - reason: - description: (brief) reason from the last termination of the container - type: string - signal: - description: Signal from the last termination of the container - format: int32 - type: integer - startedAt: - description: Time at which previous execution of the container started - format: date-time - type: string - required: - - exitCode - type: object - v1.ContainerStateWaiting: - description: ContainerStateWaiting is a waiting state of a container. - example: - reason: reason - message: message - properties: - message: - description: Message regarding why the container is not yet running. - type: string - reason: - description: (brief) reason the container is not yet running. - type: string - type: object - v1.ContainerStatus: - description: ContainerStatus contains details for the current status of this - container. - example: - allocatedResources: {} - image: image - imageID: imageID - restartCount: 7 - ready: true - name: name - resources: - claims: - - name: name - - name: name - requests: {} - limits: {} - started: true - state: - running: - startedAt: 2000-01-23T04:56:07.000+00:00 - waiting: - reason: reason - message: message - terminated: - reason: reason - exitCode: 3 - startedAt: 2000-01-23T04:56:07.000+00:00 - containerID: containerID - message: message - signal: 3 - finishedAt: 2000-01-23T04:56:07.000+00:00 - containerID: containerID - lastState: - running: - startedAt: 2000-01-23T04:56:07.000+00:00 - waiting: - reason: reason - message: message - terminated: - reason: reason - exitCode: 3 - startedAt: 2000-01-23T04:56:07.000+00:00 - containerID: containerID - message: message - signal: 3 - finishedAt: 2000-01-23T04:56:07.000+00:00 - properties: - allocatedResources: - additionalProperties: - $ref: '#/components/schemas/resource.Quantity' - description: 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. - type: object - containerID: - description: 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"). - type: string - image: - description: '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.' - type: string - imageID: - description: 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. - type: string - lastState: - $ref: '#/components/schemas/v1.ContainerState' - name: - description: 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. - type: string - ready: - description: |- - 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. - type: boolean - resources: - $ref: '#/components/schemas/v1.ResourceRequirements' - restartCount: - description: 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. - format: int32 - type: integer - started: - description: 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. - type: boolean - state: - $ref: '#/components/schemas/v1.ContainerState' required: - - image - - imageID - - name - - ready - - restartCount + - gid + - uid type: object - v1.DaemonEndpoint: - description: DaemonEndpoint contains information about a single Daemon endpoint. + v1.LoadBalancerIngress: + description: 'LoadBalancerIngress represents the status of a load-balancer ingress + point: traffic intended for the service should be sent to an ingress point.' example: - Port: 0 + ipMode: ipMode + hostname: hostname + ip: ip + ports: + - protocol: protocol + port: 2 + error: error + - protocol: protocol + port: 2 + error: error properties: - Port: - description: Port number of the given endpoint. - format: int32 - type: integer - required: - - Port + hostname: + description: Hostname is set for load-balancer ingress points that are DNS + based (typically AWS load-balancers) + type: string + ip: + description: IP is set for load-balancer ingress points that are IP based + (typically GCE or OpenStack load-balancers) + type: string + ipMode: + description: 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. + type: string + ports: + description: Ports is a list of records of service ports If used, every + port defined in the service should have an entry in it + items: + $ref: '#/components/schemas/v1.PortStatus' + type: array + x-kubernetes-list-type: atomic type: object - v1.DownwardAPIProjection: - 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. + v1.LoadBalancerStatus: + description: LoadBalancerStatus represents the status of a load-balancer. example: - items: - - mode: 6 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - mode: 6 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath + ingress: + - ipMode: ipMode + hostname: hostname + ip: ip + ports: + - protocol: protocol + port: 2 + error: error + - protocol: protocol + port: 2 + error: error + - ipMode: ipMode + hostname: hostname + ip: ip + ports: + - protocol: protocol + port: 2 + error: error + - protocol: protocol + port: 2 + error: error properties: - items: - description: Items is a list of DownwardAPIVolume file + ingress: + description: Ingress is a list containing ingress points for the load-balancer. + Traffic intended for the service should be sent to these ingress points. items: - $ref: '#/components/schemas/v1.DownwardAPIVolumeFile' + $ref: '#/components/schemas/v1.LoadBalancerIngress' type: array + x-kubernetes-list-type: atomic type: object - v1.DownwardAPIVolumeFile: - description: DownwardAPIVolumeFile represents information to create the file - containing the pod field + v1.LocalObjectReference: + description: LocalObjectReference contains enough information to let you locate + the referenced object inside the same namespace. + example: + name: name + properties: + name: + description: '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' + type: string + type: object + x-kubernetes-map-type: atomic + v1.LocalVolumeSource: + description: Local represents directly-attached storage with node affinity example: - mode: 6 path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath + fsType: fsType properties: - fieldRef: - $ref: '#/components/schemas/v1.ObjectFieldSelector' - mode: - description: '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.' - format: int32 - type: integer + fsType: + description: 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. + type: string path: - description: '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 ''..''' + description: path of the full path to the volume on the node. It can be + either a directory or block device (disk, partition, ...). type: string - resourceFieldRef: - $ref: '#/components/schemas/v1.ResourceFieldSelector' required: - path type: object - v1.DownwardAPIVolumeSource: - description: DownwardAPIVolumeSource represents a volume containing downward - API info. Downward API volumes support ownership management and SELinux relabeling. + v1.ModifyVolumeStatus: + description: ModifyVolumeStatus represents the status object of ControllerModifyVolume + operation example: - defaultMode: 3 - items: - - mode: 6 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - mode: 6 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath + targetVolumeAttributesClassName: targetVolumeAttributesClassName + status: status properties: - defaultMode: - description: '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.' - format: int32 - type: integer - items: - description: Items is a list of downward API volume file - items: - $ref: '#/components/schemas/v1.DownwardAPIVolumeFile' - type: array + status: + description: "status is the status of the ControllerModifyVolume operation.\ + \ It can be in any of following states:\n - Pending\n Pending indicates\ + \ that the PersistentVolumeClaim cannot be modified due to unmet requirements,\ + \ such as\n the specified VolumeAttributesClass not existing.\n - InProgress\n\ + \ InProgress indicates that the volume is being modified.\n - Infeasible\n\ + \ Infeasible indicates that the request has been rejected as invalid\ + \ by the CSI driver. To\n\t resolve the error, a valid VolumeAttributesClass\ + \ needs to be specified.\nNote: New statuses can be added in the future.\ + \ Consumers should check for unknown statuses and fail appropriately." + type: string + targetVolumeAttributesClassName: + description: targetVolumeAttributesClassName is the name of the VolumeAttributesClass + the PVC currently being reconciled + type: string + required: + - status type: object - v1.EmptyDirVolumeSource: - description: Represents an empty directory for a pod. Empty directory volumes - support ownership management and SELinux relabeling. + v1.NFSVolumeSource: + description: Represents an NFS mount that lasts the lifetime of a pod. NFS volumes + do not support ownership management or SELinux relabeling. example: - sizeLimit: sizeLimit - medium: medium + path: path + server: server + readOnly: true properties: - medium: - description: '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' + path: + description: 'path that is exported by the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs' type: string - sizeLimit: - description: "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.\n\nThe serialization format is:\n\n\ - ``` ::= \n\n\t(Note that \ - \ may be empty, from the \"\" case in .)\n\n \ - \ ::= 0 | 1 | ... | 9 ::= | \ - \ ::= | . | . | .\ - \ ::= \"+\" | \"-\" ::= |\ - \ ::= | \ - \ | ::= Ki | Mi | Gi | Ti | Pi | Ei\n\n\t\ - (International System of units; See: http://physics.nist.gov/cuu/Units/binary.html)\n\ - \n ::= m | \"\" | k | M | G | T | P | E\n\n\t(Note that\ - \ 1024 = 1Ki but 1000 = 1k; I didn't choose the capitalization.)\n\n\ - \ ::= \"e\" | \"E\" ```\n\nNo 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.\n\nWhen 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.\n\nBefore 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:\n\n- No precision is lost - No fractional digits\ - \ will be emitted - The exponent (or suffix) is as large as possible.\n\ - \nThe sign will be omitted unless the number is negative.\n\nExamples:\n\ - \n- 1.5 will be serialized as \"1500m\" - 1.5Gi will be serialized as\ - \ \"1536Mi\"\n\nNote that the quantity will NEVER be internally represented\ - \ by a floating point number. That is the whole point of this exercise.\n\ - \nNon-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.)\n\nThis 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." - format: quantity + readOnly: + description: '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' + type: boolean + server: + description: 'server is the hostname or IP address of the NFS server. More + info: https://kubernetes.io/docs/concepts/storage/volumes#nfs' type: string + required: + - path + - server type: object - v1.EndpointAddress: - description: EndpointAddress is a tuple that describes single IP address. + v1.Namespace: + description: Namespace provides a scope for Names. Use of multiple namespaces + is optional. example: - nodeName: nodeName - targetRef: - uid: uid - apiVersion: apiVersion - kind: kind + metadata: + generation: 6 + finalizers: + - finalizers + - finalizers resourceVersion: resourceVersion - fieldPath: fieldPath + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: '{}' + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: '{}' + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + creationTimestamp: 2000-01-23T04:56:07.000+00:00 name: name namespace: namespace - hostname: hostname - ip: ip + apiVersion: apiVersion + kind: kind + spec: + finalizers: + - finalizers + - finalizers + status: + phase: phase + conditions: + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + status: status + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + status: status properties: - hostname: - description: The Hostname of this endpoint - type: string - ip: - description: 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). + apiVersion: + description: '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' type: string - nodeName: - description: 'Optional: Node hosting this endpoint. This can be used to - determine endpoints local to a node.' + kind: + description: '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' type: string - targetRef: - $ref: '#/components/schemas/v1.ObjectReference' - required: - - ip + metadata: + $ref: '#/components/schemas/v1.ObjectMeta' + spec: + $ref: '#/components/schemas/v1.NamespaceSpec' + status: + $ref: '#/components/schemas/v1.NamespaceStatus' type: object - x-kubernetes-map-type: atomic - core.v1.EndpointPort: - description: EndpointPort is a tuple that describes a single port. + x-kubernetes-group-version-kind: + - group: "" + kind: Namespace + version: v1 + x-implements: + - io.kubernetes.client.common.KubernetesObject + v1.NamespaceCondition: + description: NamespaceCondition contains details about state of namespace. example: - protocol: protocol - port: 0 - appProtocol: appProtocol - name: name + reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + status: status properties: - appProtocol: - description: |- - 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 over cleartext as described in https://www.rfc-editor.org/rfc/rfc7540 - * '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. + lastTransitionTime: + description: Last time the condition transitioned from one status to another. + format: date-time type: string - name: - description: 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. + message: + description: Human-readable message indicating details about last transition. type: string - port: - description: The port number of the endpoint. - format: int32 - type: integer - protocol: - description: The IP protocol for this port. Must be UDP, TCP, or SCTP. Default - is TCP. + reason: + description: Unique, one-word, CamelCase reason for the condition's last + transition. + type: string + status: + description: Status of the condition, one of True, False, Unknown. + type: string + type: + description: Type of namespace controller condition. type: string required: - - port + - status + - type type: object - x-kubernetes-map-type: atomic - v1.EndpointSubset: - 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:\n\n\t{\n\t Addresses: [{\"ip\": \"10.10.1.1\"}, {\"\ - ip\": \"10.10.2.2\"}],\n\t Ports: [{\"name\": \"a\", \"port\": 8675},\ - \ {\"name\": \"b\", \"port\": 309}]\n\t}\n\nThe resulting set of endpoints\ - \ can be viewed as:\n\n\ta: [ 10.10.1.1:8675, 10.10.2.2:8675 ],\n\tb: [ 10.10.1.1:309,\ - \ 10.10.2.2:309 ]" + v1.NamespaceList: + description: NamespaceList is a list of Namespaces. example: - notReadyAddresses: - - nodeName: nodeName - targetRef: - uid: uid - apiVersion: apiVersion - kind: kind + metadata: + remainingItemCount: 1 + continue: continue + resourceVersion: resourceVersion + selfLink: selfLink + apiVersion: apiVersion + kind: kind + items: + - metadata: + generation: 6 + finalizers: + - finalizers + - finalizers resourceVersion: resourceVersion - fieldPath: fieldPath - name: name - namespace: namespace - hostname: hostname - ip: ip - - nodeName: nodeName - targetRef: + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 uid: uid - apiVersion: apiVersion - kind: kind - resourceVersion: resourceVersion - fieldPath: fieldPath + managedFields: + - apiVersion: apiVersion + fieldsV1: '{}' + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: '{}' + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + creationTimestamp: 2000-01-23T04:56:07.000+00:00 name: name namespace: namespace - hostname: hostname - ip: ip - addresses: - - nodeName: nodeName - targetRef: - uid: uid - apiVersion: apiVersion - kind: kind + apiVersion: apiVersion + kind: kind + spec: + finalizers: + - finalizers + - finalizers + status: + phase: phase + conditions: + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + status: status + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + status: status + - metadata: + generation: 6 + finalizers: + - finalizers + - finalizers resourceVersion: resourceVersion - fieldPath: fieldPath - name: name - namespace: namespace - hostname: hostname - ip: ip - - nodeName: nodeName - targetRef: + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 uid: uid - apiVersion: apiVersion - kind: kind - resourceVersion: resourceVersion - fieldPath: fieldPath + managedFields: + - apiVersion: apiVersion + fieldsV1: '{}' + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: '{}' + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + creationTimestamp: 2000-01-23T04:56:07.000+00:00 name: name namespace: namespace - hostname: hostname - ip: ip - ports: - - protocol: protocol - port: 0 - appProtocol: appProtocol - name: name - - protocol: protocol - port: 0 - appProtocol: appProtocol - name: name + apiVersion: apiVersion + kind: kind + spec: + finalizers: + - finalizers + - finalizers + status: + phase: phase + conditions: + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + status: status + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + status: status properties: - addresses: - description: 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. + apiVersion: + description: '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' + type: string + items: + description: 'Items is the list of Namespace objects in the list. More info: + https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/' items: - $ref: '#/components/schemas/v1.EndpointAddress' + $ref: '#/components/schemas/v1.Namespace' type: array - notReadyAddresses: - description: 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. + kind: + description: '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' + type: string + metadata: + $ref: '#/components/schemas/v1.ListMeta' + required: + - items + type: object + x-kubernetes-group-version-kind: + - group: "" + kind: NamespaceList + version: v1 + x-implements: + - io.kubernetes.client.common.KubernetesListObject + v1.NamespaceSpec: + description: NamespaceSpec describes the attributes on a Namespace. + example: + finalizers: + - finalizers + - finalizers + properties: + finalizers: + description: '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/' items: - $ref: '#/components/schemas/v1.EndpointAddress' + type: string type: array - ports: - description: Port numbers available on the related IP addresses. + x-kubernetes-list-type: atomic + type: object + v1.NamespaceStatus: + description: NamespaceStatus is information about the current status of a Namespace. + example: + phase: phase + conditions: + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + status: status + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + status: status + properties: + conditions: + description: Represents the latest available observations of a namespace's + current state. items: - $ref: '#/components/schemas/core.v1.EndpointPort' + $ref: '#/components/schemas/v1.NamespaceCondition' type: array + x-kubernetes-patch-strategy: merge + x-kubernetes-list-type: map + x-kubernetes-list-map-keys: + - type + x-kubernetes-patch-merge-key: type + phase: + description: 'Phase is the current lifecycle phase of the namespace. More + info: https://kubernetes.io/docs/tasks/administer-cluster/namespaces/' + type: string type: object - v1.Endpoints: - description: "Endpoints is a collection of endpoints that implement the actual\ - \ service. Example:\n\n\t Name: \"mysvc\",\n\t Subsets: [\n\t {\n\t \ - \ Addresses: [{\"ip\": \"10.10.1.1\"}, {\"ip\": \"10.10.2.2\"}],\n\t Ports:\ - \ [{\"name\": \"a\", \"port\": 8675}, {\"name\": \"b\", \"port\": 309}]\n\t\ - \ },\n\t {\n\t Addresses: [{\"ip\": \"10.10.3.3\"}],\n\t Ports:\ - \ [{\"name\": \"a\", \"port\": 93}, {\"name\": \"b\", \"port\": 76}]\n\t \ - \ },\n\t]" + v1.Node: + description: Node is a worker node in Kubernetes. Each node will have a unique + identifier in the cache (i.e. in etcd). example: metadata: generation: 6 @@ -155900,150 +188961,399 @@ components: namespace: namespace apiVersion: apiVersion kind: kind - subsets: - - notReadyAddresses: - - nodeName: nodeName - targetRef: - uid: uid - apiVersion: apiVersion - kind: kind - resourceVersion: resourceVersion - fieldPath: fieldPath - name: name - namespace: namespace - hostname: hostname - ip: ip - - nodeName: nodeName - targetRef: + spec: + podCIDRs: + - podCIDRs + - podCIDRs + providerID: providerID + externalID: externalID + taints: + - timeAdded: 2000-01-23T04:56:07.000+00:00 + effect: effect + value: value + key: key + - timeAdded: 2000-01-23T04:56:07.000+00:00 + effect: effect + value: value + key: key + configSource: + configMap: uid: uid - apiVersion: apiVersion - kind: kind + kubeletConfigKey: kubeletConfigKey resourceVersion: resourceVersion - fieldPath: fieldPath name: name namespace: namespace - hostname: hostname - ip: ip + unschedulable: true + podCIDR: podCIDR + status: + daemonEndpoints: + kubeletEndpoint: + Port: 0 + phase: phase + allocatable: {} addresses: - - nodeName: nodeName - targetRef: - uid: uid - apiVersion: apiVersion - kind: kind - resourceVersion: resourceVersion - fieldPath: fieldPath - name: name - namespace: namespace - hostname: hostname - ip: ip - - nodeName: nodeName - targetRef: - uid: uid - apiVersion: apiVersion - kind: kind - resourceVersion: resourceVersion - fieldPath: fieldPath - name: name - namespace: namespace - hostname: hostname - ip: ip - ports: - - protocol: protocol - port: 0 - appProtocol: appProtocol + - address: address + type: type + - address: address + type: type + images: + - names: + - names + - names + sizeBytes: 6 + - names: + - names + - names + sizeBytes: 6 + runtimeHandlers: + - features: + userNamespaces: true + recursiveReadOnlyMounts: true name: name - - protocol: protocol - port: 0 - appProtocol: appProtocol + - features: + userNamespaces: true + recursiveReadOnlyMounts: true name: name - - notReadyAddresses: - - nodeName: nodeName - targetRef: - uid: uid - apiVersion: apiVersion - kind: kind - resourceVersion: resourceVersion - fieldPath: fieldPath - name: name - namespace: namespace - hostname: hostname - ip: ip - - nodeName: nodeName - targetRef: - uid: uid - apiVersion: apiVersion - kind: kind - resourceVersion: resourceVersion - fieldPath: fieldPath - name: name - namespace: namespace - hostname: hostname - ip: ip - addresses: - - nodeName: nodeName - targetRef: - uid: uid - apiVersion: apiVersion - kind: kind - resourceVersion: resourceVersion - fieldPath: fieldPath - name: name - namespace: namespace - hostname: hostname - ip: ip - - nodeName: nodeName - targetRef: - uid: uid - apiVersion: apiVersion - kind: kind - resourceVersion: resourceVersion - fieldPath: fieldPath - name: name - namespace: namespace - hostname: hostname - ip: ip - ports: - - protocol: protocol - port: 0 - appProtocol: appProtocol + volumesAttached: + - devicePath: devicePath + name: name + - devicePath: devicePath + name: name + capacity: {} + features: + supplementalGroupsPolicy: true + volumesInUse: + - volumesInUse + - volumesInUse + nodeInfo: + machineID: machineID + swap: + capacity: 1 + bootID: bootID + containerRuntimeVersion: containerRuntimeVersion + kernelVersion: kernelVersion + kubeletVersion: kubeletVersion + systemUUID: systemUUID + kubeProxyVersion: kubeProxyVersion + operatingSystem: operatingSystem + architecture: architecture + osImage: osImage + conditions: + - reason: reason + lastHeartbeatTime: 2000-01-23T04:56:07.000+00:00 + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + status: status + - reason: reason + lastHeartbeatTime: 2000-01-23T04:56:07.000+00:00 + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + status: status + config: + lastKnownGood: + configMap: + uid: uid + kubeletConfigKey: kubeletConfigKey + resourceVersion: resourceVersion + name: name + namespace: namespace + active: + configMap: + uid: uid + kubeletConfigKey: kubeletConfigKey + resourceVersion: resourceVersion + name: name + namespace: namespace + assigned: + configMap: + uid: uid + kubeletConfigKey: kubeletConfigKey + resourceVersion: resourceVersion + name: name + namespace: namespace + error: error + properties: + apiVersion: + description: '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' + type: string + kind: + description: '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' + type: string + metadata: + $ref: '#/components/schemas/v1.ObjectMeta' + spec: + $ref: '#/components/schemas/v1.NodeSpec' + status: + $ref: '#/components/schemas/v1.NodeStatus' + type: object + x-kubernetes-group-version-kind: + - group: "" + kind: Node + version: v1 + x-implements: + - io.kubernetes.client.common.KubernetesObject + v1.NodeAddress: + description: NodeAddress contains information for the node's address. + example: + address: address + type: type + properties: + address: + description: The node address. + type: string + type: + description: Node address type, one of Hostname, ExternalIP or InternalIP. + type: string + required: + - address + - type + type: object + v1.NodeAffinity: + description: Node affinity is a group of node affinity scheduling rules. + example: + requiredDuringSchedulingIgnoredDuringExecution: + nodeSelectorTerms: + - matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchFields: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + - matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchFields: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + preferredDuringSchedulingIgnoredDuringExecution: + - preference: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchFields: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + weight: 6 + - preference: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchFields: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + weight: 6 + properties: + preferredDuringSchedulingIgnoredDuringExecution: + description: 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. + items: + $ref: '#/components/schemas/v1.PreferredSchedulingTerm' + type: array + x-kubernetes-list-type: atomic + requiredDuringSchedulingIgnoredDuringExecution: + $ref: '#/components/schemas/v1.NodeSelector' + type: object + v1.NodeCondition: + description: NodeCondition contains condition information for a node. + example: + reason: reason + lastHeartbeatTime: 2000-01-23T04:56:07.000+00:00 + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + status: status + properties: + lastHeartbeatTime: + description: Last time we got an update on a given condition. + format: date-time + type: string + lastTransitionTime: + description: Last time the condition transit from one status to another. + format: date-time + type: string + message: + description: Human readable message indicating details about last transition. + type: string + reason: + description: (brief) reason for the condition's last transition. + type: string + status: + description: Status of the condition, one of True, False, Unknown. + type: string + type: + description: Type of node condition. + type: string + required: + - status + - type + type: object + v1.NodeConfigSource: + description: NodeConfigSource specifies a source of node configuration. Exactly + one subfield (excluding metadata) must be non-nil. This API is deprecated + since 1.22 + example: + configMap: + uid: uid + kubeletConfigKey: kubeletConfigKey + resourceVersion: resourceVersion + name: name + namespace: namespace + properties: + configMap: + $ref: '#/components/schemas/v1.ConfigMapNodeConfigSource' + type: object + v1.NodeConfigStatus: + description: NodeConfigStatus describes the status of the config assigned by + Node.Spec.ConfigSource. + example: + lastKnownGood: + configMap: + uid: uid + kubeletConfigKey: kubeletConfigKey + resourceVersion: resourceVersion name: name - - protocol: protocol - port: 0 - appProtocol: appProtocol + namespace: namespace + active: + configMap: + uid: uid + kubeletConfigKey: kubeletConfigKey + resourceVersion: resourceVersion + name: name + namespace: namespace + assigned: + configMap: + uid: uid + kubeletConfigKey: kubeletConfigKey + resourceVersion: resourceVersion name: name + namespace: namespace + error: error properties: - apiVersion: - description: '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' - type: string - kind: - description: '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' + active: + $ref: '#/components/schemas/v1.NodeConfigSource' + assigned: + $ref: '#/components/schemas/v1.NodeConfigSource' + error: + description: 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. type: string - metadata: - $ref: '#/components/schemas/v1.ObjectMeta' - subsets: - description: 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. - items: - $ref: '#/components/schemas/v1.EndpointSubset' - type: array + lastKnownGood: + $ref: '#/components/schemas/v1.NodeConfigSource' type: object - x-kubernetes-group-version-kind: - - group: "" - kind: Endpoints - version: v1 - x-implements: - - io.kubernetes.client.common.KubernetesObject - v1.EndpointsList: - description: EndpointsList is a list of endpoints. + v1.NodeDaemonEndpoints: + description: NodeDaemonEndpoints lists ports opened by daemons running on the + Node. + example: + kubeletEndpoint: + Port: 0 + properties: + kubeletEndpoint: + $ref: '#/components/schemas/v1.DaemonEndpoint' + type: object + v1.NodeFeatures: + 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. + example: + supplementalGroupsPolicy: true + properties: + supplementalGroupsPolicy: + description: SupplementalGroupsPolicy is set to true if the runtime supports + SupplementalGroupsPolicy and ContainerUser. + type: boolean + type: object + v1.NodeList: + description: NodeList is the whole list of all Nodes which have been registered + with master. example: metadata: remainingItemCount: 1 @@ -156101,117 +189411,119 @@ components: namespace: namespace apiVersion: apiVersion kind: kind - subsets: - - notReadyAddresses: - - nodeName: nodeName - targetRef: - uid: uid - apiVersion: apiVersion - kind: kind - resourceVersion: resourceVersion - fieldPath: fieldPath - name: name - namespace: namespace - hostname: hostname - ip: ip - - nodeName: nodeName - targetRef: + spec: + podCIDRs: + - podCIDRs + - podCIDRs + providerID: providerID + externalID: externalID + taints: + - timeAdded: 2000-01-23T04:56:07.000+00:00 + effect: effect + value: value + key: key + - timeAdded: 2000-01-23T04:56:07.000+00:00 + effect: effect + value: value + key: key + configSource: + configMap: uid: uid - apiVersion: apiVersion - kind: kind + kubeletConfigKey: kubeletConfigKey resourceVersion: resourceVersion - fieldPath: fieldPath name: name namespace: namespace - hostname: hostname - ip: ip + unschedulable: true + podCIDR: podCIDR + status: + daemonEndpoints: + kubeletEndpoint: + Port: 0 + phase: phase + allocatable: {} addresses: - - nodeName: nodeName - targetRef: - uid: uid - apiVersion: apiVersion - kind: kind - resourceVersion: resourceVersion - fieldPath: fieldPath - name: name - namespace: namespace - hostname: hostname - ip: ip - - nodeName: nodeName - targetRef: - uid: uid - apiVersion: apiVersion - kind: kind - resourceVersion: resourceVersion - fieldPath: fieldPath - name: name - namespace: namespace - hostname: hostname - ip: ip - ports: - - protocol: protocol - port: 0 - appProtocol: appProtocol + - address: address + type: type + - address: address + type: type + images: + - names: + - names + - names + sizeBytes: 6 + - names: + - names + - names + sizeBytes: 6 + runtimeHandlers: + - features: + userNamespaces: true + recursiveReadOnlyMounts: true name: name - - protocol: protocol - port: 0 - appProtocol: appProtocol + - features: + userNamespaces: true + recursiveReadOnlyMounts: true name: name - - notReadyAddresses: - - nodeName: nodeName - targetRef: - uid: uid - apiVersion: apiVersion - kind: kind - resourceVersion: resourceVersion - fieldPath: fieldPath - name: name - namespace: namespace - hostname: hostname - ip: ip - - nodeName: nodeName - targetRef: - uid: uid - apiVersion: apiVersion - kind: kind - resourceVersion: resourceVersion - fieldPath: fieldPath - name: name - namespace: namespace - hostname: hostname - ip: ip - addresses: - - nodeName: nodeName - targetRef: - uid: uid - apiVersion: apiVersion - kind: kind - resourceVersion: resourceVersion - fieldPath: fieldPath - name: name - namespace: namespace - hostname: hostname - ip: ip - - nodeName: nodeName - targetRef: - uid: uid - apiVersion: apiVersion - kind: kind - resourceVersion: resourceVersion - fieldPath: fieldPath - name: name - namespace: namespace - hostname: hostname - ip: ip - ports: - - protocol: protocol - port: 0 - appProtocol: appProtocol + volumesAttached: + - devicePath: devicePath name: name - - protocol: protocol - port: 0 - appProtocol: appProtocol + - devicePath: devicePath name: name + capacity: {} + features: + supplementalGroupsPolicy: true + volumesInUse: + - volumesInUse + - volumesInUse + nodeInfo: + machineID: machineID + swap: + capacity: 1 + bootID: bootID + containerRuntimeVersion: containerRuntimeVersion + kernelVersion: kernelVersion + kubeletVersion: kubeletVersion + systemUUID: systemUUID + kubeProxyVersion: kubeProxyVersion + operatingSystem: operatingSystem + architecture: architecture + osImage: osImage + conditions: + - reason: reason + lastHeartbeatTime: 2000-01-23T04:56:07.000+00:00 + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + status: status + - reason: reason + lastHeartbeatTime: 2000-01-23T04:56:07.000+00:00 + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + status: status + config: + lastKnownGood: + configMap: + uid: uid + kubeletConfigKey: kubeletConfigKey + resourceVersion: resourceVersion + name: name + namespace: namespace + active: + configMap: + uid: uid + kubeletConfigKey: kubeletConfigKey + resourceVersion: resourceVersion + name: name + namespace: namespace + assigned: + configMap: + uid: uid + kubeletConfigKey: kubeletConfigKey + resourceVersion: resourceVersion + name: name + namespace: namespace + error: error - metadata: generation: 6 finalizers: @@ -156260,117 +189572,119 @@ components: namespace: namespace apiVersion: apiVersion kind: kind - subsets: - - notReadyAddresses: - - nodeName: nodeName - targetRef: - uid: uid - apiVersion: apiVersion - kind: kind - resourceVersion: resourceVersion - fieldPath: fieldPath - name: name - namespace: namespace - hostname: hostname - ip: ip - - nodeName: nodeName - targetRef: + spec: + podCIDRs: + - podCIDRs + - podCIDRs + providerID: providerID + externalID: externalID + taints: + - timeAdded: 2000-01-23T04:56:07.000+00:00 + effect: effect + value: value + key: key + - timeAdded: 2000-01-23T04:56:07.000+00:00 + effect: effect + value: value + key: key + configSource: + configMap: uid: uid - apiVersion: apiVersion - kind: kind + kubeletConfigKey: kubeletConfigKey resourceVersion: resourceVersion - fieldPath: fieldPath name: name namespace: namespace - hostname: hostname - ip: ip + unschedulable: true + podCIDR: podCIDR + status: + daemonEndpoints: + kubeletEndpoint: + Port: 0 + phase: phase + allocatable: {} addresses: - - nodeName: nodeName - targetRef: - uid: uid - apiVersion: apiVersion - kind: kind - resourceVersion: resourceVersion - fieldPath: fieldPath - name: name - namespace: namespace - hostname: hostname - ip: ip - - nodeName: nodeName - targetRef: - uid: uid - apiVersion: apiVersion - kind: kind - resourceVersion: resourceVersion - fieldPath: fieldPath - name: name - namespace: namespace - hostname: hostname - ip: ip - ports: - - protocol: protocol - port: 0 - appProtocol: appProtocol + - address: address + type: type + - address: address + type: type + images: + - names: + - names + - names + sizeBytes: 6 + - names: + - names + - names + sizeBytes: 6 + runtimeHandlers: + - features: + userNamespaces: true + recursiveReadOnlyMounts: true name: name - - protocol: protocol - port: 0 - appProtocol: appProtocol + - features: + userNamespaces: true + recursiveReadOnlyMounts: true name: name - - notReadyAddresses: - - nodeName: nodeName - targetRef: - uid: uid - apiVersion: apiVersion - kind: kind - resourceVersion: resourceVersion - fieldPath: fieldPath - name: name - namespace: namespace - hostname: hostname - ip: ip - - nodeName: nodeName - targetRef: - uid: uid - apiVersion: apiVersion - kind: kind - resourceVersion: resourceVersion - fieldPath: fieldPath - name: name - namespace: namespace - hostname: hostname - ip: ip - addresses: - - nodeName: nodeName - targetRef: - uid: uid - apiVersion: apiVersion - kind: kind - resourceVersion: resourceVersion - fieldPath: fieldPath - name: name - namespace: namespace - hostname: hostname - ip: ip - - nodeName: nodeName - targetRef: - uid: uid - apiVersion: apiVersion - kind: kind - resourceVersion: resourceVersion - fieldPath: fieldPath - name: name - namespace: namespace - hostname: hostname - ip: ip - ports: - - protocol: protocol - port: 0 - appProtocol: appProtocol + volumesAttached: + - devicePath: devicePath name: name - - protocol: protocol - port: 0 - appProtocol: appProtocol + - devicePath: devicePath name: name + capacity: {} + features: + supplementalGroupsPolicy: true + volumesInUse: + - volumesInUse + - volumesInUse + nodeInfo: + machineID: machineID + swap: + capacity: 1 + bootID: bootID + containerRuntimeVersion: containerRuntimeVersion + kernelVersion: kernelVersion + kubeletVersion: kubeletVersion + systemUUID: systemUUID + kubeProxyVersion: kubeProxyVersion + operatingSystem: operatingSystem + architecture: architecture + osImage: osImage + conditions: + - reason: reason + lastHeartbeatTime: 2000-01-23T04:56:07.000+00:00 + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + status: status + - reason: reason + lastHeartbeatTime: 2000-01-23T04:56:07.000+00:00 + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + status: status + config: + lastKnownGood: + configMap: + uid: uid + kubeletConfigKey: kubeletConfigKey + resourceVersion: resourceVersion + name: name + namespace: namespace + active: + configMap: + uid: uid + kubeletConfigKey: kubeletConfigKey + resourceVersion: resourceVersion + name: name + namespace: namespace + assigned: + configMap: + uid: uid + kubeletConfigKey: kubeletConfigKey + resourceVersion: resourceVersion + name: name + namespace: namespace + error: error properties: apiVersion: description: 'APIVersion defines the versioned schema of this representation @@ -156378,9 +189692,9 @@ components: internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources' type: string items: - description: List of endpoints. + description: List of nodes items: - $ref: '#/components/schemas/v1.Endpoints' + $ref: '#/components/schemas/v1.Node' type: array kind: description: 'Kind is a string value representing the REST resource this @@ -156394,615 +189708,866 @@ components: type: object x-kubernetes-group-version-kind: - group: "" - kind: EndpointsList + kind: NodeList version: v1 x-implements: - io.kubernetes.client.common.KubernetesListObject - v1.EnvFromSource: - description: EnvFromSource represents the source of a set of ConfigMaps + v1.NodeRuntimeHandler: + description: NodeRuntimeHandler is a set of runtime handler information. example: - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true + features: + userNamespaces: true + recursiveReadOnlyMounts: true + name: name properties: - configMapRef: - $ref: '#/components/schemas/v1.ConfigMapEnvSource' - prefix: - description: An optional identifier to prepend to each key in the ConfigMap. - Must be a C_IDENTIFIER. + features: + $ref: '#/components/schemas/v1.NodeRuntimeHandlerFeatures' + name: + description: Runtime handler name. Empty for the default runtime handler. type: string - secretRef: - $ref: '#/components/schemas/v1.SecretEnvSource' type: object - v1.EnvVar: - description: EnvVar represents an environment variable present in a Container. + v1.NodeRuntimeHandlerFeatures: + description: NodeRuntimeHandlerFeatures is a set of features implemented by + the runtime handler. example: - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true + userNamespaces: true + recursiveReadOnlyMounts: true + properties: + recursiveReadOnlyMounts: + description: RecursiveReadOnlyMounts is set to true if the runtime handler + supports RecursiveReadOnlyMounts. + type: boolean + userNamespaces: + description: UserNamespaces is set to true if the runtime handler supports + UserNamespaces, including for volumes. + type: boolean + type: object + v1.NodeSelector: + 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. + example: + nodeSelectorTerms: + - matchExpressions: + - values: + - values + - values key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true + operator: operator + - values: + - values + - values key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath + operator: operator + matchFields: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + - matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchFields: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator properties: - name: - description: Name of the environment variable. Must be a C_IDENTIFIER. + nodeSelectorTerms: + description: Required. A list of node selector terms. The terms are ORed. + items: + $ref: '#/components/schemas/v1.NodeSelectorTerm' + type: array + x-kubernetes-list-type: atomic + required: + - nodeSelectorTerms + type: object + x-kubernetes-map-type: atomic + v1.NodeSelectorRequirement: + description: A node selector requirement is a selector that contains values, + a key, and an operator that relates the key and values. + example: + values: + - values + - values + key: key + operator: operator + properties: + key: + description: The label key that the selector applies to. type: string - value: - description: '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 "".' + operator: + description: Represents a key's relationship to a set of values. Valid operators + are In, NotIn, Exists, DoesNotExist. Gt, and Lt. type: string - valueFrom: - $ref: '#/components/schemas/v1.EnvVarSource' + values: + description: 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. + items: + type: string + type: array + x-kubernetes-list-type: atomic required: - - name + - key + - operator type: object - v1.EnvVarSource: - description: EnvVarSource represents a source for the value of an EnvVar. + v1.NodeSelectorTerm: + 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. example: - secretKeyRef: - name: name - optional: true + matchExpressions: + - values: + - values + - values key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true + operator: operator + - values: + - values + - values key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath + operator: operator + matchFields: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator properties: - configMapKeyRef: - $ref: '#/components/schemas/v1.ConfigMapKeySelector' - fieldRef: - $ref: '#/components/schemas/v1.ObjectFieldSelector' - resourceFieldRef: - $ref: '#/components/schemas/v1.ResourceFieldSelector' - secretKeyRef: - $ref: '#/components/schemas/v1.SecretKeySelector' + matchExpressions: + description: A list of node selector requirements by node's labels. + items: + $ref: '#/components/schemas/v1.NodeSelectorRequirement' + type: array + x-kubernetes-list-type: atomic + matchFields: + description: A list of node selector requirements by node's fields. + items: + $ref: '#/components/schemas/v1.NodeSelectorRequirement' + type: array + x-kubernetes-list-type: atomic type: object - v1.EphemeralContainer: - 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. + x-kubernetes-map-type: atomic + v1.NodeSpec: + description: NodeSpec describes the attributes that a node is created with. example: - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name - stdin: true - terminationMessagePolicy: terminationMessagePolicy - securityContext: - privileged: true - runAsUser: 1 - capabilities: - add: - - add - - add - drop: - - drop - - drop - seLinuxOptions: - role: role - level: level - type: type - user: user - seccompProfile: - localhostProfile: localhostProfile - type: type - windowsOptions: - gmsaCredentialSpec: gmsaCredentialSpec - runAsUserName: runAsUserName - hostProcess: true - gmsaCredentialSpecName: gmsaCredentialSpecName - procMount: procMount - allowPrivilegeEscalation: true - runAsGroup: 1 - runAsNonRoot: true - readOnlyRootFilesystem: true - startupProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - ports: - - protocol: protocol - hostIP: hostIP + podCIDRs: + - podCIDRs + - podCIDRs + providerID: providerID + externalID: externalID + taints: + - timeAdded: 2000-01-23T04:56:07.000+00:00 + effect: effect + value: value + key: key + - timeAdded: 2000-01-23T04:56:07.000+00:00 + effect: effect + value: value + key: key + configSource: + configMap: + uid: uid + kubeletConfigKey: kubeletConfigKey + resourceVersion: resourceVersion + name: name + namespace: namespace + unschedulable: true + podCIDR: podCIDR + properties: + configSource: + $ref: '#/components/schemas/v1.NodeConfigSource' + externalID: + description: 'Deprecated. Not all kubelets will set this field. Remove field + after 1.13. see: https://issues.k8s.io/61966' + type: string + podCIDR: + description: PodCIDR represents the pod IP range assigned to the node. + type: string + podCIDRs: + description: 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. + items: + type: string + type: array + x-kubernetes-patch-strategy: merge + x-kubernetes-list-type: set + providerID: + description: 'ID of the node assigned by the cloud provider in the format: + ://' + type: string + taints: + description: If specified, the node's taints. + items: + $ref: '#/components/schemas/v1.Taint' + type: array + x-kubernetes-list-type: atomic + unschedulable: + description: 'Unschedulable controls node schedulability of new pods. By + default, node is schedulable. More info: https://kubernetes.io/docs/concepts/nodes/node/#manual-node-administration' + type: boolean + type: object + v1.NodeStatus: + description: NodeStatus is information about the current status of a node. + example: + daemonEndpoints: + kubeletEndpoint: + Port: 0 + phase: phase + allocatable: {} + addresses: + - address: address + type: type + - address: address + type: type + images: + - names: + - names + - names + sizeBytes: 6 + - names: + - names + - names + sizeBytes: 6 + runtimeHandlers: + - features: + userNamespaces: true + recursiveReadOnlyMounts: true name: name - containerPort: 4 - hostPort: 7 - - protocol: protocol - hostIP: hostIP + - features: + userNamespaces: true + recursiveReadOnlyMounts: true name: name - containerPort: 4 - hostPort: 7 - volumeMounts: - - mountPath: mountPath - mountPropagation: mountPropagation + volumesAttached: + - devicePath: devicePath name: name - readOnly: true - subPath: subPath - subPathExpr: subPathExpr - - mountPath: mountPath - mountPropagation: mountPropagation + - devicePath: devicePath name: name - readOnly: true - subPath: subPath - subPathExpr: subPathExpr - lifecycle: - postStart: - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - preStop: - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - readinessProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - resizePolicy: - - resourceName: resourceName - restartPolicy: restartPolicy - - resourceName: resourceName - restartPolicy: restartPolicy - envFrom: - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - image: image - imagePullPolicy: imagePullPolicy - livenessProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - targetContainerName: targetContainerName - terminationMessagePath: terminationMessagePath - workingDir: workingDir - resources: - claims: - - name: name - - name: name - requests: {} - limits: {} - env: - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: + capacity: {} + features: + supplementalGroupsPolicy: true + volumesInUse: + - volumesInUse + - volumesInUse + nodeInfo: + machineID: machineID + swap: + capacity: 1 + bootID: bootID + containerRuntimeVersion: containerRuntimeVersion + kernelVersion: kernelVersion + kubeletVersion: kubeletVersion + systemUUID: systemUUID + kubeProxyVersion: kubeProxyVersion + operatingSystem: operatingSystem + architecture: architecture + osImage: osImage + conditions: + - reason: reason + lastHeartbeatTime: 2000-01-23T04:56:07.000+00:00 + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + status: status + - reason: reason + lastHeartbeatTime: 2000-01-23T04:56:07.000+00:00 + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + status: status + config: + lastKnownGood: + configMap: + uid: uid + kubeletConfigKey: kubeletConfigKey + resourceVersion: resourceVersion name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - name: name - value: value - valueFrom: - secretKeyRef: + namespace: namespace + active: + configMap: + uid: uid + kubeletConfigKey: kubeletConfigKey + resourceVersion: resourceVersion name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: + namespace: namespace + assigned: + configMap: + uid: uid + kubeletConfigKey: kubeletConfigKey + resourceVersion: resourceVersion name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - restartPolicy: restartPolicy - command: - - command - - command - args: - - args - - args - name: name - tty: true - stdinOnce: true + namespace: namespace + error: error properties: - args: - description: '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' - items: - type: string - type: array - command: - description: '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' + addresses: + description: 'List of addresses reachable to the node. Queried from cloud + provider, if available. More info: https://kubernetes.io/docs/reference/node/node-status/#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).' items: - type: string + $ref: '#/components/schemas/v1.NodeAddress' type: array - env: - description: List of environment variables to set in the container. Cannot - be updated. + x-kubernetes-patch-strategy: merge + x-kubernetes-list-type: map + x-kubernetes-list-map-keys: + - type + x-kubernetes-patch-merge-key: type + allocatable: + additionalProperties: + $ref: '#/components/schemas/resource.Quantity' + description: Allocatable represents the resources of a node that are available + for scheduling. Defaults to Capacity. + type: object + capacity: + additionalProperties: + $ref: '#/components/schemas/resource.Quantity' + description: 'Capacity represents the total resources of a node. More info: + https://kubernetes.io/docs/reference/node/node-status/#capacity' + type: object + conditions: + description: 'Conditions is an array of current observed node conditions. + More info: https://kubernetes.io/docs/reference/node/node-status/#condition' items: - $ref: '#/components/schemas/v1.EnvVar' + $ref: '#/components/schemas/v1.NodeCondition' type: array x-kubernetes-patch-strategy: merge - x-kubernetes-patch-merge-key: name - envFrom: - description: 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. + x-kubernetes-list-type: map + x-kubernetes-list-map-keys: + - type + x-kubernetes-patch-merge-key: type + config: + $ref: '#/components/schemas/v1.NodeConfigStatus' + daemonEndpoints: + $ref: '#/components/schemas/v1.NodeDaemonEndpoints' + features: + $ref: '#/components/schemas/v1.NodeFeatures' + images: + description: List of container images on this node items: - $ref: '#/components/schemas/v1.EnvFromSource' + $ref: '#/components/schemas/v1.ContainerImage' type: array - image: - description: 'Container image name. More info: https://kubernetes.io/docs/concepts/containers/images' - type: string - imagePullPolicy: - description: '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' - type: string - lifecycle: - $ref: '#/components/schemas/v1.Lifecycle' - livenessProbe: - $ref: '#/components/schemas/v1.Probe' - name: - description: Name of the ephemeral container specified as a DNS_LABEL. This - name must be unique among all containers, init containers and ephemeral - containers. + x-kubernetes-list-type: atomic + nodeInfo: + $ref: '#/components/schemas/v1.NodeSystemInfo' + phase: + description: '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.' type: string - ports: - description: Ports are not allowed for ephemeral containers. + runtimeHandlers: + description: The available runtime handlers. items: - $ref: '#/components/schemas/v1.ContainerPort' + $ref: '#/components/schemas/v1.NodeRuntimeHandler' type: array - x-kubernetes-patch-strategy: merge - x-kubernetes-list-type: map - x-kubernetes-list-map-keys: - - containerPort - - protocol - x-kubernetes-patch-merge-key: containerPort - readinessProbe: - $ref: '#/components/schemas/v1.Probe' - resizePolicy: - description: Resources resize policy for the container. + x-kubernetes-list-type: atomic + volumesAttached: + description: List of volumes that are attached to the node. items: - $ref: '#/components/schemas/v1.ContainerResizePolicy' + $ref: '#/components/schemas/v1.AttachedVolume' type: array x-kubernetes-list-type: atomic - resources: - $ref: '#/components/schemas/v1.ResourceRequirements' - restartPolicy: - description: 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. + volumesInUse: + description: List of attachable volumes in use (mounted) by the node. + items: + type: string + type: array + x-kubernetes-list-type: atomic + type: object + v1.NodeSwapStatus: + description: NodeSwapStatus represents swap memory information. + example: + capacity: 1 + properties: + capacity: + description: Total amount of swap memory in bytes. + format: int64 + type: integer + type: object + v1.NodeSystemInfo: + description: NodeSystemInfo is a set of ids/uuids to uniquely identify the node. + example: + machineID: machineID + swap: + capacity: 1 + bootID: bootID + containerRuntimeVersion: containerRuntimeVersion + kernelVersion: kernelVersion + kubeletVersion: kubeletVersion + systemUUID: systemUUID + kubeProxyVersion: kubeProxyVersion + operatingSystem: operatingSystem + architecture: architecture + osImage: osImage + properties: + architecture: + description: The Architecture reported by the node type: string - securityContext: - $ref: '#/components/schemas/v1.SecurityContext' - startupProbe: - $ref: '#/components/schemas/v1.Probe' - stdin: - description: 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. - type: boolean - stdinOnce: - description: 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 - type: boolean - targetContainerName: - description: |- - 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. + bootID: + description: Boot ID reported by the node. type: string - terminationMessagePath: - description: '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.' + containerRuntimeVersion: + description: ContainerRuntime Version reported by the node through runtime + remote API (e.g. containerd://1.4.2). type: string - terminationMessagePolicy: - description: 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. + kernelVersion: + description: Kernel Version reported by the node from 'uname -r' (e.g. 3.16.0-0.bpo.4-amd64). type: string - tty: - description: Whether this container should allocate a TTY for itself, also - requires 'stdin' to be true. Default is false. - type: boolean - volumeDevices: - description: volumeDevices is the list of block devices to be used by the - container. - items: - $ref: '#/components/schemas/v1.VolumeDevice' - type: array - x-kubernetes-patch-strategy: merge - x-kubernetes-patch-merge-key: devicePath - volumeMounts: - description: Pod volumes to mount into the container's filesystem. Subpath - mounts are not allowed for ephemeral containers. Cannot be updated. - items: - $ref: '#/components/schemas/v1.VolumeMount' - type: array - x-kubernetes-patch-strategy: merge - x-kubernetes-patch-merge-key: mountPath - workingDir: - description: 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. + kubeProxyVersion: + description: 'Deprecated: KubeProxy Version reported by the node.' + type: string + kubeletVersion: + description: Kubelet Version reported by the node. + type: string + machineID: + description: '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' + type: string + operatingSystem: + description: The Operating System reported by the node + type: string + osImage: + description: OS Image reported by the node from /etc/os-release (e.g. Debian + GNU/Linux 7 (wheezy)). + type: string + swap: + $ref: '#/components/schemas/v1.NodeSwapStatus' + systemUUID: + description: 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 type: string required: - - name + - architecture + - bootID + - containerRuntimeVersion + - kernelVersion + - kubeProxyVersion + - kubeletVersion + - machineID + - operatingSystem + - osImage + - systemUUID type: object - v1.EphemeralVolumeSource: - description: Represents an ephemeral volume that is handled by a normal storage - driver. + v1.ObjectFieldSelector: + description: ObjectFieldSelector selects an APIVersioned field of an object. example: - volumeClaimTemplate: - metadata: - generation: 6 - finalizers: - - finalizers - - finalizers - resourceVersion: resourceVersion - annotations: - key: annotations - generateName: generateName - deletionTimestamp: 2000-01-23T04:56:07.000+00:00 - labels: - key: labels - ownerReferences: - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - selfLink: selfLink - deletionGracePeriodSeconds: 0 + apiVersion: apiVersion + fieldPath: fieldPath + properties: + apiVersion: + description: Version of the schema the FieldPath is written in terms of, + defaults to "v1". + type: string + fieldPath: + description: Path of the field to select in the specified API version. + type: string + required: + - fieldPath + type: object + x-kubernetes-map-type: atomic + v1.ObjectReference: + description: ObjectReference contains enough information to let you inspect + or modify the referred object. + example: + uid: uid + apiVersion: apiVersion + kind: kind + resourceVersion: resourceVersion + fieldPath: fieldPath + name: name + namespace: namespace + properties: + apiVersion: + description: API version of the referent. + type: string + fieldPath: + description: '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.' + type: string + kind: + description: 'Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds' + type: string + name: + description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names' + type: string + namespace: + description: 'Namespace of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/' + type: string + resourceVersion: + description: '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' + type: string + uid: + description: 'UID of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#uids' + type: string + type: object + x-kubernetes-map-type: atomic + v1.PersistentVolume: + 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' + example: + metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: '{}' + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: '{}' + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + creationTimestamp: 2000-01-23T04:56:07.000+00:00 + name: name + namespace: namespace + apiVersion: apiVersion + kind: kind + spec: + claimRef: uid: uid - managedFields: - - apiVersion: apiVersion - fieldsV1: '{}' - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - - apiVersion: apiVersion - fieldsV1: '{}' - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - creationTimestamp: 2000-01-23T04:56:07.000+00:00 + apiVersion: apiVersion + kind: kind + resourceVersion: resourceVersion + fieldPath: fieldPath name: name namespace: namespace - spec: - storageClassName: storageClassName - dataSourceRef: - apiGroup: apiGroup - kind: kind + quobyte: + volume: volume + registry: registry + readOnly: true + user: user + tenant: tenant + group: group + azureFile: + secretName: secretName + secretNamespace: secretNamespace + readOnly: true + shareName: shareName + flexVolume: + driver: driver + options: + key: options + secretRef: + name: name + namespace: namespace + readOnly: true + fsType: fsType + volumeAttributesClassName: volumeAttributesClassName + mountOptions: + - mountOptions + - mountOptions + local: + path: path + fsType: fsType + capacity: {} + cephfs: + path: path + secretRef: name: name namespace: namespace + secretFile: secretFile + readOnly: true + user: user + monitors: + - monitors + - monitors + scaleIO: + system: system + protectionDomain: protectionDomain + sslEnabled: true + storageMode: storageMode volumeName: volumeName - resources: - claims: - - name: name - - name: name - requests: {} - limits: {} - selector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - accessModes: - - accessModes - - accessModes - dataSource: - apiGroup: apiGroup + secretRef: + name: name + namespace: namespace + readOnly: true + fsType: fsType + storagePool: storagePool + gateway: gateway + accessModes: + - accessModes + - accessModes + glusterfs: + path: path + endpoints: endpoints + readOnly: true + endpointsNamespace: endpointsNamespace + gcePersistentDisk: + partition: 6 + readOnly: true + pdName: pdName + fsType: fsType + photonPersistentDisk: + pdID: pdID + fsType: fsType + azureDisk: + diskName: diskName + kind: kind + readOnly: true + cachingMode: cachingMode + diskURI: diskURI + fsType: fsType + cinder: + secretRef: + name: name + namespace: namespace + volumeID: volumeID + readOnly: true + fsType: fsType + awsElasticBlockStore: + partition: 9 + volumeID: volumeID + readOnly: true + fsType: fsType + nodeAffinity: + required: + nodeSelectorTerms: + - matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchFields: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + - matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchFields: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + flocker: + datasetName: datasetName + datasetUUID: datasetUUID + volumeMode: volumeMode + iscsi: + chapAuthSession: true + iscsiInterface: iscsiInterface + lun: 0 + chapAuthDiscovery: true + iqn: iqn + portals: + - portals + - portals + secretRef: + name: name + namespace: namespace + initiatorName: initiatorName + readOnly: true + fsType: fsType + targetPortal: targetPortal + rbd: + image: image + pool: pool + secretRef: + name: name + namespace: namespace + readOnly: true + fsType: fsType + keyring: keyring + user: user + monitors: + - monitors + - monitors + storageClassName: storageClassName + storageos: + volumeNamespace: volumeNamespace + volumeName: volumeName + secretRef: + uid: uid + apiVersion: apiVersion kind: kind + resourceVersion: resourceVersion + fieldPath: fieldPath name: name - volumeMode: volumeMode + namespace: namespace + readOnly: true + fsType: fsType + csi: + controllerPublishSecretRef: + name: name + namespace: namespace + driver: driver + nodePublishSecretRef: + name: name + namespace: namespace + nodeStageSecretRef: + name: name + namespace: namespace + volumeHandle: volumeHandle + nodeExpandSecretRef: + name: name + namespace: namespace + readOnly: true + controllerExpandSecretRef: + name: name + namespace: namespace + fsType: fsType + volumeAttributes: + key: volumeAttributes + nfs: + path: path + server: server + readOnly: true + persistentVolumeReclaimPolicy: persistentVolumeReclaimPolicy + portworxVolume: + volumeID: volumeID + readOnly: true + fsType: fsType + vsphereVolume: + storagePolicyName: storagePolicyName + storagePolicyID: storagePolicyID + volumePath: volumePath + fsType: fsType + fc: + lun: 2 + targetWWNs: + - targetWWNs + - targetWWNs + readOnly: true + wwids: + - wwids + - wwids + fsType: fsType + hostPath: + path: path + type: type + status: + phase: phase + reason: reason + lastPhaseTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message properties: - volumeClaimTemplate: - $ref: '#/components/schemas/v1.PersistentVolumeClaimTemplate' + apiVersion: + description: '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' + type: string + kind: + description: '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' + type: string + metadata: + $ref: '#/components/schemas/v1.ObjectMeta' + spec: + $ref: '#/components/schemas/v1.PersistentVolumeSpec' + status: + $ref: '#/components/schemas/v1.PersistentVolumeStatus' type: object - core.v1.Event: - 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. + x-kubernetes-group-version-kind: + - group: "" + kind: PersistentVolume + version: v1 + x-implements: + - io.kubernetes.client.common.KubernetesObject + v1.PersistentVolumeClaim: + description: PersistentVolumeClaim is a user's request for and claim to a persistent + volume example: - reason: reason metadata: generation: 6 finalizers: @@ -157049,110 +190614,134 @@ components: creationTimestamp: 2000-01-23T04:56:07.000+00:00 name: name namespace: namespace - involvedObject: - uid: uid - apiVersion: apiVersion - kind: kind - resourceVersion: resourceVersion - fieldPath: fieldPath - name: name - namespace: namespace - reportingInstance: reportingInstance - kind: kind - count: 0 - source: - component: component - host: host - message: message - type: type - reportingComponent: reportingComponent - firstTimestamp: 2000-01-23T04:56:07.000+00:00 apiVersion: apiVersion - related: - uid: uid - apiVersion: apiVersion - kind: kind - resourceVersion: resourceVersion - fieldPath: fieldPath - name: name - namespace: namespace - lastTimestamp: 2000-01-23T04:56:07.000+00:00 - series: - count: 6 - lastObservedTime: 2000-01-23T04:56:07.000+00:00 - eventTime: 2000-01-23T04:56:07.000+00:00 - action: action + kind: kind + spec: + storageClassName: storageClassName + dataSourceRef: + apiGroup: apiGroup + kind: kind + name: name + namespace: namespace + volumeName: volumeName + volumeAttributesClassName: volumeAttributesClassName + resources: + requests: {} + limits: {} + selector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + accessModes: + - accessModes + - accessModes + dataSource: + apiGroup: apiGroup + kind: kind + name: name + volumeMode: volumeMode + status: + phase: phase + allocatedResources: {} + currentVolumeAttributesClassName: currentVolumeAttributesClassName + allocatedResourceStatuses: + key: allocatedResourceStatuses + accessModes: + - accessModes + - accessModes + conditions: + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + lastProbeTime: 2000-01-23T04:56:07.000+00:00 + status: status + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + lastProbeTime: 2000-01-23T04:56:07.000+00:00 + status: status + modifyVolumeStatus: + targetVolumeAttributesClassName: targetVolumeAttributesClassName + status: status + capacity: {} properties: - action: - description: What action was taken/failed regarding to the Regarding object. - type: string apiVersion: description: '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' type: string - count: - description: The number of times this event has occurred. - format: int32 - type: integer - eventTime: - description: Time when this Event was first observed. - format: date-time - type: string - firstTimestamp: - description: The time at which the event was first recorded. (Time of server - receipt is in TypeMeta.) - format: date-time - type: string - involvedObject: - $ref: '#/components/schemas/v1.ObjectReference' kind: description: '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' type: string - lastTimestamp: - description: The time at which the most recent occurrence of this event - was recorded. + metadata: + $ref: '#/components/schemas/v1.ObjectMeta' + spec: + $ref: '#/components/schemas/v1.PersistentVolumeClaimSpec' + status: + $ref: '#/components/schemas/v1.PersistentVolumeClaimStatus' + type: object + x-kubernetes-group-version-kind: + - group: "" + kind: PersistentVolumeClaim + version: v1 + x-implements: + - io.kubernetes.client.common.KubernetesObject + v1.PersistentVolumeClaimCondition: + description: PersistentVolumeClaimCondition contains details about state of + pvc + example: + reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + lastProbeTime: 2000-01-23T04:56:07.000+00:00 + status: status + properties: + lastProbeTime: + description: lastProbeTime is the time we probed the condition. + format: date-time + type: string + lastTransitionTime: + description: lastTransitionTime is the time the condition transitioned from + one status to another. format: date-time type: string message: - description: A human-readable description of the status of this operation. + description: message is the human-readable message indicating details about + last transition. type: string - metadata: - $ref: '#/components/schemas/v1.ObjectMeta' reason: - description: This should be a short, machine understandable string that - gives the reason for the transition into the object's current status. - type: string - related: - $ref: '#/components/schemas/v1.ObjectReference' - reportingComponent: - description: Name of the controller that emitted this Event, e.g. `kubernetes.io/kubelet`. + description: 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. type: string - reportingInstance: - description: ID of the controller instance, e.g. `kubelet-xyzf`. + status: + description: 'Status is the status of the condition. Can be True, False, + Unknown. More info: https://kubernetes.io/docs/reference/kubernetes-api/config-and-storage-resources/persistent-volume-claim-v1/#:~:text=state%20of%20pvc-,conditions.status,-(string)%2C%20required' type: string - series: - $ref: '#/components/schemas/core.v1.EventSeries' - source: - $ref: '#/components/schemas/v1.EventSource' type: - description: Type of this event (Normal, Warning), new types could be added - in the future + description: 'Type is the type of the condition. More info: https://kubernetes.io/docs/reference/kubernetes-api/config-and-storage-resources/persistent-volume-claim-v1/#:~:text=set%20to%20%27ResizeStarted%27.-,PersistentVolumeClaimCondition,-contains%20details%20about' type: string required: - - involvedObject - - metadata + - status + - type type: object - x-kubernetes-group-version-kind: - - group: "" - kind: Event - version: v1 - x-implements: - - io.kubernetes.client.common.KubernetesObject - core.v1.EventList: - description: EventList is a list of events. + v1.PersistentVolumeClaimList: + description: PersistentVolumeClaimList is a list of PersistentVolumeClaim items. example: metadata: remainingItemCount: 1 @@ -157162,8 +190751,7 @@ components: apiVersion: apiVersion kind: kind items: - - reason: reason - metadata: + - metadata: generation: 6 finalizers: - finalizers @@ -157209,41 +190797,69 @@ components: creationTimestamp: 2000-01-23T04:56:07.000+00:00 name: name namespace: namespace - involvedObject: - uid: uid - apiVersion: apiVersion - kind: kind - resourceVersion: resourceVersion - fieldPath: fieldPath - name: name - namespace: namespace - reportingInstance: reportingInstance - kind: kind - count: 0 - source: - component: component - host: host - message: message - type: type - reportingComponent: reportingComponent - firstTimestamp: 2000-01-23T04:56:07.000+00:00 apiVersion: apiVersion - related: - uid: uid - apiVersion: apiVersion - kind: kind - resourceVersion: resourceVersion - fieldPath: fieldPath - name: name - namespace: namespace - lastTimestamp: 2000-01-23T04:56:07.000+00:00 - series: - count: 6 - lastObservedTime: 2000-01-23T04:56:07.000+00:00 - eventTime: 2000-01-23T04:56:07.000+00:00 - action: action - - reason: reason - metadata: + kind: kind + spec: + storageClassName: storageClassName + dataSourceRef: + apiGroup: apiGroup + kind: kind + name: name + namespace: namespace + volumeName: volumeName + volumeAttributesClassName: volumeAttributesClassName + resources: + requests: {} + limits: {} + selector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + accessModes: + - accessModes + - accessModes + dataSource: + apiGroup: apiGroup + kind: kind + name: name + volumeMode: volumeMode + status: + phase: phase + allocatedResources: {} + currentVolumeAttributesClassName: currentVolumeAttributesClassName + allocatedResourceStatuses: + key: allocatedResourceStatuses + accessModes: + - accessModes + - accessModes + conditions: + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + lastProbeTime: 2000-01-23T04:56:07.000+00:00 + status: status + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + lastProbeTime: 2000-01-23T04:56:07.000+00:00 + status: status + modifyVolumeStatus: + targetVolumeAttributesClassName: targetVolumeAttributesClassName + status: status + capacity: {} + - metadata: generation: 6 finalizers: - finalizers @@ -157289,39 +190905,68 @@ components: creationTimestamp: 2000-01-23T04:56:07.000+00:00 name: name namespace: namespace - involvedObject: - uid: uid - apiVersion: apiVersion - kind: kind - resourceVersion: resourceVersion - fieldPath: fieldPath - name: name - namespace: namespace - reportingInstance: reportingInstance - kind: kind - count: 0 - source: - component: component - host: host - message: message - type: type - reportingComponent: reportingComponent - firstTimestamp: 2000-01-23T04:56:07.000+00:00 apiVersion: apiVersion - related: - uid: uid - apiVersion: apiVersion - kind: kind - resourceVersion: resourceVersion - fieldPath: fieldPath - name: name - namespace: namespace - lastTimestamp: 2000-01-23T04:56:07.000+00:00 - series: - count: 6 - lastObservedTime: 2000-01-23T04:56:07.000+00:00 - eventTime: 2000-01-23T04:56:07.000+00:00 - action: action + kind: kind + spec: + storageClassName: storageClassName + dataSourceRef: + apiGroup: apiGroup + kind: kind + name: name + namespace: namespace + volumeName: volumeName + volumeAttributesClassName: volumeAttributesClassName + resources: + requests: {} + limits: {} + selector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + accessModes: + - accessModes + - accessModes + dataSource: + apiGroup: apiGroup + kind: kind + name: name + volumeMode: volumeMode + status: + phase: phase + allocatedResources: {} + currentVolumeAttributesClassName: currentVolumeAttributesClassName + allocatedResourceStatuses: + key: allocatedResourceStatuses + accessModes: + - accessModes + - accessModes + conditions: + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + lastProbeTime: 2000-01-23T04:56:07.000+00:00 + status: status + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + lastProbeTime: 2000-01-23T04:56:07.000+00:00 + status: status + modifyVolumeStatus: + targetVolumeAttributesClassName: targetVolumeAttributesClassName + status: status + capacity: {} properties: apiVersion: description: 'APIVersion defines the versioned schema of this representation @@ -157329,9 +190974,9 @@ components: internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources' type: string items: - description: List of events + description: 'items is a list of persistent volume claims. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims' items: - $ref: '#/components/schemas/core.v1.Event' + $ref: '#/components/schemas/v1.PersistentVolumeClaim' type: array kind: description: 'Kind is a string value representing the REST resource this @@ -157345,673 +190990,221 @@ components: type: object x-kubernetes-group-version-kind: - group: "" - kind: EventList + kind: PersistentVolumeClaimList version: v1 x-implements: - io.kubernetes.client.common.KubernetesListObject - core.v1.EventSeries: - description: EventSeries contain information on series of events, i.e. thing - that was/is happening continuously for some time. - example: - count: 6 - lastObservedTime: 2000-01-23T04:56:07.000+00:00 - properties: - count: - description: Number of occurrences in this series up to the last heartbeat - time - format: int32 - type: integer - lastObservedTime: - description: Time of the last occurrence observed - format: date-time - type: string - type: object - v1.EventSource: - description: EventSource contains information for an event. - example: - component: component - host: host - properties: - component: - description: Component from which the event is generated. - type: string - host: - description: Node name on which the event is generated. - type: string - type: object - v1.ExecAction: - description: ExecAction describes a "run in container" action. - example: - command: - - command - - command - properties: - command: - description: 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. - items: - type: string - type: array - type: object - v1.FCVolumeSource: - 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. - example: - lun: 1 - targetWWNs: - - targetWWNs - - targetWWNs - readOnly: true - wwids: - - wwids - - wwids - fsType: fsType - properties: - fsType: - description: 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. - type: string - lun: - description: 'lun is Optional: FC target lun number' - format: int32 - type: integer - readOnly: - description: 'readOnly is Optional: Defaults to false (read/write). ReadOnly - here will force the ReadOnly setting in VolumeMounts.' - type: boolean - targetWWNs: - description: 'targetWWNs is Optional: FC target worldwide names (WWNs)' - items: - type: string - type: array - wwids: - description: 'wwids Optional: FC volume world wide identifiers (wwids) Either - wwids or combination of targetWWNs and lun must be set, but not both simultaneously.' - items: - type: string - type: array - type: object - v1.FlexPersistentVolumeSource: - description: FlexPersistentVolumeSource represents a generic persistent volume - resource that is provisioned/attached using an exec based plugin. + v1.PersistentVolumeClaimSpec: + description: PersistentVolumeClaimSpec describes the common attributes of storage + devices and allows a Source for provider-specific attributes example: - driver: driver - options: - key: options - secretRef: + storageClassName: storageClassName + dataSourceRef: + apiGroup: apiGroup + kind: kind name: name namespace: namespace - readOnly: true - fsType: fsType - properties: - driver: - description: driver is the name of the driver to use for this volume. - type: string - fsType: - description: 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. - type: string - options: - additionalProperties: - type: string - description: 'options is Optional: this field holds extra command options - if any.' - type: object - readOnly: - description: 'readOnly is Optional: defaults to false (read/write). ReadOnly - here will force the ReadOnly setting in VolumeMounts.' - type: boolean - secretRef: - $ref: '#/components/schemas/v1.SecretReference' - required: - - driver - type: object - v1.FlexVolumeSource: - description: FlexVolume represents a generic volume resource that is provisioned/attached - using an exec based plugin. - example: - driver: driver - options: - key: options - secretRef: + volumeName: volumeName + volumeAttributesClassName: volumeAttributesClassName + resources: + requests: {} + limits: {} + selector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + accessModes: + - accessModes + - accessModes + dataSource: + apiGroup: apiGroup + kind: kind name: name - readOnly: true - fsType: fsType - properties: - driver: - description: driver is the name of the driver to use for this volume. - type: string - fsType: - description: 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. - type: string - options: - additionalProperties: - type: string - description: 'options is Optional: this field holds extra command options - if any.' - type: object - readOnly: - description: 'readOnly is Optional: defaults to false (read/write). ReadOnly - here will force the ReadOnly setting in VolumeMounts.' - type: boolean - secretRef: - $ref: '#/components/schemas/v1.LocalObjectReference' - required: - - driver - type: object - v1.FlockerVolumeSource: - 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. - example: - datasetName: datasetName - datasetUUID: datasetUUID - properties: - datasetName: - description: datasetName is Name of the dataset stored as metadata -> name - on the dataset for Flocker should be considered as deprecated - type: string - datasetUUID: - description: datasetUUID is the UUID of the dataset. This is unique identifier - of a Flocker dataset - type: string - type: object - v1.GCEPersistentDiskVolumeSource: - 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. - example: - partition: 2 - readOnly: true - pdName: pdName - fsType: fsType - properties: - fsType: - description: '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' - type: string - partition: - description: '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' - format: int32 - type: integer - pdName: - description: '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' - type: string - readOnly: - description: 'readOnly here will force the ReadOnly setting in VolumeMounts. - Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk' - type: boolean - required: - - pdName - type: object - v1.GRPCAction: - example: - port: 5 - service: service - properties: - port: - description: Port number of the gRPC service. Number must be in the range - 1 to 65535. - format: int32 - type: integer - service: - description: |- - 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. - type: string - required: - - port - type: object - v1.GitRepoVolumeSource: - 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. - example: - repository: repository - directory: directory - revision: revision - properties: - directory: - description: 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. - type: string - repository: - description: repository is the URL - type: string - revision: - description: revision is the commit hash for the specified revision. - type: string - required: - - repository - type: object - v1.GlusterfsPersistentVolumeSource: - description: Represents a Glusterfs mount that lasts the lifetime of a pod. - Glusterfs volumes do not support ownership management or SELinux relabeling. - example: - path: path - endpoints: endpoints - readOnly: true - endpointsNamespace: endpointsNamespace - properties: - endpoints: - description: 'endpoints is the endpoint name that details Glusterfs topology. - More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod' - type: string - endpointsNamespace: - description: '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' - type: string - path: - description: 'path is the Glusterfs volume path. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod' - type: string - readOnly: - description: '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' - type: boolean - required: - - endpoints - - path - type: object - v1.GlusterfsVolumeSource: - description: Represents a Glusterfs mount that lasts the lifetime of a pod. - Glusterfs volumes do not support ownership management or SELinux relabeling. - example: - path: path - endpoints: endpoints - readOnly: true - properties: - endpoints: - description: 'endpoints is the endpoint name that details Glusterfs topology. - More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod' - type: string - path: - description: 'path is the Glusterfs volume path. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod' - type: string - readOnly: - description: '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' - type: boolean - required: - - endpoints - - path - type: object - v1.HTTPGetAction: - description: HTTPGetAction describes an action based on HTTP Get requests. - example: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - properties: - host: - description: Host name to connect to, defaults to the pod IP. You probably - want to set "Host" in httpHeaders instead. - type: string - httpHeaders: - description: Custom headers to set in the request. HTTP allows repeated - headers. - items: - $ref: '#/components/schemas/v1.HTTPHeader' - type: array - path: - description: Path to access on the HTTP server. - type: string - port: - description: 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. - format: int-or-string - type: string - scheme: - description: Scheme to use for connecting to the host. Defaults to HTTP. - type: string - required: - - port - type: object - v1.HTTPHeader: - description: HTTPHeader describes a custom header to be used in HTTP probes - example: - name: name - value: value - properties: - name: - description: The header field name. This will be canonicalized upon output, - so case-variant names will be understood as the same header. - type: string - value: - description: The header field value - type: string - required: - - name - - value - type: object - v1.HostAlias: - description: HostAlias holds the mapping between IP and hostnames that will - be injected as an entry in the pod's hosts file. - example: - ip: ip - hostnames: - - hostnames - - hostnames + volumeMode: volumeMode properties: - hostnames: - description: Hostnames for the above IP address. + accessModes: + description: 'accessModes contains the desired access modes the volume should + have. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes-1' items: type: string type: array - ip: - description: IP address of the host file entry. + x-kubernetes-list-type: atomic + dataSource: + $ref: '#/components/schemas/v1.TypedLocalObjectReference' + dataSourceRef: + $ref: '#/components/schemas/v1.TypedObjectReference' + resources: + $ref: '#/components/schemas/v1.VolumeResourceRequirements' + selector: + $ref: '#/components/schemas/v1.LabelSelector' + storageClassName: + description: 'storageClassName is the name of the StorageClass required + by the claim. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#class-1' type: string - type: object - v1.HostIP: - description: HostIP represents a single IP address allocated to the host. - example: - ip: ip - properties: - ip: - description: IP is the IP address assigned to the host + volumeAttributesClassName: + description: '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).' type: string - type: object - v1.HostPathVolumeSource: - description: Represents a host path mapped into a pod. Host path volumes do - not support ownership management or SELinux relabeling. - example: - path: path - type: type - properties: - path: - description: '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' + volumeMode: + description: volumeMode defines what type of volume is required by the claim. + Value of Filesystem is implied when not included in claim spec. type: string - type: - description: 'type for HostPath Volume Defaults to "" More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath' + volumeName: + description: volumeName is the binding reference to the PersistentVolume + backing this claim. type: string - required: - - path type: object - v1.ISCSIPersistentVolumeSource: - description: ISCSIPersistentVolumeSource represents an ISCSI disk. ISCSI volumes - can only be mounted as read/write once. ISCSI volumes support ownership management - and SELinux relabeling. + v1.PersistentVolumeClaimStatus: + description: PersistentVolumeClaimStatus is the current status of a persistent + volume claim. example: - chapAuthSession: true - iscsiInterface: iscsiInterface - lun: 0 - chapAuthDiscovery: true - iqn: iqn - portals: - - portals - - portals - secretRef: - name: name - namespace: namespace - initiatorName: initiatorName - readOnly: true - fsType: fsType - targetPortal: targetPortal + phase: phase + allocatedResources: {} + currentVolumeAttributesClassName: currentVolumeAttributesClassName + allocatedResourceStatuses: + key: allocatedResourceStatuses + accessModes: + - accessModes + - accessModes + conditions: + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + lastProbeTime: 2000-01-23T04:56:07.000+00:00 + status: status + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + lastProbeTime: 2000-01-23T04:56:07.000+00:00 + status: status + modifyVolumeStatus: + targetVolumeAttributesClassName: targetVolumeAttributesClassName + status: status + capacity: {} properties: - chapAuthDiscovery: - description: chapAuthDiscovery defines whether support iSCSI Discovery CHAP - authentication - type: boolean - chapAuthSession: - description: chapAuthSession defines whether support iSCSI Session CHAP - authentication - type: boolean - fsType: - description: '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' - type: string - initiatorName: - description: initiatorName is the custom iSCSI Initiator Name. If initiatorName - is specified with iscsiInterface simultaneously, new iSCSI interface : will be created for the connection. - type: string - iqn: - description: iqn is Target iSCSI Qualified Name. - type: string - iscsiInterface: - description: iscsiInterface is the interface Name that uses an iSCSI transport. - Defaults to 'default' (tcp). - type: string - lun: - description: lun is iSCSI Target Lun number. - format: int32 - type: integer - portals: - description: 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). + accessModes: + description: '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' items: type: string type: array - readOnly: - description: readOnly here will force the ReadOnly setting in VolumeMounts. - Defaults to false. - type: boolean - secretRef: - $ref: '#/components/schemas/v1.SecretReference' - targetPortal: - description: 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). - type: string - required: - - iqn - - lun - - targetPortal - type: object - v1.ISCSIVolumeSource: - description: Represents an ISCSI disk. ISCSI volumes can only be mounted as - read/write once. ISCSI volumes support ownership management and SELinux relabeling. - example: - chapAuthSession: true - iscsiInterface: iscsiInterface - lun: 6 - chapAuthDiscovery: true - iqn: iqn - portals: - - portals - - portals - secretRef: - name: name - initiatorName: initiatorName - readOnly: true - fsType: fsType - targetPortal: targetPortal - properties: - chapAuthDiscovery: - description: chapAuthDiscovery defines whether support iSCSI Discovery CHAP - authentication - type: boolean - chapAuthSession: - description: chapAuthSession defines whether support iSCSI Session CHAP - authentication - type: boolean - fsType: - description: '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' - type: string - initiatorName: - description: initiatorName is the custom iSCSI Initiator Name. If initiatorName - is specified with iscsiInterface simultaneously, new iSCSI interface : will be created for the connection. - type: string - iqn: - description: iqn is the target iSCSI Qualified Name. - type: string - iscsiInterface: - description: iscsiInterface is the interface Name that uses an iSCSI transport. - Defaults to 'default' (tcp). - type: string - lun: - description: lun represents iSCSI Target Lun number. - format: int32 - type: integer - portals: - description: 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). - items: + x-kubernetes-list-type: atomic + allocatedResourceStatuses: + additionalProperties: type: string + description: "allocatedResourceStatuses stores status of resource being\ + \ resized for the given PVC. Key names follow standard Kubernetes label\ + \ syntax. Valid values are either:\n\t* Un-prefixed keys:\n\t\t- storage\ + \ - the capacity of the volume.\n\t* Custom resources must use implementation-defined\ + \ prefixed names such as \"example.com/my-custom-resource\"\nApart from\ + \ above values - keys that are unprefixed or have kubernetes.io prefix\ + \ are considered reserved and hence may not be used.\n\nClaimResourceStatus\ + \ can be in any of following states:\n\t- ControllerResizeInProgress:\n\ + \t\tState set when resize controller starts resizing the volume in control-plane.\n\ + \t- ControllerResizeFailed:\n\t\tState set when resize has failed in resize\ + \ controller with a terminal error.\n\t- NodeResizePending:\n\t\tState\ + \ set when resize controller has finished resizing the volume but further\ + \ resizing of\n\t\tvolume is needed on the node.\n\t- NodeResizeInProgress:\n\ + \t\tState set when kubelet starts resizing the volume.\n\t- NodeResizeFailed:\n\ + \t\tState set when resizing has failed in kubelet with a terminal error.\ + \ Transient errors don't set\n\t\tNodeResizeFailed.\nFor example: if expanding\ + \ a PVC for more capacity - this field can be one of the following states:\n\ + \t- pvc.status.allocatedResourceStatus['storage'] = \"ControllerResizeInProgress\"\ + \n - pvc.status.allocatedResourceStatus['storage'] = \"ControllerResizeFailed\"\ + \n - pvc.status.allocatedResourceStatus['storage'] = \"NodeResizePending\"\ + \n - pvc.status.allocatedResourceStatus['storage'] = \"NodeResizeInProgress\"\ + \n - pvc.status.allocatedResourceStatus['storage'] = \"NodeResizeFailed\"\ + \nWhen this field is not set, it means that no resize operation is in\ + \ progress for the given PVC.\n\nA 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.\n\nThis is an alpha field and requires enabling RecoverVolumeExpansionFailure\ + \ feature." + type: object + x-kubernetes-map-type: granular + allocatedResources: + additionalProperties: + $ref: '#/components/schemas/resource.Quantity' + description: "allocatedResources tracks the resources allocated to a PVC\ + \ including its capacity. Key names follow standard Kubernetes label syntax.\ + \ Valid values are either:\n\t* Un-prefixed keys:\n\t\t- storage - the\ + \ capacity of the volume.\n\t* Custom resources must use implementation-defined\ + \ prefixed names such as \"example.com/my-custom-resource\"\nApart from\ + \ above values - keys that are unprefixed or have kubernetes.io prefix\ + \ are considered reserved and hence may not be used.\n\nCapacity 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.\n\nA 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.\n\nThis is an alpha field and requires enabling RecoverVolumeExpansionFailure\ + \ feature." + type: object + capacity: + additionalProperties: + $ref: '#/components/schemas/resource.Quantity' + description: capacity represents the actual resources of the underlying + volume. + type: object + conditions: + description: conditions is the current Condition of persistent volume claim. + If underlying persistent volume is being resized then the Condition will + be set to 'Resizing'. + items: + $ref: '#/components/schemas/v1.PersistentVolumeClaimCondition' type: array - readOnly: - description: readOnly here will force the ReadOnly setting in VolumeMounts. - Defaults to false. - type: boolean - secretRef: - $ref: '#/components/schemas/v1.LocalObjectReference' - targetPortal: - description: 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). - type: string - required: - - iqn - - lun - - targetPortal - type: object - v1.KeyToPath: - description: Maps a string key to a path within a volume. - example: - mode: 6 - path: path - key: key - properties: - key: - description: key is the key to project. - type: string - mode: - description: '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.' - format: int32 - type: integer - path: - description: 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 '..'. + x-kubernetes-patch-strategy: merge + x-kubernetes-list-type: map + x-kubernetes-list-map-keys: + - type + x-kubernetes-patch-merge-key: type + currentVolumeAttributesClassName: + description: 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). + type: string + modifyVolumeStatus: + $ref: '#/components/schemas/v1.ModifyVolumeStatus' + phase: + description: phase represents the current phase of PersistentVolumeClaim. type: string - required: - - key - - path - type: object - v1.Lifecycle: - 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. - example: - postStart: - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - preStop: - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - properties: - postStart: - $ref: '#/components/schemas/v1.LifecycleHandler' - preStop: - $ref: '#/components/schemas/v1.LifecycleHandler' - type: object - v1.LifecycleHandler: - 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. - example: - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - properties: - exec: - $ref: '#/components/schemas/v1.ExecAction' - httpGet: - $ref: '#/components/schemas/v1.HTTPGetAction' - tcpSocket: - $ref: '#/components/schemas/v1.TCPSocketAction' type: object - v1.LimitRange: - description: LimitRange sets resource usage limits for each kind of resource - in a Namespace. + v1.PersistentVolumeClaimTemplate: + description: PersistentVolumeClaimTemplate is used to produce PersistentVolumeClaim + objects as part of an EphemeralVolumeSource. example: metadata: generation: 6 @@ -158059,93 +191252,70 @@ components: creationTimestamp: 2000-01-23T04:56:07.000+00:00 name: name namespace: namespace - apiVersion: apiVersion - kind: kind - spec: - limits: - - default: {} - min: {} - max: {} - maxLimitRequestRatio: {} - type: type - defaultRequest: {} - - default: {} - min: {} - max: {} - maxLimitRequestRatio: {} - type: type - defaultRequest: {} - properties: - apiVersion: - description: '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' - type: string - kind: - description: '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' - type: string - metadata: - $ref: '#/components/schemas/v1.ObjectMeta' spec: - $ref: '#/components/schemas/v1.LimitRangeSpec' - type: object - x-kubernetes-group-version-kind: - - group: "" - kind: LimitRange - version: v1 - x-implements: - - io.kubernetes.client.common.KubernetesObject - v1.LimitRangeItem: - description: LimitRangeItem defines a min/max usage limit for any resource that - matches on kind. - example: - default: {} - min: {} - max: {} - maxLimitRequestRatio: {} - type: type - defaultRequest: {} - properties: - default: - additionalProperties: - $ref: '#/components/schemas/resource.Quantity' - description: Default resource requirement limit value by resource name if - resource limit is omitted. - type: object - defaultRequest: - additionalProperties: - $ref: '#/components/schemas/resource.Quantity' - description: DefaultRequest is the default resource requirement request - value by resource name if resource request is omitted. - type: object - max: - additionalProperties: - $ref: '#/components/schemas/resource.Quantity' - description: Max usage constraints on this kind by resource name. - type: object - maxLimitRequestRatio: - additionalProperties: - $ref: '#/components/schemas/resource.Quantity' - description: 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. - type: object - min: - additionalProperties: - $ref: '#/components/schemas/resource.Quantity' - description: Min usage constraints on this kind by resource name. - type: object - type: - description: Type of resource that this limit applies to. + storageClassName: storageClassName + dataSourceRef: + apiGroup: apiGroup + kind: kind + name: name + namespace: namespace + volumeName: volumeName + volumeAttributesClassName: volumeAttributesClassName + resources: + requests: {} + limits: {} + selector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + accessModes: + - accessModes + - accessModes + dataSource: + apiGroup: apiGroup + kind: kind + name: name + volumeMode: volumeMode + properties: + metadata: + $ref: '#/components/schemas/v1.ObjectMeta' + spec: + $ref: '#/components/schemas/v1.PersistentVolumeClaimSpec' + required: + - spec + type: object + v1.PersistentVolumeClaimVolumeSource: + 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). + example: + claimName: claimName + readOnly: true + properties: + claimName: + description: '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' type: string + readOnly: + description: readOnly Will force the ReadOnly setting in VolumeMounts. Default + false. + type: boolean required: - - type + - claimName type: object - v1.LimitRangeList: - description: LimitRangeList is a list of LimitRange items. + v1.PersistentVolumeList: + description: PersistentVolumeList is a list of PersistentVolume items. example: metadata: remainingItemCount: 1 @@ -158204,19 +191374,250 @@ components: apiVersion: apiVersion kind: kind spec: - limits: - - default: {} - min: {} - max: {} - maxLimitRequestRatio: {} - type: type - defaultRequest: {} - - default: {} - min: {} - max: {} - maxLimitRequestRatio: {} + claimRef: + uid: uid + apiVersion: apiVersion + kind: kind + resourceVersion: resourceVersion + fieldPath: fieldPath + name: name + namespace: namespace + quobyte: + volume: volume + registry: registry + readOnly: true + user: user + tenant: tenant + group: group + azureFile: + secretName: secretName + secretNamespace: secretNamespace + readOnly: true + shareName: shareName + flexVolume: + driver: driver + options: + key: options + secretRef: + name: name + namespace: namespace + readOnly: true + fsType: fsType + volumeAttributesClassName: volumeAttributesClassName + mountOptions: + - mountOptions + - mountOptions + local: + path: path + fsType: fsType + capacity: {} + cephfs: + path: path + secretRef: + name: name + namespace: namespace + secretFile: secretFile + readOnly: true + user: user + monitors: + - monitors + - monitors + scaleIO: + system: system + protectionDomain: protectionDomain + sslEnabled: true + storageMode: storageMode + volumeName: volumeName + secretRef: + name: name + namespace: namespace + readOnly: true + fsType: fsType + storagePool: storagePool + gateway: gateway + accessModes: + - accessModes + - accessModes + glusterfs: + path: path + endpoints: endpoints + readOnly: true + endpointsNamespace: endpointsNamespace + gcePersistentDisk: + partition: 6 + readOnly: true + pdName: pdName + fsType: fsType + photonPersistentDisk: + pdID: pdID + fsType: fsType + azureDisk: + diskName: diskName + kind: kind + readOnly: true + cachingMode: cachingMode + diskURI: diskURI + fsType: fsType + cinder: + secretRef: + name: name + namespace: namespace + volumeID: volumeID + readOnly: true + fsType: fsType + awsElasticBlockStore: + partition: 9 + volumeID: volumeID + readOnly: true + fsType: fsType + nodeAffinity: + required: + nodeSelectorTerms: + - matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchFields: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + - matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchFields: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + flocker: + datasetName: datasetName + datasetUUID: datasetUUID + volumeMode: volumeMode + iscsi: + chapAuthSession: true + iscsiInterface: iscsiInterface + lun: 0 + chapAuthDiscovery: true + iqn: iqn + portals: + - portals + - portals + secretRef: + name: name + namespace: namespace + initiatorName: initiatorName + readOnly: true + fsType: fsType + targetPortal: targetPortal + rbd: + image: image + pool: pool + secretRef: + name: name + namespace: namespace + readOnly: true + fsType: fsType + keyring: keyring + user: user + monitors: + - monitors + - monitors + storageClassName: storageClassName + storageos: + volumeNamespace: volumeNamespace + volumeName: volumeName + secretRef: + uid: uid + apiVersion: apiVersion + kind: kind + resourceVersion: resourceVersion + fieldPath: fieldPath + name: name + namespace: namespace + readOnly: true + fsType: fsType + csi: + controllerPublishSecretRef: + name: name + namespace: namespace + driver: driver + nodePublishSecretRef: + name: name + namespace: namespace + nodeStageSecretRef: + name: name + namespace: namespace + volumeHandle: volumeHandle + nodeExpandSecretRef: + name: name + namespace: namespace + readOnly: true + controllerExpandSecretRef: + name: name + namespace: namespace + fsType: fsType + volumeAttributes: + key: volumeAttributes + nfs: + path: path + server: server + readOnly: true + persistentVolumeReclaimPolicy: persistentVolumeReclaimPolicy + portworxVolume: + volumeID: volumeID + readOnly: true + fsType: fsType + vsphereVolume: + storagePolicyName: storagePolicyName + storagePolicyID: storagePolicyID + volumePath: volumePath + fsType: fsType + fc: + lun: 2 + targetWWNs: + - targetWWNs + - targetWWNs + readOnly: true + wwids: + - wwids + - wwids + fsType: fsType + hostPath: + path: path type: type - defaultRequest: {} + status: + phase: phase + reason: reason + lastPhaseTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message - metadata: generation: 6 finalizers: @@ -158266,19 +191667,250 @@ components: apiVersion: apiVersion kind: kind spec: - limits: - - default: {} - min: {} - max: {} - maxLimitRequestRatio: {} - type: type - defaultRequest: {} - - default: {} - min: {} - max: {} - maxLimitRequestRatio: {} + claimRef: + uid: uid + apiVersion: apiVersion + kind: kind + resourceVersion: resourceVersion + fieldPath: fieldPath + name: name + namespace: namespace + quobyte: + volume: volume + registry: registry + readOnly: true + user: user + tenant: tenant + group: group + azureFile: + secretName: secretName + secretNamespace: secretNamespace + readOnly: true + shareName: shareName + flexVolume: + driver: driver + options: + key: options + secretRef: + name: name + namespace: namespace + readOnly: true + fsType: fsType + volumeAttributesClassName: volumeAttributesClassName + mountOptions: + - mountOptions + - mountOptions + local: + path: path + fsType: fsType + capacity: {} + cephfs: + path: path + secretRef: + name: name + namespace: namespace + secretFile: secretFile + readOnly: true + user: user + monitors: + - monitors + - monitors + scaleIO: + system: system + protectionDomain: protectionDomain + sslEnabled: true + storageMode: storageMode + volumeName: volumeName + secretRef: + name: name + namespace: namespace + readOnly: true + fsType: fsType + storagePool: storagePool + gateway: gateway + accessModes: + - accessModes + - accessModes + glusterfs: + path: path + endpoints: endpoints + readOnly: true + endpointsNamespace: endpointsNamespace + gcePersistentDisk: + partition: 6 + readOnly: true + pdName: pdName + fsType: fsType + photonPersistentDisk: + pdID: pdID + fsType: fsType + azureDisk: + diskName: diskName + kind: kind + readOnly: true + cachingMode: cachingMode + diskURI: diskURI + fsType: fsType + cinder: + secretRef: + name: name + namespace: namespace + volumeID: volumeID + readOnly: true + fsType: fsType + awsElasticBlockStore: + partition: 9 + volumeID: volumeID + readOnly: true + fsType: fsType + nodeAffinity: + required: + nodeSelectorTerms: + - matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchFields: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + - matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchFields: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + flocker: + datasetName: datasetName + datasetUUID: datasetUUID + volumeMode: volumeMode + iscsi: + chapAuthSession: true + iscsiInterface: iscsiInterface + lun: 0 + chapAuthDiscovery: true + iqn: iqn + portals: + - portals + - portals + secretRef: + name: name + namespace: namespace + initiatorName: initiatorName + readOnly: true + fsType: fsType + targetPortal: targetPortal + rbd: + image: image + pool: pool + secretRef: + name: name + namespace: namespace + readOnly: true + fsType: fsType + keyring: keyring + user: user + monitors: + - monitors + - monitors + storageClassName: storageClassName + storageos: + volumeNamespace: volumeNamespace + volumeName: volumeName + secretRef: + uid: uid + apiVersion: apiVersion + kind: kind + resourceVersion: resourceVersion + fieldPath: fieldPath + name: name + namespace: namespace + readOnly: true + fsType: fsType + csi: + controllerPublishSecretRef: + name: name + namespace: namespace + driver: driver + nodePublishSecretRef: + name: name + namespace: namespace + nodeStageSecretRef: + name: name + namespace: namespace + volumeHandle: volumeHandle + nodeExpandSecretRef: + name: name + namespace: namespace + readOnly: true + controllerExpandSecretRef: + name: name + namespace: namespace + fsType: fsType + volumeAttributes: + key: volumeAttributes + nfs: + path: path + server: server + readOnly: true + persistentVolumeReclaimPolicy: persistentVolumeReclaimPolicy + portworxVolume: + volumeID: volumeID + readOnly: true + fsType: fsType + vsphereVolume: + storagePolicyName: storagePolicyName + storagePolicyID: storagePolicyID + volumePath: volumePath + fsType: fsType + fc: + lun: 2 + targetWWNs: + - targetWWNs + - targetWWNs + readOnly: true + wwids: + - wwids + - wwids + fsType: fsType + hostPath: + path: path type: type - defaultRequest: {} + status: + phase: phase + reason: reason + lastPhaseTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message properties: apiVersion: description: 'APIVersion defines the versioned schema of this representation @@ -158286,9 +191918,9 @@ components: internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources' type: string items: - description: 'Items is a list of LimitRange objects. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/' + description: 'items is a list of persistent volumes. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes' items: - $ref: '#/components/schemas/v1.LimitRange' + $ref: '#/components/schemas/v1.PersistentVolume' type: array kind: description: 'Kind is a string value representing the REST resource this @@ -158302,487 +191934,398 @@ components: type: object x-kubernetes-group-version-kind: - group: "" - kind: LimitRangeList + kind: PersistentVolumeList version: v1 x-implements: - io.kubernetes.client.common.KubernetesListObject - v1.LimitRangeSpec: - description: LimitRangeSpec defines a min/max usage limit for resources that - match on kind. - example: - limits: - - default: {} - min: {} - max: {} - maxLimitRequestRatio: {} - type: type - defaultRequest: {} - - default: {} - min: {} - max: {} - maxLimitRequestRatio: {} - type: type - defaultRequest: {} - properties: - limits: - description: Limits is the list of LimitRangeItem objects that are enforced. - items: - $ref: '#/components/schemas/v1.LimitRangeItem' - type: array - required: - - limits - type: object - v1.LoadBalancerIngress: - description: 'LoadBalancerIngress represents the status of a load-balancer ingress - point: traffic intended for the service should be sent to an ingress point.' - example: - hostname: hostname - ip: ip - ports: - - protocol: protocol - port: 2 - error: error - - protocol: protocol - port: 2 - error: error - properties: - hostname: - description: Hostname is set for load-balancer ingress points that are DNS - based (typically AWS load-balancers) - type: string - ip: - description: IP is set for load-balancer ingress points that are IP based - (typically GCE or OpenStack load-balancers) - type: string - ports: - description: Ports is a list of records of service ports If used, every - port defined in the service should have an entry in it - items: - $ref: '#/components/schemas/v1.PortStatus' - type: array - x-kubernetes-list-type: atomic - type: object - v1.LoadBalancerStatus: - description: LoadBalancerStatus represents the status of a load-balancer. - example: - ingress: - - hostname: hostname - ip: ip - ports: - - protocol: protocol - port: 2 - error: error - - protocol: protocol - port: 2 - error: error - - hostname: hostname - ip: ip - ports: - - protocol: protocol - port: 2 - error: error - - protocol: protocol - port: 2 - error: error - properties: - ingress: - description: Ingress is a list containing ingress points for the load-balancer. - Traffic intended for the service should be sent to these ingress points. - items: - $ref: '#/components/schemas/v1.LoadBalancerIngress' - type: array - type: object - v1.LocalObjectReference: - description: LocalObjectReference contains enough information to let you locate - the referenced object inside the same namespace. - example: - name: name - properties: - name: - description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names' - type: string - type: object - x-kubernetes-map-type: atomic - v1.LocalVolumeSource: - description: Local represents directly-attached storage with node affinity (Beta - feature) - example: - path: path - fsType: fsType - properties: - fsType: - description: 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. - type: string - path: - description: path of the full path to the volume on the node. It can be - either a directory or block device (disk, partition, ...). - type: string - required: - - path - type: object - v1.NFSVolumeSource: - description: Represents an NFS mount that lasts the lifetime of a pod. NFS volumes - do not support ownership management or SELinux relabeling. - example: - path: path - server: server - readOnly: true - properties: - path: - description: 'path that is exported by the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs' - type: string - readOnly: - description: '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' - type: boolean - server: - description: 'server is the hostname or IP address of the NFS server. More - info: https://kubernetes.io/docs/concepts/storage/volumes#nfs' - type: string - required: - - path - - server - type: object - v1.Namespace: - description: Namespace provides a scope for Names. Use of multiple namespaces - is optional. + v1.PersistentVolumeSpec: + description: PersistentVolumeSpec is the specification of a persistent volume. example: - metadata: - generation: 6 - finalizers: - - finalizers - - finalizers + claimRef: + uid: uid + apiVersion: apiVersion + kind: kind resourceVersion: resourceVersion - annotations: - key: annotations - generateName: generateName - deletionTimestamp: 2000-01-23T04:56:07.000+00:00 - labels: - key: labels - ownerReferences: - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind + fieldPath: fieldPath + name: name + namespace: namespace + quobyte: + volume: volume + registry: registry + readOnly: true + user: user + tenant: tenant + group: group + azureFile: + secretName: secretName + secretNamespace: secretNamespace + readOnly: true + shareName: shareName + flexVolume: + driver: driver + options: + key: options + secretRef: name: name - blockOwnerDeletion: true - - uid: uid - controller: true + namespace: namespace + readOnly: true + fsType: fsType + volumeAttributesClassName: volumeAttributesClassName + mountOptions: + - mountOptions + - mountOptions + local: + path: path + fsType: fsType + capacity: {} + cephfs: + path: path + secretRef: + name: name + namespace: namespace + secretFile: secretFile + readOnly: true + user: user + monitors: + - monitors + - monitors + scaleIO: + system: system + protectionDomain: protectionDomain + sslEnabled: true + storageMode: storageMode + volumeName: volumeName + secretRef: + name: name + namespace: namespace + readOnly: true + fsType: fsType + storagePool: storagePool + gateway: gateway + accessModes: + - accessModes + - accessModes + glusterfs: + path: path + endpoints: endpoints + readOnly: true + endpointsNamespace: endpointsNamespace + gcePersistentDisk: + partition: 6 + readOnly: true + pdName: pdName + fsType: fsType + photonPersistentDisk: + pdID: pdID + fsType: fsType + azureDisk: + diskName: diskName + kind: kind + readOnly: true + cachingMode: cachingMode + diskURI: diskURI + fsType: fsType + cinder: + secretRef: + name: name + namespace: namespace + volumeID: volumeID + readOnly: true + fsType: fsType + awsElasticBlockStore: + partition: 9 + volumeID: volumeID + readOnly: true + fsType: fsType + nodeAffinity: + required: + nodeSelectorTerms: + - matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchFields: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + - matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchFields: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + flocker: + datasetName: datasetName + datasetUUID: datasetUUID + volumeMode: volumeMode + iscsi: + chapAuthSession: true + iscsiInterface: iscsiInterface + lun: 0 + chapAuthDiscovery: true + iqn: iqn + portals: + - portals + - portals + secretRef: + name: name + namespace: namespace + initiatorName: initiatorName + readOnly: true + fsType: fsType + targetPortal: targetPortal + rbd: + image: image + pool: pool + secretRef: + name: name + namespace: namespace + readOnly: true + fsType: fsType + keyring: keyring + user: user + monitors: + - monitors + - monitors + storageClassName: storageClassName + storageos: + volumeNamespace: volumeNamespace + volumeName: volumeName + secretRef: + uid: uid apiVersion: apiVersion kind: kind + resourceVersion: resourceVersion + fieldPath: fieldPath name: name - blockOwnerDeletion: true - selfLink: selfLink - deletionGracePeriodSeconds: 0 - uid: uid - managedFields: - - apiVersion: apiVersion - fieldsV1: '{}' - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - - apiVersion: apiVersion - fieldsV1: '{}' - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - creationTimestamp: 2000-01-23T04:56:07.000+00:00 - name: name - namespace: namespace - apiVersion: apiVersion - kind: kind - spec: - finalizers: - - finalizers - - finalizers - status: - phase: phase - conditions: - - reason: reason - lastTransitionTime: 2000-01-23T04:56:07.000+00:00 - message: message - type: type - status: status - - reason: reason - lastTransitionTime: 2000-01-23T04:56:07.000+00:00 - message: message - type: type - status: status + namespace: namespace + readOnly: true + fsType: fsType + csi: + controllerPublishSecretRef: + name: name + namespace: namespace + driver: driver + nodePublishSecretRef: + name: name + namespace: namespace + nodeStageSecretRef: + name: name + namespace: namespace + volumeHandle: volumeHandle + nodeExpandSecretRef: + name: name + namespace: namespace + readOnly: true + controllerExpandSecretRef: + name: name + namespace: namespace + fsType: fsType + volumeAttributes: + key: volumeAttributes + nfs: + path: path + server: server + readOnly: true + persistentVolumeReclaimPolicy: persistentVolumeReclaimPolicy + portworxVolume: + volumeID: volumeID + readOnly: true + fsType: fsType + vsphereVolume: + storagePolicyName: storagePolicyName + storagePolicyID: storagePolicyID + volumePath: volumePath + fsType: fsType + fc: + lun: 2 + targetWWNs: + - targetWWNs + - targetWWNs + readOnly: true + wwids: + - wwids + - wwids + fsType: fsType + hostPath: + path: path + type: type properties: - apiVersion: - description: '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' + accessModes: + description: 'accessModes contains all ways the volume can be mounted. More + info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes' + items: + type: string + type: array + x-kubernetes-list-type: atomic + awsElasticBlockStore: + $ref: '#/components/schemas/v1.AWSElasticBlockStoreVolumeSource' + azureDisk: + $ref: '#/components/schemas/v1.AzureDiskVolumeSource' + azureFile: + $ref: '#/components/schemas/v1.AzureFilePersistentVolumeSource' + capacity: + additionalProperties: + $ref: '#/components/schemas/resource.Quantity' + description: 'capacity is the description of the persistent volume''s resources + and capacity. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#capacity' + type: object + cephfs: + $ref: '#/components/schemas/v1.CephFSPersistentVolumeSource' + cinder: + $ref: '#/components/schemas/v1.CinderPersistentVolumeSource' + claimRef: + $ref: '#/components/schemas/v1.ObjectReference' + csi: + $ref: '#/components/schemas/v1.CSIPersistentVolumeSource' + fc: + $ref: '#/components/schemas/v1.FCVolumeSource' + flexVolume: + $ref: '#/components/schemas/v1.FlexPersistentVolumeSource' + flocker: + $ref: '#/components/schemas/v1.FlockerVolumeSource' + gcePersistentDisk: + $ref: '#/components/schemas/v1.GCEPersistentDiskVolumeSource' + glusterfs: + $ref: '#/components/schemas/v1.GlusterfsPersistentVolumeSource' + hostPath: + $ref: '#/components/schemas/v1.HostPathVolumeSource' + iscsi: + $ref: '#/components/schemas/v1.ISCSIPersistentVolumeSource' + local: + $ref: '#/components/schemas/v1.LocalVolumeSource' + mountOptions: + description: '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' + items: + type: string + type: array + x-kubernetes-list-type: atomic + nfs: + $ref: '#/components/schemas/v1.NFSVolumeSource' + nodeAffinity: + $ref: '#/components/schemas/v1.VolumeNodeAffinity' + persistentVolumeReclaimPolicy: + description: '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' type: string - kind: - description: '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' + photonPersistentDisk: + $ref: '#/components/schemas/v1.PhotonPersistentDiskVolumeSource' + portworxVolume: + $ref: '#/components/schemas/v1.PortworxVolumeSource' + quobyte: + $ref: '#/components/schemas/v1.QuobyteVolumeSource' + rbd: + $ref: '#/components/schemas/v1.RBDPersistentVolumeSource' + scaleIO: + $ref: '#/components/schemas/v1.ScaleIOPersistentVolumeSource' + storageClassName: + description: storageClassName is the name of StorageClass to which this + persistent volume belongs. Empty value means that this volume does not + belong to any StorageClass. type: string - metadata: - $ref: '#/components/schemas/v1.ObjectMeta' - spec: - $ref: '#/components/schemas/v1.NamespaceSpec' - status: - $ref: '#/components/schemas/v1.NamespaceStatus' + storageos: + $ref: '#/components/schemas/v1.StorageOSPersistentVolumeSource' + volumeAttributesClassName: + description: 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). + type: string + volumeMode: + description: 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. + type: string + vsphereVolume: + $ref: '#/components/schemas/v1.VsphereVirtualDiskVolumeSource' type: object - x-kubernetes-group-version-kind: - - group: "" - kind: Namespace - version: v1 - x-implements: - - io.kubernetes.client.common.KubernetesObject - v1.NamespaceCondition: - description: NamespaceCondition contains details about state of namespace. + v1.PersistentVolumeStatus: + description: PersistentVolumeStatus is the current status of a persistent volume. example: + phase: phase reason: reason - lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + lastPhaseTransitionTime: 2000-01-23T04:56:07.000+00:00 message: message - type: type - status: status properties: - lastTransitionTime: - description: 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. + lastPhaseTransitionTime: + description: lastPhaseTransitionTime is the time the phase transitioned + from one to another and automatically resets to current time everytime + a volume phase transitions. format: date-time type: string message: + description: message is a human-readable message indicating details about + why the volume is in this state. type: string - reason: - type: string - status: - description: Status of the condition, one of True, False, Unknown. + phase: + description: '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' type: string - type: - description: Type of namespace controller condition. + reason: + description: reason is a brief CamelCase string that describes any failure + and is meant for machine parsing and tidy display in the CLI. type: string - required: - - status - - type type: object - v1.NamespaceList: - description: NamespaceList is a list of Namespaces. + v1.PhotonPersistentDiskVolumeSource: + description: Represents a Photon Controller persistent disk resource. example: - metadata: - remainingItemCount: 1 - continue: continue - resourceVersion: resourceVersion - selfLink: selfLink - apiVersion: apiVersion - kind: kind - items: - - metadata: - generation: 6 - finalizers: - - finalizers - - finalizers - resourceVersion: resourceVersion - annotations: - key: annotations - generateName: generateName - deletionTimestamp: 2000-01-23T04:56:07.000+00:00 - labels: - key: labels - ownerReferences: - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - selfLink: selfLink - deletionGracePeriodSeconds: 0 - uid: uid - managedFields: - - apiVersion: apiVersion - fieldsV1: '{}' - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - - apiVersion: apiVersion - fieldsV1: '{}' - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - creationTimestamp: 2000-01-23T04:56:07.000+00:00 - name: name - namespace: namespace - apiVersion: apiVersion - kind: kind - spec: - finalizers: - - finalizers - - finalizers - status: - phase: phase - conditions: - - reason: reason - lastTransitionTime: 2000-01-23T04:56:07.000+00:00 - message: message - type: type - status: status - - reason: reason - lastTransitionTime: 2000-01-23T04:56:07.000+00:00 - message: message - type: type - status: status - - metadata: - generation: 6 - finalizers: - - finalizers - - finalizers - resourceVersion: resourceVersion - annotations: - key: annotations - generateName: generateName - deletionTimestamp: 2000-01-23T04:56:07.000+00:00 - labels: - key: labels - ownerReferences: - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - selfLink: selfLink - deletionGracePeriodSeconds: 0 - uid: uid - managedFields: - - apiVersion: apiVersion - fieldsV1: '{}' - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - - apiVersion: apiVersion - fieldsV1: '{}' - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - creationTimestamp: 2000-01-23T04:56:07.000+00:00 - name: name - namespace: namespace - apiVersion: apiVersion - kind: kind - spec: - finalizers: - - finalizers - - finalizers - status: - phase: phase - conditions: - - reason: reason - lastTransitionTime: 2000-01-23T04:56:07.000+00:00 - message: message - type: type - status: status - - reason: reason - lastTransitionTime: 2000-01-23T04:56:07.000+00:00 - message: message - type: type - status: status + pdID: pdID + fsType: fsType properties: - apiVersion: - description: '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' + fsType: + description: 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. type: string - items: - description: 'Items is the list of Namespace objects in the list. More info: - https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/' - items: - $ref: '#/components/schemas/v1.Namespace' - type: array - kind: - description: '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' + pdID: + description: pdID is the ID that identifies Photon Controller persistent + disk type: string - metadata: - $ref: '#/components/schemas/v1.ListMeta' required: - - items - type: object - x-kubernetes-group-version-kind: - - group: "" - kind: NamespaceList - version: v1 - x-implements: - - io.kubernetes.client.common.KubernetesListObject - v1.NamespaceSpec: - description: NamespaceSpec describes the attributes on a Namespace. - example: - finalizers: - - finalizers - - finalizers - properties: - finalizers: - description: '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/' - items: - type: string - type: array - type: object - v1.NamespaceStatus: - description: NamespaceStatus is information about the current status of a Namespace. - example: - phase: phase - conditions: - - reason: reason - lastTransitionTime: 2000-01-23T04:56:07.000+00:00 - message: message - type: type - status: status - - reason: reason - lastTransitionTime: 2000-01-23T04:56:07.000+00:00 - message: message - type: type - status: status - properties: - conditions: - description: Represents the latest available observations of a namespace's - current state. - items: - $ref: '#/components/schemas/v1.NamespaceCondition' - type: array - x-kubernetes-patch-strategy: merge - x-kubernetes-patch-merge-key: type - phase: - description: 'Phase is the current lifecycle phase of the namespace. More - info: https://kubernetes.io/docs/tasks/administer-cluster/namespaces/' - type: string + - pdID type: object - v1.Node: - description: Node is a worker node in Kubernetes. Each node will have a unique - identifier in the cache (i.e. in etcd). + v1.Pod: + description: Pod is a collection of containers that can run on a host. This + resource is created by clients and scheduled onto hosts. example: metadata: generation: 6 @@ -158833,2344 +192376,2592 @@ components: apiVersion: apiVersion kind: kind spec: - podCIDRs: - - podCIDRs - - podCIDRs - providerID: providerID - externalID: externalID - taints: - - timeAdded: 2000-01-23T04:56:07.000+00:00 - effect: effect + dnsPolicy: dnsPolicy + nodeName: nodeName + terminationGracePeriodSeconds: 9 + dnsConfig: + searches: + - searches + - searches + nameservers: + - nameservers + - nameservers + options: + - name: name + value: value + - name: name + value: value + hostNetwork: true + readinessGates: + - conditionType: conditionType + - conditionType: conditionType + serviceAccountName: serviceAccountName + imagePullSecrets: + - name: name + - name: name + priorityClassName: priorityClassName + hostAliases: + - ip: ip + hostnames: + - hostnames + - hostnames + - ip: ip + hostnames: + - hostnames + - hostnames + securityContext: + seLinuxOptions: + role: role + level: level + type: type + user: user + appArmorProfile: + localhostProfile: localhostProfile + type: type + fsGroup: 7 + fsGroupChangePolicy: fsGroupChangePolicy + seLinuxChangePolicy: seLinuxChangePolicy + runAsGroup: 1 + runAsNonRoot: true + sysctls: + - name: name + value: value + - name: name + value: value + runAsUser: 4 + seccompProfile: + localhostProfile: localhostProfile + type: type + windowsOptions: + gmsaCredentialSpec: gmsaCredentialSpec + runAsUserName: runAsUserName + hostProcess: true + gmsaCredentialSpecName: gmsaCredentialSpecName + supplementalGroups: + - 5 + - 5 + supplementalGroupsPolicy: supplementalGroupsPolicy + preemptionPolicy: preemptionPolicy + nodeSelector: + key: nodeSelector + hostname: hostname + runtimeClassName: runtimeClassName + tolerations: + - effect: effect + tolerationSeconds: 9 value: value key: key - - timeAdded: 2000-01-23T04:56:07.000+00:00 - effect: effect + operator: operator + - effect: effect + tolerationSeconds: 9 value: value key: key - configSource: - configMap: - uid: uid - kubeletConfigKey: kubeletConfigKey - resourceVersion: resourceVersion - name: name - namespace: namespace - unschedulable: true - podCIDR: podCIDR - status: - daemonEndpoints: - kubeletEndpoint: - Port: 0 - phase: phase - allocatable: {} - volumesInUse: - - volumesInUse - - volumesInUse - addresses: - - address: address - type: type - - address: address - type: type - images: - - names: - - names - - names - sizeBytes: 6 - - names: - - names - - names - sizeBytes: 6 - nodeInfo: - machineID: machineID - bootID: bootID - containerRuntimeVersion: containerRuntimeVersion - kernelVersion: kernelVersion - kubeletVersion: kubeletVersion - systemUUID: systemUUID - kubeProxyVersion: kubeProxyVersion - operatingSystem: operatingSystem - architecture: architecture - osImage: osImage - conditions: - - reason: reason - lastHeartbeatTime: 2000-01-23T04:56:07.000+00:00 - lastTransitionTime: 2000-01-23T04:56:07.000+00:00 - message: message - type: type - status: status - - reason: reason - lastHeartbeatTime: 2000-01-23T04:56:07.000+00:00 - lastTransitionTime: 2000-01-23T04:56:07.000+00:00 - message: message - type: type - status: status - config: - lastKnownGood: - configMap: - uid: uid - kubeletConfigKey: kubeletConfigKey - resourceVersion: resourceVersion - name: name - namespace: namespace - active: - configMap: - uid: uid - kubeletConfigKey: kubeletConfigKey - resourceVersion: resourceVersion - name: name - namespace: namespace - assigned: - configMap: - uid: uid - kubeletConfigKey: kubeletConfigKey - resourceVersion: resourceVersion - name: name - namespace: namespace - error: error - volumesAttached: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name - capacity: {} - properties: - apiVersion: - description: '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' - type: string - kind: - description: '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' - type: string - metadata: - $ref: '#/components/schemas/v1.ObjectMeta' - spec: - $ref: '#/components/schemas/v1.NodeSpec' - status: - $ref: '#/components/schemas/v1.NodeStatus' - type: object - x-kubernetes-group-version-kind: - - group: "" - kind: Node - version: v1 - x-implements: - - io.kubernetes.client.common.KubernetesObject - v1.NodeAddress: - description: NodeAddress contains information for the node's address. - example: - address: address - type: type - properties: - address: - description: The node address. - type: string - type: - description: Node address type, one of Hostname, ExternalIP or InternalIP. - type: string - required: - - address - - type - type: object - v1.NodeAffinity: - description: Node affinity is a group of node affinity scheduling rules. - example: - requiredDuringSchedulingIgnoredDuringExecution: - nodeSelectorTerms: - - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchFields: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchFields: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - preferredDuringSchedulingIgnoredDuringExecution: - - preference: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchFields: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - weight: 6 - - preference: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchFields: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - weight: 6 - properties: - preferredDuringSchedulingIgnoredDuringExecution: - description: 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. - items: - $ref: '#/components/schemas/v1.PreferredSchedulingTerm' - type: array - requiredDuringSchedulingIgnoredDuringExecution: - $ref: '#/components/schemas/v1.NodeSelector' - type: object - v1.NodeCondition: - description: NodeCondition contains condition information for a node. - example: - reason: reason - lastHeartbeatTime: 2000-01-23T04:56:07.000+00:00 - lastTransitionTime: 2000-01-23T04:56:07.000+00:00 - message: message - type: type - status: status - properties: - lastHeartbeatTime: - description: Last time we got an update on a given condition. - format: date-time - type: string - lastTransitionTime: - description: Last time the condition transit from one status to another. - format: date-time - type: string - message: - description: Human readable message indicating details about last transition. - type: string - reason: - description: (brief) reason for the condition's last transition. - type: string - status: - description: Status of the condition, one of True, False, Unknown. - type: string - type: - description: Type of node condition. - type: string - required: - - status - - type - type: object - v1.NodeConfigSource: - description: NodeConfigSource specifies a source of node configuration. Exactly - one subfield (excluding metadata) must be non-nil. This API is deprecated - since 1.22 - example: - configMap: - uid: uid - kubeletConfigKey: kubeletConfigKey - resourceVersion: resourceVersion - name: name - namespace: namespace - properties: - configMap: - $ref: '#/components/schemas/v1.ConfigMapNodeConfigSource' - type: object - v1.NodeConfigStatus: - description: NodeConfigStatus describes the status of the config assigned by - Node.Spec.ConfigSource. - example: - lastKnownGood: - configMap: - uid: uid - kubeletConfigKey: kubeletConfigKey - resourceVersion: resourceVersion - name: name - namespace: namespace - active: - configMap: - uid: uid - kubeletConfigKey: kubeletConfigKey - resourceVersion: resourceVersion - name: name - namespace: namespace - assigned: - configMap: - uid: uid - kubeletConfigKey: kubeletConfigKey - resourceVersion: resourceVersion - name: name - namespace: namespace - error: error - properties: - active: - $ref: '#/components/schemas/v1.NodeConfigSource' - assigned: - $ref: '#/components/schemas/v1.NodeConfigSource' - error: - description: 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. - type: string - lastKnownGood: - $ref: '#/components/schemas/v1.NodeConfigSource' - type: object - v1.NodeDaemonEndpoints: - description: NodeDaemonEndpoints lists ports opened by daemons running on the - Node. - example: - kubeletEndpoint: - Port: 0 - properties: - kubeletEndpoint: - $ref: '#/components/schemas/v1.DaemonEndpoint' - type: object - v1.NodeList: - description: NodeList is the whole list of all Nodes which have been registered - with master. - example: - metadata: - remainingItemCount: 1 - continue: continue - resourceVersion: resourceVersion - selfLink: selfLink - apiVersion: apiVersion - kind: kind - items: - - metadata: - generation: 6 - finalizers: - - finalizers - - finalizers - resourceVersion: resourceVersion - annotations: - key: annotations - generateName: generateName - deletionTimestamp: 2000-01-23T04:56:07.000+00:00 - labels: - key: labels - ownerReferences: - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - selfLink: selfLink - deletionGracePeriodSeconds: 0 - uid: uid - managedFields: - - apiVersion: apiVersion - fieldsV1: '{}' - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - - apiVersion: apiVersion - fieldsV1: '{}' - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - creationTimestamp: 2000-01-23T04:56:07.000+00:00 + operator: operator + automountServiceAccountToken: true + schedulingGates: + - name: name + - name: name + schedulerName: schedulerName + activeDeadlineSeconds: 0 + os: name: name - namespace: namespace - apiVersion: apiVersion - kind: kind - spec: - podCIDRs: - - podCIDRs - - podCIDRs - providerID: providerID - externalID: externalID - taints: - - timeAdded: 2000-01-23T04:56:07.000+00:00 - effect: effect - value: value - key: key - - timeAdded: 2000-01-23T04:56:07.000+00:00 - effect: effect - value: value - key: key - configSource: - configMap: - uid: uid - kubeletConfigKey: kubeletConfigKey - resourceVersion: resourceVersion + setHostnameAsFQDN: true + enableServiceLinks: true + overhead: {} + hostIPC: true + topologySpreadConstraints: + - nodeTaintsPolicy: nodeTaintsPolicy + whenUnsatisfiable: whenUnsatisfiable + maxSkew: 6 + nodeAffinityPolicy: nodeAffinityPolicy + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + minDomains: 8 + topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + - nodeTaintsPolicy: nodeTaintsPolicy + whenUnsatisfiable: whenUnsatisfiable + maxSkew: 6 + nodeAffinityPolicy: nodeAffinityPolicy + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + minDomains: 8 + topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + volumes: + - quobyte: + volume: volume + registry: registry + readOnly: true + user: user + tenant: tenant + group: group + azureFile: + secretName: secretName + readOnly: true + shareName: shareName + flexVolume: + driver: driver + options: + key: options + secretRef: name: name - namespace: namespace - unschedulable: true - podCIDR: podCIDR - status: - daemonEndpoints: - kubeletEndpoint: - Port: 0 - phase: phase - allocatable: {} - volumesInUse: - - volumesInUse - - volumesInUse - addresses: - - address: address - type: type - - address: address - type: type - images: - - names: - - names - - names - sizeBytes: 6 - - names: - - names - - names - sizeBytes: 6 - nodeInfo: - machineID: machineID - bootID: bootID - containerRuntimeVersion: containerRuntimeVersion - kernelVersion: kernelVersion - kubeletVersion: kubeletVersion - systemUUID: systemUUID - kubeProxyVersion: kubeProxyVersion - operatingSystem: operatingSystem - architecture: architecture - osImage: osImage - conditions: - - reason: reason - lastHeartbeatTime: 2000-01-23T04:56:07.000+00:00 - lastTransitionTime: 2000-01-23T04:56:07.000+00:00 - message: message - type: type - status: status - - reason: reason - lastHeartbeatTime: 2000-01-23T04:56:07.000+00:00 - lastTransitionTime: 2000-01-23T04:56:07.000+00:00 - message: message - type: type - status: status - config: - lastKnownGood: + readOnly: true + fsType: fsType + ephemeral: + volumeClaimTemplate: + metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: '{}' + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: '{}' + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + creationTimestamp: 2000-01-23T04:56:07.000+00:00 + name: name + namespace: namespace + spec: + storageClassName: storageClassName + dataSourceRef: + apiGroup: apiGroup + kind: kind + name: name + namespace: namespace + volumeName: volumeName + volumeAttributesClassName: volumeAttributesClassName + resources: + requests: {} + limits: {} + selector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + accessModes: + - accessModes + - accessModes + dataSource: + apiGroup: apiGroup + kind: kind + name: name + volumeMode: volumeMode + secret: + secretName: secretName + defaultMode: 3 + optional: true + items: + - mode: 3 + path: path + key: key + - mode: 3 + path: path + key: key + projected: + sources: + - downwardAPI: + items: + - mode: 1 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - mode: 1 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath configMap: - uid: uid - kubeletConfigKey: kubeletConfigKey - resourceVersion: resourceVersion name: name - namespace: namespace - active: - configMap: - uid: uid - kubeletConfigKey: kubeletConfigKey - resourceVersion: resourceVersion + optional: true + items: + - mode: 3 + path: path + key: key + - mode: 3 + path: path + key: key + secret: name: name - namespace: namespace - assigned: + optional: true + items: + - mode: 3 + path: path + key: key + - mode: 3 + path: path + key: key + serviceAccountToken: + path: path + audience: audience + expirationSeconds: 6 + clusterTrustBundle: + path: path + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + name: name + optional: true + signerName: signerName + - downwardAPI: + items: + - mode: 1 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - mode: 1 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath configMap: - uid: uid - kubeletConfigKey: kubeletConfigKey - resourceVersion: resourceVersion name: name - namespace: namespace - error: error - volumesAttached: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name - capacity: {} - - metadata: - generation: 6 - finalizers: - - finalizers - - finalizers - resourceVersion: resourceVersion - annotations: - key: annotations - generateName: generateName - deletionTimestamp: 2000-01-23T04:56:07.000+00:00 - labels: - key: labels - ownerReferences: - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - - uid: uid - controller: true - apiVersion: apiVersion + optional: true + items: + - mode: 3 + path: path + key: key + - mode: 3 + path: path + key: key + secret: + name: name + optional: true + items: + - mode: 3 + path: path + key: key + - mode: 3 + path: path + key: key + serviceAccountToken: + path: path + audience: audience + expirationSeconds: 6 + clusterTrustBundle: + path: path + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + name: name + optional: true + signerName: signerName + defaultMode: 5 + cephfs: + path: path + secretRef: + name: name + secretFile: secretFile + readOnly: true + user: user + monitors: + - monitors + - monitors + scaleIO: + system: system + protectionDomain: protectionDomain + sslEnabled: true + storageMode: storageMode + volumeName: volumeName + secretRef: + name: name + readOnly: true + fsType: fsType + storagePool: storagePool + gateway: gateway + emptyDir: + sizeLimit: sizeLimit + medium: medium + glusterfs: + path: path + endpoints: endpoints + readOnly: true + gcePersistentDisk: + partition: 6 + readOnly: true + pdName: pdName + fsType: fsType + image: + reference: reference + pullPolicy: pullPolicy + photonPersistentDisk: + pdID: pdID + fsType: fsType + azureDisk: + diskName: diskName kind: kind + readOnly: true + cachingMode: cachingMode + diskURI: diskURI + fsType: fsType + cinder: + secretRef: + name: name + volumeID: volumeID + readOnly: true + fsType: fsType + downwardAPI: + defaultMode: 6 + items: + - mode: 1 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - mode: 1 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + awsElasticBlockStore: + partition: 9 + volumeID: volumeID + readOnly: true + fsType: fsType + flocker: + datasetName: datasetName + datasetUUID: datasetUUID + iscsi: + chapAuthSession: true + iscsiInterface: iscsiInterface + lun: 6 + chapAuthDiscovery: true + iqn: iqn + portals: + - portals + - portals + secretRef: + name: name + initiatorName: initiatorName + readOnly: true + fsType: fsType + targetPortal: targetPortal + rbd: + image: image + pool: pool + secretRef: + name: name + readOnly: true + fsType: fsType + keyring: keyring + user: user + monitors: + - monitors + - monitors + configMap: + defaultMode: 6 name: name - blockOwnerDeletion: true - selfLink: selfLink - deletionGracePeriodSeconds: 0 - uid: uid - managedFields: - - apiVersion: apiVersion - fieldsV1: '{}' - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - - apiVersion: apiVersion - fieldsV1: '{}' - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - creationTimestamp: 2000-01-23T04:56:07.000+00:00 - name: name - namespace: namespace - apiVersion: apiVersion - kind: kind - spec: - podCIDRs: - - podCIDRs - - podCIDRs - providerID: providerID - externalID: externalID - taints: - - timeAdded: 2000-01-23T04:56:07.000+00:00 - effect: effect - value: value - key: key - - timeAdded: 2000-01-23T04:56:07.000+00:00 - effect: effect - value: value - key: key - configSource: - configMap: - uid: uid - kubeletConfigKey: kubeletConfigKey - resourceVersion: resourceVersion + optional: true + items: + - mode: 3 + path: path + key: key + - mode: 3 + path: path + key: key + storageos: + volumeNamespace: volumeNamespace + volumeName: volumeName + secretRef: name: name - namespace: namespace - unschedulable: true - podCIDR: podCIDR - status: - daemonEndpoints: - kubeletEndpoint: - Port: 0 - phase: phase - allocatable: {} - volumesInUse: - - volumesInUse - - volumesInUse - addresses: - - address: address - type: type - - address: address - type: type - images: - - names: - - names - - names - sizeBytes: 6 - - names: - - names - - names - sizeBytes: 6 - nodeInfo: - machineID: machineID - bootID: bootID - containerRuntimeVersion: containerRuntimeVersion - kernelVersion: kernelVersion - kubeletVersion: kubeletVersion - systemUUID: systemUUID - kubeProxyVersion: kubeProxyVersion - operatingSystem: operatingSystem - architecture: architecture - osImage: osImage - conditions: - - reason: reason - lastHeartbeatTime: 2000-01-23T04:56:07.000+00:00 - lastTransitionTime: 2000-01-23T04:56:07.000+00:00 - message: message - type: type - status: status - - reason: reason - lastHeartbeatTime: 2000-01-23T04:56:07.000+00:00 - lastTransitionTime: 2000-01-23T04:56:07.000+00:00 - message: message + readOnly: true + fsType: fsType + csi: + driver: driver + nodePublishSecretRef: + name: name + readOnly: true + fsType: fsType + volumeAttributes: + key: volumeAttributes + name: name + nfs: + path: path + server: server + readOnly: true + persistentVolumeClaim: + claimName: claimName + readOnly: true + gitRepo: + repository: repository + directory: directory + revision: revision + portworxVolume: + volumeID: volumeID + readOnly: true + fsType: fsType + vsphereVolume: + storagePolicyName: storagePolicyName + storagePolicyID: storagePolicyID + volumePath: volumePath + fsType: fsType + fc: + lun: 2 + targetWWNs: + - targetWWNs + - targetWWNs + readOnly: true + wwids: + - wwids + - wwids + fsType: fsType + hostPath: + path: path type: type - status: status - config: - lastKnownGood: - configMap: - uid: uid - kubeletConfigKey: kubeletConfigKey + - quobyte: + volume: volume + registry: registry + readOnly: true + user: user + tenant: tenant + group: group + azureFile: + secretName: secretName + readOnly: true + shareName: shareName + flexVolume: + driver: driver + options: + key: options + secretRef: + name: name + readOnly: true + fsType: fsType + ephemeral: + volumeClaimTemplate: + metadata: + generation: 6 + finalizers: + - finalizers + - finalizers resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: '{}' + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: '{}' + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + creationTimestamp: 2000-01-23T04:56:07.000+00:00 name: name namespace: namespace - active: + spec: + storageClassName: storageClassName + dataSourceRef: + apiGroup: apiGroup + kind: kind + name: name + namespace: namespace + volumeName: volumeName + volumeAttributesClassName: volumeAttributesClassName + resources: + requests: {} + limits: {} + selector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + accessModes: + - accessModes + - accessModes + dataSource: + apiGroup: apiGroup + kind: kind + name: name + volumeMode: volumeMode + secret: + secretName: secretName + defaultMode: 3 + optional: true + items: + - mode: 3 + path: path + key: key + - mode: 3 + path: path + key: key + projected: + sources: + - downwardAPI: + items: + - mode: 1 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - mode: 1 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath configMap: - uid: uid - kubeletConfigKey: kubeletConfigKey - resourceVersion: resourceVersion name: name - namespace: namespace - assigned: + optional: true + items: + - mode: 3 + path: path + key: key + - mode: 3 + path: path + key: key + secret: + name: name + optional: true + items: + - mode: 3 + path: path + key: key + - mode: 3 + path: path + key: key + serviceAccountToken: + path: path + audience: audience + expirationSeconds: 6 + clusterTrustBundle: + path: path + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + name: name + optional: true + signerName: signerName + - downwardAPI: + items: + - mode: 1 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - mode: 1 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath configMap: - uid: uid - kubeletConfigKey: kubeletConfigKey - resourceVersion: resourceVersion name: name - namespace: namespace - error: error - volumesAttached: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name - capacity: {} - properties: - apiVersion: - description: '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' - type: string - items: - description: List of nodes - items: - $ref: '#/components/schemas/v1.Node' - type: array - kind: - description: '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' - type: string - metadata: - $ref: '#/components/schemas/v1.ListMeta' - required: - - items - type: object - x-kubernetes-group-version-kind: - - group: "" - kind: NodeList - version: v1 - x-implements: - - io.kubernetes.client.common.KubernetesListObject - v1.NodeSelector: - 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. - example: - nodeSelectorTerms: - - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchFields: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchFields: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - properties: - nodeSelectorTerms: - description: Required. A list of node selector terms. The terms are ORed. - items: - $ref: '#/components/schemas/v1.NodeSelectorTerm' - type: array - required: - - nodeSelectorTerms - type: object - x-kubernetes-map-type: atomic - v1.NodeSelectorRequirement: - description: A node selector requirement is a selector that contains values, - a key, and an operator that relates the key and values. - example: - values: - - values - - values - key: key - operator: operator - properties: - key: - description: The label key that the selector applies to. - type: string - operator: - description: Represents a key's relationship to a set of values. Valid operators - are In, NotIn, Exists, DoesNotExist. Gt, and Lt. - type: string - values: - description: 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. - items: - type: string - type: array - required: - - key - - operator - type: object - v1.NodeSelectorTerm: - 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. - example: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchFields: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - properties: - matchExpressions: - description: A list of node selector requirements by node's labels. - items: - $ref: '#/components/schemas/v1.NodeSelectorRequirement' - type: array - matchFields: - description: A list of node selector requirements by node's fields. - items: - $ref: '#/components/schemas/v1.NodeSelectorRequirement' - type: array - type: object - x-kubernetes-map-type: atomic - v1.NodeSpec: - description: NodeSpec describes the attributes that a node is created with. - example: - podCIDRs: - - podCIDRs - - podCIDRs - providerID: providerID - externalID: externalID - taints: - - timeAdded: 2000-01-23T04:56:07.000+00:00 - effect: effect - value: value - key: key - - timeAdded: 2000-01-23T04:56:07.000+00:00 - effect: effect - value: value - key: key - configSource: - configMap: - uid: uid - kubeletConfigKey: kubeletConfigKey - resourceVersion: resourceVersion - name: name - namespace: namespace - unschedulable: true - podCIDR: podCIDR - properties: - configSource: - $ref: '#/components/schemas/v1.NodeConfigSource' - externalID: - description: 'Deprecated. Not all kubelets will set this field. Remove field - after 1.13. see: https://issues.k8s.io/61966' - type: string - podCIDR: - description: PodCIDR represents the pod IP range assigned to the node. - type: string - podCIDRs: - description: 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. - items: - type: string - type: array - x-kubernetes-patch-strategy: merge - providerID: - description: 'ID of the node assigned by the cloud provider in the format: - ://' - type: string - taints: - description: If specified, the node's taints. - items: - $ref: '#/components/schemas/v1.Taint' - type: array - unschedulable: - description: 'Unschedulable controls node schedulability of new pods. By - default, node is schedulable. More info: https://kubernetes.io/docs/concepts/nodes/node/#manual-node-administration' - type: boolean - type: object - v1.NodeStatus: - description: NodeStatus is information about the current status of a node. - example: - daemonEndpoints: - kubeletEndpoint: - Port: 0 - phase: phase - allocatable: {} - volumesInUse: - - volumesInUse - - volumesInUse - addresses: - - address: address - type: type - - address: address - type: type - images: - - names: - - names - - names - sizeBytes: 6 - - names: - - names - - names - sizeBytes: 6 - nodeInfo: - machineID: machineID - bootID: bootID - containerRuntimeVersion: containerRuntimeVersion - kernelVersion: kernelVersion - kubeletVersion: kubeletVersion - systemUUID: systemUUID - kubeProxyVersion: kubeProxyVersion - operatingSystem: operatingSystem - architecture: architecture - osImage: osImage - conditions: - - reason: reason - lastHeartbeatTime: 2000-01-23T04:56:07.000+00:00 - lastTransitionTime: 2000-01-23T04:56:07.000+00:00 - message: message - type: type - status: status - - reason: reason - lastHeartbeatTime: 2000-01-23T04:56:07.000+00:00 - lastTransitionTime: 2000-01-23T04:56:07.000+00:00 - message: message - type: type - status: status - config: - lastKnownGood: + optional: true + items: + - mode: 3 + path: path + key: key + - mode: 3 + path: path + key: key + secret: + name: name + optional: true + items: + - mode: 3 + path: path + key: key + - mode: 3 + path: path + key: key + serviceAccountToken: + path: path + audience: audience + expirationSeconds: 6 + clusterTrustBundle: + path: path + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + name: name + optional: true + signerName: signerName + defaultMode: 5 + cephfs: + path: path + secretRef: + name: name + secretFile: secretFile + readOnly: true + user: user + monitors: + - monitors + - monitors + scaleIO: + system: system + protectionDomain: protectionDomain + sslEnabled: true + storageMode: storageMode + volumeName: volumeName + secretRef: + name: name + readOnly: true + fsType: fsType + storagePool: storagePool + gateway: gateway + emptyDir: + sizeLimit: sizeLimit + medium: medium + glusterfs: + path: path + endpoints: endpoints + readOnly: true + gcePersistentDisk: + partition: 6 + readOnly: true + pdName: pdName + fsType: fsType + image: + reference: reference + pullPolicy: pullPolicy + photonPersistentDisk: + pdID: pdID + fsType: fsType + azureDisk: + diskName: diskName + kind: kind + readOnly: true + cachingMode: cachingMode + diskURI: diskURI + fsType: fsType + cinder: + secretRef: + name: name + volumeID: volumeID + readOnly: true + fsType: fsType + downwardAPI: + defaultMode: 6 + items: + - mode: 1 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - mode: 1 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + awsElasticBlockStore: + partition: 9 + volumeID: volumeID + readOnly: true + fsType: fsType + flocker: + datasetName: datasetName + datasetUUID: datasetUUID + iscsi: + chapAuthSession: true + iscsiInterface: iscsiInterface + lun: 6 + chapAuthDiscovery: true + iqn: iqn + portals: + - portals + - portals + secretRef: + name: name + initiatorName: initiatorName + readOnly: true + fsType: fsType + targetPortal: targetPortal + rbd: + image: image + pool: pool + secretRef: + name: name + readOnly: true + fsType: fsType + keyring: keyring + user: user + monitors: + - monitors + - monitors configMap: - uid: uid - kubeletConfigKey: kubeletConfigKey - resourceVersion: resourceVersion + defaultMode: 6 + name: name + optional: true + items: + - mode: 3 + path: path + key: key + - mode: 3 + path: path + key: key + storageos: + volumeNamespace: volumeNamespace + volumeName: volumeName + secretRef: + name: name + readOnly: true + fsType: fsType + csi: + driver: driver + nodePublishSecretRef: + name: name + readOnly: true + fsType: fsType + volumeAttributes: + key: volumeAttributes + name: name + nfs: + path: path + server: server + readOnly: true + persistentVolumeClaim: + claimName: claimName + readOnly: true + gitRepo: + repository: repository + directory: directory + revision: revision + portworxVolume: + volumeID: volumeID + readOnly: true + fsType: fsType + vsphereVolume: + storagePolicyName: storagePolicyName + storagePolicyID: storagePolicyID + volumePath: volumePath + fsType: fsType + fc: + lun: 2 + targetWWNs: + - targetWWNs + - targetWWNs + readOnly: true + wwids: + - wwids + - wwids + fsType: fsType + hostPath: + path: path + type: type + resources: + claims: + - request: request name: name - namespace: namespace - active: - configMap: - uid: uid - kubeletConfigKey: kubeletConfigKey - resourceVersion: resourceVersion + - request: request name: name - namespace: namespace - assigned: - configMap: - uid: uid - kubeletConfigKey: kubeletConfigKey - resourceVersion: resourceVersion + requests: {} + limits: {} + ephemeralContainers: + - volumeDevices: + - devicePath: devicePath name: name - namespace: namespace - error: error - volumesAttached: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name - capacity: {} - properties: - addresses: - description: '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).' - items: - $ref: '#/components/schemas/v1.NodeAddress' - type: array - x-kubernetes-patch-strategy: merge - x-kubernetes-patch-merge-key: type - allocatable: - additionalProperties: - $ref: '#/components/schemas/resource.Quantity' - description: Allocatable represents the resources of a node that are available - for scheduling. Defaults to Capacity. - type: object - capacity: - additionalProperties: - $ref: '#/components/schemas/resource.Quantity' - description: 'Capacity represents the total resources of a node. More info: - https://kubernetes.io/docs/concepts/storage/persistent-volumes#capacity' - type: object - conditions: - description: 'Conditions is an array of current observed node conditions. - More info: https://kubernetes.io/docs/concepts/nodes/node/#condition' - items: - $ref: '#/components/schemas/v1.NodeCondition' - type: array - x-kubernetes-patch-strategy: merge - x-kubernetes-patch-merge-key: type - config: - $ref: '#/components/schemas/v1.NodeConfigStatus' - daemonEndpoints: - $ref: '#/components/schemas/v1.NodeDaemonEndpoints' - images: - description: List of container images on this node - items: - $ref: '#/components/schemas/v1.ContainerImage' - type: array - nodeInfo: - $ref: '#/components/schemas/v1.NodeSystemInfo' - phase: - description: '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.' - type: string - volumesAttached: - description: List of volumes that are attached to the node. - items: - $ref: '#/components/schemas/v1.AttachedVolume' - type: array - volumesInUse: - description: List of attachable volumes in use (mounted) by the node. - items: - type: string - type: array - type: object - v1.NodeSystemInfo: - description: NodeSystemInfo is a set of ids/uuids to uniquely identify the node. - example: - machineID: machineID - bootID: bootID - containerRuntimeVersion: containerRuntimeVersion - kernelVersion: kernelVersion - kubeletVersion: kubeletVersion - systemUUID: systemUUID - kubeProxyVersion: kubeProxyVersion - operatingSystem: operatingSystem - architecture: architecture - osImage: osImage - properties: - architecture: - description: The Architecture reported by the node - type: string - bootID: - description: Boot ID reported by the node. - type: string - containerRuntimeVersion: - description: ContainerRuntime Version reported by the node through runtime - remote API (e.g. containerd://1.4.2). - type: string - kernelVersion: - description: Kernel Version reported by the node from 'uname -r' (e.g. 3.16.0-0.bpo.4-amd64). - type: string - kubeProxyVersion: - description: KubeProxy Version reported by the node. - type: string - kubeletVersion: - description: Kubelet Version reported by the node. - type: string - machineID: - description: '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' - type: string - operatingSystem: - description: The Operating System reported by the node - type: string - osImage: - description: OS Image reported by the node from /etc/os-release (e.g. Debian - GNU/Linux 7 (wheezy)). - type: string - systemUUID: - description: 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 - type: string - required: - - architecture - - bootID - - containerRuntimeVersion - - kernelVersion - - kubeProxyVersion - - kubeletVersion - - machineID - - operatingSystem - - osImage - - systemUUID - type: object - v1.ObjectFieldSelector: - description: ObjectFieldSelector selects an APIVersioned field of an object. - example: - apiVersion: apiVersion - fieldPath: fieldPath - properties: - apiVersion: - description: Version of the schema the FieldPath is written in terms of, - defaults to "v1". - type: string - fieldPath: - description: Path of the field to select in the specified API version. - type: string - required: - - fieldPath - type: object - x-kubernetes-map-type: atomic - v1.ObjectReference: - description: ObjectReference contains enough information to let you inspect - or modify the referred object. - example: - uid: uid - apiVersion: apiVersion - kind: kind - resourceVersion: resourceVersion - fieldPath: fieldPath - name: name - namespace: namespace - properties: - apiVersion: - description: API version of the referent. - type: string - fieldPath: - description: '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.' - type: string - kind: - description: 'Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds' - type: string - name: - description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names' - type: string - namespace: - description: 'Namespace of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/' - type: string - resourceVersion: - description: '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' - type: string - uid: - description: 'UID of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#uids' - type: string - type: object - x-kubernetes-map-type: atomic - v1.PersistentVolume: - 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' - example: - metadata: - generation: 6 - finalizers: - - finalizers - - finalizers - resourceVersion: resourceVersion - annotations: - key: annotations - generateName: generateName - deletionTimestamp: 2000-01-23T04:56:07.000+00:00 - labels: - key: labels - ownerReferences: - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - selfLink: selfLink - deletionGracePeriodSeconds: 0 - uid: uid - managedFields: - - apiVersion: apiVersion - fieldsV1: '{}' - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - - apiVersion: apiVersion - fieldsV1: '{}' - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - creationTimestamp: 2000-01-23T04:56:07.000+00:00 - name: name - namespace: namespace - apiVersion: apiVersion - kind: kind - spec: - claimRef: - uid: uid - apiVersion: apiVersion - kind: kind - resourceVersion: resourceVersion - fieldPath: fieldPath - name: name - namespace: namespace - quobyte: - volume: volume - registry: registry - readOnly: true - user: user - tenant: tenant - group: group - azureFile: - secretName: secretName - secretNamespace: secretNamespace - readOnly: true - shareName: shareName - flexVolume: - driver: driver - options: - key: options - secretRef: + - devicePath: devicePath name: name - namespace: namespace - readOnly: true - fsType: fsType - mountOptions: - - mountOptions - - mountOptions - local: - path: path - fsType: fsType - capacity: {} - cephfs: - path: path - secretRef: + stdin: true + terminationMessagePolicy: terminationMessagePolicy + securityContext: + privileged: true + runAsUser: 1 + capabilities: + add: + - add + - add + drop: + - drop + - drop + seLinuxOptions: + role: role + level: level + type: type + user: user + appArmorProfile: + localhostProfile: localhostProfile + type: type + seccompProfile: + localhostProfile: localhostProfile + type: type + windowsOptions: + gmsaCredentialSpec: gmsaCredentialSpec + runAsUserName: runAsUserName + hostProcess: true + gmsaCredentialSpecName: gmsaCredentialSpecName + procMount: procMount + allowPrivilegeEscalation: true + runAsGroup: 1 + runAsNonRoot: true + readOnlyRootFilesystem: true + startupProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: port + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + ports: + - protocol: protocol + hostIP: hostIP name: name - namespace: namespace - secretFile: secretFile - readOnly: true - user: user - monitors: - - monitors - - monitors - scaleIO: - system: system - protectionDomain: protectionDomain - sslEnabled: true - storageMode: storageMode - volumeName: volumeName - secretRef: + containerPort: 7 + hostPort: 1 + - protocol: protocol + hostIP: hostIP name: name - namespace: namespace - readOnly: true - fsType: fsType - storagePool: storagePool - gateway: gateway - accessModes: - - accessModes - - accessModes - glusterfs: - path: path - endpoints: endpoints - readOnly: true - endpointsNamespace: endpointsNamespace - gcePersistentDisk: - partition: 2 - readOnly: true - pdName: pdName - fsType: fsType - photonPersistentDisk: - pdID: pdID - fsType: fsType - azureDisk: - diskName: diskName - kind: kind - readOnly: true - cachingMode: cachingMode - diskURI: diskURI - fsType: fsType - cinder: - secretRef: + containerPort: 7 + hostPort: 1 + volumeMounts: + - mountPath: mountPath + mountPropagation: mountPropagation name: name - namespace: namespace - volumeID: volumeID - readOnly: true - fsType: fsType - awsElasticBlockStore: - partition: 8 - volumeID: volumeID - readOnly: true - fsType: fsType - nodeAffinity: - required: - nodeSelectorTerms: - - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchFields: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - - matchExpressions: - - values: - - values - - values + readOnly: true + subPath: subPath + recursiveReadOnly: recursiveReadOnly + subPathExpr: subPathExpr + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + recursiveReadOnly: recursiveReadOnly + subPathExpr: subPathExpr + lifecycle: + postStart: + sleep: + seconds: 5 + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + preStop: + sleep: + seconds: 5 + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + stopSignal: stopSignal + readinessProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: port + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + resizePolicy: + - resourceName: resourceName + restartPolicy: restartPolicy + - resourceName: resourceName + restartPolicy: restartPolicy + envFrom: + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + image: image + imagePullPolicy: imagePullPolicy + livenessProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: port + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + targetContainerName: targetContainerName + terminationMessagePath: terminationMessagePath + workingDir: workingDir + resources: + claims: + - request: request + name: name + - request: request + name: name + requests: {} + limits: {} + env: + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true key: key - operator: operator - - values: - - values - - values + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true key: key - operator: operator - matchFields: - - values: - - values - - values + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true key: key - operator: operator - - values: - - values - - values + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true key: key - operator: operator - flocker: - datasetName: datasetName - datasetUUID: datasetUUID - volumeMode: volumeMode - iscsi: - chapAuthSession: true - iscsiInterface: iscsiInterface - lun: 0 - chapAuthDiscovery: true - iqn: iqn - portals: - - portals - - portals - secretRef: - name: name - namespace: namespace - initiatorName: initiatorName - readOnly: true - fsType: fsType - targetPortal: targetPortal - rbd: - image: image - pool: pool - secretRef: - name: name - namespace: namespace - readOnly: true - fsType: fsType - keyring: keyring - user: user - monitors: - - monitors - - monitors - storageClassName: storageClassName - storageos: - volumeNamespace: volumeNamespace - volumeName: volumeName - secretRef: - uid: uid - apiVersion: apiVersion - kind: kind - resourceVersion: resourceVersion - fieldPath: fieldPath + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + restartPolicy: restartPolicy + command: + - command + - command + args: + - args + - args + name: name + tty: true + stdinOnce: true + - volumeDevices: + - devicePath: devicePath name: name - namespace: namespace - readOnly: true - fsType: fsType - csi: - controllerPublishSecretRef: + - devicePath: devicePath name: name - namespace: namespace - driver: driver - nodePublishSecretRef: + stdin: true + terminationMessagePolicy: terminationMessagePolicy + securityContext: + privileged: true + runAsUser: 1 + capabilities: + add: + - add + - add + drop: + - drop + - drop + seLinuxOptions: + role: role + level: level + type: type + user: user + appArmorProfile: + localhostProfile: localhostProfile + type: type + seccompProfile: + localhostProfile: localhostProfile + type: type + windowsOptions: + gmsaCredentialSpec: gmsaCredentialSpec + runAsUserName: runAsUserName + hostProcess: true + gmsaCredentialSpecName: gmsaCredentialSpecName + procMount: procMount + allowPrivilegeEscalation: true + runAsGroup: 1 + runAsNonRoot: true + readOnlyRootFilesystem: true + startupProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: port + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + ports: + - protocol: protocol + hostIP: hostIP name: name - namespace: namespace - nodeStageSecretRef: + containerPort: 7 + hostPort: 1 + - protocol: protocol + hostIP: hostIP name: name - namespace: namespace - volumeHandle: volumeHandle - nodeExpandSecretRef: + containerPort: 7 + hostPort: 1 + volumeMounts: + - mountPath: mountPath + mountPropagation: mountPropagation name: name - namespace: namespace - readOnly: true - controllerExpandSecretRef: + readOnly: true + subPath: subPath + recursiveReadOnly: recursiveReadOnly + subPathExpr: subPathExpr + - mountPath: mountPath + mountPropagation: mountPropagation name: name - namespace: namespace - fsType: fsType - volumeAttributes: - key: volumeAttributes - nfs: - path: path - server: server - readOnly: true - persistentVolumeReclaimPolicy: persistentVolumeReclaimPolicy - portworxVolume: - volumeID: volumeID - readOnly: true - fsType: fsType - vsphereVolume: - storagePolicyName: storagePolicyName - storagePolicyID: storagePolicyID - volumePath: volumePath - fsType: fsType - fc: - lun: 1 - targetWWNs: - - targetWWNs - - targetWWNs - readOnly: true - wwids: - - wwids - - wwids - fsType: fsType - hostPath: - path: path - type: type - status: - phase: phase - reason: reason - lastPhaseTransitionTime: 2000-01-23T04:56:07.000+00:00 - message: message - properties: - apiVersion: - description: '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' - type: string - kind: - description: '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' - type: string - metadata: - $ref: '#/components/schemas/v1.ObjectMeta' - spec: - $ref: '#/components/schemas/v1.PersistentVolumeSpec' - status: - $ref: '#/components/schemas/v1.PersistentVolumeStatus' - type: object - x-kubernetes-group-version-kind: - - group: "" - kind: PersistentVolume - version: v1 - x-implements: - - io.kubernetes.client.common.KubernetesObject - v1.PersistentVolumeClaim: - description: PersistentVolumeClaim is a user's request for and claim to a persistent - volume - example: - metadata: - generation: 6 - finalizers: - - finalizers - - finalizers - resourceVersion: resourceVersion - annotations: - key: annotations - generateName: generateName - deletionTimestamp: 2000-01-23T04:56:07.000+00:00 - labels: - key: labels - ownerReferences: - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - selfLink: selfLink - deletionGracePeriodSeconds: 0 - uid: uid - managedFields: - - apiVersion: apiVersion - fieldsV1: '{}' - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - - apiVersion: apiVersion - fieldsV1: '{}' - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - creationTimestamp: 2000-01-23T04:56:07.000+00:00 - name: name - namespace: namespace - apiVersion: apiVersion - kind: kind - spec: - storageClassName: storageClassName - dataSourceRef: - apiGroup: apiGroup - kind: kind - name: name - namespace: namespace - volumeName: volumeName - resources: - claims: + readOnly: true + subPath: subPath + recursiveReadOnly: recursiveReadOnly + subPathExpr: subPathExpr + lifecycle: + postStart: + sleep: + seconds: 5 + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + preStop: + sleep: + seconds: 5 + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + stopSignal: stopSignal + readinessProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: port + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + resizePolicy: + - resourceName: resourceName + restartPolicy: restartPolicy + - resourceName: resourceName + restartPolicy: restartPolicy + envFrom: + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + image: image + imagePullPolicy: imagePullPolicy + livenessProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: port + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + targetContainerName: targetContainerName + terminationMessagePath: terminationMessagePath + workingDir: workingDir + resources: + claims: + - request: request + name: name + - request: request + name: name + requests: {} + limits: {} + env: - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath - name: name - requests: {} - limits: {} - selector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - accessModes: - - accessModes - - accessModes - dataSource: - apiGroup: apiGroup - kind: kind + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + restartPolicy: restartPolicy + command: + - command + - command + args: + - args + - args name: name - volumeMode: volumeMode - status: - phase: phase - allocatedResources: {} - allocatedResourceStatuses: - key: allocatedResourceStatuses - accessModes: - - accessModes - - accessModes - conditions: - - reason: reason - lastTransitionTime: 2000-01-23T04:56:07.000+00:00 - message: message - type: type - lastProbeTime: 2000-01-23T04:56:07.000+00:00 - status: status - - reason: reason - lastTransitionTime: 2000-01-23T04:56:07.000+00:00 - message: message - type: type - lastProbeTime: 2000-01-23T04:56:07.000+00:00 - status: status - capacity: {} - properties: - apiVersion: - description: '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' - type: string - kind: - description: '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' - type: string - metadata: - $ref: '#/components/schemas/v1.ObjectMeta' - spec: - $ref: '#/components/schemas/v1.PersistentVolumeClaimSpec' - status: - $ref: '#/components/schemas/v1.PersistentVolumeClaimStatus' - type: object - x-kubernetes-group-version-kind: - - group: "" - kind: PersistentVolumeClaim - version: v1 - x-implements: - - io.kubernetes.client.common.KubernetesObject - v1.PersistentVolumeClaimCondition: - description: PersistentVolumeClaimCondition contains details about state of - pvc - example: - reason: reason - lastTransitionTime: 2000-01-23T04:56:07.000+00:00 - message: message - type: type - lastProbeTime: 2000-01-23T04:56:07.000+00:00 - status: status - properties: - lastProbeTime: - description: lastProbeTime is the time we probed the condition. - format: date-time - type: string - lastTransitionTime: - description: lastTransitionTime is the time the condition transitioned from - one status to another. - format: date-time - type: string - message: - description: message is the human-readable message indicating details about - last transition. - type: string - reason: - description: reason is a unique, this should be a short, machine understandable - string that gives the reason for condition's last transition. If it reports - "ResizeStarted" that means the underlying persistent volume is being resized. - type: string - status: - type: string - type: - type: string - required: - - status - - type - type: object - v1.PersistentVolumeClaimList: - description: PersistentVolumeClaimList is a list of PersistentVolumeClaim items. - example: - metadata: - remainingItemCount: 1 - continue: continue - resourceVersion: resourceVersion - selfLink: selfLink - apiVersion: apiVersion - kind: kind - items: - - metadata: - generation: 6 - finalizers: - - finalizers - - finalizers - resourceVersion: resourceVersion - annotations: - key: annotations - generateName: generateName - deletionTimestamp: 2000-01-23T04:56:07.000+00:00 - labels: - key: labels - ownerReferences: - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - selfLink: selfLink - deletionGracePeriodSeconds: 0 - uid: uid - managedFields: - - apiVersion: apiVersion - fieldsV1: '{}' - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - - apiVersion: apiVersion - fieldsV1: '{}' - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - creationTimestamp: 2000-01-23T04:56:07.000+00:00 + tty: true + stdinOnce: true + serviceAccount: serviceAccount + priority: 6 + restartPolicy: restartPolicy + shareProcessNamespace: true + hostUsers: true + resourceClaims: + - resourceClaimName: resourceClaimName name: name - namespace: namespace - apiVersion: apiVersion - kind: kind - spec: - storageClassName: storageClassName - dataSourceRef: - apiGroup: apiGroup - kind: kind + resourceClaimTemplateName: resourceClaimTemplateName + - resourceClaimName: resourceClaimName + name: name + resourceClaimTemplateName: resourceClaimTemplateName + subdomain: subdomain + containers: + - volumeDevices: + - devicePath: devicePath name: name - namespace: namespace - volumeName: volumeName + - devicePath: devicePath + name: name + image: image + imagePullPolicy: imagePullPolicy + livenessProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: port + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + stdin: true + terminationMessagePolicy: terminationMessagePolicy + terminationMessagePath: terminationMessagePath + workingDir: workingDir resources: claims: - - name: name - - name: name + - request: request + name: name + - request: request + name: name requests: {} limits: {} - selector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - accessModes: - - accessModes - - accessModes - dataSource: - apiGroup: apiGroup - kind: kind + securityContext: + privileged: true + runAsUser: 1 + capabilities: + add: + - add + - add + drop: + - drop + - drop + seLinuxOptions: + role: role + level: level + type: type + user: user + appArmorProfile: + localhostProfile: localhostProfile + type: type + seccompProfile: + localhostProfile: localhostProfile + type: type + windowsOptions: + gmsaCredentialSpec: gmsaCredentialSpec + runAsUserName: runAsUserName + hostProcess: true + gmsaCredentialSpecName: gmsaCredentialSpecName + procMount: procMount + allowPrivilegeEscalation: true + runAsGroup: 1 + runAsNonRoot: true + readOnlyRootFilesystem: true + startupProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: port + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + env: + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + ports: + - protocol: protocol + hostIP: hostIP name: name - volumeMode: volumeMode - status: - phase: phase - allocatedResources: {} - allocatedResourceStatuses: - key: allocatedResourceStatuses - accessModes: - - accessModes - - accessModes - conditions: - - reason: reason - lastTransitionTime: 2000-01-23T04:56:07.000+00:00 - message: message - type: type - lastProbeTime: 2000-01-23T04:56:07.000+00:00 - status: status - - reason: reason - lastTransitionTime: 2000-01-23T04:56:07.000+00:00 - message: message - type: type - lastProbeTime: 2000-01-23T04:56:07.000+00:00 - status: status - capacity: {} - - metadata: - generation: 6 - finalizers: - - finalizers - - finalizers - resourceVersion: resourceVersion - annotations: - key: annotations - generateName: generateName - deletionTimestamp: 2000-01-23T04:56:07.000+00:00 - labels: - key: labels - ownerReferences: - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind + containerPort: 7 + hostPort: 1 + - protocol: protocol + hostIP: hostIP name: name - blockOwnerDeletion: true - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind + containerPort: 7 + hostPort: 1 + restartPolicy: restartPolicy + command: + - command + - command + volumeMounts: + - mountPath: mountPath + mountPropagation: mountPropagation name: name - blockOwnerDeletion: true - selfLink: selfLink - deletionGracePeriodSeconds: 0 - uid: uid - managedFields: - - apiVersion: apiVersion - fieldsV1: '{}' - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - - apiVersion: apiVersion - fieldsV1: '{}' - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - creationTimestamp: 2000-01-23T04:56:07.000+00:00 + readOnly: true + subPath: subPath + recursiveReadOnly: recursiveReadOnly + subPathExpr: subPathExpr + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + recursiveReadOnly: recursiveReadOnly + subPathExpr: subPathExpr + args: + - args + - args + lifecycle: + postStart: + sleep: + seconds: 5 + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + preStop: + sleep: + seconds: 5 + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + stopSignal: stopSignal name: name - namespace: namespace - apiVersion: apiVersion - kind: kind - spec: - storageClassName: storageClassName - dataSourceRef: - apiGroup: apiGroup - kind: kind + tty: true + readinessProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: port + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + resizePolicy: + - resourceName: resourceName + restartPolicy: restartPolicy + - resourceName: resourceName + restartPolicy: restartPolicy + stdinOnce: true + envFrom: + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + - volumeDevices: + - devicePath: devicePath name: name - namespace: namespace - volumeName: volumeName + - devicePath: devicePath + name: name + image: image + imagePullPolicy: imagePullPolicy + livenessProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: port + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + stdin: true + terminationMessagePolicy: terminationMessagePolicy + terminationMessagePath: terminationMessagePath + workingDir: workingDir resources: claims: - - name: name - - name: name + - request: request + name: name + - request: request + name: name requests: {} limits: {} - selector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - accessModes: - - accessModes - - accessModes - dataSource: - apiGroup: apiGroup - kind: kind + securityContext: + privileged: true + runAsUser: 1 + capabilities: + add: + - add + - add + drop: + - drop + - drop + seLinuxOptions: + role: role + level: level + type: type + user: user + appArmorProfile: + localhostProfile: localhostProfile + type: type + seccompProfile: + localhostProfile: localhostProfile + type: type + windowsOptions: + gmsaCredentialSpec: gmsaCredentialSpec + runAsUserName: runAsUserName + hostProcess: true + gmsaCredentialSpecName: gmsaCredentialSpecName + procMount: procMount + allowPrivilegeEscalation: true + runAsGroup: 1 + runAsNonRoot: true + readOnlyRootFilesystem: true + startupProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: port + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + env: + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + ports: + - protocol: protocol + hostIP: hostIP name: name - volumeMode: volumeMode - status: - phase: phase - allocatedResources: {} - allocatedResourceStatuses: - key: allocatedResourceStatuses - accessModes: - - accessModes - - accessModes - conditions: - - reason: reason - lastTransitionTime: 2000-01-23T04:56:07.000+00:00 - message: message - type: type - lastProbeTime: 2000-01-23T04:56:07.000+00:00 - status: status - - reason: reason - lastTransitionTime: 2000-01-23T04:56:07.000+00:00 - message: message - type: type - lastProbeTime: 2000-01-23T04:56:07.000+00:00 - status: status - capacity: {} - properties: - apiVersion: - description: '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' - type: string - items: - description: 'items is a list of persistent volume claims. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims' - items: - $ref: '#/components/schemas/v1.PersistentVolumeClaim' - type: array - kind: - description: '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' - type: string - metadata: - $ref: '#/components/schemas/v1.ListMeta' - required: - - items - type: object - x-kubernetes-group-version-kind: - - group: "" - kind: PersistentVolumeClaimList - version: v1 - x-implements: - - io.kubernetes.client.common.KubernetesListObject - v1.PersistentVolumeClaimSpec: - description: PersistentVolumeClaimSpec describes the common attributes of storage - devices and allows a Source for provider-specific attributes - example: - storageClassName: storageClassName - dataSourceRef: - apiGroup: apiGroup - kind: kind - name: name - namespace: namespace - volumeName: volumeName - resources: - claims: - - name: name - - name: name - requests: {} - limits: {} - selector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - accessModes: - - accessModes - - accessModes - dataSource: - apiGroup: apiGroup - kind: kind - name: name - volumeMode: volumeMode - properties: - accessModes: - description: 'accessModes contains the desired access modes the volume should - have. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes-1' - items: - type: string - type: array - dataSource: - $ref: '#/components/schemas/v1.TypedLocalObjectReference' - dataSourceRef: - $ref: '#/components/schemas/v1.TypedObjectReference' - resources: - $ref: '#/components/schemas/v1.ResourceRequirements' - selector: - $ref: '#/components/schemas/v1.LabelSelector' - storageClassName: - description: 'storageClassName is the name of the StorageClass required - by the claim. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#class-1' - type: string - volumeMode: - description: volumeMode defines what type of volume is required by the claim. - Value of Filesystem is implied when not included in claim spec. - type: string - volumeName: - description: volumeName is the binding reference to the PersistentVolume - backing this claim. - type: string - type: object - v1.PersistentVolumeClaimStatus: - description: PersistentVolumeClaimStatus is the current status of a persistent - volume claim. - example: - phase: phase - allocatedResources: {} - allocatedResourceStatuses: - key: allocatedResourceStatuses - accessModes: - - accessModes - - accessModes - conditions: - - reason: reason - lastTransitionTime: 2000-01-23T04:56:07.000+00:00 - message: message - type: type - lastProbeTime: 2000-01-23T04:56:07.000+00:00 - status: status - - reason: reason - lastTransitionTime: 2000-01-23T04:56:07.000+00:00 - message: message - type: type - lastProbeTime: 2000-01-23T04:56:07.000+00:00 - status: status - capacity: {} - properties: - accessModes: - description: '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' - items: - type: string - type: array - allocatedResourceStatuses: - additionalProperties: - type: string - description: "allocatedResourceStatuses stores status of resource being\ - \ resized for the given PVC. Key names follow standard Kubernetes label\ - \ syntax. Valid values are either:\n\t* Un-prefixed keys:\n\t\t- storage\ - \ - the capacity of the volume.\n\t* Custom resources must use implementation-defined\ - \ prefixed names such as \"example.com/my-custom-resource\"\nApart from\ - \ above values - keys that are unprefixed or have kubernetes.io prefix\ - \ are considered reserved and hence may not be used.\n\nClaimResourceStatus\ - \ can be in any of following states:\n\t- ControllerResizeInProgress:\n\ - \t\tState set when resize controller starts resizing the volume in control-plane.\n\ - \t- ControllerResizeFailed:\n\t\tState set when resize has failed in resize\ - \ controller with a terminal error.\n\t- NodeResizePending:\n\t\tState\ - \ set when resize controller has finished resizing the volume but further\ - \ resizing of\n\t\tvolume is needed on the node.\n\t- NodeResizeInProgress:\n\ - \t\tState set when kubelet starts resizing the volume.\n\t- NodeResizeFailed:\n\ - \t\tState set when resizing has failed in kubelet with a terminal error.\ - \ Transient errors don't set\n\t\tNodeResizeFailed.\nFor example: if expanding\ - \ a PVC for more capacity - this field can be one of the following states:\n\ - \t- pvc.status.allocatedResourceStatus['storage'] = \"ControllerResizeInProgress\"\ - \n - pvc.status.allocatedResourceStatus['storage'] = \"ControllerResizeFailed\"\ - \n - pvc.status.allocatedResourceStatus['storage'] = \"NodeResizePending\"\ - \n - pvc.status.allocatedResourceStatus['storage'] = \"NodeResizeInProgress\"\ - \n - pvc.status.allocatedResourceStatus['storage'] = \"NodeResizeFailed\"\ - \nWhen this field is not set, it means that no resize operation is in\ - \ progress for the given PVC.\n\nA 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.\n\nThis is an alpha field and requires enabling RecoverVolumeExpansionFailure\ - \ feature." - type: object - x-kubernetes-map-type: granular - allocatedResources: - additionalProperties: - $ref: '#/components/schemas/resource.Quantity' - description: "allocatedResources tracks the resources allocated to a PVC\ - \ including its capacity. Key names follow standard Kubernetes label syntax.\ - \ Valid values are either:\n\t* Un-prefixed keys:\n\t\t- storage - the\ - \ capacity of the volume.\n\t* Custom resources must use implementation-defined\ - \ prefixed names such as \"example.com/my-custom-resource\"\nApart from\ - \ above values - keys that are unprefixed or have kubernetes.io prefix\ - \ are considered reserved and hence may not be used.\n\nCapacity 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.\n\nA 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.\n\nThis is an alpha field and requires enabling RecoverVolumeExpansionFailure\ - \ feature." - type: object - capacity: - additionalProperties: - $ref: '#/components/schemas/resource.Quantity' - description: capacity represents the actual resources of the underlying - volume. - type: object - conditions: - description: conditions is the current Condition of persistent volume claim. - If underlying persistent volume is being resized then the Condition will - be set to 'ResizeStarted'. - items: - $ref: '#/components/schemas/v1.PersistentVolumeClaimCondition' - type: array - x-kubernetes-patch-strategy: merge - x-kubernetes-patch-merge-key: type - phase: - description: phase represents the current phase of PersistentVolumeClaim. - type: string - type: object - v1.PersistentVolumeClaimTemplate: - description: PersistentVolumeClaimTemplate is used to produce PersistentVolumeClaim - objects as part of an EphemeralVolumeSource. - example: - metadata: - generation: 6 - finalizers: - - finalizers - - finalizers - resourceVersion: resourceVersion - annotations: - key: annotations - generateName: generateName - deletionTimestamp: 2000-01-23T04:56:07.000+00:00 - labels: - key: labels - ownerReferences: - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - selfLink: selfLink - deletionGracePeriodSeconds: 0 - uid: uid - managedFields: - - apiVersion: apiVersion - fieldsV1: '{}' - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - - apiVersion: apiVersion - fieldsV1: '{}' - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - creationTimestamp: 2000-01-23T04:56:07.000+00:00 - name: name - namespace: namespace - spec: - storageClassName: storageClassName - dataSourceRef: - apiGroup: apiGroup - kind: kind + containerPort: 7 + hostPort: 1 + - protocol: protocol + hostIP: hostIP + name: name + containerPort: 7 + hostPort: 1 + restartPolicy: restartPolicy + command: + - command + - command + volumeMounts: + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + recursiveReadOnly: recursiveReadOnly + subPathExpr: subPathExpr + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + recursiveReadOnly: recursiveReadOnly + subPathExpr: subPathExpr + args: + - args + - args + lifecycle: + postStart: + sleep: + seconds: 5 + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + preStop: + sleep: + seconds: 5 + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + stopSignal: stopSignal name: name - namespace: namespace - volumeName: volumeName - resources: - claims: + tty: true + readinessProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: port + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + resizePolicy: + - resourceName: resourceName + restartPolicy: restartPolicy + - resourceName: resourceName + restartPolicy: restartPolicy + stdinOnce: true + envFrom: + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + initContainers: + - volumeDevices: + - devicePath: devicePath + name: name + - devicePath: devicePath + name: name + image: image + imagePullPolicy: imagePullPolicy + livenessProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: port + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + stdin: true + terminationMessagePolicy: terminationMessagePolicy + terminationMessagePath: terminationMessagePath + workingDir: workingDir + resources: + claims: + - request: request + name: name + - request: request + name: name + requests: {} + limits: {} + securityContext: + privileged: true + runAsUser: 1 + capabilities: + add: + - add + - add + drop: + - drop + - drop + seLinuxOptions: + role: role + level: level + type: type + user: user + appArmorProfile: + localhostProfile: localhostProfile + type: type + seccompProfile: + localhostProfile: localhostProfile + type: type + windowsOptions: + gmsaCredentialSpec: gmsaCredentialSpec + runAsUserName: runAsUserName + hostProcess: true + gmsaCredentialSpecName: gmsaCredentialSpecName + procMount: procMount + allowPrivilegeEscalation: true + runAsGroup: 1 + runAsNonRoot: true + readOnlyRootFilesystem: true + startupProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: port + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + env: - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath - name: name - requests: {} - limits: {} - selector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - accessModes: - - accessModes - - accessModes - dataSource: - apiGroup: apiGroup - kind: kind - name: name - volumeMode: volumeMode - properties: - metadata: - $ref: '#/components/schemas/v1.ObjectMeta' - spec: - $ref: '#/components/schemas/v1.PersistentVolumeClaimSpec' - required: - - spec - type: object - v1.PersistentVolumeClaimVolumeSource: - 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). - example: - claimName: claimName - readOnly: true - properties: - claimName: - description: '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' - type: string - readOnly: - description: readOnly Will force the ReadOnly setting in VolumeMounts. Default - false. - type: boolean - required: - - claimName - type: object - v1.PersistentVolumeList: - description: PersistentVolumeList is a list of PersistentVolume items. - example: - metadata: - remainingItemCount: 1 - continue: continue - resourceVersion: resourceVersion - selfLink: selfLink - apiVersion: apiVersion - kind: kind - items: - - metadata: - generation: 6 - finalizers: - - finalizers - - finalizers - resourceVersion: resourceVersion - annotations: - key: annotations - generateName: generateName - deletionTimestamp: 2000-01-23T04:56:07.000+00:00 - labels: - key: labels - ownerReferences: - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + ports: + - protocol: protocol + hostIP: hostIP name: name - blockOwnerDeletion: true - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind + containerPort: 7 + hostPort: 1 + - protocol: protocol + hostIP: hostIP name: name - blockOwnerDeletion: true - selfLink: selfLink - deletionGracePeriodSeconds: 0 - uid: uid - managedFields: - - apiVersion: apiVersion - fieldsV1: '{}' - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - - apiVersion: apiVersion - fieldsV1: '{}' - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - creationTimestamp: 2000-01-23T04:56:07.000+00:00 - name: name - namespace: namespace - apiVersion: apiVersion - kind: kind - spec: - claimRef: - uid: uid - apiVersion: apiVersion - kind: kind - resourceVersion: resourceVersion - fieldPath: fieldPath + containerPort: 7 + hostPort: 1 + restartPolicy: restartPolicy + command: + - command + - command + volumeMounts: + - mountPath: mountPath + mountPropagation: mountPropagation name: name - namespace: namespace - quobyte: - volume: volume - registry: registry readOnly: true - user: user - tenant: tenant - group: group - azureFile: - secretName: secretName - secretNamespace: secretNamespace + subPath: subPath + recursiveReadOnly: recursiveReadOnly + subPathExpr: subPathExpr + - mountPath: mountPath + mountPropagation: mountPropagation + name: name readOnly: true - shareName: shareName - flexVolume: - driver: driver - options: - key: options - secretRef: + subPath: subPath + recursiveReadOnly: recursiveReadOnly + subPathExpr: subPathExpr + args: + - args + - args + lifecycle: + postStart: + sleep: + seconds: 5 + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + preStop: + sleep: + seconds: 5 + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + stopSignal: stopSignal + name: name + tty: true + readinessProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: port + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + resizePolicy: + - resourceName: resourceName + restartPolicy: restartPolicy + - resourceName: resourceName + restartPolicy: restartPolicy + stdinOnce: true + envFrom: + - configMapRef: name: name - namespace: namespace - readOnly: true - fsType: fsType - mountOptions: - - mountOptions - - mountOptions - local: - path: path - fsType: fsType - capacity: {} - cephfs: - path: path + optional: true + prefix: prefix secretRef: name: name - namespace: namespace - secretFile: secretFile - readOnly: true - user: user - monitors: - - monitors - - monitors - scaleIO: - system: system - protectionDomain: protectionDomain - sslEnabled: true - storageMode: storageMode - volumeName: volumeName + optional: true + - configMapRef: + name: name + optional: true + prefix: prefix secretRef: name: name - namespace: namespace - readOnly: true - fsType: fsType - storagePool: storagePool - gateway: gateway - accessModes: - - accessModes - - accessModes - glusterfs: - path: path - endpoints: endpoints - readOnly: true - endpointsNamespace: endpointsNamespace - gcePersistentDisk: - partition: 2 + optional: true + - volumeDevices: + - devicePath: devicePath + name: name + - devicePath: devicePath + name: name + image: image + imagePullPolicy: imagePullPolicy + livenessProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: port + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + stdin: true + terminationMessagePolicy: terminationMessagePolicy + terminationMessagePath: terminationMessagePath + workingDir: workingDir + resources: + claims: + - request: request + name: name + - request: request + name: name + requests: {} + limits: {} + securityContext: + privileged: true + runAsUser: 1 + capabilities: + add: + - add + - add + drop: + - drop + - drop + seLinuxOptions: + role: role + level: level + type: type + user: user + appArmorProfile: + localhostProfile: localhostProfile + type: type + seccompProfile: + localhostProfile: localhostProfile + type: type + windowsOptions: + gmsaCredentialSpec: gmsaCredentialSpec + runAsUserName: runAsUserName + hostProcess: true + gmsaCredentialSpecName: gmsaCredentialSpecName + procMount: procMount + allowPrivilegeEscalation: true + runAsGroup: 1 + runAsNonRoot: true + readOnlyRootFilesystem: true + startupProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: port + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + env: + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + ports: + - protocol: protocol + hostIP: hostIP + name: name + containerPort: 7 + hostPort: 1 + - protocol: protocol + hostIP: hostIP + name: name + containerPort: 7 + hostPort: 1 + restartPolicy: restartPolicy + command: + - command + - command + volumeMounts: + - mountPath: mountPath + mountPropagation: mountPropagation + name: name readOnly: true - pdName: pdName - fsType: fsType - photonPersistentDisk: - pdID: pdID - fsType: fsType - azureDisk: - diskName: diskName - kind: kind + subPath: subPath + recursiveReadOnly: recursiveReadOnly + subPathExpr: subPathExpr + - mountPath: mountPath + mountPropagation: mountPropagation + name: name readOnly: true - cachingMode: cachingMode - diskURI: diskURI - fsType: fsType - cinder: + subPath: subPath + recursiveReadOnly: recursiveReadOnly + subPathExpr: subPathExpr + args: + - args + - args + lifecycle: + postStart: + sleep: + seconds: 5 + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + preStop: + sleep: + seconds: 5 + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + stopSignal: stopSignal + name: name + tty: true + readinessProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: port + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + resizePolicy: + - resourceName: resourceName + restartPolicy: restartPolicy + - resourceName: resourceName + restartPolicy: restartPolicy + stdinOnce: true + envFrom: + - configMapRef: + name: name + optional: true + prefix: prefix secretRef: name: name - namespace: namespace - volumeID: volumeID - readOnly: true - fsType: fsType - awsElasticBlockStore: - partition: 8 - volumeID: volumeID - readOnly: true - fsType: fsType + optional: true + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + affinity: nodeAffinity: - required: + requiredDuringSchedulingIgnoredDuringExecution: nodeSelectorTerms: - matchExpressions: - values: @@ -161216,528 +195007,1254 @@ components: - values key: key operator: operator - flocker: - datasetName: datasetName - datasetUUID: datasetUUID - volumeMode: volumeMode - iscsi: - chapAuthSession: true - iscsiInterface: iscsiInterface - lun: 0 - chapAuthDiscovery: true - iqn: iqn - portals: - - portals - - portals - secretRef: - name: name - namespace: namespace - initiatorName: initiatorName - readOnly: true - fsType: fsType - targetPortal: targetPortal - rbd: - image: image - pool: pool - secretRef: - name: name - namespace: namespace - readOnly: true - fsType: fsType - keyring: keyring - user: user - monitors: - - monitors - - monitors - storageClassName: storageClassName - storageos: - volumeNamespace: volumeNamespace - volumeName: volumeName - secretRef: - uid: uid - apiVersion: apiVersion - kind: kind - resourceVersion: resourceVersion - fieldPath: fieldPath - name: name - namespace: namespace - readOnly: true - fsType: fsType - csi: - controllerPublishSecretRef: - name: name - namespace: namespace - driver: driver - nodePublishSecretRef: - name: name - namespace: namespace - nodeStageSecretRef: - name: name - namespace: namespace - volumeHandle: volumeHandle - nodeExpandSecretRef: - name: name - namespace: namespace - readOnly: true - controllerExpandSecretRef: - name: name - namespace: namespace - fsType: fsType - volumeAttributes: - key: volumeAttributes - nfs: - path: path - server: server - readOnly: true - persistentVolumeReclaimPolicy: persistentVolumeReclaimPolicy - portworxVolume: - volumeID: volumeID - readOnly: true - fsType: fsType - vsphereVolume: - storagePolicyName: storagePolicyName - storagePolicyID: storagePolicyID - volumePath: volumePath - fsType: fsType - fc: - lun: 1 - targetWWNs: - - targetWWNs - - targetWWNs - readOnly: true - wwids: - - wwids - - wwids - fsType: fsType - hostPath: - path: path - type: type - status: - phase: phase - reason: reason - lastPhaseTransitionTime: 2000-01-23T04:56:07.000+00:00 - message: message - - metadata: - generation: 6 - finalizers: - - finalizers - - finalizers - resourceVersion: resourceVersion - annotations: - key: annotations - generateName: generateName - deletionTimestamp: 2000-01-23T04:56:07.000+00:00 - labels: - key: labels - ownerReferences: - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - selfLink: selfLink - deletionGracePeriodSeconds: 0 - uid: uid - managedFields: - - apiVersion: apiVersion - fieldsV1: '{}' - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - - apiVersion: apiVersion - fieldsV1: '{}' - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - creationTimestamp: 2000-01-23T04:56:07.000+00:00 - name: name - namespace: namespace - apiVersion: apiVersion - kind: kind - spec: - claimRef: - uid: uid - apiVersion: apiVersion - kind: kind - resourceVersion: resourceVersion - fieldPath: fieldPath - name: name - namespace: namespace - quobyte: - volume: volume - registry: registry - readOnly: true - user: user - tenant: tenant - group: group - azureFile: - secretName: secretName - secretNamespace: secretNamespace - readOnly: true - shareName: shareName - flexVolume: - driver: driver - options: - key: options - secretRef: - name: name - namespace: namespace - readOnly: true - fsType: fsType - mountOptions: - - mountOptions - - mountOptions - local: - path: path - fsType: fsType - capacity: {} - cephfs: - path: path - secretRef: - name: name - namespace: namespace - secretFile: secretFile - readOnly: true - user: user - monitors: - - monitors - - monitors - scaleIO: - system: system - protectionDomain: protectionDomain - sslEnabled: true - storageMode: storageMode - volumeName: volumeName - secretRef: - name: name - namespace: namespace - readOnly: true - fsType: fsType - storagePool: storagePool - gateway: gateway - accessModes: - - accessModes - - accessModes - glusterfs: - path: path - endpoints: endpoints - readOnly: true - endpointsNamespace: endpointsNamespace - gcePersistentDisk: - partition: 2 - readOnly: true - pdName: pdName - fsType: fsType - photonPersistentDisk: - pdID: pdID - fsType: fsType - azureDisk: - diskName: diskName - kind: kind - readOnly: true - cachingMode: cachingMode - diskURI: diskURI - fsType: fsType - cinder: - secretRef: - name: name - namespace: namespace - volumeID: volumeID - readOnly: true - fsType: fsType - awsElasticBlockStore: - partition: 8 - volumeID: volumeID - readOnly: true - fsType: fsType - nodeAffinity: - required: - nodeSelectorTerms: - - matchExpressions: + preferredDuringSchedulingIgnoredDuringExecution: + - preference: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchFields: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + weight: 6 + - preference: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchFields: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + weight: 6 + podAffinity: + requiredDuringSchedulingIgnoredDuringExecution: + - labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator - values: - values - values key: key operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: - values: - values - values key: key operator: operator - matchFields: - values: - values - values key: key operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + mismatchLabelKeys: + - mismatchLabelKeys + - mismatchLabelKeys + namespaces: + - namespaces + - namespaces + - labelSelector: + matchExpressions: - values: - values - values key: key operator: operator - - matchExpressions: - values: - values - values key: key operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: - values: - values - values key: key operator: operator - matchFields: - values: - values - values key: key operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + mismatchLabelKeys: + - mismatchLabelKeys + - mismatchLabelKeys + namespaces: + - namespaces + - namespaces + preferredDuringSchedulingIgnoredDuringExecution: + - podAffinityTerm: + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + mismatchLabelKeys: + - mismatchLabelKeys + - mismatchLabelKeys + namespaces: + - namespaces + - namespaces + weight: 1 + - podAffinityTerm: + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + mismatchLabelKeys: + - mismatchLabelKeys + - mismatchLabelKeys + namespaces: + - namespaces + - namespaces + weight: 1 + podAntiAffinity: + requiredDuringSchedulingIgnoredDuringExecution: + - labelSelector: + matchExpressions: - values: - values - values key: key operator: operator - flocker: - datasetName: datasetName - datasetUUID: datasetUUID - volumeMode: volumeMode - iscsi: - chapAuthSession: true - iscsiInterface: iscsiInterface - lun: 0 - chapAuthDiscovery: true - iqn: iqn - portals: - - portals - - portals - secretRef: + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + mismatchLabelKeys: + - mismatchLabelKeys + - mismatchLabelKeys + namespaces: + - namespaces + - namespaces + - labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + mismatchLabelKeys: + - mismatchLabelKeys + - mismatchLabelKeys + namespaces: + - namespaces + - namespaces + preferredDuringSchedulingIgnoredDuringExecution: + - podAffinityTerm: + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + mismatchLabelKeys: + - mismatchLabelKeys + - mismatchLabelKeys + namespaces: + - namespaces + - namespaces + weight: 1 + - podAffinityTerm: + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + mismatchLabelKeys: + - mismatchLabelKeys + - mismatchLabelKeys + namespaces: + - namespaces + - namespaces + weight: 1 + hostPID: true + status: + phase: phase + resourceClaimStatuses: + - resourceClaimName: resourceClaimName + name: name + - resourceClaimName: resourceClaimName + name: name + reason: reason + containerStatuses: + - allocatedResourcesStatus: + - name: name + resources: + - resourceID: resourceID + health: health + - resourceID: resourceID + health: health + - name: name + resources: + - resourceID: resourceID + health: health + - resourceID: resourceID + health: health + image: image + imageID: imageID + restartCount: 7 + resources: + claims: + - request: request name: name - namespace: namespace - initiatorName: initiatorName - readOnly: true - fsType: fsType - targetPortal: targetPortal - rbd: - image: image - pool: pool - secretRef: + - request: request name: name - namespace: namespace + requests: {} + limits: {} + started: true + lastState: + running: + startedAt: 2000-01-23T04:56:07.000+00:00 + waiting: + reason: reason + message: message + terminated: + reason: reason + exitCode: 7 + startedAt: 2000-01-23T04:56:07.000+00:00 + containerID: containerID + message: message + signal: 0 + finishedAt: 2000-01-23T04:56:07.000+00:00 + volumeMounts: + - mountPath: mountPath + name: name readOnly: true - fsType: fsType - keyring: keyring - user: user - monitors: - - monitors - - monitors - storageClassName: storageClassName - storageos: - volumeNamespace: volumeNamespace - volumeName: volumeName - secretRef: - uid: uid - apiVersion: apiVersion - kind: kind - resourceVersion: resourceVersion - fieldPath: fieldPath + recursiveReadOnly: recursiveReadOnly + - mountPath: mountPath + name: name + readOnly: true + recursiveReadOnly: recursiveReadOnly + allocatedResources: {} + ready: true + name: name + state: + running: + startedAt: 2000-01-23T04:56:07.000+00:00 + waiting: + reason: reason + message: message + terminated: + reason: reason + exitCode: 7 + startedAt: 2000-01-23T04:56:07.000+00:00 + containerID: containerID + message: message + signal: 0 + finishedAt: 2000-01-23T04:56:07.000+00:00 + containerID: containerID + stopSignal: stopSignal + user: + linux: + uid: 4 + gid: 6 + supplementalGroups: + - 0 + - 0 + - allocatedResourcesStatus: + - name: name + resources: + - resourceID: resourceID + health: health + - resourceID: resourceID + health: health + - name: name + resources: + - resourceID: resourceID + health: health + - resourceID: resourceID + health: health + image: image + imageID: imageID + restartCount: 7 + resources: + claims: + - request: request name: name - namespace: namespace + - request: request + name: name + requests: {} + limits: {} + started: true + lastState: + running: + startedAt: 2000-01-23T04:56:07.000+00:00 + waiting: + reason: reason + message: message + terminated: + reason: reason + exitCode: 7 + startedAt: 2000-01-23T04:56:07.000+00:00 + containerID: containerID + message: message + signal: 0 + finishedAt: 2000-01-23T04:56:07.000+00:00 + volumeMounts: + - mountPath: mountPath + name: name readOnly: true - fsType: fsType - csi: - controllerPublishSecretRef: + recursiveReadOnly: recursiveReadOnly + - mountPath: mountPath + name: name + readOnly: true + recursiveReadOnly: recursiveReadOnly + allocatedResources: {} + ready: true + name: name + state: + running: + startedAt: 2000-01-23T04:56:07.000+00:00 + waiting: + reason: reason + message: message + terminated: + reason: reason + exitCode: 7 + startedAt: 2000-01-23T04:56:07.000+00:00 + containerID: containerID + message: message + signal: 0 + finishedAt: 2000-01-23T04:56:07.000+00:00 + containerID: containerID + stopSignal: stopSignal + user: + linux: + uid: 4 + gid: 6 + supplementalGroups: + - 0 + - 0 + hostIP: hostIP + nominatedNodeName: nominatedNodeName + message: message + podIPs: + - ip: ip + - ip: ip + podIP: podIP + ephemeralContainerStatuses: + - allocatedResourcesStatus: + - name: name + resources: + - resourceID: resourceID + health: health + - resourceID: resourceID + health: health + - name: name + resources: + - resourceID: resourceID + health: health + - resourceID: resourceID + health: health + image: image + imageID: imageID + restartCount: 7 + resources: + claims: + - request: request name: name - namespace: namespace - driver: driver - nodePublishSecretRef: + - request: request name: name - namespace: namespace - nodeStageSecretRef: + requests: {} + limits: {} + started: true + lastState: + running: + startedAt: 2000-01-23T04:56:07.000+00:00 + waiting: + reason: reason + message: message + terminated: + reason: reason + exitCode: 7 + startedAt: 2000-01-23T04:56:07.000+00:00 + containerID: containerID + message: message + signal: 0 + finishedAt: 2000-01-23T04:56:07.000+00:00 + volumeMounts: + - mountPath: mountPath + name: name + readOnly: true + recursiveReadOnly: recursiveReadOnly + - mountPath: mountPath + name: name + readOnly: true + recursiveReadOnly: recursiveReadOnly + allocatedResources: {} + ready: true + name: name + state: + running: + startedAt: 2000-01-23T04:56:07.000+00:00 + waiting: + reason: reason + message: message + terminated: + reason: reason + exitCode: 7 + startedAt: 2000-01-23T04:56:07.000+00:00 + containerID: containerID + message: message + signal: 0 + finishedAt: 2000-01-23T04:56:07.000+00:00 + containerID: containerID + stopSignal: stopSignal + user: + linux: + uid: 4 + gid: 6 + supplementalGroups: + - 0 + - 0 + - allocatedResourcesStatus: + - name: name + resources: + - resourceID: resourceID + health: health + - resourceID: resourceID + health: health + - name: name + resources: + - resourceID: resourceID + health: health + - resourceID: resourceID + health: health + image: image + imageID: imageID + restartCount: 7 + resources: + claims: + - request: request name: name - namespace: namespace - volumeHandle: volumeHandle - nodeExpandSecretRef: + - request: request name: name - namespace: namespace + requests: {} + limits: {} + started: true + lastState: + running: + startedAt: 2000-01-23T04:56:07.000+00:00 + waiting: + reason: reason + message: message + terminated: + reason: reason + exitCode: 7 + startedAt: 2000-01-23T04:56:07.000+00:00 + containerID: containerID + message: message + signal: 0 + finishedAt: 2000-01-23T04:56:07.000+00:00 + volumeMounts: + - mountPath: mountPath + name: name readOnly: true - controllerExpandSecretRef: + recursiveReadOnly: recursiveReadOnly + - mountPath: mountPath + name: name + readOnly: true + recursiveReadOnly: recursiveReadOnly + allocatedResources: {} + ready: true + name: name + state: + running: + startedAt: 2000-01-23T04:56:07.000+00:00 + waiting: + reason: reason + message: message + terminated: + reason: reason + exitCode: 7 + startedAt: 2000-01-23T04:56:07.000+00:00 + containerID: containerID + message: message + signal: 0 + finishedAt: 2000-01-23T04:56:07.000+00:00 + containerID: containerID + stopSignal: stopSignal + user: + linux: + uid: 4 + gid: 6 + supplementalGroups: + - 0 + - 0 + hostIPs: + - ip: ip + - ip: ip + resize: resize + startTime: 2000-01-23T04:56:07.000+00:00 + qosClass: qosClass + conditions: + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + observedGeneration: 3 + lastProbeTime: 2000-01-23T04:56:07.000+00:00 + status: status + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + observedGeneration: 3 + lastProbeTime: 2000-01-23T04:56:07.000+00:00 + status: status + initContainerStatuses: + - allocatedResourcesStatus: + - name: name + resources: + - resourceID: resourceID + health: health + - resourceID: resourceID + health: health + - name: name + resources: + - resourceID: resourceID + health: health + - resourceID: resourceID + health: health + image: image + imageID: imageID + restartCount: 7 + resources: + claims: + - request: request name: name - namespace: namespace - fsType: fsType - volumeAttributes: - key: volumeAttributes - nfs: - path: path - server: server + - request: request + name: name + requests: {} + limits: {} + started: true + lastState: + running: + startedAt: 2000-01-23T04:56:07.000+00:00 + waiting: + reason: reason + message: message + terminated: + reason: reason + exitCode: 7 + startedAt: 2000-01-23T04:56:07.000+00:00 + containerID: containerID + message: message + signal: 0 + finishedAt: 2000-01-23T04:56:07.000+00:00 + volumeMounts: + - mountPath: mountPath + name: name readOnly: true - persistentVolumeReclaimPolicy: persistentVolumeReclaimPolicy - portworxVolume: - volumeID: volumeID + recursiveReadOnly: recursiveReadOnly + - mountPath: mountPath + name: name readOnly: true - fsType: fsType - vsphereVolume: - storagePolicyName: storagePolicyName - storagePolicyID: storagePolicyID - volumePath: volumePath - fsType: fsType - fc: - lun: 1 - targetWWNs: - - targetWWNs - - targetWWNs + recursiveReadOnly: recursiveReadOnly + allocatedResources: {} + ready: true + name: name + state: + running: + startedAt: 2000-01-23T04:56:07.000+00:00 + waiting: + reason: reason + message: message + terminated: + reason: reason + exitCode: 7 + startedAt: 2000-01-23T04:56:07.000+00:00 + containerID: containerID + message: message + signal: 0 + finishedAt: 2000-01-23T04:56:07.000+00:00 + containerID: containerID + stopSignal: stopSignal + user: + linux: + uid: 4 + gid: 6 + supplementalGroups: + - 0 + - 0 + - allocatedResourcesStatus: + - name: name + resources: + - resourceID: resourceID + health: health + - resourceID: resourceID + health: health + - name: name + resources: + - resourceID: resourceID + health: health + - resourceID: resourceID + health: health + image: image + imageID: imageID + restartCount: 7 + resources: + claims: + - request: request + name: name + - request: request + name: name + requests: {} + limits: {} + started: true + lastState: + running: + startedAt: 2000-01-23T04:56:07.000+00:00 + waiting: + reason: reason + message: message + terminated: + reason: reason + exitCode: 7 + startedAt: 2000-01-23T04:56:07.000+00:00 + containerID: containerID + message: message + signal: 0 + finishedAt: 2000-01-23T04:56:07.000+00:00 + volumeMounts: + - mountPath: mountPath + name: name readOnly: true - wwids: - - wwids - - wwids - fsType: fsType - hostPath: - path: path - type: type - status: - phase: phase - reason: reason - lastPhaseTransitionTime: 2000-01-23T04:56:07.000+00:00 - message: message + recursiveReadOnly: recursiveReadOnly + - mountPath: mountPath + name: name + readOnly: true + recursiveReadOnly: recursiveReadOnly + allocatedResources: {} + ready: true + name: name + state: + running: + startedAt: 2000-01-23T04:56:07.000+00:00 + waiting: + reason: reason + message: message + terminated: + reason: reason + exitCode: 7 + startedAt: 2000-01-23T04:56:07.000+00:00 + containerID: containerID + message: message + signal: 0 + finishedAt: 2000-01-23T04:56:07.000+00:00 + containerID: containerID + stopSignal: stopSignal + user: + linux: + uid: 4 + gid: 6 + supplementalGroups: + - 0 + - 0 + observedGeneration: 8 properties: apiVersion: description: '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' type: string - items: - description: 'items is a list of persistent volumes. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes' - items: - $ref: '#/components/schemas/v1.PersistentVolume' - type: array kind: description: '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' type: string metadata: - $ref: '#/components/schemas/v1.ListMeta' - required: - - items + $ref: '#/components/schemas/v1.ObjectMeta' + spec: + $ref: '#/components/schemas/v1.PodSpec' + status: + $ref: '#/components/schemas/v1.PodStatus' type: object x-kubernetes-group-version-kind: - group: "" - kind: PersistentVolumeList + kind: Pod version: v1 x-implements: - - io.kubernetes.client.common.KubernetesListObject - v1.PersistentVolumeSpec: - description: PersistentVolumeSpec is the specification of a persistent volume. + - io.kubernetes.client.common.KubernetesObject + v1.PodAffinity: + description: Pod affinity is a group of inter pod affinity scheduling rules. example: - claimRef: - uid: uid - apiVersion: apiVersion - kind: kind - resourceVersion: resourceVersion - fieldPath: fieldPath - name: name - namespace: namespace - quobyte: - volume: volume - registry: registry - readOnly: true - user: user - tenant: tenant - group: group - azureFile: - secretName: secretName - secretNamespace: secretNamespace - readOnly: true - shareName: shareName - flexVolume: - driver: driver - options: - key: options - secretRef: - name: name - namespace: namespace - readOnly: true - fsType: fsType - mountOptions: - - mountOptions - - mountOptions - local: - path: path - fsType: fsType - capacity: {} - cephfs: - path: path - secretRef: - name: name - namespace: namespace - secretFile: secretFile - readOnly: true - user: user - monitors: - - monitors - - monitors - scaleIO: - system: system - protectionDomain: protectionDomain - sslEnabled: true - storageMode: storageMode - volumeName: volumeName - secretRef: - name: name - namespace: namespace - readOnly: true - fsType: fsType - storagePool: storagePool - gateway: gateway - accessModes: - - accessModes - - accessModes - glusterfs: - path: path - endpoints: endpoints - readOnly: true - endpointsNamespace: endpointsNamespace - gcePersistentDisk: - partition: 2 - readOnly: true - pdName: pdName - fsType: fsType - photonPersistentDisk: - pdID: pdID - fsType: fsType - azureDisk: - diskName: diskName - kind: kind - readOnly: true - cachingMode: cachingMode - diskURI: diskURI - fsType: fsType - cinder: - secretRef: - name: name - namespace: namespace - volumeID: volumeID - readOnly: true - fsType: fsType - awsElasticBlockStore: - partition: 8 - volumeID: volumeID - readOnly: true - fsType: fsType - nodeAffinity: - required: - nodeSelectorTerms: - - matchExpressions: + requiredDuringSchedulingIgnoredDuringExecution: + - labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + mismatchLabelKeys: + - mismatchLabelKeys + - mismatchLabelKeys + namespaces: + - namespaces + - namespaces + - labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + mismatchLabelKeys: + - mismatchLabelKeys + - mismatchLabelKeys + namespaces: + - namespaces + - namespaces + preferredDuringSchedulingIgnoredDuringExecution: + - podAffinityTerm: + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + mismatchLabelKeys: + - mismatchLabelKeys + - mismatchLabelKeys + namespaces: + - namespaces + - namespaces + weight: 1 + - podAffinityTerm: + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + mismatchLabelKeys: + - mismatchLabelKeys + - mismatchLabelKeys + namespaces: + - namespaces + - namespaces + weight: 1 + properties: + preferredDuringSchedulingIgnoredDuringExecution: + description: 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. + items: + $ref: '#/components/schemas/v1.WeightedPodAffinityTerm' + type: array + x-kubernetes-list-type: atomic + requiredDuringSchedulingIgnoredDuringExecution: + description: 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. + items: + $ref: '#/components/schemas/v1.PodAffinityTerm' + type: array + x-kubernetes-list-type: atomic + type: object + v1.PodAffinityTerm: + 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 + example: + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + mismatchLabelKeys: + - mismatchLabelKeys + - mismatchLabelKeys + namespaces: + - namespaces + - namespaces + properties: + labelSelector: + $ref: '#/components/schemas/v1.LabelSelector' + matchLabelKeys: + description: 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. + items: + type: string + type: array + x-kubernetes-list-type: atomic + mismatchLabelKeys: + description: 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. + items: + type: string + type: array + x-kubernetes-list-type: atomic + namespaceSelector: + $ref: '#/components/schemas/v1.LabelSelector' + namespaces: + description: 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". + items: + type: string + type: array + x-kubernetes-list-type: atomic + topologyKey: + description: 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. + type: string + required: + - topologyKey + type: object + v1.PodAntiAffinity: + description: Pod anti affinity is a group of inter pod anti affinity scheduling + rules. + example: + requiredDuringSchedulingIgnoredDuringExecution: + - labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + mismatchLabelKeys: + - mismatchLabelKeys + - mismatchLabelKeys + namespaces: + - namespaces + - namespaces + - labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + mismatchLabelKeys: + - mismatchLabelKeys + - mismatchLabelKeys + namespaces: + - namespaces + - namespaces + preferredDuringSchedulingIgnoredDuringExecution: + - podAffinityTerm: + labelSelector: + matchExpressions: - values: - values - values @@ -161748,7 +196265,10 @@ components: - values key: key operator: operator - matchFields: + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: - values: - values - values @@ -161759,7 +196279,22 @@ components: - values key: key operator: operator - - matchExpressions: + matchLabels: + key: matchLabels + topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + mismatchLabelKeys: + - mismatchLabelKeys + - mismatchLabelKeys + namespaces: + - namespaces + - namespaces + weight: 1 + - podAffinityTerm: + labelSelector: + matchExpressions: - values: - values - values @@ -161770,7 +196305,10 @@ components: - values key: key operator: operator - matchFields: + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: - values: - values - values @@ -161781,1261 +196319,1242 @@ components: - values key: key operator: operator - flocker: - datasetName: datasetName - datasetUUID: datasetUUID - volumeMode: volumeMode - iscsi: - chapAuthSession: true - iscsiInterface: iscsiInterface - lun: 0 - chapAuthDiscovery: true - iqn: iqn - portals: - - portals - - portals - secretRef: - name: name - namespace: namespace - initiatorName: initiatorName - readOnly: true - fsType: fsType - targetPortal: targetPortal - rbd: - image: image - pool: pool - secretRef: - name: name - namespace: namespace - readOnly: true - fsType: fsType - keyring: keyring - user: user - monitors: - - monitors - - monitors - storageClassName: storageClassName - storageos: - volumeNamespace: volumeNamespace - volumeName: volumeName - secretRef: - uid: uid - apiVersion: apiVersion - kind: kind - resourceVersion: resourceVersion - fieldPath: fieldPath - name: name - namespace: namespace - readOnly: true - fsType: fsType - csi: - controllerPublishSecretRef: - name: name - namespace: namespace - driver: driver - nodePublishSecretRef: - name: name - namespace: namespace - nodeStageSecretRef: - name: name - namespace: namespace - volumeHandle: volumeHandle - nodeExpandSecretRef: - name: name - namespace: namespace - readOnly: true - controllerExpandSecretRef: - name: name - namespace: namespace - fsType: fsType - volumeAttributes: - key: volumeAttributes - nfs: - path: path - server: server - readOnly: true - persistentVolumeReclaimPolicy: persistentVolumeReclaimPolicy - portworxVolume: - volumeID: volumeID - readOnly: true - fsType: fsType - vsphereVolume: - storagePolicyName: storagePolicyName - storagePolicyID: storagePolicyID - volumePath: volumePath - fsType: fsType - fc: - lun: 1 - targetWWNs: - - targetWWNs - - targetWWNs - readOnly: true - wwids: - - wwids - - wwids - fsType: fsType - hostPath: - path: path - type: type + matchLabels: + key: matchLabels + topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + mismatchLabelKeys: + - mismatchLabelKeys + - mismatchLabelKeys + namespaces: + - namespaces + - namespaces + weight: 1 properties: - accessModes: - description: 'accessModes contains all ways the volume can be mounted. More - info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes' + preferredDuringSchedulingIgnoredDuringExecution: + description: 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. items: - type: string + $ref: '#/components/schemas/v1.WeightedPodAffinityTerm' type: array - awsElasticBlockStore: - $ref: '#/components/schemas/v1.AWSElasticBlockStoreVolumeSource' - azureDisk: - $ref: '#/components/schemas/v1.AzureDiskVolumeSource' - azureFile: - $ref: '#/components/schemas/v1.AzureFilePersistentVolumeSource' - capacity: - additionalProperties: - $ref: '#/components/schemas/resource.Quantity' - description: 'capacity is the description of the persistent volume''s resources - and capacity. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#capacity' - type: object - cephfs: - $ref: '#/components/schemas/v1.CephFSPersistentVolumeSource' - cinder: - $ref: '#/components/schemas/v1.CinderPersistentVolumeSource' - claimRef: - $ref: '#/components/schemas/v1.ObjectReference' - csi: - $ref: '#/components/schemas/v1.CSIPersistentVolumeSource' - fc: - $ref: '#/components/schemas/v1.FCVolumeSource' - flexVolume: - $ref: '#/components/schemas/v1.FlexPersistentVolumeSource' - flocker: - $ref: '#/components/schemas/v1.FlockerVolumeSource' - gcePersistentDisk: - $ref: '#/components/schemas/v1.GCEPersistentDiskVolumeSource' - glusterfs: - $ref: '#/components/schemas/v1.GlusterfsPersistentVolumeSource' - hostPath: - $ref: '#/components/schemas/v1.HostPathVolumeSource' - iscsi: - $ref: '#/components/schemas/v1.ISCSIPersistentVolumeSource' - local: - $ref: '#/components/schemas/v1.LocalVolumeSource' - mountOptions: - description: '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' + x-kubernetes-list-type: atomic + requiredDuringSchedulingIgnoredDuringExecution: + description: 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. items: - type: string + $ref: '#/components/schemas/v1.PodAffinityTerm' type: array - nfs: - $ref: '#/components/schemas/v1.NFSVolumeSource' - nodeAffinity: - $ref: '#/components/schemas/v1.VolumeNodeAffinity' - persistentVolumeReclaimPolicy: - description: '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' - type: string - photonPersistentDisk: - $ref: '#/components/schemas/v1.PhotonPersistentDiskVolumeSource' - portworxVolume: - $ref: '#/components/schemas/v1.PortworxVolumeSource' - quobyte: - $ref: '#/components/schemas/v1.QuobyteVolumeSource' - rbd: - $ref: '#/components/schemas/v1.RBDPersistentVolumeSource' - scaleIO: - $ref: '#/components/schemas/v1.ScaleIOPersistentVolumeSource' - storageClassName: - description: storageClassName is the name of StorageClass to which this - persistent volume belongs. Empty value means that this volume does not - belong to any StorageClass. - type: string - storageos: - $ref: '#/components/schemas/v1.StorageOSPersistentVolumeSource' - volumeMode: - description: 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. - type: string - vsphereVolume: - $ref: '#/components/schemas/v1.VsphereVirtualDiskVolumeSource' + x-kubernetes-list-type: atomic type: object - v1.PersistentVolumeStatus: - description: PersistentVolumeStatus is the current status of a persistent volume. + v1.PodCondition: + description: PodCondition contains details for the current condition of this + pod. example: - phase: phase reason: reason - lastPhaseTransitionTime: 2000-01-23T04:56:07.000+00:00 + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 message: message + type: type + observedGeneration: 3 + lastProbeTime: 2000-01-23T04:56:07.000+00:00 + status: status properties: - lastPhaseTransitionTime: - description: lastPhaseTransitionTime is the time the phase transitioned - from one to another and automatically resets to current time everytime - a volume phase transitions. This is an alpha field and requires enabling - PersistentVolumeLastPhaseTransitionTime feature. + lastProbeTime: + description: Last time we probed the condition. format: date-time type: string - message: - description: message is a human-readable message indicating details about - why the volume is in this state. + lastTransitionTime: + description: Last time the condition transitioned from one status to another. + format: date-time type: string - phase: - description: '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' + message: + description: Human-readable message indicating details about last transition. type: string + observedGeneration: + description: If set, this represents the .metadata.generation that the pod + condition was set based upon. This is an alpha field. Enable PodObservedGenerationTracking + to be able to use this field. + format: int64 + type: integer reason: - description: reason is a brief CamelCase string that describes any failure - and is meant for machine parsing and tidy display in the CLI. + description: Unique, one-word, CamelCase reason for the condition's last + transition. + type: string + status: + description: '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' + type: string + type: + description: 'Type is the type of the condition. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-conditions' type: string + required: + - status + - type type: object - v1.PhotonPersistentDiskVolumeSource: - description: Represents a Photon Controller persistent disk resource. + v1.PodDNSConfig: + description: PodDNSConfig defines the DNS parameters of a pod in addition to + those generated from DNSPolicy. example: - pdID: pdID - fsType: fsType + searches: + - searches + - searches + nameservers: + - nameservers + - nameservers + options: + - name: name + value: value + - name: name + value: value properties: - fsType: - description: 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. + nameservers: + description: A list of DNS name server IP addresses. This will be appended + to the base nameservers generated from DNSPolicy. Duplicated nameservers + will be removed. + items: + type: string + type: array + x-kubernetes-list-type: atomic + options: + description: 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. + items: + $ref: '#/components/schemas/v1.PodDNSConfigOption' + type: array + x-kubernetes-list-type: atomic + searches: + description: 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. + items: + type: string + type: array + x-kubernetes-list-type: atomic + type: object + v1.PodDNSConfigOption: + description: PodDNSConfigOption defines DNS resolver options of a pod. + example: + name: name + value: value + properties: + name: + description: Name is this DNS resolver option's name. Required. type: string - pdID: - description: pdID is the ID that identifies Photon Controller persistent - disk + value: + description: Value is this DNS resolver option's value. + type: string + type: object + v1.PodIP: + description: PodIP represents a single IP address allocated to the pod. + example: + ip: ip + properties: + ip: + description: IP is the IP address assigned to the pod type: string required: - - pdID + - ip type: object - v1.Pod: - description: Pod is a collection of containers that can run on a host. This - resource is created by clients and scheduled onto hosts. + v1.PodList: + description: PodList is a list of Pods. example: metadata: - generation: 6 - finalizers: - - finalizers - - finalizers + remainingItemCount: 1 + continue: continue resourceVersion: resourceVersion - annotations: - key: annotations - generateName: generateName - deletionTimestamp: 2000-01-23T04:56:07.000+00:00 - labels: - key: labels - ownerReferences: - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true selfLink: selfLink - deletionGracePeriodSeconds: 0 - uid: uid - managedFields: - - apiVersion: apiVersion - fieldsV1: '{}' - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - - apiVersion: apiVersion - fieldsV1: '{}' - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - creationTimestamp: 2000-01-23T04:56:07.000+00:00 - name: name - namespace: namespace apiVersion: apiVersion kind: kind - spec: - dnsPolicy: dnsPolicy - nodeName: nodeName - terminationGracePeriodSeconds: 5 - dnsConfig: - searches: - - searches - - searches - nameservers: - - nameservers - - nameservers - options: + items: + - metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: '{}' + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: '{}' + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + creationTimestamp: 2000-01-23T04:56:07.000+00:00 + name: name + namespace: namespace + apiVersion: apiVersion + kind: kind + spec: + dnsPolicy: dnsPolicy + nodeName: nodeName + terminationGracePeriodSeconds: 9 + dnsConfig: + searches: + - searches + - searches + nameservers: + - nameservers + - nameservers + options: + - name: name + value: value + - name: name + value: value + hostNetwork: true + readinessGates: + - conditionType: conditionType + - conditionType: conditionType + serviceAccountName: serviceAccountName + imagePullSecrets: - name: name - value: value - name: name + priorityClassName: priorityClassName + hostAliases: + - ip: ip + hostnames: + - hostnames + - hostnames + - ip: ip + hostnames: + - hostnames + - hostnames + securityContext: + seLinuxOptions: + role: role + level: level + type: type + user: user + appArmorProfile: + localhostProfile: localhostProfile + type: type + fsGroup: 7 + fsGroupChangePolicy: fsGroupChangePolicy + seLinuxChangePolicy: seLinuxChangePolicy + runAsGroup: 1 + runAsNonRoot: true + sysctls: + - name: name + value: value + - name: name + value: value + runAsUser: 4 + seccompProfile: + localhostProfile: localhostProfile + type: type + windowsOptions: + gmsaCredentialSpec: gmsaCredentialSpec + runAsUserName: runAsUserName + hostProcess: true + gmsaCredentialSpecName: gmsaCredentialSpecName + supplementalGroups: + - 5 + - 5 + supplementalGroupsPolicy: supplementalGroupsPolicy + preemptionPolicy: preemptionPolicy + nodeSelector: + key: nodeSelector + hostname: hostname + runtimeClassName: runtimeClassName + tolerations: + - effect: effect + tolerationSeconds: 9 value: value - hostNetwork: true - readinessGates: - - conditionType: conditionType - - conditionType: conditionType - serviceAccountName: serviceAccountName - imagePullSecrets: - - name: name - - name: name - priorityClassName: priorityClassName - hostAliases: - - ip: ip - hostnames: - - hostnames - - hostnames - - ip: ip - hostnames: - - hostnames - - hostnames - securityContext: - runAsUser: 1 - seLinuxOptions: - role: role - level: level - type: type - user: user - fsGroup: 6 - seccompProfile: - localhostProfile: localhostProfile - type: type - windowsOptions: - gmsaCredentialSpec: gmsaCredentialSpec - runAsUserName: runAsUserName - hostProcess: true - gmsaCredentialSpecName: gmsaCredentialSpecName - fsGroupChangePolicy: fsGroupChangePolicy - supplementalGroups: - - 4 - - 4 - runAsGroup: 7 - runAsNonRoot: true - sysctls: - - name: name + key: key + operator: operator + - effect: effect + tolerationSeconds: 9 value: value + key: key + operator: operator + automountServiceAccountToken: true + schedulingGates: - name: name - value: value - preemptionPolicy: preemptionPolicy - nodeSelector: - key: nodeSelector - hostname: hostname - runtimeClassName: runtimeClassName - tolerations: - - effect: effect - tolerationSeconds: 9 - value: value - key: key - operator: operator - - effect: effect - tolerationSeconds: 9 - value: value - key: key - operator: operator - automountServiceAccountToken: true - schedulingGates: - - name: name - - name: name - schedulerName: schedulerName - activeDeadlineSeconds: 0 - os: - name: name - setHostnameAsFQDN: true - enableServiceLinks: true - overhead: {} - hostIPC: true - topologySpreadConstraints: - - nodeTaintsPolicy: nodeTaintsPolicy - whenUnsatisfiable: whenUnsatisfiable - maxSkew: 9 - nodeAffinityPolicy: nodeAffinityPolicy - labelSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - minDomains: 6 - topologyKey: topologyKey - matchLabelKeys: - - matchLabelKeys - - matchLabelKeys - - nodeTaintsPolicy: nodeTaintsPolicy - whenUnsatisfiable: whenUnsatisfiable - maxSkew: 9 - nodeAffinityPolicy: nodeAffinityPolicy - labelSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - minDomains: 6 - topologyKey: topologyKey - matchLabelKeys: - - matchLabelKeys - - matchLabelKeys - volumes: - - quobyte: - volume: volume - registry: registry - readOnly: true - user: user - tenant: tenant - group: group - azureFile: - secretName: secretName - readOnly: true - shareName: shareName - flexVolume: - driver: driver - options: - key: options - secretRef: - name: name - readOnly: true - fsType: fsType - ephemeral: - volumeClaimTemplate: - metadata: - generation: 6 - finalizers: - - finalizers - - finalizers - resourceVersion: resourceVersion - annotations: - key: annotations - generateName: generateName - deletionTimestamp: 2000-01-23T04:56:07.000+00:00 - labels: - key: labels - ownerReferences: - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind + - name: name + schedulerName: schedulerName + activeDeadlineSeconds: 0 + os: + name: name + setHostnameAsFQDN: true + enableServiceLinks: true + overhead: {} + hostIPC: true + topologySpreadConstraints: + - nodeTaintsPolicy: nodeTaintsPolicy + whenUnsatisfiable: whenUnsatisfiable + maxSkew: 6 + nodeAffinityPolicy: nodeAffinityPolicy + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + minDomains: 8 + topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + - nodeTaintsPolicy: nodeTaintsPolicy + whenUnsatisfiable: whenUnsatisfiable + maxSkew: 6 + nodeAffinityPolicy: nodeAffinityPolicy + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + minDomains: 8 + topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + volumes: + - quobyte: + volume: volume + registry: registry + readOnly: true + user: user + tenant: tenant + group: group + azureFile: + secretName: secretName + readOnly: true + shareName: shareName + flexVolume: + driver: driver + options: + key: options + secretRef: + name: name + readOnly: true + fsType: fsType + ephemeral: + volumeClaimTemplate: + metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: '{}' + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: '{}' + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + creationTimestamp: 2000-01-23T04:56:07.000+00:00 name: name - blockOwnerDeletion: true - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind + namespace: namespace + spec: + storageClassName: storageClassName + dataSourceRef: + apiGroup: apiGroup + kind: kind + name: name + namespace: namespace + volumeName: volumeName + volumeAttributesClassName: volumeAttributesClassName + resources: + requests: {} + limits: {} + selector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + accessModes: + - accessModes + - accessModes + dataSource: + apiGroup: apiGroup + kind: kind + name: name + volumeMode: volumeMode + secret: + secretName: secretName + defaultMode: 3 + optional: true + items: + - mode: 3 + path: path + key: key + - mode: 3 + path: path + key: key + projected: + sources: + - downwardAPI: + items: + - mode: 1 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - mode: 1 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + configMap: name: name - blockOwnerDeletion: true - selfLink: selfLink - deletionGracePeriodSeconds: 0 - uid: uid - managedFields: - - apiVersion: apiVersion - fieldsV1: '{}' - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - - apiVersion: apiVersion - fieldsV1: '{}' - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - creationTimestamp: 2000-01-23T04:56:07.000+00:00 - name: name - namespace: namespace - spec: - storageClassName: storageClassName - dataSourceRef: - apiGroup: apiGroup - kind: kind + optional: true + items: + - mode: 3 + path: path + key: key + - mode: 3 + path: path + key: key + secret: + name: name + optional: true + items: + - mode: 3 + path: path + key: key + - mode: 3 + path: path + key: key + serviceAccountToken: + path: path + audience: audience + expirationSeconds: 6 + clusterTrustBundle: + path: path + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + name: name + optional: true + signerName: signerName + - downwardAPI: + items: + - mode: 1 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - mode: 1 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + configMap: name: name - namespace: namespace - volumeName: volumeName - resources: - claims: - - name: name - - name: name - requests: {} - limits: {} - selector: - matchExpressions: - - values: - - values - - values + optional: true + items: + - mode: 3 + path: path key: key - operator: operator - - values: - - values - - values + - mode: 3 + path: path key: key - operator: operator - matchLabels: - key: matchLabels - accessModes: - - accessModes - - accessModes - dataSource: - apiGroup: apiGroup - kind: kind + secret: name: name - volumeMode: volumeMode - secret: - secretName: secretName - defaultMode: 6 - optional: true - items: - - mode: 6 - path: path - key: key - - mode: 6 - path: path - key: key - projected: - sources: - - downwardAPI: - items: - - mode: 6 + optional: true + items: + - mode: 3 + path: path + key: key + - mode: 3 + path: path + key: key + serviceAccountToken: path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - mode: 6 + audience: audience + expirationSeconds: 6 + clusterTrustBundle: path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - configMap: + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + name: name + optional: true + signerName: signerName + defaultMode: 5 + cephfs: + path: path + secretRef: name: name - optional: true - items: - - mode: 6 - path: path - key: key - - mode: 6 - path: path - key: key - secret: + secretFile: secretFile + readOnly: true + user: user + monitors: + - monitors + - monitors + scaleIO: + system: system + protectionDomain: protectionDomain + sslEnabled: true + storageMode: storageMode + volumeName: volumeName + secretRef: name: name - optional: true - items: - - mode: 6 - path: path - key: key - - mode: 6 - path: path - key: key - serviceAccountToken: + readOnly: true + fsType: fsType + storagePool: storagePool + gateway: gateway + emptyDir: + sizeLimit: sizeLimit + medium: medium + glusterfs: + path: path + endpoints: endpoints + readOnly: true + gcePersistentDisk: + partition: 6 + readOnly: true + pdName: pdName + fsType: fsType + image: + reference: reference + pullPolicy: pullPolicy + photonPersistentDisk: + pdID: pdID + fsType: fsType + azureDisk: + diskName: diskName + kind: kind + readOnly: true + cachingMode: cachingMode + diskURI: diskURI + fsType: fsType + cinder: + secretRef: + name: name + volumeID: volumeID + readOnly: true + fsType: fsType + downwardAPI: + defaultMode: 6 + items: + - mode: 1 path: path - audience: audience - expirationSeconds: 5 - - downwardAPI: - items: - - mode: 6 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - mode: 6 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - configMap: + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - mode: 1 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + awsElasticBlockStore: + partition: 9 + volumeID: volumeID + readOnly: true + fsType: fsType + flocker: + datasetName: datasetName + datasetUUID: datasetUUID + iscsi: + chapAuthSession: true + iscsiInterface: iscsiInterface + lun: 6 + chapAuthDiscovery: true + iqn: iqn + portals: + - portals + - portals + secretRef: name: name - optional: true - items: - - mode: 6 - path: path - key: key - - mode: 6 - path: path - key: key - secret: + initiatorName: initiatorName + readOnly: true + fsType: fsType + targetPortal: targetPortal + rbd: + image: image + pool: pool + secretRef: name: name - optional: true - items: - - mode: 6 - path: path - key: key - - mode: 6 - path: path - key: key - serviceAccountToken: - path: path - audience: audience - expirationSeconds: 5 - defaultMode: 6 - cephfs: - path: path - secretRef: - name: name - secretFile: secretFile - readOnly: true - user: user - monitors: - - monitors - - monitors - scaleIO: - system: system - protectionDomain: protectionDomain - sslEnabled: true - storageMode: storageMode - volumeName: volumeName - secretRef: - name: name - readOnly: true - fsType: fsType - storagePool: storagePool - gateway: gateway - emptyDir: - sizeLimit: sizeLimit - medium: medium - glusterfs: - path: path - endpoints: endpoints - readOnly: true - gcePersistentDisk: - partition: 2 - readOnly: true - pdName: pdName - fsType: fsType - photonPersistentDisk: - pdID: pdID - fsType: fsType - azureDisk: - diskName: diskName - kind: kind - readOnly: true - cachingMode: cachingMode - diskURI: diskURI - fsType: fsType - cinder: - secretRef: - name: name - volumeID: volumeID - readOnly: true - fsType: fsType - downwardAPI: - defaultMode: 3 - items: - - mode: 6 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - mode: 6 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - awsElasticBlockStore: - partition: 8 - volumeID: volumeID - readOnly: true - fsType: fsType - flocker: - datasetName: datasetName - datasetUUID: datasetUUID - iscsi: - chapAuthSession: true - iscsiInterface: iscsiInterface - lun: 6 - chapAuthDiscovery: true - iqn: iqn - portals: - - portals - - portals - secretRef: - name: name - initiatorName: initiatorName - readOnly: true - fsType: fsType - targetPortal: targetPortal - rbd: - image: image - pool: pool - secretRef: + readOnly: true + fsType: fsType + keyring: keyring + user: user + monitors: + - monitors + - monitors + configMap: + defaultMode: 6 name: name - readOnly: true - fsType: fsType - keyring: keyring - user: user - monitors: - - monitors - - monitors - configMap: - defaultMode: 9 + optional: true + items: + - mode: 3 + path: path + key: key + - mode: 3 + path: path + key: key + storageos: + volumeNamespace: volumeNamespace + volumeName: volumeName + secretRef: + name: name + readOnly: true + fsType: fsType + csi: + driver: driver + nodePublishSecretRef: + name: name + readOnly: true + fsType: fsType + volumeAttributes: + key: volumeAttributes name: name - optional: true - items: - - mode: 6 + nfs: path: path - key: key - - mode: 6 + server: server + readOnly: true + persistentVolumeClaim: + claimName: claimName + readOnly: true + gitRepo: + repository: repository + directory: directory + revision: revision + portworxVolume: + volumeID: volumeID + readOnly: true + fsType: fsType + vsphereVolume: + storagePolicyName: storagePolicyName + storagePolicyID: storagePolicyID + volumePath: volumePath + fsType: fsType + fc: + lun: 2 + targetWWNs: + - targetWWNs + - targetWWNs + readOnly: true + wwids: + - wwids + - wwids + fsType: fsType + hostPath: path: path - key: key - storageos: - volumeNamespace: volumeNamespace - volumeName: volumeName - secretRef: - name: name - readOnly: true - fsType: fsType - csi: - driver: driver - nodePublishSecretRef: - name: name - readOnly: true - fsType: fsType - volumeAttributes: - key: volumeAttributes - name: name - nfs: - path: path - server: server - readOnly: true - persistentVolumeClaim: - claimName: claimName - readOnly: true - gitRepo: - repository: repository - directory: directory - revision: revision - portworxVolume: - volumeID: volumeID - readOnly: true - fsType: fsType - vsphereVolume: - storagePolicyName: storagePolicyName - storagePolicyID: storagePolicyID - volumePath: volumePath - fsType: fsType - fc: - lun: 1 - targetWWNs: - - targetWWNs - - targetWWNs - readOnly: true - wwids: - - wwids - - wwids - fsType: fsType - hostPath: - path: path - type: type - - quobyte: - volume: volume - registry: registry - readOnly: true - user: user - tenant: tenant - group: group - azureFile: - secretName: secretName - readOnly: true - shareName: shareName - flexVolume: - driver: driver - options: - key: options - secretRef: - name: name - readOnly: true - fsType: fsType - ephemeral: - volumeClaimTemplate: - metadata: - generation: 6 - finalizers: - - finalizers - - finalizers - resourceVersion: resourceVersion - annotations: - key: annotations - generateName: generateName - deletionTimestamp: 2000-01-23T04:56:07.000+00:00 - labels: - key: labels - ownerReferences: - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - selfLink: selfLink - deletionGracePeriodSeconds: 0 - uid: uid - managedFields: - - apiVersion: apiVersion - fieldsV1: '{}' - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - - apiVersion: apiVersion - fieldsV1: '{}' - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - creationTimestamp: 2000-01-23T04:56:07.000+00:00 + type: type + - quobyte: + volume: volume + registry: registry + readOnly: true + user: user + tenant: tenant + group: group + azureFile: + secretName: secretName + readOnly: true + shareName: shareName + flexVolume: + driver: driver + options: + key: options + secretRef: name: name - namespace: namespace - spec: - storageClassName: storageClassName - dataSourceRef: - apiGroup: apiGroup - kind: kind + readOnly: true + fsType: fsType + ephemeral: + volumeClaimTemplate: + metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: '{}' + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: '{}' + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + creationTimestamp: 2000-01-23T04:56:07.000+00:00 name: name namespace: namespace - volumeName: volumeName - resources: - claims: - - name: name - - name: name - requests: {} - limits: {} - selector: - matchExpressions: - - values: - - values - - values + spec: + storageClassName: storageClassName + dataSourceRef: + apiGroup: apiGroup + kind: kind + name: name + namespace: namespace + volumeName: volumeName + volumeAttributesClassName: volumeAttributesClassName + resources: + requests: {} + limits: {} + selector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + accessModes: + - accessModes + - accessModes + dataSource: + apiGroup: apiGroup + kind: kind + name: name + volumeMode: volumeMode + secret: + secretName: secretName + defaultMode: 3 + optional: true + items: + - mode: 3 + path: path + key: key + - mode: 3 + path: path + key: key + projected: + sources: + - downwardAPI: + items: + - mode: 1 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - mode: 1 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + configMap: + name: name + optional: true + items: + - mode: 3 + path: path key: key - operator: operator - - values: - - values - - values + - mode: 3 + path: path key: key - operator: operator - matchLabels: - key: matchLabels - accessModes: - - accessModes - - accessModes - dataSource: - apiGroup: apiGroup - kind: kind + secret: name: name - volumeMode: volumeMode - secret: - secretName: secretName - defaultMode: 6 - optional: true - items: - - mode: 6 - path: path - key: key - - mode: 6 - path: path - key: key - projected: - sources: - - downwardAPI: - items: - - mode: 6 + optional: true + items: + - mode: 3 + path: path + key: key + - mode: 3 + path: path + key: key + serviceAccountToken: path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - mode: 6 + audience: audience + expirationSeconds: 6 + clusterTrustBundle: path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - configMap: - name: name - optional: true - items: - - mode: 6 + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + name: name + optional: true + signerName: signerName + - downwardAPI: + items: + - mode: 1 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - mode: 1 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + configMap: + name: name + optional: true + items: + - mode: 3 + path: path + key: key + - mode: 3 + path: path + key: key + secret: + name: name + optional: true + items: + - mode: 3 + path: path + key: key + - mode: 3 + path: path + key: key + serviceAccountToken: path: path - key: key - - mode: 6 + audience: audience + expirationSeconds: 6 + clusterTrustBundle: path: path - key: key - secret: + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + name: name + optional: true + signerName: signerName + defaultMode: 5 + cephfs: + path: path + secretRef: name: name - optional: true - items: - - mode: 6 - path: path - key: key - - mode: 6 - path: path - key: key - serviceAccountToken: - path: path - audience: audience - expirationSeconds: 5 - - downwardAPI: - items: - - mode: 6 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - mode: 6 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - configMap: + secretFile: secretFile + readOnly: true + user: user + monitors: + - monitors + - monitors + scaleIO: + system: system + protectionDomain: protectionDomain + sslEnabled: true + storageMode: storageMode + volumeName: volumeName + secretRef: name: name - optional: true - items: - - mode: 6 - path: path - key: key - - mode: 6 - path: path - key: key - secret: + readOnly: true + fsType: fsType + storagePool: storagePool + gateway: gateway + emptyDir: + sizeLimit: sizeLimit + medium: medium + glusterfs: + path: path + endpoints: endpoints + readOnly: true + gcePersistentDisk: + partition: 6 + readOnly: true + pdName: pdName + fsType: fsType + image: + reference: reference + pullPolicy: pullPolicy + photonPersistentDisk: + pdID: pdID + fsType: fsType + azureDisk: + diskName: diskName + kind: kind + readOnly: true + cachingMode: cachingMode + diskURI: diskURI + fsType: fsType + cinder: + secretRef: name: name - optional: true - items: - - mode: 6 - path: path - key: key - - mode: 6 - path: path - key: key - serviceAccountToken: + volumeID: volumeID + readOnly: true + fsType: fsType + downwardAPI: + defaultMode: 6 + items: + - mode: 1 path: path - audience: audience - expirationSeconds: 5 - defaultMode: 6 - cephfs: - path: path - secretRef: - name: name - secretFile: secretFile - readOnly: true - user: user - monitors: - - monitors - - monitors - scaleIO: - system: system - protectionDomain: protectionDomain - sslEnabled: true - storageMode: storageMode - volumeName: volumeName - secretRef: - name: name - readOnly: true - fsType: fsType - storagePool: storagePool - gateway: gateway - emptyDir: - sizeLimit: sizeLimit - medium: medium - glusterfs: - path: path - endpoints: endpoints - readOnly: true - gcePersistentDisk: - partition: 2 - readOnly: true - pdName: pdName - fsType: fsType - photonPersistentDisk: - pdID: pdID - fsType: fsType - azureDisk: - diskName: diskName - kind: kind - readOnly: true - cachingMode: cachingMode - diskURI: diskURI - fsType: fsType - cinder: - secretRef: - name: name - volumeID: volumeID - readOnly: true - fsType: fsType - downwardAPI: - defaultMode: 3 - items: - - mode: 6 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - mode: 6 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - awsElasticBlockStore: - partition: 8 - volumeID: volumeID - readOnly: true - fsType: fsType - flocker: - datasetName: datasetName - datasetUUID: datasetUUID - iscsi: - chapAuthSession: true - iscsiInterface: iscsiInterface - lun: 6 - chapAuthDiscovery: true - iqn: iqn - portals: - - portals - - portals - secretRef: - name: name - initiatorName: initiatorName - readOnly: true - fsType: fsType - targetPortal: targetPortal - rbd: - image: image - pool: pool - secretRef: + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - mode: 1 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + awsElasticBlockStore: + partition: 9 + volumeID: volumeID + readOnly: true + fsType: fsType + flocker: + datasetName: datasetName + datasetUUID: datasetUUID + iscsi: + chapAuthSession: true + iscsiInterface: iscsiInterface + lun: 6 + chapAuthDiscovery: true + iqn: iqn + portals: + - portals + - portals + secretRef: + name: name + initiatorName: initiatorName + readOnly: true + fsType: fsType + targetPortal: targetPortal + rbd: + image: image + pool: pool + secretRef: + name: name + readOnly: true + fsType: fsType + keyring: keyring + user: user + monitors: + - monitors + - monitors + configMap: + defaultMode: 6 name: name - readOnly: true - fsType: fsType - keyring: keyring - user: user - monitors: - - monitors - - monitors - configMap: - defaultMode: 9 + optional: true + items: + - mode: 3 + path: path + key: key + - mode: 3 + path: path + key: key + storageos: + volumeNamespace: volumeNamespace + volumeName: volumeName + secretRef: + name: name + readOnly: true + fsType: fsType + csi: + driver: driver + nodePublishSecretRef: + name: name + readOnly: true + fsType: fsType + volumeAttributes: + key: volumeAttributes name: name - optional: true - items: - - mode: 6 + nfs: path: path - key: key - - mode: 6 + server: server + readOnly: true + persistentVolumeClaim: + claimName: claimName + readOnly: true + gitRepo: + repository: repository + directory: directory + revision: revision + portworxVolume: + volumeID: volumeID + readOnly: true + fsType: fsType + vsphereVolume: + storagePolicyName: storagePolicyName + storagePolicyID: storagePolicyID + volumePath: volumePath + fsType: fsType + fc: + lun: 2 + targetWWNs: + - targetWWNs + - targetWWNs + readOnly: true + wwids: + - wwids + - wwids + fsType: fsType + hostPath: path: path - key: key - storageos: - volumeNamespace: volumeNamespace - volumeName: volumeName - secretRef: + type: type + resources: + claims: + - request: request name: name - readOnly: true - fsType: fsType - csi: - driver: driver - nodePublishSecretRef: + - request: request name: name - readOnly: true - fsType: fsType - volumeAttributes: - key: volumeAttributes - name: name - nfs: - path: path - server: server - readOnly: true - persistentVolumeClaim: - claimName: claimName - readOnly: true - gitRepo: - repository: repository - directory: directory - revision: revision - portworxVolume: - volumeID: volumeID - readOnly: true - fsType: fsType - vsphereVolume: - storagePolicyName: storagePolicyName - storagePolicyID: storagePolicyID - volumePath: volumePath - fsType: fsType - fc: - lun: 1 - targetWWNs: - - targetWWNs - - targetWWNs - readOnly: true - wwids: - - wwids - - wwids - fsType: fsType - hostPath: - path: path - type: type - ephemeralContainers: - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name - stdin: true - terminationMessagePolicy: terminationMessagePolicy - securityContext: - privileged: true - runAsUser: 1 - capabilities: - add: - - add - - add - drop: - - drop - - drop - seLinuxOptions: - role: role - level: level - type: type - user: user - seccompProfile: - localhostProfile: localhostProfile - type: type - windowsOptions: - gmsaCredentialSpec: gmsaCredentialSpec - runAsUserName: runAsUserName - hostProcess: true - gmsaCredentialSpecName: gmsaCredentialSpecName - procMount: procMount - allowPrivilegeEscalation: true - runAsGroup: 1 - runAsNonRoot: true - readOnlyRootFilesystem: true - startupProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - ports: - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 4 - hostPort: 7 - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 4 - hostPort: 7 - volumeMounts: - - mountPath: mountPath - mountPropagation: mountPropagation - name: name - readOnly: true - subPath: subPath - subPathExpr: subPathExpr - - mountPath: mountPath - mountPropagation: mountPropagation - name: name - readOnly: true - subPath: subPath - subPathExpr: subPathExpr - lifecycle: - postStart: + requests: {} + limits: {} + ephemeralContainers: + - volumeDevices: + - devicePath: devicePath + name: name + - devicePath: devicePath + name: name + stdin: true + terminationMessagePolicy: terminationMessagePolicy + securityContext: + privileged: true + runAsUser: 1 + capabilities: + add: + - add + - add + drop: + - drop + - drop + seLinuxOptions: + role: role + level: level + type: type + user: user + appArmorProfile: + localhostProfile: localhostProfile + type: type + seccompProfile: + localhostProfile: localhostProfile + type: type + windowsOptions: + gmsaCredentialSpec: gmsaCredentialSpec + runAsUserName: runAsUserName + hostProcess: true + gmsaCredentialSpecName: gmsaCredentialSpecName + procMount: procMount + allowPrivilegeEscalation: true + runAsGroup: 1 + runAsNonRoot: true + readOnlyRootFilesystem: true + startupProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 tcpSocket: port: port host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command + grpc: + port: 2 + service: service httpGet: path: path scheme: scheme @@ -163046,14 +197565,91 @@ components: value: value - name: name value: value - preStop: + ports: + - protocol: protocol + hostIP: hostIP + name: name + containerPort: 7 + hostPort: 1 + - protocol: protocol + hostIP: hostIP + name: name + containerPort: 7 + hostPort: 1 + volumeMounts: + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + recursiveReadOnly: recursiveReadOnly + subPathExpr: subPathExpr + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + recursiveReadOnly: recursiveReadOnly + subPathExpr: subPathExpr + lifecycle: + postStart: + sleep: + seconds: 5 + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + preStop: + sleep: + seconds: 5 + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + stopSignal: stopSignal + readinessProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 tcpSocket: port: port host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command + grpc: + port: 2 + service: service httpGet: path: path scheme: scheme @@ -163064,233 +197660,45 @@ components: value: value - name: name value: value - readinessProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - resizePolicy: - - resourceName: resourceName - restartPolicy: restartPolicy - - resourceName: resourceName - restartPolicy: restartPolicy - envFrom: - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - image: image - imagePullPolicy: imagePullPolicy - livenessProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - targetContainerName: targetContainerName - terminationMessagePath: terminationMessagePath - workingDir: workingDir - resources: - claims: - - name: name - - name: name - requests: {} - limits: {} - env: - - name: name - value: value - valueFrom: - secretKeyRef: + resizePolicy: + - resourceName: resourceName + restartPolicy: restartPolicy + - resourceName: resourceName + restartPolicy: restartPolicy + envFrom: + - configMapRef: name: name optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: + prefix: prefix + secretRef: name: name optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - name: name - value: value - valueFrom: - secretKeyRef: + - configMapRef: name: name optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: + prefix: prefix + secretRef: name: name optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - restartPolicy: restartPolicy - command: - - command - - command - args: - - args - - args - name: name - tty: true - stdinOnce: true - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name - stdin: true - terminationMessagePolicy: terminationMessagePolicy - securityContext: - privileged: true - runAsUser: 1 - capabilities: - add: - - add - - add - drop: - - drop - - drop - seLinuxOptions: - role: role - level: level - type: type - user: user - seccompProfile: - localhostProfile: localhostProfile - type: type - windowsOptions: - gmsaCredentialSpec: gmsaCredentialSpec - runAsUserName: runAsUserName - hostProcess: true - gmsaCredentialSpecName: gmsaCredentialSpecName - procMount: procMount - allowPrivilegeEscalation: true - runAsGroup: 1 - runAsNonRoot: true - readOnlyRootFilesystem: true - startupProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - ports: - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 4 - hostPort: 7 - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 4 - hostPort: 7 - volumeMounts: - - mountPath: mountPath - mountPropagation: mountPropagation - name: name - readOnly: true - subPath: subPath - subPathExpr: subPathExpr - - mountPath: mountPath - mountPropagation: mountPropagation - name: name - readOnly: true - subPath: subPath - subPathExpr: subPathExpr - lifecycle: - postStart: + image: image + imagePullPolicy: imagePullPolicy + livenessProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 tcpSocket: port: port host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command + grpc: + port: 2 + service: service httpGet: path: path scheme: scheme @@ -163301,14 +197709,119 @@ components: value: value - name: name value: value - preStop: + targetContainerName: targetContainerName + terminationMessagePath: terminationMessagePath + workingDir: workingDir + resources: + claims: + - request: request + name: name + - request: request + name: name + requests: {} + limits: {} + env: + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + restartPolicy: restartPolicy + command: + - command + - command + args: + - args + - args + name: name + tty: true + stdinOnce: true + - volumeDevices: + - devicePath: devicePath + name: name + - devicePath: devicePath + name: name + stdin: true + terminationMessagePolicy: terminationMessagePolicy + securityContext: + privileged: true + runAsUser: 1 + capabilities: + add: + - add + - add + drop: + - drop + - drop + seLinuxOptions: + role: role + level: level + type: type + user: user + appArmorProfile: + localhostProfile: localhostProfile + type: type + seccompProfile: + localhostProfile: localhostProfile + type: type + windowsOptions: + gmsaCredentialSpec: gmsaCredentialSpec + runAsUserName: runAsUserName + hostProcess: true + gmsaCredentialSpecName: gmsaCredentialSpecName + procMount: procMount + allowPrivilegeEscalation: true + runAsGroup: 1 + runAsNonRoot: true + readOnlyRootFilesystem: true + startupProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 tcpSocket: port: port host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command + grpc: + port: 2 + service: service httpGet: path: path scheme: scheme @@ -163319,330 +197832,246 @@ components: value: value - name: name value: value - readinessProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - resizePolicy: - - resourceName: resourceName - restartPolicy: restartPolicy - - resourceName: resourceName - restartPolicy: restartPolicy - envFrom: - - configMapRef: + ports: + - protocol: protocol + hostIP: hostIP name: name - optional: true - prefix: prefix - secretRef: + containerPort: 7 + hostPort: 1 + - protocol: protocol + hostIP: hostIP name: name - optional: true - - configMapRef: + containerPort: 7 + hostPort: 1 + volumeMounts: + - mountPath: mountPath + mountPropagation: mountPropagation name: name - optional: true - prefix: prefix - secretRef: + readOnly: true + subPath: subPath + recursiveReadOnly: recursiveReadOnly + subPathExpr: subPathExpr + - mountPath: mountPath + mountPropagation: mountPropagation name: name - optional: true - image: image - imagePullPolicy: imagePullPolicy - livenessProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - targetContainerName: targetContainerName - terminationMessagePath: terminationMessagePath - workingDir: workingDir - resources: - claims: - - name: name - - name: name - requests: {} - limits: {} - env: - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - name: name - value: value - valueFrom: - secretKeyRef: + readOnly: true + subPath: subPath + recursiveReadOnly: recursiveReadOnly + subPathExpr: subPathExpr + lifecycle: + postStart: + sleep: + seconds: 5 + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + preStop: + sleep: + seconds: 5 + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + stopSignal: stopSignal + readinessProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: port + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + resizePolicy: + - resourceName: resourceName + restartPolicy: restartPolicy + - resourceName: resourceName + restartPolicy: restartPolicy + envFrom: + - configMapRef: name: name optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: + prefix: prefix + secretRef: name: name optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - restartPolicy: restartPolicy - command: - - command - - command - args: - - args - - args - name: name - tty: true - stdinOnce: true - serviceAccount: serviceAccount - priority: 1 - restartPolicy: restartPolicy - shareProcessNamespace: true - hostUsers: true - resourceClaims: - - name: name - source: - resourceClaimName: resourceClaimName - resourceClaimTemplateName: resourceClaimTemplateName - - name: name - source: - resourceClaimName: resourceClaimName - resourceClaimTemplateName: resourceClaimTemplateName - subdomain: subdomain - containers: - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name - image: image - imagePullPolicy: imagePullPolicy - livenessProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - stdin: true - terminationMessagePolicy: terminationMessagePolicy - terminationMessagePath: terminationMessagePath - workingDir: workingDir - resources: - claims: - - name: name - - name: name - requests: {} - limits: {} - securityContext: - privileged: true - runAsUser: 1 - capabilities: - add: - - add - - add - drop: - - drop - - drop - seLinuxOptions: - role: role - level: level - type: type - user: user - seccompProfile: - localhostProfile: localhostProfile - type: type - windowsOptions: - gmsaCredentialSpec: gmsaCredentialSpec - runAsUserName: runAsUserName - hostProcess: true - gmsaCredentialSpecName: gmsaCredentialSpecName - procMount: procMount - allowPrivilegeEscalation: true - runAsGroup: 1 - runAsNonRoot: true - readOnlyRootFilesystem: true - startupProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - env: - - name: name - value: value - valueFrom: - secretKeyRef: + - configMapRef: name: name optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: + prefix: prefix + secretRef: name: name optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - name: name - value: value - valueFrom: - secretKeyRef: + image: image + imagePullPolicy: imagePullPolicy + livenessProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: port + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + targetContainerName: targetContainerName + terminationMessagePath: terminationMessagePath + workingDir: workingDir + resources: + claims: + - request: request name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: + - request: request name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - ports: - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 4 - hostPort: 7 - - protocol: protocol - hostIP: hostIP + requests: {} + limits: {} + env: + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + restartPolicy: restartPolicy + command: + - command + - command + args: + - args + - args name: name - containerPort: 4 - hostPort: 7 + tty: true + stdinOnce: true + serviceAccount: serviceAccount + priority: 6 restartPolicy: restartPolicy - command: - - command - - command - volumeMounts: - - mountPath: mountPath - mountPropagation: mountPropagation + shareProcessNamespace: true + hostUsers: true + resourceClaims: + - resourceClaimName: resourceClaimName name: name - readOnly: true - subPath: subPath - subPathExpr: subPathExpr - - mountPath: mountPath - mountPropagation: mountPropagation + resourceClaimTemplateName: resourceClaimTemplateName + - resourceClaimName: resourceClaimName name: name - readOnly: true - subPath: subPath - subPathExpr: subPathExpr - args: - - args - - args - lifecycle: - postStart: + resourceClaimTemplateName: resourceClaimTemplateName + subdomain: subdomain + containers: + - volumeDevices: + - devicePath: devicePath + name: name + - devicePath: devicePath + name: name + image: image + imagePullPolicy: imagePullPolicy + livenessProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 tcpSocket: port: port host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command + grpc: + port: 2 + service: service httpGet: path: path scheme: scheme @@ -163653,14 +198082,66 @@ components: value: value - name: name value: value - preStop: + stdin: true + terminationMessagePolicy: terminationMessagePolicy + terminationMessagePath: terminationMessagePath + workingDir: workingDir + resources: + claims: + - request: request + name: name + - request: request + name: name + requests: {} + limits: {} + securityContext: + privileged: true + runAsUser: 1 + capabilities: + add: + - add + - add + drop: + - drop + - drop + seLinuxOptions: + role: role + level: level + type: type + user: user + appArmorProfile: + localhostProfile: localhostProfile + type: type + seccompProfile: + localhostProfile: localhostProfile + type: type + windowsOptions: + gmsaCredentialSpec: gmsaCredentialSpec + runAsUserName: runAsUserName + hostProcess: true + gmsaCredentialSpecName: gmsaCredentialSpecName + procMount: procMount + allowPrivilegeEscalation: true + runAsGroup: 1 + runAsNonRoot: true + readOnlyRootFilesystem: true + startupProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 tcpSocket: port: port host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command + grpc: + port: 2 + service: service httpGet: path: path scheme: scheme @@ -163671,232 +198152,192 @@ components: value: value - name: name value: value - name: name - tty: true - readinessProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - resizePolicy: - - resourceName: resourceName - restartPolicy: restartPolicy - - resourceName: resourceName - restartPolicy: restartPolicy - stdinOnce: true - envFrom: - - configMapRef: + env: + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + ports: + - protocol: protocol + hostIP: hostIP name: name - optional: true - prefix: prefix - secretRef: + containerPort: 7 + hostPort: 1 + - protocol: protocol + hostIP: hostIP name: name - optional: true - - configMapRef: + containerPort: 7 + hostPort: 1 + restartPolicy: restartPolicy + command: + - command + - command + volumeMounts: + - mountPath: mountPath + mountPropagation: mountPropagation name: name - optional: true - prefix: prefix - secretRef: + readOnly: true + subPath: subPath + recursiveReadOnly: recursiveReadOnly + subPathExpr: subPathExpr + - mountPath: mountPath + mountPropagation: mountPropagation name: name - optional: true - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath + readOnly: true + subPath: subPath + recursiveReadOnly: recursiveReadOnly + subPathExpr: subPathExpr + args: + - args + - args + lifecycle: + postStart: + sleep: + seconds: 5 + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + preStop: + sleep: + seconds: 5 + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + stopSignal: stopSignal name: name - image: image - imagePullPolicy: imagePullPolicy - livenessProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - stdin: true - terminationMessagePolicy: terminationMessagePolicy - terminationMessagePath: terminationMessagePath - workingDir: workingDir - resources: - claims: - - name: name - - name: name - requests: {} - limits: {} - securityContext: - privileged: true - runAsUser: 1 - capabilities: - add: - - add - - add - drop: - - drop - - drop - seLinuxOptions: - role: role - level: level - type: type - user: user - seccompProfile: - localhostProfile: localhostProfile - type: type - windowsOptions: - gmsaCredentialSpec: gmsaCredentialSpec - runAsUserName: runAsUserName - hostProcess: true - gmsaCredentialSpecName: gmsaCredentialSpecName - procMount: procMount - allowPrivilegeEscalation: true - runAsGroup: 1 - runAsNonRoot: true - readOnlyRootFilesystem: true - startupProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - env: - - name: name - value: value - valueFrom: - secretKeyRef: + tty: true + readinessProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: port + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + resizePolicy: + - resourceName: resourceName + restartPolicy: restartPolicy + - resourceName: resourceName + restartPolicy: restartPolicy + stdinOnce: true + envFrom: + - configMapRef: name: name optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: + prefix: prefix + secretRef: name: name optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - name: name - value: value - valueFrom: - secretKeyRef: + - configMapRef: name: name optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: + prefix: prefix + secretRef: name: name optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - ports: - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 4 - hostPort: 7 - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 4 - hostPort: 7 - restartPolicy: restartPolicy - command: - - command - - command - volumeMounts: - - mountPath: mountPath - mountPropagation: mountPropagation - name: name - readOnly: true - subPath: subPath - subPathExpr: subPathExpr - - mountPath: mountPath - mountPropagation: mountPropagation - name: name - readOnly: true - subPath: subPath - subPathExpr: subPathExpr - args: - - args - - args - lifecycle: - postStart: + - volumeDevices: + - devicePath: devicePath + name: name + - devicePath: devicePath + name: name + image: image + imagePullPolicy: imagePullPolicy + livenessProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 tcpSocket: port: port host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command + grpc: + port: 2 + service: service httpGet: path: path scheme: scheme @@ -163907,14 +198348,66 @@ components: value: value - name: name value: value - preStop: + stdin: true + terminationMessagePolicy: terminationMessagePolicy + terminationMessagePath: terminationMessagePath + workingDir: workingDir + resources: + claims: + - request: request + name: name + - request: request + name: name + requests: {} + limits: {} + securityContext: + privileged: true + runAsUser: 1 + capabilities: + add: + - add + - add + drop: + - drop + - drop + seLinuxOptions: + role: role + level: level + type: type + user: user + appArmorProfile: + localhostProfile: localhostProfile + type: type + seccompProfile: + localhostProfile: localhostProfile + type: type + windowsOptions: + gmsaCredentialSpec: gmsaCredentialSpec + runAsUserName: runAsUserName + hostProcess: true + gmsaCredentialSpecName: gmsaCredentialSpecName + procMount: procMount + allowPrivilegeEscalation: true + runAsGroup: 1 + runAsNonRoot: true + readOnlyRootFilesystem: true + startupProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 tcpSocket: port: port host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command + grpc: + port: 2 + service: service httpGet: path: path scheme: scheme @@ -163925,233 +198418,193 @@ components: value: value - name: name value: value - name: name - tty: true - readinessProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - resizePolicy: - - resourceName: resourceName - restartPolicy: restartPolicy - - resourceName: resourceName - restartPolicy: restartPolicy - stdinOnce: true - envFrom: - - configMapRef: + env: + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + ports: + - protocol: protocol + hostIP: hostIP name: name - optional: true - prefix: prefix - secretRef: + containerPort: 7 + hostPort: 1 + - protocol: protocol + hostIP: hostIP name: name - optional: true - - configMapRef: + containerPort: 7 + hostPort: 1 + restartPolicy: restartPolicy + command: + - command + - command + volumeMounts: + - mountPath: mountPath + mountPropagation: mountPropagation name: name - optional: true - prefix: prefix - secretRef: + readOnly: true + subPath: subPath + recursiveReadOnly: recursiveReadOnly + subPathExpr: subPathExpr + - mountPath: mountPath + mountPropagation: mountPropagation name: name - optional: true - initContainers: - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath + readOnly: true + subPath: subPath + recursiveReadOnly: recursiveReadOnly + subPathExpr: subPathExpr + args: + - args + - args + lifecycle: + postStart: + sleep: + seconds: 5 + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + preStop: + sleep: + seconds: 5 + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + stopSignal: stopSignal name: name - image: image - imagePullPolicy: imagePullPolicy - livenessProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - stdin: true - terminationMessagePolicy: terminationMessagePolicy - terminationMessagePath: terminationMessagePath - workingDir: workingDir - resources: - claims: - - name: name - - name: name - requests: {} - limits: {} - securityContext: - privileged: true - runAsUser: 1 - capabilities: - add: - - add - - add - drop: - - drop - - drop - seLinuxOptions: - role: role - level: level - type: type - user: user - seccompProfile: - localhostProfile: localhostProfile - type: type - windowsOptions: - gmsaCredentialSpec: gmsaCredentialSpec - runAsUserName: runAsUserName - hostProcess: true - gmsaCredentialSpecName: gmsaCredentialSpecName - procMount: procMount - allowPrivilegeEscalation: true - runAsGroup: 1 - runAsNonRoot: true - readOnlyRootFilesystem: true - startupProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - env: - - name: name - value: value - valueFrom: - secretKeyRef: + tty: true + readinessProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: port + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + resizePolicy: + - resourceName: resourceName + restartPolicy: restartPolicy + - resourceName: resourceName + restartPolicy: restartPolicy + stdinOnce: true + envFrom: + - configMapRef: name: name optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: + prefix: prefix + secretRef: name: name optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - name: name - value: value - valueFrom: - secretKeyRef: + - configMapRef: name: name optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: + prefix: prefix + secretRef: name: name optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - ports: - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 4 - hostPort: 7 - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 4 - hostPort: 7 - restartPolicy: restartPolicy - command: - - command - - command - volumeMounts: - - mountPath: mountPath - mountPropagation: mountPropagation - name: name - readOnly: true - subPath: subPath - subPathExpr: subPathExpr - - mountPath: mountPath - mountPropagation: mountPropagation - name: name - readOnly: true - subPath: subPath - subPathExpr: subPathExpr - args: - - args - - args - lifecycle: - postStart: + initContainers: + - volumeDevices: + - devicePath: devicePath + name: name + - devicePath: devicePath + name: name + image: image + imagePullPolicy: imagePullPolicy + livenessProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 tcpSocket: port: port host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command + grpc: + port: 2 + service: service httpGet: path: path scheme: scheme @@ -164162,14 +198615,66 @@ components: value: value - name: name value: value - preStop: + stdin: true + terminationMessagePolicy: terminationMessagePolicy + terminationMessagePath: terminationMessagePath + workingDir: workingDir + resources: + claims: + - request: request + name: name + - request: request + name: name + requests: {} + limits: {} + securityContext: + privileged: true + runAsUser: 1 + capabilities: + add: + - add + - add + drop: + - drop + - drop + seLinuxOptions: + role: role + level: level + type: type + user: user + appArmorProfile: + localhostProfile: localhostProfile + type: type + seccompProfile: + localhostProfile: localhostProfile + type: type + windowsOptions: + gmsaCredentialSpec: gmsaCredentialSpec + runAsUserName: runAsUserName + hostProcess: true + gmsaCredentialSpecName: gmsaCredentialSpecName + procMount: procMount + allowPrivilegeEscalation: true + runAsGroup: 1 + runAsNonRoot: true + readOnlyRootFilesystem: true + startupProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 tcpSocket: port: port host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command + grpc: + port: 2 + service: service httpGet: path: path scheme: scheme @@ -164180,232 +198685,192 @@ components: value: value - name: name value: value - name: name - tty: true - readinessProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - resizePolicy: - - resourceName: resourceName - restartPolicy: restartPolicy - - resourceName: resourceName - restartPolicy: restartPolicy - stdinOnce: true - envFrom: - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: + env: + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + ports: + - protocol: protocol + hostIP: hostIP name: name - optional: true - - configMapRef: + containerPort: 7 + hostPort: 1 + - protocol: protocol + hostIP: hostIP name: name - optional: true - prefix: prefix - secretRef: + containerPort: 7 + hostPort: 1 + restartPolicy: restartPolicy + command: + - command + - command + volumeMounts: + - mountPath: mountPath + mountPropagation: mountPropagation name: name - optional: true - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name - image: image - imagePullPolicy: imagePullPolicy - livenessProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - stdin: true - terminationMessagePolicy: terminationMessagePolicy - terminationMessagePath: terminationMessagePath - workingDir: workingDir - resources: - claims: - - name: name - - name: name - requests: {} - limits: {} - securityContext: - privileged: true - runAsUser: 1 - capabilities: - add: - - add - - add - drop: - - drop - - drop - seLinuxOptions: - role: role - level: level - type: type - user: user - seccompProfile: - localhostProfile: localhostProfile - type: type - windowsOptions: - gmsaCredentialSpec: gmsaCredentialSpec - runAsUserName: runAsUserName - hostProcess: true - gmsaCredentialSpecName: gmsaCredentialSpecName - procMount: procMount - allowPrivilegeEscalation: true - runAsGroup: 1 - runAsNonRoot: true - readOnlyRootFilesystem: true - startupProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - env: - - name: name - value: value - valueFrom: - secretKeyRef: + readOnly: true + subPath: subPath + recursiveReadOnly: recursiveReadOnly + subPathExpr: subPathExpr + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + recursiveReadOnly: recursiveReadOnly + subPathExpr: subPathExpr + args: + - args + - args + lifecycle: + postStart: + sleep: + seconds: 5 + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + preStop: + sleep: + seconds: 5 + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + stopSignal: stopSignal + name: name + tty: true + readinessProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: port + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + resizePolicy: + - resourceName: resourceName + restartPolicy: restartPolicy + - resourceName: resourceName + restartPolicy: restartPolicy + stdinOnce: true + envFrom: + - configMapRef: name: name optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: + prefix: prefix + secretRef: name: name optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - name: name - value: value - valueFrom: - secretKeyRef: + - configMapRef: name: name optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: + prefix: prefix + secretRef: name: name optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - ports: - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 4 - hostPort: 7 - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 4 - hostPort: 7 - restartPolicy: restartPolicy - command: - - command - - command - volumeMounts: - - mountPath: mountPath - mountPropagation: mountPropagation - name: name - readOnly: true - subPath: subPath - subPathExpr: subPathExpr - - mountPath: mountPath - mountPropagation: mountPropagation - name: name - readOnly: true - subPath: subPath - subPathExpr: subPathExpr - args: - - args - - args - lifecycle: - postStart: + - volumeDevices: + - devicePath: devicePath + name: name + - devicePath: devicePath + name: name + image: image + imagePullPolicy: imagePullPolicy + livenessProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 tcpSocket: port: port host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command + grpc: + port: 2 + service: service httpGet: path: path scheme: scheme @@ -164416,14 +198881,66 @@ components: value: value - name: name value: value - preStop: + stdin: true + terminationMessagePolicy: terminationMessagePolicy + terminationMessagePath: terminationMessagePath + workingDir: workingDir + resources: + claims: + - request: request + name: name + - request: request + name: name + requests: {} + limits: {} + securityContext: + privileged: true + runAsUser: 1 + capabilities: + add: + - add + - add + drop: + - drop + - drop + seLinuxOptions: + role: role + level: level + type: type + user: user + appArmorProfile: + localhostProfile: localhostProfile + type: type + seccompProfile: + localhostProfile: localhostProfile + type: type + windowsOptions: + gmsaCredentialSpec: gmsaCredentialSpec + runAsUserName: runAsUserName + hostProcess: true + gmsaCredentialSpecName: gmsaCredentialSpecName + procMount: procMount + allowPrivilegeEscalation: true + runAsGroup: 1 + runAsNonRoot: true + readOnlyRootFilesystem: true + startupProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 tcpSocket: port: port host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command + grpc: + port: 2 + service: service httpGet: path: path scheme: scheme @@ -164434,222 +198951,268 @@ components: value: value - name: name value: value - name: name - tty: true - readinessProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - resizePolicy: - - resourceName: resourceName - restartPolicy: restartPolicy - - resourceName: resourceName - restartPolicy: restartPolicy - stdinOnce: true - envFrom: - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - affinity: - nodeAffinity: - requiredDuringSchedulingIgnoredDuringExecution: - nodeSelectorTerms: - - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchFields: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchFields: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - preferredDuringSchedulingIgnoredDuringExecution: - - preference: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchFields: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - weight: 6 - - preference: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchFields: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - weight: 6 - podAffinity: - requiredDuringSchedulingIgnoredDuringExecution: - - labelSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - topologyKey: topologyKey - namespaces: - - namespaces - - namespaces - - labelSelector: - matchExpressions: - - values: - - values - - values + env: + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true key: key - operator: operator - - values: - - values - - values + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true key: key - operator: operator - matchLabels: - key: matchLabels - namespaceSelector: - matchExpressions: - - values: - - values - - values + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true key: key - operator: operator - - values: - - values - - values + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true key: key - operator: operator - matchLabels: - key: matchLabels - topologyKey: topologyKey - namespaces: - - namespaces - - namespaces - preferredDuringSchedulingIgnoredDuringExecution: - - podAffinityTerm: - labelSelector: + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + ports: + - protocol: protocol + hostIP: hostIP + name: name + containerPort: 7 + hostPort: 1 + - protocol: protocol + hostIP: hostIP + name: name + containerPort: 7 + hostPort: 1 + restartPolicy: restartPolicy + command: + - command + - command + volumeMounts: + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + recursiveReadOnly: recursiveReadOnly + subPathExpr: subPathExpr + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + recursiveReadOnly: recursiveReadOnly + subPathExpr: subPathExpr + args: + - args + - args + lifecycle: + postStart: + sleep: + seconds: 5 + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + preStop: + sleep: + seconds: 5 + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + stopSignal: stopSignal + name: name + tty: true + readinessProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: port + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + resizePolicy: + - resourceName: resourceName + restartPolicy: restartPolicy + - resourceName: resourceName + restartPolicy: restartPolicy + stdinOnce: true + envFrom: + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + affinity: + nodeAffinity: + requiredDuringSchedulingIgnoredDuringExecution: + nodeSelectorTerms: + - matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchFields: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + - matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchFields: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + preferredDuringSchedulingIgnoredDuringExecution: + - preference: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchFields: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + weight: 6 + - preference: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchFields: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + weight: 6 + podAffinity: + requiredDuringSchedulingIgnoredDuringExecution: + - labelSelector: matchExpressions: - values: - values @@ -164678,12 +199241,16 @@ components: matchLabels: key: matchLabels topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + mismatchLabelKeys: + - mismatchLabelKeys + - mismatchLabelKeys namespaces: - namespaces - namespaces - weight: 1 - - podAffinityTerm: - labelSelector: + - labelSelector: matchExpressions: - values: - values @@ -164712,79 +199279,99 @@ components: matchLabels: key: matchLabels topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + mismatchLabelKeys: + - mismatchLabelKeys + - mismatchLabelKeys namespaces: - namespaces - namespaces - weight: 1 - podAntiAffinity: - requiredDuringSchedulingIgnoredDuringExecution: - - labelSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - topologyKey: topologyKey - namespaces: - - namespaces - - namespaces - - labelSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - topologyKey: topologyKey - namespaces: - - namespaces - - namespaces - preferredDuringSchedulingIgnoredDuringExecution: - - podAffinityTerm: - labelSelector: + preferredDuringSchedulingIgnoredDuringExecution: + - podAffinityTerm: + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + mismatchLabelKeys: + - mismatchLabelKeys + - mismatchLabelKeys + namespaces: + - namespaces + - namespaces + weight: 1 + - podAffinityTerm: + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + mismatchLabelKeys: + - mismatchLabelKeys + - mismatchLabelKeys + namespaces: + - namespaces + - namespaces + weight: 1 + podAntiAffinity: + requiredDuringSchedulingIgnoredDuringExecution: + - labelSelector: matchExpressions: - values: - values @@ -164813,12 +199400,16 @@ components: matchLabels: key: matchLabels topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + mismatchLabelKeys: + - mismatchLabelKeys + - mismatchLabelKeys namespaces: - namespaces - namespaces - weight: 1 - - podAffinityTerm: - labelSelector: + - labelSelector: matchExpressions: - values: - values @@ -164847,822 +199438,581 @@ components: matchLabels: key: matchLabels topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + mismatchLabelKeys: + - mismatchLabelKeys + - mismatchLabelKeys namespaces: - namespaces - namespaces - weight: 1 - hostPID: true - status: - phase: phase - resourceClaimStatuses: - - resourceClaimName: resourceClaimName - name: name - - resourceClaimName: resourceClaimName - name: name - reason: reason - containerStatuses: - - allocatedResources: {} - image: image - imageID: imageID - restartCount: 7 - ready: true - name: name - resources: - claims: - - name: name - - name: name - requests: {} - limits: {} - started: true - state: - running: - startedAt: 2000-01-23T04:56:07.000+00:00 - waiting: - reason: reason - message: message - terminated: - reason: reason - exitCode: 3 - startedAt: 2000-01-23T04:56:07.000+00:00 - containerID: containerID - message: message - signal: 3 - finishedAt: 2000-01-23T04:56:07.000+00:00 - containerID: containerID - lastState: - running: - startedAt: 2000-01-23T04:56:07.000+00:00 - waiting: - reason: reason - message: message - terminated: - reason: reason - exitCode: 3 - startedAt: 2000-01-23T04:56:07.000+00:00 - containerID: containerID - message: message - signal: 3 - finishedAt: 2000-01-23T04:56:07.000+00:00 - - allocatedResources: {} - image: image - imageID: imageID - restartCount: 7 - ready: true - name: name - resources: - claims: + preferredDuringSchedulingIgnoredDuringExecution: + - podAffinityTerm: + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + mismatchLabelKeys: + - mismatchLabelKeys + - mismatchLabelKeys + namespaces: + - namespaces + - namespaces + weight: 1 + - podAffinityTerm: + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + mismatchLabelKeys: + - mismatchLabelKeys + - mismatchLabelKeys + namespaces: + - namespaces + - namespaces + weight: 1 + hostPID: true + status: + phase: phase + resourceClaimStatuses: + - resourceClaimName: resourceClaimName + name: name + - resourceClaimName: resourceClaimName + name: name + reason: reason + containerStatuses: + - allocatedResourcesStatus: - name: name + resources: + - resourceID: resourceID + health: health + - resourceID: resourceID + health: health - name: name - requests: {} - limits: {} - started: true - state: - running: - startedAt: 2000-01-23T04:56:07.000+00:00 - waiting: - reason: reason - message: message - terminated: - reason: reason - exitCode: 3 - startedAt: 2000-01-23T04:56:07.000+00:00 - containerID: containerID - message: message - signal: 3 - finishedAt: 2000-01-23T04:56:07.000+00:00 - containerID: containerID - lastState: - running: - startedAt: 2000-01-23T04:56:07.000+00:00 - waiting: - reason: reason - message: message - terminated: - reason: reason - exitCode: 3 - startedAt: 2000-01-23T04:56:07.000+00:00 - containerID: containerID - message: message - signal: 3 - finishedAt: 2000-01-23T04:56:07.000+00:00 - hostIP: hostIP - nominatedNodeName: nominatedNodeName - message: message - podIPs: - - ip: ip - - ip: ip - podIP: podIP - ephemeralContainerStatuses: - - allocatedResources: {} - image: image - imageID: imageID - restartCount: 7 - ready: true - name: name - resources: - claims: + resources: + - resourceID: resourceID + health: health + - resourceID: resourceID + health: health + image: image + imageID: imageID + restartCount: 7 + resources: + claims: + - request: request + name: name + - request: request + name: name + requests: {} + limits: {} + started: true + lastState: + running: + startedAt: 2000-01-23T04:56:07.000+00:00 + waiting: + reason: reason + message: message + terminated: + reason: reason + exitCode: 7 + startedAt: 2000-01-23T04:56:07.000+00:00 + containerID: containerID + message: message + signal: 0 + finishedAt: 2000-01-23T04:56:07.000+00:00 + volumeMounts: + - mountPath: mountPath + name: name + readOnly: true + recursiveReadOnly: recursiveReadOnly + - mountPath: mountPath + name: name + readOnly: true + recursiveReadOnly: recursiveReadOnly + allocatedResources: {} + ready: true + name: name + state: + running: + startedAt: 2000-01-23T04:56:07.000+00:00 + waiting: + reason: reason + message: message + terminated: + reason: reason + exitCode: 7 + startedAt: 2000-01-23T04:56:07.000+00:00 + containerID: containerID + message: message + signal: 0 + finishedAt: 2000-01-23T04:56:07.000+00:00 + containerID: containerID + stopSignal: stopSignal + user: + linux: + uid: 4 + gid: 6 + supplementalGroups: + - 0 + - 0 + - allocatedResourcesStatus: - name: name + resources: + - resourceID: resourceID + health: health + - resourceID: resourceID + health: health - name: name - requests: {} - limits: {} - started: true - state: - running: - startedAt: 2000-01-23T04:56:07.000+00:00 - waiting: - reason: reason - message: message - terminated: - reason: reason - exitCode: 3 - startedAt: 2000-01-23T04:56:07.000+00:00 - containerID: containerID - message: message - signal: 3 - finishedAt: 2000-01-23T04:56:07.000+00:00 - containerID: containerID - lastState: - running: - startedAt: 2000-01-23T04:56:07.000+00:00 - waiting: - reason: reason - message: message - terminated: - reason: reason - exitCode: 3 - startedAt: 2000-01-23T04:56:07.000+00:00 - containerID: containerID - message: message - signal: 3 - finishedAt: 2000-01-23T04:56:07.000+00:00 - - allocatedResources: {} - image: image - imageID: imageID - restartCount: 7 - ready: true - name: name - resources: - claims: + resources: + - resourceID: resourceID + health: health + - resourceID: resourceID + health: health + image: image + imageID: imageID + restartCount: 7 + resources: + claims: + - request: request + name: name + - request: request + name: name + requests: {} + limits: {} + started: true + lastState: + running: + startedAt: 2000-01-23T04:56:07.000+00:00 + waiting: + reason: reason + message: message + terminated: + reason: reason + exitCode: 7 + startedAt: 2000-01-23T04:56:07.000+00:00 + containerID: containerID + message: message + signal: 0 + finishedAt: 2000-01-23T04:56:07.000+00:00 + volumeMounts: + - mountPath: mountPath + name: name + readOnly: true + recursiveReadOnly: recursiveReadOnly + - mountPath: mountPath + name: name + readOnly: true + recursiveReadOnly: recursiveReadOnly + allocatedResources: {} + ready: true + name: name + state: + running: + startedAt: 2000-01-23T04:56:07.000+00:00 + waiting: + reason: reason + message: message + terminated: + reason: reason + exitCode: 7 + startedAt: 2000-01-23T04:56:07.000+00:00 + containerID: containerID + message: message + signal: 0 + finishedAt: 2000-01-23T04:56:07.000+00:00 + containerID: containerID + stopSignal: stopSignal + user: + linux: + uid: 4 + gid: 6 + supplementalGroups: + - 0 + - 0 + hostIP: hostIP + nominatedNodeName: nominatedNodeName + message: message + podIPs: + - ip: ip + - ip: ip + podIP: podIP + ephemeralContainerStatuses: + - allocatedResourcesStatus: - name: name + resources: + - resourceID: resourceID + health: health + - resourceID: resourceID + health: health - name: name - requests: {} - limits: {} - started: true - state: - running: - startedAt: 2000-01-23T04:56:07.000+00:00 - waiting: - reason: reason - message: message - terminated: - reason: reason - exitCode: 3 - startedAt: 2000-01-23T04:56:07.000+00:00 - containerID: containerID - message: message - signal: 3 - finishedAt: 2000-01-23T04:56:07.000+00:00 - containerID: containerID - lastState: - running: - startedAt: 2000-01-23T04:56:07.000+00:00 - waiting: - reason: reason - message: message - terminated: - reason: reason - exitCode: 3 - startedAt: 2000-01-23T04:56:07.000+00:00 - containerID: containerID - message: message - signal: 3 - finishedAt: 2000-01-23T04:56:07.000+00:00 - hostIPs: - - ip: ip - - ip: ip - resize: resize - startTime: 2000-01-23T04:56:07.000+00:00 - qosClass: qosClass - conditions: - - reason: reason - lastTransitionTime: 2000-01-23T04:56:07.000+00:00 - message: message - type: type - lastProbeTime: 2000-01-23T04:56:07.000+00:00 - status: status - - reason: reason - lastTransitionTime: 2000-01-23T04:56:07.000+00:00 - message: message - type: type - lastProbeTime: 2000-01-23T04:56:07.000+00:00 - status: status - initContainerStatuses: - - allocatedResources: {} - image: image - imageID: imageID - restartCount: 7 - ready: true - name: name - resources: - claims: + resources: + - resourceID: resourceID + health: health + - resourceID: resourceID + health: health + image: image + imageID: imageID + restartCount: 7 + resources: + claims: + - request: request + name: name + - request: request + name: name + requests: {} + limits: {} + started: true + lastState: + running: + startedAt: 2000-01-23T04:56:07.000+00:00 + waiting: + reason: reason + message: message + terminated: + reason: reason + exitCode: 7 + startedAt: 2000-01-23T04:56:07.000+00:00 + containerID: containerID + message: message + signal: 0 + finishedAt: 2000-01-23T04:56:07.000+00:00 + volumeMounts: + - mountPath: mountPath + name: name + readOnly: true + recursiveReadOnly: recursiveReadOnly + - mountPath: mountPath + name: name + readOnly: true + recursiveReadOnly: recursiveReadOnly + allocatedResources: {} + ready: true + name: name + state: + running: + startedAt: 2000-01-23T04:56:07.000+00:00 + waiting: + reason: reason + message: message + terminated: + reason: reason + exitCode: 7 + startedAt: 2000-01-23T04:56:07.000+00:00 + containerID: containerID + message: message + signal: 0 + finishedAt: 2000-01-23T04:56:07.000+00:00 + containerID: containerID + stopSignal: stopSignal + user: + linux: + uid: 4 + gid: 6 + supplementalGroups: + - 0 + - 0 + - allocatedResourcesStatus: - name: name + resources: + - resourceID: resourceID + health: health + - resourceID: resourceID + health: health - name: name - requests: {} - limits: {} - started: true - state: - running: - startedAt: 2000-01-23T04:56:07.000+00:00 - waiting: - reason: reason - message: message - terminated: - reason: reason - exitCode: 3 - startedAt: 2000-01-23T04:56:07.000+00:00 - containerID: containerID - message: message - signal: 3 - finishedAt: 2000-01-23T04:56:07.000+00:00 - containerID: containerID - lastState: - running: - startedAt: 2000-01-23T04:56:07.000+00:00 - waiting: - reason: reason - message: message - terminated: - reason: reason - exitCode: 3 - startedAt: 2000-01-23T04:56:07.000+00:00 - containerID: containerID - message: message - signal: 3 - finishedAt: 2000-01-23T04:56:07.000+00:00 - - allocatedResources: {} - image: image - imageID: imageID - restartCount: 7 - ready: true - name: name - resources: - claims: + resources: + - resourceID: resourceID + health: health + - resourceID: resourceID + health: health + image: image + imageID: imageID + restartCount: 7 + resources: + claims: + - request: request + name: name + - request: request + name: name + requests: {} + limits: {} + started: true + lastState: + running: + startedAt: 2000-01-23T04:56:07.000+00:00 + waiting: + reason: reason + message: message + terminated: + reason: reason + exitCode: 7 + startedAt: 2000-01-23T04:56:07.000+00:00 + containerID: containerID + message: message + signal: 0 + finishedAt: 2000-01-23T04:56:07.000+00:00 + volumeMounts: + - mountPath: mountPath + name: name + readOnly: true + recursiveReadOnly: recursiveReadOnly + - mountPath: mountPath + name: name + readOnly: true + recursiveReadOnly: recursiveReadOnly + allocatedResources: {} + ready: true + name: name + state: + running: + startedAt: 2000-01-23T04:56:07.000+00:00 + waiting: + reason: reason + message: message + terminated: + reason: reason + exitCode: 7 + startedAt: 2000-01-23T04:56:07.000+00:00 + containerID: containerID + message: message + signal: 0 + finishedAt: 2000-01-23T04:56:07.000+00:00 + containerID: containerID + stopSignal: stopSignal + user: + linux: + uid: 4 + gid: 6 + supplementalGroups: + - 0 + - 0 + hostIPs: + - ip: ip + - ip: ip + resize: resize + startTime: 2000-01-23T04:56:07.000+00:00 + qosClass: qosClass + conditions: + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + observedGeneration: 3 + lastProbeTime: 2000-01-23T04:56:07.000+00:00 + status: status + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + observedGeneration: 3 + lastProbeTime: 2000-01-23T04:56:07.000+00:00 + status: status + initContainerStatuses: + - allocatedResourcesStatus: - name: name + resources: + - resourceID: resourceID + health: health + - resourceID: resourceID + health: health - name: name - requests: {} - limits: {} - started: true - state: - running: - startedAt: 2000-01-23T04:56:07.000+00:00 - waiting: - reason: reason - message: message - terminated: - reason: reason - exitCode: 3 - startedAt: 2000-01-23T04:56:07.000+00:00 - containerID: containerID - message: message - signal: 3 - finishedAt: 2000-01-23T04:56:07.000+00:00 - containerID: containerID - lastState: - running: - startedAt: 2000-01-23T04:56:07.000+00:00 - waiting: - reason: reason - message: message - terminated: - reason: reason - exitCode: 3 - startedAt: 2000-01-23T04:56:07.000+00:00 - containerID: containerID - message: message - signal: 3 - finishedAt: 2000-01-23T04:56:07.000+00:00 - properties: - apiVersion: - description: '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' - type: string - kind: - description: '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' - type: string - metadata: - $ref: '#/components/schemas/v1.ObjectMeta' - spec: - $ref: '#/components/schemas/v1.PodSpec' - status: - $ref: '#/components/schemas/v1.PodStatus' - type: object - x-kubernetes-group-version-kind: - - group: "" - kind: Pod - version: v1 - x-implements: - - io.kubernetes.client.common.KubernetesObject - v1.PodAffinity: - description: Pod affinity is a group of inter pod affinity scheduling rules. - example: - requiredDuringSchedulingIgnoredDuringExecution: - - labelSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - topologyKey: topologyKey - namespaces: - - namespaces - - namespaces - - labelSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - topologyKey: topologyKey - namespaces: - - namespaces - - namespaces - preferredDuringSchedulingIgnoredDuringExecution: - - podAffinityTerm: - labelSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - topologyKey: topologyKey - namespaces: - - namespaces - - namespaces - weight: 1 - - podAffinityTerm: - labelSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - topologyKey: topologyKey - namespaces: - - namespaces - - namespaces - weight: 1 - properties: - preferredDuringSchedulingIgnoredDuringExecution: - description: 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. - items: - $ref: '#/components/schemas/v1.WeightedPodAffinityTerm' - type: array - requiredDuringSchedulingIgnoredDuringExecution: - description: 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. - items: - $ref: '#/components/schemas/v1.PodAffinityTerm' - type: array - type: object - v1.PodAffinityTerm: - 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 - example: - labelSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - topologyKey: topologyKey - namespaces: - - namespaces - - namespaces - properties: - labelSelector: - $ref: '#/components/schemas/v1.LabelSelector' - namespaceSelector: - $ref: '#/components/schemas/v1.LabelSelector' - namespaces: - description: 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". - items: - type: string - type: array - topologyKey: - description: 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. - type: string - required: - - topologyKey - type: object - v1.PodAntiAffinity: - description: Pod anti affinity is a group of inter pod anti affinity scheduling - rules. - example: - requiredDuringSchedulingIgnoredDuringExecution: - - labelSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - topologyKey: topologyKey - namespaces: - - namespaces - - namespaces - - labelSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - topologyKey: topologyKey - namespaces: - - namespaces - - namespaces - preferredDuringSchedulingIgnoredDuringExecution: - - podAffinityTerm: - labelSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - topologyKey: topologyKey - namespaces: - - namespaces - - namespaces - weight: 1 - - podAffinityTerm: - labelSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - topologyKey: topologyKey - namespaces: - - namespaces - - namespaces - weight: 1 - properties: - preferredDuringSchedulingIgnoredDuringExecution: - description: 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. - items: - $ref: '#/components/schemas/v1.WeightedPodAffinityTerm' - type: array - requiredDuringSchedulingIgnoredDuringExecution: - description: 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. - items: - $ref: '#/components/schemas/v1.PodAffinityTerm' - type: array - type: object - v1.PodCondition: - description: PodCondition contains details for the current condition of this - pod. - example: - reason: reason - lastTransitionTime: 2000-01-23T04:56:07.000+00:00 - message: message - type: type - lastProbeTime: 2000-01-23T04:56:07.000+00:00 - status: status - properties: - lastProbeTime: - description: Last time we probed the condition. - format: date-time - type: string - lastTransitionTime: - description: Last time the condition transitioned from one status to another. - format: date-time - type: string - message: - description: Human-readable message indicating details about last transition. - type: string - reason: - description: Unique, one-word, CamelCase reason for the condition's last - transition. - type: string - status: - description: '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' - type: string - type: - description: 'Type is the type of the condition. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-conditions' - type: string - required: - - status - - type - type: object - v1.PodDNSConfig: - description: PodDNSConfig defines the DNS parameters of a pod in addition to - those generated from DNSPolicy. - example: - searches: - - searches - - searches - nameservers: - - nameservers - - nameservers - options: - - name: name - value: value - - name: name - value: value - properties: - nameservers: - description: A list of DNS name server IP addresses. This will be appended - to the base nameservers generated from DNSPolicy. Duplicated nameservers - will be removed. - items: - type: string - type: array - options: - description: 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. - items: - $ref: '#/components/schemas/v1.PodDNSConfigOption' - type: array - searches: - description: 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. - items: - type: string - type: array - type: object - v1.PodDNSConfigOption: - description: PodDNSConfigOption defines DNS resolver options of a pod. - example: - name: name - value: value - properties: - name: - description: Required. - type: string - value: - type: string - type: object - v1.PodIP: - description: PodIP represents a single IP address allocated to the pod. - example: - ip: ip - properties: - ip: - description: IP is the IP address assigned to the pod - type: string - type: object - v1.PodList: - description: PodList is a list of Pods. - example: - metadata: - remainingItemCount: 1 - continue: continue - resourceVersion: resourceVersion - selfLink: selfLink - apiVersion: apiVersion - kind: kind - items: + resources: + - resourceID: resourceID + health: health + - resourceID: resourceID + health: health + image: image + imageID: imageID + restartCount: 7 + resources: + claims: + - request: request + name: name + - request: request + name: name + requests: {} + limits: {} + started: true + lastState: + running: + startedAt: 2000-01-23T04:56:07.000+00:00 + waiting: + reason: reason + message: message + terminated: + reason: reason + exitCode: 7 + startedAt: 2000-01-23T04:56:07.000+00:00 + containerID: containerID + message: message + signal: 0 + finishedAt: 2000-01-23T04:56:07.000+00:00 + volumeMounts: + - mountPath: mountPath + name: name + readOnly: true + recursiveReadOnly: recursiveReadOnly + - mountPath: mountPath + name: name + readOnly: true + recursiveReadOnly: recursiveReadOnly + allocatedResources: {} + ready: true + name: name + state: + running: + startedAt: 2000-01-23T04:56:07.000+00:00 + waiting: + reason: reason + message: message + terminated: + reason: reason + exitCode: 7 + startedAt: 2000-01-23T04:56:07.000+00:00 + containerID: containerID + message: message + signal: 0 + finishedAt: 2000-01-23T04:56:07.000+00:00 + containerID: containerID + stopSignal: stopSignal + user: + linux: + uid: 4 + gid: 6 + supplementalGroups: + - 0 + - 0 + - allocatedResourcesStatus: + - name: name + resources: + - resourceID: resourceID + health: health + - resourceID: resourceID + health: health + - name: name + resources: + - resourceID: resourceID + health: health + - resourceID: resourceID + health: health + image: image + imageID: imageID + restartCount: 7 + resources: + claims: + - request: request + name: name + - request: request + name: name + requests: {} + limits: {} + started: true + lastState: + running: + startedAt: 2000-01-23T04:56:07.000+00:00 + waiting: + reason: reason + message: message + terminated: + reason: reason + exitCode: 7 + startedAt: 2000-01-23T04:56:07.000+00:00 + containerID: containerID + message: message + signal: 0 + finishedAt: 2000-01-23T04:56:07.000+00:00 + volumeMounts: + - mountPath: mountPath + name: name + readOnly: true + recursiveReadOnly: recursiveReadOnly + - mountPath: mountPath + name: name + readOnly: true + recursiveReadOnly: recursiveReadOnly + allocatedResources: {} + ready: true + name: name + state: + running: + startedAt: 2000-01-23T04:56:07.000+00:00 + waiting: + reason: reason + message: message + terminated: + reason: reason + exitCode: 7 + startedAt: 2000-01-23T04:56:07.000+00:00 + containerID: containerID + message: message + signal: 0 + finishedAt: 2000-01-23T04:56:07.000+00:00 + containerID: containerID + stopSignal: stopSignal + user: + linux: + uid: 4 + gid: 6 + supplementalGroups: + - 0 + - 0 + observedGeneration: 8 - metadata: generation: 6 finalizers: @@ -165714,7 +200064,7 @@ components: spec: dnsPolicy: dnsPolicy nodeName: nodeName - terminationGracePeriodSeconds: 5 + terminationGracePeriodSeconds: 9 dnsConfig: searches: - searches @@ -165746,32 +200096,37 @@ components: - hostnames - hostnames securityContext: - runAsUser: 1 seLinuxOptions: role: role level: level type: type user: user - fsGroup: 6 - seccompProfile: + appArmorProfile: localhostProfile: localhostProfile type: type - windowsOptions: - gmsaCredentialSpec: gmsaCredentialSpec - runAsUserName: runAsUserName - hostProcess: true - gmsaCredentialSpecName: gmsaCredentialSpecName + fsGroup: 7 fsGroupChangePolicy: fsGroupChangePolicy - supplementalGroups: - - 4 - - 4 - runAsGroup: 7 + seLinuxChangePolicy: seLinuxChangePolicy + runAsGroup: 1 runAsNonRoot: true sysctls: - name: name value: value - name: name value: value + runAsUser: 4 + seccompProfile: + localhostProfile: localhostProfile + type: type + windowsOptions: + gmsaCredentialSpec: gmsaCredentialSpec + runAsUserName: runAsUserName + hostProcess: true + gmsaCredentialSpecName: gmsaCredentialSpecName + supplementalGroups: + - 5 + - 5 + supplementalGroupsPolicy: supplementalGroupsPolicy preemptionPolicy: preemptionPolicy nodeSelector: key: nodeSelector @@ -165803,7 +200158,7 @@ components: topologySpreadConstraints: - nodeTaintsPolicy: nodeTaintsPolicy whenUnsatisfiable: whenUnsatisfiable - maxSkew: 9 + maxSkew: 6 nodeAffinityPolicy: nodeAffinityPolicy labelSelector: matchExpressions: @@ -165819,14 +200174,14 @@ components: operator: operator matchLabels: key: matchLabels - minDomains: 6 + minDomains: 8 topologyKey: topologyKey matchLabelKeys: - matchLabelKeys - matchLabelKeys - nodeTaintsPolicy: nodeTaintsPolicy whenUnsatisfiable: whenUnsatisfiable - maxSkew: 9 + maxSkew: 6 nodeAffinityPolicy: nodeAffinityPolicy labelSelector: matchExpressions: @@ -165842,7 +200197,7 @@ components: operator: operator matchLabels: key: matchLabels - minDomains: 6 + minDomains: 8 topologyKey: topologyKey matchLabelKeys: - matchLabelKeys @@ -165923,10 +200278,8 @@ components: name: name namespace: namespace volumeName: volumeName + volumeAttributesClassName: volumeAttributesClassName resources: - claims: - - name: name - - name: name requests: {} limits: {} selector: @@ -165953,20 +200306,20 @@ components: volumeMode: volumeMode secret: secretName: secretName - defaultMode: 6 + defaultMode: 3 optional: true items: - - mode: 6 + - mode: 3 path: path key: key - - mode: 6 + - mode: 3 path: path key: key projected: sources: - downwardAPI: items: - - mode: 6 + - mode: 1 path: path resourceFieldRef: divisor: divisor @@ -165975,7 +200328,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 6 + - mode: 1 path: path resourceFieldRef: divisor: divisor @@ -165988,29 +200341,48 @@ components: name: name optional: true items: - - mode: 6 + - mode: 3 path: path key: key - - mode: 6 + - mode: 3 path: path key: key secret: name: name optional: true items: - - mode: 6 + - mode: 3 path: path key: key - - mode: 6 + - mode: 3 path: path key: key serviceAccountToken: path: path audience: audience - expirationSeconds: 5 + expirationSeconds: 6 + clusterTrustBundle: + path: path + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + name: name + optional: true + signerName: signerName - downwardAPI: items: - - mode: 6 + - mode: 1 path: path resourceFieldRef: divisor: divisor @@ -166019,7 +200391,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 6 + - mode: 1 path: path resourceFieldRef: divisor: divisor @@ -166032,27 +200404,46 @@ components: name: name optional: true items: - - mode: 6 + - mode: 3 path: path key: key - - mode: 6 + - mode: 3 path: path key: key secret: name: name optional: true items: - - mode: 6 + - mode: 3 path: path key: key - - mode: 6 + - mode: 3 path: path key: key serviceAccountToken: path: path audience: audience - expirationSeconds: 5 - defaultMode: 6 + expirationSeconds: 6 + clusterTrustBundle: + path: path + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + name: name + optional: true + signerName: signerName + defaultMode: 5 cephfs: path: path secretRef: @@ -166083,10 +200474,13 @@ components: endpoints: endpoints readOnly: true gcePersistentDisk: - partition: 2 + partition: 6 readOnly: true pdName: pdName fsType: fsType + image: + reference: reference + pullPolicy: pullPolicy photonPersistentDisk: pdID: pdID fsType: fsType @@ -166104,9 +200498,9 @@ components: readOnly: true fsType: fsType downwardAPI: - defaultMode: 3 + defaultMode: 6 items: - - mode: 6 + - mode: 1 path: path resourceFieldRef: divisor: divisor @@ -166115,7 +200509,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 6 + - mode: 1 path: path resourceFieldRef: divisor: divisor @@ -166125,7 +200519,7 @@ components: apiVersion: apiVersion fieldPath: fieldPath awsElasticBlockStore: - partition: 8 + partition: 9 volumeID: volumeID readOnly: true fsType: fsType @@ -166160,14 +200554,14 @@ components: - monitors - monitors configMap: - defaultMode: 9 + defaultMode: 6 name: name optional: true items: - - mode: 6 + - mode: 3 path: path key: key - - mode: 6 + - mode: 3 path: path key: key storageos: @@ -166207,7 +200601,7 @@ components: volumePath: volumePath fsType: fsType fc: - lun: 1 + lun: 2 targetWWNs: - targetWWNs - targetWWNs @@ -166294,10 +200688,8 @@ components: name: name namespace: namespace volumeName: volumeName + volumeAttributesClassName: volumeAttributesClassName resources: - claims: - - name: name - - name: name requests: {} limits: {} selector: @@ -166324,20 +200716,20 @@ components: volumeMode: volumeMode secret: secretName: secretName - defaultMode: 6 + defaultMode: 3 optional: true items: - - mode: 6 + - mode: 3 path: path key: key - - mode: 6 + - mode: 3 path: path key: key projected: sources: - downwardAPI: items: - - mode: 6 + - mode: 1 path: path resourceFieldRef: divisor: divisor @@ -166346,7 +200738,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 6 + - mode: 1 path: path resourceFieldRef: divisor: divisor @@ -166359,29 +200751,48 @@ components: name: name optional: true items: - - mode: 6 + - mode: 3 path: path key: key - - mode: 6 + - mode: 3 path: path key: key secret: name: name optional: true items: - - mode: 6 + - mode: 3 path: path key: key - - mode: 6 + - mode: 3 path: path key: key serviceAccountToken: path: path audience: audience - expirationSeconds: 5 + expirationSeconds: 6 + clusterTrustBundle: + path: path + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + name: name + optional: true + signerName: signerName - downwardAPI: items: - - mode: 6 + - mode: 1 path: path resourceFieldRef: divisor: divisor @@ -166390,7 +200801,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 6 + - mode: 1 path: path resourceFieldRef: divisor: divisor @@ -166403,27 +200814,46 @@ components: name: name optional: true items: - - mode: 6 + - mode: 3 path: path key: key - - mode: 6 + - mode: 3 path: path key: key secret: name: name optional: true items: - - mode: 6 + - mode: 3 path: path key: key - - mode: 6 + - mode: 3 path: path key: key serviceAccountToken: path: path audience: audience - expirationSeconds: 5 - defaultMode: 6 + expirationSeconds: 6 + clusterTrustBundle: + path: path + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + name: name + optional: true + signerName: signerName + defaultMode: 5 cephfs: path: path secretRef: @@ -166454,10 +200884,13 @@ components: endpoints: endpoints readOnly: true gcePersistentDisk: - partition: 2 + partition: 6 readOnly: true pdName: pdName fsType: fsType + image: + reference: reference + pullPolicy: pullPolicy photonPersistentDisk: pdID: pdID fsType: fsType @@ -166475,9 +200908,9 @@ components: readOnly: true fsType: fsType downwardAPI: - defaultMode: 3 + defaultMode: 6 items: - - mode: 6 + - mode: 1 path: path resourceFieldRef: divisor: divisor @@ -166486,7 +200919,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 6 + - mode: 1 path: path resourceFieldRef: divisor: divisor @@ -166496,7 +200929,7 @@ components: apiVersion: apiVersion fieldPath: fieldPath awsElasticBlockStore: - partition: 8 + partition: 9 volumeID: volumeID readOnly: true fsType: fsType @@ -166531,14 +200964,14 @@ components: - monitors - monitors configMap: - defaultMode: 9 + defaultMode: 6 name: name optional: true items: - - mode: 6 + - mode: 3 path: path key: key - - mode: 6 + - mode: 3 path: path key: key storageos: @@ -166578,7 +201011,7 @@ components: volumePath: volumePath fsType: fsType fc: - lun: 1 + lun: 2 targetWWNs: - targetWWNs - targetWWNs @@ -166590,6 +201023,14 @@ components: hostPath: path: path type: type + resources: + claims: + - request: request + name: name + - request: request + name: name + requests: {} + limits: {} ephemeralContainers: - volumeDevices: - devicePath: devicePath @@ -166613,6 +201054,276 @@ components: level: level type: type user: user + appArmorProfile: + localhostProfile: localhostProfile + type: type + seccompProfile: + localhostProfile: localhostProfile + type: type + windowsOptions: + gmsaCredentialSpec: gmsaCredentialSpec + runAsUserName: runAsUserName + hostProcess: true + gmsaCredentialSpecName: gmsaCredentialSpecName + procMount: procMount + allowPrivilegeEscalation: true + runAsGroup: 1 + runAsNonRoot: true + readOnlyRootFilesystem: true + startupProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: port + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + ports: + - protocol: protocol + hostIP: hostIP + name: name + containerPort: 7 + hostPort: 1 + - protocol: protocol + hostIP: hostIP + name: name + containerPort: 7 + hostPort: 1 + volumeMounts: + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + recursiveReadOnly: recursiveReadOnly + subPathExpr: subPathExpr + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + recursiveReadOnly: recursiveReadOnly + subPathExpr: subPathExpr + lifecycle: + postStart: + sleep: + seconds: 5 + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + preStop: + sleep: + seconds: 5 + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + stopSignal: stopSignal + readinessProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: port + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + resizePolicy: + - resourceName: resourceName + restartPolicy: restartPolicy + - resourceName: resourceName + restartPolicy: restartPolicy + envFrom: + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + image: image + imagePullPolicy: imagePullPolicy + livenessProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: port + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + targetContainerName: targetContainerName + terminationMessagePath: terminationMessagePath + workingDir: workingDir + resources: + claims: + - request: request + name: name + - request: request + name: name + requests: {} + limits: {} + env: + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + restartPolicy: restartPolicy + command: + - command + - command + args: + - args + - args + name: name + tty: true + stdinOnce: true + - volumeDevices: + - devicePath: devicePath + name: name + - devicePath: devicePath + name: name + stdin: true + terminationMessagePolicy: terminationMessagePolicy + securityContext: + privileged: true + runAsUser: 1 + capabilities: + add: + - add + - add + drop: + - drop + - drop + seLinuxOptions: + role: role + level: level + type: type + user: user + appArmorProfile: + localhostProfile: localhostProfile + type: type seccompProfile: localhostProfile: localhostProfile type: type @@ -166627,21 +201338,21 @@ components: runAsNonRoot: true readOnlyRootFilesystem: true startupProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -166657,28 +201368,32 @@ components: - protocol: protocol hostIP: hostIP name: name - containerPort: 4 - hostPort: 7 + containerPort: 7 + hostPort: 1 - protocol: protocol hostIP: hostIP name: name - containerPort: 4 - hostPort: 7 + containerPort: 7 + hostPort: 1 volumeMounts: - mountPath: mountPath mountPropagation: mountPropagation name: name readOnly: true subPath: subPath + recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - mountPath: mountPath mountPropagation: mountPropagation name: name readOnly: true subPath: subPath + recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr lifecycle: postStart: + sleep: + seconds: 5 tcpSocket: port: port host: host @@ -166697,6 +201412,8 @@ components: - name: name value: value preStop: + sleep: + seconds: 5 tcpSocket: port: port host: host @@ -166714,22 +201431,23 @@ components: value: value - name: name value: value + stopSignal: stopSignal readinessProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -166764,21 +201482,21 @@ components: image: image imagePullPolicy: imagePullPolicy livenessProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -166795,263 +201513,10 @@ components: workingDir: workingDir resources: claims: - - name: name - - name: name - requests: {} - limits: {} - env: - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - restartPolicy: restartPolicy - command: - - command - - command - args: - - args - - args - name: name - tty: true - stdinOnce: true - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name - stdin: true - terminationMessagePolicy: terminationMessagePolicy - securityContext: - privileged: true - runAsUser: 1 - capabilities: - add: - - add - - add - drop: - - drop - - drop - seLinuxOptions: - role: role - level: level - type: type - user: user - seccompProfile: - localhostProfile: localhostProfile - type: type - windowsOptions: - gmsaCredentialSpec: gmsaCredentialSpec - runAsUserName: runAsUserName - hostProcess: true - gmsaCredentialSpecName: gmsaCredentialSpecName - procMount: procMount - allowPrivilegeEscalation: true - runAsGroup: 1 - runAsNonRoot: true - readOnlyRootFilesystem: true - startupProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - ports: - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 4 - hostPort: 7 - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 4 - hostPort: 7 - volumeMounts: - - mountPath: mountPath - mountPropagation: mountPropagation - name: name - readOnly: true - subPath: subPath - subPathExpr: subPathExpr - - mountPath: mountPath - mountPropagation: mountPropagation - name: name - readOnly: true - subPath: subPath - subPathExpr: subPathExpr - lifecycle: - postStart: - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - preStop: - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - readinessProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - resizePolicy: - - resourceName: resourceName - restartPolicy: restartPolicy - - resourceName: resourceName - restartPolicy: restartPolicy - envFrom: - - configMapRef: + - request: request name: name - optional: true - prefix: prefix - secretRef: + - request: request name: name - optional: true - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - image: image - imagePullPolicy: imagePullPolicy - livenessProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - targetContainerName: targetContainerName - terminationMessagePath: terminationMessagePath - workingDir: workingDir - resources: - claims: - - name: name - - name: name requests: {} limits: {} env: @@ -167102,19 +201567,17 @@ components: tty: true stdinOnce: true serviceAccount: serviceAccount - priority: 1 + priority: 6 restartPolicy: restartPolicy shareProcessNamespace: true hostUsers: true resourceClaims: - - name: name - source: - resourceClaimName: resourceClaimName - resourceClaimTemplateName: resourceClaimTemplateName - - name: name - source: - resourceClaimName: resourceClaimName - resourceClaimTemplateName: resourceClaimTemplateName + - resourceClaimName: resourceClaimName + name: name + resourceClaimTemplateName: resourceClaimTemplateName + - resourceClaimName: resourceClaimName + name: name + resourceClaimTemplateName: resourceClaimTemplateName subdomain: subdomain containers: - volumeDevices: @@ -167125,21 +201588,21 @@ components: image: image imagePullPolicy: imagePullPolicy livenessProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -167157,8 +201620,10 @@ components: workingDir: workingDir resources: claims: - - name: name - - name: name + - request: request + name: name + - request: request + name: name requests: {} limits: {} securityContext: @@ -167176,6 +201641,9 @@ components: level: level type: type user: user + appArmorProfile: + localhostProfile: localhostProfile + type: type seccompProfile: localhostProfile: localhostProfile type: type @@ -167190,21 +201658,21 @@ components: runAsNonRoot: true readOnlyRootFilesystem: true startupProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -167257,13 +201725,13 @@ components: - protocol: protocol hostIP: hostIP name: name - containerPort: 4 - hostPort: 7 + containerPort: 7 + hostPort: 1 - protocol: protocol hostIP: hostIP name: name - containerPort: 4 - hostPort: 7 + containerPort: 7 + hostPort: 1 restartPolicy: restartPolicy command: - command @@ -167274,18 +201742,22 @@ components: name: name readOnly: true subPath: subPath + recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - mountPath: mountPath mountPropagation: mountPropagation name: name readOnly: true subPath: subPath + recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr args: - args - args lifecycle: postStart: + sleep: + seconds: 5 tcpSocket: port: port host: host @@ -167304,6 +201776,8 @@ components: - name: name value: value preStop: + sleep: + seconds: 5 tcpSocket: port: port host: host @@ -167321,24 +201795,25 @@ components: value: value - name: name value: value + stopSignal: stopSignal name: name tty: true readinessProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -167379,21 +201854,21 @@ components: image: image imagePullPolicy: imagePullPolicy livenessProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -167411,8 +201886,10 @@ components: workingDir: workingDir resources: claims: - - name: name - - name: name + - request: request + name: name + - request: request + name: name requests: {} limits: {} securityContext: @@ -167430,6 +201907,9 @@ components: level: level type: type user: user + appArmorProfile: + localhostProfile: localhostProfile + type: type seccompProfile: localhostProfile: localhostProfile type: type @@ -167444,21 +201924,21 @@ components: runAsNonRoot: true readOnlyRootFilesystem: true startupProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -167511,13 +201991,13 @@ components: - protocol: protocol hostIP: hostIP name: name - containerPort: 4 - hostPort: 7 + containerPort: 7 + hostPort: 1 - protocol: protocol hostIP: hostIP name: name - containerPort: 4 - hostPort: 7 + containerPort: 7 + hostPort: 1 restartPolicy: restartPolicy command: - command @@ -167528,18 +202008,22 @@ components: name: name readOnly: true subPath: subPath + recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - mountPath: mountPath mountPropagation: mountPropagation name: name readOnly: true subPath: subPath + recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr args: - args - args lifecycle: postStart: + sleep: + seconds: 5 tcpSocket: port: port host: host @@ -167558,6 +202042,8 @@ components: - name: name value: value preStop: + sleep: + seconds: 5 tcpSocket: port: port host: host @@ -167575,24 +202061,25 @@ components: value: value - name: name value: value + stopSignal: stopSignal name: name tty: true readinessProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -167634,21 +202121,21 @@ components: image: image imagePullPolicy: imagePullPolicy livenessProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -167666,8 +202153,10 @@ components: workingDir: workingDir resources: claims: - - name: name - - name: name + - request: request + name: name + - request: request + name: name requests: {} limits: {} securityContext: @@ -167685,6 +202174,9 @@ components: level: level type: type user: user + appArmorProfile: + localhostProfile: localhostProfile + type: type seccompProfile: localhostProfile: localhostProfile type: type @@ -167699,21 +202191,21 @@ components: runAsNonRoot: true readOnlyRootFilesystem: true startupProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -167766,13 +202258,13 @@ components: - protocol: protocol hostIP: hostIP name: name - containerPort: 4 - hostPort: 7 + containerPort: 7 + hostPort: 1 - protocol: protocol hostIP: hostIP name: name - containerPort: 4 - hostPort: 7 + containerPort: 7 + hostPort: 1 restartPolicy: restartPolicy command: - command @@ -167783,18 +202275,22 @@ components: name: name readOnly: true subPath: subPath + recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - mountPath: mountPath mountPropagation: mountPropagation name: name readOnly: true subPath: subPath + recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr args: - args - args lifecycle: postStart: + sleep: + seconds: 5 tcpSocket: port: port host: host @@ -167813,6 +202309,8 @@ components: - name: name value: value preStop: + sleep: + seconds: 5 tcpSocket: port: port host: host @@ -167830,24 +202328,25 @@ components: value: value - name: name value: value + stopSignal: stopSignal name: name tty: true readinessProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -167888,21 +202387,21 @@ components: image: image imagePullPolicy: imagePullPolicy livenessProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -167920,8 +202419,10 @@ components: workingDir: workingDir resources: claims: - - name: name - - name: name + - request: request + name: name + - request: request + name: name requests: {} limits: {} securityContext: @@ -167939,6 +202440,9 @@ components: level: level type: type user: user + appArmorProfile: + localhostProfile: localhostProfile + type: type seccompProfile: localhostProfile: localhostProfile type: type @@ -167953,21 +202457,21 @@ components: runAsNonRoot: true readOnlyRootFilesystem: true startupProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -168020,13 +202524,13 @@ components: - protocol: protocol hostIP: hostIP name: name - containerPort: 4 - hostPort: 7 + containerPort: 7 + hostPort: 1 - protocol: protocol hostIP: hostIP name: name - containerPort: 4 - hostPort: 7 + containerPort: 7 + hostPort: 1 restartPolicy: restartPolicy command: - command @@ -168037,18 +202541,22 @@ components: name: name readOnly: true subPath: subPath + recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - mountPath: mountPath mountPropagation: mountPropagation name: name readOnly: true subPath: subPath + recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr args: - args - args lifecycle: postStart: + sleep: + seconds: 5 tcpSocket: port: port host: host @@ -168067,6 +202575,8 @@ components: - name: name value: value preStop: + sleep: + seconds: 5 tcpSocket: port: port host: host @@ -168084,24 +202594,25 @@ components: value: value - name: name value: value + stopSignal: stopSignal name: name tty: true readinessProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -168262,6 +202773,12 @@ components: matchLabels: key: matchLabels topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + mismatchLabelKeys: + - mismatchLabelKeys + - mismatchLabelKeys namespaces: - namespaces - namespaces @@ -168294,6 +202811,12 @@ components: matchLabels: key: matchLabels topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + mismatchLabelKeys: + - mismatchLabelKeys + - mismatchLabelKeys namespaces: - namespaces - namespaces @@ -168328,6 +202851,12 @@ components: matchLabels: key: matchLabels topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + mismatchLabelKeys: + - mismatchLabelKeys + - mismatchLabelKeys namespaces: - namespaces - namespaces @@ -168362,6 +202891,12 @@ components: matchLabels: key: matchLabels topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + mismatchLabelKeys: + - mismatchLabelKeys + - mismatchLabelKeys namespaces: - namespaces - namespaces @@ -168397,6 +202932,12 @@ components: matchLabels: key: matchLabels topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + mismatchLabelKeys: + - mismatchLabelKeys + - mismatchLabelKeys namespaces: - namespaces - namespaces @@ -168429,6 +202970,12 @@ components: matchLabels: key: matchLabels topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + mismatchLabelKeys: + - mismatchLabelKeys + - mismatchLabelKeys namespaces: - namespaces - namespaces @@ -168463,6 +203010,12 @@ components: matchLabels: key: matchLabels topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + mismatchLabelKeys: + - mismatchLabelKeys + - mismatchLabelKeys namespaces: - namespaces - namespaces @@ -168497,6 +203050,12 @@ components: matchLabels: key: matchLabels topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + mismatchLabelKeys: + - mismatchLabelKeys + - mismatchLabelKeys namespaces: - namespaces - namespaces @@ -168511,20 +203070,32 @@ components: name: name reason: reason containerStatuses: - - allocatedResources: {} + - allocatedResourcesStatus: + - name: name + resources: + - resourceID: resourceID + health: health + - resourceID: resourceID + health: health + - name: name + resources: + - resourceID: resourceID + health: health + - resourceID: resourceID + health: health image: image imageID: imageID restartCount: 7 - ready: true - name: name resources: claims: - - name: name - - name: name + - request: request + name: name + - request: request + name: name requests: {} limits: {} started: true - state: + lastState: running: startedAt: 2000-01-23T04:56:07.000+00:00 waiting: @@ -168532,14 +203103,25 @@ components: message: message terminated: reason: reason - exitCode: 3 + exitCode: 7 startedAt: 2000-01-23T04:56:07.000+00:00 containerID: containerID message: message - signal: 3 + signal: 0 finishedAt: 2000-01-23T04:56:07.000+00:00 - containerID: containerID - lastState: + volumeMounts: + - mountPath: mountPath + name: name + readOnly: true + recursiveReadOnly: recursiveReadOnly + - mountPath: mountPath + name: name + readOnly: true + recursiveReadOnly: recursiveReadOnly + allocatedResources: {} + ready: true + name: name + state: running: startedAt: 2000-01-23T04:56:07.000+00:00 waiting: @@ -168547,26 +203129,47 @@ components: message: message terminated: reason: reason - exitCode: 3 + exitCode: 7 startedAt: 2000-01-23T04:56:07.000+00:00 containerID: containerID message: message - signal: 3 + signal: 0 finishedAt: 2000-01-23T04:56:07.000+00:00 - - allocatedResources: {} + containerID: containerID + stopSignal: stopSignal + user: + linux: + uid: 4 + gid: 6 + supplementalGroups: + - 0 + - 0 + - allocatedResourcesStatus: + - name: name + resources: + - resourceID: resourceID + health: health + - resourceID: resourceID + health: health + - name: name + resources: + - resourceID: resourceID + health: health + - resourceID: resourceID + health: health image: image imageID: imageID restartCount: 7 - ready: true - name: name resources: claims: - - name: name - - name: name + - request: request + name: name + - request: request + name: name requests: {} limits: {} started: true - state: + lastState: running: startedAt: 2000-01-23T04:56:07.000+00:00 waiting: @@ -168574,14 +203177,25 @@ components: message: message terminated: reason: reason - exitCode: 3 + exitCode: 7 startedAt: 2000-01-23T04:56:07.000+00:00 containerID: containerID message: message - signal: 3 + signal: 0 finishedAt: 2000-01-23T04:56:07.000+00:00 - containerID: containerID - lastState: + volumeMounts: + - mountPath: mountPath + name: name + readOnly: true + recursiveReadOnly: recursiveReadOnly + - mountPath: mountPath + name: name + readOnly: true + recursiveReadOnly: recursiveReadOnly + allocatedResources: {} + ready: true + name: name + state: running: startedAt: 2000-01-23T04:56:07.000+00:00 waiting: @@ -168589,12 +203203,21 @@ components: message: message terminated: reason: reason - exitCode: 3 + exitCode: 7 startedAt: 2000-01-23T04:56:07.000+00:00 containerID: containerID message: message - signal: 3 + signal: 0 finishedAt: 2000-01-23T04:56:07.000+00:00 + containerID: containerID + stopSignal: stopSignal + user: + linux: + uid: 4 + gid: 6 + supplementalGroups: + - 0 + - 0 hostIP: hostIP nominatedNodeName: nominatedNodeName message: message @@ -168603,20 +203226,32 @@ components: - ip: ip podIP: podIP ephemeralContainerStatuses: - - allocatedResources: {} + - allocatedResourcesStatus: + - name: name + resources: + - resourceID: resourceID + health: health + - resourceID: resourceID + health: health + - name: name + resources: + - resourceID: resourceID + health: health + - resourceID: resourceID + health: health image: image imageID: imageID restartCount: 7 - ready: true - name: name resources: claims: - - name: name - - name: name + - request: request + name: name + - request: request + name: name requests: {} limits: {} started: true - state: + lastState: running: startedAt: 2000-01-23T04:56:07.000+00:00 waiting: @@ -168624,14 +203259,25 @@ components: message: message terminated: reason: reason - exitCode: 3 + exitCode: 7 startedAt: 2000-01-23T04:56:07.000+00:00 containerID: containerID message: message - signal: 3 + signal: 0 finishedAt: 2000-01-23T04:56:07.000+00:00 - containerID: containerID - lastState: + volumeMounts: + - mountPath: mountPath + name: name + readOnly: true + recursiveReadOnly: recursiveReadOnly + - mountPath: mountPath + name: name + readOnly: true + recursiveReadOnly: recursiveReadOnly + allocatedResources: {} + ready: true + name: name + state: running: startedAt: 2000-01-23T04:56:07.000+00:00 waiting: @@ -168639,26 +203285,47 @@ components: message: message terminated: reason: reason - exitCode: 3 + exitCode: 7 startedAt: 2000-01-23T04:56:07.000+00:00 containerID: containerID message: message - signal: 3 + signal: 0 finishedAt: 2000-01-23T04:56:07.000+00:00 - - allocatedResources: {} + containerID: containerID + stopSignal: stopSignal + user: + linux: + uid: 4 + gid: 6 + supplementalGroups: + - 0 + - 0 + - allocatedResourcesStatus: + - name: name + resources: + - resourceID: resourceID + health: health + - resourceID: resourceID + health: health + - name: name + resources: + - resourceID: resourceID + health: health + - resourceID: resourceID + health: health image: image imageID: imageID restartCount: 7 - ready: true - name: name resources: claims: - - name: name - - name: name + - request: request + name: name + - request: request + name: name requests: {} limits: {} started: true - state: + lastState: running: startedAt: 2000-01-23T04:56:07.000+00:00 waiting: @@ -168666,14 +203333,25 @@ components: message: message terminated: reason: reason - exitCode: 3 + exitCode: 7 startedAt: 2000-01-23T04:56:07.000+00:00 containerID: containerID message: message - signal: 3 + signal: 0 finishedAt: 2000-01-23T04:56:07.000+00:00 - containerID: containerID - lastState: + volumeMounts: + - mountPath: mountPath + name: name + readOnly: true + recursiveReadOnly: recursiveReadOnly + - mountPath: mountPath + name: name + readOnly: true + recursiveReadOnly: recursiveReadOnly + allocatedResources: {} + ready: true + name: name + state: running: startedAt: 2000-01-23T04:56:07.000+00:00 waiting: @@ -168681,12 +203359,21 @@ components: message: message terminated: reason: reason - exitCode: 3 + exitCode: 7 startedAt: 2000-01-23T04:56:07.000+00:00 containerID: containerID message: message - signal: 3 + signal: 0 finishedAt: 2000-01-23T04:56:07.000+00:00 + containerID: containerID + stopSignal: stopSignal + user: + linux: + uid: 4 + gid: 6 + supplementalGroups: + - 0 + - 0 hostIPs: - ip: ip - ip: ip @@ -168698,29 +203385,43 @@ components: lastTransitionTime: 2000-01-23T04:56:07.000+00:00 message: message type: type + observedGeneration: 3 lastProbeTime: 2000-01-23T04:56:07.000+00:00 status: status - reason: reason lastTransitionTime: 2000-01-23T04:56:07.000+00:00 message: message type: type + observedGeneration: 3 lastProbeTime: 2000-01-23T04:56:07.000+00:00 status: status initContainerStatuses: - - allocatedResources: {} + - allocatedResourcesStatus: + - name: name + resources: + - resourceID: resourceID + health: health + - resourceID: resourceID + health: health + - name: name + resources: + - resourceID: resourceID + health: health + - resourceID: resourceID + health: health image: image imageID: imageID restartCount: 7 - ready: true - name: name resources: claims: - - name: name - - name: name + - request: request + name: name + - request: request + name: name requests: {} limits: {} started: true - state: + lastState: running: startedAt: 2000-01-23T04:56:07.000+00:00 waiting: @@ -168728,14 +203429,25 @@ components: message: message terminated: reason: reason - exitCode: 3 + exitCode: 7 startedAt: 2000-01-23T04:56:07.000+00:00 containerID: containerID message: message - signal: 3 + signal: 0 finishedAt: 2000-01-23T04:56:07.000+00:00 - containerID: containerID - lastState: + volumeMounts: + - mountPath: mountPath + name: name + readOnly: true + recursiveReadOnly: recursiveReadOnly + - mountPath: mountPath + name: name + readOnly: true + recursiveReadOnly: recursiveReadOnly + allocatedResources: {} + ready: true + name: name + state: running: startedAt: 2000-01-23T04:56:07.000+00:00 waiting: @@ -168743,26 +203455,47 @@ components: message: message terminated: reason: reason - exitCode: 3 + exitCode: 7 startedAt: 2000-01-23T04:56:07.000+00:00 containerID: containerID message: message - signal: 3 + signal: 0 finishedAt: 2000-01-23T04:56:07.000+00:00 - - allocatedResources: {} + containerID: containerID + stopSignal: stopSignal + user: + linux: + uid: 4 + gid: 6 + supplementalGroups: + - 0 + - 0 + - allocatedResourcesStatus: + - name: name + resources: + - resourceID: resourceID + health: health + - resourceID: resourceID + health: health + - name: name + resources: + - resourceID: resourceID + health: health + - resourceID: resourceID + health: health image: image imageID: imageID restartCount: 7 - ready: true - name: name resources: claims: - - name: name - - name: name + - request: request + name: name + - request: request + name: name requests: {} limits: {} started: true - state: + lastState: running: startedAt: 2000-01-23T04:56:07.000+00:00 waiting: @@ -168770,14 +203503,25 @@ components: message: message terminated: reason: reason - exitCode: 3 + exitCode: 7 startedAt: 2000-01-23T04:56:07.000+00:00 containerID: containerID message: message - signal: 3 + signal: 0 finishedAt: 2000-01-23T04:56:07.000+00:00 - containerID: containerID - lastState: + volumeMounts: + - mountPath: mountPath + name: name + readOnly: true + recursiveReadOnly: recursiveReadOnly + - mountPath: mountPath + name: name + readOnly: true + recursiveReadOnly: recursiveReadOnly + allocatedResources: {} + ready: true + name: name + state: running: startedAt: 2000-01-23T04:56:07.000+00:00 waiting: @@ -168785,456 +203529,599 @@ components: message: message terminated: reason: reason - exitCode: 3 + exitCode: 7 startedAt: 2000-01-23T04:56:07.000+00:00 containerID: containerID message: message - signal: 3 + signal: 0 finishedAt: 2000-01-23T04:56:07.000+00:00 - - metadata: - generation: 6 - finalizers: - - finalizers - - finalizers - resourceVersion: resourceVersion - annotations: - key: annotations - generateName: generateName - deletionTimestamp: 2000-01-23T04:56:07.000+00:00 - labels: - key: labels - ownerReferences: - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - selfLink: selfLink - deletionGracePeriodSeconds: 0 - uid: uid - managedFields: - - apiVersion: apiVersion - fieldsV1: '{}' - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - - apiVersion: apiVersion - fieldsV1: '{}' - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - creationTimestamp: 2000-01-23T04:56:07.000+00:00 - name: name - namespace: namespace - apiVersion: apiVersion - kind: kind - spec: - dnsPolicy: dnsPolicy - nodeName: nodeName - terminationGracePeriodSeconds: 5 - dnsConfig: - searches: - - searches - - searches - nameservers: - - nameservers - - nameservers - options: - - name: name - value: value - - name: name - value: value - hostNetwork: true - readinessGates: - - conditionType: conditionType - - conditionType: conditionType - serviceAccountName: serviceAccountName - imagePullSecrets: - - name: name - - name: name - priorityClassName: priorityClassName - hostAliases: - - ip: ip - hostnames: - - hostnames - - hostnames - - ip: ip - hostnames: - - hostnames - - hostnames - securityContext: - runAsUser: 1 - seLinuxOptions: - role: role - level: level - type: type - user: user - fsGroup: 6 - seccompProfile: - localhostProfile: localhostProfile - type: type - windowsOptions: - gmsaCredentialSpec: gmsaCredentialSpec - runAsUserName: runAsUserName - hostProcess: true - gmsaCredentialSpecName: gmsaCredentialSpecName - fsGroupChangePolicy: fsGroupChangePolicy - supplementalGroups: - - 4 - - 4 - runAsGroup: 7 - runAsNonRoot: true - sysctls: - - name: name - value: value - - name: name - value: value - preemptionPolicy: preemptionPolicy - nodeSelector: - key: nodeSelector - hostname: hostname - runtimeClassName: runtimeClassName - tolerations: - - effect: effect - tolerationSeconds: 9 - value: value + containerID: containerID + stopSignal: stopSignal + user: + linux: + uid: 4 + gid: 6 + supplementalGroups: + - 0 + - 0 + observedGeneration: 8 + properties: + apiVersion: + description: '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' + type: string + items: + description: 'List of pods. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md' + items: + $ref: '#/components/schemas/v1.Pod' + type: array + kind: + description: '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' + type: string + metadata: + $ref: '#/components/schemas/v1.ListMeta' + required: + - items + type: object + x-kubernetes-group-version-kind: + - group: "" + kind: PodList + version: v1 + x-implements: + - io.kubernetes.client.common.KubernetesListObject + v1.PodOS: + description: PodOS defines the OS parameters of a pod. + example: + name: name + properties: + name: + description: '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' + type: string + required: + - name + type: object + v1.PodReadinessGate: + description: PodReadinessGate contains the reference to a pod condition + example: + conditionType: conditionType + properties: + conditionType: + description: ConditionType refers to a condition in the pod's condition + list with matching type. + type: string + required: + - conditionType + type: object + v1.PodResourceClaim: + 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. + example: + resourceClaimName: resourceClaimName + name: name + resourceClaimTemplateName: resourceClaimTemplateName + properties: + name: + description: Name uniquely identifies this resource claim inside the pod. + This must be a DNS_LABEL. + type: string + resourceClaimName: + description: |- + ResourceClaimName is the name of a ResourceClaim object in the same namespace as this pod. + + Exactly one of ResourceClaimName and ResourceClaimTemplateName must be set. + type: string + resourceClaimTemplateName: + description: |- + 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. + type: string + required: + - name + type: object + v1.PodResourceClaimStatus: + description: PodResourceClaimStatus is stored in the PodStatus for each PodResourceClaim + which references a ResourceClaimTemplate. It stores the generated name for + the corresponding ResourceClaim. + example: + resourceClaimName: resourceClaimName + name: name + properties: + name: + description: 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. + type: string + resourceClaimName: + description: 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. + type: string + required: + - name + type: object + v1.PodSchedulingGate: + description: PodSchedulingGate is associated to a Pod to guard its scheduling. + example: + name: name + properties: + name: + description: Name of the scheduling gate. Each scheduling gate must have + a unique name field. + type: string + required: + - name + type: object + v1.PodSecurityContext: + 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. + example: + seLinuxOptions: + role: role + level: level + type: type + user: user + appArmorProfile: + localhostProfile: localhostProfile + type: type + fsGroup: 7 + fsGroupChangePolicy: fsGroupChangePolicy + seLinuxChangePolicy: seLinuxChangePolicy + runAsGroup: 1 + runAsNonRoot: true + sysctls: + - name: name + value: value + - name: name + value: value + runAsUser: 4 + seccompProfile: + localhostProfile: localhostProfile + type: type + windowsOptions: + gmsaCredentialSpec: gmsaCredentialSpec + runAsUserName: runAsUserName + hostProcess: true + gmsaCredentialSpecName: gmsaCredentialSpecName + supplementalGroups: + - 5 + - 5 + supplementalGroupsPolicy: supplementalGroupsPolicy + properties: + appArmorProfile: + $ref: '#/components/schemas/v1.AppArmorProfile' + fsGroup: + description: |- + 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. + format: int64 + type: integer + fsGroupChangePolicy: + description: '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.' + type: string + runAsGroup: + description: 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. + format: int64 + type: integer + runAsNonRoot: + description: 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. + type: boolean + runAsUser: + description: 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. + format: int64 + type: integer + seLinuxChangePolicy: + description: |- + seLinuxChangePolicy defines how the container's SELinux label is applied to all volumes used by the Pod. It has no effect on nodes that do not support SELinux or to volumes does not support SELinux. Valid values are "MountOption" and "Recursive". + + "Recursive" means relabeling of all files on all Pod volumes by the container runtime. This may be slow for large volumes, but allows mixing privileged and unprivileged Pods sharing the same volume on the same node. + + "MountOption" mounts all eligible Pod volumes with `-o context` mount option. This requires all Pods that share the same volume to use the same SELinux label. It is not possible to share the same volume among privileged and unprivileged Pods. Eligible volumes are in-tree FibreChannel and iSCSI volumes, and all CSI volumes whose CSI driver announces SELinux support by setting spec.seLinuxMount: true in their CSIDriver instance. Other volumes are always re-labelled recursively. "MountOption" value is allowed only when SELinuxMount feature gate is enabled. + + If not specified and SELinuxMount feature gate is enabled, "MountOption" is used. If not specified and SELinuxMount feature gate is disabled, "MountOption" is used for ReadWriteOncePod volumes and "Recursive" for all other volumes. + + This field affects only Pods that have SELinux label set, either in PodSecurityContext or in SecurityContext of all containers. + + All Pods that use the same volume should use the same seLinuxChangePolicy, otherwise some pods can get stuck in ContainerCreating state. Note that this field cannot be set when spec.os.name is windows. + type: string + seLinuxOptions: + $ref: '#/components/schemas/v1.SELinuxOptions' + seccompProfile: + $ref: '#/components/schemas/v1.SeccompProfile' + supplementalGroups: + description: 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. + items: + format: int64 + type: integer + type: array + x-kubernetes-list-type: atomic + supplementalGroupsPolicy: + description: 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. + type: string + sysctls: + description: 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. + items: + $ref: '#/components/schemas/v1.Sysctl' + type: array + x-kubernetes-list-type: atomic + windowsOptions: + $ref: '#/components/schemas/v1.WindowsSecurityContextOptions' + type: object + v1.PodSpec: + description: PodSpec is a description of a pod. + example: + dnsPolicy: dnsPolicy + nodeName: nodeName + terminationGracePeriodSeconds: 9 + dnsConfig: + searches: + - searches + - searches + nameservers: + - nameservers + - nameservers + options: + - name: name + value: value + - name: name + value: value + hostNetwork: true + readinessGates: + - conditionType: conditionType + - conditionType: conditionType + serviceAccountName: serviceAccountName + imagePullSecrets: + - name: name + - name: name + priorityClassName: priorityClassName + hostAliases: + - ip: ip + hostnames: + - hostnames + - hostnames + - ip: ip + hostnames: + - hostnames + - hostnames + securityContext: + seLinuxOptions: + role: role + level: level + type: type + user: user + appArmorProfile: + localhostProfile: localhostProfile + type: type + fsGroup: 7 + fsGroupChangePolicy: fsGroupChangePolicy + seLinuxChangePolicy: seLinuxChangePolicy + runAsGroup: 1 + runAsNonRoot: true + sysctls: + - name: name + value: value + - name: name + value: value + runAsUser: 4 + seccompProfile: + localhostProfile: localhostProfile + type: type + windowsOptions: + gmsaCredentialSpec: gmsaCredentialSpec + runAsUserName: runAsUserName + hostProcess: true + gmsaCredentialSpecName: gmsaCredentialSpecName + supplementalGroups: + - 5 + - 5 + supplementalGroupsPolicy: supplementalGroupsPolicy + preemptionPolicy: preemptionPolicy + nodeSelector: + key: nodeSelector + hostname: hostname + runtimeClassName: runtimeClassName + tolerations: + - effect: effect + tolerationSeconds: 9 + value: value + key: key + operator: operator + - effect: effect + tolerationSeconds: 9 + value: value + key: key + operator: operator + automountServiceAccountToken: true + schedulingGates: + - name: name + - name: name + schedulerName: schedulerName + activeDeadlineSeconds: 0 + os: + name: name + setHostnameAsFQDN: true + enableServiceLinks: true + overhead: {} + hostIPC: true + topologySpreadConstraints: + - nodeTaintsPolicy: nodeTaintsPolicy + whenUnsatisfiable: whenUnsatisfiable + maxSkew: 6 + nodeAffinityPolicy: nodeAffinityPolicy + labelSelector: + matchExpressions: + - values: + - values + - values key: key operator: operator - - effect: effect - tolerationSeconds: 9 - value: value + - values: + - values + - values key: key operator: operator - automountServiceAccountToken: true - schedulingGates: - - name: name - - name: name - schedulerName: schedulerName - activeDeadlineSeconds: 0 - os: + matchLabels: + key: matchLabels + minDomains: 8 + topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + - nodeTaintsPolicy: nodeTaintsPolicy + whenUnsatisfiable: whenUnsatisfiable + maxSkew: 6 + nodeAffinityPolicy: nodeAffinityPolicy + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + minDomains: 8 + topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + volumes: + - quobyte: + volume: volume + registry: registry + readOnly: true + user: user + tenant: tenant + group: group + azureFile: + secretName: secretName + readOnly: true + shareName: shareName + flexVolume: + driver: driver + options: + key: options + secretRef: name: name - setHostnameAsFQDN: true - enableServiceLinks: true - overhead: {} - hostIPC: true - topologySpreadConstraints: - - nodeTaintsPolicy: nodeTaintsPolicy - whenUnsatisfiable: whenUnsatisfiable - maxSkew: 9 - nodeAffinityPolicy: nodeAffinityPolicy - labelSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - minDomains: 6 - topologyKey: topologyKey - matchLabelKeys: - - matchLabelKeys - - matchLabelKeys - - nodeTaintsPolicy: nodeTaintsPolicy - whenUnsatisfiable: whenUnsatisfiable - maxSkew: 9 - nodeAffinityPolicy: nodeAffinityPolicy - labelSelector: - matchExpressions: - - values: - - values - - values + readOnly: true + fsType: fsType + ephemeral: + volumeClaimTemplate: + metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: '{}' + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: '{}' + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + creationTimestamp: 2000-01-23T04:56:07.000+00:00 + name: name + namespace: namespace + spec: + storageClassName: storageClassName + dataSourceRef: + apiGroup: apiGroup + kind: kind + name: name + namespace: namespace + volumeName: volumeName + volumeAttributesClassName: volumeAttributesClassName + resources: + requests: {} + limits: {} + selector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + accessModes: + - accessModes + - accessModes + dataSource: + apiGroup: apiGroup + kind: kind + name: name + volumeMode: volumeMode + secret: + secretName: secretName + defaultMode: 3 + optional: true + items: + - mode: 3 + path: path + key: key + - mode: 3 + path: path + key: key + projected: + sources: + - downwardAPI: + items: + - mode: 1 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - mode: 1 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + configMap: + name: name + optional: true + items: + - mode: 3 + path: path key: key - operator: operator - - values: - - values - - values + - mode: 3 + path: path key: key - operator: operator - matchLabels: - key: matchLabels - minDomains: 6 - topologyKey: topologyKey - matchLabelKeys: - - matchLabelKeys - - matchLabelKeys - volumes: - - quobyte: - volume: volume - registry: registry - readOnly: true - user: user - tenant: tenant - group: group - azureFile: - secretName: secretName - readOnly: true - shareName: shareName - flexVolume: - driver: driver - options: - key: options - secretRef: - name: name - readOnly: true - fsType: fsType - ephemeral: - volumeClaimTemplate: - metadata: - generation: 6 - finalizers: - - finalizers - - finalizers - resourceVersion: resourceVersion - annotations: - key: annotations - generateName: generateName - deletionTimestamp: 2000-01-23T04:56:07.000+00:00 - labels: - key: labels - ownerReferences: - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - selfLink: selfLink - deletionGracePeriodSeconds: 0 - uid: uid - managedFields: - - apiVersion: apiVersion - fieldsV1: '{}' - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - - apiVersion: apiVersion - fieldsV1: '{}' - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - creationTimestamp: 2000-01-23T04:56:07.000+00:00 - name: name - namespace: namespace - spec: - storageClassName: storageClassName - dataSourceRef: - apiGroup: apiGroup - kind: kind - name: name - namespace: namespace - volumeName: volumeName - resources: - claims: - - name: name - - name: name - requests: {} - limits: {} - selector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - accessModes: - - accessModes - - accessModes - dataSource: - apiGroup: apiGroup - kind: kind - name: name - volumeMode: volumeMode secret: - secretName: secretName - defaultMode: 6 + name: name optional: true items: - - mode: 6 + - mode: 3 path: path key: key - - mode: 6 + - mode: 3 path: path key: key - projected: - sources: - - downwardAPI: - items: - - mode: 6 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - mode: 6 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - configMap: - name: name - optional: true - items: - - mode: 6 - path: path - key: key - - mode: 6 - path: path - key: key - secret: - name: name - optional: true - items: - - mode: 6 - path: path - key: key - - mode: 6 - path: path - key: key - serviceAccountToken: - path: path - audience: audience - expirationSeconds: 5 - - downwardAPI: - items: - - mode: 6 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - mode: 6 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - configMap: - name: name - optional: true - items: - - mode: 6 - path: path - key: key - - mode: 6 - path: path - key: key - secret: - name: name - optional: true - items: - - mode: 6 - path: path - key: key - - mode: 6 - path: path - key: key - serviceAccountToken: - path: path - audience: audience - expirationSeconds: 5 - defaultMode: 6 - cephfs: + serviceAccountToken: path: path - secretRef: - name: name - secretFile: secretFile - readOnly: true - user: user - monitors: - - monitors - - monitors - scaleIO: - system: system - protectionDomain: protectionDomain - sslEnabled: true - storageMode: storageMode - volumeName: volumeName - secretRef: - name: name - readOnly: true - fsType: fsType - storagePool: storagePool - gateway: gateway - emptyDir: - sizeLimit: sizeLimit - medium: medium - glusterfs: + audience: audience + expirationSeconds: 6 + clusterTrustBundle: path: path - endpoints: endpoints - readOnly: true - gcePersistentDisk: - partition: 2 - readOnly: true - pdName: pdName - fsType: fsType - photonPersistentDisk: - pdID: pdID - fsType: fsType - azureDisk: - diskName: diskName - kind: kind - readOnly: true - cachingMode: cachingMode - diskURI: diskURI - fsType: fsType - cinder: - secretRef: - name: name - volumeID: volumeID - readOnly: true - fsType: fsType - downwardAPI: - defaultMode: 3 + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + name: name + optional: true + signerName: signerName + - downwardAPI: items: - - mode: 6 + - mode: 1 path: path resourceFieldRef: divisor: divisor @@ -169243,7 +204130,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 6 + - mode: 1 path: path resourceFieldRef: divisor: divisor @@ -169252,360 +204139,336 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - awsElasticBlockStore: - partition: 8 - volumeID: volumeID - readOnly: true - fsType: fsType - flocker: - datasetName: datasetName - datasetUUID: datasetUUID - iscsi: - chapAuthSession: true - iscsiInterface: iscsiInterface - lun: 6 - chapAuthDiscovery: true - iqn: iqn - portals: - - portals - - portals - secretRef: - name: name - initiatorName: initiatorName - readOnly: true - fsType: fsType - targetPortal: targetPortal - rbd: - image: image - pool: pool - secretRef: - name: name - readOnly: true - fsType: fsType - keyring: keyring - user: user - monitors: - - monitors - - monitors configMap: - defaultMode: 9 name: name optional: true items: - - mode: 6 + - mode: 3 path: path key: key - - mode: 6 + - mode: 3 path: path key: key - storageos: - volumeNamespace: volumeNamespace - volumeName: volumeName - secretRef: - name: name - readOnly: true - fsType: fsType - csi: - driver: driver - nodePublishSecretRef: - name: name - readOnly: true - fsType: fsType - volumeAttributes: - key: volumeAttributes - name: name - nfs: - path: path - server: server - readOnly: true - persistentVolumeClaim: - claimName: claimName - readOnly: true - gitRepo: - repository: repository - directory: directory - revision: revision - portworxVolume: - volumeID: volumeID - readOnly: true - fsType: fsType - vsphereVolume: - storagePolicyName: storagePolicyName - storagePolicyID: storagePolicyID - volumePath: volumePath - fsType: fsType - fc: - lun: 1 - targetWWNs: - - targetWWNs - - targetWWNs - readOnly: true - wwids: - - wwids - - wwids - fsType: fsType - hostPath: - path: path - type: type - - quobyte: - volume: volume - registry: registry - readOnly: true - user: user - tenant: tenant - group: group - azureFile: - secretName: secretName - readOnly: true - shareName: shareName - flexVolume: - driver: driver - options: - key: options - secretRef: - name: name - readOnly: true - fsType: fsType - ephemeral: - volumeClaimTemplate: - metadata: - generation: 6 - finalizers: - - finalizers - - finalizers - resourceVersion: resourceVersion - annotations: - key: annotations - generateName: generateName - deletionTimestamp: 2000-01-23T04:56:07.000+00:00 - labels: - key: labels - ownerReferences: - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - selfLink: selfLink - deletionGracePeriodSeconds: 0 - uid: uid - managedFields: - - apiVersion: apiVersion - fieldsV1: '{}' - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - - apiVersion: apiVersion - fieldsV1: '{}' - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - creationTimestamp: 2000-01-23T04:56:07.000+00:00 - name: name - namespace: namespace - spec: - storageClassName: storageClassName - dataSourceRef: - apiGroup: apiGroup - kind: kind - name: name - namespace: namespace - volumeName: volumeName - resources: - claims: - - name: name - - name: name - requests: {} - limits: {} - selector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - accessModes: - - accessModes - - accessModes - dataSource: - apiGroup: apiGroup - kind: kind - name: name - volumeMode: volumeMode secret: - secretName: secretName - defaultMode: 6 + name: name optional: true items: - - mode: 6 + - mode: 3 path: path key: key - - mode: 6 + - mode: 3 path: path key: key - projected: - sources: - - downwardAPI: - items: - - mode: 6 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - mode: 6 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - configMap: - name: name - optional: true - items: - - mode: 6 - path: path - key: key - - mode: 6 - path: path - key: key - secret: - name: name - optional: true - items: - - mode: 6 - path: path - key: key - - mode: 6 - path: path - key: key - serviceAccountToken: - path: path - audience: audience - expirationSeconds: 5 - - downwardAPI: - items: - - mode: 6 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - mode: 6 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - configMap: - name: name - optional: true - items: - - mode: 6 - path: path - key: key - - mode: 6 - path: path - key: key - secret: - name: name - optional: true - items: - - mode: 6 - path: path - key: key - - mode: 6 - path: path - key: key - serviceAccountToken: - path: path - audience: audience - expirationSeconds: 5 - defaultMode: 6 - cephfs: + serviceAccountToken: path: path - secretRef: + audience: audience + expirationSeconds: 6 + clusterTrustBundle: + path: path + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + name: name + optional: true + signerName: signerName + defaultMode: 5 + cephfs: + path: path + secretRef: + name: name + secretFile: secretFile + readOnly: true + user: user + monitors: + - monitors + - monitors + scaleIO: + system: system + protectionDomain: protectionDomain + sslEnabled: true + storageMode: storageMode + volumeName: volumeName + secretRef: + name: name + readOnly: true + fsType: fsType + storagePool: storagePool + gateway: gateway + emptyDir: + sizeLimit: sizeLimit + medium: medium + glusterfs: + path: path + endpoints: endpoints + readOnly: true + gcePersistentDisk: + partition: 6 + readOnly: true + pdName: pdName + fsType: fsType + image: + reference: reference + pullPolicy: pullPolicy + photonPersistentDisk: + pdID: pdID + fsType: fsType + azureDisk: + diskName: diskName + kind: kind + readOnly: true + cachingMode: cachingMode + diskURI: diskURI + fsType: fsType + cinder: + secretRef: + name: name + volumeID: volumeID + readOnly: true + fsType: fsType + downwardAPI: + defaultMode: 6 + items: + - mode: 1 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - mode: 1 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + awsElasticBlockStore: + partition: 9 + volumeID: volumeID + readOnly: true + fsType: fsType + flocker: + datasetName: datasetName + datasetUUID: datasetUUID + iscsi: + chapAuthSession: true + iscsiInterface: iscsiInterface + lun: 6 + chapAuthDiscovery: true + iqn: iqn + portals: + - portals + - portals + secretRef: + name: name + initiatorName: initiatorName + readOnly: true + fsType: fsType + targetPortal: targetPortal + rbd: + image: image + pool: pool + secretRef: + name: name + readOnly: true + fsType: fsType + keyring: keyring + user: user + monitors: + - monitors + - monitors + configMap: + defaultMode: 6 + name: name + optional: true + items: + - mode: 3 + path: path + key: key + - mode: 3 + path: path + key: key + storageos: + volumeNamespace: volumeNamespace + volumeName: volumeName + secretRef: + name: name + readOnly: true + fsType: fsType + csi: + driver: driver + nodePublishSecretRef: + name: name + readOnly: true + fsType: fsType + volumeAttributes: + key: volumeAttributes + name: name + nfs: + path: path + server: server + readOnly: true + persistentVolumeClaim: + claimName: claimName + readOnly: true + gitRepo: + repository: repository + directory: directory + revision: revision + portworxVolume: + volumeID: volumeID + readOnly: true + fsType: fsType + vsphereVolume: + storagePolicyName: storagePolicyName + storagePolicyID: storagePolicyID + volumePath: volumePath + fsType: fsType + fc: + lun: 2 + targetWWNs: + - targetWWNs + - targetWWNs + readOnly: true + wwids: + - wwids + - wwids + fsType: fsType + hostPath: + path: path + type: type + - quobyte: + volume: volume + registry: registry + readOnly: true + user: user + tenant: tenant + group: group + azureFile: + secretName: secretName + readOnly: true + shareName: shareName + flexVolume: + driver: driver + options: + key: options + secretRef: + name: name + readOnly: true + fsType: fsType + ephemeral: + volumeClaimTemplate: + metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind name: name - secretFile: secretFile - readOnly: true - user: user - monitors: - - monitors - - monitors - scaleIO: - system: system - protectionDomain: protectionDomain - sslEnabled: true - storageMode: storageMode - volumeName: volumeName - secretRef: + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind name: name - readOnly: true - fsType: fsType - storagePool: storagePool - gateway: gateway - emptyDir: - sizeLimit: sizeLimit - medium: medium - glusterfs: - path: path - endpoints: endpoints - readOnly: true - gcePersistentDisk: - partition: 2 - readOnly: true - pdName: pdName - fsType: fsType - photonPersistentDisk: - pdID: pdID - fsType: fsType - azureDisk: - diskName: diskName - kind: kind - readOnly: true - cachingMode: cachingMode - diskURI: diskURI - fsType: fsType - cinder: - secretRef: + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: '{}' + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: '{}' + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + creationTimestamp: 2000-01-23T04:56:07.000+00:00 + name: name + namespace: namespace + spec: + storageClassName: storageClassName + dataSourceRef: + apiGroup: apiGroup + kind: kind name: name - volumeID: volumeID - readOnly: true - fsType: fsType - downwardAPI: - defaultMode: 3 + namespace: namespace + volumeName: volumeName + volumeAttributesClassName: volumeAttributesClassName + resources: + requests: {} + limits: {} + selector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + accessModes: + - accessModes + - accessModes + dataSource: + apiGroup: apiGroup + kind: kind + name: name + volumeMode: volumeMode + secret: + secretName: secretName + defaultMode: 3 + optional: true + items: + - mode: 3 + path: path + key: key + - mode: 3 + path: path + key: key + projected: + sources: + - downwardAPI: items: - - mode: 6 + - mode: 1 path: path resourceFieldRef: divisor: divisor @@ -169614,7 +204477,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 6 + - mode: 1 path: path resourceFieldRef: divisor: divisor @@ -169623,3140 +204486,3749 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - awsElasticBlockStore: - partition: 8 - volumeID: volumeID - readOnly: true - fsType: fsType - flocker: - datasetName: datasetName - datasetUUID: datasetUUID - iscsi: - chapAuthSession: true - iscsiInterface: iscsiInterface - lun: 6 - chapAuthDiscovery: true - iqn: iqn - portals: - - portals - - portals - secretRef: - name: name - initiatorName: initiatorName - readOnly: true - fsType: fsType - targetPortal: targetPortal - rbd: - image: image - pool: pool - secretRef: - name: name - readOnly: true - fsType: fsType - keyring: keyring - user: user - monitors: - - monitors - - monitors configMap: - defaultMode: 9 name: name optional: true items: - - mode: 6 + - mode: 3 path: path key: key - - mode: 6 + - mode: 3 path: path key: key - storageos: - volumeNamespace: volumeNamespace - volumeName: volumeName - secretRef: - name: name - readOnly: true - fsType: fsType - csi: - driver: driver - nodePublishSecretRef: - name: name - readOnly: true - fsType: fsType - volumeAttributes: - key: volumeAttributes - name: name - nfs: - path: path - server: server - readOnly: true - persistentVolumeClaim: - claimName: claimName - readOnly: true - gitRepo: - repository: repository - directory: directory - revision: revision - portworxVolume: - volumeID: volumeID - readOnly: true - fsType: fsType - vsphereVolume: - storagePolicyName: storagePolicyName - storagePolicyID: storagePolicyID - volumePath: volumePath - fsType: fsType - fc: - lun: 1 - targetWWNs: - - targetWWNs - - targetWWNs - readOnly: true - wwids: - - wwids - - wwids - fsType: fsType - hostPath: - path: path - type: type - ephemeralContainers: - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name - stdin: true - terminationMessagePolicy: terminationMessagePolicy - securityContext: - privileged: true - runAsUser: 1 - capabilities: - add: - - add - - add - drop: - - drop - - drop - seLinuxOptions: - role: role - level: level - type: type - user: user - seccompProfile: - localhostProfile: localhostProfile - type: type - windowsOptions: - gmsaCredentialSpec: gmsaCredentialSpec - runAsUserName: runAsUserName - hostProcess: true - gmsaCredentialSpecName: gmsaCredentialSpecName - procMount: procMount - allowPrivilegeEscalation: true - runAsGroup: 1 - runAsNonRoot: true - readOnlyRootFilesystem: true - startupProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - ports: - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 4 - hostPort: 7 - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 4 - hostPort: 7 - volumeMounts: - - mountPath: mountPath - mountPropagation: mountPropagation - name: name - readOnly: true - subPath: subPath - subPathExpr: subPathExpr - - mountPath: mountPath - mountPropagation: mountPropagation + secret: name: name - readOnly: true - subPath: subPath - subPathExpr: subPathExpr - lifecycle: - postStart: - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - preStop: - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - readinessProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: + optional: true + items: + - mode: 3 path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - resizePolicy: - - resourceName: resourceName - restartPolicy: restartPolicy - - resourceName: resourceName - restartPolicy: restartPolicy - envFrom: - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - image: image - imagePullPolicy: imagePullPolicy - livenessProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: + key: key + - mode: 3 path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - targetContainerName: targetContainerName - terminationMessagePath: terminationMessagePath - workingDir: workingDir - resources: - claims: - - name: name - - name: name - requests: {} - limits: {} - env: - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true + key: key + serviceAccountToken: + path: path + audience: audience + expirationSeconds: 6 + clusterTrustBundle: + path: path + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values key: key + operator: operator + matchLabels: + key: matchLabels + name: name + optional: true + signerName: signerName + - downwardAPI: + items: + - mode: 1 + path: path resourceFieldRef: divisor: divisor resource: resource containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key + - mode: 1 + path: path resourceFieldRef: divisor: divisor resource: resource containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key fieldRef: apiVersion: apiVersion fieldPath: fieldPath - restartPolicy: restartPolicy - command: - - command - - command - args: - - args - - args - name: name - tty: true - stdinOnce: true - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath + configMap: name: name - stdin: true - terminationMessagePolicy: terminationMessagePolicy - securityContext: - privileged: true - runAsUser: 1 - capabilities: - add: - - add - - add - drop: - - drop - - drop - seLinuxOptions: - role: role - level: level - type: type - user: user - seccompProfile: - localhostProfile: localhostProfile - type: type - windowsOptions: - gmsaCredentialSpec: gmsaCredentialSpec - runAsUserName: runAsUserName - hostProcess: true - gmsaCredentialSpecName: gmsaCredentialSpecName - procMount: procMount - allowPrivilegeEscalation: true - runAsGroup: 1 - runAsNonRoot: true - readOnlyRootFilesystem: true - startupProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: + optional: true + items: + - mode: 3 path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - ports: - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 4 - hostPort: 7 - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 4 - hostPort: 7 - volumeMounts: - - mountPath: mountPath - mountPropagation: mountPropagation - name: name - readOnly: true - subPath: subPath - subPathExpr: subPathExpr - - mountPath: mountPath - mountPropagation: mountPropagation + key: key + - mode: 3 + path: path + key: key + secret: name: name - readOnly: true - subPath: subPath - subPathExpr: subPathExpr - lifecycle: - postStart: - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - preStop: - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - readinessProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: + optional: true + items: + - mode: 3 path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - resizePolicy: - - resourceName: resourceName - restartPolicy: restartPolicy - - resourceName: resourceName - restartPolicy: restartPolicy - envFrom: - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - image: image - imagePullPolicy: imagePullPolicy - livenessProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: + key: key + - mode: 3 path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - targetContainerName: targetContainerName - terminationMessagePath: terminationMessagePath - workingDir: workingDir - resources: - claims: + key: key + serviceAccountToken: + path: path + audience: audience + expirationSeconds: 6 + clusterTrustBundle: + path: path + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + name: name + optional: true + signerName: signerName + defaultMode: 5 + cephfs: + path: path + secretRef: + name: name + secretFile: secretFile + readOnly: true + user: user + monitors: + - monitors + - monitors + scaleIO: + system: system + protectionDomain: protectionDomain + sslEnabled: true + storageMode: storageMode + volumeName: volumeName + secretRef: + name: name + readOnly: true + fsType: fsType + storagePool: storagePool + gateway: gateway + emptyDir: + sizeLimit: sizeLimit + medium: medium + glusterfs: + path: path + endpoints: endpoints + readOnly: true + gcePersistentDisk: + partition: 6 + readOnly: true + pdName: pdName + fsType: fsType + image: + reference: reference + pullPolicy: pullPolicy + photonPersistentDisk: + pdID: pdID + fsType: fsType + azureDisk: + diskName: diskName + kind: kind + readOnly: true + cachingMode: cachingMode + diskURI: diskURI + fsType: fsType + cinder: + secretRef: + name: name + volumeID: volumeID + readOnly: true + fsType: fsType + downwardAPI: + defaultMode: 6 + items: + - mode: 1 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - mode: 1 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + awsElasticBlockStore: + partition: 9 + volumeID: volumeID + readOnly: true + fsType: fsType + flocker: + datasetName: datasetName + datasetUUID: datasetUUID + iscsi: + chapAuthSession: true + iscsiInterface: iscsiInterface + lun: 6 + chapAuthDiscovery: true + iqn: iqn + portals: + - portals + - portals + secretRef: + name: name + initiatorName: initiatorName + readOnly: true + fsType: fsType + targetPortal: targetPortal + rbd: + image: image + pool: pool + secretRef: + name: name + readOnly: true + fsType: fsType + keyring: keyring + user: user + monitors: + - monitors + - monitors + configMap: + defaultMode: 6 + name: name + optional: true + items: + - mode: 3 + path: path + key: key + - mode: 3 + path: path + key: key + storageos: + volumeNamespace: volumeNamespace + volumeName: volumeName + secretRef: + name: name + readOnly: true + fsType: fsType + csi: + driver: driver + nodePublishSecretRef: + name: name + readOnly: true + fsType: fsType + volumeAttributes: + key: volumeAttributes + name: name + nfs: + path: path + server: server + readOnly: true + persistentVolumeClaim: + claimName: claimName + readOnly: true + gitRepo: + repository: repository + directory: directory + revision: revision + portworxVolume: + volumeID: volumeID + readOnly: true + fsType: fsType + vsphereVolume: + storagePolicyName: storagePolicyName + storagePolicyID: storagePolicyID + volumePath: volumePath + fsType: fsType + fc: + lun: 2 + targetWWNs: + - targetWWNs + - targetWWNs + readOnly: true + wwids: + - wwids + - wwids + fsType: fsType + hostPath: + path: path + type: type + resources: + claims: + - request: request + name: name + - request: request + name: name + requests: {} + limits: {} + ephemeralContainers: + - volumeDevices: + - devicePath: devicePath + name: name + - devicePath: devicePath + name: name + stdin: true + terminationMessagePolicy: terminationMessagePolicy + securityContext: + privileged: true + runAsUser: 1 + capabilities: + add: + - add + - add + drop: + - drop + - drop + seLinuxOptions: + role: role + level: level + type: type + user: user + appArmorProfile: + localhostProfile: localhostProfile + type: type + seccompProfile: + localhostProfile: localhostProfile + type: type + windowsOptions: + gmsaCredentialSpec: gmsaCredentialSpec + runAsUserName: runAsUserName + hostProcess: true + gmsaCredentialSpecName: gmsaCredentialSpecName + procMount: procMount + allowPrivilegeEscalation: true + runAsGroup: 1 + runAsNonRoot: true + readOnlyRootFilesystem: true + startupProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: port + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + ports: + - protocol: protocol + hostIP: hostIP + name: name + containerPort: 7 + hostPort: 1 + - protocol: protocol + hostIP: hostIP + name: name + containerPort: 7 + hostPort: 1 + volumeMounts: + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + recursiveReadOnly: recursiveReadOnly + subPathExpr: subPathExpr + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + recursiveReadOnly: recursiveReadOnly + subPathExpr: subPathExpr + lifecycle: + postStart: + sleep: + seconds: 5 + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: - name: name + value: value - name: name - requests: {} - limits: {} - env: + value: value + preStop: + sleep: + seconds: 5 + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + stopSignal: stopSignal + readinessProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: port + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + resizePolicy: + - resourceName: resourceName + restartPolicy: restartPolicy + - resourceName: resourceName + restartPolicy: restartPolicy + envFrom: + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + image: image + imagePullPolicy: imagePullPolicy + livenessProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: port + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: - name: name value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - name: name value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - restartPolicy: restartPolicy - command: - - command - - command - args: - - args - - args + targetContainerName: targetContainerName + terminationMessagePath: terminationMessagePath + workingDir: workingDir + resources: + claims: + - request: request name: name - tty: true - stdinOnce: true - serviceAccount: serviceAccount - priority: 1 - restartPolicy: restartPolicy - shareProcessNamespace: true - hostUsers: true - resourceClaims: - - name: name - source: - resourceClaimName: resourceClaimName - resourceClaimTemplateName: resourceClaimTemplateName - - name: name - source: - resourceClaimName: resourceClaimName - resourceClaimTemplateName: resourceClaimTemplateName - subdomain: subdomain - containers: - - volumeDevices: - - devicePath: devicePath + - request: request + name: name + requests: {} + limits: {} + env: + - name: name + value: value + valueFrom: + secretKeyRef: name: name - - devicePath: devicePath + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: name: name - image: image - imagePullPolicy: imagePullPolicy - livenessProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - stdin: true - terminationMessagePolicy: terminationMessagePolicy - terminationMessagePath: terminationMessagePath - workingDir: workingDir - resources: - claims: + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + restartPolicy: restartPolicy + command: + - command + - command + args: + - args + - args + name: name + tty: true + stdinOnce: true + - volumeDevices: + - devicePath: devicePath + name: name + - devicePath: devicePath + name: name + stdin: true + terminationMessagePolicy: terminationMessagePolicy + securityContext: + privileged: true + runAsUser: 1 + capabilities: + add: + - add + - add + drop: + - drop + - drop + seLinuxOptions: + role: role + level: level + type: type + user: user + appArmorProfile: + localhostProfile: localhostProfile + type: type + seccompProfile: + localhostProfile: localhostProfile + type: type + windowsOptions: + gmsaCredentialSpec: gmsaCredentialSpec + runAsUserName: runAsUserName + hostProcess: true + gmsaCredentialSpecName: gmsaCredentialSpecName + procMount: procMount + allowPrivilegeEscalation: true + runAsGroup: 1 + runAsNonRoot: true + readOnlyRootFilesystem: true + startupProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: port + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + ports: + - protocol: protocol + hostIP: hostIP + name: name + containerPort: 7 + hostPort: 1 + - protocol: protocol + hostIP: hostIP + name: name + containerPort: 7 + hostPort: 1 + volumeMounts: + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + recursiveReadOnly: recursiveReadOnly + subPathExpr: subPathExpr + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + recursiveReadOnly: recursiveReadOnly + subPathExpr: subPathExpr + lifecycle: + postStart: + sleep: + seconds: 5 + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: - name: name + value: value - name: name - requests: {} - limits: {} - securityContext: - privileged: true - runAsUser: 1 - capabilities: - add: - - add - - add - drop: - - drop - - drop - seLinuxOptions: - role: role - level: level - type: type - user: user - seccompProfile: - localhostProfile: localhostProfile - type: type - windowsOptions: - gmsaCredentialSpec: gmsaCredentialSpec - runAsUserName: runAsUserName - hostProcess: true - gmsaCredentialSpecName: gmsaCredentialSpecName - procMount: procMount - allowPrivilegeEscalation: true - runAsGroup: 1 - runAsNonRoot: true - readOnlyRootFilesystem: true - startupProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - env: + value: value + preStop: + sleep: + seconds: 5 + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + stopSignal: stopSignal + readinessProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: port + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: - name: name value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - name: name value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - ports: - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 4 - hostPort: 7 - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 4 - hostPort: 7 - restartPolicy: restartPolicy + resizePolicy: + - resourceName: resourceName + restartPolicy: restartPolicy + - resourceName: resourceName + restartPolicy: restartPolicy + envFrom: + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + image: image + imagePullPolicy: imagePullPolicy + livenessProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: port + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: command: - command - command - volumeMounts: - - mountPath: mountPath - mountPropagation: mountPropagation + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + targetContainerName: targetContainerName + terminationMessagePath: terminationMessagePath + workingDir: workingDir + resources: + claims: + - request: request + name: name + - request: request + name: name + requests: {} + limits: {} + env: + - name: name + value: value + valueFrom: + secretKeyRef: name: name - readOnly: true - subPath: subPath - subPathExpr: subPathExpr - - mountPath: mountPath - mountPropagation: mountPropagation + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: name: name - readOnly: true - subPath: subPath - subPathExpr: subPathExpr - args: - - args - - args - lifecycle: - postStart: - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - preStop: - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - name: name - tty: true - readinessProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - resizePolicy: - - resourceName: resourceName - restartPolicy: restartPolicy - - resourceName: resourceName - restartPolicy: restartPolicy - stdinOnce: true - envFrom: - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - - volumeDevices: - - devicePath: devicePath + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - name: name + value: value + valueFrom: + secretKeyRef: name: name - - devicePath: devicePath + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: name: name - image: image - imagePullPolicy: imagePullPolicy - livenessProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - stdin: true - terminationMessagePolicy: terminationMessagePolicy - terminationMessagePath: terminationMessagePath - workingDir: workingDir - resources: - claims: - - name: name - - name: name - requests: {} - limits: {} - securityContext: - privileged: true - runAsUser: 1 - capabilities: - add: - - add - - add - drop: - - drop - - drop - seLinuxOptions: - role: role - level: level - type: type - user: user - seccompProfile: - localhostProfile: localhostProfile - type: type - windowsOptions: - gmsaCredentialSpec: gmsaCredentialSpec - runAsUserName: runAsUserName - hostProcess: true - gmsaCredentialSpecName: gmsaCredentialSpecName - procMount: procMount - allowPrivilegeEscalation: true - runAsGroup: 1 - runAsNonRoot: true - readOnlyRootFilesystem: true - startupProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - env: + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + restartPolicy: restartPolicy + command: + - command + - command + args: + - args + - args + name: name + tty: true + stdinOnce: true + serviceAccount: serviceAccount + priority: 6 + restartPolicy: restartPolicy + shareProcessNamespace: true + hostUsers: true + resourceClaims: + - resourceClaimName: resourceClaimName + name: name + resourceClaimTemplateName: resourceClaimTemplateName + - resourceClaimName: resourceClaimName + name: name + resourceClaimTemplateName: resourceClaimTemplateName + subdomain: subdomain + containers: + - volumeDevices: + - devicePath: devicePath + name: name + - devicePath: devicePath + name: name + image: image + imagePullPolicy: imagePullPolicy + livenessProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: port + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: - name: name value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - name: name value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - ports: - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 4 - hostPort: 7 - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 4 - hostPort: 7 - restartPolicy: restartPolicy + stdin: true + terminationMessagePolicy: terminationMessagePolicy + terminationMessagePath: terminationMessagePath + workingDir: workingDir + resources: + claims: + - request: request + name: name + - request: request + name: name + requests: {} + limits: {} + securityContext: + privileged: true + runAsUser: 1 + capabilities: + add: + - add + - add + drop: + - drop + - drop + seLinuxOptions: + role: role + level: level + type: type + user: user + appArmorProfile: + localhostProfile: localhostProfile + type: type + seccompProfile: + localhostProfile: localhostProfile + type: type + windowsOptions: + gmsaCredentialSpec: gmsaCredentialSpec + runAsUserName: runAsUserName + hostProcess: true + gmsaCredentialSpecName: gmsaCredentialSpecName + procMount: procMount + allowPrivilegeEscalation: true + runAsGroup: 1 + runAsNonRoot: true + readOnlyRootFilesystem: true + startupProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: port + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: command: - command - command - volumeMounts: - - mountPath: mountPath - mountPropagation: mountPropagation + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + env: + - name: name + value: value + valueFrom: + secretKeyRef: name: name - readOnly: true - subPath: subPath - subPathExpr: subPathExpr - - mountPath: mountPath - mountPropagation: mountPropagation + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: name: name - readOnly: true - subPath: subPath - subPathExpr: subPathExpr - args: - - args - - args - lifecycle: - postStart: - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - preStop: - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - name: name - tty: true - readinessProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - resizePolicy: - - resourceName: resourceName - restartPolicy: restartPolicy - - resourceName: resourceName - restartPolicy: restartPolicy - stdinOnce: true - envFrom: - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - initContainers: - - volumeDevices: - - devicePath: devicePath + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - name: name + value: value + valueFrom: + secretKeyRef: name: name - - devicePath: devicePath + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: name: name - image: image - imagePullPolicy: imagePullPolicy - livenessProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - stdin: true - terminationMessagePolicy: terminationMessagePolicy - terminationMessagePath: terminationMessagePath - workingDir: workingDir - resources: - claims: - - name: name - - name: name - requests: {} - limits: {} - securityContext: - privileged: true - runAsUser: 1 - capabilities: - add: - - add - - add - drop: - - drop - - drop - seLinuxOptions: - role: role - level: level - type: type - user: user - seccompProfile: - localhostProfile: localhostProfile - type: type - windowsOptions: - gmsaCredentialSpec: gmsaCredentialSpec - runAsUserName: runAsUserName - hostProcess: true - gmsaCredentialSpecName: gmsaCredentialSpecName - procMount: procMount - allowPrivilegeEscalation: true - runAsGroup: 1 - runAsNonRoot: true - readOnlyRootFilesystem: true - startupProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - env: + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + ports: + - protocol: protocol + hostIP: hostIP + name: name + containerPort: 7 + hostPort: 1 + - protocol: protocol + hostIP: hostIP + name: name + containerPort: 7 + hostPort: 1 + restartPolicy: restartPolicy + command: + - command + - command + volumeMounts: + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + recursiveReadOnly: recursiveReadOnly + subPathExpr: subPathExpr + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + recursiveReadOnly: recursiveReadOnly + subPathExpr: subPathExpr + args: + - args + - args + lifecycle: + postStart: + sleep: + seconds: 5 + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + preStop: + sleep: + seconds: 5 + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + stopSignal: stopSignal + name: name + tty: true + readinessProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: port + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: - name: name value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - name: name value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - ports: - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 4 - hostPort: 7 - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 4 - hostPort: 7 - restartPolicy: restartPolicy + resizePolicy: + - resourceName: resourceName + restartPolicy: restartPolicy + - resourceName: resourceName + restartPolicy: restartPolicy + stdinOnce: true + envFrom: + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + - volumeDevices: + - devicePath: devicePath + name: name + - devicePath: devicePath + name: name + image: image + imagePullPolicy: imagePullPolicy + livenessProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: port + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: command: - command - command - volumeMounts: - - mountPath: mountPath - mountPropagation: mountPropagation - name: name - readOnly: true - subPath: subPath - subPathExpr: subPathExpr - - mountPath: mountPath - mountPropagation: mountPropagation - name: name - readOnly: true - subPath: subPath - subPathExpr: subPathExpr - args: - - args - - args - lifecycle: - postStart: - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - preStop: - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + stdin: true + terminationMessagePolicy: terminationMessagePolicy + terminationMessagePath: terminationMessagePath + workingDir: workingDir + resources: + claims: + - request: request name: name - tty: true - readinessProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - resizePolicy: - - resourceName: resourceName - restartPolicy: restartPolicy - - resourceName: resourceName - restartPolicy: restartPolicy - stdinOnce: true - envFrom: - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name - image: image - imagePullPolicy: imagePullPolicy - livenessProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - stdin: true - terminationMessagePolicy: terminationMessagePolicy - terminationMessagePath: terminationMessagePath - workingDir: workingDir - resources: - claims: - - name: name - - name: name - requests: {} - limits: {} - securityContext: - privileged: true - runAsUser: 1 - capabilities: - add: - - add - - add - drop: - - drop - - drop - seLinuxOptions: - role: role - level: level - type: type - user: user - seccompProfile: - localhostProfile: localhostProfile - type: type - windowsOptions: - gmsaCredentialSpec: gmsaCredentialSpec - runAsUserName: runAsUserName - hostProcess: true - gmsaCredentialSpecName: gmsaCredentialSpecName - procMount: procMount - allowPrivilegeEscalation: true - runAsGroup: 1 - runAsNonRoot: true - readOnlyRootFilesystem: true - startupProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - env: + - request: request + name: name + requests: {} + limits: {} + securityContext: + privileged: true + runAsUser: 1 + capabilities: + add: + - add + - add + drop: + - drop + - drop + seLinuxOptions: + role: role + level: level + type: type + user: user + appArmorProfile: + localhostProfile: localhostProfile + type: type + seccompProfile: + localhostProfile: localhostProfile + type: type + windowsOptions: + gmsaCredentialSpec: gmsaCredentialSpec + runAsUserName: runAsUserName + hostProcess: true + gmsaCredentialSpecName: gmsaCredentialSpecName + procMount: procMount + allowPrivilegeEscalation: true + runAsGroup: 1 + runAsNonRoot: true + readOnlyRootFilesystem: true + startupProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: port + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: - name: name value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - name: name value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - ports: - - protocol: protocol - hostIP: hostIP + env: + - name: name + value: value + valueFrom: + secretKeyRef: name: name - containerPort: 4 - hostPort: 7 - - protocol: protocol - hostIP: hostIP + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: name: name - containerPort: 4 - hostPort: 7 - restartPolicy: restartPolicy + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + ports: + - protocol: protocol + hostIP: hostIP + name: name + containerPort: 7 + hostPort: 1 + - protocol: protocol + hostIP: hostIP + name: name + containerPort: 7 + hostPort: 1 + restartPolicy: restartPolicy + command: + - command + - command + volumeMounts: + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + recursiveReadOnly: recursiveReadOnly + subPathExpr: subPathExpr + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + recursiveReadOnly: recursiveReadOnly + subPathExpr: subPathExpr + args: + - args + - args + lifecycle: + postStart: + sleep: + seconds: 5 + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + preStop: + sleep: + seconds: 5 + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + stopSignal: stopSignal + name: name + tty: true + readinessProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: port + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: command: - command - command - volumeMounts: - - mountPath: mountPath - mountPropagation: mountPropagation - name: name - readOnly: true - subPath: subPath - subPathExpr: subPathExpr - - mountPath: mountPath - mountPropagation: mountPropagation - name: name - readOnly: true - subPath: subPath - subPathExpr: subPathExpr - args: - - args - - args - lifecycle: - postStart: - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - preStop: - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + resizePolicy: + - resourceName: resourceName + restartPolicy: restartPolicy + - resourceName: resourceName + restartPolicy: restartPolicy + stdinOnce: true + envFrom: + - configMapRef: name: name - tty: true - readinessProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - resizePolicy: - - resourceName: resourceName - restartPolicy: restartPolicy - - resourceName: resourceName - restartPolicy: restartPolicy - stdinOnce: true - envFrom: - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - affinity: - nodeAffinity: - requiredDuringSchedulingIgnoredDuringExecution: - nodeSelectorTerms: - - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchFields: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchFields: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - preferredDuringSchedulingIgnoredDuringExecution: - - preference: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchFields: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - weight: 6 - - preference: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchFields: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - weight: 6 - podAffinity: - requiredDuringSchedulingIgnoredDuringExecution: - - labelSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - topologyKey: topologyKey - namespaces: - - namespaces - - namespaces - - labelSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - topologyKey: topologyKey - namespaces: - - namespaces - - namespaces - preferredDuringSchedulingIgnoredDuringExecution: - - podAffinityTerm: - labelSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - topologyKey: topologyKey - namespaces: - - namespaces - - namespaces - weight: 1 - - podAffinityTerm: - labelSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - topologyKey: topologyKey - namespaces: - - namespaces - - namespaces - weight: 1 - podAntiAffinity: - requiredDuringSchedulingIgnoredDuringExecution: - - labelSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - topologyKey: topologyKey - namespaces: - - namespaces - - namespaces - - labelSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - topologyKey: topologyKey - namespaces: - - namespaces - - namespaces - preferredDuringSchedulingIgnoredDuringExecution: - - podAffinityTerm: - labelSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - topologyKey: topologyKey - namespaces: - - namespaces - - namespaces - weight: 1 - - podAffinityTerm: - labelSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - topologyKey: topologyKey - namespaces: - - namespaces - - namespaces - weight: 1 - hostPID: true - status: - phase: phase - resourceClaimStatuses: - - resourceClaimName: resourceClaimName + optional: true + prefix: prefix + secretRef: name: name - - resourceClaimName: resourceClaimName + optional: true + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + initContainers: + - volumeDevices: + - devicePath: devicePath + name: name + - devicePath: devicePath + name: name + image: image + imagePullPolicy: imagePullPolicy + livenessProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: port + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + stdin: true + terminationMessagePolicy: terminationMessagePolicy + terminationMessagePath: terminationMessagePath + workingDir: workingDir + resources: + claims: + - request: request name: name - reason: reason - containerStatuses: - - allocatedResources: {} - image: image - imageID: imageID - restartCount: 7 - ready: true + - request: request name: name - resources: - claims: + requests: {} + limits: {} + securityContext: + privileged: true + runAsUser: 1 + capabilities: + add: + - add + - add + drop: + - drop + - drop + seLinuxOptions: + role: role + level: level + type: type + user: user + appArmorProfile: + localhostProfile: localhostProfile + type: type + seccompProfile: + localhostProfile: localhostProfile + type: type + windowsOptions: + gmsaCredentialSpec: gmsaCredentialSpec + runAsUserName: runAsUserName + hostProcess: true + gmsaCredentialSpecName: gmsaCredentialSpecName + procMount: procMount + allowPrivilegeEscalation: true + runAsGroup: 1 + runAsNonRoot: true + readOnlyRootFilesystem: true + startupProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: port + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + env: + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + ports: + - protocol: protocol + hostIP: hostIP + name: name + containerPort: 7 + hostPort: 1 + - protocol: protocol + hostIP: hostIP + name: name + containerPort: 7 + hostPort: 1 + restartPolicy: restartPolicy + command: + - command + - command + volumeMounts: + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + recursiveReadOnly: recursiveReadOnly + subPathExpr: subPathExpr + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + recursiveReadOnly: recursiveReadOnly + subPathExpr: subPathExpr + args: + - args + - args + lifecycle: + postStart: + sleep: + seconds: 5 + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: - name: name + value: value - name: name - requests: {} - limits: {} - started: true - state: - running: - startedAt: 2000-01-23T04:56:07.000+00:00 - waiting: - reason: reason - message: message - terminated: - reason: reason - exitCode: 3 - startedAt: 2000-01-23T04:56:07.000+00:00 - containerID: containerID - message: message - signal: 3 - finishedAt: 2000-01-23T04:56:07.000+00:00 - containerID: containerID - lastState: - running: - startedAt: 2000-01-23T04:56:07.000+00:00 - waiting: - reason: reason - message: message - terminated: - reason: reason - exitCode: 3 - startedAt: 2000-01-23T04:56:07.000+00:00 - containerID: containerID - message: message - signal: 3 - finishedAt: 2000-01-23T04:56:07.000+00:00 - - allocatedResources: {} - image: image - imageID: imageID - restartCount: 7 - ready: true - name: name - resources: - claims: + value: value + preStop: + sleep: + seconds: 5 + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: - name: name + value: value - name: name - requests: {} - limits: {} - started: true - state: - running: - startedAt: 2000-01-23T04:56:07.000+00:00 - waiting: - reason: reason - message: message - terminated: - reason: reason - exitCode: 3 - startedAt: 2000-01-23T04:56:07.000+00:00 - containerID: containerID - message: message - signal: 3 - finishedAt: 2000-01-23T04:56:07.000+00:00 - containerID: containerID - lastState: - running: - startedAt: 2000-01-23T04:56:07.000+00:00 - waiting: - reason: reason - message: message - terminated: - reason: reason - exitCode: 3 - startedAt: 2000-01-23T04:56:07.000+00:00 - containerID: containerID - message: message - signal: 3 - finishedAt: 2000-01-23T04:56:07.000+00:00 - hostIP: hostIP - nominatedNodeName: nominatedNodeName - message: message - podIPs: - - ip: ip - - ip: ip - podIP: podIP - ephemeralContainerStatuses: - - allocatedResources: {} - image: image - imageID: imageID - restartCount: 7 - ready: true + value: value + stopSignal: stopSignal + name: name + tty: true + readinessProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: port + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + resizePolicy: + - resourceName: resourceName + restartPolicy: restartPolicy + - resourceName: resourceName + restartPolicy: restartPolicy + stdinOnce: true + envFrom: + - configMapRef: name: name - resources: - claims: - - name: name - - name: name - requests: {} - limits: {} - started: true - state: - running: - startedAt: 2000-01-23T04:56:07.000+00:00 - waiting: - reason: reason - message: message - terminated: - reason: reason - exitCode: 3 - startedAt: 2000-01-23T04:56:07.000+00:00 - containerID: containerID - message: message - signal: 3 - finishedAt: 2000-01-23T04:56:07.000+00:00 - containerID: containerID - lastState: - running: - startedAt: 2000-01-23T04:56:07.000+00:00 - waiting: - reason: reason - message: message - terminated: - reason: reason - exitCode: 3 - startedAt: 2000-01-23T04:56:07.000+00:00 - containerID: containerID - message: message - signal: 3 - finishedAt: 2000-01-23T04:56:07.000+00:00 - - allocatedResources: {} - image: image - imageID: imageID - restartCount: 7 - ready: true + optional: true + prefix: prefix + secretRef: name: name - resources: - claims: - - name: name - - name: name - requests: {} - limits: {} - started: true - state: - running: - startedAt: 2000-01-23T04:56:07.000+00:00 - waiting: - reason: reason - message: message - terminated: - reason: reason - exitCode: 3 - startedAt: 2000-01-23T04:56:07.000+00:00 - containerID: containerID - message: message - signal: 3 - finishedAt: 2000-01-23T04:56:07.000+00:00 - containerID: containerID - lastState: - running: - startedAt: 2000-01-23T04:56:07.000+00:00 - waiting: - reason: reason - message: message - terminated: - reason: reason - exitCode: 3 - startedAt: 2000-01-23T04:56:07.000+00:00 - containerID: containerID - message: message - signal: 3 - finishedAt: 2000-01-23T04:56:07.000+00:00 - hostIPs: - - ip: ip - - ip: ip - resize: resize - startTime: 2000-01-23T04:56:07.000+00:00 - qosClass: qosClass - conditions: - - reason: reason - lastTransitionTime: 2000-01-23T04:56:07.000+00:00 - message: message + optional: true + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + - volumeDevices: + - devicePath: devicePath + name: name + - devicePath: devicePath + name: name + image: image + imagePullPolicy: imagePullPolicy + livenessProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: port + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + stdin: true + terminationMessagePolicy: terminationMessagePolicy + terminationMessagePath: terminationMessagePath + workingDir: workingDir + resources: + claims: + - request: request + name: name + - request: request + name: name + requests: {} + limits: {} + securityContext: + privileged: true + runAsUser: 1 + capabilities: + add: + - add + - add + drop: + - drop + - drop + seLinuxOptions: + role: role + level: level type: type - lastProbeTime: 2000-01-23T04:56:07.000+00:00 - status: status - - reason: reason - lastTransitionTime: 2000-01-23T04:56:07.000+00:00 - message: message + user: user + appArmorProfile: + localhostProfile: localhostProfile type: type - lastProbeTime: 2000-01-23T04:56:07.000+00:00 - status: status - initContainerStatuses: - - allocatedResources: {} - image: image - imageID: imageID - restartCount: 7 - ready: true - name: name - resources: - claims: + seccompProfile: + localhostProfile: localhostProfile + type: type + windowsOptions: + gmsaCredentialSpec: gmsaCredentialSpec + runAsUserName: runAsUserName + hostProcess: true + gmsaCredentialSpecName: gmsaCredentialSpecName + procMount: procMount + allowPrivilegeEscalation: true + runAsGroup: 1 + runAsNonRoot: true + readOnlyRootFilesystem: true + startupProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: port + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + env: + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + ports: + - protocol: protocol + hostIP: hostIP + name: name + containerPort: 7 + hostPort: 1 + - protocol: protocol + hostIP: hostIP + name: name + containerPort: 7 + hostPort: 1 + restartPolicy: restartPolicy + command: + - command + - command + volumeMounts: + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + recursiveReadOnly: recursiveReadOnly + subPathExpr: subPathExpr + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + recursiveReadOnly: recursiveReadOnly + subPathExpr: subPathExpr + args: + - args + - args + lifecycle: + postStart: + sleep: + seconds: 5 + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: - name: name + value: value - name: name - requests: {} - limits: {} - started: true - state: - running: - startedAt: 2000-01-23T04:56:07.000+00:00 - waiting: - reason: reason - message: message - terminated: - reason: reason - exitCode: 3 - startedAt: 2000-01-23T04:56:07.000+00:00 - containerID: containerID - message: message - signal: 3 - finishedAt: 2000-01-23T04:56:07.000+00:00 - containerID: containerID - lastState: - running: - startedAt: 2000-01-23T04:56:07.000+00:00 - waiting: - reason: reason - message: message - terminated: - reason: reason - exitCode: 3 - startedAt: 2000-01-23T04:56:07.000+00:00 - containerID: containerID - message: message - signal: 3 - finishedAt: 2000-01-23T04:56:07.000+00:00 - - allocatedResources: {} - image: image - imageID: imageID - restartCount: 7 - ready: true - name: name - resources: - claims: + value: value + preStop: + sleep: + seconds: 5 + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: - name: name + value: value - name: name - requests: {} - limits: {} - started: true - state: - running: - startedAt: 2000-01-23T04:56:07.000+00:00 - waiting: - reason: reason - message: message - terminated: - reason: reason - exitCode: 3 - startedAt: 2000-01-23T04:56:07.000+00:00 - containerID: containerID - message: message - signal: 3 - finishedAt: 2000-01-23T04:56:07.000+00:00 - containerID: containerID - lastState: - running: - startedAt: 2000-01-23T04:56:07.000+00:00 - waiting: - reason: reason - message: message - terminated: - reason: reason - exitCode: 3 - startedAt: 2000-01-23T04:56:07.000+00:00 - containerID: containerID - message: message - signal: 3 - finishedAt: 2000-01-23T04:56:07.000+00:00 + value: value + stopSignal: stopSignal + name: name + tty: true + readinessProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: port + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + resizePolicy: + - resourceName: resourceName + restartPolicy: restartPolicy + - resourceName: resourceName + restartPolicy: restartPolicy + stdinOnce: true + envFrom: + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + affinity: + nodeAffinity: + requiredDuringSchedulingIgnoredDuringExecution: + nodeSelectorTerms: + - matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchFields: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + - matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchFields: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + preferredDuringSchedulingIgnoredDuringExecution: + - preference: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchFields: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + weight: 6 + - preference: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchFields: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + weight: 6 + podAffinity: + requiredDuringSchedulingIgnoredDuringExecution: + - labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + mismatchLabelKeys: + - mismatchLabelKeys + - mismatchLabelKeys + namespaces: + - namespaces + - namespaces + - labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + mismatchLabelKeys: + - mismatchLabelKeys + - mismatchLabelKeys + namespaces: + - namespaces + - namespaces + preferredDuringSchedulingIgnoredDuringExecution: + - podAffinityTerm: + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + mismatchLabelKeys: + - mismatchLabelKeys + - mismatchLabelKeys + namespaces: + - namespaces + - namespaces + weight: 1 + - podAffinityTerm: + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + mismatchLabelKeys: + - mismatchLabelKeys + - mismatchLabelKeys + namespaces: + - namespaces + - namespaces + weight: 1 + podAntiAffinity: + requiredDuringSchedulingIgnoredDuringExecution: + - labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + mismatchLabelKeys: + - mismatchLabelKeys + - mismatchLabelKeys + namespaces: + - namespaces + - namespaces + - labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + mismatchLabelKeys: + - mismatchLabelKeys + - mismatchLabelKeys + namespaces: + - namespaces + - namespaces + preferredDuringSchedulingIgnoredDuringExecution: + - podAffinityTerm: + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + mismatchLabelKeys: + - mismatchLabelKeys + - mismatchLabelKeys + namespaces: + - namespaces + - namespaces + weight: 1 + - podAffinityTerm: + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + mismatchLabelKeys: + - mismatchLabelKeys + - mismatchLabelKeys + namespaces: + - namespaces + - namespaces + weight: 1 + hostPID: true properties: - apiVersion: - description: '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' + activeDeadlineSeconds: + description: 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. + format: int64 + type: integer + affinity: + $ref: '#/components/schemas/v1.Affinity' + automountServiceAccountToken: + description: AutomountServiceAccountToken indicates whether a service account + token should be automatically mounted. + type: boolean + containers: + description: 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. + items: + $ref: '#/components/schemas/v1.Container' + type: array + x-kubernetes-patch-strategy: merge + x-kubernetes-list-type: map + x-kubernetes-list-map-keys: + - name + x-kubernetes-patch-merge-key: name + dnsConfig: + $ref: '#/components/schemas/v1.PodDNSConfig' + dnsPolicy: + description: 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'. type: string - items: - description: 'List of pods. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md' + enableServiceLinks: + description: 'EnableServiceLinks indicates whether information about services + should be injected into pod''s environment variables, matching the syntax + of Docker links. Optional: Defaults to true.' + type: boolean + ephemeralContainers: + description: 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. items: - $ref: '#/components/schemas/v1.Pod' + $ref: '#/components/schemas/v1.EphemeralContainer' type: array - kind: - description: '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' + x-kubernetes-patch-strategy: merge + x-kubernetes-list-type: map + x-kubernetes-list-map-keys: + - name + x-kubernetes-patch-merge-key: name + hostAliases: + description: HostAliases is an optional list of hosts and IPs that will + be injected into the pod's hosts file if specified. + items: + $ref: '#/components/schemas/v1.HostAlias' + type: array + x-kubernetes-patch-strategy: merge + x-kubernetes-list-type: map + x-kubernetes-list-map-keys: + - ip + x-kubernetes-patch-merge-key: ip + hostIPC: + description: 'Use the host''s ipc namespace. Optional: Default to false.' + type: boolean + hostNetwork: + description: 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. + type: boolean + hostPID: + description: 'Use the host''s pid namespace. Optional: Default to false.' + type: boolean + hostUsers: + description: '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.' + type: boolean + hostname: + description: Specifies the hostname of the Pod If not specified, the pod's + hostname will be set to a system-defined value. type: string - metadata: - $ref: '#/components/schemas/v1.ListMeta' - required: - - items - type: object - x-kubernetes-group-version-kind: - - group: "" - kind: PodList - version: v1 - x-implements: - - io.kubernetes.client.common.KubernetesListObject - v1.PodOS: - description: PodOS defines the OS parameters of a pod. - example: - name: name - properties: - name: - description: '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' + imagePullSecrets: + description: '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' + items: + $ref: '#/components/schemas/v1.LocalObjectReference' + type: array + x-kubernetes-patch-strategy: merge + x-kubernetes-list-type: map + x-kubernetes-list-map-keys: + - name + x-kubernetes-patch-merge-key: name + initContainers: + description: '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 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/' + items: + $ref: '#/components/schemas/v1.Container' + type: array + x-kubernetes-patch-strategy: merge + x-kubernetes-list-type: map + x-kubernetes-list-map-keys: + - name + x-kubernetes-patch-merge-key: name + nodeName: + description: 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 type: string - required: - - name - type: object - v1.PodReadinessGate: - description: PodReadinessGate contains the reference to a pod condition - example: - conditionType: conditionType - properties: - conditionType: - description: ConditionType refers to a condition in the pod's condition - list with matching type. + nodeSelector: + additionalProperties: + type: string + description: '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/' + type: object + x-kubernetes-map-type: atomic + os: + $ref: '#/components/schemas/v1.PodOS' + overhead: + additionalProperties: + $ref: '#/components/schemas/resource.Quantity' + description: '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' + type: object + preemptionPolicy: + description: PreemptionPolicy is the Policy for preempting pods with lower + priority. One of Never, PreemptLowerPriority. Defaults to PreemptLowerPriority + if unset. type: string - required: - - conditionType - type: object - v1.PodResourceClaim: - description: PodResourceClaim references exactly one ResourceClaim through a - ClaimSource. 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. - example: - name: name - source: - resourceClaimName: resourceClaimName - resourceClaimTemplateName: resourceClaimTemplateName - properties: - name: - description: Name uniquely identifies this resource claim inside the pod. - This must be a DNS_LABEL. + priority: + description: 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. + format: int32 + type: integer + priorityClassName: + description: 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. type: string - source: - $ref: '#/components/schemas/v1.ClaimSource' - required: - - name - type: object - v1.PodResourceClaimStatus: - description: PodResourceClaimStatus is stored in the PodStatus for each PodResourceClaim - which references a ResourceClaimTemplate. It stores the generated name for - the corresponding ResourceClaim. - example: - resourceClaimName: resourceClaimName - name: name - properties: - name: - description: 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. + readinessGates: + description: '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' + items: + $ref: '#/components/schemas/v1.PodReadinessGate' + type: array + x-kubernetes-list-type: atomic + resourceClaims: + description: |- + 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. + items: + $ref: '#/components/schemas/v1.PodResourceClaim' + type: array + x-kubernetes-patch-strategy: merge,retainKeys + x-kubernetes-list-type: map + x-kubernetes-list-map-keys: + - name + x-kubernetes-patch-merge-key: name + resources: + $ref: '#/components/schemas/v1.ResourceRequirements' + restartPolicy: + description: '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' type: string - resourceClaimName: - description: ResourceClaimName is the name of the ResourceClaim that was - generated for the Pod in the namespace of the Pod. It this is unset, then - generating a ResourceClaim was not necessary. The pod.spec.resourceClaims - entry can be ignored in this case. + runtimeClassName: + description: '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' type: string - required: - - name - type: object - v1.PodSchedulingGate: - description: PodSchedulingGate is associated to a Pod to guard its scheduling. - example: - name: name - properties: - name: - description: Name of the scheduling gate. Each scheduling gate must have - a unique name field. + schedulerName: + description: If specified, the pod will be dispatched by specified scheduler. + If not specified, the pod will be dispatched by default scheduler. type: string - required: - - name - type: object - v1.PodSecurityContext: - 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. - example: - runAsUser: 1 - seLinuxOptions: - role: role - level: level - type: type - user: user - fsGroup: 6 - seccompProfile: - localhostProfile: localhostProfile - type: type - windowsOptions: - gmsaCredentialSpec: gmsaCredentialSpec - runAsUserName: runAsUserName - hostProcess: true - gmsaCredentialSpecName: gmsaCredentialSpecName - fsGroupChangePolicy: fsGroupChangePolicy - supplementalGroups: - - 4 - - 4 - runAsGroup: 7 - runAsNonRoot: true - sysctls: - - name: name - value: value - - name: name - value: value - properties: - fsGroup: + schedulingGates: description: |- - 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---- + 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. - 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. - format: int64 - type: integer - fsGroupChangePolicy: - description: '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.' + SchedulingGates can only be set at pod creation time, and be removed only afterwards. + items: + $ref: '#/components/schemas/v1.PodSchedulingGate' + type: array + x-kubernetes-patch-strategy: merge + x-kubernetes-list-type: map + x-kubernetes-list-map-keys: + - name + x-kubernetes-patch-merge-key: name + securityContext: + $ref: '#/components/schemas/v1.PodSecurityContext' + serviceAccount: + description: 'DeprecatedServiceAccount is a deprecated alias for ServiceAccountName. + Deprecated: Use serviceAccountName instead.' type: string - runAsGroup: - description: 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. - format: int64 - type: integer - runAsNonRoot: - description: 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. + serviceAccountName: + description: '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/' + type: string + setHostnameAsFQDN: + description: 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. type: boolean - runAsUser: - description: 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. + shareProcessNamespace: + description: '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.' + type: boolean + subdomain: + description: If specified, the fully qualified Pod hostname will be "...svc.". If not specified, the pod will not have + a domainname at all. + type: string + terminationGracePeriodSeconds: + description: 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. format: int64 type: integer - seLinuxOptions: - $ref: '#/components/schemas/v1.SELinuxOptions' - seccompProfile: - $ref: '#/components/schemas/v1.SeccompProfile' - supplementalGroups: - description: A list of groups applied to the first process run in each container, - in addition to the container's primary GID, the fsGroup (if specified), - and group memberships defined in the container image for the uid of the - container process. If unspecified, no additional groups are added to any - container. Note that group memberships defined in the container image - for the uid of the container process are still effective, even if they - are not included in this list. Note that this field cannot be set when - spec.os.name is windows. + tolerations: + description: If specified, the pod's tolerations. items: - format: int64 - type: integer + $ref: '#/components/schemas/v1.Toleration' type: array - sysctls: - description: 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. + x-kubernetes-list-type: atomic + topologySpreadConstraints: + description: 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. items: - $ref: '#/components/schemas/v1.Sysctl' + $ref: '#/components/schemas/v1.TopologySpreadConstraint' type: array - windowsOptions: - $ref: '#/components/schemas/v1.WindowsSecurityContextOptions' + x-kubernetes-patch-strategy: merge + x-kubernetes-list-type: map + x-kubernetes-list-map-keys: + - topologyKey + - whenUnsatisfiable + x-kubernetes-patch-merge-key: topologyKey + volumes: + description: 'List of volumes that can be mounted by containers belonging + to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes' + items: + $ref: '#/components/schemas/v1.Volume' + type: array + x-kubernetes-patch-strategy: merge,retainKeys + x-kubernetes-list-type: map + x-kubernetes-list-map-keys: + - name + x-kubernetes-patch-merge-key: name + required: + - containers type: object - v1.PodSpec: - description: PodSpec is a description of a pod. + v1.PodStatus: + 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. example: - dnsPolicy: dnsPolicy - nodeName: nodeName - terminationGracePeriodSeconds: 5 - dnsConfig: - searches: - - searches - - searches - nameservers: - - nameservers - - nameservers - options: + phase: phase + resourceClaimStatuses: + - resourceClaimName: resourceClaimName + name: name + - resourceClaimName: resourceClaimName + name: name + reason: reason + containerStatuses: + - allocatedResourcesStatus: - name: name - value: value + resources: + - resourceID: resourceID + health: health + - resourceID: resourceID + health: health - name: name - value: value - hostNetwork: true - readinessGates: - - conditionType: conditionType - - conditionType: conditionType - serviceAccountName: serviceAccountName - imagePullSecrets: - - name: name - - name: name - priorityClassName: priorityClassName - hostAliases: + resources: + - resourceID: resourceID + health: health + - resourceID: resourceID + health: health + image: image + imageID: imageID + restartCount: 7 + resources: + claims: + - request: request + name: name + - request: request + name: name + requests: {} + limits: {} + started: true + lastState: + running: + startedAt: 2000-01-23T04:56:07.000+00:00 + waiting: + reason: reason + message: message + terminated: + reason: reason + exitCode: 7 + startedAt: 2000-01-23T04:56:07.000+00:00 + containerID: containerID + message: message + signal: 0 + finishedAt: 2000-01-23T04:56:07.000+00:00 + volumeMounts: + - mountPath: mountPath + name: name + readOnly: true + recursiveReadOnly: recursiveReadOnly + - mountPath: mountPath + name: name + readOnly: true + recursiveReadOnly: recursiveReadOnly + allocatedResources: {} + ready: true + name: name + state: + running: + startedAt: 2000-01-23T04:56:07.000+00:00 + waiting: + reason: reason + message: message + terminated: + reason: reason + exitCode: 7 + startedAt: 2000-01-23T04:56:07.000+00:00 + containerID: containerID + message: message + signal: 0 + finishedAt: 2000-01-23T04:56:07.000+00:00 + containerID: containerID + stopSignal: stopSignal + user: + linux: + uid: 4 + gid: 6 + supplementalGroups: + - 0 + - 0 + - allocatedResourcesStatus: + - name: name + resources: + - resourceID: resourceID + health: health + - resourceID: resourceID + health: health + - name: name + resources: + - resourceID: resourceID + health: health + - resourceID: resourceID + health: health + image: image + imageID: imageID + restartCount: 7 + resources: + claims: + - request: request + name: name + - request: request + name: name + requests: {} + limits: {} + started: true + lastState: + running: + startedAt: 2000-01-23T04:56:07.000+00:00 + waiting: + reason: reason + message: message + terminated: + reason: reason + exitCode: 7 + startedAt: 2000-01-23T04:56:07.000+00:00 + containerID: containerID + message: message + signal: 0 + finishedAt: 2000-01-23T04:56:07.000+00:00 + volumeMounts: + - mountPath: mountPath + name: name + readOnly: true + recursiveReadOnly: recursiveReadOnly + - mountPath: mountPath + name: name + readOnly: true + recursiveReadOnly: recursiveReadOnly + allocatedResources: {} + ready: true + name: name + state: + running: + startedAt: 2000-01-23T04:56:07.000+00:00 + waiting: + reason: reason + message: message + terminated: + reason: reason + exitCode: 7 + startedAt: 2000-01-23T04:56:07.000+00:00 + containerID: containerID + message: message + signal: 0 + finishedAt: 2000-01-23T04:56:07.000+00:00 + containerID: containerID + stopSignal: stopSignal + user: + linux: + uid: 4 + gid: 6 + supplementalGroups: + - 0 + - 0 + hostIP: hostIP + nominatedNodeName: nominatedNodeName + message: message + podIPs: - ip: ip - hostnames: - - hostnames - - hostnames - ip: ip - hostnames: - - hostnames - - hostnames - securityContext: - runAsUser: 1 - seLinuxOptions: - role: role - level: level - type: type - user: user - fsGroup: 6 - seccompProfile: - localhostProfile: localhostProfile - type: type - windowsOptions: - gmsaCredentialSpec: gmsaCredentialSpec - runAsUserName: runAsUserName - hostProcess: true - gmsaCredentialSpecName: gmsaCredentialSpecName - fsGroupChangePolicy: fsGroupChangePolicy - supplementalGroups: - - 4 - - 4 - runAsGroup: 7 - runAsNonRoot: true - sysctls: + podIP: podIP + ephemeralContainerStatuses: + - allocatedResourcesStatus: - name: name - value: value + resources: + - resourceID: resourceID + health: health + - resourceID: resourceID + health: health - name: name - value: value - preemptionPolicy: preemptionPolicy - nodeSelector: - key: nodeSelector - hostname: hostname - runtimeClassName: runtimeClassName - tolerations: - - effect: effect - tolerationSeconds: 9 - value: value - key: key - operator: operator - - effect: effect - tolerationSeconds: 9 - value: value - key: key - operator: operator - automountServiceAccountToken: true - schedulingGates: - - name: name - - name: name - schedulerName: schedulerName - activeDeadlineSeconds: 0 - os: + resources: + - resourceID: resourceID + health: health + - resourceID: resourceID + health: health + image: image + imageID: imageID + restartCount: 7 + resources: + claims: + - request: request + name: name + - request: request + name: name + requests: {} + limits: {} + started: true + lastState: + running: + startedAt: 2000-01-23T04:56:07.000+00:00 + waiting: + reason: reason + message: message + terminated: + reason: reason + exitCode: 7 + startedAt: 2000-01-23T04:56:07.000+00:00 + containerID: containerID + message: message + signal: 0 + finishedAt: 2000-01-23T04:56:07.000+00:00 + volumeMounts: + - mountPath: mountPath + name: name + readOnly: true + recursiveReadOnly: recursiveReadOnly + - mountPath: mountPath + name: name + readOnly: true + recursiveReadOnly: recursiveReadOnly + allocatedResources: {} + ready: true name: name - setHostnameAsFQDN: true - enableServiceLinks: true - overhead: {} - hostIPC: true - topologySpreadConstraints: - - nodeTaintsPolicy: nodeTaintsPolicy - whenUnsatisfiable: whenUnsatisfiable - maxSkew: 9 - nodeAffinityPolicy: nodeAffinityPolicy - labelSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - minDomains: 6 - topologyKey: topologyKey - matchLabelKeys: - - matchLabelKeys - - matchLabelKeys - - nodeTaintsPolicy: nodeTaintsPolicy - whenUnsatisfiable: whenUnsatisfiable - maxSkew: 9 - nodeAffinityPolicy: nodeAffinityPolicy - labelSelector: - matchExpressions: - - values: - - values - - values + state: + running: + startedAt: 2000-01-23T04:56:07.000+00:00 + waiting: + reason: reason + message: message + terminated: + reason: reason + exitCode: 7 + startedAt: 2000-01-23T04:56:07.000+00:00 + containerID: containerID + message: message + signal: 0 + finishedAt: 2000-01-23T04:56:07.000+00:00 + containerID: containerID + stopSignal: stopSignal + user: + linux: + uid: 4 + gid: 6 + supplementalGroups: + - 0 + - 0 + - allocatedResourcesStatus: + - name: name + resources: + - resourceID: resourceID + health: health + - resourceID: resourceID + health: health + - name: name + resources: + - resourceID: resourceID + health: health + - resourceID: resourceID + health: health + image: image + imageID: imageID + restartCount: 7 + resources: + claims: + - request: request + name: name + - request: request + name: name + requests: {} + limits: {} + started: true + lastState: + running: + startedAt: 2000-01-23T04:56:07.000+00:00 + waiting: + reason: reason + message: message + terminated: + reason: reason + exitCode: 7 + startedAt: 2000-01-23T04:56:07.000+00:00 + containerID: containerID + message: message + signal: 0 + finishedAt: 2000-01-23T04:56:07.000+00:00 + volumeMounts: + - mountPath: mountPath + name: name + readOnly: true + recursiveReadOnly: recursiveReadOnly + - mountPath: mountPath + name: name + readOnly: true + recursiveReadOnly: recursiveReadOnly + allocatedResources: {} + ready: true + name: name + state: + running: + startedAt: 2000-01-23T04:56:07.000+00:00 + waiting: + reason: reason + message: message + terminated: + reason: reason + exitCode: 7 + startedAt: 2000-01-23T04:56:07.000+00:00 + containerID: containerID + message: message + signal: 0 + finishedAt: 2000-01-23T04:56:07.000+00:00 + containerID: containerID + stopSignal: stopSignal + user: + linux: + uid: 4 + gid: 6 + supplementalGroups: + - 0 + - 0 + hostIPs: + - ip: ip + - ip: ip + resize: resize + startTime: 2000-01-23T04:56:07.000+00:00 + qosClass: qosClass + conditions: + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + observedGeneration: 3 + lastProbeTime: 2000-01-23T04:56:07.000+00:00 + status: status + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + observedGeneration: 3 + lastProbeTime: 2000-01-23T04:56:07.000+00:00 + status: status + initContainerStatuses: + - allocatedResourcesStatus: + - name: name + resources: + - resourceID: resourceID + health: health + - resourceID: resourceID + health: health + - name: name + resources: + - resourceID: resourceID + health: health + - resourceID: resourceID + health: health + image: image + imageID: imageID + restartCount: 7 + resources: + claims: + - request: request + name: name + - request: request + name: name + requests: {} + limits: {} + started: true + lastState: + running: + startedAt: 2000-01-23T04:56:07.000+00:00 + waiting: + reason: reason + message: message + terminated: + reason: reason + exitCode: 7 + startedAt: 2000-01-23T04:56:07.000+00:00 + containerID: containerID + message: message + signal: 0 + finishedAt: 2000-01-23T04:56:07.000+00:00 + volumeMounts: + - mountPath: mountPath + name: name + readOnly: true + recursiveReadOnly: recursiveReadOnly + - mountPath: mountPath + name: name + readOnly: true + recursiveReadOnly: recursiveReadOnly + allocatedResources: {} + ready: true + name: name + state: + running: + startedAt: 2000-01-23T04:56:07.000+00:00 + waiting: + reason: reason + message: message + terminated: + reason: reason + exitCode: 7 + startedAt: 2000-01-23T04:56:07.000+00:00 + containerID: containerID + message: message + signal: 0 + finishedAt: 2000-01-23T04:56:07.000+00:00 + containerID: containerID + stopSignal: stopSignal + user: + linux: + uid: 4 + gid: 6 + supplementalGroups: + - 0 + - 0 + - allocatedResourcesStatus: + - name: name + resources: + - resourceID: resourceID + health: health + - resourceID: resourceID + health: health + - name: name + resources: + - resourceID: resourceID + health: health + - resourceID: resourceID + health: health + image: image + imageID: imageID + restartCount: 7 + resources: + claims: + - request: request + name: name + - request: request + name: name + requests: {} + limits: {} + started: true + lastState: + running: + startedAt: 2000-01-23T04:56:07.000+00:00 + waiting: + reason: reason + message: message + terminated: + reason: reason + exitCode: 7 + startedAt: 2000-01-23T04:56:07.000+00:00 + containerID: containerID + message: message + signal: 0 + finishedAt: 2000-01-23T04:56:07.000+00:00 + volumeMounts: + - mountPath: mountPath + name: name + readOnly: true + recursiveReadOnly: recursiveReadOnly + - mountPath: mountPath + name: name + readOnly: true + recursiveReadOnly: recursiveReadOnly + allocatedResources: {} + ready: true + name: name + state: + running: + startedAt: 2000-01-23T04:56:07.000+00:00 + waiting: + reason: reason + message: message + terminated: + reason: reason + exitCode: 7 + startedAt: 2000-01-23T04:56:07.000+00:00 + containerID: containerID + message: message + signal: 0 + finishedAt: 2000-01-23T04:56:07.000+00:00 + containerID: containerID + stopSignal: stopSignal + user: + linux: + uid: 4 + gid: 6 + supplementalGroups: + - 0 + - 0 + observedGeneration: 8 + properties: + conditions: + description: 'Current service state of pod. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-conditions' + items: + $ref: '#/components/schemas/v1.PodCondition' + type: array + x-kubernetes-patch-strategy: merge + x-kubernetes-list-type: map + x-kubernetes-list-map-keys: + - type + x-kubernetes-patch-merge-key: type + containerStatuses: + description: 'Statuses of containers in this pod. Each container in the + pod should have at most one status in this list, and all statuses should + be for containers in the pod. However this is not enforced. If a status + for a non-existent container is present in the list, or the list has duplicate + names, the behavior of various Kubernetes components is not defined and + those statuses might be ignored. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-and-container-status' + items: + $ref: '#/components/schemas/v1.ContainerStatus' + type: array + x-kubernetes-list-type: atomic + ephemeralContainerStatuses: + description: 'Statuses for any ephemeral containers that have run in this + pod. Each ephemeral container in the pod should have at most one status + in this list, and all statuses should be for containers in the pod. However + this is not enforced. If a status for a non-existent container is present + in the list, or the list has duplicate names, the behavior of various + Kubernetes components is not defined and those statuses might be ignored. + More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-and-container-status' + items: + $ref: '#/components/schemas/v1.ContainerStatus' + type: array + x-kubernetes-list-type: atomic + hostIP: + description: 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 + type: string + hostIPs: + description: 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. + items: + $ref: '#/components/schemas/v1.HostIP' + type: array + x-kubernetes-patch-strategy: merge + x-kubernetes-list-type: atomic + x-kubernetes-patch-merge-key: ip + initContainerStatuses: + description: 'Statuses of init containers in this pod. The most recent successful + non-restartable init container will have ready = true, the most recently + started container will have startTime set. Each init container in the + pod should have at most one status in this list, and all statuses should + be for containers in the pod. However this is not enforced. If a status + for a non-existent container is present in the list, or the list has duplicate + names, the behavior of various Kubernetes components is not defined and + those statuses might be ignored. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#pod-and-container-status' + items: + $ref: '#/components/schemas/v1.ContainerStatus' + type: array + x-kubernetes-list-type: atomic + message: + description: A human readable message indicating details about why the pod + is in this condition. + type: string + nominatedNodeName: + description: 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. + type: string + observedGeneration: + description: If set, this represents the .metadata.generation that the pod + status was set based upon. This is an alpha field. Enable PodObservedGenerationTracking + to be able to use this field. + format: int64 + type: integer + phase: + description: |- + 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 + type: string + podIP: + description: podIP address allocated to the pod. Routable at least within + the cluster. Empty if not yet allocated. + type: string + podIPs: + description: 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. + items: + $ref: '#/components/schemas/v1.PodIP' + type: array + x-kubernetes-patch-strategy: merge + x-kubernetes-list-type: map + x-kubernetes-list-map-keys: + - ip + x-kubernetes-patch-merge-key: ip + qosClass: + description: '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' + type: string + reason: + description: A brief CamelCase message indicating details about why the + pod is in this state. e.g. 'Evicted' + type: string + resize: + description: '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" Deprecated: Resize + status is moved to two pod conditions PodResizePending and PodResizeInProgress. + PodResizePending will track states where the spec has been resized, but + the Kubelet has not yet allocated the resources. PodResizeInProgress will + track in-progress resizes, and should be present whenever allocated resources + != acknowledged resources.' + type: string + resourceClaimStatuses: + description: Status of resource claims. + items: + $ref: '#/components/schemas/v1.PodResourceClaimStatus' + type: array + x-kubernetes-patch-strategy: merge,retainKeys + x-kubernetes-list-type: map + x-kubernetes-list-map-keys: + - name + x-kubernetes-patch-merge-key: name + startTime: + description: 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. + format: date-time + type: string + type: object + v1.PodTemplate: + description: PodTemplate describes a template for creating copies of a predefined + pod. + example: + template: + metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: '{}' + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: '{}' + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + creationTimestamp: 2000-01-23T04:56:07.000+00:00 + name: name + namespace: namespace + spec: + dnsPolicy: dnsPolicy + nodeName: nodeName + terminationGracePeriodSeconds: 9 + dnsConfig: + searches: + - searches + - searches + nameservers: + - nameservers + - nameservers + options: + - name: name + value: value + - name: name + value: value + hostNetwork: true + readinessGates: + - conditionType: conditionType + - conditionType: conditionType + serviceAccountName: serviceAccountName + imagePullSecrets: + - name: name + - name: name + priorityClassName: priorityClassName + hostAliases: + - ip: ip + hostnames: + - hostnames + - hostnames + - ip: ip + hostnames: + - hostnames + - hostnames + securityContext: + seLinuxOptions: + role: role + level: level + type: type + user: user + appArmorProfile: + localhostProfile: localhostProfile + type: type + fsGroup: 7 + fsGroupChangePolicy: fsGroupChangePolicy + seLinuxChangePolicy: seLinuxChangePolicy + runAsGroup: 1 + runAsNonRoot: true + sysctls: + - name: name + value: value + - name: name + value: value + runAsUser: 4 + seccompProfile: + localhostProfile: localhostProfile + type: type + windowsOptions: + gmsaCredentialSpec: gmsaCredentialSpec + runAsUserName: runAsUserName + hostProcess: true + gmsaCredentialSpecName: gmsaCredentialSpecName + supplementalGroups: + - 5 + - 5 + supplementalGroupsPolicy: supplementalGroupsPolicy + preemptionPolicy: preemptionPolicy + nodeSelector: + key: nodeSelector + hostname: hostname + runtimeClassName: runtimeClassName + tolerations: + - effect: effect + tolerationSeconds: 9 + value: value key: key operator: operator - - values: - - values - - values + - effect: effect + tolerationSeconds: 9 + value: value key: key operator: operator - matchLabels: - key: matchLabels - minDomains: 6 - topologyKey: topologyKey - matchLabelKeys: - - matchLabelKeys - - matchLabelKeys - volumes: - - quobyte: - volume: volume - registry: registry - readOnly: true - user: user - tenant: tenant - group: group - azureFile: - secretName: secretName - readOnly: true - shareName: shareName - flexVolume: - driver: driver - options: - key: options - secretRef: + automountServiceAccountToken: true + schedulingGates: + - name: name + - name: name + schedulerName: schedulerName + activeDeadlineSeconds: 0 + os: name: name - readOnly: true - fsType: fsType - ephemeral: - volumeClaimTemplate: - metadata: - generation: 6 - finalizers: - - finalizers - - finalizers - resourceVersion: resourceVersion - annotations: - key: annotations - generateName: generateName - deletionTimestamp: 2000-01-23T04:56:07.000+00:00 - labels: - key: labels - ownerReferences: - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - selfLink: selfLink - deletionGracePeriodSeconds: 0 - uid: uid - managedFields: - - apiVersion: apiVersion - fieldsV1: '{}' - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - - apiVersion: apiVersion - fieldsV1: '{}' - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - creationTimestamp: 2000-01-23T04:56:07.000+00:00 - name: name - namespace: namespace - spec: - storageClassName: storageClassName - dataSourceRef: - apiGroup: apiGroup - kind: kind - name: name - namespace: namespace - volumeName: volumeName - resources: - claims: - - name: name - - name: name - requests: {} - limits: {} - selector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - accessModes: - - accessModes - - accessModes - dataSource: - apiGroup: apiGroup - kind: kind - name: name - volumeMode: volumeMode - secret: - secretName: secretName - defaultMode: 6 - optional: true - items: - - mode: 6 - path: path - key: key - - mode: 6 - path: path - key: key - projected: - sources: - - downwardAPI: - items: - - mode: 6 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - mode: 6 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - configMap: - name: name - optional: true - items: - - mode: 6 - path: path - key: key - - mode: 6 - path: path - key: key - secret: - name: name - optional: true - items: - - mode: 6 - path: path + setHostnameAsFQDN: true + enableServiceLinks: true + overhead: {} + hostIPC: true + topologySpreadConstraints: + - nodeTaintsPolicy: nodeTaintsPolicy + whenUnsatisfiable: whenUnsatisfiable + maxSkew: 6 + nodeAffinityPolicy: nodeAffinityPolicy + labelSelector: + matchExpressions: + - values: + - values + - values key: key - - mode: 6 - path: path + operator: operator + - values: + - values + - values key: key - serviceAccountToken: - path: path - audience: audience - expirationSeconds: 5 - - downwardAPI: - items: - - mode: 6 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - mode: 6 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - configMap: - name: name - optional: true - items: - - mode: 6 - path: path + operator: operator + matchLabels: + key: matchLabels + minDomains: 8 + topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + - nodeTaintsPolicy: nodeTaintsPolicy + whenUnsatisfiable: whenUnsatisfiable + maxSkew: 6 + nodeAffinityPolicy: nodeAffinityPolicy + labelSelector: + matchExpressions: + - values: + - values + - values key: key - - mode: 6 - path: path + operator: operator + - values: + - values + - values key: key + operator: operator + matchLabels: + key: matchLabels + minDomains: 8 + topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + volumes: + - quobyte: + volume: volume + registry: registry + readOnly: true + user: user + tenant: tenant + group: group + azureFile: + secretName: secretName + readOnly: true + shareName: shareName + flexVolume: + driver: driver + options: + key: options + secretRef: + name: name + readOnly: true + fsType: fsType + ephemeral: + volumeClaimTemplate: + metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: '{}' + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: '{}' + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + creationTimestamp: 2000-01-23T04:56:07.000+00:00 + name: name + namespace: namespace + spec: + storageClassName: storageClassName + dataSourceRef: + apiGroup: apiGroup + kind: kind + name: name + namespace: namespace + volumeName: volumeName + volumeAttributesClassName: volumeAttributesClassName + resources: + requests: {} + limits: {} + selector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + accessModes: + - accessModes + - accessModes + dataSource: + apiGroup: apiGroup + kind: kind + name: name + volumeMode: volumeMode secret: - name: name + secretName: secretName + defaultMode: 3 optional: true items: - - mode: 6 + - mode: 3 path: path key: key - - mode: 6 + - mode: 3 path: path key: key - serviceAccountToken: + projected: + sources: + - downwardAPI: + items: + - mode: 1 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - mode: 1 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + configMap: + name: name + optional: true + items: + - mode: 3 + path: path + key: key + - mode: 3 + path: path + key: key + secret: + name: name + optional: true + items: + - mode: 3 + path: path + key: key + - mode: 3 + path: path + key: key + serviceAccountToken: + path: path + audience: audience + expirationSeconds: 6 + clusterTrustBundle: + path: path + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + name: name + optional: true + signerName: signerName + - downwardAPI: + items: + - mode: 1 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - mode: 1 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + configMap: + name: name + optional: true + items: + - mode: 3 + path: path + key: key + - mode: 3 + path: path + key: key + secret: + name: name + optional: true + items: + - mode: 3 + path: path + key: key + - mode: 3 + path: path + key: key + serviceAccountToken: + path: path + audience: audience + expirationSeconds: 6 + clusterTrustBundle: + path: path + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + name: name + optional: true + signerName: signerName + defaultMode: 5 + cephfs: path: path - audience: audience - expirationSeconds: 5 - defaultMode: 6 - cephfs: - path: path - secretRef: - name: name - secretFile: secretFile - readOnly: true - user: user - monitors: - - monitors - - monitors - scaleIO: - system: system - protectionDomain: protectionDomain - sslEnabled: true - storageMode: storageMode - volumeName: volumeName - secretRef: - name: name - readOnly: true - fsType: fsType - storagePool: storagePool - gateway: gateway - emptyDir: - sizeLimit: sizeLimit - medium: medium - glusterfs: - path: path - endpoints: endpoints - readOnly: true - gcePersistentDisk: - partition: 2 - readOnly: true - pdName: pdName - fsType: fsType - photonPersistentDisk: - pdID: pdID - fsType: fsType - azureDisk: - diskName: diskName - kind: kind - readOnly: true - cachingMode: cachingMode - diskURI: diskURI - fsType: fsType - cinder: - secretRef: - name: name - volumeID: volumeID - readOnly: true - fsType: fsType - downwardAPI: - defaultMode: 3 - items: - - mode: 6 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - mode: 6 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - awsElasticBlockStore: - partition: 8 - volumeID: volumeID - readOnly: true - fsType: fsType - flocker: - datasetName: datasetName - datasetUUID: datasetUUID - iscsi: - chapAuthSession: true - iscsiInterface: iscsiInterface - lun: 6 - chapAuthDiscovery: true - iqn: iqn - portals: - - portals - - portals - secretRef: - name: name - initiatorName: initiatorName - readOnly: true - fsType: fsType - targetPortal: targetPortal - rbd: - image: image - pool: pool - secretRef: - name: name - readOnly: true - fsType: fsType - keyring: keyring - user: user - monitors: - - monitors - - monitors - configMap: - defaultMode: 9 - name: name - optional: true - items: - - mode: 6 - path: path - key: key - - mode: 6 - path: path - key: key - storageos: - volumeNamespace: volumeNamespace - volumeName: volumeName - secretRef: - name: name - readOnly: true - fsType: fsType - csi: - driver: driver - nodePublishSecretRef: - name: name - readOnly: true - fsType: fsType - volumeAttributes: - key: volumeAttributes - name: name - nfs: - path: path - server: server - readOnly: true - persistentVolumeClaim: - claimName: claimName - readOnly: true - gitRepo: - repository: repository - directory: directory - revision: revision - portworxVolume: - volumeID: volumeID - readOnly: true - fsType: fsType - vsphereVolume: - storagePolicyName: storagePolicyName - storagePolicyID: storagePolicyID - volumePath: volumePath - fsType: fsType - fc: - lun: 1 - targetWWNs: - - targetWWNs - - targetWWNs - readOnly: true - wwids: - - wwids - - wwids - fsType: fsType - hostPath: - path: path - type: type - - quobyte: - volume: volume - registry: registry - readOnly: true - user: user - tenant: tenant - group: group - azureFile: - secretName: secretName - readOnly: true - shareName: shareName - flexVolume: - driver: driver - options: - key: options - secretRef: - name: name - readOnly: true - fsType: fsType - ephemeral: - volumeClaimTemplate: - metadata: - generation: 6 - finalizers: - - finalizers - - finalizers - resourceVersion: resourceVersion - annotations: - key: annotations - generateName: generateName - deletionTimestamp: 2000-01-23T04:56:07.000+00:00 - labels: - key: labels - ownerReferences: - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - selfLink: selfLink - deletionGracePeriodSeconds: 0 - uid: uid - managedFields: - - apiVersion: apiVersion - fieldsV1: '{}' - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - - apiVersion: apiVersion - fieldsV1: '{}' - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - creationTimestamp: 2000-01-23T04:56:07.000+00:00 - name: name - namespace: namespace - spec: - storageClassName: storageClassName - dataSourceRef: - apiGroup: apiGroup - kind: kind + secretRef: name: name - namespace: namespace + secretFile: secretFile + readOnly: true + user: user + monitors: + - monitors + - monitors + scaleIO: + system: system + protectionDomain: protectionDomain + sslEnabled: true + storageMode: storageMode volumeName: volumeName - resources: - claims: - - name: name - - name: name - requests: {} - limits: {} - selector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - accessModes: - - accessModes - - accessModes - dataSource: - apiGroup: apiGroup - kind: kind + secretRef: name: name - volumeMode: volumeMode - secret: - secretName: secretName - defaultMode: 6 - optional: true - items: - - mode: 6 - path: path - key: key - - mode: 6 - path: path - key: key - projected: - sources: - - downwardAPI: + readOnly: true + fsType: fsType + storagePool: storagePool + gateway: gateway + emptyDir: + sizeLimit: sizeLimit + medium: medium + glusterfs: + path: path + endpoints: endpoints + readOnly: true + gcePersistentDisk: + partition: 6 + readOnly: true + pdName: pdName + fsType: fsType + image: + reference: reference + pullPolicy: pullPolicy + photonPersistentDisk: + pdID: pdID + fsType: fsType + azureDisk: + diskName: diskName + kind: kind + readOnly: true + cachingMode: cachingMode + diskURI: diskURI + fsType: fsType + cinder: + secretRef: + name: name + volumeID: volumeID + readOnly: true + fsType: fsType + downwardAPI: + defaultMode: 6 items: - - mode: 6 + - mode: 1 path: path resourceFieldRef: divisor: divisor @@ -172765,7 +208237,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 6 + - mode: 1 path: path resourceFieldRef: divisor: divisor @@ -172774,33 +208246,399 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + awsElasticBlockStore: + partition: 9 + volumeID: volumeID + readOnly: true + fsType: fsType + flocker: + datasetName: datasetName + datasetUUID: datasetUUID + iscsi: + chapAuthSession: true + iscsiInterface: iscsiInterface + lun: 6 + chapAuthDiscovery: true + iqn: iqn + portals: + - portals + - portals + secretRef: + name: name + initiatorName: initiatorName + readOnly: true + fsType: fsType + targetPortal: targetPortal + rbd: + image: image + pool: pool + secretRef: + name: name + readOnly: true + fsType: fsType + keyring: keyring + user: user + monitors: + - monitors + - monitors configMap: + defaultMode: 6 name: name optional: true items: - - mode: 6 + - mode: 3 path: path key: key - - mode: 6 + - mode: 3 path: path key: key + storageos: + volumeNamespace: volumeNamespace + volumeName: volumeName + secretRef: + name: name + readOnly: true + fsType: fsType + csi: + driver: driver + nodePublishSecretRef: + name: name + readOnly: true + fsType: fsType + volumeAttributes: + key: volumeAttributes + name: name + nfs: + path: path + server: server + readOnly: true + persistentVolumeClaim: + claimName: claimName + readOnly: true + gitRepo: + repository: repository + directory: directory + revision: revision + portworxVolume: + volumeID: volumeID + readOnly: true + fsType: fsType + vsphereVolume: + storagePolicyName: storagePolicyName + storagePolicyID: storagePolicyID + volumePath: volumePath + fsType: fsType + fc: + lun: 2 + targetWWNs: + - targetWWNs + - targetWWNs + readOnly: true + wwids: + - wwids + - wwids + fsType: fsType + hostPath: + path: path + type: type + - quobyte: + volume: volume + registry: registry + readOnly: true + user: user + tenant: tenant + group: group + azureFile: + secretName: secretName + readOnly: true + shareName: shareName + flexVolume: + driver: driver + options: + key: options + secretRef: + name: name + readOnly: true + fsType: fsType + ephemeral: + volumeClaimTemplate: + metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: '{}' + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: '{}' + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + creationTimestamp: 2000-01-23T04:56:07.000+00:00 + name: name + namespace: namespace + spec: + storageClassName: storageClassName + dataSourceRef: + apiGroup: apiGroup + kind: kind + name: name + namespace: namespace + volumeName: volumeName + volumeAttributesClassName: volumeAttributesClassName + resources: + requests: {} + limits: {} + selector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + accessModes: + - accessModes + - accessModes + dataSource: + apiGroup: apiGroup + kind: kind + name: name + volumeMode: volumeMode secret: - name: name + secretName: secretName + defaultMode: 3 optional: true items: - - mode: 6 + - mode: 3 path: path key: key - - mode: 6 + - mode: 3 path: path key: key - serviceAccountToken: + projected: + sources: + - downwardAPI: + items: + - mode: 1 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - mode: 1 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + configMap: + name: name + optional: true + items: + - mode: 3 + path: path + key: key + - mode: 3 + path: path + key: key + secret: + name: name + optional: true + items: + - mode: 3 + path: path + key: key + - mode: 3 + path: path + key: key + serviceAccountToken: + path: path + audience: audience + expirationSeconds: 6 + clusterTrustBundle: + path: path + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + name: name + optional: true + signerName: signerName + - downwardAPI: + items: + - mode: 1 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - mode: 1 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + configMap: + name: name + optional: true + items: + - mode: 3 + path: path + key: key + - mode: 3 + path: path + key: key + secret: + name: name + optional: true + items: + - mode: 3 + path: path + key: key + - mode: 3 + path: path + key: key + serviceAccountToken: + path: path + audience: audience + expirationSeconds: 6 + clusterTrustBundle: + path: path + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + name: name + optional: true + signerName: signerName + defaultMode: 5 + cephfs: path: path - audience: audience - expirationSeconds: 5 - - downwardAPI: + secretRef: + name: name + secretFile: secretFile + readOnly: true + user: user + monitors: + - monitors + - monitors + scaleIO: + system: system + protectionDomain: protectionDomain + sslEnabled: true + storageMode: storageMode + volumeName: volumeName + secretRef: + name: name + readOnly: true + fsType: fsType + storagePool: storagePool + gateway: gateway + emptyDir: + sizeLimit: sizeLimit + medium: medium + glusterfs: + path: path + endpoints: endpoints + readOnly: true + gcePersistentDisk: + partition: 6 + readOnly: true + pdName: pdName + fsType: fsType + image: + reference: reference + pullPolicy: pullPolicy + photonPersistentDisk: + pdID: pdID + fsType: fsType + azureDisk: + diskName: diskName + kind: kind + readOnly: true + cachingMode: cachingMode + diskURI: diskURI + fsType: fsType + cinder: + secretRef: + name: name + volumeID: volumeID + readOnly: true + fsType: fsType + downwardAPI: + defaultMode: 6 items: - - mode: 6 + - mode: 1 path: path resourceFieldRef: divisor: divisor @@ -172809,7 +208647,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 6 + - mode: 1 path: path resourceFieldRef: divisor: divisor @@ -172818,2041 +208656,2366 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - configMap: - name: name - optional: true - items: - - mode: 6 - path: path - key: key - - mode: 6 - path: path - key: key - secret: - name: name - optional: true - items: - - mode: 6 - path: path - key: key - - mode: 6 - path: path - key: key - serviceAccountToken: - path: path - audience: audience - expirationSeconds: 5 - defaultMode: 6 - cephfs: - path: path - secretRef: - name: name - secretFile: secretFile - readOnly: true - user: user - monitors: - - monitors - - monitors - scaleIO: - system: system - protectionDomain: protectionDomain - sslEnabled: true - storageMode: storageMode - volumeName: volumeName - secretRef: - name: name - readOnly: true - fsType: fsType - storagePool: storagePool - gateway: gateway - emptyDir: - sizeLimit: sizeLimit - medium: medium - glusterfs: - path: path - endpoints: endpoints - readOnly: true - gcePersistentDisk: - partition: 2 - readOnly: true - pdName: pdName - fsType: fsType - photonPersistentDisk: - pdID: pdID - fsType: fsType - azureDisk: - diskName: diskName - kind: kind - readOnly: true - cachingMode: cachingMode - diskURI: diskURI - fsType: fsType - cinder: - secretRef: - name: name - volumeID: volumeID - readOnly: true - fsType: fsType - downwardAPI: - defaultMode: 3 - items: - - mode: 6 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - mode: 6 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - awsElasticBlockStore: - partition: 8 - volumeID: volumeID - readOnly: true - fsType: fsType - flocker: - datasetName: datasetName - datasetUUID: datasetUUID - iscsi: - chapAuthSession: true - iscsiInterface: iscsiInterface - lun: 6 - chapAuthDiscovery: true - iqn: iqn - portals: - - portals - - portals - secretRef: - name: name - initiatorName: initiatorName - readOnly: true - fsType: fsType - targetPortal: targetPortal - rbd: - image: image - pool: pool - secretRef: - name: name - readOnly: true - fsType: fsType - keyring: keyring - user: user - monitors: - - monitors - - monitors - configMap: - defaultMode: 9 - name: name - optional: true - items: - - mode: 6 - path: path - key: key - - mode: 6 - path: path - key: key - storageos: - volumeNamespace: volumeNamespace - volumeName: volumeName - secretRef: - name: name - readOnly: true - fsType: fsType - csi: - driver: driver - nodePublishSecretRef: - name: name - readOnly: true - fsType: fsType - volumeAttributes: - key: volumeAttributes - name: name - nfs: - path: path - server: server - readOnly: true - persistentVolumeClaim: - claimName: claimName - readOnly: true - gitRepo: - repository: repository - directory: directory - revision: revision - portworxVolume: - volumeID: volumeID - readOnly: true - fsType: fsType - vsphereVolume: - storagePolicyName: storagePolicyName - storagePolicyID: storagePolicyID - volumePath: volumePath - fsType: fsType - fc: - lun: 1 - targetWWNs: - - targetWWNs - - targetWWNs - readOnly: true - wwids: - - wwids - - wwids - fsType: fsType - hostPath: - path: path - type: type - ephemeralContainers: - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name - stdin: true - terminationMessagePolicy: terminationMessagePolicy - securityContext: - privileged: true - runAsUser: 1 - capabilities: - add: - - add - - add - drop: - - drop - - drop - seLinuxOptions: - role: role - level: level - type: type - user: user - seccompProfile: - localhostProfile: localhostProfile - type: type - windowsOptions: - gmsaCredentialSpec: gmsaCredentialSpec - runAsUserName: runAsUserName - hostProcess: true - gmsaCredentialSpecName: gmsaCredentialSpecName - procMount: procMount - allowPrivilegeEscalation: true - runAsGroup: 1 - runAsNonRoot: true - readOnlyRootFilesystem: true - startupProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - ports: - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 4 - hostPort: 7 - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 4 - hostPort: 7 - volumeMounts: - - mountPath: mountPath - mountPropagation: mountPropagation - name: name - readOnly: true - subPath: subPath - subPathExpr: subPathExpr - - mountPath: mountPath - mountPropagation: mountPropagation - name: name - readOnly: true - subPath: subPath - subPathExpr: subPathExpr - lifecycle: - postStart: - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - preStop: - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - readinessProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - resizePolicy: - - resourceName: resourceName - restartPolicy: restartPolicy - - resourceName: resourceName - restartPolicy: restartPolicy - envFrom: - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - image: image - imagePullPolicy: imagePullPolicy - livenessProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - targetContainerName: targetContainerName - terminationMessagePath: terminationMessagePath - workingDir: workingDir - resources: - claims: - - name: name - - name: name - requests: {} - limits: {} - env: - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - restartPolicy: restartPolicy - command: - - command - - command - args: - - args - - args - name: name - tty: true - stdinOnce: true - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name - stdin: true - terminationMessagePolicy: terminationMessagePolicy - securityContext: - privileged: true - runAsUser: 1 - capabilities: - add: - - add - - add - drop: - - drop - - drop - seLinuxOptions: - role: role - level: level - type: type - user: user - seccompProfile: - localhostProfile: localhostProfile - type: type - windowsOptions: - gmsaCredentialSpec: gmsaCredentialSpec - runAsUserName: runAsUserName - hostProcess: true - gmsaCredentialSpecName: gmsaCredentialSpecName - procMount: procMount - allowPrivilegeEscalation: true - runAsGroup: 1 - runAsNonRoot: true - readOnlyRootFilesystem: true - startupProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - ports: - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 4 - hostPort: 7 - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 4 - hostPort: 7 - volumeMounts: - - mountPath: mountPath - mountPropagation: mountPropagation - name: name - readOnly: true - subPath: subPath - subPathExpr: subPathExpr - - mountPath: mountPath - mountPropagation: mountPropagation - name: name - readOnly: true - subPath: subPath - subPathExpr: subPathExpr - lifecycle: - postStart: - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - preStop: - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - readinessProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - resizePolicy: - - resourceName: resourceName - restartPolicy: restartPolicy - - resourceName: resourceName - restartPolicy: restartPolicy - envFrom: - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - image: image - imagePullPolicy: imagePullPolicy - livenessProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - targetContainerName: targetContainerName - terminationMessagePath: terminationMessagePath - workingDir: workingDir - resources: - claims: - - name: name - - name: name - requests: {} - limits: {} - env: - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - restartPolicy: restartPolicy - command: - - command - - command - args: - - args - - args - name: name - tty: true - stdinOnce: true - serviceAccount: serviceAccount - priority: 1 - restartPolicy: restartPolicy - shareProcessNamespace: true - hostUsers: true - resourceClaims: - - name: name - source: - resourceClaimName: resourceClaimName - resourceClaimTemplateName: resourceClaimTemplateName - - name: name - source: - resourceClaimName: resourceClaimName - resourceClaimTemplateName: resourceClaimTemplateName - subdomain: subdomain - containers: - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name - image: image - imagePullPolicy: imagePullPolicy - livenessProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - stdin: true - terminationMessagePolicy: terminationMessagePolicy - terminationMessagePath: terminationMessagePath - workingDir: workingDir - resources: - claims: - - name: name - - name: name - requests: {} - limits: {} - securityContext: - privileged: true - runAsUser: 1 - capabilities: - add: - - add - - add - drop: - - drop - - drop - seLinuxOptions: - role: role - level: level - type: type - user: user - seccompProfile: - localhostProfile: localhostProfile - type: type - windowsOptions: - gmsaCredentialSpec: gmsaCredentialSpec - runAsUserName: runAsUserName - hostProcess: true - gmsaCredentialSpecName: gmsaCredentialSpecName - procMount: procMount - allowPrivilegeEscalation: true - runAsGroup: 1 - runAsNonRoot: true - readOnlyRootFilesystem: true - startupProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - env: - - name: name - value: value - valueFrom: - secretKeyRef: + awsElasticBlockStore: + partition: 9 + volumeID: volumeID + readOnly: true + fsType: fsType + flocker: + datasetName: datasetName + datasetUUID: datasetUUID + iscsi: + chapAuthSession: true + iscsiInterface: iscsiInterface + lun: 6 + chapAuthDiscovery: true + iqn: iqn + portals: + - portals + - portals + secretRef: + name: name + initiatorName: initiatorName + readOnly: true + fsType: fsType + targetPortal: targetPortal + rbd: + image: image + pool: pool + secretRef: + name: name + readOnly: true + fsType: fsType + keyring: keyring + user: user + monitors: + - monitors + - monitors + configMap: + defaultMode: 6 name: name optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: + items: + - mode: 3 + path: path + key: key + - mode: 3 + path: path + key: key + storageos: + volumeNamespace: volumeNamespace + volumeName: volumeName + secretRef: + name: name + readOnly: true + fsType: fsType + csi: + driver: driver + nodePublishSecretRef: + name: name + readOnly: true + fsType: fsType + volumeAttributes: + key: volumeAttributes + name: name + nfs: + path: path + server: server + readOnly: true + persistentVolumeClaim: + claimName: claimName + readOnly: true + gitRepo: + repository: repository + directory: directory + revision: revision + portworxVolume: + volumeID: volumeID + readOnly: true + fsType: fsType + vsphereVolume: + storagePolicyName: storagePolicyName + storagePolicyID: storagePolicyID + volumePath: volumePath + fsType: fsType + fc: + lun: 2 + targetWWNs: + - targetWWNs + - targetWWNs + readOnly: true + wwids: + - wwids + - wwids + fsType: fsType + hostPath: + path: path + type: type + resources: + claims: + - request: request name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - name: name - value: value - valueFrom: - secretKeyRef: + - request: request name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: + requests: {} + limits: {} + ephemeralContainers: + - volumeDevices: + - devicePath: devicePath name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - ports: - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 4 - hostPort: 7 - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 4 - hostPort: 7 - restartPolicy: restartPolicy - command: - - command - - command - volumeMounts: - - mountPath: mountPath - mountPropagation: mountPropagation - name: name - readOnly: true - subPath: subPath - subPathExpr: subPathExpr - - mountPath: mountPath - mountPropagation: mountPropagation - name: name - readOnly: true - subPath: subPath - subPathExpr: subPathExpr - args: - - args - - args - lifecycle: - postStart: - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - preStop: - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - name: name - tty: true - readinessProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - resizePolicy: - - resourceName: resourceName - restartPolicy: restartPolicy - - resourceName: resourceName - restartPolicy: restartPolicy - stdinOnce: true - envFrom: - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name - image: image - imagePullPolicy: imagePullPolicy - livenessProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - stdin: true - terminationMessagePolicy: terminationMessagePolicy - terminationMessagePath: terminationMessagePath - workingDir: workingDir - resources: - claims: - - name: name - - name: name - requests: {} - limits: {} - securityContext: - privileged: true - runAsUser: 1 - capabilities: - add: - - add - - add - drop: - - drop - - drop - seLinuxOptions: - role: role - level: level - type: type - user: user - seccompProfile: - localhostProfile: localhostProfile - type: type - windowsOptions: - gmsaCredentialSpec: gmsaCredentialSpec - runAsUserName: runAsUserName - hostProcess: true - gmsaCredentialSpecName: gmsaCredentialSpecName - procMount: procMount - allowPrivilegeEscalation: true - runAsGroup: 1 - runAsNonRoot: true - readOnlyRootFilesystem: true - startupProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - env: - - name: name - value: value - valueFrom: - secretKeyRef: + - devicePath: devicePath name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: + stdin: true + terminationMessagePolicy: terminationMessagePolicy + securityContext: + privileged: true + runAsUser: 1 + capabilities: + add: + - add + - add + drop: + - drop + - drop + seLinuxOptions: + role: role + level: level + type: type + user: user + appArmorProfile: + localhostProfile: localhostProfile + type: type + seccompProfile: + localhostProfile: localhostProfile + type: type + windowsOptions: + gmsaCredentialSpec: gmsaCredentialSpec + runAsUserName: runAsUserName + hostProcess: true + gmsaCredentialSpecName: gmsaCredentialSpecName + procMount: procMount + allowPrivilegeEscalation: true + runAsGroup: 1 + runAsNonRoot: true + readOnlyRootFilesystem: true + startupProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: port + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + ports: + - protocol: protocol + hostIP: hostIP name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - name: name - value: value - valueFrom: - secretKeyRef: + containerPort: 7 + hostPort: 1 + - protocol: protocol + hostIP: hostIP name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: + containerPort: 7 + hostPort: 1 + volumeMounts: + - mountPath: mountPath + mountPropagation: mountPropagation name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - ports: - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 4 - hostPort: 7 - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 4 - hostPort: 7 - restartPolicy: restartPolicy - command: - - command - - command - volumeMounts: - - mountPath: mountPath - mountPropagation: mountPropagation - name: name - readOnly: true - subPath: subPath - subPathExpr: subPathExpr - - mountPath: mountPath - mountPropagation: mountPropagation - name: name - readOnly: true - subPath: subPath - subPathExpr: subPathExpr - args: - - args - - args - lifecycle: - postStart: - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - preStop: - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - name: name - tty: true - readinessProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - resizePolicy: - - resourceName: resourceName - restartPolicy: restartPolicy - - resourceName: resourceName - restartPolicy: restartPolicy - stdinOnce: true - envFrom: - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - initContainers: - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name - image: image - imagePullPolicy: imagePullPolicy - livenessProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: + readOnly: true + subPath: subPath + recursiveReadOnly: recursiveReadOnly + subPathExpr: subPathExpr + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + recursiveReadOnly: recursiveReadOnly + subPathExpr: subPathExpr + lifecycle: + postStart: + sleep: + seconds: 5 + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + preStop: + sleep: + seconds: 5 + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + stopSignal: stopSignal + readinessProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: port + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + resizePolicy: + - resourceName: resourceName + restartPolicy: restartPolicy + - resourceName: resourceName + restartPolicy: restartPolicy + envFrom: + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + image: image + imagePullPolicy: imagePullPolicy + livenessProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: port + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + targetContainerName: targetContainerName + terminationMessagePath: terminationMessagePath + workingDir: workingDir + resources: + claims: + - request: request + name: name + - request: request + name: name + requests: {} + limits: {} + env: - name: name value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath - name: name value: value - stdin: true - terminationMessagePolicy: terminationMessagePolicy - terminationMessagePath: terminationMessagePath - workingDir: workingDir - resources: - claims: - - name: name - - name: name - requests: {} - limits: {} - securityContext: - privileged: true - runAsUser: 1 - capabilities: - add: - - add - - add - drop: - - drop - - drop - seLinuxOptions: - role: role - level: level - type: type - user: user - seccompProfile: - localhostProfile: localhostProfile - type: type - windowsOptions: - gmsaCredentialSpec: gmsaCredentialSpec - runAsUserName: runAsUserName - hostProcess: true - gmsaCredentialSpecName: gmsaCredentialSpecName - procMount: procMount - allowPrivilegeEscalation: true - runAsGroup: 1 - runAsNonRoot: true - readOnlyRootFilesystem: true - startupProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + restartPolicy: restartPolicy command: - command - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - env: - - name: name - value: value - valueFrom: - secretKeyRef: + args: + - args + - args + name: name + tty: true + stdinOnce: true + - volumeDevices: + - devicePath: devicePath name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: + - devicePath: devicePath name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - name: name - value: value - valueFrom: - secretKeyRef: + stdin: true + terminationMessagePolicy: terminationMessagePolicy + securityContext: + privileged: true + runAsUser: 1 + capabilities: + add: + - add + - add + drop: + - drop + - drop + seLinuxOptions: + role: role + level: level + type: type + user: user + appArmorProfile: + localhostProfile: localhostProfile + type: type + seccompProfile: + localhostProfile: localhostProfile + type: type + windowsOptions: + gmsaCredentialSpec: gmsaCredentialSpec + runAsUserName: runAsUserName + hostProcess: true + gmsaCredentialSpecName: gmsaCredentialSpecName + procMount: procMount + allowPrivilegeEscalation: true + runAsGroup: 1 + runAsNonRoot: true + readOnlyRootFilesystem: true + startupProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: port + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + ports: + - protocol: protocol + hostIP: hostIP name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: + containerPort: 7 + hostPort: 1 + - protocol: protocol + hostIP: hostIP name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - ports: - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 4 - hostPort: 7 - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 4 - hostPort: 7 - restartPolicy: restartPolicy - command: - - command - - command - volumeMounts: - - mountPath: mountPath - mountPropagation: mountPropagation - name: name - readOnly: true - subPath: subPath - subPathExpr: subPathExpr - - mountPath: mountPath - mountPropagation: mountPropagation - name: name - readOnly: true - subPath: subPath - subPathExpr: subPathExpr - args: - - args - - args - lifecycle: - postStart: - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - preStop: - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - name: name - tty: true - readinessProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: + containerPort: 7 + hostPort: 1 + volumeMounts: + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + recursiveReadOnly: recursiveReadOnly + subPathExpr: subPathExpr + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + recursiveReadOnly: recursiveReadOnly + subPathExpr: subPathExpr + lifecycle: + postStart: + sleep: + seconds: 5 + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + preStop: + sleep: + seconds: 5 + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + stopSignal: stopSignal + readinessProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: port + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + resizePolicy: + - resourceName: resourceName + restartPolicy: restartPolicy + - resourceName: resourceName + restartPolicy: restartPolicy + envFrom: + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + image: image + imagePullPolicy: imagePullPolicy + livenessProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: port + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + targetContainerName: targetContainerName + terminationMessagePath: terminationMessagePath + workingDir: workingDir + resources: + claims: + - request: request + name: name + - request: request + name: name + requests: {} + limits: {} + env: - name: name value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath - name: name value: value - resizePolicy: - - resourceName: resourceName - restartPolicy: restartPolicy - - resourceName: resourceName - restartPolicy: restartPolicy - stdinOnce: true - envFrom: - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name - image: image - imagePullPolicy: imagePullPolicy - livenessProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + restartPolicy: restartPolicy command: - command - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: + args: + - args + - args + name: name + tty: true + stdinOnce: true + serviceAccount: serviceAccount + priority: 6 + restartPolicy: restartPolicy + shareProcessNamespace: true + hostUsers: true + resourceClaims: + - resourceClaimName: resourceClaimName + name: name + resourceClaimTemplateName: resourceClaimTemplateName + - resourceClaimName: resourceClaimName + name: name + resourceClaimTemplateName: resourceClaimTemplateName + subdomain: subdomain + containers: + - volumeDevices: + - devicePath: devicePath + name: name + - devicePath: devicePath + name: name + image: image + imagePullPolicy: imagePullPolicy + livenessProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: port + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + stdin: true + terminationMessagePolicy: terminationMessagePolicy + terminationMessagePath: terminationMessagePath + workingDir: workingDir + resources: + claims: + - request: request + name: name + - request: request + name: name + requests: {} + limits: {} + securityContext: + privileged: true + runAsUser: 1 + capabilities: + add: + - add + - add + drop: + - drop + - drop + seLinuxOptions: + role: role + level: level + type: type + user: user + appArmorProfile: + localhostProfile: localhostProfile + type: type + seccompProfile: + localhostProfile: localhostProfile + type: type + windowsOptions: + gmsaCredentialSpec: gmsaCredentialSpec + runAsUserName: runAsUserName + hostProcess: true + gmsaCredentialSpecName: gmsaCredentialSpecName + procMount: procMount + allowPrivilegeEscalation: true + runAsGroup: 1 + runAsNonRoot: true + readOnlyRootFilesystem: true + startupProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: port + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + env: - name: name value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath - name: name value: value - stdin: true - terminationMessagePolicy: terminationMessagePolicy - terminationMessagePath: terminationMessagePath - workingDir: workingDir - resources: - claims: - - name: name - - name: name - requests: {} - limits: {} - securityContext: - privileged: true - runAsUser: 1 - capabilities: - add: - - add - - add - drop: - - drop - - drop - seLinuxOptions: - role: role - level: level - type: type - user: user - seccompProfile: - localhostProfile: localhostProfile - type: type - windowsOptions: - gmsaCredentialSpec: gmsaCredentialSpec - runAsUserName: runAsUserName - hostProcess: true - gmsaCredentialSpecName: gmsaCredentialSpecName - procMount: procMount - allowPrivilegeEscalation: true - runAsGroup: 1 - runAsNonRoot: true - readOnlyRootFilesystem: true - startupProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + ports: + - protocol: protocol + hostIP: hostIP + name: name + containerPort: 7 + hostPort: 1 + - protocol: protocol + hostIP: hostIP + name: name + containerPort: 7 + hostPort: 1 + restartPolicy: restartPolicy command: - command - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: + volumeMounts: + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + recursiveReadOnly: recursiveReadOnly + subPathExpr: subPathExpr + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + recursiveReadOnly: recursiveReadOnly + subPathExpr: subPathExpr + args: + - args + - args + lifecycle: + postStart: + sleep: + seconds: 5 + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + preStop: + sleep: + seconds: 5 + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + stopSignal: stopSignal + name: name + tty: true + readinessProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: port + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + resizePolicy: + - resourceName: resourceName + restartPolicy: restartPolicy + - resourceName: resourceName + restartPolicy: restartPolicy + stdinOnce: true + envFrom: + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + - volumeDevices: + - devicePath: devicePath + name: name + - devicePath: devicePath + name: name + image: image + imagePullPolicy: imagePullPolicy + livenessProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: port + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + stdin: true + terminationMessagePolicy: terminationMessagePolicy + terminationMessagePath: terminationMessagePath + workingDir: workingDir + resources: + claims: + - request: request + name: name + - request: request + name: name + requests: {} + limits: {} + securityContext: + privileged: true + runAsUser: 1 + capabilities: + add: + - add + - add + drop: + - drop + - drop + seLinuxOptions: + role: role + level: level + type: type + user: user + appArmorProfile: + localhostProfile: localhostProfile + type: type + seccompProfile: + localhostProfile: localhostProfile + type: type + windowsOptions: + gmsaCredentialSpec: gmsaCredentialSpec + runAsUserName: runAsUserName + hostProcess: true + gmsaCredentialSpecName: gmsaCredentialSpecName + procMount: procMount + allowPrivilegeEscalation: true + runAsGroup: 1 + runAsNonRoot: true + readOnlyRootFilesystem: true + startupProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: port + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + env: - name: name value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath - name: name value: value - env: - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - name: name - value: value - valueFrom: - secretKeyRef: + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + ports: + - protocol: protocol + hostIP: hostIP name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: + containerPort: 7 + hostPort: 1 + - protocol: protocol + hostIP: hostIP name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - ports: - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 4 - hostPort: 7 - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 4 - hostPort: 7 - restartPolicy: restartPolicy - command: - - command - - command - volumeMounts: - - mountPath: mountPath - mountPropagation: mountPropagation - name: name - readOnly: true - subPath: subPath - subPathExpr: subPathExpr - - mountPath: mountPath - mountPropagation: mountPropagation - name: name - readOnly: true - subPath: subPath - subPathExpr: subPathExpr - args: - - args - - args - lifecycle: - postStart: - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - preStop: - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - name: name - tty: true - readinessProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: + containerPort: 7 + hostPort: 1 + restartPolicy: restartPolicy command: - command - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - resizePolicy: - - resourceName: resourceName - restartPolicy: restartPolicy - - resourceName: resourceName - restartPolicy: restartPolicy - stdinOnce: true - envFrom: - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: + volumeMounts: + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + recursiveReadOnly: recursiveReadOnly + subPathExpr: subPathExpr + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + recursiveReadOnly: recursiveReadOnly + subPathExpr: subPathExpr + args: + - args + - args + lifecycle: + postStart: + sleep: + seconds: 5 + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + preStop: + sleep: + seconds: 5 + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + stopSignal: stopSignal name: name - optional: true - affinity: - nodeAffinity: - requiredDuringSchedulingIgnoredDuringExecution: - nodeSelectorTerms: - - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchFields: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchFields: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - preferredDuringSchedulingIgnoredDuringExecution: - - preference: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchFields: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - weight: 6 - - preference: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchFields: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - weight: 6 - podAffinity: - requiredDuringSchedulingIgnoredDuringExecution: - - labelSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - topologyKey: topologyKey - namespaces: - - namespaces - - namespaces - - labelSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - topologyKey: topologyKey - namespaces: - - namespaces - - namespaces - preferredDuringSchedulingIgnoredDuringExecution: - - podAffinityTerm: - labelSelector: - matchExpressions: - - values: - - values - - values + tty: true + readinessProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: port + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + resizePolicy: + - resourceName: resourceName + restartPolicy: restartPolicy + - resourceName: resourceName + restartPolicy: restartPolicy + stdinOnce: true + envFrom: + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + initContainers: + - volumeDevices: + - devicePath: devicePath + name: name + - devicePath: devicePath + name: name + image: image + imagePullPolicy: imagePullPolicy + livenessProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: port + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + stdin: true + terminationMessagePolicy: terminationMessagePolicy + terminationMessagePath: terminationMessagePath + workingDir: workingDir + resources: + claims: + - request: request + name: name + - request: request + name: name + requests: {} + limits: {} + securityContext: + privileged: true + runAsUser: 1 + capabilities: + add: + - add + - add + drop: + - drop + - drop + seLinuxOptions: + role: role + level: level + type: type + user: user + appArmorProfile: + localhostProfile: localhostProfile + type: type + seccompProfile: + localhostProfile: localhostProfile + type: type + windowsOptions: + gmsaCredentialSpec: gmsaCredentialSpec + runAsUserName: runAsUserName + hostProcess: true + gmsaCredentialSpecName: gmsaCredentialSpecName + procMount: procMount + allowPrivilegeEscalation: true + runAsGroup: 1 + runAsNonRoot: true + readOnlyRootFilesystem: true + startupProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: port + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + env: + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true key: key - operator: operator - - values: - - values - - values + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true key: key - operator: operator - matchLabels: - key: matchLabels - namespaceSelector: - matchExpressions: - - values: - - values - - values + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true key: key - operator: operator - - values: - - values - - values + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true key: key - operator: operator - matchLabels: - key: matchLabels - topologyKey: topologyKey - namespaces: - - namespaces - - namespaces - weight: 1 - - podAffinityTerm: - labelSelector: - matchExpressions: - - values: - - values - - values + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + ports: + - protocol: protocol + hostIP: hostIP + name: name + containerPort: 7 + hostPort: 1 + - protocol: protocol + hostIP: hostIP + name: name + containerPort: 7 + hostPort: 1 + restartPolicy: restartPolicy + command: + - command + - command + volumeMounts: + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + recursiveReadOnly: recursiveReadOnly + subPathExpr: subPathExpr + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + recursiveReadOnly: recursiveReadOnly + subPathExpr: subPathExpr + args: + - args + - args + lifecycle: + postStart: + sleep: + seconds: 5 + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + preStop: + sleep: + seconds: 5 + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + stopSignal: stopSignal + name: name + tty: true + readinessProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: port + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + resizePolicy: + - resourceName: resourceName + restartPolicy: restartPolicy + - resourceName: resourceName + restartPolicy: restartPolicy + stdinOnce: true + envFrom: + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + - volumeDevices: + - devicePath: devicePath + name: name + - devicePath: devicePath + name: name + image: image + imagePullPolicy: imagePullPolicy + livenessProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: port + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + stdin: true + terminationMessagePolicy: terminationMessagePolicy + terminationMessagePath: terminationMessagePath + workingDir: workingDir + resources: + claims: + - request: request + name: name + - request: request + name: name + requests: {} + limits: {} + securityContext: + privileged: true + runAsUser: 1 + capabilities: + add: + - add + - add + drop: + - drop + - drop + seLinuxOptions: + role: role + level: level + type: type + user: user + appArmorProfile: + localhostProfile: localhostProfile + type: type + seccompProfile: + localhostProfile: localhostProfile + type: type + windowsOptions: + gmsaCredentialSpec: gmsaCredentialSpec + runAsUserName: runAsUserName + hostProcess: true + gmsaCredentialSpecName: gmsaCredentialSpecName + procMount: procMount + allowPrivilegeEscalation: true + runAsGroup: 1 + runAsNonRoot: true + readOnlyRootFilesystem: true + startupProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: port + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + env: + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true key: key - operator: operator - - values: - - values - - values + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true key: key - operator: operator - matchLabels: - key: matchLabels - namespaceSelector: - matchExpressions: - - values: - - values - - values + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true key: key - operator: operator - - values: - - values - - values + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true key: key - operator: operator - matchLabels: - key: matchLabels - topologyKey: topologyKey - namespaces: - - namespaces - - namespaces - weight: 1 - podAntiAffinity: - requiredDuringSchedulingIgnoredDuringExecution: - - labelSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - topologyKey: topologyKey - namespaces: - - namespaces - - namespaces - - labelSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - topologyKey: topologyKey - namespaces: - - namespaces - - namespaces - preferredDuringSchedulingIgnoredDuringExecution: - - podAffinityTerm: + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + ports: + - protocol: protocol + hostIP: hostIP + name: name + containerPort: 7 + hostPort: 1 + - protocol: protocol + hostIP: hostIP + name: name + containerPort: 7 + hostPort: 1 + restartPolicy: restartPolicy + command: + - command + - command + volumeMounts: + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + recursiveReadOnly: recursiveReadOnly + subPathExpr: subPathExpr + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + recursiveReadOnly: recursiveReadOnly + subPathExpr: subPathExpr + args: + - args + - args + lifecycle: + postStart: + sleep: + seconds: 5 + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + preStop: + sleep: + seconds: 5 + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + stopSignal: stopSignal + name: name + tty: true + readinessProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: port + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + resizePolicy: + - resourceName: resourceName + restartPolicy: restartPolicy + - resourceName: resourceName + restartPolicy: restartPolicy + stdinOnce: true + envFrom: + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + affinity: + nodeAffinity: + requiredDuringSchedulingIgnoredDuringExecution: + nodeSelectorTerms: + - matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchFields: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + - matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchFields: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + preferredDuringSchedulingIgnoredDuringExecution: + - preference: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchFields: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + weight: 6 + - preference: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchFields: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + weight: 6 + podAffinity: + requiredDuringSchedulingIgnoredDuringExecution: + - labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + mismatchLabelKeys: + - mismatchLabelKeys + - mismatchLabelKeys + namespaces: + - namespaces + - namespaces + - labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + mismatchLabelKeys: + - mismatchLabelKeys + - mismatchLabelKeys + namespaces: + - namespaces + - namespaces + preferredDuringSchedulingIgnoredDuringExecution: + - podAffinityTerm: + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + mismatchLabelKeys: + - mismatchLabelKeys + - mismatchLabelKeys + namespaces: + - namespaces + - namespaces + weight: 1 + - podAffinityTerm: + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + mismatchLabelKeys: + - mismatchLabelKeys + - mismatchLabelKeys + namespaces: + - namespaces + - namespaces + weight: 1 + podAntiAffinity: + requiredDuringSchedulingIgnoredDuringExecution: + - labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + mismatchLabelKeys: + - mismatchLabelKeys + - mismatchLabelKeys + namespaces: + - namespaces + - namespaces + - labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + mismatchLabelKeys: + - mismatchLabelKeys + - mismatchLabelKeys + namespaces: + - namespaces + - namespaces + preferredDuringSchedulingIgnoredDuringExecution: + - podAffinityTerm: + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + mismatchLabelKeys: + - mismatchLabelKeys + - mismatchLabelKeys + namespaces: + - namespaces + - namespaces + weight: 1 + - podAffinityTerm: + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + mismatchLabelKeys: + - mismatchLabelKeys + - mismatchLabelKeys + namespaces: + - namespaces + - namespaces + weight: 1 + hostPID: true + metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: '{}' + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: '{}' + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + creationTimestamp: 2000-01-23T04:56:07.000+00:00 + name: name + namespace: namespace + apiVersion: apiVersion + kind: kind + properties: + apiVersion: + description: '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' + type: string + kind: + description: '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' + type: string + metadata: + $ref: '#/components/schemas/v1.ObjectMeta' + template: + $ref: '#/components/schemas/v1.PodTemplateSpec' + type: object + x-kubernetes-group-version-kind: + - group: "" + kind: PodTemplate + version: v1 + x-implements: + - io.kubernetes.client.common.KubernetesObject + v1.PodTemplateList: + description: PodTemplateList is a list of PodTemplates. + example: + metadata: + remainingItemCount: 1 + continue: continue + resourceVersion: resourceVersion + selfLink: selfLink + apiVersion: apiVersion + kind: kind + items: + - template: + metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: '{}' + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: '{}' + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + creationTimestamp: 2000-01-23T04:56:07.000+00:00 + name: name + namespace: namespace + spec: + dnsPolicy: dnsPolicy + nodeName: nodeName + terminationGracePeriodSeconds: 9 + dnsConfig: + searches: + - searches + - searches + nameservers: + - nameservers + - nameservers + options: + - name: name + value: value + - name: name + value: value + hostNetwork: true + readinessGates: + - conditionType: conditionType + - conditionType: conditionType + serviceAccountName: serviceAccountName + imagePullSecrets: + - name: name + - name: name + priorityClassName: priorityClassName + hostAliases: + - ip: ip + hostnames: + - hostnames + - hostnames + - ip: ip + hostnames: + - hostnames + - hostnames + securityContext: + seLinuxOptions: + role: role + level: level + type: type + user: user + appArmorProfile: + localhostProfile: localhostProfile + type: type + fsGroup: 7 + fsGroupChangePolicy: fsGroupChangePolicy + seLinuxChangePolicy: seLinuxChangePolicy + runAsGroup: 1 + runAsNonRoot: true + sysctls: + - name: name + value: value + - name: name + value: value + runAsUser: 4 + seccompProfile: + localhostProfile: localhostProfile + type: type + windowsOptions: + gmsaCredentialSpec: gmsaCredentialSpec + runAsUserName: runAsUserName + hostProcess: true + gmsaCredentialSpecName: gmsaCredentialSpecName + supplementalGroups: + - 5 + - 5 + supplementalGroupsPolicy: supplementalGroupsPolicy + preemptionPolicy: preemptionPolicy + nodeSelector: + key: nodeSelector + hostname: hostname + runtimeClassName: runtimeClassName + tolerations: + - effect: effect + tolerationSeconds: 9 + value: value + key: key + operator: operator + - effect: effect + tolerationSeconds: 9 + value: value + key: key + operator: operator + automountServiceAccountToken: true + schedulingGates: + - name: name + - name: name + schedulerName: schedulerName + activeDeadlineSeconds: 0 + os: + name: name + setHostnameAsFQDN: true + enableServiceLinks: true + overhead: {} + hostIPC: true + topologySpreadConstraints: + - nodeTaintsPolicy: nodeTaintsPolicy + whenUnsatisfiable: whenUnsatisfiable + maxSkew: 6 + nodeAffinityPolicy: nodeAffinityPolicy labelSelector: matchExpressions: - values: @@ -174867,26 +211030,15 @@ components: operator: operator matchLabels: key: matchLabels - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels + minDomains: 8 topologyKey: topologyKey - namespaces: - - namespaces - - namespaces - weight: 1 - - podAffinityTerm: + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + - nodeTaintsPolicy: nodeTaintsPolicy + whenUnsatisfiable: whenUnsatisfiable + maxSkew: 6 + nodeAffinityPolicy: nodeAffinityPolicy labelSelector: matchExpressions: - values: @@ -174897,1743 +211049,1044 @@ components: - values: - values - values - key: key - operator: operator - matchLabels: - key: matchLabels - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - topologyKey: topologyKey - namespaces: - - namespaces - - namespaces - weight: 1 - hostPID: true - properties: - activeDeadlineSeconds: - description: 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. - format: int64 - type: integer - affinity: - $ref: '#/components/schemas/v1.Affinity' - automountServiceAccountToken: - description: AutomountServiceAccountToken indicates whether a service account - token should be automatically mounted. - type: boolean - containers: - description: 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. - items: - $ref: '#/components/schemas/v1.Container' - type: array - x-kubernetes-patch-strategy: merge - x-kubernetes-patch-merge-key: name - dnsConfig: - $ref: '#/components/schemas/v1.PodDNSConfig' - dnsPolicy: - description: 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'. - type: string - enableServiceLinks: - description: 'EnableServiceLinks indicates whether information about services - should be injected into pod''s environment variables, matching the syntax - of Docker links. Optional: Defaults to true.' - type: boolean - ephemeralContainers: - description: 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. - items: - $ref: '#/components/schemas/v1.EphemeralContainer' - type: array - x-kubernetes-patch-strategy: merge - x-kubernetes-patch-merge-key: name - hostAliases: - description: HostAliases is an optional list of hosts and IPs that will - be injected into the pod's hosts file if specified. This is only valid - for non-hostNetwork pods. - items: - $ref: '#/components/schemas/v1.HostAlias' - type: array - x-kubernetes-patch-strategy: merge - x-kubernetes-patch-merge-key: ip - hostIPC: - description: 'Use the host''s ipc namespace. Optional: Default to false.' - type: boolean - hostNetwork: - description: 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. - type: boolean - hostPID: - description: 'Use the host''s pid namespace. Optional: Default to false.' - type: boolean - hostUsers: - description: '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.' - type: boolean - hostname: - description: Specifies the hostname of the Pod If not specified, the pod's - hostname will be set to a system-defined value. - type: string - imagePullSecrets: - description: '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' - items: - $ref: '#/components/schemas/v1.LocalObjectReference' - type: array - x-kubernetes-patch-strategy: merge - x-kubernetes-patch-merge-key: name - initContainers: - description: '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/' - items: - $ref: '#/components/schemas/v1.Container' - type: array - x-kubernetes-patch-strategy: merge - x-kubernetes-patch-merge-key: name - nodeName: - description: NodeName is a request to schedule this pod onto a specific - node. If it is non-empty, the scheduler simply schedules this pod onto - that node, assuming that it fits resource requirements. - type: string - nodeSelector: - additionalProperties: - type: string - description: '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/' - type: object - x-kubernetes-map-type: atomic - os: - $ref: '#/components/schemas/v1.PodOS' - overhead: - additionalProperties: - $ref: '#/components/schemas/resource.Quantity' - description: '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' - type: object - preemptionPolicy: - description: PreemptionPolicy is the Policy for preempting pods with lower - priority. One of Never, PreemptLowerPriority. Defaults to PreemptLowerPriority - if unset. - type: string - priority: - description: 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. - format: int32 - type: integer - priorityClassName: - description: 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. - type: string - readinessGates: - description: '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' - items: - $ref: '#/components/schemas/v1.PodReadinessGate' - type: array - resourceClaims: - description: |- - 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. - items: - $ref: '#/components/schemas/v1.PodResourceClaim' - type: array - x-kubernetes-patch-strategy: merge,retainKeys - x-kubernetes-list-type: map - x-kubernetes-list-map-keys: - - name - x-kubernetes-patch-merge-key: name - restartPolicy: - description: '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' - type: string - runtimeClassName: - description: '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' - type: string - schedulerName: - description: If specified, the pod will be dispatched by specified scheduler. - If not specified, the pod will be dispatched by default scheduler. - type: string - schedulingGates: - description: |- - 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. - - This is a beta feature enabled by the PodSchedulingReadiness feature gate. - items: - $ref: '#/components/schemas/v1.PodSchedulingGate' - type: array - x-kubernetes-patch-strategy: merge - x-kubernetes-list-type: map - x-kubernetes-list-map-keys: - - name - x-kubernetes-patch-merge-key: name - securityContext: - $ref: '#/components/schemas/v1.PodSecurityContext' - serviceAccount: - description: 'DeprecatedServiceAccount is a depreciated alias for ServiceAccountName. - Deprecated: Use serviceAccountName instead.' - type: string - serviceAccountName: - description: '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/' - type: string - setHostnameAsFQDN: - description: 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. - type: boolean - shareProcessNamespace: - description: '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.' - type: boolean - subdomain: - description: If specified, the fully qualified Pod hostname will be "...svc.". If not specified, the pod will not have - a domainname at all. - type: string - terminationGracePeriodSeconds: - description: 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. - format: int64 - type: integer - tolerations: - description: If specified, the pod's tolerations. - items: - $ref: '#/components/schemas/v1.Toleration' - type: array - topologySpreadConstraints: - description: 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. - items: - $ref: '#/components/schemas/v1.TopologySpreadConstraint' - type: array - x-kubernetes-patch-strategy: merge - x-kubernetes-list-type: map - x-kubernetes-list-map-keys: - - topologyKey - - whenUnsatisfiable - x-kubernetes-patch-merge-key: topologyKey - volumes: - description: 'List of volumes that can be mounted by containers belonging - to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes' - items: - $ref: '#/components/schemas/v1.Volume' - type: array - x-kubernetes-patch-strategy: merge,retainKeys - x-kubernetes-patch-merge-key: name - required: - - containers - type: object - v1.PodStatus: - 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. - example: - phase: phase - resourceClaimStatuses: - - resourceClaimName: resourceClaimName - name: name - - resourceClaimName: resourceClaimName - name: name - reason: reason - containerStatuses: - - allocatedResources: {} - image: image - imageID: imageID - restartCount: 7 - ready: true - name: name - resources: - claims: - - name: name - - name: name - requests: {} - limits: {} - started: true - state: - running: - startedAt: 2000-01-23T04:56:07.000+00:00 - waiting: - reason: reason - message: message - terminated: - reason: reason - exitCode: 3 - startedAt: 2000-01-23T04:56:07.000+00:00 - containerID: containerID - message: message - signal: 3 - finishedAt: 2000-01-23T04:56:07.000+00:00 - containerID: containerID - lastState: - running: - startedAt: 2000-01-23T04:56:07.000+00:00 - waiting: - reason: reason - message: message - terminated: - reason: reason - exitCode: 3 - startedAt: 2000-01-23T04:56:07.000+00:00 - containerID: containerID - message: message - signal: 3 - finishedAt: 2000-01-23T04:56:07.000+00:00 - - allocatedResources: {} - image: image - imageID: imageID - restartCount: 7 - ready: true - name: name - resources: - claims: - - name: name - - name: name - requests: {} - limits: {} - started: true - state: - running: - startedAt: 2000-01-23T04:56:07.000+00:00 - waiting: - reason: reason - message: message - terminated: - reason: reason - exitCode: 3 - startedAt: 2000-01-23T04:56:07.000+00:00 - containerID: containerID - message: message - signal: 3 - finishedAt: 2000-01-23T04:56:07.000+00:00 - containerID: containerID - lastState: - running: - startedAt: 2000-01-23T04:56:07.000+00:00 - waiting: - reason: reason - message: message - terminated: - reason: reason - exitCode: 3 - startedAt: 2000-01-23T04:56:07.000+00:00 - containerID: containerID - message: message - signal: 3 - finishedAt: 2000-01-23T04:56:07.000+00:00 - hostIP: hostIP - nominatedNodeName: nominatedNodeName - message: message - podIPs: - - ip: ip - - ip: ip - podIP: podIP - ephemeralContainerStatuses: - - allocatedResources: {} - image: image - imageID: imageID - restartCount: 7 - ready: true - name: name - resources: - claims: - - name: name - - name: name - requests: {} - limits: {} - started: true - state: - running: - startedAt: 2000-01-23T04:56:07.000+00:00 - waiting: - reason: reason - message: message - terminated: - reason: reason - exitCode: 3 - startedAt: 2000-01-23T04:56:07.000+00:00 - containerID: containerID - message: message - signal: 3 - finishedAt: 2000-01-23T04:56:07.000+00:00 - containerID: containerID - lastState: - running: - startedAt: 2000-01-23T04:56:07.000+00:00 - waiting: - reason: reason - message: message - terminated: - reason: reason - exitCode: 3 - startedAt: 2000-01-23T04:56:07.000+00:00 - containerID: containerID - message: message - signal: 3 - finishedAt: 2000-01-23T04:56:07.000+00:00 - - allocatedResources: {} - image: image - imageID: imageID - restartCount: 7 - ready: true - name: name - resources: - claims: - - name: name - - name: name - requests: {} - limits: {} - started: true - state: - running: - startedAt: 2000-01-23T04:56:07.000+00:00 - waiting: - reason: reason - message: message - terminated: - reason: reason - exitCode: 3 - startedAt: 2000-01-23T04:56:07.000+00:00 - containerID: containerID - message: message - signal: 3 - finishedAt: 2000-01-23T04:56:07.000+00:00 - containerID: containerID - lastState: - running: - startedAt: 2000-01-23T04:56:07.000+00:00 - waiting: - reason: reason - message: message - terminated: - reason: reason - exitCode: 3 - startedAt: 2000-01-23T04:56:07.000+00:00 - containerID: containerID - message: message - signal: 3 - finishedAt: 2000-01-23T04:56:07.000+00:00 - hostIPs: - - ip: ip - - ip: ip - resize: resize - startTime: 2000-01-23T04:56:07.000+00:00 - qosClass: qosClass - conditions: - - reason: reason - lastTransitionTime: 2000-01-23T04:56:07.000+00:00 - message: message - type: type - lastProbeTime: 2000-01-23T04:56:07.000+00:00 - status: status - - reason: reason - lastTransitionTime: 2000-01-23T04:56:07.000+00:00 - message: message - type: type - lastProbeTime: 2000-01-23T04:56:07.000+00:00 - status: status - initContainerStatuses: - - allocatedResources: {} - image: image - imageID: imageID - restartCount: 7 - ready: true - name: name - resources: - claims: - - name: name - - name: name - requests: {} - limits: {} - started: true - state: - running: - startedAt: 2000-01-23T04:56:07.000+00:00 - waiting: - reason: reason - message: message - terminated: - reason: reason - exitCode: 3 - startedAt: 2000-01-23T04:56:07.000+00:00 - containerID: containerID - message: message - signal: 3 - finishedAt: 2000-01-23T04:56:07.000+00:00 - containerID: containerID - lastState: - running: - startedAt: 2000-01-23T04:56:07.000+00:00 - waiting: - reason: reason - message: message - terminated: - reason: reason - exitCode: 3 - startedAt: 2000-01-23T04:56:07.000+00:00 - containerID: containerID - message: message - signal: 3 - finishedAt: 2000-01-23T04:56:07.000+00:00 - - allocatedResources: {} - image: image - imageID: imageID - restartCount: 7 - ready: true - name: name - resources: - claims: - - name: name - - name: name - requests: {} - limits: {} - started: true - state: - running: - startedAt: 2000-01-23T04:56:07.000+00:00 - waiting: - reason: reason - message: message - terminated: - reason: reason - exitCode: 3 - startedAt: 2000-01-23T04:56:07.000+00:00 - containerID: containerID - message: message - signal: 3 - finishedAt: 2000-01-23T04:56:07.000+00:00 - containerID: containerID - lastState: - running: - startedAt: 2000-01-23T04:56:07.000+00:00 - waiting: - reason: reason - message: message - terminated: - reason: reason - exitCode: 3 - startedAt: 2000-01-23T04:56:07.000+00:00 - containerID: containerID - message: message - signal: 3 - finishedAt: 2000-01-23T04:56:07.000+00:00 - properties: - conditions: - description: 'Current service state of pod. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-conditions' - items: - $ref: '#/components/schemas/v1.PodCondition' - type: array - x-kubernetes-patch-strategy: merge - x-kubernetes-patch-merge-key: type - containerStatuses: - description: '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' - items: - $ref: '#/components/schemas/v1.ContainerStatus' - type: array - ephemeralContainerStatuses: - description: Status for any ephemeral containers that have run in this pod. - items: - $ref: '#/components/schemas/v1.ContainerStatus' - type: array - hostIP: - description: 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 - type: string - hostIPs: - description: 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. - items: - $ref: '#/components/schemas/v1.HostIP' - type: array - x-kubernetes-patch-strategy: merge - x-kubernetes-list-type: atomic - x-kubernetes-patch-merge-key: ip - initContainerStatuses: - description: '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' - items: - $ref: '#/components/schemas/v1.ContainerStatus' - type: array - message: - description: A human readable message indicating details about why the pod - is in this condition. - type: string - nominatedNodeName: - description: 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. - type: string - phase: - description: |- - 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 - type: string - podIP: - description: podIP address allocated to the pod. Routable at least within - the cluster. Empty if not yet allocated. - type: string - podIPs: - description: 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. - items: - $ref: '#/components/schemas/v1.PodIP' - type: array - x-kubernetes-patch-strategy: merge - x-kubernetes-patch-merge-key: ip - qosClass: - description: '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' - type: string - reason: - description: A brief CamelCase message indicating details about why the - pod is in this state. e.g. 'Evicted' - type: string - resize: - description: 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" - type: string - resourceClaimStatuses: - description: Status of resource claims. - items: - $ref: '#/components/schemas/v1.PodResourceClaimStatus' - type: array - x-kubernetes-patch-strategy: merge,retainKeys - x-kubernetes-list-type: map - x-kubernetes-list-map-keys: - - name - x-kubernetes-patch-merge-key: name - startTime: - description: 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. - format: date-time - type: string - type: object - v1.PodTemplate: - description: PodTemplate describes a template for creating copies of a predefined - pod. - example: - template: - metadata: - generation: 6 - finalizers: - - finalizers - - finalizers - resourceVersion: resourceVersion - annotations: - key: annotations - generateName: generateName - deletionTimestamp: 2000-01-23T04:56:07.000+00:00 - labels: - key: labels - ownerReferences: - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - selfLink: selfLink - deletionGracePeriodSeconds: 0 - uid: uid - managedFields: - - apiVersion: apiVersion - fieldsV1: '{}' - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - - apiVersion: apiVersion - fieldsV1: '{}' - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - creationTimestamp: 2000-01-23T04:56:07.000+00:00 - name: name - namespace: namespace - spec: - dnsPolicy: dnsPolicy - nodeName: nodeName - terminationGracePeriodSeconds: 5 - dnsConfig: - searches: - - searches - - searches - nameservers: - - nameservers - - nameservers - options: - - name: name - value: value - - name: name - value: value - hostNetwork: true - readinessGates: - - conditionType: conditionType - - conditionType: conditionType - serviceAccountName: serviceAccountName - imagePullSecrets: - - name: name - - name: name - priorityClassName: priorityClassName - hostAliases: - - ip: ip - hostnames: - - hostnames - - hostnames - - ip: ip - hostnames: - - hostnames - - hostnames - securityContext: - runAsUser: 1 - seLinuxOptions: - role: role - level: level - type: type - user: user - fsGroup: 6 - seccompProfile: - localhostProfile: localhostProfile - type: type - windowsOptions: - gmsaCredentialSpec: gmsaCredentialSpec - runAsUserName: runAsUserName - hostProcess: true - gmsaCredentialSpecName: gmsaCredentialSpecName - fsGroupChangePolicy: fsGroupChangePolicy - supplementalGroups: - - 4 - - 4 - runAsGroup: 7 - runAsNonRoot: true - sysctls: - - name: name - value: value - - name: name - value: value - preemptionPolicy: preemptionPolicy - nodeSelector: - key: nodeSelector - hostname: hostname - runtimeClassName: runtimeClassName - tolerations: - - effect: effect - tolerationSeconds: 9 - value: value - key: key - operator: operator - - effect: effect - tolerationSeconds: 9 - value: value - key: key - operator: operator - automountServiceAccountToken: true - schedulingGates: - - name: name - - name: name - schedulerName: schedulerName - activeDeadlineSeconds: 0 - os: - name: name - setHostnameAsFQDN: true - enableServiceLinks: true - overhead: {} - hostIPC: true - topologySpreadConstraints: - - nodeTaintsPolicy: nodeTaintsPolicy - whenUnsatisfiable: whenUnsatisfiable - maxSkew: 9 - nodeAffinityPolicy: nodeAffinityPolicy - labelSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - minDomains: 6 - topologyKey: topologyKey - matchLabelKeys: - - matchLabelKeys - - matchLabelKeys - - nodeTaintsPolicy: nodeTaintsPolicy - whenUnsatisfiable: whenUnsatisfiable - maxSkew: 9 - nodeAffinityPolicy: nodeAffinityPolicy - labelSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - minDomains: 6 - topologyKey: topologyKey - matchLabelKeys: - - matchLabelKeys - - matchLabelKeys - volumes: - - quobyte: - volume: volume - registry: registry - readOnly: true - user: user - tenant: tenant - group: group - azureFile: - secretName: secretName - readOnly: true - shareName: shareName - flexVolume: - driver: driver - options: - key: options - secretRef: - name: name - readOnly: true - fsType: fsType - ephemeral: - volumeClaimTemplate: - metadata: - generation: 6 - finalizers: - - finalizers - - finalizers - resourceVersion: resourceVersion - annotations: - key: annotations - generateName: generateName - deletionTimestamp: 2000-01-23T04:56:07.000+00:00 - labels: - key: labels - ownerReferences: - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - selfLink: selfLink - deletionGracePeriodSeconds: 0 - uid: uid - managedFields: - - apiVersion: apiVersion - fieldsV1: '{}' - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - - apiVersion: apiVersion - fieldsV1: '{}' - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - creationTimestamp: 2000-01-23T04:56:07.000+00:00 + key: key + operator: operator + matchLabels: + key: matchLabels + minDomains: 8 + topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + volumes: + - quobyte: + volume: volume + registry: registry + readOnly: true + user: user + tenant: tenant + group: group + azureFile: + secretName: secretName + readOnly: true + shareName: shareName + flexVolume: + driver: driver + options: + key: options + secretRef: name: name - namespace: namespace - spec: - storageClassName: storageClassName - dataSourceRef: - apiGroup: apiGroup - kind: kind + readOnly: true + fsType: fsType + ephemeral: + volumeClaimTemplate: + metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: '{}' + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: '{}' + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + creationTimestamp: 2000-01-23T04:56:07.000+00:00 name: name namespace: namespace - volumeName: volumeName - resources: - claims: - - name: name - - name: name - requests: {} - limits: {} - selector: - matchExpressions: - - values: - - values - - values + spec: + storageClassName: storageClassName + dataSourceRef: + apiGroup: apiGroup + kind: kind + name: name + namespace: namespace + volumeName: volumeName + volumeAttributesClassName: volumeAttributesClassName + resources: + requests: {} + limits: {} + selector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + accessModes: + - accessModes + - accessModes + dataSource: + apiGroup: apiGroup + kind: kind + name: name + volumeMode: volumeMode + secret: + secretName: secretName + defaultMode: 3 + optional: true + items: + - mode: 3 + path: path + key: key + - mode: 3 + path: path + key: key + projected: + sources: + - downwardAPI: + items: + - mode: 1 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - mode: 1 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + configMap: + name: name + optional: true + items: + - mode: 3 + path: path key: key - operator: operator - - values: - - values - - values + - mode: 3 + path: path key: key - operator: operator - matchLabels: - key: matchLabels - accessModes: - - accessModes - - accessModes - dataSource: - apiGroup: apiGroup - kind: kind + secret: name: name - volumeMode: volumeMode - secret: - secretName: secretName - defaultMode: 6 - optional: true - items: - - mode: 6 - path: path - key: key - - mode: 6 - path: path - key: key - projected: - sources: - - downwardAPI: - items: - - mode: 6 + optional: true + items: + - mode: 3 + path: path + key: key + - mode: 3 + path: path + key: key + serviceAccountToken: path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - mode: 6 + audience: audience + expirationSeconds: 6 + clusterTrustBundle: path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - configMap: - name: name - optional: true - items: - - mode: 6 + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + name: name + optional: true + signerName: signerName + - downwardAPI: + items: + - mode: 1 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - mode: 1 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + configMap: + name: name + optional: true + items: + - mode: 3 + path: path + key: key + - mode: 3 + path: path + key: key + secret: + name: name + optional: true + items: + - mode: 3 + path: path + key: key + - mode: 3 + path: path + key: key + serviceAccountToken: path: path - key: key - - mode: 6 + audience: audience + expirationSeconds: 6 + clusterTrustBundle: path: path - key: key - secret: + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + name: name + optional: true + signerName: signerName + defaultMode: 5 + cephfs: + path: path + secretRef: name: name - optional: true - items: - - mode: 6 - path: path - key: key - - mode: 6 - path: path - key: key - serviceAccountToken: + secretFile: secretFile + readOnly: true + user: user + monitors: + - monitors + - monitors + scaleIO: + system: system + protectionDomain: protectionDomain + sslEnabled: true + storageMode: storageMode + volumeName: volumeName + secretRef: + name: name + readOnly: true + fsType: fsType + storagePool: storagePool + gateway: gateway + emptyDir: + sizeLimit: sizeLimit + medium: medium + glusterfs: + path: path + endpoints: endpoints + readOnly: true + gcePersistentDisk: + partition: 6 + readOnly: true + pdName: pdName + fsType: fsType + image: + reference: reference + pullPolicy: pullPolicy + photonPersistentDisk: + pdID: pdID + fsType: fsType + azureDisk: + diskName: diskName + kind: kind + readOnly: true + cachingMode: cachingMode + diskURI: diskURI + fsType: fsType + cinder: + secretRef: + name: name + volumeID: volumeID + readOnly: true + fsType: fsType + downwardAPI: + defaultMode: 6 + items: + - mode: 1 path: path - audience: audience - expirationSeconds: 5 - - downwardAPI: - items: - - mode: 6 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - mode: 1 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + awsElasticBlockStore: + partition: 9 + volumeID: volumeID + readOnly: true + fsType: fsType + flocker: + datasetName: datasetName + datasetUUID: datasetUUID + iscsi: + chapAuthSession: true + iscsiInterface: iscsiInterface + lun: 6 + chapAuthDiscovery: true + iqn: iqn + portals: + - portals + - portals + secretRef: + name: name + initiatorName: initiatorName + readOnly: true + fsType: fsType + targetPortal: targetPortal + rbd: + image: image + pool: pool + secretRef: + name: name + readOnly: true + fsType: fsType + keyring: keyring + user: user + monitors: + - monitors + - monitors + configMap: + defaultMode: 6 + name: name + optional: true + items: + - mode: 3 + path: path + key: key + - mode: 3 + path: path + key: key + storageos: + volumeNamespace: volumeNamespace + volumeName: volumeName + secretRef: + name: name + readOnly: true + fsType: fsType + csi: + driver: driver + nodePublishSecretRef: + name: name + readOnly: true + fsType: fsType + volumeAttributes: + key: volumeAttributes + name: name + nfs: + path: path + server: server + readOnly: true + persistentVolumeClaim: + claimName: claimName + readOnly: true + gitRepo: + repository: repository + directory: directory + revision: revision + portworxVolume: + volumeID: volumeID + readOnly: true + fsType: fsType + vsphereVolume: + storagePolicyName: storagePolicyName + storagePolicyID: storagePolicyID + volumePath: volumePath + fsType: fsType + fc: + lun: 2 + targetWWNs: + - targetWWNs + - targetWWNs + readOnly: true + wwids: + - wwids + - wwids + fsType: fsType + hostPath: + path: path + type: type + - quobyte: + volume: volume + registry: registry + readOnly: true + user: user + tenant: tenant + group: group + azureFile: + secretName: secretName + readOnly: true + shareName: shareName + flexVolume: + driver: driver + options: + key: options + secretRef: + name: name + readOnly: true + fsType: fsType + ephemeral: + volumeClaimTemplate: + metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true apiVersion: apiVersion - fieldPath: fieldPath - - mode: 6 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: + kind: kind + name: name + blockOwnerDeletion: true + - uid: uid + controller: true apiVersion: apiVersion - fieldPath: fieldPath - configMap: - name: name - optional: true - items: - - mode: 6 + kind: kind + name: name + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: '{}' + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: '{}' + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + creationTimestamp: 2000-01-23T04:56:07.000+00:00 + name: name + namespace: namespace + spec: + storageClassName: storageClassName + dataSourceRef: + apiGroup: apiGroup + kind: kind + name: name + namespace: namespace + volumeName: volumeName + volumeAttributesClassName: volumeAttributesClassName + resources: + requests: {} + limits: {} + selector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + accessModes: + - accessModes + - accessModes + dataSource: + apiGroup: apiGroup + kind: kind + name: name + volumeMode: volumeMode + secret: + secretName: secretName + defaultMode: 3 + optional: true + items: + - mode: 3 + path: path + key: key + - mode: 3 + path: path + key: key + projected: + sources: + - downwardAPI: + items: + - mode: 1 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - mode: 1 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + configMap: + name: name + optional: true + items: + - mode: 3 + path: path + key: key + - mode: 3 + path: path + key: key + secret: + name: name + optional: true + items: + - mode: 3 + path: path + key: key + - mode: 3 + path: path + key: key + serviceAccountToken: path: path - key: key - - mode: 6 + audience: audience + expirationSeconds: 6 + clusterTrustBundle: path: path - key: key - secret: - name: name - optional: true - items: - - mode: 6 + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + name: name + optional: true + signerName: signerName + - downwardAPI: + items: + - mode: 1 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - mode: 1 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + configMap: + name: name + optional: true + items: + - mode: 3 + path: path + key: key + - mode: 3 + path: path + key: key + secret: + name: name + optional: true + items: + - mode: 3 + path: path + key: key + - mode: 3 + path: path + key: key + serviceAccountToken: path: path - key: key - - mode: 6 + audience: audience + expirationSeconds: 6 + clusterTrustBundle: path: path - key: key - serviceAccountToken: - path: path - audience: audience - expirationSeconds: 5 - defaultMode: 6 - cephfs: - path: path - secretRef: - name: name - secretFile: secretFile - readOnly: true - user: user - monitors: - - monitors - - monitors - scaleIO: - system: system - protectionDomain: protectionDomain - sslEnabled: true - storageMode: storageMode - volumeName: volumeName - secretRef: - name: name - readOnly: true - fsType: fsType - storagePool: storagePool - gateway: gateway - emptyDir: - sizeLimit: sizeLimit - medium: medium - glusterfs: - path: path - endpoints: endpoints - readOnly: true - gcePersistentDisk: - partition: 2 - readOnly: true - pdName: pdName - fsType: fsType - photonPersistentDisk: - pdID: pdID - fsType: fsType - azureDisk: - diskName: diskName - kind: kind - readOnly: true - cachingMode: cachingMode - diskURI: diskURI - fsType: fsType - cinder: - secretRef: - name: name - volumeID: volumeID - readOnly: true - fsType: fsType - downwardAPI: - defaultMode: 3 - items: - - mode: 6 + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + name: name + optional: true + signerName: signerName + defaultMode: 5 + cephfs: path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - mode: 6 + secretRef: + name: name + secretFile: secretFile + readOnly: true + user: user + monitors: + - monitors + - monitors + scaleIO: + system: system + protectionDomain: protectionDomain + sslEnabled: true + storageMode: storageMode + volumeName: volumeName + secretRef: + name: name + readOnly: true + fsType: fsType + storagePool: storagePool + gateway: gateway + emptyDir: + sizeLimit: sizeLimit + medium: medium + glusterfs: path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - awsElasticBlockStore: - partition: 8 - volumeID: volumeID - readOnly: true - fsType: fsType - flocker: - datasetName: datasetName - datasetUUID: datasetUUID - iscsi: - chapAuthSession: true - iscsiInterface: iscsiInterface - lun: 6 - chapAuthDiscovery: true - iqn: iqn - portals: - - portals - - portals - secretRef: - name: name - initiatorName: initiatorName - readOnly: true - fsType: fsType - targetPortal: targetPortal - rbd: - image: image - pool: pool - secretRef: + endpoints: endpoints + readOnly: true + gcePersistentDisk: + partition: 6 + readOnly: true + pdName: pdName + fsType: fsType + image: + reference: reference + pullPolicy: pullPolicy + photonPersistentDisk: + pdID: pdID + fsType: fsType + azureDisk: + diskName: diskName + kind: kind + readOnly: true + cachingMode: cachingMode + diskURI: diskURI + fsType: fsType + cinder: + secretRef: + name: name + volumeID: volumeID + readOnly: true + fsType: fsType + downwardAPI: + defaultMode: 6 + items: + - mode: 1 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - mode: 1 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + awsElasticBlockStore: + partition: 9 + volumeID: volumeID + readOnly: true + fsType: fsType + flocker: + datasetName: datasetName + datasetUUID: datasetUUID + iscsi: + chapAuthSession: true + iscsiInterface: iscsiInterface + lun: 6 + chapAuthDiscovery: true + iqn: iqn + portals: + - portals + - portals + secretRef: + name: name + initiatorName: initiatorName + readOnly: true + fsType: fsType + targetPortal: targetPortal + rbd: + image: image + pool: pool + secretRef: + name: name + readOnly: true + fsType: fsType + keyring: keyring + user: user + monitors: + - monitors + - monitors + configMap: + defaultMode: 6 name: name - readOnly: true - fsType: fsType - keyring: keyring - user: user - monitors: - - monitors - - monitors - configMap: - defaultMode: 9 + optional: true + items: + - mode: 3 + path: path + key: key + - mode: 3 + path: path + key: key + storageos: + volumeNamespace: volumeNamespace + volumeName: volumeName + secretRef: + name: name + readOnly: true + fsType: fsType + csi: + driver: driver + nodePublishSecretRef: + name: name + readOnly: true + fsType: fsType + volumeAttributes: + key: volumeAttributes name: name - optional: true - items: - - mode: 6 + nfs: path: path - key: key - - mode: 6 + server: server + readOnly: true + persistentVolumeClaim: + claimName: claimName + readOnly: true + gitRepo: + repository: repository + directory: directory + revision: revision + portworxVolume: + volumeID: volumeID + readOnly: true + fsType: fsType + vsphereVolume: + storagePolicyName: storagePolicyName + storagePolicyID: storagePolicyID + volumePath: volumePath + fsType: fsType + fc: + lun: 2 + targetWWNs: + - targetWWNs + - targetWWNs + readOnly: true + wwids: + - wwids + - wwids + fsType: fsType + hostPath: path: path - key: key - storageos: - volumeNamespace: volumeNamespace - volumeName: volumeName - secretRef: + type: type + resources: + claims: + - request: request + name: name + - request: request + name: name + requests: {} + limits: {} + ephemeralContainers: + - volumeDevices: + - devicePath: devicePath + name: name + - devicePath: devicePath + name: name + stdin: true + terminationMessagePolicy: terminationMessagePolicy + securityContext: + privileged: true + runAsUser: 1 + capabilities: + add: + - add + - add + drop: + - drop + - drop + seLinuxOptions: + role: role + level: level + type: type + user: user + appArmorProfile: + localhostProfile: localhostProfile + type: type + seccompProfile: + localhostProfile: localhostProfile + type: type + windowsOptions: + gmsaCredentialSpec: gmsaCredentialSpec + runAsUserName: runAsUserName + hostProcess: true + gmsaCredentialSpecName: gmsaCredentialSpecName + procMount: procMount + allowPrivilegeEscalation: true + runAsGroup: 1 + runAsNonRoot: true + readOnlyRootFilesystem: true + startupProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: port + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + ports: + - protocol: protocol + hostIP: hostIP + name: name + containerPort: 7 + hostPort: 1 + - protocol: protocol + hostIP: hostIP name: name - readOnly: true - fsType: fsType - csi: - driver: driver - nodePublishSecretRef: + containerPort: 7 + hostPort: 1 + volumeMounts: + - mountPath: mountPath + mountPropagation: mountPropagation name: name - readOnly: true - fsType: fsType - volumeAttributes: - key: volumeAttributes - name: name - nfs: - path: path - server: server - readOnly: true - persistentVolumeClaim: - claimName: claimName - readOnly: true - gitRepo: - repository: repository - directory: directory - revision: revision - portworxVolume: - volumeID: volumeID - readOnly: true - fsType: fsType - vsphereVolume: - storagePolicyName: storagePolicyName - storagePolicyID: storagePolicyID - volumePath: volumePath - fsType: fsType - fc: - lun: 1 - targetWWNs: - - targetWWNs - - targetWWNs - readOnly: true - wwids: - - wwids - - wwids - fsType: fsType - hostPath: - path: path - type: type - - quobyte: - volume: volume - registry: registry - readOnly: true - user: user - tenant: tenant - group: group - azureFile: - secretName: secretName - readOnly: true - shareName: shareName - flexVolume: - driver: driver - options: - key: options - secretRef: + readOnly: true + subPath: subPath + recursiveReadOnly: recursiveReadOnly + subPathExpr: subPathExpr + - mountPath: mountPath + mountPropagation: mountPropagation name: name - readOnly: true - fsType: fsType - ephemeral: - volumeClaimTemplate: - metadata: - generation: 6 - finalizers: - - finalizers - - finalizers - resourceVersion: resourceVersion - annotations: - key: annotations - generateName: generateName - deletionTimestamp: 2000-01-23T04:56:07.000+00:00 - labels: - key: labels - ownerReferences: - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - selfLink: selfLink - deletionGracePeriodSeconds: 0 - uid: uid - managedFields: - - apiVersion: apiVersion - fieldsV1: '{}' - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - - apiVersion: apiVersion - fieldsV1: '{}' - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - creationTimestamp: 2000-01-23T04:56:07.000+00:00 - name: name - namespace: namespace - spec: - storageClassName: storageClassName - dataSourceRef: - apiGroup: apiGroup - kind: kind - name: name - namespace: namespace - volumeName: volumeName - resources: - claims: + readOnly: true + subPath: subPath + recursiveReadOnly: recursiveReadOnly + subPathExpr: subPathExpr + lifecycle: + postStart: + sleep: + seconds: 5 + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: - name: name + value: value - name: name - requests: {} - limits: {} - selector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - accessModes: - - accessModes - - accessModes - dataSource: - apiGroup: apiGroup - kind: kind - name: name - volumeMode: volumeMode - secret: - secretName: secretName - defaultMode: 6 - optional: true - items: - - mode: 6 - path: path - key: key - - mode: 6 - path: path - key: key - projected: - sources: - - downwardAPI: - items: - - mode: 6 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - mode: 6 + value: value + preStop: + sleep: + seconds: 5 + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - configMap: + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + stopSignal: stopSignal + readinessProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: port + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + resizePolicy: + - resourceName: resourceName + restartPolicy: restartPolicy + - resourceName: resourceName + restartPolicy: restartPolicy + envFrom: + - configMapRef: name: name optional: true - items: - - mode: 6 - path: path - key: key - - mode: 6 - path: path - key: key - secret: + prefix: prefix + secretRef: name: name optional: true - items: - - mode: 6 - path: path - key: key - - mode: 6 - path: path - key: key - serviceAccountToken: - path: path - audience: audience - expirationSeconds: 5 - - downwardAPI: - items: - - mode: 6 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - mode: 6 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - configMap: + - configMapRef: name: name optional: true - items: - - mode: 6 - path: path - key: key - - mode: 6 - path: path - key: key - secret: + prefix: prefix + secretRef: name: name optional: true - items: - - mode: 6 - path: path - key: key - - mode: 6 - path: path - key: key - serviceAccountToken: - path: path - audience: audience - expirationSeconds: 5 - defaultMode: 6 - cephfs: - path: path - secretRef: - name: name - secretFile: secretFile - readOnly: true - user: user - monitors: - - monitors - - monitors - scaleIO: - system: system - protectionDomain: protectionDomain - sslEnabled: true - storageMode: storageMode - volumeName: volumeName - secretRef: - name: name - readOnly: true - fsType: fsType - storagePool: storagePool - gateway: gateway - emptyDir: - sizeLimit: sizeLimit - medium: medium - glusterfs: - path: path - endpoints: endpoints - readOnly: true - gcePersistentDisk: - partition: 2 - readOnly: true - pdName: pdName - fsType: fsType - photonPersistentDisk: - pdID: pdID - fsType: fsType - azureDisk: - diskName: diskName - kind: kind - readOnly: true - cachingMode: cachingMode - diskURI: diskURI - fsType: fsType - cinder: - secretRef: - name: name - volumeID: volumeID - readOnly: true - fsType: fsType - downwardAPI: - defaultMode: 3 - items: - - mode: 6 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - mode: 6 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - awsElasticBlockStore: - partition: 8 - volumeID: volumeID - readOnly: true - fsType: fsType - flocker: - datasetName: datasetName - datasetUUID: datasetUUID - iscsi: - chapAuthSession: true - iscsiInterface: iscsiInterface - lun: 6 - chapAuthDiscovery: true - iqn: iqn - portals: - - portals - - portals - secretRef: - name: name - initiatorName: initiatorName - readOnly: true - fsType: fsType - targetPortal: targetPortal - rbd: image: image - pool: pool - secretRef: - name: name - readOnly: true - fsType: fsType - keyring: keyring - user: user - monitors: - - monitors - - monitors - configMap: - defaultMode: 9 - name: name - optional: true - items: - - mode: 6 - path: path - key: key - - mode: 6 - path: path - key: key - storageos: - volumeNamespace: volumeNamespace - volumeName: volumeName - secretRef: - name: name - readOnly: true - fsType: fsType - csi: - driver: driver - nodePublishSecretRef: - name: name - readOnly: true - fsType: fsType - volumeAttributes: - key: volumeAttributes - name: name - nfs: - path: path - server: server - readOnly: true - persistentVolumeClaim: - claimName: claimName - readOnly: true - gitRepo: - repository: repository - directory: directory - revision: revision - portworxVolume: - volumeID: volumeID - readOnly: true - fsType: fsType - vsphereVolume: - storagePolicyName: storagePolicyName - storagePolicyID: storagePolicyID - volumePath: volumePath - fsType: fsType - fc: - lun: 1 - targetWWNs: - - targetWWNs - - targetWWNs - readOnly: true - wwids: - - wwids - - wwids - fsType: fsType - hostPath: - path: path - type: type - ephemeralContainers: - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name - stdin: true - terminationMessagePolicy: terminationMessagePolicy - securityContext: - privileged: true - runAsUser: 1 - capabilities: - add: - - add - - add - drop: - - drop - - drop - seLinuxOptions: - role: role - level: level - type: type - user: user - seccompProfile: - localhostProfile: localhostProfile - type: type - windowsOptions: - gmsaCredentialSpec: gmsaCredentialSpec - runAsUserName: runAsUserName - hostProcess: true - gmsaCredentialSpecName: gmsaCredentialSpecName - procMount: procMount - allowPrivilegeEscalation: true - runAsGroup: 1 - runAsNonRoot: true - readOnlyRootFilesystem: true - startupProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - ports: - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 4 - hostPort: 7 - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 4 - hostPort: 7 - volumeMounts: - - mountPath: mountPath - mountPropagation: mountPropagation - name: name - readOnly: true - subPath: subPath - subPathExpr: subPathExpr - - mountPath: mountPath - mountPropagation: mountPropagation - name: name - readOnly: true - subPath: subPath - subPathExpr: subPathExpr - lifecycle: - postStart: + imagePullPolicy: imagePullPolicy + livenessProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 tcpSocket: port: port host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command + grpc: + port: 2 + service: service httpGet: path: path scheme: scheme @@ -176644,14 +212097,119 @@ components: value: value - name: name value: value - preStop: + targetContainerName: targetContainerName + terminationMessagePath: terminationMessagePath + workingDir: workingDir + resources: + claims: + - request: request + name: name + - request: request + name: name + requests: {} + limits: {} + env: + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + restartPolicy: restartPolicy + command: + - command + - command + args: + - args + - args + name: name + tty: true + stdinOnce: true + - volumeDevices: + - devicePath: devicePath + name: name + - devicePath: devicePath + name: name + stdin: true + terminationMessagePolicy: terminationMessagePolicy + securityContext: + privileged: true + runAsUser: 1 + capabilities: + add: + - add + - add + drop: + - drop + - drop + seLinuxOptions: + role: role + level: level + type: type + user: user + appArmorProfile: + localhostProfile: localhostProfile + type: type + seccompProfile: + localhostProfile: localhostProfile + type: type + windowsOptions: + gmsaCredentialSpec: gmsaCredentialSpec + runAsUserName: runAsUserName + hostProcess: true + gmsaCredentialSpecName: gmsaCredentialSpecName + procMount: procMount + allowPrivilegeEscalation: true + runAsGroup: 1 + runAsNonRoot: true + readOnlyRootFilesystem: true + startupProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 tcpSocket: port: port host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command + grpc: + port: 2 + service: service httpGet: path: path scheme: scheme @@ -176662,233 +212220,316 @@ components: value: value - name: name value: value - readinessProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - resizePolicy: - - resourceName: resourceName - restartPolicy: restartPolicy - - resourceName: resourceName - restartPolicy: restartPolicy - envFrom: - - configMapRef: + ports: + - protocol: protocol + hostIP: hostIP name: name - optional: true - prefix: prefix - secretRef: + containerPort: 7 + hostPort: 1 + - protocol: protocol + hostIP: hostIP name: name - optional: true - - configMapRef: + containerPort: 7 + hostPort: 1 + volumeMounts: + - mountPath: mountPath + mountPropagation: mountPropagation name: name - optional: true - prefix: prefix - secretRef: + readOnly: true + subPath: subPath + recursiveReadOnly: recursiveReadOnly + subPathExpr: subPathExpr + - mountPath: mountPath + mountPropagation: mountPropagation name: name - optional: true - image: image - imagePullPolicy: imagePullPolicy - livenessProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - targetContainerName: targetContainerName - terminationMessagePath: terminationMessagePath - workingDir: workingDir - resources: - claims: - - name: name - - name: name - requests: {} - limits: {} - env: - - name: name - value: value - valueFrom: - secretKeyRef: + readOnly: true + subPath: subPath + recursiveReadOnly: recursiveReadOnly + subPathExpr: subPathExpr + lifecycle: + postStart: + sleep: + seconds: 5 + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + preStop: + sleep: + seconds: 5 + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + stopSignal: stopSignal + readinessProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: port + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + resizePolicy: + - resourceName: resourceName + restartPolicy: restartPolicy + - resourceName: resourceName + restartPolicy: restartPolicy + envFrom: + - configMapRef: name: name optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: + prefix: prefix + secretRef: name: name optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - name: name - value: value - valueFrom: - secretKeyRef: + - configMapRef: name: name optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: + prefix: prefix + secretRef: name: name optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - restartPolicy: restartPolicy - command: - - command - - command - args: - - args - - args - name: name - tty: true - stdinOnce: true - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name - stdin: true - terminationMessagePolicy: terminationMessagePolicy - securityContext: - privileged: true - runAsUser: 1 - capabilities: - add: - - add - - add - drop: - - drop - - drop - seLinuxOptions: - role: role - level: level - type: type - user: user - seccompProfile: - localhostProfile: localhostProfile - type: type - windowsOptions: - gmsaCredentialSpec: gmsaCredentialSpec - runAsUserName: runAsUserName - hostProcess: true - gmsaCredentialSpecName: gmsaCredentialSpecName - procMount: procMount - allowPrivilegeEscalation: true - runAsGroup: 1 - runAsNonRoot: true - readOnlyRootFilesystem: true - startupProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - ports: - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 4 - hostPort: 7 - - protocol: protocol - hostIP: hostIP + image: image + imagePullPolicy: imagePullPolicy + livenessProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: port + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + targetContainerName: targetContainerName + terminationMessagePath: terminationMessagePath + workingDir: workingDir + resources: + claims: + - request: request + name: name + - request: request + name: name + requests: {} + limits: {} + env: + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + restartPolicy: restartPolicy + command: + - command + - command + args: + - args + - args name: name - containerPort: 4 - hostPort: 7 - volumeMounts: - - mountPath: mountPath - mountPropagation: mountPropagation + tty: true + stdinOnce: true + serviceAccount: serviceAccount + priority: 6 + restartPolicy: restartPolicy + shareProcessNamespace: true + hostUsers: true + resourceClaims: + - resourceClaimName: resourceClaimName name: name - readOnly: true - subPath: subPath - subPathExpr: subPathExpr - - mountPath: mountPath - mountPropagation: mountPropagation + resourceClaimTemplateName: resourceClaimTemplateName + - resourceClaimName: resourceClaimName name: name - readOnly: true - subPath: subPath - subPathExpr: subPathExpr - lifecycle: - postStart: + resourceClaimTemplateName: resourceClaimTemplateName + subdomain: subdomain + containers: + - volumeDevices: + - devicePath: devicePath + name: name + - devicePath: devicePath + name: name + image: image + imagePullPolicy: imagePullPolicy + livenessProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: port + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + stdin: true + terminationMessagePolicy: terminationMessagePolicy + terminationMessagePath: terminationMessagePath + workingDir: workingDir + resources: + claims: + - request: request + name: name + - request: request + name: name + requests: {} + limits: {} + securityContext: + privileged: true + runAsUser: 1 + capabilities: + add: + - add + - add + drop: + - drop + - drop + seLinuxOptions: + role: role + level: level + type: type + user: user + appArmorProfile: + localhostProfile: localhostProfile + type: type + seccompProfile: + localhostProfile: localhostProfile + type: type + windowsOptions: + gmsaCredentialSpec: gmsaCredentialSpec + runAsUserName: runAsUserName + hostProcess: true + gmsaCredentialSpecName: gmsaCredentialSpecName + procMount: procMount + allowPrivilegeEscalation: true + runAsGroup: 1 + runAsNonRoot: true + readOnlyRootFilesystem: true + startupProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 tcpSocket: port: port host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command + grpc: + port: 2 + service: service httpGet: path: path scheme: scheme @@ -176899,14 +212540,137 @@ components: value: value - name: name value: value - preStop: + env: + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + ports: + - protocol: protocol + hostIP: hostIP + name: name + containerPort: 7 + hostPort: 1 + - protocol: protocol + hostIP: hostIP + name: name + containerPort: 7 + hostPort: 1 + restartPolicy: restartPolicy + command: + - command + - command + volumeMounts: + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + recursiveReadOnly: recursiveReadOnly + subPathExpr: subPathExpr + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + recursiveReadOnly: recursiveReadOnly + subPathExpr: subPathExpr + args: + - args + - args + lifecycle: + postStart: + sleep: + seconds: 5 + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + preStop: + sleep: + seconds: 5 + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + stopSignal: stopSignal + name: name + tty: true + readinessProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 tcpSocket: port: port host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command + grpc: + port: 2 + service: service httpGet: path: path scheme: scheme @@ -176917,330 +212681,51 @@ components: value: value - name: name value: value - readinessProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - resizePolicy: - - resourceName: resourceName - restartPolicy: restartPolicy - - resourceName: resourceName - restartPolicy: restartPolicy - envFrom: - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - image: image - imagePullPolicy: imagePullPolicy - livenessProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - targetContainerName: targetContainerName - terminationMessagePath: terminationMessagePath - workingDir: workingDir - resources: - claims: - - name: name - - name: name - requests: {} - limits: {} - env: - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - restartPolicy: restartPolicy - command: - - command - - command - args: - - args - - args - name: name - tty: true - stdinOnce: true - serviceAccount: serviceAccount - priority: 1 - restartPolicy: restartPolicy - shareProcessNamespace: true - hostUsers: true - resourceClaims: - - name: name - source: - resourceClaimName: resourceClaimName - resourceClaimTemplateName: resourceClaimTemplateName - - name: name - source: - resourceClaimName: resourceClaimName - resourceClaimTemplateName: resourceClaimTemplateName - subdomain: subdomain - containers: - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name - image: image - imagePullPolicy: imagePullPolicy - livenessProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - stdin: true - terminationMessagePolicy: terminationMessagePolicy - terminationMessagePath: terminationMessagePath - workingDir: workingDir - resources: - claims: - - name: name - - name: name - requests: {} - limits: {} - securityContext: - privileged: true - runAsUser: 1 - capabilities: - add: - - add - - add - drop: - - drop - - drop - seLinuxOptions: - role: role - level: level - type: type - user: user - seccompProfile: - localhostProfile: localhostProfile - type: type - windowsOptions: - gmsaCredentialSpec: gmsaCredentialSpec - runAsUserName: runAsUserName - hostProcess: true - gmsaCredentialSpecName: gmsaCredentialSpecName - procMount: procMount - allowPrivilegeEscalation: true - runAsGroup: 1 - runAsNonRoot: true - readOnlyRootFilesystem: true - startupProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - env: - - name: name - value: value - valueFrom: - secretKeyRef: + resizePolicy: + - resourceName: resourceName + restartPolicy: restartPolicy + - resourceName: resourceName + restartPolicy: restartPolicy + stdinOnce: true + envFrom: + - configMapRef: name: name optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: + prefix: prefix + secretRef: name: name optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - name: name - value: value - valueFrom: - secretKeyRef: + - configMapRef: name: name optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: + prefix: prefix + secretRef: name: name optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - ports: - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 4 - hostPort: 7 - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 4 - hostPort: 7 - restartPolicy: restartPolicy - command: - - command - - command - volumeMounts: - - mountPath: mountPath - mountPropagation: mountPropagation - name: name - readOnly: true - subPath: subPath - subPathExpr: subPathExpr - - mountPath: mountPath - mountPropagation: mountPropagation - name: name - readOnly: true - subPath: subPath - subPathExpr: subPathExpr - args: - - args - - args - lifecycle: - postStart: + - volumeDevices: + - devicePath: devicePath + name: name + - devicePath: devicePath + name: name + image: image + imagePullPolicy: imagePullPolicy + livenessProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 tcpSocket: port: port host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command + grpc: + port: 2 + service: service httpGet: path: path scheme: scheme @@ -177251,14 +212736,66 @@ components: value: value - name: name value: value - preStop: + stdin: true + terminationMessagePolicy: terminationMessagePolicy + terminationMessagePath: terminationMessagePath + workingDir: workingDir + resources: + claims: + - request: request + name: name + - request: request + name: name + requests: {} + limits: {} + securityContext: + privileged: true + runAsUser: 1 + capabilities: + add: + - add + - add + drop: + - drop + - drop + seLinuxOptions: + role: role + level: level + type: type + user: user + appArmorProfile: + localhostProfile: localhostProfile + type: type + seccompProfile: + localhostProfile: localhostProfile + type: type + windowsOptions: + gmsaCredentialSpec: gmsaCredentialSpec + runAsUserName: runAsUserName + hostProcess: true + gmsaCredentialSpecName: gmsaCredentialSpecName + procMount: procMount + allowPrivilegeEscalation: true + runAsGroup: 1 + runAsNonRoot: true + readOnlyRootFilesystem: true + startupProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 tcpSocket: port: port host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command + grpc: + port: 2 + service: service httpGet: path: path scheme: scheme @@ -177269,232 +212806,137 @@ components: value: value - name: name value: value - name: name - tty: true - readinessProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - resizePolicy: - - resourceName: resourceName - restartPolicy: restartPolicy - - resourceName: resourceName - restartPolicy: restartPolicy - stdinOnce: true - envFrom: - - configMapRef: + env: + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + ports: + - protocol: protocol + hostIP: hostIP name: name - optional: true - prefix: prefix - secretRef: + containerPort: 7 + hostPort: 1 + - protocol: protocol + hostIP: hostIP name: name - optional: true - - configMapRef: + containerPort: 7 + hostPort: 1 + restartPolicy: restartPolicy + command: + - command + - command + volumeMounts: + - mountPath: mountPath + mountPropagation: mountPropagation name: name - optional: true - prefix: prefix - secretRef: + readOnly: true + subPath: subPath + recursiveReadOnly: recursiveReadOnly + subPathExpr: subPathExpr + - mountPath: mountPath + mountPropagation: mountPropagation name: name - optional: true - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name - image: image - imagePullPolicy: imagePullPolicy - livenessProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - stdin: true - terminationMessagePolicy: terminationMessagePolicy - terminationMessagePath: terminationMessagePath - workingDir: workingDir - resources: - claims: - - name: name - - name: name - requests: {} - limits: {} - securityContext: - privileged: true - runAsUser: 1 - capabilities: - add: - - add - - add - drop: - - drop - - drop - seLinuxOptions: - role: role - level: level - type: type - user: user - seccompProfile: - localhostProfile: localhostProfile - type: type - windowsOptions: - gmsaCredentialSpec: gmsaCredentialSpec - runAsUserName: runAsUserName - hostProcess: true - gmsaCredentialSpecName: gmsaCredentialSpecName - procMount: procMount - allowPrivilegeEscalation: true - runAsGroup: 1 - runAsNonRoot: true - readOnlyRootFilesystem: true - startupProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - env: - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - ports: - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 4 - hostPort: 7 - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 4 - hostPort: 7 - restartPolicy: restartPolicy - command: - - command - - command - volumeMounts: - - mountPath: mountPath - mountPropagation: mountPropagation - name: name - readOnly: true - subPath: subPath - subPathExpr: subPathExpr - - mountPath: mountPath - mountPropagation: mountPropagation + readOnly: true + subPath: subPath + recursiveReadOnly: recursiveReadOnly + subPathExpr: subPathExpr + args: + - args + - args + lifecycle: + postStart: + sleep: + seconds: 5 + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + preStop: + sleep: + seconds: 5 + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + stopSignal: stopSignal name: name - readOnly: true - subPath: subPath - subPathExpr: subPathExpr - args: - - args - - args - lifecycle: - postStart: + tty: true + readinessProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 tcpSocket: port: port host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command + grpc: + port: 2 + service: service httpGet: path: path scheme: scheme @@ -177505,14 +212947,52 @@ components: value: value - name: name value: value - preStop: + resizePolicy: + - resourceName: resourceName + restartPolicy: restartPolicy + - resourceName: resourceName + restartPolicy: restartPolicy + stdinOnce: true + envFrom: + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + initContainers: + - volumeDevices: + - devicePath: devicePath + name: name + - devicePath: devicePath + name: name + image: image + imagePullPolicy: imagePullPolicy + livenessProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 tcpSocket: port: port host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command + grpc: + port: 2 + service: service httpGet: path: path scheme: scheme @@ -177521,235 +213001,68 @@ components: httpHeaders: - name: name value: value - - name: name - value: value - name: name - tty: true - readinessProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - resizePolicy: - - resourceName: resourceName - restartPolicy: restartPolicy - - resourceName: resourceName - restartPolicy: restartPolicy - stdinOnce: true - envFrom: - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - initContainers: - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name - image: image - imagePullPolicy: imagePullPolicy - livenessProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - stdin: true - terminationMessagePolicy: terminationMessagePolicy - terminationMessagePath: terminationMessagePath - workingDir: workingDir - resources: - claims: - - name: name - - name: name - requests: {} - limits: {} - securityContext: - privileged: true - runAsUser: 1 - capabilities: - add: - - add - - add - drop: - - drop - - drop - seLinuxOptions: - role: role - level: level - type: type - user: user - seccompProfile: - localhostProfile: localhostProfile - type: type - windowsOptions: - gmsaCredentialSpec: gmsaCredentialSpec - runAsUserName: runAsUserName - hostProcess: true - gmsaCredentialSpecName: gmsaCredentialSpecName - procMount: procMount - allowPrivilegeEscalation: true - runAsGroup: 1 - runAsNonRoot: true - readOnlyRootFilesystem: true - startupProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - env: - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - ports: - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 4 - hostPort: 7 - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 4 - hostPort: 7 - restartPolicy: restartPolicy - command: - - command - - command - volumeMounts: - - mountPath: mountPath - mountPropagation: mountPropagation - name: name - readOnly: true - subPath: subPath - subPathExpr: subPathExpr - - mountPath: mountPath - mountPropagation: mountPropagation - name: name - readOnly: true - subPath: subPath - subPathExpr: subPathExpr - args: - - args - - args - lifecycle: - postStart: + - name: name + value: value + stdin: true + terminationMessagePolicy: terminationMessagePolicy + terminationMessagePath: terminationMessagePath + workingDir: workingDir + resources: + claims: + - request: request + name: name + - request: request + name: name + requests: {} + limits: {} + securityContext: + privileged: true + runAsUser: 1 + capabilities: + add: + - add + - add + drop: + - drop + - drop + seLinuxOptions: + role: role + level: level + type: type + user: user + appArmorProfile: + localhostProfile: localhostProfile + type: type + seccompProfile: + localhostProfile: localhostProfile + type: type + windowsOptions: + gmsaCredentialSpec: gmsaCredentialSpec + runAsUserName: runAsUserName + hostProcess: true + gmsaCredentialSpecName: gmsaCredentialSpecName + procMount: procMount + allowPrivilegeEscalation: true + runAsGroup: 1 + runAsNonRoot: true + readOnlyRootFilesystem: true + startupProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 tcpSocket: port: port host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command + grpc: + port: 2 + service: service httpGet: path: path scheme: scheme @@ -177760,14 +213073,137 @@ components: value: value - name: name value: value - preStop: + env: + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + ports: + - protocol: protocol + hostIP: hostIP + name: name + containerPort: 7 + hostPort: 1 + - protocol: protocol + hostIP: hostIP + name: name + containerPort: 7 + hostPort: 1 + restartPolicy: restartPolicy + command: + - command + - command + volumeMounts: + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + recursiveReadOnly: recursiveReadOnly + subPathExpr: subPathExpr + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + recursiveReadOnly: recursiveReadOnly + subPathExpr: subPathExpr + args: + - args + - args + lifecycle: + postStart: + sleep: + seconds: 5 + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + preStop: + sleep: + seconds: 5 + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + stopSignal: stopSignal + name: name + tty: true + readinessProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 tcpSocket: port: port host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command + grpc: + port: 2 + service: service httpGet: path: path scheme: scheme @@ -177778,232 +213214,51 @@ components: value: value - name: name value: value - name: name - tty: true - readinessProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - resizePolicy: - - resourceName: resourceName - restartPolicy: restartPolicy - - resourceName: resourceName - restartPolicy: restartPolicy - stdinOnce: true - envFrom: - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name - image: image - imagePullPolicy: imagePullPolicy - livenessProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - stdin: true - terminationMessagePolicy: terminationMessagePolicy - terminationMessagePath: terminationMessagePath - workingDir: workingDir - resources: - claims: - - name: name - - name: name - requests: {} - limits: {} - securityContext: - privileged: true - runAsUser: 1 - capabilities: - add: - - add - - add - drop: - - drop - - drop - seLinuxOptions: - role: role - level: level - type: type - user: user - seccompProfile: - localhostProfile: localhostProfile - type: type - windowsOptions: - gmsaCredentialSpec: gmsaCredentialSpec - runAsUserName: runAsUserName - hostProcess: true - gmsaCredentialSpecName: gmsaCredentialSpecName - procMount: procMount - allowPrivilegeEscalation: true - runAsGroup: 1 - runAsNonRoot: true - readOnlyRootFilesystem: true - startupProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - env: - - name: name - value: value - valueFrom: - secretKeyRef: + resizePolicy: + - resourceName: resourceName + restartPolicy: restartPolicy + - resourceName: resourceName + restartPolicy: restartPolicy + stdinOnce: true + envFrom: + - configMapRef: name: name optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: + prefix: prefix + secretRef: name: name optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - name: name - value: value - valueFrom: - secretKeyRef: + - configMapRef: name: name optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: + prefix: prefix + secretRef: name: name optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - ports: - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 4 - hostPort: 7 - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 4 - hostPort: 7 - restartPolicy: restartPolicy - command: - - command - - command - volumeMounts: - - mountPath: mountPath - mountPropagation: mountPropagation - name: name - readOnly: true - subPath: subPath - subPathExpr: subPathExpr - - mountPath: mountPath - mountPropagation: mountPropagation - name: name - readOnly: true - subPath: subPath - subPathExpr: subPathExpr - args: - - args - - args - lifecycle: - postStart: + - volumeDevices: + - devicePath: devicePath + name: name + - devicePath: devicePath + name: name + image: image + imagePullPolicy: imagePullPolicy + livenessProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 tcpSocket: port: port host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command + grpc: + port: 2 + service: service httpGet: path: path scheme: scheme @@ -178014,14 +213269,66 @@ components: value: value - name: name value: value - preStop: + stdin: true + terminationMessagePolicy: terminationMessagePolicy + terminationMessagePath: terminationMessagePath + workingDir: workingDir + resources: + claims: + - request: request + name: name + - request: request + name: name + requests: {} + limits: {} + securityContext: + privileged: true + runAsUser: 1 + capabilities: + add: + - add + - add + drop: + - drop + - drop + seLinuxOptions: + role: role + level: level + type: type + user: user + appArmorProfile: + localhostProfile: localhostProfile + type: type + seccompProfile: + localhostProfile: localhostProfile + type: type + windowsOptions: + gmsaCredentialSpec: gmsaCredentialSpec + runAsUserName: runAsUserName + hostProcess: true + gmsaCredentialSpecName: gmsaCredentialSpecName + procMount: procMount + allowPrivilegeEscalation: true + runAsGroup: 1 + runAsNonRoot: true + readOnlyRootFilesystem: true + startupProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 tcpSocket: port: port host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command + grpc: + port: 2 + service: service httpGet: path: path scheme: scheme @@ -178032,222 +213339,268 @@ components: value: value - name: name value: value - name: name - tty: true - readinessProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - resizePolicy: - - resourceName: resourceName - restartPolicy: restartPolicy - - resourceName: resourceName - restartPolicy: restartPolicy - stdinOnce: true - envFrom: - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - affinity: - nodeAffinity: - requiredDuringSchedulingIgnoredDuringExecution: - nodeSelectorTerms: - - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchFields: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchFields: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - preferredDuringSchedulingIgnoredDuringExecution: - - preference: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchFields: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - weight: 6 - - preference: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchFields: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - weight: 6 - podAffinity: - requiredDuringSchedulingIgnoredDuringExecution: - - labelSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - topologyKey: topologyKey - namespaces: - - namespaces - - namespaces - - labelSelector: - matchExpressions: - - values: - - values - - values + env: + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true key: key - operator: operator - - values: - - values - - values + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true key: key - operator: operator - matchLabels: - key: matchLabels - namespaceSelector: - matchExpressions: - - values: - - values - - values + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true key: key - operator: operator - - values: - - values - - values + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true key: key - operator: operator - matchLabels: - key: matchLabels - topologyKey: topologyKey - namespaces: - - namespaces - - namespaces - preferredDuringSchedulingIgnoredDuringExecution: - - podAffinityTerm: - labelSelector: + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + ports: + - protocol: protocol + hostIP: hostIP + name: name + containerPort: 7 + hostPort: 1 + - protocol: protocol + hostIP: hostIP + name: name + containerPort: 7 + hostPort: 1 + restartPolicy: restartPolicy + command: + - command + - command + volumeMounts: + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + recursiveReadOnly: recursiveReadOnly + subPathExpr: subPathExpr + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + recursiveReadOnly: recursiveReadOnly + subPathExpr: subPathExpr + args: + - args + - args + lifecycle: + postStart: + sleep: + seconds: 5 + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + preStop: + sleep: + seconds: 5 + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + stopSignal: stopSignal + name: name + tty: true + readinessProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: port + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + resizePolicy: + - resourceName: resourceName + restartPolicy: restartPolicy + - resourceName: resourceName + restartPolicy: restartPolicy + stdinOnce: true + envFrom: + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + affinity: + nodeAffinity: + requiredDuringSchedulingIgnoredDuringExecution: + nodeSelectorTerms: + - matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchFields: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + - matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchFields: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + preferredDuringSchedulingIgnoredDuringExecution: + - preference: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchFields: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + weight: 6 + - preference: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchFields: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + weight: 6 + podAffinity: + requiredDuringSchedulingIgnoredDuringExecution: + - labelSelector: matchExpressions: - values: - values @@ -178276,12 +213629,16 @@ components: matchLabels: key: matchLabels topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + mismatchLabelKeys: + - mismatchLabelKeys + - mismatchLabelKeys namespaces: - namespaces - namespaces - weight: 1 - - podAffinityTerm: - labelSelector: + - labelSelector: matchExpressions: - values: - values @@ -178310,79 +213667,99 @@ components: matchLabels: key: matchLabels topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + mismatchLabelKeys: + - mismatchLabelKeys + - mismatchLabelKeys namespaces: - namespaces - namespaces - weight: 1 - podAntiAffinity: - requiredDuringSchedulingIgnoredDuringExecution: - - labelSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - topologyKey: topologyKey - namespaces: - - namespaces - - namespaces - - labelSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - topologyKey: topologyKey - namespaces: - - namespaces - - namespaces - preferredDuringSchedulingIgnoredDuringExecution: - - podAffinityTerm: - labelSelector: + preferredDuringSchedulingIgnoredDuringExecution: + - podAffinityTerm: + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + mismatchLabelKeys: + - mismatchLabelKeys + - mismatchLabelKeys + namespaces: + - namespaces + - namespaces + weight: 1 + - podAffinityTerm: + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + mismatchLabelKeys: + - mismatchLabelKeys + - mismatchLabelKeys + namespaces: + - namespaces + - namespaces + weight: 1 + podAntiAffinity: + requiredDuringSchedulingIgnoredDuringExecution: + - labelSelector: matchExpressions: - values: - values @@ -178411,12 +213788,16 @@ components: matchLabels: key: matchLabels topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + mismatchLabelKeys: + - mismatchLabelKeys + - mismatchLabelKeys namespaces: - namespaces - namespaces - weight: 1 - - podAffinityTerm: - labelSelector: + - labelSelector: matchExpressions: - values: - values @@ -178445,92 +213826,145 @@ components: matchLabels: key: matchLabels topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + mismatchLabelKeys: + - mismatchLabelKeys + - mismatchLabelKeys namespaces: - namespaces - namespaces - weight: 1 - hostPID: true - metadata: - generation: 6 - finalizers: - - finalizers - - finalizers - resourceVersion: resourceVersion - annotations: - key: annotations - generateName: generateName - deletionTimestamp: 2000-01-23T04:56:07.000+00:00 - labels: - key: labels - ownerReferences: - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind + preferredDuringSchedulingIgnoredDuringExecution: + - podAffinityTerm: + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + mismatchLabelKeys: + - mismatchLabelKeys + - mismatchLabelKeys + namespaces: + - namespaces + - namespaces + weight: 1 + - podAffinityTerm: + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + mismatchLabelKeys: + - mismatchLabelKeys + - mismatchLabelKeys + namespaces: + - namespaces + - namespaces + weight: 1 + hostPID: true + metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: '{}' + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: '{}' + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + creationTimestamp: 2000-01-23T04:56:07.000+00:00 name: name - blockOwnerDeletion: true - selfLink: selfLink - deletionGracePeriodSeconds: 0 - uid: uid - managedFields: - - apiVersion: apiVersion - fieldsV1: '{}' - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - - apiVersion: apiVersion - fieldsV1: '{}' - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - creationTimestamp: 2000-01-23T04:56:07.000+00:00 - name: name - namespace: namespace - apiVersion: apiVersion - kind: kind - properties: - apiVersion: - description: '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' - type: string - kind: - description: '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' - type: string - metadata: - $ref: '#/components/schemas/v1.ObjectMeta' - template: - $ref: '#/components/schemas/v1.PodTemplateSpec' - type: object - x-kubernetes-group-version-kind: - - group: "" - kind: PodTemplate - version: v1 - x-implements: - - io.kubernetes.client.common.KubernetesObject - v1.PodTemplateList: - description: PodTemplateList is a list of PodTemplates. - example: - metadata: - remainingItemCount: 1 - continue: continue - resourceVersion: resourceVersion - selfLink: selfLink - apiVersion: apiVersion - kind: kind - items: + namespace: namespace + apiVersion: apiVersion + kind: kind - template: metadata: generation: 6 @@ -178581,7 +214015,7 @@ components: spec: dnsPolicy: dnsPolicy nodeName: nodeName - terminationGracePeriodSeconds: 5 + terminationGracePeriodSeconds: 9 dnsConfig: searches: - searches @@ -178613,32 +214047,37 @@ components: - hostnames - hostnames securityContext: - runAsUser: 1 seLinuxOptions: role: role level: level type: type user: user - fsGroup: 6 - seccompProfile: + appArmorProfile: localhostProfile: localhostProfile type: type - windowsOptions: - gmsaCredentialSpec: gmsaCredentialSpec - runAsUserName: runAsUserName - hostProcess: true - gmsaCredentialSpecName: gmsaCredentialSpecName + fsGroup: 7 fsGroupChangePolicy: fsGroupChangePolicy - supplementalGroups: - - 4 - - 4 - runAsGroup: 7 + seLinuxChangePolicy: seLinuxChangePolicy + runAsGroup: 1 runAsNonRoot: true sysctls: - name: name value: value - name: name value: value + runAsUser: 4 + seccompProfile: + localhostProfile: localhostProfile + type: type + windowsOptions: + gmsaCredentialSpec: gmsaCredentialSpec + runAsUserName: runAsUserName + hostProcess: true + gmsaCredentialSpecName: gmsaCredentialSpecName + supplementalGroups: + - 5 + - 5 + supplementalGroupsPolicy: supplementalGroupsPolicy preemptionPolicy: preemptionPolicy nodeSelector: key: nodeSelector @@ -178670,7 +214109,7 @@ components: topologySpreadConstraints: - nodeTaintsPolicy: nodeTaintsPolicy whenUnsatisfiable: whenUnsatisfiable - maxSkew: 9 + maxSkew: 6 nodeAffinityPolicy: nodeAffinityPolicy labelSelector: matchExpressions: @@ -178686,14 +214125,14 @@ components: operator: operator matchLabels: key: matchLabels - minDomains: 6 + minDomains: 8 topologyKey: topologyKey matchLabelKeys: - matchLabelKeys - matchLabelKeys - nodeTaintsPolicy: nodeTaintsPolicy whenUnsatisfiable: whenUnsatisfiable - maxSkew: 9 + maxSkew: 6 nodeAffinityPolicy: nodeAffinityPolicy labelSelector: matchExpressions: @@ -178709,7 +214148,7 @@ components: operator: operator matchLabels: key: matchLabels - minDomains: 6 + minDomains: 8 topologyKey: topologyKey matchLabelKeys: - matchLabelKeys @@ -178790,10 +214229,8 @@ components: name: name namespace: namespace volumeName: volumeName + volumeAttributesClassName: volumeAttributesClassName resources: - claims: - - name: name - - name: name requests: {} limits: {} selector: @@ -178820,20 +214257,20 @@ components: volumeMode: volumeMode secret: secretName: secretName - defaultMode: 6 + defaultMode: 3 optional: true items: - - mode: 6 + - mode: 3 path: path key: key - - mode: 6 + - mode: 3 path: path key: key projected: sources: - downwardAPI: items: - - mode: 6 + - mode: 1 path: path resourceFieldRef: divisor: divisor @@ -178842,7 +214279,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 6 + - mode: 1 path: path resourceFieldRef: divisor: divisor @@ -178855,29 +214292,48 @@ components: name: name optional: true items: - - mode: 6 + - mode: 3 path: path key: key - - mode: 6 + - mode: 3 path: path key: key secret: name: name optional: true items: - - mode: 6 + - mode: 3 path: path key: key - - mode: 6 + - mode: 3 path: path key: key serviceAccountToken: path: path audience: audience - expirationSeconds: 5 + expirationSeconds: 6 + clusterTrustBundle: + path: path + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + name: name + optional: true + signerName: signerName - downwardAPI: items: - - mode: 6 + - mode: 1 path: path resourceFieldRef: divisor: divisor @@ -178886,7 +214342,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 6 + - mode: 1 path: path resourceFieldRef: divisor: divisor @@ -178899,27 +214355,46 @@ components: name: name optional: true items: - - mode: 6 + - mode: 3 path: path key: key - - mode: 6 + - mode: 3 path: path key: key secret: name: name optional: true items: - - mode: 6 + - mode: 3 path: path key: key - - mode: 6 + - mode: 3 path: path key: key serviceAccountToken: path: path audience: audience - expirationSeconds: 5 - defaultMode: 6 + expirationSeconds: 6 + clusterTrustBundle: + path: path + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + name: name + optional: true + signerName: signerName + defaultMode: 5 cephfs: path: path secretRef: @@ -178950,10 +214425,13 @@ components: endpoints: endpoints readOnly: true gcePersistentDisk: - partition: 2 + partition: 6 readOnly: true pdName: pdName fsType: fsType + image: + reference: reference + pullPolicy: pullPolicy photonPersistentDisk: pdID: pdID fsType: fsType @@ -178971,9 +214449,9 @@ components: readOnly: true fsType: fsType downwardAPI: - defaultMode: 3 + defaultMode: 6 items: - - mode: 6 + - mode: 1 path: path resourceFieldRef: divisor: divisor @@ -178982,7 +214460,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 6 + - mode: 1 path: path resourceFieldRef: divisor: divisor @@ -178992,7 +214470,7 @@ components: apiVersion: apiVersion fieldPath: fieldPath awsElasticBlockStore: - partition: 8 + partition: 9 volumeID: volumeID readOnly: true fsType: fsType @@ -179027,14 +214505,14 @@ components: - monitors - monitors configMap: - defaultMode: 9 + defaultMode: 6 name: name optional: true items: - - mode: 6 + - mode: 3 path: path key: key - - mode: 6 + - mode: 3 path: path key: key storageos: @@ -179074,7 +214552,7 @@ components: volumePath: volumePath fsType: fsType fc: - lun: 1 + lun: 2 targetWWNs: - targetWWNs - targetWWNs @@ -179161,10 +214639,8 @@ components: name: name namespace: namespace volumeName: volumeName + volumeAttributesClassName: volumeAttributesClassName resources: - claims: - - name: name - - name: name requests: {} limits: {} selector: @@ -179191,20 +214667,20 @@ components: volumeMode: volumeMode secret: secretName: secretName - defaultMode: 6 + defaultMode: 3 optional: true items: - - mode: 6 + - mode: 3 path: path key: key - - mode: 6 + - mode: 3 path: path key: key projected: sources: - downwardAPI: items: - - mode: 6 + - mode: 1 path: path resourceFieldRef: divisor: divisor @@ -179213,7 +214689,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 6 + - mode: 1 path: path resourceFieldRef: divisor: divisor @@ -179226,29 +214702,48 @@ components: name: name optional: true items: - - mode: 6 + - mode: 3 path: path key: key - - mode: 6 + - mode: 3 path: path key: key secret: name: name optional: true items: - - mode: 6 + - mode: 3 path: path key: key - - mode: 6 + - mode: 3 path: path key: key serviceAccountToken: path: path audience: audience - expirationSeconds: 5 + expirationSeconds: 6 + clusterTrustBundle: + path: path + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + name: name + optional: true + signerName: signerName - downwardAPI: items: - - mode: 6 + - mode: 1 path: path resourceFieldRef: divisor: divisor @@ -179257,7 +214752,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 6 + - mode: 1 path: path resourceFieldRef: divisor: divisor @@ -179270,27 +214765,46 @@ components: name: name optional: true items: - - mode: 6 + - mode: 3 path: path key: key - - mode: 6 + - mode: 3 path: path key: key secret: name: name optional: true items: - - mode: 6 + - mode: 3 path: path key: key - - mode: 6 + - mode: 3 path: path key: key serviceAccountToken: path: path audience: audience - expirationSeconds: 5 - defaultMode: 6 + expirationSeconds: 6 + clusterTrustBundle: + path: path + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + name: name + optional: true + signerName: signerName + defaultMode: 5 cephfs: path: path secretRef: @@ -179321,10 +214835,13 @@ components: endpoints: endpoints readOnly: true gcePersistentDisk: - partition: 2 + partition: 6 readOnly: true pdName: pdName fsType: fsType + image: + reference: reference + pullPolicy: pullPolicy photonPersistentDisk: pdID: pdID fsType: fsType @@ -179342,9 +214859,9 @@ components: readOnly: true fsType: fsType downwardAPI: - defaultMode: 3 + defaultMode: 6 items: - - mode: 6 + - mode: 1 path: path resourceFieldRef: divisor: divisor @@ -179353,7 +214870,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 6 + - mode: 1 path: path resourceFieldRef: divisor: divisor @@ -179363,7 +214880,7 @@ components: apiVersion: apiVersion fieldPath: fieldPath awsElasticBlockStore: - partition: 8 + partition: 9 volumeID: volumeID readOnly: true fsType: fsType @@ -179398,14 +214915,14 @@ components: - monitors - monitors configMap: - defaultMode: 9 + defaultMode: 6 name: name optional: true items: - - mode: 6 + - mode: 3 path: path key: key - - mode: 6 + - mode: 3 path: path key: key storageos: @@ -179445,7 +214962,7 @@ components: volumePath: volumePath fsType: fsType fc: - lun: 1 + lun: 2 targetWWNs: - targetWWNs - targetWWNs @@ -179457,6 +214974,14 @@ components: hostPath: path: path type: type + resources: + claims: + - request: request + name: name + - request: request + name: name + requests: {} + limits: {} ephemeralContainers: - volumeDevices: - devicePath: devicePath @@ -179480,6 +215005,9 @@ components: level: level type: type user: user + appArmorProfile: + localhostProfile: localhostProfile + type: type seccompProfile: localhostProfile: localhostProfile type: type @@ -179494,21 +215022,21 @@ components: runAsNonRoot: true readOnlyRootFilesystem: true startupProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -179524,28 +215052,32 @@ components: - protocol: protocol hostIP: hostIP name: name - containerPort: 4 - hostPort: 7 + containerPort: 7 + hostPort: 1 - protocol: protocol hostIP: hostIP name: name - containerPort: 4 - hostPort: 7 + containerPort: 7 + hostPort: 1 volumeMounts: - mountPath: mountPath mountPropagation: mountPropagation name: name readOnly: true subPath: subPath + recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - mountPath: mountPath mountPropagation: mountPropagation name: name readOnly: true subPath: subPath + recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr lifecycle: postStart: + sleep: + seconds: 5 tcpSocket: port: port host: host @@ -179564,6 +215096,8 @@ components: - name: name value: value preStop: + sleep: + seconds: 5 tcpSocket: port: port host: host @@ -179581,22 +215115,23 @@ components: value: value - name: name value: value + stopSignal: stopSignal readinessProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -179631,21 +215166,21 @@ components: image: image imagePullPolicy: imagePullPolicy livenessProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -179662,8 +215197,10 @@ components: workingDir: workingDir resources: claims: - - name: name - - name: name + - request: request + name: name + - request: request + name: name requests: {} limits: {} env: @@ -179735,6 +215272,9 @@ components: level: level type: type user: user + appArmorProfile: + localhostProfile: localhostProfile + type: type seccompProfile: localhostProfile: localhostProfile type: type @@ -179749,21 +215289,21 @@ components: runAsNonRoot: true readOnlyRootFilesystem: true startupProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -179779,28 +215319,32 @@ components: - protocol: protocol hostIP: hostIP name: name - containerPort: 4 - hostPort: 7 + containerPort: 7 + hostPort: 1 - protocol: protocol hostIP: hostIP name: name - containerPort: 4 - hostPort: 7 + containerPort: 7 + hostPort: 1 volumeMounts: - mountPath: mountPath mountPropagation: mountPropagation name: name readOnly: true subPath: subPath + recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - mountPath: mountPath mountPropagation: mountPropagation name: name readOnly: true subPath: subPath + recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr lifecycle: postStart: + sleep: + seconds: 5 tcpSocket: port: port host: host @@ -179819,6 +215363,8 @@ components: - name: name value: value preStop: + sleep: + seconds: 5 tcpSocket: port: port host: host @@ -179836,22 +215382,23 @@ components: value: value - name: name value: value + stopSignal: stopSignal readinessProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -179886,21 +215433,21 @@ components: image: image imagePullPolicy: imagePullPolicy livenessProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -179917,8 +215464,10 @@ components: workingDir: workingDir resources: claims: - - name: name - - name: name + - request: request + name: name + - request: request + name: name requests: {} limits: {} env: @@ -179969,19 +215518,17 @@ components: tty: true stdinOnce: true serviceAccount: serviceAccount - priority: 1 + priority: 6 restartPolicy: restartPolicy shareProcessNamespace: true hostUsers: true resourceClaims: - - name: name - source: - resourceClaimName: resourceClaimName - resourceClaimTemplateName: resourceClaimTemplateName - - name: name - source: - resourceClaimName: resourceClaimName - resourceClaimTemplateName: resourceClaimTemplateName + - resourceClaimName: resourceClaimName + name: name + resourceClaimTemplateName: resourceClaimTemplateName + - resourceClaimName: resourceClaimName + name: name + resourceClaimTemplateName: resourceClaimTemplateName subdomain: subdomain containers: - volumeDevices: @@ -179992,21 +215539,21 @@ components: image: image imagePullPolicy: imagePullPolicy livenessProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -180024,8 +215571,10 @@ components: workingDir: workingDir resources: claims: - - name: name - - name: name + - request: request + name: name + - request: request + name: name requests: {} limits: {} securityContext: @@ -180043,6 +215592,9 @@ components: level: level type: type user: user + appArmorProfile: + localhostProfile: localhostProfile + type: type seccompProfile: localhostProfile: localhostProfile type: type @@ -180057,21 +215609,21 @@ components: runAsNonRoot: true readOnlyRootFilesystem: true startupProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -180124,13 +215676,13 @@ components: - protocol: protocol hostIP: hostIP name: name - containerPort: 4 - hostPort: 7 + containerPort: 7 + hostPort: 1 - protocol: protocol hostIP: hostIP name: name - containerPort: 4 - hostPort: 7 + containerPort: 7 + hostPort: 1 restartPolicy: restartPolicy command: - command @@ -180141,18 +215693,22 @@ components: name: name readOnly: true subPath: subPath + recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - mountPath: mountPath mountPropagation: mountPropagation name: name readOnly: true subPath: subPath + recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr args: - args - args lifecycle: postStart: + sleep: + seconds: 5 tcpSocket: port: port host: host @@ -180171,6 +215727,8 @@ components: - name: name value: value preStop: + sleep: + seconds: 5 tcpSocket: port: port host: host @@ -180188,24 +215746,25 @@ components: value: value - name: name value: value + stopSignal: stopSignal name: name tty: true readinessProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -180246,21 +215805,21 @@ components: image: image imagePullPolicy: imagePullPolicy livenessProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -180278,8 +215837,10 @@ components: workingDir: workingDir resources: claims: - - name: name - - name: name + - request: request + name: name + - request: request + name: name requests: {} limits: {} securityContext: @@ -180297,6 +215858,9 @@ components: level: level type: type user: user + appArmorProfile: + localhostProfile: localhostProfile + type: type seccompProfile: localhostProfile: localhostProfile type: type @@ -180311,21 +215875,21 @@ components: runAsNonRoot: true readOnlyRootFilesystem: true startupProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -180378,13 +215942,13 @@ components: - protocol: protocol hostIP: hostIP name: name - containerPort: 4 - hostPort: 7 + containerPort: 7 + hostPort: 1 - protocol: protocol hostIP: hostIP name: name - containerPort: 4 - hostPort: 7 + containerPort: 7 + hostPort: 1 restartPolicy: restartPolicy command: - command @@ -180395,18 +215959,22 @@ components: name: name readOnly: true subPath: subPath + recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - mountPath: mountPath mountPropagation: mountPropagation name: name readOnly: true subPath: subPath + recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr args: - args - args lifecycle: postStart: + sleep: + seconds: 5 tcpSocket: port: port host: host @@ -180425,6 +215993,8 @@ components: - name: name value: value preStop: + sleep: + seconds: 5 tcpSocket: port: port host: host @@ -180442,24 +216012,25 @@ components: value: value - name: name value: value + stopSignal: stopSignal name: name tty: true readinessProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -180501,21 +216072,21 @@ components: image: image imagePullPolicy: imagePullPolicy livenessProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -180533,8 +216104,10 @@ components: workingDir: workingDir resources: claims: - - name: name - - name: name + - request: request + name: name + - request: request + name: name requests: {} limits: {} securityContext: @@ -180552,6 +216125,9 @@ components: level: level type: type user: user + appArmorProfile: + localhostProfile: localhostProfile + type: type seccompProfile: localhostProfile: localhostProfile type: type @@ -180566,21 +216142,21 @@ components: runAsNonRoot: true readOnlyRootFilesystem: true startupProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -180633,13 +216209,13 @@ components: - protocol: protocol hostIP: hostIP name: name - containerPort: 4 - hostPort: 7 + containerPort: 7 + hostPort: 1 - protocol: protocol hostIP: hostIP name: name - containerPort: 4 - hostPort: 7 + containerPort: 7 + hostPort: 1 restartPolicy: restartPolicy command: - command @@ -180650,18 +216226,22 @@ components: name: name readOnly: true subPath: subPath + recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - mountPath: mountPath mountPropagation: mountPropagation name: name readOnly: true subPath: subPath + recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr args: - args - args lifecycle: postStart: + sleep: + seconds: 5 tcpSocket: port: port host: host @@ -180680,6 +216260,8 @@ components: - name: name value: value preStop: + sleep: + seconds: 5 tcpSocket: port: port host: host @@ -180697,24 +216279,25 @@ components: value: value - name: name value: value + stopSignal: stopSignal name: name tty: true readinessProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -180755,21 +216338,21 @@ components: image: image imagePullPolicy: imagePullPolicy livenessProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -180787,8 +216370,10 @@ components: workingDir: workingDir resources: claims: - - name: name - - name: name + - request: request + name: name + - request: request + name: name requests: {} limits: {} securityContext: @@ -180806,6 +216391,9 @@ components: level: level type: type user: user + appArmorProfile: + localhostProfile: localhostProfile + type: type seccompProfile: localhostProfile: localhostProfile type: type @@ -180820,21 +216408,21 @@ components: runAsNonRoot: true readOnlyRootFilesystem: true startupProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -180887,13 +216475,13 @@ components: - protocol: protocol hostIP: hostIP name: name - containerPort: 4 - hostPort: 7 + containerPort: 7 + hostPort: 1 - protocol: protocol hostIP: hostIP name: name - containerPort: 4 - hostPort: 7 + containerPort: 7 + hostPort: 1 restartPolicy: restartPolicy command: - command @@ -180904,18 +216492,22 @@ components: name: name readOnly: true subPath: subPath + recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - mountPath: mountPath mountPropagation: mountPropagation name: name readOnly: true subPath: subPath + recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr args: - args - args lifecycle: postStart: + sleep: + seconds: 5 tcpSocket: port: port host: host @@ -180934,6 +216526,8 @@ components: - name: name value: value preStop: + sleep: + seconds: 5 tcpSocket: port: port host: host @@ -180951,24 +216545,25 @@ components: value: value - name: name value: value + stopSignal: stopSignal name: name tty: true readinessProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -181129,6 +216724,12 @@ components: matchLabels: key: matchLabels topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + mismatchLabelKeys: + - mismatchLabelKeys + - mismatchLabelKeys namespaces: - namespaces - namespaces @@ -181161,6 +216762,12 @@ components: matchLabels: key: matchLabels topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + mismatchLabelKeys: + - mismatchLabelKeys + - mismatchLabelKeys namespaces: - namespaces - namespaces @@ -181195,6 +216802,12 @@ components: matchLabels: key: matchLabels topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + mismatchLabelKeys: + - mismatchLabelKeys + - mismatchLabelKeys namespaces: - namespaces - namespaces @@ -181229,6 +216842,12 @@ components: matchLabels: key: matchLabels topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + mismatchLabelKeys: + - mismatchLabelKeys + - mismatchLabelKeys namespaces: - namespaces - namespaces @@ -181264,6 +216883,12 @@ components: matchLabels: key: matchLabels topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + mismatchLabelKeys: + - mismatchLabelKeys + - mismatchLabelKeys namespaces: - namespaces - namespaces @@ -181296,6 +216921,12 @@ components: matchLabels: key: matchLabels topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + mismatchLabelKeys: + - mismatchLabelKeys + - mismatchLabelKeys namespaces: - namespaces - namespaces @@ -181330,6 +216961,12 @@ components: matchLabels: key: matchLabels topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + mismatchLabelKeys: + - mismatchLabelKeys + - mismatchLabelKeys namespaces: - namespaces - namespaces @@ -181364,6 +217001,12 @@ components: matchLabels: key: matchLabels topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + mismatchLabelKeys: + - mismatchLabelKeys + - mismatchLabelKeys namespaces: - namespaces - namespaces @@ -181417,449 +217060,815 @@ components: namespace: namespace apiVersion: apiVersion kind: kind - - template: - metadata: - generation: 6 - finalizers: - - finalizers - - finalizers - resourceVersion: resourceVersion - annotations: - key: annotations - generateName: generateName - deletionTimestamp: 2000-01-23T04:56:07.000+00:00 - labels: - key: labels - ownerReferences: - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind + properties: + apiVersion: + description: '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' + type: string + items: + description: List of pod templates + items: + $ref: '#/components/schemas/v1.PodTemplate' + type: array + kind: + description: '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' + type: string + metadata: + $ref: '#/components/schemas/v1.ListMeta' + required: + - items + type: object + x-kubernetes-group-version-kind: + - group: "" + kind: PodTemplateList + version: v1 + x-implements: + - io.kubernetes.client.common.KubernetesListObject + v1.PodTemplateSpec: + description: PodTemplateSpec describes the data a pod should have when created + from a template + example: + metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: '{}' + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: '{}' + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + creationTimestamp: 2000-01-23T04:56:07.000+00:00 + name: name + namespace: namespace + spec: + dnsPolicy: dnsPolicy + nodeName: nodeName + terminationGracePeriodSeconds: 9 + dnsConfig: + searches: + - searches + - searches + nameservers: + - nameservers + - nameservers + options: + - name: name + value: value + - name: name + value: value + hostNetwork: true + readinessGates: + - conditionType: conditionType + - conditionType: conditionType + serviceAccountName: serviceAccountName + imagePullSecrets: + - name: name + - name: name + priorityClassName: priorityClassName + hostAliases: + - ip: ip + hostnames: + - hostnames + - hostnames + - ip: ip + hostnames: + - hostnames + - hostnames + securityContext: + seLinuxOptions: + role: role + level: level + type: type + user: user + appArmorProfile: + localhostProfile: localhostProfile + type: type + fsGroup: 7 + fsGroupChangePolicy: fsGroupChangePolicy + seLinuxChangePolicy: seLinuxChangePolicy + runAsGroup: 1 + runAsNonRoot: true + sysctls: + - name: name + value: value + - name: name + value: value + runAsUser: 4 + seccompProfile: + localhostProfile: localhostProfile + type: type + windowsOptions: + gmsaCredentialSpec: gmsaCredentialSpec + runAsUserName: runAsUserName + hostProcess: true + gmsaCredentialSpecName: gmsaCredentialSpecName + supplementalGroups: + - 5 + - 5 + supplementalGroupsPolicy: supplementalGroupsPolicy + preemptionPolicy: preemptionPolicy + nodeSelector: + key: nodeSelector + hostname: hostname + runtimeClassName: runtimeClassName + tolerations: + - effect: effect + tolerationSeconds: 9 + value: value + key: key + operator: operator + - effect: effect + tolerationSeconds: 9 + value: value + key: key + operator: operator + automountServiceAccountToken: true + schedulingGates: + - name: name + - name: name + schedulerName: schedulerName + activeDeadlineSeconds: 0 + os: + name: name + setHostnameAsFQDN: true + enableServiceLinks: true + overhead: {} + hostIPC: true + topologySpreadConstraints: + - nodeTaintsPolicy: nodeTaintsPolicy + whenUnsatisfiable: whenUnsatisfiable + maxSkew: 6 + nodeAffinityPolicy: nodeAffinityPolicy + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + minDomains: 8 + topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + - nodeTaintsPolicy: nodeTaintsPolicy + whenUnsatisfiable: whenUnsatisfiable + maxSkew: 6 + nodeAffinityPolicy: nodeAffinityPolicy + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + minDomains: 8 + topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + volumes: + - quobyte: + volume: volume + registry: registry + readOnly: true + user: user + tenant: tenant + group: group + azureFile: + secretName: secretName + readOnly: true + shareName: shareName + flexVolume: + driver: driver + options: + key: options + secretRef: name: name - blockOwnerDeletion: true - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind + readOnly: true + fsType: fsType + ephemeral: + volumeClaimTemplate: + metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: '{}' + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: '{}' + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + creationTimestamp: 2000-01-23T04:56:07.000+00:00 + name: name + namespace: namespace + spec: + storageClassName: storageClassName + dataSourceRef: + apiGroup: apiGroup + kind: kind + name: name + namespace: namespace + volumeName: volumeName + volumeAttributesClassName: volumeAttributesClassName + resources: + requests: {} + limits: {} + selector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + accessModes: + - accessModes + - accessModes + dataSource: + apiGroup: apiGroup + kind: kind + name: name + volumeMode: volumeMode + secret: + secretName: secretName + defaultMode: 3 + optional: true + items: + - mode: 3 + path: path + key: key + - mode: 3 + path: path + key: key + projected: + sources: + - downwardAPI: + items: + - mode: 1 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - mode: 1 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + configMap: + name: name + optional: true + items: + - mode: 3 + path: path + key: key + - mode: 3 + path: path + key: key + secret: + name: name + optional: true + items: + - mode: 3 + path: path + key: key + - mode: 3 + path: path + key: key + serviceAccountToken: + path: path + audience: audience + expirationSeconds: 6 + clusterTrustBundle: + path: path + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + name: name + optional: true + signerName: signerName + - downwardAPI: + items: + - mode: 1 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - mode: 1 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + configMap: + name: name + optional: true + items: + - mode: 3 + path: path + key: key + - mode: 3 + path: path + key: key + secret: + name: name + optional: true + items: + - mode: 3 + path: path + key: key + - mode: 3 + path: path + key: key + serviceAccountToken: + path: path + audience: audience + expirationSeconds: 6 + clusterTrustBundle: + path: path + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + name: name + optional: true + signerName: signerName + defaultMode: 5 + cephfs: + path: path + secretRef: + name: name + secretFile: secretFile + readOnly: true + user: user + monitors: + - monitors + - monitors + scaleIO: + system: system + protectionDomain: protectionDomain + sslEnabled: true + storageMode: storageMode + volumeName: volumeName + secretRef: + name: name + readOnly: true + fsType: fsType + storagePool: storagePool + gateway: gateway + emptyDir: + sizeLimit: sizeLimit + medium: medium + glusterfs: + path: path + endpoints: endpoints + readOnly: true + gcePersistentDisk: + partition: 6 + readOnly: true + pdName: pdName + fsType: fsType + image: + reference: reference + pullPolicy: pullPolicy + photonPersistentDisk: + pdID: pdID + fsType: fsType + azureDisk: + diskName: diskName + kind: kind + readOnly: true + cachingMode: cachingMode + diskURI: diskURI + fsType: fsType + cinder: + secretRef: + name: name + volumeID: volumeID + readOnly: true + fsType: fsType + downwardAPI: + defaultMode: 6 + items: + - mode: 1 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - mode: 1 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + awsElasticBlockStore: + partition: 9 + volumeID: volumeID + readOnly: true + fsType: fsType + flocker: + datasetName: datasetName + datasetUUID: datasetUUID + iscsi: + chapAuthSession: true + iscsiInterface: iscsiInterface + lun: 6 + chapAuthDiscovery: true + iqn: iqn + portals: + - portals + - portals + secretRef: + name: name + initiatorName: initiatorName + readOnly: true + fsType: fsType + targetPortal: targetPortal + rbd: + image: image + pool: pool + secretRef: name: name - blockOwnerDeletion: true - selfLink: selfLink - deletionGracePeriodSeconds: 0 - uid: uid - managedFields: - - apiVersion: apiVersion - fieldsV1: '{}' - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - - apiVersion: apiVersion - fieldsV1: '{}' - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - creationTimestamp: 2000-01-23T04:56:07.000+00:00 + readOnly: true + fsType: fsType + keyring: keyring + user: user + monitors: + - monitors + - monitors + configMap: + defaultMode: 6 name: name - namespace: namespace - spec: - dnsPolicy: dnsPolicy - nodeName: nodeName - terminationGracePeriodSeconds: 5 - dnsConfig: - searches: - - searches - - searches - nameservers: - - nameservers - - nameservers - options: - - name: name - value: value - - name: name - value: value - hostNetwork: true - readinessGates: - - conditionType: conditionType - - conditionType: conditionType - serviceAccountName: serviceAccountName - imagePullSecrets: - - name: name - - name: name - priorityClassName: priorityClassName - hostAliases: - - ip: ip - hostnames: - - hostnames - - hostnames - - ip: ip - hostnames: - - hostnames - - hostnames - securityContext: - runAsUser: 1 - seLinuxOptions: - role: role - level: level - type: type - user: user - fsGroup: 6 - seccompProfile: - localhostProfile: localhostProfile - type: type - windowsOptions: - gmsaCredentialSpec: gmsaCredentialSpec - runAsUserName: runAsUserName - hostProcess: true - gmsaCredentialSpecName: gmsaCredentialSpecName - fsGroupChangePolicy: fsGroupChangePolicy - supplementalGroups: - - 4 - - 4 - runAsGroup: 7 - runAsNonRoot: true - sysctls: - - name: name - value: value - - name: name - value: value - preemptionPolicy: preemptionPolicy - nodeSelector: - key: nodeSelector - hostname: hostname - runtimeClassName: runtimeClassName - tolerations: - - effect: effect - tolerationSeconds: 9 - value: value + optional: true + items: + - mode: 3 + path: path key: key - operator: operator - - effect: effect - tolerationSeconds: 9 - value: value + - mode: 3 + path: path key: key - operator: operator - automountServiceAccountToken: true - schedulingGates: - - name: name - - name: name - schedulerName: schedulerName - activeDeadlineSeconds: 0 - os: + storageos: + volumeNamespace: volumeNamespace + volumeName: volumeName + secretRef: name: name - setHostnameAsFQDN: true - enableServiceLinks: true - overhead: {} - hostIPC: true - topologySpreadConstraints: - - nodeTaintsPolicy: nodeTaintsPolicy - whenUnsatisfiable: whenUnsatisfiable - maxSkew: 9 - nodeAffinityPolicy: nodeAffinityPolicy - labelSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - minDomains: 6 - topologyKey: topologyKey - matchLabelKeys: - - matchLabelKeys - - matchLabelKeys - - nodeTaintsPolicy: nodeTaintsPolicy - whenUnsatisfiable: whenUnsatisfiable - maxSkew: 9 - nodeAffinityPolicy: nodeAffinityPolicy - labelSelector: - matchExpressions: - - values: - - values - - values + readOnly: true + fsType: fsType + csi: + driver: driver + nodePublishSecretRef: + name: name + readOnly: true + fsType: fsType + volumeAttributes: + key: volumeAttributes + name: name + nfs: + path: path + server: server + readOnly: true + persistentVolumeClaim: + claimName: claimName + readOnly: true + gitRepo: + repository: repository + directory: directory + revision: revision + portworxVolume: + volumeID: volumeID + readOnly: true + fsType: fsType + vsphereVolume: + storagePolicyName: storagePolicyName + storagePolicyID: storagePolicyID + volumePath: volumePath + fsType: fsType + fc: + lun: 2 + targetWWNs: + - targetWWNs + - targetWWNs + readOnly: true + wwids: + - wwids + - wwids + fsType: fsType + hostPath: + path: path + type: type + - quobyte: + volume: volume + registry: registry + readOnly: true + user: user + tenant: tenant + group: group + azureFile: + secretName: secretName + readOnly: true + shareName: shareName + flexVolume: + driver: driver + options: + key: options + secretRef: + name: name + readOnly: true + fsType: fsType + ephemeral: + volumeClaimTemplate: + metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: '{}' + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: '{}' + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + creationTimestamp: 2000-01-23T04:56:07.000+00:00 + name: name + namespace: namespace + spec: + storageClassName: storageClassName + dataSourceRef: + apiGroup: apiGroup + kind: kind + name: name + namespace: namespace + volumeName: volumeName + volumeAttributesClassName: volumeAttributesClassName + resources: + requests: {} + limits: {} + selector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + accessModes: + - accessModes + - accessModes + dataSource: + apiGroup: apiGroup + kind: kind + name: name + volumeMode: volumeMode + secret: + secretName: secretName + defaultMode: 3 + optional: true + items: + - mode: 3 + path: path + key: key + - mode: 3 + path: path + key: key + projected: + sources: + - downwardAPI: + items: + - mode: 1 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - mode: 1 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + configMap: + name: name + optional: true + items: + - mode: 3 + path: path key: key - operator: operator - - values: - - values - - values + - mode: 3 + path: path key: key - operator: operator - matchLabels: - key: matchLabels - minDomains: 6 - topologyKey: topologyKey - matchLabelKeys: - - matchLabelKeys - - matchLabelKeys - volumes: - - quobyte: - volume: volume - registry: registry - readOnly: true - user: user - tenant: tenant - group: group - azureFile: - secretName: secretName - readOnly: true - shareName: shareName - flexVolume: - driver: driver - options: - key: options - secretRef: - name: name - readOnly: true - fsType: fsType - ephemeral: - volumeClaimTemplate: - metadata: - generation: 6 - finalizers: - - finalizers - - finalizers - resourceVersion: resourceVersion - annotations: - key: annotations - generateName: generateName - deletionTimestamp: 2000-01-23T04:56:07.000+00:00 - labels: - key: labels - ownerReferences: - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - selfLink: selfLink - deletionGracePeriodSeconds: 0 - uid: uid - managedFields: - - apiVersion: apiVersion - fieldsV1: '{}' - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - - apiVersion: apiVersion - fieldsV1: '{}' - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - creationTimestamp: 2000-01-23T04:56:07.000+00:00 - name: name - namespace: namespace - spec: - storageClassName: storageClassName - dataSourceRef: - apiGroup: apiGroup - kind: kind - name: name - namespace: namespace - volumeName: volumeName - resources: - claims: - - name: name - - name: name - requests: {} - limits: {} - selector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - accessModes: - - accessModes - - accessModes - dataSource: - apiGroup: apiGroup - kind: kind - name: name - volumeMode: volumeMode secret: - secretName: secretName - defaultMode: 6 + name: name optional: true items: - - mode: 6 + - mode: 3 path: path key: key - - mode: 6 + - mode: 3 path: path key: key - projected: - sources: - - downwardAPI: - items: - - mode: 6 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - mode: 6 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - configMap: - name: name - optional: true - items: - - mode: 6 - path: path - key: key - - mode: 6 - path: path - key: key - secret: - name: name - optional: true - items: - - mode: 6 - path: path - key: key - - mode: 6 - path: path - key: key - serviceAccountToken: - path: path - audience: audience - expirationSeconds: 5 - - downwardAPI: - items: - - mode: 6 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - mode: 6 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - configMap: - name: name - optional: true - items: - - mode: 6 - path: path - key: key - - mode: 6 - path: path - key: key - secret: - name: name - optional: true - items: - - mode: 6 - path: path - key: key - - mode: 6 - path: path - key: key - serviceAccountToken: - path: path - audience: audience - expirationSeconds: 5 - defaultMode: 6 - cephfs: + serviceAccountToken: path: path - secretRef: - name: name - secretFile: secretFile - readOnly: true - user: user - monitors: - - monitors - - monitors - scaleIO: - system: system - protectionDomain: protectionDomain - sslEnabled: true - storageMode: storageMode - volumeName: volumeName - secretRef: - name: name - readOnly: true - fsType: fsType - storagePool: storagePool - gateway: gateway - emptyDir: - sizeLimit: sizeLimit - medium: medium - glusterfs: + audience: audience + expirationSeconds: 6 + clusterTrustBundle: path: path - endpoints: endpoints - readOnly: true - gcePersistentDisk: - partition: 2 - readOnly: true - pdName: pdName - fsType: fsType - photonPersistentDisk: - pdID: pdID - fsType: fsType - azureDisk: - diskName: diskName - kind: kind - readOnly: true - cachingMode: cachingMode - diskURI: diskURI - fsType: fsType - cinder: - secretRef: - name: name - volumeID: volumeID - readOnly: true - fsType: fsType - downwardAPI: - defaultMode: 3 + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + name: name + optional: true + signerName: signerName + - downwardAPI: items: - - mode: 6 + - mode: 1 path: path resourceFieldRef: divisor: divisor @@ -181868,7 +217877,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 6 + - mode: 1 path: path resourceFieldRef: divisor: divisor @@ -181877,2462 +217886,2729 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - awsElasticBlockStore: - partition: 8 - volumeID: volumeID - readOnly: true - fsType: fsType - flocker: - datasetName: datasetName - datasetUUID: datasetUUID - iscsi: - chapAuthSession: true - iscsiInterface: iscsiInterface - lun: 6 - chapAuthDiscovery: true - iqn: iqn - portals: - - portals - - portals - secretRef: - name: name - initiatorName: initiatorName - readOnly: true - fsType: fsType - targetPortal: targetPortal - rbd: - image: image - pool: pool - secretRef: - name: name - readOnly: true - fsType: fsType - keyring: keyring - user: user - monitors: - - monitors - - monitors configMap: - defaultMode: 9 name: name optional: true - items: - - mode: 6 - path: path - key: key - - mode: 6 - path: path - key: key - storageos: - volumeNamespace: volumeNamespace - volumeName: volumeName - secretRef: - name: name - readOnly: true - fsType: fsType - csi: - driver: driver - nodePublishSecretRef: - name: name - readOnly: true - fsType: fsType - volumeAttributes: - key: volumeAttributes - name: name - nfs: - path: path - server: server - readOnly: true - persistentVolumeClaim: - claimName: claimName - readOnly: true - gitRepo: - repository: repository - directory: directory - revision: revision - portworxVolume: - volumeID: volumeID - readOnly: true - fsType: fsType - vsphereVolume: - storagePolicyName: storagePolicyName - storagePolicyID: storagePolicyID - volumePath: volumePath - fsType: fsType - fc: - lun: 1 - targetWWNs: - - targetWWNs - - targetWWNs - readOnly: true - wwids: - - wwids - - wwids - fsType: fsType - hostPath: - path: path - type: type - - quobyte: - volume: volume - registry: registry - readOnly: true - user: user - tenant: tenant - group: group - azureFile: - secretName: secretName - readOnly: true - shareName: shareName - flexVolume: - driver: driver - options: - key: options - secretRef: - name: name - readOnly: true - fsType: fsType - ephemeral: - volumeClaimTemplate: - metadata: - generation: 6 - finalizers: - - finalizers - - finalizers - resourceVersion: resourceVersion - annotations: - key: annotations - generateName: generateName - deletionTimestamp: 2000-01-23T04:56:07.000+00:00 - labels: - key: labels - ownerReferences: - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - selfLink: selfLink - deletionGracePeriodSeconds: 0 - uid: uid - managedFields: - - apiVersion: apiVersion - fieldsV1: '{}' - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - - apiVersion: apiVersion - fieldsV1: '{}' - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - creationTimestamp: 2000-01-23T04:56:07.000+00:00 - name: name - namespace: namespace - spec: - storageClassName: storageClassName - dataSourceRef: - apiGroup: apiGroup - kind: kind - name: name - namespace: namespace - volumeName: volumeName - resources: - claims: - - name: name - - name: name - requests: {} - limits: {} - selector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - accessModes: - - accessModes - - accessModes - dataSource: - apiGroup: apiGroup - kind: kind - name: name - volumeMode: volumeMode - secret: - secretName: secretName - defaultMode: 6 + items: + - mode: 3 + path: path + key: key + - mode: 3 + path: path + key: key + secret: + name: name + optional: true + items: + - mode: 3 + path: path + key: key + - mode: 3 + path: path + key: key + serviceAccountToken: + path: path + audience: audience + expirationSeconds: 6 + clusterTrustBundle: + path: path + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + name: name + optional: true + signerName: signerName + defaultMode: 5 + cephfs: + path: path + secretRef: + name: name + secretFile: secretFile + readOnly: true + user: user + monitors: + - monitors + - monitors + scaleIO: + system: system + protectionDomain: protectionDomain + sslEnabled: true + storageMode: storageMode + volumeName: volumeName + secretRef: + name: name + readOnly: true + fsType: fsType + storagePool: storagePool + gateway: gateway + emptyDir: + sizeLimit: sizeLimit + medium: medium + glusterfs: + path: path + endpoints: endpoints + readOnly: true + gcePersistentDisk: + partition: 6 + readOnly: true + pdName: pdName + fsType: fsType + image: + reference: reference + pullPolicy: pullPolicy + photonPersistentDisk: + pdID: pdID + fsType: fsType + azureDisk: + diskName: diskName + kind: kind + readOnly: true + cachingMode: cachingMode + diskURI: diskURI + fsType: fsType + cinder: + secretRef: + name: name + volumeID: volumeID + readOnly: true + fsType: fsType + downwardAPI: + defaultMode: 6 + items: + - mode: 1 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - mode: 1 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + awsElasticBlockStore: + partition: 9 + volumeID: volumeID + readOnly: true + fsType: fsType + flocker: + datasetName: datasetName + datasetUUID: datasetUUID + iscsi: + chapAuthSession: true + iscsiInterface: iscsiInterface + lun: 6 + chapAuthDiscovery: true + iqn: iqn + portals: + - portals + - portals + secretRef: + name: name + initiatorName: initiatorName + readOnly: true + fsType: fsType + targetPortal: targetPortal + rbd: + image: image + pool: pool + secretRef: + name: name + readOnly: true + fsType: fsType + keyring: keyring + user: user + monitors: + - monitors + - monitors + configMap: + defaultMode: 6 + name: name + optional: true + items: + - mode: 3 + path: path + key: key + - mode: 3 + path: path + key: key + storageos: + volumeNamespace: volumeNamespace + volumeName: volumeName + secretRef: + name: name + readOnly: true + fsType: fsType + csi: + driver: driver + nodePublishSecretRef: + name: name + readOnly: true + fsType: fsType + volumeAttributes: + key: volumeAttributes + name: name + nfs: + path: path + server: server + readOnly: true + persistentVolumeClaim: + claimName: claimName + readOnly: true + gitRepo: + repository: repository + directory: directory + revision: revision + portworxVolume: + volumeID: volumeID + readOnly: true + fsType: fsType + vsphereVolume: + storagePolicyName: storagePolicyName + storagePolicyID: storagePolicyID + volumePath: volumePath + fsType: fsType + fc: + lun: 2 + targetWWNs: + - targetWWNs + - targetWWNs + readOnly: true + wwids: + - wwids + - wwids + fsType: fsType + hostPath: + path: path + type: type + resources: + claims: + - request: request + name: name + - request: request + name: name + requests: {} + limits: {} + ephemeralContainers: + - volumeDevices: + - devicePath: devicePath + name: name + - devicePath: devicePath + name: name + stdin: true + terminationMessagePolicy: terminationMessagePolicy + securityContext: + privileged: true + runAsUser: 1 + capabilities: + add: + - add + - add + drop: + - drop + - drop + seLinuxOptions: + role: role + level: level + type: type + user: user + appArmorProfile: + localhostProfile: localhostProfile + type: type + seccompProfile: + localhostProfile: localhostProfile + type: type + windowsOptions: + gmsaCredentialSpec: gmsaCredentialSpec + runAsUserName: runAsUserName + hostProcess: true + gmsaCredentialSpecName: gmsaCredentialSpecName + procMount: procMount + allowPrivilegeEscalation: true + runAsGroup: 1 + runAsNonRoot: true + readOnlyRootFilesystem: true + startupProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: port + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + ports: + - protocol: protocol + hostIP: hostIP + name: name + containerPort: 7 + hostPort: 1 + - protocol: protocol + hostIP: hostIP + name: name + containerPort: 7 + hostPort: 1 + volumeMounts: + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + recursiveReadOnly: recursiveReadOnly + subPathExpr: subPathExpr + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + recursiveReadOnly: recursiveReadOnly + subPathExpr: subPathExpr + lifecycle: + postStart: + sleep: + seconds: 5 + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + preStop: + sleep: + seconds: 5 + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + stopSignal: stopSignal + readinessProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: port + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + resizePolicy: + - resourceName: resourceName + restartPolicy: restartPolicy + - resourceName: resourceName + restartPolicy: restartPolicy + envFrom: + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + image: image + imagePullPolicy: imagePullPolicy + livenessProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: port + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + targetContainerName: targetContainerName + terminationMessagePath: terminationMessagePath + workingDir: workingDir + resources: + claims: + - request: request + name: name + - request: request + name: name + requests: {} + limits: {} + env: + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name optional: true - items: - - mode: 6 - path: path - key: key - - mode: 6 - path: path - key: key - projected: - sources: - - downwardAPI: - items: - - mode: 6 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - mode: 6 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - configMap: - name: name - optional: true - items: - - mode: 6 - path: path - key: key - - mode: 6 - path: path - key: key - secret: - name: name - optional: true - items: - - mode: 6 - path: path - key: key - - mode: 6 - path: path - key: key - serviceAccountToken: - path: path - audience: audience - expirationSeconds: 5 - - downwardAPI: - items: - - mode: 6 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - mode: 6 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - configMap: - name: name - optional: true - items: - - mode: 6 - path: path - key: key - - mode: 6 - path: path - key: key - secret: - name: name - optional: true - items: - - mode: 6 - path: path - key: key - - mode: 6 - path: path - key: key - serviceAccountToken: - path: path - audience: audience - expirationSeconds: 5 - defaultMode: 6 - cephfs: - path: path - secretRef: - name: name - secretFile: secretFile - readOnly: true - user: user - monitors: - - monitors - - monitors - scaleIO: - system: system - protectionDomain: protectionDomain - sslEnabled: true - storageMode: storageMode - volumeName: volumeName - secretRef: - name: name - readOnly: true - fsType: fsType - storagePool: storagePool - gateway: gateway - emptyDir: - sizeLimit: sizeLimit - medium: medium - glusterfs: - path: path - endpoints: endpoints - readOnly: true - gcePersistentDisk: - partition: 2 - readOnly: true - pdName: pdName - fsType: fsType - photonPersistentDisk: - pdID: pdID - fsType: fsType - azureDisk: - diskName: diskName - kind: kind - readOnly: true - cachingMode: cachingMode - diskURI: diskURI - fsType: fsType - cinder: - secretRef: - name: name - volumeID: volumeID - readOnly: true - fsType: fsType - downwardAPI: - defaultMode: 3 - items: - - mode: 6 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - mode: 6 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - awsElasticBlockStore: - partition: 8 - volumeID: volumeID - readOnly: true - fsType: fsType - flocker: - datasetName: datasetName - datasetUUID: datasetUUID - iscsi: - chapAuthSession: true - iscsiInterface: iscsiInterface - lun: 6 - chapAuthDiscovery: true - iqn: iqn - portals: - - portals - - portals - secretRef: - name: name - initiatorName: initiatorName - readOnly: true - fsType: fsType - targetPortal: targetPortal - rbd: - image: image - pool: pool - secretRef: - name: name - readOnly: true - fsType: fsType - keyring: keyring - user: user - monitors: - - monitors - - monitors - configMap: - defaultMode: 9 + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - name: name + value: value + valueFrom: + secretKeyRef: name: name optional: true - items: - - mode: 6 - path: path - key: key - - mode: 6 - path: path - key: key - storageos: - volumeNamespace: volumeNamespace - volumeName: volumeName - secretRef: - name: name - readOnly: true - fsType: fsType - csi: - driver: driver - nodePublishSecretRef: - name: name - readOnly: true - fsType: fsType - volumeAttributes: - key: volumeAttributes - name: name - nfs: + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + restartPolicy: restartPolicy + command: + - command + - command + args: + - args + - args + name: name + tty: true + stdinOnce: true + - volumeDevices: + - devicePath: devicePath + name: name + - devicePath: devicePath + name: name + stdin: true + terminationMessagePolicy: terminationMessagePolicy + securityContext: + privileged: true + runAsUser: 1 + capabilities: + add: + - add + - add + drop: + - drop + - drop + seLinuxOptions: + role: role + level: level + type: type + user: user + appArmorProfile: + localhostProfile: localhostProfile + type: type + seccompProfile: + localhostProfile: localhostProfile + type: type + windowsOptions: + gmsaCredentialSpec: gmsaCredentialSpec + runAsUserName: runAsUserName + hostProcess: true + gmsaCredentialSpecName: gmsaCredentialSpecName + procMount: procMount + allowPrivilegeEscalation: true + runAsGroup: 1 + runAsNonRoot: true + readOnlyRootFilesystem: true + startupProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: port + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + ports: + - protocol: protocol + hostIP: hostIP + name: name + containerPort: 7 + hostPort: 1 + - protocol: protocol + hostIP: hostIP + name: name + containerPort: 7 + hostPort: 1 + volumeMounts: + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + recursiveReadOnly: recursiveReadOnly + subPathExpr: subPathExpr + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + recursiveReadOnly: recursiveReadOnly + subPathExpr: subPathExpr + lifecycle: + postStart: + sleep: + seconds: 5 + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: path: path - server: server - readOnly: true - persistentVolumeClaim: - claimName: claimName - readOnly: true - gitRepo: - repository: repository - directory: directory - revision: revision - portworxVolume: - volumeID: volumeID - readOnly: true - fsType: fsType - vsphereVolume: - storagePolicyName: storagePolicyName - storagePolicyID: storagePolicyID - volumePath: volumePath - fsType: fsType - fc: - lun: 1 - targetWWNs: - - targetWWNs - - targetWWNs - readOnly: true - wwids: - - wwids - - wwids - fsType: fsType - hostPath: + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + preStop: + sleep: + seconds: 5 + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: path: path - type: type - ephemeralContainers: - - volumeDevices: - - devicePath: devicePath + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + stopSignal: stopSignal + readinessProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: port + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + resizePolicy: + - resourceName: resourceName + restartPolicy: restartPolicy + - resourceName: resourceName + restartPolicy: restartPolicy + envFrom: + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + image: image + imagePullPolicy: imagePullPolicy + livenessProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: port + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + targetContainerName: targetContainerName + terminationMessagePath: terminationMessagePath + workingDir: workingDir + resources: + claims: + - request: request + name: name + - request: request + name: name + requests: {} + limits: {} + env: + - name: name + value: value + valueFrom: + secretKeyRef: name: name - - devicePath: devicePath + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: name: name - stdin: true - terminationMessagePolicy: terminationMessagePolicy - securityContext: - privileged: true - runAsUser: 1 - capabilities: - add: - - add - - add - drop: - - drop - - drop - seLinuxOptions: - role: role - level: level - type: type - user: user - seccompProfile: - localhostProfile: localhostProfile - type: type - windowsOptions: - gmsaCredentialSpec: gmsaCredentialSpec - runAsUserName: runAsUserName - hostProcess: true - gmsaCredentialSpecName: gmsaCredentialSpecName - procMount: procMount - allowPrivilegeEscalation: true - runAsGroup: 1 - runAsNonRoot: true - readOnlyRootFilesystem: true - startupProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - ports: - - protocol: protocol - hostIP: hostIP + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - name: name + value: value + valueFrom: + secretKeyRef: name: name - containerPort: 4 - hostPort: 7 - - protocol: protocol - hostIP: hostIP + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: name: name - containerPort: 4 - hostPort: 7 - volumeMounts: - - mountPath: mountPath - mountPropagation: mountPropagation + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + restartPolicy: restartPolicy + command: + - command + - command + args: + - args + - args + name: name + tty: true + stdinOnce: true + serviceAccount: serviceAccount + priority: 6 + restartPolicy: restartPolicy + shareProcessNamespace: true + hostUsers: true + resourceClaims: + - resourceClaimName: resourceClaimName + name: name + resourceClaimTemplateName: resourceClaimTemplateName + - resourceClaimName: resourceClaimName + name: name + resourceClaimTemplateName: resourceClaimTemplateName + subdomain: subdomain + containers: + - volumeDevices: + - devicePath: devicePath + name: name + - devicePath: devicePath + name: name + image: image + imagePullPolicy: imagePullPolicy + livenessProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: port + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + stdin: true + terminationMessagePolicy: terminationMessagePolicy + terminationMessagePath: terminationMessagePath + workingDir: workingDir + resources: + claims: + - request: request + name: name + - request: request + name: name + requests: {} + limits: {} + securityContext: + privileged: true + runAsUser: 1 + capabilities: + add: + - add + - add + drop: + - drop + - drop + seLinuxOptions: + role: role + level: level + type: type + user: user + appArmorProfile: + localhostProfile: localhostProfile + type: type + seccompProfile: + localhostProfile: localhostProfile + type: type + windowsOptions: + gmsaCredentialSpec: gmsaCredentialSpec + runAsUserName: runAsUserName + hostProcess: true + gmsaCredentialSpecName: gmsaCredentialSpecName + procMount: procMount + allowPrivilegeEscalation: true + runAsGroup: 1 + runAsNonRoot: true + readOnlyRootFilesystem: true + startupProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: port + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + env: + - name: name + value: value + valueFrom: + secretKeyRef: name: name - readOnly: true - subPath: subPath - subPathExpr: subPathExpr - - mountPath: mountPath - mountPropagation: mountPropagation + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: name: name - readOnly: true - subPath: subPath - subPathExpr: subPathExpr - lifecycle: - postStart: - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - preStop: - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - readinessProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - resizePolicy: - - resourceName: resourceName - restartPolicy: restartPolicy - - resourceName: resourceName - restartPolicy: restartPolicy - envFrom: - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - image: image - imagePullPolicy: imagePullPolicy - livenessProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - targetContainerName: targetContainerName - terminationMessagePath: terminationMessagePath - workingDir: workingDir - resources: - claims: + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + ports: + - protocol: protocol + hostIP: hostIP + name: name + containerPort: 7 + hostPort: 1 + - protocol: protocol + hostIP: hostIP + name: name + containerPort: 7 + hostPort: 1 + restartPolicy: restartPolicy + command: + - command + - command + volumeMounts: + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + recursiveReadOnly: recursiveReadOnly + subPathExpr: subPathExpr + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + recursiveReadOnly: recursiveReadOnly + subPathExpr: subPathExpr + args: + - args + - args + lifecycle: + postStart: + sleep: + seconds: 5 + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: - name: name + value: value - name: name - requests: {} - limits: {} - env: + value: value + preStop: + sleep: + seconds: 5 + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + stopSignal: stopSignal + name: name + tty: true + readinessProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: port + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: - name: name value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - name: name value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - restartPolicy: restartPolicy + resizePolicy: + - resourceName: resourceName + restartPolicy: restartPolicy + - resourceName: resourceName + restartPolicy: restartPolicy + stdinOnce: true + envFrom: + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + - volumeDevices: + - devicePath: devicePath + name: name + - devicePath: devicePath + name: name + image: image + imagePullPolicy: imagePullPolicy + livenessProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: port + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: command: - command - command - args: - - args - - args + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + stdin: true + terminationMessagePolicy: terminationMessagePolicy + terminationMessagePath: terminationMessagePath + workingDir: workingDir + resources: + claims: + - request: request name: name - tty: true - stdinOnce: true - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name - stdin: true - terminationMessagePolicy: terminationMessagePolicy - securityContext: - privileged: true - runAsUser: 1 - capabilities: - add: - - add - - add - drop: - - drop - - drop - seLinuxOptions: - role: role - level: level - type: type - user: user - seccompProfile: - localhostProfile: localhostProfile - type: type - windowsOptions: - gmsaCredentialSpec: gmsaCredentialSpec - runAsUserName: runAsUserName - hostProcess: true - gmsaCredentialSpecName: gmsaCredentialSpecName - procMount: procMount - allowPrivilegeEscalation: true - runAsGroup: 1 - runAsNonRoot: true - readOnlyRootFilesystem: true - startupProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - ports: - - protocol: protocol - hostIP: hostIP + - request: request + name: name + requests: {} + limits: {} + securityContext: + privileged: true + runAsUser: 1 + capabilities: + add: + - add + - add + drop: + - drop + - drop + seLinuxOptions: + role: role + level: level + type: type + user: user + appArmorProfile: + localhostProfile: localhostProfile + type: type + seccompProfile: + localhostProfile: localhostProfile + type: type + windowsOptions: + gmsaCredentialSpec: gmsaCredentialSpec + runAsUserName: runAsUserName + hostProcess: true + gmsaCredentialSpecName: gmsaCredentialSpecName + procMount: procMount + allowPrivilegeEscalation: true + runAsGroup: 1 + runAsNonRoot: true + readOnlyRootFilesystem: true + startupProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: port + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + env: + - name: name + value: value + valueFrom: + secretKeyRef: name: name - containerPort: 4 - hostPort: 7 - - protocol: protocol - hostIP: hostIP + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: name: name - containerPort: 4 - hostPort: 7 - volumeMounts: - - mountPath: mountPath - mountPropagation: mountPropagation + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - name: name + value: value + valueFrom: + secretKeyRef: name: name - readOnly: true - subPath: subPath - subPathExpr: subPathExpr - - mountPath: mountPath - mountPropagation: mountPropagation + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: name: name - readOnly: true - subPath: subPath - subPathExpr: subPathExpr - lifecycle: - postStart: - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - preStop: - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - readinessProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - resizePolicy: - - resourceName: resourceName - restartPolicy: restartPolicy - - resourceName: resourceName - restartPolicy: restartPolicy - envFrom: - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - image: image - imagePullPolicy: imagePullPolicy - livenessProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - targetContainerName: targetContainerName - terminationMessagePath: terminationMessagePath - workingDir: workingDir - resources: - claims: + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + ports: + - protocol: protocol + hostIP: hostIP + name: name + containerPort: 7 + hostPort: 1 + - protocol: protocol + hostIP: hostIP + name: name + containerPort: 7 + hostPort: 1 + restartPolicy: restartPolicy + command: + - command + - command + volumeMounts: + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + recursiveReadOnly: recursiveReadOnly + subPathExpr: subPathExpr + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + recursiveReadOnly: recursiveReadOnly + subPathExpr: subPathExpr + args: + - args + - args + lifecycle: + postStart: + sleep: + seconds: 5 + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: - name: name + value: value - name: name - requests: {} - limits: {} - env: + value: value + preStop: + sleep: + seconds: 5 + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + stopSignal: stopSignal + name: name + tty: true + readinessProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: port + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: - name: name value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - name: name value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - restartPolicy: restartPolicy + resizePolicy: + - resourceName: resourceName + restartPolicy: restartPolicy + - resourceName: resourceName + restartPolicy: restartPolicy + stdinOnce: true + envFrom: + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + initContainers: + - volumeDevices: + - devicePath: devicePath + name: name + - devicePath: devicePath + name: name + image: image + imagePullPolicy: imagePullPolicy + livenessProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: port + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: command: - command - command - args: - - args - - args - name: name - tty: true - stdinOnce: true - serviceAccount: serviceAccount - priority: 1 - restartPolicy: restartPolicy - shareProcessNamespace: true - hostUsers: true - resourceClaims: - - name: name - source: - resourceClaimName: resourceClaimName - resourceClaimTemplateName: resourceClaimTemplateName - - name: name - source: - resourceClaimName: resourceClaimName - resourceClaimTemplateName: resourceClaimTemplateName - subdomain: subdomain - containers: - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name - image: image - imagePullPolicy: imagePullPolicy - livenessProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - stdin: true - terminationMessagePolicy: terminationMessagePolicy - terminationMessagePath: terminationMessagePath - workingDir: workingDir - resources: - claims: - - name: name - - name: name - requests: {} - limits: {} - securityContext: - privileged: true - runAsUser: 1 - capabilities: - add: - - add - - add - drop: - - drop - - drop - seLinuxOptions: - role: role - level: level - type: type - user: user - seccompProfile: - localhostProfile: localhostProfile - type: type - windowsOptions: - gmsaCredentialSpec: gmsaCredentialSpec - runAsUserName: runAsUserName - hostProcess: true - gmsaCredentialSpecName: gmsaCredentialSpecName - procMount: procMount - allowPrivilegeEscalation: true - runAsGroup: 1 - runAsNonRoot: true - readOnlyRootFilesystem: true - startupProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - env: + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: - name: name value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - name: name value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - ports: - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 4 - hostPort: 7 - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 4 - hostPort: 7 - restartPolicy: restartPolicy + stdin: true + terminationMessagePolicy: terminationMessagePolicy + terminationMessagePath: terminationMessagePath + workingDir: workingDir + resources: + claims: + - request: request + name: name + - request: request + name: name + requests: {} + limits: {} + securityContext: + privileged: true + runAsUser: 1 + capabilities: + add: + - add + - add + drop: + - drop + - drop + seLinuxOptions: + role: role + level: level + type: type + user: user + appArmorProfile: + localhostProfile: localhostProfile + type: type + seccompProfile: + localhostProfile: localhostProfile + type: type + windowsOptions: + gmsaCredentialSpec: gmsaCredentialSpec + runAsUserName: runAsUserName + hostProcess: true + gmsaCredentialSpecName: gmsaCredentialSpecName + procMount: procMount + allowPrivilegeEscalation: true + runAsGroup: 1 + runAsNonRoot: true + readOnlyRootFilesystem: true + startupProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: port + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: command: - command - command - volumeMounts: - - mountPath: mountPath - mountPropagation: mountPropagation + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + env: + - name: name + value: value + valueFrom: + secretKeyRef: name: name - readOnly: true - subPath: subPath - subPathExpr: subPathExpr - - mountPath: mountPath - mountPropagation: mountPropagation + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: name: name - readOnly: true - subPath: subPath - subPathExpr: subPathExpr - args: - - args - - args - lifecycle: - postStart: - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - preStop: - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - name: name - tty: true - readinessProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - resizePolicy: - - resourceName: resourceName - restartPolicy: restartPolicy - - resourceName: resourceName - restartPolicy: restartPolicy - stdinOnce: true - envFrom: - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - - volumeDevices: - - devicePath: devicePath + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - name: name + value: value + valueFrom: + secretKeyRef: name: name - - devicePath: devicePath + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: name: name - image: image - imagePullPolicy: imagePullPolicy - livenessProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - stdin: true - terminationMessagePolicy: terminationMessagePolicy - terminationMessagePath: terminationMessagePath - workingDir: workingDir - resources: - claims: - - name: name - - name: name - requests: {} - limits: {} - securityContext: - privileged: true - runAsUser: 1 - capabilities: - add: - - add - - add - drop: - - drop - - drop - seLinuxOptions: - role: role - level: level - type: type - user: user - seccompProfile: - localhostProfile: localhostProfile - type: type - windowsOptions: - gmsaCredentialSpec: gmsaCredentialSpec - runAsUserName: runAsUserName - hostProcess: true - gmsaCredentialSpecName: gmsaCredentialSpecName - procMount: procMount - allowPrivilegeEscalation: true - runAsGroup: 1 - runAsNonRoot: true - readOnlyRootFilesystem: true - startupProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - env: + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + ports: + - protocol: protocol + hostIP: hostIP + name: name + containerPort: 7 + hostPort: 1 + - protocol: protocol + hostIP: hostIP + name: name + containerPort: 7 + hostPort: 1 + restartPolicy: restartPolicy + command: + - command + - command + volumeMounts: + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + recursiveReadOnly: recursiveReadOnly + subPathExpr: subPathExpr + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + recursiveReadOnly: recursiveReadOnly + subPathExpr: subPathExpr + args: + - args + - args + lifecycle: + postStart: + sleep: + seconds: 5 + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + preStop: + sleep: + seconds: 5 + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + stopSignal: stopSignal + name: name + tty: true + readinessProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: port + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: - name: name value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - name: name value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - ports: - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 4 - hostPort: 7 - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 4 - hostPort: 7 - restartPolicy: restartPolicy + resizePolicy: + - resourceName: resourceName + restartPolicy: restartPolicy + - resourceName: resourceName + restartPolicy: restartPolicy + stdinOnce: true + envFrom: + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + - volumeDevices: + - devicePath: devicePath + name: name + - devicePath: devicePath + name: name + image: image + imagePullPolicy: imagePullPolicy + livenessProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: port + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: command: - command - command - volumeMounts: - - mountPath: mountPath - mountPropagation: mountPropagation - name: name - readOnly: true - subPath: subPath - subPathExpr: subPathExpr - - mountPath: mountPath - mountPropagation: mountPropagation - name: name - readOnly: true - subPath: subPath - subPathExpr: subPathExpr - args: - - args - - args - lifecycle: - postStart: - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - preStop: - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - name: name - tty: true - readinessProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - resizePolicy: - - resourceName: resourceName - restartPolicy: restartPolicy - - resourceName: resourceName - restartPolicy: restartPolicy - stdinOnce: true - envFrom: - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - initContainers: - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name - image: image - imagePullPolicy: imagePullPolicy - livenessProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - stdin: true - terminationMessagePolicy: terminationMessagePolicy - terminationMessagePath: terminationMessagePath - workingDir: workingDir - resources: - claims: - - name: name - - name: name - requests: {} - limits: {} - securityContext: - privileged: true - runAsUser: 1 - capabilities: - add: - - add - - add - drop: - - drop - - drop - seLinuxOptions: - role: role - level: level - type: type - user: user - seccompProfile: - localhostProfile: localhostProfile - type: type - windowsOptions: - gmsaCredentialSpec: gmsaCredentialSpec - runAsUserName: runAsUserName - hostProcess: true - gmsaCredentialSpecName: gmsaCredentialSpecName - procMount: procMount - allowPrivilegeEscalation: true - runAsGroup: 1 - runAsNonRoot: true - readOnlyRootFilesystem: true - startupProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - env: + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: - name: name value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - name: name value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - ports: - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 4 - hostPort: 7 - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 4 - hostPort: 7 - restartPolicy: restartPolicy + stdin: true + terminationMessagePolicy: terminationMessagePolicy + terminationMessagePath: terminationMessagePath + workingDir: workingDir + resources: + claims: + - request: request + name: name + - request: request + name: name + requests: {} + limits: {} + securityContext: + privileged: true + runAsUser: 1 + capabilities: + add: + - add + - add + drop: + - drop + - drop + seLinuxOptions: + role: role + level: level + type: type + user: user + appArmorProfile: + localhostProfile: localhostProfile + type: type + seccompProfile: + localhostProfile: localhostProfile + type: type + windowsOptions: + gmsaCredentialSpec: gmsaCredentialSpec + runAsUserName: runAsUserName + hostProcess: true + gmsaCredentialSpecName: gmsaCredentialSpecName + procMount: procMount + allowPrivilegeEscalation: true + runAsGroup: 1 + runAsNonRoot: true + readOnlyRootFilesystem: true + startupProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: port + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: command: - command - command - volumeMounts: - - mountPath: mountPath - mountPropagation: mountPropagation + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + env: + - name: name + value: value + valueFrom: + secretKeyRef: name: name - readOnly: true - subPath: subPath - subPathExpr: subPathExpr - - mountPath: mountPath - mountPropagation: mountPropagation + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: name: name - readOnly: true - subPath: subPath - subPathExpr: subPathExpr - args: - - args - - args - lifecycle: - postStart: - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - preStop: - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - name: name - tty: true - readinessProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - resizePolicy: - - resourceName: resourceName - restartPolicy: restartPolicy - - resourceName: resourceName - restartPolicy: restartPolicy - stdinOnce: true - envFrom: - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - - volumeDevices: - - devicePath: devicePath + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - name: name + value: value + valueFrom: + secretKeyRef: name: name - - devicePath: devicePath + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: name: name - image: image - imagePullPolicy: imagePullPolicy - livenessProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - stdin: true - terminationMessagePolicy: terminationMessagePolicy - terminationMessagePath: terminationMessagePath - workingDir: workingDir - resources: - claims: + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + ports: + - protocol: protocol + hostIP: hostIP + name: name + containerPort: 7 + hostPort: 1 + - protocol: protocol + hostIP: hostIP + name: name + containerPort: 7 + hostPort: 1 + restartPolicy: restartPolicy + command: + - command + - command + volumeMounts: + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + recursiveReadOnly: recursiveReadOnly + subPathExpr: subPathExpr + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + recursiveReadOnly: recursiveReadOnly + subPathExpr: subPathExpr + args: + - args + - args + lifecycle: + postStart: + sleep: + seconds: 5 + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: - name: name + value: value - name: name - requests: {} - limits: {} - securityContext: - privileged: true - runAsUser: 1 - capabilities: - add: - - add - - add - drop: - - drop - - drop - seLinuxOptions: - role: role - level: level - type: type - user: user - seccompProfile: - localhostProfile: localhostProfile - type: type - windowsOptions: - gmsaCredentialSpec: gmsaCredentialSpec - runAsUserName: runAsUserName - hostProcess: true - gmsaCredentialSpecName: gmsaCredentialSpecName - procMount: procMount - allowPrivilegeEscalation: true - runAsGroup: 1 - runAsNonRoot: true - readOnlyRootFilesystem: true - startupProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - env: + value: value + preStop: + sleep: + seconds: 5 + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + stopSignal: stopSignal + name: name + tty: true + readinessProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: port + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: - name: name value: value - valueFrom: - secretKeyRef: - name: name - optional: true + - name: name + value: value + resizePolicy: + - resourceName: resourceName + restartPolicy: restartPolicy + - resourceName: resourceName + restartPolicy: restartPolicy + stdinOnce: true + envFrom: + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + affinity: + nodeAffinity: + requiredDuringSchedulingIgnoredDuringExecution: + nodeSelectorTerms: + - matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchFields: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + - matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchFields: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + preferredDuringSchedulingIgnoredDuringExecution: + - preference: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchFields: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + weight: 6 + - preference: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchFields: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + weight: 6 + podAffinity: + requiredDuringSchedulingIgnoredDuringExecution: + - labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + mismatchLabelKeys: + - mismatchLabelKeys + - mismatchLabelKeys + namespaces: + - namespaces + - namespaces + - labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + mismatchLabelKeys: + - mismatchLabelKeys + - mismatchLabelKeys + namespaces: + - namespaces + - namespaces + preferredDuringSchedulingIgnoredDuringExecution: + - podAffinityTerm: + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + mismatchLabelKeys: + - mismatchLabelKeys + - mismatchLabelKeys + namespaces: + - namespaces + - namespaces + weight: 1 + - podAffinityTerm: + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + mismatchLabelKeys: + - mismatchLabelKeys + - mismatchLabelKeys + namespaces: + - namespaces + - namespaces + weight: 1 + podAntiAffinity: + requiredDuringSchedulingIgnoredDuringExecution: + - labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + mismatchLabelKeys: + - mismatchLabelKeys + - mismatchLabelKeys + namespaces: + - namespaces + - namespaces + - labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + mismatchLabelKeys: + - mismatchLabelKeys + - mismatchLabelKeys + namespaces: + - namespaces + - namespaces + preferredDuringSchedulingIgnoredDuringExecution: + - podAffinityTerm: + labelSelector: + matchExpressions: + - values: + - values + - values key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true + operator: operator + - values: + - values + - values key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true + operator: operator + - values: + - values + - values key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - ports: - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 4 - hostPort: 7 - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 4 - hostPort: 7 - restartPolicy: restartPolicy - command: - - command - - command - volumeMounts: - - mountPath: mountPath - mountPropagation: mountPropagation - name: name - readOnly: true - subPath: subPath - subPathExpr: subPathExpr - - mountPath: mountPath - mountPropagation: mountPropagation - name: name - readOnly: true - subPath: subPath - subPathExpr: subPathExpr - args: - - args - - args - lifecycle: - postStart: - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - preStop: - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - name: name - tty: true - readinessProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - resizePolicy: - - resourceName: resourceName - restartPolicy: restartPolicy - - resourceName: resourceName - restartPolicy: restartPolicy - stdinOnce: true - envFrom: - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - affinity: - nodeAffinity: - requiredDuringSchedulingIgnoredDuringExecution: - nodeSelectorTerms: - - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchFields: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchFields: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - preferredDuringSchedulingIgnoredDuringExecution: - - preference: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchFields: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - weight: 6 - - preference: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchFields: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - weight: 6 - podAffinity: - requiredDuringSchedulingIgnoredDuringExecution: - - labelSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - topologyKey: topologyKey - namespaces: - - namespaces - - namespaces - - labelSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - topologyKey: topologyKey - namespaces: - - namespaces - - namespaces - preferredDuringSchedulingIgnoredDuringExecution: - - podAffinityTerm: - labelSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - topologyKey: topologyKey - namespaces: - - namespaces - - namespaces - weight: 1 - - podAffinityTerm: - labelSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - topologyKey: topologyKey - namespaces: - - namespaces - - namespaces - weight: 1 - podAntiAffinity: - requiredDuringSchedulingIgnoredDuringExecution: - - labelSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - topologyKey: topologyKey - namespaces: - - namespaces - - namespaces - - labelSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - topologyKey: topologyKey - namespaces: - - namespaces - - namespaces - preferredDuringSchedulingIgnoredDuringExecution: - - podAffinityTerm: - labelSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - topologyKey: topologyKey - namespaces: - - namespaces - - namespaces - weight: 1 - - podAffinityTerm: - labelSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - topologyKey: topologyKey - namespaces: - - namespaces - - namespaces - weight: 1 - hostPID: true - metadata: - generation: 6 - finalizers: - - finalizers - - finalizers - resourceVersion: resourceVersion - annotations: - key: annotations - generateName: generateName - deletionTimestamp: 2000-01-23T04:56:07.000+00:00 - labels: - key: labels - ownerReferences: - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - selfLink: selfLink - deletionGracePeriodSeconds: 0 - uid: uid - managedFields: - - apiVersion: apiVersion - fieldsV1: '{}' - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - - apiVersion: apiVersion - fieldsV1: '{}' - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - creationTimestamp: 2000-01-23T04:56:07.000+00:00 + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + mismatchLabelKeys: + - mismatchLabelKeys + - mismatchLabelKeys + namespaces: + - namespaces + - namespaces + weight: 1 + - podAffinityTerm: + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + mismatchLabelKeys: + - mismatchLabelKeys + - mismatchLabelKeys + namespaces: + - namespaces + - namespaces + weight: 1 + hostPID: true + properties: + metadata: + $ref: '#/components/schemas/v1.ObjectMeta' + spec: + $ref: '#/components/schemas/v1.PodSpec' + type: object + v1.PortStatus: + description: PortStatus represents the error condition of a service port + example: + protocol: protocol + port: 2 + error: error + properties: + error: + description: |- + 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. + type: string + port: + description: Port is the port number of the service port of which status + is recorded here + format: int32 + type: integer + protocol: + description: 'Protocol is the protocol of the service port of which status + is recorded here The supported values are: "TCP", "UDP", "SCTP"' + type: string + required: + - port + - protocol + type: object + v1.PortworxVolumeSource: + description: PortworxVolumeSource represents a Portworx volume resource. + example: + volumeID: volumeID + readOnly: true + fsType: fsType + properties: + fsType: + description: 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. + type: string + readOnly: + description: readOnly defaults to false (read/write). ReadOnly here will + force the ReadOnly setting in VolumeMounts. + type: boolean + volumeID: + description: volumeID uniquely identifies a Portworx volume + type: string + required: + - volumeID + type: object + v1.PreferredSchedulingTerm: + 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). + example: + preference: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchFields: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + weight: 6 + properties: + preference: + $ref: '#/components/schemas/v1.NodeSelectorTerm' + weight: + description: Weight associated with matching the corresponding nodeSelectorTerm, + in the range 1-100. + format: int32 + type: integer + required: + - preference + - weight + type: object + v1.Probe: + description: Probe describes a health check to be performed against a container + to determine whether it is alive or ready to receive traffic. + example: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: port + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + properties: + exec: + $ref: '#/components/schemas/v1.ExecAction' + failureThreshold: + description: Minimum consecutive failures for the probe to be considered + failed after having succeeded. Defaults to 3. Minimum value is 1. + format: int32 + type: integer + grpc: + $ref: '#/components/schemas/v1.GRPCAction' + httpGet: + $ref: '#/components/schemas/v1.HTTPGetAction' + initialDelaySeconds: + description: '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' + format: int32 + type: integer + periodSeconds: + description: How often (in seconds) to perform the probe. Default to 10 + seconds. Minimum value is 1. + format: int32 + type: integer + successThreshold: + description: 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. + format: int32 + type: integer + tcpSocket: + $ref: '#/components/schemas/v1.TCPSocketAction' + terminationGracePeriodSeconds: + description: 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. + format: int64 + type: integer + timeoutSeconds: + description: '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' + format: int32 + type: integer + type: object + v1.ProjectedVolumeSource: + description: Represents a projected volume source + example: + sources: + - downwardAPI: + items: + - mode: 1 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - mode: 1 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + configMap: name: name - namespace: namespace - apiVersion: apiVersion - kind: kind + optional: true + items: + - mode: 3 + path: path + key: key + - mode: 3 + path: path + key: key + secret: + name: name + optional: true + items: + - mode: 3 + path: path + key: key + - mode: 3 + path: path + key: key + serviceAccountToken: + path: path + audience: audience + expirationSeconds: 6 + clusterTrustBundle: + path: path + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + name: name + optional: true + signerName: signerName + - downwardAPI: + items: + - mode: 1 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - mode: 1 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + configMap: + name: name + optional: true + items: + - mode: 3 + path: path + key: key + - mode: 3 + path: path + key: key + secret: + name: name + optional: true + items: + - mode: 3 + path: path + key: key + - mode: 3 + path: path + key: key + serviceAccountToken: + path: path + audience: audience + expirationSeconds: 6 + clusterTrustBundle: + path: path + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + name: name + optional: true + signerName: signerName + defaultMode: 5 + properties: + defaultMode: + description: 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. + format: int32 + type: integer + sources: + description: sources is the list of volume projections. Each entry in this + list handles one source. + items: + $ref: '#/components/schemas/v1.VolumeProjection' + type: array + x-kubernetes-list-type: atomic + type: object + v1.QuobyteVolumeSource: + description: Represents a Quobyte mount that lasts the lifetime of a pod. Quobyte + volumes do not support ownership management or SELinux relabeling. + example: + volume: volume + registry: registry + readOnly: true + user: user + tenant: tenant + group: group + properties: + group: + description: group to map volume access to Default is no group + type: string + readOnly: + description: readOnly here will force the Quobyte volume to be mounted with + read-only permissions. Defaults to false. + type: boolean + registry: + description: 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 + type: string + tenant: + description: tenant owning the given Quobyte volume in the Backend Used + with dynamically provisioned Quobyte volumes, value is set by the plugin + type: string + user: + description: user to map volume access to Defaults to serivceaccount user + type: string + volume: + description: volume is a string that references an already created Quobyte + volume by name. + type: string + required: + - registry + - volume + type: object + v1.RBDPersistentVolumeSource: + description: Represents a Rados Block Device mount that lasts the lifetime of + a pod. RBD volumes support ownership management and SELinux relabeling. + example: + image: image + pool: pool + secretRef: + name: name + namespace: namespace + readOnly: true + fsType: fsType + keyring: keyring + user: user + monitors: + - monitors + - monitors + properties: + fsType: + description: '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' + type: string + image: + description: 'image is the rados image name. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it' + type: string + keyring: + description: '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' + type: string + monitors: + description: 'monitors is a collection of Ceph monitors. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it' + items: + type: string + type: array + x-kubernetes-list-type: atomic + pool: + description: 'pool is the rados pool name. Default is rbd. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it' + type: string + readOnly: + description: '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' + type: boolean + secretRef: + $ref: '#/components/schemas/v1.SecretReference' + user: + description: 'user is the rados user name. Default is admin. More info: + https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it' + type: string + required: + - image + - monitors + type: object + v1.RBDVolumeSource: + description: Represents a Rados Block Device mount that lasts the lifetime of + a pod. RBD volumes support ownership management and SELinux relabeling. + example: + image: image + pool: pool + secretRef: + name: name + readOnly: true + fsType: fsType + keyring: keyring + user: user + monitors: + - monitors + - monitors properties: - apiVersion: - description: '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' + fsType: + description: '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' type: string - items: - description: List of pod templates + image: + description: 'image is the rados image name. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it' + type: string + keyring: + description: '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' + type: string + monitors: + description: 'monitors is a collection of Ceph monitors. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it' items: - $ref: '#/components/schemas/v1.PodTemplate' + type: string type: array - kind: - description: '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' + x-kubernetes-list-type: atomic + pool: + description: 'pool is the rados pool name. Default is rbd. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it' + type: string + readOnly: + description: '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' + type: boolean + secretRef: + $ref: '#/components/schemas/v1.LocalObjectReference' + user: + description: 'user is the rados user name. Default is admin. More info: + https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it' type: string - metadata: - $ref: '#/components/schemas/v1.ListMeta' required: - - items + - image + - monitors type: object - x-kubernetes-group-version-kind: - - group: "" - kind: PodTemplateList - version: v1 - x-implements: - - io.kubernetes.client.common.KubernetesListObject - v1.PodTemplateSpec: - description: PodTemplateSpec describes the data a pod should have when created - from a template + v1.ReplicationController: + description: ReplicationController represents the configuration of a replication + controller. example: metadata: generation: 6 @@ -184380,677 +220656,496 @@ components: creationTimestamp: 2000-01-23T04:56:07.000+00:00 name: name namespace: namespace + apiVersion: apiVersion + kind: kind spec: - dnsPolicy: dnsPolicy - nodeName: nodeName - terminationGracePeriodSeconds: 5 - dnsConfig: - searches: - - searches - - searches - nameservers: - - nameservers - - nameservers - options: - - name: name - value: value - - name: name - value: value - hostNetwork: true - readinessGates: - - conditionType: conditionType - - conditionType: conditionType - serviceAccountName: serviceAccountName - imagePullSecrets: - - name: name - - name: name - priorityClassName: priorityClassName - hostAliases: - - ip: ip - hostnames: - - hostnames - - hostnames - - ip: ip - hostnames: - - hostnames - - hostnames - securityContext: - runAsUser: 1 - seLinuxOptions: - role: role - level: level - type: type - user: user - fsGroup: 6 - seccompProfile: - localhostProfile: localhostProfile - type: type - windowsOptions: - gmsaCredentialSpec: gmsaCredentialSpec - runAsUserName: runAsUserName - hostProcess: true - gmsaCredentialSpecName: gmsaCredentialSpecName - fsGroupChangePolicy: fsGroupChangePolicy - supplementalGroups: - - 4 - - 4 - runAsGroup: 7 - runAsNonRoot: true - sysctls: - - name: name - value: value - - name: name - value: value - preemptionPolicy: preemptionPolicy - nodeSelector: - key: nodeSelector - hostname: hostname - runtimeClassName: runtimeClassName - tolerations: - - effect: effect - tolerationSeconds: 9 - value: value - key: key - operator: operator - - effect: effect - tolerationSeconds: 9 - value: value - key: key - operator: operator - automountServiceAccountToken: true - schedulingGates: - - name: name - - name: name - schedulerName: schedulerName - activeDeadlineSeconds: 0 - os: - name: name - setHostnameAsFQDN: true - enableServiceLinks: true - overhead: {} - hostIPC: true - topologySpreadConstraints: - - nodeTaintsPolicy: nodeTaintsPolicy - whenUnsatisfiable: whenUnsatisfiable - maxSkew: 9 - nodeAffinityPolicy: nodeAffinityPolicy - labelSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - minDomains: 6 - topologyKey: topologyKey - matchLabelKeys: - - matchLabelKeys - - matchLabelKeys - - nodeTaintsPolicy: nodeTaintsPolicy - whenUnsatisfiable: whenUnsatisfiable - maxSkew: 9 - nodeAffinityPolicy: nodeAffinityPolicy - labelSelector: - matchExpressions: - - values: - - values - - values + template: + metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: '{}' + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: '{}' + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + creationTimestamp: 2000-01-23T04:56:07.000+00:00 + name: name + namespace: namespace + spec: + dnsPolicy: dnsPolicy + nodeName: nodeName + terminationGracePeriodSeconds: 9 + dnsConfig: + searches: + - searches + - searches + nameservers: + - nameservers + - nameservers + options: + - name: name + value: value + - name: name + value: value + hostNetwork: true + readinessGates: + - conditionType: conditionType + - conditionType: conditionType + serviceAccountName: serviceAccountName + imagePullSecrets: + - name: name + - name: name + priorityClassName: priorityClassName + hostAliases: + - ip: ip + hostnames: + - hostnames + - hostnames + - ip: ip + hostnames: + - hostnames + - hostnames + securityContext: + seLinuxOptions: + role: role + level: level + type: type + user: user + appArmorProfile: + localhostProfile: localhostProfile + type: type + fsGroup: 7 + fsGroupChangePolicy: fsGroupChangePolicy + seLinuxChangePolicy: seLinuxChangePolicy + runAsGroup: 1 + runAsNonRoot: true + sysctls: + - name: name + value: value + - name: name + value: value + runAsUser: 4 + seccompProfile: + localhostProfile: localhostProfile + type: type + windowsOptions: + gmsaCredentialSpec: gmsaCredentialSpec + runAsUserName: runAsUserName + hostProcess: true + gmsaCredentialSpecName: gmsaCredentialSpecName + supplementalGroups: + - 5 + - 5 + supplementalGroupsPolicy: supplementalGroupsPolicy + preemptionPolicy: preemptionPolicy + nodeSelector: + key: nodeSelector + hostname: hostname + runtimeClassName: runtimeClassName + tolerations: + - effect: effect + tolerationSeconds: 9 + value: value key: key operator: operator - - values: - - values - - values + - effect: effect + tolerationSeconds: 9 + value: value key: key operator: operator - matchLabels: - key: matchLabels - minDomains: 6 - topologyKey: topologyKey - matchLabelKeys: - - matchLabelKeys - - matchLabelKeys - volumes: - - quobyte: - volume: volume - registry: registry - readOnly: true - user: user - tenant: tenant - group: group - azureFile: - secretName: secretName - readOnly: true - shareName: shareName - flexVolume: - driver: driver - options: - key: options - secretRef: + automountServiceAccountToken: true + schedulingGates: + - name: name + - name: name + schedulerName: schedulerName + activeDeadlineSeconds: 0 + os: name: name - readOnly: true - fsType: fsType - ephemeral: - volumeClaimTemplate: - metadata: - generation: 6 - finalizers: - - finalizers - - finalizers - resourceVersion: resourceVersion - annotations: - key: annotations - generateName: generateName - deletionTimestamp: 2000-01-23T04:56:07.000+00:00 - labels: - key: labels - ownerReferences: - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - selfLink: selfLink - deletionGracePeriodSeconds: 0 - uid: uid - managedFields: - - apiVersion: apiVersion - fieldsV1: '{}' - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - - apiVersion: apiVersion - fieldsV1: '{}' - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - creationTimestamp: 2000-01-23T04:56:07.000+00:00 - name: name - namespace: namespace - spec: - storageClassName: storageClassName - dataSourceRef: - apiGroup: apiGroup - kind: kind - name: name - namespace: namespace - volumeName: volumeName - resources: - claims: - - name: name - - name: name - requests: {} - limits: {} - selector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - accessModes: - - accessModes - - accessModes - dataSource: - apiGroup: apiGroup - kind: kind - name: name - volumeMode: volumeMode - secret: - secretName: secretName - defaultMode: 6 - optional: true - items: - - mode: 6 - path: path - key: key - - mode: 6 - path: path - key: key - projected: - sources: - - downwardAPI: - items: - - mode: 6 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - mode: 6 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - configMap: - name: name - optional: true - items: - - mode: 6 - path: path - key: key - - mode: 6 - path: path - key: key - secret: - name: name - optional: true - items: - - mode: 6 - path: path + setHostnameAsFQDN: true + enableServiceLinks: true + overhead: {} + hostIPC: true + topologySpreadConstraints: + - nodeTaintsPolicy: nodeTaintsPolicy + whenUnsatisfiable: whenUnsatisfiable + maxSkew: 6 + nodeAffinityPolicy: nodeAffinityPolicy + labelSelector: + matchExpressions: + - values: + - values + - values key: key - - mode: 6 - path: path + operator: operator + - values: + - values + - values key: key - serviceAccountToken: - path: path - audience: audience - expirationSeconds: 5 - - downwardAPI: - items: - - mode: 6 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - mode: 6 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - configMap: - name: name - optional: true - items: - - mode: 6 - path: path + operator: operator + matchLabels: + key: matchLabels + minDomains: 8 + topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + - nodeTaintsPolicy: nodeTaintsPolicy + whenUnsatisfiable: whenUnsatisfiable + maxSkew: 6 + nodeAffinityPolicy: nodeAffinityPolicy + labelSelector: + matchExpressions: + - values: + - values + - values key: key - - mode: 6 - path: path + operator: operator + - values: + - values + - values key: key + operator: operator + matchLabels: + key: matchLabels + minDomains: 8 + topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + volumes: + - quobyte: + volume: volume + registry: registry + readOnly: true + user: user + tenant: tenant + group: group + azureFile: + secretName: secretName + readOnly: true + shareName: shareName + flexVolume: + driver: driver + options: + key: options + secretRef: + name: name + readOnly: true + fsType: fsType + ephemeral: + volumeClaimTemplate: + metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: '{}' + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: '{}' + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + creationTimestamp: 2000-01-23T04:56:07.000+00:00 + name: name + namespace: namespace + spec: + storageClassName: storageClassName + dataSourceRef: + apiGroup: apiGroup + kind: kind + name: name + namespace: namespace + volumeName: volumeName + volumeAttributesClassName: volumeAttributesClassName + resources: + requests: {} + limits: {} + selector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + accessModes: + - accessModes + - accessModes + dataSource: + apiGroup: apiGroup + kind: kind + name: name + volumeMode: volumeMode secret: - name: name + secretName: secretName + defaultMode: 3 optional: true items: - - mode: 6 + - mode: 3 path: path key: key - - mode: 6 + - mode: 3 path: path key: key - serviceAccountToken: + projected: + sources: + - downwardAPI: + items: + - mode: 1 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - mode: 1 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + configMap: + name: name + optional: true + items: + - mode: 3 + path: path + key: key + - mode: 3 + path: path + key: key + secret: + name: name + optional: true + items: + - mode: 3 + path: path + key: key + - mode: 3 + path: path + key: key + serviceAccountToken: + path: path + audience: audience + expirationSeconds: 6 + clusterTrustBundle: + path: path + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + name: name + optional: true + signerName: signerName + - downwardAPI: + items: + - mode: 1 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - mode: 1 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + configMap: + name: name + optional: true + items: + - mode: 3 + path: path + key: key + - mode: 3 + path: path + key: key + secret: + name: name + optional: true + items: + - mode: 3 + path: path + key: key + - mode: 3 + path: path + key: key + serviceAccountToken: + path: path + audience: audience + expirationSeconds: 6 + clusterTrustBundle: + path: path + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + name: name + optional: true + signerName: signerName + defaultMode: 5 + cephfs: path: path - audience: audience - expirationSeconds: 5 - defaultMode: 6 - cephfs: - path: path - secretRef: - name: name - secretFile: secretFile - readOnly: true - user: user - monitors: - - monitors - - monitors - scaleIO: - system: system - protectionDomain: protectionDomain - sslEnabled: true - storageMode: storageMode - volumeName: volumeName - secretRef: - name: name - readOnly: true - fsType: fsType - storagePool: storagePool - gateway: gateway - emptyDir: - sizeLimit: sizeLimit - medium: medium - glusterfs: - path: path - endpoints: endpoints - readOnly: true - gcePersistentDisk: - partition: 2 - readOnly: true - pdName: pdName - fsType: fsType - photonPersistentDisk: - pdID: pdID - fsType: fsType - azureDisk: - diskName: diskName - kind: kind - readOnly: true - cachingMode: cachingMode - diskURI: diskURI - fsType: fsType - cinder: - secretRef: - name: name - volumeID: volumeID - readOnly: true - fsType: fsType - downwardAPI: - defaultMode: 3 - items: - - mode: 6 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - mode: 6 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - awsElasticBlockStore: - partition: 8 - volumeID: volumeID - readOnly: true - fsType: fsType - flocker: - datasetName: datasetName - datasetUUID: datasetUUID - iscsi: - chapAuthSession: true - iscsiInterface: iscsiInterface - lun: 6 - chapAuthDiscovery: true - iqn: iqn - portals: - - portals - - portals - secretRef: - name: name - initiatorName: initiatorName - readOnly: true - fsType: fsType - targetPortal: targetPortal - rbd: - image: image - pool: pool - secretRef: - name: name - readOnly: true - fsType: fsType - keyring: keyring - user: user - monitors: - - monitors - - monitors - configMap: - defaultMode: 9 - name: name - optional: true - items: - - mode: 6 - path: path - key: key - - mode: 6 - path: path - key: key - storageos: - volumeNamespace: volumeNamespace - volumeName: volumeName - secretRef: - name: name - readOnly: true - fsType: fsType - csi: - driver: driver - nodePublishSecretRef: - name: name - readOnly: true - fsType: fsType - volumeAttributes: - key: volumeAttributes - name: name - nfs: - path: path - server: server - readOnly: true - persistentVolumeClaim: - claimName: claimName - readOnly: true - gitRepo: - repository: repository - directory: directory - revision: revision - portworxVolume: - volumeID: volumeID - readOnly: true - fsType: fsType - vsphereVolume: - storagePolicyName: storagePolicyName - storagePolicyID: storagePolicyID - volumePath: volumePath - fsType: fsType - fc: - lun: 1 - targetWWNs: - - targetWWNs - - targetWWNs - readOnly: true - wwids: - - wwids - - wwids - fsType: fsType - hostPath: - path: path - type: type - - quobyte: - volume: volume - registry: registry - readOnly: true - user: user - tenant: tenant - group: group - azureFile: - secretName: secretName - readOnly: true - shareName: shareName - flexVolume: - driver: driver - options: - key: options - secretRef: - name: name - readOnly: true - fsType: fsType - ephemeral: - volumeClaimTemplate: - metadata: - generation: 6 - finalizers: - - finalizers - - finalizers - resourceVersion: resourceVersion - annotations: - key: annotations - generateName: generateName - deletionTimestamp: 2000-01-23T04:56:07.000+00:00 - labels: - key: labels - ownerReferences: - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - selfLink: selfLink - deletionGracePeriodSeconds: 0 - uid: uid - managedFields: - - apiVersion: apiVersion - fieldsV1: '{}' - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - - apiVersion: apiVersion - fieldsV1: '{}' - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - creationTimestamp: 2000-01-23T04:56:07.000+00:00 - name: name - namespace: namespace - spec: - storageClassName: storageClassName - dataSourceRef: - apiGroup: apiGroup - kind: kind + secretRef: name: name - namespace: namespace - volumeName: volumeName - resources: - claims: - - name: name - - name: name - requests: {} - limits: {} - selector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - accessModes: - - accessModes - - accessModes - dataSource: - apiGroup: apiGroup - kind: kind + secretFile: secretFile + readOnly: true + user: user + monitors: + - monitors + - monitors + scaleIO: + system: system + protectionDomain: protectionDomain + sslEnabled: true + storageMode: storageMode + volumeName: volumeName + secretRef: name: name - volumeMode: volumeMode - secret: - secretName: secretName - defaultMode: 6 - optional: true - items: - - mode: 6 - path: path - key: key - - mode: 6 - path: path - key: key - projected: - sources: - - downwardAPI: - items: - - mode: 6 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - mode: 6 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - configMap: - name: name - optional: true - items: - - mode: 6 - path: path - key: key - - mode: 6 - path: path - key: key - secret: - name: name - optional: true - items: - - mode: 6 - path: path - key: key - - mode: 6 - path: path - key: key - serviceAccountToken: + readOnly: true + fsType: fsType + storagePool: storagePool + gateway: gateway + emptyDir: + sizeLimit: sizeLimit + medium: medium + glusterfs: path: path - audience: audience - expirationSeconds: 5 - - downwardAPI: + endpoints: endpoints + readOnly: true + gcePersistentDisk: + partition: 6 + readOnly: true + pdName: pdName + fsType: fsType + image: + reference: reference + pullPolicy: pullPolicy + photonPersistentDisk: + pdID: pdID + fsType: fsType + azureDisk: + diskName: diskName + kind: kind + readOnly: true + cachingMode: cachingMode + diskURI: diskURI + fsType: fsType + cinder: + secretRef: + name: name + volumeID: volumeID + readOnly: true + fsType: fsType + downwardAPI: + defaultMode: 6 items: - - mode: 6 + - mode: 1 path: path resourceFieldRef: divisor: divisor @@ -185059,7 +221154,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 6 + - mode: 1 path: path resourceFieldRef: divisor: divisor @@ -185068,3610 +221163,3758 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + awsElasticBlockStore: + partition: 9 + volumeID: volumeID + readOnly: true + fsType: fsType + flocker: + datasetName: datasetName + datasetUUID: datasetUUID + iscsi: + chapAuthSession: true + iscsiInterface: iscsiInterface + lun: 6 + chapAuthDiscovery: true + iqn: iqn + portals: + - portals + - portals + secretRef: + name: name + initiatorName: initiatorName + readOnly: true + fsType: fsType + targetPortal: targetPortal + rbd: + image: image + pool: pool + secretRef: + name: name + readOnly: true + fsType: fsType + keyring: keyring + user: user + monitors: + - monitors + - monitors configMap: + defaultMode: 6 name: name optional: true items: - - mode: 6 - path: path - key: key - - mode: 6 - path: path - key: key - secret: - name: name - optional: true - items: - - mode: 6 + - mode: 3 path: path key: key - - mode: 6 + - mode: 3 path: path key: key - serviceAccountToken: - path: path - audience: audience - expirationSeconds: 5 - defaultMode: 6 - cephfs: - path: path - secretRef: - name: name - secretFile: secretFile - readOnly: true - user: user - monitors: - - monitors - - monitors - scaleIO: - system: system - protectionDomain: protectionDomain - sslEnabled: true - storageMode: storageMode - volumeName: volumeName - secretRef: - name: name - readOnly: true - fsType: fsType - storagePool: storagePool - gateway: gateway - emptyDir: - sizeLimit: sizeLimit - medium: medium - glusterfs: - path: path - endpoints: endpoints - readOnly: true - gcePersistentDisk: - partition: 2 - readOnly: true - pdName: pdName - fsType: fsType - photonPersistentDisk: - pdID: pdID - fsType: fsType - azureDisk: - diskName: diskName - kind: kind - readOnly: true - cachingMode: cachingMode - diskURI: diskURI - fsType: fsType - cinder: - secretRef: - name: name - volumeID: volumeID - readOnly: true - fsType: fsType - downwardAPI: - defaultMode: 3 - items: - - mode: 6 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - mode: 6 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - awsElasticBlockStore: - partition: 8 - volumeID: volumeID - readOnly: true - fsType: fsType - flocker: - datasetName: datasetName - datasetUUID: datasetUUID - iscsi: - chapAuthSession: true - iscsiInterface: iscsiInterface - lun: 6 - chapAuthDiscovery: true - iqn: iqn - portals: - - portals - - portals - secretRef: - name: name - initiatorName: initiatorName - readOnly: true - fsType: fsType - targetPortal: targetPortal - rbd: - image: image - pool: pool - secretRef: - name: name - readOnly: true - fsType: fsType - keyring: keyring - user: user - monitors: - - monitors - - monitors - configMap: - defaultMode: 9 - name: name - optional: true - items: - - mode: 6 - path: path - key: key - - mode: 6 - path: path - key: key - storageos: - volumeNamespace: volumeNamespace - volumeName: volumeName - secretRef: - name: name - readOnly: true - fsType: fsType - csi: - driver: driver - nodePublishSecretRef: - name: name - readOnly: true - fsType: fsType - volumeAttributes: - key: volumeAttributes - name: name - nfs: - path: path - server: server - readOnly: true - persistentVolumeClaim: - claimName: claimName - readOnly: true - gitRepo: - repository: repository - directory: directory - revision: revision - portworxVolume: - volumeID: volumeID - readOnly: true - fsType: fsType - vsphereVolume: - storagePolicyName: storagePolicyName - storagePolicyID: storagePolicyID - volumePath: volumePath - fsType: fsType - fc: - lun: 1 - targetWWNs: - - targetWWNs - - targetWWNs - readOnly: true - wwids: - - wwids - - wwids - fsType: fsType - hostPath: - path: path - type: type - ephemeralContainers: - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name - stdin: true - terminationMessagePolicy: terminationMessagePolicy - securityContext: - privileged: true - runAsUser: 1 - capabilities: - add: - - add - - add - drop: - - drop - - drop - seLinuxOptions: - role: role - level: level - type: type - user: user - seccompProfile: - localhostProfile: localhostProfile - type: type - windowsOptions: - gmsaCredentialSpec: gmsaCredentialSpec - runAsUserName: runAsUserName - hostProcess: true - gmsaCredentialSpecName: gmsaCredentialSpecName - procMount: procMount - allowPrivilegeEscalation: true - runAsGroup: 1 - runAsNonRoot: true - readOnlyRootFilesystem: true - startupProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - ports: - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 4 - hostPort: 7 - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 4 - hostPort: 7 - volumeMounts: - - mountPath: mountPath - mountPropagation: mountPropagation - name: name - readOnly: true - subPath: subPath - subPathExpr: subPathExpr - - mountPath: mountPath - mountPropagation: mountPropagation - name: name - readOnly: true - subPath: subPath - subPathExpr: subPathExpr - lifecycle: - postStart: - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - preStop: - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - readinessProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - resizePolicy: - - resourceName: resourceName - restartPolicy: restartPolicy - - resourceName: resourceName - restartPolicy: restartPolicy - envFrom: - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: + storageos: + volumeNamespace: volumeNamespace + volumeName: volumeName + secretRef: + name: name + readOnly: true + fsType: fsType + csi: + driver: driver + nodePublishSecretRef: + name: name + readOnly: true + fsType: fsType + volumeAttributes: + key: volumeAttributes name: name - optional: true - image: image - imagePullPolicy: imagePullPolicy - livenessProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - targetContainerName: targetContainerName - terminationMessagePath: terminationMessagePath - workingDir: workingDir - resources: - claims: - - name: name - - name: name - requests: {} - limits: {} - env: - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - restartPolicy: restartPolicy - command: - - command - - command - args: - - args - - args - name: name - tty: true - stdinOnce: true - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name - stdin: true - terminationMessagePolicy: terminationMessagePolicy - securityContext: - privileged: true - runAsUser: 1 - capabilities: - add: - - add - - add - drop: - - drop - - drop - seLinuxOptions: - role: role - level: level - type: type - user: user - seccompProfile: - localhostProfile: localhostProfile - type: type - windowsOptions: - gmsaCredentialSpec: gmsaCredentialSpec - runAsUserName: runAsUserName - hostProcess: true - gmsaCredentialSpecName: gmsaCredentialSpecName - procMount: procMount - allowPrivilegeEscalation: true - runAsGroup: 1 - runAsNonRoot: true - readOnlyRootFilesystem: true - startupProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - ports: - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 4 - hostPort: 7 - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 4 - hostPort: 7 - volumeMounts: - - mountPath: mountPath - mountPropagation: mountPropagation - name: name - readOnly: true - subPath: subPath - subPathExpr: subPathExpr - - mountPath: mountPath - mountPropagation: mountPropagation - name: name - readOnly: true - subPath: subPath - subPathExpr: subPathExpr - lifecycle: - postStart: - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: + nfs: path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - preStop: - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: + server: server + readOnly: true + persistentVolumeClaim: + claimName: claimName + readOnly: true + gitRepo: + repository: repository + directory: directory + revision: revision + portworxVolume: + volumeID: volumeID + readOnly: true + fsType: fsType + vsphereVolume: + storagePolicyName: storagePolicyName + storagePolicyID: storagePolicyID + volumePath: volumePath + fsType: fsType + fc: + lun: 2 + targetWWNs: + - targetWWNs + - targetWWNs + readOnly: true + wwids: + - wwids + - wwids + fsType: fsType + hostPath: path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - readinessProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - resizePolicy: - - resourceName: resourceName - restartPolicy: restartPolicy - - resourceName: resourceName - restartPolicy: restartPolicy - envFrom: - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - image: image - imagePullPolicy: imagePullPolicy - livenessProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - targetContainerName: targetContainerName - terminationMessagePath: terminationMessagePath - workingDir: workingDir - resources: - claims: - - name: name - - name: name - requests: {} - limits: {} - env: - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - restartPolicy: restartPolicy - command: - - command - - command - args: - - args - - args - name: name - tty: true - stdinOnce: true - serviceAccount: serviceAccount - priority: 1 - restartPolicy: restartPolicy - shareProcessNamespace: true - hostUsers: true - resourceClaims: - - name: name - source: - resourceClaimName: resourceClaimName - resourceClaimTemplateName: resourceClaimTemplateName - - name: name - source: - resourceClaimName: resourceClaimName - resourceClaimTemplateName: resourceClaimTemplateName - subdomain: subdomain - containers: - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name - image: image - imagePullPolicy: imagePullPolicy - livenessProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - stdin: true - terminationMessagePolicy: terminationMessagePolicy - terminationMessagePath: terminationMessagePath - workingDir: workingDir - resources: - claims: - - name: name - - name: name - requests: {} - limits: {} - securityContext: - privileged: true - runAsUser: 1 - capabilities: - add: - - add - - add - drop: - - drop - - drop - seLinuxOptions: - role: role - level: level - type: type - user: user - seccompProfile: - localhostProfile: localhostProfile - type: type - windowsOptions: - gmsaCredentialSpec: gmsaCredentialSpec - runAsUserName: runAsUserName - hostProcess: true - gmsaCredentialSpecName: gmsaCredentialSpecName - procMount: procMount - allowPrivilegeEscalation: true - runAsGroup: 1 - runAsNonRoot: true - readOnlyRootFilesystem: true - startupProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - env: - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - name: name - value: value - valueFrom: - secretKeyRef: - name: name + type: type + - quobyte: + volume: volume + registry: registry + readOnly: true + user: user + tenant: tenant + group: group + azureFile: + secretName: secretName + readOnly: true + shareName: shareName + flexVolume: + driver: driver + options: + key: options + secretRef: + name: name + readOnly: true + fsType: fsType + ephemeral: + volumeClaimTemplate: + metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: '{}' + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: '{}' + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + creationTimestamp: 2000-01-23T04:56:07.000+00:00 + name: name + namespace: namespace + spec: + storageClassName: storageClassName + dataSourceRef: + apiGroup: apiGroup + kind: kind + name: name + namespace: namespace + volumeName: volumeName + volumeAttributesClassName: volumeAttributesClassName + resources: + requests: {} + limits: {} + selector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + accessModes: + - accessModes + - accessModes + dataSource: + apiGroup: apiGroup + kind: kind + name: name + volumeMode: volumeMode + secret: + secretName: secretName + defaultMode: 3 optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: + items: + - mode: 3 + path: path + key: key + - mode: 3 + path: path + key: key + projected: + sources: + - downwardAPI: + items: + - mode: 1 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - mode: 1 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + configMap: + name: name + optional: true + items: + - mode: 3 + path: path + key: key + - mode: 3 + path: path + key: key + secret: + name: name + optional: true + items: + - mode: 3 + path: path + key: key + - mode: 3 + path: path + key: key + serviceAccountToken: + path: path + audience: audience + expirationSeconds: 6 + clusterTrustBundle: + path: path + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + name: name + optional: true + signerName: signerName + - downwardAPI: + items: + - mode: 1 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - mode: 1 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + configMap: + name: name + optional: true + items: + - mode: 3 + path: path + key: key + - mode: 3 + path: path + key: key + secret: + name: name + optional: true + items: + - mode: 3 + path: path + key: key + - mode: 3 + path: path + key: key + serviceAccountToken: + path: path + audience: audience + expirationSeconds: 6 + clusterTrustBundle: + path: path + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + name: name + optional: true + signerName: signerName + defaultMode: 5 + cephfs: + path: path + secretRef: + name: name + secretFile: secretFile + readOnly: true + user: user + monitors: + - monitors + - monitors + scaleIO: + system: system + protectionDomain: protectionDomain + sslEnabled: true + storageMode: storageMode + volumeName: volumeName + secretRef: + name: name + readOnly: true + fsType: fsType + storagePool: storagePool + gateway: gateway + emptyDir: + sizeLimit: sizeLimit + medium: medium + glusterfs: + path: path + endpoints: endpoints + readOnly: true + gcePersistentDisk: + partition: 6 + readOnly: true + pdName: pdName + fsType: fsType + image: + reference: reference + pullPolicy: pullPolicy + photonPersistentDisk: + pdID: pdID + fsType: fsType + azureDisk: + diskName: diskName + kind: kind + readOnly: true + cachingMode: cachingMode + diskURI: diskURI + fsType: fsType + cinder: + secretRef: + name: name + volumeID: volumeID + readOnly: true + fsType: fsType + downwardAPI: + defaultMode: 6 + items: + - mode: 1 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - mode: 1 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + awsElasticBlockStore: + partition: 9 + volumeID: volumeID + readOnly: true + fsType: fsType + flocker: + datasetName: datasetName + datasetUUID: datasetUUID + iscsi: + chapAuthSession: true + iscsiInterface: iscsiInterface + lun: 6 + chapAuthDiscovery: true + iqn: iqn + portals: + - portals + - portals + secretRef: + name: name + initiatorName: initiatorName + readOnly: true + fsType: fsType + targetPortal: targetPortal + rbd: + image: image + pool: pool + secretRef: + name: name + readOnly: true + fsType: fsType + keyring: keyring + user: user + monitors: + - monitors + - monitors + configMap: + defaultMode: 6 name: name optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - ports: - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 4 - hostPort: 7 - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 4 - hostPort: 7 - restartPolicy: restartPolicy - command: - - command - - command - volumeMounts: - - mountPath: mountPath - mountPropagation: mountPropagation - name: name - readOnly: true - subPath: subPath - subPathExpr: subPathExpr - - mountPath: mountPath - mountPropagation: mountPropagation - name: name - readOnly: true - subPath: subPath - subPathExpr: subPathExpr - args: - - args - - args - lifecycle: - postStart: - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: + items: + - mode: 3 + path: path + key: key + - mode: 3 + path: path + key: key + storageos: + volumeNamespace: volumeNamespace + volumeName: volumeName + secretRef: + name: name + readOnly: true + fsType: fsType + csi: + driver: driver + nodePublishSecretRef: + name: name + readOnly: true + fsType: fsType + volumeAttributes: + key: volumeAttributes + name: name + nfs: path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - preStop: - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: + server: server + readOnly: true + persistentVolumeClaim: + claimName: claimName + readOnly: true + gitRepo: + repository: repository + directory: directory + revision: revision + portworxVolume: + volumeID: volumeID + readOnly: true + fsType: fsType + vsphereVolume: + storagePolicyName: storagePolicyName + storagePolicyID: storagePolicyID + volumePath: volumePath + fsType: fsType + fc: + lun: 2 + targetWWNs: + - targetWWNs + - targetWWNs + readOnly: true + wwids: + - wwids + - wwids + fsType: fsType + hostPath: path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - name: name - tty: true - readinessProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - resizePolicy: - - resourceName: resourceName - restartPolicy: restartPolicy - - resourceName: resourceName - restartPolicy: restartPolicy - stdinOnce: true - envFrom: - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name - image: image - imagePullPolicy: imagePullPolicy - livenessProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - stdin: true - terminationMessagePolicy: terminationMessagePolicy - terminationMessagePath: terminationMessagePath - workingDir: workingDir - resources: - claims: - - name: name - - name: name - requests: {} - limits: {} - securityContext: - privileged: true - runAsUser: 1 - capabilities: - add: - - add - - add - drop: - - drop - - drop - seLinuxOptions: - role: role - level: level - type: type - user: user - seccompProfile: - localhostProfile: localhostProfile - type: type - windowsOptions: - gmsaCredentialSpec: gmsaCredentialSpec - runAsUserName: runAsUserName - hostProcess: true - gmsaCredentialSpecName: gmsaCredentialSpecName - procMount: procMount - allowPrivilegeEscalation: true - runAsGroup: 1 - runAsNonRoot: true - readOnlyRootFilesystem: true - startupProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - env: - - name: name - value: value - valueFrom: - secretKeyRef: + type: type + resources: + claims: + - request: request name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: + - request: request name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - name: name - value: value - valueFrom: - secretKeyRef: + requests: {} + limits: {} + ephemeralContainers: + - volumeDevices: + - devicePath: devicePath name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: + - devicePath: devicePath name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - ports: - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 4 - hostPort: 7 - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 4 - hostPort: 7 - restartPolicy: restartPolicy - command: - - command - - command - volumeMounts: - - mountPath: mountPath - mountPropagation: mountPropagation - name: name - readOnly: true - subPath: subPath - subPathExpr: subPathExpr - - mountPath: mountPath - mountPropagation: mountPropagation - name: name - readOnly: true - subPath: subPath - subPathExpr: subPathExpr - args: - - args - - args - lifecycle: - postStart: - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - preStop: - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - name: name - tty: true - readinessProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - resizePolicy: - - resourceName: resourceName - restartPolicy: restartPolicy - - resourceName: resourceName - restartPolicy: restartPolicy - stdinOnce: true - envFrom: - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - initContainers: - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name - image: image - imagePullPolicy: imagePullPolicy - livenessProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - stdin: true - terminationMessagePolicy: terminationMessagePolicy - terminationMessagePath: terminationMessagePath - workingDir: workingDir - resources: - claims: - - name: name - - name: name - requests: {} - limits: {} - securityContext: - privileged: true - runAsUser: 1 - capabilities: - add: - - add - - add - drop: - - drop - - drop - seLinuxOptions: - role: role - level: level - type: type - user: user - seccompProfile: - localhostProfile: localhostProfile - type: type - windowsOptions: - gmsaCredentialSpec: gmsaCredentialSpec - runAsUserName: runAsUserName - hostProcess: true - gmsaCredentialSpecName: gmsaCredentialSpecName - procMount: procMount - allowPrivilegeEscalation: true - runAsGroup: 1 - runAsNonRoot: true - readOnlyRootFilesystem: true - startupProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - env: - - name: name - value: value - valueFrom: - secretKeyRef: + stdin: true + terminationMessagePolicy: terminationMessagePolicy + securityContext: + privileged: true + runAsUser: 1 + capabilities: + add: + - add + - add + drop: + - drop + - drop + seLinuxOptions: + role: role + level: level + type: type + user: user + appArmorProfile: + localhostProfile: localhostProfile + type: type + seccompProfile: + localhostProfile: localhostProfile + type: type + windowsOptions: + gmsaCredentialSpec: gmsaCredentialSpec + runAsUserName: runAsUserName + hostProcess: true + gmsaCredentialSpecName: gmsaCredentialSpecName + procMount: procMount + allowPrivilegeEscalation: true + runAsGroup: 1 + runAsNonRoot: true + readOnlyRootFilesystem: true + startupProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: port + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + ports: + - protocol: protocol + hostIP: hostIP name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: + containerPort: 7 + hostPort: 1 + - protocol: protocol + hostIP: hostIP name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - name: name - value: value - valueFrom: - secretKeyRef: + containerPort: 7 + hostPort: 1 + volumeMounts: + - mountPath: mountPath + mountPropagation: mountPropagation name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: + readOnly: true + subPath: subPath + recursiveReadOnly: recursiveReadOnly + subPathExpr: subPathExpr + - mountPath: mountPath + mountPropagation: mountPropagation name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - ports: - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 4 - hostPort: 7 - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 4 - hostPort: 7 - restartPolicy: restartPolicy - command: - - command - - command - volumeMounts: - - mountPath: mountPath - mountPropagation: mountPropagation - name: name - readOnly: true - subPath: subPath - subPathExpr: subPathExpr - - mountPath: mountPath - mountPropagation: mountPropagation - name: name - readOnly: true - subPath: subPath - subPathExpr: subPathExpr - args: - - args - - args - lifecycle: - postStart: - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - preStop: - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - name: name - tty: true - readinessProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - resizePolicy: - - resourceName: resourceName - restartPolicy: restartPolicy - - resourceName: resourceName - restartPolicy: restartPolicy - stdinOnce: true - envFrom: - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name - image: image - imagePullPolicy: imagePullPolicy - livenessProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: + readOnly: true + subPath: subPath + recursiveReadOnly: recursiveReadOnly + subPathExpr: subPathExpr + lifecycle: + postStart: + sleep: + seconds: 5 + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + preStop: + sleep: + seconds: 5 + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + stopSignal: stopSignal + readinessProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: port + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + resizePolicy: + - resourceName: resourceName + restartPolicy: restartPolicy + - resourceName: resourceName + restartPolicy: restartPolicy + envFrom: + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + image: image + imagePullPolicy: imagePullPolicy + livenessProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: port + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + targetContainerName: targetContainerName + terminationMessagePath: terminationMessagePath + workingDir: workingDir + resources: + claims: + - request: request + name: name + - request: request + name: name + requests: {} + limits: {} + env: - name: name value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath - name: name value: value - stdin: true - terminationMessagePolicy: terminationMessagePolicy - terminationMessagePath: terminationMessagePath - workingDir: workingDir - resources: - claims: - - name: name - - name: name - requests: {} - limits: {} - securityContext: - privileged: true - runAsUser: 1 - capabilities: - add: - - add - - add - drop: - - drop - - drop - seLinuxOptions: - role: role - level: level - type: type - user: user - seccompProfile: - localhostProfile: localhostProfile - type: type - windowsOptions: - gmsaCredentialSpec: gmsaCredentialSpec - runAsUserName: runAsUserName - hostProcess: true - gmsaCredentialSpecName: gmsaCredentialSpecName - procMount: procMount - allowPrivilegeEscalation: true - runAsGroup: 1 - runAsNonRoot: true - readOnlyRootFilesystem: true - startupProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + restartPolicy: restartPolicy command: - command - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - env: - - name: name - value: value - valueFrom: - secretKeyRef: + args: + - args + - args + name: name + tty: true + stdinOnce: true + - volumeDevices: + - devicePath: devicePath name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: + - devicePath: devicePath name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - name: name - value: value - valueFrom: - secretKeyRef: + stdin: true + terminationMessagePolicy: terminationMessagePolicy + securityContext: + privileged: true + runAsUser: 1 + capabilities: + add: + - add + - add + drop: + - drop + - drop + seLinuxOptions: + role: role + level: level + type: type + user: user + appArmorProfile: + localhostProfile: localhostProfile + type: type + seccompProfile: + localhostProfile: localhostProfile + type: type + windowsOptions: + gmsaCredentialSpec: gmsaCredentialSpec + runAsUserName: runAsUserName + hostProcess: true + gmsaCredentialSpecName: gmsaCredentialSpecName + procMount: procMount + allowPrivilegeEscalation: true + runAsGroup: 1 + runAsNonRoot: true + readOnlyRootFilesystem: true + startupProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: port + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + ports: + - protocol: protocol + hostIP: hostIP name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: + containerPort: 7 + hostPort: 1 + - protocol: protocol + hostIP: hostIP name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - ports: - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 4 - hostPort: 7 - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 4 - hostPort: 7 - restartPolicy: restartPolicy - command: - - command - - command - volumeMounts: - - mountPath: mountPath - mountPropagation: mountPropagation - name: name - readOnly: true - subPath: subPath - subPathExpr: subPathExpr - - mountPath: mountPath - mountPropagation: mountPropagation - name: name - readOnly: true - subPath: subPath - subPathExpr: subPathExpr - args: - - args - - args - lifecycle: - postStart: - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - preStop: - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - name: name - tty: true - readinessProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: + containerPort: 7 + hostPort: 1 + volumeMounts: + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + recursiveReadOnly: recursiveReadOnly + subPathExpr: subPathExpr + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + recursiveReadOnly: recursiveReadOnly + subPathExpr: subPathExpr + lifecycle: + postStart: + sleep: + seconds: 5 + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + preStop: + sleep: + seconds: 5 + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + stopSignal: stopSignal + readinessProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: port + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + resizePolicy: + - resourceName: resourceName + restartPolicy: restartPolicy + - resourceName: resourceName + restartPolicy: restartPolicy + envFrom: + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + image: image + imagePullPolicy: imagePullPolicy + livenessProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: port + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + targetContainerName: targetContainerName + terminationMessagePath: terminationMessagePath + workingDir: workingDir + resources: + claims: + - request: request + name: name + - request: request + name: name + requests: {} + limits: {} + env: - name: name value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath - name: name value: value - resizePolicy: - - resourceName: resourceName - restartPolicy: restartPolicy - - resourceName: resourceName - restartPolicy: restartPolicy - stdinOnce: true - envFrom: - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + restartPolicy: restartPolicy + command: + - command + - command + args: + - args + - args name: name - optional: true - - configMapRef: + tty: true + stdinOnce: true + serviceAccount: serviceAccount + priority: 6 + restartPolicy: restartPolicy + shareProcessNamespace: true + hostUsers: true + resourceClaims: + - resourceClaimName: resourceClaimName name: name - optional: true - prefix: prefix - secretRef: + resourceClaimTemplateName: resourceClaimTemplateName + - resourceClaimName: resourceClaimName name: name - optional: true - affinity: - nodeAffinity: - requiredDuringSchedulingIgnoredDuringExecution: - nodeSelectorTerms: - - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchFields: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchFields: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - preferredDuringSchedulingIgnoredDuringExecution: - - preference: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchFields: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - weight: 6 - - preference: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchFields: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - weight: 6 - podAffinity: - requiredDuringSchedulingIgnoredDuringExecution: - - labelSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - topologyKey: topologyKey - namespaces: - - namespaces - - namespaces - - labelSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - topologyKey: topologyKey - namespaces: - - namespaces - - namespaces - preferredDuringSchedulingIgnoredDuringExecution: - - podAffinityTerm: - labelSelector: - matchExpressions: - - values: - - values - - values + resourceClaimTemplateName: resourceClaimTemplateName + subdomain: subdomain + containers: + - volumeDevices: + - devicePath: devicePath + name: name + - devicePath: devicePath + name: name + image: image + imagePullPolicy: imagePullPolicy + livenessProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: port + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + stdin: true + terminationMessagePolicy: terminationMessagePolicy + terminationMessagePath: terminationMessagePath + workingDir: workingDir + resources: + claims: + - request: request + name: name + - request: request + name: name + requests: {} + limits: {} + securityContext: + privileged: true + runAsUser: 1 + capabilities: + add: + - add + - add + drop: + - drop + - drop + seLinuxOptions: + role: role + level: level + type: type + user: user + appArmorProfile: + localhostProfile: localhostProfile + type: type + seccompProfile: + localhostProfile: localhostProfile + type: type + windowsOptions: + gmsaCredentialSpec: gmsaCredentialSpec + runAsUserName: runAsUserName + hostProcess: true + gmsaCredentialSpecName: gmsaCredentialSpecName + procMount: procMount + allowPrivilegeEscalation: true + runAsGroup: 1 + runAsNonRoot: true + readOnlyRootFilesystem: true + startupProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: port + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + env: + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true key: key - operator: operator - - values: - - values - - values + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true key: key - operator: operator - matchLabels: - key: matchLabels - namespaceSelector: - matchExpressions: - - values: - - values - - values + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true key: key - operator: operator - - values: - - values - - values + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true key: key - operator: operator - matchLabels: - key: matchLabels - topologyKey: topologyKey - namespaces: - - namespaces - - namespaces - weight: 1 - - podAffinityTerm: - labelSelector: - matchExpressions: - - values: - - values - - values + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + ports: + - protocol: protocol + hostIP: hostIP + name: name + containerPort: 7 + hostPort: 1 + - protocol: protocol + hostIP: hostIP + name: name + containerPort: 7 + hostPort: 1 + restartPolicy: restartPolicy + command: + - command + - command + volumeMounts: + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + recursiveReadOnly: recursiveReadOnly + subPathExpr: subPathExpr + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + recursiveReadOnly: recursiveReadOnly + subPathExpr: subPathExpr + args: + - args + - args + lifecycle: + postStart: + sleep: + seconds: 5 + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + preStop: + sleep: + seconds: 5 + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + stopSignal: stopSignal + name: name + tty: true + readinessProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: port + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + resizePolicy: + - resourceName: resourceName + restartPolicy: restartPolicy + - resourceName: resourceName + restartPolicy: restartPolicy + stdinOnce: true + envFrom: + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + - volumeDevices: + - devicePath: devicePath + name: name + - devicePath: devicePath + name: name + image: image + imagePullPolicy: imagePullPolicy + livenessProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: port + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + stdin: true + terminationMessagePolicy: terminationMessagePolicy + terminationMessagePath: terminationMessagePath + workingDir: workingDir + resources: + claims: + - request: request + name: name + - request: request + name: name + requests: {} + limits: {} + securityContext: + privileged: true + runAsUser: 1 + capabilities: + add: + - add + - add + drop: + - drop + - drop + seLinuxOptions: + role: role + level: level + type: type + user: user + appArmorProfile: + localhostProfile: localhostProfile + type: type + seccompProfile: + localhostProfile: localhostProfile + type: type + windowsOptions: + gmsaCredentialSpec: gmsaCredentialSpec + runAsUserName: runAsUserName + hostProcess: true + gmsaCredentialSpecName: gmsaCredentialSpecName + procMount: procMount + allowPrivilegeEscalation: true + runAsGroup: 1 + runAsNonRoot: true + readOnlyRootFilesystem: true + startupProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: port + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + env: + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true key: key - operator: operator - - values: - - values - - values + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true key: key - operator: operator - matchLabels: - key: matchLabels - namespaceSelector: - matchExpressions: - - values: - - values - - values + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true key: key - operator: operator - - values: - - values - - values + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true key: key - operator: operator - matchLabels: - key: matchLabels - topologyKey: topologyKey - namespaces: - - namespaces - - namespaces - weight: 1 - podAntiAffinity: - requiredDuringSchedulingIgnoredDuringExecution: - - labelSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - topologyKey: topologyKey - namespaces: - - namespaces - - namespaces - - labelSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - topologyKey: topologyKey - namespaces: - - namespaces - - namespaces - preferredDuringSchedulingIgnoredDuringExecution: - - podAffinityTerm: - labelSelector: - matchExpressions: - - values: - - values - - values + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + ports: + - protocol: protocol + hostIP: hostIP + name: name + containerPort: 7 + hostPort: 1 + - protocol: protocol + hostIP: hostIP + name: name + containerPort: 7 + hostPort: 1 + restartPolicy: restartPolicy + command: + - command + - command + volumeMounts: + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + recursiveReadOnly: recursiveReadOnly + subPathExpr: subPathExpr + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + recursiveReadOnly: recursiveReadOnly + subPathExpr: subPathExpr + args: + - args + - args + lifecycle: + postStart: + sleep: + seconds: 5 + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + preStop: + sleep: + seconds: 5 + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + stopSignal: stopSignal + name: name + tty: true + readinessProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: port + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + resizePolicy: + - resourceName: resourceName + restartPolicy: restartPolicy + - resourceName: resourceName + restartPolicy: restartPolicy + stdinOnce: true + envFrom: + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + initContainers: + - volumeDevices: + - devicePath: devicePath + name: name + - devicePath: devicePath + name: name + image: image + imagePullPolicy: imagePullPolicy + livenessProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: port + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + stdin: true + terminationMessagePolicy: terminationMessagePolicy + terminationMessagePath: terminationMessagePath + workingDir: workingDir + resources: + claims: + - request: request + name: name + - request: request + name: name + requests: {} + limits: {} + securityContext: + privileged: true + runAsUser: 1 + capabilities: + add: + - add + - add + drop: + - drop + - drop + seLinuxOptions: + role: role + level: level + type: type + user: user + appArmorProfile: + localhostProfile: localhostProfile + type: type + seccompProfile: + localhostProfile: localhostProfile + type: type + windowsOptions: + gmsaCredentialSpec: gmsaCredentialSpec + runAsUserName: runAsUserName + hostProcess: true + gmsaCredentialSpecName: gmsaCredentialSpecName + procMount: procMount + allowPrivilegeEscalation: true + runAsGroup: 1 + runAsNonRoot: true + readOnlyRootFilesystem: true + startupProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: port + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + env: + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true key: key - operator: operator - - values: - - values - - values + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true key: key - operator: operator - matchLabels: - key: matchLabels - namespaceSelector: - matchExpressions: - - values: - - values - - values + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true key: key - operator: operator - - values: - - values - - values + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true key: key - operator: operator - matchLabels: - key: matchLabels - topologyKey: topologyKey - namespaces: - - namespaces - - namespaces - weight: 1 - - podAffinityTerm: - labelSelector: - matchExpressions: - - values: - - values - - values + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + ports: + - protocol: protocol + hostIP: hostIP + name: name + containerPort: 7 + hostPort: 1 + - protocol: protocol + hostIP: hostIP + name: name + containerPort: 7 + hostPort: 1 + restartPolicy: restartPolicy + command: + - command + - command + volumeMounts: + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + recursiveReadOnly: recursiveReadOnly + subPathExpr: subPathExpr + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + recursiveReadOnly: recursiveReadOnly + subPathExpr: subPathExpr + args: + - args + - args + lifecycle: + postStart: + sleep: + seconds: 5 + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + preStop: + sleep: + seconds: 5 + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + stopSignal: stopSignal + name: name + tty: true + readinessProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: port + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + resizePolicy: + - resourceName: resourceName + restartPolicy: restartPolicy + - resourceName: resourceName + restartPolicy: restartPolicy + stdinOnce: true + envFrom: + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + - volumeDevices: + - devicePath: devicePath + name: name + - devicePath: devicePath + name: name + image: image + imagePullPolicy: imagePullPolicy + livenessProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: port + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + stdin: true + terminationMessagePolicy: terminationMessagePolicy + terminationMessagePath: terminationMessagePath + workingDir: workingDir + resources: + claims: + - request: request + name: name + - request: request + name: name + requests: {} + limits: {} + securityContext: + privileged: true + runAsUser: 1 + capabilities: + add: + - add + - add + drop: + - drop + - drop + seLinuxOptions: + role: role + level: level + type: type + user: user + appArmorProfile: + localhostProfile: localhostProfile + type: type + seccompProfile: + localhostProfile: localhostProfile + type: type + windowsOptions: + gmsaCredentialSpec: gmsaCredentialSpec + runAsUserName: runAsUserName + hostProcess: true + gmsaCredentialSpecName: gmsaCredentialSpecName + procMount: procMount + allowPrivilegeEscalation: true + runAsGroup: 1 + runAsNonRoot: true + readOnlyRootFilesystem: true + startupProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: port + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + env: + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true key: key - operator: operator - - values: - - values - - values + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true key: key - operator: operator - matchLabels: - key: matchLabels - namespaceSelector: - matchExpressions: - - values: - - values - - values + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true key: key - operator: operator - - values: - - values - - values + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true key: key - operator: operator - matchLabels: - key: matchLabels - topologyKey: topologyKey - namespaces: - - namespaces - - namespaces - weight: 1 - hostPID: true + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + ports: + - protocol: protocol + hostIP: hostIP + name: name + containerPort: 7 + hostPort: 1 + - protocol: protocol + hostIP: hostIP + name: name + containerPort: 7 + hostPort: 1 + restartPolicy: restartPolicy + command: + - command + - command + volumeMounts: + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + recursiveReadOnly: recursiveReadOnly + subPathExpr: subPathExpr + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + recursiveReadOnly: recursiveReadOnly + subPathExpr: subPathExpr + args: + - args + - args + lifecycle: + postStart: + sleep: + seconds: 5 + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + preStop: + sleep: + seconds: 5 + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + stopSignal: stopSignal + name: name + tty: true + readinessProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: port + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + resizePolicy: + - resourceName: resourceName + restartPolicy: restartPolicy + - resourceName: resourceName + restartPolicy: restartPolicy + stdinOnce: true + envFrom: + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + affinity: + nodeAffinity: + requiredDuringSchedulingIgnoredDuringExecution: + nodeSelectorTerms: + - matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchFields: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + - matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchFields: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + preferredDuringSchedulingIgnoredDuringExecution: + - preference: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchFields: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + weight: 6 + - preference: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchFields: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + weight: 6 + podAffinity: + requiredDuringSchedulingIgnoredDuringExecution: + - labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + mismatchLabelKeys: + - mismatchLabelKeys + - mismatchLabelKeys + namespaces: + - namespaces + - namespaces + - labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + mismatchLabelKeys: + - mismatchLabelKeys + - mismatchLabelKeys + namespaces: + - namespaces + - namespaces + preferredDuringSchedulingIgnoredDuringExecution: + - podAffinityTerm: + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + mismatchLabelKeys: + - mismatchLabelKeys + - mismatchLabelKeys + namespaces: + - namespaces + - namespaces + weight: 1 + - podAffinityTerm: + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + mismatchLabelKeys: + - mismatchLabelKeys + - mismatchLabelKeys + namespaces: + - namespaces + - namespaces + weight: 1 + podAntiAffinity: + requiredDuringSchedulingIgnoredDuringExecution: + - labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + mismatchLabelKeys: + - mismatchLabelKeys + - mismatchLabelKeys + namespaces: + - namespaces + - namespaces + - labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + mismatchLabelKeys: + - mismatchLabelKeys + - mismatchLabelKeys + namespaces: + - namespaces + - namespaces + preferredDuringSchedulingIgnoredDuringExecution: + - podAffinityTerm: + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + mismatchLabelKeys: + - mismatchLabelKeys + - mismatchLabelKeys + namespaces: + - namespaces + - namespaces + weight: 1 + - podAffinityTerm: + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + mismatchLabelKeys: + - mismatchLabelKeys + - mismatchLabelKeys + namespaces: + - namespaces + - namespaces + weight: 1 + hostPID: true + replicas: 6 + selector: + key: selector + minReadySeconds: 0 + status: + fullyLabeledReplicas: 5 + replicas: 7 + readyReplicas: 2 + conditions: + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + status: status + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + status: status + availableReplicas: 1 + observedGeneration: 5 properties: + apiVersion: + description: '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' + type: string + kind: + description: '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' + type: string metadata: $ref: '#/components/schemas/v1.ObjectMeta' spec: - $ref: '#/components/schemas/v1.PodSpec' - type: object - v1.PortStatus: - example: - protocol: protocol - port: 2 - error: error - properties: - error: - description: |- - 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. - type: string - port: - description: Port is the port number of the service port of which status - is recorded here - format: int32 - type: integer - protocol: - description: 'Protocol is the protocol of the service port of which status - is recorded here The supported values are: "TCP", "UDP", "SCTP"' - type: string - required: - - port - - protocol - type: object - v1.PortworxVolumeSource: - description: PortworxVolumeSource represents a Portworx volume resource. - example: - volumeID: volumeID - readOnly: true - fsType: fsType - properties: - fsType: - description: 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. - type: string - readOnly: - description: readOnly defaults to false (read/write). ReadOnly here will - force the ReadOnly setting in VolumeMounts. - type: boolean - volumeID: - description: volumeID uniquely identifies a Portworx volume - type: string - required: - - volumeID - type: object - v1.PreferredSchedulingTerm: - 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). - example: - preference: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchFields: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - weight: 6 - properties: - preference: - $ref: '#/components/schemas/v1.NodeSelectorTerm' - weight: - description: Weight associated with matching the corresponding nodeSelectorTerm, - in the range 1-100. - format: int32 - type: integer - required: - - preference - - weight - type: object - v1.Probe: - description: Probe describes a health check to be performed against a container - to determine whether it is alive or ready to receive traffic. - example: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - properties: - exec: - $ref: '#/components/schemas/v1.ExecAction' - failureThreshold: - description: Minimum consecutive failures for the probe to be considered - failed after having succeeded. Defaults to 3. Minimum value is 1. - format: int32 - type: integer - grpc: - $ref: '#/components/schemas/v1.GRPCAction' - httpGet: - $ref: '#/components/schemas/v1.HTTPGetAction' - initialDelaySeconds: - description: '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' - format: int32 - type: integer - periodSeconds: - description: How often (in seconds) to perform the probe. Default to 10 - seconds. Minimum value is 1. - format: int32 - type: integer - successThreshold: - description: 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. - format: int32 - type: integer - tcpSocket: - $ref: '#/components/schemas/v1.TCPSocketAction' - terminationGracePeriodSeconds: - description: 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. - format: int64 - type: integer - timeoutSeconds: - description: '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' - format: int32 - type: integer - type: object - v1.ProjectedVolumeSource: - description: Represents a projected volume source - example: - sources: - - downwardAPI: - items: - - mode: 6 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - mode: 6 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - configMap: - name: name - optional: true - items: - - mode: 6 - path: path - key: key - - mode: 6 - path: path - key: key - secret: - name: name - optional: true - items: - - mode: 6 - path: path - key: key - - mode: 6 - path: path - key: key - serviceAccountToken: - path: path - audience: audience - expirationSeconds: 5 - - downwardAPI: - items: - - mode: 6 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - mode: 6 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - configMap: - name: name - optional: true - items: - - mode: 6 - path: path - key: key - - mode: 6 - path: path - key: key - secret: - name: name - optional: true - items: - - mode: 6 - path: path - key: key - - mode: 6 - path: path - key: key - serviceAccountToken: - path: path - audience: audience - expirationSeconds: 5 - defaultMode: 6 - properties: - defaultMode: - description: 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. - format: int32 - type: integer - sources: - description: sources is the list of volume projections - items: - $ref: '#/components/schemas/v1.VolumeProjection' - type: array - type: object - v1.QuobyteVolumeSource: - description: Represents a Quobyte mount that lasts the lifetime of a pod. Quobyte - volumes do not support ownership management or SELinux relabeling. - example: - volume: volume - registry: registry - readOnly: true - user: user - tenant: tenant - group: group - properties: - group: - description: group to map volume access to Default is no group - type: string - readOnly: - description: readOnly here will force the Quobyte volume to be mounted with - read-only permissions. Defaults to false. - type: boolean - registry: - description: 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 - type: string - tenant: - description: tenant owning the given Quobyte volume in the Backend Used - with dynamically provisioned Quobyte volumes, value is set by the plugin - type: string - user: - description: user to map volume access to Defaults to serivceaccount user - type: string - volume: - description: volume is a string that references an already created Quobyte - volume by name. - type: string - required: - - registry - - volume - type: object - v1.RBDPersistentVolumeSource: - description: Represents a Rados Block Device mount that lasts the lifetime of - a pod. RBD volumes support ownership management and SELinux relabeling. - example: - image: image - pool: pool - secretRef: - name: name - namespace: namespace - readOnly: true - fsType: fsType - keyring: keyring - user: user - monitors: - - monitors - - monitors - properties: - fsType: - description: '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' - type: string - image: - description: 'image is the rados image name. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it' - type: string - keyring: - description: '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' - type: string - monitors: - description: 'monitors is a collection of Ceph monitors. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it' - items: - type: string - type: array - pool: - description: 'pool is the rados pool name. Default is rbd. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it' - type: string - readOnly: - description: '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' - type: boolean - secretRef: - $ref: '#/components/schemas/v1.SecretReference' - user: - description: 'user is the rados user name. Default is admin. More info: - https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it' - type: string - required: - - image - - monitors + $ref: '#/components/schemas/v1.ReplicationControllerSpec' + status: + $ref: '#/components/schemas/v1.ReplicationControllerStatus' type: object - v1.RBDVolumeSource: - description: Represents a Rados Block Device mount that lasts the lifetime of - a pod. RBD volumes support ownership management and SELinux relabeling. + x-kubernetes-group-version-kind: + - group: "" + kind: ReplicationController + version: v1 + x-implements: + - io.kubernetes.client.common.KubernetesObject + v1.ReplicationControllerCondition: + description: ReplicationControllerCondition describes the state of a replication + controller at a certain point. example: - image: image - pool: pool - secretRef: - name: name - readOnly: true - fsType: fsType - keyring: keyring - user: user - monitors: - - monitors - - monitors + reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + status: status properties: - fsType: - description: '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' + lastTransitionTime: + description: The last time the condition transitioned from one status to + another. + format: date-time type: string - image: - description: 'image is the rados image name. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it' + message: + description: A human readable message indicating details about the transition. type: string - keyring: - description: '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' + reason: + description: The reason for the condition's last transition. type: string - monitors: - description: 'monitors is a collection of Ceph monitors. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it' - items: - type: string - type: array - pool: - description: 'pool is the rados pool name. Default is rbd. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it' + status: + description: Status of the condition, one of True, False, Unknown. type: string - readOnly: - description: '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' - type: boolean - secretRef: - $ref: '#/components/schemas/v1.LocalObjectReference' - user: - description: 'user is the rados user name. Default is admin. More info: - https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it' + type: + description: Type of replication controller condition. type: string required: - - image - - monitors + - status + - type type: object - v1.ReplicationController: - description: ReplicationController represents the configuration of a replication - controller. + v1.ReplicationControllerList: + description: ReplicationControllerList is a collection of replication controllers. example: metadata: - generation: 6 - finalizers: - - finalizers - - finalizers + remainingItemCount: 1 + continue: continue resourceVersion: resourceVersion - annotations: - key: annotations - generateName: generateName - deletionTimestamp: 2000-01-23T04:56:07.000+00:00 - labels: - key: labels - ownerReferences: - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true selfLink: selfLink - deletionGracePeriodSeconds: 0 - uid: uid - managedFields: - - apiVersion: apiVersion - fieldsV1: '{}' - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - - apiVersion: apiVersion - fieldsV1: '{}' - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - creationTimestamp: 2000-01-23T04:56:07.000+00:00 - name: name - namespace: namespace apiVersion: apiVersion kind: kind - spec: - template: - metadata: - generation: 6 - finalizers: - - finalizers - - finalizers - resourceVersion: resourceVersion - annotations: - key: annotations - generateName: generateName - deletionTimestamp: 2000-01-23T04:56:07.000+00:00 - labels: - key: labels - ownerReferences: - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - selfLink: selfLink - deletionGracePeriodSeconds: 0 - uid: uid - managedFields: - - apiVersion: apiVersion - fieldsV1: '{}' - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - - apiVersion: apiVersion - fieldsV1: '{}' - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - creationTimestamp: 2000-01-23T04:56:07.000+00:00 + items: + - metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind name: name - namespace: namespace - spec: - dnsPolicy: dnsPolicy - nodeName: nodeName - terminationGracePeriodSeconds: 5 - dnsConfig: - searches: - - searches - - searches - nameservers: - - nameservers - - nameservers - options: - - name: name - value: value - - name: name - value: value - hostNetwork: true - readinessGates: - - conditionType: conditionType - - conditionType: conditionType - serviceAccountName: serviceAccountName - imagePullSecrets: - - name: name - - name: name - priorityClassName: priorityClassName - hostAliases: - - ip: ip - hostnames: - - hostnames - - hostnames - - ip: ip - hostnames: - - hostnames - - hostnames - securityContext: - runAsUser: 1 - seLinuxOptions: - role: role - level: level - type: type - user: user - fsGroup: 6 - seccompProfile: - localhostProfile: localhostProfile - type: type - windowsOptions: - gmsaCredentialSpec: gmsaCredentialSpec - runAsUserName: runAsUserName - hostProcess: true - gmsaCredentialSpecName: gmsaCredentialSpecName - fsGroupChangePolicy: fsGroupChangePolicy - supplementalGroups: - - 4 - - 4 - runAsGroup: 7 - runAsNonRoot: true - sysctls: + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: '{}' + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: '{}' + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + creationTimestamp: 2000-01-23T04:56:07.000+00:00 + name: name + namespace: namespace + apiVersion: apiVersion + kind: kind + spec: + template: + metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: '{}' + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: '{}' + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + creationTimestamp: 2000-01-23T04:56:07.000+00:00 + name: name + namespace: namespace + spec: + dnsPolicy: dnsPolicy + nodeName: nodeName + terminationGracePeriodSeconds: 9 + dnsConfig: + searches: + - searches + - searches + nameservers: + - nameservers + - nameservers + options: + - name: name + value: value + - name: name + value: value + hostNetwork: true + readinessGates: + - conditionType: conditionType + - conditionType: conditionType + serviceAccountName: serviceAccountName + imagePullSecrets: - name: name - value: value - name: name + priorityClassName: priorityClassName + hostAliases: + - ip: ip + hostnames: + - hostnames + - hostnames + - ip: ip + hostnames: + - hostnames + - hostnames + securityContext: + seLinuxOptions: + role: role + level: level + type: type + user: user + appArmorProfile: + localhostProfile: localhostProfile + type: type + fsGroup: 7 + fsGroupChangePolicy: fsGroupChangePolicy + seLinuxChangePolicy: seLinuxChangePolicy + runAsGroup: 1 + runAsNonRoot: true + sysctls: + - name: name + value: value + - name: name + value: value + runAsUser: 4 + seccompProfile: + localhostProfile: localhostProfile + type: type + windowsOptions: + gmsaCredentialSpec: gmsaCredentialSpec + runAsUserName: runAsUserName + hostProcess: true + gmsaCredentialSpecName: gmsaCredentialSpecName + supplementalGroups: + - 5 + - 5 + supplementalGroupsPolicy: supplementalGroupsPolicy + preemptionPolicy: preemptionPolicy + nodeSelector: + key: nodeSelector + hostname: hostname + runtimeClassName: runtimeClassName + tolerations: + - effect: effect + tolerationSeconds: 9 value: value - preemptionPolicy: preemptionPolicy - nodeSelector: - key: nodeSelector - hostname: hostname - runtimeClassName: runtimeClassName - tolerations: - - effect: effect - tolerationSeconds: 9 - value: value - key: key - operator: operator - - effect: effect - tolerationSeconds: 9 - value: value - key: key - operator: operator - automountServiceAccountToken: true - schedulingGates: - - name: name - - name: name - schedulerName: schedulerName - activeDeadlineSeconds: 0 - os: - name: name - setHostnameAsFQDN: true - enableServiceLinks: true - overhead: {} - hostIPC: true - topologySpreadConstraints: - - nodeTaintsPolicy: nodeTaintsPolicy - whenUnsatisfiable: whenUnsatisfiable - maxSkew: 9 - nodeAffinityPolicy: nodeAffinityPolicy - labelSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - minDomains: 6 - topologyKey: topologyKey - matchLabelKeys: - - matchLabelKeys - - matchLabelKeys - - nodeTaintsPolicy: nodeTaintsPolicy - whenUnsatisfiable: whenUnsatisfiable - maxSkew: 9 - nodeAffinityPolicy: nodeAffinityPolicy - labelSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - minDomains: 6 - topologyKey: topologyKey - matchLabelKeys: - - matchLabelKeys - - matchLabelKeys - volumes: - - quobyte: - volume: volume - registry: registry - readOnly: true - user: user - tenant: tenant - group: group - azureFile: - secretName: secretName - readOnly: true - shareName: shareName - flexVolume: - driver: driver - options: - key: options - secretRef: - name: name - readOnly: true - fsType: fsType - ephemeral: - volumeClaimTemplate: - metadata: - generation: 6 - finalizers: - - finalizers - - finalizers - resourceVersion: resourceVersion - annotations: - key: annotations - generateName: generateName - deletionTimestamp: 2000-01-23T04:56:07.000+00:00 - labels: - key: labels - ownerReferences: - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - selfLink: selfLink - deletionGracePeriodSeconds: 0 - uid: uid - managedFields: - - apiVersion: apiVersion - fieldsV1: '{}' - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - - apiVersion: apiVersion - fieldsV1: '{}' - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - creationTimestamp: 2000-01-23T04:56:07.000+00:00 + key: key + operator: operator + - effect: effect + tolerationSeconds: 9 + value: value + key: key + operator: operator + automountServiceAccountToken: true + schedulingGates: + - name: name + - name: name + schedulerName: schedulerName + activeDeadlineSeconds: 0 + os: + name: name + setHostnameAsFQDN: true + enableServiceLinks: true + overhead: {} + hostIPC: true + topologySpreadConstraints: + - nodeTaintsPolicy: nodeTaintsPolicy + whenUnsatisfiable: whenUnsatisfiable + maxSkew: 6 + nodeAffinityPolicy: nodeAffinityPolicy + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + minDomains: 8 + topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + - nodeTaintsPolicy: nodeTaintsPolicy + whenUnsatisfiable: whenUnsatisfiable + maxSkew: 6 + nodeAffinityPolicy: nodeAffinityPolicy + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + minDomains: 8 + topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + volumes: + - quobyte: + volume: volume + registry: registry + readOnly: true + user: user + tenant: tenant + group: group + azureFile: + secretName: secretName + readOnly: true + shareName: shareName + flexVolume: + driver: driver + options: + key: options + secretRef: name: name - namespace: namespace - spec: - storageClassName: storageClassName - dataSourceRef: - apiGroup: apiGroup - kind: kind + readOnly: true + fsType: fsType + ephemeral: + volumeClaimTemplate: + metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: '{}' + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: '{}' + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + creationTimestamp: 2000-01-23T04:56:07.000+00:00 name: name namespace: namespace - volumeName: volumeName - resources: - claims: - - name: name - - name: name - requests: {} - limits: {} - selector: - matchExpressions: - - values: - - values - - values + spec: + storageClassName: storageClassName + dataSourceRef: + apiGroup: apiGroup + kind: kind + name: name + namespace: namespace + volumeName: volumeName + volumeAttributesClassName: volumeAttributesClassName + resources: + requests: {} + limits: {} + selector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + accessModes: + - accessModes + - accessModes + dataSource: + apiGroup: apiGroup + kind: kind + name: name + volumeMode: volumeMode + secret: + secretName: secretName + defaultMode: 3 + optional: true + items: + - mode: 3 + path: path + key: key + - mode: 3 + path: path + key: key + projected: + sources: + - downwardAPI: + items: + - mode: 1 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - mode: 1 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + configMap: + name: name + optional: true + items: + - mode: 3 + path: path key: key - operator: operator - - values: - - values - - values + - mode: 3 + path: path key: key - operator: operator - matchLabels: - key: matchLabels - accessModes: - - accessModes - - accessModes - dataSource: - apiGroup: apiGroup - kind: kind + secret: name: name - volumeMode: volumeMode - secret: - secretName: secretName - defaultMode: 6 - optional: true - items: - - mode: 6 - path: path - key: key - - mode: 6 - path: path - key: key - projected: - sources: - - downwardAPI: - items: - - mode: 6 + optional: true + items: + - mode: 3 + path: path + key: key + - mode: 3 + path: path + key: key + serviceAccountToken: path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - mode: 6 + audience: audience + expirationSeconds: 6 + clusterTrustBundle: path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - configMap: - name: name - optional: true - items: - - mode: 6 + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + name: name + optional: true + signerName: signerName + - downwardAPI: + items: + - mode: 1 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - mode: 1 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + configMap: + name: name + optional: true + items: + - mode: 3 + path: path + key: key + - mode: 3 + path: path + key: key + secret: + name: name + optional: true + items: + - mode: 3 + path: path + key: key + - mode: 3 + path: path + key: key + serviceAccountToken: path: path - key: key - - mode: 6 + audience: audience + expirationSeconds: 6 + clusterTrustBundle: path: path - key: key - secret: + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + name: name + optional: true + signerName: signerName + defaultMode: 5 + cephfs: + path: path + secretRef: name: name - optional: true - items: - - mode: 6 - path: path - key: key - - mode: 6 - path: path - key: key - serviceAccountToken: - path: path - audience: audience - expirationSeconds: 5 - - downwardAPI: - items: - - mode: 6 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - mode: 6 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - configMap: + secretFile: secretFile + readOnly: true + user: user + monitors: + - monitors + - monitors + scaleIO: + system: system + protectionDomain: protectionDomain + sslEnabled: true + storageMode: storageMode + volumeName: volumeName + secretRef: name: name - optional: true - items: - - mode: 6 - path: path - key: key - - mode: 6 - path: path - key: key - secret: + readOnly: true + fsType: fsType + storagePool: storagePool + gateway: gateway + emptyDir: + sizeLimit: sizeLimit + medium: medium + glusterfs: + path: path + endpoints: endpoints + readOnly: true + gcePersistentDisk: + partition: 6 + readOnly: true + pdName: pdName + fsType: fsType + image: + reference: reference + pullPolicy: pullPolicy + photonPersistentDisk: + pdID: pdID + fsType: fsType + azureDisk: + diskName: diskName + kind: kind + readOnly: true + cachingMode: cachingMode + diskURI: diskURI + fsType: fsType + cinder: + secretRef: name: name - optional: true - items: - - mode: 6 - path: path - key: key - - mode: 6 - path: path - key: key - serviceAccountToken: + volumeID: volumeID + readOnly: true + fsType: fsType + downwardAPI: + defaultMode: 6 + items: + - mode: 1 path: path - audience: audience - expirationSeconds: 5 - defaultMode: 6 - cephfs: - path: path - secretRef: - name: name - secretFile: secretFile - readOnly: true - user: user - monitors: - - monitors - - monitors - scaleIO: - system: system - protectionDomain: protectionDomain - sslEnabled: true - storageMode: storageMode - volumeName: volumeName - secretRef: - name: name - readOnly: true - fsType: fsType - storagePool: storagePool - gateway: gateway - emptyDir: - sizeLimit: sizeLimit - medium: medium - glusterfs: - path: path - endpoints: endpoints - readOnly: true - gcePersistentDisk: - partition: 2 - readOnly: true - pdName: pdName - fsType: fsType - photonPersistentDisk: - pdID: pdID - fsType: fsType - azureDisk: - diskName: diskName - kind: kind - readOnly: true - cachingMode: cachingMode - diskURI: diskURI - fsType: fsType - cinder: - secretRef: - name: name - volumeID: volumeID - readOnly: true - fsType: fsType - downwardAPI: - defaultMode: 3 - items: - - mode: 6 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - mode: 6 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - awsElasticBlockStore: - partition: 8 - volumeID: volumeID - readOnly: true - fsType: fsType - flocker: - datasetName: datasetName - datasetUUID: datasetUUID - iscsi: - chapAuthSession: true - iscsiInterface: iscsiInterface - lun: 6 - chapAuthDiscovery: true - iqn: iqn - portals: - - portals - - portals - secretRef: - name: name - initiatorName: initiatorName - readOnly: true - fsType: fsType - targetPortal: targetPortal - rbd: - image: image - pool: pool - secretRef: + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - mode: 1 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + awsElasticBlockStore: + partition: 9 + volumeID: volumeID + readOnly: true + fsType: fsType + flocker: + datasetName: datasetName + datasetUUID: datasetUUID + iscsi: + chapAuthSession: true + iscsiInterface: iscsiInterface + lun: 6 + chapAuthDiscovery: true + iqn: iqn + portals: + - portals + - portals + secretRef: + name: name + initiatorName: initiatorName + readOnly: true + fsType: fsType + targetPortal: targetPortal + rbd: + image: image + pool: pool + secretRef: + name: name + readOnly: true + fsType: fsType + keyring: keyring + user: user + monitors: + - monitors + - monitors + configMap: + defaultMode: 6 name: name - readOnly: true - fsType: fsType - keyring: keyring - user: user - monitors: - - monitors - - monitors - configMap: - defaultMode: 9 + optional: true + items: + - mode: 3 + path: path + key: key + - mode: 3 + path: path + key: key + storageos: + volumeNamespace: volumeNamespace + volumeName: volumeName + secretRef: + name: name + readOnly: true + fsType: fsType + csi: + driver: driver + nodePublishSecretRef: + name: name + readOnly: true + fsType: fsType + volumeAttributes: + key: volumeAttributes name: name - optional: true - items: - - mode: 6 + nfs: path: path - key: key - - mode: 6 + server: server + readOnly: true + persistentVolumeClaim: + claimName: claimName + readOnly: true + gitRepo: + repository: repository + directory: directory + revision: revision + portworxVolume: + volumeID: volumeID + readOnly: true + fsType: fsType + vsphereVolume: + storagePolicyName: storagePolicyName + storagePolicyID: storagePolicyID + volumePath: volumePath + fsType: fsType + fc: + lun: 2 + targetWWNs: + - targetWWNs + - targetWWNs + readOnly: true + wwids: + - wwids + - wwids + fsType: fsType + hostPath: path: path - key: key - storageos: - volumeNamespace: volumeNamespace - volumeName: volumeName - secretRef: - name: name - readOnly: true - fsType: fsType - csi: - driver: driver - nodePublishSecretRef: - name: name - readOnly: true - fsType: fsType - volumeAttributes: - key: volumeAttributes - name: name - nfs: - path: path - server: server - readOnly: true - persistentVolumeClaim: - claimName: claimName - readOnly: true - gitRepo: - repository: repository - directory: directory - revision: revision - portworxVolume: - volumeID: volumeID - readOnly: true - fsType: fsType - vsphereVolume: - storagePolicyName: storagePolicyName - storagePolicyID: storagePolicyID - volumePath: volumePath - fsType: fsType - fc: - lun: 1 - targetWWNs: - - targetWWNs - - targetWWNs - readOnly: true - wwids: - - wwids - - wwids - fsType: fsType - hostPath: - path: path - type: type - - quobyte: - volume: volume - registry: registry - readOnly: true - user: user - tenant: tenant - group: group - azureFile: - secretName: secretName - readOnly: true - shareName: shareName - flexVolume: - driver: driver - options: - key: options - secretRef: - name: name - readOnly: true - fsType: fsType - ephemeral: - volumeClaimTemplate: - metadata: - generation: 6 - finalizers: - - finalizers - - finalizers - resourceVersion: resourceVersion - annotations: - key: annotations - generateName: generateName - deletionTimestamp: 2000-01-23T04:56:07.000+00:00 - labels: - key: labels - ownerReferences: - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - selfLink: selfLink - deletionGracePeriodSeconds: 0 - uid: uid - managedFields: - - apiVersion: apiVersion - fieldsV1: '{}' - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - - apiVersion: apiVersion - fieldsV1: '{}' - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - creationTimestamp: 2000-01-23T04:56:07.000+00:00 + type: type + - quobyte: + volume: volume + registry: registry + readOnly: true + user: user + tenant: tenant + group: group + azureFile: + secretName: secretName + readOnly: true + shareName: shareName + flexVolume: + driver: driver + options: + key: options + secretRef: name: name - namespace: namespace - spec: - storageClassName: storageClassName - dataSourceRef: - apiGroup: apiGroup - kind: kind + readOnly: true + fsType: fsType + ephemeral: + volumeClaimTemplate: + metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: '{}' + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: '{}' + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + creationTimestamp: 2000-01-23T04:56:07.000+00:00 name: name namespace: namespace - volumeName: volumeName - resources: - claims: - - name: name - - name: name - requests: {} - limits: {} - selector: - matchExpressions: - - values: - - values - - values + spec: + storageClassName: storageClassName + dataSourceRef: + apiGroup: apiGroup + kind: kind + name: name + namespace: namespace + volumeName: volumeName + volumeAttributesClassName: volumeAttributesClassName + resources: + requests: {} + limits: {} + selector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + accessModes: + - accessModes + - accessModes + dataSource: + apiGroup: apiGroup + kind: kind + name: name + volumeMode: volumeMode + secret: + secretName: secretName + defaultMode: 3 + optional: true + items: + - mode: 3 + path: path + key: key + - mode: 3 + path: path + key: key + projected: + sources: + - downwardAPI: + items: + - mode: 1 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - mode: 1 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + configMap: + name: name + optional: true + items: + - mode: 3 + path: path key: key - operator: operator - - values: - - values - - values + - mode: 3 + path: path key: key - operator: operator - matchLabels: - key: matchLabels - accessModes: - - accessModes - - accessModes - dataSource: - apiGroup: apiGroup - kind: kind + secret: name: name - volumeMode: volumeMode - secret: - secretName: secretName - defaultMode: 6 - optional: true - items: - - mode: 6 - path: path - key: key - - mode: 6 - path: path - key: key - projected: - sources: - - downwardAPI: - items: - - mode: 6 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - mode: 6 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - configMap: - name: name - optional: true - items: - - mode: 6 - path: path - key: key - - mode: 6 - path: path - key: key - secret: - name: name - optional: true - items: - - mode: 6 + optional: true + items: + - mode: 3 + path: path + key: key + - mode: 3 + path: path + key: key + serviceAccountToken: path: path - key: key - - mode: 6 + audience: audience + expirationSeconds: 6 + clusterTrustBundle: path: path - key: key - serviceAccountToken: - path: path - audience: audience - expirationSeconds: 5 - - downwardAPI: - items: - - mode: 6 + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + name: name + optional: true + signerName: signerName + - downwardAPI: + items: + - mode: 1 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - mode: 1 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + configMap: + name: name + optional: true + items: + - mode: 3 + path: path + key: key + - mode: 3 + path: path + key: key + secret: + name: name + optional: true + items: + - mode: 3 + path: path + key: key + - mode: 3 + path: path + key: key + serviceAccountToken: path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - mode: 6 + audience: audience + expirationSeconds: 6 + clusterTrustBundle: path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - configMap: + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + name: name + optional: true + signerName: signerName + defaultMode: 5 + cephfs: + path: path + secretRef: name: name - optional: true - items: - - mode: 6 - path: path - key: key - - mode: 6 - path: path - key: key - secret: + secretFile: secretFile + readOnly: true + user: user + monitors: + - monitors + - monitors + scaleIO: + system: system + protectionDomain: protectionDomain + sslEnabled: true + storageMode: storageMode + volumeName: volumeName + secretRef: name: name - optional: true - items: - - mode: 6 - path: path - key: key - - mode: 6 - path: path - key: key - serviceAccountToken: + readOnly: true + fsType: fsType + storagePool: storagePool + gateway: gateway + emptyDir: + sizeLimit: sizeLimit + medium: medium + glusterfs: + path: path + endpoints: endpoints + readOnly: true + gcePersistentDisk: + partition: 6 + readOnly: true + pdName: pdName + fsType: fsType + image: + reference: reference + pullPolicy: pullPolicy + photonPersistentDisk: + pdID: pdID + fsType: fsType + azureDisk: + diskName: diskName + kind: kind + readOnly: true + cachingMode: cachingMode + diskURI: diskURI + fsType: fsType + cinder: + secretRef: + name: name + volumeID: volumeID + readOnly: true + fsType: fsType + downwardAPI: + defaultMode: 6 + items: + - mode: 1 path: path - audience: audience - expirationSeconds: 5 - defaultMode: 6 - cephfs: - path: path - secretRef: - name: name - secretFile: secretFile - readOnly: true - user: user - monitors: - - monitors - - monitors - scaleIO: - system: system - protectionDomain: protectionDomain - sslEnabled: true - storageMode: storageMode - volumeName: volumeName - secretRef: - name: name - readOnly: true - fsType: fsType - storagePool: storagePool - gateway: gateway - emptyDir: - sizeLimit: sizeLimit - medium: medium - glusterfs: - path: path - endpoints: endpoints - readOnly: true - gcePersistentDisk: - partition: 2 - readOnly: true - pdName: pdName - fsType: fsType - photonPersistentDisk: - pdID: pdID - fsType: fsType - azureDisk: - diskName: diskName - kind: kind - readOnly: true - cachingMode: cachingMode - diskURI: diskURI - fsType: fsType - cinder: - secretRef: + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - mode: 1 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + awsElasticBlockStore: + partition: 9 + volumeID: volumeID + readOnly: true + fsType: fsType + flocker: + datasetName: datasetName + datasetUUID: datasetUUID + iscsi: + chapAuthSession: true + iscsiInterface: iscsiInterface + lun: 6 + chapAuthDiscovery: true + iqn: iqn + portals: + - portals + - portals + secretRef: + name: name + initiatorName: initiatorName + readOnly: true + fsType: fsType + targetPortal: targetPortal + rbd: + image: image + pool: pool + secretRef: + name: name + readOnly: true + fsType: fsType + keyring: keyring + user: user + monitors: + - monitors + - monitors + configMap: + defaultMode: 6 name: name - volumeID: volumeID - readOnly: true - fsType: fsType - downwardAPI: - defaultMode: 3 - items: - - mode: 6 + optional: true + items: + - mode: 3 + path: path + key: key + - mode: 3 + path: path + key: key + storageos: + volumeNamespace: volumeNamespace + volumeName: volumeName + secretRef: + name: name + readOnly: true + fsType: fsType + csi: + driver: driver + nodePublishSecretRef: + name: name + readOnly: true + fsType: fsType + volumeAttributes: + key: volumeAttributes + name: name + nfs: path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - mode: 6 + server: server + readOnly: true + persistentVolumeClaim: + claimName: claimName + readOnly: true + gitRepo: + repository: repository + directory: directory + revision: revision + portworxVolume: + volumeID: volumeID + readOnly: true + fsType: fsType + vsphereVolume: + storagePolicyName: storagePolicyName + storagePolicyID: storagePolicyID + volumePath: volumePath + fsType: fsType + fc: + lun: 2 + targetWWNs: + - targetWWNs + - targetWWNs + readOnly: true + wwids: + - wwids + - wwids + fsType: fsType + hostPath: path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - awsElasticBlockStore: - partition: 8 - volumeID: volumeID - readOnly: true - fsType: fsType - flocker: - datasetName: datasetName - datasetUUID: datasetUUID - iscsi: - chapAuthSession: true - iscsiInterface: iscsiInterface - lun: 6 - chapAuthDiscovery: true - iqn: iqn - portals: - - portals - - portals - secretRef: + type: type + resources: + claims: + - request: request name: name - initiatorName: initiatorName - readOnly: true - fsType: fsType - targetPortal: targetPortal - rbd: - image: image - pool: pool - secretRef: + - request: request name: name - readOnly: true - fsType: fsType - keyring: keyring - user: user - monitors: - - monitors - - monitors - configMap: - defaultMode: 9 - name: name - optional: true - items: - - mode: 6 - path: path - key: key - - mode: 6 - path: path - key: key - storageos: - volumeNamespace: volumeNamespace - volumeName: volumeName - secretRef: + requests: {} + limits: {} + ephemeralContainers: + - volumeDevices: + - devicePath: devicePath name: name - readOnly: true - fsType: fsType - csi: - driver: driver - nodePublishSecretRef: + - devicePath: devicePath name: name - readOnly: true - fsType: fsType - volumeAttributes: - key: volumeAttributes - name: name - nfs: - path: path - server: server - readOnly: true - persistentVolumeClaim: - claimName: claimName - readOnly: true - gitRepo: - repository: repository - directory: directory - revision: revision - portworxVolume: - volumeID: volumeID - readOnly: true - fsType: fsType - vsphereVolume: - storagePolicyName: storagePolicyName - storagePolicyID: storagePolicyID - volumePath: volumePath - fsType: fsType - fc: - lun: 1 - targetWWNs: - - targetWWNs - - targetWWNs - readOnly: true - wwids: - - wwids - - wwids - fsType: fsType - hostPath: - path: path - type: type - ephemeralContainers: - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name - stdin: true - terminationMessagePolicy: terminationMessagePolicy - securityContext: - privileged: true - runAsUser: 1 - capabilities: - add: - - add - - add - drop: - - drop - - drop - seLinuxOptions: - role: role - level: level - type: type - user: user - seccompProfile: - localhostProfile: localhostProfile - type: type - windowsOptions: - gmsaCredentialSpec: gmsaCredentialSpec - runAsUserName: runAsUserName - hostProcess: true - gmsaCredentialSpecName: gmsaCredentialSpecName - procMount: procMount - allowPrivilegeEscalation: true - runAsGroup: 1 - runAsNonRoot: true - readOnlyRootFilesystem: true - startupProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - ports: - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 4 - hostPort: 7 - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 4 - hostPort: 7 - volumeMounts: - - mountPath: mountPath - mountPropagation: mountPropagation - name: name - readOnly: true - subPath: subPath - subPathExpr: subPathExpr - - mountPath: mountPath - mountPropagation: mountPropagation - name: name - readOnly: true - subPath: subPath - subPathExpr: subPathExpr - lifecycle: - postStart: + stdin: true + terminationMessagePolicy: terminationMessagePolicy + securityContext: + privileged: true + runAsUser: 1 + capabilities: + add: + - add + - add + drop: + - drop + - drop + seLinuxOptions: + role: role + level: level + type: type + user: user + appArmorProfile: + localhostProfile: localhostProfile + type: type + seccompProfile: + localhostProfile: localhostProfile + type: type + windowsOptions: + gmsaCredentialSpec: gmsaCredentialSpec + runAsUserName: runAsUserName + hostProcess: true + gmsaCredentialSpecName: gmsaCredentialSpecName + procMount: procMount + allowPrivilegeEscalation: true + runAsGroup: 1 + runAsNonRoot: true + readOnlyRootFilesystem: true + startupProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 tcpSocket: port: port host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command + grpc: + port: 2 + service: service httpGet: path: path scheme: scheme @@ -188682,14 +224925,91 @@ components: value: value - name: name value: value - preStop: + ports: + - protocol: protocol + hostIP: hostIP + name: name + containerPort: 7 + hostPort: 1 + - protocol: protocol + hostIP: hostIP + name: name + containerPort: 7 + hostPort: 1 + volumeMounts: + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + recursiveReadOnly: recursiveReadOnly + subPathExpr: subPathExpr + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + recursiveReadOnly: recursiveReadOnly + subPathExpr: subPathExpr + lifecycle: + postStart: + sleep: + seconds: 5 + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + preStop: + sleep: + seconds: 5 + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + stopSignal: stopSignal + readinessProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 tcpSocket: port: port host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command + grpc: + port: 2 + service: service httpGet: path: path scheme: scheme @@ -188700,233 +225020,45 @@ components: value: value - name: name value: value - readinessProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - resizePolicy: - - resourceName: resourceName - restartPolicy: restartPolicy - - resourceName: resourceName - restartPolicy: restartPolicy - envFrom: - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - image: image - imagePullPolicy: imagePullPolicy - livenessProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - targetContainerName: targetContainerName - terminationMessagePath: terminationMessagePath - workingDir: workingDir - resources: - claims: - - name: name - - name: name - requests: {} - limits: {} - env: - - name: name - value: value - valueFrom: - secretKeyRef: + resizePolicy: + - resourceName: resourceName + restartPolicy: restartPolicy + - resourceName: resourceName + restartPolicy: restartPolicy + envFrom: + - configMapRef: name: name optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: + prefix: prefix + secretRef: name: name optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - name: name - value: value - valueFrom: - secretKeyRef: + - configMapRef: name: name optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: + prefix: prefix + secretRef: name: name optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - restartPolicy: restartPolicy - command: - - command - - command - args: - - args - - args - name: name - tty: true - stdinOnce: true - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name - stdin: true - terminationMessagePolicy: terminationMessagePolicy - securityContext: - privileged: true - runAsUser: 1 - capabilities: - add: - - add - - add - drop: - - drop - - drop - seLinuxOptions: - role: role - level: level - type: type - user: user - seccompProfile: - localhostProfile: localhostProfile - type: type - windowsOptions: - gmsaCredentialSpec: gmsaCredentialSpec - runAsUserName: runAsUserName - hostProcess: true - gmsaCredentialSpecName: gmsaCredentialSpecName - procMount: procMount - allowPrivilegeEscalation: true - runAsGroup: 1 - runAsNonRoot: true - readOnlyRootFilesystem: true - startupProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - ports: - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 4 - hostPort: 7 - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 4 - hostPort: 7 - volumeMounts: - - mountPath: mountPath - mountPropagation: mountPropagation - name: name - readOnly: true - subPath: subPath - subPathExpr: subPathExpr - - mountPath: mountPath - mountPropagation: mountPropagation - name: name - readOnly: true - subPath: subPath - subPathExpr: subPathExpr - lifecycle: - postStart: + image: image + imagePullPolicy: imagePullPolicy + livenessProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 tcpSocket: port: port host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command + grpc: + port: 2 + service: service httpGet: path: path scheme: scheme @@ -188937,14 +225069,119 @@ components: value: value - name: name value: value - preStop: + targetContainerName: targetContainerName + terminationMessagePath: terminationMessagePath + workingDir: workingDir + resources: + claims: + - request: request + name: name + - request: request + name: name + requests: {} + limits: {} + env: + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + restartPolicy: restartPolicy + command: + - command + - command + args: + - args + - args + name: name + tty: true + stdinOnce: true + - volumeDevices: + - devicePath: devicePath + name: name + - devicePath: devicePath + name: name + stdin: true + terminationMessagePolicy: terminationMessagePolicy + securityContext: + privileged: true + runAsUser: 1 + capabilities: + add: + - add + - add + drop: + - drop + - drop + seLinuxOptions: + role: role + level: level + type: type + user: user + appArmorProfile: + localhostProfile: localhostProfile + type: type + seccompProfile: + localhostProfile: localhostProfile + type: type + windowsOptions: + gmsaCredentialSpec: gmsaCredentialSpec + runAsUserName: runAsUserName + hostProcess: true + gmsaCredentialSpecName: gmsaCredentialSpecName + procMount: procMount + allowPrivilegeEscalation: true + runAsGroup: 1 + runAsNonRoot: true + readOnlyRootFilesystem: true + startupProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 tcpSocket: port: port host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command + grpc: + port: 2 + service: service httpGet: path: path scheme: scheme @@ -188955,330 +225192,246 @@ components: value: value - name: name value: value - readinessProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - resizePolicy: - - resourceName: resourceName - restartPolicy: restartPolicy - - resourceName: resourceName - restartPolicy: restartPolicy - envFrom: - - configMapRef: + ports: + - protocol: protocol + hostIP: hostIP name: name - optional: true - prefix: prefix - secretRef: + containerPort: 7 + hostPort: 1 + - protocol: protocol + hostIP: hostIP name: name - optional: true - - configMapRef: + containerPort: 7 + hostPort: 1 + volumeMounts: + - mountPath: mountPath + mountPropagation: mountPropagation name: name - optional: true - prefix: prefix - secretRef: + readOnly: true + subPath: subPath + recursiveReadOnly: recursiveReadOnly + subPathExpr: subPathExpr + - mountPath: mountPath + mountPropagation: mountPropagation name: name - optional: true - image: image - imagePullPolicy: imagePullPolicy - livenessProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - targetContainerName: targetContainerName - terminationMessagePath: terminationMessagePath - workingDir: workingDir - resources: - claims: - - name: name - - name: name - requests: {} - limits: {} - env: - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: + readOnly: true + subPath: subPath + recursiveReadOnly: recursiveReadOnly + subPathExpr: subPathExpr + lifecycle: + postStart: + sleep: + seconds: 5 + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + preStop: + sleep: + seconds: 5 + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + stopSignal: stopSignal + readinessProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: port + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + resizePolicy: + - resourceName: resourceName + restartPolicy: restartPolicy + - resourceName: resourceName + restartPolicy: restartPolicy + envFrom: + - configMapRef: name: name optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - restartPolicy: restartPolicy - command: - - command - - command - args: - - args - - args - name: name - tty: true - stdinOnce: true - serviceAccount: serviceAccount - priority: 1 - restartPolicy: restartPolicy - shareProcessNamespace: true - hostUsers: true - resourceClaims: - - name: name - source: - resourceClaimName: resourceClaimName - resourceClaimTemplateName: resourceClaimTemplateName - - name: name - source: - resourceClaimName: resourceClaimName - resourceClaimTemplateName: resourceClaimTemplateName - subdomain: subdomain - containers: - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name - image: image - imagePullPolicy: imagePullPolicy - livenessProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - stdin: true - terminationMessagePolicy: terminationMessagePolicy - terminationMessagePath: terminationMessagePath - workingDir: workingDir - resources: - claims: - - name: name - - name: name - requests: {} - limits: {} - securityContext: - privileged: true - runAsUser: 1 - capabilities: - add: - - add - - add - drop: - - drop - - drop - seLinuxOptions: - role: role - level: level - type: type - user: user - seccompProfile: - localhostProfile: localhostProfile - type: type - windowsOptions: - gmsaCredentialSpec: gmsaCredentialSpec - runAsUserName: runAsUserName - hostProcess: true - gmsaCredentialSpecName: gmsaCredentialSpecName - procMount: procMount - allowPrivilegeEscalation: true - runAsGroup: 1 - runAsNonRoot: true - readOnlyRootFilesystem: true - startupProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - env: - - name: name - value: value - valueFrom: - secretKeyRef: + prefix: prefix + secretRef: name: name optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: + - configMapRef: name: name optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - name: name - value: value - valueFrom: - secretKeyRef: + prefix: prefix + secretRef: name: name optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: + image: image + imagePullPolicy: imagePullPolicy + livenessProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: port + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + targetContainerName: targetContainerName + terminationMessagePath: terminationMessagePath + workingDir: workingDir + resources: + claims: + - request: request name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - ports: - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 4 - hostPort: 7 - - protocol: protocol - hostIP: hostIP + - request: request + name: name + requests: {} + limits: {} + env: + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + restartPolicy: restartPolicy + command: + - command + - command + args: + - args + - args name: name - containerPort: 4 - hostPort: 7 + tty: true + stdinOnce: true + serviceAccount: serviceAccount + priority: 6 restartPolicy: restartPolicy - command: - - command - - command - volumeMounts: - - mountPath: mountPath - mountPropagation: mountPropagation + shareProcessNamespace: true + hostUsers: true + resourceClaims: + - resourceClaimName: resourceClaimName name: name - readOnly: true - subPath: subPath - subPathExpr: subPathExpr - - mountPath: mountPath - mountPropagation: mountPropagation + resourceClaimTemplateName: resourceClaimTemplateName + - resourceClaimName: resourceClaimName name: name - readOnly: true - subPath: subPath - subPathExpr: subPathExpr - args: - - args - - args - lifecycle: - postStart: + resourceClaimTemplateName: resourceClaimTemplateName + subdomain: subdomain + containers: + - volumeDevices: + - devicePath: devicePath + name: name + - devicePath: devicePath + name: name + image: image + imagePullPolicy: imagePullPolicy + livenessProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 tcpSocket: port: port host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command + grpc: + port: 2 + service: service httpGet: path: path scheme: scheme @@ -189289,14 +225442,66 @@ components: value: value - name: name value: value - preStop: + stdin: true + terminationMessagePolicy: terminationMessagePolicy + terminationMessagePath: terminationMessagePath + workingDir: workingDir + resources: + claims: + - request: request + name: name + - request: request + name: name + requests: {} + limits: {} + securityContext: + privileged: true + runAsUser: 1 + capabilities: + add: + - add + - add + drop: + - drop + - drop + seLinuxOptions: + role: role + level: level + type: type + user: user + appArmorProfile: + localhostProfile: localhostProfile + type: type + seccompProfile: + localhostProfile: localhostProfile + type: type + windowsOptions: + gmsaCredentialSpec: gmsaCredentialSpec + runAsUserName: runAsUserName + hostProcess: true + gmsaCredentialSpecName: gmsaCredentialSpecName + procMount: procMount + allowPrivilegeEscalation: true + runAsGroup: 1 + runAsNonRoot: true + readOnlyRootFilesystem: true + startupProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 tcpSocket: port: port host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command + grpc: + port: 2 + service: service httpGet: path: path scheme: scheme @@ -189307,232 +225512,192 @@ components: value: value - name: name value: value - name: name - tty: true - readinessProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - resizePolicy: - - resourceName: resourceName - restartPolicy: restartPolicy - - resourceName: resourceName - restartPolicy: restartPolicy - stdinOnce: true - envFrom: - - configMapRef: + env: + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + ports: + - protocol: protocol + hostIP: hostIP name: name - optional: true - prefix: prefix - secretRef: + containerPort: 7 + hostPort: 1 + - protocol: protocol + hostIP: hostIP name: name - optional: true - - configMapRef: + containerPort: 7 + hostPort: 1 + restartPolicy: restartPolicy + command: + - command + - command + volumeMounts: + - mountPath: mountPath + mountPropagation: mountPropagation name: name - optional: true - prefix: prefix - secretRef: + readOnly: true + subPath: subPath + recursiveReadOnly: recursiveReadOnly + subPathExpr: subPathExpr + - mountPath: mountPath + mountPropagation: mountPropagation name: name - optional: true - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath + readOnly: true + subPath: subPath + recursiveReadOnly: recursiveReadOnly + subPathExpr: subPathExpr + args: + - args + - args + lifecycle: + postStart: + sleep: + seconds: 5 + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + preStop: + sleep: + seconds: 5 + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + stopSignal: stopSignal name: name - image: image - imagePullPolicy: imagePullPolicy - livenessProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - stdin: true - terminationMessagePolicy: terminationMessagePolicy - terminationMessagePath: terminationMessagePath - workingDir: workingDir - resources: - claims: - - name: name - - name: name - requests: {} - limits: {} - securityContext: - privileged: true - runAsUser: 1 - capabilities: - add: - - add - - add - drop: - - drop - - drop - seLinuxOptions: - role: role - level: level - type: type - user: user - seccompProfile: - localhostProfile: localhostProfile - type: type - windowsOptions: - gmsaCredentialSpec: gmsaCredentialSpec - runAsUserName: runAsUserName - hostProcess: true - gmsaCredentialSpecName: gmsaCredentialSpecName - procMount: procMount - allowPrivilegeEscalation: true - runAsGroup: 1 - runAsNonRoot: true - readOnlyRootFilesystem: true - startupProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - env: - - name: name - value: value - valueFrom: - secretKeyRef: + tty: true + readinessProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: port + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + resizePolicy: + - resourceName: resourceName + restartPolicy: restartPolicy + - resourceName: resourceName + restartPolicy: restartPolicy + stdinOnce: true + envFrom: + - configMapRef: name: name optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: + prefix: prefix + secretRef: name: name optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - name: name - value: value - valueFrom: - secretKeyRef: + - configMapRef: name: name optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: + prefix: prefix + secretRef: name: name optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - ports: - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 4 - hostPort: 7 - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 4 - hostPort: 7 - restartPolicy: restartPolicy - command: - - command - - command - volumeMounts: - - mountPath: mountPath - mountPropagation: mountPropagation - name: name - readOnly: true - subPath: subPath - subPathExpr: subPathExpr - - mountPath: mountPath - mountPropagation: mountPropagation - name: name - readOnly: true - subPath: subPath - subPathExpr: subPathExpr - args: - - args - - args - lifecycle: - postStart: + - volumeDevices: + - devicePath: devicePath + name: name + - devicePath: devicePath + name: name + image: image + imagePullPolicy: imagePullPolicy + livenessProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 tcpSocket: port: port host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command + grpc: + port: 2 + service: service httpGet: path: path scheme: scheme @@ -189543,14 +225708,66 @@ components: value: value - name: name value: value - preStop: + stdin: true + terminationMessagePolicy: terminationMessagePolicy + terminationMessagePath: terminationMessagePath + workingDir: workingDir + resources: + claims: + - request: request + name: name + - request: request + name: name + requests: {} + limits: {} + securityContext: + privileged: true + runAsUser: 1 + capabilities: + add: + - add + - add + drop: + - drop + - drop + seLinuxOptions: + role: role + level: level + type: type + user: user + appArmorProfile: + localhostProfile: localhostProfile + type: type + seccompProfile: + localhostProfile: localhostProfile + type: type + windowsOptions: + gmsaCredentialSpec: gmsaCredentialSpec + runAsUserName: runAsUserName + hostProcess: true + gmsaCredentialSpecName: gmsaCredentialSpecName + procMount: procMount + allowPrivilegeEscalation: true + runAsGroup: 1 + runAsNonRoot: true + readOnlyRootFilesystem: true + startupProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 tcpSocket: port: port host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command + grpc: + port: 2 + service: service httpGet: path: path scheme: scheme @@ -189561,233 +225778,263 @@ components: value: value - name: name value: value - name: name - tty: true - readinessProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - resizePolicy: - - resourceName: resourceName - restartPolicy: restartPolicy - - resourceName: resourceName - restartPolicy: restartPolicy - stdinOnce: true - envFrom: - - configMapRef: + env: + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + ports: + - protocol: protocol + hostIP: hostIP name: name - optional: true - prefix: prefix - secretRef: + containerPort: 7 + hostPort: 1 + - protocol: protocol + hostIP: hostIP name: name - optional: true - - configMapRef: + containerPort: 7 + hostPort: 1 + restartPolicy: restartPolicy + command: + - command + - command + volumeMounts: + - mountPath: mountPath + mountPropagation: mountPropagation name: name - optional: true - prefix: prefix - secretRef: + readOnly: true + subPath: subPath + recursiveReadOnly: recursiveReadOnly + subPathExpr: subPathExpr + - mountPath: mountPath + mountPropagation: mountPropagation name: name - optional: true - initContainers: - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath + readOnly: true + subPath: subPath + recursiveReadOnly: recursiveReadOnly + subPathExpr: subPathExpr + args: + - args + - args + lifecycle: + postStart: + sleep: + seconds: 5 + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + preStop: + sleep: + seconds: 5 + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + stopSignal: stopSignal name: name - image: image - imagePullPolicy: imagePullPolicy - livenessProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - stdin: true - terminationMessagePolicy: terminationMessagePolicy - terminationMessagePath: terminationMessagePath - workingDir: workingDir - resources: - claims: - - name: name - - name: name - requests: {} - limits: {} - securityContext: - privileged: true - runAsUser: 1 - capabilities: - add: - - add - - add - drop: - - drop - - drop - seLinuxOptions: - role: role - level: level - type: type - user: user - seccompProfile: - localhostProfile: localhostProfile - type: type - windowsOptions: - gmsaCredentialSpec: gmsaCredentialSpec - runAsUserName: runAsUserName - hostProcess: true - gmsaCredentialSpecName: gmsaCredentialSpecName - procMount: procMount - allowPrivilegeEscalation: true - runAsGroup: 1 - runAsNonRoot: true - readOnlyRootFilesystem: true - startupProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - env: - - name: name - value: value - valueFrom: - secretKeyRef: + tty: true + readinessProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: port + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + resizePolicy: + - resourceName: resourceName + restartPolicy: restartPolicy + - resourceName: resourceName + restartPolicy: restartPolicy + stdinOnce: true + envFrom: + - configMapRef: name: name optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: + prefix: prefix + secretRef: name: name optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - name: name - value: value - valueFrom: - secretKeyRef: + - configMapRef: name: name optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: + prefix: prefix + secretRef: name: name optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - ports: - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 4 - hostPort: 7 - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 4 - hostPort: 7 - restartPolicy: restartPolicy - command: - - command - - command - volumeMounts: - - mountPath: mountPath - mountPropagation: mountPropagation - name: name - readOnly: true - subPath: subPath - subPathExpr: subPathExpr - - mountPath: mountPath - mountPropagation: mountPropagation - name: name - readOnly: true - subPath: subPath - subPathExpr: subPathExpr - args: - - args - - args - lifecycle: - postStart: + initContainers: + - volumeDevices: + - devicePath: devicePath + name: name + - devicePath: devicePath + name: name + image: image + imagePullPolicy: imagePullPolicy + livenessProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: port + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + stdin: true + terminationMessagePolicy: terminationMessagePolicy + terminationMessagePath: terminationMessagePath + workingDir: workingDir + resources: + claims: + - request: request + name: name + - request: request + name: name + requests: {} + limits: {} + securityContext: + privileged: true + runAsUser: 1 + capabilities: + add: + - add + - add + drop: + - drop + - drop + seLinuxOptions: + role: role + level: level + type: type + user: user + appArmorProfile: + localhostProfile: localhostProfile + type: type + seccompProfile: + localhostProfile: localhostProfile + type: type + windowsOptions: + gmsaCredentialSpec: gmsaCredentialSpec + runAsUserName: runAsUserName + hostProcess: true + gmsaCredentialSpecName: gmsaCredentialSpecName + procMount: procMount + allowPrivilegeEscalation: true + runAsGroup: 1 + runAsNonRoot: true + readOnlyRootFilesystem: true + startupProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 tcpSocket: port: port host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command + grpc: + port: 2 + service: service httpGet: path: path scheme: scheme @@ -189798,14 +226045,137 @@ components: value: value - name: name value: value - preStop: + env: + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + ports: + - protocol: protocol + hostIP: hostIP + name: name + containerPort: 7 + hostPort: 1 + - protocol: protocol + hostIP: hostIP + name: name + containerPort: 7 + hostPort: 1 + restartPolicy: restartPolicy + command: + - command + - command + volumeMounts: + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + recursiveReadOnly: recursiveReadOnly + subPathExpr: subPathExpr + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + recursiveReadOnly: recursiveReadOnly + subPathExpr: subPathExpr + args: + - args + - args + lifecycle: + postStart: + sleep: + seconds: 5 + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + preStop: + sleep: + seconds: 5 + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + stopSignal: stopSignal + name: name + tty: true + readinessProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 tcpSocket: port: port host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command + grpc: + port: 2 + service: service httpGet: path: path scheme: scheme @@ -189816,232 +226186,51 @@ components: value: value - name: name value: value - name: name - tty: true - readinessProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - resizePolicy: - - resourceName: resourceName - restartPolicy: restartPolicy - - resourceName: resourceName - restartPolicy: restartPolicy - stdinOnce: true - envFrom: - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name - image: image - imagePullPolicy: imagePullPolicy - livenessProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - stdin: true - terminationMessagePolicy: terminationMessagePolicy - terminationMessagePath: terminationMessagePath - workingDir: workingDir - resources: - claims: - - name: name - - name: name - requests: {} - limits: {} - securityContext: - privileged: true - runAsUser: 1 - capabilities: - add: - - add - - add - drop: - - drop - - drop - seLinuxOptions: - role: role - level: level - type: type - user: user - seccompProfile: - localhostProfile: localhostProfile - type: type - windowsOptions: - gmsaCredentialSpec: gmsaCredentialSpec - runAsUserName: runAsUserName - hostProcess: true - gmsaCredentialSpecName: gmsaCredentialSpecName - procMount: procMount - allowPrivilegeEscalation: true - runAsGroup: 1 - runAsNonRoot: true - readOnlyRootFilesystem: true - startupProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - env: - - name: name - value: value - valueFrom: - secretKeyRef: + resizePolicy: + - resourceName: resourceName + restartPolicy: restartPolicy + - resourceName: resourceName + restartPolicy: restartPolicy + stdinOnce: true + envFrom: + - configMapRef: name: name optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: + prefix: prefix + secretRef: name: name optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - name: name - value: value - valueFrom: - secretKeyRef: + - configMapRef: name: name optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: + prefix: prefix + secretRef: name: name optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - ports: - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 4 - hostPort: 7 - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 4 - hostPort: 7 - restartPolicy: restartPolicy - command: - - command - - command - volumeMounts: - - mountPath: mountPath - mountPropagation: mountPropagation - name: name - readOnly: true - subPath: subPath - subPathExpr: subPathExpr - - mountPath: mountPath - mountPropagation: mountPropagation - name: name - readOnly: true - subPath: subPath - subPathExpr: subPathExpr - args: - - args - - args - lifecycle: - postStart: + - volumeDevices: + - devicePath: devicePath + name: name + - devicePath: devicePath + name: name + image: image + imagePullPolicy: imagePullPolicy + livenessProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 tcpSocket: port: port host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command + grpc: + port: 2 + service: service httpGet: path: path scheme: scheme @@ -190052,14 +226241,66 @@ components: value: value - name: name value: value - preStop: + stdin: true + terminationMessagePolicy: terminationMessagePolicy + terminationMessagePath: terminationMessagePath + workingDir: workingDir + resources: + claims: + - request: request + name: name + - request: request + name: name + requests: {} + limits: {} + securityContext: + privileged: true + runAsUser: 1 + capabilities: + add: + - add + - add + drop: + - drop + - drop + seLinuxOptions: + role: role + level: level + type: type + user: user + appArmorProfile: + localhostProfile: localhostProfile + type: type + seccompProfile: + localhostProfile: localhostProfile + type: type + windowsOptions: + gmsaCredentialSpec: gmsaCredentialSpec + runAsUserName: runAsUserName + hostProcess: true + gmsaCredentialSpecName: gmsaCredentialSpecName + procMount: procMount + allowPrivilegeEscalation: true + runAsGroup: 1 + runAsNonRoot: true + readOnlyRootFilesystem: true + startupProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 tcpSocket: port: port host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command + grpc: + port: 2 + service: service httpGet: path: path scheme: scheme @@ -190070,222 +226311,268 @@ components: value: value - name: name value: value - name: name - tty: true - readinessProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - resizePolicy: - - resourceName: resourceName - restartPolicy: restartPolicy - - resourceName: resourceName - restartPolicy: restartPolicy - stdinOnce: true - envFrom: - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - affinity: - nodeAffinity: - requiredDuringSchedulingIgnoredDuringExecution: - nodeSelectorTerms: - - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchFields: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchFields: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - preferredDuringSchedulingIgnoredDuringExecution: - - preference: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchFields: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - weight: 6 - - preference: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchFields: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - weight: 6 - podAffinity: - requiredDuringSchedulingIgnoredDuringExecution: - - labelSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - topologyKey: topologyKey - namespaces: - - namespaces - - namespaces - - labelSelector: - matchExpressions: - - values: - - values - - values + env: + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true key: key - operator: operator - - values: - - values - - values + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true key: key - operator: operator - matchLabels: - key: matchLabels - namespaceSelector: - matchExpressions: - - values: - - values - - values + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true key: key - operator: operator - - values: - - values - - values + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true key: key - operator: operator - matchLabels: - key: matchLabels - topologyKey: topologyKey - namespaces: - - namespaces - - namespaces - preferredDuringSchedulingIgnoredDuringExecution: - - podAffinityTerm: - labelSelector: + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + ports: + - protocol: protocol + hostIP: hostIP + name: name + containerPort: 7 + hostPort: 1 + - protocol: protocol + hostIP: hostIP + name: name + containerPort: 7 + hostPort: 1 + restartPolicy: restartPolicy + command: + - command + - command + volumeMounts: + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + recursiveReadOnly: recursiveReadOnly + subPathExpr: subPathExpr + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + recursiveReadOnly: recursiveReadOnly + subPathExpr: subPathExpr + args: + - args + - args + lifecycle: + postStart: + sleep: + seconds: 5 + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + preStop: + sleep: + seconds: 5 + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + stopSignal: stopSignal + name: name + tty: true + readinessProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: port + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + resizePolicy: + - resourceName: resourceName + restartPolicy: restartPolicy + - resourceName: resourceName + restartPolicy: restartPolicy + stdinOnce: true + envFrom: + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + affinity: + nodeAffinity: + requiredDuringSchedulingIgnoredDuringExecution: + nodeSelectorTerms: + - matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchFields: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + - matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchFields: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + preferredDuringSchedulingIgnoredDuringExecution: + - preference: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchFields: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + weight: 6 + - preference: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchFields: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + weight: 6 + podAffinity: + requiredDuringSchedulingIgnoredDuringExecution: + - labelSelector: matchExpressions: - values: - values @@ -190314,12 +226601,16 @@ components: matchLabels: key: matchLabels topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + mismatchLabelKeys: + - mismatchLabelKeys + - mismatchLabelKeys namespaces: - namespaces - namespaces - weight: 1 - - podAffinityTerm: - labelSelector: + - labelSelector: matchExpressions: - values: - values @@ -190348,79 +226639,99 @@ components: matchLabels: key: matchLabels topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + mismatchLabelKeys: + - mismatchLabelKeys + - mismatchLabelKeys namespaces: - namespaces - namespaces - weight: 1 - podAntiAffinity: - requiredDuringSchedulingIgnoredDuringExecution: - - labelSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - topologyKey: topologyKey - namespaces: - - namespaces - - namespaces - - labelSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - topologyKey: topologyKey - namespaces: - - namespaces - - namespaces - preferredDuringSchedulingIgnoredDuringExecution: - - podAffinityTerm: - labelSelector: + preferredDuringSchedulingIgnoredDuringExecution: + - podAffinityTerm: + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + mismatchLabelKeys: + - mismatchLabelKeys + - mismatchLabelKeys + namespaces: + - namespaces + - namespaces + weight: 1 + - podAffinityTerm: + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + mismatchLabelKeys: + - mismatchLabelKeys + - mismatchLabelKeys + namespaces: + - namespaces + - namespaces + weight: 1 + podAntiAffinity: + requiredDuringSchedulingIgnoredDuringExecution: + - labelSelector: matchExpressions: - values: - values @@ -190449,12 +226760,16 @@ components: matchLabels: key: matchLabels topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + mismatchLabelKeys: + - mismatchLabelKeys + - mismatchLabelKeys namespaces: - namespaces - namespaces - weight: 1 - - podAffinityTerm: - labelSelector: + - labelSelector: matchExpressions: - values: - values @@ -190483,98 +226798,118 @@ components: matchLabels: key: matchLabels topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + mismatchLabelKeys: + - mismatchLabelKeys + - mismatchLabelKeys namespaces: - namespaces - namespaces - weight: 1 - hostPID: true - replicas: 6 - selector: - key: selector - minReadySeconds: 0 - status: - fullyLabeledReplicas: 5 - replicas: 7 - readyReplicas: 2 - conditions: - - reason: reason - lastTransitionTime: 2000-01-23T04:56:07.000+00:00 - message: message - type: type - status: status - - reason: reason - lastTransitionTime: 2000-01-23T04:56:07.000+00:00 - message: message - type: type - status: status - availableReplicas: 1 - observedGeneration: 5 - properties: - apiVersion: - description: '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' - type: string - kind: - description: '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' - type: string - metadata: - $ref: '#/components/schemas/v1.ObjectMeta' - spec: - $ref: '#/components/schemas/v1.ReplicationControllerSpec' - status: - $ref: '#/components/schemas/v1.ReplicationControllerStatus' - type: object - x-kubernetes-group-version-kind: - - group: "" - kind: ReplicationController - version: v1 - x-implements: - - io.kubernetes.client.common.KubernetesObject - v1.ReplicationControllerCondition: - description: ReplicationControllerCondition describes the state of a replication - controller at a certain point. - example: - reason: reason - lastTransitionTime: 2000-01-23T04:56:07.000+00:00 - message: message - type: type - status: status - properties: - lastTransitionTime: - description: The last time the condition transitioned from one status to - another. - format: date-time - type: string - message: - description: A human readable message indicating details about the transition. - type: string - reason: - description: The reason for the condition's last transition. - type: string - status: - description: Status of the condition, one of True, False, Unknown. - type: string - type: - description: Type of replication controller condition. - type: string - required: - - status - - type - type: object - v1.ReplicationControllerList: - description: ReplicationControllerList is a collection of replication controllers. - example: - metadata: - remainingItemCount: 1 - continue: continue - resourceVersion: resourceVersion - selfLink: selfLink - apiVersion: apiVersion - kind: kind - items: + preferredDuringSchedulingIgnoredDuringExecution: + - podAffinityTerm: + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + mismatchLabelKeys: + - mismatchLabelKeys + - mismatchLabelKeys + namespaces: + - namespaces + - namespaces + weight: 1 + - podAffinityTerm: + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + mismatchLabelKeys: + - mismatchLabelKeys + - mismatchLabelKeys + namespaces: + - namespaces + - namespaces + weight: 1 + hostPID: true + replicas: 6 + selector: + key: selector + minReadySeconds: 0 + status: + fullyLabeledReplicas: 5 + replicas: 7 + readyReplicas: 2 + conditions: + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + status: status + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + status: status + availableReplicas: 1 + observedGeneration: 5 - metadata: generation: 6 finalizers: @@ -190674,7 +227009,7 @@ components: spec: dnsPolicy: dnsPolicy nodeName: nodeName - terminationGracePeriodSeconds: 5 + terminationGracePeriodSeconds: 9 dnsConfig: searches: - searches @@ -190706,32 +227041,37 @@ components: - hostnames - hostnames securityContext: - runAsUser: 1 seLinuxOptions: role: role level: level type: type user: user - fsGroup: 6 - seccompProfile: + appArmorProfile: localhostProfile: localhostProfile type: type - windowsOptions: - gmsaCredentialSpec: gmsaCredentialSpec - runAsUserName: runAsUserName - hostProcess: true - gmsaCredentialSpecName: gmsaCredentialSpecName + fsGroup: 7 fsGroupChangePolicy: fsGroupChangePolicy - supplementalGroups: - - 4 - - 4 - runAsGroup: 7 + seLinuxChangePolicy: seLinuxChangePolicy + runAsGroup: 1 runAsNonRoot: true sysctls: - name: name value: value - name: name value: value + runAsUser: 4 + seccompProfile: + localhostProfile: localhostProfile + type: type + windowsOptions: + gmsaCredentialSpec: gmsaCredentialSpec + runAsUserName: runAsUserName + hostProcess: true + gmsaCredentialSpecName: gmsaCredentialSpecName + supplementalGroups: + - 5 + - 5 + supplementalGroupsPolicy: supplementalGroupsPolicy preemptionPolicy: preemptionPolicy nodeSelector: key: nodeSelector @@ -190763,7 +227103,7 @@ components: topologySpreadConstraints: - nodeTaintsPolicy: nodeTaintsPolicy whenUnsatisfiable: whenUnsatisfiable - maxSkew: 9 + maxSkew: 6 nodeAffinityPolicy: nodeAffinityPolicy labelSelector: matchExpressions: @@ -190779,14 +227119,14 @@ components: operator: operator matchLabels: key: matchLabels - minDomains: 6 + minDomains: 8 topologyKey: topologyKey matchLabelKeys: - matchLabelKeys - matchLabelKeys - nodeTaintsPolicy: nodeTaintsPolicy whenUnsatisfiable: whenUnsatisfiable - maxSkew: 9 + maxSkew: 6 nodeAffinityPolicy: nodeAffinityPolicy labelSelector: matchExpressions: @@ -190802,7 +227142,7 @@ components: operator: operator matchLabels: key: matchLabels - minDomains: 6 + minDomains: 8 topologyKey: topologyKey matchLabelKeys: - matchLabelKeys @@ -190883,10 +227223,8 @@ components: name: name namespace: namespace volumeName: volumeName + volumeAttributesClassName: volumeAttributesClassName resources: - claims: - - name: name - - name: name requests: {} limits: {} selector: @@ -190913,20 +227251,20 @@ components: volumeMode: volumeMode secret: secretName: secretName - defaultMode: 6 + defaultMode: 3 optional: true items: - - mode: 6 + - mode: 3 path: path key: key - - mode: 6 + - mode: 3 path: path key: key projected: sources: - downwardAPI: items: - - mode: 6 + - mode: 1 path: path resourceFieldRef: divisor: divisor @@ -190935,7 +227273,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 6 + - mode: 1 path: path resourceFieldRef: divisor: divisor @@ -190948,29 +227286,48 @@ components: name: name optional: true items: - - mode: 6 + - mode: 3 path: path key: key - - mode: 6 + - mode: 3 path: path key: key secret: name: name optional: true items: - - mode: 6 + - mode: 3 path: path key: key - - mode: 6 + - mode: 3 path: path key: key serviceAccountToken: path: path audience: audience - expirationSeconds: 5 + expirationSeconds: 6 + clusterTrustBundle: + path: path + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + name: name + optional: true + signerName: signerName - downwardAPI: items: - - mode: 6 + - mode: 1 path: path resourceFieldRef: divisor: divisor @@ -190979,7 +227336,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 6 + - mode: 1 path: path resourceFieldRef: divisor: divisor @@ -190992,27 +227349,46 @@ components: name: name optional: true items: - - mode: 6 + - mode: 3 path: path key: key - - mode: 6 + - mode: 3 path: path key: key secret: name: name optional: true items: - - mode: 6 + - mode: 3 path: path key: key - - mode: 6 + - mode: 3 path: path key: key serviceAccountToken: path: path audience: audience - expirationSeconds: 5 - defaultMode: 6 + expirationSeconds: 6 + clusterTrustBundle: + path: path + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + name: name + optional: true + signerName: signerName + defaultMode: 5 cephfs: path: path secretRef: @@ -191043,10 +227419,13 @@ components: endpoints: endpoints readOnly: true gcePersistentDisk: - partition: 2 + partition: 6 readOnly: true pdName: pdName fsType: fsType + image: + reference: reference + pullPolicy: pullPolicy photonPersistentDisk: pdID: pdID fsType: fsType @@ -191064,9 +227443,9 @@ components: readOnly: true fsType: fsType downwardAPI: - defaultMode: 3 + defaultMode: 6 items: - - mode: 6 + - mode: 1 path: path resourceFieldRef: divisor: divisor @@ -191075,7 +227454,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 6 + - mode: 1 path: path resourceFieldRef: divisor: divisor @@ -191085,7 +227464,7 @@ components: apiVersion: apiVersion fieldPath: fieldPath awsElasticBlockStore: - partition: 8 + partition: 9 volumeID: volumeID readOnly: true fsType: fsType @@ -191120,14 +227499,14 @@ components: - monitors - monitors configMap: - defaultMode: 9 + defaultMode: 6 name: name optional: true items: - - mode: 6 + - mode: 3 path: path key: key - - mode: 6 + - mode: 3 path: path key: key storageos: @@ -191167,7 +227546,7 @@ components: volumePath: volumePath fsType: fsType fc: - lun: 1 + lun: 2 targetWWNs: - targetWWNs - targetWWNs @@ -191254,10 +227633,8 @@ components: name: name namespace: namespace volumeName: volumeName + volumeAttributesClassName: volumeAttributesClassName resources: - claims: - - name: name - - name: name requests: {} limits: {} selector: @@ -191284,20 +227661,20 @@ components: volumeMode: volumeMode secret: secretName: secretName - defaultMode: 6 + defaultMode: 3 optional: true items: - - mode: 6 + - mode: 3 path: path key: key - - mode: 6 + - mode: 3 path: path key: key projected: sources: - downwardAPI: items: - - mode: 6 + - mode: 1 path: path resourceFieldRef: divisor: divisor @@ -191306,7 +227683,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 6 + - mode: 1 path: path resourceFieldRef: divisor: divisor @@ -191319,29 +227696,48 @@ components: name: name optional: true items: - - mode: 6 + - mode: 3 path: path key: key - - mode: 6 + - mode: 3 path: path key: key secret: name: name optional: true items: - - mode: 6 + - mode: 3 path: path key: key - - mode: 6 + - mode: 3 path: path key: key serviceAccountToken: path: path audience: audience - expirationSeconds: 5 + expirationSeconds: 6 + clusterTrustBundle: + path: path + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + name: name + optional: true + signerName: signerName - downwardAPI: items: - - mode: 6 + - mode: 1 path: path resourceFieldRef: divisor: divisor @@ -191350,7 +227746,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 6 + - mode: 1 path: path resourceFieldRef: divisor: divisor @@ -191363,27 +227759,46 @@ components: name: name optional: true items: - - mode: 6 + - mode: 3 path: path key: key - - mode: 6 + - mode: 3 path: path key: key secret: name: name optional: true items: - - mode: 6 + - mode: 3 path: path key: key - - mode: 6 + - mode: 3 path: path key: key serviceAccountToken: path: path audience: audience - expirationSeconds: 5 - defaultMode: 6 + expirationSeconds: 6 + clusterTrustBundle: + path: path + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + name: name + optional: true + signerName: signerName + defaultMode: 5 cephfs: path: path secretRef: @@ -191414,10 +227829,13 @@ components: endpoints: endpoints readOnly: true gcePersistentDisk: - partition: 2 + partition: 6 readOnly: true pdName: pdName fsType: fsType + image: + reference: reference + pullPolicy: pullPolicy photonPersistentDisk: pdID: pdID fsType: fsType @@ -191435,9 +227853,9 @@ components: readOnly: true fsType: fsType downwardAPI: - defaultMode: 3 + defaultMode: 6 items: - - mode: 6 + - mode: 1 path: path resourceFieldRef: divisor: divisor @@ -191446,7 +227864,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 6 + - mode: 1 path: path resourceFieldRef: divisor: divisor @@ -191456,7 +227874,7 @@ components: apiVersion: apiVersion fieldPath: fieldPath awsElasticBlockStore: - partition: 8 + partition: 9 volumeID: volumeID readOnly: true fsType: fsType @@ -191491,14 +227909,14 @@ components: - monitors - monitors configMap: - defaultMode: 9 + defaultMode: 6 name: name optional: true items: - - mode: 6 + - mode: 3 path: path key: key - - mode: 6 + - mode: 3 path: path key: key storageos: @@ -191538,7 +227956,7 @@ components: volumePath: volumePath fsType: fsType fc: - lun: 1 + lun: 2 targetWWNs: - targetWWNs - targetWWNs @@ -191550,6 +227968,14 @@ components: hostPath: path: path type: type + resources: + claims: + - request: request + name: name + - request: request + name: name + requests: {} + limits: {} ephemeralContainers: - volumeDevices: - devicePath: devicePath @@ -191573,6 +227999,9 @@ components: level: level type: type user: user + appArmorProfile: + localhostProfile: localhostProfile + type: type seccompProfile: localhostProfile: localhostProfile type: type @@ -191587,21 +228016,21 @@ components: runAsNonRoot: true readOnlyRootFilesystem: true startupProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -191617,28 +228046,32 @@ components: - protocol: protocol hostIP: hostIP name: name - containerPort: 4 - hostPort: 7 + containerPort: 7 + hostPort: 1 - protocol: protocol hostIP: hostIP name: name - containerPort: 4 - hostPort: 7 + containerPort: 7 + hostPort: 1 volumeMounts: - mountPath: mountPath mountPropagation: mountPropagation name: name readOnly: true subPath: subPath + recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - mountPath: mountPath mountPropagation: mountPropagation name: name readOnly: true subPath: subPath + recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr lifecycle: postStart: + sleep: + seconds: 5 tcpSocket: port: port host: host @@ -191657,6 +228090,8 @@ components: - name: name value: value preStop: + sleep: + seconds: 5 tcpSocket: port: port host: host @@ -191674,22 +228109,23 @@ components: value: value - name: name value: value + stopSignal: stopSignal readinessProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -191724,21 +228160,21 @@ components: image: image imagePullPolicy: imagePullPolicy livenessProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -191755,8 +228191,10 @@ components: workingDir: workingDir resources: claims: - - name: name - - name: name + - request: request + name: name + - request: request + name: name requests: {} limits: {} env: @@ -191828,6 +228266,9 @@ components: level: level type: type user: user + appArmorProfile: + localhostProfile: localhostProfile + type: type seccompProfile: localhostProfile: localhostProfile type: type @@ -191842,21 +228283,21 @@ components: runAsNonRoot: true readOnlyRootFilesystem: true startupProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -191872,28 +228313,32 @@ components: - protocol: protocol hostIP: hostIP name: name - containerPort: 4 - hostPort: 7 + containerPort: 7 + hostPort: 1 - protocol: protocol hostIP: hostIP name: name - containerPort: 4 - hostPort: 7 + containerPort: 7 + hostPort: 1 volumeMounts: - mountPath: mountPath mountPropagation: mountPropagation name: name readOnly: true subPath: subPath + recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - mountPath: mountPath mountPropagation: mountPropagation name: name readOnly: true subPath: subPath + recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr lifecycle: postStart: + sleep: + seconds: 5 tcpSocket: port: port host: host @@ -191912,6 +228357,8 @@ components: - name: name value: value preStop: + sleep: + seconds: 5 tcpSocket: port: port host: host @@ -191929,22 +228376,23 @@ components: value: value - name: name value: value + stopSignal: stopSignal readinessProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -191979,21 +228427,21 @@ components: image: image imagePullPolicy: imagePullPolicy livenessProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -192010,8 +228458,10 @@ components: workingDir: workingDir resources: claims: - - name: name - - name: name + - request: request + name: name + - request: request + name: name requests: {} limits: {} env: @@ -192062,19 +228512,17 @@ components: tty: true stdinOnce: true serviceAccount: serviceAccount - priority: 1 + priority: 6 restartPolicy: restartPolicy shareProcessNamespace: true hostUsers: true resourceClaims: - - name: name - source: - resourceClaimName: resourceClaimName - resourceClaimTemplateName: resourceClaimTemplateName - - name: name - source: - resourceClaimName: resourceClaimName - resourceClaimTemplateName: resourceClaimTemplateName + - resourceClaimName: resourceClaimName + name: name + resourceClaimTemplateName: resourceClaimTemplateName + - resourceClaimName: resourceClaimName + name: name + resourceClaimTemplateName: resourceClaimTemplateName subdomain: subdomain containers: - volumeDevices: @@ -192085,21 +228533,21 @@ components: image: image imagePullPolicy: imagePullPolicy livenessProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -192117,8 +228565,10 @@ components: workingDir: workingDir resources: claims: - - name: name - - name: name + - request: request + name: name + - request: request + name: name requests: {} limits: {} securityContext: @@ -192136,6 +228586,9 @@ components: level: level type: type user: user + appArmorProfile: + localhostProfile: localhostProfile + type: type seccompProfile: localhostProfile: localhostProfile type: type @@ -192150,21 +228603,21 @@ components: runAsNonRoot: true readOnlyRootFilesystem: true startupProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -192217,13 +228670,13 @@ components: - protocol: protocol hostIP: hostIP name: name - containerPort: 4 - hostPort: 7 + containerPort: 7 + hostPort: 1 - protocol: protocol hostIP: hostIP name: name - containerPort: 4 - hostPort: 7 + containerPort: 7 + hostPort: 1 restartPolicy: restartPolicy command: - command @@ -192234,18 +228687,22 @@ components: name: name readOnly: true subPath: subPath + recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - mountPath: mountPath mountPropagation: mountPropagation name: name readOnly: true subPath: subPath + recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr args: - args - args lifecycle: postStart: + sleep: + seconds: 5 tcpSocket: port: port host: host @@ -192264,6 +228721,8 @@ components: - name: name value: value preStop: + sleep: + seconds: 5 tcpSocket: port: port host: host @@ -192281,24 +228740,25 @@ components: value: value - name: name value: value + stopSignal: stopSignal name: name tty: true readinessProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -192339,21 +228799,21 @@ components: image: image imagePullPolicy: imagePullPolicy livenessProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -192371,8 +228831,10 @@ components: workingDir: workingDir resources: claims: - - name: name - - name: name + - request: request + name: name + - request: request + name: name requests: {} limits: {} securityContext: @@ -192390,6 +228852,9 @@ components: level: level type: type user: user + appArmorProfile: + localhostProfile: localhostProfile + type: type seccompProfile: localhostProfile: localhostProfile type: type @@ -192404,21 +228869,21 @@ components: runAsNonRoot: true readOnlyRootFilesystem: true startupProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -192471,13 +228936,13 @@ components: - protocol: protocol hostIP: hostIP name: name - containerPort: 4 - hostPort: 7 + containerPort: 7 + hostPort: 1 - protocol: protocol hostIP: hostIP name: name - containerPort: 4 - hostPort: 7 + containerPort: 7 + hostPort: 1 restartPolicy: restartPolicy command: - command @@ -192488,18 +228953,22 @@ components: name: name readOnly: true subPath: subPath + recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - mountPath: mountPath mountPropagation: mountPropagation name: name readOnly: true subPath: subPath + recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr args: - args - args lifecycle: postStart: + sleep: + seconds: 5 tcpSocket: port: port host: host @@ -192518,6 +228987,8 @@ components: - name: name value: value preStop: + sleep: + seconds: 5 tcpSocket: port: port host: host @@ -192535,24 +229006,25 @@ components: value: value - name: name value: value + stopSignal: stopSignal name: name tty: true readinessProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -192594,21 +229066,21 @@ components: image: image imagePullPolicy: imagePullPolicy livenessProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -192626,8 +229098,10 @@ components: workingDir: workingDir resources: claims: - - name: name - - name: name + - request: request + name: name + - request: request + name: name requests: {} limits: {} securityContext: @@ -192645,6 +229119,9 @@ components: level: level type: type user: user + appArmorProfile: + localhostProfile: localhostProfile + type: type seccompProfile: localhostProfile: localhostProfile type: type @@ -192659,21 +229136,21 @@ components: runAsNonRoot: true readOnlyRootFilesystem: true startupProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -192726,13 +229203,13 @@ components: - protocol: protocol hostIP: hostIP name: name - containerPort: 4 - hostPort: 7 + containerPort: 7 + hostPort: 1 - protocol: protocol hostIP: hostIP name: name - containerPort: 4 - hostPort: 7 + containerPort: 7 + hostPort: 1 restartPolicy: restartPolicy command: - command @@ -192743,18 +229220,22 @@ components: name: name readOnly: true subPath: subPath + recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - mountPath: mountPath mountPropagation: mountPropagation name: name readOnly: true subPath: subPath + recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr args: - args - args lifecycle: postStart: + sleep: + seconds: 5 tcpSocket: port: port host: host @@ -192773,6 +229254,8 @@ components: - name: name value: value preStop: + sleep: + seconds: 5 tcpSocket: port: port host: host @@ -192790,24 +229273,25 @@ components: value: value - name: name value: value + stopSignal: stopSignal name: name tty: true readinessProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -192848,21 +229332,21 @@ components: image: image imagePullPolicy: imagePullPolicy livenessProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -192880,8 +229364,10 @@ components: workingDir: workingDir resources: claims: - - name: name - - name: name + - request: request + name: name + - request: request + name: name requests: {} limits: {} securityContext: @@ -192899,6 +229385,9 @@ components: level: level type: type user: user + appArmorProfile: + localhostProfile: localhostProfile + type: type seccompProfile: localhostProfile: localhostProfile type: type @@ -192913,21 +229402,21 @@ components: runAsNonRoot: true readOnlyRootFilesystem: true startupProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -192980,13 +229469,13 @@ components: - protocol: protocol hostIP: hostIP name: name - containerPort: 4 - hostPort: 7 + containerPort: 7 + hostPort: 1 - protocol: protocol hostIP: hostIP name: name - containerPort: 4 - hostPort: 7 + containerPort: 7 + hostPort: 1 restartPolicy: restartPolicy command: - command @@ -192997,18 +229486,22 @@ components: name: name readOnly: true subPath: subPath + recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - mountPath: mountPath mountPropagation: mountPropagation name: name readOnly: true subPath: subPath + recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr args: - args - args lifecycle: postStart: + sleep: + seconds: 5 tcpSocket: port: port host: host @@ -193027,6 +229520,8 @@ components: - name: name value: value preStop: + sleep: + seconds: 5 tcpSocket: port: port host: host @@ -193044,24 +229539,25 @@ components: value: value - name: name value: value + stopSignal: stopSignal name: name tty: true readinessProbe: - terminationGracePeriodSeconds: 3 + terminationGracePeriodSeconds: 2 failureThreshold: 5 - periodSeconds: 7 + periodSeconds: 9 tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 exec: command: - command - command grpc: - port: 5 + port: 2 service: service httpGet: path: path @@ -193222,6 +229718,12 @@ components: matchLabels: key: matchLabels topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + mismatchLabelKeys: + - mismatchLabelKeys + - mismatchLabelKeys namespaces: - namespaces - namespaces @@ -193254,6 +229756,12 @@ components: matchLabels: key: matchLabels topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + mismatchLabelKeys: + - mismatchLabelKeys + - mismatchLabelKeys namespaces: - namespaces - namespaces @@ -193288,6 +229796,12 @@ components: matchLabels: key: matchLabels topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + mismatchLabelKeys: + - mismatchLabelKeys + - mismatchLabelKeys namespaces: - namespaces - namespaces @@ -193322,6 +229836,12 @@ components: matchLabels: key: matchLabels topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + mismatchLabelKeys: + - mismatchLabelKeys + - mismatchLabelKeys namespaces: - namespaces - namespaces @@ -193357,6 +229877,12 @@ components: matchLabels: key: matchLabels topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + mismatchLabelKeys: + - mismatchLabelKeys + - mismatchLabelKeys namespaces: - namespaces - namespaces @@ -193389,6 +229915,12 @@ components: matchLabels: key: matchLabels topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + mismatchLabelKeys: + - mismatchLabelKeys + - mismatchLabelKeys namespaces: - namespaces - namespaces @@ -193423,6 +229955,12 @@ components: matchLabels: key: matchLabels topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + mismatchLabelKeys: + - mismatchLabelKeys + - mismatchLabelKeys namespaces: - namespaces - namespaces @@ -193457,6 +229995,12 @@ components: matchLabels: key: matchLabels topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + mismatchLabelKeys: + - mismatchLabelKeys + - mismatchLabelKeys namespaces: - namespaces - namespaces @@ -193483,7 +230027,39 @@ components: status: status availableReplicas: 1 observedGeneration: 5 - - metadata: + properties: + apiVersion: + description: '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' + type: string + items: + description: 'List of replication controllers. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller' + items: + $ref: '#/components/schemas/v1.ReplicationController' + type: array + kind: + description: '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' + type: string + metadata: + $ref: '#/components/schemas/v1.ListMeta' + required: + - items + type: object + x-kubernetes-group-version-kind: + - group: "" + kind: ReplicationControllerList + version: v1 + x-implements: + - io.kubernetes.client.common.KubernetesListObject + v1.ReplicationControllerSpec: + description: ReplicationControllerSpec is the specification of a replication + controller. + example: + template: + metadata: generation: 6 finalizers: - finalizers @@ -193529,452 +230105,675 @@ components: creationTimestamp: 2000-01-23T04:56:07.000+00:00 name: name namespace: namespace - apiVersion: apiVersion - kind: kind spec: - template: - metadata: - generation: 6 - finalizers: - - finalizers - - finalizers - resourceVersion: resourceVersion - annotations: - key: annotations - generateName: generateName - deletionTimestamp: 2000-01-23T04:56:07.000+00:00 - labels: - key: labels - ownerReferences: - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - selfLink: selfLink - deletionGracePeriodSeconds: 0 - uid: uid - managedFields: - - apiVersion: apiVersion - fieldsV1: '{}' - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - - apiVersion: apiVersion - fieldsV1: '{}' - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - creationTimestamp: 2000-01-23T04:56:07.000+00:00 - name: name - namespace: namespace - spec: - dnsPolicy: dnsPolicy - nodeName: nodeName - terminationGracePeriodSeconds: 5 - dnsConfig: - searches: - - searches - - searches - nameservers: - - nameservers - - nameservers - options: - - name: name - value: value - - name: name - value: value - hostNetwork: true - readinessGates: - - conditionType: conditionType - - conditionType: conditionType - serviceAccountName: serviceAccountName - imagePullSecrets: - - name: name - - name: name - priorityClassName: priorityClassName - hostAliases: - - ip: ip - hostnames: - - hostnames - - hostnames - - ip: ip - hostnames: - - hostnames - - hostnames - securityContext: - runAsUser: 1 - seLinuxOptions: - role: role - level: level - type: type - user: user - fsGroup: 6 - seccompProfile: - localhostProfile: localhostProfile - type: type - windowsOptions: - gmsaCredentialSpec: gmsaCredentialSpec - runAsUserName: runAsUserName - hostProcess: true - gmsaCredentialSpecName: gmsaCredentialSpecName - fsGroupChangePolicy: fsGroupChangePolicy - supplementalGroups: - - 4 - - 4 - runAsGroup: 7 - runAsNonRoot: true - sysctls: - - name: name - value: value - - name: name - value: value - preemptionPolicy: preemptionPolicy - nodeSelector: - key: nodeSelector - hostname: hostname - runtimeClassName: runtimeClassName - tolerations: - - effect: effect - tolerationSeconds: 9 - value: value + dnsPolicy: dnsPolicy + nodeName: nodeName + terminationGracePeriodSeconds: 9 + dnsConfig: + searches: + - searches + - searches + nameservers: + - nameservers + - nameservers + options: + - name: name + value: value + - name: name + value: value + hostNetwork: true + readinessGates: + - conditionType: conditionType + - conditionType: conditionType + serviceAccountName: serviceAccountName + imagePullSecrets: + - name: name + - name: name + priorityClassName: priorityClassName + hostAliases: + - ip: ip + hostnames: + - hostnames + - hostnames + - ip: ip + hostnames: + - hostnames + - hostnames + securityContext: + seLinuxOptions: + role: role + level: level + type: type + user: user + appArmorProfile: + localhostProfile: localhostProfile + type: type + fsGroup: 7 + fsGroupChangePolicy: fsGroupChangePolicy + seLinuxChangePolicy: seLinuxChangePolicy + runAsGroup: 1 + runAsNonRoot: true + sysctls: + - name: name + value: value + - name: name + value: value + runAsUser: 4 + seccompProfile: + localhostProfile: localhostProfile + type: type + windowsOptions: + gmsaCredentialSpec: gmsaCredentialSpec + runAsUserName: runAsUserName + hostProcess: true + gmsaCredentialSpecName: gmsaCredentialSpecName + supplementalGroups: + - 5 + - 5 + supplementalGroupsPolicy: supplementalGroupsPolicy + preemptionPolicy: preemptionPolicy + nodeSelector: + key: nodeSelector + hostname: hostname + runtimeClassName: runtimeClassName + tolerations: + - effect: effect + tolerationSeconds: 9 + value: value + key: key + operator: operator + - effect: effect + tolerationSeconds: 9 + value: value + key: key + operator: operator + automountServiceAccountToken: true + schedulingGates: + - name: name + - name: name + schedulerName: schedulerName + activeDeadlineSeconds: 0 + os: + name: name + setHostnameAsFQDN: true + enableServiceLinks: true + overhead: {} + hostIPC: true + topologySpreadConstraints: + - nodeTaintsPolicy: nodeTaintsPolicy + whenUnsatisfiable: whenUnsatisfiable + maxSkew: 6 + nodeAffinityPolicy: nodeAffinityPolicy + labelSelector: + matchExpressions: + - values: + - values + - values key: key operator: operator - - effect: effect - tolerationSeconds: 9 - value: value + - values: + - values + - values key: key operator: operator - automountServiceAccountToken: true - schedulingGates: - - name: name - - name: name - schedulerName: schedulerName - activeDeadlineSeconds: 0 - os: + matchLabels: + key: matchLabels + minDomains: 8 + topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + - nodeTaintsPolicy: nodeTaintsPolicy + whenUnsatisfiable: whenUnsatisfiable + maxSkew: 6 + nodeAffinityPolicy: nodeAffinityPolicy + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + minDomains: 8 + topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + volumes: + - quobyte: + volume: volume + registry: registry + readOnly: true + user: user + tenant: tenant + group: group + azureFile: + secretName: secretName + readOnly: true + shareName: shareName + flexVolume: + driver: driver + options: + key: options + secretRef: name: name - setHostnameAsFQDN: true - enableServiceLinks: true - overhead: {} - hostIPC: true - topologySpreadConstraints: - - nodeTaintsPolicy: nodeTaintsPolicy - whenUnsatisfiable: whenUnsatisfiable - maxSkew: 9 - nodeAffinityPolicy: nodeAffinityPolicy - labelSelector: - matchExpressions: - - values: - - values - - values + readOnly: true + fsType: fsType + ephemeral: + volumeClaimTemplate: + metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: '{}' + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: '{}' + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + creationTimestamp: 2000-01-23T04:56:07.000+00:00 + name: name + namespace: namespace + spec: + storageClassName: storageClassName + dataSourceRef: + apiGroup: apiGroup + kind: kind + name: name + namespace: namespace + volumeName: volumeName + volumeAttributesClassName: volumeAttributesClassName + resources: + requests: {} + limits: {} + selector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + accessModes: + - accessModes + - accessModes + dataSource: + apiGroup: apiGroup + kind: kind + name: name + volumeMode: volumeMode + secret: + secretName: secretName + defaultMode: 3 + optional: true + items: + - mode: 3 + path: path + key: key + - mode: 3 + path: path + key: key + projected: + sources: + - downwardAPI: + items: + - mode: 1 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - mode: 1 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + configMap: + name: name + optional: true + items: + - mode: 3 + path: path key: key - operator: operator - - values: - - values - - values + - mode: 3 + path: path key: key - operator: operator - matchLabels: - key: matchLabels - minDomains: 6 - topologyKey: topologyKey - matchLabelKeys: - - matchLabelKeys - - matchLabelKeys - - nodeTaintsPolicy: nodeTaintsPolicy - whenUnsatisfiable: whenUnsatisfiable - maxSkew: 9 - nodeAffinityPolicy: nodeAffinityPolicy - labelSelector: - matchExpressions: - - values: - - values - - values + secret: + name: name + optional: true + items: + - mode: 3 + path: path key: key - operator: operator - - values: - - values - - values + - mode: 3 + path: path + key: key + serviceAccountToken: + path: path + audience: audience + expirationSeconds: 6 + clusterTrustBundle: + path: path + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + name: name + optional: true + signerName: signerName + - downwardAPI: + items: + - mode: 1 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - mode: 1 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + configMap: + name: name + optional: true + items: + - mode: 3 + path: path + key: key + - mode: 3 + path: path key: key - operator: operator - matchLabels: - key: matchLabels - minDomains: 6 - topologyKey: topologyKey - matchLabelKeys: - - matchLabelKeys - - matchLabelKeys - volumes: - - quobyte: - volume: volume - registry: registry - readOnly: true - user: user - tenant: tenant - group: group - azureFile: - secretName: secretName - readOnly: true - shareName: shareName - flexVolume: - driver: driver - options: - key: options - secretRef: - name: name - readOnly: true - fsType: fsType - ephemeral: - volumeClaimTemplate: - metadata: - generation: 6 - finalizers: - - finalizers - - finalizers - resourceVersion: resourceVersion - annotations: - key: annotations - generateName: generateName - deletionTimestamp: 2000-01-23T04:56:07.000+00:00 - labels: - key: labels - ownerReferences: - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - selfLink: selfLink - deletionGracePeriodSeconds: 0 - uid: uid - managedFields: - - apiVersion: apiVersion - fieldsV1: '{}' - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - - apiVersion: apiVersion - fieldsV1: '{}' - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - creationTimestamp: 2000-01-23T04:56:07.000+00:00 - name: name - namespace: namespace - spec: - storageClassName: storageClassName - dataSourceRef: - apiGroup: apiGroup - kind: kind - name: name - namespace: namespace - volumeName: volumeName - resources: - claims: - - name: name - - name: name - requests: {} - limits: {} - selector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - accessModes: - - accessModes - - accessModes - dataSource: - apiGroup: apiGroup - kind: kind - name: name - volumeMode: volumeMode secret: - secretName: secretName - defaultMode: 6 + name: name optional: true items: - - mode: 6 + - mode: 3 path: path key: key - - mode: 6 + - mode: 3 path: path key: key - projected: - sources: - - downwardAPI: - items: - - mode: 6 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - mode: 6 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - configMap: - name: name - optional: true - items: - - mode: 6 - path: path - key: key - - mode: 6 - path: path - key: key - secret: - name: name - optional: true - items: - - mode: 6 - path: path - key: key - - mode: 6 - path: path - key: key - serviceAccountToken: - path: path - audience: audience - expirationSeconds: 5 - - downwardAPI: - items: - - mode: 6 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - mode: 6 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - configMap: - name: name - optional: true - items: - - mode: 6 - path: path - key: key - - mode: 6 - path: path - key: key - secret: - name: name - optional: true - items: - - mode: 6 - path: path - key: key - - mode: 6 - path: path - key: key - serviceAccountToken: - path: path - audience: audience - expirationSeconds: 5 - defaultMode: 6 - cephfs: + serviceAccountToken: path: path - secretRef: + audience: audience + expirationSeconds: 6 + clusterTrustBundle: + path: path + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + name: name + optional: true + signerName: signerName + defaultMode: 5 + cephfs: + path: path + secretRef: + name: name + secretFile: secretFile + readOnly: true + user: user + monitors: + - monitors + - monitors + scaleIO: + system: system + protectionDomain: protectionDomain + sslEnabled: true + storageMode: storageMode + volumeName: volumeName + secretRef: + name: name + readOnly: true + fsType: fsType + storagePool: storagePool + gateway: gateway + emptyDir: + sizeLimit: sizeLimit + medium: medium + glusterfs: + path: path + endpoints: endpoints + readOnly: true + gcePersistentDisk: + partition: 6 + readOnly: true + pdName: pdName + fsType: fsType + image: + reference: reference + pullPolicy: pullPolicy + photonPersistentDisk: + pdID: pdID + fsType: fsType + azureDisk: + diskName: diskName + kind: kind + readOnly: true + cachingMode: cachingMode + diskURI: diskURI + fsType: fsType + cinder: + secretRef: + name: name + volumeID: volumeID + readOnly: true + fsType: fsType + downwardAPI: + defaultMode: 6 + items: + - mode: 1 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - mode: 1 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + awsElasticBlockStore: + partition: 9 + volumeID: volumeID + readOnly: true + fsType: fsType + flocker: + datasetName: datasetName + datasetUUID: datasetUUID + iscsi: + chapAuthSession: true + iscsiInterface: iscsiInterface + lun: 6 + chapAuthDiscovery: true + iqn: iqn + portals: + - portals + - portals + secretRef: + name: name + initiatorName: initiatorName + readOnly: true + fsType: fsType + targetPortal: targetPortal + rbd: + image: image + pool: pool + secretRef: + name: name + readOnly: true + fsType: fsType + keyring: keyring + user: user + monitors: + - monitors + - monitors + configMap: + defaultMode: 6 + name: name + optional: true + items: + - mode: 3 + path: path + key: key + - mode: 3 + path: path + key: key + storageos: + volumeNamespace: volumeNamespace + volumeName: volumeName + secretRef: + name: name + readOnly: true + fsType: fsType + csi: + driver: driver + nodePublishSecretRef: + name: name + readOnly: true + fsType: fsType + volumeAttributes: + key: volumeAttributes + name: name + nfs: + path: path + server: server + readOnly: true + persistentVolumeClaim: + claimName: claimName + readOnly: true + gitRepo: + repository: repository + directory: directory + revision: revision + portworxVolume: + volumeID: volumeID + readOnly: true + fsType: fsType + vsphereVolume: + storagePolicyName: storagePolicyName + storagePolicyID: storagePolicyID + volumePath: volumePath + fsType: fsType + fc: + lun: 2 + targetWWNs: + - targetWWNs + - targetWWNs + readOnly: true + wwids: + - wwids + - wwids + fsType: fsType + hostPath: + path: path + type: type + - quobyte: + volume: volume + registry: registry + readOnly: true + user: user + tenant: tenant + group: group + azureFile: + secretName: secretName + readOnly: true + shareName: shareName + flexVolume: + driver: driver + options: + key: options + secretRef: + name: name + readOnly: true + fsType: fsType + ephemeral: + volumeClaimTemplate: + metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind name: name - secretFile: secretFile - readOnly: true - user: user - monitors: - - monitors - - monitors - scaleIO: - system: system - protectionDomain: protectionDomain - sslEnabled: true - storageMode: storageMode - volumeName: volumeName - secretRef: + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind name: name - readOnly: true - fsType: fsType - storagePool: storagePool - gateway: gateway - emptyDir: - sizeLimit: sizeLimit - medium: medium - glusterfs: - path: path - endpoints: endpoints - readOnly: true - gcePersistentDisk: - partition: 2 - readOnly: true - pdName: pdName - fsType: fsType - photonPersistentDisk: - pdID: pdID - fsType: fsType - azureDisk: - diskName: diskName - kind: kind - readOnly: true - cachingMode: cachingMode - diskURI: diskURI - fsType: fsType - cinder: - secretRef: + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: '{}' + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: '{}' + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + creationTimestamp: 2000-01-23T04:56:07.000+00:00 + name: name + namespace: namespace + spec: + storageClassName: storageClassName + dataSourceRef: + apiGroup: apiGroup + kind: kind name: name - volumeID: volumeID - readOnly: true - fsType: fsType - downwardAPI: - defaultMode: 3 + namespace: namespace + volumeName: volumeName + volumeAttributesClassName: volumeAttributesClassName + resources: + requests: {} + limits: {} + selector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + accessModes: + - accessModes + - accessModes + dataSource: + apiGroup: apiGroup + kind: kind + name: name + volumeMode: volumeMode + secret: + secretName: secretName + defaultMode: 3 + optional: true + items: + - mode: 3 + path: path + key: key + - mode: 3 + path: path + key: key + projected: + sources: + - downwardAPI: items: - - mode: 6 + - mode: 1 path: path resourceFieldRef: divisor: divisor @@ -193983,7 +230782,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 6 + - mode: 1 path: path resourceFieldRef: divisor: divisor @@ -193992,360 +230791,52 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - awsElasticBlockStore: - partition: 8 - volumeID: volumeID - readOnly: true - fsType: fsType - flocker: - datasetName: datasetName - datasetUUID: datasetUUID - iscsi: - chapAuthSession: true - iscsiInterface: iscsiInterface - lun: 6 - chapAuthDiscovery: true - iqn: iqn - portals: - - portals - - portals - secretRef: - name: name - initiatorName: initiatorName - readOnly: true - fsType: fsType - targetPortal: targetPortal - rbd: - image: image - pool: pool - secretRef: - name: name - readOnly: true - fsType: fsType - keyring: keyring - user: user - monitors: - - monitors - - monitors configMap: - defaultMode: 9 name: name optional: true items: - - mode: 6 + - mode: 3 path: path key: key - - mode: 6 + - mode: 3 path: path key: key - storageos: - volumeNamespace: volumeNamespace - volumeName: volumeName - secretRef: - name: name - readOnly: true - fsType: fsType - csi: - driver: driver - nodePublishSecretRef: - name: name - readOnly: true - fsType: fsType - volumeAttributes: - key: volumeAttributes - name: name - nfs: - path: path - server: server - readOnly: true - persistentVolumeClaim: - claimName: claimName - readOnly: true - gitRepo: - repository: repository - directory: directory - revision: revision - portworxVolume: - volumeID: volumeID - readOnly: true - fsType: fsType - vsphereVolume: - storagePolicyName: storagePolicyName - storagePolicyID: storagePolicyID - volumePath: volumePath - fsType: fsType - fc: - lun: 1 - targetWWNs: - - targetWWNs - - targetWWNs - readOnly: true - wwids: - - wwids - - wwids - fsType: fsType - hostPath: - path: path - type: type - - quobyte: - volume: volume - registry: registry - readOnly: true - user: user - tenant: tenant - group: group - azureFile: - secretName: secretName - readOnly: true - shareName: shareName - flexVolume: - driver: driver - options: - key: options - secretRef: - name: name - readOnly: true - fsType: fsType - ephemeral: - volumeClaimTemplate: - metadata: - generation: 6 - finalizers: - - finalizers - - finalizers - resourceVersion: resourceVersion - annotations: - key: annotations - generateName: generateName - deletionTimestamp: 2000-01-23T04:56:07.000+00:00 - labels: - key: labels - ownerReferences: - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - selfLink: selfLink - deletionGracePeriodSeconds: 0 - uid: uid - managedFields: - - apiVersion: apiVersion - fieldsV1: '{}' - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - - apiVersion: apiVersion - fieldsV1: '{}' - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - creationTimestamp: 2000-01-23T04:56:07.000+00:00 - name: name - namespace: namespace - spec: - storageClassName: storageClassName - dataSourceRef: - apiGroup: apiGroup - kind: kind - name: name - namespace: namespace - volumeName: volumeName - resources: - claims: - - name: name - - name: name - requests: {} - limits: {} - selector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - accessModes: - - accessModes - - accessModes - dataSource: - apiGroup: apiGroup - kind: kind - name: name - volumeMode: volumeMode secret: - secretName: secretName - defaultMode: 6 + name: name optional: true items: - - mode: 6 + - mode: 3 path: path key: key - - mode: 6 + - mode: 3 path: path key: key - projected: - sources: - - downwardAPI: - items: - - mode: 6 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - mode: 6 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - configMap: - name: name - optional: true - items: - - mode: 6 - path: path - key: key - - mode: 6 - path: path - key: key - secret: - name: name - optional: true - items: - - mode: 6 - path: path - key: key - - mode: 6 - path: path - key: key - serviceAccountToken: - path: path - audience: audience - expirationSeconds: 5 - - downwardAPI: - items: - - mode: 6 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - mode: 6 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - configMap: - name: name - optional: true - items: - - mode: 6 - path: path - key: key - - mode: 6 - path: path - key: key - secret: - name: name - optional: true - items: - - mode: 6 - path: path - key: key - - mode: 6 - path: path - key: key - serviceAccountToken: - path: path - audience: audience - expirationSeconds: 5 - defaultMode: 6 - cephfs: + serviceAccountToken: path: path - secretRef: - name: name - secretFile: secretFile - readOnly: true - user: user - monitors: - - monitors - - monitors - scaleIO: - system: system - protectionDomain: protectionDomain - sslEnabled: true - storageMode: storageMode - volumeName: volumeName - secretRef: - name: name - readOnly: true - fsType: fsType - storagePool: storagePool - gateway: gateway - emptyDir: - sizeLimit: sizeLimit - medium: medium - glusterfs: + audience: audience + expirationSeconds: 6 + clusterTrustBundle: path: path - endpoints: endpoints - readOnly: true - gcePersistentDisk: - partition: 2 - readOnly: true - pdName: pdName - fsType: fsType - photonPersistentDisk: - pdID: pdID - fsType: fsType - azureDisk: - diskName: diskName - kind: kind - readOnly: true - cachingMode: cachingMode - diskURI: diskURI - fsType: fsType - cinder: - secretRef: - name: name - volumeID: volumeID - readOnly: true - fsType: fsType - downwardAPI: - defaultMode: 3 + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + name: name + optional: true + signerName: signerName + - downwardAPI: items: - - mode: 6 + - mode: 1 path: path resourceFieldRef: divisor: divisor @@ -194354,7 +230845,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 6 + - mode: 1 path: path resourceFieldRef: divisor: divisor @@ -194363,2067 +230854,4183 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - awsElasticBlockStore: - partition: 8 - volumeID: volumeID - readOnly: true - fsType: fsType - flocker: - datasetName: datasetName - datasetUUID: datasetUUID - iscsi: - chapAuthSession: true - iscsiInterface: iscsiInterface - lun: 6 - chapAuthDiscovery: true - iqn: iqn - portals: - - portals - - portals - secretRef: - name: name - initiatorName: initiatorName - readOnly: true - fsType: fsType - targetPortal: targetPortal - rbd: - image: image - pool: pool - secretRef: - name: name - readOnly: true - fsType: fsType - keyring: keyring - user: user - monitors: - - monitors - - monitors configMap: - defaultMode: 9 name: name optional: true items: - - mode: 6 + - mode: 3 path: path key: key - - mode: 6 + - mode: 3 path: path key: key - storageos: - volumeNamespace: volumeNamespace - volumeName: volumeName - secretRef: - name: name - readOnly: true - fsType: fsType - csi: - driver: driver - nodePublishSecretRef: - name: name - readOnly: true - fsType: fsType - volumeAttributes: - key: volumeAttributes - name: name - nfs: + secret: + name: name + optional: true + items: + - mode: 3 + path: path + key: key + - mode: 3 + path: path + key: key + serviceAccountToken: path: path - server: server - readOnly: true - persistentVolumeClaim: - claimName: claimName - readOnly: true - gitRepo: - repository: repository - directory: directory - revision: revision - portworxVolume: - volumeID: volumeID - readOnly: true - fsType: fsType - vsphereVolume: - storagePolicyName: storagePolicyName - storagePolicyID: storagePolicyID - volumePath: volumePath - fsType: fsType - fc: - lun: 1 - targetWWNs: - - targetWWNs - - targetWWNs - readOnly: true - wwids: - - wwids - - wwids - fsType: fsType - hostPath: + audience: audience + expirationSeconds: 6 + clusterTrustBundle: path: path - type: type - ephemeralContainers: - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels name: name - stdin: true - terminationMessagePolicy: terminationMessagePolicy - securityContext: - privileged: true - runAsUser: 1 - capabilities: - add: - - add - - add - drop: - - drop - - drop - seLinuxOptions: - role: role - level: level - type: type - user: user - seccompProfile: - localhostProfile: localhostProfile - type: type - windowsOptions: - gmsaCredentialSpec: gmsaCredentialSpec - runAsUserName: runAsUserName - hostProcess: true - gmsaCredentialSpecName: gmsaCredentialSpecName - procMount: procMount - allowPrivilegeEscalation: true - runAsGroup: 1 - runAsNonRoot: true - readOnlyRootFilesystem: true - startupProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - ports: - - protocol: protocol - hostIP: hostIP + optional: true + signerName: signerName + defaultMode: 5 + cephfs: + path: path + secretRef: + name: name + secretFile: secretFile + readOnly: true + user: user + monitors: + - monitors + - monitors + scaleIO: + system: system + protectionDomain: protectionDomain + sslEnabled: true + storageMode: storageMode + volumeName: volumeName + secretRef: + name: name + readOnly: true + fsType: fsType + storagePool: storagePool + gateway: gateway + emptyDir: + sizeLimit: sizeLimit + medium: medium + glusterfs: + path: path + endpoints: endpoints + readOnly: true + gcePersistentDisk: + partition: 6 + readOnly: true + pdName: pdName + fsType: fsType + image: + reference: reference + pullPolicy: pullPolicy + photonPersistentDisk: + pdID: pdID + fsType: fsType + azureDisk: + diskName: diskName + kind: kind + readOnly: true + cachingMode: cachingMode + diskURI: diskURI + fsType: fsType + cinder: + secretRef: + name: name + volumeID: volumeID + readOnly: true + fsType: fsType + downwardAPI: + defaultMode: 6 + items: + - mode: 1 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - mode: 1 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + awsElasticBlockStore: + partition: 9 + volumeID: volumeID + readOnly: true + fsType: fsType + flocker: + datasetName: datasetName + datasetUUID: datasetUUID + iscsi: + chapAuthSession: true + iscsiInterface: iscsiInterface + lun: 6 + chapAuthDiscovery: true + iqn: iqn + portals: + - portals + - portals + secretRef: + name: name + initiatorName: initiatorName + readOnly: true + fsType: fsType + targetPortal: targetPortal + rbd: + image: image + pool: pool + secretRef: + name: name + readOnly: true + fsType: fsType + keyring: keyring + user: user + monitors: + - monitors + - monitors + configMap: + defaultMode: 6 + name: name + optional: true + items: + - mode: 3 + path: path + key: key + - mode: 3 + path: path + key: key + storageos: + volumeNamespace: volumeNamespace + volumeName: volumeName + secretRef: + name: name + readOnly: true + fsType: fsType + csi: + driver: driver + nodePublishSecretRef: + name: name + readOnly: true + fsType: fsType + volumeAttributes: + key: volumeAttributes + name: name + nfs: + path: path + server: server + readOnly: true + persistentVolumeClaim: + claimName: claimName + readOnly: true + gitRepo: + repository: repository + directory: directory + revision: revision + portworxVolume: + volumeID: volumeID + readOnly: true + fsType: fsType + vsphereVolume: + storagePolicyName: storagePolicyName + storagePolicyID: storagePolicyID + volumePath: volumePath + fsType: fsType + fc: + lun: 2 + targetWWNs: + - targetWWNs + - targetWWNs + readOnly: true + wwids: + - wwids + - wwids + fsType: fsType + hostPath: + path: path + type: type + resources: + claims: + - request: request + name: name + - request: request + name: name + requests: {} + limits: {} + ephemeralContainers: + - volumeDevices: + - devicePath: devicePath + name: name + - devicePath: devicePath + name: name + stdin: true + terminationMessagePolicy: terminationMessagePolicy + securityContext: + privileged: true + runAsUser: 1 + capabilities: + add: + - add + - add + drop: + - drop + - drop + seLinuxOptions: + role: role + level: level + type: type + user: user + appArmorProfile: + localhostProfile: localhostProfile + type: type + seccompProfile: + localhostProfile: localhostProfile + type: type + windowsOptions: + gmsaCredentialSpec: gmsaCredentialSpec + runAsUserName: runAsUserName + hostProcess: true + gmsaCredentialSpecName: gmsaCredentialSpecName + procMount: procMount + allowPrivilegeEscalation: true + runAsGroup: 1 + runAsNonRoot: true + readOnlyRootFilesystem: true + startupProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: port + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + ports: + - protocol: protocol + hostIP: hostIP + name: name + containerPort: 7 + hostPort: 1 + - protocol: protocol + hostIP: hostIP + name: name + containerPort: 7 + hostPort: 1 + volumeMounts: + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + recursiveReadOnly: recursiveReadOnly + subPathExpr: subPathExpr + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + recursiveReadOnly: recursiveReadOnly + subPathExpr: subPathExpr + lifecycle: + postStart: + sleep: + seconds: 5 + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + preStop: + sleep: + seconds: 5 + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + stopSignal: stopSignal + readinessProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: port + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + resizePolicy: + - resourceName: resourceName + restartPolicy: restartPolicy + - resourceName: resourceName + restartPolicy: restartPolicy + envFrom: + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + image: image + imagePullPolicy: imagePullPolicy + livenessProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: port + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + targetContainerName: targetContainerName + terminationMessagePath: terminationMessagePath + workingDir: workingDir + resources: + claims: + - request: request + name: name + - request: request + name: name + requests: {} + limits: {} + env: + - name: name + value: value + valueFrom: + secretKeyRef: name: name - containerPort: 4 - hostPort: 7 - - protocol: protocol - hostIP: hostIP + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: name: name - containerPort: 4 - hostPort: 7 - volumeMounts: - - mountPath: mountPath - mountPropagation: mountPropagation + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - name: name + value: value + valueFrom: + secretKeyRef: name: name - readOnly: true - subPath: subPath - subPathExpr: subPathExpr - - mountPath: mountPath - mountPropagation: mountPropagation + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: name: name - readOnly: true - subPath: subPath - subPathExpr: subPathExpr - lifecycle: - postStart: - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - preStop: - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - readinessProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - resizePolicy: - - resourceName: resourceName - restartPolicy: restartPolicy - - resourceName: resourceName - restartPolicy: restartPolicy - envFrom: - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - image: image - imagePullPolicy: imagePullPolicy - livenessProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - targetContainerName: targetContainerName - terminationMessagePath: terminationMessagePath - workingDir: workingDir - resources: - claims: + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + restartPolicy: restartPolicy + command: + - command + - command + args: + - args + - args + name: name + tty: true + stdinOnce: true + - volumeDevices: + - devicePath: devicePath + name: name + - devicePath: devicePath + name: name + stdin: true + terminationMessagePolicy: terminationMessagePolicy + securityContext: + privileged: true + runAsUser: 1 + capabilities: + add: + - add + - add + drop: + - drop + - drop + seLinuxOptions: + role: role + level: level + type: type + user: user + appArmorProfile: + localhostProfile: localhostProfile + type: type + seccompProfile: + localhostProfile: localhostProfile + type: type + windowsOptions: + gmsaCredentialSpec: gmsaCredentialSpec + runAsUserName: runAsUserName + hostProcess: true + gmsaCredentialSpecName: gmsaCredentialSpecName + procMount: procMount + allowPrivilegeEscalation: true + runAsGroup: 1 + runAsNonRoot: true + readOnlyRootFilesystem: true + startupProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: port + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + ports: + - protocol: protocol + hostIP: hostIP + name: name + containerPort: 7 + hostPort: 1 + - protocol: protocol + hostIP: hostIP + name: name + containerPort: 7 + hostPort: 1 + volumeMounts: + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + recursiveReadOnly: recursiveReadOnly + subPathExpr: subPathExpr + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + recursiveReadOnly: recursiveReadOnly + subPathExpr: subPathExpr + lifecycle: + postStart: + sleep: + seconds: 5 + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: - name: name + value: value - name: name - requests: {} - limits: {} - env: + value: value + preStop: + sleep: + seconds: 5 + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + stopSignal: stopSignal + readinessProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: port + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: - name: name value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - name: name value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - restartPolicy: restartPolicy + resizePolicy: + - resourceName: resourceName + restartPolicy: restartPolicy + - resourceName: resourceName + restartPolicy: restartPolicy + envFrom: + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + image: image + imagePullPolicy: imagePullPolicy + livenessProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: port + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: command: - command - command - args: - - args - - args + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + targetContainerName: targetContainerName + terminationMessagePath: terminationMessagePath + workingDir: workingDir + resources: + claims: + - request: request name: name - tty: true - stdinOnce: true - - volumeDevices: - - devicePath: devicePath + - request: request + name: name + requests: {} + limits: {} + env: + - name: name + value: value + valueFrom: + secretKeyRef: name: name - - devicePath: devicePath + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: name: name - stdin: true - terminationMessagePolicy: terminationMessagePolicy - securityContext: - privileged: true - runAsUser: 1 - capabilities: - add: - - add - - add - drop: - - drop - - drop - seLinuxOptions: - role: role - level: level - type: type - user: user - seccompProfile: - localhostProfile: localhostProfile - type: type - windowsOptions: - gmsaCredentialSpec: gmsaCredentialSpec - runAsUserName: runAsUserName - hostProcess: true - gmsaCredentialSpecName: gmsaCredentialSpecName - procMount: procMount - allowPrivilegeEscalation: true - runAsGroup: 1 - runAsNonRoot: true - readOnlyRootFilesystem: true - startupProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - ports: - - protocol: protocol - hostIP: hostIP + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - name: name + value: value + valueFrom: + secretKeyRef: name: name - containerPort: 4 - hostPort: 7 - - protocol: protocol - hostIP: hostIP + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: name: name - containerPort: 4 - hostPort: 7 - volumeMounts: - - mountPath: mountPath - mountPropagation: mountPropagation + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + restartPolicy: restartPolicy + command: + - command + - command + args: + - args + - args + name: name + tty: true + stdinOnce: true + serviceAccount: serviceAccount + priority: 6 + restartPolicy: restartPolicy + shareProcessNamespace: true + hostUsers: true + resourceClaims: + - resourceClaimName: resourceClaimName + name: name + resourceClaimTemplateName: resourceClaimTemplateName + - resourceClaimName: resourceClaimName + name: name + resourceClaimTemplateName: resourceClaimTemplateName + subdomain: subdomain + containers: + - volumeDevices: + - devicePath: devicePath + name: name + - devicePath: devicePath + name: name + image: image + imagePullPolicy: imagePullPolicy + livenessProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: port + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + stdin: true + terminationMessagePolicy: terminationMessagePolicy + terminationMessagePath: terminationMessagePath + workingDir: workingDir + resources: + claims: + - request: request + name: name + - request: request + name: name + requests: {} + limits: {} + securityContext: + privileged: true + runAsUser: 1 + capabilities: + add: + - add + - add + drop: + - drop + - drop + seLinuxOptions: + role: role + level: level + type: type + user: user + appArmorProfile: + localhostProfile: localhostProfile + type: type + seccompProfile: + localhostProfile: localhostProfile + type: type + windowsOptions: + gmsaCredentialSpec: gmsaCredentialSpec + runAsUserName: runAsUserName + hostProcess: true + gmsaCredentialSpecName: gmsaCredentialSpecName + procMount: procMount + allowPrivilegeEscalation: true + runAsGroup: 1 + runAsNonRoot: true + readOnlyRootFilesystem: true + startupProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: port + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + env: + - name: name + value: value + valueFrom: + secretKeyRef: name: name - readOnly: true - subPath: subPath - subPathExpr: subPathExpr - - mountPath: mountPath - mountPropagation: mountPropagation + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: name: name - readOnly: true - subPath: subPath - subPathExpr: subPathExpr - lifecycle: - postStart: - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - preStop: - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - readinessProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - resizePolicy: - - resourceName: resourceName - restartPolicy: restartPolicy - - resourceName: resourceName - restartPolicy: restartPolicy - envFrom: - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - image: image - imagePullPolicy: imagePullPolicy - livenessProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - targetContainerName: targetContainerName - terminationMessagePath: terminationMessagePath - workingDir: workingDir - resources: - claims: + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + ports: + - protocol: protocol + hostIP: hostIP + name: name + containerPort: 7 + hostPort: 1 + - protocol: protocol + hostIP: hostIP + name: name + containerPort: 7 + hostPort: 1 + restartPolicy: restartPolicy + command: + - command + - command + volumeMounts: + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + recursiveReadOnly: recursiveReadOnly + subPathExpr: subPathExpr + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + recursiveReadOnly: recursiveReadOnly + subPathExpr: subPathExpr + args: + - args + - args + lifecycle: + postStart: + sleep: + seconds: 5 + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + preStop: + sleep: + seconds: 5 + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + stopSignal: stopSignal + name: name + tty: true + readinessProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: port + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + resizePolicy: + - resourceName: resourceName + restartPolicy: restartPolicy + - resourceName: resourceName + restartPolicy: restartPolicy + stdinOnce: true + envFrom: + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + - volumeDevices: + - devicePath: devicePath + name: name + - devicePath: devicePath + name: name + image: image + imagePullPolicy: imagePullPolicy + livenessProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: port + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + stdin: true + terminationMessagePolicy: terminationMessagePolicy + terminationMessagePath: terminationMessagePath + workingDir: workingDir + resources: + claims: + - request: request + name: name + - request: request + name: name + requests: {} + limits: {} + securityContext: + privileged: true + runAsUser: 1 + capabilities: + add: + - add + - add + drop: + - drop + - drop + seLinuxOptions: + role: role + level: level + type: type + user: user + appArmorProfile: + localhostProfile: localhostProfile + type: type + seccompProfile: + localhostProfile: localhostProfile + type: type + windowsOptions: + gmsaCredentialSpec: gmsaCredentialSpec + runAsUserName: runAsUserName + hostProcess: true + gmsaCredentialSpecName: gmsaCredentialSpecName + procMount: procMount + allowPrivilegeEscalation: true + runAsGroup: 1 + runAsNonRoot: true + readOnlyRootFilesystem: true + startupProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: port + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + env: + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + ports: + - protocol: protocol + hostIP: hostIP + name: name + containerPort: 7 + hostPort: 1 + - protocol: protocol + hostIP: hostIP + name: name + containerPort: 7 + hostPort: 1 + restartPolicy: restartPolicy + command: + - command + - command + volumeMounts: + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + recursiveReadOnly: recursiveReadOnly + subPathExpr: subPathExpr + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + recursiveReadOnly: recursiveReadOnly + subPathExpr: subPathExpr + args: + - args + - args + lifecycle: + postStart: + sleep: + seconds: 5 + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: - name: name + value: value - name: name - requests: {} - limits: {} - env: + value: value + preStop: + sleep: + seconds: 5 + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + stopSignal: stopSignal + name: name + tty: true + readinessProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: port + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: - name: name value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - name: name value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - restartPolicy: restartPolicy + resizePolicy: + - resourceName: resourceName + restartPolicy: restartPolicy + - resourceName: resourceName + restartPolicy: restartPolicy + stdinOnce: true + envFrom: + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + initContainers: + - volumeDevices: + - devicePath: devicePath + name: name + - devicePath: devicePath + name: name + image: image + imagePullPolicy: imagePullPolicy + livenessProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: port + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: command: - command - command - args: - - args - - args - name: name - tty: true - stdinOnce: true - serviceAccount: serviceAccount - priority: 1 - restartPolicy: restartPolicy - shareProcessNamespace: true - hostUsers: true - resourceClaims: - - name: name - source: - resourceClaimName: resourceClaimName - resourceClaimTemplateName: resourceClaimTemplateName - - name: name - source: - resourceClaimName: resourceClaimName - resourceClaimTemplateName: resourceClaimTemplateName - subdomain: subdomain - containers: - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name - image: image - imagePullPolicy: imagePullPolicy - livenessProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - stdin: true - terminationMessagePolicy: terminationMessagePolicy - terminationMessagePath: terminationMessagePath - workingDir: workingDir - resources: - claims: - - name: name - - name: name - requests: {} - limits: {} - securityContext: - privileged: true - runAsUser: 1 - capabilities: - add: - - add - - add - drop: - - drop - - drop - seLinuxOptions: - role: role - level: level - type: type - user: user - seccompProfile: - localhostProfile: localhostProfile - type: type - windowsOptions: - gmsaCredentialSpec: gmsaCredentialSpec - runAsUserName: runAsUserName - hostProcess: true - gmsaCredentialSpecName: gmsaCredentialSpecName - procMount: procMount - allowPrivilegeEscalation: true - runAsGroup: 1 - runAsNonRoot: true - readOnlyRootFilesystem: true - startupProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - env: + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: - name: name value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - name: name value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - ports: - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 4 - hostPort: 7 - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 4 - hostPort: 7 - restartPolicy: restartPolicy + stdin: true + terminationMessagePolicy: terminationMessagePolicy + terminationMessagePath: terminationMessagePath + workingDir: workingDir + resources: + claims: + - request: request + name: name + - request: request + name: name + requests: {} + limits: {} + securityContext: + privileged: true + runAsUser: 1 + capabilities: + add: + - add + - add + drop: + - drop + - drop + seLinuxOptions: + role: role + level: level + type: type + user: user + appArmorProfile: + localhostProfile: localhostProfile + type: type + seccompProfile: + localhostProfile: localhostProfile + type: type + windowsOptions: + gmsaCredentialSpec: gmsaCredentialSpec + runAsUserName: runAsUserName + hostProcess: true + gmsaCredentialSpecName: gmsaCredentialSpecName + procMount: procMount + allowPrivilegeEscalation: true + runAsGroup: 1 + runAsNonRoot: true + readOnlyRootFilesystem: true + startupProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: port + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: command: - command - command - volumeMounts: - - mountPath: mountPath - mountPropagation: mountPropagation + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + env: + - name: name + value: value + valueFrom: + secretKeyRef: name: name - readOnly: true - subPath: subPath - subPathExpr: subPathExpr - - mountPath: mountPath - mountPropagation: mountPropagation + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: name: name - readOnly: true - subPath: subPath - subPathExpr: subPathExpr - args: - - args - - args - lifecycle: - postStart: - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - preStop: - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - name: name - tty: true - readinessProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - resizePolicy: - - resourceName: resourceName - restartPolicy: restartPolicy - - resourceName: resourceName - restartPolicy: restartPolicy - stdinOnce: true - envFrom: - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - - volumeDevices: - - devicePath: devicePath + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - name: name + value: value + valueFrom: + secretKeyRef: name: name - - devicePath: devicePath + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: name: name - image: image - imagePullPolicy: imagePullPolicy - livenessProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - stdin: true - terminationMessagePolicy: terminationMessagePolicy - terminationMessagePath: terminationMessagePath - workingDir: workingDir - resources: - claims: + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + ports: + - protocol: protocol + hostIP: hostIP + name: name + containerPort: 7 + hostPort: 1 + - protocol: protocol + hostIP: hostIP + name: name + containerPort: 7 + hostPort: 1 + restartPolicy: restartPolicy + command: + - command + - command + volumeMounts: + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + recursiveReadOnly: recursiveReadOnly + subPathExpr: subPathExpr + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + recursiveReadOnly: recursiveReadOnly + subPathExpr: subPathExpr + args: + - args + - args + lifecycle: + postStart: + sleep: + seconds: 5 + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: - name: name + value: value - name: name - requests: {} - limits: {} - securityContext: - privileged: true - runAsUser: 1 - capabilities: - add: - - add - - add - drop: - - drop - - drop - seLinuxOptions: - role: role - level: level - type: type - user: user - seccompProfile: - localhostProfile: localhostProfile - type: type - windowsOptions: - gmsaCredentialSpec: gmsaCredentialSpec - runAsUserName: runAsUserName - hostProcess: true - gmsaCredentialSpecName: gmsaCredentialSpecName - procMount: procMount - allowPrivilegeEscalation: true - runAsGroup: 1 - runAsNonRoot: true - readOnlyRootFilesystem: true - startupProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - env: + value: value + preStop: + sleep: + seconds: 5 + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + stopSignal: stopSignal + name: name + tty: true + readinessProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: port + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: - name: name value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - name: name value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - ports: - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 4 - hostPort: 7 - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 4 - hostPort: 7 - restartPolicy: restartPolicy + resizePolicy: + - resourceName: resourceName + restartPolicy: restartPolicy + - resourceName: resourceName + restartPolicy: restartPolicy + stdinOnce: true + envFrom: + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + - volumeDevices: + - devicePath: devicePath + name: name + - devicePath: devicePath + name: name + image: image + imagePullPolicy: imagePullPolicy + livenessProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: port + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: command: - command - command - volumeMounts: - - mountPath: mountPath - mountPropagation: mountPropagation - name: name - readOnly: true - subPath: subPath - subPathExpr: subPathExpr - - mountPath: mountPath - mountPropagation: mountPropagation - name: name - readOnly: true - subPath: subPath - subPathExpr: subPathExpr - args: - - args - - args - lifecycle: - postStart: - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - preStop: - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - name: name - tty: true - readinessProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - resizePolicy: - - resourceName: resourceName - restartPolicy: restartPolicy - - resourceName: resourceName - restartPolicy: restartPolicy - stdinOnce: true - envFrom: - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - initContainers: - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name - image: image - imagePullPolicy: imagePullPolicy - livenessProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - stdin: true - terminationMessagePolicy: terminationMessagePolicy - terminationMessagePath: terminationMessagePath - workingDir: workingDir - resources: - claims: - - name: name - - name: name - requests: {} - limits: {} - securityContext: - privileged: true - runAsUser: 1 - capabilities: - add: - - add - - add - drop: - - drop - - drop - seLinuxOptions: - role: role - level: level - type: type - user: user - seccompProfile: - localhostProfile: localhostProfile - type: type - windowsOptions: - gmsaCredentialSpec: gmsaCredentialSpec - runAsUserName: runAsUserName - hostProcess: true - gmsaCredentialSpecName: gmsaCredentialSpecName - procMount: procMount - allowPrivilegeEscalation: true - runAsGroup: 1 - runAsNonRoot: true - readOnlyRootFilesystem: true - startupProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - env: + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: - name: name value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - name: name value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - ports: - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 4 - hostPort: 7 - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 4 - hostPort: 7 - restartPolicy: restartPolicy + stdin: true + terminationMessagePolicy: terminationMessagePolicy + terminationMessagePath: terminationMessagePath + workingDir: workingDir + resources: + claims: + - request: request + name: name + - request: request + name: name + requests: {} + limits: {} + securityContext: + privileged: true + runAsUser: 1 + capabilities: + add: + - add + - add + drop: + - drop + - drop + seLinuxOptions: + role: role + level: level + type: type + user: user + appArmorProfile: + localhostProfile: localhostProfile + type: type + seccompProfile: + localhostProfile: localhostProfile + type: type + windowsOptions: + gmsaCredentialSpec: gmsaCredentialSpec + runAsUserName: runAsUserName + hostProcess: true + gmsaCredentialSpecName: gmsaCredentialSpecName + procMount: procMount + allowPrivilegeEscalation: true + runAsGroup: 1 + runAsNonRoot: true + readOnlyRootFilesystem: true + startupProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: port + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: command: - command - command - volumeMounts: - - mountPath: mountPath - mountPropagation: mountPropagation + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + env: + - name: name + value: value + valueFrom: + secretKeyRef: name: name - readOnly: true - subPath: subPath - subPathExpr: subPathExpr - - mountPath: mountPath - mountPropagation: mountPropagation + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: name: name - readOnly: true - subPath: subPath - subPathExpr: subPathExpr - args: - - args - - args - lifecycle: - postStart: - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - preStop: - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - name: name - tty: true - readinessProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - resizePolicy: - - resourceName: resourceName - restartPolicy: restartPolicy - - resourceName: resourceName - restartPolicy: restartPolicy - stdinOnce: true - envFrom: - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - - volumeDevices: - - devicePath: devicePath + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - name: name + value: value + valueFrom: + secretKeyRef: name: name - - devicePath: devicePath + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: name: name - image: image - imagePullPolicy: imagePullPolicy - livenessProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - stdin: true - terminationMessagePolicy: terminationMessagePolicy - terminationMessagePath: terminationMessagePath - workingDir: workingDir - resources: - claims: + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + ports: + - protocol: protocol + hostIP: hostIP + name: name + containerPort: 7 + hostPort: 1 + - protocol: protocol + hostIP: hostIP + name: name + containerPort: 7 + hostPort: 1 + restartPolicy: restartPolicy + command: + - command + - command + volumeMounts: + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + recursiveReadOnly: recursiveReadOnly + subPathExpr: subPathExpr + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + recursiveReadOnly: recursiveReadOnly + subPathExpr: subPathExpr + args: + - args + - args + lifecycle: + postStart: + sleep: + seconds: 5 + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: - name: name + value: value - name: name - requests: {} - limits: {} - securityContext: - privileged: true - runAsUser: 1 - capabilities: - add: - - add - - add - drop: - - drop - - drop - seLinuxOptions: - role: role - level: level - type: type - user: user - seccompProfile: - localhostProfile: localhostProfile - type: type - windowsOptions: - gmsaCredentialSpec: gmsaCredentialSpec - runAsUserName: runAsUserName - hostProcess: true - gmsaCredentialSpecName: gmsaCredentialSpecName - procMount: procMount - allowPrivilegeEscalation: true - runAsGroup: 1 - runAsNonRoot: true - readOnlyRootFilesystem: true - startupProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - env: + value: value + preStop: + sleep: + seconds: 5 + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + stopSignal: stopSignal + name: name + tty: true + readinessProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: port + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: - name: name value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - name: name value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - ports: - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 4 - hostPort: 7 - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 4 - hostPort: 7 - restartPolicy: restartPolicy - command: - - command - - command - volumeMounts: - - mountPath: mountPath - mountPropagation: mountPropagation - name: name - readOnly: true - subPath: subPath - subPathExpr: subPathExpr - - mountPath: mountPath - mountPropagation: mountPropagation - name: name - readOnly: true - subPath: subPath - subPathExpr: subPathExpr - args: - - args - - args - lifecycle: - postStart: - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - preStop: - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value + resizePolicy: + - resourceName: resourceName + restartPolicy: restartPolicy + - resourceName: resourceName + restartPolicy: restartPolicy + stdinOnce: true + envFrom: + - configMapRef: name: name - tty: true - readinessProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - resizePolicy: - - resourceName: resourceName - restartPolicy: restartPolicy - - resourceName: resourceName - restartPolicy: restartPolicy - stdinOnce: true - envFrom: - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - affinity: - nodeAffinity: - requiredDuringSchedulingIgnoredDuringExecution: - nodeSelectorTerms: - - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchFields: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchFields: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - preferredDuringSchedulingIgnoredDuringExecution: - - preference: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchFields: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - weight: 6 - - preference: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchFields: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - weight: 6 - podAffinity: - requiredDuringSchedulingIgnoredDuringExecution: - - labelSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - topologyKey: topologyKey - namespaces: - - namespaces - - namespaces - - labelSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - topologyKey: topologyKey - namespaces: - - namespaces - - namespaces - preferredDuringSchedulingIgnoredDuringExecution: - - podAffinityTerm: - labelSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - topologyKey: topologyKey - namespaces: - - namespaces - - namespaces - weight: 1 - - podAffinityTerm: - labelSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - topologyKey: topologyKey - namespaces: - - namespaces - - namespaces - weight: 1 - podAntiAffinity: - requiredDuringSchedulingIgnoredDuringExecution: - - labelSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - topologyKey: topologyKey - namespaces: - - namespaces - - namespaces - - labelSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - topologyKey: topologyKey - namespaces: - - namespaces - - namespaces - preferredDuringSchedulingIgnoredDuringExecution: - - podAffinityTerm: - labelSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - topologyKey: topologyKey - namespaces: - - namespaces - - namespaces - weight: 1 - - podAffinityTerm: - labelSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - topologyKey: topologyKey - namespaces: - - namespaces - - namespaces - weight: 1 - hostPID: true - replicas: 6 + optional: true + prefix: prefix + secretRef: + name: name + optional: true + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + affinity: + nodeAffinity: + requiredDuringSchedulingIgnoredDuringExecution: + nodeSelectorTerms: + - matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchFields: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + - matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchFields: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + preferredDuringSchedulingIgnoredDuringExecution: + - preference: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchFields: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + weight: 6 + - preference: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchFields: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + weight: 6 + podAffinity: + requiredDuringSchedulingIgnoredDuringExecution: + - labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + mismatchLabelKeys: + - mismatchLabelKeys + - mismatchLabelKeys + namespaces: + - namespaces + - namespaces + - labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + mismatchLabelKeys: + - mismatchLabelKeys + - mismatchLabelKeys + namespaces: + - namespaces + - namespaces + preferredDuringSchedulingIgnoredDuringExecution: + - podAffinityTerm: + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + mismatchLabelKeys: + - mismatchLabelKeys + - mismatchLabelKeys + namespaces: + - namespaces + - namespaces + weight: 1 + - podAffinityTerm: + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + mismatchLabelKeys: + - mismatchLabelKeys + - mismatchLabelKeys + namespaces: + - namespaces + - namespaces + weight: 1 + podAntiAffinity: + requiredDuringSchedulingIgnoredDuringExecution: + - labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + mismatchLabelKeys: + - mismatchLabelKeys + - mismatchLabelKeys + namespaces: + - namespaces + - namespaces + - labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + mismatchLabelKeys: + - mismatchLabelKeys + - mismatchLabelKeys + namespaces: + - namespaces + - namespaces + preferredDuringSchedulingIgnoredDuringExecution: + - podAffinityTerm: + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + mismatchLabelKeys: + - mismatchLabelKeys + - mismatchLabelKeys + namespaces: + - namespaces + - namespaces + weight: 1 + - podAffinityTerm: + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + mismatchLabelKeys: + - mismatchLabelKeys + - mismatchLabelKeys + namespaces: + - namespaces + - namespaces + weight: 1 + hostPID: true + replicas: 6 + selector: + key: selector + minReadySeconds: 0 + properties: + minReadySeconds: + description: 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) + format: int32 + type: integer + replicas: + description: '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' + format: int32 + type: integer + selector: + additionalProperties: + type: string + description: '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' + type: object + x-kubernetes-map-type: atomic + template: + $ref: '#/components/schemas/v1.PodTemplateSpec' + type: object + v1.ReplicationControllerStatus: + description: ReplicationControllerStatus represents the current status of a + replication controller. + example: + fullyLabeledReplicas: 5 + replicas: 7 + readyReplicas: 2 + conditions: + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + status: status + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + status: status + availableReplicas: 1 + observedGeneration: 5 + properties: + availableReplicas: + description: The number of available replicas (ready for at least minReadySeconds) + for this replication controller. + format: int32 + type: integer + conditions: + description: Represents the latest available observations of a replication + controller's current state. + items: + $ref: '#/components/schemas/v1.ReplicationControllerCondition' + type: array + x-kubernetes-patch-strategy: merge + x-kubernetes-list-type: map + x-kubernetes-list-map-keys: + - type + x-kubernetes-patch-merge-key: type + fullyLabeledReplicas: + description: The number of pods that have labels matching the labels of + the pod template of the replication controller. + format: int32 + type: integer + observedGeneration: + description: ObservedGeneration reflects the generation of the most recently + observed replication controller. + format: int64 + type: integer + readyReplicas: + description: The number of ready replicas for this replication controller. + format: int32 + type: integer + replicas: + description: 'Replicas is the most recently observed number of replicas. + More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#what-is-a-replicationcontroller' + format: int32 + type: integer + required: + - replicas + type: object + v1.ResourceClaim: + description: ResourceClaim references one entry in PodSpec.ResourceClaims. + example: + request: request + name: name + properties: + name: + description: 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. + type: string + request: + description: 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. + type: string + required: + - name + type: object + v1.ResourceFieldSelector: + description: ResourceFieldSelector represents container resources (cpu, memory) + and their output format + example: + divisor: divisor + resource: resource + containerName: containerName + properties: + containerName: + description: 'Container name: required for volumes, optional for env vars' + type: string + divisor: + description: "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.\n\nThe serialization format is:\n\n\ + ``` ::= \n\n\t(Note that \ + \ may be empty, from the \"\" case in .)\n\n \ + \ ::= 0 | 1 | ... | 9 ::= | \ + \ ::= | . | . | .\ + \ ::= \"+\" | \"-\" ::= |\ + \ ::= | \ + \ | ::= Ki | Mi | Gi | Ti | Pi | Ei\n\n\t\ + (International System of units; See: http://physics.nist.gov/cuu/Units/binary.html)\n\ + \n ::= m | \"\" | k | M | G | T | P | E\n\n\t(Note that\ + \ 1024 = 1Ki but 1000 = 1k; I didn't choose the capitalization.)\n\n\ + \ ::= \"e\" | \"E\" ```\n\nNo 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.\n\nWhen 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.\n\nBefore 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:\n\n- No precision is lost - No fractional digits\ + \ will be emitted - The exponent (or suffix) is as large as possible.\n\ + \nThe sign will be omitted unless the number is negative.\n\nExamples:\n\ + \n- 1.5 will be serialized as \"1500m\" - 1.5Gi will be serialized as\ + \ \"1536Mi\"\n\nNote that the quantity will NEVER be internally represented\ + \ by a floating point number. That is the whole point of this exercise.\n\ + \nNon-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.)\n\nThis 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." + format: quantity + type: string + resource: + description: 'Required: resource to select' + type: string + required: + - resource + type: object + x-kubernetes-map-type: atomic + v1.ResourceHealth: + 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. + example: + resourceID: resourceID + health: health + properties: + health: + description: |- + 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. + type: string + resourceID: + description: ResourceID is the unique identifier of the resource. See the + ResourceID type for more information. + type: string + required: + - resourceID + type: object + v1.ResourceQuota: + description: ResourceQuota sets aggregate quota restrictions enforced per namespace + example: + metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: '{}' + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: '{}' + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + creationTimestamp: 2000-01-23T04:56:07.000+00:00 + name: name + namespace: namespace + apiVersion: apiVersion + kind: kind + spec: + scopeSelector: + matchExpressions: + - scopeName: scopeName + values: + - values + - values + operator: operator + - scopeName: scopeName + values: + - values + - values + operator: operator + hard: {} + scopes: + - scopes + - scopes + status: + hard: {} + used: {} + properties: + apiVersion: + description: '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' + type: string + kind: + description: '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' + type: string + metadata: + $ref: '#/components/schemas/v1.ObjectMeta' + spec: + $ref: '#/components/schemas/v1.ResourceQuotaSpec' + status: + $ref: '#/components/schemas/v1.ResourceQuotaStatus' + type: object + x-kubernetes-group-version-kind: + - group: "" + kind: ResourceQuota + version: v1 + x-implements: + - io.kubernetes.client.common.KubernetesObject + v1.ResourceQuotaList: + description: ResourceQuotaList is a list of ResourceQuota items. + example: + metadata: + remainingItemCount: 1 + continue: continue + resourceVersion: resourceVersion + selfLink: selfLink + apiVersion: apiVersion + kind: kind + items: + - metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: '{}' + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: '{}' + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + creationTimestamp: 2000-01-23T04:56:07.000+00:00 + name: name + namespace: namespace + apiVersion: apiVersion + kind: kind + spec: + scopeSelector: + matchExpressions: + - scopeName: scopeName + values: + - values + - values + operator: operator + - scopeName: scopeName + values: + - values + - values + operator: operator + hard: {} + scopes: + - scopes + - scopes + status: + hard: {} + used: {} + - metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: '{}' + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: '{}' + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + creationTimestamp: 2000-01-23T04:56:07.000+00:00 + name: name + namespace: namespace + apiVersion: apiVersion + kind: kind + spec: + scopeSelector: + matchExpressions: + - scopeName: scopeName + values: + - values + - values + operator: operator + - scopeName: scopeName + values: + - values + - values + operator: operator + hard: {} + scopes: + - scopes + - scopes + status: + hard: {} + used: {} + properties: + apiVersion: + description: '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' + type: string + items: + description: 'Items is a list of ResourceQuota objects. More info: https://kubernetes.io/docs/concepts/policy/resource-quotas/' + items: + $ref: '#/components/schemas/v1.ResourceQuota' + type: array + kind: + description: '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' + type: string + metadata: + $ref: '#/components/schemas/v1.ListMeta' + required: + - items + type: object + x-kubernetes-group-version-kind: + - group: "" + kind: ResourceQuotaList + version: v1 + x-implements: + - io.kubernetes.client.common.KubernetesListObject + v1.ResourceQuotaSpec: + description: ResourceQuotaSpec defines the desired hard limits to enforce for + Quota. + example: + scopeSelector: + matchExpressions: + - scopeName: scopeName + values: + - values + - values + operator: operator + - scopeName: scopeName + values: + - values + - values + operator: operator + hard: {} + scopes: + - scopes + - scopes + properties: + hard: + additionalProperties: + $ref: '#/components/schemas/resource.Quantity' + description: 'hard is the set of desired hard limits for each named resource. + More info: https://kubernetes.io/docs/concepts/policy/resource-quotas/' + type: object + scopeSelector: + $ref: '#/components/schemas/v1.ScopeSelector' + scopes: + description: A collection of filters that must match each object tracked + by a quota. If not specified, the quota matches all objects. + items: + type: string + type: array + x-kubernetes-list-type: atomic + type: object + v1.ResourceQuotaStatus: + description: ResourceQuotaStatus defines the enforced hard limits and observed + use. + example: + hard: {} + used: {} + properties: + hard: + additionalProperties: + $ref: '#/components/schemas/resource.Quantity' + description: 'Hard is the set of enforced hard limits for each named resource. + More info: https://kubernetes.io/docs/concepts/policy/resource-quotas/' + type: object + used: + additionalProperties: + $ref: '#/components/schemas/resource.Quantity' + description: Used is the current observed total usage of the resource in + the namespace. + type: object + type: object + v1.ResourceRequirements: + description: ResourceRequirements describes the compute resource requirements. + example: + claims: + - request: request + name: name + - request: request + name: name + requests: {} + limits: {} + properties: + claims: + description: |- + 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. + items: + $ref: '#/components/schemas/v1.ResourceClaim' + type: array + x-kubernetes-list-type: map + x-kubernetes-list-map-keys: + - name + limits: + additionalProperties: + $ref: '#/components/schemas/resource.Quantity' + description: 'Limits describes the maximum amount of compute resources allowed. + More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/' + type: object + requests: + additionalProperties: + $ref: '#/components/schemas/resource.Quantity' + description: '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/' + type: object + type: object + v1.ResourceStatus: + description: ResourceStatus represents the status of a single resource allocated + to a Pod. + example: + name: name + resources: + - resourceID: resourceID + health: health + - resourceID: resourceID + health: health + properties: + name: + description: Name of the resource. Must be unique within the pod and in + case of non-DRA resource, match one of the resources from the pod spec. + For DRA resources, the value must be "claim:/". When + this status is reported about a container, the "claim_name" and "request" + must match one of the claims of this container. + type: string + resources: + description: List of unique resources health. Each element in the list contains + an unique resource ID and its health. At a minimum, for the lifetime of + a Pod, resource ID must uniquely identify the resource allocated to the + Pod on the Node. If other Pod on the same Node reports the status with + the same resource ID, it must be the same resource they share. See ResourceID + type definition for a specific format it has in various use cases. + items: + $ref: '#/components/schemas/v1.ResourceHealth' + type: array + x-kubernetes-list-type: map + x-kubernetes-list-map-keys: + - resourceID + required: + - name + type: object + v1.SELinuxOptions: + description: SELinuxOptions are the labels to be applied to the container + example: + role: role + level: level + type: type + user: user + properties: + level: + description: Level is SELinux level label that applies to the container. + type: string + role: + description: Role is a SELinux role label that applies to the container. + type: string + type: + description: Type is a SELinux type label that applies to the container. + type: string + user: + description: User is a SELinux user label that applies to the container. + type: string + type: object + v1.ScaleIOPersistentVolumeSource: + description: ScaleIOPersistentVolumeSource represents a persistent ScaleIO volume + example: + system: system + protectionDomain: protectionDomain + sslEnabled: true + storageMode: storageMode + volumeName: volumeName + secretRef: + name: name + namespace: namespace + readOnly: true + fsType: fsType + storagePool: storagePool + gateway: gateway + properties: + fsType: + description: 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" + type: string + gateway: + description: gateway is the host address of the ScaleIO API Gateway. + type: string + protectionDomain: + description: protectionDomain is the name of the ScaleIO Protection Domain + for the configured storage. + type: string + readOnly: + description: readOnly defaults to false (read/write). ReadOnly here will + force the ReadOnly setting in VolumeMounts. + type: boolean + secretRef: + $ref: '#/components/schemas/v1.SecretReference' + sslEnabled: + description: sslEnabled is the flag to enable/disable SSL communication + with Gateway, default false + type: boolean + storageMode: + description: storageMode indicates whether the storage for a volume should + be ThickProvisioned or ThinProvisioned. Default is ThinProvisioned. + type: string + storagePool: + description: storagePool is the ScaleIO Storage Pool associated with the + protection domain. + type: string + system: + description: system is the name of the storage system as configured in ScaleIO. + type: string + volumeName: + description: volumeName is the name of a volume already created in the ScaleIO + system that is associated with this volume source. + type: string + required: + - gateway + - secretRef + - system + type: object + v1.ScaleIOVolumeSource: + description: ScaleIOVolumeSource represents a persistent ScaleIO volume + example: + system: system + protectionDomain: protectionDomain + sslEnabled: true + storageMode: storageMode + volumeName: volumeName + secretRef: + name: name + readOnly: true + fsType: fsType + storagePool: storagePool + gateway: gateway + properties: + fsType: + description: 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". + type: string + gateway: + description: gateway is the host address of the ScaleIO API Gateway. + type: string + protectionDomain: + description: protectionDomain is the name of the ScaleIO Protection Domain + for the configured storage. + type: string + readOnly: + description: readOnly Defaults to false (read/write). ReadOnly here will + force the ReadOnly setting in VolumeMounts. + type: boolean + secretRef: + $ref: '#/components/schemas/v1.LocalObjectReference' + sslEnabled: + description: sslEnabled Flag enable/disable SSL communication with Gateway, + default false + type: boolean + storageMode: + description: storageMode indicates whether the storage for a volume should + be ThickProvisioned or ThinProvisioned. Default is ThinProvisioned. + type: string + storagePool: + description: storagePool is the ScaleIO Storage Pool associated with the + protection domain. + type: string + system: + description: system is the name of the storage system as configured in ScaleIO. + type: string + volumeName: + description: volumeName is the name of a volume already created in the ScaleIO + system that is associated with this volume source. + type: string + required: + - gateway + - secretRef + - system + type: object + v1.ScopeSelector: + description: A scope selector represents the AND of the selectors represented + by the scoped-resource selector requirements. + example: + matchExpressions: + - scopeName: scopeName + values: + - values + - values + operator: operator + - scopeName: scopeName + values: + - values + - values + operator: operator + properties: + matchExpressions: + description: A list of scope selector requirements by scope of the resources. + items: + $ref: '#/components/schemas/v1.ScopedResourceSelectorRequirement' + type: array + x-kubernetes-list-type: atomic + type: object + x-kubernetes-map-type: atomic + v1.ScopedResourceSelectorRequirement: + 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. + example: + scopeName: scopeName + values: + - values + - values + operator: operator + properties: + operator: + description: Represents a scope's relationship to a set of values. Valid + operators are In, NotIn, Exists, DoesNotExist. + type: string + scopeName: + description: The name of the scope that the selector applies to. + type: string + values: + description: 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. + items: + type: string + type: array + x-kubernetes-list-type: atomic + required: + - operator + - scopeName + type: object + v1.SeccompProfile: + description: SeccompProfile defines a pod/container's seccomp profile settings. + Only one profile source may be set. + example: + localhostProfile: localhostProfile + type: type + properties: + localhostProfile: + description: 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. + type: string + type: + description: |- + 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. + type: string + required: + - type + type: object + x-kubernetes-unions: + - discriminator: type + fields-to-discriminateBy: + localhostProfile: LocalhostProfile + v1.Secret: + 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. + example: + immutable: true + metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: '{}' + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: '{}' + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + creationTimestamp: 2000-01-23T04:56:07.000+00:00 + name: name + namespace: namespace + apiVersion: apiVersion + data: + key: data + kind: kind + type: type + stringData: + key: stringData + properties: + apiVersion: + description: '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' + type: string + data: + additionalProperties: + format: byte + pattern: ^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$ + type: string + description: 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 + type: object + immutable: + description: 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. + type: boolean + kind: + description: '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' + type: string + metadata: + $ref: '#/components/schemas/v1.ObjectMeta' + stringData: + additionalProperties: + type: string + description: 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. + type: object + type: + description: 'Used to facilitate programmatic handling of secret data. More + info: https://kubernetes.io/docs/concepts/configuration/secret/#secret-types' + type: string + type: object + x-kubernetes-group-version-kind: + - group: "" + kind: Secret + version: v1 + x-implements: + - io.kubernetes.client.common.KubernetesObject + v1.SecretEnvSource: + 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. + example: + name: name + optional: true + properties: + name: + description: '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' + type: string + optional: + description: Specify whether the Secret must be defined + type: boolean + type: object + v1.SecretKeySelector: + description: SecretKeySelector selects a key of a Secret. + example: + name: name + optional: true + key: key + properties: + key: + description: The key of the secret to select from. Must be a valid secret + key. + type: string + name: + description: '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' + type: string + optional: + description: Specify whether the Secret or its key must be defined + type: boolean + required: + - key + type: object + x-kubernetes-map-type: atomic + v1.SecretList: + description: SecretList is a list of Secret. + example: + metadata: + remainingItemCount: 1 + continue: continue + resourceVersion: resourceVersion + selfLink: selfLink + apiVersion: apiVersion + kind: kind + items: + - immutable: true + metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: '{}' + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: '{}' + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + creationTimestamp: 2000-01-23T04:56:07.000+00:00 + name: name + namespace: namespace + apiVersion: apiVersion + data: + key: data + kind: kind + type: type + stringData: + key: stringData + - immutable: true + metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: '{}' + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: '{}' + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + creationTimestamp: 2000-01-23T04:56:07.000+00:00 + name: name + namespace: namespace + apiVersion: apiVersion + data: + key: data + kind: kind + type: type + stringData: + key: stringData + properties: + apiVersion: + description: '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' + type: string + items: + description: 'Items is a list of secret objects. More info: https://kubernetes.io/docs/concepts/configuration/secret' + items: + $ref: '#/components/schemas/v1.Secret' + type: array + kind: + description: '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' + type: string + metadata: + $ref: '#/components/schemas/v1.ListMeta' + required: + - items + type: object + x-kubernetes-group-version-kind: + - group: "" + kind: SecretList + version: v1 + x-implements: + - io.kubernetes.client.common.KubernetesListObject + v1.SecretProjection: + 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. + example: + name: name + optional: true + items: + - mode: 3 + path: path + key: key + - mode: 3 + path: path + key: key + properties: + items: + description: 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 '..'. + items: + $ref: '#/components/schemas/v1.KeyToPath' + type: array + x-kubernetes-list-type: atomic + name: + description: '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' + type: string + optional: + description: optional field specify whether the Secret or its key must be + defined + type: boolean + type: object + v1.SecretReference: + description: SecretReference represents a Secret Reference. It has enough information + to retrieve secret in any namespace + example: + name: name + namespace: namespace + properties: + name: + description: name is unique within a namespace to reference a secret resource. + type: string + namespace: + description: namespace defines the space within which the secret name must + be unique. + type: string + type: object + x-kubernetes-map-type: atomic + v1.SecretVolumeSource: + 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. + example: + secretName: secretName + defaultMode: 3 + optional: true + items: + - mode: 3 + path: path + key: key + - mode: 3 + path: path + key: key + properties: + defaultMode: + description: '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.' + format: int32 + type: integer + items: + description: 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 '..'. + items: + $ref: '#/components/schemas/v1.KeyToPath' + type: array + x-kubernetes-list-type: atomic + optional: + description: optional field specify whether the Secret or its keys must + be defined + type: boolean + secretName: + description: 'secretName is the name of the secret in the pod''s namespace + to use. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret' + type: string + type: object + v1.SecurityContext: + 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. + example: + privileged: true + runAsUser: 1 + capabilities: + add: + - add + - add + drop: + - drop + - drop + seLinuxOptions: + role: role + level: level + type: type + user: user + appArmorProfile: + localhostProfile: localhostProfile + type: type + seccompProfile: + localhostProfile: localhostProfile + type: type + windowsOptions: + gmsaCredentialSpec: gmsaCredentialSpec + runAsUserName: runAsUserName + hostProcess: true + gmsaCredentialSpecName: gmsaCredentialSpecName + procMount: procMount + allowPrivilegeEscalation: true + runAsGroup: 1 + runAsNonRoot: true + readOnlyRootFilesystem: true + properties: + allowPrivilegeEscalation: + description: '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.' + type: boolean + appArmorProfile: + $ref: '#/components/schemas/v1.AppArmorProfile' + capabilities: + $ref: '#/components/schemas/v1.Capabilities' + privileged: + description: 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. + type: boolean + procMount: + description: 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. + type: string + readOnlyRootFilesystem: + description: 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. + type: boolean + runAsGroup: + description: 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. + format: int64 + type: integer + runAsNonRoot: + description: 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. + type: boolean + runAsUser: + description: 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. + format: int64 + type: integer + seLinuxOptions: + $ref: '#/components/schemas/v1.SELinuxOptions' + seccompProfile: + $ref: '#/components/schemas/v1.SeccompProfile' + windowsOptions: + $ref: '#/components/schemas/v1.WindowsSecurityContextOptions' + type: object + v1.Service: + 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. + example: + metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: '{}' + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: '{}' + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + creationTimestamp: 2000-01-23T04:56:07.000+00:00 + name: name + namespace: namespace + apiVersion: apiVersion + kind: kind + spec: + clusterIPs: + - clusterIPs + - clusterIPs + healthCheckNodePort: 0 + ipFamilyPolicy: ipFamilyPolicy + externalIPs: + - externalIPs + - externalIPs + sessionAffinity: sessionAffinity + trafficDistribution: trafficDistribution + allocateLoadBalancerNodePorts: true + ports: + - protocol: protocol + port: 1 + appProtocol: appProtocol + name: name + nodePort: 6 + targetPort: targetPort + - protocol: protocol + port: 1 + appProtocol: appProtocol + name: name + nodePort: 6 + targetPort: targetPort + type: type + loadBalancerClass: loadBalancerClass + sessionAffinityConfig: + clientIP: + timeoutSeconds: 5 + ipFamilies: + - ipFamilies + - ipFamilies + loadBalancerIP: loadBalancerIP + externalName: externalName + loadBalancerSourceRanges: + - loadBalancerSourceRanges + - loadBalancerSourceRanges + externalTrafficPolicy: externalTrafficPolicy + selector: + key: selector + publishNotReadyAddresses: true + internalTrafficPolicy: internalTrafficPolicy + clusterIP: clusterIP + status: + loadBalancer: + ingress: + - ipMode: ipMode + hostname: hostname + ip: ip + ports: + - protocol: protocol + port: 2 + error: error + - protocol: protocol + port: 2 + error: error + - ipMode: ipMode + hostname: hostname + ip: ip + ports: + - protocol: protocol + port: 2 + error: error + - protocol: protocol + port: 2 + error: error + conditions: + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + observedGeneration: 5 + status: status + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + observedGeneration: 5 + status: status + properties: + apiVersion: + description: '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' + type: string + kind: + description: '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' + type: string + metadata: + $ref: '#/components/schemas/v1.ObjectMeta' + spec: + $ref: '#/components/schemas/v1.ServiceSpec' + status: + $ref: '#/components/schemas/v1.ServiceStatus' + type: object + x-kubernetes-group-version-kind: + - group: "" + kind: Service + version: v1 + x-implements: + - io.kubernetes.client.common.KubernetesObject + v1.ServiceAccount: + 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' + example: + metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: '{}' + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: '{}' + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + creationTimestamp: 2000-01-23T04:56:07.000+00:00 + name: name + namespace: namespace + apiVersion: apiVersion + automountServiceAccountToken: true + kind: kind + imagePullSecrets: + - name: name + - name: name + secrets: + - uid: uid + apiVersion: apiVersion + kind: kind + resourceVersion: resourceVersion + fieldPath: fieldPath + name: name + namespace: namespace + - uid: uid + apiVersion: apiVersion + kind: kind + resourceVersion: resourceVersion + fieldPath: fieldPath + name: name + namespace: namespace + properties: + apiVersion: + description: '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' + type: string + automountServiceAccountToken: + description: AutomountServiceAccountToken indicates whether pods running + as this service account should have an API token automatically mounted. + Can be overridden at the pod level. + type: boolean + imagePullSecrets: + description: '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' + items: + $ref: '#/components/schemas/v1.LocalObjectReference' + type: array + x-kubernetes-list-type: atomic + kind: + description: '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' + type: string + metadata: + $ref: '#/components/schemas/v1.ObjectMeta' + secrets: + description: '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". The "kubernetes.io/enforce-mountable-secrets" + annotation is deprecated since v1.32. Prefer separate namespaces to isolate + access to mounted secrets. 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' + items: + $ref: '#/components/schemas/v1.ObjectReference' + type: array + x-kubernetes-patch-strategy: merge + x-kubernetes-list-type: map + x-kubernetes-list-map-keys: + - name + x-kubernetes-patch-merge-key: name + type: object + x-kubernetes-group-version-kind: + - group: "" + kind: ServiceAccount + version: v1 + x-implements: + - io.kubernetes.client.common.KubernetesObject + v1.ServiceAccountList: + description: ServiceAccountList is a list of ServiceAccount objects + example: + metadata: + remainingItemCount: 1 + continue: continue + resourceVersion: resourceVersion + selfLink: selfLink + apiVersion: apiVersion + kind: kind + items: + - metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: '{}' + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: '{}' + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + creationTimestamp: 2000-01-23T04:56:07.000+00:00 + name: name + namespace: namespace + apiVersion: apiVersion + automountServiceAccountToken: true + kind: kind + imagePullSecrets: + - name: name + - name: name + secrets: + - uid: uid + apiVersion: apiVersion + kind: kind + resourceVersion: resourceVersion + fieldPath: fieldPath + name: name + namespace: namespace + - uid: uid + apiVersion: apiVersion + kind: kind + resourceVersion: resourceVersion + fieldPath: fieldPath + name: name + namespace: namespace + - metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: '{}' + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: '{}' + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + creationTimestamp: 2000-01-23T04:56:07.000+00:00 + name: name + namespace: namespace + apiVersion: apiVersion + automountServiceAccountToken: true + kind: kind + imagePullSecrets: + - name: name + - name: name + secrets: + - uid: uid + apiVersion: apiVersion + kind: kind + resourceVersion: resourceVersion + fieldPath: fieldPath + name: name + namespace: namespace + - uid: uid + apiVersion: apiVersion + kind: kind + resourceVersion: resourceVersion + fieldPath: fieldPath + name: name + namespace: namespace + properties: + apiVersion: + description: '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' + type: string + items: + description: 'List of ServiceAccounts. More info: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/' + items: + $ref: '#/components/schemas/v1.ServiceAccount' + type: array + kind: + description: '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' + type: string + metadata: + $ref: '#/components/schemas/v1.ListMeta' + required: + - items + type: object + x-kubernetes-group-version-kind: + - group: "" + kind: ServiceAccountList + version: v1 + x-implements: + - io.kubernetes.client.common.KubernetesListObject + v1.ServiceAccountTokenProjection: + 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). + example: + path: path + audience: audience + expirationSeconds: 6 + properties: + audience: + description: 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. + type: string + expirationSeconds: + description: 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. + format: int64 + type: integer + path: + description: path is the path relative to the mount point of the file to + project the token into. + type: string + required: + - path + type: object + v1.ServiceList: + description: ServiceList holds a list of services. + example: + metadata: + remainingItemCount: 1 + continue: continue + resourceVersion: resourceVersion + selfLink: selfLink + apiVersion: apiVersion + kind: kind + items: + - metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: '{}' + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: '{}' + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + creationTimestamp: 2000-01-23T04:56:07.000+00:00 + name: name + namespace: namespace + apiVersion: apiVersion + kind: kind + spec: + clusterIPs: + - clusterIPs + - clusterIPs + healthCheckNodePort: 0 + ipFamilyPolicy: ipFamilyPolicy + externalIPs: + - externalIPs + - externalIPs + sessionAffinity: sessionAffinity + trafficDistribution: trafficDistribution + allocateLoadBalancerNodePorts: true + ports: + - protocol: protocol + port: 1 + appProtocol: appProtocol + name: name + nodePort: 6 + targetPort: targetPort + - protocol: protocol + port: 1 + appProtocol: appProtocol + name: name + nodePort: 6 + targetPort: targetPort + type: type + loadBalancerClass: loadBalancerClass + sessionAffinityConfig: + clientIP: + timeoutSeconds: 5 + ipFamilies: + - ipFamilies + - ipFamilies + loadBalancerIP: loadBalancerIP + externalName: externalName + loadBalancerSourceRanges: + - loadBalancerSourceRanges + - loadBalancerSourceRanges + externalTrafficPolicy: externalTrafficPolicy selector: key: selector - minReadySeconds: 0 + publishNotReadyAddresses: true + internalTrafficPolicy: internalTrafficPolicy + clusterIP: clusterIP status: - fullyLabeledReplicas: 5 - replicas: 7 - readyReplicas: 2 + loadBalancer: + ingress: + - ipMode: ipMode + hostname: hostname + ip: ip + ports: + - protocol: protocol + port: 2 + error: error + - protocol: protocol + port: 2 + error: error + - ipMode: ipMode + hostname: hostname + ip: ip + ports: + - protocol: protocol + port: 2 + error: error + - protocol: protocol + port: 2 + error: error conditions: - reason: reason lastTransitionTime: 2000-01-23T04:56:07.000+00:00 message: message type: type + observedGeneration: 5 status: status - reason: reason lastTransitionTime: 2000-01-23T04:56:07.000+00:00 message: message type: type + observedGeneration: 5 status: status - availableReplicas: 1 - observedGeneration: 5 - properties: - apiVersion: - description: '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' - type: string - items: - description: 'List of replication controllers. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller' - items: - $ref: '#/components/schemas/v1.ReplicationController' - type: array - kind: - description: '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' - type: string - metadata: - $ref: '#/components/schemas/v1.ListMeta' - required: - - items - type: object - x-kubernetes-group-version-kind: - - group: "" - kind: ReplicationControllerList - version: v1 - x-implements: - - io.kubernetes.client.common.KubernetesListObject - v1.ReplicationControllerSpec: - description: ReplicationControllerSpec is the specification of a replication - controller. - example: - template: - metadata: + - metadata: generation: 6 finalizers: - finalizers @@ -196469,101 +235076,959 @@ components: creationTimestamp: 2000-01-23T04:56:07.000+00:00 name: name namespace: namespace + apiVersion: apiVersion + kind: kind spec: - dnsPolicy: dnsPolicy - nodeName: nodeName - terminationGracePeriodSeconds: 5 - dnsConfig: - searches: - - searches - - searches - nameservers: - - nameservers - - nameservers - options: - - name: name - value: value - - name: name - value: value - hostNetwork: true - readinessGates: - - conditionType: conditionType - - conditionType: conditionType - serviceAccountName: serviceAccountName - imagePullSecrets: - - name: name - - name: name - priorityClassName: priorityClassName - hostAliases: - - ip: ip - hostnames: - - hostnames - - hostnames - - ip: ip - hostnames: - - hostnames - - hostnames - securityContext: - runAsUser: 1 - seLinuxOptions: - role: role - level: level - type: type - user: user - fsGroup: 6 - seccompProfile: - localhostProfile: localhostProfile - type: type - windowsOptions: - gmsaCredentialSpec: gmsaCredentialSpec - runAsUserName: runAsUserName - hostProcess: true - gmsaCredentialSpecName: gmsaCredentialSpecName - fsGroupChangePolicy: fsGroupChangePolicy - supplementalGroups: - - 4 - - 4 - runAsGroup: 7 - runAsNonRoot: true - sysctls: - - name: name - value: value - - name: name - value: value - preemptionPolicy: preemptionPolicy - nodeSelector: - key: nodeSelector + clusterIPs: + - clusterIPs + - clusterIPs + healthCheckNodePort: 0 + ipFamilyPolicy: ipFamilyPolicy + externalIPs: + - externalIPs + - externalIPs + sessionAffinity: sessionAffinity + trafficDistribution: trafficDistribution + allocateLoadBalancerNodePorts: true + ports: + - protocol: protocol + port: 1 + appProtocol: appProtocol + name: name + nodePort: 6 + targetPort: targetPort + - protocol: protocol + port: 1 + appProtocol: appProtocol + name: name + nodePort: 6 + targetPort: targetPort + type: type + loadBalancerClass: loadBalancerClass + sessionAffinityConfig: + clientIP: + timeoutSeconds: 5 + ipFamilies: + - ipFamilies + - ipFamilies + loadBalancerIP: loadBalancerIP + externalName: externalName + loadBalancerSourceRanges: + - loadBalancerSourceRanges + - loadBalancerSourceRanges + externalTrafficPolicy: externalTrafficPolicy + selector: + key: selector + publishNotReadyAddresses: true + internalTrafficPolicy: internalTrafficPolicy + clusterIP: clusterIP + status: + loadBalancer: + ingress: + - ipMode: ipMode + hostname: hostname + ip: ip + ports: + - protocol: protocol + port: 2 + error: error + - protocol: protocol + port: 2 + error: error + - ipMode: ipMode + hostname: hostname + ip: ip + ports: + - protocol: protocol + port: 2 + error: error + - protocol: protocol + port: 2 + error: error + conditions: + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + observedGeneration: 5 + status: status + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + observedGeneration: 5 + status: status + properties: + apiVersion: + description: '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' + type: string + items: + description: List of services + items: + $ref: '#/components/schemas/v1.Service' + type: array + kind: + description: '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' + type: string + metadata: + $ref: '#/components/schemas/v1.ListMeta' + required: + - items + type: object + x-kubernetes-group-version-kind: + - group: "" + kind: ServiceList + version: v1 + x-implements: + - io.kubernetes.client.common.KubernetesListObject + v1.ServicePort: + description: ServicePort contains information on service's port. + example: + protocol: protocol + port: 1 + appProtocol: appProtocol + name: name + nodePort: 6 + targetPort: targetPort + properties: + appProtocol: + description: |- + 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. + type: string + name: + description: 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. + type: string + nodePort: + description: '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' + format: int32 + type: integer + port: + description: The port that will be exposed by this service. + format: int32 + type: integer + protocol: + description: The IP protocol for this port. Supports "TCP", "UDP", and "SCTP". + Default is TCP. + type: string + targetPort: + description: 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. + format: int-or-string + type: string + required: + - port + type: object + v1.ServiceSpec: + description: ServiceSpec describes the attributes that a user creates on a service. + example: + clusterIPs: + - clusterIPs + - clusterIPs + healthCheckNodePort: 0 + ipFamilyPolicy: ipFamilyPolicy + externalIPs: + - externalIPs + - externalIPs + sessionAffinity: sessionAffinity + trafficDistribution: trafficDistribution + allocateLoadBalancerNodePorts: true + ports: + - protocol: protocol + port: 1 + appProtocol: appProtocol + name: name + nodePort: 6 + targetPort: targetPort + - protocol: protocol + port: 1 + appProtocol: appProtocol + name: name + nodePort: 6 + targetPort: targetPort + type: type + loadBalancerClass: loadBalancerClass + sessionAffinityConfig: + clientIP: + timeoutSeconds: 5 + ipFamilies: + - ipFamilies + - ipFamilies + loadBalancerIP: loadBalancerIP + externalName: externalName + loadBalancerSourceRanges: + - loadBalancerSourceRanges + - loadBalancerSourceRanges + externalTrafficPolicy: externalTrafficPolicy + selector: + key: selector + publishNotReadyAddresses: true + internalTrafficPolicy: internalTrafficPolicy + clusterIP: clusterIP + properties: + allocateLoadBalancerNodePorts: + description: 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. + type: boolean + clusterIP: + description: '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' + type: string + clusterIPs: + description: |- + 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 + items: + type: string + type: array + x-kubernetes-list-type: atomic + externalIPs: + description: 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. + items: + type: string + type: array + x-kubernetes-list-type: atomic + externalName: + description: 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". + type: string + externalTrafficPolicy: + description: 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. + type: string + healthCheckNodePort: + description: 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. + format: int32 + type: integer + internalTrafficPolicy: + description: 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). + type: string + ipFamilies: + description: |- + 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. + items: + type: string + type: array + x-kubernetes-list-type: atomic + ipFamilyPolicy: + description: 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. + type: string + loadBalancerClass: + description: 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. + type: string + loadBalancerIP: + description: '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.' + type: string + loadBalancerSourceRanges: + description: '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/' + items: + type: string + type: array + x-kubernetes-list-type: atomic + ports: + description: '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' + items: + $ref: '#/components/schemas/v1.ServicePort' + type: array + x-kubernetes-patch-strategy: merge + x-kubernetes-list-type: map + x-kubernetes-list-map-keys: + - port + - protocol + x-kubernetes-patch-merge-key: port + publishNotReadyAddresses: + description: 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. + type: boolean + selector: + additionalProperties: + type: string + description: '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/' + type: object + x-kubernetes-map-type: atomic + sessionAffinity: + description: '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' + type: string + sessionAffinityConfig: + $ref: '#/components/schemas/v1.SessionAffinityConfig' + trafficDistribution: + description: 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 in the same zone. + type: string + type: + description: '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' + type: string + type: object + v1.ServiceStatus: + description: ServiceStatus represents the current status of a service. + example: + loadBalancer: + ingress: + - ipMode: ipMode hostname: hostname - runtimeClassName: runtimeClassName - tolerations: - - effect: effect - tolerationSeconds: 9 - value: value - key: key - operator: operator - - effect: effect - tolerationSeconds: 9 - value: value - key: key - operator: operator - automountServiceAccountToken: true - schedulingGates: - - name: name - - name: name - schedulerName: schedulerName - activeDeadlineSeconds: 0 - os: + ip: ip + ports: + - protocol: protocol + port: 2 + error: error + - protocol: protocol + port: 2 + error: error + - ipMode: ipMode + hostname: hostname + ip: ip + ports: + - protocol: protocol + port: 2 + error: error + - protocol: protocol + port: 2 + error: error + conditions: + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + observedGeneration: 5 + status: status + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + observedGeneration: 5 + status: status + properties: + conditions: + description: Current service state + items: + $ref: '#/components/schemas/v1.Condition' + type: array + x-kubernetes-patch-strategy: merge + x-kubernetes-list-type: map + x-kubernetes-list-map-keys: + - type + x-kubernetes-patch-merge-key: type + loadBalancer: + $ref: '#/components/schemas/v1.LoadBalancerStatus' + type: object + v1.SessionAffinityConfig: + description: SessionAffinityConfig represents the configurations of session + affinity. + example: + clientIP: + timeoutSeconds: 5 + properties: + clientIP: + $ref: '#/components/schemas/v1.ClientIPConfig' + type: object + v1.SleepAction: + description: SleepAction describes a "sleep" action. + example: + seconds: 5 + properties: + seconds: + description: Seconds is the number of seconds to sleep. + format: int64 + type: integer + required: + - seconds + type: object + v1.StorageOSPersistentVolumeSource: + description: Represents a StorageOS persistent volume resource. + example: + volumeNamespace: volumeNamespace + volumeName: volumeName + secretRef: + uid: uid + apiVersion: apiVersion + kind: kind + resourceVersion: resourceVersion + fieldPath: fieldPath + name: name + namespace: namespace + readOnly: true + fsType: fsType + properties: + fsType: + description: 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. + type: string + readOnly: + description: readOnly defaults to false (read/write). ReadOnly here will + force the ReadOnly setting in VolumeMounts. + type: boolean + secretRef: + $ref: '#/components/schemas/v1.ObjectReference' + volumeName: + description: volumeName is the human-readable name of the StorageOS volume. Volume + names are only unique within a namespace. + type: string + volumeNamespace: + description: 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. + type: string + type: object + v1.StorageOSVolumeSource: + description: Represents a StorageOS persistent volume resource. + example: + volumeNamespace: volumeNamespace + volumeName: volumeName + secretRef: + name: name + readOnly: true + fsType: fsType + properties: + fsType: + description: 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. + type: string + readOnly: + description: readOnly defaults to false (read/write). ReadOnly here will + force the ReadOnly setting in VolumeMounts. + type: boolean + secretRef: + $ref: '#/components/schemas/v1.LocalObjectReference' + volumeName: + description: volumeName is the human-readable name of the StorageOS volume. Volume + names are only unique within a namespace. + type: string + volumeNamespace: + description: 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. + type: string + type: object + v1.Sysctl: + description: Sysctl defines a kernel parameter to be set + example: + name: name + value: value + properties: + name: + description: Name of a property to set + type: string + value: + description: Value of a property to set + type: string + required: + - name + - value + type: object + v1.TCPSocketAction: + description: TCPSocketAction describes an action based on opening a socket + example: + port: port + host: host + properties: + host: + description: 'Optional: Host name to connect to, defaults to the pod IP.' + type: string + port: + description: 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. + format: int-or-string + type: string + required: + - port + type: object + v1.Taint: + description: The node this Taint is attached to has the "effect" on any pod + that does not tolerate the Taint. + example: + timeAdded: 2000-01-23T04:56:07.000+00:00 + effect: effect + value: value + key: key + properties: + effect: + description: Required. The effect of the taint on pods that do not tolerate + the taint. Valid effects are NoSchedule, PreferNoSchedule and NoExecute. + type: string + key: + description: Required. The taint key to be applied to a node. + type: string + timeAdded: + description: TimeAdded represents the time at which the taint was added. + It is only written for NoExecute taints. + format: date-time + type: string + value: + description: The taint value corresponding to the taint key. + type: string + required: + - effect + - key + type: object + v1.Toleration: + description: The pod this Toleration is attached to tolerates any taint that + matches the triple using the matching operator . + example: + effect: effect + tolerationSeconds: 9 + value: value + key: key + operator: operator + properties: + effect: + description: Effect indicates the taint effect to match. Empty means match + all taint effects. When specified, allowed values are NoSchedule, PreferNoSchedule + and NoExecute. + type: string + key: + description: 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. + type: string + operator: + description: 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. + type: string + tolerationSeconds: + description: 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. + format: int64 + type: integer + value: + description: Value is the taint value the toleration matches to. If the + operator is Exists, the value should be empty, otherwise just a regular + string. + type: string + type: object + v1.TopologySelectorLabelRequirement: + description: A topology selector requirement is a selector that matches given + label. This is an alpha feature and may change in the future. + example: + values: + - values + - values + key: key + properties: + key: + description: The label key that the selector applies to. + type: string + values: + description: An array of string values. One value must match the label to + be selected. Each entry in Values is ORed. + items: + type: string + type: array + x-kubernetes-list-type: atomic + required: + - key + - values + type: object + v1.TopologySelectorTerm: + 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. + example: + matchLabelExpressions: + - values: + - values + - values + key: key + - values: + - values + - values + key: key + properties: + matchLabelExpressions: + description: A list of topology selector requirements by labels. + items: + $ref: '#/components/schemas/v1.TopologySelectorLabelRequirement' + type: array + x-kubernetes-list-type: atomic + type: object + x-kubernetes-map-type: atomic + v1.TopologySpreadConstraint: + description: TopologySpreadConstraint specifies how to spread matching pods + among the given topology. + example: + nodeTaintsPolicy: nodeTaintsPolicy + whenUnsatisfiable: whenUnsatisfiable + maxSkew: 6 + nodeAffinityPolicy: nodeAffinityPolicy + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + minDomains: 8 + topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + properties: + labelSelector: + $ref: '#/components/schemas/v1.LabelSelector' + matchLabelKeys: + description: |- + 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). + items: + type: string + type: array + x-kubernetes-list-type: atomic + maxSkew: + description: '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.' + format: int32 + type: integer + minDomains: + description: |- + 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. + format: int32 + type: integer + nodeAffinityPolicy: + description: |- + 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. + type: string + nodeTaintsPolicy: + description: |- + 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. + type: string + topologyKey: + description: 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. + type: string + whenUnsatisfiable: + description: |- + 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. + type: string + required: + - maxSkew + - topologyKey + - whenUnsatisfiable + type: object + v1.TypedLocalObjectReference: + description: TypedLocalObjectReference contains enough information to let you + locate the typed referenced object inside the same namespace. + example: + apiGroup: apiGroup + kind: kind + name: name + properties: + apiGroup: + description: 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. + type: string + kind: + description: Kind is the type of resource being referenced + type: string + name: + description: Name is the name of resource being referenced + type: string + required: + - kind + - name + type: object + x-kubernetes-map-type: atomic + v1.TypedObjectReference: + description: TypedObjectReference contains enough information to let you locate + the typed referenced object + example: + apiGroup: apiGroup + kind: kind + name: name + namespace: namespace + properties: + apiGroup: + description: 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. + type: string + kind: + description: Kind is the type of resource being referenced + type: string + name: + description: Name is the name of resource being referenced + type: string + namespace: + description: 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. + type: string + required: + - kind + - name + type: object + v1.Volume: + description: Volume represents a named volume in a pod that may be accessed + by any container in the pod. + example: + quobyte: + volume: volume + registry: registry + readOnly: true + user: user + tenant: tenant + group: group + azureFile: + secretName: secretName + readOnly: true + shareName: shareName + flexVolume: + driver: driver + options: + key: options + secretRef: + name: name + readOnly: true + fsType: fsType + ephemeral: + volumeClaimTemplate: + metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: '{}' + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: '{}' + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + creationTimestamp: 2000-01-23T04:56:07.000+00:00 name: name - setHostnameAsFQDN: true - enableServiceLinks: true - overhead: {} - hostIPC: true - topologySpreadConstraints: - - nodeTaintsPolicy: nodeTaintsPolicy - whenUnsatisfiable: whenUnsatisfiable - maxSkew: 9 - nodeAffinityPolicy: nodeAffinityPolicy - labelSelector: + namespace: namespace + spec: + storageClassName: storageClassName + dataSourceRef: + apiGroup: apiGroup + kind: kind + name: name + namespace: namespace + volumeName: volumeName + volumeAttributesClassName: volumeAttributesClassName + resources: + requests: {} + limits: {} + selector: matchExpressions: - values: - values @@ -196577,15 +236042,73 @@ components: operator: operator matchLabels: key: matchLabels - minDomains: 6 - topologyKey: topologyKey - matchLabelKeys: - - matchLabelKeys - - matchLabelKeys - - nodeTaintsPolicy: nodeTaintsPolicy - whenUnsatisfiable: whenUnsatisfiable - maxSkew: 9 - nodeAffinityPolicy: nodeAffinityPolicy + accessModes: + - accessModes + - accessModes + dataSource: + apiGroup: apiGroup + kind: kind + name: name + volumeMode: volumeMode + secret: + secretName: secretName + defaultMode: 3 + optional: true + items: + - mode: 3 + path: path + key: key + - mode: 3 + path: path + key: key + projected: + sources: + - downwardAPI: + items: + - mode: 1 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - mode: 1 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + configMap: + name: name + optional: true + items: + - mode: 3 + path: path + key: key + - mode: 3 + path: path + key: key + secret: + name: name + optional: true + items: + - mode: 3 + path: path + key: key + - mode: 3 + path: path + key: key + serviceAccountToken: + path: path + audience: audience + expirationSeconds: 6 + clusterTrustBundle: + path: path labelSelector: matchExpressions: - values: @@ -196600,2704 +236123,2534 @@ components: operator: operator matchLabels: key: matchLabels - minDomains: 6 - topologyKey: topologyKey - matchLabelKeys: - - matchLabelKeys - - matchLabelKeys - volumes: - - quobyte: - volume: volume - registry: registry - readOnly: true - user: user - tenant: tenant - group: group - azureFile: - secretName: secretName - readOnly: true - shareName: shareName - flexVolume: - driver: driver - options: - key: options - secretRef: - name: name - readOnly: true - fsType: fsType - ephemeral: - volumeClaimTemplate: - metadata: - generation: 6 - finalizers: - - finalizers - - finalizers - resourceVersion: resourceVersion - annotations: - key: annotations - generateName: generateName - deletionTimestamp: 2000-01-23T04:56:07.000+00:00 - labels: - key: labels - ownerReferences: - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - selfLink: selfLink - deletionGracePeriodSeconds: 0 - uid: uid - managedFields: - - apiVersion: apiVersion - fieldsV1: '{}' - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - - apiVersion: apiVersion - fieldsV1: '{}' - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - creationTimestamp: 2000-01-23T04:56:07.000+00:00 - name: name - namespace: namespace - spec: - storageClassName: storageClassName - dataSourceRef: - apiGroup: apiGroup - kind: kind - name: name - namespace: namespace - volumeName: volumeName - resources: - claims: - - name: name - - name: name - requests: {} - limits: {} - selector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - accessModes: - - accessModes - - accessModes - dataSource: - apiGroup: apiGroup - kind: kind - name: name - volumeMode: volumeMode - secret: - secretName: secretName - defaultMode: 6 - optional: true - items: - - mode: 6 - path: path - key: key - - mode: 6 - path: path - key: key - projected: - sources: - - downwardAPI: - items: - - mode: 6 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - mode: 6 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - configMap: - name: name - optional: true - items: - - mode: 6 - path: path - key: key - - mode: 6 - path: path - key: key - secret: - name: name - optional: true - items: - - mode: 6 - path: path - key: key - - mode: 6 - path: path - key: key - serviceAccountToken: - path: path - audience: audience - expirationSeconds: 5 - - downwardAPI: - items: - - mode: 6 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - mode: 6 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - configMap: - name: name - optional: true - items: - - mode: 6 - path: path - key: key - - mode: 6 - path: path - key: key - secret: - name: name - optional: true - items: - - mode: 6 - path: path - key: key - - mode: 6 - path: path - key: key - serviceAccountToken: - path: path - audience: audience - expirationSeconds: 5 - defaultMode: 6 - cephfs: + name: name + optional: true + signerName: signerName + - downwardAPI: + items: + - mode: 1 path: path - secretRef: - name: name - secretFile: secretFile - readOnly: true - user: user - monitors: - - monitors - - monitors - scaleIO: - system: system - protectionDomain: protectionDomain - sslEnabled: true - storageMode: storageMode - volumeName: volumeName - secretRef: - name: name - readOnly: true - fsType: fsType - storagePool: storagePool - gateway: gateway - emptyDir: - sizeLimit: sizeLimit - medium: medium - glusterfs: + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - mode: 1 path: path - endpoints: endpoints - readOnly: true - gcePersistentDisk: - partition: 2 - readOnly: true - pdName: pdName - fsType: fsType - photonPersistentDisk: - pdID: pdID - fsType: fsType - azureDisk: - diskName: diskName - kind: kind - readOnly: true - cachingMode: cachingMode - diskURI: diskURI - fsType: fsType - cinder: - secretRef: - name: name - volumeID: volumeID - readOnly: true - fsType: fsType - downwardAPI: - defaultMode: 3 - items: - - mode: 6 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - mode: 6 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - awsElasticBlockStore: - partition: 8 - volumeID: volumeID - readOnly: true - fsType: fsType - flocker: - datasetName: datasetName - datasetUUID: datasetUUID - iscsi: - chapAuthSession: true - iscsiInterface: iscsiInterface - lun: 6 - chapAuthDiscovery: true - iqn: iqn - portals: - - portals - - portals - secretRef: - name: name - initiatorName: initiatorName - readOnly: true - fsType: fsType - targetPortal: targetPortal - rbd: - image: image - pool: pool - secretRef: - name: name - readOnly: true - fsType: fsType - keyring: keyring - user: user - monitors: - - monitors - - monitors - configMap: - defaultMode: 9 - name: name - optional: true - items: - - mode: 6 - path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + configMap: + name: name + optional: true + items: + - mode: 3 + path: path + key: key + - mode: 3 + path: path + key: key + secret: + name: name + optional: true + items: + - mode: 3 + path: path + key: key + - mode: 3 + path: path + key: key + serviceAccountToken: + path: path + audience: audience + expirationSeconds: 6 + clusterTrustBundle: + path: path + labelSelector: + matchExpressions: + - values: + - values + - values key: key - - mode: 6 - path: path + operator: operator + - values: + - values + - values key: key - storageos: - volumeNamespace: volumeNamespace - volumeName: volumeName - secretRef: - name: name - readOnly: true - fsType: fsType - csi: - driver: driver - nodePublishSecretRef: - name: name - readOnly: true - fsType: fsType - volumeAttributes: - key: volumeAttributes + operator: operator + matchLabels: + key: matchLabels + name: name + optional: true + signerName: signerName + defaultMode: 5 + cephfs: + path: path + secretRef: + name: name + secretFile: secretFile + readOnly: true + user: user + monitors: + - monitors + - monitors + scaleIO: + system: system + protectionDomain: protectionDomain + sslEnabled: true + storageMode: storageMode + volumeName: volumeName + secretRef: + name: name + readOnly: true + fsType: fsType + storagePool: storagePool + gateway: gateway + emptyDir: + sizeLimit: sizeLimit + medium: medium + glusterfs: + path: path + endpoints: endpoints + readOnly: true + gcePersistentDisk: + partition: 6 + readOnly: true + pdName: pdName + fsType: fsType + image: + reference: reference + pullPolicy: pullPolicy + photonPersistentDisk: + pdID: pdID + fsType: fsType + azureDisk: + diskName: diskName + kind: kind + readOnly: true + cachingMode: cachingMode + diskURI: diskURI + fsType: fsType + cinder: + secretRef: + name: name + volumeID: volumeID + readOnly: true + fsType: fsType + downwardAPI: + defaultMode: 6 + items: + - mode: 1 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - mode: 1 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + awsElasticBlockStore: + partition: 9 + volumeID: volumeID + readOnly: true + fsType: fsType + flocker: + datasetName: datasetName + datasetUUID: datasetUUID + iscsi: + chapAuthSession: true + iscsiInterface: iscsiInterface + lun: 6 + chapAuthDiscovery: true + iqn: iqn + portals: + - portals + - portals + secretRef: + name: name + initiatorName: initiatorName + readOnly: true + fsType: fsType + targetPortal: targetPortal + rbd: + image: image + pool: pool + secretRef: + name: name + readOnly: true + fsType: fsType + keyring: keyring + user: user + monitors: + - monitors + - monitors + configMap: + defaultMode: 6 + name: name + optional: true + items: + - mode: 3 + path: path + key: key + - mode: 3 + path: path + key: key + storageos: + volumeNamespace: volumeNamespace + volumeName: volumeName + secretRef: + name: name + readOnly: true + fsType: fsType + csi: + driver: driver + nodePublishSecretRef: + name: name + readOnly: true + fsType: fsType + volumeAttributes: + key: volumeAttributes + name: name + nfs: + path: path + server: server + readOnly: true + persistentVolumeClaim: + claimName: claimName + readOnly: true + gitRepo: + repository: repository + directory: directory + revision: revision + portworxVolume: + volumeID: volumeID + readOnly: true + fsType: fsType + vsphereVolume: + storagePolicyName: storagePolicyName + storagePolicyID: storagePolicyID + volumePath: volumePath + fsType: fsType + fc: + lun: 2 + targetWWNs: + - targetWWNs + - targetWWNs + readOnly: true + wwids: + - wwids + - wwids + fsType: fsType + hostPath: + path: path + type: type + properties: + awsElasticBlockStore: + $ref: '#/components/schemas/v1.AWSElasticBlockStoreVolumeSource' + azureDisk: + $ref: '#/components/schemas/v1.AzureDiskVolumeSource' + azureFile: + $ref: '#/components/schemas/v1.AzureFileVolumeSource' + cephfs: + $ref: '#/components/schemas/v1.CephFSVolumeSource' + cinder: + $ref: '#/components/schemas/v1.CinderVolumeSource' + configMap: + $ref: '#/components/schemas/v1.ConfigMapVolumeSource' + csi: + $ref: '#/components/schemas/v1.CSIVolumeSource' + downwardAPI: + $ref: '#/components/schemas/v1.DownwardAPIVolumeSource' + emptyDir: + $ref: '#/components/schemas/v1.EmptyDirVolumeSource' + ephemeral: + $ref: '#/components/schemas/v1.EphemeralVolumeSource' + fc: + $ref: '#/components/schemas/v1.FCVolumeSource' + flexVolume: + $ref: '#/components/schemas/v1.FlexVolumeSource' + flocker: + $ref: '#/components/schemas/v1.FlockerVolumeSource' + gcePersistentDisk: + $ref: '#/components/schemas/v1.GCEPersistentDiskVolumeSource' + gitRepo: + $ref: '#/components/schemas/v1.GitRepoVolumeSource' + glusterfs: + $ref: '#/components/schemas/v1.GlusterfsVolumeSource' + hostPath: + $ref: '#/components/schemas/v1.HostPathVolumeSource' + image: + $ref: '#/components/schemas/v1.ImageVolumeSource' + iscsi: + $ref: '#/components/schemas/v1.ISCSIVolumeSource' + name: + description: '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' + type: string + nfs: + $ref: '#/components/schemas/v1.NFSVolumeSource' + persistentVolumeClaim: + $ref: '#/components/schemas/v1.PersistentVolumeClaimVolumeSource' + photonPersistentDisk: + $ref: '#/components/schemas/v1.PhotonPersistentDiskVolumeSource' + portworxVolume: + $ref: '#/components/schemas/v1.PortworxVolumeSource' + projected: + $ref: '#/components/schemas/v1.ProjectedVolumeSource' + quobyte: + $ref: '#/components/schemas/v1.QuobyteVolumeSource' + rbd: + $ref: '#/components/schemas/v1.RBDVolumeSource' + scaleIO: + $ref: '#/components/schemas/v1.ScaleIOVolumeSource' + secret: + $ref: '#/components/schemas/v1.SecretVolumeSource' + storageos: + $ref: '#/components/schemas/v1.StorageOSVolumeSource' + vsphereVolume: + $ref: '#/components/schemas/v1.VsphereVirtualDiskVolumeSource' + required: + - name + type: object + v1.VolumeDevice: + description: volumeDevice describes a mapping of a raw block device within a + container. + example: + devicePath: devicePath + name: name + properties: + devicePath: + description: devicePath is the path inside of the container that the device + will be mapped to. + type: string + name: + description: name must match the name of a persistentVolumeClaim in the + pod + type: string + required: + - devicePath + - name + type: object + v1.VolumeMount: + description: VolumeMount describes a mounting of a Volume within a container. + example: + mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + recursiveReadOnly: recursiveReadOnly + subPathExpr: subPathExpr + properties: + mountPath: + description: Path within the container at which the volume should be mounted. Must + not contain ':'. + type: string + mountPropagation: + description: 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). + type: string + name: + description: This must match the Name of a Volume. + type: string + readOnly: + description: Mounted read-only if true, read-write otherwise (false or unspecified). + Defaults to false. + type: boolean + recursiveReadOnly: + description: |- + 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. + type: string + subPath: + description: Path within the volume from which the container's volume should + be mounted. Defaults to "" (volume's root). + type: string + subPathExpr: + description: 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. + type: string + required: + - mountPath + - name + type: object + v1.VolumeMountStatus: + description: VolumeMountStatus shows status of volume mounts. + example: + mountPath: mountPath + name: name + readOnly: true + recursiveReadOnly: recursiveReadOnly + properties: + mountPath: + description: MountPath corresponds to the original VolumeMount. + type: string + name: + description: Name corresponds to the name of the original VolumeMount. + type: string + readOnly: + description: ReadOnly corresponds to the original VolumeMount. + type: boolean + recursiveReadOnly: + description: 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. + type: string + required: + - mountPath + - name + type: object + v1.VolumeNodeAffinity: + description: VolumeNodeAffinity defines constraints that limit what nodes this + volume can be accessed from. + example: + required: + nodeSelectorTerms: + - matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchFields: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + - matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchFields: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + properties: + required: + $ref: '#/components/schemas/v1.NodeSelector' + type: object + v1.VolumeProjection: + description: Projection that may be projected along with other supported volume + types. Exactly one of these fields must be set. + example: + downwardAPI: + items: + - mode: 1 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - mode: 1 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + configMap: + name: name + optional: true + items: + - mode: 3 + path: path + key: key + - mode: 3 + path: path + key: key + secret: + name: name + optional: true + items: + - mode: 3 + path: path + key: key + - mode: 3 + path: path + key: key + serviceAccountToken: + path: path + audience: audience + expirationSeconds: 6 + clusterTrustBundle: + path: path + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + name: name + optional: true + signerName: signerName + properties: + clusterTrustBundle: + $ref: '#/components/schemas/v1.ClusterTrustBundleProjection' + configMap: + $ref: '#/components/schemas/v1.ConfigMapProjection' + downwardAPI: + $ref: '#/components/schemas/v1.DownwardAPIProjection' + secret: + $ref: '#/components/schemas/v1.SecretProjection' + serviceAccountToken: + $ref: '#/components/schemas/v1.ServiceAccountTokenProjection' + type: object + v1.VolumeResourceRequirements: + description: VolumeResourceRequirements describes the storage resource requirements + for a volume. + example: + requests: {} + limits: {} + properties: + limits: + additionalProperties: + $ref: '#/components/schemas/resource.Quantity' + description: 'Limits describes the maximum amount of compute resources allowed. + More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/' + type: object + requests: + additionalProperties: + $ref: '#/components/schemas/resource.Quantity' + description: '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/' + type: object + type: object + v1.VsphereVirtualDiskVolumeSource: + description: Represents a vSphere volume resource. + example: + storagePolicyName: storagePolicyName + storagePolicyID: storagePolicyID + volumePath: volumePath + fsType: fsType + properties: + fsType: + description: 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. + type: string + storagePolicyID: + description: storagePolicyID is the storage Policy Based Management (SPBM) + profile ID associated with the StoragePolicyName. + type: string + storagePolicyName: + description: storagePolicyName is the storage Policy Based Management (SPBM) + profile name. + type: string + volumePath: + description: volumePath is the path that identifies vSphere volume vmdk + type: string + required: + - volumePath + type: object + v1.WeightedPodAffinityTerm: + description: The weights of all of the matched WeightedPodAffinityTerm fields + are added per-node to find the most preferred node(s) + example: + podAffinityTerm: + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + mismatchLabelKeys: + - mismatchLabelKeys + - mismatchLabelKeys + namespaces: + - namespaces + - namespaces + weight: 1 + properties: + podAffinityTerm: + $ref: '#/components/schemas/v1.PodAffinityTerm' + weight: + description: weight associated with matching the corresponding podAffinityTerm, + in the range 1-100. + format: int32 + type: integer + required: + - podAffinityTerm + - weight + type: object + v1.WindowsSecurityContextOptions: + description: WindowsSecurityContextOptions contain Windows-specific options + and credentials. + example: + gmsaCredentialSpec: gmsaCredentialSpec + runAsUserName: runAsUserName + hostProcess: true + gmsaCredentialSpecName: gmsaCredentialSpecName + properties: + gmsaCredentialSpec: + description: 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. + type: string + gmsaCredentialSpecName: + description: GMSACredentialSpecName is the name of the GMSA credential spec + to use. + type: string + hostProcess: + description: 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. + type: boolean + runAsUserName: + description: 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. + type: string + type: object + v1.Endpoint: + description: Endpoint represents a single logical "backend" implementing a service. + example: + nodeName: nodeName + targetRef: + uid: uid + apiVersion: apiVersion + kind: kind + resourceVersion: resourceVersion + fieldPath: fieldPath + name: name + namespace: namespace + addresses: + - addresses + - addresses + hostname: hostname + zone: zone + hints: + forZones: + - name: name + - name: name + forNodes: + - name: name + - name: name + conditions: + ready: true + terminating: true + serving: true + deprecatedTopology: + key: deprecatedTopology + properties: + addresses: + description: addresses of this endpoint. For EndpointSlices of addressType + "IPv4" or "IPv6", the values are IP addresses in canonical form. The syntax + and semantics of other addressType values are not defined. This must contain + at least one address but no more than 100. EndpointSlices generated by + the EndpointSlice controller will always have exactly 1 address. No semantics + are defined for additional addresses beyond the first, and kube-proxy + does not look at them. + items: + type: string + type: array + x-kubernetes-list-type: set + conditions: + $ref: '#/components/schemas/v1.EndpointConditions' + deprecatedTopology: + additionalProperties: + type: string + description: 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. + type: object + hints: + $ref: '#/components/schemas/v1.EndpointHints' + hostname: + description: 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. + type: string + nodeName: + description: nodeName represents the name of the Node hosting this endpoint. + This can be used to determine endpoints local to a Node. + type: string + targetRef: + $ref: '#/components/schemas/v1.ObjectReference' + zone: + description: zone is the name of the Zone this endpoint exists in. + type: string + required: + - addresses + type: object + v1.EndpointConditions: + description: EndpointConditions represents the current condition of an endpoint. + example: + ready: true + terminating: true + serving: true + properties: + ready: + description: ready indicates that this endpoint is ready to receive traffic, + according to whatever system is managing the endpoint. A nil value should + be interpreted as "true". In general, an endpoint should be marked ready + if it is serving and not terminating, though this can be overridden in + some cases, such as when the associated Service has set the publishNotReadyAddresses + flag. + type: boolean + serving: + description: serving indicates that this endpoint is able to receive traffic, + according to whatever system is managing the endpoint. For endpoints backed + by pods, the EndpointSlice controller will mark the endpoint as serving + if the pod's Ready condition is True. A nil value should be interpreted + as "true". + type: boolean + terminating: + description: terminating indicates that this endpoint is terminating. A + nil value should be interpreted as "false". + type: boolean + type: object + v1.EndpointHints: + description: EndpointHints provides hints describing how an endpoint should + be consumed. + example: + forZones: + - name: name + - name: name + forNodes: + - name: name + - name: name + properties: + forNodes: + description: forNodes indicates the node(s) this endpoint should be consumed + by when using topology aware routing. May contain a maximum of 8 entries. + This is an Alpha feature and is only used when the PreferSameTrafficDistribution + feature gate is enabled. + items: + $ref: '#/components/schemas/v1.ForNode' + type: array + x-kubernetes-list-type: atomic + forZones: + description: forZones indicates the zone(s) this endpoint should be consumed + by when using topology aware routing. May contain a maximum of 8 entries. + items: + $ref: '#/components/schemas/v1.ForZone' + type: array + x-kubernetes-list-type: atomic + type: object + discovery.v1.EndpointPort: + description: EndpointPort represents a Port used by an EndpointSlice + example: + protocol: protocol + port: 0 + appProtocol: appProtocol + name: name + properties: + appProtocol: + description: |- + 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. + type: string + name: + description: '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.' + type: string + port: + description: port represents the port number of the endpoint. If the EndpointSlice + is derived from a Kubernetes service, this must be set to the service's + target port. EndpointSlices used for other purposes may have a nil port. + format: int32 + type: integer + protocol: + description: protocol represents the IP protocol for this port. Must be + UDP, TCP, or SCTP. Default is TCP. + type: string + type: object + x-kubernetes-map-type: atomic + v1.EndpointSlice: + description: EndpointSlice represents a set of service endpoints. Most EndpointSlices + are created by the EndpointSlice controller to represent the Pods selected + by Service objects. For a given service there may be multiple EndpointSlice + objects which must be joined to produce the full set of endpoints; you can + find all of the slices for a given service by listing EndpointSlices in the + service's namespace whose `kubernetes.io/service-name` label contains the + service's name. + example: + endpoints: + - nodeName: nodeName + targetRef: + uid: uid + apiVersion: apiVersion + kind: kind + resourceVersion: resourceVersion + fieldPath: fieldPath + name: name + namespace: namespace + addresses: + - addresses + - addresses + hostname: hostname + zone: zone + hints: + forZones: + - name: name + - name: name + forNodes: + - name: name + - name: name + conditions: + ready: true + terminating: true + serving: true + deprecatedTopology: + key: deprecatedTopology + - nodeName: nodeName + targetRef: + uid: uid + apiVersion: apiVersion + kind: kind + resourceVersion: resourceVersion + fieldPath: fieldPath + name: name + namespace: namespace + addresses: + - addresses + - addresses + hostname: hostname + zone: zone + hints: + forZones: + - name: name + - name: name + forNodes: + - name: name + - name: name + conditions: + ready: true + terminating: true + serving: true + deprecatedTopology: + key: deprecatedTopology + metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: '{}' + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: '{}' + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + creationTimestamp: 2000-01-23T04:56:07.000+00:00 + name: name + namespace: namespace + apiVersion: apiVersion + addressType: addressType + kind: kind + ports: + - protocol: protocol + port: 0 + appProtocol: appProtocol + name: name + - protocol: protocol + port: 0 + appProtocol: appProtocol + name: name + properties: + addressType: + description: '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. (Deprecated) + The EndpointSlice controller only generates, and kube-proxy only processes, + slices of addressType "IPv4" and "IPv6". No semantics are defined for + the "FQDN" type.' + type: string + apiVersion: + description: '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' + type: string + endpoints: + description: endpoints is a list of unique endpoints in this slice. Each + slice may include a maximum of 1000 endpoints. + items: + $ref: '#/components/schemas/v1.Endpoint' + type: array + x-kubernetes-list-type: atomic + kind: + description: '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' + type: string + metadata: + $ref: '#/components/schemas/v1.ObjectMeta' + ports: + description: ports specifies the list of network ports exposed by each endpoint + in this slice. Each port must have a unique name. Each slice may include + a maximum of 100 ports. Services always have at least 1 port, so EndpointSlices + generated by the EndpointSlice controller will likewise always have at + least 1 port. EndpointSlices used for other purposes may have an empty + ports list. + items: + $ref: '#/components/schemas/discovery.v1.EndpointPort' + type: array + x-kubernetes-list-type: atomic + required: + - addressType + - endpoints + type: object + x-kubernetes-group-version-kind: + - group: discovery.k8s.io + kind: EndpointSlice + version: v1 + x-implements: + - io.kubernetes.client.common.KubernetesObject + v1.EndpointSliceList: + description: EndpointSliceList represents a list of endpoint slices + example: + metadata: + remainingItemCount: 1 + continue: continue + resourceVersion: resourceVersion + selfLink: selfLink + apiVersion: apiVersion + kind: kind + items: + - endpoints: + - nodeName: nodeName + targetRef: + uid: uid + apiVersion: apiVersion + kind: kind + resourceVersion: resourceVersion + fieldPath: fieldPath name: name - nfs: - path: path - server: server - readOnly: true - persistentVolumeClaim: - claimName: claimName - readOnly: true - gitRepo: - repository: repository - directory: directory - revision: revision - portworxVolume: - volumeID: volumeID - readOnly: true - fsType: fsType - vsphereVolume: - storagePolicyName: storagePolicyName - storagePolicyID: storagePolicyID - volumePath: volumePath - fsType: fsType - fc: - lun: 1 - targetWWNs: - - targetWWNs - - targetWWNs - readOnly: true - wwids: - - wwids - - wwids - fsType: fsType - hostPath: - path: path - type: type - - quobyte: - volume: volume - registry: registry - readOnly: true - user: user - tenant: tenant - group: group - azureFile: - secretName: secretName - readOnly: true - shareName: shareName - flexVolume: - driver: driver - options: - key: options - secretRef: - name: name - readOnly: true - fsType: fsType - ephemeral: - volumeClaimTemplate: - metadata: - generation: 6 - finalizers: - - finalizers - - finalizers - resourceVersion: resourceVersion - annotations: - key: annotations - generateName: generateName - deletionTimestamp: 2000-01-23T04:56:07.000+00:00 - labels: - key: labels - ownerReferences: - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - selfLink: selfLink - deletionGracePeriodSeconds: 0 - uid: uid - managedFields: - - apiVersion: apiVersion - fieldsV1: '{}' - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - - apiVersion: apiVersion - fieldsV1: '{}' - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - creationTimestamp: 2000-01-23T04:56:07.000+00:00 - name: name - namespace: namespace - spec: - storageClassName: storageClassName - dataSourceRef: - apiGroup: apiGroup - kind: kind - name: name - namespace: namespace - volumeName: volumeName - resources: - claims: - - name: name - - name: name - requests: {} - limits: {} - selector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - accessModes: - - accessModes - - accessModes - dataSource: - apiGroup: apiGroup - kind: kind - name: name - volumeMode: volumeMode - secret: - secretName: secretName - defaultMode: 6 - optional: true - items: - - mode: 6 - path: path - key: key - - mode: 6 - path: path - key: key - projected: - sources: - - downwardAPI: - items: - - mode: 6 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - mode: 6 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - configMap: - name: name - optional: true - items: - - mode: 6 - path: path - key: key - - mode: 6 - path: path - key: key - secret: - name: name - optional: true - items: - - mode: 6 - path: path - key: key - - mode: 6 - path: path - key: key - serviceAccountToken: - path: path - audience: audience - expirationSeconds: 5 - - downwardAPI: - items: - - mode: 6 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - mode: 6 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - configMap: - name: name - optional: true - items: - - mode: 6 - path: path - key: key - - mode: 6 - path: path - key: key - secret: - name: name - optional: true - items: - - mode: 6 - path: path - key: key - - mode: 6 - path: path - key: key - serviceAccountToken: - path: path - audience: audience - expirationSeconds: 5 - defaultMode: 6 - cephfs: - path: path - secretRef: - name: name - secretFile: secretFile - readOnly: true - user: user - monitors: - - monitors - - monitors - scaleIO: - system: system - protectionDomain: protectionDomain - sslEnabled: true - storageMode: storageMode - volumeName: volumeName - secretRef: - name: name - readOnly: true - fsType: fsType - storagePool: storagePool - gateway: gateway - emptyDir: - sizeLimit: sizeLimit - medium: medium - glusterfs: - path: path - endpoints: endpoints - readOnly: true - gcePersistentDisk: - partition: 2 - readOnly: true - pdName: pdName - fsType: fsType - photonPersistentDisk: - pdID: pdID - fsType: fsType - azureDisk: - diskName: diskName - kind: kind - readOnly: true - cachingMode: cachingMode - diskURI: diskURI - fsType: fsType - cinder: - secretRef: - name: name - volumeID: volumeID - readOnly: true - fsType: fsType - downwardAPI: - defaultMode: 3 - items: - - mode: 6 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - mode: 6 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - awsElasticBlockStore: - partition: 8 - volumeID: volumeID - readOnly: true - fsType: fsType - flocker: - datasetName: datasetName - datasetUUID: datasetUUID - iscsi: - chapAuthSession: true - iscsiInterface: iscsiInterface - lun: 6 - chapAuthDiscovery: true - iqn: iqn - portals: - - portals - - portals - secretRef: - name: name - initiatorName: initiatorName - readOnly: true - fsType: fsType - targetPortal: targetPortal - rbd: - image: image - pool: pool - secretRef: - name: name - readOnly: true - fsType: fsType - keyring: keyring - user: user - monitors: - - monitors - - monitors - configMap: - defaultMode: 9 - name: name - optional: true - items: - - mode: 6 - path: path - key: key - - mode: 6 - path: path - key: key - storageos: - volumeNamespace: volumeNamespace - volumeName: volumeName - secretRef: - name: name - readOnly: true - fsType: fsType - csi: - driver: driver - nodePublishSecretRef: - name: name - readOnly: true - fsType: fsType - volumeAttributes: - key: volumeAttributes + namespace: namespace + addresses: + - addresses + - addresses + hostname: hostname + zone: zone + hints: + forZones: + - name: name + - name: name + forNodes: + - name: name + - name: name + conditions: + ready: true + terminating: true + serving: true + deprecatedTopology: + key: deprecatedTopology + - nodeName: nodeName + targetRef: + uid: uid + apiVersion: apiVersion + kind: kind + resourceVersion: resourceVersion + fieldPath: fieldPath name: name - nfs: - path: path - server: server - readOnly: true - persistentVolumeClaim: - claimName: claimName - readOnly: true - gitRepo: - repository: repository - directory: directory - revision: revision - portworxVolume: - volumeID: volumeID - readOnly: true - fsType: fsType - vsphereVolume: - storagePolicyName: storagePolicyName - storagePolicyID: storagePolicyID - volumePath: volumePath - fsType: fsType - fc: - lun: 1 - targetWWNs: - - targetWWNs - - targetWWNs - readOnly: true - wwids: - - wwids - - wwids - fsType: fsType - hostPath: - path: path - type: type - ephemeralContainers: - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name - stdin: true - terminationMessagePolicy: terminationMessagePolicy - securityContext: - privileged: true - runAsUser: 1 - capabilities: - add: - - add - - add - drop: - - drop - - drop - seLinuxOptions: - role: role - level: level - type: type - user: user - seccompProfile: - localhostProfile: localhostProfile - type: type - windowsOptions: - gmsaCredentialSpec: gmsaCredentialSpec - runAsUserName: runAsUserName - hostProcess: true - gmsaCredentialSpecName: gmsaCredentialSpecName - procMount: procMount - allowPrivilegeEscalation: true - runAsGroup: 1 - runAsNonRoot: true - readOnlyRootFilesystem: true - startupProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - ports: - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 4 - hostPort: 7 - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 4 - hostPort: 7 - volumeMounts: - - mountPath: mountPath - mountPropagation: mountPropagation - name: name - readOnly: true - subPath: subPath - subPathExpr: subPathExpr - - mountPath: mountPath - mountPropagation: mountPropagation - name: name - readOnly: true - subPath: subPath - subPathExpr: subPathExpr - lifecycle: - postStart: - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - preStop: - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - readinessProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - resizePolicy: - - resourceName: resourceName - restartPolicy: restartPolicy - - resourceName: resourceName - restartPolicy: restartPolicy - envFrom: - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - image: image - imagePullPolicy: imagePullPolicy - livenessProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - targetContainerName: targetContainerName - terminationMessagePath: terminationMessagePath - workingDir: workingDir - resources: - claims: - - name: name - - name: name - requests: {} - limits: {} - env: + namespace: namespace + addresses: + - addresses + - addresses + hostname: hostname + zone: zone + hints: + forZones: - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - restartPolicy: restartPolicy - command: - - command - - command - args: - - args - - args + forNodes: + - name: name + - name: name + conditions: + ready: true + terminating: true + serving: true + deprecatedTopology: + key: deprecatedTopology + metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: '{}' + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: '{}' + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + creationTimestamp: 2000-01-23T04:56:07.000+00:00 + name: name + namespace: namespace + apiVersion: apiVersion + addressType: addressType + kind: kind + ports: + - protocol: protocol + port: 0 + appProtocol: appProtocol + name: name + - protocol: protocol + port: 0 + appProtocol: appProtocol + name: name + - endpoints: + - nodeName: nodeName + targetRef: + uid: uid + apiVersion: apiVersion + kind: kind + resourceVersion: resourceVersion + fieldPath: fieldPath name: name - tty: true - stdinOnce: true - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name - stdin: true - terminationMessagePolicy: terminationMessagePolicy - securityContext: - privileged: true - runAsUser: 1 - capabilities: - add: - - add - - add - drop: - - drop - - drop - seLinuxOptions: - role: role - level: level - type: type - user: user - seccompProfile: - localhostProfile: localhostProfile - type: type - windowsOptions: - gmsaCredentialSpec: gmsaCredentialSpec - runAsUserName: runAsUserName - hostProcess: true - gmsaCredentialSpecName: gmsaCredentialSpecName - procMount: procMount - allowPrivilegeEscalation: true - runAsGroup: 1 - runAsNonRoot: true - readOnlyRootFilesystem: true - startupProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - ports: - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 4 - hostPort: 7 - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 4 - hostPort: 7 - volumeMounts: - - mountPath: mountPath - mountPropagation: mountPropagation - name: name - readOnly: true - subPath: subPath - subPathExpr: subPathExpr - - mountPath: mountPath - mountPropagation: mountPropagation - name: name - readOnly: true - subPath: subPath - subPathExpr: subPathExpr - lifecycle: - postStart: - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - preStop: - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - readinessProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - resizePolicy: - - resourceName: resourceName - restartPolicy: restartPolicy - - resourceName: resourceName - restartPolicy: restartPolicy - envFrom: - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - image: image - imagePullPolicy: imagePullPolicy - livenessProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - targetContainerName: targetContainerName - terminationMessagePath: terminationMessagePath - workingDir: workingDir - resources: - claims: - - name: name - - name: name - requests: {} - limits: {} - env: + namespace: namespace + addresses: + - addresses + - addresses + hostname: hostname + zone: zone + hints: + forZones: - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - restartPolicy: restartPolicy - command: - - command - - command - args: - - args - - args + forNodes: + - name: name + - name: name + conditions: + ready: true + terminating: true + serving: true + deprecatedTopology: + key: deprecatedTopology + - nodeName: nodeName + targetRef: + uid: uid + apiVersion: apiVersion + kind: kind + resourceVersion: resourceVersion + fieldPath: fieldPath name: name - tty: true - stdinOnce: true - serviceAccount: serviceAccount - priority: 1 - restartPolicy: restartPolicy - shareProcessNamespace: true - hostUsers: true - resourceClaims: - - name: name - source: - resourceClaimName: resourceClaimName - resourceClaimTemplateName: resourceClaimTemplateName - - name: name - source: - resourceClaimName: resourceClaimName - resourceClaimTemplateName: resourceClaimTemplateName - subdomain: subdomain - containers: - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name - image: image - imagePullPolicy: imagePullPolicy - livenessProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - stdin: true - terminationMessagePolicy: terminationMessagePolicy - terminationMessagePath: terminationMessagePath - workingDir: workingDir - resources: - claims: - - name: name - - name: name - requests: {} - limits: {} - securityContext: - privileged: true - runAsUser: 1 - capabilities: - add: - - add - - add - drop: - - drop - - drop - seLinuxOptions: - role: role - level: level - type: type - user: user - seccompProfile: - localhostProfile: localhostProfile - type: type - windowsOptions: - gmsaCredentialSpec: gmsaCredentialSpec - runAsUserName: runAsUserName - hostProcess: true - gmsaCredentialSpecName: gmsaCredentialSpecName - procMount: procMount - allowPrivilegeEscalation: true - runAsGroup: 1 - runAsNonRoot: true - readOnlyRootFilesystem: true - startupProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - env: + namespace: namespace + addresses: + - addresses + - addresses + hostname: hostname + zone: zone + hints: + forZones: - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - ports: - - protocol: protocol - hostIP: hostIP + forNodes: + - name: name + - name: name + conditions: + ready: true + terminating: true + serving: true + deprecatedTopology: + key: deprecatedTopology + metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: '{}' + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: '{}' + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + creationTimestamp: 2000-01-23T04:56:07.000+00:00 + name: name + namespace: namespace + apiVersion: apiVersion + addressType: addressType + kind: kind + ports: + - protocol: protocol + port: 0 + appProtocol: appProtocol + name: name + - protocol: protocol + port: 0 + appProtocol: appProtocol + name: name + properties: + apiVersion: + description: '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' + type: string + items: + description: items is the list of endpoint slices + items: + $ref: '#/components/schemas/v1.EndpointSlice' + type: array + kind: + description: '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' + type: string + metadata: + $ref: '#/components/schemas/v1.ListMeta' + required: + - items + type: object + x-kubernetes-group-version-kind: + - group: discovery.k8s.io + kind: EndpointSliceList + version: v1 + x-implements: + - io.kubernetes.client.common.KubernetesListObject + v1.ForNode: + description: ForNode provides information about which nodes should consume this + endpoint. + example: + name: name + properties: + name: + description: name represents the name of the node. + type: string + required: + - name + type: object + v1.ForZone: + description: ForZone provides information about which zones should consume this + endpoint. + example: + name: name + properties: + name: + description: name represents the name of the zone. + type: string + required: + - name + type: object + events.v1.Event: + 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. + example: + note: note + reason: reason + metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: '{}' + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: '{}' + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + creationTimestamp: 2000-01-23T04:56:07.000+00:00 + name: name + namespace: namespace + reportingInstance: reportingInstance + deprecatedCount: 0 + kind: kind + deprecatedSource: + component: component + host: host + type: type + deprecatedLastTimestamp: 2000-01-23T04:56:07.000+00:00 + regarding: + uid: uid + apiVersion: apiVersion + kind: kind + resourceVersion: resourceVersion + fieldPath: fieldPath + name: name + namespace: namespace + deprecatedFirstTimestamp: 2000-01-23T04:56:07.000+00:00 + apiVersion: apiVersion + reportingController: reportingController + related: + uid: uid + apiVersion: apiVersion + kind: kind + resourceVersion: resourceVersion + fieldPath: fieldPath + name: name + namespace: namespace + series: + count: 6 + lastObservedTime: 2000-01-23T04:56:07.000+00:00 + eventTime: 2000-01-23T04:56:07.000+00:00 + action: action + properties: + action: + description: 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. + type: string + apiVersion: + description: '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' + type: string + deprecatedCount: + description: deprecatedCount is the deprecated field assuring backward compatibility + with core.v1 Event type. + format: int32 + type: integer + deprecatedFirstTimestamp: + description: deprecatedFirstTimestamp is the deprecated field assuring backward + compatibility with core.v1 Event type. + format: date-time + type: string + deprecatedLastTimestamp: + description: deprecatedLastTimestamp is the deprecated field assuring backward + compatibility with core.v1 Event type. + format: date-time + type: string + deprecatedSource: + $ref: '#/components/schemas/v1.EventSource' + eventTime: + description: eventTime is the time when this Event was first observed. It + is required. + format: date-time + type: string + kind: + description: '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' + type: string + metadata: + $ref: '#/components/schemas/v1.ObjectMeta' + note: + description: 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. + type: string + reason: + description: 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. + type: string + regarding: + $ref: '#/components/schemas/v1.ObjectReference' + related: + $ref: '#/components/schemas/v1.ObjectReference' + reportingController: + description: reportingController is the name of the controller that emitted + this Event, e.g. `kubernetes.io/kubelet`. This field cannot be empty for + new Events. + type: string + reportingInstance: + description: 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. + type: string + series: + $ref: '#/components/schemas/events.v1.EventSeries' + type: + description: 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. + type: string + required: + - eventTime + type: object + x-kubernetes-group-version-kind: + - group: events.k8s.io + kind: Event + version: v1 + x-implements: + - io.kubernetes.client.common.KubernetesObject + events.v1.EventList: + description: EventList is a list of Event objects. + example: + metadata: + remainingItemCount: 1 + continue: continue + resourceVersion: resourceVersion + selfLink: selfLink + apiVersion: apiVersion + kind: kind + items: + - note: note + reason: reason + metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: '{}' + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: '{}' + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + creationTimestamp: 2000-01-23T04:56:07.000+00:00 + name: name + namespace: namespace + reportingInstance: reportingInstance + deprecatedCount: 0 + kind: kind + deprecatedSource: + component: component + host: host + type: type + deprecatedLastTimestamp: 2000-01-23T04:56:07.000+00:00 + regarding: + uid: uid + apiVersion: apiVersion + kind: kind + resourceVersion: resourceVersion + fieldPath: fieldPath + name: name + namespace: namespace + deprecatedFirstTimestamp: 2000-01-23T04:56:07.000+00:00 + apiVersion: apiVersion + reportingController: reportingController + related: + uid: uid + apiVersion: apiVersion + kind: kind + resourceVersion: resourceVersion + fieldPath: fieldPath + name: name + namespace: namespace + series: + count: 6 + lastObservedTime: 2000-01-23T04:56:07.000+00:00 + eventTime: 2000-01-23T04:56:07.000+00:00 + action: action + - note: note + reason: reason + metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: '{}' + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: '{}' + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + creationTimestamp: 2000-01-23T04:56:07.000+00:00 + name: name + namespace: namespace + reportingInstance: reportingInstance + deprecatedCount: 0 + kind: kind + deprecatedSource: + component: component + host: host + type: type + deprecatedLastTimestamp: 2000-01-23T04:56:07.000+00:00 + regarding: + uid: uid + apiVersion: apiVersion + kind: kind + resourceVersion: resourceVersion + fieldPath: fieldPath + name: name + namespace: namespace + deprecatedFirstTimestamp: 2000-01-23T04:56:07.000+00:00 + apiVersion: apiVersion + reportingController: reportingController + related: + uid: uid + apiVersion: apiVersion + kind: kind + resourceVersion: resourceVersion + fieldPath: fieldPath + name: name + namespace: namespace + series: + count: 6 + lastObservedTime: 2000-01-23T04:56:07.000+00:00 + eventTime: 2000-01-23T04:56:07.000+00:00 + action: action + properties: + apiVersion: + description: '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' + type: string + items: + description: items is a list of schema objects. + items: + $ref: '#/components/schemas/events.v1.Event' + type: array + kind: + description: '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' + type: string + metadata: + $ref: '#/components/schemas/v1.ListMeta' + required: + - items + type: object + x-kubernetes-group-version-kind: + - group: events.k8s.io + kind: EventList + version: v1 + x-implements: + - io.kubernetes.client.common.KubernetesListObject + events.v1.EventSeries: + 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. + example: + count: 6 + lastObservedTime: 2000-01-23T04:56:07.000+00:00 + properties: + count: + description: count is the number of occurrences in this series up to the + last heartbeat time. + format: int32 + type: integer + lastObservedTime: + description: lastObservedTime is the time when last Event from the series + was seen before last heartbeat. + format: date-time + type: string + required: + - count + - lastObservedTime + type: object + v1.ExemptPriorityLevelConfiguration: + 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`. + example: + lendablePercent: 0 + nominalConcurrencyShares: 6 + properties: + lendablePercent: + description: |- + `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 ) + format: int32 + type: integer + nominalConcurrencyShares: + description: |- + `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. + format: int32 + type: integer + type: object + v1.FlowDistinguisherMethod: + description: FlowDistinguisherMethod specifies the method of a flow distinguisher. + example: + type: type + properties: + type: + description: '`type` is the type of flow distinguisher method The supported + types are "ByUser" and "ByNamespace". Required.' + type: string + required: + - type + type: object + v1.FlowSchema: + 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".' + example: + metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: '{}' + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: '{}' + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + creationTimestamp: 2000-01-23T04:56:07.000+00:00 + name: name + namespace: namespace + apiVersion: apiVersion + kind: kind + spec: + priorityLevelConfiguration: + name: name + matchingPrecedence: 0 + rules: + - nonResourceRules: + - verbs: + - verbs + - verbs + nonResourceURLs: + - nonResourceURLs + - nonResourceURLs + - verbs: + - verbs + - verbs + nonResourceURLs: + - nonResourceURLs + - nonResourceURLs + resourceRules: + - clusterScope: true + resources: + - resources + - resources + verbs: + - verbs + - verbs + apiGroups: + - apiGroups + - apiGroups + namespaces: + - namespaces + - namespaces + - clusterScope: true + resources: + - resources + - resources + verbs: + - verbs + - verbs + apiGroups: + - apiGroups + - apiGroups + namespaces: + - namespaces + - namespaces + subjects: + - kind: kind + serviceAccount: name: name - containerPort: 4 - hostPort: 7 - - protocol: protocol - hostIP: hostIP + namespace: namespace + user: name: name - containerPort: 4 - hostPort: 7 - restartPolicy: restartPolicy - command: - - command - - command - volumeMounts: - - mountPath: mountPath - mountPropagation: mountPropagation + group: name: name - readOnly: true - subPath: subPath - subPathExpr: subPathExpr - - mountPath: mountPath - mountPropagation: mountPropagation + - kind: kind + serviceAccount: name: name - readOnly: true - subPath: subPath - subPathExpr: subPathExpr - args: - - args - - args - lifecycle: - postStart: - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - preStop: - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - name: name - tty: true - readinessProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - resizePolicy: - - resourceName: resourceName - restartPolicy: restartPolicy - - resourceName: resourceName - restartPolicy: restartPolicy - stdinOnce: true - envFrom: - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - - volumeDevices: - - devicePath: devicePath + namespace: namespace + user: name: name - - devicePath: devicePath + group: name: name - image: image - imagePullPolicy: imagePullPolicy - livenessProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - stdin: true - terminationMessagePolicy: terminationMessagePolicy - terminationMessagePath: terminationMessagePath - workingDir: workingDir + - nonResourceRules: + - verbs: + - verbs + - verbs + nonResourceURLs: + - nonResourceURLs + - nonResourceURLs + - verbs: + - verbs + - verbs + nonResourceURLs: + - nonResourceURLs + - nonResourceURLs + resourceRules: + - clusterScope: true resources: - claims: - - name: name - - name: name - requests: {} - limits: {} - securityContext: - privileged: true - runAsUser: 1 - capabilities: - add: - - add - - add - drop: - - drop - - drop - seLinuxOptions: - role: role - level: level - type: type - user: user - seccompProfile: - localhostProfile: localhostProfile - type: type - windowsOptions: - gmsaCredentialSpec: gmsaCredentialSpec - runAsUserName: runAsUserName - hostProcess: true - gmsaCredentialSpecName: gmsaCredentialSpecName - procMount: procMount - allowPrivilegeEscalation: true - runAsGroup: 1 - runAsNonRoot: true - readOnlyRootFilesystem: true - startupProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - env: - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - ports: - - protocol: protocol - hostIP: hostIP + - resources + - resources + verbs: + - verbs + - verbs + apiGroups: + - apiGroups + - apiGroups + namespaces: + - namespaces + - namespaces + - clusterScope: true + resources: + - resources + - resources + verbs: + - verbs + - verbs + apiGroups: + - apiGroups + - apiGroups + namespaces: + - namespaces + - namespaces + subjects: + - kind: kind + serviceAccount: name: name - containerPort: 4 - hostPort: 7 - - protocol: protocol - hostIP: hostIP + namespace: namespace + user: name: name - containerPort: 4 - hostPort: 7 - restartPolicy: restartPolicy - command: - - command - - command - volumeMounts: - - mountPath: mountPath - mountPropagation: mountPropagation + group: name: name - readOnly: true - subPath: subPath - subPathExpr: subPathExpr - - mountPath: mountPath - mountPropagation: mountPropagation + - kind: kind + serviceAccount: name: name - readOnly: true - subPath: subPath - subPathExpr: subPathExpr - args: - - args - - args - lifecycle: - postStart: - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - preStop: - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value + namespace: namespace + user: + name: name + group: + name: name + distinguisherMethod: + type: type + status: + conditions: + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + status: status + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + status: status + properties: + apiVersion: + description: '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' + type: string + kind: + description: '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' + type: string + metadata: + $ref: '#/components/schemas/v1.ObjectMeta' + spec: + $ref: '#/components/schemas/v1.FlowSchemaSpec' + status: + $ref: '#/components/schemas/v1.FlowSchemaStatus' + type: object + x-kubernetes-group-version-kind: + - group: flowcontrol.apiserver.k8s.io + kind: FlowSchema + version: v1 + x-implements: + - io.kubernetes.client.common.KubernetesObject + v1.FlowSchemaCondition: + description: FlowSchemaCondition describes conditions for a FlowSchema. + example: + reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + status: status + properties: + lastTransitionTime: + description: '`lastTransitionTime` is the last time the condition transitioned + from one status to another.' + format: date-time + type: string + message: + description: '`message` is a human-readable message indicating details about + last transition.' + type: string + reason: + description: '`reason` is a unique, one-word, CamelCase reason for the condition''s + last transition.' + type: string + status: + description: '`status` is the status of the condition. Can be True, False, + Unknown. Required.' + type: string + type: + description: '`type` is the type of the condition. Required.' + type: string + type: object + v1.FlowSchemaList: + description: FlowSchemaList is a list of FlowSchema objects. + example: + metadata: + remainingItemCount: 1 + continue: continue + resourceVersion: resourceVersion + selfLink: selfLink + apiVersion: apiVersion + kind: kind + items: + - metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind name: name - tty: true - readinessProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - resizePolicy: - - resourceName: resourceName - restartPolicy: restartPolicy - - resourceName: resourceName - restartPolicy: restartPolicy - stdinOnce: true - envFrom: - - configMapRef: + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: '{}' + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: '{}' + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + creationTimestamp: 2000-01-23T04:56:07.000+00:00 + name: name + namespace: namespace + apiVersion: apiVersion + kind: kind + spec: + priorityLevelConfiguration: + name: name + matchingPrecedence: 0 + rules: + - nonResourceRules: + - verbs: + - verbs + - verbs + nonResourceURLs: + - nonResourceURLs + - nonResourceURLs + - verbs: + - verbs + - verbs + nonResourceURLs: + - nonResourceURLs + - nonResourceURLs + resourceRules: + - clusterScope: true + resources: + - resources + - resources + verbs: + - verbs + - verbs + apiGroups: + - apiGroups + - apiGroups + namespaces: + - namespaces + - namespaces + - clusterScope: true + resources: + - resources + - resources + verbs: + - verbs + - verbs + apiGroups: + - apiGroups + - apiGroups + namespaces: + - namespaces + - namespaces + subjects: + - kind: kind + serviceAccount: name: name - optional: true - prefix: prefix - secretRef: + namespace: namespace + user: name: name - optional: true - - configMapRef: + group: name: name - optional: true - prefix: prefix - secretRef: + - kind: kind + serviceAccount: name: name - optional: true - initContainers: - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name - image: image - imagePullPolicy: imagePullPolicy - livenessProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - stdin: true - terminationMessagePolicy: terminationMessagePolicy - terminationMessagePath: terminationMessagePath - workingDir: workingDir - resources: - claims: - - name: name - - name: name - requests: {} - limits: {} - securityContext: - privileged: true - runAsUser: 1 - capabilities: - add: - - add - - add - drop: - - drop - - drop - seLinuxOptions: - role: role - level: level - type: type - user: user - seccompProfile: - localhostProfile: localhostProfile - type: type - windowsOptions: - gmsaCredentialSpec: gmsaCredentialSpec - runAsUserName: runAsUserName - hostProcess: true - gmsaCredentialSpecName: gmsaCredentialSpecName - procMount: procMount - allowPrivilegeEscalation: true - runAsGroup: 1 - runAsNonRoot: true - readOnlyRootFilesystem: true - startupProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - env: - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - ports: - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 4 - hostPort: 7 - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 4 - hostPort: 7 - restartPolicy: restartPolicy - command: - - command - - command - volumeMounts: - - mountPath: mountPath - mountPropagation: mountPropagation - name: name - readOnly: true - subPath: subPath - subPathExpr: subPathExpr - - mountPath: mountPath - mountPropagation: mountPropagation - name: name - readOnly: true - subPath: subPath - subPathExpr: subPathExpr - args: - - args - - args - lifecycle: - postStart: - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - preStop: - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value + namespace: namespace + user: + name: name + group: + name: name + - nonResourceRules: + - verbs: + - verbs + - verbs + nonResourceURLs: + - nonResourceURLs + - nonResourceURLs + - verbs: + - verbs + - verbs + nonResourceURLs: + - nonResourceURLs + - nonResourceURLs + resourceRules: + - clusterScope: true + resources: + - resources + - resources + verbs: + - verbs + - verbs + apiGroups: + - apiGroups + - apiGroups + namespaces: + - namespaces + - namespaces + - clusterScope: true + resources: + - resources + - resources + verbs: + - verbs + - verbs + apiGroups: + - apiGroups + - apiGroups + namespaces: + - namespaces + - namespaces + subjects: + - kind: kind + serviceAccount: + name: name + namespace: namespace + user: + name: name + group: + name: name + - kind: kind + serviceAccount: + name: name + namespace: namespace + user: + name: name + group: + name: name + distinguisherMethod: + type: type + status: + conditions: + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + status: status + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + status: status + - metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind name: name - tty: true - readinessProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - resizePolicy: - - resourceName: resourceName - restartPolicy: restartPolicy - - resourceName: resourceName - restartPolicy: restartPolicy - stdinOnce: true - envFrom: - - configMapRef: + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: '{}' + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: '{}' + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + creationTimestamp: 2000-01-23T04:56:07.000+00:00 + name: name + namespace: namespace + apiVersion: apiVersion + kind: kind + spec: + priorityLevelConfiguration: + name: name + matchingPrecedence: 0 + rules: + - nonResourceRules: + - verbs: + - verbs + - verbs + nonResourceURLs: + - nonResourceURLs + - nonResourceURLs + - verbs: + - verbs + - verbs + nonResourceURLs: + - nonResourceURLs + - nonResourceURLs + resourceRules: + - clusterScope: true + resources: + - resources + - resources + verbs: + - verbs + - verbs + apiGroups: + - apiGroups + - apiGroups + namespaces: + - namespaces + - namespaces + - clusterScope: true + resources: + - resources + - resources + verbs: + - verbs + - verbs + apiGroups: + - apiGroups + - apiGroups + namespaces: + - namespaces + - namespaces + subjects: + - kind: kind + serviceAccount: name: name - optional: true - prefix: prefix - secretRef: + namespace: namespace + user: name: name - optional: true - - configMapRef: + group: + name: name + - kind: kind + serviceAccount: + name: name + namespace: namespace + user: + name: name + group: + name: name + - nonResourceRules: + - verbs: + - verbs + - verbs + nonResourceURLs: + - nonResourceURLs + - nonResourceURLs + - verbs: + - verbs + - verbs + nonResourceURLs: + - nonResourceURLs + - nonResourceURLs + resourceRules: + - clusterScope: true + resources: + - resources + - resources + verbs: + - verbs + - verbs + apiGroups: + - apiGroups + - apiGroups + namespaces: + - namespaces + - namespaces + - clusterScope: true + resources: + - resources + - resources + verbs: + - verbs + - verbs + apiGroups: + - apiGroups + - apiGroups + namespaces: + - namespaces + - namespaces + subjects: + - kind: kind + serviceAccount: name: name - optional: true - prefix: prefix - secretRef: + namespace: namespace + user: name: name - optional: true - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name - image: image - imagePullPolicy: imagePullPolicy - livenessProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - stdin: true - terminationMessagePolicy: terminationMessagePolicy - terminationMessagePath: terminationMessagePath - workingDir: workingDir - resources: - claims: - - name: name - - name: name - requests: {} - limits: {} - securityContext: - privileged: true - runAsUser: 1 - capabilities: - add: - - add - - add - drop: - - drop - - drop - seLinuxOptions: - role: role - level: level - type: type - user: user - seccompProfile: - localhostProfile: localhostProfile - type: type - windowsOptions: - gmsaCredentialSpec: gmsaCredentialSpec - runAsUserName: runAsUserName - hostProcess: true - gmsaCredentialSpecName: gmsaCredentialSpecName - procMount: procMount - allowPrivilegeEscalation: true - runAsGroup: 1 - runAsNonRoot: true - readOnlyRootFilesystem: true - startupProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - env: - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - ports: - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 4 - hostPort: 7 - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 4 - hostPort: 7 - restartPolicy: restartPolicy - command: - - command - - command - volumeMounts: - - mountPath: mountPath - mountPropagation: mountPropagation - name: name - readOnly: true - subPath: subPath - subPathExpr: subPathExpr - - mountPath: mountPath - mountPropagation: mountPropagation - name: name - readOnly: true - subPath: subPath - subPathExpr: subPathExpr - args: - - args - - args - lifecycle: - postStart: - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - preStop: - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - name: name - tty: true - readinessProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - resizePolicy: - - resourceName: resourceName - restartPolicy: restartPolicy - - resourceName: resourceName - restartPolicy: restartPolicy - stdinOnce: true - envFrom: - - configMapRef: + group: name: name - optional: true - prefix: prefix - secretRef: + - kind: kind + serviceAccount: name: name - optional: true - - configMapRef: + namespace: namespace + user: name: name - optional: true - prefix: prefix - secretRef: + group: name: name - optional: true - affinity: - nodeAffinity: - requiredDuringSchedulingIgnoredDuringExecution: - nodeSelectorTerms: - - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchFields: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchFields: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - preferredDuringSchedulingIgnoredDuringExecution: - - preference: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchFields: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - weight: 6 - - preference: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchFields: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - weight: 6 - podAffinity: - requiredDuringSchedulingIgnoredDuringExecution: - - labelSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - topologyKey: topologyKey - namespaces: - - namespaces - - namespaces - - labelSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - topologyKey: topologyKey - namespaces: - - namespaces - - namespaces - preferredDuringSchedulingIgnoredDuringExecution: - - podAffinityTerm: - labelSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - topologyKey: topologyKey - namespaces: - - namespaces - - namespaces - weight: 1 - - podAffinityTerm: - labelSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - topologyKey: topologyKey - namespaces: - - namespaces - - namespaces - weight: 1 - podAntiAffinity: - requiredDuringSchedulingIgnoredDuringExecution: - - labelSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - topologyKey: topologyKey - namespaces: - - namespaces - - namespaces - - labelSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - topologyKey: topologyKey - namespaces: - - namespaces - - namespaces - preferredDuringSchedulingIgnoredDuringExecution: - - podAffinityTerm: - labelSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - topologyKey: topologyKey - namespaces: - - namespaces - - namespaces - weight: 1 - - podAffinityTerm: - labelSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - topologyKey: topologyKey - namespaces: - - namespaces - - namespaces - weight: 1 - hostPID: true - replicas: 6 - selector: - key: selector - minReadySeconds: 0 + distinguisherMethod: + type: type + status: + conditions: + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + status: status + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + status: status properties: - minReadySeconds: - description: 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) - format: int32 - type: integer - replicas: - description: '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' + apiVersion: + description: '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' + type: string + items: + description: '`items` is a list of FlowSchemas.' + items: + $ref: '#/components/schemas/v1.FlowSchema' + type: array + kind: + description: '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' + type: string + metadata: + $ref: '#/components/schemas/v1.ListMeta' + required: + - items + type: object + x-kubernetes-group-version-kind: + - group: flowcontrol.apiserver.k8s.io + kind: FlowSchemaList + version: v1 + x-implements: + - io.kubernetes.client.common.KubernetesListObject + v1.FlowSchemaSpec: + description: FlowSchemaSpec describes how the FlowSchema's specification looks + like. + example: + priorityLevelConfiguration: + name: name + matchingPrecedence: 0 + rules: + - nonResourceRules: + - verbs: + - verbs + - verbs + nonResourceURLs: + - nonResourceURLs + - nonResourceURLs + - verbs: + - verbs + - verbs + nonResourceURLs: + - nonResourceURLs + - nonResourceURLs + resourceRules: + - clusterScope: true + resources: + - resources + - resources + verbs: + - verbs + - verbs + apiGroups: + - apiGroups + - apiGroups + namespaces: + - namespaces + - namespaces + - clusterScope: true + resources: + - resources + - resources + verbs: + - verbs + - verbs + apiGroups: + - apiGroups + - apiGroups + namespaces: + - namespaces + - namespaces + subjects: + - kind: kind + serviceAccount: + name: name + namespace: namespace + user: + name: name + group: + name: name + - kind: kind + serviceAccount: + name: name + namespace: namespace + user: + name: name + group: + name: name + - nonResourceRules: + - verbs: + - verbs + - verbs + nonResourceURLs: + - nonResourceURLs + - nonResourceURLs + - verbs: + - verbs + - verbs + nonResourceURLs: + - nonResourceURLs + - nonResourceURLs + resourceRules: + - clusterScope: true + resources: + - resources + - resources + verbs: + - verbs + - verbs + apiGroups: + - apiGroups + - apiGroups + namespaces: + - namespaces + - namespaces + - clusterScope: true + resources: + - resources + - resources + verbs: + - verbs + - verbs + apiGroups: + - apiGroups + - apiGroups + namespaces: + - namespaces + - namespaces + subjects: + - kind: kind + serviceAccount: + name: name + namespace: namespace + user: + name: name + group: + name: name + - kind: kind + serviceAccount: + name: name + namespace: namespace + user: + name: name + group: + name: name + distinguisherMethod: + type: type + properties: + distinguisherMethod: + $ref: '#/components/schemas/v1.FlowDistinguisherMethod' + matchingPrecedence: + description: '`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.' format: int32 type: integer - selector: - additionalProperties: - type: string - description: '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' - type: object - x-kubernetes-map-type: atomic - template: - $ref: '#/components/schemas/v1.PodTemplateSpec' + priorityLevelConfiguration: + $ref: '#/components/schemas/v1.PriorityLevelConfigurationReference' + rules: + description: '`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.' + items: + $ref: '#/components/schemas/v1.PolicyRulesWithSubjects' + type: array + x-kubernetes-list-type: atomic + required: + - priorityLevelConfiguration type: object - v1.ReplicationControllerStatus: - description: ReplicationControllerStatus represents the current status of a - replication controller. + v1.FlowSchemaStatus: + description: FlowSchemaStatus represents the current state of a FlowSchema. example: - fullyLabeledReplicas: 5 - replicas: 7 - readyReplicas: 2 conditions: - reason: reason lastTransitionTime: 2000-01-23T04:56:07.000+00:00 @@ -199309,115 +238662,238 @@ components: message: message type: type status: status - availableReplicas: 1 - observedGeneration: 5 properties: - availableReplicas: - description: The number of available replicas (ready for at least minReadySeconds) - for this replication controller. + conditions: + description: '`conditions` is a list of the current states of FlowSchema.' + items: + $ref: '#/components/schemas/v1.FlowSchemaCondition' + type: array + x-kubernetes-patch-strategy: merge + x-kubernetes-list-type: map + x-kubernetes-list-map-keys: + - type + x-kubernetes-patch-merge-key: type + type: object + v1.GroupSubject: + description: GroupSubject holds detailed information for group-kind subject. + example: + name: name + properties: + name: + description: 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. + type: string + required: + - name + type: object + v1.LimitResponse: + description: LimitResponse defines how to handle requests that can not be executed + right now. + example: + queuing: + handSize: 5 + queues: 7 + queueLengthLimit: 2 + type: type + properties: + queuing: + $ref: '#/components/schemas/v1.QueuingConfiguration' + type: + description: '`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.' + type: string + required: + - type + type: object + x-kubernetes-unions: + - discriminator: type + fields-to-discriminateBy: + queuing: Queuing + v1.LimitedPriorityLevelConfiguration: + 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? + example: + lendablePercent: 5 + borrowingLimitPercent: 1 + limitResponse: + queuing: + handSize: 5 + queues: 7 + queueLengthLimit: 2 + type: type + nominalConcurrencyShares: 9 + properties: + borrowingLimitPercent: + description: |- + `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. format: int32 type: integer - conditions: - description: Represents the latest available observations of a replication - controller's current state. + lendablePercent: + description: |- + `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 ) + format: int32 + type: integer + limitResponse: + $ref: '#/components/schemas/v1.LimitResponse' + nominalConcurrencyShares: + description: |- + `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) + format: int32 + type: integer + type: object + v1.NonResourcePolicyRule: + 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. + example: + verbs: + - verbs + - verbs + nonResourceURLs: + - nonResourceURLs + - nonResourceURLs + properties: + nonResourceURLs: + description: |- + `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. + items: + type: string + type: array + x-kubernetes-list-type: set + verbs: + description: '`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.' + items: + type: string + type: array + x-kubernetes-list-type: set + required: + - nonResourceURLs + - verbs + type: object + v1.PolicyRulesWithSubjects: + 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. + example: + nonResourceRules: + - verbs: + - verbs + - verbs + nonResourceURLs: + - nonResourceURLs + - nonResourceURLs + - verbs: + - verbs + - verbs + nonResourceURLs: + - nonResourceURLs + - nonResourceURLs + resourceRules: + - clusterScope: true + resources: + - resources + - resources + verbs: + - verbs + - verbs + apiGroups: + - apiGroups + - apiGroups + namespaces: + - namespaces + - namespaces + - clusterScope: true + resources: + - resources + - resources + verbs: + - verbs + - verbs + apiGroups: + - apiGroups + - apiGroups + namespaces: + - namespaces + - namespaces + subjects: + - kind: kind + serviceAccount: + name: name + namespace: namespace + user: + name: name + group: + name: name + - kind: kind + serviceAccount: + name: name + namespace: namespace + user: + name: name + group: + name: name + properties: + nonResourceRules: + description: '`nonResourceRules` is a list of NonResourcePolicyRules that + identify matching requests according to their verb and the target non-resource + URL.' items: - $ref: '#/components/schemas/v1.ReplicationControllerCondition' + $ref: '#/components/schemas/v1.NonResourcePolicyRule' type: array - x-kubernetes-patch-strategy: merge - x-kubernetes-patch-merge-key: type - fullyLabeledReplicas: - description: The number of pods that have labels matching the labels of - the pod template of the replication controller. - format: int32 - type: integer - observedGeneration: - description: ObservedGeneration reflects the generation of the most recently - observed replication controller. - format: int64 - type: integer - readyReplicas: - description: The number of ready replicas for this replication controller. - format: int32 - type: integer - replicas: - description: 'Replicas is the most recently observed number of replicas. - More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#what-is-a-replicationcontroller' - format: int32 - type: integer - required: - - replicas - type: object - v1.ResourceClaim: - description: ResourceClaim references one entry in PodSpec.ResourceClaims. - example: - name: name - properties: - name: - description: 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. - type: string - required: - - name - type: object - v1.ResourceFieldSelector: - description: ResourceFieldSelector represents container resources (cpu, memory) - and their output format - example: - divisor: divisor - resource: resource - containerName: containerName - properties: - containerName: - description: 'Container name: required for volumes, optional for env vars' - type: string - divisor: - description: "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.\n\nThe serialization format is:\n\n\ - ``` ::= \n\n\t(Note that \ - \ may be empty, from the \"\" case in .)\n\n \ - \ ::= 0 | 1 | ... | 9 ::= | \ - \ ::= | . | . | .\ - \ ::= \"+\" | \"-\" ::= |\ - \ ::= | \ - \ | ::= Ki | Mi | Gi | Ti | Pi | Ei\n\n\t\ - (International System of units; See: http://physics.nist.gov/cuu/Units/binary.html)\n\ - \n ::= m | \"\" | k | M | G | T | P | E\n\n\t(Note that\ - \ 1024 = 1Ki but 1000 = 1k; I didn't choose the capitalization.)\n\n\ - \ ::= \"e\" | \"E\" ```\n\nNo 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.\n\nWhen 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.\n\nBefore 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:\n\n- No precision is lost - No fractional digits\ - \ will be emitted - The exponent (or suffix) is as large as possible.\n\ - \nThe sign will be omitted unless the number is negative.\n\nExamples:\n\ - \n- 1.5 will be serialized as \"1500m\" - 1.5Gi will be serialized as\ - \ \"1536Mi\"\n\nNote that the quantity will NEVER be internally represented\ - \ by a floating point number. That is the whole point of this exercise.\n\ - \nNon-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.)\n\nThis 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." - format: quantity - type: string - resource: - description: 'Required: resource to select' - type: string + x-kubernetes-list-type: atomic + resourceRules: + description: '`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.' + items: + $ref: '#/components/schemas/v1.ResourcePolicyRule' + type: array + x-kubernetes-list-type: atomic + subjects: + description: 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. + items: + $ref: '#/components/schemas/flowcontrol.v1.Subject' + type: array + x-kubernetes-list-type: atomic required: - - resource + - subjects type: object - x-kubernetes-map-type: atomic - v1.ResourceQuota: - description: ResourceQuota sets aggregate quota restrictions enforced per namespace + v1.PriorityLevelConfiguration: + description: PriorityLevelConfiguration represents the configuration of a priority + level. example: metadata: generation: 6 @@ -199468,25 +238944,32 @@ components: apiVersion: apiVersion kind: kind spec: - scopeSelector: - matchExpressions: - - scopeName: scopeName - values: - - values - - values - operator: operator - - scopeName: scopeName - values: - - values - - values - operator: operator - hard: {} - scopes: - - scopes - - scopes + limited: + lendablePercent: 5 + borrowingLimitPercent: 1 + limitResponse: + queuing: + handSize: 5 + queues: 7 + queueLengthLimit: 2 + type: type + nominalConcurrencyShares: 9 + exempt: + lendablePercent: 0 + nominalConcurrencyShares: 6 + type: type status: - hard: {} - used: {} + conditions: + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + status: status + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + status: status properties: apiVersion: description: 'APIVersion defines the versioned schema of this representation @@ -199501,18 +238984,50 @@ components: metadata: $ref: '#/components/schemas/v1.ObjectMeta' spec: - $ref: '#/components/schemas/v1.ResourceQuotaSpec' + $ref: '#/components/schemas/v1.PriorityLevelConfigurationSpec' status: - $ref: '#/components/schemas/v1.ResourceQuotaStatus' + $ref: '#/components/schemas/v1.PriorityLevelConfigurationStatus' type: object x-kubernetes-group-version-kind: - - group: "" - kind: ResourceQuota + - group: flowcontrol.apiserver.k8s.io + kind: PriorityLevelConfiguration version: v1 x-implements: - io.kubernetes.client.common.KubernetesObject - v1.ResourceQuotaList: - description: ResourceQuotaList is a list of ResourceQuota items. + v1.PriorityLevelConfigurationCondition: + description: PriorityLevelConfigurationCondition defines the condition of priority + level. + example: + reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + status: status + properties: + lastTransitionTime: + description: '`lastTransitionTime` is the last time the condition transitioned + from one status to another.' + format: date-time + type: string + message: + description: '`message` is a human-readable message indicating details about + last transition.' + type: string + reason: + description: '`reason` is a unique, one-word, CamelCase reason for the condition''s + last transition.' + type: string + status: + description: '`status` is the status of the condition. Can be True, False, + Unknown. Required.' + type: string + type: + description: '`type` is the type of the condition. Required.' + type: string + type: object + v1.PriorityLevelConfigurationList: + description: PriorityLevelConfigurationList is a list of PriorityLevelConfiguration + objects. example: metadata: remainingItemCount: 1 @@ -199571,25 +239086,32 @@ components: apiVersion: apiVersion kind: kind spec: - scopeSelector: - matchExpressions: - - scopeName: scopeName - values: - - values - - values - operator: operator - - scopeName: scopeName - values: - - values - - values - operator: operator - hard: {} - scopes: - - scopes - - scopes + limited: + lendablePercent: 5 + borrowingLimitPercent: 1 + limitResponse: + queuing: + handSize: 5 + queues: 7 + queueLengthLimit: 2 + type: type + nominalConcurrencyShares: 9 + exempt: + lendablePercent: 0 + nominalConcurrencyShares: 6 + type: type status: - hard: {} - used: {} + conditions: + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + status: status + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + status: status - metadata: generation: 6 finalizers: @@ -199639,25 +239161,32 @@ components: apiVersion: apiVersion kind: kind spec: - scopeSelector: - matchExpressions: - - scopeName: scopeName - values: - - values - - values - operator: operator - - scopeName: scopeName - values: - - values - - values - operator: operator - hard: {} - scopes: - - scopes - - scopes + limited: + lendablePercent: 5 + borrowingLimitPercent: 1 + limitResponse: + queuing: + handSize: 5 + queues: 7 + queueLengthLimit: 2 + type: type + nominalConcurrencyShares: 9 + exempt: + lendablePercent: 0 + nominalConcurrencyShares: 6 + type: type status: - hard: {} - used: {} + conditions: + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + status: status + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + status: status properties: apiVersion: description: 'APIVersion defines the versioned schema of this representation @@ -199665,9 +239194,9 @@ components: internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources' type: string items: - description: 'Items is a list of ResourceQuota objects. More info: https://kubernetes.io/docs/concepts/policy/resource-quotas/' + description: '`items` is a list of request-priorities.' items: - $ref: '#/components/schemas/v1.ResourceQuota' + $ref: '#/components/schemas/v1.PriorityLevelConfiguration' type: array kind: description: 'Kind is a string value representing the REST resource this @@ -199680,324 +239209,357 @@ components: - items type: object x-kubernetes-group-version-kind: - - group: "" - kind: ResourceQuotaList + - group: flowcontrol.apiserver.k8s.io + kind: PriorityLevelConfigurationList version: v1 x-implements: - io.kubernetes.client.common.KubernetesListObject - v1.ResourceQuotaSpec: - description: ResourceQuotaSpec defines the desired hard limits to enforce for - Quota. + v1.PriorityLevelConfigurationReference: + description: PriorityLevelConfigurationReference contains information that points + to the "request-priority" being used. example: - scopeSelector: - matchExpressions: - - scopeName: scopeName - values: - - values - - values - operator: operator - - scopeName: scopeName - values: - - values - - values - operator: operator - hard: {} - scopes: - - scopes - - scopes + name: name properties: - hard: - additionalProperties: - $ref: '#/components/schemas/resource.Quantity' - description: 'hard is the set of desired hard limits for each named resource. - More info: https://kubernetes.io/docs/concepts/policy/resource-quotas/' - type: object - scopeSelector: - $ref: '#/components/schemas/v1.ScopeSelector' - scopes: - description: A collection of filters that must match each object tracked - by a quota. If not specified, the quota matches all objects. - items: - type: string - type: array + name: + description: '`name` is the name of the priority level configuration being + referenced Required.' + type: string + required: + - name type: object - v1.ResourceQuotaStatus: - description: ResourceQuotaStatus defines the enforced hard limits and observed - use. + v1.PriorityLevelConfigurationSpec: + description: PriorityLevelConfigurationSpec specifies the configuration of a + priority level. example: - hard: {} - used: {} + limited: + lendablePercent: 5 + borrowingLimitPercent: 1 + limitResponse: + queuing: + handSize: 5 + queues: 7 + queueLengthLimit: 2 + type: type + nominalConcurrencyShares: 9 + exempt: + lendablePercent: 0 + nominalConcurrencyShares: 6 + type: type properties: - hard: - additionalProperties: - $ref: '#/components/schemas/resource.Quantity' - description: 'Hard is the set of enforced hard limits for each named resource. - More info: https://kubernetes.io/docs/concepts/policy/resource-quotas/' - type: object - used: - additionalProperties: - $ref: '#/components/schemas/resource.Quantity' - description: Used is the current observed total usage of the resource in - the namespace. - type: object + exempt: + $ref: '#/components/schemas/v1.ExemptPriorityLevelConfiguration' + limited: + $ref: '#/components/schemas/v1.LimitedPriorityLevelConfiguration' + type: + description: '`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.' + type: string + required: + - type type: object - v1.ResourceRequirements: - description: ResourceRequirements describes the compute resource requirements. + x-kubernetes-unions: + - discriminator: type + fields-to-discriminateBy: + exempt: Exempt + limited: Limited + v1.PriorityLevelConfigurationStatus: + description: PriorityLevelConfigurationStatus represents the current state of + a "request-priority". example: - claims: - - name: name - - name: name - requests: {} - limits: {} + conditions: + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + status: status + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + status: status properties: - claims: - description: |- - 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. + conditions: + description: '`conditions` is the current state of "request-priority".' items: - $ref: '#/components/schemas/v1.ResourceClaim' + $ref: '#/components/schemas/v1.PriorityLevelConfigurationCondition' type: array + x-kubernetes-patch-strategy: merge x-kubernetes-list-type: map x-kubernetes-list-map-keys: - - name - limits: - additionalProperties: - $ref: '#/components/schemas/resource.Quantity' - description: 'Limits describes the maximum amount of compute resources allowed. - More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/' - type: object - requests: - additionalProperties: - $ref: '#/components/schemas/resource.Quantity' - description: '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/' - type: object + - type + x-kubernetes-patch-merge-key: type type: object - v1.SELinuxOptions: - description: SELinuxOptions are the labels to be applied to the container + v1.QueuingConfiguration: + description: QueuingConfiguration holds the configuration parameters for queuing example: - role: role - level: level - type: type - user: user + handSize: 5 + queues: 7 + queueLengthLimit: 2 properties: - level: - description: Level is SELinux level label that applies to the container. - type: string - role: - description: Role is a SELinux role label that applies to the container. - type: string - type: - description: Type is a SELinux type label that applies to the container. - type: string - user: - description: User is a SELinux user label that applies to the container. - type: string + handSize: + description: '`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.' + format: int32 + type: integer + queueLengthLimit: + description: '`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.' + format: int32 + type: integer + queues: + description: '`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.' + format: int32 + type: integer type: object - v1.ScaleIOPersistentVolumeSource: - description: ScaleIOPersistentVolumeSource represents a persistent ScaleIO volume + v1.ResourcePolicyRule: + 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.' example: - system: system - protectionDomain: protectionDomain - sslEnabled: true - storageMode: storageMode - volumeName: volumeName - secretRef: - name: name - namespace: namespace - readOnly: true - fsType: fsType - storagePool: storagePool - gateway: gateway + clusterScope: true + resources: + - resources + - resources + verbs: + - verbs + - verbs + apiGroups: + - apiGroups + - apiGroups + namespaces: + - namespaces + - namespaces properties: - fsType: - description: 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" - type: string - gateway: - description: gateway is the host address of the ScaleIO API Gateway. - type: string - protectionDomain: - description: protectionDomain is the name of the ScaleIO Protection Domain - for the configured storage. - type: string - readOnly: - description: readOnly defaults to false (read/write). ReadOnly here will - force the ReadOnly setting in VolumeMounts. - type: boolean - secretRef: - $ref: '#/components/schemas/v1.SecretReference' - sslEnabled: - description: sslEnabled is the flag to enable/disable SSL communication - with Gateway, default false + apiGroups: + description: '`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.' + items: + type: string + type: array + x-kubernetes-list-type: set + clusterScope: + description: '`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.' type: boolean - storageMode: - description: storageMode indicates whether the storage for a volume should - be ThickProvisioned or ThinProvisioned. Default is ThinProvisioned. - type: string - storagePool: - description: storagePool is the ScaleIO Storage Pool associated with the - protection domain. - type: string - system: - description: system is the name of the storage system as configured in ScaleIO. - type: string - volumeName: - description: volumeName is the name of a volume already created in the ScaleIO - system that is associated with this volume source. - type: string + namespaces: + description: '`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.' + items: + type: string + type: array + x-kubernetes-list-type: set + resources: + description: '`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.' + items: + type: string + type: array + x-kubernetes-list-type: set + verbs: + description: '`verbs` is a list of matching verbs and may not be empty. + "*" matches all verbs and, if present, must be the only entry. Required.' + items: + type: string + type: array + x-kubernetes-list-type: set required: - - gateway - - secretRef - - system + - apiGroups + - resources + - verbs type: object - v1.ScaleIOVolumeSource: - description: ScaleIOVolumeSource represents a persistent ScaleIO volume + v1.ServiceAccountSubject: + description: ServiceAccountSubject holds detailed information for service-account-kind + subject. example: - system: system - protectionDomain: protectionDomain - sslEnabled: true - storageMode: storageMode - volumeName: volumeName - secretRef: - name: name - readOnly: true - fsType: fsType - storagePool: storagePool - gateway: gateway + name: name + namespace: namespace properties: - fsType: - description: 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". - type: string - gateway: - description: gateway is the host address of the ScaleIO API Gateway. - type: string - protectionDomain: - description: protectionDomain is the name of the ScaleIO Protection Domain - for the configured storage. - type: string - readOnly: - description: readOnly Defaults to false (read/write). ReadOnly here will - force the ReadOnly setting in VolumeMounts. - type: boolean - secretRef: - $ref: '#/components/schemas/v1.LocalObjectReference' - sslEnabled: - description: sslEnabled Flag enable/disable SSL communication with Gateway, - default false - type: boolean - storageMode: - description: storageMode indicates whether the storage for a volume should - be ThickProvisioned or ThinProvisioned. Default is ThinProvisioned. - type: string - storagePool: - description: storagePool is the ScaleIO Storage Pool associated with the - protection domain. - type: string - system: - description: system is the name of the storage system as configured in ScaleIO. + name: + description: '`name` is the name of matching ServiceAccount objects, or + "*" to match regardless of name. Required.' type: string - volumeName: - description: volumeName is the name of a volume already created in the ScaleIO - system that is associated with this volume source. + namespace: + description: '`namespace` is the namespace of matching ServiceAccount objects. + Required.' type: string required: - - gateway - - secretRef - - system + - name + - namespace type: object - v1.ScopeSelector: - description: A scope selector represents the AND of the selectors represented - by the scoped-resource selector requirements. + flowcontrol.v1.Subject: + 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. example: - matchExpressions: - - scopeName: scopeName - values: - - values - - values - operator: operator - - scopeName: scopeName - values: - - values - - values - operator: operator + kind: kind + serviceAccount: + name: name + namespace: namespace + user: + name: name + group: + name: name properties: - matchExpressions: - description: A list of scope selector requirements by scope of the resources. - items: - $ref: '#/components/schemas/v1.ScopedResourceSelectorRequirement' - type: array + group: + $ref: '#/components/schemas/v1.GroupSubject' + kind: + description: '`kind` indicates which one of the other fields is non-empty. + Required' + type: string + serviceAccount: + $ref: '#/components/schemas/v1.ServiceAccountSubject' + user: + $ref: '#/components/schemas/v1.UserSubject' + required: + - kind type: object - x-kubernetes-map-type: atomic - v1.ScopedResourceSelectorRequirement: - 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. + x-kubernetes-unions: + - discriminator: kind + fields-to-discriminateBy: + group: Group + serviceAccount: ServiceAccount + user: User + v1.UserSubject: + description: UserSubject holds detailed information for user-kind subject. example: - scopeName: scopeName - values: - - values - - values - operator: operator + name: name properties: - operator: - description: Represents a scope's relationship to a set of values. Valid - operators are In, NotIn, Exists, DoesNotExist. - type: string - scopeName: - description: The name of the scope that the selector applies to. + name: + description: '`name` is the username that matches, or "*" to match all usernames. + Required.' type: string - values: - description: 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. - items: - type: string - type: array required: - - operator - - scopeName + - name type: object - v1.SeccompProfile: - description: SeccompProfile defines a pod/container's seccomp profile settings. - Only one profile source may be set. + v1.HTTPIngressPath: + description: HTTPIngressPath associates a path with a backend. Incoming urls + matching the path are forwarded to the backend. example: - localhostProfile: localhostProfile - type: type + path: path + backend: + resource: + apiGroup: apiGroup + kind: kind + name: name + service: + port: + number: 0 + name: name + name: name + pathType: pathType properties: - localhostProfile: - description: 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. + backend: + $ref: '#/components/schemas/v1.IngressBackend' + path: + description: 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". type: string - type: + pathType: description: |- - 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. + 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. type: string required: - - type + - backend + - pathType type: object - x-kubernetes-unions: - - discriminator: type - fields-to-discriminateBy: - localhostProfile: LocalhostProfile - v1.Secret: - 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. + v1.HTTPIngressRuleValue: + 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 ''#''.' + example: + paths: + - path: path + backend: + resource: + apiGroup: apiGroup + kind: kind + name: name + service: + port: + number: 0 + name: name + name: name + pathType: pathType + - path: path + backend: + resource: + apiGroup: apiGroup + kind: kind + name: name + service: + port: + number: 0 + name: name + name: name + pathType: pathType + properties: + paths: + description: paths is a collection of paths that map requests to backends. + items: + $ref: '#/components/schemas/v1.HTTPIngressPath' + type: array + x-kubernetes-list-type: atomic + required: + - paths + type: object + v1.IPAddress: + 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' example: - immutable: true metadata: generation: 6 finalizers: @@ -200045,33 +239607,19 @@ components: name: name namespace: namespace apiVersion: apiVersion - data: - key: data kind: kind - type: type - stringData: - key: stringData + spec: + parentRef: + resource: resource + name: name + namespace: namespace + group: group properties: apiVersion: description: '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' type: string - data: - additionalProperties: - format: byte - pattern: ^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$ - type: string - description: 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 - type: object - immutable: - description: 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. - type: boolean kind: description: 'Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client @@ -200079,65 +239627,17 @@ components: type: string metadata: $ref: '#/components/schemas/v1.ObjectMeta' - stringData: - additionalProperties: - type: string - description: 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. - type: object - type: - description: 'Used to facilitate programmatic handling of secret data. More - info: https://kubernetes.io/docs/concepts/configuration/secret/#secret-types' - type: string + spec: + $ref: '#/components/schemas/v1.IPAddressSpec' type: object x-kubernetes-group-version-kind: - - group: "" - kind: Secret + - group: networking.k8s.io + kind: IPAddress version: v1 x-implements: - io.kubernetes.client.common.KubernetesObject - v1.SecretEnvSource: - 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. - example: - name: name - optional: true - properties: - name: - description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names' - type: string - optional: - description: Specify whether the Secret must be defined - type: boolean - type: object - v1.SecretKeySelector: - description: SecretKeySelector selects a key of a Secret. - example: - name: name - optional: true - key: key - properties: - key: - description: The key of the secret to select from. Must be a valid secret - key. - type: string - name: - description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names' - type: string - optional: - description: Specify whether the Secret or its key must be defined - type: boolean - required: - - key - type: object - x-kubernetes-map-type: atomic - v1.SecretList: - description: SecretList is a list of Secret. + v1.IPAddressList: + description: IPAddressList contains a list of IPAddress. example: metadata: remainingItemCount: 1 @@ -200147,8 +239647,7 @@ components: apiVersion: apiVersion kind: kind items: - - immutable: true - metadata: + - metadata: generation: 6 finalizers: - finalizers @@ -200195,14 +239694,14 @@ components: name: name namespace: namespace apiVersion: apiVersion - data: - key: data kind: kind - type: type - stringData: - key: stringData - - immutable: true - metadata: + spec: + parentRef: + resource: resource + name: name + namespace: namespace + group: group + - metadata: generation: 6 finalizers: - finalizers @@ -200249,231 +239748,84 @@ components: name: name namespace: namespace apiVersion: apiVersion - data: - key: data kind: kind - type: type - stringData: - key: stringData - properties: - apiVersion: - description: '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' - type: string - items: - description: 'Items is a list of secret objects. More info: https://kubernetes.io/docs/concepts/configuration/secret' - items: - $ref: '#/components/schemas/v1.Secret' - type: array - kind: - description: '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' - type: string - metadata: - $ref: '#/components/schemas/v1.ListMeta' - required: - - items - type: object - x-kubernetes-group-version-kind: - - group: "" - kind: SecretList - version: v1 - x-implements: - - io.kubernetes.client.common.KubernetesListObject - v1.SecretProjection: - 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. - example: - name: name - optional: true - items: - - mode: 6 - path: path - key: key - - mode: 6 - path: path - key: key - properties: - items: - description: 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 '..'. - items: - $ref: '#/components/schemas/v1.KeyToPath' - type: array - name: - description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names' - type: string - optional: - description: optional field specify whether the Secret or its key must be - defined - type: boolean - type: object - v1.SecretReference: - description: SecretReference represents a Secret Reference. It has enough information - to retrieve secret in any namespace - example: - name: name - namespace: namespace + spec: + parentRef: + resource: resource + name: name + namespace: namespace + group: group properties: - name: - description: name is unique within a namespace to reference a secret resource. - type: string - namespace: - description: namespace defines the space within which the secret name must - be unique. + apiVersion: + description: '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' type: string - type: object - x-kubernetes-map-type: atomic - v1.SecretVolumeSource: - 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. - example: - secretName: secretName - defaultMode: 6 - optional: true - items: - - mode: 6 - path: path - key: key - - mode: 6 - path: path - key: key - properties: - defaultMode: - description: '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.' - format: int32 - type: integer items: - description: 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 '..'. + description: items is the list of IPAddresses. items: - $ref: '#/components/schemas/v1.KeyToPath' + $ref: '#/components/schemas/v1.IPAddress' type: array - optional: - description: optional field specify whether the Secret or its keys must - be defined - type: boolean - secretName: - description: 'secretName is the name of the secret in the pod''s namespace - to use. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret' + kind: + description: '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' type: string + metadata: + $ref: '#/components/schemas/v1.ListMeta' + required: + - items type: object - v1.SecurityContext: - 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. + x-kubernetes-group-version-kind: + - group: networking.k8s.io + kind: IPAddressList + version: v1 + x-implements: + - io.kubernetes.client.common.KubernetesListObject + v1.IPAddressSpec: + description: IPAddressSpec describe the attributes in an IP Address. example: - privileged: true - runAsUser: 1 - capabilities: - add: - - add - - add - drop: - - drop - - drop - seLinuxOptions: - role: role - level: level - type: type - user: user - seccompProfile: - localhostProfile: localhostProfile - type: type - windowsOptions: - gmsaCredentialSpec: gmsaCredentialSpec - runAsUserName: runAsUserName - hostProcess: true - gmsaCredentialSpecName: gmsaCredentialSpecName - procMount: procMount - allowPrivilegeEscalation: true - runAsGroup: 1 - runAsNonRoot: true - readOnlyRootFilesystem: true + parentRef: + resource: resource + name: name + namespace: namespace + group: group properties: - allowPrivilegeEscalation: - description: '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.' - type: boolean - capabilities: - $ref: '#/components/schemas/v1.Capabilities' - privileged: - description: 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. - type: boolean - procMount: - description: procMount denotes the type of proc mount to use for the containers. - The default is DefaultProcMount 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. + parentRef: + $ref: '#/components/schemas/v1.ParentReference' + required: + - parentRef + type: object + v1.IPBlock: + 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. + example: + cidr: cidr + except: + - except + - except + properties: + cidr: + description: cidr is a string representing the IPBlock Valid examples are + "192.168.1.0/24" or "2001:db8::/64" type: string - readOnlyRootFilesystem: - description: 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. - type: boolean - runAsGroup: - description: 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. - format: int64 - type: integer - runAsNonRoot: - description: 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. - type: boolean - runAsUser: - description: 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. - format: int64 - type: integer - seLinuxOptions: - $ref: '#/components/schemas/v1.SELinuxOptions' - seccompProfile: - $ref: '#/components/schemas/v1.SeccompProfile' - windowsOptions: - $ref: '#/components/schemas/v1.WindowsSecurityContextOptions' + except: + description: 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 + items: + type: string + type: array + x-kubernetes-list-type: atomic + required: + - cidr type: object - v1.Service: - 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. + v1.Ingress: + 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. example: metadata: generation: 6 @@ -200524,48 +239876,81 @@ components: apiVersion: apiVersion kind: kind spec: - clusterIPs: - - clusterIPs - - clusterIPs - healthCheckNodePort: 0 - ipFamilyPolicy: ipFamilyPolicy - externalIPs: - - externalIPs - - externalIPs - sessionAffinity: sessionAffinity - allocateLoadBalancerNodePorts: true - ports: - - protocol: protocol - port: 1 - appProtocol: appProtocol - name: name - nodePort: 6 - targetPort: targetPort - - protocol: protocol - port: 1 - appProtocol: appProtocol - name: name - nodePort: 6 - targetPort: targetPort - type: type - loadBalancerClass: loadBalancerClass - sessionAffinityConfig: - clientIP: - timeoutSeconds: 5 - ipFamilies: - - ipFamilies - - ipFamilies - loadBalancerIP: loadBalancerIP - externalName: externalName - loadBalancerSourceRanges: - - loadBalancerSourceRanges - - loadBalancerSourceRanges - externalTrafficPolicy: externalTrafficPolicy - selector: - key: selector - publishNotReadyAddresses: true - internalTrafficPolicy: internalTrafficPolicy - clusterIP: clusterIP + defaultBackend: + resource: + apiGroup: apiGroup + kind: kind + name: name + service: + port: + number: 0 + name: name + name: name + ingressClassName: ingressClassName + rules: + - host: host + http: + paths: + - path: path + backend: + resource: + apiGroup: apiGroup + kind: kind + name: name + service: + port: + number: 0 + name: name + name: name + pathType: pathType + - path: path + backend: + resource: + apiGroup: apiGroup + kind: kind + name: name + service: + port: + number: 0 + name: name + name: name + pathType: pathType + - host: host + http: + paths: + - path: path + backend: + resource: + apiGroup: apiGroup + kind: kind + name: name + service: + port: + number: 0 + name: name + name: name + pathType: pathType + - path: path + backend: + resource: + apiGroup: apiGroup + kind: kind + name: name + service: + port: + number: 0 + name: name + name: name + pathType: pathType + tls: + - secretName: secretName + hosts: + - hosts + - hosts + - secretName: secretName + hosts: + - hosts + - hosts status: loadBalancer: ingress: @@ -200573,33 +239958,20 @@ components: ip: ip ports: - protocol: protocol - port: 2 + port: 6 error: error - protocol: protocol - port: 2 + port: 6 error: error - hostname: hostname ip: ip ports: - protocol: protocol - port: 2 + port: 6 error: error - protocol: protocol - port: 2 + port: 6 error: error - conditions: - - reason: reason - lastTransitionTime: 2000-01-23T04:56:07.000+00:00 - message: message - type: type - observedGeneration: 5 - status: status - - reason: reason - lastTransitionTime: 2000-01-23T04:56:07.000+00:00 - message: message - type: type - observedGeneration: 5 - status: status properties: apiVersion: description: 'APIVersion defines the versioned schema of this representation @@ -200614,20 +239986,41 @@ components: metadata: $ref: '#/components/schemas/v1.ObjectMeta' spec: - $ref: '#/components/schemas/v1.ServiceSpec' + $ref: '#/components/schemas/v1.IngressSpec' status: - $ref: '#/components/schemas/v1.ServiceStatus' + $ref: '#/components/schemas/v1.IngressStatus' type: object x-kubernetes-group-version-kind: - - group: "" - kind: Service + - group: networking.k8s.io + kind: Ingress version: v1 x-implements: - io.kubernetes.client.common.KubernetesObject - v1.ServiceAccount: - 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' + v1.IngressBackend: + description: IngressBackend describes all endpoints for a given service and + port. + example: + resource: + apiGroup: apiGroup + kind: kind + name: name + service: + port: + number: 0 + name: name + name: name + properties: + resource: + $ref: '#/components/schemas/v1.TypedLocalObjectReference' + service: + $ref: '#/components/schemas/v1.IngressServiceBackend' + type: object + v1.IngressClass: + 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. example: metadata: generation: 6 @@ -200676,46 +240069,21 @@ components: name: name namespace: namespace apiVersion: apiVersion - automountServiceAccountToken: true kind: kind - imagePullSecrets: - - name: name - - name: name - secrets: - - uid: uid - apiVersion: apiVersion - kind: kind - resourceVersion: resourceVersion - fieldPath: fieldPath - name: name - namespace: namespace - - uid: uid - apiVersion: apiVersion - kind: kind - resourceVersion: resourceVersion - fieldPath: fieldPath - name: name - namespace: namespace + spec: + controller: controller + parameters: + apiGroup: apiGroup + kind: kind + scope: scope + name: name + namespace: namespace properties: apiVersion: description: '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' type: string - automountServiceAccountToken: - description: AutomountServiceAccountToken indicates whether pods running - as this service account should have an API token automatically mounted. - Can be overridden at the pod level. - type: boolean - imagePullSecrets: - description: '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' - items: - $ref: '#/components/schemas/v1.LocalObjectReference' - type: array kind: description: 'Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client @@ -200723,28 +240091,17 @@ components: type: string metadata: $ref: '#/components/schemas/v1.ObjectMeta' - secrets: - description: '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' - items: - $ref: '#/components/schemas/v1.ObjectReference' - type: array - x-kubernetes-patch-strategy: merge - x-kubernetes-patch-merge-key: name + spec: + $ref: '#/components/schemas/v1.IngressClassSpec' type: object x-kubernetes-group-version-kind: - - group: "" - kind: ServiceAccount + - group: networking.k8s.io + kind: IngressClass version: v1 x-implements: - io.kubernetes.client.common.KubernetesObject - v1.ServiceAccountList: - description: ServiceAccountList is a list of ServiceAccount objects + v1.IngressClassList: + description: IngressClassList is a collection of IngressClasses. example: metadata: remainingItemCount: 1 @@ -200801,26 +240158,15 @@ components: name: name namespace: namespace apiVersion: apiVersion - automountServiceAccountToken: true kind: kind - imagePullSecrets: - - name: name - - name: name - secrets: - - uid: uid - apiVersion: apiVersion - kind: kind - resourceVersion: resourceVersion - fieldPath: fieldPath - name: name - namespace: namespace - - uid: uid - apiVersion: apiVersion - kind: kind - resourceVersion: resourceVersion - fieldPath: fieldPath - name: name - namespace: namespace + spec: + controller: controller + parameters: + apiGroup: apiGroup + kind: kind + scope: scope + name: name + namespace: namespace - metadata: generation: 6 finalizers: @@ -200868,26 +240214,15 @@ components: name: name namespace: namespace apiVersion: apiVersion - automountServiceAccountToken: true kind: kind - imagePullSecrets: - - name: name - - name: name - secrets: - - uid: uid - apiVersion: apiVersion - kind: kind - resourceVersion: resourceVersion - fieldPath: fieldPath - name: name - namespace: namespace - - uid: uid - apiVersion: apiVersion - kind: kind - resourceVersion: resourceVersion - fieldPath: fieldPath - name: name - namespace: namespace + spec: + controller: controller + parameters: + apiGroup: apiGroup + kind: kind + scope: scope + name: name + namespace: namespace properties: apiVersion: description: 'APIVersion defines the versioned schema of this representation @@ -200895,9 +240230,9 @@ components: internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources' type: string items: - description: 'List of ServiceAccounts. More info: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/' + description: items is the list of IngressClasses. items: - $ref: '#/components/schemas/v1.ServiceAccount' + $ref: '#/components/schemas/v1.IngressClass' type: array kind: description: 'Kind is a string value representing the REST resource this @@ -200910,45 +240245,69 @@ components: - items type: object x-kubernetes-group-version-kind: - - group: "" - kind: ServiceAccountList + - group: networking.k8s.io + kind: IngressClassList version: v1 x-implements: - io.kubernetes.client.common.KubernetesListObject - v1.ServiceAccountTokenProjection: - 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). + v1.IngressClassParametersReference: + description: IngressClassParametersReference identifies an API object. This + can be used to specify a cluster or namespace-scoped resource. example: - path: path - audience: audience - expirationSeconds: 5 + apiGroup: apiGroup + kind: kind + scope: scope + name: name + namespace: namespace properties: - audience: - description: 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. + apiGroup: + description: 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. type: string - expirationSeconds: - description: 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. - format: int64 - type: integer - path: - description: path is the path relative to the mount point of the file to - project the token into. + kind: + description: kind is the type of resource being referenced. + type: string + name: + description: name is the name of resource being referenced. + type: string + namespace: + description: 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". + type: string + scope: + description: scope represents if this refers to a cluster or namespace scoped + resource. This may be set to "Cluster" (default) or "Namespace". type: string required: - - path + - kind + - name type: object - v1.ServiceList: - description: ServiceList holds a list of services. + v1.IngressClassSpec: + description: IngressClassSpec provides information about the class of an Ingress. + example: + controller: controller + parameters: + apiGroup: apiGroup + kind: kind + scope: scope + name: name + namespace: namespace + properties: + controller: + description: 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. + type: string + parameters: + $ref: '#/components/schemas/v1.IngressClassParametersReference' + type: object + v1.IngressList: + description: IngressList is a collection of Ingress. example: metadata: remainingItemCount: 1 @@ -201007,48 +240366,81 @@ components: apiVersion: apiVersion kind: kind spec: - clusterIPs: - - clusterIPs - - clusterIPs - healthCheckNodePort: 0 - ipFamilyPolicy: ipFamilyPolicy - externalIPs: - - externalIPs - - externalIPs - sessionAffinity: sessionAffinity - allocateLoadBalancerNodePorts: true - ports: - - protocol: protocol - port: 1 - appProtocol: appProtocol - name: name - nodePort: 6 - targetPort: targetPort - - protocol: protocol - port: 1 - appProtocol: appProtocol - name: name - nodePort: 6 - targetPort: targetPort - type: type - loadBalancerClass: loadBalancerClass - sessionAffinityConfig: - clientIP: - timeoutSeconds: 5 - ipFamilies: - - ipFamilies - - ipFamilies - loadBalancerIP: loadBalancerIP - externalName: externalName - loadBalancerSourceRanges: - - loadBalancerSourceRanges - - loadBalancerSourceRanges - externalTrafficPolicy: externalTrafficPolicy - selector: - key: selector - publishNotReadyAddresses: true - internalTrafficPolicy: internalTrafficPolicy - clusterIP: clusterIP + defaultBackend: + resource: + apiGroup: apiGroup + kind: kind + name: name + service: + port: + number: 0 + name: name + name: name + ingressClassName: ingressClassName + rules: + - host: host + http: + paths: + - path: path + backend: + resource: + apiGroup: apiGroup + kind: kind + name: name + service: + port: + number: 0 + name: name + name: name + pathType: pathType + - path: path + backend: + resource: + apiGroup: apiGroup + kind: kind + name: name + service: + port: + number: 0 + name: name + name: name + pathType: pathType + - host: host + http: + paths: + - path: path + backend: + resource: + apiGroup: apiGroup + kind: kind + name: name + service: + port: + number: 0 + name: name + name: name + pathType: pathType + - path: path + backend: + resource: + apiGroup: apiGroup + kind: kind + name: name + service: + port: + number: 0 + name: name + name: name + pathType: pathType + tls: + - secretName: secretName + hosts: + - hosts + - hosts + - secretName: secretName + hosts: + - hosts + - hosts status: loadBalancer: ingress: @@ -201056,33 +240448,20 @@ components: ip: ip ports: - protocol: protocol - port: 2 + port: 6 error: error - protocol: protocol - port: 2 + port: 6 error: error - hostname: hostname ip: ip ports: - protocol: protocol - port: 2 + port: 6 error: error - protocol: protocol - port: 2 + port: 6 error: error - conditions: - - reason: reason - lastTransitionTime: 2000-01-23T04:56:07.000+00:00 - message: message - type: type - observedGeneration: 5 - status: status - - reason: reason - lastTransitionTime: 2000-01-23T04:56:07.000+00:00 - message: message - type: type - observedGeneration: 5 - status: status - metadata: generation: 6 finalizers: @@ -201132,48 +240511,81 @@ components: apiVersion: apiVersion kind: kind spec: - clusterIPs: - - clusterIPs - - clusterIPs - healthCheckNodePort: 0 - ipFamilyPolicy: ipFamilyPolicy - externalIPs: - - externalIPs - - externalIPs - sessionAffinity: sessionAffinity - allocateLoadBalancerNodePorts: true - ports: - - protocol: protocol - port: 1 - appProtocol: appProtocol - name: name - nodePort: 6 - targetPort: targetPort - - protocol: protocol - port: 1 - appProtocol: appProtocol - name: name - nodePort: 6 - targetPort: targetPort - type: type - loadBalancerClass: loadBalancerClass - sessionAffinityConfig: - clientIP: - timeoutSeconds: 5 - ipFamilies: - - ipFamilies - - ipFamilies - loadBalancerIP: loadBalancerIP - externalName: externalName - loadBalancerSourceRanges: - - loadBalancerSourceRanges - - loadBalancerSourceRanges - externalTrafficPolicy: externalTrafficPolicy - selector: - key: selector - publishNotReadyAddresses: true - internalTrafficPolicy: internalTrafficPolicy - clusterIP: clusterIP + defaultBackend: + resource: + apiGroup: apiGroup + kind: kind + name: name + service: + port: + number: 0 + name: name + name: name + ingressClassName: ingressClassName + rules: + - host: host + http: + paths: + - path: path + backend: + resource: + apiGroup: apiGroup + kind: kind + name: name + service: + port: + number: 0 + name: name + name: name + pathType: pathType + - path: path + backend: + resource: + apiGroup: apiGroup + kind: kind + name: name + service: + port: + number: 0 + name: name + name: name + pathType: pathType + - host: host + http: + paths: + - path: path + backend: + resource: + apiGroup: apiGroup + kind: kind + name: name + service: + port: + number: 0 + name: name + name: name + pathType: pathType + - path: path + backend: + resource: + apiGroup: apiGroup + kind: kind + name: name + service: + port: + number: 0 + name: name + name: name + pathType: pathType + tls: + - secretName: secretName + hosts: + - hosts + - hosts + - secretName: secretName + hosts: + - hosts + - hosts status: loadBalancer: ingress: @@ -201181,33 +240593,20 @@ components: ip: ip ports: - protocol: protocol - port: 2 + port: 6 error: error - protocol: protocol - port: 2 + port: 6 error: error - hostname: hostname ip: ip ports: - protocol: protocol - port: 2 + port: 6 error: error - protocol: protocol - port: 2 + port: 6 error: error - conditions: - - reason: reason - lastTransitionTime: 2000-01-23T04:56:07.000+00:00 - message: message - type: type - observedGeneration: 5 - status: status - - reason: reason - lastTransitionTime: 2000-01-23T04:56:07.000+00:00 - message: message - type: type - observedGeneration: 5 - status: status properties: apiVersion: description: 'APIVersion defines the versioned schema of this representation @@ -201215,9 +240614,9 @@ components: internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources' type: string items: - description: List of services + description: items is the list of Ingress. items: - $ref: '#/components/schemas/v1.Service' + $ref: '#/components/schemas/v1.Ingress' type: array kind: description: 'Kind is a string value representing the REST resource this @@ -201230,310 +240629,286 @@ components: - items type: object x-kubernetes-group-version-kind: - - group: "" - kind: ServiceList + - group: networking.k8s.io + kind: IngressList version: v1 x-implements: - io.kubernetes.client.common.KubernetesListObject - v1.ServicePort: - description: ServicePort contains information on service's port. - example: - protocol: protocol - port: 1 - appProtocol: appProtocol - name: name - nodePort: 6 - targetPort: targetPort - properties: - appProtocol: - description: |- - 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 over cleartext as described in https://www.rfc-editor.org/rfc/rfc7540 - * '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. - type: string - name: - description: 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. - type: string - nodePort: - description: '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' - format: int32 - type: integer - port: - description: The port that will be exposed by this service. - format: int32 - type: integer - protocol: - description: The IP protocol for this port. Supports "TCP", "UDP", and "SCTP". - Default is TCP. - type: string - targetPort: - description: 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. - format: int-or-string - type: string - required: - - port - type: object - v1.ServiceSpec: - description: ServiceSpec describes the attributes that a user creates on a service. + v1.IngressLoadBalancerIngress: + description: IngressLoadBalancerIngress represents the status of a load-balancer + ingress point. example: - clusterIPs: - - clusterIPs - - clusterIPs - healthCheckNodePort: 0 - ipFamilyPolicy: ipFamilyPolicy - externalIPs: - - externalIPs - - externalIPs - sessionAffinity: sessionAffinity - allocateLoadBalancerNodePorts: true + hostname: hostname + ip: ip ports: - protocol: protocol - port: 1 - appProtocol: appProtocol - name: name - nodePort: 6 - targetPort: targetPort + port: 6 + error: error - protocol: protocol - port: 1 - appProtocol: appProtocol - name: name - nodePort: 6 - targetPort: targetPort - type: type - loadBalancerClass: loadBalancerClass - sessionAffinityConfig: - clientIP: - timeoutSeconds: 5 - ipFamilies: - - ipFamilies - - ipFamilies - loadBalancerIP: loadBalancerIP - externalName: externalName - loadBalancerSourceRanges: - - loadBalancerSourceRanges - - loadBalancerSourceRanges - externalTrafficPolicy: externalTrafficPolicy - selector: - key: selector - publishNotReadyAddresses: true - internalTrafficPolicy: internalTrafficPolicy - clusterIP: clusterIP + port: 6 + error: error properties: - allocateLoadBalancerNodePorts: - description: 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. - type: boolean - clusterIP: - description: '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' + hostname: + description: hostname is set for load-balancer ingress points that are DNS + based. type: string - clusterIPs: - description: |- - 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 + ip: + description: ip is set for load-balancer ingress points that are IP based. + type: string + ports: + description: ports provides information about the ports exposed by this + LoadBalancer. + items: + $ref: '#/components/schemas/v1.IngressPortStatus' + type: array + x-kubernetes-list-type: atomic + type: object + v1.IngressLoadBalancerStatus: + description: IngressLoadBalancerStatus represents the status of a load-balancer. + example: + ingress: + - hostname: hostname + ip: ip + ports: + - protocol: protocol + port: 6 + error: error + - protocol: protocol + port: 6 + error: error + - hostname: hostname + ip: ip + ports: + - protocol: protocol + port: 6 + error: error + - protocol: protocol + port: 6 + error: error + properties: + ingress: + description: ingress is a list containing ingress points for the load-balancer. items: - type: string + $ref: '#/components/schemas/v1.IngressLoadBalancerIngress' type: array x-kubernetes-list-type: atomic - externalIPs: - description: 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. - items: - type: string - type: array - externalName: - description: 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". - type: string - externalTrafficPolicy: - description: 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. + type: object + v1.IngressPortStatus: + description: IngressPortStatus represents the error condition of a service port + example: + protocol: protocol + port: 6 + error: error + properties: + error: + description: |- + 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. type: string - healthCheckNodePort: - description: 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. + port: + description: port is the port number of the ingress port. format: int32 type: integer - internalTrafficPolicy: - description: 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). + protocol: + description: 'protocol is the protocol of the ingress port. The supported + values are: "TCP", "UDP", "SCTP"' type: string - ipFamilies: - description: |- - 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. - items: - type: string - type: array - x-kubernetes-list-type: atomic - ipFamilyPolicy: - description: 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. + required: + - port + - protocol + type: object + v1.IngressRule: + 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. + example: + host: host + http: + paths: + - path: path + backend: + resource: + apiGroup: apiGroup + kind: kind + name: name + service: + port: + number: 0 + name: name + name: name + pathType: pathType + - path: path + backend: + resource: + apiGroup: apiGroup + kind: kind + name: name + service: + port: + number: 0 + name: name + name: name + pathType: pathType + properties: + host: + description: "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\n the IP in the Spec of the\ + \ parent Ingress.\n2. The `:` delimiter is not respected because ports\ + \ are not allowed.\n\t Currently the port of an Ingress is implicitly\ + \ :80 for http and\n\t :443 for https.\nBoth 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.\n\nhost 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." type: string - loadBalancerClass: - description: 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. + http: + $ref: '#/components/schemas/v1.HTTPIngressRuleValue' + type: object + v1.IngressServiceBackend: + description: IngressServiceBackend references a Kubernetes Service as a Backend. + example: + port: + number: 0 + name: name + name: name + properties: + name: + description: name is the referenced service. The service must exist in the + same namespace as the Ingress object. type: string - loadBalancerIP: - description: '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.' + port: + $ref: '#/components/schemas/v1.ServiceBackendPort' + required: + - name + type: object + v1.IngressSpec: + description: IngressSpec describes the Ingress the user wishes to exist. + example: + defaultBackend: + resource: + apiGroup: apiGroup + kind: kind + name: name + service: + port: + number: 0 + name: name + name: name + ingressClassName: ingressClassName + rules: + - host: host + http: + paths: + - path: path + backend: + resource: + apiGroup: apiGroup + kind: kind + name: name + service: + port: + number: 0 + name: name + name: name + pathType: pathType + - path: path + backend: + resource: + apiGroup: apiGroup + kind: kind + name: name + service: + port: + number: 0 + name: name + name: name + pathType: pathType + - host: host + http: + paths: + - path: path + backend: + resource: + apiGroup: apiGroup + kind: kind + name: name + service: + port: + number: 0 + name: name + name: name + pathType: pathType + - path: path + backend: + resource: + apiGroup: apiGroup + kind: kind + name: name + service: + port: + number: 0 + name: name + name: name + pathType: pathType + tls: + - secretName: secretName + hosts: + - hosts + - hosts + - secretName: secretName + hosts: + - hosts + - hosts + properties: + defaultBackend: + $ref: '#/components/schemas/v1.IngressBackend' + ingressClassName: + description: 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. type: string - loadBalancerSourceRanges: - description: '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/' + rules: + description: 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. items: - type: string + $ref: '#/components/schemas/v1.IngressRule' type: array - ports: - description: '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' + x-kubernetes-list-type: atomic + tls: + description: 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. items: - $ref: '#/components/schemas/v1.ServicePort' + $ref: '#/components/schemas/v1.IngressTLS' type: array - x-kubernetes-patch-strategy: merge - x-kubernetes-list-type: map - x-kubernetes-list-map-keys: - - port - - protocol - x-kubernetes-patch-merge-key: port - publishNotReadyAddresses: - description: 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. - type: boolean - selector: - additionalProperties: - type: string - description: '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/' - type: object - x-kubernetes-map-type: atomic - sessionAffinity: - description: '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' - type: string - sessionAffinityConfig: - $ref: '#/components/schemas/v1.SessionAffinityConfig' - type: - description: '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' - type: string + x-kubernetes-list-type: atomic type: object - v1.ServiceStatus: - description: ServiceStatus represents the current status of a service. + v1.IngressStatus: + description: IngressStatus describe the current state of the Ingress. example: loadBalancer: ingress: @@ -201541,1366 +240916,1895 @@ components: ip: ip ports: - protocol: protocol - port: 2 + port: 6 error: error - protocol: protocol - port: 2 + port: 6 error: error - hostname: hostname ip: ip ports: - protocol: protocol - port: 2 + port: 6 error: error - protocol: protocol - port: 2 + port: 6 error: error - conditions: - - reason: reason - lastTransitionTime: 2000-01-23T04:56:07.000+00:00 - message: message - type: type - observedGeneration: 5 - status: status - - reason: reason - lastTransitionTime: 2000-01-23T04:56:07.000+00:00 - message: message - type: type - observedGeneration: 5 - status: status properties: - conditions: - description: Current service state - items: - $ref: '#/components/schemas/v1.Condition' - type: array - x-kubernetes-patch-strategy: merge - x-kubernetes-list-type: map - x-kubernetes-list-map-keys: - - type - x-kubernetes-patch-merge-key: type loadBalancer: - $ref: '#/components/schemas/v1.LoadBalancerStatus' + $ref: '#/components/schemas/v1.IngressLoadBalancerStatus' type: object - v1.SessionAffinityConfig: - description: SessionAffinityConfig represents the configurations of session - affinity. + v1.IngressTLS: + description: IngressTLS describes the transport layer security associated with + an ingress. example: - clientIP: - timeoutSeconds: 5 + secretName: secretName + hosts: + - hosts + - hosts properties: - clientIP: - $ref: '#/components/schemas/v1.ClientIPConfig' + hosts: + description: 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. + items: + type: string + type: array + x-kubernetes-list-type: atomic + secretName: + description: 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. + type: string type: object - v1.StorageOSPersistentVolumeSource: - description: Represents a StorageOS persistent volume resource. + v1.NetworkPolicy: + description: NetworkPolicy describes what network traffic is allowed for a set + of Pods example: - volumeNamespace: volumeNamespace - volumeName: volumeName - secretRef: - uid: uid - apiVersion: apiVersion - kind: kind + metadata: + generation: 6 + finalizers: + - finalizers + - finalizers resourceVersion: resourceVersion - fieldPath: fieldPath + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: '{}' + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: '{}' + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + creationTimestamp: 2000-01-23T04:56:07.000+00:00 name: name namespace: namespace - readOnly: true - fsType: fsType - properties: - fsType: - description: 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. - type: string - readOnly: - description: readOnly defaults to false (read/write). ReadOnly here will - force the ReadOnly setting in VolumeMounts. - type: boolean - secretRef: - $ref: '#/components/schemas/v1.ObjectReference' - volumeName: - description: volumeName is the human-readable name of the StorageOS volume. Volume - names are only unique within a namespace. - type: string - volumeNamespace: - description: 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. - type: string - type: object - v1.StorageOSVolumeSource: - description: Represents a StorageOS persistent volume resource. - example: - volumeNamespace: volumeNamespace - volumeName: volumeName - secretRef: - name: name - readOnly: true - fsType: fsType - properties: - fsType: - description: 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. - type: string - readOnly: - description: readOnly defaults to false (read/write). ReadOnly here will - force the ReadOnly setting in VolumeMounts. - type: boolean - secretRef: - $ref: '#/components/schemas/v1.LocalObjectReference' - volumeName: - description: volumeName is the human-readable name of the StorageOS volume. Volume - names are only unique within a namespace. - type: string - volumeNamespace: - description: 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. - type: string - type: object - v1.Sysctl: - description: Sysctl defines a kernel parameter to be set - example: - name: name - value: value - properties: - name: - description: Name of a property to set - type: string - value: - description: Value of a property to set - type: string - required: - - name - - value - type: object - v1.TCPSocketAction: - description: TCPSocketAction describes an action based on opening a socket - example: - port: port - host: host - properties: - host: - description: 'Optional: Host name to connect to, defaults to the pod IP.' - type: string - port: - description: 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. - format: int-or-string - type: string - required: - - port - type: object - v1.Taint: - description: The node this Taint is attached to has the "effect" on any pod - that does not tolerate the Taint. - example: - timeAdded: 2000-01-23T04:56:07.000+00:00 - effect: effect - value: value - key: key - properties: - effect: - description: Required. The effect of the taint on pods that do not tolerate - the taint. Valid effects are NoSchedule, PreferNoSchedule and NoExecute. - type: string - key: - description: Required. The taint key to be applied to a node. - type: string - timeAdded: - description: TimeAdded represents the time at which the taint was added. - It is only written for NoExecute taints. - format: date-time - type: string - value: - description: The taint value corresponding to the taint key. - type: string - required: - - effect - - key - type: object - v1.Toleration: - description: The pod this Toleration is attached to tolerates any taint that - matches the triple using the matching operator . - example: - effect: effect - tolerationSeconds: 9 - value: value - key: key - operator: operator + apiVersion: apiVersion + kind: kind + spec: + ingress: + - from: + - podSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + ipBlock: + cidr: cidr + except: + - except + - except + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + - podSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + ipBlock: + cidr: cidr + except: + - except + - except + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + ports: + - protocol: protocol + port: port + endPort: 0 + - protocol: protocol + port: port + endPort: 0 + - from: + - podSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + ipBlock: + cidr: cidr + except: + - except + - except + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + - podSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + ipBlock: + cidr: cidr + except: + - except + - except + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + ports: + - protocol: protocol + port: port + endPort: 0 + - protocol: protocol + port: port + endPort: 0 + podSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + policyTypes: + - policyTypes + - policyTypes + egress: + - to: + - podSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + ipBlock: + cidr: cidr + except: + - except + - except + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + - podSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + ipBlock: + cidr: cidr + except: + - except + - except + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + ports: + - protocol: protocol + port: port + endPort: 0 + - protocol: protocol + port: port + endPort: 0 + - to: + - podSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + ipBlock: + cidr: cidr + except: + - except + - except + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + - podSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + ipBlock: + cidr: cidr + except: + - except + - except + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + ports: + - protocol: protocol + port: port + endPort: 0 + - protocol: protocol + port: port + endPort: 0 properties: - effect: - description: Effect indicates the taint effect to match. Empty means match - all taint effects. When specified, allowed values are NoSchedule, PreferNoSchedule - and NoExecute. - type: string - key: - description: 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. - type: string - operator: - description: 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. + apiVersion: + description: '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' type: string - tolerationSeconds: - description: 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. - format: int64 - type: integer - value: - description: Value is the taint value the toleration matches to. If the - operator is Exists, the value should be empty, otherwise just a regular - string. + kind: + description: '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' type: string + metadata: + $ref: '#/components/schemas/v1.ObjectMeta' + spec: + $ref: '#/components/schemas/v1.NetworkPolicySpec' type: object - v1.TopologySelectorLabelRequirement: - description: A topology selector requirement is a selector that matches given - label. This is an alpha feature and may change in the future. + x-kubernetes-group-version-kind: + - group: networking.k8s.io + kind: NetworkPolicy + version: v1 + x-implements: + - io.kubernetes.client.common.KubernetesObject + v1.NetworkPolicyEgressRule: + 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 example: - values: - - values - - values - key: key + to: + - podSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + ipBlock: + cidr: cidr + except: + - except + - except + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + - podSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + ipBlock: + cidr: cidr + except: + - except + - except + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + ports: + - protocol: protocol + port: port + endPort: 0 + - protocol: protocol + port: port + endPort: 0 properties: - key: - description: The label key that the selector applies to. - type: string - values: - description: An array of string values. One value must match the label to - be selected. Each entry in Values is ORed. + ports: + description: 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. items: - type: string + $ref: '#/components/schemas/v1.NetworkPolicyPort' type: array - required: - - key - - values - type: object - v1.TopologySelectorTerm: - 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. - example: - matchLabelExpressions: - - values: - - values - - values - key: key - - values: - - values - - values - key: key - properties: - matchLabelExpressions: - description: A list of topology selector requirements by labels. + x-kubernetes-list-type: atomic + to: + description: 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. items: - $ref: '#/components/schemas/v1.TopologySelectorLabelRequirement' + $ref: '#/components/schemas/v1.NetworkPolicyPeer' type: array + x-kubernetes-list-type: atomic type: object - x-kubernetes-map-type: atomic - v1.TopologySpreadConstraint: - description: TopologySpreadConstraint specifies how to spread matching pods - among the given topology. + v1.NetworkPolicyIngressRule: + 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. example: - nodeTaintsPolicy: nodeTaintsPolicy - whenUnsatisfiable: whenUnsatisfiable - maxSkew: 9 - nodeAffinityPolicy: nodeAffinityPolicy - labelSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - minDomains: 6 - topologyKey: topologyKey - matchLabelKeys: - - matchLabelKeys - - matchLabelKeys + from: + - podSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + ipBlock: + cidr: cidr + except: + - except + - except + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + - podSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + ipBlock: + cidr: cidr + except: + - except + - except + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + ports: + - protocol: protocol + port: port + endPort: 0 + - protocol: protocol + port: port + endPort: 0 properties: - labelSelector: - $ref: '#/components/schemas/v1.LabelSelector' - matchLabelKeys: - description: |- - 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). + from: + description: 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. items: - type: string + $ref: '#/components/schemas/v1.NetworkPolicyPeer' + type: array + x-kubernetes-list-type: atomic + ports: + description: 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. + items: + $ref: '#/components/schemas/v1.NetworkPolicyPort' type: array x-kubernetes-list-type: atomic - maxSkew: - description: '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.' - format: int32 - type: integer - minDomains: - description: |- - 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. - - This is a beta field and requires the MinDomainsInPodTopologySpread feature gate to be enabled (enabled by default). - format: int32 - type: integer - nodeAffinityPolicy: - description: |- - 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. - type: string - nodeTaintsPolicy: - description: |- - 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. - type: string - topologyKey: - description: 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. - type: string - whenUnsatisfiable: - description: |- - 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. - type: string - required: - - maxSkew - - topologyKey - - whenUnsatisfiable - type: object - v1.TypedLocalObjectReference: - description: TypedLocalObjectReference contains enough information to let you - locate the typed referenced object inside the same namespace. - example: - apiGroup: apiGroup - kind: kind - name: name - properties: - apiGroup: - description: 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. - type: string - kind: - description: Kind is the type of resource being referenced - type: string - name: - description: Name is the name of resource being referenced - type: string - required: - - kind - - name type: object - x-kubernetes-map-type: atomic - v1.TypedObjectReference: + v1.NetworkPolicyList: + description: NetworkPolicyList is a list of NetworkPolicy objects. example: - apiGroup: apiGroup + metadata: + remainingItemCount: 1 + continue: continue + resourceVersion: resourceVersion + selfLink: selfLink + apiVersion: apiVersion kind: kind - name: name - namespace: namespace + items: + - metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: '{}' + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: '{}' + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + creationTimestamp: 2000-01-23T04:56:07.000+00:00 + name: name + namespace: namespace + apiVersion: apiVersion + kind: kind + spec: + ingress: + - from: + - podSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + ipBlock: + cidr: cidr + except: + - except + - except + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + - podSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + ipBlock: + cidr: cidr + except: + - except + - except + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + ports: + - protocol: protocol + port: port + endPort: 0 + - protocol: protocol + port: port + endPort: 0 + - from: + - podSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + ipBlock: + cidr: cidr + except: + - except + - except + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + - podSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + ipBlock: + cidr: cidr + except: + - except + - except + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + ports: + - protocol: protocol + port: port + endPort: 0 + - protocol: protocol + port: port + endPort: 0 + podSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + policyTypes: + - policyTypes + - policyTypes + egress: + - to: + - podSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + ipBlock: + cidr: cidr + except: + - except + - except + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + - podSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + ipBlock: + cidr: cidr + except: + - except + - except + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + ports: + - protocol: protocol + port: port + endPort: 0 + - protocol: protocol + port: port + endPort: 0 + - to: + - podSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + ipBlock: + cidr: cidr + except: + - except + - except + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + - podSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + ipBlock: + cidr: cidr + except: + - except + - except + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + ports: + - protocol: protocol + port: port + endPort: 0 + - protocol: protocol + port: port + endPort: 0 + - metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: '{}' + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: '{}' + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + creationTimestamp: 2000-01-23T04:56:07.000+00:00 + name: name + namespace: namespace + apiVersion: apiVersion + kind: kind + spec: + ingress: + - from: + - podSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + ipBlock: + cidr: cidr + except: + - except + - except + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + - podSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + ipBlock: + cidr: cidr + except: + - except + - except + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + ports: + - protocol: protocol + port: port + endPort: 0 + - protocol: protocol + port: port + endPort: 0 + - from: + - podSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + ipBlock: + cidr: cidr + except: + - except + - except + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + - podSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + ipBlock: + cidr: cidr + except: + - except + - except + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + ports: + - protocol: protocol + port: port + endPort: 0 + - protocol: protocol + port: port + endPort: 0 + podSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + policyTypes: + - policyTypes + - policyTypes + egress: + - to: + - podSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + ipBlock: + cidr: cidr + except: + - except + - except + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + - podSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + ipBlock: + cidr: cidr + except: + - except + - except + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + ports: + - protocol: protocol + port: port + endPort: 0 + - protocol: protocol + port: port + endPort: 0 + - to: + - podSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + ipBlock: + cidr: cidr + except: + - except + - except + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + - podSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + ipBlock: + cidr: cidr + except: + - except + - except + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + ports: + - protocol: protocol + port: port + endPort: 0 + - protocol: protocol + port: port + endPort: 0 properties: - apiGroup: - description: 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. + apiVersion: + description: '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' type: string + items: + description: items is a list of schema objects. + items: + $ref: '#/components/schemas/v1.NetworkPolicy' + type: array kind: - description: Kind is the type of resource being referenced - type: string - name: - description: Name is the name of resource being referenced - type: string - namespace: - description: 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. + description: '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' type: string + metadata: + $ref: '#/components/schemas/v1.ListMeta' required: - - kind - - name + - items type: object - v1.Volume: - description: Volume represents a named volume in a pod that may be accessed - by any container in the pod. + x-kubernetes-group-version-kind: + - group: networking.k8s.io + kind: NetworkPolicyList + version: v1 + x-implements: + - io.kubernetes.client.common.KubernetesListObject + v1.NetworkPolicyPeer: + description: NetworkPolicyPeer describes a peer to allow traffic to/from. Only + certain combinations of fields are allowed example: - quobyte: - volume: volume - registry: registry - readOnly: true - user: user - tenant: tenant - group: group - azureFile: - secretName: secretName - readOnly: true - shareName: shareName - flexVolume: - driver: driver - options: - key: options - secretRef: - name: name - readOnly: true - fsType: fsType - ephemeral: - volumeClaimTemplate: - metadata: - generation: 6 - finalizers: - - finalizers - - finalizers - resourceVersion: resourceVersion - annotations: - key: annotations - generateName: generateName - deletionTimestamp: 2000-01-23T04:56:07.000+00:00 - labels: - key: labels - ownerReferences: - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - selfLink: selfLink - deletionGracePeriodSeconds: 0 - uid: uid - managedFields: - - apiVersion: apiVersion - fieldsV1: '{}' - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - - apiVersion: apiVersion - fieldsV1: '{}' - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - creationTimestamp: 2000-01-23T04:56:07.000+00:00 - name: name - namespace: namespace - spec: - storageClassName: storageClassName - dataSourceRef: - apiGroup: apiGroup - kind: kind - name: name - namespace: namespace - volumeName: volumeName - resources: - claims: - - name: name - - name: name - requests: {} - limits: {} - selector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - accessModes: - - accessModes - - accessModes - dataSource: - apiGroup: apiGroup - kind: kind - name: name - volumeMode: volumeMode - secret: - secretName: secretName - defaultMode: 6 - optional: true - items: - - mode: 6 - path: path + podSelector: + matchExpressions: + - values: + - values + - values key: key - - mode: 6 - path: path + operator: operator + - values: + - values + - values key: key - projected: - sources: - - downwardAPI: - items: - - mode: 6 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - mode: 6 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - configMap: - name: name - optional: true - items: - - mode: 6 - path: path - key: key - - mode: 6 - path: path - key: key - secret: - name: name - optional: true - items: - - mode: 6 - path: path - key: key - - mode: 6 - path: path - key: key - serviceAccountToken: - path: path - audience: audience - expirationSeconds: 5 - - downwardAPI: - items: - - mode: 6 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - mode: 6 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - configMap: - name: name - optional: true - items: - - mode: 6 - path: path - key: key - - mode: 6 - path: path - key: key - secret: - name: name - optional: true - items: - - mode: 6 - path: path - key: key - - mode: 6 - path: path - key: key - serviceAccountToken: - path: path - audience: audience - expirationSeconds: 5 - defaultMode: 6 - cephfs: - path: path - secretRef: - name: name - secretFile: secretFile - readOnly: true - user: user - monitors: - - monitors - - monitors - scaleIO: - system: system - protectionDomain: protectionDomain - sslEnabled: true - storageMode: storageMode - volumeName: volumeName - secretRef: - name: name - readOnly: true - fsType: fsType - storagePool: storagePool - gateway: gateway - emptyDir: - sizeLimit: sizeLimit - medium: medium - glusterfs: - path: path - endpoints: endpoints - readOnly: true - gcePersistentDisk: - partition: 2 - readOnly: true - pdName: pdName - fsType: fsType - photonPersistentDisk: - pdID: pdID - fsType: fsType - azureDisk: - diskName: diskName - kind: kind - readOnly: true - cachingMode: cachingMode - diskURI: diskURI - fsType: fsType - cinder: - secretRef: - name: name - volumeID: volumeID - readOnly: true - fsType: fsType - downwardAPI: - defaultMode: 3 - items: - - mode: 6 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - mode: 6 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - awsElasticBlockStore: - partition: 8 - volumeID: volumeID - readOnly: true - fsType: fsType - flocker: - datasetName: datasetName - datasetUUID: datasetUUID - iscsi: - chapAuthSession: true - iscsiInterface: iscsiInterface - lun: 6 - chapAuthDiscovery: true - iqn: iqn - portals: - - portals - - portals - secretRef: - name: name - initiatorName: initiatorName - readOnly: true - fsType: fsType - targetPortal: targetPortal - rbd: - image: image - pool: pool - secretRef: - name: name - readOnly: true - fsType: fsType - keyring: keyring - user: user - monitors: - - monitors - - monitors - configMap: - defaultMode: 9 - name: name - optional: true - items: - - mode: 6 - path: path + operator: operator + matchLabels: + key: matchLabels + ipBlock: + cidr: cidr + except: + - except + - except + namespaceSelector: + matchExpressions: + - values: + - values + - values key: key - - mode: 6 - path: path + operator: operator + - values: + - values + - values key: key - storageos: - volumeNamespace: volumeNamespace - volumeName: volumeName - secretRef: - name: name - readOnly: true - fsType: fsType - csi: - driver: driver - nodePublishSecretRef: - name: name - readOnly: true - fsType: fsType - volumeAttributes: - key: volumeAttributes - name: name - nfs: - path: path - server: server - readOnly: true - persistentVolumeClaim: - claimName: claimName - readOnly: true - gitRepo: - repository: repository - directory: directory - revision: revision - portworxVolume: - volumeID: volumeID - readOnly: true - fsType: fsType - vsphereVolume: - storagePolicyName: storagePolicyName - storagePolicyID: storagePolicyID - volumePath: volumePath - fsType: fsType - fc: - lun: 1 - targetWWNs: - - targetWWNs - - targetWWNs - readOnly: true - wwids: - - wwids - - wwids - fsType: fsType - hostPath: - path: path - type: type - properties: - awsElasticBlockStore: - $ref: '#/components/schemas/v1.AWSElasticBlockStoreVolumeSource' - azureDisk: - $ref: '#/components/schemas/v1.AzureDiskVolumeSource' - azureFile: - $ref: '#/components/schemas/v1.AzureFileVolumeSource' - cephfs: - $ref: '#/components/schemas/v1.CephFSVolumeSource' - cinder: - $ref: '#/components/schemas/v1.CinderVolumeSource' - configMap: - $ref: '#/components/schemas/v1.ConfigMapVolumeSource' - csi: - $ref: '#/components/schemas/v1.CSIVolumeSource' - downwardAPI: - $ref: '#/components/schemas/v1.DownwardAPIVolumeSource' - emptyDir: - $ref: '#/components/schemas/v1.EmptyDirVolumeSource' - ephemeral: - $ref: '#/components/schemas/v1.EphemeralVolumeSource' - fc: - $ref: '#/components/schemas/v1.FCVolumeSource' - flexVolume: - $ref: '#/components/schemas/v1.FlexVolumeSource' - flocker: - $ref: '#/components/schemas/v1.FlockerVolumeSource' - gcePersistentDisk: - $ref: '#/components/schemas/v1.GCEPersistentDiskVolumeSource' - gitRepo: - $ref: '#/components/schemas/v1.GitRepoVolumeSource' - glusterfs: - $ref: '#/components/schemas/v1.GlusterfsVolumeSource' - hostPath: - $ref: '#/components/schemas/v1.HostPathVolumeSource' - iscsi: - $ref: '#/components/schemas/v1.ISCSIVolumeSource' - name: - description: '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' - type: string - nfs: - $ref: '#/components/schemas/v1.NFSVolumeSource' - persistentVolumeClaim: - $ref: '#/components/schemas/v1.PersistentVolumeClaimVolumeSource' - photonPersistentDisk: - $ref: '#/components/schemas/v1.PhotonPersistentDiskVolumeSource' - portworxVolume: - $ref: '#/components/schemas/v1.PortworxVolumeSource' - projected: - $ref: '#/components/schemas/v1.ProjectedVolumeSource' - quobyte: - $ref: '#/components/schemas/v1.QuobyteVolumeSource' - rbd: - $ref: '#/components/schemas/v1.RBDVolumeSource' - scaleIO: - $ref: '#/components/schemas/v1.ScaleIOVolumeSource' - secret: - $ref: '#/components/schemas/v1.SecretVolumeSource' - storageos: - $ref: '#/components/schemas/v1.StorageOSVolumeSource' - vsphereVolume: - $ref: '#/components/schemas/v1.VsphereVirtualDiskVolumeSource' - required: - - name - type: object - v1.VolumeDevice: - description: volumeDevice describes a mapping of a raw block device within a - container. - example: - devicePath: devicePath - name: name + operator: operator + matchLabels: + key: matchLabels properties: - devicePath: - description: devicePath is the path inside of the container that the device - will be mapped to. - type: string - name: - description: name must match the name of a persistentVolumeClaim in the - pod - type: string - required: - - devicePath - - name + ipBlock: + $ref: '#/components/schemas/v1.IPBlock' + namespaceSelector: + $ref: '#/components/schemas/v1.LabelSelector' + podSelector: + $ref: '#/components/schemas/v1.LabelSelector' type: object - v1.VolumeMount: - description: VolumeMount describes a mounting of a Volume within a container. + v1.NetworkPolicyPort: + description: NetworkPolicyPort describes a port to allow traffic on example: - mountPath: mountPath - mountPropagation: mountPropagation - name: name - readOnly: true - subPath: subPath - subPathExpr: subPathExpr + protocol: protocol + port: port + endPort: 0 properties: - mountPath: - description: Path within the container at which the volume should be mounted. Must - not contain ':'. - type: string - mountPropagation: - description: 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. - type: string - name: - description: This must match the Name of a Volume. - type: string - readOnly: - description: Mounted read-only if true, read-write otherwise (false or unspecified). - Defaults to false. - type: boolean - subPath: - description: Path within the volume from which the container's volume should - be mounted. Defaults to "" (volume's root). + endPort: + description: 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. + format: int32 + type: integer + port: + description: 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. + format: int-or-string type: string - subPathExpr: - description: 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. + protocol: + description: protocol represents the protocol (TCP, UDP, or SCTP) which + traffic must match. If not specified, this field defaults to TCP. type: string - required: - - mountPath - - name - type: object - v1.VolumeNodeAffinity: - description: VolumeNodeAffinity defines constraints that limit what nodes this - volume can be accessed from. - example: - required: - nodeSelectorTerms: - - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchFields: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchFields: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - properties: - required: - $ref: '#/components/schemas/v1.NodeSelector' type: object - v1.VolumeProjection: - description: Projection that may be projected along with other supported volume - types + v1.NetworkPolicySpec: + description: NetworkPolicySpec provides the specification of a NetworkPolicy example: - downwardAPI: - items: - - mode: 6 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - mode: 6 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - configMap: - name: name - optional: true - items: - - mode: 6 - path: path - key: key - - mode: 6 - path: path - key: key - secret: - name: name - optional: true - items: - - mode: 6 - path: path + ingress: + - from: + - podSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + ipBlock: + cidr: cidr + except: + - except + - except + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + - podSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + ipBlock: + cidr: cidr + except: + - except + - except + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + ports: + - protocol: protocol + port: port + endPort: 0 + - protocol: protocol + port: port + endPort: 0 + - from: + - podSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + ipBlock: + cidr: cidr + except: + - except + - except + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + - podSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + ipBlock: + cidr: cidr + except: + - except + - except + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + ports: + - protocol: protocol + port: port + endPort: 0 + - protocol: protocol + port: port + endPort: 0 + podSelector: + matchExpressions: + - values: + - values + - values key: key - - mode: 6 - path: path + operator: operator + - values: + - values + - values key: key - serviceAccountToken: - path: path - audience: audience - expirationSeconds: 5 - properties: - configMap: - $ref: '#/components/schemas/v1.ConfigMapProjection' - downwardAPI: - $ref: '#/components/schemas/v1.DownwardAPIProjection' - secret: - $ref: '#/components/schemas/v1.SecretProjection' - serviceAccountToken: - $ref: '#/components/schemas/v1.ServiceAccountTokenProjection' - type: object - v1.VsphereVirtualDiskVolumeSource: - description: Represents a vSphere volume resource. - example: - storagePolicyName: storagePolicyName - storagePolicyID: storagePolicyID - volumePath: volumePath - fsType: fsType - properties: - fsType: - description: 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. - type: string - storagePolicyID: - description: storagePolicyID is the storage Policy Based Management (SPBM) - profile ID associated with the StoragePolicyName. - type: string - storagePolicyName: - description: storagePolicyName is the storage Policy Based Management (SPBM) - profile name. - type: string - volumePath: - description: volumePath is the path that identifies vSphere volume vmdk - type: string - required: - - volumePath - type: object - v1.WeightedPodAffinityTerm: - description: The weights of all of the matched WeightedPodAffinityTerm fields - are added per-node to find the most preferred node(s) - example: - podAffinityTerm: - labelSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - topologyKey: topologyKey - namespaces: - - namespaces - - namespaces - weight: 1 + operator: operator + matchLabels: + key: matchLabels + policyTypes: + - policyTypes + - policyTypes + egress: + - to: + - podSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + ipBlock: + cidr: cidr + except: + - except + - except + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + - podSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + ipBlock: + cidr: cidr + except: + - except + - except + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + ports: + - protocol: protocol + port: port + endPort: 0 + - protocol: protocol + port: port + endPort: 0 + - to: + - podSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + ipBlock: + cidr: cidr + except: + - except + - except + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + - podSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + ipBlock: + cidr: cidr + except: + - except + - except + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + ports: + - protocol: protocol + port: port + endPort: 0 + - protocol: protocol + port: port + endPort: 0 properties: - podAffinityTerm: - $ref: '#/components/schemas/v1.PodAffinityTerm' - weight: - description: weight associated with matching the corresponding podAffinityTerm, - in the range 1-100. - format: int32 - type: integer + egress: + description: 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 + items: + $ref: '#/components/schemas/v1.NetworkPolicyEgressRule' + type: array + x-kubernetes-list-type: atomic + ingress: + description: 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) + items: + $ref: '#/components/schemas/v1.NetworkPolicyIngressRule' + type: array + x-kubernetes-list-type: atomic + podSelector: + $ref: '#/components/schemas/v1.LabelSelector' + policyTypes: + description: 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 + items: + type: string + type: array + x-kubernetes-list-type: atomic required: - - podAffinityTerm - - weight + - podSelector type: object - v1.WindowsSecurityContextOptions: - description: WindowsSecurityContextOptions contain Windows-specific options - and credentials. + v1.ParentReference: + description: ParentReference describes a reference to a parent object. example: - gmsaCredentialSpec: gmsaCredentialSpec - runAsUserName: runAsUserName - hostProcess: true - gmsaCredentialSpecName: gmsaCredentialSpecName + resource: resource + name: name + namespace: namespace + group: group properties: - gmsaCredentialSpec: - description: 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. - type: string - gmsaCredentialSpecName: - description: GMSACredentialSpecName is the name of the GMSA credential spec - to use. - type: string - hostProcess: - description: 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. - type: boolean - runAsUserName: - description: 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. + group: + description: Group is the group of the object being referenced. type: string - type: object - v1.Endpoint: - description: Endpoint represents a single logical "backend" implementing a service. - example: - nodeName: nodeName - targetRef: - uid: uid - apiVersion: apiVersion - kind: kind - resourceVersion: resourceVersion - fieldPath: fieldPath - name: name - namespace: namespace - addresses: - - addresses - - addresses - hostname: hostname - zone: zone - hints: - forZones: - - name: name - - name: name - conditions: - ready: true - terminating: true - serving: true - deprecatedTopology: - key: deprecatedTopology - properties: - addresses: - description: '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' - items: - type: string - type: array - x-kubernetes-list-type: set - conditions: - $ref: '#/components/schemas/v1.EndpointConditions' - deprecatedTopology: - additionalProperties: - type: string - description: 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. - type: object - hints: - $ref: '#/components/schemas/v1.EndpointHints' - hostname: - description: 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. + name: + description: Name is the name of the object being referenced. type: string - nodeName: - description: nodeName represents the name of the Node hosting this endpoint. - This can be used to determine endpoints local to a Node. + namespace: + description: Namespace is the namespace of the object being referenced. type: string - targetRef: - $ref: '#/components/schemas/v1.ObjectReference' - zone: - description: zone is the name of the Zone this endpoint exists in. + resource: + description: Resource is the resource of the object being referenced. type: string required: - - addresses - type: object - v1.EndpointConditions: - description: EndpointConditions represents the current condition of an endpoint. - example: - ready: true - terminating: true - serving: true - properties: - ready: - description: 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. - type: boolean - serving: - description: 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. - type: boolean - terminating: - description: 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. - type: boolean - type: object - v1.EndpointHints: - description: EndpointHints provides hints describing how an endpoint should - be consumed. - example: - forZones: - - name: name - - name: name - properties: - forZones: - description: forZones indicates the zone(s) this endpoint should be consumed - by to enable topology aware routing. - items: - $ref: '#/components/schemas/v1.ForZone' - type: array - x-kubernetes-list-type: atomic + - name + - resource type: object - discovery.v1.EndpointPort: - description: EndpointPort represents a Port used by an EndpointSlice + v1.ServiceBackendPort: + description: ServiceBackendPort is the service port being referenced. example: - protocol: protocol - port: 0 - appProtocol: appProtocol + number: 0 name: name properties: - appProtocol: - description: |- - 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 over cleartext as described in https://www.rfc-editor.org/rfc/rfc7540 - * '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. - type: string name: - description: 'name represents the name of this port. All ports in an EndpointSlice - must have a unique name. If the EndpointSlice is dervied 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.' + description: name is the name of the port on the Service. This is a mutually + exclusive setting with "Number". type: string - port: - description: 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. + number: + description: number is the numerical port number (e.g. 80) on the Service. + This is a mutually exclusive setting with "Name". format: int32 type: integer - protocol: - description: protocol represents the IP protocol for this port. Must be - UDP, TCP, or SCTP. Default is TCP. - type: string type: object x-kubernetes-map-type: atomic - v1.EndpointSlice: - 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. + v1.ServiceCIDR: + 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. example: - endpoints: - - nodeName: nodeName - targetRef: - uid: uid - apiVersion: apiVersion - kind: kind - resourceVersion: resourceVersion - fieldPath: fieldPath - name: name - namespace: namespace - addresses: - - addresses - - addresses - hostname: hostname - zone: zone - hints: - forZones: - - name: name - - name: name - conditions: - ready: true - terminating: true - serving: true - deprecatedTopology: - key: deprecatedTopology - - nodeName: nodeName - targetRef: - uid: uid - apiVersion: apiVersion - kind: kind - resourceVersion: resourceVersion - fieldPath: fieldPath - name: name - namespace: namespace - addresses: - - addresses - - addresses - hostname: hostname - zone: zone - hints: - forZones: - - name: name - - name: name - conditions: - ready: true - terminating: true - serving: true - deprecatedTopology: - key: deprecatedTopology metadata: generation: 6 finalizers: @@ -202948,37 +242852,31 @@ components: name: name namespace: namespace apiVersion: apiVersion - addressType: addressType kind: kind - ports: - - protocol: protocol - port: 0 - appProtocol: appProtocol - name: name - - protocol: protocol - port: 0 - appProtocol: appProtocol - name: name + spec: + cidrs: + - cidrs + - cidrs + status: + conditions: + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + observedGeneration: 5 + status: status + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + observedGeneration: 5 + status: status properties: - addressType: - description: '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.' - type: string apiVersion: description: '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' type: string - endpoints: - description: endpoints is a list of unique endpoints in this slice. Each - slice may include a maximum of 1000 endpoints. - items: - $ref: '#/components/schemas/v1.Endpoint' - type: array - x-kubernetes-list-type: atomic kind: description: 'Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client @@ -202986,28 +242884,19 @@ components: type: string metadata: $ref: '#/components/schemas/v1.ObjectMeta' - ports: - description: 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. - items: - $ref: '#/components/schemas/discovery.v1.EndpointPort' - type: array - x-kubernetes-list-type: atomic - required: - - addressType - - endpoints + spec: + $ref: '#/components/schemas/v1.ServiceCIDRSpec' + status: + $ref: '#/components/schemas/v1.ServiceCIDRStatus' type: object x-kubernetes-group-version-kind: - - group: discovery.k8s.io - kind: EndpointSlice + - group: networking.k8s.io + kind: ServiceCIDR version: v1 x-implements: - io.kubernetes.client.common.KubernetesObject - v1.EndpointSliceList: - description: EndpointSliceList represents a list of endpoint slices + v1.ServiceCIDRList: + description: ServiceCIDRList contains a list of ServiceCIDR objects. example: metadata: remainingItemCount: 1 @@ -203017,56 +242906,7 @@ components: apiVersion: apiVersion kind: kind items: - - endpoints: - - nodeName: nodeName - targetRef: - uid: uid - apiVersion: apiVersion - kind: kind - resourceVersion: resourceVersion - fieldPath: fieldPath - name: name - namespace: namespace - addresses: - - addresses - - addresses - hostname: hostname - zone: zone - hints: - forZones: - - name: name - - name: name - conditions: - ready: true - terminating: true - serving: true - deprecatedTopology: - key: deprecatedTopology - - nodeName: nodeName - targetRef: - uid: uid - apiVersion: apiVersion - kind: kind - resourceVersion: resourceVersion - fieldPath: fieldPath - name: name - namespace: namespace - addresses: - - addresses - - addresses - hostname: hostname - zone: zone - hints: - forZones: - - name: name - - name: name - conditions: - ready: true - terminating: true - serving: true - deprecatedTopology: - key: deprecatedTopology - metadata: + - metadata: generation: 6 finalizers: - finalizers @@ -203113,67 +242953,26 @@ components: name: name namespace: namespace apiVersion: apiVersion - addressType: addressType kind: kind - ports: - - protocol: protocol - port: 0 - appProtocol: appProtocol - name: name - - protocol: protocol - port: 0 - appProtocol: appProtocol - name: name - - endpoints: - - nodeName: nodeName - targetRef: - uid: uid - apiVersion: apiVersion - kind: kind - resourceVersion: resourceVersion - fieldPath: fieldPath - name: name - namespace: namespace - addresses: - - addresses - - addresses - hostname: hostname - zone: zone - hints: - forZones: - - name: name - - name: name - conditions: - ready: true - terminating: true - serving: true - deprecatedTopology: - key: deprecatedTopology - - nodeName: nodeName - targetRef: - uid: uid - apiVersion: apiVersion - kind: kind - resourceVersion: resourceVersion - fieldPath: fieldPath - name: name - namespace: namespace - addresses: - - addresses - - addresses - hostname: hostname - zone: zone - hints: - forZones: - - name: name - - name: name + spec: + cidrs: + - cidrs + - cidrs + status: conditions: - ready: true - terminating: true - serving: true - deprecatedTopology: - key: deprecatedTopology - metadata: + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + observedGeneration: 5 + status: status + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + observedGeneration: 5 + status: status + - metadata: generation: 6 finalizers: - finalizers @@ -203220,17 +243019,25 @@ components: name: name namespace: namespace apiVersion: apiVersion - addressType: addressType kind: kind - ports: - - protocol: protocol - port: 0 - appProtocol: appProtocol - name: name - - protocol: protocol - port: 0 - appProtocol: appProtocol - name: name + spec: + cidrs: + - cidrs + - cidrs + status: + conditions: + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + observedGeneration: 5 + status: status + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + observedGeneration: 5 + status: status properties: apiVersion: description: 'APIVersion defines the versioned schema of this representation @@ -203238,9 +243045,9 @@ components: internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources' type: string items: - description: items is the list of endpoint slices + description: items is the list of ServiceCIDRs. items: - $ref: '#/components/schemas/v1.EndpointSlice' + $ref: '#/components/schemas/v1.ServiceCIDR' type: array kind: description: 'Kind is a string value representing the REST resource this @@ -203253,33 +243060,67 @@ components: - items type: object x-kubernetes-group-version-kind: - - group: discovery.k8s.io - kind: EndpointSliceList + - group: networking.k8s.io + kind: ServiceCIDRList version: v1 x-implements: - io.kubernetes.client.common.KubernetesListObject - v1.ForZone: - description: ForZone provides information about which zones should consume this - endpoint. + v1.ServiceCIDRSpec: + description: ServiceCIDRSpec define the CIDRs the user wants to use for allocating + ClusterIPs for Services. example: - name: name + cidrs: + - cidrs + - cidrs properties: - name: - description: name represents the name of the zone. - type: string - required: - - name + cidrs: + description: 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. + items: + type: string + type: array + x-kubernetes-list-type: atomic type: object - events.v1.Event: - 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. + v1.ServiceCIDRStatus: + description: ServiceCIDRStatus describes the current state of the ServiceCIDR. + example: + conditions: + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + observedGeneration: 5 + status: status + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + observedGeneration: 5 + status: status + properties: + conditions: + description: conditions holds an array of metav1.Condition that describe + the state of the ServiceCIDR. Current service state + items: + $ref: '#/components/schemas/v1.Condition' + type: array + x-kubernetes-patch-strategy: merge + x-kubernetes-list-type: map + x-kubernetes-list-map-keys: + - type + x-kubernetes-patch-merge-key: type + type: object + v1beta1.IPAddress: + 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' example: - note: note - reason: reason metadata: generation: 6 finalizers: @@ -203326,71 +243167,20 @@ components: creationTimestamp: 2000-01-23T04:56:07.000+00:00 name: name namespace: namespace - reportingInstance: reportingInstance - deprecatedCount: 0 - kind: kind - deprecatedSource: - component: component - host: host - type: type - deprecatedLastTimestamp: 2000-01-23T04:56:07.000+00:00 - regarding: - uid: uid - apiVersion: apiVersion - kind: kind - resourceVersion: resourceVersion - fieldPath: fieldPath - name: name - namespace: namespace - deprecatedFirstTimestamp: 2000-01-23T04:56:07.000+00:00 apiVersion: apiVersion - reportingController: reportingController - related: - uid: uid - apiVersion: apiVersion - kind: kind - resourceVersion: resourceVersion - fieldPath: fieldPath - name: name - namespace: namespace - series: - count: 6 - lastObservedTime: 2000-01-23T04:56:07.000+00:00 - eventTime: 2000-01-23T04:56:07.000+00:00 - action: action + kind: kind + spec: + parentRef: + resource: resource + name: name + namespace: namespace + group: group properties: - action: - description: 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. - type: string apiVersion: description: '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' type: string - deprecatedCount: - description: deprecatedCount is the deprecated field assuring backward compatibility - with core.v1 Event type. - format: int32 - type: integer - deprecatedFirstTimestamp: - description: deprecatedFirstTimestamp is the deprecated field assuring backward - compatibility with core.v1 Event type. - format: date-time - type: string - deprecatedLastTimestamp: - description: deprecatedLastTimestamp is the deprecated field assuring backward - compatibility with core.v1 Event type. - format: date-time - type: string - deprecatedSource: - $ref: '#/components/schemas/v1.EventSource' - eventTime: - description: eventTime is the time when this Event was first observed. It - is required. - format: date-time - type: string kind: description: 'Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client @@ -203398,47 +243188,17 @@ components: type: string metadata: $ref: '#/components/schemas/v1.ObjectMeta' - note: - description: 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. - type: string - reason: - description: 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. - type: string - regarding: - $ref: '#/components/schemas/v1.ObjectReference' - related: - $ref: '#/components/schemas/v1.ObjectReference' - reportingController: - description: reportingController is the name of the controller that emitted - this Event, e.g. `kubernetes.io/kubelet`. This field cannot be empty for - new Events. - type: string - reportingInstance: - description: 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. - type: string - series: - $ref: '#/components/schemas/events.v1.EventSeries' - type: - description: 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. - type: string - required: - - eventTime + spec: + $ref: '#/components/schemas/v1beta1.IPAddressSpec' type: object x-kubernetes-group-version-kind: - - group: events.k8s.io - kind: Event - version: v1 + - group: networking.k8s.io + kind: IPAddress + version: v1beta1 x-implements: - io.kubernetes.client.common.KubernetesObject - events.v1.EventList: - description: EventList is a list of Event objects. + v1beta1.IPAddressList: + description: IPAddressList contains a list of IPAddress. example: metadata: remainingItemCount: 1 @@ -203448,9 +243208,7 @@ components: apiVersion: apiVersion kind: kind items: - - note: note - reason: reason - metadata: + - metadata: generation: 6 finalizers: - finalizers @@ -203496,41 +243254,15 @@ components: creationTimestamp: 2000-01-23T04:56:07.000+00:00 name: name namespace: namespace - reportingInstance: reportingInstance - deprecatedCount: 0 - kind: kind - deprecatedSource: - component: component - host: host - type: type - deprecatedLastTimestamp: 2000-01-23T04:56:07.000+00:00 - regarding: - uid: uid - apiVersion: apiVersion - kind: kind - resourceVersion: resourceVersion - fieldPath: fieldPath - name: name - namespace: namespace - deprecatedFirstTimestamp: 2000-01-23T04:56:07.000+00:00 apiVersion: apiVersion - reportingController: reportingController - related: - uid: uid - apiVersion: apiVersion - kind: kind - resourceVersion: resourceVersion - fieldPath: fieldPath - name: name - namespace: namespace - series: - count: 6 - lastObservedTime: 2000-01-23T04:56:07.000+00:00 - eventTime: 2000-01-23T04:56:07.000+00:00 - action: action - - note: note - reason: reason - metadata: + kind: kind + spec: + parentRef: + resource: resource + name: name + namespace: namespace + group: group + - metadata: generation: 6 finalizers: - finalizers @@ -203576,38 +243308,14 @@ components: creationTimestamp: 2000-01-23T04:56:07.000+00:00 name: name namespace: namespace - reportingInstance: reportingInstance - deprecatedCount: 0 - kind: kind - deprecatedSource: - component: component - host: host - type: type - deprecatedLastTimestamp: 2000-01-23T04:56:07.000+00:00 - regarding: - uid: uid - apiVersion: apiVersion - kind: kind - resourceVersion: resourceVersion - fieldPath: fieldPath - name: name - namespace: namespace - deprecatedFirstTimestamp: 2000-01-23T04:56:07.000+00:00 apiVersion: apiVersion - reportingController: reportingController - related: - uid: uid - apiVersion: apiVersion - kind: kind - resourceVersion: resourceVersion - fieldPath: fieldPath - name: name - namespace: namespace - series: - count: 6 - lastObservedTime: 2000-01-23T04:56:07.000+00:00 - eventTime: 2000-01-23T04:56:07.000+00:00 - action: action + kind: kind + spec: + parentRef: + resource: resource + name: name + namespace: namespace + group: group properties: apiVersion: description: 'APIVersion defines the versioned schema of this representation @@ -203615,9 +243323,9 @@ components: internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources' type: string items: - description: items is a list of schema objects. + description: items is the list of IPAddresses. items: - $ref: '#/components/schemas/events.v1.Event' + $ref: '#/components/schemas/v1beta1.IPAddress' type: array kind: description: 'Kind is a string value representing the REST resource this @@ -203630,259 +243338,119 @@ components: - items type: object x-kubernetes-group-version-kind: - - group: events.k8s.io - kind: EventList - version: v1 + - group: networking.k8s.io + kind: IPAddressList + version: v1beta1 x-implements: - io.kubernetes.client.common.KubernetesListObject - events.v1.EventSeries: - 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. + v1beta1.IPAddressSpec: + description: IPAddressSpec describe the attributes in an IP Address. example: - count: 6 - lastObservedTime: 2000-01-23T04:56:07.000+00:00 + parentRef: + resource: resource + name: name + namespace: namespace + group: group properties: - count: - description: count is the number of occurrences in this series up to the - last heartbeat time. - format: int32 - type: integer - lastObservedTime: - description: lastObservedTime is the time when last Event from the series - was seen before last heartbeat. - format: date-time - type: string + parentRef: + $ref: '#/components/schemas/v1beta1.ParentReference' required: - - count - - lastObservedTime - type: object - v1beta2.ExemptPriorityLevelConfiguration: - 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`. - example: - lendablePercent: 0 - nominalConcurrencyShares: 6 - properties: - lendablePercent: - description: |- - `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 ) - format: int32 - type: integer - nominalConcurrencyShares: - description: |- - `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. - format: int32 - type: integer + - parentRef type: object - v1beta2.FlowDistinguisherMethod: - description: FlowDistinguisherMethod specifies the method of a flow distinguisher. + v1beta1.ParentReference: + description: ParentReference describes a reference to a parent object. example: - type: type + resource: resource + name: name + namespace: namespace + group: group properties: - type: - description: '`type` is the type of flow distinguisher method The supported - types are "ByUser" and "ByNamespace". Required.' + group: + description: Group is the group of the object being referenced. + type: string + name: + description: Name is the name of the object being referenced. + type: string + namespace: + description: Namespace is the namespace of the object being referenced. + type: string + resource: + description: Resource is the resource of the object being referenced. type: string required: - - type - type: object - v1beta2.FlowSchema: - 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".' - example: - metadata: - generation: 6 - finalizers: - - finalizers - - finalizers - resourceVersion: resourceVersion - annotations: - key: annotations - generateName: generateName - deletionTimestamp: 2000-01-23T04:56:07.000+00:00 - labels: - key: labels - ownerReferences: - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - selfLink: selfLink - deletionGracePeriodSeconds: 0 - uid: uid - managedFields: - - apiVersion: apiVersion - fieldsV1: '{}' - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - - apiVersion: apiVersion - fieldsV1: '{}' - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - creationTimestamp: 2000-01-23T04:56:07.000+00:00 - name: name - namespace: namespace - apiVersion: apiVersion - kind: kind - spec: - priorityLevelConfiguration: - name: name - matchingPrecedence: 0 - rules: - - nonResourceRules: - - verbs: - - verbs - - verbs - nonResourceURLs: - - nonResourceURLs - - nonResourceURLs - - verbs: - - verbs - - verbs - nonResourceURLs: - - nonResourceURLs - - nonResourceURLs - resourceRules: - - clusterScope: true - resources: - - resources - - resources - verbs: - - verbs - - verbs - apiGroups: - - apiGroups - - apiGroups - namespaces: - - namespaces - - namespaces - - clusterScope: true - resources: - - resources - - resources - verbs: - - verbs - - verbs - apiGroups: - - apiGroups - - apiGroups - namespaces: - - namespaces - - namespaces - subjects: - - kind: kind - serviceAccount: - name: name - namespace: namespace - user: - name: name - group: - name: name - - kind: kind - serviceAccount: - name: name - namespace: namespace - user: - name: name - group: - name: name - - nonResourceRules: - - verbs: - - verbs - - verbs - nonResourceURLs: - - nonResourceURLs - - nonResourceURLs - - verbs: - - verbs - - verbs - nonResourceURLs: - - nonResourceURLs - - nonResourceURLs - resourceRules: - - clusterScope: true - resources: - - resources - - resources - verbs: - - verbs - - verbs - apiGroups: - - apiGroups - - apiGroups - namespaces: - - namespaces - - namespaces - - clusterScope: true - resources: - - resources - - resources - verbs: - - verbs - - verbs - apiGroups: - - apiGroups - - apiGroups - namespaces: - - namespaces - - namespaces - subjects: - - kind: kind - serviceAccount: - name: name - namespace: namespace - user: - name: name - group: - name: name - - kind: kind - serviceAccount: - name: name - namespace: namespace - user: - name: name - group: - name: name - distinguisherMethod: - type: type + - name + - resource + type: object + v1beta1.ServiceCIDR: + 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. + example: + metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: '{}' + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: '{}' + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + creationTimestamp: 2000-01-23T04:56:07.000+00:00 + name: name + namespace: namespace + apiVersion: apiVersion + kind: kind + spec: + cidrs: + - cidrs + - cidrs status: conditions: - reason: reason lastTransitionTime: 2000-01-23T04:56:07.000+00:00 message: message type: type + observedGeneration: 5 status: status - reason: reason lastTransitionTime: 2000-01-23T04:56:07.000+00:00 message: message type: type + observedGeneration: 5 status: status properties: apiVersion: @@ -203898,48 +243466,18 @@ components: metadata: $ref: '#/components/schemas/v1.ObjectMeta' spec: - $ref: '#/components/schemas/v1beta2.FlowSchemaSpec' + $ref: '#/components/schemas/v1beta1.ServiceCIDRSpec' status: - $ref: '#/components/schemas/v1beta2.FlowSchemaStatus' + $ref: '#/components/schemas/v1beta1.ServiceCIDRStatus' type: object x-kubernetes-group-version-kind: - - group: flowcontrol.apiserver.k8s.io - kind: FlowSchema - version: v1beta2 + - group: networking.k8s.io + kind: ServiceCIDR + version: v1beta1 x-implements: - io.kubernetes.client.common.KubernetesObject - v1beta2.FlowSchemaCondition: - description: FlowSchemaCondition describes conditions for a FlowSchema. - example: - reason: reason - lastTransitionTime: 2000-01-23T04:56:07.000+00:00 - message: message - type: type - status: status - properties: - lastTransitionTime: - description: '`lastTransitionTime` is the last time the condition transitioned - from one status to another.' - format: date-time - type: string - message: - description: '`message` is a human-readable message indicating details about - last transition.' - type: string - reason: - description: '`reason` is a unique, one-word, CamelCase reason for the condition''s - last transition.' - type: string - status: - description: '`status` is the status of the condition. Can be True, False, - Unknown. Required.' - type: string - type: - description: '`type` is the type of the condition. Required.' - type: string - type: object - v1beta2.FlowSchemaList: - description: FlowSchemaList is a list of FlowSchema objects. + v1beta1.ServiceCIDRList: + description: ServiceCIDRList contains a list of ServiceCIDR objects. example: metadata: remainingItemCount: 1 @@ -203998,137 +243536,22 @@ components: apiVersion: apiVersion kind: kind spec: - priorityLevelConfiguration: - name: name - matchingPrecedence: 0 - rules: - - nonResourceRules: - - verbs: - - verbs - - verbs - nonResourceURLs: - - nonResourceURLs - - nonResourceURLs - - verbs: - - verbs - - verbs - nonResourceURLs: - - nonResourceURLs - - nonResourceURLs - resourceRules: - - clusterScope: true - resources: - - resources - - resources - verbs: - - verbs - - verbs - apiGroups: - - apiGroups - - apiGroups - namespaces: - - namespaces - - namespaces - - clusterScope: true - resources: - - resources - - resources - verbs: - - verbs - - verbs - apiGroups: - - apiGroups - - apiGroups - namespaces: - - namespaces - - namespaces - subjects: - - kind: kind - serviceAccount: - name: name - namespace: namespace - user: - name: name - group: - name: name - - kind: kind - serviceAccount: - name: name - namespace: namespace - user: - name: name - group: - name: name - - nonResourceRules: - - verbs: - - verbs - - verbs - nonResourceURLs: - - nonResourceURLs - - nonResourceURLs - - verbs: - - verbs - - verbs - nonResourceURLs: - - nonResourceURLs - - nonResourceURLs - resourceRules: - - clusterScope: true - resources: - - resources - - resources - verbs: - - verbs - - verbs - apiGroups: - - apiGroups - - apiGroups - namespaces: - - namespaces - - namespaces - - clusterScope: true - resources: - - resources - - resources - verbs: - - verbs - - verbs - apiGroups: - - apiGroups - - apiGroups - namespaces: - - namespaces - - namespaces - subjects: - - kind: kind - serviceAccount: - name: name - namespace: namespace - user: - name: name - group: - name: name - - kind: kind - serviceAccount: - name: name - namespace: namespace - user: - name: name - group: - name: name - distinguisherMethod: - type: type + cidrs: + - cidrs + - cidrs status: conditions: - reason: reason lastTransitionTime: 2000-01-23T04:56:07.000+00:00 message: message type: type + observedGeneration: 5 status: status - reason: reason lastTransitionTime: 2000-01-23T04:56:07.000+00:00 message: message type: type + observedGeneration: 5 status: status - metadata: generation: 6 @@ -204179,137 +243602,22 @@ components: apiVersion: apiVersion kind: kind spec: - priorityLevelConfiguration: - name: name - matchingPrecedence: 0 - rules: - - nonResourceRules: - - verbs: - - verbs - - verbs - nonResourceURLs: - - nonResourceURLs - - nonResourceURLs - - verbs: - - verbs - - verbs - nonResourceURLs: - - nonResourceURLs - - nonResourceURLs - resourceRules: - - clusterScope: true - resources: - - resources - - resources - verbs: - - verbs - - verbs - apiGroups: - - apiGroups - - apiGroups - namespaces: - - namespaces - - namespaces - - clusterScope: true - resources: - - resources - - resources - verbs: - - verbs - - verbs - apiGroups: - - apiGroups - - apiGroups - namespaces: - - namespaces - - namespaces - subjects: - - kind: kind - serviceAccount: - name: name - namespace: namespace - user: - name: name - group: - name: name - - kind: kind - serviceAccount: - name: name - namespace: namespace - user: - name: name - group: - name: name - - nonResourceRules: - - verbs: - - verbs - - verbs - nonResourceURLs: - - nonResourceURLs - - nonResourceURLs - - verbs: - - verbs - - verbs - nonResourceURLs: - - nonResourceURLs - - nonResourceURLs - resourceRules: - - clusterScope: true - resources: - - resources - - resources - verbs: - - verbs - - verbs - apiGroups: - - apiGroups - - apiGroups - namespaces: - - namespaces - - namespaces - - clusterScope: true - resources: - - resources - - resources - verbs: - - verbs - - verbs - apiGroups: - - apiGroups - - apiGroups - namespaces: - - namespaces - - namespaces - subjects: - - kind: kind - serviceAccount: - name: name - namespace: namespace - user: - name: name - group: - name: name - - kind: kind - serviceAccount: - name: name - namespace: namespace - user: - name: name - group: - name: name - distinguisherMethod: - type: type + cidrs: + - cidrs + - cidrs status: conditions: - reason: reason lastTransitionTime: 2000-01-23T04:56:07.000+00:00 message: message type: type + observedGeneration: 5 status: status - reason: reason lastTransitionTime: 2000-01-23T04:56:07.000+00:00 message: message type: type + observedGeneration: 5 status: status properties: apiVersion: @@ -204318,9 +243626,9 @@ components: internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources' type: string items: - description: '`items` is a list of FlowSchemas.' + description: items is the list of ServiceCIDRs. items: - $ref: '#/components/schemas/v1beta2.FlowSchema' + $ref: '#/components/schemas/v1beta1.ServiceCIDR' type: array kind: description: 'Kind is a string value representing the REST resource this @@ -204333,400 +243641,475 @@ components: - items type: object x-kubernetes-group-version-kind: - - group: flowcontrol.apiserver.k8s.io - kind: FlowSchemaList - version: v1beta2 + - group: networking.k8s.io + kind: ServiceCIDRList + version: v1beta1 x-implements: - io.kubernetes.client.common.KubernetesListObject - v1beta2.FlowSchemaSpec: - description: FlowSchemaSpec describes how the FlowSchema's specification looks - like. + v1beta1.ServiceCIDRSpec: + description: ServiceCIDRSpec define the CIDRs the user wants to use for allocating + ClusterIPs for Services. example: - priorityLevelConfiguration: - name: name - matchingPrecedence: 0 - rules: - - nonResourceRules: - - verbs: - - verbs - - verbs - nonResourceURLs: - - nonResourceURLs - - nonResourceURLs - - verbs: - - verbs - - verbs - nonResourceURLs: - - nonResourceURLs - - nonResourceURLs - resourceRules: - - clusterScope: true - resources: - - resources - - resources - verbs: - - verbs - - verbs - apiGroups: - - apiGroups - - apiGroups - namespaces: - - namespaces - - namespaces - - clusterScope: true - resources: - - resources - - resources - verbs: - - verbs - - verbs - apiGroups: - - apiGroups - - apiGroups - namespaces: - - namespaces - - namespaces - subjects: - - kind: kind - serviceAccount: - name: name - namespace: namespace - user: - name: name - group: - name: name - - kind: kind - serviceAccount: - name: name - namespace: namespace - user: - name: name - group: - name: name - - nonResourceRules: - - verbs: - - verbs - - verbs - nonResourceURLs: - - nonResourceURLs - - nonResourceURLs - - verbs: - - verbs - - verbs - nonResourceURLs: - - nonResourceURLs - - nonResourceURLs - resourceRules: - - clusterScope: true - resources: - - resources - - resources - verbs: - - verbs - - verbs - apiGroups: - - apiGroups - - apiGroups - namespaces: - - namespaces - - namespaces - - clusterScope: true - resources: - - resources - - resources - verbs: - - verbs - - verbs - apiGroups: - - apiGroups - - apiGroups - namespaces: - - namespaces - - namespaces - subjects: - - kind: kind - serviceAccount: - name: name - namespace: namespace - user: - name: name - group: - name: name - - kind: kind - serviceAccount: - name: name - namespace: namespace - user: - name: name - group: - name: name - distinguisherMethod: - type: type + cidrs: + - cidrs + - cidrs properties: - distinguisherMethod: - $ref: '#/components/schemas/v1beta2.FlowDistinguisherMethod' - matchingPrecedence: - description: '`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.' - format: int32 - type: integer - priorityLevelConfiguration: - $ref: '#/components/schemas/v1beta2.PriorityLevelConfigurationReference' - rules: - description: '`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.' + cidrs: + description: 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. items: - $ref: '#/components/schemas/v1beta2.PolicyRulesWithSubjects' + type: string type: array x-kubernetes-list-type: atomic - required: - - priorityLevelConfiguration type: object - v1beta2.FlowSchemaStatus: - description: FlowSchemaStatus represents the current state of a FlowSchema. + v1beta1.ServiceCIDRStatus: + description: ServiceCIDRStatus describes the current state of the ServiceCIDR. example: conditions: - reason: reason lastTransitionTime: 2000-01-23T04:56:07.000+00:00 message: message type: type + observedGeneration: 5 status: status - reason: reason lastTransitionTime: 2000-01-23T04:56:07.000+00:00 message: message type: type + observedGeneration: 5 status: status properties: conditions: - description: '`conditions` is a list of the current states of FlowSchema.' + description: conditions holds an array of metav1.Condition that describe + the state of the ServiceCIDR. Current service state items: - $ref: '#/components/schemas/v1beta2.FlowSchemaCondition' + $ref: '#/components/schemas/v1.Condition' type: array + x-kubernetes-patch-strategy: merge x-kubernetes-list-type: map x-kubernetes-list-map-keys: - type + x-kubernetes-patch-merge-key: type type: object - v1beta2.GroupSubject: - description: GroupSubject holds detailed information for group-kind subject. + v1.Overhead: + description: Overhead structure represents the resource overhead associated + with running a pod. example: - name: name + podFixed: {} properties: - name: - description: 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. - type: string - required: - - name + podFixed: + additionalProperties: + $ref: '#/components/schemas/resource.Quantity' + description: podFixed represents the fixed resource overhead associated + with running a pod. + type: object type: object - v1beta2.LimitResponse: - description: LimitResponse defines how to handle requests that can not be executed - right now. + v1.RuntimeClass: + 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/ example: - queuing: - handSize: 2 - queues: 9 - queueLengthLimit: 7 - type: type + handler: handler + metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: '{}' + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: '{}' + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + creationTimestamp: 2000-01-23T04:56:07.000+00:00 + name: name + namespace: namespace + apiVersion: apiVersion + kind: kind + overhead: + podFixed: {} + scheduling: + tolerations: + - effect: effect + tolerationSeconds: 9 + value: value + key: key + operator: operator + - effect: effect + tolerationSeconds: 9 + value: value + key: key + operator: operator + nodeSelector: + key: nodeSelector properties: - queuing: - $ref: '#/components/schemas/v1beta2.QueuingConfiguration' - type: - description: '`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.' + apiVersion: + description: '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' + type: string + handler: + description: 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. + type: string + kind: + description: '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' type: string + metadata: + $ref: '#/components/schemas/v1.ObjectMeta' + overhead: + $ref: '#/components/schemas/v1.Overhead' + scheduling: + $ref: '#/components/schemas/v1.Scheduling' required: - - type + - handler type: object - x-kubernetes-unions: - - discriminator: type - fields-to-discriminateBy: - queuing: Queuing - v1beta2.LimitedPriorityLevelConfiguration: - 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? + x-kubernetes-group-version-kind: + - group: node.k8s.io + kind: RuntimeClass + version: v1 + x-implements: + - io.kubernetes.client.common.KubernetesObject + v1.RuntimeClassList: + description: RuntimeClassList is a list of RuntimeClass objects. example: - lendablePercent: 5 - borrowingLimitPercent: 5 - limitResponse: - queuing: - handSize: 2 - queues: 9 - queueLengthLimit: 7 - type: type - assuredConcurrencyShares: 1 + metadata: + remainingItemCount: 1 + continue: continue + resourceVersion: resourceVersion + selfLink: selfLink + apiVersion: apiVersion + kind: kind + items: + - handler: handler + metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: '{}' + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: '{}' + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + creationTimestamp: 2000-01-23T04:56:07.000+00:00 + name: name + namespace: namespace + apiVersion: apiVersion + kind: kind + overhead: + podFixed: {} + scheduling: + tolerations: + - effect: effect + tolerationSeconds: 9 + value: value + key: key + operator: operator + - effect: effect + tolerationSeconds: 9 + value: value + key: key + operator: operator + nodeSelector: + key: nodeSelector + - handler: handler + metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: '{}' + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: '{}' + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + creationTimestamp: 2000-01-23T04:56:07.000+00:00 + name: name + namespace: namespace + apiVersion: apiVersion + kind: kind + overhead: + podFixed: {} + scheduling: + tolerations: + - effect: effect + tolerationSeconds: 9 + value: value + key: key + operator: operator + - effect: effect + tolerationSeconds: 9 + value: value + key: key + operator: operator + nodeSelector: + key: nodeSelector properties: - assuredConcurrencyShares: - description: |- - `assuredConcurrencyShares` (ACS) configures the execution limit, which is a limit on the number of requests of this priority level that may be exeucting at a given time. ACS must be a positive number. The server's concurrency limit (SCL) is divided among the concurrency-controlled priority levels in proportion to their assured concurrency shares. This produces the assured concurrency value (ACV) --- the number of requests that may be executing at a time --- for each such priority level: - - ACV(l) = ceil( SCL * ACS(l) / ( sum[priority levels k] ACS(k) ) ) - - bigger numbers of ACS mean more reserved concurrent requests (at the expense of every other PL). This field has a default value of 30. - format: int32 - type: integer - borrowingLimitPercent: - description: |- - `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. - format: int32 - type: integer - lendablePercent: - description: |- - `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 ) - format: int32 - type: integer - limitResponse: - $ref: '#/components/schemas/v1beta2.LimitResponse' + apiVersion: + description: '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' + type: string + items: + description: items is a list of schema objects. + items: + $ref: '#/components/schemas/v1.RuntimeClass' + type: array + kind: + description: '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' + type: string + metadata: + $ref: '#/components/schemas/v1.ListMeta' + required: + - items type: object - v1beta2.NonResourcePolicyRule: - 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. + x-kubernetes-group-version-kind: + - group: node.k8s.io + kind: RuntimeClassList + version: v1 + x-implements: + - io.kubernetes.client.common.KubernetesListObject + v1.Scheduling: + description: Scheduling specifies the scheduling constraints for nodes supporting + a RuntimeClass. example: - verbs: - - verbs - - verbs - nonResourceURLs: - - nonResourceURLs - - nonResourceURLs + tolerations: + - effect: effect + tolerationSeconds: 9 + value: value + key: key + operator: operator + - effect: effect + tolerationSeconds: 9 + value: value + key: key + operator: operator + nodeSelector: + key: nodeSelector properties: - nonResourceURLs: - description: |- - `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. - items: + nodeSelector: + additionalProperties: type: string - type: array - x-kubernetes-list-type: set - verbs: - description: '`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.' + description: 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. + type: object + x-kubernetes-map-type: atomic + tolerations: + description: 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. items: - type: string + $ref: '#/components/schemas/v1.Toleration' type: array - x-kubernetes-list-type: set - required: - - nonResourceURLs - - verbs + x-kubernetes-list-type: atomic type: object - v1beta2.PolicyRulesWithSubjects: - 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. + v1.Eviction: + 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. example: - nonResourceRules: - - verbs: - - verbs - - verbs - nonResourceURLs: - - nonResourceURLs - - nonResourceURLs - - verbs: - - verbs - - verbs - nonResourceURLs: - - nonResourceURLs - - nonResourceURLs - resourceRules: - - clusterScope: true - resources: - - resources - - resources - verbs: - - verbs - - verbs - apiGroups: - - apiGroups - - apiGroups - namespaces: - - namespaces - - namespaces - - clusterScope: true - resources: - - resources - - resources - verbs: - - verbs - - verbs - apiGroups: - - apiGroups - - apiGroups - namespaces: - - namespaces - - namespaces - subjects: - - kind: kind - serviceAccount: - name: name - namespace: namespace - user: - name: name - group: - name: name - - kind: kind - serviceAccount: - name: name - namespace: namespace - user: + deleteOptions: + orphanDependents: true + apiVersion: apiVersion + dryRun: + - dryRun + - dryRun + kind: kind + preconditions: + uid: uid + resourceVersion: resourceVersion + ignoreStoreReadErrorWithClusterBreakingPotential: true + gracePeriodSeconds: 0 + propagationPolicy: propagationPolicy + metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind name: name - group: + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind name: name - properties: - nonResourceRules: - description: '`nonResourceRules` is a list of NonResourcePolicyRules that - identify matching requests according to their verb and the target non-resource - URL.' - items: - $ref: '#/components/schemas/v1beta2.NonResourcePolicyRule' - type: array - x-kubernetes-list-type: atomic - resourceRules: - description: '`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.' - items: - $ref: '#/components/schemas/v1beta2.ResourcePolicyRule' - type: array - x-kubernetes-list-type: atomic - subjects: - description: 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. - items: - $ref: '#/components/schemas/v1beta2.Subject' - type: array - x-kubernetes-list-type: atomic - required: - - subjects + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: '{}' + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: '{}' + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + creationTimestamp: 2000-01-23T04:56:07.000+00:00 + name: name + namespace: namespace + apiVersion: apiVersion + kind: kind + properties: + apiVersion: + description: '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' + type: string + deleteOptions: + $ref: '#/components/schemas/v1.DeleteOptions' + kind: + description: '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' + type: string + metadata: + $ref: '#/components/schemas/v1.ObjectMeta' type: object - v1beta2.PriorityLevelConfiguration: - description: PriorityLevelConfiguration represents the configuration of a priority - level. + x-kubernetes-group-version-kind: + - group: policy + kind: Eviction + version: v1 + x-implements: + - io.kubernetes.client.common.KubernetesObject + v1.PodDisruptionBudget: + description: PodDisruptionBudget is an object to define the max disruption that + can be caused to a collection of pods example: metadata: generation: 6 @@ -204777,32 +244160,44 @@ components: apiVersion: apiVersion kind: kind spec: - limited: - lendablePercent: 5 - borrowingLimitPercent: 5 - limitResponse: - queuing: - handSize: 2 - queues: 9 - queueLengthLimit: 7 - type: type - assuredConcurrencyShares: 1 - exempt: - lendablePercent: 0 - nominalConcurrencyShares: 6 - type: type + minAvailable: minAvailable + maxUnavailable: maxUnavailable + unhealthyPodEvictionPolicy: unhealthyPodEvictionPolicy + selector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels status: + currentHealthy: 0 + expectedPods: 5 + disruptionsAllowed: 1 + disruptedPods: + key: 2000-01-23T04:56:07.000+00:00 conditions: - reason: reason lastTransitionTime: 2000-01-23T04:56:07.000+00:00 message: message type: type + observedGeneration: 5 status: status - reason: reason lastTransitionTime: 2000-01-23T04:56:07.000+00:00 message: message type: type + observedGeneration: 5 status: status + observedGeneration: 5 + desiredHealthy: 6 properties: apiVersion: description: 'APIVersion defines the versioned schema of this representation @@ -204817,50 +244212,18 @@ components: metadata: $ref: '#/components/schemas/v1.ObjectMeta' spec: - $ref: '#/components/schemas/v1beta2.PriorityLevelConfigurationSpec' + $ref: '#/components/schemas/v1.PodDisruptionBudgetSpec' status: - $ref: '#/components/schemas/v1beta2.PriorityLevelConfigurationStatus' + $ref: '#/components/schemas/v1.PodDisruptionBudgetStatus' type: object x-kubernetes-group-version-kind: - - group: flowcontrol.apiserver.k8s.io - kind: PriorityLevelConfiguration - version: v1beta2 + - group: policy + kind: PodDisruptionBudget + version: v1 x-implements: - io.kubernetes.client.common.KubernetesObject - v1beta2.PriorityLevelConfigurationCondition: - description: PriorityLevelConfigurationCondition defines the condition of priority - level. - example: - reason: reason - lastTransitionTime: 2000-01-23T04:56:07.000+00:00 - message: message - type: type - status: status - properties: - lastTransitionTime: - description: '`lastTransitionTime` is the last time the condition transitioned - from one status to another.' - format: date-time - type: string - message: - description: '`message` is a human-readable message indicating details about - last transition.' - type: string - reason: - description: '`reason` is a unique, one-word, CamelCase reason for the condition''s - last transition.' - type: string - status: - description: '`status` is the status of the condition. Can be True, False, - Unknown. Required.' - type: string - type: - description: '`type` is the type of the condition. Required.' - type: string - type: object - v1beta2.PriorityLevelConfigurationList: - description: PriorityLevelConfigurationList is a list of PriorityLevelConfiguration - objects. + v1.PodDisruptionBudgetList: + description: PodDisruptionBudgetList is a collection of PodDisruptionBudgets. example: metadata: remainingItemCount: 1 @@ -204919,32 +244282,44 @@ components: apiVersion: apiVersion kind: kind spec: - limited: - lendablePercent: 5 - borrowingLimitPercent: 5 - limitResponse: - queuing: - handSize: 2 - queues: 9 - queueLengthLimit: 7 - type: type - assuredConcurrencyShares: 1 - exempt: - lendablePercent: 0 - nominalConcurrencyShares: 6 - type: type + minAvailable: minAvailable + maxUnavailable: maxUnavailable + unhealthyPodEvictionPolicy: unhealthyPodEvictionPolicy + selector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels status: + currentHealthy: 0 + expectedPods: 5 + disruptionsAllowed: 1 + disruptedPods: + key: 2000-01-23T04:56:07.000+00:00 conditions: - reason: reason lastTransitionTime: 2000-01-23T04:56:07.000+00:00 message: message type: type + observedGeneration: 5 status: status - reason: reason lastTransitionTime: 2000-01-23T04:56:07.000+00:00 message: message type: type + observedGeneration: 5 status: status + observedGeneration: 5 + desiredHealthy: 6 - metadata: generation: 6 finalizers: @@ -204994,32 +244369,44 @@ components: apiVersion: apiVersion kind: kind spec: - limited: - lendablePercent: 5 - borrowingLimitPercent: 5 - limitResponse: - queuing: - handSize: 2 - queues: 9 - queueLengthLimit: 7 - type: type - assuredConcurrencyShares: 1 - exempt: - lendablePercent: 0 - nominalConcurrencyShares: 6 - type: type + minAvailable: minAvailable + maxUnavailable: maxUnavailable + unhealthyPodEvictionPolicy: unhealthyPodEvictionPolicy + selector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels status: + currentHealthy: 0 + expectedPods: 5 + disruptionsAllowed: 1 + disruptedPods: + key: 2000-01-23T04:56:07.000+00:00 conditions: - reason: reason lastTransitionTime: 2000-01-23T04:56:07.000+00:00 message: message type: type + observedGeneration: 5 status: status - reason: reason lastTransitionTime: 2000-01-23T04:56:07.000+00:00 message: message type: type + observedGeneration: 5 status: status + observedGeneration: 5 + desiredHealthy: 6 properties: apiVersion: description: 'APIVersion defines the versioned schema of this representation @@ -205027,9 +244414,9 @@ components: internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources' type: string items: - description: '`items` is a list of request-priorities.' + description: Items is a list of PodDisruptionBudgets items: - $ref: '#/components/schemas/v1beta2.PriorityLevelConfiguration' + $ref: '#/components/schemas/v1.PodDisruptionBudget' type: array kind: description: 'Kind is a string value representing the REST resource this @@ -205042,304 +244429,337 @@ components: - items type: object x-kubernetes-group-version-kind: - - group: flowcontrol.apiserver.k8s.io - kind: PriorityLevelConfigurationList - version: v1beta2 + - group: policy + kind: PodDisruptionBudgetList + version: v1 x-implements: - io.kubernetes.client.common.KubernetesListObject - v1beta2.PriorityLevelConfigurationReference: - description: PriorityLevelConfigurationReference contains information that points - to the "request-priority" being used. + v1.PodDisruptionBudgetSpec: + description: PodDisruptionBudgetSpec is a description of a PodDisruptionBudget. example: - name: name + minAvailable: minAvailable + maxUnavailable: maxUnavailable + unhealthyPodEvictionPolicy: unhealthyPodEvictionPolicy + selector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels properties: - name: - description: '`name` is the name of the priority level configuration being - referenced Required.' + maxUnavailable: + description: 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. + format: int-or-string type: string - required: - - name - type: object - v1beta2.PriorityLevelConfigurationSpec: - description: PriorityLevelConfigurationSpec specifies the configuration of a - priority level. - example: - limited: - lendablePercent: 5 - borrowingLimitPercent: 5 - limitResponse: - queuing: - handSize: 2 - queues: 9 - queueLengthLimit: 7 - type: type - assuredConcurrencyShares: 1 - exempt: - lendablePercent: 0 - nominalConcurrencyShares: 6 - type: type - properties: - exempt: - $ref: '#/components/schemas/v1beta2.ExemptPriorityLevelConfiguration' - limited: - $ref: '#/components/schemas/v1beta2.LimitedPriorityLevelConfiguration' - type: - description: '`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.' + minAvailable: + description: 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. + format: int-or-string + type: string + selector: + $ref: '#/components/schemas/v1.LabelSelector' + unhealthyPodEvictionPolicy: + description: |- + 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. type: string - required: - - type type: object - x-kubernetes-unions: - - discriminator: type - fields-to-discriminateBy: - exempt: Exempt - limited: Limited - v1beta2.PriorityLevelConfigurationStatus: - description: PriorityLevelConfigurationStatus represents the current state of - a "request-priority". + v1.PodDisruptionBudgetStatus: + description: PodDisruptionBudgetStatus represents information about the status + of a PodDisruptionBudget. Status may trail the actual state of a system. example: + currentHealthy: 0 + expectedPods: 5 + disruptionsAllowed: 1 + disruptedPods: + key: 2000-01-23T04:56:07.000+00:00 conditions: - reason: reason lastTransitionTime: 2000-01-23T04:56:07.000+00:00 message: message type: type + observedGeneration: 5 status: status - reason: reason lastTransitionTime: 2000-01-23T04:56:07.000+00:00 message: message type: type + observedGeneration: 5 status: status + observedGeneration: 5 + desiredHealthy: 6 properties: conditions: - description: '`conditions` is the current state of "request-priority".' + description: |- + 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. items: - $ref: '#/components/schemas/v1beta2.PriorityLevelConfigurationCondition' + $ref: '#/components/schemas/v1.Condition' type: array + x-kubernetes-patch-strategy: merge x-kubernetes-list-type: map x-kubernetes-list-map-keys: - type - type: object - v1beta2.QueuingConfiguration: - description: QueuingConfiguration holds the configuration parameters for queuing - example: - handSize: 2 - queues: 9 - queueLengthLimit: 7 - properties: - handSize: - description: '`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.' + x-kubernetes-patch-merge-key: type + currentHealthy: + description: current number of healthy pods format: int32 type: integer - queueLengthLimit: - description: '`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.' + desiredHealthy: + description: minimum desired number of healthy pods format: int32 type: integer - queues: - description: '`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.' + disruptedPods: + additionalProperties: + description: 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. + format: date-time + type: string + description: 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. + type: object + disruptionsAllowed: + description: Number of pod disruptions that are currently allowed. + format: int32 + type: integer + expectedPods: + description: total number of pods counted by this disruption budget format: int32 type: integer + observedGeneration: + description: 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. + format: int64 + type: integer + required: + - currentHealthy + - desiredHealthy + - disruptionsAllowed + - expectedPods type: object - v1beta2.ResourcePolicyRule: - 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.' + v1.AggregationRule: + description: AggregationRule describes how to locate ClusterRoles to aggregate + into the ClusterRole example: - clusterScope: true - resources: - - resources - - resources - verbs: - - verbs - - verbs - apiGroups: - - apiGroups - - apiGroups - namespaces: - - namespaces - - namespaces + clusterRoleSelectors: + - matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + - matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels properties: - apiGroups: - description: '`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.' - items: - type: string - type: array - x-kubernetes-list-type: set - clusterScope: - description: '`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.' - type: boolean - namespaces: - description: '`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.' - items: - type: string - type: array - x-kubernetes-list-type: set - resources: - description: '`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.' - items: - type: string - type: array - x-kubernetes-list-type: set - verbs: - description: '`verbs` is a list of matching verbs and may not be empty. - "*" matches all verbs and, if present, must be the only entry. Required.' + clusterRoleSelectors: + description: 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 items: - type: string + $ref: '#/components/schemas/v1.LabelSelector' type: array - x-kubernetes-list-type: set - required: - - apiGroups - - resources - - verbs - type: object - v1beta2.ServiceAccountSubject: - description: ServiceAccountSubject holds detailed information for service-account-kind - subject. - example: - name: name - namespace: namespace - properties: - name: - description: '`name` is the name of matching ServiceAccount objects, or - "*" to match regardless of name. Required.' - type: string - namespace: - description: '`namespace` is the namespace of matching ServiceAccount objects. - Required.' - type: string - required: - - name - - namespace + x-kubernetes-list-type: atomic type: object - v1beta2.Subject: - 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. + v1.ClusterRole: + description: ClusterRole is a cluster level, logical grouping of PolicyRules + that can be referenced as a unit by a RoleBinding or ClusterRoleBinding. example: - kind: kind - serviceAccount: + metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: '{}' + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: '{}' + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + creationTimestamp: 2000-01-23T04:56:07.000+00:00 name: name namespace: namespace - user: - name: name - group: - name: name - properties: - group: - $ref: '#/components/schemas/v1beta2.GroupSubject' - kind: - description: '`kind` indicates which one of the other fields is non-empty. - Required' - type: string - serviceAccount: - $ref: '#/components/schemas/v1beta2.ServiceAccountSubject' - user: - $ref: '#/components/schemas/v1beta2.UserSubject' - required: - - kind - type: object - x-kubernetes-unions: - - discriminator: kind - fields-to-discriminateBy: - group: Group - serviceAccount: ServiceAccount - user: User - v1beta2.UserSubject: - description: UserSubject holds detailed information for user-kind subject. - example: - name: name + aggregationRule: + clusterRoleSelectors: + - matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + - matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + apiVersion: apiVersion + kind: kind + rules: + - resourceNames: + - resourceNames + - resourceNames + resources: + - resources + - resources + verbs: + - verbs + - verbs + apiGroups: + - apiGroups + - apiGroups + nonResourceURLs: + - nonResourceURLs + - nonResourceURLs + - resourceNames: + - resourceNames + - resourceNames + resources: + - resources + - resources + verbs: + - verbs + - verbs + apiGroups: + - apiGroups + - apiGroups + nonResourceURLs: + - nonResourceURLs + - nonResourceURLs properties: - name: - description: '`name` is the username that matches, or "*" to match all usernames. - Required.' + aggregationRule: + $ref: '#/components/schemas/v1.AggregationRule' + apiVersion: + description: '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' type: string - required: - - name - type: object - v1beta3.ExemptPriorityLevelConfiguration: - 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`. - example: - lendablePercent: 0 - nominalConcurrencyShares: 6 - properties: - lendablePercent: - description: |- - `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 ) - format: int32 - type: integer - nominalConcurrencyShares: - description: |- - `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. - format: int32 - type: integer - type: object - v1beta3.FlowDistinguisherMethod: - description: FlowDistinguisherMethod specifies the method of a flow distinguisher. - example: - type: type - properties: - type: - description: '`type` is the type of flow distinguisher method The supported - types are "ByUser" and "ByNamespace". Required.' + kind: + description: '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' type: string - required: - - type + metadata: + $ref: '#/components/schemas/v1.ObjectMeta' + rules: + description: Rules holds all the PolicyRules for this ClusterRole + items: + $ref: '#/components/schemas/v1.PolicyRule' + type: array + x-kubernetes-list-type: atomic type: object - v1beta3.FlowSchema: - 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".' + x-kubernetes-group-version-kind: + - group: rbac.authorization.k8s.io + kind: ClusterRole + version: v1 + x-implements: + - io.kubernetes.client.common.KubernetesObject + v1.ClusterRoleBinding: + description: ClusterRoleBinding references a ClusterRole, but not contain it. It + can reference a ClusterRole in the global namespace, and adds who information + via Subject. example: metadata: generation: 6 @@ -205389,139 +244809,19 @@ components: namespace: namespace apiVersion: apiVersion kind: kind - spec: - priorityLevelConfiguration: - name: name - matchingPrecedence: 0 - rules: - - nonResourceRules: - - verbs: - - verbs - - verbs - nonResourceURLs: - - nonResourceURLs - - nonResourceURLs - - verbs: - - verbs - - verbs - nonResourceURLs: - - nonResourceURLs - - nonResourceURLs - resourceRules: - - clusterScope: true - resources: - - resources - - resources - verbs: - - verbs - - verbs - apiGroups: - - apiGroups - - apiGroups - namespaces: - - namespaces - - namespaces - - clusterScope: true - resources: - - resources - - resources - verbs: - - verbs - - verbs - apiGroups: - - apiGroups - - apiGroups - namespaces: - - namespaces - - namespaces - subjects: - - kind: kind - serviceAccount: - name: name - namespace: namespace - user: - name: name - group: - name: name - - kind: kind - serviceAccount: - name: name - namespace: namespace - user: - name: name - group: - name: name - - nonResourceRules: - - verbs: - - verbs - - verbs - nonResourceURLs: - - nonResourceURLs - - nonResourceURLs - - verbs: - - verbs - - verbs - nonResourceURLs: - - nonResourceURLs - - nonResourceURLs - resourceRules: - - clusterScope: true - resources: - - resources - - resources - verbs: - - verbs - - verbs - apiGroups: - - apiGroups - - apiGroups - namespaces: - - namespaces - - namespaces - - clusterScope: true - resources: - - resources - - resources - verbs: - - verbs - - verbs - apiGroups: - - apiGroups - - apiGroups - namespaces: - - namespaces - - namespaces - subjects: - - kind: kind - serviceAccount: - name: name - namespace: namespace - user: - name: name - group: - name: name - - kind: kind - serviceAccount: - name: name - namespace: namespace - user: - name: name - group: - name: name - distinguisherMethod: - type: type - status: - conditions: - - reason: reason - lastTransitionTime: 2000-01-23T04:56:07.000+00:00 - message: message - type: type - status: status - - reason: reason - lastTransitionTime: 2000-01-23T04:56:07.000+00:00 - message: message - type: type - status: status + subjects: + - apiGroup: apiGroup + kind: kind + name: name + namespace: namespace + - apiGroup: apiGroup + kind: kind + name: name + namespace: namespace + roleRef: + apiGroup: apiGroup + kind: kind + name: name properties: apiVersion: description: 'APIVersion defines the versioned schema of this representation @@ -205535,49 +244835,185 @@ components: type: string metadata: $ref: '#/components/schemas/v1.ObjectMeta' - spec: - $ref: '#/components/schemas/v1beta3.FlowSchemaSpec' - status: - $ref: '#/components/schemas/v1beta3.FlowSchemaStatus' + roleRef: + $ref: '#/components/schemas/v1.RoleRef' + subjects: + description: Subjects holds references to the objects the role applies to. + items: + $ref: '#/components/schemas/rbac.v1.Subject' + type: array + x-kubernetes-list-type: atomic + required: + - roleRef type: object x-kubernetes-group-version-kind: - - group: flowcontrol.apiserver.k8s.io - kind: FlowSchema - version: v1beta3 + - group: rbac.authorization.k8s.io + kind: ClusterRoleBinding + version: v1 x-implements: - io.kubernetes.client.common.KubernetesObject - v1beta3.FlowSchemaCondition: - description: FlowSchemaCondition describes conditions for a FlowSchema. + v1.ClusterRoleBindingList: + description: ClusterRoleBindingList is a collection of ClusterRoleBindings example: - reason: reason - lastTransitionTime: 2000-01-23T04:56:07.000+00:00 - message: message - type: type - status: status + metadata: + remainingItemCount: 1 + continue: continue + resourceVersion: resourceVersion + selfLink: selfLink + apiVersion: apiVersion + kind: kind + items: + - metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: '{}' + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: '{}' + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + creationTimestamp: 2000-01-23T04:56:07.000+00:00 + name: name + namespace: namespace + apiVersion: apiVersion + kind: kind + subjects: + - apiGroup: apiGroup + kind: kind + name: name + namespace: namespace + - apiGroup: apiGroup + kind: kind + name: name + namespace: namespace + roleRef: + apiGroup: apiGroup + kind: kind + name: name + - metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: '{}' + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: '{}' + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + creationTimestamp: 2000-01-23T04:56:07.000+00:00 + name: name + namespace: namespace + apiVersion: apiVersion + kind: kind + subjects: + - apiGroup: apiGroup + kind: kind + name: name + namespace: namespace + - apiGroup: apiGroup + kind: kind + name: name + namespace: namespace + roleRef: + apiGroup: apiGroup + kind: kind + name: name properties: - lastTransitionTime: - description: '`lastTransitionTime` is the last time the condition transitioned - from one status to another.' - format: date-time - type: string - message: - description: '`message` is a human-readable message indicating details about - last transition.' - type: string - reason: - description: '`reason` is a unique, one-word, CamelCase reason for the condition''s - last transition.' - type: string - status: - description: '`status` is the status of the condition. Can be True, False, - Unknown. Required.' + apiVersion: + description: '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' type: string - type: - description: '`type` is the type of the condition. Required.' + items: + description: Items is a list of ClusterRoleBindings + items: + $ref: '#/components/schemas/v1.ClusterRoleBinding' + type: array + kind: + description: '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' type: string + metadata: + $ref: '#/components/schemas/v1.ListMeta' + required: + - items type: object - v1beta3.FlowSchemaList: - description: FlowSchemaList is a list of FlowSchema objects. + x-kubernetes-group-version-kind: + - group: rbac.authorization.k8s.io + kind: ClusterRoleBindingList + version: v1 + x-implements: + - io.kubernetes.client.common.KubernetesListObject + v1.ClusterRoleList: + description: ClusterRoleList is a collection of ClusterRoles example: metadata: remainingItemCount: 1 @@ -205633,141 +245069,67 @@ components: creationTimestamp: 2000-01-23T04:56:07.000+00:00 name: name namespace: namespace + aggregationRule: + clusterRoleSelectors: + - matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + - matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels apiVersion: apiVersion kind: kind - spec: - priorityLevelConfiguration: - name: name - matchingPrecedence: 0 - rules: - - nonResourceRules: - - verbs: - - verbs - - verbs - nonResourceURLs: - - nonResourceURLs - - nonResourceURLs - - verbs: - - verbs - - verbs - nonResourceURLs: - - nonResourceURLs - - nonResourceURLs - resourceRules: - - clusterScope: true - resources: - - resources - - resources - verbs: - - verbs - - verbs - apiGroups: - - apiGroups - - apiGroups - namespaces: - - namespaces - - namespaces - - clusterScope: true - resources: - - resources - - resources - verbs: - - verbs - - verbs - apiGroups: - - apiGroups - - apiGroups - namespaces: - - namespaces - - namespaces - subjects: - - kind: kind - serviceAccount: - name: name - namespace: namespace - user: - name: name - group: - name: name - - kind: kind - serviceAccount: - name: name - namespace: namespace - user: - name: name - group: - name: name - - nonResourceRules: - - verbs: - - verbs - - verbs - nonResourceURLs: - - nonResourceURLs - - nonResourceURLs - - verbs: - - verbs - - verbs - nonResourceURLs: - - nonResourceURLs - - nonResourceURLs - resourceRules: - - clusterScope: true - resources: - - resources - - resources - verbs: - - verbs - - verbs - apiGroups: - - apiGroups - - apiGroups - namespaces: - - namespaces - - namespaces - - clusterScope: true - resources: - - resources - - resources - verbs: - - verbs - - verbs - apiGroups: - - apiGroups - - apiGroups - namespaces: - - namespaces - - namespaces - subjects: - - kind: kind - serviceAccount: - name: name - namespace: namespace - user: - name: name - group: - name: name - - kind: kind - serviceAccount: - name: name - namespace: namespace - user: - name: name - group: - name: name - distinguisherMethod: - type: type - status: - conditions: - - reason: reason - lastTransitionTime: 2000-01-23T04:56:07.000+00:00 - message: message - type: type - status: status - - reason: reason - lastTransitionTime: 2000-01-23T04:56:07.000+00:00 - message: message - type: type - status: status + rules: + - resourceNames: + - resourceNames + - resourceNames + resources: + - resources + - resources + verbs: + - verbs + - verbs + apiGroups: + - apiGroups + - apiGroups + nonResourceURLs: + - nonResourceURLs + - nonResourceURLs + - resourceNames: + - resourceNames + - resourceNames + resources: + - resources + - resources + verbs: + - verbs + - verbs + apiGroups: + - apiGroups + - apiGroups + nonResourceURLs: + - nonResourceURLs + - nonResourceURLs - metadata: generation: 6 finalizers: @@ -205814,204 +245176,40 @@ components: creationTimestamp: 2000-01-23T04:56:07.000+00:00 name: name namespace: namespace + aggregationRule: + clusterRoleSelectors: + - matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + - matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels apiVersion: apiVersion kind: kind - spec: - priorityLevelConfiguration: - name: name - matchingPrecedence: 0 - rules: - - nonResourceRules: - - verbs: - - verbs - - verbs - nonResourceURLs: - - nonResourceURLs - - nonResourceURLs - - verbs: - - verbs - - verbs - nonResourceURLs: - - nonResourceURLs - - nonResourceURLs - resourceRules: - - clusterScope: true - resources: - - resources - - resources - verbs: - - verbs - - verbs - apiGroups: - - apiGroups - - apiGroups - namespaces: - - namespaces - - namespaces - - clusterScope: true - resources: - - resources - - resources - verbs: - - verbs - - verbs - apiGroups: - - apiGroups - - apiGroups - namespaces: - - namespaces - - namespaces - subjects: - - kind: kind - serviceAccount: - name: name - namespace: namespace - user: - name: name - group: - name: name - - kind: kind - serviceAccount: - name: name - namespace: namespace - user: - name: name - group: - name: name - - nonResourceRules: - - verbs: - - verbs - - verbs - nonResourceURLs: - - nonResourceURLs - - nonResourceURLs - - verbs: - - verbs - - verbs - nonResourceURLs: - - nonResourceURLs - - nonResourceURLs - resourceRules: - - clusterScope: true - resources: - - resources - - resources - verbs: - - verbs - - verbs - apiGroups: - - apiGroups - - apiGroups - namespaces: - - namespaces - - namespaces - - clusterScope: true - resources: - - resources - - resources - verbs: - - verbs - - verbs - apiGroups: - - apiGroups - - apiGroups - namespaces: - - namespaces - - namespaces - subjects: - - kind: kind - serviceAccount: - name: name - namespace: namespace - user: - name: name - group: - name: name - - kind: kind - serviceAccount: - name: name - namespace: namespace - user: - name: name - group: - name: name - distinguisherMethod: - type: type - status: - conditions: - - reason: reason - lastTransitionTime: 2000-01-23T04:56:07.000+00:00 - message: message - type: type - status: status - - reason: reason - lastTransitionTime: 2000-01-23T04:56:07.000+00:00 - message: message - type: type - status: status - properties: - apiVersion: - description: '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' - type: string - items: - description: '`items` is a list of FlowSchemas.' - items: - $ref: '#/components/schemas/v1beta3.FlowSchema' - type: array - kind: - description: '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' - type: string - metadata: - $ref: '#/components/schemas/v1.ListMeta' - required: - - items - type: object - x-kubernetes-group-version-kind: - - group: flowcontrol.apiserver.k8s.io - kind: FlowSchemaList - version: v1beta3 - x-implements: - - io.kubernetes.client.common.KubernetesListObject - v1beta3.FlowSchemaSpec: - description: FlowSchemaSpec describes how the FlowSchema's specification looks - like. - example: - priorityLevelConfiguration: - name: name - matchingPrecedence: 0 - rules: - - nonResourceRules: - - verbs: - - verbs - - verbs - nonResourceURLs: - - nonResourceURLs - - nonResourceURLs - - verbs: - - verbs - - verbs - nonResourceURLs: - - nonResourceURLs - - nonResourceURLs - resourceRules: - - clusterScope: true - resources: - - resources - - resources - verbs: - - verbs - - verbs - apiGroups: - - apiGroups - - apiGroups - namespaces: - - namespaces - - namespaces - - clusterScope: true + rules: + - resourceNames: + - resourceNames + - resourceNames resources: - resources - resources @@ -206021,54 +245219,12 @@ components: apiGroups: - apiGroups - apiGroups - namespaces: - - namespaces - - namespaces - subjects: - - kind: kind - serviceAccount: - name: name - namespace: namespace - user: - name: name - group: - name: name - - kind: kind - serviceAccount: - name: name - namespace: namespace - user: - name: name - group: - name: name - - nonResourceRules: - - verbs: - - verbs - - verbs - nonResourceURLs: - - nonResourceURLs - - nonResourceURLs - - verbs: - - verbs - - verbs nonResourceURLs: - nonResourceURLs - nonResourceURLs - resourceRules: - - clusterScope: true - resources: - - resources - - resources - verbs: - - verbs - - verbs - apiGroups: - - apiGroups - - apiGroups - namespaces: - - namespaces - - namespaces - - clusterScope: true + - resourceNames: + - resourceNames + - resourceNames resources: - resources - resources @@ -206078,221 +245234,157 @@ components: apiGroups: - apiGroups - apiGroups - namespaces: - - namespaces - - namespaces - subjects: - - kind: kind - serviceAccount: - name: name - namespace: namespace - user: - name: name - group: - name: name - - kind: kind - serviceAccount: - name: name - namespace: namespace - user: - name: name - group: - name: name - distinguisherMethod: - type: type - properties: - distinguisherMethod: - $ref: '#/components/schemas/v1beta3.FlowDistinguisherMethod' - matchingPrecedence: - description: '`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.' - format: int32 - type: integer - priorityLevelConfiguration: - $ref: '#/components/schemas/v1beta3.PriorityLevelConfigurationReference' - rules: - description: '`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.' - items: - $ref: '#/components/schemas/v1beta3.PolicyRulesWithSubjects' - type: array - x-kubernetes-list-type: atomic - required: - - priorityLevelConfiguration - type: object - v1beta3.FlowSchemaStatus: - description: FlowSchemaStatus represents the current state of a FlowSchema. - example: - conditions: - - reason: reason - lastTransitionTime: 2000-01-23T04:56:07.000+00:00 - message: message - type: type - status: status - - reason: reason - lastTransitionTime: 2000-01-23T04:56:07.000+00:00 - message: message - type: type - status: status + nonResourceURLs: + - nonResourceURLs + - nonResourceURLs properties: - conditions: - description: '`conditions` is a list of the current states of FlowSchema.' + apiVersion: + description: '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' + type: string + items: + description: Items is a list of ClusterRoles items: - $ref: '#/components/schemas/v1beta3.FlowSchemaCondition' + $ref: '#/components/schemas/v1.ClusterRole' type: array - x-kubernetes-patch-strategy: merge - x-kubernetes-list-type: map - x-kubernetes-list-map-keys: - - type - x-kubernetes-patch-merge-key: type - type: object - v1beta3.GroupSubject: - description: GroupSubject holds detailed information for group-kind subject. - example: - name: name - properties: - name: - description: 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. - type: string - required: - - name - type: object - v1beta3.LimitResponse: - description: LimitResponse defines how to handle requests that can not be executed - right now. - example: - queuing: - handSize: 5 - queues: 7 - queueLengthLimit: 2 - type: type - properties: - queuing: - $ref: '#/components/schemas/v1beta3.QueuingConfiguration' - type: - description: '`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.' + kind: + description: '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' type: string + metadata: + $ref: '#/components/schemas/v1.ListMeta' required: - - type - type: object - x-kubernetes-unions: - - discriminator: type - fields-to-discriminateBy: - queuing: Queuing - v1beta3.LimitedPriorityLevelConfiguration: - 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? - example: - lendablePercent: 5 - borrowingLimitPercent: 1 - limitResponse: - queuing: - handSize: 5 - queues: 7 - queueLengthLimit: 2 - type: type - nominalConcurrencyShares: 9 - properties: - borrowingLimitPercent: - description: |- - `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. - format: int32 - type: integer - lendablePercent: - description: |- - `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 ) - format: int32 - type: integer - limitResponse: - $ref: '#/components/schemas/v1beta3.LimitResponse' - nominalConcurrencyShares: - description: |- - `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. - format: int32 - type: integer + - items type: object - v1beta3.NonResourcePolicyRule: - 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. + x-kubernetes-group-version-kind: + - group: rbac.authorization.k8s.io + kind: ClusterRoleList + version: v1 + x-implements: + - io.kubernetes.client.common.KubernetesListObject + v1.PolicyRule: + 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. example: + resourceNames: + - resourceNames + - resourceNames + resources: + - resources + - resources verbs: - verbs - verbs + apiGroups: + - apiGroups + - apiGroups nonResourceURLs: - nonResourceURLs - nonResourceURLs properties: + apiGroups: + description: 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. + items: + type: string + type: array + x-kubernetes-list-type: atomic nonResourceURLs: - description: |- - `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. + description: 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. items: type: string type: array - x-kubernetes-list-type: set + x-kubernetes-list-type: atomic + resourceNames: + description: ResourceNames is an optional white list of names that the rule + applies to. An empty set means that everything is allowed. + items: + type: string + type: array + x-kubernetes-list-type: atomic + resources: + description: Resources is a list of resources this rule applies to. '*' + represents all resources. + items: + type: string + type: array + x-kubernetes-list-type: atomic verbs: - description: '`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.' + description: Verbs is a list of Verbs that apply to ALL the ResourceKinds + contained in this rule. '*' represents all verbs. items: type: string type: array - x-kubernetes-list-type: set + x-kubernetes-list-type: atomic required: - - nonResourceURLs - verbs type: object - v1beta3.PolicyRulesWithSubjects: - 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. + v1.Role: + description: Role is a namespaced, logical grouping of PolicyRules that can + be referenced as a unit by a RoleBinding. example: - nonResourceRules: - - verbs: - - verbs - - verbs - nonResourceURLs: - - nonResourceURLs - - nonResourceURLs - - verbs: - - verbs - - verbs - nonResourceURLs: - - nonResourceURLs - - nonResourceURLs - resourceRules: - - clusterScope: true + metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: '{}' + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: '{}' + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + creationTimestamp: 2000-01-23T04:56:07.000+00:00 + name: name + namespace: namespace + apiVersion: apiVersion + kind: kind + rules: + - resourceNames: + - resourceNames + - resourceNames resources: - resources - resources @@ -206302,10 +245394,12 @@ components: apiGroups: - apiGroups - apiGroups - namespaces: - - namespaces - - namespaces - - clusterScope: true + nonResourceURLs: + - nonResourceURLs + - nonResourceURLs + - resourceNames: + - resourceNames + - resourceNames resources: - resources - resources @@ -206315,192 +245409,295 @@ components: apiGroups: - apiGroups - apiGroups - namespaces: - - namespaces - - namespaces + nonResourceURLs: + - nonResourceURLs + - nonResourceURLs + properties: + apiVersion: + description: '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' + type: string + kind: + description: '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' + type: string + metadata: + $ref: '#/components/schemas/v1.ObjectMeta' + rules: + description: Rules holds all the PolicyRules for this Role + items: + $ref: '#/components/schemas/v1.PolicyRule' + type: array + x-kubernetes-list-type: atomic + type: object + x-kubernetes-group-version-kind: + - group: rbac.authorization.k8s.io + kind: Role + version: v1 + x-implements: + - io.kubernetes.client.common.KubernetesObject + v1.RoleBinding: + 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. + example: + metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: '{}' + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: '{}' + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + creationTimestamp: 2000-01-23T04:56:07.000+00:00 + name: name + namespace: namespace + apiVersion: apiVersion + kind: kind subjects: - - kind: kind - serviceAccount: + - apiGroup: apiGroup + kind: kind + name: name + namespace: namespace + - apiGroup: apiGroup + kind: kind + name: name + namespace: namespace + roleRef: + apiGroup: apiGroup + kind: kind + name: name + properties: + apiVersion: + description: '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' + type: string + kind: + description: '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' + type: string + metadata: + $ref: '#/components/schemas/v1.ObjectMeta' + roleRef: + $ref: '#/components/schemas/v1.RoleRef' + subjects: + description: Subjects holds references to the objects the role applies to. + items: + $ref: '#/components/schemas/rbac.v1.Subject' + type: array + x-kubernetes-list-type: atomic + required: + - roleRef + type: object + x-kubernetes-group-version-kind: + - group: rbac.authorization.k8s.io + kind: RoleBinding + version: v1 + x-implements: + - io.kubernetes.client.common.KubernetesObject + v1.RoleBindingList: + description: RoleBindingList is a collection of RoleBindings + example: + metadata: + remainingItemCount: 1 + continue: continue + resourceVersion: resourceVersion + selfLink: selfLink + apiVersion: apiVersion + kind: kind + items: + - metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: '{}' + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: '{}' + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + creationTimestamp: 2000-01-23T04:56:07.000+00:00 + name: name + namespace: namespace + apiVersion: apiVersion + kind: kind + subjects: + - apiGroup: apiGroup + kind: kind + name: name + namespace: namespace + - apiGroup: apiGroup + kind: kind + name: name + namespace: namespace + roleRef: + apiGroup: apiGroup + kind: kind + name: name + - metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: '{}' + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: '{}' + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + creationTimestamp: 2000-01-23T04:56:07.000+00:00 name: name namespace: namespace - user: - name: name - group: - name: name - - kind: kind - serviceAccount: + apiVersion: apiVersion + kind: kind + subjects: + - apiGroup: apiGroup + kind: kind name: name namespace: namespace - user: - name: name - group: - name: name - properties: - nonResourceRules: - description: '`nonResourceRules` is a list of NonResourcePolicyRules that - identify matching requests according to their verb and the target non-resource - URL.' - items: - $ref: '#/components/schemas/v1beta3.NonResourcePolicyRule' - type: array - x-kubernetes-list-type: atomic - resourceRules: - description: '`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.' - items: - $ref: '#/components/schemas/v1beta3.ResourcePolicyRule' - type: array - x-kubernetes-list-type: atomic - subjects: - description: 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. - items: - $ref: '#/components/schemas/v1beta3.Subject' - type: array - x-kubernetes-list-type: atomic - required: - - subjects - type: object - v1beta3.PriorityLevelConfiguration: - description: PriorityLevelConfiguration represents the configuration of a priority - level. - example: - metadata: - generation: 6 - finalizers: - - finalizers - - finalizers - resourceVersion: resourceVersion - annotations: - key: annotations - generateName: generateName - deletionTimestamp: 2000-01-23T04:56:07.000+00:00 - labels: - key: labels - ownerReferences: - - uid: uid - controller: true - apiVersion: apiVersion + - apiGroup: apiGroup kind: kind name: name - blockOwnerDeletion: true - - uid: uid - controller: true - apiVersion: apiVersion + namespace: namespace + roleRef: + apiGroup: apiGroup kind: kind name: name - blockOwnerDeletion: true - selfLink: selfLink - deletionGracePeriodSeconds: 0 - uid: uid - managedFields: - - apiVersion: apiVersion - fieldsV1: '{}' - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - - apiVersion: apiVersion - fieldsV1: '{}' - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - creationTimestamp: 2000-01-23T04:56:07.000+00:00 - name: name - namespace: namespace - apiVersion: apiVersion - kind: kind - spec: - limited: - lendablePercent: 5 - borrowingLimitPercent: 1 - limitResponse: - queuing: - handSize: 5 - queues: 7 - queueLengthLimit: 2 - type: type - nominalConcurrencyShares: 9 - exempt: - lendablePercent: 0 - nominalConcurrencyShares: 6 - type: type - status: - conditions: - - reason: reason - lastTransitionTime: 2000-01-23T04:56:07.000+00:00 - message: message - type: type - status: status - - reason: reason - lastTransitionTime: 2000-01-23T04:56:07.000+00:00 - message: message - type: type - status: status properties: apiVersion: description: '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' type: string + items: + description: Items is a list of RoleBindings + items: + $ref: '#/components/schemas/v1.RoleBinding' + type: array kind: description: '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' type: string metadata: - $ref: '#/components/schemas/v1.ObjectMeta' - spec: - $ref: '#/components/schemas/v1beta3.PriorityLevelConfigurationSpec' - status: - $ref: '#/components/schemas/v1beta3.PriorityLevelConfigurationStatus' + $ref: '#/components/schemas/v1.ListMeta' + required: + - items type: object x-kubernetes-group-version-kind: - - group: flowcontrol.apiserver.k8s.io - kind: PriorityLevelConfiguration - version: v1beta3 + - group: rbac.authorization.k8s.io + kind: RoleBindingList + version: v1 x-implements: - - io.kubernetes.client.common.KubernetesObject - v1beta3.PriorityLevelConfigurationCondition: - description: PriorityLevelConfigurationCondition defines the condition of priority - level. - example: - reason: reason - lastTransitionTime: 2000-01-23T04:56:07.000+00:00 - message: message - type: type - status: status - properties: - lastTransitionTime: - description: '`lastTransitionTime` is the last time the condition transitioned - from one status to another.' - format: date-time - type: string - message: - description: '`message` is a human-readable message indicating details about - last transition.' - type: string - reason: - description: '`reason` is a unique, one-word, CamelCase reason for the condition''s - last transition.' - type: string - status: - description: '`status` is the status of the condition. Can be True, False, - Unknown. Required.' - type: string - type: - description: '`type` is the type of the condition. Required.' - type: string - type: object - v1beta3.PriorityLevelConfigurationList: - description: PriorityLevelConfigurationList is a list of PriorityLevelConfiguration - objects. + - io.kubernetes.client.common.KubernetesListObject + v1.RoleList: + description: RoleList is a collection of Roles example: metadata: remainingItemCount: 1 @@ -206558,33 +245755,37 @@ components: namespace: namespace apiVersion: apiVersion kind: kind - spec: - limited: - lendablePercent: 5 - borrowingLimitPercent: 1 - limitResponse: - queuing: - handSize: 5 - queues: 7 - queueLengthLimit: 2 - type: type - nominalConcurrencyShares: 9 - exempt: - lendablePercent: 0 - nominalConcurrencyShares: 6 - type: type - status: - conditions: - - reason: reason - lastTransitionTime: 2000-01-23T04:56:07.000+00:00 - message: message - type: type - status: status - - reason: reason - lastTransitionTime: 2000-01-23T04:56:07.000+00:00 - message: message - type: type - status: status + rules: + - resourceNames: + - resourceNames + - resourceNames + resources: + - resources + - resources + verbs: + - verbs + - verbs + apiGroups: + - apiGroups + - apiGroups + nonResourceURLs: + - nonResourceURLs + - nonResourceURLs + - resourceNames: + - resourceNames + - resourceNames + resources: + - resources + - resources + verbs: + - verbs + - verbs + apiGroups: + - apiGroups + - apiGroups + nonResourceURLs: + - nonResourceURLs + - nonResourceURLs - metadata: generation: 6 finalizers: @@ -206633,33 +245834,37 @@ components: namespace: namespace apiVersion: apiVersion kind: kind - spec: - limited: - lendablePercent: 5 - borrowingLimitPercent: 1 - limitResponse: - queuing: - handSize: 5 - queues: 7 - queueLengthLimit: 2 - type: type - nominalConcurrencyShares: 9 - exempt: - lendablePercent: 0 - nominalConcurrencyShares: 6 - type: type - status: - conditions: - - reason: reason - lastTransitionTime: 2000-01-23T04:56:07.000+00:00 - message: message - type: type - status: status - - reason: reason - lastTransitionTime: 2000-01-23T04:56:07.000+00:00 - message: message - type: type - status: status + rules: + - resourceNames: + - resourceNames + - resourceNames + resources: + - resources + - resources + verbs: + - verbs + - verbs + apiGroups: + - apiGroups + - apiGroups + nonResourceURLs: + - nonResourceURLs + - nonResourceURLs + - resourceNames: + - resourceNames + - resourceNames + resources: + - resources + - resources + verbs: + - verbs + - verbs + apiGroups: + - apiGroups + - apiGroups + nonResourceURLs: + - nonResourceURLs + - nonResourceURLs properties: apiVersion: description: 'APIVersion defines the versioned schema of this representation @@ -206667,9 +245872,9 @@ components: internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources' type: string items: - description: '`items` is a list of request-priorities.' + description: Items is a list of Roles items: - $ref: '#/components/schemas/v1beta3.PriorityLevelConfiguration' + $ref: '#/components/schemas/v1.Role' type: array kind: description: 'Kind is a string value representing the REST resource this @@ -206682,376 +245887,897 @@ components: - items type: object x-kubernetes-group-version-kind: - - group: flowcontrol.apiserver.k8s.io - kind: PriorityLevelConfigurationList - version: v1beta3 + - group: rbac.authorization.k8s.io + kind: RoleList + version: v1 x-implements: - io.kubernetes.client.common.KubernetesListObject - v1beta3.PriorityLevelConfigurationReference: - description: PriorityLevelConfigurationReference contains information that points - to the "request-priority" being used. + v1.RoleRef: + description: RoleRef contains information that points to the role being used example: + apiGroup: apiGroup + kind: kind name: name properties: + apiGroup: + description: APIGroup is the group for the resource being referenced + type: string + kind: + description: Kind is the type of resource being referenced + type: string name: - description: '`name` is the name of the priority level configuration being - referenced Required.' + description: Name is the name of resource being referenced type: string required: + - apiGroup + - kind - name type: object - v1beta3.PriorityLevelConfigurationSpec: - description: PriorityLevelConfigurationSpec specifies the configuration of a - priority level. + x-kubernetes-map-type: atomic + rbac.v1.Subject: + 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. example: - limited: - lendablePercent: 5 - borrowingLimitPercent: 1 - limitResponse: - queuing: - handSize: 5 - queues: 7 - queueLengthLimit: 2 - type: type - nominalConcurrencyShares: 9 - exempt: - lendablePercent: 0 - nominalConcurrencyShares: 6 - type: type + apiGroup: apiGroup + kind: kind + name: name + namespace: namespace properties: - exempt: - $ref: '#/components/schemas/v1beta3.ExemptPriorityLevelConfiguration' - limited: - $ref: '#/components/schemas/v1beta3.LimitedPriorityLevelConfiguration' - type: - description: '`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.' + apiGroup: + description: 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. + type: string + kind: + description: 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. + type: string + name: + description: Name of the object being referenced. + type: string + namespace: + description: 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. type: string required: - - type + - kind + - name type: object - x-kubernetes-unions: - - discriminator: type - fields-to-discriminateBy: - exempt: Exempt - limited: Limited - v1beta3.PriorityLevelConfigurationStatus: - description: PriorityLevelConfigurationStatus represents the current state of - a "request-priority". + x-kubernetes-map-type: atomic + v1alpha3.AllocatedDeviceStatus: + description: AllocatedDeviceStatus contains the status of an allocated device, + if the driver chooses to report it. This may include driver-specific information. example: + data: '{}' + driver: driver + networkData: + hardwareAddress: hardwareAddress + interfaceName: interfaceName + ips: + - ips + - ips + pool: pool conditions: - reason: reason lastTransitionTime: 2000-01-23T04:56:07.000+00:00 message: message type: type + observedGeneration: 5 status: status - reason: reason lastTransitionTime: 2000-01-23T04:56:07.000+00:00 message: message type: type + observedGeneration: 5 status: status + device: device properties: conditions: - description: '`conditions` is the current state of "request-priority".' + description: |- + Conditions contains the latest observation of the device's state. If the device has been configured according to the class and claim config references, the `Ready` condition should be True. + + Must not contain more than 8 entries. items: - $ref: '#/components/schemas/v1beta3.PriorityLevelConfigurationCondition' + $ref: '#/components/schemas/v1.Condition' type: array - x-kubernetes-patch-strategy: merge x-kubernetes-list-type: map x-kubernetes-list-map-keys: - type - x-kubernetes-patch-merge-key: type + data: + description: |- + Data contains arbitrary driver-specific data. + + The length of the raw data must be smaller or equal to 10 Ki. + properties: {} + type: object + device: + description: Device references one device instance via its name in the driver's + resource pool. It must be a DNS label. + type: string + driver: + description: |- + 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. + type: string + networkData: + $ref: '#/components/schemas/v1alpha3.NetworkDeviceData' + pool: + description: |- + 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. + type: string + required: + - device + - driver + - pool type: object - v1beta3.QueuingConfiguration: - description: QueuingConfiguration holds the configuration parameters for queuing + v1alpha3.AllocationResult: + description: AllocationResult contains attributes of an allocated resource. example: - handSize: 5 - queues: 7 - queueLengthLimit: 2 + devices: + config: + - opaque: + driver: driver + parameters: '{}' + requests: + - requests + - requests + source: source + - opaque: + driver: driver + parameters: '{}' + requests: + - requests + - requests + source: source + results: + - request: request + adminAccess: true + tolerations: + - effect: effect + tolerationSeconds: 1 + value: value + key: key + operator: operator + - effect: effect + tolerationSeconds: 1 + value: value + key: key + operator: operator + driver: driver + pool: pool + device: device + - request: request + adminAccess: true + tolerations: + - effect: effect + tolerationSeconds: 1 + value: value + key: key + operator: operator + - effect: effect + tolerationSeconds: 1 + value: value + key: key + operator: operator + driver: driver + pool: pool + device: device + nodeSelector: + nodeSelectorTerms: + - matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchFields: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + - matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchFields: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator properties: - handSize: - description: '`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.' - format: int32 - type: integer - queueLengthLimit: - description: '`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.' - format: int32 - type: integer - queues: - description: '`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.' - format: int32 - type: integer + devices: + $ref: '#/components/schemas/v1alpha3.DeviceAllocationResult' + nodeSelector: + $ref: '#/components/schemas/v1.NodeSelector' type: object - v1beta3.ResourcePolicyRule: - 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.' + v1alpha3.BasicDevice: + description: BasicDevice defines one device instance. example: - clusterScope: true - resources: - - resources - - resources - verbs: - - verbs - - verbs - apiGroups: - - apiGroups - - apiGroups - namespaces: - - namespaces - - namespaces + nodeName: nodeName + consumesCounters: + - counters: + key: + value: value + counterSet: counterSet + - counters: + key: + value: value + counterSet: counterSet + attributes: + key: + bool: true + string: string + version: version + int: 0 + taints: + - timeAdded: 2000-01-23T04:56:07.000+00:00 + effect: effect + value: value + key: key + - timeAdded: 2000-01-23T04:56:07.000+00:00 + effect: effect + value: value + key: key + allNodes: true + capacity: {} + nodeSelector: + nodeSelectorTerms: + - matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchFields: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + - matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchFields: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator properties: - apiGroups: - description: '`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.' - items: - type: string - type: array - x-kubernetes-list-type: set - clusterScope: - description: '`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.' + allNodes: + description: |- + AllNodes indicates that all nodes have access to the device. + + Must only be set if Spec.PerDeviceNodeSelection is set to true. At most one of NodeName, NodeSelector and AllNodes can be set. type: boolean - namespaces: - description: '`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.' - items: - type: string - type: array - x-kubernetes-list-type: set - resources: - description: '`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.' + attributes: + additionalProperties: + $ref: '#/components/schemas/v1alpha3.DeviceAttribute' + description: |- + 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. + type: object + capacity: + additionalProperties: + $ref: '#/components/schemas/resource.Quantity' + description: |- + 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. + type: object + consumesCounters: + description: |- + ConsumesCounters defines a list of references to sharedCounters and the set of counters that the device will consume from those counter sets. + + There can only be a single entry per counterSet. + + The total number of device counter consumption entries must be <= 32. In addition, the total number in the entire ResourceSlice must be <= 1024 (for example, 64 devices with 16 counters each). items: - type: string + $ref: '#/components/schemas/v1alpha3.DeviceCounterConsumption' type: array - x-kubernetes-list-type: set - verbs: - description: '`verbs` is a list of matching verbs and may not be empty. - "*" matches all verbs and, if present, must be the only entry. Required.' + x-kubernetes-list-type: atomic + nodeName: + description: |- + NodeName identifies the node where the device is available. + + Must only be set if Spec.PerDeviceNodeSelection is set to true. At most one of NodeName, NodeSelector and AllNodes can be set. + type: string + nodeSelector: + $ref: '#/components/schemas/v1.NodeSelector' + taints: + description: |- + If specified, these are the driver-defined taints. + + The maximum number of taints is 4. + + This is an alpha field and requires enabling the DRADeviceTaints feature gate. items: - type: string + $ref: '#/components/schemas/v1alpha3.DeviceTaint' type: array - x-kubernetes-list-type: set - required: - - apiGroups - - resources - - verbs + x-kubernetes-list-type: atomic type: object - v1beta3.ServiceAccountSubject: - description: ServiceAccountSubject holds detailed information for service-account-kind - subject. + v1alpha3.CELDeviceSelector: + description: CELDeviceSelector contains a CEL expression for selecting a device. example: - name: name - namespace: namespace + expression: expression properties: - name: - description: '`name` is the name of matching ServiceAccount objects, or - "*" to match regardless of name. Required.' - type: string - namespace: - description: '`namespace` is the namespace of matching ServiceAccount objects. - Required.' + expression: + description: |- + 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) + + The length of the expression must be smaller or equal to 10 Ki. The cost of evaluating it is also limited based on the estimated number of logical steps. type: string required: - - name - - namespace + - expression type: object - v1beta3.Subject: - 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. + v1alpha3.Counter: + description: Counter describes a quantity associated with a device. example: - kind: kind - serviceAccount: - name: name - namespace: namespace - user: - name: name - group: - name: name + value: value properties: - group: - $ref: '#/components/schemas/v1beta3.GroupSubject' - kind: - description: '`kind` indicates which one of the other fields is non-empty. - Required' + value: + description: "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.\n\nThe serialization format is:\n\n\ + ``` ::= \n\n\t(Note that \ + \ may be empty, from the \"\" case in .)\n\n \ + \ ::= 0 | 1 | ... | 9 ::= | \ + \ ::= | . | . | .\ + \ ::= \"+\" | \"-\" ::= |\ + \ ::= | \ + \ | ::= Ki | Mi | Gi | Ti | Pi | Ei\n\n\t\ + (International System of units; See: http://physics.nist.gov/cuu/Units/binary.html)\n\ + \n ::= m | \"\" | k | M | G | T | P | E\n\n\t(Note that\ + \ 1024 = 1Ki but 1000 = 1k; I didn't choose the capitalization.)\n\n\ + \ ::= \"e\" | \"E\" ```\n\nNo 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.\n\nWhen 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.\n\nBefore 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:\n\n- No precision is lost - No fractional digits\ + \ will be emitted - The exponent (or suffix) is as large as possible.\n\ + \nThe sign will be omitted unless the number is negative.\n\nExamples:\n\ + \n- 1.5 will be serialized as \"1500m\" - 1.5Gi will be serialized as\ + \ \"1536Mi\"\n\nNote that the quantity will NEVER be internally represented\ + \ by a floating point number. That is the whole point of this exercise.\n\ + \nNon-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.)\n\nThis 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." + format: quantity type: string - serviceAccount: - $ref: '#/components/schemas/v1beta3.ServiceAccountSubject' - user: - $ref: '#/components/schemas/v1beta3.UserSubject' required: - - kind + - value type: object - x-kubernetes-unions: - - discriminator: kind - fields-to-discriminateBy: - group: Group - serviceAccount: ServiceAccount - user: User - v1beta3.UserSubject: - description: UserSubject holds detailed information for user-kind subject. + v1alpha3.CounterSet: + description: |- + CounterSet defines a named set of counters that are available to be used by devices defined in the ResourceSlice. + + The counters are not allocatable by themselves, but can be referenced by devices. When a device is allocated, the portion of counters it uses will no longer be available for use by other devices. example: + counters: + key: + value: value name: name properties: + counters: + additionalProperties: + $ref: '#/components/schemas/v1alpha3.Counter' + description: |- + Counters defines the counters that will be consumed by the device. The name of each counter must be unique in that set and must be a DNS label. + + To ensure this uniqueness, capacities defined by the vendor must be listed without the driver name as domain prefix in their name. All others must be listed with their domain prefix. + + The maximum number of counters is 32. + type: object name: - description: '`name` is the username that matches, or "*" to match all usernames. - Required.' + description: CounterSet is the name of the set from which the counters defined + will be consumed. type: string required: + - counters - name type: object - v1.HTTPIngressPath: - description: HTTPIngressPath associates a path with a backend. Incoming urls - matching the path are forwarded to the backend. + v1alpha3.Device: + description: Device represents one individual hardware instance that can be + selected based on its attributes. Besides the name, exactly one field must + be set. example: - path: path - backend: - resource: - apiGroup: apiGroup - kind: kind - name: name - service: - port: - number: 0 - name: name - name: name - pathType: pathType + name: name + basic: + nodeName: nodeName + consumesCounters: + - counters: + key: + value: value + counterSet: counterSet + - counters: + key: + value: value + counterSet: counterSet + attributes: + key: + bool: true + string: string + version: version + int: 0 + taints: + - timeAdded: 2000-01-23T04:56:07.000+00:00 + effect: effect + value: value + key: key + - timeAdded: 2000-01-23T04:56:07.000+00:00 + effect: effect + value: value + key: key + allNodes: true + capacity: {} + nodeSelector: + nodeSelectorTerms: + - matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchFields: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + - matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchFields: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator properties: - backend: - $ref: '#/components/schemas/v1.IngressBackend' - path: - description: 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". + basic: + $ref: '#/components/schemas/v1alpha3.BasicDevice' + name: + description: Name is unique identifier among all devices managed by the + driver in the pool. It must be a DNS label. type: string - pathType: + required: + - name + type: object + v1alpha3.DeviceAllocationConfiguration: + description: DeviceAllocationConfiguration gets embedded in an AllocationResult. + example: + opaque: + driver: driver + parameters: '{}' + requests: + - requests + - requests + source: source + properties: + opaque: + $ref: '#/components/schemas/v1alpha3.OpaqueDeviceConfiguration' + requests: description: |- - 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. + Requests lists the names of requests where the configuration applies. If empty, its applies to all requests. + + References to subrequests must include the name of the main request and may include the subrequest using the format
[/]. If just the main request is given, the configuration applies to all subrequests. + items: + type: string + type: array + x-kubernetes-list-type: atomic + source: + description: 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. type: string required: - - backend - - pathType + - source type: object - v1.HTTPIngressRuleValue: - 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 ''#''.' + v1alpha3.DeviceAllocationResult: + description: DeviceAllocationResult is the result of allocating devices. example: - paths: - - path: path - backend: - resource: - apiGroup: apiGroup - kind: kind - name: name - service: - port: - number: 0 - name: name - name: name - pathType: pathType - - path: path - backend: - resource: - apiGroup: apiGroup - kind: kind - name: name - service: - port: - number: 0 - name: name - name: name - pathType: pathType + config: + - opaque: + driver: driver + parameters: '{}' + requests: + - requests + - requests + source: source + - opaque: + driver: driver + parameters: '{}' + requests: + - requests + - requests + source: source + results: + - request: request + adminAccess: true + tolerations: + - effect: effect + tolerationSeconds: 1 + value: value + key: key + operator: operator + - effect: effect + tolerationSeconds: 1 + value: value + key: key + operator: operator + driver: driver + pool: pool + device: device + - request: request + adminAccess: true + tolerations: + - effect: effect + tolerationSeconds: 1 + value: value + key: key + operator: operator + - effect: effect + tolerationSeconds: 1 + value: value + key: key + operator: operator + driver: driver + pool: pool + device: device + properties: + config: + description: |- + 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. + items: + $ref: '#/components/schemas/v1alpha3.DeviceAllocationConfiguration' + type: array + x-kubernetes-list-type: atomic + results: + description: Results lists all allocated devices. + items: + $ref: '#/components/schemas/v1alpha3.DeviceRequestAllocationResult' + type: array + x-kubernetes-list-type: atomic + type: object + v1alpha3.DeviceAttribute: + description: DeviceAttribute must have exactly one field set. + example: + bool: true + string: string + version: version + int: 0 + properties: + bool: + description: BoolValue is a true/false value. + type: boolean + int: + description: IntValue is a number. + format: int64 + type: integer + string: + description: StringValue is a string. Must not be longer than 64 characters. + type: string + version: + description: VersionValue is a semantic version according to semver.org + spec 2.0.0. Must not be longer than 64 characters. + type: string + type: object + v1alpha3.DeviceClaim: + description: DeviceClaim defines how to request devices with a ResourceClaim. + example: + requests: + - allocationMode: allocationMode + deviceClassName: deviceClassName + adminAccess: true + tolerations: + - effect: effect + tolerationSeconds: 1 + value: value + key: key + operator: operator + - effect: effect + tolerationSeconds: 1 + value: value + key: key + operator: operator + firstAvailable: + - allocationMode: allocationMode + deviceClassName: deviceClassName + tolerations: + - effect: effect + tolerationSeconds: 1 + value: value + key: key + operator: operator + - effect: effect + tolerationSeconds: 1 + value: value + key: key + operator: operator + count: 6 + name: name + selectors: + - cel: + expression: expression + - cel: + expression: expression + - allocationMode: allocationMode + deviceClassName: deviceClassName + tolerations: + - effect: effect + tolerationSeconds: 1 + value: value + key: key + operator: operator + - effect: effect + tolerationSeconds: 1 + value: value + key: key + operator: operator + count: 6 + name: name + selectors: + - cel: + expression: expression + - cel: + expression: expression + count: 0 + name: name + selectors: + - cel: + expression: expression + - cel: + expression: expression + - allocationMode: allocationMode + deviceClassName: deviceClassName + adminAccess: true + tolerations: + - effect: effect + tolerationSeconds: 1 + value: value + key: key + operator: operator + - effect: effect + tolerationSeconds: 1 + value: value + key: key + operator: operator + firstAvailable: + - allocationMode: allocationMode + deviceClassName: deviceClassName + tolerations: + - effect: effect + tolerationSeconds: 1 + value: value + key: key + operator: operator + - effect: effect + tolerationSeconds: 1 + value: value + key: key + operator: operator + count: 6 + name: name + selectors: + - cel: + expression: expression + - cel: + expression: expression + - allocationMode: allocationMode + deviceClassName: deviceClassName + tolerations: + - effect: effect + tolerationSeconds: 1 + value: value + key: key + operator: operator + - effect: effect + tolerationSeconds: 1 + value: value + key: key + operator: operator + count: 6 + name: name + selectors: + - cel: + expression: expression + - cel: + expression: expression + count: 0 + name: name + selectors: + - cel: + expression: expression + - cel: + expression: expression + config: + - opaque: + driver: driver + parameters: '{}' + requests: + - requests + - requests + - opaque: + driver: driver + parameters: '{}' + requests: + - requests + - requests + constraints: + - matchAttribute: matchAttribute + requests: + - requests + - requests + - matchAttribute: matchAttribute + requests: + - requests + - requests properties: - paths: - description: paths is a collection of paths that map requests to backends. + config: + description: This field holds configuration for multiple potential drivers + which could satisfy requests in this claim. It is ignored while allocating + the claim. items: - $ref: '#/components/schemas/v1.HTTPIngressPath' + $ref: '#/components/schemas/v1alpha3.DeviceClaimConfiguration' + type: array + x-kubernetes-list-type: atomic + constraints: + description: These constraints must be satisfied by the set of devices that + get allocated for the claim. + items: + $ref: '#/components/schemas/v1alpha3.DeviceConstraint' + type: array + x-kubernetes-list-type: atomic + requests: + description: Requests represent individual requests for distinct devices + which must all be satisfied. If empty, nothing needs to be allocated. + items: + $ref: '#/components/schemas/v1alpha3.DeviceRequest' type: array x-kubernetes-list-type: atomic - required: - - paths type: object - v1.IPBlock: - 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. + v1alpha3.DeviceClaimConfiguration: + description: DeviceClaimConfiguration is used for configuration parameters in + DeviceClaim. example: - cidr: cidr - except: - - except - - except + opaque: + driver: driver + parameters: '{}' + requests: + - requests + - requests properties: - cidr: - description: cidr is a string representing the IPBlock Valid examples are - "192.168.1.0/24" or "2001:db8::/64" - type: string - except: - description: 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 + opaque: + $ref: '#/components/schemas/v1alpha3.OpaqueDeviceConfiguration' + requests: + description: |- + Requests lists the names of requests where the configuration applies. If empty, it applies to all requests. + + References to subrequests must include the name of the main request and may include the subrequest using the format
[/]. If just the main request is given, the configuration applies to all subrequests. items: type: string type: array - required: - - cidr + x-kubernetes-list-type: atomic type: object - v1.Ingress: - 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. + v1alpha3.DeviceClass: + 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. example: metadata: generation: 6 @@ -207102,102 +246828,18 @@ components: apiVersion: apiVersion kind: kind spec: - defaultBackend: - resource: - apiGroup: apiGroup - kind: kind - name: name - service: - port: - number: 0 - name: name - name: name - ingressClassName: ingressClassName - rules: - - host: host - http: - paths: - - path: path - backend: - resource: - apiGroup: apiGroup - kind: kind - name: name - service: - port: - number: 0 - name: name - name: name - pathType: pathType - - path: path - backend: - resource: - apiGroup: apiGroup - kind: kind - name: name - service: - port: - number: 0 - name: name - name: name - pathType: pathType - - host: host - http: - paths: - - path: path - backend: - resource: - apiGroup: apiGroup - kind: kind - name: name - service: - port: - number: 0 - name: name - name: name - pathType: pathType - - path: path - backend: - resource: - apiGroup: apiGroup - kind: kind - name: name - service: - port: - number: 0 - name: name - name: name - pathType: pathType - tls: - - secretName: secretName - hosts: - - hosts - - hosts - - secretName: secretName - hosts: - - hosts - - hosts - status: - loadBalancer: - ingress: - - hostname: hostname - ip: ip - ports: - - protocol: protocol - port: 6 - error: error - - protocol: protocol - port: 6 - error: error - - hostname: hostname - ip: ip - ports: - - protocol: protocol - port: 6 - error: error - - protocol: protocol - port: 6 - error: error + selectors: + - cel: + expression: expression + - cel: + expression: expression + config: + - opaque: + driver: driver + parameters: '{}' + - opaque: + driver: driver + parameters: '{}' properties: apiVersion: description: 'APIVersion defines the versioned schema of this representation @@ -207212,122 +246854,28 @@ components: metadata: $ref: '#/components/schemas/v1.ObjectMeta' spec: - $ref: '#/components/schemas/v1.IngressSpec' - status: - $ref: '#/components/schemas/v1.IngressStatus' + $ref: '#/components/schemas/v1alpha3.DeviceClassSpec' + required: + - spec type: object x-kubernetes-group-version-kind: - - group: networking.k8s.io - kind: Ingress - version: v1 + - group: resource.k8s.io + kind: DeviceClass + version: v1alpha3 x-implements: - io.kubernetes.client.common.KubernetesObject - v1.IngressBackend: - description: IngressBackend describes all endpoints for a given service and - port. - example: - resource: - apiGroup: apiGroup - kind: kind - name: name - service: - port: - number: 0 - name: name - name: name - properties: - resource: - $ref: '#/components/schemas/v1.TypedLocalObjectReference' - service: - $ref: '#/components/schemas/v1.IngressServiceBackend' - type: object - v1.IngressClass: - 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. + v1alpha3.DeviceClassConfiguration: + description: DeviceClassConfiguration is used in DeviceClass. example: - metadata: - generation: 6 - finalizers: - - finalizers - - finalizers - resourceVersion: resourceVersion - annotations: - key: annotations - generateName: generateName - deletionTimestamp: 2000-01-23T04:56:07.000+00:00 - labels: - key: labels - ownerReferences: - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - selfLink: selfLink - deletionGracePeriodSeconds: 0 - uid: uid - managedFields: - - apiVersion: apiVersion - fieldsV1: '{}' - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - - apiVersion: apiVersion - fieldsV1: '{}' - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - creationTimestamp: 2000-01-23T04:56:07.000+00:00 - name: name - namespace: namespace - apiVersion: apiVersion - kind: kind - spec: - controller: controller - parameters: - apiGroup: apiGroup - kind: kind - scope: scope - name: name - namespace: namespace + opaque: + driver: driver + parameters: '{}' properties: - apiVersion: - description: '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' - type: string - kind: - description: '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' - type: string - metadata: - $ref: '#/components/schemas/v1.ObjectMeta' - spec: - $ref: '#/components/schemas/v1.IngressClassSpec' + opaque: + $ref: '#/components/schemas/v1alpha3.OpaqueDeviceConfiguration' type: object - x-kubernetes-group-version-kind: - - group: networking.k8s.io - kind: IngressClass - version: v1 - x-implements: - - io.kubernetes.client.common.KubernetesObject - v1.IngressClassList: - description: IngressClassList is a collection of IngressClasses. + v1alpha3.DeviceClassList: + description: DeviceClassList is a collection of classes. example: metadata: remainingItemCount: 1 @@ -207386,13 +246934,18 @@ components: apiVersion: apiVersion kind: kind spec: - controller: controller - parameters: - apiGroup: apiGroup - kind: kind - scope: scope - name: name - namespace: namespace + selectors: + - cel: + expression: expression + - cel: + expression: expression + config: + - opaque: + driver: driver + parameters: '{}' + - opaque: + driver: driver + parameters: '{}' - metadata: generation: 6 finalizers: @@ -207442,13 +246995,18 @@ components: apiVersion: apiVersion kind: kind spec: - controller: controller - parameters: - apiGroup: apiGroup - kind: kind - scope: scope - name: name - namespace: namespace + selectors: + - cel: + expression: expression + - cel: + expression: expression + config: + - opaque: + driver: driver + parameters: '{}' + - opaque: + driver: driver + parameters: '{}' properties: apiVersion: description: 'APIVersion defines the versioned schema of this representation @@ -207456,9 +247014,9 @@ components: internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources' type: string items: - description: items is the list of IngressClasses. + description: Items is the list of resource classes. items: - $ref: '#/components/schemas/v1.IngressClass' + $ref: '#/components/schemas/v1alpha3.DeviceClass' type: array kind: description: 'Kind is a string value representing the REST resource this @@ -207471,69 +247029,544 @@ components: - items type: object x-kubernetes-group-version-kind: - - group: networking.k8s.io - kind: IngressClassList - version: v1 + - group: resource.k8s.io + kind: DeviceClassList + version: v1alpha3 x-implements: - io.kubernetes.client.common.KubernetesListObject - v1.IngressClassParametersReference: - description: IngressClassParametersReference identifies an API object. This - can be used to specify a cluster or namespace-scoped resource. + v1alpha3.DeviceClassSpec: + description: DeviceClassSpec is used in a [DeviceClass] to define what can be + allocated and how to configure it. example: - apiGroup: apiGroup - kind: kind - scope: scope + selectors: + - cel: + expression: expression + - cel: + expression: expression + config: + - opaque: + driver: driver + parameters: '{}' + - opaque: + driver: driver + parameters: '{}' + properties: + config: + description: |- + 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. + items: + $ref: '#/components/schemas/v1alpha3.DeviceClassConfiguration' + type: array + x-kubernetes-list-type: atomic + selectors: + description: Each selector must be satisfied by a device which is claimed + via this class. + items: + $ref: '#/components/schemas/v1alpha3.DeviceSelector' + type: array + x-kubernetes-list-type: atomic + type: object + v1alpha3.DeviceConstraint: + description: DeviceConstraint must have exactly one field set besides Requests. + example: + matchAttribute: matchAttribute + requests: + - requests + - requests + properties: + matchAttribute: + description: |- + 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. + type: string + requests: + description: |- + 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. + + References to subrequests must include the name of the main request and may include the subrequest using the format
[/]. If just the main request is given, the constraint applies to all subrequests. + items: + type: string + type: array + x-kubernetes-list-type: atomic + type: object + v1alpha3.DeviceCounterConsumption: + description: DeviceCounterConsumption defines a set of counters that a device + will consume from a CounterSet. + example: + counters: + key: + value: value + counterSet: counterSet + properties: + counterSet: + description: CounterSet defines the set from which the counters defined + will be consumed. + type: string + counters: + additionalProperties: + $ref: '#/components/schemas/v1alpha3.Counter' + description: |- + Counters defines the Counter that will be consumed by the device. + + The maximum number counters in a device is 32. In addition, the maximum number of all counters in all devices is 1024 (for example, 64 devices with 16 counters each). + type: object + required: + - counterSet + - counters + type: object + v1alpha3.DeviceRequest: + 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. + example: + allocationMode: allocationMode + deviceClassName: deviceClassName + adminAccess: true + tolerations: + - effect: effect + tolerationSeconds: 1 + value: value + key: key + operator: operator + - effect: effect + tolerationSeconds: 1 + value: value + key: key + operator: operator + firstAvailable: + - allocationMode: allocationMode + deviceClassName: deviceClassName + tolerations: + - effect: effect + tolerationSeconds: 1 + value: value + key: key + operator: operator + - effect: effect + tolerationSeconds: 1 + value: value + key: key + operator: operator + count: 6 + name: name + selectors: + - cel: + expression: expression + - cel: + expression: expression + - allocationMode: allocationMode + deviceClassName: deviceClassName + tolerations: + - effect: effect + tolerationSeconds: 1 + value: value + key: key + operator: operator + - effect: effect + tolerationSeconds: 1 + value: value + key: key + operator: operator + count: 6 + name: name + selectors: + - cel: + expression: expression + - cel: + expression: expression + count: 0 name: name - namespace: namespace + selectors: + - cel: + expression: expression + - cel: + expression: expression properties: - apiGroup: - description: 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. + adminAccess: + description: |- + 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. + + This field can only be set when deviceClassName is set and no subrequests are specified in the firstAvailable list. + + This is an alpha field and requires enabling the DRAAdminAccess feature gate. Admin access is disabled if this field is unset or set to false, otherwise it is enabled. + type: boolean + allocationMode: + description: |- + 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. + At least one device must exist on the node for the allocation to succeed. + Allocation will fail if some devices are already allocated, + unless adminAccess is requested. + + If AllocationMode 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. + + This field can only be set when deviceClassName is set and no subrequests are specified in the firstAvailable list. + + More modes may get added in the future. Clients must refuse to handle requests with unknown modes. type: string - kind: - description: kind is the type of resource being referenced. + count: + description: |- + 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. + + This field can only be set when deviceClassName is set and no subrequests are specified in the firstAvailable list. + format: int64 + type: integer + deviceClassName: + description: |- + DeviceClassName references a specific DeviceClass, which can define additional configuration and selectors to be inherited by this request. + + A class is required if no subrequests are specified in the firstAvailable list and no class can be set if subrequests are specified in the firstAvailable list. 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. type: string + firstAvailable: + description: |- + FirstAvailable contains subrequests, of which exactly one will be satisfied by the scheduler to satisfy this request. It tries to satisfy them in the order in which they are listed here. So if there are two entries in the list, the scheduler will only check the second one if it determines that the first one cannot be used. + + This field may only be set in the entries of DeviceClaim.Requests. + + DRA does not yet implement scoring, so the scheduler will select the first set of devices that satisfies all the requests in the claim. And if the requirements can be satisfied on more than one node, other scheduling features will determine which node is chosen. This means that the set of devices allocated to a claim might not be the optimal set available to the cluster. Scoring will be implemented later. + items: + $ref: '#/components/schemas/v1alpha3.DeviceSubRequest' + type: array + x-kubernetes-list-type: atomic name: - description: name is the name of resource being referenced. + description: |- + 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. type: string - namespace: - description: 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". + selectors: + description: |- + 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. + + This field can only be set when deviceClassName is set and no subrequests are specified in the firstAvailable list. + items: + $ref: '#/components/schemas/v1alpha3.DeviceSelector' + type: array + x-kubernetes-list-type: atomic + tolerations: + description: |- + If specified, the request's tolerations. + + Tolerations for NoSchedule are required to allocate a device which has a taint with that effect. The same applies to NoExecute. + + In addition, should any of the allocated devices get tainted with NoExecute after allocation and that effect is not tolerated, then all pods consuming the ResourceClaim get deleted to evict them. The scheduler will not let new pods reserve the claim while it has these tainted devices. Once all pods are evicted, the claim will get deallocated. + + The maximum number of tolerations is 16. + + This field can only be set when deviceClassName is set and no subrequests are specified in the firstAvailable list. + + This is an alpha field and requires enabling the DRADeviceTaints feature gate. + items: + $ref: '#/components/schemas/v1alpha3.DeviceToleration' + type: array + x-kubernetes-list-type: atomic + required: + - name + type: object + v1alpha3.DeviceRequestAllocationResult: + description: DeviceRequestAllocationResult contains the allocation result for + one request. + example: + request: request + adminAccess: true + tolerations: + - effect: effect + tolerationSeconds: 1 + value: value + key: key + operator: operator + - effect: effect + tolerationSeconds: 1 + value: value + key: key + operator: operator + driver: driver + pool: pool + device: device + properties: + adminAccess: + description: |- + AdminAccess indicates that this device was allocated for administrative access. See the corresponding request field for a definition of mode. + + This is an alpha field and requires enabling the DRAAdminAccess feature gate. Admin access is disabled if this field is unset or set to false, otherwise it is enabled. + type: boolean + device: + description: Device references one device instance via its name in the driver's + resource pool. It must be a DNS label. type: string - scope: - description: scope represents if this refers to a cluster or namespace scoped - resource. This may be set to "Cluster" (default) or "Namespace". + driver: + description: |- + 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. + type: string + pool: + description: |- + 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. + type: string + request: + description: |- + Request is the name of the request in the claim which caused this device to be allocated. If it references a subrequest in the firstAvailable list on a DeviceRequest, this field must include both the name of the main request and the subrequest using the format
/. + + Multiple devices may have been allocated per request. type: string + tolerations: + description: |- + A copy of all tolerations specified in the request at the time when the device got allocated. + + The maximum number of tolerations is 16. + + This is an alpha field and requires enabling the DRADeviceTaints feature gate. + items: + $ref: '#/components/schemas/v1alpha3.DeviceToleration' + type: array + x-kubernetes-list-type: atomic required: - - kind + - device + - driver + - pool + - request + type: object + v1alpha3.DeviceSelector: + description: DeviceSelector must have exactly one field set. + example: + cel: + expression: expression + properties: + cel: + $ref: '#/components/schemas/v1alpha3.CELDeviceSelector' + type: object + v1alpha3.DeviceSubRequest: + description: |- + DeviceSubRequest describes a request for device provided in the claim.spec.devices.requests[].firstAvailable array. Each is typically a request for a single resource like a device, but can also ask for several identical devices. + + DeviceSubRequest is similar to Request, but doesn't expose the AdminAccess or FirstAvailable fields, as those can only be set on the top-level request. AdminAccess is not supported for requests with a prioritized list, and recursive FirstAvailable fields are not supported. + example: + allocationMode: allocationMode + deviceClassName: deviceClassName + tolerations: + - effect: effect + tolerationSeconds: 1 + value: value + key: key + operator: operator + - effect: effect + tolerationSeconds: 1 + value: value + key: key + operator: operator + count: 6 + name: name + selectors: + - cel: + expression: expression + - cel: + expression: expression + properties: + allocationMode: + description: |- + 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 AllocationMode 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. + type: string + count: + description: 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. + format: int64 + type: integer + deviceClassName: + description: |- + DeviceClassName references a specific DeviceClass, which can define additional configuration and selectors to be inherited by this subrequest. + + 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. + type: string + name: + description: |- + Name can be used to reference this subrequest in the list of constraints or the list of configurations for the claim. References must use the format
/. + + Must be a DNS label. + type: string + selectors: + description: 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. + items: + $ref: '#/components/schemas/v1alpha3.DeviceSelector' + type: array + x-kubernetes-list-type: atomic + tolerations: + description: |- + If specified, the request's tolerations. + + Tolerations for NoSchedule are required to allocate a device which has a taint with that effect. The same applies to NoExecute. + + In addition, should any of the allocated devices get tainted with NoExecute after allocation and that effect is not tolerated, then all pods consuming the ResourceClaim get deleted to evict them. The scheduler will not let new pods reserve the claim while it has these tainted devices. Once all pods are evicted, the claim will get deallocated. + + The maximum number of tolerations is 16. + + This is an alpha field and requires enabling the DRADeviceTaints feature gate. + items: + $ref: '#/components/schemas/v1alpha3.DeviceToleration' + type: array + x-kubernetes-list-type: atomic + required: + - deviceClassName - name type: object - v1.IngressClassSpec: - description: IngressClassSpec provides information about the class of an Ingress. + v1alpha3.DeviceTaint: + description: The device this taint is attached to has the "effect" on any claim + which does not tolerate the taint and, through the claim, to pods using the + claim. example: - controller: controller - parameters: - apiGroup: apiGroup - kind: kind - scope: scope + timeAdded: 2000-01-23T04:56:07.000+00:00 + effect: effect + value: value + key: key + properties: + effect: + description: The effect of the taint on claims that do not tolerate the + taint and through such claims on the pods using them. Valid effects are + NoSchedule and NoExecute. PreferNoSchedule as used for nodes is not valid + here. + type: string + key: + description: The taint key to be applied to a device. Must be a label name. + type: string + timeAdded: + description: TimeAdded represents the time at which the taint was added. + Added automatically during create or update if not set. + format: date-time + type: string + value: + description: The taint value corresponding to the taint key. Must be a label + value. + type: string + required: + - effect + - key + type: object + v1alpha3.DeviceTaintRule: + description: DeviceTaintRule adds one taint to all devices which match the selector. + This has the same effect as if the taint was specified directly in the ResourceSlice + by the DRA driver. + example: + metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: '{}' + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: '{}' + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + creationTimestamp: 2000-01-23T04:56:07.000+00:00 name: name namespace: namespace + apiVersion: apiVersion + kind: kind + spec: + taint: + timeAdded: 2000-01-23T04:56:07.000+00:00 + effect: effect + value: value + key: key + deviceSelector: + deviceClassName: deviceClassName + driver: driver + pool: pool + selectors: + - cel: + expression: expression + - cel: + expression: expression + device: device properties: - controller: - description: 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. + apiVersion: + description: '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' type: string - parameters: - $ref: '#/components/schemas/v1.IngressClassParametersReference' + kind: + description: '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' + type: string + metadata: + $ref: '#/components/schemas/v1.ObjectMeta' + spec: + $ref: '#/components/schemas/v1alpha3.DeviceTaintRuleSpec' + required: + - spec type: object - v1.IngressList: - description: IngressList is a collection of Ingress. + x-kubernetes-group-version-kind: + - group: resource.k8s.io + kind: DeviceTaintRule + version: v1alpha3 + x-implements: + - io.kubernetes.client.common.KubernetesObject + v1alpha3.DeviceTaintRuleList: + description: DeviceTaintRuleList is a collection of DeviceTaintRules. example: metadata: remainingItemCount: 1 @@ -207592,102 +247625,21 @@ components: apiVersion: apiVersion kind: kind spec: - defaultBackend: - resource: - apiGroup: apiGroup - kind: kind - name: name - service: - port: - number: 0 - name: name - name: name - ingressClassName: ingressClassName - rules: - - host: host - http: - paths: - - path: path - backend: - resource: - apiGroup: apiGroup - kind: kind - name: name - service: - port: - number: 0 - name: name - name: name - pathType: pathType - - path: path - backend: - resource: - apiGroup: apiGroup - kind: kind - name: name - service: - port: - number: 0 - name: name - name: name - pathType: pathType - - host: host - http: - paths: - - path: path - backend: - resource: - apiGroup: apiGroup - kind: kind - name: name - service: - port: - number: 0 - name: name - name: name - pathType: pathType - - path: path - backend: - resource: - apiGroup: apiGroup - kind: kind - name: name - service: - port: - number: 0 - name: name - name: name - pathType: pathType - tls: - - secretName: secretName - hosts: - - hosts - - hosts - - secretName: secretName - hosts: - - hosts - - hosts - status: - loadBalancer: - ingress: - - hostname: hostname - ip: ip - ports: - - protocol: protocol - port: 6 - error: error - - protocol: protocol - port: 6 - error: error - - hostname: hostname - ip: ip - ports: - - protocol: protocol - port: 6 - error: error - - protocol: protocol - port: 6 - error: error + taint: + timeAdded: 2000-01-23T04:56:07.000+00:00 + effect: effect + value: value + key: key + deviceSelector: + deviceClassName: deviceClassName + driver: driver + pool: pool + selectors: + - cel: + expression: expression + - cel: + expression: expression + device: device - metadata: generation: 6 finalizers: @@ -207731,463 +247683,230 @@ components: time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - creationTimestamp: 2000-01-23T04:56:07.000+00:00 - name: name - namespace: namespace - apiVersion: apiVersion - kind: kind - spec: - defaultBackend: - resource: - apiGroup: apiGroup - kind: kind - name: name - service: - port: - number: 0 - name: name - name: name - ingressClassName: ingressClassName - rules: - - host: host - http: - paths: - - path: path - backend: - resource: - apiGroup: apiGroup - kind: kind - name: name - service: - port: - number: 0 - name: name - name: name - pathType: pathType - - path: path - backend: - resource: - apiGroup: apiGroup - kind: kind - name: name - service: - port: - number: 0 - name: name - name: name - pathType: pathType - - host: host - http: - paths: - - path: path - backend: - resource: - apiGroup: apiGroup - kind: kind - name: name - service: - port: - number: 0 - name: name - name: name - pathType: pathType - - path: path - backend: - resource: - apiGroup: apiGroup - kind: kind - name: name - service: - port: - number: 0 - name: name - name: name - pathType: pathType - tls: - - secretName: secretName - hosts: - - hosts - - hosts - - secretName: secretName - hosts: - - hosts - - hosts - status: - loadBalancer: - ingress: - - hostname: hostname - ip: ip - ports: - - protocol: protocol - port: 6 - error: error - - protocol: protocol - port: 6 - error: error - - hostname: hostname - ip: ip - ports: - - protocol: protocol - port: 6 - error: error - - protocol: protocol - port: 6 - error: error - properties: - apiVersion: - description: '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' - type: string - items: - description: items is the list of Ingress. - items: - $ref: '#/components/schemas/v1.Ingress' - type: array - kind: - description: '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' - type: string - metadata: - $ref: '#/components/schemas/v1.ListMeta' - required: - - items - type: object - x-kubernetes-group-version-kind: - - group: networking.k8s.io - kind: IngressList - version: v1 - x-implements: - - io.kubernetes.client.common.KubernetesListObject - v1.IngressLoadBalancerIngress: - description: IngressLoadBalancerIngress represents the status of a load-balancer - ingress point. - example: - hostname: hostname - ip: ip - ports: - - protocol: protocol - port: 6 - error: error - - protocol: protocol - port: 6 - error: error - properties: - hostname: - description: hostname is set for load-balancer ingress points that are DNS - based. - type: string - ip: - description: ip is set for load-balancer ingress points that are IP based. - type: string - ports: - description: ports provides information about the ports exposed by this - LoadBalancer. - items: - $ref: '#/components/schemas/v1.IngressPortStatus' - type: array - x-kubernetes-list-type: atomic - type: object - v1.IngressLoadBalancerStatus: - description: IngressLoadBalancerStatus represents the status of a load-balancer. - example: - ingress: - - hostname: hostname - ip: ip - ports: - - protocol: protocol - port: 6 - error: error - - protocol: protocol - port: 6 - error: error - - hostname: hostname - ip: ip - ports: - - protocol: protocol - port: 6 - error: error - - protocol: protocol - port: 6 - error: error - properties: - ingress: - description: ingress is a list containing ingress points for the load-balancer. - items: - $ref: '#/components/schemas/v1.IngressLoadBalancerIngress' - type: array - type: object - v1.IngressPortStatus: - description: IngressPortStatus represents the error condition of a service port - example: - protocol: protocol - port: 6 - error: error - properties: - error: - description: |- - 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. - type: string - port: - description: port is the port number of the ingress port. - format: int32 - type: integer - protocol: - description: 'protocol is the protocol of the ingress port. The supported - values are: "TCP", "UDP", "SCTP"' - type: string - required: - - port - - protocol - type: object - v1.IngressRule: - 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. - example: - host: host - http: - paths: - - path: path - backend: - resource: - apiGroup: apiGroup - kind: kind - name: name - service: - port: - number: 0 - name: name - name: name - pathType: pathType - - path: path - backend: - resource: - apiGroup: apiGroup - kind: kind - name: name - service: - port: - number: 0 - name: name - name: name - pathType: pathType - properties: - host: - description: "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\n the IP in the Spec of the\ - \ parent Ingress.\n2. The `:` delimiter is not respected because ports\ - \ are not allowed.\n\t Currently the port of an Ingress is implicitly\ - \ :80 for http and\n\t :443 for https.\nBoth 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.\n\nhost 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." + creationTimestamp: 2000-01-23T04:56:07.000+00:00 + name: name + namespace: namespace + apiVersion: apiVersion + kind: kind + spec: + taint: + timeAdded: 2000-01-23T04:56:07.000+00:00 + effect: effect + value: value + key: key + deviceSelector: + deviceClassName: deviceClassName + driver: driver + pool: pool + selectors: + - cel: + expression: expression + - cel: + expression: expression + device: device + properties: + apiVersion: + description: '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' type: string - http: - $ref: '#/components/schemas/v1.HTTPIngressRuleValue' + items: + description: Items is the list of DeviceTaintRules. + items: + $ref: '#/components/schemas/v1alpha3.DeviceTaintRule' + type: array + kind: + description: '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' + type: string + metadata: + $ref: '#/components/schemas/v1.ListMeta' + required: + - items type: object - v1.IngressServiceBackend: - description: IngressServiceBackend references a Kubernetes Service as a Backend. + x-kubernetes-group-version-kind: + - group: resource.k8s.io + kind: DeviceTaintRuleList + version: v1alpha3 + x-implements: + - io.kubernetes.client.common.KubernetesListObject + v1alpha3.DeviceTaintRuleSpec: + description: DeviceTaintRuleSpec specifies the selector and one taint. example: - port: - number: 0 - name: name - name: name + taint: + timeAdded: 2000-01-23T04:56:07.000+00:00 + effect: effect + value: value + key: key + deviceSelector: + deviceClassName: deviceClassName + driver: driver + pool: pool + selectors: + - cel: + expression: expression + - cel: + expression: expression + device: device properties: - name: - description: name is the referenced service. The service must exist in the - same namespace as the Ingress object. - type: string - port: - $ref: '#/components/schemas/v1.ServiceBackendPort' + deviceSelector: + $ref: '#/components/schemas/v1alpha3.DeviceTaintSelector' + taint: + $ref: '#/components/schemas/v1alpha3.DeviceTaint' required: - - name + - taint type: object - v1.IngressSpec: - description: IngressSpec describes the Ingress the user wishes to exist. + v1alpha3.DeviceTaintSelector: + description: DeviceTaintSelector defines which device(s) a DeviceTaintRule applies + to. The empty selector matches all devices. Without a selector, no devices + are matched. example: - defaultBackend: - resource: - apiGroup: apiGroup - kind: kind - name: name - service: - port: - number: 0 - name: name - name: name - ingressClassName: ingressClassName - rules: - - host: host - http: - paths: - - path: path - backend: - resource: - apiGroup: apiGroup - kind: kind - name: name - service: - port: - number: 0 - name: name - name: name - pathType: pathType - - path: path - backend: - resource: - apiGroup: apiGroup - kind: kind - name: name - service: - port: - number: 0 - name: name - name: name - pathType: pathType - - host: host - http: - paths: - - path: path - backend: - resource: - apiGroup: apiGroup - kind: kind - name: name - service: - port: - number: 0 - name: name - name: name - pathType: pathType - - path: path - backend: - resource: - apiGroup: apiGroup - kind: kind - name: name - service: - port: - number: 0 - name: name - name: name - pathType: pathType - tls: - - secretName: secretName - hosts: - - hosts - - hosts - - secretName: secretName - hosts: - - hosts - - hosts + deviceClassName: deviceClassName + driver: driver + pool: pool + selectors: + - cel: + expression: expression + - cel: + expression: expression + device: device properties: - defaultBackend: - $ref: '#/components/schemas/v1.IngressBackend' - ingressClassName: - description: 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. + device: + description: |- + If device is set, only devices with that name are selected. This field corresponds to slice.spec.devices[].name. + + Setting also driver and pool may be required to avoid ambiguity, but is not required. type: string - rules: - description: 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. - items: - $ref: '#/components/schemas/v1.IngressRule' - type: array - x-kubernetes-list-type: atomic - tls: - description: 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. + deviceClassName: + description: If DeviceClassName is set, the selectors defined there must + be satisfied by a device to be selected. This field corresponds to class.metadata.name. + type: string + driver: + description: If driver is set, only devices from that driver are selected. + This fields corresponds to slice.spec.driver. + type: string + pool: + description: |- + If pool is set, only devices in that pool are selected. + + Also setting the driver name may be useful to avoid ambiguity when different drivers use the same pool name, but this is not required because selecting pools from different drivers may also be useful, for example when drivers with node-local devices use the node name as their pool name. + type: string + selectors: + description: Selectors contains the same selection criteria as a ResourceClaim. + Currently, CEL expressions are supported. All of these selectors must + be satisfied. items: - $ref: '#/components/schemas/v1.IngressTLS' + $ref: '#/components/schemas/v1alpha3.DeviceSelector' type: array x-kubernetes-list-type: atomic type: object - v1.IngressStatus: - description: IngressStatus describe the current state of the Ingress. + v1alpha3.DeviceToleration: + description: The ResourceClaim this DeviceToleration is attached to tolerates + any taint that matches the triple using the matching operator + . example: - loadBalancer: - ingress: - - hostname: hostname - ip: ip - ports: - - protocol: protocol - port: 6 - error: error - - protocol: protocol - port: 6 - error: error - - hostname: hostname - ip: ip - ports: - - protocol: protocol - port: 6 - error: error - - protocol: protocol - port: 6 - error: error + effect: effect + tolerationSeconds: 1 + value: value + key: key + operator: operator properties: - loadBalancer: - $ref: '#/components/schemas/v1.IngressLoadBalancerStatus' + effect: + description: Effect indicates the taint effect to match. Empty means match + all taint effects. When specified, allowed values are NoSchedule and NoExecute. + type: string + key: + description: 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. Must be a label + name. + type: string + operator: + description: 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 ResourceClaim can tolerate all taints + of a particular category. + type: string + tolerationSeconds: + description: 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. If larger than zero, the time when the pod needs to be + evicted is calculated as
[/]. If just the main request is given, the configuration applies to all subrequests. + items: + type: string + type: array + x-kubernetes-list-type: atomic + source: + description: 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. + type: string + required: + - source + type: object + v1beta1.DeviceAllocationResult: + description: DeviceAllocationResult is the result of allocating devices. + example: + config: + - opaque: + driver: driver + parameters: '{}' + requests: + - requests + - requests + source: source + - opaque: + driver: driver + parameters: '{}' + requests: + - requests + - requests + source: source + results: + - request: request + adminAccess: true + tolerations: + - effect: effect + tolerationSeconds: 1 + value: value + key: key + operator: operator + - effect: effect + tolerationSeconds: 1 + value: value + key: key + operator: operator + driver: driver + pool: pool + device: device + - request: request + adminAccess: true + tolerations: + - effect: effect + tolerationSeconds: 1 + value: value + key: key + operator: operator + - effect: effect + tolerationSeconds: 1 + value: value + key: key + operator: operator + driver: driver + pool: pool + device: device + properties: + config: + description: |- + 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. + items: + $ref: '#/components/schemas/v1beta1.DeviceAllocationConfiguration' + type: array + x-kubernetes-list-type: atomic + results: + description: Results lists all allocated devices. + items: + $ref: '#/components/schemas/v1beta1.DeviceRequestAllocationResult' + type: array + x-kubernetes-list-type: atomic + type: object + v1beta1.DeviceAttribute: + description: DeviceAttribute must have exactly one field set. + example: + bool: true + string: string + version: version + int: 0 + properties: + bool: + description: BoolValue is a true/false value. + type: boolean + int: + description: IntValue is a number. + format: int64 + type: integer + string: + description: StringValue is a string. Must not be longer than 64 characters. type: string - uid: - description: UID is the uid of the object being referenced. + version: + description: VersionValue is a semantic version according to semver.org + spec 2.0.0. Must not be longer than 64 characters. type: string type: object - v1.Overhead: - description: Overhead structure represents the resource overhead associated - with running a pod. + v1beta1.DeviceCapacity: + description: DeviceCapacity describes a quantity associated with a device. example: - podFixed: {} + value: value properties: - podFixed: - additionalProperties: - $ref: '#/components/schemas/resource.Quantity' - description: podFixed represents the fixed resource overhead associated - with running a pod. - type: object + value: + description: "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.\n\nThe serialization format is:\n\n\ + ``` ::= \n\n\t(Note that \ + \ may be empty, from the \"\" case in .)\n\n \ + \ ::= 0 | 1 | ... | 9 ::= | \ + \ ::= | . | . | .\ + \ ::= \"+\" | \"-\" ::= |\ + \ ::= | \ + \ | ::= Ki | Mi | Gi | Ti | Pi | Ei\n\n\t\ + (International System of units; See: http://physics.nist.gov/cuu/Units/binary.html)\n\ + \n ::= m | \"\" | k | M | G | T | P | E\n\n\t(Note that\ + \ 1024 = 1Ki but 1000 = 1k; I didn't choose the capitalization.)\n\n\ + \ ::= \"e\" | \"E\" ```\n\nNo 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.\n\nWhen 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.\n\nBefore 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:\n\n- No precision is lost - No fractional digits\ + \ will be emitted - The exponent (or suffix) is as large as possible.\n\ + \nThe sign will be omitted unless the number is negative.\n\nExamples:\n\ + \n- 1.5 will be serialized as \"1500m\" - 1.5Gi will be serialized as\ + \ \"1536Mi\"\n\nNote that the quantity will NEVER be internally represented\ + \ by a floating point number. That is the whole point of this exercise.\n\ + \nNon-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.)\n\nThis 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." + format: quantity + type: string + required: + - value type: object - v1.RuntimeClass: - 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/ + v1beta1.DeviceClaim: + description: DeviceClaim defines how to request devices with a ResourceClaim. example: - handler: handler - metadata: - generation: 6 - finalizers: - - finalizers - - finalizers - resourceVersion: resourceVersion - annotations: - key: annotations - generateName: generateName - deletionTimestamp: 2000-01-23T04:56:07.000+00:00 - labels: - key: labels - ownerReferences: - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind + requests: + - allocationMode: allocationMode + deviceClassName: deviceClassName + adminAccess: true + tolerations: + - effect: effect + tolerationSeconds: 1 + value: value + key: key + operator: operator + - effect: effect + tolerationSeconds: 1 + value: value + key: key + operator: operator + firstAvailable: + - allocationMode: allocationMode + deviceClassName: deviceClassName + tolerations: + - effect: effect + tolerationSeconds: 1 + value: value + key: key + operator: operator + - effect: effect + tolerationSeconds: 1 + value: value + key: key + operator: operator + count: 6 name: name - blockOwnerDeletion: true - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind + selectors: + - cel: + expression: expression + - cel: + expression: expression + - allocationMode: allocationMode + deviceClassName: deviceClassName + tolerations: + - effect: effect + tolerationSeconds: 1 + value: value + key: key + operator: operator + - effect: effect + tolerationSeconds: 1 + value: value + key: key + operator: operator + count: 6 name: name - blockOwnerDeletion: true - selfLink: selfLink - deletionGracePeriodSeconds: 0 - uid: uid - managedFields: - - apiVersion: apiVersion - fieldsV1: '{}' - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - - apiVersion: apiVersion - fieldsV1: '{}' - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - creationTimestamp: 2000-01-23T04:56:07.000+00:00 + selectors: + - cel: + expression: expression + - cel: + expression: expression + count: 0 name: name - namespace: namespace - apiVersion: apiVersion - kind: kind - overhead: - podFixed: {} - scheduling: + selectors: + - cel: + expression: expression + - cel: + expression: expression + - allocationMode: allocationMode + deviceClassName: deviceClassName + adminAccess: true tolerations: - effect: effect - tolerationSeconds: 9 + tolerationSeconds: 1 value: value key: key operator: operator - effect: effect - tolerationSeconds: 9 + tolerationSeconds: 1 value: value key: key operator: operator - nodeSelector: - key: nodeSelector - properties: - apiVersion: - description: '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' - type: string - handler: - description: 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. - type: string - kind: - description: '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' - type: string - metadata: - $ref: '#/components/schemas/v1.ObjectMeta' - overhead: - $ref: '#/components/schemas/v1.Overhead' - scheduling: - $ref: '#/components/schemas/v1.Scheduling' - required: - - handler - type: object - x-kubernetes-group-version-kind: - - group: node.k8s.io - kind: RuntimeClass - version: v1 - x-implements: - - io.kubernetes.client.common.KubernetesObject - v1.RuntimeClassList: - description: RuntimeClassList is a list of RuntimeClass objects. - example: - metadata: - remainingItemCount: 1 - continue: continue - resourceVersion: resourceVersion - selfLink: selfLink - apiVersion: apiVersion - kind: kind - items: - - handler: handler - metadata: - generation: 6 - finalizers: - - finalizers - - finalizers - resourceVersion: resourceVersion - annotations: - key: annotations - generateName: generateName - deletionTimestamp: 2000-01-23T04:56:07.000+00:00 - labels: - key: labels - ownerReferences: - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - selfLink: selfLink - deletionGracePeriodSeconds: 0 - uid: uid - managedFields: - - apiVersion: apiVersion - fieldsV1: '{}' - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - - apiVersion: apiVersion - fieldsV1: '{}' - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - creationTimestamp: 2000-01-23T04:56:07.000+00:00 - name: name - namespace: namespace - apiVersion: apiVersion - kind: kind - overhead: - podFixed: {} - scheduling: + firstAvailable: + - allocationMode: allocationMode + deviceClassName: deviceClassName tolerations: - effect: effect - tolerationSeconds: 9 + tolerationSeconds: 1 value: value key: key operator: operator - effect: effect - tolerationSeconds: 9 + tolerationSeconds: 1 value: value key: key operator: operator - nodeSelector: - key: nodeSelector - - handler: handler - metadata: - generation: 6 - finalizers: - - finalizers - - finalizers - resourceVersion: resourceVersion - annotations: - key: annotations - generateName: generateName - deletionTimestamp: 2000-01-23T04:56:07.000+00:00 - labels: - key: labels - ownerReferences: - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - selfLink: selfLink - deletionGracePeriodSeconds: 0 - uid: uid - managedFields: - - apiVersion: apiVersion - fieldsV1: '{}' - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - - apiVersion: apiVersion - fieldsV1: '{}' - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - creationTimestamp: 2000-01-23T04:56:07.000+00:00 + count: 6 name: name - namespace: namespace - apiVersion: apiVersion - kind: kind - overhead: - podFixed: {} - scheduling: + selectors: + - cel: + expression: expression + - cel: + expression: expression + - allocationMode: allocationMode + deviceClassName: deviceClassName tolerations: - effect: effect - tolerationSeconds: 9 + tolerationSeconds: 1 value: value key: key operator: operator - effect: effect - tolerationSeconds: 9 + tolerationSeconds: 1 value: value key: key operator: operator - nodeSelector: - key: nodeSelector + count: 6 + name: name + selectors: + - cel: + expression: expression + - cel: + expression: expression + count: 0 + name: name + selectors: + - cel: + expression: expression + - cel: + expression: expression + config: + - opaque: + driver: driver + parameters: '{}' + requests: + - requests + - requests + - opaque: + driver: driver + parameters: '{}' + requests: + - requests + - requests + constraints: + - matchAttribute: matchAttribute + requests: + - requests + - requests + - matchAttribute: matchAttribute + requests: + - requests + - requests properties: - apiVersion: - description: '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' - type: string - items: - description: items is a list of schema objects. + config: + description: This field holds configuration for multiple potential drivers + which could satisfy requests in this claim. It is ignored while allocating + the claim. items: - $ref: '#/components/schemas/v1.RuntimeClass' + $ref: '#/components/schemas/v1beta1.DeviceClaimConfiguration' type: array - kind: - description: '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' - type: string - metadata: - $ref: '#/components/schemas/v1.ListMeta' - required: - - items + x-kubernetes-list-type: atomic + constraints: + description: These constraints must be satisfied by the set of devices that + get allocated for the claim. + items: + $ref: '#/components/schemas/v1beta1.DeviceConstraint' + type: array + x-kubernetes-list-type: atomic + requests: + description: Requests represent individual requests for distinct devices + which must all be satisfied. If empty, nothing needs to be allocated. + items: + $ref: '#/components/schemas/v1beta1.DeviceRequest' + type: array + x-kubernetes-list-type: atomic type: object - x-kubernetes-group-version-kind: - - group: node.k8s.io - kind: RuntimeClassList - version: v1 - x-implements: - - io.kubernetes.client.common.KubernetesListObject - v1.Scheduling: - description: Scheduling specifies the scheduling constraints for nodes supporting - a RuntimeClass. + v1beta1.DeviceClaimConfiguration: + description: DeviceClaimConfiguration is used for configuration parameters in + DeviceClaim. example: - tolerations: - - effect: effect - tolerationSeconds: 9 - value: value - key: key - operator: operator - - effect: effect - tolerationSeconds: 9 - value: value - key: key - operator: operator - nodeSelector: - key: nodeSelector + opaque: + driver: driver + parameters: '{}' + requests: + - requests + - requests properties: - nodeSelector: - additionalProperties: - type: string - description: 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. - type: object - x-kubernetes-map-type: atomic - tolerations: - description: 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. + opaque: + $ref: '#/components/schemas/v1beta1.OpaqueDeviceConfiguration' + requests: + description: |- + Requests lists the names of requests where the configuration applies. If empty, it applies to all requests. + + References to subrequests must include the name of the main request and may include the subrequest using the format
[/]. If just the main request is given, the configuration applies to all subrequests. items: - $ref: '#/components/schemas/v1.Toleration' + type: string type: array x-kubernetes-list-type: atomic type: object - v1.Eviction: - 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. + v1beta1.DeviceClass: + 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. example: - deleteOptions: - orphanDependents: true - apiVersion: apiVersion - dryRun: - - dryRun - - dryRun - kind: kind - preconditions: - uid: uid - resourceVersion: resourceVersion - gracePeriodSeconds: 0 - propagationPolicy: propagationPolicy metadata: generation: 6 finalizers: @@ -211099,14 +252502,25 @@ components: namespace: namespace apiVersion: apiVersion kind: kind + spec: + selectors: + - cel: + expression: expression + - cel: + expression: expression + config: + - opaque: + driver: driver + parameters: '{}' + - opaque: + driver: driver + parameters: '{}' properties: apiVersion: description: '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' type: string - deleteOptions: - $ref: '#/components/schemas/v1.DeleteOptions' kind: description: 'Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client @@ -211114,130 +252528,29 @@ components: type: string metadata: $ref: '#/components/schemas/v1.ObjectMeta' + spec: + $ref: '#/components/schemas/v1beta1.DeviceClassSpec' + required: + - spec type: object x-kubernetes-group-version-kind: - - group: policy - kind: Eviction - version: v1 + - group: resource.k8s.io + kind: DeviceClass + version: v1beta1 x-implements: - io.kubernetes.client.common.KubernetesObject - v1.PodDisruptionBudget: - description: PodDisruptionBudget is an object to define the max disruption that - can be caused to a collection of pods + v1beta1.DeviceClassConfiguration: + description: DeviceClassConfiguration is used in DeviceClass. example: - metadata: - generation: 6 - finalizers: - - finalizers - - finalizers - resourceVersion: resourceVersion - annotations: - key: annotations - generateName: generateName - deletionTimestamp: 2000-01-23T04:56:07.000+00:00 - labels: - key: labels - ownerReferences: - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - selfLink: selfLink - deletionGracePeriodSeconds: 0 - uid: uid - managedFields: - - apiVersion: apiVersion - fieldsV1: '{}' - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - - apiVersion: apiVersion - fieldsV1: '{}' - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - creationTimestamp: 2000-01-23T04:56:07.000+00:00 - name: name - namespace: namespace - apiVersion: apiVersion - kind: kind - spec: - minAvailable: minAvailable - maxUnavailable: maxUnavailable - unhealthyPodEvictionPolicy: unhealthyPodEvictionPolicy - selector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - status: - currentHealthy: 0 - expectedPods: 5 - disruptionsAllowed: 1 - disruptedPods: - key: 2000-01-23T04:56:07.000+00:00 - conditions: - - reason: reason - lastTransitionTime: 2000-01-23T04:56:07.000+00:00 - message: message - type: type - observedGeneration: 5 - status: status - - reason: reason - lastTransitionTime: 2000-01-23T04:56:07.000+00:00 - message: message - type: type - observedGeneration: 5 - status: status - observedGeneration: 5 - desiredHealthy: 6 + opaque: + driver: driver + parameters: '{}' properties: - apiVersion: - description: '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' - type: string - kind: - description: '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' - type: string - metadata: - $ref: '#/components/schemas/v1.ObjectMeta' - spec: - $ref: '#/components/schemas/v1.PodDisruptionBudgetSpec' - status: - $ref: '#/components/schemas/v1.PodDisruptionBudgetStatus' + opaque: + $ref: '#/components/schemas/v1beta1.OpaqueDeviceConfiguration' type: object - x-kubernetes-group-version-kind: - - group: policy - kind: PodDisruptionBudget - version: v1 - x-implements: - - io.kubernetes.client.common.KubernetesObject - v1.PodDisruptionBudgetList: - description: PodDisruptionBudgetList is a collection of PodDisruptionBudgets. + v1beta1.DeviceClassList: + description: DeviceClassList is a collection of classes. example: metadata: remainingItemCount: 1 @@ -211296,44 +252609,18 @@ components: apiVersion: apiVersion kind: kind spec: - minAvailable: minAvailable - maxUnavailable: maxUnavailable - unhealthyPodEvictionPolicy: unhealthyPodEvictionPolicy - selector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - status: - currentHealthy: 0 - expectedPods: 5 - disruptionsAllowed: 1 - disruptedPods: - key: 2000-01-23T04:56:07.000+00:00 - conditions: - - reason: reason - lastTransitionTime: 2000-01-23T04:56:07.000+00:00 - message: message - type: type - observedGeneration: 5 - status: status - - reason: reason - lastTransitionTime: 2000-01-23T04:56:07.000+00:00 - message: message - type: type - observedGeneration: 5 - status: status - observedGeneration: 5 - desiredHealthy: 6 + selectors: + - cel: + expression: expression + - cel: + expression: expression + config: + - opaque: + driver: driver + parameters: '{}' + - opaque: + driver: driver + parameters: '{}' - metadata: generation: 6 finalizers: @@ -211383,44 +252670,18 @@ components: apiVersion: apiVersion kind: kind spec: - minAvailable: minAvailable - maxUnavailable: maxUnavailable - unhealthyPodEvictionPolicy: unhealthyPodEvictionPolicy - selector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - status: - currentHealthy: 0 - expectedPods: 5 - disruptionsAllowed: 1 - disruptedPods: - key: 2000-01-23T04:56:07.000+00:00 - conditions: - - reason: reason - lastTransitionTime: 2000-01-23T04:56:07.000+00:00 - message: message - type: type - observedGeneration: 5 - status: status - - reason: reason - lastTransitionTime: 2000-01-23T04:56:07.000+00:00 - message: message - type: type - observedGeneration: 5 - status: status - observedGeneration: 5 - desiredHealthy: 6 + selectors: + - cel: + expression: expression + - cel: + expression: expression + config: + - opaque: + driver: driver + parameters: '{}' + - opaque: + driver: driver + parameters: '{}' properties: apiVersion: description: 'APIVersion defines the versioned schema of this representation @@ -211428,9 +252689,9 @@ components: internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources' type: string items: - description: Items is a list of PodDisruptionBudgets + description: Items is the list of resource classes. items: - $ref: '#/components/schemas/v1.PodDisruptionBudget' + $ref: '#/components/schemas/v1beta1.DeviceClass' type: array kind: description: 'Kind is a string value representing the REST resource this @@ -211443,198 +252704,555 @@ components: - items type: object x-kubernetes-group-version-kind: - - group: policy - kind: PodDisruptionBudgetList - version: v1 + - group: resource.k8s.io + kind: DeviceClassList + version: v1beta1 x-implements: - io.kubernetes.client.common.KubernetesListObject - v1.PodDisruptionBudgetSpec: - description: PodDisruptionBudgetSpec is a description of a PodDisruptionBudget. + v1beta1.DeviceClassSpec: + description: DeviceClassSpec is used in a [DeviceClass] to define what can be + allocated and how to configure it. example: - minAvailable: minAvailable - maxUnavailable: maxUnavailable - unhealthyPodEvictionPolicy: unhealthyPodEvictionPolicy - selector: - matchExpressions: - - values: - - values - - values + selectors: + - cel: + expression: expression + - cel: + expression: expression + config: + - opaque: + driver: driver + parameters: '{}' + - opaque: + driver: driver + parameters: '{}' + properties: + config: + description: |- + 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. + items: + $ref: '#/components/schemas/v1beta1.DeviceClassConfiguration' + type: array + x-kubernetes-list-type: atomic + selectors: + description: Each selector must be satisfied by a device which is claimed + via this class. + items: + $ref: '#/components/schemas/v1beta1.DeviceSelector' + type: array + x-kubernetes-list-type: atomic + type: object + v1beta1.DeviceConstraint: + description: DeviceConstraint must have exactly one field set besides Requests. + example: + matchAttribute: matchAttribute + requests: + - requests + - requests + properties: + matchAttribute: + description: |- + 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. + type: string + requests: + description: |- + 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. + + References to subrequests must include the name of the main request and may include the subrequest using the format
[/]. If just the main request is given, the constraint applies to all subrequests. + items: + type: string + type: array + x-kubernetes-list-type: atomic + type: object + v1beta1.DeviceCounterConsumption: + description: DeviceCounterConsumption defines a set of counters that a device + will consume from a CounterSet. + example: + counters: + key: + value: value + counterSet: counterSet + properties: + counterSet: + description: CounterSet is the name of the set from which the counters defined + will be consumed. + type: string + counters: + additionalProperties: + $ref: '#/components/schemas/v1beta1.Counter' + description: |- + Counters defines the counters that will be consumed by the device. + + The maximum number counters in a device is 32. In addition, the maximum number of all counters in all devices is 1024 (for example, 64 devices with 16 counters each). + type: object + required: + - counterSet + - counters + type: object + v1beta1.DeviceRequest: + 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. + example: + allocationMode: allocationMode + deviceClassName: deviceClassName + adminAccess: true + tolerations: + - effect: effect + tolerationSeconds: 1 + value: value + key: key + operator: operator + - effect: effect + tolerationSeconds: 1 + value: value + key: key + operator: operator + firstAvailable: + - allocationMode: allocationMode + deviceClassName: deviceClassName + tolerations: + - effect: effect + tolerationSeconds: 1 + value: value key: key operator: operator - - values: - - values - - values + - effect: effect + tolerationSeconds: 1 + value: value key: key operator: operator - matchLabels: - key: matchLabels + count: 6 + name: name + selectors: + - cel: + expression: expression + - cel: + expression: expression + - allocationMode: allocationMode + deviceClassName: deviceClassName + tolerations: + - effect: effect + tolerationSeconds: 1 + value: value + key: key + operator: operator + - effect: effect + tolerationSeconds: 1 + value: value + key: key + operator: operator + count: 6 + name: name + selectors: + - cel: + expression: expression + - cel: + expression: expression + count: 0 + name: name + selectors: + - cel: + expression: expression + - cel: + expression: expression properties: - maxUnavailable: - description: 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. - format: int-or-string - type: string - minAvailable: - description: 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. - format: int-or-string + adminAccess: + description: |- + 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. + + This field can only be set when deviceClassName is set and no subrequests are specified in the firstAvailable list. + + This is an alpha field and requires enabling the DRAAdminAccess feature gate. Admin access is disabled if this field is unset or set to false, otherwise it is enabled. + type: boolean + allocationMode: + description: |- + 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. + At least one device must exist on the node for the allocation to succeed. + Allocation will fail if some devices are already allocated, + unless adminAccess is requested. + + If AllocationMode 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. + + This field can only be set when deviceClassName is set and no subrequests are specified in the firstAvailable list. + + More modes may get added in the future. Clients must refuse to handle requests with unknown modes. type: string - selector: - $ref: '#/components/schemas/v1.LabelSelector' - unhealthyPodEvictionPolicy: + count: description: |- - 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". + 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. - Valid policies are IfHealthyBudget and AlwaysAllow. If no policy is specified, the default behavior will be used, which corresponds to the IfHealthyBudget policy. + This field can only be set when deviceClassName is set and no subrequests are specified in the firstAvailable list. + format: int64 + type: integer + deviceClassName: + description: |- + DeviceClassName references a specific DeviceClass, which can define additional configuration and selectors to be inherited by this request. - 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. + A class is required if no subrequests are specified in the firstAvailable list and no class can be set if subrequests are specified in the firstAvailable list. Which classes are available depends on the cluster. - 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. + 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. + type: string + firstAvailable: + description: |- + FirstAvailable contains subrequests, of which exactly one will be satisfied by the scheduler to satisfy this request. It tries to satisfy them in the order in which they are listed here. So if there are two entries in the list, the scheduler will only check the second one if it determines that the first one cannot be used. - 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 may only be set in the entries of DeviceClaim.Requests. + + DRA does not yet implement scoring, so the scheduler will select the first set of devices that satisfies all the requests in the claim. And if the requirements can be satisfied on more than one node, other scheduling features will determine which node is chosen. This means that the set of devices allocated to a claim might not be the optimal set available to the cluster. Scoring will be implemented later. + items: + $ref: '#/components/schemas/v1beta1.DeviceSubRequest' + type: array + x-kubernetes-list-type: atomic + name: + description: |- + Name can be used to reference this request in a pod.spec.containers[].resources.claims entry and in a constraint of the claim. - This field is beta-level. The eviction API uses this field when the feature gate PDBUnhealthyPodEvictionPolicy is enabled (enabled by default). + Must be a DNS label and unique among all DeviceRequests in a ResourceClaim. type: string + selectors: + description: |- + 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. + + This field can only be set when deviceClassName is set and no subrequests are specified in the firstAvailable list. + items: + $ref: '#/components/schemas/v1beta1.DeviceSelector' + type: array + x-kubernetes-list-type: atomic + tolerations: + description: |- + If specified, the request's tolerations. + + Tolerations for NoSchedule are required to allocate a device which has a taint with that effect. The same applies to NoExecute. + + In addition, should any of the allocated devices get tainted with NoExecute after allocation and that effect is not tolerated, then all pods consuming the ResourceClaim get deleted to evict them. The scheduler will not let new pods reserve the claim while it has these tainted devices. Once all pods are evicted, the claim will get deallocated. + + The maximum number of tolerations is 16. + + This field can only be set when deviceClassName is set and no subrequests are specified in the firstAvailable list. + + This is an alpha field and requires enabling the DRADeviceTaints feature gate. + items: + $ref: '#/components/schemas/v1beta1.DeviceToleration' + type: array + x-kubernetes-list-type: atomic + required: + - name type: object - v1.PodDisruptionBudgetStatus: - description: PodDisruptionBudgetStatus represents information about the status - of a PodDisruptionBudget. Status may trail the actual state of a system. + v1beta1.DeviceRequestAllocationResult: + description: DeviceRequestAllocationResult contains the allocation result for + one request. example: - currentHealthy: 0 - expectedPods: 5 - disruptionsAllowed: 1 - disruptedPods: - key: 2000-01-23T04:56:07.000+00:00 - conditions: - - reason: reason - lastTransitionTime: 2000-01-23T04:56:07.000+00:00 - message: message - type: type - observedGeneration: 5 - status: status - - reason: reason - lastTransitionTime: 2000-01-23T04:56:07.000+00:00 - message: message - type: type - observedGeneration: 5 - status: status - observedGeneration: 5 - desiredHealthy: 6 + request: request + adminAccess: true + tolerations: + - effect: effect + tolerationSeconds: 1 + value: value + key: key + operator: operator + - effect: effect + tolerationSeconds: 1 + value: value + key: key + operator: operator + driver: driver + pool: pool + device: device properties: - conditions: + adminAccess: description: |- - 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. + AdminAccess indicates that this device was allocated for administrative access. See the corresponding request field for a definition of mode. + + This is an alpha field and requires enabling the DRAAdminAccess feature gate. Admin access is disabled if this field is unset or set to false, otherwise it is enabled. + type: boolean + device: + description: Device references one device instance via its name in the driver's + resource pool. It must be a DNS label. + type: string + driver: + description: |- + 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. + type: string + pool: + description: |- + 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. + type: string + request: + description: |- + Request is the name of the request in the claim which caused this device to be allocated. If it references a subrequest in the firstAvailable list on a DeviceRequest, this field must include both the name of the main request and the subrequest using the format
/. + + Multiple devices may have been allocated per request. + type: string + tolerations: + description: |- + A copy of all tolerations specified in the request at the time when the device got allocated. + + The maximum number of tolerations is 16. + + This is an alpha field and requires enabling the DRADeviceTaints feature gate. items: - $ref: '#/components/schemas/v1.Condition' + $ref: '#/components/schemas/v1beta1.DeviceToleration' type: array - x-kubernetes-patch-strategy: merge - x-kubernetes-list-type: map - x-kubernetes-list-map-keys: - - type - x-kubernetes-patch-merge-key: type - currentHealthy: - description: current number of healthy pods - format: int32 - type: integer - desiredHealthy: - description: minimum desired number of healthy pods - format: int32 - type: integer - disruptedPods: - additionalProperties: - description: 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. - format: date-time - type: string - description: 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. - type: object - disruptionsAllowed: - description: Number of pod disruptions that are currently allowed. - format: int32 - type: integer - expectedPods: - description: total number of pods counted by this disruption budget - format: int32 - type: integer - observedGeneration: - description: 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. + x-kubernetes-list-type: atomic + required: + - device + - driver + - pool + - request + type: object + v1beta1.DeviceSelector: + description: DeviceSelector must have exactly one field set. + example: + cel: + expression: expression + properties: + cel: + $ref: '#/components/schemas/v1beta1.CELDeviceSelector' + type: object + v1beta1.DeviceSubRequest: + description: |- + DeviceSubRequest describes a request for device provided in the claim.spec.devices.requests[].firstAvailable array. Each is typically a request for a single resource like a device, but can also ask for several identical devices. + + DeviceSubRequest is similar to Request, but doesn't expose the AdminAccess or FirstAvailable fields, as those can only be set on the top-level request. AdminAccess is not supported for requests with a prioritized list, and recursive FirstAvailable fields are not supported. + example: + allocationMode: allocationMode + deviceClassName: deviceClassName + tolerations: + - effect: effect + tolerationSeconds: 1 + value: value + key: key + operator: operator + - effect: effect + tolerationSeconds: 1 + value: value + key: key + operator: operator + count: 6 + name: name + selectors: + - cel: + expression: expression + - cel: + expression: expression + properties: + allocationMode: + description: |- + AllocationMode and its related fields define how devices are allocated to satisfy this subrequest. 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 subrequest is for all of the matching devices in a pool. + Allocation will fail if some devices are already allocated, + unless adminAccess is requested. + + If AllocationMode 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 subrequests must specify this field. + + More modes may get added in the future. Clients must refuse to handle requests with unknown modes. + type: string + count: + description: 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. format: int64 type: integer + deviceClassName: + description: |- + DeviceClassName references a specific DeviceClass, which can define additional configuration and selectors to be inherited by this subrequest. + + 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. + type: string + name: + description: |- + Name can be used to reference this subrequest in the list of constraints or the list of configurations for the claim. References must use the format
/. + + Must be a DNS label. + type: string + selectors: + description: Selectors define criteria which must be satisfied by a specific + device in order for that device to be considered for this subrequest. + All selectors must be satisfied for a device to be considered. + items: + $ref: '#/components/schemas/v1beta1.DeviceSelector' + type: array + x-kubernetes-list-type: atomic + tolerations: + description: |- + If specified, the request's tolerations. + + Tolerations for NoSchedule are required to allocate a device which has a taint with that effect. The same applies to NoExecute. + + In addition, should any of the allocated devices get tainted with NoExecute after allocation and that effect is not tolerated, then all pods consuming the ResourceClaim get deleted to evict them. The scheduler will not let new pods reserve the claim while it has these tainted devices. Once all pods are evicted, the claim will get deallocated. + + The maximum number of tolerations is 16. + + This is an alpha field and requires enabling the DRADeviceTaints feature gate. + items: + $ref: '#/components/schemas/v1beta1.DeviceToleration' + type: array + x-kubernetes-list-type: atomic required: - - currentHealthy - - desiredHealthy - - disruptionsAllowed - - expectedPods + - deviceClassName + - name type: object - v1.AggregationRule: - description: AggregationRule describes how to locate ClusterRoles to aggregate - into the ClusterRole + v1beta1.DeviceTaint: + description: The device this taint is attached to has the "effect" on any claim + which does not tolerate the taint and, through the claim, to pods using the + claim. example: - clusterRoleSelectors: - - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels + timeAdded: 2000-01-23T04:56:07.000+00:00 + effect: effect + value: value + key: key + properties: + effect: + description: The effect of the taint on claims that do not tolerate the + taint and through such claims on the pods using them. Valid effects are + NoSchedule and NoExecute. PreferNoSchedule as used for nodes is not valid + here. + type: string + key: + description: The taint key to be applied to a device. Must be a label name. + type: string + timeAdded: + description: TimeAdded represents the time at which the taint was added. + Added automatically during create or update if not set. + format: date-time + type: string + value: + description: The taint value corresponding to the taint key. Must be a label + value. + type: string + required: + - effect + - key + type: object + v1beta1.DeviceToleration: + description: The ResourceClaim this DeviceToleration is attached to tolerates + any taint that matches the triple using the matching operator + . + example: + effect: effect + tolerationSeconds: 1 + value: value + key: key + operator: operator + properties: + effect: + description: Effect indicates the taint effect to match. Empty means match + all taint effects. When specified, allowed values are NoSchedule and NoExecute. + type: string + key: + description: 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. Must be a label + name. + type: string + operator: + description: 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 ResourceClaim can tolerate all taints + of a particular category. + type: string + tolerationSeconds: + description: 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. If larger than zero, the time when the pod needs to be + evicted is calculated as
[/]. If just the main request is given, the configuration applies to all subrequests. + items: + type: string + type: array + x-kubernetes-list-type: atomic + source: + description: 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. + type: string + required: + - source + type: object + v1beta2.DeviceAllocationResult: + description: DeviceAllocationResult is the result of allocating devices. + example: + config: + - opaque: + driver: driver + parameters: '{}' + requests: + - requests + - requests + source: source + - opaque: + driver: driver + parameters: '{}' + requests: + - requests + - requests + source: source + results: + - request: request + adminAccess: true + tolerations: + - effect: effect + tolerationSeconds: 6 + value: value + key: key + operator: operator + - effect: effect + tolerationSeconds: 6 + value: value + key: key + operator: operator + driver: driver + pool: pool + device: device + - request: request + adminAccess: true + tolerations: + - effect: effect + tolerationSeconds: 6 + value: value + key: key + operator: operator + - effect: effect + tolerationSeconds: 6 + value: value + key: key + operator: operator + driver: driver + pool: pool + device: device + properties: + config: + description: |- + 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. + items: + $ref: '#/components/schemas/v1beta2.DeviceAllocationConfiguration' + type: array + x-kubernetes-list-type: atomic + results: + description: Results lists all allocated devices. + items: + $ref: '#/components/schemas/v1beta2.DeviceRequestAllocationResult' + type: array + x-kubernetes-list-type: atomic + type: object + v1beta2.DeviceAttribute: + description: DeviceAttribute must have exactly one field set. example: - apiGroup: apiGroup - kind: kind - name: name - namespace: namespace + bool: true + string: string + version: version + int: 0 properties: - apiGroup: - description: 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. - type: string - kind: - description: 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. + bool: + description: BoolValue is a true/false value. + type: boolean + int: + description: IntValue is a number. + format: int64 + type: integer + string: + description: StringValue is a string. Must not be longer than 64 characters. type: string - name: - description: Name of the object being referenced. + version: + description: VersionValue is a semantic version according to semver.org + spec 2.0.0. Must not be longer than 64 characters. type: string - namespace: - description: 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. + type: object + v1beta2.DeviceCapacity: + description: DeviceCapacity describes a quantity associated with a device. + example: + value: value + properties: + value: + description: "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.\n\nThe serialization format is:\n\n\ + ``` ::= \n\n\t(Note that \ + \ may be empty, from the \"\" case in .)\n\n \ + \ ::= 0 | 1 | ... | 9 ::= | \ + \ ::= | . | . | .\ + \ ::= \"+\" | \"-\" ::= |\ + \ ::= | \ + \ | ::= Ki | Mi | Gi | Ti | Pi | Ei\n\n\t\ + (International System of units; See: http://physics.nist.gov/cuu/Units/binary.html)\n\ + \n ::= m | \"\" | k | M | G | T | P | E\n\n\t(Note that\ + \ 1024 = 1Ki but 1000 = 1k; I didn't choose the capitalization.)\n\n\ + \ ::= \"e\" | \"E\" ```\n\nNo 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.\n\nWhen 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.\n\nBefore 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:\n\n- No precision is lost - No fractional digits\ + \ will be emitted - The exponent (or suffix) is as large as possible.\n\ + \nThe sign will be omitted unless the number is negative.\n\nExamples:\n\ + \n- 1.5 will be serialized as \"1500m\" - 1.5Gi will be serialized as\ + \ \"1536Mi\"\n\nNote that the quantity will NEVER be internally represented\ + \ by a floating point number. That is the whole point of this exercise.\n\ + \nNon-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.)\n\nThis 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." + format: quantity type: string required: - - kind - - name + - value type: object - x-kubernetes-map-type: atomic - v1alpha2.AllocationResult: - description: AllocationResult contains attributes of an allocated resource. + v1beta2.DeviceClaim: + description: DeviceClaim defines how to request devices with a ResourceClaim. example: - shareable: true - availableOnNodes: - nodeSelectorTerms: - - matchExpressions: - - values: - - values - - values + requests: + - firstAvailable: + - allocationMode: allocationMode + deviceClassName: deviceClassName + tolerations: + - effect: effect + tolerationSeconds: 6 + value: value key: key operator: operator - - values: - - values - - values + - effect: effect + tolerationSeconds: 6 + value: value key: key operator: operator - matchFields: - - values: - - values - - values + count: 1 + name: name + selectors: + - cel: + expression: expression + - cel: + expression: expression + - allocationMode: allocationMode + deviceClassName: deviceClassName + tolerations: + - effect: effect + tolerationSeconds: 6 + value: value key: key operator: operator - - values: - - values - - values + - effect: effect + tolerationSeconds: 6 + value: value key: key operator: operator - - matchExpressions: - - values: - - values - - values + count: 1 + name: name + selectors: + - cel: + expression: expression + - cel: + expression: expression + name: name + exactly: + allocationMode: allocationMode + deviceClassName: deviceClassName + adminAccess: true + tolerations: + - effect: effect + tolerationSeconds: 6 + value: value key: key operator: operator - - values: - - values - - values + - effect: effect + tolerationSeconds: 6 + value: value key: key operator: operator - matchFields: - - values: - - values - - values + count: 0 + selectors: + - cel: + expression: expression + - cel: + expression: expression + - firstAvailable: + - allocationMode: allocationMode + deviceClassName: deviceClassName + tolerations: + - effect: effect + tolerationSeconds: 6 + value: value key: key operator: operator - - values: - - values - - values + - effect: effect + tolerationSeconds: 6 + value: value key: key operator: operator - resourceHandles: - - data: data - driverName: driverName - - data: data - driverName: driverName + count: 1 + name: name + selectors: + - cel: + expression: expression + - cel: + expression: expression + - allocationMode: allocationMode + deviceClassName: deviceClassName + tolerations: + - effect: effect + tolerationSeconds: 6 + value: value + key: key + operator: operator + - effect: effect + tolerationSeconds: 6 + value: value + key: key + operator: operator + count: 1 + name: name + selectors: + - cel: + expression: expression + - cel: + expression: expression + name: name + exactly: + allocationMode: allocationMode + deviceClassName: deviceClassName + adminAccess: true + tolerations: + - effect: effect + tolerationSeconds: 6 + value: value + key: key + operator: operator + - effect: effect + tolerationSeconds: 6 + value: value + key: key + operator: operator + count: 0 + selectors: + - cel: + expression: expression + - cel: + expression: expression + config: + - opaque: + driver: driver + parameters: '{}' + requests: + - requests + - requests + - opaque: + driver: driver + parameters: '{}' + requests: + - requests + - requests + constraints: + - matchAttribute: matchAttribute + requests: + - requests + - requests + - matchAttribute: matchAttribute + requests: + - requests + - requests properties: - availableOnNodes: - $ref: '#/components/schemas/v1.NodeSelector' - resourceHandles: + config: + description: This field holds configuration for multiple potential drivers + which could satisfy requests in this claim. It is ignored while allocating + the claim. + items: + $ref: '#/components/schemas/v1beta2.DeviceClaimConfiguration' + type: array + x-kubernetes-list-type: atomic + constraints: + description: These constraints must be satisfied by the set of devices that + get allocated for the claim. + items: + $ref: '#/components/schemas/v1beta2.DeviceConstraint' + type: array + x-kubernetes-list-type: atomic + requests: + description: Requests represent individual requests for distinct devices + which must all be satisfied. If empty, nothing needs to be allocated. + items: + $ref: '#/components/schemas/v1beta2.DeviceRequest' + type: array + x-kubernetes-list-type: atomic + type: object + v1beta2.DeviceClaimConfiguration: + description: DeviceClaimConfiguration is used for configuration parameters in + DeviceClaim. + example: + opaque: + driver: driver + parameters: '{}' + requests: + - requests + - requests + properties: + opaque: + $ref: '#/components/schemas/v1beta2.OpaqueDeviceConfiguration' + requests: description: |- - ResourceHandles contain the state associated with an allocation that should be maintained throughout the lifetime of a claim. Each ResourceHandle contains data that should be passed to a specific kubelet plugin once it lands on a node. This data is returned by the driver after a successful allocation and is opaque to Kubernetes. Driver documentation may explain to users how to interpret this data if needed. + Requests lists the names of requests where the configuration applies. If empty, it applies to all requests. - Setting this field is optional. It has a maximum size of 32 entries. If null (or empty), it is assumed this allocation will be processed by a single kubelet plugin with no ResourceHandle data attached. The name of the kubelet plugin invoked will match the DriverName set in the ResourceClaimStatus this AllocationResult is embedded in. + References to subrequests must include the name of the main request and may include the subrequest using the format
[/]. If just the main request is given, the configuration applies to all subrequests. items: - $ref: '#/components/schemas/v1alpha2.ResourceHandle' + type: string type: array x-kubernetes-list-type: atomic - shareable: - description: Shareable determines whether the resource supports more than - one consumer at a time. - type: boolean type: object - v1alpha2.PodSchedulingContext: + v1beta2.DeviceClass: description: |- - PodSchedulingContext objects hold information that is needed to schedule a Pod with ResourceClaims that use "WaitForFirstConsumer" allocation mode. + 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. example: @@ -213080,20 +257784,18 @@ components: apiVersion: apiVersion kind: kind spec: - potentialNodes: - - potentialNodes - - potentialNodes - selectedNode: selectedNode - status: - resourceClaims: - - unsuitableNodes: - - unsuitableNodes - - unsuitableNodes - name: name - - unsuitableNodes: - - unsuitableNodes - - unsuitableNodes - name: name + selectors: + - cel: + expression: expression + - cel: + expression: expression + config: + - opaque: + driver: driver + parameters: '{}' + - opaque: + driver: driver + parameters: '{}' properties: apiVersion: description: 'APIVersion defines the versioned schema of this representation @@ -213108,20 +257810,28 @@ components: metadata: $ref: '#/components/schemas/v1.ObjectMeta' spec: - $ref: '#/components/schemas/v1alpha2.PodSchedulingContextSpec' - status: - $ref: '#/components/schemas/v1alpha2.PodSchedulingContextStatus' + $ref: '#/components/schemas/v1beta2.DeviceClassSpec' required: - spec type: object x-kubernetes-group-version-kind: - group: resource.k8s.io - kind: PodSchedulingContext - version: v1alpha2 + kind: DeviceClass + version: v1beta2 x-implements: - io.kubernetes.client.common.KubernetesObject - v1alpha2.PodSchedulingContextList: - description: PodSchedulingContextList is a collection of Pod scheduling objects. + v1beta2.DeviceClassConfiguration: + description: DeviceClassConfiguration is used in DeviceClass. + example: + opaque: + driver: driver + parameters: '{}' + properties: + opaque: + $ref: '#/components/schemas/v1beta2.OpaqueDeviceConfiguration' + type: object + v1beta2.DeviceClassList: + description: DeviceClassList is a collection of classes. example: metadata: remainingItemCount: 1 @@ -213180,20 +257890,18 @@ components: apiVersion: apiVersion kind: kind spec: - potentialNodes: - - potentialNodes - - potentialNodes - selectedNode: selectedNode - status: - resourceClaims: - - unsuitableNodes: - - unsuitableNodes - - unsuitableNodes - name: name - - unsuitableNodes: - - unsuitableNodes - - unsuitableNodes - name: name + selectors: + - cel: + expression: expression + - cel: + expression: expression + config: + - opaque: + driver: driver + parameters: '{}' + - opaque: + driver: driver + parameters: '{}' - metadata: generation: 6 finalizers: @@ -213243,20 +257951,18 @@ components: apiVersion: apiVersion kind: kind spec: - potentialNodes: - - potentialNodes - - potentialNodes - selectedNode: selectedNode - status: - resourceClaims: - - unsuitableNodes: - - unsuitableNodes - - unsuitableNodes - name: name - - unsuitableNodes: - - unsuitableNodes - - unsuitableNodes - name: name + selectors: + - cel: + expression: expression + - cel: + expression: expression + config: + - opaque: + driver: driver + parameters: '{}' + - opaque: + driver: driver + parameters: '{}' properties: apiVersion: description: 'APIVersion defines the versioned schema of this representation @@ -213264,9 +257970,9 @@ components: internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources' type: string items: - description: Items is the list of PodSchedulingContext objects. + description: Items is the list of resource classes. items: - $ref: '#/components/schemas/v1alpha2.PodSchedulingContext' + $ref: '#/components/schemas/v1beta2.DeviceClass' type: array kind: description: 'Kind is a string value representing the REST resource this @@ -213280,62 +257986,576 @@ components: type: object x-kubernetes-group-version-kind: - group: resource.k8s.io - kind: PodSchedulingContextList - version: v1alpha2 + kind: DeviceClassList + version: v1beta2 x-implements: - io.kubernetes.client.common.KubernetesListObject - v1alpha2.PodSchedulingContextSpec: - description: PodSchedulingContextSpec describes where resources for the Pod - are needed. + v1beta2.DeviceClassSpec: + description: DeviceClassSpec is used in a [DeviceClass] to define what can be + allocated and how to configure it. + example: + selectors: + - cel: + expression: expression + - cel: + expression: expression + config: + - opaque: + driver: driver + parameters: '{}' + - opaque: + driver: driver + parameters: '{}' + properties: + config: + description: |- + 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. + items: + $ref: '#/components/schemas/v1beta2.DeviceClassConfiguration' + type: array + x-kubernetes-list-type: atomic + selectors: + description: Each selector must be satisfied by a device which is claimed + via this class. + items: + $ref: '#/components/schemas/v1beta2.DeviceSelector' + type: array + x-kubernetes-list-type: atomic + type: object + v1beta2.DeviceConstraint: + description: DeviceConstraint must have exactly one field set besides Requests. example: - potentialNodes: - - potentialNodes - - potentialNodes - selectedNode: selectedNode + matchAttribute: matchAttribute + requests: + - requests + - requests properties: - potentialNodes: + matchAttribute: + description: |- + 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. + type: string + requests: description: |- - PotentialNodes lists nodes where the Pod might be able to run. + 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. - 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. + References to subrequests must include the name of the main request and may include the subrequest using the format
[/]. If just the main request is given, the constraint applies to all subrequests. items: type: string type: array - x-kubernetes-list-type: set - selectedNode: - description: SelectedNode is the node for which allocation of ResourceClaims - that are referenced by the Pod and that use "WaitForFirstConsumer" allocation - is to be attempted. + x-kubernetes-list-type: atomic + type: object + v1beta2.DeviceCounterConsumption: + description: DeviceCounterConsumption defines a set of counters that a device + will consume from a CounterSet. + example: + counters: + key: + value: value + counterSet: counterSet + properties: + counterSet: + description: CounterSet is the name of the set from which the counters defined + will be consumed. type: string + counters: + additionalProperties: + $ref: '#/components/schemas/v1beta2.Counter' + description: |- + Counters defines the counters that will be consumed by the device. + + The maximum number counters in a device is 32. In addition, the maximum number of all counters in all devices is 1024 (for example, 64 devices with 16 counters each). + type: object + required: + - counterSet + - counters type: object - v1alpha2.PodSchedulingContextStatus: - description: PodSchedulingContextStatus describes where resources for the Pod - can be allocated. + v1beta2.DeviceRequest: + 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. With FirstAvailable it is also possible to + provide a prioritized list of requests. example: - resourceClaims: - - unsuitableNodes: - - unsuitableNodes - - unsuitableNodes + firstAvailable: + - allocationMode: allocationMode + deviceClassName: deviceClassName + tolerations: + - effect: effect + tolerationSeconds: 6 + value: value + key: key + operator: operator + - effect: effect + tolerationSeconds: 6 + value: value + key: key + operator: operator + count: 1 name: name - - unsuitableNodes: - - unsuitableNodes - - unsuitableNodes + selectors: + - cel: + expression: expression + - cel: + expression: expression + - allocationMode: allocationMode + deviceClassName: deviceClassName + tolerations: + - effect: effect + tolerationSeconds: 6 + value: value + key: key + operator: operator + - effect: effect + tolerationSeconds: 6 + value: value + key: key + operator: operator + count: 1 name: name + selectors: + - cel: + expression: expression + - cel: + expression: expression + name: name + exactly: + allocationMode: allocationMode + deviceClassName: deviceClassName + adminAccess: true + tolerations: + - effect: effect + tolerationSeconds: 6 + value: value + key: key + operator: operator + - effect: effect + tolerationSeconds: 6 + value: value + key: key + operator: operator + count: 0 + selectors: + - cel: + expression: expression + - cel: + expression: expression properties: - resourceClaims: - description: ResourceClaims describes resource availability for each pod.spec.resourceClaim - entry where the corresponding ResourceClaim uses "WaitForFirstConsumer" - allocation mode. + exactly: + $ref: '#/components/schemas/v1beta2.ExactDeviceRequest' + firstAvailable: + description: |- + FirstAvailable contains subrequests, of which exactly one will be selected by the scheduler. It tries to satisfy them in the order in which they are listed here. So if there are two entries in the list, the scheduler will only check the second one if it determines that the first one can not be used. + + DRA does not yet implement scoring, so the scheduler will select the first set of devices that satisfies all the requests in the claim. And if the requirements can be satisfied on more than one node, other scheduling features will determine which node is chosen. This means that the set of devices allocated to a claim might not be the optimal set available to the cluster. Scoring will be implemented later. items: - $ref: '#/components/schemas/v1alpha2.ResourceClaimSchedulingStatus' + $ref: '#/components/schemas/v1beta2.DeviceSubRequest' type: array - x-kubernetes-list-type: map - x-kubernetes-list-map-keys: - - name + x-kubernetes-list-type: atomic + name: + description: |- + Name can be used to reference this request in a pod.spec.containers[].resources.claims entry and in a constraint of the claim. + + References using the name in the DeviceRequest will uniquely identify a request when the Exactly field is set. When the FirstAvailable field is set, a reference to the name of the DeviceRequest will match whatever subrequest is chosen by the scheduler. + + Must be a DNS label. + type: string + required: + - name + type: object + v1beta2.DeviceRequestAllocationResult: + description: DeviceRequestAllocationResult contains the allocation result for + one request. + example: + request: request + adminAccess: true + tolerations: + - effect: effect + tolerationSeconds: 6 + value: value + key: key + operator: operator + - effect: effect + tolerationSeconds: 6 + value: value + key: key + operator: operator + driver: driver + pool: pool + device: device + properties: + adminAccess: + description: |- + AdminAccess indicates that this device was allocated for administrative access. See the corresponding request field for a definition of mode. + + This is an alpha field and requires enabling the DRAAdminAccess feature gate. Admin access is disabled if this field is unset or set to false, otherwise it is enabled. + type: boolean + device: + description: Device references one device instance via its name in the driver's + resource pool. It must be a DNS label. + type: string + driver: + description: |- + 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. + type: string + pool: + description: |- + 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. + type: string + request: + description: |- + Request is the name of the request in the claim which caused this device to be allocated. If it references a subrequest in the firstAvailable list on a DeviceRequest, this field must include both the name of the main request and the subrequest using the format
/. + + Multiple devices may have been allocated per request. + type: string + tolerations: + description: |- + A copy of all tolerations specified in the request at the time when the device got allocated. + + The maximum number of tolerations is 16. + + This is an alpha field and requires enabling the DRADeviceTaints feature gate. + items: + $ref: '#/components/schemas/v1beta2.DeviceToleration' + type: array + x-kubernetes-list-type: atomic + required: + - device + - driver + - pool + - request + type: object + v1beta2.DeviceSelector: + description: DeviceSelector must have exactly one field set. + example: + cel: + expression: expression + properties: + cel: + $ref: '#/components/schemas/v1beta2.CELDeviceSelector' + type: object + v1beta2.DeviceSubRequest: + description: |- + DeviceSubRequest describes a request for device provided in the claim.spec.devices.requests[].firstAvailable array. Each is typically a request for a single resource like a device, but can also ask for several identical devices. + + DeviceSubRequest is similar to ExactDeviceRequest, but doesn't expose the AdminAccess field as that one is only supported when requesting a specific device. + example: + allocationMode: allocationMode + deviceClassName: deviceClassName + tolerations: + - effect: effect + tolerationSeconds: 6 + value: value + key: key + operator: operator + - effect: effect + tolerationSeconds: 6 + value: value + key: key + operator: operator + count: 1 + name: name + selectors: + - cel: + expression: expression + - cel: + expression: expression + properties: + allocationMode: + description: |- + AllocationMode and its related fields define how devices are allocated to satisfy this subrequest. 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 subrequest is for all of the matching devices in a pool. + Allocation will fail if some devices are already allocated, + unless adminAccess is requested. + + If AllocationMode 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 subrequests must specify this field. + + More modes may get added in the future. Clients must refuse to handle requests with unknown modes. + type: string + count: + description: 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. + format: int64 + type: integer + deviceClassName: + description: |- + DeviceClassName references a specific DeviceClass, which can define additional configuration and selectors to be inherited by this subrequest. + + 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. + type: string + name: + description: |- + Name can be used to reference this subrequest in the list of constraints or the list of configurations for the claim. References must use the format
/. + + Must be a DNS label. + type: string + selectors: + description: Selectors define criteria which must be satisfied by a specific + device in order for that device to be considered for this subrequest. + All selectors must be satisfied for a device to be considered. + items: + $ref: '#/components/schemas/v1beta2.DeviceSelector' + type: array + x-kubernetes-list-type: atomic + tolerations: + description: |- + If specified, the request's tolerations. + + Tolerations for NoSchedule are required to allocate a device which has a taint with that effect. The same applies to NoExecute. + + In addition, should any of the allocated devices get tainted with NoExecute after allocation and that effect is not tolerated, then all pods consuming the ResourceClaim get deleted to evict them. The scheduler will not let new pods reserve the claim while it has these tainted devices. Once all pods are evicted, the claim will get deallocated. + + The maximum number of tolerations is 16. + + This is an alpha field and requires enabling the DRADeviceTaints feature gate. + items: + $ref: '#/components/schemas/v1beta2.DeviceToleration' + type: array + x-kubernetes-list-type: atomic + required: + - deviceClassName + - name + type: object + v1beta2.DeviceTaint: + description: The device this taint is attached to has the "effect" on any claim + which does not tolerate the taint and, through the claim, to pods using the + claim. + example: + timeAdded: 2000-01-23T04:56:07.000+00:00 + effect: effect + value: value + key: key + properties: + effect: + description: The effect of the taint on claims that do not tolerate the + taint and through such claims on the pods using them. Valid effects are + NoSchedule and NoExecute. PreferNoSchedule as used for nodes is not valid + here. + type: string + key: + description: The taint key to be applied to a device. Must be a label name. + type: string + timeAdded: + description: TimeAdded represents the time at which the taint was added. + Added automatically during create or update if not set. + format: date-time + type: string + value: + description: The taint value corresponding to the taint key. Must be a label + value. + type: string + required: + - effect + - key + type: object + v1beta2.DeviceToleration: + description: The ResourceClaim this DeviceToleration is attached to tolerates + any taint that matches the triple using the matching operator + . + example: + effect: effect + tolerationSeconds: 6 + value: value + key: key + operator: operator + properties: + effect: + description: Effect indicates the taint effect to match. Empty means match + all taint effects. When specified, allowed values are NoSchedule and NoExecute. + type: string + key: + description: 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. Must be a label + name. + type: string + operator: + description: 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 ResourceClaim can tolerate all taints + of a particular category. + type: string + tolerationSeconds: + description: 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. If larger than zero, the time when the pod needs to be + evicted is calculated as +# **createValidatingAdmissionPolicyBinding** +> V1ValidatingAdmissionPolicyBinding createValidatingAdmissionPolicyBinding(body, pretty, dryRun, fieldManager, fieldValidation) + + + +create a ValidatingAdmissionPolicyBinding + +### Example +```java +// Import classes: +import io.kubernetes.client.openapi.ApiClient; +import io.kubernetes.client.openapi.ApiException; +import io.kubernetes.client.openapi.Configuration; +import io.kubernetes.client.openapi.auth.*; +import io.kubernetes.client.openapi.models.*; +import io.kubernetes.client.openapi.apis.AdmissionregistrationV1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + AdmissionregistrationV1Api apiInstance = new AdmissionregistrationV1Api(defaultClient); + V1ValidatingAdmissionPolicyBinding body = new V1ValidatingAdmissionPolicyBinding(); // V1ValidatingAdmissionPolicyBinding | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + 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 fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. + try { + V1ValidatingAdmissionPolicyBinding result = apiInstance.createValidatingAdmissionPolicyBinding(body, pretty, dryRun, fieldManager, fieldValidation); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling AdmissionregistrationV1Api#createValidatingAdmissionPolicyBinding"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | [**V1ValidatingAdmissionPolicyBinding**](V1ValidatingAdmissionPolicyBinding.md)| | + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] + **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] + **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] + +### Return type + +[**V1ValidatingAdmissionPolicyBinding**](V1ValidatingAdmissionPolicyBinding.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -132,7 +309,7 @@ public class Example { AdmissionregistrationV1Api apiInstance = new AdmissionregistrationV1Api(defaultClient); V1ValidatingWebhookConfiguration body = new V1ValidatingWebhookConfiguration(); // V1ValidatingWebhookConfiguration | - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). 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 fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. @@ -155,7 +332,7 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **body** | [**V1ValidatingWebhookConfiguration**](V1ValidatingWebhookConfiguration.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] @@ -171,7 +348,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -183,7 +360,7 @@ Name | Type | Description | Notes # **deleteCollectionMutatingWebhookConfiguration** -> V1Status deleteCollectionMutatingWebhookConfiguration(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body) +> V1Status deleteCollectionMutatingWebhookConfiguration(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body) @@ -211,11 +388,12 @@ public class Example { //BearerToken.setApiKeyPrefix("Token"); AdmissionregistrationV1Api apiInstance = new AdmissionregistrationV1Api(defaultClient); - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). 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. 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. Integer gracePeriodSeconds = 56; // Integer | 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. + Boolean ignoreStoreReadErrorWithClusterBreakingPotential = true; // Boolean | if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. 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. @@ -226,7 +404,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. V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | try { - V1Status result = apiInstance.deleteCollectionMutatingWebhookConfiguration(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); + V1Status result = apiInstance.deleteCollectionMutatingWebhookConfiguration(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling AdmissionregistrationV1Api#deleteCollectionMutatingWebhookConfiguration"); @@ -243,11 +421,12 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] **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] **gracePeriodSeconds** | **Integer**| 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. | [optional] + **ignoreStoreReadErrorWithClusterBreakingPotential** | **Boolean**| if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it | [optional] **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] **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] @@ -269,7 +448,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -277,13 +456,111 @@ Name | Type | Description | Notes **200** | OK | - | **401** | Unauthorized | - | - -# **deleteCollectionValidatingWebhookConfiguration** -> V1Status deleteCollectionValidatingWebhookConfiguration(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body) + +# **deleteCollectionValidatingAdmissionPolicy** +> V1Status deleteCollectionValidatingAdmissionPolicy(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body) -delete collection of ValidatingWebhookConfiguration +delete collection of ValidatingAdmissionPolicy + +### Example +```java +// Import classes: +import io.kubernetes.client.openapi.ApiClient; +import io.kubernetes.client.openapi.ApiException; +import io.kubernetes.client.openapi.Configuration; +import io.kubernetes.client.openapi.auth.*; +import io.kubernetes.client.openapi.models.*; +import io.kubernetes.client.openapi.apis.AdmissionregistrationV1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + AdmissionregistrationV1Api apiInstance = new AdmissionregistrationV1Api(defaultClient); + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + 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. + 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. + Integer gracePeriodSeconds = 56; // Integer | 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. + Boolean ignoreStoreReadErrorWithClusterBreakingPotential = true; // Boolean | if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it + String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. + Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + 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. 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. + String resourceVersion = "resourceVersion_example"; // String | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + String resourceVersionMatch = "resourceVersionMatch_example"; // String | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + Boolean sendInitialEvents = true; // Boolean | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | + try { + V1Status result = apiInstance.deleteCollectionValidatingAdmissionPolicy(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling AdmissionregistrationV1Api#deleteCollectionValidatingAdmissionPolicy"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] + **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] + **gracePeriodSeconds** | **Integer**| 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. | [optional] + **ignoreStoreReadErrorWithClusterBreakingPotential** | **Boolean**| if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it | [optional] + **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] + **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] + **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. 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. | [optional] + **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] + **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] + **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] + **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] + +### Return type + +[**V1Status**](V1Status.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + + +# **deleteCollectionValidatingAdmissionPolicyBinding** +> V1Status deleteCollectionValidatingAdmissionPolicyBinding(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body) + + + +delete collection of ValidatingAdmissionPolicyBinding ### Example ```java @@ -307,11 +584,12 @@ public class Example { //BearerToken.setApiKeyPrefix("Token"); AdmissionregistrationV1Api apiInstance = new AdmissionregistrationV1Api(defaultClient); - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). 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. 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. Integer gracePeriodSeconds = 56; // Integer | 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. + Boolean ignoreStoreReadErrorWithClusterBreakingPotential = true; // Boolean | if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. 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. @@ -322,10 +600,1213 @@ 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. V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | try { - V1Status result = apiInstance.deleteCollectionValidatingWebhookConfiguration(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); + V1Status result = apiInstance.deleteCollectionValidatingAdmissionPolicyBinding(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling AdmissionregistrationV1Api#deleteCollectionValidatingAdmissionPolicyBinding"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] + **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] + **gracePeriodSeconds** | **Integer**| 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. | [optional] + **ignoreStoreReadErrorWithClusterBreakingPotential** | **Boolean**| if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it | [optional] + **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] + **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] + **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. 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. | [optional] + **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] + **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] + **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] + **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] + +### Return type + +[**V1Status**](V1Status.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + + +# **deleteCollectionValidatingWebhookConfiguration** +> V1Status deleteCollectionValidatingWebhookConfiguration(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body) + + + +delete collection of ValidatingWebhookConfiguration + +### Example +```java +// Import classes: +import io.kubernetes.client.openapi.ApiClient; +import io.kubernetes.client.openapi.ApiException; +import io.kubernetes.client.openapi.Configuration; +import io.kubernetes.client.openapi.auth.*; +import io.kubernetes.client.openapi.models.*; +import io.kubernetes.client.openapi.apis.AdmissionregistrationV1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + AdmissionregistrationV1Api apiInstance = new AdmissionregistrationV1Api(defaultClient); + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + 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. + 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. + Integer gracePeriodSeconds = 56; // Integer | 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. + Boolean ignoreStoreReadErrorWithClusterBreakingPotential = true; // Boolean | if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it + String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. + Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + 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. 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. + String resourceVersion = "resourceVersion_example"; // String | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + String resourceVersionMatch = "resourceVersionMatch_example"; // String | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + Boolean sendInitialEvents = true; // Boolean | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | + try { + V1Status result = apiInstance.deleteCollectionValidatingWebhookConfiguration(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling AdmissionregistrationV1Api#deleteCollectionValidatingWebhookConfiguration"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] + **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] + **gracePeriodSeconds** | **Integer**| 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. | [optional] + **ignoreStoreReadErrorWithClusterBreakingPotential** | **Boolean**| if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it | [optional] + **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] + **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] + **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. 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. | [optional] + **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] + **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] + **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] + **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] + +### Return type + +[**V1Status**](V1Status.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + + +# **deleteMutatingWebhookConfiguration** +> V1Status deleteMutatingWebhookConfiguration(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body) + + + +delete a MutatingWebhookConfiguration + +### Example +```java +// Import classes: +import io.kubernetes.client.openapi.ApiClient; +import io.kubernetes.client.openapi.ApiException; +import io.kubernetes.client.openapi.Configuration; +import io.kubernetes.client.openapi.auth.*; +import io.kubernetes.client.openapi.models.*; +import io.kubernetes.client.openapi.apis.AdmissionregistrationV1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + AdmissionregistrationV1Api apiInstance = new AdmissionregistrationV1Api(defaultClient); + String name = "name_example"; // String | name of the MutatingWebhookConfiguration + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + 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 + Integer gracePeriodSeconds = 56; // Integer | 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. + Boolean ignoreStoreReadErrorWithClusterBreakingPotential = true; // Boolean | if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it + 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. 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. + V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | + try { + V1Status result = apiInstance.deleteMutatingWebhookConfiguration(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling AdmissionregistrationV1Api#deleteMutatingWebhookConfiguration"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **String**| name of the MutatingWebhookConfiguration | + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] + **gracePeriodSeconds** | **Integer**| 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. | [optional] + **ignoreStoreReadErrorWithClusterBreakingPotential** | **Boolean**| if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it | [optional] + **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. 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. | [optional] + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] + +### Return type + +[**V1Status**](V1Status.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + + +# **deleteValidatingAdmissionPolicy** +> V1Status deleteValidatingAdmissionPolicy(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body) + + + +delete a ValidatingAdmissionPolicy + +### Example +```java +// Import classes: +import io.kubernetes.client.openapi.ApiClient; +import io.kubernetes.client.openapi.ApiException; +import io.kubernetes.client.openapi.Configuration; +import io.kubernetes.client.openapi.auth.*; +import io.kubernetes.client.openapi.models.*; +import io.kubernetes.client.openapi.apis.AdmissionregistrationV1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + AdmissionregistrationV1Api apiInstance = new AdmissionregistrationV1Api(defaultClient); + String name = "name_example"; // String | name of the ValidatingAdmissionPolicy + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + 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 + Integer gracePeriodSeconds = 56; // Integer | 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. + Boolean ignoreStoreReadErrorWithClusterBreakingPotential = true; // Boolean | if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it + 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. 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. + V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | + try { + V1Status result = apiInstance.deleteValidatingAdmissionPolicy(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling AdmissionregistrationV1Api#deleteValidatingAdmissionPolicy"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **String**| name of the ValidatingAdmissionPolicy | + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] + **gracePeriodSeconds** | **Integer**| 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. | [optional] + **ignoreStoreReadErrorWithClusterBreakingPotential** | **Boolean**| if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it | [optional] + **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. 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. | [optional] + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] + +### Return type + +[**V1Status**](V1Status.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + + +# **deleteValidatingAdmissionPolicyBinding** +> V1Status deleteValidatingAdmissionPolicyBinding(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body) + + + +delete a ValidatingAdmissionPolicyBinding + +### Example +```java +// Import classes: +import io.kubernetes.client.openapi.ApiClient; +import io.kubernetes.client.openapi.ApiException; +import io.kubernetes.client.openapi.Configuration; +import io.kubernetes.client.openapi.auth.*; +import io.kubernetes.client.openapi.models.*; +import io.kubernetes.client.openapi.apis.AdmissionregistrationV1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + AdmissionregistrationV1Api apiInstance = new AdmissionregistrationV1Api(defaultClient); + String name = "name_example"; // String | name of the ValidatingAdmissionPolicyBinding + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + 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 + Integer gracePeriodSeconds = 56; // Integer | 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. + Boolean ignoreStoreReadErrorWithClusterBreakingPotential = true; // Boolean | if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it + 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. 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. + V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | + try { + V1Status result = apiInstance.deleteValidatingAdmissionPolicyBinding(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling AdmissionregistrationV1Api#deleteValidatingAdmissionPolicyBinding"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **String**| name of the ValidatingAdmissionPolicyBinding | + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] + **gracePeriodSeconds** | **Integer**| 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. | [optional] + **ignoreStoreReadErrorWithClusterBreakingPotential** | **Boolean**| if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it | [optional] + **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. 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. | [optional] + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] + +### Return type + +[**V1Status**](V1Status.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + + +# **deleteValidatingWebhookConfiguration** +> V1Status deleteValidatingWebhookConfiguration(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body) + + + +delete a ValidatingWebhookConfiguration + +### Example +```java +// Import classes: +import io.kubernetes.client.openapi.ApiClient; +import io.kubernetes.client.openapi.ApiException; +import io.kubernetes.client.openapi.Configuration; +import io.kubernetes.client.openapi.auth.*; +import io.kubernetes.client.openapi.models.*; +import io.kubernetes.client.openapi.apis.AdmissionregistrationV1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + AdmissionregistrationV1Api apiInstance = new AdmissionregistrationV1Api(defaultClient); + String name = "name_example"; // String | name of the ValidatingWebhookConfiguration + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + 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 + Integer gracePeriodSeconds = 56; // Integer | 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. + Boolean ignoreStoreReadErrorWithClusterBreakingPotential = true; // Boolean | if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it + 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. 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. + V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | + try { + V1Status result = apiInstance.deleteValidatingWebhookConfiguration(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling AdmissionregistrationV1Api#deleteValidatingWebhookConfiguration"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **String**| name of the ValidatingWebhookConfiguration | + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] + **gracePeriodSeconds** | **Integer**| 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. | [optional] + **ignoreStoreReadErrorWithClusterBreakingPotential** | **Boolean**| if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it | [optional] + **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. 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. | [optional] + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] + +### Return type + +[**V1Status**](V1Status.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + + +# **getAPIResources** +> V1APIResourceList getAPIResources() + + + +get available resources + +### Example +```java +// Import classes: +import io.kubernetes.client.openapi.ApiClient; +import io.kubernetes.client.openapi.ApiException; +import io.kubernetes.client.openapi.Configuration; +import io.kubernetes.client.openapi.auth.*; +import io.kubernetes.client.openapi.models.*; +import io.kubernetes.client.openapi.apis.AdmissionregistrationV1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + AdmissionregistrationV1Api apiInstance = new AdmissionregistrationV1Api(defaultClient); + try { + V1APIResourceList result = apiInstance.getAPIResources(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling AdmissionregistrationV1Api#getAPIResources"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters +This endpoint does not need any parameter. + +### Return type + +[**V1APIResourceList**](V1APIResourceList.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + + +# **listMutatingWebhookConfiguration** +> V1MutatingWebhookConfigurationList listMutatingWebhookConfiguration(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch) + + + +list or watch objects of kind MutatingWebhookConfiguration + +### Example +```java +// Import classes: +import io.kubernetes.client.openapi.ApiClient; +import io.kubernetes.client.openapi.ApiException; +import io.kubernetes.client.openapi.Configuration; +import io.kubernetes.client.openapi.auth.*; +import io.kubernetes.client.openapi.models.*; +import io.kubernetes.client.openapi.apis.AdmissionregistrationV1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + AdmissionregistrationV1Api apiInstance = new AdmissionregistrationV1Api(defaultClient); + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + 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. + 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. + String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. + String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. + Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + String resourceVersion = "resourceVersion_example"; // String | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + String resourceVersionMatch = "resourceVersionMatch_example"; // String | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + Boolean sendInitialEvents = true; // Boolean | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + 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. Specify resourceVersion. + try { + V1MutatingWebhookConfigurationList result = apiInstance.listMutatingWebhookConfiguration(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling AdmissionregistrationV1Api#listMutatingWebhookConfiguration"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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. | [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] + **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] + **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] + **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] + **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] + **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] + **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] + **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + +### Return type + +[**V1MutatingWebhookConfigurationList**](V1MutatingWebhookConfigurationList.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch, application/cbor-seq + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + + +# **listValidatingAdmissionPolicy** +> V1ValidatingAdmissionPolicyList listValidatingAdmissionPolicy(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch) + + + +list or watch objects of kind ValidatingAdmissionPolicy + +### Example +```java +// Import classes: +import io.kubernetes.client.openapi.ApiClient; +import io.kubernetes.client.openapi.ApiException; +import io.kubernetes.client.openapi.Configuration; +import io.kubernetes.client.openapi.auth.*; +import io.kubernetes.client.openapi.models.*; +import io.kubernetes.client.openapi.apis.AdmissionregistrationV1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + AdmissionregistrationV1Api apiInstance = new AdmissionregistrationV1Api(defaultClient); + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + 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. + 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. + String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. + String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. + Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + String resourceVersion = "resourceVersion_example"; // String | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + String resourceVersionMatch = "resourceVersionMatch_example"; // String | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + Boolean sendInitialEvents = true; // Boolean | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + 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. Specify resourceVersion. + try { + V1ValidatingAdmissionPolicyList result = apiInstance.listValidatingAdmissionPolicy(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling AdmissionregistrationV1Api#listValidatingAdmissionPolicy"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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. | [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] + **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] + **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] + **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] + **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] + **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] + **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] + **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + +### Return type + +[**V1ValidatingAdmissionPolicyList**](V1ValidatingAdmissionPolicyList.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch, application/cbor-seq + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + + +# **listValidatingAdmissionPolicyBinding** +> V1ValidatingAdmissionPolicyBindingList listValidatingAdmissionPolicyBinding(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch) + + + +list or watch objects of kind ValidatingAdmissionPolicyBinding + +### Example +```java +// Import classes: +import io.kubernetes.client.openapi.ApiClient; +import io.kubernetes.client.openapi.ApiException; +import io.kubernetes.client.openapi.Configuration; +import io.kubernetes.client.openapi.auth.*; +import io.kubernetes.client.openapi.models.*; +import io.kubernetes.client.openapi.apis.AdmissionregistrationV1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + AdmissionregistrationV1Api apiInstance = new AdmissionregistrationV1Api(defaultClient); + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + 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. + 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. + String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. + String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. + Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + String resourceVersion = "resourceVersion_example"; // String | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + String resourceVersionMatch = "resourceVersionMatch_example"; // String | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + Boolean sendInitialEvents = true; // Boolean | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + 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. Specify resourceVersion. + try { + V1ValidatingAdmissionPolicyBindingList result = apiInstance.listValidatingAdmissionPolicyBinding(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling AdmissionregistrationV1Api#listValidatingAdmissionPolicyBinding"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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. | [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] + **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] + **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] + **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] + **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] + **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] + **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] + **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + +### Return type + +[**V1ValidatingAdmissionPolicyBindingList**](V1ValidatingAdmissionPolicyBindingList.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch, application/cbor-seq + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + + +# **listValidatingWebhookConfiguration** +> V1ValidatingWebhookConfigurationList listValidatingWebhookConfiguration(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch) + + + +list or watch objects of kind ValidatingWebhookConfiguration + +### Example +```java +// Import classes: +import io.kubernetes.client.openapi.ApiClient; +import io.kubernetes.client.openapi.ApiException; +import io.kubernetes.client.openapi.Configuration; +import io.kubernetes.client.openapi.auth.*; +import io.kubernetes.client.openapi.models.*; +import io.kubernetes.client.openapi.apis.AdmissionregistrationV1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + AdmissionregistrationV1Api apiInstance = new AdmissionregistrationV1Api(defaultClient); + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + 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. + 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. + String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. + String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. + Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + String resourceVersion = "resourceVersion_example"; // String | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + String resourceVersionMatch = "resourceVersionMatch_example"; // String | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + Boolean sendInitialEvents = true; // Boolean | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + 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. Specify resourceVersion. + try { + V1ValidatingWebhookConfigurationList result = apiInstance.listValidatingWebhookConfiguration(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling AdmissionregistrationV1Api#listValidatingWebhookConfiguration"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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. | [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] + **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] + **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] + **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] + **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] + **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] + **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] + **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + +### Return type + +[**V1ValidatingWebhookConfigurationList**](V1ValidatingWebhookConfigurationList.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch, application/cbor-seq + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + + +# **patchMutatingWebhookConfiguration** +> V1MutatingWebhookConfiguration patchMutatingWebhookConfiguration(name, body, pretty, dryRun, fieldManager, fieldValidation, force) + + + +partially update the specified MutatingWebhookConfiguration + +### Example +```java +// Import classes: +import io.kubernetes.client.openapi.ApiClient; +import io.kubernetes.client.openapi.ApiException; +import io.kubernetes.client.openapi.Configuration; +import io.kubernetes.client.openapi.auth.*; +import io.kubernetes.client.openapi.models.*; +import io.kubernetes.client.openapi.apis.AdmissionregistrationV1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + AdmissionregistrationV1Api apiInstance = new AdmissionregistrationV1Api(defaultClient); + String name = "name_example"; // String | name of the MutatingWebhookConfiguration + V1Patch body = new V1Patch(); // V1Patch | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + 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 fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). + String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. + Boolean force = true; // Boolean | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. + try { + V1MutatingWebhookConfiguration result = apiInstance.patchMutatingWebhookConfiguration(name, body, pretty, dryRun, fieldManager, fieldValidation, force); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling AdmissionregistrationV1Api#patchMutatingWebhookConfiguration"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **String**| name of the MutatingWebhookConfiguration | + **body** | **V1Patch**| | + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] + **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] + **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] + **force** | **Boolean**| Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | [optional] + +### Return type + +[**V1MutatingWebhookConfiguration**](V1MutatingWebhookConfiguration.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**401** | Unauthorized | - | + + +# **patchValidatingAdmissionPolicy** +> V1ValidatingAdmissionPolicy patchValidatingAdmissionPolicy(name, body, pretty, dryRun, fieldManager, fieldValidation, force) + + + +partially update the specified ValidatingAdmissionPolicy + +### Example +```java +// Import classes: +import io.kubernetes.client.openapi.ApiClient; +import io.kubernetes.client.openapi.ApiException; +import io.kubernetes.client.openapi.Configuration; +import io.kubernetes.client.openapi.auth.*; +import io.kubernetes.client.openapi.models.*; +import io.kubernetes.client.openapi.apis.AdmissionregistrationV1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + AdmissionregistrationV1Api apiInstance = new AdmissionregistrationV1Api(defaultClient); + String name = "name_example"; // String | name of the ValidatingAdmissionPolicy + V1Patch body = new V1Patch(); // V1Patch | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + 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 fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). + String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. + Boolean force = true; // Boolean | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. + try { + V1ValidatingAdmissionPolicy result = apiInstance.patchValidatingAdmissionPolicy(name, body, pretty, dryRun, fieldManager, fieldValidation, force); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling AdmissionregistrationV1Api#patchValidatingAdmissionPolicy"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **String**| name of the ValidatingAdmissionPolicy | + **body** | **V1Patch**| | + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] + **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] + **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] + **force** | **Boolean**| Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | [optional] + +### Return type + +[**V1ValidatingAdmissionPolicy**](V1ValidatingAdmissionPolicy.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**401** | Unauthorized | - | + + +# **patchValidatingAdmissionPolicyBinding** +> V1ValidatingAdmissionPolicyBinding patchValidatingAdmissionPolicyBinding(name, body, pretty, dryRun, fieldManager, fieldValidation, force) + + + +partially update the specified ValidatingAdmissionPolicyBinding + +### Example +```java +// Import classes: +import io.kubernetes.client.openapi.ApiClient; +import io.kubernetes.client.openapi.ApiException; +import io.kubernetes.client.openapi.Configuration; +import io.kubernetes.client.openapi.auth.*; +import io.kubernetes.client.openapi.models.*; +import io.kubernetes.client.openapi.apis.AdmissionregistrationV1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + AdmissionregistrationV1Api apiInstance = new AdmissionregistrationV1Api(defaultClient); + String name = "name_example"; // String | name of the ValidatingAdmissionPolicyBinding + V1Patch body = new V1Patch(); // V1Patch | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + 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 fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). + String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. + Boolean force = true; // Boolean | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. + try { + V1ValidatingAdmissionPolicyBinding result = apiInstance.patchValidatingAdmissionPolicyBinding(name, body, pretty, dryRun, fieldManager, fieldValidation, force); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling AdmissionregistrationV1Api#patchValidatingAdmissionPolicyBinding"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **String**| name of the ValidatingAdmissionPolicyBinding | + **body** | **V1Patch**| | + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] + **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] + **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] + **force** | **Boolean**| Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | [optional] + +### Return type + +[**V1ValidatingAdmissionPolicyBinding**](V1ValidatingAdmissionPolicyBinding.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**401** | Unauthorized | - | + + +# **patchValidatingAdmissionPolicyStatus** +> V1ValidatingAdmissionPolicy patchValidatingAdmissionPolicyStatus(name, body, pretty, dryRun, fieldManager, fieldValidation, force) + + + +partially update status of the specified ValidatingAdmissionPolicy + +### Example +```java +// Import classes: +import io.kubernetes.client.openapi.ApiClient; +import io.kubernetes.client.openapi.ApiException; +import io.kubernetes.client.openapi.Configuration; +import io.kubernetes.client.openapi.auth.*; +import io.kubernetes.client.openapi.models.*; +import io.kubernetes.client.openapi.apis.AdmissionregistrationV1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + AdmissionregistrationV1Api apiInstance = new AdmissionregistrationV1Api(defaultClient); + String name = "name_example"; // String | name of the ValidatingAdmissionPolicy + V1Patch body = new V1Patch(); // V1Patch | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + 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 fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). + String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. + Boolean force = true; // Boolean | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. + try { + V1ValidatingAdmissionPolicy result = apiInstance.patchValidatingAdmissionPolicyStatus(name, body, pretty, dryRun, fieldManager, fieldValidation, force); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling AdmissionregistrationV1Api#deleteCollectionValidatingWebhookConfiguration"); + System.err.println("Exception when calling AdmissionregistrationV1Api#patchValidatingAdmissionPolicyStatus"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -339,24 +1820,17 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **pretty** | **String**| If 'true', then the output is pretty printed. | [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] + **name** | **String**| name of the ValidatingAdmissionPolicy | + **body** | **V1Patch**| | + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] - **gracePeriodSeconds** | **Integer**| 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. | [optional] - **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] - **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. 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. | [optional] - **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] - **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] - **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] - **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] - **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] + **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] + **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] + **force** | **Boolean**| Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | [optional] ### Return type -[**V1Status**](V1Status.md) +[**V1ValidatingAdmissionPolicy**](V1ValidatingAdmissionPolicy.md) ### Authorization @@ -365,21 +1839,22 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | OK | - | +**201** | Created | - | **401** | Unauthorized | - | - -# **deleteMutatingWebhookConfiguration** -> V1Status deleteMutatingWebhookConfiguration(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body) + +# **patchValidatingWebhookConfiguration** +> V1ValidatingWebhookConfiguration patchValidatingWebhookConfiguration(name, body, pretty, dryRun, fieldManager, fieldValidation, force) -delete a MutatingWebhookConfiguration +partially update the specified ValidatingWebhookConfiguration ### Example ```java @@ -403,18 +1878,18 @@ public class Example { //BearerToken.setApiKeyPrefix("Token"); AdmissionregistrationV1Api apiInstance = new AdmissionregistrationV1Api(defaultClient); - String name = "name_example"; // String | name of the MutatingWebhookConfiguration - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String name = "name_example"; // String | name of the ValidatingWebhookConfiguration + V1Patch body = new V1Patch(); // V1Patch | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). 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 - Integer gracePeriodSeconds = 56; // Integer | 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. - 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. 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. - V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | + String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). + String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. + Boolean force = true; // Boolean | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. try { - V1Status result = apiInstance.deleteMutatingWebhookConfiguration(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body); + V1ValidatingWebhookConfiguration result = apiInstance.patchValidatingWebhookConfiguration(name, body, pretty, dryRun, fieldManager, fieldValidation, force); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling AdmissionregistrationV1Api#deleteMutatingWebhookConfiguration"); + System.err.println("Exception when calling AdmissionregistrationV1Api#patchValidatingWebhookConfiguration"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -428,17 +1903,17 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the MutatingWebhookConfiguration | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **name** | **String**| name of the ValidatingWebhookConfiguration | + **body** | **V1Patch**| | + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] - **gracePeriodSeconds** | **Integer**| 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. | [optional] - **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. 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. | [optional] - **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] + **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] + **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] + **force** | **Boolean**| Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | [optional] ### Return type -[**V1Status**](V1Status.md) +[**V1ValidatingWebhookConfiguration**](V1ValidatingWebhookConfiguration.md) ### Authorization @@ -447,22 +1922,22 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | OK | - | -**202** | Accepted | - | +**201** | Created | - | **401** | Unauthorized | - | - -# **deleteValidatingWebhookConfiguration** -> V1Status deleteValidatingWebhookConfiguration(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body) + +# **readMutatingWebhookConfiguration** +> V1MutatingWebhookConfiguration readMutatingWebhookConfiguration(name, pretty) -delete a ValidatingWebhookConfiguration +read the specified MutatingWebhookConfiguration ### Example ```java @@ -486,18 +1961,13 @@ public class Example { //BearerToken.setApiKeyPrefix("Token"); AdmissionregistrationV1Api apiInstance = new AdmissionregistrationV1Api(defaultClient); - String name = "name_example"; // String | name of the ValidatingWebhookConfiguration - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. - 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 - Integer gracePeriodSeconds = 56; // Integer | 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. - 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. 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. - V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | + String name = "name_example"; // String | name of the MutatingWebhookConfiguration + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). try { - V1Status result = apiInstance.deleteValidatingWebhookConfiguration(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body); + V1MutatingWebhookConfiguration result = apiInstance.readMutatingWebhookConfiguration(name, pretty); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling AdmissionregistrationV1Api#deleteValidatingWebhookConfiguration"); + System.err.println("Exception when calling AdmissionregistrationV1Api#readMutatingWebhookConfiguration"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -511,17 +1981,12 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the ValidatingWebhookConfiguration | - **pretty** | **String**| If 'true', then the output is pretty printed. | [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] - **gracePeriodSeconds** | **Integer**| 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. | [optional] - **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. 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. | [optional] - **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] + **name** | **String**| name of the MutatingWebhookConfiguration | + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] ### Return type -[**V1Status**](V1Status.md) +[**V1MutatingWebhookConfiguration**](V1MutatingWebhookConfiguration.md) ### Authorization @@ -529,23 +1994,22 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | OK | - | -**202** | Accepted | - | **401** | Unauthorized | - | - -# **getAPIResources** -> V1APIResourceList getAPIResources() + +# **readValidatingAdmissionPolicy** +> V1ValidatingAdmissionPolicy readValidatingAdmissionPolicy(name, pretty) -get available resources +read the specified ValidatingAdmissionPolicy ### Example ```java @@ -569,11 +2033,13 @@ public class Example { //BearerToken.setApiKeyPrefix("Token"); AdmissionregistrationV1Api apiInstance = new AdmissionregistrationV1Api(defaultClient); + String name = "name_example"; // String | name of the ValidatingAdmissionPolicy + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). try { - V1APIResourceList result = apiInstance.getAPIResources(); + V1ValidatingAdmissionPolicy result = apiInstance.readValidatingAdmissionPolicy(name, pretty); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling AdmissionregistrationV1Api#getAPIResources"); + System.err.println("Exception when calling AdmissionregistrationV1Api#readValidatingAdmissionPolicy"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -584,11 +2050,15 @@ public class Example { ``` ### Parameters -This endpoint does not need any parameter. + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **String**| name of the ValidatingAdmissionPolicy | + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] ### Return type -[**V1APIResourceList**](V1APIResourceList.md) +[**V1ValidatingAdmissionPolicy**](V1ValidatingAdmissionPolicy.md) ### Authorization @@ -597,7 +2067,7 @@ This endpoint does not need any parameter. ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -605,13 +2075,13 @@ This endpoint does not need any parameter. **200** | OK | - | **401** | Unauthorized | - | - -# **listMutatingWebhookConfiguration** -> V1MutatingWebhookConfigurationList listMutatingWebhookConfiguration(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch) + +# **readValidatingAdmissionPolicyBinding** +> V1ValidatingAdmissionPolicyBinding readValidatingAdmissionPolicyBinding(name, pretty) -list or watch objects of kind MutatingWebhookConfiguration +read the specified ValidatingAdmissionPolicyBinding ### Example ```java @@ -635,22 +2105,13 @@ public class Example { //BearerToken.setApiKeyPrefix("Token"); AdmissionregistrationV1Api apiInstance = new AdmissionregistrationV1Api(defaultClient); - 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. - 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. - String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. - String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. - Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. - String resourceVersion = "resourceVersion_example"; // String | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset - String resourceVersionMatch = "resourceVersionMatch_example"; // String | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset - Boolean sendInitialEvents = true; // Boolean | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. - 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. Specify resourceVersion. + String name = "name_example"; // String | name of the ValidatingAdmissionPolicyBinding + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). try { - V1MutatingWebhookConfigurationList result = apiInstance.listMutatingWebhookConfiguration(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + V1ValidatingAdmissionPolicyBinding result = apiInstance.readValidatingAdmissionPolicyBinding(name, pretty); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling AdmissionregistrationV1Api#listMutatingWebhookConfiguration"); + System.err.println("Exception when calling AdmissionregistrationV1Api#readValidatingAdmissionPolicyBinding"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -664,21 +2125,12 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **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. | [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] - **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] - **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] - **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] - **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] - **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] - **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + **name** | **String**| name of the ValidatingAdmissionPolicyBinding | + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] ### Return type -[**V1MutatingWebhookConfigurationList**](V1MutatingWebhookConfigurationList.md) +[**V1ValidatingAdmissionPolicyBinding**](V1ValidatingAdmissionPolicyBinding.md) ### Authorization @@ -687,7 +2139,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -695,13 +2147,13 @@ Name | Type | Description | Notes **200** | OK | - | **401** | Unauthorized | - | - -# **listValidatingWebhookConfiguration** -> V1ValidatingWebhookConfigurationList listValidatingWebhookConfiguration(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch) + +# **readValidatingAdmissionPolicyStatus** +> V1ValidatingAdmissionPolicy readValidatingAdmissionPolicyStatus(name, pretty) -list or watch objects of kind ValidatingWebhookConfiguration +read status of the specified ValidatingAdmissionPolicy ### Example ```java @@ -725,22 +2177,13 @@ public class Example { //BearerToken.setApiKeyPrefix("Token"); AdmissionregistrationV1Api apiInstance = new AdmissionregistrationV1Api(defaultClient); - 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. - 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. - String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. - String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. - Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. - String resourceVersion = "resourceVersion_example"; // String | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset - String resourceVersionMatch = "resourceVersionMatch_example"; // String | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset - Boolean sendInitialEvents = true; // Boolean | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. - 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. Specify resourceVersion. + String name = "name_example"; // String | name of the ValidatingAdmissionPolicy + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). try { - V1ValidatingWebhookConfigurationList result = apiInstance.listValidatingWebhookConfiguration(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + V1ValidatingAdmissionPolicy result = apiInstance.readValidatingAdmissionPolicyStatus(name, pretty); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling AdmissionregistrationV1Api#listValidatingWebhookConfiguration"); + System.err.println("Exception when calling AdmissionregistrationV1Api#readValidatingAdmissionPolicyStatus"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -754,21 +2197,12 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **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. | [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] - **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] - **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] - **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] - **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] - **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] - **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + **name** | **String**| name of the ValidatingAdmissionPolicy | + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] ### Return type -[**V1ValidatingWebhookConfigurationList**](V1ValidatingWebhookConfigurationList.md) +[**V1ValidatingAdmissionPolicy**](V1ValidatingAdmissionPolicy.md) ### Authorization @@ -777,7 +2211,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -785,13 +2219,13 @@ Name | Type | Description | Notes **200** | OK | - | **401** | Unauthorized | - | - -# **patchMutatingWebhookConfiguration** -> V1MutatingWebhookConfiguration patchMutatingWebhookConfiguration(name, body, pretty, dryRun, fieldManager, fieldValidation, force) + +# **readValidatingWebhookConfiguration** +> V1ValidatingWebhookConfiguration readValidatingWebhookConfiguration(name, pretty) -partially update the specified MutatingWebhookConfiguration +read the specified ValidatingWebhookConfiguration ### Example ```java @@ -815,18 +2249,13 @@ public class Example { //BearerToken.setApiKeyPrefix("Token"); AdmissionregistrationV1Api apiInstance = new AdmissionregistrationV1Api(defaultClient); - String name = "name_example"; // String | name of the MutatingWebhookConfiguration - V1Patch body = new V1Patch(); // V1Patch | - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. - 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 fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). - String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. - Boolean force = true; // Boolean | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. + String name = "name_example"; // String | name of the ValidatingWebhookConfiguration + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). try { - V1MutatingWebhookConfiguration result = apiInstance.patchMutatingWebhookConfiguration(name, body, pretty, dryRun, fieldManager, fieldValidation, force); + V1ValidatingWebhookConfiguration result = apiInstance.readValidatingWebhookConfiguration(name, pretty); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling AdmissionregistrationV1Api#patchMutatingWebhookConfiguration"); + System.err.println("Exception when calling AdmissionregistrationV1Api#readValidatingWebhookConfiguration"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -840,17 +2269,12 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the MutatingWebhookConfiguration | - **body** | **V1Patch**| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [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] - **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] - **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] - **force** | **Boolean**| Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | [optional] + **name** | **String**| name of the ValidatingWebhookConfiguration | + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] ### Return type -[**V1MutatingWebhookConfiguration**](V1MutatingWebhookConfiguration.md) +[**V1ValidatingWebhookConfiguration**](V1ValidatingWebhookConfiguration.md) ### Authorization @@ -858,23 +2282,22 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | OK | - | -**201** | Created | - | **401** | Unauthorized | - | - -# **patchValidatingWebhookConfiguration** -> V1ValidatingWebhookConfiguration patchValidatingWebhookConfiguration(name, body, pretty, dryRun, fieldManager, fieldValidation, force) + +# **replaceMutatingWebhookConfiguration** +> V1MutatingWebhookConfiguration replaceMutatingWebhookConfiguration(name, body, pretty, dryRun, fieldManager, fieldValidation) -partially update the specified ValidatingWebhookConfiguration +replace the specified MutatingWebhookConfiguration ### Example ```java @@ -898,18 +2321,17 @@ public class Example { //BearerToken.setApiKeyPrefix("Token"); AdmissionregistrationV1Api apiInstance = new AdmissionregistrationV1Api(defaultClient); - String name = "name_example"; // String | name of the ValidatingWebhookConfiguration - V1Patch body = new V1Patch(); // V1Patch | - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String name = "name_example"; // String | name of the MutatingWebhookConfiguration + V1MutatingWebhookConfiguration body = new V1MutatingWebhookConfiguration(); // V1MutatingWebhookConfiguration | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). 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 fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). + String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. - Boolean force = true; // Boolean | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. try { - V1ValidatingWebhookConfiguration result = apiInstance.patchValidatingWebhookConfiguration(name, body, pretty, dryRun, fieldManager, fieldValidation, force); + V1MutatingWebhookConfiguration result = apiInstance.replaceMutatingWebhookConfiguration(name, body, pretty, dryRun, fieldManager, fieldValidation); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling AdmissionregistrationV1Api#patchValidatingWebhookConfiguration"); + System.err.println("Exception when calling AdmissionregistrationV1Api#replaceMutatingWebhookConfiguration"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -923,17 +2345,16 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the ValidatingWebhookConfiguration | - **body** | **V1Patch**| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **name** | **String**| name of the MutatingWebhookConfiguration | + **body** | [**V1MutatingWebhookConfiguration**](V1MutatingWebhookConfiguration.md)| | + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] - **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] + **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] - **force** | **Boolean**| Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | [optional] ### Return type -[**V1ValidatingWebhookConfiguration**](V1ValidatingWebhookConfiguration.md) +[**V1MutatingWebhookConfiguration**](V1MutatingWebhookConfiguration.md) ### Authorization @@ -942,7 +2363,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -951,13 +2372,13 @@ Name | Type | Description | Notes **201** | Created | - | **401** | Unauthorized | - | - -# **readMutatingWebhookConfiguration** -> V1MutatingWebhookConfiguration readMutatingWebhookConfiguration(name, pretty) + +# **replaceValidatingAdmissionPolicy** +> V1ValidatingAdmissionPolicy replaceValidatingAdmissionPolicy(name, body, pretty, dryRun, fieldManager, fieldValidation) -read the specified MutatingWebhookConfiguration +replace the specified ValidatingAdmissionPolicy ### Example ```java @@ -981,13 +2402,17 @@ public class Example { //BearerToken.setApiKeyPrefix("Token"); AdmissionregistrationV1Api apiInstance = new AdmissionregistrationV1Api(defaultClient); - String name = "name_example"; // String | name of the MutatingWebhookConfiguration - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String name = "name_example"; // String | name of the ValidatingAdmissionPolicy + V1ValidatingAdmissionPolicy body = new V1ValidatingAdmissionPolicy(); // V1ValidatingAdmissionPolicy | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + 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 fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. try { - V1MutatingWebhookConfiguration result = apiInstance.readMutatingWebhookConfiguration(name, pretty); + V1ValidatingAdmissionPolicy result = apiInstance.replaceValidatingAdmissionPolicy(name, body, pretty, dryRun, fieldManager, fieldValidation); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling AdmissionregistrationV1Api#readMutatingWebhookConfiguration"); + System.err.println("Exception when calling AdmissionregistrationV1Api#replaceValidatingAdmissionPolicy"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -1001,12 +2426,16 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the MutatingWebhookConfiguration | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **name** | **String**| name of the ValidatingAdmissionPolicy | + **body** | [**V1ValidatingAdmissionPolicy**](V1ValidatingAdmissionPolicy.md)| | + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] + **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] + **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] ### Return type -[**V1MutatingWebhookConfiguration**](V1MutatingWebhookConfiguration.md) +[**V1ValidatingAdmissionPolicy**](V1ValidatingAdmissionPolicy.md) ### Authorization @@ -1014,22 +2443,23 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Content-Type**: application/json + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | OK | - | +**201** | Created | - | **401** | Unauthorized | - | - -# **readValidatingWebhookConfiguration** -> V1ValidatingWebhookConfiguration readValidatingWebhookConfiguration(name, pretty) + +# **replaceValidatingAdmissionPolicyBinding** +> V1ValidatingAdmissionPolicyBinding replaceValidatingAdmissionPolicyBinding(name, body, pretty, dryRun, fieldManager, fieldValidation) -read the specified ValidatingWebhookConfiguration +replace the specified ValidatingAdmissionPolicyBinding ### Example ```java @@ -1053,13 +2483,17 @@ public class Example { //BearerToken.setApiKeyPrefix("Token"); AdmissionregistrationV1Api apiInstance = new AdmissionregistrationV1Api(defaultClient); - String name = "name_example"; // String | name of the ValidatingWebhookConfiguration - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String name = "name_example"; // String | name of the ValidatingAdmissionPolicyBinding + V1ValidatingAdmissionPolicyBinding body = new V1ValidatingAdmissionPolicyBinding(); // V1ValidatingAdmissionPolicyBinding | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + 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 fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. try { - V1ValidatingWebhookConfiguration result = apiInstance.readValidatingWebhookConfiguration(name, pretty); + V1ValidatingAdmissionPolicyBinding result = apiInstance.replaceValidatingAdmissionPolicyBinding(name, body, pretty, dryRun, fieldManager, fieldValidation); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling AdmissionregistrationV1Api#readValidatingWebhookConfiguration"); + System.err.println("Exception when calling AdmissionregistrationV1Api#replaceValidatingAdmissionPolicyBinding"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -1073,12 +2507,16 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the ValidatingWebhookConfiguration | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **name** | **String**| name of the ValidatingAdmissionPolicyBinding | + **body** | [**V1ValidatingAdmissionPolicyBinding**](V1ValidatingAdmissionPolicyBinding.md)| | + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] + **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] + **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] ### Return type -[**V1ValidatingWebhookConfiguration**](V1ValidatingWebhookConfiguration.md) +[**V1ValidatingAdmissionPolicyBinding**](V1ValidatingAdmissionPolicyBinding.md) ### Authorization @@ -1086,22 +2524,23 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Content-Type**: application/json + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | OK | - | +**201** | Created | - | **401** | Unauthorized | - | - -# **replaceMutatingWebhookConfiguration** -> V1MutatingWebhookConfiguration replaceMutatingWebhookConfiguration(name, body, pretty, dryRun, fieldManager, fieldValidation) + +# **replaceValidatingAdmissionPolicyStatus** +> V1ValidatingAdmissionPolicy replaceValidatingAdmissionPolicyStatus(name, body, pretty, dryRun, fieldManager, fieldValidation) -replace the specified MutatingWebhookConfiguration +replace status of the specified ValidatingAdmissionPolicy ### Example ```java @@ -1125,17 +2564,17 @@ public class Example { //BearerToken.setApiKeyPrefix("Token"); AdmissionregistrationV1Api apiInstance = new AdmissionregistrationV1Api(defaultClient); - String name = "name_example"; // String | name of the MutatingWebhookConfiguration - V1MutatingWebhookConfiguration body = new V1MutatingWebhookConfiguration(); // V1MutatingWebhookConfiguration | - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String name = "name_example"; // String | name of the ValidatingAdmissionPolicy + V1ValidatingAdmissionPolicy body = new V1ValidatingAdmissionPolicy(); // V1ValidatingAdmissionPolicy | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). 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 fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. try { - V1MutatingWebhookConfiguration result = apiInstance.replaceMutatingWebhookConfiguration(name, body, pretty, dryRun, fieldManager, fieldValidation); + V1ValidatingAdmissionPolicy result = apiInstance.replaceValidatingAdmissionPolicyStatus(name, body, pretty, dryRun, fieldManager, fieldValidation); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling AdmissionregistrationV1Api#replaceMutatingWebhookConfiguration"); + System.err.println("Exception when calling AdmissionregistrationV1Api#replaceValidatingAdmissionPolicyStatus"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -1149,16 +2588,16 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the MutatingWebhookConfiguration | - **body** | [**V1MutatingWebhookConfiguration**](V1MutatingWebhookConfiguration.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **name** | **String**| name of the ValidatingAdmissionPolicy | + **body** | [**V1ValidatingAdmissionPolicy**](V1ValidatingAdmissionPolicy.md)| | + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] ### Return type -[**V1MutatingWebhookConfiguration**](V1MutatingWebhookConfiguration.md) +[**V1ValidatingAdmissionPolicy**](V1ValidatingAdmissionPolicy.md) ### Authorization @@ -1167,7 +2606,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -1208,7 +2647,7 @@ public class Example { AdmissionregistrationV1Api apiInstance = new AdmissionregistrationV1Api(defaultClient); String name = "name_example"; // String | name of the ValidatingWebhookConfiguration V1ValidatingWebhookConfiguration body = new V1ValidatingWebhookConfiguration(); // V1ValidatingWebhookConfiguration | - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). 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 fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. @@ -1232,7 +2671,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **String**| name of the ValidatingWebhookConfiguration | **body** | [**V1ValidatingWebhookConfiguration**](V1ValidatingWebhookConfiguration.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] @@ -1248,7 +2687,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | diff --git a/kubernetes/docs/AdmissionregistrationV1alpha1Api.md b/kubernetes/docs/AdmissionregistrationV1alpha1Api.md index 31688477f3..11984b8743 100644 --- a/kubernetes/docs/AdmissionregistrationV1alpha1Api.md +++ b/kubernetes/docs/AdmissionregistrationV1alpha1Api.md @@ -4,33 +4,30 @@ All URIs are relative to *http://localhost* Method | HTTP request | Description ------------- | ------------- | ------------- -[**createValidatingAdmissionPolicy**](AdmissionregistrationV1alpha1Api.md#createValidatingAdmissionPolicy) | **POST** /apis/admissionregistration.k8s.io/v1alpha1/validatingadmissionpolicies | -[**createValidatingAdmissionPolicyBinding**](AdmissionregistrationV1alpha1Api.md#createValidatingAdmissionPolicyBinding) | **POST** /apis/admissionregistration.k8s.io/v1alpha1/validatingadmissionpolicybindings | -[**deleteCollectionValidatingAdmissionPolicy**](AdmissionregistrationV1alpha1Api.md#deleteCollectionValidatingAdmissionPolicy) | **DELETE** /apis/admissionregistration.k8s.io/v1alpha1/validatingadmissionpolicies | -[**deleteCollectionValidatingAdmissionPolicyBinding**](AdmissionregistrationV1alpha1Api.md#deleteCollectionValidatingAdmissionPolicyBinding) | **DELETE** /apis/admissionregistration.k8s.io/v1alpha1/validatingadmissionpolicybindings | -[**deleteValidatingAdmissionPolicy**](AdmissionregistrationV1alpha1Api.md#deleteValidatingAdmissionPolicy) | **DELETE** /apis/admissionregistration.k8s.io/v1alpha1/validatingadmissionpolicies/{name} | -[**deleteValidatingAdmissionPolicyBinding**](AdmissionregistrationV1alpha1Api.md#deleteValidatingAdmissionPolicyBinding) | **DELETE** /apis/admissionregistration.k8s.io/v1alpha1/validatingadmissionpolicybindings/{name} | +[**createMutatingAdmissionPolicy**](AdmissionregistrationV1alpha1Api.md#createMutatingAdmissionPolicy) | **POST** /apis/admissionregistration.k8s.io/v1alpha1/mutatingadmissionpolicies | +[**createMutatingAdmissionPolicyBinding**](AdmissionregistrationV1alpha1Api.md#createMutatingAdmissionPolicyBinding) | **POST** /apis/admissionregistration.k8s.io/v1alpha1/mutatingadmissionpolicybindings | +[**deleteCollectionMutatingAdmissionPolicy**](AdmissionregistrationV1alpha1Api.md#deleteCollectionMutatingAdmissionPolicy) | **DELETE** /apis/admissionregistration.k8s.io/v1alpha1/mutatingadmissionpolicies | +[**deleteCollectionMutatingAdmissionPolicyBinding**](AdmissionregistrationV1alpha1Api.md#deleteCollectionMutatingAdmissionPolicyBinding) | **DELETE** /apis/admissionregistration.k8s.io/v1alpha1/mutatingadmissionpolicybindings | +[**deleteMutatingAdmissionPolicy**](AdmissionregistrationV1alpha1Api.md#deleteMutatingAdmissionPolicy) | **DELETE** /apis/admissionregistration.k8s.io/v1alpha1/mutatingadmissionpolicies/{name} | +[**deleteMutatingAdmissionPolicyBinding**](AdmissionregistrationV1alpha1Api.md#deleteMutatingAdmissionPolicyBinding) | **DELETE** /apis/admissionregistration.k8s.io/v1alpha1/mutatingadmissionpolicybindings/{name} | [**getAPIResources**](AdmissionregistrationV1alpha1Api.md#getAPIResources) | **GET** /apis/admissionregistration.k8s.io/v1alpha1/ | -[**listValidatingAdmissionPolicy**](AdmissionregistrationV1alpha1Api.md#listValidatingAdmissionPolicy) | **GET** /apis/admissionregistration.k8s.io/v1alpha1/validatingadmissionpolicies | -[**listValidatingAdmissionPolicyBinding**](AdmissionregistrationV1alpha1Api.md#listValidatingAdmissionPolicyBinding) | **GET** /apis/admissionregistration.k8s.io/v1alpha1/validatingadmissionpolicybindings | -[**patchValidatingAdmissionPolicy**](AdmissionregistrationV1alpha1Api.md#patchValidatingAdmissionPolicy) | **PATCH** /apis/admissionregistration.k8s.io/v1alpha1/validatingadmissionpolicies/{name} | -[**patchValidatingAdmissionPolicyBinding**](AdmissionregistrationV1alpha1Api.md#patchValidatingAdmissionPolicyBinding) | **PATCH** /apis/admissionregistration.k8s.io/v1alpha1/validatingadmissionpolicybindings/{name} | -[**patchValidatingAdmissionPolicyStatus**](AdmissionregistrationV1alpha1Api.md#patchValidatingAdmissionPolicyStatus) | **PATCH** /apis/admissionregistration.k8s.io/v1alpha1/validatingadmissionpolicies/{name}/status | -[**readValidatingAdmissionPolicy**](AdmissionregistrationV1alpha1Api.md#readValidatingAdmissionPolicy) | **GET** /apis/admissionregistration.k8s.io/v1alpha1/validatingadmissionpolicies/{name} | -[**readValidatingAdmissionPolicyBinding**](AdmissionregistrationV1alpha1Api.md#readValidatingAdmissionPolicyBinding) | **GET** /apis/admissionregistration.k8s.io/v1alpha1/validatingadmissionpolicybindings/{name} | -[**readValidatingAdmissionPolicyStatus**](AdmissionregistrationV1alpha1Api.md#readValidatingAdmissionPolicyStatus) | **GET** /apis/admissionregistration.k8s.io/v1alpha1/validatingadmissionpolicies/{name}/status | -[**replaceValidatingAdmissionPolicy**](AdmissionregistrationV1alpha1Api.md#replaceValidatingAdmissionPolicy) | **PUT** /apis/admissionregistration.k8s.io/v1alpha1/validatingadmissionpolicies/{name} | -[**replaceValidatingAdmissionPolicyBinding**](AdmissionregistrationV1alpha1Api.md#replaceValidatingAdmissionPolicyBinding) | **PUT** /apis/admissionregistration.k8s.io/v1alpha1/validatingadmissionpolicybindings/{name} | -[**replaceValidatingAdmissionPolicyStatus**](AdmissionregistrationV1alpha1Api.md#replaceValidatingAdmissionPolicyStatus) | **PUT** /apis/admissionregistration.k8s.io/v1alpha1/validatingadmissionpolicies/{name}/status | +[**listMutatingAdmissionPolicy**](AdmissionregistrationV1alpha1Api.md#listMutatingAdmissionPolicy) | **GET** /apis/admissionregistration.k8s.io/v1alpha1/mutatingadmissionpolicies | +[**listMutatingAdmissionPolicyBinding**](AdmissionregistrationV1alpha1Api.md#listMutatingAdmissionPolicyBinding) | **GET** /apis/admissionregistration.k8s.io/v1alpha1/mutatingadmissionpolicybindings | +[**patchMutatingAdmissionPolicy**](AdmissionregistrationV1alpha1Api.md#patchMutatingAdmissionPolicy) | **PATCH** /apis/admissionregistration.k8s.io/v1alpha1/mutatingadmissionpolicies/{name} | +[**patchMutatingAdmissionPolicyBinding**](AdmissionregistrationV1alpha1Api.md#patchMutatingAdmissionPolicyBinding) | **PATCH** /apis/admissionregistration.k8s.io/v1alpha1/mutatingadmissionpolicybindings/{name} | +[**readMutatingAdmissionPolicy**](AdmissionregistrationV1alpha1Api.md#readMutatingAdmissionPolicy) | **GET** /apis/admissionregistration.k8s.io/v1alpha1/mutatingadmissionpolicies/{name} | +[**readMutatingAdmissionPolicyBinding**](AdmissionregistrationV1alpha1Api.md#readMutatingAdmissionPolicyBinding) | **GET** /apis/admissionregistration.k8s.io/v1alpha1/mutatingadmissionpolicybindings/{name} | +[**replaceMutatingAdmissionPolicy**](AdmissionregistrationV1alpha1Api.md#replaceMutatingAdmissionPolicy) | **PUT** /apis/admissionregistration.k8s.io/v1alpha1/mutatingadmissionpolicies/{name} | +[**replaceMutatingAdmissionPolicyBinding**](AdmissionregistrationV1alpha1Api.md#replaceMutatingAdmissionPolicyBinding) | **PUT** /apis/admissionregistration.k8s.io/v1alpha1/mutatingadmissionpolicybindings/{name} | - -# **createValidatingAdmissionPolicy** -> V1alpha1ValidatingAdmissionPolicy createValidatingAdmissionPolicy(body, pretty, dryRun, fieldManager, fieldValidation) + +# **createMutatingAdmissionPolicy** +> V1alpha1MutatingAdmissionPolicy createMutatingAdmissionPolicy(body, pretty, dryRun, fieldManager, fieldValidation) -create a ValidatingAdmissionPolicy +create a MutatingAdmissionPolicy ### Example ```java @@ -54,16 +51,16 @@ public class Example { //BearerToken.setApiKeyPrefix("Token"); AdmissionregistrationV1alpha1Api apiInstance = new AdmissionregistrationV1alpha1Api(defaultClient); - V1alpha1ValidatingAdmissionPolicy body = new V1alpha1ValidatingAdmissionPolicy(); // V1alpha1ValidatingAdmissionPolicy | - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + V1alpha1MutatingAdmissionPolicy body = new V1alpha1MutatingAdmissionPolicy(); // V1alpha1MutatingAdmissionPolicy | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). 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 fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. try { - V1alpha1ValidatingAdmissionPolicy result = apiInstance.createValidatingAdmissionPolicy(body, pretty, dryRun, fieldManager, fieldValidation); + V1alpha1MutatingAdmissionPolicy result = apiInstance.createMutatingAdmissionPolicy(body, pretty, dryRun, fieldManager, fieldValidation); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling AdmissionregistrationV1alpha1Api#createValidatingAdmissionPolicy"); + System.err.println("Exception when calling AdmissionregistrationV1alpha1Api#createMutatingAdmissionPolicy"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -77,15 +74,15 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **body** | [**V1alpha1ValidatingAdmissionPolicy**](V1alpha1ValidatingAdmissionPolicy.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **body** | [**V1alpha1MutatingAdmissionPolicy**](V1alpha1MutatingAdmissionPolicy.md)| | + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] ### Return type -[**V1alpha1ValidatingAdmissionPolicy**](V1alpha1ValidatingAdmissionPolicy.md) +[**V1alpha1MutatingAdmissionPolicy**](V1alpha1MutatingAdmissionPolicy.md) ### Authorization @@ -94,7 +91,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -104,13 +101,13 @@ Name | Type | Description | Notes **202** | Accepted | - | **401** | Unauthorized | - | - -# **createValidatingAdmissionPolicyBinding** -> V1alpha1ValidatingAdmissionPolicyBinding createValidatingAdmissionPolicyBinding(body, pretty, dryRun, fieldManager, fieldValidation) + +# **createMutatingAdmissionPolicyBinding** +> V1alpha1MutatingAdmissionPolicyBinding createMutatingAdmissionPolicyBinding(body, pretty, dryRun, fieldManager, fieldValidation) -create a ValidatingAdmissionPolicyBinding +create a MutatingAdmissionPolicyBinding ### Example ```java @@ -134,16 +131,16 @@ public class Example { //BearerToken.setApiKeyPrefix("Token"); AdmissionregistrationV1alpha1Api apiInstance = new AdmissionregistrationV1alpha1Api(defaultClient); - V1alpha1ValidatingAdmissionPolicyBinding body = new V1alpha1ValidatingAdmissionPolicyBinding(); // V1alpha1ValidatingAdmissionPolicyBinding | - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + V1alpha1MutatingAdmissionPolicyBinding body = new V1alpha1MutatingAdmissionPolicyBinding(); // V1alpha1MutatingAdmissionPolicyBinding | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). 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 fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. try { - V1alpha1ValidatingAdmissionPolicyBinding result = apiInstance.createValidatingAdmissionPolicyBinding(body, pretty, dryRun, fieldManager, fieldValidation); + V1alpha1MutatingAdmissionPolicyBinding result = apiInstance.createMutatingAdmissionPolicyBinding(body, pretty, dryRun, fieldManager, fieldValidation); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling AdmissionregistrationV1alpha1Api#createValidatingAdmissionPolicyBinding"); + System.err.println("Exception when calling AdmissionregistrationV1alpha1Api#createMutatingAdmissionPolicyBinding"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -157,15 +154,15 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **body** | [**V1alpha1ValidatingAdmissionPolicyBinding**](V1alpha1ValidatingAdmissionPolicyBinding.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **body** | [**V1alpha1MutatingAdmissionPolicyBinding**](V1alpha1MutatingAdmissionPolicyBinding.md)| | + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] ### Return type -[**V1alpha1ValidatingAdmissionPolicyBinding**](V1alpha1ValidatingAdmissionPolicyBinding.md) +[**V1alpha1MutatingAdmissionPolicyBinding**](V1alpha1MutatingAdmissionPolicyBinding.md) ### Authorization @@ -174,7 +171,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -184,13 +181,13 @@ Name | Type | Description | Notes **202** | Accepted | - | **401** | Unauthorized | - | - -# **deleteCollectionValidatingAdmissionPolicy** -> V1Status deleteCollectionValidatingAdmissionPolicy(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body) + +# **deleteCollectionMutatingAdmissionPolicy** +> V1Status deleteCollectionMutatingAdmissionPolicy(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body) -delete collection of ValidatingAdmissionPolicy +delete collection of MutatingAdmissionPolicy ### Example ```java @@ -214,11 +211,12 @@ public class Example { //BearerToken.setApiKeyPrefix("Token"); AdmissionregistrationV1alpha1Api apiInstance = new AdmissionregistrationV1alpha1Api(defaultClient); - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). 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. 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. Integer gracePeriodSeconds = 56; // Integer | 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. + Boolean ignoreStoreReadErrorWithClusterBreakingPotential = true; // Boolean | if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. 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. @@ -229,10 +227,10 @@ 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. V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | try { - V1Status result = apiInstance.deleteCollectionValidatingAdmissionPolicy(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); + V1Status result = apiInstance.deleteCollectionMutatingAdmissionPolicy(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling AdmissionregistrationV1alpha1Api#deleteCollectionValidatingAdmissionPolicy"); + System.err.println("Exception when calling AdmissionregistrationV1alpha1Api#deleteCollectionMutatingAdmissionPolicy"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -246,11 +244,12 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] **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] **gracePeriodSeconds** | **Integer**| 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. | [optional] + **ignoreStoreReadErrorWithClusterBreakingPotential** | **Boolean**| if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it | [optional] **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] **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] @@ -272,7 +271,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -280,13 +279,13 @@ Name | Type | Description | Notes **200** | OK | - | **401** | Unauthorized | - | - -# **deleteCollectionValidatingAdmissionPolicyBinding** -> V1Status deleteCollectionValidatingAdmissionPolicyBinding(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body) + +# **deleteCollectionMutatingAdmissionPolicyBinding** +> V1Status deleteCollectionMutatingAdmissionPolicyBinding(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body) -delete collection of ValidatingAdmissionPolicyBinding +delete collection of MutatingAdmissionPolicyBinding ### Example ```java @@ -310,11 +309,12 @@ public class Example { //BearerToken.setApiKeyPrefix("Token"); AdmissionregistrationV1alpha1Api apiInstance = new AdmissionregistrationV1alpha1Api(defaultClient); - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). 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. 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. Integer gracePeriodSeconds = 56; // Integer | 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. + Boolean ignoreStoreReadErrorWithClusterBreakingPotential = true; // Boolean | if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. 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. @@ -325,10 +325,10 @@ 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. V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | try { - V1Status result = apiInstance.deleteCollectionValidatingAdmissionPolicyBinding(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); + V1Status result = apiInstance.deleteCollectionMutatingAdmissionPolicyBinding(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling AdmissionregistrationV1alpha1Api#deleteCollectionValidatingAdmissionPolicyBinding"); + System.err.println("Exception when calling AdmissionregistrationV1alpha1Api#deleteCollectionMutatingAdmissionPolicyBinding"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -342,11 +342,12 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] **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] **gracePeriodSeconds** | **Integer**| 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. | [optional] + **ignoreStoreReadErrorWithClusterBreakingPotential** | **Boolean**| if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it | [optional] **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] **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] @@ -368,7 +369,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -376,13 +377,13 @@ Name | Type | Description | Notes **200** | OK | - | **401** | Unauthorized | - | - -# **deleteValidatingAdmissionPolicy** -> V1Status deleteValidatingAdmissionPolicy(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body) + +# **deleteMutatingAdmissionPolicy** +> V1Status deleteMutatingAdmissionPolicy(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body) -delete a ValidatingAdmissionPolicy +delete a MutatingAdmissionPolicy ### Example ```java @@ -406,18 +407,19 @@ public class Example { //BearerToken.setApiKeyPrefix("Token"); AdmissionregistrationV1alpha1Api apiInstance = new AdmissionregistrationV1alpha1Api(defaultClient); - String name = "name_example"; // String | name of the ValidatingAdmissionPolicy - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String name = "name_example"; // String | name of the MutatingAdmissionPolicy + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). 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 Integer gracePeriodSeconds = 56; // Integer | 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. + Boolean ignoreStoreReadErrorWithClusterBreakingPotential = true; // Boolean | if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it 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. 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. V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | try { - V1Status result = apiInstance.deleteValidatingAdmissionPolicy(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body); + V1Status result = apiInstance.deleteMutatingAdmissionPolicy(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling AdmissionregistrationV1alpha1Api#deleteValidatingAdmissionPolicy"); + System.err.println("Exception when calling AdmissionregistrationV1alpha1Api#deleteMutatingAdmissionPolicy"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -431,10 +433,11 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the ValidatingAdmissionPolicy | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **name** | **String**| name of the MutatingAdmissionPolicy | + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] **gracePeriodSeconds** | **Integer**| 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. | [optional] + **ignoreStoreReadErrorWithClusterBreakingPotential** | **Boolean**| if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it | [optional] **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. 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. | [optional] **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] @@ -450,7 +453,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -459,13 +462,13 @@ Name | Type | Description | Notes **202** | Accepted | - | **401** | Unauthorized | - | - -# **deleteValidatingAdmissionPolicyBinding** -> V1Status deleteValidatingAdmissionPolicyBinding(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body) + +# **deleteMutatingAdmissionPolicyBinding** +> V1Status deleteMutatingAdmissionPolicyBinding(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body) -delete a ValidatingAdmissionPolicyBinding +delete a MutatingAdmissionPolicyBinding ### Example ```java @@ -489,18 +492,19 @@ public class Example { //BearerToken.setApiKeyPrefix("Token"); AdmissionregistrationV1alpha1Api apiInstance = new AdmissionregistrationV1alpha1Api(defaultClient); - String name = "name_example"; // String | name of the ValidatingAdmissionPolicyBinding - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String name = "name_example"; // String | name of the MutatingAdmissionPolicyBinding + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). 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 Integer gracePeriodSeconds = 56; // Integer | 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. + Boolean ignoreStoreReadErrorWithClusterBreakingPotential = true; // Boolean | if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it 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. 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. V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | try { - V1Status result = apiInstance.deleteValidatingAdmissionPolicyBinding(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body); + V1Status result = apiInstance.deleteMutatingAdmissionPolicyBinding(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling AdmissionregistrationV1alpha1Api#deleteValidatingAdmissionPolicyBinding"); + System.err.println("Exception when calling AdmissionregistrationV1alpha1Api#deleteMutatingAdmissionPolicyBinding"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -514,10 +518,11 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the ValidatingAdmissionPolicyBinding | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **name** | **String**| name of the MutatingAdmissionPolicyBinding | + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] **gracePeriodSeconds** | **Integer**| 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. | [optional] + **ignoreStoreReadErrorWithClusterBreakingPotential** | **Boolean**| if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it | [optional] **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. 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. | [optional] **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] @@ -533,7 +538,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -600,7 +605,7 @@ This endpoint does not need any parameter. ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -608,13 +613,13 @@ This endpoint does not need any parameter. **200** | OK | - | **401** | Unauthorized | - | - -# **listValidatingAdmissionPolicy** -> V1alpha1ValidatingAdmissionPolicyList listValidatingAdmissionPolicy(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch) + +# **listMutatingAdmissionPolicy** +> V1alpha1MutatingAdmissionPolicyList listMutatingAdmissionPolicy(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch) -list or watch objects of kind ValidatingAdmissionPolicy +list or watch objects of kind MutatingAdmissionPolicy ### Example ```java @@ -638,7 +643,7 @@ public class Example { //BearerToken.setApiKeyPrefix("Token"); AdmissionregistrationV1alpha1Api apiInstance = new AdmissionregistrationV1alpha1Api(defaultClient); - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). 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. 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. String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. @@ -650,10 +655,10 @@ 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. Specify resourceVersion. try { - V1alpha1ValidatingAdmissionPolicyList result = apiInstance.listValidatingAdmissionPolicy(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + V1alpha1MutatingAdmissionPolicyList result = apiInstance.listMutatingAdmissionPolicy(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling AdmissionregistrationV1alpha1Api#listValidatingAdmissionPolicy"); + System.err.println("Exception when calling AdmissionregistrationV1alpha1Api#listMutatingAdmissionPolicy"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -667,7 +672,7 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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. | [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] **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] @@ -681,7 +686,7 @@ Name | Type | Description | Notes ### Return type -[**V1alpha1ValidatingAdmissionPolicyList**](V1alpha1ValidatingAdmissionPolicyList.md) +[**V1alpha1MutatingAdmissionPolicyList**](V1alpha1MutatingAdmissionPolicyList.md) ### Authorization @@ -690,7 +695,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch, application/cbor-seq ### HTTP response details | Status code | Description | Response headers | @@ -698,13 +703,13 @@ Name | Type | Description | Notes **200** | OK | - | **401** | Unauthorized | - | - -# **listValidatingAdmissionPolicyBinding** -> V1alpha1ValidatingAdmissionPolicyBindingList listValidatingAdmissionPolicyBinding(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch) + +# **listMutatingAdmissionPolicyBinding** +> V1alpha1MutatingAdmissionPolicyBindingList listMutatingAdmissionPolicyBinding(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch) -list or watch objects of kind ValidatingAdmissionPolicyBinding +list or watch objects of kind MutatingAdmissionPolicyBinding ### Example ```java @@ -728,7 +733,7 @@ public class Example { //BearerToken.setApiKeyPrefix("Token"); AdmissionregistrationV1alpha1Api apiInstance = new AdmissionregistrationV1alpha1Api(defaultClient); - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). 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. 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. String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. @@ -740,10 +745,10 @@ 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. Specify resourceVersion. try { - V1alpha1ValidatingAdmissionPolicyBindingList result = apiInstance.listValidatingAdmissionPolicyBinding(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + V1alpha1MutatingAdmissionPolicyBindingList result = apiInstance.listMutatingAdmissionPolicyBinding(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling AdmissionregistrationV1alpha1Api#listValidatingAdmissionPolicyBinding"); + System.err.println("Exception when calling AdmissionregistrationV1alpha1Api#listMutatingAdmissionPolicyBinding"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -757,7 +762,7 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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. | [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] **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] @@ -771,7 +776,7 @@ Name | Type | Description | Notes ### Return type -[**V1alpha1ValidatingAdmissionPolicyBindingList**](V1alpha1ValidatingAdmissionPolicyBindingList.md) +[**V1alpha1MutatingAdmissionPolicyBindingList**](V1alpha1MutatingAdmissionPolicyBindingList.md) ### Authorization @@ -780,7 +785,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch, application/cbor-seq ### HTTP response details | Status code | Description | Response headers | @@ -788,13 +793,13 @@ Name | Type | Description | Notes **200** | OK | - | **401** | Unauthorized | - | - -# **patchValidatingAdmissionPolicy** -> V1alpha1ValidatingAdmissionPolicy patchValidatingAdmissionPolicy(name, body, pretty, dryRun, fieldManager, fieldValidation, force) + +# **patchMutatingAdmissionPolicy** +> V1alpha1MutatingAdmissionPolicy patchMutatingAdmissionPolicy(name, body, pretty, dryRun, fieldManager, fieldValidation, force) -partially update the specified ValidatingAdmissionPolicy +partially update the specified MutatingAdmissionPolicy ### Example ```java @@ -818,18 +823,18 @@ public class Example { //BearerToken.setApiKeyPrefix("Token"); AdmissionregistrationV1alpha1Api apiInstance = new AdmissionregistrationV1alpha1Api(defaultClient); - String name = "name_example"; // String | name of the ValidatingAdmissionPolicy + String name = "name_example"; // String | name of the MutatingAdmissionPolicy V1Patch body = new V1Patch(); // V1Patch | - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). 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 fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. Boolean force = true; // Boolean | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. try { - V1alpha1ValidatingAdmissionPolicy result = apiInstance.patchValidatingAdmissionPolicy(name, body, pretty, dryRun, fieldManager, fieldValidation, force); + V1alpha1MutatingAdmissionPolicy result = apiInstance.patchMutatingAdmissionPolicy(name, body, pretty, dryRun, fieldManager, fieldValidation, force); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling AdmissionregistrationV1alpha1Api#patchValidatingAdmissionPolicy"); + System.err.println("Exception when calling AdmissionregistrationV1alpha1Api#patchMutatingAdmissionPolicy"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -843,9 +848,9 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the ValidatingAdmissionPolicy | + **name** | **String**| name of the MutatingAdmissionPolicy | **body** | **V1Patch**| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] @@ -853,7 +858,7 @@ Name | Type | Description | Notes ### Return type -[**V1alpha1ValidatingAdmissionPolicy**](V1alpha1ValidatingAdmissionPolicy.md) +[**V1alpha1MutatingAdmissionPolicy**](V1alpha1MutatingAdmissionPolicy.md) ### Authorization @@ -862,7 +867,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -871,13 +876,13 @@ Name | Type | Description | Notes **201** | Created | - | **401** | Unauthorized | - | - -# **patchValidatingAdmissionPolicyBinding** -> V1alpha1ValidatingAdmissionPolicyBinding patchValidatingAdmissionPolicyBinding(name, body, pretty, dryRun, fieldManager, fieldValidation, force) + +# **patchMutatingAdmissionPolicyBinding** +> V1alpha1MutatingAdmissionPolicyBinding patchMutatingAdmissionPolicyBinding(name, body, pretty, dryRun, fieldManager, fieldValidation, force) -partially update the specified ValidatingAdmissionPolicyBinding +partially update the specified MutatingAdmissionPolicyBinding ### Example ```java @@ -901,18 +906,18 @@ public class Example { //BearerToken.setApiKeyPrefix("Token"); AdmissionregistrationV1alpha1Api apiInstance = new AdmissionregistrationV1alpha1Api(defaultClient); - String name = "name_example"; // String | name of the ValidatingAdmissionPolicyBinding + String name = "name_example"; // String | name of the MutatingAdmissionPolicyBinding V1Patch body = new V1Patch(); // V1Patch | - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). 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 fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. Boolean force = true; // Boolean | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. try { - V1alpha1ValidatingAdmissionPolicyBinding result = apiInstance.patchValidatingAdmissionPolicyBinding(name, body, pretty, dryRun, fieldManager, fieldValidation, force); + V1alpha1MutatingAdmissionPolicyBinding result = apiInstance.patchMutatingAdmissionPolicyBinding(name, body, pretty, dryRun, fieldManager, fieldValidation, force); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling AdmissionregistrationV1alpha1Api#patchValidatingAdmissionPolicyBinding"); + System.err.println("Exception when calling AdmissionregistrationV1alpha1Api#patchMutatingAdmissionPolicyBinding"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -926,9 +931,9 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the ValidatingAdmissionPolicyBinding | + **name** | **String**| name of the MutatingAdmissionPolicyBinding | **body** | **V1Patch**| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] @@ -936,7 +941,7 @@ Name | Type | Description | Notes ### Return type -[**V1alpha1ValidatingAdmissionPolicyBinding**](V1alpha1ValidatingAdmissionPolicyBinding.md) +[**V1alpha1MutatingAdmissionPolicyBinding**](V1alpha1MutatingAdmissionPolicyBinding.md) ### Authorization @@ -945,7 +950,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -954,13 +959,13 @@ Name | Type | Description | Notes **201** | Created | - | **401** | Unauthorized | - | - -# **patchValidatingAdmissionPolicyStatus** -> V1alpha1ValidatingAdmissionPolicy patchValidatingAdmissionPolicyStatus(name, body, pretty, dryRun, fieldManager, fieldValidation, force) + +# **readMutatingAdmissionPolicy** +> V1alpha1MutatingAdmissionPolicy readMutatingAdmissionPolicy(name, pretty) -partially update status of the specified ValidatingAdmissionPolicy +read the specified MutatingAdmissionPolicy ### Example ```java @@ -984,168 +989,13 @@ public class Example { //BearerToken.setApiKeyPrefix("Token"); AdmissionregistrationV1alpha1Api apiInstance = new AdmissionregistrationV1alpha1Api(defaultClient); - String name = "name_example"; // String | name of the ValidatingAdmissionPolicy - V1Patch body = new V1Patch(); // V1Patch | - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. - 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 fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). - String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. - Boolean force = true; // Boolean | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. - try { - V1alpha1ValidatingAdmissionPolicy result = apiInstance.patchValidatingAdmissionPolicyStatus(name, body, pretty, dryRun, fieldManager, fieldValidation, force); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling AdmissionregistrationV1alpha1Api#patchValidatingAdmissionPolicyStatus"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } - } -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the ValidatingAdmissionPolicy | - **body** | **V1Patch**| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [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] - **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] - **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] - **force** | **Boolean**| Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | [optional] - -### Return type - -[**V1alpha1ValidatingAdmissionPolicy**](V1alpha1ValidatingAdmissionPolicy.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | OK | - | -**201** | Created | - | -**401** | Unauthorized | - | - - -# **readValidatingAdmissionPolicy** -> V1alpha1ValidatingAdmissionPolicy readValidatingAdmissionPolicy(name, pretty) - - - -read the specified ValidatingAdmissionPolicy - -### Example -```java -// Import classes: -import io.kubernetes.client.openapi.ApiClient; -import io.kubernetes.client.openapi.ApiException; -import io.kubernetes.client.openapi.Configuration; -import io.kubernetes.client.openapi.auth.*; -import io.kubernetes.client.openapi.models.*; -import io.kubernetes.client.openapi.apis.AdmissionregistrationV1alpha1Api; - -public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("http://localhost"); - - // Configure API key authorization: BearerToken - ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); - BearerToken.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //BearerToken.setApiKeyPrefix("Token"); - - AdmissionregistrationV1alpha1Api apiInstance = new AdmissionregistrationV1alpha1Api(defaultClient); - String name = "name_example"; // String | name of the ValidatingAdmissionPolicy - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. - try { - V1alpha1ValidatingAdmissionPolicy result = apiInstance.readValidatingAdmissionPolicy(name, pretty); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling AdmissionregistrationV1alpha1Api#readValidatingAdmissionPolicy"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } - } -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the ValidatingAdmissionPolicy | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - -### Return type - -[**V1alpha1ValidatingAdmissionPolicy**](V1alpha1ValidatingAdmissionPolicy.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | - - -# **readValidatingAdmissionPolicyBinding** -> V1alpha1ValidatingAdmissionPolicyBinding readValidatingAdmissionPolicyBinding(name, pretty) - - - -read the specified ValidatingAdmissionPolicyBinding - -### Example -```java -// Import classes: -import io.kubernetes.client.openapi.ApiClient; -import io.kubernetes.client.openapi.ApiException; -import io.kubernetes.client.openapi.Configuration; -import io.kubernetes.client.openapi.auth.*; -import io.kubernetes.client.openapi.models.*; -import io.kubernetes.client.openapi.apis.AdmissionregistrationV1alpha1Api; - -public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("http://localhost"); - - // Configure API key authorization: BearerToken - ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); - BearerToken.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //BearerToken.setApiKeyPrefix("Token"); - - AdmissionregistrationV1alpha1Api apiInstance = new AdmissionregistrationV1alpha1Api(defaultClient); - String name = "name_example"; // String | name of the ValidatingAdmissionPolicyBinding - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String name = "name_example"; // String | name of the MutatingAdmissionPolicy + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). try { - V1alpha1ValidatingAdmissionPolicyBinding result = apiInstance.readValidatingAdmissionPolicyBinding(name, pretty); + V1alpha1MutatingAdmissionPolicy result = apiInstance.readMutatingAdmissionPolicy(name, pretty); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling AdmissionregistrationV1alpha1Api#readValidatingAdmissionPolicyBinding"); + System.err.println("Exception when calling AdmissionregistrationV1alpha1Api#readMutatingAdmissionPolicy"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -1159,12 +1009,12 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the ValidatingAdmissionPolicyBinding | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **name** | **String**| name of the MutatingAdmissionPolicy | + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] ### Return type -[**V1alpha1ValidatingAdmissionPolicyBinding**](V1alpha1ValidatingAdmissionPolicyBinding.md) +[**V1alpha1MutatingAdmissionPolicy**](V1alpha1MutatingAdmissionPolicy.md) ### Authorization @@ -1173,7 +1023,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -1181,13 +1031,13 @@ Name | Type | Description | Notes **200** | OK | - | **401** | Unauthorized | - | - -# **readValidatingAdmissionPolicyStatus** -> V1alpha1ValidatingAdmissionPolicy readValidatingAdmissionPolicyStatus(name, pretty) + +# **readMutatingAdmissionPolicyBinding** +> V1alpha1MutatingAdmissionPolicyBinding readMutatingAdmissionPolicyBinding(name, pretty) -read status of the specified ValidatingAdmissionPolicy +read the specified MutatingAdmissionPolicyBinding ### Example ```java @@ -1211,13 +1061,13 @@ public class Example { //BearerToken.setApiKeyPrefix("Token"); AdmissionregistrationV1alpha1Api apiInstance = new AdmissionregistrationV1alpha1Api(defaultClient); - String name = "name_example"; // String | name of the ValidatingAdmissionPolicy - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String name = "name_example"; // String | name of the MutatingAdmissionPolicyBinding + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). try { - V1alpha1ValidatingAdmissionPolicy result = apiInstance.readValidatingAdmissionPolicyStatus(name, pretty); + V1alpha1MutatingAdmissionPolicyBinding result = apiInstance.readMutatingAdmissionPolicyBinding(name, pretty); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling AdmissionregistrationV1alpha1Api#readValidatingAdmissionPolicyStatus"); + System.err.println("Exception when calling AdmissionregistrationV1alpha1Api#readMutatingAdmissionPolicyBinding"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -1231,12 +1081,12 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the ValidatingAdmissionPolicy | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **name** | **String**| name of the MutatingAdmissionPolicyBinding | + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] ### Return type -[**V1alpha1ValidatingAdmissionPolicy**](V1alpha1ValidatingAdmissionPolicy.md) +[**V1alpha1MutatingAdmissionPolicyBinding**](V1alpha1MutatingAdmissionPolicyBinding.md) ### Authorization @@ -1245,7 +1095,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -1253,94 +1103,13 @@ Name | Type | Description | Notes **200** | OK | - | **401** | Unauthorized | - | - -# **replaceValidatingAdmissionPolicy** -> V1alpha1ValidatingAdmissionPolicy replaceValidatingAdmissionPolicy(name, body, pretty, dryRun, fieldManager, fieldValidation) - - - -replace the specified ValidatingAdmissionPolicy - -### Example -```java -// Import classes: -import io.kubernetes.client.openapi.ApiClient; -import io.kubernetes.client.openapi.ApiException; -import io.kubernetes.client.openapi.Configuration; -import io.kubernetes.client.openapi.auth.*; -import io.kubernetes.client.openapi.models.*; -import io.kubernetes.client.openapi.apis.AdmissionregistrationV1alpha1Api; - -public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("http://localhost"); - - // Configure API key authorization: BearerToken - ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); - BearerToken.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //BearerToken.setApiKeyPrefix("Token"); - - AdmissionregistrationV1alpha1Api apiInstance = new AdmissionregistrationV1alpha1Api(defaultClient); - String name = "name_example"; // String | name of the ValidatingAdmissionPolicy - V1alpha1ValidatingAdmissionPolicy body = new V1alpha1ValidatingAdmissionPolicy(); // V1alpha1ValidatingAdmissionPolicy | - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. - 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 fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. - try { - V1alpha1ValidatingAdmissionPolicy result = apiInstance.replaceValidatingAdmissionPolicy(name, body, pretty, dryRun, fieldManager, fieldValidation); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling AdmissionregistrationV1alpha1Api#replaceValidatingAdmissionPolicy"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } - } -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the ValidatingAdmissionPolicy | - **body** | [**V1alpha1ValidatingAdmissionPolicy**](V1alpha1ValidatingAdmissionPolicy.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [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] - **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] - **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] - -### Return type - -[**V1alpha1ValidatingAdmissionPolicy**](V1alpha1ValidatingAdmissionPolicy.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | OK | - | -**201** | Created | - | -**401** | Unauthorized | - | - - -# **replaceValidatingAdmissionPolicyBinding** -> V1alpha1ValidatingAdmissionPolicyBinding replaceValidatingAdmissionPolicyBinding(name, body, pretty, dryRun, fieldManager, fieldValidation) + +# **replaceMutatingAdmissionPolicy** +> V1alpha1MutatingAdmissionPolicy replaceMutatingAdmissionPolicy(name, body, pretty, dryRun, fieldManager, fieldValidation) -replace the specified ValidatingAdmissionPolicyBinding +replace the specified MutatingAdmissionPolicy ### Example ```java @@ -1364,17 +1133,17 @@ public class Example { //BearerToken.setApiKeyPrefix("Token"); AdmissionregistrationV1alpha1Api apiInstance = new AdmissionregistrationV1alpha1Api(defaultClient); - String name = "name_example"; // String | name of the ValidatingAdmissionPolicyBinding - V1alpha1ValidatingAdmissionPolicyBinding body = new V1alpha1ValidatingAdmissionPolicyBinding(); // V1alpha1ValidatingAdmissionPolicyBinding | - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String name = "name_example"; // String | name of the MutatingAdmissionPolicy + V1alpha1MutatingAdmissionPolicy body = new V1alpha1MutatingAdmissionPolicy(); // V1alpha1MutatingAdmissionPolicy | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). 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 fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. try { - V1alpha1ValidatingAdmissionPolicyBinding result = apiInstance.replaceValidatingAdmissionPolicyBinding(name, body, pretty, dryRun, fieldManager, fieldValidation); + V1alpha1MutatingAdmissionPolicy result = apiInstance.replaceMutatingAdmissionPolicy(name, body, pretty, dryRun, fieldManager, fieldValidation); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling AdmissionregistrationV1alpha1Api#replaceValidatingAdmissionPolicyBinding"); + System.err.println("Exception when calling AdmissionregistrationV1alpha1Api#replaceMutatingAdmissionPolicy"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -1388,16 +1157,16 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the ValidatingAdmissionPolicyBinding | - **body** | [**V1alpha1ValidatingAdmissionPolicyBinding**](V1alpha1ValidatingAdmissionPolicyBinding.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **name** | **String**| name of the MutatingAdmissionPolicy | + **body** | [**V1alpha1MutatingAdmissionPolicy**](V1alpha1MutatingAdmissionPolicy.md)| | + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] ### Return type -[**V1alpha1ValidatingAdmissionPolicyBinding**](V1alpha1ValidatingAdmissionPolicyBinding.md) +[**V1alpha1MutatingAdmissionPolicy**](V1alpha1MutatingAdmissionPolicy.md) ### Authorization @@ -1406,7 +1175,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -1415,13 +1184,13 @@ Name | Type | Description | Notes **201** | Created | - | **401** | Unauthorized | - | - -# **replaceValidatingAdmissionPolicyStatus** -> V1alpha1ValidatingAdmissionPolicy replaceValidatingAdmissionPolicyStatus(name, body, pretty, dryRun, fieldManager, fieldValidation) + +# **replaceMutatingAdmissionPolicyBinding** +> V1alpha1MutatingAdmissionPolicyBinding replaceMutatingAdmissionPolicyBinding(name, body, pretty, dryRun, fieldManager, fieldValidation) -replace status of the specified ValidatingAdmissionPolicy +replace the specified MutatingAdmissionPolicyBinding ### Example ```java @@ -1445,17 +1214,17 @@ public class Example { //BearerToken.setApiKeyPrefix("Token"); AdmissionregistrationV1alpha1Api apiInstance = new AdmissionregistrationV1alpha1Api(defaultClient); - String name = "name_example"; // String | name of the ValidatingAdmissionPolicy - V1alpha1ValidatingAdmissionPolicy body = new V1alpha1ValidatingAdmissionPolicy(); // V1alpha1ValidatingAdmissionPolicy | - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String name = "name_example"; // String | name of the MutatingAdmissionPolicyBinding + V1alpha1MutatingAdmissionPolicyBinding body = new V1alpha1MutatingAdmissionPolicyBinding(); // V1alpha1MutatingAdmissionPolicyBinding | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). 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 fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. try { - V1alpha1ValidatingAdmissionPolicy result = apiInstance.replaceValidatingAdmissionPolicyStatus(name, body, pretty, dryRun, fieldManager, fieldValidation); + V1alpha1MutatingAdmissionPolicyBinding result = apiInstance.replaceMutatingAdmissionPolicyBinding(name, body, pretty, dryRun, fieldManager, fieldValidation); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling AdmissionregistrationV1alpha1Api#replaceValidatingAdmissionPolicyStatus"); + System.err.println("Exception when calling AdmissionregistrationV1alpha1Api#replaceMutatingAdmissionPolicyBinding"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -1469,16 +1238,16 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the ValidatingAdmissionPolicy | - **body** | [**V1alpha1ValidatingAdmissionPolicy**](V1alpha1ValidatingAdmissionPolicy.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **name** | **String**| name of the MutatingAdmissionPolicyBinding | + **body** | [**V1alpha1MutatingAdmissionPolicyBinding**](V1alpha1MutatingAdmissionPolicyBinding.md)| | + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] ### Return type -[**V1alpha1ValidatingAdmissionPolicy**](V1alpha1ValidatingAdmissionPolicy.md) +[**V1alpha1MutatingAdmissionPolicyBinding**](V1alpha1MutatingAdmissionPolicyBinding.md) ### Authorization @@ -1487,7 +1256,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | diff --git a/kubernetes/docs/AdmissionregistrationV1beta1Api.md b/kubernetes/docs/AdmissionregistrationV1beta1Api.md index b49139a4de..602836e721 100644 --- a/kubernetes/docs/AdmissionregistrationV1beta1Api.md +++ b/kubernetes/docs/AdmissionregistrationV1beta1Api.md @@ -55,7 +55,7 @@ public class Example { AdmissionregistrationV1beta1Api apiInstance = new AdmissionregistrationV1beta1Api(defaultClient); V1beta1ValidatingAdmissionPolicy body = new V1beta1ValidatingAdmissionPolicy(); // V1beta1ValidatingAdmissionPolicy | - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). 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 fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. @@ -78,7 +78,7 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **body** | [**V1beta1ValidatingAdmissionPolicy**](V1beta1ValidatingAdmissionPolicy.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] @@ -94,7 +94,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -135,7 +135,7 @@ public class Example { AdmissionregistrationV1beta1Api apiInstance = new AdmissionregistrationV1beta1Api(defaultClient); V1beta1ValidatingAdmissionPolicyBinding body = new V1beta1ValidatingAdmissionPolicyBinding(); // V1beta1ValidatingAdmissionPolicyBinding | - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). 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 fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. @@ -158,7 +158,7 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **body** | [**V1beta1ValidatingAdmissionPolicyBinding**](V1beta1ValidatingAdmissionPolicyBinding.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] @@ -174,7 +174,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -186,7 +186,7 @@ Name | Type | Description | Notes # **deleteCollectionValidatingAdmissionPolicy** -> V1Status deleteCollectionValidatingAdmissionPolicy(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body) +> V1Status deleteCollectionValidatingAdmissionPolicy(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body) @@ -214,11 +214,12 @@ public class Example { //BearerToken.setApiKeyPrefix("Token"); AdmissionregistrationV1beta1Api apiInstance = new AdmissionregistrationV1beta1Api(defaultClient); - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). 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. 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. Integer gracePeriodSeconds = 56; // Integer | 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. + Boolean ignoreStoreReadErrorWithClusterBreakingPotential = true; // Boolean | if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. 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. @@ -229,7 +230,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. V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | try { - V1Status result = apiInstance.deleteCollectionValidatingAdmissionPolicy(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); + V1Status result = apiInstance.deleteCollectionValidatingAdmissionPolicy(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling AdmissionregistrationV1beta1Api#deleteCollectionValidatingAdmissionPolicy"); @@ -246,11 +247,12 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] **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] **gracePeriodSeconds** | **Integer**| 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. | [optional] + **ignoreStoreReadErrorWithClusterBreakingPotential** | **Boolean**| if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it | [optional] **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] **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] @@ -272,7 +274,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -282,7 +284,7 @@ Name | Type | Description | Notes # **deleteCollectionValidatingAdmissionPolicyBinding** -> V1Status deleteCollectionValidatingAdmissionPolicyBinding(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body) +> V1Status deleteCollectionValidatingAdmissionPolicyBinding(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body) @@ -310,11 +312,12 @@ public class Example { //BearerToken.setApiKeyPrefix("Token"); AdmissionregistrationV1beta1Api apiInstance = new AdmissionregistrationV1beta1Api(defaultClient); - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). 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. 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. Integer gracePeriodSeconds = 56; // Integer | 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. + Boolean ignoreStoreReadErrorWithClusterBreakingPotential = true; // Boolean | if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. 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. @@ -325,7 +328,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. V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | try { - V1Status result = apiInstance.deleteCollectionValidatingAdmissionPolicyBinding(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); + V1Status result = apiInstance.deleteCollectionValidatingAdmissionPolicyBinding(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling AdmissionregistrationV1beta1Api#deleteCollectionValidatingAdmissionPolicyBinding"); @@ -342,11 +345,12 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] **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] **gracePeriodSeconds** | **Integer**| 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. | [optional] + **ignoreStoreReadErrorWithClusterBreakingPotential** | **Boolean**| if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it | [optional] **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] **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] @@ -368,7 +372,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -378,7 +382,7 @@ Name | Type | Description | Notes # **deleteValidatingAdmissionPolicy** -> V1Status deleteValidatingAdmissionPolicy(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body) +> V1Status deleteValidatingAdmissionPolicy(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body) @@ -407,14 +411,15 @@ public class Example { AdmissionregistrationV1beta1Api apiInstance = new AdmissionregistrationV1beta1Api(defaultClient); String name = "name_example"; // String | name of the ValidatingAdmissionPolicy - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). 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 Integer gracePeriodSeconds = 56; // Integer | 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. + Boolean ignoreStoreReadErrorWithClusterBreakingPotential = true; // Boolean | if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it 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. 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. V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | try { - V1Status result = apiInstance.deleteValidatingAdmissionPolicy(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body); + V1Status result = apiInstance.deleteValidatingAdmissionPolicy(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling AdmissionregistrationV1beta1Api#deleteValidatingAdmissionPolicy"); @@ -432,9 +437,10 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **String**| name of the ValidatingAdmissionPolicy | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] **gracePeriodSeconds** | **Integer**| 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. | [optional] + **ignoreStoreReadErrorWithClusterBreakingPotential** | **Boolean**| if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it | [optional] **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. 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. | [optional] **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] @@ -450,7 +456,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -461,7 +467,7 @@ Name | Type | Description | Notes # **deleteValidatingAdmissionPolicyBinding** -> V1Status deleteValidatingAdmissionPolicyBinding(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body) +> V1Status deleteValidatingAdmissionPolicyBinding(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body) @@ -490,14 +496,15 @@ public class Example { AdmissionregistrationV1beta1Api apiInstance = new AdmissionregistrationV1beta1Api(defaultClient); String name = "name_example"; // String | name of the ValidatingAdmissionPolicyBinding - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). 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 Integer gracePeriodSeconds = 56; // Integer | 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. + Boolean ignoreStoreReadErrorWithClusterBreakingPotential = true; // Boolean | if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it 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. 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. V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | try { - V1Status result = apiInstance.deleteValidatingAdmissionPolicyBinding(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body); + V1Status result = apiInstance.deleteValidatingAdmissionPolicyBinding(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling AdmissionregistrationV1beta1Api#deleteValidatingAdmissionPolicyBinding"); @@ -515,9 +522,10 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **String**| name of the ValidatingAdmissionPolicyBinding | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] **gracePeriodSeconds** | **Integer**| 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. | [optional] + **ignoreStoreReadErrorWithClusterBreakingPotential** | **Boolean**| if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it | [optional] **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. 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. | [optional] **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] @@ -533,7 +541,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -600,7 +608,7 @@ This endpoint does not need any parameter. ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -638,7 +646,7 @@ public class Example { //BearerToken.setApiKeyPrefix("Token"); AdmissionregistrationV1beta1Api apiInstance = new AdmissionregistrationV1beta1Api(defaultClient); - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). 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. 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. String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. @@ -667,7 +675,7 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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. | [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] **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] @@ -690,7 +698,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch, application/cbor-seq ### HTTP response details | Status code | Description | Response headers | @@ -728,7 +736,7 @@ public class Example { //BearerToken.setApiKeyPrefix("Token"); AdmissionregistrationV1beta1Api apiInstance = new AdmissionregistrationV1beta1Api(defaultClient); - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). 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. 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. String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. @@ -757,7 +765,7 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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. | [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] **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] @@ -780,7 +788,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch, application/cbor-seq ### HTTP response details | Status code | Description | Response headers | @@ -820,7 +828,7 @@ public class Example { AdmissionregistrationV1beta1Api apiInstance = new AdmissionregistrationV1beta1Api(defaultClient); String name = "name_example"; // String | name of the ValidatingAdmissionPolicy V1Patch body = new V1Patch(); // V1Patch | - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). 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 fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. @@ -845,7 +853,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **String**| name of the ValidatingAdmissionPolicy | **body** | **V1Patch**| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] @@ -862,7 +870,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -903,7 +911,7 @@ public class Example { AdmissionregistrationV1beta1Api apiInstance = new AdmissionregistrationV1beta1Api(defaultClient); String name = "name_example"; // String | name of the ValidatingAdmissionPolicyBinding V1Patch body = new V1Patch(); // V1Patch | - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). 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 fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. @@ -928,7 +936,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **String**| name of the ValidatingAdmissionPolicyBinding | **body** | **V1Patch**| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] @@ -945,7 +953,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -986,7 +994,7 @@ public class Example { AdmissionregistrationV1beta1Api apiInstance = new AdmissionregistrationV1beta1Api(defaultClient); String name = "name_example"; // String | name of the ValidatingAdmissionPolicy V1Patch body = new V1Patch(); // V1Patch | - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). 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 fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. @@ -1011,7 +1019,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **String**| name of the ValidatingAdmissionPolicy | **body** | **V1Patch**| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] @@ -1028,7 +1036,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -1068,7 +1076,7 @@ public class Example { AdmissionregistrationV1beta1Api apiInstance = new AdmissionregistrationV1beta1Api(defaultClient); String name = "name_example"; // String | name of the ValidatingAdmissionPolicy - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). try { V1beta1ValidatingAdmissionPolicy result = apiInstance.readValidatingAdmissionPolicy(name, pretty); System.out.println(result); @@ -1088,7 +1096,7 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **String**| name of the ValidatingAdmissionPolicy | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] ### Return type @@ -1101,7 +1109,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -1140,7 +1148,7 @@ public class Example { AdmissionregistrationV1beta1Api apiInstance = new AdmissionregistrationV1beta1Api(defaultClient); String name = "name_example"; // String | name of the ValidatingAdmissionPolicyBinding - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). try { V1beta1ValidatingAdmissionPolicyBinding result = apiInstance.readValidatingAdmissionPolicyBinding(name, pretty); System.out.println(result); @@ -1160,7 +1168,7 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **String**| name of the ValidatingAdmissionPolicyBinding | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] ### Return type @@ -1173,7 +1181,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -1212,7 +1220,7 @@ public class Example { AdmissionregistrationV1beta1Api apiInstance = new AdmissionregistrationV1beta1Api(defaultClient); String name = "name_example"; // String | name of the ValidatingAdmissionPolicy - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). try { V1beta1ValidatingAdmissionPolicy result = apiInstance.readValidatingAdmissionPolicyStatus(name, pretty); System.out.println(result); @@ -1232,7 +1240,7 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **String**| name of the ValidatingAdmissionPolicy | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] ### Return type @@ -1245,7 +1253,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -1285,7 +1293,7 @@ public class Example { AdmissionregistrationV1beta1Api apiInstance = new AdmissionregistrationV1beta1Api(defaultClient); String name = "name_example"; // String | name of the ValidatingAdmissionPolicy V1beta1ValidatingAdmissionPolicy body = new V1beta1ValidatingAdmissionPolicy(); // V1beta1ValidatingAdmissionPolicy | - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). 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 fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. @@ -1309,7 +1317,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **String**| name of the ValidatingAdmissionPolicy | **body** | [**V1beta1ValidatingAdmissionPolicy**](V1beta1ValidatingAdmissionPolicy.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] @@ -1325,7 +1333,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -1366,7 +1374,7 @@ public class Example { AdmissionregistrationV1beta1Api apiInstance = new AdmissionregistrationV1beta1Api(defaultClient); String name = "name_example"; // String | name of the ValidatingAdmissionPolicyBinding V1beta1ValidatingAdmissionPolicyBinding body = new V1beta1ValidatingAdmissionPolicyBinding(); // V1beta1ValidatingAdmissionPolicyBinding | - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). 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 fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. @@ -1390,7 +1398,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **String**| name of the ValidatingAdmissionPolicyBinding | **body** | [**V1beta1ValidatingAdmissionPolicyBinding**](V1beta1ValidatingAdmissionPolicyBinding.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] @@ -1406,7 +1414,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -1447,7 +1455,7 @@ public class Example { AdmissionregistrationV1beta1Api apiInstance = new AdmissionregistrationV1beta1Api(defaultClient); String name = "name_example"; // String | name of the ValidatingAdmissionPolicy V1beta1ValidatingAdmissionPolicy body = new V1beta1ValidatingAdmissionPolicy(); // V1beta1ValidatingAdmissionPolicy | - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). 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 fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. @@ -1471,7 +1479,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **String**| name of the ValidatingAdmissionPolicy | **body** | [**V1beta1ValidatingAdmissionPolicy**](V1beta1ValidatingAdmissionPolicy.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] @@ -1487,7 +1495,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | diff --git a/kubernetes/docs/ApiextensionsV1Api.md b/kubernetes/docs/ApiextensionsV1Api.md index 71f6ee9306..aedf3b7b62 100644 --- a/kubernetes/docs/ApiextensionsV1Api.md +++ b/kubernetes/docs/ApiextensionsV1Api.md @@ -48,7 +48,7 @@ public class Example { ApiextensionsV1Api apiInstance = new ApiextensionsV1Api(defaultClient); V1CustomResourceDefinition body = new V1CustomResourceDefinition(); // V1CustomResourceDefinition | - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). 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 fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. @@ -71,7 +71,7 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **body** | [**V1CustomResourceDefinition**](V1CustomResourceDefinition.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] @@ -87,7 +87,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -99,7 +99,7 @@ Name | Type | Description | Notes # **deleteCollectionCustomResourceDefinition** -> V1Status deleteCollectionCustomResourceDefinition(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body) +> V1Status deleteCollectionCustomResourceDefinition(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body) @@ -127,11 +127,12 @@ public class Example { //BearerToken.setApiKeyPrefix("Token"); ApiextensionsV1Api apiInstance = new ApiextensionsV1Api(defaultClient); - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). 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. 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. Integer gracePeriodSeconds = 56; // Integer | 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. + Boolean ignoreStoreReadErrorWithClusterBreakingPotential = true; // Boolean | if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. 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. @@ -142,7 +143,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. V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | try { - V1Status result = apiInstance.deleteCollectionCustomResourceDefinition(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); + V1Status result = apiInstance.deleteCollectionCustomResourceDefinition(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling ApiextensionsV1Api#deleteCollectionCustomResourceDefinition"); @@ -159,11 +160,12 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] **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] **gracePeriodSeconds** | **Integer**| 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. | [optional] + **ignoreStoreReadErrorWithClusterBreakingPotential** | **Boolean**| if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it | [optional] **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] **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] @@ -185,7 +187,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -195,7 +197,7 @@ Name | Type | Description | Notes # **deleteCustomResourceDefinition** -> V1Status deleteCustomResourceDefinition(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body) +> V1Status deleteCustomResourceDefinition(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body) @@ -224,14 +226,15 @@ public class Example { ApiextensionsV1Api apiInstance = new ApiextensionsV1Api(defaultClient); String name = "name_example"; // String | name of the CustomResourceDefinition - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). 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 Integer gracePeriodSeconds = 56; // Integer | 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. + Boolean ignoreStoreReadErrorWithClusterBreakingPotential = true; // Boolean | if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it 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. 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. V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | try { - V1Status result = apiInstance.deleteCustomResourceDefinition(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body); + V1Status result = apiInstance.deleteCustomResourceDefinition(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling ApiextensionsV1Api#deleteCustomResourceDefinition"); @@ -249,9 +252,10 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **String**| name of the CustomResourceDefinition | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] **gracePeriodSeconds** | **Integer**| 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. | [optional] + **ignoreStoreReadErrorWithClusterBreakingPotential** | **Boolean**| if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it | [optional] **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. 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. | [optional] **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] @@ -267,7 +271,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -334,7 +338,7 @@ This endpoint does not need any parameter. ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -372,7 +376,7 @@ public class Example { //BearerToken.setApiKeyPrefix("Token"); ApiextensionsV1Api apiInstance = new ApiextensionsV1Api(defaultClient); - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). 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. 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. String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. @@ -401,7 +405,7 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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. | [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] **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] @@ -424,7 +428,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch, application/cbor-seq ### HTTP response details | Status code | Description | Response headers | @@ -464,7 +468,7 @@ public class Example { ApiextensionsV1Api apiInstance = new ApiextensionsV1Api(defaultClient); String name = "name_example"; // String | name of the CustomResourceDefinition V1Patch body = new V1Patch(); // V1Patch | - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). 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 fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. @@ -489,7 +493,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **String**| name of the CustomResourceDefinition | **body** | **V1Patch**| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] @@ -506,7 +510,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -547,7 +551,7 @@ public class Example { ApiextensionsV1Api apiInstance = new ApiextensionsV1Api(defaultClient); String name = "name_example"; // String | name of the CustomResourceDefinition V1Patch body = new V1Patch(); // V1Patch | - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). 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 fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. @@ -572,7 +576,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **String**| name of the CustomResourceDefinition | **body** | **V1Patch**| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] @@ -589,7 +593,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -629,7 +633,7 @@ public class Example { ApiextensionsV1Api apiInstance = new ApiextensionsV1Api(defaultClient); String name = "name_example"; // String | name of the CustomResourceDefinition - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). try { V1CustomResourceDefinition result = apiInstance.readCustomResourceDefinition(name, pretty); System.out.println(result); @@ -649,7 +653,7 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **String**| name of the CustomResourceDefinition | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] ### Return type @@ -662,7 +666,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -701,7 +705,7 @@ public class Example { ApiextensionsV1Api apiInstance = new ApiextensionsV1Api(defaultClient); String name = "name_example"; // String | name of the CustomResourceDefinition - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). try { V1CustomResourceDefinition result = apiInstance.readCustomResourceDefinitionStatus(name, pretty); System.out.println(result); @@ -721,7 +725,7 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **String**| name of the CustomResourceDefinition | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] ### Return type @@ -734,7 +738,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -774,7 +778,7 @@ public class Example { ApiextensionsV1Api apiInstance = new ApiextensionsV1Api(defaultClient); String name = "name_example"; // String | name of the CustomResourceDefinition V1CustomResourceDefinition body = new V1CustomResourceDefinition(); // V1CustomResourceDefinition | - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). 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 fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. @@ -798,7 +802,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **String**| name of the CustomResourceDefinition | **body** | [**V1CustomResourceDefinition**](V1CustomResourceDefinition.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] @@ -814,7 +818,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -855,7 +859,7 @@ public class Example { ApiextensionsV1Api apiInstance = new ApiextensionsV1Api(defaultClient); String name = "name_example"; // String | name of the CustomResourceDefinition V1CustomResourceDefinition body = new V1CustomResourceDefinition(); // V1CustomResourceDefinition | - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). 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 fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. @@ -879,7 +883,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **String**| name of the CustomResourceDefinition | **body** | [**V1CustomResourceDefinition**](V1CustomResourceDefinition.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] @@ -895,7 +899,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | diff --git a/kubernetes/docs/ApiregistrationV1Api.md b/kubernetes/docs/ApiregistrationV1Api.md index 204235cc58..a566e607bc 100644 --- a/kubernetes/docs/ApiregistrationV1Api.md +++ b/kubernetes/docs/ApiregistrationV1Api.md @@ -48,7 +48,7 @@ public class Example { ApiregistrationV1Api apiInstance = new ApiregistrationV1Api(defaultClient); V1APIService body = new V1APIService(); // V1APIService | - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). 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 fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. @@ -71,7 +71,7 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **body** | [**V1APIService**](V1APIService.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] @@ -87,7 +87,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -99,7 +99,7 @@ Name | Type | Description | Notes # **deleteAPIService** -> V1Status deleteAPIService(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body) +> V1Status deleteAPIService(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body) @@ -128,14 +128,15 @@ public class Example { ApiregistrationV1Api apiInstance = new ApiregistrationV1Api(defaultClient); String name = "name_example"; // String | name of the APIService - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). 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 Integer gracePeriodSeconds = 56; // Integer | 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. + Boolean ignoreStoreReadErrorWithClusterBreakingPotential = true; // Boolean | if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it 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. 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. V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | try { - V1Status result = apiInstance.deleteAPIService(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body); + V1Status result = apiInstance.deleteAPIService(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling ApiregistrationV1Api#deleteAPIService"); @@ -153,9 +154,10 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **String**| name of the APIService | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] **gracePeriodSeconds** | **Integer**| 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. | [optional] + **ignoreStoreReadErrorWithClusterBreakingPotential** | **Boolean**| if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it | [optional] **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. 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. | [optional] **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] @@ -171,7 +173,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -182,7 +184,7 @@ Name | Type | Description | Notes # **deleteCollectionAPIService** -> V1Status deleteCollectionAPIService(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body) +> V1Status deleteCollectionAPIService(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body) @@ -210,11 +212,12 @@ public class Example { //BearerToken.setApiKeyPrefix("Token"); ApiregistrationV1Api apiInstance = new ApiregistrationV1Api(defaultClient); - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). 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. 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. Integer gracePeriodSeconds = 56; // Integer | 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. + Boolean ignoreStoreReadErrorWithClusterBreakingPotential = true; // Boolean | if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. 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. @@ -225,7 +228,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. V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | try { - V1Status result = apiInstance.deleteCollectionAPIService(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); + V1Status result = apiInstance.deleteCollectionAPIService(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling ApiregistrationV1Api#deleteCollectionAPIService"); @@ -242,11 +245,12 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] **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] **gracePeriodSeconds** | **Integer**| 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. | [optional] + **ignoreStoreReadErrorWithClusterBreakingPotential** | **Boolean**| if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it | [optional] **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] **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] @@ -268,7 +272,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -334,7 +338,7 @@ This endpoint does not need any parameter. ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -372,7 +376,7 @@ public class Example { //BearerToken.setApiKeyPrefix("Token"); ApiregistrationV1Api apiInstance = new ApiregistrationV1Api(defaultClient); - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). 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. 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. String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. @@ -401,7 +405,7 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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. | [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] **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] @@ -424,7 +428,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch, application/cbor-seq ### HTTP response details | Status code | Description | Response headers | @@ -464,7 +468,7 @@ public class Example { ApiregistrationV1Api apiInstance = new ApiregistrationV1Api(defaultClient); String name = "name_example"; // String | name of the APIService V1Patch body = new V1Patch(); // V1Patch | - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). 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 fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. @@ -489,7 +493,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **String**| name of the APIService | **body** | **V1Patch**| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] @@ -506,7 +510,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -547,7 +551,7 @@ public class Example { ApiregistrationV1Api apiInstance = new ApiregistrationV1Api(defaultClient); String name = "name_example"; // String | name of the APIService V1Patch body = new V1Patch(); // V1Patch | - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). 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 fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. @@ -572,7 +576,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **String**| name of the APIService | **body** | **V1Patch**| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] @@ -589,7 +593,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -629,7 +633,7 @@ public class Example { ApiregistrationV1Api apiInstance = new ApiregistrationV1Api(defaultClient); String name = "name_example"; // String | name of the APIService - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). try { V1APIService result = apiInstance.readAPIService(name, pretty); System.out.println(result); @@ -649,7 +653,7 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **String**| name of the APIService | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] ### Return type @@ -662,7 +666,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -701,7 +705,7 @@ public class Example { ApiregistrationV1Api apiInstance = new ApiregistrationV1Api(defaultClient); String name = "name_example"; // String | name of the APIService - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). try { V1APIService result = apiInstance.readAPIServiceStatus(name, pretty); System.out.println(result); @@ -721,7 +725,7 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **String**| name of the APIService | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] ### Return type @@ -734,7 +738,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -774,7 +778,7 @@ public class Example { ApiregistrationV1Api apiInstance = new ApiregistrationV1Api(defaultClient); String name = "name_example"; // String | name of the APIService V1APIService body = new V1APIService(); // V1APIService | - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). 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 fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. @@ -798,7 +802,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **String**| name of the APIService | **body** | [**V1APIService**](V1APIService.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] @@ -814,7 +818,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -855,7 +859,7 @@ public class Example { ApiregistrationV1Api apiInstance = new ApiregistrationV1Api(defaultClient); String name = "name_example"; // String | name of the APIService V1APIService body = new V1APIService(); // V1APIService | - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). 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 fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. @@ -879,7 +883,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **String**| name of the APIService | **body** | [**V1APIService**](V1APIService.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] @@ -895,7 +899,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | diff --git a/kubernetes/docs/AppsV1Api.md b/kubernetes/docs/AppsV1Api.md index bddce42189..f27460403d 100644 --- a/kubernetes/docs/AppsV1Api.md +++ b/kubernetes/docs/AppsV1Api.md @@ -100,7 +100,7 @@ public class Example { AppsV1Api apiInstance = new AppsV1Api(defaultClient); String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects V1ControllerRevision body = new V1ControllerRevision(); // V1ControllerRevision | - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). 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 fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. @@ -124,7 +124,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **namespace** | **String**| object name and auth scope, such as for teams and projects | **body** | [**V1ControllerRevision**](V1ControllerRevision.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] @@ -140,7 +140,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -182,7 +182,7 @@ public class Example { AppsV1Api apiInstance = new AppsV1Api(defaultClient); String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects V1DaemonSet body = new V1DaemonSet(); // V1DaemonSet | - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). 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 fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. @@ -206,7 +206,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **namespace** | **String**| object name and auth scope, such as for teams and projects | **body** | [**V1DaemonSet**](V1DaemonSet.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] @@ -222,7 +222,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -264,7 +264,7 @@ public class Example { AppsV1Api apiInstance = new AppsV1Api(defaultClient); String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects V1Deployment body = new V1Deployment(); // V1Deployment | - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). 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 fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. @@ -288,7 +288,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **namespace** | **String**| object name and auth scope, such as for teams and projects | **body** | [**V1Deployment**](V1Deployment.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] @@ -304,7 +304,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -346,7 +346,7 @@ public class Example { AppsV1Api apiInstance = new AppsV1Api(defaultClient); String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects V1ReplicaSet body = new V1ReplicaSet(); // V1ReplicaSet | - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). 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 fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. @@ -370,7 +370,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **namespace** | **String**| object name and auth scope, such as for teams and projects | **body** | [**V1ReplicaSet**](V1ReplicaSet.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] @@ -386,7 +386,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -428,7 +428,7 @@ public class Example { AppsV1Api apiInstance = new AppsV1Api(defaultClient); String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects V1StatefulSet body = new V1StatefulSet(); // V1StatefulSet | - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). 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 fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. @@ -452,7 +452,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **namespace** | **String**| object name and auth scope, such as for teams and projects | **body** | [**V1StatefulSet**](V1StatefulSet.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] @@ -468,7 +468,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -480,7 +480,7 @@ Name | Type | Description | Notes # **deleteCollectionNamespacedControllerRevision** -> V1Status deleteCollectionNamespacedControllerRevision(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body) +> V1Status deleteCollectionNamespacedControllerRevision(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body) @@ -509,11 +509,12 @@ public class Example { AppsV1Api apiInstance = new AppsV1Api(defaultClient); String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). 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. 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. Integer gracePeriodSeconds = 56; // Integer | 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. + Boolean ignoreStoreReadErrorWithClusterBreakingPotential = true; // Boolean | if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. 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. @@ -524,7 +525,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. V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | try { - V1Status result = apiInstance.deleteCollectionNamespacedControllerRevision(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); + V1Status result = apiInstance.deleteCollectionNamespacedControllerRevision(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling AppsV1Api#deleteCollectionNamespacedControllerRevision"); @@ -542,11 +543,12 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **namespace** | **String**| object name and auth scope, such as for teams and projects | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] **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] **gracePeriodSeconds** | **Integer**| 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. | [optional] + **ignoreStoreReadErrorWithClusterBreakingPotential** | **Boolean**| if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it | [optional] **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] **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] @@ -568,7 +570,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -578,7 +580,7 @@ Name | Type | Description | Notes # **deleteCollectionNamespacedDaemonSet** -> V1Status deleteCollectionNamespacedDaemonSet(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body) +> V1Status deleteCollectionNamespacedDaemonSet(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body) @@ -607,11 +609,12 @@ public class Example { AppsV1Api apiInstance = new AppsV1Api(defaultClient); String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). 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. 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. Integer gracePeriodSeconds = 56; // Integer | 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. + Boolean ignoreStoreReadErrorWithClusterBreakingPotential = true; // Boolean | if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. 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. @@ -622,7 +625,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. V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | try { - V1Status result = apiInstance.deleteCollectionNamespacedDaemonSet(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); + V1Status result = apiInstance.deleteCollectionNamespacedDaemonSet(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling AppsV1Api#deleteCollectionNamespacedDaemonSet"); @@ -640,11 +643,12 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **namespace** | **String**| object name and auth scope, such as for teams and projects | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] **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] **gracePeriodSeconds** | **Integer**| 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. | [optional] + **ignoreStoreReadErrorWithClusterBreakingPotential** | **Boolean**| if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it | [optional] **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] **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] @@ -666,7 +670,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -676,7 +680,7 @@ Name | Type | Description | Notes # **deleteCollectionNamespacedDeployment** -> V1Status deleteCollectionNamespacedDeployment(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body) +> V1Status deleteCollectionNamespacedDeployment(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body) @@ -705,11 +709,12 @@ public class Example { AppsV1Api apiInstance = new AppsV1Api(defaultClient); String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). 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. 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. Integer gracePeriodSeconds = 56; // Integer | 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. + Boolean ignoreStoreReadErrorWithClusterBreakingPotential = true; // Boolean | if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. 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. @@ -720,7 +725,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. V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | try { - V1Status result = apiInstance.deleteCollectionNamespacedDeployment(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); + V1Status result = apiInstance.deleteCollectionNamespacedDeployment(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling AppsV1Api#deleteCollectionNamespacedDeployment"); @@ -738,11 +743,12 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **namespace** | **String**| object name and auth scope, such as for teams and projects | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] **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] **gracePeriodSeconds** | **Integer**| 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. | [optional] + **ignoreStoreReadErrorWithClusterBreakingPotential** | **Boolean**| if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it | [optional] **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] **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] @@ -764,7 +770,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -774,7 +780,7 @@ Name | Type | Description | Notes # **deleteCollectionNamespacedReplicaSet** -> V1Status deleteCollectionNamespacedReplicaSet(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body) +> V1Status deleteCollectionNamespacedReplicaSet(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body) @@ -803,11 +809,12 @@ public class Example { AppsV1Api apiInstance = new AppsV1Api(defaultClient); String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). 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. 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. Integer gracePeriodSeconds = 56; // Integer | 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. + Boolean ignoreStoreReadErrorWithClusterBreakingPotential = true; // Boolean | if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. 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. @@ -818,7 +825,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. V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | try { - V1Status result = apiInstance.deleteCollectionNamespacedReplicaSet(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); + V1Status result = apiInstance.deleteCollectionNamespacedReplicaSet(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling AppsV1Api#deleteCollectionNamespacedReplicaSet"); @@ -836,11 +843,12 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **namespace** | **String**| object name and auth scope, such as for teams and projects | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] **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] **gracePeriodSeconds** | **Integer**| 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. | [optional] + **ignoreStoreReadErrorWithClusterBreakingPotential** | **Boolean**| if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it | [optional] **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] **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] @@ -862,7 +870,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -872,7 +880,7 @@ Name | Type | Description | Notes # **deleteCollectionNamespacedStatefulSet** -> V1Status deleteCollectionNamespacedStatefulSet(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body) +> V1Status deleteCollectionNamespacedStatefulSet(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body) @@ -901,11 +909,12 @@ public class Example { AppsV1Api apiInstance = new AppsV1Api(defaultClient); String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). 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. 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. Integer gracePeriodSeconds = 56; // Integer | 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. + Boolean ignoreStoreReadErrorWithClusterBreakingPotential = true; // Boolean | if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. 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. @@ -916,7 +925,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. V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | try { - V1Status result = apiInstance.deleteCollectionNamespacedStatefulSet(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); + V1Status result = apiInstance.deleteCollectionNamespacedStatefulSet(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling AppsV1Api#deleteCollectionNamespacedStatefulSet"); @@ -934,11 +943,12 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **namespace** | **String**| object name and auth scope, such as for teams and projects | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] **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] **gracePeriodSeconds** | **Integer**| 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. | [optional] + **ignoreStoreReadErrorWithClusterBreakingPotential** | **Boolean**| if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it | [optional] **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] **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] @@ -960,7 +970,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -970,7 +980,7 @@ Name | Type | Description | Notes # **deleteNamespacedControllerRevision** -> V1Status deleteNamespacedControllerRevision(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body) +> V1Status deleteNamespacedControllerRevision(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body) @@ -1000,14 +1010,15 @@ public class Example { AppsV1Api apiInstance = new AppsV1Api(defaultClient); String name = "name_example"; // String | name of the ControllerRevision String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). 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 Integer gracePeriodSeconds = 56; // Integer | 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. + Boolean ignoreStoreReadErrorWithClusterBreakingPotential = true; // Boolean | if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it 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. 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. V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | try { - V1Status result = apiInstance.deleteNamespacedControllerRevision(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body); + V1Status result = apiInstance.deleteNamespacedControllerRevision(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling AppsV1Api#deleteNamespacedControllerRevision"); @@ -1026,9 +1037,10 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **String**| name of the ControllerRevision | **namespace** | **String**| object name and auth scope, such as for teams and projects | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] **gracePeriodSeconds** | **Integer**| 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. | [optional] + **ignoreStoreReadErrorWithClusterBreakingPotential** | **Boolean**| if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it | [optional] **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. 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. | [optional] **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] @@ -1044,7 +1056,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -1055,7 +1067,7 @@ Name | Type | Description | Notes # **deleteNamespacedDaemonSet** -> V1Status deleteNamespacedDaemonSet(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body) +> V1Status deleteNamespacedDaemonSet(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body) @@ -1085,14 +1097,15 @@ public class Example { AppsV1Api apiInstance = new AppsV1Api(defaultClient); String name = "name_example"; // String | name of the DaemonSet String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). 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 Integer gracePeriodSeconds = 56; // Integer | 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. + Boolean ignoreStoreReadErrorWithClusterBreakingPotential = true; // Boolean | if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it 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. 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. V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | try { - V1Status result = apiInstance.deleteNamespacedDaemonSet(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body); + V1Status result = apiInstance.deleteNamespacedDaemonSet(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling AppsV1Api#deleteNamespacedDaemonSet"); @@ -1111,9 +1124,10 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **String**| name of the DaemonSet | **namespace** | **String**| object name and auth scope, such as for teams and projects | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] **gracePeriodSeconds** | **Integer**| 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. | [optional] + **ignoreStoreReadErrorWithClusterBreakingPotential** | **Boolean**| if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it | [optional] **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. 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. | [optional] **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] @@ -1129,7 +1143,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -1140,7 +1154,7 @@ Name | Type | Description | Notes # **deleteNamespacedDeployment** -> V1Status deleteNamespacedDeployment(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body) +> V1Status deleteNamespacedDeployment(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body) @@ -1170,14 +1184,15 @@ public class Example { AppsV1Api apiInstance = new AppsV1Api(defaultClient); String name = "name_example"; // String | name of the Deployment String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). 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 Integer gracePeriodSeconds = 56; // Integer | 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. + Boolean ignoreStoreReadErrorWithClusterBreakingPotential = true; // Boolean | if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it 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. 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. V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | try { - V1Status result = apiInstance.deleteNamespacedDeployment(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body); + V1Status result = apiInstance.deleteNamespacedDeployment(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling AppsV1Api#deleteNamespacedDeployment"); @@ -1196,9 +1211,10 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **String**| name of the Deployment | **namespace** | **String**| object name and auth scope, such as for teams and projects | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] **gracePeriodSeconds** | **Integer**| 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. | [optional] + **ignoreStoreReadErrorWithClusterBreakingPotential** | **Boolean**| if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it | [optional] **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. 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. | [optional] **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] @@ -1214,7 +1230,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -1225,7 +1241,7 @@ Name | Type | Description | Notes # **deleteNamespacedReplicaSet** -> V1Status deleteNamespacedReplicaSet(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body) +> V1Status deleteNamespacedReplicaSet(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body) @@ -1255,14 +1271,15 @@ public class Example { AppsV1Api apiInstance = new AppsV1Api(defaultClient); String name = "name_example"; // String | name of the ReplicaSet String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). 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 Integer gracePeriodSeconds = 56; // Integer | 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. + Boolean ignoreStoreReadErrorWithClusterBreakingPotential = true; // Boolean | if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it 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. 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. V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | try { - V1Status result = apiInstance.deleteNamespacedReplicaSet(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body); + V1Status result = apiInstance.deleteNamespacedReplicaSet(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling AppsV1Api#deleteNamespacedReplicaSet"); @@ -1281,9 +1298,10 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **String**| name of the ReplicaSet | **namespace** | **String**| object name and auth scope, such as for teams and projects | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] **gracePeriodSeconds** | **Integer**| 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. | [optional] + **ignoreStoreReadErrorWithClusterBreakingPotential** | **Boolean**| if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it | [optional] **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. 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. | [optional] **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] @@ -1299,7 +1317,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -1310,7 +1328,7 @@ Name | Type | Description | Notes # **deleteNamespacedStatefulSet** -> V1Status deleteNamespacedStatefulSet(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body) +> V1Status deleteNamespacedStatefulSet(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body) @@ -1340,14 +1358,15 @@ public class Example { AppsV1Api apiInstance = new AppsV1Api(defaultClient); String name = "name_example"; // String | name of the StatefulSet String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). 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 Integer gracePeriodSeconds = 56; // Integer | 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. + Boolean ignoreStoreReadErrorWithClusterBreakingPotential = true; // Boolean | if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it 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. 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. V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | try { - V1Status result = apiInstance.deleteNamespacedStatefulSet(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body); + V1Status result = apiInstance.deleteNamespacedStatefulSet(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling AppsV1Api#deleteNamespacedStatefulSet"); @@ -1366,9 +1385,10 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **String**| name of the StatefulSet | **namespace** | **String**| object name and auth scope, such as for teams and projects | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] **gracePeriodSeconds** | **Integer**| 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. | [optional] + **ignoreStoreReadErrorWithClusterBreakingPotential** | **Boolean**| if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it | [optional] **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. 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. | [optional] **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] @@ -1384,7 +1404,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -1451,7 +1471,7 @@ This endpoint does not need any parameter. ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -1494,7 +1514,7 @@ public class Example { String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). String resourceVersion = "resourceVersion_example"; // String | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset String resourceVersionMatch = "resourceVersionMatch_example"; // String | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset Boolean sendInitialEvents = true; // Boolean | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. @@ -1523,7 +1543,7 @@ Name | Type | Description | Notes **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] @@ -1541,7 +1561,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch, application/cbor-seq ### HTTP response details | Status code | Description | Response headers | @@ -1584,7 +1604,7 @@ public class Example { String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). String resourceVersion = "resourceVersion_example"; // String | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset String resourceVersionMatch = "resourceVersionMatch_example"; // String | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset Boolean sendInitialEvents = true; // Boolean | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. @@ -1613,7 +1633,7 @@ Name | Type | Description | Notes **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] @@ -1631,7 +1651,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch, application/cbor-seq ### HTTP response details | Status code | Description | Response headers | @@ -1674,7 +1694,7 @@ public class Example { String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). String resourceVersion = "resourceVersion_example"; // String | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset String resourceVersionMatch = "resourceVersionMatch_example"; // String | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset Boolean sendInitialEvents = true; // Boolean | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. @@ -1703,7 +1723,7 @@ Name | Type | Description | Notes **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] @@ -1721,7 +1741,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch, application/cbor-seq ### HTTP response details | Status code | Description | Response headers | @@ -1760,7 +1780,7 @@ public class Example { AppsV1Api apiInstance = new AppsV1Api(defaultClient); String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). 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. 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. String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. @@ -1790,7 +1810,7 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **namespace** | **String**| object name and auth scope, such as for teams and projects | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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. | [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] **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] @@ -1813,7 +1833,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch, application/cbor-seq ### HTTP response details | Status code | Description | Response headers | @@ -1852,7 +1872,7 @@ public class Example { AppsV1Api apiInstance = new AppsV1Api(defaultClient); String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). 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. 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. String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. @@ -1882,7 +1902,7 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **namespace** | **String**| object name and auth scope, such as for teams and projects | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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. | [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] **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] @@ -1905,7 +1925,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch, application/cbor-seq ### HTTP response details | Status code | Description | Response headers | @@ -1944,7 +1964,7 @@ public class Example { AppsV1Api apiInstance = new AppsV1Api(defaultClient); String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). 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. 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. String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. @@ -1974,7 +1994,7 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **namespace** | **String**| object name and auth scope, such as for teams and projects | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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. | [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] **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] @@ -1997,7 +2017,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch, application/cbor-seq ### HTTP response details | Status code | Description | Response headers | @@ -2036,7 +2056,7 @@ public class Example { AppsV1Api apiInstance = new AppsV1Api(defaultClient); String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). 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. 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. String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. @@ -2066,7 +2086,7 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **namespace** | **String**| object name and auth scope, such as for teams and projects | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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. | [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] **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] @@ -2089,7 +2109,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch, application/cbor-seq ### HTTP response details | Status code | Description | Response headers | @@ -2128,7 +2148,7 @@ public class Example { AppsV1Api apiInstance = new AppsV1Api(defaultClient); String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). 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. 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. String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. @@ -2158,7 +2178,7 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **namespace** | **String**| object name and auth scope, such as for teams and projects | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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. | [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] **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] @@ -2181,7 +2201,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch, application/cbor-seq ### HTTP response details | Status code | Description | Response headers | @@ -2224,7 +2244,7 @@ public class Example { String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). String resourceVersion = "resourceVersion_example"; // String | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset String resourceVersionMatch = "resourceVersionMatch_example"; // String | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset Boolean sendInitialEvents = true; // Boolean | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. @@ -2253,7 +2273,7 @@ Name | Type | Description | Notes **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] @@ -2271,7 +2291,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch, application/cbor-seq ### HTTP response details | Status code | Description | Response headers | @@ -2314,7 +2334,7 @@ public class Example { String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). String resourceVersion = "resourceVersion_example"; // String | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset String resourceVersionMatch = "resourceVersionMatch_example"; // String | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset Boolean sendInitialEvents = true; // Boolean | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. @@ -2343,7 +2363,7 @@ Name | Type | Description | Notes **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] @@ -2361,7 +2381,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch, application/cbor-seq ### HTTP response details | Status code | Description | Response headers | @@ -2402,7 +2422,7 @@ public class Example { String name = "name_example"; // String | name of the ControllerRevision String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects V1Patch body = new V1Patch(); // V1Patch | - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). 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 fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. @@ -2428,7 +2448,7 @@ Name | Type | Description | Notes **name** | **String**| name of the ControllerRevision | **namespace** | **String**| object name and auth scope, such as for teams and projects | **body** | **V1Patch**| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] @@ -2445,7 +2465,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -2487,7 +2507,7 @@ public class Example { String name = "name_example"; // String | name of the DaemonSet String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects V1Patch body = new V1Patch(); // V1Patch | - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). 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 fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. @@ -2513,7 +2533,7 @@ Name | Type | Description | Notes **name** | **String**| name of the DaemonSet | **namespace** | **String**| object name and auth scope, such as for teams and projects | **body** | **V1Patch**| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] @@ -2530,7 +2550,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -2572,7 +2592,7 @@ public class Example { String name = "name_example"; // String | name of the DaemonSet String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects V1Patch body = new V1Patch(); // V1Patch | - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). 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 fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. @@ -2598,7 +2618,7 @@ Name | Type | Description | Notes **name** | **String**| name of the DaemonSet | **namespace** | **String**| object name and auth scope, such as for teams and projects | **body** | **V1Patch**| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] @@ -2615,7 +2635,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -2657,7 +2677,7 @@ public class Example { String name = "name_example"; // String | name of the Deployment String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects V1Patch body = new V1Patch(); // V1Patch | - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). 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 fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. @@ -2683,7 +2703,7 @@ Name | Type | Description | Notes **name** | **String**| name of the Deployment | **namespace** | **String**| object name and auth scope, such as for teams and projects | **body** | **V1Patch**| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] @@ -2700,7 +2720,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -2742,7 +2762,7 @@ public class Example { String name = "name_example"; // String | name of the Scale String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects V1Patch body = new V1Patch(); // V1Patch | - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). 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 fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. @@ -2768,7 +2788,7 @@ Name | Type | Description | Notes **name** | **String**| name of the Scale | **namespace** | **String**| object name and auth scope, such as for teams and projects | **body** | **V1Patch**| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] @@ -2785,7 +2805,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -2827,7 +2847,7 @@ public class Example { String name = "name_example"; // String | name of the Deployment String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects V1Patch body = new V1Patch(); // V1Patch | - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). 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 fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. @@ -2853,7 +2873,7 @@ Name | Type | Description | Notes **name** | **String**| name of the Deployment | **namespace** | **String**| object name and auth scope, such as for teams and projects | **body** | **V1Patch**| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] @@ -2870,7 +2890,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -2912,7 +2932,7 @@ public class Example { String name = "name_example"; // String | name of the ReplicaSet String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects V1Patch body = new V1Patch(); // V1Patch | - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). 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 fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. @@ -2938,7 +2958,7 @@ Name | Type | Description | Notes **name** | **String**| name of the ReplicaSet | **namespace** | **String**| object name and auth scope, such as for teams and projects | **body** | **V1Patch**| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] @@ -2955,7 +2975,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -2997,7 +3017,7 @@ public class Example { String name = "name_example"; // String | name of the Scale String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects V1Patch body = new V1Patch(); // V1Patch | - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). 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 fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. @@ -3023,7 +3043,7 @@ Name | Type | Description | Notes **name** | **String**| name of the Scale | **namespace** | **String**| object name and auth scope, such as for teams and projects | **body** | **V1Patch**| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] @@ -3040,7 +3060,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -3082,7 +3102,7 @@ public class Example { String name = "name_example"; // String | name of the ReplicaSet String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects V1Patch body = new V1Patch(); // V1Patch | - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). 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 fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. @@ -3108,7 +3128,7 @@ Name | Type | Description | Notes **name** | **String**| name of the ReplicaSet | **namespace** | **String**| object name and auth scope, such as for teams and projects | **body** | **V1Patch**| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] @@ -3125,7 +3145,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -3167,7 +3187,7 @@ public class Example { String name = "name_example"; // String | name of the StatefulSet String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects V1Patch body = new V1Patch(); // V1Patch | - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). 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 fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. @@ -3193,7 +3213,7 @@ Name | Type | Description | Notes **name** | **String**| name of the StatefulSet | **namespace** | **String**| object name and auth scope, such as for teams and projects | **body** | **V1Patch**| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] @@ -3210,7 +3230,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -3252,7 +3272,7 @@ public class Example { String name = "name_example"; // String | name of the Scale String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects V1Patch body = new V1Patch(); // V1Patch | - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). 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 fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. @@ -3278,7 +3298,7 @@ Name | Type | Description | Notes **name** | **String**| name of the Scale | **namespace** | **String**| object name and auth scope, such as for teams and projects | **body** | **V1Patch**| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] @@ -3295,7 +3315,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -3337,7 +3357,7 @@ public class Example { String name = "name_example"; // String | name of the StatefulSet String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects V1Patch body = new V1Patch(); // V1Patch | - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). 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 fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. @@ -3363,7 +3383,7 @@ Name | Type | Description | Notes **name** | **String**| name of the StatefulSet | **namespace** | **String**| object name and auth scope, such as for teams and projects | **body** | **V1Patch**| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] @@ -3380,7 +3400,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -3421,7 +3441,7 @@ public class Example { AppsV1Api apiInstance = new AppsV1Api(defaultClient); String name = "name_example"; // String | name of the ControllerRevision String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). try { V1ControllerRevision result = apiInstance.readNamespacedControllerRevision(name, namespace, pretty); System.out.println(result); @@ -3442,7 +3462,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **String**| name of the ControllerRevision | **namespace** | **String**| object name and auth scope, such as for teams and projects | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] ### Return type @@ -3455,7 +3475,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -3495,7 +3515,7 @@ public class Example { AppsV1Api apiInstance = new AppsV1Api(defaultClient); String name = "name_example"; // String | name of the DaemonSet String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). try { V1DaemonSet result = apiInstance.readNamespacedDaemonSet(name, namespace, pretty); System.out.println(result); @@ -3516,7 +3536,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **String**| name of the DaemonSet | **namespace** | **String**| object name and auth scope, such as for teams and projects | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] ### Return type @@ -3529,7 +3549,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -3569,7 +3589,7 @@ public class Example { AppsV1Api apiInstance = new AppsV1Api(defaultClient); String name = "name_example"; // String | name of the DaemonSet String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). try { V1DaemonSet result = apiInstance.readNamespacedDaemonSetStatus(name, namespace, pretty); System.out.println(result); @@ -3590,7 +3610,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **String**| name of the DaemonSet | **namespace** | **String**| object name and auth scope, such as for teams and projects | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] ### Return type @@ -3603,7 +3623,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -3643,7 +3663,7 @@ public class Example { AppsV1Api apiInstance = new AppsV1Api(defaultClient); String name = "name_example"; // String | name of the Deployment String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). try { V1Deployment result = apiInstance.readNamespacedDeployment(name, namespace, pretty); System.out.println(result); @@ -3664,7 +3684,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **String**| name of the Deployment | **namespace** | **String**| object name and auth scope, such as for teams and projects | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] ### Return type @@ -3677,7 +3697,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -3717,7 +3737,7 @@ public class Example { AppsV1Api apiInstance = new AppsV1Api(defaultClient); String name = "name_example"; // String | name of the Scale String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). try { V1Scale result = apiInstance.readNamespacedDeploymentScale(name, namespace, pretty); System.out.println(result); @@ -3738,7 +3758,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **String**| name of the Scale | **namespace** | **String**| object name and auth scope, such as for teams and projects | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] ### Return type @@ -3751,7 +3771,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -3791,7 +3811,7 @@ public class Example { AppsV1Api apiInstance = new AppsV1Api(defaultClient); String name = "name_example"; // String | name of the Deployment String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). try { V1Deployment result = apiInstance.readNamespacedDeploymentStatus(name, namespace, pretty); System.out.println(result); @@ -3812,7 +3832,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **String**| name of the Deployment | **namespace** | **String**| object name and auth scope, such as for teams and projects | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] ### Return type @@ -3825,7 +3845,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -3865,7 +3885,7 @@ public class Example { AppsV1Api apiInstance = new AppsV1Api(defaultClient); String name = "name_example"; // String | name of the ReplicaSet String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). try { V1ReplicaSet result = apiInstance.readNamespacedReplicaSet(name, namespace, pretty); System.out.println(result); @@ -3886,7 +3906,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **String**| name of the ReplicaSet | **namespace** | **String**| object name and auth scope, such as for teams and projects | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] ### Return type @@ -3899,7 +3919,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -3939,7 +3959,7 @@ public class Example { AppsV1Api apiInstance = new AppsV1Api(defaultClient); String name = "name_example"; // String | name of the Scale String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). try { V1Scale result = apiInstance.readNamespacedReplicaSetScale(name, namespace, pretty); System.out.println(result); @@ -3960,7 +3980,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **String**| name of the Scale | **namespace** | **String**| object name and auth scope, such as for teams and projects | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] ### Return type @@ -3973,7 +3993,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -4013,7 +4033,7 @@ public class Example { AppsV1Api apiInstance = new AppsV1Api(defaultClient); String name = "name_example"; // String | name of the ReplicaSet String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). try { V1ReplicaSet result = apiInstance.readNamespacedReplicaSetStatus(name, namespace, pretty); System.out.println(result); @@ -4034,7 +4054,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **String**| name of the ReplicaSet | **namespace** | **String**| object name and auth scope, such as for teams and projects | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] ### Return type @@ -4047,7 +4067,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -4087,7 +4107,7 @@ public class Example { AppsV1Api apiInstance = new AppsV1Api(defaultClient); String name = "name_example"; // String | name of the StatefulSet String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). try { V1StatefulSet result = apiInstance.readNamespacedStatefulSet(name, namespace, pretty); System.out.println(result); @@ -4108,7 +4128,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **String**| name of the StatefulSet | **namespace** | **String**| object name and auth scope, such as for teams and projects | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] ### Return type @@ -4121,7 +4141,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -4161,7 +4181,7 @@ public class Example { AppsV1Api apiInstance = new AppsV1Api(defaultClient); String name = "name_example"; // String | name of the Scale String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). try { V1Scale result = apiInstance.readNamespacedStatefulSetScale(name, namespace, pretty); System.out.println(result); @@ -4182,7 +4202,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **String**| name of the Scale | **namespace** | **String**| object name and auth scope, such as for teams and projects | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] ### Return type @@ -4195,7 +4215,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -4235,7 +4255,7 @@ public class Example { AppsV1Api apiInstance = new AppsV1Api(defaultClient); String name = "name_example"; // String | name of the StatefulSet String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). try { V1StatefulSet result = apiInstance.readNamespacedStatefulSetStatus(name, namespace, pretty); System.out.println(result); @@ -4256,7 +4276,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **String**| name of the StatefulSet | **namespace** | **String**| object name and auth scope, such as for teams and projects | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] ### Return type @@ -4269,7 +4289,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -4310,7 +4330,7 @@ public class Example { String name = "name_example"; // String | name of the ControllerRevision String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects V1ControllerRevision body = new V1ControllerRevision(); // V1ControllerRevision | - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). 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 fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. @@ -4335,7 +4355,7 @@ Name | Type | Description | Notes **name** | **String**| name of the ControllerRevision | **namespace** | **String**| object name and auth scope, such as for teams and projects | **body** | [**V1ControllerRevision**](V1ControllerRevision.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] @@ -4351,7 +4371,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -4393,7 +4413,7 @@ public class Example { String name = "name_example"; // String | name of the DaemonSet String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects V1DaemonSet body = new V1DaemonSet(); // V1DaemonSet | - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). 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 fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. @@ -4418,7 +4438,7 @@ Name | Type | Description | Notes **name** | **String**| name of the DaemonSet | **namespace** | **String**| object name and auth scope, such as for teams and projects | **body** | [**V1DaemonSet**](V1DaemonSet.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] @@ -4434,7 +4454,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -4476,7 +4496,7 @@ public class Example { String name = "name_example"; // String | name of the DaemonSet String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects V1DaemonSet body = new V1DaemonSet(); // V1DaemonSet | - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). 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 fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. @@ -4501,7 +4521,7 @@ Name | Type | Description | Notes **name** | **String**| name of the DaemonSet | **namespace** | **String**| object name and auth scope, such as for teams and projects | **body** | [**V1DaemonSet**](V1DaemonSet.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] @@ -4517,7 +4537,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -4559,7 +4579,7 @@ public class Example { String name = "name_example"; // String | name of the Deployment String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects V1Deployment body = new V1Deployment(); // V1Deployment | - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). 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 fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. @@ -4584,7 +4604,7 @@ Name | Type | Description | Notes **name** | **String**| name of the Deployment | **namespace** | **String**| object name and auth scope, such as for teams and projects | **body** | [**V1Deployment**](V1Deployment.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] @@ -4600,7 +4620,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -4642,7 +4662,7 @@ public class Example { String name = "name_example"; // String | name of the Scale String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects V1Scale body = new V1Scale(); // V1Scale | - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). 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 fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. @@ -4667,7 +4687,7 @@ Name | Type | Description | Notes **name** | **String**| name of the Scale | **namespace** | **String**| object name and auth scope, such as for teams and projects | **body** | [**V1Scale**](V1Scale.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] @@ -4683,7 +4703,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -4725,7 +4745,7 @@ public class Example { String name = "name_example"; // String | name of the Deployment String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects V1Deployment body = new V1Deployment(); // V1Deployment | - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). 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 fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. @@ -4750,7 +4770,7 @@ Name | Type | Description | Notes **name** | **String**| name of the Deployment | **namespace** | **String**| object name and auth scope, such as for teams and projects | **body** | [**V1Deployment**](V1Deployment.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] @@ -4766,7 +4786,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -4808,7 +4828,7 @@ public class Example { String name = "name_example"; // String | name of the ReplicaSet String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects V1ReplicaSet body = new V1ReplicaSet(); // V1ReplicaSet | - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). 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 fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. @@ -4833,7 +4853,7 @@ Name | Type | Description | Notes **name** | **String**| name of the ReplicaSet | **namespace** | **String**| object name and auth scope, such as for teams and projects | **body** | [**V1ReplicaSet**](V1ReplicaSet.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] @@ -4849,7 +4869,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -4891,7 +4911,7 @@ public class Example { String name = "name_example"; // String | name of the Scale String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects V1Scale body = new V1Scale(); // V1Scale | - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). 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 fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. @@ -4916,7 +4936,7 @@ Name | Type | Description | Notes **name** | **String**| name of the Scale | **namespace** | **String**| object name and auth scope, such as for teams and projects | **body** | [**V1Scale**](V1Scale.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] @@ -4932,7 +4952,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -4974,7 +4994,7 @@ public class Example { String name = "name_example"; // String | name of the ReplicaSet String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects V1ReplicaSet body = new V1ReplicaSet(); // V1ReplicaSet | - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). 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 fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. @@ -4999,7 +5019,7 @@ Name | Type | Description | Notes **name** | **String**| name of the ReplicaSet | **namespace** | **String**| object name and auth scope, such as for teams and projects | **body** | [**V1ReplicaSet**](V1ReplicaSet.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] @@ -5015,7 +5035,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -5057,7 +5077,7 @@ public class Example { String name = "name_example"; // String | name of the StatefulSet String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects V1StatefulSet body = new V1StatefulSet(); // V1StatefulSet | - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). 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 fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. @@ -5082,7 +5102,7 @@ Name | Type | Description | Notes **name** | **String**| name of the StatefulSet | **namespace** | **String**| object name and auth scope, such as for teams and projects | **body** | [**V1StatefulSet**](V1StatefulSet.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] @@ -5098,7 +5118,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -5140,7 +5160,7 @@ public class Example { String name = "name_example"; // String | name of the Scale String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects V1Scale body = new V1Scale(); // V1Scale | - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). 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 fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. @@ -5165,7 +5185,7 @@ Name | Type | Description | Notes **name** | **String**| name of the Scale | **namespace** | **String**| object name and auth scope, such as for teams and projects | **body** | [**V1Scale**](V1Scale.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] @@ -5181,7 +5201,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -5223,7 +5243,7 @@ public class Example { String name = "name_example"; // String | name of the StatefulSet String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects V1StatefulSet body = new V1StatefulSet(); // V1StatefulSet | - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). 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 fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. @@ -5248,7 +5268,7 @@ Name | Type | Description | Notes **name** | **String**| name of the StatefulSet | **namespace** | **String**| object name and auth scope, such as for teams and projects | **body** | [**V1StatefulSet**](V1StatefulSet.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] @@ -5264,7 +5284,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | diff --git a/kubernetes/docs/AuthenticationV1Api.md b/kubernetes/docs/AuthenticationV1Api.md index 9722168a9c..68db120046 100644 --- a/kubernetes/docs/AuthenticationV1Api.md +++ b/kubernetes/docs/AuthenticationV1Api.md @@ -43,7 +43,7 @@ public class Example { 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 fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). try { V1SelfSubjectReview result = apiInstance.createSelfSubjectReview(body, dryRun, fieldManager, fieldValidation, pretty); System.out.println(result); @@ -66,7 +66,7 @@ Name | Type | Description | Notes **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] **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] ### Return type @@ -79,7 +79,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -123,7 +123,7 @@ public class Example { 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 fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). try { V1TokenReview result = apiInstance.createTokenReview(body, dryRun, fieldManager, fieldValidation, pretty); System.out.println(result); @@ -146,7 +146,7 @@ Name | Type | Description | Notes **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] **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] ### Return type @@ -159,7 +159,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -227,7 +227,7 @@ This endpoint does not need any parameter. ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | diff --git a/kubernetes/docs/AuthenticationV1alpha1Api.md b/kubernetes/docs/AuthenticationV1alpha1Api.md deleted file mode 100644 index efe23a7e36..0000000000 --- a/kubernetes/docs/AuthenticationV1alpha1Api.md +++ /dev/null @@ -1,156 +0,0 @@ -# AuthenticationV1alpha1Api - -All URIs are relative to *http://localhost* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**createSelfSubjectReview**](AuthenticationV1alpha1Api.md#createSelfSubjectReview) | **POST** /apis/authentication.k8s.io/v1alpha1/selfsubjectreviews | -[**getAPIResources**](AuthenticationV1alpha1Api.md#getAPIResources) | **GET** /apis/authentication.k8s.io/v1alpha1/ | - - - -# **createSelfSubjectReview** -> V1alpha1SelfSubjectReview createSelfSubjectReview(body, dryRun, fieldManager, fieldValidation, pretty) - - - -create a SelfSubjectReview - -### Example -```java -// Import classes: -import io.kubernetes.client.openapi.ApiClient; -import io.kubernetes.client.openapi.ApiException; -import io.kubernetes.client.openapi.Configuration; -import io.kubernetes.client.openapi.auth.*; -import io.kubernetes.client.openapi.models.*; -import io.kubernetes.client.openapi.apis.AuthenticationV1alpha1Api; - -public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("http://localhost"); - - // Configure API key authorization: BearerToken - ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); - BearerToken.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //BearerToken.setApiKeyPrefix("Token"); - - AuthenticationV1alpha1Api apiInstance = new AuthenticationV1alpha1Api(defaultClient); - V1alpha1SelfSubjectReview body = new V1alpha1SelfSubjectReview(); // V1alpha1SelfSubjectReview | - 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 fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. - try { - V1alpha1SelfSubjectReview result = apiInstance.createSelfSubjectReview(body, dryRun, fieldManager, fieldValidation, pretty); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling AuthenticationV1alpha1Api#createSelfSubjectReview"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } - } -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **body** | [**V1alpha1SelfSubjectReview**](V1alpha1SelfSubjectReview.md)| | - **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] - **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] - **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - -### Return type - -[**V1alpha1SelfSubjectReview**](V1alpha1SelfSubjectReview.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | OK | - | -**201** | Created | - | -**202** | Accepted | - | -**401** | Unauthorized | - | - - -# **getAPIResources** -> V1APIResourceList getAPIResources() - - - -get available resources - -### Example -```java -// Import classes: -import io.kubernetes.client.openapi.ApiClient; -import io.kubernetes.client.openapi.ApiException; -import io.kubernetes.client.openapi.Configuration; -import io.kubernetes.client.openapi.auth.*; -import io.kubernetes.client.openapi.models.*; -import io.kubernetes.client.openapi.apis.AuthenticationV1alpha1Api; - -public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("http://localhost"); - - // Configure API key authorization: BearerToken - ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); - BearerToken.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //BearerToken.setApiKeyPrefix("Token"); - - AuthenticationV1alpha1Api apiInstance = new AuthenticationV1alpha1Api(defaultClient); - try { - V1APIResourceList result = apiInstance.getAPIResources(); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling AuthenticationV1alpha1Api#getAPIResources"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } - } -} -``` - -### Parameters -This endpoint does not need any parameter. - -### Return type - -[**V1APIResourceList**](V1APIResourceList.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | - diff --git a/kubernetes/docs/AuthenticationV1beta1Api.md b/kubernetes/docs/AuthenticationV1beta1Api.md deleted file mode 100644 index cbf7c12d29..0000000000 --- a/kubernetes/docs/AuthenticationV1beta1Api.md +++ /dev/null @@ -1,156 +0,0 @@ -# AuthenticationV1beta1Api - -All URIs are relative to *http://localhost* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**createSelfSubjectReview**](AuthenticationV1beta1Api.md#createSelfSubjectReview) | **POST** /apis/authentication.k8s.io/v1beta1/selfsubjectreviews | -[**getAPIResources**](AuthenticationV1beta1Api.md#getAPIResources) | **GET** /apis/authentication.k8s.io/v1beta1/ | - - - -# **createSelfSubjectReview** -> V1beta1SelfSubjectReview createSelfSubjectReview(body, dryRun, fieldManager, fieldValidation, pretty) - - - -create a SelfSubjectReview - -### Example -```java -// Import classes: -import io.kubernetes.client.openapi.ApiClient; -import io.kubernetes.client.openapi.ApiException; -import io.kubernetes.client.openapi.Configuration; -import io.kubernetes.client.openapi.auth.*; -import io.kubernetes.client.openapi.models.*; -import io.kubernetes.client.openapi.apis.AuthenticationV1beta1Api; - -public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("http://localhost"); - - // Configure API key authorization: BearerToken - ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); - BearerToken.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //BearerToken.setApiKeyPrefix("Token"); - - AuthenticationV1beta1Api apiInstance = new AuthenticationV1beta1Api(defaultClient); - V1beta1SelfSubjectReview body = new V1beta1SelfSubjectReview(); // V1beta1SelfSubjectReview | - 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 fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. - try { - V1beta1SelfSubjectReview result = apiInstance.createSelfSubjectReview(body, dryRun, fieldManager, fieldValidation, pretty); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling AuthenticationV1beta1Api#createSelfSubjectReview"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } - } -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **body** | [**V1beta1SelfSubjectReview**](V1beta1SelfSubjectReview.md)| | - **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] - **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] - **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - -### Return type - -[**V1beta1SelfSubjectReview**](V1beta1SelfSubjectReview.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | OK | - | -**201** | Created | - | -**202** | Accepted | - | -**401** | Unauthorized | - | - - -# **getAPIResources** -> V1APIResourceList getAPIResources() - - - -get available resources - -### Example -```java -// Import classes: -import io.kubernetes.client.openapi.ApiClient; -import io.kubernetes.client.openapi.ApiException; -import io.kubernetes.client.openapi.Configuration; -import io.kubernetes.client.openapi.auth.*; -import io.kubernetes.client.openapi.models.*; -import io.kubernetes.client.openapi.apis.AuthenticationV1beta1Api; - -public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("http://localhost"); - - // Configure API key authorization: BearerToken - ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); - BearerToken.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //BearerToken.setApiKeyPrefix("Token"); - - AuthenticationV1beta1Api apiInstance = new AuthenticationV1beta1Api(defaultClient); - try { - V1APIResourceList result = apiInstance.getAPIResources(); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling AuthenticationV1beta1Api#getAPIResources"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } - } -} -``` - -### Parameters -This endpoint does not need any parameter. - -### Return type - -[**V1APIResourceList**](V1APIResourceList.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | - diff --git a/kubernetes/docs/AuthorizationV1Api.md b/kubernetes/docs/AuthorizationV1Api.md index ccfd992ea7..8f5e54775e 100644 --- a/kubernetes/docs/AuthorizationV1Api.md +++ b/kubernetes/docs/AuthorizationV1Api.md @@ -46,7 +46,7 @@ public class Example { 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 fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). try { V1LocalSubjectAccessReview result = apiInstance.createNamespacedLocalSubjectAccessReview(namespace, body, dryRun, fieldManager, fieldValidation, pretty); System.out.println(result); @@ -70,7 +70,7 @@ Name | Type | Description | Notes **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] **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] ### Return type @@ -83,7 +83,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -127,7 +127,7 @@ public class Example { 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 fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). try { V1SelfSubjectAccessReview result = apiInstance.createSelfSubjectAccessReview(body, dryRun, fieldManager, fieldValidation, pretty); System.out.println(result); @@ -150,7 +150,7 @@ Name | Type | Description | Notes **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] **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] ### Return type @@ -163,7 +163,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -207,7 +207,7 @@ public class Example { 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 fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). try { V1SelfSubjectRulesReview result = apiInstance.createSelfSubjectRulesReview(body, dryRun, fieldManager, fieldValidation, pretty); System.out.println(result); @@ -230,7 +230,7 @@ Name | Type | Description | Notes **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] **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] ### Return type @@ -243,7 +243,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -287,7 +287,7 @@ public class Example { 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 fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). try { V1SubjectAccessReview result = apiInstance.createSubjectAccessReview(body, dryRun, fieldManager, fieldValidation, pretty); System.out.println(result); @@ -310,7 +310,7 @@ Name | Type | Description | Notes **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] **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] ### Return type @@ -323,7 +323,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -391,7 +391,7 @@ This endpoint does not need any parameter. ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | diff --git a/kubernetes/docs/AutoscalingV1Api.md b/kubernetes/docs/AutoscalingV1Api.md index a76cf89644..c3365555ef 100644 --- a/kubernetes/docs/AutoscalingV1Api.md +++ b/kubernetes/docs/AutoscalingV1Api.md @@ -50,7 +50,7 @@ public class Example { AutoscalingV1Api apiInstance = new AutoscalingV1Api(defaultClient); String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects V1HorizontalPodAutoscaler body = new V1HorizontalPodAutoscaler(); // V1HorizontalPodAutoscaler | - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). 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 fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. @@ -74,7 +74,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **namespace** | **String**| object name and auth scope, such as for teams and projects | **body** | [**V1HorizontalPodAutoscaler**](V1HorizontalPodAutoscaler.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] @@ -90,7 +90,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -102,7 +102,7 @@ Name | Type | Description | Notes # **deleteCollectionNamespacedHorizontalPodAutoscaler** -> V1Status deleteCollectionNamespacedHorizontalPodAutoscaler(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body) +> V1Status deleteCollectionNamespacedHorizontalPodAutoscaler(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body) @@ -131,11 +131,12 @@ public class Example { AutoscalingV1Api apiInstance = new AutoscalingV1Api(defaultClient); String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). 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. 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. Integer gracePeriodSeconds = 56; // Integer | 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. + Boolean ignoreStoreReadErrorWithClusterBreakingPotential = true; // Boolean | if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. 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. @@ -146,7 +147,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. V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | try { - V1Status result = apiInstance.deleteCollectionNamespacedHorizontalPodAutoscaler(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); + V1Status result = apiInstance.deleteCollectionNamespacedHorizontalPodAutoscaler(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling AutoscalingV1Api#deleteCollectionNamespacedHorizontalPodAutoscaler"); @@ -164,11 +165,12 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **namespace** | **String**| object name and auth scope, such as for teams and projects | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] **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] **gracePeriodSeconds** | **Integer**| 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. | [optional] + **ignoreStoreReadErrorWithClusterBreakingPotential** | **Boolean**| if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it | [optional] **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] **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] @@ -190,7 +192,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -200,7 +202,7 @@ Name | Type | Description | Notes # **deleteNamespacedHorizontalPodAutoscaler** -> V1Status deleteNamespacedHorizontalPodAutoscaler(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body) +> V1Status deleteNamespacedHorizontalPodAutoscaler(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body) @@ -230,14 +232,15 @@ public class Example { AutoscalingV1Api apiInstance = new AutoscalingV1Api(defaultClient); String name = "name_example"; // String | name of the HorizontalPodAutoscaler String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). 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 Integer gracePeriodSeconds = 56; // Integer | 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. + Boolean ignoreStoreReadErrorWithClusterBreakingPotential = true; // Boolean | if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it 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. 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. V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | try { - V1Status result = apiInstance.deleteNamespacedHorizontalPodAutoscaler(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body); + V1Status result = apiInstance.deleteNamespacedHorizontalPodAutoscaler(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling AutoscalingV1Api#deleteNamespacedHorizontalPodAutoscaler"); @@ -256,9 +259,10 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **String**| name of the HorizontalPodAutoscaler | **namespace** | **String**| object name and auth scope, such as for teams and projects | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] **gracePeriodSeconds** | **Integer**| 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. | [optional] + **ignoreStoreReadErrorWithClusterBreakingPotential** | **Boolean**| if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it | [optional] **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. 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. | [optional] **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] @@ -274,7 +278,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -341,7 +345,7 @@ This endpoint does not need any parameter. ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -384,7 +388,7 @@ public class Example { String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). String resourceVersion = "resourceVersion_example"; // String | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset String resourceVersionMatch = "resourceVersionMatch_example"; // String | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset Boolean sendInitialEvents = true; // Boolean | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. @@ -413,7 +417,7 @@ Name | Type | Description | Notes **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] @@ -431,7 +435,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch, application/cbor-seq ### HTTP response details | Status code | Description | Response headers | @@ -470,7 +474,7 @@ public class Example { AutoscalingV1Api apiInstance = new AutoscalingV1Api(defaultClient); String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). 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. 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. String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. @@ -500,7 +504,7 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **namespace** | **String**| object name and auth scope, such as for teams and projects | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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. | [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] **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] @@ -523,7 +527,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch, application/cbor-seq ### HTTP response details | Status code | Description | Response headers | @@ -564,7 +568,7 @@ public class Example { String name = "name_example"; // String | name of the HorizontalPodAutoscaler String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects V1Patch body = new V1Patch(); // V1Patch | - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). 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 fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. @@ -590,7 +594,7 @@ Name | Type | Description | Notes **name** | **String**| name of the HorizontalPodAutoscaler | **namespace** | **String**| object name and auth scope, such as for teams and projects | **body** | **V1Patch**| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] @@ -607,7 +611,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -649,7 +653,7 @@ public class Example { String name = "name_example"; // String | name of the HorizontalPodAutoscaler String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects V1Patch body = new V1Patch(); // V1Patch | - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). 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 fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. @@ -675,7 +679,7 @@ Name | Type | Description | Notes **name** | **String**| name of the HorizontalPodAutoscaler | **namespace** | **String**| object name and auth scope, such as for teams and projects | **body** | **V1Patch**| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] @@ -692,7 +696,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -733,7 +737,7 @@ public class Example { AutoscalingV1Api apiInstance = new AutoscalingV1Api(defaultClient); String name = "name_example"; // String | name of the HorizontalPodAutoscaler String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). try { V1HorizontalPodAutoscaler result = apiInstance.readNamespacedHorizontalPodAutoscaler(name, namespace, pretty); System.out.println(result); @@ -754,7 +758,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **String**| name of the HorizontalPodAutoscaler | **namespace** | **String**| object name and auth scope, such as for teams and projects | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] ### Return type @@ -767,7 +771,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -807,7 +811,7 @@ public class Example { AutoscalingV1Api apiInstance = new AutoscalingV1Api(defaultClient); String name = "name_example"; // String | name of the HorizontalPodAutoscaler String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). try { V1HorizontalPodAutoscaler result = apiInstance.readNamespacedHorizontalPodAutoscalerStatus(name, namespace, pretty); System.out.println(result); @@ -828,7 +832,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **String**| name of the HorizontalPodAutoscaler | **namespace** | **String**| object name and auth scope, such as for teams and projects | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] ### Return type @@ -841,7 +845,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -882,7 +886,7 @@ public class Example { String name = "name_example"; // String | name of the HorizontalPodAutoscaler String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects V1HorizontalPodAutoscaler body = new V1HorizontalPodAutoscaler(); // V1HorizontalPodAutoscaler | - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). 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 fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. @@ -907,7 +911,7 @@ Name | Type | Description | Notes **name** | **String**| name of the HorizontalPodAutoscaler | **namespace** | **String**| object name and auth scope, such as for teams and projects | **body** | [**V1HorizontalPodAutoscaler**](V1HorizontalPodAutoscaler.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] @@ -923,7 +927,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -965,7 +969,7 @@ public class Example { String name = "name_example"; // String | name of the HorizontalPodAutoscaler String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects V1HorizontalPodAutoscaler body = new V1HorizontalPodAutoscaler(); // V1HorizontalPodAutoscaler | - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). 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 fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. @@ -990,7 +994,7 @@ Name | Type | Description | Notes **name** | **String**| name of the HorizontalPodAutoscaler | **namespace** | **String**| object name and auth scope, such as for teams and projects | **body** | [**V1HorizontalPodAutoscaler**](V1HorizontalPodAutoscaler.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] @@ -1006,7 +1010,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | diff --git a/kubernetes/docs/AutoscalingV2Api.md b/kubernetes/docs/AutoscalingV2Api.md index 54bf207e7e..9074e8f6df 100644 --- a/kubernetes/docs/AutoscalingV2Api.md +++ b/kubernetes/docs/AutoscalingV2Api.md @@ -50,7 +50,7 @@ public class Example { AutoscalingV2Api apiInstance = new AutoscalingV2Api(defaultClient); String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects V2HorizontalPodAutoscaler body = new V2HorizontalPodAutoscaler(); // V2HorizontalPodAutoscaler | - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). 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 fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. @@ -74,7 +74,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **namespace** | **String**| object name and auth scope, such as for teams and projects | **body** | [**V2HorizontalPodAutoscaler**](V2HorizontalPodAutoscaler.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] @@ -90,7 +90,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -102,7 +102,7 @@ Name | Type | Description | Notes # **deleteCollectionNamespacedHorizontalPodAutoscaler** -> V1Status deleteCollectionNamespacedHorizontalPodAutoscaler(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body) +> V1Status deleteCollectionNamespacedHorizontalPodAutoscaler(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body) @@ -131,11 +131,12 @@ public class Example { AutoscalingV2Api apiInstance = new AutoscalingV2Api(defaultClient); String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). 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. 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. Integer gracePeriodSeconds = 56; // Integer | 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. + Boolean ignoreStoreReadErrorWithClusterBreakingPotential = true; // Boolean | if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. 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. @@ -146,7 +147,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. V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | try { - V1Status result = apiInstance.deleteCollectionNamespacedHorizontalPodAutoscaler(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); + V1Status result = apiInstance.deleteCollectionNamespacedHorizontalPodAutoscaler(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling AutoscalingV2Api#deleteCollectionNamespacedHorizontalPodAutoscaler"); @@ -164,11 +165,12 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **namespace** | **String**| object name and auth scope, such as for teams and projects | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] **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] **gracePeriodSeconds** | **Integer**| 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. | [optional] + **ignoreStoreReadErrorWithClusterBreakingPotential** | **Boolean**| if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it | [optional] **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] **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] @@ -190,7 +192,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -200,7 +202,7 @@ Name | Type | Description | Notes # **deleteNamespacedHorizontalPodAutoscaler** -> V1Status deleteNamespacedHorizontalPodAutoscaler(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body) +> V1Status deleteNamespacedHorizontalPodAutoscaler(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body) @@ -230,14 +232,15 @@ public class Example { AutoscalingV2Api apiInstance = new AutoscalingV2Api(defaultClient); String name = "name_example"; // String | name of the HorizontalPodAutoscaler String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). 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 Integer gracePeriodSeconds = 56; // Integer | 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. + Boolean ignoreStoreReadErrorWithClusterBreakingPotential = true; // Boolean | if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it 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. 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. V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | try { - V1Status result = apiInstance.deleteNamespacedHorizontalPodAutoscaler(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body); + V1Status result = apiInstance.deleteNamespacedHorizontalPodAutoscaler(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling AutoscalingV2Api#deleteNamespacedHorizontalPodAutoscaler"); @@ -256,9 +259,10 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **String**| name of the HorizontalPodAutoscaler | **namespace** | **String**| object name and auth scope, such as for teams and projects | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] **gracePeriodSeconds** | **Integer**| 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. | [optional] + **ignoreStoreReadErrorWithClusterBreakingPotential** | **Boolean**| if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it | [optional] **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. 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. | [optional] **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] @@ -274,7 +278,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -341,7 +345,7 @@ This endpoint does not need any parameter. ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -384,7 +388,7 @@ public class Example { String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). String resourceVersion = "resourceVersion_example"; // String | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset String resourceVersionMatch = "resourceVersionMatch_example"; // String | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset Boolean sendInitialEvents = true; // Boolean | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. @@ -413,7 +417,7 @@ Name | Type | Description | Notes **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] @@ -431,7 +435,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch, application/cbor-seq ### HTTP response details | Status code | Description | Response headers | @@ -470,7 +474,7 @@ public class Example { AutoscalingV2Api apiInstance = new AutoscalingV2Api(defaultClient); String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). 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. 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. String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. @@ -500,7 +504,7 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **namespace** | **String**| object name and auth scope, such as for teams and projects | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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. | [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] **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] @@ -523,7 +527,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch, application/cbor-seq ### HTTP response details | Status code | Description | Response headers | @@ -564,7 +568,7 @@ public class Example { String name = "name_example"; // String | name of the HorizontalPodAutoscaler String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects V1Patch body = new V1Patch(); // V1Patch | - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). 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 fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. @@ -590,7 +594,7 @@ Name | Type | Description | Notes **name** | **String**| name of the HorizontalPodAutoscaler | **namespace** | **String**| object name and auth scope, such as for teams and projects | **body** | **V1Patch**| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] @@ -607,7 +611,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -649,7 +653,7 @@ public class Example { String name = "name_example"; // String | name of the HorizontalPodAutoscaler String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects V1Patch body = new V1Patch(); // V1Patch | - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). 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 fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. @@ -675,7 +679,7 @@ Name | Type | Description | Notes **name** | **String**| name of the HorizontalPodAutoscaler | **namespace** | **String**| object name and auth scope, such as for teams and projects | **body** | **V1Patch**| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] @@ -692,7 +696,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -733,7 +737,7 @@ public class Example { AutoscalingV2Api apiInstance = new AutoscalingV2Api(defaultClient); String name = "name_example"; // String | name of the HorizontalPodAutoscaler String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). try { V2HorizontalPodAutoscaler result = apiInstance.readNamespacedHorizontalPodAutoscaler(name, namespace, pretty); System.out.println(result); @@ -754,7 +758,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **String**| name of the HorizontalPodAutoscaler | **namespace** | **String**| object name and auth scope, such as for teams and projects | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] ### Return type @@ -767,7 +771,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -807,7 +811,7 @@ public class Example { AutoscalingV2Api apiInstance = new AutoscalingV2Api(defaultClient); String name = "name_example"; // String | name of the HorizontalPodAutoscaler String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). try { V2HorizontalPodAutoscaler result = apiInstance.readNamespacedHorizontalPodAutoscalerStatus(name, namespace, pretty); System.out.println(result); @@ -828,7 +832,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **String**| name of the HorizontalPodAutoscaler | **namespace** | **String**| object name and auth scope, such as for teams and projects | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] ### Return type @@ -841,7 +845,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -882,7 +886,7 @@ public class Example { String name = "name_example"; // String | name of the HorizontalPodAutoscaler String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects V2HorizontalPodAutoscaler body = new V2HorizontalPodAutoscaler(); // V2HorizontalPodAutoscaler | - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). 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 fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. @@ -907,7 +911,7 @@ Name | Type | Description | Notes **name** | **String**| name of the HorizontalPodAutoscaler | **namespace** | **String**| object name and auth scope, such as for teams and projects | **body** | [**V2HorizontalPodAutoscaler**](V2HorizontalPodAutoscaler.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] @@ -923,7 +927,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -965,7 +969,7 @@ public class Example { String name = "name_example"; // String | name of the HorizontalPodAutoscaler String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects V2HorizontalPodAutoscaler body = new V2HorizontalPodAutoscaler(); // V2HorizontalPodAutoscaler | - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). 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 fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. @@ -990,7 +994,7 @@ Name | Type | Description | Notes **name** | **String**| name of the HorizontalPodAutoscaler | **namespace** | **String**| object name and auth scope, such as for teams and projects | **body** | [**V2HorizontalPodAutoscaler**](V2HorizontalPodAutoscaler.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] @@ -1006,7 +1010,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | diff --git a/kubernetes/docs/BatchV1Api.md b/kubernetes/docs/BatchV1Api.md index 070c1f3ed0..8aa2812407 100644 --- a/kubernetes/docs/BatchV1Api.md +++ b/kubernetes/docs/BatchV1Api.md @@ -61,7 +61,7 @@ public class Example { BatchV1Api apiInstance = new BatchV1Api(defaultClient); String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects V1CronJob body = new V1CronJob(); // V1CronJob | - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). 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 fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. @@ -85,7 +85,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **namespace** | **String**| object name and auth scope, such as for teams and projects | **body** | [**V1CronJob**](V1CronJob.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] @@ -101,7 +101,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -143,7 +143,7 @@ public class Example { BatchV1Api apiInstance = new BatchV1Api(defaultClient); String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects V1Job body = new V1Job(); // V1Job | - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). 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 fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. @@ -167,7 +167,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **namespace** | **String**| object name and auth scope, such as for teams and projects | **body** | [**V1Job**](V1Job.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] @@ -183,7 +183,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -195,7 +195,7 @@ Name | Type | Description | Notes # **deleteCollectionNamespacedCronJob** -> V1Status deleteCollectionNamespacedCronJob(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body) +> V1Status deleteCollectionNamespacedCronJob(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body) @@ -224,11 +224,12 @@ public class Example { BatchV1Api apiInstance = new BatchV1Api(defaultClient); String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). 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. 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. Integer gracePeriodSeconds = 56; // Integer | 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. + Boolean ignoreStoreReadErrorWithClusterBreakingPotential = true; // Boolean | if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. 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. @@ -239,7 +240,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. V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | try { - V1Status result = apiInstance.deleteCollectionNamespacedCronJob(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); + V1Status result = apiInstance.deleteCollectionNamespacedCronJob(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling BatchV1Api#deleteCollectionNamespacedCronJob"); @@ -257,11 +258,12 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **namespace** | **String**| object name and auth scope, such as for teams and projects | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] **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] **gracePeriodSeconds** | **Integer**| 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. | [optional] + **ignoreStoreReadErrorWithClusterBreakingPotential** | **Boolean**| if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it | [optional] **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] **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] @@ -283,7 +285,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -293,7 +295,7 @@ Name | Type | Description | Notes # **deleteCollectionNamespacedJob** -> V1Status deleteCollectionNamespacedJob(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body) +> V1Status deleteCollectionNamespacedJob(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body) @@ -322,11 +324,12 @@ public class Example { BatchV1Api apiInstance = new BatchV1Api(defaultClient); String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). 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. 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. Integer gracePeriodSeconds = 56; // Integer | 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. + Boolean ignoreStoreReadErrorWithClusterBreakingPotential = true; // Boolean | if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. 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. @@ -337,7 +340,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. V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | try { - V1Status result = apiInstance.deleteCollectionNamespacedJob(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); + V1Status result = apiInstance.deleteCollectionNamespacedJob(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling BatchV1Api#deleteCollectionNamespacedJob"); @@ -355,11 +358,12 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **namespace** | **String**| object name and auth scope, such as for teams and projects | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] **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] **gracePeriodSeconds** | **Integer**| 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. | [optional] + **ignoreStoreReadErrorWithClusterBreakingPotential** | **Boolean**| if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it | [optional] **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] **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] @@ -381,7 +385,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -391,7 +395,7 @@ Name | Type | Description | Notes # **deleteNamespacedCronJob** -> V1Status deleteNamespacedCronJob(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body) +> V1Status deleteNamespacedCronJob(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body) @@ -421,14 +425,15 @@ public class Example { BatchV1Api apiInstance = new BatchV1Api(defaultClient); String name = "name_example"; // String | name of the CronJob String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). 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 Integer gracePeriodSeconds = 56; // Integer | 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. + Boolean ignoreStoreReadErrorWithClusterBreakingPotential = true; // Boolean | if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it 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. 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. V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | try { - V1Status result = apiInstance.deleteNamespacedCronJob(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body); + V1Status result = apiInstance.deleteNamespacedCronJob(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling BatchV1Api#deleteNamespacedCronJob"); @@ -447,9 +452,10 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **String**| name of the CronJob | **namespace** | **String**| object name and auth scope, such as for teams and projects | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] **gracePeriodSeconds** | **Integer**| 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. | [optional] + **ignoreStoreReadErrorWithClusterBreakingPotential** | **Boolean**| if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it | [optional] **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. 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. | [optional] **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] @@ -465,7 +471,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -476,7 +482,7 @@ Name | Type | Description | Notes # **deleteNamespacedJob** -> V1Status deleteNamespacedJob(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body) +> V1Status deleteNamespacedJob(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body) @@ -506,14 +512,15 @@ public class Example { BatchV1Api apiInstance = new BatchV1Api(defaultClient); String name = "name_example"; // String | name of the Job String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). 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 Integer gracePeriodSeconds = 56; // Integer | 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. + Boolean ignoreStoreReadErrorWithClusterBreakingPotential = true; // Boolean | if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it 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. 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. V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | try { - V1Status result = apiInstance.deleteNamespacedJob(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body); + V1Status result = apiInstance.deleteNamespacedJob(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling BatchV1Api#deleteNamespacedJob"); @@ -532,9 +539,10 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **String**| name of the Job | **namespace** | **String**| object name and auth scope, such as for teams and projects | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] **gracePeriodSeconds** | **Integer**| 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. | [optional] + **ignoreStoreReadErrorWithClusterBreakingPotential** | **Boolean**| if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it | [optional] **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. 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. | [optional] **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] @@ -550,7 +558,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -617,7 +625,7 @@ This endpoint does not need any parameter. ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -660,7 +668,7 @@ public class Example { String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). String resourceVersion = "resourceVersion_example"; // String | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset String resourceVersionMatch = "resourceVersionMatch_example"; // String | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset Boolean sendInitialEvents = true; // Boolean | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. @@ -689,7 +697,7 @@ Name | Type | Description | Notes **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] @@ -707,7 +715,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch, application/cbor-seq ### HTTP response details | Status code | Description | Response headers | @@ -750,7 +758,7 @@ public class Example { String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). String resourceVersion = "resourceVersion_example"; // String | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset String resourceVersionMatch = "resourceVersionMatch_example"; // String | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset Boolean sendInitialEvents = true; // Boolean | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. @@ -779,7 +787,7 @@ Name | Type | Description | Notes **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] @@ -797,7 +805,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch, application/cbor-seq ### HTTP response details | Status code | Description | Response headers | @@ -836,7 +844,7 @@ public class Example { BatchV1Api apiInstance = new BatchV1Api(defaultClient); String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). 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. 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. String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. @@ -866,7 +874,7 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **namespace** | **String**| object name and auth scope, such as for teams and projects | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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. | [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] **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] @@ -889,7 +897,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch, application/cbor-seq ### HTTP response details | Status code | Description | Response headers | @@ -928,7 +936,7 @@ public class Example { BatchV1Api apiInstance = new BatchV1Api(defaultClient); String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). 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. 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. String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. @@ -958,7 +966,7 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **namespace** | **String**| object name and auth scope, such as for teams and projects | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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. | [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] **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] @@ -981,7 +989,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch, application/cbor-seq ### HTTP response details | Status code | Description | Response headers | @@ -1022,7 +1030,7 @@ public class Example { String name = "name_example"; // String | name of the CronJob String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects V1Patch body = new V1Patch(); // V1Patch | - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). 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 fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. @@ -1048,7 +1056,7 @@ Name | Type | Description | Notes **name** | **String**| name of the CronJob | **namespace** | **String**| object name and auth scope, such as for teams and projects | **body** | **V1Patch**| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] @@ -1065,7 +1073,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -1107,7 +1115,7 @@ public class Example { String name = "name_example"; // String | name of the CronJob String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects V1Patch body = new V1Patch(); // V1Patch | - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). 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 fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. @@ -1133,7 +1141,7 @@ Name | Type | Description | Notes **name** | **String**| name of the CronJob | **namespace** | **String**| object name and auth scope, such as for teams and projects | **body** | **V1Patch**| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] @@ -1150,7 +1158,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -1192,7 +1200,7 @@ public class Example { String name = "name_example"; // String | name of the Job String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects V1Patch body = new V1Patch(); // V1Patch | - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). 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 fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. @@ -1218,7 +1226,7 @@ Name | Type | Description | Notes **name** | **String**| name of the Job | **namespace** | **String**| object name and auth scope, such as for teams and projects | **body** | **V1Patch**| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] @@ -1235,7 +1243,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -1277,7 +1285,7 @@ public class Example { String name = "name_example"; // String | name of the Job String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects V1Patch body = new V1Patch(); // V1Patch | - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). 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 fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. @@ -1303,7 +1311,7 @@ Name | Type | Description | Notes **name** | **String**| name of the Job | **namespace** | **String**| object name and auth scope, such as for teams and projects | **body** | **V1Patch**| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] @@ -1320,7 +1328,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -1361,7 +1369,7 @@ public class Example { BatchV1Api apiInstance = new BatchV1Api(defaultClient); String name = "name_example"; // String | name of the CronJob String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). try { V1CronJob result = apiInstance.readNamespacedCronJob(name, namespace, pretty); System.out.println(result); @@ -1382,7 +1390,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **String**| name of the CronJob | **namespace** | **String**| object name and auth scope, such as for teams and projects | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] ### Return type @@ -1395,7 +1403,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -1435,7 +1443,7 @@ public class Example { BatchV1Api apiInstance = new BatchV1Api(defaultClient); String name = "name_example"; // String | name of the CronJob String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). try { V1CronJob result = apiInstance.readNamespacedCronJobStatus(name, namespace, pretty); System.out.println(result); @@ -1456,7 +1464,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **String**| name of the CronJob | **namespace** | **String**| object name and auth scope, such as for teams and projects | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] ### Return type @@ -1469,7 +1477,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -1509,7 +1517,7 @@ public class Example { BatchV1Api apiInstance = new BatchV1Api(defaultClient); String name = "name_example"; // String | name of the Job String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). try { V1Job result = apiInstance.readNamespacedJob(name, namespace, pretty); System.out.println(result); @@ -1530,7 +1538,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **String**| name of the Job | **namespace** | **String**| object name and auth scope, such as for teams and projects | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] ### Return type @@ -1543,7 +1551,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -1583,7 +1591,7 @@ public class Example { BatchV1Api apiInstance = new BatchV1Api(defaultClient); String name = "name_example"; // String | name of the Job String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). try { V1Job result = apiInstance.readNamespacedJobStatus(name, namespace, pretty); System.out.println(result); @@ -1604,7 +1612,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **String**| name of the Job | **namespace** | **String**| object name and auth scope, such as for teams and projects | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] ### Return type @@ -1617,7 +1625,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -1658,7 +1666,7 @@ public class Example { String name = "name_example"; // String | name of the CronJob String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects V1CronJob body = new V1CronJob(); // V1CronJob | - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). 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 fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. @@ -1683,7 +1691,7 @@ Name | Type | Description | Notes **name** | **String**| name of the CronJob | **namespace** | **String**| object name and auth scope, such as for teams and projects | **body** | [**V1CronJob**](V1CronJob.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] @@ -1699,7 +1707,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -1741,7 +1749,7 @@ public class Example { String name = "name_example"; // String | name of the CronJob String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects V1CronJob body = new V1CronJob(); // V1CronJob | - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). 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 fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. @@ -1766,7 +1774,7 @@ Name | Type | Description | Notes **name** | **String**| name of the CronJob | **namespace** | **String**| object name and auth scope, such as for teams and projects | **body** | [**V1CronJob**](V1CronJob.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] @@ -1782,7 +1790,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -1824,7 +1832,7 @@ public class Example { String name = "name_example"; // String | name of the Job String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects V1Job body = new V1Job(); // V1Job | - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). 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 fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. @@ -1849,7 +1857,7 @@ Name | Type | Description | Notes **name** | **String**| name of the Job | **namespace** | **String**| object name and auth scope, such as for teams and projects | **body** | [**V1Job**](V1Job.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] @@ -1865,7 +1873,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -1907,7 +1915,7 @@ public class Example { String name = "name_example"; // String | name of the Job String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects V1Job body = new V1Job(); // V1Job | - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). 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 fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. @@ -1932,7 +1940,7 @@ Name | Type | Description | Notes **name** | **String**| name of the Job | **namespace** | **String**| object name and auth scope, such as for teams and projects | **body** | [**V1Job**](V1Job.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] @@ -1948,7 +1956,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | diff --git a/kubernetes/docs/CertificatesV1Api.md b/kubernetes/docs/CertificatesV1Api.md index f120990785..7436bd6039 100644 --- a/kubernetes/docs/CertificatesV1Api.md +++ b/kubernetes/docs/CertificatesV1Api.md @@ -51,7 +51,7 @@ public class Example { CertificatesV1Api apiInstance = new CertificatesV1Api(defaultClient); V1CertificateSigningRequest body = new V1CertificateSigningRequest(); // V1CertificateSigningRequest | - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). 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 fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. @@ -74,7 +74,7 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **body** | [**V1CertificateSigningRequest**](V1CertificateSigningRequest.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] @@ -90,7 +90,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -102,7 +102,7 @@ Name | Type | Description | Notes # **deleteCertificateSigningRequest** -> V1Status deleteCertificateSigningRequest(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body) +> V1Status deleteCertificateSigningRequest(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body) @@ -131,14 +131,15 @@ public class Example { CertificatesV1Api apiInstance = new CertificatesV1Api(defaultClient); String name = "name_example"; // String | name of the CertificateSigningRequest - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). 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 Integer gracePeriodSeconds = 56; // Integer | 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. + Boolean ignoreStoreReadErrorWithClusterBreakingPotential = true; // Boolean | if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it 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. 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. V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | try { - V1Status result = apiInstance.deleteCertificateSigningRequest(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body); + V1Status result = apiInstance.deleteCertificateSigningRequest(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling CertificatesV1Api#deleteCertificateSigningRequest"); @@ -156,9 +157,10 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **String**| name of the CertificateSigningRequest | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] **gracePeriodSeconds** | **Integer**| 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. | [optional] + **ignoreStoreReadErrorWithClusterBreakingPotential** | **Boolean**| if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it | [optional] **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. 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. | [optional] **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] @@ -174,7 +176,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -185,7 +187,7 @@ Name | Type | Description | Notes # **deleteCollectionCertificateSigningRequest** -> V1Status deleteCollectionCertificateSigningRequest(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body) +> V1Status deleteCollectionCertificateSigningRequest(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body) @@ -213,11 +215,12 @@ public class Example { //BearerToken.setApiKeyPrefix("Token"); CertificatesV1Api apiInstance = new CertificatesV1Api(defaultClient); - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). 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. 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. Integer gracePeriodSeconds = 56; // Integer | 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. + Boolean ignoreStoreReadErrorWithClusterBreakingPotential = true; // Boolean | if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. 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. @@ -228,7 +231,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. V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | try { - V1Status result = apiInstance.deleteCollectionCertificateSigningRequest(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); + V1Status result = apiInstance.deleteCollectionCertificateSigningRequest(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling CertificatesV1Api#deleteCollectionCertificateSigningRequest"); @@ -245,11 +248,12 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] **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] **gracePeriodSeconds** | **Integer**| 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. | [optional] + **ignoreStoreReadErrorWithClusterBreakingPotential** | **Boolean**| if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it | [optional] **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] **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] @@ -271,7 +275,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -337,7 +341,7 @@ This endpoint does not need any parameter. ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -375,7 +379,7 @@ public class Example { //BearerToken.setApiKeyPrefix("Token"); CertificatesV1Api apiInstance = new CertificatesV1Api(defaultClient); - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). 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. 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. String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. @@ -404,7 +408,7 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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. | [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] **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] @@ -427,7 +431,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch, application/cbor-seq ### HTTP response details | Status code | Description | Response headers | @@ -467,7 +471,7 @@ public class Example { CertificatesV1Api apiInstance = new CertificatesV1Api(defaultClient); String name = "name_example"; // String | name of the CertificateSigningRequest V1Patch body = new V1Patch(); // V1Patch | - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). 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 fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. @@ -492,7 +496,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **String**| name of the CertificateSigningRequest | **body** | **V1Patch**| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] @@ -509,7 +513,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -550,7 +554,7 @@ public class Example { CertificatesV1Api apiInstance = new CertificatesV1Api(defaultClient); String name = "name_example"; // String | name of the CertificateSigningRequest V1Patch body = new V1Patch(); // V1Patch | - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). 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 fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. @@ -575,7 +579,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **String**| name of the CertificateSigningRequest | **body** | **V1Patch**| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] @@ -592,7 +596,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -633,7 +637,7 @@ public class Example { CertificatesV1Api apiInstance = new CertificatesV1Api(defaultClient); String name = "name_example"; // String | name of the CertificateSigningRequest V1Patch body = new V1Patch(); // V1Patch | - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). 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 fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. @@ -658,7 +662,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **String**| name of the CertificateSigningRequest | **body** | **V1Patch**| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] @@ -675,7 +679,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -715,7 +719,7 @@ public class Example { CertificatesV1Api apiInstance = new CertificatesV1Api(defaultClient); String name = "name_example"; // String | name of the CertificateSigningRequest - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). try { V1CertificateSigningRequest result = apiInstance.readCertificateSigningRequest(name, pretty); System.out.println(result); @@ -735,7 +739,7 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **String**| name of the CertificateSigningRequest | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] ### Return type @@ -748,7 +752,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -787,7 +791,7 @@ public class Example { CertificatesV1Api apiInstance = new CertificatesV1Api(defaultClient); String name = "name_example"; // String | name of the CertificateSigningRequest - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). try { V1CertificateSigningRequest result = apiInstance.readCertificateSigningRequestApproval(name, pretty); System.out.println(result); @@ -807,7 +811,7 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **String**| name of the CertificateSigningRequest | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] ### Return type @@ -820,7 +824,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -859,7 +863,7 @@ public class Example { CertificatesV1Api apiInstance = new CertificatesV1Api(defaultClient); String name = "name_example"; // String | name of the CertificateSigningRequest - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). try { V1CertificateSigningRequest result = apiInstance.readCertificateSigningRequestStatus(name, pretty); System.out.println(result); @@ -879,7 +883,7 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **String**| name of the CertificateSigningRequest | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] ### Return type @@ -892,7 +896,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -932,7 +936,7 @@ public class Example { CertificatesV1Api apiInstance = new CertificatesV1Api(defaultClient); String name = "name_example"; // String | name of the CertificateSigningRequest V1CertificateSigningRequest body = new V1CertificateSigningRequest(); // V1CertificateSigningRequest | - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). 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 fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. @@ -956,7 +960,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **String**| name of the CertificateSigningRequest | **body** | [**V1CertificateSigningRequest**](V1CertificateSigningRequest.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] @@ -972,7 +976,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -1013,7 +1017,7 @@ public class Example { CertificatesV1Api apiInstance = new CertificatesV1Api(defaultClient); String name = "name_example"; // String | name of the CertificateSigningRequest V1CertificateSigningRequest body = new V1CertificateSigningRequest(); // V1CertificateSigningRequest | - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). 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 fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. @@ -1037,7 +1041,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **String**| name of the CertificateSigningRequest | **body** | [**V1CertificateSigningRequest**](V1CertificateSigningRequest.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] @@ -1053,7 +1057,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -1094,7 +1098,7 @@ public class Example { CertificatesV1Api apiInstance = new CertificatesV1Api(defaultClient); String name = "name_example"; // String | name of the CertificateSigningRequest V1CertificateSigningRequest body = new V1CertificateSigningRequest(); // V1CertificateSigningRequest | - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). 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 fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. @@ -1118,7 +1122,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **String**| name of the CertificateSigningRequest | **body** | [**V1CertificateSigningRequest**](V1CertificateSigningRequest.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] @@ -1134,7 +1138,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | diff --git a/kubernetes/docs/CertificatesV1alpha1Api.md b/kubernetes/docs/CertificatesV1alpha1Api.md index 6b35640877..70caf2e25c 100644 --- a/kubernetes/docs/CertificatesV1alpha1Api.md +++ b/kubernetes/docs/CertificatesV1alpha1Api.md @@ -45,7 +45,7 @@ public class Example { CertificatesV1alpha1Api apiInstance = new CertificatesV1alpha1Api(defaultClient); V1alpha1ClusterTrustBundle body = new V1alpha1ClusterTrustBundle(); // V1alpha1ClusterTrustBundle | - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). 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 fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. @@ -68,7 +68,7 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **body** | [**V1alpha1ClusterTrustBundle**](V1alpha1ClusterTrustBundle.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] @@ -84,7 +84,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -96,7 +96,7 @@ Name | Type | Description | Notes # **deleteClusterTrustBundle** -> V1Status deleteClusterTrustBundle(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body) +> V1Status deleteClusterTrustBundle(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body) @@ -125,14 +125,15 @@ public class Example { CertificatesV1alpha1Api apiInstance = new CertificatesV1alpha1Api(defaultClient); String name = "name_example"; // String | name of the ClusterTrustBundle - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). 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 Integer gracePeriodSeconds = 56; // Integer | 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. + Boolean ignoreStoreReadErrorWithClusterBreakingPotential = true; // Boolean | if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it 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. 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. V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | try { - V1Status result = apiInstance.deleteClusterTrustBundle(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body); + V1Status result = apiInstance.deleteClusterTrustBundle(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling CertificatesV1alpha1Api#deleteClusterTrustBundle"); @@ -150,9 +151,10 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **String**| name of the ClusterTrustBundle | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] **gracePeriodSeconds** | **Integer**| 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. | [optional] + **ignoreStoreReadErrorWithClusterBreakingPotential** | **Boolean**| if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it | [optional] **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. 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. | [optional] **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] @@ -168,7 +170,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -179,7 +181,7 @@ Name | Type | Description | Notes # **deleteCollectionClusterTrustBundle** -> V1Status deleteCollectionClusterTrustBundle(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body) +> V1Status deleteCollectionClusterTrustBundle(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body) @@ -207,11 +209,12 @@ public class Example { //BearerToken.setApiKeyPrefix("Token"); CertificatesV1alpha1Api apiInstance = new CertificatesV1alpha1Api(defaultClient); - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). 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. 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. Integer gracePeriodSeconds = 56; // Integer | 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. + Boolean ignoreStoreReadErrorWithClusterBreakingPotential = true; // Boolean | if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. 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. @@ -222,7 +225,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. V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | try { - V1Status result = apiInstance.deleteCollectionClusterTrustBundle(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); + V1Status result = apiInstance.deleteCollectionClusterTrustBundle(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling CertificatesV1alpha1Api#deleteCollectionClusterTrustBundle"); @@ -239,11 +242,12 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] **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] **gracePeriodSeconds** | **Integer**| 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. | [optional] + **ignoreStoreReadErrorWithClusterBreakingPotential** | **Boolean**| if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it | [optional] **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] **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] @@ -265,7 +269,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -331,7 +335,7 @@ This endpoint does not need any parameter. ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -369,7 +373,7 @@ public class Example { //BearerToken.setApiKeyPrefix("Token"); CertificatesV1alpha1Api apiInstance = new CertificatesV1alpha1Api(defaultClient); - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). 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. 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. String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. @@ -398,7 +402,7 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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. | [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] **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] @@ -421,7 +425,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch, application/cbor-seq ### HTTP response details | Status code | Description | Response headers | @@ -461,7 +465,7 @@ public class Example { CertificatesV1alpha1Api apiInstance = new CertificatesV1alpha1Api(defaultClient); String name = "name_example"; // String | name of the ClusterTrustBundle V1Patch body = new V1Patch(); // V1Patch | - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). 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 fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. @@ -486,7 +490,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **String**| name of the ClusterTrustBundle | **body** | **V1Patch**| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] @@ -503,7 +507,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -543,7 +547,7 @@ public class Example { CertificatesV1alpha1Api apiInstance = new CertificatesV1alpha1Api(defaultClient); String name = "name_example"; // String | name of the ClusterTrustBundle - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). try { V1alpha1ClusterTrustBundle result = apiInstance.readClusterTrustBundle(name, pretty); System.out.println(result); @@ -563,7 +567,7 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **String**| name of the ClusterTrustBundle | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] ### Return type @@ -576,7 +580,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -616,7 +620,7 @@ public class Example { CertificatesV1alpha1Api apiInstance = new CertificatesV1alpha1Api(defaultClient); String name = "name_example"; // String | name of the ClusterTrustBundle V1alpha1ClusterTrustBundle body = new V1alpha1ClusterTrustBundle(); // V1alpha1ClusterTrustBundle | - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). 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 fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. @@ -640,7 +644,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **String**| name of the ClusterTrustBundle | **body** | [**V1alpha1ClusterTrustBundle**](V1alpha1ClusterTrustBundle.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] @@ -656,7 +660,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | diff --git a/kubernetes/docs/CertificatesV1beta1Api.md b/kubernetes/docs/CertificatesV1beta1Api.md new file mode 100644 index 0000000000..28586bcbf5 --- /dev/null +++ b/kubernetes/docs/CertificatesV1beta1Api.md @@ -0,0 +1,671 @@ +# CertificatesV1beta1Api + +All URIs are relative to *http://localhost* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**createClusterTrustBundle**](CertificatesV1beta1Api.md#createClusterTrustBundle) | **POST** /apis/certificates.k8s.io/v1beta1/clustertrustbundles | +[**deleteClusterTrustBundle**](CertificatesV1beta1Api.md#deleteClusterTrustBundle) | **DELETE** /apis/certificates.k8s.io/v1beta1/clustertrustbundles/{name} | +[**deleteCollectionClusterTrustBundle**](CertificatesV1beta1Api.md#deleteCollectionClusterTrustBundle) | **DELETE** /apis/certificates.k8s.io/v1beta1/clustertrustbundles | +[**getAPIResources**](CertificatesV1beta1Api.md#getAPIResources) | **GET** /apis/certificates.k8s.io/v1beta1/ | +[**listClusterTrustBundle**](CertificatesV1beta1Api.md#listClusterTrustBundle) | **GET** /apis/certificates.k8s.io/v1beta1/clustertrustbundles | +[**patchClusterTrustBundle**](CertificatesV1beta1Api.md#patchClusterTrustBundle) | **PATCH** /apis/certificates.k8s.io/v1beta1/clustertrustbundles/{name} | +[**readClusterTrustBundle**](CertificatesV1beta1Api.md#readClusterTrustBundle) | **GET** /apis/certificates.k8s.io/v1beta1/clustertrustbundles/{name} | +[**replaceClusterTrustBundle**](CertificatesV1beta1Api.md#replaceClusterTrustBundle) | **PUT** /apis/certificates.k8s.io/v1beta1/clustertrustbundles/{name} | + + + +# **createClusterTrustBundle** +> V1beta1ClusterTrustBundle createClusterTrustBundle(body, pretty, dryRun, fieldManager, fieldValidation) + + + +create a ClusterTrustBundle + +### Example +```java +// Import classes: +import io.kubernetes.client.openapi.ApiClient; +import io.kubernetes.client.openapi.ApiException; +import io.kubernetes.client.openapi.Configuration; +import io.kubernetes.client.openapi.auth.*; +import io.kubernetes.client.openapi.models.*; +import io.kubernetes.client.openapi.apis.CertificatesV1beta1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + CertificatesV1beta1Api apiInstance = new CertificatesV1beta1Api(defaultClient); + V1beta1ClusterTrustBundle body = new V1beta1ClusterTrustBundle(); // V1beta1ClusterTrustBundle | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + 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 fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. + try { + V1beta1ClusterTrustBundle result = apiInstance.createClusterTrustBundle(body, pretty, dryRun, fieldManager, fieldValidation); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling CertificatesV1beta1Api#createClusterTrustBundle"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | [**V1beta1ClusterTrustBundle**](V1beta1ClusterTrustBundle.md)| | + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] + **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] + **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] + +### Return type + +[**V1beta1ClusterTrustBundle**](V1beta1ClusterTrustBundle.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + + +# **deleteClusterTrustBundle** +> V1Status deleteClusterTrustBundle(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body) + + + +delete a ClusterTrustBundle + +### Example +```java +// Import classes: +import io.kubernetes.client.openapi.ApiClient; +import io.kubernetes.client.openapi.ApiException; +import io.kubernetes.client.openapi.Configuration; +import io.kubernetes.client.openapi.auth.*; +import io.kubernetes.client.openapi.models.*; +import io.kubernetes.client.openapi.apis.CertificatesV1beta1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + CertificatesV1beta1Api apiInstance = new CertificatesV1beta1Api(defaultClient); + String name = "name_example"; // String | name of the ClusterTrustBundle + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + 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 + Integer gracePeriodSeconds = 56; // Integer | 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. + Boolean ignoreStoreReadErrorWithClusterBreakingPotential = true; // Boolean | if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it + 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. 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. + V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | + try { + V1Status result = apiInstance.deleteClusterTrustBundle(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling CertificatesV1beta1Api#deleteClusterTrustBundle"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **String**| name of the ClusterTrustBundle | + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] + **gracePeriodSeconds** | **Integer**| 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. | [optional] + **ignoreStoreReadErrorWithClusterBreakingPotential** | **Boolean**| if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it | [optional] + **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. 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. | [optional] + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] + +### Return type + +[**V1Status**](V1Status.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + + +# **deleteCollectionClusterTrustBundle** +> V1Status deleteCollectionClusterTrustBundle(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body) + + + +delete collection of ClusterTrustBundle + +### Example +```java +// Import classes: +import io.kubernetes.client.openapi.ApiClient; +import io.kubernetes.client.openapi.ApiException; +import io.kubernetes.client.openapi.Configuration; +import io.kubernetes.client.openapi.auth.*; +import io.kubernetes.client.openapi.models.*; +import io.kubernetes.client.openapi.apis.CertificatesV1beta1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + CertificatesV1beta1Api apiInstance = new CertificatesV1beta1Api(defaultClient); + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + 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. + 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. + Integer gracePeriodSeconds = 56; // Integer | 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. + Boolean ignoreStoreReadErrorWithClusterBreakingPotential = true; // Boolean | if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it + String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. + Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + 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. 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. + String resourceVersion = "resourceVersion_example"; // String | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + String resourceVersionMatch = "resourceVersionMatch_example"; // String | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + Boolean sendInitialEvents = true; // Boolean | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | + try { + V1Status result = apiInstance.deleteCollectionClusterTrustBundle(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling CertificatesV1beta1Api#deleteCollectionClusterTrustBundle"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] + **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] + **gracePeriodSeconds** | **Integer**| 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. | [optional] + **ignoreStoreReadErrorWithClusterBreakingPotential** | **Boolean**| if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it | [optional] + **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] + **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] + **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. 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. | [optional] + **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] + **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] + **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] + **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] + +### Return type + +[**V1Status**](V1Status.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + + +# **getAPIResources** +> V1APIResourceList getAPIResources() + + + +get available resources + +### Example +```java +// Import classes: +import io.kubernetes.client.openapi.ApiClient; +import io.kubernetes.client.openapi.ApiException; +import io.kubernetes.client.openapi.Configuration; +import io.kubernetes.client.openapi.auth.*; +import io.kubernetes.client.openapi.models.*; +import io.kubernetes.client.openapi.apis.CertificatesV1beta1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + CertificatesV1beta1Api apiInstance = new CertificatesV1beta1Api(defaultClient); + try { + V1APIResourceList result = apiInstance.getAPIResources(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling CertificatesV1beta1Api#getAPIResources"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters +This endpoint does not need any parameter. + +### Return type + +[**V1APIResourceList**](V1APIResourceList.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + + +# **listClusterTrustBundle** +> V1beta1ClusterTrustBundleList listClusterTrustBundle(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch) + + + +list or watch objects of kind ClusterTrustBundle + +### Example +```java +// Import classes: +import io.kubernetes.client.openapi.ApiClient; +import io.kubernetes.client.openapi.ApiException; +import io.kubernetes.client.openapi.Configuration; +import io.kubernetes.client.openapi.auth.*; +import io.kubernetes.client.openapi.models.*; +import io.kubernetes.client.openapi.apis.CertificatesV1beta1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + CertificatesV1beta1Api apiInstance = new CertificatesV1beta1Api(defaultClient); + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + 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. + 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. + String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. + String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. + Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + String resourceVersion = "resourceVersion_example"; // String | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + String resourceVersionMatch = "resourceVersionMatch_example"; // String | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + Boolean sendInitialEvents = true; // Boolean | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + 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. Specify resourceVersion. + try { + V1beta1ClusterTrustBundleList result = apiInstance.listClusterTrustBundle(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling CertificatesV1beta1Api#listClusterTrustBundle"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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. | [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] + **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] + **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] + **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] + **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] + **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] + **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] + **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + +### Return type + +[**V1beta1ClusterTrustBundleList**](V1beta1ClusterTrustBundleList.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch, application/cbor-seq + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + + +# **patchClusterTrustBundle** +> V1beta1ClusterTrustBundle patchClusterTrustBundle(name, body, pretty, dryRun, fieldManager, fieldValidation, force) + + + +partially update the specified ClusterTrustBundle + +### Example +```java +// Import classes: +import io.kubernetes.client.openapi.ApiClient; +import io.kubernetes.client.openapi.ApiException; +import io.kubernetes.client.openapi.Configuration; +import io.kubernetes.client.openapi.auth.*; +import io.kubernetes.client.openapi.models.*; +import io.kubernetes.client.openapi.apis.CertificatesV1beta1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + CertificatesV1beta1Api apiInstance = new CertificatesV1beta1Api(defaultClient); + String name = "name_example"; // String | name of the ClusterTrustBundle + V1Patch body = new V1Patch(); // V1Patch | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + 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 fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). + String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. + Boolean force = true; // Boolean | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. + try { + V1beta1ClusterTrustBundle result = apiInstance.patchClusterTrustBundle(name, body, pretty, dryRun, fieldManager, fieldValidation, force); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling CertificatesV1beta1Api#patchClusterTrustBundle"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **String**| name of the ClusterTrustBundle | + **body** | **V1Patch**| | + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] + **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] + **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] + **force** | **Boolean**| Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | [optional] + +### Return type + +[**V1beta1ClusterTrustBundle**](V1beta1ClusterTrustBundle.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**401** | Unauthorized | - | + + +# **readClusterTrustBundle** +> V1beta1ClusterTrustBundle readClusterTrustBundle(name, pretty) + + + +read the specified ClusterTrustBundle + +### Example +```java +// Import classes: +import io.kubernetes.client.openapi.ApiClient; +import io.kubernetes.client.openapi.ApiException; +import io.kubernetes.client.openapi.Configuration; +import io.kubernetes.client.openapi.auth.*; +import io.kubernetes.client.openapi.models.*; +import io.kubernetes.client.openapi.apis.CertificatesV1beta1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + CertificatesV1beta1Api apiInstance = new CertificatesV1beta1Api(defaultClient); + String name = "name_example"; // String | name of the ClusterTrustBundle + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + try { + V1beta1ClusterTrustBundle result = apiInstance.readClusterTrustBundle(name, pretty); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling CertificatesV1beta1Api#readClusterTrustBundle"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **String**| name of the ClusterTrustBundle | + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] + +### Return type + +[**V1beta1ClusterTrustBundle**](V1beta1ClusterTrustBundle.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + + +# **replaceClusterTrustBundle** +> V1beta1ClusterTrustBundle replaceClusterTrustBundle(name, body, pretty, dryRun, fieldManager, fieldValidation) + + + +replace the specified ClusterTrustBundle + +### Example +```java +// Import classes: +import io.kubernetes.client.openapi.ApiClient; +import io.kubernetes.client.openapi.ApiException; +import io.kubernetes.client.openapi.Configuration; +import io.kubernetes.client.openapi.auth.*; +import io.kubernetes.client.openapi.models.*; +import io.kubernetes.client.openapi.apis.CertificatesV1beta1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + CertificatesV1beta1Api apiInstance = new CertificatesV1beta1Api(defaultClient); + String name = "name_example"; // String | name of the ClusterTrustBundle + V1beta1ClusterTrustBundle body = new V1beta1ClusterTrustBundle(); // V1beta1ClusterTrustBundle | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + 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 fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. + try { + V1beta1ClusterTrustBundle result = apiInstance.replaceClusterTrustBundle(name, body, pretty, dryRun, fieldManager, fieldValidation); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling CertificatesV1beta1Api#replaceClusterTrustBundle"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **String**| name of the ClusterTrustBundle | + **body** | [**V1beta1ClusterTrustBundle**](V1beta1ClusterTrustBundle.md)| | + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] + **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] + **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] + +### Return type + +[**V1beta1ClusterTrustBundle**](V1beta1ClusterTrustBundle.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**401** | Unauthorized | - | + diff --git a/kubernetes/docs/CoordinationV1Api.md b/kubernetes/docs/CoordinationV1Api.md index 2e871fce08..61a7f81c2a 100644 --- a/kubernetes/docs/CoordinationV1Api.md +++ b/kubernetes/docs/CoordinationV1Api.md @@ -47,7 +47,7 @@ public class Example { CoordinationV1Api apiInstance = new CoordinationV1Api(defaultClient); String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects V1Lease body = new V1Lease(); // V1Lease | - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). 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 fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. @@ -71,7 +71,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **namespace** | **String**| object name and auth scope, such as for teams and projects | **body** | [**V1Lease**](V1Lease.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] @@ -87,7 +87,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -99,7 +99,7 @@ Name | Type | Description | Notes # **deleteCollectionNamespacedLease** -> V1Status deleteCollectionNamespacedLease(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body) +> V1Status deleteCollectionNamespacedLease(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body) @@ -128,11 +128,12 @@ public class Example { CoordinationV1Api apiInstance = new CoordinationV1Api(defaultClient); String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). 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. 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. Integer gracePeriodSeconds = 56; // Integer | 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. + Boolean ignoreStoreReadErrorWithClusterBreakingPotential = true; // Boolean | if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. 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. @@ -143,7 +144,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. V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | try { - V1Status result = apiInstance.deleteCollectionNamespacedLease(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); + V1Status result = apiInstance.deleteCollectionNamespacedLease(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling CoordinationV1Api#deleteCollectionNamespacedLease"); @@ -161,11 +162,12 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **namespace** | **String**| object name and auth scope, such as for teams and projects | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] **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] **gracePeriodSeconds** | **Integer**| 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. | [optional] + **ignoreStoreReadErrorWithClusterBreakingPotential** | **Boolean**| if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it | [optional] **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] **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] @@ -187,7 +189,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -197,7 +199,7 @@ Name | Type | Description | Notes # **deleteNamespacedLease** -> V1Status deleteNamespacedLease(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body) +> V1Status deleteNamespacedLease(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body) @@ -227,14 +229,15 @@ public class Example { CoordinationV1Api apiInstance = new CoordinationV1Api(defaultClient); String name = "name_example"; // String | name of the Lease String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). 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 Integer gracePeriodSeconds = 56; // Integer | 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. + Boolean ignoreStoreReadErrorWithClusterBreakingPotential = true; // Boolean | if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it 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. 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. V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | try { - V1Status result = apiInstance.deleteNamespacedLease(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body); + V1Status result = apiInstance.deleteNamespacedLease(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling CoordinationV1Api#deleteNamespacedLease"); @@ -253,9 +256,10 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **String**| name of the Lease | **namespace** | **String**| object name and auth scope, such as for teams and projects | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] **gracePeriodSeconds** | **Integer**| 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. | [optional] + **ignoreStoreReadErrorWithClusterBreakingPotential** | **Boolean**| if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it | [optional] **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. 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. | [optional] **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] @@ -271,7 +275,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -338,7 +342,7 @@ This endpoint does not need any parameter. ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -381,7 +385,7 @@ public class Example { String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). String resourceVersion = "resourceVersion_example"; // String | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset String resourceVersionMatch = "resourceVersionMatch_example"; // String | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset Boolean sendInitialEvents = true; // Boolean | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. @@ -410,7 +414,7 @@ Name | Type | Description | Notes **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] @@ -428,7 +432,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch, application/cbor-seq ### HTTP response details | Status code | Description | Response headers | @@ -467,7 +471,7 @@ public class Example { CoordinationV1Api apiInstance = new CoordinationV1Api(defaultClient); String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). 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. 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. String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. @@ -497,7 +501,7 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **namespace** | **String**| object name and auth scope, such as for teams and projects | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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. | [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] **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] @@ -520,7 +524,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch, application/cbor-seq ### HTTP response details | Status code | Description | Response headers | @@ -561,7 +565,7 @@ public class Example { String name = "name_example"; // String | name of the Lease String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects V1Patch body = new V1Patch(); // V1Patch | - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). 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 fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. @@ -587,7 +591,7 @@ Name | Type | Description | Notes **name** | **String**| name of the Lease | **namespace** | **String**| object name and auth scope, such as for teams and projects | **body** | **V1Patch**| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] @@ -604,7 +608,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -645,7 +649,7 @@ public class Example { CoordinationV1Api apiInstance = new CoordinationV1Api(defaultClient); String name = "name_example"; // String | name of the Lease String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). try { V1Lease result = apiInstance.readNamespacedLease(name, namespace, pretty); System.out.println(result); @@ -666,7 +670,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **String**| name of the Lease | **namespace** | **String**| object name and auth scope, such as for teams and projects | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] ### Return type @@ -679,7 +683,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -720,7 +724,7 @@ public class Example { String name = "name_example"; // String | name of the Lease String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects V1Lease body = new V1Lease(); // V1Lease | - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). 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 fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. @@ -745,7 +749,7 @@ Name | Type | Description | Notes **name** | **String**| name of the Lease | **namespace** | **String**| object name and auth scope, such as for teams and projects | **body** | [**V1Lease**](V1Lease.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] @@ -761,7 +765,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | diff --git a/kubernetes/docs/CoordinationV1alpha2Api.md b/kubernetes/docs/CoordinationV1alpha2Api.md new file mode 100644 index 0000000000..bc68ea31c1 --- /dev/null +++ b/kubernetes/docs/CoordinationV1alpha2Api.md @@ -0,0 +1,776 @@ +# CoordinationV1alpha2Api + +All URIs are relative to *http://localhost* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**createNamespacedLeaseCandidate**](CoordinationV1alpha2Api.md#createNamespacedLeaseCandidate) | **POST** /apis/coordination.k8s.io/v1alpha2/namespaces/{namespace}/leasecandidates | +[**deleteCollectionNamespacedLeaseCandidate**](CoordinationV1alpha2Api.md#deleteCollectionNamespacedLeaseCandidate) | **DELETE** /apis/coordination.k8s.io/v1alpha2/namespaces/{namespace}/leasecandidates | +[**deleteNamespacedLeaseCandidate**](CoordinationV1alpha2Api.md#deleteNamespacedLeaseCandidate) | **DELETE** /apis/coordination.k8s.io/v1alpha2/namespaces/{namespace}/leasecandidates/{name} | +[**getAPIResources**](CoordinationV1alpha2Api.md#getAPIResources) | **GET** /apis/coordination.k8s.io/v1alpha2/ | +[**listLeaseCandidateForAllNamespaces**](CoordinationV1alpha2Api.md#listLeaseCandidateForAllNamespaces) | **GET** /apis/coordination.k8s.io/v1alpha2/leasecandidates | +[**listNamespacedLeaseCandidate**](CoordinationV1alpha2Api.md#listNamespacedLeaseCandidate) | **GET** /apis/coordination.k8s.io/v1alpha2/namespaces/{namespace}/leasecandidates | +[**patchNamespacedLeaseCandidate**](CoordinationV1alpha2Api.md#patchNamespacedLeaseCandidate) | **PATCH** /apis/coordination.k8s.io/v1alpha2/namespaces/{namespace}/leasecandidates/{name} | +[**readNamespacedLeaseCandidate**](CoordinationV1alpha2Api.md#readNamespacedLeaseCandidate) | **GET** /apis/coordination.k8s.io/v1alpha2/namespaces/{namespace}/leasecandidates/{name} | +[**replaceNamespacedLeaseCandidate**](CoordinationV1alpha2Api.md#replaceNamespacedLeaseCandidate) | **PUT** /apis/coordination.k8s.io/v1alpha2/namespaces/{namespace}/leasecandidates/{name} | + + + +# **createNamespacedLeaseCandidate** +> V1alpha2LeaseCandidate createNamespacedLeaseCandidate(namespace, body, pretty, dryRun, fieldManager, fieldValidation) + + + +create a LeaseCandidate + +### Example +```java +// Import classes: +import io.kubernetes.client.openapi.ApiClient; +import io.kubernetes.client.openapi.ApiException; +import io.kubernetes.client.openapi.Configuration; +import io.kubernetes.client.openapi.auth.*; +import io.kubernetes.client.openapi.models.*; +import io.kubernetes.client.openapi.apis.CoordinationV1alpha2Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + CoordinationV1alpha2Api apiInstance = new CoordinationV1alpha2Api(defaultClient); + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + V1alpha2LeaseCandidate body = new V1alpha2LeaseCandidate(); // V1alpha2LeaseCandidate | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + 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 fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. + try { + V1alpha2LeaseCandidate result = apiInstance.createNamespacedLeaseCandidate(namespace, body, pretty, dryRun, fieldManager, fieldValidation); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling CoordinationV1alpha2Api#createNamespacedLeaseCandidate"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **namespace** | **String**| object name and auth scope, such as for teams and projects | + **body** | [**V1alpha2LeaseCandidate**](V1alpha2LeaseCandidate.md)| | + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] + **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] + **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] + +### Return type + +[**V1alpha2LeaseCandidate**](V1alpha2LeaseCandidate.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + + +# **deleteCollectionNamespacedLeaseCandidate** +> V1Status deleteCollectionNamespacedLeaseCandidate(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body) + + + +delete collection of LeaseCandidate + +### Example +```java +// Import classes: +import io.kubernetes.client.openapi.ApiClient; +import io.kubernetes.client.openapi.ApiException; +import io.kubernetes.client.openapi.Configuration; +import io.kubernetes.client.openapi.auth.*; +import io.kubernetes.client.openapi.models.*; +import io.kubernetes.client.openapi.apis.CoordinationV1alpha2Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + CoordinationV1alpha2Api apiInstance = new CoordinationV1alpha2Api(defaultClient); + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + 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. + 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. + Integer gracePeriodSeconds = 56; // Integer | 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. + Boolean ignoreStoreReadErrorWithClusterBreakingPotential = true; // Boolean | if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it + String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. + Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + 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. 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. + String resourceVersion = "resourceVersion_example"; // String | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + String resourceVersionMatch = "resourceVersionMatch_example"; // String | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + Boolean sendInitialEvents = true; // Boolean | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | + try { + V1Status result = apiInstance.deleteCollectionNamespacedLeaseCandidate(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling CoordinationV1alpha2Api#deleteCollectionNamespacedLeaseCandidate"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **namespace** | **String**| object name and auth scope, such as for teams and projects | + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] + **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] + **gracePeriodSeconds** | **Integer**| 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. | [optional] + **ignoreStoreReadErrorWithClusterBreakingPotential** | **Boolean**| if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it | [optional] + **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] + **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] + **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. 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. | [optional] + **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] + **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] + **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] + **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] + +### Return type + +[**V1Status**](V1Status.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + + +# **deleteNamespacedLeaseCandidate** +> V1Status deleteNamespacedLeaseCandidate(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body) + + + +delete a LeaseCandidate + +### Example +```java +// Import classes: +import io.kubernetes.client.openapi.ApiClient; +import io.kubernetes.client.openapi.ApiException; +import io.kubernetes.client.openapi.Configuration; +import io.kubernetes.client.openapi.auth.*; +import io.kubernetes.client.openapi.models.*; +import io.kubernetes.client.openapi.apis.CoordinationV1alpha2Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + CoordinationV1alpha2Api apiInstance = new CoordinationV1alpha2Api(defaultClient); + String name = "name_example"; // String | name of the LeaseCandidate + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + 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 + Integer gracePeriodSeconds = 56; // Integer | 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. + Boolean ignoreStoreReadErrorWithClusterBreakingPotential = true; // Boolean | if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it + 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. 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. + V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | + try { + V1Status result = apiInstance.deleteNamespacedLeaseCandidate(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling CoordinationV1alpha2Api#deleteNamespacedLeaseCandidate"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **String**| name of the LeaseCandidate | + **namespace** | **String**| object name and auth scope, such as for teams and projects | + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] + **gracePeriodSeconds** | **Integer**| 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. | [optional] + **ignoreStoreReadErrorWithClusterBreakingPotential** | **Boolean**| if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it | [optional] + **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. 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. | [optional] + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] + +### Return type + +[**V1Status**](V1Status.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + + +# **getAPIResources** +> V1APIResourceList getAPIResources() + + + +get available resources + +### Example +```java +// Import classes: +import io.kubernetes.client.openapi.ApiClient; +import io.kubernetes.client.openapi.ApiException; +import io.kubernetes.client.openapi.Configuration; +import io.kubernetes.client.openapi.auth.*; +import io.kubernetes.client.openapi.models.*; +import io.kubernetes.client.openapi.apis.CoordinationV1alpha2Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + CoordinationV1alpha2Api apiInstance = new CoordinationV1alpha2Api(defaultClient); + try { + V1APIResourceList result = apiInstance.getAPIResources(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling CoordinationV1alpha2Api#getAPIResources"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters +This endpoint does not need any parameter. + +### Return type + +[**V1APIResourceList**](V1APIResourceList.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + + +# **listLeaseCandidateForAllNamespaces** +> V1alpha2LeaseCandidateList listLeaseCandidateForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch) + + + +list or watch objects of kind LeaseCandidate + +### Example +```java +// Import classes: +import io.kubernetes.client.openapi.ApiClient; +import io.kubernetes.client.openapi.ApiException; +import io.kubernetes.client.openapi.Configuration; +import io.kubernetes.client.openapi.auth.*; +import io.kubernetes.client.openapi.models.*; +import io.kubernetes.client.openapi.apis.CoordinationV1alpha2Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + CoordinationV1alpha2Api apiInstance = new CoordinationV1alpha2Api(defaultClient); + 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. + 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. + String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. + String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. + Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + String resourceVersion = "resourceVersion_example"; // String | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + String resourceVersionMatch = "resourceVersionMatch_example"; // String | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + Boolean sendInitialEvents = true; // Boolean | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + 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. Specify resourceVersion. + try { + V1alpha2LeaseCandidateList result = apiInstance.listLeaseCandidateForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling CoordinationV1alpha2Api#listLeaseCandidateForAllNamespaces"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **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. | [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] + **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] + **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] + **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] + **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] + **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] + **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] + **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + +### Return type + +[**V1alpha2LeaseCandidateList**](V1alpha2LeaseCandidateList.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch, application/cbor-seq + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + + +# **listNamespacedLeaseCandidate** +> V1alpha2LeaseCandidateList listNamespacedLeaseCandidate(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch) + + + +list or watch objects of kind LeaseCandidate + +### Example +```java +// Import classes: +import io.kubernetes.client.openapi.ApiClient; +import io.kubernetes.client.openapi.ApiException; +import io.kubernetes.client.openapi.Configuration; +import io.kubernetes.client.openapi.auth.*; +import io.kubernetes.client.openapi.models.*; +import io.kubernetes.client.openapi.apis.CoordinationV1alpha2Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + CoordinationV1alpha2Api apiInstance = new CoordinationV1alpha2Api(defaultClient); + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + 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. + 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. + String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. + String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. + Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + String resourceVersion = "resourceVersion_example"; // String | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + String resourceVersionMatch = "resourceVersionMatch_example"; // String | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + Boolean sendInitialEvents = true; // Boolean | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + 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. Specify resourceVersion. + try { + V1alpha2LeaseCandidateList result = apiInstance.listNamespacedLeaseCandidate(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling CoordinationV1alpha2Api#listNamespacedLeaseCandidate"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **namespace** | **String**| object name and auth scope, such as for teams and projects | + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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. | [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] + **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] + **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] + **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] + **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] + **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] + **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] + **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + +### Return type + +[**V1alpha2LeaseCandidateList**](V1alpha2LeaseCandidateList.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch, application/cbor-seq + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + + +# **patchNamespacedLeaseCandidate** +> V1alpha2LeaseCandidate patchNamespacedLeaseCandidate(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force) + + + +partially update the specified LeaseCandidate + +### Example +```java +// Import classes: +import io.kubernetes.client.openapi.ApiClient; +import io.kubernetes.client.openapi.ApiException; +import io.kubernetes.client.openapi.Configuration; +import io.kubernetes.client.openapi.auth.*; +import io.kubernetes.client.openapi.models.*; +import io.kubernetes.client.openapi.apis.CoordinationV1alpha2Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + CoordinationV1alpha2Api apiInstance = new CoordinationV1alpha2Api(defaultClient); + String name = "name_example"; // String | name of the LeaseCandidate + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + V1Patch body = new V1Patch(); // V1Patch | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + 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 fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). + String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. + Boolean force = true; // Boolean | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. + try { + V1alpha2LeaseCandidate result = apiInstance.patchNamespacedLeaseCandidate(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling CoordinationV1alpha2Api#patchNamespacedLeaseCandidate"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **String**| name of the LeaseCandidate | + **namespace** | **String**| object name and auth scope, such as for teams and projects | + **body** | **V1Patch**| | + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] + **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] + **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] + **force** | **Boolean**| Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | [optional] + +### Return type + +[**V1alpha2LeaseCandidate**](V1alpha2LeaseCandidate.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**401** | Unauthorized | - | + + +# **readNamespacedLeaseCandidate** +> V1alpha2LeaseCandidate readNamespacedLeaseCandidate(name, namespace, pretty) + + + +read the specified LeaseCandidate + +### Example +```java +// Import classes: +import io.kubernetes.client.openapi.ApiClient; +import io.kubernetes.client.openapi.ApiException; +import io.kubernetes.client.openapi.Configuration; +import io.kubernetes.client.openapi.auth.*; +import io.kubernetes.client.openapi.models.*; +import io.kubernetes.client.openapi.apis.CoordinationV1alpha2Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + CoordinationV1alpha2Api apiInstance = new CoordinationV1alpha2Api(defaultClient); + String name = "name_example"; // String | name of the LeaseCandidate + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + try { + V1alpha2LeaseCandidate result = apiInstance.readNamespacedLeaseCandidate(name, namespace, pretty); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling CoordinationV1alpha2Api#readNamespacedLeaseCandidate"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **String**| name of the LeaseCandidate | + **namespace** | **String**| object name and auth scope, such as for teams and projects | + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] + +### Return type + +[**V1alpha2LeaseCandidate**](V1alpha2LeaseCandidate.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + + +# **replaceNamespacedLeaseCandidate** +> V1alpha2LeaseCandidate replaceNamespacedLeaseCandidate(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation) + + + +replace the specified LeaseCandidate + +### Example +```java +// Import classes: +import io.kubernetes.client.openapi.ApiClient; +import io.kubernetes.client.openapi.ApiException; +import io.kubernetes.client.openapi.Configuration; +import io.kubernetes.client.openapi.auth.*; +import io.kubernetes.client.openapi.models.*; +import io.kubernetes.client.openapi.apis.CoordinationV1alpha2Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + CoordinationV1alpha2Api apiInstance = new CoordinationV1alpha2Api(defaultClient); + String name = "name_example"; // String | name of the LeaseCandidate + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + V1alpha2LeaseCandidate body = new V1alpha2LeaseCandidate(); // V1alpha2LeaseCandidate | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + 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 fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. + try { + V1alpha2LeaseCandidate result = apiInstance.replaceNamespacedLeaseCandidate(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling CoordinationV1alpha2Api#replaceNamespacedLeaseCandidate"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **String**| name of the LeaseCandidate | + **namespace** | **String**| object name and auth scope, such as for teams and projects | + **body** | [**V1alpha2LeaseCandidate**](V1alpha2LeaseCandidate.md)| | + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] + **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] + **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] + +### Return type + +[**V1alpha2LeaseCandidate**](V1alpha2LeaseCandidate.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**401** | Unauthorized | - | + diff --git a/kubernetes/docs/CoordinationV1beta1Api.md b/kubernetes/docs/CoordinationV1beta1Api.md new file mode 100644 index 0000000000..caa69b77d9 --- /dev/null +++ b/kubernetes/docs/CoordinationV1beta1Api.md @@ -0,0 +1,776 @@ +# CoordinationV1beta1Api + +All URIs are relative to *http://localhost* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**createNamespacedLeaseCandidate**](CoordinationV1beta1Api.md#createNamespacedLeaseCandidate) | **POST** /apis/coordination.k8s.io/v1beta1/namespaces/{namespace}/leasecandidates | +[**deleteCollectionNamespacedLeaseCandidate**](CoordinationV1beta1Api.md#deleteCollectionNamespacedLeaseCandidate) | **DELETE** /apis/coordination.k8s.io/v1beta1/namespaces/{namespace}/leasecandidates | +[**deleteNamespacedLeaseCandidate**](CoordinationV1beta1Api.md#deleteNamespacedLeaseCandidate) | **DELETE** /apis/coordination.k8s.io/v1beta1/namespaces/{namespace}/leasecandidates/{name} | +[**getAPIResources**](CoordinationV1beta1Api.md#getAPIResources) | **GET** /apis/coordination.k8s.io/v1beta1/ | +[**listLeaseCandidateForAllNamespaces**](CoordinationV1beta1Api.md#listLeaseCandidateForAllNamespaces) | **GET** /apis/coordination.k8s.io/v1beta1/leasecandidates | +[**listNamespacedLeaseCandidate**](CoordinationV1beta1Api.md#listNamespacedLeaseCandidate) | **GET** /apis/coordination.k8s.io/v1beta1/namespaces/{namespace}/leasecandidates | +[**patchNamespacedLeaseCandidate**](CoordinationV1beta1Api.md#patchNamespacedLeaseCandidate) | **PATCH** /apis/coordination.k8s.io/v1beta1/namespaces/{namespace}/leasecandidates/{name} | +[**readNamespacedLeaseCandidate**](CoordinationV1beta1Api.md#readNamespacedLeaseCandidate) | **GET** /apis/coordination.k8s.io/v1beta1/namespaces/{namespace}/leasecandidates/{name} | +[**replaceNamespacedLeaseCandidate**](CoordinationV1beta1Api.md#replaceNamespacedLeaseCandidate) | **PUT** /apis/coordination.k8s.io/v1beta1/namespaces/{namespace}/leasecandidates/{name} | + + + +# **createNamespacedLeaseCandidate** +> V1beta1LeaseCandidate createNamespacedLeaseCandidate(namespace, body, pretty, dryRun, fieldManager, fieldValidation) + + + +create a LeaseCandidate + +### Example +```java +// Import classes: +import io.kubernetes.client.openapi.ApiClient; +import io.kubernetes.client.openapi.ApiException; +import io.kubernetes.client.openapi.Configuration; +import io.kubernetes.client.openapi.auth.*; +import io.kubernetes.client.openapi.models.*; +import io.kubernetes.client.openapi.apis.CoordinationV1beta1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + CoordinationV1beta1Api apiInstance = new CoordinationV1beta1Api(defaultClient); + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + V1beta1LeaseCandidate body = new V1beta1LeaseCandidate(); // V1beta1LeaseCandidate | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + 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 fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. + try { + V1beta1LeaseCandidate result = apiInstance.createNamespacedLeaseCandidate(namespace, body, pretty, dryRun, fieldManager, fieldValidation); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling CoordinationV1beta1Api#createNamespacedLeaseCandidate"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **namespace** | **String**| object name and auth scope, such as for teams and projects | + **body** | [**V1beta1LeaseCandidate**](V1beta1LeaseCandidate.md)| | + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] + **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] + **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] + +### Return type + +[**V1beta1LeaseCandidate**](V1beta1LeaseCandidate.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + + +# **deleteCollectionNamespacedLeaseCandidate** +> V1Status deleteCollectionNamespacedLeaseCandidate(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body) + + + +delete collection of LeaseCandidate + +### Example +```java +// Import classes: +import io.kubernetes.client.openapi.ApiClient; +import io.kubernetes.client.openapi.ApiException; +import io.kubernetes.client.openapi.Configuration; +import io.kubernetes.client.openapi.auth.*; +import io.kubernetes.client.openapi.models.*; +import io.kubernetes.client.openapi.apis.CoordinationV1beta1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + CoordinationV1beta1Api apiInstance = new CoordinationV1beta1Api(defaultClient); + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + 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. + 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. + Integer gracePeriodSeconds = 56; // Integer | 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. + Boolean ignoreStoreReadErrorWithClusterBreakingPotential = true; // Boolean | if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it + String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. + Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + 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. 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. + String resourceVersion = "resourceVersion_example"; // String | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + String resourceVersionMatch = "resourceVersionMatch_example"; // String | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + Boolean sendInitialEvents = true; // Boolean | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | + try { + V1Status result = apiInstance.deleteCollectionNamespacedLeaseCandidate(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling CoordinationV1beta1Api#deleteCollectionNamespacedLeaseCandidate"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **namespace** | **String**| object name and auth scope, such as for teams and projects | + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] + **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] + **gracePeriodSeconds** | **Integer**| 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. | [optional] + **ignoreStoreReadErrorWithClusterBreakingPotential** | **Boolean**| if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it | [optional] + **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] + **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] + **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. 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. | [optional] + **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] + **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] + **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] + **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] + +### Return type + +[**V1Status**](V1Status.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + + +# **deleteNamespacedLeaseCandidate** +> V1Status deleteNamespacedLeaseCandidate(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body) + + + +delete a LeaseCandidate + +### Example +```java +// Import classes: +import io.kubernetes.client.openapi.ApiClient; +import io.kubernetes.client.openapi.ApiException; +import io.kubernetes.client.openapi.Configuration; +import io.kubernetes.client.openapi.auth.*; +import io.kubernetes.client.openapi.models.*; +import io.kubernetes.client.openapi.apis.CoordinationV1beta1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + CoordinationV1beta1Api apiInstance = new CoordinationV1beta1Api(defaultClient); + String name = "name_example"; // String | name of the LeaseCandidate + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + 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 + Integer gracePeriodSeconds = 56; // Integer | 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. + Boolean ignoreStoreReadErrorWithClusterBreakingPotential = true; // Boolean | if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it + 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. 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. + V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | + try { + V1Status result = apiInstance.deleteNamespacedLeaseCandidate(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling CoordinationV1beta1Api#deleteNamespacedLeaseCandidate"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **String**| name of the LeaseCandidate | + **namespace** | **String**| object name and auth scope, such as for teams and projects | + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] + **gracePeriodSeconds** | **Integer**| 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. | [optional] + **ignoreStoreReadErrorWithClusterBreakingPotential** | **Boolean**| if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it | [optional] + **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. 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. | [optional] + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] + +### Return type + +[**V1Status**](V1Status.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + + +# **getAPIResources** +> V1APIResourceList getAPIResources() + + + +get available resources + +### Example +```java +// Import classes: +import io.kubernetes.client.openapi.ApiClient; +import io.kubernetes.client.openapi.ApiException; +import io.kubernetes.client.openapi.Configuration; +import io.kubernetes.client.openapi.auth.*; +import io.kubernetes.client.openapi.models.*; +import io.kubernetes.client.openapi.apis.CoordinationV1beta1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + CoordinationV1beta1Api apiInstance = new CoordinationV1beta1Api(defaultClient); + try { + V1APIResourceList result = apiInstance.getAPIResources(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling CoordinationV1beta1Api#getAPIResources"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters +This endpoint does not need any parameter. + +### Return type + +[**V1APIResourceList**](V1APIResourceList.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + + +# **listLeaseCandidateForAllNamespaces** +> V1beta1LeaseCandidateList listLeaseCandidateForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch) + + + +list or watch objects of kind LeaseCandidate + +### Example +```java +// Import classes: +import io.kubernetes.client.openapi.ApiClient; +import io.kubernetes.client.openapi.ApiException; +import io.kubernetes.client.openapi.Configuration; +import io.kubernetes.client.openapi.auth.*; +import io.kubernetes.client.openapi.models.*; +import io.kubernetes.client.openapi.apis.CoordinationV1beta1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + CoordinationV1beta1Api apiInstance = new CoordinationV1beta1Api(defaultClient); + 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. + 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. + String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. + String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. + Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + String resourceVersion = "resourceVersion_example"; // String | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + String resourceVersionMatch = "resourceVersionMatch_example"; // String | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + Boolean sendInitialEvents = true; // Boolean | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + 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. Specify resourceVersion. + try { + V1beta1LeaseCandidateList result = apiInstance.listLeaseCandidateForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling CoordinationV1beta1Api#listLeaseCandidateForAllNamespaces"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **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. | [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] + **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] + **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] + **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] + **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] + **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] + **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] + **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + +### Return type + +[**V1beta1LeaseCandidateList**](V1beta1LeaseCandidateList.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch, application/cbor-seq + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + + +# **listNamespacedLeaseCandidate** +> V1beta1LeaseCandidateList listNamespacedLeaseCandidate(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch) + + + +list or watch objects of kind LeaseCandidate + +### Example +```java +// Import classes: +import io.kubernetes.client.openapi.ApiClient; +import io.kubernetes.client.openapi.ApiException; +import io.kubernetes.client.openapi.Configuration; +import io.kubernetes.client.openapi.auth.*; +import io.kubernetes.client.openapi.models.*; +import io.kubernetes.client.openapi.apis.CoordinationV1beta1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + CoordinationV1beta1Api apiInstance = new CoordinationV1beta1Api(defaultClient); + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + 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. + 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. + String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. + String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. + Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + String resourceVersion = "resourceVersion_example"; // String | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + String resourceVersionMatch = "resourceVersionMatch_example"; // String | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + Boolean sendInitialEvents = true; // Boolean | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + 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. Specify resourceVersion. + try { + V1beta1LeaseCandidateList result = apiInstance.listNamespacedLeaseCandidate(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling CoordinationV1beta1Api#listNamespacedLeaseCandidate"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **namespace** | **String**| object name and auth scope, such as for teams and projects | + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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. | [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] + **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] + **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] + **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] + **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] + **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] + **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] + **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + +### Return type + +[**V1beta1LeaseCandidateList**](V1beta1LeaseCandidateList.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch, application/cbor-seq + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + + +# **patchNamespacedLeaseCandidate** +> V1beta1LeaseCandidate patchNamespacedLeaseCandidate(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force) + + + +partially update the specified LeaseCandidate + +### Example +```java +// Import classes: +import io.kubernetes.client.openapi.ApiClient; +import io.kubernetes.client.openapi.ApiException; +import io.kubernetes.client.openapi.Configuration; +import io.kubernetes.client.openapi.auth.*; +import io.kubernetes.client.openapi.models.*; +import io.kubernetes.client.openapi.apis.CoordinationV1beta1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + CoordinationV1beta1Api apiInstance = new CoordinationV1beta1Api(defaultClient); + String name = "name_example"; // String | name of the LeaseCandidate + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + V1Patch body = new V1Patch(); // V1Patch | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + 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 fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). + String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. + Boolean force = true; // Boolean | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. + try { + V1beta1LeaseCandidate result = apiInstance.patchNamespacedLeaseCandidate(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling CoordinationV1beta1Api#patchNamespacedLeaseCandidate"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **String**| name of the LeaseCandidate | + **namespace** | **String**| object name and auth scope, such as for teams and projects | + **body** | **V1Patch**| | + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] + **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] + **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] + **force** | **Boolean**| Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | [optional] + +### Return type + +[**V1beta1LeaseCandidate**](V1beta1LeaseCandidate.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**401** | Unauthorized | - | + + +# **readNamespacedLeaseCandidate** +> V1beta1LeaseCandidate readNamespacedLeaseCandidate(name, namespace, pretty) + + + +read the specified LeaseCandidate + +### Example +```java +// Import classes: +import io.kubernetes.client.openapi.ApiClient; +import io.kubernetes.client.openapi.ApiException; +import io.kubernetes.client.openapi.Configuration; +import io.kubernetes.client.openapi.auth.*; +import io.kubernetes.client.openapi.models.*; +import io.kubernetes.client.openapi.apis.CoordinationV1beta1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + CoordinationV1beta1Api apiInstance = new CoordinationV1beta1Api(defaultClient); + String name = "name_example"; // String | name of the LeaseCandidate + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + try { + V1beta1LeaseCandidate result = apiInstance.readNamespacedLeaseCandidate(name, namespace, pretty); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling CoordinationV1beta1Api#readNamespacedLeaseCandidate"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **String**| name of the LeaseCandidate | + **namespace** | **String**| object name and auth scope, such as for teams and projects | + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] + +### Return type + +[**V1beta1LeaseCandidate**](V1beta1LeaseCandidate.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + + +# **replaceNamespacedLeaseCandidate** +> V1beta1LeaseCandidate replaceNamespacedLeaseCandidate(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation) + + + +replace the specified LeaseCandidate + +### Example +```java +// Import classes: +import io.kubernetes.client.openapi.ApiClient; +import io.kubernetes.client.openapi.ApiException; +import io.kubernetes.client.openapi.Configuration; +import io.kubernetes.client.openapi.auth.*; +import io.kubernetes.client.openapi.models.*; +import io.kubernetes.client.openapi.apis.CoordinationV1beta1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + CoordinationV1beta1Api apiInstance = new CoordinationV1beta1Api(defaultClient); + String name = "name_example"; // String | name of the LeaseCandidate + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + V1beta1LeaseCandidate body = new V1beta1LeaseCandidate(); // V1beta1LeaseCandidate | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + 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 fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. + try { + V1beta1LeaseCandidate result = apiInstance.replaceNamespacedLeaseCandidate(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling CoordinationV1beta1Api#replaceNamespacedLeaseCandidate"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **String**| name of the LeaseCandidate | + **namespace** | **String**| object name and auth scope, such as for teams and projects | + **body** | [**V1beta1LeaseCandidate**](V1beta1LeaseCandidate.md)| | + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] + **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] + **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] + +### Return type + +[**V1beta1LeaseCandidate**](V1beta1LeaseCandidate.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**401** | Unauthorized | - | + diff --git a/kubernetes/docs/CoreV1Api.md b/kubernetes/docs/CoreV1Api.md index 5d0a91ef47..b645c33bd2 100644 --- a/kubernetes/docs/CoreV1Api.md +++ b/kubernetes/docs/CoreV1Api.md @@ -139,6 +139,7 @@ Method | HTTP request | Description [**patchNamespacedPersistentVolumeClaimStatus**](CoreV1Api.md#patchNamespacedPersistentVolumeClaimStatus) | **PATCH** /api/v1/namespaces/{namespace}/persistentvolumeclaims/{name}/status | [**patchNamespacedPod**](CoreV1Api.md#patchNamespacedPod) | **PATCH** /api/v1/namespaces/{namespace}/pods/{name} | [**patchNamespacedPodEphemeralcontainers**](CoreV1Api.md#patchNamespacedPodEphemeralcontainers) | **PATCH** /api/v1/namespaces/{namespace}/pods/{name}/ephemeralcontainers | +[**patchNamespacedPodResize**](CoreV1Api.md#patchNamespacedPodResize) | **PATCH** /api/v1/namespaces/{namespace}/pods/{name}/resize | [**patchNamespacedPodStatus**](CoreV1Api.md#patchNamespacedPodStatus) | **PATCH** /api/v1/namespaces/{namespace}/pods/{name}/status | [**patchNamespacedPodTemplate**](CoreV1Api.md#patchNamespacedPodTemplate) | **PATCH** /api/v1/namespaces/{namespace}/podtemplates/{name} | [**patchNamespacedReplicationController**](CoreV1Api.md#patchNamespacedReplicationController) | **PATCH** /api/v1/namespaces/{namespace}/replicationcontrollers/{name} | @@ -166,6 +167,7 @@ Method | HTTP request | Description [**readNamespacedPod**](CoreV1Api.md#readNamespacedPod) | **GET** /api/v1/namespaces/{namespace}/pods/{name} | [**readNamespacedPodEphemeralcontainers**](CoreV1Api.md#readNamespacedPodEphemeralcontainers) | **GET** /api/v1/namespaces/{namespace}/pods/{name}/ephemeralcontainers | [**readNamespacedPodLog**](CoreV1Api.md#readNamespacedPodLog) | **GET** /api/v1/namespaces/{namespace}/pods/{name}/log | +[**readNamespacedPodResize**](CoreV1Api.md#readNamespacedPodResize) | **GET** /api/v1/namespaces/{namespace}/pods/{name}/resize | [**readNamespacedPodStatus**](CoreV1Api.md#readNamespacedPodStatus) | **GET** /api/v1/namespaces/{namespace}/pods/{name}/status | [**readNamespacedPodTemplate**](CoreV1Api.md#readNamespacedPodTemplate) | **GET** /api/v1/namespaces/{namespace}/podtemplates/{name} | [**readNamespacedReplicationController**](CoreV1Api.md#readNamespacedReplicationController) | **GET** /api/v1/namespaces/{namespace}/replicationcontrollers/{name} | @@ -192,6 +194,7 @@ Method | HTTP request | Description [**replaceNamespacedPersistentVolumeClaimStatus**](CoreV1Api.md#replaceNamespacedPersistentVolumeClaimStatus) | **PUT** /api/v1/namespaces/{namespace}/persistentvolumeclaims/{name}/status | [**replaceNamespacedPod**](CoreV1Api.md#replaceNamespacedPod) | **PUT** /api/v1/namespaces/{namespace}/pods/{name} | [**replaceNamespacedPodEphemeralcontainers**](CoreV1Api.md#replaceNamespacedPodEphemeralcontainers) | **PUT** /api/v1/namespaces/{namespace}/pods/{name}/ephemeralcontainers | +[**replaceNamespacedPodResize**](CoreV1Api.md#replaceNamespacedPodResize) | **PUT** /api/v1/namespaces/{namespace}/pods/{name}/resize | [**replaceNamespacedPodStatus**](CoreV1Api.md#replaceNamespacedPodStatus) | **PUT** /api/v1/namespaces/{namespace}/pods/{name}/status | [**replaceNamespacedPodTemplate**](CoreV1Api.md#replaceNamespacedPodTemplate) | **PUT** /api/v1/namespaces/{namespace}/podtemplates/{name} | [**replaceNamespacedReplicationController**](CoreV1Api.md#replaceNamespacedReplicationController) | **PUT** /api/v1/namespaces/{namespace}/replicationcontrollers/{name} | @@ -3842,7 +3845,7 @@ public class Example { CoreV1Api apiInstance = new CoreV1Api(defaultClient); V1Namespace body = new V1Namespace(); // V1Namespace | - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). 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 fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. @@ -3865,7 +3868,7 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **body** | [**V1Namespace**](V1Namespace.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] @@ -3881,7 +3884,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -3926,7 +3929,7 @@ public class Example { 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 fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). try { V1Binding result = apiInstance.createNamespacedBinding(namespace, body, dryRun, fieldManager, fieldValidation, pretty); System.out.println(result); @@ -3950,7 +3953,7 @@ Name | Type | Description | Notes **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] **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] ### Return type @@ -3963,7 +3966,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -4005,7 +4008,7 @@ public class Example { CoreV1Api apiInstance = new CoreV1Api(defaultClient); String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects V1ConfigMap body = new V1ConfigMap(); // V1ConfigMap | - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). 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 fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. @@ -4029,7 +4032,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **namespace** | **String**| object name and auth scope, such as for teams and projects | **body** | [**V1ConfigMap**](V1ConfigMap.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] @@ -4045,7 +4048,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -4087,7 +4090,7 @@ public class Example { CoreV1Api apiInstance = new CoreV1Api(defaultClient); String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects V1Endpoints body = new V1Endpoints(); // V1Endpoints | - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). 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 fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. @@ -4111,7 +4114,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **namespace** | **String**| object name and auth scope, such as for teams and projects | **body** | [**V1Endpoints**](V1Endpoints.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] @@ -4127,7 +4130,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -4169,7 +4172,7 @@ public class Example { CoreV1Api apiInstance = new CoreV1Api(defaultClient); String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects CoreV1Event body = new CoreV1Event(); // CoreV1Event | - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). 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 fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. @@ -4193,7 +4196,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **namespace** | **String**| object name and auth scope, such as for teams and projects | **body** | [**CoreV1Event**](CoreV1Event.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] @@ -4209,7 +4212,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -4251,7 +4254,7 @@ public class Example { CoreV1Api apiInstance = new CoreV1Api(defaultClient); String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects V1LimitRange body = new V1LimitRange(); // V1LimitRange | - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). 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 fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. @@ -4275,7 +4278,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **namespace** | **String**| object name and auth scope, such as for teams and projects | **body** | [**V1LimitRange**](V1LimitRange.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] @@ -4291,7 +4294,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -4333,7 +4336,7 @@ public class Example { CoreV1Api apiInstance = new CoreV1Api(defaultClient); String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects V1PersistentVolumeClaim body = new V1PersistentVolumeClaim(); // V1PersistentVolumeClaim | - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). 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 fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. @@ -4357,7 +4360,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **namespace** | **String**| object name and auth scope, such as for teams and projects | **body** | [**V1PersistentVolumeClaim**](V1PersistentVolumeClaim.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] @@ -4373,7 +4376,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -4415,7 +4418,7 @@ public class Example { CoreV1Api apiInstance = new CoreV1Api(defaultClient); String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects V1Pod body = new V1Pod(); // V1Pod | - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). 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 fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. @@ -4439,7 +4442,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **namespace** | **String**| object name and auth scope, such as for teams and projects | **body** | [**V1Pod**](V1Pod.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] @@ -4455,7 +4458,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -4501,7 +4504,7 @@ public class Example { 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 fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). try { V1Binding result = apiInstance.createNamespacedPodBinding(name, namespace, body, dryRun, fieldManager, fieldValidation, pretty); System.out.println(result); @@ -4526,7 +4529,7 @@ Name | Type | Description | Notes **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] **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] ### Return type @@ -4539,7 +4542,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -4585,7 +4588,7 @@ public class Example { 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 fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). try { V1Eviction result = apiInstance.createNamespacedPodEviction(name, namespace, body, dryRun, fieldManager, fieldValidation, pretty); System.out.println(result); @@ -4610,7 +4613,7 @@ Name | Type | Description | Notes **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] **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] ### Return type @@ -4623,7 +4626,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -4665,7 +4668,7 @@ public class Example { CoreV1Api apiInstance = new CoreV1Api(defaultClient); String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects V1PodTemplate body = new V1PodTemplate(); // V1PodTemplate | - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). 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 fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. @@ -4689,7 +4692,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **namespace** | **String**| object name and auth scope, such as for teams and projects | **body** | [**V1PodTemplate**](V1PodTemplate.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] @@ -4705,7 +4708,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -4747,7 +4750,7 @@ public class Example { CoreV1Api apiInstance = new CoreV1Api(defaultClient); String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects V1ReplicationController body = new V1ReplicationController(); // V1ReplicationController | - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). 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 fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. @@ -4771,7 +4774,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **namespace** | **String**| object name and auth scope, such as for teams and projects | **body** | [**V1ReplicationController**](V1ReplicationController.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] @@ -4787,7 +4790,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -4829,7 +4832,7 @@ public class Example { CoreV1Api apiInstance = new CoreV1Api(defaultClient); String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects V1ResourceQuota body = new V1ResourceQuota(); // V1ResourceQuota | - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). 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 fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. @@ -4853,7 +4856,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **namespace** | **String**| object name and auth scope, such as for teams and projects | **body** | [**V1ResourceQuota**](V1ResourceQuota.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] @@ -4869,7 +4872,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -4911,7 +4914,7 @@ public class Example { CoreV1Api apiInstance = new CoreV1Api(defaultClient); String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects V1Secret body = new V1Secret(); // V1Secret | - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). 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 fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. @@ -4935,7 +4938,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **namespace** | **String**| object name and auth scope, such as for teams and projects | **body** | [**V1Secret**](V1Secret.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] @@ -4951,7 +4954,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -4993,7 +4996,7 @@ public class Example { CoreV1Api apiInstance = new CoreV1Api(defaultClient); String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects V1Service body = new V1Service(); // V1Service | - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). 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 fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. @@ -5017,7 +5020,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **namespace** | **String**| object name and auth scope, such as for teams and projects | **body** | [**V1Service**](V1Service.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] @@ -5033,7 +5036,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -5075,7 +5078,7 @@ public class Example { CoreV1Api apiInstance = new CoreV1Api(defaultClient); String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects V1ServiceAccount body = new V1ServiceAccount(); // V1ServiceAccount | - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). 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 fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. @@ -5099,7 +5102,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **namespace** | **String**| object name and auth scope, such as for teams and projects | **body** | [**V1ServiceAccount**](V1ServiceAccount.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] @@ -5115,7 +5118,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -5161,7 +5164,7 @@ public class Example { 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 fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). try { AuthenticationV1TokenRequest result = apiInstance.createNamespacedServiceAccountToken(name, namespace, body, dryRun, fieldManager, fieldValidation, pretty); System.out.println(result); @@ -5186,7 +5189,7 @@ Name | Type | Description | Notes **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] **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] ### Return type @@ -5199,7 +5202,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -5240,7 +5243,7 @@ public class Example { CoreV1Api apiInstance = new CoreV1Api(defaultClient); V1Node body = new V1Node(); // V1Node | - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). 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 fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. @@ -5263,7 +5266,7 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **body** | [**V1Node**](V1Node.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] @@ -5279,7 +5282,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -5320,7 +5323,7 @@ public class Example { CoreV1Api apiInstance = new CoreV1Api(defaultClient); V1PersistentVolume body = new V1PersistentVolume(); // V1PersistentVolume | - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). 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 fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. @@ -5343,7 +5346,7 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **body** | [**V1PersistentVolume**](V1PersistentVolume.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] @@ -5359,7 +5362,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -5371,7 +5374,7 @@ Name | Type | Description | Notes # **deleteCollectionNamespacedConfigMap** -> V1Status deleteCollectionNamespacedConfigMap(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body) +> V1Status deleteCollectionNamespacedConfigMap(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body) @@ -5400,11 +5403,12 @@ public class Example { CoreV1Api apiInstance = new CoreV1Api(defaultClient); String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). 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. 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. Integer gracePeriodSeconds = 56; // Integer | 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. + Boolean ignoreStoreReadErrorWithClusterBreakingPotential = true; // Boolean | if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. 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. @@ -5415,7 +5419,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. V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | try { - V1Status result = apiInstance.deleteCollectionNamespacedConfigMap(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); + V1Status result = apiInstance.deleteCollectionNamespacedConfigMap(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling CoreV1Api#deleteCollectionNamespacedConfigMap"); @@ -5433,11 +5437,12 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **namespace** | **String**| object name and auth scope, such as for teams and projects | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] **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] **gracePeriodSeconds** | **Integer**| 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. | [optional] + **ignoreStoreReadErrorWithClusterBreakingPotential** | **Boolean**| if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it | [optional] **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] **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] @@ -5459,7 +5464,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -5469,7 +5474,7 @@ Name | Type | Description | Notes # **deleteCollectionNamespacedEndpoints** -> V1Status deleteCollectionNamespacedEndpoints(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body) +> V1Status deleteCollectionNamespacedEndpoints(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body) @@ -5498,11 +5503,12 @@ public class Example { CoreV1Api apiInstance = new CoreV1Api(defaultClient); String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). 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. 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. Integer gracePeriodSeconds = 56; // Integer | 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. + Boolean ignoreStoreReadErrorWithClusterBreakingPotential = true; // Boolean | if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. 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. @@ -5513,7 +5519,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. V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | try { - V1Status result = apiInstance.deleteCollectionNamespacedEndpoints(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); + V1Status result = apiInstance.deleteCollectionNamespacedEndpoints(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling CoreV1Api#deleteCollectionNamespacedEndpoints"); @@ -5531,11 +5537,12 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **namespace** | **String**| object name and auth scope, such as for teams and projects | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] **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] **gracePeriodSeconds** | **Integer**| 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. | [optional] + **ignoreStoreReadErrorWithClusterBreakingPotential** | **Boolean**| if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it | [optional] **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] **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] @@ -5557,7 +5564,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -5567,7 +5574,7 @@ Name | Type | Description | Notes # **deleteCollectionNamespacedEvent** -> V1Status deleteCollectionNamespacedEvent(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body) +> V1Status deleteCollectionNamespacedEvent(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body) @@ -5596,11 +5603,12 @@ public class Example { CoreV1Api apiInstance = new CoreV1Api(defaultClient); String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). 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. 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. Integer gracePeriodSeconds = 56; // Integer | 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. + Boolean ignoreStoreReadErrorWithClusterBreakingPotential = true; // Boolean | if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. 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. @@ -5611,7 +5619,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. V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | try { - V1Status result = apiInstance.deleteCollectionNamespacedEvent(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); + V1Status result = apiInstance.deleteCollectionNamespacedEvent(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling CoreV1Api#deleteCollectionNamespacedEvent"); @@ -5629,11 +5637,12 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **namespace** | **String**| object name and auth scope, such as for teams and projects | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] **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] **gracePeriodSeconds** | **Integer**| 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. | [optional] + **ignoreStoreReadErrorWithClusterBreakingPotential** | **Boolean**| if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it | [optional] **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] **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] @@ -5655,7 +5664,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -5665,7 +5674,7 @@ Name | Type | Description | Notes # **deleteCollectionNamespacedLimitRange** -> V1Status deleteCollectionNamespacedLimitRange(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body) +> V1Status deleteCollectionNamespacedLimitRange(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body) @@ -5694,11 +5703,12 @@ public class Example { CoreV1Api apiInstance = new CoreV1Api(defaultClient); String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). 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. 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. Integer gracePeriodSeconds = 56; // Integer | 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. + Boolean ignoreStoreReadErrorWithClusterBreakingPotential = true; // Boolean | if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. 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. @@ -5709,7 +5719,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. V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | try { - V1Status result = apiInstance.deleteCollectionNamespacedLimitRange(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); + V1Status result = apiInstance.deleteCollectionNamespacedLimitRange(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling CoreV1Api#deleteCollectionNamespacedLimitRange"); @@ -5727,11 +5737,12 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **namespace** | **String**| object name and auth scope, such as for teams and projects | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] **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] **gracePeriodSeconds** | **Integer**| 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. | [optional] + **ignoreStoreReadErrorWithClusterBreakingPotential** | **Boolean**| if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it | [optional] **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] **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] @@ -5753,7 +5764,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -5763,7 +5774,7 @@ Name | Type | Description | Notes # **deleteCollectionNamespacedPersistentVolumeClaim** -> V1Status deleteCollectionNamespacedPersistentVolumeClaim(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body) +> V1Status deleteCollectionNamespacedPersistentVolumeClaim(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body) @@ -5792,11 +5803,12 @@ public class Example { CoreV1Api apiInstance = new CoreV1Api(defaultClient); String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). 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. 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. Integer gracePeriodSeconds = 56; // Integer | 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. + Boolean ignoreStoreReadErrorWithClusterBreakingPotential = true; // Boolean | if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. 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. @@ -5807,7 +5819,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. V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | try { - V1Status result = apiInstance.deleteCollectionNamespacedPersistentVolumeClaim(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); + V1Status result = apiInstance.deleteCollectionNamespacedPersistentVolumeClaim(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling CoreV1Api#deleteCollectionNamespacedPersistentVolumeClaim"); @@ -5825,11 +5837,12 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **namespace** | **String**| object name and auth scope, such as for teams and projects | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] **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] **gracePeriodSeconds** | **Integer**| 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. | [optional] + **ignoreStoreReadErrorWithClusterBreakingPotential** | **Boolean**| if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it | [optional] **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] **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] @@ -5851,7 +5864,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -5861,7 +5874,7 @@ Name | Type | Description | Notes # **deleteCollectionNamespacedPod** -> V1Status deleteCollectionNamespacedPod(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body) +> V1Status deleteCollectionNamespacedPod(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body) @@ -5890,11 +5903,12 @@ public class Example { CoreV1Api apiInstance = new CoreV1Api(defaultClient); String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). 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. 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. Integer gracePeriodSeconds = 56; // Integer | 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. + Boolean ignoreStoreReadErrorWithClusterBreakingPotential = true; // Boolean | if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. 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. @@ -5905,7 +5919,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. V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | try { - V1Status result = apiInstance.deleteCollectionNamespacedPod(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); + V1Status result = apiInstance.deleteCollectionNamespacedPod(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling CoreV1Api#deleteCollectionNamespacedPod"); @@ -5923,11 +5937,12 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **namespace** | **String**| object name and auth scope, such as for teams and projects | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] **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] **gracePeriodSeconds** | **Integer**| 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. | [optional] + **ignoreStoreReadErrorWithClusterBreakingPotential** | **Boolean**| if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it | [optional] **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] **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] @@ -5949,7 +5964,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -5959,7 +5974,7 @@ Name | Type | Description | Notes # **deleteCollectionNamespacedPodTemplate** -> V1Status deleteCollectionNamespacedPodTemplate(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body) +> V1Status deleteCollectionNamespacedPodTemplate(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body) @@ -5988,11 +6003,12 @@ public class Example { CoreV1Api apiInstance = new CoreV1Api(defaultClient); String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). 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. 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. Integer gracePeriodSeconds = 56; // Integer | 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. + Boolean ignoreStoreReadErrorWithClusterBreakingPotential = true; // Boolean | if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. 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. @@ -6003,7 +6019,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. V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | try { - V1Status result = apiInstance.deleteCollectionNamespacedPodTemplate(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); + V1Status result = apiInstance.deleteCollectionNamespacedPodTemplate(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling CoreV1Api#deleteCollectionNamespacedPodTemplate"); @@ -6021,11 +6037,12 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **namespace** | **String**| object name and auth scope, such as for teams and projects | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] **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] **gracePeriodSeconds** | **Integer**| 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. | [optional] + **ignoreStoreReadErrorWithClusterBreakingPotential** | **Boolean**| if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it | [optional] **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] **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] @@ -6047,7 +6064,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -6057,7 +6074,7 @@ Name | Type | Description | Notes # **deleteCollectionNamespacedReplicationController** -> V1Status deleteCollectionNamespacedReplicationController(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body) +> V1Status deleteCollectionNamespacedReplicationController(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body) @@ -6086,11 +6103,12 @@ public class Example { CoreV1Api apiInstance = new CoreV1Api(defaultClient); String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). 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. 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. Integer gracePeriodSeconds = 56; // Integer | 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. + Boolean ignoreStoreReadErrorWithClusterBreakingPotential = true; // Boolean | if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. 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. @@ -6101,7 +6119,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. V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | try { - V1Status result = apiInstance.deleteCollectionNamespacedReplicationController(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); + V1Status result = apiInstance.deleteCollectionNamespacedReplicationController(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling CoreV1Api#deleteCollectionNamespacedReplicationController"); @@ -6119,11 +6137,12 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **namespace** | **String**| object name and auth scope, such as for teams and projects | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] **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] **gracePeriodSeconds** | **Integer**| 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. | [optional] + **ignoreStoreReadErrorWithClusterBreakingPotential** | **Boolean**| if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it | [optional] **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] **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] @@ -6145,7 +6164,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -6155,7 +6174,7 @@ Name | Type | Description | Notes # **deleteCollectionNamespacedResourceQuota** -> V1Status deleteCollectionNamespacedResourceQuota(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body) +> V1Status deleteCollectionNamespacedResourceQuota(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body) @@ -6184,11 +6203,12 @@ public class Example { CoreV1Api apiInstance = new CoreV1Api(defaultClient); String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). 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. 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. Integer gracePeriodSeconds = 56; // Integer | 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. + Boolean ignoreStoreReadErrorWithClusterBreakingPotential = true; // Boolean | if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. 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. @@ -6199,7 +6219,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. V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | try { - V1Status result = apiInstance.deleteCollectionNamespacedResourceQuota(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); + V1Status result = apiInstance.deleteCollectionNamespacedResourceQuota(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling CoreV1Api#deleteCollectionNamespacedResourceQuota"); @@ -6217,11 +6237,12 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **namespace** | **String**| object name and auth scope, such as for teams and projects | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] **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] **gracePeriodSeconds** | **Integer**| 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. | [optional] + **ignoreStoreReadErrorWithClusterBreakingPotential** | **Boolean**| if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it | [optional] **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] **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] @@ -6243,7 +6264,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -6253,7 +6274,7 @@ Name | Type | Description | Notes # **deleteCollectionNamespacedSecret** -> V1Status deleteCollectionNamespacedSecret(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body) +> V1Status deleteCollectionNamespacedSecret(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body) @@ -6282,11 +6303,12 @@ public class Example { CoreV1Api apiInstance = new CoreV1Api(defaultClient); String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). 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. 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. Integer gracePeriodSeconds = 56; // Integer | 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. + Boolean ignoreStoreReadErrorWithClusterBreakingPotential = true; // Boolean | if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. 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. @@ -6297,7 +6319,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. V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | try { - V1Status result = apiInstance.deleteCollectionNamespacedSecret(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); + V1Status result = apiInstance.deleteCollectionNamespacedSecret(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling CoreV1Api#deleteCollectionNamespacedSecret"); @@ -6315,11 +6337,12 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **namespace** | **String**| object name and auth scope, such as for teams and projects | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] **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] **gracePeriodSeconds** | **Integer**| 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. | [optional] + **ignoreStoreReadErrorWithClusterBreakingPotential** | **Boolean**| if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it | [optional] **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] **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] @@ -6341,7 +6364,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -6351,7 +6374,7 @@ Name | Type | Description | Notes # **deleteCollectionNamespacedService** -> V1Status deleteCollectionNamespacedService(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body) +> V1Status deleteCollectionNamespacedService(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body) @@ -6380,11 +6403,12 @@ public class Example { CoreV1Api apiInstance = new CoreV1Api(defaultClient); String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). 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. 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. Integer gracePeriodSeconds = 56; // Integer | 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. + Boolean ignoreStoreReadErrorWithClusterBreakingPotential = true; // Boolean | if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. 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. @@ -6395,7 +6419,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. V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | try { - V1Status result = apiInstance.deleteCollectionNamespacedService(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); + V1Status result = apiInstance.deleteCollectionNamespacedService(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling CoreV1Api#deleteCollectionNamespacedService"); @@ -6413,11 +6437,12 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **namespace** | **String**| object name and auth scope, such as for teams and projects | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] **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] **gracePeriodSeconds** | **Integer**| 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. | [optional] + **ignoreStoreReadErrorWithClusterBreakingPotential** | **Boolean**| if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it | [optional] **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] **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] @@ -6439,7 +6464,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -6449,7 +6474,7 @@ Name | Type | Description | Notes # **deleteCollectionNamespacedServiceAccount** -> V1Status deleteCollectionNamespacedServiceAccount(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body) +> V1Status deleteCollectionNamespacedServiceAccount(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body) @@ -6478,11 +6503,12 @@ public class Example { CoreV1Api apiInstance = new CoreV1Api(defaultClient); String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). 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. 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. Integer gracePeriodSeconds = 56; // Integer | 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. + Boolean ignoreStoreReadErrorWithClusterBreakingPotential = true; // Boolean | if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. 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. @@ -6493,7 +6519,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. V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | try { - V1Status result = apiInstance.deleteCollectionNamespacedServiceAccount(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); + V1Status result = apiInstance.deleteCollectionNamespacedServiceAccount(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling CoreV1Api#deleteCollectionNamespacedServiceAccount"); @@ -6511,11 +6537,12 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **namespace** | **String**| object name and auth scope, such as for teams and projects | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] **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] **gracePeriodSeconds** | **Integer**| 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. | [optional] + **ignoreStoreReadErrorWithClusterBreakingPotential** | **Boolean**| if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it | [optional] **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] **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] @@ -6537,7 +6564,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -6547,7 +6574,7 @@ Name | Type | Description | Notes # **deleteCollectionNode** -> V1Status deleteCollectionNode(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body) +> V1Status deleteCollectionNode(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body) @@ -6575,11 +6602,12 @@ public class Example { //BearerToken.setApiKeyPrefix("Token"); CoreV1Api apiInstance = new CoreV1Api(defaultClient); - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). 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. 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. Integer gracePeriodSeconds = 56; // Integer | 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. + Boolean ignoreStoreReadErrorWithClusterBreakingPotential = true; // Boolean | if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. 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. @@ -6590,7 +6618,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. V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | try { - V1Status result = apiInstance.deleteCollectionNode(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); + V1Status result = apiInstance.deleteCollectionNode(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling CoreV1Api#deleteCollectionNode"); @@ -6607,11 +6635,12 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] **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] **gracePeriodSeconds** | **Integer**| 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. | [optional] + **ignoreStoreReadErrorWithClusterBreakingPotential** | **Boolean**| if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it | [optional] **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] **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] @@ -6633,7 +6662,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -6643,7 +6672,7 @@ Name | Type | Description | Notes # **deleteCollectionPersistentVolume** -> V1Status deleteCollectionPersistentVolume(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body) +> V1Status deleteCollectionPersistentVolume(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body) @@ -6671,11 +6700,12 @@ public class Example { //BearerToken.setApiKeyPrefix("Token"); CoreV1Api apiInstance = new CoreV1Api(defaultClient); - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). 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. 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. Integer gracePeriodSeconds = 56; // Integer | 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. + Boolean ignoreStoreReadErrorWithClusterBreakingPotential = true; // Boolean | if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. 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. @@ -6686,7 +6716,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. V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | try { - V1Status result = apiInstance.deleteCollectionPersistentVolume(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); + V1Status result = apiInstance.deleteCollectionPersistentVolume(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling CoreV1Api#deleteCollectionPersistentVolume"); @@ -6703,11 +6733,12 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] **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] **gracePeriodSeconds** | **Integer**| 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. | [optional] + **ignoreStoreReadErrorWithClusterBreakingPotential** | **Boolean**| if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it | [optional] **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] **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] @@ -6729,7 +6760,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -6739,7 +6770,7 @@ Name | Type | Description | Notes # **deleteNamespace** -> V1Status deleteNamespace(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body) +> V1Status deleteNamespace(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body) @@ -6768,14 +6799,15 @@ public class Example { CoreV1Api apiInstance = new CoreV1Api(defaultClient); String name = "name_example"; // String | name of the Namespace - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). 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 Integer gracePeriodSeconds = 56; // Integer | 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. + Boolean ignoreStoreReadErrorWithClusterBreakingPotential = true; // Boolean | if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it 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. 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. V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | try { - V1Status result = apiInstance.deleteNamespace(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body); + V1Status result = apiInstance.deleteNamespace(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling CoreV1Api#deleteNamespace"); @@ -6793,9 +6825,10 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **String**| name of the Namespace | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] **gracePeriodSeconds** | **Integer**| 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. | [optional] + **ignoreStoreReadErrorWithClusterBreakingPotential** | **Boolean**| if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it | [optional] **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. 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. | [optional] **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] @@ -6811,7 +6844,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -6822,7 +6855,7 @@ Name | Type | Description | Notes # **deleteNamespacedConfigMap** -> V1Status deleteNamespacedConfigMap(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body) +> V1Status deleteNamespacedConfigMap(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body) @@ -6852,14 +6885,15 @@ public class Example { CoreV1Api apiInstance = new CoreV1Api(defaultClient); String name = "name_example"; // String | name of the ConfigMap String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). 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 Integer gracePeriodSeconds = 56; // Integer | 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. + Boolean ignoreStoreReadErrorWithClusterBreakingPotential = true; // Boolean | if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it 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. 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. V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | try { - V1Status result = apiInstance.deleteNamespacedConfigMap(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body); + V1Status result = apiInstance.deleteNamespacedConfigMap(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling CoreV1Api#deleteNamespacedConfigMap"); @@ -6878,9 +6912,10 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **String**| name of the ConfigMap | **namespace** | **String**| object name and auth scope, such as for teams and projects | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] **gracePeriodSeconds** | **Integer**| 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. | [optional] + **ignoreStoreReadErrorWithClusterBreakingPotential** | **Boolean**| if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it | [optional] **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. 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. | [optional] **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] @@ -6896,7 +6931,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -6907,7 +6942,7 @@ Name | Type | Description | Notes # **deleteNamespacedEndpoints** -> V1Status deleteNamespacedEndpoints(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body) +> V1Status deleteNamespacedEndpoints(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body) @@ -6937,14 +6972,15 @@ public class Example { CoreV1Api apiInstance = new CoreV1Api(defaultClient); String name = "name_example"; // String | name of the Endpoints String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). 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 Integer gracePeriodSeconds = 56; // Integer | 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. + Boolean ignoreStoreReadErrorWithClusterBreakingPotential = true; // Boolean | if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it 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. 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. V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | try { - V1Status result = apiInstance.deleteNamespacedEndpoints(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body); + V1Status result = apiInstance.deleteNamespacedEndpoints(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling CoreV1Api#deleteNamespacedEndpoints"); @@ -6963,9 +6999,10 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **String**| name of the Endpoints | **namespace** | **String**| object name and auth scope, such as for teams and projects | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] **gracePeriodSeconds** | **Integer**| 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. | [optional] + **ignoreStoreReadErrorWithClusterBreakingPotential** | **Boolean**| if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it | [optional] **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. 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. | [optional] **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] @@ -6981,7 +7018,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -6992,7 +7029,7 @@ Name | Type | Description | Notes # **deleteNamespacedEvent** -> V1Status deleteNamespacedEvent(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body) +> V1Status deleteNamespacedEvent(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body) @@ -7022,14 +7059,15 @@ public class Example { CoreV1Api apiInstance = new CoreV1Api(defaultClient); String name = "name_example"; // String | name of the Event String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). 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 Integer gracePeriodSeconds = 56; // Integer | 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. + Boolean ignoreStoreReadErrorWithClusterBreakingPotential = true; // Boolean | if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it 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. 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. V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | try { - V1Status result = apiInstance.deleteNamespacedEvent(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body); + V1Status result = apiInstance.deleteNamespacedEvent(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling CoreV1Api#deleteNamespacedEvent"); @@ -7048,9 +7086,10 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **String**| name of the Event | **namespace** | **String**| object name and auth scope, such as for teams and projects | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] **gracePeriodSeconds** | **Integer**| 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. | [optional] + **ignoreStoreReadErrorWithClusterBreakingPotential** | **Boolean**| if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it | [optional] **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. 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. | [optional] **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] @@ -7066,7 +7105,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -7077,7 +7116,7 @@ Name | Type | Description | Notes # **deleteNamespacedLimitRange** -> V1Status deleteNamespacedLimitRange(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body) +> V1Status deleteNamespacedLimitRange(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body) @@ -7107,14 +7146,15 @@ public class Example { CoreV1Api apiInstance = new CoreV1Api(defaultClient); String name = "name_example"; // String | name of the LimitRange String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). 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 Integer gracePeriodSeconds = 56; // Integer | 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. + Boolean ignoreStoreReadErrorWithClusterBreakingPotential = true; // Boolean | if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it 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. 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. V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | try { - V1Status result = apiInstance.deleteNamespacedLimitRange(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body); + V1Status result = apiInstance.deleteNamespacedLimitRange(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling CoreV1Api#deleteNamespacedLimitRange"); @@ -7133,9 +7173,10 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **String**| name of the LimitRange | **namespace** | **String**| object name and auth scope, such as for teams and projects | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] **gracePeriodSeconds** | **Integer**| 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. | [optional] + **ignoreStoreReadErrorWithClusterBreakingPotential** | **Boolean**| if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it | [optional] **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. 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. | [optional] **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] @@ -7151,7 +7192,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -7162,7 +7203,7 @@ Name | Type | Description | Notes # **deleteNamespacedPersistentVolumeClaim** -> V1PersistentVolumeClaim deleteNamespacedPersistentVolumeClaim(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body) +> V1PersistentVolumeClaim deleteNamespacedPersistentVolumeClaim(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body) @@ -7192,14 +7233,15 @@ public class Example { CoreV1Api apiInstance = new CoreV1Api(defaultClient); String name = "name_example"; // String | name of the PersistentVolumeClaim String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). 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 Integer gracePeriodSeconds = 56; // Integer | 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. + Boolean ignoreStoreReadErrorWithClusterBreakingPotential = true; // Boolean | if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it 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. 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. V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | try { - V1PersistentVolumeClaim result = apiInstance.deleteNamespacedPersistentVolumeClaim(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body); + V1PersistentVolumeClaim result = apiInstance.deleteNamespacedPersistentVolumeClaim(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling CoreV1Api#deleteNamespacedPersistentVolumeClaim"); @@ -7218,9 +7260,10 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **String**| name of the PersistentVolumeClaim | **namespace** | **String**| object name and auth scope, such as for teams and projects | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] **gracePeriodSeconds** | **Integer**| 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. | [optional] + **ignoreStoreReadErrorWithClusterBreakingPotential** | **Boolean**| if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it | [optional] **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. 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. | [optional] **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] @@ -7236,7 +7279,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -7247,7 +7290,7 @@ Name | Type | Description | Notes # **deleteNamespacedPod** -> V1Pod deleteNamespacedPod(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body) +> V1Pod deleteNamespacedPod(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body) @@ -7277,14 +7320,15 @@ public class Example { CoreV1Api apiInstance = new CoreV1Api(defaultClient); String name = "name_example"; // String | name of the Pod String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). 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 Integer gracePeriodSeconds = 56; // Integer | 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. + Boolean ignoreStoreReadErrorWithClusterBreakingPotential = true; // Boolean | if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it 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. 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. V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | try { - V1Pod result = apiInstance.deleteNamespacedPod(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body); + V1Pod result = apiInstance.deleteNamespacedPod(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling CoreV1Api#deleteNamespacedPod"); @@ -7303,9 +7347,10 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **String**| name of the Pod | **namespace** | **String**| object name and auth scope, such as for teams and projects | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] **gracePeriodSeconds** | **Integer**| 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. | [optional] + **ignoreStoreReadErrorWithClusterBreakingPotential** | **Boolean**| if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it | [optional] **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. 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. | [optional] **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] @@ -7321,7 +7366,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -7332,7 +7377,7 @@ Name | Type | Description | Notes # **deleteNamespacedPodTemplate** -> V1PodTemplate deleteNamespacedPodTemplate(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body) +> V1PodTemplate deleteNamespacedPodTemplate(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body) @@ -7362,14 +7407,15 @@ public class Example { CoreV1Api apiInstance = new CoreV1Api(defaultClient); String name = "name_example"; // String | name of the PodTemplate String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). 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 Integer gracePeriodSeconds = 56; // Integer | 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. + Boolean ignoreStoreReadErrorWithClusterBreakingPotential = true; // Boolean | if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it 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. 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. V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | try { - V1PodTemplate result = apiInstance.deleteNamespacedPodTemplate(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body); + V1PodTemplate result = apiInstance.deleteNamespacedPodTemplate(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling CoreV1Api#deleteNamespacedPodTemplate"); @@ -7388,9 +7434,10 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **String**| name of the PodTemplate | **namespace** | **String**| object name and auth scope, such as for teams and projects | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] **gracePeriodSeconds** | **Integer**| 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. | [optional] + **ignoreStoreReadErrorWithClusterBreakingPotential** | **Boolean**| if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it | [optional] **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. 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. | [optional] **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] @@ -7406,7 +7453,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -7417,7 +7464,7 @@ Name | Type | Description | Notes # **deleteNamespacedReplicationController** -> V1Status deleteNamespacedReplicationController(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body) +> V1Status deleteNamespacedReplicationController(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body) @@ -7447,14 +7494,15 @@ public class Example { CoreV1Api apiInstance = new CoreV1Api(defaultClient); String name = "name_example"; // String | name of the ReplicationController String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). 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 Integer gracePeriodSeconds = 56; // Integer | 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. + Boolean ignoreStoreReadErrorWithClusterBreakingPotential = true; // Boolean | if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it 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. 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. V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | try { - V1Status result = apiInstance.deleteNamespacedReplicationController(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body); + V1Status result = apiInstance.deleteNamespacedReplicationController(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling CoreV1Api#deleteNamespacedReplicationController"); @@ -7473,9 +7521,10 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **String**| name of the ReplicationController | **namespace** | **String**| object name and auth scope, such as for teams and projects | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] **gracePeriodSeconds** | **Integer**| 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. | [optional] + **ignoreStoreReadErrorWithClusterBreakingPotential** | **Boolean**| if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it | [optional] **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. 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. | [optional] **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] @@ -7491,7 +7540,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -7502,7 +7551,7 @@ Name | Type | Description | Notes # **deleteNamespacedResourceQuota** -> V1ResourceQuota deleteNamespacedResourceQuota(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body) +> V1ResourceQuota deleteNamespacedResourceQuota(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body) @@ -7532,14 +7581,15 @@ public class Example { CoreV1Api apiInstance = new CoreV1Api(defaultClient); String name = "name_example"; // String | name of the ResourceQuota String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). 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 Integer gracePeriodSeconds = 56; // Integer | 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. + Boolean ignoreStoreReadErrorWithClusterBreakingPotential = true; // Boolean | if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it 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. 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. V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | try { - V1ResourceQuota result = apiInstance.deleteNamespacedResourceQuota(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body); + V1ResourceQuota result = apiInstance.deleteNamespacedResourceQuota(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling CoreV1Api#deleteNamespacedResourceQuota"); @@ -7558,9 +7608,10 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **String**| name of the ResourceQuota | **namespace** | **String**| object name and auth scope, such as for teams and projects | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] **gracePeriodSeconds** | **Integer**| 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. | [optional] + **ignoreStoreReadErrorWithClusterBreakingPotential** | **Boolean**| if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it | [optional] **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. 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. | [optional] **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] @@ -7576,7 +7627,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -7587,7 +7638,7 @@ Name | Type | Description | Notes # **deleteNamespacedSecret** -> V1Status deleteNamespacedSecret(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body) +> V1Status deleteNamespacedSecret(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body) @@ -7617,14 +7668,15 @@ public class Example { CoreV1Api apiInstance = new CoreV1Api(defaultClient); String name = "name_example"; // String | name of the Secret String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). 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 Integer gracePeriodSeconds = 56; // Integer | 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. + Boolean ignoreStoreReadErrorWithClusterBreakingPotential = true; // Boolean | if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it 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. 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. V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | try { - V1Status result = apiInstance.deleteNamespacedSecret(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body); + V1Status result = apiInstance.deleteNamespacedSecret(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling CoreV1Api#deleteNamespacedSecret"); @@ -7643,9 +7695,10 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **String**| name of the Secret | **namespace** | **String**| object name and auth scope, such as for teams and projects | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] **gracePeriodSeconds** | **Integer**| 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. | [optional] + **ignoreStoreReadErrorWithClusterBreakingPotential** | **Boolean**| if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it | [optional] **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. 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. | [optional] **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] @@ -7661,7 +7714,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -7672,7 +7725,7 @@ Name | Type | Description | Notes # **deleteNamespacedService** -> V1Service deleteNamespacedService(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body) +> V1Service deleteNamespacedService(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body) @@ -7702,14 +7755,15 @@ public class Example { CoreV1Api apiInstance = new CoreV1Api(defaultClient); String name = "name_example"; // String | name of the Service String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). 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 Integer gracePeriodSeconds = 56; // Integer | 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. + Boolean ignoreStoreReadErrorWithClusterBreakingPotential = true; // Boolean | if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it 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. 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. V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | try { - V1Service result = apiInstance.deleteNamespacedService(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body); + V1Service result = apiInstance.deleteNamespacedService(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling CoreV1Api#deleteNamespacedService"); @@ -7728,9 +7782,10 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **String**| name of the Service | **namespace** | **String**| object name and auth scope, such as for teams and projects | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] **gracePeriodSeconds** | **Integer**| 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. | [optional] + **ignoreStoreReadErrorWithClusterBreakingPotential** | **Boolean**| if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it | [optional] **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. 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. | [optional] **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] @@ -7746,7 +7801,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -7757,7 +7812,7 @@ Name | Type | Description | Notes # **deleteNamespacedServiceAccount** -> V1ServiceAccount deleteNamespacedServiceAccount(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body) +> V1ServiceAccount deleteNamespacedServiceAccount(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body) @@ -7787,14 +7842,15 @@ public class Example { CoreV1Api apiInstance = new CoreV1Api(defaultClient); String name = "name_example"; // String | name of the ServiceAccount String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). 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 Integer gracePeriodSeconds = 56; // Integer | 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. + Boolean ignoreStoreReadErrorWithClusterBreakingPotential = true; // Boolean | if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it 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. 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. V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | try { - V1ServiceAccount result = apiInstance.deleteNamespacedServiceAccount(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body); + V1ServiceAccount result = apiInstance.deleteNamespacedServiceAccount(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling CoreV1Api#deleteNamespacedServiceAccount"); @@ -7813,9 +7869,10 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **String**| name of the ServiceAccount | **namespace** | **String**| object name and auth scope, such as for teams and projects | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] **gracePeriodSeconds** | **Integer**| 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. | [optional] + **ignoreStoreReadErrorWithClusterBreakingPotential** | **Boolean**| if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it | [optional] **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. 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. | [optional] **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] @@ -7831,7 +7888,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -7842,7 +7899,7 @@ Name | Type | Description | Notes # **deleteNode** -> V1Status deleteNode(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body) +> V1Status deleteNode(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body) @@ -7871,14 +7928,15 @@ public class Example { CoreV1Api apiInstance = new CoreV1Api(defaultClient); String name = "name_example"; // String | name of the Node - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). 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 Integer gracePeriodSeconds = 56; // Integer | 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. + Boolean ignoreStoreReadErrorWithClusterBreakingPotential = true; // Boolean | if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it 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. 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. V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | try { - V1Status result = apiInstance.deleteNode(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body); + V1Status result = apiInstance.deleteNode(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling CoreV1Api#deleteNode"); @@ -7896,9 +7954,10 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **String**| name of the Node | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] **gracePeriodSeconds** | **Integer**| 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. | [optional] + **ignoreStoreReadErrorWithClusterBreakingPotential** | **Boolean**| if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it | [optional] **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. 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. | [optional] **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] @@ -7914,7 +7973,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -7925,7 +7984,7 @@ Name | Type | Description | Notes # **deletePersistentVolume** -> V1PersistentVolume deletePersistentVolume(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body) +> V1PersistentVolume deletePersistentVolume(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body) @@ -7954,14 +8013,15 @@ public class Example { CoreV1Api apiInstance = new CoreV1Api(defaultClient); String name = "name_example"; // String | name of the PersistentVolume - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). 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 Integer gracePeriodSeconds = 56; // Integer | 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. + Boolean ignoreStoreReadErrorWithClusterBreakingPotential = true; // Boolean | if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it 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. 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. V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | try { - V1PersistentVolume result = apiInstance.deletePersistentVolume(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body); + V1PersistentVolume result = apiInstance.deletePersistentVolume(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling CoreV1Api#deletePersistentVolume"); @@ -7979,9 +8039,10 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **String**| name of the PersistentVolume | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] **gracePeriodSeconds** | **Integer**| 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. | [optional] + **ignoreStoreReadErrorWithClusterBreakingPotential** | **Boolean**| if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it | [optional] **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. 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. | [optional] **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] @@ -7997,7 +8058,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -8064,7 +8125,7 @@ This endpoint does not need any parameter. ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -8107,7 +8168,7 @@ public class Example { String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). String resourceVersion = "resourceVersion_example"; // String | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset String resourceVersionMatch = "resourceVersionMatch_example"; // String | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset Boolean sendInitialEvents = true; // Boolean | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. @@ -8136,7 +8197,7 @@ Name | Type | Description | Notes **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] @@ -8154,7 +8215,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch, application/cbor-seq ### HTTP response details | Status code | Description | Response headers | @@ -8197,7 +8258,7 @@ public class Example { String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). String resourceVersion = "resourceVersion_example"; // String | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset String resourceVersionMatch = "resourceVersionMatch_example"; // String | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset Boolean sendInitialEvents = true; // Boolean | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. @@ -8226,7 +8287,7 @@ Name | Type | Description | Notes **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] @@ -8244,7 +8305,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch, application/cbor-seq ### HTTP response details | Status code | Description | Response headers | @@ -8287,7 +8348,7 @@ public class Example { String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). String resourceVersion = "resourceVersion_example"; // String | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset String resourceVersionMatch = "resourceVersionMatch_example"; // String | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset Boolean sendInitialEvents = true; // Boolean | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. @@ -8316,7 +8377,7 @@ Name | Type | Description | Notes **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] @@ -8334,7 +8395,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch, application/cbor-seq ### HTTP response details | Status code | Description | Response headers | @@ -8377,7 +8438,7 @@ public class Example { String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). String resourceVersion = "resourceVersion_example"; // String | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset String resourceVersionMatch = "resourceVersionMatch_example"; // String | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset Boolean sendInitialEvents = true; // Boolean | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. @@ -8406,7 +8467,7 @@ Name | Type | Description | Notes **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] @@ -8424,7 +8485,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch, application/cbor-seq ### HTTP response details | Status code | Description | Response headers | @@ -8467,7 +8528,7 @@ public class Example { String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). String resourceVersion = "resourceVersion_example"; // String | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset String resourceVersionMatch = "resourceVersionMatch_example"; // String | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset Boolean sendInitialEvents = true; // Boolean | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. @@ -8496,7 +8557,7 @@ Name | Type | Description | Notes **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] @@ -8514,7 +8575,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch, application/cbor-seq ### HTTP response details | Status code | Description | Response headers | @@ -8552,7 +8613,7 @@ public class Example { //BearerToken.setApiKeyPrefix("Token"); CoreV1Api apiInstance = new CoreV1Api(defaultClient); - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). 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. 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. String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. @@ -8581,7 +8642,7 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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. | [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] **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] @@ -8604,7 +8665,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch, application/cbor-seq ### HTTP response details | Status code | Description | Response headers | @@ -8643,7 +8704,7 @@ public class Example { CoreV1Api apiInstance = new CoreV1Api(defaultClient); String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). 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. 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. String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. @@ -8673,7 +8734,7 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **namespace** | **String**| object name and auth scope, such as for teams and projects | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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. | [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] **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] @@ -8696,7 +8757,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch, application/cbor-seq ### HTTP response details | Status code | Description | Response headers | @@ -8735,7 +8796,7 @@ public class Example { CoreV1Api apiInstance = new CoreV1Api(defaultClient); String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). 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. 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. String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. @@ -8765,7 +8826,7 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **namespace** | **String**| object name and auth scope, such as for teams and projects | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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. | [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] **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] @@ -8788,7 +8849,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch, application/cbor-seq ### HTTP response details | Status code | Description | Response headers | @@ -8827,7 +8888,7 @@ public class Example { CoreV1Api apiInstance = new CoreV1Api(defaultClient); String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). 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. 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. String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. @@ -8857,7 +8918,7 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **namespace** | **String**| object name and auth scope, such as for teams and projects | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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. | [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] **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] @@ -8880,7 +8941,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch, application/cbor-seq ### HTTP response details | Status code | Description | Response headers | @@ -8919,7 +8980,7 @@ public class Example { CoreV1Api apiInstance = new CoreV1Api(defaultClient); String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). 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. 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. String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. @@ -8949,7 +9010,7 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **namespace** | **String**| object name and auth scope, such as for teams and projects | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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. | [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] **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] @@ -8972,7 +9033,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch, application/cbor-seq ### HTTP response details | Status code | Description | Response headers | @@ -9011,7 +9072,7 @@ public class Example { CoreV1Api apiInstance = new CoreV1Api(defaultClient); String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). 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. 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. String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. @@ -9041,7 +9102,7 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **namespace** | **String**| object name and auth scope, such as for teams and projects | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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. | [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] **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] @@ -9064,7 +9125,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch, application/cbor-seq ### HTTP response details | Status code | Description | Response headers | @@ -9103,7 +9164,7 @@ public class Example { CoreV1Api apiInstance = new CoreV1Api(defaultClient); String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). 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. 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. String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. @@ -9133,7 +9194,7 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **namespace** | **String**| object name and auth scope, such as for teams and projects | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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. | [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] **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] @@ -9156,7 +9217,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch, application/cbor-seq ### HTTP response details | Status code | Description | Response headers | @@ -9195,7 +9256,7 @@ public class Example { CoreV1Api apiInstance = new CoreV1Api(defaultClient); String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). 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. 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. String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. @@ -9225,7 +9286,7 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **namespace** | **String**| object name and auth scope, such as for teams and projects | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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. | [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] **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] @@ -9248,7 +9309,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch, application/cbor-seq ### HTTP response details | Status code | Description | Response headers | @@ -9287,7 +9348,7 @@ public class Example { CoreV1Api apiInstance = new CoreV1Api(defaultClient); String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). 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. 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. String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. @@ -9317,7 +9378,7 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **namespace** | **String**| object name and auth scope, such as for teams and projects | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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. | [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] **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] @@ -9340,7 +9401,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch, application/cbor-seq ### HTTP response details | Status code | Description | Response headers | @@ -9379,7 +9440,7 @@ public class Example { CoreV1Api apiInstance = new CoreV1Api(defaultClient); String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). 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. 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. String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. @@ -9409,7 +9470,7 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **namespace** | **String**| object name and auth scope, such as for teams and projects | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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. | [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] **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] @@ -9432,7 +9493,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch, application/cbor-seq ### HTTP response details | Status code | Description | Response headers | @@ -9471,7 +9532,7 @@ public class Example { CoreV1Api apiInstance = new CoreV1Api(defaultClient); String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). 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. 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. String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. @@ -9501,7 +9562,7 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **namespace** | **String**| object name and auth scope, such as for teams and projects | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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. | [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] **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] @@ -9524,7 +9585,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch, application/cbor-seq ### HTTP response details | Status code | Description | Response headers | @@ -9563,7 +9624,7 @@ public class Example { CoreV1Api apiInstance = new CoreV1Api(defaultClient); String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). 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. 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. String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. @@ -9593,7 +9654,7 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **namespace** | **String**| object name and auth scope, such as for teams and projects | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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. | [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] **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] @@ -9616,7 +9677,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch, application/cbor-seq ### HTTP response details | Status code | Description | Response headers | @@ -9655,7 +9716,7 @@ public class Example { CoreV1Api apiInstance = new CoreV1Api(defaultClient); String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). 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. 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. String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. @@ -9685,7 +9746,7 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **namespace** | **String**| object name and auth scope, such as for teams and projects | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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. | [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] **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] @@ -9708,7 +9769,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch, application/cbor-seq ### HTTP response details | Status code | Description | Response headers | @@ -9746,7 +9807,7 @@ public class Example { //BearerToken.setApiKeyPrefix("Token"); CoreV1Api apiInstance = new CoreV1Api(defaultClient); - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). 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. 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. String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. @@ -9775,7 +9836,7 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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. | [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] **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] @@ -9798,7 +9859,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch, application/cbor-seq ### HTTP response details | Status code | Description | Response headers | @@ -9836,7 +9897,7 @@ public class Example { //BearerToken.setApiKeyPrefix("Token"); CoreV1Api apiInstance = new CoreV1Api(defaultClient); - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). 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. 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. String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. @@ -9865,7 +9926,7 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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. | [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] **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] @@ -9888,7 +9949,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch, application/cbor-seq ### HTTP response details | Status code | Description | Response headers | @@ -9931,7 +9992,7 @@ public class Example { String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). String resourceVersion = "resourceVersion_example"; // String | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset String resourceVersionMatch = "resourceVersionMatch_example"; // String | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset Boolean sendInitialEvents = true; // Boolean | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. @@ -9960,7 +10021,7 @@ Name | Type | Description | Notes **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] @@ -9978,7 +10039,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch, application/cbor-seq ### HTTP response details | Status code | Description | Response headers | @@ -10021,7 +10082,7 @@ public class Example { String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). String resourceVersion = "resourceVersion_example"; // String | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset String resourceVersionMatch = "resourceVersionMatch_example"; // String | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset Boolean sendInitialEvents = true; // Boolean | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. @@ -10050,7 +10111,7 @@ Name | Type | Description | Notes **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] @@ -10068,7 +10129,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch, application/cbor-seq ### HTTP response details | Status code | Description | Response headers | @@ -10111,7 +10172,7 @@ public class Example { String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). String resourceVersion = "resourceVersion_example"; // String | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset String resourceVersionMatch = "resourceVersionMatch_example"; // String | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset Boolean sendInitialEvents = true; // Boolean | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. @@ -10140,7 +10201,7 @@ Name | Type | Description | Notes **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] @@ -10158,7 +10219,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch, application/cbor-seq ### HTTP response details | Status code | Description | Response headers | @@ -10201,7 +10262,7 @@ public class Example { String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). String resourceVersion = "resourceVersion_example"; // String | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset String resourceVersionMatch = "resourceVersionMatch_example"; // String | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset Boolean sendInitialEvents = true; // Boolean | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. @@ -10230,7 +10291,7 @@ Name | Type | Description | Notes **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] @@ -10248,7 +10309,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch, application/cbor-seq ### HTTP response details | Status code | Description | Response headers | @@ -10291,7 +10352,7 @@ public class Example { String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). String resourceVersion = "resourceVersion_example"; // String | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset String resourceVersionMatch = "resourceVersionMatch_example"; // String | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset Boolean sendInitialEvents = true; // Boolean | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. @@ -10320,7 +10381,7 @@ Name | Type | Description | Notes **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] @@ -10338,7 +10399,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch, application/cbor-seq ### HTTP response details | Status code | Description | Response headers | @@ -10381,7 +10442,7 @@ public class Example { String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). String resourceVersion = "resourceVersion_example"; // String | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset String resourceVersionMatch = "resourceVersionMatch_example"; // String | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset Boolean sendInitialEvents = true; // Boolean | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. @@ -10410,7 +10471,7 @@ Name | Type | Description | Notes **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] @@ -10428,7 +10489,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch, application/cbor-seq ### HTTP response details | Status code | Description | Response headers | @@ -10471,7 +10532,7 @@ public class Example { String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). String resourceVersion = "resourceVersion_example"; // String | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset String resourceVersionMatch = "resourceVersionMatch_example"; // String | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset Boolean sendInitialEvents = true; // Boolean | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. @@ -10500,7 +10561,7 @@ Name | Type | Description | Notes **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] @@ -10518,7 +10579,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch, application/cbor-seq ### HTTP response details | Status code | Description | Response headers | @@ -10561,7 +10622,7 @@ public class Example { String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). String resourceVersion = "resourceVersion_example"; // String | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset String resourceVersionMatch = "resourceVersionMatch_example"; // String | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset Boolean sendInitialEvents = true; // Boolean | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. @@ -10590,7 +10651,7 @@ Name | Type | Description | Notes **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] @@ -10608,7 +10669,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch, application/cbor-seq ### HTTP response details | Status code | Description | Response headers | @@ -10648,7 +10709,7 @@ public class Example { CoreV1Api apiInstance = new CoreV1Api(defaultClient); String name = "name_example"; // String | name of the Namespace V1Patch body = new V1Patch(); // V1Patch | - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). 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 fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. @@ -10673,7 +10734,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **String**| name of the Namespace | **body** | **V1Patch**| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] @@ -10690,7 +10751,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -10731,7 +10792,7 @@ public class Example { CoreV1Api apiInstance = new CoreV1Api(defaultClient); String name = "name_example"; // String | name of the Namespace V1Patch body = new V1Patch(); // V1Patch | - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). 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 fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. @@ -10756,7 +10817,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **String**| name of the Namespace | **body** | **V1Patch**| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] @@ -10773,7 +10834,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -10815,7 +10876,7 @@ public class Example { String name = "name_example"; // String | name of the ConfigMap String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects V1Patch body = new V1Patch(); // V1Patch | - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). 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 fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. @@ -10841,7 +10902,7 @@ Name | Type | Description | Notes **name** | **String**| name of the ConfigMap | **namespace** | **String**| object name and auth scope, such as for teams and projects | **body** | **V1Patch**| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] @@ -10858,7 +10919,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -10900,7 +10961,7 @@ public class Example { String name = "name_example"; // String | name of the Endpoints String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects V1Patch body = new V1Patch(); // V1Patch | - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). 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 fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. @@ -10926,7 +10987,7 @@ Name | Type | Description | Notes **name** | **String**| name of the Endpoints | **namespace** | **String**| object name and auth scope, such as for teams and projects | **body** | **V1Patch**| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] @@ -10943,7 +11004,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -10985,7 +11046,7 @@ public class Example { String name = "name_example"; // String | name of the Event String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects V1Patch body = new V1Patch(); // V1Patch | - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). 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 fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. @@ -11011,7 +11072,7 @@ Name | Type | Description | Notes **name** | **String**| name of the Event | **namespace** | **String**| object name and auth scope, such as for teams and projects | **body** | **V1Patch**| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] @@ -11028,7 +11089,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -11070,7 +11131,7 @@ public class Example { String name = "name_example"; // String | name of the LimitRange String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects V1Patch body = new V1Patch(); // V1Patch | - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). 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 fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. @@ -11096,7 +11157,7 @@ Name | Type | Description | Notes **name** | **String**| name of the LimitRange | **namespace** | **String**| object name and auth scope, such as for teams and projects | **body** | **V1Patch**| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] @@ -11113,7 +11174,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -11155,7 +11216,7 @@ public class Example { String name = "name_example"; // String | name of the PersistentVolumeClaim String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects V1Patch body = new V1Patch(); // V1Patch | - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). 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 fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. @@ -11181,7 +11242,7 @@ Name | Type | Description | Notes **name** | **String**| name of the PersistentVolumeClaim | **namespace** | **String**| object name and auth scope, such as for teams and projects | **body** | **V1Patch**| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] @@ -11198,7 +11259,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -11240,7 +11301,7 @@ public class Example { String name = "name_example"; // String | name of the PersistentVolumeClaim String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects V1Patch body = new V1Patch(); // V1Patch | - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). 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 fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. @@ -11266,7 +11327,7 @@ Name | Type | Description | Notes **name** | **String**| name of the PersistentVolumeClaim | **namespace** | **String**| object name and auth scope, such as for teams and projects | **body** | **V1Patch**| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] @@ -11283,7 +11344,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -11325,7 +11386,7 @@ public class Example { String name = "name_example"; // String | name of the Pod String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects V1Patch body = new V1Patch(); // V1Patch | - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). 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 fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. @@ -11351,7 +11412,7 @@ Name | Type | Description | Notes **name** | **String**| name of the Pod | **namespace** | **String**| object name and auth scope, such as for teams and projects | **body** | **V1Patch**| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] @@ -11368,7 +11429,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -11410,7 +11471,7 @@ public class Example { String name = "name_example"; // String | name of the Pod String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects V1Patch body = new V1Patch(); // V1Patch | - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). 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 fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. @@ -11436,7 +11497,7 @@ Name | Type | Description | Notes **name** | **String**| name of the Pod | **namespace** | **String**| object name and auth scope, such as for teams and projects | **body** | **V1Patch**| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] @@ -11453,7 +11514,92 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**401** | Unauthorized | - | + + +# **patchNamespacedPodResize** +> V1Pod patchNamespacedPodResize(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force) + + + +partially update resize of the specified Pod + +### Example +```java +// Import classes: +import io.kubernetes.client.openapi.ApiClient; +import io.kubernetes.client.openapi.ApiException; +import io.kubernetes.client.openapi.Configuration; +import io.kubernetes.client.openapi.auth.*; +import io.kubernetes.client.openapi.models.*; +import io.kubernetes.client.openapi.apis.CoreV1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + CoreV1Api apiInstance = new CoreV1Api(defaultClient); + String name = "name_example"; // String | name of the Pod + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + V1Patch body = new V1Patch(); // V1Patch | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + 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 fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). + String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. + Boolean force = true; // Boolean | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. + try { + V1Pod result = apiInstance.patchNamespacedPodResize(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling CoreV1Api#patchNamespacedPodResize"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **String**| name of the Pod | + **namespace** | **String**| object name and auth scope, such as for teams and projects | + **body** | **V1Patch**| | + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] + **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] + **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] + **force** | **Boolean**| Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | [optional] + +### Return type + +[**V1Pod**](V1Pod.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -11495,7 +11641,7 @@ public class Example { String name = "name_example"; // String | name of the Pod String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects V1Patch body = new V1Patch(); // V1Patch | - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). 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 fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. @@ -11521,7 +11667,7 @@ Name | Type | Description | Notes **name** | **String**| name of the Pod | **namespace** | **String**| object name and auth scope, such as for teams and projects | **body** | **V1Patch**| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] @@ -11538,7 +11684,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -11580,7 +11726,7 @@ public class Example { String name = "name_example"; // String | name of the PodTemplate String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects V1Patch body = new V1Patch(); // V1Patch | - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). 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 fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. @@ -11606,7 +11752,7 @@ Name | Type | Description | Notes **name** | **String**| name of the PodTemplate | **namespace** | **String**| object name and auth scope, such as for teams and projects | **body** | **V1Patch**| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] @@ -11623,7 +11769,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -11665,7 +11811,7 @@ public class Example { String name = "name_example"; // String | name of the ReplicationController String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects V1Patch body = new V1Patch(); // V1Patch | - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). 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 fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. @@ -11691,7 +11837,7 @@ Name | Type | Description | Notes **name** | **String**| name of the ReplicationController | **namespace** | **String**| object name and auth scope, such as for teams and projects | **body** | **V1Patch**| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] @@ -11708,7 +11854,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -11750,7 +11896,7 @@ public class Example { String name = "name_example"; // String | name of the Scale String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects V1Patch body = new V1Patch(); // V1Patch | - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). 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 fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. @@ -11776,7 +11922,7 @@ Name | Type | Description | Notes **name** | **String**| name of the Scale | **namespace** | **String**| object name and auth scope, such as for teams and projects | **body** | **V1Patch**| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] @@ -11793,7 +11939,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -11835,7 +11981,7 @@ public class Example { String name = "name_example"; // String | name of the ReplicationController String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects V1Patch body = new V1Patch(); // V1Patch | - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). 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 fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. @@ -11861,7 +12007,7 @@ Name | Type | Description | Notes **name** | **String**| name of the ReplicationController | **namespace** | **String**| object name and auth scope, such as for teams and projects | **body** | **V1Patch**| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] @@ -11878,7 +12024,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -11920,7 +12066,7 @@ public class Example { String name = "name_example"; // String | name of the ResourceQuota String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects V1Patch body = new V1Patch(); // V1Patch | - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). 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 fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. @@ -11946,7 +12092,7 @@ Name | Type | Description | Notes **name** | **String**| name of the ResourceQuota | **namespace** | **String**| object name and auth scope, such as for teams and projects | **body** | **V1Patch**| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] @@ -11963,7 +12109,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -12005,7 +12151,7 @@ public class Example { String name = "name_example"; // String | name of the ResourceQuota String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects V1Patch body = new V1Patch(); // V1Patch | - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). 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 fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. @@ -12031,7 +12177,7 @@ Name | Type | Description | Notes **name** | **String**| name of the ResourceQuota | **namespace** | **String**| object name and auth scope, such as for teams and projects | **body** | **V1Patch**| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] @@ -12048,7 +12194,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -12090,7 +12236,7 @@ public class Example { String name = "name_example"; // String | name of the Secret String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects V1Patch body = new V1Patch(); // V1Patch | - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). 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 fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. @@ -12116,7 +12262,7 @@ Name | Type | Description | Notes **name** | **String**| name of the Secret | **namespace** | **String**| object name and auth scope, such as for teams and projects | **body** | **V1Patch**| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] @@ -12133,7 +12279,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -12175,7 +12321,7 @@ public class Example { String name = "name_example"; // String | name of the Service String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects V1Patch body = new V1Patch(); // V1Patch | - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). 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 fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. @@ -12201,7 +12347,7 @@ Name | Type | Description | Notes **name** | **String**| name of the Service | **namespace** | **String**| object name and auth scope, such as for teams and projects | **body** | **V1Patch**| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] @@ -12218,7 +12364,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -12260,7 +12406,7 @@ public class Example { String name = "name_example"; // String | name of the ServiceAccount String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects V1Patch body = new V1Patch(); // V1Patch | - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). 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 fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. @@ -12286,7 +12432,7 @@ Name | Type | Description | Notes **name** | **String**| name of the ServiceAccount | **namespace** | **String**| object name and auth scope, such as for teams and projects | **body** | **V1Patch**| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] @@ -12303,7 +12449,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -12345,7 +12491,7 @@ public class Example { String name = "name_example"; // String | name of the Service String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects V1Patch body = new V1Patch(); // V1Patch | - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). 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 fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. @@ -12371,7 +12517,7 @@ Name | Type | Description | Notes **name** | **String**| name of the Service | **namespace** | **String**| object name and auth scope, such as for teams and projects | **body** | **V1Patch**| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] @@ -12388,7 +12534,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -12429,7 +12575,7 @@ public class Example { CoreV1Api apiInstance = new CoreV1Api(defaultClient); String name = "name_example"; // String | name of the Node V1Patch body = new V1Patch(); // V1Patch | - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). 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 fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. @@ -12454,7 +12600,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **String**| name of the Node | **body** | **V1Patch**| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] @@ -12471,7 +12617,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -12512,7 +12658,7 @@ public class Example { CoreV1Api apiInstance = new CoreV1Api(defaultClient); String name = "name_example"; // String | name of the Node V1Patch body = new V1Patch(); // V1Patch | - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). 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 fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. @@ -12537,7 +12683,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **String**| name of the Node | **body** | **V1Patch**| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] @@ -12554,7 +12700,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -12595,7 +12741,7 @@ public class Example { CoreV1Api apiInstance = new CoreV1Api(defaultClient); String name = "name_example"; // String | name of the PersistentVolume V1Patch body = new V1Patch(); // V1Patch | - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). 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 fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. @@ -12620,7 +12766,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **String**| name of the PersistentVolume | **body** | **V1Patch**| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] @@ -12637,7 +12783,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -12678,7 +12824,7 @@ public class Example { CoreV1Api apiInstance = new CoreV1Api(defaultClient); String name = "name_example"; // String | name of the PersistentVolume V1Patch body = new V1Patch(); // V1Patch | - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). 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 fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. @@ -12703,7 +12849,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **String**| name of the PersistentVolume | **body** | **V1Patch**| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] @@ -12720,7 +12866,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -12760,7 +12906,7 @@ public class Example { CoreV1Api apiInstance = new CoreV1Api(defaultClient); String name = "name_example"; // String | name of the ComponentStatus - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). try { V1ComponentStatus result = apiInstance.readComponentStatus(name, pretty); System.out.println(result); @@ -12780,7 +12926,7 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **String**| name of the ComponentStatus | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] ### Return type @@ -12793,7 +12939,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -12832,7 +12978,7 @@ public class Example { CoreV1Api apiInstance = new CoreV1Api(defaultClient); String name = "name_example"; // String | name of the Namespace - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). try { V1Namespace result = apiInstance.readNamespace(name, pretty); System.out.println(result); @@ -12852,7 +12998,7 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **String**| name of the Namespace | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] ### Return type @@ -12865,7 +13011,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -12904,7 +13050,7 @@ public class Example { CoreV1Api apiInstance = new CoreV1Api(defaultClient); String name = "name_example"; // String | name of the Namespace - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). try { V1Namespace result = apiInstance.readNamespaceStatus(name, pretty); System.out.println(result); @@ -12924,7 +13070,7 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **String**| name of the Namespace | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] ### Return type @@ -12937,7 +13083,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -12977,7 +13123,7 @@ public class Example { CoreV1Api apiInstance = new CoreV1Api(defaultClient); String name = "name_example"; // String | name of the ConfigMap String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). try { V1ConfigMap result = apiInstance.readNamespacedConfigMap(name, namespace, pretty); System.out.println(result); @@ -12998,7 +13144,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **String**| name of the ConfigMap | **namespace** | **String**| object name and auth scope, such as for teams and projects | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] ### Return type @@ -13011,7 +13157,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -13051,7 +13197,7 @@ public class Example { CoreV1Api apiInstance = new CoreV1Api(defaultClient); String name = "name_example"; // String | name of the Endpoints String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). try { V1Endpoints result = apiInstance.readNamespacedEndpoints(name, namespace, pretty); System.out.println(result); @@ -13072,7 +13218,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **String**| name of the Endpoints | **namespace** | **String**| object name and auth scope, such as for teams and projects | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] ### Return type @@ -13085,7 +13231,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -13125,7 +13271,7 @@ public class Example { CoreV1Api apiInstance = new CoreV1Api(defaultClient); String name = "name_example"; // String | name of the Event String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). try { CoreV1Event result = apiInstance.readNamespacedEvent(name, namespace, pretty); System.out.println(result); @@ -13146,7 +13292,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **String**| name of the Event | **namespace** | **String**| object name and auth scope, such as for teams and projects | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] ### Return type @@ -13159,7 +13305,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -13199,7 +13345,7 @@ public class Example { CoreV1Api apiInstance = new CoreV1Api(defaultClient); String name = "name_example"; // String | name of the LimitRange String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). try { V1LimitRange result = apiInstance.readNamespacedLimitRange(name, namespace, pretty); System.out.println(result); @@ -13220,7 +13366,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **String**| name of the LimitRange | **namespace** | **String**| object name and auth scope, such as for teams and projects | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] ### Return type @@ -13233,7 +13379,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -13273,7 +13419,7 @@ public class Example { CoreV1Api apiInstance = new CoreV1Api(defaultClient); String name = "name_example"; // String | name of the PersistentVolumeClaim String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). try { V1PersistentVolumeClaim result = apiInstance.readNamespacedPersistentVolumeClaim(name, namespace, pretty); System.out.println(result); @@ -13294,7 +13440,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **String**| name of the PersistentVolumeClaim | **namespace** | **String**| object name and auth scope, such as for teams and projects | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] ### Return type @@ -13307,7 +13453,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -13347,7 +13493,7 @@ public class Example { CoreV1Api apiInstance = new CoreV1Api(defaultClient); String name = "name_example"; // String | name of the PersistentVolumeClaim String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). try { V1PersistentVolumeClaim result = apiInstance.readNamespacedPersistentVolumeClaimStatus(name, namespace, pretty); System.out.println(result); @@ -13368,7 +13514,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **String**| name of the PersistentVolumeClaim | **namespace** | **String**| object name and auth scope, such as for teams and projects | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] ### Return type @@ -13381,7 +13527,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -13421,7 +13567,7 @@ public class Example { CoreV1Api apiInstance = new CoreV1Api(defaultClient); String name = "name_example"; // String | name of the Pod String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). try { V1Pod result = apiInstance.readNamespacedPod(name, namespace, pretty); System.out.println(result); @@ -13442,7 +13588,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **String**| name of the Pod | **namespace** | **String**| object name and auth scope, such as for teams and projects | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] ### Return type @@ -13455,7 +13601,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -13495,7 +13641,7 @@ public class Example { CoreV1Api apiInstance = new CoreV1Api(defaultClient); String name = "name_example"; // String | name of the Pod String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). try { V1Pod result = apiInstance.readNamespacedPodEphemeralcontainers(name, namespace, pretty); System.out.println(result); @@ -13516,7 +13662,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **String**| name of the Pod | **namespace** | **String**| object name and auth scope, such as for teams and projects | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] ### Return type @@ -13529,7 +13675,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -13539,7 +13685,7 @@ Name | Type | Description | Notes # **readNamespacedPodLog** -> String readNamespacedPodLog(name, namespace, container, follow, insecureSkipTLSVerifyBackend, limitBytes, pretty, previous, sinceSeconds, tailLines, timestamps) +> String readNamespacedPodLog(name, namespace, container, follow, insecureSkipTLSVerifyBackend, limitBytes, pretty, previous, sinceSeconds, stream, tailLines, timestamps) @@ -13573,13 +13719,14 @@ public class Example { Boolean follow = true; // Boolean | Follow the log stream of the pod. Defaults to false. Boolean insecureSkipTLSVerifyBackend = true; // Boolean | insecureSkipTLSVerifyBackend indicates that the apiserver should not confirm the validity of the serving certificate of the backend it is connecting to. This will make the HTTPS connection between the apiserver and the backend insecure. This means the apiserver cannot verify the log data it is receiving came from the real kubelet. If the kubelet is configured to verify the apiserver's TLS credentials, it does not mean the connection to the real kubelet is vulnerable to a man in the middle attack (e.g. an attacker could not intercept the actual log data coming from the real kubelet). Integer limitBytes = 56; // Integer | If set, the number of bytes to read from the server before terminating the log output. This may not display a complete final line of logging, and may return slightly more or slightly less than the specified limit. - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). Boolean previous = true; // Boolean | Return previous terminated container logs. Defaults to false. Integer sinceSeconds = 56; // Integer | A relative time in seconds before the current time from which to show logs. If this value precedes the time a pod was started, only logs since the pod start will be returned. If this value is in the future, no logs will be returned. Only one of sinceSeconds or sinceTime may be specified. - Integer tailLines = 56; // Integer | If set, the number of lines from the end of the logs to show. If not specified, logs are shown from the creation of the container or sinceSeconds or sinceTime + String stream = "stream_example"; // String | Specify which container log stream to return to the client. Acceptable values are \"All\", \"Stdout\" and \"Stderr\". If not specified, \"All\" is used, and both stdout and stderr are returned interleaved. Note that when \"TailLines\" is specified, \"Stream\" can only be set to nil or \"All\". + Integer tailLines = 56; // Integer | If set, the number of lines from the end of the logs to show. If not specified, logs are shown from the creation of the container or sinceSeconds or sinceTime. Note that when \"TailLines\" is specified, \"Stream\" can only be set to nil or \"All\". Boolean timestamps = true; // Boolean | If true, add an RFC3339 or RFC3339Nano timestamp at the beginning of every line of log output. Defaults to false. try { - String result = apiInstance.readNamespacedPodLog(name, namespace, container, follow, insecureSkipTLSVerifyBackend, limitBytes, pretty, previous, sinceSeconds, tailLines, timestamps); + String result = apiInstance.readNamespacedPodLog(name, namespace, container, follow, insecureSkipTLSVerifyBackend, limitBytes, pretty, previous, sinceSeconds, stream, tailLines, timestamps); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling CoreV1Api#readNamespacedPodLog"); @@ -13602,10 +13749,11 @@ Name | Type | Description | Notes **follow** | **Boolean**| Follow the log stream of the pod. Defaults to false. | [optional] **insecureSkipTLSVerifyBackend** | **Boolean**| insecureSkipTLSVerifyBackend indicates that the apiserver should not confirm the validity of the serving certificate of the backend it is connecting to. This will make the HTTPS connection between the apiserver and the backend insecure. This means the apiserver cannot verify the log data it is receiving came from the real kubelet. If the kubelet is configured to verify the apiserver's TLS credentials, it does not mean the connection to the real kubelet is vulnerable to a man in the middle attack (e.g. an attacker could not intercept the actual log data coming from the real kubelet). | [optional] **limitBytes** | **Integer**| If set, the number of bytes to read from the server before terminating the log output. This may not display a complete final line of logging, and may return slightly more or slightly less than the specified limit. | [optional] - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] **previous** | **Boolean**| Return previous terminated container logs. Defaults to false. | [optional] **sinceSeconds** | **Integer**| A relative time in seconds before the current time from which to show logs. If this value precedes the time a pod was started, only logs since the pod start will be returned. If this value is in the future, no logs will be returned. Only one of sinceSeconds or sinceTime may be specified. | [optional] - **tailLines** | **Integer**| If set, the number of lines from the end of the logs to show. If not specified, logs are shown from the creation of the container or sinceSeconds or sinceTime | [optional] + **stream** | **String**| Specify which container log stream to return to the client. Acceptable values are \"All\", \"Stdout\" and \"Stderr\". If not specified, \"All\" is used, and both stdout and stderr are returned interleaved. Note that when \"TailLines\" is specified, \"Stream\" can only be set to nil or \"All\". | [optional] + **tailLines** | **Integer**| If set, the number of lines from the end of the logs to show. If not specified, logs are shown from the creation of the container or sinceSeconds or sinceTime. Note that when \"TailLines\" is specified, \"Stream\" can only be set to nil or \"All\". | [optional] **timestamps** | **Boolean**| If true, add an RFC3339 or RFC3339Nano timestamp at the beginning of every line of log output. Defaults to false. | [optional] ### Return type @@ -13619,7 +13767,81 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: text/plain, application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: text/plain, application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + + +# **readNamespacedPodResize** +> V1Pod readNamespacedPodResize(name, namespace, pretty) + + + +read resize of the specified Pod + +### Example +```java +// Import classes: +import io.kubernetes.client.openapi.ApiClient; +import io.kubernetes.client.openapi.ApiException; +import io.kubernetes.client.openapi.Configuration; +import io.kubernetes.client.openapi.auth.*; +import io.kubernetes.client.openapi.models.*; +import io.kubernetes.client.openapi.apis.CoreV1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + CoreV1Api apiInstance = new CoreV1Api(defaultClient); + String name = "name_example"; // String | name of the Pod + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + try { + V1Pod result = apiInstance.readNamespacedPodResize(name, namespace, pretty); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling CoreV1Api#readNamespacedPodResize"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **String**| name of the Pod | + **namespace** | **String**| object name and auth scope, such as for teams and projects | + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] + +### Return type + +[**V1Pod**](V1Pod.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -13659,7 +13881,7 @@ public class Example { CoreV1Api apiInstance = new CoreV1Api(defaultClient); String name = "name_example"; // String | name of the Pod String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). try { V1Pod result = apiInstance.readNamespacedPodStatus(name, namespace, pretty); System.out.println(result); @@ -13680,7 +13902,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **String**| name of the Pod | **namespace** | **String**| object name and auth scope, such as for teams and projects | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] ### Return type @@ -13693,7 +13915,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -13733,7 +13955,7 @@ public class Example { CoreV1Api apiInstance = new CoreV1Api(defaultClient); String name = "name_example"; // String | name of the PodTemplate String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). try { V1PodTemplate result = apiInstance.readNamespacedPodTemplate(name, namespace, pretty); System.out.println(result); @@ -13754,7 +13976,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **String**| name of the PodTemplate | **namespace** | **String**| object name and auth scope, such as for teams and projects | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] ### Return type @@ -13767,7 +13989,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -13807,7 +14029,7 @@ public class Example { CoreV1Api apiInstance = new CoreV1Api(defaultClient); String name = "name_example"; // String | name of the ReplicationController String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). try { V1ReplicationController result = apiInstance.readNamespacedReplicationController(name, namespace, pretty); System.out.println(result); @@ -13828,7 +14050,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **String**| name of the ReplicationController | **namespace** | **String**| object name and auth scope, such as for teams and projects | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] ### Return type @@ -13841,7 +14063,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -13881,7 +14103,7 @@ public class Example { CoreV1Api apiInstance = new CoreV1Api(defaultClient); String name = "name_example"; // String | name of the Scale String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). try { V1Scale result = apiInstance.readNamespacedReplicationControllerScale(name, namespace, pretty); System.out.println(result); @@ -13902,7 +14124,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **String**| name of the Scale | **namespace** | **String**| object name and auth scope, such as for teams and projects | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] ### Return type @@ -13915,7 +14137,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -13955,7 +14177,7 @@ public class Example { CoreV1Api apiInstance = new CoreV1Api(defaultClient); String name = "name_example"; // String | name of the ReplicationController String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). try { V1ReplicationController result = apiInstance.readNamespacedReplicationControllerStatus(name, namespace, pretty); System.out.println(result); @@ -13976,7 +14198,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **String**| name of the ReplicationController | **namespace** | **String**| object name and auth scope, such as for teams and projects | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] ### Return type @@ -13989,7 +14211,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -14029,7 +14251,7 @@ public class Example { CoreV1Api apiInstance = new CoreV1Api(defaultClient); String name = "name_example"; // String | name of the ResourceQuota String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). try { V1ResourceQuota result = apiInstance.readNamespacedResourceQuota(name, namespace, pretty); System.out.println(result); @@ -14050,7 +14272,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **String**| name of the ResourceQuota | **namespace** | **String**| object name and auth scope, such as for teams and projects | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] ### Return type @@ -14063,7 +14285,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -14103,7 +14325,7 @@ public class Example { CoreV1Api apiInstance = new CoreV1Api(defaultClient); String name = "name_example"; // String | name of the ResourceQuota String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). try { V1ResourceQuota result = apiInstance.readNamespacedResourceQuotaStatus(name, namespace, pretty); System.out.println(result); @@ -14124,7 +14346,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **String**| name of the ResourceQuota | **namespace** | **String**| object name and auth scope, such as for teams and projects | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] ### Return type @@ -14137,7 +14359,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -14177,7 +14399,7 @@ public class Example { CoreV1Api apiInstance = new CoreV1Api(defaultClient); String name = "name_example"; // String | name of the Secret String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). try { V1Secret result = apiInstance.readNamespacedSecret(name, namespace, pretty); System.out.println(result); @@ -14198,7 +14420,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **String**| name of the Secret | **namespace** | **String**| object name and auth scope, such as for teams and projects | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] ### Return type @@ -14211,7 +14433,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -14251,7 +14473,7 @@ public class Example { CoreV1Api apiInstance = new CoreV1Api(defaultClient); String name = "name_example"; // String | name of the Service String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). try { V1Service result = apiInstance.readNamespacedService(name, namespace, pretty); System.out.println(result); @@ -14272,7 +14494,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **String**| name of the Service | **namespace** | **String**| object name and auth scope, such as for teams and projects | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] ### Return type @@ -14285,7 +14507,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -14325,7 +14547,7 @@ public class Example { CoreV1Api apiInstance = new CoreV1Api(defaultClient); String name = "name_example"; // String | name of the ServiceAccount String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). try { V1ServiceAccount result = apiInstance.readNamespacedServiceAccount(name, namespace, pretty); System.out.println(result); @@ -14346,7 +14568,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **String**| name of the ServiceAccount | **namespace** | **String**| object name and auth scope, such as for teams and projects | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] ### Return type @@ -14359,7 +14581,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -14399,7 +14621,7 @@ public class Example { CoreV1Api apiInstance = new CoreV1Api(defaultClient); String name = "name_example"; // String | name of the Service String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). try { V1Service result = apiInstance.readNamespacedServiceStatus(name, namespace, pretty); System.out.println(result); @@ -14420,7 +14642,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **String**| name of the Service | **namespace** | **String**| object name and auth scope, such as for teams and projects | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] ### Return type @@ -14433,7 +14655,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -14472,7 +14694,7 @@ public class Example { CoreV1Api apiInstance = new CoreV1Api(defaultClient); String name = "name_example"; // String | name of the Node - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). try { V1Node result = apiInstance.readNode(name, pretty); System.out.println(result); @@ -14492,7 +14714,7 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **String**| name of the Node | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] ### Return type @@ -14505,7 +14727,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -14544,7 +14766,7 @@ public class Example { CoreV1Api apiInstance = new CoreV1Api(defaultClient); String name = "name_example"; // String | name of the Node - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). try { V1Node result = apiInstance.readNodeStatus(name, pretty); System.out.println(result); @@ -14564,7 +14786,7 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **String**| name of the Node | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] ### Return type @@ -14577,7 +14799,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -14616,7 +14838,7 @@ public class Example { CoreV1Api apiInstance = new CoreV1Api(defaultClient); String name = "name_example"; // String | name of the PersistentVolume - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). try { V1PersistentVolume result = apiInstance.readPersistentVolume(name, pretty); System.out.println(result); @@ -14636,7 +14858,7 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **String**| name of the PersistentVolume | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] ### Return type @@ -14649,7 +14871,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -14688,7 +14910,7 @@ public class Example { CoreV1Api apiInstance = new CoreV1Api(defaultClient); String name = "name_example"; // String | name of the PersistentVolume - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). try { V1PersistentVolume result = apiInstance.readPersistentVolumeStatus(name, pretty); System.out.println(result); @@ -14708,7 +14930,7 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **String**| name of the PersistentVolume | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] ### Return type @@ -14721,7 +14943,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -14761,7 +14983,7 @@ public class Example { CoreV1Api apiInstance = new CoreV1Api(defaultClient); String name = "name_example"; // String | name of the Namespace V1Namespace body = new V1Namespace(); // V1Namespace | - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). 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 fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. @@ -14785,7 +15007,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **String**| name of the Namespace | **body** | [**V1Namespace**](V1Namespace.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] @@ -14801,7 +15023,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -14845,7 +15067,7 @@ public class Example { 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 fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). try { V1Namespace result = apiInstance.replaceNamespaceFinalize(name, body, dryRun, fieldManager, fieldValidation, pretty); System.out.println(result); @@ -14869,7 +15091,7 @@ Name | Type | Description | Notes **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] **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] ### Return type @@ -14882,7 +15104,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -14923,7 +15145,7 @@ public class Example { CoreV1Api apiInstance = new CoreV1Api(defaultClient); String name = "name_example"; // String | name of the Namespace V1Namespace body = new V1Namespace(); // V1Namespace | - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). 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 fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. @@ -14947,7 +15169,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **String**| name of the Namespace | **body** | [**V1Namespace**](V1Namespace.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] @@ -14963,7 +15185,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -15005,7 +15227,7 @@ public class Example { String name = "name_example"; // String | name of the ConfigMap String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects V1ConfigMap body = new V1ConfigMap(); // V1ConfigMap | - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). 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 fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. @@ -15030,7 +15252,7 @@ Name | Type | Description | Notes **name** | **String**| name of the ConfigMap | **namespace** | **String**| object name and auth scope, such as for teams and projects | **body** | [**V1ConfigMap**](V1ConfigMap.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] @@ -15046,7 +15268,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -15088,7 +15310,7 @@ public class Example { String name = "name_example"; // String | name of the Endpoints String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects V1Endpoints body = new V1Endpoints(); // V1Endpoints | - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). 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 fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. @@ -15113,7 +15335,7 @@ Name | Type | Description | Notes **name** | **String**| name of the Endpoints | **namespace** | **String**| object name and auth scope, such as for teams and projects | **body** | [**V1Endpoints**](V1Endpoints.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] @@ -15129,7 +15351,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -15171,7 +15393,7 @@ public class Example { String name = "name_example"; // String | name of the Event String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects CoreV1Event body = new CoreV1Event(); // CoreV1Event | - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). 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 fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. @@ -15196,7 +15418,7 @@ Name | Type | Description | Notes **name** | **String**| name of the Event | **namespace** | **String**| object name and auth scope, such as for teams and projects | **body** | [**CoreV1Event**](CoreV1Event.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] @@ -15212,7 +15434,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -15254,7 +15476,7 @@ public class Example { String name = "name_example"; // String | name of the LimitRange String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects V1LimitRange body = new V1LimitRange(); // V1LimitRange | - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). 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 fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. @@ -15279,7 +15501,7 @@ Name | Type | Description | Notes **name** | **String**| name of the LimitRange | **namespace** | **String**| object name and auth scope, such as for teams and projects | **body** | [**V1LimitRange**](V1LimitRange.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] @@ -15295,7 +15517,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -15337,7 +15559,7 @@ public class Example { String name = "name_example"; // String | name of the PersistentVolumeClaim String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects V1PersistentVolumeClaim body = new V1PersistentVolumeClaim(); // V1PersistentVolumeClaim | - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). 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 fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. @@ -15362,7 +15584,7 @@ Name | Type | Description | Notes **name** | **String**| name of the PersistentVolumeClaim | **namespace** | **String**| object name and auth scope, such as for teams and projects | **body** | [**V1PersistentVolumeClaim**](V1PersistentVolumeClaim.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] @@ -15378,7 +15600,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -15420,7 +15642,7 @@ public class Example { String name = "name_example"; // String | name of the PersistentVolumeClaim String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects V1PersistentVolumeClaim body = new V1PersistentVolumeClaim(); // V1PersistentVolumeClaim | - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). 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 fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. @@ -15445,7 +15667,7 @@ Name | Type | Description | Notes **name** | **String**| name of the PersistentVolumeClaim | **namespace** | **String**| object name and auth scope, such as for teams and projects | **body** | [**V1PersistentVolumeClaim**](V1PersistentVolumeClaim.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] @@ -15461,7 +15683,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -15503,7 +15725,7 @@ public class Example { String name = "name_example"; // String | name of the Pod String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects V1Pod body = new V1Pod(); // V1Pod | - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). 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 fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. @@ -15528,7 +15750,7 @@ Name | Type | Description | Notes **name** | **String**| name of the Pod | **namespace** | **String**| object name and auth scope, such as for teams and projects | **body** | [**V1Pod**](V1Pod.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] @@ -15544,7 +15766,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -15586,7 +15808,7 @@ public class Example { String name = "name_example"; // String | name of the Pod String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects V1Pod body = new V1Pod(); // V1Pod | - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). 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 fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. @@ -15611,7 +15833,90 @@ Name | Type | Description | Notes **name** | **String**| name of the Pod | **namespace** | **String**| object name and auth scope, such as for teams and projects | **body** | [**V1Pod**](V1Pod.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] + **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] + **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] + +### Return type + +[**V1Pod**](V1Pod.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**401** | Unauthorized | - | + + +# **replaceNamespacedPodResize** +> V1Pod replaceNamespacedPodResize(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation) + + + +replace resize of the specified Pod + +### Example +```java +// Import classes: +import io.kubernetes.client.openapi.ApiClient; +import io.kubernetes.client.openapi.ApiException; +import io.kubernetes.client.openapi.Configuration; +import io.kubernetes.client.openapi.auth.*; +import io.kubernetes.client.openapi.models.*; +import io.kubernetes.client.openapi.apis.CoreV1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + CoreV1Api apiInstance = new CoreV1Api(defaultClient); + String name = "name_example"; // String | name of the Pod + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + V1Pod body = new V1Pod(); // V1Pod | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + 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 fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. + try { + V1Pod result = apiInstance.replaceNamespacedPodResize(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling CoreV1Api#replaceNamespacedPodResize"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **String**| name of the Pod | + **namespace** | **String**| object name and auth scope, such as for teams and projects | + **body** | [**V1Pod**](V1Pod.md)| | + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] @@ -15627,7 +15932,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -15669,7 +15974,7 @@ public class Example { String name = "name_example"; // String | name of the Pod String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects V1Pod body = new V1Pod(); // V1Pod | - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). 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 fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. @@ -15694,7 +15999,7 @@ Name | Type | Description | Notes **name** | **String**| name of the Pod | **namespace** | **String**| object name and auth scope, such as for teams and projects | **body** | [**V1Pod**](V1Pod.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] @@ -15710,7 +16015,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -15752,7 +16057,7 @@ public class Example { String name = "name_example"; // String | name of the PodTemplate String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects V1PodTemplate body = new V1PodTemplate(); // V1PodTemplate | - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). 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 fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. @@ -15777,7 +16082,7 @@ Name | Type | Description | Notes **name** | **String**| name of the PodTemplate | **namespace** | **String**| object name and auth scope, such as for teams and projects | **body** | [**V1PodTemplate**](V1PodTemplate.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] @@ -15793,7 +16098,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -15835,7 +16140,7 @@ public class Example { String name = "name_example"; // String | name of the ReplicationController String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects V1ReplicationController body = new V1ReplicationController(); // V1ReplicationController | - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). 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 fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. @@ -15860,7 +16165,7 @@ Name | Type | Description | Notes **name** | **String**| name of the ReplicationController | **namespace** | **String**| object name and auth scope, such as for teams and projects | **body** | [**V1ReplicationController**](V1ReplicationController.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] @@ -15876,7 +16181,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -15918,7 +16223,7 @@ public class Example { String name = "name_example"; // String | name of the Scale String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects V1Scale body = new V1Scale(); // V1Scale | - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). 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 fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. @@ -15943,7 +16248,7 @@ Name | Type | Description | Notes **name** | **String**| name of the Scale | **namespace** | **String**| object name and auth scope, such as for teams and projects | **body** | [**V1Scale**](V1Scale.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] @@ -15959,7 +16264,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -16001,7 +16306,7 @@ public class Example { String name = "name_example"; // String | name of the ReplicationController String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects V1ReplicationController body = new V1ReplicationController(); // V1ReplicationController | - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). 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 fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. @@ -16026,7 +16331,7 @@ Name | Type | Description | Notes **name** | **String**| name of the ReplicationController | **namespace** | **String**| object name and auth scope, such as for teams and projects | **body** | [**V1ReplicationController**](V1ReplicationController.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] @@ -16042,7 +16347,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -16084,7 +16389,7 @@ public class Example { String name = "name_example"; // String | name of the ResourceQuota String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects V1ResourceQuota body = new V1ResourceQuota(); // V1ResourceQuota | - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). 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 fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. @@ -16109,7 +16414,7 @@ Name | Type | Description | Notes **name** | **String**| name of the ResourceQuota | **namespace** | **String**| object name and auth scope, such as for teams and projects | **body** | [**V1ResourceQuota**](V1ResourceQuota.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] @@ -16125,7 +16430,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -16167,7 +16472,7 @@ public class Example { String name = "name_example"; // String | name of the ResourceQuota String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects V1ResourceQuota body = new V1ResourceQuota(); // V1ResourceQuota | - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). 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 fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. @@ -16192,7 +16497,7 @@ Name | Type | Description | Notes **name** | **String**| name of the ResourceQuota | **namespace** | **String**| object name and auth scope, such as for teams and projects | **body** | [**V1ResourceQuota**](V1ResourceQuota.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] @@ -16208,7 +16513,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -16250,7 +16555,7 @@ public class Example { String name = "name_example"; // String | name of the Secret String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects V1Secret body = new V1Secret(); // V1Secret | - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). 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 fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. @@ -16275,7 +16580,7 @@ Name | Type | Description | Notes **name** | **String**| name of the Secret | **namespace** | **String**| object name and auth scope, such as for teams and projects | **body** | [**V1Secret**](V1Secret.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] @@ -16291,7 +16596,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -16333,7 +16638,7 @@ public class Example { String name = "name_example"; // String | name of the Service String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects V1Service body = new V1Service(); // V1Service | - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). 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 fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. @@ -16358,7 +16663,7 @@ Name | Type | Description | Notes **name** | **String**| name of the Service | **namespace** | **String**| object name and auth scope, such as for teams and projects | **body** | [**V1Service**](V1Service.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] @@ -16374,7 +16679,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -16416,7 +16721,7 @@ public class Example { String name = "name_example"; // String | name of the ServiceAccount String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects V1ServiceAccount body = new V1ServiceAccount(); // V1ServiceAccount | - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). 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 fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. @@ -16441,7 +16746,7 @@ Name | Type | Description | Notes **name** | **String**| name of the ServiceAccount | **namespace** | **String**| object name and auth scope, such as for teams and projects | **body** | [**V1ServiceAccount**](V1ServiceAccount.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] @@ -16457,7 +16762,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -16499,7 +16804,7 @@ public class Example { String name = "name_example"; // String | name of the Service String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects V1Service body = new V1Service(); // V1Service | - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). 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 fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. @@ -16524,7 +16829,7 @@ Name | Type | Description | Notes **name** | **String**| name of the Service | **namespace** | **String**| object name and auth scope, such as for teams and projects | **body** | [**V1Service**](V1Service.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] @@ -16540,7 +16845,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -16581,7 +16886,7 @@ public class Example { CoreV1Api apiInstance = new CoreV1Api(defaultClient); String name = "name_example"; // String | name of the Node V1Node body = new V1Node(); // V1Node | - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). 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 fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. @@ -16605,7 +16910,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **String**| name of the Node | **body** | [**V1Node**](V1Node.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] @@ -16621,7 +16926,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -16662,7 +16967,7 @@ public class Example { CoreV1Api apiInstance = new CoreV1Api(defaultClient); String name = "name_example"; // String | name of the Node V1Node body = new V1Node(); // V1Node | - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). 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 fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. @@ -16686,7 +16991,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **String**| name of the Node | **body** | [**V1Node**](V1Node.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] @@ -16702,7 +17007,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -16743,7 +17048,7 @@ public class Example { CoreV1Api apiInstance = new CoreV1Api(defaultClient); String name = "name_example"; // String | name of the PersistentVolume V1PersistentVolume body = new V1PersistentVolume(); // V1PersistentVolume | - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). 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 fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. @@ -16767,7 +17072,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **String**| name of the PersistentVolume | **body** | [**V1PersistentVolume**](V1PersistentVolume.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] @@ -16783,7 +17088,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -16824,7 +17129,7 @@ public class Example { CoreV1Api apiInstance = new CoreV1Api(defaultClient); String name = "name_example"; // String | name of the PersistentVolume V1PersistentVolume body = new V1PersistentVolume(); // V1PersistentVolume | - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). 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 fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. @@ -16848,7 +17153,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **String**| name of the PersistentVolume | **body** | [**V1PersistentVolume**](V1PersistentVolume.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] @@ -16864,7 +17169,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | diff --git a/kubernetes/docs/CoreV1EndpointPort.md b/kubernetes/docs/CoreV1EndpointPort.md index f42230f70c..b0ab1747c7 100644 --- a/kubernetes/docs/CoreV1EndpointPort.md +++ b/kubernetes/docs/CoreV1EndpointPort.md @@ -2,12 +2,12 @@ # CoreV1EndpointPort -EndpointPort is a tuple that describes a single port. +EndpointPort is a tuple that describes a single port. Deprecated: This API is deprecated in v1.33+. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**appProtocol** | **String** | 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 over cleartext as described in https://www.rfc-editor.org/rfc/rfc7540 * '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. | [optional] +**appProtocol** | **String** | 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. | [optional] **name** | **String** | 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. | [optional] **port** | **Integer** | The port number of the endpoint. | **protocol** | **String** | The IP protocol for this port. Must be UDP, TCP, or SCTP. Default is TCP. | [optional] diff --git a/kubernetes/docs/CustomObjectsApi.md b/kubernetes/docs/CustomObjectsApi.md index 0fa9503c93..8dff0df1cf 100644 --- a/kubernetes/docs/CustomObjectsApi.md +++ b/kubernetes/docs/CustomObjectsApi.md @@ -18,6 +18,7 @@ Method | HTTP request | Description [**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}/{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 | @@ -35,7 +36,7 @@ Method | HTTP request | Description # **createClusterCustomObject** -> Object createClusterCustomObject(group, version, plural, body, pretty, dryRun, fieldManager) +> Object createClusterCustomObject(group, version, plural, body, pretty, dryRun, fieldManager, fieldValidation) @@ -70,8 +71,9 @@ public class Example { String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. 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 fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). + String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) try { - Object result = apiInstance.createClusterCustomObject(group, version, plural, body, pretty, dryRun, fieldManager); + Object result = apiInstance.createClusterCustomObject(group, version, plural, body, pretty, dryRun, fieldManager, fieldValidation); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling CustomObjectsApi#createClusterCustomObject"); @@ -95,6 +97,7 @@ Name | Type | Description | Notes **pretty** | **String**| If 'true', then the output is pretty printed. | [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] **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] + **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) | [optional] ### Return type @@ -117,7 +120,7 @@ Name | Type | Description | Notes # **createNamespacedCustomObject** -> Object createNamespacedCustomObject(group, version, namespace, plural, body, pretty, dryRun, fieldManager) +> Object createNamespacedCustomObject(group, version, namespace, plural, body, pretty, dryRun, fieldManager, fieldValidation) @@ -153,8 +156,9 @@ public class Example { String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. 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 fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) try { - Object result = apiInstance.createNamespacedCustomObject(group, version, namespace, plural, body, pretty, dryRun, fieldManager); + Object result = apiInstance.createNamespacedCustomObject(group, version, namespace, plural, body, pretty, dryRun, fieldManager, fieldValidation); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling CustomObjectsApi#createNamespacedCustomObject"); @@ -179,6 +183,7 @@ Name | Type | Description | Notes **pretty** | **String**| If 'true', then the output is pretty printed. | [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] **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] + **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) | [optional] ### Return type @@ -287,7 +292,7 @@ Name | Type | Description | Notes # **deleteCollectionClusterCustomObject** -> Object deleteCollectionClusterCustomObject(group, version, plural, pretty, gracePeriodSeconds, orphanDependents, propagationPolicy, dryRun, body) +> Object deleteCollectionClusterCustomObject(group, version, plural, pretty, labelSelector, gracePeriodSeconds, orphanDependents, propagationPolicy, dryRun, body) @@ -319,13 +324,14 @@ public class Example { 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 pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. Integer gracePeriodSeconds = 56; // Integer | 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. 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 V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | try { - Object result = apiInstance.deleteCollectionClusterCustomObject(group, version, plural, pretty, gracePeriodSeconds, orphanDependents, propagationPolicy, dryRun, body); + Object result = apiInstance.deleteCollectionClusterCustomObject(group, version, plural, pretty, labelSelector, gracePeriodSeconds, orphanDependents, propagationPolicy, dryRun, body); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling CustomObjectsApi#deleteCollectionClusterCustomObject"); @@ -346,6 +352,7 @@ Name | Type | Description | Notes **version** | **String**| The custom resource's version | **plural** | **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] + **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] **gracePeriodSeconds** | **Integer**| 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. | [optional] **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] @@ -373,7 +380,7 @@ Name | Type | Description | Notes # **deleteCollectionNamespacedCustomObject** -> Object deleteCollectionNamespacedCustomObject(group, version, namespace, plural, pretty, gracePeriodSeconds, orphanDependents, propagationPolicy, dryRun, body) +> Object deleteCollectionNamespacedCustomObject(group, version, namespace, plural, pretty, labelSelector, gracePeriodSeconds, orphanDependents, propagationPolicy, dryRun, fieldSelector, body) @@ -406,13 +413,15 @@ public class Example { String namespace = "namespace_example"; // String | The custom resource's namespace String plural = "plural_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. + String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. Integer gracePeriodSeconds = 56; // Integer | 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. 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, pretty, gracePeriodSeconds, orphanDependents, propagationPolicy, dryRun, body); + Object result = apiInstance.deleteCollectionNamespacedCustomObject(group, version, namespace, plural, pretty, labelSelector, gracePeriodSeconds, orphanDependents, propagationPolicy, dryRun, fieldSelector, body); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling CustomObjectsApi#deleteCollectionNamespacedCustomObject"); @@ -434,10 +443,12 @@ Name | Type | Description | Notes **namespace** | **String**| The custom resource's namespace | **plural** | **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] + **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] **gracePeriodSeconds** | **Integer**| 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. | [optional] **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 @@ -1175,6 +1186,100 @@ Name | Type | Description | Notes **200** | OK | - | **401** | Unauthorized | - | + +# **listCustomObjectForAllNamespaces** +> Object listCustomObjectForAllNamespaces(group, version, resourcePlural, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, timeoutSeconds, watch) + + + +list or watch namespace scoped custom objects + +### Example +```java +// Import classes: +import io.kubernetes.client.openapi.ApiClient; +import io.kubernetes.client.openapi.ApiException; +import io.kubernetes.client.openapi.Configuration; +import io.kubernetes.client.openapi.auth.*; +import io.kubernetes.client.openapi.models.*; +import io.kubernetes.client.openapi.apis.CustomObjectsApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + 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 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. + String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. + String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. + Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + String resourceVersion = "resourceVersion_example"; // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + String resourceVersionMatch = "resourceVersionMatch_example"; // String | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + 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, resourcePlural, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, timeoutSeconds, watch); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling CustomObjectsApi#listCustomObjectForAllNamespaces"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **group** | **String**| The custom resource's group name | + **version** | **String**| The custom resource's version | + **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] + **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] + **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] + **resourceVersion** | **String**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] + **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] + **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] + **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. | [optional] + +### Return type + +**Object** + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/json;stream=watch + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **listNamespacedCustomObject** > Object listNamespacedCustomObject(group, version, namespace, plural, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, timeoutSeconds, watch) @@ -1273,7 +1378,7 @@ Name | Type | Description | Notes # **patchClusterCustomObject** -> Object patchClusterCustomObject(group, version, plural, name, body, dryRun, fieldManager, force) +> Object patchClusterCustomObject(group, version, plural, name, body, dryRun, fieldManager, fieldValidation, force) @@ -1308,9 +1413,10 @@ public class Example { Object body = null; // Object | The JSON schema of the Resource to patch. 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 fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). + String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) Boolean force = true; // Boolean | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. try { - Object result = apiInstance.patchClusterCustomObject(group, version, plural, name, body, dryRun, fieldManager, force); + Object result = apiInstance.patchClusterCustomObject(group, version, plural, name, body, dryRun, fieldManager, fieldValidation, force); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling CustomObjectsApi#patchClusterCustomObject"); @@ -1334,6 +1440,7 @@ Name | Type | Description | Notes **body** | **Object**| The JSON schema of the Resource to patch. | **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] **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] + **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) | [optional] **force** | **Boolean**| Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | [optional] ### Return type @@ -1357,7 +1464,7 @@ Name | Type | Description | Notes # **patchClusterCustomObjectScale** -> Object patchClusterCustomObjectScale(group, version, plural, name, body, dryRun, fieldManager, force) +> Object patchClusterCustomObjectScale(group, version, plural, name, body, dryRun, fieldManager, fieldValidation, force) @@ -1392,9 +1499,10 @@ public class Example { Object body = null; // Object | 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 fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). + String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) Boolean force = true; // Boolean | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. try { - Object result = apiInstance.patchClusterCustomObjectScale(group, version, plural, name, body, dryRun, fieldManager, force); + Object result = apiInstance.patchClusterCustomObjectScale(group, version, plural, name, body, dryRun, fieldManager, fieldValidation, force); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling CustomObjectsApi#patchClusterCustomObjectScale"); @@ -1418,6 +1526,7 @@ Name | Type | Description | Notes **body** | **Object**| | **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] **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] + **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) | [optional] **force** | **Boolean**| Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | [optional] ### Return type @@ -1441,7 +1550,7 @@ Name | Type | Description | Notes # **patchClusterCustomObjectStatus** -> Object patchClusterCustomObjectStatus(group, version, plural, name, body, dryRun, fieldManager, force) +> Object patchClusterCustomObjectStatus(group, version, plural, name, body, dryRun, fieldManager, fieldValidation, force) @@ -1476,9 +1585,10 @@ public class Example { Object body = null; // Object | 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 fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). + String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) Boolean force = true; // Boolean | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. try { - Object result = apiInstance.patchClusterCustomObjectStatus(group, version, plural, name, body, dryRun, fieldManager, force); + Object result = apiInstance.patchClusterCustomObjectStatus(group, version, plural, name, body, dryRun, fieldManager, fieldValidation, force); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling CustomObjectsApi#patchClusterCustomObjectStatus"); @@ -1502,6 +1612,7 @@ Name | Type | Description | Notes **body** | **Object**| | **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] **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] + **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) | [optional] **force** | **Boolean**| Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | [optional] ### Return type @@ -1525,7 +1636,7 @@ Name | Type | Description | Notes # **patchNamespacedCustomObject** -> Object patchNamespacedCustomObject(group, version, namespace, plural, name, body, dryRun, fieldManager, force) +> Object patchNamespacedCustomObject(group, version, namespace, plural, name, body, dryRun, fieldManager, fieldValidation, force) @@ -1561,9 +1672,10 @@ public class Example { Object body = null; // Object | The JSON schema of the Resource to patch. 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 fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). + String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) Boolean force = true; // Boolean | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. try { - Object result = apiInstance.patchNamespacedCustomObject(group, version, namespace, plural, name, body, dryRun, fieldManager, force); + Object result = apiInstance.patchNamespacedCustomObject(group, version, namespace, plural, name, body, dryRun, fieldManager, fieldValidation, force); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling CustomObjectsApi#patchNamespacedCustomObject"); @@ -1588,6 +1700,7 @@ Name | Type | Description | Notes **body** | **Object**| The JSON schema of the Resource to patch. | **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] **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] + **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) | [optional] **force** | **Boolean**| Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | [optional] ### Return type @@ -1611,7 +1724,7 @@ Name | Type | Description | Notes # **patchNamespacedCustomObjectScale** -> Object patchNamespacedCustomObjectScale(group, version, namespace, plural, name, body, dryRun, fieldManager, force) +> Object patchNamespacedCustomObjectScale(group, version, namespace, plural, name, body, dryRun, fieldManager, fieldValidation, force) @@ -1647,9 +1760,10 @@ public class Example { Object body = null; // Object | 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 fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). + String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) Boolean force = true; // Boolean | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. try { - Object result = apiInstance.patchNamespacedCustomObjectScale(group, version, namespace, plural, name, body, dryRun, fieldManager, force); + Object result = apiInstance.patchNamespacedCustomObjectScale(group, version, namespace, plural, name, body, dryRun, fieldManager, fieldValidation, force); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling CustomObjectsApi#patchNamespacedCustomObjectScale"); @@ -1674,6 +1788,7 @@ Name | Type | Description | Notes **body** | **Object**| | **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] **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] + **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) | [optional] **force** | **Boolean**| Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | [optional] ### Return type @@ -1697,7 +1812,7 @@ Name | Type | Description | Notes # **patchNamespacedCustomObjectStatus** -> Object patchNamespacedCustomObjectStatus(group, version, namespace, plural, name, body, dryRun, fieldManager, force) +> Object patchNamespacedCustomObjectStatus(group, version, namespace, plural, name, body, dryRun, fieldManager, fieldValidation, force) @@ -1733,9 +1848,10 @@ public class Example { Object body = null; // Object | 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 fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). + String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) Boolean force = true; // Boolean | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. try { - Object result = apiInstance.patchNamespacedCustomObjectStatus(group, version, namespace, plural, name, body, dryRun, fieldManager, force); + Object result = apiInstance.patchNamespacedCustomObjectStatus(group, version, namespace, plural, name, body, dryRun, fieldManager, fieldValidation, force); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling CustomObjectsApi#patchNamespacedCustomObjectStatus"); @@ -1760,6 +1876,7 @@ Name | Type | Description | Notes **body** | **Object**| | **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] **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] + **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) | [optional] **force** | **Boolean**| Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | [optional] ### Return type @@ -1783,7 +1900,7 @@ Name | Type | Description | Notes # **replaceClusterCustomObject** -> Object replaceClusterCustomObject(group, version, plural, name, body, dryRun, fieldManager) +> Object replaceClusterCustomObject(group, version, plural, name, body, dryRun, fieldManager, fieldValidation) @@ -1818,8 +1935,9 @@ public class Example { Object body = null; // Object | The JSON schema of the Resource to replace. 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 fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) try { - Object result = apiInstance.replaceClusterCustomObject(group, version, plural, name, body, dryRun, fieldManager); + Object result = apiInstance.replaceClusterCustomObject(group, version, plural, name, body, dryRun, fieldManager, fieldValidation); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling CustomObjectsApi#replaceClusterCustomObject"); @@ -1843,6 +1961,7 @@ Name | Type | Description | Notes **body** | **Object**| The JSON schema of the Resource to replace. | **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] **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] + **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) | [optional] ### Return type @@ -1865,7 +1984,7 @@ Name | Type | Description | Notes # **replaceClusterCustomObjectScale** -> Object replaceClusterCustomObjectScale(group, version, plural, name, body, dryRun, fieldManager) +> Object replaceClusterCustomObjectScale(group, version, plural, name, body, dryRun, fieldManager, fieldValidation) @@ -1900,8 +2019,9 @@ public class Example { Object body = null; // Object | 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 fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) try { - Object result = apiInstance.replaceClusterCustomObjectScale(group, version, plural, name, body, dryRun, fieldManager); + Object result = apiInstance.replaceClusterCustomObjectScale(group, version, plural, name, body, dryRun, fieldManager, fieldValidation); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling CustomObjectsApi#replaceClusterCustomObjectScale"); @@ -1925,6 +2045,7 @@ Name | Type | Description | Notes **body** | **Object**| | **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] **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] + **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) | [optional] ### Return type @@ -1948,7 +2069,7 @@ Name | Type | Description | Notes # **replaceClusterCustomObjectStatus** -> Object replaceClusterCustomObjectStatus(group, version, plural, name, body, dryRun, fieldManager) +> Object replaceClusterCustomObjectStatus(group, version, plural, name, body, dryRun, fieldManager, fieldValidation) @@ -1983,8 +2104,9 @@ public class Example { Object body = null; // Object | 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 fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) try { - Object result = apiInstance.replaceClusterCustomObjectStatus(group, version, plural, name, body, dryRun, fieldManager); + Object result = apiInstance.replaceClusterCustomObjectStatus(group, version, plural, name, body, dryRun, fieldManager, fieldValidation); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling CustomObjectsApi#replaceClusterCustomObjectStatus"); @@ -2008,6 +2130,7 @@ Name | Type | Description | Notes **body** | **Object**| | **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] **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] + **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) | [optional] ### Return type @@ -2031,7 +2154,7 @@ Name | Type | Description | Notes # **replaceNamespacedCustomObject** -> Object replaceNamespacedCustomObject(group, version, namespace, plural, name, body, dryRun, fieldManager) +> Object replaceNamespacedCustomObject(group, version, namespace, plural, name, body, dryRun, fieldManager, fieldValidation) @@ -2067,8 +2190,9 @@ public class Example { Object body = null; // Object | The JSON schema of the Resource to replace. 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 fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) try { - Object result = apiInstance.replaceNamespacedCustomObject(group, version, namespace, plural, name, body, dryRun, fieldManager); + Object result = apiInstance.replaceNamespacedCustomObject(group, version, namespace, plural, name, body, dryRun, fieldManager, fieldValidation); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling CustomObjectsApi#replaceNamespacedCustomObject"); @@ -2093,6 +2217,7 @@ Name | Type | Description | Notes **body** | **Object**| The JSON schema of the Resource to replace. | **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] **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] + **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) | [optional] ### Return type @@ -2115,7 +2240,7 @@ Name | Type | Description | Notes # **replaceNamespacedCustomObjectScale** -> Object replaceNamespacedCustomObjectScale(group, version, namespace, plural, name, body, dryRun, fieldManager) +> Object replaceNamespacedCustomObjectScale(group, version, namespace, plural, name, body, dryRun, fieldManager, fieldValidation) @@ -2151,8 +2276,9 @@ public class Example { Object body = null; // Object | 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 fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) try { - Object result = apiInstance.replaceNamespacedCustomObjectScale(group, version, namespace, plural, name, body, dryRun, fieldManager); + Object result = apiInstance.replaceNamespacedCustomObjectScale(group, version, namespace, plural, name, body, dryRun, fieldManager, fieldValidation); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling CustomObjectsApi#replaceNamespacedCustomObjectScale"); @@ -2177,6 +2303,7 @@ Name | Type | Description | Notes **body** | **Object**| | **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] **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] + **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) | [optional] ### Return type @@ -2200,7 +2327,7 @@ Name | Type | Description | Notes # **replaceNamespacedCustomObjectStatus** -> Object replaceNamespacedCustomObjectStatus(group, version, namespace, plural, name, body, dryRun, fieldManager) +> Object replaceNamespacedCustomObjectStatus(group, version, namespace, plural, name, body, dryRun, fieldManager, fieldValidation) @@ -2236,8 +2363,9 @@ public class Example { Object body = null; // Object | 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 fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) try { - Object result = apiInstance.replaceNamespacedCustomObjectStatus(group, version, namespace, plural, name, body, dryRun, fieldManager); + Object result = apiInstance.replaceNamespacedCustomObjectStatus(group, version, namespace, plural, name, body, dryRun, fieldManager, fieldValidation); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling CustomObjectsApi#replaceNamespacedCustomObjectStatus"); @@ -2262,6 +2390,7 @@ Name | Type | Description | Notes **body** | **Object**| | **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] **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] + **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) | [optional] ### Return type diff --git a/kubernetes/docs/DiscoveryV1Api.md b/kubernetes/docs/DiscoveryV1Api.md index 5946401f0f..40b2dcbd1b 100644 --- a/kubernetes/docs/DiscoveryV1Api.md +++ b/kubernetes/docs/DiscoveryV1Api.md @@ -47,7 +47,7 @@ public class Example { DiscoveryV1Api apiInstance = new DiscoveryV1Api(defaultClient); String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects V1EndpointSlice body = new V1EndpointSlice(); // V1EndpointSlice | - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). 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 fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. @@ -71,7 +71,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **namespace** | **String**| object name and auth scope, such as for teams and projects | **body** | [**V1EndpointSlice**](V1EndpointSlice.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] @@ -87,7 +87,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -99,7 +99,7 @@ Name | Type | Description | Notes # **deleteCollectionNamespacedEndpointSlice** -> V1Status deleteCollectionNamespacedEndpointSlice(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body) +> V1Status deleteCollectionNamespacedEndpointSlice(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body) @@ -128,11 +128,12 @@ public class Example { DiscoveryV1Api apiInstance = new DiscoveryV1Api(defaultClient); String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). 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. 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. Integer gracePeriodSeconds = 56; // Integer | 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. + Boolean ignoreStoreReadErrorWithClusterBreakingPotential = true; // Boolean | if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. 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. @@ -143,7 +144,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. V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | try { - V1Status result = apiInstance.deleteCollectionNamespacedEndpointSlice(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); + V1Status result = apiInstance.deleteCollectionNamespacedEndpointSlice(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling DiscoveryV1Api#deleteCollectionNamespacedEndpointSlice"); @@ -161,11 +162,12 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **namespace** | **String**| object name and auth scope, such as for teams and projects | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] **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] **gracePeriodSeconds** | **Integer**| 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. | [optional] + **ignoreStoreReadErrorWithClusterBreakingPotential** | **Boolean**| if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it | [optional] **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] **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] @@ -187,7 +189,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -197,7 +199,7 @@ Name | Type | Description | Notes # **deleteNamespacedEndpointSlice** -> V1Status deleteNamespacedEndpointSlice(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body) +> V1Status deleteNamespacedEndpointSlice(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body) @@ -227,14 +229,15 @@ public class Example { DiscoveryV1Api apiInstance = new DiscoveryV1Api(defaultClient); String name = "name_example"; // String | name of the EndpointSlice String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). 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 Integer gracePeriodSeconds = 56; // Integer | 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. + Boolean ignoreStoreReadErrorWithClusterBreakingPotential = true; // Boolean | if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it 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. 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. V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | try { - V1Status result = apiInstance.deleteNamespacedEndpointSlice(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body); + V1Status result = apiInstance.deleteNamespacedEndpointSlice(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling DiscoveryV1Api#deleteNamespacedEndpointSlice"); @@ -253,9 +256,10 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **String**| name of the EndpointSlice | **namespace** | **String**| object name and auth scope, such as for teams and projects | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] **gracePeriodSeconds** | **Integer**| 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. | [optional] + **ignoreStoreReadErrorWithClusterBreakingPotential** | **Boolean**| if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it | [optional] **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. 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. | [optional] **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] @@ -271,7 +275,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -338,7 +342,7 @@ This endpoint does not need any parameter. ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -381,7 +385,7 @@ public class Example { String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). String resourceVersion = "resourceVersion_example"; // String | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset String resourceVersionMatch = "resourceVersionMatch_example"; // String | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset Boolean sendInitialEvents = true; // Boolean | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. @@ -410,7 +414,7 @@ Name | Type | Description | Notes **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] @@ -428,7 +432,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch, application/cbor-seq ### HTTP response details | Status code | Description | Response headers | @@ -467,7 +471,7 @@ public class Example { DiscoveryV1Api apiInstance = new DiscoveryV1Api(defaultClient); String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). 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. 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. String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. @@ -497,7 +501,7 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **namespace** | **String**| object name and auth scope, such as for teams and projects | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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. | [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] **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] @@ -520,7 +524,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch, application/cbor-seq ### HTTP response details | Status code | Description | Response headers | @@ -561,7 +565,7 @@ public class Example { String name = "name_example"; // String | name of the EndpointSlice String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects V1Patch body = new V1Patch(); // V1Patch | - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). 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 fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. @@ -587,7 +591,7 @@ Name | Type | Description | Notes **name** | **String**| name of the EndpointSlice | **namespace** | **String**| object name and auth scope, such as for teams and projects | **body** | **V1Patch**| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] @@ -604,7 +608,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -645,7 +649,7 @@ public class Example { DiscoveryV1Api apiInstance = new DiscoveryV1Api(defaultClient); String name = "name_example"; // String | name of the EndpointSlice String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). try { V1EndpointSlice result = apiInstance.readNamespacedEndpointSlice(name, namespace, pretty); System.out.println(result); @@ -666,7 +670,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **String**| name of the EndpointSlice | **namespace** | **String**| object name and auth scope, such as for teams and projects | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] ### Return type @@ -679,7 +683,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -720,7 +724,7 @@ public class Example { String name = "name_example"; // String | name of the EndpointSlice String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects V1EndpointSlice body = new V1EndpointSlice(); // V1EndpointSlice | - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). 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 fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. @@ -745,7 +749,7 @@ Name | Type | Description | Notes **name** | **String**| name of the EndpointSlice | **namespace** | **String**| object name and auth scope, such as for teams and projects | **body** | [**V1EndpointSlice**](V1EndpointSlice.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] @@ -761,7 +765,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | diff --git a/kubernetes/docs/DiscoveryV1EndpointPort.md b/kubernetes/docs/DiscoveryV1EndpointPort.md index c33ded56cb..1ca706ad7f 100644 --- a/kubernetes/docs/DiscoveryV1EndpointPort.md +++ b/kubernetes/docs/DiscoveryV1EndpointPort.md @@ -7,9 +7,9 @@ EndpointPort represents a Port used by an EndpointSlice Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**appProtocol** | **String** | 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 over cleartext as described in https://www.rfc-editor.org/rfc/rfc7540 * '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. | [optional] -**name** | **String** | name represents the name of this port. All ports in an EndpointSlice must have a unique name. If the EndpointSlice is dervied 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. | [optional] -**port** | **Integer** | 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. | [optional] +**appProtocol** | **String** | 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. | [optional] +**name** | **String** | 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. | [optional] +**port** | **Integer** | port represents the port number of the endpoint. If the EndpointSlice is derived from a Kubernetes service, this must be set to the service's target port. EndpointSlices used for other purposes may have a nil port. | [optional] **protocol** | **String** | protocol represents the IP protocol for this port. Must be UDP, TCP, or SCTP. Default is TCP. | [optional] diff --git a/kubernetes/docs/EventsV1Api.md b/kubernetes/docs/EventsV1Api.md index 146d1bbd30..25c8b075b5 100644 --- a/kubernetes/docs/EventsV1Api.md +++ b/kubernetes/docs/EventsV1Api.md @@ -47,7 +47,7 @@ public class Example { EventsV1Api apiInstance = new EventsV1Api(defaultClient); String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects EventsV1Event body = new EventsV1Event(); // EventsV1Event | - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). 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 fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. @@ -71,7 +71,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **namespace** | **String**| object name and auth scope, such as for teams and projects | **body** | [**EventsV1Event**](EventsV1Event.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] @@ -87,7 +87,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -99,7 +99,7 @@ Name | Type | Description | Notes # **deleteCollectionNamespacedEvent** -> V1Status deleteCollectionNamespacedEvent(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body) +> V1Status deleteCollectionNamespacedEvent(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body) @@ -128,11 +128,12 @@ public class Example { EventsV1Api apiInstance = new EventsV1Api(defaultClient); String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). 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. 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. Integer gracePeriodSeconds = 56; // Integer | 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. + Boolean ignoreStoreReadErrorWithClusterBreakingPotential = true; // Boolean | if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. 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. @@ -143,7 +144,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. V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | try { - V1Status result = apiInstance.deleteCollectionNamespacedEvent(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); + V1Status result = apiInstance.deleteCollectionNamespacedEvent(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling EventsV1Api#deleteCollectionNamespacedEvent"); @@ -161,11 +162,12 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **namespace** | **String**| object name and auth scope, such as for teams and projects | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] **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] **gracePeriodSeconds** | **Integer**| 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. | [optional] + **ignoreStoreReadErrorWithClusterBreakingPotential** | **Boolean**| if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it | [optional] **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] **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] @@ -187,7 +189,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -197,7 +199,7 @@ Name | Type | Description | Notes # **deleteNamespacedEvent** -> V1Status deleteNamespacedEvent(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body) +> V1Status deleteNamespacedEvent(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body) @@ -227,14 +229,15 @@ public class Example { EventsV1Api apiInstance = new EventsV1Api(defaultClient); String name = "name_example"; // String | name of the Event String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). 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 Integer gracePeriodSeconds = 56; // Integer | 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. + Boolean ignoreStoreReadErrorWithClusterBreakingPotential = true; // Boolean | if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it 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. 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. V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | try { - V1Status result = apiInstance.deleteNamespacedEvent(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body); + V1Status result = apiInstance.deleteNamespacedEvent(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling EventsV1Api#deleteNamespacedEvent"); @@ -253,9 +256,10 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **String**| name of the Event | **namespace** | **String**| object name and auth scope, such as for teams and projects | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] **gracePeriodSeconds** | **Integer**| 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. | [optional] + **ignoreStoreReadErrorWithClusterBreakingPotential** | **Boolean**| if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it | [optional] **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. 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. | [optional] **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] @@ -271,7 +275,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -338,7 +342,7 @@ This endpoint does not need any parameter. ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -381,7 +385,7 @@ public class Example { String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). String resourceVersion = "resourceVersion_example"; // String | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset String resourceVersionMatch = "resourceVersionMatch_example"; // String | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset Boolean sendInitialEvents = true; // Boolean | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. @@ -410,7 +414,7 @@ Name | Type | Description | Notes **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] @@ -428,7 +432,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch, application/cbor-seq ### HTTP response details | Status code | Description | Response headers | @@ -467,7 +471,7 @@ public class Example { EventsV1Api apiInstance = new EventsV1Api(defaultClient); String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). 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. 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. String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. @@ -497,7 +501,7 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **namespace** | **String**| object name and auth scope, such as for teams and projects | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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. | [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] **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] @@ -520,7 +524,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch, application/cbor-seq ### HTTP response details | Status code | Description | Response headers | @@ -561,7 +565,7 @@ public class Example { String name = "name_example"; // String | name of the Event String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects V1Patch body = new V1Patch(); // V1Patch | - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). 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 fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. @@ -587,7 +591,7 @@ Name | Type | Description | Notes **name** | **String**| name of the Event | **namespace** | **String**| object name and auth scope, such as for teams and projects | **body** | **V1Patch**| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] @@ -604,7 +608,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -645,7 +649,7 @@ public class Example { EventsV1Api apiInstance = new EventsV1Api(defaultClient); String name = "name_example"; // String | name of the Event String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). try { EventsV1Event result = apiInstance.readNamespacedEvent(name, namespace, pretty); System.out.println(result); @@ -666,7 +670,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **String**| name of the Event | **namespace** | **String**| object name and auth scope, such as for teams and projects | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] ### Return type @@ -679,7 +683,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -720,7 +724,7 @@ public class Example { String name = "name_example"; // String | name of the Event String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects EventsV1Event body = new EventsV1Event(); // EventsV1Event | - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). 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 fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. @@ -745,7 +749,7 @@ Name | Type | Description | Notes **name** | **String**| name of the Event | **namespace** | **String**| object name and auth scope, such as for teams and projects | **body** | [**EventsV1Event**](EventsV1Event.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] @@ -761,7 +765,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | diff --git a/kubernetes/docs/FlowcontrolApiserverV1Api.md b/kubernetes/docs/FlowcontrolApiserverV1Api.md new file mode 100644 index 0000000000..77a35c5a23 --- /dev/null +++ b/kubernetes/docs/FlowcontrolApiserverV1Api.md @@ -0,0 +1,1745 @@ +# FlowcontrolApiserverV1Api + +All URIs are relative to *http://localhost* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**createFlowSchema**](FlowcontrolApiserverV1Api.md#createFlowSchema) | **POST** /apis/flowcontrol.apiserver.k8s.io/v1/flowschemas | +[**createPriorityLevelConfiguration**](FlowcontrolApiserverV1Api.md#createPriorityLevelConfiguration) | **POST** /apis/flowcontrol.apiserver.k8s.io/v1/prioritylevelconfigurations | +[**deleteCollectionFlowSchema**](FlowcontrolApiserverV1Api.md#deleteCollectionFlowSchema) | **DELETE** /apis/flowcontrol.apiserver.k8s.io/v1/flowschemas | +[**deleteCollectionPriorityLevelConfiguration**](FlowcontrolApiserverV1Api.md#deleteCollectionPriorityLevelConfiguration) | **DELETE** /apis/flowcontrol.apiserver.k8s.io/v1/prioritylevelconfigurations | +[**deleteFlowSchema**](FlowcontrolApiserverV1Api.md#deleteFlowSchema) | **DELETE** /apis/flowcontrol.apiserver.k8s.io/v1/flowschemas/{name} | +[**deletePriorityLevelConfiguration**](FlowcontrolApiserverV1Api.md#deletePriorityLevelConfiguration) | **DELETE** /apis/flowcontrol.apiserver.k8s.io/v1/prioritylevelconfigurations/{name} | +[**getAPIResources**](FlowcontrolApiserverV1Api.md#getAPIResources) | **GET** /apis/flowcontrol.apiserver.k8s.io/v1/ | +[**listFlowSchema**](FlowcontrolApiserverV1Api.md#listFlowSchema) | **GET** /apis/flowcontrol.apiserver.k8s.io/v1/flowschemas | +[**listPriorityLevelConfiguration**](FlowcontrolApiserverV1Api.md#listPriorityLevelConfiguration) | **GET** /apis/flowcontrol.apiserver.k8s.io/v1/prioritylevelconfigurations | +[**patchFlowSchema**](FlowcontrolApiserverV1Api.md#patchFlowSchema) | **PATCH** /apis/flowcontrol.apiserver.k8s.io/v1/flowschemas/{name} | +[**patchFlowSchemaStatus**](FlowcontrolApiserverV1Api.md#patchFlowSchemaStatus) | **PATCH** /apis/flowcontrol.apiserver.k8s.io/v1/flowschemas/{name}/status | +[**patchPriorityLevelConfiguration**](FlowcontrolApiserverV1Api.md#patchPriorityLevelConfiguration) | **PATCH** /apis/flowcontrol.apiserver.k8s.io/v1/prioritylevelconfigurations/{name} | +[**patchPriorityLevelConfigurationStatus**](FlowcontrolApiserverV1Api.md#patchPriorityLevelConfigurationStatus) | **PATCH** /apis/flowcontrol.apiserver.k8s.io/v1/prioritylevelconfigurations/{name}/status | +[**readFlowSchema**](FlowcontrolApiserverV1Api.md#readFlowSchema) | **GET** /apis/flowcontrol.apiserver.k8s.io/v1/flowschemas/{name} | +[**readFlowSchemaStatus**](FlowcontrolApiserverV1Api.md#readFlowSchemaStatus) | **GET** /apis/flowcontrol.apiserver.k8s.io/v1/flowschemas/{name}/status | +[**readPriorityLevelConfiguration**](FlowcontrolApiserverV1Api.md#readPriorityLevelConfiguration) | **GET** /apis/flowcontrol.apiserver.k8s.io/v1/prioritylevelconfigurations/{name} | +[**readPriorityLevelConfigurationStatus**](FlowcontrolApiserverV1Api.md#readPriorityLevelConfigurationStatus) | **GET** /apis/flowcontrol.apiserver.k8s.io/v1/prioritylevelconfigurations/{name}/status | +[**replaceFlowSchema**](FlowcontrolApiserverV1Api.md#replaceFlowSchema) | **PUT** /apis/flowcontrol.apiserver.k8s.io/v1/flowschemas/{name} | +[**replaceFlowSchemaStatus**](FlowcontrolApiserverV1Api.md#replaceFlowSchemaStatus) | **PUT** /apis/flowcontrol.apiserver.k8s.io/v1/flowschemas/{name}/status | +[**replacePriorityLevelConfiguration**](FlowcontrolApiserverV1Api.md#replacePriorityLevelConfiguration) | **PUT** /apis/flowcontrol.apiserver.k8s.io/v1/prioritylevelconfigurations/{name} | +[**replacePriorityLevelConfigurationStatus**](FlowcontrolApiserverV1Api.md#replacePriorityLevelConfigurationStatus) | **PUT** /apis/flowcontrol.apiserver.k8s.io/v1/prioritylevelconfigurations/{name}/status | + + + +# **createFlowSchema** +> V1FlowSchema createFlowSchema(body, pretty, dryRun, fieldManager, fieldValidation) + + + +create a FlowSchema + +### Example +```java +// Import classes: +import io.kubernetes.client.openapi.ApiClient; +import io.kubernetes.client.openapi.ApiException; +import io.kubernetes.client.openapi.Configuration; +import io.kubernetes.client.openapi.auth.*; +import io.kubernetes.client.openapi.models.*; +import io.kubernetes.client.openapi.apis.FlowcontrolApiserverV1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + FlowcontrolApiserverV1Api apiInstance = new FlowcontrolApiserverV1Api(defaultClient); + V1FlowSchema body = new V1FlowSchema(); // V1FlowSchema | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + 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 fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. + try { + V1FlowSchema result = apiInstance.createFlowSchema(body, pretty, dryRun, fieldManager, fieldValidation); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling FlowcontrolApiserverV1Api#createFlowSchema"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | [**V1FlowSchema**](V1FlowSchema.md)| | + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] + **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] + **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] + +### Return type + +[**V1FlowSchema**](V1FlowSchema.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + + +# **createPriorityLevelConfiguration** +> V1PriorityLevelConfiguration createPriorityLevelConfiguration(body, pretty, dryRun, fieldManager, fieldValidation) + + + +create a PriorityLevelConfiguration + +### Example +```java +// Import classes: +import io.kubernetes.client.openapi.ApiClient; +import io.kubernetes.client.openapi.ApiException; +import io.kubernetes.client.openapi.Configuration; +import io.kubernetes.client.openapi.auth.*; +import io.kubernetes.client.openapi.models.*; +import io.kubernetes.client.openapi.apis.FlowcontrolApiserverV1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + FlowcontrolApiserverV1Api apiInstance = new FlowcontrolApiserverV1Api(defaultClient); + V1PriorityLevelConfiguration body = new V1PriorityLevelConfiguration(); // V1PriorityLevelConfiguration | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + 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 fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. + try { + V1PriorityLevelConfiguration result = apiInstance.createPriorityLevelConfiguration(body, pretty, dryRun, fieldManager, fieldValidation); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling FlowcontrolApiserverV1Api#createPriorityLevelConfiguration"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | [**V1PriorityLevelConfiguration**](V1PriorityLevelConfiguration.md)| | + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] + **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] + **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] + +### Return type + +[**V1PriorityLevelConfiguration**](V1PriorityLevelConfiguration.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + + +# **deleteCollectionFlowSchema** +> V1Status deleteCollectionFlowSchema(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body) + + + +delete collection of FlowSchema + +### Example +```java +// Import classes: +import io.kubernetes.client.openapi.ApiClient; +import io.kubernetes.client.openapi.ApiException; +import io.kubernetes.client.openapi.Configuration; +import io.kubernetes.client.openapi.auth.*; +import io.kubernetes.client.openapi.models.*; +import io.kubernetes.client.openapi.apis.FlowcontrolApiserverV1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + FlowcontrolApiserverV1Api apiInstance = new FlowcontrolApiserverV1Api(defaultClient); + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + 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. + 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. + Integer gracePeriodSeconds = 56; // Integer | 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. + Boolean ignoreStoreReadErrorWithClusterBreakingPotential = true; // Boolean | if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it + String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. + Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + 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. 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. + String resourceVersion = "resourceVersion_example"; // String | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + String resourceVersionMatch = "resourceVersionMatch_example"; // String | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + Boolean sendInitialEvents = true; // Boolean | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | + try { + V1Status result = apiInstance.deleteCollectionFlowSchema(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling FlowcontrolApiserverV1Api#deleteCollectionFlowSchema"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] + **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] + **gracePeriodSeconds** | **Integer**| 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. | [optional] + **ignoreStoreReadErrorWithClusterBreakingPotential** | **Boolean**| if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it | [optional] + **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] + **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] + **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. 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. | [optional] + **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] + **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] + **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] + **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] + +### Return type + +[**V1Status**](V1Status.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + + +# **deleteCollectionPriorityLevelConfiguration** +> V1Status deleteCollectionPriorityLevelConfiguration(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body) + + + +delete collection of PriorityLevelConfiguration + +### Example +```java +// Import classes: +import io.kubernetes.client.openapi.ApiClient; +import io.kubernetes.client.openapi.ApiException; +import io.kubernetes.client.openapi.Configuration; +import io.kubernetes.client.openapi.auth.*; +import io.kubernetes.client.openapi.models.*; +import io.kubernetes.client.openapi.apis.FlowcontrolApiserverV1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + FlowcontrolApiserverV1Api apiInstance = new FlowcontrolApiserverV1Api(defaultClient); + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + 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. + 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. + Integer gracePeriodSeconds = 56; // Integer | 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. + Boolean ignoreStoreReadErrorWithClusterBreakingPotential = true; // Boolean | if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it + String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. + Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + 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. 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. + String resourceVersion = "resourceVersion_example"; // String | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + String resourceVersionMatch = "resourceVersionMatch_example"; // String | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + Boolean sendInitialEvents = true; // Boolean | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | + try { + V1Status result = apiInstance.deleteCollectionPriorityLevelConfiguration(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling FlowcontrolApiserverV1Api#deleteCollectionPriorityLevelConfiguration"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] + **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] + **gracePeriodSeconds** | **Integer**| 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. | [optional] + **ignoreStoreReadErrorWithClusterBreakingPotential** | **Boolean**| if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it | [optional] + **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] + **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] + **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. 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. | [optional] + **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] + **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] + **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] + **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] + +### Return type + +[**V1Status**](V1Status.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + + +# **deleteFlowSchema** +> V1Status deleteFlowSchema(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body) + + + +delete a FlowSchema + +### Example +```java +// Import classes: +import io.kubernetes.client.openapi.ApiClient; +import io.kubernetes.client.openapi.ApiException; +import io.kubernetes.client.openapi.Configuration; +import io.kubernetes.client.openapi.auth.*; +import io.kubernetes.client.openapi.models.*; +import io.kubernetes.client.openapi.apis.FlowcontrolApiserverV1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + FlowcontrolApiserverV1Api apiInstance = new FlowcontrolApiserverV1Api(defaultClient); + String name = "name_example"; // String | name of the FlowSchema + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + 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 + Integer gracePeriodSeconds = 56; // Integer | 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. + Boolean ignoreStoreReadErrorWithClusterBreakingPotential = true; // Boolean | if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it + 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. 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. + V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | + try { + V1Status result = apiInstance.deleteFlowSchema(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling FlowcontrolApiserverV1Api#deleteFlowSchema"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **String**| name of the FlowSchema | + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] + **gracePeriodSeconds** | **Integer**| 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. | [optional] + **ignoreStoreReadErrorWithClusterBreakingPotential** | **Boolean**| if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it | [optional] + **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. 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. | [optional] + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] + +### Return type + +[**V1Status**](V1Status.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + + +# **deletePriorityLevelConfiguration** +> V1Status deletePriorityLevelConfiguration(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body) + + + +delete a PriorityLevelConfiguration + +### Example +```java +// Import classes: +import io.kubernetes.client.openapi.ApiClient; +import io.kubernetes.client.openapi.ApiException; +import io.kubernetes.client.openapi.Configuration; +import io.kubernetes.client.openapi.auth.*; +import io.kubernetes.client.openapi.models.*; +import io.kubernetes.client.openapi.apis.FlowcontrolApiserverV1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + FlowcontrolApiserverV1Api apiInstance = new FlowcontrolApiserverV1Api(defaultClient); + String name = "name_example"; // String | name of the PriorityLevelConfiguration + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + 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 + Integer gracePeriodSeconds = 56; // Integer | 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. + Boolean ignoreStoreReadErrorWithClusterBreakingPotential = true; // Boolean | if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it + 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. 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. + V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | + try { + V1Status result = apiInstance.deletePriorityLevelConfiguration(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling FlowcontrolApiserverV1Api#deletePriorityLevelConfiguration"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **String**| name of the PriorityLevelConfiguration | + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] + **gracePeriodSeconds** | **Integer**| 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. | [optional] + **ignoreStoreReadErrorWithClusterBreakingPotential** | **Boolean**| if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it | [optional] + **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. 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. | [optional] + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] + +### Return type + +[**V1Status**](V1Status.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + + +# **getAPIResources** +> V1APIResourceList getAPIResources() + + + +get available resources + +### Example +```java +// Import classes: +import io.kubernetes.client.openapi.ApiClient; +import io.kubernetes.client.openapi.ApiException; +import io.kubernetes.client.openapi.Configuration; +import io.kubernetes.client.openapi.auth.*; +import io.kubernetes.client.openapi.models.*; +import io.kubernetes.client.openapi.apis.FlowcontrolApiserverV1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + FlowcontrolApiserverV1Api apiInstance = new FlowcontrolApiserverV1Api(defaultClient); + try { + V1APIResourceList result = apiInstance.getAPIResources(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling FlowcontrolApiserverV1Api#getAPIResources"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters +This endpoint does not need any parameter. + +### Return type + +[**V1APIResourceList**](V1APIResourceList.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + + +# **listFlowSchema** +> V1FlowSchemaList listFlowSchema(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch) + + + +list or watch objects of kind FlowSchema + +### Example +```java +// Import classes: +import io.kubernetes.client.openapi.ApiClient; +import io.kubernetes.client.openapi.ApiException; +import io.kubernetes.client.openapi.Configuration; +import io.kubernetes.client.openapi.auth.*; +import io.kubernetes.client.openapi.models.*; +import io.kubernetes.client.openapi.apis.FlowcontrolApiserverV1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + FlowcontrolApiserverV1Api apiInstance = new FlowcontrolApiserverV1Api(defaultClient); + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + 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. + 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. + String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. + String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. + Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + String resourceVersion = "resourceVersion_example"; // String | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + String resourceVersionMatch = "resourceVersionMatch_example"; // String | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + Boolean sendInitialEvents = true; // Boolean | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + 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. Specify resourceVersion. + try { + V1FlowSchemaList result = apiInstance.listFlowSchema(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling FlowcontrolApiserverV1Api#listFlowSchema"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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. | [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] + **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] + **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] + **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] + **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] + **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] + **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] + **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + +### Return type + +[**V1FlowSchemaList**](V1FlowSchemaList.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch, application/cbor-seq + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + + +# **listPriorityLevelConfiguration** +> V1PriorityLevelConfigurationList listPriorityLevelConfiguration(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch) + + + +list or watch objects of kind PriorityLevelConfiguration + +### Example +```java +// Import classes: +import io.kubernetes.client.openapi.ApiClient; +import io.kubernetes.client.openapi.ApiException; +import io.kubernetes.client.openapi.Configuration; +import io.kubernetes.client.openapi.auth.*; +import io.kubernetes.client.openapi.models.*; +import io.kubernetes.client.openapi.apis.FlowcontrolApiserverV1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + FlowcontrolApiserverV1Api apiInstance = new FlowcontrolApiserverV1Api(defaultClient); + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + 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. + 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. + String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. + String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. + Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + String resourceVersion = "resourceVersion_example"; // String | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + String resourceVersionMatch = "resourceVersionMatch_example"; // String | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + Boolean sendInitialEvents = true; // Boolean | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + 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. Specify resourceVersion. + try { + V1PriorityLevelConfigurationList result = apiInstance.listPriorityLevelConfiguration(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling FlowcontrolApiserverV1Api#listPriorityLevelConfiguration"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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. | [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] + **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] + **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] + **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] + **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] + **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] + **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] + **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + +### Return type + +[**V1PriorityLevelConfigurationList**](V1PriorityLevelConfigurationList.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch, application/cbor-seq + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + + +# **patchFlowSchema** +> V1FlowSchema patchFlowSchema(name, body, pretty, dryRun, fieldManager, fieldValidation, force) + + + +partially update the specified FlowSchema + +### Example +```java +// Import classes: +import io.kubernetes.client.openapi.ApiClient; +import io.kubernetes.client.openapi.ApiException; +import io.kubernetes.client.openapi.Configuration; +import io.kubernetes.client.openapi.auth.*; +import io.kubernetes.client.openapi.models.*; +import io.kubernetes.client.openapi.apis.FlowcontrolApiserverV1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + FlowcontrolApiserverV1Api apiInstance = new FlowcontrolApiserverV1Api(defaultClient); + String name = "name_example"; // String | name of the FlowSchema + V1Patch body = new V1Patch(); // V1Patch | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + 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 fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). + String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. + Boolean force = true; // Boolean | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. + try { + V1FlowSchema result = apiInstance.patchFlowSchema(name, body, pretty, dryRun, fieldManager, fieldValidation, force); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling FlowcontrolApiserverV1Api#patchFlowSchema"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **String**| name of the FlowSchema | + **body** | **V1Patch**| | + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] + **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] + **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] + **force** | **Boolean**| Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | [optional] + +### Return type + +[**V1FlowSchema**](V1FlowSchema.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**401** | Unauthorized | - | + + +# **patchFlowSchemaStatus** +> V1FlowSchema patchFlowSchemaStatus(name, body, pretty, dryRun, fieldManager, fieldValidation, force) + + + +partially update status of the specified FlowSchema + +### Example +```java +// Import classes: +import io.kubernetes.client.openapi.ApiClient; +import io.kubernetes.client.openapi.ApiException; +import io.kubernetes.client.openapi.Configuration; +import io.kubernetes.client.openapi.auth.*; +import io.kubernetes.client.openapi.models.*; +import io.kubernetes.client.openapi.apis.FlowcontrolApiserverV1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + FlowcontrolApiserverV1Api apiInstance = new FlowcontrolApiserverV1Api(defaultClient); + String name = "name_example"; // String | name of the FlowSchema + V1Patch body = new V1Patch(); // V1Patch | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + 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 fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). + String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. + Boolean force = true; // Boolean | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. + try { + V1FlowSchema result = apiInstance.patchFlowSchemaStatus(name, body, pretty, dryRun, fieldManager, fieldValidation, force); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling FlowcontrolApiserverV1Api#patchFlowSchemaStatus"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **String**| name of the FlowSchema | + **body** | **V1Patch**| | + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] + **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] + **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] + **force** | **Boolean**| Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | [optional] + +### Return type + +[**V1FlowSchema**](V1FlowSchema.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**401** | Unauthorized | - | + + +# **patchPriorityLevelConfiguration** +> V1PriorityLevelConfiguration patchPriorityLevelConfiguration(name, body, pretty, dryRun, fieldManager, fieldValidation, force) + + + +partially update the specified PriorityLevelConfiguration + +### Example +```java +// Import classes: +import io.kubernetes.client.openapi.ApiClient; +import io.kubernetes.client.openapi.ApiException; +import io.kubernetes.client.openapi.Configuration; +import io.kubernetes.client.openapi.auth.*; +import io.kubernetes.client.openapi.models.*; +import io.kubernetes.client.openapi.apis.FlowcontrolApiserverV1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + FlowcontrolApiserverV1Api apiInstance = new FlowcontrolApiserverV1Api(defaultClient); + String name = "name_example"; // String | name of the PriorityLevelConfiguration + V1Patch body = new V1Patch(); // V1Patch | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + 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 fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). + String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. + Boolean force = true; // Boolean | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. + try { + V1PriorityLevelConfiguration result = apiInstance.patchPriorityLevelConfiguration(name, body, pretty, dryRun, fieldManager, fieldValidation, force); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling FlowcontrolApiserverV1Api#patchPriorityLevelConfiguration"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **String**| name of the PriorityLevelConfiguration | + **body** | **V1Patch**| | + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] + **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] + **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] + **force** | **Boolean**| Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | [optional] + +### Return type + +[**V1PriorityLevelConfiguration**](V1PriorityLevelConfiguration.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**401** | Unauthorized | - | + + +# **patchPriorityLevelConfigurationStatus** +> V1PriorityLevelConfiguration patchPriorityLevelConfigurationStatus(name, body, pretty, dryRun, fieldManager, fieldValidation, force) + + + +partially update status of the specified PriorityLevelConfiguration + +### Example +```java +// Import classes: +import io.kubernetes.client.openapi.ApiClient; +import io.kubernetes.client.openapi.ApiException; +import io.kubernetes.client.openapi.Configuration; +import io.kubernetes.client.openapi.auth.*; +import io.kubernetes.client.openapi.models.*; +import io.kubernetes.client.openapi.apis.FlowcontrolApiserverV1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + FlowcontrolApiserverV1Api apiInstance = new FlowcontrolApiserverV1Api(defaultClient); + String name = "name_example"; // String | name of the PriorityLevelConfiguration + V1Patch body = new V1Patch(); // V1Patch | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + 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 fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). + String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. + Boolean force = true; // Boolean | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. + try { + V1PriorityLevelConfiguration result = apiInstance.patchPriorityLevelConfigurationStatus(name, body, pretty, dryRun, fieldManager, fieldValidation, force); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling FlowcontrolApiserverV1Api#patchPriorityLevelConfigurationStatus"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **String**| name of the PriorityLevelConfiguration | + **body** | **V1Patch**| | + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] + **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] + **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] + **force** | **Boolean**| Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | [optional] + +### Return type + +[**V1PriorityLevelConfiguration**](V1PriorityLevelConfiguration.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**401** | Unauthorized | - | + + +# **readFlowSchema** +> V1FlowSchema readFlowSchema(name, pretty) + + + +read the specified FlowSchema + +### Example +```java +// Import classes: +import io.kubernetes.client.openapi.ApiClient; +import io.kubernetes.client.openapi.ApiException; +import io.kubernetes.client.openapi.Configuration; +import io.kubernetes.client.openapi.auth.*; +import io.kubernetes.client.openapi.models.*; +import io.kubernetes.client.openapi.apis.FlowcontrolApiserverV1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + FlowcontrolApiserverV1Api apiInstance = new FlowcontrolApiserverV1Api(defaultClient); + String name = "name_example"; // String | name of the FlowSchema + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + try { + V1FlowSchema result = apiInstance.readFlowSchema(name, pretty); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling FlowcontrolApiserverV1Api#readFlowSchema"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **String**| name of the FlowSchema | + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] + +### Return type + +[**V1FlowSchema**](V1FlowSchema.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + + +# **readFlowSchemaStatus** +> V1FlowSchema readFlowSchemaStatus(name, pretty) + + + +read status of the specified FlowSchema + +### Example +```java +// Import classes: +import io.kubernetes.client.openapi.ApiClient; +import io.kubernetes.client.openapi.ApiException; +import io.kubernetes.client.openapi.Configuration; +import io.kubernetes.client.openapi.auth.*; +import io.kubernetes.client.openapi.models.*; +import io.kubernetes.client.openapi.apis.FlowcontrolApiserverV1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + FlowcontrolApiserverV1Api apiInstance = new FlowcontrolApiserverV1Api(defaultClient); + String name = "name_example"; // String | name of the FlowSchema + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + try { + V1FlowSchema result = apiInstance.readFlowSchemaStatus(name, pretty); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling FlowcontrolApiserverV1Api#readFlowSchemaStatus"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **String**| name of the FlowSchema | + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] + +### Return type + +[**V1FlowSchema**](V1FlowSchema.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + + +# **readPriorityLevelConfiguration** +> V1PriorityLevelConfiguration readPriorityLevelConfiguration(name, pretty) + + + +read the specified PriorityLevelConfiguration + +### Example +```java +// Import classes: +import io.kubernetes.client.openapi.ApiClient; +import io.kubernetes.client.openapi.ApiException; +import io.kubernetes.client.openapi.Configuration; +import io.kubernetes.client.openapi.auth.*; +import io.kubernetes.client.openapi.models.*; +import io.kubernetes.client.openapi.apis.FlowcontrolApiserverV1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + FlowcontrolApiserverV1Api apiInstance = new FlowcontrolApiserverV1Api(defaultClient); + String name = "name_example"; // String | name of the PriorityLevelConfiguration + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + try { + V1PriorityLevelConfiguration result = apiInstance.readPriorityLevelConfiguration(name, pretty); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling FlowcontrolApiserverV1Api#readPriorityLevelConfiguration"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **String**| name of the PriorityLevelConfiguration | + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] + +### Return type + +[**V1PriorityLevelConfiguration**](V1PriorityLevelConfiguration.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + + +# **readPriorityLevelConfigurationStatus** +> V1PriorityLevelConfiguration readPriorityLevelConfigurationStatus(name, pretty) + + + +read status of the specified PriorityLevelConfiguration + +### Example +```java +// Import classes: +import io.kubernetes.client.openapi.ApiClient; +import io.kubernetes.client.openapi.ApiException; +import io.kubernetes.client.openapi.Configuration; +import io.kubernetes.client.openapi.auth.*; +import io.kubernetes.client.openapi.models.*; +import io.kubernetes.client.openapi.apis.FlowcontrolApiserverV1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + FlowcontrolApiserverV1Api apiInstance = new FlowcontrolApiserverV1Api(defaultClient); + String name = "name_example"; // String | name of the PriorityLevelConfiguration + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + try { + V1PriorityLevelConfiguration result = apiInstance.readPriorityLevelConfigurationStatus(name, pretty); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling FlowcontrolApiserverV1Api#readPriorityLevelConfigurationStatus"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **String**| name of the PriorityLevelConfiguration | + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] + +### Return type + +[**V1PriorityLevelConfiguration**](V1PriorityLevelConfiguration.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + + +# **replaceFlowSchema** +> V1FlowSchema replaceFlowSchema(name, body, pretty, dryRun, fieldManager, fieldValidation) + + + +replace the specified FlowSchema + +### Example +```java +// Import classes: +import io.kubernetes.client.openapi.ApiClient; +import io.kubernetes.client.openapi.ApiException; +import io.kubernetes.client.openapi.Configuration; +import io.kubernetes.client.openapi.auth.*; +import io.kubernetes.client.openapi.models.*; +import io.kubernetes.client.openapi.apis.FlowcontrolApiserverV1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + FlowcontrolApiserverV1Api apiInstance = new FlowcontrolApiserverV1Api(defaultClient); + String name = "name_example"; // String | name of the FlowSchema + V1FlowSchema body = new V1FlowSchema(); // V1FlowSchema | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + 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 fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. + try { + V1FlowSchema result = apiInstance.replaceFlowSchema(name, body, pretty, dryRun, fieldManager, fieldValidation); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling FlowcontrolApiserverV1Api#replaceFlowSchema"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **String**| name of the FlowSchema | + **body** | [**V1FlowSchema**](V1FlowSchema.md)| | + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] + **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] + **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] + +### Return type + +[**V1FlowSchema**](V1FlowSchema.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**401** | Unauthorized | - | + + +# **replaceFlowSchemaStatus** +> V1FlowSchema replaceFlowSchemaStatus(name, body, pretty, dryRun, fieldManager, fieldValidation) + + + +replace status of the specified FlowSchema + +### Example +```java +// Import classes: +import io.kubernetes.client.openapi.ApiClient; +import io.kubernetes.client.openapi.ApiException; +import io.kubernetes.client.openapi.Configuration; +import io.kubernetes.client.openapi.auth.*; +import io.kubernetes.client.openapi.models.*; +import io.kubernetes.client.openapi.apis.FlowcontrolApiserverV1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + FlowcontrolApiserverV1Api apiInstance = new FlowcontrolApiserverV1Api(defaultClient); + String name = "name_example"; // String | name of the FlowSchema + V1FlowSchema body = new V1FlowSchema(); // V1FlowSchema | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + 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 fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. + try { + V1FlowSchema result = apiInstance.replaceFlowSchemaStatus(name, body, pretty, dryRun, fieldManager, fieldValidation); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling FlowcontrolApiserverV1Api#replaceFlowSchemaStatus"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **String**| name of the FlowSchema | + **body** | [**V1FlowSchema**](V1FlowSchema.md)| | + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] + **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] + **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] + +### Return type + +[**V1FlowSchema**](V1FlowSchema.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**401** | Unauthorized | - | + + +# **replacePriorityLevelConfiguration** +> V1PriorityLevelConfiguration replacePriorityLevelConfiguration(name, body, pretty, dryRun, fieldManager, fieldValidation) + + + +replace the specified PriorityLevelConfiguration + +### Example +```java +// Import classes: +import io.kubernetes.client.openapi.ApiClient; +import io.kubernetes.client.openapi.ApiException; +import io.kubernetes.client.openapi.Configuration; +import io.kubernetes.client.openapi.auth.*; +import io.kubernetes.client.openapi.models.*; +import io.kubernetes.client.openapi.apis.FlowcontrolApiserverV1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + FlowcontrolApiserverV1Api apiInstance = new FlowcontrolApiserverV1Api(defaultClient); + String name = "name_example"; // String | name of the PriorityLevelConfiguration + V1PriorityLevelConfiguration body = new V1PriorityLevelConfiguration(); // V1PriorityLevelConfiguration | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + 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 fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. + try { + V1PriorityLevelConfiguration result = apiInstance.replacePriorityLevelConfiguration(name, body, pretty, dryRun, fieldManager, fieldValidation); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling FlowcontrolApiserverV1Api#replacePriorityLevelConfiguration"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **String**| name of the PriorityLevelConfiguration | + **body** | [**V1PriorityLevelConfiguration**](V1PriorityLevelConfiguration.md)| | + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] + **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] + **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] + +### Return type + +[**V1PriorityLevelConfiguration**](V1PriorityLevelConfiguration.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**401** | Unauthorized | - | + + +# **replacePriorityLevelConfigurationStatus** +> V1PriorityLevelConfiguration replacePriorityLevelConfigurationStatus(name, body, pretty, dryRun, fieldManager, fieldValidation) + + + +replace status of the specified PriorityLevelConfiguration + +### Example +```java +// Import classes: +import io.kubernetes.client.openapi.ApiClient; +import io.kubernetes.client.openapi.ApiException; +import io.kubernetes.client.openapi.Configuration; +import io.kubernetes.client.openapi.auth.*; +import io.kubernetes.client.openapi.models.*; +import io.kubernetes.client.openapi.apis.FlowcontrolApiserverV1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + FlowcontrolApiserverV1Api apiInstance = new FlowcontrolApiserverV1Api(defaultClient); + String name = "name_example"; // String | name of the PriorityLevelConfiguration + V1PriorityLevelConfiguration body = new V1PriorityLevelConfiguration(); // V1PriorityLevelConfiguration | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + 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 fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. + try { + V1PriorityLevelConfiguration result = apiInstance.replacePriorityLevelConfigurationStatus(name, body, pretty, dryRun, fieldManager, fieldValidation); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling FlowcontrolApiserverV1Api#replacePriorityLevelConfigurationStatus"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **String**| name of the PriorityLevelConfiguration | + **body** | [**V1PriorityLevelConfiguration**](V1PriorityLevelConfiguration.md)| | + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] + **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] + **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] + +### Return type + +[**V1PriorityLevelConfiguration**](V1PriorityLevelConfiguration.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**401** | Unauthorized | - | + diff --git a/kubernetes/docs/FlowcontrolApiserverV1beta2Api.md b/kubernetes/docs/FlowcontrolApiserverV1beta2Api.md deleted file mode 100644 index 13517eaff4..0000000000 --- a/kubernetes/docs/FlowcontrolApiserverV1beta2Api.md +++ /dev/null @@ -1,1737 +0,0 @@ -# FlowcontrolApiserverV1beta2Api - -All URIs are relative to *http://localhost* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**createFlowSchema**](FlowcontrolApiserverV1beta2Api.md#createFlowSchema) | **POST** /apis/flowcontrol.apiserver.k8s.io/v1beta2/flowschemas | -[**createPriorityLevelConfiguration**](FlowcontrolApiserverV1beta2Api.md#createPriorityLevelConfiguration) | **POST** /apis/flowcontrol.apiserver.k8s.io/v1beta2/prioritylevelconfigurations | -[**deleteCollectionFlowSchema**](FlowcontrolApiserverV1beta2Api.md#deleteCollectionFlowSchema) | **DELETE** /apis/flowcontrol.apiserver.k8s.io/v1beta2/flowschemas | -[**deleteCollectionPriorityLevelConfiguration**](FlowcontrolApiserverV1beta2Api.md#deleteCollectionPriorityLevelConfiguration) | **DELETE** /apis/flowcontrol.apiserver.k8s.io/v1beta2/prioritylevelconfigurations | -[**deleteFlowSchema**](FlowcontrolApiserverV1beta2Api.md#deleteFlowSchema) | **DELETE** /apis/flowcontrol.apiserver.k8s.io/v1beta2/flowschemas/{name} | -[**deletePriorityLevelConfiguration**](FlowcontrolApiserverV1beta2Api.md#deletePriorityLevelConfiguration) | **DELETE** /apis/flowcontrol.apiserver.k8s.io/v1beta2/prioritylevelconfigurations/{name} | -[**getAPIResources**](FlowcontrolApiserverV1beta2Api.md#getAPIResources) | **GET** /apis/flowcontrol.apiserver.k8s.io/v1beta2/ | -[**listFlowSchema**](FlowcontrolApiserverV1beta2Api.md#listFlowSchema) | **GET** /apis/flowcontrol.apiserver.k8s.io/v1beta2/flowschemas | -[**listPriorityLevelConfiguration**](FlowcontrolApiserverV1beta2Api.md#listPriorityLevelConfiguration) | **GET** /apis/flowcontrol.apiserver.k8s.io/v1beta2/prioritylevelconfigurations | -[**patchFlowSchema**](FlowcontrolApiserverV1beta2Api.md#patchFlowSchema) | **PATCH** /apis/flowcontrol.apiserver.k8s.io/v1beta2/flowschemas/{name} | -[**patchFlowSchemaStatus**](FlowcontrolApiserverV1beta2Api.md#patchFlowSchemaStatus) | **PATCH** /apis/flowcontrol.apiserver.k8s.io/v1beta2/flowschemas/{name}/status | -[**patchPriorityLevelConfiguration**](FlowcontrolApiserverV1beta2Api.md#patchPriorityLevelConfiguration) | **PATCH** /apis/flowcontrol.apiserver.k8s.io/v1beta2/prioritylevelconfigurations/{name} | -[**patchPriorityLevelConfigurationStatus**](FlowcontrolApiserverV1beta2Api.md#patchPriorityLevelConfigurationStatus) | **PATCH** /apis/flowcontrol.apiserver.k8s.io/v1beta2/prioritylevelconfigurations/{name}/status | -[**readFlowSchema**](FlowcontrolApiserverV1beta2Api.md#readFlowSchema) | **GET** /apis/flowcontrol.apiserver.k8s.io/v1beta2/flowschemas/{name} | -[**readFlowSchemaStatus**](FlowcontrolApiserverV1beta2Api.md#readFlowSchemaStatus) | **GET** /apis/flowcontrol.apiserver.k8s.io/v1beta2/flowschemas/{name}/status | -[**readPriorityLevelConfiguration**](FlowcontrolApiserverV1beta2Api.md#readPriorityLevelConfiguration) | **GET** /apis/flowcontrol.apiserver.k8s.io/v1beta2/prioritylevelconfigurations/{name} | -[**readPriorityLevelConfigurationStatus**](FlowcontrolApiserverV1beta2Api.md#readPriorityLevelConfigurationStatus) | **GET** /apis/flowcontrol.apiserver.k8s.io/v1beta2/prioritylevelconfigurations/{name}/status | -[**replaceFlowSchema**](FlowcontrolApiserverV1beta2Api.md#replaceFlowSchema) | **PUT** /apis/flowcontrol.apiserver.k8s.io/v1beta2/flowschemas/{name} | -[**replaceFlowSchemaStatus**](FlowcontrolApiserverV1beta2Api.md#replaceFlowSchemaStatus) | **PUT** /apis/flowcontrol.apiserver.k8s.io/v1beta2/flowschemas/{name}/status | -[**replacePriorityLevelConfiguration**](FlowcontrolApiserverV1beta2Api.md#replacePriorityLevelConfiguration) | **PUT** /apis/flowcontrol.apiserver.k8s.io/v1beta2/prioritylevelconfigurations/{name} | -[**replacePriorityLevelConfigurationStatus**](FlowcontrolApiserverV1beta2Api.md#replacePriorityLevelConfigurationStatus) | **PUT** /apis/flowcontrol.apiserver.k8s.io/v1beta2/prioritylevelconfigurations/{name}/status | - - - -# **createFlowSchema** -> V1beta2FlowSchema createFlowSchema(body, pretty, dryRun, fieldManager, fieldValidation) - - - -create a FlowSchema - -### Example -```java -// Import classes: -import io.kubernetes.client.openapi.ApiClient; -import io.kubernetes.client.openapi.ApiException; -import io.kubernetes.client.openapi.Configuration; -import io.kubernetes.client.openapi.auth.*; -import io.kubernetes.client.openapi.models.*; -import io.kubernetes.client.openapi.apis.FlowcontrolApiserverV1beta2Api; - -public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("http://localhost"); - - // Configure API key authorization: BearerToken - ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); - BearerToken.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //BearerToken.setApiKeyPrefix("Token"); - - FlowcontrolApiserverV1beta2Api apiInstance = new FlowcontrolApiserverV1beta2Api(defaultClient); - V1beta2FlowSchema body = new V1beta2FlowSchema(); // V1beta2FlowSchema | - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. - 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 fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. - try { - V1beta2FlowSchema result = apiInstance.createFlowSchema(body, pretty, dryRun, fieldManager, fieldValidation); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling FlowcontrolApiserverV1beta2Api#createFlowSchema"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } - } -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **body** | [**V1beta2FlowSchema**](V1beta2FlowSchema.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [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] - **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] - **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] - -### Return type - -[**V1beta2FlowSchema**](V1beta2FlowSchema.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | OK | - | -**201** | Created | - | -**202** | Accepted | - | -**401** | Unauthorized | - | - - -# **createPriorityLevelConfiguration** -> V1beta2PriorityLevelConfiguration createPriorityLevelConfiguration(body, pretty, dryRun, fieldManager, fieldValidation) - - - -create a PriorityLevelConfiguration - -### Example -```java -// Import classes: -import io.kubernetes.client.openapi.ApiClient; -import io.kubernetes.client.openapi.ApiException; -import io.kubernetes.client.openapi.Configuration; -import io.kubernetes.client.openapi.auth.*; -import io.kubernetes.client.openapi.models.*; -import io.kubernetes.client.openapi.apis.FlowcontrolApiserverV1beta2Api; - -public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("http://localhost"); - - // Configure API key authorization: BearerToken - ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); - BearerToken.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //BearerToken.setApiKeyPrefix("Token"); - - FlowcontrolApiserverV1beta2Api apiInstance = new FlowcontrolApiserverV1beta2Api(defaultClient); - V1beta2PriorityLevelConfiguration body = new V1beta2PriorityLevelConfiguration(); // V1beta2PriorityLevelConfiguration | - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. - 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 fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. - try { - V1beta2PriorityLevelConfiguration result = apiInstance.createPriorityLevelConfiguration(body, pretty, dryRun, fieldManager, fieldValidation); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling FlowcontrolApiserverV1beta2Api#createPriorityLevelConfiguration"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } - } -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **body** | [**V1beta2PriorityLevelConfiguration**](V1beta2PriorityLevelConfiguration.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [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] - **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] - **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] - -### Return type - -[**V1beta2PriorityLevelConfiguration**](V1beta2PriorityLevelConfiguration.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | OK | - | -**201** | Created | - | -**202** | Accepted | - | -**401** | Unauthorized | - | - - -# **deleteCollectionFlowSchema** -> V1Status deleteCollectionFlowSchema(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body) - - - -delete collection of FlowSchema - -### Example -```java -// Import classes: -import io.kubernetes.client.openapi.ApiClient; -import io.kubernetes.client.openapi.ApiException; -import io.kubernetes.client.openapi.Configuration; -import io.kubernetes.client.openapi.auth.*; -import io.kubernetes.client.openapi.models.*; -import io.kubernetes.client.openapi.apis.FlowcontrolApiserverV1beta2Api; - -public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("http://localhost"); - - // Configure API key authorization: BearerToken - ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); - BearerToken.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //BearerToken.setApiKeyPrefix("Token"); - - FlowcontrolApiserverV1beta2Api apiInstance = new FlowcontrolApiserverV1beta2Api(defaultClient); - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. - 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. - 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. - Integer gracePeriodSeconds = 56; // Integer | 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. - String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. - Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. - 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. 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. - String resourceVersion = "resourceVersion_example"; // String | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset - String resourceVersionMatch = "resourceVersionMatch_example"; // String | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset - Boolean sendInitialEvents = true; // Boolean | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. - Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. - V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | - try { - V1Status result = apiInstance.deleteCollectionFlowSchema(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling FlowcontrolApiserverV1beta2Api#deleteCollectionFlowSchema"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } - } -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **pretty** | **String**| If 'true', then the output is pretty printed. | [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] - **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] - **gracePeriodSeconds** | **Integer**| 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. | [optional] - **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] - **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. 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. | [optional] - **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] - **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] - **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] - **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] - **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] - -### Return type - -[**V1Status**](V1Status.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | - - -# **deleteCollectionPriorityLevelConfiguration** -> V1Status deleteCollectionPriorityLevelConfiguration(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body) - - - -delete collection of PriorityLevelConfiguration - -### Example -```java -// Import classes: -import io.kubernetes.client.openapi.ApiClient; -import io.kubernetes.client.openapi.ApiException; -import io.kubernetes.client.openapi.Configuration; -import io.kubernetes.client.openapi.auth.*; -import io.kubernetes.client.openapi.models.*; -import io.kubernetes.client.openapi.apis.FlowcontrolApiserverV1beta2Api; - -public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("http://localhost"); - - // Configure API key authorization: BearerToken - ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); - BearerToken.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //BearerToken.setApiKeyPrefix("Token"); - - FlowcontrolApiserverV1beta2Api apiInstance = new FlowcontrolApiserverV1beta2Api(defaultClient); - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. - 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. - 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. - Integer gracePeriodSeconds = 56; // Integer | 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. - String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. - Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. - 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. 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. - String resourceVersion = "resourceVersion_example"; // String | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset - String resourceVersionMatch = "resourceVersionMatch_example"; // String | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset - Boolean sendInitialEvents = true; // Boolean | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. - Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. - V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | - try { - V1Status result = apiInstance.deleteCollectionPriorityLevelConfiguration(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling FlowcontrolApiserverV1beta2Api#deleteCollectionPriorityLevelConfiguration"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } - } -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **pretty** | **String**| If 'true', then the output is pretty printed. | [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] - **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] - **gracePeriodSeconds** | **Integer**| 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. | [optional] - **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] - **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. 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. | [optional] - **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] - **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] - **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] - **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] - **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] - -### Return type - -[**V1Status**](V1Status.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | - - -# **deleteFlowSchema** -> V1Status deleteFlowSchema(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body) - - - -delete a FlowSchema - -### Example -```java -// Import classes: -import io.kubernetes.client.openapi.ApiClient; -import io.kubernetes.client.openapi.ApiException; -import io.kubernetes.client.openapi.Configuration; -import io.kubernetes.client.openapi.auth.*; -import io.kubernetes.client.openapi.models.*; -import io.kubernetes.client.openapi.apis.FlowcontrolApiserverV1beta2Api; - -public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("http://localhost"); - - // Configure API key authorization: BearerToken - ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); - BearerToken.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //BearerToken.setApiKeyPrefix("Token"); - - FlowcontrolApiserverV1beta2Api apiInstance = new FlowcontrolApiserverV1beta2Api(defaultClient); - String name = "name_example"; // String | name of the FlowSchema - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. - 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 - Integer gracePeriodSeconds = 56; // Integer | 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. - 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. 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. - V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | - try { - V1Status result = apiInstance.deleteFlowSchema(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling FlowcontrolApiserverV1beta2Api#deleteFlowSchema"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } - } -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the FlowSchema | - **pretty** | **String**| If 'true', then the output is pretty printed. | [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] - **gracePeriodSeconds** | **Integer**| 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. | [optional] - **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. 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. | [optional] - **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] - -### Return type - -[**V1Status**](V1Status.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | OK | - | -**202** | Accepted | - | -**401** | Unauthorized | - | - - -# **deletePriorityLevelConfiguration** -> V1Status deletePriorityLevelConfiguration(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body) - - - -delete a PriorityLevelConfiguration - -### Example -```java -// Import classes: -import io.kubernetes.client.openapi.ApiClient; -import io.kubernetes.client.openapi.ApiException; -import io.kubernetes.client.openapi.Configuration; -import io.kubernetes.client.openapi.auth.*; -import io.kubernetes.client.openapi.models.*; -import io.kubernetes.client.openapi.apis.FlowcontrolApiserverV1beta2Api; - -public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("http://localhost"); - - // Configure API key authorization: BearerToken - ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); - BearerToken.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //BearerToken.setApiKeyPrefix("Token"); - - FlowcontrolApiserverV1beta2Api apiInstance = new FlowcontrolApiserverV1beta2Api(defaultClient); - String name = "name_example"; // String | name of the PriorityLevelConfiguration - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. - 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 - Integer gracePeriodSeconds = 56; // Integer | 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. - 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. 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. - V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | - try { - V1Status result = apiInstance.deletePriorityLevelConfiguration(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling FlowcontrolApiserverV1beta2Api#deletePriorityLevelConfiguration"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } - } -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the PriorityLevelConfiguration | - **pretty** | **String**| If 'true', then the output is pretty printed. | [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] - **gracePeriodSeconds** | **Integer**| 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. | [optional] - **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. 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. | [optional] - **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] - -### Return type - -[**V1Status**](V1Status.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | OK | - | -**202** | Accepted | - | -**401** | Unauthorized | - | - - -# **getAPIResources** -> V1APIResourceList getAPIResources() - - - -get available resources - -### Example -```java -// Import classes: -import io.kubernetes.client.openapi.ApiClient; -import io.kubernetes.client.openapi.ApiException; -import io.kubernetes.client.openapi.Configuration; -import io.kubernetes.client.openapi.auth.*; -import io.kubernetes.client.openapi.models.*; -import io.kubernetes.client.openapi.apis.FlowcontrolApiserverV1beta2Api; - -public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("http://localhost"); - - // Configure API key authorization: BearerToken - ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); - BearerToken.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //BearerToken.setApiKeyPrefix("Token"); - - FlowcontrolApiserverV1beta2Api apiInstance = new FlowcontrolApiserverV1beta2Api(defaultClient); - try { - V1APIResourceList result = apiInstance.getAPIResources(); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling FlowcontrolApiserverV1beta2Api#getAPIResources"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } - } -} -``` - -### Parameters -This endpoint does not need any parameter. - -### Return type - -[**V1APIResourceList**](V1APIResourceList.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | - - -# **listFlowSchema** -> V1beta2FlowSchemaList listFlowSchema(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch) - - - -list or watch objects of kind FlowSchema - -### Example -```java -// Import classes: -import io.kubernetes.client.openapi.ApiClient; -import io.kubernetes.client.openapi.ApiException; -import io.kubernetes.client.openapi.Configuration; -import io.kubernetes.client.openapi.auth.*; -import io.kubernetes.client.openapi.models.*; -import io.kubernetes.client.openapi.apis.FlowcontrolApiserverV1beta2Api; - -public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("http://localhost"); - - // Configure API key authorization: BearerToken - ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); - BearerToken.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //BearerToken.setApiKeyPrefix("Token"); - - FlowcontrolApiserverV1beta2Api apiInstance = new FlowcontrolApiserverV1beta2Api(defaultClient); - 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. - 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. - String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. - String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. - Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. - String resourceVersion = "resourceVersion_example"; // String | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset - String resourceVersionMatch = "resourceVersionMatch_example"; // String | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset - Boolean sendInitialEvents = true; // Boolean | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. - 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. Specify resourceVersion. - try { - V1beta2FlowSchemaList result = apiInstance.listFlowSchema(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling FlowcontrolApiserverV1beta2Api#listFlowSchema"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } - } -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **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. | [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] - **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] - **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] - **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] - **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] - **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] - **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] - -### Return type - -[**V1beta2FlowSchemaList**](V1beta2FlowSchemaList.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | - - -# **listPriorityLevelConfiguration** -> V1beta2PriorityLevelConfigurationList listPriorityLevelConfiguration(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch) - - - -list or watch objects of kind PriorityLevelConfiguration - -### Example -```java -// Import classes: -import io.kubernetes.client.openapi.ApiClient; -import io.kubernetes.client.openapi.ApiException; -import io.kubernetes.client.openapi.Configuration; -import io.kubernetes.client.openapi.auth.*; -import io.kubernetes.client.openapi.models.*; -import io.kubernetes.client.openapi.apis.FlowcontrolApiserverV1beta2Api; - -public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("http://localhost"); - - // Configure API key authorization: BearerToken - ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); - BearerToken.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //BearerToken.setApiKeyPrefix("Token"); - - FlowcontrolApiserverV1beta2Api apiInstance = new FlowcontrolApiserverV1beta2Api(defaultClient); - 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. - 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. - String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. - String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. - Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. - String resourceVersion = "resourceVersion_example"; // String | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset - String resourceVersionMatch = "resourceVersionMatch_example"; // String | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset - Boolean sendInitialEvents = true; // Boolean | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. - 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. Specify resourceVersion. - try { - V1beta2PriorityLevelConfigurationList result = apiInstance.listPriorityLevelConfiguration(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling FlowcontrolApiserverV1beta2Api#listPriorityLevelConfiguration"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } - } -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **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. | [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] - **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] - **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] - **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] - **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] - **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] - **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] - -### Return type - -[**V1beta2PriorityLevelConfigurationList**](V1beta2PriorityLevelConfigurationList.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | - - -# **patchFlowSchema** -> V1beta2FlowSchema patchFlowSchema(name, body, pretty, dryRun, fieldManager, fieldValidation, force) - - - -partially update the specified FlowSchema - -### Example -```java -// Import classes: -import io.kubernetes.client.openapi.ApiClient; -import io.kubernetes.client.openapi.ApiException; -import io.kubernetes.client.openapi.Configuration; -import io.kubernetes.client.openapi.auth.*; -import io.kubernetes.client.openapi.models.*; -import io.kubernetes.client.openapi.apis.FlowcontrolApiserverV1beta2Api; - -public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("http://localhost"); - - // Configure API key authorization: BearerToken - ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); - BearerToken.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //BearerToken.setApiKeyPrefix("Token"); - - FlowcontrolApiserverV1beta2Api apiInstance = new FlowcontrolApiserverV1beta2Api(defaultClient); - String name = "name_example"; // String | name of the FlowSchema - V1Patch body = new V1Patch(); // V1Patch | - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. - 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 fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). - String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. - Boolean force = true; // Boolean | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. - try { - V1beta2FlowSchema result = apiInstance.patchFlowSchema(name, body, pretty, dryRun, fieldManager, fieldValidation, force); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling FlowcontrolApiserverV1beta2Api#patchFlowSchema"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } - } -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the FlowSchema | - **body** | **V1Patch**| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [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] - **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] - **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] - **force** | **Boolean**| Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | [optional] - -### Return type - -[**V1beta2FlowSchema**](V1beta2FlowSchema.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | OK | - | -**201** | Created | - | -**401** | Unauthorized | - | - - -# **patchFlowSchemaStatus** -> V1beta2FlowSchema patchFlowSchemaStatus(name, body, pretty, dryRun, fieldManager, fieldValidation, force) - - - -partially update status of the specified FlowSchema - -### Example -```java -// Import classes: -import io.kubernetes.client.openapi.ApiClient; -import io.kubernetes.client.openapi.ApiException; -import io.kubernetes.client.openapi.Configuration; -import io.kubernetes.client.openapi.auth.*; -import io.kubernetes.client.openapi.models.*; -import io.kubernetes.client.openapi.apis.FlowcontrolApiserverV1beta2Api; - -public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("http://localhost"); - - // Configure API key authorization: BearerToken - ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); - BearerToken.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //BearerToken.setApiKeyPrefix("Token"); - - FlowcontrolApiserverV1beta2Api apiInstance = new FlowcontrolApiserverV1beta2Api(defaultClient); - String name = "name_example"; // String | name of the FlowSchema - V1Patch body = new V1Patch(); // V1Patch | - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. - 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 fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). - String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. - Boolean force = true; // Boolean | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. - try { - V1beta2FlowSchema result = apiInstance.patchFlowSchemaStatus(name, body, pretty, dryRun, fieldManager, fieldValidation, force); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling FlowcontrolApiserverV1beta2Api#patchFlowSchemaStatus"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } - } -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the FlowSchema | - **body** | **V1Patch**| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [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] - **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] - **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] - **force** | **Boolean**| Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | [optional] - -### Return type - -[**V1beta2FlowSchema**](V1beta2FlowSchema.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | OK | - | -**201** | Created | - | -**401** | Unauthorized | - | - - -# **patchPriorityLevelConfiguration** -> V1beta2PriorityLevelConfiguration patchPriorityLevelConfiguration(name, body, pretty, dryRun, fieldManager, fieldValidation, force) - - - -partially update the specified PriorityLevelConfiguration - -### Example -```java -// Import classes: -import io.kubernetes.client.openapi.ApiClient; -import io.kubernetes.client.openapi.ApiException; -import io.kubernetes.client.openapi.Configuration; -import io.kubernetes.client.openapi.auth.*; -import io.kubernetes.client.openapi.models.*; -import io.kubernetes.client.openapi.apis.FlowcontrolApiserverV1beta2Api; - -public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("http://localhost"); - - // Configure API key authorization: BearerToken - ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); - BearerToken.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //BearerToken.setApiKeyPrefix("Token"); - - FlowcontrolApiserverV1beta2Api apiInstance = new FlowcontrolApiserverV1beta2Api(defaultClient); - String name = "name_example"; // String | name of the PriorityLevelConfiguration - V1Patch body = new V1Patch(); // V1Patch | - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. - 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 fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). - String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. - Boolean force = true; // Boolean | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. - try { - V1beta2PriorityLevelConfiguration result = apiInstance.patchPriorityLevelConfiguration(name, body, pretty, dryRun, fieldManager, fieldValidation, force); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling FlowcontrolApiserverV1beta2Api#patchPriorityLevelConfiguration"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } - } -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the PriorityLevelConfiguration | - **body** | **V1Patch**| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [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] - **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] - **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] - **force** | **Boolean**| Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | [optional] - -### Return type - -[**V1beta2PriorityLevelConfiguration**](V1beta2PriorityLevelConfiguration.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | OK | - | -**201** | Created | - | -**401** | Unauthorized | - | - - -# **patchPriorityLevelConfigurationStatus** -> V1beta2PriorityLevelConfiguration patchPriorityLevelConfigurationStatus(name, body, pretty, dryRun, fieldManager, fieldValidation, force) - - - -partially update status of the specified PriorityLevelConfiguration - -### Example -```java -// Import classes: -import io.kubernetes.client.openapi.ApiClient; -import io.kubernetes.client.openapi.ApiException; -import io.kubernetes.client.openapi.Configuration; -import io.kubernetes.client.openapi.auth.*; -import io.kubernetes.client.openapi.models.*; -import io.kubernetes.client.openapi.apis.FlowcontrolApiserverV1beta2Api; - -public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("http://localhost"); - - // Configure API key authorization: BearerToken - ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); - BearerToken.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //BearerToken.setApiKeyPrefix("Token"); - - FlowcontrolApiserverV1beta2Api apiInstance = new FlowcontrolApiserverV1beta2Api(defaultClient); - String name = "name_example"; // String | name of the PriorityLevelConfiguration - V1Patch body = new V1Patch(); // V1Patch | - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. - 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 fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). - String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. - Boolean force = true; // Boolean | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. - try { - V1beta2PriorityLevelConfiguration result = apiInstance.patchPriorityLevelConfigurationStatus(name, body, pretty, dryRun, fieldManager, fieldValidation, force); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling FlowcontrolApiserverV1beta2Api#patchPriorityLevelConfigurationStatus"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } - } -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the PriorityLevelConfiguration | - **body** | **V1Patch**| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [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] - **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] - **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] - **force** | **Boolean**| Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | [optional] - -### Return type - -[**V1beta2PriorityLevelConfiguration**](V1beta2PriorityLevelConfiguration.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | OK | - | -**201** | Created | - | -**401** | Unauthorized | - | - - -# **readFlowSchema** -> V1beta2FlowSchema readFlowSchema(name, pretty) - - - -read the specified FlowSchema - -### Example -```java -// Import classes: -import io.kubernetes.client.openapi.ApiClient; -import io.kubernetes.client.openapi.ApiException; -import io.kubernetes.client.openapi.Configuration; -import io.kubernetes.client.openapi.auth.*; -import io.kubernetes.client.openapi.models.*; -import io.kubernetes.client.openapi.apis.FlowcontrolApiserverV1beta2Api; - -public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("http://localhost"); - - // Configure API key authorization: BearerToken - ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); - BearerToken.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //BearerToken.setApiKeyPrefix("Token"); - - FlowcontrolApiserverV1beta2Api apiInstance = new FlowcontrolApiserverV1beta2Api(defaultClient); - String name = "name_example"; // String | name of the FlowSchema - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. - try { - V1beta2FlowSchema result = apiInstance.readFlowSchema(name, pretty); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling FlowcontrolApiserverV1beta2Api#readFlowSchema"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } - } -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the FlowSchema | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - -### Return type - -[**V1beta2FlowSchema**](V1beta2FlowSchema.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | - - -# **readFlowSchemaStatus** -> V1beta2FlowSchema readFlowSchemaStatus(name, pretty) - - - -read status of the specified FlowSchema - -### Example -```java -// Import classes: -import io.kubernetes.client.openapi.ApiClient; -import io.kubernetes.client.openapi.ApiException; -import io.kubernetes.client.openapi.Configuration; -import io.kubernetes.client.openapi.auth.*; -import io.kubernetes.client.openapi.models.*; -import io.kubernetes.client.openapi.apis.FlowcontrolApiserverV1beta2Api; - -public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("http://localhost"); - - // Configure API key authorization: BearerToken - ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); - BearerToken.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //BearerToken.setApiKeyPrefix("Token"); - - FlowcontrolApiserverV1beta2Api apiInstance = new FlowcontrolApiserverV1beta2Api(defaultClient); - String name = "name_example"; // String | name of the FlowSchema - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. - try { - V1beta2FlowSchema result = apiInstance.readFlowSchemaStatus(name, pretty); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling FlowcontrolApiserverV1beta2Api#readFlowSchemaStatus"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } - } -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the FlowSchema | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - -### Return type - -[**V1beta2FlowSchema**](V1beta2FlowSchema.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | - - -# **readPriorityLevelConfiguration** -> V1beta2PriorityLevelConfiguration readPriorityLevelConfiguration(name, pretty) - - - -read the specified PriorityLevelConfiguration - -### Example -```java -// Import classes: -import io.kubernetes.client.openapi.ApiClient; -import io.kubernetes.client.openapi.ApiException; -import io.kubernetes.client.openapi.Configuration; -import io.kubernetes.client.openapi.auth.*; -import io.kubernetes.client.openapi.models.*; -import io.kubernetes.client.openapi.apis.FlowcontrolApiserverV1beta2Api; - -public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("http://localhost"); - - // Configure API key authorization: BearerToken - ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); - BearerToken.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //BearerToken.setApiKeyPrefix("Token"); - - FlowcontrolApiserverV1beta2Api apiInstance = new FlowcontrolApiserverV1beta2Api(defaultClient); - String name = "name_example"; // String | name of the PriorityLevelConfiguration - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. - try { - V1beta2PriorityLevelConfiguration result = apiInstance.readPriorityLevelConfiguration(name, pretty); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling FlowcontrolApiserverV1beta2Api#readPriorityLevelConfiguration"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } - } -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the PriorityLevelConfiguration | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - -### Return type - -[**V1beta2PriorityLevelConfiguration**](V1beta2PriorityLevelConfiguration.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | - - -# **readPriorityLevelConfigurationStatus** -> V1beta2PriorityLevelConfiguration readPriorityLevelConfigurationStatus(name, pretty) - - - -read status of the specified PriorityLevelConfiguration - -### Example -```java -// Import classes: -import io.kubernetes.client.openapi.ApiClient; -import io.kubernetes.client.openapi.ApiException; -import io.kubernetes.client.openapi.Configuration; -import io.kubernetes.client.openapi.auth.*; -import io.kubernetes.client.openapi.models.*; -import io.kubernetes.client.openapi.apis.FlowcontrolApiserverV1beta2Api; - -public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("http://localhost"); - - // Configure API key authorization: BearerToken - ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); - BearerToken.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //BearerToken.setApiKeyPrefix("Token"); - - FlowcontrolApiserverV1beta2Api apiInstance = new FlowcontrolApiserverV1beta2Api(defaultClient); - String name = "name_example"; // String | name of the PriorityLevelConfiguration - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. - try { - V1beta2PriorityLevelConfiguration result = apiInstance.readPriorityLevelConfigurationStatus(name, pretty); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling FlowcontrolApiserverV1beta2Api#readPriorityLevelConfigurationStatus"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } - } -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the PriorityLevelConfiguration | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - -### Return type - -[**V1beta2PriorityLevelConfiguration**](V1beta2PriorityLevelConfiguration.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | - - -# **replaceFlowSchema** -> V1beta2FlowSchema replaceFlowSchema(name, body, pretty, dryRun, fieldManager, fieldValidation) - - - -replace the specified FlowSchema - -### Example -```java -// Import classes: -import io.kubernetes.client.openapi.ApiClient; -import io.kubernetes.client.openapi.ApiException; -import io.kubernetes.client.openapi.Configuration; -import io.kubernetes.client.openapi.auth.*; -import io.kubernetes.client.openapi.models.*; -import io.kubernetes.client.openapi.apis.FlowcontrolApiserverV1beta2Api; - -public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("http://localhost"); - - // Configure API key authorization: BearerToken - ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); - BearerToken.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //BearerToken.setApiKeyPrefix("Token"); - - FlowcontrolApiserverV1beta2Api apiInstance = new FlowcontrolApiserverV1beta2Api(defaultClient); - String name = "name_example"; // String | name of the FlowSchema - V1beta2FlowSchema body = new V1beta2FlowSchema(); // V1beta2FlowSchema | - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. - 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 fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. - try { - V1beta2FlowSchema result = apiInstance.replaceFlowSchema(name, body, pretty, dryRun, fieldManager, fieldValidation); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling FlowcontrolApiserverV1beta2Api#replaceFlowSchema"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } - } -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the FlowSchema | - **body** | [**V1beta2FlowSchema**](V1beta2FlowSchema.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [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] - **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] - **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] - -### Return type - -[**V1beta2FlowSchema**](V1beta2FlowSchema.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | OK | - | -**201** | Created | - | -**401** | Unauthorized | - | - - -# **replaceFlowSchemaStatus** -> V1beta2FlowSchema replaceFlowSchemaStatus(name, body, pretty, dryRun, fieldManager, fieldValidation) - - - -replace status of the specified FlowSchema - -### Example -```java -// Import classes: -import io.kubernetes.client.openapi.ApiClient; -import io.kubernetes.client.openapi.ApiException; -import io.kubernetes.client.openapi.Configuration; -import io.kubernetes.client.openapi.auth.*; -import io.kubernetes.client.openapi.models.*; -import io.kubernetes.client.openapi.apis.FlowcontrolApiserverV1beta2Api; - -public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("http://localhost"); - - // Configure API key authorization: BearerToken - ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); - BearerToken.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //BearerToken.setApiKeyPrefix("Token"); - - FlowcontrolApiserverV1beta2Api apiInstance = new FlowcontrolApiserverV1beta2Api(defaultClient); - String name = "name_example"; // String | name of the FlowSchema - V1beta2FlowSchema body = new V1beta2FlowSchema(); // V1beta2FlowSchema | - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. - 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 fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. - try { - V1beta2FlowSchema result = apiInstance.replaceFlowSchemaStatus(name, body, pretty, dryRun, fieldManager, fieldValidation); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling FlowcontrolApiserverV1beta2Api#replaceFlowSchemaStatus"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } - } -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the FlowSchema | - **body** | [**V1beta2FlowSchema**](V1beta2FlowSchema.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [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] - **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] - **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] - -### Return type - -[**V1beta2FlowSchema**](V1beta2FlowSchema.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | OK | - | -**201** | Created | - | -**401** | Unauthorized | - | - - -# **replacePriorityLevelConfiguration** -> V1beta2PriorityLevelConfiguration replacePriorityLevelConfiguration(name, body, pretty, dryRun, fieldManager, fieldValidation) - - - -replace the specified PriorityLevelConfiguration - -### Example -```java -// Import classes: -import io.kubernetes.client.openapi.ApiClient; -import io.kubernetes.client.openapi.ApiException; -import io.kubernetes.client.openapi.Configuration; -import io.kubernetes.client.openapi.auth.*; -import io.kubernetes.client.openapi.models.*; -import io.kubernetes.client.openapi.apis.FlowcontrolApiserverV1beta2Api; - -public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("http://localhost"); - - // Configure API key authorization: BearerToken - ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); - BearerToken.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //BearerToken.setApiKeyPrefix("Token"); - - FlowcontrolApiserverV1beta2Api apiInstance = new FlowcontrolApiserverV1beta2Api(defaultClient); - String name = "name_example"; // String | name of the PriorityLevelConfiguration - V1beta2PriorityLevelConfiguration body = new V1beta2PriorityLevelConfiguration(); // V1beta2PriorityLevelConfiguration | - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. - 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 fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. - try { - V1beta2PriorityLevelConfiguration result = apiInstance.replacePriorityLevelConfiguration(name, body, pretty, dryRun, fieldManager, fieldValidation); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling FlowcontrolApiserverV1beta2Api#replacePriorityLevelConfiguration"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } - } -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the PriorityLevelConfiguration | - **body** | [**V1beta2PriorityLevelConfiguration**](V1beta2PriorityLevelConfiguration.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [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] - **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] - **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] - -### Return type - -[**V1beta2PriorityLevelConfiguration**](V1beta2PriorityLevelConfiguration.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | OK | - | -**201** | Created | - | -**401** | Unauthorized | - | - - -# **replacePriorityLevelConfigurationStatus** -> V1beta2PriorityLevelConfiguration replacePriorityLevelConfigurationStatus(name, body, pretty, dryRun, fieldManager, fieldValidation) - - - -replace status of the specified PriorityLevelConfiguration - -### Example -```java -// Import classes: -import io.kubernetes.client.openapi.ApiClient; -import io.kubernetes.client.openapi.ApiException; -import io.kubernetes.client.openapi.Configuration; -import io.kubernetes.client.openapi.auth.*; -import io.kubernetes.client.openapi.models.*; -import io.kubernetes.client.openapi.apis.FlowcontrolApiserverV1beta2Api; - -public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("http://localhost"); - - // Configure API key authorization: BearerToken - ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); - BearerToken.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //BearerToken.setApiKeyPrefix("Token"); - - FlowcontrolApiserverV1beta2Api apiInstance = new FlowcontrolApiserverV1beta2Api(defaultClient); - String name = "name_example"; // String | name of the PriorityLevelConfiguration - V1beta2PriorityLevelConfiguration body = new V1beta2PriorityLevelConfiguration(); // V1beta2PriorityLevelConfiguration | - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. - 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 fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. - try { - V1beta2PriorityLevelConfiguration result = apiInstance.replacePriorityLevelConfigurationStatus(name, body, pretty, dryRun, fieldManager, fieldValidation); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling FlowcontrolApiserverV1beta2Api#replacePriorityLevelConfigurationStatus"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } - } -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the PriorityLevelConfiguration | - **body** | [**V1beta2PriorityLevelConfiguration**](V1beta2PriorityLevelConfiguration.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [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] - **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] - **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] - -### Return type - -[**V1beta2PriorityLevelConfiguration**](V1beta2PriorityLevelConfiguration.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | OK | - | -**201** | Created | - | -**401** | Unauthorized | - | - diff --git a/kubernetes/docs/FlowcontrolApiserverV1beta3Api.md b/kubernetes/docs/FlowcontrolApiserverV1beta3Api.md deleted file mode 100644 index 029ce46d4d..0000000000 --- a/kubernetes/docs/FlowcontrolApiserverV1beta3Api.md +++ /dev/null @@ -1,1737 +0,0 @@ -# FlowcontrolApiserverV1beta3Api - -All URIs are relative to *http://localhost* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**createFlowSchema**](FlowcontrolApiserverV1beta3Api.md#createFlowSchema) | **POST** /apis/flowcontrol.apiserver.k8s.io/v1beta3/flowschemas | -[**createPriorityLevelConfiguration**](FlowcontrolApiserverV1beta3Api.md#createPriorityLevelConfiguration) | **POST** /apis/flowcontrol.apiserver.k8s.io/v1beta3/prioritylevelconfigurations | -[**deleteCollectionFlowSchema**](FlowcontrolApiserverV1beta3Api.md#deleteCollectionFlowSchema) | **DELETE** /apis/flowcontrol.apiserver.k8s.io/v1beta3/flowschemas | -[**deleteCollectionPriorityLevelConfiguration**](FlowcontrolApiserverV1beta3Api.md#deleteCollectionPriorityLevelConfiguration) | **DELETE** /apis/flowcontrol.apiserver.k8s.io/v1beta3/prioritylevelconfigurations | -[**deleteFlowSchema**](FlowcontrolApiserverV1beta3Api.md#deleteFlowSchema) | **DELETE** /apis/flowcontrol.apiserver.k8s.io/v1beta3/flowschemas/{name} | -[**deletePriorityLevelConfiguration**](FlowcontrolApiserverV1beta3Api.md#deletePriorityLevelConfiguration) | **DELETE** /apis/flowcontrol.apiserver.k8s.io/v1beta3/prioritylevelconfigurations/{name} | -[**getAPIResources**](FlowcontrolApiserverV1beta3Api.md#getAPIResources) | **GET** /apis/flowcontrol.apiserver.k8s.io/v1beta3/ | -[**listFlowSchema**](FlowcontrolApiserverV1beta3Api.md#listFlowSchema) | **GET** /apis/flowcontrol.apiserver.k8s.io/v1beta3/flowschemas | -[**listPriorityLevelConfiguration**](FlowcontrolApiserverV1beta3Api.md#listPriorityLevelConfiguration) | **GET** /apis/flowcontrol.apiserver.k8s.io/v1beta3/prioritylevelconfigurations | -[**patchFlowSchema**](FlowcontrolApiserverV1beta3Api.md#patchFlowSchema) | **PATCH** /apis/flowcontrol.apiserver.k8s.io/v1beta3/flowschemas/{name} | -[**patchFlowSchemaStatus**](FlowcontrolApiserverV1beta3Api.md#patchFlowSchemaStatus) | **PATCH** /apis/flowcontrol.apiserver.k8s.io/v1beta3/flowschemas/{name}/status | -[**patchPriorityLevelConfiguration**](FlowcontrolApiserverV1beta3Api.md#patchPriorityLevelConfiguration) | **PATCH** /apis/flowcontrol.apiserver.k8s.io/v1beta3/prioritylevelconfigurations/{name} | -[**patchPriorityLevelConfigurationStatus**](FlowcontrolApiserverV1beta3Api.md#patchPriorityLevelConfigurationStatus) | **PATCH** /apis/flowcontrol.apiserver.k8s.io/v1beta3/prioritylevelconfigurations/{name}/status | -[**readFlowSchema**](FlowcontrolApiserverV1beta3Api.md#readFlowSchema) | **GET** /apis/flowcontrol.apiserver.k8s.io/v1beta3/flowschemas/{name} | -[**readFlowSchemaStatus**](FlowcontrolApiserverV1beta3Api.md#readFlowSchemaStatus) | **GET** /apis/flowcontrol.apiserver.k8s.io/v1beta3/flowschemas/{name}/status | -[**readPriorityLevelConfiguration**](FlowcontrolApiserverV1beta3Api.md#readPriorityLevelConfiguration) | **GET** /apis/flowcontrol.apiserver.k8s.io/v1beta3/prioritylevelconfigurations/{name} | -[**readPriorityLevelConfigurationStatus**](FlowcontrolApiserverV1beta3Api.md#readPriorityLevelConfigurationStatus) | **GET** /apis/flowcontrol.apiserver.k8s.io/v1beta3/prioritylevelconfigurations/{name}/status | -[**replaceFlowSchema**](FlowcontrolApiserverV1beta3Api.md#replaceFlowSchema) | **PUT** /apis/flowcontrol.apiserver.k8s.io/v1beta3/flowschemas/{name} | -[**replaceFlowSchemaStatus**](FlowcontrolApiserverV1beta3Api.md#replaceFlowSchemaStatus) | **PUT** /apis/flowcontrol.apiserver.k8s.io/v1beta3/flowschemas/{name}/status | -[**replacePriorityLevelConfiguration**](FlowcontrolApiserverV1beta3Api.md#replacePriorityLevelConfiguration) | **PUT** /apis/flowcontrol.apiserver.k8s.io/v1beta3/prioritylevelconfigurations/{name} | -[**replacePriorityLevelConfigurationStatus**](FlowcontrolApiserverV1beta3Api.md#replacePriorityLevelConfigurationStatus) | **PUT** /apis/flowcontrol.apiserver.k8s.io/v1beta3/prioritylevelconfigurations/{name}/status | - - - -# **createFlowSchema** -> V1beta3FlowSchema createFlowSchema(body, pretty, dryRun, fieldManager, fieldValidation) - - - -create a FlowSchema - -### Example -```java -// Import classes: -import io.kubernetes.client.openapi.ApiClient; -import io.kubernetes.client.openapi.ApiException; -import io.kubernetes.client.openapi.Configuration; -import io.kubernetes.client.openapi.auth.*; -import io.kubernetes.client.openapi.models.*; -import io.kubernetes.client.openapi.apis.FlowcontrolApiserverV1beta3Api; - -public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("http://localhost"); - - // Configure API key authorization: BearerToken - ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); - BearerToken.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //BearerToken.setApiKeyPrefix("Token"); - - FlowcontrolApiserverV1beta3Api apiInstance = new FlowcontrolApiserverV1beta3Api(defaultClient); - V1beta3FlowSchema body = new V1beta3FlowSchema(); // V1beta3FlowSchema | - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. - 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 fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. - try { - V1beta3FlowSchema result = apiInstance.createFlowSchema(body, pretty, dryRun, fieldManager, fieldValidation); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling FlowcontrolApiserverV1beta3Api#createFlowSchema"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } - } -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **body** | [**V1beta3FlowSchema**](V1beta3FlowSchema.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [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] - **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] - **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] - -### Return type - -[**V1beta3FlowSchema**](V1beta3FlowSchema.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | OK | - | -**201** | Created | - | -**202** | Accepted | - | -**401** | Unauthorized | - | - - -# **createPriorityLevelConfiguration** -> V1beta3PriorityLevelConfiguration createPriorityLevelConfiguration(body, pretty, dryRun, fieldManager, fieldValidation) - - - -create a PriorityLevelConfiguration - -### Example -```java -// Import classes: -import io.kubernetes.client.openapi.ApiClient; -import io.kubernetes.client.openapi.ApiException; -import io.kubernetes.client.openapi.Configuration; -import io.kubernetes.client.openapi.auth.*; -import io.kubernetes.client.openapi.models.*; -import io.kubernetes.client.openapi.apis.FlowcontrolApiserverV1beta3Api; - -public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("http://localhost"); - - // Configure API key authorization: BearerToken - ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); - BearerToken.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //BearerToken.setApiKeyPrefix("Token"); - - FlowcontrolApiserverV1beta3Api apiInstance = new FlowcontrolApiserverV1beta3Api(defaultClient); - V1beta3PriorityLevelConfiguration body = new V1beta3PriorityLevelConfiguration(); // V1beta3PriorityLevelConfiguration | - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. - 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 fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. - try { - V1beta3PriorityLevelConfiguration result = apiInstance.createPriorityLevelConfiguration(body, pretty, dryRun, fieldManager, fieldValidation); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling FlowcontrolApiserverV1beta3Api#createPriorityLevelConfiguration"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } - } -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **body** | [**V1beta3PriorityLevelConfiguration**](V1beta3PriorityLevelConfiguration.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [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] - **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] - **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] - -### Return type - -[**V1beta3PriorityLevelConfiguration**](V1beta3PriorityLevelConfiguration.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | OK | - | -**201** | Created | - | -**202** | Accepted | - | -**401** | Unauthorized | - | - - -# **deleteCollectionFlowSchema** -> V1Status deleteCollectionFlowSchema(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body) - - - -delete collection of FlowSchema - -### Example -```java -// Import classes: -import io.kubernetes.client.openapi.ApiClient; -import io.kubernetes.client.openapi.ApiException; -import io.kubernetes.client.openapi.Configuration; -import io.kubernetes.client.openapi.auth.*; -import io.kubernetes.client.openapi.models.*; -import io.kubernetes.client.openapi.apis.FlowcontrolApiserverV1beta3Api; - -public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("http://localhost"); - - // Configure API key authorization: BearerToken - ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); - BearerToken.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //BearerToken.setApiKeyPrefix("Token"); - - FlowcontrolApiserverV1beta3Api apiInstance = new FlowcontrolApiserverV1beta3Api(defaultClient); - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. - 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. - 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. - Integer gracePeriodSeconds = 56; // Integer | 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. - String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. - Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. - 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. 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. - String resourceVersion = "resourceVersion_example"; // String | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset - String resourceVersionMatch = "resourceVersionMatch_example"; // String | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset - Boolean sendInitialEvents = true; // Boolean | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. - Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. - V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | - try { - V1Status result = apiInstance.deleteCollectionFlowSchema(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling FlowcontrolApiserverV1beta3Api#deleteCollectionFlowSchema"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } - } -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **pretty** | **String**| If 'true', then the output is pretty printed. | [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] - **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] - **gracePeriodSeconds** | **Integer**| 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. | [optional] - **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] - **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. 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. | [optional] - **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] - **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] - **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] - **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] - **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] - -### Return type - -[**V1Status**](V1Status.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | - - -# **deleteCollectionPriorityLevelConfiguration** -> V1Status deleteCollectionPriorityLevelConfiguration(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body) - - - -delete collection of PriorityLevelConfiguration - -### Example -```java -// Import classes: -import io.kubernetes.client.openapi.ApiClient; -import io.kubernetes.client.openapi.ApiException; -import io.kubernetes.client.openapi.Configuration; -import io.kubernetes.client.openapi.auth.*; -import io.kubernetes.client.openapi.models.*; -import io.kubernetes.client.openapi.apis.FlowcontrolApiserverV1beta3Api; - -public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("http://localhost"); - - // Configure API key authorization: BearerToken - ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); - BearerToken.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //BearerToken.setApiKeyPrefix("Token"); - - FlowcontrolApiserverV1beta3Api apiInstance = new FlowcontrolApiserverV1beta3Api(defaultClient); - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. - 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. - 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. - Integer gracePeriodSeconds = 56; // Integer | 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. - String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. - Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. - 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. 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. - String resourceVersion = "resourceVersion_example"; // String | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset - String resourceVersionMatch = "resourceVersionMatch_example"; // String | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset - Boolean sendInitialEvents = true; // Boolean | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. - Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. - V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | - try { - V1Status result = apiInstance.deleteCollectionPriorityLevelConfiguration(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling FlowcontrolApiserverV1beta3Api#deleteCollectionPriorityLevelConfiguration"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } - } -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **pretty** | **String**| If 'true', then the output is pretty printed. | [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] - **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] - **gracePeriodSeconds** | **Integer**| 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. | [optional] - **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] - **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. 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. | [optional] - **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] - **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] - **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] - **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] - **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] - -### Return type - -[**V1Status**](V1Status.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | - - -# **deleteFlowSchema** -> V1Status deleteFlowSchema(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body) - - - -delete a FlowSchema - -### Example -```java -// Import classes: -import io.kubernetes.client.openapi.ApiClient; -import io.kubernetes.client.openapi.ApiException; -import io.kubernetes.client.openapi.Configuration; -import io.kubernetes.client.openapi.auth.*; -import io.kubernetes.client.openapi.models.*; -import io.kubernetes.client.openapi.apis.FlowcontrolApiserverV1beta3Api; - -public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("http://localhost"); - - // Configure API key authorization: BearerToken - ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); - BearerToken.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //BearerToken.setApiKeyPrefix("Token"); - - FlowcontrolApiserverV1beta3Api apiInstance = new FlowcontrolApiserverV1beta3Api(defaultClient); - String name = "name_example"; // String | name of the FlowSchema - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. - 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 - Integer gracePeriodSeconds = 56; // Integer | 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. - 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. 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. - V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | - try { - V1Status result = apiInstance.deleteFlowSchema(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling FlowcontrolApiserverV1beta3Api#deleteFlowSchema"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } - } -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the FlowSchema | - **pretty** | **String**| If 'true', then the output is pretty printed. | [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] - **gracePeriodSeconds** | **Integer**| 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. | [optional] - **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. 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. | [optional] - **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] - -### Return type - -[**V1Status**](V1Status.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | OK | - | -**202** | Accepted | - | -**401** | Unauthorized | - | - - -# **deletePriorityLevelConfiguration** -> V1Status deletePriorityLevelConfiguration(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body) - - - -delete a PriorityLevelConfiguration - -### Example -```java -// Import classes: -import io.kubernetes.client.openapi.ApiClient; -import io.kubernetes.client.openapi.ApiException; -import io.kubernetes.client.openapi.Configuration; -import io.kubernetes.client.openapi.auth.*; -import io.kubernetes.client.openapi.models.*; -import io.kubernetes.client.openapi.apis.FlowcontrolApiserverV1beta3Api; - -public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("http://localhost"); - - // Configure API key authorization: BearerToken - ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); - BearerToken.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //BearerToken.setApiKeyPrefix("Token"); - - FlowcontrolApiserverV1beta3Api apiInstance = new FlowcontrolApiserverV1beta3Api(defaultClient); - String name = "name_example"; // String | name of the PriorityLevelConfiguration - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. - 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 - Integer gracePeriodSeconds = 56; // Integer | 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. - 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. 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. - V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | - try { - V1Status result = apiInstance.deletePriorityLevelConfiguration(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling FlowcontrolApiserverV1beta3Api#deletePriorityLevelConfiguration"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } - } -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the PriorityLevelConfiguration | - **pretty** | **String**| If 'true', then the output is pretty printed. | [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] - **gracePeriodSeconds** | **Integer**| 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. | [optional] - **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. 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. | [optional] - **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] - -### Return type - -[**V1Status**](V1Status.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | OK | - | -**202** | Accepted | - | -**401** | Unauthorized | - | - - -# **getAPIResources** -> V1APIResourceList getAPIResources() - - - -get available resources - -### Example -```java -// Import classes: -import io.kubernetes.client.openapi.ApiClient; -import io.kubernetes.client.openapi.ApiException; -import io.kubernetes.client.openapi.Configuration; -import io.kubernetes.client.openapi.auth.*; -import io.kubernetes.client.openapi.models.*; -import io.kubernetes.client.openapi.apis.FlowcontrolApiserverV1beta3Api; - -public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("http://localhost"); - - // Configure API key authorization: BearerToken - ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); - BearerToken.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //BearerToken.setApiKeyPrefix("Token"); - - FlowcontrolApiserverV1beta3Api apiInstance = new FlowcontrolApiserverV1beta3Api(defaultClient); - try { - V1APIResourceList result = apiInstance.getAPIResources(); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling FlowcontrolApiserverV1beta3Api#getAPIResources"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } - } -} -``` - -### Parameters -This endpoint does not need any parameter. - -### Return type - -[**V1APIResourceList**](V1APIResourceList.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | - - -# **listFlowSchema** -> V1beta3FlowSchemaList listFlowSchema(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch) - - - -list or watch objects of kind FlowSchema - -### Example -```java -// Import classes: -import io.kubernetes.client.openapi.ApiClient; -import io.kubernetes.client.openapi.ApiException; -import io.kubernetes.client.openapi.Configuration; -import io.kubernetes.client.openapi.auth.*; -import io.kubernetes.client.openapi.models.*; -import io.kubernetes.client.openapi.apis.FlowcontrolApiserverV1beta3Api; - -public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("http://localhost"); - - // Configure API key authorization: BearerToken - ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); - BearerToken.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //BearerToken.setApiKeyPrefix("Token"); - - FlowcontrolApiserverV1beta3Api apiInstance = new FlowcontrolApiserverV1beta3Api(defaultClient); - 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. - 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. - String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. - String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. - Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. - String resourceVersion = "resourceVersion_example"; // String | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset - String resourceVersionMatch = "resourceVersionMatch_example"; // String | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset - Boolean sendInitialEvents = true; // Boolean | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. - 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. Specify resourceVersion. - try { - V1beta3FlowSchemaList result = apiInstance.listFlowSchema(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling FlowcontrolApiserverV1beta3Api#listFlowSchema"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } - } -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **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. | [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] - **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] - **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] - **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] - **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] - **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] - **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] - -### Return type - -[**V1beta3FlowSchemaList**](V1beta3FlowSchemaList.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | - - -# **listPriorityLevelConfiguration** -> V1beta3PriorityLevelConfigurationList listPriorityLevelConfiguration(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch) - - - -list or watch objects of kind PriorityLevelConfiguration - -### Example -```java -// Import classes: -import io.kubernetes.client.openapi.ApiClient; -import io.kubernetes.client.openapi.ApiException; -import io.kubernetes.client.openapi.Configuration; -import io.kubernetes.client.openapi.auth.*; -import io.kubernetes.client.openapi.models.*; -import io.kubernetes.client.openapi.apis.FlowcontrolApiserverV1beta3Api; - -public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("http://localhost"); - - // Configure API key authorization: BearerToken - ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); - BearerToken.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //BearerToken.setApiKeyPrefix("Token"); - - FlowcontrolApiserverV1beta3Api apiInstance = new FlowcontrolApiserverV1beta3Api(defaultClient); - 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. - 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. - String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. - String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. - Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. - String resourceVersion = "resourceVersion_example"; // String | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset - String resourceVersionMatch = "resourceVersionMatch_example"; // String | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset - Boolean sendInitialEvents = true; // Boolean | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. - 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. Specify resourceVersion. - try { - V1beta3PriorityLevelConfigurationList result = apiInstance.listPriorityLevelConfiguration(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling FlowcontrolApiserverV1beta3Api#listPriorityLevelConfiguration"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } - } -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **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. | [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] - **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] - **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] - **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] - **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] - **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] - **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] - -### Return type - -[**V1beta3PriorityLevelConfigurationList**](V1beta3PriorityLevelConfigurationList.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | - - -# **patchFlowSchema** -> V1beta3FlowSchema patchFlowSchema(name, body, pretty, dryRun, fieldManager, fieldValidation, force) - - - -partially update the specified FlowSchema - -### Example -```java -// Import classes: -import io.kubernetes.client.openapi.ApiClient; -import io.kubernetes.client.openapi.ApiException; -import io.kubernetes.client.openapi.Configuration; -import io.kubernetes.client.openapi.auth.*; -import io.kubernetes.client.openapi.models.*; -import io.kubernetes.client.openapi.apis.FlowcontrolApiserverV1beta3Api; - -public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("http://localhost"); - - // Configure API key authorization: BearerToken - ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); - BearerToken.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //BearerToken.setApiKeyPrefix("Token"); - - FlowcontrolApiserverV1beta3Api apiInstance = new FlowcontrolApiserverV1beta3Api(defaultClient); - String name = "name_example"; // String | name of the FlowSchema - V1Patch body = new V1Patch(); // V1Patch | - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. - 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 fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). - String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. - Boolean force = true; // Boolean | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. - try { - V1beta3FlowSchema result = apiInstance.patchFlowSchema(name, body, pretty, dryRun, fieldManager, fieldValidation, force); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling FlowcontrolApiserverV1beta3Api#patchFlowSchema"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } - } -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the FlowSchema | - **body** | **V1Patch**| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [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] - **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] - **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] - **force** | **Boolean**| Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | [optional] - -### Return type - -[**V1beta3FlowSchema**](V1beta3FlowSchema.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | OK | - | -**201** | Created | - | -**401** | Unauthorized | - | - - -# **patchFlowSchemaStatus** -> V1beta3FlowSchema patchFlowSchemaStatus(name, body, pretty, dryRun, fieldManager, fieldValidation, force) - - - -partially update status of the specified FlowSchema - -### Example -```java -// Import classes: -import io.kubernetes.client.openapi.ApiClient; -import io.kubernetes.client.openapi.ApiException; -import io.kubernetes.client.openapi.Configuration; -import io.kubernetes.client.openapi.auth.*; -import io.kubernetes.client.openapi.models.*; -import io.kubernetes.client.openapi.apis.FlowcontrolApiserverV1beta3Api; - -public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("http://localhost"); - - // Configure API key authorization: BearerToken - ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); - BearerToken.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //BearerToken.setApiKeyPrefix("Token"); - - FlowcontrolApiserverV1beta3Api apiInstance = new FlowcontrolApiserverV1beta3Api(defaultClient); - String name = "name_example"; // String | name of the FlowSchema - V1Patch body = new V1Patch(); // V1Patch | - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. - 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 fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). - String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. - Boolean force = true; // Boolean | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. - try { - V1beta3FlowSchema result = apiInstance.patchFlowSchemaStatus(name, body, pretty, dryRun, fieldManager, fieldValidation, force); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling FlowcontrolApiserverV1beta3Api#patchFlowSchemaStatus"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } - } -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the FlowSchema | - **body** | **V1Patch**| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [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] - **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] - **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] - **force** | **Boolean**| Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | [optional] - -### Return type - -[**V1beta3FlowSchema**](V1beta3FlowSchema.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | OK | - | -**201** | Created | - | -**401** | Unauthorized | - | - - -# **patchPriorityLevelConfiguration** -> V1beta3PriorityLevelConfiguration patchPriorityLevelConfiguration(name, body, pretty, dryRun, fieldManager, fieldValidation, force) - - - -partially update the specified PriorityLevelConfiguration - -### Example -```java -// Import classes: -import io.kubernetes.client.openapi.ApiClient; -import io.kubernetes.client.openapi.ApiException; -import io.kubernetes.client.openapi.Configuration; -import io.kubernetes.client.openapi.auth.*; -import io.kubernetes.client.openapi.models.*; -import io.kubernetes.client.openapi.apis.FlowcontrolApiserverV1beta3Api; - -public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("http://localhost"); - - // Configure API key authorization: BearerToken - ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); - BearerToken.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //BearerToken.setApiKeyPrefix("Token"); - - FlowcontrolApiserverV1beta3Api apiInstance = new FlowcontrolApiserverV1beta3Api(defaultClient); - String name = "name_example"; // String | name of the PriorityLevelConfiguration - V1Patch body = new V1Patch(); // V1Patch | - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. - 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 fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). - String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. - Boolean force = true; // Boolean | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. - try { - V1beta3PriorityLevelConfiguration result = apiInstance.patchPriorityLevelConfiguration(name, body, pretty, dryRun, fieldManager, fieldValidation, force); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling FlowcontrolApiserverV1beta3Api#patchPriorityLevelConfiguration"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } - } -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the PriorityLevelConfiguration | - **body** | **V1Patch**| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [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] - **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] - **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] - **force** | **Boolean**| Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | [optional] - -### Return type - -[**V1beta3PriorityLevelConfiguration**](V1beta3PriorityLevelConfiguration.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | OK | - | -**201** | Created | - | -**401** | Unauthorized | - | - - -# **patchPriorityLevelConfigurationStatus** -> V1beta3PriorityLevelConfiguration patchPriorityLevelConfigurationStatus(name, body, pretty, dryRun, fieldManager, fieldValidation, force) - - - -partially update status of the specified PriorityLevelConfiguration - -### Example -```java -// Import classes: -import io.kubernetes.client.openapi.ApiClient; -import io.kubernetes.client.openapi.ApiException; -import io.kubernetes.client.openapi.Configuration; -import io.kubernetes.client.openapi.auth.*; -import io.kubernetes.client.openapi.models.*; -import io.kubernetes.client.openapi.apis.FlowcontrolApiserverV1beta3Api; - -public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("http://localhost"); - - // Configure API key authorization: BearerToken - ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); - BearerToken.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //BearerToken.setApiKeyPrefix("Token"); - - FlowcontrolApiserverV1beta3Api apiInstance = new FlowcontrolApiserverV1beta3Api(defaultClient); - String name = "name_example"; // String | name of the PriorityLevelConfiguration - V1Patch body = new V1Patch(); // V1Patch | - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. - 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 fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). - String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. - Boolean force = true; // Boolean | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. - try { - V1beta3PriorityLevelConfiguration result = apiInstance.patchPriorityLevelConfigurationStatus(name, body, pretty, dryRun, fieldManager, fieldValidation, force); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling FlowcontrolApiserverV1beta3Api#patchPriorityLevelConfigurationStatus"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } - } -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the PriorityLevelConfiguration | - **body** | **V1Patch**| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [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] - **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] - **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] - **force** | **Boolean**| Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | [optional] - -### Return type - -[**V1beta3PriorityLevelConfiguration**](V1beta3PriorityLevelConfiguration.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | OK | - | -**201** | Created | - | -**401** | Unauthorized | - | - - -# **readFlowSchema** -> V1beta3FlowSchema readFlowSchema(name, pretty) - - - -read the specified FlowSchema - -### Example -```java -// Import classes: -import io.kubernetes.client.openapi.ApiClient; -import io.kubernetes.client.openapi.ApiException; -import io.kubernetes.client.openapi.Configuration; -import io.kubernetes.client.openapi.auth.*; -import io.kubernetes.client.openapi.models.*; -import io.kubernetes.client.openapi.apis.FlowcontrolApiserverV1beta3Api; - -public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("http://localhost"); - - // Configure API key authorization: BearerToken - ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); - BearerToken.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //BearerToken.setApiKeyPrefix("Token"); - - FlowcontrolApiserverV1beta3Api apiInstance = new FlowcontrolApiserverV1beta3Api(defaultClient); - String name = "name_example"; // String | name of the FlowSchema - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. - try { - V1beta3FlowSchema result = apiInstance.readFlowSchema(name, pretty); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling FlowcontrolApiserverV1beta3Api#readFlowSchema"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } - } -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the FlowSchema | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - -### Return type - -[**V1beta3FlowSchema**](V1beta3FlowSchema.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | - - -# **readFlowSchemaStatus** -> V1beta3FlowSchema readFlowSchemaStatus(name, pretty) - - - -read status of the specified FlowSchema - -### Example -```java -// Import classes: -import io.kubernetes.client.openapi.ApiClient; -import io.kubernetes.client.openapi.ApiException; -import io.kubernetes.client.openapi.Configuration; -import io.kubernetes.client.openapi.auth.*; -import io.kubernetes.client.openapi.models.*; -import io.kubernetes.client.openapi.apis.FlowcontrolApiserverV1beta3Api; - -public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("http://localhost"); - - // Configure API key authorization: BearerToken - ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); - BearerToken.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //BearerToken.setApiKeyPrefix("Token"); - - FlowcontrolApiserverV1beta3Api apiInstance = new FlowcontrolApiserverV1beta3Api(defaultClient); - String name = "name_example"; // String | name of the FlowSchema - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. - try { - V1beta3FlowSchema result = apiInstance.readFlowSchemaStatus(name, pretty); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling FlowcontrolApiserverV1beta3Api#readFlowSchemaStatus"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } - } -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the FlowSchema | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - -### Return type - -[**V1beta3FlowSchema**](V1beta3FlowSchema.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | - - -# **readPriorityLevelConfiguration** -> V1beta3PriorityLevelConfiguration readPriorityLevelConfiguration(name, pretty) - - - -read the specified PriorityLevelConfiguration - -### Example -```java -// Import classes: -import io.kubernetes.client.openapi.ApiClient; -import io.kubernetes.client.openapi.ApiException; -import io.kubernetes.client.openapi.Configuration; -import io.kubernetes.client.openapi.auth.*; -import io.kubernetes.client.openapi.models.*; -import io.kubernetes.client.openapi.apis.FlowcontrolApiserverV1beta3Api; - -public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("http://localhost"); - - // Configure API key authorization: BearerToken - ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); - BearerToken.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //BearerToken.setApiKeyPrefix("Token"); - - FlowcontrolApiserverV1beta3Api apiInstance = new FlowcontrolApiserverV1beta3Api(defaultClient); - String name = "name_example"; // String | name of the PriorityLevelConfiguration - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. - try { - V1beta3PriorityLevelConfiguration result = apiInstance.readPriorityLevelConfiguration(name, pretty); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling FlowcontrolApiserverV1beta3Api#readPriorityLevelConfiguration"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } - } -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the PriorityLevelConfiguration | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - -### Return type - -[**V1beta3PriorityLevelConfiguration**](V1beta3PriorityLevelConfiguration.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | - - -# **readPriorityLevelConfigurationStatus** -> V1beta3PriorityLevelConfiguration readPriorityLevelConfigurationStatus(name, pretty) - - - -read status of the specified PriorityLevelConfiguration - -### Example -```java -// Import classes: -import io.kubernetes.client.openapi.ApiClient; -import io.kubernetes.client.openapi.ApiException; -import io.kubernetes.client.openapi.Configuration; -import io.kubernetes.client.openapi.auth.*; -import io.kubernetes.client.openapi.models.*; -import io.kubernetes.client.openapi.apis.FlowcontrolApiserverV1beta3Api; - -public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("http://localhost"); - - // Configure API key authorization: BearerToken - ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); - BearerToken.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //BearerToken.setApiKeyPrefix("Token"); - - FlowcontrolApiserverV1beta3Api apiInstance = new FlowcontrolApiserverV1beta3Api(defaultClient); - String name = "name_example"; // String | name of the PriorityLevelConfiguration - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. - try { - V1beta3PriorityLevelConfiguration result = apiInstance.readPriorityLevelConfigurationStatus(name, pretty); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling FlowcontrolApiserverV1beta3Api#readPriorityLevelConfigurationStatus"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } - } -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the PriorityLevelConfiguration | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - -### Return type - -[**V1beta3PriorityLevelConfiguration**](V1beta3PriorityLevelConfiguration.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | - - -# **replaceFlowSchema** -> V1beta3FlowSchema replaceFlowSchema(name, body, pretty, dryRun, fieldManager, fieldValidation) - - - -replace the specified FlowSchema - -### Example -```java -// Import classes: -import io.kubernetes.client.openapi.ApiClient; -import io.kubernetes.client.openapi.ApiException; -import io.kubernetes.client.openapi.Configuration; -import io.kubernetes.client.openapi.auth.*; -import io.kubernetes.client.openapi.models.*; -import io.kubernetes.client.openapi.apis.FlowcontrolApiserverV1beta3Api; - -public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("http://localhost"); - - // Configure API key authorization: BearerToken - ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); - BearerToken.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //BearerToken.setApiKeyPrefix("Token"); - - FlowcontrolApiserverV1beta3Api apiInstance = new FlowcontrolApiserverV1beta3Api(defaultClient); - String name = "name_example"; // String | name of the FlowSchema - V1beta3FlowSchema body = new V1beta3FlowSchema(); // V1beta3FlowSchema | - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. - 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 fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. - try { - V1beta3FlowSchema result = apiInstance.replaceFlowSchema(name, body, pretty, dryRun, fieldManager, fieldValidation); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling FlowcontrolApiserverV1beta3Api#replaceFlowSchema"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } - } -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the FlowSchema | - **body** | [**V1beta3FlowSchema**](V1beta3FlowSchema.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [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] - **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] - **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] - -### Return type - -[**V1beta3FlowSchema**](V1beta3FlowSchema.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | OK | - | -**201** | Created | - | -**401** | Unauthorized | - | - - -# **replaceFlowSchemaStatus** -> V1beta3FlowSchema replaceFlowSchemaStatus(name, body, pretty, dryRun, fieldManager, fieldValidation) - - - -replace status of the specified FlowSchema - -### Example -```java -// Import classes: -import io.kubernetes.client.openapi.ApiClient; -import io.kubernetes.client.openapi.ApiException; -import io.kubernetes.client.openapi.Configuration; -import io.kubernetes.client.openapi.auth.*; -import io.kubernetes.client.openapi.models.*; -import io.kubernetes.client.openapi.apis.FlowcontrolApiserverV1beta3Api; - -public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("http://localhost"); - - // Configure API key authorization: BearerToken - ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); - BearerToken.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //BearerToken.setApiKeyPrefix("Token"); - - FlowcontrolApiserverV1beta3Api apiInstance = new FlowcontrolApiserverV1beta3Api(defaultClient); - String name = "name_example"; // String | name of the FlowSchema - V1beta3FlowSchema body = new V1beta3FlowSchema(); // V1beta3FlowSchema | - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. - 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 fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. - try { - V1beta3FlowSchema result = apiInstance.replaceFlowSchemaStatus(name, body, pretty, dryRun, fieldManager, fieldValidation); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling FlowcontrolApiserverV1beta3Api#replaceFlowSchemaStatus"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } - } -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the FlowSchema | - **body** | [**V1beta3FlowSchema**](V1beta3FlowSchema.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [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] - **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] - **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] - -### Return type - -[**V1beta3FlowSchema**](V1beta3FlowSchema.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | OK | - | -**201** | Created | - | -**401** | Unauthorized | - | - - -# **replacePriorityLevelConfiguration** -> V1beta3PriorityLevelConfiguration replacePriorityLevelConfiguration(name, body, pretty, dryRun, fieldManager, fieldValidation) - - - -replace the specified PriorityLevelConfiguration - -### Example -```java -// Import classes: -import io.kubernetes.client.openapi.ApiClient; -import io.kubernetes.client.openapi.ApiException; -import io.kubernetes.client.openapi.Configuration; -import io.kubernetes.client.openapi.auth.*; -import io.kubernetes.client.openapi.models.*; -import io.kubernetes.client.openapi.apis.FlowcontrolApiserverV1beta3Api; - -public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("http://localhost"); - - // Configure API key authorization: BearerToken - ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); - BearerToken.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //BearerToken.setApiKeyPrefix("Token"); - - FlowcontrolApiserverV1beta3Api apiInstance = new FlowcontrolApiserverV1beta3Api(defaultClient); - String name = "name_example"; // String | name of the PriorityLevelConfiguration - V1beta3PriorityLevelConfiguration body = new V1beta3PriorityLevelConfiguration(); // V1beta3PriorityLevelConfiguration | - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. - 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 fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. - try { - V1beta3PriorityLevelConfiguration result = apiInstance.replacePriorityLevelConfiguration(name, body, pretty, dryRun, fieldManager, fieldValidation); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling FlowcontrolApiserverV1beta3Api#replacePriorityLevelConfiguration"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } - } -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the PriorityLevelConfiguration | - **body** | [**V1beta3PriorityLevelConfiguration**](V1beta3PriorityLevelConfiguration.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [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] - **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] - **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] - -### Return type - -[**V1beta3PriorityLevelConfiguration**](V1beta3PriorityLevelConfiguration.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | OK | - | -**201** | Created | - | -**401** | Unauthorized | - | - - -# **replacePriorityLevelConfigurationStatus** -> V1beta3PriorityLevelConfiguration replacePriorityLevelConfigurationStatus(name, body, pretty, dryRun, fieldManager, fieldValidation) - - - -replace status of the specified PriorityLevelConfiguration - -### Example -```java -// Import classes: -import io.kubernetes.client.openapi.ApiClient; -import io.kubernetes.client.openapi.ApiException; -import io.kubernetes.client.openapi.Configuration; -import io.kubernetes.client.openapi.auth.*; -import io.kubernetes.client.openapi.models.*; -import io.kubernetes.client.openapi.apis.FlowcontrolApiserverV1beta3Api; - -public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("http://localhost"); - - // Configure API key authorization: BearerToken - ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); - BearerToken.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //BearerToken.setApiKeyPrefix("Token"); - - FlowcontrolApiserverV1beta3Api apiInstance = new FlowcontrolApiserverV1beta3Api(defaultClient); - String name = "name_example"; // String | name of the PriorityLevelConfiguration - V1beta3PriorityLevelConfiguration body = new V1beta3PriorityLevelConfiguration(); // V1beta3PriorityLevelConfiguration | - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. - 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 fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. - try { - V1beta3PriorityLevelConfiguration result = apiInstance.replacePriorityLevelConfigurationStatus(name, body, pretty, dryRun, fieldManager, fieldValidation); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling FlowcontrolApiserverV1beta3Api#replacePriorityLevelConfigurationStatus"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } - } -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the PriorityLevelConfiguration | - **body** | [**V1beta3PriorityLevelConfiguration**](V1beta3PriorityLevelConfiguration.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [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] - **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] - **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] - -### Return type - -[**V1beta3PriorityLevelConfiguration**](V1beta3PriorityLevelConfiguration.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | OK | - | -**201** | Created | - | -**401** | Unauthorized | - | - diff --git a/kubernetes/docs/FlowcontrolV1Subject.md b/kubernetes/docs/FlowcontrolV1Subject.md new file mode 100644 index 0000000000..2a7cbe1c52 --- /dev/null +++ b/kubernetes/docs/FlowcontrolV1Subject.md @@ -0,0 +1,16 @@ + + +# FlowcontrolV1Subject + +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. +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**group** | [**V1GroupSubject**](V1GroupSubject.md) | | [optional] +**kind** | **String** | `kind` indicates which one of the other fields is non-empty. Required | +**serviceAccount** | [**V1ServiceAccountSubject**](V1ServiceAccountSubject.md) | | [optional] +**user** | [**V1UserSubject**](V1UserSubject.md) | | [optional] + + + diff --git a/kubernetes/docs/InternalApiserverV1alpha1Api.md b/kubernetes/docs/InternalApiserverV1alpha1Api.md index 36b7b576e9..2ff55ae2a6 100644 --- a/kubernetes/docs/InternalApiserverV1alpha1Api.md +++ b/kubernetes/docs/InternalApiserverV1alpha1Api.md @@ -48,7 +48,7 @@ public class Example { InternalApiserverV1alpha1Api apiInstance = new InternalApiserverV1alpha1Api(defaultClient); V1alpha1StorageVersion body = new V1alpha1StorageVersion(); // V1alpha1StorageVersion | - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). 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 fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. @@ -71,7 +71,7 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **body** | [**V1alpha1StorageVersion**](V1alpha1StorageVersion.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] @@ -87,7 +87,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -99,7 +99,7 @@ Name | Type | Description | Notes # **deleteCollectionStorageVersion** -> V1Status deleteCollectionStorageVersion(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body) +> V1Status deleteCollectionStorageVersion(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body) @@ -127,11 +127,12 @@ public class Example { //BearerToken.setApiKeyPrefix("Token"); InternalApiserverV1alpha1Api apiInstance = new InternalApiserverV1alpha1Api(defaultClient); - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). 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. 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. Integer gracePeriodSeconds = 56; // Integer | 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. + Boolean ignoreStoreReadErrorWithClusterBreakingPotential = true; // Boolean | if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. 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. @@ -142,7 +143,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. V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | try { - V1Status result = apiInstance.deleteCollectionStorageVersion(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); + V1Status result = apiInstance.deleteCollectionStorageVersion(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling InternalApiserverV1alpha1Api#deleteCollectionStorageVersion"); @@ -159,11 +160,12 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] **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] **gracePeriodSeconds** | **Integer**| 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. | [optional] + **ignoreStoreReadErrorWithClusterBreakingPotential** | **Boolean**| if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it | [optional] **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] **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] @@ -185,7 +187,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -195,7 +197,7 @@ Name | Type | Description | Notes # **deleteStorageVersion** -> V1Status deleteStorageVersion(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body) +> V1Status deleteStorageVersion(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body) @@ -224,14 +226,15 @@ public class Example { InternalApiserverV1alpha1Api apiInstance = new InternalApiserverV1alpha1Api(defaultClient); String name = "name_example"; // String | name of the StorageVersion - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). 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 Integer gracePeriodSeconds = 56; // Integer | 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. + Boolean ignoreStoreReadErrorWithClusterBreakingPotential = true; // Boolean | if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it 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. 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. V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | try { - V1Status result = apiInstance.deleteStorageVersion(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body); + V1Status result = apiInstance.deleteStorageVersion(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling InternalApiserverV1alpha1Api#deleteStorageVersion"); @@ -249,9 +252,10 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **String**| name of the StorageVersion | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] **gracePeriodSeconds** | **Integer**| 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. | [optional] + **ignoreStoreReadErrorWithClusterBreakingPotential** | **Boolean**| if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it | [optional] **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. 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. | [optional] **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] @@ -267,7 +271,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -334,7 +338,7 @@ This endpoint does not need any parameter. ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -372,7 +376,7 @@ public class Example { //BearerToken.setApiKeyPrefix("Token"); InternalApiserverV1alpha1Api apiInstance = new InternalApiserverV1alpha1Api(defaultClient); - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). 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. 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. String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. @@ -401,7 +405,7 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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. | [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] **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] @@ -424,7 +428,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch, application/cbor-seq ### HTTP response details | Status code | Description | Response headers | @@ -464,7 +468,7 @@ public class Example { InternalApiserverV1alpha1Api apiInstance = new InternalApiserverV1alpha1Api(defaultClient); String name = "name_example"; // String | name of the StorageVersion V1Patch body = new V1Patch(); // V1Patch | - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). 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 fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. @@ -489,7 +493,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **String**| name of the StorageVersion | **body** | **V1Patch**| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] @@ -506,7 +510,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -547,7 +551,7 @@ public class Example { InternalApiserverV1alpha1Api apiInstance = new InternalApiserverV1alpha1Api(defaultClient); String name = "name_example"; // String | name of the StorageVersion V1Patch body = new V1Patch(); // V1Patch | - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). 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 fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. @@ -572,7 +576,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **String**| name of the StorageVersion | **body** | **V1Patch**| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] @@ -589,7 +593,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -629,7 +633,7 @@ public class Example { InternalApiserverV1alpha1Api apiInstance = new InternalApiserverV1alpha1Api(defaultClient); String name = "name_example"; // String | name of the StorageVersion - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). try { V1alpha1StorageVersion result = apiInstance.readStorageVersion(name, pretty); System.out.println(result); @@ -649,7 +653,7 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **String**| name of the StorageVersion | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] ### Return type @@ -662,7 +666,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -701,7 +705,7 @@ public class Example { InternalApiserverV1alpha1Api apiInstance = new InternalApiserverV1alpha1Api(defaultClient); String name = "name_example"; // String | name of the StorageVersion - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). try { V1alpha1StorageVersion result = apiInstance.readStorageVersionStatus(name, pretty); System.out.println(result); @@ -721,7 +725,7 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **String**| name of the StorageVersion | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] ### Return type @@ -734,7 +738,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -774,7 +778,7 @@ public class Example { InternalApiserverV1alpha1Api apiInstance = new InternalApiserverV1alpha1Api(defaultClient); String name = "name_example"; // String | name of the StorageVersion V1alpha1StorageVersion body = new V1alpha1StorageVersion(); // V1alpha1StorageVersion | - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). 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 fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. @@ -798,7 +802,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **String**| name of the StorageVersion | **body** | [**V1alpha1StorageVersion**](V1alpha1StorageVersion.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] @@ -814,7 +818,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -855,7 +859,7 @@ public class Example { InternalApiserverV1alpha1Api apiInstance = new InternalApiserverV1alpha1Api(defaultClient); String name = "name_example"; // String | name of the StorageVersion V1alpha1StorageVersion body = new V1alpha1StorageVersion(); // V1alpha1StorageVersion | - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). 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 fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. @@ -879,7 +883,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **String**| name of the StorageVersion | **body** | [**V1alpha1StorageVersion**](V1alpha1StorageVersion.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] @@ -895,7 +899,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | diff --git a/kubernetes/docs/NetworkingV1Api.md b/kubernetes/docs/NetworkingV1Api.md index 950cf5d032..301e01a8d4 100644 --- a/kubernetes/docs/NetworkingV1Api.md +++ b/kubernetes/docs/NetworkingV1Api.md @@ -4,35 +4,132 @@ All URIs are relative to *http://localhost* Method | HTTP request | Description ------------- | ------------- | ------------- +[**createIPAddress**](NetworkingV1Api.md#createIPAddress) | **POST** /apis/networking.k8s.io/v1/ipaddresses | [**createIngressClass**](NetworkingV1Api.md#createIngressClass) | **POST** /apis/networking.k8s.io/v1/ingressclasses | [**createNamespacedIngress**](NetworkingV1Api.md#createNamespacedIngress) | **POST** /apis/networking.k8s.io/v1/namespaces/{namespace}/ingresses | [**createNamespacedNetworkPolicy**](NetworkingV1Api.md#createNamespacedNetworkPolicy) | **POST** /apis/networking.k8s.io/v1/namespaces/{namespace}/networkpolicies | +[**createServiceCIDR**](NetworkingV1Api.md#createServiceCIDR) | **POST** /apis/networking.k8s.io/v1/servicecidrs | +[**deleteCollectionIPAddress**](NetworkingV1Api.md#deleteCollectionIPAddress) | **DELETE** /apis/networking.k8s.io/v1/ipaddresses | [**deleteCollectionIngressClass**](NetworkingV1Api.md#deleteCollectionIngressClass) | **DELETE** /apis/networking.k8s.io/v1/ingressclasses | [**deleteCollectionNamespacedIngress**](NetworkingV1Api.md#deleteCollectionNamespacedIngress) | **DELETE** /apis/networking.k8s.io/v1/namespaces/{namespace}/ingresses | [**deleteCollectionNamespacedNetworkPolicy**](NetworkingV1Api.md#deleteCollectionNamespacedNetworkPolicy) | **DELETE** /apis/networking.k8s.io/v1/namespaces/{namespace}/networkpolicies | +[**deleteCollectionServiceCIDR**](NetworkingV1Api.md#deleteCollectionServiceCIDR) | **DELETE** /apis/networking.k8s.io/v1/servicecidrs | +[**deleteIPAddress**](NetworkingV1Api.md#deleteIPAddress) | **DELETE** /apis/networking.k8s.io/v1/ipaddresses/{name} | [**deleteIngressClass**](NetworkingV1Api.md#deleteIngressClass) | **DELETE** /apis/networking.k8s.io/v1/ingressclasses/{name} | [**deleteNamespacedIngress**](NetworkingV1Api.md#deleteNamespacedIngress) | **DELETE** /apis/networking.k8s.io/v1/namespaces/{namespace}/ingresses/{name} | [**deleteNamespacedNetworkPolicy**](NetworkingV1Api.md#deleteNamespacedNetworkPolicy) | **DELETE** /apis/networking.k8s.io/v1/namespaces/{namespace}/networkpolicies/{name} | +[**deleteServiceCIDR**](NetworkingV1Api.md#deleteServiceCIDR) | **DELETE** /apis/networking.k8s.io/v1/servicecidrs/{name} | [**getAPIResources**](NetworkingV1Api.md#getAPIResources) | **GET** /apis/networking.k8s.io/v1/ | +[**listIPAddress**](NetworkingV1Api.md#listIPAddress) | **GET** /apis/networking.k8s.io/v1/ipaddresses | [**listIngressClass**](NetworkingV1Api.md#listIngressClass) | **GET** /apis/networking.k8s.io/v1/ingressclasses | [**listIngressForAllNamespaces**](NetworkingV1Api.md#listIngressForAllNamespaces) | **GET** /apis/networking.k8s.io/v1/ingresses | [**listNamespacedIngress**](NetworkingV1Api.md#listNamespacedIngress) | **GET** /apis/networking.k8s.io/v1/namespaces/{namespace}/ingresses | [**listNamespacedNetworkPolicy**](NetworkingV1Api.md#listNamespacedNetworkPolicy) | **GET** /apis/networking.k8s.io/v1/namespaces/{namespace}/networkpolicies | [**listNetworkPolicyForAllNamespaces**](NetworkingV1Api.md#listNetworkPolicyForAllNamespaces) | **GET** /apis/networking.k8s.io/v1/networkpolicies | +[**listServiceCIDR**](NetworkingV1Api.md#listServiceCIDR) | **GET** /apis/networking.k8s.io/v1/servicecidrs | +[**patchIPAddress**](NetworkingV1Api.md#patchIPAddress) | **PATCH** /apis/networking.k8s.io/v1/ipaddresses/{name} | [**patchIngressClass**](NetworkingV1Api.md#patchIngressClass) | **PATCH** /apis/networking.k8s.io/v1/ingressclasses/{name} | [**patchNamespacedIngress**](NetworkingV1Api.md#patchNamespacedIngress) | **PATCH** /apis/networking.k8s.io/v1/namespaces/{namespace}/ingresses/{name} | [**patchNamespacedIngressStatus**](NetworkingV1Api.md#patchNamespacedIngressStatus) | **PATCH** /apis/networking.k8s.io/v1/namespaces/{namespace}/ingresses/{name}/status | [**patchNamespacedNetworkPolicy**](NetworkingV1Api.md#patchNamespacedNetworkPolicy) | **PATCH** /apis/networking.k8s.io/v1/namespaces/{namespace}/networkpolicies/{name} | +[**patchServiceCIDR**](NetworkingV1Api.md#patchServiceCIDR) | **PATCH** /apis/networking.k8s.io/v1/servicecidrs/{name} | +[**patchServiceCIDRStatus**](NetworkingV1Api.md#patchServiceCIDRStatus) | **PATCH** /apis/networking.k8s.io/v1/servicecidrs/{name}/status | +[**readIPAddress**](NetworkingV1Api.md#readIPAddress) | **GET** /apis/networking.k8s.io/v1/ipaddresses/{name} | [**readIngressClass**](NetworkingV1Api.md#readIngressClass) | **GET** /apis/networking.k8s.io/v1/ingressclasses/{name} | [**readNamespacedIngress**](NetworkingV1Api.md#readNamespacedIngress) | **GET** /apis/networking.k8s.io/v1/namespaces/{namespace}/ingresses/{name} | [**readNamespacedIngressStatus**](NetworkingV1Api.md#readNamespacedIngressStatus) | **GET** /apis/networking.k8s.io/v1/namespaces/{namespace}/ingresses/{name}/status | [**readNamespacedNetworkPolicy**](NetworkingV1Api.md#readNamespacedNetworkPolicy) | **GET** /apis/networking.k8s.io/v1/namespaces/{namespace}/networkpolicies/{name} | +[**readServiceCIDR**](NetworkingV1Api.md#readServiceCIDR) | **GET** /apis/networking.k8s.io/v1/servicecidrs/{name} | +[**readServiceCIDRStatus**](NetworkingV1Api.md#readServiceCIDRStatus) | **GET** /apis/networking.k8s.io/v1/servicecidrs/{name}/status | +[**replaceIPAddress**](NetworkingV1Api.md#replaceIPAddress) | **PUT** /apis/networking.k8s.io/v1/ipaddresses/{name} | [**replaceIngressClass**](NetworkingV1Api.md#replaceIngressClass) | **PUT** /apis/networking.k8s.io/v1/ingressclasses/{name} | [**replaceNamespacedIngress**](NetworkingV1Api.md#replaceNamespacedIngress) | **PUT** /apis/networking.k8s.io/v1/namespaces/{namespace}/ingresses/{name} | [**replaceNamespacedIngressStatus**](NetworkingV1Api.md#replaceNamespacedIngressStatus) | **PUT** /apis/networking.k8s.io/v1/namespaces/{namespace}/ingresses/{name}/status | [**replaceNamespacedNetworkPolicy**](NetworkingV1Api.md#replaceNamespacedNetworkPolicy) | **PUT** /apis/networking.k8s.io/v1/namespaces/{namespace}/networkpolicies/{name} | +[**replaceServiceCIDR**](NetworkingV1Api.md#replaceServiceCIDR) | **PUT** /apis/networking.k8s.io/v1/servicecidrs/{name} | +[**replaceServiceCIDRStatus**](NetworkingV1Api.md#replaceServiceCIDRStatus) | **PUT** /apis/networking.k8s.io/v1/servicecidrs/{name}/status | + +# **createIPAddress** +> V1IPAddress createIPAddress(body, pretty, dryRun, fieldManager, fieldValidation) + + + +create an IPAddress + +### Example +```java +// Import classes: +import io.kubernetes.client.openapi.ApiClient; +import io.kubernetes.client.openapi.ApiException; +import io.kubernetes.client.openapi.Configuration; +import io.kubernetes.client.openapi.auth.*; +import io.kubernetes.client.openapi.models.*; +import io.kubernetes.client.openapi.apis.NetworkingV1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + NetworkingV1Api apiInstance = new NetworkingV1Api(defaultClient); + V1IPAddress body = new V1IPAddress(); // V1IPAddress | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + 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 fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. + try { + V1IPAddress result = apiInstance.createIPAddress(body, pretty, dryRun, fieldManager, fieldValidation); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling NetworkingV1Api#createIPAddress"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | [**V1IPAddress**](V1IPAddress.md)| | + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] + **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] + **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] + +### Return type + +[**V1IPAddress**](V1IPAddress.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + # **createIngressClass** > V1IngressClass createIngressClass(body, pretty, dryRun, fieldManager, fieldValidation) @@ -64,7 +161,7 @@ public class Example { NetworkingV1Api apiInstance = new NetworkingV1Api(defaultClient); V1IngressClass body = new V1IngressClass(); // V1IngressClass | - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). 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 fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. @@ -87,7 +184,7 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **body** | [**V1IngressClass**](V1IngressClass.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] @@ -103,7 +200,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -145,7 +242,7 @@ public class Example { NetworkingV1Api apiInstance = new NetworkingV1Api(defaultClient); String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects V1Ingress body = new V1Ingress(); // V1Ingress | - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). 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 fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. @@ -169,7 +266,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **namespace** | **String**| object name and auth scope, such as for teams and projects | **body** | [**V1Ingress**](V1Ingress.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] @@ -185,7 +282,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -227,7 +324,7 @@ public class Example { NetworkingV1Api apiInstance = new NetworkingV1Api(defaultClient); String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects V1NetworkPolicy body = new V1NetworkPolicy(); // V1NetworkPolicy | - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). 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 fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. @@ -251,7 +348,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **namespace** | **String**| object name and auth scope, such as for teams and projects | **body** | [**V1NetworkPolicy**](V1NetworkPolicy.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] @@ -267,7 +364,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -277,13 +374,13 @@ Name | Type | Description | Notes **202** | Accepted | - | **401** | Unauthorized | - | - -# **deleteCollectionIngressClass** -> V1Status deleteCollectionIngressClass(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body) + +# **createServiceCIDR** +> V1ServiceCIDR createServiceCIDR(body, pretty, dryRun, fieldManager, fieldValidation) -delete collection of IngressClass +create a ServiceCIDR ### Example ```java @@ -307,25 +404,16 @@ public class Example { //BearerToken.setApiKeyPrefix("Token"); NetworkingV1Api apiInstance = new NetworkingV1Api(defaultClient); - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. - 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. + V1ServiceCIDR body = new V1ServiceCIDR(); // V1ServiceCIDR | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). 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. - Integer gracePeriodSeconds = 56; // Integer | 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. - String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. - Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. - 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. 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. - String resourceVersion = "resourceVersion_example"; // String | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset - String resourceVersionMatch = "resourceVersionMatch_example"; // String | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset - Boolean sendInitialEvents = true; // Boolean | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. - Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. - V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | + String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. try { - V1Status result = apiInstance.deleteCollectionIngressClass(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); + V1ServiceCIDR result = apiInstance.createServiceCIDR(body, pretty, dryRun, fieldManager, fieldValidation); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling NetworkingV1Api#deleteCollectionIngressClass"); + System.err.println("Exception when calling NetworkingV1Api#createServiceCIDR"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -339,24 +427,15 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **pretty** | **String**| If 'true', then the output is pretty printed. | [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] + **body** | [**V1ServiceCIDR**](V1ServiceCIDR.md)| | + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] - **gracePeriodSeconds** | **Integer**| 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. | [optional] - **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] - **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. 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. | [optional] - **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] - **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] - **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] - **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] - **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] + **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] + **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] ### Return type -[**V1Status**](V1Status.md) +[**V1ServiceCIDR**](V1ServiceCIDR.md) ### Authorization @@ -365,21 +444,23 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | OK | - | +**201** | Created | - | +**202** | Accepted | - | **401** | Unauthorized | - | - -# **deleteCollectionNamespacedIngress** -> V1Status deleteCollectionNamespacedIngress(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body) + +# **deleteCollectionIPAddress** +> V1Status deleteCollectionIPAddress(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body) -delete collection of Ingress +delete collection of IPAddress ### Example ```java @@ -403,12 +484,12 @@ public class Example { //BearerToken.setApiKeyPrefix("Token"); NetworkingV1Api apiInstance = new NetworkingV1Api(defaultClient); - String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). 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. 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. Integer gracePeriodSeconds = 56; // Integer | 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. + Boolean ignoreStoreReadErrorWithClusterBreakingPotential = true; // Boolean | if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. 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. @@ -419,10 +500,10 @@ 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. V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | try { - V1Status result = apiInstance.deleteCollectionNamespacedIngress(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); + V1Status result = apiInstance.deleteCollectionIPAddress(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling NetworkingV1Api#deleteCollectionNamespacedIngress"); + System.err.println("Exception when calling NetworkingV1Api#deleteCollectionIPAddress"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -436,12 +517,12 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] **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] **gracePeriodSeconds** | **Integer**| 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. | [optional] + **ignoreStoreReadErrorWithClusterBreakingPotential** | **Boolean**| if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it | [optional] **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] **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] @@ -463,7 +544,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -471,13 +552,13 @@ Name | Type | Description | Notes **200** | OK | - | **401** | Unauthorized | - | - -# **deleteCollectionNamespacedNetworkPolicy** -> V1Status deleteCollectionNamespacedNetworkPolicy(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body) + +# **deleteCollectionIngressClass** +> V1Status deleteCollectionIngressClass(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body) -delete collection of NetworkPolicy +delete collection of IngressClass ### Example ```java @@ -501,12 +582,12 @@ public class Example { //BearerToken.setApiKeyPrefix("Token"); NetworkingV1Api apiInstance = new NetworkingV1Api(defaultClient); - String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). 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. 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. Integer gracePeriodSeconds = 56; // Integer | 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. + Boolean ignoreStoreReadErrorWithClusterBreakingPotential = true; // Boolean | if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. 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. @@ -517,10 +598,10 @@ 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. V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | try { - V1Status result = apiInstance.deleteCollectionNamespacedNetworkPolicy(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); + V1Status result = apiInstance.deleteCollectionIngressClass(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling NetworkingV1Api#deleteCollectionNamespacedNetworkPolicy"); + System.err.println("Exception when calling NetworkingV1Api#deleteCollectionIngressClass"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -534,12 +615,12 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] **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] **gracePeriodSeconds** | **Integer**| 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. | [optional] + **ignoreStoreReadErrorWithClusterBreakingPotential** | **Boolean**| if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it | [optional] **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] **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] @@ -561,7 +642,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -569,13 +650,13 @@ Name | Type | Description | Notes **200** | OK | - | **401** | Unauthorized | - | - -# **deleteIngressClass** -> V1Status deleteIngressClass(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body) + +# **deleteCollectionNamespacedIngress** +> V1Status deleteCollectionNamespacedIngress(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body) -delete an IngressClass +delete collection of Ingress ### Example ```java @@ -599,18 +680,27 @@ public class Example { //BearerToken.setApiKeyPrefix("Token"); NetworkingV1Api apiInstance = new NetworkingV1Api(defaultClient); - String name = "name_example"; // String | name of the IngressClass - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + 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. 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. Integer gracePeriodSeconds = 56; // Integer | 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. + Boolean ignoreStoreReadErrorWithClusterBreakingPotential = true; // Boolean | if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it + String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. + Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. 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. 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. + String resourceVersion = "resourceVersion_example"; // String | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + String resourceVersionMatch = "resourceVersionMatch_example"; // String | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + Boolean sendInitialEvents = true; // Boolean | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | try { - V1Status result = apiInstance.deleteIngressClass(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body); + V1Status result = apiInstance.deleteCollectionNamespacedIngress(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling NetworkingV1Api#deleteIngressClass"); + System.err.println("Exception when calling NetworkingV1Api#deleteCollectionNamespacedIngress"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -624,12 +714,21 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the IngressClass | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **namespace** | **String**| object name and auth scope, such as for teams and projects | + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] **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] **gracePeriodSeconds** | **Integer**| 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. | [optional] + **ignoreStoreReadErrorWithClusterBreakingPotential** | **Boolean**| if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it | [optional] + **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] + **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] **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. 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. | [optional] + **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] + **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] + **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] + **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] ### Return type @@ -643,22 +742,21 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | OK | - | -**202** | Accepted | - | **401** | Unauthorized | - | - -# **deleteNamespacedIngress** -> V1Status deleteNamespacedIngress(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body) + +# **deleteCollectionNamespacedNetworkPolicy** +> V1Status deleteCollectionNamespacedNetworkPolicy(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body) -delete an Ingress +delete collection of NetworkPolicy ### Example ```java @@ -682,19 +780,27 @@ public class Example { //BearerToken.setApiKeyPrefix("Token"); NetworkingV1Api apiInstance = new NetworkingV1Api(defaultClient); - String name = "name_example"; // String | name of the Ingress String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + 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. 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. Integer gracePeriodSeconds = 56; // Integer | 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. + Boolean ignoreStoreReadErrorWithClusterBreakingPotential = true; // Boolean | if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it + String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. + Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. 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. 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. + String resourceVersion = "resourceVersion_example"; // String | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + String resourceVersionMatch = "resourceVersionMatch_example"; // String | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + Boolean sendInitialEvents = true; // Boolean | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | try { - V1Status result = apiInstance.deleteNamespacedIngress(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body); + V1Status result = apiInstance.deleteCollectionNamespacedNetworkPolicy(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling NetworkingV1Api#deleteNamespacedIngress"); + System.err.println("Exception when calling NetworkingV1Api#deleteCollectionNamespacedNetworkPolicy"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -708,13 +814,21 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the Ingress | **namespace** | **String**| object name and auth scope, such as for teams and projects | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] **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] **gracePeriodSeconds** | **Integer**| 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. | [optional] + **ignoreStoreReadErrorWithClusterBreakingPotential** | **Boolean**| if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it | [optional] + **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] + **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] **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. 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. | [optional] + **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] + **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] + **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] + **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] ### Return type @@ -728,22 +842,21 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | OK | - | -**202** | Accepted | - | **401** | Unauthorized | - | - -# **deleteNamespacedNetworkPolicy** -> V1Status deleteNamespacedNetworkPolicy(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body) + +# **deleteCollectionServiceCIDR** +> V1Status deleteCollectionServiceCIDR(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body) -delete a NetworkPolicy +delete collection of ServiceCIDR ### Example ```java @@ -767,19 +880,26 @@ public class Example { //BearerToken.setApiKeyPrefix("Token"); NetworkingV1Api apiInstance = new NetworkingV1Api(defaultClient); - String name = "name_example"; // String | name of the NetworkPolicy - String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + 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. 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. Integer gracePeriodSeconds = 56; // Integer | 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. + Boolean ignoreStoreReadErrorWithClusterBreakingPotential = true; // Boolean | if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it + String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. + Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. 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. 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. + String resourceVersion = "resourceVersion_example"; // String | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + String resourceVersionMatch = "resourceVersionMatch_example"; // String | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + Boolean sendInitialEvents = true; // Boolean | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | try { - V1Status result = apiInstance.deleteNamespacedNetworkPolicy(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body); + V1Status result = apiInstance.deleteCollectionServiceCIDR(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling NetworkingV1Api#deleteNamespacedNetworkPolicy"); + System.err.println("Exception when calling NetworkingV1Api#deleteCollectionServiceCIDR"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -793,13 +913,20 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the NetworkPolicy | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] **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] **gracePeriodSeconds** | **Integer**| 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. | [optional] + **ignoreStoreReadErrorWithClusterBreakingPotential** | **Boolean**| if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it | [optional] + **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] + **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] **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. 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. | [optional] + **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] + **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] + **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] + **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] ### Return type @@ -813,22 +940,21 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | OK | - | -**202** | Accepted | - | **401** | Unauthorized | - | - -# **getAPIResources** -> V1APIResourceList getAPIResources() + +# **deleteIPAddress** +> V1Status deleteIPAddress(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body) -get available resources +delete an IPAddress ### Example ```java @@ -852,11 +978,19 @@ public class Example { //BearerToken.setApiKeyPrefix("Token"); NetworkingV1Api apiInstance = new NetworkingV1Api(defaultClient); + String name = "name_example"; // String | name of the IPAddress + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + 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 + Integer gracePeriodSeconds = 56; // Integer | 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. + Boolean ignoreStoreReadErrorWithClusterBreakingPotential = true; // Boolean | if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it + 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. 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. + V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | try { - V1APIResourceList result = apiInstance.getAPIResources(); + V1Status result = apiInstance.deleteIPAddress(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling NetworkingV1Api#getAPIResources"); + System.err.println("Exception when calling NetworkingV1Api#deleteIPAddress"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -867,11 +1001,21 @@ public class Example { ``` ### Parameters -This endpoint does not need any parameter. + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **String**| name of the IPAddress | + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] + **gracePeriodSeconds** | **Integer**| 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. | [optional] + **ignoreStoreReadErrorWithClusterBreakingPotential** | **Boolean**| if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it | [optional] + **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. 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. | [optional] + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] ### Return type -[**V1APIResourceList**](V1APIResourceList.md) +[**V1Status**](V1Status.md) ### Authorization @@ -879,22 +1023,23 @@ This endpoint does not need any parameter. ### HTTP request headers - - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Content-Type**: application/json + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | OK | - | +**202** | Accepted | - | **401** | Unauthorized | - | - -# **listIngressClass** -> V1IngressClassList listIngressClass(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch) + +# **deleteIngressClass** +> V1Status deleteIngressClass(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body) -list or watch objects of kind IngressClass +delete an IngressClass ### Example ```java @@ -918,22 +1063,19 @@ public class Example { //BearerToken.setApiKeyPrefix("Token"); NetworkingV1Api apiInstance = new NetworkingV1Api(defaultClient); - 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. - 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. - String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. - String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. - Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. - String resourceVersion = "resourceVersion_example"; // String | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset - String resourceVersionMatch = "resourceVersionMatch_example"; // String | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset - Boolean sendInitialEvents = true; // Boolean | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. - 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. Specify resourceVersion. + String name = "name_example"; // String | name of the IngressClass + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + 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 + Integer gracePeriodSeconds = 56; // Integer | 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. + Boolean ignoreStoreReadErrorWithClusterBreakingPotential = true; // Boolean | if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it + 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. 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. + V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | try { - V1IngressClassList result = apiInstance.listIngressClass(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + V1Status result = apiInstance.deleteIngressClass(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling NetworkingV1Api#listIngressClass"); + System.err.println("Exception when calling NetworkingV1Api#deleteIngressClass"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -947,21 +1089,18 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **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. | [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] - **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] - **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] - **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] - **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] - **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] - **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + **name** | **String**| name of the IngressClass | + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] + **gracePeriodSeconds** | **Integer**| 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. | [optional] + **ignoreStoreReadErrorWithClusterBreakingPotential** | **Boolean**| if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it | [optional] + **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. 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. | [optional] + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] ### Return type -[**V1IngressClassList**](V1IngressClassList.md) +[**V1Status**](V1Status.md) ### Authorization @@ -969,22 +1108,23 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + - **Content-Type**: application/json + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | OK | - | +**202** | Accepted | - | **401** | Unauthorized | - | - -# **listIngressForAllNamespaces** -> V1IngressList listIngressForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch) + +# **deleteNamespacedIngress** +> V1Status deleteNamespacedIngress(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body) -list or watch objects of kind Ingress +delete an Ingress ### Example ```java @@ -1008,22 +1148,20 @@ public class Example { //BearerToken.setApiKeyPrefix("Token"); NetworkingV1Api apiInstance = new NetworkingV1Api(defaultClient); - 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. - 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. - String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. - String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. - Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. - String resourceVersion = "resourceVersion_example"; // String | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset - String resourceVersionMatch = "resourceVersionMatch_example"; // String | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset - Boolean sendInitialEvents = true; // Boolean | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. - 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. Specify resourceVersion. + String name = "name_example"; // String | name of the Ingress + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + 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 + Integer gracePeriodSeconds = 56; // Integer | 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. + Boolean ignoreStoreReadErrorWithClusterBreakingPotential = true; // Boolean | if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it + 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. 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. + V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | try { - V1IngressList result = apiInstance.listIngressForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + V1Status result = apiInstance.deleteNamespacedIngress(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling NetworkingV1Api#listIngressForAllNamespaces"); + System.err.println("Exception when calling NetworkingV1Api#deleteNamespacedIngress"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -1037,21 +1175,19 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **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. | [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] - **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] - **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] - **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] - **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] - **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + **name** | **String**| name of the Ingress | + **namespace** | **String**| object name and auth scope, such as for teams and projects | + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] + **gracePeriodSeconds** | **Integer**| 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. | [optional] + **ignoreStoreReadErrorWithClusterBreakingPotential** | **Boolean**| if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it | [optional] + **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. 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. | [optional] + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] ### Return type -[**V1IngressList**](V1IngressList.md) +[**V1Status**](V1Status.md) ### Authorization @@ -1059,22 +1195,23 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + - **Content-Type**: application/json + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | OK | - | +**202** | Accepted | - | **401** | Unauthorized | - | - -# **listNamespacedIngress** -> V1IngressList listNamespacedIngress(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch) + +# **deleteNamespacedNetworkPolicy** +> V1Status deleteNamespacedNetworkPolicy(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body) -list or watch objects of kind Ingress +delete a NetworkPolicy ### Example ```java @@ -1098,23 +1235,20 @@ public class Example { //BearerToken.setApiKeyPrefix("Token"); NetworkingV1Api apiInstance = new NetworkingV1Api(defaultClient); + String name = "name_example"; // String | name of the NetworkPolicy String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - 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. - 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. - String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. - String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. - Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. - String resourceVersion = "resourceVersion_example"; // String | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset - String resourceVersionMatch = "resourceVersionMatch_example"; // String | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset - Boolean sendInitialEvents = true; // Boolean | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. - 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. Specify resourceVersion. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + 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 + Integer gracePeriodSeconds = 56; // Integer | 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. + Boolean ignoreStoreReadErrorWithClusterBreakingPotential = true; // Boolean | if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it + 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. 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. + V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | try { - V1IngressList result = apiInstance.listNamespacedIngress(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + V1Status result = apiInstance.deleteNamespacedNetworkPolicy(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling NetworkingV1Api#listNamespacedIngress"); + System.err.println("Exception when calling NetworkingV1Api#deleteNamespacedNetworkPolicy"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -1128,22 +1262,19 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- + **name** | **String**| name of the NetworkPolicy | **namespace** | **String**| object name and auth scope, such as for teams and projects | - **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. | [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] - **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] - **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] - **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] - **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] - **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] - **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] + **gracePeriodSeconds** | **Integer**| 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. | [optional] + **ignoreStoreReadErrorWithClusterBreakingPotential** | **Boolean**| if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it | [optional] + **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. 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. | [optional] + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] ### Return type -[**V1IngressList**](V1IngressList.md) +[**V1Status**](V1Status.md) ### Authorization @@ -1151,22 +1282,23 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + - **Content-Type**: application/json + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | OK | - | +**202** | Accepted | - | **401** | Unauthorized | - | - -# **listNamespacedNetworkPolicy** -> V1NetworkPolicyList listNamespacedNetworkPolicy(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch) + +# **deleteServiceCIDR** +> V1Status deleteServiceCIDR(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body) -list or watch objects of kind NetworkPolicy +delete a ServiceCIDR ### Example ```java @@ -1190,23 +1322,19 @@ public class Example { //BearerToken.setApiKeyPrefix("Token"); NetworkingV1Api apiInstance = new NetworkingV1Api(defaultClient); - String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - 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. - 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. - String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. - String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. - Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. - String resourceVersion = "resourceVersion_example"; // String | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset - String resourceVersionMatch = "resourceVersionMatch_example"; // String | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset - Boolean sendInitialEvents = true; // Boolean | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. - 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. Specify resourceVersion. + String name = "name_example"; // String | name of the ServiceCIDR + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + 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 + Integer gracePeriodSeconds = 56; // Integer | 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. + Boolean ignoreStoreReadErrorWithClusterBreakingPotential = true; // Boolean | if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it + 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. 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. + V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | try { - V1NetworkPolicyList result = apiInstance.listNamespacedNetworkPolicy(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + V1Status result = apiInstance.deleteServiceCIDR(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling NetworkingV1Api#listNamespacedNetworkPolicy"); + System.err.println("Exception when calling NetworkingV1Api#deleteServiceCIDR"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -1220,22 +1348,85 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **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. | [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] - **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] - **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] - **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] - **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] - **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] - **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + **name** | **String**| name of the ServiceCIDR | + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] + **gracePeriodSeconds** | **Integer**| 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. | [optional] + **ignoreStoreReadErrorWithClusterBreakingPotential** | **Boolean**| if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it | [optional] + **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. 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. | [optional] + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] ### Return type -[**V1NetworkPolicyList**](V1NetworkPolicyList.md) +[**V1Status**](V1Status.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + + +# **getAPIResources** +> V1APIResourceList getAPIResources() + + + +get available resources + +### Example +```java +// Import classes: +import io.kubernetes.client.openapi.ApiClient; +import io.kubernetes.client.openapi.ApiException; +import io.kubernetes.client.openapi.Configuration; +import io.kubernetes.client.openapi.auth.*; +import io.kubernetes.client.openapi.models.*; +import io.kubernetes.client.openapi.apis.NetworkingV1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + NetworkingV1Api apiInstance = new NetworkingV1Api(defaultClient); + try { + V1APIResourceList result = apiInstance.getAPIResources(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling NetworkingV1Api#getAPIResources"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters +This endpoint does not need any parameter. + +### Return type + +[**V1APIResourceList**](V1APIResourceList.md) ### Authorization @@ -1244,7 +1435,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -1252,13 +1443,13 @@ Name | Type | Description | Notes **200** | OK | - | **401** | Unauthorized | - | - -# **listNetworkPolicyForAllNamespaces** -> V1NetworkPolicyList listNetworkPolicyForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch) + +# **listIPAddress** +> V1IPAddressList listIPAddress(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch) -list or watch objects of kind NetworkPolicy +list or watch objects of kind IPAddress ### Example ```java @@ -1282,22 +1473,22 @@ public class Example { //BearerToken.setApiKeyPrefix("Token"); NetworkingV1Api apiInstance = new NetworkingV1Api(defaultClient); + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). 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. 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. String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. String resourceVersion = "resourceVersion_example"; // String | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset String resourceVersionMatch = "resourceVersionMatch_example"; // String | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset Boolean sendInitialEvents = true; // Boolean | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. 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. Specify resourceVersion. try { - V1NetworkPolicyList result = apiInstance.listNetworkPolicyForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + V1IPAddressList result = apiInstance.listIPAddress(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling NetworkingV1Api#listNetworkPolicyForAllNamespaces"); + System.err.println("Exception when calling NetworkingV1Api#listIPAddress"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -1311,12 +1502,12 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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. | [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] **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] @@ -1325,7 +1516,7 @@ Name | Type | Description | Notes ### Return type -[**V1NetworkPolicyList**](V1NetworkPolicyList.md) +[**V1IPAddressList**](V1IPAddressList.md) ### Authorization @@ -1334,7 +1525,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch, application/cbor-seq ### HTTP response details | Status code | Description | Response headers | @@ -1342,13 +1533,13 @@ Name | Type | Description | Notes **200** | OK | - | **401** | Unauthorized | - | - -# **patchIngressClass** -> V1IngressClass patchIngressClass(name, body, pretty, dryRun, fieldManager, fieldValidation, force) + +# **listIngressClass** +> V1IngressClassList listIngressClass(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch) -partially update the specified IngressClass +list or watch objects of kind IngressClass ### Example ```java @@ -1372,18 +1563,1289 @@ public class Example { //BearerToken.setApiKeyPrefix("Token"); NetworkingV1Api apiInstance = new NetworkingV1Api(defaultClient); - String name = "name_example"; // String | name of the IngressClass - V1Patch body = new V1Patch(); // V1Patch | - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. - 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 fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). - String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. - Boolean force = true; // Boolean | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + 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. + 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. + String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. + String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. + Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + String resourceVersion = "resourceVersion_example"; // String | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + String resourceVersionMatch = "resourceVersionMatch_example"; // String | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + Boolean sendInitialEvents = true; // Boolean | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + 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. Specify resourceVersion. try { - V1IngressClass result = apiInstance.patchIngressClass(name, body, pretty, dryRun, fieldManager, fieldValidation, force); + V1IngressClassList result = apiInstance.listIngressClass(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling NetworkingV1Api#listIngressClass"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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. | [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] + **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] + **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] + **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] + **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] + **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] + **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] + **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + +### Return type + +[**V1IngressClassList**](V1IngressClassList.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch, application/cbor-seq + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + + +# **listIngressForAllNamespaces** +> V1IngressList listIngressForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch) + + + +list or watch objects of kind Ingress + +### Example +```java +// Import classes: +import io.kubernetes.client.openapi.ApiClient; +import io.kubernetes.client.openapi.ApiException; +import io.kubernetes.client.openapi.Configuration; +import io.kubernetes.client.openapi.auth.*; +import io.kubernetes.client.openapi.models.*; +import io.kubernetes.client.openapi.apis.NetworkingV1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + NetworkingV1Api apiInstance = new NetworkingV1Api(defaultClient); + 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. + 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. + String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. + String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. + Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + String resourceVersion = "resourceVersion_example"; // String | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + String resourceVersionMatch = "resourceVersionMatch_example"; // String | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + Boolean sendInitialEvents = true; // Boolean | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + 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. Specify resourceVersion. + try { + V1IngressList result = apiInstance.listIngressForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling NetworkingV1Api#listIngressForAllNamespaces"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **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. | [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] + **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] + **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] + **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] + **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] + **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] + **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] + **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + +### Return type + +[**V1IngressList**](V1IngressList.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch, application/cbor-seq + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + + +# **listNamespacedIngress** +> V1IngressList listNamespacedIngress(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch) + + + +list or watch objects of kind Ingress + +### Example +```java +// Import classes: +import io.kubernetes.client.openapi.ApiClient; +import io.kubernetes.client.openapi.ApiException; +import io.kubernetes.client.openapi.Configuration; +import io.kubernetes.client.openapi.auth.*; +import io.kubernetes.client.openapi.models.*; +import io.kubernetes.client.openapi.apis.NetworkingV1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + NetworkingV1Api apiInstance = new NetworkingV1Api(defaultClient); + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + 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. + 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. + String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. + String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. + Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + String resourceVersion = "resourceVersion_example"; // String | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + String resourceVersionMatch = "resourceVersionMatch_example"; // String | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + Boolean sendInitialEvents = true; // Boolean | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + 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. Specify resourceVersion. + try { + V1IngressList result = apiInstance.listNamespacedIngress(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling NetworkingV1Api#listNamespacedIngress"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **namespace** | **String**| object name and auth scope, such as for teams and projects | + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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. | [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] + **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] + **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] + **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] + **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] + **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] + **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] + **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + +### Return type + +[**V1IngressList**](V1IngressList.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch, application/cbor-seq + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + + +# **listNamespacedNetworkPolicy** +> V1NetworkPolicyList listNamespacedNetworkPolicy(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch) + + + +list or watch objects of kind NetworkPolicy + +### Example +```java +// Import classes: +import io.kubernetes.client.openapi.ApiClient; +import io.kubernetes.client.openapi.ApiException; +import io.kubernetes.client.openapi.Configuration; +import io.kubernetes.client.openapi.auth.*; +import io.kubernetes.client.openapi.models.*; +import io.kubernetes.client.openapi.apis.NetworkingV1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + NetworkingV1Api apiInstance = new NetworkingV1Api(defaultClient); + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + 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. + 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. + String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. + String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. + Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + String resourceVersion = "resourceVersion_example"; // String | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + String resourceVersionMatch = "resourceVersionMatch_example"; // String | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + Boolean sendInitialEvents = true; // Boolean | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + 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. Specify resourceVersion. + try { + V1NetworkPolicyList result = apiInstance.listNamespacedNetworkPolicy(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling NetworkingV1Api#listNamespacedNetworkPolicy"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **namespace** | **String**| object name and auth scope, such as for teams and projects | + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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. | [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] + **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] + **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] + **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] + **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] + **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] + **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] + **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + +### Return type + +[**V1NetworkPolicyList**](V1NetworkPolicyList.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch, application/cbor-seq + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + + +# **listNetworkPolicyForAllNamespaces** +> V1NetworkPolicyList listNetworkPolicyForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch) + + + +list or watch objects of kind NetworkPolicy + +### Example +```java +// Import classes: +import io.kubernetes.client.openapi.ApiClient; +import io.kubernetes.client.openapi.ApiException; +import io.kubernetes.client.openapi.Configuration; +import io.kubernetes.client.openapi.auth.*; +import io.kubernetes.client.openapi.models.*; +import io.kubernetes.client.openapi.apis.NetworkingV1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + NetworkingV1Api apiInstance = new NetworkingV1Api(defaultClient); + 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. + 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. + String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. + String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. + Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + String resourceVersion = "resourceVersion_example"; // String | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + String resourceVersionMatch = "resourceVersionMatch_example"; // String | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + Boolean sendInitialEvents = true; // Boolean | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + 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. Specify resourceVersion. + try { + V1NetworkPolicyList result = apiInstance.listNetworkPolicyForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling NetworkingV1Api#listNetworkPolicyForAllNamespaces"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **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. | [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] + **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] + **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] + **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] + **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] + **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] + **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] + **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + +### Return type + +[**V1NetworkPolicyList**](V1NetworkPolicyList.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch, application/cbor-seq + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + + +# **listServiceCIDR** +> V1ServiceCIDRList listServiceCIDR(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch) + + + +list or watch objects of kind ServiceCIDR + +### Example +```java +// Import classes: +import io.kubernetes.client.openapi.ApiClient; +import io.kubernetes.client.openapi.ApiException; +import io.kubernetes.client.openapi.Configuration; +import io.kubernetes.client.openapi.auth.*; +import io.kubernetes.client.openapi.models.*; +import io.kubernetes.client.openapi.apis.NetworkingV1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + NetworkingV1Api apiInstance = new NetworkingV1Api(defaultClient); + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + 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. + 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. + String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. + String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. + Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + String resourceVersion = "resourceVersion_example"; // String | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + String resourceVersionMatch = "resourceVersionMatch_example"; // String | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + Boolean sendInitialEvents = true; // Boolean | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + 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. Specify resourceVersion. + try { + V1ServiceCIDRList result = apiInstance.listServiceCIDR(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling NetworkingV1Api#listServiceCIDR"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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. | [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] + **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] + **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] + **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] + **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] + **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] + **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] + **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + +### Return type + +[**V1ServiceCIDRList**](V1ServiceCIDRList.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch, application/cbor-seq + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + + +# **patchIPAddress** +> V1IPAddress patchIPAddress(name, body, pretty, dryRun, fieldManager, fieldValidation, force) + + + +partially update the specified IPAddress + +### Example +```java +// Import classes: +import io.kubernetes.client.openapi.ApiClient; +import io.kubernetes.client.openapi.ApiException; +import io.kubernetes.client.openapi.Configuration; +import io.kubernetes.client.openapi.auth.*; +import io.kubernetes.client.openapi.models.*; +import io.kubernetes.client.openapi.apis.NetworkingV1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + NetworkingV1Api apiInstance = new NetworkingV1Api(defaultClient); + String name = "name_example"; // String | name of the IPAddress + V1Patch body = new V1Patch(); // V1Patch | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + 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 fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). + String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. + Boolean force = true; // Boolean | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. + try { + V1IPAddress result = apiInstance.patchIPAddress(name, body, pretty, dryRun, fieldManager, fieldValidation, force); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling NetworkingV1Api#patchIPAddress"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **String**| name of the IPAddress | + **body** | **V1Patch**| | + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] + **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] + **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] + **force** | **Boolean**| Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | [optional] + +### Return type + +[**V1IPAddress**](V1IPAddress.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**401** | Unauthorized | - | + + +# **patchIngressClass** +> V1IngressClass patchIngressClass(name, body, pretty, dryRun, fieldManager, fieldValidation, force) + + + +partially update the specified IngressClass + +### Example +```java +// Import classes: +import io.kubernetes.client.openapi.ApiClient; +import io.kubernetes.client.openapi.ApiException; +import io.kubernetes.client.openapi.Configuration; +import io.kubernetes.client.openapi.auth.*; +import io.kubernetes.client.openapi.models.*; +import io.kubernetes.client.openapi.apis.NetworkingV1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + NetworkingV1Api apiInstance = new NetworkingV1Api(defaultClient); + String name = "name_example"; // String | name of the IngressClass + V1Patch body = new V1Patch(); // V1Patch | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + 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 fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). + String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. + Boolean force = true; // Boolean | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. + try { + V1IngressClass result = apiInstance.patchIngressClass(name, body, pretty, dryRun, fieldManager, fieldValidation, force); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling NetworkingV1Api#patchIngressClass"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **String**| name of the IngressClass | + **body** | **V1Patch**| | + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] + **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] + **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] + **force** | **Boolean**| Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | [optional] + +### Return type + +[**V1IngressClass**](V1IngressClass.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**401** | Unauthorized | - | + + +# **patchNamespacedIngress** +> V1Ingress patchNamespacedIngress(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force) + + + +partially update the specified Ingress + +### Example +```java +// Import classes: +import io.kubernetes.client.openapi.ApiClient; +import io.kubernetes.client.openapi.ApiException; +import io.kubernetes.client.openapi.Configuration; +import io.kubernetes.client.openapi.auth.*; +import io.kubernetes.client.openapi.models.*; +import io.kubernetes.client.openapi.apis.NetworkingV1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + NetworkingV1Api apiInstance = new NetworkingV1Api(defaultClient); + String name = "name_example"; // String | name of the Ingress + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + V1Patch body = new V1Patch(); // V1Patch | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + 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 fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). + String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. + Boolean force = true; // Boolean | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. + try { + V1Ingress result = apiInstance.patchNamespacedIngress(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling NetworkingV1Api#patchNamespacedIngress"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **String**| name of the Ingress | + **namespace** | **String**| object name and auth scope, such as for teams and projects | + **body** | **V1Patch**| | + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] + **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] + **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] + **force** | **Boolean**| Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | [optional] + +### Return type + +[**V1Ingress**](V1Ingress.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**401** | Unauthorized | - | + + +# **patchNamespacedIngressStatus** +> V1Ingress patchNamespacedIngressStatus(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force) + + + +partially update status of the specified Ingress + +### Example +```java +// Import classes: +import io.kubernetes.client.openapi.ApiClient; +import io.kubernetes.client.openapi.ApiException; +import io.kubernetes.client.openapi.Configuration; +import io.kubernetes.client.openapi.auth.*; +import io.kubernetes.client.openapi.models.*; +import io.kubernetes.client.openapi.apis.NetworkingV1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + NetworkingV1Api apiInstance = new NetworkingV1Api(defaultClient); + String name = "name_example"; // String | name of the Ingress + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + V1Patch body = new V1Patch(); // V1Patch | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + 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 fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). + String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. + Boolean force = true; // Boolean | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. + try { + V1Ingress result = apiInstance.patchNamespacedIngressStatus(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling NetworkingV1Api#patchNamespacedIngressStatus"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **String**| name of the Ingress | + **namespace** | **String**| object name and auth scope, such as for teams and projects | + **body** | **V1Patch**| | + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] + **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] + **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] + **force** | **Boolean**| Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | [optional] + +### Return type + +[**V1Ingress**](V1Ingress.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**401** | Unauthorized | - | + + +# **patchNamespacedNetworkPolicy** +> V1NetworkPolicy patchNamespacedNetworkPolicy(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force) + + + +partially update the specified NetworkPolicy + +### Example +```java +// Import classes: +import io.kubernetes.client.openapi.ApiClient; +import io.kubernetes.client.openapi.ApiException; +import io.kubernetes.client.openapi.Configuration; +import io.kubernetes.client.openapi.auth.*; +import io.kubernetes.client.openapi.models.*; +import io.kubernetes.client.openapi.apis.NetworkingV1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + NetworkingV1Api apiInstance = new NetworkingV1Api(defaultClient); + String name = "name_example"; // String | name of the NetworkPolicy + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + V1Patch body = new V1Patch(); // V1Patch | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + 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 fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). + String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. + Boolean force = true; // Boolean | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. + try { + V1NetworkPolicy result = apiInstance.patchNamespacedNetworkPolicy(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling NetworkingV1Api#patchNamespacedNetworkPolicy"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **String**| name of the NetworkPolicy | + **namespace** | **String**| object name and auth scope, such as for teams and projects | + **body** | **V1Patch**| | + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] + **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] + **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] + **force** | **Boolean**| Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | [optional] + +### Return type + +[**V1NetworkPolicy**](V1NetworkPolicy.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**401** | Unauthorized | - | + + +# **patchServiceCIDR** +> V1ServiceCIDR patchServiceCIDR(name, body, pretty, dryRun, fieldManager, fieldValidation, force) + + + +partially update the specified ServiceCIDR + +### Example +```java +// Import classes: +import io.kubernetes.client.openapi.ApiClient; +import io.kubernetes.client.openapi.ApiException; +import io.kubernetes.client.openapi.Configuration; +import io.kubernetes.client.openapi.auth.*; +import io.kubernetes.client.openapi.models.*; +import io.kubernetes.client.openapi.apis.NetworkingV1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + NetworkingV1Api apiInstance = new NetworkingV1Api(defaultClient); + String name = "name_example"; // String | name of the ServiceCIDR + V1Patch body = new V1Patch(); // V1Patch | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + 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 fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). + String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. + Boolean force = true; // Boolean | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. + try { + V1ServiceCIDR result = apiInstance.patchServiceCIDR(name, body, pretty, dryRun, fieldManager, fieldValidation, force); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling NetworkingV1Api#patchServiceCIDR"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **String**| name of the ServiceCIDR | + **body** | **V1Patch**| | + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] + **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] + **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] + **force** | **Boolean**| Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | [optional] + +### Return type + +[**V1ServiceCIDR**](V1ServiceCIDR.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**401** | Unauthorized | - | + + +# **patchServiceCIDRStatus** +> V1ServiceCIDR patchServiceCIDRStatus(name, body, pretty, dryRun, fieldManager, fieldValidation, force) + + + +partially update status of the specified ServiceCIDR + +### Example +```java +// Import classes: +import io.kubernetes.client.openapi.ApiClient; +import io.kubernetes.client.openapi.ApiException; +import io.kubernetes.client.openapi.Configuration; +import io.kubernetes.client.openapi.auth.*; +import io.kubernetes.client.openapi.models.*; +import io.kubernetes.client.openapi.apis.NetworkingV1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + NetworkingV1Api apiInstance = new NetworkingV1Api(defaultClient); + String name = "name_example"; // String | name of the ServiceCIDR + V1Patch body = new V1Patch(); // V1Patch | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + 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 fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). + String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. + Boolean force = true; // Boolean | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. + try { + V1ServiceCIDR result = apiInstance.patchServiceCIDRStatus(name, body, pretty, dryRun, fieldManager, fieldValidation, force); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling NetworkingV1Api#patchServiceCIDRStatus"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **String**| name of the ServiceCIDR | + **body** | **V1Patch**| | + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] + **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] + **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] + **force** | **Boolean**| Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | [optional] + +### Return type + +[**V1ServiceCIDR**](V1ServiceCIDR.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**401** | Unauthorized | - | + + +# **readIPAddress** +> V1IPAddress readIPAddress(name, pretty) + + + +read the specified IPAddress + +### Example +```java +// Import classes: +import io.kubernetes.client.openapi.ApiClient; +import io.kubernetes.client.openapi.ApiException; +import io.kubernetes.client.openapi.Configuration; +import io.kubernetes.client.openapi.auth.*; +import io.kubernetes.client.openapi.models.*; +import io.kubernetes.client.openapi.apis.NetworkingV1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + NetworkingV1Api apiInstance = new NetworkingV1Api(defaultClient); + String name = "name_example"; // String | name of the IPAddress + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + try { + V1IPAddress result = apiInstance.readIPAddress(name, pretty); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling NetworkingV1Api#readIPAddress"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **String**| name of the IPAddress | + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] + +### Return type + +[**V1IPAddress**](V1IPAddress.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + + +# **readIngressClass** +> V1IngressClass readIngressClass(name, pretty) + + + +read the specified IngressClass + +### Example +```java +// Import classes: +import io.kubernetes.client.openapi.ApiClient; +import io.kubernetes.client.openapi.ApiException; +import io.kubernetes.client.openapi.Configuration; +import io.kubernetes.client.openapi.auth.*; +import io.kubernetes.client.openapi.models.*; +import io.kubernetes.client.openapi.apis.NetworkingV1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + NetworkingV1Api apiInstance = new NetworkingV1Api(defaultClient); + String name = "name_example"; // String | name of the IngressClass + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + try { + V1IngressClass result = apiInstance.readIngressClass(name, pretty); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling NetworkingV1Api#readIngressClass"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **String**| name of the IngressClass | + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] + +### Return type + +[**V1IngressClass**](V1IngressClass.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + + +# **readNamespacedIngress** +> V1Ingress readNamespacedIngress(name, namespace, pretty) + + + +read the specified Ingress + +### Example +```java +// Import classes: +import io.kubernetes.client.openapi.ApiClient; +import io.kubernetes.client.openapi.ApiException; +import io.kubernetes.client.openapi.Configuration; +import io.kubernetes.client.openapi.auth.*; +import io.kubernetes.client.openapi.models.*; +import io.kubernetes.client.openapi.apis.NetworkingV1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + NetworkingV1Api apiInstance = new NetworkingV1Api(defaultClient); + String name = "name_example"; // String | name of the Ingress + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + try { + V1Ingress result = apiInstance.readNamespacedIngress(name, namespace, pretty); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling NetworkingV1Api#patchIngressClass"); + System.err.println("Exception when calling NetworkingV1Api#readNamespacedIngress"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -1397,17 +2859,13 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the IngressClass | - **body** | **V1Patch**| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [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] - **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] - **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] - **force** | **Boolean**| Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | [optional] + **name** | **String**| name of the Ingress | + **namespace** | **String**| object name and auth scope, such as for teams and projects | + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] ### Return type -[**V1IngressClass**](V1IngressClass.md) +[**V1Ingress**](V1Ingress.md) ### Authorization @@ -1415,23 +2873,22 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | OK | - | -**201** | Created | - | **401** | Unauthorized | - | - -# **patchNamespacedIngress** -> V1Ingress patchNamespacedIngress(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force) + +# **readNamespacedIngressStatus** +> V1Ingress readNamespacedIngressStatus(name, namespace, pretty) -partially update the specified Ingress +read status of the specified Ingress ### Example ```java @@ -1457,17 +2914,12 @@ public class Example { NetworkingV1Api apiInstance = new NetworkingV1Api(defaultClient); String name = "name_example"; // String | name of the Ingress String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - V1Patch body = new V1Patch(); // V1Patch | - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. - 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 fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). - String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. - Boolean force = true; // Boolean | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). try { - V1Ingress result = apiInstance.patchNamespacedIngress(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force); + V1Ingress result = apiInstance.readNamespacedIngressStatus(name, namespace, pretty); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling NetworkingV1Api#patchNamespacedIngress"); + System.err.println("Exception when calling NetworkingV1Api#readNamespacedIngressStatus"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -1483,12 +2935,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **String**| name of the Ingress | **namespace** | **String**| object name and auth scope, such as for teams and projects | - **body** | **V1Patch**| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [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] - **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] - **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] - **force** | **Boolean**| Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] ### Return type @@ -1500,23 +2947,22 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | OK | - | -**201** | Created | - | **401** | Unauthorized | - | - -# **patchNamespacedIngressStatus** -> V1Ingress patchNamespacedIngressStatus(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force) + +# **readNamespacedNetworkPolicy** +> V1NetworkPolicy readNamespacedNetworkPolicy(name, namespace, pretty) -partially update status of the specified Ingress +read the specified NetworkPolicy ### Example ```java @@ -1540,19 +2986,14 @@ public class Example { //BearerToken.setApiKeyPrefix("Token"); NetworkingV1Api apiInstance = new NetworkingV1Api(defaultClient); - String name = "name_example"; // String | name of the Ingress + String name = "name_example"; // String | name of the NetworkPolicy String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - V1Patch body = new V1Patch(); // V1Patch | - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. - 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 fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). - String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. - Boolean force = true; // Boolean | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). try { - V1Ingress result = apiInstance.patchNamespacedIngressStatus(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force); + V1NetworkPolicy result = apiInstance.readNamespacedNetworkPolicy(name, namespace, pretty); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling NetworkingV1Api#patchNamespacedIngressStatus"); + System.err.println("Exception when calling NetworkingV1Api#readNamespacedNetworkPolicy"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -1566,18 +3007,13 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the Ingress | + **name** | **String**| name of the NetworkPolicy | **namespace** | **String**| object name and auth scope, such as for teams and projects | - **body** | **V1Patch**| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [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] - **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] - **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] - **force** | **Boolean**| Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] ### Return type -[**V1Ingress**](V1Ingress.md) +[**V1NetworkPolicy**](V1NetworkPolicy.md) ### Authorization @@ -1585,23 +3021,22 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | OK | - | -**201** | Created | - | **401** | Unauthorized | - | - -# **patchNamespacedNetworkPolicy** -> V1NetworkPolicy patchNamespacedNetworkPolicy(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force) + +# **readServiceCIDR** +> V1ServiceCIDR readServiceCIDR(name, pretty) -partially update the specified NetworkPolicy +read the specified ServiceCIDR ### Example ```java @@ -1625,19 +3060,13 @@ public class Example { //BearerToken.setApiKeyPrefix("Token"); NetworkingV1Api apiInstance = new NetworkingV1Api(defaultClient); - String name = "name_example"; // String | name of the NetworkPolicy - String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - V1Patch body = new V1Patch(); // V1Patch | - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. - 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 fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). - String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. - Boolean force = true; // Boolean | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. + String name = "name_example"; // String | name of the ServiceCIDR + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). try { - V1NetworkPolicy result = apiInstance.patchNamespacedNetworkPolicy(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force); + V1ServiceCIDR result = apiInstance.readServiceCIDR(name, pretty); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling NetworkingV1Api#patchNamespacedNetworkPolicy"); + System.err.println("Exception when calling NetworkingV1Api#readServiceCIDR"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -1651,18 +3080,12 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the NetworkPolicy | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **body** | **V1Patch**| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [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] - **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] - **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] - **force** | **Boolean**| Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | [optional] + **name** | **String**| name of the ServiceCIDR | + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] ### Return type -[**V1NetworkPolicy**](V1NetworkPolicy.md) +[**V1ServiceCIDR**](V1ServiceCIDR.md) ### Authorization @@ -1670,23 +3093,22 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | OK | - | -**201** | Created | - | **401** | Unauthorized | - | - -# **readIngressClass** -> V1IngressClass readIngressClass(name, pretty) + +# **readServiceCIDRStatus** +> V1ServiceCIDR readServiceCIDRStatus(name, pretty) -read the specified IngressClass +read status of the specified ServiceCIDR ### Example ```java @@ -1710,13 +3132,13 @@ public class Example { //BearerToken.setApiKeyPrefix("Token"); NetworkingV1Api apiInstance = new NetworkingV1Api(defaultClient); - String name = "name_example"; // String | name of the IngressClass - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String name = "name_example"; // String | name of the ServiceCIDR + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). try { - V1IngressClass result = apiInstance.readIngressClass(name, pretty); + V1ServiceCIDR result = apiInstance.readServiceCIDRStatus(name, pretty); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling NetworkingV1Api#readIngressClass"); + System.err.println("Exception when calling NetworkingV1Api#readServiceCIDRStatus"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -1730,12 +3152,12 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the IngressClass | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **name** | **String**| name of the ServiceCIDR | + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] ### Return type -[**V1IngressClass**](V1IngressClass.md) +[**V1ServiceCIDR**](V1ServiceCIDR.md) ### Authorization @@ -1744,7 +3166,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -1752,13 +3174,13 @@ Name | Type | Description | Notes **200** | OK | - | **401** | Unauthorized | - | - -# **readNamespacedIngress** -> V1Ingress readNamespacedIngress(name, namespace, pretty) + +# **replaceIPAddress** +> V1IPAddress replaceIPAddress(name, body, pretty, dryRun, fieldManager, fieldValidation) -read the specified Ingress +replace the specified IPAddress ### Example ```java @@ -1782,14 +3204,17 @@ public class Example { //BearerToken.setApiKeyPrefix("Token"); NetworkingV1Api apiInstance = new NetworkingV1Api(defaultClient); - String name = "name_example"; // String | name of the Ingress - String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String name = "name_example"; // String | name of the IPAddress + V1IPAddress body = new V1IPAddress(); // V1IPAddress | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + 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 fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. try { - V1Ingress result = apiInstance.readNamespacedIngress(name, namespace, pretty); + V1IPAddress result = apiInstance.replaceIPAddress(name, body, pretty, dryRun, fieldManager, fieldValidation); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling NetworkingV1Api#readNamespacedIngress"); + System.err.println("Exception when calling NetworkingV1Api#replaceIPAddress"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -1803,13 +3228,16 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the Ingress | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **name** | **String**| name of the IPAddress | + **body** | [**V1IPAddress**](V1IPAddress.md)| | + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] + **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] + **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] ### Return type -[**V1Ingress**](V1Ingress.md) +[**V1IPAddress**](V1IPAddress.md) ### Authorization @@ -1817,22 +3245,23 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Content-Type**: application/json + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | OK | - | +**201** | Created | - | **401** | Unauthorized | - | - -# **readNamespacedIngressStatus** -> V1Ingress readNamespacedIngressStatus(name, namespace, pretty) + +# **replaceIngressClass** +> V1IngressClass replaceIngressClass(name, body, pretty, dryRun, fieldManager, fieldValidation) -read status of the specified Ingress +replace the specified IngressClass ### Example ```java @@ -1856,14 +3285,17 @@ public class Example { //BearerToken.setApiKeyPrefix("Token"); NetworkingV1Api apiInstance = new NetworkingV1Api(defaultClient); - String name = "name_example"; // String | name of the Ingress - String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String name = "name_example"; // String | name of the IngressClass + V1IngressClass body = new V1IngressClass(); // V1IngressClass | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + 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 fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. try { - V1Ingress result = apiInstance.readNamespacedIngressStatus(name, namespace, pretty); + V1IngressClass result = apiInstance.replaceIngressClass(name, body, pretty, dryRun, fieldManager, fieldValidation); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling NetworkingV1Api#readNamespacedIngressStatus"); + System.err.println("Exception when calling NetworkingV1Api#replaceIngressClass"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -1877,13 +3309,16 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the Ingress | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **name** | **String**| name of the IngressClass | + **body** | [**V1IngressClass**](V1IngressClass.md)| | + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] + **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] + **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] ### Return type -[**V1Ingress**](V1Ingress.md) +[**V1IngressClass**](V1IngressClass.md) ### Authorization @@ -1891,22 +3326,23 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Content-Type**: application/json + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | OK | - | +**201** | Created | - | **401** | Unauthorized | - | - -# **readNamespacedNetworkPolicy** -> V1NetworkPolicy readNamespacedNetworkPolicy(name, namespace, pretty) + +# **replaceNamespacedIngress** +> V1Ingress replaceNamespacedIngress(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation) -read the specified NetworkPolicy +replace the specified Ingress ### Example ```java @@ -1930,14 +3366,18 @@ public class Example { //BearerToken.setApiKeyPrefix("Token"); NetworkingV1Api apiInstance = new NetworkingV1Api(defaultClient); - String name = "name_example"; // String | name of the NetworkPolicy + String name = "name_example"; // String | name of the Ingress String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + V1Ingress body = new V1Ingress(); // V1Ingress | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + 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 fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. try { - V1NetworkPolicy result = apiInstance.readNamespacedNetworkPolicy(name, namespace, pretty); + V1Ingress result = apiInstance.replaceNamespacedIngress(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling NetworkingV1Api#readNamespacedNetworkPolicy"); + System.err.println("Exception when calling NetworkingV1Api#replaceNamespacedIngress"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -1951,13 +3391,17 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the NetworkPolicy | + **name** | **String**| name of the Ingress | **namespace** | **String**| object name and auth scope, such as for teams and projects | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **body** | [**V1Ingress**](V1Ingress.md)| | + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] + **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] + **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] ### Return type -[**V1NetworkPolicy**](V1NetworkPolicy.md) +[**V1Ingress**](V1Ingress.md) ### Authorization @@ -1965,22 +3409,23 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Content-Type**: application/json + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | OK | - | +**201** | Created | - | **401** | Unauthorized | - | - -# **replaceIngressClass** -> V1IngressClass replaceIngressClass(name, body, pretty, dryRun, fieldManager, fieldValidation) + +# **replaceNamespacedIngressStatus** +> V1Ingress replaceNamespacedIngressStatus(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation) -replace the specified IngressClass +replace status of the specified Ingress ### Example ```java @@ -2004,17 +3449,18 @@ public class Example { //BearerToken.setApiKeyPrefix("Token"); NetworkingV1Api apiInstance = new NetworkingV1Api(defaultClient); - String name = "name_example"; // String | name of the IngressClass - V1IngressClass body = new V1IngressClass(); // V1IngressClass | - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String name = "name_example"; // String | name of the Ingress + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + V1Ingress body = new V1Ingress(); // V1Ingress | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). 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 fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. try { - V1IngressClass result = apiInstance.replaceIngressClass(name, body, pretty, dryRun, fieldManager, fieldValidation); + V1Ingress result = apiInstance.replaceNamespacedIngressStatus(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling NetworkingV1Api#replaceIngressClass"); + System.err.println("Exception when calling NetworkingV1Api#replaceNamespacedIngressStatus"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -2028,16 +3474,17 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the IngressClass | - **body** | [**V1IngressClass**](V1IngressClass.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **name** | **String**| name of the Ingress | + **namespace** | **String**| object name and auth scope, such as for teams and projects | + **body** | [**V1Ingress**](V1Ingress.md)| | + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] ### Return type -[**V1IngressClass**](V1IngressClass.md) +[**V1Ingress**](V1Ingress.md) ### Authorization @@ -2046,7 +3493,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -2055,13 +3502,13 @@ Name | Type | Description | Notes **201** | Created | - | **401** | Unauthorized | - | - -# **replaceNamespacedIngress** -> V1Ingress replaceNamespacedIngress(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation) + +# **replaceNamespacedNetworkPolicy** +> V1NetworkPolicy replaceNamespacedNetworkPolicy(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation) -replace the specified Ingress +replace the specified NetworkPolicy ### Example ```java @@ -2085,18 +3532,18 @@ public class Example { //BearerToken.setApiKeyPrefix("Token"); NetworkingV1Api apiInstance = new NetworkingV1Api(defaultClient); - String name = "name_example"; // String | name of the Ingress + String name = "name_example"; // String | name of the NetworkPolicy String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - V1Ingress body = new V1Ingress(); // V1Ingress | - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + V1NetworkPolicy body = new V1NetworkPolicy(); // V1NetworkPolicy | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). 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 fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. try { - V1Ingress result = apiInstance.replaceNamespacedIngress(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation); + V1NetworkPolicy result = apiInstance.replaceNamespacedNetworkPolicy(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling NetworkingV1Api#replaceNamespacedIngress"); + System.err.println("Exception when calling NetworkingV1Api#replaceNamespacedNetworkPolicy"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -2110,17 +3557,17 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the Ingress | + **name** | **String**| name of the NetworkPolicy | **namespace** | **String**| object name and auth scope, such as for teams and projects | - **body** | [**V1Ingress**](V1Ingress.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **body** | [**V1NetworkPolicy**](V1NetworkPolicy.md)| | + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] ### Return type -[**V1Ingress**](V1Ingress.md) +[**V1NetworkPolicy**](V1NetworkPolicy.md) ### Authorization @@ -2129,7 +3576,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -2138,13 +3585,13 @@ Name | Type | Description | Notes **201** | Created | - | **401** | Unauthorized | - | - -# **replaceNamespacedIngressStatus** -> V1Ingress replaceNamespacedIngressStatus(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation) + +# **replaceServiceCIDR** +> V1ServiceCIDR replaceServiceCIDR(name, body, pretty, dryRun, fieldManager, fieldValidation) -replace status of the specified Ingress +replace the specified ServiceCIDR ### Example ```java @@ -2168,18 +3615,17 @@ public class Example { //BearerToken.setApiKeyPrefix("Token"); NetworkingV1Api apiInstance = new NetworkingV1Api(defaultClient); - String name = "name_example"; // String | name of the Ingress - String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - V1Ingress body = new V1Ingress(); // V1Ingress | - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String name = "name_example"; // String | name of the ServiceCIDR + V1ServiceCIDR body = new V1ServiceCIDR(); // V1ServiceCIDR | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). 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 fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. try { - V1Ingress result = apiInstance.replaceNamespacedIngressStatus(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation); + V1ServiceCIDR result = apiInstance.replaceServiceCIDR(name, body, pretty, dryRun, fieldManager, fieldValidation); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling NetworkingV1Api#replaceNamespacedIngressStatus"); + System.err.println("Exception when calling NetworkingV1Api#replaceServiceCIDR"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -2193,17 +3639,16 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the Ingress | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **body** | [**V1Ingress**](V1Ingress.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **name** | **String**| name of the ServiceCIDR | + **body** | [**V1ServiceCIDR**](V1ServiceCIDR.md)| | + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] ### Return type -[**V1Ingress**](V1Ingress.md) +[**V1ServiceCIDR**](V1ServiceCIDR.md) ### Authorization @@ -2212,7 +3657,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -2221,13 +3666,13 @@ Name | Type | Description | Notes **201** | Created | - | **401** | Unauthorized | - | - -# **replaceNamespacedNetworkPolicy** -> V1NetworkPolicy replaceNamespacedNetworkPolicy(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation) + +# **replaceServiceCIDRStatus** +> V1ServiceCIDR replaceServiceCIDRStatus(name, body, pretty, dryRun, fieldManager, fieldValidation) -replace the specified NetworkPolicy +replace status of the specified ServiceCIDR ### Example ```java @@ -2251,18 +3696,17 @@ public class Example { //BearerToken.setApiKeyPrefix("Token"); NetworkingV1Api apiInstance = new NetworkingV1Api(defaultClient); - String name = "name_example"; // String | name of the NetworkPolicy - String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - V1NetworkPolicy body = new V1NetworkPolicy(); // V1NetworkPolicy | - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String name = "name_example"; // String | name of the ServiceCIDR + V1ServiceCIDR body = new V1ServiceCIDR(); // V1ServiceCIDR | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). 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 fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. try { - V1NetworkPolicy result = apiInstance.replaceNamespacedNetworkPolicy(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation); + V1ServiceCIDR result = apiInstance.replaceServiceCIDRStatus(name, body, pretty, dryRun, fieldManager, fieldValidation); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling NetworkingV1Api#replaceNamespacedNetworkPolicy"); + System.err.println("Exception when calling NetworkingV1Api#replaceServiceCIDRStatus"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -2276,17 +3720,16 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the NetworkPolicy | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **body** | [**V1NetworkPolicy**](V1NetworkPolicy.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **name** | **String**| name of the ServiceCIDR | + **body** | [**V1ServiceCIDR**](V1ServiceCIDR.md)| | + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] ### Return type -[**V1NetworkPolicy**](V1NetworkPolicy.md) +[**V1ServiceCIDR**](V1ServiceCIDR.md) ### Authorization @@ -2295,7 +3738,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | diff --git a/kubernetes/docs/NetworkingV1alpha1Api.md b/kubernetes/docs/NetworkingV1alpha1Api.md deleted file mode 100644 index 3d8ce737d4..0000000000 --- a/kubernetes/docs/NetworkingV1alpha1Api.md +++ /dev/null @@ -1,1259 +0,0 @@ -# NetworkingV1alpha1Api - -All URIs are relative to *http://localhost* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**createClusterCIDR**](NetworkingV1alpha1Api.md#createClusterCIDR) | **POST** /apis/networking.k8s.io/v1alpha1/clustercidrs | -[**createIPAddress**](NetworkingV1alpha1Api.md#createIPAddress) | **POST** /apis/networking.k8s.io/v1alpha1/ipaddresses | -[**deleteClusterCIDR**](NetworkingV1alpha1Api.md#deleteClusterCIDR) | **DELETE** /apis/networking.k8s.io/v1alpha1/clustercidrs/{name} | -[**deleteCollectionClusterCIDR**](NetworkingV1alpha1Api.md#deleteCollectionClusterCIDR) | **DELETE** /apis/networking.k8s.io/v1alpha1/clustercidrs | -[**deleteCollectionIPAddress**](NetworkingV1alpha1Api.md#deleteCollectionIPAddress) | **DELETE** /apis/networking.k8s.io/v1alpha1/ipaddresses | -[**deleteIPAddress**](NetworkingV1alpha1Api.md#deleteIPAddress) | **DELETE** /apis/networking.k8s.io/v1alpha1/ipaddresses/{name} | -[**getAPIResources**](NetworkingV1alpha1Api.md#getAPIResources) | **GET** /apis/networking.k8s.io/v1alpha1/ | -[**listClusterCIDR**](NetworkingV1alpha1Api.md#listClusterCIDR) | **GET** /apis/networking.k8s.io/v1alpha1/clustercidrs | -[**listIPAddress**](NetworkingV1alpha1Api.md#listIPAddress) | **GET** /apis/networking.k8s.io/v1alpha1/ipaddresses | -[**patchClusterCIDR**](NetworkingV1alpha1Api.md#patchClusterCIDR) | **PATCH** /apis/networking.k8s.io/v1alpha1/clustercidrs/{name} | -[**patchIPAddress**](NetworkingV1alpha1Api.md#patchIPAddress) | **PATCH** /apis/networking.k8s.io/v1alpha1/ipaddresses/{name} | -[**readClusterCIDR**](NetworkingV1alpha1Api.md#readClusterCIDR) | **GET** /apis/networking.k8s.io/v1alpha1/clustercidrs/{name} | -[**readIPAddress**](NetworkingV1alpha1Api.md#readIPAddress) | **GET** /apis/networking.k8s.io/v1alpha1/ipaddresses/{name} | -[**replaceClusterCIDR**](NetworkingV1alpha1Api.md#replaceClusterCIDR) | **PUT** /apis/networking.k8s.io/v1alpha1/clustercidrs/{name} | -[**replaceIPAddress**](NetworkingV1alpha1Api.md#replaceIPAddress) | **PUT** /apis/networking.k8s.io/v1alpha1/ipaddresses/{name} | - - - -# **createClusterCIDR** -> V1alpha1ClusterCIDR createClusterCIDR(body, pretty, dryRun, fieldManager, fieldValidation) - - - -create a ClusterCIDR - -### Example -```java -// Import classes: -import io.kubernetes.client.openapi.ApiClient; -import io.kubernetes.client.openapi.ApiException; -import io.kubernetes.client.openapi.Configuration; -import io.kubernetes.client.openapi.auth.*; -import io.kubernetes.client.openapi.models.*; -import io.kubernetes.client.openapi.apis.NetworkingV1alpha1Api; - -public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("http://localhost"); - - // Configure API key authorization: BearerToken - ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); - BearerToken.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //BearerToken.setApiKeyPrefix("Token"); - - NetworkingV1alpha1Api apiInstance = new NetworkingV1alpha1Api(defaultClient); - V1alpha1ClusterCIDR body = new V1alpha1ClusterCIDR(); // V1alpha1ClusterCIDR | - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. - 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 fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. - try { - V1alpha1ClusterCIDR result = apiInstance.createClusterCIDR(body, pretty, dryRun, fieldManager, fieldValidation); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling NetworkingV1alpha1Api#createClusterCIDR"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } - } -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **body** | [**V1alpha1ClusterCIDR**](V1alpha1ClusterCIDR.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [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] - **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] - **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] - -### Return type - -[**V1alpha1ClusterCIDR**](V1alpha1ClusterCIDR.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | OK | - | -**201** | Created | - | -**202** | Accepted | - | -**401** | Unauthorized | - | - - -# **createIPAddress** -> V1alpha1IPAddress createIPAddress(body, pretty, dryRun, fieldManager, fieldValidation) - - - -create an IPAddress - -### Example -```java -// Import classes: -import io.kubernetes.client.openapi.ApiClient; -import io.kubernetes.client.openapi.ApiException; -import io.kubernetes.client.openapi.Configuration; -import io.kubernetes.client.openapi.auth.*; -import io.kubernetes.client.openapi.models.*; -import io.kubernetes.client.openapi.apis.NetworkingV1alpha1Api; - -public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("http://localhost"); - - // Configure API key authorization: BearerToken - ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); - BearerToken.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //BearerToken.setApiKeyPrefix("Token"); - - NetworkingV1alpha1Api apiInstance = new NetworkingV1alpha1Api(defaultClient); - V1alpha1IPAddress body = new V1alpha1IPAddress(); // V1alpha1IPAddress | - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. - 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 fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. - try { - V1alpha1IPAddress result = apiInstance.createIPAddress(body, pretty, dryRun, fieldManager, fieldValidation); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling NetworkingV1alpha1Api#createIPAddress"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } - } -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **body** | [**V1alpha1IPAddress**](V1alpha1IPAddress.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [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] - **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] - **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] - -### Return type - -[**V1alpha1IPAddress**](V1alpha1IPAddress.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | OK | - | -**201** | Created | - | -**202** | Accepted | - | -**401** | Unauthorized | - | - - -# **deleteClusterCIDR** -> V1Status deleteClusterCIDR(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body) - - - -delete a ClusterCIDR - -### Example -```java -// Import classes: -import io.kubernetes.client.openapi.ApiClient; -import io.kubernetes.client.openapi.ApiException; -import io.kubernetes.client.openapi.Configuration; -import io.kubernetes.client.openapi.auth.*; -import io.kubernetes.client.openapi.models.*; -import io.kubernetes.client.openapi.apis.NetworkingV1alpha1Api; - -public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("http://localhost"); - - // Configure API key authorization: BearerToken - ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); - BearerToken.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //BearerToken.setApiKeyPrefix("Token"); - - NetworkingV1alpha1Api apiInstance = new NetworkingV1alpha1Api(defaultClient); - String name = "name_example"; // String | name of the ClusterCIDR - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. - 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 - Integer gracePeriodSeconds = 56; // Integer | 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. - 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. 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. - V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | - try { - V1Status result = apiInstance.deleteClusterCIDR(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling NetworkingV1alpha1Api#deleteClusterCIDR"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } - } -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the ClusterCIDR | - **pretty** | **String**| If 'true', then the output is pretty printed. | [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] - **gracePeriodSeconds** | **Integer**| 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. | [optional] - **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. 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. | [optional] - **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] - -### Return type - -[**V1Status**](V1Status.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | OK | - | -**202** | Accepted | - | -**401** | Unauthorized | - | - - -# **deleteCollectionClusterCIDR** -> V1Status deleteCollectionClusterCIDR(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body) - - - -delete collection of ClusterCIDR - -### Example -```java -// Import classes: -import io.kubernetes.client.openapi.ApiClient; -import io.kubernetes.client.openapi.ApiException; -import io.kubernetes.client.openapi.Configuration; -import io.kubernetes.client.openapi.auth.*; -import io.kubernetes.client.openapi.models.*; -import io.kubernetes.client.openapi.apis.NetworkingV1alpha1Api; - -public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("http://localhost"); - - // Configure API key authorization: BearerToken - ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); - BearerToken.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //BearerToken.setApiKeyPrefix("Token"); - - NetworkingV1alpha1Api apiInstance = new NetworkingV1alpha1Api(defaultClient); - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. - 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. - 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. - Integer gracePeriodSeconds = 56; // Integer | 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. - String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. - Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. - 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. 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. - String resourceVersion = "resourceVersion_example"; // String | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset - String resourceVersionMatch = "resourceVersionMatch_example"; // String | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset - Boolean sendInitialEvents = true; // Boolean | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. - Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. - V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | - try { - V1Status result = apiInstance.deleteCollectionClusterCIDR(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling NetworkingV1alpha1Api#deleteCollectionClusterCIDR"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } - } -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **pretty** | **String**| If 'true', then the output is pretty printed. | [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] - **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] - **gracePeriodSeconds** | **Integer**| 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. | [optional] - **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] - **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. 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. | [optional] - **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] - **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] - **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] - **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] - **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] - -### Return type - -[**V1Status**](V1Status.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | - - -# **deleteCollectionIPAddress** -> V1Status deleteCollectionIPAddress(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body) - - - -delete collection of IPAddress - -### Example -```java -// Import classes: -import io.kubernetes.client.openapi.ApiClient; -import io.kubernetes.client.openapi.ApiException; -import io.kubernetes.client.openapi.Configuration; -import io.kubernetes.client.openapi.auth.*; -import io.kubernetes.client.openapi.models.*; -import io.kubernetes.client.openapi.apis.NetworkingV1alpha1Api; - -public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("http://localhost"); - - // Configure API key authorization: BearerToken - ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); - BearerToken.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //BearerToken.setApiKeyPrefix("Token"); - - NetworkingV1alpha1Api apiInstance = new NetworkingV1alpha1Api(defaultClient); - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. - 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. - 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. - Integer gracePeriodSeconds = 56; // Integer | 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. - String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. - Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. - 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. 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. - String resourceVersion = "resourceVersion_example"; // String | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset - String resourceVersionMatch = "resourceVersionMatch_example"; // String | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset - Boolean sendInitialEvents = true; // Boolean | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. - Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. - V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | - try { - V1Status result = apiInstance.deleteCollectionIPAddress(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling NetworkingV1alpha1Api#deleteCollectionIPAddress"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } - } -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **pretty** | **String**| If 'true', then the output is pretty printed. | [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] - **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] - **gracePeriodSeconds** | **Integer**| 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. | [optional] - **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] - **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. 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. | [optional] - **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] - **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] - **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] - **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] - **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] - -### Return type - -[**V1Status**](V1Status.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | - - -# **deleteIPAddress** -> V1Status deleteIPAddress(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body) - - - -delete an IPAddress - -### Example -```java -// Import classes: -import io.kubernetes.client.openapi.ApiClient; -import io.kubernetes.client.openapi.ApiException; -import io.kubernetes.client.openapi.Configuration; -import io.kubernetes.client.openapi.auth.*; -import io.kubernetes.client.openapi.models.*; -import io.kubernetes.client.openapi.apis.NetworkingV1alpha1Api; - -public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("http://localhost"); - - // Configure API key authorization: BearerToken - ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); - BearerToken.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //BearerToken.setApiKeyPrefix("Token"); - - NetworkingV1alpha1Api apiInstance = new NetworkingV1alpha1Api(defaultClient); - String name = "name_example"; // String | name of the IPAddress - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. - 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 - Integer gracePeriodSeconds = 56; // Integer | 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. - 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. 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. - V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | - try { - V1Status result = apiInstance.deleteIPAddress(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling NetworkingV1alpha1Api#deleteIPAddress"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } - } -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the IPAddress | - **pretty** | **String**| If 'true', then the output is pretty printed. | [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] - **gracePeriodSeconds** | **Integer**| 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. | [optional] - **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. 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. | [optional] - **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] - -### Return type - -[**V1Status**](V1Status.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | OK | - | -**202** | Accepted | - | -**401** | Unauthorized | - | - - -# **getAPIResources** -> V1APIResourceList getAPIResources() - - - -get available resources - -### Example -```java -// Import classes: -import io.kubernetes.client.openapi.ApiClient; -import io.kubernetes.client.openapi.ApiException; -import io.kubernetes.client.openapi.Configuration; -import io.kubernetes.client.openapi.auth.*; -import io.kubernetes.client.openapi.models.*; -import io.kubernetes.client.openapi.apis.NetworkingV1alpha1Api; - -public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("http://localhost"); - - // Configure API key authorization: BearerToken - ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); - BearerToken.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //BearerToken.setApiKeyPrefix("Token"); - - NetworkingV1alpha1Api apiInstance = new NetworkingV1alpha1Api(defaultClient); - try { - V1APIResourceList result = apiInstance.getAPIResources(); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling NetworkingV1alpha1Api#getAPIResources"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } - } -} -``` - -### Parameters -This endpoint does not need any parameter. - -### Return type - -[**V1APIResourceList**](V1APIResourceList.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | - - -# **listClusterCIDR** -> V1alpha1ClusterCIDRList listClusterCIDR(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch) - - - -list or watch objects of kind ClusterCIDR - -### Example -```java -// Import classes: -import io.kubernetes.client.openapi.ApiClient; -import io.kubernetes.client.openapi.ApiException; -import io.kubernetes.client.openapi.Configuration; -import io.kubernetes.client.openapi.auth.*; -import io.kubernetes.client.openapi.models.*; -import io.kubernetes.client.openapi.apis.NetworkingV1alpha1Api; - -public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("http://localhost"); - - // Configure API key authorization: BearerToken - ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); - BearerToken.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //BearerToken.setApiKeyPrefix("Token"); - - NetworkingV1alpha1Api apiInstance = new NetworkingV1alpha1Api(defaultClient); - 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. - 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. - String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. - String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. - Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. - String resourceVersion = "resourceVersion_example"; // String | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset - String resourceVersionMatch = "resourceVersionMatch_example"; // String | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset - Boolean sendInitialEvents = true; // Boolean | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. - 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. Specify resourceVersion. - try { - V1alpha1ClusterCIDRList result = apiInstance.listClusterCIDR(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling NetworkingV1alpha1Api#listClusterCIDR"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } - } -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **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. | [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] - **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] - **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] - **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] - **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] - **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] - **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] - -### Return type - -[**V1alpha1ClusterCIDRList**](V1alpha1ClusterCIDRList.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | - - -# **listIPAddress** -> V1alpha1IPAddressList listIPAddress(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch) - - - -list or watch objects of kind IPAddress - -### Example -```java -// Import classes: -import io.kubernetes.client.openapi.ApiClient; -import io.kubernetes.client.openapi.ApiException; -import io.kubernetes.client.openapi.Configuration; -import io.kubernetes.client.openapi.auth.*; -import io.kubernetes.client.openapi.models.*; -import io.kubernetes.client.openapi.apis.NetworkingV1alpha1Api; - -public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("http://localhost"); - - // Configure API key authorization: BearerToken - ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); - BearerToken.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //BearerToken.setApiKeyPrefix("Token"); - - NetworkingV1alpha1Api apiInstance = new NetworkingV1alpha1Api(defaultClient); - 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. - 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. - String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. - String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. - Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. - String resourceVersion = "resourceVersion_example"; // String | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset - String resourceVersionMatch = "resourceVersionMatch_example"; // String | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset - Boolean sendInitialEvents = true; // Boolean | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. - 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. Specify resourceVersion. - try { - V1alpha1IPAddressList result = apiInstance.listIPAddress(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling NetworkingV1alpha1Api#listIPAddress"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } - } -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **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. | [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] - **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] - **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] - **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] - **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] - **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] - **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] - -### Return type - -[**V1alpha1IPAddressList**](V1alpha1IPAddressList.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | - - -# **patchClusterCIDR** -> V1alpha1ClusterCIDR patchClusterCIDR(name, body, pretty, dryRun, fieldManager, fieldValidation, force) - - - -partially update the specified ClusterCIDR - -### Example -```java -// Import classes: -import io.kubernetes.client.openapi.ApiClient; -import io.kubernetes.client.openapi.ApiException; -import io.kubernetes.client.openapi.Configuration; -import io.kubernetes.client.openapi.auth.*; -import io.kubernetes.client.openapi.models.*; -import io.kubernetes.client.openapi.apis.NetworkingV1alpha1Api; - -public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("http://localhost"); - - // Configure API key authorization: BearerToken - ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); - BearerToken.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //BearerToken.setApiKeyPrefix("Token"); - - NetworkingV1alpha1Api apiInstance = new NetworkingV1alpha1Api(defaultClient); - String name = "name_example"; // String | name of the ClusterCIDR - V1Patch body = new V1Patch(); // V1Patch | - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. - 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 fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). - String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. - Boolean force = true; // Boolean | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. - try { - V1alpha1ClusterCIDR result = apiInstance.patchClusterCIDR(name, body, pretty, dryRun, fieldManager, fieldValidation, force); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling NetworkingV1alpha1Api#patchClusterCIDR"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } - } -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the ClusterCIDR | - **body** | **V1Patch**| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [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] - **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] - **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] - **force** | **Boolean**| Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | [optional] - -### Return type - -[**V1alpha1ClusterCIDR**](V1alpha1ClusterCIDR.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | OK | - | -**201** | Created | - | -**401** | Unauthorized | - | - - -# **patchIPAddress** -> V1alpha1IPAddress patchIPAddress(name, body, pretty, dryRun, fieldManager, fieldValidation, force) - - - -partially update the specified IPAddress - -### Example -```java -// Import classes: -import io.kubernetes.client.openapi.ApiClient; -import io.kubernetes.client.openapi.ApiException; -import io.kubernetes.client.openapi.Configuration; -import io.kubernetes.client.openapi.auth.*; -import io.kubernetes.client.openapi.models.*; -import io.kubernetes.client.openapi.apis.NetworkingV1alpha1Api; - -public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("http://localhost"); - - // Configure API key authorization: BearerToken - ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); - BearerToken.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //BearerToken.setApiKeyPrefix("Token"); - - NetworkingV1alpha1Api apiInstance = new NetworkingV1alpha1Api(defaultClient); - String name = "name_example"; // String | name of the IPAddress - V1Patch body = new V1Patch(); // V1Patch | - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. - 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 fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). - String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. - Boolean force = true; // Boolean | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. - try { - V1alpha1IPAddress result = apiInstance.patchIPAddress(name, body, pretty, dryRun, fieldManager, fieldValidation, force); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling NetworkingV1alpha1Api#patchIPAddress"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } - } -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the IPAddress | - **body** | **V1Patch**| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [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] - **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] - **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] - **force** | **Boolean**| Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | [optional] - -### Return type - -[**V1alpha1IPAddress**](V1alpha1IPAddress.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | OK | - | -**201** | Created | - | -**401** | Unauthorized | - | - - -# **readClusterCIDR** -> V1alpha1ClusterCIDR readClusterCIDR(name, pretty) - - - -read the specified ClusterCIDR - -### Example -```java -// Import classes: -import io.kubernetes.client.openapi.ApiClient; -import io.kubernetes.client.openapi.ApiException; -import io.kubernetes.client.openapi.Configuration; -import io.kubernetes.client.openapi.auth.*; -import io.kubernetes.client.openapi.models.*; -import io.kubernetes.client.openapi.apis.NetworkingV1alpha1Api; - -public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("http://localhost"); - - // Configure API key authorization: BearerToken - ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); - BearerToken.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //BearerToken.setApiKeyPrefix("Token"); - - NetworkingV1alpha1Api apiInstance = new NetworkingV1alpha1Api(defaultClient); - String name = "name_example"; // String | name of the ClusterCIDR - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. - try { - V1alpha1ClusterCIDR result = apiInstance.readClusterCIDR(name, pretty); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling NetworkingV1alpha1Api#readClusterCIDR"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } - } -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the ClusterCIDR | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - -### Return type - -[**V1alpha1ClusterCIDR**](V1alpha1ClusterCIDR.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | - - -# **readIPAddress** -> V1alpha1IPAddress readIPAddress(name, pretty) - - - -read the specified IPAddress - -### Example -```java -// Import classes: -import io.kubernetes.client.openapi.ApiClient; -import io.kubernetes.client.openapi.ApiException; -import io.kubernetes.client.openapi.Configuration; -import io.kubernetes.client.openapi.auth.*; -import io.kubernetes.client.openapi.models.*; -import io.kubernetes.client.openapi.apis.NetworkingV1alpha1Api; - -public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("http://localhost"); - - // Configure API key authorization: BearerToken - ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); - BearerToken.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //BearerToken.setApiKeyPrefix("Token"); - - NetworkingV1alpha1Api apiInstance = new NetworkingV1alpha1Api(defaultClient); - String name = "name_example"; // String | name of the IPAddress - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. - try { - V1alpha1IPAddress result = apiInstance.readIPAddress(name, pretty); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling NetworkingV1alpha1Api#readIPAddress"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } - } -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the IPAddress | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - -### Return type - -[**V1alpha1IPAddress**](V1alpha1IPAddress.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | - - -# **replaceClusterCIDR** -> V1alpha1ClusterCIDR replaceClusterCIDR(name, body, pretty, dryRun, fieldManager, fieldValidation) - - - -replace the specified ClusterCIDR - -### Example -```java -// Import classes: -import io.kubernetes.client.openapi.ApiClient; -import io.kubernetes.client.openapi.ApiException; -import io.kubernetes.client.openapi.Configuration; -import io.kubernetes.client.openapi.auth.*; -import io.kubernetes.client.openapi.models.*; -import io.kubernetes.client.openapi.apis.NetworkingV1alpha1Api; - -public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("http://localhost"); - - // Configure API key authorization: BearerToken - ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); - BearerToken.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //BearerToken.setApiKeyPrefix("Token"); - - NetworkingV1alpha1Api apiInstance = new NetworkingV1alpha1Api(defaultClient); - String name = "name_example"; // String | name of the ClusterCIDR - V1alpha1ClusterCIDR body = new V1alpha1ClusterCIDR(); // V1alpha1ClusterCIDR | - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. - 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 fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. - try { - V1alpha1ClusterCIDR result = apiInstance.replaceClusterCIDR(name, body, pretty, dryRun, fieldManager, fieldValidation); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling NetworkingV1alpha1Api#replaceClusterCIDR"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } - } -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the ClusterCIDR | - **body** | [**V1alpha1ClusterCIDR**](V1alpha1ClusterCIDR.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [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] - **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] - **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] - -### Return type - -[**V1alpha1ClusterCIDR**](V1alpha1ClusterCIDR.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | OK | - | -**201** | Created | - | -**401** | Unauthorized | - | - - -# **replaceIPAddress** -> V1alpha1IPAddress replaceIPAddress(name, body, pretty, dryRun, fieldManager, fieldValidation) - - - -replace the specified IPAddress - -### Example -```java -// Import classes: -import io.kubernetes.client.openapi.ApiClient; -import io.kubernetes.client.openapi.ApiException; -import io.kubernetes.client.openapi.Configuration; -import io.kubernetes.client.openapi.auth.*; -import io.kubernetes.client.openapi.models.*; -import io.kubernetes.client.openapi.apis.NetworkingV1alpha1Api; - -public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("http://localhost"); - - // Configure API key authorization: BearerToken - ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); - BearerToken.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //BearerToken.setApiKeyPrefix("Token"); - - NetworkingV1alpha1Api apiInstance = new NetworkingV1alpha1Api(defaultClient); - String name = "name_example"; // String | name of the IPAddress - V1alpha1IPAddress body = new V1alpha1IPAddress(); // V1alpha1IPAddress | - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. - 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 fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. - try { - V1alpha1IPAddress result = apiInstance.replaceIPAddress(name, body, pretty, dryRun, fieldManager, fieldValidation); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling NetworkingV1alpha1Api#replaceIPAddress"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } - } -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the IPAddress | - **body** | [**V1alpha1IPAddress**](V1alpha1IPAddress.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [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] - **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] - **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] - -### Return type - -[**V1alpha1IPAddress**](V1alpha1IPAddress.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | OK | - | -**201** | Created | - | -**401** | Unauthorized | - | - diff --git a/kubernetes/docs/NetworkingV1beta1Api.md b/kubernetes/docs/NetworkingV1beta1Api.md new file mode 100644 index 0000000000..f7d3fd50e1 --- /dev/null +++ b/kubernetes/docs/NetworkingV1beta1Api.md @@ -0,0 +1,1506 @@ +# NetworkingV1beta1Api + +All URIs are relative to *http://localhost* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**createIPAddress**](NetworkingV1beta1Api.md#createIPAddress) | **POST** /apis/networking.k8s.io/v1beta1/ipaddresses | +[**createServiceCIDR**](NetworkingV1beta1Api.md#createServiceCIDR) | **POST** /apis/networking.k8s.io/v1beta1/servicecidrs | +[**deleteCollectionIPAddress**](NetworkingV1beta1Api.md#deleteCollectionIPAddress) | **DELETE** /apis/networking.k8s.io/v1beta1/ipaddresses | +[**deleteCollectionServiceCIDR**](NetworkingV1beta1Api.md#deleteCollectionServiceCIDR) | **DELETE** /apis/networking.k8s.io/v1beta1/servicecidrs | +[**deleteIPAddress**](NetworkingV1beta1Api.md#deleteIPAddress) | **DELETE** /apis/networking.k8s.io/v1beta1/ipaddresses/{name} | +[**deleteServiceCIDR**](NetworkingV1beta1Api.md#deleteServiceCIDR) | **DELETE** /apis/networking.k8s.io/v1beta1/servicecidrs/{name} | +[**getAPIResources**](NetworkingV1beta1Api.md#getAPIResources) | **GET** /apis/networking.k8s.io/v1beta1/ | +[**listIPAddress**](NetworkingV1beta1Api.md#listIPAddress) | **GET** /apis/networking.k8s.io/v1beta1/ipaddresses | +[**listServiceCIDR**](NetworkingV1beta1Api.md#listServiceCIDR) | **GET** /apis/networking.k8s.io/v1beta1/servicecidrs | +[**patchIPAddress**](NetworkingV1beta1Api.md#patchIPAddress) | **PATCH** /apis/networking.k8s.io/v1beta1/ipaddresses/{name} | +[**patchServiceCIDR**](NetworkingV1beta1Api.md#patchServiceCIDR) | **PATCH** /apis/networking.k8s.io/v1beta1/servicecidrs/{name} | +[**patchServiceCIDRStatus**](NetworkingV1beta1Api.md#patchServiceCIDRStatus) | **PATCH** /apis/networking.k8s.io/v1beta1/servicecidrs/{name}/status | +[**readIPAddress**](NetworkingV1beta1Api.md#readIPAddress) | **GET** /apis/networking.k8s.io/v1beta1/ipaddresses/{name} | +[**readServiceCIDR**](NetworkingV1beta1Api.md#readServiceCIDR) | **GET** /apis/networking.k8s.io/v1beta1/servicecidrs/{name} | +[**readServiceCIDRStatus**](NetworkingV1beta1Api.md#readServiceCIDRStatus) | **GET** /apis/networking.k8s.io/v1beta1/servicecidrs/{name}/status | +[**replaceIPAddress**](NetworkingV1beta1Api.md#replaceIPAddress) | **PUT** /apis/networking.k8s.io/v1beta1/ipaddresses/{name} | +[**replaceServiceCIDR**](NetworkingV1beta1Api.md#replaceServiceCIDR) | **PUT** /apis/networking.k8s.io/v1beta1/servicecidrs/{name} | +[**replaceServiceCIDRStatus**](NetworkingV1beta1Api.md#replaceServiceCIDRStatus) | **PUT** /apis/networking.k8s.io/v1beta1/servicecidrs/{name}/status | + + + +# **createIPAddress** +> V1beta1IPAddress createIPAddress(body, pretty, dryRun, fieldManager, fieldValidation) + + + +create an IPAddress + +### Example +```java +// Import classes: +import io.kubernetes.client.openapi.ApiClient; +import io.kubernetes.client.openapi.ApiException; +import io.kubernetes.client.openapi.Configuration; +import io.kubernetes.client.openapi.auth.*; +import io.kubernetes.client.openapi.models.*; +import io.kubernetes.client.openapi.apis.NetworkingV1beta1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + NetworkingV1beta1Api apiInstance = new NetworkingV1beta1Api(defaultClient); + V1beta1IPAddress body = new V1beta1IPAddress(); // V1beta1IPAddress | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + 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 fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. + try { + V1beta1IPAddress result = apiInstance.createIPAddress(body, pretty, dryRun, fieldManager, fieldValidation); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling NetworkingV1beta1Api#createIPAddress"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | [**V1beta1IPAddress**](V1beta1IPAddress.md)| | + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] + **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] + **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] + +### Return type + +[**V1beta1IPAddress**](V1beta1IPAddress.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + + +# **createServiceCIDR** +> V1beta1ServiceCIDR createServiceCIDR(body, pretty, dryRun, fieldManager, fieldValidation) + + + +create a ServiceCIDR + +### Example +```java +// Import classes: +import io.kubernetes.client.openapi.ApiClient; +import io.kubernetes.client.openapi.ApiException; +import io.kubernetes.client.openapi.Configuration; +import io.kubernetes.client.openapi.auth.*; +import io.kubernetes.client.openapi.models.*; +import io.kubernetes.client.openapi.apis.NetworkingV1beta1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + NetworkingV1beta1Api apiInstance = new NetworkingV1beta1Api(defaultClient); + V1beta1ServiceCIDR body = new V1beta1ServiceCIDR(); // V1beta1ServiceCIDR | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + 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 fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. + try { + V1beta1ServiceCIDR result = apiInstance.createServiceCIDR(body, pretty, dryRun, fieldManager, fieldValidation); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling NetworkingV1beta1Api#createServiceCIDR"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | [**V1beta1ServiceCIDR**](V1beta1ServiceCIDR.md)| | + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] + **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] + **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] + +### Return type + +[**V1beta1ServiceCIDR**](V1beta1ServiceCIDR.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + + +# **deleteCollectionIPAddress** +> V1Status deleteCollectionIPAddress(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body) + + + +delete collection of IPAddress + +### Example +```java +// Import classes: +import io.kubernetes.client.openapi.ApiClient; +import io.kubernetes.client.openapi.ApiException; +import io.kubernetes.client.openapi.Configuration; +import io.kubernetes.client.openapi.auth.*; +import io.kubernetes.client.openapi.models.*; +import io.kubernetes.client.openapi.apis.NetworkingV1beta1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + NetworkingV1beta1Api apiInstance = new NetworkingV1beta1Api(defaultClient); + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + 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. + 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. + Integer gracePeriodSeconds = 56; // Integer | 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. + Boolean ignoreStoreReadErrorWithClusterBreakingPotential = true; // Boolean | if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it + String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. + Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + 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. 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. + String resourceVersion = "resourceVersion_example"; // String | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + String resourceVersionMatch = "resourceVersionMatch_example"; // String | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + Boolean sendInitialEvents = true; // Boolean | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | + try { + V1Status result = apiInstance.deleteCollectionIPAddress(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling NetworkingV1beta1Api#deleteCollectionIPAddress"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] + **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] + **gracePeriodSeconds** | **Integer**| 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. | [optional] + **ignoreStoreReadErrorWithClusterBreakingPotential** | **Boolean**| if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it | [optional] + **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] + **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] + **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. 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. | [optional] + **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] + **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] + **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] + **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] + +### Return type + +[**V1Status**](V1Status.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + + +# **deleteCollectionServiceCIDR** +> V1Status deleteCollectionServiceCIDR(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body) + + + +delete collection of ServiceCIDR + +### Example +```java +// Import classes: +import io.kubernetes.client.openapi.ApiClient; +import io.kubernetes.client.openapi.ApiException; +import io.kubernetes.client.openapi.Configuration; +import io.kubernetes.client.openapi.auth.*; +import io.kubernetes.client.openapi.models.*; +import io.kubernetes.client.openapi.apis.NetworkingV1beta1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + NetworkingV1beta1Api apiInstance = new NetworkingV1beta1Api(defaultClient); + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + 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. + 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. + Integer gracePeriodSeconds = 56; // Integer | 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. + Boolean ignoreStoreReadErrorWithClusterBreakingPotential = true; // Boolean | if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it + String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. + Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + 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. 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. + String resourceVersion = "resourceVersion_example"; // String | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + String resourceVersionMatch = "resourceVersionMatch_example"; // String | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + Boolean sendInitialEvents = true; // Boolean | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | + try { + V1Status result = apiInstance.deleteCollectionServiceCIDR(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling NetworkingV1beta1Api#deleteCollectionServiceCIDR"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] + **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] + **gracePeriodSeconds** | **Integer**| 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. | [optional] + **ignoreStoreReadErrorWithClusterBreakingPotential** | **Boolean**| if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it | [optional] + **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] + **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] + **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. 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. | [optional] + **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] + **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] + **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] + **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] + +### Return type + +[**V1Status**](V1Status.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + + +# **deleteIPAddress** +> V1Status deleteIPAddress(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body) + + + +delete an IPAddress + +### Example +```java +// Import classes: +import io.kubernetes.client.openapi.ApiClient; +import io.kubernetes.client.openapi.ApiException; +import io.kubernetes.client.openapi.Configuration; +import io.kubernetes.client.openapi.auth.*; +import io.kubernetes.client.openapi.models.*; +import io.kubernetes.client.openapi.apis.NetworkingV1beta1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + NetworkingV1beta1Api apiInstance = new NetworkingV1beta1Api(defaultClient); + String name = "name_example"; // String | name of the IPAddress + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + 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 + Integer gracePeriodSeconds = 56; // Integer | 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. + Boolean ignoreStoreReadErrorWithClusterBreakingPotential = true; // Boolean | if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it + 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. 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. + V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | + try { + V1Status result = apiInstance.deleteIPAddress(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling NetworkingV1beta1Api#deleteIPAddress"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **String**| name of the IPAddress | + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] + **gracePeriodSeconds** | **Integer**| 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. | [optional] + **ignoreStoreReadErrorWithClusterBreakingPotential** | **Boolean**| if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it | [optional] + **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. 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. | [optional] + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] + +### Return type + +[**V1Status**](V1Status.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + + +# **deleteServiceCIDR** +> V1Status deleteServiceCIDR(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body) + + + +delete a ServiceCIDR + +### Example +```java +// Import classes: +import io.kubernetes.client.openapi.ApiClient; +import io.kubernetes.client.openapi.ApiException; +import io.kubernetes.client.openapi.Configuration; +import io.kubernetes.client.openapi.auth.*; +import io.kubernetes.client.openapi.models.*; +import io.kubernetes.client.openapi.apis.NetworkingV1beta1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + NetworkingV1beta1Api apiInstance = new NetworkingV1beta1Api(defaultClient); + String name = "name_example"; // String | name of the ServiceCIDR + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + 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 + Integer gracePeriodSeconds = 56; // Integer | 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. + Boolean ignoreStoreReadErrorWithClusterBreakingPotential = true; // Boolean | if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it + 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. 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. + V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | + try { + V1Status result = apiInstance.deleteServiceCIDR(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling NetworkingV1beta1Api#deleteServiceCIDR"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **String**| name of the ServiceCIDR | + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] + **gracePeriodSeconds** | **Integer**| 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. | [optional] + **ignoreStoreReadErrorWithClusterBreakingPotential** | **Boolean**| if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it | [optional] + **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. 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. | [optional] + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] + +### Return type + +[**V1Status**](V1Status.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + + +# **getAPIResources** +> V1APIResourceList getAPIResources() + + + +get available resources + +### Example +```java +// Import classes: +import io.kubernetes.client.openapi.ApiClient; +import io.kubernetes.client.openapi.ApiException; +import io.kubernetes.client.openapi.Configuration; +import io.kubernetes.client.openapi.auth.*; +import io.kubernetes.client.openapi.models.*; +import io.kubernetes.client.openapi.apis.NetworkingV1beta1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + NetworkingV1beta1Api apiInstance = new NetworkingV1beta1Api(defaultClient); + try { + V1APIResourceList result = apiInstance.getAPIResources(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling NetworkingV1beta1Api#getAPIResources"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters +This endpoint does not need any parameter. + +### Return type + +[**V1APIResourceList**](V1APIResourceList.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + + +# **listIPAddress** +> V1beta1IPAddressList listIPAddress(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch) + + + +list or watch objects of kind IPAddress + +### Example +```java +// Import classes: +import io.kubernetes.client.openapi.ApiClient; +import io.kubernetes.client.openapi.ApiException; +import io.kubernetes.client.openapi.Configuration; +import io.kubernetes.client.openapi.auth.*; +import io.kubernetes.client.openapi.models.*; +import io.kubernetes.client.openapi.apis.NetworkingV1beta1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + NetworkingV1beta1Api apiInstance = new NetworkingV1beta1Api(defaultClient); + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + 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. + 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. + String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. + String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. + Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + String resourceVersion = "resourceVersion_example"; // String | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + String resourceVersionMatch = "resourceVersionMatch_example"; // String | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + Boolean sendInitialEvents = true; // Boolean | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + 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. Specify resourceVersion. + try { + V1beta1IPAddressList result = apiInstance.listIPAddress(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling NetworkingV1beta1Api#listIPAddress"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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. | [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] + **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] + **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] + **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] + **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] + **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] + **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] + **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + +### Return type + +[**V1beta1IPAddressList**](V1beta1IPAddressList.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch, application/cbor-seq + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + + +# **listServiceCIDR** +> V1beta1ServiceCIDRList listServiceCIDR(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch) + + + +list or watch objects of kind ServiceCIDR + +### Example +```java +// Import classes: +import io.kubernetes.client.openapi.ApiClient; +import io.kubernetes.client.openapi.ApiException; +import io.kubernetes.client.openapi.Configuration; +import io.kubernetes.client.openapi.auth.*; +import io.kubernetes.client.openapi.models.*; +import io.kubernetes.client.openapi.apis.NetworkingV1beta1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + NetworkingV1beta1Api apiInstance = new NetworkingV1beta1Api(defaultClient); + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + 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. + 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. + String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. + String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. + Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + String resourceVersion = "resourceVersion_example"; // String | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + String resourceVersionMatch = "resourceVersionMatch_example"; // String | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + Boolean sendInitialEvents = true; // Boolean | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + 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. Specify resourceVersion. + try { + V1beta1ServiceCIDRList result = apiInstance.listServiceCIDR(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling NetworkingV1beta1Api#listServiceCIDR"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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. | [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] + **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] + **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] + **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] + **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] + **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] + **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] + **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + +### Return type + +[**V1beta1ServiceCIDRList**](V1beta1ServiceCIDRList.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch, application/cbor-seq + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + + +# **patchIPAddress** +> V1beta1IPAddress patchIPAddress(name, body, pretty, dryRun, fieldManager, fieldValidation, force) + + + +partially update the specified IPAddress + +### Example +```java +// Import classes: +import io.kubernetes.client.openapi.ApiClient; +import io.kubernetes.client.openapi.ApiException; +import io.kubernetes.client.openapi.Configuration; +import io.kubernetes.client.openapi.auth.*; +import io.kubernetes.client.openapi.models.*; +import io.kubernetes.client.openapi.apis.NetworkingV1beta1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + NetworkingV1beta1Api apiInstance = new NetworkingV1beta1Api(defaultClient); + String name = "name_example"; // String | name of the IPAddress + V1Patch body = new V1Patch(); // V1Patch | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + 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 fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). + String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. + Boolean force = true; // Boolean | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. + try { + V1beta1IPAddress result = apiInstance.patchIPAddress(name, body, pretty, dryRun, fieldManager, fieldValidation, force); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling NetworkingV1beta1Api#patchIPAddress"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **String**| name of the IPAddress | + **body** | **V1Patch**| | + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] + **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] + **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] + **force** | **Boolean**| Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | [optional] + +### Return type + +[**V1beta1IPAddress**](V1beta1IPAddress.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**401** | Unauthorized | - | + + +# **patchServiceCIDR** +> V1beta1ServiceCIDR patchServiceCIDR(name, body, pretty, dryRun, fieldManager, fieldValidation, force) + + + +partially update the specified ServiceCIDR + +### Example +```java +// Import classes: +import io.kubernetes.client.openapi.ApiClient; +import io.kubernetes.client.openapi.ApiException; +import io.kubernetes.client.openapi.Configuration; +import io.kubernetes.client.openapi.auth.*; +import io.kubernetes.client.openapi.models.*; +import io.kubernetes.client.openapi.apis.NetworkingV1beta1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + NetworkingV1beta1Api apiInstance = new NetworkingV1beta1Api(defaultClient); + String name = "name_example"; // String | name of the ServiceCIDR + V1Patch body = new V1Patch(); // V1Patch | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + 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 fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). + String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. + Boolean force = true; // Boolean | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. + try { + V1beta1ServiceCIDR result = apiInstance.patchServiceCIDR(name, body, pretty, dryRun, fieldManager, fieldValidation, force); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling NetworkingV1beta1Api#patchServiceCIDR"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **String**| name of the ServiceCIDR | + **body** | **V1Patch**| | + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] + **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] + **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] + **force** | **Boolean**| Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | [optional] + +### Return type + +[**V1beta1ServiceCIDR**](V1beta1ServiceCIDR.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**401** | Unauthorized | - | + + +# **patchServiceCIDRStatus** +> V1beta1ServiceCIDR patchServiceCIDRStatus(name, body, pretty, dryRun, fieldManager, fieldValidation, force) + + + +partially update status of the specified ServiceCIDR + +### Example +```java +// Import classes: +import io.kubernetes.client.openapi.ApiClient; +import io.kubernetes.client.openapi.ApiException; +import io.kubernetes.client.openapi.Configuration; +import io.kubernetes.client.openapi.auth.*; +import io.kubernetes.client.openapi.models.*; +import io.kubernetes.client.openapi.apis.NetworkingV1beta1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + NetworkingV1beta1Api apiInstance = new NetworkingV1beta1Api(defaultClient); + String name = "name_example"; // String | name of the ServiceCIDR + V1Patch body = new V1Patch(); // V1Patch | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + 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 fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). + String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. + Boolean force = true; // Boolean | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. + try { + V1beta1ServiceCIDR result = apiInstance.patchServiceCIDRStatus(name, body, pretty, dryRun, fieldManager, fieldValidation, force); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling NetworkingV1beta1Api#patchServiceCIDRStatus"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **String**| name of the ServiceCIDR | + **body** | **V1Patch**| | + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] + **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] + **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] + **force** | **Boolean**| Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | [optional] + +### Return type + +[**V1beta1ServiceCIDR**](V1beta1ServiceCIDR.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**401** | Unauthorized | - | + + +# **readIPAddress** +> V1beta1IPAddress readIPAddress(name, pretty) + + + +read the specified IPAddress + +### Example +```java +// Import classes: +import io.kubernetes.client.openapi.ApiClient; +import io.kubernetes.client.openapi.ApiException; +import io.kubernetes.client.openapi.Configuration; +import io.kubernetes.client.openapi.auth.*; +import io.kubernetes.client.openapi.models.*; +import io.kubernetes.client.openapi.apis.NetworkingV1beta1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + NetworkingV1beta1Api apiInstance = new NetworkingV1beta1Api(defaultClient); + String name = "name_example"; // String | name of the IPAddress + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + try { + V1beta1IPAddress result = apiInstance.readIPAddress(name, pretty); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling NetworkingV1beta1Api#readIPAddress"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **String**| name of the IPAddress | + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] + +### Return type + +[**V1beta1IPAddress**](V1beta1IPAddress.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + + +# **readServiceCIDR** +> V1beta1ServiceCIDR readServiceCIDR(name, pretty) + + + +read the specified ServiceCIDR + +### Example +```java +// Import classes: +import io.kubernetes.client.openapi.ApiClient; +import io.kubernetes.client.openapi.ApiException; +import io.kubernetes.client.openapi.Configuration; +import io.kubernetes.client.openapi.auth.*; +import io.kubernetes.client.openapi.models.*; +import io.kubernetes.client.openapi.apis.NetworkingV1beta1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + NetworkingV1beta1Api apiInstance = new NetworkingV1beta1Api(defaultClient); + String name = "name_example"; // String | name of the ServiceCIDR + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + try { + V1beta1ServiceCIDR result = apiInstance.readServiceCIDR(name, pretty); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling NetworkingV1beta1Api#readServiceCIDR"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **String**| name of the ServiceCIDR | + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] + +### Return type + +[**V1beta1ServiceCIDR**](V1beta1ServiceCIDR.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + + +# **readServiceCIDRStatus** +> V1beta1ServiceCIDR readServiceCIDRStatus(name, pretty) + + + +read status of the specified ServiceCIDR + +### Example +```java +// Import classes: +import io.kubernetes.client.openapi.ApiClient; +import io.kubernetes.client.openapi.ApiException; +import io.kubernetes.client.openapi.Configuration; +import io.kubernetes.client.openapi.auth.*; +import io.kubernetes.client.openapi.models.*; +import io.kubernetes.client.openapi.apis.NetworkingV1beta1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + NetworkingV1beta1Api apiInstance = new NetworkingV1beta1Api(defaultClient); + String name = "name_example"; // String | name of the ServiceCIDR + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + try { + V1beta1ServiceCIDR result = apiInstance.readServiceCIDRStatus(name, pretty); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling NetworkingV1beta1Api#readServiceCIDRStatus"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **String**| name of the ServiceCIDR | + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] + +### Return type + +[**V1beta1ServiceCIDR**](V1beta1ServiceCIDR.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + + +# **replaceIPAddress** +> V1beta1IPAddress replaceIPAddress(name, body, pretty, dryRun, fieldManager, fieldValidation) + + + +replace the specified IPAddress + +### Example +```java +// Import classes: +import io.kubernetes.client.openapi.ApiClient; +import io.kubernetes.client.openapi.ApiException; +import io.kubernetes.client.openapi.Configuration; +import io.kubernetes.client.openapi.auth.*; +import io.kubernetes.client.openapi.models.*; +import io.kubernetes.client.openapi.apis.NetworkingV1beta1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + NetworkingV1beta1Api apiInstance = new NetworkingV1beta1Api(defaultClient); + String name = "name_example"; // String | name of the IPAddress + V1beta1IPAddress body = new V1beta1IPAddress(); // V1beta1IPAddress | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + 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 fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. + try { + V1beta1IPAddress result = apiInstance.replaceIPAddress(name, body, pretty, dryRun, fieldManager, fieldValidation); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling NetworkingV1beta1Api#replaceIPAddress"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **String**| name of the IPAddress | + **body** | [**V1beta1IPAddress**](V1beta1IPAddress.md)| | + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] + **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] + **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] + +### Return type + +[**V1beta1IPAddress**](V1beta1IPAddress.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**401** | Unauthorized | - | + + +# **replaceServiceCIDR** +> V1beta1ServiceCIDR replaceServiceCIDR(name, body, pretty, dryRun, fieldManager, fieldValidation) + + + +replace the specified ServiceCIDR + +### Example +```java +// Import classes: +import io.kubernetes.client.openapi.ApiClient; +import io.kubernetes.client.openapi.ApiException; +import io.kubernetes.client.openapi.Configuration; +import io.kubernetes.client.openapi.auth.*; +import io.kubernetes.client.openapi.models.*; +import io.kubernetes.client.openapi.apis.NetworkingV1beta1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + NetworkingV1beta1Api apiInstance = new NetworkingV1beta1Api(defaultClient); + String name = "name_example"; // String | name of the ServiceCIDR + V1beta1ServiceCIDR body = new V1beta1ServiceCIDR(); // V1beta1ServiceCIDR | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + 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 fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. + try { + V1beta1ServiceCIDR result = apiInstance.replaceServiceCIDR(name, body, pretty, dryRun, fieldManager, fieldValidation); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling NetworkingV1beta1Api#replaceServiceCIDR"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **String**| name of the ServiceCIDR | + **body** | [**V1beta1ServiceCIDR**](V1beta1ServiceCIDR.md)| | + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] + **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] + **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] + +### Return type + +[**V1beta1ServiceCIDR**](V1beta1ServiceCIDR.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**401** | Unauthorized | - | + + +# **replaceServiceCIDRStatus** +> V1beta1ServiceCIDR replaceServiceCIDRStatus(name, body, pretty, dryRun, fieldManager, fieldValidation) + + + +replace status of the specified ServiceCIDR + +### Example +```java +// Import classes: +import io.kubernetes.client.openapi.ApiClient; +import io.kubernetes.client.openapi.ApiException; +import io.kubernetes.client.openapi.Configuration; +import io.kubernetes.client.openapi.auth.*; +import io.kubernetes.client.openapi.models.*; +import io.kubernetes.client.openapi.apis.NetworkingV1beta1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + NetworkingV1beta1Api apiInstance = new NetworkingV1beta1Api(defaultClient); + String name = "name_example"; // String | name of the ServiceCIDR + V1beta1ServiceCIDR body = new V1beta1ServiceCIDR(); // V1beta1ServiceCIDR | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + 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 fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. + try { + V1beta1ServiceCIDR result = apiInstance.replaceServiceCIDRStatus(name, body, pretty, dryRun, fieldManager, fieldValidation); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling NetworkingV1beta1Api#replaceServiceCIDRStatus"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **String**| name of the ServiceCIDR | + **body** | [**V1beta1ServiceCIDR**](V1beta1ServiceCIDR.md)| | + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] + **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] + **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] + +### Return type + +[**V1beta1ServiceCIDR**](V1beta1ServiceCIDR.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**401** | Unauthorized | - | + diff --git a/kubernetes/docs/NodeV1Api.md b/kubernetes/docs/NodeV1Api.md index b58bc496b5..ff94b07961 100644 --- a/kubernetes/docs/NodeV1Api.md +++ b/kubernetes/docs/NodeV1Api.md @@ -45,7 +45,7 @@ public class Example { NodeV1Api apiInstance = new NodeV1Api(defaultClient); V1RuntimeClass body = new V1RuntimeClass(); // V1RuntimeClass | - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). 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 fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. @@ -68,7 +68,7 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **body** | [**V1RuntimeClass**](V1RuntimeClass.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] @@ -84,7 +84,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -96,7 +96,7 @@ Name | Type | Description | Notes # **deleteCollectionRuntimeClass** -> V1Status deleteCollectionRuntimeClass(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body) +> V1Status deleteCollectionRuntimeClass(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body) @@ -124,11 +124,12 @@ public class Example { //BearerToken.setApiKeyPrefix("Token"); NodeV1Api apiInstance = new NodeV1Api(defaultClient); - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). 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. 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. Integer gracePeriodSeconds = 56; // Integer | 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. + Boolean ignoreStoreReadErrorWithClusterBreakingPotential = true; // Boolean | if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. 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. @@ -139,7 +140,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. V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | try { - V1Status result = apiInstance.deleteCollectionRuntimeClass(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); + V1Status result = apiInstance.deleteCollectionRuntimeClass(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling NodeV1Api#deleteCollectionRuntimeClass"); @@ -156,11 +157,12 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] **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] **gracePeriodSeconds** | **Integer**| 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. | [optional] + **ignoreStoreReadErrorWithClusterBreakingPotential** | **Boolean**| if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it | [optional] **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] **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] @@ -182,7 +184,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -192,7 +194,7 @@ Name | Type | Description | Notes # **deleteRuntimeClass** -> V1Status deleteRuntimeClass(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body) +> V1Status deleteRuntimeClass(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body) @@ -221,14 +223,15 @@ public class Example { NodeV1Api apiInstance = new NodeV1Api(defaultClient); String name = "name_example"; // String | name of the RuntimeClass - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). 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 Integer gracePeriodSeconds = 56; // Integer | 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. + Boolean ignoreStoreReadErrorWithClusterBreakingPotential = true; // Boolean | if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it 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. 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. V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | try { - V1Status result = apiInstance.deleteRuntimeClass(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body); + V1Status result = apiInstance.deleteRuntimeClass(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling NodeV1Api#deleteRuntimeClass"); @@ -246,9 +249,10 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **String**| name of the RuntimeClass | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] **gracePeriodSeconds** | **Integer**| 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. | [optional] + **ignoreStoreReadErrorWithClusterBreakingPotential** | **Boolean**| if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it | [optional] **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. 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. | [optional] **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] @@ -264,7 +268,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -331,7 +335,7 @@ This endpoint does not need any parameter. ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -369,7 +373,7 @@ public class Example { //BearerToken.setApiKeyPrefix("Token"); NodeV1Api apiInstance = new NodeV1Api(defaultClient); - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). 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. 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. String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. @@ -398,7 +402,7 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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. | [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] **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] @@ -421,7 +425,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch, application/cbor-seq ### HTTP response details | Status code | Description | Response headers | @@ -461,7 +465,7 @@ public class Example { NodeV1Api apiInstance = new NodeV1Api(defaultClient); String name = "name_example"; // String | name of the RuntimeClass V1Patch body = new V1Patch(); // V1Patch | - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). 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 fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. @@ -486,7 +490,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **String**| name of the RuntimeClass | **body** | **V1Patch**| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] @@ -503,7 +507,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -543,7 +547,7 @@ public class Example { NodeV1Api apiInstance = new NodeV1Api(defaultClient); String name = "name_example"; // String | name of the RuntimeClass - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). try { V1RuntimeClass result = apiInstance.readRuntimeClass(name, pretty); System.out.println(result); @@ -563,7 +567,7 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **String**| name of the RuntimeClass | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] ### Return type @@ -576,7 +580,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -616,7 +620,7 @@ public class Example { NodeV1Api apiInstance = new NodeV1Api(defaultClient); String name = "name_example"; // String | name of the RuntimeClass V1RuntimeClass body = new V1RuntimeClass(); // V1RuntimeClass | - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). 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 fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. @@ -640,7 +644,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **String**| name of the RuntimeClass | **body** | [**V1RuntimeClass**](V1RuntimeClass.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] @@ -656,7 +660,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | diff --git a/kubernetes/docs/PolicyV1Api.md b/kubernetes/docs/PolicyV1Api.md index 9afe0a8745..4876a34de3 100644 --- a/kubernetes/docs/PolicyV1Api.md +++ b/kubernetes/docs/PolicyV1Api.md @@ -50,7 +50,7 @@ public class Example { PolicyV1Api apiInstance = new PolicyV1Api(defaultClient); String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects V1PodDisruptionBudget body = new V1PodDisruptionBudget(); // V1PodDisruptionBudget | - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). 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 fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. @@ -74,7 +74,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **namespace** | **String**| object name and auth scope, such as for teams and projects | **body** | [**V1PodDisruptionBudget**](V1PodDisruptionBudget.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] @@ -90,7 +90,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -102,7 +102,7 @@ Name | Type | Description | Notes # **deleteCollectionNamespacedPodDisruptionBudget** -> V1Status deleteCollectionNamespacedPodDisruptionBudget(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body) +> V1Status deleteCollectionNamespacedPodDisruptionBudget(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body) @@ -131,11 +131,12 @@ public class Example { PolicyV1Api apiInstance = new PolicyV1Api(defaultClient); String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). 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. 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. Integer gracePeriodSeconds = 56; // Integer | 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. + Boolean ignoreStoreReadErrorWithClusterBreakingPotential = true; // Boolean | if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. 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. @@ -146,7 +147,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. V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | try { - V1Status result = apiInstance.deleteCollectionNamespacedPodDisruptionBudget(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); + V1Status result = apiInstance.deleteCollectionNamespacedPodDisruptionBudget(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling PolicyV1Api#deleteCollectionNamespacedPodDisruptionBudget"); @@ -164,11 +165,12 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **namespace** | **String**| object name and auth scope, such as for teams and projects | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] **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] **gracePeriodSeconds** | **Integer**| 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. | [optional] + **ignoreStoreReadErrorWithClusterBreakingPotential** | **Boolean**| if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it | [optional] **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] **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] @@ -190,7 +192,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -200,7 +202,7 @@ Name | Type | Description | Notes # **deleteNamespacedPodDisruptionBudget** -> V1Status deleteNamespacedPodDisruptionBudget(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body) +> V1Status deleteNamespacedPodDisruptionBudget(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body) @@ -230,14 +232,15 @@ public class Example { PolicyV1Api apiInstance = new PolicyV1Api(defaultClient); String name = "name_example"; // String | name of the PodDisruptionBudget String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). 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 Integer gracePeriodSeconds = 56; // Integer | 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. + Boolean ignoreStoreReadErrorWithClusterBreakingPotential = true; // Boolean | if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it 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. 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. V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | try { - V1Status result = apiInstance.deleteNamespacedPodDisruptionBudget(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body); + V1Status result = apiInstance.deleteNamespacedPodDisruptionBudget(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling PolicyV1Api#deleteNamespacedPodDisruptionBudget"); @@ -256,9 +259,10 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **String**| name of the PodDisruptionBudget | **namespace** | **String**| object name and auth scope, such as for teams and projects | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] **gracePeriodSeconds** | **Integer**| 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. | [optional] + **ignoreStoreReadErrorWithClusterBreakingPotential** | **Boolean**| if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it | [optional] **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. 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. | [optional] **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] @@ -274,7 +278,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -341,7 +345,7 @@ This endpoint does not need any parameter. ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -380,7 +384,7 @@ public class Example { PolicyV1Api apiInstance = new PolicyV1Api(defaultClient); String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). 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. 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. String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. @@ -410,7 +414,7 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **namespace** | **String**| object name and auth scope, such as for teams and projects | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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. | [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] **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] @@ -433,7 +437,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch, application/cbor-seq ### HTTP response details | Status code | Description | Response headers | @@ -476,7 +480,7 @@ public class Example { String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). String resourceVersion = "resourceVersion_example"; // String | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset String resourceVersionMatch = "resourceVersionMatch_example"; // String | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset Boolean sendInitialEvents = true; // Boolean | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. @@ -505,7 +509,7 @@ Name | Type | Description | Notes **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] @@ -523,7 +527,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch, application/cbor-seq ### HTTP response details | Status code | Description | Response headers | @@ -564,7 +568,7 @@ public class Example { String name = "name_example"; // String | name of the PodDisruptionBudget String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects V1Patch body = new V1Patch(); // V1Patch | - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). 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 fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. @@ -590,7 +594,7 @@ Name | Type | Description | Notes **name** | **String**| name of the PodDisruptionBudget | **namespace** | **String**| object name and auth scope, such as for teams and projects | **body** | **V1Patch**| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] @@ -607,7 +611,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -649,7 +653,7 @@ public class Example { String name = "name_example"; // String | name of the PodDisruptionBudget String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects V1Patch body = new V1Patch(); // V1Patch | - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). 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 fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. @@ -675,7 +679,7 @@ Name | Type | Description | Notes **name** | **String**| name of the PodDisruptionBudget | **namespace** | **String**| object name and auth scope, such as for teams and projects | **body** | **V1Patch**| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] @@ -692,7 +696,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -733,7 +737,7 @@ public class Example { PolicyV1Api apiInstance = new PolicyV1Api(defaultClient); String name = "name_example"; // String | name of the PodDisruptionBudget String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). try { V1PodDisruptionBudget result = apiInstance.readNamespacedPodDisruptionBudget(name, namespace, pretty); System.out.println(result); @@ -754,7 +758,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **String**| name of the PodDisruptionBudget | **namespace** | **String**| object name and auth scope, such as for teams and projects | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] ### Return type @@ -767,7 +771,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -807,7 +811,7 @@ public class Example { PolicyV1Api apiInstance = new PolicyV1Api(defaultClient); String name = "name_example"; // String | name of the PodDisruptionBudget String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). try { V1PodDisruptionBudget result = apiInstance.readNamespacedPodDisruptionBudgetStatus(name, namespace, pretty); System.out.println(result); @@ -828,7 +832,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **String**| name of the PodDisruptionBudget | **namespace** | **String**| object name and auth scope, such as for teams and projects | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] ### Return type @@ -841,7 +845,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -882,7 +886,7 @@ public class Example { String name = "name_example"; // String | name of the PodDisruptionBudget String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects V1PodDisruptionBudget body = new V1PodDisruptionBudget(); // V1PodDisruptionBudget | - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). 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 fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. @@ -907,7 +911,7 @@ Name | Type | Description | Notes **name** | **String**| name of the PodDisruptionBudget | **namespace** | **String**| object name and auth scope, such as for teams and projects | **body** | [**V1PodDisruptionBudget**](V1PodDisruptionBudget.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] @@ -923,7 +927,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -965,7 +969,7 @@ public class Example { String name = "name_example"; // String | name of the PodDisruptionBudget String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects V1PodDisruptionBudget body = new V1PodDisruptionBudget(); // V1PodDisruptionBudget | - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). 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 fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. @@ -990,7 +994,7 @@ Name | Type | Description | Notes **name** | **String**| name of the PodDisruptionBudget | **namespace** | **String**| object name and auth scope, such as for teams and projects | **body** | [**V1PodDisruptionBudget**](V1PodDisruptionBudget.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] @@ -1006,7 +1010,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | diff --git a/kubernetes/docs/RbacAuthorizationV1Api.md b/kubernetes/docs/RbacAuthorizationV1Api.md index 094f40f2fc..052e402400 100644 --- a/kubernetes/docs/RbacAuthorizationV1Api.md +++ b/kubernetes/docs/RbacAuthorizationV1Api.md @@ -68,7 +68,7 @@ public class Example { RbacAuthorizationV1Api apiInstance = new RbacAuthorizationV1Api(defaultClient); V1ClusterRole body = new V1ClusterRole(); // V1ClusterRole | - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). 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 fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. @@ -91,7 +91,7 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **body** | [**V1ClusterRole**](V1ClusterRole.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] @@ -107,7 +107,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -148,7 +148,7 @@ public class Example { RbacAuthorizationV1Api apiInstance = new RbacAuthorizationV1Api(defaultClient); V1ClusterRoleBinding body = new V1ClusterRoleBinding(); // V1ClusterRoleBinding | - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). 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 fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. @@ -171,7 +171,7 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **body** | [**V1ClusterRoleBinding**](V1ClusterRoleBinding.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] @@ -187,7 +187,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -229,7 +229,7 @@ public class Example { RbacAuthorizationV1Api apiInstance = new RbacAuthorizationV1Api(defaultClient); String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects V1Role body = new V1Role(); // V1Role | - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). 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 fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. @@ -253,7 +253,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **namespace** | **String**| object name and auth scope, such as for teams and projects | **body** | [**V1Role**](V1Role.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] @@ -269,7 +269,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -311,7 +311,7 @@ public class Example { RbacAuthorizationV1Api apiInstance = new RbacAuthorizationV1Api(defaultClient); String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects V1RoleBinding body = new V1RoleBinding(); // V1RoleBinding | - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). 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 fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. @@ -335,7 +335,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **namespace** | **String**| object name and auth scope, such as for teams and projects | **body** | [**V1RoleBinding**](V1RoleBinding.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] @@ -351,7 +351,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -363,7 +363,7 @@ Name | Type | Description | Notes # **deleteClusterRole** -> V1Status deleteClusterRole(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body) +> V1Status deleteClusterRole(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body) @@ -392,14 +392,15 @@ public class Example { RbacAuthorizationV1Api apiInstance = new RbacAuthorizationV1Api(defaultClient); String name = "name_example"; // String | name of the ClusterRole - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). 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 Integer gracePeriodSeconds = 56; // Integer | 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. + Boolean ignoreStoreReadErrorWithClusterBreakingPotential = true; // Boolean | if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it 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. 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. V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | try { - V1Status result = apiInstance.deleteClusterRole(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body); + V1Status result = apiInstance.deleteClusterRole(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling RbacAuthorizationV1Api#deleteClusterRole"); @@ -417,9 +418,10 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **String**| name of the ClusterRole | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] **gracePeriodSeconds** | **Integer**| 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. | [optional] + **ignoreStoreReadErrorWithClusterBreakingPotential** | **Boolean**| if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it | [optional] **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. 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. | [optional] **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] @@ -435,7 +437,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -446,7 +448,7 @@ Name | Type | Description | Notes # **deleteClusterRoleBinding** -> V1Status deleteClusterRoleBinding(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body) +> V1Status deleteClusterRoleBinding(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body) @@ -475,14 +477,15 @@ public class Example { RbacAuthorizationV1Api apiInstance = new RbacAuthorizationV1Api(defaultClient); String name = "name_example"; // String | name of the ClusterRoleBinding - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). 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 Integer gracePeriodSeconds = 56; // Integer | 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. + Boolean ignoreStoreReadErrorWithClusterBreakingPotential = true; // Boolean | if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it 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. 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. V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | try { - V1Status result = apiInstance.deleteClusterRoleBinding(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body); + V1Status result = apiInstance.deleteClusterRoleBinding(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling RbacAuthorizationV1Api#deleteClusterRoleBinding"); @@ -500,9 +503,10 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **String**| name of the ClusterRoleBinding | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] **gracePeriodSeconds** | **Integer**| 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. | [optional] + **ignoreStoreReadErrorWithClusterBreakingPotential** | **Boolean**| if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it | [optional] **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. 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. | [optional] **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] @@ -518,7 +522,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -529,7 +533,7 @@ Name | Type | Description | Notes # **deleteCollectionClusterRole** -> V1Status deleteCollectionClusterRole(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body) +> V1Status deleteCollectionClusterRole(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body) @@ -557,11 +561,12 @@ public class Example { //BearerToken.setApiKeyPrefix("Token"); RbacAuthorizationV1Api apiInstance = new RbacAuthorizationV1Api(defaultClient); - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). 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. 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. Integer gracePeriodSeconds = 56; // Integer | 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. + Boolean ignoreStoreReadErrorWithClusterBreakingPotential = true; // Boolean | if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. 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. @@ -572,7 +577,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. V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | try { - V1Status result = apiInstance.deleteCollectionClusterRole(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); + V1Status result = apiInstance.deleteCollectionClusterRole(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling RbacAuthorizationV1Api#deleteCollectionClusterRole"); @@ -589,11 +594,12 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] **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] **gracePeriodSeconds** | **Integer**| 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. | [optional] + **ignoreStoreReadErrorWithClusterBreakingPotential** | **Boolean**| if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it | [optional] **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] **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] @@ -615,7 +621,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -625,7 +631,7 @@ Name | Type | Description | Notes # **deleteCollectionClusterRoleBinding** -> V1Status deleteCollectionClusterRoleBinding(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body) +> V1Status deleteCollectionClusterRoleBinding(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body) @@ -653,11 +659,12 @@ public class Example { //BearerToken.setApiKeyPrefix("Token"); RbacAuthorizationV1Api apiInstance = new RbacAuthorizationV1Api(defaultClient); - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). 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. 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. Integer gracePeriodSeconds = 56; // Integer | 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. + Boolean ignoreStoreReadErrorWithClusterBreakingPotential = true; // Boolean | if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. 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. @@ -668,7 +675,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. V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | try { - V1Status result = apiInstance.deleteCollectionClusterRoleBinding(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); + V1Status result = apiInstance.deleteCollectionClusterRoleBinding(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling RbacAuthorizationV1Api#deleteCollectionClusterRoleBinding"); @@ -685,11 +692,12 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] **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] **gracePeriodSeconds** | **Integer**| 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. | [optional] + **ignoreStoreReadErrorWithClusterBreakingPotential** | **Boolean**| if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it | [optional] **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] **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] @@ -711,7 +719,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -721,7 +729,7 @@ Name | Type | Description | Notes # **deleteCollectionNamespacedRole** -> V1Status deleteCollectionNamespacedRole(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body) +> V1Status deleteCollectionNamespacedRole(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body) @@ -750,11 +758,12 @@ public class Example { RbacAuthorizationV1Api apiInstance = new RbacAuthorizationV1Api(defaultClient); String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). 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. 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. Integer gracePeriodSeconds = 56; // Integer | 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. + Boolean ignoreStoreReadErrorWithClusterBreakingPotential = true; // Boolean | if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. 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. @@ -765,7 +774,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. V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | try { - V1Status result = apiInstance.deleteCollectionNamespacedRole(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); + V1Status result = apiInstance.deleteCollectionNamespacedRole(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling RbacAuthorizationV1Api#deleteCollectionNamespacedRole"); @@ -783,11 +792,12 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **namespace** | **String**| object name and auth scope, such as for teams and projects | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] **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] **gracePeriodSeconds** | **Integer**| 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. | [optional] + **ignoreStoreReadErrorWithClusterBreakingPotential** | **Boolean**| if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it | [optional] **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] **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] @@ -809,7 +819,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -819,7 +829,7 @@ Name | Type | Description | Notes # **deleteCollectionNamespacedRoleBinding** -> V1Status deleteCollectionNamespacedRoleBinding(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body) +> V1Status deleteCollectionNamespacedRoleBinding(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body) @@ -848,11 +858,12 @@ public class Example { RbacAuthorizationV1Api apiInstance = new RbacAuthorizationV1Api(defaultClient); String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). 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. 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. Integer gracePeriodSeconds = 56; // Integer | 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. + Boolean ignoreStoreReadErrorWithClusterBreakingPotential = true; // Boolean | if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. 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. @@ -863,7 +874,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. V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | try { - V1Status result = apiInstance.deleteCollectionNamespacedRoleBinding(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); + V1Status result = apiInstance.deleteCollectionNamespacedRoleBinding(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling RbacAuthorizationV1Api#deleteCollectionNamespacedRoleBinding"); @@ -881,11 +892,12 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **namespace** | **String**| object name and auth scope, such as for teams and projects | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] **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] **gracePeriodSeconds** | **Integer**| 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. | [optional] + **ignoreStoreReadErrorWithClusterBreakingPotential** | **Boolean**| if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it | [optional] **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] **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] @@ -907,7 +919,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -917,7 +929,7 @@ Name | Type | Description | Notes # **deleteNamespacedRole** -> V1Status deleteNamespacedRole(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body) +> V1Status deleteNamespacedRole(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body) @@ -947,14 +959,15 @@ public class Example { RbacAuthorizationV1Api apiInstance = new RbacAuthorizationV1Api(defaultClient); String name = "name_example"; // String | name of the Role String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). 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 Integer gracePeriodSeconds = 56; // Integer | 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. + Boolean ignoreStoreReadErrorWithClusterBreakingPotential = true; // Boolean | if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it 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. 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. V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | try { - V1Status result = apiInstance.deleteNamespacedRole(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body); + V1Status result = apiInstance.deleteNamespacedRole(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling RbacAuthorizationV1Api#deleteNamespacedRole"); @@ -973,9 +986,10 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **String**| name of the Role | **namespace** | **String**| object name and auth scope, such as for teams and projects | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] **gracePeriodSeconds** | **Integer**| 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. | [optional] + **ignoreStoreReadErrorWithClusterBreakingPotential** | **Boolean**| if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it | [optional] **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. 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. | [optional] **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] @@ -991,7 +1005,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -1002,7 +1016,7 @@ Name | Type | Description | Notes # **deleteNamespacedRoleBinding** -> V1Status deleteNamespacedRoleBinding(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body) +> V1Status deleteNamespacedRoleBinding(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body) @@ -1032,14 +1046,15 @@ public class Example { RbacAuthorizationV1Api apiInstance = new RbacAuthorizationV1Api(defaultClient); String name = "name_example"; // String | name of the RoleBinding String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). 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 Integer gracePeriodSeconds = 56; // Integer | 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. + Boolean ignoreStoreReadErrorWithClusterBreakingPotential = true; // Boolean | if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it 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. 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. V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | try { - V1Status result = apiInstance.deleteNamespacedRoleBinding(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body); + V1Status result = apiInstance.deleteNamespacedRoleBinding(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling RbacAuthorizationV1Api#deleteNamespacedRoleBinding"); @@ -1058,9 +1073,10 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **String**| name of the RoleBinding | **namespace** | **String**| object name and auth scope, such as for teams and projects | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] **gracePeriodSeconds** | **Integer**| 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. | [optional] + **ignoreStoreReadErrorWithClusterBreakingPotential** | **Boolean**| if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it | [optional] **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. 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. | [optional] **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] @@ -1076,7 +1092,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -1143,7 +1159,7 @@ This endpoint does not need any parameter. ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -1181,7 +1197,7 @@ public class Example { //BearerToken.setApiKeyPrefix("Token"); RbacAuthorizationV1Api apiInstance = new RbacAuthorizationV1Api(defaultClient); - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). 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. 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. String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. @@ -1210,7 +1226,7 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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. | [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] **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] @@ -1233,7 +1249,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch, application/cbor-seq ### HTTP response details | Status code | Description | Response headers | @@ -1271,7 +1287,7 @@ public class Example { //BearerToken.setApiKeyPrefix("Token"); RbacAuthorizationV1Api apiInstance = new RbacAuthorizationV1Api(defaultClient); - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). 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. 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. String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. @@ -1300,7 +1316,7 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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. | [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] **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] @@ -1323,7 +1339,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch, application/cbor-seq ### HTTP response details | Status code | Description | Response headers | @@ -1362,7 +1378,7 @@ public class Example { RbacAuthorizationV1Api apiInstance = new RbacAuthorizationV1Api(defaultClient); String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). 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. 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. String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. @@ -1392,7 +1408,7 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **namespace** | **String**| object name and auth scope, such as for teams and projects | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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. | [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] **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] @@ -1415,7 +1431,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch, application/cbor-seq ### HTTP response details | Status code | Description | Response headers | @@ -1454,7 +1470,7 @@ public class Example { RbacAuthorizationV1Api apiInstance = new RbacAuthorizationV1Api(defaultClient); String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). 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. 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. String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. @@ -1484,7 +1500,7 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **namespace** | **String**| object name and auth scope, such as for teams and projects | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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. | [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] **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] @@ -1507,7 +1523,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch, application/cbor-seq ### HTTP response details | Status code | Description | Response headers | @@ -1550,7 +1566,7 @@ public class Example { String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). String resourceVersion = "resourceVersion_example"; // String | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset String resourceVersionMatch = "resourceVersionMatch_example"; // String | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset Boolean sendInitialEvents = true; // Boolean | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. @@ -1579,7 +1595,7 @@ Name | Type | Description | Notes **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] @@ -1597,7 +1613,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch, application/cbor-seq ### HTTP response details | Status code | Description | Response headers | @@ -1640,7 +1656,7 @@ public class Example { String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). String resourceVersion = "resourceVersion_example"; // String | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset String resourceVersionMatch = "resourceVersionMatch_example"; // String | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset Boolean sendInitialEvents = true; // Boolean | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. @@ -1669,7 +1685,7 @@ Name | Type | Description | Notes **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] @@ -1687,7 +1703,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch, application/cbor-seq ### HTTP response details | Status code | Description | Response headers | @@ -1727,7 +1743,7 @@ public class Example { RbacAuthorizationV1Api apiInstance = new RbacAuthorizationV1Api(defaultClient); String name = "name_example"; // String | name of the ClusterRole V1Patch body = new V1Patch(); // V1Patch | - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). 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 fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. @@ -1752,7 +1768,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **String**| name of the ClusterRole | **body** | **V1Patch**| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] @@ -1769,7 +1785,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -1810,7 +1826,7 @@ public class Example { RbacAuthorizationV1Api apiInstance = new RbacAuthorizationV1Api(defaultClient); String name = "name_example"; // String | name of the ClusterRoleBinding V1Patch body = new V1Patch(); // V1Patch | - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). 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 fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. @@ -1835,7 +1851,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **String**| name of the ClusterRoleBinding | **body** | **V1Patch**| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] @@ -1852,7 +1868,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -1894,7 +1910,7 @@ public class Example { String name = "name_example"; // String | name of the Role String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects V1Patch body = new V1Patch(); // V1Patch | - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). 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 fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. @@ -1920,7 +1936,7 @@ Name | Type | Description | Notes **name** | **String**| name of the Role | **namespace** | **String**| object name and auth scope, such as for teams and projects | **body** | **V1Patch**| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] @@ -1937,7 +1953,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -1979,7 +1995,7 @@ public class Example { String name = "name_example"; // String | name of the RoleBinding String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects V1Patch body = new V1Patch(); // V1Patch | - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). 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 fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. @@ -2005,7 +2021,7 @@ Name | Type | Description | Notes **name** | **String**| name of the RoleBinding | **namespace** | **String**| object name and auth scope, such as for teams and projects | **body** | **V1Patch**| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] @@ -2022,7 +2038,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -2062,7 +2078,7 @@ public class Example { RbacAuthorizationV1Api apiInstance = new RbacAuthorizationV1Api(defaultClient); String name = "name_example"; // String | name of the ClusterRole - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). try { V1ClusterRole result = apiInstance.readClusterRole(name, pretty); System.out.println(result); @@ -2082,7 +2098,7 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **String**| name of the ClusterRole | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] ### Return type @@ -2095,7 +2111,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -2134,7 +2150,7 @@ public class Example { RbacAuthorizationV1Api apiInstance = new RbacAuthorizationV1Api(defaultClient); String name = "name_example"; // String | name of the ClusterRoleBinding - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). try { V1ClusterRoleBinding result = apiInstance.readClusterRoleBinding(name, pretty); System.out.println(result); @@ -2154,7 +2170,7 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **String**| name of the ClusterRoleBinding | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] ### Return type @@ -2167,7 +2183,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -2207,7 +2223,7 @@ public class Example { RbacAuthorizationV1Api apiInstance = new RbacAuthorizationV1Api(defaultClient); String name = "name_example"; // String | name of the Role String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). try { V1Role result = apiInstance.readNamespacedRole(name, namespace, pretty); System.out.println(result); @@ -2228,7 +2244,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **String**| name of the Role | **namespace** | **String**| object name and auth scope, such as for teams and projects | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] ### Return type @@ -2241,7 +2257,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -2281,7 +2297,7 @@ public class Example { RbacAuthorizationV1Api apiInstance = new RbacAuthorizationV1Api(defaultClient); String name = "name_example"; // String | name of the RoleBinding String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). try { V1RoleBinding result = apiInstance.readNamespacedRoleBinding(name, namespace, pretty); System.out.println(result); @@ -2302,7 +2318,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **String**| name of the RoleBinding | **namespace** | **String**| object name and auth scope, such as for teams and projects | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] ### Return type @@ -2315,7 +2331,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -2355,7 +2371,7 @@ public class Example { RbacAuthorizationV1Api apiInstance = new RbacAuthorizationV1Api(defaultClient); String name = "name_example"; // String | name of the ClusterRole V1ClusterRole body = new V1ClusterRole(); // V1ClusterRole | - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). 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 fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. @@ -2379,7 +2395,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **String**| name of the ClusterRole | **body** | [**V1ClusterRole**](V1ClusterRole.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] @@ -2395,7 +2411,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -2436,7 +2452,7 @@ public class Example { RbacAuthorizationV1Api apiInstance = new RbacAuthorizationV1Api(defaultClient); String name = "name_example"; // String | name of the ClusterRoleBinding V1ClusterRoleBinding body = new V1ClusterRoleBinding(); // V1ClusterRoleBinding | - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). 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 fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. @@ -2460,7 +2476,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **String**| name of the ClusterRoleBinding | **body** | [**V1ClusterRoleBinding**](V1ClusterRoleBinding.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] @@ -2476,7 +2492,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -2518,7 +2534,7 @@ public class Example { String name = "name_example"; // String | name of the Role String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects V1Role body = new V1Role(); // V1Role | - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). 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 fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. @@ -2543,7 +2559,7 @@ Name | Type | Description | Notes **name** | **String**| name of the Role | **namespace** | **String**| object name and auth scope, such as for teams and projects | **body** | [**V1Role**](V1Role.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] @@ -2559,7 +2575,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -2601,7 +2617,7 @@ public class Example { String name = "name_example"; // String | name of the RoleBinding String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects V1RoleBinding body = new V1RoleBinding(); // V1RoleBinding | - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). 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 fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. @@ -2626,7 +2642,7 @@ Name | Type | Description | Notes **name** | **String**| name of the RoleBinding | **namespace** | **String**| object name and auth scope, such as for teams and projects | **body** | [**V1RoleBinding**](V1RoleBinding.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] @@ -2642,7 +2658,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | diff --git a/kubernetes/docs/RbacV1Subject.md b/kubernetes/docs/RbacV1Subject.md new file mode 100644 index 0000000000..a979dc6c3c --- /dev/null +++ b/kubernetes/docs/RbacV1Subject.md @@ -0,0 +1,16 @@ + + +# RbacV1Subject + +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. +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**apiGroup** | **String** | 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. | [optional] +**kind** | **String** | 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. | +**name** | **String** | Name of the object being referenced. | +**namespace** | **String** | 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. | [optional] + + + diff --git a/kubernetes/docs/ResourceV1alpha2Api.md b/kubernetes/docs/ResourceV1alpha2Api.md deleted file mode 100644 index f652c91a22..0000000000 --- a/kubernetes/docs/ResourceV1alpha2Api.md +++ /dev/null @@ -1,3248 +0,0 @@ -# ResourceV1alpha2Api - -All URIs are relative to *http://localhost* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**createNamespacedPodSchedulingContext**](ResourceV1alpha2Api.md#createNamespacedPodSchedulingContext) | **POST** /apis/resource.k8s.io/v1alpha2/namespaces/{namespace}/podschedulingcontexts | -[**createNamespacedResourceClaim**](ResourceV1alpha2Api.md#createNamespacedResourceClaim) | **POST** /apis/resource.k8s.io/v1alpha2/namespaces/{namespace}/resourceclaims | -[**createNamespacedResourceClaimTemplate**](ResourceV1alpha2Api.md#createNamespacedResourceClaimTemplate) | **POST** /apis/resource.k8s.io/v1alpha2/namespaces/{namespace}/resourceclaimtemplates | -[**createResourceClass**](ResourceV1alpha2Api.md#createResourceClass) | **POST** /apis/resource.k8s.io/v1alpha2/resourceclasses | -[**deleteCollectionNamespacedPodSchedulingContext**](ResourceV1alpha2Api.md#deleteCollectionNamespacedPodSchedulingContext) | **DELETE** /apis/resource.k8s.io/v1alpha2/namespaces/{namespace}/podschedulingcontexts | -[**deleteCollectionNamespacedResourceClaim**](ResourceV1alpha2Api.md#deleteCollectionNamespacedResourceClaim) | **DELETE** /apis/resource.k8s.io/v1alpha2/namespaces/{namespace}/resourceclaims | -[**deleteCollectionNamespacedResourceClaimTemplate**](ResourceV1alpha2Api.md#deleteCollectionNamespacedResourceClaimTemplate) | **DELETE** /apis/resource.k8s.io/v1alpha2/namespaces/{namespace}/resourceclaimtemplates | -[**deleteCollectionResourceClass**](ResourceV1alpha2Api.md#deleteCollectionResourceClass) | **DELETE** /apis/resource.k8s.io/v1alpha2/resourceclasses | -[**deleteNamespacedPodSchedulingContext**](ResourceV1alpha2Api.md#deleteNamespacedPodSchedulingContext) | **DELETE** /apis/resource.k8s.io/v1alpha2/namespaces/{namespace}/podschedulingcontexts/{name} | -[**deleteNamespacedResourceClaim**](ResourceV1alpha2Api.md#deleteNamespacedResourceClaim) | **DELETE** /apis/resource.k8s.io/v1alpha2/namespaces/{namespace}/resourceclaims/{name} | -[**deleteNamespacedResourceClaimTemplate**](ResourceV1alpha2Api.md#deleteNamespacedResourceClaimTemplate) | **DELETE** /apis/resource.k8s.io/v1alpha2/namespaces/{namespace}/resourceclaimtemplates/{name} | -[**deleteResourceClass**](ResourceV1alpha2Api.md#deleteResourceClass) | **DELETE** /apis/resource.k8s.io/v1alpha2/resourceclasses/{name} | -[**getAPIResources**](ResourceV1alpha2Api.md#getAPIResources) | **GET** /apis/resource.k8s.io/v1alpha2/ | -[**listNamespacedPodSchedulingContext**](ResourceV1alpha2Api.md#listNamespacedPodSchedulingContext) | **GET** /apis/resource.k8s.io/v1alpha2/namespaces/{namespace}/podschedulingcontexts | -[**listNamespacedResourceClaim**](ResourceV1alpha2Api.md#listNamespacedResourceClaim) | **GET** /apis/resource.k8s.io/v1alpha2/namespaces/{namespace}/resourceclaims | -[**listNamespacedResourceClaimTemplate**](ResourceV1alpha2Api.md#listNamespacedResourceClaimTemplate) | **GET** /apis/resource.k8s.io/v1alpha2/namespaces/{namespace}/resourceclaimtemplates | -[**listPodSchedulingContextForAllNamespaces**](ResourceV1alpha2Api.md#listPodSchedulingContextForAllNamespaces) | **GET** /apis/resource.k8s.io/v1alpha2/podschedulingcontexts | -[**listResourceClaimForAllNamespaces**](ResourceV1alpha2Api.md#listResourceClaimForAllNamespaces) | **GET** /apis/resource.k8s.io/v1alpha2/resourceclaims | -[**listResourceClaimTemplateForAllNamespaces**](ResourceV1alpha2Api.md#listResourceClaimTemplateForAllNamespaces) | **GET** /apis/resource.k8s.io/v1alpha2/resourceclaimtemplates | -[**listResourceClass**](ResourceV1alpha2Api.md#listResourceClass) | **GET** /apis/resource.k8s.io/v1alpha2/resourceclasses | -[**patchNamespacedPodSchedulingContext**](ResourceV1alpha2Api.md#patchNamespacedPodSchedulingContext) | **PATCH** /apis/resource.k8s.io/v1alpha2/namespaces/{namespace}/podschedulingcontexts/{name} | -[**patchNamespacedPodSchedulingContextStatus**](ResourceV1alpha2Api.md#patchNamespacedPodSchedulingContextStatus) | **PATCH** /apis/resource.k8s.io/v1alpha2/namespaces/{namespace}/podschedulingcontexts/{name}/status | -[**patchNamespacedResourceClaim**](ResourceV1alpha2Api.md#patchNamespacedResourceClaim) | **PATCH** /apis/resource.k8s.io/v1alpha2/namespaces/{namespace}/resourceclaims/{name} | -[**patchNamespacedResourceClaimStatus**](ResourceV1alpha2Api.md#patchNamespacedResourceClaimStatus) | **PATCH** /apis/resource.k8s.io/v1alpha2/namespaces/{namespace}/resourceclaims/{name}/status | -[**patchNamespacedResourceClaimTemplate**](ResourceV1alpha2Api.md#patchNamespacedResourceClaimTemplate) | **PATCH** /apis/resource.k8s.io/v1alpha2/namespaces/{namespace}/resourceclaimtemplates/{name} | -[**patchResourceClass**](ResourceV1alpha2Api.md#patchResourceClass) | **PATCH** /apis/resource.k8s.io/v1alpha2/resourceclasses/{name} | -[**readNamespacedPodSchedulingContext**](ResourceV1alpha2Api.md#readNamespacedPodSchedulingContext) | **GET** /apis/resource.k8s.io/v1alpha2/namespaces/{namespace}/podschedulingcontexts/{name} | -[**readNamespacedPodSchedulingContextStatus**](ResourceV1alpha2Api.md#readNamespacedPodSchedulingContextStatus) | **GET** /apis/resource.k8s.io/v1alpha2/namespaces/{namespace}/podschedulingcontexts/{name}/status | -[**readNamespacedResourceClaim**](ResourceV1alpha2Api.md#readNamespacedResourceClaim) | **GET** /apis/resource.k8s.io/v1alpha2/namespaces/{namespace}/resourceclaims/{name} | -[**readNamespacedResourceClaimStatus**](ResourceV1alpha2Api.md#readNamespacedResourceClaimStatus) | **GET** /apis/resource.k8s.io/v1alpha2/namespaces/{namespace}/resourceclaims/{name}/status | -[**readNamespacedResourceClaimTemplate**](ResourceV1alpha2Api.md#readNamespacedResourceClaimTemplate) | **GET** /apis/resource.k8s.io/v1alpha2/namespaces/{namespace}/resourceclaimtemplates/{name} | -[**readResourceClass**](ResourceV1alpha2Api.md#readResourceClass) | **GET** /apis/resource.k8s.io/v1alpha2/resourceclasses/{name} | -[**replaceNamespacedPodSchedulingContext**](ResourceV1alpha2Api.md#replaceNamespacedPodSchedulingContext) | **PUT** /apis/resource.k8s.io/v1alpha2/namespaces/{namespace}/podschedulingcontexts/{name} | -[**replaceNamespacedPodSchedulingContextStatus**](ResourceV1alpha2Api.md#replaceNamespacedPodSchedulingContextStatus) | **PUT** /apis/resource.k8s.io/v1alpha2/namespaces/{namespace}/podschedulingcontexts/{name}/status | -[**replaceNamespacedResourceClaim**](ResourceV1alpha2Api.md#replaceNamespacedResourceClaim) | **PUT** /apis/resource.k8s.io/v1alpha2/namespaces/{namespace}/resourceclaims/{name} | -[**replaceNamespacedResourceClaimStatus**](ResourceV1alpha2Api.md#replaceNamespacedResourceClaimStatus) | **PUT** /apis/resource.k8s.io/v1alpha2/namespaces/{namespace}/resourceclaims/{name}/status | -[**replaceNamespacedResourceClaimTemplate**](ResourceV1alpha2Api.md#replaceNamespacedResourceClaimTemplate) | **PUT** /apis/resource.k8s.io/v1alpha2/namespaces/{namespace}/resourceclaimtemplates/{name} | -[**replaceResourceClass**](ResourceV1alpha2Api.md#replaceResourceClass) | **PUT** /apis/resource.k8s.io/v1alpha2/resourceclasses/{name} | - - - -# **createNamespacedPodSchedulingContext** -> V1alpha2PodSchedulingContext createNamespacedPodSchedulingContext(namespace, body, pretty, dryRun, fieldManager, fieldValidation) - - - -create a PodSchedulingContext - -### Example -```java -// Import classes: -import io.kubernetes.client.openapi.ApiClient; -import io.kubernetes.client.openapi.ApiException; -import io.kubernetes.client.openapi.Configuration; -import io.kubernetes.client.openapi.auth.*; -import io.kubernetes.client.openapi.models.*; -import io.kubernetes.client.openapi.apis.ResourceV1alpha2Api; - -public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("http://localhost"); - - // Configure API key authorization: BearerToken - ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); - BearerToken.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //BearerToken.setApiKeyPrefix("Token"); - - ResourceV1alpha2Api apiInstance = new ResourceV1alpha2Api(defaultClient); - String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - V1alpha2PodSchedulingContext body = new V1alpha2PodSchedulingContext(); // V1alpha2PodSchedulingContext | - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. - 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 fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. - try { - V1alpha2PodSchedulingContext result = apiInstance.createNamespacedPodSchedulingContext(namespace, body, pretty, dryRun, fieldManager, fieldValidation); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling ResourceV1alpha2Api#createNamespacedPodSchedulingContext"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } - } -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **body** | [**V1alpha2PodSchedulingContext**](V1alpha2PodSchedulingContext.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [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] - **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] - **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] - -### Return type - -[**V1alpha2PodSchedulingContext**](V1alpha2PodSchedulingContext.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | OK | - | -**201** | Created | - | -**202** | Accepted | - | -**401** | Unauthorized | - | - - -# **createNamespacedResourceClaim** -> V1alpha2ResourceClaim createNamespacedResourceClaim(namespace, body, pretty, dryRun, fieldManager, fieldValidation) - - - -create a ResourceClaim - -### Example -```java -// Import classes: -import io.kubernetes.client.openapi.ApiClient; -import io.kubernetes.client.openapi.ApiException; -import io.kubernetes.client.openapi.Configuration; -import io.kubernetes.client.openapi.auth.*; -import io.kubernetes.client.openapi.models.*; -import io.kubernetes.client.openapi.apis.ResourceV1alpha2Api; - -public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("http://localhost"); - - // Configure API key authorization: BearerToken - ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); - BearerToken.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //BearerToken.setApiKeyPrefix("Token"); - - ResourceV1alpha2Api apiInstance = new ResourceV1alpha2Api(defaultClient); - String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - V1alpha2ResourceClaim body = new V1alpha2ResourceClaim(); // V1alpha2ResourceClaim | - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. - 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 fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. - try { - V1alpha2ResourceClaim result = apiInstance.createNamespacedResourceClaim(namespace, body, pretty, dryRun, fieldManager, fieldValidation); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling ResourceV1alpha2Api#createNamespacedResourceClaim"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } - } -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **body** | [**V1alpha2ResourceClaim**](V1alpha2ResourceClaim.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [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] - **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] - **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] - -### Return type - -[**V1alpha2ResourceClaim**](V1alpha2ResourceClaim.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | OK | - | -**201** | Created | - | -**202** | Accepted | - | -**401** | Unauthorized | - | - - -# **createNamespacedResourceClaimTemplate** -> V1alpha2ResourceClaimTemplate createNamespacedResourceClaimTemplate(namespace, body, pretty, dryRun, fieldManager, fieldValidation) - - - -create a ResourceClaimTemplate - -### Example -```java -// Import classes: -import io.kubernetes.client.openapi.ApiClient; -import io.kubernetes.client.openapi.ApiException; -import io.kubernetes.client.openapi.Configuration; -import io.kubernetes.client.openapi.auth.*; -import io.kubernetes.client.openapi.models.*; -import io.kubernetes.client.openapi.apis.ResourceV1alpha2Api; - -public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("http://localhost"); - - // Configure API key authorization: BearerToken - ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); - BearerToken.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //BearerToken.setApiKeyPrefix("Token"); - - ResourceV1alpha2Api apiInstance = new ResourceV1alpha2Api(defaultClient); - String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - V1alpha2ResourceClaimTemplate body = new V1alpha2ResourceClaimTemplate(); // V1alpha2ResourceClaimTemplate | - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. - 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 fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. - try { - V1alpha2ResourceClaimTemplate result = apiInstance.createNamespacedResourceClaimTemplate(namespace, body, pretty, dryRun, fieldManager, fieldValidation); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling ResourceV1alpha2Api#createNamespacedResourceClaimTemplate"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } - } -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **body** | [**V1alpha2ResourceClaimTemplate**](V1alpha2ResourceClaimTemplate.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [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] - **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] - **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] - -### Return type - -[**V1alpha2ResourceClaimTemplate**](V1alpha2ResourceClaimTemplate.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | OK | - | -**201** | Created | - | -**202** | Accepted | - | -**401** | Unauthorized | - | - - -# **createResourceClass** -> V1alpha2ResourceClass createResourceClass(body, pretty, dryRun, fieldManager, fieldValidation) - - - -create a ResourceClass - -### Example -```java -// Import classes: -import io.kubernetes.client.openapi.ApiClient; -import io.kubernetes.client.openapi.ApiException; -import io.kubernetes.client.openapi.Configuration; -import io.kubernetes.client.openapi.auth.*; -import io.kubernetes.client.openapi.models.*; -import io.kubernetes.client.openapi.apis.ResourceV1alpha2Api; - -public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("http://localhost"); - - // Configure API key authorization: BearerToken - ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); - BearerToken.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //BearerToken.setApiKeyPrefix("Token"); - - ResourceV1alpha2Api apiInstance = new ResourceV1alpha2Api(defaultClient); - V1alpha2ResourceClass body = new V1alpha2ResourceClass(); // V1alpha2ResourceClass | - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. - 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 fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. - try { - V1alpha2ResourceClass result = apiInstance.createResourceClass(body, pretty, dryRun, fieldManager, fieldValidation); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling ResourceV1alpha2Api#createResourceClass"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } - } -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **body** | [**V1alpha2ResourceClass**](V1alpha2ResourceClass.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [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] - **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] - **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] - -### Return type - -[**V1alpha2ResourceClass**](V1alpha2ResourceClass.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | OK | - | -**201** | Created | - | -**202** | Accepted | - | -**401** | Unauthorized | - | - - -# **deleteCollectionNamespacedPodSchedulingContext** -> V1Status deleteCollectionNamespacedPodSchedulingContext(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body) - - - -delete collection of PodSchedulingContext - -### Example -```java -// Import classes: -import io.kubernetes.client.openapi.ApiClient; -import io.kubernetes.client.openapi.ApiException; -import io.kubernetes.client.openapi.Configuration; -import io.kubernetes.client.openapi.auth.*; -import io.kubernetes.client.openapi.models.*; -import io.kubernetes.client.openapi.apis.ResourceV1alpha2Api; - -public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("http://localhost"); - - // Configure API key authorization: BearerToken - ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); - BearerToken.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //BearerToken.setApiKeyPrefix("Token"); - - ResourceV1alpha2Api apiInstance = new ResourceV1alpha2Api(defaultClient); - String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. - 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. - 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. - Integer gracePeriodSeconds = 56; // Integer | 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. - String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. - Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. - 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. 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. - String resourceVersion = "resourceVersion_example"; // String | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset - String resourceVersionMatch = "resourceVersionMatch_example"; // String | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset - Boolean sendInitialEvents = true; // Boolean | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. - Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. - V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | - try { - V1Status result = apiInstance.deleteCollectionNamespacedPodSchedulingContext(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling ResourceV1alpha2Api#deleteCollectionNamespacedPodSchedulingContext"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } - } -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **pretty** | **String**| If 'true', then the output is pretty printed. | [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] - **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] - **gracePeriodSeconds** | **Integer**| 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. | [optional] - **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] - **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. 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. | [optional] - **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] - **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] - **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] - **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] - **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] - -### Return type - -[**V1Status**](V1Status.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | - - -# **deleteCollectionNamespacedResourceClaim** -> V1Status deleteCollectionNamespacedResourceClaim(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body) - - - -delete collection of ResourceClaim - -### Example -```java -// Import classes: -import io.kubernetes.client.openapi.ApiClient; -import io.kubernetes.client.openapi.ApiException; -import io.kubernetes.client.openapi.Configuration; -import io.kubernetes.client.openapi.auth.*; -import io.kubernetes.client.openapi.models.*; -import io.kubernetes.client.openapi.apis.ResourceV1alpha2Api; - -public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("http://localhost"); - - // Configure API key authorization: BearerToken - ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); - BearerToken.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //BearerToken.setApiKeyPrefix("Token"); - - ResourceV1alpha2Api apiInstance = new ResourceV1alpha2Api(defaultClient); - String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. - 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. - 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. - Integer gracePeriodSeconds = 56; // Integer | 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. - String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. - Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. - 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. 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. - String resourceVersion = "resourceVersion_example"; // String | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset - String resourceVersionMatch = "resourceVersionMatch_example"; // String | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset - Boolean sendInitialEvents = true; // Boolean | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. - Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. - V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | - try { - V1Status result = apiInstance.deleteCollectionNamespacedResourceClaim(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling ResourceV1alpha2Api#deleteCollectionNamespacedResourceClaim"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } - } -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **pretty** | **String**| If 'true', then the output is pretty printed. | [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] - **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] - **gracePeriodSeconds** | **Integer**| 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. | [optional] - **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] - **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. 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. | [optional] - **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] - **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] - **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] - **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] - **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] - -### Return type - -[**V1Status**](V1Status.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | - - -# **deleteCollectionNamespacedResourceClaimTemplate** -> V1Status deleteCollectionNamespacedResourceClaimTemplate(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body) - - - -delete collection of ResourceClaimTemplate - -### Example -```java -// Import classes: -import io.kubernetes.client.openapi.ApiClient; -import io.kubernetes.client.openapi.ApiException; -import io.kubernetes.client.openapi.Configuration; -import io.kubernetes.client.openapi.auth.*; -import io.kubernetes.client.openapi.models.*; -import io.kubernetes.client.openapi.apis.ResourceV1alpha2Api; - -public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("http://localhost"); - - // Configure API key authorization: BearerToken - ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); - BearerToken.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //BearerToken.setApiKeyPrefix("Token"); - - ResourceV1alpha2Api apiInstance = new ResourceV1alpha2Api(defaultClient); - String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. - 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. - 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. - Integer gracePeriodSeconds = 56; // Integer | 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. - String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. - Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. - 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. 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. - String resourceVersion = "resourceVersion_example"; // String | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset - String resourceVersionMatch = "resourceVersionMatch_example"; // String | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset - Boolean sendInitialEvents = true; // Boolean | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. - Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. - V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | - try { - V1Status result = apiInstance.deleteCollectionNamespacedResourceClaimTemplate(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling ResourceV1alpha2Api#deleteCollectionNamespacedResourceClaimTemplate"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } - } -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **pretty** | **String**| If 'true', then the output is pretty printed. | [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] - **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] - **gracePeriodSeconds** | **Integer**| 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. | [optional] - **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] - **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. 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. | [optional] - **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] - **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] - **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] - **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] - **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] - -### Return type - -[**V1Status**](V1Status.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | - - -# **deleteCollectionResourceClass** -> V1Status deleteCollectionResourceClass(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body) - - - -delete collection of ResourceClass - -### Example -```java -// Import classes: -import io.kubernetes.client.openapi.ApiClient; -import io.kubernetes.client.openapi.ApiException; -import io.kubernetes.client.openapi.Configuration; -import io.kubernetes.client.openapi.auth.*; -import io.kubernetes.client.openapi.models.*; -import io.kubernetes.client.openapi.apis.ResourceV1alpha2Api; - -public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("http://localhost"); - - // Configure API key authorization: BearerToken - ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); - BearerToken.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //BearerToken.setApiKeyPrefix("Token"); - - ResourceV1alpha2Api apiInstance = new ResourceV1alpha2Api(defaultClient); - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. - 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. - 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. - Integer gracePeriodSeconds = 56; // Integer | 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. - String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. - Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. - 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. 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. - String resourceVersion = "resourceVersion_example"; // String | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset - String resourceVersionMatch = "resourceVersionMatch_example"; // String | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset - Boolean sendInitialEvents = true; // Boolean | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. - Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. - V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | - try { - V1Status result = apiInstance.deleteCollectionResourceClass(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling ResourceV1alpha2Api#deleteCollectionResourceClass"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } - } -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **pretty** | **String**| If 'true', then the output is pretty printed. | [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] - **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] - **gracePeriodSeconds** | **Integer**| 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. | [optional] - **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] - **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. 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. | [optional] - **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] - **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] - **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] - **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] - **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] - -### Return type - -[**V1Status**](V1Status.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | - - -# **deleteNamespacedPodSchedulingContext** -> V1alpha2PodSchedulingContext deleteNamespacedPodSchedulingContext(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body) - - - -delete a PodSchedulingContext - -### Example -```java -// Import classes: -import io.kubernetes.client.openapi.ApiClient; -import io.kubernetes.client.openapi.ApiException; -import io.kubernetes.client.openapi.Configuration; -import io.kubernetes.client.openapi.auth.*; -import io.kubernetes.client.openapi.models.*; -import io.kubernetes.client.openapi.apis.ResourceV1alpha2Api; - -public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("http://localhost"); - - // Configure API key authorization: BearerToken - ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); - BearerToken.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //BearerToken.setApiKeyPrefix("Token"); - - ResourceV1alpha2Api apiInstance = new ResourceV1alpha2Api(defaultClient); - String name = "name_example"; // String | name of the PodSchedulingContext - String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. - 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 - Integer gracePeriodSeconds = 56; // Integer | 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. - 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. 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. - V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | - try { - V1alpha2PodSchedulingContext result = apiInstance.deleteNamespacedPodSchedulingContext(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling ResourceV1alpha2Api#deleteNamespacedPodSchedulingContext"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } - } -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the PodSchedulingContext | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **pretty** | **String**| If 'true', then the output is pretty printed. | [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] - **gracePeriodSeconds** | **Integer**| 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. | [optional] - **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. 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. | [optional] - **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] - -### Return type - -[**V1alpha2PodSchedulingContext**](V1alpha2PodSchedulingContext.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | OK | - | -**202** | Accepted | - | -**401** | Unauthorized | - | - - -# **deleteNamespacedResourceClaim** -> V1alpha2ResourceClaim deleteNamespacedResourceClaim(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body) - - - -delete a ResourceClaim - -### Example -```java -// Import classes: -import io.kubernetes.client.openapi.ApiClient; -import io.kubernetes.client.openapi.ApiException; -import io.kubernetes.client.openapi.Configuration; -import io.kubernetes.client.openapi.auth.*; -import io.kubernetes.client.openapi.models.*; -import io.kubernetes.client.openapi.apis.ResourceV1alpha2Api; - -public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("http://localhost"); - - // Configure API key authorization: BearerToken - ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); - BearerToken.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //BearerToken.setApiKeyPrefix("Token"); - - ResourceV1alpha2Api apiInstance = new ResourceV1alpha2Api(defaultClient); - String name = "name_example"; // String | name of the ResourceClaim - String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. - 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 - Integer gracePeriodSeconds = 56; // Integer | 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. - 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. 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. - V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | - try { - V1alpha2ResourceClaim result = apiInstance.deleteNamespacedResourceClaim(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling ResourceV1alpha2Api#deleteNamespacedResourceClaim"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } - } -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the ResourceClaim | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **pretty** | **String**| If 'true', then the output is pretty printed. | [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] - **gracePeriodSeconds** | **Integer**| 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. | [optional] - **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. 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. | [optional] - **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] - -### Return type - -[**V1alpha2ResourceClaim**](V1alpha2ResourceClaim.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | OK | - | -**202** | Accepted | - | -**401** | Unauthorized | - | - - -# **deleteNamespacedResourceClaimTemplate** -> V1alpha2ResourceClaimTemplate deleteNamespacedResourceClaimTemplate(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body) - - - -delete a ResourceClaimTemplate - -### Example -```java -// Import classes: -import io.kubernetes.client.openapi.ApiClient; -import io.kubernetes.client.openapi.ApiException; -import io.kubernetes.client.openapi.Configuration; -import io.kubernetes.client.openapi.auth.*; -import io.kubernetes.client.openapi.models.*; -import io.kubernetes.client.openapi.apis.ResourceV1alpha2Api; - -public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("http://localhost"); - - // Configure API key authorization: BearerToken - ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); - BearerToken.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //BearerToken.setApiKeyPrefix("Token"); - - ResourceV1alpha2Api apiInstance = new ResourceV1alpha2Api(defaultClient); - String name = "name_example"; // String | name of the ResourceClaimTemplate - String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. - 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 - Integer gracePeriodSeconds = 56; // Integer | 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. - 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. 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. - V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | - try { - V1alpha2ResourceClaimTemplate result = apiInstance.deleteNamespacedResourceClaimTemplate(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling ResourceV1alpha2Api#deleteNamespacedResourceClaimTemplate"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } - } -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the ResourceClaimTemplate | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **pretty** | **String**| If 'true', then the output is pretty printed. | [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] - **gracePeriodSeconds** | **Integer**| 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. | [optional] - **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. 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. | [optional] - **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] - -### Return type - -[**V1alpha2ResourceClaimTemplate**](V1alpha2ResourceClaimTemplate.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | OK | - | -**202** | Accepted | - | -**401** | Unauthorized | - | - - -# **deleteResourceClass** -> V1alpha2ResourceClass deleteResourceClass(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body) - - - -delete a ResourceClass - -### Example -```java -// Import classes: -import io.kubernetes.client.openapi.ApiClient; -import io.kubernetes.client.openapi.ApiException; -import io.kubernetes.client.openapi.Configuration; -import io.kubernetes.client.openapi.auth.*; -import io.kubernetes.client.openapi.models.*; -import io.kubernetes.client.openapi.apis.ResourceV1alpha2Api; - -public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("http://localhost"); - - // Configure API key authorization: BearerToken - ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); - BearerToken.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //BearerToken.setApiKeyPrefix("Token"); - - ResourceV1alpha2Api apiInstance = new ResourceV1alpha2Api(defaultClient); - String name = "name_example"; // String | name of the ResourceClass - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. - 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 - Integer gracePeriodSeconds = 56; // Integer | 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. - 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. 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. - V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | - try { - V1alpha2ResourceClass result = apiInstance.deleteResourceClass(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling ResourceV1alpha2Api#deleteResourceClass"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } - } -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the ResourceClass | - **pretty** | **String**| If 'true', then the output is pretty printed. | [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] - **gracePeriodSeconds** | **Integer**| 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. | [optional] - **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. 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. | [optional] - **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] - -### Return type - -[**V1alpha2ResourceClass**](V1alpha2ResourceClass.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | OK | - | -**202** | Accepted | - | -**401** | Unauthorized | - | - - -# **getAPIResources** -> V1APIResourceList getAPIResources() - - - -get available resources - -### Example -```java -// Import classes: -import io.kubernetes.client.openapi.ApiClient; -import io.kubernetes.client.openapi.ApiException; -import io.kubernetes.client.openapi.Configuration; -import io.kubernetes.client.openapi.auth.*; -import io.kubernetes.client.openapi.models.*; -import io.kubernetes.client.openapi.apis.ResourceV1alpha2Api; - -public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("http://localhost"); - - // Configure API key authorization: BearerToken - ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); - BearerToken.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //BearerToken.setApiKeyPrefix("Token"); - - ResourceV1alpha2Api apiInstance = new ResourceV1alpha2Api(defaultClient); - try { - V1APIResourceList result = apiInstance.getAPIResources(); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling ResourceV1alpha2Api#getAPIResources"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } - } -} -``` - -### Parameters -This endpoint does not need any parameter. - -### Return type - -[**V1APIResourceList**](V1APIResourceList.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | - - -# **listNamespacedPodSchedulingContext** -> V1alpha2PodSchedulingContextList listNamespacedPodSchedulingContext(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch) - - - -list or watch objects of kind PodSchedulingContext - -### Example -```java -// Import classes: -import io.kubernetes.client.openapi.ApiClient; -import io.kubernetes.client.openapi.ApiException; -import io.kubernetes.client.openapi.Configuration; -import io.kubernetes.client.openapi.auth.*; -import io.kubernetes.client.openapi.models.*; -import io.kubernetes.client.openapi.apis.ResourceV1alpha2Api; - -public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("http://localhost"); - - // Configure API key authorization: BearerToken - ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); - BearerToken.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //BearerToken.setApiKeyPrefix("Token"); - - ResourceV1alpha2Api apiInstance = new ResourceV1alpha2Api(defaultClient); - String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - 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. - 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. - String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. - String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. - Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. - String resourceVersion = "resourceVersion_example"; // String | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset - String resourceVersionMatch = "resourceVersionMatch_example"; // String | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset - Boolean sendInitialEvents = true; // Boolean | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. - 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. Specify resourceVersion. - try { - V1alpha2PodSchedulingContextList result = apiInstance.listNamespacedPodSchedulingContext(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling ResourceV1alpha2Api#listNamespacedPodSchedulingContext"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } - } -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **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. | [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] - **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] - **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] - **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] - **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] - **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] - **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] - -### Return type - -[**V1alpha2PodSchedulingContextList**](V1alpha2PodSchedulingContextList.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | - - -# **listNamespacedResourceClaim** -> V1alpha2ResourceClaimList listNamespacedResourceClaim(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch) - - - -list or watch objects of kind ResourceClaim - -### Example -```java -// Import classes: -import io.kubernetes.client.openapi.ApiClient; -import io.kubernetes.client.openapi.ApiException; -import io.kubernetes.client.openapi.Configuration; -import io.kubernetes.client.openapi.auth.*; -import io.kubernetes.client.openapi.models.*; -import io.kubernetes.client.openapi.apis.ResourceV1alpha2Api; - -public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("http://localhost"); - - // Configure API key authorization: BearerToken - ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); - BearerToken.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //BearerToken.setApiKeyPrefix("Token"); - - ResourceV1alpha2Api apiInstance = new ResourceV1alpha2Api(defaultClient); - String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - 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. - 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. - String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. - String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. - Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. - String resourceVersion = "resourceVersion_example"; // String | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset - String resourceVersionMatch = "resourceVersionMatch_example"; // String | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset - Boolean sendInitialEvents = true; // Boolean | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. - 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. Specify resourceVersion. - try { - V1alpha2ResourceClaimList result = apiInstance.listNamespacedResourceClaim(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling ResourceV1alpha2Api#listNamespacedResourceClaim"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } - } -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **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. | [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] - **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] - **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] - **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] - **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] - **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] - **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] - -### Return type - -[**V1alpha2ResourceClaimList**](V1alpha2ResourceClaimList.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | - - -# **listNamespacedResourceClaimTemplate** -> V1alpha2ResourceClaimTemplateList listNamespacedResourceClaimTemplate(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch) - - - -list or watch objects of kind ResourceClaimTemplate - -### Example -```java -// Import classes: -import io.kubernetes.client.openapi.ApiClient; -import io.kubernetes.client.openapi.ApiException; -import io.kubernetes.client.openapi.Configuration; -import io.kubernetes.client.openapi.auth.*; -import io.kubernetes.client.openapi.models.*; -import io.kubernetes.client.openapi.apis.ResourceV1alpha2Api; - -public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("http://localhost"); - - // Configure API key authorization: BearerToken - ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); - BearerToken.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //BearerToken.setApiKeyPrefix("Token"); - - ResourceV1alpha2Api apiInstance = new ResourceV1alpha2Api(defaultClient); - String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - 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. - 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. - String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. - String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. - Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. - String resourceVersion = "resourceVersion_example"; // String | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset - String resourceVersionMatch = "resourceVersionMatch_example"; // String | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset - Boolean sendInitialEvents = true; // Boolean | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. - 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. Specify resourceVersion. - try { - V1alpha2ResourceClaimTemplateList result = apiInstance.listNamespacedResourceClaimTemplate(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling ResourceV1alpha2Api#listNamespacedResourceClaimTemplate"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } - } -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **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. | [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] - **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] - **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] - **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] - **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] - **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] - **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] - -### Return type - -[**V1alpha2ResourceClaimTemplateList**](V1alpha2ResourceClaimTemplateList.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | - - -# **listPodSchedulingContextForAllNamespaces** -> V1alpha2PodSchedulingContextList listPodSchedulingContextForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch) - - - -list or watch objects of kind PodSchedulingContext - -### Example -```java -// Import classes: -import io.kubernetes.client.openapi.ApiClient; -import io.kubernetes.client.openapi.ApiException; -import io.kubernetes.client.openapi.Configuration; -import io.kubernetes.client.openapi.auth.*; -import io.kubernetes.client.openapi.models.*; -import io.kubernetes.client.openapi.apis.ResourceV1alpha2Api; - -public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("http://localhost"); - - // Configure API key authorization: BearerToken - ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); - BearerToken.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //BearerToken.setApiKeyPrefix("Token"); - - ResourceV1alpha2Api apiInstance = new ResourceV1alpha2Api(defaultClient); - 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. - 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. - String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. - String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. - Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. - String resourceVersion = "resourceVersion_example"; // String | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset - String resourceVersionMatch = "resourceVersionMatch_example"; // String | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset - Boolean sendInitialEvents = true; // Boolean | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. - 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. Specify resourceVersion. - try { - V1alpha2PodSchedulingContextList result = apiInstance.listPodSchedulingContextForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling ResourceV1alpha2Api#listPodSchedulingContextForAllNamespaces"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } - } -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **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. | [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] - **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] - **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] - **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] - **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] - **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] - -### Return type - -[**V1alpha2PodSchedulingContextList**](V1alpha2PodSchedulingContextList.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | - - -# **listResourceClaimForAllNamespaces** -> V1alpha2ResourceClaimList listResourceClaimForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch) - - - -list or watch objects of kind ResourceClaim - -### Example -```java -// Import classes: -import io.kubernetes.client.openapi.ApiClient; -import io.kubernetes.client.openapi.ApiException; -import io.kubernetes.client.openapi.Configuration; -import io.kubernetes.client.openapi.auth.*; -import io.kubernetes.client.openapi.models.*; -import io.kubernetes.client.openapi.apis.ResourceV1alpha2Api; - -public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("http://localhost"); - - // Configure API key authorization: BearerToken - ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); - BearerToken.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //BearerToken.setApiKeyPrefix("Token"); - - ResourceV1alpha2Api apiInstance = new ResourceV1alpha2Api(defaultClient); - 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. - 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. - String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. - String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. - Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. - String resourceVersion = "resourceVersion_example"; // String | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset - String resourceVersionMatch = "resourceVersionMatch_example"; // String | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset - Boolean sendInitialEvents = true; // Boolean | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. - 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. Specify resourceVersion. - try { - V1alpha2ResourceClaimList result = apiInstance.listResourceClaimForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling ResourceV1alpha2Api#listResourceClaimForAllNamespaces"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } - } -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **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. | [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] - **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] - **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] - **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] - **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] - **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] - -### Return type - -[**V1alpha2ResourceClaimList**](V1alpha2ResourceClaimList.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | - - -# **listResourceClaimTemplateForAllNamespaces** -> V1alpha2ResourceClaimTemplateList listResourceClaimTemplateForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch) - - - -list or watch objects of kind ResourceClaimTemplate - -### Example -```java -// Import classes: -import io.kubernetes.client.openapi.ApiClient; -import io.kubernetes.client.openapi.ApiException; -import io.kubernetes.client.openapi.Configuration; -import io.kubernetes.client.openapi.auth.*; -import io.kubernetes.client.openapi.models.*; -import io.kubernetes.client.openapi.apis.ResourceV1alpha2Api; - -public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("http://localhost"); - - // Configure API key authorization: BearerToken - ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); - BearerToken.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //BearerToken.setApiKeyPrefix("Token"); - - ResourceV1alpha2Api apiInstance = new ResourceV1alpha2Api(defaultClient); - 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. - 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. - String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. - String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. - Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. - String resourceVersion = "resourceVersion_example"; // String | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset - String resourceVersionMatch = "resourceVersionMatch_example"; // String | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset - Boolean sendInitialEvents = true; // Boolean | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. - 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. Specify resourceVersion. - try { - V1alpha2ResourceClaimTemplateList result = apiInstance.listResourceClaimTemplateForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling ResourceV1alpha2Api#listResourceClaimTemplateForAllNamespaces"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } - } -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **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. | [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] - **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] - **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] - **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] - **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] - **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] - -### Return type - -[**V1alpha2ResourceClaimTemplateList**](V1alpha2ResourceClaimTemplateList.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | - - -# **listResourceClass** -> V1alpha2ResourceClassList listResourceClass(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch) - - - -list or watch objects of kind ResourceClass - -### Example -```java -// Import classes: -import io.kubernetes.client.openapi.ApiClient; -import io.kubernetes.client.openapi.ApiException; -import io.kubernetes.client.openapi.Configuration; -import io.kubernetes.client.openapi.auth.*; -import io.kubernetes.client.openapi.models.*; -import io.kubernetes.client.openapi.apis.ResourceV1alpha2Api; - -public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("http://localhost"); - - // Configure API key authorization: BearerToken - ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); - BearerToken.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //BearerToken.setApiKeyPrefix("Token"); - - ResourceV1alpha2Api apiInstance = new ResourceV1alpha2Api(defaultClient); - 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. - 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. - String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. - String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. - Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. - String resourceVersion = "resourceVersion_example"; // String | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset - String resourceVersionMatch = "resourceVersionMatch_example"; // String | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset - Boolean sendInitialEvents = true; // Boolean | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. - 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. Specify resourceVersion. - try { - V1alpha2ResourceClassList result = apiInstance.listResourceClass(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling ResourceV1alpha2Api#listResourceClass"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } - } -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **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. | [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] - **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] - **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] - **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] - **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] - **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] - **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] - -### Return type - -[**V1alpha2ResourceClassList**](V1alpha2ResourceClassList.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | - - -# **patchNamespacedPodSchedulingContext** -> V1alpha2PodSchedulingContext patchNamespacedPodSchedulingContext(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force) - - - -partially update the specified PodSchedulingContext - -### Example -```java -// Import classes: -import io.kubernetes.client.openapi.ApiClient; -import io.kubernetes.client.openapi.ApiException; -import io.kubernetes.client.openapi.Configuration; -import io.kubernetes.client.openapi.auth.*; -import io.kubernetes.client.openapi.models.*; -import io.kubernetes.client.openapi.apis.ResourceV1alpha2Api; - -public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("http://localhost"); - - // Configure API key authorization: BearerToken - ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); - BearerToken.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //BearerToken.setApiKeyPrefix("Token"); - - ResourceV1alpha2Api apiInstance = new ResourceV1alpha2Api(defaultClient); - String name = "name_example"; // String | name of the PodSchedulingContext - String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - V1Patch body = new V1Patch(); // V1Patch | - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. - 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 fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). - String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. - Boolean force = true; // Boolean | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. - try { - V1alpha2PodSchedulingContext result = apiInstance.patchNamespacedPodSchedulingContext(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling ResourceV1alpha2Api#patchNamespacedPodSchedulingContext"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } - } -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the PodSchedulingContext | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **body** | **V1Patch**| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [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] - **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] - **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] - **force** | **Boolean**| Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | [optional] - -### Return type - -[**V1alpha2PodSchedulingContext**](V1alpha2PodSchedulingContext.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | OK | - | -**201** | Created | - | -**401** | Unauthorized | - | - - -# **patchNamespacedPodSchedulingContextStatus** -> V1alpha2PodSchedulingContext patchNamespacedPodSchedulingContextStatus(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force) - - - -partially update status of the specified PodSchedulingContext - -### Example -```java -// Import classes: -import io.kubernetes.client.openapi.ApiClient; -import io.kubernetes.client.openapi.ApiException; -import io.kubernetes.client.openapi.Configuration; -import io.kubernetes.client.openapi.auth.*; -import io.kubernetes.client.openapi.models.*; -import io.kubernetes.client.openapi.apis.ResourceV1alpha2Api; - -public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("http://localhost"); - - // Configure API key authorization: BearerToken - ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); - BearerToken.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //BearerToken.setApiKeyPrefix("Token"); - - ResourceV1alpha2Api apiInstance = new ResourceV1alpha2Api(defaultClient); - String name = "name_example"; // String | name of the PodSchedulingContext - String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - V1Patch body = new V1Patch(); // V1Patch | - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. - 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 fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). - String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. - Boolean force = true; // Boolean | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. - try { - V1alpha2PodSchedulingContext result = apiInstance.patchNamespacedPodSchedulingContextStatus(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling ResourceV1alpha2Api#patchNamespacedPodSchedulingContextStatus"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } - } -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the PodSchedulingContext | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **body** | **V1Patch**| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [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] - **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] - **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] - **force** | **Boolean**| Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | [optional] - -### Return type - -[**V1alpha2PodSchedulingContext**](V1alpha2PodSchedulingContext.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | OK | - | -**201** | Created | - | -**401** | Unauthorized | - | - - -# **patchNamespacedResourceClaim** -> V1alpha2ResourceClaim patchNamespacedResourceClaim(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force) - - - -partially update the specified ResourceClaim - -### Example -```java -// Import classes: -import io.kubernetes.client.openapi.ApiClient; -import io.kubernetes.client.openapi.ApiException; -import io.kubernetes.client.openapi.Configuration; -import io.kubernetes.client.openapi.auth.*; -import io.kubernetes.client.openapi.models.*; -import io.kubernetes.client.openapi.apis.ResourceV1alpha2Api; - -public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("http://localhost"); - - // Configure API key authorization: BearerToken - ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); - BearerToken.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //BearerToken.setApiKeyPrefix("Token"); - - ResourceV1alpha2Api apiInstance = new ResourceV1alpha2Api(defaultClient); - String name = "name_example"; // String | name of the ResourceClaim - String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - V1Patch body = new V1Patch(); // V1Patch | - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. - 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 fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). - String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. - Boolean force = true; // Boolean | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. - try { - V1alpha2ResourceClaim result = apiInstance.patchNamespacedResourceClaim(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling ResourceV1alpha2Api#patchNamespacedResourceClaim"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } - } -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the ResourceClaim | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **body** | **V1Patch**| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [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] - **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] - **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] - **force** | **Boolean**| Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | [optional] - -### Return type - -[**V1alpha2ResourceClaim**](V1alpha2ResourceClaim.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | OK | - | -**201** | Created | - | -**401** | Unauthorized | - | - - -# **patchNamespacedResourceClaimStatus** -> V1alpha2ResourceClaim patchNamespacedResourceClaimStatus(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force) - - - -partially update status of the specified ResourceClaim - -### Example -```java -// Import classes: -import io.kubernetes.client.openapi.ApiClient; -import io.kubernetes.client.openapi.ApiException; -import io.kubernetes.client.openapi.Configuration; -import io.kubernetes.client.openapi.auth.*; -import io.kubernetes.client.openapi.models.*; -import io.kubernetes.client.openapi.apis.ResourceV1alpha2Api; - -public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("http://localhost"); - - // Configure API key authorization: BearerToken - ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); - BearerToken.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //BearerToken.setApiKeyPrefix("Token"); - - ResourceV1alpha2Api apiInstance = new ResourceV1alpha2Api(defaultClient); - String name = "name_example"; // String | name of the ResourceClaim - String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - V1Patch body = new V1Patch(); // V1Patch | - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. - 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 fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). - String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. - Boolean force = true; // Boolean | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. - try { - V1alpha2ResourceClaim result = apiInstance.patchNamespacedResourceClaimStatus(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling ResourceV1alpha2Api#patchNamespacedResourceClaimStatus"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } - } -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the ResourceClaim | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **body** | **V1Patch**| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [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] - **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] - **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] - **force** | **Boolean**| Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | [optional] - -### Return type - -[**V1alpha2ResourceClaim**](V1alpha2ResourceClaim.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | OK | - | -**201** | Created | - | -**401** | Unauthorized | - | - - -# **patchNamespacedResourceClaimTemplate** -> V1alpha2ResourceClaimTemplate patchNamespacedResourceClaimTemplate(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force) - - - -partially update the specified ResourceClaimTemplate - -### Example -```java -// Import classes: -import io.kubernetes.client.openapi.ApiClient; -import io.kubernetes.client.openapi.ApiException; -import io.kubernetes.client.openapi.Configuration; -import io.kubernetes.client.openapi.auth.*; -import io.kubernetes.client.openapi.models.*; -import io.kubernetes.client.openapi.apis.ResourceV1alpha2Api; - -public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("http://localhost"); - - // Configure API key authorization: BearerToken - ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); - BearerToken.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //BearerToken.setApiKeyPrefix("Token"); - - ResourceV1alpha2Api apiInstance = new ResourceV1alpha2Api(defaultClient); - String name = "name_example"; // String | name of the ResourceClaimTemplate - String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - V1Patch body = new V1Patch(); // V1Patch | - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. - 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 fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). - String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. - Boolean force = true; // Boolean | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. - try { - V1alpha2ResourceClaimTemplate result = apiInstance.patchNamespacedResourceClaimTemplate(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling ResourceV1alpha2Api#patchNamespacedResourceClaimTemplate"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } - } -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the ResourceClaimTemplate | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **body** | **V1Patch**| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [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] - **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] - **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] - **force** | **Boolean**| Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | [optional] - -### Return type - -[**V1alpha2ResourceClaimTemplate**](V1alpha2ResourceClaimTemplate.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | OK | - | -**201** | Created | - | -**401** | Unauthorized | - | - - -# **patchResourceClass** -> V1alpha2ResourceClass patchResourceClass(name, body, pretty, dryRun, fieldManager, fieldValidation, force) - - - -partially update the specified ResourceClass - -### Example -```java -// Import classes: -import io.kubernetes.client.openapi.ApiClient; -import io.kubernetes.client.openapi.ApiException; -import io.kubernetes.client.openapi.Configuration; -import io.kubernetes.client.openapi.auth.*; -import io.kubernetes.client.openapi.models.*; -import io.kubernetes.client.openapi.apis.ResourceV1alpha2Api; - -public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("http://localhost"); - - // Configure API key authorization: BearerToken - ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); - BearerToken.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //BearerToken.setApiKeyPrefix("Token"); - - ResourceV1alpha2Api apiInstance = new ResourceV1alpha2Api(defaultClient); - String name = "name_example"; // String | name of the ResourceClass - V1Patch body = new V1Patch(); // V1Patch | - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. - 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 fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). - String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. - Boolean force = true; // Boolean | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. - try { - V1alpha2ResourceClass result = apiInstance.patchResourceClass(name, body, pretty, dryRun, fieldManager, fieldValidation, force); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling ResourceV1alpha2Api#patchResourceClass"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } - } -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the ResourceClass | - **body** | **V1Patch**| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [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] - **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] - **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] - **force** | **Boolean**| Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | [optional] - -### Return type - -[**V1alpha2ResourceClass**](V1alpha2ResourceClass.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | OK | - | -**201** | Created | - | -**401** | Unauthorized | - | - - -# **readNamespacedPodSchedulingContext** -> V1alpha2PodSchedulingContext readNamespacedPodSchedulingContext(name, namespace, pretty) - - - -read the specified PodSchedulingContext - -### Example -```java -// Import classes: -import io.kubernetes.client.openapi.ApiClient; -import io.kubernetes.client.openapi.ApiException; -import io.kubernetes.client.openapi.Configuration; -import io.kubernetes.client.openapi.auth.*; -import io.kubernetes.client.openapi.models.*; -import io.kubernetes.client.openapi.apis.ResourceV1alpha2Api; - -public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("http://localhost"); - - // Configure API key authorization: BearerToken - ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); - BearerToken.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //BearerToken.setApiKeyPrefix("Token"); - - ResourceV1alpha2Api apiInstance = new ResourceV1alpha2Api(defaultClient); - String name = "name_example"; // String | name of the PodSchedulingContext - String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. - try { - V1alpha2PodSchedulingContext result = apiInstance.readNamespacedPodSchedulingContext(name, namespace, pretty); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling ResourceV1alpha2Api#readNamespacedPodSchedulingContext"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } - } -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the PodSchedulingContext | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - -### Return type - -[**V1alpha2PodSchedulingContext**](V1alpha2PodSchedulingContext.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | - - -# **readNamespacedPodSchedulingContextStatus** -> V1alpha2PodSchedulingContext readNamespacedPodSchedulingContextStatus(name, namespace, pretty) - - - -read status of the specified PodSchedulingContext - -### Example -```java -// Import classes: -import io.kubernetes.client.openapi.ApiClient; -import io.kubernetes.client.openapi.ApiException; -import io.kubernetes.client.openapi.Configuration; -import io.kubernetes.client.openapi.auth.*; -import io.kubernetes.client.openapi.models.*; -import io.kubernetes.client.openapi.apis.ResourceV1alpha2Api; - -public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("http://localhost"); - - // Configure API key authorization: BearerToken - ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); - BearerToken.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //BearerToken.setApiKeyPrefix("Token"); - - ResourceV1alpha2Api apiInstance = new ResourceV1alpha2Api(defaultClient); - String name = "name_example"; // String | name of the PodSchedulingContext - String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. - try { - V1alpha2PodSchedulingContext result = apiInstance.readNamespacedPodSchedulingContextStatus(name, namespace, pretty); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling ResourceV1alpha2Api#readNamespacedPodSchedulingContextStatus"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } - } -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the PodSchedulingContext | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - -### Return type - -[**V1alpha2PodSchedulingContext**](V1alpha2PodSchedulingContext.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | - - -# **readNamespacedResourceClaim** -> V1alpha2ResourceClaim readNamespacedResourceClaim(name, namespace, pretty) - - - -read the specified ResourceClaim - -### Example -```java -// Import classes: -import io.kubernetes.client.openapi.ApiClient; -import io.kubernetes.client.openapi.ApiException; -import io.kubernetes.client.openapi.Configuration; -import io.kubernetes.client.openapi.auth.*; -import io.kubernetes.client.openapi.models.*; -import io.kubernetes.client.openapi.apis.ResourceV1alpha2Api; - -public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("http://localhost"); - - // Configure API key authorization: BearerToken - ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); - BearerToken.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //BearerToken.setApiKeyPrefix("Token"); - - ResourceV1alpha2Api apiInstance = new ResourceV1alpha2Api(defaultClient); - String name = "name_example"; // String | name of the ResourceClaim - String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. - try { - V1alpha2ResourceClaim result = apiInstance.readNamespacedResourceClaim(name, namespace, pretty); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling ResourceV1alpha2Api#readNamespacedResourceClaim"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } - } -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the ResourceClaim | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - -### Return type - -[**V1alpha2ResourceClaim**](V1alpha2ResourceClaim.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | - - -# **readNamespacedResourceClaimStatus** -> V1alpha2ResourceClaim readNamespacedResourceClaimStatus(name, namespace, pretty) - - - -read status of the specified ResourceClaim - -### Example -```java -// Import classes: -import io.kubernetes.client.openapi.ApiClient; -import io.kubernetes.client.openapi.ApiException; -import io.kubernetes.client.openapi.Configuration; -import io.kubernetes.client.openapi.auth.*; -import io.kubernetes.client.openapi.models.*; -import io.kubernetes.client.openapi.apis.ResourceV1alpha2Api; - -public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("http://localhost"); - - // Configure API key authorization: BearerToken - ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); - BearerToken.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //BearerToken.setApiKeyPrefix("Token"); - - ResourceV1alpha2Api apiInstance = new ResourceV1alpha2Api(defaultClient); - String name = "name_example"; // String | name of the ResourceClaim - String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. - try { - V1alpha2ResourceClaim result = apiInstance.readNamespacedResourceClaimStatus(name, namespace, pretty); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling ResourceV1alpha2Api#readNamespacedResourceClaimStatus"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } - } -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the ResourceClaim | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - -### Return type - -[**V1alpha2ResourceClaim**](V1alpha2ResourceClaim.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | - - -# **readNamespacedResourceClaimTemplate** -> V1alpha2ResourceClaimTemplate readNamespacedResourceClaimTemplate(name, namespace, pretty) - - - -read the specified ResourceClaimTemplate - -### Example -```java -// Import classes: -import io.kubernetes.client.openapi.ApiClient; -import io.kubernetes.client.openapi.ApiException; -import io.kubernetes.client.openapi.Configuration; -import io.kubernetes.client.openapi.auth.*; -import io.kubernetes.client.openapi.models.*; -import io.kubernetes.client.openapi.apis.ResourceV1alpha2Api; - -public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("http://localhost"); - - // Configure API key authorization: BearerToken - ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); - BearerToken.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //BearerToken.setApiKeyPrefix("Token"); - - ResourceV1alpha2Api apiInstance = new ResourceV1alpha2Api(defaultClient); - String name = "name_example"; // String | name of the ResourceClaimTemplate - String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. - try { - V1alpha2ResourceClaimTemplate result = apiInstance.readNamespacedResourceClaimTemplate(name, namespace, pretty); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling ResourceV1alpha2Api#readNamespacedResourceClaimTemplate"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } - } -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the ResourceClaimTemplate | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - -### Return type - -[**V1alpha2ResourceClaimTemplate**](V1alpha2ResourceClaimTemplate.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | - - -# **readResourceClass** -> V1alpha2ResourceClass readResourceClass(name, pretty) - - - -read the specified ResourceClass - -### Example -```java -// Import classes: -import io.kubernetes.client.openapi.ApiClient; -import io.kubernetes.client.openapi.ApiException; -import io.kubernetes.client.openapi.Configuration; -import io.kubernetes.client.openapi.auth.*; -import io.kubernetes.client.openapi.models.*; -import io.kubernetes.client.openapi.apis.ResourceV1alpha2Api; - -public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("http://localhost"); - - // Configure API key authorization: BearerToken - ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); - BearerToken.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //BearerToken.setApiKeyPrefix("Token"); - - ResourceV1alpha2Api apiInstance = new ResourceV1alpha2Api(defaultClient); - String name = "name_example"; // String | name of the ResourceClass - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. - try { - V1alpha2ResourceClass result = apiInstance.readResourceClass(name, pretty); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling ResourceV1alpha2Api#readResourceClass"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } - } -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the ResourceClass | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - -### Return type - -[**V1alpha2ResourceClass**](V1alpha2ResourceClass.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | - - -# **replaceNamespacedPodSchedulingContext** -> V1alpha2PodSchedulingContext replaceNamespacedPodSchedulingContext(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation) - - - -replace the specified PodSchedulingContext - -### Example -```java -// Import classes: -import io.kubernetes.client.openapi.ApiClient; -import io.kubernetes.client.openapi.ApiException; -import io.kubernetes.client.openapi.Configuration; -import io.kubernetes.client.openapi.auth.*; -import io.kubernetes.client.openapi.models.*; -import io.kubernetes.client.openapi.apis.ResourceV1alpha2Api; - -public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("http://localhost"); - - // Configure API key authorization: BearerToken - ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); - BearerToken.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //BearerToken.setApiKeyPrefix("Token"); - - ResourceV1alpha2Api apiInstance = new ResourceV1alpha2Api(defaultClient); - String name = "name_example"; // String | name of the PodSchedulingContext - String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - V1alpha2PodSchedulingContext body = new V1alpha2PodSchedulingContext(); // V1alpha2PodSchedulingContext | - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. - 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 fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. - try { - V1alpha2PodSchedulingContext result = apiInstance.replaceNamespacedPodSchedulingContext(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling ResourceV1alpha2Api#replaceNamespacedPodSchedulingContext"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } - } -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the PodSchedulingContext | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **body** | [**V1alpha2PodSchedulingContext**](V1alpha2PodSchedulingContext.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [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] - **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] - **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] - -### Return type - -[**V1alpha2PodSchedulingContext**](V1alpha2PodSchedulingContext.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | OK | - | -**201** | Created | - | -**401** | Unauthorized | - | - - -# **replaceNamespacedPodSchedulingContextStatus** -> V1alpha2PodSchedulingContext replaceNamespacedPodSchedulingContextStatus(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation) - - - -replace status of the specified PodSchedulingContext - -### Example -```java -// Import classes: -import io.kubernetes.client.openapi.ApiClient; -import io.kubernetes.client.openapi.ApiException; -import io.kubernetes.client.openapi.Configuration; -import io.kubernetes.client.openapi.auth.*; -import io.kubernetes.client.openapi.models.*; -import io.kubernetes.client.openapi.apis.ResourceV1alpha2Api; - -public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("http://localhost"); - - // Configure API key authorization: BearerToken - ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); - BearerToken.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //BearerToken.setApiKeyPrefix("Token"); - - ResourceV1alpha2Api apiInstance = new ResourceV1alpha2Api(defaultClient); - String name = "name_example"; // String | name of the PodSchedulingContext - String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - V1alpha2PodSchedulingContext body = new V1alpha2PodSchedulingContext(); // V1alpha2PodSchedulingContext | - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. - 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 fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. - try { - V1alpha2PodSchedulingContext result = apiInstance.replaceNamespacedPodSchedulingContextStatus(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling ResourceV1alpha2Api#replaceNamespacedPodSchedulingContextStatus"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } - } -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the PodSchedulingContext | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **body** | [**V1alpha2PodSchedulingContext**](V1alpha2PodSchedulingContext.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [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] - **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] - **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] - -### Return type - -[**V1alpha2PodSchedulingContext**](V1alpha2PodSchedulingContext.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | OK | - | -**201** | Created | - | -**401** | Unauthorized | - | - - -# **replaceNamespacedResourceClaim** -> V1alpha2ResourceClaim replaceNamespacedResourceClaim(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation) - - - -replace the specified ResourceClaim - -### Example -```java -// Import classes: -import io.kubernetes.client.openapi.ApiClient; -import io.kubernetes.client.openapi.ApiException; -import io.kubernetes.client.openapi.Configuration; -import io.kubernetes.client.openapi.auth.*; -import io.kubernetes.client.openapi.models.*; -import io.kubernetes.client.openapi.apis.ResourceV1alpha2Api; - -public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("http://localhost"); - - // Configure API key authorization: BearerToken - ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); - BearerToken.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //BearerToken.setApiKeyPrefix("Token"); - - ResourceV1alpha2Api apiInstance = new ResourceV1alpha2Api(defaultClient); - String name = "name_example"; // String | name of the ResourceClaim - String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - V1alpha2ResourceClaim body = new V1alpha2ResourceClaim(); // V1alpha2ResourceClaim | - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. - 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 fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. - try { - V1alpha2ResourceClaim result = apiInstance.replaceNamespacedResourceClaim(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling ResourceV1alpha2Api#replaceNamespacedResourceClaim"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } - } -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the ResourceClaim | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **body** | [**V1alpha2ResourceClaim**](V1alpha2ResourceClaim.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [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] - **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] - **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] - -### Return type - -[**V1alpha2ResourceClaim**](V1alpha2ResourceClaim.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | OK | - | -**201** | Created | - | -**401** | Unauthorized | - | - - -# **replaceNamespacedResourceClaimStatus** -> V1alpha2ResourceClaim replaceNamespacedResourceClaimStatus(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation) - - - -replace status of the specified ResourceClaim - -### Example -```java -// Import classes: -import io.kubernetes.client.openapi.ApiClient; -import io.kubernetes.client.openapi.ApiException; -import io.kubernetes.client.openapi.Configuration; -import io.kubernetes.client.openapi.auth.*; -import io.kubernetes.client.openapi.models.*; -import io.kubernetes.client.openapi.apis.ResourceV1alpha2Api; - -public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("http://localhost"); - - // Configure API key authorization: BearerToken - ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); - BearerToken.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //BearerToken.setApiKeyPrefix("Token"); - - ResourceV1alpha2Api apiInstance = new ResourceV1alpha2Api(defaultClient); - String name = "name_example"; // String | name of the ResourceClaim - String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - V1alpha2ResourceClaim body = new V1alpha2ResourceClaim(); // V1alpha2ResourceClaim | - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. - 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 fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. - try { - V1alpha2ResourceClaim result = apiInstance.replaceNamespacedResourceClaimStatus(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling ResourceV1alpha2Api#replaceNamespacedResourceClaimStatus"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } - } -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the ResourceClaim | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **body** | [**V1alpha2ResourceClaim**](V1alpha2ResourceClaim.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [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] - **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] - **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] - -### Return type - -[**V1alpha2ResourceClaim**](V1alpha2ResourceClaim.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | OK | - | -**201** | Created | - | -**401** | Unauthorized | - | - - -# **replaceNamespacedResourceClaimTemplate** -> V1alpha2ResourceClaimTemplate replaceNamespacedResourceClaimTemplate(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation) - - - -replace the specified ResourceClaimTemplate - -### Example -```java -// Import classes: -import io.kubernetes.client.openapi.ApiClient; -import io.kubernetes.client.openapi.ApiException; -import io.kubernetes.client.openapi.Configuration; -import io.kubernetes.client.openapi.auth.*; -import io.kubernetes.client.openapi.models.*; -import io.kubernetes.client.openapi.apis.ResourceV1alpha2Api; - -public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("http://localhost"); - - // Configure API key authorization: BearerToken - ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); - BearerToken.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //BearerToken.setApiKeyPrefix("Token"); - - ResourceV1alpha2Api apiInstance = new ResourceV1alpha2Api(defaultClient); - String name = "name_example"; // String | name of the ResourceClaimTemplate - String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - V1alpha2ResourceClaimTemplate body = new V1alpha2ResourceClaimTemplate(); // V1alpha2ResourceClaimTemplate | - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. - 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 fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. - try { - V1alpha2ResourceClaimTemplate result = apiInstance.replaceNamespacedResourceClaimTemplate(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling ResourceV1alpha2Api#replaceNamespacedResourceClaimTemplate"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } - } -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the ResourceClaimTemplate | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **body** | [**V1alpha2ResourceClaimTemplate**](V1alpha2ResourceClaimTemplate.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [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] - **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] - **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] - -### Return type - -[**V1alpha2ResourceClaimTemplate**](V1alpha2ResourceClaimTemplate.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | OK | - | -**201** | Created | - | -**401** | Unauthorized | - | - - -# **replaceResourceClass** -> V1alpha2ResourceClass replaceResourceClass(name, body, pretty, dryRun, fieldManager, fieldValidation) - - - -replace the specified ResourceClass - -### Example -```java -// Import classes: -import io.kubernetes.client.openapi.ApiClient; -import io.kubernetes.client.openapi.ApiException; -import io.kubernetes.client.openapi.Configuration; -import io.kubernetes.client.openapi.auth.*; -import io.kubernetes.client.openapi.models.*; -import io.kubernetes.client.openapi.apis.ResourceV1alpha2Api; - -public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("http://localhost"); - - // Configure API key authorization: BearerToken - ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); - BearerToken.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //BearerToken.setApiKeyPrefix("Token"); - - ResourceV1alpha2Api apiInstance = new ResourceV1alpha2Api(defaultClient); - String name = "name_example"; // String | name of the ResourceClass - V1alpha2ResourceClass body = new V1alpha2ResourceClass(); // V1alpha2ResourceClass | - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. - 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 fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. - try { - V1alpha2ResourceClass result = apiInstance.replaceResourceClass(name, body, pretty, dryRun, fieldManager, fieldValidation); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling ResourceV1alpha2Api#replaceResourceClass"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } - } -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the ResourceClass | - **body** | [**V1alpha2ResourceClass**](V1alpha2ResourceClass.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [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] - **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] - **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] - -### Return type - -[**V1alpha2ResourceClass**](V1alpha2ResourceClass.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | OK | - | -**201** | Created | - | -**401** | Unauthorized | - | - diff --git a/kubernetes/docs/ResourceV1alpha3Api.md b/kubernetes/docs/ResourceV1alpha3Api.md new file mode 100644 index 0000000000..263ffeeb7d --- /dev/null +++ b/kubernetes/docs/ResourceV1alpha3Api.md @@ -0,0 +1,3510 @@ +# ResourceV1alpha3Api + +All URIs are relative to *http://localhost* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**createDeviceClass**](ResourceV1alpha3Api.md#createDeviceClass) | **POST** /apis/resource.k8s.io/v1alpha3/deviceclasses | +[**createDeviceTaintRule**](ResourceV1alpha3Api.md#createDeviceTaintRule) | **POST** /apis/resource.k8s.io/v1alpha3/devicetaintrules | +[**createNamespacedResourceClaim**](ResourceV1alpha3Api.md#createNamespacedResourceClaim) | **POST** /apis/resource.k8s.io/v1alpha3/namespaces/{namespace}/resourceclaims | +[**createNamespacedResourceClaimTemplate**](ResourceV1alpha3Api.md#createNamespacedResourceClaimTemplate) | **POST** /apis/resource.k8s.io/v1alpha3/namespaces/{namespace}/resourceclaimtemplates | +[**createResourceSlice**](ResourceV1alpha3Api.md#createResourceSlice) | **POST** /apis/resource.k8s.io/v1alpha3/resourceslices | +[**deleteCollectionDeviceClass**](ResourceV1alpha3Api.md#deleteCollectionDeviceClass) | **DELETE** /apis/resource.k8s.io/v1alpha3/deviceclasses | +[**deleteCollectionDeviceTaintRule**](ResourceV1alpha3Api.md#deleteCollectionDeviceTaintRule) | **DELETE** /apis/resource.k8s.io/v1alpha3/devicetaintrules | +[**deleteCollectionNamespacedResourceClaim**](ResourceV1alpha3Api.md#deleteCollectionNamespacedResourceClaim) | **DELETE** /apis/resource.k8s.io/v1alpha3/namespaces/{namespace}/resourceclaims | +[**deleteCollectionNamespacedResourceClaimTemplate**](ResourceV1alpha3Api.md#deleteCollectionNamespacedResourceClaimTemplate) | **DELETE** /apis/resource.k8s.io/v1alpha3/namespaces/{namespace}/resourceclaimtemplates | +[**deleteCollectionResourceSlice**](ResourceV1alpha3Api.md#deleteCollectionResourceSlice) | **DELETE** /apis/resource.k8s.io/v1alpha3/resourceslices | +[**deleteDeviceClass**](ResourceV1alpha3Api.md#deleteDeviceClass) | **DELETE** /apis/resource.k8s.io/v1alpha3/deviceclasses/{name} | +[**deleteDeviceTaintRule**](ResourceV1alpha3Api.md#deleteDeviceTaintRule) | **DELETE** /apis/resource.k8s.io/v1alpha3/devicetaintrules/{name} | +[**deleteNamespacedResourceClaim**](ResourceV1alpha3Api.md#deleteNamespacedResourceClaim) | **DELETE** /apis/resource.k8s.io/v1alpha3/namespaces/{namespace}/resourceclaims/{name} | +[**deleteNamespacedResourceClaimTemplate**](ResourceV1alpha3Api.md#deleteNamespacedResourceClaimTemplate) | **DELETE** /apis/resource.k8s.io/v1alpha3/namespaces/{namespace}/resourceclaimtemplates/{name} | +[**deleteResourceSlice**](ResourceV1alpha3Api.md#deleteResourceSlice) | **DELETE** /apis/resource.k8s.io/v1alpha3/resourceslices/{name} | +[**getAPIResources**](ResourceV1alpha3Api.md#getAPIResources) | **GET** /apis/resource.k8s.io/v1alpha3/ | +[**listDeviceClass**](ResourceV1alpha3Api.md#listDeviceClass) | **GET** /apis/resource.k8s.io/v1alpha3/deviceclasses | +[**listDeviceTaintRule**](ResourceV1alpha3Api.md#listDeviceTaintRule) | **GET** /apis/resource.k8s.io/v1alpha3/devicetaintrules | +[**listNamespacedResourceClaim**](ResourceV1alpha3Api.md#listNamespacedResourceClaim) | **GET** /apis/resource.k8s.io/v1alpha3/namespaces/{namespace}/resourceclaims | +[**listNamespacedResourceClaimTemplate**](ResourceV1alpha3Api.md#listNamespacedResourceClaimTemplate) | **GET** /apis/resource.k8s.io/v1alpha3/namespaces/{namespace}/resourceclaimtemplates | +[**listResourceClaimForAllNamespaces**](ResourceV1alpha3Api.md#listResourceClaimForAllNamespaces) | **GET** /apis/resource.k8s.io/v1alpha3/resourceclaims | +[**listResourceClaimTemplateForAllNamespaces**](ResourceV1alpha3Api.md#listResourceClaimTemplateForAllNamespaces) | **GET** /apis/resource.k8s.io/v1alpha3/resourceclaimtemplates | +[**listResourceSlice**](ResourceV1alpha3Api.md#listResourceSlice) | **GET** /apis/resource.k8s.io/v1alpha3/resourceslices | +[**patchDeviceClass**](ResourceV1alpha3Api.md#patchDeviceClass) | **PATCH** /apis/resource.k8s.io/v1alpha3/deviceclasses/{name} | +[**patchDeviceTaintRule**](ResourceV1alpha3Api.md#patchDeviceTaintRule) | **PATCH** /apis/resource.k8s.io/v1alpha3/devicetaintrules/{name} | +[**patchNamespacedResourceClaim**](ResourceV1alpha3Api.md#patchNamespacedResourceClaim) | **PATCH** /apis/resource.k8s.io/v1alpha3/namespaces/{namespace}/resourceclaims/{name} | +[**patchNamespacedResourceClaimStatus**](ResourceV1alpha3Api.md#patchNamespacedResourceClaimStatus) | **PATCH** /apis/resource.k8s.io/v1alpha3/namespaces/{namespace}/resourceclaims/{name}/status | +[**patchNamespacedResourceClaimTemplate**](ResourceV1alpha3Api.md#patchNamespacedResourceClaimTemplate) | **PATCH** /apis/resource.k8s.io/v1alpha3/namespaces/{namespace}/resourceclaimtemplates/{name} | +[**patchResourceSlice**](ResourceV1alpha3Api.md#patchResourceSlice) | **PATCH** /apis/resource.k8s.io/v1alpha3/resourceslices/{name} | +[**readDeviceClass**](ResourceV1alpha3Api.md#readDeviceClass) | **GET** /apis/resource.k8s.io/v1alpha3/deviceclasses/{name} | +[**readDeviceTaintRule**](ResourceV1alpha3Api.md#readDeviceTaintRule) | **GET** /apis/resource.k8s.io/v1alpha3/devicetaintrules/{name} | +[**readNamespacedResourceClaim**](ResourceV1alpha3Api.md#readNamespacedResourceClaim) | **GET** /apis/resource.k8s.io/v1alpha3/namespaces/{namespace}/resourceclaims/{name} | +[**readNamespacedResourceClaimStatus**](ResourceV1alpha3Api.md#readNamespacedResourceClaimStatus) | **GET** /apis/resource.k8s.io/v1alpha3/namespaces/{namespace}/resourceclaims/{name}/status | +[**readNamespacedResourceClaimTemplate**](ResourceV1alpha3Api.md#readNamespacedResourceClaimTemplate) | **GET** /apis/resource.k8s.io/v1alpha3/namespaces/{namespace}/resourceclaimtemplates/{name} | +[**readResourceSlice**](ResourceV1alpha3Api.md#readResourceSlice) | **GET** /apis/resource.k8s.io/v1alpha3/resourceslices/{name} | +[**replaceDeviceClass**](ResourceV1alpha3Api.md#replaceDeviceClass) | **PUT** /apis/resource.k8s.io/v1alpha3/deviceclasses/{name} | +[**replaceDeviceTaintRule**](ResourceV1alpha3Api.md#replaceDeviceTaintRule) | **PUT** /apis/resource.k8s.io/v1alpha3/devicetaintrules/{name} | +[**replaceNamespacedResourceClaim**](ResourceV1alpha3Api.md#replaceNamespacedResourceClaim) | **PUT** /apis/resource.k8s.io/v1alpha3/namespaces/{namespace}/resourceclaims/{name} | +[**replaceNamespacedResourceClaimStatus**](ResourceV1alpha3Api.md#replaceNamespacedResourceClaimStatus) | **PUT** /apis/resource.k8s.io/v1alpha3/namespaces/{namespace}/resourceclaims/{name}/status | +[**replaceNamespacedResourceClaimTemplate**](ResourceV1alpha3Api.md#replaceNamespacedResourceClaimTemplate) | **PUT** /apis/resource.k8s.io/v1alpha3/namespaces/{namespace}/resourceclaimtemplates/{name} | +[**replaceResourceSlice**](ResourceV1alpha3Api.md#replaceResourceSlice) | **PUT** /apis/resource.k8s.io/v1alpha3/resourceslices/{name} | + + + +# **createDeviceClass** +> V1alpha3DeviceClass createDeviceClass(body, pretty, dryRun, fieldManager, fieldValidation) + + + +create a DeviceClass + +### Example +```java +// Import classes: +import io.kubernetes.client.openapi.ApiClient; +import io.kubernetes.client.openapi.ApiException; +import io.kubernetes.client.openapi.Configuration; +import io.kubernetes.client.openapi.auth.*; +import io.kubernetes.client.openapi.models.*; +import io.kubernetes.client.openapi.apis.ResourceV1alpha3Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + ResourceV1alpha3Api apiInstance = new ResourceV1alpha3Api(defaultClient); + V1alpha3DeviceClass body = new V1alpha3DeviceClass(); // V1alpha3DeviceClass | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + 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 fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. + try { + V1alpha3DeviceClass result = apiInstance.createDeviceClass(body, pretty, dryRun, fieldManager, fieldValidation); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ResourceV1alpha3Api#createDeviceClass"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | [**V1alpha3DeviceClass**](V1alpha3DeviceClass.md)| | + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] + **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] + **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] + +### Return type + +[**V1alpha3DeviceClass**](V1alpha3DeviceClass.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + + +# **createDeviceTaintRule** +> V1alpha3DeviceTaintRule createDeviceTaintRule(body, pretty, dryRun, fieldManager, fieldValidation) + + + +create a DeviceTaintRule + +### Example +```java +// Import classes: +import io.kubernetes.client.openapi.ApiClient; +import io.kubernetes.client.openapi.ApiException; +import io.kubernetes.client.openapi.Configuration; +import io.kubernetes.client.openapi.auth.*; +import io.kubernetes.client.openapi.models.*; +import io.kubernetes.client.openapi.apis.ResourceV1alpha3Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + ResourceV1alpha3Api apiInstance = new ResourceV1alpha3Api(defaultClient); + V1alpha3DeviceTaintRule body = new V1alpha3DeviceTaintRule(); // V1alpha3DeviceTaintRule | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + 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 fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. + try { + V1alpha3DeviceTaintRule result = apiInstance.createDeviceTaintRule(body, pretty, dryRun, fieldManager, fieldValidation); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ResourceV1alpha3Api#createDeviceTaintRule"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | [**V1alpha3DeviceTaintRule**](V1alpha3DeviceTaintRule.md)| | + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] + **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] + **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] + +### Return type + +[**V1alpha3DeviceTaintRule**](V1alpha3DeviceTaintRule.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + + +# **createNamespacedResourceClaim** +> V1alpha3ResourceClaim createNamespacedResourceClaim(namespace, body, pretty, dryRun, fieldManager, fieldValidation) + + + +create a ResourceClaim + +### Example +```java +// Import classes: +import io.kubernetes.client.openapi.ApiClient; +import io.kubernetes.client.openapi.ApiException; +import io.kubernetes.client.openapi.Configuration; +import io.kubernetes.client.openapi.auth.*; +import io.kubernetes.client.openapi.models.*; +import io.kubernetes.client.openapi.apis.ResourceV1alpha3Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + ResourceV1alpha3Api apiInstance = new ResourceV1alpha3Api(defaultClient); + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + V1alpha3ResourceClaim body = new V1alpha3ResourceClaim(); // V1alpha3ResourceClaim | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + 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 fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. + try { + V1alpha3ResourceClaim result = apiInstance.createNamespacedResourceClaim(namespace, body, pretty, dryRun, fieldManager, fieldValidation); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ResourceV1alpha3Api#createNamespacedResourceClaim"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **namespace** | **String**| object name and auth scope, such as for teams and projects | + **body** | [**V1alpha3ResourceClaim**](V1alpha3ResourceClaim.md)| | + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] + **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] + **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] + +### Return type + +[**V1alpha3ResourceClaim**](V1alpha3ResourceClaim.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + + +# **createNamespacedResourceClaimTemplate** +> V1alpha3ResourceClaimTemplate createNamespacedResourceClaimTemplate(namespace, body, pretty, dryRun, fieldManager, fieldValidation) + + + +create a ResourceClaimTemplate + +### Example +```java +// Import classes: +import io.kubernetes.client.openapi.ApiClient; +import io.kubernetes.client.openapi.ApiException; +import io.kubernetes.client.openapi.Configuration; +import io.kubernetes.client.openapi.auth.*; +import io.kubernetes.client.openapi.models.*; +import io.kubernetes.client.openapi.apis.ResourceV1alpha3Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + ResourceV1alpha3Api apiInstance = new ResourceV1alpha3Api(defaultClient); + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + V1alpha3ResourceClaimTemplate body = new V1alpha3ResourceClaimTemplate(); // V1alpha3ResourceClaimTemplate | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + 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 fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. + try { + V1alpha3ResourceClaimTemplate result = apiInstance.createNamespacedResourceClaimTemplate(namespace, body, pretty, dryRun, fieldManager, fieldValidation); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ResourceV1alpha3Api#createNamespacedResourceClaimTemplate"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **namespace** | **String**| object name and auth scope, such as for teams and projects | + **body** | [**V1alpha3ResourceClaimTemplate**](V1alpha3ResourceClaimTemplate.md)| | + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] + **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] + **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] + +### Return type + +[**V1alpha3ResourceClaimTemplate**](V1alpha3ResourceClaimTemplate.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + + +# **createResourceSlice** +> V1alpha3ResourceSlice createResourceSlice(body, pretty, dryRun, fieldManager, fieldValidation) + + + +create a ResourceSlice + +### Example +```java +// Import classes: +import io.kubernetes.client.openapi.ApiClient; +import io.kubernetes.client.openapi.ApiException; +import io.kubernetes.client.openapi.Configuration; +import io.kubernetes.client.openapi.auth.*; +import io.kubernetes.client.openapi.models.*; +import io.kubernetes.client.openapi.apis.ResourceV1alpha3Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + ResourceV1alpha3Api apiInstance = new ResourceV1alpha3Api(defaultClient); + V1alpha3ResourceSlice body = new V1alpha3ResourceSlice(); // V1alpha3ResourceSlice | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + 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 fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. + try { + V1alpha3ResourceSlice result = apiInstance.createResourceSlice(body, pretty, dryRun, fieldManager, fieldValidation); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ResourceV1alpha3Api#createResourceSlice"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | [**V1alpha3ResourceSlice**](V1alpha3ResourceSlice.md)| | + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] + **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] + **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] + +### Return type + +[**V1alpha3ResourceSlice**](V1alpha3ResourceSlice.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + + +# **deleteCollectionDeviceClass** +> V1Status deleteCollectionDeviceClass(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body) + + + +delete collection of DeviceClass + +### Example +```java +// Import classes: +import io.kubernetes.client.openapi.ApiClient; +import io.kubernetes.client.openapi.ApiException; +import io.kubernetes.client.openapi.Configuration; +import io.kubernetes.client.openapi.auth.*; +import io.kubernetes.client.openapi.models.*; +import io.kubernetes.client.openapi.apis.ResourceV1alpha3Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + ResourceV1alpha3Api apiInstance = new ResourceV1alpha3Api(defaultClient); + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + 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. + 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. + Integer gracePeriodSeconds = 56; // Integer | 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. + Boolean ignoreStoreReadErrorWithClusterBreakingPotential = true; // Boolean | if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it + String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. + Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + 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. 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. + String resourceVersion = "resourceVersion_example"; // String | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + String resourceVersionMatch = "resourceVersionMatch_example"; // String | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + Boolean sendInitialEvents = true; // Boolean | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | + try { + V1Status result = apiInstance.deleteCollectionDeviceClass(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ResourceV1alpha3Api#deleteCollectionDeviceClass"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] + **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] + **gracePeriodSeconds** | **Integer**| 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. | [optional] + **ignoreStoreReadErrorWithClusterBreakingPotential** | **Boolean**| if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it | [optional] + **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] + **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] + **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. 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. | [optional] + **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] + **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] + **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] + **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] + +### Return type + +[**V1Status**](V1Status.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + + +# **deleteCollectionDeviceTaintRule** +> V1Status deleteCollectionDeviceTaintRule(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body) + + + +delete collection of DeviceTaintRule + +### Example +```java +// Import classes: +import io.kubernetes.client.openapi.ApiClient; +import io.kubernetes.client.openapi.ApiException; +import io.kubernetes.client.openapi.Configuration; +import io.kubernetes.client.openapi.auth.*; +import io.kubernetes.client.openapi.models.*; +import io.kubernetes.client.openapi.apis.ResourceV1alpha3Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + ResourceV1alpha3Api apiInstance = new ResourceV1alpha3Api(defaultClient); + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + 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. + 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. + Integer gracePeriodSeconds = 56; // Integer | 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. + Boolean ignoreStoreReadErrorWithClusterBreakingPotential = true; // Boolean | if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it + String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. + Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + 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. 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. + String resourceVersion = "resourceVersion_example"; // String | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + String resourceVersionMatch = "resourceVersionMatch_example"; // String | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + Boolean sendInitialEvents = true; // Boolean | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | + try { + V1Status result = apiInstance.deleteCollectionDeviceTaintRule(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ResourceV1alpha3Api#deleteCollectionDeviceTaintRule"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] + **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] + **gracePeriodSeconds** | **Integer**| 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. | [optional] + **ignoreStoreReadErrorWithClusterBreakingPotential** | **Boolean**| if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it | [optional] + **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] + **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] + **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. 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. | [optional] + **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] + **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] + **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] + **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] + +### Return type + +[**V1Status**](V1Status.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + + +# **deleteCollectionNamespacedResourceClaim** +> V1Status deleteCollectionNamespacedResourceClaim(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body) + + + +delete collection of ResourceClaim + +### Example +```java +// Import classes: +import io.kubernetes.client.openapi.ApiClient; +import io.kubernetes.client.openapi.ApiException; +import io.kubernetes.client.openapi.Configuration; +import io.kubernetes.client.openapi.auth.*; +import io.kubernetes.client.openapi.models.*; +import io.kubernetes.client.openapi.apis.ResourceV1alpha3Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + ResourceV1alpha3Api apiInstance = new ResourceV1alpha3Api(defaultClient); + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + 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. + 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. + Integer gracePeriodSeconds = 56; // Integer | 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. + Boolean ignoreStoreReadErrorWithClusterBreakingPotential = true; // Boolean | if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it + String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. + Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + 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. 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. + String resourceVersion = "resourceVersion_example"; // String | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + String resourceVersionMatch = "resourceVersionMatch_example"; // String | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + Boolean sendInitialEvents = true; // Boolean | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | + try { + V1Status result = apiInstance.deleteCollectionNamespacedResourceClaim(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ResourceV1alpha3Api#deleteCollectionNamespacedResourceClaim"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **namespace** | **String**| object name and auth scope, such as for teams and projects | + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] + **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] + **gracePeriodSeconds** | **Integer**| 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. | [optional] + **ignoreStoreReadErrorWithClusterBreakingPotential** | **Boolean**| if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it | [optional] + **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] + **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] + **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. 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. | [optional] + **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] + **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] + **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] + **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] + +### Return type + +[**V1Status**](V1Status.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + + +# **deleteCollectionNamespacedResourceClaimTemplate** +> V1Status deleteCollectionNamespacedResourceClaimTemplate(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body) + + + +delete collection of ResourceClaimTemplate + +### Example +```java +// Import classes: +import io.kubernetes.client.openapi.ApiClient; +import io.kubernetes.client.openapi.ApiException; +import io.kubernetes.client.openapi.Configuration; +import io.kubernetes.client.openapi.auth.*; +import io.kubernetes.client.openapi.models.*; +import io.kubernetes.client.openapi.apis.ResourceV1alpha3Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + ResourceV1alpha3Api apiInstance = new ResourceV1alpha3Api(defaultClient); + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + 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. + 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. + Integer gracePeriodSeconds = 56; // Integer | 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. + Boolean ignoreStoreReadErrorWithClusterBreakingPotential = true; // Boolean | if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it + String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. + Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + 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. 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. + String resourceVersion = "resourceVersion_example"; // String | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + String resourceVersionMatch = "resourceVersionMatch_example"; // String | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + Boolean sendInitialEvents = true; // Boolean | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | + try { + V1Status result = apiInstance.deleteCollectionNamespacedResourceClaimTemplate(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ResourceV1alpha3Api#deleteCollectionNamespacedResourceClaimTemplate"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **namespace** | **String**| object name and auth scope, such as for teams and projects | + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] + **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] + **gracePeriodSeconds** | **Integer**| 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. | [optional] + **ignoreStoreReadErrorWithClusterBreakingPotential** | **Boolean**| if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it | [optional] + **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] + **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] + **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. 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. | [optional] + **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] + **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] + **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] + **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] + +### Return type + +[**V1Status**](V1Status.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + + +# **deleteCollectionResourceSlice** +> V1Status deleteCollectionResourceSlice(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body) + + + +delete collection of ResourceSlice + +### Example +```java +// Import classes: +import io.kubernetes.client.openapi.ApiClient; +import io.kubernetes.client.openapi.ApiException; +import io.kubernetes.client.openapi.Configuration; +import io.kubernetes.client.openapi.auth.*; +import io.kubernetes.client.openapi.models.*; +import io.kubernetes.client.openapi.apis.ResourceV1alpha3Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + ResourceV1alpha3Api apiInstance = new ResourceV1alpha3Api(defaultClient); + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + 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. + 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. + Integer gracePeriodSeconds = 56; // Integer | 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. + Boolean ignoreStoreReadErrorWithClusterBreakingPotential = true; // Boolean | if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it + String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. + Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + 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. 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. + String resourceVersion = "resourceVersion_example"; // String | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + String resourceVersionMatch = "resourceVersionMatch_example"; // String | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + Boolean sendInitialEvents = true; // Boolean | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | + try { + V1Status result = apiInstance.deleteCollectionResourceSlice(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ResourceV1alpha3Api#deleteCollectionResourceSlice"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] + **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] + **gracePeriodSeconds** | **Integer**| 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. | [optional] + **ignoreStoreReadErrorWithClusterBreakingPotential** | **Boolean**| if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it | [optional] + **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] + **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] + **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. 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. | [optional] + **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] + **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] + **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] + **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] + +### Return type + +[**V1Status**](V1Status.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + + +# **deleteDeviceClass** +> V1alpha3DeviceClass deleteDeviceClass(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body) + + + +delete a DeviceClass + +### Example +```java +// Import classes: +import io.kubernetes.client.openapi.ApiClient; +import io.kubernetes.client.openapi.ApiException; +import io.kubernetes.client.openapi.Configuration; +import io.kubernetes.client.openapi.auth.*; +import io.kubernetes.client.openapi.models.*; +import io.kubernetes.client.openapi.apis.ResourceV1alpha3Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + ResourceV1alpha3Api apiInstance = new ResourceV1alpha3Api(defaultClient); + String name = "name_example"; // String | name of the DeviceClass + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + 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 + Integer gracePeriodSeconds = 56; // Integer | 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. + Boolean ignoreStoreReadErrorWithClusterBreakingPotential = true; // Boolean | if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it + 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. 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. + V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | + try { + V1alpha3DeviceClass result = apiInstance.deleteDeviceClass(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ResourceV1alpha3Api#deleteDeviceClass"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **String**| name of the DeviceClass | + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] + **gracePeriodSeconds** | **Integer**| 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. | [optional] + **ignoreStoreReadErrorWithClusterBreakingPotential** | **Boolean**| if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it | [optional] + **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. 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. | [optional] + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] + +### Return type + +[**V1alpha3DeviceClass**](V1alpha3DeviceClass.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + + +# **deleteDeviceTaintRule** +> V1alpha3DeviceTaintRule deleteDeviceTaintRule(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body) + + + +delete a DeviceTaintRule + +### Example +```java +// Import classes: +import io.kubernetes.client.openapi.ApiClient; +import io.kubernetes.client.openapi.ApiException; +import io.kubernetes.client.openapi.Configuration; +import io.kubernetes.client.openapi.auth.*; +import io.kubernetes.client.openapi.models.*; +import io.kubernetes.client.openapi.apis.ResourceV1alpha3Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + ResourceV1alpha3Api apiInstance = new ResourceV1alpha3Api(defaultClient); + String name = "name_example"; // String | name of the DeviceTaintRule + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + 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 + Integer gracePeriodSeconds = 56; // Integer | 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. + Boolean ignoreStoreReadErrorWithClusterBreakingPotential = true; // Boolean | if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it + 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. 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. + V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | + try { + V1alpha3DeviceTaintRule result = apiInstance.deleteDeviceTaintRule(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ResourceV1alpha3Api#deleteDeviceTaintRule"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **String**| name of the DeviceTaintRule | + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] + **gracePeriodSeconds** | **Integer**| 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. | [optional] + **ignoreStoreReadErrorWithClusterBreakingPotential** | **Boolean**| if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it | [optional] + **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. 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. | [optional] + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] + +### Return type + +[**V1alpha3DeviceTaintRule**](V1alpha3DeviceTaintRule.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + + +# **deleteNamespacedResourceClaim** +> V1alpha3ResourceClaim deleteNamespacedResourceClaim(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body) + + + +delete a ResourceClaim + +### Example +```java +// Import classes: +import io.kubernetes.client.openapi.ApiClient; +import io.kubernetes.client.openapi.ApiException; +import io.kubernetes.client.openapi.Configuration; +import io.kubernetes.client.openapi.auth.*; +import io.kubernetes.client.openapi.models.*; +import io.kubernetes.client.openapi.apis.ResourceV1alpha3Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + ResourceV1alpha3Api apiInstance = new ResourceV1alpha3Api(defaultClient); + String name = "name_example"; // String | name of the ResourceClaim + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + 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 + Integer gracePeriodSeconds = 56; // Integer | 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. + Boolean ignoreStoreReadErrorWithClusterBreakingPotential = true; // Boolean | if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it + 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. 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. + V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | + try { + V1alpha3ResourceClaim result = apiInstance.deleteNamespacedResourceClaim(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ResourceV1alpha3Api#deleteNamespacedResourceClaim"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **String**| name of the ResourceClaim | + **namespace** | **String**| object name and auth scope, such as for teams and projects | + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] + **gracePeriodSeconds** | **Integer**| 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. | [optional] + **ignoreStoreReadErrorWithClusterBreakingPotential** | **Boolean**| if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it | [optional] + **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. 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. | [optional] + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] + +### Return type + +[**V1alpha3ResourceClaim**](V1alpha3ResourceClaim.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + + +# **deleteNamespacedResourceClaimTemplate** +> V1alpha3ResourceClaimTemplate deleteNamespacedResourceClaimTemplate(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body) + + + +delete a ResourceClaimTemplate + +### Example +```java +// Import classes: +import io.kubernetes.client.openapi.ApiClient; +import io.kubernetes.client.openapi.ApiException; +import io.kubernetes.client.openapi.Configuration; +import io.kubernetes.client.openapi.auth.*; +import io.kubernetes.client.openapi.models.*; +import io.kubernetes.client.openapi.apis.ResourceV1alpha3Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + ResourceV1alpha3Api apiInstance = new ResourceV1alpha3Api(defaultClient); + String name = "name_example"; // String | name of the ResourceClaimTemplate + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + 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 + Integer gracePeriodSeconds = 56; // Integer | 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. + Boolean ignoreStoreReadErrorWithClusterBreakingPotential = true; // Boolean | if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it + 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. 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. + V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | + try { + V1alpha3ResourceClaimTemplate result = apiInstance.deleteNamespacedResourceClaimTemplate(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ResourceV1alpha3Api#deleteNamespacedResourceClaimTemplate"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **String**| name of the ResourceClaimTemplate | + **namespace** | **String**| object name and auth scope, such as for teams and projects | + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] + **gracePeriodSeconds** | **Integer**| 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. | [optional] + **ignoreStoreReadErrorWithClusterBreakingPotential** | **Boolean**| if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it | [optional] + **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. 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. | [optional] + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] + +### Return type + +[**V1alpha3ResourceClaimTemplate**](V1alpha3ResourceClaimTemplate.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + + +# **deleteResourceSlice** +> V1alpha3ResourceSlice deleteResourceSlice(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body) + + + +delete a ResourceSlice + +### Example +```java +// Import classes: +import io.kubernetes.client.openapi.ApiClient; +import io.kubernetes.client.openapi.ApiException; +import io.kubernetes.client.openapi.Configuration; +import io.kubernetes.client.openapi.auth.*; +import io.kubernetes.client.openapi.models.*; +import io.kubernetes.client.openapi.apis.ResourceV1alpha3Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + ResourceV1alpha3Api apiInstance = new ResourceV1alpha3Api(defaultClient); + String name = "name_example"; // String | name of the ResourceSlice + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + 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 + Integer gracePeriodSeconds = 56; // Integer | 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. + Boolean ignoreStoreReadErrorWithClusterBreakingPotential = true; // Boolean | if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it + 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. 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. + V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | + try { + V1alpha3ResourceSlice result = apiInstance.deleteResourceSlice(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ResourceV1alpha3Api#deleteResourceSlice"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **String**| name of the ResourceSlice | + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] + **gracePeriodSeconds** | **Integer**| 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. | [optional] + **ignoreStoreReadErrorWithClusterBreakingPotential** | **Boolean**| if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it | [optional] + **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. 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. | [optional] + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] + +### Return type + +[**V1alpha3ResourceSlice**](V1alpha3ResourceSlice.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + + +# **getAPIResources** +> V1APIResourceList getAPIResources() + + + +get available resources + +### Example +```java +// Import classes: +import io.kubernetes.client.openapi.ApiClient; +import io.kubernetes.client.openapi.ApiException; +import io.kubernetes.client.openapi.Configuration; +import io.kubernetes.client.openapi.auth.*; +import io.kubernetes.client.openapi.models.*; +import io.kubernetes.client.openapi.apis.ResourceV1alpha3Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + ResourceV1alpha3Api apiInstance = new ResourceV1alpha3Api(defaultClient); + try { + V1APIResourceList result = apiInstance.getAPIResources(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ResourceV1alpha3Api#getAPIResources"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters +This endpoint does not need any parameter. + +### Return type + +[**V1APIResourceList**](V1APIResourceList.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + + +# **listDeviceClass** +> V1alpha3DeviceClassList listDeviceClass(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch) + + + +list or watch objects of kind DeviceClass + +### Example +```java +// Import classes: +import io.kubernetes.client.openapi.ApiClient; +import io.kubernetes.client.openapi.ApiException; +import io.kubernetes.client.openapi.Configuration; +import io.kubernetes.client.openapi.auth.*; +import io.kubernetes.client.openapi.models.*; +import io.kubernetes.client.openapi.apis.ResourceV1alpha3Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + ResourceV1alpha3Api apiInstance = new ResourceV1alpha3Api(defaultClient); + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + 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. + 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. + String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. + String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. + Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + String resourceVersion = "resourceVersion_example"; // String | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + String resourceVersionMatch = "resourceVersionMatch_example"; // String | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + Boolean sendInitialEvents = true; // Boolean | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + 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. Specify resourceVersion. + try { + V1alpha3DeviceClassList result = apiInstance.listDeviceClass(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ResourceV1alpha3Api#listDeviceClass"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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. | [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] + **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] + **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] + **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] + **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] + **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] + **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] + **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + +### Return type + +[**V1alpha3DeviceClassList**](V1alpha3DeviceClassList.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch, application/cbor-seq + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + + +# **listDeviceTaintRule** +> V1alpha3DeviceTaintRuleList listDeviceTaintRule(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch) + + + +list or watch objects of kind DeviceTaintRule + +### Example +```java +// Import classes: +import io.kubernetes.client.openapi.ApiClient; +import io.kubernetes.client.openapi.ApiException; +import io.kubernetes.client.openapi.Configuration; +import io.kubernetes.client.openapi.auth.*; +import io.kubernetes.client.openapi.models.*; +import io.kubernetes.client.openapi.apis.ResourceV1alpha3Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + ResourceV1alpha3Api apiInstance = new ResourceV1alpha3Api(defaultClient); + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + 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. + 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. + String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. + String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. + Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + String resourceVersion = "resourceVersion_example"; // String | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + String resourceVersionMatch = "resourceVersionMatch_example"; // String | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + Boolean sendInitialEvents = true; // Boolean | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + 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. Specify resourceVersion. + try { + V1alpha3DeviceTaintRuleList result = apiInstance.listDeviceTaintRule(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ResourceV1alpha3Api#listDeviceTaintRule"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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. | [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] + **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] + **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] + **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] + **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] + **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] + **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] + **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + +### Return type + +[**V1alpha3DeviceTaintRuleList**](V1alpha3DeviceTaintRuleList.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch, application/cbor-seq + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + + +# **listNamespacedResourceClaim** +> V1alpha3ResourceClaimList listNamespacedResourceClaim(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch) + + + +list or watch objects of kind ResourceClaim + +### Example +```java +// Import classes: +import io.kubernetes.client.openapi.ApiClient; +import io.kubernetes.client.openapi.ApiException; +import io.kubernetes.client.openapi.Configuration; +import io.kubernetes.client.openapi.auth.*; +import io.kubernetes.client.openapi.models.*; +import io.kubernetes.client.openapi.apis.ResourceV1alpha3Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + ResourceV1alpha3Api apiInstance = new ResourceV1alpha3Api(defaultClient); + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + 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. + 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. + String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. + String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. + Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + String resourceVersion = "resourceVersion_example"; // String | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + String resourceVersionMatch = "resourceVersionMatch_example"; // String | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + Boolean sendInitialEvents = true; // Boolean | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + 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. Specify resourceVersion. + try { + V1alpha3ResourceClaimList result = apiInstance.listNamespacedResourceClaim(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ResourceV1alpha3Api#listNamespacedResourceClaim"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **namespace** | **String**| object name and auth scope, such as for teams and projects | + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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. | [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] + **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] + **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] + **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] + **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] + **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] + **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] + **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + +### Return type + +[**V1alpha3ResourceClaimList**](V1alpha3ResourceClaimList.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch, application/cbor-seq + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + + +# **listNamespacedResourceClaimTemplate** +> V1alpha3ResourceClaimTemplateList listNamespacedResourceClaimTemplate(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch) + + + +list or watch objects of kind ResourceClaimTemplate + +### Example +```java +// Import classes: +import io.kubernetes.client.openapi.ApiClient; +import io.kubernetes.client.openapi.ApiException; +import io.kubernetes.client.openapi.Configuration; +import io.kubernetes.client.openapi.auth.*; +import io.kubernetes.client.openapi.models.*; +import io.kubernetes.client.openapi.apis.ResourceV1alpha3Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + ResourceV1alpha3Api apiInstance = new ResourceV1alpha3Api(defaultClient); + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + 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. + 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. + String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. + String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. + Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + String resourceVersion = "resourceVersion_example"; // String | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + String resourceVersionMatch = "resourceVersionMatch_example"; // String | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + Boolean sendInitialEvents = true; // Boolean | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + 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. Specify resourceVersion. + try { + V1alpha3ResourceClaimTemplateList result = apiInstance.listNamespacedResourceClaimTemplate(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ResourceV1alpha3Api#listNamespacedResourceClaimTemplate"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **namespace** | **String**| object name and auth scope, such as for teams and projects | + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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. | [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] + **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] + **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] + **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] + **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] + **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] + **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] + **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + +### Return type + +[**V1alpha3ResourceClaimTemplateList**](V1alpha3ResourceClaimTemplateList.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch, application/cbor-seq + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + + +# **listResourceClaimForAllNamespaces** +> V1alpha3ResourceClaimList listResourceClaimForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch) + + + +list or watch objects of kind ResourceClaim + +### Example +```java +// Import classes: +import io.kubernetes.client.openapi.ApiClient; +import io.kubernetes.client.openapi.ApiException; +import io.kubernetes.client.openapi.Configuration; +import io.kubernetes.client.openapi.auth.*; +import io.kubernetes.client.openapi.models.*; +import io.kubernetes.client.openapi.apis.ResourceV1alpha3Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + ResourceV1alpha3Api apiInstance = new ResourceV1alpha3Api(defaultClient); + 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. + 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. + String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. + String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. + Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + String resourceVersion = "resourceVersion_example"; // String | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + String resourceVersionMatch = "resourceVersionMatch_example"; // String | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + Boolean sendInitialEvents = true; // Boolean | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + 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. Specify resourceVersion. + try { + V1alpha3ResourceClaimList result = apiInstance.listResourceClaimForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ResourceV1alpha3Api#listResourceClaimForAllNamespaces"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **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. | [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] + **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] + **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] + **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] + **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] + **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] + **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] + **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + +### Return type + +[**V1alpha3ResourceClaimList**](V1alpha3ResourceClaimList.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch, application/cbor-seq + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + + +# **listResourceClaimTemplateForAllNamespaces** +> V1alpha3ResourceClaimTemplateList listResourceClaimTemplateForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch) + + + +list or watch objects of kind ResourceClaimTemplate + +### Example +```java +// Import classes: +import io.kubernetes.client.openapi.ApiClient; +import io.kubernetes.client.openapi.ApiException; +import io.kubernetes.client.openapi.Configuration; +import io.kubernetes.client.openapi.auth.*; +import io.kubernetes.client.openapi.models.*; +import io.kubernetes.client.openapi.apis.ResourceV1alpha3Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + ResourceV1alpha3Api apiInstance = new ResourceV1alpha3Api(defaultClient); + 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. + 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. + String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. + String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. + Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + String resourceVersion = "resourceVersion_example"; // String | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + String resourceVersionMatch = "resourceVersionMatch_example"; // String | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + Boolean sendInitialEvents = true; // Boolean | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + 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. Specify resourceVersion. + try { + V1alpha3ResourceClaimTemplateList result = apiInstance.listResourceClaimTemplateForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ResourceV1alpha3Api#listResourceClaimTemplateForAllNamespaces"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **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. | [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] + **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] + **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] + **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] + **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] + **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] + **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] + **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + +### Return type + +[**V1alpha3ResourceClaimTemplateList**](V1alpha3ResourceClaimTemplateList.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch, application/cbor-seq + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + + +# **listResourceSlice** +> V1alpha3ResourceSliceList listResourceSlice(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch) + + + +list or watch objects of kind ResourceSlice + +### Example +```java +// Import classes: +import io.kubernetes.client.openapi.ApiClient; +import io.kubernetes.client.openapi.ApiException; +import io.kubernetes.client.openapi.Configuration; +import io.kubernetes.client.openapi.auth.*; +import io.kubernetes.client.openapi.models.*; +import io.kubernetes.client.openapi.apis.ResourceV1alpha3Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + ResourceV1alpha3Api apiInstance = new ResourceV1alpha3Api(defaultClient); + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + 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. + 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. + String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. + String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. + Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + String resourceVersion = "resourceVersion_example"; // String | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + String resourceVersionMatch = "resourceVersionMatch_example"; // String | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + Boolean sendInitialEvents = true; // Boolean | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + 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. Specify resourceVersion. + try { + V1alpha3ResourceSliceList result = apiInstance.listResourceSlice(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ResourceV1alpha3Api#listResourceSlice"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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. | [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] + **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] + **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] + **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] + **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] + **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] + **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] + **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + +### Return type + +[**V1alpha3ResourceSliceList**](V1alpha3ResourceSliceList.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch, application/cbor-seq + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + + +# **patchDeviceClass** +> V1alpha3DeviceClass patchDeviceClass(name, body, pretty, dryRun, fieldManager, fieldValidation, force) + + + +partially update the specified DeviceClass + +### Example +```java +// Import classes: +import io.kubernetes.client.openapi.ApiClient; +import io.kubernetes.client.openapi.ApiException; +import io.kubernetes.client.openapi.Configuration; +import io.kubernetes.client.openapi.auth.*; +import io.kubernetes.client.openapi.models.*; +import io.kubernetes.client.openapi.apis.ResourceV1alpha3Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + ResourceV1alpha3Api apiInstance = new ResourceV1alpha3Api(defaultClient); + String name = "name_example"; // String | name of the DeviceClass + V1Patch body = new V1Patch(); // V1Patch | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + 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 fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). + String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. + Boolean force = true; // Boolean | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. + try { + V1alpha3DeviceClass result = apiInstance.patchDeviceClass(name, body, pretty, dryRun, fieldManager, fieldValidation, force); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ResourceV1alpha3Api#patchDeviceClass"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **String**| name of the DeviceClass | + **body** | **V1Patch**| | + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] + **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] + **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] + **force** | **Boolean**| Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | [optional] + +### Return type + +[**V1alpha3DeviceClass**](V1alpha3DeviceClass.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**401** | Unauthorized | - | + + +# **patchDeviceTaintRule** +> V1alpha3DeviceTaintRule patchDeviceTaintRule(name, body, pretty, dryRun, fieldManager, fieldValidation, force) + + + +partially update the specified DeviceTaintRule + +### Example +```java +// Import classes: +import io.kubernetes.client.openapi.ApiClient; +import io.kubernetes.client.openapi.ApiException; +import io.kubernetes.client.openapi.Configuration; +import io.kubernetes.client.openapi.auth.*; +import io.kubernetes.client.openapi.models.*; +import io.kubernetes.client.openapi.apis.ResourceV1alpha3Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + ResourceV1alpha3Api apiInstance = new ResourceV1alpha3Api(defaultClient); + String name = "name_example"; // String | name of the DeviceTaintRule + V1Patch body = new V1Patch(); // V1Patch | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + 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 fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). + String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. + Boolean force = true; // Boolean | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. + try { + V1alpha3DeviceTaintRule result = apiInstance.patchDeviceTaintRule(name, body, pretty, dryRun, fieldManager, fieldValidation, force); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ResourceV1alpha3Api#patchDeviceTaintRule"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **String**| name of the DeviceTaintRule | + **body** | **V1Patch**| | + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] + **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] + **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] + **force** | **Boolean**| Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | [optional] + +### Return type + +[**V1alpha3DeviceTaintRule**](V1alpha3DeviceTaintRule.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**401** | Unauthorized | - | + + +# **patchNamespacedResourceClaim** +> V1alpha3ResourceClaim patchNamespacedResourceClaim(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force) + + + +partially update the specified ResourceClaim + +### Example +```java +// Import classes: +import io.kubernetes.client.openapi.ApiClient; +import io.kubernetes.client.openapi.ApiException; +import io.kubernetes.client.openapi.Configuration; +import io.kubernetes.client.openapi.auth.*; +import io.kubernetes.client.openapi.models.*; +import io.kubernetes.client.openapi.apis.ResourceV1alpha3Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + ResourceV1alpha3Api apiInstance = new ResourceV1alpha3Api(defaultClient); + String name = "name_example"; // String | name of the ResourceClaim + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + V1Patch body = new V1Patch(); // V1Patch | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + 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 fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). + String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. + Boolean force = true; // Boolean | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. + try { + V1alpha3ResourceClaim result = apiInstance.patchNamespacedResourceClaim(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ResourceV1alpha3Api#patchNamespacedResourceClaim"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **String**| name of the ResourceClaim | + **namespace** | **String**| object name and auth scope, such as for teams and projects | + **body** | **V1Patch**| | + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] + **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] + **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] + **force** | **Boolean**| Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | [optional] + +### Return type + +[**V1alpha3ResourceClaim**](V1alpha3ResourceClaim.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**401** | Unauthorized | - | + + +# **patchNamespacedResourceClaimStatus** +> V1alpha3ResourceClaim patchNamespacedResourceClaimStatus(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force) + + + +partially update status of the specified ResourceClaim + +### Example +```java +// Import classes: +import io.kubernetes.client.openapi.ApiClient; +import io.kubernetes.client.openapi.ApiException; +import io.kubernetes.client.openapi.Configuration; +import io.kubernetes.client.openapi.auth.*; +import io.kubernetes.client.openapi.models.*; +import io.kubernetes.client.openapi.apis.ResourceV1alpha3Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + ResourceV1alpha3Api apiInstance = new ResourceV1alpha3Api(defaultClient); + String name = "name_example"; // String | name of the ResourceClaim + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + V1Patch body = new V1Patch(); // V1Patch | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + 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 fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). + String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. + Boolean force = true; // Boolean | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. + try { + V1alpha3ResourceClaim result = apiInstance.patchNamespacedResourceClaimStatus(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ResourceV1alpha3Api#patchNamespacedResourceClaimStatus"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **String**| name of the ResourceClaim | + **namespace** | **String**| object name and auth scope, such as for teams and projects | + **body** | **V1Patch**| | + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] + **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] + **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] + **force** | **Boolean**| Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | [optional] + +### Return type + +[**V1alpha3ResourceClaim**](V1alpha3ResourceClaim.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**401** | Unauthorized | - | + + +# **patchNamespacedResourceClaimTemplate** +> V1alpha3ResourceClaimTemplate patchNamespacedResourceClaimTemplate(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force) + + + +partially update the specified ResourceClaimTemplate + +### Example +```java +// Import classes: +import io.kubernetes.client.openapi.ApiClient; +import io.kubernetes.client.openapi.ApiException; +import io.kubernetes.client.openapi.Configuration; +import io.kubernetes.client.openapi.auth.*; +import io.kubernetes.client.openapi.models.*; +import io.kubernetes.client.openapi.apis.ResourceV1alpha3Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + ResourceV1alpha3Api apiInstance = new ResourceV1alpha3Api(defaultClient); + String name = "name_example"; // String | name of the ResourceClaimTemplate + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + V1Patch body = new V1Patch(); // V1Patch | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + 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 fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). + String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. + Boolean force = true; // Boolean | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. + try { + V1alpha3ResourceClaimTemplate result = apiInstance.patchNamespacedResourceClaimTemplate(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ResourceV1alpha3Api#patchNamespacedResourceClaimTemplate"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **String**| name of the ResourceClaimTemplate | + **namespace** | **String**| object name and auth scope, such as for teams and projects | + **body** | **V1Patch**| | + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] + **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] + **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] + **force** | **Boolean**| Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | [optional] + +### Return type + +[**V1alpha3ResourceClaimTemplate**](V1alpha3ResourceClaimTemplate.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**401** | Unauthorized | - | + + +# **patchResourceSlice** +> V1alpha3ResourceSlice patchResourceSlice(name, body, pretty, dryRun, fieldManager, fieldValidation, force) + + + +partially update the specified ResourceSlice + +### Example +```java +// Import classes: +import io.kubernetes.client.openapi.ApiClient; +import io.kubernetes.client.openapi.ApiException; +import io.kubernetes.client.openapi.Configuration; +import io.kubernetes.client.openapi.auth.*; +import io.kubernetes.client.openapi.models.*; +import io.kubernetes.client.openapi.apis.ResourceV1alpha3Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + ResourceV1alpha3Api apiInstance = new ResourceV1alpha3Api(defaultClient); + String name = "name_example"; // String | name of the ResourceSlice + V1Patch body = new V1Patch(); // V1Patch | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + 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 fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). + String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. + Boolean force = true; // Boolean | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. + try { + V1alpha3ResourceSlice result = apiInstance.patchResourceSlice(name, body, pretty, dryRun, fieldManager, fieldValidation, force); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ResourceV1alpha3Api#patchResourceSlice"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **String**| name of the ResourceSlice | + **body** | **V1Patch**| | + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] + **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] + **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] + **force** | **Boolean**| Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | [optional] + +### Return type + +[**V1alpha3ResourceSlice**](V1alpha3ResourceSlice.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**401** | Unauthorized | - | + + +# **readDeviceClass** +> V1alpha3DeviceClass readDeviceClass(name, pretty) + + + +read the specified DeviceClass + +### Example +```java +// Import classes: +import io.kubernetes.client.openapi.ApiClient; +import io.kubernetes.client.openapi.ApiException; +import io.kubernetes.client.openapi.Configuration; +import io.kubernetes.client.openapi.auth.*; +import io.kubernetes.client.openapi.models.*; +import io.kubernetes.client.openapi.apis.ResourceV1alpha3Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + ResourceV1alpha3Api apiInstance = new ResourceV1alpha3Api(defaultClient); + String name = "name_example"; // String | name of the DeviceClass + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + try { + V1alpha3DeviceClass result = apiInstance.readDeviceClass(name, pretty); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ResourceV1alpha3Api#readDeviceClass"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **String**| name of the DeviceClass | + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] + +### Return type + +[**V1alpha3DeviceClass**](V1alpha3DeviceClass.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + + +# **readDeviceTaintRule** +> V1alpha3DeviceTaintRule readDeviceTaintRule(name, pretty) + + + +read the specified DeviceTaintRule + +### Example +```java +// Import classes: +import io.kubernetes.client.openapi.ApiClient; +import io.kubernetes.client.openapi.ApiException; +import io.kubernetes.client.openapi.Configuration; +import io.kubernetes.client.openapi.auth.*; +import io.kubernetes.client.openapi.models.*; +import io.kubernetes.client.openapi.apis.ResourceV1alpha3Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + ResourceV1alpha3Api apiInstance = new ResourceV1alpha3Api(defaultClient); + String name = "name_example"; // String | name of the DeviceTaintRule + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + try { + V1alpha3DeviceTaintRule result = apiInstance.readDeviceTaintRule(name, pretty); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ResourceV1alpha3Api#readDeviceTaintRule"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **String**| name of the DeviceTaintRule | + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] + +### Return type + +[**V1alpha3DeviceTaintRule**](V1alpha3DeviceTaintRule.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + + +# **readNamespacedResourceClaim** +> V1alpha3ResourceClaim readNamespacedResourceClaim(name, namespace, pretty) + + + +read the specified ResourceClaim + +### Example +```java +// Import classes: +import io.kubernetes.client.openapi.ApiClient; +import io.kubernetes.client.openapi.ApiException; +import io.kubernetes.client.openapi.Configuration; +import io.kubernetes.client.openapi.auth.*; +import io.kubernetes.client.openapi.models.*; +import io.kubernetes.client.openapi.apis.ResourceV1alpha3Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + ResourceV1alpha3Api apiInstance = new ResourceV1alpha3Api(defaultClient); + String name = "name_example"; // String | name of the ResourceClaim + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + try { + V1alpha3ResourceClaim result = apiInstance.readNamespacedResourceClaim(name, namespace, pretty); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ResourceV1alpha3Api#readNamespacedResourceClaim"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **String**| name of the ResourceClaim | + **namespace** | **String**| object name and auth scope, such as for teams and projects | + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] + +### Return type + +[**V1alpha3ResourceClaim**](V1alpha3ResourceClaim.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + + +# **readNamespacedResourceClaimStatus** +> V1alpha3ResourceClaim readNamespacedResourceClaimStatus(name, namespace, pretty) + + + +read status of the specified ResourceClaim + +### Example +```java +// Import classes: +import io.kubernetes.client.openapi.ApiClient; +import io.kubernetes.client.openapi.ApiException; +import io.kubernetes.client.openapi.Configuration; +import io.kubernetes.client.openapi.auth.*; +import io.kubernetes.client.openapi.models.*; +import io.kubernetes.client.openapi.apis.ResourceV1alpha3Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + ResourceV1alpha3Api apiInstance = new ResourceV1alpha3Api(defaultClient); + String name = "name_example"; // String | name of the ResourceClaim + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + try { + V1alpha3ResourceClaim result = apiInstance.readNamespacedResourceClaimStatus(name, namespace, pretty); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ResourceV1alpha3Api#readNamespacedResourceClaimStatus"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **String**| name of the ResourceClaim | + **namespace** | **String**| object name and auth scope, such as for teams and projects | + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] + +### Return type + +[**V1alpha3ResourceClaim**](V1alpha3ResourceClaim.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + + +# **readNamespacedResourceClaimTemplate** +> V1alpha3ResourceClaimTemplate readNamespacedResourceClaimTemplate(name, namespace, pretty) + + + +read the specified ResourceClaimTemplate + +### Example +```java +// Import classes: +import io.kubernetes.client.openapi.ApiClient; +import io.kubernetes.client.openapi.ApiException; +import io.kubernetes.client.openapi.Configuration; +import io.kubernetes.client.openapi.auth.*; +import io.kubernetes.client.openapi.models.*; +import io.kubernetes.client.openapi.apis.ResourceV1alpha3Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + ResourceV1alpha3Api apiInstance = new ResourceV1alpha3Api(defaultClient); + String name = "name_example"; // String | name of the ResourceClaimTemplate + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + try { + V1alpha3ResourceClaimTemplate result = apiInstance.readNamespacedResourceClaimTemplate(name, namespace, pretty); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ResourceV1alpha3Api#readNamespacedResourceClaimTemplate"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **String**| name of the ResourceClaimTemplate | + **namespace** | **String**| object name and auth scope, such as for teams and projects | + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] + +### Return type + +[**V1alpha3ResourceClaimTemplate**](V1alpha3ResourceClaimTemplate.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + + +# **readResourceSlice** +> V1alpha3ResourceSlice readResourceSlice(name, pretty) + + + +read the specified ResourceSlice + +### Example +```java +// Import classes: +import io.kubernetes.client.openapi.ApiClient; +import io.kubernetes.client.openapi.ApiException; +import io.kubernetes.client.openapi.Configuration; +import io.kubernetes.client.openapi.auth.*; +import io.kubernetes.client.openapi.models.*; +import io.kubernetes.client.openapi.apis.ResourceV1alpha3Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + ResourceV1alpha3Api apiInstance = new ResourceV1alpha3Api(defaultClient); + String name = "name_example"; // String | name of the ResourceSlice + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + try { + V1alpha3ResourceSlice result = apiInstance.readResourceSlice(name, pretty); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ResourceV1alpha3Api#readResourceSlice"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **String**| name of the ResourceSlice | + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] + +### Return type + +[**V1alpha3ResourceSlice**](V1alpha3ResourceSlice.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + + +# **replaceDeviceClass** +> V1alpha3DeviceClass replaceDeviceClass(name, body, pretty, dryRun, fieldManager, fieldValidation) + + + +replace the specified DeviceClass + +### Example +```java +// Import classes: +import io.kubernetes.client.openapi.ApiClient; +import io.kubernetes.client.openapi.ApiException; +import io.kubernetes.client.openapi.Configuration; +import io.kubernetes.client.openapi.auth.*; +import io.kubernetes.client.openapi.models.*; +import io.kubernetes.client.openapi.apis.ResourceV1alpha3Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + ResourceV1alpha3Api apiInstance = new ResourceV1alpha3Api(defaultClient); + String name = "name_example"; // String | name of the DeviceClass + V1alpha3DeviceClass body = new V1alpha3DeviceClass(); // V1alpha3DeviceClass | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + 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 fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. + try { + V1alpha3DeviceClass result = apiInstance.replaceDeviceClass(name, body, pretty, dryRun, fieldManager, fieldValidation); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ResourceV1alpha3Api#replaceDeviceClass"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **String**| name of the DeviceClass | + **body** | [**V1alpha3DeviceClass**](V1alpha3DeviceClass.md)| | + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] + **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] + **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] + +### Return type + +[**V1alpha3DeviceClass**](V1alpha3DeviceClass.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**401** | Unauthorized | - | + + +# **replaceDeviceTaintRule** +> V1alpha3DeviceTaintRule replaceDeviceTaintRule(name, body, pretty, dryRun, fieldManager, fieldValidation) + + + +replace the specified DeviceTaintRule + +### Example +```java +// Import classes: +import io.kubernetes.client.openapi.ApiClient; +import io.kubernetes.client.openapi.ApiException; +import io.kubernetes.client.openapi.Configuration; +import io.kubernetes.client.openapi.auth.*; +import io.kubernetes.client.openapi.models.*; +import io.kubernetes.client.openapi.apis.ResourceV1alpha3Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + ResourceV1alpha3Api apiInstance = new ResourceV1alpha3Api(defaultClient); + String name = "name_example"; // String | name of the DeviceTaintRule + V1alpha3DeviceTaintRule body = new V1alpha3DeviceTaintRule(); // V1alpha3DeviceTaintRule | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + 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 fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. + try { + V1alpha3DeviceTaintRule result = apiInstance.replaceDeviceTaintRule(name, body, pretty, dryRun, fieldManager, fieldValidation); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ResourceV1alpha3Api#replaceDeviceTaintRule"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **String**| name of the DeviceTaintRule | + **body** | [**V1alpha3DeviceTaintRule**](V1alpha3DeviceTaintRule.md)| | + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] + **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] + **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] + +### Return type + +[**V1alpha3DeviceTaintRule**](V1alpha3DeviceTaintRule.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**401** | Unauthorized | - | + + +# **replaceNamespacedResourceClaim** +> V1alpha3ResourceClaim replaceNamespacedResourceClaim(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation) + + + +replace the specified ResourceClaim + +### Example +```java +// Import classes: +import io.kubernetes.client.openapi.ApiClient; +import io.kubernetes.client.openapi.ApiException; +import io.kubernetes.client.openapi.Configuration; +import io.kubernetes.client.openapi.auth.*; +import io.kubernetes.client.openapi.models.*; +import io.kubernetes.client.openapi.apis.ResourceV1alpha3Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + ResourceV1alpha3Api apiInstance = new ResourceV1alpha3Api(defaultClient); + String name = "name_example"; // String | name of the ResourceClaim + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + V1alpha3ResourceClaim body = new V1alpha3ResourceClaim(); // V1alpha3ResourceClaim | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + 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 fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. + try { + V1alpha3ResourceClaim result = apiInstance.replaceNamespacedResourceClaim(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ResourceV1alpha3Api#replaceNamespacedResourceClaim"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **String**| name of the ResourceClaim | + **namespace** | **String**| object name and auth scope, such as for teams and projects | + **body** | [**V1alpha3ResourceClaim**](V1alpha3ResourceClaim.md)| | + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] + **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] + **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] + +### Return type + +[**V1alpha3ResourceClaim**](V1alpha3ResourceClaim.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**401** | Unauthorized | - | + + +# **replaceNamespacedResourceClaimStatus** +> V1alpha3ResourceClaim replaceNamespacedResourceClaimStatus(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation) + + + +replace status of the specified ResourceClaim + +### Example +```java +// Import classes: +import io.kubernetes.client.openapi.ApiClient; +import io.kubernetes.client.openapi.ApiException; +import io.kubernetes.client.openapi.Configuration; +import io.kubernetes.client.openapi.auth.*; +import io.kubernetes.client.openapi.models.*; +import io.kubernetes.client.openapi.apis.ResourceV1alpha3Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + ResourceV1alpha3Api apiInstance = new ResourceV1alpha3Api(defaultClient); + String name = "name_example"; // String | name of the ResourceClaim + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + V1alpha3ResourceClaim body = new V1alpha3ResourceClaim(); // V1alpha3ResourceClaim | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + 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 fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. + try { + V1alpha3ResourceClaim result = apiInstance.replaceNamespacedResourceClaimStatus(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ResourceV1alpha3Api#replaceNamespacedResourceClaimStatus"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **String**| name of the ResourceClaim | + **namespace** | **String**| object name and auth scope, such as for teams and projects | + **body** | [**V1alpha3ResourceClaim**](V1alpha3ResourceClaim.md)| | + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] + **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] + **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] + +### Return type + +[**V1alpha3ResourceClaim**](V1alpha3ResourceClaim.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**401** | Unauthorized | - | + + +# **replaceNamespacedResourceClaimTemplate** +> V1alpha3ResourceClaimTemplate replaceNamespacedResourceClaimTemplate(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation) + + + +replace the specified ResourceClaimTemplate + +### Example +```java +// Import classes: +import io.kubernetes.client.openapi.ApiClient; +import io.kubernetes.client.openapi.ApiException; +import io.kubernetes.client.openapi.Configuration; +import io.kubernetes.client.openapi.auth.*; +import io.kubernetes.client.openapi.models.*; +import io.kubernetes.client.openapi.apis.ResourceV1alpha3Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + ResourceV1alpha3Api apiInstance = new ResourceV1alpha3Api(defaultClient); + String name = "name_example"; // String | name of the ResourceClaimTemplate + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + V1alpha3ResourceClaimTemplate body = new V1alpha3ResourceClaimTemplate(); // V1alpha3ResourceClaimTemplate | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + 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 fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. + try { + V1alpha3ResourceClaimTemplate result = apiInstance.replaceNamespacedResourceClaimTemplate(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ResourceV1alpha3Api#replaceNamespacedResourceClaimTemplate"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **String**| name of the ResourceClaimTemplate | + **namespace** | **String**| object name and auth scope, such as for teams and projects | + **body** | [**V1alpha3ResourceClaimTemplate**](V1alpha3ResourceClaimTemplate.md)| | + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] + **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] + **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] + +### Return type + +[**V1alpha3ResourceClaimTemplate**](V1alpha3ResourceClaimTemplate.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**401** | Unauthorized | - | + + +# **replaceResourceSlice** +> V1alpha3ResourceSlice replaceResourceSlice(name, body, pretty, dryRun, fieldManager, fieldValidation) + + + +replace the specified ResourceSlice + +### Example +```java +// Import classes: +import io.kubernetes.client.openapi.ApiClient; +import io.kubernetes.client.openapi.ApiException; +import io.kubernetes.client.openapi.Configuration; +import io.kubernetes.client.openapi.auth.*; +import io.kubernetes.client.openapi.models.*; +import io.kubernetes.client.openapi.apis.ResourceV1alpha3Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + ResourceV1alpha3Api apiInstance = new ResourceV1alpha3Api(defaultClient); + String name = "name_example"; // String | name of the ResourceSlice + V1alpha3ResourceSlice body = new V1alpha3ResourceSlice(); // V1alpha3ResourceSlice | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + 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 fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. + try { + V1alpha3ResourceSlice result = apiInstance.replaceResourceSlice(name, body, pretty, dryRun, fieldManager, fieldValidation); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ResourceV1alpha3Api#replaceResourceSlice"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **String**| name of the ResourceSlice | + **body** | [**V1alpha3ResourceSlice**](V1alpha3ResourceSlice.md)| | + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] + **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] + **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] + +### Return type + +[**V1alpha3ResourceSlice**](V1alpha3ResourceSlice.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**401** | Unauthorized | - | + diff --git a/kubernetes/docs/ResourceV1beta1Api.md b/kubernetes/docs/ResourceV1beta1Api.md new file mode 100644 index 0000000000..ed31b02b12 --- /dev/null +++ b/kubernetes/docs/ResourceV1beta1Api.md @@ -0,0 +1,2914 @@ +# ResourceV1beta1Api + +All URIs are relative to *http://localhost* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**createDeviceClass**](ResourceV1beta1Api.md#createDeviceClass) | **POST** /apis/resource.k8s.io/v1beta1/deviceclasses | +[**createNamespacedResourceClaim**](ResourceV1beta1Api.md#createNamespacedResourceClaim) | **POST** /apis/resource.k8s.io/v1beta1/namespaces/{namespace}/resourceclaims | +[**createNamespacedResourceClaimTemplate**](ResourceV1beta1Api.md#createNamespacedResourceClaimTemplate) | **POST** /apis/resource.k8s.io/v1beta1/namespaces/{namespace}/resourceclaimtemplates | +[**createResourceSlice**](ResourceV1beta1Api.md#createResourceSlice) | **POST** /apis/resource.k8s.io/v1beta1/resourceslices | +[**deleteCollectionDeviceClass**](ResourceV1beta1Api.md#deleteCollectionDeviceClass) | **DELETE** /apis/resource.k8s.io/v1beta1/deviceclasses | +[**deleteCollectionNamespacedResourceClaim**](ResourceV1beta1Api.md#deleteCollectionNamespacedResourceClaim) | **DELETE** /apis/resource.k8s.io/v1beta1/namespaces/{namespace}/resourceclaims | +[**deleteCollectionNamespacedResourceClaimTemplate**](ResourceV1beta1Api.md#deleteCollectionNamespacedResourceClaimTemplate) | **DELETE** /apis/resource.k8s.io/v1beta1/namespaces/{namespace}/resourceclaimtemplates | +[**deleteCollectionResourceSlice**](ResourceV1beta1Api.md#deleteCollectionResourceSlice) | **DELETE** /apis/resource.k8s.io/v1beta1/resourceslices | +[**deleteDeviceClass**](ResourceV1beta1Api.md#deleteDeviceClass) | **DELETE** /apis/resource.k8s.io/v1beta1/deviceclasses/{name} | +[**deleteNamespacedResourceClaim**](ResourceV1beta1Api.md#deleteNamespacedResourceClaim) | **DELETE** /apis/resource.k8s.io/v1beta1/namespaces/{namespace}/resourceclaims/{name} | +[**deleteNamespacedResourceClaimTemplate**](ResourceV1beta1Api.md#deleteNamespacedResourceClaimTemplate) | **DELETE** /apis/resource.k8s.io/v1beta1/namespaces/{namespace}/resourceclaimtemplates/{name} | +[**deleteResourceSlice**](ResourceV1beta1Api.md#deleteResourceSlice) | **DELETE** /apis/resource.k8s.io/v1beta1/resourceslices/{name} | +[**getAPIResources**](ResourceV1beta1Api.md#getAPIResources) | **GET** /apis/resource.k8s.io/v1beta1/ | +[**listDeviceClass**](ResourceV1beta1Api.md#listDeviceClass) | **GET** /apis/resource.k8s.io/v1beta1/deviceclasses | +[**listNamespacedResourceClaim**](ResourceV1beta1Api.md#listNamespacedResourceClaim) | **GET** /apis/resource.k8s.io/v1beta1/namespaces/{namespace}/resourceclaims | +[**listNamespacedResourceClaimTemplate**](ResourceV1beta1Api.md#listNamespacedResourceClaimTemplate) | **GET** /apis/resource.k8s.io/v1beta1/namespaces/{namespace}/resourceclaimtemplates | +[**listResourceClaimForAllNamespaces**](ResourceV1beta1Api.md#listResourceClaimForAllNamespaces) | **GET** /apis/resource.k8s.io/v1beta1/resourceclaims | +[**listResourceClaimTemplateForAllNamespaces**](ResourceV1beta1Api.md#listResourceClaimTemplateForAllNamespaces) | **GET** /apis/resource.k8s.io/v1beta1/resourceclaimtemplates | +[**listResourceSlice**](ResourceV1beta1Api.md#listResourceSlice) | **GET** /apis/resource.k8s.io/v1beta1/resourceslices | +[**patchDeviceClass**](ResourceV1beta1Api.md#patchDeviceClass) | **PATCH** /apis/resource.k8s.io/v1beta1/deviceclasses/{name} | +[**patchNamespacedResourceClaim**](ResourceV1beta1Api.md#patchNamespacedResourceClaim) | **PATCH** /apis/resource.k8s.io/v1beta1/namespaces/{namespace}/resourceclaims/{name} | +[**patchNamespacedResourceClaimStatus**](ResourceV1beta1Api.md#patchNamespacedResourceClaimStatus) | **PATCH** /apis/resource.k8s.io/v1beta1/namespaces/{namespace}/resourceclaims/{name}/status | +[**patchNamespacedResourceClaimTemplate**](ResourceV1beta1Api.md#patchNamespacedResourceClaimTemplate) | **PATCH** /apis/resource.k8s.io/v1beta1/namespaces/{namespace}/resourceclaimtemplates/{name} | +[**patchResourceSlice**](ResourceV1beta1Api.md#patchResourceSlice) | **PATCH** /apis/resource.k8s.io/v1beta1/resourceslices/{name} | +[**readDeviceClass**](ResourceV1beta1Api.md#readDeviceClass) | **GET** /apis/resource.k8s.io/v1beta1/deviceclasses/{name} | +[**readNamespacedResourceClaim**](ResourceV1beta1Api.md#readNamespacedResourceClaim) | **GET** /apis/resource.k8s.io/v1beta1/namespaces/{namespace}/resourceclaims/{name} | +[**readNamespacedResourceClaimStatus**](ResourceV1beta1Api.md#readNamespacedResourceClaimStatus) | **GET** /apis/resource.k8s.io/v1beta1/namespaces/{namespace}/resourceclaims/{name}/status | +[**readNamespacedResourceClaimTemplate**](ResourceV1beta1Api.md#readNamespacedResourceClaimTemplate) | **GET** /apis/resource.k8s.io/v1beta1/namespaces/{namespace}/resourceclaimtemplates/{name} | +[**readResourceSlice**](ResourceV1beta1Api.md#readResourceSlice) | **GET** /apis/resource.k8s.io/v1beta1/resourceslices/{name} | +[**replaceDeviceClass**](ResourceV1beta1Api.md#replaceDeviceClass) | **PUT** /apis/resource.k8s.io/v1beta1/deviceclasses/{name} | +[**replaceNamespacedResourceClaim**](ResourceV1beta1Api.md#replaceNamespacedResourceClaim) | **PUT** /apis/resource.k8s.io/v1beta1/namespaces/{namespace}/resourceclaims/{name} | +[**replaceNamespacedResourceClaimStatus**](ResourceV1beta1Api.md#replaceNamespacedResourceClaimStatus) | **PUT** /apis/resource.k8s.io/v1beta1/namespaces/{namespace}/resourceclaims/{name}/status | +[**replaceNamespacedResourceClaimTemplate**](ResourceV1beta1Api.md#replaceNamespacedResourceClaimTemplate) | **PUT** /apis/resource.k8s.io/v1beta1/namespaces/{namespace}/resourceclaimtemplates/{name} | +[**replaceResourceSlice**](ResourceV1beta1Api.md#replaceResourceSlice) | **PUT** /apis/resource.k8s.io/v1beta1/resourceslices/{name} | + + + +# **createDeviceClass** +> V1beta1DeviceClass createDeviceClass(body, pretty, dryRun, fieldManager, fieldValidation) + + + +create a DeviceClass + +### Example +```java +// Import classes: +import io.kubernetes.client.openapi.ApiClient; +import io.kubernetes.client.openapi.ApiException; +import io.kubernetes.client.openapi.Configuration; +import io.kubernetes.client.openapi.auth.*; +import io.kubernetes.client.openapi.models.*; +import io.kubernetes.client.openapi.apis.ResourceV1beta1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + ResourceV1beta1Api apiInstance = new ResourceV1beta1Api(defaultClient); + V1beta1DeviceClass body = new V1beta1DeviceClass(); // V1beta1DeviceClass | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + 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 fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. + try { + V1beta1DeviceClass result = apiInstance.createDeviceClass(body, pretty, dryRun, fieldManager, fieldValidation); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ResourceV1beta1Api#createDeviceClass"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | [**V1beta1DeviceClass**](V1beta1DeviceClass.md)| | + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] + **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] + **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] + +### Return type + +[**V1beta1DeviceClass**](V1beta1DeviceClass.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + + +# **createNamespacedResourceClaim** +> V1beta1ResourceClaim createNamespacedResourceClaim(namespace, body, pretty, dryRun, fieldManager, fieldValidation) + + + +create a ResourceClaim + +### Example +```java +// Import classes: +import io.kubernetes.client.openapi.ApiClient; +import io.kubernetes.client.openapi.ApiException; +import io.kubernetes.client.openapi.Configuration; +import io.kubernetes.client.openapi.auth.*; +import io.kubernetes.client.openapi.models.*; +import io.kubernetes.client.openapi.apis.ResourceV1beta1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + ResourceV1beta1Api apiInstance = new ResourceV1beta1Api(defaultClient); + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + V1beta1ResourceClaim body = new V1beta1ResourceClaim(); // V1beta1ResourceClaim | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + 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 fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. + try { + V1beta1ResourceClaim result = apiInstance.createNamespacedResourceClaim(namespace, body, pretty, dryRun, fieldManager, fieldValidation); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ResourceV1beta1Api#createNamespacedResourceClaim"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **namespace** | **String**| object name and auth scope, such as for teams and projects | + **body** | [**V1beta1ResourceClaim**](V1beta1ResourceClaim.md)| | + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] + **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] + **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] + +### Return type + +[**V1beta1ResourceClaim**](V1beta1ResourceClaim.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + + +# **createNamespacedResourceClaimTemplate** +> V1beta1ResourceClaimTemplate createNamespacedResourceClaimTemplate(namespace, body, pretty, dryRun, fieldManager, fieldValidation) + + + +create a ResourceClaimTemplate + +### Example +```java +// Import classes: +import io.kubernetes.client.openapi.ApiClient; +import io.kubernetes.client.openapi.ApiException; +import io.kubernetes.client.openapi.Configuration; +import io.kubernetes.client.openapi.auth.*; +import io.kubernetes.client.openapi.models.*; +import io.kubernetes.client.openapi.apis.ResourceV1beta1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + ResourceV1beta1Api apiInstance = new ResourceV1beta1Api(defaultClient); + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + V1beta1ResourceClaimTemplate body = new V1beta1ResourceClaimTemplate(); // V1beta1ResourceClaimTemplate | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + 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 fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. + try { + V1beta1ResourceClaimTemplate result = apiInstance.createNamespacedResourceClaimTemplate(namespace, body, pretty, dryRun, fieldManager, fieldValidation); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ResourceV1beta1Api#createNamespacedResourceClaimTemplate"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **namespace** | **String**| object name and auth scope, such as for teams and projects | + **body** | [**V1beta1ResourceClaimTemplate**](V1beta1ResourceClaimTemplate.md)| | + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] + **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] + **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] + +### Return type + +[**V1beta1ResourceClaimTemplate**](V1beta1ResourceClaimTemplate.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + + +# **createResourceSlice** +> V1beta1ResourceSlice createResourceSlice(body, pretty, dryRun, fieldManager, fieldValidation) + + + +create a ResourceSlice + +### Example +```java +// Import classes: +import io.kubernetes.client.openapi.ApiClient; +import io.kubernetes.client.openapi.ApiException; +import io.kubernetes.client.openapi.Configuration; +import io.kubernetes.client.openapi.auth.*; +import io.kubernetes.client.openapi.models.*; +import io.kubernetes.client.openapi.apis.ResourceV1beta1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + ResourceV1beta1Api apiInstance = new ResourceV1beta1Api(defaultClient); + V1beta1ResourceSlice body = new V1beta1ResourceSlice(); // V1beta1ResourceSlice | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + 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 fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. + try { + V1beta1ResourceSlice result = apiInstance.createResourceSlice(body, pretty, dryRun, fieldManager, fieldValidation); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ResourceV1beta1Api#createResourceSlice"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | [**V1beta1ResourceSlice**](V1beta1ResourceSlice.md)| | + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] + **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] + **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] + +### Return type + +[**V1beta1ResourceSlice**](V1beta1ResourceSlice.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + + +# **deleteCollectionDeviceClass** +> V1Status deleteCollectionDeviceClass(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body) + + + +delete collection of DeviceClass + +### Example +```java +// Import classes: +import io.kubernetes.client.openapi.ApiClient; +import io.kubernetes.client.openapi.ApiException; +import io.kubernetes.client.openapi.Configuration; +import io.kubernetes.client.openapi.auth.*; +import io.kubernetes.client.openapi.models.*; +import io.kubernetes.client.openapi.apis.ResourceV1beta1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + ResourceV1beta1Api apiInstance = new ResourceV1beta1Api(defaultClient); + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + 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. + 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. + Integer gracePeriodSeconds = 56; // Integer | 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. + Boolean ignoreStoreReadErrorWithClusterBreakingPotential = true; // Boolean | if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it + String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. + Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + 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. 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. + String resourceVersion = "resourceVersion_example"; // String | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + String resourceVersionMatch = "resourceVersionMatch_example"; // String | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + Boolean sendInitialEvents = true; // Boolean | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | + try { + V1Status result = apiInstance.deleteCollectionDeviceClass(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ResourceV1beta1Api#deleteCollectionDeviceClass"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] + **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] + **gracePeriodSeconds** | **Integer**| 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. | [optional] + **ignoreStoreReadErrorWithClusterBreakingPotential** | **Boolean**| if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it | [optional] + **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] + **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] + **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. 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. | [optional] + **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] + **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] + **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] + **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] + +### Return type + +[**V1Status**](V1Status.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + + +# **deleteCollectionNamespacedResourceClaim** +> V1Status deleteCollectionNamespacedResourceClaim(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body) + + + +delete collection of ResourceClaim + +### Example +```java +// Import classes: +import io.kubernetes.client.openapi.ApiClient; +import io.kubernetes.client.openapi.ApiException; +import io.kubernetes.client.openapi.Configuration; +import io.kubernetes.client.openapi.auth.*; +import io.kubernetes.client.openapi.models.*; +import io.kubernetes.client.openapi.apis.ResourceV1beta1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + ResourceV1beta1Api apiInstance = new ResourceV1beta1Api(defaultClient); + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + 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. + 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. + Integer gracePeriodSeconds = 56; // Integer | 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. + Boolean ignoreStoreReadErrorWithClusterBreakingPotential = true; // Boolean | if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it + String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. + Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + 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. 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. + String resourceVersion = "resourceVersion_example"; // String | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + String resourceVersionMatch = "resourceVersionMatch_example"; // String | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + Boolean sendInitialEvents = true; // Boolean | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | + try { + V1Status result = apiInstance.deleteCollectionNamespacedResourceClaim(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ResourceV1beta1Api#deleteCollectionNamespacedResourceClaim"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **namespace** | **String**| object name and auth scope, such as for teams and projects | + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] + **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] + **gracePeriodSeconds** | **Integer**| 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. | [optional] + **ignoreStoreReadErrorWithClusterBreakingPotential** | **Boolean**| if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it | [optional] + **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] + **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] + **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. 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. | [optional] + **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] + **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] + **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] + **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] + +### Return type + +[**V1Status**](V1Status.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + + +# **deleteCollectionNamespacedResourceClaimTemplate** +> V1Status deleteCollectionNamespacedResourceClaimTemplate(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body) + + + +delete collection of ResourceClaimTemplate + +### Example +```java +// Import classes: +import io.kubernetes.client.openapi.ApiClient; +import io.kubernetes.client.openapi.ApiException; +import io.kubernetes.client.openapi.Configuration; +import io.kubernetes.client.openapi.auth.*; +import io.kubernetes.client.openapi.models.*; +import io.kubernetes.client.openapi.apis.ResourceV1beta1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + ResourceV1beta1Api apiInstance = new ResourceV1beta1Api(defaultClient); + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + 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. + 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. + Integer gracePeriodSeconds = 56; // Integer | 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. + Boolean ignoreStoreReadErrorWithClusterBreakingPotential = true; // Boolean | if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it + String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. + Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + 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. 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. + String resourceVersion = "resourceVersion_example"; // String | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + String resourceVersionMatch = "resourceVersionMatch_example"; // String | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + Boolean sendInitialEvents = true; // Boolean | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | + try { + V1Status result = apiInstance.deleteCollectionNamespacedResourceClaimTemplate(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ResourceV1beta1Api#deleteCollectionNamespacedResourceClaimTemplate"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **namespace** | **String**| object name and auth scope, such as for teams and projects | + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] + **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] + **gracePeriodSeconds** | **Integer**| 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. | [optional] + **ignoreStoreReadErrorWithClusterBreakingPotential** | **Boolean**| if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it | [optional] + **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] + **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] + **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. 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. | [optional] + **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] + **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] + **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] + **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] + +### Return type + +[**V1Status**](V1Status.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + + +# **deleteCollectionResourceSlice** +> V1Status deleteCollectionResourceSlice(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body) + + + +delete collection of ResourceSlice + +### Example +```java +// Import classes: +import io.kubernetes.client.openapi.ApiClient; +import io.kubernetes.client.openapi.ApiException; +import io.kubernetes.client.openapi.Configuration; +import io.kubernetes.client.openapi.auth.*; +import io.kubernetes.client.openapi.models.*; +import io.kubernetes.client.openapi.apis.ResourceV1beta1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + ResourceV1beta1Api apiInstance = new ResourceV1beta1Api(defaultClient); + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + 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. + 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. + Integer gracePeriodSeconds = 56; // Integer | 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. + Boolean ignoreStoreReadErrorWithClusterBreakingPotential = true; // Boolean | if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it + String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. + Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + 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. 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. + String resourceVersion = "resourceVersion_example"; // String | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + String resourceVersionMatch = "resourceVersionMatch_example"; // String | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + Boolean sendInitialEvents = true; // Boolean | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | + try { + V1Status result = apiInstance.deleteCollectionResourceSlice(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ResourceV1beta1Api#deleteCollectionResourceSlice"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] + **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] + **gracePeriodSeconds** | **Integer**| 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. | [optional] + **ignoreStoreReadErrorWithClusterBreakingPotential** | **Boolean**| if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it | [optional] + **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] + **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] + **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. 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. | [optional] + **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] + **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] + **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] + **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] + +### Return type + +[**V1Status**](V1Status.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + + +# **deleteDeviceClass** +> V1beta1DeviceClass deleteDeviceClass(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body) + + + +delete a DeviceClass + +### Example +```java +// Import classes: +import io.kubernetes.client.openapi.ApiClient; +import io.kubernetes.client.openapi.ApiException; +import io.kubernetes.client.openapi.Configuration; +import io.kubernetes.client.openapi.auth.*; +import io.kubernetes.client.openapi.models.*; +import io.kubernetes.client.openapi.apis.ResourceV1beta1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + ResourceV1beta1Api apiInstance = new ResourceV1beta1Api(defaultClient); + String name = "name_example"; // String | name of the DeviceClass + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + 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 + Integer gracePeriodSeconds = 56; // Integer | 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. + Boolean ignoreStoreReadErrorWithClusterBreakingPotential = true; // Boolean | if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it + 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. 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. + V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | + try { + V1beta1DeviceClass result = apiInstance.deleteDeviceClass(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ResourceV1beta1Api#deleteDeviceClass"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **String**| name of the DeviceClass | + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] + **gracePeriodSeconds** | **Integer**| 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. | [optional] + **ignoreStoreReadErrorWithClusterBreakingPotential** | **Boolean**| if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it | [optional] + **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. 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. | [optional] + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] + +### Return type + +[**V1beta1DeviceClass**](V1beta1DeviceClass.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + + +# **deleteNamespacedResourceClaim** +> V1beta1ResourceClaim deleteNamespacedResourceClaim(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body) + + + +delete a ResourceClaim + +### Example +```java +// Import classes: +import io.kubernetes.client.openapi.ApiClient; +import io.kubernetes.client.openapi.ApiException; +import io.kubernetes.client.openapi.Configuration; +import io.kubernetes.client.openapi.auth.*; +import io.kubernetes.client.openapi.models.*; +import io.kubernetes.client.openapi.apis.ResourceV1beta1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + ResourceV1beta1Api apiInstance = new ResourceV1beta1Api(defaultClient); + String name = "name_example"; // String | name of the ResourceClaim + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + 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 + Integer gracePeriodSeconds = 56; // Integer | 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. + Boolean ignoreStoreReadErrorWithClusterBreakingPotential = true; // Boolean | if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it + 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. 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. + V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | + try { + V1beta1ResourceClaim result = apiInstance.deleteNamespacedResourceClaim(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ResourceV1beta1Api#deleteNamespacedResourceClaim"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **String**| name of the ResourceClaim | + **namespace** | **String**| object name and auth scope, such as for teams and projects | + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] + **gracePeriodSeconds** | **Integer**| 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. | [optional] + **ignoreStoreReadErrorWithClusterBreakingPotential** | **Boolean**| if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it | [optional] + **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. 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. | [optional] + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] + +### Return type + +[**V1beta1ResourceClaim**](V1beta1ResourceClaim.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + + +# **deleteNamespacedResourceClaimTemplate** +> V1beta1ResourceClaimTemplate deleteNamespacedResourceClaimTemplate(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body) + + + +delete a ResourceClaimTemplate + +### Example +```java +// Import classes: +import io.kubernetes.client.openapi.ApiClient; +import io.kubernetes.client.openapi.ApiException; +import io.kubernetes.client.openapi.Configuration; +import io.kubernetes.client.openapi.auth.*; +import io.kubernetes.client.openapi.models.*; +import io.kubernetes.client.openapi.apis.ResourceV1beta1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + ResourceV1beta1Api apiInstance = new ResourceV1beta1Api(defaultClient); + String name = "name_example"; // String | name of the ResourceClaimTemplate + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + 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 + Integer gracePeriodSeconds = 56; // Integer | 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. + Boolean ignoreStoreReadErrorWithClusterBreakingPotential = true; // Boolean | if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it + 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. 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. + V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | + try { + V1beta1ResourceClaimTemplate result = apiInstance.deleteNamespacedResourceClaimTemplate(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ResourceV1beta1Api#deleteNamespacedResourceClaimTemplate"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **String**| name of the ResourceClaimTemplate | + **namespace** | **String**| object name and auth scope, such as for teams and projects | + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] + **gracePeriodSeconds** | **Integer**| 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. | [optional] + **ignoreStoreReadErrorWithClusterBreakingPotential** | **Boolean**| if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it | [optional] + **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. 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. | [optional] + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] + +### Return type + +[**V1beta1ResourceClaimTemplate**](V1beta1ResourceClaimTemplate.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + + +# **deleteResourceSlice** +> V1beta1ResourceSlice deleteResourceSlice(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body) + + + +delete a ResourceSlice + +### Example +```java +// Import classes: +import io.kubernetes.client.openapi.ApiClient; +import io.kubernetes.client.openapi.ApiException; +import io.kubernetes.client.openapi.Configuration; +import io.kubernetes.client.openapi.auth.*; +import io.kubernetes.client.openapi.models.*; +import io.kubernetes.client.openapi.apis.ResourceV1beta1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + ResourceV1beta1Api apiInstance = new ResourceV1beta1Api(defaultClient); + String name = "name_example"; // String | name of the ResourceSlice + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + 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 + Integer gracePeriodSeconds = 56; // Integer | 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. + Boolean ignoreStoreReadErrorWithClusterBreakingPotential = true; // Boolean | if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it + 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. 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. + V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | + try { + V1beta1ResourceSlice result = apiInstance.deleteResourceSlice(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ResourceV1beta1Api#deleteResourceSlice"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **String**| name of the ResourceSlice | + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] + **gracePeriodSeconds** | **Integer**| 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. | [optional] + **ignoreStoreReadErrorWithClusterBreakingPotential** | **Boolean**| if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it | [optional] + **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. 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. | [optional] + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] + +### Return type + +[**V1beta1ResourceSlice**](V1beta1ResourceSlice.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + + +# **getAPIResources** +> V1APIResourceList getAPIResources() + + + +get available resources + +### Example +```java +// Import classes: +import io.kubernetes.client.openapi.ApiClient; +import io.kubernetes.client.openapi.ApiException; +import io.kubernetes.client.openapi.Configuration; +import io.kubernetes.client.openapi.auth.*; +import io.kubernetes.client.openapi.models.*; +import io.kubernetes.client.openapi.apis.ResourceV1beta1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + ResourceV1beta1Api apiInstance = new ResourceV1beta1Api(defaultClient); + try { + V1APIResourceList result = apiInstance.getAPIResources(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ResourceV1beta1Api#getAPIResources"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters +This endpoint does not need any parameter. + +### Return type + +[**V1APIResourceList**](V1APIResourceList.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + + +# **listDeviceClass** +> V1beta1DeviceClassList listDeviceClass(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch) + + + +list or watch objects of kind DeviceClass + +### Example +```java +// Import classes: +import io.kubernetes.client.openapi.ApiClient; +import io.kubernetes.client.openapi.ApiException; +import io.kubernetes.client.openapi.Configuration; +import io.kubernetes.client.openapi.auth.*; +import io.kubernetes.client.openapi.models.*; +import io.kubernetes.client.openapi.apis.ResourceV1beta1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + ResourceV1beta1Api apiInstance = new ResourceV1beta1Api(defaultClient); + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + 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. + 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. + String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. + String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. + Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + String resourceVersion = "resourceVersion_example"; // String | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + String resourceVersionMatch = "resourceVersionMatch_example"; // String | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + Boolean sendInitialEvents = true; // Boolean | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + 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. Specify resourceVersion. + try { + V1beta1DeviceClassList result = apiInstance.listDeviceClass(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ResourceV1beta1Api#listDeviceClass"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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. | [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] + **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] + **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] + **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] + **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] + **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] + **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] + **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + +### Return type + +[**V1beta1DeviceClassList**](V1beta1DeviceClassList.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch, application/cbor-seq + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + + +# **listNamespacedResourceClaim** +> V1beta1ResourceClaimList listNamespacedResourceClaim(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch) + + + +list or watch objects of kind ResourceClaim + +### Example +```java +// Import classes: +import io.kubernetes.client.openapi.ApiClient; +import io.kubernetes.client.openapi.ApiException; +import io.kubernetes.client.openapi.Configuration; +import io.kubernetes.client.openapi.auth.*; +import io.kubernetes.client.openapi.models.*; +import io.kubernetes.client.openapi.apis.ResourceV1beta1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + ResourceV1beta1Api apiInstance = new ResourceV1beta1Api(defaultClient); + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + 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. + 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. + String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. + String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. + Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + String resourceVersion = "resourceVersion_example"; // String | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + String resourceVersionMatch = "resourceVersionMatch_example"; // String | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + Boolean sendInitialEvents = true; // Boolean | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + 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. Specify resourceVersion. + try { + V1beta1ResourceClaimList result = apiInstance.listNamespacedResourceClaim(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ResourceV1beta1Api#listNamespacedResourceClaim"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **namespace** | **String**| object name and auth scope, such as for teams and projects | + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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. | [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] + **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] + **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] + **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] + **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] + **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] + **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] + **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + +### Return type + +[**V1beta1ResourceClaimList**](V1beta1ResourceClaimList.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch, application/cbor-seq + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + + +# **listNamespacedResourceClaimTemplate** +> V1beta1ResourceClaimTemplateList listNamespacedResourceClaimTemplate(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch) + + + +list or watch objects of kind ResourceClaimTemplate + +### Example +```java +// Import classes: +import io.kubernetes.client.openapi.ApiClient; +import io.kubernetes.client.openapi.ApiException; +import io.kubernetes.client.openapi.Configuration; +import io.kubernetes.client.openapi.auth.*; +import io.kubernetes.client.openapi.models.*; +import io.kubernetes.client.openapi.apis.ResourceV1beta1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + ResourceV1beta1Api apiInstance = new ResourceV1beta1Api(defaultClient); + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + 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. + 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. + String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. + String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. + Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + String resourceVersion = "resourceVersion_example"; // String | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + String resourceVersionMatch = "resourceVersionMatch_example"; // String | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + Boolean sendInitialEvents = true; // Boolean | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + 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. Specify resourceVersion. + try { + V1beta1ResourceClaimTemplateList result = apiInstance.listNamespacedResourceClaimTemplate(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ResourceV1beta1Api#listNamespacedResourceClaimTemplate"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **namespace** | **String**| object name and auth scope, such as for teams and projects | + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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. | [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] + **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] + **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] + **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] + **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] + **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] + **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] + **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + +### Return type + +[**V1beta1ResourceClaimTemplateList**](V1beta1ResourceClaimTemplateList.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch, application/cbor-seq + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + + +# **listResourceClaimForAllNamespaces** +> V1beta1ResourceClaimList listResourceClaimForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch) + + + +list or watch objects of kind ResourceClaim + +### Example +```java +// Import classes: +import io.kubernetes.client.openapi.ApiClient; +import io.kubernetes.client.openapi.ApiException; +import io.kubernetes.client.openapi.Configuration; +import io.kubernetes.client.openapi.auth.*; +import io.kubernetes.client.openapi.models.*; +import io.kubernetes.client.openapi.apis.ResourceV1beta1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + ResourceV1beta1Api apiInstance = new ResourceV1beta1Api(defaultClient); + 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. + 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. + String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. + String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. + Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + String resourceVersion = "resourceVersion_example"; // String | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + String resourceVersionMatch = "resourceVersionMatch_example"; // String | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + Boolean sendInitialEvents = true; // Boolean | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + 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. Specify resourceVersion. + try { + V1beta1ResourceClaimList result = apiInstance.listResourceClaimForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ResourceV1beta1Api#listResourceClaimForAllNamespaces"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **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. | [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] + **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] + **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] + **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] + **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] + **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] + **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] + **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + +### Return type + +[**V1beta1ResourceClaimList**](V1beta1ResourceClaimList.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch, application/cbor-seq + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + + +# **listResourceClaimTemplateForAllNamespaces** +> V1beta1ResourceClaimTemplateList listResourceClaimTemplateForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch) + + + +list or watch objects of kind ResourceClaimTemplate + +### Example +```java +// Import classes: +import io.kubernetes.client.openapi.ApiClient; +import io.kubernetes.client.openapi.ApiException; +import io.kubernetes.client.openapi.Configuration; +import io.kubernetes.client.openapi.auth.*; +import io.kubernetes.client.openapi.models.*; +import io.kubernetes.client.openapi.apis.ResourceV1beta1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + ResourceV1beta1Api apiInstance = new ResourceV1beta1Api(defaultClient); + 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. + 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. + String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. + String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. + Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + String resourceVersion = "resourceVersion_example"; // String | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + String resourceVersionMatch = "resourceVersionMatch_example"; // String | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + Boolean sendInitialEvents = true; // Boolean | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + 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. Specify resourceVersion. + try { + V1beta1ResourceClaimTemplateList result = apiInstance.listResourceClaimTemplateForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ResourceV1beta1Api#listResourceClaimTemplateForAllNamespaces"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **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. | [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] + **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] + **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] + **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] + **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] + **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] + **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] + **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + +### Return type + +[**V1beta1ResourceClaimTemplateList**](V1beta1ResourceClaimTemplateList.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch, application/cbor-seq + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + + +# **listResourceSlice** +> V1beta1ResourceSliceList listResourceSlice(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch) + + + +list or watch objects of kind ResourceSlice + +### Example +```java +// Import classes: +import io.kubernetes.client.openapi.ApiClient; +import io.kubernetes.client.openapi.ApiException; +import io.kubernetes.client.openapi.Configuration; +import io.kubernetes.client.openapi.auth.*; +import io.kubernetes.client.openapi.models.*; +import io.kubernetes.client.openapi.apis.ResourceV1beta1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + ResourceV1beta1Api apiInstance = new ResourceV1beta1Api(defaultClient); + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + 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. + 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. + String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. + String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. + Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + String resourceVersion = "resourceVersion_example"; // String | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + String resourceVersionMatch = "resourceVersionMatch_example"; // String | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + Boolean sendInitialEvents = true; // Boolean | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + 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. Specify resourceVersion. + try { + V1beta1ResourceSliceList result = apiInstance.listResourceSlice(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ResourceV1beta1Api#listResourceSlice"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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. | [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] + **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] + **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] + **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] + **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] + **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] + **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] + **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + +### Return type + +[**V1beta1ResourceSliceList**](V1beta1ResourceSliceList.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch, application/cbor-seq + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + + +# **patchDeviceClass** +> V1beta1DeviceClass patchDeviceClass(name, body, pretty, dryRun, fieldManager, fieldValidation, force) + + + +partially update the specified DeviceClass + +### Example +```java +// Import classes: +import io.kubernetes.client.openapi.ApiClient; +import io.kubernetes.client.openapi.ApiException; +import io.kubernetes.client.openapi.Configuration; +import io.kubernetes.client.openapi.auth.*; +import io.kubernetes.client.openapi.models.*; +import io.kubernetes.client.openapi.apis.ResourceV1beta1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + ResourceV1beta1Api apiInstance = new ResourceV1beta1Api(defaultClient); + String name = "name_example"; // String | name of the DeviceClass + V1Patch body = new V1Patch(); // V1Patch | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + 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 fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). + String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. + Boolean force = true; // Boolean | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. + try { + V1beta1DeviceClass result = apiInstance.patchDeviceClass(name, body, pretty, dryRun, fieldManager, fieldValidation, force); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ResourceV1beta1Api#patchDeviceClass"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **String**| name of the DeviceClass | + **body** | **V1Patch**| | + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] + **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] + **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] + **force** | **Boolean**| Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | [optional] + +### Return type + +[**V1beta1DeviceClass**](V1beta1DeviceClass.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**401** | Unauthorized | - | + + +# **patchNamespacedResourceClaim** +> V1beta1ResourceClaim patchNamespacedResourceClaim(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force) + + + +partially update the specified ResourceClaim + +### Example +```java +// Import classes: +import io.kubernetes.client.openapi.ApiClient; +import io.kubernetes.client.openapi.ApiException; +import io.kubernetes.client.openapi.Configuration; +import io.kubernetes.client.openapi.auth.*; +import io.kubernetes.client.openapi.models.*; +import io.kubernetes.client.openapi.apis.ResourceV1beta1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + ResourceV1beta1Api apiInstance = new ResourceV1beta1Api(defaultClient); + String name = "name_example"; // String | name of the ResourceClaim + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + V1Patch body = new V1Patch(); // V1Patch | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + 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 fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). + String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. + Boolean force = true; // Boolean | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. + try { + V1beta1ResourceClaim result = apiInstance.patchNamespacedResourceClaim(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ResourceV1beta1Api#patchNamespacedResourceClaim"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **String**| name of the ResourceClaim | + **namespace** | **String**| object name and auth scope, such as for teams and projects | + **body** | **V1Patch**| | + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] + **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] + **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] + **force** | **Boolean**| Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | [optional] + +### Return type + +[**V1beta1ResourceClaim**](V1beta1ResourceClaim.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**401** | Unauthorized | - | + + +# **patchNamespacedResourceClaimStatus** +> V1beta1ResourceClaim patchNamespacedResourceClaimStatus(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force) + + + +partially update status of the specified ResourceClaim + +### Example +```java +// Import classes: +import io.kubernetes.client.openapi.ApiClient; +import io.kubernetes.client.openapi.ApiException; +import io.kubernetes.client.openapi.Configuration; +import io.kubernetes.client.openapi.auth.*; +import io.kubernetes.client.openapi.models.*; +import io.kubernetes.client.openapi.apis.ResourceV1beta1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + ResourceV1beta1Api apiInstance = new ResourceV1beta1Api(defaultClient); + String name = "name_example"; // String | name of the ResourceClaim + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + V1Patch body = new V1Patch(); // V1Patch | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + 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 fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). + String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. + Boolean force = true; // Boolean | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. + try { + V1beta1ResourceClaim result = apiInstance.patchNamespacedResourceClaimStatus(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ResourceV1beta1Api#patchNamespacedResourceClaimStatus"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **String**| name of the ResourceClaim | + **namespace** | **String**| object name and auth scope, such as for teams and projects | + **body** | **V1Patch**| | + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] + **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] + **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] + **force** | **Boolean**| Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | [optional] + +### Return type + +[**V1beta1ResourceClaim**](V1beta1ResourceClaim.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**401** | Unauthorized | - | + + +# **patchNamespacedResourceClaimTemplate** +> V1beta1ResourceClaimTemplate patchNamespacedResourceClaimTemplate(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force) + + + +partially update the specified ResourceClaimTemplate + +### Example +```java +// Import classes: +import io.kubernetes.client.openapi.ApiClient; +import io.kubernetes.client.openapi.ApiException; +import io.kubernetes.client.openapi.Configuration; +import io.kubernetes.client.openapi.auth.*; +import io.kubernetes.client.openapi.models.*; +import io.kubernetes.client.openapi.apis.ResourceV1beta1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + ResourceV1beta1Api apiInstance = new ResourceV1beta1Api(defaultClient); + String name = "name_example"; // String | name of the ResourceClaimTemplate + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + V1Patch body = new V1Patch(); // V1Patch | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + 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 fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). + String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. + Boolean force = true; // Boolean | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. + try { + V1beta1ResourceClaimTemplate result = apiInstance.patchNamespacedResourceClaimTemplate(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ResourceV1beta1Api#patchNamespacedResourceClaimTemplate"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **String**| name of the ResourceClaimTemplate | + **namespace** | **String**| object name and auth scope, such as for teams and projects | + **body** | **V1Patch**| | + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] + **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] + **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] + **force** | **Boolean**| Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | [optional] + +### Return type + +[**V1beta1ResourceClaimTemplate**](V1beta1ResourceClaimTemplate.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**401** | Unauthorized | - | + + +# **patchResourceSlice** +> V1beta1ResourceSlice patchResourceSlice(name, body, pretty, dryRun, fieldManager, fieldValidation, force) + + + +partially update the specified ResourceSlice + +### Example +```java +// Import classes: +import io.kubernetes.client.openapi.ApiClient; +import io.kubernetes.client.openapi.ApiException; +import io.kubernetes.client.openapi.Configuration; +import io.kubernetes.client.openapi.auth.*; +import io.kubernetes.client.openapi.models.*; +import io.kubernetes.client.openapi.apis.ResourceV1beta1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + ResourceV1beta1Api apiInstance = new ResourceV1beta1Api(defaultClient); + String name = "name_example"; // String | name of the ResourceSlice + V1Patch body = new V1Patch(); // V1Patch | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + 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 fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). + String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. + Boolean force = true; // Boolean | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. + try { + V1beta1ResourceSlice result = apiInstance.patchResourceSlice(name, body, pretty, dryRun, fieldManager, fieldValidation, force); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ResourceV1beta1Api#patchResourceSlice"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **String**| name of the ResourceSlice | + **body** | **V1Patch**| | + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] + **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] + **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] + **force** | **Boolean**| Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | [optional] + +### Return type + +[**V1beta1ResourceSlice**](V1beta1ResourceSlice.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**401** | Unauthorized | - | + + +# **readDeviceClass** +> V1beta1DeviceClass readDeviceClass(name, pretty) + + + +read the specified DeviceClass + +### Example +```java +// Import classes: +import io.kubernetes.client.openapi.ApiClient; +import io.kubernetes.client.openapi.ApiException; +import io.kubernetes.client.openapi.Configuration; +import io.kubernetes.client.openapi.auth.*; +import io.kubernetes.client.openapi.models.*; +import io.kubernetes.client.openapi.apis.ResourceV1beta1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + ResourceV1beta1Api apiInstance = new ResourceV1beta1Api(defaultClient); + String name = "name_example"; // String | name of the DeviceClass + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + try { + V1beta1DeviceClass result = apiInstance.readDeviceClass(name, pretty); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ResourceV1beta1Api#readDeviceClass"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **String**| name of the DeviceClass | + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] + +### Return type + +[**V1beta1DeviceClass**](V1beta1DeviceClass.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + + +# **readNamespacedResourceClaim** +> V1beta1ResourceClaim readNamespacedResourceClaim(name, namespace, pretty) + + + +read the specified ResourceClaim + +### Example +```java +// Import classes: +import io.kubernetes.client.openapi.ApiClient; +import io.kubernetes.client.openapi.ApiException; +import io.kubernetes.client.openapi.Configuration; +import io.kubernetes.client.openapi.auth.*; +import io.kubernetes.client.openapi.models.*; +import io.kubernetes.client.openapi.apis.ResourceV1beta1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + ResourceV1beta1Api apiInstance = new ResourceV1beta1Api(defaultClient); + String name = "name_example"; // String | name of the ResourceClaim + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + try { + V1beta1ResourceClaim result = apiInstance.readNamespacedResourceClaim(name, namespace, pretty); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ResourceV1beta1Api#readNamespacedResourceClaim"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **String**| name of the ResourceClaim | + **namespace** | **String**| object name and auth scope, such as for teams and projects | + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] + +### Return type + +[**V1beta1ResourceClaim**](V1beta1ResourceClaim.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + + +# **readNamespacedResourceClaimStatus** +> V1beta1ResourceClaim readNamespacedResourceClaimStatus(name, namespace, pretty) + + + +read status of the specified ResourceClaim + +### Example +```java +// Import classes: +import io.kubernetes.client.openapi.ApiClient; +import io.kubernetes.client.openapi.ApiException; +import io.kubernetes.client.openapi.Configuration; +import io.kubernetes.client.openapi.auth.*; +import io.kubernetes.client.openapi.models.*; +import io.kubernetes.client.openapi.apis.ResourceV1beta1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + ResourceV1beta1Api apiInstance = new ResourceV1beta1Api(defaultClient); + String name = "name_example"; // String | name of the ResourceClaim + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + try { + V1beta1ResourceClaim result = apiInstance.readNamespacedResourceClaimStatus(name, namespace, pretty); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ResourceV1beta1Api#readNamespacedResourceClaimStatus"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **String**| name of the ResourceClaim | + **namespace** | **String**| object name and auth scope, such as for teams and projects | + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] + +### Return type + +[**V1beta1ResourceClaim**](V1beta1ResourceClaim.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + + +# **readNamespacedResourceClaimTemplate** +> V1beta1ResourceClaimTemplate readNamespacedResourceClaimTemplate(name, namespace, pretty) + + + +read the specified ResourceClaimTemplate + +### Example +```java +// Import classes: +import io.kubernetes.client.openapi.ApiClient; +import io.kubernetes.client.openapi.ApiException; +import io.kubernetes.client.openapi.Configuration; +import io.kubernetes.client.openapi.auth.*; +import io.kubernetes.client.openapi.models.*; +import io.kubernetes.client.openapi.apis.ResourceV1beta1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + ResourceV1beta1Api apiInstance = new ResourceV1beta1Api(defaultClient); + String name = "name_example"; // String | name of the ResourceClaimTemplate + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + try { + V1beta1ResourceClaimTemplate result = apiInstance.readNamespacedResourceClaimTemplate(name, namespace, pretty); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ResourceV1beta1Api#readNamespacedResourceClaimTemplate"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **String**| name of the ResourceClaimTemplate | + **namespace** | **String**| object name and auth scope, such as for teams and projects | + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] + +### Return type + +[**V1beta1ResourceClaimTemplate**](V1beta1ResourceClaimTemplate.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + + +# **readResourceSlice** +> V1beta1ResourceSlice readResourceSlice(name, pretty) + + + +read the specified ResourceSlice + +### Example +```java +// Import classes: +import io.kubernetes.client.openapi.ApiClient; +import io.kubernetes.client.openapi.ApiException; +import io.kubernetes.client.openapi.Configuration; +import io.kubernetes.client.openapi.auth.*; +import io.kubernetes.client.openapi.models.*; +import io.kubernetes.client.openapi.apis.ResourceV1beta1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + ResourceV1beta1Api apiInstance = new ResourceV1beta1Api(defaultClient); + String name = "name_example"; // String | name of the ResourceSlice + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + try { + V1beta1ResourceSlice result = apiInstance.readResourceSlice(name, pretty); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ResourceV1beta1Api#readResourceSlice"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **String**| name of the ResourceSlice | + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] + +### Return type + +[**V1beta1ResourceSlice**](V1beta1ResourceSlice.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + + +# **replaceDeviceClass** +> V1beta1DeviceClass replaceDeviceClass(name, body, pretty, dryRun, fieldManager, fieldValidation) + + + +replace the specified DeviceClass + +### Example +```java +// Import classes: +import io.kubernetes.client.openapi.ApiClient; +import io.kubernetes.client.openapi.ApiException; +import io.kubernetes.client.openapi.Configuration; +import io.kubernetes.client.openapi.auth.*; +import io.kubernetes.client.openapi.models.*; +import io.kubernetes.client.openapi.apis.ResourceV1beta1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + ResourceV1beta1Api apiInstance = new ResourceV1beta1Api(defaultClient); + String name = "name_example"; // String | name of the DeviceClass + V1beta1DeviceClass body = new V1beta1DeviceClass(); // V1beta1DeviceClass | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + 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 fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. + try { + V1beta1DeviceClass result = apiInstance.replaceDeviceClass(name, body, pretty, dryRun, fieldManager, fieldValidation); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ResourceV1beta1Api#replaceDeviceClass"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **String**| name of the DeviceClass | + **body** | [**V1beta1DeviceClass**](V1beta1DeviceClass.md)| | + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] + **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] + **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] + +### Return type + +[**V1beta1DeviceClass**](V1beta1DeviceClass.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**401** | Unauthorized | - | + + +# **replaceNamespacedResourceClaim** +> V1beta1ResourceClaim replaceNamespacedResourceClaim(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation) + + + +replace the specified ResourceClaim + +### Example +```java +// Import classes: +import io.kubernetes.client.openapi.ApiClient; +import io.kubernetes.client.openapi.ApiException; +import io.kubernetes.client.openapi.Configuration; +import io.kubernetes.client.openapi.auth.*; +import io.kubernetes.client.openapi.models.*; +import io.kubernetes.client.openapi.apis.ResourceV1beta1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + ResourceV1beta1Api apiInstance = new ResourceV1beta1Api(defaultClient); + String name = "name_example"; // String | name of the ResourceClaim + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + V1beta1ResourceClaim body = new V1beta1ResourceClaim(); // V1beta1ResourceClaim | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + 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 fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. + try { + V1beta1ResourceClaim result = apiInstance.replaceNamespacedResourceClaim(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ResourceV1beta1Api#replaceNamespacedResourceClaim"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **String**| name of the ResourceClaim | + **namespace** | **String**| object name and auth scope, such as for teams and projects | + **body** | [**V1beta1ResourceClaim**](V1beta1ResourceClaim.md)| | + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] + **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] + **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] + +### Return type + +[**V1beta1ResourceClaim**](V1beta1ResourceClaim.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**401** | Unauthorized | - | + + +# **replaceNamespacedResourceClaimStatus** +> V1beta1ResourceClaim replaceNamespacedResourceClaimStatus(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation) + + + +replace status of the specified ResourceClaim + +### Example +```java +// Import classes: +import io.kubernetes.client.openapi.ApiClient; +import io.kubernetes.client.openapi.ApiException; +import io.kubernetes.client.openapi.Configuration; +import io.kubernetes.client.openapi.auth.*; +import io.kubernetes.client.openapi.models.*; +import io.kubernetes.client.openapi.apis.ResourceV1beta1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + ResourceV1beta1Api apiInstance = new ResourceV1beta1Api(defaultClient); + String name = "name_example"; // String | name of the ResourceClaim + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + V1beta1ResourceClaim body = new V1beta1ResourceClaim(); // V1beta1ResourceClaim | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + 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 fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. + try { + V1beta1ResourceClaim result = apiInstance.replaceNamespacedResourceClaimStatus(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ResourceV1beta1Api#replaceNamespacedResourceClaimStatus"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **String**| name of the ResourceClaim | + **namespace** | **String**| object name and auth scope, such as for teams and projects | + **body** | [**V1beta1ResourceClaim**](V1beta1ResourceClaim.md)| | + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] + **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] + **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] + +### Return type + +[**V1beta1ResourceClaim**](V1beta1ResourceClaim.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**401** | Unauthorized | - | + + +# **replaceNamespacedResourceClaimTemplate** +> V1beta1ResourceClaimTemplate replaceNamespacedResourceClaimTemplate(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation) + + + +replace the specified ResourceClaimTemplate + +### Example +```java +// Import classes: +import io.kubernetes.client.openapi.ApiClient; +import io.kubernetes.client.openapi.ApiException; +import io.kubernetes.client.openapi.Configuration; +import io.kubernetes.client.openapi.auth.*; +import io.kubernetes.client.openapi.models.*; +import io.kubernetes.client.openapi.apis.ResourceV1beta1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + ResourceV1beta1Api apiInstance = new ResourceV1beta1Api(defaultClient); + String name = "name_example"; // String | name of the ResourceClaimTemplate + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + V1beta1ResourceClaimTemplate body = new V1beta1ResourceClaimTemplate(); // V1beta1ResourceClaimTemplate | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + 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 fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. + try { + V1beta1ResourceClaimTemplate result = apiInstance.replaceNamespacedResourceClaimTemplate(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ResourceV1beta1Api#replaceNamespacedResourceClaimTemplate"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **String**| name of the ResourceClaimTemplate | + **namespace** | **String**| object name and auth scope, such as for teams and projects | + **body** | [**V1beta1ResourceClaimTemplate**](V1beta1ResourceClaimTemplate.md)| | + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] + **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] + **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] + +### Return type + +[**V1beta1ResourceClaimTemplate**](V1beta1ResourceClaimTemplate.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**401** | Unauthorized | - | + + +# **replaceResourceSlice** +> V1beta1ResourceSlice replaceResourceSlice(name, body, pretty, dryRun, fieldManager, fieldValidation) + + + +replace the specified ResourceSlice + +### Example +```java +// Import classes: +import io.kubernetes.client.openapi.ApiClient; +import io.kubernetes.client.openapi.ApiException; +import io.kubernetes.client.openapi.Configuration; +import io.kubernetes.client.openapi.auth.*; +import io.kubernetes.client.openapi.models.*; +import io.kubernetes.client.openapi.apis.ResourceV1beta1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + ResourceV1beta1Api apiInstance = new ResourceV1beta1Api(defaultClient); + String name = "name_example"; // String | name of the ResourceSlice + V1beta1ResourceSlice body = new V1beta1ResourceSlice(); // V1beta1ResourceSlice | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + 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 fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. + try { + V1beta1ResourceSlice result = apiInstance.replaceResourceSlice(name, body, pretty, dryRun, fieldManager, fieldValidation); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ResourceV1beta1Api#replaceResourceSlice"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **String**| name of the ResourceSlice | + **body** | [**V1beta1ResourceSlice**](V1beta1ResourceSlice.md)| | + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] + **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] + **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] + +### Return type + +[**V1beta1ResourceSlice**](V1beta1ResourceSlice.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**401** | Unauthorized | - | + diff --git a/kubernetes/docs/ResourceV1beta2Api.md b/kubernetes/docs/ResourceV1beta2Api.md new file mode 100644 index 0000000000..acedc88334 --- /dev/null +++ b/kubernetes/docs/ResourceV1beta2Api.md @@ -0,0 +1,2914 @@ +# ResourceV1beta2Api + +All URIs are relative to *http://localhost* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**createDeviceClass**](ResourceV1beta2Api.md#createDeviceClass) | **POST** /apis/resource.k8s.io/v1beta2/deviceclasses | +[**createNamespacedResourceClaim**](ResourceV1beta2Api.md#createNamespacedResourceClaim) | **POST** /apis/resource.k8s.io/v1beta2/namespaces/{namespace}/resourceclaims | +[**createNamespacedResourceClaimTemplate**](ResourceV1beta2Api.md#createNamespacedResourceClaimTemplate) | **POST** /apis/resource.k8s.io/v1beta2/namespaces/{namespace}/resourceclaimtemplates | +[**createResourceSlice**](ResourceV1beta2Api.md#createResourceSlice) | **POST** /apis/resource.k8s.io/v1beta2/resourceslices | +[**deleteCollectionDeviceClass**](ResourceV1beta2Api.md#deleteCollectionDeviceClass) | **DELETE** /apis/resource.k8s.io/v1beta2/deviceclasses | +[**deleteCollectionNamespacedResourceClaim**](ResourceV1beta2Api.md#deleteCollectionNamespacedResourceClaim) | **DELETE** /apis/resource.k8s.io/v1beta2/namespaces/{namespace}/resourceclaims | +[**deleteCollectionNamespacedResourceClaimTemplate**](ResourceV1beta2Api.md#deleteCollectionNamespacedResourceClaimTemplate) | **DELETE** /apis/resource.k8s.io/v1beta2/namespaces/{namespace}/resourceclaimtemplates | +[**deleteCollectionResourceSlice**](ResourceV1beta2Api.md#deleteCollectionResourceSlice) | **DELETE** /apis/resource.k8s.io/v1beta2/resourceslices | +[**deleteDeviceClass**](ResourceV1beta2Api.md#deleteDeviceClass) | **DELETE** /apis/resource.k8s.io/v1beta2/deviceclasses/{name} | +[**deleteNamespacedResourceClaim**](ResourceV1beta2Api.md#deleteNamespacedResourceClaim) | **DELETE** /apis/resource.k8s.io/v1beta2/namespaces/{namespace}/resourceclaims/{name} | +[**deleteNamespacedResourceClaimTemplate**](ResourceV1beta2Api.md#deleteNamespacedResourceClaimTemplate) | **DELETE** /apis/resource.k8s.io/v1beta2/namespaces/{namespace}/resourceclaimtemplates/{name} | +[**deleteResourceSlice**](ResourceV1beta2Api.md#deleteResourceSlice) | **DELETE** /apis/resource.k8s.io/v1beta2/resourceslices/{name} | +[**getAPIResources**](ResourceV1beta2Api.md#getAPIResources) | **GET** /apis/resource.k8s.io/v1beta2/ | +[**listDeviceClass**](ResourceV1beta2Api.md#listDeviceClass) | **GET** /apis/resource.k8s.io/v1beta2/deviceclasses | +[**listNamespacedResourceClaim**](ResourceV1beta2Api.md#listNamespacedResourceClaim) | **GET** /apis/resource.k8s.io/v1beta2/namespaces/{namespace}/resourceclaims | +[**listNamespacedResourceClaimTemplate**](ResourceV1beta2Api.md#listNamespacedResourceClaimTemplate) | **GET** /apis/resource.k8s.io/v1beta2/namespaces/{namespace}/resourceclaimtemplates | +[**listResourceClaimForAllNamespaces**](ResourceV1beta2Api.md#listResourceClaimForAllNamespaces) | **GET** /apis/resource.k8s.io/v1beta2/resourceclaims | +[**listResourceClaimTemplateForAllNamespaces**](ResourceV1beta2Api.md#listResourceClaimTemplateForAllNamespaces) | **GET** /apis/resource.k8s.io/v1beta2/resourceclaimtemplates | +[**listResourceSlice**](ResourceV1beta2Api.md#listResourceSlice) | **GET** /apis/resource.k8s.io/v1beta2/resourceslices | +[**patchDeviceClass**](ResourceV1beta2Api.md#patchDeviceClass) | **PATCH** /apis/resource.k8s.io/v1beta2/deviceclasses/{name} | +[**patchNamespacedResourceClaim**](ResourceV1beta2Api.md#patchNamespacedResourceClaim) | **PATCH** /apis/resource.k8s.io/v1beta2/namespaces/{namespace}/resourceclaims/{name} | +[**patchNamespacedResourceClaimStatus**](ResourceV1beta2Api.md#patchNamespacedResourceClaimStatus) | **PATCH** /apis/resource.k8s.io/v1beta2/namespaces/{namespace}/resourceclaims/{name}/status | +[**patchNamespacedResourceClaimTemplate**](ResourceV1beta2Api.md#patchNamespacedResourceClaimTemplate) | **PATCH** /apis/resource.k8s.io/v1beta2/namespaces/{namespace}/resourceclaimtemplates/{name} | +[**patchResourceSlice**](ResourceV1beta2Api.md#patchResourceSlice) | **PATCH** /apis/resource.k8s.io/v1beta2/resourceslices/{name} | +[**readDeviceClass**](ResourceV1beta2Api.md#readDeviceClass) | **GET** /apis/resource.k8s.io/v1beta2/deviceclasses/{name} | +[**readNamespacedResourceClaim**](ResourceV1beta2Api.md#readNamespacedResourceClaim) | **GET** /apis/resource.k8s.io/v1beta2/namespaces/{namespace}/resourceclaims/{name} | +[**readNamespacedResourceClaimStatus**](ResourceV1beta2Api.md#readNamespacedResourceClaimStatus) | **GET** /apis/resource.k8s.io/v1beta2/namespaces/{namespace}/resourceclaims/{name}/status | +[**readNamespacedResourceClaimTemplate**](ResourceV1beta2Api.md#readNamespacedResourceClaimTemplate) | **GET** /apis/resource.k8s.io/v1beta2/namespaces/{namespace}/resourceclaimtemplates/{name} | +[**readResourceSlice**](ResourceV1beta2Api.md#readResourceSlice) | **GET** /apis/resource.k8s.io/v1beta2/resourceslices/{name} | +[**replaceDeviceClass**](ResourceV1beta2Api.md#replaceDeviceClass) | **PUT** /apis/resource.k8s.io/v1beta2/deviceclasses/{name} | +[**replaceNamespacedResourceClaim**](ResourceV1beta2Api.md#replaceNamespacedResourceClaim) | **PUT** /apis/resource.k8s.io/v1beta2/namespaces/{namespace}/resourceclaims/{name} | +[**replaceNamespacedResourceClaimStatus**](ResourceV1beta2Api.md#replaceNamespacedResourceClaimStatus) | **PUT** /apis/resource.k8s.io/v1beta2/namespaces/{namespace}/resourceclaims/{name}/status | +[**replaceNamespacedResourceClaimTemplate**](ResourceV1beta2Api.md#replaceNamespacedResourceClaimTemplate) | **PUT** /apis/resource.k8s.io/v1beta2/namespaces/{namespace}/resourceclaimtemplates/{name} | +[**replaceResourceSlice**](ResourceV1beta2Api.md#replaceResourceSlice) | **PUT** /apis/resource.k8s.io/v1beta2/resourceslices/{name} | + + + +# **createDeviceClass** +> V1beta2DeviceClass createDeviceClass(body, pretty, dryRun, fieldManager, fieldValidation) + + + +create a DeviceClass + +### Example +```java +// Import classes: +import io.kubernetes.client.openapi.ApiClient; +import io.kubernetes.client.openapi.ApiException; +import io.kubernetes.client.openapi.Configuration; +import io.kubernetes.client.openapi.auth.*; +import io.kubernetes.client.openapi.models.*; +import io.kubernetes.client.openapi.apis.ResourceV1beta2Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + ResourceV1beta2Api apiInstance = new ResourceV1beta2Api(defaultClient); + V1beta2DeviceClass body = new V1beta2DeviceClass(); // V1beta2DeviceClass | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + 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 fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. + try { + V1beta2DeviceClass result = apiInstance.createDeviceClass(body, pretty, dryRun, fieldManager, fieldValidation); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ResourceV1beta2Api#createDeviceClass"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | [**V1beta2DeviceClass**](V1beta2DeviceClass.md)| | + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] + **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] + **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] + +### Return type + +[**V1beta2DeviceClass**](V1beta2DeviceClass.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + + +# **createNamespacedResourceClaim** +> V1beta2ResourceClaim createNamespacedResourceClaim(namespace, body, pretty, dryRun, fieldManager, fieldValidation) + + + +create a ResourceClaim + +### Example +```java +// Import classes: +import io.kubernetes.client.openapi.ApiClient; +import io.kubernetes.client.openapi.ApiException; +import io.kubernetes.client.openapi.Configuration; +import io.kubernetes.client.openapi.auth.*; +import io.kubernetes.client.openapi.models.*; +import io.kubernetes.client.openapi.apis.ResourceV1beta2Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + ResourceV1beta2Api apiInstance = new ResourceV1beta2Api(defaultClient); + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + V1beta2ResourceClaim body = new V1beta2ResourceClaim(); // V1beta2ResourceClaim | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + 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 fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. + try { + V1beta2ResourceClaim result = apiInstance.createNamespacedResourceClaim(namespace, body, pretty, dryRun, fieldManager, fieldValidation); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ResourceV1beta2Api#createNamespacedResourceClaim"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **namespace** | **String**| object name and auth scope, such as for teams and projects | + **body** | [**V1beta2ResourceClaim**](V1beta2ResourceClaim.md)| | + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] + **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] + **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] + +### Return type + +[**V1beta2ResourceClaim**](V1beta2ResourceClaim.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + + +# **createNamespacedResourceClaimTemplate** +> V1beta2ResourceClaimTemplate createNamespacedResourceClaimTemplate(namespace, body, pretty, dryRun, fieldManager, fieldValidation) + + + +create a ResourceClaimTemplate + +### Example +```java +// Import classes: +import io.kubernetes.client.openapi.ApiClient; +import io.kubernetes.client.openapi.ApiException; +import io.kubernetes.client.openapi.Configuration; +import io.kubernetes.client.openapi.auth.*; +import io.kubernetes.client.openapi.models.*; +import io.kubernetes.client.openapi.apis.ResourceV1beta2Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + ResourceV1beta2Api apiInstance = new ResourceV1beta2Api(defaultClient); + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + V1beta2ResourceClaimTemplate body = new V1beta2ResourceClaimTemplate(); // V1beta2ResourceClaimTemplate | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + 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 fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. + try { + V1beta2ResourceClaimTemplate result = apiInstance.createNamespacedResourceClaimTemplate(namespace, body, pretty, dryRun, fieldManager, fieldValidation); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ResourceV1beta2Api#createNamespacedResourceClaimTemplate"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **namespace** | **String**| object name and auth scope, such as for teams and projects | + **body** | [**V1beta2ResourceClaimTemplate**](V1beta2ResourceClaimTemplate.md)| | + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] + **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] + **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] + +### Return type + +[**V1beta2ResourceClaimTemplate**](V1beta2ResourceClaimTemplate.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + + +# **createResourceSlice** +> V1beta2ResourceSlice createResourceSlice(body, pretty, dryRun, fieldManager, fieldValidation) + + + +create a ResourceSlice + +### Example +```java +// Import classes: +import io.kubernetes.client.openapi.ApiClient; +import io.kubernetes.client.openapi.ApiException; +import io.kubernetes.client.openapi.Configuration; +import io.kubernetes.client.openapi.auth.*; +import io.kubernetes.client.openapi.models.*; +import io.kubernetes.client.openapi.apis.ResourceV1beta2Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + ResourceV1beta2Api apiInstance = new ResourceV1beta2Api(defaultClient); + V1beta2ResourceSlice body = new V1beta2ResourceSlice(); // V1beta2ResourceSlice | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + 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 fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. + try { + V1beta2ResourceSlice result = apiInstance.createResourceSlice(body, pretty, dryRun, fieldManager, fieldValidation); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ResourceV1beta2Api#createResourceSlice"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | [**V1beta2ResourceSlice**](V1beta2ResourceSlice.md)| | + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] + **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] + **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] + +### Return type + +[**V1beta2ResourceSlice**](V1beta2ResourceSlice.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + + +# **deleteCollectionDeviceClass** +> V1Status deleteCollectionDeviceClass(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body) + + + +delete collection of DeviceClass + +### Example +```java +// Import classes: +import io.kubernetes.client.openapi.ApiClient; +import io.kubernetes.client.openapi.ApiException; +import io.kubernetes.client.openapi.Configuration; +import io.kubernetes.client.openapi.auth.*; +import io.kubernetes.client.openapi.models.*; +import io.kubernetes.client.openapi.apis.ResourceV1beta2Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + ResourceV1beta2Api apiInstance = new ResourceV1beta2Api(defaultClient); + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + 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. + 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. + Integer gracePeriodSeconds = 56; // Integer | 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. + Boolean ignoreStoreReadErrorWithClusterBreakingPotential = true; // Boolean | if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it + String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. + Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + 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. 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. + String resourceVersion = "resourceVersion_example"; // String | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + String resourceVersionMatch = "resourceVersionMatch_example"; // String | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + Boolean sendInitialEvents = true; // Boolean | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | + try { + V1Status result = apiInstance.deleteCollectionDeviceClass(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ResourceV1beta2Api#deleteCollectionDeviceClass"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] + **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] + **gracePeriodSeconds** | **Integer**| 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. | [optional] + **ignoreStoreReadErrorWithClusterBreakingPotential** | **Boolean**| if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it | [optional] + **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] + **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] + **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. 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. | [optional] + **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] + **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] + **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] + **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] + +### Return type + +[**V1Status**](V1Status.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + + +# **deleteCollectionNamespacedResourceClaim** +> V1Status deleteCollectionNamespacedResourceClaim(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body) + + + +delete collection of ResourceClaim + +### Example +```java +// Import classes: +import io.kubernetes.client.openapi.ApiClient; +import io.kubernetes.client.openapi.ApiException; +import io.kubernetes.client.openapi.Configuration; +import io.kubernetes.client.openapi.auth.*; +import io.kubernetes.client.openapi.models.*; +import io.kubernetes.client.openapi.apis.ResourceV1beta2Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + ResourceV1beta2Api apiInstance = new ResourceV1beta2Api(defaultClient); + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + 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. + 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. + Integer gracePeriodSeconds = 56; // Integer | 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. + Boolean ignoreStoreReadErrorWithClusterBreakingPotential = true; // Boolean | if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it + String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. + Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + 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. 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. + String resourceVersion = "resourceVersion_example"; // String | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + String resourceVersionMatch = "resourceVersionMatch_example"; // String | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + Boolean sendInitialEvents = true; // Boolean | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | + try { + V1Status result = apiInstance.deleteCollectionNamespacedResourceClaim(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ResourceV1beta2Api#deleteCollectionNamespacedResourceClaim"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **namespace** | **String**| object name and auth scope, such as for teams and projects | + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] + **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] + **gracePeriodSeconds** | **Integer**| 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. | [optional] + **ignoreStoreReadErrorWithClusterBreakingPotential** | **Boolean**| if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it | [optional] + **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] + **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] + **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. 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. | [optional] + **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] + **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] + **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] + **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] + +### Return type + +[**V1Status**](V1Status.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + + +# **deleteCollectionNamespacedResourceClaimTemplate** +> V1Status deleteCollectionNamespacedResourceClaimTemplate(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body) + + + +delete collection of ResourceClaimTemplate + +### Example +```java +// Import classes: +import io.kubernetes.client.openapi.ApiClient; +import io.kubernetes.client.openapi.ApiException; +import io.kubernetes.client.openapi.Configuration; +import io.kubernetes.client.openapi.auth.*; +import io.kubernetes.client.openapi.models.*; +import io.kubernetes.client.openapi.apis.ResourceV1beta2Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + ResourceV1beta2Api apiInstance = new ResourceV1beta2Api(defaultClient); + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + 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. + 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. + Integer gracePeriodSeconds = 56; // Integer | 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. + Boolean ignoreStoreReadErrorWithClusterBreakingPotential = true; // Boolean | if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it + String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. + Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + 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. 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. + String resourceVersion = "resourceVersion_example"; // String | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + String resourceVersionMatch = "resourceVersionMatch_example"; // String | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + Boolean sendInitialEvents = true; // Boolean | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | + try { + V1Status result = apiInstance.deleteCollectionNamespacedResourceClaimTemplate(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ResourceV1beta2Api#deleteCollectionNamespacedResourceClaimTemplate"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **namespace** | **String**| object name and auth scope, such as for teams and projects | + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] + **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] + **gracePeriodSeconds** | **Integer**| 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. | [optional] + **ignoreStoreReadErrorWithClusterBreakingPotential** | **Boolean**| if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it | [optional] + **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] + **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] + **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. 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. | [optional] + **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] + **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] + **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] + **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] + +### Return type + +[**V1Status**](V1Status.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + + +# **deleteCollectionResourceSlice** +> V1Status deleteCollectionResourceSlice(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body) + + + +delete collection of ResourceSlice + +### Example +```java +// Import classes: +import io.kubernetes.client.openapi.ApiClient; +import io.kubernetes.client.openapi.ApiException; +import io.kubernetes.client.openapi.Configuration; +import io.kubernetes.client.openapi.auth.*; +import io.kubernetes.client.openapi.models.*; +import io.kubernetes.client.openapi.apis.ResourceV1beta2Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + ResourceV1beta2Api apiInstance = new ResourceV1beta2Api(defaultClient); + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + 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. + 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. + Integer gracePeriodSeconds = 56; // Integer | 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. + Boolean ignoreStoreReadErrorWithClusterBreakingPotential = true; // Boolean | if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it + String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. + Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + 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. 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. + String resourceVersion = "resourceVersion_example"; // String | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + String resourceVersionMatch = "resourceVersionMatch_example"; // String | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + Boolean sendInitialEvents = true; // Boolean | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | + try { + V1Status result = apiInstance.deleteCollectionResourceSlice(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ResourceV1beta2Api#deleteCollectionResourceSlice"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] + **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] + **gracePeriodSeconds** | **Integer**| 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. | [optional] + **ignoreStoreReadErrorWithClusterBreakingPotential** | **Boolean**| if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it | [optional] + **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] + **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] + **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. 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. | [optional] + **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] + **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] + **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] + **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] + +### Return type + +[**V1Status**](V1Status.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + + +# **deleteDeviceClass** +> V1beta2DeviceClass deleteDeviceClass(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body) + + + +delete a DeviceClass + +### Example +```java +// Import classes: +import io.kubernetes.client.openapi.ApiClient; +import io.kubernetes.client.openapi.ApiException; +import io.kubernetes.client.openapi.Configuration; +import io.kubernetes.client.openapi.auth.*; +import io.kubernetes.client.openapi.models.*; +import io.kubernetes.client.openapi.apis.ResourceV1beta2Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + ResourceV1beta2Api apiInstance = new ResourceV1beta2Api(defaultClient); + String name = "name_example"; // String | name of the DeviceClass + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + 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 + Integer gracePeriodSeconds = 56; // Integer | 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. + Boolean ignoreStoreReadErrorWithClusterBreakingPotential = true; // Boolean | if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it + 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. 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. + V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | + try { + V1beta2DeviceClass result = apiInstance.deleteDeviceClass(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ResourceV1beta2Api#deleteDeviceClass"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **String**| name of the DeviceClass | + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] + **gracePeriodSeconds** | **Integer**| 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. | [optional] + **ignoreStoreReadErrorWithClusterBreakingPotential** | **Boolean**| if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it | [optional] + **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. 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. | [optional] + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] + +### Return type + +[**V1beta2DeviceClass**](V1beta2DeviceClass.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + + +# **deleteNamespacedResourceClaim** +> V1beta2ResourceClaim deleteNamespacedResourceClaim(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body) + + + +delete a ResourceClaim + +### Example +```java +// Import classes: +import io.kubernetes.client.openapi.ApiClient; +import io.kubernetes.client.openapi.ApiException; +import io.kubernetes.client.openapi.Configuration; +import io.kubernetes.client.openapi.auth.*; +import io.kubernetes.client.openapi.models.*; +import io.kubernetes.client.openapi.apis.ResourceV1beta2Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + ResourceV1beta2Api apiInstance = new ResourceV1beta2Api(defaultClient); + String name = "name_example"; // String | name of the ResourceClaim + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + 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 + Integer gracePeriodSeconds = 56; // Integer | 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. + Boolean ignoreStoreReadErrorWithClusterBreakingPotential = true; // Boolean | if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it + 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. 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. + V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | + try { + V1beta2ResourceClaim result = apiInstance.deleteNamespacedResourceClaim(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ResourceV1beta2Api#deleteNamespacedResourceClaim"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **String**| name of the ResourceClaim | + **namespace** | **String**| object name and auth scope, such as for teams and projects | + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] + **gracePeriodSeconds** | **Integer**| 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. | [optional] + **ignoreStoreReadErrorWithClusterBreakingPotential** | **Boolean**| if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it | [optional] + **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. 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. | [optional] + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] + +### Return type + +[**V1beta2ResourceClaim**](V1beta2ResourceClaim.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + + +# **deleteNamespacedResourceClaimTemplate** +> V1beta2ResourceClaimTemplate deleteNamespacedResourceClaimTemplate(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body) + + + +delete a ResourceClaimTemplate + +### Example +```java +// Import classes: +import io.kubernetes.client.openapi.ApiClient; +import io.kubernetes.client.openapi.ApiException; +import io.kubernetes.client.openapi.Configuration; +import io.kubernetes.client.openapi.auth.*; +import io.kubernetes.client.openapi.models.*; +import io.kubernetes.client.openapi.apis.ResourceV1beta2Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + ResourceV1beta2Api apiInstance = new ResourceV1beta2Api(defaultClient); + String name = "name_example"; // String | name of the ResourceClaimTemplate + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + 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 + Integer gracePeriodSeconds = 56; // Integer | 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. + Boolean ignoreStoreReadErrorWithClusterBreakingPotential = true; // Boolean | if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it + 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. 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. + V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | + try { + V1beta2ResourceClaimTemplate result = apiInstance.deleteNamespacedResourceClaimTemplate(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ResourceV1beta2Api#deleteNamespacedResourceClaimTemplate"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **String**| name of the ResourceClaimTemplate | + **namespace** | **String**| object name and auth scope, such as for teams and projects | + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] + **gracePeriodSeconds** | **Integer**| 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. | [optional] + **ignoreStoreReadErrorWithClusterBreakingPotential** | **Boolean**| if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it | [optional] + **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. 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. | [optional] + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] + +### Return type + +[**V1beta2ResourceClaimTemplate**](V1beta2ResourceClaimTemplate.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + + +# **deleteResourceSlice** +> V1beta2ResourceSlice deleteResourceSlice(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body) + + + +delete a ResourceSlice + +### Example +```java +// Import classes: +import io.kubernetes.client.openapi.ApiClient; +import io.kubernetes.client.openapi.ApiException; +import io.kubernetes.client.openapi.Configuration; +import io.kubernetes.client.openapi.auth.*; +import io.kubernetes.client.openapi.models.*; +import io.kubernetes.client.openapi.apis.ResourceV1beta2Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + ResourceV1beta2Api apiInstance = new ResourceV1beta2Api(defaultClient); + String name = "name_example"; // String | name of the ResourceSlice + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + 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 + Integer gracePeriodSeconds = 56; // Integer | 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. + Boolean ignoreStoreReadErrorWithClusterBreakingPotential = true; // Boolean | if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it + 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. 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. + V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | + try { + V1beta2ResourceSlice result = apiInstance.deleteResourceSlice(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ResourceV1beta2Api#deleteResourceSlice"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **String**| name of the ResourceSlice | + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] + **gracePeriodSeconds** | **Integer**| 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. | [optional] + **ignoreStoreReadErrorWithClusterBreakingPotential** | **Boolean**| if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it | [optional] + **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. 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. | [optional] + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] + +### Return type + +[**V1beta2ResourceSlice**](V1beta2ResourceSlice.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + + +# **getAPIResources** +> V1APIResourceList getAPIResources() + + + +get available resources + +### Example +```java +// Import classes: +import io.kubernetes.client.openapi.ApiClient; +import io.kubernetes.client.openapi.ApiException; +import io.kubernetes.client.openapi.Configuration; +import io.kubernetes.client.openapi.auth.*; +import io.kubernetes.client.openapi.models.*; +import io.kubernetes.client.openapi.apis.ResourceV1beta2Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + ResourceV1beta2Api apiInstance = new ResourceV1beta2Api(defaultClient); + try { + V1APIResourceList result = apiInstance.getAPIResources(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ResourceV1beta2Api#getAPIResources"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters +This endpoint does not need any parameter. + +### Return type + +[**V1APIResourceList**](V1APIResourceList.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + + +# **listDeviceClass** +> V1beta2DeviceClassList listDeviceClass(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch) + + + +list or watch objects of kind DeviceClass + +### Example +```java +// Import classes: +import io.kubernetes.client.openapi.ApiClient; +import io.kubernetes.client.openapi.ApiException; +import io.kubernetes.client.openapi.Configuration; +import io.kubernetes.client.openapi.auth.*; +import io.kubernetes.client.openapi.models.*; +import io.kubernetes.client.openapi.apis.ResourceV1beta2Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + ResourceV1beta2Api apiInstance = new ResourceV1beta2Api(defaultClient); + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + 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. + 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. + String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. + String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. + Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + String resourceVersion = "resourceVersion_example"; // String | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + String resourceVersionMatch = "resourceVersionMatch_example"; // String | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + Boolean sendInitialEvents = true; // Boolean | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + 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. Specify resourceVersion. + try { + V1beta2DeviceClassList result = apiInstance.listDeviceClass(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ResourceV1beta2Api#listDeviceClass"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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. | [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] + **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] + **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] + **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] + **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] + **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] + **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] + **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + +### Return type + +[**V1beta2DeviceClassList**](V1beta2DeviceClassList.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch, application/cbor-seq + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + + +# **listNamespacedResourceClaim** +> V1beta2ResourceClaimList listNamespacedResourceClaim(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch) + + + +list or watch objects of kind ResourceClaim + +### Example +```java +// Import classes: +import io.kubernetes.client.openapi.ApiClient; +import io.kubernetes.client.openapi.ApiException; +import io.kubernetes.client.openapi.Configuration; +import io.kubernetes.client.openapi.auth.*; +import io.kubernetes.client.openapi.models.*; +import io.kubernetes.client.openapi.apis.ResourceV1beta2Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + ResourceV1beta2Api apiInstance = new ResourceV1beta2Api(defaultClient); + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + 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. + 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. + String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. + String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. + Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + String resourceVersion = "resourceVersion_example"; // String | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + String resourceVersionMatch = "resourceVersionMatch_example"; // String | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + Boolean sendInitialEvents = true; // Boolean | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + 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. Specify resourceVersion. + try { + V1beta2ResourceClaimList result = apiInstance.listNamespacedResourceClaim(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ResourceV1beta2Api#listNamespacedResourceClaim"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **namespace** | **String**| object name and auth scope, such as for teams and projects | + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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. | [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] + **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] + **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] + **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] + **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] + **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] + **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] + **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + +### Return type + +[**V1beta2ResourceClaimList**](V1beta2ResourceClaimList.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch, application/cbor-seq + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + + +# **listNamespacedResourceClaimTemplate** +> V1beta2ResourceClaimTemplateList listNamespacedResourceClaimTemplate(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch) + + + +list or watch objects of kind ResourceClaimTemplate + +### Example +```java +// Import classes: +import io.kubernetes.client.openapi.ApiClient; +import io.kubernetes.client.openapi.ApiException; +import io.kubernetes.client.openapi.Configuration; +import io.kubernetes.client.openapi.auth.*; +import io.kubernetes.client.openapi.models.*; +import io.kubernetes.client.openapi.apis.ResourceV1beta2Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + ResourceV1beta2Api apiInstance = new ResourceV1beta2Api(defaultClient); + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + 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. + 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. + String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. + String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. + Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + String resourceVersion = "resourceVersion_example"; // String | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + String resourceVersionMatch = "resourceVersionMatch_example"; // String | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + Boolean sendInitialEvents = true; // Boolean | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + 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. Specify resourceVersion. + try { + V1beta2ResourceClaimTemplateList result = apiInstance.listNamespacedResourceClaimTemplate(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ResourceV1beta2Api#listNamespacedResourceClaimTemplate"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **namespace** | **String**| object name and auth scope, such as for teams and projects | + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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. | [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] + **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] + **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] + **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] + **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] + **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] + **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] + **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + +### Return type + +[**V1beta2ResourceClaimTemplateList**](V1beta2ResourceClaimTemplateList.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch, application/cbor-seq + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + + +# **listResourceClaimForAllNamespaces** +> V1beta2ResourceClaimList listResourceClaimForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch) + + + +list or watch objects of kind ResourceClaim + +### Example +```java +// Import classes: +import io.kubernetes.client.openapi.ApiClient; +import io.kubernetes.client.openapi.ApiException; +import io.kubernetes.client.openapi.Configuration; +import io.kubernetes.client.openapi.auth.*; +import io.kubernetes.client.openapi.models.*; +import io.kubernetes.client.openapi.apis.ResourceV1beta2Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + ResourceV1beta2Api apiInstance = new ResourceV1beta2Api(defaultClient); + 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. + 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. + String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. + String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. + Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + String resourceVersion = "resourceVersion_example"; // String | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + String resourceVersionMatch = "resourceVersionMatch_example"; // String | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + Boolean sendInitialEvents = true; // Boolean | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + 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. Specify resourceVersion. + try { + V1beta2ResourceClaimList result = apiInstance.listResourceClaimForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ResourceV1beta2Api#listResourceClaimForAllNamespaces"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **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. | [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] + **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] + **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] + **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] + **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] + **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] + **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] + **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + +### Return type + +[**V1beta2ResourceClaimList**](V1beta2ResourceClaimList.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch, application/cbor-seq + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + + +# **listResourceClaimTemplateForAllNamespaces** +> V1beta2ResourceClaimTemplateList listResourceClaimTemplateForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch) + + + +list or watch objects of kind ResourceClaimTemplate + +### Example +```java +// Import classes: +import io.kubernetes.client.openapi.ApiClient; +import io.kubernetes.client.openapi.ApiException; +import io.kubernetes.client.openapi.Configuration; +import io.kubernetes.client.openapi.auth.*; +import io.kubernetes.client.openapi.models.*; +import io.kubernetes.client.openapi.apis.ResourceV1beta2Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + ResourceV1beta2Api apiInstance = new ResourceV1beta2Api(defaultClient); + 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. + 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. + String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. + String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. + Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + String resourceVersion = "resourceVersion_example"; // String | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + String resourceVersionMatch = "resourceVersionMatch_example"; // String | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + Boolean sendInitialEvents = true; // Boolean | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + 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. Specify resourceVersion. + try { + V1beta2ResourceClaimTemplateList result = apiInstance.listResourceClaimTemplateForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ResourceV1beta2Api#listResourceClaimTemplateForAllNamespaces"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **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. | [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] + **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] + **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] + **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] + **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] + **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] + **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] + **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + +### Return type + +[**V1beta2ResourceClaimTemplateList**](V1beta2ResourceClaimTemplateList.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch, application/cbor-seq + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + + +# **listResourceSlice** +> V1beta2ResourceSliceList listResourceSlice(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch) + + + +list or watch objects of kind ResourceSlice + +### Example +```java +// Import classes: +import io.kubernetes.client.openapi.ApiClient; +import io.kubernetes.client.openapi.ApiException; +import io.kubernetes.client.openapi.Configuration; +import io.kubernetes.client.openapi.auth.*; +import io.kubernetes.client.openapi.models.*; +import io.kubernetes.client.openapi.apis.ResourceV1beta2Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + ResourceV1beta2Api apiInstance = new ResourceV1beta2Api(defaultClient); + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + 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. + 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. + String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. + String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. + Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + String resourceVersion = "resourceVersion_example"; // String | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + String resourceVersionMatch = "resourceVersionMatch_example"; // String | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + Boolean sendInitialEvents = true; // Boolean | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + 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. Specify resourceVersion. + try { + V1beta2ResourceSliceList result = apiInstance.listResourceSlice(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ResourceV1beta2Api#listResourceSlice"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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. | [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] + **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] + **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] + **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] + **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] + **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] + **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] + **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + +### Return type + +[**V1beta2ResourceSliceList**](V1beta2ResourceSliceList.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch, application/cbor-seq + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + + +# **patchDeviceClass** +> V1beta2DeviceClass patchDeviceClass(name, body, pretty, dryRun, fieldManager, fieldValidation, force) + + + +partially update the specified DeviceClass + +### Example +```java +// Import classes: +import io.kubernetes.client.openapi.ApiClient; +import io.kubernetes.client.openapi.ApiException; +import io.kubernetes.client.openapi.Configuration; +import io.kubernetes.client.openapi.auth.*; +import io.kubernetes.client.openapi.models.*; +import io.kubernetes.client.openapi.apis.ResourceV1beta2Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + ResourceV1beta2Api apiInstance = new ResourceV1beta2Api(defaultClient); + String name = "name_example"; // String | name of the DeviceClass + V1Patch body = new V1Patch(); // V1Patch | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + 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 fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). + String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. + Boolean force = true; // Boolean | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. + try { + V1beta2DeviceClass result = apiInstance.patchDeviceClass(name, body, pretty, dryRun, fieldManager, fieldValidation, force); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ResourceV1beta2Api#patchDeviceClass"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **String**| name of the DeviceClass | + **body** | **V1Patch**| | + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] + **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] + **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] + **force** | **Boolean**| Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | [optional] + +### Return type + +[**V1beta2DeviceClass**](V1beta2DeviceClass.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**401** | Unauthorized | - | + + +# **patchNamespacedResourceClaim** +> V1beta2ResourceClaim patchNamespacedResourceClaim(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force) + + + +partially update the specified ResourceClaim + +### Example +```java +// Import classes: +import io.kubernetes.client.openapi.ApiClient; +import io.kubernetes.client.openapi.ApiException; +import io.kubernetes.client.openapi.Configuration; +import io.kubernetes.client.openapi.auth.*; +import io.kubernetes.client.openapi.models.*; +import io.kubernetes.client.openapi.apis.ResourceV1beta2Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + ResourceV1beta2Api apiInstance = new ResourceV1beta2Api(defaultClient); + String name = "name_example"; // String | name of the ResourceClaim + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + V1Patch body = new V1Patch(); // V1Patch | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + 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 fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). + String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. + Boolean force = true; // Boolean | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. + try { + V1beta2ResourceClaim result = apiInstance.patchNamespacedResourceClaim(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ResourceV1beta2Api#patchNamespacedResourceClaim"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **String**| name of the ResourceClaim | + **namespace** | **String**| object name and auth scope, such as for teams and projects | + **body** | **V1Patch**| | + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] + **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] + **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] + **force** | **Boolean**| Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | [optional] + +### Return type + +[**V1beta2ResourceClaim**](V1beta2ResourceClaim.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**401** | Unauthorized | - | + + +# **patchNamespacedResourceClaimStatus** +> V1beta2ResourceClaim patchNamespacedResourceClaimStatus(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force) + + + +partially update status of the specified ResourceClaim + +### Example +```java +// Import classes: +import io.kubernetes.client.openapi.ApiClient; +import io.kubernetes.client.openapi.ApiException; +import io.kubernetes.client.openapi.Configuration; +import io.kubernetes.client.openapi.auth.*; +import io.kubernetes.client.openapi.models.*; +import io.kubernetes.client.openapi.apis.ResourceV1beta2Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + ResourceV1beta2Api apiInstance = new ResourceV1beta2Api(defaultClient); + String name = "name_example"; // String | name of the ResourceClaim + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + V1Patch body = new V1Patch(); // V1Patch | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + 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 fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). + String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. + Boolean force = true; // Boolean | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. + try { + V1beta2ResourceClaim result = apiInstance.patchNamespacedResourceClaimStatus(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ResourceV1beta2Api#patchNamespacedResourceClaimStatus"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **String**| name of the ResourceClaim | + **namespace** | **String**| object name and auth scope, such as for teams and projects | + **body** | **V1Patch**| | + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] + **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] + **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] + **force** | **Boolean**| Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | [optional] + +### Return type + +[**V1beta2ResourceClaim**](V1beta2ResourceClaim.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**401** | Unauthorized | - | + + +# **patchNamespacedResourceClaimTemplate** +> V1beta2ResourceClaimTemplate patchNamespacedResourceClaimTemplate(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force) + + + +partially update the specified ResourceClaimTemplate + +### Example +```java +// Import classes: +import io.kubernetes.client.openapi.ApiClient; +import io.kubernetes.client.openapi.ApiException; +import io.kubernetes.client.openapi.Configuration; +import io.kubernetes.client.openapi.auth.*; +import io.kubernetes.client.openapi.models.*; +import io.kubernetes.client.openapi.apis.ResourceV1beta2Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + ResourceV1beta2Api apiInstance = new ResourceV1beta2Api(defaultClient); + String name = "name_example"; // String | name of the ResourceClaimTemplate + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + V1Patch body = new V1Patch(); // V1Patch | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + 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 fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). + String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. + Boolean force = true; // Boolean | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. + try { + V1beta2ResourceClaimTemplate result = apiInstance.patchNamespacedResourceClaimTemplate(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ResourceV1beta2Api#patchNamespacedResourceClaimTemplate"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **String**| name of the ResourceClaimTemplate | + **namespace** | **String**| object name and auth scope, such as for teams and projects | + **body** | **V1Patch**| | + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] + **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] + **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] + **force** | **Boolean**| Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | [optional] + +### Return type + +[**V1beta2ResourceClaimTemplate**](V1beta2ResourceClaimTemplate.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**401** | Unauthorized | - | + + +# **patchResourceSlice** +> V1beta2ResourceSlice patchResourceSlice(name, body, pretty, dryRun, fieldManager, fieldValidation, force) + + + +partially update the specified ResourceSlice + +### Example +```java +// Import classes: +import io.kubernetes.client.openapi.ApiClient; +import io.kubernetes.client.openapi.ApiException; +import io.kubernetes.client.openapi.Configuration; +import io.kubernetes.client.openapi.auth.*; +import io.kubernetes.client.openapi.models.*; +import io.kubernetes.client.openapi.apis.ResourceV1beta2Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + ResourceV1beta2Api apiInstance = new ResourceV1beta2Api(defaultClient); + String name = "name_example"; // String | name of the ResourceSlice + V1Patch body = new V1Patch(); // V1Patch | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + 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 fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). + String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. + Boolean force = true; // Boolean | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. + try { + V1beta2ResourceSlice result = apiInstance.patchResourceSlice(name, body, pretty, dryRun, fieldManager, fieldValidation, force); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ResourceV1beta2Api#patchResourceSlice"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **String**| name of the ResourceSlice | + **body** | **V1Patch**| | + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] + **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] + **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] + **force** | **Boolean**| Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | [optional] + +### Return type + +[**V1beta2ResourceSlice**](V1beta2ResourceSlice.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**401** | Unauthorized | - | + + +# **readDeviceClass** +> V1beta2DeviceClass readDeviceClass(name, pretty) + + + +read the specified DeviceClass + +### Example +```java +// Import classes: +import io.kubernetes.client.openapi.ApiClient; +import io.kubernetes.client.openapi.ApiException; +import io.kubernetes.client.openapi.Configuration; +import io.kubernetes.client.openapi.auth.*; +import io.kubernetes.client.openapi.models.*; +import io.kubernetes.client.openapi.apis.ResourceV1beta2Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + ResourceV1beta2Api apiInstance = new ResourceV1beta2Api(defaultClient); + String name = "name_example"; // String | name of the DeviceClass + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + try { + V1beta2DeviceClass result = apiInstance.readDeviceClass(name, pretty); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ResourceV1beta2Api#readDeviceClass"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **String**| name of the DeviceClass | + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] + +### Return type + +[**V1beta2DeviceClass**](V1beta2DeviceClass.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + + +# **readNamespacedResourceClaim** +> V1beta2ResourceClaim readNamespacedResourceClaim(name, namespace, pretty) + + + +read the specified ResourceClaim + +### Example +```java +// Import classes: +import io.kubernetes.client.openapi.ApiClient; +import io.kubernetes.client.openapi.ApiException; +import io.kubernetes.client.openapi.Configuration; +import io.kubernetes.client.openapi.auth.*; +import io.kubernetes.client.openapi.models.*; +import io.kubernetes.client.openapi.apis.ResourceV1beta2Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + ResourceV1beta2Api apiInstance = new ResourceV1beta2Api(defaultClient); + String name = "name_example"; // String | name of the ResourceClaim + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + try { + V1beta2ResourceClaim result = apiInstance.readNamespacedResourceClaim(name, namespace, pretty); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ResourceV1beta2Api#readNamespacedResourceClaim"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **String**| name of the ResourceClaim | + **namespace** | **String**| object name and auth scope, such as for teams and projects | + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] + +### Return type + +[**V1beta2ResourceClaim**](V1beta2ResourceClaim.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + + +# **readNamespacedResourceClaimStatus** +> V1beta2ResourceClaim readNamespacedResourceClaimStatus(name, namespace, pretty) + + + +read status of the specified ResourceClaim + +### Example +```java +// Import classes: +import io.kubernetes.client.openapi.ApiClient; +import io.kubernetes.client.openapi.ApiException; +import io.kubernetes.client.openapi.Configuration; +import io.kubernetes.client.openapi.auth.*; +import io.kubernetes.client.openapi.models.*; +import io.kubernetes.client.openapi.apis.ResourceV1beta2Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + ResourceV1beta2Api apiInstance = new ResourceV1beta2Api(defaultClient); + String name = "name_example"; // String | name of the ResourceClaim + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + try { + V1beta2ResourceClaim result = apiInstance.readNamespacedResourceClaimStatus(name, namespace, pretty); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ResourceV1beta2Api#readNamespacedResourceClaimStatus"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **String**| name of the ResourceClaim | + **namespace** | **String**| object name and auth scope, such as for teams and projects | + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] + +### Return type + +[**V1beta2ResourceClaim**](V1beta2ResourceClaim.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + + +# **readNamespacedResourceClaimTemplate** +> V1beta2ResourceClaimTemplate readNamespacedResourceClaimTemplate(name, namespace, pretty) + + + +read the specified ResourceClaimTemplate + +### Example +```java +// Import classes: +import io.kubernetes.client.openapi.ApiClient; +import io.kubernetes.client.openapi.ApiException; +import io.kubernetes.client.openapi.Configuration; +import io.kubernetes.client.openapi.auth.*; +import io.kubernetes.client.openapi.models.*; +import io.kubernetes.client.openapi.apis.ResourceV1beta2Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + ResourceV1beta2Api apiInstance = new ResourceV1beta2Api(defaultClient); + String name = "name_example"; // String | name of the ResourceClaimTemplate + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + try { + V1beta2ResourceClaimTemplate result = apiInstance.readNamespacedResourceClaimTemplate(name, namespace, pretty); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ResourceV1beta2Api#readNamespacedResourceClaimTemplate"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **String**| name of the ResourceClaimTemplate | + **namespace** | **String**| object name and auth scope, such as for teams and projects | + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] + +### Return type + +[**V1beta2ResourceClaimTemplate**](V1beta2ResourceClaimTemplate.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + + +# **readResourceSlice** +> V1beta2ResourceSlice readResourceSlice(name, pretty) + + + +read the specified ResourceSlice + +### Example +```java +// Import classes: +import io.kubernetes.client.openapi.ApiClient; +import io.kubernetes.client.openapi.ApiException; +import io.kubernetes.client.openapi.Configuration; +import io.kubernetes.client.openapi.auth.*; +import io.kubernetes.client.openapi.models.*; +import io.kubernetes.client.openapi.apis.ResourceV1beta2Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + ResourceV1beta2Api apiInstance = new ResourceV1beta2Api(defaultClient); + String name = "name_example"; // String | name of the ResourceSlice + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + try { + V1beta2ResourceSlice result = apiInstance.readResourceSlice(name, pretty); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ResourceV1beta2Api#readResourceSlice"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **String**| name of the ResourceSlice | + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] + +### Return type + +[**V1beta2ResourceSlice**](V1beta2ResourceSlice.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + + +# **replaceDeviceClass** +> V1beta2DeviceClass replaceDeviceClass(name, body, pretty, dryRun, fieldManager, fieldValidation) + + + +replace the specified DeviceClass + +### Example +```java +// Import classes: +import io.kubernetes.client.openapi.ApiClient; +import io.kubernetes.client.openapi.ApiException; +import io.kubernetes.client.openapi.Configuration; +import io.kubernetes.client.openapi.auth.*; +import io.kubernetes.client.openapi.models.*; +import io.kubernetes.client.openapi.apis.ResourceV1beta2Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + ResourceV1beta2Api apiInstance = new ResourceV1beta2Api(defaultClient); + String name = "name_example"; // String | name of the DeviceClass + V1beta2DeviceClass body = new V1beta2DeviceClass(); // V1beta2DeviceClass | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + 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 fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. + try { + V1beta2DeviceClass result = apiInstance.replaceDeviceClass(name, body, pretty, dryRun, fieldManager, fieldValidation); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ResourceV1beta2Api#replaceDeviceClass"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **String**| name of the DeviceClass | + **body** | [**V1beta2DeviceClass**](V1beta2DeviceClass.md)| | + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] + **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] + **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] + +### Return type + +[**V1beta2DeviceClass**](V1beta2DeviceClass.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**401** | Unauthorized | - | + + +# **replaceNamespacedResourceClaim** +> V1beta2ResourceClaim replaceNamespacedResourceClaim(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation) + + + +replace the specified ResourceClaim + +### Example +```java +// Import classes: +import io.kubernetes.client.openapi.ApiClient; +import io.kubernetes.client.openapi.ApiException; +import io.kubernetes.client.openapi.Configuration; +import io.kubernetes.client.openapi.auth.*; +import io.kubernetes.client.openapi.models.*; +import io.kubernetes.client.openapi.apis.ResourceV1beta2Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + ResourceV1beta2Api apiInstance = new ResourceV1beta2Api(defaultClient); + String name = "name_example"; // String | name of the ResourceClaim + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + V1beta2ResourceClaim body = new V1beta2ResourceClaim(); // V1beta2ResourceClaim | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + 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 fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. + try { + V1beta2ResourceClaim result = apiInstance.replaceNamespacedResourceClaim(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ResourceV1beta2Api#replaceNamespacedResourceClaim"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **String**| name of the ResourceClaim | + **namespace** | **String**| object name and auth scope, such as for teams and projects | + **body** | [**V1beta2ResourceClaim**](V1beta2ResourceClaim.md)| | + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] + **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] + **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] + +### Return type + +[**V1beta2ResourceClaim**](V1beta2ResourceClaim.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**401** | Unauthorized | - | + + +# **replaceNamespacedResourceClaimStatus** +> V1beta2ResourceClaim replaceNamespacedResourceClaimStatus(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation) + + + +replace status of the specified ResourceClaim + +### Example +```java +// Import classes: +import io.kubernetes.client.openapi.ApiClient; +import io.kubernetes.client.openapi.ApiException; +import io.kubernetes.client.openapi.Configuration; +import io.kubernetes.client.openapi.auth.*; +import io.kubernetes.client.openapi.models.*; +import io.kubernetes.client.openapi.apis.ResourceV1beta2Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + ResourceV1beta2Api apiInstance = new ResourceV1beta2Api(defaultClient); + String name = "name_example"; // String | name of the ResourceClaim + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + V1beta2ResourceClaim body = new V1beta2ResourceClaim(); // V1beta2ResourceClaim | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + 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 fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. + try { + V1beta2ResourceClaim result = apiInstance.replaceNamespacedResourceClaimStatus(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ResourceV1beta2Api#replaceNamespacedResourceClaimStatus"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **String**| name of the ResourceClaim | + **namespace** | **String**| object name and auth scope, such as for teams and projects | + **body** | [**V1beta2ResourceClaim**](V1beta2ResourceClaim.md)| | + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] + **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] + **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] + +### Return type + +[**V1beta2ResourceClaim**](V1beta2ResourceClaim.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**401** | Unauthorized | - | + + +# **replaceNamespacedResourceClaimTemplate** +> V1beta2ResourceClaimTemplate replaceNamespacedResourceClaimTemplate(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation) + + + +replace the specified ResourceClaimTemplate + +### Example +```java +// Import classes: +import io.kubernetes.client.openapi.ApiClient; +import io.kubernetes.client.openapi.ApiException; +import io.kubernetes.client.openapi.Configuration; +import io.kubernetes.client.openapi.auth.*; +import io.kubernetes.client.openapi.models.*; +import io.kubernetes.client.openapi.apis.ResourceV1beta2Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + ResourceV1beta2Api apiInstance = new ResourceV1beta2Api(defaultClient); + String name = "name_example"; // String | name of the ResourceClaimTemplate + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + V1beta2ResourceClaimTemplate body = new V1beta2ResourceClaimTemplate(); // V1beta2ResourceClaimTemplate | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + 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 fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. + try { + V1beta2ResourceClaimTemplate result = apiInstance.replaceNamespacedResourceClaimTemplate(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ResourceV1beta2Api#replaceNamespacedResourceClaimTemplate"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **String**| name of the ResourceClaimTemplate | + **namespace** | **String**| object name and auth scope, such as for teams and projects | + **body** | [**V1beta2ResourceClaimTemplate**](V1beta2ResourceClaimTemplate.md)| | + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] + **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] + **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] + +### Return type + +[**V1beta2ResourceClaimTemplate**](V1beta2ResourceClaimTemplate.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**401** | Unauthorized | - | + + +# **replaceResourceSlice** +> V1beta2ResourceSlice replaceResourceSlice(name, body, pretty, dryRun, fieldManager, fieldValidation) + + + +replace the specified ResourceSlice + +### Example +```java +// Import classes: +import io.kubernetes.client.openapi.ApiClient; +import io.kubernetes.client.openapi.ApiException; +import io.kubernetes.client.openapi.Configuration; +import io.kubernetes.client.openapi.auth.*; +import io.kubernetes.client.openapi.models.*; +import io.kubernetes.client.openapi.apis.ResourceV1beta2Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + ResourceV1beta2Api apiInstance = new ResourceV1beta2Api(defaultClient); + String name = "name_example"; // String | name of the ResourceSlice + V1beta2ResourceSlice body = new V1beta2ResourceSlice(); // V1beta2ResourceSlice | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + 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 fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. + try { + V1beta2ResourceSlice result = apiInstance.replaceResourceSlice(name, body, pretty, dryRun, fieldManager, fieldValidation); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ResourceV1beta2Api#replaceResourceSlice"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **String**| name of the ResourceSlice | + **body** | [**V1beta2ResourceSlice**](V1beta2ResourceSlice.md)| | + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] + **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] + **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] + +### Return type + +[**V1beta2ResourceSlice**](V1beta2ResourceSlice.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**401** | Unauthorized | - | + diff --git a/kubernetes/docs/SchedulingV1Api.md b/kubernetes/docs/SchedulingV1Api.md index a1d73478bb..eba688d727 100644 --- a/kubernetes/docs/SchedulingV1Api.md +++ b/kubernetes/docs/SchedulingV1Api.md @@ -45,7 +45,7 @@ public class Example { SchedulingV1Api apiInstance = new SchedulingV1Api(defaultClient); V1PriorityClass body = new V1PriorityClass(); // V1PriorityClass | - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). 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 fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. @@ -68,7 +68,7 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **body** | [**V1PriorityClass**](V1PriorityClass.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] @@ -84,7 +84,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -96,7 +96,7 @@ Name | Type | Description | Notes # **deleteCollectionPriorityClass** -> V1Status deleteCollectionPriorityClass(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body) +> V1Status deleteCollectionPriorityClass(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body) @@ -124,11 +124,12 @@ public class Example { //BearerToken.setApiKeyPrefix("Token"); SchedulingV1Api apiInstance = new SchedulingV1Api(defaultClient); - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). 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. 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. Integer gracePeriodSeconds = 56; // Integer | 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. + Boolean ignoreStoreReadErrorWithClusterBreakingPotential = true; // Boolean | if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. 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. @@ -139,7 +140,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. V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | try { - V1Status result = apiInstance.deleteCollectionPriorityClass(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); + V1Status result = apiInstance.deleteCollectionPriorityClass(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling SchedulingV1Api#deleteCollectionPriorityClass"); @@ -156,11 +157,12 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] **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] **gracePeriodSeconds** | **Integer**| 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. | [optional] + **ignoreStoreReadErrorWithClusterBreakingPotential** | **Boolean**| if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it | [optional] **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] **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] @@ -182,7 +184,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -192,7 +194,7 @@ Name | Type | Description | Notes # **deletePriorityClass** -> V1Status deletePriorityClass(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body) +> V1Status deletePriorityClass(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body) @@ -221,14 +223,15 @@ public class Example { SchedulingV1Api apiInstance = new SchedulingV1Api(defaultClient); String name = "name_example"; // String | name of the PriorityClass - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). 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 Integer gracePeriodSeconds = 56; // Integer | 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. + Boolean ignoreStoreReadErrorWithClusterBreakingPotential = true; // Boolean | if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it 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. 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. V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | try { - V1Status result = apiInstance.deletePriorityClass(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body); + V1Status result = apiInstance.deletePriorityClass(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling SchedulingV1Api#deletePriorityClass"); @@ -246,9 +249,10 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **String**| name of the PriorityClass | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] **gracePeriodSeconds** | **Integer**| 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. | [optional] + **ignoreStoreReadErrorWithClusterBreakingPotential** | **Boolean**| if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it | [optional] **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. 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. | [optional] **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] @@ -264,7 +268,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -331,7 +335,7 @@ This endpoint does not need any parameter. ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -369,7 +373,7 @@ public class Example { //BearerToken.setApiKeyPrefix("Token"); SchedulingV1Api apiInstance = new SchedulingV1Api(defaultClient); - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). 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. 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. String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. @@ -398,7 +402,7 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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. | [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] **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] @@ -421,7 +425,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch, application/cbor-seq ### HTTP response details | Status code | Description | Response headers | @@ -461,7 +465,7 @@ public class Example { SchedulingV1Api apiInstance = new SchedulingV1Api(defaultClient); String name = "name_example"; // String | name of the PriorityClass V1Patch body = new V1Patch(); // V1Patch | - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). 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 fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. @@ -486,7 +490,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **String**| name of the PriorityClass | **body** | **V1Patch**| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] @@ -503,7 +507,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -543,7 +547,7 @@ public class Example { SchedulingV1Api apiInstance = new SchedulingV1Api(defaultClient); String name = "name_example"; // String | name of the PriorityClass - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). try { V1PriorityClass result = apiInstance.readPriorityClass(name, pretty); System.out.println(result); @@ -563,7 +567,7 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **String**| name of the PriorityClass | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] ### Return type @@ -576,7 +580,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -616,7 +620,7 @@ public class Example { SchedulingV1Api apiInstance = new SchedulingV1Api(defaultClient); String name = "name_example"; // String | name of the PriorityClass V1PriorityClass body = new V1PriorityClass(); // V1PriorityClass | - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). 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 fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. @@ -640,7 +644,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **String**| name of the PriorityClass | **body** | [**V1PriorityClass**](V1PriorityClass.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] @@ -656,7 +660,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | diff --git a/kubernetes/docs/StorageV1Api.md b/kubernetes/docs/StorageV1Api.md index 24acb89b71..b230811ba9 100644 --- a/kubernetes/docs/StorageV1Api.md +++ b/kubernetes/docs/StorageV1Api.md @@ -77,7 +77,7 @@ public class Example { StorageV1Api apiInstance = new StorageV1Api(defaultClient); V1CSIDriver body = new V1CSIDriver(); // V1CSIDriver | - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). 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 fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. @@ -100,7 +100,7 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **body** | [**V1CSIDriver**](V1CSIDriver.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] @@ -116,7 +116,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -157,7 +157,7 @@ public class Example { StorageV1Api apiInstance = new StorageV1Api(defaultClient); V1CSINode body = new V1CSINode(); // V1CSINode | - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). 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 fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. @@ -180,7 +180,7 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **body** | [**V1CSINode**](V1CSINode.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] @@ -196,7 +196,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -238,7 +238,7 @@ public class Example { StorageV1Api apiInstance = new StorageV1Api(defaultClient); String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects V1CSIStorageCapacity body = new V1CSIStorageCapacity(); // V1CSIStorageCapacity | - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). 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 fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. @@ -262,7 +262,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **namespace** | **String**| object name and auth scope, such as for teams and projects | **body** | [**V1CSIStorageCapacity**](V1CSIStorageCapacity.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] @@ -278,7 +278,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -319,7 +319,7 @@ public class Example { StorageV1Api apiInstance = new StorageV1Api(defaultClient); V1StorageClass body = new V1StorageClass(); // V1StorageClass | - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). 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 fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. @@ -342,7 +342,7 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **body** | [**V1StorageClass**](V1StorageClass.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] @@ -358,7 +358,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -399,7 +399,7 @@ public class Example { StorageV1Api apiInstance = new StorageV1Api(defaultClient); V1VolumeAttachment body = new V1VolumeAttachment(); // V1VolumeAttachment | - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). 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 fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. @@ -422,7 +422,7 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **body** | [**V1VolumeAttachment**](V1VolumeAttachment.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] @@ -438,7 +438,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -450,7 +450,7 @@ Name | Type | Description | Notes # **deleteCSIDriver** -> V1CSIDriver deleteCSIDriver(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body) +> V1CSIDriver deleteCSIDriver(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body) @@ -479,14 +479,15 @@ public class Example { StorageV1Api apiInstance = new StorageV1Api(defaultClient); String name = "name_example"; // String | name of the CSIDriver - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). 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 Integer gracePeriodSeconds = 56; // Integer | 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. + Boolean ignoreStoreReadErrorWithClusterBreakingPotential = true; // Boolean | if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it 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. 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. V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | try { - V1CSIDriver result = apiInstance.deleteCSIDriver(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body); + V1CSIDriver result = apiInstance.deleteCSIDriver(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling StorageV1Api#deleteCSIDriver"); @@ -504,9 +505,10 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **String**| name of the CSIDriver | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] **gracePeriodSeconds** | **Integer**| 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. | [optional] + **ignoreStoreReadErrorWithClusterBreakingPotential** | **Boolean**| if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it | [optional] **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. 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. | [optional] **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] @@ -522,7 +524,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -533,7 +535,7 @@ Name | Type | Description | Notes # **deleteCSINode** -> V1CSINode deleteCSINode(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body) +> V1CSINode deleteCSINode(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body) @@ -562,14 +564,15 @@ public class Example { StorageV1Api apiInstance = new StorageV1Api(defaultClient); String name = "name_example"; // String | name of the CSINode - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). 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 Integer gracePeriodSeconds = 56; // Integer | 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. + Boolean ignoreStoreReadErrorWithClusterBreakingPotential = true; // Boolean | if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it 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. 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. V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | try { - V1CSINode result = apiInstance.deleteCSINode(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body); + V1CSINode result = apiInstance.deleteCSINode(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling StorageV1Api#deleteCSINode"); @@ -587,9 +590,10 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **String**| name of the CSINode | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] **gracePeriodSeconds** | **Integer**| 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. | [optional] + **ignoreStoreReadErrorWithClusterBreakingPotential** | **Boolean**| if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it | [optional] **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. 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. | [optional] **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] @@ -605,7 +609,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -616,7 +620,7 @@ Name | Type | Description | Notes # **deleteCollectionCSIDriver** -> V1Status deleteCollectionCSIDriver(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body) +> V1Status deleteCollectionCSIDriver(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body) @@ -644,11 +648,12 @@ public class Example { //BearerToken.setApiKeyPrefix("Token"); StorageV1Api apiInstance = new StorageV1Api(defaultClient); - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). 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. 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. Integer gracePeriodSeconds = 56; // Integer | 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. + Boolean ignoreStoreReadErrorWithClusterBreakingPotential = true; // Boolean | if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. 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. @@ -659,7 +664,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. V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | try { - V1Status result = apiInstance.deleteCollectionCSIDriver(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); + V1Status result = apiInstance.deleteCollectionCSIDriver(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling StorageV1Api#deleteCollectionCSIDriver"); @@ -676,11 +681,12 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] **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] **gracePeriodSeconds** | **Integer**| 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. | [optional] + **ignoreStoreReadErrorWithClusterBreakingPotential** | **Boolean**| if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it | [optional] **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] **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] @@ -702,7 +708,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -712,7 +718,7 @@ Name | Type | Description | Notes # **deleteCollectionCSINode** -> V1Status deleteCollectionCSINode(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body) +> V1Status deleteCollectionCSINode(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body) @@ -740,11 +746,12 @@ public class Example { //BearerToken.setApiKeyPrefix("Token"); StorageV1Api apiInstance = new StorageV1Api(defaultClient); - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). 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. 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. Integer gracePeriodSeconds = 56; // Integer | 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. + Boolean ignoreStoreReadErrorWithClusterBreakingPotential = true; // Boolean | if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. 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. @@ -755,7 +762,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. V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | try { - V1Status result = apiInstance.deleteCollectionCSINode(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); + V1Status result = apiInstance.deleteCollectionCSINode(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling StorageV1Api#deleteCollectionCSINode"); @@ -772,11 +779,12 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] **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] **gracePeriodSeconds** | **Integer**| 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. | [optional] + **ignoreStoreReadErrorWithClusterBreakingPotential** | **Boolean**| if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it | [optional] **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] **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] @@ -798,7 +806,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -808,7 +816,7 @@ Name | Type | Description | Notes # **deleteCollectionNamespacedCSIStorageCapacity** -> V1Status deleteCollectionNamespacedCSIStorageCapacity(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body) +> V1Status deleteCollectionNamespacedCSIStorageCapacity(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body) @@ -837,11 +845,12 @@ public class Example { StorageV1Api apiInstance = new StorageV1Api(defaultClient); String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). 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. 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. Integer gracePeriodSeconds = 56; // Integer | 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. + Boolean ignoreStoreReadErrorWithClusterBreakingPotential = true; // Boolean | if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. 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. @@ -852,7 +861,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. V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | try { - V1Status result = apiInstance.deleteCollectionNamespacedCSIStorageCapacity(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); + V1Status result = apiInstance.deleteCollectionNamespacedCSIStorageCapacity(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling StorageV1Api#deleteCollectionNamespacedCSIStorageCapacity"); @@ -870,11 +879,12 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **namespace** | **String**| object name and auth scope, such as for teams and projects | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] **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] **gracePeriodSeconds** | **Integer**| 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. | [optional] + **ignoreStoreReadErrorWithClusterBreakingPotential** | **Boolean**| if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it | [optional] **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] **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] @@ -896,7 +906,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -906,7 +916,7 @@ Name | Type | Description | Notes # **deleteCollectionStorageClass** -> V1Status deleteCollectionStorageClass(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body) +> V1Status deleteCollectionStorageClass(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body) @@ -934,11 +944,12 @@ public class Example { //BearerToken.setApiKeyPrefix("Token"); StorageV1Api apiInstance = new StorageV1Api(defaultClient); - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). 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. 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. Integer gracePeriodSeconds = 56; // Integer | 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. + Boolean ignoreStoreReadErrorWithClusterBreakingPotential = true; // Boolean | if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. 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. @@ -949,7 +960,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. V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | try { - V1Status result = apiInstance.deleteCollectionStorageClass(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); + V1Status result = apiInstance.deleteCollectionStorageClass(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling StorageV1Api#deleteCollectionStorageClass"); @@ -966,11 +977,12 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] **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] **gracePeriodSeconds** | **Integer**| 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. | [optional] + **ignoreStoreReadErrorWithClusterBreakingPotential** | **Boolean**| if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it | [optional] **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] **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] @@ -992,7 +1004,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -1002,7 +1014,7 @@ Name | Type | Description | Notes # **deleteCollectionVolumeAttachment** -> V1Status deleteCollectionVolumeAttachment(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body) +> V1Status deleteCollectionVolumeAttachment(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body) @@ -1030,11 +1042,12 @@ public class Example { //BearerToken.setApiKeyPrefix("Token"); StorageV1Api apiInstance = new StorageV1Api(defaultClient); - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). 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. 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. Integer gracePeriodSeconds = 56; // Integer | 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. + Boolean ignoreStoreReadErrorWithClusterBreakingPotential = true; // Boolean | if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. 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. @@ -1045,7 +1058,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. V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | try { - V1Status result = apiInstance.deleteCollectionVolumeAttachment(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); + V1Status result = apiInstance.deleteCollectionVolumeAttachment(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling StorageV1Api#deleteCollectionVolumeAttachment"); @@ -1062,11 +1075,12 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] **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] **gracePeriodSeconds** | **Integer**| 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. | [optional] + **ignoreStoreReadErrorWithClusterBreakingPotential** | **Boolean**| if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it | [optional] **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] **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] @@ -1088,7 +1102,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -1098,7 +1112,7 @@ Name | Type | Description | Notes # **deleteNamespacedCSIStorageCapacity** -> V1Status deleteNamespacedCSIStorageCapacity(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body) +> V1Status deleteNamespacedCSIStorageCapacity(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body) @@ -1128,14 +1142,15 @@ public class Example { StorageV1Api apiInstance = new StorageV1Api(defaultClient); String name = "name_example"; // String | name of the CSIStorageCapacity String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). 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 Integer gracePeriodSeconds = 56; // Integer | 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. + Boolean ignoreStoreReadErrorWithClusterBreakingPotential = true; // Boolean | if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it 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. 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. V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | try { - V1Status result = apiInstance.deleteNamespacedCSIStorageCapacity(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body); + V1Status result = apiInstance.deleteNamespacedCSIStorageCapacity(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling StorageV1Api#deleteNamespacedCSIStorageCapacity"); @@ -1154,9 +1169,10 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **String**| name of the CSIStorageCapacity | **namespace** | **String**| object name and auth scope, such as for teams and projects | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] **gracePeriodSeconds** | **Integer**| 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. | [optional] + **ignoreStoreReadErrorWithClusterBreakingPotential** | **Boolean**| if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it | [optional] **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. 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. | [optional] **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] @@ -1172,7 +1188,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -1183,7 +1199,7 @@ Name | Type | Description | Notes # **deleteStorageClass** -> V1StorageClass deleteStorageClass(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body) +> V1StorageClass deleteStorageClass(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body) @@ -1212,14 +1228,15 @@ public class Example { StorageV1Api apiInstance = new StorageV1Api(defaultClient); String name = "name_example"; // String | name of the StorageClass - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). 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 Integer gracePeriodSeconds = 56; // Integer | 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. + Boolean ignoreStoreReadErrorWithClusterBreakingPotential = true; // Boolean | if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it 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. 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. V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | try { - V1StorageClass result = apiInstance.deleteStorageClass(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body); + V1StorageClass result = apiInstance.deleteStorageClass(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling StorageV1Api#deleteStorageClass"); @@ -1237,9 +1254,10 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **String**| name of the StorageClass | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] **gracePeriodSeconds** | **Integer**| 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. | [optional] + **ignoreStoreReadErrorWithClusterBreakingPotential** | **Boolean**| if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it | [optional] **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. 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. | [optional] **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] @@ -1255,7 +1273,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -1266,7 +1284,7 @@ Name | Type | Description | Notes # **deleteVolumeAttachment** -> V1VolumeAttachment deleteVolumeAttachment(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body) +> V1VolumeAttachment deleteVolumeAttachment(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body) @@ -1295,14 +1313,15 @@ public class Example { StorageV1Api apiInstance = new StorageV1Api(defaultClient); String name = "name_example"; // String | name of the VolumeAttachment - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). 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 Integer gracePeriodSeconds = 56; // Integer | 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. + Boolean ignoreStoreReadErrorWithClusterBreakingPotential = true; // Boolean | if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it 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. 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. V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | try { - V1VolumeAttachment result = apiInstance.deleteVolumeAttachment(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body); + V1VolumeAttachment result = apiInstance.deleteVolumeAttachment(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling StorageV1Api#deleteVolumeAttachment"); @@ -1320,9 +1339,10 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **String**| name of the VolumeAttachment | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] **gracePeriodSeconds** | **Integer**| 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. | [optional] + **ignoreStoreReadErrorWithClusterBreakingPotential** | **Boolean**| if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it | [optional] **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. 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. | [optional] **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] @@ -1338,7 +1358,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -1405,7 +1425,7 @@ This endpoint does not need any parameter. ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -1443,7 +1463,7 @@ public class Example { //BearerToken.setApiKeyPrefix("Token"); StorageV1Api apiInstance = new StorageV1Api(defaultClient); - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). 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. 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. String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. @@ -1472,7 +1492,7 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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. | [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] **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] @@ -1495,7 +1515,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch, application/cbor-seq ### HTTP response details | Status code | Description | Response headers | @@ -1533,7 +1553,7 @@ public class Example { //BearerToken.setApiKeyPrefix("Token"); StorageV1Api apiInstance = new StorageV1Api(defaultClient); - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). 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. 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. String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. @@ -1562,7 +1582,7 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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. | [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] **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] @@ -1585,7 +1605,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch, application/cbor-seq ### HTTP response details | Status code | Description | Response headers | @@ -1628,7 +1648,7 @@ public class Example { String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). String resourceVersion = "resourceVersion_example"; // String | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset String resourceVersionMatch = "resourceVersionMatch_example"; // String | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset Boolean sendInitialEvents = true; // Boolean | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. @@ -1657,7 +1677,7 @@ Name | Type | Description | Notes **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] @@ -1675,7 +1695,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch, application/cbor-seq ### HTTP response details | Status code | Description | Response headers | @@ -1714,7 +1734,7 @@ public class Example { StorageV1Api apiInstance = new StorageV1Api(defaultClient); String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). 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. 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. String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. @@ -1744,7 +1764,7 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **namespace** | **String**| object name and auth scope, such as for teams and projects | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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. | [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] **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] @@ -1767,7 +1787,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch, application/cbor-seq ### HTTP response details | Status code | Description | Response headers | @@ -1805,7 +1825,7 @@ public class Example { //BearerToken.setApiKeyPrefix("Token"); StorageV1Api apiInstance = new StorageV1Api(defaultClient); - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). 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. 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. String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. @@ -1834,7 +1854,7 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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. | [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] **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] @@ -1857,7 +1877,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch, application/cbor-seq ### HTTP response details | Status code | Description | Response headers | @@ -1895,7 +1915,7 @@ public class Example { //BearerToken.setApiKeyPrefix("Token"); StorageV1Api apiInstance = new StorageV1Api(defaultClient); - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). 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. 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. String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. @@ -1924,7 +1944,7 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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. | [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] **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] @@ -1947,7 +1967,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch, application/cbor-seq ### HTTP response details | Status code | Description | Response headers | @@ -1987,7 +2007,7 @@ public class Example { StorageV1Api apiInstance = new StorageV1Api(defaultClient); String name = "name_example"; // String | name of the CSIDriver V1Patch body = new V1Patch(); // V1Patch | - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). 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 fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. @@ -2012,7 +2032,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **String**| name of the CSIDriver | **body** | **V1Patch**| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] @@ -2029,7 +2049,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -2070,7 +2090,7 @@ public class Example { StorageV1Api apiInstance = new StorageV1Api(defaultClient); String name = "name_example"; // String | name of the CSINode V1Patch body = new V1Patch(); // V1Patch | - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). 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 fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. @@ -2095,7 +2115,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **String**| name of the CSINode | **body** | **V1Patch**| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] @@ -2112,7 +2132,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -2154,7 +2174,7 @@ public class Example { String name = "name_example"; // String | name of the CSIStorageCapacity String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects V1Patch body = new V1Patch(); // V1Patch | - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). 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 fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. @@ -2180,7 +2200,7 @@ Name | Type | Description | Notes **name** | **String**| name of the CSIStorageCapacity | **namespace** | **String**| object name and auth scope, such as for teams and projects | **body** | **V1Patch**| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] @@ -2197,7 +2217,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -2238,7 +2258,7 @@ public class Example { StorageV1Api apiInstance = new StorageV1Api(defaultClient); String name = "name_example"; // String | name of the StorageClass V1Patch body = new V1Patch(); // V1Patch | - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). 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 fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. @@ -2263,7 +2283,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **String**| name of the StorageClass | **body** | **V1Patch**| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] @@ -2280,7 +2300,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -2321,7 +2341,7 @@ public class Example { StorageV1Api apiInstance = new StorageV1Api(defaultClient); String name = "name_example"; // String | name of the VolumeAttachment V1Patch body = new V1Patch(); // V1Patch | - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). 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 fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. @@ -2346,7 +2366,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **String**| name of the VolumeAttachment | **body** | **V1Patch**| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] @@ -2363,7 +2383,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -2404,7 +2424,7 @@ public class Example { StorageV1Api apiInstance = new StorageV1Api(defaultClient); String name = "name_example"; // String | name of the VolumeAttachment V1Patch body = new V1Patch(); // V1Patch | - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). 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 fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. @@ -2429,7 +2449,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **String**| name of the VolumeAttachment | **body** | **V1Patch**| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] @@ -2446,7 +2466,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -2486,7 +2506,7 @@ public class Example { StorageV1Api apiInstance = new StorageV1Api(defaultClient); String name = "name_example"; // String | name of the CSIDriver - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). try { V1CSIDriver result = apiInstance.readCSIDriver(name, pretty); System.out.println(result); @@ -2506,7 +2526,7 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **String**| name of the CSIDriver | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] ### Return type @@ -2519,7 +2539,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -2558,7 +2578,7 @@ public class Example { StorageV1Api apiInstance = new StorageV1Api(defaultClient); String name = "name_example"; // String | name of the CSINode - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). try { V1CSINode result = apiInstance.readCSINode(name, pretty); System.out.println(result); @@ -2578,7 +2598,7 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **String**| name of the CSINode | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] ### Return type @@ -2591,7 +2611,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -2631,7 +2651,7 @@ public class Example { StorageV1Api apiInstance = new StorageV1Api(defaultClient); String name = "name_example"; // String | name of the CSIStorageCapacity String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). try { V1CSIStorageCapacity result = apiInstance.readNamespacedCSIStorageCapacity(name, namespace, pretty); System.out.println(result); @@ -2652,7 +2672,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **String**| name of the CSIStorageCapacity | **namespace** | **String**| object name and auth scope, such as for teams and projects | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] ### Return type @@ -2665,7 +2685,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -2704,7 +2724,7 @@ public class Example { StorageV1Api apiInstance = new StorageV1Api(defaultClient); String name = "name_example"; // String | name of the StorageClass - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). try { V1StorageClass result = apiInstance.readStorageClass(name, pretty); System.out.println(result); @@ -2724,7 +2744,7 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **String**| name of the StorageClass | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] ### Return type @@ -2737,7 +2757,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -2776,7 +2796,7 @@ public class Example { StorageV1Api apiInstance = new StorageV1Api(defaultClient); String name = "name_example"; // String | name of the VolumeAttachment - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). try { V1VolumeAttachment result = apiInstance.readVolumeAttachment(name, pretty); System.out.println(result); @@ -2796,7 +2816,7 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **String**| name of the VolumeAttachment | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] ### Return type @@ -2809,7 +2829,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -2848,7 +2868,7 @@ public class Example { StorageV1Api apiInstance = new StorageV1Api(defaultClient); String name = "name_example"; // String | name of the VolumeAttachment - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). try { V1VolumeAttachment result = apiInstance.readVolumeAttachmentStatus(name, pretty); System.out.println(result); @@ -2868,7 +2888,7 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **String**| name of the VolumeAttachment | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] ### Return type @@ -2881,7 +2901,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -2921,7 +2941,7 @@ public class Example { StorageV1Api apiInstance = new StorageV1Api(defaultClient); String name = "name_example"; // String | name of the CSIDriver V1CSIDriver body = new V1CSIDriver(); // V1CSIDriver | - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). 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 fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. @@ -2945,7 +2965,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **String**| name of the CSIDriver | **body** | [**V1CSIDriver**](V1CSIDriver.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] @@ -2961,7 +2981,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -3002,7 +3022,7 @@ public class Example { StorageV1Api apiInstance = new StorageV1Api(defaultClient); String name = "name_example"; // String | name of the CSINode V1CSINode body = new V1CSINode(); // V1CSINode | - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). 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 fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. @@ -3026,7 +3046,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **String**| name of the CSINode | **body** | [**V1CSINode**](V1CSINode.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] @@ -3042,7 +3062,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -3084,7 +3104,7 @@ public class Example { String name = "name_example"; // String | name of the CSIStorageCapacity String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects V1CSIStorageCapacity body = new V1CSIStorageCapacity(); // V1CSIStorageCapacity | - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). 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 fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. @@ -3109,7 +3129,7 @@ Name | Type | Description | Notes **name** | **String**| name of the CSIStorageCapacity | **namespace** | **String**| object name and auth scope, such as for teams and projects | **body** | [**V1CSIStorageCapacity**](V1CSIStorageCapacity.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] @@ -3125,7 +3145,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -3166,7 +3186,7 @@ public class Example { StorageV1Api apiInstance = new StorageV1Api(defaultClient); String name = "name_example"; // String | name of the StorageClass V1StorageClass body = new V1StorageClass(); // V1StorageClass | - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). 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 fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. @@ -3190,7 +3210,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **String**| name of the StorageClass | **body** | [**V1StorageClass**](V1StorageClass.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] @@ -3206,7 +3226,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -3247,7 +3267,7 @@ public class Example { StorageV1Api apiInstance = new StorageV1Api(defaultClient); String name = "name_example"; // String | name of the VolumeAttachment V1VolumeAttachment body = new V1VolumeAttachment(); // V1VolumeAttachment | - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). 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 fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. @@ -3271,7 +3291,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **String**| name of the VolumeAttachment | **body** | [**V1VolumeAttachment**](V1VolumeAttachment.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] @@ -3287,7 +3307,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -3328,7 +3348,7 @@ public class Example { StorageV1Api apiInstance = new StorageV1Api(defaultClient); String name = "name_example"; // String | name of the VolumeAttachment V1VolumeAttachment body = new V1VolumeAttachment(); // V1VolumeAttachment | - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). 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 fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. @@ -3352,7 +3372,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **String**| name of the VolumeAttachment | **body** | [**V1VolumeAttachment**](V1VolumeAttachment.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] @@ -3368,7 +3388,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | diff --git a/kubernetes/docs/StorageV1alpha1Api.md b/kubernetes/docs/StorageV1alpha1Api.md new file mode 100644 index 0000000000..4a704f6eab --- /dev/null +++ b/kubernetes/docs/StorageV1alpha1Api.md @@ -0,0 +1,671 @@ +# StorageV1alpha1Api + +All URIs are relative to *http://localhost* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**createVolumeAttributesClass**](StorageV1alpha1Api.md#createVolumeAttributesClass) | **POST** /apis/storage.k8s.io/v1alpha1/volumeattributesclasses | +[**deleteCollectionVolumeAttributesClass**](StorageV1alpha1Api.md#deleteCollectionVolumeAttributesClass) | **DELETE** /apis/storage.k8s.io/v1alpha1/volumeattributesclasses | +[**deleteVolumeAttributesClass**](StorageV1alpha1Api.md#deleteVolumeAttributesClass) | **DELETE** /apis/storage.k8s.io/v1alpha1/volumeattributesclasses/{name} | +[**getAPIResources**](StorageV1alpha1Api.md#getAPIResources) | **GET** /apis/storage.k8s.io/v1alpha1/ | +[**listVolumeAttributesClass**](StorageV1alpha1Api.md#listVolumeAttributesClass) | **GET** /apis/storage.k8s.io/v1alpha1/volumeattributesclasses | +[**patchVolumeAttributesClass**](StorageV1alpha1Api.md#patchVolumeAttributesClass) | **PATCH** /apis/storage.k8s.io/v1alpha1/volumeattributesclasses/{name} | +[**readVolumeAttributesClass**](StorageV1alpha1Api.md#readVolumeAttributesClass) | **GET** /apis/storage.k8s.io/v1alpha1/volumeattributesclasses/{name} | +[**replaceVolumeAttributesClass**](StorageV1alpha1Api.md#replaceVolumeAttributesClass) | **PUT** /apis/storage.k8s.io/v1alpha1/volumeattributesclasses/{name} | + + + +# **createVolumeAttributesClass** +> V1alpha1VolumeAttributesClass createVolumeAttributesClass(body, pretty, dryRun, fieldManager, fieldValidation) + + + +create a VolumeAttributesClass + +### Example +```java +// Import classes: +import io.kubernetes.client.openapi.ApiClient; +import io.kubernetes.client.openapi.ApiException; +import io.kubernetes.client.openapi.Configuration; +import io.kubernetes.client.openapi.auth.*; +import io.kubernetes.client.openapi.models.*; +import io.kubernetes.client.openapi.apis.StorageV1alpha1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + StorageV1alpha1Api apiInstance = new StorageV1alpha1Api(defaultClient); + V1alpha1VolumeAttributesClass body = new V1alpha1VolumeAttributesClass(); // V1alpha1VolumeAttributesClass | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + 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 fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. + try { + V1alpha1VolumeAttributesClass result = apiInstance.createVolumeAttributesClass(body, pretty, dryRun, fieldManager, fieldValidation); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling StorageV1alpha1Api#createVolumeAttributesClass"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | [**V1alpha1VolumeAttributesClass**](V1alpha1VolumeAttributesClass.md)| | + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] + **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] + **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] + +### Return type + +[**V1alpha1VolumeAttributesClass**](V1alpha1VolumeAttributesClass.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + + +# **deleteCollectionVolumeAttributesClass** +> V1Status deleteCollectionVolumeAttributesClass(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body) + + + +delete collection of VolumeAttributesClass + +### Example +```java +// Import classes: +import io.kubernetes.client.openapi.ApiClient; +import io.kubernetes.client.openapi.ApiException; +import io.kubernetes.client.openapi.Configuration; +import io.kubernetes.client.openapi.auth.*; +import io.kubernetes.client.openapi.models.*; +import io.kubernetes.client.openapi.apis.StorageV1alpha1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + StorageV1alpha1Api apiInstance = new StorageV1alpha1Api(defaultClient); + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + 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. + 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. + Integer gracePeriodSeconds = 56; // Integer | 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. + Boolean ignoreStoreReadErrorWithClusterBreakingPotential = true; // Boolean | if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it + String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. + Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + 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. 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. + String resourceVersion = "resourceVersion_example"; // String | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + String resourceVersionMatch = "resourceVersionMatch_example"; // String | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + Boolean sendInitialEvents = true; // Boolean | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | + try { + V1Status result = apiInstance.deleteCollectionVolumeAttributesClass(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling StorageV1alpha1Api#deleteCollectionVolumeAttributesClass"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] + **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] + **gracePeriodSeconds** | **Integer**| 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. | [optional] + **ignoreStoreReadErrorWithClusterBreakingPotential** | **Boolean**| if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it | [optional] + **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] + **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] + **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. 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. | [optional] + **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] + **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] + **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] + **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] + +### Return type + +[**V1Status**](V1Status.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + + +# **deleteVolumeAttributesClass** +> V1alpha1VolumeAttributesClass deleteVolumeAttributesClass(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body) + + + +delete a VolumeAttributesClass + +### Example +```java +// Import classes: +import io.kubernetes.client.openapi.ApiClient; +import io.kubernetes.client.openapi.ApiException; +import io.kubernetes.client.openapi.Configuration; +import io.kubernetes.client.openapi.auth.*; +import io.kubernetes.client.openapi.models.*; +import io.kubernetes.client.openapi.apis.StorageV1alpha1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + StorageV1alpha1Api apiInstance = new StorageV1alpha1Api(defaultClient); + String name = "name_example"; // String | name of the VolumeAttributesClass + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + 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 + Integer gracePeriodSeconds = 56; // Integer | 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. + Boolean ignoreStoreReadErrorWithClusterBreakingPotential = true; // Boolean | if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it + 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. 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. + V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | + try { + V1alpha1VolumeAttributesClass result = apiInstance.deleteVolumeAttributesClass(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling StorageV1alpha1Api#deleteVolumeAttributesClass"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **String**| name of the VolumeAttributesClass | + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] + **gracePeriodSeconds** | **Integer**| 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. | [optional] + **ignoreStoreReadErrorWithClusterBreakingPotential** | **Boolean**| if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it | [optional] + **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. 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. | [optional] + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] + +### Return type + +[**V1alpha1VolumeAttributesClass**](V1alpha1VolumeAttributesClass.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + + +# **getAPIResources** +> V1APIResourceList getAPIResources() + + + +get available resources + +### Example +```java +// Import classes: +import io.kubernetes.client.openapi.ApiClient; +import io.kubernetes.client.openapi.ApiException; +import io.kubernetes.client.openapi.Configuration; +import io.kubernetes.client.openapi.auth.*; +import io.kubernetes.client.openapi.models.*; +import io.kubernetes.client.openapi.apis.StorageV1alpha1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + StorageV1alpha1Api apiInstance = new StorageV1alpha1Api(defaultClient); + try { + V1APIResourceList result = apiInstance.getAPIResources(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling StorageV1alpha1Api#getAPIResources"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters +This endpoint does not need any parameter. + +### Return type + +[**V1APIResourceList**](V1APIResourceList.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + + +# **listVolumeAttributesClass** +> V1alpha1VolumeAttributesClassList listVolumeAttributesClass(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch) + + + +list or watch objects of kind VolumeAttributesClass + +### Example +```java +// Import classes: +import io.kubernetes.client.openapi.ApiClient; +import io.kubernetes.client.openapi.ApiException; +import io.kubernetes.client.openapi.Configuration; +import io.kubernetes.client.openapi.auth.*; +import io.kubernetes.client.openapi.models.*; +import io.kubernetes.client.openapi.apis.StorageV1alpha1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + StorageV1alpha1Api apiInstance = new StorageV1alpha1Api(defaultClient); + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + 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. + 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. + String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. + String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. + Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + String resourceVersion = "resourceVersion_example"; // String | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + String resourceVersionMatch = "resourceVersionMatch_example"; // String | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + Boolean sendInitialEvents = true; // Boolean | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + 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. Specify resourceVersion. + try { + V1alpha1VolumeAttributesClassList result = apiInstance.listVolumeAttributesClass(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling StorageV1alpha1Api#listVolumeAttributesClass"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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. | [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] + **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] + **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] + **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] + **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] + **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] + **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] + **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + +### Return type + +[**V1alpha1VolumeAttributesClassList**](V1alpha1VolumeAttributesClassList.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch, application/cbor-seq + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + + +# **patchVolumeAttributesClass** +> V1alpha1VolumeAttributesClass patchVolumeAttributesClass(name, body, pretty, dryRun, fieldManager, fieldValidation, force) + + + +partially update the specified VolumeAttributesClass + +### Example +```java +// Import classes: +import io.kubernetes.client.openapi.ApiClient; +import io.kubernetes.client.openapi.ApiException; +import io.kubernetes.client.openapi.Configuration; +import io.kubernetes.client.openapi.auth.*; +import io.kubernetes.client.openapi.models.*; +import io.kubernetes.client.openapi.apis.StorageV1alpha1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + StorageV1alpha1Api apiInstance = new StorageV1alpha1Api(defaultClient); + String name = "name_example"; // String | name of the VolumeAttributesClass + V1Patch body = new V1Patch(); // V1Patch | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + 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 fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). + String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. + Boolean force = true; // Boolean | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. + try { + V1alpha1VolumeAttributesClass result = apiInstance.patchVolumeAttributesClass(name, body, pretty, dryRun, fieldManager, fieldValidation, force); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling StorageV1alpha1Api#patchVolumeAttributesClass"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **String**| name of the VolumeAttributesClass | + **body** | **V1Patch**| | + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] + **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] + **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] + **force** | **Boolean**| Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | [optional] + +### Return type + +[**V1alpha1VolumeAttributesClass**](V1alpha1VolumeAttributesClass.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**401** | Unauthorized | - | + + +# **readVolumeAttributesClass** +> V1alpha1VolumeAttributesClass readVolumeAttributesClass(name, pretty) + + + +read the specified VolumeAttributesClass + +### Example +```java +// Import classes: +import io.kubernetes.client.openapi.ApiClient; +import io.kubernetes.client.openapi.ApiException; +import io.kubernetes.client.openapi.Configuration; +import io.kubernetes.client.openapi.auth.*; +import io.kubernetes.client.openapi.models.*; +import io.kubernetes.client.openapi.apis.StorageV1alpha1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + StorageV1alpha1Api apiInstance = new StorageV1alpha1Api(defaultClient); + String name = "name_example"; // String | name of the VolumeAttributesClass + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + try { + V1alpha1VolumeAttributesClass result = apiInstance.readVolumeAttributesClass(name, pretty); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling StorageV1alpha1Api#readVolumeAttributesClass"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **String**| name of the VolumeAttributesClass | + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] + +### Return type + +[**V1alpha1VolumeAttributesClass**](V1alpha1VolumeAttributesClass.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + + +# **replaceVolumeAttributesClass** +> V1alpha1VolumeAttributesClass replaceVolumeAttributesClass(name, body, pretty, dryRun, fieldManager, fieldValidation) + + + +replace the specified VolumeAttributesClass + +### Example +```java +// Import classes: +import io.kubernetes.client.openapi.ApiClient; +import io.kubernetes.client.openapi.ApiException; +import io.kubernetes.client.openapi.Configuration; +import io.kubernetes.client.openapi.auth.*; +import io.kubernetes.client.openapi.models.*; +import io.kubernetes.client.openapi.apis.StorageV1alpha1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + StorageV1alpha1Api apiInstance = new StorageV1alpha1Api(defaultClient); + String name = "name_example"; // String | name of the VolumeAttributesClass + V1alpha1VolumeAttributesClass body = new V1alpha1VolumeAttributesClass(); // V1alpha1VolumeAttributesClass | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + 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 fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. + try { + V1alpha1VolumeAttributesClass result = apiInstance.replaceVolumeAttributesClass(name, body, pretty, dryRun, fieldManager, fieldValidation); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling StorageV1alpha1Api#replaceVolumeAttributesClass"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **String**| name of the VolumeAttributesClass | + **body** | [**V1alpha1VolumeAttributesClass**](V1alpha1VolumeAttributesClass.md)| | + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] + **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] + **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] + +### Return type + +[**V1alpha1VolumeAttributesClass**](V1alpha1VolumeAttributesClass.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**401** | Unauthorized | - | + diff --git a/kubernetes/docs/StorageV1beta1Api.md b/kubernetes/docs/StorageV1beta1Api.md new file mode 100644 index 0000000000..82b7fe6457 --- /dev/null +++ b/kubernetes/docs/StorageV1beta1Api.md @@ -0,0 +1,671 @@ +# StorageV1beta1Api + +All URIs are relative to *http://localhost* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**createVolumeAttributesClass**](StorageV1beta1Api.md#createVolumeAttributesClass) | **POST** /apis/storage.k8s.io/v1beta1/volumeattributesclasses | +[**deleteCollectionVolumeAttributesClass**](StorageV1beta1Api.md#deleteCollectionVolumeAttributesClass) | **DELETE** /apis/storage.k8s.io/v1beta1/volumeattributesclasses | +[**deleteVolumeAttributesClass**](StorageV1beta1Api.md#deleteVolumeAttributesClass) | **DELETE** /apis/storage.k8s.io/v1beta1/volumeattributesclasses/{name} | +[**getAPIResources**](StorageV1beta1Api.md#getAPIResources) | **GET** /apis/storage.k8s.io/v1beta1/ | +[**listVolumeAttributesClass**](StorageV1beta1Api.md#listVolumeAttributesClass) | **GET** /apis/storage.k8s.io/v1beta1/volumeattributesclasses | +[**patchVolumeAttributesClass**](StorageV1beta1Api.md#patchVolumeAttributesClass) | **PATCH** /apis/storage.k8s.io/v1beta1/volumeattributesclasses/{name} | +[**readVolumeAttributesClass**](StorageV1beta1Api.md#readVolumeAttributesClass) | **GET** /apis/storage.k8s.io/v1beta1/volumeattributesclasses/{name} | +[**replaceVolumeAttributesClass**](StorageV1beta1Api.md#replaceVolumeAttributesClass) | **PUT** /apis/storage.k8s.io/v1beta1/volumeattributesclasses/{name} | + + + +# **createVolumeAttributesClass** +> V1beta1VolumeAttributesClass createVolumeAttributesClass(body, pretty, dryRun, fieldManager, fieldValidation) + + + +create a VolumeAttributesClass + +### Example +```java +// Import classes: +import io.kubernetes.client.openapi.ApiClient; +import io.kubernetes.client.openapi.ApiException; +import io.kubernetes.client.openapi.Configuration; +import io.kubernetes.client.openapi.auth.*; +import io.kubernetes.client.openapi.models.*; +import io.kubernetes.client.openapi.apis.StorageV1beta1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + StorageV1beta1Api apiInstance = new StorageV1beta1Api(defaultClient); + V1beta1VolumeAttributesClass body = new V1beta1VolumeAttributesClass(); // V1beta1VolumeAttributesClass | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + 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 fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. + try { + V1beta1VolumeAttributesClass result = apiInstance.createVolumeAttributesClass(body, pretty, dryRun, fieldManager, fieldValidation); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling StorageV1beta1Api#createVolumeAttributesClass"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | [**V1beta1VolumeAttributesClass**](V1beta1VolumeAttributesClass.md)| | + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] + **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] + **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] + +### Return type + +[**V1beta1VolumeAttributesClass**](V1beta1VolumeAttributesClass.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + + +# **deleteCollectionVolumeAttributesClass** +> V1Status deleteCollectionVolumeAttributesClass(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body) + + + +delete collection of VolumeAttributesClass + +### Example +```java +// Import classes: +import io.kubernetes.client.openapi.ApiClient; +import io.kubernetes.client.openapi.ApiException; +import io.kubernetes.client.openapi.Configuration; +import io.kubernetes.client.openapi.auth.*; +import io.kubernetes.client.openapi.models.*; +import io.kubernetes.client.openapi.apis.StorageV1beta1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + StorageV1beta1Api apiInstance = new StorageV1beta1Api(defaultClient); + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + 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. + 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. + Integer gracePeriodSeconds = 56; // Integer | 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. + Boolean ignoreStoreReadErrorWithClusterBreakingPotential = true; // Boolean | if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it + String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. + Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + 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. 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. + String resourceVersion = "resourceVersion_example"; // String | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + String resourceVersionMatch = "resourceVersionMatch_example"; // String | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + Boolean sendInitialEvents = true; // Boolean | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | + try { + V1Status result = apiInstance.deleteCollectionVolumeAttributesClass(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling StorageV1beta1Api#deleteCollectionVolumeAttributesClass"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] + **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] + **gracePeriodSeconds** | **Integer**| 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. | [optional] + **ignoreStoreReadErrorWithClusterBreakingPotential** | **Boolean**| if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it | [optional] + **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] + **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] + **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. 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. | [optional] + **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] + **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] + **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] + **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] + +### Return type + +[**V1Status**](V1Status.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + + +# **deleteVolumeAttributesClass** +> V1beta1VolumeAttributesClass deleteVolumeAttributesClass(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body) + + + +delete a VolumeAttributesClass + +### Example +```java +// Import classes: +import io.kubernetes.client.openapi.ApiClient; +import io.kubernetes.client.openapi.ApiException; +import io.kubernetes.client.openapi.Configuration; +import io.kubernetes.client.openapi.auth.*; +import io.kubernetes.client.openapi.models.*; +import io.kubernetes.client.openapi.apis.StorageV1beta1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + StorageV1beta1Api apiInstance = new StorageV1beta1Api(defaultClient); + String name = "name_example"; // String | name of the VolumeAttributesClass + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + 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 + Integer gracePeriodSeconds = 56; // Integer | 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. + Boolean ignoreStoreReadErrorWithClusterBreakingPotential = true; // Boolean | if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it + 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. 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. + V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | + try { + V1beta1VolumeAttributesClass result = apiInstance.deleteVolumeAttributesClass(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling StorageV1beta1Api#deleteVolumeAttributesClass"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **String**| name of the VolumeAttributesClass | + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] + **gracePeriodSeconds** | **Integer**| 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. | [optional] + **ignoreStoreReadErrorWithClusterBreakingPotential** | **Boolean**| if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it | [optional] + **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. 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. | [optional] + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] + +### Return type + +[**V1beta1VolumeAttributesClass**](V1beta1VolumeAttributesClass.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + + +# **getAPIResources** +> V1APIResourceList getAPIResources() + + + +get available resources + +### Example +```java +// Import classes: +import io.kubernetes.client.openapi.ApiClient; +import io.kubernetes.client.openapi.ApiException; +import io.kubernetes.client.openapi.Configuration; +import io.kubernetes.client.openapi.auth.*; +import io.kubernetes.client.openapi.models.*; +import io.kubernetes.client.openapi.apis.StorageV1beta1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + StorageV1beta1Api apiInstance = new StorageV1beta1Api(defaultClient); + try { + V1APIResourceList result = apiInstance.getAPIResources(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling StorageV1beta1Api#getAPIResources"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters +This endpoint does not need any parameter. + +### Return type + +[**V1APIResourceList**](V1APIResourceList.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + + +# **listVolumeAttributesClass** +> V1beta1VolumeAttributesClassList listVolumeAttributesClass(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch) + + + +list or watch objects of kind VolumeAttributesClass + +### Example +```java +// Import classes: +import io.kubernetes.client.openapi.ApiClient; +import io.kubernetes.client.openapi.ApiException; +import io.kubernetes.client.openapi.Configuration; +import io.kubernetes.client.openapi.auth.*; +import io.kubernetes.client.openapi.models.*; +import io.kubernetes.client.openapi.apis.StorageV1beta1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + StorageV1beta1Api apiInstance = new StorageV1beta1Api(defaultClient); + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + 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. + 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. + String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. + String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. + Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + String resourceVersion = "resourceVersion_example"; // String | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + String resourceVersionMatch = "resourceVersionMatch_example"; // String | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + Boolean sendInitialEvents = true; // Boolean | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + 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. Specify resourceVersion. + try { + V1beta1VolumeAttributesClassList result = apiInstance.listVolumeAttributesClass(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling StorageV1beta1Api#listVolumeAttributesClass"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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. | [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] + **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] + **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] + **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] + **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] + **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] + **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] + **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + +### Return type + +[**V1beta1VolumeAttributesClassList**](V1beta1VolumeAttributesClassList.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch, application/cbor-seq + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + + +# **patchVolumeAttributesClass** +> V1beta1VolumeAttributesClass patchVolumeAttributesClass(name, body, pretty, dryRun, fieldManager, fieldValidation, force) + + + +partially update the specified VolumeAttributesClass + +### Example +```java +// Import classes: +import io.kubernetes.client.openapi.ApiClient; +import io.kubernetes.client.openapi.ApiException; +import io.kubernetes.client.openapi.Configuration; +import io.kubernetes.client.openapi.auth.*; +import io.kubernetes.client.openapi.models.*; +import io.kubernetes.client.openapi.apis.StorageV1beta1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + StorageV1beta1Api apiInstance = new StorageV1beta1Api(defaultClient); + String name = "name_example"; // String | name of the VolumeAttributesClass + V1Patch body = new V1Patch(); // V1Patch | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + 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 fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). + String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. + Boolean force = true; // Boolean | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. + try { + V1beta1VolumeAttributesClass result = apiInstance.patchVolumeAttributesClass(name, body, pretty, dryRun, fieldManager, fieldValidation, force); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling StorageV1beta1Api#patchVolumeAttributesClass"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **String**| name of the VolumeAttributesClass | + **body** | **V1Patch**| | + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] + **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] + **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] + **force** | **Boolean**| Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | [optional] + +### Return type + +[**V1beta1VolumeAttributesClass**](V1beta1VolumeAttributesClass.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**401** | Unauthorized | - | + + +# **readVolumeAttributesClass** +> V1beta1VolumeAttributesClass readVolumeAttributesClass(name, pretty) + + + +read the specified VolumeAttributesClass + +### Example +```java +// Import classes: +import io.kubernetes.client.openapi.ApiClient; +import io.kubernetes.client.openapi.ApiException; +import io.kubernetes.client.openapi.Configuration; +import io.kubernetes.client.openapi.auth.*; +import io.kubernetes.client.openapi.models.*; +import io.kubernetes.client.openapi.apis.StorageV1beta1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + StorageV1beta1Api apiInstance = new StorageV1beta1Api(defaultClient); + String name = "name_example"; // String | name of the VolumeAttributesClass + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + try { + V1beta1VolumeAttributesClass result = apiInstance.readVolumeAttributesClass(name, pretty); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling StorageV1beta1Api#readVolumeAttributesClass"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **String**| name of the VolumeAttributesClass | + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] + +### Return type + +[**V1beta1VolumeAttributesClass**](V1beta1VolumeAttributesClass.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + + +# **replaceVolumeAttributesClass** +> V1beta1VolumeAttributesClass replaceVolumeAttributesClass(name, body, pretty, dryRun, fieldManager, fieldValidation) + + + +replace the specified VolumeAttributesClass + +### Example +```java +// Import classes: +import io.kubernetes.client.openapi.ApiClient; +import io.kubernetes.client.openapi.ApiException; +import io.kubernetes.client.openapi.Configuration; +import io.kubernetes.client.openapi.auth.*; +import io.kubernetes.client.openapi.models.*; +import io.kubernetes.client.openapi.apis.StorageV1beta1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + StorageV1beta1Api apiInstance = new StorageV1beta1Api(defaultClient); + String name = "name_example"; // String | name of the VolumeAttributesClass + V1beta1VolumeAttributesClass body = new V1beta1VolumeAttributesClass(); // V1beta1VolumeAttributesClass | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + 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 fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. + try { + V1beta1VolumeAttributesClass result = apiInstance.replaceVolumeAttributesClass(name, body, pretty, dryRun, fieldManager, fieldValidation); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling StorageV1beta1Api#replaceVolumeAttributesClass"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **String**| name of the VolumeAttributesClass | + **body** | [**V1beta1VolumeAttributesClass**](V1beta1VolumeAttributesClass.md)| | + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] + **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] + **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] + +### Return type + +[**V1beta1VolumeAttributesClass**](V1beta1VolumeAttributesClass.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**401** | Unauthorized | - | + diff --git a/kubernetes/docs/StoragemigrationApi.md b/kubernetes/docs/StoragemigrationApi.md new file mode 100644 index 0000000000..4f101641ca --- /dev/null +++ b/kubernetes/docs/StoragemigrationApi.md @@ -0,0 +1,75 @@ +# StoragemigrationApi + +All URIs are relative to *http://localhost* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**getAPIGroup**](StoragemigrationApi.md#getAPIGroup) | **GET** /apis/storagemigration.k8s.io/ | + + + +# **getAPIGroup** +> V1APIGroup getAPIGroup() + + + +get information of a group + +### Example +```java +// Import classes: +import io.kubernetes.client.openapi.ApiClient; +import io.kubernetes.client.openapi.ApiException; +import io.kubernetes.client.openapi.Configuration; +import io.kubernetes.client.openapi.auth.*; +import io.kubernetes.client.openapi.models.*; +import io.kubernetes.client.openapi.apis.StoragemigrationApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + StoragemigrationApi apiInstance = new StoragemigrationApi(defaultClient); + try { + V1APIGroup result = apiInstance.getAPIGroup(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling StoragemigrationApi#getAPIGroup"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters +This endpoint does not need any parameter. + +### Return type + +[**V1APIGroup**](V1APIGroup.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + diff --git a/kubernetes/docs/StoragemigrationV1alpha1Api.md b/kubernetes/docs/StoragemigrationV1alpha1Api.md new file mode 100644 index 0000000000..8f709073c1 --- /dev/null +++ b/kubernetes/docs/StoragemigrationV1alpha1Api.md @@ -0,0 +1,910 @@ +# StoragemigrationV1alpha1Api + +All URIs are relative to *http://localhost* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**createStorageVersionMigration**](StoragemigrationV1alpha1Api.md#createStorageVersionMigration) | **POST** /apis/storagemigration.k8s.io/v1alpha1/storageversionmigrations | +[**deleteCollectionStorageVersionMigration**](StoragemigrationV1alpha1Api.md#deleteCollectionStorageVersionMigration) | **DELETE** /apis/storagemigration.k8s.io/v1alpha1/storageversionmigrations | +[**deleteStorageVersionMigration**](StoragemigrationV1alpha1Api.md#deleteStorageVersionMigration) | **DELETE** /apis/storagemigration.k8s.io/v1alpha1/storageversionmigrations/{name} | +[**getAPIResources**](StoragemigrationV1alpha1Api.md#getAPIResources) | **GET** /apis/storagemigration.k8s.io/v1alpha1/ | +[**listStorageVersionMigration**](StoragemigrationV1alpha1Api.md#listStorageVersionMigration) | **GET** /apis/storagemigration.k8s.io/v1alpha1/storageversionmigrations | +[**patchStorageVersionMigration**](StoragemigrationV1alpha1Api.md#patchStorageVersionMigration) | **PATCH** /apis/storagemigration.k8s.io/v1alpha1/storageversionmigrations/{name} | +[**patchStorageVersionMigrationStatus**](StoragemigrationV1alpha1Api.md#patchStorageVersionMigrationStatus) | **PATCH** /apis/storagemigration.k8s.io/v1alpha1/storageversionmigrations/{name}/status | +[**readStorageVersionMigration**](StoragemigrationV1alpha1Api.md#readStorageVersionMigration) | **GET** /apis/storagemigration.k8s.io/v1alpha1/storageversionmigrations/{name} | +[**readStorageVersionMigrationStatus**](StoragemigrationV1alpha1Api.md#readStorageVersionMigrationStatus) | **GET** /apis/storagemigration.k8s.io/v1alpha1/storageversionmigrations/{name}/status | +[**replaceStorageVersionMigration**](StoragemigrationV1alpha1Api.md#replaceStorageVersionMigration) | **PUT** /apis/storagemigration.k8s.io/v1alpha1/storageversionmigrations/{name} | +[**replaceStorageVersionMigrationStatus**](StoragemigrationV1alpha1Api.md#replaceStorageVersionMigrationStatus) | **PUT** /apis/storagemigration.k8s.io/v1alpha1/storageversionmigrations/{name}/status | + + + +# **createStorageVersionMigration** +> V1alpha1StorageVersionMigration createStorageVersionMigration(body, pretty, dryRun, fieldManager, fieldValidation) + + + +create a StorageVersionMigration + +### Example +```java +// Import classes: +import io.kubernetes.client.openapi.ApiClient; +import io.kubernetes.client.openapi.ApiException; +import io.kubernetes.client.openapi.Configuration; +import io.kubernetes.client.openapi.auth.*; +import io.kubernetes.client.openapi.models.*; +import io.kubernetes.client.openapi.apis.StoragemigrationV1alpha1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + StoragemigrationV1alpha1Api apiInstance = new StoragemigrationV1alpha1Api(defaultClient); + V1alpha1StorageVersionMigration body = new V1alpha1StorageVersionMigration(); // V1alpha1StorageVersionMigration | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + 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 fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. + try { + V1alpha1StorageVersionMigration result = apiInstance.createStorageVersionMigration(body, pretty, dryRun, fieldManager, fieldValidation); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling StoragemigrationV1alpha1Api#createStorageVersionMigration"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | [**V1alpha1StorageVersionMigration**](V1alpha1StorageVersionMigration.md)| | + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] + **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] + **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] + +### Return type + +[**V1alpha1StorageVersionMigration**](V1alpha1StorageVersionMigration.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + + +# **deleteCollectionStorageVersionMigration** +> V1Status deleteCollectionStorageVersionMigration(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body) + + + +delete collection of StorageVersionMigration + +### Example +```java +// Import classes: +import io.kubernetes.client.openapi.ApiClient; +import io.kubernetes.client.openapi.ApiException; +import io.kubernetes.client.openapi.Configuration; +import io.kubernetes.client.openapi.auth.*; +import io.kubernetes.client.openapi.models.*; +import io.kubernetes.client.openapi.apis.StoragemigrationV1alpha1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + StoragemigrationV1alpha1Api apiInstance = new StoragemigrationV1alpha1Api(defaultClient); + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + 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. + 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. + Integer gracePeriodSeconds = 56; // Integer | 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. + Boolean ignoreStoreReadErrorWithClusterBreakingPotential = true; // Boolean | if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it + String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. + Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + 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. 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. + String resourceVersion = "resourceVersion_example"; // String | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + String resourceVersionMatch = "resourceVersionMatch_example"; // String | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + Boolean sendInitialEvents = true; // Boolean | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | + try { + V1Status result = apiInstance.deleteCollectionStorageVersionMigration(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling StoragemigrationV1alpha1Api#deleteCollectionStorageVersionMigration"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] + **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] + **gracePeriodSeconds** | **Integer**| 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. | [optional] + **ignoreStoreReadErrorWithClusterBreakingPotential** | **Boolean**| if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it | [optional] + **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] + **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] + **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. 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. | [optional] + **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] + **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] + **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] + **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] + +### Return type + +[**V1Status**](V1Status.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + + +# **deleteStorageVersionMigration** +> V1Status deleteStorageVersionMigration(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body) + + + +delete a StorageVersionMigration + +### Example +```java +// Import classes: +import io.kubernetes.client.openapi.ApiClient; +import io.kubernetes.client.openapi.ApiException; +import io.kubernetes.client.openapi.Configuration; +import io.kubernetes.client.openapi.auth.*; +import io.kubernetes.client.openapi.models.*; +import io.kubernetes.client.openapi.apis.StoragemigrationV1alpha1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + StoragemigrationV1alpha1Api apiInstance = new StoragemigrationV1alpha1Api(defaultClient); + String name = "name_example"; // String | name of the StorageVersionMigration + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + 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 + Integer gracePeriodSeconds = 56; // Integer | 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. + Boolean ignoreStoreReadErrorWithClusterBreakingPotential = true; // Boolean | if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it + 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. 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. + V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | + try { + V1Status result = apiInstance.deleteStorageVersionMigration(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling StoragemigrationV1alpha1Api#deleteStorageVersionMigration"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **String**| name of the StorageVersionMigration | + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] + **gracePeriodSeconds** | **Integer**| 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. | [optional] + **ignoreStoreReadErrorWithClusterBreakingPotential** | **Boolean**| if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it | [optional] + **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. 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. | [optional] + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] + +### Return type + +[**V1Status**](V1Status.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + + +# **getAPIResources** +> V1APIResourceList getAPIResources() + + + +get available resources + +### Example +```java +// Import classes: +import io.kubernetes.client.openapi.ApiClient; +import io.kubernetes.client.openapi.ApiException; +import io.kubernetes.client.openapi.Configuration; +import io.kubernetes.client.openapi.auth.*; +import io.kubernetes.client.openapi.models.*; +import io.kubernetes.client.openapi.apis.StoragemigrationV1alpha1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + StoragemigrationV1alpha1Api apiInstance = new StoragemigrationV1alpha1Api(defaultClient); + try { + V1APIResourceList result = apiInstance.getAPIResources(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling StoragemigrationV1alpha1Api#getAPIResources"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters +This endpoint does not need any parameter. + +### Return type + +[**V1APIResourceList**](V1APIResourceList.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + + +# **listStorageVersionMigration** +> V1alpha1StorageVersionMigrationList listStorageVersionMigration(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch) + + + +list or watch objects of kind StorageVersionMigration + +### Example +```java +// Import classes: +import io.kubernetes.client.openapi.ApiClient; +import io.kubernetes.client.openapi.ApiException; +import io.kubernetes.client.openapi.Configuration; +import io.kubernetes.client.openapi.auth.*; +import io.kubernetes.client.openapi.models.*; +import io.kubernetes.client.openapi.apis.StoragemigrationV1alpha1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + StoragemigrationV1alpha1Api apiInstance = new StoragemigrationV1alpha1Api(defaultClient); + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + 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. + 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. + String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. + String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. + Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + String resourceVersion = "resourceVersion_example"; // String | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + String resourceVersionMatch = "resourceVersionMatch_example"; // String | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + Boolean sendInitialEvents = true; // Boolean | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + 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. Specify resourceVersion. + try { + V1alpha1StorageVersionMigrationList result = apiInstance.listStorageVersionMigration(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling StoragemigrationV1alpha1Api#listStorageVersionMigration"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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. | [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] + **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] + **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] + **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] + **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] + **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] + **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] + **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + +### Return type + +[**V1alpha1StorageVersionMigrationList**](V1alpha1StorageVersionMigrationList.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch, application/cbor-seq + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + + +# **patchStorageVersionMigration** +> V1alpha1StorageVersionMigration patchStorageVersionMigration(name, body, pretty, dryRun, fieldManager, fieldValidation, force) + + + +partially update the specified StorageVersionMigration + +### Example +```java +// Import classes: +import io.kubernetes.client.openapi.ApiClient; +import io.kubernetes.client.openapi.ApiException; +import io.kubernetes.client.openapi.Configuration; +import io.kubernetes.client.openapi.auth.*; +import io.kubernetes.client.openapi.models.*; +import io.kubernetes.client.openapi.apis.StoragemigrationV1alpha1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + StoragemigrationV1alpha1Api apiInstance = new StoragemigrationV1alpha1Api(defaultClient); + String name = "name_example"; // String | name of the StorageVersionMigration + V1Patch body = new V1Patch(); // V1Patch | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + 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 fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). + String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. + Boolean force = true; // Boolean | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. + try { + V1alpha1StorageVersionMigration result = apiInstance.patchStorageVersionMigration(name, body, pretty, dryRun, fieldManager, fieldValidation, force); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling StoragemigrationV1alpha1Api#patchStorageVersionMigration"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **String**| name of the StorageVersionMigration | + **body** | **V1Patch**| | + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] + **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] + **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] + **force** | **Boolean**| Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | [optional] + +### Return type + +[**V1alpha1StorageVersionMigration**](V1alpha1StorageVersionMigration.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**401** | Unauthorized | - | + + +# **patchStorageVersionMigrationStatus** +> V1alpha1StorageVersionMigration patchStorageVersionMigrationStatus(name, body, pretty, dryRun, fieldManager, fieldValidation, force) + + + +partially update status of the specified StorageVersionMigration + +### Example +```java +// Import classes: +import io.kubernetes.client.openapi.ApiClient; +import io.kubernetes.client.openapi.ApiException; +import io.kubernetes.client.openapi.Configuration; +import io.kubernetes.client.openapi.auth.*; +import io.kubernetes.client.openapi.models.*; +import io.kubernetes.client.openapi.apis.StoragemigrationV1alpha1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + StoragemigrationV1alpha1Api apiInstance = new StoragemigrationV1alpha1Api(defaultClient); + String name = "name_example"; // String | name of the StorageVersionMigration + V1Patch body = new V1Patch(); // V1Patch | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + 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 fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). + String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. + Boolean force = true; // Boolean | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. + try { + V1alpha1StorageVersionMigration result = apiInstance.patchStorageVersionMigrationStatus(name, body, pretty, dryRun, fieldManager, fieldValidation, force); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling StoragemigrationV1alpha1Api#patchStorageVersionMigrationStatus"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **String**| name of the StorageVersionMigration | + **body** | **V1Patch**| | + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] + **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] + **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] + **force** | **Boolean**| Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | [optional] + +### Return type + +[**V1alpha1StorageVersionMigration**](V1alpha1StorageVersionMigration.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**401** | Unauthorized | - | + + +# **readStorageVersionMigration** +> V1alpha1StorageVersionMigration readStorageVersionMigration(name, pretty) + + + +read the specified StorageVersionMigration + +### Example +```java +// Import classes: +import io.kubernetes.client.openapi.ApiClient; +import io.kubernetes.client.openapi.ApiException; +import io.kubernetes.client.openapi.Configuration; +import io.kubernetes.client.openapi.auth.*; +import io.kubernetes.client.openapi.models.*; +import io.kubernetes.client.openapi.apis.StoragemigrationV1alpha1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + StoragemigrationV1alpha1Api apiInstance = new StoragemigrationV1alpha1Api(defaultClient); + String name = "name_example"; // String | name of the StorageVersionMigration + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + try { + V1alpha1StorageVersionMigration result = apiInstance.readStorageVersionMigration(name, pretty); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling StoragemigrationV1alpha1Api#readStorageVersionMigration"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **String**| name of the StorageVersionMigration | + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] + +### Return type + +[**V1alpha1StorageVersionMigration**](V1alpha1StorageVersionMigration.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + + +# **readStorageVersionMigrationStatus** +> V1alpha1StorageVersionMigration readStorageVersionMigrationStatus(name, pretty) + + + +read status of the specified StorageVersionMigration + +### Example +```java +// Import classes: +import io.kubernetes.client.openapi.ApiClient; +import io.kubernetes.client.openapi.ApiException; +import io.kubernetes.client.openapi.Configuration; +import io.kubernetes.client.openapi.auth.*; +import io.kubernetes.client.openapi.models.*; +import io.kubernetes.client.openapi.apis.StoragemigrationV1alpha1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + StoragemigrationV1alpha1Api apiInstance = new StoragemigrationV1alpha1Api(defaultClient); + String name = "name_example"; // String | name of the StorageVersionMigration + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + try { + V1alpha1StorageVersionMigration result = apiInstance.readStorageVersionMigrationStatus(name, pretty); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling StoragemigrationV1alpha1Api#readStorageVersionMigrationStatus"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **String**| name of the StorageVersionMigration | + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] + +### Return type + +[**V1alpha1StorageVersionMigration**](V1alpha1StorageVersionMigration.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + + +# **replaceStorageVersionMigration** +> V1alpha1StorageVersionMigration replaceStorageVersionMigration(name, body, pretty, dryRun, fieldManager, fieldValidation) + + + +replace the specified StorageVersionMigration + +### Example +```java +// Import classes: +import io.kubernetes.client.openapi.ApiClient; +import io.kubernetes.client.openapi.ApiException; +import io.kubernetes.client.openapi.Configuration; +import io.kubernetes.client.openapi.auth.*; +import io.kubernetes.client.openapi.models.*; +import io.kubernetes.client.openapi.apis.StoragemigrationV1alpha1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + StoragemigrationV1alpha1Api apiInstance = new StoragemigrationV1alpha1Api(defaultClient); + String name = "name_example"; // String | name of the StorageVersionMigration + V1alpha1StorageVersionMigration body = new V1alpha1StorageVersionMigration(); // V1alpha1StorageVersionMigration | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + 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 fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. + try { + V1alpha1StorageVersionMigration result = apiInstance.replaceStorageVersionMigration(name, body, pretty, dryRun, fieldManager, fieldValidation); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling StoragemigrationV1alpha1Api#replaceStorageVersionMigration"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **String**| name of the StorageVersionMigration | + **body** | [**V1alpha1StorageVersionMigration**](V1alpha1StorageVersionMigration.md)| | + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] + **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] + **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] + +### Return type + +[**V1alpha1StorageVersionMigration**](V1alpha1StorageVersionMigration.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**401** | Unauthorized | - | + + +# **replaceStorageVersionMigrationStatus** +> V1alpha1StorageVersionMigration replaceStorageVersionMigrationStatus(name, body, pretty, dryRun, fieldManager, fieldValidation) + + + +replace status of the specified StorageVersionMigration + +### Example +```java +// Import classes: +import io.kubernetes.client.openapi.ApiClient; +import io.kubernetes.client.openapi.ApiException; +import io.kubernetes.client.openapi.Configuration; +import io.kubernetes.client.openapi.auth.*; +import io.kubernetes.client.openapi.models.*; +import io.kubernetes.client.openapi.apis.StoragemigrationV1alpha1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + StoragemigrationV1alpha1Api apiInstance = new StoragemigrationV1alpha1Api(defaultClient); + String name = "name_example"; // String | name of the StorageVersionMigration + V1alpha1StorageVersionMigration body = new V1alpha1StorageVersionMigration(); // V1alpha1StorageVersionMigration | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + 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 fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. + try { + V1alpha1StorageVersionMigration result = apiInstance.replaceStorageVersionMigrationStatus(name, body, pretty, dryRun, fieldManager, fieldValidation); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling StoragemigrationV1alpha1Api#replaceStorageVersionMigrationStatus"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **String**| name of the StorageVersionMigration | + **body** | [**V1alpha1StorageVersionMigration**](V1alpha1StorageVersionMigration.md)| | + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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] + **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] + **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] + +### Return type + +[**V1alpha1StorageVersionMigration**](V1alpha1StorageVersionMigration.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**401** | Unauthorized | - | + diff --git a/kubernetes/docs/V1APIServiceSpec.md b/kubernetes/docs/V1APIServiceSpec.md index dbdd48834d..5ee6588847 100644 --- a/kubernetes/docs/V1APIServiceSpec.md +++ b/kubernetes/docs/V1APIServiceSpec.md @@ -9,7 +9,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **caBundle** | **byte[]** | 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. | [optional] **group** | **String** | Group is the API group name this server hosts | [optional] -**groupPriorityMinimum** | **Integer** | GroupPriorityMininum 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 GroupPriorityMininum 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 | +**groupPriorityMinimum** | **Integer** | 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 | **insecureSkipTLSVerify** | **Boolean** | InsecureSkipTLSVerify disables TLS certificate verification when communicating with this server. This is strongly discouraged. You should use the CABundle instead. | [optional] **service** | [**ApiregistrationV1ServiceReference**](ApiregistrationV1ServiceReference.md) | | [optional] **version** | **String** | Version is the API version this server hosts. For example, \"v1\" | [optional] diff --git a/kubernetes/docs/V1AppArmorProfile.md b/kubernetes/docs/V1AppArmorProfile.md new file mode 100644 index 0000000000..6ed6a317a9 --- /dev/null +++ b/kubernetes/docs/V1AppArmorProfile.md @@ -0,0 +1,14 @@ + + +# V1AppArmorProfile + +AppArmorProfile defines a pod or container's AppArmor settings. +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**localhostProfile** | **String** | 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\". | [optional] +**type** | **String** | 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. | + + + diff --git a/kubernetes/docs/V1AuditAnnotation.md b/kubernetes/docs/V1AuditAnnotation.md new file mode 100644 index 0000000000..60168c00a2 --- /dev/null +++ b/kubernetes/docs/V1AuditAnnotation.md @@ -0,0 +1,14 @@ + + +# V1AuditAnnotation + +AuditAnnotation describes how to produce an audit annotation for an API request. +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**key** | **String** | 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. | +**valueExpression** | **String** | 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. | + + + diff --git a/kubernetes/docs/V1Binding.md b/kubernetes/docs/V1Binding.md index ebb4cd7542..f9d302c3d2 100644 --- a/kubernetes/docs/V1Binding.md +++ b/kubernetes/docs/V1Binding.md @@ -2,7 +2,7 @@ # V1Binding -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. +Binding ties one object to another; for example, a pod is bound to a node by a scheduler. ## Properties Name | Type | Description | Notes diff --git a/kubernetes/docs/V1CSIDriverSpec.md b/kubernetes/docs/V1CSIDriverSpec.md index c6a60759a9..3e6851cb7d 100644 --- a/kubernetes/docs/V1CSIDriverSpec.md +++ b/kubernetes/docs/V1CSIDriverSpec.md @@ -8,8 +8,9 @@ CSIDriverSpec is the specification of a CSIDriver. Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **attachRequired** | **Boolean** | 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. | [optional] -**fsGroupPolicy** | **String** | 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 is immutable. 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. | [optional] -**podInfoOnMount** | **Boolean** | 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 VolumeConext 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 is immutable. | [optional] +**fsGroupPolicy** | **String** | 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. | [optional] +**nodeAllocatableUpdatePeriodSeconds** | **Long** | nodeAllocatableUpdatePeriodSeconds specifies the interval between periodic updates of the CSINode allocatable capacity for this driver. When set, both periodic updates and updates triggered by capacity-related failures are enabled. If not set, no updates occur (neither periodic nor upon detecting capacity-related failures), and the allocatable.count remains static. The minimum allowed value for this field is 10 seconds. This is an alpha feature and requires the MutableCSINodeAllocatableCount feature gate to be enabled. This field is mutable. | [optional] +**podInfoOnMount** | **Boolean** | 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. | [optional] **requiresRepublish** | **Boolean** | 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. | [optional] **seLinuxMount** | **Boolean** | 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\". | [optional] **storageCapacity** | **Boolean** | 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. | [optional] diff --git a/kubernetes/docs/V1CSIPersistentVolumeSource.md b/kubernetes/docs/V1CSIPersistentVolumeSource.md index ab851acd78..1fe593c2a6 100644 --- a/kubernetes/docs/V1CSIPersistentVolumeSource.md +++ b/kubernetes/docs/V1CSIPersistentVolumeSource.md @@ -2,7 +2,7 @@ # V1CSIPersistentVolumeSource -Represents storage that is managed by an external CSI volume driver (Beta feature) +Represents storage that is managed by an external CSI volume driver ## Properties Name | Type | Description | Notes diff --git a/kubernetes/docs/V1ClaimSource.md b/kubernetes/docs/V1ClaimSource.md deleted file mode 100644 index 6255ee212c..0000000000 --- a/kubernetes/docs/V1ClaimSource.md +++ /dev/null @@ -1,14 +0,0 @@ - - -# V1ClaimSource - -ClaimSource describes a reference to a ResourceClaim. Exactly one of these fields should be set. Consumers of this type must treat an empty object as if it has an unknown value. -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**resourceClaimName** | **String** | ResourceClaimName is the name of a ResourceClaim object in the same namespace as this pod. | [optional] -**resourceClaimTemplateName** | **String** | 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. | [optional] - - - diff --git a/kubernetes/docs/V1ClusterRoleBinding.md b/kubernetes/docs/V1ClusterRoleBinding.md index 66e6578de3..fdabeaeb65 100644 --- a/kubernetes/docs/V1ClusterRoleBinding.md +++ b/kubernetes/docs/V1ClusterRoleBinding.md @@ -11,7 +11,7 @@ Name | Type | Description | Notes **kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] **metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] **roleRef** | [**V1RoleRef**](V1RoleRef.md) | | -**subjects** | [**List<V1Subject>**](V1Subject.md) | Subjects holds references to the objects the role applies to. | [optional] +**subjects** | [**List<RbacV1Subject>**](RbacV1Subject.md) | Subjects holds references to the objects the role applies to. | [optional] ## Implemented Interfaces diff --git a/kubernetes/docs/V1ClusterTrustBundleProjection.md b/kubernetes/docs/V1ClusterTrustBundleProjection.md new file mode 100644 index 0000000000..17d6e6250c --- /dev/null +++ b/kubernetes/docs/V1ClusterTrustBundleProjection.md @@ -0,0 +1,17 @@ + + +# V1ClusterTrustBundleProjection + +ClusterTrustBundleProjection describes how to select a set of ClusterTrustBundle objects and project their contents into the pod filesystem. +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**labelSelector** | [**V1LabelSelector**](V1LabelSelector.md) | | [optional] +**name** | **String** | Select a single ClusterTrustBundle by object name. Mutually-exclusive with signerName and labelSelector. | [optional] +**optional** | **Boolean** | 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. | [optional] +**path** | **String** | Relative path from the volume root to write the bundle. | +**signerName** | **String** | Select all ClusterTrustBundles that match this signer name. Mutually-exclusive with name. The contents of all selected ClusterTrustBundles will be unified and deduplicated. | [optional] + + + diff --git a/kubernetes/docs/V1ConfigMapEnvSource.md b/kubernetes/docs/V1ConfigMapEnvSource.md index 90a7052a62..340fe9ac88 100644 --- a/kubernetes/docs/V1ConfigMapEnvSource.md +++ b/kubernetes/docs/V1ConfigMapEnvSource.md @@ -7,7 +7,7 @@ ConfigMapEnvSource selects a ConfigMap to populate the environment variables wit Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**name** | **String** | Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names | [optional] +**name** | **String** | 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 | [optional] **optional** | **Boolean** | Specify whether the ConfigMap must be defined | [optional] diff --git a/kubernetes/docs/V1ConfigMapKeySelector.md b/kubernetes/docs/V1ConfigMapKeySelector.md index b77f8144ca..21e2495c41 100644 --- a/kubernetes/docs/V1ConfigMapKeySelector.md +++ b/kubernetes/docs/V1ConfigMapKeySelector.md @@ -8,7 +8,7 @@ Selects a key from a ConfigMap. Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **key** | **String** | The key to select. | -**name** | **String** | Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names | [optional] +**name** | **String** | 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 | [optional] **optional** | **Boolean** | Specify whether the ConfigMap or its key must be defined | [optional] diff --git a/kubernetes/docs/V1ConfigMapProjection.md b/kubernetes/docs/V1ConfigMapProjection.md index bf2873dcb3..28020c4ba6 100644 --- a/kubernetes/docs/V1ConfigMapProjection.md +++ b/kubernetes/docs/V1ConfigMapProjection.md @@ -8,7 +8,7 @@ Adapts a ConfigMap into a projected volume. The contents of the target ConfigMa Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **items** | [**List<V1KeyToPath>**](V1KeyToPath.md) | 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 '..'. | [optional] -**name** | **String** | Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names | [optional] +**name** | **String** | 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 | [optional] **optional** | **Boolean** | optional specify whether the ConfigMap or its keys must be defined | [optional] diff --git a/kubernetes/docs/V1ConfigMapVolumeSource.md b/kubernetes/docs/V1ConfigMapVolumeSource.md index 6a50941ff9..d029b423f0 100644 --- a/kubernetes/docs/V1ConfigMapVolumeSource.md +++ b/kubernetes/docs/V1ConfigMapVolumeSource.md @@ -9,7 +9,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **defaultMode** | **Integer** | 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. | [optional] **items** | [**List<V1KeyToPath>**](V1KeyToPath.md) | 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 '..'. | [optional] -**name** | **String** | Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names | [optional] +**name** | **String** | 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 | [optional] **optional** | **Boolean** | optional specify whether the ConfigMap or its keys must be defined | [optional] diff --git a/kubernetes/docs/V1ContainerStatus.md b/kubernetes/docs/V1ContainerStatus.md index 181c0deb0e..439ecc6b35 100644 --- a/kubernetes/docs/V1ContainerStatus.md +++ b/kubernetes/docs/V1ContainerStatus.md @@ -8,6 +8,7 @@ ContainerStatus contains details for the current status of this container. Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **allocatedResources** | [**Map<String, Quantity>**](Quantity.md) | 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. | [optional] +**allocatedResourcesStatus** | [**List<V1ResourceStatus>**](V1ResourceStatus.md) | AllocatedResourcesStatus represents the status of various resources allocated for this Pod. | [optional] **containerID** | **String** | ContainerID is the ID of the container in the format '<type>://<container_id>'. Where type is a container runtime identifier, returned from Version call of CRI API (for example \"containerd\"). | [optional] **image** | **String** | 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. | **imageID** | **String** | 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. | @@ -18,6 +19,9 @@ Name | Type | Description | Notes **restartCount** | **Integer** | 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. | **started** | **Boolean** | 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. | [optional] **state** | [**V1ContainerState**](V1ContainerState.md) | | [optional] +**stopSignal** | **String** | StopSignal reports the effective stop signal for this container | [optional] +**user** | [**V1ContainerUser**](V1ContainerUser.md) | | [optional] +**volumeMounts** | [**List<V1VolumeMountStatus>**](V1VolumeMountStatus.md) | Status of volume mounts. | [optional] diff --git a/kubernetes/docs/V1ContainerUser.md b/kubernetes/docs/V1ContainerUser.md new file mode 100644 index 0000000000..16c57582d6 --- /dev/null +++ b/kubernetes/docs/V1ContainerUser.md @@ -0,0 +1,13 @@ + + +# V1ContainerUser + +ContainerUser represents user identity information +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**linux** | [**V1LinuxContainerUser**](V1LinuxContainerUser.md) | | [optional] + + + diff --git a/kubernetes/docs/V1CustomResourceDefinitionVersion.md b/kubernetes/docs/V1CustomResourceDefinitionVersion.md index b8865f0427..341e968553 100644 --- a/kubernetes/docs/V1CustomResourceDefinitionVersion.md +++ b/kubernetes/docs/V1CustomResourceDefinitionVersion.md @@ -12,6 +12,7 @@ Name | Type | Description | Notes **deprecationWarning** | **String** | 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. | [optional] **name** | **String** | name is the version name, e.g. “v1”, “v2beta1”, etc. The custom resources are served under this version at `/apis/<group>/<version>/...` if `served` is true. | **schema** | [**V1CustomResourceValidation**](V1CustomResourceValidation.md) | | [optional] +**selectableFields** | [**List<V1SelectableField>**](V1SelectableField.md) | 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 | [optional] **served** | **Boolean** | served is a flag enabling/disabling this version from being served via REST APIs | **storage** | **Boolean** | storage indicates this version should be used when persisting custom resources to storage. There must be exactly one version with storage=true. | **subresources** | [**V1CustomResourceSubresources**](V1CustomResourceSubresources.md) | | [optional] diff --git a/kubernetes/docs/V1DeleteOptions.md b/kubernetes/docs/V1DeleteOptions.md index 0e332b4eaf..b956761012 100644 --- a/kubernetes/docs/V1DeleteOptions.md +++ b/kubernetes/docs/V1DeleteOptions.md @@ -10,6 +10,7 @@ Name | Type | Description | Notes **apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] **dryRun** | **List<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] **gracePeriodSeconds** | **Long** | 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. | [optional] +**ignoreStoreReadErrorWithClusterBreakingPotential** | **Boolean** | if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it | [optional] **kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] **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] **preconditions** | [**V1Preconditions**](V1Preconditions.md) | | [optional] diff --git a/kubernetes/docs/V1DeploymentStatus.md b/kubernetes/docs/V1DeploymentStatus.md index 4489b50743..609f095b1e 100644 --- a/kubernetes/docs/V1DeploymentStatus.md +++ b/kubernetes/docs/V1DeploymentStatus.md @@ -7,14 +7,15 @@ DeploymentStatus is the most recently observed status of the Deployment. Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**availableReplicas** | **Integer** | Total number of available pods (ready for at least minReadySeconds) targeted by this deployment. | [optional] +**availableReplicas** | **Integer** | Total number of available non-terminating pods (ready for at least minReadySeconds) targeted by this deployment. | [optional] **collisionCount** | **Integer** | 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. | [optional] **conditions** | [**List<V1DeploymentCondition>**](V1DeploymentCondition.md) | Represents the latest available observations of a deployment's current state. | [optional] **observedGeneration** | **Long** | The generation observed by the deployment controller. | [optional] -**readyReplicas** | **Integer** | readyReplicas is the number of pods targeted by this Deployment with a Ready Condition. | [optional] -**replicas** | **Integer** | Total number of non-terminated pods targeted by this deployment (their labels match the selector). | [optional] +**readyReplicas** | **Integer** | Total number of non-terminating pods targeted by this Deployment with a Ready Condition. | [optional] +**replicas** | **Integer** | Total number of non-terminating pods targeted by this deployment (their labels match the selector). | [optional] +**terminatingReplicas** | **Integer** | Total number of terminating pods targeted by this deployment. Terminating pods have a non-null .metadata.deletionTimestamp and have not yet reached the Failed or Succeeded .status.phase. This is an alpha field. Enable DeploymentReplicaSetTerminatingReplicas to be able to use this field. | [optional] **unavailableReplicas** | **Integer** | 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. | [optional] -**updatedReplicas** | **Integer** | Total number of non-terminated pods targeted by this deployment that have the desired template spec. | [optional] +**updatedReplicas** | **Integer** | Total number of non-terminating pods targeted by this deployment that have the desired template spec. | [optional] diff --git a/kubernetes/docs/V1Endpoint.md b/kubernetes/docs/V1Endpoint.md index 18b004718b..7d0834cd53 100644 --- a/kubernetes/docs/V1Endpoint.md +++ b/kubernetes/docs/V1Endpoint.md @@ -7,7 +7,7 @@ Endpoint represents a single logical \"backend\" implementing a service. Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**addresses** | **List<String>** | 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 | +**addresses** | **List<String>** | addresses of this endpoint. For EndpointSlices of addressType \"IPv4\" or \"IPv6\", the values are IP addresses in canonical form. The syntax and semantics of other addressType values are not defined. This must contain at least one address but no more than 100. EndpointSlices generated by the EndpointSlice controller will always have exactly 1 address. No semantics are defined for additional addresses beyond the first, and kube-proxy does not look at them. | **conditions** | [**V1EndpointConditions**](V1EndpointConditions.md) | | [optional] **deprecatedTopology** | **Map<String, String>** | 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. | [optional] **hints** | [**V1EndpointHints**](V1EndpointHints.md) | | [optional] diff --git a/kubernetes/docs/V1EndpointAddress.md b/kubernetes/docs/V1EndpointAddress.md index f1b859e4b4..b5942e361f 100644 --- a/kubernetes/docs/V1EndpointAddress.md +++ b/kubernetes/docs/V1EndpointAddress.md @@ -2,7 +2,7 @@ # V1EndpointAddress -EndpointAddress is a tuple that describes single IP address. +EndpointAddress is a tuple that describes single IP address. Deprecated: This API is deprecated in v1.33+. ## Properties Name | Type | Description | Notes diff --git a/kubernetes/docs/V1EndpointConditions.md b/kubernetes/docs/V1EndpointConditions.md index adcad2fe0d..161b3e15fb 100644 --- a/kubernetes/docs/V1EndpointConditions.md +++ b/kubernetes/docs/V1EndpointConditions.md @@ -7,9 +7,9 @@ EndpointConditions represents the current condition of an endpoint. Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**ready** | **Boolean** | 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. | [optional] -**serving** | **Boolean** | 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. | [optional] -**terminating** | **Boolean** | 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. | [optional] +**ready** | **Boolean** | ready indicates that this endpoint is ready to receive traffic, according to whatever system is managing the endpoint. A nil value should be interpreted as \"true\". In general, an endpoint should be marked ready if it is serving and not terminating, though this can be overridden in some cases, such as when the associated Service has set the publishNotReadyAddresses flag. | [optional] +**serving** | **Boolean** | serving indicates that this endpoint is able to receive traffic, according to whatever system is managing the endpoint. For endpoints backed by pods, the EndpointSlice controller will mark the endpoint as serving if the pod's Ready condition is True. A nil value should be interpreted as \"true\". | [optional] +**terminating** | **Boolean** | terminating indicates that this endpoint is terminating. A nil value should be interpreted as \"false\". | [optional] diff --git a/kubernetes/docs/V1EndpointHints.md b/kubernetes/docs/V1EndpointHints.md index 428f3b6fe7..8125842991 100644 --- a/kubernetes/docs/V1EndpointHints.md +++ b/kubernetes/docs/V1EndpointHints.md @@ -7,7 +7,8 @@ EndpointHints provides hints describing how an endpoint should be consumed. Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**forZones** | [**List<V1ForZone>**](V1ForZone.md) | forZones indicates the zone(s) this endpoint should be consumed by to enable topology aware routing. | [optional] +**forNodes** | [**List<V1ForNode>**](V1ForNode.md) | forNodes indicates the node(s) this endpoint should be consumed by when using topology aware routing. May contain a maximum of 8 entries. This is an Alpha feature and is only used when the PreferSameTrafficDistribution feature gate is enabled. | [optional] +**forZones** | [**List<V1ForZone>**](V1ForZone.md) | forZones indicates the zone(s) this endpoint should be consumed by when using topology aware routing. May contain a maximum of 8 entries. | [optional] diff --git a/kubernetes/docs/V1EndpointSlice.md b/kubernetes/docs/V1EndpointSlice.md index c1e40d8cb9..fe459016a1 100644 --- a/kubernetes/docs/V1EndpointSlice.md +++ b/kubernetes/docs/V1EndpointSlice.md @@ -2,17 +2,17 @@ # V1EndpointSlice -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. +EndpointSlice represents a set of service endpoints. Most EndpointSlices are created by the EndpointSlice controller to represent the Pods selected by Service objects. For a given service there may be multiple EndpointSlice objects which must be joined to produce the full set of endpoints; you can find all of the slices for a given service by listing EndpointSlices in the service's namespace whose `kubernetes.io/service-name` label contains the service's name. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**addressType** | **String** | 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. | +**addressType** | **String** | 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. (Deprecated) The EndpointSlice controller only generates, and kube-proxy only processes, slices of addressType \"IPv4\" and \"IPv6\". No semantics are defined for the \"FQDN\" type. | **apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] **endpoints** | [**List<V1Endpoint>**](V1Endpoint.md) | endpoints is a list of unique endpoints in this slice. Each slice may include a maximum of 1000 endpoints. | **kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] **metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] -**ports** | [**List<DiscoveryV1EndpointPort>**](DiscoveryV1EndpointPort.md) | 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. | [optional] +**ports** | [**List<DiscoveryV1EndpointPort>**](DiscoveryV1EndpointPort.md) | ports specifies the list of network ports exposed by each endpoint in this slice. Each port must have a unique name. Each slice may include a maximum of 100 ports. Services always have at least 1 port, so EndpointSlices generated by the EndpointSlice controller will likewise always have at least 1 port. EndpointSlices used for other purposes may have an empty ports list. | [optional] ## Implemented Interfaces diff --git a/kubernetes/docs/V1EndpointSubset.md b/kubernetes/docs/V1EndpointSubset.md index 726eda4dea..195c8ed11b 100644 --- a/kubernetes/docs/V1EndpointSubset.md +++ b/kubernetes/docs/V1EndpointSubset.md @@ -2,7 +2,7 @@ # V1EndpointSubset -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 ] +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 ] Deprecated: This API is deprecated in v1.33+. ## Properties Name | Type | Description | Notes diff --git a/kubernetes/docs/V1Endpoints.md b/kubernetes/docs/V1Endpoints.md index 76ef8fb631..144e14736e 100644 --- a/kubernetes/docs/V1Endpoints.md +++ b/kubernetes/docs/V1Endpoints.md @@ -2,7 +2,7 @@ # V1Endpoints -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}] }, ] +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}] }, ] Endpoints is a legacy API and does not contain information about all Service features. Use discoveryv1.EndpointSlice for complete information about Service endpoints. Deprecated: This API is deprecated in v1.33+. Use discoveryv1.EndpointSlice. ## Properties Name | Type | Description | Notes diff --git a/kubernetes/docs/V1EndpointsList.md b/kubernetes/docs/V1EndpointsList.md index 9dd42ce277..8ba6ea65e2 100644 --- a/kubernetes/docs/V1EndpointsList.md +++ b/kubernetes/docs/V1EndpointsList.md @@ -2,7 +2,7 @@ # V1EndpointsList -EndpointsList is a list of endpoints. +EndpointsList is a list of endpoints. Deprecated: This API is deprecated in v1.33+. ## Properties Name | Type | Description | Notes diff --git a/kubernetes/docs/V1EnvFromSource.md b/kubernetes/docs/V1EnvFromSource.md index 17e2e6888e..3e2e55663d 100644 --- a/kubernetes/docs/V1EnvFromSource.md +++ b/kubernetes/docs/V1EnvFromSource.md @@ -2,13 +2,13 @@ # V1EnvFromSource -EnvFromSource represents the source of a set of ConfigMaps +EnvFromSource represents the source of a set of ConfigMaps or Secrets ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **configMapRef** | [**V1ConfigMapEnvSource**](V1ConfigMapEnvSource.md) | | [optional] -**prefix** | **String** | An optional identifier to prepend to each key in the ConfigMap. Must be a C_IDENTIFIER. | [optional] +**prefix** | **String** | Optional text to prepend to the name of each environment variable. Must be a C_IDENTIFIER. | [optional] **secretRef** | [**V1SecretEnvSource**](V1SecretEnvSource.md) | | [optional] diff --git a/kubernetes/docs/V1ExemptPriorityLevelConfiguration.md b/kubernetes/docs/V1ExemptPriorityLevelConfiguration.md new file mode 100644 index 0000000000..ab1729c0dc --- /dev/null +++ b/kubernetes/docs/V1ExemptPriorityLevelConfiguration.md @@ -0,0 +1,14 @@ + + +# V1ExemptPriorityLevelConfiguration + +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`. +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**lendablePercent** | **Integer** | `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 ) | [optional] +**nominalConcurrencyShares** | **Integer** | `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. | [optional] + + + diff --git a/kubernetes/docs/V1ExpressionWarning.md b/kubernetes/docs/V1ExpressionWarning.md new file mode 100644 index 0000000000..72d40754a9 --- /dev/null +++ b/kubernetes/docs/V1ExpressionWarning.md @@ -0,0 +1,14 @@ + + +# V1ExpressionWarning + +ExpressionWarning is a warning information that targets a specific expression. +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**fieldRef** | **String** | 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\" | +**warning** | **String** | 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. | + + + diff --git a/kubernetes/docs/V1FieldSelectorAttributes.md b/kubernetes/docs/V1FieldSelectorAttributes.md new file mode 100644 index 0000000000..facea0063b --- /dev/null +++ b/kubernetes/docs/V1FieldSelectorAttributes.md @@ -0,0 +1,14 @@ + + +# V1FieldSelectorAttributes + +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. +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**rawSelector** | **String** | 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. | [optional] +**requirements** | [**List<V1FieldSelectorRequirement>**](V1FieldSelectorRequirement.md) | 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. | [optional] + + + diff --git a/kubernetes/docs/V1FieldSelectorRequirement.md b/kubernetes/docs/V1FieldSelectorRequirement.md new file mode 100644 index 0000000000..513e5a1464 --- /dev/null +++ b/kubernetes/docs/V1FieldSelectorRequirement.md @@ -0,0 +1,15 @@ + + +# V1FieldSelectorRequirement + +FieldSelectorRequirement is a selector that contains values, a key, and an operator that relates the key and values. +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**key** | **String** | key is the field selector key that the requirement applies to. | +**operator** | **String** | 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. | +**values** | **List<String>** | 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. | [optional] + + + diff --git a/kubernetes/docs/V1FlowDistinguisherMethod.md b/kubernetes/docs/V1FlowDistinguisherMethod.md new file mode 100644 index 0000000000..2b3c91c064 --- /dev/null +++ b/kubernetes/docs/V1FlowDistinguisherMethod.md @@ -0,0 +1,13 @@ + + +# V1FlowDistinguisherMethod + +FlowDistinguisherMethod specifies the method of a flow distinguisher. +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**type** | **String** | `type` is the type of flow distinguisher method The supported types are \"ByUser\" and \"ByNamespace\". Required. | + + + diff --git a/kubernetes/docs/V1FlowSchema.md b/kubernetes/docs/V1FlowSchema.md new file mode 100644 index 0000000000..cce3c23d6a --- /dev/null +++ b/kubernetes/docs/V1FlowSchema.md @@ -0,0 +1,21 @@ + + +# V1FlowSchema + +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\". +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] +**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] +**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] +**spec** | [**V1FlowSchemaSpec**](V1FlowSchemaSpec.md) | | [optional] +**status** | [**V1FlowSchemaStatus**](V1FlowSchemaStatus.md) | | [optional] + + +## Implemented Interfaces + +* io.kubernetes.client.common.KubernetesObject + + diff --git a/kubernetes/docs/V1FlowSchemaCondition.md b/kubernetes/docs/V1FlowSchemaCondition.md new file mode 100644 index 0000000000..578cbb6560 --- /dev/null +++ b/kubernetes/docs/V1FlowSchemaCondition.md @@ -0,0 +1,17 @@ + + +# V1FlowSchemaCondition + +FlowSchemaCondition describes conditions for a FlowSchema. +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**lastTransitionTime** | [**OffsetDateTime**](OffsetDateTime.md) | `lastTransitionTime` is the last time the condition transitioned from one status to another. | [optional] +**message** | **String** | `message` is a human-readable message indicating details about last transition. | [optional] +**reason** | **String** | `reason` is a unique, one-word, CamelCase reason for the condition's last transition. | [optional] +**status** | **String** | `status` is the status of the condition. Can be True, False, Unknown. Required. | [optional] +**type** | **String** | `type` is the type of the condition. Required. | [optional] + + + diff --git a/kubernetes/docs/V1FlowSchemaList.md b/kubernetes/docs/V1FlowSchemaList.md new file mode 100644 index 0000000000..33dc166955 --- /dev/null +++ b/kubernetes/docs/V1FlowSchemaList.md @@ -0,0 +1,20 @@ + + +# V1FlowSchemaList + +FlowSchemaList is a list of FlowSchema objects. +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] +**items** | [**List<V1FlowSchema>**](V1FlowSchema.md) | `items` is a list of FlowSchemas. | +**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] +**metadata** | [**V1ListMeta**](V1ListMeta.md) | | [optional] + + +## Implemented Interfaces + +* io.kubernetes.client.common.KubernetesListObject + + diff --git a/kubernetes/docs/V1FlowSchemaSpec.md b/kubernetes/docs/V1FlowSchemaSpec.md new file mode 100644 index 0000000000..8d8d42c56b --- /dev/null +++ b/kubernetes/docs/V1FlowSchemaSpec.md @@ -0,0 +1,16 @@ + + +# V1FlowSchemaSpec + +FlowSchemaSpec describes how the FlowSchema's specification looks like. +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**distinguisherMethod** | [**V1FlowDistinguisherMethod**](V1FlowDistinguisherMethod.md) | | [optional] +**matchingPrecedence** | **Integer** | `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. | [optional] +**priorityLevelConfiguration** | [**V1PriorityLevelConfigurationReference**](V1PriorityLevelConfigurationReference.md) | | +**rules** | [**List<V1PolicyRulesWithSubjects>**](V1PolicyRulesWithSubjects.md) | `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. | [optional] + + + diff --git a/kubernetes/docs/V1FlowSchemaStatus.md b/kubernetes/docs/V1FlowSchemaStatus.md new file mode 100644 index 0000000000..0622f9c1e9 --- /dev/null +++ b/kubernetes/docs/V1FlowSchemaStatus.md @@ -0,0 +1,13 @@ + + +# V1FlowSchemaStatus + +FlowSchemaStatus represents the current state of a FlowSchema. +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**conditions** | [**List<V1FlowSchemaCondition>**](V1FlowSchemaCondition.md) | `conditions` is a list of the current states of FlowSchema. | [optional] + + + diff --git a/kubernetes/docs/V1ForNode.md b/kubernetes/docs/V1ForNode.md new file mode 100644 index 0000000000..a308216897 --- /dev/null +++ b/kubernetes/docs/V1ForNode.md @@ -0,0 +1,13 @@ + + +# V1ForNode + +ForNode provides information about which nodes should consume this endpoint. +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**name** | **String** | name represents the name of the node. | + + + diff --git a/kubernetes/docs/V1GRPCAction.md b/kubernetes/docs/V1GRPCAction.md index 5965a7c443..3681a50dd6 100644 --- a/kubernetes/docs/V1GRPCAction.md +++ b/kubernetes/docs/V1GRPCAction.md @@ -2,6 +2,7 @@ # V1GRPCAction +GRPCAction specifies an action involving a GRPC service. ## Properties Name | Type | Description | Notes diff --git a/kubernetes/docs/V1GroupSubject.md b/kubernetes/docs/V1GroupSubject.md new file mode 100644 index 0000000000..1de2ca0e45 --- /dev/null +++ b/kubernetes/docs/V1GroupSubject.md @@ -0,0 +1,13 @@ + + +# V1GroupSubject + +GroupSubject holds detailed information for group-kind subject. +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**name** | **String** | 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. | + + + diff --git a/kubernetes/docs/V1HostAlias.md b/kubernetes/docs/V1HostAlias.md index 84588c9690..69b154fe96 100644 --- a/kubernetes/docs/V1HostAlias.md +++ b/kubernetes/docs/V1HostAlias.md @@ -8,7 +8,7 @@ HostAlias holds the mapping between IP and hostnames that will be injected as an Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **hostnames** | **List<String>** | Hostnames for the above IP address. | [optional] -**ip** | **String** | IP address of the host file entry. | [optional] +**ip** | **String** | IP address of the host file entry. | diff --git a/kubernetes/docs/V1HostIP.md b/kubernetes/docs/V1HostIP.md index f397e328ed..7de1013f01 100644 --- a/kubernetes/docs/V1HostIP.md +++ b/kubernetes/docs/V1HostIP.md @@ -7,7 +7,7 @@ HostIP represents a single IP address allocated to the host. Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**ip** | **String** | IP is the IP address assigned to the host | [optional] +**ip** | **String** | IP is the IP address assigned to the host | diff --git a/kubernetes/docs/V1IPAddress.md b/kubernetes/docs/V1IPAddress.md new file mode 100644 index 0000000000..b6b2f007ad --- /dev/null +++ b/kubernetes/docs/V1IPAddress.md @@ -0,0 +1,20 @@ + + +# V1IPAddress + +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 +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] +**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] +**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] +**spec** | [**V1IPAddressSpec**](V1IPAddressSpec.md) | | [optional] + + +## Implemented Interfaces + +* io.kubernetes.client.common.KubernetesObject + + diff --git a/kubernetes/docs/V1IPAddressList.md b/kubernetes/docs/V1IPAddressList.md new file mode 100644 index 0000000000..64076deeaa --- /dev/null +++ b/kubernetes/docs/V1IPAddressList.md @@ -0,0 +1,20 @@ + + +# V1IPAddressList + +IPAddressList contains a list of IPAddress. +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] +**items** | [**List<V1IPAddress>**](V1IPAddress.md) | items is the list of IPAddresses. | +**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] +**metadata** | [**V1ListMeta**](V1ListMeta.md) | | [optional] + + +## Implemented Interfaces + +* io.kubernetes.client.common.KubernetesListObject + + diff --git a/kubernetes/docs/V1IPAddressSpec.md b/kubernetes/docs/V1IPAddressSpec.md new file mode 100644 index 0000000000..89fbd413d5 --- /dev/null +++ b/kubernetes/docs/V1IPAddressSpec.md @@ -0,0 +1,13 @@ + + +# V1IPAddressSpec + +IPAddressSpec describe the attributes in an IP Address. +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**parentRef** | [**V1ParentReference**](V1ParentReference.md) | | + + + diff --git a/kubernetes/docs/V1ImageVolumeSource.md b/kubernetes/docs/V1ImageVolumeSource.md new file mode 100644 index 0000000000..ce07ce8564 --- /dev/null +++ b/kubernetes/docs/V1ImageVolumeSource.md @@ -0,0 +1,14 @@ + + +# V1ImageVolumeSource + +ImageVolumeSource represents a image volume resource. +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**pullPolicy** | **String** | 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. | [optional] +**reference** | **String** | 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. | [optional] + + + diff --git a/kubernetes/docs/V1JSONSchemaProps.md b/kubernetes/docs/V1JSONSchemaProps.md index 3e414f63ac..c0c5b836d7 100644 --- a/kubernetes/docs/V1JSONSchemaProps.md +++ b/kubernetes/docs/V1JSONSchemaProps.md @@ -22,7 +22,7 @@ Name | Type | Description | Notes **exclusiveMaximum** | **Boolean** | | [optional] **exclusiveMinimum** | **Boolean** | | [optional] **externalDocs** | [**V1ExternalDocumentation**](V1ExternalDocumentation.md) | | [optional] -**format** | **String** | 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. | [optional] +**format** | **String** | 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. | [optional] **id** | **String** | | [optional] **items** | [**Object**](.md) | JSONSchemaPropsOrArray represents a value that can either be a JSONSchemaProps or an array of JSONSchemaProps. Mainly here for serialization purposes. | [optional] **maxItems** | **Long** | | [optional] @@ -50,7 +50,7 @@ Name | Type | Description | Notes **xKubernetesListType** | **String** | 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. | [optional] **xKubernetesMapType** | **String** | 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. | [optional] **xKubernetesPreserveUnknownFields** | **Boolean** | 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. | [optional] -**xKubernetesValidations** | [**List<V1ValidationRule>**](V1ValidationRule.md) | x-kubernetes-validations describes a list of validation rules written in the CEL expression language. This field is an alpha-level. Using this field requires the feature gate `CustomResourceValidationExpressions` to be enabled. | [optional] +**xKubernetesValidations** | [**List<V1ValidationRule>**](V1ValidationRule.md) | x-kubernetes-validations describes a list of validation rules written in the CEL expression language. | [optional] diff --git a/kubernetes/docs/V1JobSpec.md b/kubernetes/docs/V1JobSpec.md index 8d35c1b7de..9d39f2cf18 100644 --- a/kubernetes/docs/V1JobSpec.md +++ b/kubernetes/docs/V1JobSpec.md @@ -9,15 +9,17 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **activeDeadlineSeconds** | **Long** | 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. | [optional] **backoffLimit** | **Integer** | Specifies the number of retries before marking this job failed. Defaults to 6 | [optional] -**backoffLimitPerIndex** | **Integer** | 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 alpha-level. It can be used when the `JobBackoffLimitPerIndex` feature gate is enabled (disabled by default). | [optional] +**backoffLimitPerIndex** | **Integer** | 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. | [optional] **completionMode** | **String** | 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. | [optional] **completions** | **Integer** | 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/ | [optional] +**managedBy** | **String** | 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 beta-level. The job controller accepts setting the field when the feature gate JobManagedBy is enabled (enabled by default). | [optional] **manualSelector** | **Boolean** | 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 | [optional] -**maxFailedIndexes** | **Integer** | 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 alpha-level. It can be used when the `JobBackoffLimitPerIndex` feature gate is enabled (disabled by default). | [optional] +**maxFailedIndexes** | **Integer** | 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. | [optional] **parallelism** | **Integer** | 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/ | [optional] **podFailurePolicy** | [**V1PodFailurePolicy**](V1PodFailurePolicy.md) | | [optional] -**podReplacementPolicy** | **String** | 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 alpha field. Enable JobPodReplacementPolicy to be able to use this field. | [optional] +**podReplacementPolicy** | **String** | 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. | [optional] **selector** | [**V1LabelSelector**](V1LabelSelector.md) | | [optional] +**successPolicy** | [**V1SuccessPolicy**](V1SuccessPolicy.md) | | [optional] **suspend** | **Boolean** | 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. | [optional] **template** | [**V1PodTemplateSpec**](V1PodTemplateSpec.md) | | **ttlSecondsAfterFinished** | **Integer** | 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. | [optional] diff --git a/kubernetes/docs/V1JobStatus.md b/kubernetes/docs/V1JobStatus.md index de4591c963..16d00ec49b 100644 --- a/kubernetes/docs/V1JobStatus.md +++ b/kubernetes/docs/V1JobStatus.md @@ -7,16 +7,16 @@ JobStatus represents the current state of a Job. Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**active** | **Integer** | The number of pending and running pods. | [optional] +**active** | **Integer** | The number of pending and running pods which are not terminating (without a deletionTimestamp). The value is zero for finished jobs. | [optional] **completedIndexes** | **String** | 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\". | [optional] -**completionTime** | [**OffsetDateTime**](OffsetDateTime.md) | Represents time when the job was completed. It is not guaranteed to be set in happens-before order across separate operations. It is represented in RFC3339 form and is in UTC. The completion time is only set when the job finishes successfully. | [optional] -**conditions** | [**List<V1JobCondition>**](V1JobCondition.md) | 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. More info: https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/ | [optional] -**failed** | **Integer** | The number of pods which reached phase Failed. | [optional] -**failedIndexes** | **String** | FailedIndexes holds the failed indexes when backoffLimitPerIndex=true. 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\". This field is alpha-level. It can be used when the `JobBackoffLimitPerIndex` feature gate is enabled (disabled by default). | [optional] -**ready** | **Integer** | The number of pods which have a Ready condition. This field is beta-level. The job controller populates the field when the feature gate JobReadyPods is enabled (enabled by default). | [optional] -**startTime** | [**OffsetDateTime**](OffsetDateTime.md) | 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. | [optional] -**succeeded** | **Integer** | The number of pods which reached phase Succeeded. | [optional] -**terminating** | **Integer** | The number of pods which are terminating (in phase Pending or Running and have a deletionTimestamp). This field is alpha-level. The job controller populates the field when the feature gate JobPodReplacementPolicy is enabled (disabled by default). | [optional] +**completionTime** | [**OffsetDateTime**](OffsetDateTime.md) | Represents time when the job was completed. It is not guaranteed to be set in happens-before order across separate operations. It is represented in RFC3339 form and is in UTC. 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. | [optional] +**conditions** | [**List<V1JobCondition>**](V1JobCondition.md) | 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/ | [optional] +**failed** | **Integer** | The number of pods which reached phase Failed. The value increases monotonically. | [optional] +**failedIndexes** | **String** | 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. | [optional] +**ready** | **Integer** | The number of active pods which have a Ready condition and are not terminating (without a deletionTimestamp). | [optional] +**startTime** | [**OffsetDateTime**](OffsetDateTime.md) | 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. | [optional] +**succeeded** | **Integer** | 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. | [optional] +**terminating** | **Integer** | 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). | [optional] **uncountedTerminatedPods** | [**V1UncountedTerminatedPods**](V1UncountedTerminatedPods.md) | | [optional] diff --git a/kubernetes/docs/V1LabelSelectorAttributes.md b/kubernetes/docs/V1LabelSelectorAttributes.md new file mode 100644 index 0000000000..bff731afe6 --- /dev/null +++ b/kubernetes/docs/V1LabelSelectorAttributes.md @@ -0,0 +1,14 @@ + + +# V1LabelSelectorAttributes + +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. +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**rawSelector** | **String** | 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. | [optional] +**requirements** | [**List<V1LabelSelectorRequirement>**](V1LabelSelectorRequirement.md) | 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. | [optional] + + + diff --git a/kubernetes/docs/V1LeaseSpec.md b/kubernetes/docs/V1LeaseSpec.md index 4476da9b8e..e9a5e5cc7a 100644 --- a/kubernetes/docs/V1LeaseSpec.md +++ b/kubernetes/docs/V1LeaseSpec.md @@ -8,10 +8,12 @@ LeaseSpec is a specification of a Lease. Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **acquireTime** | [**OffsetDateTime**](OffsetDateTime.md) | acquireTime is a time when the current lease was acquired. | [optional] -**holderIdentity** | **String** | holderIdentity contains the identity of the holder of a current lease. | [optional] -**leaseDurationSeconds** | **Integer** | leaseDurationSeconds is a duration that candidates for a lease need to wait to force acquire it. This is measure against time of last observed renewTime. | [optional] +**holderIdentity** | **String** | 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. | [optional] +**leaseDurationSeconds** | **Integer** | 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. | [optional] **leaseTransitions** | **Integer** | leaseTransitions is the number of transitions of a lease between holders. | [optional] +**preferredHolder** | **String** | 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. | [optional] **renewTime** | [**OffsetDateTime**](OffsetDateTime.md) | renewTime is a time when the current holder of a lease has last updated the lease. | [optional] +**strategy** | **String** | 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. | [optional] diff --git a/kubernetes/docs/V1Lifecycle.md b/kubernetes/docs/V1Lifecycle.md index 9afab8a479..abf4e8d9e0 100644 --- a/kubernetes/docs/V1Lifecycle.md +++ b/kubernetes/docs/V1Lifecycle.md @@ -9,6 +9,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **postStart** | [**V1LifecycleHandler**](V1LifecycleHandler.md) | | [optional] **preStop** | [**V1LifecycleHandler**](V1LifecycleHandler.md) | | [optional] +**stopSignal** | **String** | StopSignal defines which signal will be sent to a container when it is being stopped. If not specified, the default is defined by the container runtime in use. StopSignal can only be set for Pods with a non-empty .spec.os.name | [optional] diff --git a/kubernetes/docs/V1LifecycleHandler.md b/kubernetes/docs/V1LifecycleHandler.md index cb88aa6ae0..a4baeaa6ee 100644 --- a/kubernetes/docs/V1LifecycleHandler.md +++ b/kubernetes/docs/V1LifecycleHandler.md @@ -9,6 +9,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **exec** | [**V1ExecAction**](V1ExecAction.md) | | [optional] **httpGet** | [**V1HTTPGetAction**](V1HTTPGetAction.md) | | [optional] +**sleep** | [**V1SleepAction**](V1SleepAction.md) | | [optional] **tcpSocket** | [**V1TCPSocketAction**](V1TCPSocketAction.md) | | [optional] diff --git a/kubernetes/docs/V1LimitResponse.md b/kubernetes/docs/V1LimitResponse.md new file mode 100644 index 0000000000..9b4cc46181 --- /dev/null +++ b/kubernetes/docs/V1LimitResponse.md @@ -0,0 +1,14 @@ + + +# V1LimitResponse + +LimitResponse defines how to handle requests that can not be executed right now. +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**queuing** | [**V1QueuingConfiguration**](V1QueuingConfiguration.md) | | [optional] +**type** | **String** | `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. | + + + diff --git a/kubernetes/docs/V1LimitedPriorityLevelConfiguration.md b/kubernetes/docs/V1LimitedPriorityLevelConfiguration.md new file mode 100644 index 0000000000..dd1412ea35 --- /dev/null +++ b/kubernetes/docs/V1LimitedPriorityLevelConfiguration.md @@ -0,0 +1,16 @@ + + +# V1LimitedPriorityLevelConfiguration + +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? +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**borrowingLimitPercent** | **Integer** | `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. | [optional] +**lendablePercent** | **Integer** | `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 ) | [optional] +**limitResponse** | [**V1LimitResponse**](V1LimitResponse.md) | | [optional] +**nominalConcurrencyShares** | **Integer** | `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) | [optional] + + + diff --git a/kubernetes/docs/V1LinuxContainerUser.md b/kubernetes/docs/V1LinuxContainerUser.md new file mode 100644 index 0000000000..587f4a5540 --- /dev/null +++ b/kubernetes/docs/V1LinuxContainerUser.md @@ -0,0 +1,15 @@ + + +# V1LinuxContainerUser + +LinuxContainerUser represents user identity information in Linux containers +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**gid** | **Long** | GID is the primary gid initially attached to the first process in the container | +**supplementalGroups** | **List<Long>** | SupplementalGroups are the supplemental groups initially attached to the first process in the container | [optional] +**uid** | **Long** | UID is the primary uid initially attached to the first process in the container | + + + diff --git a/kubernetes/docs/V1LoadBalancerIngress.md b/kubernetes/docs/V1LoadBalancerIngress.md index 3cfaffea0c..a3985d12b0 100644 --- a/kubernetes/docs/V1LoadBalancerIngress.md +++ b/kubernetes/docs/V1LoadBalancerIngress.md @@ -9,6 +9,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **hostname** | **String** | Hostname is set for load-balancer ingress points that are DNS based (typically AWS load-balancers) | [optional] **ip** | **String** | IP is set for load-balancer ingress points that are IP based (typically GCE or OpenStack load-balancers) | [optional] +**ipMode** | **String** | 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. | [optional] **ports** | [**List<V1PortStatus>**](V1PortStatus.md) | Ports is a list of records of service ports If used, every port defined in the service should have an entry in it | [optional] diff --git a/kubernetes/docs/V1LocalObjectReference.md b/kubernetes/docs/V1LocalObjectReference.md index 0a4cb89cce..aaf549925d 100644 --- a/kubernetes/docs/V1LocalObjectReference.md +++ b/kubernetes/docs/V1LocalObjectReference.md @@ -7,7 +7,7 @@ LocalObjectReference contains enough information to let you locate the reference Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**name** | **String** | Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names | [optional] +**name** | **String** | 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 | [optional] diff --git a/kubernetes/docs/V1LocalVolumeSource.md b/kubernetes/docs/V1LocalVolumeSource.md index 492abaad45..c3eecc9ecd 100644 --- a/kubernetes/docs/V1LocalVolumeSource.md +++ b/kubernetes/docs/V1LocalVolumeSource.md @@ -2,7 +2,7 @@ # V1LocalVolumeSource -Local represents directly-attached storage with node affinity (Beta feature) +Local represents directly-attached storage with node affinity ## Properties Name | Type | Description | Notes diff --git a/kubernetes/docs/V1MatchResources.md b/kubernetes/docs/V1MatchResources.md new file mode 100644 index 0000000000..ebd2cb8cbf --- /dev/null +++ b/kubernetes/docs/V1MatchResources.md @@ -0,0 +1,17 @@ + + +# V1MatchResources + +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) +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**excludeResourceRules** | [**List<V1NamedRuleWithOperations>**](V1NamedRuleWithOperations.md) | 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) | [optional] +**matchPolicy** | **String** | 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\" | [optional] +**namespaceSelector** | [**V1LabelSelector**](V1LabelSelector.md) | | [optional] +**objectSelector** | [**V1LabelSelector**](V1LabelSelector.md) | | [optional] +**resourceRules** | [**List<V1NamedRuleWithOperations>**](V1NamedRuleWithOperations.md) | ResourceRules describes what operations on what resources/subresources the ValidatingAdmissionPolicy matches. The policy cares about an operation if it matches _any_ Rule. | [optional] + + + diff --git a/kubernetes/docs/V1ModifyVolumeStatus.md b/kubernetes/docs/V1ModifyVolumeStatus.md new file mode 100644 index 0000000000..a77de0abe7 --- /dev/null +++ b/kubernetes/docs/V1ModifyVolumeStatus.md @@ -0,0 +1,14 @@ + + +# V1ModifyVolumeStatus + +ModifyVolumeStatus represents the status object of ControllerModifyVolume operation +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**status** | **String** | 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. | +**targetVolumeAttributesClassName** | **String** | targetVolumeAttributesClassName is the name of the VolumeAttributesClass the PVC currently being reconciled | [optional] + + + diff --git a/kubernetes/docs/V1MutatingWebhook.md b/kubernetes/docs/V1MutatingWebhook.md index 217091725a..91abb4d1a2 100644 --- a/kubernetes/docs/V1MutatingWebhook.md +++ b/kubernetes/docs/V1MutatingWebhook.md @@ -10,7 +10,7 @@ Name | Type | Description | Notes **admissionReviewVersions** | **List<String>** | 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. | **clientConfig** | [**AdmissionregistrationV1WebhookClientConfig**](AdmissionregistrationV1WebhookClientConfig.md) | | **failurePolicy** | **String** | FailurePolicy defines how unrecognized errors from the admission endpoint are handled - allowed values are Ignore or Fail. Defaults to Fail. | [optional] -**matchConditions** | [**List<V1MatchCondition>**](V1MatchCondition.md) | 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 This is a beta feature and managed by the AdmissionWebhookMatchConditions feature gate. | [optional] +**matchConditions** | [**List<V1MatchCondition>**](V1MatchCondition.md) | 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 | [optional] **matchPolicy** | **String** | 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\" | [optional] **name** | **String** | 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. | **namespaceSelector** | [**V1LabelSelector**](V1LabelSelector.md) | | [optional] diff --git a/kubernetes/docs/V1NamedRuleWithOperations.md b/kubernetes/docs/V1NamedRuleWithOperations.md new file mode 100644 index 0000000000..236d69d45b --- /dev/null +++ b/kubernetes/docs/V1NamedRuleWithOperations.md @@ -0,0 +1,18 @@ + + +# V1NamedRuleWithOperations + +NamedRuleWithOperations is a tuple of Operations and Resources with ResourceNames. +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**apiGroups** | **List<String>** | APIGroups is the API groups the resources belong to. '*' is all groups. If '*' is present, the length of the slice must be one. Required. | [optional] +**apiVersions** | **List<String>** | APIVersions is the API versions the resources belong to. '*' is all versions. If '*' is present, the length of the slice must be one. Required. | [optional] +**operations** | **List<String>** | 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. | [optional] +**resourceNames** | **List<String>** | ResourceNames is an optional white list of names that the rule applies to. An empty set means that everything is allowed. | [optional] +**resources** | **List<String>** | 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. | [optional] +**scope** | **String** | 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 \"*\". | [optional] + + + diff --git a/kubernetes/docs/V1NamespaceCondition.md b/kubernetes/docs/V1NamespaceCondition.md index 4cfab73753..1c39552346 100644 --- a/kubernetes/docs/V1NamespaceCondition.md +++ b/kubernetes/docs/V1NamespaceCondition.md @@ -7,9 +7,9 @@ NamespaceCondition contains details about state of namespace. Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**lastTransitionTime** | [**OffsetDateTime**](OffsetDateTime.md) | Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers. | [optional] -**message** | **String** | | [optional] -**reason** | **String** | | [optional] +**lastTransitionTime** | [**OffsetDateTime**](OffsetDateTime.md) | Last time the condition transitioned from one status to another. | [optional] +**message** | **String** | Human-readable message indicating details about last transition. | [optional] +**reason** | **String** | Unique, one-word, CamelCase reason for the condition's last transition. | [optional] **status** | **String** | Status of the condition, one of True, False, Unknown. | **type** | **String** | Type of namespace controller condition. | diff --git a/kubernetes/docs/V1NodeFeatures.md b/kubernetes/docs/V1NodeFeatures.md new file mode 100644 index 0000000000..745efb0832 --- /dev/null +++ b/kubernetes/docs/V1NodeFeatures.md @@ -0,0 +1,13 @@ + + +# V1NodeFeatures + +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. +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**supplementalGroupsPolicy** | **Boolean** | SupplementalGroupsPolicy is set to true if the runtime supports SupplementalGroupsPolicy and ContainerUser. | [optional] + + + diff --git a/kubernetes/docs/V1NodeRuntimeHandler.md b/kubernetes/docs/V1NodeRuntimeHandler.md new file mode 100644 index 0000000000..b9c9939fe0 --- /dev/null +++ b/kubernetes/docs/V1NodeRuntimeHandler.md @@ -0,0 +1,14 @@ + + +# V1NodeRuntimeHandler + +NodeRuntimeHandler is a set of runtime handler information. +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**features** | [**V1NodeRuntimeHandlerFeatures**](V1NodeRuntimeHandlerFeatures.md) | | [optional] +**name** | **String** | Runtime handler name. Empty for the default runtime handler. | [optional] + + + diff --git a/kubernetes/docs/V1NodeRuntimeHandlerFeatures.md b/kubernetes/docs/V1NodeRuntimeHandlerFeatures.md new file mode 100644 index 0000000000..342c8eff42 --- /dev/null +++ b/kubernetes/docs/V1NodeRuntimeHandlerFeatures.md @@ -0,0 +1,14 @@ + + +# V1NodeRuntimeHandlerFeatures + +NodeRuntimeHandlerFeatures is a set of features implemented by the runtime handler. +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**recursiveReadOnlyMounts** | **Boolean** | RecursiveReadOnlyMounts is set to true if the runtime handler supports RecursiveReadOnlyMounts. | [optional] +**userNamespaces** | **Boolean** | UserNamespaces is set to true if the runtime handler supports UserNamespaces, including for volumes. | [optional] + + + diff --git a/kubernetes/docs/V1NodeStatus.md b/kubernetes/docs/V1NodeStatus.md index 0d010ca684..d45b75fd01 100644 --- a/kubernetes/docs/V1NodeStatus.md +++ b/kubernetes/docs/V1NodeStatus.md @@ -7,15 +7,17 @@ NodeStatus is information about the current status of a node. Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**addresses** | [**List<V1NodeAddress>**](V1NodeAddress.md) | 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). | [optional] +**addresses** | [**List<V1NodeAddress>**](V1NodeAddress.md) | List of addresses reachable to the node. Queried from cloud provider, if available. More info: https://kubernetes.io/docs/reference/node/node-status/#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). | [optional] **allocatable** | [**Map<String, Quantity>**](Quantity.md) | Allocatable represents the resources of a node that are available for scheduling. Defaults to Capacity. | [optional] -**capacity** | [**Map<String, Quantity>**](Quantity.md) | Capacity represents the total resources of a node. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#capacity | [optional] -**conditions** | [**List<V1NodeCondition>**](V1NodeCondition.md) | Conditions is an array of current observed node conditions. More info: https://kubernetes.io/docs/concepts/nodes/node/#condition | [optional] +**capacity** | [**Map<String, Quantity>**](Quantity.md) | Capacity represents the total resources of a node. More info: https://kubernetes.io/docs/reference/node/node-status/#capacity | [optional] +**conditions** | [**List<V1NodeCondition>**](V1NodeCondition.md) | Conditions is an array of current observed node conditions. More info: https://kubernetes.io/docs/reference/node/node-status/#condition | [optional] **config** | [**V1NodeConfigStatus**](V1NodeConfigStatus.md) | | [optional] **daemonEndpoints** | [**V1NodeDaemonEndpoints**](V1NodeDaemonEndpoints.md) | | [optional] +**features** | [**V1NodeFeatures**](V1NodeFeatures.md) | | [optional] **images** | [**List<V1ContainerImage>**](V1ContainerImage.md) | List of container images on this node | [optional] **nodeInfo** | [**V1NodeSystemInfo**](V1NodeSystemInfo.md) | | [optional] **phase** | **String** | 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. | [optional] +**runtimeHandlers** | [**List<V1NodeRuntimeHandler>**](V1NodeRuntimeHandler.md) | The available runtime handlers. | [optional] **volumesAttached** | [**List<V1AttachedVolume>**](V1AttachedVolume.md) | List of volumes that are attached to the node. | [optional] **volumesInUse** | **List<String>** | List of attachable volumes in use (mounted) by the node. | [optional] diff --git a/kubernetes/docs/V1NodeSwapStatus.md b/kubernetes/docs/V1NodeSwapStatus.md new file mode 100644 index 0000000000..6b9e222922 --- /dev/null +++ b/kubernetes/docs/V1NodeSwapStatus.md @@ -0,0 +1,13 @@ + + +# V1NodeSwapStatus + +NodeSwapStatus represents swap memory information. +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**capacity** | **Long** | Total amount of swap memory in bytes. | [optional] + + + diff --git a/kubernetes/docs/V1NodeSystemInfo.md b/kubernetes/docs/V1NodeSystemInfo.md index c749bc1fda..d7e94b1d00 100644 --- a/kubernetes/docs/V1NodeSystemInfo.md +++ b/kubernetes/docs/V1NodeSystemInfo.md @@ -11,11 +11,12 @@ Name | Type | Description | Notes **bootID** | **String** | Boot ID reported by the node. | **containerRuntimeVersion** | **String** | ContainerRuntime Version reported by the node through runtime remote API (e.g. containerd://1.4.2). | **kernelVersion** | **String** | Kernel Version reported by the node from 'uname -r' (e.g. 3.16.0-0.bpo.4-amd64). | -**kubeProxyVersion** | **String** | KubeProxy Version reported by the node. | +**kubeProxyVersion** | **String** | Deprecated: KubeProxy Version reported by the node. | **kubeletVersion** | **String** | Kubelet Version reported by the node. | **machineID** | **String** | 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 | **operatingSystem** | **String** | The Operating System reported by the node | **osImage** | **String** | OS Image reported by the node from /etc/os-release (e.g. Debian GNU/Linux 7 (wheezy)). | +**swap** | [**V1NodeSwapStatus**](V1NodeSwapStatus.md) | | [optional] **systemUUID** | **String** | 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 | diff --git a/kubernetes/docs/V1NonResourcePolicyRule.md b/kubernetes/docs/V1NonResourcePolicyRule.md new file mode 100644 index 0000000000..7bbee50dad --- /dev/null +++ b/kubernetes/docs/V1NonResourcePolicyRule.md @@ -0,0 +1,14 @@ + + +# V1NonResourcePolicyRule + +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. +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**nonResourceURLs** | **List<String>** | `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. | +**verbs** | **List<String>** | `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. | + + + diff --git a/kubernetes/docs/V1ParamKind.md b/kubernetes/docs/V1ParamKind.md new file mode 100644 index 0000000000..c993d10a57 --- /dev/null +++ b/kubernetes/docs/V1ParamKind.md @@ -0,0 +1,14 @@ + + +# V1ParamKind + +ParamKind is a tuple of Group Kind and Version. +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**apiVersion** | **String** | APIVersion is the API group version the resources belong to. In format of \"group/version\". Required. | [optional] +**kind** | **String** | Kind is the API kind the resources belong to. Required. | [optional] + + + diff --git a/kubernetes/docs/V1ParamRef.md b/kubernetes/docs/V1ParamRef.md new file mode 100644 index 0000000000..f914ae0cf3 --- /dev/null +++ b/kubernetes/docs/V1ParamRef.md @@ -0,0 +1,16 @@ + + +# V1ParamRef + +ParamRef describes how to locate the params to be used as input to expressions of rules applied by a policy binding. +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**name** | **String** | 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. | [optional] +**namespace** | **String** | 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. | [optional] +**parameterNotFoundAction** | **String** | `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 | [optional] +**selector** | [**V1LabelSelector**](V1LabelSelector.md) | | [optional] + + + diff --git a/kubernetes/docs/V1ParentReference.md b/kubernetes/docs/V1ParentReference.md new file mode 100644 index 0000000000..31ec5712f8 --- /dev/null +++ b/kubernetes/docs/V1ParentReference.md @@ -0,0 +1,16 @@ + + +# V1ParentReference + +ParentReference describes a reference to a parent object. +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**group** | **String** | Group is the group of the object being referenced. | [optional] +**name** | **String** | Name is the name of the object being referenced. | +**namespace** | **String** | Namespace is the namespace of the object being referenced. | [optional] +**resource** | **String** | Resource is the resource of the object being referenced. | + + + diff --git a/kubernetes/docs/V1PersistentVolumeClaimCondition.md b/kubernetes/docs/V1PersistentVolumeClaimCondition.md index e642ccedba..b8033796b3 100644 --- a/kubernetes/docs/V1PersistentVolumeClaimCondition.md +++ b/kubernetes/docs/V1PersistentVolumeClaimCondition.md @@ -10,9 +10,9 @@ Name | Type | Description | Notes **lastProbeTime** | [**OffsetDateTime**](OffsetDateTime.md) | lastProbeTime is the time we probed the condition. | [optional] **lastTransitionTime** | [**OffsetDateTime**](OffsetDateTime.md) | lastTransitionTime is the time the condition transitioned from one status to another. | [optional] **message** | **String** | message is the human-readable message indicating details about last transition. | [optional] -**reason** | **String** | reason is a unique, this should be a short, machine understandable string that gives the reason for condition's last transition. If it reports \"ResizeStarted\" that means the underlying persistent volume is being resized. | [optional] -**status** | **String** | | -**type** | **String** | | +**reason** | **String** | 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. | [optional] +**status** | **String** | Status is the status of the condition. Can be True, False, Unknown. More info: https://kubernetes.io/docs/reference/kubernetes-api/config-and-storage-resources/persistent-volume-claim-v1/#:~:text=state%20of%20pvc-,conditions.status,-(string)%2C%20required | +**type** | **String** | Type is the type of the condition. More info: https://kubernetes.io/docs/reference/kubernetes-api/config-and-storage-resources/persistent-volume-claim-v1/#:~:text=set%20to%20%27ResizeStarted%27.-,PersistentVolumeClaimCondition,-contains%20details%20about | diff --git a/kubernetes/docs/V1PersistentVolumeClaimSpec.md b/kubernetes/docs/V1PersistentVolumeClaimSpec.md index 714fd92894..64b757fdfd 100644 --- a/kubernetes/docs/V1PersistentVolumeClaimSpec.md +++ b/kubernetes/docs/V1PersistentVolumeClaimSpec.md @@ -10,9 +10,10 @@ Name | Type | Description | Notes **accessModes** | **List<String>** | accessModes contains the desired access modes the volume should have. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes-1 | [optional] **dataSource** | [**V1TypedLocalObjectReference**](V1TypedLocalObjectReference.md) | | [optional] **dataSourceRef** | [**V1TypedObjectReference**](V1TypedObjectReference.md) | | [optional] -**resources** | [**V1ResourceRequirements**](V1ResourceRequirements.md) | | [optional] +**resources** | [**V1VolumeResourceRequirements**](V1VolumeResourceRequirements.md) | | [optional] **selector** | [**V1LabelSelector**](V1LabelSelector.md) | | [optional] **storageClassName** | **String** | storageClassName is the name of the StorageClass required by the claim. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#class-1 | [optional] +**volumeAttributesClassName** | **String** | 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). | [optional] **volumeMode** | **String** | volumeMode defines what type of volume is required by the claim. Value of Filesystem is implied when not included in claim spec. | [optional] **volumeName** | **String** | volumeName is the binding reference to the PersistentVolume backing this claim. | [optional] diff --git a/kubernetes/docs/V1PersistentVolumeClaimStatus.md b/kubernetes/docs/V1PersistentVolumeClaimStatus.md index 59256c31d1..e9a6d153e1 100644 --- a/kubernetes/docs/V1PersistentVolumeClaimStatus.md +++ b/kubernetes/docs/V1PersistentVolumeClaimStatus.md @@ -11,7 +11,9 @@ Name | Type | Description | Notes **allocatedResourceStatuses** | **Map<String, String>** | 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. | [optional] **allocatedResources** | [**Map<String, Quantity>**](Quantity.md) | 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. | [optional] **capacity** | [**Map<String, Quantity>**](Quantity.md) | capacity represents the actual resources of the underlying volume. | [optional] -**conditions** | [**List<V1PersistentVolumeClaimCondition>**](V1PersistentVolumeClaimCondition.md) | conditions is the current Condition of persistent volume claim. If underlying persistent volume is being resized then the Condition will be set to 'ResizeStarted'. | [optional] +**conditions** | [**List<V1PersistentVolumeClaimCondition>**](V1PersistentVolumeClaimCondition.md) | conditions is the current Condition of persistent volume claim. If underlying persistent volume is being resized then the Condition will be set to 'Resizing'. | [optional] +**currentVolumeAttributesClassName** | **String** | 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). | [optional] +**modifyVolumeStatus** | [**V1ModifyVolumeStatus**](V1ModifyVolumeStatus.md) | | [optional] **phase** | **String** | phase represents the current phase of PersistentVolumeClaim. | [optional] diff --git a/kubernetes/docs/V1PersistentVolumeSpec.md b/kubernetes/docs/V1PersistentVolumeSpec.md index b300070aa5..c8ee9c19c9 100644 --- a/kubernetes/docs/V1PersistentVolumeSpec.md +++ b/kubernetes/docs/V1PersistentVolumeSpec.md @@ -35,6 +35,7 @@ Name | Type | Description | Notes **scaleIO** | [**V1ScaleIOPersistentVolumeSource**](V1ScaleIOPersistentVolumeSource.md) | | [optional] **storageClassName** | **String** | storageClassName is the name of StorageClass to which this persistent volume belongs. Empty value means that this volume does not belong to any StorageClass. | [optional] **storageos** | [**V1StorageOSPersistentVolumeSource**](V1StorageOSPersistentVolumeSource.md) | | [optional] +**volumeAttributesClassName** | **String** | 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). | [optional] **volumeMode** | **String** | 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. | [optional] **vsphereVolume** | [**V1VsphereVirtualDiskVolumeSource**](V1VsphereVirtualDiskVolumeSource.md) | | [optional] diff --git a/kubernetes/docs/V1PersistentVolumeStatus.md b/kubernetes/docs/V1PersistentVolumeStatus.md index 0e48378df7..fbdc8040f4 100644 --- a/kubernetes/docs/V1PersistentVolumeStatus.md +++ b/kubernetes/docs/V1PersistentVolumeStatus.md @@ -7,7 +7,7 @@ PersistentVolumeStatus is the current status of a persistent volume. Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**lastPhaseTransitionTime** | [**OffsetDateTime**](OffsetDateTime.md) | lastPhaseTransitionTime is the time the phase transitioned from one to another and automatically resets to current time everytime a volume phase transitions. This is an alpha field and requires enabling PersistentVolumeLastPhaseTransitionTime feature. | [optional] +**lastPhaseTransitionTime** | [**OffsetDateTime**](OffsetDateTime.md) | lastPhaseTransitionTime is the time the phase transitioned from one to another and automatically resets to current time everytime a volume phase transitions. | [optional] **message** | **String** | message is a human-readable message indicating details about why the volume is in this state. | [optional] **phase** | **String** | 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 | [optional] **reason** | **String** | reason is a brief CamelCase string that describes any failure and is meant for machine parsing and tidy display in the CLI. | [optional] diff --git a/kubernetes/docs/V1PodAffinityTerm.md b/kubernetes/docs/V1PodAffinityTerm.md index 7993c2bc7e..78adaa8726 100644 --- a/kubernetes/docs/V1PodAffinityTerm.md +++ b/kubernetes/docs/V1PodAffinityTerm.md @@ -8,6 +8,8 @@ Defines a set of pods (namely those matching the labelSelector relative to the g Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **labelSelector** | [**V1LabelSelector**](V1LabelSelector.md) | | [optional] +**matchLabelKeys** | **List<String>** | 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. | [optional] +**mismatchLabelKeys** | **List<String>** | 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. | [optional] **namespaceSelector** | [**V1LabelSelector**](V1LabelSelector.md) | | [optional] **namespaces** | **List<String>** | 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\". | [optional] **topologyKey** | **String** | 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. | diff --git a/kubernetes/docs/V1PodCondition.md b/kubernetes/docs/V1PodCondition.md index 5e01b413bf..915cdc209b 100644 --- a/kubernetes/docs/V1PodCondition.md +++ b/kubernetes/docs/V1PodCondition.md @@ -10,6 +10,7 @@ Name | Type | Description | Notes **lastProbeTime** | [**OffsetDateTime**](OffsetDateTime.md) | Last time we probed the condition. | [optional] **lastTransitionTime** | [**OffsetDateTime**](OffsetDateTime.md) | Last time the condition transitioned from one status to another. | [optional] **message** | **String** | Human-readable message indicating details about last transition. | [optional] +**observedGeneration** | **Long** | If set, this represents the .metadata.generation that the pod condition was set based upon. This is an alpha field. Enable PodObservedGenerationTracking to be able to use this field. | [optional] **reason** | **String** | Unique, one-word, CamelCase reason for the condition's last transition. | [optional] **status** | **String** | Status is the status of the condition. Can be True, False, Unknown. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-conditions | **type** | **String** | Type is the type of the condition. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-conditions | diff --git a/kubernetes/docs/V1PodDNSConfigOption.md b/kubernetes/docs/V1PodDNSConfigOption.md index 6bcb021f14..872a50b656 100644 --- a/kubernetes/docs/V1PodDNSConfigOption.md +++ b/kubernetes/docs/V1PodDNSConfigOption.md @@ -7,8 +7,8 @@ PodDNSConfigOption defines DNS resolver options of a pod. Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**name** | **String** | Required. | [optional] -**value** | **String** | | [optional] +**name** | **String** | Name is this DNS resolver option's name. Required. | [optional] +**value** | **String** | Value is this DNS resolver option's value. | [optional] diff --git a/kubernetes/docs/V1PodDisruptionBudgetSpec.md b/kubernetes/docs/V1PodDisruptionBudgetSpec.md index cbb89354c3..63943a6db8 100644 --- a/kubernetes/docs/V1PodDisruptionBudgetSpec.md +++ b/kubernetes/docs/V1PodDisruptionBudgetSpec.md @@ -10,7 +10,7 @@ Name | Type | Description | Notes **maxUnavailable** | [**IntOrString**](IntOrString.md) | 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. | [optional] **minAvailable** | [**IntOrString**](IntOrString.md) | 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. | [optional] **selector** | [**V1LabelSelector**](V1LabelSelector.md) | | [optional] -**unhealthyPodEvictionPolicy** | **String** | 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). | [optional] +**unhealthyPodEvictionPolicy** | **String** | 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. | [optional] diff --git a/kubernetes/docs/V1PodFailurePolicyRule.md b/kubernetes/docs/V1PodFailurePolicyRule.md index 75143c4c95..3e6b129d1b 100644 --- a/kubernetes/docs/V1PodFailurePolicyRule.md +++ b/kubernetes/docs/V1PodFailurePolicyRule.md @@ -7,7 +7,7 @@ PodFailurePolicyRule describes how a pod failure is handled when the requirement Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**action** | **String** | 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 alpha-level. It can be used when the `JobBackoffLimitPerIndex` feature gate is enabled (disabled 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. | +**action** | **String** | 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. - 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. | **onExitCodes** | [**V1PodFailurePolicyOnExitCodesRequirement**](V1PodFailurePolicyOnExitCodesRequirement.md) | | [optional] **onPodConditions** | [**List<V1PodFailurePolicyOnPodConditionsPattern>**](V1PodFailurePolicyOnPodConditionsPattern.md) | 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. | [optional] diff --git a/kubernetes/docs/V1PodIP.md b/kubernetes/docs/V1PodIP.md index 709c737c50..7cf495b0d4 100644 --- a/kubernetes/docs/V1PodIP.md +++ b/kubernetes/docs/V1PodIP.md @@ -7,7 +7,7 @@ PodIP represents a single IP address allocated to the pod. Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**ip** | **String** | IP is the IP address assigned to the pod | [optional] +**ip** | **String** | IP is the IP address assigned to the pod | diff --git a/kubernetes/docs/V1PodResourceClaim.md b/kubernetes/docs/V1PodResourceClaim.md index 74c9c00129..5e967554a8 100644 --- a/kubernetes/docs/V1PodResourceClaim.md +++ b/kubernetes/docs/V1PodResourceClaim.md @@ -2,13 +2,14 @@ # V1PodResourceClaim -PodResourceClaim references exactly one ResourceClaim through a ClaimSource. 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. +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. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **name** | **String** | Name uniquely identifies this resource claim inside the pod. This must be a DNS_LABEL. | -**source** | [**V1ClaimSource**](V1ClaimSource.md) | | [optional] +**resourceClaimName** | **String** | ResourceClaimName is the name of a ResourceClaim object in the same namespace as this pod. Exactly one of ResourceClaimName and ResourceClaimTemplateName must be set. | [optional] +**resourceClaimTemplateName** | **String** | 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. | [optional] diff --git a/kubernetes/docs/V1PodResourceClaimStatus.md b/kubernetes/docs/V1PodResourceClaimStatus.md index 2daf800680..f132e14b81 100644 --- a/kubernetes/docs/V1PodResourceClaimStatus.md +++ b/kubernetes/docs/V1PodResourceClaimStatus.md @@ -8,7 +8,7 @@ PodResourceClaimStatus is stored in the PodStatus for each PodResourceClaim whic Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **name** | **String** | 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. | -**resourceClaimName** | **String** | ResourceClaimName is the name of the ResourceClaim that was generated for the Pod in the namespace of the Pod. It this is unset, then generating a ResourceClaim was not necessary. The pod.spec.resourceClaims entry can be ignored in this case. | [optional] +**resourceClaimName** | **String** | 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. | [optional] diff --git a/kubernetes/docs/V1PodSecurityContext.md b/kubernetes/docs/V1PodSecurityContext.md index 4f2638eedf..1a043fb6fd 100644 --- a/kubernetes/docs/V1PodSecurityContext.md +++ b/kubernetes/docs/V1PodSecurityContext.md @@ -7,14 +7,17 @@ PodSecurityContext holds pod-level security attributes and common container sett Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**appArmorProfile** | [**V1AppArmorProfile**](V1AppArmorProfile.md) | | [optional] **fsGroup** | **Long** | 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. | [optional] **fsGroupChangePolicy** | **String** | 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. | [optional] **runAsGroup** | **Long** | 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. | [optional] **runAsNonRoot** | **Boolean** | 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. | [optional] **runAsUser** | **Long** | 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. | [optional] +**seLinuxChangePolicy** | **String** | seLinuxChangePolicy defines how the container's SELinux label is applied to all volumes used by the Pod. It has no effect on nodes that do not support SELinux or to volumes does not support SELinux. Valid values are \"MountOption\" and \"Recursive\". \"Recursive\" means relabeling of all files on all Pod volumes by the container runtime. This may be slow for large volumes, but allows mixing privileged and unprivileged Pods sharing the same volume on the same node. \"MountOption\" mounts all eligible Pod volumes with `-o context` mount option. This requires all Pods that share the same volume to use the same SELinux label. It is not possible to share the same volume among privileged and unprivileged Pods. Eligible volumes are in-tree FibreChannel and iSCSI volumes, and all CSI volumes whose CSI driver announces SELinux support by setting spec.seLinuxMount: true in their CSIDriver instance. Other volumes are always re-labelled recursively. \"MountOption\" value is allowed only when SELinuxMount feature gate is enabled. If not specified and SELinuxMount feature gate is enabled, \"MountOption\" is used. If not specified and SELinuxMount feature gate is disabled, \"MountOption\" is used for ReadWriteOncePod volumes and \"Recursive\" for all other volumes. This field affects only Pods that have SELinux label set, either in PodSecurityContext or in SecurityContext of all containers. All Pods that use the same volume should use the same seLinuxChangePolicy, otherwise some pods can get stuck in ContainerCreating state. Note that this field cannot be set when spec.os.name is windows. | [optional] **seLinuxOptions** | [**V1SELinuxOptions**](V1SELinuxOptions.md) | | [optional] **seccompProfile** | [**V1SeccompProfile**](V1SeccompProfile.md) | | [optional] -**supplementalGroups** | **List<Long>** | A list of groups applied to the first process run in each container, in addition to the container's primary GID, the fsGroup (if specified), and group memberships defined in the container image for the uid of the container process. If unspecified, no additional groups are added to any container. Note that group memberships defined in the container image for the uid of the container process are still effective, even if they are not included in this list. Note that this field cannot be set when spec.os.name is windows. | [optional] +**supplementalGroups** | **List<Long>** | 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. | [optional] +**supplementalGroupsPolicy** | **String** | 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. | [optional] **sysctls** | [**List<V1Sysctl>**](V1Sysctl.md) | 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. | [optional] **windowsOptions** | [**V1WindowsSecurityContextOptions**](V1WindowsSecurityContextOptions.md) | | [optional] diff --git a/kubernetes/docs/V1PodSpec.md b/kubernetes/docs/V1PodSpec.md index 3ba1316c22..f5fd5ba76a 100644 --- a/kubernetes/docs/V1PodSpec.md +++ b/kubernetes/docs/V1PodSpec.md @@ -15,15 +15,15 @@ Name | Type | Description | Notes **dnsPolicy** | **String** | 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'. | [optional] **enableServiceLinks** | **Boolean** | EnableServiceLinks indicates whether information about services should be injected into pod's environment variables, matching the syntax of Docker links. Optional: Defaults to true. | [optional] **ephemeralContainers** | [**List<V1EphemeralContainer>**](V1EphemeralContainer.md) | 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. | [optional] -**hostAliases** | [**List<V1HostAlias>**](V1HostAlias.md) | HostAliases is an optional list of hosts and IPs that will be injected into the pod's hosts file if specified. This is only valid for non-hostNetwork pods. | [optional] +**hostAliases** | [**List<V1HostAlias>**](V1HostAlias.md) | HostAliases is an optional list of hosts and IPs that will be injected into the pod's hosts file if specified. | [optional] **hostIPC** | **Boolean** | Use the host's ipc namespace. Optional: Default to false. | [optional] **hostNetwork** | **Boolean** | 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. | [optional] **hostPID** | **Boolean** | Use the host's pid namespace. Optional: Default to false. | [optional] **hostUsers** | **Boolean** | 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. | [optional] **hostname** | **String** | Specifies the hostname of the Pod If not specified, the pod's hostname will be set to a system-defined value. | [optional] **imagePullSecrets** | [**List<V1LocalObjectReference>**](V1LocalObjectReference.md) | 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 | [optional] -**initContainers** | [**List<V1Container>**](V1Container.md) | 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/ | [optional] -**nodeName** | **String** | NodeName is a request to schedule this pod onto a specific node. If it is non-empty, the scheduler simply schedules this pod onto that node, assuming that it fits resource requirements. | [optional] +**initContainers** | [**List<V1Container>**](V1Container.md) | 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 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/ | [optional] +**nodeName** | **String** | 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 | [optional] **nodeSelector** | **Map<String, String>** | 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/ | [optional] **os** | [**V1PodOS**](V1PodOS.md) | | [optional] **overhead** | [**Map<String, Quantity>**](Quantity.md) | 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 | [optional] @@ -32,14 +32,15 @@ Name | Type | Description | Notes **priorityClassName** | **String** | 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. | [optional] **readinessGates** | [**List<V1PodReadinessGate>**](V1PodReadinessGate.md) | 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 | [optional] **resourceClaims** | [**List<V1PodResourceClaim>**](V1PodResourceClaim.md) | 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. | [optional] +**resources** | [**V1ResourceRequirements**](V1ResourceRequirements.md) | | [optional] **restartPolicy** | **String** | 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 | [optional] **runtimeClassName** | **String** | 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 | [optional] **schedulerName** | **String** | If specified, the pod will be dispatched by specified scheduler. If not specified, the pod will be dispatched by default scheduler. | [optional] -**schedulingGates** | [**List<V1PodSchedulingGate>**](V1PodSchedulingGate.md) | 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. This is a beta feature enabled by the PodSchedulingReadiness feature gate. | [optional] +**schedulingGates** | [**List<V1PodSchedulingGate>**](V1PodSchedulingGate.md) | 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. | [optional] **securityContext** | [**V1PodSecurityContext**](V1PodSecurityContext.md) | | [optional] -**serviceAccount** | **String** | DeprecatedServiceAccount is a depreciated alias for ServiceAccountName. Deprecated: Use serviceAccountName instead. | [optional] +**serviceAccount** | **String** | DeprecatedServiceAccount is a deprecated alias for ServiceAccountName. Deprecated: Use serviceAccountName instead. | [optional] **serviceAccountName** | **String** | 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/ | [optional] -**setHostnameAsFQDN** | **Boolean** | 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. | [optional] +**setHostnameAsFQDN** | **Boolean** | 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. | [optional] **shareProcessNamespace** | **Boolean** | 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. | [optional] **subdomain** | **String** | If specified, the fully qualified Pod hostname will be \"<hostname>.<subdomain>.<pod namespace>.svc.<cluster domain>\". If not specified, the pod will not have a domainname at all. | [optional] **terminationGracePeriodSeconds** | **Long** | 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. | [optional] diff --git a/kubernetes/docs/V1PodStatus.md b/kubernetes/docs/V1PodStatus.md index 0f438b11ad..893b80e7aa 100644 --- a/kubernetes/docs/V1PodStatus.md +++ b/kubernetes/docs/V1PodStatus.md @@ -8,19 +8,20 @@ PodStatus represents information about the status of a pod. Status may trail the Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **conditions** | [**List<V1PodCondition>**](V1PodCondition.md) | Current service state of pod. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-conditions | [optional] -**containerStatuses** | [**List<V1ContainerStatus>**](V1ContainerStatus.md) | 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 | [optional] -**ephemeralContainerStatuses** | [**List<V1ContainerStatus>**](V1ContainerStatus.md) | Status for any ephemeral containers that have run in this pod. | [optional] +**containerStatuses** | [**List<V1ContainerStatus>**](V1ContainerStatus.md) | Statuses of containers in this pod. Each container in the pod should have at most one status in this list, and all statuses should be for containers in the pod. However this is not enforced. If a status for a non-existent container is present in the list, or the list has duplicate names, the behavior of various Kubernetes components is not defined and those statuses might be ignored. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-and-container-status | [optional] +**ephemeralContainerStatuses** | [**List<V1ContainerStatus>**](V1ContainerStatus.md) | Statuses for any ephemeral containers that have run in this pod. Each ephemeral container in the pod should have at most one status in this list, and all statuses should be for containers in the pod. However this is not enforced. If a status for a non-existent container is present in the list, or the list has duplicate names, the behavior of various Kubernetes components is not defined and those statuses might be ignored. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-and-container-status | [optional] **hostIP** | **String** | 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 | [optional] **hostIPs** | [**List<V1HostIP>**](V1HostIP.md) | 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. | [optional] -**initContainerStatuses** | [**List<V1ContainerStatus>**](V1ContainerStatus.md) | 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 | [optional] +**initContainerStatuses** | [**List<V1ContainerStatus>**](V1ContainerStatus.md) | Statuses of init containers in this pod. The most recent successful non-restartable init container will have ready = true, the most recently started container will have startTime set. Each init container in the pod should have at most one status in this list, and all statuses should be for containers in the pod. However this is not enforced. If a status for a non-existent container is present in the list, or the list has duplicate names, the behavior of various Kubernetes components is not defined and those statuses might be ignored. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#pod-and-container-status | [optional] **message** | **String** | A human readable message indicating details about why the pod is in this condition. | [optional] **nominatedNodeName** | **String** | 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. | [optional] +**observedGeneration** | **Long** | If set, this represents the .metadata.generation that the pod status was set based upon. This is an alpha field. Enable PodObservedGenerationTracking to be able to use this field. | [optional] **phase** | **String** | 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 | [optional] **podIP** | **String** | podIP address allocated to the pod. Routable at least within the cluster. Empty if not yet allocated. | [optional] **podIPs** | [**List<V1PodIP>**](V1PodIP.md) | podIPs holds the IP addresses allocated to the pod. If this field is specified, the 0th entry must match the podIP field. Pods may be allocated at most 1 value for each of IPv4 and IPv6. This list is empty if no IPs have been allocated yet. | [optional] **qosClass** | **String** | The Quality of Service (QOS) classification assigned to the pod based on resource requirements See PodQOSClass type for available QOS classes More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-qos/#quality-of-service-classes | [optional] **reason** | **String** | A brief CamelCase message indicating details about why the pod is in this state. e.g. 'Evicted' | [optional] -**resize** | **String** | 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\" | [optional] +**resize** | **String** | 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\" Deprecated: Resize status is moved to two pod conditions PodResizePending and PodResizeInProgress. PodResizePending will track states where the spec has been resized, but the Kubelet has not yet allocated the resources. PodResizeInProgress will track in-progress resizes, and should be present whenever allocated resources != acknowledged resources. | [optional] **resourceClaimStatuses** | [**List<V1PodResourceClaimStatus>**](V1PodResourceClaimStatus.md) | Status of resource claims. | [optional] **startTime** | [**OffsetDateTime**](OffsetDateTime.md) | RFC 3339 date and time at which the object was acknowledged by the Kubelet. This is before the Kubelet pulled the container image(s) for the pod. | [optional] diff --git a/kubernetes/docs/V1PolicyRulesWithSubjects.md b/kubernetes/docs/V1PolicyRulesWithSubjects.md new file mode 100644 index 0000000000..16bb313825 --- /dev/null +++ b/kubernetes/docs/V1PolicyRulesWithSubjects.md @@ -0,0 +1,15 @@ + + +# V1PolicyRulesWithSubjects + +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. +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**nonResourceRules** | [**List<V1NonResourcePolicyRule>**](V1NonResourcePolicyRule.md) | `nonResourceRules` is a list of NonResourcePolicyRules that identify matching requests according to their verb and the target non-resource URL. | [optional] +**resourceRules** | [**List<V1ResourcePolicyRule>**](V1ResourcePolicyRule.md) | `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. | [optional] +**subjects** | [**List<FlowcontrolV1Subject>**](FlowcontrolV1Subject.md) | 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. | + + + diff --git a/kubernetes/docs/V1PortStatus.md b/kubernetes/docs/V1PortStatus.md index 9b3047903d..5bd3c2b3ea 100644 --- a/kubernetes/docs/V1PortStatus.md +++ b/kubernetes/docs/V1PortStatus.md @@ -2,6 +2,7 @@ # V1PortStatus +PortStatus represents the error condition of a service port ## Properties Name | Type | Description | Notes diff --git a/kubernetes/docs/V1PriorityLevelConfiguration.md b/kubernetes/docs/V1PriorityLevelConfiguration.md new file mode 100644 index 0000000000..29fe3db31e --- /dev/null +++ b/kubernetes/docs/V1PriorityLevelConfiguration.md @@ -0,0 +1,21 @@ + + +# V1PriorityLevelConfiguration + +PriorityLevelConfiguration represents the configuration of a priority level. +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] +**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] +**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] +**spec** | [**V1PriorityLevelConfigurationSpec**](V1PriorityLevelConfigurationSpec.md) | | [optional] +**status** | [**V1PriorityLevelConfigurationStatus**](V1PriorityLevelConfigurationStatus.md) | | [optional] + + +## Implemented Interfaces + +* io.kubernetes.client.common.KubernetesObject + + diff --git a/kubernetes/docs/V1PriorityLevelConfigurationCondition.md b/kubernetes/docs/V1PriorityLevelConfigurationCondition.md new file mode 100644 index 0000000000..94354c779a --- /dev/null +++ b/kubernetes/docs/V1PriorityLevelConfigurationCondition.md @@ -0,0 +1,17 @@ + + +# V1PriorityLevelConfigurationCondition + +PriorityLevelConfigurationCondition defines the condition of priority level. +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**lastTransitionTime** | [**OffsetDateTime**](OffsetDateTime.md) | `lastTransitionTime` is the last time the condition transitioned from one status to another. | [optional] +**message** | **String** | `message` is a human-readable message indicating details about last transition. | [optional] +**reason** | **String** | `reason` is a unique, one-word, CamelCase reason for the condition's last transition. | [optional] +**status** | **String** | `status` is the status of the condition. Can be True, False, Unknown. Required. | [optional] +**type** | **String** | `type` is the type of the condition. Required. | [optional] + + + diff --git a/kubernetes/docs/V1PriorityLevelConfigurationList.md b/kubernetes/docs/V1PriorityLevelConfigurationList.md new file mode 100644 index 0000000000..f2ef7587b9 --- /dev/null +++ b/kubernetes/docs/V1PriorityLevelConfigurationList.md @@ -0,0 +1,20 @@ + + +# V1PriorityLevelConfigurationList + +PriorityLevelConfigurationList is a list of PriorityLevelConfiguration objects. +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] +**items** | [**List<V1PriorityLevelConfiguration>**](V1PriorityLevelConfiguration.md) | `items` is a list of request-priorities. | +**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] +**metadata** | [**V1ListMeta**](V1ListMeta.md) | | [optional] + + +## Implemented Interfaces + +* io.kubernetes.client.common.KubernetesListObject + + diff --git a/kubernetes/docs/V1PriorityLevelConfigurationReference.md b/kubernetes/docs/V1PriorityLevelConfigurationReference.md new file mode 100644 index 0000000000..f58b3647e5 --- /dev/null +++ b/kubernetes/docs/V1PriorityLevelConfigurationReference.md @@ -0,0 +1,13 @@ + + +# V1PriorityLevelConfigurationReference + +PriorityLevelConfigurationReference contains information that points to the \"request-priority\" being used. +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**name** | **String** | `name` is the name of the priority level configuration being referenced Required. | + + + diff --git a/kubernetes/docs/V1PriorityLevelConfigurationSpec.md b/kubernetes/docs/V1PriorityLevelConfigurationSpec.md new file mode 100644 index 0000000000..2afca5ceec --- /dev/null +++ b/kubernetes/docs/V1PriorityLevelConfigurationSpec.md @@ -0,0 +1,15 @@ + + +# V1PriorityLevelConfigurationSpec + +PriorityLevelConfigurationSpec specifies the configuration of a priority level. +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**exempt** | [**V1ExemptPriorityLevelConfiguration**](V1ExemptPriorityLevelConfiguration.md) | | [optional] +**limited** | [**V1LimitedPriorityLevelConfiguration**](V1LimitedPriorityLevelConfiguration.md) | | [optional] +**type** | **String** | `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. | + + + diff --git a/kubernetes/docs/V1PriorityLevelConfigurationStatus.md b/kubernetes/docs/V1PriorityLevelConfigurationStatus.md new file mode 100644 index 0000000000..616208cac7 --- /dev/null +++ b/kubernetes/docs/V1PriorityLevelConfigurationStatus.md @@ -0,0 +1,13 @@ + + +# V1PriorityLevelConfigurationStatus + +PriorityLevelConfigurationStatus represents the current state of a \"request-priority\". +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**conditions** | [**List<V1PriorityLevelConfigurationCondition>**](V1PriorityLevelConfigurationCondition.md) | `conditions` is the current state of \"request-priority\". | [optional] + + + diff --git a/kubernetes/docs/V1ProjectedVolumeSource.md b/kubernetes/docs/V1ProjectedVolumeSource.md index 873b02bdb3..b07cc73203 100644 --- a/kubernetes/docs/V1ProjectedVolumeSource.md +++ b/kubernetes/docs/V1ProjectedVolumeSource.md @@ -8,7 +8,7 @@ Represents a projected volume source Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **defaultMode** | **Integer** | 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. | [optional] -**sources** | [**List<V1VolumeProjection>**](V1VolumeProjection.md) | sources is the list of volume projections | [optional] +**sources** | [**List<V1VolumeProjection>**](V1VolumeProjection.md) | sources is the list of volume projections. Each entry in this list handles one source. | [optional] diff --git a/kubernetes/docs/V1QueuingConfiguration.md b/kubernetes/docs/V1QueuingConfiguration.md new file mode 100644 index 0000000000..8425562680 --- /dev/null +++ b/kubernetes/docs/V1QueuingConfiguration.md @@ -0,0 +1,15 @@ + + +# V1QueuingConfiguration + +QueuingConfiguration holds the configuration parameters for queuing +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**handSize** | **Integer** | `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. | [optional] +**queueLengthLimit** | **Integer** | `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. | [optional] +**queues** | **Integer** | `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. | [optional] + + + diff --git a/kubernetes/docs/V1ReplicaSetList.md b/kubernetes/docs/V1ReplicaSetList.md index 87e178f9b6..8ed23d7dbd 100644 --- a/kubernetes/docs/V1ReplicaSetList.md +++ b/kubernetes/docs/V1ReplicaSetList.md @@ -8,7 +8,7 @@ ReplicaSetList is a collection of ReplicaSets. Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] -**items** | [**List<V1ReplicaSet>**](V1ReplicaSet.md) | List of ReplicaSets. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller | +**items** | [**List<V1ReplicaSet>**](V1ReplicaSet.md) | List of ReplicaSets. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicaset | **kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] **metadata** | [**V1ListMeta**](V1ListMeta.md) | | [optional] diff --git a/kubernetes/docs/V1ReplicaSetSpec.md b/kubernetes/docs/V1ReplicaSetSpec.md index 399bb8872c..8663964938 100644 --- a/kubernetes/docs/V1ReplicaSetSpec.md +++ b/kubernetes/docs/V1ReplicaSetSpec.md @@ -8,7 +8,7 @@ ReplicaSetSpec is the specification of a ReplicaSet. Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **minReadySeconds** | **Integer** | 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) | [optional] -**replicas** | **Integer** | 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 | [optional] +**replicas** | **Integer** | Replicas is the number of desired pods. This is a pointer to distinguish between explicit zero and unspecified. Defaults to 1. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicaset | [optional] **selector** | [**V1LabelSelector**](V1LabelSelector.md) | | **template** | [**V1PodTemplateSpec**](V1PodTemplateSpec.md) | | [optional] diff --git a/kubernetes/docs/V1ReplicaSetStatus.md b/kubernetes/docs/V1ReplicaSetStatus.md index a2ea81ffdd..a4896e6aa0 100644 --- a/kubernetes/docs/V1ReplicaSetStatus.md +++ b/kubernetes/docs/V1ReplicaSetStatus.md @@ -7,12 +7,13 @@ ReplicaSetStatus represents the current status of a ReplicaSet. Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**availableReplicas** | **Integer** | The number of available replicas (ready for at least minReadySeconds) for this replica set. | [optional] +**availableReplicas** | **Integer** | The number of available non-terminating pods (ready for at least minReadySeconds) for this replica set. | [optional] **conditions** | [**List<V1ReplicaSetCondition>**](V1ReplicaSetCondition.md) | Represents the latest available observations of a replica set's current state. | [optional] -**fullyLabeledReplicas** | **Integer** | The number of pods that have labels matching the labels of the pod template of the replicaset. | [optional] +**fullyLabeledReplicas** | **Integer** | The number of non-terminating pods that have labels matching the labels of the pod template of the replicaset. | [optional] **observedGeneration** | **Long** | ObservedGeneration reflects the generation of the most recently observed ReplicaSet. | [optional] -**readyReplicas** | **Integer** | readyReplicas is the number of pods targeted by this ReplicaSet with a Ready Condition. | [optional] -**replicas** | **Integer** | Replicas is the most recently observed number of replicas. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller/#what-is-a-replicationcontroller | +**readyReplicas** | **Integer** | The number of non-terminating pods targeted by this ReplicaSet with a Ready Condition. | [optional] +**replicas** | **Integer** | Replicas is the most recently observed number of non-terminating pods. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicaset | +**terminatingReplicas** | **Integer** | The number of terminating pods for this replica set. Terminating pods have a non-null .metadata.deletionTimestamp and have not yet reached the Failed or Succeeded .status.phase. This is an alpha field. Enable DeploymentReplicaSetTerminatingReplicas to be able to use this field. | [optional] diff --git a/kubernetes/docs/V1ResourceAttributes.md b/kubernetes/docs/V1ResourceAttributes.md index 96faa9d5b7..f42371279f 100644 --- a/kubernetes/docs/V1ResourceAttributes.md +++ b/kubernetes/docs/V1ResourceAttributes.md @@ -7,7 +7,9 @@ ResourceAttributes includes the authorization attributes available for resource Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**fieldSelector** | [**V1FieldSelectorAttributes**](V1FieldSelectorAttributes.md) | | [optional] **group** | **String** | Group is the API Group of the Resource. \"*\" means all. | [optional] +**labelSelector** | [**V1LabelSelectorAttributes**](V1LabelSelectorAttributes.md) | | [optional] **name** | **String** | Name is the name of the resource being requested for a \"get\" or deleted for a \"delete\". \"\" (empty) means all. | [optional] **namespace** | **String** | 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 | [optional] **resource** | **String** | Resource is one of the existing resource types. \"*\" means all. | [optional] diff --git a/kubernetes/docs/V1ResourceClaim.md b/kubernetes/docs/V1ResourceClaim.md index 60c1c6b3e0..60bd6eda01 100644 --- a/kubernetes/docs/V1ResourceClaim.md +++ b/kubernetes/docs/V1ResourceClaim.md @@ -8,6 +8,7 @@ ResourceClaim references one entry in PodSpec.ResourceClaims. Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **name** | **String** | 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. | +**request** | **String** | 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. | [optional] diff --git a/kubernetes/docs/V1ResourceHealth.md b/kubernetes/docs/V1ResourceHealth.md new file mode 100644 index 0000000000..daef22803f --- /dev/null +++ b/kubernetes/docs/V1ResourceHealth.md @@ -0,0 +1,14 @@ + + +# V1ResourceHealth + +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. +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**health** | **String** | 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. | [optional] +**resourceID** | **String** | ResourceID is the unique identifier of the resource. See the ResourceID type for more information. | + + + diff --git a/kubernetes/docs/V1ResourcePolicyRule.md b/kubernetes/docs/V1ResourcePolicyRule.md new file mode 100644 index 0000000000..ea2dfa7d72 --- /dev/null +++ b/kubernetes/docs/V1ResourcePolicyRule.md @@ -0,0 +1,17 @@ + + +# V1ResourcePolicyRule + +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. +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**apiGroups** | **List<String>** | `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. | +**clusterScope** | **Boolean** | `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. | [optional] +**namespaces** | **List<String>** | `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. | [optional] +**resources** | **List<String>** | `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. | +**verbs** | **List<String>** | `verbs` is a list of matching verbs and may not be empty. \"*\" matches all verbs and, if present, must be the only entry. Required. | + + + diff --git a/kubernetes/docs/V1ResourceStatus.md b/kubernetes/docs/V1ResourceStatus.md new file mode 100644 index 0000000000..435fb9ae48 --- /dev/null +++ b/kubernetes/docs/V1ResourceStatus.md @@ -0,0 +1,14 @@ + + +# V1ResourceStatus + +ResourceStatus represents the status of a single resource allocated to a Pod. +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**name** | **String** | Name of the resource. Must be unique within the pod and in case of non-DRA resource, match one of the resources from the pod spec. For DRA resources, the value must be \"claim:<claim_name>/<request>\". When this status is reported about a container, the \"claim_name\" and \"request\" must match one of the claims of this container. | +**resources** | [**List<V1ResourceHealth>**](V1ResourceHealth.md) | List of unique resources health. Each element in the list contains an unique resource ID and its health. At a minimum, for the lifetime of a Pod, resource ID must uniquely identify the resource allocated to the Pod on the Node. If other Pod on the same Node reports the status with the same resource ID, it must be the same resource they share. See ResourceID type definition for a specific format it has in various use cases. | [optional] + + + diff --git a/kubernetes/docs/V1RoleBinding.md b/kubernetes/docs/V1RoleBinding.md index b5b6fb6c7d..cc7572ccc0 100644 --- a/kubernetes/docs/V1RoleBinding.md +++ b/kubernetes/docs/V1RoleBinding.md @@ -11,7 +11,7 @@ Name | Type | Description | Notes **kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] **metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] **roleRef** | [**V1RoleRef**](V1RoleRef.md) | | -**subjects** | [**List<V1Subject>**](V1Subject.md) | Subjects holds references to the objects the role applies to. | [optional] +**subjects** | [**List<RbacV1Subject>**](RbacV1Subject.md) | Subjects holds references to the objects the role applies to. | [optional] ## Implemented Interfaces diff --git a/kubernetes/docs/V1SecretEnvSource.md b/kubernetes/docs/V1SecretEnvSource.md index 815cdf5674..aeac8a1b2f 100644 --- a/kubernetes/docs/V1SecretEnvSource.md +++ b/kubernetes/docs/V1SecretEnvSource.md @@ -7,7 +7,7 @@ SecretEnvSource selects a Secret to populate the environment variables with. Th Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**name** | **String** | Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names | [optional] +**name** | **String** | 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 | [optional] **optional** | **Boolean** | Specify whether the Secret must be defined | [optional] diff --git a/kubernetes/docs/V1SecretKeySelector.md b/kubernetes/docs/V1SecretKeySelector.md index f34f2b3116..4b27d7c0c8 100644 --- a/kubernetes/docs/V1SecretKeySelector.md +++ b/kubernetes/docs/V1SecretKeySelector.md @@ -8,7 +8,7 @@ SecretKeySelector selects a key of a Secret. Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **key** | **String** | The key of the secret to select from. Must be a valid secret key. | -**name** | **String** | Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names | [optional] +**name** | **String** | 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 | [optional] **optional** | **Boolean** | Specify whether the Secret or its key must be defined | [optional] diff --git a/kubernetes/docs/V1SecretProjection.md b/kubernetes/docs/V1SecretProjection.md index 3f68363a5e..8a023708e0 100644 --- a/kubernetes/docs/V1SecretProjection.md +++ b/kubernetes/docs/V1SecretProjection.md @@ -8,7 +8,7 @@ Adapts a secret into a projected volume. The contents of the target Secret's Da Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **items** | [**List<V1KeyToPath>**](V1KeyToPath.md) | 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 '..'. | [optional] -**name** | **String** | Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names | [optional] +**name** | **String** | 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 | [optional] **optional** | **Boolean** | optional field specify whether the Secret or its key must be defined | [optional] diff --git a/kubernetes/docs/V1SecurityContext.md b/kubernetes/docs/V1SecurityContext.md index 70ec5b98e7..db2b27c262 100644 --- a/kubernetes/docs/V1SecurityContext.md +++ b/kubernetes/docs/V1SecurityContext.md @@ -8,9 +8,10 @@ SecurityContext holds security configuration that will be applied to a container Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **allowPrivilegeEscalation** | **Boolean** | 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. | [optional] +**appArmorProfile** | [**V1AppArmorProfile**](V1AppArmorProfile.md) | | [optional] **capabilities** | [**V1Capabilities**](V1Capabilities.md) | | [optional] **privileged** | **Boolean** | 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. | [optional] -**procMount** | **String** | procMount denotes the type of proc mount to use for the containers. The default is DefaultProcMount 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. | [optional] +**procMount** | **String** | 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. | [optional] **readOnlyRootFilesystem** | **Boolean** | 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. | [optional] **runAsGroup** | **Long** | 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. | [optional] **runAsNonRoot** | **Boolean** | 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. | [optional] diff --git a/kubernetes/docs/V1SelectableField.md b/kubernetes/docs/V1SelectableField.md new file mode 100644 index 0000000000..0524f3f118 --- /dev/null +++ b/kubernetes/docs/V1SelectableField.md @@ -0,0 +1,13 @@ + + +# V1SelectableField + +SelectableField specifies the JSON path of a field that may be used with field selectors. +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**jsonPath** | **String** | 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. | + + + diff --git a/kubernetes/docs/V1ServiceAccount.md b/kubernetes/docs/V1ServiceAccount.md index e3f858332c..69eac64718 100644 --- a/kubernetes/docs/V1ServiceAccount.md +++ b/kubernetes/docs/V1ServiceAccount.md @@ -12,7 +12,7 @@ Name | Type | Description | Notes **imagePullSecrets** | [**List<V1LocalObjectReference>**](V1LocalObjectReference.md) | 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 | [optional] **kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] **metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] -**secrets** | [**List<V1ObjectReference>**](V1ObjectReference.md) | 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 | [optional] +**secrets** | [**List<V1ObjectReference>**](V1ObjectReference.md) | 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\". The \"kubernetes.io/enforce-mountable-secrets\" annotation is deprecated since v1.32. Prefer separate namespaces to isolate access to mounted secrets. 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 | [optional] ## Implemented Interfaces diff --git a/kubernetes/docs/V1ServiceAccountSubject.md b/kubernetes/docs/V1ServiceAccountSubject.md new file mode 100644 index 0000000000..ccb1d77c4a --- /dev/null +++ b/kubernetes/docs/V1ServiceAccountSubject.md @@ -0,0 +1,14 @@ + + +# V1ServiceAccountSubject + +ServiceAccountSubject holds detailed information for service-account-kind subject. +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**name** | **String** | `name` is the name of matching ServiceAccount objects, or \"*\" to match regardless of name. Required. | +**namespace** | **String** | `namespace` is the namespace of matching ServiceAccount objects. Required. | + + + diff --git a/kubernetes/docs/V1ServiceCIDR.md b/kubernetes/docs/V1ServiceCIDR.md new file mode 100644 index 0000000000..dda42581b0 --- /dev/null +++ b/kubernetes/docs/V1ServiceCIDR.md @@ -0,0 +1,21 @@ + + +# V1ServiceCIDR + +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. +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] +**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] +**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] +**spec** | [**V1ServiceCIDRSpec**](V1ServiceCIDRSpec.md) | | [optional] +**status** | [**V1ServiceCIDRStatus**](V1ServiceCIDRStatus.md) | | [optional] + + +## Implemented Interfaces + +* io.kubernetes.client.common.KubernetesObject + + diff --git a/kubernetes/docs/V1ServiceCIDRList.md b/kubernetes/docs/V1ServiceCIDRList.md new file mode 100644 index 0000000000..3c85781965 --- /dev/null +++ b/kubernetes/docs/V1ServiceCIDRList.md @@ -0,0 +1,20 @@ + + +# V1ServiceCIDRList + +ServiceCIDRList contains a list of ServiceCIDR objects. +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] +**items** | [**List<V1ServiceCIDR>**](V1ServiceCIDR.md) | items is the list of ServiceCIDRs. | +**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] +**metadata** | [**V1ListMeta**](V1ListMeta.md) | | [optional] + + +## Implemented Interfaces + +* io.kubernetes.client.common.KubernetesListObject + + diff --git a/kubernetes/docs/V1ServiceCIDRSpec.md b/kubernetes/docs/V1ServiceCIDRSpec.md new file mode 100644 index 0000000000..0a86f28a78 --- /dev/null +++ b/kubernetes/docs/V1ServiceCIDRSpec.md @@ -0,0 +1,13 @@ + + +# V1ServiceCIDRSpec + +ServiceCIDRSpec define the CIDRs the user wants to use for allocating ClusterIPs for Services. +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**cidrs** | **List<String>** | 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. | [optional] + + + diff --git a/kubernetes/docs/V1ServiceCIDRStatus.md b/kubernetes/docs/V1ServiceCIDRStatus.md new file mode 100644 index 0000000000..168dced179 --- /dev/null +++ b/kubernetes/docs/V1ServiceCIDRStatus.md @@ -0,0 +1,13 @@ + + +# V1ServiceCIDRStatus + +ServiceCIDRStatus describes the current state of the ServiceCIDR. +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**conditions** | [**List<V1Condition>**](V1Condition.md) | conditions holds an array of metav1.Condition that describe the state of the ServiceCIDR. Current service state | [optional] + + + diff --git a/kubernetes/docs/V1ServicePort.md b/kubernetes/docs/V1ServicePort.md index 99d71817b0..15bf27f65c 100644 --- a/kubernetes/docs/V1ServicePort.md +++ b/kubernetes/docs/V1ServicePort.md @@ -7,7 +7,7 @@ ServicePort contains information on service's port. Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**appProtocol** | **String** | 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 over cleartext as described in https://www.rfc-editor.org/rfc/rfc7540 * '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. | [optional] +**appProtocol** | **String** | 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. | [optional] **name** | **String** | 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. | [optional] **nodePort** | **Integer** | 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 | [optional] **port** | **Integer** | The port that will be exposed by this service. | diff --git a/kubernetes/docs/V1ServiceSpec.md b/kubernetes/docs/V1ServiceSpec.md index a03a9aca03..6625512dc1 100644 --- a/kubernetes/docs/V1ServiceSpec.md +++ b/kubernetes/docs/V1ServiceSpec.md @@ -25,6 +25,7 @@ Name | Type | Description | Notes **selector** | **Map<String, String>** | 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/ | [optional] **sessionAffinity** | **String** | 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 | [optional] **sessionAffinityConfig** | [**V1SessionAffinityConfig**](V1SessionAffinityConfig.md) | | [optional] +**trafficDistribution** | **String** | 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 in the same zone. | [optional] **type** | **String** | 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 | [optional] diff --git a/kubernetes/docs/V1SleepAction.md b/kubernetes/docs/V1SleepAction.md new file mode 100644 index 0000000000..f881f4e59e --- /dev/null +++ b/kubernetes/docs/V1SleepAction.md @@ -0,0 +1,13 @@ + + +# V1SleepAction + +SleepAction describes a \"sleep\" action. +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**seconds** | **Long** | Seconds is the number of seconds to sleep. | + + + diff --git a/kubernetes/docs/V1StatefulSetSpec.md b/kubernetes/docs/V1StatefulSetSpec.md index 0defbebcff..e5ebf3f3cb 100644 --- a/kubernetes/docs/V1StatefulSetSpec.md +++ b/kubernetes/docs/V1StatefulSetSpec.md @@ -14,7 +14,7 @@ Name | Type | Description | Notes **replicas** | **Integer** | 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. | [optional] **revisionHistoryLimit** | **Integer** | 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. | [optional] **selector** | [**V1LabelSelector**](V1LabelSelector.md) | | -**serviceName** | **String** | 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. | +**serviceName** | **String** | 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. | [optional] **template** | [**V1PodTemplateSpec**](V1PodTemplateSpec.md) | | **updateStrategy** | [**V1StatefulSetUpdateStrategy**](V1StatefulSetUpdateStrategy.md) | | [optional] **volumeClaimTemplates** | [**List<V1PersistentVolumeClaim>**](V1PersistentVolumeClaim.md) | 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. | [optional] diff --git a/kubernetes/docs/V1Subject.md b/kubernetes/docs/V1Subject.md deleted file mode 100644 index e7b08a560a..0000000000 --- a/kubernetes/docs/V1Subject.md +++ /dev/null @@ -1,16 +0,0 @@ - - -# V1Subject - -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. -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**apiGroup** | **String** | 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. | [optional] -**kind** | **String** | 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. | -**name** | **String** | Name of the object being referenced. | -**namespace** | **String** | 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. | [optional] - - - diff --git a/kubernetes/docs/V1SuccessPolicy.md b/kubernetes/docs/V1SuccessPolicy.md new file mode 100644 index 0000000000..a4cb9691bc --- /dev/null +++ b/kubernetes/docs/V1SuccessPolicy.md @@ -0,0 +1,13 @@ + + +# V1SuccessPolicy + +SuccessPolicy describes when a Job can be declared as succeeded based on the success of some indexes. +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**rules** | [**List<V1SuccessPolicyRule>**](V1SuccessPolicyRule.md) | 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. | + + + diff --git a/kubernetes/docs/V1SuccessPolicyRule.md b/kubernetes/docs/V1SuccessPolicyRule.md new file mode 100644 index 0000000000..61e0c0489e --- /dev/null +++ b/kubernetes/docs/V1SuccessPolicyRule.md @@ -0,0 +1,14 @@ + + +# V1SuccessPolicyRule + +SuccessPolicyRule describes rule for declaring a Job as succeeded. Each rule must have at least one of the \"succeededIndexes\" or \"succeededCount\" specified. +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**succeededCount** | **Integer** | 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. | [optional] +**succeededIndexes** | **String** | 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. | [optional] + + + diff --git a/kubernetes/docs/V1TopologySpreadConstraint.md b/kubernetes/docs/V1TopologySpreadConstraint.md index a015f491e8..62b7f6ebfb 100644 --- a/kubernetes/docs/V1TopologySpreadConstraint.md +++ b/kubernetes/docs/V1TopologySpreadConstraint.md @@ -10,9 +10,9 @@ Name | Type | Description | Notes **labelSelector** | [**V1LabelSelector**](V1LabelSelector.md) | | [optional] **matchLabelKeys** | **List<String>** | 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). | [optional] **maxSkew** | **Integer** | 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. | -**minDomains** | **Integer** | 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. This is a beta field and requires the MinDomainsInPodTopologySpread feature gate to be enabled (enabled by default). | [optional] -**nodeAffinityPolicy** | **String** | 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. | [optional] -**nodeTaintsPolicy** | **String** | 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. | [optional] +**minDomains** | **Integer** | 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. | [optional] +**nodeAffinityPolicy** | **String** | 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. | [optional] +**nodeTaintsPolicy** | **String** | 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. | [optional] **topologyKey** | **String** | 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 <key, value> 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. | **whenUnsatisfiable** | **String** | 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. | diff --git a/kubernetes/docs/V1TypeChecking.md b/kubernetes/docs/V1TypeChecking.md new file mode 100644 index 0000000000..cf86efed7d --- /dev/null +++ b/kubernetes/docs/V1TypeChecking.md @@ -0,0 +1,13 @@ + + +# V1TypeChecking + +TypeChecking contains results of type checking the expressions in the ValidatingAdmissionPolicy +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**expressionWarnings** | [**List<V1ExpressionWarning>**](V1ExpressionWarning.md) | The type checking warnings for each expression. | [optional] + + + diff --git a/kubernetes/docs/V1TypedObjectReference.md b/kubernetes/docs/V1TypedObjectReference.md index c5aeec7b04..eb3674bbfa 100644 --- a/kubernetes/docs/V1TypedObjectReference.md +++ b/kubernetes/docs/V1TypedObjectReference.md @@ -2,6 +2,7 @@ # V1TypedObjectReference +TypedObjectReference contains enough information to let you locate the typed referenced object ## Properties Name | Type | Description | Notes diff --git a/kubernetes/docs/V1UserSubject.md b/kubernetes/docs/V1UserSubject.md new file mode 100644 index 0000000000..f4bd35c1b6 --- /dev/null +++ b/kubernetes/docs/V1UserSubject.md @@ -0,0 +1,13 @@ + + +# V1UserSubject + +UserSubject holds detailed information for user-kind subject. +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**name** | **String** | `name` is the username that matches, or \"*\" to match all usernames. Required. | + + + diff --git a/kubernetes/docs/V1ValidatingAdmissionPolicy.md b/kubernetes/docs/V1ValidatingAdmissionPolicy.md new file mode 100644 index 0000000000..fdbb78b270 --- /dev/null +++ b/kubernetes/docs/V1ValidatingAdmissionPolicy.md @@ -0,0 +1,21 @@ + + +# V1ValidatingAdmissionPolicy + +ValidatingAdmissionPolicy describes the definition of an admission validation policy that accepts or rejects an object without changing it. +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] +**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] +**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] +**spec** | [**V1ValidatingAdmissionPolicySpec**](V1ValidatingAdmissionPolicySpec.md) | | [optional] +**status** | [**V1ValidatingAdmissionPolicyStatus**](V1ValidatingAdmissionPolicyStatus.md) | | [optional] + + +## Implemented Interfaces + +* io.kubernetes.client.common.KubernetesObject + + diff --git a/kubernetes/docs/V1ValidatingAdmissionPolicyBinding.md b/kubernetes/docs/V1ValidatingAdmissionPolicyBinding.md new file mode 100644 index 0000000000..89429a43f1 --- /dev/null +++ b/kubernetes/docs/V1ValidatingAdmissionPolicyBinding.md @@ -0,0 +1,20 @@ + + +# V1ValidatingAdmissionPolicyBinding + +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. +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] +**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] +**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] +**spec** | [**V1ValidatingAdmissionPolicyBindingSpec**](V1ValidatingAdmissionPolicyBindingSpec.md) | | [optional] + + +## Implemented Interfaces + +* io.kubernetes.client.common.KubernetesObject + + diff --git a/kubernetes/docs/V1ValidatingAdmissionPolicyBindingList.md b/kubernetes/docs/V1ValidatingAdmissionPolicyBindingList.md new file mode 100644 index 0000000000..deb2f33cc8 --- /dev/null +++ b/kubernetes/docs/V1ValidatingAdmissionPolicyBindingList.md @@ -0,0 +1,20 @@ + + +# V1ValidatingAdmissionPolicyBindingList + +ValidatingAdmissionPolicyBindingList is a list of ValidatingAdmissionPolicyBinding. +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] +**items** | [**List<V1ValidatingAdmissionPolicyBinding>**](V1ValidatingAdmissionPolicyBinding.md) | List of PolicyBinding. | +**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] +**metadata** | [**V1ListMeta**](V1ListMeta.md) | | [optional] + + +## Implemented Interfaces + +* io.kubernetes.client.common.KubernetesListObject + + diff --git a/kubernetes/docs/V1ValidatingAdmissionPolicyBindingSpec.md b/kubernetes/docs/V1ValidatingAdmissionPolicyBindingSpec.md new file mode 100644 index 0000000000..d642a23351 --- /dev/null +++ b/kubernetes/docs/V1ValidatingAdmissionPolicyBindingSpec.md @@ -0,0 +1,16 @@ + + +# V1ValidatingAdmissionPolicyBindingSpec + +ValidatingAdmissionPolicyBindingSpec is the specification of the ValidatingAdmissionPolicyBinding. +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**matchResources** | [**V1MatchResources**](V1MatchResources.md) | | [optional] +**paramRef** | [**V1ParamRef**](V1ParamRef.md) | | [optional] +**policyName** | **String** | 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. | [optional] +**validationActions** | **List<String>** | 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. | [optional] + + + diff --git a/kubernetes/docs/V1ValidatingAdmissionPolicyList.md b/kubernetes/docs/V1ValidatingAdmissionPolicyList.md new file mode 100644 index 0000000000..70b4ac3b4c --- /dev/null +++ b/kubernetes/docs/V1ValidatingAdmissionPolicyList.md @@ -0,0 +1,20 @@ + + +# V1ValidatingAdmissionPolicyList + +ValidatingAdmissionPolicyList is a list of ValidatingAdmissionPolicy. +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] +**items** | [**List<V1ValidatingAdmissionPolicy>**](V1ValidatingAdmissionPolicy.md) | List of ValidatingAdmissionPolicy. | +**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] +**metadata** | [**V1ListMeta**](V1ListMeta.md) | | [optional] + + +## Implemented Interfaces + +* io.kubernetes.client.common.KubernetesListObject + + diff --git a/kubernetes/docs/V1ValidatingAdmissionPolicySpec.md b/kubernetes/docs/V1ValidatingAdmissionPolicySpec.md new file mode 100644 index 0000000000..4fb0f37840 --- /dev/null +++ b/kubernetes/docs/V1ValidatingAdmissionPolicySpec.md @@ -0,0 +1,19 @@ + + +# V1ValidatingAdmissionPolicySpec + +ValidatingAdmissionPolicySpec is the specification of the desired behavior of the AdmissionPolicy. +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**auditAnnotations** | [**List<V1AuditAnnotation>**](V1AuditAnnotation.md) | 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. | [optional] +**failurePolicy** | **String** | 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. | [optional] +**matchConditions** | [**List<V1MatchCondition>**](V1MatchCondition.md) | 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 | [optional] +**matchConstraints** | [**V1MatchResources**](V1MatchResources.md) | | [optional] +**paramKind** | [**V1ParamKind**](V1ParamKind.md) | | [optional] +**validations** | [**List<V1Validation>**](V1Validation.md) | 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. | [optional] +**variables** | [**List<V1Variable>**](V1Variable.md) | 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. | [optional] + + + diff --git a/kubernetes/docs/V1ValidatingAdmissionPolicyStatus.md b/kubernetes/docs/V1ValidatingAdmissionPolicyStatus.md new file mode 100644 index 0000000000..a94ff123d9 --- /dev/null +++ b/kubernetes/docs/V1ValidatingAdmissionPolicyStatus.md @@ -0,0 +1,15 @@ + + +# V1ValidatingAdmissionPolicyStatus + +ValidatingAdmissionPolicyStatus represents the status of an admission validation policy. +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**conditions** | [**List<V1Condition>**](V1Condition.md) | The conditions represent the latest available observations of a policy's current state. | [optional] +**observedGeneration** | **Long** | The generation observed by the controller. | [optional] +**typeChecking** | [**V1TypeChecking**](V1TypeChecking.md) | | [optional] + + + diff --git a/kubernetes/docs/V1ValidatingWebhook.md b/kubernetes/docs/V1ValidatingWebhook.md index ad2be24a46..4e1394054a 100644 --- a/kubernetes/docs/V1ValidatingWebhook.md +++ b/kubernetes/docs/V1ValidatingWebhook.md @@ -10,7 +10,7 @@ Name | Type | Description | Notes **admissionReviewVersions** | **List<String>** | 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. | **clientConfig** | [**AdmissionregistrationV1WebhookClientConfig**](AdmissionregistrationV1WebhookClientConfig.md) | | **failurePolicy** | **String** | FailurePolicy defines how unrecognized errors from the admission endpoint are handled - allowed values are Ignore or Fail. Defaults to Fail. | [optional] -**matchConditions** | [**List<V1MatchCondition>**](V1MatchCondition.md) | 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 This is a beta feature and managed by the AdmissionWebhookMatchConditions feature gate. | [optional] +**matchConditions** | [**List<V1MatchCondition>**](V1MatchCondition.md) | 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 | [optional] **matchPolicy** | **String** | 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\" | [optional] **name** | **String** | 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. | **namespaceSelector** | [**V1LabelSelector**](V1LabelSelector.md) | | [optional] diff --git a/kubernetes/docs/V1Validation.md b/kubernetes/docs/V1Validation.md new file mode 100644 index 0000000000..d4173066cf --- /dev/null +++ b/kubernetes/docs/V1Validation.md @@ -0,0 +1,16 @@ + + +# V1Validation + +Validation specifies the CEL expression which is used to apply the validation. +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**expression** | **String** | 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. | +**message** | **String** | 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}\". | [optional] +**messageExpression** | **String** | 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)+\")\" | [optional] +**reason** | **String** | 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. | [optional] + + + diff --git a/kubernetes/docs/V1ValidationRule.md b/kubernetes/docs/V1ValidationRule.md index 7975d98004..f70effb7d2 100644 --- a/kubernetes/docs/V1ValidationRule.md +++ b/kubernetes/docs/V1ValidationRule.md @@ -10,8 +10,9 @@ Name | Type | Description | Notes **fieldPath** | **String** | 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$']` | [optional] **message** | **String** | 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\" | [optional] **messageExpression** | **String** | 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)+\")\" | [optional] +**optionalOldSelf** | **Boolean** | 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`. | [optional] **reason** | **String** | 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. | [optional] -**rule** | **String** | 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. | +**rule** | **String** | 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. | diff --git a/kubernetes/docs/V1Variable.md b/kubernetes/docs/V1Variable.md new file mode 100644 index 0000000000..73b021a34d --- /dev/null +++ b/kubernetes/docs/V1Variable.md @@ -0,0 +1,14 @@ + + +# V1Variable + +Variable is the definition of a variable that is used for composition. A variable is defined as a named expression. +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**expression** | **String** | 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. | +**name** | **String** | 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` | + + + diff --git a/kubernetes/docs/V1Volume.md b/kubernetes/docs/V1Volume.md index 33b96a0985..46c0961088 100644 --- a/kubernetes/docs/V1Volume.md +++ b/kubernetes/docs/V1Volume.md @@ -24,6 +24,7 @@ Name | Type | Description | Notes **gitRepo** | [**V1GitRepoVolumeSource**](V1GitRepoVolumeSource.md) | | [optional] **glusterfs** | [**V1GlusterfsVolumeSource**](V1GlusterfsVolumeSource.md) | | [optional] **hostPath** | [**V1HostPathVolumeSource**](V1HostPathVolumeSource.md) | | [optional] +**image** | [**V1ImageVolumeSource**](V1ImageVolumeSource.md) | | [optional] **iscsi** | [**V1ISCSIVolumeSource**](V1ISCSIVolumeSource.md) | | [optional] **name** | **String** | 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 | **nfs** | [**V1NFSVolumeSource**](V1NFSVolumeSource.md) | | [optional] diff --git a/kubernetes/docs/V1VolumeAttachmentSource.md b/kubernetes/docs/V1VolumeAttachmentSource.md index 2aa506c144..651f40ab91 100644 --- a/kubernetes/docs/V1VolumeAttachmentSource.md +++ b/kubernetes/docs/V1VolumeAttachmentSource.md @@ -2,7 +2,7 @@ # V1VolumeAttachmentSource -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. +VolumeAttachmentSource represents a volume that should be attached. Right now only PersistentVolumes can be attached via external attacher, in the future we may allow also inline volumes in pods. Exactly one member can be set. ## Properties Name | Type | Description | Notes diff --git a/kubernetes/docs/V1VolumeError.md b/kubernetes/docs/V1VolumeError.md index 6aeb2676f6..b540d91d21 100644 --- a/kubernetes/docs/V1VolumeError.md +++ b/kubernetes/docs/V1VolumeError.md @@ -7,6 +7,7 @@ VolumeError captures an error encountered during a volume operation. Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**errorCode** | **Integer** | errorCode is a numeric gRPC code representing the error encountered during Attach or Detach operations. This is an optional, alpha field that requires the MutableCSINodeAllocatableCount feature gate being enabled to be set. | [optional] **message** | **String** | message represents the error encountered during Attach or Detach operation. This string may be logged, so it should not contain sensitive information. | [optional] **time** | [**OffsetDateTime**](OffsetDateTime.md) | time represents the time the error was encountered. | [optional] diff --git a/kubernetes/docs/V1VolumeMount.md b/kubernetes/docs/V1VolumeMount.md index 7aad8281fa..fdabfc8bba 100644 --- a/kubernetes/docs/V1VolumeMount.md +++ b/kubernetes/docs/V1VolumeMount.md @@ -8,9 +8,10 @@ VolumeMount describes a mounting of a Volume within a container. Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **mountPath** | **String** | Path within the container at which the volume should be mounted. Must not contain ':'. | -**mountPropagation** | **String** | 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. | [optional] +**mountPropagation** | **String** | 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). | [optional] **name** | **String** | This must match the Name of a Volume. | **readOnly** | **Boolean** | Mounted read-only if true, read-write otherwise (false or unspecified). Defaults to false. | [optional] +**recursiveReadOnly** | **String** | 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. | [optional] **subPath** | **String** | Path within the volume from which the container's volume should be mounted. Defaults to \"\" (volume's root). | [optional] **subPathExpr** | **String** | 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. | [optional] diff --git a/kubernetes/docs/V1VolumeMountStatus.md b/kubernetes/docs/V1VolumeMountStatus.md new file mode 100644 index 0000000000..32d9225f09 --- /dev/null +++ b/kubernetes/docs/V1VolumeMountStatus.md @@ -0,0 +1,16 @@ + + +# V1VolumeMountStatus + +VolumeMountStatus shows status of volume mounts. +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**mountPath** | **String** | MountPath corresponds to the original VolumeMount. | +**name** | **String** | Name corresponds to the name of the original VolumeMount. | +**readOnly** | **Boolean** | ReadOnly corresponds to the original VolumeMount. | [optional] +**recursiveReadOnly** | **String** | 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. | [optional] + + + diff --git a/kubernetes/docs/V1VolumeProjection.md b/kubernetes/docs/V1VolumeProjection.md index afe552ed84..55dfc80c33 100644 --- a/kubernetes/docs/V1VolumeProjection.md +++ b/kubernetes/docs/V1VolumeProjection.md @@ -2,11 +2,12 @@ # V1VolumeProjection -Projection that may be projected along with other supported volume types +Projection that may be projected along with other supported volume types. Exactly one of these fields must be set. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**clusterTrustBundle** | [**V1ClusterTrustBundleProjection**](V1ClusterTrustBundleProjection.md) | | [optional] **configMap** | [**V1ConfigMapProjection**](V1ConfigMapProjection.md) | | [optional] **downwardAPI** | [**V1DownwardAPIProjection**](V1DownwardAPIProjection.md) | | [optional] **secret** | [**V1SecretProjection**](V1SecretProjection.md) | | [optional] diff --git a/kubernetes/docs/V1VolumeResourceRequirements.md b/kubernetes/docs/V1VolumeResourceRequirements.md new file mode 100644 index 0000000000..1e2e30c40b --- /dev/null +++ b/kubernetes/docs/V1VolumeResourceRequirements.md @@ -0,0 +1,14 @@ + + +# V1VolumeResourceRequirements + +VolumeResourceRequirements describes the storage resource requirements for a volume. +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**limits** | [**Map<String, Quantity>**](Quantity.md) | Limits describes the maximum amount of compute resources allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/ | [optional] +**requests** | [**Map<String, Quantity>**](Quantity.md) | 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/ | [optional] + + + diff --git a/kubernetes/docs/V1alpha1ApplyConfiguration.md b/kubernetes/docs/V1alpha1ApplyConfiguration.md new file mode 100644 index 0000000000..e8c5aa8a69 --- /dev/null +++ b/kubernetes/docs/V1alpha1ApplyConfiguration.md @@ -0,0 +1,13 @@ + + +# V1alpha1ApplyConfiguration + +ApplyConfiguration defines the desired configuration values of an object. +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**expression** | **String** | expression will be evaluated by CEL to create an apply configuration. ref: https://github.com/google/cel-spec Apply configurations are declared in CEL using object initialization. For example, this CEL expression returns an apply configuration to set a single field: Object{ spec: Object.spec{ serviceAccountName: \"example\" } } Apply configurations may not modify atomic structs, maps or arrays due to the risk of accidental deletion of values not included in the apply configuration. CEL expressions have access to the object types needed to create apply configurations: - 'Object' - CEL type of the resource object. - 'Object.<fieldName>' - CEL type of object field (such as 'Object.spec') - 'Object.<fieldName1>.<fieldName2>...<fieldNameN>` - CEL type of nested field (such as 'Object.spec.containers') CEL expressions have access to the contents of the API request, 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. Required. | [optional] + + + diff --git a/kubernetes/docs/V1alpha1AuditAnnotation.md b/kubernetes/docs/V1alpha1AuditAnnotation.md deleted file mode 100644 index 173dec2e77..0000000000 --- a/kubernetes/docs/V1alpha1AuditAnnotation.md +++ /dev/null @@ -1,14 +0,0 @@ - - -# V1alpha1AuditAnnotation - -AuditAnnotation describes how to produce an audit annotation for an API request. -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**key** | **String** | 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. | -**valueExpression** | **String** | 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. | - - - diff --git a/kubernetes/docs/V1alpha1ClusterCIDR.md b/kubernetes/docs/V1alpha1ClusterCIDR.md deleted file mode 100644 index 525601be2e..0000000000 --- a/kubernetes/docs/V1alpha1ClusterCIDR.md +++ /dev/null @@ -1,20 +0,0 @@ - - -# V1alpha1ClusterCIDR - -ClusterCIDR represents a single configuration for per-Node Pod CIDR allocations when the MultiCIDRRangeAllocator is enabled (see the config for kube-controller-manager). A cluster may have any number of ClusterCIDR resources, all of which will be considered when allocating a CIDR for a Node. A ClusterCIDR is eligible to be used for a given Node when the node selector matches the node in question and has free CIDRs to allocate. In case of multiple matching ClusterCIDR resources, the allocator will attempt to break ties using internal heuristics, but any ClusterCIDR whose node selector matches the Node may be used. -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] -**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] -**spec** | [**V1alpha1ClusterCIDRSpec**](V1alpha1ClusterCIDRSpec.md) | | [optional] - - -## Implemented Interfaces - -* io.kubernetes.client.common.KubernetesObject - - diff --git a/kubernetes/docs/V1alpha1ClusterCIDRList.md b/kubernetes/docs/V1alpha1ClusterCIDRList.md deleted file mode 100644 index 4d7c42fdf2..0000000000 --- a/kubernetes/docs/V1alpha1ClusterCIDRList.md +++ /dev/null @@ -1,20 +0,0 @@ - - -# V1alpha1ClusterCIDRList - -ClusterCIDRList contains a list of ClusterCIDR. -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] -**items** | [**List<V1alpha1ClusterCIDR>**](V1alpha1ClusterCIDR.md) | items is the list of ClusterCIDRs. | -**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ListMeta**](V1ListMeta.md) | | [optional] - - -## Implemented Interfaces - -* io.kubernetes.client.common.KubernetesListObject - - diff --git a/kubernetes/docs/V1alpha1ClusterCIDRSpec.md b/kubernetes/docs/V1alpha1ClusterCIDRSpec.md deleted file mode 100644 index 08cf3fde4e..0000000000 --- a/kubernetes/docs/V1alpha1ClusterCIDRSpec.md +++ /dev/null @@ -1,16 +0,0 @@ - - -# V1alpha1ClusterCIDRSpec - -ClusterCIDRSpec defines the desired state of ClusterCIDR. -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**ipv4** | **String** | ipv4 defines an IPv4 IP block in CIDR notation(e.g. \"10.0.0.0/8\"). At least one of ipv4 and ipv6 must be specified. This field is immutable. | [optional] -**ipv6** | **String** | ipv6 defines an IPv6 IP block in CIDR notation(e.g. \"2001:db8::/64\"). At least one of ipv4 and ipv6 must be specified. This field is immutable. | [optional] -**nodeSelector** | [**V1NodeSelector**](V1NodeSelector.md) | | [optional] -**perNodeHostBits** | **Integer** | perNodeHostBits defines the number of host bits to be configured per node. A subnet mask determines how much of the address is used for network bits and host bits. For example an IPv4 address of 192.168.0.0/24, splits the address into 24 bits for the network portion and 8 bits for the host portion. To allocate 256 IPs, set this field to 8 (a /24 mask for IPv4 or a /120 for IPv6). Minimum value is 4 (16 IPs). This field is immutable. | - - - diff --git a/kubernetes/docs/V1alpha1ExpressionWarning.md b/kubernetes/docs/V1alpha1ExpressionWarning.md deleted file mode 100644 index d13791f315..0000000000 --- a/kubernetes/docs/V1alpha1ExpressionWarning.md +++ /dev/null @@ -1,14 +0,0 @@ - - -# V1alpha1ExpressionWarning - -ExpressionWarning is a warning information that targets a specific expression. -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**fieldRef** | **String** | 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\" | -**warning** | **String** | 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. | - - - diff --git a/kubernetes/docs/V1alpha1GroupVersionResource.md b/kubernetes/docs/V1alpha1GroupVersionResource.md new file mode 100644 index 0000000000..e6ac68c480 --- /dev/null +++ b/kubernetes/docs/V1alpha1GroupVersionResource.md @@ -0,0 +1,15 @@ + + +# V1alpha1GroupVersionResource + +The names of the group, the version, and the resource. +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**group** | **String** | The name of the group. | [optional] +**resource** | **String** | The name of the resource. | [optional] +**version** | **String** | The name of the version. | [optional] + + + diff --git a/kubernetes/docs/V1alpha1IPAddress.md b/kubernetes/docs/V1alpha1IPAddress.md deleted file mode 100644 index 3a9d2ca552..0000000000 --- a/kubernetes/docs/V1alpha1IPAddress.md +++ /dev/null @@ -1,20 +0,0 @@ - - -# V1alpha1IPAddress - -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 -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] -**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] -**spec** | [**V1alpha1IPAddressSpec**](V1alpha1IPAddressSpec.md) | | [optional] - - -## Implemented Interfaces - -* io.kubernetes.client.common.KubernetesObject - - diff --git a/kubernetes/docs/V1alpha1IPAddressList.md b/kubernetes/docs/V1alpha1IPAddressList.md deleted file mode 100644 index 1dac25a27d..0000000000 --- a/kubernetes/docs/V1alpha1IPAddressList.md +++ /dev/null @@ -1,20 +0,0 @@ - - -# V1alpha1IPAddressList - -IPAddressList contains a list of IPAddress. -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] -**items** | [**List<V1alpha1IPAddress>**](V1alpha1IPAddress.md) | items is the list of IPAddresses. | -**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ListMeta**](V1ListMeta.md) | | [optional] - - -## Implemented Interfaces - -* io.kubernetes.client.common.KubernetesListObject - - diff --git a/kubernetes/docs/V1alpha1IPAddressSpec.md b/kubernetes/docs/V1alpha1IPAddressSpec.md deleted file mode 100644 index eb4722cd41..0000000000 --- a/kubernetes/docs/V1alpha1IPAddressSpec.md +++ /dev/null @@ -1,13 +0,0 @@ - - -# V1alpha1IPAddressSpec - -IPAddressSpec describe the attributes in an IP Address. -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**parentRef** | [**V1alpha1ParentReference**](V1alpha1ParentReference.md) | | [optional] - - - diff --git a/kubernetes/docs/V1alpha1JSONPatch.md b/kubernetes/docs/V1alpha1JSONPatch.md new file mode 100644 index 0000000000..20d267789e --- /dev/null +++ b/kubernetes/docs/V1alpha1JSONPatch.md @@ -0,0 +1,13 @@ + + +# V1alpha1JSONPatch + +JSONPatch defines a JSON Patch. +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**expression** | **String** | expression will be evaluated by CEL to create a [JSON patch](https://jsonpatch.com/). ref: https://github.com/google/cel-spec expression must return an array of JSONPatch values. For example, this CEL expression returns a JSON patch to conditionally modify a value: [ JSONPatch{op: \"test\", path: \"/spec/example\", value: \"Red\"}, JSONPatch{op: \"replace\", path: \"/spec/example\", value: \"Green\"} ] To define an object for the patch value, use Object types. For example: [ JSONPatch{ op: \"add\", path: \"/spec/selector\", value: Object.spec.selector{matchLabels: {\"environment\": \"test\"}} } ] To use strings containing '/' and '~' as JSONPatch path keys, use \"jsonpatch.escapeKey\". For example: [ JSONPatch{ op: \"add\", path: \"/metadata/labels/\" + jsonpatch.escapeKey(\"example.com/environment\"), value: \"test\" }, ] CEL expressions have access to the types needed to create JSON patches and objects: - 'JSONPatch' - CEL type of JSON Patch operations. JSONPatch has the fields 'op', 'from', 'path' and 'value'. See [JSON patch](https://jsonpatch.com/) for more details. The 'value' field may be set to any of: string, integer, array, map or object. If set, the 'path' and 'from' fields must be set to a [JSON pointer](https://datatracker.ietf.org/doc/html/rfc6901/) string, where the 'jsonpatch.escapeKey()' CEL function may be used to escape path keys containing '/' and '~'. - 'Object' - CEL type of the resource object. - 'Object.<fieldName>' - CEL type of object field (such as 'Object.spec') - 'Object.<fieldName1>.<fieldName2>...<fieldNameN>` - CEL type of nested field (such as 'Object.spec.containers') CEL expressions have access to the contents of the API request, 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. CEL expressions have access to [Kubernetes CEL function libraries](https://kubernetes.io/docs/reference/using-api/cel/#cel-options-language-features-and-libraries) as well as: - 'jsonpatch.escapeKey' - Performs JSONPatch key escaping. '~' and '/' are escaped as '~0' and `~1' respectively). Only property names of the form `[a-zA-Z_.-/][a-zA-Z0-9_.-/]*` are accessible. Required. | [optional] + + + diff --git a/kubernetes/docs/V1alpha1MatchResources.md b/kubernetes/docs/V1alpha1MatchResources.md index 0b0dc62811..4aff2cf776 100644 --- a/kubernetes/docs/V1alpha1MatchResources.md +++ b/kubernetes/docs/V1alpha1MatchResources.md @@ -7,11 +7,11 @@ MatchResources decides whether to run the admission control policy on an object Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**excludeResourceRules** | [**List<V1alpha1NamedRuleWithOperations>**](V1alpha1NamedRuleWithOperations.md) | 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) | [optional] -**matchPolicy** | **String** | 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\" | [optional] +**excludeResourceRules** | [**List<V1alpha1NamedRuleWithOperations>**](V1alpha1NamedRuleWithOperations.md) | ExcludeResourceRules describes what operations on what resources/subresources the policy should not care about. The exclude rules take precedence over include rules (if a resource matches both, it is excluded) | [optional] +**matchPolicy** | **String** | 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\"]`, the admission policy does not consider requests to apps/v1beta1 or extensions/v1beta1 API groups. - 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\"]`, the admission policy **does** consider requests made to apps/v1beta1 or extensions/v1beta1 API groups. The API server translates the request to a matched resource API if necessary. Defaults to \"Equivalent\" | [optional] **namespaceSelector** | [**V1LabelSelector**](V1LabelSelector.md) | | [optional] **objectSelector** | [**V1LabelSelector**](V1LabelSelector.md) | | [optional] -**resourceRules** | [**List<V1alpha1NamedRuleWithOperations>**](V1alpha1NamedRuleWithOperations.md) | ResourceRules describes what operations on what resources/subresources the ValidatingAdmissionPolicy matches. The policy cares about an operation if it matches _any_ Rule. | [optional] +**resourceRules** | [**List<V1alpha1NamedRuleWithOperations>**](V1alpha1NamedRuleWithOperations.md) | ResourceRules describes what operations on what resources/subresources the admission policy matches. The policy cares about an operation if it matches _any_ Rule. | [optional] diff --git a/kubernetes/docs/V1alpha1MigrationCondition.md b/kubernetes/docs/V1alpha1MigrationCondition.md new file mode 100644 index 0000000000..c52aa3d698 --- /dev/null +++ b/kubernetes/docs/V1alpha1MigrationCondition.md @@ -0,0 +1,17 @@ + + +# V1alpha1MigrationCondition + +Describes the state of a migration at a certain point. +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**lastUpdateTime** | [**OffsetDateTime**](OffsetDateTime.md) | The last time this condition was updated. | [optional] +**message** | **String** | A human readable message indicating details about the transition. | [optional] +**reason** | **String** | The reason for the condition's last transition. | [optional] +**status** | **String** | Status of the condition, one of True, False, Unknown. | +**type** | **String** | Type of the condition. | + + + diff --git a/kubernetes/docs/V1alpha1MutatingAdmissionPolicy.md b/kubernetes/docs/V1alpha1MutatingAdmissionPolicy.md new file mode 100644 index 0000000000..ebf5e1e948 --- /dev/null +++ b/kubernetes/docs/V1alpha1MutatingAdmissionPolicy.md @@ -0,0 +1,20 @@ + + +# V1alpha1MutatingAdmissionPolicy + +MutatingAdmissionPolicy describes the definition of an admission mutation policy that mutates the object coming into admission chain. +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] +**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] +**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] +**spec** | [**V1alpha1MutatingAdmissionPolicySpec**](V1alpha1MutatingAdmissionPolicySpec.md) | | [optional] + + +## Implemented Interfaces + +* io.kubernetes.client.common.KubernetesObject + + diff --git a/kubernetes/docs/V1alpha1MutatingAdmissionPolicyBinding.md b/kubernetes/docs/V1alpha1MutatingAdmissionPolicyBinding.md new file mode 100644 index 0000000000..517c35825c --- /dev/null +++ b/kubernetes/docs/V1alpha1MutatingAdmissionPolicyBinding.md @@ -0,0 +1,20 @@ + + +# V1alpha1MutatingAdmissionPolicyBinding + +MutatingAdmissionPolicyBinding binds the MutatingAdmissionPolicy with parametrized resources. MutatingAdmissionPolicyBinding and the optional parameter resource 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. Each evaluation is constrained by a [runtime cost budget](https://kubernetes.io/docs/reference/using-api/cel/#runtime-cost-budget). Adding/removing policies, bindings, or params can not affect whether a given (policy, binding, param) combination is within its own CEL budget. +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] +**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] +**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] +**spec** | [**V1alpha1MutatingAdmissionPolicyBindingSpec**](V1alpha1MutatingAdmissionPolicyBindingSpec.md) | | [optional] + + +## Implemented Interfaces + +* io.kubernetes.client.common.KubernetesObject + + diff --git a/kubernetes/docs/V1alpha1MutatingAdmissionPolicyBindingList.md b/kubernetes/docs/V1alpha1MutatingAdmissionPolicyBindingList.md new file mode 100644 index 0000000000..76070e68c2 --- /dev/null +++ b/kubernetes/docs/V1alpha1MutatingAdmissionPolicyBindingList.md @@ -0,0 +1,20 @@ + + +# V1alpha1MutatingAdmissionPolicyBindingList + +MutatingAdmissionPolicyBindingList is a list of MutatingAdmissionPolicyBinding. +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] +**items** | [**List<V1alpha1MutatingAdmissionPolicyBinding>**](V1alpha1MutatingAdmissionPolicyBinding.md) | List of PolicyBinding. | +**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] +**metadata** | [**V1ListMeta**](V1ListMeta.md) | | [optional] + + +## Implemented Interfaces + +* io.kubernetes.client.common.KubernetesListObject + + diff --git a/kubernetes/docs/V1alpha1MutatingAdmissionPolicyBindingSpec.md b/kubernetes/docs/V1alpha1MutatingAdmissionPolicyBindingSpec.md new file mode 100644 index 0000000000..c0b910b605 --- /dev/null +++ b/kubernetes/docs/V1alpha1MutatingAdmissionPolicyBindingSpec.md @@ -0,0 +1,15 @@ + + +# V1alpha1MutatingAdmissionPolicyBindingSpec + +MutatingAdmissionPolicyBindingSpec is the specification of the MutatingAdmissionPolicyBinding. +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**matchResources** | [**V1alpha1MatchResources**](V1alpha1MatchResources.md) | | [optional] +**paramRef** | [**V1alpha1ParamRef**](V1alpha1ParamRef.md) | | [optional] +**policyName** | **String** | policyName references a MutatingAdmissionPolicy name which the MutatingAdmissionPolicyBinding binds to. If the referenced resource does not exist, this binding is considered invalid and will be ignored Required. | [optional] + + + diff --git a/kubernetes/docs/V1alpha1MutatingAdmissionPolicyList.md b/kubernetes/docs/V1alpha1MutatingAdmissionPolicyList.md new file mode 100644 index 0000000000..8774a5d5f8 --- /dev/null +++ b/kubernetes/docs/V1alpha1MutatingAdmissionPolicyList.md @@ -0,0 +1,20 @@ + + +# V1alpha1MutatingAdmissionPolicyList + +MutatingAdmissionPolicyList is a list of MutatingAdmissionPolicy. +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] +**items** | [**List<V1alpha1MutatingAdmissionPolicy>**](V1alpha1MutatingAdmissionPolicy.md) | List of ValidatingAdmissionPolicy. | +**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] +**metadata** | [**V1ListMeta**](V1ListMeta.md) | | [optional] + + +## Implemented Interfaces + +* io.kubernetes.client.common.KubernetesListObject + + diff --git a/kubernetes/docs/V1alpha1MutatingAdmissionPolicySpec.md b/kubernetes/docs/V1alpha1MutatingAdmissionPolicySpec.md new file mode 100644 index 0000000000..0eeca5bbc7 --- /dev/null +++ b/kubernetes/docs/V1alpha1MutatingAdmissionPolicySpec.md @@ -0,0 +1,19 @@ + + +# V1alpha1MutatingAdmissionPolicySpec + +MutatingAdmissionPolicySpec is the specification of the desired behavior of the admission policy. +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**failurePolicy** | **String** | 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 paramKind refers to a non-existent Kind. A binding is invalid if paramRef.name refers to a non-existent resource. failurePolicy does not define how validations that evaluate to false are handled. Allowed values are Ignore or Fail. Defaults to Fail. | [optional] +**matchConditions** | [**List<V1alpha1MatchCondition>**](V1alpha1MatchCondition.md) | 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 matchConstraints. 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 | [optional] +**matchConstraints** | [**V1alpha1MatchResources**](V1alpha1MatchResources.md) | | [optional] +**mutations** | [**List<V1alpha1Mutation>**](V1alpha1Mutation.md) | mutations contain operations to perform on matching objects. mutations may not be empty; a minimum of one mutation is required. mutations are evaluated in order, and are reinvoked according to the reinvocationPolicy. The mutations of a policy are invoked for each binding of this policy and reinvocation of mutations occurs on a per binding basis. | [optional] +**paramKind** | [**V1alpha1ParamKind**](V1alpha1ParamKind.md) | | [optional] +**reinvocationPolicy** | **String** | reinvocationPolicy indicates whether mutations may be called multiple times per MutatingAdmissionPolicyBinding as part of a single admission evaluation. Allowed values are \"Never\" and \"IfNeeded\". Never: These mutations will not be called more than once per binding in a single admission evaluation. IfNeeded: These mutations may be invoked more than once per binding for a single admission request and there is no guarantee of order with respect to other admission plugins, admission webhooks, bindings of this policy and admission policies. Mutations are only reinvoked when mutations change the object after this mutation is invoked. Required. | [optional] +**variables** | [**List<V1alpha1Variable>**](V1alpha1Variable.md) | 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. | [optional] + + + diff --git a/kubernetes/docs/V1alpha1Mutation.md b/kubernetes/docs/V1alpha1Mutation.md new file mode 100644 index 0000000000..f0b12cb7d3 --- /dev/null +++ b/kubernetes/docs/V1alpha1Mutation.md @@ -0,0 +1,15 @@ + + +# V1alpha1Mutation + +Mutation specifies the CEL expression which is used to apply the Mutation. +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**applyConfiguration** | [**V1alpha1ApplyConfiguration**](V1alpha1ApplyConfiguration.md) | | [optional] +**jsonPatch** | [**V1alpha1JSONPatch**](V1alpha1JSONPatch.md) | | [optional] +**patchType** | **String** | patchType indicates the patch strategy used. Allowed values are \"ApplyConfiguration\" and \"JSONPatch\". Required. | + + + diff --git a/kubernetes/docs/V1alpha1ParentReference.md b/kubernetes/docs/V1alpha1ParentReference.md deleted file mode 100644 index 4375b2ac3c..0000000000 --- a/kubernetes/docs/V1alpha1ParentReference.md +++ /dev/null @@ -1,17 +0,0 @@ - - -# V1alpha1ParentReference - -ParentReference describes a reference to a parent object. -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**group** | **String** | Group is the group of the object being referenced. | [optional] -**name** | **String** | Name is the name of the object being referenced. | [optional] -**namespace** | **String** | Namespace is the namespace of the object being referenced. | [optional] -**resource** | **String** | Resource is the resource of the object being referenced. | [optional] -**uid** | **String** | UID is the uid of the object being referenced. | [optional] - - - diff --git a/kubernetes/docs/V1alpha1SelfSubjectReview.md b/kubernetes/docs/V1alpha1SelfSubjectReview.md deleted file mode 100644 index 10efa8a8d1..0000000000 --- a/kubernetes/docs/V1alpha1SelfSubjectReview.md +++ /dev/null @@ -1,20 +0,0 @@ - - -# V1alpha1SelfSubjectReview - -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. -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] -**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] -**status** | [**V1alpha1SelfSubjectReviewStatus**](V1alpha1SelfSubjectReviewStatus.md) | | [optional] - - -## Implemented Interfaces - -* io.kubernetes.client.common.KubernetesObject - - diff --git a/kubernetes/docs/V1alpha1SelfSubjectReviewStatus.md b/kubernetes/docs/V1alpha1SelfSubjectReviewStatus.md deleted file mode 100644 index cd085ddd4f..0000000000 --- a/kubernetes/docs/V1alpha1SelfSubjectReviewStatus.md +++ /dev/null @@ -1,13 +0,0 @@ - - -# V1alpha1SelfSubjectReviewStatus - -SelfSubjectReviewStatus is filled by the kube-apiserver and sent back to a user. -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**userInfo** | [**V1UserInfo**](V1UserInfo.md) | | [optional] - - - diff --git a/kubernetes/docs/V1alpha1StorageVersionCondition.md b/kubernetes/docs/V1alpha1StorageVersionCondition.md index a157f9642d..86c85c858d 100644 --- a/kubernetes/docs/V1alpha1StorageVersionCondition.md +++ b/kubernetes/docs/V1alpha1StorageVersionCondition.md @@ -8,7 +8,7 @@ Describes the state of the storageVersion at a certain point. Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **lastTransitionTime** | [**OffsetDateTime**](OffsetDateTime.md) | Last time the condition transitioned from one status to another. | [optional] -**message** | **String** | A human readable message indicating details about the transition. | [optional] +**message** | **String** | A human readable message indicating details about the transition. | **observedGeneration** | **Long** | If set, this represents the .metadata.generation that the condition was set based upon. | [optional] **reason** | **String** | The reason for the condition's last transition. | **status** | **String** | Status of the condition, one of True, False, Unknown. | diff --git a/kubernetes/docs/V1alpha1StorageVersionMigration.md b/kubernetes/docs/V1alpha1StorageVersionMigration.md new file mode 100644 index 0000000000..761cc1174c --- /dev/null +++ b/kubernetes/docs/V1alpha1StorageVersionMigration.md @@ -0,0 +1,21 @@ + + +# V1alpha1StorageVersionMigration + +StorageVersionMigration represents a migration of stored data to the latest storage version. +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] +**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] +**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] +**spec** | [**V1alpha1StorageVersionMigrationSpec**](V1alpha1StorageVersionMigrationSpec.md) | | [optional] +**status** | [**V1alpha1StorageVersionMigrationStatus**](V1alpha1StorageVersionMigrationStatus.md) | | [optional] + + +## Implemented Interfaces + +* io.kubernetes.client.common.KubernetesObject + + diff --git a/kubernetes/docs/V1alpha1StorageVersionMigrationList.md b/kubernetes/docs/V1alpha1StorageVersionMigrationList.md new file mode 100644 index 0000000000..9caae53227 --- /dev/null +++ b/kubernetes/docs/V1alpha1StorageVersionMigrationList.md @@ -0,0 +1,20 @@ + + +# V1alpha1StorageVersionMigrationList + +StorageVersionMigrationList is a collection of storage version migrations. +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] +**items** | [**List<V1alpha1StorageVersionMigration>**](V1alpha1StorageVersionMigration.md) | Items is the list of StorageVersionMigration | +**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] +**metadata** | [**V1ListMeta**](V1ListMeta.md) | | [optional] + + +## Implemented Interfaces + +* io.kubernetes.client.common.KubernetesListObject + + diff --git a/kubernetes/docs/V1alpha1StorageVersionMigrationSpec.md b/kubernetes/docs/V1alpha1StorageVersionMigrationSpec.md new file mode 100644 index 0000000000..fd290a2607 --- /dev/null +++ b/kubernetes/docs/V1alpha1StorageVersionMigrationSpec.md @@ -0,0 +1,14 @@ + + +# V1alpha1StorageVersionMigrationSpec + +Spec of the storage version migration. +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**continueToken** | **String** | 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. | [optional] +**resource** | [**V1alpha1GroupVersionResource**](V1alpha1GroupVersionResource.md) | | + + + diff --git a/kubernetes/docs/V1alpha1StorageVersionMigrationStatus.md b/kubernetes/docs/V1alpha1StorageVersionMigrationStatus.md new file mode 100644 index 0000000000..3515aad65d --- /dev/null +++ b/kubernetes/docs/V1alpha1StorageVersionMigrationStatus.md @@ -0,0 +1,14 @@ + + +# V1alpha1StorageVersionMigrationStatus + +Status of the storage version migration. +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**conditions** | [**List<V1alpha1MigrationCondition>**](V1alpha1MigrationCondition.md) | The latest available observations of the migration's current state. | [optional] +**resourceVersion** | **String** | 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. | [optional] + + + diff --git a/kubernetes/docs/V1alpha1TypeChecking.md b/kubernetes/docs/V1alpha1TypeChecking.md deleted file mode 100644 index 2be9166d59..0000000000 --- a/kubernetes/docs/V1alpha1TypeChecking.md +++ /dev/null @@ -1,13 +0,0 @@ - - -# V1alpha1TypeChecking - -TypeChecking contains results of type checking the expressions in the ValidatingAdmissionPolicy -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**expressionWarnings** | [**List<V1alpha1ExpressionWarning>**](V1alpha1ExpressionWarning.md) | The type checking warnings for each expression. | [optional] - - - diff --git a/kubernetes/docs/V1alpha1ValidatingAdmissionPolicy.md b/kubernetes/docs/V1alpha1ValidatingAdmissionPolicy.md deleted file mode 100644 index ceb637b580..0000000000 --- a/kubernetes/docs/V1alpha1ValidatingAdmissionPolicy.md +++ /dev/null @@ -1,21 +0,0 @@ - - -# V1alpha1ValidatingAdmissionPolicy - -ValidatingAdmissionPolicy describes the definition of an admission validation policy that accepts or rejects an object without changing it. -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] -**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] -**spec** | [**V1alpha1ValidatingAdmissionPolicySpec**](V1alpha1ValidatingAdmissionPolicySpec.md) | | [optional] -**status** | [**V1alpha1ValidatingAdmissionPolicyStatus**](V1alpha1ValidatingAdmissionPolicyStatus.md) | | [optional] - - -## Implemented Interfaces - -* io.kubernetes.client.common.KubernetesObject - - diff --git a/kubernetes/docs/V1alpha1ValidatingAdmissionPolicyBinding.md b/kubernetes/docs/V1alpha1ValidatingAdmissionPolicyBinding.md deleted file mode 100644 index 861c728e23..0000000000 --- a/kubernetes/docs/V1alpha1ValidatingAdmissionPolicyBinding.md +++ /dev/null @@ -1,20 +0,0 @@ - - -# V1alpha1ValidatingAdmissionPolicyBinding - -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. -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] -**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] -**spec** | [**V1alpha1ValidatingAdmissionPolicyBindingSpec**](V1alpha1ValidatingAdmissionPolicyBindingSpec.md) | | [optional] - - -## Implemented Interfaces - -* io.kubernetes.client.common.KubernetesObject - - diff --git a/kubernetes/docs/V1alpha1ValidatingAdmissionPolicyBindingList.md b/kubernetes/docs/V1alpha1ValidatingAdmissionPolicyBindingList.md deleted file mode 100644 index dc822e3b70..0000000000 --- a/kubernetes/docs/V1alpha1ValidatingAdmissionPolicyBindingList.md +++ /dev/null @@ -1,20 +0,0 @@ - - -# V1alpha1ValidatingAdmissionPolicyBindingList - -ValidatingAdmissionPolicyBindingList is a list of ValidatingAdmissionPolicyBinding. -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] -**items** | [**List<V1alpha1ValidatingAdmissionPolicyBinding>**](V1alpha1ValidatingAdmissionPolicyBinding.md) | List of PolicyBinding. | [optional] -**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ListMeta**](V1ListMeta.md) | | [optional] - - -## Implemented Interfaces - -* io.kubernetes.client.common.KubernetesListObject - - diff --git a/kubernetes/docs/V1alpha1ValidatingAdmissionPolicyBindingSpec.md b/kubernetes/docs/V1alpha1ValidatingAdmissionPolicyBindingSpec.md deleted file mode 100644 index e74870a02e..0000000000 --- a/kubernetes/docs/V1alpha1ValidatingAdmissionPolicyBindingSpec.md +++ /dev/null @@ -1,16 +0,0 @@ - - -# V1alpha1ValidatingAdmissionPolicyBindingSpec - -ValidatingAdmissionPolicyBindingSpec is the specification of the ValidatingAdmissionPolicyBinding. -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**matchResources** | [**V1alpha1MatchResources**](V1alpha1MatchResources.md) | | [optional] -**paramRef** | [**V1alpha1ParamRef**](V1alpha1ParamRef.md) | | [optional] -**policyName** | **String** | 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. | [optional] -**validationActions** | **List<String>** | 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. | [optional] - - - diff --git a/kubernetes/docs/V1alpha1ValidatingAdmissionPolicyList.md b/kubernetes/docs/V1alpha1ValidatingAdmissionPolicyList.md deleted file mode 100644 index 1c799cc393..0000000000 --- a/kubernetes/docs/V1alpha1ValidatingAdmissionPolicyList.md +++ /dev/null @@ -1,20 +0,0 @@ - - -# V1alpha1ValidatingAdmissionPolicyList - -ValidatingAdmissionPolicyList is a list of ValidatingAdmissionPolicy. -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] -**items** | [**List<V1alpha1ValidatingAdmissionPolicy>**](V1alpha1ValidatingAdmissionPolicy.md) | List of ValidatingAdmissionPolicy. | [optional] -**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ListMeta**](V1ListMeta.md) | | [optional] - - -## Implemented Interfaces - -* io.kubernetes.client.common.KubernetesListObject - - diff --git a/kubernetes/docs/V1alpha1ValidatingAdmissionPolicySpec.md b/kubernetes/docs/V1alpha1ValidatingAdmissionPolicySpec.md deleted file mode 100644 index 86445850f1..0000000000 --- a/kubernetes/docs/V1alpha1ValidatingAdmissionPolicySpec.md +++ /dev/null @@ -1,19 +0,0 @@ - - -# V1alpha1ValidatingAdmissionPolicySpec - -ValidatingAdmissionPolicySpec is the specification of the desired behavior of the AdmissionPolicy. -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**auditAnnotations** | [**List<V1alpha1AuditAnnotation>**](V1alpha1AuditAnnotation.md) | 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. | [optional] -**failurePolicy** | **String** | 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. | [optional] -**matchConditions** | [**List<V1alpha1MatchCondition>**](V1alpha1MatchCondition.md) | 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 | [optional] -**matchConstraints** | [**V1alpha1MatchResources**](V1alpha1MatchResources.md) | | [optional] -**paramKind** | [**V1alpha1ParamKind**](V1alpha1ParamKind.md) | | [optional] -**validations** | [**List<V1alpha1Validation>**](V1alpha1Validation.md) | 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. | [optional] -**variables** | [**List<V1alpha1Variable>**](V1alpha1Variable.md) | 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. | [optional] - - - diff --git a/kubernetes/docs/V1alpha1ValidatingAdmissionPolicyStatus.md b/kubernetes/docs/V1alpha1ValidatingAdmissionPolicyStatus.md deleted file mode 100644 index 6fb53c505e..0000000000 --- a/kubernetes/docs/V1alpha1ValidatingAdmissionPolicyStatus.md +++ /dev/null @@ -1,15 +0,0 @@ - - -# V1alpha1ValidatingAdmissionPolicyStatus - -ValidatingAdmissionPolicyStatus represents the status of a ValidatingAdmissionPolicy. -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**conditions** | [**List<V1Condition>**](V1Condition.md) | The conditions represent the latest available observations of a policy's current state. | [optional] -**observedGeneration** | **Long** | The generation observed by the controller. | [optional] -**typeChecking** | [**V1alpha1TypeChecking**](V1alpha1TypeChecking.md) | | [optional] - - - diff --git a/kubernetes/docs/V1alpha1Validation.md b/kubernetes/docs/V1alpha1Validation.md deleted file mode 100644 index 8c218791b7..0000000000 --- a/kubernetes/docs/V1alpha1Validation.md +++ /dev/null @@ -1,16 +0,0 @@ - - -# V1alpha1Validation - -Validation specifies the CEL expression which is used to apply the validation. -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**expression** | **String** | 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. | -**message** | **String** | 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}\". | [optional] -**messageExpression** | **String** | 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)+\")\" | [optional] -**reason** | **String** | 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. | [optional] - - - diff --git a/kubernetes/docs/V1alpha1VolumeAttributesClass.md b/kubernetes/docs/V1alpha1VolumeAttributesClass.md new file mode 100644 index 0000000000..ab0f8a55f8 --- /dev/null +++ b/kubernetes/docs/V1alpha1VolumeAttributesClass.md @@ -0,0 +1,21 @@ + + +# V1alpha1VolumeAttributesClass + +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. +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] +**driverName** | **String** | Name of the CSI driver This field is immutable. | +**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] +**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] +**parameters** | **Map<String, String>** | 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. | [optional] + + +## Implemented Interfaces + +* io.kubernetes.client.common.KubernetesObject + + diff --git a/kubernetes/docs/V1alpha1VolumeAttributesClassList.md b/kubernetes/docs/V1alpha1VolumeAttributesClassList.md new file mode 100644 index 0000000000..298e8ebd2d --- /dev/null +++ b/kubernetes/docs/V1alpha1VolumeAttributesClassList.md @@ -0,0 +1,20 @@ + + +# V1alpha1VolumeAttributesClassList + +VolumeAttributesClassList is a collection of VolumeAttributesClass objects. +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] +**items** | [**List<V1alpha1VolumeAttributesClass>**](V1alpha1VolumeAttributesClass.md) | items is the list of VolumeAttributesClass objects. | +**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] +**metadata** | [**V1ListMeta**](V1ListMeta.md) | | [optional] + + +## Implemented Interfaces + +* io.kubernetes.client.common.KubernetesListObject + + diff --git a/kubernetes/docs/V1alpha2AllocationResult.md b/kubernetes/docs/V1alpha2AllocationResult.md deleted file mode 100644 index 10ea5f23cd..0000000000 --- a/kubernetes/docs/V1alpha2AllocationResult.md +++ /dev/null @@ -1,15 +0,0 @@ - - -# V1alpha2AllocationResult - -AllocationResult contains attributes of an allocated resource. -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**availableOnNodes** | [**V1NodeSelector**](V1NodeSelector.md) | | [optional] -**resourceHandles** | [**List<V1alpha2ResourceHandle>**](V1alpha2ResourceHandle.md) | ResourceHandles contain the state associated with an allocation that should be maintained throughout the lifetime of a claim. Each ResourceHandle contains data that should be passed to a specific kubelet plugin once it lands on a node. This data is returned by the driver after a successful allocation and is opaque to Kubernetes. Driver documentation may explain to users how to interpret this data if needed. Setting this field is optional. It has a maximum size of 32 entries. If null (or empty), it is assumed this allocation will be processed by a single kubelet plugin with no ResourceHandle data attached. The name of the kubelet plugin invoked will match the DriverName set in the ResourceClaimStatus this AllocationResult is embedded in. | [optional] -**shareable** | **Boolean** | Shareable determines whether the resource supports more than one consumer at a time. | [optional] - - - diff --git a/kubernetes/docs/V1alpha2LeaseCandidate.md b/kubernetes/docs/V1alpha2LeaseCandidate.md new file mode 100644 index 0000000000..411fa816ba --- /dev/null +++ b/kubernetes/docs/V1alpha2LeaseCandidate.md @@ -0,0 +1,20 @@ + + +# V1alpha2LeaseCandidate + +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. +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] +**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] +**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] +**spec** | [**V1alpha2LeaseCandidateSpec**](V1alpha2LeaseCandidateSpec.md) | | [optional] + + +## Implemented Interfaces + +* io.kubernetes.client.common.KubernetesObject + + diff --git a/kubernetes/docs/V1alpha2LeaseCandidateList.md b/kubernetes/docs/V1alpha2LeaseCandidateList.md new file mode 100644 index 0000000000..4d4c444c93 --- /dev/null +++ b/kubernetes/docs/V1alpha2LeaseCandidateList.md @@ -0,0 +1,20 @@ + + +# V1alpha2LeaseCandidateList + +LeaseCandidateList is a list of Lease objects. +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] +**items** | [**List<V1alpha2LeaseCandidate>**](V1alpha2LeaseCandidate.md) | items is a list of schema objects. | +**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] +**metadata** | [**V1ListMeta**](V1ListMeta.md) | | [optional] + + +## Implemented Interfaces + +* io.kubernetes.client.common.KubernetesListObject + + diff --git a/kubernetes/docs/V1alpha2LeaseCandidateSpec.md b/kubernetes/docs/V1alpha2LeaseCandidateSpec.md new file mode 100644 index 0000000000..d64d3e99c0 --- /dev/null +++ b/kubernetes/docs/V1alpha2LeaseCandidateSpec.md @@ -0,0 +1,18 @@ + + +# V1alpha2LeaseCandidateSpec + +LeaseCandidateSpec is a specification of a Lease. +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**binaryVersion** | **String** | BinaryVersion is the binary version. It must be in a semver format without leading `v`. This field is required. | +**emulationVersion** | **String** | 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\" | [optional] +**leaseName** | **String** | LeaseName is the name of the lease for which this candidate is contending. This field is immutable. | +**pingTime** | [**OffsetDateTime**](OffsetDateTime.md) | 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. | [optional] +**renewTime** | [**OffsetDateTime**](OffsetDateTime.md) | 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. | [optional] +**strategy** | **String** | Strategy is the strategy that coordinated leader election will use for picking the leader. If multiple candidates for the same Lease return different strategies, the strategy provided by the candidate with the latest BinaryVersion will be used. If there is still conflict, this is a user error and coordinated leader election will not operate the Lease until resolved. | + + + diff --git a/kubernetes/docs/V1alpha2PodSchedulingContext.md b/kubernetes/docs/V1alpha2PodSchedulingContext.md deleted file mode 100644 index 4231f8d014..0000000000 --- a/kubernetes/docs/V1alpha2PodSchedulingContext.md +++ /dev/null @@ -1,21 +0,0 @@ - - -# V1alpha2PodSchedulingContext - -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 DynamicResourceAllocation feature gate. -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] -**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] -**spec** | [**V1alpha2PodSchedulingContextSpec**](V1alpha2PodSchedulingContextSpec.md) | | -**status** | [**V1alpha2PodSchedulingContextStatus**](V1alpha2PodSchedulingContextStatus.md) | | [optional] - - -## Implemented Interfaces - -* io.kubernetes.client.common.KubernetesObject - - diff --git a/kubernetes/docs/V1alpha2PodSchedulingContextList.md b/kubernetes/docs/V1alpha2PodSchedulingContextList.md deleted file mode 100644 index 405caa0c5a..0000000000 --- a/kubernetes/docs/V1alpha2PodSchedulingContextList.md +++ /dev/null @@ -1,20 +0,0 @@ - - -# V1alpha2PodSchedulingContextList - -PodSchedulingContextList is a collection of Pod scheduling objects. -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] -**items** | [**List<V1alpha2PodSchedulingContext>**](V1alpha2PodSchedulingContext.md) | Items is the list of PodSchedulingContext objects. | -**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ListMeta**](V1ListMeta.md) | | [optional] - - -## Implemented Interfaces - -* io.kubernetes.client.common.KubernetesListObject - - diff --git a/kubernetes/docs/V1alpha2PodSchedulingContextSpec.md b/kubernetes/docs/V1alpha2PodSchedulingContextSpec.md deleted file mode 100644 index bb3817e2af..0000000000 --- a/kubernetes/docs/V1alpha2PodSchedulingContextSpec.md +++ /dev/null @@ -1,14 +0,0 @@ - - -# V1alpha2PodSchedulingContextSpec - -PodSchedulingContextSpec describes where resources for the Pod are needed. -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**potentialNodes** | **List<String>** | 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. | [optional] -**selectedNode** | **String** | SelectedNode is the node for which allocation of ResourceClaims that are referenced by the Pod and that use \"WaitForFirstConsumer\" allocation is to be attempted. | [optional] - - - diff --git a/kubernetes/docs/V1alpha2PodSchedulingContextStatus.md b/kubernetes/docs/V1alpha2PodSchedulingContextStatus.md deleted file mode 100644 index e73282f5fd..0000000000 --- a/kubernetes/docs/V1alpha2PodSchedulingContextStatus.md +++ /dev/null @@ -1,13 +0,0 @@ - - -# V1alpha2PodSchedulingContextStatus - -PodSchedulingContextStatus describes where resources for the Pod can be allocated. -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**resourceClaims** | [**List<V1alpha2ResourceClaimSchedulingStatus>**](V1alpha2ResourceClaimSchedulingStatus.md) | ResourceClaims describes resource availability for each pod.spec.resourceClaim entry where the corresponding ResourceClaim uses \"WaitForFirstConsumer\" allocation mode. | [optional] - - - diff --git a/kubernetes/docs/V1alpha2ResourceClaim.md b/kubernetes/docs/V1alpha2ResourceClaim.md deleted file mode 100644 index 70aa4e3a40..0000000000 --- a/kubernetes/docs/V1alpha2ResourceClaim.md +++ /dev/null @@ -1,21 +0,0 @@ - - -# V1alpha2ResourceClaim - -ResourceClaim describes which resources are needed by a resource consumer. Its status tracks whether the resource has been allocated and what the resulting attributes are. This is an alpha type and requires enabling the DynamicResourceAllocation feature gate. -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] -**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] -**spec** | [**V1alpha2ResourceClaimSpec**](V1alpha2ResourceClaimSpec.md) | | -**status** | [**V1alpha2ResourceClaimStatus**](V1alpha2ResourceClaimStatus.md) | | [optional] - - -## Implemented Interfaces - -* io.kubernetes.client.common.KubernetesObject - - diff --git a/kubernetes/docs/V1alpha2ResourceClaimConsumerReference.md b/kubernetes/docs/V1alpha2ResourceClaimConsumerReference.md deleted file mode 100644 index 5d0868503d..0000000000 --- a/kubernetes/docs/V1alpha2ResourceClaimConsumerReference.md +++ /dev/null @@ -1,16 +0,0 @@ - - -# V1alpha2ResourceClaimConsumerReference - -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. -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**apiGroup** | **String** | 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. | [optional] -**name** | **String** | Name is the name of resource being referenced. | -**resource** | **String** | Resource is the type of resource being referenced, for example \"pods\". | -**uid** | **String** | UID identifies exactly one incarnation of the resource. | - - - diff --git a/kubernetes/docs/V1alpha2ResourceClaimList.md b/kubernetes/docs/V1alpha2ResourceClaimList.md deleted file mode 100644 index 6796e36fca..0000000000 --- a/kubernetes/docs/V1alpha2ResourceClaimList.md +++ /dev/null @@ -1,20 +0,0 @@ - - -# V1alpha2ResourceClaimList - -ResourceClaimList is a collection of claims. -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] -**items** | [**List<V1alpha2ResourceClaim>**](V1alpha2ResourceClaim.md) | Items is the list of resource claims. | -**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ListMeta**](V1ListMeta.md) | | [optional] - - -## Implemented Interfaces - -* io.kubernetes.client.common.KubernetesListObject - - diff --git a/kubernetes/docs/V1alpha2ResourceClaimParametersReference.md b/kubernetes/docs/V1alpha2ResourceClaimParametersReference.md deleted file mode 100644 index 16881c09bd..0000000000 --- a/kubernetes/docs/V1alpha2ResourceClaimParametersReference.md +++ /dev/null @@ -1,15 +0,0 @@ - - -# V1alpha2ResourceClaimParametersReference - -ResourceClaimParametersReference contains enough information to let you locate the parameters for a ResourceClaim. The object must be in the same namespace as the ResourceClaim. -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**apiGroup** | **String** | 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. | [optional] -**kind** | **String** | Kind is the type of resource being referenced. This is the same value as in the parameter object's metadata, for example \"ConfigMap\". | -**name** | **String** | Name is the name of resource being referenced. | - - - diff --git a/kubernetes/docs/V1alpha2ResourceClaimSchedulingStatus.md b/kubernetes/docs/V1alpha2ResourceClaimSchedulingStatus.md deleted file mode 100644 index c61adfcaec..0000000000 --- a/kubernetes/docs/V1alpha2ResourceClaimSchedulingStatus.md +++ /dev/null @@ -1,14 +0,0 @@ - - -# V1alpha2ResourceClaimSchedulingStatus - -ResourceClaimSchedulingStatus contains information about one particular ResourceClaim with \"WaitForFirstConsumer\" allocation mode. -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**name** | **String** | Name matches the pod.spec.resourceClaims[*].Name field. | [optional] -**unsuitableNodes** | **List<String>** | 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. | [optional] - - - diff --git a/kubernetes/docs/V1alpha2ResourceClaimSpec.md b/kubernetes/docs/V1alpha2ResourceClaimSpec.md deleted file mode 100644 index 1f71aeebe1..0000000000 --- a/kubernetes/docs/V1alpha2ResourceClaimSpec.md +++ /dev/null @@ -1,15 +0,0 @@ - - -# V1alpha2ResourceClaimSpec - -ResourceClaimSpec defines how a resource is to be allocated. -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**allocationMode** | **String** | Allocation can start immediately or when a Pod wants to use the resource. \"WaitForFirstConsumer\" is the default. | [optional] -**parametersRef** | [**V1alpha2ResourceClaimParametersReference**](V1alpha2ResourceClaimParametersReference.md) | | [optional] -**resourceClassName** | **String** | ResourceClassName references the driver and additional parameters via the name of a ResourceClass that was created as part of the driver deployment. | - - - diff --git a/kubernetes/docs/V1alpha2ResourceClaimStatus.md b/kubernetes/docs/V1alpha2ResourceClaimStatus.md deleted file mode 100644 index 0ffd599020..0000000000 --- a/kubernetes/docs/V1alpha2ResourceClaimStatus.md +++ /dev/null @@ -1,16 +0,0 @@ - - -# V1alpha2ResourceClaimStatus - -ResourceClaimStatus tracks whether the resource has been allocated and what the resulting attributes are. -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**allocation** | [**V1alpha2AllocationResult**](V1alpha2AllocationResult.md) | | [optional] -**deallocationRequested** | **Boolean** | DeallocationRequested indicates that a ResourceClaim is to be deallocated. The driver then must deallocate this claim and reset the field together with clearing the Allocation field. While DeallocationRequested is set, no new consumers may be added to ReservedFor. | [optional] -**driverName** | **String** | DriverName is a copy of the driver name from the ResourceClass at the time when allocation started. | [optional] -**reservedFor** | [**List<V1alpha2ResourceClaimConsumerReference>**](V1alpha2ResourceClaimConsumerReference.md) | 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. There can be at most 32 such reservations. This may get increased in the future, but not reduced. | [optional] - - - diff --git a/kubernetes/docs/V1alpha2ResourceClaimTemplate.md b/kubernetes/docs/V1alpha2ResourceClaimTemplate.md deleted file mode 100644 index 962459cf66..0000000000 --- a/kubernetes/docs/V1alpha2ResourceClaimTemplate.md +++ /dev/null @@ -1,20 +0,0 @@ - - -# V1alpha2ResourceClaimTemplate - -ResourceClaimTemplate is used to produce ResourceClaim objects. -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] -**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] -**spec** | [**V1alpha2ResourceClaimTemplateSpec**](V1alpha2ResourceClaimTemplateSpec.md) | | - - -## Implemented Interfaces - -* io.kubernetes.client.common.KubernetesObject - - diff --git a/kubernetes/docs/V1alpha2ResourceClaimTemplateList.md b/kubernetes/docs/V1alpha2ResourceClaimTemplateList.md deleted file mode 100644 index 33977e2089..0000000000 --- a/kubernetes/docs/V1alpha2ResourceClaimTemplateList.md +++ /dev/null @@ -1,20 +0,0 @@ - - -# V1alpha2ResourceClaimTemplateList - -ResourceClaimTemplateList is a collection of claim templates. -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] -**items** | [**List<V1alpha2ResourceClaimTemplate>**](V1alpha2ResourceClaimTemplate.md) | Items is the list of resource claim templates. | -**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ListMeta**](V1ListMeta.md) | | [optional] - - -## Implemented Interfaces - -* io.kubernetes.client.common.KubernetesListObject - - diff --git a/kubernetes/docs/V1alpha2ResourceClaimTemplateSpec.md b/kubernetes/docs/V1alpha2ResourceClaimTemplateSpec.md deleted file mode 100644 index ef3ef0065e..0000000000 --- a/kubernetes/docs/V1alpha2ResourceClaimTemplateSpec.md +++ /dev/null @@ -1,14 +0,0 @@ - - -# V1alpha2ResourceClaimTemplateSpec - -ResourceClaimTemplateSpec contains the metadata and fields for a ResourceClaim. -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] -**spec** | [**V1alpha2ResourceClaimSpec**](V1alpha2ResourceClaimSpec.md) | | - - - diff --git a/kubernetes/docs/V1alpha2ResourceClass.md b/kubernetes/docs/V1alpha2ResourceClass.md deleted file mode 100644 index f674cb2853..0000000000 --- a/kubernetes/docs/V1alpha2ResourceClass.md +++ /dev/null @@ -1,22 +0,0 @@ - - -# V1alpha2ResourceClass - -ResourceClass is used by administrators to influence how resources are allocated. This is an alpha type and requires enabling the DynamicResourceAllocation feature gate. -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] -**driverName** | **String** | DriverName defines the name of the dynamic resource driver that is used for allocation of a ResourceClaim that uses this class. Resource drivers have a unique name in forward domain order (acme.example.com). | -**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] -**parametersRef** | [**V1alpha2ResourceClassParametersReference**](V1alpha2ResourceClassParametersReference.md) | | [optional] -**suitableNodes** | [**V1NodeSelector**](V1NodeSelector.md) | | [optional] - - -## Implemented Interfaces - -* io.kubernetes.client.common.KubernetesObject - - diff --git a/kubernetes/docs/V1alpha2ResourceClassList.md b/kubernetes/docs/V1alpha2ResourceClassList.md deleted file mode 100644 index 107ac4d33a..0000000000 --- a/kubernetes/docs/V1alpha2ResourceClassList.md +++ /dev/null @@ -1,20 +0,0 @@ - - -# V1alpha2ResourceClassList - -ResourceClassList is a collection of classes. -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] -**items** | [**List<V1alpha2ResourceClass>**](V1alpha2ResourceClass.md) | Items is the list of resource classes. | -**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ListMeta**](V1ListMeta.md) | | [optional] - - -## Implemented Interfaces - -* io.kubernetes.client.common.KubernetesListObject - - diff --git a/kubernetes/docs/V1alpha2ResourceClassParametersReference.md b/kubernetes/docs/V1alpha2ResourceClassParametersReference.md deleted file mode 100644 index 9e5bfe0471..0000000000 --- a/kubernetes/docs/V1alpha2ResourceClassParametersReference.md +++ /dev/null @@ -1,16 +0,0 @@ - - -# V1alpha2ResourceClassParametersReference - -ResourceClassParametersReference contains enough information to let you locate the parameters for a ResourceClass. -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**apiGroup** | **String** | 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. | [optional] -**kind** | **String** | Kind is the type of resource being referenced. This is the same value as in the parameter object's metadata. | -**name** | **String** | Name is the name of resource being referenced. | -**namespace** | **String** | Namespace that contains the referenced resource. Must be empty for cluster-scoped resources and non-empty for namespaced resources. | [optional] - - - diff --git a/kubernetes/docs/V1alpha2ResourceHandle.md b/kubernetes/docs/V1alpha2ResourceHandle.md deleted file mode 100644 index 5dbf2c220d..0000000000 --- a/kubernetes/docs/V1alpha2ResourceHandle.md +++ /dev/null @@ -1,14 +0,0 @@ - - -# V1alpha2ResourceHandle - -ResourceHandle holds opaque resource data for processing by a specific kubelet plugin. -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | **String** | Data contains the opaque data associated with this ResourceHandle. It is set by the controller component of the resource driver whose name matches the DriverName set in the ResourceClaimStatus this ResourceHandle is embedded in. It is set at allocation time and is intended for processing by the kubelet plugin whose name matches the DriverName set in this ResourceHandle. The maximum size of this field is 16KiB. This may get increased in the future, but not reduced. | [optional] -**driverName** | **String** | DriverName specifies the name of the resource driver whose kubelet plugin should be invoked to process this ResourceHandle's data once it lands on a node. This may differ from the DriverName set in ResourceClaimStatus this ResourceHandle is embedded in. | [optional] - - - diff --git a/kubernetes/docs/V1alpha3AllocatedDeviceStatus.md b/kubernetes/docs/V1alpha3AllocatedDeviceStatus.md new file mode 100644 index 0000000000..96e446b80a --- /dev/null +++ b/kubernetes/docs/V1alpha3AllocatedDeviceStatus.md @@ -0,0 +1,18 @@ + + +# V1alpha3AllocatedDeviceStatus + +AllocatedDeviceStatus contains the status of an allocated device, if the driver chooses to report it. This may include driver-specific information. +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**conditions** | [**List<V1Condition>**](V1Condition.md) | Conditions contains the latest observation of the device's state. If the device has been configured according to the class and claim config references, the `Ready` condition should be True. Must not contain more than 8 entries. | [optional] +**data** | [**Object**](.md) | Data contains arbitrary driver-specific data. The length of the raw data must be smaller or equal to 10 Ki. | [optional] +**device** | **String** | Device references one device instance via its name in the driver's resource pool. It must be a DNS label. | +**driver** | **String** | 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. | +**networkData** | [**V1alpha3NetworkDeviceData**](V1alpha3NetworkDeviceData.md) | | [optional] +**pool** | **String** | This name together with the driver name and the device name field identify which device was allocated (`<driver name>/<pool name>/<device name>`). Must not be longer than 253 characters and may contain one or more DNS sub-domains separated by slashes. | + + + diff --git a/kubernetes/docs/V1alpha3AllocationResult.md b/kubernetes/docs/V1alpha3AllocationResult.md new file mode 100644 index 0000000000..87ec32b023 --- /dev/null +++ b/kubernetes/docs/V1alpha3AllocationResult.md @@ -0,0 +1,14 @@ + + +# V1alpha3AllocationResult + +AllocationResult contains attributes of an allocated resource. +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**devices** | [**V1alpha3DeviceAllocationResult**](V1alpha3DeviceAllocationResult.md) | | [optional] +**nodeSelector** | [**V1NodeSelector**](V1NodeSelector.md) | | [optional] + + + diff --git a/kubernetes/docs/V1alpha3BasicDevice.md b/kubernetes/docs/V1alpha3BasicDevice.md new file mode 100644 index 0000000000..75770f6745 --- /dev/null +++ b/kubernetes/docs/V1alpha3BasicDevice.md @@ -0,0 +1,19 @@ + + +# V1alpha3BasicDevice + +BasicDevice defines one device instance. +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**allNodes** | **Boolean** | AllNodes indicates that all nodes have access to the device. Must only be set if Spec.PerDeviceNodeSelection is set to true. At most one of NodeName, NodeSelector and AllNodes can be set. | [optional] +**attributes** | [**Map<String, V1alpha3DeviceAttribute>**](V1alpha3DeviceAttribute.md) | 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. | [optional] +**capacity** | [**Map<String, Quantity>**](Quantity.md) | 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. | [optional] +**consumesCounters** | [**List<V1alpha3DeviceCounterConsumption>**](V1alpha3DeviceCounterConsumption.md) | ConsumesCounters defines a list of references to sharedCounters and the set of counters that the device will consume from those counter sets. There can only be a single entry per counterSet. The total number of device counter consumption entries must be <= 32. In addition, the total number in the entire ResourceSlice must be <= 1024 (for example, 64 devices with 16 counters each). | [optional] +**nodeName** | **String** | NodeName identifies the node where the device is available. Must only be set if Spec.PerDeviceNodeSelection is set to true. At most one of NodeName, NodeSelector and AllNodes can be set. | [optional] +**nodeSelector** | [**V1NodeSelector**](V1NodeSelector.md) | | [optional] +**taints** | [**List<V1alpha3DeviceTaint>**](V1alpha3DeviceTaint.md) | If specified, these are the driver-defined taints. The maximum number of taints is 4. This is an alpha field and requires enabling the DRADeviceTaints feature gate. | [optional] + + + diff --git a/kubernetes/docs/V1alpha3CELDeviceSelector.md b/kubernetes/docs/V1alpha3CELDeviceSelector.md new file mode 100644 index 0000000000..b23dac3f1a --- /dev/null +++ b/kubernetes/docs/V1alpha3CELDeviceSelector.md @@ -0,0 +1,13 @@ + + +# V1alpha3CELDeviceSelector + +CELDeviceSelector contains a CEL expression for selecting a device. +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**expression** | **String** | 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) The length of the expression must be smaller or equal to 10 Ki. The cost of evaluating it is also limited based on the estimated number of logical steps. | + + + diff --git a/kubernetes/docs/V1alpha3Counter.md b/kubernetes/docs/V1alpha3Counter.md new file mode 100644 index 0000000000..5aa1a5e03a --- /dev/null +++ b/kubernetes/docs/V1alpha3Counter.md @@ -0,0 +1,13 @@ + + +# V1alpha3Counter + +Counter describes a quantity associated with a device. +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**value** | [**Quantity**](Quantity.md) | 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: ``` <quantity> ::= <signedNumber><suffix> (Note that <suffix> may be empty, from the \"\" case in <decimalSI>.) <digit> ::= 0 | 1 | ... | 9 <digits> ::= <digit> | <digit><digits> <number> ::= <digits> | <digits>.<digits> | <digits>. | .<digits> <sign> ::= \"+\" | \"-\" <signedNumber> ::= <number> | <sign><number> <suffix> ::= <binarySI> | <decimalExponent> | <decimalSI> <binarySI> ::= Ki | Mi | Gi | Ti | Pi | Ei (International System of units; See: http://physics.nist.gov/cuu/Units/binary.html) <decimalSI> ::= m | \"\" | k | M | G | T | P | E (Note that 1024 = 1Ki but 1000 = 1k; I didn't choose the capitalization.) <decimalExponent> ::= \"e\" <signedNumber> | \"E\" <signedNumber> ``` 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. | + + + diff --git a/kubernetes/docs/V1alpha3CounterSet.md b/kubernetes/docs/V1alpha3CounterSet.md new file mode 100644 index 0000000000..7d62f469a4 --- /dev/null +++ b/kubernetes/docs/V1alpha3CounterSet.md @@ -0,0 +1,14 @@ + + +# V1alpha3CounterSet + +CounterSet defines a named set of counters that are available to be used by devices defined in the ResourceSlice. The counters are not allocatable by themselves, but can be referenced by devices. When a device is allocated, the portion of counters it uses will no longer be available for use by other devices. +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**counters** | [**Map<String, V1alpha3Counter>**](V1alpha3Counter.md) | Counters defines the counters that will be consumed by the device. The name of each counter must be unique in that set and must be a DNS label. To ensure this uniqueness, capacities defined by the vendor must be listed without the driver name as domain prefix in their name. All others must be listed with their domain prefix. The maximum number of counters is 32. | +**name** | **String** | CounterSet is the name of the set from which the counters defined will be consumed. | + + + diff --git a/kubernetes/docs/V1alpha3Device.md b/kubernetes/docs/V1alpha3Device.md new file mode 100644 index 0000000000..980e2b06f5 --- /dev/null +++ b/kubernetes/docs/V1alpha3Device.md @@ -0,0 +1,14 @@ + + +# V1alpha3Device + +Device represents one individual hardware instance that can be selected based on its attributes. Besides the name, exactly one field must be set. +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**basic** | [**V1alpha3BasicDevice**](V1alpha3BasicDevice.md) | | [optional] +**name** | **String** | Name is unique identifier among all devices managed by the driver in the pool. It must be a DNS label. | + + + diff --git a/kubernetes/docs/V1alpha3DeviceAllocationConfiguration.md b/kubernetes/docs/V1alpha3DeviceAllocationConfiguration.md new file mode 100644 index 0000000000..2f83e89334 --- /dev/null +++ b/kubernetes/docs/V1alpha3DeviceAllocationConfiguration.md @@ -0,0 +1,15 @@ + + +# V1alpha3DeviceAllocationConfiguration + +DeviceAllocationConfiguration gets embedded in an AllocationResult. +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**opaque** | [**V1alpha3OpaqueDeviceConfiguration**](V1alpha3OpaqueDeviceConfiguration.md) | | [optional] +**requests** | **List<String>** | Requests lists the names of requests where the configuration applies. If empty, its applies to all requests. References to subrequests must include the name of the main request and may include the subrequest using the format <main request>[/<subrequest>]. If just the main request is given, the configuration applies to all subrequests. | [optional] +**source** | **String** | 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. | + + + diff --git a/kubernetes/docs/V1alpha3DeviceAllocationResult.md b/kubernetes/docs/V1alpha3DeviceAllocationResult.md new file mode 100644 index 0000000000..89ccb5dfaf --- /dev/null +++ b/kubernetes/docs/V1alpha3DeviceAllocationResult.md @@ -0,0 +1,14 @@ + + +# V1alpha3DeviceAllocationResult + +DeviceAllocationResult is the result of allocating devices. +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**config** | [**List<V1alpha3DeviceAllocationConfiguration>**](V1alpha3DeviceAllocationConfiguration.md) | 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. | [optional] +**results** | [**List<V1alpha3DeviceRequestAllocationResult>**](V1alpha3DeviceRequestAllocationResult.md) | Results lists all allocated devices. | [optional] + + + diff --git a/kubernetes/docs/V1alpha3DeviceAttribute.md b/kubernetes/docs/V1alpha3DeviceAttribute.md new file mode 100644 index 0000000000..545d1e8e09 --- /dev/null +++ b/kubernetes/docs/V1alpha3DeviceAttribute.md @@ -0,0 +1,16 @@ + + +# V1alpha3DeviceAttribute + +DeviceAttribute must have exactly one field set. +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**bool** | **Boolean** | BoolValue is a true/false value. | [optional] +**_int** | **Long** | IntValue is a number. | [optional] +**string** | **String** | StringValue is a string. Must not be longer than 64 characters. | [optional] +**version** | **String** | VersionValue is a semantic version according to semver.org spec 2.0.0. Must not be longer than 64 characters. | [optional] + + + diff --git a/kubernetes/docs/V1alpha3DeviceClaim.md b/kubernetes/docs/V1alpha3DeviceClaim.md new file mode 100644 index 0000000000..0ef71bc249 --- /dev/null +++ b/kubernetes/docs/V1alpha3DeviceClaim.md @@ -0,0 +1,15 @@ + + +# V1alpha3DeviceClaim + +DeviceClaim defines how to request devices with a ResourceClaim. +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**config** | [**List<V1alpha3DeviceClaimConfiguration>**](V1alpha3DeviceClaimConfiguration.md) | This field holds configuration for multiple potential drivers which could satisfy requests in this claim. It is ignored while allocating the claim. | [optional] +**constraints** | [**List<V1alpha3DeviceConstraint>**](V1alpha3DeviceConstraint.md) | These constraints must be satisfied by the set of devices that get allocated for the claim. | [optional] +**requests** | [**List<V1alpha3DeviceRequest>**](V1alpha3DeviceRequest.md) | Requests represent individual requests for distinct devices which must all be satisfied. If empty, nothing needs to be allocated. | [optional] + + + diff --git a/kubernetes/docs/V1alpha3DeviceClaimConfiguration.md b/kubernetes/docs/V1alpha3DeviceClaimConfiguration.md new file mode 100644 index 0000000000..553183ccfa --- /dev/null +++ b/kubernetes/docs/V1alpha3DeviceClaimConfiguration.md @@ -0,0 +1,14 @@ + + +# V1alpha3DeviceClaimConfiguration + +DeviceClaimConfiguration is used for configuration parameters in DeviceClaim. +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**opaque** | [**V1alpha3OpaqueDeviceConfiguration**](V1alpha3OpaqueDeviceConfiguration.md) | | [optional] +**requests** | **List<String>** | Requests lists the names of requests where the configuration applies. If empty, it applies to all requests. References to subrequests must include the name of the main request and may include the subrequest using the format <main request>[/<subrequest>]. If just the main request is given, the configuration applies to all subrequests. | [optional] + + + diff --git a/kubernetes/docs/V1alpha3DeviceClass.md b/kubernetes/docs/V1alpha3DeviceClass.md new file mode 100644 index 0000000000..8e0b550664 --- /dev/null +++ b/kubernetes/docs/V1alpha3DeviceClass.md @@ -0,0 +1,20 @@ + + +# V1alpha3DeviceClass + +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. +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] +**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] +**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] +**spec** | [**V1alpha3DeviceClassSpec**](V1alpha3DeviceClassSpec.md) | | + + +## Implemented Interfaces + +* io.kubernetes.client.common.KubernetesObject + + diff --git a/kubernetes/docs/V1alpha3DeviceClassConfiguration.md b/kubernetes/docs/V1alpha3DeviceClassConfiguration.md new file mode 100644 index 0000000000..17700df7ce --- /dev/null +++ b/kubernetes/docs/V1alpha3DeviceClassConfiguration.md @@ -0,0 +1,13 @@ + + +# V1alpha3DeviceClassConfiguration + +DeviceClassConfiguration is used in DeviceClass. +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**opaque** | [**V1alpha3OpaqueDeviceConfiguration**](V1alpha3OpaqueDeviceConfiguration.md) | | [optional] + + + diff --git a/kubernetes/docs/V1alpha3DeviceClassList.md b/kubernetes/docs/V1alpha3DeviceClassList.md new file mode 100644 index 0000000000..07dc4db8f3 --- /dev/null +++ b/kubernetes/docs/V1alpha3DeviceClassList.md @@ -0,0 +1,20 @@ + + +# V1alpha3DeviceClassList + +DeviceClassList is a collection of classes. +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] +**items** | [**List<V1alpha3DeviceClass>**](V1alpha3DeviceClass.md) | Items is the list of resource classes. | +**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] +**metadata** | [**V1ListMeta**](V1ListMeta.md) | | [optional] + + +## Implemented Interfaces + +* io.kubernetes.client.common.KubernetesListObject + + diff --git a/kubernetes/docs/V1alpha3DeviceClassSpec.md b/kubernetes/docs/V1alpha3DeviceClassSpec.md new file mode 100644 index 0000000000..0111d4aae1 --- /dev/null +++ b/kubernetes/docs/V1alpha3DeviceClassSpec.md @@ -0,0 +1,14 @@ + + +# V1alpha3DeviceClassSpec + +DeviceClassSpec is used in a [DeviceClass] to define what can be allocated and how to configure it. +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**config** | [**List<V1alpha3DeviceClassConfiguration>**](V1alpha3DeviceClassConfiguration.md) | 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. | [optional] +**selectors** | [**List<V1alpha3DeviceSelector>**](V1alpha3DeviceSelector.md) | Each selector must be satisfied by a device which is claimed via this class. | [optional] + + + diff --git a/kubernetes/docs/V1alpha3DeviceConstraint.md b/kubernetes/docs/V1alpha3DeviceConstraint.md new file mode 100644 index 0000000000..29f483bf60 --- /dev/null +++ b/kubernetes/docs/V1alpha3DeviceConstraint.md @@ -0,0 +1,14 @@ + + +# V1alpha3DeviceConstraint + +DeviceConstraint must have exactly one field set besides Requests. +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**matchAttribute** | **String** | 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. | [optional] +**requests** | **List<String>** | 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. References to subrequests must include the name of the main request and may include the subrequest using the format <main request>[/<subrequest>]. If just the main request is given, the constraint applies to all subrequests. | [optional] + + + diff --git a/kubernetes/docs/V1alpha3DeviceCounterConsumption.md b/kubernetes/docs/V1alpha3DeviceCounterConsumption.md new file mode 100644 index 0000000000..820b6fabf3 --- /dev/null +++ b/kubernetes/docs/V1alpha3DeviceCounterConsumption.md @@ -0,0 +1,14 @@ + + +# V1alpha3DeviceCounterConsumption + +DeviceCounterConsumption defines a set of counters that a device will consume from a CounterSet. +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**counterSet** | **String** | CounterSet defines the set from which the counters defined will be consumed. | +**counters** | [**Map<String, V1alpha3Counter>**](V1alpha3Counter.md) | Counters defines the Counter that will be consumed by the device. The maximum number counters in a device is 32. In addition, the maximum number of all counters in all devices is 1024 (for example, 64 devices with 16 counters each). | + + + diff --git a/kubernetes/docs/V1alpha3DeviceRequest.md b/kubernetes/docs/V1alpha3DeviceRequest.md new file mode 100644 index 0000000000..10c597ab83 --- /dev/null +++ b/kubernetes/docs/V1alpha3DeviceRequest.md @@ -0,0 +1,20 @@ + + +# V1alpha3DeviceRequest + +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. +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**adminAccess** | **Boolean** | 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. This field can only be set when deviceClassName is set and no subrequests are specified in the firstAvailable list. This is an alpha field and requires enabling the DRAAdminAccess feature gate. Admin access is disabled if this field is unset or set to false, otherwise it is enabled. | [optional] +**allocationMode** | **String** | 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. At least one device must exist on the node for the allocation to succeed. Allocation will fail if some devices are already allocated, unless adminAccess is requested. If AllocationMode 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. This field can only be set when deviceClassName is set and no subrequests are specified in the firstAvailable list. More modes may get added in the future. Clients must refuse to handle requests with unknown modes. | [optional] +**count** | **Long** | 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. This field can only be set when deviceClassName is set and no subrequests are specified in the firstAvailable list. | [optional] +**deviceClassName** | **String** | DeviceClassName references a specific DeviceClass, which can define additional configuration and selectors to be inherited by this request. A class is required if no subrequests are specified in the firstAvailable list and no class can be set if subrequests are specified in the firstAvailable list. 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. | [optional] +**firstAvailable** | [**List<V1alpha3DeviceSubRequest>**](V1alpha3DeviceSubRequest.md) | FirstAvailable contains subrequests, of which exactly one will be satisfied by the scheduler to satisfy this request. It tries to satisfy them in the order in which they are listed here. So if there are two entries in the list, the scheduler will only check the second one if it determines that the first one cannot be used. This field may only be set in the entries of DeviceClaim.Requests. DRA does not yet implement scoring, so the scheduler will select the first set of devices that satisfies all the requests in the claim. And if the requirements can be satisfied on more than one node, other scheduling features will determine which node is chosen. This means that the set of devices allocated to a claim might not be the optimal set available to the cluster. Scoring will be implemented later. | [optional] +**name** | **String** | 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. | +**selectors** | [**List<V1alpha3DeviceSelector>**](V1alpha3DeviceSelector.md) | 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. This field can only be set when deviceClassName is set and no subrequests are specified in the firstAvailable list. | [optional] +**tolerations** | [**List<V1alpha3DeviceToleration>**](V1alpha3DeviceToleration.md) | If specified, the request's tolerations. Tolerations for NoSchedule are required to allocate a device which has a taint with that effect. The same applies to NoExecute. In addition, should any of the allocated devices get tainted with NoExecute after allocation and that effect is not tolerated, then all pods consuming the ResourceClaim get deleted to evict them. The scheduler will not let new pods reserve the claim while it has these tainted devices. Once all pods are evicted, the claim will get deallocated. The maximum number of tolerations is 16. This field can only be set when deviceClassName is set and no subrequests are specified in the firstAvailable list. This is an alpha field and requires enabling the DRADeviceTaints feature gate. | [optional] + + + diff --git a/kubernetes/docs/V1alpha3DeviceRequestAllocationResult.md b/kubernetes/docs/V1alpha3DeviceRequestAllocationResult.md new file mode 100644 index 0000000000..3e551e7055 --- /dev/null +++ b/kubernetes/docs/V1alpha3DeviceRequestAllocationResult.md @@ -0,0 +1,18 @@ + + +# V1alpha3DeviceRequestAllocationResult + +DeviceRequestAllocationResult contains the allocation result for one request. +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**adminAccess** | **Boolean** | AdminAccess indicates that this device was allocated for administrative access. See the corresponding request field for a definition of mode. This is an alpha field and requires enabling the DRAAdminAccess feature gate. Admin access is disabled if this field is unset or set to false, otherwise it is enabled. | [optional] +**device** | **String** | Device references one device instance via its name in the driver's resource pool. It must be a DNS label. | +**driver** | **String** | 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. | +**pool** | **String** | This name together with the driver name and the device name field identify which device was allocated (`<driver name>/<pool name>/<device name>`). Must not be longer than 253 characters and may contain one or more DNS sub-domains separated by slashes. | +**request** | **String** | Request is the name of the request in the claim which caused this device to be allocated. If it references a subrequest in the firstAvailable list on a DeviceRequest, this field must include both the name of the main request and the subrequest using the format <main request>/<subrequest>. Multiple devices may have been allocated per request. | +**tolerations** | [**List<V1alpha3DeviceToleration>**](V1alpha3DeviceToleration.md) | A copy of all tolerations specified in the request at the time when the device got allocated. The maximum number of tolerations is 16. This is an alpha field and requires enabling the DRADeviceTaints feature gate. | [optional] + + + diff --git a/kubernetes/docs/V1alpha3DeviceSelector.md b/kubernetes/docs/V1alpha3DeviceSelector.md new file mode 100644 index 0000000000..f9fbf49104 --- /dev/null +++ b/kubernetes/docs/V1alpha3DeviceSelector.md @@ -0,0 +1,13 @@ + + +# V1alpha3DeviceSelector + +DeviceSelector must have exactly one field set. +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**cel** | [**V1alpha3CELDeviceSelector**](V1alpha3CELDeviceSelector.md) | | [optional] + + + diff --git a/kubernetes/docs/V1alpha3DeviceSubRequest.md b/kubernetes/docs/V1alpha3DeviceSubRequest.md new file mode 100644 index 0000000000..c22a5d3311 --- /dev/null +++ b/kubernetes/docs/V1alpha3DeviceSubRequest.md @@ -0,0 +1,18 @@ + + +# V1alpha3DeviceSubRequest + +DeviceSubRequest describes a request for device provided in the claim.spec.devices.requests[].firstAvailable array. Each is typically a request for a single resource like a device, but can also ask for several identical devices. DeviceSubRequest is similar to Request, but doesn't expose the AdminAccess or FirstAvailable fields, as those can only be set on the top-level request. AdminAccess is not supported for requests with a prioritized list, and recursive FirstAvailable fields are not supported. +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**allocationMode** | **String** | 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 AllocationMode 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. | [optional] +**count** | **Long** | 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. | [optional] +**deviceClassName** | **String** | DeviceClassName references a specific DeviceClass, which can define additional configuration and selectors to be inherited by this subrequest. 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. | +**name** | **String** | Name can be used to reference this subrequest in the list of constraints or the list of configurations for the claim. References must use the format <main request>/<subrequest>. Must be a DNS label. | +**selectors** | [**List<V1alpha3DeviceSelector>**](V1alpha3DeviceSelector.md) | 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. | [optional] +**tolerations** | [**List<V1alpha3DeviceToleration>**](V1alpha3DeviceToleration.md) | If specified, the request's tolerations. Tolerations for NoSchedule are required to allocate a device which has a taint with that effect. The same applies to NoExecute. In addition, should any of the allocated devices get tainted with NoExecute after allocation and that effect is not tolerated, then all pods consuming the ResourceClaim get deleted to evict them. The scheduler will not let new pods reserve the claim while it has these tainted devices. Once all pods are evicted, the claim will get deallocated. The maximum number of tolerations is 16. This is an alpha field and requires enabling the DRADeviceTaints feature gate. | [optional] + + + diff --git a/kubernetes/docs/V1alpha3DeviceTaint.md b/kubernetes/docs/V1alpha3DeviceTaint.md new file mode 100644 index 0000000000..383a4ed114 --- /dev/null +++ b/kubernetes/docs/V1alpha3DeviceTaint.md @@ -0,0 +1,16 @@ + + +# V1alpha3DeviceTaint + +The device this taint is attached to has the \"effect\" on any claim which does not tolerate the taint and, through the claim, to pods using the claim. +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**effect** | **String** | The effect of the taint on claims that do not tolerate the taint and through such claims on the pods using them. Valid effects are NoSchedule and NoExecute. PreferNoSchedule as used for nodes is not valid here. | +**key** | **String** | The taint key to be applied to a device. Must be a label name. | +**timeAdded** | [**OffsetDateTime**](OffsetDateTime.md) | TimeAdded represents the time at which the taint was added. Added automatically during create or update if not set. | [optional] +**value** | **String** | The taint value corresponding to the taint key. Must be a label value. | [optional] + + + diff --git a/kubernetes/docs/V1alpha3DeviceTaintRule.md b/kubernetes/docs/V1alpha3DeviceTaintRule.md new file mode 100644 index 0000000000..1bf257c280 --- /dev/null +++ b/kubernetes/docs/V1alpha3DeviceTaintRule.md @@ -0,0 +1,20 @@ + + +# V1alpha3DeviceTaintRule + +DeviceTaintRule adds one taint to all devices which match the selector. This has the same effect as if the taint was specified directly in the ResourceSlice by the DRA driver. +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] +**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] +**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] +**spec** | [**V1alpha3DeviceTaintRuleSpec**](V1alpha3DeviceTaintRuleSpec.md) | | + + +## Implemented Interfaces + +* io.kubernetes.client.common.KubernetesObject + + diff --git a/kubernetes/docs/V1alpha3DeviceTaintRuleList.md b/kubernetes/docs/V1alpha3DeviceTaintRuleList.md new file mode 100644 index 0000000000..4cc1a314c5 --- /dev/null +++ b/kubernetes/docs/V1alpha3DeviceTaintRuleList.md @@ -0,0 +1,20 @@ + + +# V1alpha3DeviceTaintRuleList + +DeviceTaintRuleList is a collection of DeviceTaintRules. +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] +**items** | [**List<V1alpha3DeviceTaintRule>**](V1alpha3DeviceTaintRule.md) | Items is the list of DeviceTaintRules. | +**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] +**metadata** | [**V1ListMeta**](V1ListMeta.md) | | [optional] + + +## Implemented Interfaces + +* io.kubernetes.client.common.KubernetesListObject + + diff --git a/kubernetes/docs/V1alpha3DeviceTaintRuleSpec.md b/kubernetes/docs/V1alpha3DeviceTaintRuleSpec.md new file mode 100644 index 0000000000..ed7ea7adda --- /dev/null +++ b/kubernetes/docs/V1alpha3DeviceTaintRuleSpec.md @@ -0,0 +1,14 @@ + + +# V1alpha3DeviceTaintRuleSpec + +DeviceTaintRuleSpec specifies the selector and one taint. +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**deviceSelector** | [**V1alpha3DeviceTaintSelector**](V1alpha3DeviceTaintSelector.md) | | [optional] +**taint** | [**V1alpha3DeviceTaint**](V1alpha3DeviceTaint.md) | | + + + diff --git a/kubernetes/docs/V1alpha3DeviceTaintSelector.md b/kubernetes/docs/V1alpha3DeviceTaintSelector.md new file mode 100644 index 0000000000..982b00bece --- /dev/null +++ b/kubernetes/docs/V1alpha3DeviceTaintSelector.md @@ -0,0 +1,17 @@ + + +# V1alpha3DeviceTaintSelector + +DeviceTaintSelector defines which device(s) a DeviceTaintRule applies to. The empty selector matches all devices. Without a selector, no devices are matched. +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**device** | **String** | If device is set, only devices with that name are selected. This field corresponds to slice.spec.devices[].name. Setting also driver and pool may be required to avoid ambiguity, but is not required. | [optional] +**deviceClassName** | **String** | If DeviceClassName is set, the selectors defined there must be satisfied by a device to be selected. This field corresponds to class.metadata.name. | [optional] +**driver** | **String** | If driver is set, only devices from that driver are selected. This fields corresponds to slice.spec.driver. | [optional] +**pool** | **String** | If pool is set, only devices in that pool are selected. Also setting the driver name may be useful to avoid ambiguity when different drivers use the same pool name, but this is not required because selecting pools from different drivers may also be useful, for example when drivers with node-local devices use the node name as their pool name. | [optional] +**selectors** | [**List<V1alpha3DeviceSelector>**](V1alpha3DeviceSelector.md) | Selectors contains the same selection criteria as a ResourceClaim. Currently, CEL expressions are supported. All of these selectors must be satisfied. | [optional] + + + diff --git a/kubernetes/docs/V1alpha3DeviceToleration.md b/kubernetes/docs/V1alpha3DeviceToleration.md new file mode 100644 index 0000000000..ef2de41635 --- /dev/null +++ b/kubernetes/docs/V1alpha3DeviceToleration.md @@ -0,0 +1,17 @@ + + +# V1alpha3DeviceToleration + +The ResourceClaim this DeviceToleration is attached to tolerates any taint that matches the triple using the matching operator . +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**effect** | **String** | Effect indicates the taint effect to match. Empty means match all taint effects. When specified, allowed values are NoSchedule and NoExecute. | [optional] +**key** | **String** | 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. Must be a label name. | [optional] +**operator** | **String** | 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 ResourceClaim can tolerate all taints of a particular category. | [optional] +**tolerationSeconds** | **Long** | 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. If larger than zero, the time when the pod needs to be evicted is calculated as <time when taint was adedd> + <toleration seconds>. | [optional] +**value** | **String** | Value is the taint value the toleration matches to. If the operator is Exists, the value must be empty, otherwise just a regular string. Must be a label value. | [optional] + + + diff --git a/kubernetes/docs/V1alpha3NetworkDeviceData.md b/kubernetes/docs/V1alpha3NetworkDeviceData.md new file mode 100644 index 0000000000..527ef4f99f --- /dev/null +++ b/kubernetes/docs/V1alpha3NetworkDeviceData.md @@ -0,0 +1,15 @@ + + +# V1alpha3NetworkDeviceData + +NetworkDeviceData provides network-related details for the allocated device. This information may be filled by drivers or other components to configure or identify the device within a network context. +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**hardwareAddress** | **String** | HardwareAddress represents the hardware address (e.g. MAC Address) of the device's network interface. Must not be longer than 128 characters. | [optional] +**interfaceName** | **String** | InterfaceName specifies the name of the network interface associated with the allocated device. This might be the name of a physical or virtual network interface being configured in the pod. Must not be longer than 256 characters. | [optional] +**ips** | **List<String>** | IPs lists the network addresses assigned to the device's network interface. This can include both IPv4 and IPv6 addresses. The IPs are in the CIDR notation, which includes both the address and the associated subnet mask. e.g.: \"192.0.2.5/24\" for IPv4 and \"2001:db8::5/64\" for IPv6. Must not contain more than 16 entries. | [optional] + + + diff --git a/kubernetes/docs/V1alpha3OpaqueDeviceConfiguration.md b/kubernetes/docs/V1alpha3OpaqueDeviceConfiguration.md new file mode 100644 index 0000000000..09b04ae43a --- /dev/null +++ b/kubernetes/docs/V1alpha3OpaqueDeviceConfiguration.md @@ -0,0 +1,14 @@ + + +# V1alpha3OpaqueDeviceConfiguration + +OpaqueDeviceConfiguration contains configuration parameters for a driver in a format defined by the driver vendor. +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**driver** | **String** | 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. | +**parameters** | [**Object**](.md) | 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. The length of the raw data must be smaller or equal to 10 Ki. | + + + diff --git a/kubernetes/docs/V1alpha3ResourceClaim.md b/kubernetes/docs/V1alpha3ResourceClaim.md new file mode 100644 index 0000000000..cedd82895c --- /dev/null +++ b/kubernetes/docs/V1alpha3ResourceClaim.md @@ -0,0 +1,21 @@ + + +# V1alpha3ResourceClaim + +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. +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] +**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] +**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] +**spec** | [**V1alpha3ResourceClaimSpec**](V1alpha3ResourceClaimSpec.md) | | +**status** | [**V1alpha3ResourceClaimStatus**](V1alpha3ResourceClaimStatus.md) | | [optional] + + +## Implemented Interfaces + +* io.kubernetes.client.common.KubernetesObject + + diff --git a/kubernetes/docs/V1alpha3ResourceClaimConsumerReference.md b/kubernetes/docs/V1alpha3ResourceClaimConsumerReference.md new file mode 100644 index 0000000000..a499297156 --- /dev/null +++ b/kubernetes/docs/V1alpha3ResourceClaimConsumerReference.md @@ -0,0 +1,16 @@ + + +# V1alpha3ResourceClaimConsumerReference + +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. +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**apiGroup** | **String** | 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. | [optional] +**name** | **String** | Name is the name of resource being referenced. | +**resource** | **String** | Resource is the type of resource being referenced, for example \"pods\". | +**uid** | **String** | UID identifies exactly one incarnation of the resource. | + + + diff --git a/kubernetes/docs/V1alpha3ResourceClaimList.md b/kubernetes/docs/V1alpha3ResourceClaimList.md new file mode 100644 index 0000000000..2adccb2de9 --- /dev/null +++ b/kubernetes/docs/V1alpha3ResourceClaimList.md @@ -0,0 +1,20 @@ + + +# V1alpha3ResourceClaimList + +ResourceClaimList is a collection of claims. +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] +**items** | [**List<V1alpha3ResourceClaim>**](V1alpha3ResourceClaim.md) | Items is the list of resource claims. | +**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] +**metadata** | [**V1ListMeta**](V1ListMeta.md) | | [optional] + + +## Implemented Interfaces + +* io.kubernetes.client.common.KubernetesListObject + + diff --git a/kubernetes/docs/V1alpha3ResourceClaimSpec.md b/kubernetes/docs/V1alpha3ResourceClaimSpec.md new file mode 100644 index 0000000000..f69a2a5ee5 --- /dev/null +++ b/kubernetes/docs/V1alpha3ResourceClaimSpec.md @@ -0,0 +1,13 @@ + + +# V1alpha3ResourceClaimSpec + +ResourceClaimSpec defines what is being requested in a ResourceClaim and how to configure it. +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**devices** | [**V1alpha3DeviceClaim**](V1alpha3DeviceClaim.md) | | [optional] + + + diff --git a/kubernetes/docs/V1alpha3ResourceClaimStatus.md b/kubernetes/docs/V1alpha3ResourceClaimStatus.md new file mode 100644 index 0000000000..75caa4a9eb --- /dev/null +++ b/kubernetes/docs/V1alpha3ResourceClaimStatus.md @@ -0,0 +1,15 @@ + + +# V1alpha3ResourceClaimStatus + +ResourceClaimStatus tracks whether the resource has been allocated and what the result of that was. +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**allocation** | [**V1alpha3AllocationResult**](V1alpha3AllocationResult.md) | | [optional] +**devices** | [**List<V1alpha3AllocatedDeviceStatus>**](V1alpha3AllocatedDeviceStatus.md) | Devices contains the status of each device allocated for this claim, as reported by the driver. This can include driver-specific information. Entries are owned by their respective drivers. | [optional] +**reservedFor** | [**List<V1alpha3ResourceClaimConsumerReference>**](V1alpha3ResourceClaimConsumerReference.md) | 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 256 such reservations. This may get increased in the future, but not reduced. | [optional] + + + diff --git a/kubernetes/docs/V1alpha3ResourceClaimTemplate.md b/kubernetes/docs/V1alpha3ResourceClaimTemplate.md new file mode 100644 index 0000000000..49800f229f --- /dev/null +++ b/kubernetes/docs/V1alpha3ResourceClaimTemplate.md @@ -0,0 +1,20 @@ + + +# V1alpha3ResourceClaimTemplate + +ResourceClaimTemplate is used to produce ResourceClaim objects. This is an alpha type and requires enabling the DynamicResourceAllocation feature gate. +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] +**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] +**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] +**spec** | [**V1alpha3ResourceClaimTemplateSpec**](V1alpha3ResourceClaimTemplateSpec.md) | | + + +## Implemented Interfaces + +* io.kubernetes.client.common.KubernetesObject + + diff --git a/kubernetes/docs/V1alpha3ResourceClaimTemplateList.md b/kubernetes/docs/V1alpha3ResourceClaimTemplateList.md new file mode 100644 index 0000000000..850678d773 --- /dev/null +++ b/kubernetes/docs/V1alpha3ResourceClaimTemplateList.md @@ -0,0 +1,20 @@ + + +# V1alpha3ResourceClaimTemplateList + +ResourceClaimTemplateList is a collection of claim templates. +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] +**items** | [**List<V1alpha3ResourceClaimTemplate>**](V1alpha3ResourceClaimTemplate.md) | Items is the list of resource claim templates. | +**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] +**metadata** | [**V1ListMeta**](V1ListMeta.md) | | [optional] + + +## Implemented Interfaces + +* io.kubernetes.client.common.KubernetesListObject + + diff --git a/kubernetes/docs/V1alpha3ResourceClaimTemplateSpec.md b/kubernetes/docs/V1alpha3ResourceClaimTemplateSpec.md new file mode 100644 index 0000000000..3693c1f442 --- /dev/null +++ b/kubernetes/docs/V1alpha3ResourceClaimTemplateSpec.md @@ -0,0 +1,14 @@ + + +# V1alpha3ResourceClaimTemplateSpec + +ResourceClaimTemplateSpec contains the metadata and fields for a ResourceClaim. +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] +**spec** | [**V1alpha3ResourceClaimSpec**](V1alpha3ResourceClaimSpec.md) | | + + + diff --git a/kubernetes/docs/V1alpha3ResourcePool.md b/kubernetes/docs/V1alpha3ResourcePool.md new file mode 100644 index 0000000000..7583159d17 --- /dev/null +++ b/kubernetes/docs/V1alpha3ResourcePool.md @@ -0,0 +1,15 @@ + + +# V1alpha3ResourcePool + +ResourcePool describes the pool that ResourceSlices belong to. +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**generation** | **Long** | 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. | +**name** | **String** | 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. | +**resourceSliceCount** | **Long** | 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. | + + + diff --git a/kubernetes/docs/V1alpha3ResourceSlice.md b/kubernetes/docs/V1alpha3ResourceSlice.md new file mode 100644 index 0000000000..5ab6703c80 --- /dev/null +++ b/kubernetes/docs/V1alpha3ResourceSlice.md @@ -0,0 +1,20 @@ + + +# V1alpha3ResourceSlice + +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. +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] +**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] +**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] +**spec** | [**V1alpha3ResourceSliceSpec**](V1alpha3ResourceSliceSpec.md) | | + + +## Implemented Interfaces + +* io.kubernetes.client.common.KubernetesObject + + diff --git a/kubernetes/docs/V1alpha3ResourceSliceList.md b/kubernetes/docs/V1alpha3ResourceSliceList.md new file mode 100644 index 0000000000..4db8d02daf --- /dev/null +++ b/kubernetes/docs/V1alpha3ResourceSliceList.md @@ -0,0 +1,20 @@ + + +# V1alpha3ResourceSliceList + +ResourceSliceList is a collection of ResourceSlices. +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] +**items** | [**List<V1alpha3ResourceSlice>**](V1alpha3ResourceSlice.md) | Items is the list of resource ResourceSlices. | +**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] +**metadata** | [**V1ListMeta**](V1ListMeta.md) | | [optional] + + +## Implemented Interfaces + +* io.kubernetes.client.common.KubernetesListObject + + diff --git a/kubernetes/docs/V1alpha3ResourceSliceSpec.md b/kubernetes/docs/V1alpha3ResourceSliceSpec.md new file mode 100644 index 0000000000..177336ae6b --- /dev/null +++ b/kubernetes/docs/V1alpha3ResourceSliceSpec.md @@ -0,0 +1,20 @@ + + +# V1alpha3ResourceSliceSpec + +ResourceSliceSpec contains the information published by the driver in one ResourceSlice. +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**allNodes** | **Boolean** | AllNodes indicates that all nodes have access to the resources in the pool. Exactly one of NodeName, NodeSelector, AllNodes, and PerDeviceNodeSelection must be set. | [optional] +**devices** | [**List<V1alpha3Device>**](V1alpha3Device.md) | Devices lists some or all of the devices in this pool. Must not have more than 128 entries. | [optional] +**driver** | **String** | 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. | +**nodeName** | **String** | 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, AllNodes, and PerDeviceNodeSelection must be set. This field is immutable. | [optional] +**nodeSelector** | [**V1NodeSelector**](V1NodeSelector.md) | | [optional] +**perDeviceNodeSelection** | **Boolean** | PerDeviceNodeSelection defines whether the access from nodes to resources in the pool is set on the ResourceSlice level or on each device. If it is set to true, every device defined the ResourceSlice must specify this individually. Exactly one of NodeName, NodeSelector, AllNodes, and PerDeviceNodeSelection must be set. | [optional] +**pool** | [**V1alpha3ResourcePool**](V1alpha3ResourcePool.md) | | +**sharedCounters** | [**List<V1alpha3CounterSet>**](V1alpha3CounterSet.md) | SharedCounters defines a list of counter sets, each of which has a name and a list of counters available. The names of the SharedCounters must be unique in the ResourceSlice. The maximum number of SharedCounters is 32. | [optional] + + + diff --git a/kubernetes/docs/V1beta1AllocatedDeviceStatus.md b/kubernetes/docs/V1beta1AllocatedDeviceStatus.md new file mode 100644 index 0000000000..db2aae472a --- /dev/null +++ b/kubernetes/docs/V1beta1AllocatedDeviceStatus.md @@ -0,0 +1,18 @@ + + +# V1beta1AllocatedDeviceStatus + +AllocatedDeviceStatus contains the status of an allocated device, if the driver chooses to report it. This may include driver-specific information. +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**conditions** | [**List<V1Condition>**](V1Condition.md) | Conditions contains the latest observation of the device's state. If the device has been configured according to the class and claim config references, the `Ready` condition should be True. Must not contain more than 8 entries. | [optional] +**data** | [**Object**](.md) | Data contains arbitrary driver-specific data. The length of the raw data must be smaller or equal to 10 Ki. | [optional] +**device** | **String** | Device references one device instance via its name in the driver's resource pool. It must be a DNS label. | +**driver** | **String** | 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. | +**networkData** | [**V1beta1NetworkDeviceData**](V1beta1NetworkDeviceData.md) | | [optional] +**pool** | **String** | This name together with the driver name and the device name field identify which device was allocated (`<driver name>/<pool name>/<device name>`). Must not be longer than 253 characters and may contain one or more DNS sub-domains separated by slashes. | + + + diff --git a/kubernetes/docs/V1beta1AllocationResult.md b/kubernetes/docs/V1beta1AllocationResult.md new file mode 100644 index 0000000000..c229dedcf0 --- /dev/null +++ b/kubernetes/docs/V1beta1AllocationResult.md @@ -0,0 +1,14 @@ + + +# V1beta1AllocationResult + +AllocationResult contains attributes of an allocated resource. +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**devices** | [**V1beta1DeviceAllocationResult**](V1beta1DeviceAllocationResult.md) | | [optional] +**nodeSelector** | [**V1NodeSelector**](V1NodeSelector.md) | | [optional] + + + diff --git a/kubernetes/docs/V1beta1BasicDevice.md b/kubernetes/docs/V1beta1BasicDevice.md new file mode 100644 index 0000000000..4aecc96abd --- /dev/null +++ b/kubernetes/docs/V1beta1BasicDevice.md @@ -0,0 +1,19 @@ + + +# V1beta1BasicDevice + +BasicDevice defines one device instance. +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**allNodes** | **Boolean** | AllNodes indicates that all nodes have access to the device. Must only be set if Spec.PerDeviceNodeSelection is set to true. At most one of NodeName, NodeSelector and AllNodes can be set. | [optional] +**attributes** | [**Map<String, V1beta1DeviceAttribute>**](V1beta1DeviceAttribute.md) | 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. | [optional] +**capacity** | [**Map<String, V1beta1DeviceCapacity>**](V1beta1DeviceCapacity.md) | 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. | [optional] +**consumesCounters** | [**List<V1beta1DeviceCounterConsumption>**](V1beta1DeviceCounterConsumption.md) | ConsumesCounters defines a list of references to sharedCounters and the set of counters that the device will consume from those counter sets. There can only be a single entry per counterSet. The total number of device counter consumption entries must be <= 32. In addition, the total number in the entire ResourceSlice must be <= 1024 (for example, 64 devices with 16 counters each). | [optional] +**nodeName** | **String** | NodeName identifies the node where the device is available. Must only be set if Spec.PerDeviceNodeSelection is set to true. At most one of NodeName, NodeSelector and AllNodes can be set. | [optional] +**nodeSelector** | [**V1NodeSelector**](V1NodeSelector.md) | | [optional] +**taints** | [**List<V1beta1DeviceTaint>**](V1beta1DeviceTaint.md) | If specified, these are the driver-defined taints. The maximum number of taints is 4. This is an alpha field and requires enabling the DRADeviceTaints feature gate. | [optional] + + + diff --git a/kubernetes/docs/V1beta1CELDeviceSelector.md b/kubernetes/docs/V1beta1CELDeviceSelector.md new file mode 100644 index 0000000000..c781494868 --- /dev/null +++ b/kubernetes/docs/V1beta1CELDeviceSelector.md @@ -0,0 +1,13 @@ + + +# V1beta1CELDeviceSelector + +CELDeviceSelector contains a CEL expression for selecting a device. +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**expression** | **String** | 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) The length of the expression must be smaller or equal to 10 Ki. The cost of evaluating it is also limited based on the estimated number of logical steps. | + + + diff --git a/kubernetes/docs/V1beta1ClusterTrustBundle.md b/kubernetes/docs/V1beta1ClusterTrustBundle.md new file mode 100644 index 0000000000..3b2918b0a1 --- /dev/null +++ b/kubernetes/docs/V1beta1ClusterTrustBundle.md @@ -0,0 +1,20 @@ + + +# V1beta1ClusterTrustBundle + +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. +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] +**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] +**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] +**spec** | [**V1beta1ClusterTrustBundleSpec**](V1beta1ClusterTrustBundleSpec.md) | | + + +## Implemented Interfaces + +* io.kubernetes.client.common.KubernetesObject + + diff --git a/kubernetes/docs/V1beta1ClusterTrustBundleList.md b/kubernetes/docs/V1beta1ClusterTrustBundleList.md new file mode 100644 index 0000000000..f0f3d005ea --- /dev/null +++ b/kubernetes/docs/V1beta1ClusterTrustBundleList.md @@ -0,0 +1,20 @@ + + +# V1beta1ClusterTrustBundleList + +ClusterTrustBundleList is a collection of ClusterTrustBundle objects +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] +**items** | [**List<V1beta1ClusterTrustBundle>**](V1beta1ClusterTrustBundle.md) | items is a collection of ClusterTrustBundle objects | +**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] +**metadata** | [**V1ListMeta**](V1ListMeta.md) | | [optional] + + +## Implemented Interfaces + +* io.kubernetes.client.common.KubernetesListObject + + diff --git a/kubernetes/docs/V1beta1ClusterTrustBundleSpec.md b/kubernetes/docs/V1beta1ClusterTrustBundleSpec.md new file mode 100644 index 0000000000..1c6e127fe4 --- /dev/null +++ b/kubernetes/docs/V1beta1ClusterTrustBundleSpec.md @@ -0,0 +1,14 @@ + + +# V1beta1ClusterTrustBundleSpec + +ClusterTrustBundleSpec contains the signer and trust anchors. +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**signerName** | **String** | 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=<the signer name> 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. | [optional] +**trustBundle** | **String** | 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. | + + + diff --git a/kubernetes/docs/V1beta1Counter.md b/kubernetes/docs/V1beta1Counter.md new file mode 100644 index 0000000000..27d2a78aa7 --- /dev/null +++ b/kubernetes/docs/V1beta1Counter.md @@ -0,0 +1,13 @@ + + +# V1beta1Counter + +Counter describes a quantity associated with a device. +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**value** | [**Quantity**](Quantity.md) | 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: ``` <quantity> ::= <signedNumber><suffix> (Note that <suffix> may be empty, from the \"\" case in <decimalSI>.) <digit> ::= 0 | 1 | ... | 9 <digits> ::= <digit> | <digit><digits> <number> ::= <digits> | <digits>.<digits> | <digits>. | .<digits> <sign> ::= \"+\" | \"-\" <signedNumber> ::= <number> | <sign><number> <suffix> ::= <binarySI> | <decimalExponent> | <decimalSI> <binarySI> ::= Ki | Mi | Gi | Ti | Pi | Ei (International System of units; See: http://physics.nist.gov/cuu/Units/binary.html) <decimalSI> ::= m | \"\" | k | M | G | T | P | E (Note that 1024 = 1Ki but 1000 = 1k; I didn't choose the capitalization.) <decimalExponent> ::= \"e\" <signedNumber> | \"E\" <signedNumber> ``` 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. | + + + diff --git a/kubernetes/docs/V1beta1CounterSet.md b/kubernetes/docs/V1beta1CounterSet.md new file mode 100644 index 0000000000..0567505964 --- /dev/null +++ b/kubernetes/docs/V1beta1CounterSet.md @@ -0,0 +1,14 @@ + + +# V1beta1CounterSet + +CounterSet defines a named set of counters that are available to be used by devices defined in the ResourceSlice. The counters are not allocatable by themselves, but can be referenced by devices. When a device is allocated, the portion of counters it uses will no longer be available for use by other devices. +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**counters** | [**Map<String, V1beta1Counter>**](V1beta1Counter.md) | Counters defines the set of counters for this CounterSet The name of each counter must be unique in that set and must be a DNS label. The maximum number of counters is 32. | +**name** | **String** | Name defines the name of the counter set. It must be a DNS label. | + + + diff --git a/kubernetes/docs/V1beta1Device.md b/kubernetes/docs/V1beta1Device.md new file mode 100644 index 0000000000..05f49275b1 --- /dev/null +++ b/kubernetes/docs/V1beta1Device.md @@ -0,0 +1,14 @@ + + +# V1beta1Device + +Device represents one individual hardware instance that can be selected based on its attributes. Besides the name, exactly one field must be set. +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**basic** | [**V1beta1BasicDevice**](V1beta1BasicDevice.md) | | [optional] +**name** | **String** | Name is unique identifier among all devices managed by the driver in the pool. It must be a DNS label. | + + + diff --git a/kubernetes/docs/V1beta1DeviceAllocationConfiguration.md b/kubernetes/docs/V1beta1DeviceAllocationConfiguration.md new file mode 100644 index 0000000000..21e7229e3f --- /dev/null +++ b/kubernetes/docs/V1beta1DeviceAllocationConfiguration.md @@ -0,0 +1,15 @@ + + +# V1beta1DeviceAllocationConfiguration + +DeviceAllocationConfiguration gets embedded in an AllocationResult. +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**opaque** | [**V1beta1OpaqueDeviceConfiguration**](V1beta1OpaqueDeviceConfiguration.md) | | [optional] +**requests** | **List<String>** | Requests lists the names of requests where the configuration applies. If empty, its applies to all requests. References to subrequests must include the name of the main request and may include the subrequest using the format <main request>[/<subrequest>]. If just the main request is given, the configuration applies to all subrequests. | [optional] +**source** | **String** | 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. | + + + diff --git a/kubernetes/docs/V1beta1DeviceAllocationResult.md b/kubernetes/docs/V1beta1DeviceAllocationResult.md new file mode 100644 index 0000000000..a76066971a --- /dev/null +++ b/kubernetes/docs/V1beta1DeviceAllocationResult.md @@ -0,0 +1,14 @@ + + +# V1beta1DeviceAllocationResult + +DeviceAllocationResult is the result of allocating devices. +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**config** | [**List<V1beta1DeviceAllocationConfiguration>**](V1beta1DeviceAllocationConfiguration.md) | 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. | [optional] +**results** | [**List<V1beta1DeviceRequestAllocationResult>**](V1beta1DeviceRequestAllocationResult.md) | Results lists all allocated devices. | [optional] + + + diff --git a/kubernetes/docs/V1beta1DeviceAttribute.md b/kubernetes/docs/V1beta1DeviceAttribute.md new file mode 100644 index 0000000000..90f01c4946 --- /dev/null +++ b/kubernetes/docs/V1beta1DeviceAttribute.md @@ -0,0 +1,16 @@ + + +# V1beta1DeviceAttribute + +DeviceAttribute must have exactly one field set. +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**bool** | **Boolean** | BoolValue is a true/false value. | [optional] +**_int** | **Long** | IntValue is a number. | [optional] +**string** | **String** | StringValue is a string. Must not be longer than 64 characters. | [optional] +**version** | **String** | VersionValue is a semantic version according to semver.org spec 2.0.0. Must not be longer than 64 characters. | [optional] + + + diff --git a/kubernetes/docs/V1beta1DeviceCapacity.md b/kubernetes/docs/V1beta1DeviceCapacity.md new file mode 100644 index 0000000000..dfd8abf0c4 --- /dev/null +++ b/kubernetes/docs/V1beta1DeviceCapacity.md @@ -0,0 +1,13 @@ + + +# V1beta1DeviceCapacity + +DeviceCapacity describes a quantity associated with a device. +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**value** | [**Quantity**](Quantity.md) | 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: ``` <quantity> ::= <signedNumber><suffix> (Note that <suffix> may be empty, from the \"\" case in <decimalSI>.) <digit> ::= 0 | 1 | ... | 9 <digits> ::= <digit> | <digit><digits> <number> ::= <digits> | <digits>.<digits> | <digits>. | .<digits> <sign> ::= \"+\" | \"-\" <signedNumber> ::= <number> | <sign><number> <suffix> ::= <binarySI> | <decimalExponent> | <decimalSI> <binarySI> ::= Ki | Mi | Gi | Ti | Pi | Ei (International System of units; See: http://physics.nist.gov/cuu/Units/binary.html) <decimalSI> ::= m | \"\" | k | M | G | T | P | E (Note that 1024 = 1Ki but 1000 = 1k; I didn't choose the capitalization.) <decimalExponent> ::= \"e\" <signedNumber> | \"E\" <signedNumber> ``` 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. | + + + diff --git a/kubernetes/docs/V1beta1DeviceClaim.md b/kubernetes/docs/V1beta1DeviceClaim.md new file mode 100644 index 0000000000..ce27f60cbf --- /dev/null +++ b/kubernetes/docs/V1beta1DeviceClaim.md @@ -0,0 +1,15 @@ + + +# V1beta1DeviceClaim + +DeviceClaim defines how to request devices with a ResourceClaim. +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**config** | [**List<V1beta1DeviceClaimConfiguration>**](V1beta1DeviceClaimConfiguration.md) | This field holds configuration for multiple potential drivers which could satisfy requests in this claim. It is ignored while allocating the claim. | [optional] +**constraints** | [**List<V1beta1DeviceConstraint>**](V1beta1DeviceConstraint.md) | These constraints must be satisfied by the set of devices that get allocated for the claim. | [optional] +**requests** | [**List<V1beta1DeviceRequest>**](V1beta1DeviceRequest.md) | Requests represent individual requests for distinct devices which must all be satisfied. If empty, nothing needs to be allocated. | [optional] + + + diff --git a/kubernetes/docs/V1beta1DeviceClaimConfiguration.md b/kubernetes/docs/V1beta1DeviceClaimConfiguration.md new file mode 100644 index 0000000000..2ff9be6101 --- /dev/null +++ b/kubernetes/docs/V1beta1DeviceClaimConfiguration.md @@ -0,0 +1,14 @@ + + +# V1beta1DeviceClaimConfiguration + +DeviceClaimConfiguration is used for configuration parameters in DeviceClaim. +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**opaque** | [**V1beta1OpaqueDeviceConfiguration**](V1beta1OpaqueDeviceConfiguration.md) | | [optional] +**requests** | **List<String>** | Requests lists the names of requests where the configuration applies. If empty, it applies to all requests. References to subrequests must include the name of the main request and may include the subrequest using the format <main request>[/<subrequest>]. If just the main request is given, the configuration applies to all subrequests. | [optional] + + + diff --git a/kubernetes/docs/V1beta1DeviceClass.md b/kubernetes/docs/V1beta1DeviceClass.md new file mode 100644 index 0000000000..281c7d7c12 --- /dev/null +++ b/kubernetes/docs/V1beta1DeviceClass.md @@ -0,0 +1,20 @@ + + +# V1beta1DeviceClass + +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. +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] +**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] +**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] +**spec** | [**V1beta1DeviceClassSpec**](V1beta1DeviceClassSpec.md) | | + + +## Implemented Interfaces + +* io.kubernetes.client.common.KubernetesObject + + diff --git a/kubernetes/docs/V1beta1DeviceClassConfiguration.md b/kubernetes/docs/V1beta1DeviceClassConfiguration.md new file mode 100644 index 0000000000..2c0ac619cb --- /dev/null +++ b/kubernetes/docs/V1beta1DeviceClassConfiguration.md @@ -0,0 +1,13 @@ + + +# V1beta1DeviceClassConfiguration + +DeviceClassConfiguration is used in DeviceClass. +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**opaque** | [**V1beta1OpaqueDeviceConfiguration**](V1beta1OpaqueDeviceConfiguration.md) | | [optional] + + + diff --git a/kubernetes/docs/V1beta1DeviceClassList.md b/kubernetes/docs/V1beta1DeviceClassList.md new file mode 100644 index 0000000000..17183e83b9 --- /dev/null +++ b/kubernetes/docs/V1beta1DeviceClassList.md @@ -0,0 +1,20 @@ + + +# V1beta1DeviceClassList + +DeviceClassList is a collection of classes. +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] +**items** | [**List<V1beta1DeviceClass>**](V1beta1DeviceClass.md) | Items is the list of resource classes. | +**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] +**metadata** | [**V1ListMeta**](V1ListMeta.md) | | [optional] + + +## Implemented Interfaces + +* io.kubernetes.client.common.KubernetesListObject + + diff --git a/kubernetes/docs/V1beta1DeviceClassSpec.md b/kubernetes/docs/V1beta1DeviceClassSpec.md new file mode 100644 index 0000000000..720cb0a185 --- /dev/null +++ b/kubernetes/docs/V1beta1DeviceClassSpec.md @@ -0,0 +1,14 @@ + + +# V1beta1DeviceClassSpec + +DeviceClassSpec is used in a [DeviceClass] to define what can be allocated and how to configure it. +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**config** | [**List<V1beta1DeviceClassConfiguration>**](V1beta1DeviceClassConfiguration.md) | 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. | [optional] +**selectors** | [**List<V1beta1DeviceSelector>**](V1beta1DeviceSelector.md) | Each selector must be satisfied by a device which is claimed via this class. | [optional] + + + diff --git a/kubernetes/docs/V1beta1DeviceConstraint.md b/kubernetes/docs/V1beta1DeviceConstraint.md new file mode 100644 index 0000000000..ca90ec159e --- /dev/null +++ b/kubernetes/docs/V1beta1DeviceConstraint.md @@ -0,0 +1,14 @@ + + +# V1beta1DeviceConstraint + +DeviceConstraint must have exactly one field set besides Requests. +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**matchAttribute** | **String** | 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. | [optional] +**requests** | **List<String>** | 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. References to subrequests must include the name of the main request and may include the subrequest using the format <main request>[/<subrequest>]. If just the main request is given, the constraint applies to all subrequests. | [optional] + + + diff --git a/kubernetes/docs/V1beta1DeviceCounterConsumption.md b/kubernetes/docs/V1beta1DeviceCounterConsumption.md new file mode 100644 index 0000000000..5239eac1ed --- /dev/null +++ b/kubernetes/docs/V1beta1DeviceCounterConsumption.md @@ -0,0 +1,14 @@ + + +# V1beta1DeviceCounterConsumption + +DeviceCounterConsumption defines a set of counters that a device will consume from a CounterSet. +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**counterSet** | **String** | CounterSet is the name of the set from which the counters defined will be consumed. | +**counters** | [**Map<String, V1beta1Counter>**](V1beta1Counter.md) | Counters defines the counters that will be consumed by the device. The maximum number counters in a device is 32. In addition, the maximum number of all counters in all devices is 1024 (for example, 64 devices with 16 counters each). | + + + diff --git a/kubernetes/docs/V1beta1DeviceRequest.md b/kubernetes/docs/V1beta1DeviceRequest.md new file mode 100644 index 0000000000..668b5c65f2 --- /dev/null +++ b/kubernetes/docs/V1beta1DeviceRequest.md @@ -0,0 +1,20 @@ + + +# V1beta1DeviceRequest + +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. +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**adminAccess** | **Boolean** | 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. This field can only be set when deviceClassName is set and no subrequests are specified in the firstAvailable list. This is an alpha field and requires enabling the DRAAdminAccess feature gate. Admin access is disabled if this field is unset or set to false, otherwise it is enabled. | [optional] +**allocationMode** | **String** | 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. At least one device must exist on the node for the allocation to succeed. Allocation will fail if some devices are already allocated, unless adminAccess is requested. If AllocationMode 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. This field can only be set when deviceClassName is set and no subrequests are specified in the firstAvailable list. More modes may get added in the future. Clients must refuse to handle requests with unknown modes. | [optional] +**count** | **Long** | 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. This field can only be set when deviceClassName is set and no subrequests are specified in the firstAvailable list. | [optional] +**deviceClassName** | **String** | DeviceClassName references a specific DeviceClass, which can define additional configuration and selectors to be inherited by this request. A class is required if no subrequests are specified in the firstAvailable list and no class can be set if subrequests are specified in the firstAvailable list. 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. | [optional] +**firstAvailable** | [**List<V1beta1DeviceSubRequest>**](V1beta1DeviceSubRequest.md) | FirstAvailable contains subrequests, of which exactly one will be satisfied by the scheduler to satisfy this request. It tries to satisfy them in the order in which they are listed here. So if there are two entries in the list, the scheduler will only check the second one if it determines that the first one cannot be used. This field may only be set in the entries of DeviceClaim.Requests. DRA does not yet implement scoring, so the scheduler will select the first set of devices that satisfies all the requests in the claim. And if the requirements can be satisfied on more than one node, other scheduling features will determine which node is chosen. This means that the set of devices allocated to a claim might not be the optimal set available to the cluster. Scoring will be implemented later. | [optional] +**name** | **String** | 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 and unique among all DeviceRequests in a ResourceClaim. | +**selectors** | [**List<V1beta1DeviceSelector>**](V1beta1DeviceSelector.md) | 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. This field can only be set when deviceClassName is set and no subrequests are specified in the firstAvailable list. | [optional] +**tolerations** | [**List<V1beta1DeviceToleration>**](V1beta1DeviceToleration.md) | If specified, the request's tolerations. Tolerations for NoSchedule are required to allocate a device which has a taint with that effect. The same applies to NoExecute. In addition, should any of the allocated devices get tainted with NoExecute after allocation and that effect is not tolerated, then all pods consuming the ResourceClaim get deleted to evict them. The scheduler will not let new pods reserve the claim while it has these tainted devices. Once all pods are evicted, the claim will get deallocated. The maximum number of tolerations is 16. This field can only be set when deviceClassName is set and no subrequests are specified in the firstAvailable list. This is an alpha field and requires enabling the DRADeviceTaints feature gate. | [optional] + + + diff --git a/kubernetes/docs/V1beta1DeviceRequestAllocationResult.md b/kubernetes/docs/V1beta1DeviceRequestAllocationResult.md new file mode 100644 index 0000000000..8953dc25e5 --- /dev/null +++ b/kubernetes/docs/V1beta1DeviceRequestAllocationResult.md @@ -0,0 +1,18 @@ + + +# V1beta1DeviceRequestAllocationResult + +DeviceRequestAllocationResult contains the allocation result for one request. +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**adminAccess** | **Boolean** | AdminAccess indicates that this device was allocated for administrative access. See the corresponding request field for a definition of mode. This is an alpha field and requires enabling the DRAAdminAccess feature gate. Admin access is disabled if this field is unset or set to false, otherwise it is enabled. | [optional] +**device** | **String** | Device references one device instance via its name in the driver's resource pool. It must be a DNS label. | +**driver** | **String** | 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. | +**pool** | **String** | This name together with the driver name and the device name field identify which device was allocated (`<driver name>/<pool name>/<device name>`). Must not be longer than 253 characters and may contain one or more DNS sub-domains separated by slashes. | +**request** | **String** | Request is the name of the request in the claim which caused this device to be allocated. If it references a subrequest in the firstAvailable list on a DeviceRequest, this field must include both the name of the main request and the subrequest using the format <main request>/<subrequest>. Multiple devices may have been allocated per request. | +**tolerations** | [**List<V1beta1DeviceToleration>**](V1beta1DeviceToleration.md) | A copy of all tolerations specified in the request at the time when the device got allocated. The maximum number of tolerations is 16. This is an alpha field and requires enabling the DRADeviceTaints feature gate. | [optional] + + + diff --git a/kubernetes/docs/V1beta1DeviceSelector.md b/kubernetes/docs/V1beta1DeviceSelector.md new file mode 100644 index 0000000000..5ed28c77eb --- /dev/null +++ b/kubernetes/docs/V1beta1DeviceSelector.md @@ -0,0 +1,13 @@ + + +# V1beta1DeviceSelector + +DeviceSelector must have exactly one field set. +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**cel** | [**V1beta1CELDeviceSelector**](V1beta1CELDeviceSelector.md) | | [optional] + + + diff --git a/kubernetes/docs/V1beta1DeviceSubRequest.md b/kubernetes/docs/V1beta1DeviceSubRequest.md new file mode 100644 index 0000000000..9e38622feb --- /dev/null +++ b/kubernetes/docs/V1beta1DeviceSubRequest.md @@ -0,0 +1,18 @@ + + +# V1beta1DeviceSubRequest + +DeviceSubRequest describes a request for device provided in the claim.spec.devices.requests[].firstAvailable array. Each is typically a request for a single resource like a device, but can also ask for several identical devices. DeviceSubRequest is similar to Request, but doesn't expose the AdminAccess or FirstAvailable fields, as those can only be set on the top-level request. AdminAccess is not supported for requests with a prioritized list, and recursive FirstAvailable fields are not supported. +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**allocationMode** | **String** | AllocationMode and its related fields define how devices are allocated to satisfy this subrequest. 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 subrequest is for all of the matching devices in a pool. Allocation will fail if some devices are already allocated, unless adminAccess is requested. If AllocationMode 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 subrequests must specify this field. More modes may get added in the future. Clients must refuse to handle requests with unknown modes. | [optional] +**count** | **Long** | 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. | [optional] +**deviceClassName** | **String** | DeviceClassName references a specific DeviceClass, which can define additional configuration and selectors to be inherited by this subrequest. 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. | +**name** | **String** | Name can be used to reference this subrequest in the list of constraints or the list of configurations for the claim. References must use the format <main request>/<subrequest>. Must be a DNS label. | +**selectors** | [**List<V1beta1DeviceSelector>**](V1beta1DeviceSelector.md) | Selectors define criteria which must be satisfied by a specific device in order for that device to be considered for this subrequest. All selectors must be satisfied for a device to be considered. | [optional] +**tolerations** | [**List<V1beta1DeviceToleration>**](V1beta1DeviceToleration.md) | If specified, the request's tolerations. Tolerations for NoSchedule are required to allocate a device which has a taint with that effect. The same applies to NoExecute. In addition, should any of the allocated devices get tainted with NoExecute after allocation and that effect is not tolerated, then all pods consuming the ResourceClaim get deleted to evict them. The scheduler will not let new pods reserve the claim while it has these tainted devices. Once all pods are evicted, the claim will get deallocated. The maximum number of tolerations is 16. This is an alpha field and requires enabling the DRADeviceTaints feature gate. | [optional] + + + diff --git a/kubernetes/docs/V1beta1DeviceTaint.md b/kubernetes/docs/V1beta1DeviceTaint.md new file mode 100644 index 0000000000..a1183e07d3 --- /dev/null +++ b/kubernetes/docs/V1beta1DeviceTaint.md @@ -0,0 +1,16 @@ + + +# V1beta1DeviceTaint + +The device this taint is attached to has the \"effect\" on any claim which does not tolerate the taint and, through the claim, to pods using the claim. +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**effect** | **String** | The effect of the taint on claims that do not tolerate the taint and through such claims on the pods using them. Valid effects are NoSchedule and NoExecute. PreferNoSchedule as used for nodes is not valid here. | +**key** | **String** | The taint key to be applied to a device. Must be a label name. | +**timeAdded** | [**OffsetDateTime**](OffsetDateTime.md) | TimeAdded represents the time at which the taint was added. Added automatically during create or update if not set. | [optional] +**value** | **String** | The taint value corresponding to the taint key. Must be a label value. | [optional] + + + diff --git a/kubernetes/docs/V1beta1DeviceToleration.md b/kubernetes/docs/V1beta1DeviceToleration.md new file mode 100644 index 0000000000..bbeae9098e --- /dev/null +++ b/kubernetes/docs/V1beta1DeviceToleration.md @@ -0,0 +1,17 @@ + + +# V1beta1DeviceToleration + +The ResourceClaim this DeviceToleration is attached to tolerates any taint that matches the triple using the matching operator . +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**effect** | **String** | Effect indicates the taint effect to match. Empty means match all taint effects. When specified, allowed values are NoSchedule and NoExecute. | [optional] +**key** | **String** | 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. Must be a label name. | [optional] +**operator** | **String** | 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 ResourceClaim can tolerate all taints of a particular category. | [optional] +**tolerationSeconds** | **Long** | 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. If larger than zero, the time when the pod needs to be evicted is calculated as <time when taint was adedd> + <toleration seconds>. | [optional] +**value** | **String** | Value is the taint value the toleration matches to. If the operator is Exists, the value must be empty, otherwise just a regular string. Must be a label value. | [optional] + + + diff --git a/kubernetes/docs/V1beta1IPAddress.md b/kubernetes/docs/V1beta1IPAddress.md new file mode 100644 index 0000000000..82baf6835c --- /dev/null +++ b/kubernetes/docs/V1beta1IPAddress.md @@ -0,0 +1,20 @@ + + +# V1beta1IPAddress + +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 +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] +**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] +**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] +**spec** | [**V1beta1IPAddressSpec**](V1beta1IPAddressSpec.md) | | [optional] + + +## Implemented Interfaces + +* io.kubernetes.client.common.KubernetesObject + + diff --git a/kubernetes/docs/V1beta1IPAddressList.md b/kubernetes/docs/V1beta1IPAddressList.md new file mode 100644 index 0000000000..aaa18a27dc --- /dev/null +++ b/kubernetes/docs/V1beta1IPAddressList.md @@ -0,0 +1,20 @@ + + +# V1beta1IPAddressList + +IPAddressList contains a list of IPAddress. +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] +**items** | [**List<V1beta1IPAddress>**](V1beta1IPAddress.md) | items is the list of IPAddresses. | +**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] +**metadata** | [**V1ListMeta**](V1ListMeta.md) | | [optional] + + +## Implemented Interfaces + +* io.kubernetes.client.common.KubernetesListObject + + diff --git a/kubernetes/docs/V1beta1IPAddressSpec.md b/kubernetes/docs/V1beta1IPAddressSpec.md new file mode 100644 index 0000000000..3aa21d04dd --- /dev/null +++ b/kubernetes/docs/V1beta1IPAddressSpec.md @@ -0,0 +1,13 @@ + + +# V1beta1IPAddressSpec + +IPAddressSpec describe the attributes in an IP Address. +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**parentRef** | [**V1beta1ParentReference**](V1beta1ParentReference.md) | | + + + diff --git a/kubernetes/docs/V1beta1LeaseCandidate.md b/kubernetes/docs/V1beta1LeaseCandidate.md new file mode 100644 index 0000000000..a71d289637 --- /dev/null +++ b/kubernetes/docs/V1beta1LeaseCandidate.md @@ -0,0 +1,20 @@ + + +# V1beta1LeaseCandidate + +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. +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] +**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] +**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] +**spec** | [**V1beta1LeaseCandidateSpec**](V1beta1LeaseCandidateSpec.md) | | [optional] + + +## Implemented Interfaces + +* io.kubernetes.client.common.KubernetesObject + + diff --git a/kubernetes/docs/V1beta1LeaseCandidateList.md b/kubernetes/docs/V1beta1LeaseCandidateList.md new file mode 100644 index 0000000000..20061dba74 --- /dev/null +++ b/kubernetes/docs/V1beta1LeaseCandidateList.md @@ -0,0 +1,20 @@ + + +# V1beta1LeaseCandidateList + +LeaseCandidateList is a list of Lease objects. +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] +**items** | [**List<V1beta1LeaseCandidate>**](V1beta1LeaseCandidate.md) | items is a list of schema objects. | +**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] +**metadata** | [**V1ListMeta**](V1ListMeta.md) | | [optional] + + +## Implemented Interfaces + +* io.kubernetes.client.common.KubernetesListObject + + diff --git a/kubernetes/docs/V1beta1LeaseCandidateSpec.md b/kubernetes/docs/V1beta1LeaseCandidateSpec.md new file mode 100644 index 0000000000..afe5e55f0c --- /dev/null +++ b/kubernetes/docs/V1beta1LeaseCandidateSpec.md @@ -0,0 +1,18 @@ + + +# V1beta1LeaseCandidateSpec + +LeaseCandidateSpec is a specification of a Lease. +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**binaryVersion** | **String** | BinaryVersion is the binary version. It must be in a semver format without leading `v`. This field is required. | +**emulationVersion** | **String** | 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\" | [optional] +**leaseName** | **String** | LeaseName is the name of the lease for which this candidate is contending. The limits on this field are the same as on Lease.name. Multiple lease candidates may reference the same Lease.name. This field is immutable. | +**pingTime** | [**OffsetDateTime**](OffsetDateTime.md) | 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. | [optional] +**renewTime** | [**OffsetDateTime**](OffsetDateTime.md) | 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. | [optional] +**strategy** | **String** | Strategy is the strategy that coordinated leader election will use for picking the leader. If multiple candidates for the same Lease return different strategies, the strategy provided by the candidate with the latest BinaryVersion will be used. If there is still conflict, this is a user error and coordinated leader election will not operate the Lease until resolved. | + + + diff --git a/kubernetes/docs/V1beta1NetworkDeviceData.md b/kubernetes/docs/V1beta1NetworkDeviceData.md new file mode 100644 index 0000000000..4f57de45e0 --- /dev/null +++ b/kubernetes/docs/V1beta1NetworkDeviceData.md @@ -0,0 +1,15 @@ + + +# V1beta1NetworkDeviceData + +NetworkDeviceData provides network-related details for the allocated device. This information may be filled by drivers or other components to configure or identify the device within a network context. +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**hardwareAddress** | **String** | HardwareAddress represents the hardware address (e.g. MAC Address) of the device's network interface. Must not be longer than 128 characters. | [optional] +**interfaceName** | **String** | InterfaceName specifies the name of the network interface associated with the allocated device. This might be the name of a physical or virtual network interface being configured in the pod. Must not be longer than 256 characters. | [optional] +**ips** | **List<String>** | IPs lists the network addresses assigned to the device's network interface. This can include both IPv4 and IPv6 addresses. The IPs are in the CIDR notation, which includes both the address and the associated subnet mask. e.g.: \"192.0.2.5/24\" for IPv4 and \"2001:db8::5/64\" for IPv6. Must not contain more than 16 entries. | [optional] + + + diff --git a/kubernetes/docs/V1beta1OpaqueDeviceConfiguration.md b/kubernetes/docs/V1beta1OpaqueDeviceConfiguration.md new file mode 100644 index 0000000000..64d81d0110 --- /dev/null +++ b/kubernetes/docs/V1beta1OpaqueDeviceConfiguration.md @@ -0,0 +1,14 @@ + + +# V1beta1OpaqueDeviceConfiguration + +OpaqueDeviceConfiguration contains configuration parameters for a driver in a format defined by the driver vendor. +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**driver** | **String** | 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. | +**parameters** | [**Object**](.md) | 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. The length of the raw data must be smaller or equal to 10 Ki. | + + + diff --git a/kubernetes/docs/V1beta1ParentReference.md b/kubernetes/docs/V1beta1ParentReference.md new file mode 100644 index 0000000000..4ebf3562d8 --- /dev/null +++ b/kubernetes/docs/V1beta1ParentReference.md @@ -0,0 +1,16 @@ + + +# V1beta1ParentReference + +ParentReference describes a reference to a parent object. +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**group** | **String** | Group is the group of the object being referenced. | [optional] +**name** | **String** | Name is the name of the object being referenced. | +**namespace** | **String** | Namespace is the namespace of the object being referenced. | [optional] +**resource** | **String** | Resource is the resource of the object being referenced. | + + + diff --git a/kubernetes/docs/V1beta1ResourceClaim.md b/kubernetes/docs/V1beta1ResourceClaim.md new file mode 100644 index 0000000000..bc5adcf9f2 --- /dev/null +++ b/kubernetes/docs/V1beta1ResourceClaim.md @@ -0,0 +1,21 @@ + + +# V1beta1ResourceClaim + +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. +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] +**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] +**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] +**spec** | [**V1beta1ResourceClaimSpec**](V1beta1ResourceClaimSpec.md) | | +**status** | [**V1beta1ResourceClaimStatus**](V1beta1ResourceClaimStatus.md) | | [optional] + + +## Implemented Interfaces + +* io.kubernetes.client.common.KubernetesObject + + diff --git a/kubernetes/docs/V1beta1ResourceClaimConsumerReference.md b/kubernetes/docs/V1beta1ResourceClaimConsumerReference.md new file mode 100644 index 0000000000..4ec09256a8 --- /dev/null +++ b/kubernetes/docs/V1beta1ResourceClaimConsumerReference.md @@ -0,0 +1,16 @@ + + +# V1beta1ResourceClaimConsumerReference + +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. +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**apiGroup** | **String** | 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. | [optional] +**name** | **String** | Name is the name of resource being referenced. | +**resource** | **String** | Resource is the type of resource being referenced, for example \"pods\". | +**uid** | **String** | UID identifies exactly one incarnation of the resource. | + + + diff --git a/kubernetes/docs/V1beta1ResourceClaimList.md b/kubernetes/docs/V1beta1ResourceClaimList.md new file mode 100644 index 0000000000..9aa3eb5834 --- /dev/null +++ b/kubernetes/docs/V1beta1ResourceClaimList.md @@ -0,0 +1,20 @@ + + +# V1beta1ResourceClaimList + +ResourceClaimList is a collection of claims. +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] +**items** | [**List<V1beta1ResourceClaim>**](V1beta1ResourceClaim.md) | Items is the list of resource claims. | +**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] +**metadata** | [**V1ListMeta**](V1ListMeta.md) | | [optional] + + +## Implemented Interfaces + +* io.kubernetes.client.common.KubernetesListObject + + diff --git a/kubernetes/docs/V1beta1ResourceClaimSpec.md b/kubernetes/docs/V1beta1ResourceClaimSpec.md new file mode 100644 index 0000000000..8d8dad9f49 --- /dev/null +++ b/kubernetes/docs/V1beta1ResourceClaimSpec.md @@ -0,0 +1,13 @@ + + +# V1beta1ResourceClaimSpec + +ResourceClaimSpec defines what is being requested in a ResourceClaim and how to configure it. +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**devices** | [**V1beta1DeviceClaim**](V1beta1DeviceClaim.md) | | [optional] + + + diff --git a/kubernetes/docs/V1beta1ResourceClaimStatus.md b/kubernetes/docs/V1beta1ResourceClaimStatus.md new file mode 100644 index 0000000000..ba9057382b --- /dev/null +++ b/kubernetes/docs/V1beta1ResourceClaimStatus.md @@ -0,0 +1,15 @@ + + +# V1beta1ResourceClaimStatus + +ResourceClaimStatus tracks whether the resource has been allocated and what the result of that was. +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**allocation** | [**V1beta1AllocationResult**](V1beta1AllocationResult.md) | | [optional] +**devices** | [**List<V1beta1AllocatedDeviceStatus>**](V1beta1AllocatedDeviceStatus.md) | Devices contains the status of each device allocated for this claim, as reported by the driver. This can include driver-specific information. Entries are owned by their respective drivers. | [optional] +**reservedFor** | [**List<V1beta1ResourceClaimConsumerReference>**](V1beta1ResourceClaimConsumerReference.md) | 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 256 such reservations. This may get increased in the future, but not reduced. | [optional] + + + diff --git a/kubernetes/docs/V1beta1ResourceClaimTemplate.md b/kubernetes/docs/V1beta1ResourceClaimTemplate.md new file mode 100644 index 0000000000..2c7c4b78df --- /dev/null +++ b/kubernetes/docs/V1beta1ResourceClaimTemplate.md @@ -0,0 +1,20 @@ + + +# V1beta1ResourceClaimTemplate + +ResourceClaimTemplate is used to produce ResourceClaim objects. This is an alpha type and requires enabling the DynamicResourceAllocation feature gate. +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] +**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] +**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] +**spec** | [**V1beta1ResourceClaimTemplateSpec**](V1beta1ResourceClaimTemplateSpec.md) | | + + +## Implemented Interfaces + +* io.kubernetes.client.common.KubernetesObject + + diff --git a/kubernetes/docs/V1beta1ResourceClaimTemplateList.md b/kubernetes/docs/V1beta1ResourceClaimTemplateList.md new file mode 100644 index 0000000000..66e60240ea --- /dev/null +++ b/kubernetes/docs/V1beta1ResourceClaimTemplateList.md @@ -0,0 +1,20 @@ + + +# V1beta1ResourceClaimTemplateList + +ResourceClaimTemplateList is a collection of claim templates. +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] +**items** | [**List<V1beta1ResourceClaimTemplate>**](V1beta1ResourceClaimTemplate.md) | Items is the list of resource claim templates. | +**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] +**metadata** | [**V1ListMeta**](V1ListMeta.md) | | [optional] + + +## Implemented Interfaces + +* io.kubernetes.client.common.KubernetesListObject + + diff --git a/kubernetes/docs/V1beta1ResourceClaimTemplateSpec.md b/kubernetes/docs/V1beta1ResourceClaimTemplateSpec.md new file mode 100644 index 0000000000..e67e1e34f2 --- /dev/null +++ b/kubernetes/docs/V1beta1ResourceClaimTemplateSpec.md @@ -0,0 +1,14 @@ + + +# V1beta1ResourceClaimTemplateSpec + +ResourceClaimTemplateSpec contains the metadata and fields for a ResourceClaim. +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] +**spec** | [**V1beta1ResourceClaimSpec**](V1beta1ResourceClaimSpec.md) | | + + + diff --git a/kubernetes/docs/V1beta1ResourcePool.md b/kubernetes/docs/V1beta1ResourcePool.md new file mode 100644 index 0000000000..d9686b2727 --- /dev/null +++ b/kubernetes/docs/V1beta1ResourcePool.md @@ -0,0 +1,15 @@ + + +# V1beta1ResourcePool + +ResourcePool describes the pool that ResourceSlices belong to. +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**generation** | **Long** | 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. | +**name** | **String** | 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. | +**resourceSliceCount** | **Long** | 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. | + + + diff --git a/kubernetes/docs/V1beta1ResourceSlice.md b/kubernetes/docs/V1beta1ResourceSlice.md new file mode 100644 index 0000000000..243954c819 --- /dev/null +++ b/kubernetes/docs/V1beta1ResourceSlice.md @@ -0,0 +1,20 @@ + + +# V1beta1ResourceSlice + +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. +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] +**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] +**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] +**spec** | [**V1beta1ResourceSliceSpec**](V1beta1ResourceSliceSpec.md) | | + + +## Implemented Interfaces + +* io.kubernetes.client.common.KubernetesObject + + diff --git a/kubernetes/docs/V1beta1ResourceSliceList.md b/kubernetes/docs/V1beta1ResourceSliceList.md new file mode 100644 index 0000000000..43e534486b --- /dev/null +++ b/kubernetes/docs/V1beta1ResourceSliceList.md @@ -0,0 +1,20 @@ + + +# V1beta1ResourceSliceList + +ResourceSliceList is a collection of ResourceSlices. +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] +**items** | [**List<V1beta1ResourceSlice>**](V1beta1ResourceSlice.md) | Items is the list of resource ResourceSlices. | +**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] +**metadata** | [**V1ListMeta**](V1ListMeta.md) | | [optional] + + +## Implemented Interfaces + +* io.kubernetes.client.common.KubernetesListObject + + diff --git a/kubernetes/docs/V1beta1ResourceSliceSpec.md b/kubernetes/docs/V1beta1ResourceSliceSpec.md new file mode 100644 index 0000000000..fa090104c8 --- /dev/null +++ b/kubernetes/docs/V1beta1ResourceSliceSpec.md @@ -0,0 +1,20 @@ + + +# V1beta1ResourceSliceSpec + +ResourceSliceSpec contains the information published by the driver in one ResourceSlice. +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**allNodes** | **Boolean** | AllNodes indicates that all nodes have access to the resources in the pool. Exactly one of NodeName, NodeSelector, AllNodes, and PerDeviceNodeSelection must be set. | [optional] +**devices** | [**List<V1beta1Device>**](V1beta1Device.md) | Devices lists some or all of the devices in this pool. Must not have more than 128 entries. | [optional] +**driver** | **String** | 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. | +**nodeName** | **String** | 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, AllNodes, and PerDeviceNodeSelection must be set. This field is immutable. | [optional] +**nodeSelector** | [**V1NodeSelector**](V1NodeSelector.md) | | [optional] +**perDeviceNodeSelection** | **Boolean** | PerDeviceNodeSelection defines whether the access from nodes to resources in the pool is set on the ResourceSlice level or on each device. If it is set to true, every device defined the ResourceSlice must specify this individually. Exactly one of NodeName, NodeSelector, AllNodes, and PerDeviceNodeSelection must be set. | [optional] +**pool** | [**V1beta1ResourcePool**](V1beta1ResourcePool.md) | | +**sharedCounters** | [**List<V1beta1CounterSet>**](V1beta1CounterSet.md) | SharedCounters defines a list of counter sets, each of which has a name and a list of counters available. The names of the SharedCounters must be unique in the ResourceSlice. The maximum number of SharedCounters is 32. | [optional] + + + diff --git a/kubernetes/docs/V1beta1SelfSubjectReview.md b/kubernetes/docs/V1beta1SelfSubjectReview.md deleted file mode 100644 index 4cd793c894..0000000000 --- a/kubernetes/docs/V1beta1SelfSubjectReview.md +++ /dev/null @@ -1,20 +0,0 @@ - - -# V1beta1SelfSubjectReview - -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. -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] -**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] -**status** | [**V1beta1SelfSubjectReviewStatus**](V1beta1SelfSubjectReviewStatus.md) | | [optional] - - -## Implemented Interfaces - -* io.kubernetes.client.common.KubernetesObject - - diff --git a/kubernetes/docs/V1beta1SelfSubjectReviewStatus.md b/kubernetes/docs/V1beta1SelfSubjectReviewStatus.md deleted file mode 100644 index 381754ee06..0000000000 --- a/kubernetes/docs/V1beta1SelfSubjectReviewStatus.md +++ /dev/null @@ -1,13 +0,0 @@ - - -# V1beta1SelfSubjectReviewStatus - -SelfSubjectReviewStatus is filled by the kube-apiserver and sent back to a user. -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**userInfo** | [**V1UserInfo**](V1UserInfo.md) | | [optional] - - - diff --git a/kubernetes/docs/V1beta1ServiceCIDR.md b/kubernetes/docs/V1beta1ServiceCIDR.md new file mode 100644 index 0000000000..4387eef081 --- /dev/null +++ b/kubernetes/docs/V1beta1ServiceCIDR.md @@ -0,0 +1,21 @@ + + +# V1beta1ServiceCIDR + +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. +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] +**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] +**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] +**spec** | [**V1beta1ServiceCIDRSpec**](V1beta1ServiceCIDRSpec.md) | | [optional] +**status** | [**V1beta1ServiceCIDRStatus**](V1beta1ServiceCIDRStatus.md) | | [optional] + + +## Implemented Interfaces + +* io.kubernetes.client.common.KubernetesObject + + diff --git a/kubernetes/docs/V1beta1ServiceCIDRList.md b/kubernetes/docs/V1beta1ServiceCIDRList.md new file mode 100644 index 0000000000..a332912084 --- /dev/null +++ b/kubernetes/docs/V1beta1ServiceCIDRList.md @@ -0,0 +1,20 @@ + + +# V1beta1ServiceCIDRList + +ServiceCIDRList contains a list of ServiceCIDR objects. +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] +**items** | [**List<V1beta1ServiceCIDR>**](V1beta1ServiceCIDR.md) | items is the list of ServiceCIDRs. | +**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] +**metadata** | [**V1ListMeta**](V1ListMeta.md) | | [optional] + + +## Implemented Interfaces + +* io.kubernetes.client.common.KubernetesListObject + + diff --git a/kubernetes/docs/V1beta1ServiceCIDRSpec.md b/kubernetes/docs/V1beta1ServiceCIDRSpec.md new file mode 100644 index 0000000000..03de1cba43 --- /dev/null +++ b/kubernetes/docs/V1beta1ServiceCIDRSpec.md @@ -0,0 +1,13 @@ + + +# V1beta1ServiceCIDRSpec + +ServiceCIDRSpec define the CIDRs the user wants to use for allocating ClusterIPs for Services. +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**cidrs** | **List<String>** | 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. | [optional] + + + diff --git a/kubernetes/docs/V1beta1ServiceCIDRStatus.md b/kubernetes/docs/V1beta1ServiceCIDRStatus.md new file mode 100644 index 0000000000..e8a495364f --- /dev/null +++ b/kubernetes/docs/V1beta1ServiceCIDRStatus.md @@ -0,0 +1,13 @@ + + +# V1beta1ServiceCIDRStatus + +ServiceCIDRStatus describes the current state of the ServiceCIDR. +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**conditions** | [**List<V1Condition>**](V1Condition.md) | conditions holds an array of metav1.Condition that describe the state of the ServiceCIDR. Current service state | [optional] + + + diff --git a/kubernetes/docs/V1beta1ValidatingAdmissionPolicyBindingList.md b/kubernetes/docs/V1beta1ValidatingAdmissionPolicyBindingList.md index 32dffb1670..716e3a2a0c 100644 --- a/kubernetes/docs/V1beta1ValidatingAdmissionPolicyBindingList.md +++ b/kubernetes/docs/V1beta1ValidatingAdmissionPolicyBindingList.md @@ -8,7 +8,7 @@ ValidatingAdmissionPolicyBindingList is a list of ValidatingAdmissionPolicyBindi Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] -**items** | [**List<V1beta1ValidatingAdmissionPolicyBinding>**](V1beta1ValidatingAdmissionPolicyBinding.md) | List of PolicyBinding. | [optional] +**items** | [**List<V1beta1ValidatingAdmissionPolicyBinding>**](V1beta1ValidatingAdmissionPolicyBinding.md) | List of PolicyBinding. | **kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] **metadata** | [**V1ListMeta**](V1ListMeta.md) | | [optional] diff --git a/kubernetes/docs/V1beta1ValidatingAdmissionPolicyBindingSpec.md b/kubernetes/docs/V1beta1ValidatingAdmissionPolicyBindingSpec.md index 4223bf54a5..67258252fa 100644 --- a/kubernetes/docs/V1beta1ValidatingAdmissionPolicyBindingSpec.md +++ b/kubernetes/docs/V1beta1ValidatingAdmissionPolicyBindingSpec.md @@ -10,7 +10,7 @@ Name | Type | Description | Notes **matchResources** | [**V1beta1MatchResources**](V1beta1MatchResources.md) | | [optional] **paramRef** | [**V1beta1ParamRef**](V1beta1ParamRef.md) | | [optional] **policyName** | **String** | 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. | [optional] -**validationActions** | **List<String>** | 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. | [optional] +**validationActions** | **List<String>** | 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. | [optional] diff --git a/kubernetes/docs/V1beta1ValidatingAdmissionPolicyList.md b/kubernetes/docs/V1beta1ValidatingAdmissionPolicyList.md index f680b16684..cfcbbde5ff 100644 --- a/kubernetes/docs/V1beta1ValidatingAdmissionPolicyList.md +++ b/kubernetes/docs/V1beta1ValidatingAdmissionPolicyList.md @@ -8,7 +8,7 @@ ValidatingAdmissionPolicyList is a list of ValidatingAdmissionPolicy. Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] -**items** | [**List<V1beta1ValidatingAdmissionPolicy>**](V1beta1ValidatingAdmissionPolicy.md) | List of ValidatingAdmissionPolicy. | [optional] +**items** | [**List<V1beta1ValidatingAdmissionPolicy>**](V1beta1ValidatingAdmissionPolicy.md) | List of ValidatingAdmissionPolicy. | **kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] **metadata** | [**V1ListMeta**](V1ListMeta.md) | | [optional] diff --git a/kubernetes/docs/V1beta1VolumeAttributesClass.md b/kubernetes/docs/V1beta1VolumeAttributesClass.md new file mode 100644 index 0000000000..83f7c4f28d --- /dev/null +++ b/kubernetes/docs/V1beta1VolumeAttributesClass.md @@ -0,0 +1,21 @@ + + +# V1beta1VolumeAttributesClass + +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. +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] +**driverName** | **String** | Name of the CSI driver This field is immutable. | +**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] +**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] +**parameters** | **Map<String, String>** | 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. | [optional] + + +## Implemented Interfaces + +* io.kubernetes.client.common.KubernetesObject + + diff --git a/kubernetes/docs/V1beta1VolumeAttributesClassList.md b/kubernetes/docs/V1beta1VolumeAttributesClassList.md new file mode 100644 index 0000000000..15a79b928c --- /dev/null +++ b/kubernetes/docs/V1beta1VolumeAttributesClassList.md @@ -0,0 +1,20 @@ + + +# V1beta1VolumeAttributesClassList + +VolumeAttributesClassList is a collection of VolumeAttributesClass objects. +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] +**items** | [**List<V1beta1VolumeAttributesClass>**](V1beta1VolumeAttributesClass.md) | items is the list of VolumeAttributesClass objects. | +**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] +**metadata** | [**V1ListMeta**](V1ListMeta.md) | | [optional] + + +## Implemented Interfaces + +* io.kubernetes.client.common.KubernetesListObject + + diff --git a/kubernetes/docs/V1beta2AllocatedDeviceStatus.md b/kubernetes/docs/V1beta2AllocatedDeviceStatus.md new file mode 100644 index 0000000000..7283221b54 --- /dev/null +++ b/kubernetes/docs/V1beta2AllocatedDeviceStatus.md @@ -0,0 +1,18 @@ + + +# V1beta2AllocatedDeviceStatus + +AllocatedDeviceStatus contains the status of an allocated device, if the driver chooses to report it. This may include driver-specific information. +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**conditions** | [**List<V1Condition>**](V1Condition.md) | Conditions contains the latest observation of the device's state. If the device has been configured according to the class and claim config references, the `Ready` condition should be True. Must not contain more than 8 entries. | [optional] +**data** | [**Object**](.md) | Data contains arbitrary driver-specific data. The length of the raw data must be smaller or equal to 10 Ki. | [optional] +**device** | **String** | Device references one device instance via its name in the driver's resource pool. It must be a DNS label. | +**driver** | **String** | 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. | +**networkData** | [**V1beta2NetworkDeviceData**](V1beta2NetworkDeviceData.md) | | [optional] +**pool** | **String** | This name together with the driver name and the device name field identify which device was allocated (`<driver name>/<pool name>/<device name>`). Must not be longer than 253 characters and may contain one or more DNS sub-domains separated by slashes. | + + + diff --git a/kubernetes/docs/V1beta2AllocationResult.md b/kubernetes/docs/V1beta2AllocationResult.md new file mode 100644 index 0000000000..a5e3bb0803 --- /dev/null +++ b/kubernetes/docs/V1beta2AllocationResult.md @@ -0,0 +1,14 @@ + + +# V1beta2AllocationResult + +AllocationResult contains attributes of an allocated resource. +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**devices** | [**V1beta2DeviceAllocationResult**](V1beta2DeviceAllocationResult.md) | | [optional] +**nodeSelector** | [**V1NodeSelector**](V1NodeSelector.md) | | [optional] + + + diff --git a/kubernetes/docs/V1beta2CELDeviceSelector.md b/kubernetes/docs/V1beta2CELDeviceSelector.md new file mode 100644 index 0000000000..bece15c555 --- /dev/null +++ b/kubernetes/docs/V1beta2CELDeviceSelector.md @@ -0,0 +1,13 @@ + + +# V1beta2CELDeviceSelector + +CELDeviceSelector contains a CEL expression for selecting a device. +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**expression** | **String** | 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) The length of the expression must be smaller or equal to 10 Ki. The cost of evaluating it is also limited based on the estimated number of logical steps. | + + + diff --git a/kubernetes/docs/V1beta2Counter.md b/kubernetes/docs/V1beta2Counter.md new file mode 100644 index 0000000000..b777c6fdd0 --- /dev/null +++ b/kubernetes/docs/V1beta2Counter.md @@ -0,0 +1,13 @@ + + +# V1beta2Counter + +Counter describes a quantity associated with a device. +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**value** | [**Quantity**](Quantity.md) | 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: ``` <quantity> ::= <signedNumber><suffix> (Note that <suffix> may be empty, from the \"\" case in <decimalSI>.) <digit> ::= 0 | 1 | ... | 9 <digits> ::= <digit> | <digit><digits> <number> ::= <digits> | <digits>.<digits> | <digits>. | .<digits> <sign> ::= \"+\" | \"-\" <signedNumber> ::= <number> | <sign><number> <suffix> ::= <binarySI> | <decimalExponent> | <decimalSI> <binarySI> ::= Ki | Mi | Gi | Ti | Pi | Ei (International System of units; See: http://physics.nist.gov/cuu/Units/binary.html) <decimalSI> ::= m | \"\" | k | M | G | T | P | E (Note that 1024 = 1Ki but 1000 = 1k; I didn't choose the capitalization.) <decimalExponent> ::= \"e\" <signedNumber> | \"E\" <signedNumber> ``` 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. | + + + diff --git a/kubernetes/docs/V1beta2CounterSet.md b/kubernetes/docs/V1beta2CounterSet.md new file mode 100644 index 0000000000..ad5cacfa48 --- /dev/null +++ b/kubernetes/docs/V1beta2CounterSet.md @@ -0,0 +1,14 @@ + + +# V1beta2CounterSet + +CounterSet defines a named set of counters that are available to be used by devices defined in the ResourceSlice. The counters are not allocatable by themselves, but can be referenced by devices. When a device is allocated, the portion of counters it uses will no longer be available for use by other devices. +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**counters** | [**Map<String, V1beta2Counter>**](V1beta2Counter.md) | Counters defines the set of counters for this CounterSet The name of each counter must be unique in that set and must be a DNS label. The maximum number of counters in all sets is 32. | +**name** | **String** | Name defines the name of the counter set. It must be a DNS label. | + + + diff --git a/kubernetes/docs/V1beta2Device.md b/kubernetes/docs/V1beta2Device.md new file mode 100644 index 0000000000..493f07860f --- /dev/null +++ b/kubernetes/docs/V1beta2Device.md @@ -0,0 +1,20 @@ + + +# V1beta2Device + +Device represents one individual hardware instance that can be selected based on its attributes. Besides the name, exactly one field must be set. +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**allNodes** | **Boolean** | AllNodes indicates that all nodes have access to the device. Must only be set if Spec.PerDeviceNodeSelection is set to true. At most one of NodeName, NodeSelector and AllNodes can be set. | [optional] +**attributes** | [**Map<String, V1beta2DeviceAttribute>**](V1beta2DeviceAttribute.md) | 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. | [optional] +**capacity** | [**Map<String, V1beta2DeviceCapacity>**](V1beta2DeviceCapacity.md) | 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. | [optional] +**consumesCounters** | [**List<V1beta2DeviceCounterConsumption>**](V1beta2DeviceCounterConsumption.md) | ConsumesCounters defines a list of references to sharedCounters and the set of counters that the device will consume from those counter sets. There can only be a single entry per counterSet. The total number of device counter consumption entries must be <= 32. In addition, the total number in the entire ResourceSlice must be <= 1024 (for example, 64 devices with 16 counters each). | [optional] +**name** | **String** | Name is unique identifier among all devices managed by the driver in the pool. It must be a DNS label. | +**nodeName** | **String** | NodeName identifies the node where the device is available. Must only be set if Spec.PerDeviceNodeSelection is set to true. At most one of NodeName, NodeSelector and AllNodes can be set. | [optional] +**nodeSelector** | [**V1NodeSelector**](V1NodeSelector.md) | | [optional] +**taints** | [**List<V1beta2DeviceTaint>**](V1beta2DeviceTaint.md) | If specified, these are the driver-defined taints. The maximum number of taints is 4. This is an alpha field and requires enabling the DRADeviceTaints feature gate. | [optional] + + + diff --git a/kubernetes/docs/V1beta2DeviceAllocationConfiguration.md b/kubernetes/docs/V1beta2DeviceAllocationConfiguration.md new file mode 100644 index 0000000000..62ce81d0b0 --- /dev/null +++ b/kubernetes/docs/V1beta2DeviceAllocationConfiguration.md @@ -0,0 +1,15 @@ + + +# V1beta2DeviceAllocationConfiguration + +DeviceAllocationConfiguration gets embedded in an AllocationResult. +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**opaque** | [**V1beta2OpaqueDeviceConfiguration**](V1beta2OpaqueDeviceConfiguration.md) | | [optional] +**requests** | **List<String>** | Requests lists the names of requests where the configuration applies. If empty, its applies to all requests. References to subrequests must include the name of the main request and may include the subrequest using the format <main request>[/<subrequest>]. If just the main request is given, the configuration applies to all subrequests. | [optional] +**source** | **String** | 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. | + + + diff --git a/kubernetes/docs/V1beta2DeviceAllocationResult.md b/kubernetes/docs/V1beta2DeviceAllocationResult.md new file mode 100644 index 0000000000..49c7413bd7 --- /dev/null +++ b/kubernetes/docs/V1beta2DeviceAllocationResult.md @@ -0,0 +1,14 @@ + + +# V1beta2DeviceAllocationResult + +DeviceAllocationResult is the result of allocating devices. +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**config** | [**List<V1beta2DeviceAllocationConfiguration>**](V1beta2DeviceAllocationConfiguration.md) | 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. | [optional] +**results** | [**List<V1beta2DeviceRequestAllocationResult>**](V1beta2DeviceRequestAllocationResult.md) | Results lists all allocated devices. | [optional] + + + diff --git a/kubernetes/docs/V1beta2DeviceAttribute.md b/kubernetes/docs/V1beta2DeviceAttribute.md new file mode 100644 index 0000000000..28db2a6abc --- /dev/null +++ b/kubernetes/docs/V1beta2DeviceAttribute.md @@ -0,0 +1,16 @@ + + +# V1beta2DeviceAttribute + +DeviceAttribute must have exactly one field set. +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**bool** | **Boolean** | BoolValue is a true/false value. | [optional] +**_int** | **Long** | IntValue is a number. | [optional] +**string** | **String** | StringValue is a string. Must not be longer than 64 characters. | [optional] +**version** | **String** | VersionValue is a semantic version according to semver.org spec 2.0.0. Must not be longer than 64 characters. | [optional] + + + diff --git a/kubernetes/docs/V1beta2DeviceCapacity.md b/kubernetes/docs/V1beta2DeviceCapacity.md new file mode 100644 index 0000000000..a70ac7348e --- /dev/null +++ b/kubernetes/docs/V1beta2DeviceCapacity.md @@ -0,0 +1,13 @@ + + +# V1beta2DeviceCapacity + +DeviceCapacity describes a quantity associated with a device. +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**value** | [**Quantity**](Quantity.md) | 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: ``` <quantity> ::= <signedNumber><suffix> (Note that <suffix> may be empty, from the \"\" case in <decimalSI>.) <digit> ::= 0 | 1 | ... | 9 <digits> ::= <digit> | <digit><digits> <number> ::= <digits> | <digits>.<digits> | <digits>. | .<digits> <sign> ::= \"+\" | \"-\" <signedNumber> ::= <number> | <sign><number> <suffix> ::= <binarySI> | <decimalExponent> | <decimalSI> <binarySI> ::= Ki | Mi | Gi | Ti | Pi | Ei (International System of units; See: http://physics.nist.gov/cuu/Units/binary.html) <decimalSI> ::= m | \"\" | k | M | G | T | P | E (Note that 1024 = 1Ki but 1000 = 1k; I didn't choose the capitalization.) <decimalExponent> ::= \"e\" <signedNumber> | \"E\" <signedNumber> ``` 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. | + + + diff --git a/kubernetes/docs/V1beta2DeviceClaim.md b/kubernetes/docs/V1beta2DeviceClaim.md new file mode 100644 index 0000000000..7f678169ef --- /dev/null +++ b/kubernetes/docs/V1beta2DeviceClaim.md @@ -0,0 +1,15 @@ + + +# V1beta2DeviceClaim + +DeviceClaim defines how to request devices with a ResourceClaim. +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**config** | [**List<V1beta2DeviceClaimConfiguration>**](V1beta2DeviceClaimConfiguration.md) | This field holds configuration for multiple potential drivers which could satisfy requests in this claim. It is ignored while allocating the claim. | [optional] +**constraints** | [**List<V1beta2DeviceConstraint>**](V1beta2DeviceConstraint.md) | These constraints must be satisfied by the set of devices that get allocated for the claim. | [optional] +**requests** | [**List<V1beta2DeviceRequest>**](V1beta2DeviceRequest.md) | Requests represent individual requests for distinct devices which must all be satisfied. If empty, nothing needs to be allocated. | [optional] + + + diff --git a/kubernetes/docs/V1beta2DeviceClaimConfiguration.md b/kubernetes/docs/V1beta2DeviceClaimConfiguration.md new file mode 100644 index 0000000000..314c4f7fc9 --- /dev/null +++ b/kubernetes/docs/V1beta2DeviceClaimConfiguration.md @@ -0,0 +1,14 @@ + + +# V1beta2DeviceClaimConfiguration + +DeviceClaimConfiguration is used for configuration parameters in DeviceClaim. +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**opaque** | [**V1beta2OpaqueDeviceConfiguration**](V1beta2OpaqueDeviceConfiguration.md) | | [optional] +**requests** | **List<String>** | Requests lists the names of requests where the configuration applies. If empty, it applies to all requests. References to subrequests must include the name of the main request and may include the subrequest using the format <main request>[/<subrequest>]. If just the main request is given, the configuration applies to all subrequests. | [optional] + + + diff --git a/kubernetes/docs/V1beta2DeviceClass.md b/kubernetes/docs/V1beta2DeviceClass.md new file mode 100644 index 0000000000..326466a517 --- /dev/null +++ b/kubernetes/docs/V1beta2DeviceClass.md @@ -0,0 +1,20 @@ + + +# V1beta2DeviceClass + +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. +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] +**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] +**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] +**spec** | [**V1beta2DeviceClassSpec**](V1beta2DeviceClassSpec.md) | | + + +## Implemented Interfaces + +* io.kubernetes.client.common.KubernetesObject + + diff --git a/kubernetes/docs/V1beta2DeviceClassConfiguration.md b/kubernetes/docs/V1beta2DeviceClassConfiguration.md new file mode 100644 index 0000000000..05add24923 --- /dev/null +++ b/kubernetes/docs/V1beta2DeviceClassConfiguration.md @@ -0,0 +1,13 @@ + + +# V1beta2DeviceClassConfiguration + +DeviceClassConfiguration is used in DeviceClass. +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**opaque** | [**V1beta2OpaqueDeviceConfiguration**](V1beta2OpaqueDeviceConfiguration.md) | | [optional] + + + diff --git a/kubernetes/docs/V1beta2DeviceClassList.md b/kubernetes/docs/V1beta2DeviceClassList.md new file mode 100644 index 0000000000..ec4b2c628a --- /dev/null +++ b/kubernetes/docs/V1beta2DeviceClassList.md @@ -0,0 +1,20 @@ + + +# V1beta2DeviceClassList + +DeviceClassList is a collection of classes. +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] +**items** | [**List<V1beta2DeviceClass>**](V1beta2DeviceClass.md) | Items is the list of resource classes. | +**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] +**metadata** | [**V1ListMeta**](V1ListMeta.md) | | [optional] + + +## Implemented Interfaces + +* io.kubernetes.client.common.KubernetesListObject + + diff --git a/kubernetes/docs/V1beta2DeviceClassSpec.md b/kubernetes/docs/V1beta2DeviceClassSpec.md new file mode 100644 index 0000000000..6d97c9001c --- /dev/null +++ b/kubernetes/docs/V1beta2DeviceClassSpec.md @@ -0,0 +1,14 @@ + + +# V1beta2DeviceClassSpec + +DeviceClassSpec is used in a [DeviceClass] to define what can be allocated and how to configure it. +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**config** | [**List<V1beta2DeviceClassConfiguration>**](V1beta2DeviceClassConfiguration.md) | 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. | [optional] +**selectors** | [**List<V1beta2DeviceSelector>**](V1beta2DeviceSelector.md) | Each selector must be satisfied by a device which is claimed via this class. | [optional] + + + diff --git a/kubernetes/docs/V1beta2DeviceConstraint.md b/kubernetes/docs/V1beta2DeviceConstraint.md new file mode 100644 index 0000000000..ea1aaaf5d0 --- /dev/null +++ b/kubernetes/docs/V1beta2DeviceConstraint.md @@ -0,0 +1,14 @@ + + +# V1beta2DeviceConstraint + +DeviceConstraint must have exactly one field set besides Requests. +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**matchAttribute** | **String** | 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. | [optional] +**requests** | **List<String>** | 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. References to subrequests must include the name of the main request and may include the subrequest using the format <main request>[/<subrequest>]. If just the main request is given, the constraint applies to all subrequests. | [optional] + + + diff --git a/kubernetes/docs/V1beta2DeviceCounterConsumption.md b/kubernetes/docs/V1beta2DeviceCounterConsumption.md new file mode 100644 index 0000000000..92f8db2824 --- /dev/null +++ b/kubernetes/docs/V1beta2DeviceCounterConsumption.md @@ -0,0 +1,14 @@ + + +# V1beta2DeviceCounterConsumption + +DeviceCounterConsumption defines a set of counters that a device will consume from a CounterSet. +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**counterSet** | **String** | CounterSet is the name of the set from which the counters defined will be consumed. | +**counters** | [**Map<String, V1beta2Counter>**](V1beta2Counter.md) | Counters defines the counters that will be consumed by the device. The maximum number counters in a device is 32. In addition, the maximum number of all counters in all devices is 1024 (for example, 64 devices with 16 counters each). | + + + diff --git a/kubernetes/docs/V1beta2DeviceRequest.md b/kubernetes/docs/V1beta2DeviceRequest.md new file mode 100644 index 0000000000..664a57819a --- /dev/null +++ b/kubernetes/docs/V1beta2DeviceRequest.md @@ -0,0 +1,15 @@ + + +# V1beta2DeviceRequest + +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. With FirstAvailable it is also possible to provide a prioritized list of requests. +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**exactly** | [**V1beta2ExactDeviceRequest**](V1beta2ExactDeviceRequest.md) | | [optional] +**firstAvailable** | [**List<V1beta2DeviceSubRequest>**](V1beta2DeviceSubRequest.md) | FirstAvailable contains subrequests, of which exactly one will be selected by the scheduler. It tries to satisfy them in the order in which they are listed here. So if there are two entries in the list, the scheduler will only check the second one if it determines that the first one can not be used. DRA does not yet implement scoring, so the scheduler will select the first set of devices that satisfies all the requests in the claim. And if the requirements can be satisfied on more than one node, other scheduling features will determine which node is chosen. This means that the set of devices allocated to a claim might not be the optimal set available to the cluster. Scoring will be implemented later. | [optional] +**name** | **String** | Name can be used to reference this request in a pod.spec.containers[].resources.claims entry and in a constraint of the claim. References using the name in the DeviceRequest will uniquely identify a request when the Exactly field is set. When the FirstAvailable field is set, a reference to the name of the DeviceRequest will match whatever subrequest is chosen by the scheduler. Must be a DNS label. | + + + diff --git a/kubernetes/docs/V1beta2DeviceRequestAllocationResult.md b/kubernetes/docs/V1beta2DeviceRequestAllocationResult.md new file mode 100644 index 0000000000..ee5261f01e --- /dev/null +++ b/kubernetes/docs/V1beta2DeviceRequestAllocationResult.md @@ -0,0 +1,18 @@ + + +# V1beta2DeviceRequestAllocationResult + +DeviceRequestAllocationResult contains the allocation result for one request. +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**adminAccess** | **Boolean** | AdminAccess indicates that this device was allocated for administrative access. See the corresponding request field for a definition of mode. This is an alpha field and requires enabling the DRAAdminAccess feature gate. Admin access is disabled if this field is unset or set to false, otherwise it is enabled. | [optional] +**device** | **String** | Device references one device instance via its name in the driver's resource pool. It must be a DNS label. | +**driver** | **String** | 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. | +**pool** | **String** | This name together with the driver name and the device name field identify which device was allocated (`<driver name>/<pool name>/<device name>`). Must not be longer than 253 characters and may contain one or more DNS sub-domains separated by slashes. | +**request** | **String** | Request is the name of the request in the claim which caused this device to be allocated. If it references a subrequest in the firstAvailable list on a DeviceRequest, this field must include both the name of the main request and the subrequest using the format <main request>/<subrequest>. Multiple devices may have been allocated per request. | +**tolerations** | [**List<V1beta2DeviceToleration>**](V1beta2DeviceToleration.md) | A copy of all tolerations specified in the request at the time when the device got allocated. The maximum number of tolerations is 16. This is an alpha field and requires enabling the DRADeviceTaints feature gate. | [optional] + + + diff --git a/kubernetes/docs/V1beta2DeviceSelector.md b/kubernetes/docs/V1beta2DeviceSelector.md new file mode 100644 index 0000000000..c8a25f6d84 --- /dev/null +++ b/kubernetes/docs/V1beta2DeviceSelector.md @@ -0,0 +1,13 @@ + + +# V1beta2DeviceSelector + +DeviceSelector must have exactly one field set. +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**cel** | [**V1beta2CELDeviceSelector**](V1beta2CELDeviceSelector.md) | | [optional] + + + diff --git a/kubernetes/docs/V1beta2DeviceSubRequest.md b/kubernetes/docs/V1beta2DeviceSubRequest.md new file mode 100644 index 0000000000..dcdd475337 --- /dev/null +++ b/kubernetes/docs/V1beta2DeviceSubRequest.md @@ -0,0 +1,18 @@ + + +# V1beta2DeviceSubRequest + +DeviceSubRequest describes a request for device provided in the claim.spec.devices.requests[].firstAvailable array. Each is typically a request for a single resource like a device, but can also ask for several identical devices. DeviceSubRequest is similar to ExactDeviceRequest, but doesn't expose the AdminAccess field as that one is only supported when requesting a specific device. +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**allocationMode** | **String** | AllocationMode and its related fields define how devices are allocated to satisfy this subrequest. 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 subrequest is for all of the matching devices in a pool. Allocation will fail if some devices are already allocated, unless adminAccess is requested. If AllocationMode 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 subrequests must specify this field. More modes may get added in the future. Clients must refuse to handle requests with unknown modes. | [optional] +**count** | **Long** | 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. | [optional] +**deviceClassName** | **String** | DeviceClassName references a specific DeviceClass, which can define additional configuration and selectors to be inherited by this subrequest. 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. | +**name** | **String** | Name can be used to reference this subrequest in the list of constraints or the list of configurations for the claim. References must use the format <main request>/<subrequest>. Must be a DNS label. | +**selectors** | [**List<V1beta2DeviceSelector>**](V1beta2DeviceSelector.md) | Selectors define criteria which must be satisfied by a specific device in order for that device to be considered for this subrequest. All selectors must be satisfied for a device to be considered. | [optional] +**tolerations** | [**List<V1beta2DeviceToleration>**](V1beta2DeviceToleration.md) | If specified, the request's tolerations. Tolerations for NoSchedule are required to allocate a device which has a taint with that effect. The same applies to NoExecute. In addition, should any of the allocated devices get tainted with NoExecute after allocation and that effect is not tolerated, then all pods consuming the ResourceClaim get deleted to evict them. The scheduler will not let new pods reserve the claim while it has these tainted devices. Once all pods are evicted, the claim will get deallocated. The maximum number of tolerations is 16. This is an alpha field and requires enabling the DRADeviceTaints feature gate. | [optional] + + + diff --git a/kubernetes/docs/V1beta2DeviceTaint.md b/kubernetes/docs/V1beta2DeviceTaint.md new file mode 100644 index 0000000000..de461e9a2b --- /dev/null +++ b/kubernetes/docs/V1beta2DeviceTaint.md @@ -0,0 +1,16 @@ + + +# V1beta2DeviceTaint + +The device this taint is attached to has the \"effect\" on any claim which does not tolerate the taint and, through the claim, to pods using the claim. +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**effect** | **String** | The effect of the taint on claims that do not tolerate the taint and through such claims on the pods using them. Valid effects are NoSchedule and NoExecute. PreferNoSchedule as used for nodes is not valid here. | +**key** | **String** | The taint key to be applied to a device. Must be a label name. | +**timeAdded** | [**OffsetDateTime**](OffsetDateTime.md) | TimeAdded represents the time at which the taint was added. Added automatically during create or update if not set. | [optional] +**value** | **String** | The taint value corresponding to the taint key. Must be a label value. | [optional] + + + diff --git a/kubernetes/docs/V1beta2DeviceToleration.md b/kubernetes/docs/V1beta2DeviceToleration.md new file mode 100644 index 0000000000..d4498d5d22 --- /dev/null +++ b/kubernetes/docs/V1beta2DeviceToleration.md @@ -0,0 +1,17 @@ + + +# V1beta2DeviceToleration + +The ResourceClaim this DeviceToleration is attached to tolerates any taint that matches the triple using the matching operator . +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**effect** | **String** | Effect indicates the taint effect to match. Empty means match all taint effects. When specified, allowed values are NoSchedule and NoExecute. | [optional] +**key** | **String** | 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. Must be a label name. | [optional] +**operator** | **String** | 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 ResourceClaim can tolerate all taints of a particular category. | [optional] +**tolerationSeconds** | **Long** | 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. If larger than zero, the time when the pod needs to be evicted is calculated as <time when taint was adedd> + <toleration seconds>. | [optional] +**value** | **String** | Value is the taint value the toleration matches to. If the operator is Exists, the value must be empty, otherwise just a regular string. Must be a label value. | [optional] + + + diff --git a/kubernetes/docs/V1beta2ExactDeviceRequest.md b/kubernetes/docs/V1beta2ExactDeviceRequest.md new file mode 100644 index 0000000000..fb92691d91 --- /dev/null +++ b/kubernetes/docs/V1beta2ExactDeviceRequest.md @@ -0,0 +1,18 @@ + + +# V1beta2ExactDeviceRequest + +ExactDeviceRequest is a request for one or more identical devices. +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**adminAccess** | **Boolean** | 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. This is an alpha field and requires enabling the DRAAdminAccess feature gate. Admin access is disabled if this field is unset or set to false, otherwise it is enabled. | [optional] +**allocationMode** | **String** | 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. At least one device must exist on the node for the allocation to succeed. Allocation will fail if some devices are already allocated, unless adminAccess is requested. If AllocationMode 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. | [optional] +**count** | **Long** | 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. | [optional] +**deviceClassName** | **String** | DeviceClassName references a specific DeviceClass, which can define additional configuration and selectors to be inherited by this request. A DeviceClassName is required. 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. | +**selectors** | [**List<V1beta2DeviceSelector>**](V1beta2DeviceSelector.md) | 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. | [optional] +**tolerations** | [**List<V1beta2DeviceToleration>**](V1beta2DeviceToleration.md) | If specified, the request's tolerations. Tolerations for NoSchedule are required to allocate a device which has a taint with that effect. The same applies to NoExecute. In addition, should any of the allocated devices get tainted with NoExecute after allocation and that effect is not tolerated, then all pods consuming the ResourceClaim get deleted to evict them. The scheduler will not let new pods reserve the claim while it has these tainted devices. Once all pods are evicted, the claim will get deallocated. The maximum number of tolerations is 16. This is an alpha field and requires enabling the DRADeviceTaints feature gate. | [optional] + + + diff --git a/kubernetes/docs/V1beta2ExemptPriorityLevelConfiguration.md b/kubernetes/docs/V1beta2ExemptPriorityLevelConfiguration.md deleted file mode 100644 index 9973609d23..0000000000 --- a/kubernetes/docs/V1beta2ExemptPriorityLevelConfiguration.md +++ /dev/null @@ -1,14 +0,0 @@ - - -# V1beta2ExemptPriorityLevelConfiguration - -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`. -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**lendablePercent** | **Integer** | `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 ) | [optional] -**nominalConcurrencyShares** | **Integer** | `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. | [optional] - - - diff --git a/kubernetes/docs/V1beta2FlowDistinguisherMethod.md b/kubernetes/docs/V1beta2FlowDistinguisherMethod.md deleted file mode 100644 index 205699f5ff..0000000000 --- a/kubernetes/docs/V1beta2FlowDistinguisherMethod.md +++ /dev/null @@ -1,13 +0,0 @@ - - -# V1beta2FlowDistinguisherMethod - -FlowDistinguisherMethod specifies the method of a flow distinguisher. -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**type** | **String** | `type` is the type of flow distinguisher method The supported types are \"ByUser\" and \"ByNamespace\". Required. | - - - diff --git a/kubernetes/docs/V1beta2FlowSchema.md b/kubernetes/docs/V1beta2FlowSchema.md deleted file mode 100644 index 30e409d141..0000000000 --- a/kubernetes/docs/V1beta2FlowSchema.md +++ /dev/null @@ -1,21 +0,0 @@ - - -# V1beta2FlowSchema - -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\". -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] -**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] -**spec** | [**V1beta2FlowSchemaSpec**](V1beta2FlowSchemaSpec.md) | | [optional] -**status** | [**V1beta2FlowSchemaStatus**](V1beta2FlowSchemaStatus.md) | | [optional] - - -## Implemented Interfaces - -* io.kubernetes.client.common.KubernetesObject - - diff --git a/kubernetes/docs/V1beta2FlowSchemaCondition.md b/kubernetes/docs/V1beta2FlowSchemaCondition.md deleted file mode 100644 index 0e090e7eb5..0000000000 --- a/kubernetes/docs/V1beta2FlowSchemaCondition.md +++ /dev/null @@ -1,17 +0,0 @@ - - -# V1beta2FlowSchemaCondition - -FlowSchemaCondition describes conditions for a FlowSchema. -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**lastTransitionTime** | [**OffsetDateTime**](OffsetDateTime.md) | `lastTransitionTime` is the last time the condition transitioned from one status to another. | [optional] -**message** | **String** | `message` is a human-readable message indicating details about last transition. | [optional] -**reason** | **String** | `reason` is a unique, one-word, CamelCase reason for the condition's last transition. | [optional] -**status** | **String** | `status` is the status of the condition. Can be True, False, Unknown. Required. | [optional] -**type** | **String** | `type` is the type of the condition. Required. | [optional] - - - diff --git a/kubernetes/docs/V1beta2FlowSchemaList.md b/kubernetes/docs/V1beta2FlowSchemaList.md deleted file mode 100644 index 1e6c04328f..0000000000 --- a/kubernetes/docs/V1beta2FlowSchemaList.md +++ /dev/null @@ -1,20 +0,0 @@ - - -# V1beta2FlowSchemaList - -FlowSchemaList is a list of FlowSchema objects. -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] -**items** | [**List<V1beta2FlowSchema>**](V1beta2FlowSchema.md) | `items` is a list of FlowSchemas. | -**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ListMeta**](V1ListMeta.md) | | [optional] - - -## Implemented Interfaces - -* io.kubernetes.client.common.KubernetesListObject - - diff --git a/kubernetes/docs/V1beta2FlowSchemaSpec.md b/kubernetes/docs/V1beta2FlowSchemaSpec.md deleted file mode 100644 index ca8b38c646..0000000000 --- a/kubernetes/docs/V1beta2FlowSchemaSpec.md +++ /dev/null @@ -1,16 +0,0 @@ - - -# V1beta2FlowSchemaSpec - -FlowSchemaSpec describes how the FlowSchema's specification looks like. -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**distinguisherMethod** | [**V1beta2FlowDistinguisherMethod**](V1beta2FlowDistinguisherMethod.md) | | [optional] -**matchingPrecedence** | **Integer** | `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. | [optional] -**priorityLevelConfiguration** | [**V1beta2PriorityLevelConfigurationReference**](V1beta2PriorityLevelConfigurationReference.md) | | -**rules** | [**List<V1beta2PolicyRulesWithSubjects>**](V1beta2PolicyRulesWithSubjects.md) | `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. | [optional] - - - diff --git a/kubernetes/docs/V1beta2FlowSchemaStatus.md b/kubernetes/docs/V1beta2FlowSchemaStatus.md deleted file mode 100644 index 65a4023280..0000000000 --- a/kubernetes/docs/V1beta2FlowSchemaStatus.md +++ /dev/null @@ -1,13 +0,0 @@ - - -# V1beta2FlowSchemaStatus - -FlowSchemaStatus represents the current state of a FlowSchema. -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**conditions** | [**List<V1beta2FlowSchemaCondition>**](V1beta2FlowSchemaCondition.md) | `conditions` is a list of the current states of FlowSchema. | [optional] - - - diff --git a/kubernetes/docs/V1beta2GroupSubject.md b/kubernetes/docs/V1beta2GroupSubject.md deleted file mode 100644 index 5d2e02aa55..0000000000 --- a/kubernetes/docs/V1beta2GroupSubject.md +++ /dev/null @@ -1,13 +0,0 @@ - - -# V1beta2GroupSubject - -GroupSubject holds detailed information for group-kind subject. -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**name** | **String** | 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. | - - - diff --git a/kubernetes/docs/V1beta2LimitResponse.md b/kubernetes/docs/V1beta2LimitResponse.md deleted file mode 100644 index de69307a98..0000000000 --- a/kubernetes/docs/V1beta2LimitResponse.md +++ /dev/null @@ -1,14 +0,0 @@ - - -# V1beta2LimitResponse - -LimitResponse defines how to handle requests that can not be executed right now. -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**queuing** | [**V1beta2QueuingConfiguration**](V1beta2QueuingConfiguration.md) | | [optional] -**type** | **String** | `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. | - - - diff --git a/kubernetes/docs/V1beta2LimitedPriorityLevelConfiguration.md b/kubernetes/docs/V1beta2LimitedPriorityLevelConfiguration.md deleted file mode 100644 index 65cf6facda..0000000000 --- a/kubernetes/docs/V1beta2LimitedPriorityLevelConfiguration.md +++ /dev/null @@ -1,16 +0,0 @@ - - -# V1beta2LimitedPriorityLevelConfiguration - -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? -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**assuredConcurrencyShares** | **Integer** | `assuredConcurrencyShares` (ACS) configures the execution limit, which is a limit on the number of requests of this priority level that may be exeucting at a given time. ACS must be a positive number. The server's concurrency limit (SCL) is divided among the concurrency-controlled priority levels in proportion to their assured concurrency shares. This produces the assured concurrency value (ACV) --- the number of requests that may be executing at a time --- for each such priority level: ACV(l) = ceil( SCL * ACS(l) / ( sum[priority levels k] ACS(k) ) ) bigger numbers of ACS mean more reserved concurrent requests (at the expense of every other PL). This field has a default value of 30. | [optional] -**borrowingLimitPercent** | **Integer** | `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. | [optional] -**lendablePercent** | **Integer** | `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 ) | [optional] -**limitResponse** | [**V1beta2LimitResponse**](V1beta2LimitResponse.md) | | [optional] - - - diff --git a/kubernetes/docs/V1beta2NetworkDeviceData.md b/kubernetes/docs/V1beta2NetworkDeviceData.md new file mode 100644 index 0000000000..111f335b97 --- /dev/null +++ b/kubernetes/docs/V1beta2NetworkDeviceData.md @@ -0,0 +1,15 @@ + + +# V1beta2NetworkDeviceData + +NetworkDeviceData provides network-related details for the allocated device. This information may be filled by drivers or other components to configure or identify the device within a network context. +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**hardwareAddress** | **String** | HardwareAddress represents the hardware address (e.g. MAC Address) of the device's network interface. Must not be longer than 128 characters. | [optional] +**interfaceName** | **String** | InterfaceName specifies the name of the network interface associated with the allocated device. This might be the name of a physical or virtual network interface being configured in the pod. Must not be longer than 256 characters. | [optional] +**ips** | **List<String>** | IPs lists the network addresses assigned to the device's network interface. This can include both IPv4 and IPv6 addresses. The IPs are in the CIDR notation, which includes both the address and the associated subnet mask. e.g.: \"192.0.2.5/24\" for IPv4 and \"2001:db8::5/64\" for IPv6. | [optional] + + + diff --git a/kubernetes/docs/V1beta2NonResourcePolicyRule.md b/kubernetes/docs/V1beta2NonResourcePolicyRule.md deleted file mode 100644 index 2020082bc9..0000000000 --- a/kubernetes/docs/V1beta2NonResourcePolicyRule.md +++ /dev/null @@ -1,14 +0,0 @@ - - -# V1beta2NonResourcePolicyRule - -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. -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**nonResourceURLs** | **List<String>** | `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. | -**verbs** | **List<String>** | `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. | - - - diff --git a/kubernetes/docs/V1beta2OpaqueDeviceConfiguration.md b/kubernetes/docs/V1beta2OpaqueDeviceConfiguration.md new file mode 100644 index 0000000000..84f2a9d810 --- /dev/null +++ b/kubernetes/docs/V1beta2OpaqueDeviceConfiguration.md @@ -0,0 +1,14 @@ + + +# V1beta2OpaqueDeviceConfiguration + +OpaqueDeviceConfiguration contains configuration parameters for a driver in a format defined by the driver vendor. +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**driver** | **String** | 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. | +**parameters** | [**Object**](.md) | 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. The length of the raw data must be smaller or equal to 10 Ki. | + + + diff --git a/kubernetes/docs/V1beta2PolicyRulesWithSubjects.md b/kubernetes/docs/V1beta2PolicyRulesWithSubjects.md deleted file mode 100644 index b04dfba80d..0000000000 --- a/kubernetes/docs/V1beta2PolicyRulesWithSubjects.md +++ /dev/null @@ -1,15 +0,0 @@ - - -# V1beta2PolicyRulesWithSubjects - -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. -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**nonResourceRules** | [**List<V1beta2NonResourcePolicyRule>**](V1beta2NonResourcePolicyRule.md) | `nonResourceRules` is a list of NonResourcePolicyRules that identify matching requests according to their verb and the target non-resource URL. | [optional] -**resourceRules** | [**List<V1beta2ResourcePolicyRule>**](V1beta2ResourcePolicyRule.md) | `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. | [optional] -**subjects** | [**List<V1beta2Subject>**](V1beta2Subject.md) | 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. | - - - diff --git a/kubernetes/docs/V1beta2PriorityLevelConfiguration.md b/kubernetes/docs/V1beta2PriorityLevelConfiguration.md deleted file mode 100644 index caf309c559..0000000000 --- a/kubernetes/docs/V1beta2PriorityLevelConfiguration.md +++ /dev/null @@ -1,21 +0,0 @@ - - -# V1beta2PriorityLevelConfiguration - -PriorityLevelConfiguration represents the configuration of a priority level. -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] -**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] -**spec** | [**V1beta2PriorityLevelConfigurationSpec**](V1beta2PriorityLevelConfigurationSpec.md) | | [optional] -**status** | [**V1beta2PriorityLevelConfigurationStatus**](V1beta2PriorityLevelConfigurationStatus.md) | | [optional] - - -## Implemented Interfaces - -* io.kubernetes.client.common.KubernetesObject - - diff --git a/kubernetes/docs/V1beta2PriorityLevelConfigurationCondition.md b/kubernetes/docs/V1beta2PriorityLevelConfigurationCondition.md deleted file mode 100644 index 21b1fa620d..0000000000 --- a/kubernetes/docs/V1beta2PriorityLevelConfigurationCondition.md +++ /dev/null @@ -1,17 +0,0 @@ - - -# V1beta2PriorityLevelConfigurationCondition - -PriorityLevelConfigurationCondition defines the condition of priority level. -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**lastTransitionTime** | [**OffsetDateTime**](OffsetDateTime.md) | `lastTransitionTime` is the last time the condition transitioned from one status to another. | [optional] -**message** | **String** | `message` is a human-readable message indicating details about last transition. | [optional] -**reason** | **String** | `reason` is a unique, one-word, CamelCase reason for the condition's last transition. | [optional] -**status** | **String** | `status` is the status of the condition. Can be True, False, Unknown. Required. | [optional] -**type** | **String** | `type` is the type of the condition. Required. | [optional] - - - diff --git a/kubernetes/docs/V1beta2PriorityLevelConfigurationList.md b/kubernetes/docs/V1beta2PriorityLevelConfigurationList.md deleted file mode 100644 index ab02f763dc..0000000000 --- a/kubernetes/docs/V1beta2PriorityLevelConfigurationList.md +++ /dev/null @@ -1,20 +0,0 @@ - - -# V1beta2PriorityLevelConfigurationList - -PriorityLevelConfigurationList is a list of PriorityLevelConfiguration objects. -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] -**items** | [**List<V1beta2PriorityLevelConfiguration>**](V1beta2PriorityLevelConfiguration.md) | `items` is a list of request-priorities. | -**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ListMeta**](V1ListMeta.md) | | [optional] - - -## Implemented Interfaces - -* io.kubernetes.client.common.KubernetesListObject - - diff --git a/kubernetes/docs/V1beta2PriorityLevelConfigurationReference.md b/kubernetes/docs/V1beta2PriorityLevelConfigurationReference.md deleted file mode 100644 index c02be0e6f8..0000000000 --- a/kubernetes/docs/V1beta2PriorityLevelConfigurationReference.md +++ /dev/null @@ -1,13 +0,0 @@ - - -# V1beta2PriorityLevelConfigurationReference - -PriorityLevelConfigurationReference contains information that points to the \"request-priority\" being used. -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**name** | **String** | `name` is the name of the priority level configuration being referenced Required. | - - - diff --git a/kubernetes/docs/V1beta2PriorityLevelConfigurationSpec.md b/kubernetes/docs/V1beta2PriorityLevelConfigurationSpec.md deleted file mode 100644 index 511f5d368c..0000000000 --- a/kubernetes/docs/V1beta2PriorityLevelConfigurationSpec.md +++ /dev/null @@ -1,15 +0,0 @@ - - -# V1beta2PriorityLevelConfigurationSpec - -PriorityLevelConfigurationSpec specifies the configuration of a priority level. -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**exempt** | [**V1beta2ExemptPriorityLevelConfiguration**](V1beta2ExemptPriorityLevelConfiguration.md) | | [optional] -**limited** | [**V1beta2LimitedPriorityLevelConfiguration**](V1beta2LimitedPriorityLevelConfiguration.md) | | [optional] -**type** | **String** | `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. | - - - diff --git a/kubernetes/docs/V1beta2PriorityLevelConfigurationStatus.md b/kubernetes/docs/V1beta2PriorityLevelConfigurationStatus.md deleted file mode 100644 index 4181a7c641..0000000000 --- a/kubernetes/docs/V1beta2PriorityLevelConfigurationStatus.md +++ /dev/null @@ -1,13 +0,0 @@ - - -# V1beta2PriorityLevelConfigurationStatus - -PriorityLevelConfigurationStatus represents the current state of a \"request-priority\". -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**conditions** | [**List<V1beta2PriorityLevelConfigurationCondition>**](V1beta2PriorityLevelConfigurationCondition.md) | `conditions` is the current state of \"request-priority\". | [optional] - - - diff --git a/kubernetes/docs/V1beta2QueuingConfiguration.md b/kubernetes/docs/V1beta2QueuingConfiguration.md deleted file mode 100644 index c1e96a7508..0000000000 --- a/kubernetes/docs/V1beta2QueuingConfiguration.md +++ /dev/null @@ -1,15 +0,0 @@ - - -# V1beta2QueuingConfiguration - -QueuingConfiguration holds the configuration parameters for queuing -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**handSize** | **Integer** | `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. | [optional] -**queueLengthLimit** | **Integer** | `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. | [optional] -**queues** | **Integer** | `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. | [optional] - - - diff --git a/kubernetes/docs/V1beta2ResourceClaim.md b/kubernetes/docs/V1beta2ResourceClaim.md new file mode 100644 index 0000000000..194ea3f3d8 --- /dev/null +++ b/kubernetes/docs/V1beta2ResourceClaim.md @@ -0,0 +1,21 @@ + + +# V1beta2ResourceClaim + +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. +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] +**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] +**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] +**spec** | [**V1beta2ResourceClaimSpec**](V1beta2ResourceClaimSpec.md) | | +**status** | [**V1beta2ResourceClaimStatus**](V1beta2ResourceClaimStatus.md) | | [optional] + + +## Implemented Interfaces + +* io.kubernetes.client.common.KubernetesObject + + diff --git a/kubernetes/docs/V1beta2ResourceClaimConsumerReference.md b/kubernetes/docs/V1beta2ResourceClaimConsumerReference.md new file mode 100644 index 0000000000..461773cec0 --- /dev/null +++ b/kubernetes/docs/V1beta2ResourceClaimConsumerReference.md @@ -0,0 +1,16 @@ + + +# V1beta2ResourceClaimConsumerReference + +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. +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**apiGroup** | **String** | 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. | [optional] +**name** | **String** | Name is the name of resource being referenced. | +**resource** | **String** | Resource is the type of resource being referenced, for example \"pods\". | +**uid** | **String** | UID identifies exactly one incarnation of the resource. | + + + diff --git a/kubernetes/docs/V1beta2ResourceClaimList.md b/kubernetes/docs/V1beta2ResourceClaimList.md new file mode 100644 index 0000000000..27fe052ca9 --- /dev/null +++ b/kubernetes/docs/V1beta2ResourceClaimList.md @@ -0,0 +1,20 @@ + + +# V1beta2ResourceClaimList + +ResourceClaimList is a collection of claims. +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] +**items** | [**List<V1beta2ResourceClaim>**](V1beta2ResourceClaim.md) | Items is the list of resource claims. | +**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] +**metadata** | [**V1ListMeta**](V1ListMeta.md) | | [optional] + + +## Implemented Interfaces + +* io.kubernetes.client.common.KubernetesListObject + + diff --git a/kubernetes/docs/V1beta2ResourceClaimSpec.md b/kubernetes/docs/V1beta2ResourceClaimSpec.md new file mode 100644 index 0000000000..4a70cced31 --- /dev/null +++ b/kubernetes/docs/V1beta2ResourceClaimSpec.md @@ -0,0 +1,13 @@ + + +# V1beta2ResourceClaimSpec + +ResourceClaimSpec defines what is being requested in a ResourceClaim and how to configure it. +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**devices** | [**V1beta2DeviceClaim**](V1beta2DeviceClaim.md) | | [optional] + + + diff --git a/kubernetes/docs/V1beta2ResourceClaimStatus.md b/kubernetes/docs/V1beta2ResourceClaimStatus.md new file mode 100644 index 0000000000..79a2c077c0 --- /dev/null +++ b/kubernetes/docs/V1beta2ResourceClaimStatus.md @@ -0,0 +1,15 @@ + + +# V1beta2ResourceClaimStatus + +ResourceClaimStatus tracks whether the resource has been allocated and what the result of that was. +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**allocation** | [**V1beta2AllocationResult**](V1beta2AllocationResult.md) | | [optional] +**devices** | [**List<V1beta2AllocatedDeviceStatus>**](V1beta2AllocatedDeviceStatus.md) | Devices contains the status of each device allocated for this claim, as reported by the driver. This can include driver-specific information. Entries are owned by their respective drivers. | [optional] +**reservedFor** | [**List<V1beta2ResourceClaimConsumerReference>**](V1beta2ResourceClaimConsumerReference.md) | 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 256 such reservations. This may get increased in the future, but not reduced. | [optional] + + + diff --git a/kubernetes/docs/V1beta2ResourceClaimTemplate.md b/kubernetes/docs/V1beta2ResourceClaimTemplate.md new file mode 100644 index 0000000000..e39302970f --- /dev/null +++ b/kubernetes/docs/V1beta2ResourceClaimTemplate.md @@ -0,0 +1,20 @@ + + +# V1beta2ResourceClaimTemplate + +ResourceClaimTemplate is used to produce ResourceClaim objects. This is an alpha type and requires enabling the DynamicResourceAllocation feature gate. +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] +**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] +**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] +**spec** | [**V1beta2ResourceClaimTemplateSpec**](V1beta2ResourceClaimTemplateSpec.md) | | + + +## Implemented Interfaces + +* io.kubernetes.client.common.KubernetesObject + + diff --git a/kubernetes/docs/V1beta2ResourceClaimTemplateList.md b/kubernetes/docs/V1beta2ResourceClaimTemplateList.md new file mode 100644 index 0000000000..6519ea33ab --- /dev/null +++ b/kubernetes/docs/V1beta2ResourceClaimTemplateList.md @@ -0,0 +1,20 @@ + + +# V1beta2ResourceClaimTemplateList + +ResourceClaimTemplateList is a collection of claim templates. +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] +**items** | [**List<V1beta2ResourceClaimTemplate>**](V1beta2ResourceClaimTemplate.md) | Items is the list of resource claim templates. | +**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] +**metadata** | [**V1ListMeta**](V1ListMeta.md) | | [optional] + + +## Implemented Interfaces + +* io.kubernetes.client.common.KubernetesListObject + + diff --git a/kubernetes/docs/V1beta2ResourceClaimTemplateSpec.md b/kubernetes/docs/V1beta2ResourceClaimTemplateSpec.md new file mode 100644 index 0000000000..8a66036f10 --- /dev/null +++ b/kubernetes/docs/V1beta2ResourceClaimTemplateSpec.md @@ -0,0 +1,14 @@ + + +# V1beta2ResourceClaimTemplateSpec + +ResourceClaimTemplateSpec contains the metadata and fields for a ResourceClaim. +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] +**spec** | [**V1beta2ResourceClaimSpec**](V1beta2ResourceClaimSpec.md) | | + + + diff --git a/kubernetes/docs/V1beta2ResourcePolicyRule.md b/kubernetes/docs/V1beta2ResourcePolicyRule.md deleted file mode 100644 index 45902af642..0000000000 --- a/kubernetes/docs/V1beta2ResourcePolicyRule.md +++ /dev/null @@ -1,17 +0,0 @@ - - -# V1beta2ResourcePolicyRule - -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. -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**apiGroups** | **List<String>** | `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. | -**clusterScope** | **Boolean** | `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. | [optional] -**namespaces** | **List<String>** | `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. | [optional] -**resources** | **List<String>** | `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. | -**verbs** | **List<String>** | `verbs` is a list of matching verbs and may not be empty. \"*\" matches all verbs and, if present, must be the only entry. Required. | - - - diff --git a/kubernetes/docs/V1beta2ResourcePool.md b/kubernetes/docs/V1beta2ResourcePool.md new file mode 100644 index 0000000000..c2a93b2c18 --- /dev/null +++ b/kubernetes/docs/V1beta2ResourcePool.md @@ -0,0 +1,15 @@ + + +# V1beta2ResourcePool + +ResourcePool describes the pool that ResourceSlices belong to. +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**generation** | **Long** | 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. | +**name** | **String** | 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. | +**resourceSliceCount** | **Long** | 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. | + + + diff --git a/kubernetes/docs/V1beta2ResourceSlice.md b/kubernetes/docs/V1beta2ResourceSlice.md new file mode 100644 index 0000000000..e6ac4332a5 --- /dev/null +++ b/kubernetes/docs/V1beta2ResourceSlice.md @@ -0,0 +1,20 @@ + + +# V1beta2ResourceSlice + +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. +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] +**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] +**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] +**spec** | [**V1beta2ResourceSliceSpec**](V1beta2ResourceSliceSpec.md) | | + + +## Implemented Interfaces + +* io.kubernetes.client.common.KubernetesObject + + diff --git a/kubernetes/docs/V1beta2ResourceSliceList.md b/kubernetes/docs/V1beta2ResourceSliceList.md new file mode 100644 index 0000000000..314d6b5f2c --- /dev/null +++ b/kubernetes/docs/V1beta2ResourceSliceList.md @@ -0,0 +1,20 @@ + + +# V1beta2ResourceSliceList + +ResourceSliceList is a collection of ResourceSlices. +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] +**items** | [**List<V1beta2ResourceSlice>**](V1beta2ResourceSlice.md) | Items is the list of resource ResourceSlices. | +**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] +**metadata** | [**V1ListMeta**](V1ListMeta.md) | | [optional] + + +## Implemented Interfaces + +* io.kubernetes.client.common.KubernetesListObject + + diff --git a/kubernetes/docs/V1beta2ResourceSliceSpec.md b/kubernetes/docs/V1beta2ResourceSliceSpec.md new file mode 100644 index 0000000000..5c2105d34d --- /dev/null +++ b/kubernetes/docs/V1beta2ResourceSliceSpec.md @@ -0,0 +1,20 @@ + + +# V1beta2ResourceSliceSpec + +ResourceSliceSpec contains the information published by the driver in one ResourceSlice. +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**allNodes** | **Boolean** | AllNodes indicates that all nodes have access to the resources in the pool. Exactly one of NodeName, NodeSelector, AllNodes, and PerDeviceNodeSelection must be set. | [optional] +**devices** | [**List<V1beta2Device>**](V1beta2Device.md) | Devices lists some or all of the devices in this pool. Must not have more than 128 entries. | [optional] +**driver** | **String** | 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. | +**nodeName** | **String** | 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, AllNodes, and PerDeviceNodeSelection must be set. This field is immutable. | [optional] +**nodeSelector** | [**V1NodeSelector**](V1NodeSelector.md) | | [optional] +**perDeviceNodeSelection** | **Boolean** | PerDeviceNodeSelection defines whether the access from nodes to resources in the pool is set on the ResourceSlice level or on each device. If it is set to true, every device defined the ResourceSlice must specify this individually. Exactly one of NodeName, NodeSelector, AllNodes, and PerDeviceNodeSelection must be set. | [optional] +**pool** | [**V1beta2ResourcePool**](V1beta2ResourcePool.md) | | +**sharedCounters** | [**List<V1beta2CounterSet>**](V1beta2CounterSet.md) | SharedCounters defines a list of counter sets, each of which has a name and a list of counters available. The names of the SharedCounters must be unique in the ResourceSlice. The maximum number of counters in all sets is 32. | [optional] + + + diff --git a/kubernetes/docs/V1beta2ServiceAccountSubject.md b/kubernetes/docs/V1beta2ServiceAccountSubject.md deleted file mode 100644 index 76bf5eb21e..0000000000 --- a/kubernetes/docs/V1beta2ServiceAccountSubject.md +++ /dev/null @@ -1,14 +0,0 @@ - - -# V1beta2ServiceAccountSubject - -ServiceAccountSubject holds detailed information for service-account-kind subject. -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**name** | **String** | `name` is the name of matching ServiceAccount objects, or \"*\" to match regardless of name. Required. | -**namespace** | **String** | `namespace` is the namespace of matching ServiceAccount objects. Required. | - - - diff --git a/kubernetes/docs/V1beta2Subject.md b/kubernetes/docs/V1beta2Subject.md deleted file mode 100644 index 151a009b00..0000000000 --- a/kubernetes/docs/V1beta2Subject.md +++ /dev/null @@ -1,16 +0,0 @@ - - -# V1beta2Subject - -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. -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**group** | [**V1beta2GroupSubject**](V1beta2GroupSubject.md) | | [optional] -**kind** | **String** | `kind` indicates which one of the other fields is non-empty. Required | -**serviceAccount** | [**V1beta2ServiceAccountSubject**](V1beta2ServiceAccountSubject.md) | | [optional] -**user** | [**V1beta2UserSubject**](V1beta2UserSubject.md) | | [optional] - - - diff --git a/kubernetes/docs/V1beta2UserSubject.md b/kubernetes/docs/V1beta2UserSubject.md deleted file mode 100644 index d96e90f934..0000000000 --- a/kubernetes/docs/V1beta2UserSubject.md +++ /dev/null @@ -1,13 +0,0 @@ - - -# V1beta2UserSubject - -UserSubject holds detailed information for user-kind subject. -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**name** | **String** | `name` is the username that matches, or \"*\" to match all usernames. Required. | - - - diff --git a/kubernetes/docs/V1beta3ExemptPriorityLevelConfiguration.md b/kubernetes/docs/V1beta3ExemptPriorityLevelConfiguration.md deleted file mode 100644 index 9a4a54feb4..0000000000 --- a/kubernetes/docs/V1beta3ExemptPriorityLevelConfiguration.md +++ /dev/null @@ -1,14 +0,0 @@ - - -# V1beta3ExemptPriorityLevelConfiguration - -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`. -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**lendablePercent** | **Integer** | `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 ) | [optional] -**nominalConcurrencyShares** | **Integer** | `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. | [optional] - - - diff --git a/kubernetes/docs/V1beta3FlowDistinguisherMethod.md b/kubernetes/docs/V1beta3FlowDistinguisherMethod.md deleted file mode 100644 index 32f218253a..0000000000 --- a/kubernetes/docs/V1beta3FlowDistinguisherMethod.md +++ /dev/null @@ -1,13 +0,0 @@ - - -# V1beta3FlowDistinguisherMethod - -FlowDistinguisherMethod specifies the method of a flow distinguisher. -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**type** | **String** | `type` is the type of flow distinguisher method The supported types are \"ByUser\" and \"ByNamespace\". Required. | - - - diff --git a/kubernetes/docs/V1beta3FlowSchema.md b/kubernetes/docs/V1beta3FlowSchema.md deleted file mode 100644 index 7c217c67ce..0000000000 --- a/kubernetes/docs/V1beta3FlowSchema.md +++ /dev/null @@ -1,21 +0,0 @@ - - -# V1beta3FlowSchema - -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\". -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] -**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] -**spec** | [**V1beta3FlowSchemaSpec**](V1beta3FlowSchemaSpec.md) | | [optional] -**status** | [**V1beta3FlowSchemaStatus**](V1beta3FlowSchemaStatus.md) | | [optional] - - -## Implemented Interfaces - -* io.kubernetes.client.common.KubernetesObject - - diff --git a/kubernetes/docs/V1beta3FlowSchemaCondition.md b/kubernetes/docs/V1beta3FlowSchemaCondition.md deleted file mode 100644 index da42b09283..0000000000 --- a/kubernetes/docs/V1beta3FlowSchemaCondition.md +++ /dev/null @@ -1,17 +0,0 @@ - - -# V1beta3FlowSchemaCondition - -FlowSchemaCondition describes conditions for a FlowSchema. -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**lastTransitionTime** | [**OffsetDateTime**](OffsetDateTime.md) | `lastTransitionTime` is the last time the condition transitioned from one status to another. | [optional] -**message** | **String** | `message` is a human-readable message indicating details about last transition. | [optional] -**reason** | **String** | `reason` is a unique, one-word, CamelCase reason for the condition's last transition. | [optional] -**status** | **String** | `status` is the status of the condition. Can be True, False, Unknown. Required. | [optional] -**type** | **String** | `type` is the type of the condition. Required. | [optional] - - - diff --git a/kubernetes/docs/V1beta3FlowSchemaList.md b/kubernetes/docs/V1beta3FlowSchemaList.md deleted file mode 100644 index 23e3b5cb28..0000000000 --- a/kubernetes/docs/V1beta3FlowSchemaList.md +++ /dev/null @@ -1,20 +0,0 @@ - - -# V1beta3FlowSchemaList - -FlowSchemaList is a list of FlowSchema objects. -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] -**items** | [**List<V1beta3FlowSchema>**](V1beta3FlowSchema.md) | `items` is a list of FlowSchemas. | -**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ListMeta**](V1ListMeta.md) | | [optional] - - -## Implemented Interfaces - -* io.kubernetes.client.common.KubernetesListObject - - diff --git a/kubernetes/docs/V1beta3FlowSchemaSpec.md b/kubernetes/docs/V1beta3FlowSchemaSpec.md deleted file mode 100644 index 9f71e63b0d..0000000000 --- a/kubernetes/docs/V1beta3FlowSchemaSpec.md +++ /dev/null @@ -1,16 +0,0 @@ - - -# V1beta3FlowSchemaSpec - -FlowSchemaSpec describes how the FlowSchema's specification looks like. -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**distinguisherMethod** | [**V1beta3FlowDistinguisherMethod**](V1beta3FlowDistinguisherMethod.md) | | [optional] -**matchingPrecedence** | **Integer** | `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. | [optional] -**priorityLevelConfiguration** | [**V1beta3PriorityLevelConfigurationReference**](V1beta3PriorityLevelConfigurationReference.md) | | -**rules** | [**List<V1beta3PolicyRulesWithSubjects>**](V1beta3PolicyRulesWithSubjects.md) | `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. | [optional] - - - diff --git a/kubernetes/docs/V1beta3FlowSchemaStatus.md b/kubernetes/docs/V1beta3FlowSchemaStatus.md deleted file mode 100644 index 160839c4de..0000000000 --- a/kubernetes/docs/V1beta3FlowSchemaStatus.md +++ /dev/null @@ -1,13 +0,0 @@ - - -# V1beta3FlowSchemaStatus - -FlowSchemaStatus represents the current state of a FlowSchema. -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**conditions** | [**List<V1beta3FlowSchemaCondition>**](V1beta3FlowSchemaCondition.md) | `conditions` is a list of the current states of FlowSchema. | [optional] - - - diff --git a/kubernetes/docs/V1beta3GroupSubject.md b/kubernetes/docs/V1beta3GroupSubject.md deleted file mode 100644 index 110269c09e..0000000000 --- a/kubernetes/docs/V1beta3GroupSubject.md +++ /dev/null @@ -1,13 +0,0 @@ - - -# V1beta3GroupSubject - -GroupSubject holds detailed information for group-kind subject. -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**name** | **String** | 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. | - - - diff --git a/kubernetes/docs/V1beta3LimitResponse.md b/kubernetes/docs/V1beta3LimitResponse.md deleted file mode 100644 index 9014fabfb5..0000000000 --- a/kubernetes/docs/V1beta3LimitResponse.md +++ /dev/null @@ -1,14 +0,0 @@ - - -# V1beta3LimitResponse - -LimitResponse defines how to handle requests that can not be executed right now. -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**queuing** | [**V1beta3QueuingConfiguration**](V1beta3QueuingConfiguration.md) | | [optional] -**type** | **String** | `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. | - - - diff --git a/kubernetes/docs/V1beta3LimitedPriorityLevelConfiguration.md b/kubernetes/docs/V1beta3LimitedPriorityLevelConfiguration.md deleted file mode 100644 index b6871594d2..0000000000 --- a/kubernetes/docs/V1beta3LimitedPriorityLevelConfiguration.md +++ /dev/null @@ -1,16 +0,0 @@ - - -# V1beta3LimitedPriorityLevelConfiguration - -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? -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**borrowingLimitPercent** | **Integer** | `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. | [optional] -**lendablePercent** | **Integer** | `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 ) | [optional] -**limitResponse** | [**V1beta3LimitResponse**](V1beta3LimitResponse.md) | | [optional] -**nominalConcurrencyShares** | **Integer** | `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. | [optional] - - - diff --git a/kubernetes/docs/V1beta3NonResourcePolicyRule.md b/kubernetes/docs/V1beta3NonResourcePolicyRule.md deleted file mode 100644 index 4ad0b4dc3c..0000000000 --- a/kubernetes/docs/V1beta3NonResourcePolicyRule.md +++ /dev/null @@ -1,14 +0,0 @@ - - -# V1beta3NonResourcePolicyRule - -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. -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**nonResourceURLs** | **List<String>** | `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. | -**verbs** | **List<String>** | `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. | - - - diff --git a/kubernetes/docs/V1beta3PolicyRulesWithSubjects.md b/kubernetes/docs/V1beta3PolicyRulesWithSubjects.md deleted file mode 100644 index 36ee2b3897..0000000000 --- a/kubernetes/docs/V1beta3PolicyRulesWithSubjects.md +++ /dev/null @@ -1,15 +0,0 @@ - - -# V1beta3PolicyRulesWithSubjects - -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. -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**nonResourceRules** | [**List<V1beta3NonResourcePolicyRule>**](V1beta3NonResourcePolicyRule.md) | `nonResourceRules` is a list of NonResourcePolicyRules that identify matching requests according to their verb and the target non-resource URL. | [optional] -**resourceRules** | [**List<V1beta3ResourcePolicyRule>**](V1beta3ResourcePolicyRule.md) | `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. | [optional] -**subjects** | [**List<V1beta3Subject>**](V1beta3Subject.md) | 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. | - - - diff --git a/kubernetes/docs/V1beta3PriorityLevelConfiguration.md b/kubernetes/docs/V1beta3PriorityLevelConfiguration.md deleted file mode 100644 index b63bbde489..0000000000 --- a/kubernetes/docs/V1beta3PriorityLevelConfiguration.md +++ /dev/null @@ -1,21 +0,0 @@ - - -# V1beta3PriorityLevelConfiguration - -PriorityLevelConfiguration represents the configuration of a priority level. -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] -**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] -**spec** | [**V1beta3PriorityLevelConfigurationSpec**](V1beta3PriorityLevelConfigurationSpec.md) | | [optional] -**status** | [**V1beta3PriorityLevelConfigurationStatus**](V1beta3PriorityLevelConfigurationStatus.md) | | [optional] - - -## Implemented Interfaces - -* io.kubernetes.client.common.KubernetesObject - - diff --git a/kubernetes/docs/V1beta3PriorityLevelConfigurationCondition.md b/kubernetes/docs/V1beta3PriorityLevelConfigurationCondition.md deleted file mode 100644 index e2ca995104..0000000000 --- a/kubernetes/docs/V1beta3PriorityLevelConfigurationCondition.md +++ /dev/null @@ -1,17 +0,0 @@ - - -# V1beta3PriorityLevelConfigurationCondition - -PriorityLevelConfigurationCondition defines the condition of priority level. -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**lastTransitionTime** | [**OffsetDateTime**](OffsetDateTime.md) | `lastTransitionTime` is the last time the condition transitioned from one status to another. | [optional] -**message** | **String** | `message` is a human-readable message indicating details about last transition. | [optional] -**reason** | **String** | `reason` is a unique, one-word, CamelCase reason for the condition's last transition. | [optional] -**status** | **String** | `status` is the status of the condition. Can be True, False, Unknown. Required. | [optional] -**type** | **String** | `type` is the type of the condition. Required. | [optional] - - - diff --git a/kubernetes/docs/V1beta3PriorityLevelConfigurationList.md b/kubernetes/docs/V1beta3PriorityLevelConfigurationList.md deleted file mode 100644 index b2bb6e9032..0000000000 --- a/kubernetes/docs/V1beta3PriorityLevelConfigurationList.md +++ /dev/null @@ -1,20 +0,0 @@ - - -# V1beta3PriorityLevelConfigurationList - -PriorityLevelConfigurationList is a list of PriorityLevelConfiguration objects. -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] -**items** | [**List<V1beta3PriorityLevelConfiguration>**](V1beta3PriorityLevelConfiguration.md) | `items` is a list of request-priorities. | -**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ListMeta**](V1ListMeta.md) | | [optional] - - -## Implemented Interfaces - -* io.kubernetes.client.common.KubernetesListObject - - diff --git a/kubernetes/docs/V1beta3PriorityLevelConfigurationReference.md b/kubernetes/docs/V1beta3PriorityLevelConfigurationReference.md deleted file mode 100644 index 5ac4aeffcb..0000000000 --- a/kubernetes/docs/V1beta3PriorityLevelConfigurationReference.md +++ /dev/null @@ -1,13 +0,0 @@ - - -# V1beta3PriorityLevelConfigurationReference - -PriorityLevelConfigurationReference contains information that points to the \"request-priority\" being used. -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**name** | **String** | `name` is the name of the priority level configuration being referenced Required. | - - - diff --git a/kubernetes/docs/V1beta3PriorityLevelConfigurationSpec.md b/kubernetes/docs/V1beta3PriorityLevelConfigurationSpec.md deleted file mode 100644 index 33cd658731..0000000000 --- a/kubernetes/docs/V1beta3PriorityLevelConfigurationSpec.md +++ /dev/null @@ -1,15 +0,0 @@ - - -# V1beta3PriorityLevelConfigurationSpec - -PriorityLevelConfigurationSpec specifies the configuration of a priority level. -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**exempt** | [**V1beta3ExemptPriorityLevelConfiguration**](V1beta3ExemptPriorityLevelConfiguration.md) | | [optional] -**limited** | [**V1beta3LimitedPriorityLevelConfiguration**](V1beta3LimitedPriorityLevelConfiguration.md) | | [optional] -**type** | **String** | `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. | - - - diff --git a/kubernetes/docs/V1beta3PriorityLevelConfigurationStatus.md b/kubernetes/docs/V1beta3PriorityLevelConfigurationStatus.md deleted file mode 100644 index 7b05ca1fec..0000000000 --- a/kubernetes/docs/V1beta3PriorityLevelConfigurationStatus.md +++ /dev/null @@ -1,13 +0,0 @@ - - -# V1beta3PriorityLevelConfigurationStatus - -PriorityLevelConfigurationStatus represents the current state of a \"request-priority\". -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**conditions** | [**List<V1beta3PriorityLevelConfigurationCondition>**](V1beta3PriorityLevelConfigurationCondition.md) | `conditions` is the current state of \"request-priority\". | [optional] - - - diff --git a/kubernetes/docs/V1beta3QueuingConfiguration.md b/kubernetes/docs/V1beta3QueuingConfiguration.md deleted file mode 100644 index cbfbd0b557..0000000000 --- a/kubernetes/docs/V1beta3QueuingConfiguration.md +++ /dev/null @@ -1,15 +0,0 @@ - - -# V1beta3QueuingConfiguration - -QueuingConfiguration holds the configuration parameters for queuing -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**handSize** | **Integer** | `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. | [optional] -**queueLengthLimit** | **Integer** | `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. | [optional] -**queues** | **Integer** | `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. | [optional] - - - diff --git a/kubernetes/docs/V1beta3ResourcePolicyRule.md b/kubernetes/docs/V1beta3ResourcePolicyRule.md deleted file mode 100644 index e593bce08c..0000000000 --- a/kubernetes/docs/V1beta3ResourcePolicyRule.md +++ /dev/null @@ -1,17 +0,0 @@ - - -# V1beta3ResourcePolicyRule - -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. -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**apiGroups** | **List<String>** | `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. | -**clusterScope** | **Boolean** | `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. | [optional] -**namespaces** | **List<String>** | `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. | [optional] -**resources** | **List<String>** | `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. | -**verbs** | **List<String>** | `verbs` is a list of matching verbs and may not be empty. \"*\" matches all verbs and, if present, must be the only entry. Required. | - - - diff --git a/kubernetes/docs/V1beta3ServiceAccountSubject.md b/kubernetes/docs/V1beta3ServiceAccountSubject.md deleted file mode 100644 index 82bc71d1b3..0000000000 --- a/kubernetes/docs/V1beta3ServiceAccountSubject.md +++ /dev/null @@ -1,14 +0,0 @@ - - -# V1beta3ServiceAccountSubject - -ServiceAccountSubject holds detailed information for service-account-kind subject. -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**name** | **String** | `name` is the name of matching ServiceAccount objects, or \"*\" to match regardless of name. Required. | -**namespace** | **String** | `namespace` is the namespace of matching ServiceAccount objects. Required. | - - - diff --git a/kubernetes/docs/V1beta3Subject.md b/kubernetes/docs/V1beta3Subject.md deleted file mode 100644 index c90959bf53..0000000000 --- a/kubernetes/docs/V1beta3Subject.md +++ /dev/null @@ -1,16 +0,0 @@ - - -# V1beta3Subject - -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. -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**group** | [**V1beta3GroupSubject**](V1beta3GroupSubject.md) | | [optional] -**kind** | **String** | `kind` indicates which one of the other fields is non-empty. Required | -**serviceAccount** | [**V1beta3ServiceAccountSubject**](V1beta3ServiceAccountSubject.md) | | [optional] -**user** | [**V1beta3UserSubject**](V1beta3UserSubject.md) | | [optional] - - - diff --git a/kubernetes/docs/V1beta3UserSubject.md b/kubernetes/docs/V1beta3UserSubject.md deleted file mode 100644 index e80939ef03..0000000000 --- a/kubernetes/docs/V1beta3UserSubject.md +++ /dev/null @@ -1,13 +0,0 @@ - - -# V1beta3UserSubject - -UserSubject holds detailed information for user-kind subject. -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**name** | **String** | `name` is the username that matches, or \"*\" to match all usernames. Required. | - - - diff --git a/kubernetes/docs/V2HPAScalingRules.md b/kubernetes/docs/V2HPAScalingRules.md index 82950a5c43..6315368d5c 100644 --- a/kubernetes/docs/V2HPAScalingRules.md +++ b/kubernetes/docs/V2HPAScalingRules.md @@ -2,14 +2,15 @@ # V2HPAScalingRules -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. +HPAScalingRules configures the scaling behavior for one direction via scaling Policy Rules and a configurable metric tolerance. Scaling Policy 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. The tolerance is applied to the metric values and prevents scaling too eagerly for small metric variations. (Note that setting a tolerance requires enabling the alpha HPAConfigurableTolerance feature gate.) ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**policies** | [**List<V2HPAScalingPolicy>**](V2HPAScalingPolicy.md) | 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 | [optional] +**policies** | [**List<V2HPAScalingPolicy>**](V2HPAScalingPolicy.md) | policies is a list of potential scaling polices which can be used during scaling. If not set, use the default values: - For scale up: allow doubling the number of pods, or an absolute change of 4 pods in a 15s window. - For scale down: allow all pods to be removed in a 15s window. | [optional] **selectPolicy** | **String** | selectPolicy is used to specify which policy should be used. If not set, the default value Max is used. | [optional] **stabilizationWindowSeconds** | **Integer** | 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). | [optional] +**tolerance** | [**Quantity**](Quantity.md) | 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: ``` <quantity> ::= <signedNumber><suffix> (Note that <suffix> may be empty, from the \"\" case in <decimalSI>.) <digit> ::= 0 | 1 | ... | 9 <digits> ::= <digit> | <digit><digits> <number> ::= <digits> | <digits>.<digits> | <digits>. | .<digits> <sign> ::= \"+\" | \"-\" <signedNumber> ::= <number> | <sign><number> <suffix> ::= <binarySI> | <decimalExponent> | <decimalSI> <binarySI> ::= Ki | Mi | Gi | Ti | Pi | Ei (International System of units; See: http://physics.nist.gov/cuu/Units/binary.html) <decimalSI> ::= m | \"\" | k | M | G | T | P | E (Note that 1024 = 1Ki but 1000 = 1k; I didn't choose the capitalization.) <decimalExponent> ::= \"e\" <signedNumber> | \"E\" <signedNumber> ``` 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. | [optional] diff --git a/kubernetes/docs/V2MetricSpec.md b/kubernetes/docs/V2MetricSpec.md index b34f339940..74705854aa 100644 --- a/kubernetes/docs/V2MetricSpec.md +++ b/kubernetes/docs/V2MetricSpec.md @@ -12,7 +12,7 @@ Name | Type | Description | Notes **_object** | [**V2ObjectMetricSource**](V2ObjectMetricSource.md) | | [optional] **pods** | [**V2PodsMetricSource**](V2PodsMetricSource.md) | | [optional] **resource** | [**V2ResourceMetricSource**](V2ResourceMetricSource.md) | | [optional] -**type** | **String** | 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 | +**type** | **String** | 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. | diff --git a/kubernetes/docs/V2MetricStatus.md b/kubernetes/docs/V2MetricStatus.md index c3589d1ec8..f32f4223ac 100644 --- a/kubernetes/docs/V2MetricStatus.md +++ b/kubernetes/docs/V2MetricStatus.md @@ -12,7 +12,7 @@ Name | Type | Description | Notes **_object** | [**V2ObjectMetricStatus**](V2ObjectMetricStatus.md) | | [optional] **pods** | [**V2PodsMetricStatus**](V2PodsMetricStatus.md) | | [optional] **resource** | [**V2ResourceMetricStatus**](V2ResourceMetricStatus.md) | | [optional] -**type** | **String** | 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 | +**type** | **String** | 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. | diff --git a/kubernetes/docs/VersionApi.md b/kubernetes/docs/VersionApi.md index c2930deef1..5c68a16ac9 100644 --- a/kubernetes/docs/VersionApi.md +++ b/kubernetes/docs/VersionApi.md @@ -13,7 +13,7 @@ Method | HTTP request | Description -get the code version +get the version information for this server ### Example ```java diff --git a/kubernetes/docs/VersionInfo.md b/kubernetes/docs/VersionInfo.md index e4401fa97b..28cc52c019 100644 --- a/kubernetes/docs/VersionInfo.md +++ b/kubernetes/docs/VersionInfo.md @@ -9,12 +9,16 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **buildDate** | **String** | | **compiler** | **String** | | +**emulationMajor** | **String** | EmulationMajor is the major version of the emulation version | [optional] +**emulationMinor** | **String** | EmulationMinor is the minor version of the emulation version | [optional] **gitCommit** | **String** | | **gitTreeState** | **String** | | **gitVersion** | **String** | | **goVersion** | **String** | | -**major** | **String** | | -**minor** | **String** | | +**major** | **String** | Major is the major version of the binary version | +**minCompatibilityMajor** | **String** | MinCompatibilityMajor is the major version of the minimum compatibility version | [optional] +**minCompatibilityMinor** | **String** | MinCompatibilityMinor is the minor version of the minimum compatibility version | [optional] +**minor** | **String** | Minor is the minor version of the binary version | **platform** | **String** | | diff --git a/kubernetes/pom.xml b/kubernetes/pom.xml index 94df7bed84..a0485b5720 100644 --- a/kubernetes/pom.xml +++ b/kubernetes/pom.xml @@ -10,7 +10,7 @@ io.kubernetes client-java-parent - 20.0.0-SNAPSHOT + 24.0.1-legacy-SNAPSHOT ../pom.xml @@ -180,6 +180,14 @@ jakarta.ws.rs jakarta.ws.rs-api + + com.fasterxml.jackson.core + jackson-databind + + + com.fasterxml.jackson.core + jackson-core + diff --git a/kubernetes/src/main/java/io/kubernetes/client/custom/MapUtils.java b/kubernetes/src/main/java/io/kubernetes/client/custom/MapUtils.java new file mode 100644 index 0000000000..fc6a0a919c --- /dev/null +++ b/kubernetes/src/main/java/io/kubernetes/client/custom/MapUtils.java @@ -0,0 +1,35 @@ +/* +Copyright 2024 The Kubernetes Authors. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at +http://www.apache.org/licenses/LICENSE-2.0 +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ +package io.kubernetes.client.custom; + +import java.util.Arrays; +import java.util.Map; + +public class MapUtils { + public static boolean equals(Map map1, Map map2) { + if (map1 == map2) { + return true; // Both pointing to the same instance + } + if (map1 == null || map2 == null || map1.size() != map2.size()) { + return false; // One is null or their sizes are different + } + for (String key : map1.keySet()) { + if (!map2.containsKey(key) || !Arrays.equals(map1.get(key), map2.get(key))) { + // Key doesn't exist in map2 or the byte arrays are not equal + return false; + } + } + // All keys matched and their corresponding byte arrays are equal + return true; + } +} diff --git a/kubernetes/src/main/java/io/kubernetes/client/gson/V1MetadataExclusionStrategy.java b/kubernetes/src/main/java/io/kubernetes/client/gson/V1MetadataExclusionStrategy.java new file mode 100644 index 0000000000..d6679fb164 --- /dev/null +++ b/kubernetes/src/main/java/io/kubernetes/client/gson/V1MetadataExclusionStrategy.java @@ -0,0 +1,28 @@ +/* +Copyright 2024 The Kubernetes Authors. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at +http://www.apache.org/licenses/LICENSE-2.0 +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ +package io.kubernetes.client.gson; + +import com.google.gson.ExclusionStrategy; +import com.google.gson.FieldAttributes; +import io.kubernetes.client.openapi.models.V1ObjectMeta; + +public class V1MetadataExclusionStrategy implements com.google.gson.ExclusionStrategy { + public boolean shouldSkipField(FieldAttributes f) { + // Don't serialize the 'managedFields' field. + return (f.getDeclaringClass().equals(V1ObjectMeta.class) && f.getName().equalsIgnoreCase("managedFields")); + } + + public boolean shouldSkipClass(Class clazz) { + return false; + } +} 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 00e8d96140..9a272967b2 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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 130cc2499d..1352bd57f4 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -108,7 +108,7 @@ private void init() { json = new JSON(); // Set default User-Agent. - setUserAgent("Kubernetes Java Client/20.0.0-SNAPSHOT"); + setUserAgent("Kubernetes Java Client/24.0.0-legacy-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 25846be158..1a954a10bb 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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.Map; import java.util.List; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") public class ApiException extends Exception { private int code = 0; private Map> responseHeaders = null; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/ApiResponse.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/ApiResponse.java index 18ff659d51..05bb41420b 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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 77bb757f6e..7b7c09becc 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") public class Configuration { private static ApiClient defaultApiClient = new ApiClient(); diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/GzipRequestInterceptor.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/GzipRequestInterceptor.java index 15316217cd..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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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 5a9feaa43e..ed34c65973 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 2021 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -14,20 +14,27 @@ import com.google.gson.Gson; import com.google.gson.GsonBuilder; -import com.google.gson.JsonElement; import com.google.gson.JsonParseException; import com.google.gson.TypeAdapter; +import com.google.gson.internal.bind.util.ISO8601Utils; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; +import com.google.gson.JsonElement; 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 io.kubernetes.client.openapi.models.*; +import okio.ByteString; + import java.io.IOException; import java.io.StringReader; import java.lang.reflect.Type; import java.text.DateFormat; import java.text.ParseException; -import java.time.Instant; +import java.text.ParsePosition; import java.time.LocalDate; import java.time.OffsetDateTime; import java.time.format.DateTimeFormatter; @@ -35,81 +42,71 @@ import java.time.format.DateTimeParseException; import java.time.temporal.ChronoField; import java.util.Date; +import java.util.Locale; import java.util.Map; -import okio.ByteString; +import java.util.HashMap; public class JSON { - private Gson gson; - private 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() - .appendOffsetId() - .toFormatter(); + 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 DateTypeAdapter dateTypeAdapter = new DateTypeAdapter(); - private SqlDateTypeAdapter sqlDateTypeAdapter = new SqlDateTypeAdapter(); - - private OffsetDateTimeTypeAdapter offsetDateTimeTypeAdapter = - new OffsetDateTimeTypeAdapter(RFC3339MICRO_FORMATTER); - + private OffsetDateTimeTypeAdapter offsetDateTimeTypeAdapter = new OffsetDateTimeTypeAdapter(RFC3339MICRO_FORMATTER); private LocalDateTypeAdapter localDateTypeAdapter = new LocalDateTypeAdapter(); - private ByteArrayAdapter byteArrayAdapter = new ByteArrayAdapter(); public static GsonBuilder createGson() { - GsonFireBuilder fireBuilder = new GsonFireBuilder(); + GsonFireBuilder fireBuilder = new GsonFireBuilder() + ; GsonBuilder builder = fireBuilder .registerPreProcessor(V1Status.class, new V1StatusPreProcessor()) .createGsonBuilder(); - return builder; + return builder.setExclusionStrategies(new V1MetadataExclusionStrategy()); } private static String getDiscriminatorValue(JsonElement readElement, String discriminatorField) { JsonElement element = readElement.getAsJsonObject().get(discriminatorField); if (null == element) { - throw new IllegalArgumentException( - "missing discriminator field: <" + discriminatorField + ">"); + throw new IllegalArgumentException("missing discriminator field: <" + discriminatorField + ">"); } return element.getAsString(); } /** - * Returns the Java class that implements the OpenAPI schema for the specified discriminator - * value. + * Returns the Java class that implements the OpenAPI schema for the specified discriminator value. * * @param classByDiscriminatorValue The map of discriminator values to Java classes. * @param discriminatorValue The value of the OpenAPI discriminator in the input data. * @return The Java class that implements the OpenAPI schema */ - private static Class getClassByDiscriminator( - Map classByDiscriminatorValue, String discriminatorValue) { + private static Class getClassByDiscriminator(Map classByDiscriminatorValue, String discriminatorValue) { Class clazz = (Class) classByDiscriminatorValue.get(discriminatorValue); if (null == clazz) { - throw new IllegalArgumentException( - "cannot determine model class of name: <" + discriminatorValue + ">"); + throw new IllegalArgumentException("cannot determine model class of name: <" + discriminatorValue + ">"); } return clazz; } public JSON() { - gson = - createGson() - .registerTypeAdapter(Date.class, dateTypeAdapter) - .registerTypeAdapter(java.sql.Date.class, sqlDateTypeAdapter) - .registerTypeAdapter(OffsetDateTime.class, offsetDateTimeTypeAdapter) - .registerTypeAdapter(LocalDate.class, localDateTypeAdapter) - .registerTypeAdapter(byte[].class, byteArrayAdapter) - .create(); + gson = createGson() + .registerTypeAdapter(Date.class, dateTypeAdapter) + .registerTypeAdapter(java.sql.Date.class, sqlDateTypeAdapter) + .registerTypeAdapter(OffsetDateTime.class, offsetDateTimeTypeAdapter) + .registerTypeAdapter(LocalDate.class, localDateTypeAdapter) + .registerTypeAdapter(byte[].class, byteArrayAdapter) + .create(); } /** @@ -150,8 +147,8 @@ public String serialize(Object obj) { /** * Deserialize the given JSON string to Java object. * - * @param Type - * @param body The JSON string + * @param Type + * @param body The JSON string * @param returnType The type to deserialize into * @return The deserialized Java object */ @@ -160,8 +157,7 @@ public T deserialize(String body, Type returnType) { try { if (isLenientOnJson) { JsonReader jsonReader = new JsonReader(new StringReader(body)); - // see - // https://google-gson.googlecode.com/svn/trunk/gson/docs/javadocs/com/google/gson/stream/JsonReader.html#setLenient(boolean) + // see https://google-gson.googlecode.com/svn/trunk/gson/docs/javadocs/com/google/gson/stream/JsonReader.html#setLenient(boolean) jsonReader.setLenient(true); return gson.fromJson(jsonReader, returnType); } else { @@ -178,7 +174,9 @@ public T deserialize(String body, Type returnType) { } } - /** Gson TypeAdapter for Byte Array type */ + /** + * Gson TypeAdapter for Byte Array type + */ public class ByteArrayAdapter extends TypeAdapter { @Override @@ -207,7 +205,9 @@ public byte[] read(JsonReader in) throws IOException { } } - /** Gson TypeAdapter for JSR310 OffsetDateTime type */ + /** + * Gson TypeAdapter for JSR310 OffsetDateTime type + */ public static class OffsetDateTimeTypeAdapter extends TypeAdapter { private DateTimeFormatter formatter; @@ -242,7 +242,7 @@ public OffsetDateTime read(JsonReader in) throws IOException { default: String date = in.nextString(); if (date.endsWith("+0000")) { - date = date.substring(0, date.length() - 5) + "Z"; + date = date.substring(0, date.length()-5) + "Z"; } try { return OffsetDateTime.parse(date, formatter); @@ -254,7 +254,9 @@ public OffsetDateTime read(JsonReader in) throws IOException { } } - /** Gson TypeAdapter for JSR310 LocalDate type */ + /** + * Gson TypeAdapter for JSR310 LocalDate type + */ public class LocalDateTypeAdapter extends TypeAdapter { private DateTimeFormatter formatter; @@ -304,8 +306,9 @@ public JSON setLocalDateFormat(DateTimeFormatter dateFormat) { } /** - * Gson TypeAdapter for java.sql.Date type If the dateFormat is null, a simple "yyyy-MM-dd" format - * will be used (more efficient than SimpleDateFormat). + * Gson TypeAdapter for java.sql.Date type + * If the dateFormat is null, a simple "yyyy-MM-dd" format will be used + * (more efficient than SimpleDateFormat). */ public static class SqlDateTypeAdapter extends TypeAdapter { @@ -348,8 +351,7 @@ public java.sql.Date read(JsonReader in) throws IOException { if (dateFormat != null) { return new java.sql.Date(dateFormat.parse(date).getTime()); } - return new java.sql.Date( - Instant.from(DateTimeFormatter.ISO_INSTANT.parse(date)).toEpochMilli()); + return new java.sql.Date(ISO8601Utils.parse(date, new ParsePosition(0)).getTime()); } catch (ParseException e) { throw new JsonParseException(e); } @@ -358,7 +360,8 @@ public java.sql.Date read(JsonReader in) throws IOException { } /** - * Gson TypeAdapter for java.util.Date type If the dateFormat is null, ISO8601Utils will be used. + * Gson TypeAdapter for java.util.Date type + * If the dateFormat is null, ISO8601Utils will be used. */ public static class DateTypeAdapter extends TypeAdapter { @@ -383,7 +386,7 @@ public void write(JsonWriter out, Date date) throws IOException { if (dateFormat != null) { value = dateFormat.format(date); } else { - value = DateTimeFormatter.ISO_INSTANT.format(date.toInstant()); + value = ISO8601Utils.format(date, true); } out.value(value); } @@ -402,7 +405,7 @@ public Date read(JsonReader in) throws IOException { if (dateFormat != null) { return dateFormat.parse(date); } - return Date.from(Instant.from(DateTimeFormatter.ISO_INSTANT.parse(date))); + return ISO8601Utils.parse(date, new ParsePosition(0)); } catch (ParseException e) { throw new JsonParseException(e); } @@ -422,4 +425,5 @@ public JSON setSqlDateFormat(DateFormat dateFormat) { sqlDateTypeAdapter.setFormat(dateFormat); return this; } + } 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 d3367162d6..940a26f61e 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") public class Pair { private String name = ""; private String value = ""; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/ProgressRequestBody.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/ProgressRequestBody.java index cb827d7c30..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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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 5fa0eb3701..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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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 7ae6af31e5..2153da16ae 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/ServerVariable.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/ServerVariable.java index a6b97ae040..f9720e1378 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/StringUtil.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/StringUtil.java index 8b7039fdb7..a861c40c99 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") public class StringUtil { /** * Check if the given array contains the given value (with case-insensitive comparison). diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/AdmissionregistrationApi.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/AdmissionregistrationApi.java index 50190aef3c..0fd721acc0 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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 84a92a7fcf..ea8dda554e 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -32,6 +32,10 @@ import io.kubernetes.client.openapi.models.V1MutatingWebhookConfigurationList; import io.kubernetes.client.custom.V1Patch; import io.kubernetes.client.openapi.models.V1Status; +import io.kubernetes.client.openapi.models.V1ValidatingAdmissionPolicy; +import io.kubernetes.client.openapi.models.V1ValidatingAdmissionPolicyBinding; +import io.kubernetes.client.openapi.models.V1ValidatingAdmissionPolicyBindingList; +import io.kubernetes.client.openapi.models.V1ValidatingAdmissionPolicyList; import io.kubernetes.client.openapi.models.V1ValidatingWebhookConfiguration; import io.kubernetes.client.openapi.models.V1ValidatingWebhookConfigurationList; @@ -63,7 +67,7 @@ public void setApiClient(ApiClient apiClient) { /** * Build call for createMutatingWebhookConfiguration * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -107,7 +111,7 @@ public okhttp3.Call createMutatingWebhookConfigurationCall(V1MutatingWebhookConf Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -142,7 +146,7 @@ private okhttp3.Call createMutatingWebhookConfigurationValidateBeforeCall(V1Muta * * create a MutatingWebhookConfiguration * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -166,7 +170,7 @@ public V1MutatingWebhookConfiguration createMutatingWebhookConfiguration(V1Mutat * * create a MutatingWebhookConfiguration * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -191,7 +195,7 @@ public ApiResponse createMutatingWebhookConfigur * (asynchronously) * create a MutatingWebhookConfiguration * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -215,9 +219,9 @@ public okhttp3.Call createMutatingWebhookConfigurationAsync(V1MutatingWebhookCon return localVarCall; } /** - * Build call for createValidatingWebhookConfiguration + * Build call for createValidatingAdmissionPolicy * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -233,11 +237,11 @@ public okhttp3.Call createMutatingWebhookConfigurationAsync(V1MutatingWebhookCon 401 Unauthorized - */ - public okhttp3.Call createValidatingWebhookConfigurationCall(V1ValidatingWebhookConfiguration body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + public okhttp3.Call createValidatingAdmissionPolicyCall(V1ValidatingAdmissionPolicy body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; // create path and map variables - String localVarPath = "/apis/admissionregistration.k8s.io/v1/validatingwebhookconfigurations"; + String localVarPath = "/apis/admissionregistration.k8s.io/v1/validatingadmissionpolicies"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -261,7 +265,7 @@ public okhttp3.Call createValidatingWebhookConfigurationCall(V1ValidatingWebhook Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -279,28 +283,28 @@ public okhttp3.Call createValidatingWebhookConfigurationCall(V1ValidatingWebhook } @SuppressWarnings("rawtypes") - private okhttp3.Call createValidatingWebhookConfigurationValidateBeforeCall(V1ValidatingWebhookConfiguration body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call createValidatingAdmissionPolicyValidateBeforeCall(V1ValidatingAdmissionPolicy body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { // verify the required parameter 'body' is set if (body == null) { - throw new ApiException("Missing the required parameter 'body' when calling createValidatingWebhookConfiguration(Async)"); + throw new ApiException("Missing the required parameter 'body' when calling createValidatingAdmissionPolicy(Async)"); } - okhttp3.Call localVarCall = createValidatingWebhookConfigurationCall(body, pretty, dryRun, fieldManager, fieldValidation, _callback); + okhttp3.Call localVarCall = createValidatingAdmissionPolicyCall(body, pretty, dryRun, fieldManager, fieldValidation, _callback); return localVarCall; } /** * - * create a ValidatingWebhookConfiguration + * create a ValidatingAdmissionPolicy * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - * @return V1ValidatingWebhookConfiguration + * @return V1ValidatingAdmissionPolicy * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -311,20 +315,20 @@ private okhttp3.Call createValidatingWebhookConfigurationValidateBeforeCall(V1Va
401 Unauthorized -
*/ - public V1ValidatingWebhookConfiguration createValidatingWebhookConfiguration(V1ValidatingWebhookConfiguration body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { - ApiResponse localVarResp = createValidatingWebhookConfigurationWithHttpInfo(body, pretty, dryRun, fieldManager, fieldValidation); + public V1ValidatingAdmissionPolicy createValidatingAdmissionPolicy(V1ValidatingAdmissionPolicy body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { + ApiResponse localVarResp = createValidatingAdmissionPolicyWithHttpInfo(body, pretty, dryRun, fieldManager, fieldValidation); return localVarResp.getData(); } /** * - * create a ValidatingWebhookConfiguration + * create a ValidatingAdmissionPolicy * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - * @return ApiResponse<V1ValidatingWebhookConfiguration> + * @return ApiResponse<V1ValidatingAdmissionPolicy> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -335,17 +339,17 @@ public V1ValidatingWebhookConfiguration createValidatingWebhookConfiguration(V1V
401 Unauthorized -
*/ - public ApiResponse createValidatingWebhookConfigurationWithHttpInfo(V1ValidatingWebhookConfiguration body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { - okhttp3.Call localVarCall = createValidatingWebhookConfigurationValidateBeforeCall(body, pretty, dryRun, fieldManager, fieldValidation, null); - Type localVarReturnType = new TypeToken(){}.getType(); + public ApiResponse createValidatingAdmissionPolicyWithHttpInfo(V1ValidatingAdmissionPolicy body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { + okhttp3.Call localVarCall = createValidatingAdmissionPolicyValidateBeforeCall(body, pretty, dryRun, fieldManager, fieldValidation, null); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * (asynchronously) - * create a ValidatingWebhookConfiguration + * create a ValidatingAdmissionPolicy * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -361,29 +365,20 @@ public ApiResponse createValidatingWebhookConf 401 Unauthorized - */ - public okhttp3.Call createValidatingWebhookConfigurationAsync(V1ValidatingWebhookConfiguration body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + public okhttp3.Call createValidatingAdmissionPolicyAsync(V1ValidatingAdmissionPolicy body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = createValidatingWebhookConfigurationValidateBeforeCall(body, pretty, dryRun, fieldManager, fieldValidation, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + okhttp3.Call localVarCall = createValidatingAdmissionPolicyValidateBeforeCall(body, pretty, dryRun, fieldManager, fieldValidation, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** - * Build call for deleteCollectionMutatingWebhookConfiguration - * @param pretty If 'true', then the output is pretty printed. (optional) - * @param _continue 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) + * Build call for createValidatingAdmissionPolicyBinding + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) - * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) - * @param gracePeriodSeconds 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. (optional) - * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) - * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) - * @param orphanDependents 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) - * @param propagationPolicy 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. (optional) - * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) - * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) - * @param body (optional) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -391,14 +386,16 @@ public okhttp3.Call createValidatingWebhookConfigurationAsync(V1ValidatingWebhoo + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
*/ - public okhttp3.Call deleteCollectionMutatingWebhookConfigurationCall(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + public okhttp3.Call createValidatingAdmissionPolicyBindingCall(V1ValidatingAdmissionPolicyBinding body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; // create path and map variables - String localVarPath = "/apis/admissionregistration.k8s.io/v1/mutatingwebhookconfigurations"; + String localVarPath = "/apis/admissionregistration.k8s.io/v1/validatingadmissionpolicybindings"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -406,59 +403,23 @@ public okhttp3.Call deleteCollectionMutatingWebhookConfigurationCall(String pret localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } - if (_continue != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); - } - if (dryRun != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); } - if (fieldSelector != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); - } - - if (gracePeriodSeconds != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); - } - - if (labelSelector != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); - } - - if (limit != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); - } - - if (orphanDependents != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("orphanDependents", orphanDependents)); - } - - if (propagationPolicy != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("propagationPolicy", propagationPolicy)); - } - - if (resourceVersion != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); - } - - if (resourceVersionMatch != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersionMatch", resourceVersionMatch)); - } - - if (sendInitialEvents != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("sendInitialEvents", sendInitialEvents)); + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); } - if (timeoutSeconds != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); + if (fieldValidation != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); } Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -472,98 +433,80 @@ public okhttp3.Call deleteCollectionMutatingWebhookConfigurationCall(String pret localVarHeaderParams.put("Content-Type", localVarContentType); String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteCollectionMutatingWebhookConfigurationValidateBeforeCall(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call createValidatingAdmissionPolicyBindingValidateBeforeCall(V1ValidatingAdmissionPolicyBinding body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'body' is set + if (body == null) { + throw new ApiException("Missing the required parameter 'body' when calling createValidatingAdmissionPolicyBinding(Async)"); + } - okhttp3.Call localVarCall = deleteCollectionMutatingWebhookConfigurationCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + okhttp3.Call localVarCall = createValidatingAdmissionPolicyBindingCall(body, pretty, dryRun, fieldManager, fieldValidation, _callback); return localVarCall; } /** * - * delete collection of MutatingWebhookConfiguration - * @param pretty If 'true', then the output is pretty printed. (optional) - * @param _continue 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) + * create a ValidatingAdmissionPolicyBinding + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) - * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) - * @param gracePeriodSeconds 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. (optional) - * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) - * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) - * @param orphanDependents 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) - * @param propagationPolicy 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. (optional) - * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) - * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) - * @param body (optional) - * @return V1Status + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @return V1ValidatingAdmissionPolicyBinding * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
*/ - public V1Status deleteCollectionMutatingWebhookConfiguration(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body) throws ApiException { - ApiResponse localVarResp = deleteCollectionMutatingWebhookConfigurationWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); + public V1ValidatingAdmissionPolicyBinding createValidatingAdmissionPolicyBinding(V1ValidatingAdmissionPolicyBinding body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { + ApiResponse localVarResp = createValidatingAdmissionPolicyBindingWithHttpInfo(body, pretty, dryRun, fieldManager, fieldValidation); return localVarResp.getData(); } /** * - * delete collection of MutatingWebhookConfiguration - * @param pretty If 'true', then the output is pretty printed. (optional) - * @param _continue 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) + * create a ValidatingAdmissionPolicyBinding + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) - * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) - * @param gracePeriodSeconds 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. (optional) - * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) - * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) - * @param orphanDependents 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) - * @param propagationPolicy 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. (optional) - * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) - * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) - * @param body (optional) - * @return ApiResponse<V1Status> + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @return ApiResponse<V1ValidatingAdmissionPolicyBinding> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
*/ - public ApiResponse deleteCollectionMutatingWebhookConfigurationWithHttpInfo(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body) throws ApiException { - okhttp3.Call localVarCall = deleteCollectionMutatingWebhookConfigurationValidateBeforeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, null); - Type localVarReturnType = new TypeToken(){}.getType(); + public ApiResponse createValidatingAdmissionPolicyBindingWithHttpInfo(V1ValidatingAdmissionPolicyBinding body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { + okhttp3.Call localVarCall = createValidatingAdmissionPolicyBindingValidateBeforeCall(body, pretty, dryRun, fieldManager, fieldValidation, null); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * (asynchronously) - * delete collection of MutatingWebhookConfiguration - * @param pretty If 'true', then the output is pretty printed. (optional) - * @param _continue 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) + * create a ValidatingAdmissionPolicyBinding + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) - * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) - * @param gracePeriodSeconds 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. (optional) - * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) - * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) - * @param orphanDependents 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) - * @param propagationPolicy 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. (optional) - * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) - * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) - * @param body (optional) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object @@ -571,32 +514,25 @@ public ApiResponse deleteCollectionMutatingWebhookConfigurationWithHtt + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
*/ - public okhttp3.Call deleteCollectionMutatingWebhookConfigurationAsync(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + public okhttp3.Call createValidatingAdmissionPolicyBindingAsync(V1ValidatingAdmissionPolicyBinding body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = deleteCollectionMutatingWebhookConfigurationValidateBeforeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + okhttp3.Call localVarCall = createValidatingAdmissionPolicyBindingValidateBeforeCall(body, pretty, dryRun, fieldManager, fieldValidation, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** - * Build call for deleteCollectionValidatingWebhookConfiguration - * @param pretty If 'true', then the output is pretty printed. (optional) - * @param _continue 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) + * Build call for createValidatingWebhookConfiguration + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) - * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) - * @param gracePeriodSeconds 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. (optional) - * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) - * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) - * @param orphanDependents 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) - * @param propagationPolicy 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. (optional) - * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) - * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) - * @param body (optional) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -604,10 +540,12 @@ public okhttp3.Call deleteCollectionMutatingWebhookConfigurationAsync(String pre + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
*/ - public okhttp3.Call deleteCollectionValidatingWebhookConfigurationCall(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + public okhttp3.Call createValidatingWebhookConfigurationCall(V1ValidatingWebhookConfiguration body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; // create path and map variables @@ -619,59 +557,23 @@ public okhttp3.Call deleteCollectionValidatingWebhookConfigurationCall(String pr localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } - if (_continue != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); - } - if (dryRun != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); } - if (fieldSelector != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); - } - - if (gracePeriodSeconds != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); - } - - if (labelSelector != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); - } - - if (limit != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); - } - - if (orphanDependents != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("orphanDependents", orphanDependents)); - } - - if (propagationPolicy != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("propagationPolicy", propagationPolicy)); - } - - if (resourceVersion != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); - } - - if (resourceVersionMatch != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersionMatch", resourceVersionMatch)); - } - - if (sendInitialEvents != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("sendInitialEvents", sendInitialEvents)); + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); } - if (timeoutSeconds != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); + if (fieldValidation != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); } Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -685,98 +587,80 @@ public okhttp3.Call deleteCollectionValidatingWebhookConfigurationCall(String pr localVarHeaderParams.put("Content-Type", localVarContentType); String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteCollectionValidatingWebhookConfigurationValidateBeforeCall(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call createValidatingWebhookConfigurationValidateBeforeCall(V1ValidatingWebhookConfiguration body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'body' is set + if (body == null) { + throw new ApiException("Missing the required parameter 'body' when calling createValidatingWebhookConfiguration(Async)"); + } - okhttp3.Call localVarCall = deleteCollectionValidatingWebhookConfigurationCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + okhttp3.Call localVarCall = createValidatingWebhookConfigurationCall(body, pretty, dryRun, fieldManager, fieldValidation, _callback); return localVarCall; } /** * - * delete collection of ValidatingWebhookConfiguration - * @param pretty If 'true', then the output is pretty printed. (optional) - * @param _continue 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) + * create a ValidatingWebhookConfiguration + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) - * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) - * @param gracePeriodSeconds 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. (optional) - * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) - * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) - * @param orphanDependents 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) - * @param propagationPolicy 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. (optional) - * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) - * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) - * @param body (optional) - * @return V1Status + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @return V1ValidatingWebhookConfiguration * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
*/ - public V1Status deleteCollectionValidatingWebhookConfiguration(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body) throws ApiException { - ApiResponse localVarResp = deleteCollectionValidatingWebhookConfigurationWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); + public V1ValidatingWebhookConfiguration createValidatingWebhookConfiguration(V1ValidatingWebhookConfiguration body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { + ApiResponse localVarResp = createValidatingWebhookConfigurationWithHttpInfo(body, pretty, dryRun, fieldManager, fieldValidation); return localVarResp.getData(); } /** * - * delete collection of ValidatingWebhookConfiguration - * @param pretty If 'true', then the output is pretty printed. (optional) - * @param _continue 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) + * create a ValidatingWebhookConfiguration + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) - * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) - * @param gracePeriodSeconds 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. (optional) - * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) - * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) - * @param orphanDependents 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) - * @param propagationPolicy 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. (optional) - * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) - * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) - * @param body (optional) - * @return ApiResponse<V1Status> + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @return ApiResponse<V1ValidatingWebhookConfiguration> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
*/ - public ApiResponse deleteCollectionValidatingWebhookConfigurationWithHttpInfo(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body) throws ApiException { - okhttp3.Call localVarCall = deleteCollectionValidatingWebhookConfigurationValidateBeforeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, null); - Type localVarReturnType = new TypeToken(){}.getType(); + public ApiResponse createValidatingWebhookConfigurationWithHttpInfo(V1ValidatingWebhookConfiguration body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { + okhttp3.Call localVarCall = createValidatingWebhookConfigurationValidateBeforeCall(body, pretty, dryRun, fieldManager, fieldValidation, null); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * (asynchronously) - * delete collection of ValidatingWebhookConfiguration - * @param pretty If 'true', then the output is pretty printed. (optional) - * @param _continue 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) + * create a ValidatingWebhookConfiguration + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) - * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) - * @param gracePeriodSeconds 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. (optional) - * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) - * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) - * @param orphanDependents 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) - * @param propagationPolicy 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. (optional) - * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) - * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) - * @param body (optional) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object @@ -784,24 +668,34 @@ public ApiResponse deleteCollectionValidatingWebhookConfigurationWithH + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
*/ - public okhttp3.Call deleteCollectionValidatingWebhookConfigurationAsync(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + public okhttp3.Call createValidatingWebhookConfigurationAsync(V1ValidatingWebhookConfiguration body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = deleteCollectionValidatingWebhookConfigurationValidateBeforeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + okhttp3.Call localVarCall = createValidatingWebhookConfigurationValidateBeforeCall(body, pretty, dryRun, fieldManager, fieldValidation, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** - * Build call for deleteMutatingWebhookConfiguration - * @param name name of the MutatingWebhookConfiguration (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * Build call for deleteCollectionMutatingWebhookConfiguration + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param _continue 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) * @param dryRun 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) + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @param orphanDependents 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) * @param propagationPolicy 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. (optional) + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param body (optional) * @param _callback Callback for upload/download progress * @return Call to execute @@ -810,16 +704,14 @@ public okhttp3.Call deleteCollectionValidatingWebhookConfigurationAsync(String p -
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ - public okhttp3.Call deleteMutatingWebhookConfigurationCall(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + public okhttp3.Call deleteCollectionMutatingWebhookConfigurationCall(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; // create path and map variables - String localVarPath = "/apis/admissionregistration.k8s.io/v1/mutatingwebhookconfigurations/{name}" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); + String localVarPath = "/apis/admissionregistration.k8s.io/v1/mutatingwebhookconfigurations"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -827,14 +719,34 @@ public okhttp3.Call deleteMutatingWebhookConfigurationCall(String name, String p localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } + if (_continue != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); + } + if (dryRun != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); } + if (fieldSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); + } + if (gracePeriodSeconds != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); } + if (ignoreStoreReadErrorWithClusterBreakingPotential != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("ignoreStoreReadErrorWithClusterBreakingPotential", ignoreStoreReadErrorWithClusterBreakingPotential)); + } + + if (labelSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); + } + + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + } + if (orphanDependents != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("orphanDependents", orphanDependents)); } @@ -843,11 +755,27 @@ public okhttp3.Call deleteMutatingWebhookConfigurationCall(String name, String p localVarQueryParams.addAll(localVarApiClient.parameterToPair("propagationPolicy", propagationPolicy)); } + if (resourceVersion != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); + } + + if (resourceVersionMatch != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersionMatch", resourceVersionMatch)); + } + + if (sendInitialEvents != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("sendInitialEvents", sendInitialEvents)); + } + + if (timeoutSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); + } + Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -865,28 +793,31 @@ public okhttp3.Call deleteMutatingWebhookConfigurationCall(String name, String p } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteMutatingWebhookConfigurationValidateBeforeCall(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - - // verify the required parameter 'name' is set - if (name == null) { - throw new ApiException("Missing the required parameter 'name' when calling deleteMutatingWebhookConfiguration(Async)"); - } + private okhttp3.Call deleteCollectionMutatingWebhookConfigurationValidateBeforeCall(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = deleteMutatingWebhookConfigurationCall(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); + okhttp3.Call localVarCall = deleteCollectionMutatingWebhookConfigurationCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); return localVarCall; } /** * - * delete a MutatingWebhookConfiguration - * @param name name of the MutatingWebhookConfiguration (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * delete collection of MutatingWebhookConfiguration + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param _continue 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) * @param dryRun 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) + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @param orphanDependents 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) * @param propagationPolicy 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. (optional) + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param body (optional) * @return V1Status * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body @@ -894,24 +825,31 @@ private okhttp3.Call deleteMutatingWebhookConfigurationValidateBeforeCall(String -
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ - public V1Status deleteMutatingWebhookConfiguration(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { - ApiResponse localVarResp = deleteMutatingWebhookConfigurationWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body); + public V1Status deleteCollectionMutatingWebhookConfiguration(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body) throws ApiException { + ApiResponse localVarResp = deleteCollectionMutatingWebhookConfigurationWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); return localVarResp.getData(); } /** * - * delete a MutatingWebhookConfiguration - * @param name name of the MutatingWebhookConfiguration (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * delete collection of MutatingWebhookConfiguration + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param _continue 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) * @param dryRun 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) + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @param orphanDependents 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) * @param propagationPolicy 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. (optional) + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param body (optional) * @return ApiResponse<V1Status> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body @@ -919,25 +857,32 @@ public V1Status deleteMutatingWebhookConfiguration(String name, String pretty, S -
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ - public ApiResponse deleteMutatingWebhookConfigurationWithHttpInfo(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { - okhttp3.Call localVarCall = deleteMutatingWebhookConfigurationValidateBeforeCall(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, null); + public ApiResponse deleteCollectionMutatingWebhookConfigurationWithHttpInfo(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteCollectionMutatingWebhookConfigurationValidateBeforeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * (asynchronously) - * delete a MutatingWebhookConfiguration - * @param name name of the MutatingWebhookConfiguration (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * delete collection of MutatingWebhookConfiguration + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param _continue 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) * @param dryRun 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) + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @param orphanDependents 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) * @param propagationPolicy 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. (optional) + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param body (optional) * @param _callback The callback to be executed when the API call finishes * @return The request call @@ -946,25 +891,32 @@ public ApiResponse deleteMutatingWebhookConfigurationWithHttpInfo(Stri -
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ - public okhttp3.Call deleteMutatingWebhookConfigurationAsync(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + public okhttp3.Call deleteCollectionMutatingWebhookConfigurationAsync(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = deleteMutatingWebhookConfigurationValidateBeforeCall(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); + okhttp3.Call localVarCall = deleteCollectionMutatingWebhookConfigurationValidateBeforeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** - * Build call for deleteValidatingWebhookConfiguration - * @param name name of the ValidatingWebhookConfiguration (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * Build call for deleteCollectionValidatingAdmissionPolicy + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param _continue 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) * @param dryRun 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) + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @param orphanDependents 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) * @param propagationPolicy 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. (optional) + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param body (optional) * @param _callback Callback for upload/download progress * @return Call to execute @@ -973,16 +925,14 @@ public okhttp3.Call deleteMutatingWebhookConfigurationAsync(String name, String -
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ - public okhttp3.Call deleteValidatingWebhookConfigurationCall(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + public okhttp3.Call deleteCollectionValidatingAdmissionPolicyCall(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; // create path and map variables - String localVarPath = "/apis/admissionregistration.k8s.io/v1/validatingwebhookconfigurations/{name}" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); + String localVarPath = "/apis/admissionregistration.k8s.io/v1/validatingadmissionpolicies"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -990,14 +940,34 @@ public okhttp3.Call deleteValidatingWebhookConfigurationCall(String name, String localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } + if (_continue != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); + } + if (dryRun != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); } + if (fieldSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); + } + if (gracePeriodSeconds != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); } + if (ignoreStoreReadErrorWithClusterBreakingPotential != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("ignoreStoreReadErrorWithClusterBreakingPotential", ignoreStoreReadErrorWithClusterBreakingPotential)); + } + + if (labelSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); + } + + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + } + if (orphanDependents != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("orphanDependents", orphanDependents)); } @@ -1006,11 +976,27 @@ public okhttp3.Call deleteValidatingWebhookConfigurationCall(String name, String localVarQueryParams.addAll(localVarApiClient.parameterToPair("propagationPolicy", propagationPolicy)); } + if (resourceVersion != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); + } + + if (resourceVersionMatch != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersionMatch", resourceVersionMatch)); + } + + if (sendInitialEvents != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("sendInitialEvents", sendInitialEvents)); + } + + if (timeoutSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); + } + Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -1028,28 +1014,31 @@ public okhttp3.Call deleteValidatingWebhookConfigurationCall(String name, String } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteValidatingWebhookConfigurationValidateBeforeCall(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - - // verify the required parameter 'name' is set - if (name == null) { - throw new ApiException("Missing the required parameter 'name' when calling deleteValidatingWebhookConfiguration(Async)"); - } + private okhttp3.Call deleteCollectionValidatingAdmissionPolicyValidateBeforeCall(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = deleteValidatingWebhookConfigurationCall(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); + okhttp3.Call localVarCall = deleteCollectionValidatingAdmissionPolicyCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); return localVarCall; } /** * - * delete a ValidatingWebhookConfiguration - * @param name name of the ValidatingWebhookConfiguration (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * delete collection of ValidatingAdmissionPolicy + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param _continue 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) * @param dryRun 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) + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @param orphanDependents 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) * @param propagationPolicy 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. (optional) + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param body (optional) * @return V1Status * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body @@ -1057,24 +1046,31 @@ private okhttp3.Call deleteValidatingWebhookConfigurationValidateBeforeCall(Stri -
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ - public V1Status deleteValidatingWebhookConfiguration(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { - ApiResponse localVarResp = deleteValidatingWebhookConfigurationWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body); + public V1Status deleteCollectionValidatingAdmissionPolicy(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body) throws ApiException { + ApiResponse localVarResp = deleteCollectionValidatingAdmissionPolicyWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); return localVarResp.getData(); } /** * - * delete a ValidatingWebhookConfiguration - * @param name name of the ValidatingWebhookConfiguration (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * delete collection of ValidatingAdmissionPolicy + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param _continue 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) * @param dryRun 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) + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @param orphanDependents 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) * @param propagationPolicy 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. (optional) + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param body (optional) * @return ApiResponse<V1Status> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body @@ -1082,25 +1078,32 @@ public V1Status deleteValidatingWebhookConfiguration(String name, String pretty, -
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ - public ApiResponse deleteValidatingWebhookConfigurationWithHttpInfo(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { - okhttp3.Call localVarCall = deleteValidatingWebhookConfigurationValidateBeforeCall(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, null); + public ApiResponse deleteCollectionValidatingAdmissionPolicyWithHttpInfo(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteCollectionValidatingAdmissionPolicyValidateBeforeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * (asynchronously) - * delete a ValidatingWebhookConfiguration - * @param name name of the ValidatingWebhookConfiguration (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * delete collection of ValidatingAdmissionPolicy + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param _continue 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) * @param dryRun 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) + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @param orphanDependents 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) * @param propagationPolicy 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. (optional) + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param body (optional) * @param _callback The callback to be executed when the API call finishes * @return The request call @@ -1109,19 +1112,33 @@ public ApiResponse deleteValidatingWebhookConfigurationWithHttpInfo(St -
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ - public okhttp3.Call deleteValidatingWebhookConfigurationAsync(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + public okhttp3.Call deleteCollectionValidatingAdmissionPolicyAsync(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = deleteValidatingWebhookConfigurationValidateBeforeCall(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); + okhttp3.Call localVarCall = deleteCollectionValidatingAdmissionPolicyValidateBeforeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** - * Build call for getAPIResources + * Build call for deleteCollectionValidatingAdmissionPolicyBinding + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param _continue 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) + * @param dryRun 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) + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param orphanDependents 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) + * @param propagationPolicy 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. (optional) + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + * @param body (optional) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -1132,144 +1149,36 @@ public okhttp3.Call deleteValidatingWebhookConfigurationAsync(String name, Strin 401 Unauthorized - */ - public okhttp3.Call getAPIResourcesCall(final ApiCallback _callback) throws ApiException { - Object localVarPostBody = null; + public okhttp3.Call deleteCollectionValidatingAdmissionPolicyBindingCall(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + Object localVarPostBody = body; // create path and map variables - String localVarPath = "/apis/admissionregistration.k8s.io/v1/"; + String localVarPath = "/apis/admissionregistration.k8s.io/v1/validatingadmissionpolicybindings"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } - final String[] localVarContentTypes = { - - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); + if (_continue != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); + } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } - @SuppressWarnings("rawtypes") - private okhttp3.Call getAPIResourcesValidateBeforeCall(final ApiCallback _callback) throws ApiException { + if (fieldSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); + } - - okhttp3.Call localVarCall = getAPIResourcesCall(_callback); - return localVarCall; - - } - - /** - * - * get available resources - * @return V1APIResourceList - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Status Code Description Response Headers
200 OK -
401 Unauthorized -
- */ - public V1APIResourceList getAPIResources() throws ApiException { - ApiResponse localVarResp = getAPIResourcesWithHttpInfo(); - return localVarResp.getData(); - } - - /** - * - * get available resources - * @return ApiResponse<V1APIResourceList> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Status Code Description Response Headers
200 OK -
401 Unauthorized -
- */ - public ApiResponse getAPIResourcesWithHttpInfo() throws ApiException { - okhttp3.Call localVarCall = getAPIResourcesValidateBeforeCall(null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * (asynchronously) - * get available resources - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - - -
Status Code Description Response Headers
200 OK -
401 Unauthorized -
- */ - public okhttp3.Call getAPIResourcesAsync(final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = getAPIResourcesValidateBeforeCall(_callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - /** - * Build call for listMutatingWebhookConfiguration - * @param pretty If 'true', then the output is pretty printed. (optional) - * @param allowWatchBookmarks 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. (optional) - * @param _continue 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) - * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) - * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) - * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) - * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) - * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) - * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - -
Status Code Description Response Headers
200 OK -
401 Unauthorized -
- */ - public okhttp3.Call listMutatingWebhookConfigurationCall(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = "/apis/admissionregistration.k8s.io/v1/mutatingwebhookconfigurations"; - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); - } - - if (allowWatchBookmarks != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("allowWatchBookmarks", allowWatchBookmarks)); - } - - if (_continue != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); + if (gracePeriodSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); } - if (fieldSelector != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); + if (ignoreStoreReadErrorWithClusterBreakingPotential != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("ignoreStoreReadErrorWithClusterBreakingPotential", ignoreStoreReadErrorWithClusterBreakingPotential)); } if (labelSelector != null) { @@ -1280,6 +1189,14 @@ public okhttp3.Call listMutatingWebhookConfigurationCall(String pretty, Boolean localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); } + if (orphanDependents != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("orphanDependents", orphanDependents)); + } + + if (propagationPolicy != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("propagationPolicy", propagationPolicy)); + } + if (resourceVersion != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); } @@ -1296,15 +1213,11 @@ public okhttp3.Call listMutatingWebhookConfigurationCall(String pretty, Boolean localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); } - if (watch != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); - } - Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -1312,39 +1225,43 @@ public okhttp3.Call listMutatingWebhookConfigurationCall(String pretty, Boolean } final String[] localVarContentTypes = { - + "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") - private okhttp3.Call listMutatingWebhookConfigurationValidateBeforeCall(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionValidatingAdmissionPolicyBindingValidateBeforeCall(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = listMutatingWebhookConfigurationCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + okhttp3.Call localVarCall = deleteCollectionValidatingAdmissionPolicyBindingCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); return localVarCall; } /** * - * list or watch objects of kind MutatingWebhookConfiguration - * @param pretty If 'true', then the output is pretty printed. (optional) - * @param allowWatchBookmarks 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. (optional) + * delete collection of ValidatingAdmissionPolicyBinding + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param _continue 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) + * @param dryRun 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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param orphanDependents 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) + * @param propagationPolicy 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. (optional) * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) - * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @return V1MutatingWebhookConfigurationList + * @param body (optional) + * @return V1Status * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -1353,26 +1270,30 @@ private okhttp3.Call listMutatingWebhookConfigurationValidateBeforeCall(String p
401 Unauthorized -
*/ - public V1MutatingWebhookConfigurationList listMutatingWebhookConfiguration(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch) throws ApiException { - ApiResponse localVarResp = listMutatingWebhookConfigurationWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + public V1Status deleteCollectionValidatingAdmissionPolicyBinding(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body) throws ApiException { + ApiResponse localVarResp = deleteCollectionValidatingAdmissionPolicyBindingWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); return localVarResp.getData(); } /** * - * list or watch objects of kind MutatingWebhookConfiguration - * @param pretty If 'true', then the output is pretty printed. (optional) - * @param allowWatchBookmarks 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. (optional) + * delete collection of ValidatingAdmissionPolicyBinding + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param _continue 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) + * @param dryRun 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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param orphanDependents 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) + * @param propagationPolicy 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. (optional) * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) - * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @return ApiResponse<V1MutatingWebhookConfigurationList> + * @param body (optional) + * @return ApiResponse<V1Status> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -1381,26 +1302,30 @@ public V1MutatingWebhookConfigurationList listMutatingWebhookConfiguration(Strin
401 Unauthorized -
*/ - public ApiResponse listMutatingWebhookConfigurationWithHttpInfo(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch) throws ApiException { - okhttp3.Call localVarCall = listMutatingWebhookConfigurationValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, null); - Type localVarReturnType = new TypeToken(){}.getType(); + public ApiResponse deleteCollectionValidatingAdmissionPolicyBindingWithHttpInfo(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteCollectionValidatingAdmissionPolicyBindingValidateBeforeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, null); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * (asynchronously) - * list or watch objects of kind MutatingWebhookConfiguration - * @param pretty If 'true', then the output is pretty printed. (optional) - * @param allowWatchBookmarks 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. (optional) + * delete collection of ValidatingAdmissionPolicyBinding + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param _continue 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) + * @param dryRun 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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param orphanDependents 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) + * @param propagationPolicy 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. (optional) * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) - * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + * @param body (optional) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object @@ -1411,26 +1336,30 @@ public ApiResponse listMutatingWebhookConfig 401 Unauthorized - */ - public okhttp3.Call listMutatingWebhookConfigurationAsync(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + public okhttp3.Call deleteCollectionValidatingAdmissionPolicyBindingAsync(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = listMutatingWebhookConfigurationValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + okhttp3.Call localVarCall = deleteCollectionValidatingAdmissionPolicyBindingValidateBeforeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** - * Build call for listValidatingWebhookConfiguration - * @param pretty If 'true', then the output is pretty printed. (optional) - * @param allowWatchBookmarks 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. (optional) + * Build call for deleteCollectionValidatingWebhookConfiguration + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param _continue 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) + * @param dryRun 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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param orphanDependents 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) + * @param propagationPolicy 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. (optional) * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) - * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + * @param body (optional) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -1441,8 +1370,8 @@ public okhttp3.Call listMutatingWebhookConfigurationAsync(String pretty, Boolean 401 Unauthorized - */ - public okhttp3.Call listValidatingWebhookConfigurationCall(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { - Object localVarPostBody = null; + public okhttp3.Call deleteCollectionValidatingWebhookConfigurationCall(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + Object localVarPostBody = body; // create path and map variables String localVarPath = "/apis/admissionregistration.k8s.io/v1/validatingwebhookconfigurations"; @@ -1453,18 +1382,26 @@ public okhttp3.Call listValidatingWebhookConfigurationCall(String pretty, Boolea localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } - if (allowWatchBookmarks != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("allowWatchBookmarks", allowWatchBookmarks)); - } - if (_continue != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); } + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } + if (fieldSelector != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); } + if (gracePeriodSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); + } + + if (ignoreStoreReadErrorWithClusterBreakingPotential != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("ignoreStoreReadErrorWithClusterBreakingPotential", ignoreStoreReadErrorWithClusterBreakingPotential)); + } + if (labelSelector != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); } @@ -1473,6 +1410,14 @@ public okhttp3.Call listValidatingWebhookConfigurationCall(String pretty, Boolea localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); } + if (orphanDependents != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("orphanDependents", orphanDependents)); + } + + if (propagationPolicy != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("propagationPolicy", propagationPolicy)); + } + if (resourceVersion != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); } @@ -1489,15 +1434,11 @@ public okhttp3.Call listValidatingWebhookConfigurationCall(String pretty, Boolea localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); } - if (watch != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); - } - Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -1505,39 +1446,43 @@ public okhttp3.Call listValidatingWebhookConfigurationCall(String pretty, Boolea } final String[] localVarContentTypes = { - + "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") - private okhttp3.Call listValidatingWebhookConfigurationValidateBeforeCall(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionValidatingWebhookConfigurationValidateBeforeCall(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = listValidatingWebhookConfigurationCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + okhttp3.Call localVarCall = deleteCollectionValidatingWebhookConfigurationCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); return localVarCall; } /** * - * list or watch objects of kind ValidatingWebhookConfiguration - * @param pretty If 'true', then the output is pretty printed. (optional) - * @param allowWatchBookmarks 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. (optional) + * delete collection of ValidatingWebhookConfiguration + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param _continue 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) + * @param dryRun 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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param orphanDependents 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) + * @param propagationPolicy 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. (optional) * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) - * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @return V1ValidatingWebhookConfigurationList + * @param body (optional) + * @return V1Status * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -1546,26 +1491,30 @@ private okhttp3.Call listValidatingWebhookConfigurationValidateBeforeCall(String
401 Unauthorized -
*/ - public V1ValidatingWebhookConfigurationList listValidatingWebhookConfiguration(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch) throws ApiException { - ApiResponse localVarResp = listValidatingWebhookConfigurationWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + public V1Status deleteCollectionValidatingWebhookConfiguration(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body) throws ApiException { + ApiResponse localVarResp = deleteCollectionValidatingWebhookConfigurationWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); return localVarResp.getData(); } /** * - * list or watch objects of kind ValidatingWebhookConfiguration - * @param pretty If 'true', then the output is pretty printed. (optional) - * @param allowWatchBookmarks 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. (optional) + * delete collection of ValidatingWebhookConfiguration + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param _continue 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) + * @param dryRun 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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param orphanDependents 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) + * @param propagationPolicy 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. (optional) * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) - * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @return ApiResponse<V1ValidatingWebhookConfigurationList> + * @param body (optional) + * @return ApiResponse<V1Status> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -1574,26 +1523,30 @@ public V1ValidatingWebhookConfigurationList listValidatingWebhookConfiguration(S
401 Unauthorized -
*/ - public ApiResponse listValidatingWebhookConfigurationWithHttpInfo(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch) throws ApiException { - okhttp3.Call localVarCall = listValidatingWebhookConfigurationValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, null); - Type localVarReturnType = new TypeToken(){}.getType(); + public ApiResponse deleteCollectionValidatingWebhookConfigurationWithHttpInfo(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteCollectionValidatingWebhookConfigurationValidateBeforeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, null); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * (asynchronously) - * list or watch objects of kind ValidatingWebhookConfiguration - * @param pretty If 'true', then the output is pretty printed. (optional) - * @param allowWatchBookmarks 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. (optional) + * delete collection of ValidatingWebhookConfiguration + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param _continue 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) + * @param dryRun 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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param orphanDependents 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) + * @param propagationPolicy 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. (optional) * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) - * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + * @param body (optional) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object @@ -1604,22 +1557,23 @@ public ApiResponse listValidatingWebhookCo 401 Unauthorized - */ - public okhttp3.Call listValidatingWebhookConfigurationAsync(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + public okhttp3.Call deleteCollectionValidatingWebhookConfigurationAsync(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = listValidatingWebhookConfigurationValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + okhttp3.Call localVarCall = deleteCollectionValidatingWebhookConfigurationValidateBeforeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** - * Build call for patchMutatingWebhookConfiguration + * Build call for deleteMutatingWebhookConfiguration * @param name name of the MutatingWebhookConfiguration (required) - * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) - * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) - * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) + * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) + * @param orphanDependents 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) + * @param propagationPolicy 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. (optional) + * @param body (optional) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -1627,11 +1581,11 @@ public okhttp3.Call listValidatingWebhookConfigurationAsync(String pretty, Boole - +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
*/ - public okhttp3.Call patchMutatingWebhookConfigurationCall(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + public okhttp3.Call deleteMutatingWebhookConfigurationCall(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; // create path and map variables @@ -1648,23 +1602,27 @@ public okhttp3.Call patchMutatingWebhookConfigurationCall(String name, V1Patch b localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); } - if (fieldManager != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + if (gracePeriodSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); } - if (fieldValidation != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); + if (ignoreStoreReadErrorWithClusterBreakingPotential != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("ignoreStoreReadErrorWithClusterBreakingPotential", ignoreStoreReadErrorWithClusterBreakingPotential)); } - if (force != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("force", force)); + if (orphanDependents != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("orphanDependents", orphanDependents)); + } + + if (propagationPolicy != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("propagationPolicy", propagationPolicy)); } Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -1678,89 +1636,2933 @@ public okhttp3.Call patchMutatingWebhookConfigurationCall(String name, V1Patch b localVarHeaderParams.put("Content-Type", localVarContentType); String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") - private okhttp3.Call patchMutatingWebhookConfigurationValidateBeforeCall(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteMutatingWebhookConfigurationValidateBeforeCall(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { - throw new ApiException("Missing the required parameter 'name' when calling patchMutatingWebhookConfiguration(Async)"); + throw new ApiException("Missing the required parameter 'name' when calling deleteMutatingWebhookConfiguration(Async)"); } - // verify the required parameter 'body' is set - if (body == null) { - throw new ApiException("Missing the required parameter 'body' when calling patchMutatingWebhookConfiguration(Async)"); + + okhttp3.Call localVarCall = deleteMutatingWebhookConfigurationCall(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); + return localVarCall; + + } + + /** + * + * delete a MutatingWebhookConfiguration + * @param name name of the MutatingWebhookConfiguration (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) + * @param orphanDependents 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) + * @param propagationPolicy 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. (optional) + * @param body (optional) + * @return V1Status + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
+ */ + public V1Status deleteMutatingWebhookConfiguration(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { + ApiResponse localVarResp = deleteMutatingWebhookConfigurationWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body); + return localVarResp.getData(); + } + + /** + * + * delete a MutatingWebhookConfiguration + * @param name name of the MutatingWebhookConfiguration (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) + * @param orphanDependents 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) + * @param propagationPolicy 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. (optional) + * @param body (optional) + * @return ApiResponse<V1Status> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
+ */ + public ApiResponse deleteMutatingWebhookConfigurationWithHttpInfo(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteMutatingWebhookConfigurationValidateBeforeCall(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * delete a MutatingWebhookConfiguration + * @param name name of the MutatingWebhookConfiguration (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) + * @param orphanDependents 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) + * @param propagationPolicy 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. (optional) + * @param body (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
+ */ + public okhttp3.Call deleteMutatingWebhookConfigurationAsync(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = deleteMutatingWebhookConfigurationValidateBeforeCall(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for deleteValidatingAdmissionPolicy + * @param name name of the ValidatingAdmissionPolicy (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) + * @param orphanDependents 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) + * @param propagationPolicy 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. (optional) + * @param body (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
+ */ + public okhttp3.Call deleteValidatingAdmissionPolicyCall(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + Object localVarPostBody = body; + + // create path and map variables + String localVarPath = "/apis/admissionregistration.k8s.io/v1/validatingadmissionpolicies/{name}" + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } + + if (gracePeriodSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); } + if (ignoreStoreReadErrorWithClusterBreakingPotential != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("ignoreStoreReadErrorWithClusterBreakingPotential", ignoreStoreReadErrorWithClusterBreakingPotential)); + } - okhttp3.Call localVarCall = patchMutatingWebhookConfigurationCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); + if (orphanDependents != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("orphanDependents", orphanDependents)); + } + + if (propagationPolicy != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("propagationPolicy", propagationPolicy)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + final String[] localVarAccepts = { + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call deleteValidatingAdmissionPolicyValidateBeforeCall(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'name' is set + if (name == null) { + throw new ApiException("Missing the required parameter 'name' when calling deleteValidatingAdmissionPolicy(Async)"); + } + + + okhttp3.Call localVarCall = deleteValidatingAdmissionPolicyCall(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); return localVarCall; } /** * - * partially update the specified MutatingWebhookConfiguration - * @param name name of the MutatingWebhookConfiguration (required) - * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * delete a ValidatingAdmissionPolicy + * @param name name of the ValidatingAdmissionPolicy (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) - * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) - * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) - * @return V1MutatingWebhookConfiguration + * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) + * @param orphanDependents 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) + * @param propagationPolicy 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. (optional) + * @param body (optional) + * @return V1Status * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details - +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
*/ - public V1MutatingWebhookConfiguration patchMutatingWebhookConfiguration(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force) throws ApiException { - ApiResponse localVarResp = patchMutatingWebhookConfigurationWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force); + public V1Status deleteValidatingAdmissionPolicy(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { + ApiResponse localVarResp = deleteValidatingAdmissionPolicyWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body); + return localVarResp.getData(); + } + + /** + * + * delete a ValidatingAdmissionPolicy + * @param name name of the ValidatingAdmissionPolicy (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) + * @param orphanDependents 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) + * @param propagationPolicy 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. (optional) + * @param body (optional) + * @return ApiResponse<V1Status> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
+ */ + public ApiResponse deleteValidatingAdmissionPolicyWithHttpInfo(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteValidatingAdmissionPolicyValidateBeforeCall(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * delete a ValidatingAdmissionPolicy + * @param name name of the ValidatingAdmissionPolicy (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) + * @param orphanDependents 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) + * @param propagationPolicy 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. (optional) + * @param body (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
+ */ + public okhttp3.Call deleteValidatingAdmissionPolicyAsync(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = deleteValidatingAdmissionPolicyValidateBeforeCall(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for deleteValidatingAdmissionPolicyBinding + * @param name name of the ValidatingAdmissionPolicyBinding (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) + * @param orphanDependents 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) + * @param propagationPolicy 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. (optional) + * @param body (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
+ */ + public okhttp3.Call deleteValidatingAdmissionPolicyBindingCall(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + Object localVarPostBody = body; + + // create path and map variables + String localVarPath = "/apis/admissionregistration.k8s.io/v1/validatingadmissionpolicybindings/{name}" + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } + + if (gracePeriodSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); + } + + if (ignoreStoreReadErrorWithClusterBreakingPotential != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("ignoreStoreReadErrorWithClusterBreakingPotential", ignoreStoreReadErrorWithClusterBreakingPotential)); + } + + if (orphanDependents != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("orphanDependents", orphanDependents)); + } + + if (propagationPolicy != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("propagationPolicy", propagationPolicy)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + final String[] localVarAccepts = { + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call deleteValidatingAdmissionPolicyBindingValidateBeforeCall(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'name' is set + if (name == null) { + throw new ApiException("Missing the required parameter 'name' when calling deleteValidatingAdmissionPolicyBinding(Async)"); + } + + + okhttp3.Call localVarCall = deleteValidatingAdmissionPolicyBindingCall(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); + return localVarCall; + + } + + /** + * + * delete a ValidatingAdmissionPolicyBinding + * @param name name of the ValidatingAdmissionPolicyBinding (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) + * @param orphanDependents 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) + * @param propagationPolicy 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. (optional) + * @param body (optional) + * @return V1Status + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
+ */ + public V1Status deleteValidatingAdmissionPolicyBinding(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { + ApiResponse localVarResp = deleteValidatingAdmissionPolicyBindingWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body); + return localVarResp.getData(); + } + + /** + * + * delete a ValidatingAdmissionPolicyBinding + * @param name name of the ValidatingAdmissionPolicyBinding (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) + * @param orphanDependents 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) + * @param propagationPolicy 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. (optional) + * @param body (optional) + * @return ApiResponse<V1Status> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
+ */ + public ApiResponse deleteValidatingAdmissionPolicyBindingWithHttpInfo(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteValidatingAdmissionPolicyBindingValidateBeforeCall(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * delete a ValidatingAdmissionPolicyBinding + * @param name name of the ValidatingAdmissionPolicyBinding (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) + * @param orphanDependents 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) + * @param propagationPolicy 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. (optional) + * @param body (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
+ */ + public okhttp3.Call deleteValidatingAdmissionPolicyBindingAsync(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = deleteValidatingAdmissionPolicyBindingValidateBeforeCall(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for deleteValidatingWebhookConfiguration + * @param name name of the ValidatingWebhookConfiguration (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) + * @param orphanDependents 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) + * @param propagationPolicy 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. (optional) + * @param body (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
+ */ + public okhttp3.Call deleteValidatingWebhookConfigurationCall(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + Object localVarPostBody = body; + + // create path and map variables + String localVarPath = "/apis/admissionregistration.k8s.io/v1/validatingwebhookconfigurations/{name}" + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } + + if (gracePeriodSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); + } + + if (ignoreStoreReadErrorWithClusterBreakingPotential != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("ignoreStoreReadErrorWithClusterBreakingPotential", ignoreStoreReadErrorWithClusterBreakingPotential)); + } + + if (orphanDependents != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("orphanDependents", orphanDependents)); + } + + if (propagationPolicy != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("propagationPolicy", propagationPolicy)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + final String[] localVarAccepts = { + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call deleteValidatingWebhookConfigurationValidateBeforeCall(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'name' is set + if (name == null) { + throw new ApiException("Missing the required parameter 'name' when calling deleteValidatingWebhookConfiguration(Async)"); + } + + + okhttp3.Call localVarCall = deleteValidatingWebhookConfigurationCall(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); + return localVarCall; + + } + + /** + * + * delete a ValidatingWebhookConfiguration + * @param name name of the ValidatingWebhookConfiguration (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) + * @param orphanDependents 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) + * @param propagationPolicy 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. (optional) + * @param body (optional) + * @return V1Status + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
+ */ + public V1Status deleteValidatingWebhookConfiguration(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { + ApiResponse localVarResp = deleteValidatingWebhookConfigurationWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body); + return localVarResp.getData(); + } + + /** + * + * delete a ValidatingWebhookConfiguration + * @param name name of the ValidatingWebhookConfiguration (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) + * @param orphanDependents 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) + * @param propagationPolicy 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. (optional) + * @param body (optional) + * @return ApiResponse<V1Status> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
+ */ + public ApiResponse deleteValidatingWebhookConfigurationWithHttpInfo(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteValidatingWebhookConfigurationValidateBeforeCall(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * delete a ValidatingWebhookConfiguration + * @param name name of the ValidatingWebhookConfiguration (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) + * @param orphanDependents 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) + * @param propagationPolicy 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. (optional) + * @param body (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
+ */ + public okhttp3.Call deleteValidatingWebhookConfigurationAsync(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = deleteValidatingWebhookConfigurationValidateBeforeCall(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for getAPIResources + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call getAPIResourcesCall(final ApiCallback _callback) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/apis/admissionregistration.k8s.io/v1/"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + final String[] localVarAccepts = { + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call getAPIResourcesValidateBeforeCall(final ApiCallback _callback) throws ApiException { + + + okhttp3.Call localVarCall = getAPIResourcesCall(_callback); + return localVarCall; + + } + + /** + * + * get available resources + * @return V1APIResourceList + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public V1APIResourceList getAPIResources() throws ApiException { + ApiResponse localVarResp = getAPIResourcesWithHttpInfo(); + return localVarResp.getData(); + } + + /** + * + * get available resources + * @return ApiResponse<V1APIResourceList> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public ApiResponse getAPIResourcesWithHttpInfo() throws ApiException { + okhttp3.Call localVarCall = getAPIResourcesValidateBeforeCall(null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * get available resources + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call getAPIResourcesAsync(final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = getAPIResourcesValidateBeforeCall(_callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for listMutatingWebhookConfiguration + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param allowWatchBookmarks 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. (optional) + * @param _continue 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) + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call listMutatingWebhookConfigurationCall(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/apis/admissionregistration.k8s.io/v1/mutatingwebhookconfigurations"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + + if (allowWatchBookmarks != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("allowWatchBookmarks", allowWatchBookmarks)); + } + + if (_continue != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); + } + + if (fieldSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); + } + + if (labelSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); + } + + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + } + + if (resourceVersion != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); + } + + if (resourceVersionMatch != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersionMatch", resourceVersionMatch)); + } + + if (sendInitialEvents != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("sendInitialEvents", sendInitialEvents)); + } + + if (timeoutSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); + } + + if (watch != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + final String[] localVarAccepts = { + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch", "application/cbor-seq" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call listMutatingWebhookConfigurationValidateBeforeCall(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + + + okhttp3.Call localVarCall = listMutatingWebhookConfigurationCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + return localVarCall; + + } + + /** + * + * list or watch objects of kind MutatingWebhookConfiguration + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param allowWatchBookmarks 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. (optional) + * @param _continue 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) + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + * @return V1MutatingWebhookConfigurationList + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public V1MutatingWebhookConfigurationList listMutatingWebhookConfiguration(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch) throws ApiException { + ApiResponse localVarResp = listMutatingWebhookConfigurationWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + return localVarResp.getData(); + } + + /** + * + * list or watch objects of kind MutatingWebhookConfiguration + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param allowWatchBookmarks 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. (optional) + * @param _continue 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) + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + * @return ApiResponse<V1MutatingWebhookConfigurationList> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public ApiResponse listMutatingWebhookConfigurationWithHttpInfo(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch) throws ApiException { + okhttp3.Call localVarCall = listMutatingWebhookConfigurationValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * list or watch objects of kind MutatingWebhookConfiguration + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param allowWatchBookmarks 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. (optional) + * @param _continue 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) + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call listMutatingWebhookConfigurationAsync(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = listMutatingWebhookConfigurationValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for listValidatingAdmissionPolicy + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param allowWatchBookmarks 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. (optional) + * @param _continue 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) + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call listValidatingAdmissionPolicyCall(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/apis/admissionregistration.k8s.io/v1/validatingadmissionpolicies"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + + if (allowWatchBookmarks != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("allowWatchBookmarks", allowWatchBookmarks)); + } + + if (_continue != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); + } + + if (fieldSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); + } + + if (labelSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); + } + + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + } + + if (resourceVersion != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); + } + + if (resourceVersionMatch != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersionMatch", resourceVersionMatch)); + } + + if (sendInitialEvents != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("sendInitialEvents", sendInitialEvents)); + } + + if (timeoutSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); + } + + if (watch != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + final String[] localVarAccepts = { + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch", "application/cbor-seq" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call listValidatingAdmissionPolicyValidateBeforeCall(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + + + okhttp3.Call localVarCall = listValidatingAdmissionPolicyCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + return localVarCall; + + } + + /** + * + * list or watch objects of kind ValidatingAdmissionPolicy + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param allowWatchBookmarks 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. (optional) + * @param _continue 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) + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + * @return V1ValidatingAdmissionPolicyList + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public V1ValidatingAdmissionPolicyList listValidatingAdmissionPolicy(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch) throws ApiException { + ApiResponse localVarResp = listValidatingAdmissionPolicyWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + return localVarResp.getData(); + } + + /** + * + * list or watch objects of kind ValidatingAdmissionPolicy + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param allowWatchBookmarks 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. (optional) + * @param _continue 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) + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + * @return ApiResponse<V1ValidatingAdmissionPolicyList> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public ApiResponse listValidatingAdmissionPolicyWithHttpInfo(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch) throws ApiException { + okhttp3.Call localVarCall = listValidatingAdmissionPolicyValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * list or watch objects of kind ValidatingAdmissionPolicy + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param allowWatchBookmarks 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. (optional) + * @param _continue 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) + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call listValidatingAdmissionPolicyAsync(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = listValidatingAdmissionPolicyValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for listValidatingAdmissionPolicyBinding + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param allowWatchBookmarks 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. (optional) + * @param _continue 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) + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call listValidatingAdmissionPolicyBindingCall(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/apis/admissionregistration.k8s.io/v1/validatingadmissionpolicybindings"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + + if (allowWatchBookmarks != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("allowWatchBookmarks", allowWatchBookmarks)); + } + + if (_continue != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); + } + + if (fieldSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); + } + + if (labelSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); + } + + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + } + + if (resourceVersion != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); + } + + if (resourceVersionMatch != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersionMatch", resourceVersionMatch)); + } + + if (sendInitialEvents != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("sendInitialEvents", sendInitialEvents)); + } + + if (timeoutSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); + } + + if (watch != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + final String[] localVarAccepts = { + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch", "application/cbor-seq" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call listValidatingAdmissionPolicyBindingValidateBeforeCall(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + + + okhttp3.Call localVarCall = listValidatingAdmissionPolicyBindingCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + return localVarCall; + + } + + /** + * + * list or watch objects of kind ValidatingAdmissionPolicyBinding + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param allowWatchBookmarks 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. (optional) + * @param _continue 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) + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + * @return V1ValidatingAdmissionPolicyBindingList + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public V1ValidatingAdmissionPolicyBindingList listValidatingAdmissionPolicyBinding(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch) throws ApiException { + ApiResponse localVarResp = listValidatingAdmissionPolicyBindingWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + return localVarResp.getData(); + } + + /** + * + * list or watch objects of kind ValidatingAdmissionPolicyBinding + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param allowWatchBookmarks 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. (optional) + * @param _continue 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) + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + * @return ApiResponse<V1ValidatingAdmissionPolicyBindingList> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public ApiResponse listValidatingAdmissionPolicyBindingWithHttpInfo(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch) throws ApiException { + okhttp3.Call localVarCall = listValidatingAdmissionPolicyBindingValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * list or watch objects of kind ValidatingAdmissionPolicyBinding + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param allowWatchBookmarks 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. (optional) + * @param _continue 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) + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call listValidatingAdmissionPolicyBindingAsync(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = listValidatingAdmissionPolicyBindingValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for listValidatingWebhookConfiguration + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param allowWatchBookmarks 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. (optional) + * @param _continue 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) + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call listValidatingWebhookConfigurationCall(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/apis/admissionregistration.k8s.io/v1/validatingwebhookconfigurations"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + + if (allowWatchBookmarks != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("allowWatchBookmarks", allowWatchBookmarks)); + } + + if (_continue != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); + } + + if (fieldSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); + } + + if (labelSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); + } + + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + } + + if (resourceVersion != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); + } + + if (resourceVersionMatch != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersionMatch", resourceVersionMatch)); + } + + if (sendInitialEvents != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("sendInitialEvents", sendInitialEvents)); + } + + if (timeoutSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); + } + + if (watch != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + final String[] localVarAccepts = { + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch", "application/cbor-seq" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call listValidatingWebhookConfigurationValidateBeforeCall(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + + + okhttp3.Call localVarCall = listValidatingWebhookConfigurationCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + return localVarCall; + + } + + /** + * + * list or watch objects of kind ValidatingWebhookConfiguration + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param allowWatchBookmarks 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. (optional) + * @param _continue 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) + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + * @return V1ValidatingWebhookConfigurationList + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public V1ValidatingWebhookConfigurationList listValidatingWebhookConfiguration(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch) throws ApiException { + ApiResponse localVarResp = listValidatingWebhookConfigurationWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + return localVarResp.getData(); + } + + /** + * + * list or watch objects of kind ValidatingWebhookConfiguration + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param allowWatchBookmarks 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. (optional) + * @param _continue 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) + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + * @return ApiResponse<V1ValidatingWebhookConfigurationList> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public ApiResponse listValidatingWebhookConfigurationWithHttpInfo(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch) throws ApiException { + okhttp3.Call localVarCall = listValidatingWebhookConfigurationValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * list or watch objects of kind ValidatingWebhookConfiguration + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param allowWatchBookmarks 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. (optional) + * @param _continue 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) + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call listValidatingWebhookConfigurationAsync(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = listValidatingWebhookConfigurationValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for patchMutatingWebhookConfiguration + * @param name name of the MutatingWebhookConfiguration (required) + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public okhttp3.Call patchMutatingWebhookConfigurationCall(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + Object localVarPostBody = body; + + // create path and map variables + String localVarPath = "/apis/admissionregistration.k8s.io/v1/mutatingwebhookconfigurations/{name}" + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } + + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + + if (fieldValidation != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); + } + + if (force != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("force", force)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + final String[] localVarAccepts = { + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call patchMutatingWebhookConfigurationValidateBeforeCall(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'name' is set + if (name == null) { + throw new ApiException("Missing the required parameter 'name' when calling patchMutatingWebhookConfiguration(Async)"); + } + + // verify the required parameter 'body' is set + if (body == null) { + throw new ApiException("Missing the required parameter 'body' when calling patchMutatingWebhookConfiguration(Async)"); + } + + + okhttp3.Call localVarCall = patchMutatingWebhookConfigurationCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); + return localVarCall; + + } + + /** + * + * partially update the specified MutatingWebhookConfiguration + * @param name name of the MutatingWebhookConfiguration (required) + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) + * @return V1MutatingWebhookConfiguration + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public V1MutatingWebhookConfiguration patchMutatingWebhookConfiguration(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force) throws ApiException { + ApiResponse localVarResp = patchMutatingWebhookConfigurationWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force); + return localVarResp.getData(); + } + + /** + * + * partially update the specified MutatingWebhookConfiguration + * @param name name of the MutatingWebhookConfiguration (required) + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) + * @return ApiResponse<V1MutatingWebhookConfiguration> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public ApiResponse patchMutatingWebhookConfigurationWithHttpInfo(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force) throws ApiException { + okhttp3.Call localVarCall = patchMutatingWebhookConfigurationValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * partially update the specified MutatingWebhookConfiguration + * @param name name of the MutatingWebhookConfiguration (required) + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public okhttp3.Call patchMutatingWebhookConfigurationAsync(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = patchMutatingWebhookConfigurationValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for patchValidatingAdmissionPolicy + * @param name name of the ValidatingAdmissionPolicy (required) + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public okhttp3.Call patchValidatingAdmissionPolicyCall(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + Object localVarPostBody = body; + + // create path and map variables + String localVarPath = "/apis/admissionregistration.k8s.io/v1/validatingadmissionpolicies/{name}" + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } + + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + + if (fieldValidation != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); + } + + if (force != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("force", force)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + final String[] localVarAccepts = { + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call patchValidatingAdmissionPolicyValidateBeforeCall(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'name' is set + if (name == null) { + throw new ApiException("Missing the required parameter 'name' when calling patchValidatingAdmissionPolicy(Async)"); + } + + // verify the required parameter 'body' is set + if (body == null) { + throw new ApiException("Missing the required parameter 'body' when calling patchValidatingAdmissionPolicy(Async)"); + } + + + okhttp3.Call localVarCall = patchValidatingAdmissionPolicyCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); + return localVarCall; + + } + + /** + * + * partially update the specified ValidatingAdmissionPolicy + * @param name name of the ValidatingAdmissionPolicy (required) + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) + * @return V1ValidatingAdmissionPolicy + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public V1ValidatingAdmissionPolicy patchValidatingAdmissionPolicy(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force) throws ApiException { + ApiResponse localVarResp = patchValidatingAdmissionPolicyWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force); + return localVarResp.getData(); + } + + /** + * + * partially update the specified ValidatingAdmissionPolicy + * @param name name of the ValidatingAdmissionPolicy (required) + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) + * @return ApiResponse<V1ValidatingAdmissionPolicy> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public ApiResponse patchValidatingAdmissionPolicyWithHttpInfo(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force) throws ApiException { + okhttp3.Call localVarCall = patchValidatingAdmissionPolicyValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * partially update the specified ValidatingAdmissionPolicy + * @param name name of the ValidatingAdmissionPolicy (required) + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public okhttp3.Call patchValidatingAdmissionPolicyAsync(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = patchValidatingAdmissionPolicyValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for patchValidatingAdmissionPolicyBinding + * @param name name of the ValidatingAdmissionPolicyBinding (required) + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public okhttp3.Call patchValidatingAdmissionPolicyBindingCall(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + Object localVarPostBody = body; + + // create path and map variables + String localVarPath = "/apis/admissionregistration.k8s.io/v1/validatingadmissionpolicybindings/{name}" + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } + + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + + if (fieldValidation != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); + } + + if (force != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("force", force)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + final String[] localVarAccepts = { + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call patchValidatingAdmissionPolicyBindingValidateBeforeCall(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'name' is set + if (name == null) { + throw new ApiException("Missing the required parameter 'name' when calling patchValidatingAdmissionPolicyBinding(Async)"); + } + + // verify the required parameter 'body' is set + if (body == null) { + throw new ApiException("Missing the required parameter 'body' when calling patchValidatingAdmissionPolicyBinding(Async)"); + } + + + okhttp3.Call localVarCall = patchValidatingAdmissionPolicyBindingCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); + return localVarCall; + + } + + /** + * + * partially update the specified ValidatingAdmissionPolicyBinding + * @param name name of the ValidatingAdmissionPolicyBinding (required) + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) + * @return V1ValidatingAdmissionPolicyBinding + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public V1ValidatingAdmissionPolicyBinding patchValidatingAdmissionPolicyBinding(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force) throws ApiException { + ApiResponse localVarResp = patchValidatingAdmissionPolicyBindingWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force); + return localVarResp.getData(); + } + + /** + * + * partially update the specified ValidatingAdmissionPolicyBinding + * @param name name of the ValidatingAdmissionPolicyBinding (required) + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) + * @return ApiResponse<V1ValidatingAdmissionPolicyBinding> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public ApiResponse patchValidatingAdmissionPolicyBindingWithHttpInfo(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force) throws ApiException { + okhttp3.Call localVarCall = patchValidatingAdmissionPolicyBindingValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * partially update the specified ValidatingAdmissionPolicyBinding + * @param name name of the ValidatingAdmissionPolicyBinding (required) + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public okhttp3.Call patchValidatingAdmissionPolicyBindingAsync(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = patchValidatingAdmissionPolicyBindingValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for patchValidatingAdmissionPolicyStatus + * @param name name of the ValidatingAdmissionPolicy (required) + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public okhttp3.Call patchValidatingAdmissionPolicyStatusCall(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + Object localVarPostBody = body; + + // create path and map variables + String localVarPath = "/apis/admissionregistration.k8s.io/v1/validatingadmissionpolicies/{name}/status" + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } + + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + + if (fieldValidation != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); + } + + if (force != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("force", force)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + final String[] localVarAccepts = { + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call patchValidatingAdmissionPolicyStatusValidateBeforeCall(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'name' is set + if (name == null) { + throw new ApiException("Missing the required parameter 'name' when calling patchValidatingAdmissionPolicyStatus(Async)"); + } + + // verify the required parameter 'body' is set + if (body == null) { + throw new ApiException("Missing the required parameter 'body' when calling patchValidatingAdmissionPolicyStatus(Async)"); + } + + + okhttp3.Call localVarCall = patchValidatingAdmissionPolicyStatusCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); + return localVarCall; + + } + + /** + * + * partially update status of the specified ValidatingAdmissionPolicy + * @param name name of the ValidatingAdmissionPolicy (required) + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) + * @return V1ValidatingAdmissionPolicy + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public V1ValidatingAdmissionPolicy patchValidatingAdmissionPolicyStatus(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force) throws ApiException { + ApiResponse localVarResp = patchValidatingAdmissionPolicyStatusWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force); + return localVarResp.getData(); + } + + /** + * + * partially update status of the specified ValidatingAdmissionPolicy + * @param name name of the ValidatingAdmissionPolicy (required) + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) + * @return ApiResponse<V1ValidatingAdmissionPolicy> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public ApiResponse patchValidatingAdmissionPolicyStatusWithHttpInfo(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force) throws ApiException { + okhttp3.Call localVarCall = patchValidatingAdmissionPolicyStatusValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * partially update status of the specified ValidatingAdmissionPolicy + * @param name name of the ValidatingAdmissionPolicy (required) + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public okhttp3.Call patchValidatingAdmissionPolicyStatusAsync(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = patchValidatingAdmissionPolicyStatusValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for patchValidatingWebhookConfiguration + * @param name name of the ValidatingWebhookConfiguration (required) + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public okhttp3.Call patchValidatingWebhookConfigurationCall(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + Object localVarPostBody = body; + + // create path and map variables + String localVarPath = "/apis/admissionregistration.k8s.io/v1/validatingwebhookconfigurations/{name}" + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } + + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + + if (fieldValidation != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); + } + + if (force != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("force", force)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + final String[] localVarAccepts = { + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call patchValidatingWebhookConfigurationValidateBeforeCall(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'name' is set + if (name == null) { + throw new ApiException("Missing the required parameter 'name' when calling patchValidatingWebhookConfiguration(Async)"); + } + + // verify the required parameter 'body' is set + if (body == null) { + throw new ApiException("Missing the required parameter 'body' when calling patchValidatingWebhookConfiguration(Async)"); + } + + + okhttp3.Call localVarCall = patchValidatingWebhookConfigurationCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); + return localVarCall; + + } + + /** + * + * partially update the specified ValidatingWebhookConfiguration + * @param name name of the ValidatingWebhookConfiguration (required) + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) + * @return V1ValidatingWebhookConfiguration + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public V1ValidatingWebhookConfiguration patchValidatingWebhookConfiguration(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force) throws ApiException { + ApiResponse localVarResp = patchValidatingWebhookConfigurationWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force); + return localVarResp.getData(); + } + + /** + * + * partially update the specified ValidatingWebhookConfiguration + * @param name name of the ValidatingWebhookConfiguration (required) + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) + * @return ApiResponse<V1ValidatingWebhookConfiguration> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public ApiResponse patchValidatingWebhookConfigurationWithHttpInfo(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force) throws ApiException { + okhttp3.Call localVarCall = patchValidatingWebhookConfigurationValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * partially update the specified ValidatingWebhookConfiguration + * @param name name of the ValidatingWebhookConfiguration (required) + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public okhttp3.Call patchValidatingWebhookConfigurationAsync(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = patchValidatingWebhookConfigurationValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for readMutatingWebhookConfiguration + * @param name name of the MutatingWebhookConfiguration (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call readMutatingWebhookConfigurationCall(String name, String pretty, final ApiCallback _callback) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/apis/admissionregistration.k8s.io/v1/mutatingwebhookconfigurations/{name}" + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + final String[] localVarAccepts = { + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call readMutatingWebhookConfigurationValidateBeforeCall(String name, String pretty, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'name' is set + if (name == null) { + throw new ApiException("Missing the required parameter 'name' when calling readMutatingWebhookConfiguration(Async)"); + } + + + okhttp3.Call localVarCall = readMutatingWebhookConfigurationCall(name, pretty, _callback); + return localVarCall; + + } + + /** + * + * read the specified MutatingWebhookConfiguration + * @param name name of the MutatingWebhookConfiguration (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @return V1MutatingWebhookConfiguration + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public V1MutatingWebhookConfiguration readMutatingWebhookConfiguration(String name, String pretty) throws ApiException { + ApiResponse localVarResp = readMutatingWebhookConfigurationWithHttpInfo(name, pretty); + return localVarResp.getData(); + } + + /** + * + * read the specified MutatingWebhookConfiguration + * @param name name of the MutatingWebhookConfiguration (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @return ApiResponse<V1MutatingWebhookConfiguration> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public ApiResponse readMutatingWebhookConfigurationWithHttpInfo(String name, String pretty) throws ApiException { + okhttp3.Call localVarCall = readMutatingWebhookConfigurationValidateBeforeCall(name, pretty, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * read the specified MutatingWebhookConfiguration + * @param name name of the MutatingWebhookConfiguration (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call readMutatingWebhookConfigurationAsync(String name, String pretty, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = readMutatingWebhookConfigurationValidateBeforeCall(name, pretty, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for readValidatingAdmissionPolicy + * @param name name of the ValidatingAdmissionPolicy (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call readValidatingAdmissionPolicyCall(String name, String pretty, final ApiCallback _callback) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/apis/admissionregistration.k8s.io/v1/validatingadmissionpolicies/{name}" + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + final String[] localVarAccepts = { + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call readValidatingAdmissionPolicyValidateBeforeCall(String name, String pretty, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'name' is set + if (name == null) { + throw new ApiException("Missing the required parameter 'name' when calling readValidatingAdmissionPolicy(Async)"); + } + + + okhttp3.Call localVarCall = readValidatingAdmissionPolicyCall(name, pretty, _callback); + return localVarCall; + + } + + /** + * + * read the specified ValidatingAdmissionPolicy + * @param name name of the ValidatingAdmissionPolicy (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @return V1ValidatingAdmissionPolicy + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public V1ValidatingAdmissionPolicy readValidatingAdmissionPolicy(String name, String pretty) throws ApiException { + ApiResponse localVarResp = readValidatingAdmissionPolicyWithHttpInfo(name, pretty); + return localVarResp.getData(); + } + + /** + * + * read the specified ValidatingAdmissionPolicy + * @param name name of the ValidatingAdmissionPolicy (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @return ApiResponse<V1ValidatingAdmissionPolicy> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public ApiResponse readValidatingAdmissionPolicyWithHttpInfo(String name, String pretty) throws ApiException { + okhttp3.Call localVarCall = readValidatingAdmissionPolicyValidateBeforeCall(name, pretty, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * read the specified ValidatingAdmissionPolicy + * @param name name of the ValidatingAdmissionPolicy (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call readValidatingAdmissionPolicyAsync(String name, String pretty, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = readValidatingAdmissionPolicyValidateBeforeCall(name, pretty, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for readValidatingAdmissionPolicyBinding + * @param name name of the ValidatingAdmissionPolicyBinding (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call readValidatingAdmissionPolicyBindingCall(String name, String pretty, final ApiCallback _callback) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/apis/admissionregistration.k8s.io/v1/validatingadmissionpolicybindings/{name}" + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + final String[] localVarAccepts = { + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call readValidatingAdmissionPolicyBindingValidateBeforeCall(String name, String pretty, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'name' is set + if (name == null) { + throw new ApiException("Missing the required parameter 'name' when calling readValidatingAdmissionPolicyBinding(Async)"); + } + + + okhttp3.Call localVarCall = readValidatingAdmissionPolicyBindingCall(name, pretty, _callback); + return localVarCall; + + } + + /** + * + * read the specified ValidatingAdmissionPolicyBinding + * @param name name of the ValidatingAdmissionPolicyBinding (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @return V1ValidatingAdmissionPolicyBinding + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public V1ValidatingAdmissionPolicyBinding readValidatingAdmissionPolicyBinding(String name, String pretty) throws ApiException { + ApiResponse localVarResp = readValidatingAdmissionPolicyBindingWithHttpInfo(name, pretty); + return localVarResp.getData(); + } + + /** + * + * read the specified ValidatingAdmissionPolicyBinding + * @param name name of the ValidatingAdmissionPolicyBinding (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @return ApiResponse<V1ValidatingAdmissionPolicyBinding> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public ApiResponse readValidatingAdmissionPolicyBindingWithHttpInfo(String name, String pretty) throws ApiException { + okhttp3.Call localVarCall = readValidatingAdmissionPolicyBindingValidateBeforeCall(name, pretty, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * read the specified ValidatingAdmissionPolicyBinding + * @param name name of the ValidatingAdmissionPolicyBinding (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call readValidatingAdmissionPolicyBindingAsync(String name, String pretty, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = readValidatingAdmissionPolicyBindingValidateBeforeCall(name, pretty, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for readValidatingAdmissionPolicyStatus + * @param name name of the ValidatingAdmissionPolicy (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call readValidatingAdmissionPolicyStatusCall(String name, String pretty, final ApiCallback _callback) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/apis/admissionregistration.k8s.io/v1/validatingadmissionpolicies/{name}/status" + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + final String[] localVarAccepts = { + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call readValidatingAdmissionPolicyStatusValidateBeforeCall(String name, String pretty, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'name' is set + if (name == null) { + throw new ApiException("Missing the required parameter 'name' when calling readValidatingAdmissionPolicyStatus(Async)"); + } + + + okhttp3.Call localVarCall = readValidatingAdmissionPolicyStatusCall(name, pretty, _callback); + return localVarCall; + + } + + /** + * + * read status of the specified ValidatingAdmissionPolicy + * @param name name of the ValidatingAdmissionPolicy (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @return V1ValidatingAdmissionPolicy + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public V1ValidatingAdmissionPolicy readValidatingAdmissionPolicyStatus(String name, String pretty) throws ApiException { + ApiResponse localVarResp = readValidatingAdmissionPolicyStatusWithHttpInfo(name, pretty); + return localVarResp.getData(); + } + + /** + * + * read status of the specified ValidatingAdmissionPolicy + * @param name name of the ValidatingAdmissionPolicy (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @return ApiResponse<V1ValidatingAdmissionPolicy> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public ApiResponse readValidatingAdmissionPolicyStatusWithHttpInfo(String name, String pretty) throws ApiException { + okhttp3.Call localVarCall = readValidatingAdmissionPolicyStatusValidateBeforeCall(name, pretty, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * read status of the specified ValidatingAdmissionPolicy + * @param name name of the ValidatingAdmissionPolicy (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call readValidatingAdmissionPolicyStatusAsync(String name, String pretty, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = readValidatingAdmissionPolicyStatusValidateBeforeCall(name, pretty, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for readValidatingWebhookConfiguration + * @param name name of the ValidatingWebhookConfiguration (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call readValidatingWebhookConfigurationCall(String name, String pretty, final ApiCallback _callback) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/apis/admissionregistration.k8s.io/v1/validatingwebhookconfigurations/{name}" + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + final String[] localVarAccepts = { + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call readValidatingWebhookConfigurationValidateBeforeCall(String name, String pretty, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'name' is set + if (name == null) { + throw new ApiException("Missing the required parameter 'name' when calling readValidatingWebhookConfiguration(Async)"); + } + + + okhttp3.Call localVarCall = readValidatingWebhookConfigurationCall(name, pretty, _callback); + return localVarCall; + + } + + /** + * + * read the specified ValidatingWebhookConfiguration + * @param name name of the ValidatingWebhookConfiguration (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @return V1ValidatingWebhookConfiguration + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public V1ValidatingWebhookConfiguration readValidatingWebhookConfiguration(String name, String pretty) throws ApiException { + ApiResponse localVarResp = readValidatingWebhookConfigurationWithHttpInfo(name, pretty); return localVarResp.getData(); } /** * - * partially update the specified MutatingWebhookConfiguration - * @param name name of the MutatingWebhookConfiguration (required) - * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) - * @param dryRun 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) - * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) - * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) - * @return ApiResponse<V1MutatingWebhookConfiguration> + * read the specified ValidatingWebhookConfiguration + * @param name name of the ValidatingWebhookConfiguration (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @return ApiResponse<V1ValidatingWebhookConfiguration> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public ApiResponse patchMutatingWebhookConfigurationWithHttpInfo(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force) throws ApiException { - okhttp3.Call localVarCall = patchMutatingWebhookConfigurationValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, null); - Type localVarReturnType = new TypeToken(){}.getType(); + public ApiResponse readValidatingWebhookConfigurationWithHttpInfo(String name, String pretty) throws ApiException { + okhttp3.Call localVarCall = readValidatingWebhookConfigurationValidateBeforeCall(name, pretty, null); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * (asynchronously) - * partially update the specified MutatingWebhookConfiguration - * @param name name of the MutatingWebhookConfiguration (required) - * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) - * @param dryRun 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) - * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) - * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) + * read the specified ValidatingWebhookConfiguration + * @param name name of the ValidatingWebhookConfiguration (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object @@ -1768,26 +4570,24 @@ public ApiResponse patchMutatingWebhookConfigura -
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public okhttp3.Call patchMutatingWebhookConfigurationAsync(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + public okhttp3.Call readValidatingWebhookConfigurationAsync(String name, String pretty, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = patchMutatingWebhookConfigurationValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + okhttp3.Call localVarCall = readValidatingWebhookConfigurationValidateBeforeCall(name, pretty, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** - * Build call for patchValidatingWebhookConfiguration - * @param name name of the ValidatingWebhookConfiguration (required) + * Build call for replaceMutatingWebhookConfiguration + * @param name name of the MutatingWebhookConfiguration (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) - * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -1799,11 +4599,11 @@ public okhttp3.Call patchMutatingWebhookConfigurationAsync(String name, V1Patch 401 Unauthorized - */ - public okhttp3.Call patchValidatingWebhookConfigurationCall(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + public okhttp3.Call replaceMutatingWebhookConfigurationCall(String name, V1MutatingWebhookConfiguration body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; // create path and map variables - String localVarPath = "/apis/admissionregistration.k8s.io/v1/validatingwebhookconfigurations/{name}" + String localVarPath = "/apis/admissionregistration.k8s.io/v1/mutatingwebhookconfigurations/{name}" .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); @@ -1824,15 +4624,11 @@ public okhttp3.Call patchValidatingWebhookConfigurationCall(String name, V1Patch localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); } - if (force != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("force", force)); - } - Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -1846,39 +4642,38 @@ public okhttp3.Call patchValidatingWebhookConfigurationCall(String name, V1Patch localVarHeaderParams.put("Content-Type", localVarContentType); String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") - private okhttp3.Call patchValidatingWebhookConfigurationValidateBeforeCall(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceMutatingWebhookConfigurationValidateBeforeCall(String name, V1MutatingWebhookConfiguration body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { - throw new ApiException("Missing the required parameter 'name' when calling patchValidatingWebhookConfiguration(Async)"); + throw new ApiException("Missing the required parameter 'name' when calling replaceMutatingWebhookConfiguration(Async)"); } // verify the required parameter 'body' is set if (body == null) { - throw new ApiException("Missing the required parameter 'body' when calling patchValidatingWebhookConfiguration(Async)"); + throw new ApiException("Missing the required parameter 'body' when calling replaceMutatingWebhookConfiguration(Async)"); } - okhttp3.Call localVarCall = patchValidatingWebhookConfigurationCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); + okhttp3.Call localVarCall = replaceMutatingWebhookConfigurationCall(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); return localVarCall; } /** * - * partially update the specified ValidatingWebhookConfiguration - * @param name name of the ValidatingWebhookConfiguration (required) + * replace the specified MutatingWebhookConfiguration + * @param name name of the MutatingWebhookConfiguration (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) - * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) - * @return V1ValidatingWebhookConfiguration + * @return V1MutatingWebhookConfiguration * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -1888,22 +4683,21 @@ private okhttp3.Call patchValidatingWebhookConfigurationValidateBeforeCall(Strin
401 Unauthorized -
*/ - public V1ValidatingWebhookConfiguration patchValidatingWebhookConfiguration(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force) throws ApiException { - ApiResponse localVarResp = patchValidatingWebhookConfigurationWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force); + public V1MutatingWebhookConfiguration replaceMutatingWebhookConfiguration(String name, V1MutatingWebhookConfiguration body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { + ApiResponse localVarResp = replaceMutatingWebhookConfigurationWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation); return localVarResp.getData(); } /** * - * partially update the specified ValidatingWebhookConfiguration - * @param name name of the ValidatingWebhookConfiguration (required) + * replace the specified MutatingWebhookConfiguration + * @param name name of the MutatingWebhookConfiguration (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) - * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) - * @return ApiResponse<V1ValidatingWebhookConfiguration> + * @return ApiResponse<V1MutatingWebhookConfiguration> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -1913,22 +4707,21 @@ public V1ValidatingWebhookConfiguration patchValidatingWebhookConfiguration(Stri
401 Unauthorized -
*/ - public ApiResponse patchValidatingWebhookConfigurationWithHttpInfo(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force) throws ApiException { - okhttp3.Call localVarCall = patchValidatingWebhookConfigurationValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, null); - Type localVarReturnType = new TypeToken(){}.getType(); + public ApiResponse replaceMutatingWebhookConfigurationWithHttpInfo(String name, V1MutatingWebhookConfiguration body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { + okhttp3.Call localVarCall = replaceMutatingWebhookConfigurationValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, null); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * (asynchronously) - * partially update the specified ValidatingWebhookConfiguration - * @param name name of the ValidatingWebhookConfiguration (required) + * replace the specified MutatingWebhookConfiguration + * @param name name of the MutatingWebhookConfiguration (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) - * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object @@ -1940,17 +4733,21 @@ public ApiResponse patchValidatingWebhookConfi 401 Unauthorized - */ - public okhttp3.Call patchValidatingWebhookConfigurationAsync(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + public okhttp3.Call replaceMutatingWebhookConfigurationAsync(String name, V1MutatingWebhookConfiguration body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = patchValidatingWebhookConfigurationValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + okhttp3.Call localVarCall = replaceMutatingWebhookConfigurationValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** - * Build call for readMutatingWebhookConfiguration - * @param name name of the MutatingWebhookConfiguration (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * Build call for replaceValidatingAdmissionPolicy + * @param name name of the ValidatingAdmissionPolicy (required) + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -1958,14 +4755,15 @@ public okhttp3.Call patchValidatingWebhookConfigurationAsync(String name, V1Patc +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public okhttp3.Call readMutatingWebhookConfigurationCall(String name, String pretty, final ApiCallback _callback) throws ApiException { - Object localVarPostBody = null; + public okhttp3.Call replaceValidatingAdmissionPolicyCall(String name, V1ValidatingAdmissionPolicy body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + Object localVarPostBody = body; // create path and map variables - String localVarPath = "/apis/admissionregistration.k8s.io/v1/mutatingwebhookconfigurations/{name}" + String localVarPath = "/apis/admissionregistration.k8s.io/v1/validatingadmissionpolicies/{name}" .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); @@ -1974,11 +4772,23 @@ public okhttp3.Call readMutatingWebhookConfigurationCall(String name, String pre localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } + + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + + if (fieldValidation != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); + } + Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -1986,73 +4796,92 @@ public okhttp3.Call readMutatingWebhookConfigurationCall(String name, String pre } final String[] localVarContentTypes = { - + "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") - private okhttp3.Call readMutatingWebhookConfigurationValidateBeforeCall(String name, String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceValidatingAdmissionPolicyValidateBeforeCall(String name, V1ValidatingAdmissionPolicy body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { - throw new ApiException("Missing the required parameter 'name' when calling readMutatingWebhookConfiguration(Async)"); + throw new ApiException("Missing the required parameter 'name' when calling replaceValidatingAdmissionPolicy(Async)"); + } + + // verify the required parameter 'body' is set + if (body == null) { + throw new ApiException("Missing the required parameter 'body' when calling replaceValidatingAdmissionPolicy(Async)"); } - okhttp3.Call localVarCall = readMutatingWebhookConfigurationCall(name, pretty, _callback); + okhttp3.Call localVarCall = replaceValidatingAdmissionPolicyCall(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); return localVarCall; } /** * - * read the specified MutatingWebhookConfiguration - * @param name name of the MutatingWebhookConfiguration (required) - * @param pretty If 'true', then the output is pretty printed. (optional) - * @return V1MutatingWebhookConfiguration + * replace the specified ValidatingAdmissionPolicy + * @param name name of the ValidatingAdmissionPolicy (required) + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @return V1ValidatingAdmissionPolicy * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public V1MutatingWebhookConfiguration readMutatingWebhookConfiguration(String name, String pretty) throws ApiException { - ApiResponse localVarResp = readMutatingWebhookConfigurationWithHttpInfo(name, pretty); + public V1ValidatingAdmissionPolicy replaceValidatingAdmissionPolicy(String name, V1ValidatingAdmissionPolicy body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { + ApiResponse localVarResp = replaceValidatingAdmissionPolicyWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation); return localVarResp.getData(); } /** * - * read the specified MutatingWebhookConfiguration - * @param name name of the MutatingWebhookConfiguration (required) - * @param pretty If 'true', then the output is pretty printed. (optional) - * @return ApiResponse<V1MutatingWebhookConfiguration> + * replace the specified ValidatingAdmissionPolicy + * @param name name of the ValidatingAdmissionPolicy (required) + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @return ApiResponse<V1ValidatingAdmissionPolicy> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public ApiResponse readMutatingWebhookConfigurationWithHttpInfo(String name, String pretty) throws ApiException { - okhttp3.Call localVarCall = readMutatingWebhookConfigurationValidateBeforeCall(name, pretty, null); - Type localVarReturnType = new TypeToken(){}.getType(); + public ApiResponse replaceValidatingAdmissionPolicyWithHttpInfo(String name, V1ValidatingAdmissionPolicy body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { + okhttp3.Call localVarCall = replaceValidatingAdmissionPolicyValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, null); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * (asynchronously) - * read the specified MutatingWebhookConfiguration - * @param name name of the MutatingWebhookConfiguration (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * replace the specified ValidatingAdmissionPolicy + * @param name name of the ValidatingAdmissionPolicy (required) + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object @@ -2060,20 +4889,25 @@ public ApiResponse readMutatingWebhookConfigurat +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public okhttp3.Call readMutatingWebhookConfigurationAsync(String name, String pretty, final ApiCallback _callback) throws ApiException { + public okhttp3.Call replaceValidatingAdmissionPolicyAsync(String name, V1ValidatingAdmissionPolicy body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = readMutatingWebhookConfigurationValidateBeforeCall(name, pretty, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + okhttp3.Call localVarCall = replaceValidatingAdmissionPolicyValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** - * Build call for readValidatingWebhookConfiguration - * @param name name of the ValidatingWebhookConfiguration (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * Build call for replaceValidatingAdmissionPolicyBinding + * @param name name of the ValidatingAdmissionPolicyBinding (required) + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -2081,14 +4915,15 @@ public okhttp3.Call readMutatingWebhookConfigurationAsync(String name, String pr +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public okhttp3.Call readValidatingWebhookConfigurationCall(String name, String pretty, final ApiCallback _callback) throws ApiException { - Object localVarPostBody = null; + public okhttp3.Call replaceValidatingAdmissionPolicyBindingCall(String name, V1ValidatingAdmissionPolicyBinding body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + Object localVarPostBody = body; // create path and map variables - String localVarPath = "/apis/admissionregistration.k8s.io/v1/validatingwebhookconfigurations/{name}" + String localVarPath = "/apis/admissionregistration.k8s.io/v1/validatingadmissionpolicybindings/{name}" .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); @@ -2097,11 +4932,23 @@ public okhttp3.Call readValidatingWebhookConfigurationCall(String name, String p localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } + + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + + if (fieldValidation != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); + } + Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -2109,73 +4956,92 @@ public okhttp3.Call readValidatingWebhookConfigurationCall(String name, String p } final String[] localVarContentTypes = { - + "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") - private okhttp3.Call readValidatingWebhookConfigurationValidateBeforeCall(String name, String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceValidatingAdmissionPolicyBindingValidateBeforeCall(String name, V1ValidatingAdmissionPolicyBinding body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { - throw new ApiException("Missing the required parameter 'name' when calling readValidatingWebhookConfiguration(Async)"); + throw new ApiException("Missing the required parameter 'name' when calling replaceValidatingAdmissionPolicyBinding(Async)"); } + // verify the required parameter 'body' is set + if (body == null) { + throw new ApiException("Missing the required parameter 'body' when calling replaceValidatingAdmissionPolicyBinding(Async)"); + } - okhttp3.Call localVarCall = readValidatingWebhookConfigurationCall(name, pretty, _callback); + + okhttp3.Call localVarCall = replaceValidatingAdmissionPolicyBindingCall(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); return localVarCall; } /** * - * read the specified ValidatingWebhookConfiguration - * @param name name of the ValidatingWebhookConfiguration (required) - * @param pretty If 'true', then the output is pretty printed. (optional) - * @return V1ValidatingWebhookConfiguration + * replace the specified ValidatingAdmissionPolicyBinding + * @param name name of the ValidatingAdmissionPolicyBinding (required) + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @return V1ValidatingAdmissionPolicyBinding * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public V1ValidatingWebhookConfiguration readValidatingWebhookConfiguration(String name, String pretty) throws ApiException { - ApiResponse localVarResp = readValidatingWebhookConfigurationWithHttpInfo(name, pretty); + public V1ValidatingAdmissionPolicyBinding replaceValidatingAdmissionPolicyBinding(String name, V1ValidatingAdmissionPolicyBinding body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { + ApiResponse localVarResp = replaceValidatingAdmissionPolicyBindingWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation); return localVarResp.getData(); } /** * - * read the specified ValidatingWebhookConfiguration - * @param name name of the ValidatingWebhookConfiguration (required) - * @param pretty If 'true', then the output is pretty printed. (optional) - * @return ApiResponse<V1ValidatingWebhookConfiguration> + * replace the specified ValidatingAdmissionPolicyBinding + * @param name name of the ValidatingAdmissionPolicyBinding (required) + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @return ApiResponse<V1ValidatingAdmissionPolicyBinding> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public ApiResponse readValidatingWebhookConfigurationWithHttpInfo(String name, String pretty) throws ApiException { - okhttp3.Call localVarCall = readValidatingWebhookConfigurationValidateBeforeCall(name, pretty, null); - Type localVarReturnType = new TypeToken(){}.getType(); + public ApiResponse replaceValidatingAdmissionPolicyBindingWithHttpInfo(String name, V1ValidatingAdmissionPolicyBinding body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { + okhttp3.Call localVarCall = replaceValidatingAdmissionPolicyBindingValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, null); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * (asynchronously) - * read the specified ValidatingWebhookConfiguration - * @param name name of the ValidatingWebhookConfiguration (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * replace the specified ValidatingAdmissionPolicyBinding + * @param name name of the ValidatingAdmissionPolicyBinding (required) + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object @@ -2183,21 +5049,22 @@ public ApiResponse readValidatingWebhookConfig +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public okhttp3.Call readValidatingWebhookConfigurationAsync(String name, String pretty, final ApiCallback _callback) throws ApiException { + public okhttp3.Call replaceValidatingAdmissionPolicyBindingAsync(String name, V1ValidatingAdmissionPolicyBinding body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = readValidatingWebhookConfigurationValidateBeforeCall(name, pretty, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + okhttp3.Call localVarCall = replaceValidatingAdmissionPolicyBindingValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** - * Build call for replaceMutatingWebhookConfiguration - * @param name name of the MutatingWebhookConfiguration (required) + * Build call for replaceValidatingAdmissionPolicyStatus + * @param name name of the ValidatingAdmissionPolicy (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -2212,11 +5079,11 @@ public okhttp3.Call readValidatingWebhookConfigurationAsync(String name, String 401 Unauthorized - */ - public okhttp3.Call replaceMutatingWebhookConfigurationCall(String name, V1MutatingWebhookConfiguration body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + public okhttp3.Call replaceValidatingAdmissionPolicyStatusCall(String name, V1ValidatingAdmissionPolicy body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; // create path and map variables - String localVarPath = "/apis/admissionregistration.k8s.io/v1/mutatingwebhookconfigurations/{name}" + String localVarPath = "/apis/admissionregistration.k8s.io/v1/validatingadmissionpolicies/{name}/status" .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); @@ -2241,7 +5108,7 @@ public okhttp3.Call replaceMutatingWebhookConfigurationCall(String name, V1Mutat Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -2259,34 +5126,34 @@ public okhttp3.Call replaceMutatingWebhookConfigurationCall(String name, V1Mutat } @SuppressWarnings("rawtypes") - private okhttp3.Call replaceMutatingWebhookConfigurationValidateBeforeCall(String name, V1MutatingWebhookConfiguration body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceValidatingAdmissionPolicyStatusValidateBeforeCall(String name, V1ValidatingAdmissionPolicy body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { - throw new ApiException("Missing the required parameter 'name' when calling replaceMutatingWebhookConfiguration(Async)"); + throw new ApiException("Missing the required parameter 'name' when calling replaceValidatingAdmissionPolicyStatus(Async)"); } // verify the required parameter 'body' is set if (body == null) { - throw new ApiException("Missing the required parameter 'body' when calling replaceMutatingWebhookConfiguration(Async)"); + throw new ApiException("Missing the required parameter 'body' when calling replaceValidatingAdmissionPolicyStatus(Async)"); } - okhttp3.Call localVarCall = replaceMutatingWebhookConfigurationCall(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); + okhttp3.Call localVarCall = replaceValidatingAdmissionPolicyStatusCall(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); return localVarCall; } /** * - * replace the specified MutatingWebhookConfiguration - * @param name name of the MutatingWebhookConfiguration (required) + * replace status of the specified ValidatingAdmissionPolicy + * @param name name of the ValidatingAdmissionPolicy (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - * @return V1MutatingWebhookConfiguration + * @return V1ValidatingAdmissionPolicy * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -2296,21 +5163,21 @@ private okhttp3.Call replaceMutatingWebhookConfigurationValidateBeforeCall(Strin
401 Unauthorized -
*/ - public V1MutatingWebhookConfiguration replaceMutatingWebhookConfiguration(String name, V1MutatingWebhookConfiguration body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { - ApiResponse localVarResp = replaceMutatingWebhookConfigurationWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation); + public V1ValidatingAdmissionPolicy replaceValidatingAdmissionPolicyStatus(String name, V1ValidatingAdmissionPolicy body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { + ApiResponse localVarResp = replaceValidatingAdmissionPolicyStatusWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation); return localVarResp.getData(); } /** * - * replace the specified MutatingWebhookConfiguration - * @param name name of the MutatingWebhookConfiguration (required) + * replace status of the specified ValidatingAdmissionPolicy + * @param name name of the ValidatingAdmissionPolicy (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - * @return ApiResponse<V1MutatingWebhookConfiguration> + * @return ApiResponse<V1ValidatingAdmissionPolicy> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -2320,18 +5187,18 @@ public V1MutatingWebhookConfiguration replaceMutatingWebhookConfiguration(String
401 Unauthorized -
*/ - public ApiResponse replaceMutatingWebhookConfigurationWithHttpInfo(String name, V1MutatingWebhookConfiguration body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { - okhttp3.Call localVarCall = replaceMutatingWebhookConfigurationValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, null); - Type localVarReturnType = new TypeToken(){}.getType(); + public ApiResponse replaceValidatingAdmissionPolicyStatusWithHttpInfo(String name, V1ValidatingAdmissionPolicy body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { + okhttp3.Call localVarCall = replaceValidatingAdmissionPolicyStatusValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, null); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * (asynchronously) - * replace the specified MutatingWebhookConfiguration - * @param name name of the MutatingWebhookConfiguration (required) + * replace status of the specified ValidatingAdmissionPolicy + * @param name name of the ValidatingAdmissionPolicy (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -2346,10 +5213,10 @@ public ApiResponse replaceMutatingWebhookConfigu 401 Unauthorized - */ - public okhttp3.Call replaceMutatingWebhookConfigurationAsync(String name, V1MutatingWebhookConfiguration body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + public okhttp3.Call replaceValidatingAdmissionPolicyStatusAsync(String name, V1ValidatingAdmissionPolicy body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = replaceMutatingWebhookConfigurationValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + okhttp3.Call localVarCall = replaceValidatingAdmissionPolicyStatusValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } @@ -2357,7 +5224,7 @@ public okhttp3.Call replaceMutatingWebhookConfigurationAsync(String name, V1Muta * Build call for replaceValidatingWebhookConfiguration * @param name name of the ValidatingWebhookConfiguration (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -2401,7 +5268,7 @@ public okhttp3.Call replaceValidatingWebhookConfigurationCall(String name, V1Val Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -2442,7 +5309,7 @@ private okhttp3.Call replaceValidatingWebhookConfigurationValidateBeforeCall(Str * replace the specified ValidatingWebhookConfiguration * @param name name of the ValidatingWebhookConfiguration (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -2466,7 +5333,7 @@ public V1ValidatingWebhookConfiguration replaceValidatingWebhookConfiguration(St * replace the specified ValidatingWebhookConfiguration * @param name name of the ValidatingWebhookConfiguration (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -2491,7 +5358,7 @@ public ApiResponse replaceValidatingWebhookCon * replace the specified ValidatingWebhookConfiguration * @param name name of the ValidatingWebhookConfiguration (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) 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 4ad04882df..c9971ead43 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -30,10 +30,10 @@ import io.kubernetes.client.openapi.models.V1DeleteOptions; import io.kubernetes.client.custom.V1Patch; import io.kubernetes.client.openapi.models.V1Status; -import io.kubernetes.client.openapi.models.V1alpha1ValidatingAdmissionPolicy; -import io.kubernetes.client.openapi.models.V1alpha1ValidatingAdmissionPolicyBinding; -import io.kubernetes.client.openapi.models.V1alpha1ValidatingAdmissionPolicyBindingList; -import io.kubernetes.client.openapi.models.V1alpha1ValidatingAdmissionPolicyList; +import io.kubernetes.client.openapi.models.V1alpha1MutatingAdmissionPolicy; +import io.kubernetes.client.openapi.models.V1alpha1MutatingAdmissionPolicyBinding; +import io.kubernetes.client.openapi.models.V1alpha1MutatingAdmissionPolicyBindingList; +import io.kubernetes.client.openapi.models.V1alpha1MutatingAdmissionPolicyList; import java.lang.reflect.Type; import java.util.ArrayList; @@ -61,9 +61,9 @@ public void setApiClient(ApiClient apiClient) { } /** - * Build call for createValidatingAdmissionPolicy + * Build call for createMutatingAdmissionPolicy * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -79,11 +79,11 @@ public void setApiClient(ApiClient apiClient) { 401 Unauthorized - */ - public okhttp3.Call createValidatingAdmissionPolicyCall(V1alpha1ValidatingAdmissionPolicy body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + public okhttp3.Call createMutatingAdmissionPolicyCall(V1alpha1MutatingAdmissionPolicy body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; // create path and map variables - String localVarPath = "/apis/admissionregistration.k8s.io/v1alpha1/validatingadmissionpolicies"; + String localVarPath = "/apis/admissionregistration.k8s.io/v1alpha1/mutatingadmissionpolicies"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -107,7 +107,7 @@ public okhttp3.Call createValidatingAdmissionPolicyCall(V1alpha1ValidatingAdmiss Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -125,28 +125,28 @@ public okhttp3.Call createValidatingAdmissionPolicyCall(V1alpha1ValidatingAdmiss } @SuppressWarnings("rawtypes") - private okhttp3.Call createValidatingAdmissionPolicyValidateBeforeCall(V1alpha1ValidatingAdmissionPolicy body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call createMutatingAdmissionPolicyValidateBeforeCall(V1alpha1MutatingAdmissionPolicy body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { // verify the required parameter 'body' is set if (body == null) { - throw new ApiException("Missing the required parameter 'body' when calling createValidatingAdmissionPolicy(Async)"); + throw new ApiException("Missing the required parameter 'body' when calling createMutatingAdmissionPolicy(Async)"); } - okhttp3.Call localVarCall = createValidatingAdmissionPolicyCall(body, pretty, dryRun, fieldManager, fieldValidation, _callback); + okhttp3.Call localVarCall = createMutatingAdmissionPolicyCall(body, pretty, dryRun, fieldManager, fieldValidation, _callback); return localVarCall; } /** * - * create a ValidatingAdmissionPolicy + * create a MutatingAdmissionPolicy * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - * @return V1alpha1ValidatingAdmissionPolicy + * @return V1alpha1MutatingAdmissionPolicy * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -157,20 +157,20 @@ private okhttp3.Call createValidatingAdmissionPolicyValidateBeforeCall(V1alpha1V
401 Unauthorized -
*/ - public V1alpha1ValidatingAdmissionPolicy createValidatingAdmissionPolicy(V1alpha1ValidatingAdmissionPolicy body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { - ApiResponse localVarResp = createValidatingAdmissionPolicyWithHttpInfo(body, pretty, dryRun, fieldManager, fieldValidation); + public V1alpha1MutatingAdmissionPolicy createMutatingAdmissionPolicy(V1alpha1MutatingAdmissionPolicy body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { + ApiResponse localVarResp = createMutatingAdmissionPolicyWithHttpInfo(body, pretty, dryRun, fieldManager, fieldValidation); return localVarResp.getData(); } /** * - * create a ValidatingAdmissionPolicy + * create a MutatingAdmissionPolicy * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - * @return ApiResponse<V1alpha1ValidatingAdmissionPolicy> + * @return ApiResponse<V1alpha1MutatingAdmissionPolicy> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -181,17 +181,17 @@ public V1alpha1ValidatingAdmissionPolicy createValidatingAdmissionPolicy(V1alpha
401 Unauthorized -
*/ - public ApiResponse createValidatingAdmissionPolicyWithHttpInfo(V1alpha1ValidatingAdmissionPolicy body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { - okhttp3.Call localVarCall = createValidatingAdmissionPolicyValidateBeforeCall(body, pretty, dryRun, fieldManager, fieldValidation, null); - Type localVarReturnType = new TypeToken(){}.getType(); + public ApiResponse createMutatingAdmissionPolicyWithHttpInfo(V1alpha1MutatingAdmissionPolicy body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { + okhttp3.Call localVarCall = createMutatingAdmissionPolicyValidateBeforeCall(body, pretty, dryRun, fieldManager, fieldValidation, null); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * (asynchronously) - * create a ValidatingAdmissionPolicy + * create a MutatingAdmissionPolicy * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -207,17 +207,17 @@ public ApiResponse createValidatingAdmissionP 401 Unauthorized - */ - public okhttp3.Call createValidatingAdmissionPolicyAsync(V1alpha1ValidatingAdmissionPolicy body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + public okhttp3.Call createMutatingAdmissionPolicyAsync(V1alpha1MutatingAdmissionPolicy body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = createValidatingAdmissionPolicyValidateBeforeCall(body, pretty, dryRun, fieldManager, fieldValidation, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + okhttp3.Call localVarCall = createMutatingAdmissionPolicyValidateBeforeCall(body, pretty, dryRun, fieldManager, fieldValidation, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** - * Build call for createValidatingAdmissionPolicyBinding + * Build call for createMutatingAdmissionPolicyBinding * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -233,11 +233,11 @@ public okhttp3.Call createValidatingAdmissionPolicyAsync(V1alpha1ValidatingAdmis 401 Unauthorized - */ - public okhttp3.Call createValidatingAdmissionPolicyBindingCall(V1alpha1ValidatingAdmissionPolicyBinding body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + public okhttp3.Call createMutatingAdmissionPolicyBindingCall(V1alpha1MutatingAdmissionPolicyBinding body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; // create path and map variables - String localVarPath = "/apis/admissionregistration.k8s.io/v1alpha1/validatingadmissionpolicybindings"; + String localVarPath = "/apis/admissionregistration.k8s.io/v1alpha1/mutatingadmissionpolicybindings"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -261,7 +261,7 @@ public okhttp3.Call createValidatingAdmissionPolicyBindingCall(V1alpha1Validatin Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -279,28 +279,28 @@ public okhttp3.Call createValidatingAdmissionPolicyBindingCall(V1alpha1Validatin } @SuppressWarnings("rawtypes") - private okhttp3.Call createValidatingAdmissionPolicyBindingValidateBeforeCall(V1alpha1ValidatingAdmissionPolicyBinding body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call createMutatingAdmissionPolicyBindingValidateBeforeCall(V1alpha1MutatingAdmissionPolicyBinding body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { // verify the required parameter 'body' is set if (body == null) { - throw new ApiException("Missing the required parameter 'body' when calling createValidatingAdmissionPolicyBinding(Async)"); + throw new ApiException("Missing the required parameter 'body' when calling createMutatingAdmissionPolicyBinding(Async)"); } - okhttp3.Call localVarCall = createValidatingAdmissionPolicyBindingCall(body, pretty, dryRun, fieldManager, fieldValidation, _callback); + okhttp3.Call localVarCall = createMutatingAdmissionPolicyBindingCall(body, pretty, dryRun, fieldManager, fieldValidation, _callback); return localVarCall; } /** * - * create a ValidatingAdmissionPolicyBinding + * create a MutatingAdmissionPolicyBinding * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - * @return V1alpha1ValidatingAdmissionPolicyBinding + * @return V1alpha1MutatingAdmissionPolicyBinding * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -311,20 +311,20 @@ private okhttp3.Call createValidatingAdmissionPolicyBindingValidateBeforeCall(V1
401 Unauthorized -
*/ - public V1alpha1ValidatingAdmissionPolicyBinding createValidatingAdmissionPolicyBinding(V1alpha1ValidatingAdmissionPolicyBinding body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { - ApiResponse localVarResp = createValidatingAdmissionPolicyBindingWithHttpInfo(body, pretty, dryRun, fieldManager, fieldValidation); + public V1alpha1MutatingAdmissionPolicyBinding createMutatingAdmissionPolicyBinding(V1alpha1MutatingAdmissionPolicyBinding body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { + ApiResponse localVarResp = createMutatingAdmissionPolicyBindingWithHttpInfo(body, pretty, dryRun, fieldManager, fieldValidation); return localVarResp.getData(); } /** * - * create a ValidatingAdmissionPolicyBinding + * create a MutatingAdmissionPolicyBinding * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - * @return ApiResponse<V1alpha1ValidatingAdmissionPolicyBinding> + * @return ApiResponse<V1alpha1MutatingAdmissionPolicyBinding> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -335,17 +335,17 @@ public V1alpha1ValidatingAdmissionPolicyBinding createValidatingAdmissionPolicyB
401 Unauthorized -
*/ - public ApiResponse createValidatingAdmissionPolicyBindingWithHttpInfo(V1alpha1ValidatingAdmissionPolicyBinding body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { - okhttp3.Call localVarCall = createValidatingAdmissionPolicyBindingValidateBeforeCall(body, pretty, dryRun, fieldManager, fieldValidation, null); - Type localVarReturnType = new TypeToken(){}.getType(); + public ApiResponse createMutatingAdmissionPolicyBindingWithHttpInfo(V1alpha1MutatingAdmissionPolicyBinding body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { + okhttp3.Call localVarCall = createMutatingAdmissionPolicyBindingValidateBeforeCall(body, pretty, dryRun, fieldManager, fieldValidation, null); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * (asynchronously) - * create a ValidatingAdmissionPolicyBinding + * create a MutatingAdmissionPolicyBinding * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -361,20 +361,21 @@ public ApiResponse createValidatingAdm 401 Unauthorized - */ - public okhttp3.Call createValidatingAdmissionPolicyBindingAsync(V1alpha1ValidatingAdmissionPolicyBinding body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + public okhttp3.Call createMutatingAdmissionPolicyBindingAsync(V1alpha1MutatingAdmissionPolicyBinding body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = createValidatingAdmissionPolicyBindingValidateBeforeCall(body, pretty, dryRun, fieldManager, fieldValidation, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + okhttp3.Call localVarCall = createMutatingAdmissionPolicyBindingValidateBeforeCall(body, pretty, dryRun, fieldManager, fieldValidation, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** - * Build call for deleteCollectionValidatingAdmissionPolicy - * @param pretty If 'true', then the output is pretty printed. (optional) + * Build call for deleteCollectionMutatingAdmissionPolicy + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param _continue 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) * @param dryRun 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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @param orphanDependents 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) @@ -394,11 +395,11 @@ public okhttp3.Call createValidatingAdmissionPolicyBindingAsync(V1alpha1Validati 401 Unauthorized - */ - public okhttp3.Call deleteCollectionValidatingAdmissionPolicyCall(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + public okhttp3.Call deleteCollectionMutatingAdmissionPolicyCall(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; // create path and map variables - String localVarPath = "/apis/admissionregistration.k8s.io/v1alpha1/validatingadmissionpolicies"; + String localVarPath = "/apis/admissionregistration.k8s.io/v1alpha1/mutatingadmissionpolicies"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -422,6 +423,10 @@ public okhttp3.Call deleteCollectionValidatingAdmissionPolicyCall(String pretty, localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); } + if (ignoreStoreReadErrorWithClusterBreakingPotential != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("ignoreStoreReadErrorWithClusterBreakingPotential", ignoreStoreReadErrorWithClusterBreakingPotential)); + } + if (labelSelector != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); } @@ -458,7 +463,7 @@ public okhttp3.Call deleteCollectionValidatingAdmissionPolicyCall(String pretty, Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -476,22 +481,23 @@ public okhttp3.Call deleteCollectionValidatingAdmissionPolicyCall(String pretty, } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteCollectionValidatingAdmissionPolicyValidateBeforeCall(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionMutatingAdmissionPolicyValidateBeforeCall(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = deleteCollectionValidatingAdmissionPolicyCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + okhttp3.Call localVarCall = deleteCollectionMutatingAdmissionPolicyCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); return localVarCall; } /** * - * delete collection of ValidatingAdmissionPolicy - * @param pretty If 'true', then the output is pretty printed. (optional) + * delete collection of MutatingAdmissionPolicy + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param _continue 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) * @param dryRun 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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @param orphanDependents 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) @@ -510,19 +516,20 @@ private okhttp3.Call deleteCollectionValidatingAdmissionPolicyValidateBeforeCall 401 Unauthorized - */ - public V1Status deleteCollectionValidatingAdmissionPolicy(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body) throws ApiException { - ApiResponse localVarResp = deleteCollectionValidatingAdmissionPolicyWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); + public V1Status deleteCollectionMutatingAdmissionPolicy(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body) throws ApiException { + ApiResponse localVarResp = deleteCollectionMutatingAdmissionPolicyWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); return localVarResp.getData(); } /** * - * delete collection of ValidatingAdmissionPolicy - * @param pretty If 'true', then the output is pretty printed. (optional) + * delete collection of MutatingAdmissionPolicy + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param _continue 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) * @param dryRun 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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @param orphanDependents 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) @@ -541,20 +548,21 @@ public V1Status deleteCollectionValidatingAdmissionPolicy(String pretty, String 401 Unauthorized - */ - public ApiResponse deleteCollectionValidatingAdmissionPolicyWithHttpInfo(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body) throws ApiException { - okhttp3.Call localVarCall = deleteCollectionValidatingAdmissionPolicyValidateBeforeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, null); + public ApiResponse deleteCollectionMutatingAdmissionPolicyWithHttpInfo(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteCollectionMutatingAdmissionPolicyValidateBeforeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * (asynchronously) - * delete collection of ValidatingAdmissionPolicy - * @param pretty If 'true', then the output is pretty printed. (optional) + * delete collection of MutatingAdmissionPolicy + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param _continue 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) * @param dryRun 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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @param orphanDependents 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) @@ -574,20 +582,21 @@ public ApiResponse deleteCollectionValidatingAdmissionPolicyWithHttpIn 401 Unauthorized - */ - public okhttp3.Call deleteCollectionValidatingAdmissionPolicyAsync(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + public okhttp3.Call deleteCollectionMutatingAdmissionPolicyAsync(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = deleteCollectionValidatingAdmissionPolicyValidateBeforeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + okhttp3.Call localVarCall = deleteCollectionMutatingAdmissionPolicyValidateBeforeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** - * Build call for deleteCollectionValidatingAdmissionPolicyBinding - * @param pretty If 'true', then the output is pretty printed. (optional) + * Build call for deleteCollectionMutatingAdmissionPolicyBinding + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param _continue 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) * @param dryRun 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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @param orphanDependents 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) @@ -607,11 +616,11 @@ public okhttp3.Call deleteCollectionValidatingAdmissionPolicyAsync(String pretty 401 Unauthorized - */ - public okhttp3.Call deleteCollectionValidatingAdmissionPolicyBindingCall(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + public okhttp3.Call deleteCollectionMutatingAdmissionPolicyBindingCall(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; // create path and map variables - String localVarPath = "/apis/admissionregistration.k8s.io/v1alpha1/validatingadmissionpolicybindings"; + String localVarPath = "/apis/admissionregistration.k8s.io/v1alpha1/mutatingadmissionpolicybindings"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -635,6 +644,10 @@ public okhttp3.Call deleteCollectionValidatingAdmissionPolicyBindingCall(String localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); } + if (ignoreStoreReadErrorWithClusterBreakingPotential != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("ignoreStoreReadErrorWithClusterBreakingPotential", ignoreStoreReadErrorWithClusterBreakingPotential)); + } + if (labelSelector != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); } @@ -671,7 +684,7 @@ public okhttp3.Call deleteCollectionValidatingAdmissionPolicyBindingCall(String Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -689,22 +702,23 @@ public okhttp3.Call deleteCollectionValidatingAdmissionPolicyBindingCall(String } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteCollectionValidatingAdmissionPolicyBindingValidateBeforeCall(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionMutatingAdmissionPolicyBindingValidateBeforeCall(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = deleteCollectionValidatingAdmissionPolicyBindingCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + okhttp3.Call localVarCall = deleteCollectionMutatingAdmissionPolicyBindingCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); return localVarCall; } /** * - * delete collection of ValidatingAdmissionPolicyBinding - * @param pretty If 'true', then the output is pretty printed. (optional) + * delete collection of MutatingAdmissionPolicyBinding + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param _continue 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) * @param dryRun 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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @param orphanDependents 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) @@ -723,19 +737,20 @@ private okhttp3.Call deleteCollectionValidatingAdmissionPolicyBindingValidateBef 401 Unauthorized - */ - public V1Status deleteCollectionValidatingAdmissionPolicyBinding(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body) throws ApiException { - ApiResponse localVarResp = deleteCollectionValidatingAdmissionPolicyBindingWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); + public V1Status deleteCollectionMutatingAdmissionPolicyBinding(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body) throws ApiException { + ApiResponse localVarResp = deleteCollectionMutatingAdmissionPolicyBindingWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); return localVarResp.getData(); } /** * - * delete collection of ValidatingAdmissionPolicyBinding - * @param pretty If 'true', then the output is pretty printed. (optional) + * delete collection of MutatingAdmissionPolicyBinding + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param _continue 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) * @param dryRun 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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @param orphanDependents 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) @@ -754,20 +769,21 @@ public V1Status deleteCollectionValidatingAdmissionPolicyBinding(String pretty, 401 Unauthorized - */ - public ApiResponse deleteCollectionValidatingAdmissionPolicyBindingWithHttpInfo(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body) throws ApiException { - okhttp3.Call localVarCall = deleteCollectionValidatingAdmissionPolicyBindingValidateBeforeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, null); + public ApiResponse deleteCollectionMutatingAdmissionPolicyBindingWithHttpInfo(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteCollectionMutatingAdmissionPolicyBindingValidateBeforeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * (asynchronously) - * delete collection of ValidatingAdmissionPolicyBinding - * @param pretty If 'true', then the output is pretty printed. (optional) + * delete collection of MutatingAdmissionPolicyBinding + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param _continue 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) * @param dryRun 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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @param orphanDependents 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) @@ -787,19 +803,20 @@ public ApiResponse deleteCollectionValidatingAdmissionPolicyBindingWit 401 Unauthorized - */ - public okhttp3.Call deleteCollectionValidatingAdmissionPolicyBindingAsync(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + public okhttp3.Call deleteCollectionMutatingAdmissionPolicyBindingAsync(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = deleteCollectionValidatingAdmissionPolicyBindingValidateBeforeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + okhttp3.Call localVarCall = deleteCollectionMutatingAdmissionPolicyBindingValidateBeforeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** - * Build call for deleteValidatingAdmissionPolicy - * @param name name of the ValidatingAdmissionPolicy (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * Build call for deleteMutatingAdmissionPolicy + * @param name name of the MutatingAdmissionPolicy (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @param orphanDependents 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) * @param propagationPolicy 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. (optional) * @param body (optional) @@ -814,11 +831,11 @@ public okhttp3.Call deleteCollectionValidatingAdmissionPolicyBindingAsync(String 401 Unauthorized - */ - public okhttp3.Call deleteValidatingAdmissionPolicyCall(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + public okhttp3.Call deleteMutatingAdmissionPolicyCall(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; // create path and map variables - String localVarPath = "/apis/admissionregistration.k8s.io/v1alpha1/validatingadmissionpolicies/{name}" + String localVarPath = "/apis/admissionregistration.k8s.io/v1alpha1/mutatingadmissionpolicies/{name}" .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); @@ -835,6 +852,10 @@ public okhttp3.Call deleteValidatingAdmissionPolicyCall(String name, String pret localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); } + if (ignoreStoreReadErrorWithClusterBreakingPotential != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("ignoreStoreReadErrorWithClusterBreakingPotential", ignoreStoreReadErrorWithClusterBreakingPotential)); + } + if (orphanDependents != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("orphanDependents", orphanDependents)); } @@ -847,7 +868,7 @@ public okhttp3.Call deleteValidatingAdmissionPolicyCall(String name, String pret Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -865,26 +886,27 @@ public okhttp3.Call deleteValidatingAdmissionPolicyCall(String name, String pret } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteValidatingAdmissionPolicyValidateBeforeCall(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteMutatingAdmissionPolicyValidateBeforeCall(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { - throw new ApiException("Missing the required parameter 'name' when calling deleteValidatingAdmissionPolicy(Async)"); + throw new ApiException("Missing the required parameter 'name' when calling deleteMutatingAdmissionPolicy(Async)"); } - okhttp3.Call localVarCall = deleteValidatingAdmissionPolicyCall(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); + okhttp3.Call localVarCall = deleteMutatingAdmissionPolicyCall(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); return localVarCall; } /** * - * delete a ValidatingAdmissionPolicy - * @param name name of the ValidatingAdmissionPolicy (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * delete a MutatingAdmissionPolicy + * @param name name of the MutatingAdmissionPolicy (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @param orphanDependents 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) * @param propagationPolicy 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. (optional) * @param body (optional) @@ -898,18 +920,19 @@ private okhttp3.Call deleteValidatingAdmissionPolicyValidateBeforeCall(String na 401 Unauthorized - */ - public V1Status deleteValidatingAdmissionPolicy(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { - ApiResponse localVarResp = deleteValidatingAdmissionPolicyWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body); + public V1Status deleteMutatingAdmissionPolicy(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { + ApiResponse localVarResp = deleteMutatingAdmissionPolicyWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body); return localVarResp.getData(); } /** * - * delete a ValidatingAdmissionPolicy - * @param name name of the ValidatingAdmissionPolicy (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * delete a MutatingAdmissionPolicy + * @param name name of the MutatingAdmissionPolicy (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @param orphanDependents 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) * @param propagationPolicy 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. (optional) * @param body (optional) @@ -923,19 +946,20 @@ public V1Status deleteValidatingAdmissionPolicy(String name, String pretty, Stri 401 Unauthorized - */ - public ApiResponse deleteValidatingAdmissionPolicyWithHttpInfo(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { - okhttp3.Call localVarCall = deleteValidatingAdmissionPolicyValidateBeforeCall(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, null); + public ApiResponse deleteMutatingAdmissionPolicyWithHttpInfo(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteMutatingAdmissionPolicyValidateBeforeCall(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * (asynchronously) - * delete a ValidatingAdmissionPolicy - * @param name name of the ValidatingAdmissionPolicy (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * delete a MutatingAdmissionPolicy + * @param name name of the MutatingAdmissionPolicy (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @param orphanDependents 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) * @param propagationPolicy 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. (optional) * @param body (optional) @@ -950,19 +974,20 @@ public ApiResponse deleteValidatingAdmissionPolicyWithHttpInfo(String 401 Unauthorized - */ - public okhttp3.Call deleteValidatingAdmissionPolicyAsync(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + public okhttp3.Call deleteMutatingAdmissionPolicyAsync(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = deleteValidatingAdmissionPolicyValidateBeforeCall(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); + okhttp3.Call localVarCall = deleteMutatingAdmissionPolicyValidateBeforeCall(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** - * Build call for deleteValidatingAdmissionPolicyBinding - * @param name name of the ValidatingAdmissionPolicyBinding (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * Build call for deleteMutatingAdmissionPolicyBinding + * @param name name of the MutatingAdmissionPolicyBinding (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @param orphanDependents 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) * @param propagationPolicy 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. (optional) * @param body (optional) @@ -977,11 +1002,11 @@ public okhttp3.Call deleteValidatingAdmissionPolicyAsync(String name, String pre 401 Unauthorized - */ - public okhttp3.Call deleteValidatingAdmissionPolicyBindingCall(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + public okhttp3.Call deleteMutatingAdmissionPolicyBindingCall(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; // create path and map variables - String localVarPath = "/apis/admissionregistration.k8s.io/v1alpha1/validatingadmissionpolicybindings/{name}" + String localVarPath = "/apis/admissionregistration.k8s.io/v1alpha1/mutatingadmissionpolicybindings/{name}" .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); @@ -998,6 +1023,10 @@ public okhttp3.Call deleteValidatingAdmissionPolicyBindingCall(String name, Stri localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); } + if (ignoreStoreReadErrorWithClusterBreakingPotential != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("ignoreStoreReadErrorWithClusterBreakingPotential", ignoreStoreReadErrorWithClusterBreakingPotential)); + } + if (orphanDependents != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("orphanDependents", orphanDependents)); } @@ -1010,7 +1039,7 @@ public okhttp3.Call deleteValidatingAdmissionPolicyBindingCall(String name, Stri Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -1028,26 +1057,27 @@ public okhttp3.Call deleteValidatingAdmissionPolicyBindingCall(String name, Stri } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteValidatingAdmissionPolicyBindingValidateBeforeCall(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteMutatingAdmissionPolicyBindingValidateBeforeCall(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { - throw new ApiException("Missing the required parameter 'name' when calling deleteValidatingAdmissionPolicyBinding(Async)"); + throw new ApiException("Missing the required parameter 'name' when calling deleteMutatingAdmissionPolicyBinding(Async)"); } - okhttp3.Call localVarCall = deleteValidatingAdmissionPolicyBindingCall(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); + okhttp3.Call localVarCall = deleteMutatingAdmissionPolicyBindingCall(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); return localVarCall; } /** * - * delete a ValidatingAdmissionPolicyBinding - * @param name name of the ValidatingAdmissionPolicyBinding (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * delete a MutatingAdmissionPolicyBinding + * @param name name of the MutatingAdmissionPolicyBinding (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @param orphanDependents 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) * @param propagationPolicy 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. (optional) * @param body (optional) @@ -1061,18 +1091,19 @@ private okhttp3.Call deleteValidatingAdmissionPolicyBindingValidateBeforeCall(St 401 Unauthorized - */ - public V1Status deleteValidatingAdmissionPolicyBinding(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { - ApiResponse localVarResp = deleteValidatingAdmissionPolicyBindingWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body); + public V1Status deleteMutatingAdmissionPolicyBinding(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { + ApiResponse localVarResp = deleteMutatingAdmissionPolicyBindingWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body); return localVarResp.getData(); } /** * - * delete a ValidatingAdmissionPolicyBinding - * @param name name of the ValidatingAdmissionPolicyBinding (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * delete a MutatingAdmissionPolicyBinding + * @param name name of the MutatingAdmissionPolicyBinding (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @param orphanDependents 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) * @param propagationPolicy 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. (optional) * @param body (optional) @@ -1086,19 +1117,20 @@ public V1Status deleteValidatingAdmissionPolicyBinding(String name, String prett 401 Unauthorized - */ - public ApiResponse deleteValidatingAdmissionPolicyBindingWithHttpInfo(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { - okhttp3.Call localVarCall = deleteValidatingAdmissionPolicyBindingValidateBeforeCall(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, null); + public ApiResponse deleteMutatingAdmissionPolicyBindingWithHttpInfo(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteMutatingAdmissionPolicyBindingValidateBeforeCall(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * (asynchronously) - * delete a ValidatingAdmissionPolicyBinding - * @param name name of the ValidatingAdmissionPolicyBinding (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * delete a MutatingAdmissionPolicyBinding + * @param name name of the MutatingAdmissionPolicyBinding (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @param orphanDependents 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) * @param propagationPolicy 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. (optional) * @param body (optional) @@ -1113,9 +1145,9 @@ public ApiResponse deleteValidatingAdmissionPolicyBindingWithHttpInfo( 401 Unauthorized - */ - public okhttp3.Call deleteValidatingAdmissionPolicyBindingAsync(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + public okhttp3.Call deleteMutatingAdmissionPolicyBindingAsync(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = deleteValidatingAdmissionPolicyBindingValidateBeforeCall(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); + okhttp3.Call localVarCall = deleteMutatingAdmissionPolicyBindingValidateBeforeCall(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -1144,7 +1176,7 @@ public okhttp3.Call getAPIResourcesCall(final ApiCallback _callback) throws ApiE Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -1226,8 +1258,8 @@ public okhttp3.Call getAPIResourcesAsync(final ApiCallback _c return localVarCall; } /** - * Build call for listValidatingAdmissionPolicy - * @param pretty If 'true', then the output is pretty printed. (optional) + * Build call for listMutatingAdmissionPolicy + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param allowWatchBookmarks 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. (optional) * @param _continue 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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) @@ -1248,11 +1280,11 @@ public okhttp3.Call getAPIResourcesAsync(final ApiCallback _c 401 Unauthorized - */ - public okhttp3.Call listValidatingAdmissionPolicyCall(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + public okhttp3.Call listMutatingAdmissionPolicyCall(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; // create path and map variables - String localVarPath = "/apis/admissionregistration.k8s.io/v1alpha1/validatingadmissionpolicies"; + String localVarPath = "/apis/admissionregistration.k8s.io/v1alpha1/mutatingadmissionpolicies"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -1304,7 +1336,7 @@ public okhttp3.Call listValidatingAdmissionPolicyCall(String pretty, Boolean all Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch", "application/cbor-seq" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -1322,18 +1354,18 @@ public okhttp3.Call listValidatingAdmissionPolicyCall(String pretty, Boolean all } @SuppressWarnings("rawtypes") - private okhttp3.Call listValidatingAdmissionPolicyValidateBeforeCall(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listMutatingAdmissionPolicyValidateBeforeCall(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = listValidatingAdmissionPolicyCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + okhttp3.Call localVarCall = listMutatingAdmissionPolicyCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); return localVarCall; } /** * - * list or watch objects of kind ValidatingAdmissionPolicy - * @param pretty If 'true', then the output is pretty printed. (optional) + * list or watch objects of kind MutatingAdmissionPolicy + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param allowWatchBookmarks 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. (optional) * @param _continue 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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) @@ -1344,7 +1376,7 @@ private okhttp3.Call listValidatingAdmissionPolicyValidateBeforeCall(String pret * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @return V1alpha1ValidatingAdmissionPolicyList + * @return V1alpha1MutatingAdmissionPolicyList * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -1353,15 +1385,15 @@ private okhttp3.Call listValidatingAdmissionPolicyValidateBeforeCall(String pret
401 Unauthorized -
*/ - public V1alpha1ValidatingAdmissionPolicyList listValidatingAdmissionPolicy(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch) throws ApiException { - ApiResponse localVarResp = listValidatingAdmissionPolicyWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + public V1alpha1MutatingAdmissionPolicyList listMutatingAdmissionPolicy(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch) throws ApiException { + ApiResponse localVarResp = listMutatingAdmissionPolicyWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); return localVarResp.getData(); } /** * - * list or watch objects of kind ValidatingAdmissionPolicy - * @param pretty If 'true', then the output is pretty printed. (optional) + * list or watch objects of kind MutatingAdmissionPolicy + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param allowWatchBookmarks 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. (optional) * @param _continue 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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) @@ -1372,7 +1404,7 @@ public V1alpha1ValidatingAdmissionPolicyList listValidatingAdmissionPolicy(Strin * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @return ApiResponse<V1alpha1ValidatingAdmissionPolicyList> + * @return ApiResponse<V1alpha1MutatingAdmissionPolicyList> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -1381,16 +1413,16 @@ public V1alpha1ValidatingAdmissionPolicyList listValidatingAdmissionPolicy(Strin
401 Unauthorized -
*/ - public ApiResponse listValidatingAdmissionPolicyWithHttpInfo(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch) throws ApiException { - okhttp3.Call localVarCall = listValidatingAdmissionPolicyValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, null); - Type localVarReturnType = new TypeToken(){}.getType(); + public ApiResponse listMutatingAdmissionPolicyWithHttpInfo(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch) throws ApiException { + okhttp3.Call localVarCall = listMutatingAdmissionPolicyValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, null); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * (asynchronously) - * list or watch objects of kind ValidatingAdmissionPolicy - * @param pretty If 'true', then the output is pretty printed. (optional) + * list or watch objects of kind MutatingAdmissionPolicy + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param allowWatchBookmarks 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. (optional) * @param _continue 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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) @@ -1411,16 +1443,16 @@ public ApiResponse listValidatingAdmissio 401 Unauthorized - */ - public okhttp3.Call listValidatingAdmissionPolicyAsync(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + public okhttp3.Call listMutatingAdmissionPolicyAsync(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = listValidatingAdmissionPolicyValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + okhttp3.Call localVarCall = listMutatingAdmissionPolicyValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** - * Build call for listValidatingAdmissionPolicyBinding - * @param pretty If 'true', then the output is pretty printed. (optional) + * Build call for listMutatingAdmissionPolicyBinding + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param allowWatchBookmarks 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. (optional) * @param _continue 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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) @@ -1441,11 +1473,11 @@ public okhttp3.Call listValidatingAdmissionPolicyAsync(String pretty, Boolean al 401 Unauthorized - */ - public okhttp3.Call listValidatingAdmissionPolicyBindingCall(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + public okhttp3.Call listMutatingAdmissionPolicyBindingCall(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; // create path and map variables - String localVarPath = "/apis/admissionregistration.k8s.io/v1alpha1/validatingadmissionpolicybindings"; + String localVarPath = "/apis/admissionregistration.k8s.io/v1alpha1/mutatingadmissionpolicybindings"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -1497,7 +1529,7 @@ public okhttp3.Call listValidatingAdmissionPolicyBindingCall(String pretty, Bool Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch", "application/cbor-seq" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -1515,18 +1547,18 @@ public okhttp3.Call listValidatingAdmissionPolicyBindingCall(String pretty, Bool } @SuppressWarnings("rawtypes") - private okhttp3.Call listValidatingAdmissionPolicyBindingValidateBeforeCall(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listMutatingAdmissionPolicyBindingValidateBeforeCall(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = listValidatingAdmissionPolicyBindingCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + okhttp3.Call localVarCall = listMutatingAdmissionPolicyBindingCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); return localVarCall; } /** * - * list or watch objects of kind ValidatingAdmissionPolicyBinding - * @param pretty If 'true', then the output is pretty printed. (optional) + * list or watch objects of kind MutatingAdmissionPolicyBinding + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param allowWatchBookmarks 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. (optional) * @param _continue 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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) @@ -1537,7 +1569,7 @@ private okhttp3.Call listValidatingAdmissionPolicyBindingValidateBeforeCall(Stri * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @return V1alpha1ValidatingAdmissionPolicyBindingList + * @return V1alpha1MutatingAdmissionPolicyBindingList * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -1546,15 +1578,15 @@ private okhttp3.Call listValidatingAdmissionPolicyBindingValidateBeforeCall(Stri
401 Unauthorized -
*/ - public V1alpha1ValidatingAdmissionPolicyBindingList listValidatingAdmissionPolicyBinding(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch) throws ApiException { - ApiResponse localVarResp = listValidatingAdmissionPolicyBindingWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + public V1alpha1MutatingAdmissionPolicyBindingList listMutatingAdmissionPolicyBinding(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch) throws ApiException { + ApiResponse localVarResp = listMutatingAdmissionPolicyBindingWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); return localVarResp.getData(); } /** * - * list or watch objects of kind ValidatingAdmissionPolicyBinding - * @param pretty If 'true', then the output is pretty printed. (optional) + * list or watch objects of kind MutatingAdmissionPolicyBinding + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param allowWatchBookmarks 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. (optional) * @param _continue 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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) @@ -1565,7 +1597,7 @@ public V1alpha1ValidatingAdmissionPolicyBindingList listValidatingAdmissionPolic * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @return ApiResponse<V1alpha1ValidatingAdmissionPolicyBindingList> + * @return ApiResponse<V1alpha1MutatingAdmissionPolicyBindingList> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -1574,16 +1606,16 @@ public V1alpha1ValidatingAdmissionPolicyBindingList listValidatingAdmissionPolic
401 Unauthorized -
*/ - public ApiResponse listValidatingAdmissionPolicyBindingWithHttpInfo(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch) throws ApiException { - okhttp3.Call localVarCall = listValidatingAdmissionPolicyBindingValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, null); - Type localVarReturnType = new TypeToken(){}.getType(); + public ApiResponse listMutatingAdmissionPolicyBindingWithHttpInfo(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch) throws ApiException { + okhttp3.Call localVarCall = listMutatingAdmissionPolicyBindingValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, null); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * (asynchronously) - * list or watch objects of kind ValidatingAdmissionPolicyBinding - * @param pretty If 'true', then the output is pretty printed. (optional) + * list or watch objects of kind MutatingAdmissionPolicyBinding + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param allowWatchBookmarks 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. (optional) * @param _continue 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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) @@ -1604,18 +1636,18 @@ public ApiResponse listValidatingA 401 Unauthorized - */ - public okhttp3.Call listValidatingAdmissionPolicyBindingAsync(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + public okhttp3.Call listMutatingAdmissionPolicyBindingAsync(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = listValidatingAdmissionPolicyBindingValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + okhttp3.Call localVarCall = listMutatingAdmissionPolicyBindingValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** - * Build call for patchValidatingAdmissionPolicy - * @param name name of the ValidatingAdmissionPolicy (required) + * Build call for patchMutatingAdmissionPolicy + * @param name name of the MutatingAdmissionPolicy (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -1631,11 +1663,11 @@ public okhttp3.Call listValidatingAdmissionPolicyBindingAsync(String pretty, Boo 401 Unauthorized - */ - public okhttp3.Call patchValidatingAdmissionPolicyCall(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + public okhttp3.Call patchMutatingAdmissionPolicyCall(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; // create path and map variables - String localVarPath = "/apis/admissionregistration.k8s.io/v1alpha1/validatingadmissionpolicies/{name}" + String localVarPath = "/apis/admissionregistration.k8s.io/v1alpha1/mutatingadmissionpolicies/{name}" .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); @@ -1664,7 +1696,7 @@ public okhttp3.Call patchValidatingAdmissionPolicyCall(String name, V1Patch body Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -1682,35 +1714,35 @@ public okhttp3.Call patchValidatingAdmissionPolicyCall(String name, V1Patch body } @SuppressWarnings("rawtypes") - private okhttp3.Call patchValidatingAdmissionPolicyValidateBeforeCall(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + private okhttp3.Call patchMutatingAdmissionPolicyValidateBeforeCall(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { - throw new ApiException("Missing the required parameter 'name' when calling patchValidatingAdmissionPolicy(Async)"); + throw new ApiException("Missing the required parameter 'name' when calling patchMutatingAdmissionPolicy(Async)"); } // verify the required parameter 'body' is set if (body == null) { - throw new ApiException("Missing the required parameter 'body' when calling patchValidatingAdmissionPolicy(Async)"); + throw new ApiException("Missing the required parameter 'body' when calling patchMutatingAdmissionPolicy(Async)"); } - okhttp3.Call localVarCall = patchValidatingAdmissionPolicyCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); + okhttp3.Call localVarCall = patchMutatingAdmissionPolicyCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); return localVarCall; } /** * - * partially update the specified ValidatingAdmissionPolicy - * @param name name of the ValidatingAdmissionPolicy (required) + * partially update the specified MutatingAdmissionPolicy + * @param name name of the MutatingAdmissionPolicy (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) - * @return V1alpha1ValidatingAdmissionPolicy + * @return V1alpha1MutatingAdmissionPolicy * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -1720,22 +1752,22 @@ private okhttp3.Call patchValidatingAdmissionPolicyValidateBeforeCall(String nam
401 Unauthorized -
*/ - public V1alpha1ValidatingAdmissionPolicy patchValidatingAdmissionPolicy(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force) throws ApiException { - ApiResponse localVarResp = patchValidatingAdmissionPolicyWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force); + public V1alpha1MutatingAdmissionPolicy patchMutatingAdmissionPolicy(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force) throws ApiException { + ApiResponse localVarResp = patchMutatingAdmissionPolicyWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force); return localVarResp.getData(); } /** * - * partially update the specified ValidatingAdmissionPolicy - * @param name name of the ValidatingAdmissionPolicy (required) + * partially update the specified MutatingAdmissionPolicy + * @param name name of the MutatingAdmissionPolicy (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) - * @return ApiResponse<V1alpha1ValidatingAdmissionPolicy> + * @return ApiResponse<V1alpha1MutatingAdmissionPolicy> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -1745,18 +1777,18 @@ public V1alpha1ValidatingAdmissionPolicy patchValidatingAdmissionPolicy(String n
401 Unauthorized -
*/ - public ApiResponse patchValidatingAdmissionPolicyWithHttpInfo(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force) throws ApiException { - okhttp3.Call localVarCall = patchValidatingAdmissionPolicyValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, null); - Type localVarReturnType = new TypeToken(){}.getType(); + public ApiResponse patchMutatingAdmissionPolicyWithHttpInfo(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force) throws ApiException { + okhttp3.Call localVarCall = patchMutatingAdmissionPolicyValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, null); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * (asynchronously) - * partially update the specified ValidatingAdmissionPolicy - * @param name name of the ValidatingAdmissionPolicy (required) + * partially update the specified MutatingAdmissionPolicy + * @param name name of the MutatingAdmissionPolicy (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -1772,18 +1804,18 @@ public ApiResponse patchValidatingAdmissionPo 401 Unauthorized - */ - public okhttp3.Call patchValidatingAdmissionPolicyAsync(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + public okhttp3.Call patchMutatingAdmissionPolicyAsync(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = patchValidatingAdmissionPolicyValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + okhttp3.Call localVarCall = patchMutatingAdmissionPolicyValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** - * Build call for patchValidatingAdmissionPolicyBinding - * @param name name of the ValidatingAdmissionPolicyBinding (required) + * Build call for patchMutatingAdmissionPolicyBinding + * @param name name of the MutatingAdmissionPolicyBinding (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -1799,11 +1831,11 @@ public okhttp3.Call patchValidatingAdmissionPolicyAsync(String name, V1Patch bod 401 Unauthorized - */ - public okhttp3.Call patchValidatingAdmissionPolicyBindingCall(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + public okhttp3.Call patchMutatingAdmissionPolicyBindingCall(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; // create path and map variables - String localVarPath = "/apis/admissionregistration.k8s.io/v1alpha1/validatingadmissionpolicybindings/{name}" + String localVarPath = "/apis/admissionregistration.k8s.io/v1alpha1/mutatingadmissionpolicybindings/{name}" .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); @@ -1832,7 +1864,7 @@ public okhttp3.Call patchValidatingAdmissionPolicyBindingCall(String name, V1Pat Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -1850,35 +1882,35 @@ public okhttp3.Call patchValidatingAdmissionPolicyBindingCall(String name, V1Pat } @SuppressWarnings("rawtypes") - private okhttp3.Call patchValidatingAdmissionPolicyBindingValidateBeforeCall(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + private okhttp3.Call patchMutatingAdmissionPolicyBindingValidateBeforeCall(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { - throw new ApiException("Missing the required parameter 'name' when calling patchValidatingAdmissionPolicyBinding(Async)"); + throw new ApiException("Missing the required parameter 'name' when calling patchMutatingAdmissionPolicyBinding(Async)"); } // verify the required parameter 'body' is set if (body == null) { - throw new ApiException("Missing the required parameter 'body' when calling patchValidatingAdmissionPolicyBinding(Async)"); + throw new ApiException("Missing the required parameter 'body' when calling patchMutatingAdmissionPolicyBinding(Async)"); } - okhttp3.Call localVarCall = patchValidatingAdmissionPolicyBindingCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); + okhttp3.Call localVarCall = patchMutatingAdmissionPolicyBindingCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); return localVarCall; } /** * - * partially update the specified ValidatingAdmissionPolicyBinding - * @param name name of the ValidatingAdmissionPolicyBinding (required) + * partially update the specified MutatingAdmissionPolicyBinding + * @param name name of the MutatingAdmissionPolicyBinding (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) - * @return V1alpha1ValidatingAdmissionPolicyBinding + * @return V1alpha1MutatingAdmissionPolicyBinding * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -1888,22 +1920,22 @@ private okhttp3.Call patchValidatingAdmissionPolicyBindingValidateBeforeCall(Str
401 Unauthorized -
*/ - public V1alpha1ValidatingAdmissionPolicyBinding patchValidatingAdmissionPolicyBinding(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force) throws ApiException { - ApiResponse localVarResp = patchValidatingAdmissionPolicyBindingWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force); + public V1alpha1MutatingAdmissionPolicyBinding patchMutatingAdmissionPolicyBinding(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force) throws ApiException { + ApiResponse localVarResp = patchMutatingAdmissionPolicyBindingWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force); return localVarResp.getData(); } /** * - * partially update the specified ValidatingAdmissionPolicyBinding - * @param name name of the ValidatingAdmissionPolicyBinding (required) + * partially update the specified MutatingAdmissionPolicyBinding + * @param name name of the MutatingAdmissionPolicyBinding (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) - * @return ApiResponse<V1alpha1ValidatingAdmissionPolicyBinding> + * @return ApiResponse<V1alpha1MutatingAdmissionPolicyBinding> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -1913,18 +1945,18 @@ public V1alpha1ValidatingAdmissionPolicyBinding patchValidatingAdmissionPolicyBi
401 Unauthorized -
*/ - public ApiResponse patchValidatingAdmissionPolicyBindingWithHttpInfo(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force) throws ApiException { - okhttp3.Call localVarCall = patchValidatingAdmissionPolicyBindingValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, null); - Type localVarReturnType = new TypeToken(){}.getType(); + public ApiResponse patchMutatingAdmissionPolicyBindingWithHttpInfo(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force) throws ApiException { + okhttp3.Call localVarCall = patchMutatingAdmissionPolicyBindingValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, null); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * (asynchronously) - * partially update the specified ValidatingAdmissionPolicyBinding - * @param name name of the ValidatingAdmissionPolicyBinding (required) + * partially update the specified MutatingAdmissionPolicyBinding + * @param name name of the MutatingAdmissionPolicyBinding (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -1940,22 +1972,17 @@ public ApiResponse patchValidatingAdmi 401 Unauthorized - */ - public okhttp3.Call patchValidatingAdmissionPolicyBindingAsync(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + public okhttp3.Call patchMutatingAdmissionPolicyBindingAsync(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = patchValidatingAdmissionPolicyBindingValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + okhttp3.Call localVarCall = patchMutatingAdmissionPolicyBindingValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** - * Build call for patchValidatingAdmissionPolicyStatus - * @param name name of the ValidatingAdmissionPolicy (required) - * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) - * @param dryRun 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) - * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) - * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) + * Build call for readMutatingAdmissionPolicy + * @param name name of the MutatingAdmissionPolicy (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -1963,177 +1990,14 @@ public okhttp3.Call patchValidatingAdmissionPolicyBindingAsync(String name, V1Pa - - -
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
- */ - public okhttp3.Call patchValidatingAdmissionPolicyStatusCall(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { - Object localVarPostBody = body; - - // create path and map variables - String localVarPath = "/apis/admissionregistration.k8s.io/v1alpha1/validatingadmissionpolicies/{name}/status" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); - } - - if (dryRun != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); - } - - if (fieldManager != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); - } - - if (fieldValidation != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); - } - - if (force != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("force", force)); - } - - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - "application/json" - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); - - String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call patchValidatingAdmissionPolicyStatusValidateBeforeCall(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { - - // verify the required parameter 'name' is set - if (name == null) { - throw new ApiException("Missing the required parameter 'name' when calling patchValidatingAdmissionPolicyStatus(Async)"); - } - - // verify the required parameter 'body' is set - if (body == null) { - throw new ApiException("Missing the required parameter 'body' when calling patchValidatingAdmissionPolicyStatus(Async)"); - } - - - okhttp3.Call localVarCall = patchValidatingAdmissionPolicyStatusCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); - return localVarCall; - - } - - /** - * - * partially update status of the specified ValidatingAdmissionPolicy - * @param name name of the ValidatingAdmissionPolicy (required) - * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) - * @param dryRun 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) - * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) - * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) - * @return V1alpha1ValidatingAdmissionPolicy - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - -
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public V1alpha1ValidatingAdmissionPolicy patchValidatingAdmissionPolicyStatus(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force) throws ApiException { - ApiResponse localVarResp = patchValidatingAdmissionPolicyStatusWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force); - return localVarResp.getData(); - } - - /** - * - * partially update status of the specified ValidatingAdmissionPolicy - * @param name name of the ValidatingAdmissionPolicy (required) - * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) - * @param dryRun 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) - * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) - * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) - * @return ApiResponse<V1alpha1ValidatingAdmissionPolicy> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - -
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
- */ - public ApiResponse patchValidatingAdmissionPolicyStatusWithHttpInfo(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force) throws ApiException { - okhttp3.Call localVarCall = patchValidatingAdmissionPolicyStatusValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * (asynchronously) - * partially update status of the specified ValidatingAdmissionPolicy - * @param name name of the ValidatingAdmissionPolicy (required) - * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) - * @param dryRun 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) - * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) - * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - - - -
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
- */ - public okhttp3.Call patchValidatingAdmissionPolicyStatusAsync(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = patchValidatingAdmissionPolicyStatusValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - /** - * Build call for readValidatingAdmissionPolicy - * @param name name of the ValidatingAdmissionPolicy (required) - * @param pretty If 'true', then the output is pretty printed. (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - -
Status Code Description Response Headers
200 OK -
401 Unauthorized -
- */ - public okhttp3.Call readValidatingAdmissionPolicyCall(String name, String pretty, final ApiCallback _callback) throws ApiException { + public okhttp3.Call readMutatingAdmissionPolicyCall(String name, String pretty, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; // create path and map variables - String localVarPath = "/apis/admissionregistration.k8s.io/v1alpha1/validatingadmissionpolicies/{name}" + String localVarPath = "/apis/admissionregistration.k8s.io/v1alpha1/mutatingadmissionpolicies/{name}" .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); @@ -2146,7 +2010,7 @@ public okhttp3.Call readValidatingAdmissionPolicyCall(String name, String pretty Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -2164,25 +2028,25 @@ public okhttp3.Call readValidatingAdmissionPolicyCall(String name, String pretty } @SuppressWarnings("rawtypes") - private okhttp3.Call readValidatingAdmissionPolicyValidateBeforeCall(String name, String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readMutatingAdmissionPolicyValidateBeforeCall(String name, String pretty, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { - throw new ApiException("Missing the required parameter 'name' when calling readValidatingAdmissionPolicy(Async)"); + throw new ApiException("Missing the required parameter 'name' when calling readMutatingAdmissionPolicy(Async)"); } - okhttp3.Call localVarCall = readValidatingAdmissionPolicyCall(name, pretty, _callback); + okhttp3.Call localVarCall = readMutatingAdmissionPolicyCall(name, pretty, _callback); return localVarCall; } /** * - * read the specified ValidatingAdmissionPolicy - * @param name name of the ValidatingAdmissionPolicy (required) - * @param pretty If 'true', then the output is pretty printed. (optional) - * @return V1alpha1ValidatingAdmissionPolicy + * read the specified MutatingAdmissionPolicy + * @param name name of the MutatingAdmissionPolicy (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @return V1alpha1MutatingAdmissionPolicy * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -2191,17 +2055,17 @@ private okhttp3.Call readValidatingAdmissionPolicyValidateBeforeCall(String name
401 Unauthorized -
*/ - public V1alpha1ValidatingAdmissionPolicy readValidatingAdmissionPolicy(String name, String pretty) throws ApiException { - ApiResponse localVarResp = readValidatingAdmissionPolicyWithHttpInfo(name, pretty); + public V1alpha1MutatingAdmissionPolicy readMutatingAdmissionPolicy(String name, String pretty) throws ApiException { + ApiResponse localVarResp = readMutatingAdmissionPolicyWithHttpInfo(name, pretty); return localVarResp.getData(); } /** * - * read the specified ValidatingAdmissionPolicy - * @param name name of the ValidatingAdmissionPolicy (required) - * @param pretty If 'true', then the output is pretty printed. (optional) - * @return ApiResponse<V1alpha1ValidatingAdmissionPolicy> + * read the specified MutatingAdmissionPolicy + * @param name name of the MutatingAdmissionPolicy (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @return ApiResponse<V1alpha1MutatingAdmissionPolicy> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -2210,17 +2074,17 @@ public V1alpha1ValidatingAdmissionPolicy readValidatingAdmissionPolicy(String na
401 Unauthorized -
*/ - public ApiResponse readValidatingAdmissionPolicyWithHttpInfo(String name, String pretty) throws ApiException { - okhttp3.Call localVarCall = readValidatingAdmissionPolicyValidateBeforeCall(name, pretty, null); - Type localVarReturnType = new TypeToken(){}.getType(); + public ApiResponse readMutatingAdmissionPolicyWithHttpInfo(String name, String pretty) throws ApiException { + okhttp3.Call localVarCall = readMutatingAdmissionPolicyValidateBeforeCall(name, pretty, null); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * (asynchronously) - * read the specified ValidatingAdmissionPolicy - * @param name name of the ValidatingAdmissionPolicy (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * read the specified MutatingAdmissionPolicy + * @param name name of the MutatingAdmissionPolicy (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object @@ -2231,17 +2095,17 @@ public ApiResponse readValidatingAdmissionPol 401 Unauthorized - */ - public okhttp3.Call readValidatingAdmissionPolicyAsync(String name, String pretty, final ApiCallback _callback) throws ApiException { + public okhttp3.Call readMutatingAdmissionPolicyAsync(String name, String pretty, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = readValidatingAdmissionPolicyValidateBeforeCall(name, pretty, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + okhttp3.Call localVarCall = readMutatingAdmissionPolicyValidateBeforeCall(name, pretty, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** - * Build call for readValidatingAdmissionPolicyBinding - * @param name name of the ValidatingAdmissionPolicyBinding (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * Build call for readMutatingAdmissionPolicyBinding + * @param name name of the MutatingAdmissionPolicyBinding (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -2252,11 +2116,11 @@ public okhttp3.Call readValidatingAdmissionPolicyAsync(String name, String prett 401 Unauthorized - */ - public okhttp3.Call readValidatingAdmissionPolicyBindingCall(String name, String pretty, final ApiCallback _callback) throws ApiException { + public okhttp3.Call readMutatingAdmissionPolicyBindingCall(String name, String pretty, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; // create path and map variables - String localVarPath = "/apis/admissionregistration.k8s.io/v1alpha1/validatingadmissionpolicybindings/{name}" + String localVarPath = "/apis/admissionregistration.k8s.io/v1alpha1/mutatingadmissionpolicybindings/{name}" .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); @@ -2269,7 +2133,7 @@ public okhttp3.Call readValidatingAdmissionPolicyBindingCall(String name, String Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -2287,25 +2151,25 @@ public okhttp3.Call readValidatingAdmissionPolicyBindingCall(String name, String } @SuppressWarnings("rawtypes") - private okhttp3.Call readValidatingAdmissionPolicyBindingValidateBeforeCall(String name, String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readMutatingAdmissionPolicyBindingValidateBeforeCall(String name, String pretty, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { - throw new ApiException("Missing the required parameter 'name' when calling readValidatingAdmissionPolicyBinding(Async)"); + throw new ApiException("Missing the required parameter 'name' when calling readMutatingAdmissionPolicyBinding(Async)"); } - okhttp3.Call localVarCall = readValidatingAdmissionPolicyBindingCall(name, pretty, _callback); + okhttp3.Call localVarCall = readMutatingAdmissionPolicyBindingCall(name, pretty, _callback); return localVarCall; } /** * - * read the specified ValidatingAdmissionPolicyBinding - * @param name name of the ValidatingAdmissionPolicyBinding (required) - * @param pretty If 'true', then the output is pretty printed. (optional) - * @return V1alpha1ValidatingAdmissionPolicyBinding + * read the specified MutatingAdmissionPolicyBinding + * @param name name of the MutatingAdmissionPolicyBinding (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @return V1alpha1MutatingAdmissionPolicyBinding * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -2314,17 +2178,17 @@ private okhttp3.Call readValidatingAdmissionPolicyBindingValidateBeforeCall(Stri
401 Unauthorized -
*/ - public V1alpha1ValidatingAdmissionPolicyBinding readValidatingAdmissionPolicyBinding(String name, String pretty) throws ApiException { - ApiResponse localVarResp = readValidatingAdmissionPolicyBindingWithHttpInfo(name, pretty); + public V1alpha1MutatingAdmissionPolicyBinding readMutatingAdmissionPolicyBinding(String name, String pretty) throws ApiException { + ApiResponse localVarResp = readMutatingAdmissionPolicyBindingWithHttpInfo(name, pretty); return localVarResp.getData(); } /** * - * read the specified ValidatingAdmissionPolicyBinding - * @param name name of the ValidatingAdmissionPolicyBinding (required) - * @param pretty If 'true', then the output is pretty printed. (optional) - * @return ApiResponse<V1alpha1ValidatingAdmissionPolicyBinding> + * read the specified MutatingAdmissionPolicyBinding + * @param name name of the MutatingAdmissionPolicyBinding (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @return ApiResponse<V1alpha1MutatingAdmissionPolicyBinding> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -2333,17 +2197,17 @@ public V1alpha1ValidatingAdmissionPolicyBinding readValidatingAdmissionPolicyBin
401 Unauthorized -
*/ - public ApiResponse readValidatingAdmissionPolicyBindingWithHttpInfo(String name, String pretty) throws ApiException { - okhttp3.Call localVarCall = readValidatingAdmissionPolicyBindingValidateBeforeCall(name, pretty, null); - Type localVarReturnType = new TypeToken(){}.getType(); + public ApiResponse readMutatingAdmissionPolicyBindingWithHttpInfo(String name, String pretty) throws ApiException { + okhttp3.Call localVarCall = readMutatingAdmissionPolicyBindingValidateBeforeCall(name, pretty, null); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * (asynchronously) - * read the specified ValidatingAdmissionPolicyBinding - * @param name name of the ValidatingAdmissionPolicyBinding (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * read the specified MutatingAdmissionPolicyBinding + * @param name name of the MutatingAdmissionPolicyBinding (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object @@ -2354,301 +2218,18 @@ public ApiResponse readValidatingAdmis 401 Unauthorized - */ - public okhttp3.Call readValidatingAdmissionPolicyBindingAsync(String name, String pretty, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = readValidatingAdmissionPolicyBindingValidateBeforeCall(name, pretty, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - /** - * Build call for readValidatingAdmissionPolicyStatus - * @param name name of the ValidatingAdmissionPolicy (required) - * @param pretty If 'true', then the output is pretty printed. (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - -
Status Code Description Response Headers
200 OK -
401 Unauthorized -
- */ - public okhttp3.Call readValidatingAdmissionPolicyStatusCall(String name, String pretty, final ApiCallback _callback) throws ApiException { - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = "/apis/admissionregistration.k8s.io/v1alpha1/validatingadmissionpolicies/{name}/status" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); - } - - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); - - String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call readValidatingAdmissionPolicyStatusValidateBeforeCall(String name, String pretty, final ApiCallback _callback) throws ApiException { - - // verify the required parameter 'name' is set - if (name == null) { - throw new ApiException("Missing the required parameter 'name' when calling readValidatingAdmissionPolicyStatus(Async)"); - } - - - okhttp3.Call localVarCall = readValidatingAdmissionPolicyStatusCall(name, pretty, _callback); - return localVarCall; - - } - - /** - * - * read status of the specified ValidatingAdmissionPolicy - * @param name name of the ValidatingAdmissionPolicy (required) - * @param pretty If 'true', then the output is pretty printed. (optional) - * @return V1alpha1ValidatingAdmissionPolicy - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Status Code Description Response Headers
200 OK -
401 Unauthorized -
- */ - public V1alpha1ValidatingAdmissionPolicy readValidatingAdmissionPolicyStatus(String name, String pretty) throws ApiException { - ApiResponse localVarResp = readValidatingAdmissionPolicyStatusWithHttpInfo(name, pretty); - return localVarResp.getData(); - } - - /** - * - * read status of the specified ValidatingAdmissionPolicy - * @param name name of the ValidatingAdmissionPolicy (required) - * @param pretty If 'true', then the output is pretty printed. (optional) - * @return ApiResponse<V1alpha1ValidatingAdmissionPolicy> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Status Code Description Response Headers
200 OK -
401 Unauthorized -
- */ - public ApiResponse readValidatingAdmissionPolicyStatusWithHttpInfo(String name, String pretty) throws ApiException { - okhttp3.Call localVarCall = readValidatingAdmissionPolicyStatusValidateBeforeCall(name, pretty, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * (asynchronously) - * read status of the specified ValidatingAdmissionPolicy - * @param name name of the ValidatingAdmissionPolicy (required) - * @param pretty If 'true', then the output is pretty printed. (optional) - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - - -
Status Code Description Response Headers
200 OK -
401 Unauthorized -
- */ - public okhttp3.Call readValidatingAdmissionPolicyStatusAsync(String name, String pretty, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = readValidatingAdmissionPolicyStatusValidateBeforeCall(name, pretty, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - /** - * Build call for replaceValidatingAdmissionPolicy - * @param name name of the ValidatingAdmissionPolicy (required) - * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) - * @param dryRun 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) - * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - - -
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
- */ - public okhttp3.Call replaceValidatingAdmissionPolicyCall(String name, V1alpha1ValidatingAdmissionPolicy body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { - Object localVarPostBody = body; - - // create path and map variables - String localVarPath = "/apis/admissionregistration.k8s.io/v1alpha1/validatingadmissionpolicies/{name}" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); - } - - if (dryRun != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); - } - - if (fieldManager != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); - } - - if (fieldValidation != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); - } - - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - "application/json" - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); - - String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call replaceValidatingAdmissionPolicyValidateBeforeCall(String name, V1alpha1ValidatingAdmissionPolicy body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { - - // verify the required parameter 'name' is set - if (name == null) { - throw new ApiException("Missing the required parameter 'name' when calling replaceValidatingAdmissionPolicy(Async)"); - } - - // verify the required parameter 'body' is set - if (body == null) { - throw new ApiException("Missing the required parameter 'body' when calling replaceValidatingAdmissionPolicy(Async)"); - } - - - okhttp3.Call localVarCall = replaceValidatingAdmissionPolicyCall(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); - return localVarCall; - - } - - /** - * - * replace the specified ValidatingAdmissionPolicy - * @param name name of the ValidatingAdmissionPolicy (required) - * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) - * @param dryRun 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) - * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - * @return V1alpha1ValidatingAdmissionPolicy - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - -
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
- */ - public V1alpha1ValidatingAdmissionPolicy replaceValidatingAdmissionPolicy(String name, V1alpha1ValidatingAdmissionPolicy body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { - ApiResponse localVarResp = replaceValidatingAdmissionPolicyWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation); - return localVarResp.getData(); - } - - /** - * - * replace the specified ValidatingAdmissionPolicy - * @param name name of the ValidatingAdmissionPolicy (required) - * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) - * @param dryRun 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) - * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - * @return ApiResponse<V1alpha1ValidatingAdmissionPolicy> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - -
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
- */ - public ApiResponse replaceValidatingAdmissionPolicyWithHttpInfo(String name, V1alpha1ValidatingAdmissionPolicy body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { - okhttp3.Call localVarCall = replaceValidatingAdmissionPolicyValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * (asynchronously) - * replace the specified ValidatingAdmissionPolicy - * @param name name of the ValidatingAdmissionPolicy (required) - * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) - * @param dryRun 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) - * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - - - -
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
- */ - public okhttp3.Call replaceValidatingAdmissionPolicyAsync(String name, V1alpha1ValidatingAdmissionPolicy body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + public okhttp3.Call readMutatingAdmissionPolicyBindingAsync(String name, String pretty, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = replaceValidatingAdmissionPolicyValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + okhttp3.Call localVarCall = readMutatingAdmissionPolicyBindingValidateBeforeCall(name, pretty, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** - * Build call for replaceValidatingAdmissionPolicyBinding - * @param name name of the ValidatingAdmissionPolicyBinding (required) + * Build call for replaceMutatingAdmissionPolicy + * @param name name of the MutatingAdmissionPolicy (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -2663,11 +2244,11 @@ public okhttp3.Call replaceValidatingAdmissionPolicyAsync(String name, V1alpha1V 401 Unauthorized - */ - public okhttp3.Call replaceValidatingAdmissionPolicyBindingCall(String name, V1alpha1ValidatingAdmissionPolicyBinding body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + public okhttp3.Call replaceMutatingAdmissionPolicyCall(String name, V1alpha1MutatingAdmissionPolicy body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; // create path and map variables - String localVarPath = "/apis/admissionregistration.k8s.io/v1alpha1/validatingadmissionpolicybindings/{name}" + String localVarPath = "/apis/admissionregistration.k8s.io/v1alpha1/mutatingadmissionpolicies/{name}" .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); @@ -2692,7 +2273,7 @@ public okhttp3.Call replaceValidatingAdmissionPolicyBindingCall(String name, V1a Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -2710,34 +2291,34 @@ public okhttp3.Call replaceValidatingAdmissionPolicyBindingCall(String name, V1a } @SuppressWarnings("rawtypes") - private okhttp3.Call replaceValidatingAdmissionPolicyBindingValidateBeforeCall(String name, V1alpha1ValidatingAdmissionPolicyBinding body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceMutatingAdmissionPolicyValidateBeforeCall(String name, V1alpha1MutatingAdmissionPolicy body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { - throw new ApiException("Missing the required parameter 'name' when calling replaceValidatingAdmissionPolicyBinding(Async)"); + throw new ApiException("Missing the required parameter 'name' when calling replaceMutatingAdmissionPolicy(Async)"); } // verify the required parameter 'body' is set if (body == null) { - throw new ApiException("Missing the required parameter 'body' when calling replaceValidatingAdmissionPolicyBinding(Async)"); + throw new ApiException("Missing the required parameter 'body' when calling replaceMutatingAdmissionPolicy(Async)"); } - okhttp3.Call localVarCall = replaceValidatingAdmissionPolicyBindingCall(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); + okhttp3.Call localVarCall = replaceMutatingAdmissionPolicyCall(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); return localVarCall; } /** * - * replace the specified ValidatingAdmissionPolicyBinding - * @param name name of the ValidatingAdmissionPolicyBinding (required) + * replace the specified MutatingAdmissionPolicy + * @param name name of the MutatingAdmissionPolicy (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - * @return V1alpha1ValidatingAdmissionPolicyBinding + * @return V1alpha1MutatingAdmissionPolicy * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -2747,21 +2328,21 @@ private okhttp3.Call replaceValidatingAdmissionPolicyBindingValidateBeforeCall(S
401 Unauthorized -
*/ - public V1alpha1ValidatingAdmissionPolicyBinding replaceValidatingAdmissionPolicyBinding(String name, V1alpha1ValidatingAdmissionPolicyBinding body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { - ApiResponse localVarResp = replaceValidatingAdmissionPolicyBindingWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation); + public V1alpha1MutatingAdmissionPolicy replaceMutatingAdmissionPolicy(String name, V1alpha1MutatingAdmissionPolicy body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { + ApiResponse localVarResp = replaceMutatingAdmissionPolicyWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation); return localVarResp.getData(); } /** * - * replace the specified ValidatingAdmissionPolicyBinding - * @param name name of the ValidatingAdmissionPolicyBinding (required) + * replace the specified MutatingAdmissionPolicy + * @param name name of the MutatingAdmissionPolicy (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - * @return ApiResponse<V1alpha1ValidatingAdmissionPolicyBinding> + * @return ApiResponse<V1alpha1MutatingAdmissionPolicy> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -2771,18 +2352,18 @@ public V1alpha1ValidatingAdmissionPolicyBinding replaceValidatingAdmissionPolicy
401 Unauthorized -
*/ - public ApiResponse replaceValidatingAdmissionPolicyBindingWithHttpInfo(String name, V1alpha1ValidatingAdmissionPolicyBinding body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { - okhttp3.Call localVarCall = replaceValidatingAdmissionPolicyBindingValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, null); - Type localVarReturnType = new TypeToken(){}.getType(); + public ApiResponse replaceMutatingAdmissionPolicyWithHttpInfo(String name, V1alpha1MutatingAdmissionPolicy body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { + okhttp3.Call localVarCall = replaceMutatingAdmissionPolicyValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, null); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * (asynchronously) - * replace the specified ValidatingAdmissionPolicyBinding - * @param name name of the ValidatingAdmissionPolicyBinding (required) + * replace the specified MutatingAdmissionPolicy + * @param name name of the MutatingAdmissionPolicy (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -2797,18 +2378,18 @@ public ApiResponse replaceValidatingAd 401 Unauthorized - */ - public okhttp3.Call replaceValidatingAdmissionPolicyBindingAsync(String name, V1alpha1ValidatingAdmissionPolicyBinding body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + public okhttp3.Call replaceMutatingAdmissionPolicyAsync(String name, V1alpha1MutatingAdmissionPolicy body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = replaceValidatingAdmissionPolicyBindingValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + okhttp3.Call localVarCall = replaceMutatingAdmissionPolicyValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** - * Build call for replaceValidatingAdmissionPolicyStatus - * @param name name of the ValidatingAdmissionPolicy (required) + * Build call for replaceMutatingAdmissionPolicyBinding + * @param name name of the MutatingAdmissionPolicyBinding (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -2823,11 +2404,11 @@ public okhttp3.Call replaceValidatingAdmissionPolicyBindingAsync(String name, V1 401 Unauthorized - */ - public okhttp3.Call replaceValidatingAdmissionPolicyStatusCall(String name, V1alpha1ValidatingAdmissionPolicy body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + public okhttp3.Call replaceMutatingAdmissionPolicyBindingCall(String name, V1alpha1MutatingAdmissionPolicyBinding body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; // create path and map variables - String localVarPath = "/apis/admissionregistration.k8s.io/v1alpha1/validatingadmissionpolicies/{name}/status" + String localVarPath = "/apis/admissionregistration.k8s.io/v1alpha1/mutatingadmissionpolicybindings/{name}" .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); @@ -2852,7 +2433,7 @@ public okhttp3.Call replaceValidatingAdmissionPolicyStatusCall(String name, V1al Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -2870,34 +2451,34 @@ public okhttp3.Call replaceValidatingAdmissionPolicyStatusCall(String name, V1al } @SuppressWarnings("rawtypes") - private okhttp3.Call replaceValidatingAdmissionPolicyStatusValidateBeforeCall(String name, V1alpha1ValidatingAdmissionPolicy body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceMutatingAdmissionPolicyBindingValidateBeforeCall(String name, V1alpha1MutatingAdmissionPolicyBinding body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { - throw new ApiException("Missing the required parameter 'name' when calling replaceValidatingAdmissionPolicyStatus(Async)"); + throw new ApiException("Missing the required parameter 'name' when calling replaceMutatingAdmissionPolicyBinding(Async)"); } // verify the required parameter 'body' is set if (body == null) { - throw new ApiException("Missing the required parameter 'body' when calling replaceValidatingAdmissionPolicyStatus(Async)"); + throw new ApiException("Missing the required parameter 'body' when calling replaceMutatingAdmissionPolicyBinding(Async)"); } - okhttp3.Call localVarCall = replaceValidatingAdmissionPolicyStatusCall(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); + okhttp3.Call localVarCall = replaceMutatingAdmissionPolicyBindingCall(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); return localVarCall; } /** * - * replace status of the specified ValidatingAdmissionPolicy - * @param name name of the ValidatingAdmissionPolicy (required) + * replace the specified MutatingAdmissionPolicyBinding + * @param name name of the MutatingAdmissionPolicyBinding (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - * @return V1alpha1ValidatingAdmissionPolicy + * @return V1alpha1MutatingAdmissionPolicyBinding * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -2907,21 +2488,21 @@ private okhttp3.Call replaceValidatingAdmissionPolicyStatusValidateBeforeCall(St
401 Unauthorized -
*/ - public V1alpha1ValidatingAdmissionPolicy replaceValidatingAdmissionPolicyStatus(String name, V1alpha1ValidatingAdmissionPolicy body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { - ApiResponse localVarResp = replaceValidatingAdmissionPolicyStatusWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation); + public V1alpha1MutatingAdmissionPolicyBinding replaceMutatingAdmissionPolicyBinding(String name, V1alpha1MutatingAdmissionPolicyBinding body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { + ApiResponse localVarResp = replaceMutatingAdmissionPolicyBindingWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation); return localVarResp.getData(); } /** * - * replace status of the specified ValidatingAdmissionPolicy - * @param name name of the ValidatingAdmissionPolicy (required) + * replace the specified MutatingAdmissionPolicyBinding + * @param name name of the MutatingAdmissionPolicyBinding (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - * @return ApiResponse<V1alpha1ValidatingAdmissionPolicy> + * @return ApiResponse<V1alpha1MutatingAdmissionPolicyBinding> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -2931,18 +2512,18 @@ public V1alpha1ValidatingAdmissionPolicy replaceValidatingAdmissionPolicyStatus(
401 Unauthorized -
*/ - public ApiResponse replaceValidatingAdmissionPolicyStatusWithHttpInfo(String name, V1alpha1ValidatingAdmissionPolicy body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { - okhttp3.Call localVarCall = replaceValidatingAdmissionPolicyStatusValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, null); - Type localVarReturnType = new TypeToken(){}.getType(); + public ApiResponse replaceMutatingAdmissionPolicyBindingWithHttpInfo(String name, V1alpha1MutatingAdmissionPolicyBinding body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { + okhttp3.Call localVarCall = replaceMutatingAdmissionPolicyBindingValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, null); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * (asynchronously) - * replace status of the specified ValidatingAdmissionPolicy - * @param name name of the ValidatingAdmissionPolicy (required) + * replace the specified MutatingAdmissionPolicyBinding + * @param name name of the MutatingAdmissionPolicyBinding (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -2957,10 +2538,10 @@ public ApiResponse replaceValidatingAdmission 401 Unauthorized - */ - public okhttp3.Call replaceValidatingAdmissionPolicyStatusAsync(String name, V1alpha1ValidatingAdmissionPolicy body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + public okhttp3.Call replaceMutatingAdmissionPolicyBindingAsync(String name, V1alpha1MutatingAdmissionPolicyBinding body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = replaceValidatingAdmissionPolicyStatusValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + okhttp3.Call localVarCall = replaceMutatingAdmissionPolicyBindingValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } 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 790d89ea99..e07dd9394c 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -63,7 +63,7 @@ public void setApiClient(ApiClient apiClient) { /** * Build call for createValidatingAdmissionPolicy * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -107,7 +107,7 @@ public okhttp3.Call createValidatingAdmissionPolicyCall(V1beta1ValidatingAdmissi Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -142,7 +142,7 @@ private okhttp3.Call createValidatingAdmissionPolicyValidateBeforeCall(V1beta1Va * * create a ValidatingAdmissionPolicy * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -166,7 +166,7 @@ public V1beta1ValidatingAdmissionPolicy createValidatingAdmissionPolicy(V1beta1V * * create a ValidatingAdmissionPolicy * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -191,7 +191,7 @@ public ApiResponse createValidatingAdmissionPo * (asynchronously) * create a ValidatingAdmissionPolicy * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -217,7 +217,7 @@ public okhttp3.Call createValidatingAdmissionPolicyAsync(V1beta1ValidatingAdmiss /** * Build call for createValidatingAdmissionPolicyBinding * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -261,7 +261,7 @@ public okhttp3.Call createValidatingAdmissionPolicyBindingCall(V1beta1Validating Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -296,7 +296,7 @@ private okhttp3.Call createValidatingAdmissionPolicyBindingValidateBeforeCall(V1 * * create a ValidatingAdmissionPolicyBinding * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -320,7 +320,7 @@ public V1beta1ValidatingAdmissionPolicyBinding createValidatingAdmissionPolicyBi * * create a ValidatingAdmissionPolicyBinding * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -345,7 +345,7 @@ public ApiResponse createValidatingAdmi * (asynchronously) * create a ValidatingAdmissionPolicyBinding * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -370,11 +370,12 @@ public okhttp3.Call createValidatingAdmissionPolicyBindingAsync(V1beta1Validatin } /** * Build call for deleteCollectionValidatingAdmissionPolicy - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param _continue 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) * @param dryRun 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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @param orphanDependents 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) @@ -394,7 +395,7 @@ public okhttp3.Call createValidatingAdmissionPolicyBindingAsync(V1beta1Validatin 401 Unauthorized - */ - public okhttp3.Call deleteCollectionValidatingAdmissionPolicyCall(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + public okhttp3.Call deleteCollectionValidatingAdmissionPolicyCall(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; // create path and map variables @@ -422,6 +423,10 @@ public okhttp3.Call deleteCollectionValidatingAdmissionPolicyCall(String pretty, localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); } + if (ignoreStoreReadErrorWithClusterBreakingPotential != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("ignoreStoreReadErrorWithClusterBreakingPotential", ignoreStoreReadErrorWithClusterBreakingPotential)); + } + if (labelSelector != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); } @@ -458,7 +463,7 @@ public okhttp3.Call deleteCollectionValidatingAdmissionPolicyCall(String pretty, Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -476,10 +481,10 @@ public okhttp3.Call deleteCollectionValidatingAdmissionPolicyCall(String pretty, } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteCollectionValidatingAdmissionPolicyValidateBeforeCall(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionValidatingAdmissionPolicyValidateBeforeCall(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = deleteCollectionValidatingAdmissionPolicyCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + okhttp3.Call localVarCall = deleteCollectionValidatingAdmissionPolicyCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); return localVarCall; } @@ -487,11 +492,12 @@ private okhttp3.Call deleteCollectionValidatingAdmissionPolicyValidateBeforeCall /** * * delete collection of ValidatingAdmissionPolicy - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param _continue 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) * @param dryRun 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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @param orphanDependents 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) @@ -510,19 +516,20 @@ private okhttp3.Call deleteCollectionValidatingAdmissionPolicyValidateBeforeCall 401 Unauthorized - */ - public V1Status deleteCollectionValidatingAdmissionPolicy(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body) throws ApiException { - ApiResponse localVarResp = deleteCollectionValidatingAdmissionPolicyWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); + public V1Status deleteCollectionValidatingAdmissionPolicy(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body) throws ApiException { + ApiResponse localVarResp = deleteCollectionValidatingAdmissionPolicyWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); return localVarResp.getData(); } /** * * delete collection of ValidatingAdmissionPolicy - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param _continue 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) * @param dryRun 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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @param orphanDependents 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) @@ -541,8 +548,8 @@ public V1Status deleteCollectionValidatingAdmissionPolicy(String pretty, String 401 Unauthorized - */ - public ApiResponse deleteCollectionValidatingAdmissionPolicyWithHttpInfo(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body) throws ApiException { - okhttp3.Call localVarCall = deleteCollectionValidatingAdmissionPolicyValidateBeforeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, null); + public ApiResponse deleteCollectionValidatingAdmissionPolicyWithHttpInfo(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteCollectionValidatingAdmissionPolicyValidateBeforeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -550,11 +557,12 @@ public ApiResponse deleteCollectionValidatingAdmissionPolicyWithHttpIn /** * (asynchronously) * delete collection of ValidatingAdmissionPolicy - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param _continue 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) * @param dryRun 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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @param orphanDependents 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) @@ -574,20 +582,21 @@ public ApiResponse deleteCollectionValidatingAdmissionPolicyWithHttpIn 401 Unauthorized - */ - public okhttp3.Call deleteCollectionValidatingAdmissionPolicyAsync(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + public okhttp3.Call deleteCollectionValidatingAdmissionPolicyAsync(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = deleteCollectionValidatingAdmissionPolicyValidateBeforeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + okhttp3.Call localVarCall = deleteCollectionValidatingAdmissionPolicyValidateBeforeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for deleteCollectionValidatingAdmissionPolicyBinding - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param _continue 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) * @param dryRun 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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @param orphanDependents 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) @@ -607,7 +616,7 @@ public okhttp3.Call deleteCollectionValidatingAdmissionPolicyAsync(String pretty 401 Unauthorized - */ - public okhttp3.Call deleteCollectionValidatingAdmissionPolicyBindingCall(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + public okhttp3.Call deleteCollectionValidatingAdmissionPolicyBindingCall(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; // create path and map variables @@ -635,6 +644,10 @@ public okhttp3.Call deleteCollectionValidatingAdmissionPolicyBindingCall(String localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); } + if (ignoreStoreReadErrorWithClusterBreakingPotential != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("ignoreStoreReadErrorWithClusterBreakingPotential", ignoreStoreReadErrorWithClusterBreakingPotential)); + } + if (labelSelector != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); } @@ -671,7 +684,7 @@ public okhttp3.Call deleteCollectionValidatingAdmissionPolicyBindingCall(String Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -689,10 +702,10 @@ public okhttp3.Call deleteCollectionValidatingAdmissionPolicyBindingCall(String } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteCollectionValidatingAdmissionPolicyBindingValidateBeforeCall(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionValidatingAdmissionPolicyBindingValidateBeforeCall(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = deleteCollectionValidatingAdmissionPolicyBindingCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + okhttp3.Call localVarCall = deleteCollectionValidatingAdmissionPolicyBindingCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); return localVarCall; } @@ -700,11 +713,12 @@ private okhttp3.Call deleteCollectionValidatingAdmissionPolicyBindingValidateBef /** * * delete collection of ValidatingAdmissionPolicyBinding - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param _continue 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) * @param dryRun 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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @param orphanDependents 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) @@ -723,19 +737,20 @@ private okhttp3.Call deleteCollectionValidatingAdmissionPolicyBindingValidateBef 401 Unauthorized - */ - public V1Status deleteCollectionValidatingAdmissionPolicyBinding(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body) throws ApiException { - ApiResponse localVarResp = deleteCollectionValidatingAdmissionPolicyBindingWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); + public V1Status deleteCollectionValidatingAdmissionPolicyBinding(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body) throws ApiException { + ApiResponse localVarResp = deleteCollectionValidatingAdmissionPolicyBindingWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); return localVarResp.getData(); } /** * * delete collection of ValidatingAdmissionPolicyBinding - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param _continue 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) * @param dryRun 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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @param orphanDependents 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) @@ -754,8 +769,8 @@ public V1Status deleteCollectionValidatingAdmissionPolicyBinding(String pretty, 401 Unauthorized - */ - public ApiResponse deleteCollectionValidatingAdmissionPolicyBindingWithHttpInfo(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body) throws ApiException { - okhttp3.Call localVarCall = deleteCollectionValidatingAdmissionPolicyBindingValidateBeforeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, null); + public ApiResponse deleteCollectionValidatingAdmissionPolicyBindingWithHttpInfo(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteCollectionValidatingAdmissionPolicyBindingValidateBeforeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -763,11 +778,12 @@ public ApiResponse deleteCollectionValidatingAdmissionPolicyBindingWit /** * (asynchronously) * delete collection of ValidatingAdmissionPolicyBinding - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param _continue 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) * @param dryRun 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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @param orphanDependents 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) @@ -787,9 +803,9 @@ public ApiResponse deleteCollectionValidatingAdmissionPolicyBindingWit 401 Unauthorized - */ - public okhttp3.Call deleteCollectionValidatingAdmissionPolicyBindingAsync(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + public okhttp3.Call deleteCollectionValidatingAdmissionPolicyBindingAsync(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = deleteCollectionValidatingAdmissionPolicyBindingValidateBeforeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + okhttp3.Call localVarCall = deleteCollectionValidatingAdmissionPolicyBindingValidateBeforeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -797,9 +813,10 @@ public okhttp3.Call deleteCollectionValidatingAdmissionPolicyBindingAsync(String /** * Build call for deleteValidatingAdmissionPolicy * @param name name of the ValidatingAdmissionPolicy (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @param orphanDependents 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) * @param propagationPolicy 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. (optional) * @param body (optional) @@ -814,7 +831,7 @@ public okhttp3.Call deleteCollectionValidatingAdmissionPolicyBindingAsync(String 401 Unauthorized - */ - public okhttp3.Call deleteValidatingAdmissionPolicyCall(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + public okhttp3.Call deleteValidatingAdmissionPolicyCall(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; // create path and map variables @@ -835,6 +852,10 @@ public okhttp3.Call deleteValidatingAdmissionPolicyCall(String name, String pret localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); } + if (ignoreStoreReadErrorWithClusterBreakingPotential != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("ignoreStoreReadErrorWithClusterBreakingPotential", ignoreStoreReadErrorWithClusterBreakingPotential)); + } + if (orphanDependents != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("orphanDependents", orphanDependents)); } @@ -847,7 +868,7 @@ public okhttp3.Call deleteValidatingAdmissionPolicyCall(String name, String pret Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -865,7 +886,7 @@ public okhttp3.Call deleteValidatingAdmissionPolicyCall(String name, String pret } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteValidatingAdmissionPolicyValidateBeforeCall(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteValidatingAdmissionPolicyValidateBeforeCall(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -873,7 +894,7 @@ private okhttp3.Call deleteValidatingAdmissionPolicyValidateBeforeCall(String na } - okhttp3.Call localVarCall = deleteValidatingAdmissionPolicyCall(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); + okhttp3.Call localVarCall = deleteValidatingAdmissionPolicyCall(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); return localVarCall; } @@ -882,9 +903,10 @@ private okhttp3.Call deleteValidatingAdmissionPolicyValidateBeforeCall(String na * * delete a ValidatingAdmissionPolicy * @param name name of the ValidatingAdmissionPolicy (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @param orphanDependents 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) * @param propagationPolicy 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. (optional) * @param body (optional) @@ -898,8 +920,8 @@ private okhttp3.Call deleteValidatingAdmissionPolicyValidateBeforeCall(String na 401 Unauthorized - */ - public V1Status deleteValidatingAdmissionPolicy(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { - ApiResponse localVarResp = deleteValidatingAdmissionPolicyWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body); + public V1Status deleteValidatingAdmissionPolicy(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { + ApiResponse localVarResp = deleteValidatingAdmissionPolicyWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body); return localVarResp.getData(); } @@ -907,9 +929,10 @@ public V1Status deleteValidatingAdmissionPolicy(String name, String pretty, Stri * * delete a ValidatingAdmissionPolicy * @param name name of the ValidatingAdmissionPolicy (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @param orphanDependents 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) * @param propagationPolicy 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. (optional) * @param body (optional) @@ -923,8 +946,8 @@ public V1Status deleteValidatingAdmissionPolicy(String name, String pretty, Stri 401 Unauthorized - */ - public ApiResponse deleteValidatingAdmissionPolicyWithHttpInfo(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { - okhttp3.Call localVarCall = deleteValidatingAdmissionPolicyValidateBeforeCall(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, null); + public ApiResponse deleteValidatingAdmissionPolicyWithHttpInfo(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteValidatingAdmissionPolicyValidateBeforeCall(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -933,9 +956,10 @@ public ApiResponse deleteValidatingAdmissionPolicyWithHttpInfo(String * (asynchronously) * delete a ValidatingAdmissionPolicy * @param name name of the ValidatingAdmissionPolicy (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @param orphanDependents 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) * @param propagationPolicy 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. (optional) * @param body (optional) @@ -950,9 +974,9 @@ public ApiResponse deleteValidatingAdmissionPolicyWithHttpInfo(String 401 Unauthorized - */ - public okhttp3.Call deleteValidatingAdmissionPolicyAsync(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + public okhttp3.Call deleteValidatingAdmissionPolicyAsync(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = deleteValidatingAdmissionPolicyValidateBeforeCall(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); + okhttp3.Call localVarCall = deleteValidatingAdmissionPolicyValidateBeforeCall(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -960,9 +984,10 @@ public okhttp3.Call deleteValidatingAdmissionPolicyAsync(String name, String pre /** * Build call for deleteValidatingAdmissionPolicyBinding * @param name name of the ValidatingAdmissionPolicyBinding (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @param orphanDependents 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) * @param propagationPolicy 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. (optional) * @param body (optional) @@ -977,7 +1002,7 @@ public okhttp3.Call deleteValidatingAdmissionPolicyAsync(String name, String pre 401 Unauthorized - */ - public okhttp3.Call deleteValidatingAdmissionPolicyBindingCall(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + public okhttp3.Call deleteValidatingAdmissionPolicyBindingCall(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; // create path and map variables @@ -998,6 +1023,10 @@ public okhttp3.Call deleteValidatingAdmissionPolicyBindingCall(String name, Stri localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); } + if (ignoreStoreReadErrorWithClusterBreakingPotential != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("ignoreStoreReadErrorWithClusterBreakingPotential", ignoreStoreReadErrorWithClusterBreakingPotential)); + } + if (orphanDependents != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("orphanDependents", orphanDependents)); } @@ -1010,7 +1039,7 @@ public okhttp3.Call deleteValidatingAdmissionPolicyBindingCall(String name, Stri Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -1028,7 +1057,7 @@ public okhttp3.Call deleteValidatingAdmissionPolicyBindingCall(String name, Stri } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteValidatingAdmissionPolicyBindingValidateBeforeCall(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteValidatingAdmissionPolicyBindingValidateBeforeCall(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -1036,7 +1065,7 @@ private okhttp3.Call deleteValidatingAdmissionPolicyBindingValidateBeforeCall(St } - okhttp3.Call localVarCall = deleteValidatingAdmissionPolicyBindingCall(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); + okhttp3.Call localVarCall = deleteValidatingAdmissionPolicyBindingCall(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); return localVarCall; } @@ -1045,9 +1074,10 @@ private okhttp3.Call deleteValidatingAdmissionPolicyBindingValidateBeforeCall(St * * delete a ValidatingAdmissionPolicyBinding * @param name name of the ValidatingAdmissionPolicyBinding (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @param orphanDependents 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) * @param propagationPolicy 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. (optional) * @param body (optional) @@ -1061,8 +1091,8 @@ private okhttp3.Call deleteValidatingAdmissionPolicyBindingValidateBeforeCall(St 401 Unauthorized - */ - public V1Status deleteValidatingAdmissionPolicyBinding(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { - ApiResponse localVarResp = deleteValidatingAdmissionPolicyBindingWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body); + public V1Status deleteValidatingAdmissionPolicyBinding(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { + ApiResponse localVarResp = deleteValidatingAdmissionPolicyBindingWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body); return localVarResp.getData(); } @@ -1070,9 +1100,10 @@ public V1Status deleteValidatingAdmissionPolicyBinding(String name, String prett * * delete a ValidatingAdmissionPolicyBinding * @param name name of the ValidatingAdmissionPolicyBinding (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @param orphanDependents 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) * @param propagationPolicy 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. (optional) * @param body (optional) @@ -1086,8 +1117,8 @@ public V1Status deleteValidatingAdmissionPolicyBinding(String name, String prett 401 Unauthorized - */ - public ApiResponse deleteValidatingAdmissionPolicyBindingWithHttpInfo(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { - okhttp3.Call localVarCall = deleteValidatingAdmissionPolicyBindingValidateBeforeCall(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, null); + public ApiResponse deleteValidatingAdmissionPolicyBindingWithHttpInfo(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteValidatingAdmissionPolicyBindingValidateBeforeCall(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -1096,9 +1127,10 @@ public ApiResponse deleteValidatingAdmissionPolicyBindingWithHttpInfo( * (asynchronously) * delete a ValidatingAdmissionPolicyBinding * @param name name of the ValidatingAdmissionPolicyBinding (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @param orphanDependents 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) * @param propagationPolicy 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. (optional) * @param body (optional) @@ -1113,9 +1145,9 @@ public ApiResponse deleteValidatingAdmissionPolicyBindingWithHttpInfo( 401 Unauthorized - */ - public okhttp3.Call deleteValidatingAdmissionPolicyBindingAsync(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + public okhttp3.Call deleteValidatingAdmissionPolicyBindingAsync(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = deleteValidatingAdmissionPolicyBindingValidateBeforeCall(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); + okhttp3.Call localVarCall = deleteValidatingAdmissionPolicyBindingValidateBeforeCall(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -1144,7 +1176,7 @@ public okhttp3.Call getAPIResourcesCall(final ApiCallback _callback) throws ApiE Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -1227,7 +1259,7 @@ public okhttp3.Call getAPIResourcesAsync(final ApiCallback _c } /** * Build call for listValidatingAdmissionPolicy - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param allowWatchBookmarks 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. (optional) * @param _continue 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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) @@ -1304,7 +1336,7 @@ public okhttp3.Call listValidatingAdmissionPolicyCall(String pretty, Boolean all Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch", "application/cbor-seq" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -1333,7 +1365,7 @@ private okhttp3.Call listValidatingAdmissionPolicyValidateBeforeCall(String pret /** * * list or watch objects of kind ValidatingAdmissionPolicy - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param allowWatchBookmarks 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. (optional) * @param _continue 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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) @@ -1361,7 +1393,7 @@ public V1beta1ValidatingAdmissionPolicyList listValidatingAdmissionPolicy(String /** * * list or watch objects of kind ValidatingAdmissionPolicy - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param allowWatchBookmarks 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. (optional) * @param _continue 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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) @@ -1390,7 +1422,7 @@ public ApiResponse listValidatingAdmission /** * (asynchronously) * list or watch objects of kind ValidatingAdmissionPolicy - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param allowWatchBookmarks 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. (optional) * @param _continue 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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) @@ -1420,7 +1452,7 @@ public okhttp3.Call listValidatingAdmissionPolicyAsync(String pretty, Boolean al } /** * Build call for listValidatingAdmissionPolicyBinding - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param allowWatchBookmarks 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. (optional) * @param _continue 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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) @@ -1497,7 +1529,7 @@ public okhttp3.Call listValidatingAdmissionPolicyBindingCall(String pretty, Bool Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch", "application/cbor-seq" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -1526,7 +1558,7 @@ private okhttp3.Call listValidatingAdmissionPolicyBindingValidateBeforeCall(Stri /** * * list or watch objects of kind ValidatingAdmissionPolicyBinding - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param allowWatchBookmarks 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. (optional) * @param _continue 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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) @@ -1554,7 +1586,7 @@ public V1beta1ValidatingAdmissionPolicyBindingList listValidatingAdmissionPolicy /** * * list or watch objects of kind ValidatingAdmissionPolicyBinding - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param allowWatchBookmarks 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. (optional) * @param _continue 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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) @@ -1583,7 +1615,7 @@ public ApiResponse listValidatingAd /** * (asynchronously) * list or watch objects of kind ValidatingAdmissionPolicyBinding - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param allowWatchBookmarks 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. (optional) * @param _continue 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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) @@ -1615,7 +1647,7 @@ public okhttp3.Call listValidatingAdmissionPolicyBindingAsync(String pretty, Boo * Build call for patchValidatingAdmissionPolicy * @param name name of the ValidatingAdmissionPolicy (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -1664,7 +1696,7 @@ public okhttp3.Call patchValidatingAdmissionPolicyCall(String name, V1Patch body Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -1705,7 +1737,7 @@ private okhttp3.Call patchValidatingAdmissionPolicyValidateBeforeCall(String nam * partially update the specified ValidatingAdmissionPolicy * @param name name of the ValidatingAdmissionPolicy (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -1730,7 +1762,7 @@ public V1beta1ValidatingAdmissionPolicy patchValidatingAdmissionPolicy(String na * partially update the specified ValidatingAdmissionPolicy * @param name name of the ValidatingAdmissionPolicy (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -1756,7 +1788,7 @@ public ApiResponse patchValidatingAdmissionPol * partially update the specified ValidatingAdmissionPolicy * @param name name of the ValidatingAdmissionPolicy (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -1783,7 +1815,7 @@ public okhttp3.Call patchValidatingAdmissionPolicyAsync(String name, V1Patch bod * Build call for patchValidatingAdmissionPolicyBinding * @param name name of the ValidatingAdmissionPolicyBinding (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -1832,7 +1864,7 @@ public okhttp3.Call patchValidatingAdmissionPolicyBindingCall(String name, V1Pat Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -1873,7 +1905,7 @@ private okhttp3.Call patchValidatingAdmissionPolicyBindingValidateBeforeCall(Str * partially update the specified ValidatingAdmissionPolicyBinding * @param name name of the ValidatingAdmissionPolicyBinding (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -1898,7 +1930,7 @@ public V1beta1ValidatingAdmissionPolicyBinding patchValidatingAdmissionPolicyBin * partially update the specified ValidatingAdmissionPolicyBinding * @param name name of the ValidatingAdmissionPolicyBinding (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -1924,7 +1956,7 @@ public ApiResponse patchValidatingAdmis * partially update the specified ValidatingAdmissionPolicyBinding * @param name name of the ValidatingAdmissionPolicyBinding (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -1951,7 +1983,7 @@ public okhttp3.Call patchValidatingAdmissionPolicyBindingAsync(String name, V1Pa * Build call for patchValidatingAdmissionPolicyStatus * @param name name of the ValidatingAdmissionPolicy (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -2000,7 +2032,7 @@ public okhttp3.Call patchValidatingAdmissionPolicyStatusCall(String name, V1Patc Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -2041,7 +2073,7 @@ private okhttp3.Call patchValidatingAdmissionPolicyStatusValidateBeforeCall(Stri * partially update status of the specified ValidatingAdmissionPolicy * @param name name of the ValidatingAdmissionPolicy (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -2066,7 +2098,7 @@ public V1beta1ValidatingAdmissionPolicy patchValidatingAdmissionPolicyStatus(Str * partially update status of the specified ValidatingAdmissionPolicy * @param name name of the ValidatingAdmissionPolicy (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -2092,7 +2124,7 @@ public ApiResponse patchValidatingAdmissionPol * partially update status of the specified ValidatingAdmissionPolicy * @param name name of the ValidatingAdmissionPolicy (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -2118,7 +2150,7 @@ public okhttp3.Call patchValidatingAdmissionPolicyStatusAsync(String name, V1Pat /** * Build call for readValidatingAdmissionPolicy * @param name name of the ValidatingAdmissionPolicy (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -2146,7 +2178,7 @@ public okhttp3.Call readValidatingAdmissionPolicyCall(String name, String pretty Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -2181,7 +2213,7 @@ private okhttp3.Call readValidatingAdmissionPolicyValidateBeforeCall(String name * * read the specified ValidatingAdmissionPolicy * @param name name of the ValidatingAdmissionPolicy (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return V1beta1ValidatingAdmissionPolicy * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -2200,7 +2232,7 @@ public V1beta1ValidatingAdmissionPolicy readValidatingAdmissionPolicy(String nam * * read the specified ValidatingAdmissionPolicy * @param name name of the ValidatingAdmissionPolicy (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return ApiResponse<V1beta1ValidatingAdmissionPolicy> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -2220,7 +2252,7 @@ public ApiResponse readValidatingAdmissionPoli * (asynchronously) * read the specified ValidatingAdmissionPolicy * @param name name of the ValidatingAdmissionPolicy (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object @@ -2241,7 +2273,7 @@ public okhttp3.Call readValidatingAdmissionPolicyAsync(String name, String prett /** * Build call for readValidatingAdmissionPolicyBinding * @param name name of the ValidatingAdmissionPolicyBinding (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -2269,7 +2301,7 @@ public okhttp3.Call readValidatingAdmissionPolicyBindingCall(String name, String Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -2304,7 +2336,7 @@ private okhttp3.Call readValidatingAdmissionPolicyBindingValidateBeforeCall(Stri * * read the specified ValidatingAdmissionPolicyBinding * @param name name of the ValidatingAdmissionPolicyBinding (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return V1beta1ValidatingAdmissionPolicyBinding * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -2323,7 +2355,7 @@ public V1beta1ValidatingAdmissionPolicyBinding readValidatingAdmissionPolicyBind * * read the specified ValidatingAdmissionPolicyBinding * @param name name of the ValidatingAdmissionPolicyBinding (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return ApiResponse<V1beta1ValidatingAdmissionPolicyBinding> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -2343,7 +2375,7 @@ public ApiResponse readValidatingAdmiss * (asynchronously) * read the specified ValidatingAdmissionPolicyBinding * @param name name of the ValidatingAdmissionPolicyBinding (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object @@ -2364,7 +2396,7 @@ public okhttp3.Call readValidatingAdmissionPolicyBindingAsync(String name, Strin /** * Build call for readValidatingAdmissionPolicyStatus * @param name name of the ValidatingAdmissionPolicy (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -2392,7 +2424,7 @@ public okhttp3.Call readValidatingAdmissionPolicyStatusCall(String name, String Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -2427,7 +2459,7 @@ private okhttp3.Call readValidatingAdmissionPolicyStatusValidateBeforeCall(Strin * * read status of the specified ValidatingAdmissionPolicy * @param name name of the ValidatingAdmissionPolicy (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return V1beta1ValidatingAdmissionPolicy * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -2446,7 +2478,7 @@ public V1beta1ValidatingAdmissionPolicy readValidatingAdmissionPolicyStatus(Stri * * read status of the specified ValidatingAdmissionPolicy * @param name name of the ValidatingAdmissionPolicy (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return ApiResponse<V1beta1ValidatingAdmissionPolicy> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -2466,7 +2498,7 @@ public ApiResponse readValidatingAdmissionPoli * (asynchronously) * read status of the specified ValidatingAdmissionPolicy * @param name name of the ValidatingAdmissionPolicy (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object @@ -2488,7 +2520,7 @@ public okhttp3.Call readValidatingAdmissionPolicyStatusAsync(String name, String * Build call for replaceValidatingAdmissionPolicy * @param name name of the ValidatingAdmissionPolicy (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -2532,7 +2564,7 @@ public okhttp3.Call replaceValidatingAdmissionPolicyCall(String name, V1beta1Val Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -2573,7 +2605,7 @@ private okhttp3.Call replaceValidatingAdmissionPolicyValidateBeforeCall(String n * replace the specified ValidatingAdmissionPolicy * @param name name of the ValidatingAdmissionPolicy (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -2597,7 +2629,7 @@ public V1beta1ValidatingAdmissionPolicy replaceValidatingAdmissionPolicy(String * replace the specified ValidatingAdmissionPolicy * @param name name of the ValidatingAdmissionPolicy (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -2622,7 +2654,7 @@ public ApiResponse replaceValidatingAdmissionP * replace the specified ValidatingAdmissionPolicy * @param name name of the ValidatingAdmissionPolicy (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -2648,7 +2680,7 @@ public okhttp3.Call replaceValidatingAdmissionPolicyAsync(String name, V1beta1Va * Build call for replaceValidatingAdmissionPolicyBinding * @param name name of the ValidatingAdmissionPolicyBinding (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -2692,7 +2724,7 @@ public okhttp3.Call replaceValidatingAdmissionPolicyBindingCall(String name, V1b Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -2733,7 +2765,7 @@ private okhttp3.Call replaceValidatingAdmissionPolicyBindingValidateBeforeCall(S * replace the specified ValidatingAdmissionPolicyBinding * @param name name of the ValidatingAdmissionPolicyBinding (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -2757,7 +2789,7 @@ public V1beta1ValidatingAdmissionPolicyBinding replaceValidatingAdmissionPolicyB * replace the specified ValidatingAdmissionPolicyBinding * @param name name of the ValidatingAdmissionPolicyBinding (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -2782,7 +2814,7 @@ public ApiResponse replaceValidatingAdm * replace the specified ValidatingAdmissionPolicyBinding * @param name name of the ValidatingAdmissionPolicyBinding (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -2808,7 +2840,7 @@ public okhttp3.Call replaceValidatingAdmissionPolicyBindingAsync(String name, V1 * Build call for replaceValidatingAdmissionPolicyStatus * @param name name of the ValidatingAdmissionPolicy (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -2852,7 +2884,7 @@ public okhttp3.Call replaceValidatingAdmissionPolicyStatusCall(String name, V1be Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -2893,7 +2925,7 @@ private okhttp3.Call replaceValidatingAdmissionPolicyStatusValidateBeforeCall(St * replace status of the specified ValidatingAdmissionPolicy * @param name name of the ValidatingAdmissionPolicy (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -2917,7 +2949,7 @@ public V1beta1ValidatingAdmissionPolicy replaceValidatingAdmissionPolicyStatus(S * replace status of the specified ValidatingAdmissionPolicy * @param name name of the ValidatingAdmissionPolicy (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -2942,7 +2974,7 @@ public ApiResponse replaceValidatingAdmissionP * replace status of the specified ValidatingAdmissionPolicy * @param name name of the ValidatingAdmissionPolicy (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) 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 6ada207d39..1e5e4a6c42 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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 a0d967cf11..0988883ec7 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -61,7 +61,7 @@ public void setApiClient(ApiClient apiClient) { /** * Build call for createCustomResourceDefinition * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -105,7 +105,7 @@ public okhttp3.Call createCustomResourceDefinitionCall(V1CustomResourceDefinitio Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -140,7 +140,7 @@ private okhttp3.Call createCustomResourceDefinitionValidateBeforeCall(V1CustomRe * * create a CustomResourceDefinition * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -164,7 +164,7 @@ public V1CustomResourceDefinition createCustomResourceDefinition(V1CustomResourc * * create a CustomResourceDefinition * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -189,7 +189,7 @@ public ApiResponse createCustomResourceDefinitionWit * (asynchronously) * create a CustomResourceDefinition * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -214,11 +214,12 @@ public okhttp3.Call createCustomResourceDefinitionAsync(V1CustomResourceDefiniti } /** * Build call for deleteCollectionCustomResourceDefinition - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param _continue 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) * @param dryRun 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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @param orphanDependents 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) @@ -238,7 +239,7 @@ public okhttp3.Call createCustomResourceDefinitionAsync(V1CustomResourceDefiniti 401 Unauthorized - */ - public okhttp3.Call deleteCollectionCustomResourceDefinitionCall(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + public okhttp3.Call deleteCollectionCustomResourceDefinitionCall(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; // create path and map variables @@ -266,6 +267,10 @@ public okhttp3.Call deleteCollectionCustomResourceDefinitionCall(String pretty, localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); } + if (ignoreStoreReadErrorWithClusterBreakingPotential != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("ignoreStoreReadErrorWithClusterBreakingPotential", ignoreStoreReadErrorWithClusterBreakingPotential)); + } + if (labelSelector != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); } @@ -302,7 +307,7 @@ public okhttp3.Call deleteCollectionCustomResourceDefinitionCall(String pretty, Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -320,10 +325,10 @@ public okhttp3.Call deleteCollectionCustomResourceDefinitionCall(String pretty, } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteCollectionCustomResourceDefinitionValidateBeforeCall(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionCustomResourceDefinitionValidateBeforeCall(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = deleteCollectionCustomResourceDefinitionCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + okhttp3.Call localVarCall = deleteCollectionCustomResourceDefinitionCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); return localVarCall; } @@ -331,11 +336,12 @@ private okhttp3.Call deleteCollectionCustomResourceDefinitionValidateBeforeCall( /** * * delete collection of CustomResourceDefinition - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param _continue 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) * @param dryRun 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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @param orphanDependents 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) @@ -354,19 +360,20 @@ private okhttp3.Call deleteCollectionCustomResourceDefinitionValidateBeforeCall( 401 Unauthorized - */ - public V1Status deleteCollectionCustomResourceDefinition(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body) throws ApiException { - ApiResponse localVarResp = deleteCollectionCustomResourceDefinitionWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); + public V1Status deleteCollectionCustomResourceDefinition(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body) throws ApiException { + ApiResponse localVarResp = deleteCollectionCustomResourceDefinitionWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); return localVarResp.getData(); } /** * * delete collection of CustomResourceDefinition - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param _continue 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) * @param dryRun 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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @param orphanDependents 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) @@ -385,8 +392,8 @@ public V1Status deleteCollectionCustomResourceDefinition(String pretty, String _ 401 Unauthorized - */ - public ApiResponse deleteCollectionCustomResourceDefinitionWithHttpInfo(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body) throws ApiException { - okhttp3.Call localVarCall = deleteCollectionCustomResourceDefinitionValidateBeforeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, null); + public ApiResponse deleteCollectionCustomResourceDefinitionWithHttpInfo(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteCollectionCustomResourceDefinitionValidateBeforeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -394,11 +401,12 @@ public ApiResponse deleteCollectionCustomResourceDefinitionWithHttpInf /** * (asynchronously) * delete collection of CustomResourceDefinition - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param _continue 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) * @param dryRun 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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @param orphanDependents 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) @@ -418,9 +426,9 @@ public ApiResponse deleteCollectionCustomResourceDefinitionWithHttpInf 401 Unauthorized - */ - public okhttp3.Call deleteCollectionCustomResourceDefinitionAsync(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + public okhttp3.Call deleteCollectionCustomResourceDefinitionAsync(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = deleteCollectionCustomResourceDefinitionValidateBeforeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + okhttp3.Call localVarCall = deleteCollectionCustomResourceDefinitionValidateBeforeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -428,9 +436,10 @@ public okhttp3.Call deleteCollectionCustomResourceDefinitionAsync(String pretty, /** * Build call for deleteCustomResourceDefinition * @param name name of the CustomResourceDefinition (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @param orphanDependents 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) * @param propagationPolicy 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. (optional) * @param body (optional) @@ -445,7 +454,7 @@ public okhttp3.Call deleteCollectionCustomResourceDefinitionAsync(String pretty, 401 Unauthorized - */ - public okhttp3.Call deleteCustomResourceDefinitionCall(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + public okhttp3.Call deleteCustomResourceDefinitionCall(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; // create path and map variables @@ -466,6 +475,10 @@ public okhttp3.Call deleteCustomResourceDefinitionCall(String name, String prett localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); } + if (ignoreStoreReadErrorWithClusterBreakingPotential != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("ignoreStoreReadErrorWithClusterBreakingPotential", ignoreStoreReadErrorWithClusterBreakingPotential)); + } + if (orphanDependents != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("orphanDependents", orphanDependents)); } @@ -478,7 +491,7 @@ public okhttp3.Call deleteCustomResourceDefinitionCall(String name, String prett Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -496,7 +509,7 @@ public okhttp3.Call deleteCustomResourceDefinitionCall(String name, String prett } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteCustomResourceDefinitionValidateBeforeCall(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCustomResourceDefinitionValidateBeforeCall(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -504,7 +517,7 @@ private okhttp3.Call deleteCustomResourceDefinitionValidateBeforeCall(String nam } - okhttp3.Call localVarCall = deleteCustomResourceDefinitionCall(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); + okhttp3.Call localVarCall = deleteCustomResourceDefinitionCall(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); return localVarCall; } @@ -513,9 +526,10 @@ private okhttp3.Call deleteCustomResourceDefinitionValidateBeforeCall(String nam * * delete a CustomResourceDefinition * @param name name of the CustomResourceDefinition (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @param orphanDependents 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) * @param propagationPolicy 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. (optional) * @param body (optional) @@ -529,8 +543,8 @@ private okhttp3.Call deleteCustomResourceDefinitionValidateBeforeCall(String nam 401 Unauthorized - */ - public V1Status deleteCustomResourceDefinition(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { - ApiResponse localVarResp = deleteCustomResourceDefinitionWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body); + public V1Status deleteCustomResourceDefinition(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { + ApiResponse localVarResp = deleteCustomResourceDefinitionWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body); return localVarResp.getData(); } @@ -538,9 +552,10 @@ public V1Status deleteCustomResourceDefinition(String name, String pretty, Strin * * delete a CustomResourceDefinition * @param name name of the CustomResourceDefinition (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @param orphanDependents 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) * @param propagationPolicy 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. (optional) * @param body (optional) @@ -554,8 +569,8 @@ public V1Status deleteCustomResourceDefinition(String name, String pretty, Strin 401 Unauthorized - */ - public ApiResponse deleteCustomResourceDefinitionWithHttpInfo(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { - okhttp3.Call localVarCall = deleteCustomResourceDefinitionValidateBeforeCall(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, null); + public ApiResponse deleteCustomResourceDefinitionWithHttpInfo(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteCustomResourceDefinitionValidateBeforeCall(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -564,9 +579,10 @@ public ApiResponse deleteCustomResourceDefinitionWithHttpInfo(String n * (asynchronously) * delete a CustomResourceDefinition * @param name name of the CustomResourceDefinition (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @param orphanDependents 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) * @param propagationPolicy 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. (optional) * @param body (optional) @@ -581,9 +597,9 @@ public ApiResponse deleteCustomResourceDefinitionWithHttpInfo(String n 401 Unauthorized - */ - public okhttp3.Call deleteCustomResourceDefinitionAsync(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + public okhttp3.Call deleteCustomResourceDefinitionAsync(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = deleteCustomResourceDefinitionValidateBeforeCall(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); + okhttp3.Call localVarCall = deleteCustomResourceDefinitionValidateBeforeCall(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -612,7 +628,7 @@ public okhttp3.Call getAPIResourcesCall(final ApiCallback _callback) throws ApiE Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -695,7 +711,7 @@ public okhttp3.Call getAPIResourcesAsync(final ApiCallback _c } /** * Build call for listCustomResourceDefinition - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param allowWatchBookmarks 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. (optional) * @param _continue 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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) @@ -772,7 +788,7 @@ public okhttp3.Call listCustomResourceDefinitionCall(String pretty, Boolean allo Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch", "application/cbor-seq" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -801,7 +817,7 @@ private okhttp3.Call listCustomResourceDefinitionValidateBeforeCall(String prett /** * * list or watch objects of kind CustomResourceDefinition - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param allowWatchBookmarks 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. (optional) * @param _continue 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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) @@ -829,7 +845,7 @@ public V1CustomResourceDefinitionList listCustomResourceDefinition(String pretty /** * * list or watch objects of kind CustomResourceDefinition - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param allowWatchBookmarks 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. (optional) * @param _continue 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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) @@ -858,7 +874,7 @@ public ApiResponse listCustomResourceDefinitionW /** * (asynchronously) * list or watch objects of kind CustomResourceDefinition - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param allowWatchBookmarks 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. (optional) * @param _continue 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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) @@ -890,7 +906,7 @@ public okhttp3.Call listCustomResourceDefinitionAsync(String pretty, Boolean all * Build call for patchCustomResourceDefinition * @param name name of the CustomResourceDefinition (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -939,7 +955,7 @@ public okhttp3.Call patchCustomResourceDefinitionCall(String name, V1Patch body, Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -980,7 +996,7 @@ private okhttp3.Call patchCustomResourceDefinitionValidateBeforeCall(String name * partially update the specified CustomResourceDefinition * @param name name of the CustomResourceDefinition (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -1005,7 +1021,7 @@ public V1CustomResourceDefinition patchCustomResourceDefinition(String name, V1P * partially update the specified CustomResourceDefinition * @param name name of the CustomResourceDefinition (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -1031,7 +1047,7 @@ public ApiResponse patchCustomResourceDefinitionWith * partially update the specified CustomResourceDefinition * @param name name of the CustomResourceDefinition (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -1058,7 +1074,7 @@ public okhttp3.Call patchCustomResourceDefinitionAsync(String name, V1Patch body * Build call for patchCustomResourceDefinitionStatus * @param name name of the CustomResourceDefinition (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -1107,7 +1123,7 @@ public okhttp3.Call patchCustomResourceDefinitionStatusCall(String name, V1Patch Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -1148,7 +1164,7 @@ private okhttp3.Call patchCustomResourceDefinitionStatusValidateBeforeCall(Strin * partially update status of the specified CustomResourceDefinition * @param name name of the CustomResourceDefinition (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -1173,7 +1189,7 @@ public V1CustomResourceDefinition patchCustomResourceDefinitionStatus(String nam * partially update status of the specified CustomResourceDefinition * @param name name of the CustomResourceDefinition (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -1199,7 +1215,7 @@ public ApiResponse patchCustomResourceDefinitionStat * partially update status of the specified CustomResourceDefinition * @param name name of the CustomResourceDefinition (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -1225,7 +1241,7 @@ public okhttp3.Call patchCustomResourceDefinitionStatusAsync(String name, V1Patc /** * Build call for readCustomResourceDefinition * @param name name of the CustomResourceDefinition (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -1253,7 +1269,7 @@ public okhttp3.Call readCustomResourceDefinitionCall(String name, String pretty, Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -1288,7 +1304,7 @@ private okhttp3.Call readCustomResourceDefinitionValidateBeforeCall(String name, * * read the specified CustomResourceDefinition * @param name name of the CustomResourceDefinition (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return V1CustomResourceDefinition * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -1307,7 +1323,7 @@ public V1CustomResourceDefinition readCustomResourceDefinition(String name, Stri * * read the specified CustomResourceDefinition * @param name name of the CustomResourceDefinition (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return ApiResponse<V1CustomResourceDefinition> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -1327,7 +1343,7 @@ public ApiResponse readCustomResourceDefinitionWithH * (asynchronously) * read the specified CustomResourceDefinition * @param name name of the CustomResourceDefinition (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object @@ -1348,7 +1364,7 @@ public okhttp3.Call readCustomResourceDefinitionAsync(String name, String pretty /** * Build call for readCustomResourceDefinitionStatus * @param name name of the CustomResourceDefinition (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -1376,7 +1392,7 @@ public okhttp3.Call readCustomResourceDefinitionStatusCall(String name, String p Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -1411,7 +1427,7 @@ private okhttp3.Call readCustomResourceDefinitionStatusValidateBeforeCall(String * * read status of the specified CustomResourceDefinition * @param name name of the CustomResourceDefinition (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return V1CustomResourceDefinition * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -1430,7 +1446,7 @@ public V1CustomResourceDefinition readCustomResourceDefinitionStatus(String name * * read status of the specified CustomResourceDefinition * @param name name of the CustomResourceDefinition (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return ApiResponse<V1CustomResourceDefinition> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -1450,7 +1466,7 @@ public ApiResponse readCustomResourceDefinitionStatu * (asynchronously) * read status of the specified CustomResourceDefinition * @param name name of the CustomResourceDefinition (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object @@ -1472,7 +1488,7 @@ public okhttp3.Call readCustomResourceDefinitionStatusAsync(String name, String * Build call for replaceCustomResourceDefinition * @param name name of the CustomResourceDefinition (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -1516,7 +1532,7 @@ public okhttp3.Call replaceCustomResourceDefinitionCall(String name, V1CustomRes Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -1557,7 +1573,7 @@ private okhttp3.Call replaceCustomResourceDefinitionValidateBeforeCall(String na * replace the specified CustomResourceDefinition * @param name name of the CustomResourceDefinition (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -1581,7 +1597,7 @@ public V1CustomResourceDefinition replaceCustomResourceDefinition(String name, V * replace the specified CustomResourceDefinition * @param name name of the CustomResourceDefinition (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -1606,7 +1622,7 @@ public ApiResponse replaceCustomResourceDefinitionWi * replace the specified CustomResourceDefinition * @param name name of the CustomResourceDefinition (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -1632,7 +1648,7 @@ public okhttp3.Call replaceCustomResourceDefinitionAsync(String name, V1CustomRe * Build call for replaceCustomResourceDefinitionStatus * @param name name of the CustomResourceDefinition (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -1676,7 +1692,7 @@ public okhttp3.Call replaceCustomResourceDefinitionStatusCall(String name, V1Cus Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -1717,7 +1733,7 @@ private okhttp3.Call replaceCustomResourceDefinitionStatusValidateBeforeCall(Str * replace status of the specified CustomResourceDefinition * @param name name of the CustomResourceDefinition (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -1741,7 +1757,7 @@ public V1CustomResourceDefinition replaceCustomResourceDefinitionStatus(String n * replace status of the specified CustomResourceDefinition * @param name name of the CustomResourceDefinition (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -1766,7 +1782,7 @@ public ApiResponse replaceCustomResourceDefinitionSt * replace status of the specified CustomResourceDefinition * @param name name of the CustomResourceDefinition (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) 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 9e731307e1..23b6f3510c 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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 e98c3cf2e3..77f622f72d 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -61,7 +61,7 @@ public void setApiClient(ApiClient apiClient) { /** * Build call for createAPIService * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -105,7 +105,7 @@ public okhttp3.Call createAPIServiceCall(V1APIService body, String pretty, Strin Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -140,7 +140,7 @@ private okhttp3.Call createAPIServiceValidateBeforeCall(V1APIService body, Strin * * create an APIService * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -164,7 +164,7 @@ public V1APIService createAPIService(V1APIService body, String pretty, String dr * * create an APIService * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -189,7 +189,7 @@ public ApiResponse createAPIServiceWithHttpInfo(V1APIService body, * (asynchronously) * create an APIService * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -215,9 +215,10 @@ public okhttp3.Call createAPIServiceAsync(V1APIService body, String pretty, Stri /** * Build call for deleteAPIService * @param name name of the APIService (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @param orphanDependents 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) * @param propagationPolicy 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. (optional) * @param body (optional) @@ -232,7 +233,7 @@ public okhttp3.Call createAPIServiceAsync(V1APIService body, String pretty, Stri 401 Unauthorized - */ - public okhttp3.Call deleteAPIServiceCall(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + public okhttp3.Call deleteAPIServiceCall(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; // create path and map variables @@ -253,6 +254,10 @@ public okhttp3.Call deleteAPIServiceCall(String name, String pretty, String dryR localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); } + if (ignoreStoreReadErrorWithClusterBreakingPotential != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("ignoreStoreReadErrorWithClusterBreakingPotential", ignoreStoreReadErrorWithClusterBreakingPotential)); + } + if (orphanDependents != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("orphanDependents", orphanDependents)); } @@ -265,7 +270,7 @@ public okhttp3.Call deleteAPIServiceCall(String name, String pretty, String dryR Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -283,7 +288,7 @@ public okhttp3.Call deleteAPIServiceCall(String name, String pretty, String dryR } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteAPIServiceValidateBeforeCall(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteAPIServiceValidateBeforeCall(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -291,7 +296,7 @@ private okhttp3.Call deleteAPIServiceValidateBeforeCall(String name, String pret } - okhttp3.Call localVarCall = deleteAPIServiceCall(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); + okhttp3.Call localVarCall = deleteAPIServiceCall(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); return localVarCall; } @@ -300,9 +305,10 @@ private okhttp3.Call deleteAPIServiceValidateBeforeCall(String name, String pret * * delete an APIService * @param name name of the APIService (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @param orphanDependents 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) * @param propagationPolicy 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. (optional) * @param body (optional) @@ -316,8 +322,8 @@ private okhttp3.Call deleteAPIServiceValidateBeforeCall(String name, String pret 401 Unauthorized - */ - public V1Status deleteAPIService(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { - ApiResponse localVarResp = deleteAPIServiceWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body); + public V1Status deleteAPIService(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { + ApiResponse localVarResp = deleteAPIServiceWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body); return localVarResp.getData(); } @@ -325,9 +331,10 @@ public V1Status deleteAPIService(String name, String pretty, String dryRun, Inte * * delete an APIService * @param name name of the APIService (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @param orphanDependents 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) * @param propagationPolicy 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. (optional) * @param body (optional) @@ -341,8 +348,8 @@ public V1Status deleteAPIService(String name, String pretty, String dryRun, Inte 401 Unauthorized - */ - public ApiResponse deleteAPIServiceWithHttpInfo(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { - okhttp3.Call localVarCall = deleteAPIServiceValidateBeforeCall(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, null); + public ApiResponse deleteAPIServiceWithHttpInfo(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteAPIServiceValidateBeforeCall(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -351,9 +358,10 @@ public ApiResponse deleteAPIServiceWithHttpInfo(String name, String pr * (asynchronously) * delete an APIService * @param name name of the APIService (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @param orphanDependents 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) * @param propagationPolicy 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. (optional) * @param body (optional) @@ -368,20 +376,21 @@ public ApiResponse deleteAPIServiceWithHttpInfo(String name, String pr 401 Unauthorized - */ - public okhttp3.Call deleteAPIServiceAsync(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + public okhttp3.Call deleteAPIServiceAsync(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = deleteAPIServiceValidateBeforeCall(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); + okhttp3.Call localVarCall = deleteAPIServiceValidateBeforeCall(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for deleteCollectionAPIService - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param _continue 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) * @param dryRun 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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @param orphanDependents 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) @@ -401,7 +410,7 @@ public okhttp3.Call deleteAPIServiceAsync(String name, String pretty, String dry 401 Unauthorized - */ - public okhttp3.Call deleteCollectionAPIServiceCall(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + public okhttp3.Call deleteCollectionAPIServiceCall(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; // create path and map variables @@ -429,6 +438,10 @@ public okhttp3.Call deleteCollectionAPIServiceCall(String pretty, String _contin localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); } + if (ignoreStoreReadErrorWithClusterBreakingPotential != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("ignoreStoreReadErrorWithClusterBreakingPotential", ignoreStoreReadErrorWithClusterBreakingPotential)); + } + if (labelSelector != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); } @@ -465,7 +478,7 @@ public okhttp3.Call deleteCollectionAPIServiceCall(String pretty, String _contin Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -483,10 +496,10 @@ public okhttp3.Call deleteCollectionAPIServiceCall(String pretty, String _contin } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteCollectionAPIServiceValidateBeforeCall(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionAPIServiceValidateBeforeCall(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = deleteCollectionAPIServiceCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + okhttp3.Call localVarCall = deleteCollectionAPIServiceCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); return localVarCall; } @@ -494,11 +507,12 @@ private okhttp3.Call deleteCollectionAPIServiceValidateBeforeCall(String pretty, /** * * delete collection of APIService - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param _continue 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) * @param dryRun 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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @param orphanDependents 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) @@ -517,19 +531,20 @@ private okhttp3.Call deleteCollectionAPIServiceValidateBeforeCall(String pretty, 401 Unauthorized - */ - public V1Status deleteCollectionAPIService(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body) throws ApiException { - ApiResponse localVarResp = deleteCollectionAPIServiceWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); + public V1Status deleteCollectionAPIService(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body) throws ApiException { + ApiResponse localVarResp = deleteCollectionAPIServiceWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); return localVarResp.getData(); } /** * * delete collection of APIService - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param _continue 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) * @param dryRun 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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @param orphanDependents 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) @@ -548,8 +563,8 @@ public V1Status deleteCollectionAPIService(String pretty, String _continue, Stri 401 Unauthorized - */ - public ApiResponse deleteCollectionAPIServiceWithHttpInfo(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body) throws ApiException { - okhttp3.Call localVarCall = deleteCollectionAPIServiceValidateBeforeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, null); + public ApiResponse deleteCollectionAPIServiceWithHttpInfo(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteCollectionAPIServiceValidateBeforeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -557,11 +572,12 @@ public ApiResponse deleteCollectionAPIServiceWithHttpInfo(String prett /** * (asynchronously) * delete collection of APIService - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param _continue 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) * @param dryRun 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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @param orphanDependents 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) @@ -581,9 +597,9 @@ public ApiResponse deleteCollectionAPIServiceWithHttpInfo(String prett 401 Unauthorized - */ - public okhttp3.Call deleteCollectionAPIServiceAsync(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + public okhttp3.Call deleteCollectionAPIServiceAsync(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = deleteCollectionAPIServiceValidateBeforeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + okhttp3.Call localVarCall = deleteCollectionAPIServiceValidateBeforeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -612,7 +628,7 @@ public okhttp3.Call getAPIResourcesCall(final ApiCallback _callback) throws ApiE Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -695,7 +711,7 @@ public okhttp3.Call getAPIResourcesAsync(final ApiCallback _c } /** * Build call for listAPIService - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param allowWatchBookmarks 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. (optional) * @param _continue 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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) @@ -772,7 +788,7 @@ public okhttp3.Call listAPIServiceCall(String pretty, Boolean allowWatchBookmark Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch", "application/cbor-seq" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -801,7 +817,7 @@ private okhttp3.Call listAPIServiceValidateBeforeCall(String pretty, Boolean all /** * * list or watch objects of kind APIService - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param allowWatchBookmarks 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. (optional) * @param _continue 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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) @@ -829,7 +845,7 @@ public V1APIServiceList listAPIService(String pretty, Boolean allowWatchBookmark /** * * list or watch objects of kind APIService - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param allowWatchBookmarks 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. (optional) * @param _continue 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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) @@ -858,7 +874,7 @@ public ApiResponse listAPIServiceWithHttpInfo(String pretty, B /** * (asynchronously) * list or watch objects of kind APIService - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param allowWatchBookmarks 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. (optional) * @param _continue 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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) @@ -890,7 +906,7 @@ public okhttp3.Call listAPIServiceAsync(String pretty, Boolean allowWatchBookmar * Build call for patchAPIService * @param name name of the APIService (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -939,7 +955,7 @@ public okhttp3.Call patchAPIServiceCall(String name, V1Patch body, String pretty Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -980,7 +996,7 @@ private okhttp3.Call patchAPIServiceValidateBeforeCall(String name, V1Patch body * partially update the specified APIService * @param name name of the APIService (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -1005,7 +1021,7 @@ public V1APIService patchAPIService(String name, V1Patch body, String pretty, St * partially update the specified APIService * @param name name of the APIService (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -1031,7 +1047,7 @@ public ApiResponse patchAPIServiceWithHttpInfo(String name, V1Patc * partially update the specified APIService * @param name name of the APIService (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -1058,7 +1074,7 @@ public okhttp3.Call patchAPIServiceAsync(String name, V1Patch body, String prett * Build call for patchAPIServiceStatus * @param name name of the APIService (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -1107,7 +1123,7 @@ public okhttp3.Call patchAPIServiceStatusCall(String name, V1Patch body, String Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -1148,7 +1164,7 @@ private okhttp3.Call patchAPIServiceStatusValidateBeforeCall(String name, V1Patc * partially update status of the specified APIService * @param name name of the APIService (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -1173,7 +1189,7 @@ public V1APIService patchAPIServiceStatus(String name, V1Patch body, String pret * partially update status of the specified APIService * @param name name of the APIService (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -1199,7 +1215,7 @@ public ApiResponse patchAPIServiceStatusWithHttpInfo(String name, * partially update status of the specified APIService * @param name name of the APIService (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -1225,7 +1241,7 @@ public okhttp3.Call patchAPIServiceStatusAsync(String name, V1Patch body, String /** * Build call for readAPIService * @param name name of the APIService (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -1253,7 +1269,7 @@ public okhttp3.Call readAPIServiceCall(String name, String pretty, final ApiCall Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -1288,7 +1304,7 @@ private okhttp3.Call readAPIServiceValidateBeforeCall(String name, String pretty * * read the specified APIService * @param name name of the APIService (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return V1APIService * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -1307,7 +1323,7 @@ public V1APIService readAPIService(String name, String pretty) throws ApiExcepti * * read the specified APIService * @param name name of the APIService (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return ApiResponse<V1APIService> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -1327,7 +1343,7 @@ public ApiResponse readAPIServiceWithHttpInfo(String name, String * (asynchronously) * read the specified APIService * @param name name of the APIService (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object @@ -1348,7 +1364,7 @@ public okhttp3.Call readAPIServiceAsync(String name, String pretty, final ApiCal /** * Build call for readAPIServiceStatus * @param name name of the APIService (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -1376,7 +1392,7 @@ public okhttp3.Call readAPIServiceStatusCall(String name, String pretty, final A Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -1411,7 +1427,7 @@ private okhttp3.Call readAPIServiceStatusValidateBeforeCall(String name, String * * read status of the specified APIService * @param name name of the APIService (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return V1APIService * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -1430,7 +1446,7 @@ public V1APIService readAPIServiceStatus(String name, String pretty) throws ApiE * * read status of the specified APIService * @param name name of the APIService (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return ApiResponse<V1APIService> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -1450,7 +1466,7 @@ public ApiResponse readAPIServiceStatusWithHttpInfo(String name, S * (asynchronously) * read status of the specified APIService * @param name name of the APIService (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object @@ -1472,7 +1488,7 @@ public okhttp3.Call readAPIServiceStatusAsync(String name, String pretty, final * Build call for replaceAPIService * @param name name of the APIService (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -1516,7 +1532,7 @@ public okhttp3.Call replaceAPIServiceCall(String name, V1APIService body, String Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -1557,7 +1573,7 @@ private okhttp3.Call replaceAPIServiceValidateBeforeCall(String name, V1APIServi * replace the specified APIService * @param name name of the APIService (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -1581,7 +1597,7 @@ public V1APIService replaceAPIService(String name, V1APIService body, String pre * replace the specified APIService * @param name name of the APIService (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -1606,7 +1622,7 @@ public ApiResponse replaceAPIServiceWithHttpInfo(String name, V1AP * replace the specified APIService * @param name name of the APIService (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -1632,7 +1648,7 @@ public okhttp3.Call replaceAPIServiceAsync(String name, V1APIService body, Strin * Build call for replaceAPIServiceStatus * @param name name of the APIService (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -1676,7 +1692,7 @@ public okhttp3.Call replaceAPIServiceStatusCall(String name, V1APIService body, Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -1717,7 +1733,7 @@ private okhttp3.Call replaceAPIServiceStatusValidateBeforeCall(String name, V1AP * replace status of the specified APIService * @param name name of the APIService (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -1741,7 +1757,7 @@ public V1APIService replaceAPIServiceStatus(String name, V1APIService body, Stri * replace status of the specified APIService * @param name name of the APIService (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -1766,7 +1782,7 @@ public ApiResponse replaceAPIServiceStatusWithHttpInfo(String name * replace status of the specified APIService * @param name name of the APIService (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) 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 ed7f76f4f9..8291ac1fea 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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 8ee1dc5607..d62c09964e 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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 498ba1d9c5..b0255d86ef 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -71,7 +71,7 @@ public void setApiClient(ApiClient apiClient) { * Build call for createNamespacedControllerRevision * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -116,7 +116,7 @@ public okhttp3.Call createNamespacedControllerRevisionCall(String namespace, V1C Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -157,7 +157,7 @@ private okhttp3.Call createNamespacedControllerRevisionValidateBeforeCall(String * create a ControllerRevision * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -182,7 +182,7 @@ public V1ControllerRevision createNamespacedControllerRevision(String namespace, * create a ControllerRevision * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -208,7 +208,7 @@ public ApiResponse createNamespacedControllerRevisionWithH * create a ControllerRevision * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -235,7 +235,7 @@ public okhttp3.Call createNamespacedControllerRevisionAsync(String namespace, V1 * Build call for createNamespacedDaemonSet * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -280,7 +280,7 @@ public okhttp3.Call createNamespacedDaemonSetCall(String namespace, V1DaemonSet Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -321,7 +321,7 @@ private okhttp3.Call createNamespacedDaemonSetValidateBeforeCall(String namespac * create a DaemonSet * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -346,7 +346,7 @@ public V1DaemonSet createNamespacedDaemonSet(String namespace, V1DaemonSet body, * create a DaemonSet * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -372,7 +372,7 @@ public ApiResponse createNamespacedDaemonSetWithHttpInfo(String nam * create a DaemonSet * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -399,7 +399,7 @@ public okhttp3.Call createNamespacedDaemonSetAsync(String namespace, V1DaemonSet * Build call for createNamespacedDeployment * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -444,7 +444,7 @@ public okhttp3.Call createNamespacedDeploymentCall(String namespace, V1Deploymen Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -485,7 +485,7 @@ private okhttp3.Call createNamespacedDeploymentValidateBeforeCall(String namespa * create a Deployment * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -510,7 +510,7 @@ public V1Deployment createNamespacedDeployment(String namespace, V1Deployment bo * create a Deployment * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -536,7 +536,7 @@ public ApiResponse createNamespacedDeploymentWithHttpInfo(String n * create a Deployment * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -563,7 +563,7 @@ public okhttp3.Call createNamespacedDeploymentAsync(String namespace, V1Deployme * Build call for createNamespacedReplicaSet * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -608,7 +608,7 @@ public okhttp3.Call createNamespacedReplicaSetCall(String namespace, V1ReplicaSe Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -649,7 +649,7 @@ private okhttp3.Call createNamespacedReplicaSetValidateBeforeCall(String namespa * create a ReplicaSet * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -674,7 +674,7 @@ public V1ReplicaSet createNamespacedReplicaSet(String namespace, V1ReplicaSet bo * create a ReplicaSet * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -700,7 +700,7 @@ public ApiResponse createNamespacedReplicaSetWithHttpInfo(String n * create a ReplicaSet * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -727,7 +727,7 @@ public okhttp3.Call createNamespacedReplicaSetAsync(String namespace, V1ReplicaS * Build call for createNamespacedStatefulSet * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -772,7 +772,7 @@ public okhttp3.Call createNamespacedStatefulSetCall(String namespace, V1Stateful Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -813,7 +813,7 @@ private okhttp3.Call createNamespacedStatefulSetValidateBeforeCall(String namesp * create a StatefulSet * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -838,7 +838,7 @@ public V1StatefulSet createNamespacedStatefulSet(String namespace, V1StatefulSet * create a StatefulSet * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -864,7 +864,7 @@ public ApiResponse createNamespacedStatefulSetWithHttpInfo(String * create a StatefulSet * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -890,11 +890,12 @@ public okhttp3.Call createNamespacedStatefulSetAsync(String namespace, V1Statefu /** * Build call for deleteCollectionNamespacedControllerRevision * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param _continue 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) * @param dryRun 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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @param orphanDependents 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) @@ -914,7 +915,7 @@ public okhttp3.Call createNamespacedStatefulSetAsync(String namespace, V1Statefu 401 Unauthorized - */ - public okhttp3.Call deleteCollectionNamespacedControllerRevisionCall(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + public okhttp3.Call deleteCollectionNamespacedControllerRevisionCall(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; // create path and map variables @@ -943,6 +944,10 @@ public okhttp3.Call deleteCollectionNamespacedControllerRevisionCall(String name localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); } + if (ignoreStoreReadErrorWithClusterBreakingPotential != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("ignoreStoreReadErrorWithClusterBreakingPotential", ignoreStoreReadErrorWithClusterBreakingPotential)); + } + if (labelSelector != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); } @@ -979,7 +984,7 @@ public okhttp3.Call deleteCollectionNamespacedControllerRevisionCall(String name Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -997,7 +1002,7 @@ public okhttp3.Call deleteCollectionNamespacedControllerRevisionCall(String name } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteCollectionNamespacedControllerRevisionValidateBeforeCall(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionNamespacedControllerRevisionValidateBeforeCall(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { // verify the required parameter 'namespace' is set if (namespace == null) { @@ -1005,7 +1010,7 @@ private okhttp3.Call deleteCollectionNamespacedControllerRevisionValidateBeforeC } - okhttp3.Call localVarCall = deleteCollectionNamespacedControllerRevisionCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + okhttp3.Call localVarCall = deleteCollectionNamespacedControllerRevisionCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); return localVarCall; } @@ -1014,11 +1019,12 @@ private okhttp3.Call deleteCollectionNamespacedControllerRevisionValidateBeforeC * * delete collection of ControllerRevision * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param _continue 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) * @param dryRun 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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @param orphanDependents 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) @@ -1037,8 +1043,8 @@ private okhttp3.Call deleteCollectionNamespacedControllerRevisionValidateBeforeC 401 Unauthorized - */ - public V1Status deleteCollectionNamespacedControllerRevision(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body) throws ApiException { - ApiResponse localVarResp = deleteCollectionNamespacedControllerRevisionWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); + public V1Status deleteCollectionNamespacedControllerRevision(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body) throws ApiException { + ApiResponse localVarResp = deleteCollectionNamespacedControllerRevisionWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); return localVarResp.getData(); } @@ -1046,11 +1052,12 @@ public V1Status deleteCollectionNamespacedControllerRevision(String namespace, S * * delete collection of ControllerRevision * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param _continue 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) * @param dryRun 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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @param orphanDependents 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) @@ -1069,8 +1076,8 @@ public V1Status deleteCollectionNamespacedControllerRevision(String namespace, S 401 Unauthorized - */ - public ApiResponse deleteCollectionNamespacedControllerRevisionWithHttpInfo(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body) throws ApiException { - okhttp3.Call localVarCall = deleteCollectionNamespacedControllerRevisionValidateBeforeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, null); + public ApiResponse deleteCollectionNamespacedControllerRevisionWithHttpInfo(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteCollectionNamespacedControllerRevisionValidateBeforeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -1079,11 +1086,12 @@ public ApiResponse deleteCollectionNamespacedControllerRevisionWithHtt * (asynchronously) * delete collection of ControllerRevision * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param _continue 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) * @param dryRun 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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @param orphanDependents 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) @@ -1103,9 +1111,9 @@ public ApiResponse deleteCollectionNamespacedControllerRevisionWithHtt 401 Unauthorized - */ - public okhttp3.Call deleteCollectionNamespacedControllerRevisionAsync(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + public okhttp3.Call deleteCollectionNamespacedControllerRevisionAsync(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = deleteCollectionNamespacedControllerRevisionValidateBeforeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + okhttp3.Call localVarCall = deleteCollectionNamespacedControllerRevisionValidateBeforeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -1113,11 +1121,12 @@ public okhttp3.Call deleteCollectionNamespacedControllerRevisionAsync(String nam /** * Build call for deleteCollectionNamespacedDaemonSet * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param _continue 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) * @param dryRun 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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @param orphanDependents 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) @@ -1137,7 +1146,7 @@ public okhttp3.Call deleteCollectionNamespacedControllerRevisionAsync(String nam 401 Unauthorized - */ - public okhttp3.Call deleteCollectionNamespacedDaemonSetCall(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + public okhttp3.Call deleteCollectionNamespacedDaemonSetCall(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; // create path and map variables @@ -1166,6 +1175,10 @@ public okhttp3.Call deleteCollectionNamespacedDaemonSetCall(String namespace, St localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); } + if (ignoreStoreReadErrorWithClusterBreakingPotential != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("ignoreStoreReadErrorWithClusterBreakingPotential", ignoreStoreReadErrorWithClusterBreakingPotential)); + } + if (labelSelector != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); } @@ -1202,7 +1215,7 @@ public okhttp3.Call deleteCollectionNamespacedDaemonSetCall(String namespace, St Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -1220,7 +1233,7 @@ public okhttp3.Call deleteCollectionNamespacedDaemonSetCall(String namespace, St } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteCollectionNamespacedDaemonSetValidateBeforeCall(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionNamespacedDaemonSetValidateBeforeCall(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { // verify the required parameter 'namespace' is set if (namespace == null) { @@ -1228,7 +1241,7 @@ private okhttp3.Call deleteCollectionNamespacedDaemonSetValidateBeforeCall(Strin } - okhttp3.Call localVarCall = deleteCollectionNamespacedDaemonSetCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + okhttp3.Call localVarCall = deleteCollectionNamespacedDaemonSetCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); return localVarCall; } @@ -1237,11 +1250,12 @@ private okhttp3.Call deleteCollectionNamespacedDaemonSetValidateBeforeCall(Strin * * delete collection of DaemonSet * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param _continue 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) * @param dryRun 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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @param orphanDependents 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) @@ -1260,8 +1274,8 @@ private okhttp3.Call deleteCollectionNamespacedDaemonSetValidateBeforeCall(Strin 401 Unauthorized - */ - public V1Status deleteCollectionNamespacedDaemonSet(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body) throws ApiException { - ApiResponse localVarResp = deleteCollectionNamespacedDaemonSetWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); + public V1Status deleteCollectionNamespacedDaemonSet(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body) throws ApiException { + ApiResponse localVarResp = deleteCollectionNamespacedDaemonSetWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); return localVarResp.getData(); } @@ -1269,11 +1283,12 @@ public V1Status deleteCollectionNamespacedDaemonSet(String namespace, String pre * * delete collection of DaemonSet * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param _continue 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) * @param dryRun 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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @param orphanDependents 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) @@ -1292,8 +1307,8 @@ public V1Status deleteCollectionNamespacedDaemonSet(String namespace, String pre 401 Unauthorized - */ - public ApiResponse deleteCollectionNamespacedDaemonSetWithHttpInfo(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body) throws ApiException { - okhttp3.Call localVarCall = deleteCollectionNamespacedDaemonSetValidateBeforeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, null); + public ApiResponse deleteCollectionNamespacedDaemonSetWithHttpInfo(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteCollectionNamespacedDaemonSetValidateBeforeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -1302,11 +1317,12 @@ public ApiResponse deleteCollectionNamespacedDaemonSetWithHttpInfo(Str * (asynchronously) * delete collection of DaemonSet * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param _continue 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) * @param dryRun 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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @param orphanDependents 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) @@ -1326,9 +1342,9 @@ public ApiResponse deleteCollectionNamespacedDaemonSetWithHttpInfo(Str 401 Unauthorized - */ - public okhttp3.Call deleteCollectionNamespacedDaemonSetAsync(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + public okhttp3.Call deleteCollectionNamespacedDaemonSetAsync(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = deleteCollectionNamespacedDaemonSetValidateBeforeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + okhttp3.Call localVarCall = deleteCollectionNamespacedDaemonSetValidateBeforeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -1336,11 +1352,12 @@ public okhttp3.Call deleteCollectionNamespacedDaemonSetAsync(String namespace, S /** * Build call for deleteCollectionNamespacedDeployment * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param _continue 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) * @param dryRun 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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @param orphanDependents 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) @@ -1360,7 +1377,7 @@ public okhttp3.Call deleteCollectionNamespacedDaemonSetAsync(String namespace, S 401 Unauthorized - */ - public okhttp3.Call deleteCollectionNamespacedDeploymentCall(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + public okhttp3.Call deleteCollectionNamespacedDeploymentCall(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; // create path and map variables @@ -1389,6 +1406,10 @@ public okhttp3.Call deleteCollectionNamespacedDeploymentCall(String namespace, S localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); } + if (ignoreStoreReadErrorWithClusterBreakingPotential != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("ignoreStoreReadErrorWithClusterBreakingPotential", ignoreStoreReadErrorWithClusterBreakingPotential)); + } + if (labelSelector != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); } @@ -1425,7 +1446,7 @@ public okhttp3.Call deleteCollectionNamespacedDeploymentCall(String namespace, S Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -1443,7 +1464,7 @@ public okhttp3.Call deleteCollectionNamespacedDeploymentCall(String namespace, S } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteCollectionNamespacedDeploymentValidateBeforeCall(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionNamespacedDeploymentValidateBeforeCall(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { // verify the required parameter 'namespace' is set if (namespace == null) { @@ -1451,7 +1472,7 @@ private okhttp3.Call deleteCollectionNamespacedDeploymentValidateBeforeCall(Stri } - okhttp3.Call localVarCall = deleteCollectionNamespacedDeploymentCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + okhttp3.Call localVarCall = deleteCollectionNamespacedDeploymentCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); return localVarCall; } @@ -1460,11 +1481,12 @@ private okhttp3.Call deleteCollectionNamespacedDeploymentValidateBeforeCall(Stri * * delete collection of Deployment * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param _continue 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) * @param dryRun 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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @param orphanDependents 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) @@ -1483,8 +1505,8 @@ private okhttp3.Call deleteCollectionNamespacedDeploymentValidateBeforeCall(Stri 401 Unauthorized - */ - public V1Status deleteCollectionNamespacedDeployment(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body) throws ApiException { - ApiResponse localVarResp = deleteCollectionNamespacedDeploymentWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); + public V1Status deleteCollectionNamespacedDeployment(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body) throws ApiException { + ApiResponse localVarResp = deleteCollectionNamespacedDeploymentWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); return localVarResp.getData(); } @@ -1492,11 +1514,12 @@ public V1Status deleteCollectionNamespacedDeployment(String namespace, String pr * * delete collection of Deployment * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param _continue 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) * @param dryRun 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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @param orphanDependents 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) @@ -1515,8 +1538,8 @@ public V1Status deleteCollectionNamespacedDeployment(String namespace, String pr 401 Unauthorized - */ - public ApiResponse deleteCollectionNamespacedDeploymentWithHttpInfo(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body) throws ApiException { - okhttp3.Call localVarCall = deleteCollectionNamespacedDeploymentValidateBeforeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, null); + public ApiResponse deleteCollectionNamespacedDeploymentWithHttpInfo(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteCollectionNamespacedDeploymentValidateBeforeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -1525,11 +1548,12 @@ public ApiResponse deleteCollectionNamespacedDeploymentWithHttpInfo(St * (asynchronously) * delete collection of Deployment * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param _continue 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) * @param dryRun 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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @param orphanDependents 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) @@ -1549,9 +1573,9 @@ public ApiResponse deleteCollectionNamespacedDeploymentWithHttpInfo(St 401 Unauthorized - */ - public okhttp3.Call deleteCollectionNamespacedDeploymentAsync(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + public okhttp3.Call deleteCollectionNamespacedDeploymentAsync(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = deleteCollectionNamespacedDeploymentValidateBeforeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + okhttp3.Call localVarCall = deleteCollectionNamespacedDeploymentValidateBeforeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -1559,11 +1583,12 @@ public okhttp3.Call deleteCollectionNamespacedDeploymentAsync(String namespace, /** * Build call for deleteCollectionNamespacedReplicaSet * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param _continue 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) * @param dryRun 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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @param orphanDependents 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) @@ -1583,7 +1608,7 @@ public okhttp3.Call deleteCollectionNamespacedDeploymentAsync(String namespace, 401 Unauthorized - */ - public okhttp3.Call deleteCollectionNamespacedReplicaSetCall(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + public okhttp3.Call deleteCollectionNamespacedReplicaSetCall(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; // create path and map variables @@ -1612,6 +1637,10 @@ public okhttp3.Call deleteCollectionNamespacedReplicaSetCall(String namespace, S localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); } + if (ignoreStoreReadErrorWithClusterBreakingPotential != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("ignoreStoreReadErrorWithClusterBreakingPotential", ignoreStoreReadErrorWithClusterBreakingPotential)); + } + if (labelSelector != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); } @@ -1648,7 +1677,7 @@ public okhttp3.Call deleteCollectionNamespacedReplicaSetCall(String namespace, S Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -1666,7 +1695,7 @@ public okhttp3.Call deleteCollectionNamespacedReplicaSetCall(String namespace, S } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteCollectionNamespacedReplicaSetValidateBeforeCall(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionNamespacedReplicaSetValidateBeforeCall(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { // verify the required parameter 'namespace' is set if (namespace == null) { @@ -1674,7 +1703,7 @@ private okhttp3.Call deleteCollectionNamespacedReplicaSetValidateBeforeCall(Stri } - okhttp3.Call localVarCall = deleteCollectionNamespacedReplicaSetCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + okhttp3.Call localVarCall = deleteCollectionNamespacedReplicaSetCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); return localVarCall; } @@ -1683,11 +1712,12 @@ private okhttp3.Call deleteCollectionNamespacedReplicaSetValidateBeforeCall(Stri * * delete collection of ReplicaSet * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param _continue 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) * @param dryRun 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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @param orphanDependents 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) @@ -1706,8 +1736,8 @@ private okhttp3.Call deleteCollectionNamespacedReplicaSetValidateBeforeCall(Stri 401 Unauthorized - */ - public V1Status deleteCollectionNamespacedReplicaSet(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body) throws ApiException { - ApiResponse localVarResp = deleteCollectionNamespacedReplicaSetWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); + public V1Status deleteCollectionNamespacedReplicaSet(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body) throws ApiException { + ApiResponse localVarResp = deleteCollectionNamespacedReplicaSetWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); return localVarResp.getData(); } @@ -1715,11 +1745,12 @@ public V1Status deleteCollectionNamespacedReplicaSet(String namespace, String pr * * delete collection of ReplicaSet * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param _continue 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) * @param dryRun 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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @param orphanDependents 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) @@ -1738,8 +1769,8 @@ public V1Status deleteCollectionNamespacedReplicaSet(String namespace, String pr 401 Unauthorized - */ - public ApiResponse deleteCollectionNamespacedReplicaSetWithHttpInfo(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body) throws ApiException { - okhttp3.Call localVarCall = deleteCollectionNamespacedReplicaSetValidateBeforeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, null); + public ApiResponse deleteCollectionNamespacedReplicaSetWithHttpInfo(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteCollectionNamespacedReplicaSetValidateBeforeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -1748,11 +1779,12 @@ public ApiResponse deleteCollectionNamespacedReplicaSetWithHttpInfo(St * (asynchronously) * delete collection of ReplicaSet * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param _continue 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) * @param dryRun 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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @param orphanDependents 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) @@ -1772,9 +1804,9 @@ public ApiResponse deleteCollectionNamespacedReplicaSetWithHttpInfo(St 401 Unauthorized - */ - public okhttp3.Call deleteCollectionNamespacedReplicaSetAsync(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + public okhttp3.Call deleteCollectionNamespacedReplicaSetAsync(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = deleteCollectionNamespacedReplicaSetValidateBeforeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + okhttp3.Call localVarCall = deleteCollectionNamespacedReplicaSetValidateBeforeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -1782,11 +1814,12 @@ public okhttp3.Call deleteCollectionNamespacedReplicaSetAsync(String namespace, /** * Build call for deleteCollectionNamespacedStatefulSet * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param _continue 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) * @param dryRun 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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @param orphanDependents 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) @@ -1806,7 +1839,7 @@ public okhttp3.Call deleteCollectionNamespacedReplicaSetAsync(String namespace, 401 Unauthorized - */ - public okhttp3.Call deleteCollectionNamespacedStatefulSetCall(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + public okhttp3.Call deleteCollectionNamespacedStatefulSetCall(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; // create path and map variables @@ -1835,6 +1868,10 @@ public okhttp3.Call deleteCollectionNamespacedStatefulSetCall(String namespace, localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); } + if (ignoreStoreReadErrorWithClusterBreakingPotential != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("ignoreStoreReadErrorWithClusterBreakingPotential", ignoreStoreReadErrorWithClusterBreakingPotential)); + } + if (labelSelector != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); } @@ -1871,7 +1908,7 @@ public okhttp3.Call deleteCollectionNamespacedStatefulSetCall(String namespace, Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -1889,7 +1926,7 @@ public okhttp3.Call deleteCollectionNamespacedStatefulSetCall(String namespace, } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteCollectionNamespacedStatefulSetValidateBeforeCall(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionNamespacedStatefulSetValidateBeforeCall(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { // verify the required parameter 'namespace' is set if (namespace == null) { @@ -1897,7 +1934,7 @@ private okhttp3.Call deleteCollectionNamespacedStatefulSetValidateBeforeCall(Str } - okhttp3.Call localVarCall = deleteCollectionNamespacedStatefulSetCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + okhttp3.Call localVarCall = deleteCollectionNamespacedStatefulSetCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); return localVarCall; } @@ -1906,11 +1943,12 @@ private okhttp3.Call deleteCollectionNamespacedStatefulSetValidateBeforeCall(Str * * delete collection of StatefulSet * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param _continue 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) * @param dryRun 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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @param orphanDependents 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) @@ -1929,8 +1967,8 @@ private okhttp3.Call deleteCollectionNamespacedStatefulSetValidateBeforeCall(Str 401 Unauthorized - */ - public V1Status deleteCollectionNamespacedStatefulSet(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body) throws ApiException { - ApiResponse localVarResp = deleteCollectionNamespacedStatefulSetWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); + public V1Status deleteCollectionNamespacedStatefulSet(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body) throws ApiException { + ApiResponse localVarResp = deleteCollectionNamespacedStatefulSetWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); return localVarResp.getData(); } @@ -1938,11 +1976,12 @@ public V1Status deleteCollectionNamespacedStatefulSet(String namespace, String p * * delete collection of StatefulSet * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param _continue 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) * @param dryRun 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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @param orphanDependents 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) @@ -1961,8 +2000,8 @@ public V1Status deleteCollectionNamespacedStatefulSet(String namespace, String p 401 Unauthorized - */ - public ApiResponse deleteCollectionNamespacedStatefulSetWithHttpInfo(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body) throws ApiException { - okhttp3.Call localVarCall = deleteCollectionNamespacedStatefulSetValidateBeforeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, null); + public ApiResponse deleteCollectionNamespacedStatefulSetWithHttpInfo(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteCollectionNamespacedStatefulSetValidateBeforeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -1971,11 +2010,12 @@ public ApiResponse deleteCollectionNamespacedStatefulSetWithHttpInfo(S * (asynchronously) * delete collection of StatefulSet * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param _continue 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) * @param dryRun 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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @param orphanDependents 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) @@ -1995,9 +2035,9 @@ public ApiResponse deleteCollectionNamespacedStatefulSetWithHttpInfo(S 401 Unauthorized - */ - public okhttp3.Call deleteCollectionNamespacedStatefulSetAsync(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + public okhttp3.Call deleteCollectionNamespacedStatefulSetAsync(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = deleteCollectionNamespacedStatefulSetValidateBeforeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + okhttp3.Call localVarCall = deleteCollectionNamespacedStatefulSetValidateBeforeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -2006,9 +2046,10 @@ public okhttp3.Call deleteCollectionNamespacedStatefulSetAsync(String namespace, * Build call for deleteNamespacedControllerRevision * @param name name of the ControllerRevision (required) * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @param orphanDependents 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) * @param propagationPolicy 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. (optional) * @param body (optional) @@ -2023,7 +2064,7 @@ public okhttp3.Call deleteCollectionNamespacedStatefulSetAsync(String namespace, 401 Unauthorized - */ - public okhttp3.Call deleteNamespacedControllerRevisionCall(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + public okhttp3.Call deleteNamespacedControllerRevisionCall(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; // create path and map variables @@ -2045,6 +2086,10 @@ public okhttp3.Call deleteNamespacedControllerRevisionCall(String name, String n localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); } + if (ignoreStoreReadErrorWithClusterBreakingPotential != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("ignoreStoreReadErrorWithClusterBreakingPotential", ignoreStoreReadErrorWithClusterBreakingPotential)); + } + if (orphanDependents != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("orphanDependents", orphanDependents)); } @@ -2057,7 +2102,7 @@ public okhttp3.Call deleteNamespacedControllerRevisionCall(String name, String n Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -2075,7 +2120,7 @@ public okhttp3.Call deleteNamespacedControllerRevisionCall(String name, String n } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteNamespacedControllerRevisionValidateBeforeCall(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteNamespacedControllerRevisionValidateBeforeCall(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -2088,7 +2133,7 @@ private okhttp3.Call deleteNamespacedControllerRevisionValidateBeforeCall(String } - okhttp3.Call localVarCall = deleteNamespacedControllerRevisionCall(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); + okhttp3.Call localVarCall = deleteNamespacedControllerRevisionCall(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); return localVarCall; } @@ -2098,9 +2143,10 @@ private okhttp3.Call deleteNamespacedControllerRevisionValidateBeforeCall(String * delete a ControllerRevision * @param name name of the ControllerRevision (required) * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @param orphanDependents 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) * @param propagationPolicy 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. (optional) * @param body (optional) @@ -2114,8 +2160,8 @@ private okhttp3.Call deleteNamespacedControllerRevisionValidateBeforeCall(String 401 Unauthorized - */ - public V1Status deleteNamespacedControllerRevision(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { - ApiResponse localVarResp = deleteNamespacedControllerRevisionWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body); + public V1Status deleteNamespacedControllerRevision(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { + ApiResponse localVarResp = deleteNamespacedControllerRevisionWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body); return localVarResp.getData(); } @@ -2124,9 +2170,10 @@ public V1Status deleteNamespacedControllerRevision(String name, String namespace * delete a ControllerRevision * @param name name of the ControllerRevision (required) * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @param orphanDependents 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) * @param propagationPolicy 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. (optional) * @param body (optional) @@ -2140,8 +2187,8 @@ public V1Status deleteNamespacedControllerRevision(String name, String namespace 401 Unauthorized - */ - public ApiResponse deleteNamespacedControllerRevisionWithHttpInfo(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { - okhttp3.Call localVarCall = deleteNamespacedControllerRevisionValidateBeforeCall(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, null); + public ApiResponse deleteNamespacedControllerRevisionWithHttpInfo(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteNamespacedControllerRevisionValidateBeforeCall(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -2151,9 +2198,10 @@ public ApiResponse deleteNamespacedControllerRevisionWithHttpInfo(Stri * delete a ControllerRevision * @param name name of the ControllerRevision (required) * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @param orphanDependents 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) * @param propagationPolicy 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. (optional) * @param body (optional) @@ -2168,9 +2216,9 @@ public ApiResponse deleteNamespacedControllerRevisionWithHttpInfo(Stri 401 Unauthorized - */ - public okhttp3.Call deleteNamespacedControllerRevisionAsync(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + public okhttp3.Call deleteNamespacedControllerRevisionAsync(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = deleteNamespacedControllerRevisionValidateBeforeCall(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); + okhttp3.Call localVarCall = deleteNamespacedControllerRevisionValidateBeforeCall(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -2179,9 +2227,10 @@ public okhttp3.Call deleteNamespacedControllerRevisionAsync(String name, String * Build call for deleteNamespacedDaemonSet * @param name name of the DaemonSet (required) * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @param orphanDependents 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) * @param propagationPolicy 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. (optional) * @param body (optional) @@ -2196,7 +2245,7 @@ public okhttp3.Call deleteNamespacedControllerRevisionAsync(String name, String 401 Unauthorized - */ - public okhttp3.Call deleteNamespacedDaemonSetCall(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + public okhttp3.Call deleteNamespacedDaemonSetCall(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; // create path and map variables @@ -2218,6 +2267,10 @@ public okhttp3.Call deleteNamespacedDaemonSetCall(String name, String namespace, localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); } + if (ignoreStoreReadErrorWithClusterBreakingPotential != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("ignoreStoreReadErrorWithClusterBreakingPotential", ignoreStoreReadErrorWithClusterBreakingPotential)); + } + if (orphanDependents != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("orphanDependents", orphanDependents)); } @@ -2230,7 +2283,7 @@ public okhttp3.Call deleteNamespacedDaemonSetCall(String name, String namespace, Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -2248,7 +2301,7 @@ public okhttp3.Call deleteNamespacedDaemonSetCall(String name, String namespace, } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteNamespacedDaemonSetValidateBeforeCall(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteNamespacedDaemonSetValidateBeforeCall(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -2261,7 +2314,7 @@ private okhttp3.Call deleteNamespacedDaemonSetValidateBeforeCall(String name, St } - okhttp3.Call localVarCall = deleteNamespacedDaemonSetCall(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); + okhttp3.Call localVarCall = deleteNamespacedDaemonSetCall(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); return localVarCall; } @@ -2271,9 +2324,10 @@ private okhttp3.Call deleteNamespacedDaemonSetValidateBeforeCall(String name, St * delete a DaemonSet * @param name name of the DaemonSet (required) * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @param orphanDependents 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) * @param propagationPolicy 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. (optional) * @param body (optional) @@ -2287,8 +2341,8 @@ private okhttp3.Call deleteNamespacedDaemonSetValidateBeforeCall(String name, St 401 Unauthorized - */ - public V1Status deleteNamespacedDaemonSet(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { - ApiResponse localVarResp = deleteNamespacedDaemonSetWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body); + public V1Status deleteNamespacedDaemonSet(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { + ApiResponse localVarResp = deleteNamespacedDaemonSetWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body); return localVarResp.getData(); } @@ -2297,9 +2351,10 @@ public V1Status deleteNamespacedDaemonSet(String name, String namespace, String * delete a DaemonSet * @param name name of the DaemonSet (required) * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @param orphanDependents 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) * @param propagationPolicy 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. (optional) * @param body (optional) @@ -2313,8 +2368,8 @@ public V1Status deleteNamespacedDaemonSet(String name, String namespace, String 401 Unauthorized - */ - public ApiResponse deleteNamespacedDaemonSetWithHttpInfo(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { - okhttp3.Call localVarCall = deleteNamespacedDaemonSetValidateBeforeCall(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, null); + public ApiResponse deleteNamespacedDaemonSetWithHttpInfo(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteNamespacedDaemonSetValidateBeforeCall(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -2324,9 +2379,10 @@ public ApiResponse deleteNamespacedDaemonSetWithHttpInfo(String name, * delete a DaemonSet * @param name name of the DaemonSet (required) * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @param orphanDependents 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) * @param propagationPolicy 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. (optional) * @param body (optional) @@ -2341,9 +2397,9 @@ public ApiResponse deleteNamespacedDaemonSetWithHttpInfo(String name, 401 Unauthorized - */ - public okhttp3.Call deleteNamespacedDaemonSetAsync(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + public okhttp3.Call deleteNamespacedDaemonSetAsync(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = deleteNamespacedDaemonSetValidateBeforeCall(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); + okhttp3.Call localVarCall = deleteNamespacedDaemonSetValidateBeforeCall(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -2352,9 +2408,10 @@ public okhttp3.Call deleteNamespacedDaemonSetAsync(String name, String namespace * Build call for deleteNamespacedDeployment * @param name name of the Deployment (required) * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @param orphanDependents 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) * @param propagationPolicy 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. (optional) * @param body (optional) @@ -2369,7 +2426,7 @@ public okhttp3.Call deleteNamespacedDaemonSetAsync(String name, String namespace 401 Unauthorized - */ - public okhttp3.Call deleteNamespacedDeploymentCall(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + public okhttp3.Call deleteNamespacedDeploymentCall(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; // create path and map variables @@ -2391,6 +2448,10 @@ public okhttp3.Call deleteNamespacedDeploymentCall(String name, String namespace localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); } + if (ignoreStoreReadErrorWithClusterBreakingPotential != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("ignoreStoreReadErrorWithClusterBreakingPotential", ignoreStoreReadErrorWithClusterBreakingPotential)); + } + if (orphanDependents != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("orphanDependents", orphanDependents)); } @@ -2403,7 +2464,7 @@ public okhttp3.Call deleteNamespacedDeploymentCall(String name, String namespace Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -2421,7 +2482,7 @@ public okhttp3.Call deleteNamespacedDeploymentCall(String name, String namespace } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteNamespacedDeploymentValidateBeforeCall(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteNamespacedDeploymentValidateBeforeCall(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -2434,7 +2495,7 @@ private okhttp3.Call deleteNamespacedDeploymentValidateBeforeCall(String name, S } - okhttp3.Call localVarCall = deleteNamespacedDeploymentCall(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); + okhttp3.Call localVarCall = deleteNamespacedDeploymentCall(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); return localVarCall; } @@ -2444,9 +2505,10 @@ private okhttp3.Call deleteNamespacedDeploymentValidateBeforeCall(String name, S * delete a Deployment * @param name name of the Deployment (required) * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @param orphanDependents 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) * @param propagationPolicy 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. (optional) * @param body (optional) @@ -2460,8 +2522,8 @@ private okhttp3.Call deleteNamespacedDeploymentValidateBeforeCall(String name, S 401 Unauthorized - */ - public V1Status deleteNamespacedDeployment(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { - ApiResponse localVarResp = deleteNamespacedDeploymentWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body); + public V1Status deleteNamespacedDeployment(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { + ApiResponse localVarResp = deleteNamespacedDeploymentWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body); return localVarResp.getData(); } @@ -2470,9 +2532,10 @@ public V1Status deleteNamespacedDeployment(String name, String namespace, String * delete a Deployment * @param name name of the Deployment (required) * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @param orphanDependents 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) * @param propagationPolicy 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. (optional) * @param body (optional) @@ -2486,8 +2549,8 @@ public V1Status deleteNamespacedDeployment(String name, String namespace, String 401 Unauthorized - */ - public ApiResponse deleteNamespacedDeploymentWithHttpInfo(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { - okhttp3.Call localVarCall = deleteNamespacedDeploymentValidateBeforeCall(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, null); + public ApiResponse deleteNamespacedDeploymentWithHttpInfo(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteNamespacedDeploymentValidateBeforeCall(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -2497,9 +2560,10 @@ public ApiResponse deleteNamespacedDeploymentWithHttpInfo(String name, * delete a Deployment * @param name name of the Deployment (required) * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @param orphanDependents 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) * @param propagationPolicy 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. (optional) * @param body (optional) @@ -2514,9 +2578,9 @@ public ApiResponse deleteNamespacedDeploymentWithHttpInfo(String name, 401 Unauthorized - */ - public okhttp3.Call deleteNamespacedDeploymentAsync(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + public okhttp3.Call deleteNamespacedDeploymentAsync(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = deleteNamespacedDeploymentValidateBeforeCall(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); + okhttp3.Call localVarCall = deleteNamespacedDeploymentValidateBeforeCall(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -2525,9 +2589,10 @@ public okhttp3.Call deleteNamespacedDeploymentAsync(String name, String namespac * Build call for deleteNamespacedReplicaSet * @param name name of the ReplicaSet (required) * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @param orphanDependents 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) * @param propagationPolicy 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. (optional) * @param body (optional) @@ -2542,7 +2607,7 @@ public okhttp3.Call deleteNamespacedDeploymentAsync(String name, String namespac 401 Unauthorized - */ - public okhttp3.Call deleteNamespacedReplicaSetCall(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + public okhttp3.Call deleteNamespacedReplicaSetCall(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; // create path and map variables @@ -2564,6 +2629,10 @@ public okhttp3.Call deleteNamespacedReplicaSetCall(String name, String namespace localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); } + if (ignoreStoreReadErrorWithClusterBreakingPotential != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("ignoreStoreReadErrorWithClusterBreakingPotential", ignoreStoreReadErrorWithClusterBreakingPotential)); + } + if (orphanDependents != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("orphanDependents", orphanDependents)); } @@ -2576,7 +2645,7 @@ public okhttp3.Call deleteNamespacedReplicaSetCall(String name, String namespace Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -2594,7 +2663,7 @@ public okhttp3.Call deleteNamespacedReplicaSetCall(String name, String namespace } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteNamespacedReplicaSetValidateBeforeCall(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteNamespacedReplicaSetValidateBeforeCall(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -2607,7 +2676,7 @@ private okhttp3.Call deleteNamespacedReplicaSetValidateBeforeCall(String name, S } - okhttp3.Call localVarCall = deleteNamespacedReplicaSetCall(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); + okhttp3.Call localVarCall = deleteNamespacedReplicaSetCall(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); return localVarCall; } @@ -2617,9 +2686,10 @@ private okhttp3.Call deleteNamespacedReplicaSetValidateBeforeCall(String name, S * delete a ReplicaSet * @param name name of the ReplicaSet (required) * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @param orphanDependents 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) * @param propagationPolicy 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. (optional) * @param body (optional) @@ -2633,8 +2703,8 @@ private okhttp3.Call deleteNamespacedReplicaSetValidateBeforeCall(String name, S 401 Unauthorized - */ - public V1Status deleteNamespacedReplicaSet(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { - ApiResponse localVarResp = deleteNamespacedReplicaSetWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body); + public V1Status deleteNamespacedReplicaSet(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { + ApiResponse localVarResp = deleteNamespacedReplicaSetWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body); return localVarResp.getData(); } @@ -2643,9 +2713,10 @@ public V1Status deleteNamespacedReplicaSet(String name, String namespace, String * delete a ReplicaSet * @param name name of the ReplicaSet (required) * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @param orphanDependents 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) * @param propagationPolicy 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. (optional) * @param body (optional) @@ -2659,8 +2730,8 @@ public V1Status deleteNamespacedReplicaSet(String name, String namespace, String 401 Unauthorized - */ - public ApiResponse deleteNamespacedReplicaSetWithHttpInfo(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { - okhttp3.Call localVarCall = deleteNamespacedReplicaSetValidateBeforeCall(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, null); + public ApiResponse deleteNamespacedReplicaSetWithHttpInfo(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteNamespacedReplicaSetValidateBeforeCall(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -2670,9 +2741,10 @@ public ApiResponse deleteNamespacedReplicaSetWithHttpInfo(String name, * delete a ReplicaSet * @param name name of the ReplicaSet (required) * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @param orphanDependents 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) * @param propagationPolicy 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. (optional) * @param body (optional) @@ -2687,9 +2759,9 @@ public ApiResponse deleteNamespacedReplicaSetWithHttpInfo(String name, 401 Unauthorized - */ - public okhttp3.Call deleteNamespacedReplicaSetAsync(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + public okhttp3.Call deleteNamespacedReplicaSetAsync(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = deleteNamespacedReplicaSetValidateBeforeCall(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); + okhttp3.Call localVarCall = deleteNamespacedReplicaSetValidateBeforeCall(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -2698,9 +2770,10 @@ public okhttp3.Call deleteNamespacedReplicaSetAsync(String name, String namespac * Build call for deleteNamespacedStatefulSet * @param name name of the StatefulSet (required) * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @param orphanDependents 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) * @param propagationPolicy 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. (optional) * @param body (optional) @@ -2715,7 +2788,7 @@ public okhttp3.Call deleteNamespacedReplicaSetAsync(String name, String namespac 401 Unauthorized - */ - public okhttp3.Call deleteNamespacedStatefulSetCall(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + public okhttp3.Call deleteNamespacedStatefulSetCall(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; // create path and map variables @@ -2737,6 +2810,10 @@ public okhttp3.Call deleteNamespacedStatefulSetCall(String name, String namespac localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); } + if (ignoreStoreReadErrorWithClusterBreakingPotential != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("ignoreStoreReadErrorWithClusterBreakingPotential", ignoreStoreReadErrorWithClusterBreakingPotential)); + } + if (orphanDependents != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("orphanDependents", orphanDependents)); } @@ -2749,7 +2826,7 @@ public okhttp3.Call deleteNamespacedStatefulSetCall(String name, String namespac Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -2767,7 +2844,7 @@ public okhttp3.Call deleteNamespacedStatefulSetCall(String name, String namespac } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteNamespacedStatefulSetValidateBeforeCall(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteNamespacedStatefulSetValidateBeforeCall(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -2780,7 +2857,7 @@ private okhttp3.Call deleteNamespacedStatefulSetValidateBeforeCall(String name, } - okhttp3.Call localVarCall = deleteNamespacedStatefulSetCall(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); + okhttp3.Call localVarCall = deleteNamespacedStatefulSetCall(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); return localVarCall; } @@ -2790,9 +2867,10 @@ private okhttp3.Call deleteNamespacedStatefulSetValidateBeforeCall(String name, * delete a StatefulSet * @param name name of the StatefulSet (required) * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @param orphanDependents 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) * @param propagationPolicy 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. (optional) * @param body (optional) @@ -2806,8 +2884,8 @@ private okhttp3.Call deleteNamespacedStatefulSetValidateBeforeCall(String name, 401 Unauthorized - */ - public V1Status deleteNamespacedStatefulSet(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { - ApiResponse localVarResp = deleteNamespacedStatefulSetWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body); + public V1Status deleteNamespacedStatefulSet(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { + ApiResponse localVarResp = deleteNamespacedStatefulSetWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body); return localVarResp.getData(); } @@ -2816,9 +2894,10 @@ public V1Status deleteNamespacedStatefulSet(String name, String namespace, Strin * delete a StatefulSet * @param name name of the StatefulSet (required) * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @param orphanDependents 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) * @param propagationPolicy 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. (optional) * @param body (optional) @@ -2832,8 +2911,8 @@ public V1Status deleteNamespacedStatefulSet(String name, String namespace, Strin 401 Unauthorized - */ - public ApiResponse deleteNamespacedStatefulSetWithHttpInfo(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { - okhttp3.Call localVarCall = deleteNamespacedStatefulSetValidateBeforeCall(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, null); + public ApiResponse deleteNamespacedStatefulSetWithHttpInfo(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteNamespacedStatefulSetValidateBeforeCall(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -2843,9 +2922,10 @@ public ApiResponse deleteNamespacedStatefulSetWithHttpInfo(String name * delete a StatefulSet * @param name name of the StatefulSet (required) * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @param orphanDependents 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) * @param propagationPolicy 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. (optional) * @param body (optional) @@ -2860,9 +2940,9 @@ public ApiResponse deleteNamespacedStatefulSetWithHttpInfo(String name 401 Unauthorized - */ - public okhttp3.Call deleteNamespacedStatefulSetAsync(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + public okhttp3.Call deleteNamespacedStatefulSetAsync(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = deleteNamespacedStatefulSetValidateBeforeCall(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); + okhttp3.Call localVarCall = deleteNamespacedStatefulSetValidateBeforeCall(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -2891,7 +2971,7 @@ public okhttp3.Call getAPIResourcesCall(final ApiCallback _callback) throws ApiE Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -2979,7 +3059,7 @@ public okhttp3.Call getAPIResourcesAsync(final ApiCallback _c * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) @@ -3051,7 +3131,7 @@ public okhttp3.Call listControllerRevisionForAllNamespacesCall(Boolean allowWatc Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch", "application/cbor-seq" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -3085,7 +3165,7 @@ private okhttp3.Call listControllerRevisionForAllNamespacesValidateBeforeCall(Bo * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) @@ -3113,7 +3193,7 @@ public V1ControllerRevisionList listControllerRevisionForAllNamespaces(Boolean a * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) @@ -3142,7 +3222,7 @@ public ApiResponse listControllerRevisionForAllNamespa * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) @@ -3172,7 +3252,7 @@ public okhttp3.Call listControllerRevisionForAllNamespacesAsync(Boolean allowWat * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) @@ -3244,7 +3324,7 @@ public okhttp3.Call listDaemonSetForAllNamespacesCall(Boolean allowWatchBookmark Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch", "application/cbor-seq" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -3278,7 +3358,7 @@ private okhttp3.Call listDaemonSetForAllNamespacesValidateBeforeCall(Boolean all * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) @@ -3306,7 +3386,7 @@ public V1DaemonSetList listDaemonSetForAllNamespaces(Boolean allowWatchBookmarks * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) @@ -3335,7 +3415,7 @@ public ApiResponse listDaemonSetForAllNamespacesWithHttpInfo(Bo * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) @@ -3365,7 +3445,7 @@ public okhttp3.Call listDaemonSetForAllNamespacesAsync(Boolean allowWatchBookmar * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) @@ -3437,7 +3517,7 @@ public okhttp3.Call listDeploymentForAllNamespacesCall(Boolean allowWatchBookmar Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch", "application/cbor-seq" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -3471,7 +3551,7 @@ private okhttp3.Call listDeploymentForAllNamespacesValidateBeforeCall(Boolean al * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) @@ -3499,7 +3579,7 @@ public V1DeploymentList listDeploymentForAllNamespaces(Boolean allowWatchBookmar * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) @@ -3528,7 +3608,7 @@ public ApiResponse listDeploymentForAllNamespacesWithHttpInfo( * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) @@ -3554,7 +3634,7 @@ public okhttp3.Call listDeploymentForAllNamespacesAsync(Boolean allowWatchBookma /** * Build call for listNamespacedControllerRevision * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param allowWatchBookmarks 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. (optional) * @param _continue 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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) @@ -3632,7 +3712,7 @@ public okhttp3.Call listNamespacedControllerRevisionCall(String namespace, Strin Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch", "application/cbor-seq" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -3667,7 +3747,7 @@ private okhttp3.Call listNamespacedControllerRevisionValidateBeforeCall(String n * * list or watch objects of kind ControllerRevision * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param allowWatchBookmarks 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. (optional) * @param _continue 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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) @@ -3696,7 +3776,7 @@ public V1ControllerRevisionList listNamespacedControllerRevision(String namespac * * list or watch objects of kind ControllerRevision * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param allowWatchBookmarks 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. (optional) * @param _continue 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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) @@ -3726,7 +3806,7 @@ public ApiResponse listNamespacedControllerRevisionWit * (asynchronously) * list or watch objects of kind ControllerRevision * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param allowWatchBookmarks 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. (optional) * @param _continue 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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) @@ -3757,7 +3837,7 @@ public okhttp3.Call listNamespacedControllerRevisionAsync(String namespace, Stri /** * Build call for listNamespacedDaemonSet * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param allowWatchBookmarks 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. (optional) * @param _continue 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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) @@ -3835,7 +3915,7 @@ public okhttp3.Call listNamespacedDaemonSetCall(String namespace, String pretty, Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch", "application/cbor-seq" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -3870,7 +3950,7 @@ private okhttp3.Call listNamespacedDaemonSetValidateBeforeCall(String namespace, * * list or watch objects of kind DaemonSet * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param allowWatchBookmarks 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. (optional) * @param _continue 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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) @@ -3899,7 +3979,7 @@ public V1DaemonSetList listNamespacedDaemonSet(String namespace, String pretty, * * list or watch objects of kind DaemonSet * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param allowWatchBookmarks 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. (optional) * @param _continue 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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) @@ -3929,7 +4009,7 @@ public ApiResponse listNamespacedDaemonSetWithHttpInfo(String n * (asynchronously) * list or watch objects of kind DaemonSet * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param allowWatchBookmarks 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. (optional) * @param _continue 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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) @@ -3960,7 +4040,7 @@ public okhttp3.Call listNamespacedDaemonSetAsync(String namespace, String pretty /** * Build call for listNamespacedDeployment * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param allowWatchBookmarks 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. (optional) * @param _continue 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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) @@ -4038,7 +4118,7 @@ public okhttp3.Call listNamespacedDeploymentCall(String namespace, String pretty Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch", "application/cbor-seq" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -4073,7 +4153,7 @@ private okhttp3.Call listNamespacedDeploymentValidateBeforeCall(String namespace * * list or watch objects of kind Deployment * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param allowWatchBookmarks 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. (optional) * @param _continue 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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) @@ -4102,7 +4182,7 @@ public V1DeploymentList listNamespacedDeployment(String namespace, String pretty * * list or watch objects of kind Deployment * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param allowWatchBookmarks 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. (optional) * @param _continue 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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) @@ -4132,7 +4212,7 @@ public ApiResponse listNamespacedDeploymentWithHttpInfo(String * (asynchronously) * list or watch objects of kind Deployment * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param allowWatchBookmarks 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. (optional) * @param _continue 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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) @@ -4163,7 +4243,7 @@ public okhttp3.Call listNamespacedDeploymentAsync(String namespace, String prett /** * Build call for listNamespacedReplicaSet * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param allowWatchBookmarks 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. (optional) * @param _continue 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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) @@ -4241,7 +4321,7 @@ public okhttp3.Call listNamespacedReplicaSetCall(String namespace, String pretty Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch", "application/cbor-seq" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -4276,7 +4356,7 @@ private okhttp3.Call listNamespacedReplicaSetValidateBeforeCall(String namespace * * list or watch objects of kind ReplicaSet * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param allowWatchBookmarks 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. (optional) * @param _continue 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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) @@ -4305,7 +4385,7 @@ public V1ReplicaSetList listNamespacedReplicaSet(String namespace, String pretty * * list or watch objects of kind ReplicaSet * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param allowWatchBookmarks 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. (optional) * @param _continue 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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) @@ -4335,7 +4415,7 @@ public ApiResponse listNamespacedReplicaSetWithHttpInfo(String * (asynchronously) * list or watch objects of kind ReplicaSet * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param allowWatchBookmarks 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. (optional) * @param _continue 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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) @@ -4366,7 +4446,7 @@ public okhttp3.Call listNamespacedReplicaSetAsync(String namespace, String prett /** * Build call for listNamespacedStatefulSet * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param allowWatchBookmarks 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. (optional) * @param _continue 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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) @@ -4444,7 +4524,7 @@ public okhttp3.Call listNamespacedStatefulSetCall(String namespace, String prett Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch", "application/cbor-seq" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -4479,7 +4559,7 @@ private okhttp3.Call listNamespacedStatefulSetValidateBeforeCall(String namespac * * list or watch objects of kind StatefulSet * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param allowWatchBookmarks 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. (optional) * @param _continue 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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) @@ -4508,7 +4588,7 @@ public V1StatefulSetList listNamespacedStatefulSet(String namespace, String pret * * list or watch objects of kind StatefulSet * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param allowWatchBookmarks 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. (optional) * @param _continue 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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) @@ -4538,7 +4618,7 @@ public ApiResponse listNamespacedStatefulSetWithHttpInfo(Stri * (asynchronously) * list or watch objects of kind StatefulSet * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param allowWatchBookmarks 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. (optional) * @param _continue 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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) @@ -4573,7 +4653,7 @@ public okhttp3.Call listNamespacedStatefulSetAsync(String namespace, String pret * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) @@ -4645,7 +4725,7 @@ public okhttp3.Call listReplicaSetForAllNamespacesCall(Boolean allowWatchBookmar Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch", "application/cbor-seq" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -4679,7 +4759,7 @@ private okhttp3.Call listReplicaSetForAllNamespacesValidateBeforeCall(Boolean al * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) @@ -4707,7 +4787,7 @@ public V1ReplicaSetList listReplicaSetForAllNamespaces(Boolean allowWatchBookmar * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) @@ -4736,7 +4816,7 @@ public ApiResponse listReplicaSetForAllNamespacesWithHttpInfo( * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) @@ -4766,7 +4846,7 @@ public okhttp3.Call listReplicaSetForAllNamespacesAsync(Boolean allowWatchBookma * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) @@ -4838,7 +4918,7 @@ public okhttp3.Call listStatefulSetForAllNamespacesCall(Boolean allowWatchBookma Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch", "application/cbor-seq" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -4872,7 +4952,7 @@ private okhttp3.Call listStatefulSetForAllNamespacesValidateBeforeCall(Boolean a * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) @@ -4900,7 +4980,7 @@ public V1StatefulSetList listStatefulSetForAllNamespaces(Boolean allowWatchBookm * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) @@ -4929,7 +5009,7 @@ public ApiResponse listStatefulSetForAllNamespacesWithHttpInf * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) @@ -4957,7 +5037,7 @@ public okhttp3.Call listStatefulSetForAllNamespacesAsync(Boolean allowWatchBookm * @param name name of the ControllerRevision (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -5007,7 +5087,7 @@ public okhttp3.Call patchNamespacedControllerRevisionCall(String name, String na Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -5054,7 +5134,7 @@ private okhttp3.Call patchNamespacedControllerRevisionValidateBeforeCall(String * @param name name of the ControllerRevision (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -5080,7 +5160,7 @@ public V1ControllerRevision patchNamespacedControllerRevision(String name, Strin * @param name name of the ControllerRevision (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -5107,7 +5187,7 @@ public ApiResponse patchNamespacedControllerRevisionWithHt * @param name name of the ControllerRevision (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -5135,7 +5215,7 @@ public okhttp3.Call patchNamespacedControllerRevisionAsync(String name, String n * @param name name of the DaemonSet (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -5185,7 +5265,7 @@ public okhttp3.Call patchNamespacedDaemonSetCall(String name, String namespace, Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -5232,7 +5312,7 @@ private okhttp3.Call patchNamespacedDaemonSetValidateBeforeCall(String name, Str * @param name name of the DaemonSet (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -5258,7 +5338,7 @@ public V1DaemonSet patchNamespacedDaemonSet(String name, String namespace, V1Pat * @param name name of the DaemonSet (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -5285,7 +5365,7 @@ public ApiResponse patchNamespacedDaemonSetWithHttpInfo(String name * @param name name of the DaemonSet (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -5313,7 +5393,7 @@ public okhttp3.Call patchNamespacedDaemonSetAsync(String name, String namespace, * @param name name of the DaemonSet (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -5363,7 +5443,7 @@ public okhttp3.Call patchNamespacedDaemonSetStatusCall(String name, String names Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -5410,7 +5490,7 @@ private okhttp3.Call patchNamespacedDaemonSetStatusValidateBeforeCall(String nam * @param name name of the DaemonSet (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -5436,7 +5516,7 @@ public V1DaemonSet patchNamespacedDaemonSetStatus(String name, String namespace, * @param name name of the DaemonSet (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -5463,7 +5543,7 @@ public ApiResponse patchNamespacedDaemonSetStatusWithHttpInfo(Strin * @param name name of the DaemonSet (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -5491,7 +5571,7 @@ public okhttp3.Call patchNamespacedDaemonSetStatusAsync(String name, String name * @param name name of the Deployment (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -5541,7 +5621,7 @@ public okhttp3.Call patchNamespacedDeploymentCall(String name, String namespace, Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -5588,7 +5668,7 @@ private okhttp3.Call patchNamespacedDeploymentValidateBeforeCall(String name, St * @param name name of the Deployment (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -5614,7 +5694,7 @@ public V1Deployment patchNamespacedDeployment(String name, String namespace, V1P * @param name name of the Deployment (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -5641,7 +5721,7 @@ public ApiResponse patchNamespacedDeploymentWithHttpInfo(String na * @param name name of the Deployment (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -5669,7 +5749,7 @@ public okhttp3.Call patchNamespacedDeploymentAsync(String name, String namespace * @param name name of the Scale (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -5719,7 +5799,7 @@ public okhttp3.Call patchNamespacedDeploymentScaleCall(String name, String names Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -5766,7 +5846,7 @@ private okhttp3.Call patchNamespacedDeploymentScaleValidateBeforeCall(String nam * @param name name of the Scale (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -5792,7 +5872,7 @@ public V1Scale patchNamespacedDeploymentScale(String name, String namespace, V1P * @param name name of the Scale (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -5819,7 +5899,7 @@ public ApiResponse patchNamespacedDeploymentScaleWithHttpInfo(String na * @param name name of the Scale (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -5847,7 +5927,7 @@ public okhttp3.Call patchNamespacedDeploymentScaleAsync(String name, String name * @param name name of the Deployment (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -5897,7 +5977,7 @@ public okhttp3.Call patchNamespacedDeploymentStatusCall(String name, String name Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -5944,7 +6024,7 @@ private okhttp3.Call patchNamespacedDeploymentStatusValidateBeforeCall(String na * @param name name of the Deployment (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -5970,7 +6050,7 @@ public V1Deployment patchNamespacedDeploymentStatus(String name, String namespac * @param name name of the Deployment (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -5997,7 +6077,7 @@ public ApiResponse patchNamespacedDeploymentStatusWithHttpInfo(Str * @param name name of the Deployment (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -6025,7 +6105,7 @@ public okhttp3.Call patchNamespacedDeploymentStatusAsync(String name, String nam * @param name name of the ReplicaSet (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -6075,7 +6155,7 @@ public okhttp3.Call patchNamespacedReplicaSetCall(String name, String namespace, Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -6122,7 +6202,7 @@ private okhttp3.Call patchNamespacedReplicaSetValidateBeforeCall(String name, St * @param name name of the ReplicaSet (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -6148,7 +6228,7 @@ public V1ReplicaSet patchNamespacedReplicaSet(String name, String namespace, V1P * @param name name of the ReplicaSet (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -6175,7 +6255,7 @@ public ApiResponse patchNamespacedReplicaSetWithHttpInfo(String na * @param name name of the ReplicaSet (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -6203,7 +6283,7 @@ public okhttp3.Call patchNamespacedReplicaSetAsync(String name, String namespace * @param name name of the Scale (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -6253,7 +6333,7 @@ public okhttp3.Call patchNamespacedReplicaSetScaleCall(String name, String names Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -6300,7 +6380,7 @@ private okhttp3.Call patchNamespacedReplicaSetScaleValidateBeforeCall(String nam * @param name name of the Scale (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -6326,7 +6406,7 @@ public V1Scale patchNamespacedReplicaSetScale(String name, String namespace, V1P * @param name name of the Scale (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -6353,7 +6433,7 @@ public ApiResponse patchNamespacedReplicaSetScaleWithHttpInfo(String na * @param name name of the Scale (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -6381,7 +6461,7 @@ public okhttp3.Call patchNamespacedReplicaSetScaleAsync(String name, String name * @param name name of the ReplicaSet (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -6431,7 +6511,7 @@ public okhttp3.Call patchNamespacedReplicaSetStatusCall(String name, String name Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -6478,7 +6558,7 @@ private okhttp3.Call patchNamespacedReplicaSetStatusValidateBeforeCall(String na * @param name name of the ReplicaSet (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -6504,7 +6584,7 @@ public V1ReplicaSet patchNamespacedReplicaSetStatus(String name, String namespac * @param name name of the ReplicaSet (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -6531,7 +6611,7 @@ public ApiResponse patchNamespacedReplicaSetStatusWithHttpInfo(Str * @param name name of the ReplicaSet (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -6559,7 +6639,7 @@ public okhttp3.Call patchNamespacedReplicaSetStatusAsync(String name, String nam * @param name name of the StatefulSet (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -6609,7 +6689,7 @@ public okhttp3.Call patchNamespacedStatefulSetCall(String name, String namespace Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -6656,7 +6736,7 @@ private okhttp3.Call patchNamespacedStatefulSetValidateBeforeCall(String name, S * @param name name of the StatefulSet (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -6682,7 +6762,7 @@ public V1StatefulSet patchNamespacedStatefulSet(String name, String namespace, V * @param name name of the StatefulSet (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -6709,7 +6789,7 @@ public ApiResponse patchNamespacedStatefulSetWithHttpInfo(String * @param name name of the StatefulSet (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -6737,7 +6817,7 @@ public okhttp3.Call patchNamespacedStatefulSetAsync(String name, String namespac * @param name name of the Scale (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -6787,7 +6867,7 @@ public okhttp3.Call patchNamespacedStatefulSetScaleCall(String name, String name Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -6834,7 +6914,7 @@ private okhttp3.Call patchNamespacedStatefulSetScaleValidateBeforeCall(String na * @param name name of the Scale (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -6860,7 +6940,7 @@ public V1Scale patchNamespacedStatefulSetScale(String name, String namespace, V1 * @param name name of the Scale (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -6887,7 +6967,7 @@ public ApiResponse patchNamespacedStatefulSetScaleWithHttpInfo(String n * @param name name of the Scale (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -6915,7 +6995,7 @@ public okhttp3.Call patchNamespacedStatefulSetScaleAsync(String name, String nam * @param name name of the StatefulSet (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -6965,7 +7045,7 @@ public okhttp3.Call patchNamespacedStatefulSetStatusCall(String name, String nam Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -7012,7 +7092,7 @@ private okhttp3.Call patchNamespacedStatefulSetStatusValidateBeforeCall(String n * @param name name of the StatefulSet (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -7038,7 +7118,7 @@ public V1StatefulSet patchNamespacedStatefulSetStatus(String name, String namesp * @param name name of the StatefulSet (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -7065,7 +7145,7 @@ public ApiResponse patchNamespacedStatefulSetStatusWithHttpInfo(S * @param name name of the StatefulSet (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -7092,7 +7172,7 @@ public okhttp3.Call patchNamespacedStatefulSetStatusAsync(String name, String na * Build call for readNamespacedControllerRevision * @param name name of the ControllerRevision (required) * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -7121,7 +7201,7 @@ public okhttp3.Call readNamespacedControllerRevisionCall(String name, String nam Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -7162,7 +7242,7 @@ private okhttp3.Call readNamespacedControllerRevisionValidateBeforeCall(String n * read the specified ControllerRevision * @param name name of the ControllerRevision (required) * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return V1ControllerRevision * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -7182,7 +7262,7 @@ public V1ControllerRevision readNamespacedControllerRevision(String name, String * read the specified ControllerRevision * @param name name of the ControllerRevision (required) * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return ApiResponse<V1ControllerRevision> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -7203,7 +7283,7 @@ public ApiResponse readNamespacedControllerRevisionWithHtt * read the specified ControllerRevision * @param name name of the ControllerRevision (required) * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object @@ -7225,7 +7305,7 @@ public okhttp3.Call readNamespacedControllerRevisionAsync(String name, String na * Build call for readNamespacedDaemonSet * @param name name of the DaemonSet (required) * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -7254,7 +7334,7 @@ public okhttp3.Call readNamespacedDaemonSetCall(String name, String namespace, S Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -7295,7 +7375,7 @@ private okhttp3.Call readNamespacedDaemonSetValidateBeforeCall(String name, Stri * read the specified DaemonSet * @param name name of the DaemonSet (required) * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return V1DaemonSet * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -7315,7 +7395,7 @@ public V1DaemonSet readNamespacedDaemonSet(String name, String namespace, String * read the specified DaemonSet * @param name name of the DaemonSet (required) * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return ApiResponse<V1DaemonSet> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -7336,7 +7416,7 @@ public ApiResponse readNamespacedDaemonSetWithHttpInfo(String name, * read the specified DaemonSet * @param name name of the DaemonSet (required) * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object @@ -7358,7 +7438,7 @@ public okhttp3.Call readNamespacedDaemonSetAsync(String name, String namespace, * Build call for readNamespacedDaemonSetStatus * @param name name of the DaemonSet (required) * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -7387,7 +7467,7 @@ public okhttp3.Call readNamespacedDaemonSetStatusCall(String name, String namesp Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -7428,7 +7508,7 @@ private okhttp3.Call readNamespacedDaemonSetStatusValidateBeforeCall(String name * read status of the specified DaemonSet * @param name name of the DaemonSet (required) * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return V1DaemonSet * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -7448,7 +7528,7 @@ public V1DaemonSet readNamespacedDaemonSetStatus(String name, String namespace, * read status of the specified DaemonSet * @param name name of the DaemonSet (required) * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return ApiResponse<V1DaemonSet> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -7469,7 +7549,7 @@ public ApiResponse readNamespacedDaemonSetStatusWithHttpInfo(String * read status of the specified DaemonSet * @param name name of the DaemonSet (required) * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object @@ -7491,7 +7571,7 @@ public okhttp3.Call readNamespacedDaemonSetStatusAsync(String name, String names * Build call for readNamespacedDeployment * @param name name of the Deployment (required) * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -7520,7 +7600,7 @@ public okhttp3.Call readNamespacedDeploymentCall(String name, String namespace, Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -7561,7 +7641,7 @@ private okhttp3.Call readNamespacedDeploymentValidateBeforeCall(String name, Str * read the specified Deployment * @param name name of the Deployment (required) * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return V1Deployment * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -7581,7 +7661,7 @@ public V1Deployment readNamespacedDeployment(String name, String namespace, Stri * read the specified Deployment * @param name name of the Deployment (required) * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return ApiResponse<V1Deployment> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -7602,7 +7682,7 @@ public ApiResponse readNamespacedDeploymentWithHttpInfo(String nam * read the specified Deployment * @param name name of the Deployment (required) * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object @@ -7624,7 +7704,7 @@ public okhttp3.Call readNamespacedDeploymentAsync(String name, String namespace, * Build call for readNamespacedDeploymentScale * @param name name of the Scale (required) * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -7653,7 +7733,7 @@ public okhttp3.Call readNamespacedDeploymentScaleCall(String name, String namesp Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -7694,7 +7774,7 @@ private okhttp3.Call readNamespacedDeploymentScaleValidateBeforeCall(String name * read scale of the specified Deployment * @param name name of the Scale (required) * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return V1Scale * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -7714,7 +7794,7 @@ public V1Scale readNamespacedDeploymentScale(String name, String namespace, Stri * read scale of the specified Deployment * @param name name of the Scale (required) * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return ApiResponse<V1Scale> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -7735,7 +7815,7 @@ public ApiResponse readNamespacedDeploymentScaleWithHttpInfo(String nam * read scale of the specified Deployment * @param name name of the Scale (required) * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object @@ -7757,7 +7837,7 @@ public okhttp3.Call readNamespacedDeploymentScaleAsync(String name, String names * Build call for readNamespacedDeploymentStatus * @param name name of the Deployment (required) * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -7786,7 +7866,7 @@ public okhttp3.Call readNamespacedDeploymentStatusCall(String name, String names Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -7827,7 +7907,7 @@ private okhttp3.Call readNamespacedDeploymentStatusValidateBeforeCall(String nam * read status of the specified Deployment * @param name name of the Deployment (required) * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return V1Deployment * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -7847,7 +7927,7 @@ public V1Deployment readNamespacedDeploymentStatus(String name, String namespace * read status of the specified Deployment * @param name name of the Deployment (required) * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return ApiResponse<V1Deployment> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -7868,7 +7948,7 @@ public ApiResponse readNamespacedDeploymentStatusWithHttpInfo(Stri * read status of the specified Deployment * @param name name of the Deployment (required) * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object @@ -7890,7 +7970,7 @@ public okhttp3.Call readNamespacedDeploymentStatusAsync(String name, String name * Build call for readNamespacedReplicaSet * @param name name of the ReplicaSet (required) * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -7919,7 +7999,7 @@ public okhttp3.Call readNamespacedReplicaSetCall(String name, String namespace, Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -7960,7 +8040,7 @@ private okhttp3.Call readNamespacedReplicaSetValidateBeforeCall(String name, Str * read the specified ReplicaSet * @param name name of the ReplicaSet (required) * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return V1ReplicaSet * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -7980,7 +8060,7 @@ public V1ReplicaSet readNamespacedReplicaSet(String name, String namespace, Stri * read the specified ReplicaSet * @param name name of the ReplicaSet (required) * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return ApiResponse<V1ReplicaSet> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -8001,7 +8081,7 @@ public ApiResponse readNamespacedReplicaSetWithHttpInfo(String nam * read the specified ReplicaSet * @param name name of the ReplicaSet (required) * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object @@ -8023,7 +8103,7 @@ public okhttp3.Call readNamespacedReplicaSetAsync(String name, String namespace, * Build call for readNamespacedReplicaSetScale * @param name name of the Scale (required) * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -8052,7 +8132,7 @@ public okhttp3.Call readNamespacedReplicaSetScaleCall(String name, String namesp Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -8093,7 +8173,7 @@ private okhttp3.Call readNamespacedReplicaSetScaleValidateBeforeCall(String name * read scale of the specified ReplicaSet * @param name name of the Scale (required) * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return V1Scale * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -8113,7 +8193,7 @@ public V1Scale readNamespacedReplicaSetScale(String name, String namespace, Stri * read scale of the specified ReplicaSet * @param name name of the Scale (required) * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return ApiResponse<V1Scale> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -8134,7 +8214,7 @@ public ApiResponse readNamespacedReplicaSetScaleWithHttpInfo(String nam * read scale of the specified ReplicaSet * @param name name of the Scale (required) * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object @@ -8156,7 +8236,7 @@ public okhttp3.Call readNamespacedReplicaSetScaleAsync(String name, String names * Build call for readNamespacedReplicaSetStatus * @param name name of the ReplicaSet (required) * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -8185,7 +8265,7 @@ public okhttp3.Call readNamespacedReplicaSetStatusCall(String name, String names Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -8226,7 +8306,7 @@ private okhttp3.Call readNamespacedReplicaSetStatusValidateBeforeCall(String nam * read status of the specified ReplicaSet * @param name name of the ReplicaSet (required) * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return V1ReplicaSet * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -8246,7 +8326,7 @@ public V1ReplicaSet readNamespacedReplicaSetStatus(String name, String namespace * read status of the specified ReplicaSet * @param name name of the ReplicaSet (required) * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return ApiResponse<V1ReplicaSet> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -8267,7 +8347,7 @@ public ApiResponse readNamespacedReplicaSetStatusWithHttpInfo(Stri * read status of the specified ReplicaSet * @param name name of the ReplicaSet (required) * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object @@ -8289,7 +8369,7 @@ public okhttp3.Call readNamespacedReplicaSetStatusAsync(String name, String name * Build call for readNamespacedStatefulSet * @param name name of the StatefulSet (required) * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -8318,7 +8398,7 @@ public okhttp3.Call readNamespacedStatefulSetCall(String name, String namespace, Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -8359,7 +8439,7 @@ private okhttp3.Call readNamespacedStatefulSetValidateBeforeCall(String name, St * read the specified StatefulSet * @param name name of the StatefulSet (required) * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return V1StatefulSet * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -8379,7 +8459,7 @@ public V1StatefulSet readNamespacedStatefulSet(String name, String namespace, St * read the specified StatefulSet * @param name name of the StatefulSet (required) * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return ApiResponse<V1StatefulSet> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -8400,7 +8480,7 @@ public ApiResponse readNamespacedStatefulSetWithHttpInfo(String n * read the specified StatefulSet * @param name name of the StatefulSet (required) * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object @@ -8422,7 +8502,7 @@ public okhttp3.Call readNamespacedStatefulSetAsync(String name, String namespace * Build call for readNamespacedStatefulSetScale * @param name name of the Scale (required) * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -8451,7 +8531,7 @@ public okhttp3.Call readNamespacedStatefulSetScaleCall(String name, String names Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -8492,7 +8572,7 @@ private okhttp3.Call readNamespacedStatefulSetScaleValidateBeforeCall(String nam * read scale of the specified StatefulSet * @param name name of the Scale (required) * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return V1Scale * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -8512,7 +8592,7 @@ public V1Scale readNamespacedStatefulSetScale(String name, String namespace, Str * read scale of the specified StatefulSet * @param name name of the Scale (required) * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return ApiResponse<V1Scale> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -8533,7 +8613,7 @@ public ApiResponse readNamespacedStatefulSetScaleWithHttpInfo(String na * read scale of the specified StatefulSet * @param name name of the Scale (required) * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object @@ -8555,7 +8635,7 @@ public okhttp3.Call readNamespacedStatefulSetScaleAsync(String name, String name * Build call for readNamespacedStatefulSetStatus * @param name name of the StatefulSet (required) * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -8584,7 +8664,7 @@ public okhttp3.Call readNamespacedStatefulSetStatusCall(String name, String name Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -8625,7 +8705,7 @@ private okhttp3.Call readNamespacedStatefulSetStatusValidateBeforeCall(String na * read status of the specified StatefulSet * @param name name of the StatefulSet (required) * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return V1StatefulSet * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -8645,7 +8725,7 @@ public V1StatefulSet readNamespacedStatefulSetStatus(String name, String namespa * read status of the specified StatefulSet * @param name name of the StatefulSet (required) * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return ApiResponse<V1StatefulSet> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -8666,7 +8746,7 @@ public ApiResponse readNamespacedStatefulSetStatusWithHttpInfo(St * read status of the specified StatefulSet * @param name name of the StatefulSet (required) * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object @@ -8689,7 +8769,7 @@ public okhttp3.Call readNamespacedStatefulSetStatusAsync(String name, String nam * @param name name of the ControllerRevision (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -8734,7 +8814,7 @@ public okhttp3.Call replaceNamespacedControllerRevisionCall(String name, String Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -8781,7 +8861,7 @@ private okhttp3.Call replaceNamespacedControllerRevisionValidateBeforeCall(Strin * @param name name of the ControllerRevision (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -8806,7 +8886,7 @@ public V1ControllerRevision replaceNamespacedControllerRevision(String name, Str * @param name name of the ControllerRevision (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -8832,7 +8912,7 @@ public ApiResponse replaceNamespacedControllerRevisionWith * @param name name of the ControllerRevision (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -8859,7 +8939,7 @@ public okhttp3.Call replaceNamespacedControllerRevisionAsync(String name, String * @param name name of the DaemonSet (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -8904,7 +8984,7 @@ public okhttp3.Call replaceNamespacedDaemonSetCall(String name, String namespace Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -8951,7 +9031,7 @@ private okhttp3.Call replaceNamespacedDaemonSetValidateBeforeCall(String name, S * @param name name of the DaemonSet (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -8976,7 +9056,7 @@ public V1DaemonSet replaceNamespacedDaemonSet(String name, String namespace, V1D * @param name name of the DaemonSet (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -9002,7 +9082,7 @@ public ApiResponse replaceNamespacedDaemonSetWithHttpInfo(String na * @param name name of the DaemonSet (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -9029,7 +9109,7 @@ public okhttp3.Call replaceNamespacedDaemonSetAsync(String name, String namespac * @param name name of the DaemonSet (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -9074,7 +9154,7 @@ public okhttp3.Call replaceNamespacedDaemonSetStatusCall(String name, String nam Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -9121,7 +9201,7 @@ private okhttp3.Call replaceNamespacedDaemonSetStatusValidateBeforeCall(String n * @param name name of the DaemonSet (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -9146,7 +9226,7 @@ public V1DaemonSet replaceNamespacedDaemonSetStatus(String name, String namespac * @param name name of the DaemonSet (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -9172,7 +9252,7 @@ public ApiResponse replaceNamespacedDaemonSetStatusWithHttpInfo(Str * @param name name of the DaemonSet (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -9199,7 +9279,7 @@ public okhttp3.Call replaceNamespacedDaemonSetStatusAsync(String name, String na * @param name name of the Deployment (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -9244,7 +9324,7 @@ public okhttp3.Call replaceNamespacedDeploymentCall(String name, String namespac Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -9291,7 +9371,7 @@ private okhttp3.Call replaceNamespacedDeploymentValidateBeforeCall(String name, * @param name name of the Deployment (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -9316,7 +9396,7 @@ public V1Deployment replaceNamespacedDeployment(String name, String namespace, V * @param name name of the Deployment (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -9342,7 +9422,7 @@ public ApiResponse replaceNamespacedDeploymentWithHttpInfo(String * @param name name of the Deployment (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -9369,7 +9449,7 @@ public okhttp3.Call replaceNamespacedDeploymentAsync(String name, String namespa * @param name name of the Scale (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -9414,7 +9494,7 @@ public okhttp3.Call replaceNamespacedDeploymentScaleCall(String name, String nam Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -9461,7 +9541,7 @@ private okhttp3.Call replaceNamespacedDeploymentScaleValidateBeforeCall(String n * @param name name of the Scale (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -9486,7 +9566,7 @@ public V1Scale replaceNamespacedDeploymentScale(String name, String namespace, V * @param name name of the Scale (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -9512,7 +9592,7 @@ public ApiResponse replaceNamespacedDeploymentScaleWithHttpInfo(String * @param name name of the Scale (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -9539,7 +9619,7 @@ public okhttp3.Call replaceNamespacedDeploymentScaleAsync(String name, String na * @param name name of the Deployment (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -9584,7 +9664,7 @@ public okhttp3.Call replaceNamespacedDeploymentStatusCall(String name, String na Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -9631,7 +9711,7 @@ private okhttp3.Call replaceNamespacedDeploymentStatusValidateBeforeCall(String * @param name name of the Deployment (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -9656,7 +9736,7 @@ public V1Deployment replaceNamespacedDeploymentStatus(String name, String namesp * @param name name of the Deployment (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -9682,7 +9762,7 @@ public ApiResponse replaceNamespacedDeploymentStatusWithHttpInfo(S * @param name name of the Deployment (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -9709,7 +9789,7 @@ public okhttp3.Call replaceNamespacedDeploymentStatusAsync(String name, String n * @param name name of the ReplicaSet (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -9754,7 +9834,7 @@ public okhttp3.Call replaceNamespacedReplicaSetCall(String name, String namespac Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -9801,7 +9881,7 @@ private okhttp3.Call replaceNamespacedReplicaSetValidateBeforeCall(String name, * @param name name of the ReplicaSet (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -9826,7 +9906,7 @@ public V1ReplicaSet replaceNamespacedReplicaSet(String name, String namespace, V * @param name name of the ReplicaSet (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -9852,7 +9932,7 @@ public ApiResponse replaceNamespacedReplicaSetWithHttpInfo(String * @param name name of the ReplicaSet (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -9879,7 +9959,7 @@ public okhttp3.Call replaceNamespacedReplicaSetAsync(String name, String namespa * @param name name of the Scale (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -9924,7 +10004,7 @@ public okhttp3.Call replaceNamespacedReplicaSetScaleCall(String name, String nam Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -9971,7 +10051,7 @@ private okhttp3.Call replaceNamespacedReplicaSetScaleValidateBeforeCall(String n * @param name name of the Scale (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -9996,7 +10076,7 @@ public V1Scale replaceNamespacedReplicaSetScale(String name, String namespace, V * @param name name of the Scale (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -10022,7 +10102,7 @@ public ApiResponse replaceNamespacedReplicaSetScaleWithHttpInfo(String * @param name name of the Scale (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -10049,7 +10129,7 @@ public okhttp3.Call replaceNamespacedReplicaSetScaleAsync(String name, String na * @param name name of the ReplicaSet (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -10094,7 +10174,7 @@ public okhttp3.Call replaceNamespacedReplicaSetStatusCall(String name, String na Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -10141,7 +10221,7 @@ private okhttp3.Call replaceNamespacedReplicaSetStatusValidateBeforeCall(String * @param name name of the ReplicaSet (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -10166,7 +10246,7 @@ public V1ReplicaSet replaceNamespacedReplicaSetStatus(String name, String namesp * @param name name of the ReplicaSet (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -10192,7 +10272,7 @@ public ApiResponse replaceNamespacedReplicaSetStatusWithHttpInfo(S * @param name name of the ReplicaSet (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -10219,7 +10299,7 @@ public okhttp3.Call replaceNamespacedReplicaSetStatusAsync(String name, String n * @param name name of the StatefulSet (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -10264,7 +10344,7 @@ public okhttp3.Call replaceNamespacedStatefulSetCall(String name, String namespa Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -10311,7 +10391,7 @@ private okhttp3.Call replaceNamespacedStatefulSetValidateBeforeCall(String name, * @param name name of the StatefulSet (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -10336,7 +10416,7 @@ public V1StatefulSet replaceNamespacedStatefulSet(String name, String namespace, * @param name name of the StatefulSet (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -10362,7 +10442,7 @@ public ApiResponse replaceNamespacedStatefulSetWithHttpInfo(Strin * @param name name of the StatefulSet (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -10389,7 +10469,7 @@ public okhttp3.Call replaceNamespacedStatefulSetAsync(String name, String namesp * @param name name of the Scale (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -10434,7 +10514,7 @@ public okhttp3.Call replaceNamespacedStatefulSetScaleCall(String name, String na Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -10481,7 +10561,7 @@ private okhttp3.Call replaceNamespacedStatefulSetScaleValidateBeforeCall(String * @param name name of the Scale (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -10506,7 +10586,7 @@ public V1Scale replaceNamespacedStatefulSetScale(String name, String namespace, * @param name name of the Scale (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -10532,7 +10612,7 @@ public ApiResponse replaceNamespacedStatefulSetScaleWithHttpInfo(String * @param name name of the Scale (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -10559,7 +10639,7 @@ public okhttp3.Call replaceNamespacedStatefulSetScaleAsync(String name, String n * @param name name of the StatefulSet (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -10604,7 +10684,7 @@ public okhttp3.Call replaceNamespacedStatefulSetStatusCall(String name, String n Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -10651,7 +10731,7 @@ private okhttp3.Call replaceNamespacedStatefulSetStatusValidateBeforeCall(String * @param name name of the StatefulSet (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -10676,7 +10756,7 @@ public V1StatefulSet replaceNamespacedStatefulSetStatus(String name, String name * @param name name of the StatefulSet (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -10702,7 +10782,7 @@ public ApiResponse replaceNamespacedStatefulSetStatusWithHttpInfo * @param name name of the StatefulSet (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) 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 5cd257b887..f72e644ab5 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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 7c824818bb..7fe5357cc4 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -61,7 +61,7 @@ public void setApiClient(ApiClient apiClient) { * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -102,7 +102,7 @@ public okhttp3.Call createSelfSubjectReviewCall(V1SelfSubjectReview body, String Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -140,7 +140,7 @@ private okhttp3.Call createSelfSubjectReviewValidateBeforeCall(V1SelfSubjectRevi * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return V1SelfSubjectReview * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -164,7 +164,7 @@ public V1SelfSubjectReview createSelfSubjectReview(V1SelfSubjectReview body, Str * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return ApiResponse<V1SelfSubjectReview> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -189,7 +189,7 @@ public ApiResponse createSelfSubjectReviewWithHttpInfo(V1Se * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object @@ -215,7 +215,7 @@ public okhttp3.Call createSelfSubjectReviewAsync(V1SelfSubjectReview body, Strin * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -256,7 +256,7 @@ public okhttp3.Call createTokenReviewCall(V1TokenReview body, String dryRun, Str Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -294,7 +294,7 @@ private okhttp3.Call createTokenReviewValidateBeforeCall(V1TokenReview body, Str * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return V1TokenReview * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -318,7 +318,7 @@ public V1TokenReview createTokenReview(V1TokenReview body, String dryRun, String * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return ApiResponse<V1TokenReview> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -343,7 +343,7 @@ public ApiResponse createTokenReviewWithHttpInfo(V1TokenReview bo * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object @@ -387,7 +387,7 @@ public okhttp3.Call getAPIResourcesCall(final ApiCallback _callback) throws ApiE Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { 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 deleted file mode 100644 index 865de49245..0000000000 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/AuthenticationV1alpha1Api.java +++ /dev/null @@ -1,316 +0,0 @@ -/* -Copyright 2023 The Kubernetes Authors. -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at -http://www.apache.org/licenses/LICENSE-2.0 -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ -package io.kubernetes.client.openapi.apis; - -import io.kubernetes.client.openapi.ApiCallback; -import io.kubernetes.client.openapi.ApiClient; -import io.kubernetes.client.openapi.ApiException; -import io.kubernetes.client.openapi.ApiResponse; -import io.kubernetes.client.openapi.Configuration; -import io.kubernetes.client.openapi.Pair; -import io.kubernetes.client.openapi.ProgressRequestBody; -import io.kubernetes.client.openapi.ProgressResponseBody; - -import com.google.gson.reflect.TypeToken; - -import java.io.IOException; - - -import io.kubernetes.client.openapi.models.V1APIResourceList; -import io.kubernetes.client.openapi.models.V1alpha1SelfSubjectReview; - -import java.lang.reflect.Type; -import java.util.ArrayList; -import java.util.HashMap; -import java.util.List; -import java.util.Map; - -public class AuthenticationV1alpha1Api { - private ApiClient localVarApiClient; - - public AuthenticationV1alpha1Api() { - this(Configuration.getDefaultApiClient()); - } - - public AuthenticationV1alpha1Api(ApiClient apiClient) { - this.localVarApiClient = apiClient; - } - - public ApiClient getApiClient() { - return localVarApiClient; - } - - public void setApiClient(ApiClient apiClient) { - this.localVarApiClient = apiClient; - } - - /** - * Build call for createSelfSubjectReview - * @param body (required) - * @param dryRun 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) - * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - * @param pretty If 'true', then the output is pretty printed. (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - - - -
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
- */ - public okhttp3.Call createSelfSubjectReviewCall(V1alpha1SelfSubjectReview body, String dryRun, String fieldManager, String fieldValidation, String pretty, final ApiCallback _callback) throws ApiException { - Object localVarPostBody = body; - - // create path and map variables - String localVarPath = "/apis/authentication.k8s.io/v1alpha1/selfsubjectreviews"; - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - if (dryRun != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); - } - - if (fieldManager != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); - } - - if (fieldValidation != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); - } - - if (pretty != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); - } - - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - "application/json" - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); - - String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call createSelfSubjectReviewValidateBeforeCall(V1alpha1SelfSubjectReview body, String dryRun, String fieldManager, String fieldValidation, String pretty, final ApiCallback _callback) throws ApiException { - - // verify the required parameter 'body' is set - if (body == null) { - throw new ApiException("Missing the required parameter 'body' when calling createSelfSubjectReview(Async)"); - } - - - okhttp3.Call localVarCall = createSelfSubjectReviewCall(body, dryRun, fieldManager, fieldValidation, pretty, _callback); - return localVarCall; - - } - - /** - * - * create a SelfSubjectReview - * @param body (required) - * @param dryRun 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) - * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - * @param pretty If 'true', then the output is pretty printed. (optional) - * @return V1alpha1SelfSubjectReview - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - - -
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
- */ - public V1alpha1SelfSubjectReview createSelfSubjectReview(V1alpha1SelfSubjectReview body, String dryRun, String fieldManager, String fieldValidation, String pretty) throws ApiException { - ApiResponse localVarResp = createSelfSubjectReviewWithHttpInfo(body, dryRun, fieldManager, fieldValidation, pretty); - return localVarResp.getData(); - } - - /** - * - * create a SelfSubjectReview - * @param body (required) - * @param dryRun 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) - * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - * @param pretty If 'true', then the output is pretty printed. (optional) - * @return ApiResponse<V1alpha1SelfSubjectReview> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - - -
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
- */ - public ApiResponse createSelfSubjectReviewWithHttpInfo(V1alpha1SelfSubjectReview body, String dryRun, String fieldManager, String fieldValidation, String pretty) throws ApiException { - okhttp3.Call localVarCall = createSelfSubjectReviewValidateBeforeCall(body, dryRun, fieldManager, fieldValidation, pretty, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * (asynchronously) - * create a SelfSubjectReview - * @param body (required) - * @param dryRun 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) - * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - * @param pretty If 'true', then the output is pretty printed. (optional) - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - - - - -
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
- */ - public okhttp3.Call createSelfSubjectReviewAsync(V1alpha1SelfSubjectReview body, String dryRun, String fieldManager, String fieldValidation, String pretty, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = createSelfSubjectReviewValidateBeforeCall(body, dryRun, fieldManager, fieldValidation, pretty, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - /** - * Build call for getAPIResources - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - -
Status Code Description Response Headers
200 OK -
401 Unauthorized -
- */ - public okhttp3.Call getAPIResourcesCall(final ApiCallback _callback) throws ApiException { - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = "/apis/authentication.k8s.io/v1alpha1/"; - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); - - String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call getAPIResourcesValidateBeforeCall(final ApiCallback _callback) throws ApiException { - - - okhttp3.Call localVarCall = getAPIResourcesCall(_callback); - return localVarCall; - - } - - /** - * - * get available resources - * @return V1APIResourceList - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Status Code Description Response Headers
200 OK -
401 Unauthorized -
- */ - public V1APIResourceList getAPIResources() throws ApiException { - ApiResponse localVarResp = getAPIResourcesWithHttpInfo(); - return localVarResp.getData(); - } - - /** - * - * get available resources - * @return ApiResponse<V1APIResourceList> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Status Code Description Response Headers
200 OK -
401 Unauthorized -
- */ - public ApiResponse getAPIResourcesWithHttpInfo() throws ApiException { - okhttp3.Call localVarCall = getAPIResourcesValidateBeforeCall(null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * (asynchronously) - * get available resources - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - - -
Status Code Description Response Headers
200 OK -
401 Unauthorized -
- */ - public okhttp3.Call getAPIResourcesAsync(final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = getAPIResourcesValidateBeforeCall(_callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } -} 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 deleted file mode 100644 index 3be857a628..0000000000 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/AuthenticationV1beta1Api.java +++ /dev/null @@ -1,316 +0,0 @@ -/* -Copyright 2023 The Kubernetes Authors. -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at -http://www.apache.org/licenses/LICENSE-2.0 -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ -package io.kubernetes.client.openapi.apis; - -import io.kubernetes.client.openapi.ApiCallback; -import io.kubernetes.client.openapi.ApiClient; -import io.kubernetes.client.openapi.ApiException; -import io.kubernetes.client.openapi.ApiResponse; -import io.kubernetes.client.openapi.Configuration; -import io.kubernetes.client.openapi.Pair; -import io.kubernetes.client.openapi.ProgressRequestBody; -import io.kubernetes.client.openapi.ProgressResponseBody; - -import com.google.gson.reflect.TypeToken; - -import java.io.IOException; - - -import io.kubernetes.client.openapi.models.V1APIResourceList; -import io.kubernetes.client.openapi.models.V1beta1SelfSubjectReview; - -import java.lang.reflect.Type; -import java.util.ArrayList; -import java.util.HashMap; -import java.util.List; -import java.util.Map; - -public class AuthenticationV1beta1Api { - private ApiClient localVarApiClient; - - public AuthenticationV1beta1Api() { - this(Configuration.getDefaultApiClient()); - } - - public AuthenticationV1beta1Api(ApiClient apiClient) { - this.localVarApiClient = apiClient; - } - - public ApiClient getApiClient() { - return localVarApiClient; - } - - public void setApiClient(ApiClient apiClient) { - this.localVarApiClient = apiClient; - } - - /** - * Build call for createSelfSubjectReview - * @param body (required) - * @param dryRun 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) - * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - * @param pretty If 'true', then the output is pretty printed. (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - - - -
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
- */ - public okhttp3.Call createSelfSubjectReviewCall(V1beta1SelfSubjectReview body, String dryRun, String fieldManager, String fieldValidation, String pretty, final ApiCallback _callback) throws ApiException { - Object localVarPostBody = body; - - // create path and map variables - String localVarPath = "/apis/authentication.k8s.io/v1beta1/selfsubjectreviews"; - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - if (dryRun != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); - } - - if (fieldManager != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); - } - - if (fieldValidation != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); - } - - if (pretty != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); - } - - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - "application/json" - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); - - String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call createSelfSubjectReviewValidateBeforeCall(V1beta1SelfSubjectReview body, String dryRun, String fieldManager, String fieldValidation, String pretty, final ApiCallback _callback) throws ApiException { - - // verify the required parameter 'body' is set - if (body == null) { - throw new ApiException("Missing the required parameter 'body' when calling createSelfSubjectReview(Async)"); - } - - - okhttp3.Call localVarCall = createSelfSubjectReviewCall(body, dryRun, fieldManager, fieldValidation, pretty, _callback); - return localVarCall; - - } - - /** - * - * create a SelfSubjectReview - * @param body (required) - * @param dryRun 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) - * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - * @param pretty If 'true', then the output is pretty printed. (optional) - * @return V1beta1SelfSubjectReview - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - - -
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
- */ - public V1beta1SelfSubjectReview createSelfSubjectReview(V1beta1SelfSubjectReview body, String dryRun, String fieldManager, String fieldValidation, String pretty) throws ApiException { - ApiResponse localVarResp = createSelfSubjectReviewWithHttpInfo(body, dryRun, fieldManager, fieldValidation, pretty); - return localVarResp.getData(); - } - - /** - * - * create a SelfSubjectReview - * @param body (required) - * @param dryRun 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) - * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - * @param pretty If 'true', then the output is pretty printed. (optional) - * @return ApiResponse<V1beta1SelfSubjectReview> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - - -
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
- */ - public ApiResponse createSelfSubjectReviewWithHttpInfo(V1beta1SelfSubjectReview body, String dryRun, String fieldManager, String fieldValidation, String pretty) throws ApiException { - okhttp3.Call localVarCall = createSelfSubjectReviewValidateBeforeCall(body, dryRun, fieldManager, fieldValidation, pretty, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * (asynchronously) - * create a SelfSubjectReview - * @param body (required) - * @param dryRun 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) - * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - * @param pretty If 'true', then the output is pretty printed. (optional) - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - - - - -
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
- */ - public okhttp3.Call createSelfSubjectReviewAsync(V1beta1SelfSubjectReview body, String dryRun, String fieldManager, String fieldValidation, String pretty, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = createSelfSubjectReviewValidateBeforeCall(body, dryRun, fieldManager, fieldValidation, pretty, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - /** - * Build call for getAPIResources - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - -
Status Code Description Response Headers
200 OK -
401 Unauthorized -
- */ - public okhttp3.Call getAPIResourcesCall(final ApiCallback _callback) throws ApiException { - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = "/apis/authentication.k8s.io/v1beta1/"; - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); - - String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call getAPIResourcesValidateBeforeCall(final ApiCallback _callback) throws ApiException { - - - okhttp3.Call localVarCall = getAPIResourcesCall(_callback); - return localVarCall; - - } - - /** - * - * get available resources - * @return V1APIResourceList - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Status Code Description Response Headers
200 OK -
401 Unauthorized -
- */ - public V1APIResourceList getAPIResources() throws ApiException { - ApiResponse localVarResp = getAPIResourcesWithHttpInfo(); - return localVarResp.getData(); - } - - /** - * - * get available resources - * @return ApiResponse<V1APIResourceList> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Status Code Description Response Headers
200 OK -
401 Unauthorized -
- */ - public ApiResponse getAPIResourcesWithHttpInfo() throws ApiException { - okhttp3.Call localVarCall = getAPIResourcesValidateBeforeCall(null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * (asynchronously) - * get available resources - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - - -
Status Code Description Response Headers
200 OK -
401 Unauthorized -
- */ - public okhttp3.Call getAPIResourcesAsync(final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = getAPIResourcesValidateBeforeCall(_callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } -} 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 7d75c15fec..6c488ade5a 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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 79d9c74bf2..8dca8b0294 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -64,7 +64,7 @@ public void setApiClient(ApiClient apiClient) { * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -106,7 +106,7 @@ public okhttp3.Call createNamespacedLocalSubjectAccessReviewCall(String namespac Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -150,7 +150,7 @@ private okhttp3.Call createNamespacedLocalSubjectAccessReviewValidateBeforeCall( * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return V1LocalSubjectAccessReview * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -175,7 +175,7 @@ public V1LocalSubjectAccessReview createNamespacedLocalSubjectAccessReview(Strin * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return ApiResponse<V1LocalSubjectAccessReview> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -201,7 +201,7 @@ public ApiResponse createNamespacedLocalSubjectAcces * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object @@ -227,7 +227,7 @@ public okhttp3.Call createNamespacedLocalSubjectAccessReviewAsync(String namespa * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -268,7 +268,7 @@ public okhttp3.Call createSelfSubjectAccessReviewCall(V1SelfSubjectAccessReview Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -306,7 +306,7 @@ private okhttp3.Call createSelfSubjectAccessReviewValidateBeforeCall(V1SelfSubje * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return V1SelfSubjectAccessReview * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -330,7 +330,7 @@ public V1SelfSubjectAccessReview createSelfSubjectAccessReview(V1SelfSubjectAcce * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return ApiResponse<V1SelfSubjectAccessReview> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -355,7 +355,7 @@ public ApiResponse createSelfSubjectAccessReviewWithH * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object @@ -381,7 +381,7 @@ public okhttp3.Call createSelfSubjectAccessReviewAsync(V1SelfSubjectAccessReview * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -422,7 +422,7 @@ public okhttp3.Call createSelfSubjectRulesReviewCall(V1SelfSubjectRulesReview bo Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -460,7 +460,7 @@ private okhttp3.Call createSelfSubjectRulesReviewValidateBeforeCall(V1SelfSubjec * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return V1SelfSubjectRulesReview * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -484,7 +484,7 @@ public V1SelfSubjectRulesReview createSelfSubjectRulesReview(V1SelfSubjectRulesR * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return ApiResponse<V1SelfSubjectRulesReview> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -509,7 +509,7 @@ public ApiResponse createSelfSubjectRulesReviewWithHtt * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object @@ -535,7 +535,7 @@ public okhttp3.Call createSelfSubjectRulesReviewAsync(V1SelfSubjectRulesReview b * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -576,7 +576,7 @@ public okhttp3.Call createSubjectAccessReviewCall(V1SubjectAccessReview body, St Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -614,7 +614,7 @@ private okhttp3.Call createSubjectAccessReviewValidateBeforeCall(V1SubjectAccess * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return V1SubjectAccessReview * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -638,7 +638,7 @@ public V1SubjectAccessReview createSubjectAccessReview(V1SubjectAccessReview bod * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return ApiResponse<V1SubjectAccessReview> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -663,7 +663,7 @@ public ApiResponse createSubjectAccessReviewWithHttpInfo( * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object @@ -707,7 +707,7 @@ public okhttp3.Call getAPIResourcesCall(final ApiCallback _callback) throws ApiE Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { 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 cb55480e9c..6821cf2b2b 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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 8f2cd84177..e89b888afe 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -62,7 +62,7 @@ public void setApiClient(ApiClient apiClient) { * Build call for createNamespacedHorizontalPodAutoscaler * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -107,7 +107,7 @@ public okhttp3.Call createNamespacedHorizontalPodAutoscalerCall(String namespace Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -148,7 +148,7 @@ private okhttp3.Call createNamespacedHorizontalPodAutoscalerValidateBeforeCall(S * create a HorizontalPodAutoscaler * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -173,7 +173,7 @@ public V1HorizontalPodAutoscaler createNamespacedHorizontalPodAutoscaler(String * create a HorizontalPodAutoscaler * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -199,7 +199,7 @@ public ApiResponse createNamespacedHorizontalPodAutos * create a HorizontalPodAutoscaler * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -225,11 +225,12 @@ public okhttp3.Call createNamespacedHorizontalPodAutoscalerAsync(String namespac /** * Build call for deleteCollectionNamespacedHorizontalPodAutoscaler * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param _continue 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) * @param dryRun 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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @param orphanDependents 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) @@ -249,7 +250,7 @@ public okhttp3.Call createNamespacedHorizontalPodAutoscalerAsync(String namespac 401 Unauthorized - */ - public okhttp3.Call deleteCollectionNamespacedHorizontalPodAutoscalerCall(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + public okhttp3.Call deleteCollectionNamespacedHorizontalPodAutoscalerCall(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; // create path and map variables @@ -278,6 +279,10 @@ public okhttp3.Call deleteCollectionNamespacedHorizontalPodAutoscalerCall(String localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); } + if (ignoreStoreReadErrorWithClusterBreakingPotential != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("ignoreStoreReadErrorWithClusterBreakingPotential", ignoreStoreReadErrorWithClusterBreakingPotential)); + } + if (labelSelector != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); } @@ -314,7 +319,7 @@ public okhttp3.Call deleteCollectionNamespacedHorizontalPodAutoscalerCall(String Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -332,7 +337,7 @@ public okhttp3.Call deleteCollectionNamespacedHorizontalPodAutoscalerCall(String } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteCollectionNamespacedHorizontalPodAutoscalerValidateBeforeCall(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionNamespacedHorizontalPodAutoscalerValidateBeforeCall(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { // verify the required parameter 'namespace' is set if (namespace == null) { @@ -340,7 +345,7 @@ private okhttp3.Call deleteCollectionNamespacedHorizontalPodAutoscalerValidateBe } - okhttp3.Call localVarCall = deleteCollectionNamespacedHorizontalPodAutoscalerCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + okhttp3.Call localVarCall = deleteCollectionNamespacedHorizontalPodAutoscalerCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); return localVarCall; } @@ -349,11 +354,12 @@ private okhttp3.Call deleteCollectionNamespacedHorizontalPodAutoscalerValidateBe * * delete collection of HorizontalPodAutoscaler * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param _continue 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) * @param dryRun 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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @param orphanDependents 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) @@ -372,8 +378,8 @@ private okhttp3.Call deleteCollectionNamespacedHorizontalPodAutoscalerValidateBe 401 Unauthorized - */ - public V1Status deleteCollectionNamespacedHorizontalPodAutoscaler(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body) throws ApiException { - ApiResponse localVarResp = deleteCollectionNamespacedHorizontalPodAutoscalerWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); + public V1Status deleteCollectionNamespacedHorizontalPodAutoscaler(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body) throws ApiException { + ApiResponse localVarResp = deleteCollectionNamespacedHorizontalPodAutoscalerWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); return localVarResp.getData(); } @@ -381,11 +387,12 @@ public V1Status deleteCollectionNamespacedHorizontalPodAutoscaler(String namespa * * delete collection of HorizontalPodAutoscaler * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param _continue 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) * @param dryRun 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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @param orphanDependents 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) @@ -404,8 +411,8 @@ public V1Status deleteCollectionNamespacedHorizontalPodAutoscaler(String namespa 401 Unauthorized - */ - public ApiResponse deleteCollectionNamespacedHorizontalPodAutoscalerWithHttpInfo(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body) throws ApiException { - okhttp3.Call localVarCall = deleteCollectionNamespacedHorizontalPodAutoscalerValidateBeforeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, null); + public ApiResponse deleteCollectionNamespacedHorizontalPodAutoscalerWithHttpInfo(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteCollectionNamespacedHorizontalPodAutoscalerValidateBeforeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -414,11 +421,12 @@ public ApiResponse deleteCollectionNamespacedHorizontalPodAutoscalerWi * (asynchronously) * delete collection of HorizontalPodAutoscaler * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param _continue 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) * @param dryRun 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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @param orphanDependents 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) @@ -438,9 +446,9 @@ public ApiResponse deleteCollectionNamespacedHorizontalPodAutoscalerWi 401 Unauthorized - */ - public okhttp3.Call deleteCollectionNamespacedHorizontalPodAutoscalerAsync(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + public okhttp3.Call deleteCollectionNamespacedHorizontalPodAutoscalerAsync(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = deleteCollectionNamespacedHorizontalPodAutoscalerValidateBeforeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + okhttp3.Call localVarCall = deleteCollectionNamespacedHorizontalPodAutoscalerValidateBeforeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -449,9 +457,10 @@ public okhttp3.Call deleteCollectionNamespacedHorizontalPodAutoscalerAsync(Strin * Build call for deleteNamespacedHorizontalPodAutoscaler * @param name name of the HorizontalPodAutoscaler (required) * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @param orphanDependents 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) * @param propagationPolicy 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. (optional) * @param body (optional) @@ -466,7 +475,7 @@ public okhttp3.Call deleteCollectionNamespacedHorizontalPodAutoscalerAsync(Strin 401 Unauthorized - */ - public okhttp3.Call deleteNamespacedHorizontalPodAutoscalerCall(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + public okhttp3.Call deleteNamespacedHorizontalPodAutoscalerCall(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; // create path and map variables @@ -488,6 +497,10 @@ public okhttp3.Call deleteNamespacedHorizontalPodAutoscalerCall(String name, Str localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); } + if (ignoreStoreReadErrorWithClusterBreakingPotential != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("ignoreStoreReadErrorWithClusterBreakingPotential", ignoreStoreReadErrorWithClusterBreakingPotential)); + } + if (orphanDependents != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("orphanDependents", orphanDependents)); } @@ -500,7 +513,7 @@ public okhttp3.Call deleteNamespacedHorizontalPodAutoscalerCall(String name, Str Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -518,7 +531,7 @@ public okhttp3.Call deleteNamespacedHorizontalPodAutoscalerCall(String name, Str } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteNamespacedHorizontalPodAutoscalerValidateBeforeCall(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteNamespacedHorizontalPodAutoscalerValidateBeforeCall(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -531,7 +544,7 @@ private okhttp3.Call deleteNamespacedHorizontalPodAutoscalerValidateBeforeCall(S } - okhttp3.Call localVarCall = deleteNamespacedHorizontalPodAutoscalerCall(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); + okhttp3.Call localVarCall = deleteNamespacedHorizontalPodAutoscalerCall(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); return localVarCall; } @@ -541,9 +554,10 @@ private okhttp3.Call deleteNamespacedHorizontalPodAutoscalerValidateBeforeCall(S * delete a HorizontalPodAutoscaler * @param name name of the HorizontalPodAutoscaler (required) * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @param orphanDependents 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) * @param propagationPolicy 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. (optional) * @param body (optional) @@ -557,8 +571,8 @@ private okhttp3.Call deleteNamespacedHorizontalPodAutoscalerValidateBeforeCall(S 401 Unauthorized - */ - public V1Status deleteNamespacedHorizontalPodAutoscaler(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { - ApiResponse localVarResp = deleteNamespacedHorizontalPodAutoscalerWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body); + public V1Status deleteNamespacedHorizontalPodAutoscaler(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { + ApiResponse localVarResp = deleteNamespacedHorizontalPodAutoscalerWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body); return localVarResp.getData(); } @@ -567,9 +581,10 @@ public V1Status deleteNamespacedHorizontalPodAutoscaler(String name, String name * delete a HorizontalPodAutoscaler * @param name name of the HorizontalPodAutoscaler (required) * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @param orphanDependents 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) * @param propagationPolicy 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. (optional) * @param body (optional) @@ -583,8 +598,8 @@ public V1Status deleteNamespacedHorizontalPodAutoscaler(String name, String name 401 Unauthorized - */ - public ApiResponse deleteNamespacedHorizontalPodAutoscalerWithHttpInfo(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { - okhttp3.Call localVarCall = deleteNamespacedHorizontalPodAutoscalerValidateBeforeCall(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, null); + public ApiResponse deleteNamespacedHorizontalPodAutoscalerWithHttpInfo(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteNamespacedHorizontalPodAutoscalerValidateBeforeCall(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -594,9 +609,10 @@ public ApiResponse deleteNamespacedHorizontalPodAutoscalerWithHttpInfo * delete a HorizontalPodAutoscaler * @param name name of the HorizontalPodAutoscaler (required) * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @param orphanDependents 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) * @param propagationPolicy 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. (optional) * @param body (optional) @@ -611,9 +627,9 @@ public ApiResponse deleteNamespacedHorizontalPodAutoscalerWithHttpInfo 401 Unauthorized - */ - public okhttp3.Call deleteNamespacedHorizontalPodAutoscalerAsync(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + public okhttp3.Call deleteNamespacedHorizontalPodAutoscalerAsync(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = deleteNamespacedHorizontalPodAutoscalerValidateBeforeCall(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); + okhttp3.Call localVarCall = deleteNamespacedHorizontalPodAutoscalerValidateBeforeCall(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -642,7 +658,7 @@ public okhttp3.Call getAPIResourcesCall(final ApiCallback _callback) throws ApiE Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -730,7 +746,7 @@ public okhttp3.Call getAPIResourcesAsync(final ApiCallback _c * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) @@ -802,7 +818,7 @@ public okhttp3.Call listHorizontalPodAutoscalerForAllNamespacesCall(Boolean allo Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch", "application/cbor-seq" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -836,7 +852,7 @@ private okhttp3.Call listHorizontalPodAutoscalerForAllNamespacesValidateBeforeCa * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) @@ -864,7 +880,7 @@ public V1HorizontalPodAutoscalerList listHorizontalPodAutoscalerForAllNamespaces * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) @@ -893,7 +909,7 @@ public ApiResponse listHorizontalPodAutoscalerFor * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) @@ -919,7 +935,7 @@ public okhttp3.Call listHorizontalPodAutoscalerForAllNamespacesAsync(Boolean all /** * Build call for listNamespacedHorizontalPodAutoscaler * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param allowWatchBookmarks 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. (optional) * @param _continue 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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) @@ -997,7 +1013,7 @@ public okhttp3.Call listNamespacedHorizontalPodAutoscalerCall(String namespace, Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch", "application/cbor-seq" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -1032,7 +1048,7 @@ private okhttp3.Call listNamespacedHorizontalPodAutoscalerValidateBeforeCall(Str * * list or watch objects of kind HorizontalPodAutoscaler * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param allowWatchBookmarks 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. (optional) * @param _continue 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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) @@ -1061,7 +1077,7 @@ public V1HorizontalPodAutoscalerList listNamespacedHorizontalPodAutoscaler(Strin * * list or watch objects of kind HorizontalPodAutoscaler * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param allowWatchBookmarks 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. (optional) * @param _continue 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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) @@ -1091,7 +1107,7 @@ public ApiResponse listNamespacedHorizontalPodAut * (asynchronously) * list or watch objects of kind HorizontalPodAutoscaler * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param allowWatchBookmarks 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. (optional) * @param _continue 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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) @@ -1124,7 +1140,7 @@ public okhttp3.Call listNamespacedHorizontalPodAutoscalerAsync(String namespace, * @param name name of the HorizontalPodAutoscaler (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -1174,7 +1190,7 @@ public okhttp3.Call patchNamespacedHorizontalPodAutoscalerCall(String name, Stri Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -1221,7 +1237,7 @@ private okhttp3.Call patchNamespacedHorizontalPodAutoscalerValidateBeforeCall(St * @param name name of the HorizontalPodAutoscaler (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -1247,7 +1263,7 @@ public V1HorizontalPodAutoscaler patchNamespacedHorizontalPodAutoscaler(String n * @param name name of the HorizontalPodAutoscaler (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -1274,7 +1290,7 @@ public ApiResponse patchNamespacedHorizontalPodAutosc * @param name name of the HorizontalPodAutoscaler (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -1302,7 +1318,7 @@ public okhttp3.Call patchNamespacedHorizontalPodAutoscalerAsync(String name, Str * @param name name of the HorizontalPodAutoscaler (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -1352,7 +1368,7 @@ public okhttp3.Call patchNamespacedHorizontalPodAutoscalerStatusCall(String name Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -1399,7 +1415,7 @@ private okhttp3.Call patchNamespacedHorizontalPodAutoscalerStatusValidateBeforeC * @param name name of the HorizontalPodAutoscaler (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -1425,7 +1441,7 @@ public V1HorizontalPodAutoscaler patchNamespacedHorizontalPodAutoscalerStatus(St * @param name name of the HorizontalPodAutoscaler (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -1452,7 +1468,7 @@ public ApiResponse patchNamespacedHorizontalPodAutosc * @param name name of the HorizontalPodAutoscaler (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -1479,7 +1495,7 @@ public okhttp3.Call patchNamespacedHorizontalPodAutoscalerStatusAsync(String nam * Build call for readNamespacedHorizontalPodAutoscaler * @param name name of the HorizontalPodAutoscaler (required) * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -1508,7 +1524,7 @@ public okhttp3.Call readNamespacedHorizontalPodAutoscalerCall(String name, Strin Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -1549,7 +1565,7 @@ private okhttp3.Call readNamespacedHorizontalPodAutoscalerValidateBeforeCall(Str * read the specified HorizontalPodAutoscaler * @param name name of the HorizontalPodAutoscaler (required) * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return V1HorizontalPodAutoscaler * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -1569,7 +1585,7 @@ public V1HorizontalPodAutoscaler readNamespacedHorizontalPodAutoscaler(String na * read the specified HorizontalPodAutoscaler * @param name name of the HorizontalPodAutoscaler (required) * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return ApiResponse<V1HorizontalPodAutoscaler> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -1590,7 +1606,7 @@ public ApiResponse readNamespacedHorizontalPodAutosca * read the specified HorizontalPodAutoscaler * @param name name of the HorizontalPodAutoscaler (required) * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object @@ -1612,7 +1628,7 @@ public okhttp3.Call readNamespacedHorizontalPodAutoscalerAsync(String name, Stri * Build call for readNamespacedHorizontalPodAutoscalerStatus * @param name name of the HorizontalPodAutoscaler (required) * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -1641,7 +1657,7 @@ public okhttp3.Call readNamespacedHorizontalPodAutoscalerStatusCall(String name, Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -1682,7 +1698,7 @@ private okhttp3.Call readNamespacedHorizontalPodAutoscalerStatusValidateBeforeCa * read status of the specified HorizontalPodAutoscaler * @param name name of the HorizontalPodAutoscaler (required) * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return V1HorizontalPodAutoscaler * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -1702,7 +1718,7 @@ public V1HorizontalPodAutoscaler readNamespacedHorizontalPodAutoscalerStatus(Str * read status of the specified HorizontalPodAutoscaler * @param name name of the HorizontalPodAutoscaler (required) * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return ApiResponse<V1HorizontalPodAutoscaler> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -1723,7 +1739,7 @@ public ApiResponse readNamespacedHorizontalPodAutosca * read status of the specified HorizontalPodAutoscaler * @param name name of the HorizontalPodAutoscaler (required) * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object @@ -1746,7 +1762,7 @@ public okhttp3.Call readNamespacedHorizontalPodAutoscalerStatusAsync(String name * @param name name of the HorizontalPodAutoscaler (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -1791,7 +1807,7 @@ public okhttp3.Call replaceNamespacedHorizontalPodAutoscalerCall(String name, St Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -1838,7 +1854,7 @@ private okhttp3.Call replaceNamespacedHorizontalPodAutoscalerValidateBeforeCall( * @param name name of the HorizontalPodAutoscaler (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -1863,7 +1879,7 @@ public V1HorizontalPodAutoscaler replaceNamespacedHorizontalPodAutoscaler(String * @param name name of the HorizontalPodAutoscaler (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -1889,7 +1905,7 @@ public ApiResponse replaceNamespacedHorizontalPodAuto * @param name name of the HorizontalPodAutoscaler (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -1916,7 +1932,7 @@ public okhttp3.Call replaceNamespacedHorizontalPodAutoscalerAsync(String name, S * @param name name of the HorizontalPodAutoscaler (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -1961,7 +1977,7 @@ public okhttp3.Call replaceNamespacedHorizontalPodAutoscalerStatusCall(String na Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -2008,7 +2024,7 @@ private okhttp3.Call replaceNamespacedHorizontalPodAutoscalerStatusValidateBefor * @param name name of the HorizontalPodAutoscaler (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -2033,7 +2049,7 @@ public V1HorizontalPodAutoscaler replaceNamespacedHorizontalPodAutoscalerStatus( * @param name name of the HorizontalPodAutoscaler (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -2059,7 +2075,7 @@ public ApiResponse replaceNamespacedHorizontalPodAuto * @param name name of the HorizontalPodAutoscaler (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) 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 79aca8448e..3f48211c22 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -62,7 +62,7 @@ public void setApiClient(ApiClient apiClient) { * Build call for createNamespacedHorizontalPodAutoscaler * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -107,7 +107,7 @@ public okhttp3.Call createNamespacedHorizontalPodAutoscalerCall(String namespace Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -148,7 +148,7 @@ private okhttp3.Call createNamespacedHorizontalPodAutoscalerValidateBeforeCall(S * create a HorizontalPodAutoscaler * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -173,7 +173,7 @@ public V2HorizontalPodAutoscaler createNamespacedHorizontalPodAutoscaler(String * create a HorizontalPodAutoscaler * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -199,7 +199,7 @@ public ApiResponse createNamespacedHorizontalPodAutos * create a HorizontalPodAutoscaler * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -225,11 +225,12 @@ public okhttp3.Call createNamespacedHorizontalPodAutoscalerAsync(String namespac /** * Build call for deleteCollectionNamespacedHorizontalPodAutoscaler * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param _continue 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) * @param dryRun 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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @param orphanDependents 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) @@ -249,7 +250,7 @@ public okhttp3.Call createNamespacedHorizontalPodAutoscalerAsync(String namespac 401 Unauthorized - */ - public okhttp3.Call deleteCollectionNamespacedHorizontalPodAutoscalerCall(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + public okhttp3.Call deleteCollectionNamespacedHorizontalPodAutoscalerCall(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; // create path and map variables @@ -278,6 +279,10 @@ public okhttp3.Call deleteCollectionNamespacedHorizontalPodAutoscalerCall(String localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); } + if (ignoreStoreReadErrorWithClusterBreakingPotential != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("ignoreStoreReadErrorWithClusterBreakingPotential", ignoreStoreReadErrorWithClusterBreakingPotential)); + } + if (labelSelector != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); } @@ -314,7 +319,7 @@ public okhttp3.Call deleteCollectionNamespacedHorizontalPodAutoscalerCall(String Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -332,7 +337,7 @@ public okhttp3.Call deleteCollectionNamespacedHorizontalPodAutoscalerCall(String } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteCollectionNamespacedHorizontalPodAutoscalerValidateBeforeCall(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionNamespacedHorizontalPodAutoscalerValidateBeforeCall(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { // verify the required parameter 'namespace' is set if (namespace == null) { @@ -340,7 +345,7 @@ private okhttp3.Call deleteCollectionNamespacedHorizontalPodAutoscalerValidateBe } - okhttp3.Call localVarCall = deleteCollectionNamespacedHorizontalPodAutoscalerCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + okhttp3.Call localVarCall = deleteCollectionNamespacedHorizontalPodAutoscalerCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); return localVarCall; } @@ -349,11 +354,12 @@ private okhttp3.Call deleteCollectionNamespacedHorizontalPodAutoscalerValidateBe * * delete collection of HorizontalPodAutoscaler * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param _continue 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) * @param dryRun 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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @param orphanDependents 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) @@ -372,8 +378,8 @@ private okhttp3.Call deleteCollectionNamespacedHorizontalPodAutoscalerValidateBe 401 Unauthorized - */ - public V1Status deleteCollectionNamespacedHorizontalPodAutoscaler(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body) throws ApiException { - ApiResponse localVarResp = deleteCollectionNamespacedHorizontalPodAutoscalerWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); + public V1Status deleteCollectionNamespacedHorizontalPodAutoscaler(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body) throws ApiException { + ApiResponse localVarResp = deleteCollectionNamespacedHorizontalPodAutoscalerWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); return localVarResp.getData(); } @@ -381,11 +387,12 @@ public V1Status deleteCollectionNamespacedHorizontalPodAutoscaler(String namespa * * delete collection of HorizontalPodAutoscaler * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param _continue 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) * @param dryRun 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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @param orphanDependents 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) @@ -404,8 +411,8 @@ public V1Status deleteCollectionNamespacedHorizontalPodAutoscaler(String namespa 401 Unauthorized - */ - public ApiResponse deleteCollectionNamespacedHorizontalPodAutoscalerWithHttpInfo(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body) throws ApiException { - okhttp3.Call localVarCall = deleteCollectionNamespacedHorizontalPodAutoscalerValidateBeforeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, null); + public ApiResponse deleteCollectionNamespacedHorizontalPodAutoscalerWithHttpInfo(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteCollectionNamespacedHorizontalPodAutoscalerValidateBeforeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -414,11 +421,12 @@ public ApiResponse deleteCollectionNamespacedHorizontalPodAutoscalerWi * (asynchronously) * delete collection of HorizontalPodAutoscaler * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param _continue 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) * @param dryRun 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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @param orphanDependents 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) @@ -438,9 +446,9 @@ public ApiResponse deleteCollectionNamespacedHorizontalPodAutoscalerWi 401 Unauthorized - */ - public okhttp3.Call deleteCollectionNamespacedHorizontalPodAutoscalerAsync(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + public okhttp3.Call deleteCollectionNamespacedHorizontalPodAutoscalerAsync(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = deleteCollectionNamespacedHorizontalPodAutoscalerValidateBeforeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + okhttp3.Call localVarCall = deleteCollectionNamespacedHorizontalPodAutoscalerValidateBeforeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -449,9 +457,10 @@ public okhttp3.Call deleteCollectionNamespacedHorizontalPodAutoscalerAsync(Strin * Build call for deleteNamespacedHorizontalPodAutoscaler * @param name name of the HorizontalPodAutoscaler (required) * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @param orphanDependents 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) * @param propagationPolicy 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. (optional) * @param body (optional) @@ -466,7 +475,7 @@ public okhttp3.Call deleteCollectionNamespacedHorizontalPodAutoscalerAsync(Strin 401 Unauthorized - */ - public okhttp3.Call deleteNamespacedHorizontalPodAutoscalerCall(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + public okhttp3.Call deleteNamespacedHorizontalPodAutoscalerCall(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; // create path and map variables @@ -488,6 +497,10 @@ public okhttp3.Call deleteNamespacedHorizontalPodAutoscalerCall(String name, Str localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); } + if (ignoreStoreReadErrorWithClusterBreakingPotential != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("ignoreStoreReadErrorWithClusterBreakingPotential", ignoreStoreReadErrorWithClusterBreakingPotential)); + } + if (orphanDependents != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("orphanDependents", orphanDependents)); } @@ -500,7 +513,7 @@ public okhttp3.Call deleteNamespacedHorizontalPodAutoscalerCall(String name, Str Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -518,7 +531,7 @@ public okhttp3.Call deleteNamespacedHorizontalPodAutoscalerCall(String name, Str } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteNamespacedHorizontalPodAutoscalerValidateBeforeCall(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteNamespacedHorizontalPodAutoscalerValidateBeforeCall(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -531,7 +544,7 @@ private okhttp3.Call deleteNamespacedHorizontalPodAutoscalerValidateBeforeCall(S } - okhttp3.Call localVarCall = deleteNamespacedHorizontalPodAutoscalerCall(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); + okhttp3.Call localVarCall = deleteNamespacedHorizontalPodAutoscalerCall(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); return localVarCall; } @@ -541,9 +554,10 @@ private okhttp3.Call deleteNamespacedHorizontalPodAutoscalerValidateBeforeCall(S * delete a HorizontalPodAutoscaler * @param name name of the HorizontalPodAutoscaler (required) * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @param orphanDependents 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) * @param propagationPolicy 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. (optional) * @param body (optional) @@ -557,8 +571,8 @@ private okhttp3.Call deleteNamespacedHorizontalPodAutoscalerValidateBeforeCall(S 401 Unauthorized - */ - public V1Status deleteNamespacedHorizontalPodAutoscaler(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { - ApiResponse localVarResp = deleteNamespacedHorizontalPodAutoscalerWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body); + public V1Status deleteNamespacedHorizontalPodAutoscaler(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { + ApiResponse localVarResp = deleteNamespacedHorizontalPodAutoscalerWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body); return localVarResp.getData(); } @@ -567,9 +581,10 @@ public V1Status deleteNamespacedHorizontalPodAutoscaler(String name, String name * delete a HorizontalPodAutoscaler * @param name name of the HorizontalPodAutoscaler (required) * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @param orphanDependents 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) * @param propagationPolicy 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. (optional) * @param body (optional) @@ -583,8 +598,8 @@ public V1Status deleteNamespacedHorizontalPodAutoscaler(String name, String name 401 Unauthorized - */ - public ApiResponse deleteNamespacedHorizontalPodAutoscalerWithHttpInfo(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { - okhttp3.Call localVarCall = deleteNamespacedHorizontalPodAutoscalerValidateBeforeCall(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, null); + public ApiResponse deleteNamespacedHorizontalPodAutoscalerWithHttpInfo(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteNamespacedHorizontalPodAutoscalerValidateBeforeCall(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -594,9 +609,10 @@ public ApiResponse deleteNamespacedHorizontalPodAutoscalerWithHttpInfo * delete a HorizontalPodAutoscaler * @param name name of the HorizontalPodAutoscaler (required) * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @param orphanDependents 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) * @param propagationPolicy 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. (optional) * @param body (optional) @@ -611,9 +627,9 @@ public ApiResponse deleteNamespacedHorizontalPodAutoscalerWithHttpInfo 401 Unauthorized - */ - public okhttp3.Call deleteNamespacedHorizontalPodAutoscalerAsync(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + public okhttp3.Call deleteNamespacedHorizontalPodAutoscalerAsync(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = deleteNamespacedHorizontalPodAutoscalerValidateBeforeCall(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); + okhttp3.Call localVarCall = deleteNamespacedHorizontalPodAutoscalerValidateBeforeCall(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -642,7 +658,7 @@ public okhttp3.Call getAPIResourcesCall(final ApiCallback _callback) throws ApiE Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -730,7 +746,7 @@ public okhttp3.Call getAPIResourcesAsync(final ApiCallback _c * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) @@ -802,7 +818,7 @@ public okhttp3.Call listHorizontalPodAutoscalerForAllNamespacesCall(Boolean allo Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch", "application/cbor-seq" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -836,7 +852,7 @@ private okhttp3.Call listHorizontalPodAutoscalerForAllNamespacesValidateBeforeCa * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) @@ -864,7 +880,7 @@ public V2HorizontalPodAutoscalerList listHorizontalPodAutoscalerForAllNamespaces * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) @@ -893,7 +909,7 @@ public ApiResponse listHorizontalPodAutoscalerFor * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) @@ -919,7 +935,7 @@ public okhttp3.Call listHorizontalPodAutoscalerForAllNamespacesAsync(Boolean all /** * Build call for listNamespacedHorizontalPodAutoscaler * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param allowWatchBookmarks 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. (optional) * @param _continue 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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) @@ -997,7 +1013,7 @@ public okhttp3.Call listNamespacedHorizontalPodAutoscalerCall(String namespace, Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch", "application/cbor-seq" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -1032,7 +1048,7 @@ private okhttp3.Call listNamespacedHorizontalPodAutoscalerValidateBeforeCall(Str * * list or watch objects of kind HorizontalPodAutoscaler * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param allowWatchBookmarks 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. (optional) * @param _continue 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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) @@ -1061,7 +1077,7 @@ public V2HorizontalPodAutoscalerList listNamespacedHorizontalPodAutoscaler(Strin * * list or watch objects of kind HorizontalPodAutoscaler * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param allowWatchBookmarks 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. (optional) * @param _continue 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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) @@ -1091,7 +1107,7 @@ public ApiResponse listNamespacedHorizontalPodAut * (asynchronously) * list or watch objects of kind HorizontalPodAutoscaler * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param allowWatchBookmarks 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. (optional) * @param _continue 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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) @@ -1124,7 +1140,7 @@ public okhttp3.Call listNamespacedHorizontalPodAutoscalerAsync(String namespace, * @param name name of the HorizontalPodAutoscaler (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -1174,7 +1190,7 @@ public okhttp3.Call patchNamespacedHorizontalPodAutoscalerCall(String name, Stri Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -1221,7 +1237,7 @@ private okhttp3.Call patchNamespacedHorizontalPodAutoscalerValidateBeforeCall(St * @param name name of the HorizontalPodAutoscaler (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -1247,7 +1263,7 @@ public V2HorizontalPodAutoscaler patchNamespacedHorizontalPodAutoscaler(String n * @param name name of the HorizontalPodAutoscaler (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -1274,7 +1290,7 @@ public ApiResponse patchNamespacedHorizontalPodAutosc * @param name name of the HorizontalPodAutoscaler (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -1302,7 +1318,7 @@ public okhttp3.Call patchNamespacedHorizontalPodAutoscalerAsync(String name, Str * @param name name of the HorizontalPodAutoscaler (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -1352,7 +1368,7 @@ public okhttp3.Call patchNamespacedHorizontalPodAutoscalerStatusCall(String name Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -1399,7 +1415,7 @@ private okhttp3.Call patchNamespacedHorizontalPodAutoscalerStatusValidateBeforeC * @param name name of the HorizontalPodAutoscaler (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -1425,7 +1441,7 @@ public V2HorizontalPodAutoscaler patchNamespacedHorizontalPodAutoscalerStatus(St * @param name name of the HorizontalPodAutoscaler (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -1452,7 +1468,7 @@ public ApiResponse patchNamespacedHorizontalPodAutosc * @param name name of the HorizontalPodAutoscaler (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -1479,7 +1495,7 @@ public okhttp3.Call patchNamespacedHorizontalPodAutoscalerStatusAsync(String nam * Build call for readNamespacedHorizontalPodAutoscaler * @param name name of the HorizontalPodAutoscaler (required) * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -1508,7 +1524,7 @@ public okhttp3.Call readNamespacedHorizontalPodAutoscalerCall(String name, Strin Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -1549,7 +1565,7 @@ private okhttp3.Call readNamespacedHorizontalPodAutoscalerValidateBeforeCall(Str * read the specified HorizontalPodAutoscaler * @param name name of the HorizontalPodAutoscaler (required) * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return V2HorizontalPodAutoscaler * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -1569,7 +1585,7 @@ public V2HorizontalPodAutoscaler readNamespacedHorizontalPodAutoscaler(String na * read the specified HorizontalPodAutoscaler * @param name name of the HorizontalPodAutoscaler (required) * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return ApiResponse<V2HorizontalPodAutoscaler> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -1590,7 +1606,7 @@ public ApiResponse readNamespacedHorizontalPodAutosca * read the specified HorizontalPodAutoscaler * @param name name of the HorizontalPodAutoscaler (required) * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object @@ -1612,7 +1628,7 @@ public okhttp3.Call readNamespacedHorizontalPodAutoscalerAsync(String name, Stri * Build call for readNamespacedHorizontalPodAutoscalerStatus * @param name name of the HorizontalPodAutoscaler (required) * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -1641,7 +1657,7 @@ public okhttp3.Call readNamespacedHorizontalPodAutoscalerStatusCall(String name, Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -1682,7 +1698,7 @@ private okhttp3.Call readNamespacedHorizontalPodAutoscalerStatusValidateBeforeCa * read status of the specified HorizontalPodAutoscaler * @param name name of the HorizontalPodAutoscaler (required) * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return V2HorizontalPodAutoscaler * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -1702,7 +1718,7 @@ public V2HorizontalPodAutoscaler readNamespacedHorizontalPodAutoscalerStatus(Str * read status of the specified HorizontalPodAutoscaler * @param name name of the HorizontalPodAutoscaler (required) * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return ApiResponse<V2HorizontalPodAutoscaler> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -1723,7 +1739,7 @@ public ApiResponse readNamespacedHorizontalPodAutosca * read status of the specified HorizontalPodAutoscaler * @param name name of the HorizontalPodAutoscaler (required) * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object @@ -1746,7 +1762,7 @@ public okhttp3.Call readNamespacedHorizontalPodAutoscalerStatusAsync(String name * @param name name of the HorizontalPodAutoscaler (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -1791,7 +1807,7 @@ public okhttp3.Call replaceNamespacedHorizontalPodAutoscalerCall(String name, St Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -1838,7 +1854,7 @@ private okhttp3.Call replaceNamespacedHorizontalPodAutoscalerValidateBeforeCall( * @param name name of the HorizontalPodAutoscaler (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -1863,7 +1879,7 @@ public V2HorizontalPodAutoscaler replaceNamespacedHorizontalPodAutoscaler(String * @param name name of the HorizontalPodAutoscaler (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -1889,7 +1905,7 @@ public ApiResponse replaceNamespacedHorizontalPodAuto * @param name name of the HorizontalPodAutoscaler (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -1916,7 +1932,7 @@ public okhttp3.Call replaceNamespacedHorizontalPodAutoscalerAsync(String name, S * @param name name of the HorizontalPodAutoscaler (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -1961,7 +1977,7 @@ public okhttp3.Call replaceNamespacedHorizontalPodAutoscalerStatusCall(String na Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -2008,7 +2024,7 @@ private okhttp3.Call replaceNamespacedHorizontalPodAutoscalerStatusValidateBefor * @param name name of the HorizontalPodAutoscaler (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -2033,7 +2049,7 @@ public V2HorizontalPodAutoscaler replaceNamespacedHorizontalPodAutoscalerStatus( * @param name name of the HorizontalPodAutoscaler (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -2059,7 +2075,7 @@ public ApiResponse replaceNamespacedHorizontalPodAuto * @param name name of the HorizontalPodAutoscaler (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) 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 ed3407ee10..1786a82e0d 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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 37b2753899..1010eff8e7 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -64,7 +64,7 @@ public void setApiClient(ApiClient apiClient) { * Build call for createNamespacedCronJob * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -109,7 +109,7 @@ public okhttp3.Call createNamespacedCronJobCall(String namespace, V1CronJob body Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -150,7 +150,7 @@ private okhttp3.Call createNamespacedCronJobValidateBeforeCall(String namespace, * create a CronJob * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -175,7 +175,7 @@ public V1CronJob createNamespacedCronJob(String namespace, V1CronJob body, Strin * create a CronJob * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -201,7 +201,7 @@ public ApiResponse createNamespacedCronJobWithHttpInfo(String namespa * create a CronJob * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -228,7 +228,7 @@ public okhttp3.Call createNamespacedCronJobAsync(String namespace, V1CronJob bod * Build call for createNamespacedJob * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -273,7 +273,7 @@ public okhttp3.Call createNamespacedJobCall(String namespace, V1Job body, String Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -314,7 +314,7 @@ private okhttp3.Call createNamespacedJobValidateBeforeCall(String namespace, V1J * create a Job * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -339,7 +339,7 @@ public V1Job createNamespacedJob(String namespace, V1Job body, String pretty, St * create a Job * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -365,7 +365,7 @@ public ApiResponse createNamespacedJobWithHttpInfo(String namespace, V1Jo * create a Job * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -391,11 +391,12 @@ public okhttp3.Call createNamespacedJobAsync(String namespace, V1Job body, Strin /** * Build call for deleteCollectionNamespacedCronJob * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param _continue 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) * @param dryRun 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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @param orphanDependents 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) @@ -415,7 +416,7 @@ public okhttp3.Call createNamespacedJobAsync(String namespace, V1Job body, Strin 401 Unauthorized - */ - public okhttp3.Call deleteCollectionNamespacedCronJobCall(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + public okhttp3.Call deleteCollectionNamespacedCronJobCall(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; // create path and map variables @@ -444,6 +445,10 @@ public okhttp3.Call deleteCollectionNamespacedCronJobCall(String namespace, Stri localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); } + if (ignoreStoreReadErrorWithClusterBreakingPotential != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("ignoreStoreReadErrorWithClusterBreakingPotential", ignoreStoreReadErrorWithClusterBreakingPotential)); + } + if (labelSelector != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); } @@ -480,7 +485,7 @@ public okhttp3.Call deleteCollectionNamespacedCronJobCall(String namespace, Stri Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -498,7 +503,7 @@ public okhttp3.Call deleteCollectionNamespacedCronJobCall(String namespace, Stri } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteCollectionNamespacedCronJobValidateBeforeCall(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionNamespacedCronJobValidateBeforeCall(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { // verify the required parameter 'namespace' is set if (namespace == null) { @@ -506,7 +511,7 @@ private okhttp3.Call deleteCollectionNamespacedCronJobValidateBeforeCall(String } - okhttp3.Call localVarCall = deleteCollectionNamespacedCronJobCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + okhttp3.Call localVarCall = deleteCollectionNamespacedCronJobCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); return localVarCall; } @@ -515,11 +520,12 @@ private okhttp3.Call deleteCollectionNamespacedCronJobValidateBeforeCall(String * * delete collection of CronJob * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param _continue 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) * @param dryRun 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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @param orphanDependents 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) @@ -538,8 +544,8 @@ private okhttp3.Call deleteCollectionNamespacedCronJobValidateBeforeCall(String 401 Unauthorized - */ - public V1Status deleteCollectionNamespacedCronJob(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body) throws ApiException { - ApiResponse localVarResp = deleteCollectionNamespacedCronJobWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); + public V1Status deleteCollectionNamespacedCronJob(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body) throws ApiException { + ApiResponse localVarResp = deleteCollectionNamespacedCronJobWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); return localVarResp.getData(); } @@ -547,11 +553,12 @@ public V1Status deleteCollectionNamespacedCronJob(String namespace, String prett * * delete collection of CronJob * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param _continue 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) * @param dryRun 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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @param orphanDependents 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) @@ -570,8 +577,8 @@ public V1Status deleteCollectionNamespacedCronJob(String namespace, String prett 401 Unauthorized - */ - public ApiResponse deleteCollectionNamespacedCronJobWithHttpInfo(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body) throws ApiException { - okhttp3.Call localVarCall = deleteCollectionNamespacedCronJobValidateBeforeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, null); + public ApiResponse deleteCollectionNamespacedCronJobWithHttpInfo(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteCollectionNamespacedCronJobValidateBeforeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -580,11 +587,12 @@ public ApiResponse deleteCollectionNamespacedCronJobWithHttpInfo(Strin * (asynchronously) * delete collection of CronJob * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param _continue 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) * @param dryRun 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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @param orphanDependents 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) @@ -604,9 +612,9 @@ public ApiResponse deleteCollectionNamespacedCronJobWithHttpInfo(Strin 401 Unauthorized - */ - public okhttp3.Call deleteCollectionNamespacedCronJobAsync(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + public okhttp3.Call deleteCollectionNamespacedCronJobAsync(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = deleteCollectionNamespacedCronJobValidateBeforeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + okhttp3.Call localVarCall = deleteCollectionNamespacedCronJobValidateBeforeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -614,11 +622,12 @@ public okhttp3.Call deleteCollectionNamespacedCronJobAsync(String namespace, Str /** * Build call for deleteCollectionNamespacedJob * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param _continue 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) * @param dryRun 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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @param orphanDependents 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) @@ -638,7 +647,7 @@ public okhttp3.Call deleteCollectionNamespacedCronJobAsync(String namespace, Str 401 Unauthorized - */ - public okhttp3.Call deleteCollectionNamespacedJobCall(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + public okhttp3.Call deleteCollectionNamespacedJobCall(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; // create path and map variables @@ -667,6 +676,10 @@ public okhttp3.Call deleteCollectionNamespacedJobCall(String namespace, String p localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); } + if (ignoreStoreReadErrorWithClusterBreakingPotential != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("ignoreStoreReadErrorWithClusterBreakingPotential", ignoreStoreReadErrorWithClusterBreakingPotential)); + } + if (labelSelector != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); } @@ -703,7 +716,7 @@ public okhttp3.Call deleteCollectionNamespacedJobCall(String namespace, String p Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -721,7 +734,7 @@ public okhttp3.Call deleteCollectionNamespacedJobCall(String namespace, String p } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteCollectionNamespacedJobValidateBeforeCall(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionNamespacedJobValidateBeforeCall(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { // verify the required parameter 'namespace' is set if (namespace == null) { @@ -729,7 +742,7 @@ private okhttp3.Call deleteCollectionNamespacedJobValidateBeforeCall(String name } - okhttp3.Call localVarCall = deleteCollectionNamespacedJobCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + okhttp3.Call localVarCall = deleteCollectionNamespacedJobCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); return localVarCall; } @@ -738,11 +751,12 @@ private okhttp3.Call deleteCollectionNamespacedJobValidateBeforeCall(String name * * delete collection of Job * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param _continue 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) * @param dryRun 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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @param orphanDependents 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) @@ -761,8 +775,8 @@ private okhttp3.Call deleteCollectionNamespacedJobValidateBeforeCall(String name 401 Unauthorized - */ - public V1Status deleteCollectionNamespacedJob(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body) throws ApiException { - ApiResponse localVarResp = deleteCollectionNamespacedJobWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); + public V1Status deleteCollectionNamespacedJob(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body) throws ApiException { + ApiResponse localVarResp = deleteCollectionNamespacedJobWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); return localVarResp.getData(); } @@ -770,11 +784,12 @@ public V1Status deleteCollectionNamespacedJob(String namespace, String pretty, S * * delete collection of Job * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param _continue 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) * @param dryRun 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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @param orphanDependents 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) @@ -793,8 +808,8 @@ public V1Status deleteCollectionNamespacedJob(String namespace, String pretty, S 401 Unauthorized - */ - public ApiResponse deleteCollectionNamespacedJobWithHttpInfo(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body) throws ApiException { - okhttp3.Call localVarCall = deleteCollectionNamespacedJobValidateBeforeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, null); + public ApiResponse deleteCollectionNamespacedJobWithHttpInfo(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteCollectionNamespacedJobValidateBeforeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -803,11 +818,12 @@ public ApiResponse deleteCollectionNamespacedJobWithHttpInfo(String na * (asynchronously) * delete collection of Job * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param _continue 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) * @param dryRun 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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @param orphanDependents 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) @@ -827,9 +843,9 @@ public ApiResponse deleteCollectionNamespacedJobWithHttpInfo(String na 401 Unauthorized - */ - public okhttp3.Call deleteCollectionNamespacedJobAsync(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + public okhttp3.Call deleteCollectionNamespacedJobAsync(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = deleteCollectionNamespacedJobValidateBeforeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + okhttp3.Call localVarCall = deleteCollectionNamespacedJobValidateBeforeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -838,9 +854,10 @@ public okhttp3.Call deleteCollectionNamespacedJobAsync(String namespace, String * Build call for deleteNamespacedCronJob * @param name name of the CronJob (required) * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @param orphanDependents 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) * @param propagationPolicy 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. (optional) * @param body (optional) @@ -855,7 +872,7 @@ public okhttp3.Call deleteCollectionNamespacedJobAsync(String namespace, String 401 Unauthorized - */ - public okhttp3.Call deleteNamespacedCronJobCall(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + public okhttp3.Call deleteNamespacedCronJobCall(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; // create path and map variables @@ -877,6 +894,10 @@ public okhttp3.Call deleteNamespacedCronJobCall(String name, String namespace, S localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); } + if (ignoreStoreReadErrorWithClusterBreakingPotential != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("ignoreStoreReadErrorWithClusterBreakingPotential", ignoreStoreReadErrorWithClusterBreakingPotential)); + } + if (orphanDependents != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("orphanDependents", orphanDependents)); } @@ -889,7 +910,7 @@ public okhttp3.Call deleteNamespacedCronJobCall(String name, String namespace, S Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -907,7 +928,7 @@ public okhttp3.Call deleteNamespacedCronJobCall(String name, String namespace, S } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteNamespacedCronJobValidateBeforeCall(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteNamespacedCronJobValidateBeforeCall(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -920,7 +941,7 @@ private okhttp3.Call deleteNamespacedCronJobValidateBeforeCall(String name, Stri } - okhttp3.Call localVarCall = deleteNamespacedCronJobCall(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); + okhttp3.Call localVarCall = deleteNamespacedCronJobCall(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); return localVarCall; } @@ -930,9 +951,10 @@ private okhttp3.Call deleteNamespacedCronJobValidateBeforeCall(String name, Stri * delete a CronJob * @param name name of the CronJob (required) * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @param orphanDependents 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) * @param propagationPolicy 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. (optional) * @param body (optional) @@ -946,8 +968,8 @@ private okhttp3.Call deleteNamespacedCronJobValidateBeforeCall(String name, Stri 401 Unauthorized - */ - public V1Status deleteNamespacedCronJob(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { - ApiResponse localVarResp = deleteNamespacedCronJobWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body); + public V1Status deleteNamespacedCronJob(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { + ApiResponse localVarResp = deleteNamespacedCronJobWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body); return localVarResp.getData(); } @@ -956,9 +978,10 @@ public V1Status deleteNamespacedCronJob(String name, String namespace, String pr * delete a CronJob * @param name name of the CronJob (required) * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @param orphanDependents 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) * @param propagationPolicy 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. (optional) * @param body (optional) @@ -972,8 +995,8 @@ public V1Status deleteNamespacedCronJob(String name, String namespace, String pr 401 Unauthorized - */ - public ApiResponse deleteNamespacedCronJobWithHttpInfo(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { - okhttp3.Call localVarCall = deleteNamespacedCronJobValidateBeforeCall(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, null); + public ApiResponse deleteNamespacedCronJobWithHttpInfo(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteNamespacedCronJobValidateBeforeCall(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -983,9 +1006,10 @@ public ApiResponse deleteNamespacedCronJobWithHttpInfo(String name, St * delete a CronJob * @param name name of the CronJob (required) * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @param orphanDependents 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) * @param propagationPolicy 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. (optional) * @param body (optional) @@ -1000,9 +1024,9 @@ public ApiResponse deleteNamespacedCronJobWithHttpInfo(String name, St 401 Unauthorized - */ - public okhttp3.Call deleteNamespacedCronJobAsync(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + public okhttp3.Call deleteNamespacedCronJobAsync(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = deleteNamespacedCronJobValidateBeforeCall(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); + okhttp3.Call localVarCall = deleteNamespacedCronJobValidateBeforeCall(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -1011,9 +1035,10 @@ public okhttp3.Call deleteNamespacedCronJobAsync(String name, String namespace, * Build call for deleteNamespacedJob * @param name name of the Job (required) * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @param orphanDependents 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) * @param propagationPolicy 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. (optional) * @param body (optional) @@ -1028,7 +1053,7 @@ public okhttp3.Call deleteNamespacedCronJobAsync(String name, String namespace, 401 Unauthorized - */ - public okhttp3.Call deleteNamespacedJobCall(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + public okhttp3.Call deleteNamespacedJobCall(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; // create path and map variables @@ -1050,6 +1075,10 @@ public okhttp3.Call deleteNamespacedJobCall(String name, String namespace, Strin localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); } + if (ignoreStoreReadErrorWithClusterBreakingPotential != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("ignoreStoreReadErrorWithClusterBreakingPotential", ignoreStoreReadErrorWithClusterBreakingPotential)); + } + if (orphanDependents != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("orphanDependents", orphanDependents)); } @@ -1062,7 +1091,7 @@ public okhttp3.Call deleteNamespacedJobCall(String name, String namespace, Strin Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -1080,7 +1109,7 @@ public okhttp3.Call deleteNamespacedJobCall(String name, String namespace, Strin } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteNamespacedJobValidateBeforeCall(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteNamespacedJobValidateBeforeCall(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -1093,7 +1122,7 @@ private okhttp3.Call deleteNamespacedJobValidateBeforeCall(String name, String n } - okhttp3.Call localVarCall = deleteNamespacedJobCall(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); + okhttp3.Call localVarCall = deleteNamespacedJobCall(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); return localVarCall; } @@ -1103,9 +1132,10 @@ private okhttp3.Call deleteNamespacedJobValidateBeforeCall(String name, String n * delete a Job * @param name name of the Job (required) * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @param orphanDependents 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) * @param propagationPolicy 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. (optional) * @param body (optional) @@ -1119,8 +1149,8 @@ private okhttp3.Call deleteNamespacedJobValidateBeforeCall(String name, String n 401 Unauthorized - */ - public V1Status deleteNamespacedJob(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { - ApiResponse localVarResp = deleteNamespacedJobWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body); + public V1Status deleteNamespacedJob(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { + ApiResponse localVarResp = deleteNamespacedJobWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body); return localVarResp.getData(); } @@ -1129,9 +1159,10 @@ public V1Status deleteNamespacedJob(String name, String namespace, String pretty * delete a Job * @param name name of the Job (required) * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @param orphanDependents 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) * @param propagationPolicy 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. (optional) * @param body (optional) @@ -1145,8 +1176,8 @@ public V1Status deleteNamespacedJob(String name, String namespace, String pretty 401 Unauthorized - */ - public ApiResponse deleteNamespacedJobWithHttpInfo(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { - okhttp3.Call localVarCall = deleteNamespacedJobValidateBeforeCall(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, null); + public ApiResponse deleteNamespacedJobWithHttpInfo(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteNamespacedJobValidateBeforeCall(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -1156,9 +1187,10 @@ public ApiResponse deleteNamespacedJobWithHttpInfo(String name, String * delete a Job * @param name name of the Job (required) * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @param orphanDependents 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) * @param propagationPolicy 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. (optional) * @param body (optional) @@ -1173,9 +1205,9 @@ public ApiResponse deleteNamespacedJobWithHttpInfo(String name, String 401 Unauthorized - */ - public okhttp3.Call deleteNamespacedJobAsync(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + public okhttp3.Call deleteNamespacedJobAsync(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = deleteNamespacedJobValidateBeforeCall(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); + okhttp3.Call localVarCall = deleteNamespacedJobValidateBeforeCall(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -1204,7 +1236,7 @@ public okhttp3.Call getAPIResourcesCall(final ApiCallback _callback) throws ApiE Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -1292,7 +1324,7 @@ public okhttp3.Call getAPIResourcesAsync(final ApiCallback _c * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) @@ -1364,7 +1396,7 @@ public okhttp3.Call listCronJobForAllNamespacesCall(Boolean allowWatchBookmarks, Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch", "application/cbor-seq" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -1398,7 +1430,7 @@ private okhttp3.Call listCronJobForAllNamespacesValidateBeforeCall(Boolean allow * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) @@ -1426,7 +1458,7 @@ public V1CronJobList listCronJobForAllNamespaces(Boolean allowWatchBookmarks, St * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) @@ -1455,7 +1487,7 @@ public ApiResponse listCronJobForAllNamespacesWithHttpInfo(Boolea * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) @@ -1485,7 +1517,7 @@ public okhttp3.Call listCronJobForAllNamespacesAsync(Boolean allowWatchBookmarks * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) @@ -1557,7 +1589,7 @@ public okhttp3.Call listJobForAllNamespacesCall(Boolean allowWatchBookmarks, Str Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch", "application/cbor-seq" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -1591,7 +1623,7 @@ private okhttp3.Call listJobForAllNamespacesValidateBeforeCall(Boolean allowWatc * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) @@ -1619,7 +1651,7 @@ public V1JobList listJobForAllNamespaces(Boolean allowWatchBookmarks, String _co * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) @@ -1648,7 +1680,7 @@ public ApiResponse listJobForAllNamespacesWithHttpInfo(Boolean allowW * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) @@ -1674,7 +1706,7 @@ public okhttp3.Call listJobForAllNamespacesAsync(Boolean allowWatchBookmarks, St /** * Build call for listNamespacedCronJob * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param allowWatchBookmarks 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. (optional) * @param _continue 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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) @@ -1752,7 +1784,7 @@ public okhttp3.Call listNamespacedCronJobCall(String namespace, String pretty, B Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch", "application/cbor-seq" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -1787,7 +1819,7 @@ private okhttp3.Call listNamespacedCronJobValidateBeforeCall(String namespace, S * * list or watch objects of kind CronJob * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param allowWatchBookmarks 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. (optional) * @param _continue 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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) @@ -1816,7 +1848,7 @@ public V1CronJobList listNamespacedCronJob(String namespace, String pretty, Bool * * list or watch objects of kind CronJob * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param allowWatchBookmarks 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. (optional) * @param _continue 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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) @@ -1846,7 +1878,7 @@ public ApiResponse listNamespacedCronJobWithHttpInfo(String names * (asynchronously) * list or watch objects of kind CronJob * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param allowWatchBookmarks 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. (optional) * @param _continue 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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) @@ -1877,7 +1909,7 @@ public okhttp3.Call listNamespacedCronJobAsync(String namespace, String pretty, /** * Build call for listNamespacedJob * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param allowWatchBookmarks 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. (optional) * @param _continue 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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) @@ -1955,7 +1987,7 @@ public okhttp3.Call listNamespacedJobCall(String namespace, String pretty, Boole Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch", "application/cbor-seq" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -1990,7 +2022,7 @@ private okhttp3.Call listNamespacedJobValidateBeforeCall(String namespace, Strin * * list or watch objects of kind Job * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param allowWatchBookmarks 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. (optional) * @param _continue 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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) @@ -2019,7 +2051,7 @@ public V1JobList listNamespacedJob(String namespace, String pretty, Boolean allo * * list or watch objects of kind Job * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param allowWatchBookmarks 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. (optional) * @param _continue 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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) @@ -2049,7 +2081,7 @@ public ApiResponse listNamespacedJobWithHttpInfo(String namespace, St * (asynchronously) * list or watch objects of kind Job * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param allowWatchBookmarks 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. (optional) * @param _continue 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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) @@ -2082,7 +2114,7 @@ public okhttp3.Call listNamespacedJobAsync(String namespace, String pretty, Bool * @param name name of the CronJob (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -2132,7 +2164,7 @@ public okhttp3.Call patchNamespacedCronJobCall(String name, String namespace, V1 Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -2179,7 +2211,7 @@ private okhttp3.Call patchNamespacedCronJobValidateBeforeCall(String name, Strin * @param name name of the CronJob (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -2205,7 +2237,7 @@ public V1CronJob patchNamespacedCronJob(String name, String namespace, V1Patch b * @param name name of the CronJob (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -2232,7 +2264,7 @@ public ApiResponse patchNamespacedCronJobWithHttpInfo(String name, St * @param name name of the CronJob (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -2260,7 +2292,7 @@ public okhttp3.Call patchNamespacedCronJobAsync(String name, String namespace, V * @param name name of the CronJob (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -2310,7 +2342,7 @@ public okhttp3.Call patchNamespacedCronJobStatusCall(String name, String namespa Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -2357,7 +2389,7 @@ private okhttp3.Call patchNamespacedCronJobStatusValidateBeforeCall(String name, * @param name name of the CronJob (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -2383,7 +2415,7 @@ public V1CronJob patchNamespacedCronJobStatus(String name, String namespace, V1P * @param name name of the CronJob (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -2410,7 +2442,7 @@ public ApiResponse patchNamespacedCronJobStatusWithHttpInfo(String na * @param name name of the CronJob (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -2438,7 +2470,7 @@ public okhttp3.Call patchNamespacedCronJobStatusAsync(String name, String namesp * @param name name of the Job (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -2488,7 +2520,7 @@ public okhttp3.Call patchNamespacedJobCall(String name, String namespace, V1Patc Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -2535,7 +2567,7 @@ private okhttp3.Call patchNamespacedJobValidateBeforeCall(String name, String na * @param name name of the Job (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -2561,7 +2593,7 @@ public V1Job patchNamespacedJob(String name, String namespace, V1Patch body, Str * @param name name of the Job (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -2588,7 +2620,7 @@ public ApiResponse patchNamespacedJobWithHttpInfo(String name, String nam * @param name name of the Job (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -2616,7 +2648,7 @@ public okhttp3.Call patchNamespacedJobAsync(String name, String namespace, V1Pat * @param name name of the Job (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -2666,7 +2698,7 @@ public okhttp3.Call patchNamespacedJobStatusCall(String name, String namespace, Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -2713,7 +2745,7 @@ private okhttp3.Call patchNamespacedJobStatusValidateBeforeCall(String name, Str * @param name name of the Job (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -2739,7 +2771,7 @@ public V1Job patchNamespacedJobStatus(String name, String namespace, V1Patch bod * @param name name of the Job (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -2766,7 +2798,7 @@ public ApiResponse patchNamespacedJobStatusWithHttpInfo(String name, Stri * @param name name of the Job (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -2793,7 +2825,7 @@ public okhttp3.Call patchNamespacedJobStatusAsync(String name, String namespace, * Build call for readNamespacedCronJob * @param name name of the CronJob (required) * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -2822,7 +2854,7 @@ public okhttp3.Call readNamespacedCronJobCall(String name, String namespace, Str Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -2863,7 +2895,7 @@ private okhttp3.Call readNamespacedCronJobValidateBeforeCall(String name, String * read the specified CronJob * @param name name of the CronJob (required) * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return V1CronJob * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -2883,7 +2915,7 @@ public V1CronJob readNamespacedCronJob(String name, String namespace, String pre * read the specified CronJob * @param name name of the CronJob (required) * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return ApiResponse<V1CronJob> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -2904,7 +2936,7 @@ public ApiResponse readNamespacedCronJobWithHttpInfo(String name, Str * read the specified CronJob * @param name name of the CronJob (required) * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object @@ -2926,7 +2958,7 @@ public okhttp3.Call readNamespacedCronJobAsync(String name, String namespace, St * Build call for readNamespacedCronJobStatus * @param name name of the CronJob (required) * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -2955,7 +2987,7 @@ public okhttp3.Call readNamespacedCronJobStatusCall(String name, String namespac Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -2996,7 +3028,7 @@ private okhttp3.Call readNamespacedCronJobStatusValidateBeforeCall(String name, * read status of the specified CronJob * @param name name of the CronJob (required) * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return V1CronJob * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -3016,7 +3048,7 @@ public V1CronJob readNamespacedCronJobStatus(String name, String namespace, Stri * read status of the specified CronJob * @param name name of the CronJob (required) * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return ApiResponse<V1CronJob> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -3037,7 +3069,7 @@ public ApiResponse readNamespacedCronJobStatusWithHttpInfo(String nam * read status of the specified CronJob * @param name name of the CronJob (required) * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object @@ -3059,7 +3091,7 @@ public okhttp3.Call readNamespacedCronJobStatusAsync(String name, String namespa * Build call for readNamespacedJob * @param name name of the Job (required) * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -3088,7 +3120,7 @@ public okhttp3.Call readNamespacedJobCall(String name, String namespace, String Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -3129,7 +3161,7 @@ private okhttp3.Call readNamespacedJobValidateBeforeCall(String name, String nam * read the specified Job * @param name name of the Job (required) * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return V1Job * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -3149,7 +3181,7 @@ public V1Job readNamespacedJob(String name, String namespace, String pretty) thr * read the specified Job * @param name name of the Job (required) * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return ApiResponse<V1Job> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -3170,7 +3202,7 @@ public ApiResponse readNamespacedJobWithHttpInfo(String name, String name * read the specified Job * @param name name of the Job (required) * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object @@ -3192,7 +3224,7 @@ public okhttp3.Call readNamespacedJobAsync(String name, String namespace, String * Build call for readNamespacedJobStatus * @param name name of the Job (required) * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -3221,7 +3253,7 @@ public okhttp3.Call readNamespacedJobStatusCall(String name, String namespace, S Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -3262,7 +3294,7 @@ private okhttp3.Call readNamespacedJobStatusValidateBeforeCall(String name, Stri * read status of the specified Job * @param name name of the Job (required) * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return V1Job * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -3282,7 +3314,7 @@ public V1Job readNamespacedJobStatus(String name, String namespace, String prett * read status of the specified Job * @param name name of the Job (required) * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return ApiResponse<V1Job> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -3303,7 +3335,7 @@ public ApiResponse readNamespacedJobStatusWithHttpInfo(String name, Strin * read status of the specified Job * @param name name of the Job (required) * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object @@ -3326,7 +3358,7 @@ public okhttp3.Call readNamespacedJobStatusAsync(String name, String namespace, * @param name name of the CronJob (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -3371,7 +3403,7 @@ public okhttp3.Call replaceNamespacedCronJobCall(String name, String namespace, Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -3418,7 +3450,7 @@ private okhttp3.Call replaceNamespacedCronJobValidateBeforeCall(String name, Str * @param name name of the CronJob (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -3443,7 +3475,7 @@ public V1CronJob replaceNamespacedCronJob(String name, String namespace, V1CronJ * @param name name of the CronJob (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -3469,7 +3501,7 @@ public ApiResponse replaceNamespacedCronJobWithHttpInfo(String name, * @param name name of the CronJob (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -3496,7 +3528,7 @@ public okhttp3.Call replaceNamespacedCronJobAsync(String name, String namespace, * @param name name of the CronJob (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -3541,7 +3573,7 @@ public okhttp3.Call replaceNamespacedCronJobStatusCall(String name, String names Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -3588,7 +3620,7 @@ private okhttp3.Call replaceNamespacedCronJobStatusValidateBeforeCall(String nam * @param name name of the CronJob (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -3613,7 +3645,7 @@ public V1CronJob replaceNamespacedCronJobStatus(String name, String namespace, V * @param name name of the CronJob (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -3639,7 +3671,7 @@ public ApiResponse replaceNamespacedCronJobStatusWithHttpInfo(String * @param name name of the CronJob (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -3666,7 +3698,7 @@ public okhttp3.Call replaceNamespacedCronJobStatusAsync(String name, String name * @param name name of the Job (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -3711,7 +3743,7 @@ public okhttp3.Call replaceNamespacedJobCall(String name, String namespace, V1Jo Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -3758,7 +3790,7 @@ private okhttp3.Call replaceNamespacedJobValidateBeforeCall(String name, String * @param name name of the Job (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -3783,7 +3815,7 @@ public V1Job replaceNamespacedJob(String name, String namespace, V1Job body, Str * @param name name of the Job (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -3809,7 +3841,7 @@ public ApiResponse replaceNamespacedJobWithHttpInfo(String name, String n * @param name name of the Job (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -3836,7 +3868,7 @@ public okhttp3.Call replaceNamespacedJobAsync(String name, String namespace, V1J * @param name name of the Job (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -3881,7 +3913,7 @@ public okhttp3.Call replaceNamespacedJobStatusCall(String name, String namespace Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -3928,7 +3960,7 @@ private okhttp3.Call replaceNamespacedJobStatusValidateBeforeCall(String name, S * @param name name of the Job (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -3953,7 +3985,7 @@ public V1Job replaceNamespacedJobStatus(String name, String namespace, V1Job bod * @param name name of the Job (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -3979,7 +4011,7 @@ public ApiResponse replaceNamespacedJobStatusWithHttpInfo(String name, St * @param name name of the Job (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) 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 b193ab507a..285d4eceb8 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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 6ccbf67a02..443b5fdd73 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -61,7 +61,7 @@ public void setApiClient(ApiClient apiClient) { /** * Build call for createCertificateSigningRequest * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -105,7 +105,7 @@ public okhttp3.Call createCertificateSigningRequestCall(V1CertificateSigningRequ Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -140,7 +140,7 @@ private okhttp3.Call createCertificateSigningRequestValidateBeforeCall(V1Certifi * * create a CertificateSigningRequest * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -164,7 +164,7 @@ public V1CertificateSigningRequest createCertificateSigningRequest(V1Certificate * * create a CertificateSigningRequest * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -189,7 +189,7 @@ public ApiResponse createCertificateSigningRequestW * (asynchronously) * create a CertificateSigningRequest * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -215,9 +215,10 @@ public okhttp3.Call createCertificateSigningRequestAsync(V1CertificateSigningReq /** * Build call for deleteCertificateSigningRequest * @param name name of the CertificateSigningRequest (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @param orphanDependents 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) * @param propagationPolicy 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. (optional) * @param body (optional) @@ -232,7 +233,7 @@ public okhttp3.Call createCertificateSigningRequestAsync(V1CertificateSigningReq 401 Unauthorized - */ - public okhttp3.Call deleteCertificateSigningRequestCall(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + public okhttp3.Call deleteCertificateSigningRequestCall(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; // create path and map variables @@ -253,6 +254,10 @@ public okhttp3.Call deleteCertificateSigningRequestCall(String name, String pret localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); } + if (ignoreStoreReadErrorWithClusterBreakingPotential != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("ignoreStoreReadErrorWithClusterBreakingPotential", ignoreStoreReadErrorWithClusterBreakingPotential)); + } + if (orphanDependents != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("orphanDependents", orphanDependents)); } @@ -265,7 +270,7 @@ public okhttp3.Call deleteCertificateSigningRequestCall(String name, String pret Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -283,7 +288,7 @@ public okhttp3.Call deleteCertificateSigningRequestCall(String name, String pret } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteCertificateSigningRequestValidateBeforeCall(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCertificateSigningRequestValidateBeforeCall(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -291,7 +296,7 @@ private okhttp3.Call deleteCertificateSigningRequestValidateBeforeCall(String na } - okhttp3.Call localVarCall = deleteCertificateSigningRequestCall(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); + okhttp3.Call localVarCall = deleteCertificateSigningRequestCall(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); return localVarCall; } @@ -300,9 +305,10 @@ private okhttp3.Call deleteCertificateSigningRequestValidateBeforeCall(String na * * delete a CertificateSigningRequest * @param name name of the CertificateSigningRequest (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @param orphanDependents 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) * @param propagationPolicy 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. (optional) * @param body (optional) @@ -316,8 +322,8 @@ private okhttp3.Call deleteCertificateSigningRequestValidateBeforeCall(String na 401 Unauthorized - */ - public V1Status deleteCertificateSigningRequest(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { - ApiResponse localVarResp = deleteCertificateSigningRequestWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body); + public V1Status deleteCertificateSigningRequest(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { + ApiResponse localVarResp = deleteCertificateSigningRequestWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body); return localVarResp.getData(); } @@ -325,9 +331,10 @@ public V1Status deleteCertificateSigningRequest(String name, String pretty, Stri * * delete a CertificateSigningRequest * @param name name of the CertificateSigningRequest (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @param orphanDependents 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) * @param propagationPolicy 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. (optional) * @param body (optional) @@ -341,8 +348,8 @@ public V1Status deleteCertificateSigningRequest(String name, String pretty, Stri 401 Unauthorized - */ - public ApiResponse deleteCertificateSigningRequestWithHttpInfo(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { - okhttp3.Call localVarCall = deleteCertificateSigningRequestValidateBeforeCall(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, null); + public ApiResponse deleteCertificateSigningRequestWithHttpInfo(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteCertificateSigningRequestValidateBeforeCall(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -351,9 +358,10 @@ public ApiResponse deleteCertificateSigningRequestWithHttpInfo(String * (asynchronously) * delete a CertificateSigningRequest * @param name name of the CertificateSigningRequest (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @param orphanDependents 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) * @param propagationPolicy 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. (optional) * @param body (optional) @@ -368,20 +376,21 @@ public ApiResponse deleteCertificateSigningRequestWithHttpInfo(String 401 Unauthorized - */ - public okhttp3.Call deleteCertificateSigningRequestAsync(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + public okhttp3.Call deleteCertificateSigningRequestAsync(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = deleteCertificateSigningRequestValidateBeforeCall(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); + okhttp3.Call localVarCall = deleteCertificateSigningRequestValidateBeforeCall(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for deleteCollectionCertificateSigningRequest - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param _continue 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) * @param dryRun 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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @param orphanDependents 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) @@ -401,7 +410,7 @@ public okhttp3.Call deleteCertificateSigningRequestAsync(String name, String pre 401 Unauthorized - */ - public okhttp3.Call deleteCollectionCertificateSigningRequestCall(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + public okhttp3.Call deleteCollectionCertificateSigningRequestCall(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; // create path and map variables @@ -429,6 +438,10 @@ public okhttp3.Call deleteCollectionCertificateSigningRequestCall(String pretty, localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); } + if (ignoreStoreReadErrorWithClusterBreakingPotential != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("ignoreStoreReadErrorWithClusterBreakingPotential", ignoreStoreReadErrorWithClusterBreakingPotential)); + } + if (labelSelector != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); } @@ -465,7 +478,7 @@ public okhttp3.Call deleteCollectionCertificateSigningRequestCall(String pretty, Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -483,10 +496,10 @@ public okhttp3.Call deleteCollectionCertificateSigningRequestCall(String pretty, } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteCollectionCertificateSigningRequestValidateBeforeCall(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionCertificateSigningRequestValidateBeforeCall(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = deleteCollectionCertificateSigningRequestCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + okhttp3.Call localVarCall = deleteCollectionCertificateSigningRequestCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); return localVarCall; } @@ -494,11 +507,12 @@ private okhttp3.Call deleteCollectionCertificateSigningRequestValidateBeforeCall /** * * delete collection of CertificateSigningRequest - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param _continue 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) * @param dryRun 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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @param orphanDependents 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) @@ -517,19 +531,20 @@ private okhttp3.Call deleteCollectionCertificateSigningRequestValidateBeforeCall 401 Unauthorized - */ - public V1Status deleteCollectionCertificateSigningRequest(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body) throws ApiException { - ApiResponse localVarResp = deleteCollectionCertificateSigningRequestWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); + public V1Status deleteCollectionCertificateSigningRequest(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body) throws ApiException { + ApiResponse localVarResp = deleteCollectionCertificateSigningRequestWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); return localVarResp.getData(); } /** * * delete collection of CertificateSigningRequest - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param _continue 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) * @param dryRun 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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @param orphanDependents 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) @@ -548,8 +563,8 @@ public V1Status deleteCollectionCertificateSigningRequest(String pretty, String 401 Unauthorized - */ - public ApiResponse deleteCollectionCertificateSigningRequestWithHttpInfo(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body) throws ApiException { - okhttp3.Call localVarCall = deleteCollectionCertificateSigningRequestValidateBeforeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, null); + public ApiResponse deleteCollectionCertificateSigningRequestWithHttpInfo(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteCollectionCertificateSigningRequestValidateBeforeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -557,11 +572,12 @@ public ApiResponse deleteCollectionCertificateSigningRequestWithHttpIn /** * (asynchronously) * delete collection of CertificateSigningRequest - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param _continue 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) * @param dryRun 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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @param orphanDependents 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) @@ -581,9 +597,9 @@ public ApiResponse deleteCollectionCertificateSigningRequestWithHttpIn 401 Unauthorized - */ - public okhttp3.Call deleteCollectionCertificateSigningRequestAsync(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + public okhttp3.Call deleteCollectionCertificateSigningRequestAsync(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = deleteCollectionCertificateSigningRequestValidateBeforeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + okhttp3.Call localVarCall = deleteCollectionCertificateSigningRequestValidateBeforeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -612,7 +628,7 @@ public okhttp3.Call getAPIResourcesCall(final ApiCallback _callback) throws ApiE Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -695,7 +711,7 @@ public okhttp3.Call getAPIResourcesAsync(final ApiCallback _c } /** * Build call for listCertificateSigningRequest - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param allowWatchBookmarks 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. (optional) * @param _continue 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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) @@ -772,7 +788,7 @@ public okhttp3.Call listCertificateSigningRequestCall(String pretty, Boolean all Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch", "application/cbor-seq" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -801,7 +817,7 @@ private okhttp3.Call listCertificateSigningRequestValidateBeforeCall(String pret /** * * list or watch objects of kind CertificateSigningRequest - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param allowWatchBookmarks 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. (optional) * @param _continue 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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) @@ -829,7 +845,7 @@ public V1CertificateSigningRequestList listCertificateSigningRequest(String pret /** * * list or watch objects of kind CertificateSigningRequest - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param allowWatchBookmarks 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. (optional) * @param _continue 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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) @@ -858,7 +874,7 @@ public ApiResponse listCertificateSigningReques /** * (asynchronously) * list or watch objects of kind CertificateSigningRequest - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param allowWatchBookmarks 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. (optional) * @param _continue 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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) @@ -890,7 +906,7 @@ public okhttp3.Call listCertificateSigningRequestAsync(String pretty, Boolean al * Build call for patchCertificateSigningRequest * @param name name of the CertificateSigningRequest (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -939,7 +955,7 @@ public okhttp3.Call patchCertificateSigningRequestCall(String name, V1Patch body Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -980,7 +996,7 @@ private okhttp3.Call patchCertificateSigningRequestValidateBeforeCall(String nam * partially update the specified CertificateSigningRequest * @param name name of the CertificateSigningRequest (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -1005,7 +1021,7 @@ public V1CertificateSigningRequest patchCertificateSigningRequest(String name, V * partially update the specified CertificateSigningRequest * @param name name of the CertificateSigningRequest (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -1031,7 +1047,7 @@ public ApiResponse patchCertificateSigningRequestWi * partially update the specified CertificateSigningRequest * @param name name of the CertificateSigningRequest (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -1058,7 +1074,7 @@ public okhttp3.Call patchCertificateSigningRequestAsync(String name, V1Patch bod * Build call for patchCertificateSigningRequestApproval * @param name name of the CertificateSigningRequest (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -1107,7 +1123,7 @@ public okhttp3.Call patchCertificateSigningRequestApprovalCall(String name, V1Pa Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -1148,7 +1164,7 @@ private okhttp3.Call patchCertificateSigningRequestApprovalValidateBeforeCall(St * partially update approval of the specified CertificateSigningRequest * @param name name of the CertificateSigningRequest (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -1173,7 +1189,7 @@ public V1CertificateSigningRequest patchCertificateSigningRequestApproval(String * partially update approval of the specified CertificateSigningRequest * @param name name of the CertificateSigningRequest (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -1199,7 +1215,7 @@ public ApiResponse patchCertificateSigningRequestAp * partially update approval of the specified CertificateSigningRequest * @param name name of the CertificateSigningRequest (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -1226,7 +1242,7 @@ public okhttp3.Call patchCertificateSigningRequestApprovalAsync(String name, V1P * Build call for patchCertificateSigningRequestStatus * @param name name of the CertificateSigningRequest (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -1275,7 +1291,7 @@ public okhttp3.Call patchCertificateSigningRequestStatusCall(String name, V1Patc Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -1316,7 +1332,7 @@ private okhttp3.Call patchCertificateSigningRequestStatusValidateBeforeCall(Stri * partially update status of the specified CertificateSigningRequest * @param name name of the CertificateSigningRequest (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -1341,7 +1357,7 @@ public V1CertificateSigningRequest patchCertificateSigningRequestStatus(String n * partially update status of the specified CertificateSigningRequest * @param name name of the CertificateSigningRequest (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -1367,7 +1383,7 @@ public ApiResponse patchCertificateSigningRequestSt * partially update status of the specified CertificateSigningRequest * @param name name of the CertificateSigningRequest (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -1393,7 +1409,7 @@ public okhttp3.Call patchCertificateSigningRequestStatusAsync(String name, V1Pat /** * Build call for readCertificateSigningRequest * @param name name of the CertificateSigningRequest (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -1421,7 +1437,7 @@ public okhttp3.Call readCertificateSigningRequestCall(String name, String pretty Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -1456,7 +1472,7 @@ private okhttp3.Call readCertificateSigningRequestValidateBeforeCall(String name * * read the specified CertificateSigningRequest * @param name name of the CertificateSigningRequest (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return V1CertificateSigningRequest * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -1475,7 +1491,7 @@ public V1CertificateSigningRequest readCertificateSigningRequest(String name, St * * read the specified CertificateSigningRequest * @param name name of the CertificateSigningRequest (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return ApiResponse<V1CertificateSigningRequest> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -1495,7 +1511,7 @@ public ApiResponse readCertificateSigningRequestWit * (asynchronously) * read the specified CertificateSigningRequest * @param name name of the CertificateSigningRequest (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object @@ -1516,7 +1532,7 @@ public okhttp3.Call readCertificateSigningRequestAsync(String name, String prett /** * Build call for readCertificateSigningRequestApproval * @param name name of the CertificateSigningRequest (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -1544,7 +1560,7 @@ public okhttp3.Call readCertificateSigningRequestApprovalCall(String name, Strin Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -1579,7 +1595,7 @@ private okhttp3.Call readCertificateSigningRequestApprovalValidateBeforeCall(Str * * read approval of the specified CertificateSigningRequest * @param name name of the CertificateSigningRequest (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return V1CertificateSigningRequest * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -1598,7 +1614,7 @@ public V1CertificateSigningRequest readCertificateSigningRequestApproval(String * * read approval of the specified CertificateSigningRequest * @param name name of the CertificateSigningRequest (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return ApiResponse<V1CertificateSigningRequest> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -1618,7 +1634,7 @@ public ApiResponse readCertificateSigningRequestApp * (asynchronously) * read approval of the specified CertificateSigningRequest * @param name name of the CertificateSigningRequest (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object @@ -1639,7 +1655,7 @@ public okhttp3.Call readCertificateSigningRequestApprovalAsync(String name, Stri /** * Build call for readCertificateSigningRequestStatus * @param name name of the CertificateSigningRequest (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -1667,7 +1683,7 @@ public okhttp3.Call readCertificateSigningRequestStatusCall(String name, String Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -1702,7 +1718,7 @@ private okhttp3.Call readCertificateSigningRequestStatusValidateBeforeCall(Strin * * read status of the specified CertificateSigningRequest * @param name name of the CertificateSigningRequest (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return V1CertificateSigningRequest * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -1721,7 +1737,7 @@ public V1CertificateSigningRequest readCertificateSigningRequestStatus(String na * * read status of the specified CertificateSigningRequest * @param name name of the CertificateSigningRequest (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return ApiResponse<V1CertificateSigningRequest> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -1741,7 +1757,7 @@ public ApiResponse readCertificateSigningRequestSta * (asynchronously) * read status of the specified CertificateSigningRequest * @param name name of the CertificateSigningRequest (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object @@ -1763,7 +1779,7 @@ public okhttp3.Call readCertificateSigningRequestStatusAsync(String name, String * Build call for replaceCertificateSigningRequest * @param name name of the CertificateSigningRequest (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -1807,7 +1823,7 @@ public okhttp3.Call replaceCertificateSigningRequestCall(String name, V1Certific Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -1848,7 +1864,7 @@ private okhttp3.Call replaceCertificateSigningRequestValidateBeforeCall(String n * replace the specified CertificateSigningRequest * @param name name of the CertificateSigningRequest (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -1872,7 +1888,7 @@ public V1CertificateSigningRequest replaceCertificateSigningRequest(String name, * replace the specified CertificateSigningRequest * @param name name of the CertificateSigningRequest (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -1897,7 +1913,7 @@ public ApiResponse replaceCertificateSigningRequest * replace the specified CertificateSigningRequest * @param name name of the CertificateSigningRequest (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -1923,7 +1939,7 @@ public okhttp3.Call replaceCertificateSigningRequestAsync(String name, V1Certifi * Build call for replaceCertificateSigningRequestApproval * @param name name of the CertificateSigningRequest (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -1967,7 +1983,7 @@ public okhttp3.Call replaceCertificateSigningRequestApprovalCall(String name, V1 Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -2008,7 +2024,7 @@ private okhttp3.Call replaceCertificateSigningRequestApprovalValidateBeforeCall( * replace approval of the specified CertificateSigningRequest * @param name name of the CertificateSigningRequest (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -2032,7 +2048,7 @@ public V1CertificateSigningRequest replaceCertificateSigningRequestApproval(Stri * replace approval of the specified CertificateSigningRequest * @param name name of the CertificateSigningRequest (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -2057,7 +2073,7 @@ public ApiResponse replaceCertificateSigningRequest * replace approval of the specified CertificateSigningRequest * @param name name of the CertificateSigningRequest (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -2083,7 +2099,7 @@ public okhttp3.Call replaceCertificateSigningRequestApprovalAsync(String name, V * Build call for replaceCertificateSigningRequestStatus * @param name name of the CertificateSigningRequest (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -2127,7 +2143,7 @@ public okhttp3.Call replaceCertificateSigningRequestStatusCall(String name, V1Ce Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -2168,7 +2184,7 @@ private okhttp3.Call replaceCertificateSigningRequestStatusValidateBeforeCall(St * replace status of the specified CertificateSigningRequest * @param name name of the CertificateSigningRequest (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -2192,7 +2208,7 @@ public V1CertificateSigningRequest replaceCertificateSigningRequestStatus(String * replace status of the specified CertificateSigningRequest * @param name name of the CertificateSigningRequest (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -2217,7 +2233,7 @@ public ApiResponse replaceCertificateSigningRequest * replace status of the specified CertificateSigningRequest * @param name name of the CertificateSigningRequest (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) 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 8a2b9fe745..5a537c6f78 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -61,7 +61,7 @@ public void setApiClient(ApiClient apiClient) { /** * Build call for createClusterTrustBundle * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -105,7 +105,7 @@ public okhttp3.Call createClusterTrustBundleCall(V1alpha1ClusterTrustBundle body Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -140,7 +140,7 @@ private okhttp3.Call createClusterTrustBundleValidateBeforeCall(V1alpha1ClusterT * * create a ClusterTrustBundle * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -164,7 +164,7 @@ public V1alpha1ClusterTrustBundle createClusterTrustBundle(V1alpha1ClusterTrustB * * create a ClusterTrustBundle * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -189,7 +189,7 @@ public ApiResponse createClusterTrustBundleWithHttpI * (asynchronously) * create a ClusterTrustBundle * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -215,9 +215,10 @@ public okhttp3.Call createClusterTrustBundleAsync(V1alpha1ClusterTrustBundle bod /** * Build call for deleteClusterTrustBundle * @param name name of the ClusterTrustBundle (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @param orphanDependents 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) * @param propagationPolicy 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. (optional) * @param body (optional) @@ -232,7 +233,7 @@ public okhttp3.Call createClusterTrustBundleAsync(V1alpha1ClusterTrustBundle bod 401 Unauthorized - */ - public okhttp3.Call deleteClusterTrustBundleCall(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + public okhttp3.Call deleteClusterTrustBundleCall(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; // create path and map variables @@ -253,6 +254,10 @@ public okhttp3.Call deleteClusterTrustBundleCall(String name, String pretty, Str localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); } + if (ignoreStoreReadErrorWithClusterBreakingPotential != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("ignoreStoreReadErrorWithClusterBreakingPotential", ignoreStoreReadErrorWithClusterBreakingPotential)); + } + if (orphanDependents != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("orphanDependents", orphanDependents)); } @@ -265,7 +270,7 @@ public okhttp3.Call deleteClusterTrustBundleCall(String name, String pretty, Str Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -283,7 +288,7 @@ public okhttp3.Call deleteClusterTrustBundleCall(String name, String pretty, Str } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteClusterTrustBundleValidateBeforeCall(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteClusterTrustBundleValidateBeforeCall(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -291,7 +296,7 @@ private okhttp3.Call deleteClusterTrustBundleValidateBeforeCall(String name, Str } - okhttp3.Call localVarCall = deleteClusterTrustBundleCall(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); + okhttp3.Call localVarCall = deleteClusterTrustBundleCall(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); return localVarCall; } @@ -300,9 +305,10 @@ private okhttp3.Call deleteClusterTrustBundleValidateBeforeCall(String name, Str * * delete a ClusterTrustBundle * @param name name of the ClusterTrustBundle (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @param orphanDependents 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) * @param propagationPolicy 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. (optional) * @param body (optional) @@ -316,8 +322,8 @@ private okhttp3.Call deleteClusterTrustBundleValidateBeforeCall(String name, Str 401 Unauthorized - */ - public V1Status deleteClusterTrustBundle(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { - ApiResponse localVarResp = deleteClusterTrustBundleWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body); + public V1Status deleteClusterTrustBundle(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { + ApiResponse localVarResp = deleteClusterTrustBundleWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body); return localVarResp.getData(); } @@ -325,9 +331,10 @@ public V1Status deleteClusterTrustBundle(String name, String pretty, String dryR * * delete a ClusterTrustBundle * @param name name of the ClusterTrustBundle (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @param orphanDependents 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) * @param propagationPolicy 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. (optional) * @param body (optional) @@ -341,8 +348,8 @@ public V1Status deleteClusterTrustBundle(String name, String pretty, String dryR 401 Unauthorized - */ - public ApiResponse deleteClusterTrustBundleWithHttpInfo(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { - okhttp3.Call localVarCall = deleteClusterTrustBundleValidateBeforeCall(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, null); + public ApiResponse deleteClusterTrustBundleWithHttpInfo(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteClusterTrustBundleValidateBeforeCall(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -351,9 +358,10 @@ public ApiResponse deleteClusterTrustBundleWithHttpInfo(String name, S * (asynchronously) * delete a ClusterTrustBundle * @param name name of the ClusterTrustBundle (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @param orphanDependents 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) * @param propagationPolicy 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. (optional) * @param body (optional) @@ -368,20 +376,21 @@ public ApiResponse deleteClusterTrustBundleWithHttpInfo(String name, S 401 Unauthorized - */ - public okhttp3.Call deleteClusterTrustBundleAsync(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + public okhttp3.Call deleteClusterTrustBundleAsync(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = deleteClusterTrustBundleValidateBeforeCall(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); + okhttp3.Call localVarCall = deleteClusterTrustBundleValidateBeforeCall(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for deleteCollectionClusterTrustBundle - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param _continue 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) * @param dryRun 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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @param orphanDependents 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) @@ -401,7 +410,7 @@ public okhttp3.Call deleteClusterTrustBundleAsync(String name, String pretty, St 401 Unauthorized - */ - public okhttp3.Call deleteCollectionClusterTrustBundleCall(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + public okhttp3.Call deleteCollectionClusterTrustBundleCall(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; // create path and map variables @@ -429,6 +438,10 @@ public okhttp3.Call deleteCollectionClusterTrustBundleCall(String pretty, String localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); } + if (ignoreStoreReadErrorWithClusterBreakingPotential != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("ignoreStoreReadErrorWithClusterBreakingPotential", ignoreStoreReadErrorWithClusterBreakingPotential)); + } + if (labelSelector != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); } @@ -465,7 +478,7 @@ public okhttp3.Call deleteCollectionClusterTrustBundleCall(String pretty, String Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -483,10 +496,10 @@ public okhttp3.Call deleteCollectionClusterTrustBundleCall(String pretty, String } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteCollectionClusterTrustBundleValidateBeforeCall(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionClusterTrustBundleValidateBeforeCall(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = deleteCollectionClusterTrustBundleCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + okhttp3.Call localVarCall = deleteCollectionClusterTrustBundleCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); return localVarCall; } @@ -494,11 +507,12 @@ private okhttp3.Call deleteCollectionClusterTrustBundleValidateBeforeCall(String /** * * delete collection of ClusterTrustBundle - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param _continue 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) * @param dryRun 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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @param orphanDependents 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) @@ -517,19 +531,20 @@ private okhttp3.Call deleteCollectionClusterTrustBundleValidateBeforeCall(String 401 Unauthorized - */ - public V1Status deleteCollectionClusterTrustBundle(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body) throws ApiException { - ApiResponse localVarResp = deleteCollectionClusterTrustBundleWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); + public V1Status deleteCollectionClusterTrustBundle(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body) throws ApiException { + ApiResponse localVarResp = deleteCollectionClusterTrustBundleWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); return localVarResp.getData(); } /** * * delete collection of ClusterTrustBundle - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param _continue 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) * @param dryRun 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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @param orphanDependents 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) @@ -548,8 +563,8 @@ public V1Status deleteCollectionClusterTrustBundle(String pretty, String _contin 401 Unauthorized - */ - public ApiResponse deleteCollectionClusterTrustBundleWithHttpInfo(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body) throws ApiException { - okhttp3.Call localVarCall = deleteCollectionClusterTrustBundleValidateBeforeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, null); + public ApiResponse deleteCollectionClusterTrustBundleWithHttpInfo(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteCollectionClusterTrustBundleValidateBeforeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -557,11 +572,12 @@ public ApiResponse deleteCollectionClusterTrustBundleWithHttpInfo(Stri /** * (asynchronously) * delete collection of ClusterTrustBundle - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param _continue 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) * @param dryRun 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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @param orphanDependents 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) @@ -581,9 +597,9 @@ public ApiResponse deleteCollectionClusterTrustBundleWithHttpInfo(Stri 401 Unauthorized - */ - public okhttp3.Call deleteCollectionClusterTrustBundleAsync(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + public okhttp3.Call deleteCollectionClusterTrustBundleAsync(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = deleteCollectionClusterTrustBundleValidateBeforeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + okhttp3.Call localVarCall = deleteCollectionClusterTrustBundleValidateBeforeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -612,7 +628,7 @@ public okhttp3.Call getAPIResourcesCall(final ApiCallback _callback) throws ApiE Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -695,7 +711,7 @@ public okhttp3.Call getAPIResourcesAsync(final ApiCallback _c } /** * Build call for listClusterTrustBundle - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param allowWatchBookmarks 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. (optional) * @param _continue 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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) @@ -772,7 +788,7 @@ public okhttp3.Call listClusterTrustBundleCall(String pretty, Boolean allowWatch Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch", "application/cbor-seq" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -801,7 +817,7 @@ private okhttp3.Call listClusterTrustBundleValidateBeforeCall(String pretty, Boo /** * * list or watch objects of kind ClusterTrustBundle - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param allowWatchBookmarks 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. (optional) * @param _continue 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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) @@ -829,7 +845,7 @@ public V1alpha1ClusterTrustBundleList listClusterTrustBundle(String pretty, Bool /** * * list or watch objects of kind ClusterTrustBundle - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param allowWatchBookmarks 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. (optional) * @param _continue 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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) @@ -858,7 +874,7 @@ public ApiResponse listClusterTrustBundleWithHtt /** * (asynchronously) * list or watch objects of kind ClusterTrustBundle - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param allowWatchBookmarks 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. (optional) * @param _continue 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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) @@ -890,7 +906,7 @@ public okhttp3.Call listClusterTrustBundleAsync(String pretty, Boolean allowWatc * Build call for patchClusterTrustBundle * @param name name of the ClusterTrustBundle (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -939,7 +955,7 @@ public okhttp3.Call patchClusterTrustBundleCall(String name, V1Patch body, Strin Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -980,7 +996,7 @@ private okhttp3.Call patchClusterTrustBundleValidateBeforeCall(String name, V1Pa * partially update the specified ClusterTrustBundle * @param name name of the ClusterTrustBundle (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -1005,7 +1021,7 @@ public V1alpha1ClusterTrustBundle patchClusterTrustBundle(String name, V1Patch b * partially update the specified ClusterTrustBundle * @param name name of the ClusterTrustBundle (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -1031,7 +1047,7 @@ public ApiResponse patchClusterTrustBundleWithHttpIn * partially update the specified ClusterTrustBundle * @param name name of the ClusterTrustBundle (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -1057,7 +1073,7 @@ public okhttp3.Call patchClusterTrustBundleAsync(String name, V1Patch body, Stri /** * Build call for readClusterTrustBundle * @param name name of the ClusterTrustBundle (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -1085,7 +1101,7 @@ public okhttp3.Call readClusterTrustBundleCall(String name, String pretty, final Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -1120,7 +1136,7 @@ private okhttp3.Call readClusterTrustBundleValidateBeforeCall(String name, Strin * * read the specified ClusterTrustBundle * @param name name of the ClusterTrustBundle (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return V1alpha1ClusterTrustBundle * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -1139,7 +1155,7 @@ public V1alpha1ClusterTrustBundle readClusterTrustBundle(String name, String pre * * read the specified ClusterTrustBundle * @param name name of the ClusterTrustBundle (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return ApiResponse<V1alpha1ClusterTrustBundle> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -1159,7 +1175,7 @@ public ApiResponse readClusterTrustBundleWithHttpInf * (asynchronously) * read the specified ClusterTrustBundle * @param name name of the ClusterTrustBundle (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object @@ -1181,7 +1197,7 @@ public okhttp3.Call readClusterTrustBundleAsync(String name, String pretty, fina * Build call for replaceClusterTrustBundle * @param name name of the ClusterTrustBundle (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -1225,7 +1241,7 @@ public okhttp3.Call replaceClusterTrustBundleCall(String name, V1alpha1ClusterTr Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -1266,7 +1282,7 @@ private okhttp3.Call replaceClusterTrustBundleValidateBeforeCall(String name, V1 * replace the specified ClusterTrustBundle * @param name name of the ClusterTrustBundle (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -1290,7 +1306,7 @@ public V1alpha1ClusterTrustBundle replaceClusterTrustBundle(String name, V1alpha * replace the specified ClusterTrustBundle * @param name name of the ClusterTrustBundle (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -1315,7 +1331,7 @@ public ApiResponse replaceClusterTrustBundleWithHttp * replace the specified ClusterTrustBundle * @param name name of the ClusterTrustBundle (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/CertificatesV1beta1Api.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/CertificatesV1beta1Api.java new file mode 100644 index 0000000000..9e49be739d --- /dev/null +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/CertificatesV1beta1Api.java @@ -0,0 +1,1356 @@ +/* +Copyright 2025 The Kubernetes Authors. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at +http://www.apache.org/licenses/LICENSE-2.0 +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ +package io.kubernetes.client.openapi.apis; + +import io.kubernetes.client.openapi.ApiCallback; +import io.kubernetes.client.openapi.ApiClient; +import io.kubernetes.client.openapi.ApiException; +import io.kubernetes.client.openapi.ApiResponse; +import io.kubernetes.client.openapi.Configuration; +import io.kubernetes.client.openapi.Pair; +import io.kubernetes.client.openapi.ProgressRequestBody; +import io.kubernetes.client.openapi.ProgressResponseBody; + +import com.google.gson.reflect.TypeToken; + +import java.io.IOException; + + +import io.kubernetes.client.openapi.models.V1APIResourceList; +import io.kubernetes.client.openapi.models.V1DeleteOptions; +import io.kubernetes.client.custom.V1Patch; +import io.kubernetes.client.openapi.models.V1Status; +import io.kubernetes.client.openapi.models.V1beta1ClusterTrustBundle; +import io.kubernetes.client.openapi.models.V1beta1ClusterTrustBundleList; + +import java.lang.reflect.Type; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +public class CertificatesV1beta1Api { + private ApiClient localVarApiClient; + + public CertificatesV1beta1Api() { + this(Configuration.getDefaultApiClient()); + } + + public CertificatesV1beta1Api(ApiClient apiClient) { + this.localVarApiClient = apiClient; + } + + public ApiClient getApiClient() { + return localVarApiClient; + } + + public void setApiClient(ApiClient apiClient) { + this.localVarApiClient = apiClient; + } + + /** + * Build call for createClusterTrustBundle + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
+ */ + public okhttp3.Call createClusterTrustBundleCall(V1beta1ClusterTrustBundle body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + Object localVarPostBody = body; + + // create path and map variables + String localVarPath = "/apis/certificates.k8s.io/v1beta1/clustertrustbundles"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } + + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + + if (fieldValidation != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + final String[] localVarAccepts = { + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call createClusterTrustBundleValidateBeforeCall(V1beta1ClusterTrustBundle body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'body' is set + if (body == null) { + throw new ApiException("Missing the required parameter 'body' when calling createClusterTrustBundle(Async)"); + } + + + okhttp3.Call localVarCall = createClusterTrustBundleCall(body, pretty, dryRun, fieldManager, fieldValidation, _callback); + return localVarCall; + + } + + /** + * + * create a ClusterTrustBundle + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @return V1beta1ClusterTrustBundle + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
+ */ + public V1beta1ClusterTrustBundle createClusterTrustBundle(V1beta1ClusterTrustBundle body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { + ApiResponse localVarResp = createClusterTrustBundleWithHttpInfo(body, pretty, dryRun, fieldManager, fieldValidation); + return localVarResp.getData(); + } + + /** + * + * create a ClusterTrustBundle + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @return ApiResponse<V1beta1ClusterTrustBundle> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
+ */ + public ApiResponse createClusterTrustBundleWithHttpInfo(V1beta1ClusterTrustBundle body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { + okhttp3.Call localVarCall = createClusterTrustBundleValidateBeforeCall(body, pretty, dryRun, fieldManager, fieldValidation, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * create a ClusterTrustBundle + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
+ */ + public okhttp3.Call createClusterTrustBundleAsync(V1beta1ClusterTrustBundle body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = createClusterTrustBundleValidateBeforeCall(body, pretty, dryRun, fieldManager, fieldValidation, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for deleteClusterTrustBundle + * @param name name of the ClusterTrustBundle (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) + * @param orphanDependents 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) + * @param propagationPolicy 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. (optional) + * @param body (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
+ */ + public okhttp3.Call deleteClusterTrustBundleCall(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + Object localVarPostBody = body; + + // create path and map variables + String localVarPath = "/apis/certificates.k8s.io/v1beta1/clustertrustbundles/{name}" + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } + + if (gracePeriodSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); + } + + if (ignoreStoreReadErrorWithClusterBreakingPotential != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("ignoreStoreReadErrorWithClusterBreakingPotential", ignoreStoreReadErrorWithClusterBreakingPotential)); + } + + if (orphanDependents != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("orphanDependents", orphanDependents)); + } + + if (propagationPolicy != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("propagationPolicy", propagationPolicy)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + final String[] localVarAccepts = { + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call deleteClusterTrustBundleValidateBeforeCall(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'name' is set + if (name == null) { + throw new ApiException("Missing the required parameter 'name' when calling deleteClusterTrustBundle(Async)"); + } + + + okhttp3.Call localVarCall = deleteClusterTrustBundleCall(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); + return localVarCall; + + } + + /** + * + * delete a ClusterTrustBundle + * @param name name of the ClusterTrustBundle (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) + * @param orphanDependents 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) + * @param propagationPolicy 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. (optional) + * @param body (optional) + * @return V1Status + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
+ */ + public V1Status deleteClusterTrustBundle(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { + ApiResponse localVarResp = deleteClusterTrustBundleWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body); + return localVarResp.getData(); + } + + /** + * + * delete a ClusterTrustBundle + * @param name name of the ClusterTrustBundle (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) + * @param orphanDependents 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) + * @param propagationPolicy 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. (optional) + * @param body (optional) + * @return ApiResponse<V1Status> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
+ */ + public ApiResponse deleteClusterTrustBundleWithHttpInfo(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteClusterTrustBundleValidateBeforeCall(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * delete a ClusterTrustBundle + * @param name name of the ClusterTrustBundle (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) + * @param orphanDependents 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) + * @param propagationPolicy 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. (optional) + * @param body (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
+ */ + public okhttp3.Call deleteClusterTrustBundleAsync(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = deleteClusterTrustBundleValidateBeforeCall(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for deleteCollectionClusterTrustBundle + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param _continue 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) + * @param dryRun 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) + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param orphanDependents 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) + * @param propagationPolicy 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. (optional) + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + * @param body (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call deleteCollectionClusterTrustBundleCall(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + Object localVarPostBody = body; + + // create path and map variables + String localVarPath = "/apis/certificates.k8s.io/v1beta1/clustertrustbundles"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + + if (_continue != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); + } + + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } + + if (fieldSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); + } + + if (gracePeriodSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); + } + + if (ignoreStoreReadErrorWithClusterBreakingPotential != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("ignoreStoreReadErrorWithClusterBreakingPotential", ignoreStoreReadErrorWithClusterBreakingPotential)); + } + + if (labelSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); + } + + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + } + + if (orphanDependents != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("orphanDependents", orphanDependents)); + } + + if (propagationPolicy != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("propagationPolicy", propagationPolicy)); + } + + if (resourceVersion != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); + } + + if (resourceVersionMatch != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersionMatch", resourceVersionMatch)); + } + + if (sendInitialEvents != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("sendInitialEvents", sendInitialEvents)); + } + + if (timeoutSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + final String[] localVarAccepts = { + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call deleteCollectionClusterTrustBundleValidateBeforeCall(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + + + okhttp3.Call localVarCall = deleteCollectionClusterTrustBundleCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + return localVarCall; + + } + + /** + * + * delete collection of ClusterTrustBundle + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param _continue 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) + * @param dryRun 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) + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param orphanDependents 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) + * @param propagationPolicy 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. (optional) + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + * @param body (optional) + * @return V1Status + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public V1Status deleteCollectionClusterTrustBundle(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body) throws ApiException { + ApiResponse localVarResp = deleteCollectionClusterTrustBundleWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); + return localVarResp.getData(); + } + + /** + * + * delete collection of ClusterTrustBundle + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param _continue 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) + * @param dryRun 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) + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param orphanDependents 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) + * @param propagationPolicy 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. (optional) + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + * @param body (optional) + * @return ApiResponse<V1Status> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public ApiResponse deleteCollectionClusterTrustBundleWithHttpInfo(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteCollectionClusterTrustBundleValidateBeforeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * delete collection of ClusterTrustBundle + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param _continue 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) + * @param dryRun 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) + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param orphanDependents 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) + * @param propagationPolicy 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. (optional) + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + * @param body (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call deleteCollectionClusterTrustBundleAsync(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = deleteCollectionClusterTrustBundleValidateBeforeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for getAPIResources + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call getAPIResourcesCall(final ApiCallback _callback) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/apis/certificates.k8s.io/v1beta1/"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + final String[] localVarAccepts = { + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call getAPIResourcesValidateBeforeCall(final ApiCallback _callback) throws ApiException { + + + okhttp3.Call localVarCall = getAPIResourcesCall(_callback); + return localVarCall; + + } + + /** + * + * get available resources + * @return V1APIResourceList + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public V1APIResourceList getAPIResources() throws ApiException { + ApiResponse localVarResp = getAPIResourcesWithHttpInfo(); + return localVarResp.getData(); + } + + /** + * + * get available resources + * @return ApiResponse<V1APIResourceList> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public ApiResponse getAPIResourcesWithHttpInfo() throws ApiException { + okhttp3.Call localVarCall = getAPIResourcesValidateBeforeCall(null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * get available resources + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call getAPIResourcesAsync(final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = getAPIResourcesValidateBeforeCall(_callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for listClusterTrustBundle + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param allowWatchBookmarks 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. (optional) + * @param _continue 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) + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call listClusterTrustBundleCall(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/apis/certificates.k8s.io/v1beta1/clustertrustbundles"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + + if (allowWatchBookmarks != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("allowWatchBookmarks", allowWatchBookmarks)); + } + + if (_continue != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); + } + + if (fieldSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); + } + + if (labelSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); + } + + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + } + + if (resourceVersion != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); + } + + if (resourceVersionMatch != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersionMatch", resourceVersionMatch)); + } + + if (sendInitialEvents != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("sendInitialEvents", sendInitialEvents)); + } + + if (timeoutSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); + } + + if (watch != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + final String[] localVarAccepts = { + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch", "application/cbor-seq" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call listClusterTrustBundleValidateBeforeCall(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + + + okhttp3.Call localVarCall = listClusterTrustBundleCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + return localVarCall; + + } + + /** + * + * list or watch objects of kind ClusterTrustBundle + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param allowWatchBookmarks 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. (optional) + * @param _continue 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) + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + * @return V1beta1ClusterTrustBundleList + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public V1beta1ClusterTrustBundleList listClusterTrustBundle(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch) throws ApiException { + ApiResponse localVarResp = listClusterTrustBundleWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + return localVarResp.getData(); + } + + /** + * + * list or watch objects of kind ClusterTrustBundle + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param allowWatchBookmarks 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. (optional) + * @param _continue 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) + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + * @return ApiResponse<V1beta1ClusterTrustBundleList> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public ApiResponse listClusterTrustBundleWithHttpInfo(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch) throws ApiException { + okhttp3.Call localVarCall = listClusterTrustBundleValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * list or watch objects of kind ClusterTrustBundle + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param allowWatchBookmarks 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. (optional) + * @param _continue 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) + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call listClusterTrustBundleAsync(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = listClusterTrustBundleValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for patchClusterTrustBundle + * @param name name of the ClusterTrustBundle (required) + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public okhttp3.Call patchClusterTrustBundleCall(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + Object localVarPostBody = body; + + // create path and map variables + String localVarPath = "/apis/certificates.k8s.io/v1beta1/clustertrustbundles/{name}" + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } + + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + + if (fieldValidation != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); + } + + if (force != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("force", force)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + final String[] localVarAccepts = { + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call patchClusterTrustBundleValidateBeforeCall(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'name' is set + if (name == null) { + throw new ApiException("Missing the required parameter 'name' when calling patchClusterTrustBundle(Async)"); + } + + // verify the required parameter 'body' is set + if (body == null) { + throw new ApiException("Missing the required parameter 'body' when calling patchClusterTrustBundle(Async)"); + } + + + okhttp3.Call localVarCall = patchClusterTrustBundleCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); + return localVarCall; + + } + + /** + * + * partially update the specified ClusterTrustBundle + * @param name name of the ClusterTrustBundle (required) + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) + * @return V1beta1ClusterTrustBundle + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public V1beta1ClusterTrustBundle patchClusterTrustBundle(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force) throws ApiException { + ApiResponse localVarResp = patchClusterTrustBundleWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force); + return localVarResp.getData(); + } + + /** + * + * partially update the specified ClusterTrustBundle + * @param name name of the ClusterTrustBundle (required) + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) + * @return ApiResponse<V1beta1ClusterTrustBundle> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public ApiResponse patchClusterTrustBundleWithHttpInfo(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force) throws ApiException { + okhttp3.Call localVarCall = patchClusterTrustBundleValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * partially update the specified ClusterTrustBundle + * @param name name of the ClusterTrustBundle (required) + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public okhttp3.Call patchClusterTrustBundleAsync(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = patchClusterTrustBundleValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for readClusterTrustBundle + * @param name name of the ClusterTrustBundle (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call readClusterTrustBundleCall(String name, String pretty, final ApiCallback _callback) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/apis/certificates.k8s.io/v1beta1/clustertrustbundles/{name}" + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + final String[] localVarAccepts = { + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call readClusterTrustBundleValidateBeforeCall(String name, String pretty, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'name' is set + if (name == null) { + throw new ApiException("Missing the required parameter 'name' when calling readClusterTrustBundle(Async)"); + } + + + okhttp3.Call localVarCall = readClusterTrustBundleCall(name, pretty, _callback); + return localVarCall; + + } + + /** + * + * read the specified ClusterTrustBundle + * @param name name of the ClusterTrustBundle (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @return V1beta1ClusterTrustBundle + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public V1beta1ClusterTrustBundle readClusterTrustBundle(String name, String pretty) throws ApiException { + ApiResponse localVarResp = readClusterTrustBundleWithHttpInfo(name, pretty); + return localVarResp.getData(); + } + + /** + * + * read the specified ClusterTrustBundle + * @param name name of the ClusterTrustBundle (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @return ApiResponse<V1beta1ClusterTrustBundle> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public ApiResponse readClusterTrustBundleWithHttpInfo(String name, String pretty) throws ApiException { + okhttp3.Call localVarCall = readClusterTrustBundleValidateBeforeCall(name, pretty, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * read the specified ClusterTrustBundle + * @param name name of the ClusterTrustBundle (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call readClusterTrustBundleAsync(String name, String pretty, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = readClusterTrustBundleValidateBeforeCall(name, pretty, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for replaceClusterTrustBundle + * @param name name of the ClusterTrustBundle (required) + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public okhttp3.Call replaceClusterTrustBundleCall(String name, V1beta1ClusterTrustBundle body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + Object localVarPostBody = body; + + // create path and map variables + String localVarPath = "/apis/certificates.k8s.io/v1beta1/clustertrustbundles/{name}" + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } + + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + + if (fieldValidation != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + final String[] localVarAccepts = { + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call replaceClusterTrustBundleValidateBeforeCall(String name, V1beta1ClusterTrustBundle body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'name' is set + if (name == null) { + throw new ApiException("Missing the required parameter 'name' when calling replaceClusterTrustBundle(Async)"); + } + + // verify the required parameter 'body' is set + if (body == null) { + throw new ApiException("Missing the required parameter 'body' when calling replaceClusterTrustBundle(Async)"); + } + + + okhttp3.Call localVarCall = replaceClusterTrustBundleCall(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); + return localVarCall; + + } + + /** + * + * replace the specified ClusterTrustBundle + * @param name name of the ClusterTrustBundle (required) + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @return V1beta1ClusterTrustBundle + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public V1beta1ClusterTrustBundle replaceClusterTrustBundle(String name, V1beta1ClusterTrustBundle body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { + ApiResponse localVarResp = replaceClusterTrustBundleWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation); + return localVarResp.getData(); + } + + /** + * + * replace the specified ClusterTrustBundle + * @param name name of the ClusterTrustBundle (required) + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @return ApiResponse<V1beta1ClusterTrustBundle> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public ApiResponse replaceClusterTrustBundleWithHttpInfo(String name, V1beta1ClusterTrustBundle body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { + okhttp3.Call localVarCall = replaceClusterTrustBundleValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * replace the specified ClusterTrustBundle + * @param name name of the ClusterTrustBundle (required) + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public okhttp3.Call replaceClusterTrustBundleAsync(String name, V1beta1ClusterTrustBundle body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = replaceClusterTrustBundleValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } +} 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 ae4e26bf4d..888e4223a2 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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 e25126f786..2f14d60a72 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -62,7 +62,7 @@ public void setApiClient(ApiClient apiClient) { * Build call for createNamespacedLease * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -107,7 +107,7 @@ public okhttp3.Call createNamespacedLeaseCall(String namespace, V1Lease body, St Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -148,7 +148,7 @@ private okhttp3.Call createNamespacedLeaseValidateBeforeCall(String namespace, V * create a Lease * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -173,7 +173,7 @@ public V1Lease createNamespacedLease(String namespace, V1Lease body, String pret * create a Lease * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -199,7 +199,7 @@ public ApiResponse createNamespacedLeaseWithHttpInfo(String namespace, * create a Lease * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -225,11 +225,12 @@ public okhttp3.Call createNamespacedLeaseAsync(String namespace, V1Lease body, S /** * Build call for deleteCollectionNamespacedLease * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param _continue 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) * @param dryRun 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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @param orphanDependents 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) @@ -249,7 +250,7 @@ public okhttp3.Call createNamespacedLeaseAsync(String namespace, V1Lease body, S 401 Unauthorized - */ - public okhttp3.Call deleteCollectionNamespacedLeaseCall(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + public okhttp3.Call deleteCollectionNamespacedLeaseCall(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; // create path and map variables @@ -278,6 +279,10 @@ public okhttp3.Call deleteCollectionNamespacedLeaseCall(String namespace, String localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); } + if (ignoreStoreReadErrorWithClusterBreakingPotential != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("ignoreStoreReadErrorWithClusterBreakingPotential", ignoreStoreReadErrorWithClusterBreakingPotential)); + } + if (labelSelector != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); } @@ -314,7 +319,7 @@ public okhttp3.Call deleteCollectionNamespacedLeaseCall(String namespace, String Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -332,7 +337,7 @@ public okhttp3.Call deleteCollectionNamespacedLeaseCall(String namespace, String } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteCollectionNamespacedLeaseValidateBeforeCall(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionNamespacedLeaseValidateBeforeCall(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { // verify the required parameter 'namespace' is set if (namespace == null) { @@ -340,7 +345,7 @@ private okhttp3.Call deleteCollectionNamespacedLeaseValidateBeforeCall(String na } - okhttp3.Call localVarCall = deleteCollectionNamespacedLeaseCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + okhttp3.Call localVarCall = deleteCollectionNamespacedLeaseCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); return localVarCall; } @@ -349,11 +354,12 @@ private okhttp3.Call deleteCollectionNamespacedLeaseValidateBeforeCall(String na * * delete collection of Lease * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param _continue 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) * @param dryRun 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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @param orphanDependents 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) @@ -372,8 +378,8 @@ private okhttp3.Call deleteCollectionNamespacedLeaseValidateBeforeCall(String na 401 Unauthorized - */ - public V1Status deleteCollectionNamespacedLease(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body) throws ApiException { - ApiResponse localVarResp = deleteCollectionNamespacedLeaseWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); + public V1Status deleteCollectionNamespacedLease(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body) throws ApiException { + ApiResponse localVarResp = deleteCollectionNamespacedLeaseWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); return localVarResp.getData(); } @@ -381,11 +387,12 @@ public V1Status deleteCollectionNamespacedLease(String namespace, String pretty, * * delete collection of Lease * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param _continue 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) * @param dryRun 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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @param orphanDependents 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) @@ -404,8 +411,8 @@ public V1Status deleteCollectionNamespacedLease(String namespace, String pretty, 401 Unauthorized - */ - public ApiResponse deleteCollectionNamespacedLeaseWithHttpInfo(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body) throws ApiException { - okhttp3.Call localVarCall = deleteCollectionNamespacedLeaseValidateBeforeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, null); + public ApiResponse deleteCollectionNamespacedLeaseWithHttpInfo(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteCollectionNamespacedLeaseValidateBeforeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -414,11 +421,12 @@ public ApiResponse deleteCollectionNamespacedLeaseWithHttpInfo(String * (asynchronously) * delete collection of Lease * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param _continue 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) * @param dryRun 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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @param orphanDependents 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) @@ -438,9 +446,9 @@ public ApiResponse deleteCollectionNamespacedLeaseWithHttpInfo(String 401 Unauthorized - */ - public okhttp3.Call deleteCollectionNamespacedLeaseAsync(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + public okhttp3.Call deleteCollectionNamespacedLeaseAsync(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = deleteCollectionNamespacedLeaseValidateBeforeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + okhttp3.Call localVarCall = deleteCollectionNamespacedLeaseValidateBeforeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -449,9 +457,10 @@ public okhttp3.Call deleteCollectionNamespacedLeaseAsync(String namespace, Strin * Build call for deleteNamespacedLease * @param name name of the Lease (required) * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @param orphanDependents 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) * @param propagationPolicy 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. (optional) * @param body (optional) @@ -466,7 +475,7 @@ public okhttp3.Call deleteCollectionNamespacedLeaseAsync(String namespace, Strin 401 Unauthorized - */ - public okhttp3.Call deleteNamespacedLeaseCall(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + public okhttp3.Call deleteNamespacedLeaseCall(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; // create path and map variables @@ -488,6 +497,10 @@ public okhttp3.Call deleteNamespacedLeaseCall(String name, String namespace, Str localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); } + if (ignoreStoreReadErrorWithClusterBreakingPotential != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("ignoreStoreReadErrorWithClusterBreakingPotential", ignoreStoreReadErrorWithClusterBreakingPotential)); + } + if (orphanDependents != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("orphanDependents", orphanDependents)); } @@ -500,7 +513,7 @@ public okhttp3.Call deleteNamespacedLeaseCall(String name, String namespace, Str Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -518,7 +531,7 @@ public okhttp3.Call deleteNamespacedLeaseCall(String name, String namespace, Str } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteNamespacedLeaseValidateBeforeCall(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteNamespacedLeaseValidateBeforeCall(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -531,7 +544,7 @@ private okhttp3.Call deleteNamespacedLeaseValidateBeforeCall(String name, String } - okhttp3.Call localVarCall = deleteNamespacedLeaseCall(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); + okhttp3.Call localVarCall = deleteNamespacedLeaseCall(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); return localVarCall; } @@ -541,9 +554,10 @@ private okhttp3.Call deleteNamespacedLeaseValidateBeforeCall(String name, String * delete a Lease * @param name name of the Lease (required) * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @param orphanDependents 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) * @param propagationPolicy 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. (optional) * @param body (optional) @@ -557,8 +571,8 @@ private okhttp3.Call deleteNamespacedLeaseValidateBeforeCall(String name, String 401 Unauthorized - */ - public V1Status deleteNamespacedLease(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { - ApiResponse localVarResp = deleteNamespacedLeaseWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body); + public V1Status deleteNamespacedLease(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { + ApiResponse localVarResp = deleteNamespacedLeaseWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body); return localVarResp.getData(); } @@ -567,9 +581,10 @@ public V1Status deleteNamespacedLease(String name, String namespace, String pret * delete a Lease * @param name name of the Lease (required) * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @param orphanDependents 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) * @param propagationPolicy 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. (optional) * @param body (optional) @@ -583,8 +598,8 @@ public V1Status deleteNamespacedLease(String name, String namespace, String pret 401 Unauthorized - */ - public ApiResponse deleteNamespacedLeaseWithHttpInfo(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { - okhttp3.Call localVarCall = deleteNamespacedLeaseValidateBeforeCall(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, null); + public ApiResponse deleteNamespacedLeaseWithHttpInfo(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteNamespacedLeaseValidateBeforeCall(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -594,9 +609,10 @@ public ApiResponse deleteNamespacedLeaseWithHttpInfo(String name, Stri * delete a Lease * @param name name of the Lease (required) * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @param orphanDependents 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) * @param propagationPolicy 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. (optional) * @param body (optional) @@ -611,9 +627,9 @@ public ApiResponse deleteNamespacedLeaseWithHttpInfo(String name, Stri 401 Unauthorized - */ - public okhttp3.Call deleteNamespacedLeaseAsync(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + public okhttp3.Call deleteNamespacedLeaseAsync(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = deleteNamespacedLeaseValidateBeforeCall(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); + okhttp3.Call localVarCall = deleteNamespacedLeaseValidateBeforeCall(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -642,7 +658,7 @@ public okhttp3.Call getAPIResourcesCall(final ApiCallback _callback) throws ApiE Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -730,7 +746,7 @@ public okhttp3.Call getAPIResourcesAsync(final ApiCallback _c * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) @@ -802,7 +818,7 @@ public okhttp3.Call listLeaseForAllNamespacesCall(Boolean allowWatchBookmarks, S Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch", "application/cbor-seq" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -836,7 +852,7 @@ private okhttp3.Call listLeaseForAllNamespacesValidateBeforeCall(Boolean allowWa * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) @@ -864,7 +880,7 @@ public V1LeaseList listLeaseForAllNamespaces(Boolean allowWatchBookmarks, String * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) @@ -893,7 +909,7 @@ public ApiResponse listLeaseForAllNamespacesWithHttpInfo(Boolean al * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) @@ -919,7 +935,7 @@ public okhttp3.Call listLeaseForAllNamespacesAsync(Boolean allowWatchBookmarks, /** * Build call for listNamespacedLease * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param allowWatchBookmarks 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. (optional) * @param _continue 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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) @@ -997,7 +1013,7 @@ public okhttp3.Call listNamespacedLeaseCall(String namespace, String pretty, Boo Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch", "application/cbor-seq" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -1032,7 +1048,7 @@ private okhttp3.Call listNamespacedLeaseValidateBeforeCall(String namespace, Str * * list or watch objects of kind Lease * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param allowWatchBookmarks 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. (optional) * @param _continue 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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) @@ -1061,7 +1077,7 @@ public V1LeaseList listNamespacedLease(String namespace, String pretty, Boolean * * list or watch objects of kind Lease * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param allowWatchBookmarks 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. (optional) * @param _continue 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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) @@ -1091,7 +1107,7 @@ public ApiResponse listNamespacedLeaseWithHttpInfo(String namespace * (asynchronously) * list or watch objects of kind Lease * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param allowWatchBookmarks 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. (optional) * @param _continue 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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) @@ -1124,7 +1140,7 @@ public okhttp3.Call listNamespacedLeaseAsync(String namespace, String pretty, Bo * @param name name of the Lease (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -1174,7 +1190,7 @@ public okhttp3.Call patchNamespacedLeaseCall(String name, String namespace, V1Pa Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -1221,7 +1237,7 @@ private okhttp3.Call patchNamespacedLeaseValidateBeforeCall(String name, String * @param name name of the Lease (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -1247,7 +1263,7 @@ public V1Lease patchNamespacedLease(String name, String namespace, V1Patch body, * @param name name of the Lease (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -1274,7 +1290,7 @@ public ApiResponse patchNamespacedLeaseWithHttpInfo(String name, String * @param name name of the Lease (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -1301,7 +1317,7 @@ public okhttp3.Call patchNamespacedLeaseAsync(String name, String namespace, V1P * Build call for readNamespacedLease * @param name name of the Lease (required) * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -1330,7 +1346,7 @@ public okhttp3.Call readNamespacedLeaseCall(String name, String namespace, Strin Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -1371,7 +1387,7 @@ private okhttp3.Call readNamespacedLeaseValidateBeforeCall(String name, String n * read the specified Lease * @param name name of the Lease (required) * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return V1Lease * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -1391,7 +1407,7 @@ public V1Lease readNamespacedLease(String name, String namespace, String pretty) * read the specified Lease * @param name name of the Lease (required) * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return ApiResponse<V1Lease> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -1412,7 +1428,7 @@ public ApiResponse readNamespacedLeaseWithHttpInfo(String name, String * read the specified Lease * @param name name of the Lease (required) * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object @@ -1435,7 +1451,7 @@ public okhttp3.Call readNamespacedLeaseAsync(String name, String namespace, Stri * @param name name of the Lease (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -1480,7 +1496,7 @@ public okhttp3.Call replaceNamespacedLeaseCall(String name, String namespace, V1 Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -1527,7 +1543,7 @@ private okhttp3.Call replaceNamespacedLeaseValidateBeforeCall(String name, Strin * @param name name of the Lease (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -1552,7 +1568,7 @@ public V1Lease replaceNamespacedLease(String name, String namespace, V1Lease bod * @param name name of the Lease (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -1578,7 +1594,7 @@ public ApiResponse replaceNamespacedLeaseWithHttpInfo(String name, Stri * @param name name of the Lease (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/CoordinationV1alpha2Api.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/CoordinationV1alpha2Api.java new file mode 100644 index 0000000000..b115fb67c7 --- /dev/null +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/CoordinationV1alpha2Api.java @@ -0,0 +1,1619 @@ +/* +Copyright 2025 The Kubernetes Authors. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at +http://www.apache.org/licenses/LICENSE-2.0 +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ +package io.kubernetes.client.openapi.apis; + +import io.kubernetes.client.openapi.ApiCallback; +import io.kubernetes.client.openapi.ApiClient; +import io.kubernetes.client.openapi.ApiException; +import io.kubernetes.client.openapi.ApiResponse; +import io.kubernetes.client.openapi.Configuration; +import io.kubernetes.client.openapi.Pair; +import io.kubernetes.client.openapi.ProgressRequestBody; +import io.kubernetes.client.openapi.ProgressResponseBody; + +import com.google.gson.reflect.TypeToken; + +import java.io.IOException; + + +import io.kubernetes.client.openapi.models.V1APIResourceList; +import io.kubernetes.client.openapi.models.V1DeleteOptions; +import io.kubernetes.client.custom.V1Patch; +import io.kubernetes.client.openapi.models.V1Status; +import io.kubernetes.client.openapi.models.V1alpha2LeaseCandidate; +import io.kubernetes.client.openapi.models.V1alpha2LeaseCandidateList; + +import java.lang.reflect.Type; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +public class CoordinationV1alpha2Api { + private ApiClient localVarApiClient; + + public CoordinationV1alpha2Api() { + this(Configuration.getDefaultApiClient()); + } + + public CoordinationV1alpha2Api(ApiClient apiClient) { + this.localVarApiClient = apiClient; + } + + public ApiClient getApiClient() { + return localVarApiClient; + } + + public void setApiClient(ApiClient apiClient) { + this.localVarApiClient = apiClient; + } + + /** + * Build call for createNamespacedLeaseCandidate + * @param namespace object name and auth scope, such as for teams and projects (required) + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
+ */ + public okhttp3.Call createNamespacedLeaseCandidateCall(String namespace, V1alpha2LeaseCandidate body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + Object localVarPostBody = body; + + // create path and map variables + String localVarPath = "/apis/coordination.k8s.io/v1alpha2/namespaces/{namespace}/leasecandidates" + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } + + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + + if (fieldValidation != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + final String[] localVarAccepts = { + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call createNamespacedLeaseCandidateValidateBeforeCall(String namespace, V1alpha2LeaseCandidate body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'namespace' is set + if (namespace == null) { + throw new ApiException("Missing the required parameter 'namespace' when calling createNamespacedLeaseCandidate(Async)"); + } + + // verify the required parameter 'body' is set + if (body == null) { + throw new ApiException("Missing the required parameter 'body' when calling createNamespacedLeaseCandidate(Async)"); + } + + + okhttp3.Call localVarCall = createNamespacedLeaseCandidateCall(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); + return localVarCall; + + } + + /** + * + * create a LeaseCandidate + * @param namespace object name and auth scope, such as for teams and projects (required) + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @return V1alpha2LeaseCandidate + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
+ */ + public V1alpha2LeaseCandidate createNamespacedLeaseCandidate(String namespace, V1alpha2LeaseCandidate body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { + ApiResponse localVarResp = createNamespacedLeaseCandidateWithHttpInfo(namespace, body, pretty, dryRun, fieldManager, fieldValidation); + return localVarResp.getData(); + } + + /** + * + * create a LeaseCandidate + * @param namespace object name and auth scope, such as for teams and projects (required) + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @return ApiResponse<V1alpha2LeaseCandidate> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
+ */ + public ApiResponse createNamespacedLeaseCandidateWithHttpInfo(String namespace, V1alpha2LeaseCandidate body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { + okhttp3.Call localVarCall = createNamespacedLeaseCandidateValidateBeforeCall(namespace, body, pretty, dryRun, fieldManager, fieldValidation, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * create a LeaseCandidate + * @param namespace object name and auth scope, such as for teams and projects (required) + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
+ */ + public okhttp3.Call createNamespacedLeaseCandidateAsync(String namespace, V1alpha2LeaseCandidate body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = createNamespacedLeaseCandidateValidateBeforeCall(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for deleteCollectionNamespacedLeaseCandidate + * @param namespace object name and auth scope, such as for teams and projects (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param _continue 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) + * @param dryRun 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) + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param orphanDependents 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) + * @param propagationPolicy 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. (optional) + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + * @param body (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call deleteCollectionNamespacedLeaseCandidateCall(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + Object localVarPostBody = body; + + // create path and map variables + String localVarPath = "/apis/coordination.k8s.io/v1alpha2/namespaces/{namespace}/leasecandidates" + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + + if (_continue != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); + } + + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } + + if (fieldSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); + } + + if (gracePeriodSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); + } + + if (ignoreStoreReadErrorWithClusterBreakingPotential != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("ignoreStoreReadErrorWithClusterBreakingPotential", ignoreStoreReadErrorWithClusterBreakingPotential)); + } + + if (labelSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); + } + + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + } + + if (orphanDependents != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("orphanDependents", orphanDependents)); + } + + if (propagationPolicy != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("propagationPolicy", propagationPolicy)); + } + + if (resourceVersion != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); + } + + if (resourceVersionMatch != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersionMatch", resourceVersionMatch)); + } + + if (sendInitialEvents != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("sendInitialEvents", sendInitialEvents)); + } + + if (timeoutSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + final String[] localVarAccepts = { + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call deleteCollectionNamespacedLeaseCandidateValidateBeforeCall(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'namespace' is set + if (namespace == null) { + throw new ApiException("Missing the required parameter 'namespace' when calling deleteCollectionNamespacedLeaseCandidate(Async)"); + } + + + okhttp3.Call localVarCall = deleteCollectionNamespacedLeaseCandidateCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + return localVarCall; + + } + + /** + * + * delete collection of LeaseCandidate + * @param namespace object name and auth scope, such as for teams and projects (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param _continue 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) + * @param dryRun 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) + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param orphanDependents 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) + * @param propagationPolicy 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. (optional) + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + * @param body (optional) + * @return V1Status + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public V1Status deleteCollectionNamespacedLeaseCandidate(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body) throws ApiException { + ApiResponse localVarResp = deleteCollectionNamespacedLeaseCandidateWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); + return localVarResp.getData(); + } + + /** + * + * delete collection of LeaseCandidate + * @param namespace object name and auth scope, such as for teams and projects (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param _continue 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) + * @param dryRun 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) + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param orphanDependents 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) + * @param propagationPolicy 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. (optional) + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + * @param body (optional) + * @return ApiResponse<V1Status> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public ApiResponse deleteCollectionNamespacedLeaseCandidateWithHttpInfo(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteCollectionNamespacedLeaseCandidateValidateBeforeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * delete collection of LeaseCandidate + * @param namespace object name and auth scope, such as for teams and projects (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param _continue 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) + * @param dryRun 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) + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param orphanDependents 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) + * @param propagationPolicy 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. (optional) + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + * @param body (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call deleteCollectionNamespacedLeaseCandidateAsync(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = deleteCollectionNamespacedLeaseCandidateValidateBeforeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for deleteNamespacedLeaseCandidate + * @param name name of the LeaseCandidate (required) + * @param namespace object name and auth scope, such as for teams and projects (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) + * @param orphanDependents 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) + * @param propagationPolicy 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. (optional) + * @param body (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
+ */ + public okhttp3.Call deleteNamespacedLeaseCandidateCall(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + Object localVarPostBody = body; + + // create path and map variables + String localVarPath = "/apis/coordination.k8s.io/v1alpha2/namespaces/{namespace}/leasecandidates/{name}" + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } + + if (gracePeriodSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); + } + + if (ignoreStoreReadErrorWithClusterBreakingPotential != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("ignoreStoreReadErrorWithClusterBreakingPotential", ignoreStoreReadErrorWithClusterBreakingPotential)); + } + + if (orphanDependents != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("orphanDependents", orphanDependents)); + } + + if (propagationPolicy != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("propagationPolicy", propagationPolicy)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + final String[] localVarAccepts = { + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call deleteNamespacedLeaseCandidateValidateBeforeCall(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'name' is set + if (name == null) { + throw new ApiException("Missing the required parameter 'name' when calling deleteNamespacedLeaseCandidate(Async)"); + } + + // verify the required parameter 'namespace' is set + if (namespace == null) { + throw new ApiException("Missing the required parameter 'namespace' when calling deleteNamespacedLeaseCandidate(Async)"); + } + + + okhttp3.Call localVarCall = deleteNamespacedLeaseCandidateCall(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); + return localVarCall; + + } + + /** + * + * delete a LeaseCandidate + * @param name name of the LeaseCandidate (required) + * @param namespace object name and auth scope, such as for teams and projects (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) + * @param orphanDependents 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) + * @param propagationPolicy 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. (optional) + * @param body (optional) + * @return V1Status + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
+ */ + public V1Status deleteNamespacedLeaseCandidate(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { + ApiResponse localVarResp = deleteNamespacedLeaseCandidateWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body); + return localVarResp.getData(); + } + + /** + * + * delete a LeaseCandidate + * @param name name of the LeaseCandidate (required) + * @param namespace object name and auth scope, such as for teams and projects (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) + * @param orphanDependents 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) + * @param propagationPolicy 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. (optional) + * @param body (optional) + * @return ApiResponse<V1Status> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
+ */ + public ApiResponse deleteNamespacedLeaseCandidateWithHttpInfo(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteNamespacedLeaseCandidateValidateBeforeCall(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * delete a LeaseCandidate + * @param name name of the LeaseCandidate (required) + * @param namespace object name and auth scope, such as for teams and projects (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) + * @param orphanDependents 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) + * @param propagationPolicy 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. (optional) + * @param body (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
+ */ + public okhttp3.Call deleteNamespacedLeaseCandidateAsync(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = deleteNamespacedLeaseCandidateValidateBeforeCall(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for getAPIResources + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call getAPIResourcesCall(final ApiCallback _callback) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/apis/coordination.k8s.io/v1alpha2/"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + final String[] localVarAccepts = { + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call getAPIResourcesValidateBeforeCall(final ApiCallback _callback) throws ApiException { + + + okhttp3.Call localVarCall = getAPIResourcesCall(_callback); + return localVarCall; + + } + + /** + * + * get available resources + * @return V1APIResourceList + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public V1APIResourceList getAPIResources() throws ApiException { + ApiResponse localVarResp = getAPIResourcesWithHttpInfo(); + return localVarResp.getData(); + } + + /** + * + * get available resources + * @return ApiResponse<V1APIResourceList> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public ApiResponse getAPIResourcesWithHttpInfo() throws ApiException { + okhttp3.Call localVarCall = getAPIResourcesValidateBeforeCall(null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * get available resources + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call getAPIResourcesAsync(final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = getAPIResourcesValidateBeforeCall(_callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for listLeaseCandidateForAllNamespaces + * @param allowWatchBookmarks 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. (optional) + * @param _continue 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) + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call listLeaseCandidateForAllNamespacesCall(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/apis/coordination.k8s.io/v1alpha2/leasecandidates"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (allowWatchBookmarks != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("allowWatchBookmarks", allowWatchBookmarks)); + } + + if (_continue != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); + } + + if (fieldSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); + } + + if (labelSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); + } + + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + } + + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + + if (resourceVersion != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); + } + + if (resourceVersionMatch != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersionMatch", resourceVersionMatch)); + } + + if (sendInitialEvents != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("sendInitialEvents", sendInitialEvents)); + } + + if (timeoutSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); + } + + if (watch != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + final String[] localVarAccepts = { + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch", "application/cbor-seq" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call listLeaseCandidateForAllNamespacesValidateBeforeCall(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + + + okhttp3.Call localVarCall = listLeaseCandidateForAllNamespacesCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + return localVarCall; + + } + + /** + * + * list or watch objects of kind LeaseCandidate + * @param allowWatchBookmarks 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. (optional) + * @param _continue 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) + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + * @return V1alpha2LeaseCandidateList + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public V1alpha2LeaseCandidateList listLeaseCandidateForAllNamespaces(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch) throws ApiException { + ApiResponse localVarResp = listLeaseCandidateForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + return localVarResp.getData(); + } + + /** + * + * list or watch objects of kind LeaseCandidate + * @param allowWatchBookmarks 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. (optional) + * @param _continue 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) + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + * @return ApiResponse<V1alpha2LeaseCandidateList> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public ApiResponse listLeaseCandidateForAllNamespacesWithHttpInfo(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch) throws ApiException { + okhttp3.Call localVarCall = listLeaseCandidateForAllNamespacesValidateBeforeCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * list or watch objects of kind LeaseCandidate + * @param allowWatchBookmarks 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. (optional) + * @param _continue 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) + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call listLeaseCandidateForAllNamespacesAsync(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = listLeaseCandidateForAllNamespacesValidateBeforeCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for listNamespacedLeaseCandidate + * @param namespace object name and auth scope, such as for teams and projects (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param allowWatchBookmarks 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. (optional) + * @param _continue 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) + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call listNamespacedLeaseCandidateCall(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/apis/coordination.k8s.io/v1alpha2/namespaces/{namespace}/leasecandidates" + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + + if (allowWatchBookmarks != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("allowWatchBookmarks", allowWatchBookmarks)); + } + + if (_continue != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); + } + + if (fieldSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); + } + + if (labelSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); + } + + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + } + + if (resourceVersion != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); + } + + if (resourceVersionMatch != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersionMatch", resourceVersionMatch)); + } + + if (sendInitialEvents != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("sendInitialEvents", sendInitialEvents)); + } + + if (timeoutSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); + } + + if (watch != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + final String[] localVarAccepts = { + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch", "application/cbor-seq" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call listNamespacedLeaseCandidateValidateBeforeCall(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'namespace' is set + if (namespace == null) { + throw new ApiException("Missing the required parameter 'namespace' when calling listNamespacedLeaseCandidate(Async)"); + } + + + okhttp3.Call localVarCall = listNamespacedLeaseCandidateCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + return localVarCall; + + } + + /** + * + * list or watch objects of kind LeaseCandidate + * @param namespace object name and auth scope, such as for teams and projects (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param allowWatchBookmarks 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. (optional) + * @param _continue 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) + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + * @return V1alpha2LeaseCandidateList + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public V1alpha2LeaseCandidateList listNamespacedLeaseCandidate(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch) throws ApiException { + ApiResponse localVarResp = listNamespacedLeaseCandidateWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + return localVarResp.getData(); + } + + /** + * + * list or watch objects of kind LeaseCandidate + * @param namespace object name and auth scope, such as for teams and projects (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param allowWatchBookmarks 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. (optional) + * @param _continue 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) + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + * @return ApiResponse<V1alpha2LeaseCandidateList> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public ApiResponse listNamespacedLeaseCandidateWithHttpInfo(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch) throws ApiException { + okhttp3.Call localVarCall = listNamespacedLeaseCandidateValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * list or watch objects of kind LeaseCandidate + * @param namespace object name and auth scope, such as for teams and projects (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param allowWatchBookmarks 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. (optional) + * @param _continue 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) + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call listNamespacedLeaseCandidateAsync(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = listNamespacedLeaseCandidateValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for patchNamespacedLeaseCandidate + * @param name name of the LeaseCandidate (required) + * @param namespace object name and auth scope, such as for teams and projects (required) + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public okhttp3.Call patchNamespacedLeaseCandidateCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + Object localVarPostBody = body; + + // create path and map variables + String localVarPath = "/apis/coordination.k8s.io/v1alpha2/namespaces/{namespace}/leasecandidates/{name}" + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } + + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + + if (fieldValidation != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); + } + + if (force != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("force", force)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + final String[] localVarAccepts = { + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call patchNamespacedLeaseCandidateValidateBeforeCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'name' is set + if (name == null) { + throw new ApiException("Missing the required parameter 'name' when calling patchNamespacedLeaseCandidate(Async)"); + } + + // verify the required parameter 'namespace' is set + if (namespace == null) { + throw new ApiException("Missing the required parameter 'namespace' when calling patchNamespacedLeaseCandidate(Async)"); + } + + // verify the required parameter 'body' is set + if (body == null) { + throw new ApiException("Missing the required parameter 'body' when calling patchNamespacedLeaseCandidate(Async)"); + } + + + okhttp3.Call localVarCall = patchNamespacedLeaseCandidateCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); + return localVarCall; + + } + + /** + * + * partially update the specified LeaseCandidate + * @param name name of the LeaseCandidate (required) + * @param namespace object name and auth scope, such as for teams and projects (required) + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) + * @return V1alpha2LeaseCandidate + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public V1alpha2LeaseCandidate patchNamespacedLeaseCandidate(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force) throws ApiException { + ApiResponse localVarResp = patchNamespacedLeaseCandidateWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force); + return localVarResp.getData(); + } + + /** + * + * partially update the specified LeaseCandidate + * @param name name of the LeaseCandidate (required) + * @param namespace object name and auth scope, such as for teams and projects (required) + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) + * @return ApiResponse<V1alpha2LeaseCandidate> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public ApiResponse patchNamespacedLeaseCandidateWithHttpInfo(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force) throws ApiException { + okhttp3.Call localVarCall = patchNamespacedLeaseCandidateValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * partially update the specified LeaseCandidate + * @param name name of the LeaseCandidate (required) + * @param namespace object name and auth scope, such as for teams and projects (required) + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public okhttp3.Call patchNamespacedLeaseCandidateAsync(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = patchNamespacedLeaseCandidateValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for readNamespacedLeaseCandidate + * @param name name of the LeaseCandidate (required) + * @param namespace object name and auth scope, such as for teams and projects (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call readNamespacedLeaseCandidateCall(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/apis/coordination.k8s.io/v1alpha2/namespaces/{namespace}/leasecandidates/{name}" + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + final String[] localVarAccepts = { + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call readNamespacedLeaseCandidateValidateBeforeCall(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'name' is set + if (name == null) { + throw new ApiException("Missing the required parameter 'name' when calling readNamespacedLeaseCandidate(Async)"); + } + + // verify the required parameter 'namespace' is set + if (namespace == null) { + throw new ApiException("Missing the required parameter 'namespace' when calling readNamespacedLeaseCandidate(Async)"); + } + + + okhttp3.Call localVarCall = readNamespacedLeaseCandidateCall(name, namespace, pretty, _callback); + return localVarCall; + + } + + /** + * + * read the specified LeaseCandidate + * @param name name of the LeaseCandidate (required) + * @param namespace object name and auth scope, such as for teams and projects (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @return V1alpha2LeaseCandidate + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public V1alpha2LeaseCandidate readNamespacedLeaseCandidate(String name, String namespace, String pretty) throws ApiException { + ApiResponse localVarResp = readNamespacedLeaseCandidateWithHttpInfo(name, namespace, pretty); + return localVarResp.getData(); + } + + /** + * + * read the specified LeaseCandidate + * @param name name of the LeaseCandidate (required) + * @param namespace object name and auth scope, such as for teams and projects (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @return ApiResponse<V1alpha2LeaseCandidate> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public ApiResponse readNamespacedLeaseCandidateWithHttpInfo(String name, String namespace, String pretty) throws ApiException { + okhttp3.Call localVarCall = readNamespacedLeaseCandidateValidateBeforeCall(name, namespace, pretty, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * read the specified LeaseCandidate + * @param name name of the LeaseCandidate (required) + * @param namespace object name and auth scope, such as for teams and projects (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call readNamespacedLeaseCandidateAsync(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = readNamespacedLeaseCandidateValidateBeforeCall(name, namespace, pretty, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for replaceNamespacedLeaseCandidate + * @param name name of the LeaseCandidate (required) + * @param namespace object name and auth scope, such as for teams and projects (required) + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public okhttp3.Call replaceNamespacedLeaseCandidateCall(String name, String namespace, V1alpha2LeaseCandidate body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + Object localVarPostBody = body; + + // create path and map variables + String localVarPath = "/apis/coordination.k8s.io/v1alpha2/namespaces/{namespace}/leasecandidates/{name}" + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } + + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + + if (fieldValidation != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + final String[] localVarAccepts = { + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call replaceNamespacedLeaseCandidateValidateBeforeCall(String name, String namespace, V1alpha2LeaseCandidate body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'name' is set + if (name == null) { + throw new ApiException("Missing the required parameter 'name' when calling replaceNamespacedLeaseCandidate(Async)"); + } + + // verify the required parameter 'namespace' is set + if (namespace == null) { + throw new ApiException("Missing the required parameter 'namespace' when calling replaceNamespacedLeaseCandidate(Async)"); + } + + // verify the required parameter 'body' is set + if (body == null) { + throw new ApiException("Missing the required parameter 'body' when calling replaceNamespacedLeaseCandidate(Async)"); + } + + + okhttp3.Call localVarCall = replaceNamespacedLeaseCandidateCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); + return localVarCall; + + } + + /** + * + * replace the specified LeaseCandidate + * @param name name of the LeaseCandidate (required) + * @param namespace object name and auth scope, such as for teams and projects (required) + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @return V1alpha2LeaseCandidate + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public V1alpha2LeaseCandidate replaceNamespacedLeaseCandidate(String name, String namespace, V1alpha2LeaseCandidate body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { + ApiResponse localVarResp = replaceNamespacedLeaseCandidateWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation); + return localVarResp.getData(); + } + + /** + * + * replace the specified LeaseCandidate + * @param name name of the LeaseCandidate (required) + * @param namespace object name and auth scope, such as for teams and projects (required) + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @return ApiResponse<V1alpha2LeaseCandidate> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public ApiResponse replaceNamespacedLeaseCandidateWithHttpInfo(String name, String namespace, V1alpha2LeaseCandidate body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { + okhttp3.Call localVarCall = replaceNamespacedLeaseCandidateValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * replace the specified LeaseCandidate + * @param name name of the LeaseCandidate (required) + * @param namespace object name and auth scope, such as for teams and projects (required) + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public okhttp3.Call replaceNamespacedLeaseCandidateAsync(String name, String namespace, V1alpha2LeaseCandidate body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = replaceNamespacedLeaseCandidateValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } +} diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/CoordinationV1beta1Api.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/CoordinationV1beta1Api.java new file mode 100644 index 0000000000..dc0fc47876 --- /dev/null +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/CoordinationV1beta1Api.java @@ -0,0 +1,1619 @@ +/* +Copyright 2025 The Kubernetes Authors. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at +http://www.apache.org/licenses/LICENSE-2.0 +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ +package io.kubernetes.client.openapi.apis; + +import io.kubernetes.client.openapi.ApiCallback; +import io.kubernetes.client.openapi.ApiClient; +import io.kubernetes.client.openapi.ApiException; +import io.kubernetes.client.openapi.ApiResponse; +import io.kubernetes.client.openapi.Configuration; +import io.kubernetes.client.openapi.Pair; +import io.kubernetes.client.openapi.ProgressRequestBody; +import io.kubernetes.client.openapi.ProgressResponseBody; + +import com.google.gson.reflect.TypeToken; + +import java.io.IOException; + + +import io.kubernetes.client.openapi.models.V1APIResourceList; +import io.kubernetes.client.openapi.models.V1DeleteOptions; +import io.kubernetes.client.custom.V1Patch; +import io.kubernetes.client.openapi.models.V1Status; +import io.kubernetes.client.openapi.models.V1beta1LeaseCandidate; +import io.kubernetes.client.openapi.models.V1beta1LeaseCandidateList; + +import java.lang.reflect.Type; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +public class CoordinationV1beta1Api { + private ApiClient localVarApiClient; + + public CoordinationV1beta1Api() { + this(Configuration.getDefaultApiClient()); + } + + public CoordinationV1beta1Api(ApiClient apiClient) { + this.localVarApiClient = apiClient; + } + + public ApiClient getApiClient() { + return localVarApiClient; + } + + public void setApiClient(ApiClient apiClient) { + this.localVarApiClient = apiClient; + } + + /** + * Build call for createNamespacedLeaseCandidate + * @param namespace object name and auth scope, such as for teams and projects (required) + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
+ */ + public okhttp3.Call createNamespacedLeaseCandidateCall(String namespace, V1beta1LeaseCandidate body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + Object localVarPostBody = body; + + // create path and map variables + String localVarPath = "/apis/coordination.k8s.io/v1beta1/namespaces/{namespace}/leasecandidates" + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } + + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + + if (fieldValidation != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + final String[] localVarAccepts = { + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call createNamespacedLeaseCandidateValidateBeforeCall(String namespace, V1beta1LeaseCandidate body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'namespace' is set + if (namespace == null) { + throw new ApiException("Missing the required parameter 'namespace' when calling createNamespacedLeaseCandidate(Async)"); + } + + // verify the required parameter 'body' is set + if (body == null) { + throw new ApiException("Missing the required parameter 'body' when calling createNamespacedLeaseCandidate(Async)"); + } + + + okhttp3.Call localVarCall = createNamespacedLeaseCandidateCall(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); + return localVarCall; + + } + + /** + * + * create a LeaseCandidate + * @param namespace object name and auth scope, such as for teams and projects (required) + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @return V1beta1LeaseCandidate + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
+ */ + public V1beta1LeaseCandidate createNamespacedLeaseCandidate(String namespace, V1beta1LeaseCandidate body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { + ApiResponse localVarResp = createNamespacedLeaseCandidateWithHttpInfo(namespace, body, pretty, dryRun, fieldManager, fieldValidation); + return localVarResp.getData(); + } + + /** + * + * create a LeaseCandidate + * @param namespace object name and auth scope, such as for teams and projects (required) + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @return ApiResponse<V1beta1LeaseCandidate> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
+ */ + public ApiResponse createNamespacedLeaseCandidateWithHttpInfo(String namespace, V1beta1LeaseCandidate body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { + okhttp3.Call localVarCall = createNamespacedLeaseCandidateValidateBeforeCall(namespace, body, pretty, dryRun, fieldManager, fieldValidation, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * create a LeaseCandidate + * @param namespace object name and auth scope, such as for teams and projects (required) + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
+ */ + public okhttp3.Call createNamespacedLeaseCandidateAsync(String namespace, V1beta1LeaseCandidate body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = createNamespacedLeaseCandidateValidateBeforeCall(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for deleteCollectionNamespacedLeaseCandidate + * @param namespace object name and auth scope, such as for teams and projects (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param _continue 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) + * @param dryRun 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) + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param orphanDependents 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) + * @param propagationPolicy 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. (optional) + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + * @param body (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call deleteCollectionNamespacedLeaseCandidateCall(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + Object localVarPostBody = body; + + // create path and map variables + String localVarPath = "/apis/coordination.k8s.io/v1beta1/namespaces/{namespace}/leasecandidates" + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + + if (_continue != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); + } + + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } + + if (fieldSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); + } + + if (gracePeriodSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); + } + + if (ignoreStoreReadErrorWithClusterBreakingPotential != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("ignoreStoreReadErrorWithClusterBreakingPotential", ignoreStoreReadErrorWithClusterBreakingPotential)); + } + + if (labelSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); + } + + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + } + + if (orphanDependents != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("orphanDependents", orphanDependents)); + } + + if (propagationPolicy != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("propagationPolicy", propagationPolicy)); + } + + if (resourceVersion != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); + } + + if (resourceVersionMatch != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersionMatch", resourceVersionMatch)); + } + + if (sendInitialEvents != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("sendInitialEvents", sendInitialEvents)); + } + + if (timeoutSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + final String[] localVarAccepts = { + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call deleteCollectionNamespacedLeaseCandidateValidateBeforeCall(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'namespace' is set + if (namespace == null) { + throw new ApiException("Missing the required parameter 'namespace' when calling deleteCollectionNamespacedLeaseCandidate(Async)"); + } + + + okhttp3.Call localVarCall = deleteCollectionNamespacedLeaseCandidateCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + return localVarCall; + + } + + /** + * + * delete collection of LeaseCandidate + * @param namespace object name and auth scope, such as for teams and projects (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param _continue 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) + * @param dryRun 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) + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param orphanDependents 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) + * @param propagationPolicy 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. (optional) + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + * @param body (optional) + * @return V1Status + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public V1Status deleteCollectionNamespacedLeaseCandidate(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body) throws ApiException { + ApiResponse localVarResp = deleteCollectionNamespacedLeaseCandidateWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); + return localVarResp.getData(); + } + + /** + * + * delete collection of LeaseCandidate + * @param namespace object name and auth scope, such as for teams and projects (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param _continue 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) + * @param dryRun 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) + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param orphanDependents 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) + * @param propagationPolicy 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. (optional) + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + * @param body (optional) + * @return ApiResponse<V1Status> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public ApiResponse deleteCollectionNamespacedLeaseCandidateWithHttpInfo(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteCollectionNamespacedLeaseCandidateValidateBeforeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * delete collection of LeaseCandidate + * @param namespace object name and auth scope, such as for teams and projects (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param _continue 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) + * @param dryRun 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) + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param orphanDependents 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) + * @param propagationPolicy 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. (optional) + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + * @param body (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call deleteCollectionNamespacedLeaseCandidateAsync(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = deleteCollectionNamespacedLeaseCandidateValidateBeforeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for deleteNamespacedLeaseCandidate + * @param name name of the LeaseCandidate (required) + * @param namespace object name and auth scope, such as for teams and projects (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) + * @param orphanDependents 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) + * @param propagationPolicy 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. (optional) + * @param body (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
+ */ + public okhttp3.Call deleteNamespacedLeaseCandidateCall(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + Object localVarPostBody = body; + + // create path and map variables + String localVarPath = "/apis/coordination.k8s.io/v1beta1/namespaces/{namespace}/leasecandidates/{name}" + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } + + if (gracePeriodSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); + } + + if (ignoreStoreReadErrorWithClusterBreakingPotential != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("ignoreStoreReadErrorWithClusterBreakingPotential", ignoreStoreReadErrorWithClusterBreakingPotential)); + } + + if (orphanDependents != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("orphanDependents", orphanDependents)); + } + + if (propagationPolicy != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("propagationPolicy", propagationPolicy)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + final String[] localVarAccepts = { + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call deleteNamespacedLeaseCandidateValidateBeforeCall(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'name' is set + if (name == null) { + throw new ApiException("Missing the required parameter 'name' when calling deleteNamespacedLeaseCandidate(Async)"); + } + + // verify the required parameter 'namespace' is set + if (namespace == null) { + throw new ApiException("Missing the required parameter 'namespace' when calling deleteNamespacedLeaseCandidate(Async)"); + } + + + okhttp3.Call localVarCall = deleteNamespacedLeaseCandidateCall(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); + return localVarCall; + + } + + /** + * + * delete a LeaseCandidate + * @param name name of the LeaseCandidate (required) + * @param namespace object name and auth scope, such as for teams and projects (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) + * @param orphanDependents 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) + * @param propagationPolicy 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. (optional) + * @param body (optional) + * @return V1Status + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
+ */ + public V1Status deleteNamespacedLeaseCandidate(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { + ApiResponse localVarResp = deleteNamespacedLeaseCandidateWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body); + return localVarResp.getData(); + } + + /** + * + * delete a LeaseCandidate + * @param name name of the LeaseCandidate (required) + * @param namespace object name and auth scope, such as for teams and projects (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) + * @param orphanDependents 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) + * @param propagationPolicy 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. (optional) + * @param body (optional) + * @return ApiResponse<V1Status> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
+ */ + public ApiResponse deleteNamespacedLeaseCandidateWithHttpInfo(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteNamespacedLeaseCandidateValidateBeforeCall(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * delete a LeaseCandidate + * @param name name of the LeaseCandidate (required) + * @param namespace object name and auth scope, such as for teams and projects (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) + * @param orphanDependents 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) + * @param propagationPolicy 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. (optional) + * @param body (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
+ */ + public okhttp3.Call deleteNamespacedLeaseCandidateAsync(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = deleteNamespacedLeaseCandidateValidateBeforeCall(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for getAPIResources + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call getAPIResourcesCall(final ApiCallback _callback) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/apis/coordination.k8s.io/v1beta1/"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + final String[] localVarAccepts = { + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call getAPIResourcesValidateBeforeCall(final ApiCallback _callback) throws ApiException { + + + okhttp3.Call localVarCall = getAPIResourcesCall(_callback); + return localVarCall; + + } + + /** + * + * get available resources + * @return V1APIResourceList + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public V1APIResourceList getAPIResources() throws ApiException { + ApiResponse localVarResp = getAPIResourcesWithHttpInfo(); + return localVarResp.getData(); + } + + /** + * + * get available resources + * @return ApiResponse<V1APIResourceList> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public ApiResponse getAPIResourcesWithHttpInfo() throws ApiException { + okhttp3.Call localVarCall = getAPIResourcesValidateBeforeCall(null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * get available resources + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call getAPIResourcesAsync(final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = getAPIResourcesValidateBeforeCall(_callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for listLeaseCandidateForAllNamespaces + * @param allowWatchBookmarks 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. (optional) + * @param _continue 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) + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call listLeaseCandidateForAllNamespacesCall(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/apis/coordination.k8s.io/v1beta1/leasecandidates"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (allowWatchBookmarks != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("allowWatchBookmarks", allowWatchBookmarks)); + } + + if (_continue != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); + } + + if (fieldSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); + } + + if (labelSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); + } + + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + } + + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + + if (resourceVersion != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); + } + + if (resourceVersionMatch != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersionMatch", resourceVersionMatch)); + } + + if (sendInitialEvents != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("sendInitialEvents", sendInitialEvents)); + } + + if (timeoutSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); + } + + if (watch != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + final String[] localVarAccepts = { + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch", "application/cbor-seq" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call listLeaseCandidateForAllNamespacesValidateBeforeCall(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + + + okhttp3.Call localVarCall = listLeaseCandidateForAllNamespacesCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + return localVarCall; + + } + + /** + * + * list or watch objects of kind LeaseCandidate + * @param allowWatchBookmarks 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. (optional) + * @param _continue 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) + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + * @return V1beta1LeaseCandidateList + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public V1beta1LeaseCandidateList listLeaseCandidateForAllNamespaces(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch) throws ApiException { + ApiResponse localVarResp = listLeaseCandidateForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + return localVarResp.getData(); + } + + /** + * + * list or watch objects of kind LeaseCandidate + * @param allowWatchBookmarks 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. (optional) + * @param _continue 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) + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + * @return ApiResponse<V1beta1LeaseCandidateList> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public ApiResponse listLeaseCandidateForAllNamespacesWithHttpInfo(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch) throws ApiException { + okhttp3.Call localVarCall = listLeaseCandidateForAllNamespacesValidateBeforeCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * list or watch objects of kind LeaseCandidate + * @param allowWatchBookmarks 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. (optional) + * @param _continue 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) + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call listLeaseCandidateForAllNamespacesAsync(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = listLeaseCandidateForAllNamespacesValidateBeforeCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for listNamespacedLeaseCandidate + * @param namespace object name and auth scope, such as for teams and projects (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param allowWatchBookmarks 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. (optional) + * @param _continue 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) + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call listNamespacedLeaseCandidateCall(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/apis/coordination.k8s.io/v1beta1/namespaces/{namespace}/leasecandidates" + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + + if (allowWatchBookmarks != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("allowWatchBookmarks", allowWatchBookmarks)); + } + + if (_continue != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); + } + + if (fieldSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); + } + + if (labelSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); + } + + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + } + + if (resourceVersion != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); + } + + if (resourceVersionMatch != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersionMatch", resourceVersionMatch)); + } + + if (sendInitialEvents != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("sendInitialEvents", sendInitialEvents)); + } + + if (timeoutSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); + } + + if (watch != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + final String[] localVarAccepts = { + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch", "application/cbor-seq" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call listNamespacedLeaseCandidateValidateBeforeCall(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'namespace' is set + if (namespace == null) { + throw new ApiException("Missing the required parameter 'namespace' when calling listNamespacedLeaseCandidate(Async)"); + } + + + okhttp3.Call localVarCall = listNamespacedLeaseCandidateCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + return localVarCall; + + } + + /** + * + * list or watch objects of kind LeaseCandidate + * @param namespace object name and auth scope, such as for teams and projects (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param allowWatchBookmarks 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. (optional) + * @param _continue 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) + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + * @return V1beta1LeaseCandidateList + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public V1beta1LeaseCandidateList listNamespacedLeaseCandidate(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch) throws ApiException { + ApiResponse localVarResp = listNamespacedLeaseCandidateWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + return localVarResp.getData(); + } + + /** + * + * list or watch objects of kind LeaseCandidate + * @param namespace object name and auth scope, such as for teams and projects (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param allowWatchBookmarks 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. (optional) + * @param _continue 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) + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + * @return ApiResponse<V1beta1LeaseCandidateList> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public ApiResponse listNamespacedLeaseCandidateWithHttpInfo(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch) throws ApiException { + okhttp3.Call localVarCall = listNamespacedLeaseCandidateValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * list or watch objects of kind LeaseCandidate + * @param namespace object name and auth scope, such as for teams and projects (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param allowWatchBookmarks 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. (optional) + * @param _continue 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) + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call listNamespacedLeaseCandidateAsync(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = listNamespacedLeaseCandidateValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for patchNamespacedLeaseCandidate + * @param name name of the LeaseCandidate (required) + * @param namespace object name and auth scope, such as for teams and projects (required) + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public okhttp3.Call patchNamespacedLeaseCandidateCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + Object localVarPostBody = body; + + // create path and map variables + String localVarPath = "/apis/coordination.k8s.io/v1beta1/namespaces/{namespace}/leasecandidates/{name}" + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } + + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + + if (fieldValidation != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); + } + + if (force != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("force", force)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + final String[] localVarAccepts = { + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call patchNamespacedLeaseCandidateValidateBeforeCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'name' is set + if (name == null) { + throw new ApiException("Missing the required parameter 'name' when calling patchNamespacedLeaseCandidate(Async)"); + } + + // verify the required parameter 'namespace' is set + if (namespace == null) { + throw new ApiException("Missing the required parameter 'namespace' when calling patchNamespacedLeaseCandidate(Async)"); + } + + // verify the required parameter 'body' is set + if (body == null) { + throw new ApiException("Missing the required parameter 'body' when calling patchNamespacedLeaseCandidate(Async)"); + } + + + okhttp3.Call localVarCall = patchNamespacedLeaseCandidateCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); + return localVarCall; + + } + + /** + * + * partially update the specified LeaseCandidate + * @param name name of the LeaseCandidate (required) + * @param namespace object name and auth scope, such as for teams and projects (required) + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) + * @return V1beta1LeaseCandidate + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public V1beta1LeaseCandidate patchNamespacedLeaseCandidate(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force) throws ApiException { + ApiResponse localVarResp = patchNamespacedLeaseCandidateWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force); + return localVarResp.getData(); + } + + /** + * + * partially update the specified LeaseCandidate + * @param name name of the LeaseCandidate (required) + * @param namespace object name and auth scope, such as for teams and projects (required) + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) + * @return ApiResponse<V1beta1LeaseCandidate> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public ApiResponse patchNamespacedLeaseCandidateWithHttpInfo(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force) throws ApiException { + okhttp3.Call localVarCall = patchNamespacedLeaseCandidateValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * partially update the specified LeaseCandidate + * @param name name of the LeaseCandidate (required) + * @param namespace object name and auth scope, such as for teams and projects (required) + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public okhttp3.Call patchNamespacedLeaseCandidateAsync(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = patchNamespacedLeaseCandidateValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for readNamespacedLeaseCandidate + * @param name name of the LeaseCandidate (required) + * @param namespace object name and auth scope, such as for teams and projects (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call readNamespacedLeaseCandidateCall(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/apis/coordination.k8s.io/v1beta1/namespaces/{namespace}/leasecandidates/{name}" + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + final String[] localVarAccepts = { + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call readNamespacedLeaseCandidateValidateBeforeCall(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'name' is set + if (name == null) { + throw new ApiException("Missing the required parameter 'name' when calling readNamespacedLeaseCandidate(Async)"); + } + + // verify the required parameter 'namespace' is set + if (namespace == null) { + throw new ApiException("Missing the required parameter 'namespace' when calling readNamespacedLeaseCandidate(Async)"); + } + + + okhttp3.Call localVarCall = readNamespacedLeaseCandidateCall(name, namespace, pretty, _callback); + return localVarCall; + + } + + /** + * + * read the specified LeaseCandidate + * @param name name of the LeaseCandidate (required) + * @param namespace object name and auth scope, such as for teams and projects (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @return V1beta1LeaseCandidate + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public V1beta1LeaseCandidate readNamespacedLeaseCandidate(String name, String namespace, String pretty) throws ApiException { + ApiResponse localVarResp = readNamespacedLeaseCandidateWithHttpInfo(name, namespace, pretty); + return localVarResp.getData(); + } + + /** + * + * read the specified LeaseCandidate + * @param name name of the LeaseCandidate (required) + * @param namespace object name and auth scope, such as for teams and projects (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @return ApiResponse<V1beta1LeaseCandidate> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public ApiResponse readNamespacedLeaseCandidateWithHttpInfo(String name, String namespace, String pretty) throws ApiException { + okhttp3.Call localVarCall = readNamespacedLeaseCandidateValidateBeforeCall(name, namespace, pretty, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * read the specified LeaseCandidate + * @param name name of the LeaseCandidate (required) + * @param namespace object name and auth scope, such as for teams and projects (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call readNamespacedLeaseCandidateAsync(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = readNamespacedLeaseCandidateValidateBeforeCall(name, namespace, pretty, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for replaceNamespacedLeaseCandidate + * @param name name of the LeaseCandidate (required) + * @param namespace object name and auth scope, such as for teams and projects (required) + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public okhttp3.Call replaceNamespacedLeaseCandidateCall(String name, String namespace, V1beta1LeaseCandidate body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + Object localVarPostBody = body; + + // create path and map variables + String localVarPath = "/apis/coordination.k8s.io/v1beta1/namespaces/{namespace}/leasecandidates/{name}" + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } + + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + + if (fieldValidation != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + final String[] localVarAccepts = { + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call replaceNamespacedLeaseCandidateValidateBeforeCall(String name, String namespace, V1beta1LeaseCandidate body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'name' is set + if (name == null) { + throw new ApiException("Missing the required parameter 'name' when calling replaceNamespacedLeaseCandidate(Async)"); + } + + // verify the required parameter 'namespace' is set + if (namespace == null) { + throw new ApiException("Missing the required parameter 'namespace' when calling replaceNamespacedLeaseCandidate(Async)"); + } + + // verify the required parameter 'body' is set + if (body == null) { + throw new ApiException("Missing the required parameter 'body' when calling replaceNamespacedLeaseCandidate(Async)"); + } + + + okhttp3.Call localVarCall = replaceNamespacedLeaseCandidateCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); + return localVarCall; + + } + + /** + * + * replace the specified LeaseCandidate + * @param name name of the LeaseCandidate (required) + * @param namespace object name and auth scope, such as for teams and projects (required) + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @return V1beta1LeaseCandidate + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public V1beta1LeaseCandidate replaceNamespacedLeaseCandidate(String name, String namespace, V1beta1LeaseCandidate body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { + ApiResponse localVarResp = replaceNamespacedLeaseCandidateWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation); + return localVarResp.getData(); + } + + /** + * + * replace the specified LeaseCandidate + * @param name name of the LeaseCandidate (required) + * @param namespace object name and auth scope, such as for teams and projects (required) + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @return ApiResponse<V1beta1LeaseCandidate> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public ApiResponse replaceNamespacedLeaseCandidateWithHttpInfo(String name, String namespace, V1beta1LeaseCandidate body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { + okhttp3.Call localVarCall = replaceNamespacedLeaseCandidateValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * replace the specified LeaseCandidate + * @param name name of the LeaseCandidate (required) + * @param namespace object name and auth scope, such as for teams and projects (required) + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public okhttp3.Call replaceNamespacedLeaseCandidateAsync(String name, String namespace, V1beta1LeaseCandidate body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = replaceNamespacedLeaseCandidateValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } +} 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 0767f0a8e7..64b5d4bd19 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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 c802918001..0c1d93e7b2 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -6693,7 +6693,7 @@ public okhttp3.Call connectPutNodeProxyWithPathAsync(String name, String path, S /** * Build call for createNamespace * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -6737,7 +6737,7 @@ public okhttp3.Call createNamespaceCall(V1Namespace body, String pretty, String Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -6772,7 +6772,7 @@ private okhttp3.Call createNamespaceValidateBeforeCall(V1Namespace body, String * * create a Namespace * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -6796,7 +6796,7 @@ public V1Namespace createNamespace(V1Namespace body, String pretty, String dryRu * * create a Namespace * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -6821,7 +6821,7 @@ public ApiResponse createNamespaceWithHttpInfo(V1Namespace body, St * (asynchronously) * create a Namespace * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -6851,7 +6851,7 @@ public okhttp3.Call createNamespaceAsync(V1Namespace body, String pretty, String * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -6893,7 +6893,7 @@ public okhttp3.Call createNamespacedBindingCall(String namespace, V1Binding body Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -6937,7 +6937,7 @@ private okhttp3.Call createNamespacedBindingValidateBeforeCall(String namespace, * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return V1Binding * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -6962,7 +6962,7 @@ public V1Binding createNamespacedBinding(String namespace, V1Binding body, Strin * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return ApiResponse<V1Binding> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -6988,7 +6988,7 @@ public ApiResponse createNamespacedBindingWithHttpInfo(String namespa * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object @@ -7012,7 +7012,7 @@ public okhttp3.Call createNamespacedBindingAsync(String namespace, V1Binding bod * Build call for createNamespacedConfigMap * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -7057,7 +7057,7 @@ public okhttp3.Call createNamespacedConfigMapCall(String namespace, V1ConfigMap Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -7098,7 +7098,7 @@ private okhttp3.Call createNamespacedConfigMapValidateBeforeCall(String namespac * create a ConfigMap * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -7123,7 +7123,7 @@ public V1ConfigMap createNamespacedConfigMap(String namespace, V1ConfigMap body, * create a ConfigMap * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -7149,7 +7149,7 @@ public ApiResponse createNamespacedConfigMapWithHttpInfo(String nam * create a ConfigMap * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -7176,7 +7176,7 @@ public okhttp3.Call createNamespacedConfigMapAsync(String namespace, V1ConfigMap * Build call for createNamespacedEndpoints * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -7221,7 +7221,7 @@ public okhttp3.Call createNamespacedEndpointsCall(String namespace, V1Endpoints Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -7262,7 +7262,7 @@ private okhttp3.Call createNamespacedEndpointsValidateBeforeCall(String namespac * create Endpoints * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -7287,7 +7287,7 @@ public V1Endpoints createNamespacedEndpoints(String namespace, V1Endpoints body, * create Endpoints * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -7313,7 +7313,7 @@ public ApiResponse createNamespacedEndpointsWithHttpInfo(String nam * create Endpoints * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -7340,7 +7340,7 @@ public okhttp3.Call createNamespacedEndpointsAsync(String namespace, V1Endpoints * Build call for createNamespacedEvent * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -7385,7 +7385,7 @@ public okhttp3.Call createNamespacedEventCall(String namespace, CoreV1Event body Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -7426,7 +7426,7 @@ private okhttp3.Call createNamespacedEventValidateBeforeCall(String namespace, C * create an Event * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -7451,7 +7451,7 @@ public CoreV1Event createNamespacedEvent(String namespace, CoreV1Event body, Str * create an Event * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -7477,7 +7477,7 @@ public ApiResponse createNamespacedEventWithHttpInfo(String namespa * create an Event * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -7504,7 +7504,7 @@ public okhttp3.Call createNamespacedEventAsync(String namespace, CoreV1Event bod * Build call for createNamespacedLimitRange * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -7549,7 +7549,7 @@ public okhttp3.Call createNamespacedLimitRangeCall(String namespace, V1LimitRang Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -7590,7 +7590,7 @@ private okhttp3.Call createNamespacedLimitRangeValidateBeforeCall(String namespa * create a LimitRange * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -7615,7 +7615,7 @@ public V1LimitRange createNamespacedLimitRange(String namespace, V1LimitRange bo * create a LimitRange * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -7641,7 +7641,7 @@ public ApiResponse createNamespacedLimitRangeWithHttpInfo(String n * create a LimitRange * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -7668,7 +7668,7 @@ public okhttp3.Call createNamespacedLimitRangeAsync(String namespace, V1LimitRan * Build call for createNamespacedPersistentVolumeClaim * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -7713,7 +7713,7 @@ public okhttp3.Call createNamespacedPersistentVolumeClaimCall(String namespace, Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -7754,7 +7754,7 @@ private okhttp3.Call createNamespacedPersistentVolumeClaimValidateBeforeCall(Str * create a PersistentVolumeClaim * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -7779,7 +7779,7 @@ public V1PersistentVolumeClaim createNamespacedPersistentVolumeClaim(String name * create a PersistentVolumeClaim * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -7805,7 +7805,7 @@ public ApiResponse createNamespacedPersistentVolumeClai * create a PersistentVolumeClaim * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -7832,7 +7832,7 @@ public okhttp3.Call createNamespacedPersistentVolumeClaimAsync(String namespace, * Build call for createNamespacedPod * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -7877,7 +7877,7 @@ public okhttp3.Call createNamespacedPodCall(String namespace, V1Pod body, String Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -7918,7 +7918,7 @@ private okhttp3.Call createNamespacedPodValidateBeforeCall(String namespace, V1P * create a Pod * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -7943,7 +7943,7 @@ public V1Pod createNamespacedPod(String namespace, V1Pod body, String pretty, St * create a Pod * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -7969,7 +7969,7 @@ public ApiResponse createNamespacedPodWithHttpInfo(String namespace, V1Po * create a Pod * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -8000,7 +8000,7 @@ public okhttp3.Call createNamespacedPodAsync(String namespace, V1Pod body, Strin * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -8043,7 +8043,7 @@ public okhttp3.Call createNamespacedPodBindingCall(String name, String namespace Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -8093,7 +8093,7 @@ private okhttp3.Call createNamespacedPodBindingValidateBeforeCall(String name, S * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return V1Binding * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -8119,7 +8119,7 @@ public V1Binding createNamespacedPodBinding(String name, String namespace, V1Bin * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return ApiResponse<V1Binding> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -8146,7 +8146,7 @@ public ApiResponse createNamespacedPodBindingWithHttpInfo(String name * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object @@ -8174,7 +8174,7 @@ public okhttp3.Call createNamespacedPodBindingAsync(String name, String namespac * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -8217,7 +8217,7 @@ public okhttp3.Call createNamespacedPodEvictionCall(String name, String namespac Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -8267,7 +8267,7 @@ private okhttp3.Call createNamespacedPodEvictionValidateBeforeCall(String name, * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return V1Eviction * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -8293,7 +8293,7 @@ public V1Eviction createNamespacedPodEviction(String name, String namespace, V1E * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return ApiResponse<V1Eviction> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -8320,7 +8320,7 @@ public ApiResponse createNamespacedPodEvictionWithHttpInfo(String na * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object @@ -8344,7 +8344,7 @@ public okhttp3.Call createNamespacedPodEvictionAsync(String name, String namespa * Build call for createNamespacedPodTemplate * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -8389,7 +8389,7 @@ public okhttp3.Call createNamespacedPodTemplateCall(String namespace, V1PodTempl Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -8430,7 +8430,7 @@ private okhttp3.Call createNamespacedPodTemplateValidateBeforeCall(String namesp * create a PodTemplate * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -8455,7 +8455,7 @@ public V1PodTemplate createNamespacedPodTemplate(String namespace, V1PodTemplate * create a PodTemplate * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -8481,7 +8481,7 @@ public ApiResponse createNamespacedPodTemplateWithHttpInfo(String * create a PodTemplate * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -8508,7 +8508,7 @@ public okhttp3.Call createNamespacedPodTemplateAsync(String namespace, V1PodTemp * Build call for createNamespacedReplicationController * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -8553,7 +8553,7 @@ public okhttp3.Call createNamespacedReplicationControllerCall(String namespace, Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -8594,7 +8594,7 @@ private okhttp3.Call createNamespacedReplicationControllerValidateBeforeCall(Str * create a ReplicationController * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -8619,7 +8619,7 @@ public V1ReplicationController createNamespacedReplicationController(String name * create a ReplicationController * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -8645,7 +8645,7 @@ public ApiResponse createNamespacedReplicationControlle * create a ReplicationController * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -8672,7 +8672,7 @@ public okhttp3.Call createNamespacedReplicationControllerAsync(String namespace, * Build call for createNamespacedResourceQuota * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -8717,7 +8717,7 @@ public okhttp3.Call createNamespacedResourceQuotaCall(String namespace, V1Resour Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -8758,7 +8758,7 @@ private okhttp3.Call createNamespacedResourceQuotaValidateBeforeCall(String name * create a ResourceQuota * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -8783,7 +8783,7 @@ public V1ResourceQuota createNamespacedResourceQuota(String namespace, V1Resourc * create a ResourceQuota * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -8809,7 +8809,7 @@ public ApiResponse createNamespacedResourceQuotaWithHttpInfo(St * create a ResourceQuota * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -8836,7 +8836,7 @@ public okhttp3.Call createNamespacedResourceQuotaAsync(String namespace, V1Resou * Build call for createNamespacedSecret * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -8881,7 +8881,7 @@ public okhttp3.Call createNamespacedSecretCall(String namespace, V1Secret body, Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -8922,7 +8922,7 @@ private okhttp3.Call createNamespacedSecretValidateBeforeCall(String namespace, * create a Secret * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -8947,7 +8947,7 @@ public V1Secret createNamespacedSecret(String namespace, V1Secret body, String p * create a Secret * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -8973,7 +8973,7 @@ public ApiResponse createNamespacedSecretWithHttpInfo(String namespace * create a Secret * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -9000,7 +9000,7 @@ public okhttp3.Call createNamespacedSecretAsync(String namespace, V1Secret body, * Build call for createNamespacedService * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -9045,7 +9045,7 @@ public okhttp3.Call createNamespacedServiceCall(String namespace, V1Service body Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -9086,7 +9086,7 @@ private okhttp3.Call createNamespacedServiceValidateBeforeCall(String namespace, * create a Service * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -9111,7 +9111,7 @@ public V1Service createNamespacedService(String namespace, V1Service body, Strin * create a Service * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -9137,7 +9137,7 @@ public ApiResponse createNamespacedServiceWithHttpInfo(String namespa * create a Service * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -9164,7 +9164,7 @@ public okhttp3.Call createNamespacedServiceAsync(String namespace, V1Service bod * Build call for createNamespacedServiceAccount * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -9209,7 +9209,7 @@ public okhttp3.Call createNamespacedServiceAccountCall(String namespace, V1Servi Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -9250,7 +9250,7 @@ private okhttp3.Call createNamespacedServiceAccountValidateBeforeCall(String nam * create a ServiceAccount * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -9275,7 +9275,7 @@ public V1ServiceAccount createNamespacedServiceAccount(String namespace, V1Servi * create a ServiceAccount * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -9301,7 +9301,7 @@ public ApiResponse createNamespacedServiceAccountWithHttpInfo( * create a ServiceAccount * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -9332,7 +9332,7 @@ public okhttp3.Call createNamespacedServiceAccountAsync(String namespace, V1Serv * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -9375,7 +9375,7 @@ public okhttp3.Call createNamespacedServiceAccountTokenCall(String name, String Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -9425,7 +9425,7 @@ private okhttp3.Call createNamespacedServiceAccountTokenValidateBeforeCall(Strin * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return AuthenticationV1TokenRequest * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -9451,7 +9451,7 @@ public AuthenticationV1TokenRequest createNamespacedServiceAccountToken(String n * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return ApiResponse<AuthenticationV1TokenRequest> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -9478,7 +9478,7 @@ public ApiResponse createNamespacedServiceAccountT * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object @@ -9501,7 +9501,7 @@ public okhttp3.Call createNamespacedServiceAccountTokenAsync(String name, String /** * Build call for createNode * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -9545,7 +9545,7 @@ public okhttp3.Call createNodeCall(V1Node body, String pretty, String dryRun, St Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -9580,7 +9580,7 @@ private okhttp3.Call createNodeValidateBeforeCall(V1Node body, String pretty, St * * create a Node * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -9604,7 +9604,7 @@ public V1Node createNode(V1Node body, String pretty, String dryRun, String field * * create a Node * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -9629,7 +9629,7 @@ public ApiResponse createNodeWithHttpInfo(V1Node body, String pretty, St * (asynchronously) * create a Node * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -9655,7 +9655,7 @@ public okhttp3.Call createNodeAsync(V1Node body, String pretty, String dryRun, S /** * Build call for createPersistentVolume * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -9699,7 +9699,7 @@ public okhttp3.Call createPersistentVolumeCall(V1PersistentVolume body, String p Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -9734,7 +9734,7 @@ private okhttp3.Call createPersistentVolumeValidateBeforeCall(V1PersistentVolume * * create a PersistentVolume * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -9758,7 +9758,7 @@ public V1PersistentVolume createPersistentVolume(V1PersistentVolume body, String * * create a PersistentVolume * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -9783,7 +9783,7 @@ public ApiResponse createPersistentVolumeWithHttpInfo(V1Pers * (asynchronously) * create a PersistentVolume * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -9809,11 +9809,12 @@ public okhttp3.Call createPersistentVolumeAsync(V1PersistentVolume body, String /** * Build call for deleteCollectionNamespacedConfigMap * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param _continue 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) * @param dryRun 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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @param orphanDependents 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) @@ -9833,7 +9834,7 @@ public okhttp3.Call createPersistentVolumeAsync(V1PersistentVolume body, String 401 Unauthorized - */ - public okhttp3.Call deleteCollectionNamespacedConfigMapCall(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + public okhttp3.Call deleteCollectionNamespacedConfigMapCall(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; // create path and map variables @@ -9862,6 +9863,10 @@ public okhttp3.Call deleteCollectionNamespacedConfigMapCall(String namespace, St localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); } + if (ignoreStoreReadErrorWithClusterBreakingPotential != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("ignoreStoreReadErrorWithClusterBreakingPotential", ignoreStoreReadErrorWithClusterBreakingPotential)); + } + if (labelSelector != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); } @@ -9898,7 +9903,7 @@ public okhttp3.Call deleteCollectionNamespacedConfigMapCall(String namespace, St Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -9916,7 +9921,7 @@ public okhttp3.Call deleteCollectionNamespacedConfigMapCall(String namespace, St } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteCollectionNamespacedConfigMapValidateBeforeCall(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionNamespacedConfigMapValidateBeforeCall(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { // verify the required parameter 'namespace' is set if (namespace == null) { @@ -9924,7 +9929,7 @@ private okhttp3.Call deleteCollectionNamespacedConfigMapValidateBeforeCall(Strin } - okhttp3.Call localVarCall = deleteCollectionNamespacedConfigMapCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + okhttp3.Call localVarCall = deleteCollectionNamespacedConfigMapCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); return localVarCall; } @@ -9933,11 +9938,12 @@ private okhttp3.Call deleteCollectionNamespacedConfigMapValidateBeforeCall(Strin * * delete collection of ConfigMap * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param _continue 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) * @param dryRun 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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @param orphanDependents 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) @@ -9956,8 +9962,8 @@ private okhttp3.Call deleteCollectionNamespacedConfigMapValidateBeforeCall(Strin 401 Unauthorized - */ - public V1Status deleteCollectionNamespacedConfigMap(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body) throws ApiException { - ApiResponse localVarResp = deleteCollectionNamespacedConfigMapWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); + public V1Status deleteCollectionNamespacedConfigMap(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body) throws ApiException { + ApiResponse localVarResp = deleteCollectionNamespacedConfigMapWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); return localVarResp.getData(); } @@ -9965,11 +9971,12 @@ public V1Status deleteCollectionNamespacedConfigMap(String namespace, String pre * * delete collection of ConfigMap * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param _continue 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) * @param dryRun 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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @param orphanDependents 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) @@ -9988,8 +9995,8 @@ public V1Status deleteCollectionNamespacedConfigMap(String namespace, String pre 401 Unauthorized - */ - public ApiResponse deleteCollectionNamespacedConfigMapWithHttpInfo(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body) throws ApiException { - okhttp3.Call localVarCall = deleteCollectionNamespacedConfigMapValidateBeforeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, null); + public ApiResponse deleteCollectionNamespacedConfigMapWithHttpInfo(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteCollectionNamespacedConfigMapValidateBeforeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -9998,11 +10005,12 @@ public ApiResponse deleteCollectionNamespacedConfigMapWithHttpInfo(Str * (asynchronously) * delete collection of ConfigMap * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param _continue 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) * @param dryRun 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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @param orphanDependents 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) @@ -10022,9 +10030,9 @@ public ApiResponse deleteCollectionNamespacedConfigMapWithHttpInfo(Str 401 Unauthorized - */ - public okhttp3.Call deleteCollectionNamespacedConfigMapAsync(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + public okhttp3.Call deleteCollectionNamespacedConfigMapAsync(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = deleteCollectionNamespacedConfigMapValidateBeforeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + okhttp3.Call localVarCall = deleteCollectionNamespacedConfigMapValidateBeforeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -10032,11 +10040,12 @@ public okhttp3.Call deleteCollectionNamespacedConfigMapAsync(String namespace, S /** * Build call for deleteCollectionNamespacedEndpoints * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param _continue 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) * @param dryRun 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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @param orphanDependents 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) @@ -10056,7 +10065,7 @@ public okhttp3.Call deleteCollectionNamespacedConfigMapAsync(String namespace, S 401 Unauthorized - */ - public okhttp3.Call deleteCollectionNamespacedEndpointsCall(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + public okhttp3.Call deleteCollectionNamespacedEndpointsCall(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; // create path and map variables @@ -10085,6 +10094,10 @@ public okhttp3.Call deleteCollectionNamespacedEndpointsCall(String namespace, St localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); } + if (ignoreStoreReadErrorWithClusterBreakingPotential != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("ignoreStoreReadErrorWithClusterBreakingPotential", ignoreStoreReadErrorWithClusterBreakingPotential)); + } + if (labelSelector != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); } @@ -10121,7 +10134,7 @@ public okhttp3.Call deleteCollectionNamespacedEndpointsCall(String namespace, St Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -10139,7 +10152,7 @@ public okhttp3.Call deleteCollectionNamespacedEndpointsCall(String namespace, St } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteCollectionNamespacedEndpointsValidateBeforeCall(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionNamespacedEndpointsValidateBeforeCall(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { // verify the required parameter 'namespace' is set if (namespace == null) { @@ -10147,7 +10160,7 @@ private okhttp3.Call deleteCollectionNamespacedEndpointsValidateBeforeCall(Strin } - okhttp3.Call localVarCall = deleteCollectionNamespacedEndpointsCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + okhttp3.Call localVarCall = deleteCollectionNamespacedEndpointsCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); return localVarCall; } @@ -10156,11 +10169,12 @@ private okhttp3.Call deleteCollectionNamespacedEndpointsValidateBeforeCall(Strin * * delete collection of Endpoints * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param _continue 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) * @param dryRun 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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @param orphanDependents 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) @@ -10179,8 +10193,8 @@ private okhttp3.Call deleteCollectionNamespacedEndpointsValidateBeforeCall(Strin 401 Unauthorized - */ - public V1Status deleteCollectionNamespacedEndpoints(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body) throws ApiException { - ApiResponse localVarResp = deleteCollectionNamespacedEndpointsWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); + public V1Status deleteCollectionNamespacedEndpoints(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body) throws ApiException { + ApiResponse localVarResp = deleteCollectionNamespacedEndpointsWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); return localVarResp.getData(); } @@ -10188,11 +10202,12 @@ public V1Status deleteCollectionNamespacedEndpoints(String namespace, String pre * * delete collection of Endpoints * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param _continue 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) * @param dryRun 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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @param orphanDependents 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) @@ -10211,8 +10226,8 @@ public V1Status deleteCollectionNamespacedEndpoints(String namespace, String pre 401 Unauthorized - */ - public ApiResponse deleteCollectionNamespacedEndpointsWithHttpInfo(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body) throws ApiException { - okhttp3.Call localVarCall = deleteCollectionNamespacedEndpointsValidateBeforeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, null); + public ApiResponse deleteCollectionNamespacedEndpointsWithHttpInfo(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteCollectionNamespacedEndpointsValidateBeforeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -10221,11 +10236,12 @@ public ApiResponse deleteCollectionNamespacedEndpointsWithHttpInfo(Str * (asynchronously) * delete collection of Endpoints * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param _continue 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) * @param dryRun 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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @param orphanDependents 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) @@ -10245,9 +10261,9 @@ public ApiResponse deleteCollectionNamespacedEndpointsWithHttpInfo(Str 401 Unauthorized - */ - public okhttp3.Call deleteCollectionNamespacedEndpointsAsync(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + public okhttp3.Call deleteCollectionNamespacedEndpointsAsync(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = deleteCollectionNamespacedEndpointsValidateBeforeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + okhttp3.Call localVarCall = deleteCollectionNamespacedEndpointsValidateBeforeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -10255,11 +10271,12 @@ public okhttp3.Call deleteCollectionNamespacedEndpointsAsync(String namespace, S /** * Build call for deleteCollectionNamespacedEvent * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param _continue 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) * @param dryRun 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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @param orphanDependents 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) @@ -10279,7 +10296,7 @@ public okhttp3.Call deleteCollectionNamespacedEndpointsAsync(String namespace, S 401 Unauthorized - */ - public okhttp3.Call deleteCollectionNamespacedEventCall(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + public okhttp3.Call deleteCollectionNamespacedEventCall(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; // create path and map variables @@ -10308,6 +10325,10 @@ public okhttp3.Call deleteCollectionNamespacedEventCall(String namespace, String localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); } + if (ignoreStoreReadErrorWithClusterBreakingPotential != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("ignoreStoreReadErrorWithClusterBreakingPotential", ignoreStoreReadErrorWithClusterBreakingPotential)); + } + if (labelSelector != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); } @@ -10344,7 +10365,7 @@ public okhttp3.Call deleteCollectionNamespacedEventCall(String namespace, String Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -10362,7 +10383,7 @@ public okhttp3.Call deleteCollectionNamespacedEventCall(String namespace, String } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteCollectionNamespacedEventValidateBeforeCall(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionNamespacedEventValidateBeforeCall(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { // verify the required parameter 'namespace' is set if (namespace == null) { @@ -10370,7 +10391,7 @@ private okhttp3.Call deleteCollectionNamespacedEventValidateBeforeCall(String na } - okhttp3.Call localVarCall = deleteCollectionNamespacedEventCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + okhttp3.Call localVarCall = deleteCollectionNamespacedEventCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); return localVarCall; } @@ -10379,11 +10400,12 @@ private okhttp3.Call deleteCollectionNamespacedEventValidateBeforeCall(String na * * delete collection of Event * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param _continue 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) * @param dryRun 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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @param orphanDependents 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) @@ -10402,8 +10424,8 @@ private okhttp3.Call deleteCollectionNamespacedEventValidateBeforeCall(String na 401 Unauthorized - */ - public V1Status deleteCollectionNamespacedEvent(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body) throws ApiException { - ApiResponse localVarResp = deleteCollectionNamespacedEventWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); + public V1Status deleteCollectionNamespacedEvent(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body) throws ApiException { + ApiResponse localVarResp = deleteCollectionNamespacedEventWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); return localVarResp.getData(); } @@ -10411,11 +10433,12 @@ public V1Status deleteCollectionNamespacedEvent(String namespace, String pretty, * * delete collection of Event * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param _continue 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) * @param dryRun 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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @param orphanDependents 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) @@ -10434,8 +10457,8 @@ public V1Status deleteCollectionNamespacedEvent(String namespace, String pretty, 401 Unauthorized - */ - public ApiResponse deleteCollectionNamespacedEventWithHttpInfo(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body) throws ApiException { - okhttp3.Call localVarCall = deleteCollectionNamespacedEventValidateBeforeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, null); + public ApiResponse deleteCollectionNamespacedEventWithHttpInfo(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteCollectionNamespacedEventValidateBeforeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -10444,11 +10467,12 @@ public ApiResponse deleteCollectionNamespacedEventWithHttpInfo(String * (asynchronously) * delete collection of Event * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param _continue 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) * @param dryRun 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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @param orphanDependents 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) @@ -10468,9 +10492,9 @@ public ApiResponse deleteCollectionNamespacedEventWithHttpInfo(String 401 Unauthorized - */ - public okhttp3.Call deleteCollectionNamespacedEventAsync(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + public okhttp3.Call deleteCollectionNamespacedEventAsync(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = deleteCollectionNamespacedEventValidateBeforeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + okhttp3.Call localVarCall = deleteCollectionNamespacedEventValidateBeforeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -10478,11 +10502,12 @@ public okhttp3.Call deleteCollectionNamespacedEventAsync(String namespace, Strin /** * Build call for deleteCollectionNamespacedLimitRange * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param _continue 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) * @param dryRun 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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @param orphanDependents 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) @@ -10502,7 +10527,7 @@ public okhttp3.Call deleteCollectionNamespacedEventAsync(String namespace, Strin 401 Unauthorized - */ - public okhttp3.Call deleteCollectionNamespacedLimitRangeCall(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + public okhttp3.Call deleteCollectionNamespacedLimitRangeCall(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; // create path and map variables @@ -10531,6 +10556,10 @@ public okhttp3.Call deleteCollectionNamespacedLimitRangeCall(String namespace, S localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); } + if (ignoreStoreReadErrorWithClusterBreakingPotential != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("ignoreStoreReadErrorWithClusterBreakingPotential", ignoreStoreReadErrorWithClusterBreakingPotential)); + } + if (labelSelector != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); } @@ -10567,7 +10596,7 @@ public okhttp3.Call deleteCollectionNamespacedLimitRangeCall(String namespace, S Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -10585,7 +10614,7 @@ public okhttp3.Call deleteCollectionNamespacedLimitRangeCall(String namespace, S } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteCollectionNamespacedLimitRangeValidateBeforeCall(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionNamespacedLimitRangeValidateBeforeCall(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { // verify the required parameter 'namespace' is set if (namespace == null) { @@ -10593,7 +10622,7 @@ private okhttp3.Call deleteCollectionNamespacedLimitRangeValidateBeforeCall(Stri } - okhttp3.Call localVarCall = deleteCollectionNamespacedLimitRangeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + okhttp3.Call localVarCall = deleteCollectionNamespacedLimitRangeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); return localVarCall; } @@ -10602,11 +10631,12 @@ private okhttp3.Call deleteCollectionNamespacedLimitRangeValidateBeforeCall(Stri * * delete collection of LimitRange * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param _continue 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) * @param dryRun 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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @param orphanDependents 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) @@ -10625,8 +10655,8 @@ private okhttp3.Call deleteCollectionNamespacedLimitRangeValidateBeforeCall(Stri 401 Unauthorized - */ - public V1Status deleteCollectionNamespacedLimitRange(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body) throws ApiException { - ApiResponse localVarResp = deleteCollectionNamespacedLimitRangeWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); + public V1Status deleteCollectionNamespacedLimitRange(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body) throws ApiException { + ApiResponse localVarResp = deleteCollectionNamespacedLimitRangeWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); return localVarResp.getData(); } @@ -10634,11 +10664,12 @@ public V1Status deleteCollectionNamespacedLimitRange(String namespace, String pr * * delete collection of LimitRange * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param _continue 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) * @param dryRun 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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @param orphanDependents 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) @@ -10657,8 +10688,8 @@ public V1Status deleteCollectionNamespacedLimitRange(String namespace, String pr 401 Unauthorized - */ - public ApiResponse deleteCollectionNamespacedLimitRangeWithHttpInfo(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body) throws ApiException { - okhttp3.Call localVarCall = deleteCollectionNamespacedLimitRangeValidateBeforeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, null); + public ApiResponse deleteCollectionNamespacedLimitRangeWithHttpInfo(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteCollectionNamespacedLimitRangeValidateBeforeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -10667,11 +10698,12 @@ public ApiResponse deleteCollectionNamespacedLimitRangeWithHttpInfo(St * (asynchronously) * delete collection of LimitRange * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param _continue 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) * @param dryRun 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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @param orphanDependents 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) @@ -10691,9 +10723,9 @@ public ApiResponse deleteCollectionNamespacedLimitRangeWithHttpInfo(St 401 Unauthorized - */ - public okhttp3.Call deleteCollectionNamespacedLimitRangeAsync(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + public okhttp3.Call deleteCollectionNamespacedLimitRangeAsync(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = deleteCollectionNamespacedLimitRangeValidateBeforeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + okhttp3.Call localVarCall = deleteCollectionNamespacedLimitRangeValidateBeforeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -10701,11 +10733,12 @@ public okhttp3.Call deleteCollectionNamespacedLimitRangeAsync(String namespace, /** * Build call for deleteCollectionNamespacedPersistentVolumeClaim * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param _continue 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) * @param dryRun 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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @param orphanDependents 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) @@ -10725,7 +10758,7 @@ public okhttp3.Call deleteCollectionNamespacedLimitRangeAsync(String namespace, 401 Unauthorized - */ - public okhttp3.Call deleteCollectionNamespacedPersistentVolumeClaimCall(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + public okhttp3.Call deleteCollectionNamespacedPersistentVolumeClaimCall(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; // create path and map variables @@ -10754,6 +10787,10 @@ public okhttp3.Call deleteCollectionNamespacedPersistentVolumeClaimCall(String n localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); } + if (ignoreStoreReadErrorWithClusterBreakingPotential != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("ignoreStoreReadErrorWithClusterBreakingPotential", ignoreStoreReadErrorWithClusterBreakingPotential)); + } + if (labelSelector != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); } @@ -10790,7 +10827,7 @@ public okhttp3.Call deleteCollectionNamespacedPersistentVolumeClaimCall(String n Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -10808,7 +10845,7 @@ public okhttp3.Call deleteCollectionNamespacedPersistentVolumeClaimCall(String n } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteCollectionNamespacedPersistentVolumeClaimValidateBeforeCall(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionNamespacedPersistentVolumeClaimValidateBeforeCall(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { // verify the required parameter 'namespace' is set if (namespace == null) { @@ -10816,7 +10853,7 @@ private okhttp3.Call deleteCollectionNamespacedPersistentVolumeClaimValidateBefo } - okhttp3.Call localVarCall = deleteCollectionNamespacedPersistentVolumeClaimCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + okhttp3.Call localVarCall = deleteCollectionNamespacedPersistentVolumeClaimCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); return localVarCall; } @@ -10825,11 +10862,12 @@ private okhttp3.Call deleteCollectionNamespacedPersistentVolumeClaimValidateBefo * * delete collection of PersistentVolumeClaim * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param _continue 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) * @param dryRun 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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @param orphanDependents 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) @@ -10848,8 +10886,8 @@ private okhttp3.Call deleteCollectionNamespacedPersistentVolumeClaimValidateBefo 401 Unauthorized - */ - public V1Status deleteCollectionNamespacedPersistentVolumeClaim(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body) throws ApiException { - ApiResponse localVarResp = deleteCollectionNamespacedPersistentVolumeClaimWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); + public V1Status deleteCollectionNamespacedPersistentVolumeClaim(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body) throws ApiException { + ApiResponse localVarResp = deleteCollectionNamespacedPersistentVolumeClaimWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); return localVarResp.getData(); } @@ -10857,11 +10895,12 @@ public V1Status deleteCollectionNamespacedPersistentVolumeClaim(String namespace * * delete collection of PersistentVolumeClaim * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param _continue 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) * @param dryRun 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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @param orphanDependents 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) @@ -10880,8 +10919,8 @@ public V1Status deleteCollectionNamespacedPersistentVolumeClaim(String namespace 401 Unauthorized - */ - public ApiResponse deleteCollectionNamespacedPersistentVolumeClaimWithHttpInfo(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body) throws ApiException { - okhttp3.Call localVarCall = deleteCollectionNamespacedPersistentVolumeClaimValidateBeforeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, null); + public ApiResponse deleteCollectionNamespacedPersistentVolumeClaimWithHttpInfo(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteCollectionNamespacedPersistentVolumeClaimValidateBeforeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -10890,11 +10929,12 @@ public ApiResponse deleteCollectionNamespacedPersistentVolumeClaimWith * (asynchronously) * delete collection of PersistentVolumeClaim * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param _continue 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) * @param dryRun 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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @param orphanDependents 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) @@ -10914,9 +10954,9 @@ public ApiResponse deleteCollectionNamespacedPersistentVolumeClaimWith 401 Unauthorized - */ - public okhttp3.Call deleteCollectionNamespacedPersistentVolumeClaimAsync(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + public okhttp3.Call deleteCollectionNamespacedPersistentVolumeClaimAsync(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = deleteCollectionNamespacedPersistentVolumeClaimValidateBeforeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + okhttp3.Call localVarCall = deleteCollectionNamespacedPersistentVolumeClaimValidateBeforeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -10924,11 +10964,12 @@ public okhttp3.Call deleteCollectionNamespacedPersistentVolumeClaimAsync(String /** * Build call for deleteCollectionNamespacedPod * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param _continue 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) * @param dryRun 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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @param orphanDependents 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) @@ -10948,7 +10989,7 @@ public okhttp3.Call deleteCollectionNamespacedPersistentVolumeClaimAsync(String 401 Unauthorized - */ - public okhttp3.Call deleteCollectionNamespacedPodCall(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + public okhttp3.Call deleteCollectionNamespacedPodCall(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; // create path and map variables @@ -10977,6 +11018,10 @@ public okhttp3.Call deleteCollectionNamespacedPodCall(String namespace, String p localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); } + if (ignoreStoreReadErrorWithClusterBreakingPotential != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("ignoreStoreReadErrorWithClusterBreakingPotential", ignoreStoreReadErrorWithClusterBreakingPotential)); + } + if (labelSelector != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); } @@ -11013,7 +11058,7 @@ public okhttp3.Call deleteCollectionNamespacedPodCall(String namespace, String p Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -11031,7 +11076,7 @@ public okhttp3.Call deleteCollectionNamespacedPodCall(String namespace, String p } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteCollectionNamespacedPodValidateBeforeCall(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionNamespacedPodValidateBeforeCall(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { // verify the required parameter 'namespace' is set if (namespace == null) { @@ -11039,7 +11084,7 @@ private okhttp3.Call deleteCollectionNamespacedPodValidateBeforeCall(String name } - okhttp3.Call localVarCall = deleteCollectionNamespacedPodCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + okhttp3.Call localVarCall = deleteCollectionNamespacedPodCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); return localVarCall; } @@ -11048,11 +11093,12 @@ private okhttp3.Call deleteCollectionNamespacedPodValidateBeforeCall(String name * * delete collection of Pod * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param _continue 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) * @param dryRun 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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @param orphanDependents 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) @@ -11071,8 +11117,8 @@ private okhttp3.Call deleteCollectionNamespacedPodValidateBeforeCall(String name 401 Unauthorized - */ - public V1Status deleteCollectionNamespacedPod(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body) throws ApiException { - ApiResponse localVarResp = deleteCollectionNamespacedPodWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); + public V1Status deleteCollectionNamespacedPod(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body) throws ApiException { + ApiResponse localVarResp = deleteCollectionNamespacedPodWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); return localVarResp.getData(); } @@ -11080,11 +11126,12 @@ public V1Status deleteCollectionNamespacedPod(String namespace, String pretty, S * * delete collection of Pod * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param _continue 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) * @param dryRun 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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @param orphanDependents 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) @@ -11103,8 +11150,8 @@ public V1Status deleteCollectionNamespacedPod(String namespace, String pretty, S 401 Unauthorized - */ - public ApiResponse deleteCollectionNamespacedPodWithHttpInfo(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body) throws ApiException { - okhttp3.Call localVarCall = deleteCollectionNamespacedPodValidateBeforeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, null); + public ApiResponse deleteCollectionNamespacedPodWithHttpInfo(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteCollectionNamespacedPodValidateBeforeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -11113,11 +11160,12 @@ public ApiResponse deleteCollectionNamespacedPodWithHttpInfo(String na * (asynchronously) * delete collection of Pod * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param _continue 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) * @param dryRun 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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @param orphanDependents 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) @@ -11137,9 +11185,9 @@ public ApiResponse deleteCollectionNamespacedPodWithHttpInfo(String na 401 Unauthorized - */ - public okhttp3.Call deleteCollectionNamespacedPodAsync(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + public okhttp3.Call deleteCollectionNamespacedPodAsync(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = deleteCollectionNamespacedPodValidateBeforeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + okhttp3.Call localVarCall = deleteCollectionNamespacedPodValidateBeforeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -11147,11 +11195,12 @@ public okhttp3.Call deleteCollectionNamespacedPodAsync(String namespace, String /** * Build call for deleteCollectionNamespacedPodTemplate * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param _continue 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) * @param dryRun 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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @param orphanDependents 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) @@ -11171,7 +11220,7 @@ public okhttp3.Call deleteCollectionNamespacedPodAsync(String namespace, String 401 Unauthorized - */ - public okhttp3.Call deleteCollectionNamespacedPodTemplateCall(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + public okhttp3.Call deleteCollectionNamespacedPodTemplateCall(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; // create path and map variables @@ -11200,6 +11249,10 @@ public okhttp3.Call deleteCollectionNamespacedPodTemplateCall(String namespace, localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); } + if (ignoreStoreReadErrorWithClusterBreakingPotential != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("ignoreStoreReadErrorWithClusterBreakingPotential", ignoreStoreReadErrorWithClusterBreakingPotential)); + } + if (labelSelector != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); } @@ -11236,7 +11289,7 @@ public okhttp3.Call deleteCollectionNamespacedPodTemplateCall(String namespace, Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -11254,7 +11307,7 @@ public okhttp3.Call deleteCollectionNamespacedPodTemplateCall(String namespace, } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteCollectionNamespacedPodTemplateValidateBeforeCall(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionNamespacedPodTemplateValidateBeforeCall(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { // verify the required parameter 'namespace' is set if (namespace == null) { @@ -11262,7 +11315,7 @@ private okhttp3.Call deleteCollectionNamespacedPodTemplateValidateBeforeCall(Str } - okhttp3.Call localVarCall = deleteCollectionNamespacedPodTemplateCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + okhttp3.Call localVarCall = deleteCollectionNamespacedPodTemplateCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); return localVarCall; } @@ -11271,11 +11324,12 @@ private okhttp3.Call deleteCollectionNamespacedPodTemplateValidateBeforeCall(Str * * delete collection of PodTemplate * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param _continue 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) * @param dryRun 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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @param orphanDependents 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) @@ -11294,8 +11348,8 @@ private okhttp3.Call deleteCollectionNamespacedPodTemplateValidateBeforeCall(Str 401 Unauthorized - */ - public V1Status deleteCollectionNamespacedPodTemplate(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body) throws ApiException { - ApiResponse localVarResp = deleteCollectionNamespacedPodTemplateWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); + public V1Status deleteCollectionNamespacedPodTemplate(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body) throws ApiException { + ApiResponse localVarResp = deleteCollectionNamespacedPodTemplateWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); return localVarResp.getData(); } @@ -11303,11 +11357,12 @@ public V1Status deleteCollectionNamespacedPodTemplate(String namespace, String p * * delete collection of PodTemplate * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param _continue 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) * @param dryRun 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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @param orphanDependents 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) @@ -11326,8 +11381,8 @@ public V1Status deleteCollectionNamespacedPodTemplate(String namespace, String p 401 Unauthorized - */ - public ApiResponse deleteCollectionNamespacedPodTemplateWithHttpInfo(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body) throws ApiException { - okhttp3.Call localVarCall = deleteCollectionNamespacedPodTemplateValidateBeforeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, null); + public ApiResponse deleteCollectionNamespacedPodTemplateWithHttpInfo(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteCollectionNamespacedPodTemplateValidateBeforeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -11336,11 +11391,12 @@ public ApiResponse deleteCollectionNamespacedPodTemplateWithHttpInfo(S * (asynchronously) * delete collection of PodTemplate * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param _continue 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) * @param dryRun 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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @param orphanDependents 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) @@ -11360,9 +11416,9 @@ public ApiResponse deleteCollectionNamespacedPodTemplateWithHttpInfo(S 401 Unauthorized - */ - public okhttp3.Call deleteCollectionNamespacedPodTemplateAsync(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + public okhttp3.Call deleteCollectionNamespacedPodTemplateAsync(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = deleteCollectionNamespacedPodTemplateValidateBeforeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + okhttp3.Call localVarCall = deleteCollectionNamespacedPodTemplateValidateBeforeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -11370,11 +11426,12 @@ public okhttp3.Call deleteCollectionNamespacedPodTemplateAsync(String namespace, /** * Build call for deleteCollectionNamespacedReplicationController * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param _continue 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) * @param dryRun 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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @param orphanDependents 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) @@ -11394,7 +11451,7 @@ public okhttp3.Call deleteCollectionNamespacedPodTemplateAsync(String namespace, 401 Unauthorized - */ - public okhttp3.Call deleteCollectionNamespacedReplicationControllerCall(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + public okhttp3.Call deleteCollectionNamespacedReplicationControllerCall(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; // create path and map variables @@ -11423,6 +11480,10 @@ public okhttp3.Call deleteCollectionNamespacedReplicationControllerCall(String n localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); } + if (ignoreStoreReadErrorWithClusterBreakingPotential != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("ignoreStoreReadErrorWithClusterBreakingPotential", ignoreStoreReadErrorWithClusterBreakingPotential)); + } + if (labelSelector != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); } @@ -11459,7 +11520,7 @@ public okhttp3.Call deleteCollectionNamespacedReplicationControllerCall(String n Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -11477,7 +11538,7 @@ public okhttp3.Call deleteCollectionNamespacedReplicationControllerCall(String n } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteCollectionNamespacedReplicationControllerValidateBeforeCall(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionNamespacedReplicationControllerValidateBeforeCall(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { // verify the required parameter 'namespace' is set if (namespace == null) { @@ -11485,7 +11546,7 @@ private okhttp3.Call deleteCollectionNamespacedReplicationControllerValidateBefo } - okhttp3.Call localVarCall = deleteCollectionNamespacedReplicationControllerCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + okhttp3.Call localVarCall = deleteCollectionNamespacedReplicationControllerCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); return localVarCall; } @@ -11494,11 +11555,12 @@ private okhttp3.Call deleteCollectionNamespacedReplicationControllerValidateBefo * * delete collection of ReplicationController * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param _continue 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) * @param dryRun 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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @param orphanDependents 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) @@ -11517,8 +11579,8 @@ private okhttp3.Call deleteCollectionNamespacedReplicationControllerValidateBefo 401 Unauthorized - */ - public V1Status deleteCollectionNamespacedReplicationController(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body) throws ApiException { - ApiResponse localVarResp = deleteCollectionNamespacedReplicationControllerWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); + public V1Status deleteCollectionNamespacedReplicationController(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body) throws ApiException { + ApiResponse localVarResp = deleteCollectionNamespacedReplicationControllerWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); return localVarResp.getData(); } @@ -11526,11 +11588,12 @@ public V1Status deleteCollectionNamespacedReplicationController(String namespace * * delete collection of ReplicationController * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param _continue 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) * @param dryRun 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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @param orphanDependents 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) @@ -11549,8 +11612,8 @@ public V1Status deleteCollectionNamespacedReplicationController(String namespace 401 Unauthorized - */ - public ApiResponse deleteCollectionNamespacedReplicationControllerWithHttpInfo(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body) throws ApiException { - okhttp3.Call localVarCall = deleteCollectionNamespacedReplicationControllerValidateBeforeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, null); + public ApiResponse deleteCollectionNamespacedReplicationControllerWithHttpInfo(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteCollectionNamespacedReplicationControllerValidateBeforeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -11559,11 +11622,12 @@ public ApiResponse deleteCollectionNamespacedReplicationControllerWith * (asynchronously) * delete collection of ReplicationController * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param _continue 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) * @param dryRun 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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @param orphanDependents 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) @@ -11583,9 +11647,9 @@ public ApiResponse deleteCollectionNamespacedReplicationControllerWith 401 Unauthorized - */ - public okhttp3.Call deleteCollectionNamespacedReplicationControllerAsync(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + public okhttp3.Call deleteCollectionNamespacedReplicationControllerAsync(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = deleteCollectionNamespacedReplicationControllerValidateBeforeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + okhttp3.Call localVarCall = deleteCollectionNamespacedReplicationControllerValidateBeforeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -11593,11 +11657,12 @@ public okhttp3.Call deleteCollectionNamespacedReplicationControllerAsync(String /** * Build call for deleteCollectionNamespacedResourceQuota * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param _continue 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) * @param dryRun 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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @param orphanDependents 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) @@ -11617,7 +11682,7 @@ public okhttp3.Call deleteCollectionNamespacedReplicationControllerAsync(String 401 Unauthorized - */ - public okhttp3.Call deleteCollectionNamespacedResourceQuotaCall(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + public okhttp3.Call deleteCollectionNamespacedResourceQuotaCall(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; // create path and map variables @@ -11646,6 +11711,10 @@ public okhttp3.Call deleteCollectionNamespacedResourceQuotaCall(String namespace localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); } + if (ignoreStoreReadErrorWithClusterBreakingPotential != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("ignoreStoreReadErrorWithClusterBreakingPotential", ignoreStoreReadErrorWithClusterBreakingPotential)); + } + if (labelSelector != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); } @@ -11682,7 +11751,7 @@ public okhttp3.Call deleteCollectionNamespacedResourceQuotaCall(String namespace Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -11700,7 +11769,7 @@ public okhttp3.Call deleteCollectionNamespacedResourceQuotaCall(String namespace } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteCollectionNamespacedResourceQuotaValidateBeforeCall(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionNamespacedResourceQuotaValidateBeforeCall(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { // verify the required parameter 'namespace' is set if (namespace == null) { @@ -11708,7 +11777,7 @@ private okhttp3.Call deleteCollectionNamespacedResourceQuotaValidateBeforeCall(S } - okhttp3.Call localVarCall = deleteCollectionNamespacedResourceQuotaCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + okhttp3.Call localVarCall = deleteCollectionNamespacedResourceQuotaCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); return localVarCall; } @@ -11717,11 +11786,12 @@ private okhttp3.Call deleteCollectionNamespacedResourceQuotaValidateBeforeCall(S * * delete collection of ResourceQuota * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param _continue 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) * @param dryRun 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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @param orphanDependents 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) @@ -11740,8 +11810,8 @@ private okhttp3.Call deleteCollectionNamespacedResourceQuotaValidateBeforeCall(S 401 Unauthorized - */ - public V1Status deleteCollectionNamespacedResourceQuota(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body) throws ApiException { - ApiResponse localVarResp = deleteCollectionNamespacedResourceQuotaWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); + public V1Status deleteCollectionNamespacedResourceQuota(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body) throws ApiException { + ApiResponse localVarResp = deleteCollectionNamespacedResourceQuotaWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); return localVarResp.getData(); } @@ -11749,11 +11819,12 @@ public V1Status deleteCollectionNamespacedResourceQuota(String namespace, String * * delete collection of ResourceQuota * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param _continue 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) * @param dryRun 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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @param orphanDependents 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) @@ -11772,8 +11843,8 @@ public V1Status deleteCollectionNamespacedResourceQuota(String namespace, String 401 Unauthorized - */ - public ApiResponse deleteCollectionNamespacedResourceQuotaWithHttpInfo(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body) throws ApiException { - okhttp3.Call localVarCall = deleteCollectionNamespacedResourceQuotaValidateBeforeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, null); + public ApiResponse deleteCollectionNamespacedResourceQuotaWithHttpInfo(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteCollectionNamespacedResourceQuotaValidateBeforeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -11782,11 +11853,12 @@ public ApiResponse deleteCollectionNamespacedResourceQuotaWithHttpInfo * (asynchronously) * delete collection of ResourceQuota * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param _continue 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) * @param dryRun 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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @param orphanDependents 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) @@ -11806,9 +11878,9 @@ public ApiResponse deleteCollectionNamespacedResourceQuotaWithHttpInfo 401 Unauthorized - */ - public okhttp3.Call deleteCollectionNamespacedResourceQuotaAsync(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + public okhttp3.Call deleteCollectionNamespacedResourceQuotaAsync(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = deleteCollectionNamespacedResourceQuotaValidateBeforeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + okhttp3.Call localVarCall = deleteCollectionNamespacedResourceQuotaValidateBeforeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -11816,11 +11888,12 @@ public okhttp3.Call deleteCollectionNamespacedResourceQuotaAsync(String namespac /** * Build call for deleteCollectionNamespacedSecret * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param _continue 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) * @param dryRun 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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @param orphanDependents 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) @@ -11840,7 +11913,7 @@ public okhttp3.Call deleteCollectionNamespacedResourceQuotaAsync(String namespac 401 Unauthorized - */ - public okhttp3.Call deleteCollectionNamespacedSecretCall(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + public okhttp3.Call deleteCollectionNamespacedSecretCall(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; // create path and map variables @@ -11869,6 +11942,10 @@ public okhttp3.Call deleteCollectionNamespacedSecretCall(String namespace, Strin localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); } + if (ignoreStoreReadErrorWithClusterBreakingPotential != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("ignoreStoreReadErrorWithClusterBreakingPotential", ignoreStoreReadErrorWithClusterBreakingPotential)); + } + if (labelSelector != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); } @@ -11905,7 +11982,7 @@ public okhttp3.Call deleteCollectionNamespacedSecretCall(String namespace, Strin Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -11923,7 +12000,7 @@ public okhttp3.Call deleteCollectionNamespacedSecretCall(String namespace, Strin } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteCollectionNamespacedSecretValidateBeforeCall(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionNamespacedSecretValidateBeforeCall(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { // verify the required parameter 'namespace' is set if (namespace == null) { @@ -11931,7 +12008,7 @@ private okhttp3.Call deleteCollectionNamespacedSecretValidateBeforeCall(String n } - okhttp3.Call localVarCall = deleteCollectionNamespacedSecretCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + okhttp3.Call localVarCall = deleteCollectionNamespacedSecretCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); return localVarCall; } @@ -11940,11 +12017,12 @@ private okhttp3.Call deleteCollectionNamespacedSecretValidateBeforeCall(String n * * delete collection of Secret * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param _continue 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) * @param dryRun 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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @param orphanDependents 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) @@ -11963,8 +12041,8 @@ private okhttp3.Call deleteCollectionNamespacedSecretValidateBeforeCall(String n 401 Unauthorized - */ - public V1Status deleteCollectionNamespacedSecret(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body) throws ApiException { - ApiResponse localVarResp = deleteCollectionNamespacedSecretWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); + public V1Status deleteCollectionNamespacedSecret(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body) throws ApiException { + ApiResponse localVarResp = deleteCollectionNamespacedSecretWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); return localVarResp.getData(); } @@ -11972,11 +12050,12 @@ public V1Status deleteCollectionNamespacedSecret(String namespace, String pretty * * delete collection of Secret * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param _continue 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) * @param dryRun 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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @param orphanDependents 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) @@ -11995,8 +12074,8 @@ public V1Status deleteCollectionNamespacedSecret(String namespace, String pretty 401 Unauthorized - */ - public ApiResponse deleteCollectionNamespacedSecretWithHttpInfo(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body) throws ApiException { - okhttp3.Call localVarCall = deleteCollectionNamespacedSecretValidateBeforeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, null); + public ApiResponse deleteCollectionNamespacedSecretWithHttpInfo(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteCollectionNamespacedSecretValidateBeforeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -12005,11 +12084,12 @@ public ApiResponse deleteCollectionNamespacedSecretWithHttpInfo(String * (asynchronously) * delete collection of Secret * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param _continue 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) * @param dryRun 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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @param orphanDependents 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) @@ -12029,9 +12109,9 @@ public ApiResponse deleteCollectionNamespacedSecretWithHttpInfo(String 401 Unauthorized - */ - public okhttp3.Call deleteCollectionNamespacedSecretAsync(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + public okhttp3.Call deleteCollectionNamespacedSecretAsync(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = deleteCollectionNamespacedSecretValidateBeforeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + okhttp3.Call localVarCall = deleteCollectionNamespacedSecretValidateBeforeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -12039,11 +12119,12 @@ public okhttp3.Call deleteCollectionNamespacedSecretAsync(String namespace, Stri /** * Build call for deleteCollectionNamespacedService * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param _continue 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) * @param dryRun 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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @param orphanDependents 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) @@ -12063,7 +12144,7 @@ public okhttp3.Call deleteCollectionNamespacedSecretAsync(String namespace, Stri 401 Unauthorized - */ - public okhttp3.Call deleteCollectionNamespacedServiceCall(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + public okhttp3.Call deleteCollectionNamespacedServiceCall(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; // create path and map variables @@ -12092,6 +12173,10 @@ public okhttp3.Call deleteCollectionNamespacedServiceCall(String namespace, Stri localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); } + if (ignoreStoreReadErrorWithClusterBreakingPotential != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("ignoreStoreReadErrorWithClusterBreakingPotential", ignoreStoreReadErrorWithClusterBreakingPotential)); + } + if (labelSelector != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); } @@ -12128,7 +12213,7 @@ public okhttp3.Call deleteCollectionNamespacedServiceCall(String namespace, Stri Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -12146,7 +12231,7 @@ public okhttp3.Call deleteCollectionNamespacedServiceCall(String namespace, Stri } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteCollectionNamespacedServiceValidateBeforeCall(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionNamespacedServiceValidateBeforeCall(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { // verify the required parameter 'namespace' is set if (namespace == null) { @@ -12154,7 +12239,7 @@ private okhttp3.Call deleteCollectionNamespacedServiceValidateBeforeCall(String } - okhttp3.Call localVarCall = deleteCollectionNamespacedServiceCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + okhttp3.Call localVarCall = deleteCollectionNamespacedServiceCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); return localVarCall; } @@ -12163,11 +12248,12 @@ private okhttp3.Call deleteCollectionNamespacedServiceValidateBeforeCall(String * * delete collection of Service * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param _continue 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) * @param dryRun 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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @param orphanDependents 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) @@ -12186,8 +12272,8 @@ private okhttp3.Call deleteCollectionNamespacedServiceValidateBeforeCall(String 401 Unauthorized - */ - public V1Status deleteCollectionNamespacedService(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body) throws ApiException { - ApiResponse localVarResp = deleteCollectionNamespacedServiceWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); + public V1Status deleteCollectionNamespacedService(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body) throws ApiException { + ApiResponse localVarResp = deleteCollectionNamespacedServiceWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); return localVarResp.getData(); } @@ -12195,11 +12281,12 @@ public V1Status deleteCollectionNamespacedService(String namespace, String prett * * delete collection of Service * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param _continue 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) * @param dryRun 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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @param orphanDependents 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) @@ -12218,8 +12305,8 @@ public V1Status deleteCollectionNamespacedService(String namespace, String prett 401 Unauthorized - */ - public ApiResponse deleteCollectionNamespacedServiceWithHttpInfo(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body) throws ApiException { - okhttp3.Call localVarCall = deleteCollectionNamespacedServiceValidateBeforeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, null); + public ApiResponse deleteCollectionNamespacedServiceWithHttpInfo(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteCollectionNamespacedServiceValidateBeforeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -12228,11 +12315,12 @@ public ApiResponse deleteCollectionNamespacedServiceWithHttpInfo(Strin * (asynchronously) * delete collection of Service * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param _continue 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) * @param dryRun 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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @param orphanDependents 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) @@ -12252,9 +12340,9 @@ public ApiResponse deleteCollectionNamespacedServiceWithHttpInfo(Strin 401 Unauthorized - */ - public okhttp3.Call deleteCollectionNamespacedServiceAsync(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + public okhttp3.Call deleteCollectionNamespacedServiceAsync(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = deleteCollectionNamespacedServiceValidateBeforeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + okhttp3.Call localVarCall = deleteCollectionNamespacedServiceValidateBeforeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -12262,11 +12350,12 @@ public okhttp3.Call deleteCollectionNamespacedServiceAsync(String namespace, Str /** * Build call for deleteCollectionNamespacedServiceAccount * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param _continue 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) * @param dryRun 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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @param orphanDependents 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) @@ -12286,7 +12375,7 @@ public okhttp3.Call deleteCollectionNamespacedServiceAsync(String namespace, Str 401 Unauthorized - */ - public okhttp3.Call deleteCollectionNamespacedServiceAccountCall(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + public okhttp3.Call deleteCollectionNamespacedServiceAccountCall(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; // create path and map variables @@ -12315,6 +12404,10 @@ public okhttp3.Call deleteCollectionNamespacedServiceAccountCall(String namespac localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); } + if (ignoreStoreReadErrorWithClusterBreakingPotential != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("ignoreStoreReadErrorWithClusterBreakingPotential", ignoreStoreReadErrorWithClusterBreakingPotential)); + } + if (labelSelector != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); } @@ -12351,7 +12444,7 @@ public okhttp3.Call deleteCollectionNamespacedServiceAccountCall(String namespac Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -12369,7 +12462,7 @@ public okhttp3.Call deleteCollectionNamespacedServiceAccountCall(String namespac } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteCollectionNamespacedServiceAccountValidateBeforeCall(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionNamespacedServiceAccountValidateBeforeCall(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { // verify the required parameter 'namespace' is set if (namespace == null) { @@ -12377,7 +12470,7 @@ private okhttp3.Call deleteCollectionNamespacedServiceAccountValidateBeforeCall( } - okhttp3.Call localVarCall = deleteCollectionNamespacedServiceAccountCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + okhttp3.Call localVarCall = deleteCollectionNamespacedServiceAccountCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); return localVarCall; } @@ -12386,11 +12479,12 @@ private okhttp3.Call deleteCollectionNamespacedServiceAccountValidateBeforeCall( * * delete collection of ServiceAccount * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param _continue 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) * @param dryRun 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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @param orphanDependents 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) @@ -12409,8 +12503,8 @@ private okhttp3.Call deleteCollectionNamespacedServiceAccountValidateBeforeCall( 401 Unauthorized - */ - public V1Status deleteCollectionNamespacedServiceAccount(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body) throws ApiException { - ApiResponse localVarResp = deleteCollectionNamespacedServiceAccountWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); + public V1Status deleteCollectionNamespacedServiceAccount(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body) throws ApiException { + ApiResponse localVarResp = deleteCollectionNamespacedServiceAccountWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); return localVarResp.getData(); } @@ -12418,11 +12512,12 @@ public V1Status deleteCollectionNamespacedServiceAccount(String namespace, Strin * * delete collection of ServiceAccount * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param _continue 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) * @param dryRun 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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @param orphanDependents 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) @@ -12441,8 +12536,8 @@ public V1Status deleteCollectionNamespacedServiceAccount(String namespace, Strin 401 Unauthorized - */ - public ApiResponse deleteCollectionNamespacedServiceAccountWithHttpInfo(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body) throws ApiException { - okhttp3.Call localVarCall = deleteCollectionNamespacedServiceAccountValidateBeforeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, null); + public ApiResponse deleteCollectionNamespacedServiceAccountWithHttpInfo(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteCollectionNamespacedServiceAccountValidateBeforeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -12451,11 +12546,12 @@ public ApiResponse deleteCollectionNamespacedServiceAccountWithHttpInf * (asynchronously) * delete collection of ServiceAccount * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param _continue 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) * @param dryRun 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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @param orphanDependents 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) @@ -12475,20 +12571,21 @@ public ApiResponse deleteCollectionNamespacedServiceAccountWithHttpInf 401 Unauthorized - */ - public okhttp3.Call deleteCollectionNamespacedServiceAccountAsync(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + public okhttp3.Call deleteCollectionNamespacedServiceAccountAsync(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = deleteCollectionNamespacedServiceAccountValidateBeforeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + okhttp3.Call localVarCall = deleteCollectionNamespacedServiceAccountValidateBeforeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for deleteCollectionNode - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param _continue 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) * @param dryRun 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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @param orphanDependents 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) @@ -12508,7 +12605,7 @@ public okhttp3.Call deleteCollectionNamespacedServiceAccountAsync(String namespa 401 Unauthorized - */ - public okhttp3.Call deleteCollectionNodeCall(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + public okhttp3.Call deleteCollectionNodeCall(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; // create path and map variables @@ -12536,6 +12633,10 @@ public okhttp3.Call deleteCollectionNodeCall(String pretty, String _continue, St localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); } + if (ignoreStoreReadErrorWithClusterBreakingPotential != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("ignoreStoreReadErrorWithClusterBreakingPotential", ignoreStoreReadErrorWithClusterBreakingPotential)); + } + if (labelSelector != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); } @@ -12572,7 +12673,7 @@ public okhttp3.Call deleteCollectionNodeCall(String pretty, String _continue, St Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -12590,10 +12691,10 @@ public okhttp3.Call deleteCollectionNodeCall(String pretty, String _continue, St } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteCollectionNodeValidateBeforeCall(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionNodeValidateBeforeCall(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = deleteCollectionNodeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + okhttp3.Call localVarCall = deleteCollectionNodeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); return localVarCall; } @@ -12601,11 +12702,12 @@ private okhttp3.Call deleteCollectionNodeValidateBeforeCall(String pretty, Strin /** * * delete collection of Node - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param _continue 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) * @param dryRun 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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @param orphanDependents 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) @@ -12624,19 +12726,20 @@ private okhttp3.Call deleteCollectionNodeValidateBeforeCall(String pretty, Strin 401 Unauthorized - */ - public V1Status deleteCollectionNode(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body) throws ApiException { - ApiResponse localVarResp = deleteCollectionNodeWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); + public V1Status deleteCollectionNode(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body) throws ApiException { + ApiResponse localVarResp = deleteCollectionNodeWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); return localVarResp.getData(); } /** * * delete collection of Node - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param _continue 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) * @param dryRun 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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @param orphanDependents 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) @@ -12655,8 +12758,8 @@ public V1Status deleteCollectionNode(String pretty, String _continue, String dry 401 Unauthorized - */ - public ApiResponse deleteCollectionNodeWithHttpInfo(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body) throws ApiException { - okhttp3.Call localVarCall = deleteCollectionNodeValidateBeforeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, null); + public ApiResponse deleteCollectionNodeWithHttpInfo(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteCollectionNodeValidateBeforeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -12664,11 +12767,12 @@ public ApiResponse deleteCollectionNodeWithHttpInfo(String pretty, Str /** * (asynchronously) * delete collection of Node - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param _continue 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) * @param dryRun 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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @param orphanDependents 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) @@ -12688,20 +12792,21 @@ public ApiResponse deleteCollectionNodeWithHttpInfo(String pretty, Str 401 Unauthorized - */ - public okhttp3.Call deleteCollectionNodeAsync(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + public okhttp3.Call deleteCollectionNodeAsync(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = deleteCollectionNodeValidateBeforeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + okhttp3.Call localVarCall = deleteCollectionNodeValidateBeforeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for deleteCollectionPersistentVolume - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param _continue 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) * @param dryRun 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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @param orphanDependents 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) @@ -12721,7 +12826,7 @@ public okhttp3.Call deleteCollectionNodeAsync(String pretty, String _continue, S 401 Unauthorized - */ - public okhttp3.Call deleteCollectionPersistentVolumeCall(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + public okhttp3.Call deleteCollectionPersistentVolumeCall(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; // create path and map variables @@ -12749,6 +12854,10 @@ public okhttp3.Call deleteCollectionPersistentVolumeCall(String pretty, String _ localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); } + if (ignoreStoreReadErrorWithClusterBreakingPotential != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("ignoreStoreReadErrorWithClusterBreakingPotential", ignoreStoreReadErrorWithClusterBreakingPotential)); + } + if (labelSelector != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); } @@ -12785,7 +12894,7 @@ public okhttp3.Call deleteCollectionPersistentVolumeCall(String pretty, String _ Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -12803,10 +12912,10 @@ public okhttp3.Call deleteCollectionPersistentVolumeCall(String pretty, String _ } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteCollectionPersistentVolumeValidateBeforeCall(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionPersistentVolumeValidateBeforeCall(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = deleteCollectionPersistentVolumeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + okhttp3.Call localVarCall = deleteCollectionPersistentVolumeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); return localVarCall; } @@ -12814,11 +12923,12 @@ private okhttp3.Call deleteCollectionPersistentVolumeValidateBeforeCall(String p /** * * delete collection of PersistentVolume - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param _continue 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) * @param dryRun 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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @param orphanDependents 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) @@ -12837,19 +12947,20 @@ private okhttp3.Call deleteCollectionPersistentVolumeValidateBeforeCall(String p 401 Unauthorized - */ - public V1Status deleteCollectionPersistentVolume(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body) throws ApiException { - ApiResponse localVarResp = deleteCollectionPersistentVolumeWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); + public V1Status deleteCollectionPersistentVolume(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body) throws ApiException { + ApiResponse localVarResp = deleteCollectionPersistentVolumeWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); return localVarResp.getData(); } /** * * delete collection of PersistentVolume - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param _continue 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) * @param dryRun 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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @param orphanDependents 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) @@ -12868,8 +12979,8 @@ public V1Status deleteCollectionPersistentVolume(String pretty, String _continue 401 Unauthorized - */ - public ApiResponse deleteCollectionPersistentVolumeWithHttpInfo(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body) throws ApiException { - okhttp3.Call localVarCall = deleteCollectionPersistentVolumeValidateBeforeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, null); + public ApiResponse deleteCollectionPersistentVolumeWithHttpInfo(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteCollectionPersistentVolumeValidateBeforeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -12877,11 +12988,12 @@ public ApiResponse deleteCollectionPersistentVolumeWithHttpInfo(String /** * (asynchronously) * delete collection of PersistentVolume - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param _continue 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) * @param dryRun 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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @param orphanDependents 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) @@ -12901,9 +13013,9 @@ public ApiResponse deleteCollectionPersistentVolumeWithHttpInfo(String 401 Unauthorized - */ - public okhttp3.Call deleteCollectionPersistentVolumeAsync(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + public okhttp3.Call deleteCollectionPersistentVolumeAsync(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = deleteCollectionPersistentVolumeValidateBeforeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + okhttp3.Call localVarCall = deleteCollectionPersistentVolumeValidateBeforeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -12911,9 +13023,10 @@ public okhttp3.Call deleteCollectionPersistentVolumeAsync(String pretty, String /** * Build call for deleteNamespace * @param name name of the Namespace (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @param orphanDependents 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) * @param propagationPolicy 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. (optional) * @param body (optional) @@ -12928,7 +13041,7 @@ public okhttp3.Call deleteCollectionPersistentVolumeAsync(String pretty, String 401 Unauthorized - */ - public okhttp3.Call deleteNamespaceCall(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + public okhttp3.Call deleteNamespaceCall(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; // create path and map variables @@ -12949,6 +13062,10 @@ public okhttp3.Call deleteNamespaceCall(String name, String pretty, String dryRu localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); } + if (ignoreStoreReadErrorWithClusterBreakingPotential != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("ignoreStoreReadErrorWithClusterBreakingPotential", ignoreStoreReadErrorWithClusterBreakingPotential)); + } + if (orphanDependents != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("orphanDependents", orphanDependents)); } @@ -12961,7 +13078,7 @@ public okhttp3.Call deleteNamespaceCall(String name, String pretty, String dryRu Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -12979,7 +13096,7 @@ public okhttp3.Call deleteNamespaceCall(String name, String pretty, String dryRu } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteNamespaceValidateBeforeCall(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteNamespaceValidateBeforeCall(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -12987,7 +13104,7 @@ private okhttp3.Call deleteNamespaceValidateBeforeCall(String name, String prett } - okhttp3.Call localVarCall = deleteNamespaceCall(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); + okhttp3.Call localVarCall = deleteNamespaceCall(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); return localVarCall; } @@ -12996,9 +13113,10 @@ private okhttp3.Call deleteNamespaceValidateBeforeCall(String name, String prett * * delete a Namespace * @param name name of the Namespace (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @param orphanDependents 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) * @param propagationPolicy 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. (optional) * @param body (optional) @@ -13012,8 +13130,8 @@ private okhttp3.Call deleteNamespaceValidateBeforeCall(String name, String prett 401 Unauthorized - */ - public V1Status deleteNamespace(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { - ApiResponse localVarResp = deleteNamespaceWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body); + public V1Status deleteNamespace(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { + ApiResponse localVarResp = deleteNamespaceWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body); return localVarResp.getData(); } @@ -13021,9 +13139,10 @@ public V1Status deleteNamespace(String name, String pretty, String dryRun, Integ * * delete a Namespace * @param name name of the Namespace (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @param orphanDependents 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) * @param propagationPolicy 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. (optional) * @param body (optional) @@ -13037,8 +13156,8 @@ public V1Status deleteNamespace(String name, String pretty, String dryRun, Integ 401 Unauthorized - */ - public ApiResponse deleteNamespaceWithHttpInfo(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { - okhttp3.Call localVarCall = deleteNamespaceValidateBeforeCall(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, null); + public ApiResponse deleteNamespaceWithHttpInfo(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteNamespaceValidateBeforeCall(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -13047,9 +13166,10 @@ public ApiResponse deleteNamespaceWithHttpInfo(String name, String pre * (asynchronously) * delete a Namespace * @param name name of the Namespace (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @param orphanDependents 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) * @param propagationPolicy 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. (optional) * @param body (optional) @@ -13064,9 +13184,9 @@ public ApiResponse deleteNamespaceWithHttpInfo(String name, String pre 401 Unauthorized - */ - public okhttp3.Call deleteNamespaceAsync(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + public okhttp3.Call deleteNamespaceAsync(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = deleteNamespaceValidateBeforeCall(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); + okhttp3.Call localVarCall = deleteNamespaceValidateBeforeCall(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -13075,9 +13195,10 @@ public okhttp3.Call deleteNamespaceAsync(String name, String pretty, String dryR * Build call for deleteNamespacedConfigMap * @param name name of the ConfigMap (required) * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @param orphanDependents 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) * @param propagationPolicy 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. (optional) * @param body (optional) @@ -13092,7 +13213,7 @@ public okhttp3.Call deleteNamespaceAsync(String name, String pretty, String dryR 401 Unauthorized - */ - public okhttp3.Call deleteNamespacedConfigMapCall(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + public okhttp3.Call deleteNamespacedConfigMapCall(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; // create path and map variables @@ -13114,6 +13235,10 @@ public okhttp3.Call deleteNamespacedConfigMapCall(String name, String namespace, localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); } + if (ignoreStoreReadErrorWithClusterBreakingPotential != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("ignoreStoreReadErrorWithClusterBreakingPotential", ignoreStoreReadErrorWithClusterBreakingPotential)); + } + if (orphanDependents != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("orphanDependents", orphanDependents)); } @@ -13126,7 +13251,7 @@ public okhttp3.Call deleteNamespacedConfigMapCall(String name, String namespace, Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -13144,7 +13269,7 @@ public okhttp3.Call deleteNamespacedConfigMapCall(String name, String namespace, } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteNamespacedConfigMapValidateBeforeCall(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteNamespacedConfigMapValidateBeforeCall(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -13157,7 +13282,7 @@ private okhttp3.Call deleteNamespacedConfigMapValidateBeforeCall(String name, St } - okhttp3.Call localVarCall = deleteNamespacedConfigMapCall(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); + okhttp3.Call localVarCall = deleteNamespacedConfigMapCall(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); return localVarCall; } @@ -13167,9 +13292,10 @@ private okhttp3.Call deleteNamespacedConfigMapValidateBeforeCall(String name, St * delete a ConfigMap * @param name name of the ConfigMap (required) * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @param orphanDependents 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) * @param propagationPolicy 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. (optional) * @param body (optional) @@ -13183,8 +13309,8 @@ private okhttp3.Call deleteNamespacedConfigMapValidateBeforeCall(String name, St 401 Unauthorized - */ - public V1Status deleteNamespacedConfigMap(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { - ApiResponse localVarResp = deleteNamespacedConfigMapWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body); + public V1Status deleteNamespacedConfigMap(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { + ApiResponse localVarResp = deleteNamespacedConfigMapWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body); return localVarResp.getData(); } @@ -13193,9 +13319,10 @@ public V1Status deleteNamespacedConfigMap(String name, String namespace, String * delete a ConfigMap * @param name name of the ConfigMap (required) * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @param orphanDependents 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) * @param propagationPolicy 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. (optional) * @param body (optional) @@ -13209,8 +13336,8 @@ public V1Status deleteNamespacedConfigMap(String name, String namespace, String 401 Unauthorized - */ - public ApiResponse deleteNamespacedConfigMapWithHttpInfo(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { - okhttp3.Call localVarCall = deleteNamespacedConfigMapValidateBeforeCall(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, null); + public ApiResponse deleteNamespacedConfigMapWithHttpInfo(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteNamespacedConfigMapValidateBeforeCall(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -13220,9 +13347,10 @@ public ApiResponse deleteNamespacedConfigMapWithHttpInfo(String name, * delete a ConfigMap * @param name name of the ConfigMap (required) * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @param orphanDependents 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) * @param propagationPolicy 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. (optional) * @param body (optional) @@ -13237,9 +13365,9 @@ public ApiResponse deleteNamespacedConfigMapWithHttpInfo(String name, 401 Unauthorized - */ - public okhttp3.Call deleteNamespacedConfigMapAsync(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + public okhttp3.Call deleteNamespacedConfigMapAsync(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = deleteNamespacedConfigMapValidateBeforeCall(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); + okhttp3.Call localVarCall = deleteNamespacedConfigMapValidateBeforeCall(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -13248,9 +13376,10 @@ public okhttp3.Call deleteNamespacedConfigMapAsync(String name, String namespace * Build call for deleteNamespacedEndpoints * @param name name of the Endpoints (required) * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @param orphanDependents 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) * @param propagationPolicy 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. (optional) * @param body (optional) @@ -13265,7 +13394,7 @@ public okhttp3.Call deleteNamespacedConfigMapAsync(String name, String namespace 401 Unauthorized - */ - public okhttp3.Call deleteNamespacedEndpointsCall(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + public okhttp3.Call deleteNamespacedEndpointsCall(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; // create path and map variables @@ -13287,6 +13416,10 @@ public okhttp3.Call deleteNamespacedEndpointsCall(String name, String namespace, localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); } + if (ignoreStoreReadErrorWithClusterBreakingPotential != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("ignoreStoreReadErrorWithClusterBreakingPotential", ignoreStoreReadErrorWithClusterBreakingPotential)); + } + if (orphanDependents != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("orphanDependents", orphanDependents)); } @@ -13299,7 +13432,7 @@ public okhttp3.Call deleteNamespacedEndpointsCall(String name, String namespace, Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -13317,7 +13450,7 @@ public okhttp3.Call deleteNamespacedEndpointsCall(String name, String namespace, } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteNamespacedEndpointsValidateBeforeCall(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteNamespacedEndpointsValidateBeforeCall(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -13330,7 +13463,7 @@ private okhttp3.Call deleteNamespacedEndpointsValidateBeforeCall(String name, St } - okhttp3.Call localVarCall = deleteNamespacedEndpointsCall(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); + okhttp3.Call localVarCall = deleteNamespacedEndpointsCall(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); return localVarCall; } @@ -13340,9 +13473,10 @@ private okhttp3.Call deleteNamespacedEndpointsValidateBeforeCall(String name, St * delete Endpoints * @param name name of the Endpoints (required) * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @param orphanDependents 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) * @param propagationPolicy 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. (optional) * @param body (optional) @@ -13356,8 +13490,8 @@ private okhttp3.Call deleteNamespacedEndpointsValidateBeforeCall(String name, St 401 Unauthorized - */ - public V1Status deleteNamespacedEndpoints(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { - ApiResponse localVarResp = deleteNamespacedEndpointsWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body); + public V1Status deleteNamespacedEndpoints(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { + ApiResponse localVarResp = deleteNamespacedEndpointsWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body); return localVarResp.getData(); } @@ -13366,9 +13500,10 @@ public V1Status deleteNamespacedEndpoints(String name, String namespace, String * delete Endpoints * @param name name of the Endpoints (required) * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @param orphanDependents 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) * @param propagationPolicy 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. (optional) * @param body (optional) @@ -13382,8 +13517,8 @@ public V1Status deleteNamespacedEndpoints(String name, String namespace, String 401 Unauthorized - */ - public ApiResponse deleteNamespacedEndpointsWithHttpInfo(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { - okhttp3.Call localVarCall = deleteNamespacedEndpointsValidateBeforeCall(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, null); + public ApiResponse deleteNamespacedEndpointsWithHttpInfo(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteNamespacedEndpointsValidateBeforeCall(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -13393,9 +13528,10 @@ public ApiResponse deleteNamespacedEndpointsWithHttpInfo(String name, * delete Endpoints * @param name name of the Endpoints (required) * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @param orphanDependents 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) * @param propagationPolicy 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. (optional) * @param body (optional) @@ -13410,9 +13546,9 @@ public ApiResponse deleteNamespacedEndpointsWithHttpInfo(String name, 401 Unauthorized - */ - public okhttp3.Call deleteNamespacedEndpointsAsync(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + public okhttp3.Call deleteNamespacedEndpointsAsync(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = deleteNamespacedEndpointsValidateBeforeCall(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); + okhttp3.Call localVarCall = deleteNamespacedEndpointsValidateBeforeCall(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -13421,9 +13557,10 @@ public okhttp3.Call deleteNamespacedEndpointsAsync(String name, String namespace * Build call for deleteNamespacedEvent * @param name name of the Event (required) * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @param orphanDependents 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) * @param propagationPolicy 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. (optional) * @param body (optional) @@ -13438,7 +13575,7 @@ public okhttp3.Call deleteNamespacedEndpointsAsync(String name, String namespace 401 Unauthorized - */ - public okhttp3.Call deleteNamespacedEventCall(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + public okhttp3.Call deleteNamespacedEventCall(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; // create path and map variables @@ -13460,6 +13597,10 @@ public okhttp3.Call deleteNamespacedEventCall(String name, String namespace, Str localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); } + if (ignoreStoreReadErrorWithClusterBreakingPotential != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("ignoreStoreReadErrorWithClusterBreakingPotential", ignoreStoreReadErrorWithClusterBreakingPotential)); + } + if (orphanDependents != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("orphanDependents", orphanDependents)); } @@ -13472,7 +13613,7 @@ public okhttp3.Call deleteNamespacedEventCall(String name, String namespace, Str Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -13490,7 +13631,7 @@ public okhttp3.Call deleteNamespacedEventCall(String name, String namespace, Str } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteNamespacedEventValidateBeforeCall(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteNamespacedEventValidateBeforeCall(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -13503,7 +13644,7 @@ private okhttp3.Call deleteNamespacedEventValidateBeforeCall(String name, String } - okhttp3.Call localVarCall = deleteNamespacedEventCall(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); + okhttp3.Call localVarCall = deleteNamespacedEventCall(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); return localVarCall; } @@ -13513,9 +13654,10 @@ private okhttp3.Call deleteNamespacedEventValidateBeforeCall(String name, String * delete an Event * @param name name of the Event (required) * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @param orphanDependents 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) * @param propagationPolicy 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. (optional) * @param body (optional) @@ -13529,8 +13671,8 @@ private okhttp3.Call deleteNamespacedEventValidateBeforeCall(String name, String 401 Unauthorized - */ - public V1Status deleteNamespacedEvent(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { - ApiResponse localVarResp = deleteNamespacedEventWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body); + public V1Status deleteNamespacedEvent(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { + ApiResponse localVarResp = deleteNamespacedEventWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body); return localVarResp.getData(); } @@ -13539,9 +13681,10 @@ public V1Status deleteNamespacedEvent(String name, String namespace, String pret * delete an Event * @param name name of the Event (required) * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @param orphanDependents 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) * @param propagationPolicy 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. (optional) * @param body (optional) @@ -13555,8 +13698,8 @@ public V1Status deleteNamespacedEvent(String name, String namespace, String pret 401 Unauthorized - */ - public ApiResponse deleteNamespacedEventWithHttpInfo(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { - okhttp3.Call localVarCall = deleteNamespacedEventValidateBeforeCall(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, null); + public ApiResponse deleteNamespacedEventWithHttpInfo(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteNamespacedEventValidateBeforeCall(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -13566,9 +13709,10 @@ public ApiResponse deleteNamespacedEventWithHttpInfo(String name, Stri * delete an Event * @param name name of the Event (required) * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @param orphanDependents 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) * @param propagationPolicy 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. (optional) * @param body (optional) @@ -13583,9 +13727,9 @@ public ApiResponse deleteNamespacedEventWithHttpInfo(String name, Stri 401 Unauthorized - */ - public okhttp3.Call deleteNamespacedEventAsync(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + public okhttp3.Call deleteNamespacedEventAsync(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = deleteNamespacedEventValidateBeforeCall(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); + okhttp3.Call localVarCall = deleteNamespacedEventValidateBeforeCall(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -13594,9 +13738,10 @@ public okhttp3.Call deleteNamespacedEventAsync(String name, String namespace, St * Build call for deleteNamespacedLimitRange * @param name name of the LimitRange (required) * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @param orphanDependents 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) * @param propagationPolicy 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. (optional) * @param body (optional) @@ -13611,7 +13756,7 @@ public okhttp3.Call deleteNamespacedEventAsync(String name, String namespace, St 401 Unauthorized - */ - public okhttp3.Call deleteNamespacedLimitRangeCall(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + public okhttp3.Call deleteNamespacedLimitRangeCall(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; // create path and map variables @@ -13633,6 +13778,10 @@ public okhttp3.Call deleteNamespacedLimitRangeCall(String name, String namespace localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); } + if (ignoreStoreReadErrorWithClusterBreakingPotential != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("ignoreStoreReadErrorWithClusterBreakingPotential", ignoreStoreReadErrorWithClusterBreakingPotential)); + } + if (orphanDependents != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("orphanDependents", orphanDependents)); } @@ -13645,7 +13794,7 @@ public okhttp3.Call deleteNamespacedLimitRangeCall(String name, String namespace Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -13663,7 +13812,7 @@ public okhttp3.Call deleteNamespacedLimitRangeCall(String name, String namespace } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteNamespacedLimitRangeValidateBeforeCall(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteNamespacedLimitRangeValidateBeforeCall(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -13676,7 +13825,7 @@ private okhttp3.Call deleteNamespacedLimitRangeValidateBeforeCall(String name, S } - okhttp3.Call localVarCall = deleteNamespacedLimitRangeCall(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); + okhttp3.Call localVarCall = deleteNamespacedLimitRangeCall(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); return localVarCall; } @@ -13686,9 +13835,10 @@ private okhttp3.Call deleteNamespacedLimitRangeValidateBeforeCall(String name, S * delete a LimitRange * @param name name of the LimitRange (required) * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @param orphanDependents 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) * @param propagationPolicy 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. (optional) * @param body (optional) @@ -13702,8 +13852,8 @@ private okhttp3.Call deleteNamespacedLimitRangeValidateBeforeCall(String name, S 401 Unauthorized - */ - public V1Status deleteNamespacedLimitRange(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { - ApiResponse localVarResp = deleteNamespacedLimitRangeWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body); + public V1Status deleteNamespacedLimitRange(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { + ApiResponse localVarResp = deleteNamespacedLimitRangeWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body); return localVarResp.getData(); } @@ -13712,9 +13862,10 @@ public V1Status deleteNamespacedLimitRange(String name, String namespace, String * delete a LimitRange * @param name name of the LimitRange (required) * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @param orphanDependents 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) * @param propagationPolicy 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. (optional) * @param body (optional) @@ -13728,8 +13879,8 @@ public V1Status deleteNamespacedLimitRange(String name, String namespace, String 401 Unauthorized - */ - public ApiResponse deleteNamespacedLimitRangeWithHttpInfo(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { - okhttp3.Call localVarCall = deleteNamespacedLimitRangeValidateBeforeCall(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, null); + public ApiResponse deleteNamespacedLimitRangeWithHttpInfo(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteNamespacedLimitRangeValidateBeforeCall(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -13739,9 +13890,10 @@ public ApiResponse deleteNamespacedLimitRangeWithHttpInfo(String name, * delete a LimitRange * @param name name of the LimitRange (required) * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @param orphanDependents 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) * @param propagationPolicy 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. (optional) * @param body (optional) @@ -13756,9 +13908,9 @@ public ApiResponse deleteNamespacedLimitRangeWithHttpInfo(String name, 401 Unauthorized - */ - public okhttp3.Call deleteNamespacedLimitRangeAsync(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + public okhttp3.Call deleteNamespacedLimitRangeAsync(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = deleteNamespacedLimitRangeValidateBeforeCall(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); + okhttp3.Call localVarCall = deleteNamespacedLimitRangeValidateBeforeCall(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -13767,9 +13919,10 @@ public okhttp3.Call deleteNamespacedLimitRangeAsync(String name, String namespac * Build call for deleteNamespacedPersistentVolumeClaim * @param name name of the PersistentVolumeClaim (required) * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @param orphanDependents 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) * @param propagationPolicy 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. (optional) * @param body (optional) @@ -13784,7 +13937,7 @@ public okhttp3.Call deleteNamespacedLimitRangeAsync(String name, String namespac 401 Unauthorized - */ - public okhttp3.Call deleteNamespacedPersistentVolumeClaimCall(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + public okhttp3.Call deleteNamespacedPersistentVolumeClaimCall(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; // create path and map variables @@ -13806,6 +13959,10 @@ public okhttp3.Call deleteNamespacedPersistentVolumeClaimCall(String name, Strin localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); } + if (ignoreStoreReadErrorWithClusterBreakingPotential != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("ignoreStoreReadErrorWithClusterBreakingPotential", ignoreStoreReadErrorWithClusterBreakingPotential)); + } + if (orphanDependents != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("orphanDependents", orphanDependents)); } @@ -13818,7 +13975,7 @@ public okhttp3.Call deleteNamespacedPersistentVolumeClaimCall(String name, Strin Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -13836,7 +13993,7 @@ public okhttp3.Call deleteNamespacedPersistentVolumeClaimCall(String name, Strin } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteNamespacedPersistentVolumeClaimValidateBeforeCall(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteNamespacedPersistentVolumeClaimValidateBeforeCall(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -13849,7 +14006,7 @@ private okhttp3.Call deleteNamespacedPersistentVolumeClaimValidateBeforeCall(Str } - okhttp3.Call localVarCall = deleteNamespacedPersistentVolumeClaimCall(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); + okhttp3.Call localVarCall = deleteNamespacedPersistentVolumeClaimCall(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); return localVarCall; } @@ -13859,9 +14016,10 @@ private okhttp3.Call deleteNamespacedPersistentVolumeClaimValidateBeforeCall(Str * delete a PersistentVolumeClaim * @param name name of the PersistentVolumeClaim (required) * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @param orphanDependents 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) * @param propagationPolicy 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. (optional) * @param body (optional) @@ -13875,8 +14033,8 @@ private okhttp3.Call deleteNamespacedPersistentVolumeClaimValidateBeforeCall(Str 401 Unauthorized - */ - public V1PersistentVolumeClaim deleteNamespacedPersistentVolumeClaim(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { - ApiResponse localVarResp = deleteNamespacedPersistentVolumeClaimWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body); + public V1PersistentVolumeClaim deleteNamespacedPersistentVolumeClaim(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { + ApiResponse localVarResp = deleteNamespacedPersistentVolumeClaimWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body); return localVarResp.getData(); } @@ -13885,9 +14043,10 @@ public V1PersistentVolumeClaim deleteNamespacedPersistentVolumeClaim(String name * delete a PersistentVolumeClaim * @param name name of the PersistentVolumeClaim (required) * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @param orphanDependents 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) * @param propagationPolicy 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. (optional) * @param body (optional) @@ -13901,8 +14060,8 @@ public V1PersistentVolumeClaim deleteNamespacedPersistentVolumeClaim(String name 401 Unauthorized - */ - public ApiResponse deleteNamespacedPersistentVolumeClaimWithHttpInfo(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { - okhttp3.Call localVarCall = deleteNamespacedPersistentVolumeClaimValidateBeforeCall(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, null); + public ApiResponse deleteNamespacedPersistentVolumeClaimWithHttpInfo(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteNamespacedPersistentVolumeClaimValidateBeforeCall(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -13912,9 +14071,10 @@ public ApiResponse deleteNamespacedPersistentVolumeClai * delete a PersistentVolumeClaim * @param name name of the PersistentVolumeClaim (required) * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @param orphanDependents 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) * @param propagationPolicy 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. (optional) * @param body (optional) @@ -13929,9 +14089,9 @@ public ApiResponse deleteNamespacedPersistentVolumeClai 401 Unauthorized - */ - public okhttp3.Call deleteNamespacedPersistentVolumeClaimAsync(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + public okhttp3.Call deleteNamespacedPersistentVolumeClaimAsync(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = deleteNamespacedPersistentVolumeClaimValidateBeforeCall(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); + okhttp3.Call localVarCall = deleteNamespacedPersistentVolumeClaimValidateBeforeCall(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -13940,9 +14100,10 @@ public okhttp3.Call deleteNamespacedPersistentVolumeClaimAsync(String name, Stri * Build call for deleteNamespacedPod * @param name name of the Pod (required) * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @param orphanDependents 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) * @param propagationPolicy 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. (optional) * @param body (optional) @@ -13957,7 +14118,7 @@ public okhttp3.Call deleteNamespacedPersistentVolumeClaimAsync(String name, Stri 401 Unauthorized - */ - public okhttp3.Call deleteNamespacedPodCall(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + public okhttp3.Call deleteNamespacedPodCall(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; // create path and map variables @@ -13979,6 +14140,10 @@ public okhttp3.Call deleteNamespacedPodCall(String name, String namespace, Strin localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); } + if (ignoreStoreReadErrorWithClusterBreakingPotential != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("ignoreStoreReadErrorWithClusterBreakingPotential", ignoreStoreReadErrorWithClusterBreakingPotential)); + } + if (orphanDependents != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("orphanDependents", orphanDependents)); } @@ -13991,7 +14156,7 @@ public okhttp3.Call deleteNamespacedPodCall(String name, String namespace, Strin Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -14009,7 +14174,7 @@ public okhttp3.Call deleteNamespacedPodCall(String name, String namespace, Strin } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteNamespacedPodValidateBeforeCall(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteNamespacedPodValidateBeforeCall(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -14022,7 +14187,7 @@ private okhttp3.Call deleteNamespacedPodValidateBeforeCall(String name, String n } - okhttp3.Call localVarCall = deleteNamespacedPodCall(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); + okhttp3.Call localVarCall = deleteNamespacedPodCall(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); return localVarCall; } @@ -14032,9 +14197,10 @@ private okhttp3.Call deleteNamespacedPodValidateBeforeCall(String name, String n * delete a Pod * @param name name of the Pod (required) * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @param orphanDependents 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) * @param propagationPolicy 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. (optional) * @param body (optional) @@ -14048,8 +14214,8 @@ private okhttp3.Call deleteNamespacedPodValidateBeforeCall(String name, String n 401 Unauthorized - */ - public V1Pod deleteNamespacedPod(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { - ApiResponse localVarResp = deleteNamespacedPodWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body); + public V1Pod deleteNamespacedPod(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { + ApiResponse localVarResp = deleteNamespacedPodWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body); return localVarResp.getData(); } @@ -14058,9 +14224,10 @@ public V1Pod deleteNamespacedPod(String name, String namespace, String pretty, S * delete a Pod * @param name name of the Pod (required) * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @param orphanDependents 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) * @param propagationPolicy 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. (optional) * @param body (optional) @@ -14074,8 +14241,8 @@ public V1Pod deleteNamespacedPod(String name, String namespace, String pretty, S 401 Unauthorized - */ - public ApiResponse deleteNamespacedPodWithHttpInfo(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { - okhttp3.Call localVarCall = deleteNamespacedPodValidateBeforeCall(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, null); + public ApiResponse deleteNamespacedPodWithHttpInfo(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteNamespacedPodValidateBeforeCall(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -14085,9 +14252,10 @@ public ApiResponse deleteNamespacedPodWithHttpInfo(String name, String na * delete a Pod * @param name name of the Pod (required) * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @param orphanDependents 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) * @param propagationPolicy 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. (optional) * @param body (optional) @@ -14102,9 +14270,9 @@ public ApiResponse deleteNamespacedPodWithHttpInfo(String name, String na 401 Unauthorized - */ - public okhttp3.Call deleteNamespacedPodAsync(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + public okhttp3.Call deleteNamespacedPodAsync(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = deleteNamespacedPodValidateBeforeCall(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); + okhttp3.Call localVarCall = deleteNamespacedPodValidateBeforeCall(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -14113,9 +14281,10 @@ public okhttp3.Call deleteNamespacedPodAsync(String name, String namespace, Stri * Build call for deleteNamespacedPodTemplate * @param name name of the PodTemplate (required) * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @param orphanDependents 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) * @param propagationPolicy 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. (optional) * @param body (optional) @@ -14130,7 +14299,7 @@ public okhttp3.Call deleteNamespacedPodAsync(String name, String namespace, Stri 401 Unauthorized - */ - public okhttp3.Call deleteNamespacedPodTemplateCall(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + public okhttp3.Call deleteNamespacedPodTemplateCall(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; // create path and map variables @@ -14152,6 +14321,10 @@ public okhttp3.Call deleteNamespacedPodTemplateCall(String name, String namespac localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); } + if (ignoreStoreReadErrorWithClusterBreakingPotential != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("ignoreStoreReadErrorWithClusterBreakingPotential", ignoreStoreReadErrorWithClusterBreakingPotential)); + } + if (orphanDependents != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("orphanDependents", orphanDependents)); } @@ -14164,7 +14337,7 @@ public okhttp3.Call deleteNamespacedPodTemplateCall(String name, String namespac Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -14182,7 +14355,7 @@ public okhttp3.Call deleteNamespacedPodTemplateCall(String name, String namespac } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteNamespacedPodTemplateValidateBeforeCall(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteNamespacedPodTemplateValidateBeforeCall(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -14195,7 +14368,7 @@ private okhttp3.Call deleteNamespacedPodTemplateValidateBeforeCall(String name, } - okhttp3.Call localVarCall = deleteNamespacedPodTemplateCall(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); + okhttp3.Call localVarCall = deleteNamespacedPodTemplateCall(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); return localVarCall; } @@ -14205,9 +14378,10 @@ private okhttp3.Call deleteNamespacedPodTemplateValidateBeforeCall(String name, * delete a PodTemplate * @param name name of the PodTemplate (required) * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @param orphanDependents 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) * @param propagationPolicy 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. (optional) * @param body (optional) @@ -14221,8 +14395,8 @@ private okhttp3.Call deleteNamespacedPodTemplateValidateBeforeCall(String name, 401 Unauthorized - */ - public V1PodTemplate deleteNamespacedPodTemplate(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { - ApiResponse localVarResp = deleteNamespacedPodTemplateWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body); + public V1PodTemplate deleteNamespacedPodTemplate(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { + ApiResponse localVarResp = deleteNamespacedPodTemplateWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body); return localVarResp.getData(); } @@ -14231,9 +14405,10 @@ public V1PodTemplate deleteNamespacedPodTemplate(String name, String namespace, * delete a PodTemplate * @param name name of the PodTemplate (required) * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @param orphanDependents 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) * @param propagationPolicy 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. (optional) * @param body (optional) @@ -14247,8 +14422,8 @@ public V1PodTemplate deleteNamespacedPodTemplate(String name, String namespace, 401 Unauthorized - */ - public ApiResponse deleteNamespacedPodTemplateWithHttpInfo(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { - okhttp3.Call localVarCall = deleteNamespacedPodTemplateValidateBeforeCall(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, null); + public ApiResponse deleteNamespacedPodTemplateWithHttpInfo(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteNamespacedPodTemplateValidateBeforeCall(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -14258,9 +14433,10 @@ public ApiResponse deleteNamespacedPodTemplateWithHttpInfo(String * delete a PodTemplate * @param name name of the PodTemplate (required) * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @param orphanDependents 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) * @param propagationPolicy 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. (optional) * @param body (optional) @@ -14275,9 +14451,9 @@ public ApiResponse deleteNamespacedPodTemplateWithHttpInfo(String 401 Unauthorized - */ - public okhttp3.Call deleteNamespacedPodTemplateAsync(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + public okhttp3.Call deleteNamespacedPodTemplateAsync(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = deleteNamespacedPodTemplateValidateBeforeCall(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); + okhttp3.Call localVarCall = deleteNamespacedPodTemplateValidateBeforeCall(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -14286,9 +14462,10 @@ public okhttp3.Call deleteNamespacedPodTemplateAsync(String name, String namespa * Build call for deleteNamespacedReplicationController * @param name name of the ReplicationController (required) * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @param orphanDependents 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) * @param propagationPolicy 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. (optional) * @param body (optional) @@ -14303,7 +14480,7 @@ public okhttp3.Call deleteNamespacedPodTemplateAsync(String name, String namespa 401 Unauthorized - */ - public okhttp3.Call deleteNamespacedReplicationControllerCall(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + public okhttp3.Call deleteNamespacedReplicationControllerCall(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; // create path and map variables @@ -14325,6 +14502,10 @@ public okhttp3.Call deleteNamespacedReplicationControllerCall(String name, Strin localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); } + if (ignoreStoreReadErrorWithClusterBreakingPotential != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("ignoreStoreReadErrorWithClusterBreakingPotential", ignoreStoreReadErrorWithClusterBreakingPotential)); + } + if (orphanDependents != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("orphanDependents", orphanDependents)); } @@ -14337,7 +14518,7 @@ public okhttp3.Call deleteNamespacedReplicationControllerCall(String name, Strin Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -14355,7 +14536,7 @@ public okhttp3.Call deleteNamespacedReplicationControllerCall(String name, Strin } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteNamespacedReplicationControllerValidateBeforeCall(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteNamespacedReplicationControllerValidateBeforeCall(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -14368,7 +14549,7 @@ private okhttp3.Call deleteNamespacedReplicationControllerValidateBeforeCall(Str } - okhttp3.Call localVarCall = deleteNamespacedReplicationControllerCall(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); + okhttp3.Call localVarCall = deleteNamespacedReplicationControllerCall(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); return localVarCall; } @@ -14378,9 +14559,10 @@ private okhttp3.Call deleteNamespacedReplicationControllerValidateBeforeCall(Str * delete a ReplicationController * @param name name of the ReplicationController (required) * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @param orphanDependents 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) * @param propagationPolicy 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. (optional) * @param body (optional) @@ -14394,8 +14576,8 @@ private okhttp3.Call deleteNamespacedReplicationControllerValidateBeforeCall(Str 401 Unauthorized - */ - public V1Status deleteNamespacedReplicationController(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { - ApiResponse localVarResp = deleteNamespacedReplicationControllerWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body); + public V1Status deleteNamespacedReplicationController(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { + ApiResponse localVarResp = deleteNamespacedReplicationControllerWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body); return localVarResp.getData(); } @@ -14404,9 +14586,10 @@ public V1Status deleteNamespacedReplicationController(String name, String namesp * delete a ReplicationController * @param name name of the ReplicationController (required) * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @param orphanDependents 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) * @param propagationPolicy 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. (optional) * @param body (optional) @@ -14420,8 +14603,8 @@ public V1Status deleteNamespacedReplicationController(String name, String namesp 401 Unauthorized - */ - public ApiResponse deleteNamespacedReplicationControllerWithHttpInfo(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { - okhttp3.Call localVarCall = deleteNamespacedReplicationControllerValidateBeforeCall(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, null); + public ApiResponse deleteNamespacedReplicationControllerWithHttpInfo(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteNamespacedReplicationControllerValidateBeforeCall(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -14431,9 +14614,10 @@ public ApiResponse deleteNamespacedReplicationControllerWithHttpInfo(S * delete a ReplicationController * @param name name of the ReplicationController (required) * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @param orphanDependents 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) * @param propagationPolicy 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. (optional) * @param body (optional) @@ -14448,9 +14632,9 @@ public ApiResponse deleteNamespacedReplicationControllerWithHttpInfo(S 401 Unauthorized - */ - public okhttp3.Call deleteNamespacedReplicationControllerAsync(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + public okhttp3.Call deleteNamespacedReplicationControllerAsync(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = deleteNamespacedReplicationControllerValidateBeforeCall(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); + okhttp3.Call localVarCall = deleteNamespacedReplicationControllerValidateBeforeCall(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -14459,9 +14643,10 @@ public okhttp3.Call deleteNamespacedReplicationControllerAsync(String name, Stri * Build call for deleteNamespacedResourceQuota * @param name name of the ResourceQuota (required) * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @param orphanDependents 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) * @param propagationPolicy 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. (optional) * @param body (optional) @@ -14476,7 +14661,7 @@ public okhttp3.Call deleteNamespacedReplicationControllerAsync(String name, Stri 401 Unauthorized - */ - public okhttp3.Call deleteNamespacedResourceQuotaCall(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + public okhttp3.Call deleteNamespacedResourceQuotaCall(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; // create path and map variables @@ -14498,6 +14683,10 @@ public okhttp3.Call deleteNamespacedResourceQuotaCall(String name, String namesp localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); } + if (ignoreStoreReadErrorWithClusterBreakingPotential != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("ignoreStoreReadErrorWithClusterBreakingPotential", ignoreStoreReadErrorWithClusterBreakingPotential)); + } + if (orphanDependents != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("orphanDependents", orphanDependents)); } @@ -14510,7 +14699,7 @@ public okhttp3.Call deleteNamespacedResourceQuotaCall(String name, String namesp Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -14528,7 +14717,7 @@ public okhttp3.Call deleteNamespacedResourceQuotaCall(String name, String namesp } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteNamespacedResourceQuotaValidateBeforeCall(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteNamespacedResourceQuotaValidateBeforeCall(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -14541,7 +14730,7 @@ private okhttp3.Call deleteNamespacedResourceQuotaValidateBeforeCall(String name } - okhttp3.Call localVarCall = deleteNamespacedResourceQuotaCall(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); + okhttp3.Call localVarCall = deleteNamespacedResourceQuotaCall(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); return localVarCall; } @@ -14551,9 +14740,10 @@ private okhttp3.Call deleteNamespacedResourceQuotaValidateBeforeCall(String name * delete a ResourceQuota * @param name name of the ResourceQuota (required) * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @param orphanDependents 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) * @param propagationPolicy 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. (optional) * @param body (optional) @@ -14567,8 +14757,8 @@ private okhttp3.Call deleteNamespacedResourceQuotaValidateBeforeCall(String name 401 Unauthorized - */ - public V1ResourceQuota deleteNamespacedResourceQuota(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { - ApiResponse localVarResp = deleteNamespacedResourceQuotaWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body); + public V1ResourceQuota deleteNamespacedResourceQuota(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { + ApiResponse localVarResp = deleteNamespacedResourceQuotaWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body); return localVarResp.getData(); } @@ -14577,9 +14767,10 @@ public V1ResourceQuota deleteNamespacedResourceQuota(String name, String namespa * delete a ResourceQuota * @param name name of the ResourceQuota (required) * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @param orphanDependents 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) * @param propagationPolicy 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. (optional) * @param body (optional) @@ -14593,8 +14784,8 @@ public V1ResourceQuota deleteNamespacedResourceQuota(String name, String namespa 401 Unauthorized - */ - public ApiResponse deleteNamespacedResourceQuotaWithHttpInfo(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { - okhttp3.Call localVarCall = deleteNamespacedResourceQuotaValidateBeforeCall(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, null); + public ApiResponse deleteNamespacedResourceQuotaWithHttpInfo(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteNamespacedResourceQuotaValidateBeforeCall(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -14604,9 +14795,10 @@ public ApiResponse deleteNamespacedResourceQuotaWithHttpInfo(St * delete a ResourceQuota * @param name name of the ResourceQuota (required) * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @param orphanDependents 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) * @param propagationPolicy 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. (optional) * @param body (optional) @@ -14621,9 +14813,9 @@ public ApiResponse deleteNamespacedResourceQuotaWithHttpInfo(St 401 Unauthorized - */ - public okhttp3.Call deleteNamespacedResourceQuotaAsync(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + public okhttp3.Call deleteNamespacedResourceQuotaAsync(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = deleteNamespacedResourceQuotaValidateBeforeCall(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); + okhttp3.Call localVarCall = deleteNamespacedResourceQuotaValidateBeforeCall(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -14632,9 +14824,10 @@ public okhttp3.Call deleteNamespacedResourceQuotaAsync(String name, String names * Build call for deleteNamespacedSecret * @param name name of the Secret (required) * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @param orphanDependents 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) * @param propagationPolicy 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. (optional) * @param body (optional) @@ -14649,7 +14842,7 @@ public okhttp3.Call deleteNamespacedResourceQuotaAsync(String name, String names 401 Unauthorized - */ - public okhttp3.Call deleteNamespacedSecretCall(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + public okhttp3.Call deleteNamespacedSecretCall(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; // create path and map variables @@ -14671,6 +14864,10 @@ public okhttp3.Call deleteNamespacedSecretCall(String name, String namespace, St localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); } + if (ignoreStoreReadErrorWithClusterBreakingPotential != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("ignoreStoreReadErrorWithClusterBreakingPotential", ignoreStoreReadErrorWithClusterBreakingPotential)); + } + if (orphanDependents != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("orphanDependents", orphanDependents)); } @@ -14683,7 +14880,7 @@ public okhttp3.Call deleteNamespacedSecretCall(String name, String namespace, St Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -14701,7 +14898,7 @@ public okhttp3.Call deleteNamespacedSecretCall(String name, String namespace, St } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteNamespacedSecretValidateBeforeCall(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteNamespacedSecretValidateBeforeCall(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -14714,7 +14911,7 @@ private okhttp3.Call deleteNamespacedSecretValidateBeforeCall(String name, Strin } - okhttp3.Call localVarCall = deleteNamespacedSecretCall(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); + okhttp3.Call localVarCall = deleteNamespacedSecretCall(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); return localVarCall; } @@ -14724,9 +14921,10 @@ private okhttp3.Call deleteNamespacedSecretValidateBeforeCall(String name, Strin * delete a Secret * @param name name of the Secret (required) * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @param orphanDependents 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) * @param propagationPolicy 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. (optional) * @param body (optional) @@ -14740,8 +14938,8 @@ private okhttp3.Call deleteNamespacedSecretValidateBeforeCall(String name, Strin 401 Unauthorized - */ - public V1Status deleteNamespacedSecret(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { - ApiResponse localVarResp = deleteNamespacedSecretWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body); + public V1Status deleteNamespacedSecret(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { + ApiResponse localVarResp = deleteNamespacedSecretWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body); return localVarResp.getData(); } @@ -14750,9 +14948,10 @@ public V1Status deleteNamespacedSecret(String name, String namespace, String pre * delete a Secret * @param name name of the Secret (required) * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @param orphanDependents 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) * @param propagationPolicy 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. (optional) * @param body (optional) @@ -14766,8 +14965,8 @@ public V1Status deleteNamespacedSecret(String name, String namespace, String pre 401 Unauthorized - */ - public ApiResponse deleteNamespacedSecretWithHttpInfo(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { - okhttp3.Call localVarCall = deleteNamespacedSecretValidateBeforeCall(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, null); + public ApiResponse deleteNamespacedSecretWithHttpInfo(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteNamespacedSecretValidateBeforeCall(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -14777,9 +14976,10 @@ public ApiResponse deleteNamespacedSecretWithHttpInfo(String name, Str * delete a Secret * @param name name of the Secret (required) * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @param orphanDependents 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) * @param propagationPolicy 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. (optional) * @param body (optional) @@ -14794,9 +14994,9 @@ public ApiResponse deleteNamespacedSecretWithHttpInfo(String name, Str 401 Unauthorized - */ - public okhttp3.Call deleteNamespacedSecretAsync(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + public okhttp3.Call deleteNamespacedSecretAsync(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = deleteNamespacedSecretValidateBeforeCall(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); + okhttp3.Call localVarCall = deleteNamespacedSecretValidateBeforeCall(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -14805,9 +15005,10 @@ public okhttp3.Call deleteNamespacedSecretAsync(String name, String namespace, S * Build call for deleteNamespacedService * @param name name of the Service (required) * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @param orphanDependents 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) * @param propagationPolicy 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. (optional) * @param body (optional) @@ -14822,7 +15023,7 @@ public okhttp3.Call deleteNamespacedSecretAsync(String name, String namespace, S 401 Unauthorized - */ - public okhttp3.Call deleteNamespacedServiceCall(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + public okhttp3.Call deleteNamespacedServiceCall(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; // create path and map variables @@ -14844,6 +15045,10 @@ public okhttp3.Call deleteNamespacedServiceCall(String name, String namespace, S localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); } + if (ignoreStoreReadErrorWithClusterBreakingPotential != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("ignoreStoreReadErrorWithClusterBreakingPotential", ignoreStoreReadErrorWithClusterBreakingPotential)); + } + if (orphanDependents != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("orphanDependents", orphanDependents)); } @@ -14856,7 +15061,7 @@ public okhttp3.Call deleteNamespacedServiceCall(String name, String namespace, S Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -14874,7 +15079,7 @@ public okhttp3.Call deleteNamespacedServiceCall(String name, String namespace, S } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteNamespacedServiceValidateBeforeCall(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteNamespacedServiceValidateBeforeCall(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -14887,7 +15092,7 @@ private okhttp3.Call deleteNamespacedServiceValidateBeforeCall(String name, Stri } - okhttp3.Call localVarCall = deleteNamespacedServiceCall(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); + okhttp3.Call localVarCall = deleteNamespacedServiceCall(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); return localVarCall; } @@ -14897,9 +15102,10 @@ private okhttp3.Call deleteNamespacedServiceValidateBeforeCall(String name, Stri * delete a Service * @param name name of the Service (required) * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @param orphanDependents 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) * @param propagationPolicy 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. (optional) * @param body (optional) @@ -14913,8 +15119,8 @@ private okhttp3.Call deleteNamespacedServiceValidateBeforeCall(String name, Stri 401 Unauthorized - */ - public V1Service deleteNamespacedService(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { - ApiResponse localVarResp = deleteNamespacedServiceWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body); + public V1Service deleteNamespacedService(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { + ApiResponse localVarResp = deleteNamespacedServiceWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body); return localVarResp.getData(); } @@ -14923,9 +15129,10 @@ public V1Service deleteNamespacedService(String name, String namespace, String p * delete a Service * @param name name of the Service (required) * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @param orphanDependents 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) * @param propagationPolicy 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. (optional) * @param body (optional) @@ -14939,8 +15146,8 @@ public V1Service deleteNamespacedService(String name, String namespace, String p 401 Unauthorized - */ - public ApiResponse deleteNamespacedServiceWithHttpInfo(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { - okhttp3.Call localVarCall = deleteNamespacedServiceValidateBeforeCall(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, null); + public ApiResponse deleteNamespacedServiceWithHttpInfo(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteNamespacedServiceValidateBeforeCall(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -14950,9 +15157,10 @@ public ApiResponse deleteNamespacedServiceWithHttpInfo(String name, S * delete a Service * @param name name of the Service (required) * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @param orphanDependents 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) * @param propagationPolicy 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. (optional) * @param body (optional) @@ -14967,9 +15175,9 @@ public ApiResponse deleteNamespacedServiceWithHttpInfo(String name, S 401 Unauthorized - */ - public okhttp3.Call deleteNamespacedServiceAsync(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + public okhttp3.Call deleteNamespacedServiceAsync(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = deleteNamespacedServiceValidateBeforeCall(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); + okhttp3.Call localVarCall = deleteNamespacedServiceValidateBeforeCall(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -14978,9 +15186,10 @@ public okhttp3.Call deleteNamespacedServiceAsync(String name, String namespace, * Build call for deleteNamespacedServiceAccount * @param name name of the ServiceAccount (required) * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @param orphanDependents 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) * @param propagationPolicy 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. (optional) * @param body (optional) @@ -14995,7 +15204,7 @@ public okhttp3.Call deleteNamespacedServiceAsync(String name, String namespace, 401 Unauthorized - */ - public okhttp3.Call deleteNamespacedServiceAccountCall(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + public okhttp3.Call deleteNamespacedServiceAccountCall(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; // create path and map variables @@ -15017,6 +15226,10 @@ public okhttp3.Call deleteNamespacedServiceAccountCall(String name, String names localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); } + if (ignoreStoreReadErrorWithClusterBreakingPotential != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("ignoreStoreReadErrorWithClusterBreakingPotential", ignoreStoreReadErrorWithClusterBreakingPotential)); + } + if (orphanDependents != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("orphanDependents", orphanDependents)); } @@ -15029,7 +15242,7 @@ public okhttp3.Call deleteNamespacedServiceAccountCall(String name, String names Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -15047,7 +15260,7 @@ public okhttp3.Call deleteNamespacedServiceAccountCall(String name, String names } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteNamespacedServiceAccountValidateBeforeCall(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteNamespacedServiceAccountValidateBeforeCall(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -15060,7 +15273,7 @@ private okhttp3.Call deleteNamespacedServiceAccountValidateBeforeCall(String nam } - okhttp3.Call localVarCall = deleteNamespacedServiceAccountCall(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); + okhttp3.Call localVarCall = deleteNamespacedServiceAccountCall(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); return localVarCall; } @@ -15070,9 +15283,10 @@ private okhttp3.Call deleteNamespacedServiceAccountValidateBeforeCall(String nam * delete a ServiceAccount * @param name name of the ServiceAccount (required) * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @param orphanDependents 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) * @param propagationPolicy 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. (optional) * @param body (optional) @@ -15086,8 +15300,8 @@ private okhttp3.Call deleteNamespacedServiceAccountValidateBeforeCall(String nam 401 Unauthorized - */ - public V1ServiceAccount deleteNamespacedServiceAccount(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { - ApiResponse localVarResp = deleteNamespacedServiceAccountWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body); + public V1ServiceAccount deleteNamespacedServiceAccount(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { + ApiResponse localVarResp = deleteNamespacedServiceAccountWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body); return localVarResp.getData(); } @@ -15096,9 +15310,10 @@ public V1ServiceAccount deleteNamespacedServiceAccount(String name, String names * delete a ServiceAccount * @param name name of the ServiceAccount (required) * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @param orphanDependents 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) * @param propagationPolicy 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. (optional) * @param body (optional) @@ -15112,8 +15327,8 @@ public V1ServiceAccount deleteNamespacedServiceAccount(String name, String names 401 Unauthorized - */ - public ApiResponse deleteNamespacedServiceAccountWithHttpInfo(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { - okhttp3.Call localVarCall = deleteNamespacedServiceAccountValidateBeforeCall(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, null); + public ApiResponse deleteNamespacedServiceAccountWithHttpInfo(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteNamespacedServiceAccountValidateBeforeCall(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -15123,9 +15338,10 @@ public ApiResponse deleteNamespacedServiceAccountWithHttpInfo( * delete a ServiceAccount * @param name name of the ServiceAccount (required) * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @param orphanDependents 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) * @param propagationPolicy 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. (optional) * @param body (optional) @@ -15140,9 +15356,9 @@ public ApiResponse deleteNamespacedServiceAccountWithHttpInfo( 401 Unauthorized - */ - public okhttp3.Call deleteNamespacedServiceAccountAsync(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + public okhttp3.Call deleteNamespacedServiceAccountAsync(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = deleteNamespacedServiceAccountValidateBeforeCall(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); + okhttp3.Call localVarCall = deleteNamespacedServiceAccountValidateBeforeCall(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -15150,9 +15366,10 @@ public okhttp3.Call deleteNamespacedServiceAccountAsync(String name, String name /** * Build call for deleteNode * @param name name of the Node (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @param orphanDependents 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) * @param propagationPolicy 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. (optional) * @param body (optional) @@ -15167,7 +15384,7 @@ public okhttp3.Call deleteNamespacedServiceAccountAsync(String name, String name 401 Unauthorized - */ - public okhttp3.Call deleteNodeCall(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + public okhttp3.Call deleteNodeCall(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; // create path and map variables @@ -15188,6 +15405,10 @@ public okhttp3.Call deleteNodeCall(String name, String pretty, String dryRun, In localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); } + if (ignoreStoreReadErrorWithClusterBreakingPotential != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("ignoreStoreReadErrorWithClusterBreakingPotential", ignoreStoreReadErrorWithClusterBreakingPotential)); + } + if (orphanDependents != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("orphanDependents", orphanDependents)); } @@ -15200,7 +15421,7 @@ public okhttp3.Call deleteNodeCall(String name, String pretty, String dryRun, In Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -15218,7 +15439,7 @@ public okhttp3.Call deleteNodeCall(String name, String pretty, String dryRun, In } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteNodeValidateBeforeCall(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteNodeValidateBeforeCall(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -15226,7 +15447,7 @@ private okhttp3.Call deleteNodeValidateBeforeCall(String name, String pretty, St } - okhttp3.Call localVarCall = deleteNodeCall(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); + okhttp3.Call localVarCall = deleteNodeCall(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); return localVarCall; } @@ -15235,9 +15456,10 @@ private okhttp3.Call deleteNodeValidateBeforeCall(String name, String pretty, St * * delete a Node * @param name name of the Node (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @param orphanDependents 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) * @param propagationPolicy 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. (optional) * @param body (optional) @@ -15251,8 +15473,8 @@ private okhttp3.Call deleteNodeValidateBeforeCall(String name, String pretty, St 401 Unauthorized - */ - public V1Status deleteNode(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { - ApiResponse localVarResp = deleteNodeWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body); + public V1Status deleteNode(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { + ApiResponse localVarResp = deleteNodeWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body); return localVarResp.getData(); } @@ -15260,9 +15482,10 @@ public V1Status deleteNode(String name, String pretty, String dryRun, Integer gr * * delete a Node * @param name name of the Node (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @param orphanDependents 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) * @param propagationPolicy 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. (optional) * @param body (optional) @@ -15276,8 +15499,8 @@ public V1Status deleteNode(String name, String pretty, String dryRun, Integer gr 401 Unauthorized - */ - public ApiResponse deleteNodeWithHttpInfo(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { - okhttp3.Call localVarCall = deleteNodeValidateBeforeCall(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, null); + public ApiResponse deleteNodeWithHttpInfo(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteNodeValidateBeforeCall(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -15286,9 +15509,10 @@ public ApiResponse deleteNodeWithHttpInfo(String name, String pretty, * (asynchronously) * delete a Node * @param name name of the Node (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @param orphanDependents 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) * @param propagationPolicy 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. (optional) * @param body (optional) @@ -15303,9 +15527,9 @@ public ApiResponse deleteNodeWithHttpInfo(String name, String pretty, 401 Unauthorized - */ - public okhttp3.Call deleteNodeAsync(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + public okhttp3.Call deleteNodeAsync(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = deleteNodeValidateBeforeCall(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); + okhttp3.Call localVarCall = deleteNodeValidateBeforeCall(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -15313,9 +15537,10 @@ public okhttp3.Call deleteNodeAsync(String name, String pretty, String dryRun, I /** * Build call for deletePersistentVolume * @param name name of the PersistentVolume (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @param orphanDependents 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) * @param propagationPolicy 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. (optional) * @param body (optional) @@ -15330,7 +15555,7 @@ public okhttp3.Call deleteNodeAsync(String name, String pretty, String dryRun, I 401 Unauthorized - */ - public okhttp3.Call deletePersistentVolumeCall(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + public okhttp3.Call deletePersistentVolumeCall(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; // create path and map variables @@ -15351,6 +15576,10 @@ public okhttp3.Call deletePersistentVolumeCall(String name, String pretty, Strin localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); } + if (ignoreStoreReadErrorWithClusterBreakingPotential != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("ignoreStoreReadErrorWithClusterBreakingPotential", ignoreStoreReadErrorWithClusterBreakingPotential)); + } + if (orphanDependents != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("orphanDependents", orphanDependents)); } @@ -15363,7 +15592,7 @@ public okhttp3.Call deletePersistentVolumeCall(String name, String pretty, Strin Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -15381,7 +15610,7 @@ public okhttp3.Call deletePersistentVolumeCall(String name, String pretty, Strin } @SuppressWarnings("rawtypes") - private okhttp3.Call deletePersistentVolumeValidateBeforeCall(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deletePersistentVolumeValidateBeforeCall(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -15389,7 +15618,7 @@ private okhttp3.Call deletePersistentVolumeValidateBeforeCall(String name, Strin } - okhttp3.Call localVarCall = deletePersistentVolumeCall(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); + okhttp3.Call localVarCall = deletePersistentVolumeCall(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); return localVarCall; } @@ -15398,9 +15627,10 @@ private okhttp3.Call deletePersistentVolumeValidateBeforeCall(String name, Strin * * delete a PersistentVolume * @param name name of the PersistentVolume (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @param orphanDependents 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) * @param propagationPolicy 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. (optional) * @param body (optional) @@ -15414,8 +15644,8 @@ private okhttp3.Call deletePersistentVolumeValidateBeforeCall(String name, Strin 401 Unauthorized - */ - public V1PersistentVolume deletePersistentVolume(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { - ApiResponse localVarResp = deletePersistentVolumeWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body); + public V1PersistentVolume deletePersistentVolume(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { + ApiResponse localVarResp = deletePersistentVolumeWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body); return localVarResp.getData(); } @@ -15423,9 +15653,10 @@ public V1PersistentVolume deletePersistentVolume(String name, String pretty, Str * * delete a PersistentVolume * @param name name of the PersistentVolume (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @param orphanDependents 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) * @param propagationPolicy 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. (optional) * @param body (optional) @@ -15439,8 +15670,8 @@ public V1PersistentVolume deletePersistentVolume(String name, String pretty, Str 401 Unauthorized - */ - public ApiResponse deletePersistentVolumeWithHttpInfo(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { - okhttp3.Call localVarCall = deletePersistentVolumeValidateBeforeCall(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, null); + public ApiResponse deletePersistentVolumeWithHttpInfo(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deletePersistentVolumeValidateBeforeCall(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -15449,9 +15680,10 @@ public ApiResponse deletePersistentVolumeWithHttpInfo(String * (asynchronously) * delete a PersistentVolume * @param name name of the PersistentVolume (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @param orphanDependents 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) * @param propagationPolicy 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. (optional) * @param body (optional) @@ -15466,9 +15698,9 @@ public ApiResponse deletePersistentVolumeWithHttpInfo(String 401 Unauthorized - */ - public okhttp3.Call deletePersistentVolumeAsync(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + public okhttp3.Call deletePersistentVolumeAsync(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = deletePersistentVolumeValidateBeforeCall(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); + okhttp3.Call localVarCall = deletePersistentVolumeValidateBeforeCall(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -15497,7 +15729,7 @@ public okhttp3.Call getAPIResourcesCall(final ApiCallback _callback) throws ApiE Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -15585,7 +15817,7 @@ public okhttp3.Call getAPIResourcesAsync(final ApiCallback _c * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) @@ -15657,7 +15889,7 @@ public okhttp3.Call listComponentStatusCall(Boolean allowWatchBookmarks, String Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch", "application/cbor-seq" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -15691,7 +15923,7 @@ private okhttp3.Call listComponentStatusValidateBeforeCall(Boolean allowWatchBoo * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) @@ -15719,7 +15951,7 @@ public V1ComponentStatusList listComponentStatus(Boolean allowWatchBookmarks, St * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) @@ -15748,7 +15980,7 @@ public ApiResponse listComponentStatusWithHttpInfo(Boolea * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) @@ -15778,7 +16010,7 @@ public okhttp3.Call listComponentStatusAsync(Boolean allowWatchBookmarks, String * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) @@ -15850,7 +16082,7 @@ public okhttp3.Call listConfigMapForAllNamespacesCall(Boolean allowWatchBookmark Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch", "application/cbor-seq" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -15884,7 +16116,7 @@ private okhttp3.Call listConfigMapForAllNamespacesValidateBeforeCall(Boolean all * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) @@ -15912,7 +16144,7 @@ public V1ConfigMapList listConfigMapForAllNamespaces(Boolean allowWatchBookmarks * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) @@ -15941,7 +16173,7 @@ public ApiResponse listConfigMapForAllNamespacesWithHttpInfo(Bo * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) @@ -15971,7 +16203,7 @@ public okhttp3.Call listConfigMapForAllNamespacesAsync(Boolean allowWatchBookmar * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) @@ -16043,7 +16275,7 @@ public okhttp3.Call listEndpointsForAllNamespacesCall(Boolean allowWatchBookmark Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch", "application/cbor-seq" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -16077,7 +16309,7 @@ private okhttp3.Call listEndpointsForAllNamespacesValidateBeforeCall(Boolean all * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) @@ -16105,7 +16337,7 @@ public V1EndpointsList listEndpointsForAllNamespaces(Boolean allowWatchBookmarks * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) @@ -16134,7 +16366,7 @@ public ApiResponse listEndpointsForAllNamespacesWithHttpInfo(Bo * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) @@ -16164,7 +16396,7 @@ public okhttp3.Call listEndpointsForAllNamespacesAsync(Boolean allowWatchBookmar * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) @@ -16236,7 +16468,7 @@ public okhttp3.Call listEventForAllNamespacesCall(Boolean allowWatchBookmarks, S Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch", "application/cbor-seq" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -16270,7 +16502,7 @@ private okhttp3.Call listEventForAllNamespacesValidateBeforeCall(Boolean allowWa * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) @@ -16298,7 +16530,7 @@ public CoreV1EventList listEventForAllNamespaces(Boolean allowWatchBookmarks, St * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) @@ -16327,7 +16559,7 @@ public ApiResponse listEventForAllNamespacesWithHttpInfo(Boolea * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) @@ -16357,7 +16589,7 @@ public okhttp3.Call listEventForAllNamespacesAsync(Boolean allowWatchBookmarks, * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) @@ -16429,7 +16661,7 @@ public okhttp3.Call listLimitRangeForAllNamespacesCall(Boolean allowWatchBookmar Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch", "application/cbor-seq" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -16463,7 +16695,7 @@ private okhttp3.Call listLimitRangeForAllNamespacesValidateBeforeCall(Boolean al * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) @@ -16491,7 +16723,7 @@ public V1LimitRangeList listLimitRangeForAllNamespaces(Boolean allowWatchBookmar * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) @@ -16520,7 +16752,7 @@ public ApiResponse listLimitRangeForAllNamespacesWithHttpInfo( * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) @@ -16545,7 +16777,7 @@ public okhttp3.Call listLimitRangeForAllNamespacesAsync(Boolean allowWatchBookma } /** * Build call for listNamespace - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param allowWatchBookmarks 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. (optional) * @param _continue 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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) @@ -16622,7 +16854,7 @@ public okhttp3.Call listNamespaceCall(String pretty, Boolean allowWatchBookmarks Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch", "application/cbor-seq" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -16651,7 +16883,7 @@ private okhttp3.Call listNamespaceValidateBeforeCall(String pretty, Boolean allo /** * * list or watch objects of kind Namespace - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param allowWatchBookmarks 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. (optional) * @param _continue 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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) @@ -16679,7 +16911,7 @@ public V1NamespaceList listNamespace(String pretty, Boolean allowWatchBookmarks, /** * * list or watch objects of kind Namespace - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param allowWatchBookmarks 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. (optional) * @param _continue 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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) @@ -16708,7 +16940,7 @@ public ApiResponse listNamespaceWithHttpInfo(String pretty, Boo /** * (asynchronously) * list or watch objects of kind Namespace - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param allowWatchBookmarks 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. (optional) * @param _continue 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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) @@ -16739,7 +16971,7 @@ public okhttp3.Call listNamespaceAsync(String pretty, Boolean allowWatchBookmark /** * Build call for listNamespacedConfigMap * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param allowWatchBookmarks 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. (optional) * @param _continue 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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) @@ -16817,7 +17049,7 @@ public okhttp3.Call listNamespacedConfigMapCall(String namespace, String pretty, Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch", "application/cbor-seq" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -16852,7 +17084,7 @@ private okhttp3.Call listNamespacedConfigMapValidateBeforeCall(String namespace, * * list or watch objects of kind ConfigMap * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param allowWatchBookmarks 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. (optional) * @param _continue 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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) @@ -16881,7 +17113,7 @@ public V1ConfigMapList listNamespacedConfigMap(String namespace, String pretty, * * list or watch objects of kind ConfigMap * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param allowWatchBookmarks 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. (optional) * @param _continue 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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) @@ -16911,7 +17143,7 @@ public ApiResponse listNamespacedConfigMapWithHttpInfo(String n * (asynchronously) * list or watch objects of kind ConfigMap * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param allowWatchBookmarks 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. (optional) * @param _continue 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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) @@ -16942,7 +17174,7 @@ public okhttp3.Call listNamespacedConfigMapAsync(String namespace, String pretty /** * Build call for listNamespacedEndpoints * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param allowWatchBookmarks 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. (optional) * @param _continue 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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) @@ -17020,7 +17252,7 @@ public okhttp3.Call listNamespacedEndpointsCall(String namespace, String pretty, Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch", "application/cbor-seq" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -17055,7 +17287,7 @@ private okhttp3.Call listNamespacedEndpointsValidateBeforeCall(String namespace, * * list or watch objects of kind Endpoints * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param allowWatchBookmarks 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. (optional) * @param _continue 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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) @@ -17084,7 +17316,7 @@ public V1EndpointsList listNamespacedEndpoints(String namespace, String pretty, * * list or watch objects of kind Endpoints * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param allowWatchBookmarks 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. (optional) * @param _continue 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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) @@ -17114,7 +17346,7 @@ public ApiResponse listNamespacedEndpointsWithHttpInfo(String n * (asynchronously) * list or watch objects of kind Endpoints * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param allowWatchBookmarks 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. (optional) * @param _continue 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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) @@ -17145,7 +17377,7 @@ public okhttp3.Call listNamespacedEndpointsAsync(String namespace, String pretty /** * Build call for listNamespacedEvent * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param allowWatchBookmarks 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. (optional) * @param _continue 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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) @@ -17223,7 +17455,7 @@ public okhttp3.Call listNamespacedEventCall(String namespace, String pretty, Boo Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch", "application/cbor-seq" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -17258,7 +17490,7 @@ private okhttp3.Call listNamespacedEventValidateBeforeCall(String namespace, Str * * list or watch objects of kind Event * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param allowWatchBookmarks 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. (optional) * @param _continue 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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) @@ -17287,7 +17519,7 @@ public CoreV1EventList listNamespacedEvent(String namespace, String pretty, Bool * * list or watch objects of kind Event * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param allowWatchBookmarks 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. (optional) * @param _continue 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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) @@ -17317,7 +17549,7 @@ public ApiResponse listNamespacedEventWithHttpInfo(String names * (asynchronously) * list or watch objects of kind Event * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param allowWatchBookmarks 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. (optional) * @param _continue 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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) @@ -17348,7 +17580,7 @@ public okhttp3.Call listNamespacedEventAsync(String namespace, String pretty, Bo /** * Build call for listNamespacedLimitRange * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param allowWatchBookmarks 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. (optional) * @param _continue 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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) @@ -17426,7 +17658,7 @@ public okhttp3.Call listNamespacedLimitRangeCall(String namespace, String pretty Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch", "application/cbor-seq" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -17461,7 +17693,7 @@ private okhttp3.Call listNamespacedLimitRangeValidateBeforeCall(String namespace * * list or watch objects of kind LimitRange * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param allowWatchBookmarks 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. (optional) * @param _continue 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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) @@ -17490,7 +17722,7 @@ public V1LimitRangeList listNamespacedLimitRange(String namespace, String pretty * * list or watch objects of kind LimitRange * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param allowWatchBookmarks 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. (optional) * @param _continue 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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) @@ -17520,7 +17752,7 @@ public ApiResponse listNamespacedLimitRangeWithHttpInfo(String * (asynchronously) * list or watch objects of kind LimitRange * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param allowWatchBookmarks 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. (optional) * @param _continue 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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) @@ -17551,7 +17783,7 @@ public okhttp3.Call listNamespacedLimitRangeAsync(String namespace, String prett /** * Build call for listNamespacedPersistentVolumeClaim * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param allowWatchBookmarks 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. (optional) * @param _continue 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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) @@ -17629,7 +17861,7 @@ public okhttp3.Call listNamespacedPersistentVolumeClaimCall(String namespace, St Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch", "application/cbor-seq" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -17664,7 +17896,7 @@ private okhttp3.Call listNamespacedPersistentVolumeClaimValidateBeforeCall(Strin * * list or watch objects of kind PersistentVolumeClaim * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param allowWatchBookmarks 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. (optional) * @param _continue 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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) @@ -17693,7 +17925,7 @@ public V1PersistentVolumeClaimList listNamespacedPersistentVolumeClaim(String na * * list or watch objects of kind PersistentVolumeClaim * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param allowWatchBookmarks 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. (optional) * @param _continue 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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) @@ -17723,7 +17955,7 @@ public ApiResponse listNamespacedPersistentVolumeCl * (asynchronously) * list or watch objects of kind PersistentVolumeClaim * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param allowWatchBookmarks 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. (optional) * @param _continue 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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) @@ -17754,7 +17986,7 @@ public okhttp3.Call listNamespacedPersistentVolumeClaimAsync(String namespace, S /** * Build call for listNamespacedPod * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param allowWatchBookmarks 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. (optional) * @param _continue 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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) @@ -17832,7 +18064,7 @@ public okhttp3.Call listNamespacedPodCall(String namespace, String pretty, Boole Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch", "application/cbor-seq" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -17867,7 +18099,7 @@ private okhttp3.Call listNamespacedPodValidateBeforeCall(String namespace, Strin * * list or watch objects of kind Pod * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param allowWatchBookmarks 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. (optional) * @param _continue 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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) @@ -17896,7 +18128,7 @@ public V1PodList listNamespacedPod(String namespace, String pretty, Boolean allo * * list or watch objects of kind Pod * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param allowWatchBookmarks 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. (optional) * @param _continue 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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) @@ -17926,7 +18158,7 @@ public ApiResponse listNamespacedPodWithHttpInfo(String namespace, St * (asynchronously) * list or watch objects of kind Pod * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param allowWatchBookmarks 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. (optional) * @param _continue 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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) @@ -17957,7 +18189,7 @@ public okhttp3.Call listNamespacedPodAsync(String namespace, String pretty, Bool /** * Build call for listNamespacedPodTemplate * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param allowWatchBookmarks 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. (optional) * @param _continue 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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) @@ -18035,7 +18267,7 @@ public okhttp3.Call listNamespacedPodTemplateCall(String namespace, String prett Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch", "application/cbor-seq" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -18070,7 +18302,7 @@ private okhttp3.Call listNamespacedPodTemplateValidateBeforeCall(String namespac * * list or watch objects of kind PodTemplate * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param allowWatchBookmarks 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. (optional) * @param _continue 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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) @@ -18099,7 +18331,7 @@ public V1PodTemplateList listNamespacedPodTemplate(String namespace, String pret * * list or watch objects of kind PodTemplate * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param allowWatchBookmarks 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. (optional) * @param _continue 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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) @@ -18129,7 +18361,7 @@ public ApiResponse listNamespacedPodTemplateWithHttpInfo(Stri * (asynchronously) * list or watch objects of kind PodTemplate * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param allowWatchBookmarks 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. (optional) * @param _continue 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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) @@ -18160,7 +18392,7 @@ public okhttp3.Call listNamespacedPodTemplateAsync(String namespace, String pret /** * Build call for listNamespacedReplicationController * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param allowWatchBookmarks 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. (optional) * @param _continue 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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) @@ -18238,7 +18470,7 @@ public okhttp3.Call listNamespacedReplicationControllerCall(String namespace, St Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch", "application/cbor-seq" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -18273,7 +18505,7 @@ private okhttp3.Call listNamespacedReplicationControllerValidateBeforeCall(Strin * * list or watch objects of kind ReplicationController * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param allowWatchBookmarks 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. (optional) * @param _continue 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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) @@ -18302,7 +18534,7 @@ public V1ReplicationControllerList listNamespacedReplicationController(String na * * list or watch objects of kind ReplicationController * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param allowWatchBookmarks 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. (optional) * @param _continue 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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) @@ -18332,7 +18564,7 @@ public ApiResponse listNamespacedReplicationControl * (asynchronously) * list or watch objects of kind ReplicationController * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param allowWatchBookmarks 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. (optional) * @param _continue 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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) @@ -18363,7 +18595,7 @@ public okhttp3.Call listNamespacedReplicationControllerAsync(String namespace, S /** * Build call for listNamespacedResourceQuota * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param allowWatchBookmarks 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. (optional) * @param _continue 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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) @@ -18441,7 +18673,7 @@ public okhttp3.Call listNamespacedResourceQuotaCall(String namespace, String pre Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch", "application/cbor-seq" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -18476,7 +18708,7 @@ private okhttp3.Call listNamespacedResourceQuotaValidateBeforeCall(String namesp * * list or watch objects of kind ResourceQuota * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param allowWatchBookmarks 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. (optional) * @param _continue 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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) @@ -18505,7 +18737,7 @@ public V1ResourceQuotaList listNamespacedResourceQuota(String namespace, String * * list or watch objects of kind ResourceQuota * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param allowWatchBookmarks 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. (optional) * @param _continue 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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) @@ -18535,7 +18767,7 @@ public ApiResponse listNamespacedResourceQuotaWithHttpInfo( * (asynchronously) * list or watch objects of kind ResourceQuota * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param allowWatchBookmarks 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. (optional) * @param _continue 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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) @@ -18566,7 +18798,7 @@ public okhttp3.Call listNamespacedResourceQuotaAsync(String namespace, String pr /** * Build call for listNamespacedSecret * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param allowWatchBookmarks 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. (optional) * @param _continue 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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) @@ -18644,7 +18876,7 @@ public okhttp3.Call listNamespacedSecretCall(String namespace, String pretty, Bo Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch", "application/cbor-seq" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -18679,7 +18911,7 @@ private okhttp3.Call listNamespacedSecretValidateBeforeCall(String namespace, St * * list or watch objects of kind Secret * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param allowWatchBookmarks 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. (optional) * @param _continue 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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) @@ -18708,7 +18940,7 @@ public V1SecretList listNamespacedSecret(String namespace, String pretty, Boolea * * list or watch objects of kind Secret * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param allowWatchBookmarks 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. (optional) * @param _continue 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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) @@ -18738,7 +18970,7 @@ public ApiResponse listNamespacedSecretWithHttpInfo(String namespa * (asynchronously) * list or watch objects of kind Secret * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param allowWatchBookmarks 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. (optional) * @param _continue 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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) @@ -18769,7 +19001,7 @@ public okhttp3.Call listNamespacedSecretAsync(String namespace, String pretty, B /** * Build call for listNamespacedService * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param allowWatchBookmarks 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. (optional) * @param _continue 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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) @@ -18847,7 +19079,7 @@ public okhttp3.Call listNamespacedServiceCall(String namespace, String pretty, B Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch", "application/cbor-seq" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -18882,7 +19114,7 @@ private okhttp3.Call listNamespacedServiceValidateBeforeCall(String namespace, S * * list or watch objects of kind Service * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param allowWatchBookmarks 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. (optional) * @param _continue 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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) @@ -18911,7 +19143,7 @@ public V1ServiceList listNamespacedService(String namespace, String pretty, Bool * * list or watch objects of kind Service * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param allowWatchBookmarks 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. (optional) * @param _continue 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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) @@ -18941,7 +19173,7 @@ public ApiResponse listNamespacedServiceWithHttpInfo(String names * (asynchronously) * list or watch objects of kind Service * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param allowWatchBookmarks 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. (optional) * @param _continue 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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) @@ -18972,7 +19204,7 @@ public okhttp3.Call listNamespacedServiceAsync(String namespace, String pretty, /** * Build call for listNamespacedServiceAccount * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param allowWatchBookmarks 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. (optional) * @param _continue 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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) @@ -19050,7 +19282,7 @@ public okhttp3.Call listNamespacedServiceAccountCall(String namespace, String pr Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch", "application/cbor-seq" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -19085,7 +19317,7 @@ private okhttp3.Call listNamespacedServiceAccountValidateBeforeCall(String names * * list or watch objects of kind ServiceAccount * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param allowWatchBookmarks 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. (optional) * @param _continue 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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) @@ -19114,7 +19346,7 @@ public V1ServiceAccountList listNamespacedServiceAccount(String namespace, Strin * * list or watch objects of kind ServiceAccount * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param allowWatchBookmarks 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. (optional) * @param _continue 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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) @@ -19144,7 +19376,7 @@ public ApiResponse listNamespacedServiceAccountWithHttpInf * (asynchronously) * list or watch objects of kind ServiceAccount * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param allowWatchBookmarks 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. (optional) * @param _continue 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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) @@ -19174,7 +19406,7 @@ public okhttp3.Call listNamespacedServiceAccountAsync(String namespace, String p } /** * Build call for listNode - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param allowWatchBookmarks 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. (optional) * @param _continue 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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) @@ -19251,7 +19483,7 @@ public okhttp3.Call listNodeCall(String pretty, Boolean allowWatchBookmarks, Str Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch", "application/cbor-seq" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -19280,7 +19512,7 @@ private okhttp3.Call listNodeValidateBeforeCall(String pretty, Boolean allowWatc /** * * list or watch objects of kind Node - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param allowWatchBookmarks 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. (optional) * @param _continue 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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) @@ -19308,7 +19540,7 @@ public V1NodeList listNode(String pretty, Boolean allowWatchBookmarks, String _c /** * * list or watch objects of kind Node - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param allowWatchBookmarks 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. (optional) * @param _continue 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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) @@ -19337,7 +19569,7 @@ public ApiResponse listNodeWithHttpInfo(String pretty, Boolean allow /** * (asynchronously) * list or watch objects of kind Node - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param allowWatchBookmarks 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. (optional) * @param _continue 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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) @@ -19367,7 +19599,7 @@ public okhttp3.Call listNodeAsync(String pretty, Boolean allowWatchBookmarks, St } /** * Build call for listPersistentVolume - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param allowWatchBookmarks 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. (optional) * @param _continue 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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) @@ -19444,7 +19676,7 @@ public okhttp3.Call listPersistentVolumeCall(String pretty, Boolean allowWatchBo Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch", "application/cbor-seq" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -19473,7 +19705,7 @@ private okhttp3.Call listPersistentVolumeValidateBeforeCall(String pretty, Boole /** * * list or watch objects of kind PersistentVolume - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param allowWatchBookmarks 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. (optional) * @param _continue 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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) @@ -19501,7 +19733,7 @@ public V1PersistentVolumeList listPersistentVolume(String pretty, Boolean allowW /** * * list or watch objects of kind PersistentVolume - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param allowWatchBookmarks 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. (optional) * @param _continue 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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) @@ -19530,7 +19762,7 @@ public ApiResponse listPersistentVolumeWithHttpInfo(Stri /** * (asynchronously) * list or watch objects of kind PersistentVolume - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param allowWatchBookmarks 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. (optional) * @param _continue 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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) @@ -19565,7 +19797,7 @@ public okhttp3.Call listPersistentVolumeAsync(String pretty, Boolean allowWatchB * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) @@ -19637,7 +19869,7 @@ public okhttp3.Call listPersistentVolumeClaimForAllNamespacesCall(Boolean allowW Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch", "application/cbor-seq" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -19671,7 +19903,7 @@ private okhttp3.Call listPersistentVolumeClaimForAllNamespacesValidateBeforeCall * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) @@ -19699,7 +19931,7 @@ public V1PersistentVolumeClaimList listPersistentVolumeClaimForAllNamespaces(Boo * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) @@ -19728,7 +19960,7 @@ public ApiResponse listPersistentVolumeClaimForAllN * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) @@ -19758,7 +19990,7 @@ public okhttp3.Call listPersistentVolumeClaimForAllNamespacesAsync(Boolean allow * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) @@ -19830,7 +20062,7 @@ public okhttp3.Call listPodForAllNamespacesCall(Boolean allowWatchBookmarks, Str Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch", "application/cbor-seq" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -19864,7 +20096,7 @@ private okhttp3.Call listPodForAllNamespacesValidateBeforeCall(Boolean allowWatc * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) @@ -19892,7 +20124,7 @@ public V1PodList listPodForAllNamespaces(Boolean allowWatchBookmarks, String _co * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) @@ -19921,7 +20153,7 @@ public ApiResponse listPodForAllNamespacesWithHttpInfo(Boolean allowW * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) @@ -19951,7 +20183,7 @@ public okhttp3.Call listPodForAllNamespacesAsync(Boolean allowWatchBookmarks, St * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) @@ -20023,7 +20255,7 @@ public okhttp3.Call listPodTemplateForAllNamespacesCall(Boolean allowWatchBookma Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch", "application/cbor-seq" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -20057,7 +20289,7 @@ private okhttp3.Call listPodTemplateForAllNamespacesValidateBeforeCall(Boolean a * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) @@ -20085,7 +20317,7 @@ public V1PodTemplateList listPodTemplateForAllNamespaces(Boolean allowWatchBookm * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) @@ -20114,7 +20346,7 @@ public ApiResponse listPodTemplateForAllNamespacesWithHttpInf * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) @@ -20144,7 +20376,7 @@ public okhttp3.Call listPodTemplateForAllNamespacesAsync(Boolean allowWatchBookm * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) @@ -20216,7 +20448,7 @@ public okhttp3.Call listReplicationControllerForAllNamespacesCall(Boolean allowW Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch", "application/cbor-seq" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -20250,7 +20482,7 @@ private okhttp3.Call listReplicationControllerForAllNamespacesValidateBeforeCall * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) @@ -20278,7 +20510,7 @@ public V1ReplicationControllerList listReplicationControllerForAllNamespaces(Boo * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) @@ -20307,7 +20539,7 @@ public ApiResponse listReplicationControllerForAllN * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) @@ -20337,7 +20569,7 @@ public okhttp3.Call listReplicationControllerForAllNamespacesAsync(Boolean allow * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) @@ -20409,7 +20641,7 @@ public okhttp3.Call listResourceQuotaForAllNamespacesCall(Boolean allowWatchBook Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch", "application/cbor-seq" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -20443,7 +20675,7 @@ private okhttp3.Call listResourceQuotaForAllNamespacesValidateBeforeCall(Boolean * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) @@ -20471,7 +20703,7 @@ public V1ResourceQuotaList listResourceQuotaForAllNamespaces(Boolean allowWatchB * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) @@ -20500,7 +20732,7 @@ public ApiResponse listResourceQuotaForAllNamespacesWithHtt * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) @@ -20530,7 +20762,7 @@ public okhttp3.Call listResourceQuotaForAllNamespacesAsync(Boolean allowWatchBoo * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) @@ -20602,7 +20834,7 @@ public okhttp3.Call listSecretForAllNamespacesCall(Boolean allowWatchBookmarks, Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch", "application/cbor-seq" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -20636,7 +20868,7 @@ private okhttp3.Call listSecretForAllNamespacesValidateBeforeCall(Boolean allowW * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) @@ -20664,7 +20896,7 @@ public V1SecretList listSecretForAllNamespaces(Boolean allowWatchBookmarks, Stri * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) @@ -20693,7 +20925,7 @@ public ApiResponse listSecretForAllNamespacesWithHttpInfo(Boolean * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) @@ -20723,7 +20955,7 @@ public okhttp3.Call listSecretForAllNamespacesAsync(Boolean allowWatchBookmarks, * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) @@ -20795,7 +21027,7 @@ public okhttp3.Call listServiceAccountForAllNamespacesCall(Boolean allowWatchBoo Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch", "application/cbor-seq" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -20829,7 +21061,7 @@ private okhttp3.Call listServiceAccountForAllNamespacesValidateBeforeCall(Boolea * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) @@ -20857,7 +21089,7 @@ public V1ServiceAccountList listServiceAccountForAllNamespaces(Boolean allowWatc * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) @@ -20886,7 +21118,7 @@ public ApiResponse listServiceAccountForAllNamespacesWithH * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) @@ -20916,7 +21148,7 @@ public okhttp3.Call listServiceAccountForAllNamespacesAsync(Boolean allowWatchBo * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) @@ -20988,7 +21220,7 @@ public okhttp3.Call listServiceForAllNamespacesCall(Boolean allowWatchBookmarks, Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch", "application/cbor-seq" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -21022,7 +21254,7 @@ private okhttp3.Call listServiceForAllNamespacesValidateBeforeCall(Boolean allow * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) @@ -21050,7 +21282,7 @@ public V1ServiceList listServiceForAllNamespaces(Boolean allowWatchBookmarks, St * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) @@ -21079,7 +21311,7 @@ public ApiResponse listServiceForAllNamespacesWithHttpInfo(Boolea * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) @@ -21106,7 +21338,7 @@ public okhttp3.Call listServiceForAllNamespacesAsync(Boolean allowWatchBookmarks * Build call for patchNamespace * @param name name of the Namespace (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -21155,7 +21387,7 @@ public okhttp3.Call patchNamespaceCall(String name, V1Patch body, String pretty, Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -21196,7 +21428,7 @@ private okhttp3.Call patchNamespaceValidateBeforeCall(String name, V1Patch body, * partially update the specified Namespace * @param name name of the Namespace (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -21221,7 +21453,7 @@ public V1Namespace patchNamespace(String name, V1Patch body, String pretty, Stri * partially update the specified Namespace * @param name name of the Namespace (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -21247,7 +21479,7 @@ public ApiResponse patchNamespaceWithHttpInfo(String name, V1Patch * partially update the specified Namespace * @param name name of the Namespace (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -21274,7 +21506,7 @@ public okhttp3.Call patchNamespaceAsync(String name, V1Patch body, String pretty * Build call for patchNamespaceStatus * @param name name of the Namespace (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -21323,7 +21555,7 @@ public okhttp3.Call patchNamespaceStatusCall(String name, V1Patch body, String p Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -21364,7 +21596,7 @@ private okhttp3.Call patchNamespaceStatusValidateBeforeCall(String name, V1Patch * partially update status of the specified Namespace * @param name name of the Namespace (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -21389,7 +21621,7 @@ public V1Namespace patchNamespaceStatus(String name, V1Patch body, String pretty * partially update status of the specified Namespace * @param name name of the Namespace (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -21415,7 +21647,7 @@ public ApiResponse patchNamespaceStatusWithHttpInfo(String name, V1 * partially update status of the specified Namespace * @param name name of the Namespace (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -21443,7 +21675,7 @@ public okhttp3.Call patchNamespaceStatusAsync(String name, V1Patch body, String * @param name name of the ConfigMap (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -21493,7 +21725,7 @@ public okhttp3.Call patchNamespacedConfigMapCall(String name, String namespace, Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -21540,7 +21772,7 @@ private okhttp3.Call patchNamespacedConfigMapValidateBeforeCall(String name, Str * @param name name of the ConfigMap (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -21566,7 +21798,7 @@ public V1ConfigMap patchNamespacedConfigMap(String name, String namespace, V1Pat * @param name name of the ConfigMap (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -21593,7 +21825,7 @@ public ApiResponse patchNamespacedConfigMapWithHttpInfo(String name * @param name name of the ConfigMap (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -21621,7 +21853,7 @@ public okhttp3.Call patchNamespacedConfigMapAsync(String name, String namespace, * @param name name of the Endpoints (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -21671,7 +21903,7 @@ public okhttp3.Call patchNamespacedEndpointsCall(String name, String namespace, Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -21718,7 +21950,7 @@ private okhttp3.Call patchNamespacedEndpointsValidateBeforeCall(String name, Str * @param name name of the Endpoints (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -21744,7 +21976,7 @@ public V1Endpoints patchNamespacedEndpoints(String name, String namespace, V1Pat * @param name name of the Endpoints (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -21771,7 +22003,7 @@ public ApiResponse patchNamespacedEndpointsWithHttpInfo(String name * @param name name of the Endpoints (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -21799,7 +22031,7 @@ public okhttp3.Call patchNamespacedEndpointsAsync(String name, String namespace, * @param name name of the Event (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -21849,7 +22081,7 @@ public okhttp3.Call patchNamespacedEventCall(String name, String namespace, V1Pa Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -21896,7 +22128,7 @@ private okhttp3.Call patchNamespacedEventValidateBeforeCall(String name, String * @param name name of the Event (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -21922,7 +22154,7 @@ public CoreV1Event patchNamespacedEvent(String name, String namespace, V1Patch b * @param name name of the Event (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -21949,7 +22181,7 @@ public ApiResponse patchNamespacedEventWithHttpInfo(String name, St * @param name name of the Event (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -21977,7 +22209,7 @@ public okhttp3.Call patchNamespacedEventAsync(String name, String namespace, V1P * @param name name of the LimitRange (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -22027,7 +22259,7 @@ public okhttp3.Call patchNamespacedLimitRangeCall(String name, String namespace, Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -22074,7 +22306,7 @@ private okhttp3.Call patchNamespacedLimitRangeValidateBeforeCall(String name, St * @param name name of the LimitRange (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -22100,7 +22332,7 @@ public V1LimitRange patchNamespacedLimitRange(String name, String namespace, V1P * @param name name of the LimitRange (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -22127,7 +22359,7 @@ public ApiResponse patchNamespacedLimitRangeWithHttpInfo(String na * @param name name of the LimitRange (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -22155,7 +22387,7 @@ public okhttp3.Call patchNamespacedLimitRangeAsync(String name, String namespace * @param name name of the PersistentVolumeClaim (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -22205,7 +22437,7 @@ public okhttp3.Call patchNamespacedPersistentVolumeClaimCall(String name, String Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -22252,7 +22484,7 @@ private okhttp3.Call patchNamespacedPersistentVolumeClaimValidateBeforeCall(Stri * @param name name of the PersistentVolumeClaim (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -22278,7 +22510,7 @@ public V1PersistentVolumeClaim patchNamespacedPersistentVolumeClaim(String name, * @param name name of the PersistentVolumeClaim (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -22305,7 +22537,7 @@ public ApiResponse patchNamespacedPersistentVolumeClaim * @param name name of the PersistentVolumeClaim (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -22333,7 +22565,7 @@ public okhttp3.Call patchNamespacedPersistentVolumeClaimAsync(String name, Strin * @param name name of the PersistentVolumeClaim (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -22383,7 +22615,7 @@ public okhttp3.Call patchNamespacedPersistentVolumeClaimStatusCall(String name, Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -22430,7 +22662,7 @@ private okhttp3.Call patchNamespacedPersistentVolumeClaimStatusValidateBeforeCal * @param name name of the PersistentVolumeClaim (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -22456,7 +22688,7 @@ public V1PersistentVolumeClaim patchNamespacedPersistentVolumeClaimStatus(String * @param name name of the PersistentVolumeClaim (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -22483,7 +22715,7 @@ public ApiResponse patchNamespacedPersistentVolumeClaim * @param name name of the PersistentVolumeClaim (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -22511,7 +22743,7 @@ public okhttp3.Call patchNamespacedPersistentVolumeClaimStatusAsync(String name, * @param name name of the Pod (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -22561,7 +22793,7 @@ public okhttp3.Call patchNamespacedPodCall(String name, String namespace, V1Patc Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -22608,7 +22840,7 @@ private okhttp3.Call patchNamespacedPodValidateBeforeCall(String name, String na * @param name name of the Pod (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -22634,7 +22866,7 @@ public V1Pod patchNamespacedPod(String name, String namespace, V1Patch body, Str * @param name name of the Pod (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -22661,7 +22893,7 @@ public ApiResponse patchNamespacedPodWithHttpInfo(String name, String nam * @param name name of the Pod (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -22689,7 +22921,7 @@ public okhttp3.Call patchNamespacedPodAsync(String name, String namespace, V1Pat * @param name name of the Pod (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -22739,7 +22971,7 @@ public okhttp3.Call patchNamespacedPodEphemeralcontainersCall(String name, Strin Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -22786,7 +23018,7 @@ private okhttp3.Call patchNamespacedPodEphemeralcontainersValidateBeforeCall(Str * @param name name of the Pod (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -22812,7 +23044,7 @@ public V1Pod patchNamespacedPodEphemeralcontainers(String name, String namespace * @param name name of the Pod (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -22839,7 +23071,7 @@ public ApiResponse patchNamespacedPodEphemeralcontainersWithHttpInfo(Stri * @param name name of the Pod (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -22862,12 +23094,190 @@ public okhttp3.Call patchNamespacedPodEphemeralcontainersAsync(String name, Stri localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } + /** + * Build call for patchNamespacedPodResize + * @param name name of the Pod (required) + * @param namespace object name and auth scope, such as for teams and projects (required) + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public okhttp3.Call patchNamespacedPodResizeCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + Object localVarPostBody = body; + + // create path and map variables + String localVarPath = "/api/v1/namespaces/{namespace}/pods/{name}/resize" + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } + + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + + if (fieldValidation != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); + } + + if (force != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("force", force)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + final String[] localVarAccepts = { + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call patchNamespacedPodResizeValidateBeforeCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'name' is set + if (name == null) { + throw new ApiException("Missing the required parameter 'name' when calling patchNamespacedPodResize(Async)"); + } + + // verify the required parameter 'namespace' is set + if (namespace == null) { + throw new ApiException("Missing the required parameter 'namespace' when calling patchNamespacedPodResize(Async)"); + } + + // verify the required parameter 'body' is set + if (body == null) { + throw new ApiException("Missing the required parameter 'body' when calling patchNamespacedPodResize(Async)"); + } + + + okhttp3.Call localVarCall = patchNamespacedPodResizeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); + return localVarCall; + + } + + /** + * + * partially update resize of the specified Pod + * @param name name of the Pod (required) + * @param namespace object name and auth scope, such as for teams and projects (required) + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) + * @return V1Pod + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public V1Pod patchNamespacedPodResize(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force) throws ApiException { + ApiResponse localVarResp = patchNamespacedPodResizeWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force); + return localVarResp.getData(); + } + + /** + * + * partially update resize of the specified Pod + * @param name name of the Pod (required) + * @param namespace object name and auth scope, such as for teams and projects (required) + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) + * @return ApiResponse<V1Pod> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public ApiResponse patchNamespacedPodResizeWithHttpInfo(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force) throws ApiException { + okhttp3.Call localVarCall = patchNamespacedPodResizeValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * partially update resize of the specified Pod + * @param name name of the Pod (required) + * @param namespace object name and auth scope, such as for teams and projects (required) + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public okhttp3.Call patchNamespacedPodResizeAsync(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = patchNamespacedPodResizeValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } /** * Build call for patchNamespacedPodStatus * @param name name of the Pod (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -22917,7 +23327,7 @@ public okhttp3.Call patchNamespacedPodStatusCall(String name, String namespace, Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -22964,7 +23374,7 @@ private okhttp3.Call patchNamespacedPodStatusValidateBeforeCall(String name, Str * @param name name of the Pod (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -22990,7 +23400,7 @@ public V1Pod patchNamespacedPodStatus(String name, String namespace, V1Patch bod * @param name name of the Pod (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -23017,7 +23427,7 @@ public ApiResponse patchNamespacedPodStatusWithHttpInfo(String name, Stri * @param name name of the Pod (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -23045,7 +23455,7 @@ public okhttp3.Call patchNamespacedPodStatusAsync(String name, String namespace, * @param name name of the PodTemplate (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -23095,7 +23505,7 @@ public okhttp3.Call patchNamespacedPodTemplateCall(String name, String namespace Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -23142,7 +23552,7 @@ private okhttp3.Call patchNamespacedPodTemplateValidateBeforeCall(String name, S * @param name name of the PodTemplate (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -23168,7 +23578,7 @@ public V1PodTemplate patchNamespacedPodTemplate(String name, String namespace, V * @param name name of the PodTemplate (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -23195,7 +23605,7 @@ public ApiResponse patchNamespacedPodTemplateWithHttpInfo(String * @param name name of the PodTemplate (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -23223,7 +23633,7 @@ public okhttp3.Call patchNamespacedPodTemplateAsync(String name, String namespac * @param name name of the ReplicationController (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -23273,7 +23683,7 @@ public okhttp3.Call patchNamespacedReplicationControllerCall(String name, String Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -23320,7 +23730,7 @@ private okhttp3.Call patchNamespacedReplicationControllerValidateBeforeCall(Stri * @param name name of the ReplicationController (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -23346,7 +23756,7 @@ public V1ReplicationController patchNamespacedReplicationController(String name, * @param name name of the ReplicationController (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -23373,7 +23783,7 @@ public ApiResponse patchNamespacedReplicationController * @param name name of the ReplicationController (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -23401,7 +23811,7 @@ public okhttp3.Call patchNamespacedReplicationControllerAsync(String name, Strin * @param name name of the Scale (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -23451,7 +23861,7 @@ public okhttp3.Call patchNamespacedReplicationControllerScaleCall(String name, S Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -23498,7 +23908,7 @@ private okhttp3.Call patchNamespacedReplicationControllerScaleValidateBeforeCall * @param name name of the Scale (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -23524,7 +23934,7 @@ public V1Scale patchNamespacedReplicationControllerScale(String name, String nam * @param name name of the Scale (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -23551,7 +23961,7 @@ public ApiResponse patchNamespacedReplicationControllerScaleWithHttpInf * @param name name of the Scale (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -23579,7 +23989,7 @@ public okhttp3.Call patchNamespacedReplicationControllerScaleAsync(String name, * @param name name of the ReplicationController (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -23629,7 +24039,7 @@ public okhttp3.Call patchNamespacedReplicationControllerStatusCall(String name, Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -23676,7 +24086,7 @@ private okhttp3.Call patchNamespacedReplicationControllerStatusValidateBeforeCal * @param name name of the ReplicationController (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -23702,7 +24112,7 @@ public V1ReplicationController patchNamespacedReplicationControllerStatus(String * @param name name of the ReplicationController (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -23729,7 +24139,7 @@ public ApiResponse patchNamespacedReplicationController * @param name name of the ReplicationController (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -23757,7 +24167,7 @@ public okhttp3.Call patchNamespacedReplicationControllerStatusAsync(String name, * @param name name of the ResourceQuota (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -23807,7 +24217,7 @@ public okhttp3.Call patchNamespacedResourceQuotaCall(String name, String namespa Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -23854,7 +24264,7 @@ private okhttp3.Call patchNamespacedResourceQuotaValidateBeforeCall(String name, * @param name name of the ResourceQuota (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -23880,7 +24290,7 @@ public V1ResourceQuota patchNamespacedResourceQuota(String name, String namespac * @param name name of the ResourceQuota (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -23907,7 +24317,7 @@ public ApiResponse patchNamespacedResourceQuotaWithHttpInfo(Str * @param name name of the ResourceQuota (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -23935,7 +24345,7 @@ public okhttp3.Call patchNamespacedResourceQuotaAsync(String name, String namesp * @param name name of the ResourceQuota (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -23985,7 +24395,7 @@ public okhttp3.Call patchNamespacedResourceQuotaStatusCall(String name, String n Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -24032,7 +24442,7 @@ private okhttp3.Call patchNamespacedResourceQuotaStatusValidateBeforeCall(String * @param name name of the ResourceQuota (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -24058,7 +24468,7 @@ public V1ResourceQuota patchNamespacedResourceQuotaStatus(String name, String na * @param name name of the ResourceQuota (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -24085,7 +24495,7 @@ public ApiResponse patchNamespacedResourceQuotaStatusWithHttpIn * @param name name of the ResourceQuota (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -24113,7 +24523,7 @@ public okhttp3.Call patchNamespacedResourceQuotaStatusAsync(String name, String * @param name name of the Secret (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -24163,7 +24573,7 @@ public okhttp3.Call patchNamespacedSecretCall(String name, String namespace, V1P Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -24210,7 +24620,7 @@ private okhttp3.Call patchNamespacedSecretValidateBeforeCall(String name, String * @param name name of the Secret (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -24236,7 +24646,7 @@ public V1Secret patchNamespacedSecret(String name, String namespace, V1Patch bod * @param name name of the Secret (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -24263,7 +24673,7 @@ public ApiResponse patchNamespacedSecretWithHttpInfo(String name, Stri * @param name name of the Secret (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -24291,7 +24701,7 @@ public okhttp3.Call patchNamespacedSecretAsync(String name, String namespace, V1 * @param name name of the Service (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -24341,7 +24751,7 @@ public okhttp3.Call patchNamespacedServiceCall(String name, String namespace, V1 Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -24388,7 +24798,7 @@ private okhttp3.Call patchNamespacedServiceValidateBeforeCall(String name, Strin * @param name name of the Service (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -24414,7 +24824,7 @@ public V1Service patchNamespacedService(String name, String namespace, V1Patch b * @param name name of the Service (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -24441,7 +24851,7 @@ public ApiResponse patchNamespacedServiceWithHttpInfo(String name, St * @param name name of the Service (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -24469,7 +24879,7 @@ public okhttp3.Call patchNamespacedServiceAsync(String name, String namespace, V * @param name name of the ServiceAccount (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -24519,7 +24929,7 @@ public okhttp3.Call patchNamespacedServiceAccountCall(String name, String namesp Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -24566,7 +24976,7 @@ private okhttp3.Call patchNamespacedServiceAccountValidateBeforeCall(String name * @param name name of the ServiceAccount (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -24592,7 +25002,7 @@ public V1ServiceAccount patchNamespacedServiceAccount(String name, String namesp * @param name name of the ServiceAccount (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -24619,7 +25029,7 @@ public ApiResponse patchNamespacedServiceAccountWithHttpInfo(S * @param name name of the ServiceAccount (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -24647,7 +25057,7 @@ public okhttp3.Call patchNamespacedServiceAccountAsync(String name, String names * @param name name of the Service (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -24697,7 +25107,7 @@ public okhttp3.Call patchNamespacedServiceStatusCall(String name, String namespa Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -24744,7 +25154,7 @@ private okhttp3.Call patchNamespacedServiceStatusValidateBeforeCall(String name, * @param name name of the Service (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -24770,7 +25180,7 @@ public V1Service patchNamespacedServiceStatus(String name, String namespace, V1P * @param name name of the Service (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -24797,7 +25207,7 @@ public ApiResponse patchNamespacedServiceStatusWithHttpInfo(String na * @param name name of the Service (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -24824,7 +25234,7 @@ public okhttp3.Call patchNamespacedServiceStatusAsync(String name, String namesp * Build call for patchNode * @param name name of the Node (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -24873,7 +25283,7 @@ public okhttp3.Call patchNodeCall(String name, V1Patch body, String pretty, Stri Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -24914,7 +25324,7 @@ private okhttp3.Call patchNodeValidateBeforeCall(String name, V1Patch body, Stri * partially update the specified Node * @param name name of the Node (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -24939,7 +25349,7 @@ public V1Node patchNode(String name, V1Patch body, String pretty, String dryRun, * partially update the specified Node * @param name name of the Node (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -24965,7 +25375,7 @@ public ApiResponse patchNodeWithHttpInfo(String name, V1Patch body, Stri * partially update the specified Node * @param name name of the Node (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -24992,7 +25402,7 @@ public okhttp3.Call patchNodeAsync(String name, V1Patch body, String pretty, Str * Build call for patchNodeStatus * @param name name of the Node (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -25041,7 +25451,7 @@ public okhttp3.Call patchNodeStatusCall(String name, V1Patch body, String pretty Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -25082,7 +25492,7 @@ private okhttp3.Call patchNodeStatusValidateBeforeCall(String name, V1Patch body * partially update status of the specified Node * @param name name of the Node (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -25107,7 +25517,7 @@ public V1Node patchNodeStatus(String name, V1Patch body, String pretty, String d * partially update status of the specified Node * @param name name of the Node (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -25133,7 +25543,7 @@ public ApiResponse patchNodeStatusWithHttpInfo(String name, V1Patch body * partially update status of the specified Node * @param name name of the Node (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -25160,7 +25570,7 @@ public okhttp3.Call patchNodeStatusAsync(String name, V1Patch body, String prett * Build call for patchPersistentVolume * @param name name of the PersistentVolume (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -25209,7 +25619,7 @@ public okhttp3.Call patchPersistentVolumeCall(String name, V1Patch body, String Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -25250,7 +25660,7 @@ private okhttp3.Call patchPersistentVolumeValidateBeforeCall(String name, V1Patc * partially update the specified PersistentVolume * @param name name of the PersistentVolume (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -25275,7 +25685,7 @@ public V1PersistentVolume patchPersistentVolume(String name, V1Patch body, Strin * partially update the specified PersistentVolume * @param name name of the PersistentVolume (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -25301,7 +25711,7 @@ public ApiResponse patchPersistentVolumeWithHttpInfo(String * partially update the specified PersistentVolume * @param name name of the PersistentVolume (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -25328,7 +25738,7 @@ public okhttp3.Call patchPersistentVolumeAsync(String name, V1Patch body, String * Build call for patchPersistentVolumeStatus * @param name name of the PersistentVolume (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -25377,7 +25787,7 @@ public okhttp3.Call patchPersistentVolumeStatusCall(String name, V1Patch body, S Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -25418,7 +25828,7 @@ private okhttp3.Call patchPersistentVolumeStatusValidateBeforeCall(String name, * partially update status of the specified PersistentVolume * @param name name of the PersistentVolume (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -25443,7 +25853,7 @@ public V1PersistentVolume patchPersistentVolumeStatus(String name, V1Patch body, * partially update status of the specified PersistentVolume * @param name name of the PersistentVolume (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -25469,7 +25879,7 @@ public ApiResponse patchPersistentVolumeStatusWithHttpInfo(S * partially update status of the specified PersistentVolume * @param name name of the PersistentVolume (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -25495,7 +25905,7 @@ public okhttp3.Call patchPersistentVolumeStatusAsync(String name, V1Patch body, /** * Build call for readComponentStatus * @param name name of the ComponentStatus (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -25523,7 +25933,7 @@ public okhttp3.Call readComponentStatusCall(String name, String pretty, final Ap Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -25558,7 +25968,7 @@ private okhttp3.Call readComponentStatusValidateBeforeCall(String name, String p * * read the specified ComponentStatus * @param name name of the ComponentStatus (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return V1ComponentStatus * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -25577,7 +25987,7 @@ public V1ComponentStatus readComponentStatus(String name, String pretty) throws * * read the specified ComponentStatus * @param name name of the ComponentStatus (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return ApiResponse<V1ComponentStatus> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -25597,7 +26007,7 @@ public ApiResponse readComponentStatusWithHttpInfo(String nam * (asynchronously) * read the specified ComponentStatus * @param name name of the ComponentStatus (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object @@ -25618,7 +26028,7 @@ public okhttp3.Call readComponentStatusAsync(String name, String pretty, final A /** * Build call for readNamespace * @param name name of the Namespace (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -25646,7 +26056,7 @@ public okhttp3.Call readNamespaceCall(String name, String pretty, final ApiCallb Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -25681,7 +26091,7 @@ private okhttp3.Call readNamespaceValidateBeforeCall(String name, String pretty, * * read the specified Namespace * @param name name of the Namespace (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return V1Namespace * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -25700,7 +26110,7 @@ public V1Namespace readNamespace(String name, String pretty) throws ApiException * * read the specified Namespace * @param name name of the Namespace (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return ApiResponse<V1Namespace> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -25720,7 +26130,7 @@ public ApiResponse readNamespaceWithHttpInfo(String name, String pr * (asynchronously) * read the specified Namespace * @param name name of the Namespace (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object @@ -25741,7 +26151,7 @@ public okhttp3.Call readNamespaceAsync(String name, String pretty, final ApiCall /** * Build call for readNamespaceStatus * @param name name of the Namespace (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -25769,7 +26179,7 @@ public okhttp3.Call readNamespaceStatusCall(String name, String pretty, final Ap Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -25804,7 +26214,7 @@ private okhttp3.Call readNamespaceStatusValidateBeforeCall(String name, String p * * read status of the specified Namespace * @param name name of the Namespace (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return V1Namespace * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -25823,7 +26233,7 @@ public V1Namespace readNamespaceStatus(String name, String pretty) throws ApiExc * * read status of the specified Namespace * @param name name of the Namespace (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return ApiResponse<V1Namespace> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -25843,7 +26253,7 @@ public ApiResponse readNamespaceStatusWithHttpInfo(String name, Str * (asynchronously) * read status of the specified Namespace * @param name name of the Namespace (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object @@ -25865,7 +26275,7 @@ public okhttp3.Call readNamespaceStatusAsync(String name, String pretty, final A * Build call for readNamespacedConfigMap * @param name name of the ConfigMap (required) * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -25894,7 +26304,7 @@ public okhttp3.Call readNamespacedConfigMapCall(String name, String namespace, S Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -25935,7 +26345,7 @@ private okhttp3.Call readNamespacedConfigMapValidateBeforeCall(String name, Stri * read the specified ConfigMap * @param name name of the ConfigMap (required) * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return V1ConfigMap * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -25955,7 +26365,7 @@ public V1ConfigMap readNamespacedConfigMap(String name, String namespace, String * read the specified ConfigMap * @param name name of the ConfigMap (required) * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return ApiResponse<V1ConfigMap> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -25976,7 +26386,7 @@ public ApiResponse readNamespacedConfigMapWithHttpInfo(String name, * read the specified ConfigMap * @param name name of the ConfigMap (required) * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object @@ -25998,7 +26408,7 @@ public okhttp3.Call readNamespacedConfigMapAsync(String name, String namespace, * Build call for readNamespacedEndpoints * @param name name of the Endpoints (required) * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -26027,7 +26437,7 @@ public okhttp3.Call readNamespacedEndpointsCall(String name, String namespace, S Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -26068,7 +26478,7 @@ private okhttp3.Call readNamespacedEndpointsValidateBeforeCall(String name, Stri * read the specified Endpoints * @param name name of the Endpoints (required) * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return V1Endpoints * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -26088,7 +26498,7 @@ public V1Endpoints readNamespacedEndpoints(String name, String namespace, String * read the specified Endpoints * @param name name of the Endpoints (required) * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return ApiResponse<V1Endpoints> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -26109,7 +26519,7 @@ public ApiResponse readNamespacedEndpointsWithHttpInfo(String name, * read the specified Endpoints * @param name name of the Endpoints (required) * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object @@ -26131,7 +26541,7 @@ public okhttp3.Call readNamespacedEndpointsAsync(String name, String namespace, * Build call for readNamespacedEvent * @param name name of the Event (required) * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -26160,7 +26570,7 @@ public okhttp3.Call readNamespacedEventCall(String name, String namespace, Strin Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -26201,7 +26611,7 @@ private okhttp3.Call readNamespacedEventValidateBeforeCall(String name, String n * read the specified Event * @param name name of the Event (required) * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return CoreV1Event * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -26221,7 +26631,7 @@ public CoreV1Event readNamespacedEvent(String name, String namespace, String pre * read the specified Event * @param name name of the Event (required) * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return ApiResponse<CoreV1Event> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -26242,7 +26652,7 @@ public ApiResponse readNamespacedEventWithHttpInfo(String name, Str * read the specified Event * @param name name of the Event (required) * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object @@ -26264,7 +26674,7 @@ public okhttp3.Call readNamespacedEventAsync(String name, String namespace, Stri * Build call for readNamespacedLimitRange * @param name name of the LimitRange (required) * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -26293,7 +26703,7 @@ public okhttp3.Call readNamespacedLimitRangeCall(String name, String namespace, Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -26334,7 +26744,7 @@ private okhttp3.Call readNamespacedLimitRangeValidateBeforeCall(String name, Str * read the specified LimitRange * @param name name of the LimitRange (required) * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return V1LimitRange * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -26354,7 +26764,7 @@ public V1LimitRange readNamespacedLimitRange(String name, String namespace, Stri * read the specified LimitRange * @param name name of the LimitRange (required) * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return ApiResponse<V1LimitRange> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -26375,7 +26785,7 @@ public ApiResponse readNamespacedLimitRangeWithHttpInfo(String nam * read the specified LimitRange * @param name name of the LimitRange (required) * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object @@ -26397,7 +26807,7 @@ public okhttp3.Call readNamespacedLimitRangeAsync(String name, String namespace, * Build call for readNamespacedPersistentVolumeClaim * @param name name of the PersistentVolumeClaim (required) * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -26426,7 +26836,7 @@ public okhttp3.Call readNamespacedPersistentVolumeClaimCall(String name, String Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -26467,7 +26877,7 @@ private okhttp3.Call readNamespacedPersistentVolumeClaimValidateBeforeCall(Strin * read the specified PersistentVolumeClaim * @param name name of the PersistentVolumeClaim (required) * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return V1PersistentVolumeClaim * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -26487,7 +26897,7 @@ public V1PersistentVolumeClaim readNamespacedPersistentVolumeClaim(String name, * read the specified PersistentVolumeClaim * @param name name of the PersistentVolumeClaim (required) * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return ApiResponse<V1PersistentVolumeClaim> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -26508,7 +26918,7 @@ public ApiResponse readNamespacedPersistentVolumeClaimW * read the specified PersistentVolumeClaim * @param name name of the PersistentVolumeClaim (required) * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object @@ -26530,7 +26940,7 @@ public okhttp3.Call readNamespacedPersistentVolumeClaimAsync(String name, String * Build call for readNamespacedPersistentVolumeClaimStatus * @param name name of the PersistentVolumeClaim (required) * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -26559,7 +26969,7 @@ public okhttp3.Call readNamespacedPersistentVolumeClaimStatusCall(String name, S Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -26600,7 +27010,7 @@ private okhttp3.Call readNamespacedPersistentVolumeClaimStatusValidateBeforeCall * read status of the specified PersistentVolumeClaim * @param name name of the PersistentVolumeClaim (required) * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return V1PersistentVolumeClaim * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -26620,7 +27030,7 @@ public V1PersistentVolumeClaim readNamespacedPersistentVolumeClaimStatus(String * read status of the specified PersistentVolumeClaim * @param name name of the PersistentVolumeClaim (required) * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return ApiResponse<V1PersistentVolumeClaim> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -26641,7 +27051,7 @@ public ApiResponse readNamespacedPersistentVolumeClaimS * read status of the specified PersistentVolumeClaim * @param name name of the PersistentVolumeClaim (required) * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object @@ -26663,7 +27073,7 @@ public okhttp3.Call readNamespacedPersistentVolumeClaimStatusAsync(String name, * Build call for readNamespacedPod * @param name name of the Pod (required) * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -26692,7 +27102,7 @@ public okhttp3.Call readNamespacedPodCall(String name, String namespace, String Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -26733,7 +27143,7 @@ private okhttp3.Call readNamespacedPodValidateBeforeCall(String name, String nam * read the specified Pod * @param name name of the Pod (required) * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return V1Pod * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -26753,7 +27163,7 @@ public V1Pod readNamespacedPod(String name, String namespace, String pretty) thr * read the specified Pod * @param name name of the Pod (required) * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return ApiResponse<V1Pod> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -26774,7 +27184,7 @@ public ApiResponse readNamespacedPodWithHttpInfo(String name, String name * read the specified Pod * @param name name of the Pod (required) * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object @@ -26796,7 +27206,7 @@ public okhttp3.Call readNamespacedPodAsync(String name, String namespace, String * Build call for readNamespacedPodEphemeralcontainers * @param name name of the Pod (required) * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -26825,7 +27235,7 @@ public okhttp3.Call readNamespacedPodEphemeralcontainersCall(String name, String Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -26866,7 +27276,7 @@ private okhttp3.Call readNamespacedPodEphemeralcontainersValidateBeforeCall(Stri * read ephemeralcontainers of the specified Pod * @param name name of the Pod (required) * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return V1Pod * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -26886,7 +27296,7 @@ public V1Pod readNamespacedPodEphemeralcontainers(String name, String namespace, * read ephemeralcontainers of the specified Pod * @param name name of the Pod (required) * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return ApiResponse<V1Pod> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -26907,7 +27317,7 @@ public ApiResponse readNamespacedPodEphemeralcontainersWithHttpInfo(Strin * read ephemeralcontainers of the specified Pod * @param name name of the Pod (required) * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object @@ -26933,10 +27343,11 @@ public okhttp3.Call readNamespacedPodEphemeralcontainersAsync(String name, Strin * @param follow Follow the log stream of the pod. Defaults to false. (optional) * @param insecureSkipTLSVerifyBackend insecureSkipTLSVerifyBackend indicates that the apiserver should not confirm the validity of the serving certificate of the backend it is connecting to. This will make the HTTPS connection between the apiserver and the backend insecure. This means the apiserver cannot verify the log data it is receiving came from the real kubelet. If the kubelet is configured to verify the apiserver's TLS credentials, it does not mean the connection to the real kubelet is vulnerable to a man in the middle attack (e.g. an attacker could not intercept the actual log data coming from the real kubelet). (optional) * @param limitBytes If set, the number of bytes to read from the server before terminating the log output. This may not display a complete final line of logging, and may return slightly more or slightly less than the specified limit. (optional) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param previous Return previous terminated container logs. Defaults to false. (optional) * @param sinceSeconds A relative time in seconds before the current time from which to show logs. If this value precedes the time a pod was started, only logs since the pod start will be returned. If this value is in the future, no logs will be returned. Only one of sinceSeconds or sinceTime may be specified. (optional) - * @param tailLines If set, the number of lines from the end of the logs to show. If not specified, logs are shown from the creation of the container or sinceSeconds or sinceTime (optional) + * @param stream Specify which container log stream to return to the client. Acceptable values are \"All\", \"Stdout\" and \"Stderr\". If not specified, \"All\" is used, and both stdout and stderr are returned interleaved. Note that when \"TailLines\" is specified, \"Stream\" can only be set to nil or \"All\". (optional) + * @param tailLines If set, the number of lines from the end of the logs to show. If not specified, logs are shown from the creation of the container or sinceSeconds or sinceTime. Note that when \"TailLines\" is specified, \"Stream\" can only be set to nil or \"All\". (optional) * @param timestamps If true, add an RFC3339 or RFC3339Nano timestamp at the beginning of every line of log output. Defaults to false. (optional) * @param _callback Callback for upload/download progress * @return Call to execute @@ -26948,7 +27359,7 @@ public okhttp3.Call readNamespacedPodEphemeralcontainersAsync(String name, Strin 401 Unauthorized - */ - public okhttp3.Call readNamespacedPodLogCall(String name, String namespace, String container, Boolean follow, Boolean insecureSkipTLSVerifyBackend, Integer limitBytes, String pretty, Boolean previous, Integer sinceSeconds, Integer tailLines, Boolean timestamps, final ApiCallback _callback) throws ApiException { + public okhttp3.Call readNamespacedPodLogCall(String name, String namespace, String container, Boolean follow, Boolean insecureSkipTLSVerifyBackend, Integer limitBytes, String pretty, Boolean previous, Integer sinceSeconds, String stream, Integer tailLines, Boolean timestamps, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; // create path and map variables @@ -26986,6 +27397,10 @@ public okhttp3.Call readNamespacedPodLogCall(String name, String namespace, Stri localVarQueryParams.addAll(localVarApiClient.parameterToPair("sinceSeconds", sinceSeconds)); } + if (stream != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("stream", stream)); + } + if (tailLines != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("tailLines", tailLines)); } @@ -26998,7 +27413,7 @@ public okhttp3.Call readNamespacedPodLogCall(String name, String namespace, Stri Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "text/plain", "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "text/plain", "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -27016,7 +27431,7 @@ public okhttp3.Call readNamespacedPodLogCall(String name, String namespace, Stri } @SuppressWarnings("rawtypes") - private okhttp3.Call readNamespacedPodLogValidateBeforeCall(String name, String namespace, String container, Boolean follow, Boolean insecureSkipTLSVerifyBackend, Integer limitBytes, String pretty, Boolean previous, Integer sinceSeconds, Integer tailLines, Boolean timestamps, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readNamespacedPodLogValidateBeforeCall(String name, String namespace, String container, Boolean follow, Boolean insecureSkipTLSVerifyBackend, Integer limitBytes, String pretty, Boolean previous, Integer sinceSeconds, String stream, Integer tailLines, Boolean timestamps, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -27029,7 +27444,7 @@ private okhttp3.Call readNamespacedPodLogValidateBeforeCall(String name, String } - okhttp3.Call localVarCall = readNamespacedPodLogCall(name, namespace, container, follow, insecureSkipTLSVerifyBackend, limitBytes, pretty, previous, sinceSeconds, tailLines, timestamps, _callback); + okhttp3.Call localVarCall = readNamespacedPodLogCall(name, namespace, container, follow, insecureSkipTLSVerifyBackend, limitBytes, pretty, previous, sinceSeconds, stream, tailLines, timestamps, _callback); return localVarCall; } @@ -27043,10 +27458,11 @@ private okhttp3.Call readNamespacedPodLogValidateBeforeCall(String name, String * @param follow Follow the log stream of the pod. Defaults to false. (optional) * @param insecureSkipTLSVerifyBackend insecureSkipTLSVerifyBackend indicates that the apiserver should not confirm the validity of the serving certificate of the backend it is connecting to. This will make the HTTPS connection between the apiserver and the backend insecure. This means the apiserver cannot verify the log data it is receiving came from the real kubelet. If the kubelet is configured to verify the apiserver's TLS credentials, it does not mean the connection to the real kubelet is vulnerable to a man in the middle attack (e.g. an attacker could not intercept the actual log data coming from the real kubelet). (optional) * @param limitBytes If set, the number of bytes to read from the server before terminating the log output. This may not display a complete final line of logging, and may return slightly more or slightly less than the specified limit. (optional) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param previous Return previous terminated container logs. Defaults to false. (optional) * @param sinceSeconds A relative time in seconds before the current time from which to show logs. If this value precedes the time a pod was started, only logs since the pod start will be returned. If this value is in the future, no logs will be returned. Only one of sinceSeconds or sinceTime may be specified. (optional) - * @param tailLines If set, the number of lines from the end of the logs to show. If not specified, logs are shown from the creation of the container or sinceSeconds or sinceTime (optional) + * @param stream Specify which container log stream to return to the client. Acceptable values are \"All\", \"Stdout\" and \"Stderr\". If not specified, \"All\" is used, and both stdout and stderr are returned interleaved. Note that when \"TailLines\" is specified, \"Stream\" can only be set to nil or \"All\". (optional) + * @param tailLines If set, the number of lines from the end of the logs to show. If not specified, logs are shown from the creation of the container or sinceSeconds or sinceTime. Note that when \"TailLines\" is specified, \"Stream\" can only be set to nil or \"All\". (optional) * @param timestamps If true, add an RFC3339 or RFC3339Nano timestamp at the beginning of every line of log output. Defaults to false. (optional) * @return String * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body @@ -27057,8 +27473,8 @@ private okhttp3.Call readNamespacedPodLogValidateBeforeCall(String name, String 401 Unauthorized - */ - public String readNamespacedPodLog(String name, String namespace, String container, Boolean follow, Boolean insecureSkipTLSVerifyBackend, Integer limitBytes, String pretty, Boolean previous, Integer sinceSeconds, Integer tailLines, Boolean timestamps) throws ApiException { - ApiResponse localVarResp = readNamespacedPodLogWithHttpInfo(name, namespace, container, follow, insecureSkipTLSVerifyBackend, limitBytes, pretty, previous, sinceSeconds, tailLines, timestamps); + public String readNamespacedPodLog(String name, String namespace, String container, Boolean follow, Boolean insecureSkipTLSVerifyBackend, Integer limitBytes, String pretty, Boolean previous, Integer sinceSeconds, String stream, Integer tailLines, Boolean timestamps) throws ApiException { + ApiResponse localVarResp = readNamespacedPodLogWithHttpInfo(name, namespace, container, follow, insecureSkipTLSVerifyBackend, limitBytes, pretty, previous, sinceSeconds, stream, tailLines, timestamps); return localVarResp.getData(); } @@ -27071,10 +27487,11 @@ public String readNamespacedPodLog(String name, String namespace, String contain * @param follow Follow the log stream of the pod. Defaults to false. (optional) * @param insecureSkipTLSVerifyBackend insecureSkipTLSVerifyBackend indicates that the apiserver should not confirm the validity of the serving certificate of the backend it is connecting to. This will make the HTTPS connection between the apiserver and the backend insecure. This means the apiserver cannot verify the log data it is receiving came from the real kubelet. If the kubelet is configured to verify the apiserver's TLS credentials, it does not mean the connection to the real kubelet is vulnerable to a man in the middle attack (e.g. an attacker could not intercept the actual log data coming from the real kubelet). (optional) * @param limitBytes If set, the number of bytes to read from the server before terminating the log output. This may not display a complete final line of logging, and may return slightly more or slightly less than the specified limit. (optional) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param previous Return previous terminated container logs. Defaults to false. (optional) * @param sinceSeconds A relative time in seconds before the current time from which to show logs. If this value precedes the time a pod was started, only logs since the pod start will be returned. If this value is in the future, no logs will be returned. Only one of sinceSeconds or sinceTime may be specified. (optional) - * @param tailLines If set, the number of lines from the end of the logs to show. If not specified, logs are shown from the creation of the container or sinceSeconds or sinceTime (optional) + * @param stream Specify which container log stream to return to the client. Acceptable values are \"All\", \"Stdout\" and \"Stderr\". If not specified, \"All\" is used, and both stdout and stderr are returned interleaved. Note that when \"TailLines\" is specified, \"Stream\" can only be set to nil or \"All\". (optional) + * @param tailLines If set, the number of lines from the end of the logs to show. If not specified, logs are shown from the creation of the container or sinceSeconds or sinceTime. Note that when \"TailLines\" is specified, \"Stream\" can only be set to nil or \"All\". (optional) * @param timestamps If true, add an RFC3339 or RFC3339Nano timestamp at the beginning of every line of log output. Defaults to false. (optional) * @return ApiResponse<String> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body @@ -27085,8 +27502,8 @@ public String readNamespacedPodLog(String name, String namespace, String contain 401 Unauthorized - */ - public ApiResponse readNamespacedPodLogWithHttpInfo(String name, String namespace, String container, Boolean follow, Boolean insecureSkipTLSVerifyBackend, Integer limitBytes, String pretty, Boolean previous, Integer sinceSeconds, Integer tailLines, Boolean timestamps) throws ApiException { - okhttp3.Call localVarCall = readNamespacedPodLogValidateBeforeCall(name, namespace, container, follow, insecureSkipTLSVerifyBackend, limitBytes, pretty, previous, sinceSeconds, tailLines, timestamps, null); + public ApiResponse readNamespacedPodLogWithHttpInfo(String name, String namespace, String container, Boolean follow, Boolean insecureSkipTLSVerifyBackend, Integer limitBytes, String pretty, Boolean previous, Integer sinceSeconds, String stream, Integer tailLines, Boolean timestamps) throws ApiException { + okhttp3.Call localVarCall = readNamespacedPodLogValidateBeforeCall(name, namespace, container, follow, insecureSkipTLSVerifyBackend, limitBytes, pretty, previous, sinceSeconds, stream, tailLines, timestamps, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -27100,10 +27517,11 @@ public ApiResponse readNamespacedPodLogWithHttpInfo(String name, String * @param follow Follow the log stream of the pod. Defaults to false. (optional) * @param insecureSkipTLSVerifyBackend insecureSkipTLSVerifyBackend indicates that the apiserver should not confirm the validity of the serving certificate of the backend it is connecting to. This will make the HTTPS connection between the apiserver and the backend insecure. This means the apiserver cannot verify the log data it is receiving came from the real kubelet. If the kubelet is configured to verify the apiserver's TLS credentials, it does not mean the connection to the real kubelet is vulnerable to a man in the middle attack (e.g. an attacker could not intercept the actual log data coming from the real kubelet). (optional) * @param limitBytes If set, the number of bytes to read from the server before terminating the log output. This may not display a complete final line of logging, and may return slightly more or slightly less than the specified limit. (optional) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param previous Return previous terminated container logs. Defaults to false. (optional) * @param sinceSeconds A relative time in seconds before the current time from which to show logs. If this value precedes the time a pod was started, only logs since the pod start will be returned. If this value is in the future, no logs will be returned. Only one of sinceSeconds or sinceTime may be specified. (optional) - * @param tailLines If set, the number of lines from the end of the logs to show. If not specified, logs are shown from the creation of the container or sinceSeconds or sinceTime (optional) + * @param stream Specify which container log stream to return to the client. Acceptable values are \"All\", \"Stdout\" and \"Stderr\". If not specified, \"All\" is used, and both stdout and stderr are returned interleaved. Note that when \"TailLines\" is specified, \"Stream\" can only be set to nil or \"All\". (optional) + * @param tailLines If set, the number of lines from the end of the logs to show. If not specified, logs are shown from the creation of the container or sinceSeconds or sinceTime. Note that when \"TailLines\" is specified, \"Stream\" can only be set to nil or \"All\". (optional) * @param timestamps If true, add an RFC3339 or RFC3339Nano timestamp at the beginning of every line of log output. Defaults to false. (optional) * @param _callback The callback to be executed when the API call finishes * @return The request call @@ -27115,18 +27533,151 @@ public ApiResponse readNamespacedPodLogWithHttpInfo(String name, String 401 Unauthorized - */ - public okhttp3.Call readNamespacedPodLogAsync(String name, String namespace, String container, Boolean follow, Boolean insecureSkipTLSVerifyBackend, Integer limitBytes, String pretty, Boolean previous, Integer sinceSeconds, Integer tailLines, Boolean timestamps, final ApiCallback _callback) throws ApiException { + public okhttp3.Call readNamespacedPodLogAsync(String name, String namespace, String container, Boolean follow, Boolean insecureSkipTLSVerifyBackend, Integer limitBytes, String pretty, Boolean previous, Integer sinceSeconds, String stream, Integer tailLines, Boolean timestamps, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = readNamespacedPodLogValidateBeforeCall(name, namespace, container, follow, insecureSkipTLSVerifyBackend, limitBytes, pretty, previous, sinceSeconds, tailLines, timestamps, _callback); + okhttp3.Call localVarCall = readNamespacedPodLogValidateBeforeCall(name, namespace, container, follow, insecureSkipTLSVerifyBackend, limitBytes, pretty, previous, sinceSeconds, stream, tailLines, timestamps, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } + /** + * Build call for readNamespacedPodResize + * @param name name of the Pod (required) + * @param namespace object name and auth scope, such as for teams and projects (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call readNamespacedPodResizeCall(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/api/v1/namespaces/{namespace}/pods/{name}/resize" + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + final String[] localVarAccepts = { + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call readNamespacedPodResizeValidateBeforeCall(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'name' is set + if (name == null) { + throw new ApiException("Missing the required parameter 'name' when calling readNamespacedPodResize(Async)"); + } + + // verify the required parameter 'namespace' is set + if (namespace == null) { + throw new ApiException("Missing the required parameter 'namespace' when calling readNamespacedPodResize(Async)"); + } + + + okhttp3.Call localVarCall = readNamespacedPodResizeCall(name, namespace, pretty, _callback); + return localVarCall; + + } + + /** + * + * read resize of the specified Pod + * @param name name of the Pod (required) + * @param namespace object name and auth scope, such as for teams and projects (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @return V1Pod + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public V1Pod readNamespacedPodResize(String name, String namespace, String pretty) throws ApiException { + ApiResponse localVarResp = readNamespacedPodResizeWithHttpInfo(name, namespace, pretty); + return localVarResp.getData(); + } + + /** + * + * read resize of the specified Pod + * @param name name of the Pod (required) + * @param namespace object name and auth scope, such as for teams and projects (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @return ApiResponse<V1Pod> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public ApiResponse readNamespacedPodResizeWithHttpInfo(String name, String namespace, String pretty) throws ApiException { + okhttp3.Call localVarCall = readNamespacedPodResizeValidateBeforeCall(name, namespace, pretty, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * read resize of the specified Pod + * @param name name of the Pod (required) + * @param namespace object name and auth scope, such as for teams and projects (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call readNamespacedPodResizeAsync(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = readNamespacedPodResizeValidateBeforeCall(name, namespace, pretty, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } /** * Build call for readNamespacedPodStatus * @param name name of the Pod (required) * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -27155,7 +27706,7 @@ public okhttp3.Call readNamespacedPodStatusCall(String name, String namespace, S Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -27196,7 +27747,7 @@ private okhttp3.Call readNamespacedPodStatusValidateBeforeCall(String name, Stri * read status of the specified Pod * @param name name of the Pod (required) * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return V1Pod * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -27216,7 +27767,7 @@ public V1Pod readNamespacedPodStatus(String name, String namespace, String prett * read status of the specified Pod * @param name name of the Pod (required) * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return ApiResponse<V1Pod> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -27237,7 +27788,7 @@ public ApiResponse readNamespacedPodStatusWithHttpInfo(String name, Strin * read status of the specified Pod * @param name name of the Pod (required) * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object @@ -27259,7 +27810,7 @@ public okhttp3.Call readNamespacedPodStatusAsync(String name, String namespace, * Build call for readNamespacedPodTemplate * @param name name of the PodTemplate (required) * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -27288,7 +27839,7 @@ public okhttp3.Call readNamespacedPodTemplateCall(String name, String namespace, Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -27329,7 +27880,7 @@ private okhttp3.Call readNamespacedPodTemplateValidateBeforeCall(String name, St * read the specified PodTemplate * @param name name of the PodTemplate (required) * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return V1PodTemplate * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -27349,7 +27900,7 @@ public V1PodTemplate readNamespacedPodTemplate(String name, String namespace, St * read the specified PodTemplate * @param name name of the PodTemplate (required) * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return ApiResponse<V1PodTemplate> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -27370,7 +27921,7 @@ public ApiResponse readNamespacedPodTemplateWithHttpInfo(String n * read the specified PodTemplate * @param name name of the PodTemplate (required) * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object @@ -27392,7 +27943,7 @@ public okhttp3.Call readNamespacedPodTemplateAsync(String name, String namespace * Build call for readNamespacedReplicationController * @param name name of the ReplicationController (required) * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -27421,7 +27972,7 @@ public okhttp3.Call readNamespacedReplicationControllerCall(String name, String Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -27462,7 +28013,7 @@ private okhttp3.Call readNamespacedReplicationControllerValidateBeforeCall(Strin * read the specified ReplicationController * @param name name of the ReplicationController (required) * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return V1ReplicationController * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -27482,7 +28033,7 @@ public V1ReplicationController readNamespacedReplicationController(String name, * read the specified ReplicationController * @param name name of the ReplicationController (required) * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return ApiResponse<V1ReplicationController> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -27503,7 +28054,7 @@ public ApiResponse readNamespacedReplicationControllerW * read the specified ReplicationController * @param name name of the ReplicationController (required) * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object @@ -27525,7 +28076,7 @@ public okhttp3.Call readNamespacedReplicationControllerAsync(String name, String * Build call for readNamespacedReplicationControllerScale * @param name name of the Scale (required) * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -27554,7 +28105,7 @@ public okhttp3.Call readNamespacedReplicationControllerScaleCall(String name, St Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -27595,7 +28146,7 @@ private okhttp3.Call readNamespacedReplicationControllerScaleValidateBeforeCall( * read scale of the specified ReplicationController * @param name name of the Scale (required) * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return V1Scale * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -27615,7 +28166,7 @@ public V1Scale readNamespacedReplicationControllerScale(String name, String name * read scale of the specified ReplicationController * @param name name of the Scale (required) * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return ApiResponse<V1Scale> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -27636,7 +28187,7 @@ public ApiResponse readNamespacedReplicationControllerScaleWithHttpInfo * read scale of the specified ReplicationController * @param name name of the Scale (required) * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object @@ -27658,7 +28209,7 @@ public okhttp3.Call readNamespacedReplicationControllerScaleAsync(String name, S * Build call for readNamespacedReplicationControllerStatus * @param name name of the ReplicationController (required) * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -27687,7 +28238,7 @@ public okhttp3.Call readNamespacedReplicationControllerStatusCall(String name, S Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -27728,7 +28279,7 @@ private okhttp3.Call readNamespacedReplicationControllerStatusValidateBeforeCall * read status of the specified ReplicationController * @param name name of the ReplicationController (required) * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return V1ReplicationController * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -27748,7 +28299,7 @@ public V1ReplicationController readNamespacedReplicationControllerStatus(String * read status of the specified ReplicationController * @param name name of the ReplicationController (required) * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return ApiResponse<V1ReplicationController> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -27769,7 +28320,7 @@ public ApiResponse readNamespacedReplicationControllerS * read status of the specified ReplicationController * @param name name of the ReplicationController (required) * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object @@ -27791,7 +28342,7 @@ public okhttp3.Call readNamespacedReplicationControllerStatusAsync(String name, * Build call for readNamespacedResourceQuota * @param name name of the ResourceQuota (required) * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -27820,7 +28371,7 @@ public okhttp3.Call readNamespacedResourceQuotaCall(String name, String namespac Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -27861,7 +28412,7 @@ private okhttp3.Call readNamespacedResourceQuotaValidateBeforeCall(String name, * read the specified ResourceQuota * @param name name of the ResourceQuota (required) * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return V1ResourceQuota * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -27881,7 +28432,7 @@ public V1ResourceQuota readNamespacedResourceQuota(String name, String namespace * read the specified ResourceQuota * @param name name of the ResourceQuota (required) * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return ApiResponse<V1ResourceQuota> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -27902,7 +28453,7 @@ public ApiResponse readNamespacedResourceQuotaWithHttpInfo(Stri * read the specified ResourceQuota * @param name name of the ResourceQuota (required) * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object @@ -27924,7 +28475,7 @@ public okhttp3.Call readNamespacedResourceQuotaAsync(String name, String namespa * Build call for readNamespacedResourceQuotaStatus * @param name name of the ResourceQuota (required) * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -27953,7 +28504,7 @@ public okhttp3.Call readNamespacedResourceQuotaStatusCall(String name, String na Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -27994,7 +28545,7 @@ private okhttp3.Call readNamespacedResourceQuotaStatusValidateBeforeCall(String * read status of the specified ResourceQuota * @param name name of the ResourceQuota (required) * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return V1ResourceQuota * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -28014,7 +28565,7 @@ public V1ResourceQuota readNamespacedResourceQuotaStatus(String name, String nam * read status of the specified ResourceQuota * @param name name of the ResourceQuota (required) * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return ApiResponse<V1ResourceQuota> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -28035,7 +28586,7 @@ public ApiResponse readNamespacedResourceQuotaStatusWithHttpInf * read status of the specified ResourceQuota * @param name name of the ResourceQuota (required) * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object @@ -28057,7 +28608,7 @@ public okhttp3.Call readNamespacedResourceQuotaStatusAsync(String name, String n * Build call for readNamespacedSecret * @param name name of the Secret (required) * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -28086,7 +28637,7 @@ public okhttp3.Call readNamespacedSecretCall(String name, String namespace, Stri Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -28127,7 +28678,7 @@ private okhttp3.Call readNamespacedSecretValidateBeforeCall(String name, String * read the specified Secret * @param name name of the Secret (required) * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return V1Secret * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -28147,7 +28698,7 @@ public V1Secret readNamespacedSecret(String name, String namespace, String prett * read the specified Secret * @param name name of the Secret (required) * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return ApiResponse<V1Secret> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -28168,7 +28719,7 @@ public ApiResponse readNamespacedSecretWithHttpInfo(String name, Strin * read the specified Secret * @param name name of the Secret (required) * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object @@ -28190,7 +28741,7 @@ public okhttp3.Call readNamespacedSecretAsync(String name, String namespace, Str * Build call for readNamespacedService * @param name name of the Service (required) * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -28219,7 +28770,7 @@ public okhttp3.Call readNamespacedServiceCall(String name, String namespace, Str Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -28260,7 +28811,7 @@ private okhttp3.Call readNamespacedServiceValidateBeforeCall(String name, String * read the specified Service * @param name name of the Service (required) * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return V1Service * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -28280,7 +28831,7 @@ public V1Service readNamespacedService(String name, String namespace, String pre * read the specified Service * @param name name of the Service (required) * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return ApiResponse<V1Service> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -28301,7 +28852,7 @@ public ApiResponse readNamespacedServiceWithHttpInfo(String name, Str * read the specified Service * @param name name of the Service (required) * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object @@ -28323,7 +28874,7 @@ public okhttp3.Call readNamespacedServiceAsync(String name, String namespace, St * Build call for readNamespacedServiceAccount * @param name name of the ServiceAccount (required) * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -28352,7 +28903,7 @@ public okhttp3.Call readNamespacedServiceAccountCall(String name, String namespa Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -28393,7 +28944,7 @@ private okhttp3.Call readNamespacedServiceAccountValidateBeforeCall(String name, * read the specified ServiceAccount * @param name name of the ServiceAccount (required) * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return V1ServiceAccount * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -28413,7 +28964,7 @@ public V1ServiceAccount readNamespacedServiceAccount(String name, String namespa * read the specified ServiceAccount * @param name name of the ServiceAccount (required) * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return ApiResponse<V1ServiceAccount> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -28434,7 +28985,7 @@ public ApiResponse readNamespacedServiceAccountWithHttpInfo(St * read the specified ServiceAccount * @param name name of the ServiceAccount (required) * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object @@ -28456,7 +29007,7 @@ public okhttp3.Call readNamespacedServiceAccountAsync(String name, String namesp * Build call for readNamespacedServiceStatus * @param name name of the Service (required) * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -28485,7 +29036,7 @@ public okhttp3.Call readNamespacedServiceStatusCall(String name, String namespac Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -28526,7 +29077,7 @@ private okhttp3.Call readNamespacedServiceStatusValidateBeforeCall(String name, * read status of the specified Service * @param name name of the Service (required) * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return V1Service * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -28546,7 +29097,7 @@ public V1Service readNamespacedServiceStatus(String name, String namespace, Stri * read status of the specified Service * @param name name of the Service (required) * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return ApiResponse<V1Service> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -28567,7 +29118,7 @@ public ApiResponse readNamespacedServiceStatusWithHttpInfo(String nam * read status of the specified Service * @param name name of the Service (required) * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object @@ -28588,7 +29139,7 @@ public okhttp3.Call readNamespacedServiceStatusAsync(String name, String namespa /** * Build call for readNode * @param name name of the Node (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -28616,7 +29167,7 @@ public okhttp3.Call readNodeCall(String name, String pretty, final ApiCallback _ Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -28651,7 +29202,7 @@ private okhttp3.Call readNodeValidateBeforeCall(String name, String pretty, fina * * read the specified Node * @param name name of the Node (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return V1Node * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -28670,7 +29221,7 @@ public V1Node readNode(String name, String pretty) throws ApiException { * * read the specified Node * @param name name of the Node (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return ApiResponse<V1Node> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -28690,7 +29241,7 @@ public ApiResponse readNodeWithHttpInfo(String name, String pretty) thro * (asynchronously) * read the specified Node * @param name name of the Node (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object @@ -28711,7 +29262,7 @@ public okhttp3.Call readNodeAsync(String name, String pretty, final ApiCallback< /** * Build call for readNodeStatus * @param name name of the Node (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -28739,7 +29290,7 @@ public okhttp3.Call readNodeStatusCall(String name, String pretty, final ApiCall Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -28774,7 +29325,7 @@ private okhttp3.Call readNodeStatusValidateBeforeCall(String name, String pretty * * read status of the specified Node * @param name name of the Node (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return V1Node * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -28793,7 +29344,7 @@ public V1Node readNodeStatus(String name, String pretty) throws ApiException { * * read status of the specified Node * @param name name of the Node (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return ApiResponse<V1Node> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -28813,7 +29364,7 @@ public ApiResponse readNodeStatusWithHttpInfo(String name, String pretty * (asynchronously) * read status of the specified Node * @param name name of the Node (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object @@ -28834,7 +29385,7 @@ public okhttp3.Call readNodeStatusAsync(String name, String pretty, final ApiCal /** * Build call for readPersistentVolume * @param name name of the PersistentVolume (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -28862,7 +29413,7 @@ public okhttp3.Call readPersistentVolumeCall(String name, String pretty, final A Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -28897,7 +29448,7 @@ private okhttp3.Call readPersistentVolumeValidateBeforeCall(String name, String * * read the specified PersistentVolume * @param name name of the PersistentVolume (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return V1PersistentVolume * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -28916,7 +29467,7 @@ public V1PersistentVolume readPersistentVolume(String name, String pretty) throw * * read the specified PersistentVolume * @param name name of the PersistentVolume (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return ApiResponse<V1PersistentVolume> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -28936,7 +29487,7 @@ public ApiResponse readPersistentVolumeWithHttpInfo(String n * (asynchronously) * read the specified PersistentVolume * @param name name of the PersistentVolume (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object @@ -28957,7 +29508,7 @@ public okhttp3.Call readPersistentVolumeAsync(String name, String pretty, final /** * Build call for readPersistentVolumeStatus * @param name name of the PersistentVolume (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -28985,7 +29536,7 @@ public okhttp3.Call readPersistentVolumeStatusCall(String name, String pretty, f Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -29020,7 +29571,7 @@ private okhttp3.Call readPersistentVolumeStatusValidateBeforeCall(String name, S * * read status of the specified PersistentVolume * @param name name of the PersistentVolume (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return V1PersistentVolume * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -29039,7 +29590,7 @@ public V1PersistentVolume readPersistentVolumeStatus(String name, String pretty) * * read status of the specified PersistentVolume * @param name name of the PersistentVolume (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return ApiResponse<V1PersistentVolume> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -29059,7 +29610,7 @@ public ApiResponse readPersistentVolumeStatusWithHttpInfo(St * (asynchronously) * read status of the specified PersistentVolume * @param name name of the PersistentVolume (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object @@ -29081,7 +29632,7 @@ public okhttp3.Call readPersistentVolumeStatusAsync(String name, String pretty, * Build call for replaceNamespace * @param name name of the Namespace (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -29125,7 +29676,7 @@ public okhttp3.Call replaceNamespaceCall(String name, V1Namespace body, String p Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -29166,7 +29717,7 @@ private okhttp3.Call replaceNamespaceValidateBeforeCall(String name, V1Namespace * replace the specified Namespace * @param name name of the Namespace (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -29190,7 +29741,7 @@ public V1Namespace replaceNamespace(String name, V1Namespace body, String pretty * replace the specified Namespace * @param name name of the Namespace (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -29215,7 +29766,7 @@ public ApiResponse replaceNamespaceWithHttpInfo(String name, V1Name * replace the specified Namespace * @param name name of the Namespace (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -29244,7 +29795,7 @@ public okhttp3.Call replaceNamespaceAsync(String name, V1Namespace body, String * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -29285,7 +29836,7 @@ public okhttp3.Call replaceNamespaceFinalizeCall(String name, V1Namespace body, Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -29329,7 +29880,7 @@ private okhttp3.Call replaceNamespaceFinalizeValidateBeforeCall(String name, V1N * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return V1Namespace * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -29353,7 +29904,7 @@ public V1Namespace replaceNamespaceFinalize(String name, V1Namespace body, Strin * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return ApiResponse<V1Namespace> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -29378,7 +29929,7 @@ public ApiResponse replaceNamespaceFinalizeWithHttpInfo(String name * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object @@ -29401,7 +29952,7 @@ public okhttp3.Call replaceNamespaceFinalizeAsync(String name, V1Namespace body, * Build call for replaceNamespaceStatus * @param name name of the Namespace (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -29445,7 +29996,7 @@ public okhttp3.Call replaceNamespaceStatusCall(String name, V1Namespace body, St Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -29486,7 +30037,7 @@ private okhttp3.Call replaceNamespaceStatusValidateBeforeCall(String name, V1Nam * replace status of the specified Namespace * @param name name of the Namespace (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -29510,7 +30061,7 @@ public V1Namespace replaceNamespaceStatus(String name, V1Namespace body, String * replace status of the specified Namespace * @param name name of the Namespace (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -29535,7 +30086,7 @@ public ApiResponse replaceNamespaceStatusWithHttpInfo(String name, * replace status of the specified Namespace * @param name name of the Namespace (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -29562,7 +30113,7 @@ public okhttp3.Call replaceNamespaceStatusAsync(String name, V1Namespace body, S * @param name name of the ConfigMap (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -29607,7 +30158,7 @@ public okhttp3.Call replaceNamespacedConfigMapCall(String name, String namespace Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -29654,7 +30205,7 @@ private okhttp3.Call replaceNamespacedConfigMapValidateBeforeCall(String name, S * @param name name of the ConfigMap (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -29679,7 +30230,7 @@ public V1ConfigMap replaceNamespacedConfigMap(String name, String namespace, V1C * @param name name of the ConfigMap (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -29705,7 +30256,7 @@ public ApiResponse replaceNamespacedConfigMapWithHttpInfo(String na * @param name name of the ConfigMap (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -29732,7 +30283,7 @@ public okhttp3.Call replaceNamespacedConfigMapAsync(String name, String namespac * @param name name of the Endpoints (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -29777,7 +30328,7 @@ public okhttp3.Call replaceNamespacedEndpointsCall(String name, String namespace Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -29824,7 +30375,7 @@ private okhttp3.Call replaceNamespacedEndpointsValidateBeforeCall(String name, S * @param name name of the Endpoints (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -29849,7 +30400,7 @@ public V1Endpoints replaceNamespacedEndpoints(String name, String namespace, V1E * @param name name of the Endpoints (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -29875,7 +30426,7 @@ public ApiResponse replaceNamespacedEndpointsWithHttpInfo(String na * @param name name of the Endpoints (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -29902,7 +30453,7 @@ public okhttp3.Call replaceNamespacedEndpointsAsync(String name, String namespac * @param name name of the Event (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -29947,7 +30498,7 @@ public okhttp3.Call replaceNamespacedEventCall(String name, String namespace, Co Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -29994,7 +30545,7 @@ private okhttp3.Call replaceNamespacedEventValidateBeforeCall(String name, Strin * @param name name of the Event (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -30019,7 +30570,7 @@ public CoreV1Event replaceNamespacedEvent(String name, String namespace, CoreV1E * @param name name of the Event (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -30045,7 +30596,7 @@ public ApiResponse replaceNamespacedEventWithHttpInfo(String name, * @param name name of the Event (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -30072,7 +30623,7 @@ public okhttp3.Call replaceNamespacedEventAsync(String name, String namespace, C * @param name name of the LimitRange (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -30117,7 +30668,7 @@ public okhttp3.Call replaceNamespacedLimitRangeCall(String name, String namespac Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -30164,7 +30715,7 @@ private okhttp3.Call replaceNamespacedLimitRangeValidateBeforeCall(String name, * @param name name of the LimitRange (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -30189,7 +30740,7 @@ public V1LimitRange replaceNamespacedLimitRange(String name, String namespace, V * @param name name of the LimitRange (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -30215,7 +30766,7 @@ public ApiResponse replaceNamespacedLimitRangeWithHttpInfo(String * @param name name of the LimitRange (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -30242,7 +30793,7 @@ public okhttp3.Call replaceNamespacedLimitRangeAsync(String name, String namespa * @param name name of the PersistentVolumeClaim (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -30287,7 +30838,7 @@ public okhttp3.Call replaceNamespacedPersistentVolumeClaimCall(String name, Stri Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -30334,7 +30885,7 @@ private okhttp3.Call replaceNamespacedPersistentVolumeClaimValidateBeforeCall(St * @param name name of the PersistentVolumeClaim (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -30359,7 +30910,7 @@ public V1PersistentVolumeClaim replaceNamespacedPersistentVolumeClaim(String nam * @param name name of the PersistentVolumeClaim (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -30385,7 +30936,7 @@ public ApiResponse replaceNamespacedPersistentVolumeCla * @param name name of the PersistentVolumeClaim (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -30412,7 +30963,7 @@ public okhttp3.Call replaceNamespacedPersistentVolumeClaimAsync(String name, Str * @param name name of the PersistentVolumeClaim (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -30457,7 +31008,7 @@ public okhttp3.Call replaceNamespacedPersistentVolumeClaimStatusCall(String name Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -30504,7 +31055,7 @@ private okhttp3.Call replaceNamespacedPersistentVolumeClaimStatusValidateBeforeC * @param name name of the PersistentVolumeClaim (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -30529,7 +31080,7 @@ public V1PersistentVolumeClaim replaceNamespacedPersistentVolumeClaimStatus(Stri * @param name name of the PersistentVolumeClaim (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -30555,7 +31106,7 @@ public ApiResponse replaceNamespacedPersistentVolumeCla * @param name name of the PersistentVolumeClaim (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -30582,7 +31133,7 @@ public okhttp3.Call replaceNamespacedPersistentVolumeClaimStatusAsync(String nam * @param name name of the Pod (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -30627,7 +31178,7 @@ public okhttp3.Call replaceNamespacedPodCall(String name, String namespace, V1Po Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -30674,7 +31225,7 @@ private okhttp3.Call replaceNamespacedPodValidateBeforeCall(String name, String * @param name name of the Pod (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -30699,7 +31250,7 @@ public V1Pod replaceNamespacedPod(String name, String namespace, V1Pod body, Str * @param name name of the Pod (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -30725,7 +31276,7 @@ public ApiResponse replaceNamespacedPodWithHttpInfo(String name, String n * @param name name of the Pod (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -30752,7 +31303,7 @@ public okhttp3.Call replaceNamespacedPodAsync(String name, String namespace, V1P * @param name name of the Pod (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -30797,7 +31348,7 @@ public okhttp3.Call replaceNamespacedPodEphemeralcontainersCall(String name, Str Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -30844,7 +31395,7 @@ private okhttp3.Call replaceNamespacedPodEphemeralcontainersValidateBeforeCall(S * @param name name of the Pod (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -30869,7 +31420,7 @@ public V1Pod replaceNamespacedPodEphemeralcontainers(String name, String namespa * @param name name of the Pod (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -30895,7 +31446,7 @@ public ApiResponse replaceNamespacedPodEphemeralcontainersWithHttpInfo(St * @param name name of the Pod (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -30917,12 +31468,182 @@ public okhttp3.Call replaceNamespacedPodEphemeralcontainersAsync(String name, St localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } + /** + * Build call for replaceNamespacedPodResize + * @param name name of the Pod (required) + * @param namespace object name and auth scope, such as for teams and projects (required) + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public okhttp3.Call replaceNamespacedPodResizeCall(String name, String namespace, V1Pod body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + Object localVarPostBody = body; + + // create path and map variables + String localVarPath = "/api/v1/namespaces/{namespace}/pods/{name}/resize" + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } + + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + + if (fieldValidation != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + final String[] localVarAccepts = { + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call replaceNamespacedPodResizeValidateBeforeCall(String name, String namespace, V1Pod body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'name' is set + if (name == null) { + throw new ApiException("Missing the required parameter 'name' when calling replaceNamespacedPodResize(Async)"); + } + + // verify the required parameter 'namespace' is set + if (namespace == null) { + throw new ApiException("Missing the required parameter 'namespace' when calling replaceNamespacedPodResize(Async)"); + } + + // verify the required parameter 'body' is set + if (body == null) { + throw new ApiException("Missing the required parameter 'body' when calling replaceNamespacedPodResize(Async)"); + } + + + okhttp3.Call localVarCall = replaceNamespacedPodResizeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); + return localVarCall; + + } + + /** + * + * replace resize of the specified Pod + * @param name name of the Pod (required) + * @param namespace object name and auth scope, such as for teams and projects (required) + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @return V1Pod + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public V1Pod replaceNamespacedPodResize(String name, String namespace, V1Pod body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { + ApiResponse localVarResp = replaceNamespacedPodResizeWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation); + return localVarResp.getData(); + } + + /** + * + * replace resize of the specified Pod + * @param name name of the Pod (required) + * @param namespace object name and auth scope, such as for teams and projects (required) + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @return ApiResponse<V1Pod> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public ApiResponse replaceNamespacedPodResizeWithHttpInfo(String name, String namespace, V1Pod body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { + okhttp3.Call localVarCall = replaceNamespacedPodResizeValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * replace resize of the specified Pod + * @param name name of the Pod (required) + * @param namespace object name and auth scope, such as for teams and projects (required) + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public okhttp3.Call replaceNamespacedPodResizeAsync(String name, String namespace, V1Pod body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = replaceNamespacedPodResizeValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } /** * Build call for replaceNamespacedPodStatus * @param name name of the Pod (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -30967,7 +31688,7 @@ public okhttp3.Call replaceNamespacedPodStatusCall(String name, String namespace Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -31014,7 +31735,7 @@ private okhttp3.Call replaceNamespacedPodStatusValidateBeforeCall(String name, S * @param name name of the Pod (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -31039,7 +31760,7 @@ public V1Pod replaceNamespacedPodStatus(String name, String namespace, V1Pod bod * @param name name of the Pod (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -31065,7 +31786,7 @@ public ApiResponse replaceNamespacedPodStatusWithHttpInfo(String name, St * @param name name of the Pod (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -31092,7 +31813,7 @@ public okhttp3.Call replaceNamespacedPodStatusAsync(String name, String namespac * @param name name of the PodTemplate (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -31137,7 +31858,7 @@ public okhttp3.Call replaceNamespacedPodTemplateCall(String name, String namespa Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -31184,7 +31905,7 @@ private okhttp3.Call replaceNamespacedPodTemplateValidateBeforeCall(String name, * @param name name of the PodTemplate (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -31209,7 +31930,7 @@ public V1PodTemplate replaceNamespacedPodTemplate(String name, String namespace, * @param name name of the PodTemplate (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -31235,7 +31956,7 @@ public ApiResponse replaceNamespacedPodTemplateWithHttpInfo(Strin * @param name name of the PodTemplate (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -31262,7 +31983,7 @@ public okhttp3.Call replaceNamespacedPodTemplateAsync(String name, String namesp * @param name name of the ReplicationController (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -31307,7 +32028,7 @@ public okhttp3.Call replaceNamespacedReplicationControllerCall(String name, Stri Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -31354,7 +32075,7 @@ private okhttp3.Call replaceNamespacedReplicationControllerValidateBeforeCall(St * @param name name of the ReplicationController (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -31379,7 +32100,7 @@ public V1ReplicationController replaceNamespacedReplicationController(String nam * @param name name of the ReplicationController (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -31405,7 +32126,7 @@ public ApiResponse replaceNamespacedReplicationControll * @param name name of the ReplicationController (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -31432,7 +32153,7 @@ public okhttp3.Call replaceNamespacedReplicationControllerAsync(String name, Str * @param name name of the Scale (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -31477,7 +32198,7 @@ public okhttp3.Call replaceNamespacedReplicationControllerScaleCall(String name, Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -31524,7 +32245,7 @@ private okhttp3.Call replaceNamespacedReplicationControllerScaleValidateBeforeCa * @param name name of the Scale (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -31549,7 +32270,7 @@ public V1Scale replaceNamespacedReplicationControllerScale(String name, String n * @param name name of the Scale (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -31575,7 +32296,7 @@ public ApiResponse replaceNamespacedReplicationControllerScaleWithHttpI * @param name name of the Scale (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -31602,7 +32323,7 @@ public okhttp3.Call replaceNamespacedReplicationControllerScaleAsync(String name * @param name name of the ReplicationController (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -31647,7 +32368,7 @@ public okhttp3.Call replaceNamespacedReplicationControllerStatusCall(String name Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -31694,7 +32415,7 @@ private okhttp3.Call replaceNamespacedReplicationControllerStatusValidateBeforeC * @param name name of the ReplicationController (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -31719,7 +32440,7 @@ public V1ReplicationController replaceNamespacedReplicationControllerStatus(Stri * @param name name of the ReplicationController (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -31745,7 +32466,7 @@ public ApiResponse replaceNamespacedReplicationControll * @param name name of the ReplicationController (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -31772,7 +32493,7 @@ public okhttp3.Call replaceNamespacedReplicationControllerStatusAsync(String nam * @param name name of the ResourceQuota (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -31817,7 +32538,7 @@ public okhttp3.Call replaceNamespacedResourceQuotaCall(String name, String names Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -31864,7 +32585,7 @@ private okhttp3.Call replaceNamespacedResourceQuotaValidateBeforeCall(String nam * @param name name of the ResourceQuota (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -31889,7 +32610,7 @@ public V1ResourceQuota replaceNamespacedResourceQuota(String name, String namesp * @param name name of the ResourceQuota (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -31915,7 +32636,7 @@ public ApiResponse replaceNamespacedResourceQuotaWithHttpInfo(S * @param name name of the ResourceQuota (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -31942,7 +32663,7 @@ public okhttp3.Call replaceNamespacedResourceQuotaAsync(String name, String name * @param name name of the ResourceQuota (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -31987,7 +32708,7 @@ public okhttp3.Call replaceNamespacedResourceQuotaStatusCall(String name, String Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -32034,7 +32755,7 @@ private okhttp3.Call replaceNamespacedResourceQuotaStatusValidateBeforeCall(Stri * @param name name of the ResourceQuota (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -32059,7 +32780,7 @@ public V1ResourceQuota replaceNamespacedResourceQuotaStatus(String name, String * @param name name of the ResourceQuota (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -32085,7 +32806,7 @@ public ApiResponse replaceNamespacedResourceQuotaStatusWithHttp * @param name name of the ResourceQuota (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -32112,7 +32833,7 @@ public okhttp3.Call replaceNamespacedResourceQuotaStatusAsync(String name, Strin * @param name name of the Secret (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -32157,7 +32878,7 @@ public okhttp3.Call replaceNamespacedSecretCall(String name, String namespace, V Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -32204,7 +32925,7 @@ private okhttp3.Call replaceNamespacedSecretValidateBeforeCall(String name, Stri * @param name name of the Secret (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -32229,7 +32950,7 @@ public V1Secret replaceNamespacedSecret(String name, String namespace, V1Secret * @param name name of the Secret (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -32255,7 +32976,7 @@ public ApiResponse replaceNamespacedSecretWithHttpInfo(String name, St * @param name name of the Secret (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -32282,7 +33003,7 @@ public okhttp3.Call replaceNamespacedSecretAsync(String name, String namespace, * @param name name of the Service (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -32327,7 +33048,7 @@ public okhttp3.Call replaceNamespacedServiceCall(String name, String namespace, Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -32374,7 +33095,7 @@ private okhttp3.Call replaceNamespacedServiceValidateBeforeCall(String name, Str * @param name name of the Service (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -32399,7 +33120,7 @@ public V1Service replaceNamespacedService(String name, String namespace, V1Servi * @param name name of the Service (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -32425,7 +33146,7 @@ public ApiResponse replaceNamespacedServiceWithHttpInfo(String name, * @param name name of the Service (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -32452,7 +33173,7 @@ public okhttp3.Call replaceNamespacedServiceAsync(String name, String namespace, * @param name name of the ServiceAccount (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -32497,7 +33218,7 @@ public okhttp3.Call replaceNamespacedServiceAccountCall(String name, String name Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -32544,7 +33265,7 @@ private okhttp3.Call replaceNamespacedServiceAccountValidateBeforeCall(String na * @param name name of the ServiceAccount (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -32569,7 +33290,7 @@ public V1ServiceAccount replaceNamespacedServiceAccount(String name, String name * @param name name of the ServiceAccount (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -32595,7 +33316,7 @@ public ApiResponse replaceNamespacedServiceAccountWithHttpInfo * @param name name of the ServiceAccount (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -32622,7 +33343,7 @@ public okhttp3.Call replaceNamespacedServiceAccountAsync(String name, String nam * @param name name of the Service (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -32667,7 +33388,7 @@ public okhttp3.Call replaceNamespacedServiceStatusCall(String name, String names Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -32714,7 +33435,7 @@ private okhttp3.Call replaceNamespacedServiceStatusValidateBeforeCall(String nam * @param name name of the Service (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -32739,7 +33460,7 @@ public V1Service replaceNamespacedServiceStatus(String name, String namespace, V * @param name name of the Service (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -32765,7 +33486,7 @@ public ApiResponse replaceNamespacedServiceStatusWithHttpInfo(String * @param name name of the Service (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -32791,7 +33512,7 @@ public okhttp3.Call replaceNamespacedServiceStatusAsync(String name, String name * Build call for replaceNode * @param name name of the Node (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -32835,7 +33556,7 @@ public okhttp3.Call replaceNodeCall(String name, V1Node body, String pretty, Str Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -32876,7 +33597,7 @@ private okhttp3.Call replaceNodeValidateBeforeCall(String name, V1Node body, Str * replace the specified Node * @param name name of the Node (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -32900,7 +33621,7 @@ public V1Node replaceNode(String name, V1Node body, String pretty, String dryRun * replace the specified Node * @param name name of the Node (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -32925,7 +33646,7 @@ public ApiResponse replaceNodeWithHttpInfo(String name, V1Node body, Str * replace the specified Node * @param name name of the Node (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -32951,7 +33672,7 @@ public okhttp3.Call replaceNodeAsync(String name, V1Node body, String pretty, St * Build call for replaceNodeStatus * @param name name of the Node (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -32995,7 +33716,7 @@ public okhttp3.Call replaceNodeStatusCall(String name, V1Node body, String prett Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -33036,7 +33757,7 @@ private okhttp3.Call replaceNodeStatusValidateBeforeCall(String name, V1Node bod * replace status of the specified Node * @param name name of the Node (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -33060,7 +33781,7 @@ public V1Node replaceNodeStatus(String name, V1Node body, String pretty, String * replace status of the specified Node * @param name name of the Node (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -33085,7 +33806,7 @@ public ApiResponse replaceNodeStatusWithHttpInfo(String name, V1Node bod * replace status of the specified Node * @param name name of the Node (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -33111,7 +33832,7 @@ public okhttp3.Call replaceNodeStatusAsync(String name, V1Node body, String pret * Build call for replacePersistentVolume * @param name name of the PersistentVolume (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -33155,7 +33876,7 @@ public okhttp3.Call replacePersistentVolumeCall(String name, V1PersistentVolume Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -33196,7 +33917,7 @@ private okhttp3.Call replacePersistentVolumeValidateBeforeCall(String name, V1Pe * replace the specified PersistentVolume * @param name name of the PersistentVolume (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -33220,7 +33941,7 @@ public V1PersistentVolume replacePersistentVolume(String name, V1PersistentVolum * replace the specified PersistentVolume * @param name name of the PersistentVolume (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -33245,7 +33966,7 @@ public ApiResponse replacePersistentVolumeWithHttpInfo(Strin * replace the specified PersistentVolume * @param name name of the PersistentVolume (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -33271,7 +33992,7 @@ public okhttp3.Call replacePersistentVolumeAsync(String name, V1PersistentVolume * Build call for replacePersistentVolumeStatus * @param name name of the PersistentVolume (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -33315,7 +34036,7 @@ public okhttp3.Call replacePersistentVolumeStatusCall(String name, V1PersistentV Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -33356,7 +34077,7 @@ private okhttp3.Call replacePersistentVolumeStatusValidateBeforeCall(String name * replace status of the specified PersistentVolume * @param name name of the PersistentVolume (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -33380,7 +34101,7 @@ public V1PersistentVolume replacePersistentVolumeStatus(String name, V1Persisten * replace status of the specified PersistentVolume * @param name name of the PersistentVolume (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -33405,7 +34126,7 @@ public ApiResponse replacePersistentVolumeStatusWithHttpInfo * replace status of the specified PersistentVolume * @param name name of the PersistentVolume (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) 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 0d6254c1e9..9db65df09d 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -63,6 +63,7 @@ public void setApiClient(ApiClient apiClient) { * @param pretty If 'true', then the output is pretty printed. (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) (optional) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -73,7 +74,7 @@ public void setApiClient(ApiClient apiClient) { 401 Unauthorized - */ - public okhttp3.Call createClusterCustomObjectCall(String group, String version, String plural, Object body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { + public okhttp3.Call createClusterCustomObjectCall(String group, String version, String plural, Object body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; // create path and map variables @@ -96,6 +97,10 @@ public okhttp3.Call createClusterCustomObjectCall(String group, String version, localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); } + if (fieldValidation != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); + } + Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); @@ -118,7 +123,7 @@ public okhttp3.Call createClusterCustomObjectCall(String group, String version, } @SuppressWarnings("rawtypes") - private okhttp3.Call createClusterCustomObjectValidateBeforeCall(String group, String version, String plural, Object body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { + private okhttp3.Call createClusterCustomObjectValidateBeforeCall(String group, String version, String plural, Object body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { // verify the required parameter 'group' is set if (group == null) { @@ -141,7 +146,7 @@ private okhttp3.Call createClusterCustomObjectValidateBeforeCall(String group, S } - okhttp3.Call localVarCall = createClusterCustomObjectCall(group, version, plural, body, pretty, dryRun, fieldManager, _callback); + okhttp3.Call localVarCall = createClusterCustomObjectCall(group, version, plural, body, pretty, dryRun, fieldManager, fieldValidation, _callback); return localVarCall; } @@ -156,6 +161,7 @@ private okhttp3.Call createClusterCustomObjectValidateBeforeCall(String group, S * @param pretty If 'true', then the output is pretty printed. (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) (optional) * @return Object * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -165,8 +171,8 @@ private okhttp3.Call createClusterCustomObjectValidateBeforeCall(String group, S 401 Unauthorized - */ - public Object createClusterCustomObject(String group, String version, String plural, Object body, String pretty, String dryRun, String fieldManager) throws ApiException { - ApiResponse localVarResp = createClusterCustomObjectWithHttpInfo(group, version, plural, body, pretty, dryRun, fieldManager); + public Object createClusterCustomObject(String group, String version, String plural, Object body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { + ApiResponse localVarResp = createClusterCustomObjectWithHttpInfo(group, version, plural, body, pretty, dryRun, fieldManager, fieldValidation); return localVarResp.getData(); } @@ -180,6 +186,7 @@ public Object createClusterCustomObject(String group, String version, String plu * @param pretty If 'true', then the output is pretty printed. (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) (optional) * @return ApiResponse<Object> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -189,8 +196,8 @@ public Object createClusterCustomObject(String group, String version, String plu 401 Unauthorized - */ - public ApiResponse createClusterCustomObjectWithHttpInfo(String group, String version, String plural, Object body, String pretty, String dryRun, String fieldManager) throws ApiException { - okhttp3.Call localVarCall = createClusterCustomObjectValidateBeforeCall(group, version, plural, body, pretty, dryRun, fieldManager, null); + public ApiResponse createClusterCustomObjectWithHttpInfo(String group, String version, String plural, Object body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { + okhttp3.Call localVarCall = createClusterCustomObjectValidateBeforeCall(group, version, plural, body, pretty, dryRun, fieldManager, fieldValidation, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -205,6 +212,7 @@ public ApiResponse createClusterCustomObjectWithHttpInfo(String group, S * @param pretty If 'true', then the output is pretty printed. (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) (optional) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object @@ -215,9 +223,9 @@ public ApiResponse createClusterCustomObjectWithHttpInfo(String group, S 401 Unauthorized - */ - public okhttp3.Call createClusterCustomObjectAsync(String group, String version, String plural, Object body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { + public okhttp3.Call createClusterCustomObjectAsync(String group, String version, String plural, Object body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = createClusterCustomObjectValidateBeforeCall(group, version, plural, body, pretty, dryRun, fieldManager, _callback); + okhttp3.Call localVarCall = createClusterCustomObjectValidateBeforeCall(group, version, plural, body, pretty, dryRun, fieldManager, fieldValidation, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -232,6 +240,7 @@ public okhttp3.Call createClusterCustomObjectAsync(String group, String version, * @param pretty If 'true', then the output is pretty printed. (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) (optional) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -242,7 +251,7 @@ public okhttp3.Call createClusterCustomObjectAsync(String group, String version, 401 Unauthorized - */ - public okhttp3.Call createNamespacedCustomObjectCall(String group, String version, String namespace, String plural, Object body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { + public okhttp3.Call createNamespacedCustomObjectCall(String group, String version, String namespace, String plural, Object body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; // create path and map variables @@ -266,6 +275,10 @@ public okhttp3.Call createNamespacedCustomObjectCall(String group, String versio localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); } + if (fieldValidation != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); + } + Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); @@ -288,7 +301,7 @@ public okhttp3.Call createNamespacedCustomObjectCall(String group, String versio } @SuppressWarnings("rawtypes") - private okhttp3.Call createNamespacedCustomObjectValidateBeforeCall(String group, String version, String namespace, String plural, Object body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { + private okhttp3.Call createNamespacedCustomObjectValidateBeforeCall(String group, String version, String namespace, String plural, Object body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { // verify the required parameter 'group' is set if (group == null) { @@ -316,7 +329,7 @@ private okhttp3.Call createNamespacedCustomObjectValidateBeforeCall(String group } - okhttp3.Call localVarCall = createNamespacedCustomObjectCall(group, version, namespace, plural, body, pretty, dryRun, fieldManager, _callback); + okhttp3.Call localVarCall = createNamespacedCustomObjectCall(group, version, namespace, plural, body, pretty, dryRun, fieldManager, fieldValidation, _callback); return localVarCall; } @@ -332,6 +345,7 @@ private okhttp3.Call createNamespacedCustomObjectValidateBeforeCall(String group * @param pretty If 'true', then the output is pretty printed. (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) (optional) * @return Object * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -341,8 +355,8 @@ private okhttp3.Call createNamespacedCustomObjectValidateBeforeCall(String group 401 Unauthorized - */ - public Object createNamespacedCustomObject(String group, String version, String namespace, String plural, Object body, String pretty, String dryRun, String fieldManager) throws ApiException { - ApiResponse localVarResp = createNamespacedCustomObjectWithHttpInfo(group, version, namespace, plural, body, pretty, dryRun, fieldManager); + public Object createNamespacedCustomObject(String group, String version, String namespace, String plural, Object body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { + ApiResponse localVarResp = createNamespacedCustomObjectWithHttpInfo(group, version, namespace, plural, body, pretty, dryRun, fieldManager, fieldValidation); return localVarResp.getData(); } @@ -357,6 +371,7 @@ public Object createNamespacedCustomObject(String group, String version, String * @param pretty If 'true', then the output is pretty printed. (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) (optional) * @return ApiResponse<Object> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -366,8 +381,8 @@ public Object createNamespacedCustomObject(String group, String version, String 401 Unauthorized - */ - public ApiResponse createNamespacedCustomObjectWithHttpInfo(String group, String version, String namespace, String plural, Object body, String pretty, String dryRun, String fieldManager) throws ApiException { - okhttp3.Call localVarCall = createNamespacedCustomObjectValidateBeforeCall(group, version, namespace, plural, body, pretty, dryRun, fieldManager, null); + public ApiResponse createNamespacedCustomObjectWithHttpInfo(String group, String version, String namespace, String plural, Object body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { + okhttp3.Call localVarCall = createNamespacedCustomObjectValidateBeforeCall(group, version, namespace, plural, body, pretty, dryRun, fieldManager, fieldValidation, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -383,6 +398,7 @@ public ApiResponse createNamespacedCustomObjectWithHttpInfo(String group * @param pretty If 'true', then the output is pretty printed. (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) (optional) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object @@ -393,9 +409,9 @@ public ApiResponse createNamespacedCustomObjectWithHttpInfo(String group 401 Unauthorized - */ - public okhttp3.Call createNamespacedCustomObjectAsync(String group, String version, String namespace, String plural, Object body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { + public okhttp3.Call createNamespacedCustomObjectAsync(String group, String version, String namespace, String plural, Object body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = createNamespacedCustomObjectValidateBeforeCall(group, version, namespace, plural, body, pretty, dryRun, fieldManager, _callback); + okhttp3.Call localVarCall = createNamespacedCustomObjectValidateBeforeCall(group, version, namespace, plural, body, pretty, dryRun, fieldManager, fieldValidation, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -587,6 +603,7 @@ public okhttp3.Call deleteClusterCustomObjectAsync(String group, String version, * @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 pretty If 'true', then the output is pretty printed. (optional) + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param gracePeriodSeconds 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. (optional) * @param orphanDependents 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) * @param propagationPolicy 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) @@ -602,7 +619,7 @@ public okhttp3.Call deleteClusterCustomObjectAsync(String group, String version, 401 Unauthorized - */ - public okhttp3.Call deleteCollectionClusterCustomObjectCall(String group, String version, String plural, String pretty, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, String dryRun, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + public okhttp3.Call deleteCollectionClusterCustomObjectCall(String group, String version, String plural, String pretty, String labelSelector, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, String dryRun, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; // create path and map variables @@ -617,6 +634,10 @@ public okhttp3.Call deleteCollectionClusterCustomObjectCall(String group, String localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } + if (labelSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); + } + if (gracePeriodSeconds != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); } @@ -655,7 +676,7 @@ public okhttp3.Call deleteCollectionClusterCustomObjectCall(String group, String } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteCollectionClusterCustomObjectValidateBeforeCall(String group, String version, String plural, String pretty, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, String dryRun, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionClusterCustomObjectValidateBeforeCall(String group, String version, String plural, String pretty, String labelSelector, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, String dryRun, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { // verify the required parameter 'group' is set if (group == null) { @@ -673,7 +694,7 @@ private okhttp3.Call deleteCollectionClusterCustomObjectValidateBeforeCall(Strin } - okhttp3.Call localVarCall = deleteCollectionClusterCustomObjectCall(group, version, plural, pretty, gracePeriodSeconds, orphanDependents, propagationPolicy, dryRun, body, _callback); + okhttp3.Call localVarCall = deleteCollectionClusterCustomObjectCall(group, version, plural, pretty, labelSelector, gracePeriodSeconds, orphanDependents, propagationPolicy, dryRun, body, _callback); return localVarCall; } @@ -685,6 +706,7 @@ private okhttp3.Call deleteCollectionClusterCustomObjectValidateBeforeCall(Strin * @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 pretty If 'true', then the output is pretty printed. (optional) + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param gracePeriodSeconds 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. (optional) * @param orphanDependents 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) * @param propagationPolicy 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) @@ -699,8 +721,8 @@ private okhttp3.Call deleteCollectionClusterCustomObjectValidateBeforeCall(Strin 401 Unauthorized - */ - public Object deleteCollectionClusterCustomObject(String group, String version, String plural, String pretty, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, String dryRun, V1DeleteOptions body) throws ApiException { - ApiResponse localVarResp = deleteCollectionClusterCustomObjectWithHttpInfo(group, version, plural, pretty, gracePeriodSeconds, orphanDependents, propagationPolicy, dryRun, body); + public Object deleteCollectionClusterCustomObject(String group, String version, String plural, String pretty, String labelSelector, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, String dryRun, V1DeleteOptions body) throws ApiException { + ApiResponse localVarResp = deleteCollectionClusterCustomObjectWithHttpInfo(group, version, plural, pretty, labelSelector, gracePeriodSeconds, orphanDependents, propagationPolicy, dryRun, body); return localVarResp.getData(); } @@ -711,6 +733,7 @@ public Object deleteCollectionClusterCustomObject(String group, String version, * @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 pretty If 'true', then the output is pretty printed. (optional) + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param gracePeriodSeconds 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. (optional) * @param orphanDependents 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) * @param propagationPolicy 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) @@ -725,8 +748,8 @@ public Object deleteCollectionClusterCustomObject(String group, String version, 401 Unauthorized - */ - public ApiResponse deleteCollectionClusterCustomObjectWithHttpInfo(String group, String version, String plural, String pretty, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, String dryRun, V1DeleteOptions body) throws ApiException { - okhttp3.Call localVarCall = deleteCollectionClusterCustomObjectValidateBeforeCall(group, version, plural, pretty, gracePeriodSeconds, orphanDependents, propagationPolicy, dryRun, body, null); + public ApiResponse deleteCollectionClusterCustomObjectWithHttpInfo(String group, String version, String plural, String pretty, String labelSelector, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, String dryRun, V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteCollectionClusterCustomObjectValidateBeforeCall(group, version, plural, pretty, labelSelector, gracePeriodSeconds, orphanDependents, propagationPolicy, dryRun, body, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -738,6 +761,7 @@ public ApiResponse deleteCollectionClusterCustomObjectWithHttpInfo(Strin * @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 pretty If 'true', then the output is pretty printed. (optional) + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param gracePeriodSeconds 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. (optional) * @param orphanDependents 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) * @param propagationPolicy 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) @@ -753,9 +777,9 @@ public ApiResponse deleteCollectionClusterCustomObjectWithHttpInfo(Strin 401 Unauthorized - */ - public okhttp3.Call deleteCollectionClusterCustomObjectAsync(String group, String version, String plural, String pretty, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, String dryRun, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + public okhttp3.Call deleteCollectionClusterCustomObjectAsync(String group, String version, String plural, String pretty, String labelSelector, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, String dryRun, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = deleteCollectionClusterCustomObjectValidateBeforeCall(group, version, plural, pretty, gracePeriodSeconds, orphanDependents, propagationPolicy, dryRun, body, _callback); + okhttp3.Call localVarCall = deleteCollectionClusterCustomObjectValidateBeforeCall(group, version, plural, pretty, labelSelector, gracePeriodSeconds, orphanDependents, propagationPolicy, dryRun, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -767,10 +791,12 @@ public okhttp3.Call deleteCollectionClusterCustomObjectAsync(String group, Strin * @param namespace The custom resource's namespace (required) * @param plural The custom resource's plural name. For TPRs this would be lowercase plural kind. (required) * @param pretty If 'true', then the output is pretty printed. (optional) + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param gracePeriodSeconds 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. (optional) * @param orphanDependents 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) * @param propagationPolicy 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) * @param dryRun 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) + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param body (optional) * @param _callback Callback for upload/download progress * @return Call to execute @@ -782,7 +808,7 @@ public okhttp3.Call deleteCollectionClusterCustomObjectAsync(String group, Strin 401 Unauthorized - */ - public okhttp3.Call deleteCollectionNamespacedCustomObjectCall(String group, String version, String namespace, String plural, String pretty, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, String dryRun, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + public 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 { Object localVarPostBody = body; // create path and map variables @@ -798,6 +824,10 @@ public okhttp3.Call deleteCollectionNamespacedCustomObjectCall(String group, Str localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } + if (labelSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); + } + if (gracePeriodSeconds != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); } @@ -814,6 +844,10 @@ public okhttp3.Call deleteCollectionNamespacedCustomObjectCall(String group, Str localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); } + if (fieldSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); + } + Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); @@ -836,7 +870,7 @@ public okhttp3.Call deleteCollectionNamespacedCustomObjectCall(String group, Str } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteCollectionNamespacedCustomObjectValidateBeforeCall(String group, String version, String namespace, String plural, String pretty, 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) { @@ -859,7 +893,7 @@ private okhttp3.Call deleteCollectionNamespacedCustomObjectValidateBeforeCall(St } - okhttp3.Call localVarCall = deleteCollectionNamespacedCustomObjectCall(group, version, namespace, plural, pretty, gracePeriodSeconds, orphanDependents, propagationPolicy, dryRun, body, _callback); + okhttp3.Call localVarCall = deleteCollectionNamespacedCustomObjectCall(group, version, namespace, plural, pretty, labelSelector, gracePeriodSeconds, orphanDependents, propagationPolicy, dryRun, fieldSelector, body, _callback); return localVarCall; } @@ -872,10 +906,12 @@ private okhttp3.Call deleteCollectionNamespacedCustomObjectValidateBeforeCall(St * @param namespace The custom resource's namespace (required) * @param plural The custom resource's plural name. For TPRs this would be lowercase plural kind. (required) * @param pretty If 'true', then the output is pretty printed. (optional) + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param gracePeriodSeconds 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. (optional) * @param orphanDependents 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) * @param propagationPolicy 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) * @param dryRun 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) + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param body (optional) * @return Object * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body @@ -886,8 +922,8 @@ private okhttp3.Call deleteCollectionNamespacedCustomObjectValidateBeforeCall(St 401 Unauthorized - */ - public Object deleteCollectionNamespacedCustomObject(String group, String version, String namespace, String plural, String pretty, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, String dryRun, V1DeleteOptions body) throws ApiException { - ApiResponse localVarResp = deleteCollectionNamespacedCustomObjectWithHttpInfo(group, version, namespace, plural, pretty, gracePeriodSeconds, orphanDependents, propagationPolicy, dryRun, body); + public Object deleteCollectionNamespacedCustomObject(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 { + ApiResponse localVarResp = deleteCollectionNamespacedCustomObjectWithHttpInfo(group, version, namespace, plural, pretty, labelSelector, gracePeriodSeconds, orphanDependents, propagationPolicy, dryRun, fieldSelector, body); return localVarResp.getData(); } @@ -899,10 +935,12 @@ public Object deleteCollectionNamespacedCustomObject(String group, String versio * @param namespace The custom resource's namespace (required) * @param plural The custom resource's plural name. For TPRs this would be lowercase plural kind. (required) * @param pretty If 'true', then the output is pretty printed. (optional) + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param gracePeriodSeconds 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. (optional) * @param orphanDependents 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) * @param propagationPolicy 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) * @param dryRun 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) + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param body (optional) * @return ApiResponse<Object> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body @@ -913,8 +951,8 @@ public Object deleteCollectionNamespacedCustomObject(String group, String versio 401 Unauthorized - */ - public ApiResponse deleteCollectionNamespacedCustomObjectWithHttpInfo(String group, String version, String namespace, String plural, String pretty, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, String dryRun, V1DeleteOptions body) throws ApiException { - okhttp3.Call localVarCall = deleteCollectionNamespacedCustomObjectValidateBeforeCall(group, version, namespace, plural, pretty, gracePeriodSeconds, orphanDependents, propagationPolicy, dryRun, body, null); + public 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); } @@ -927,10 +965,12 @@ public ApiResponse deleteCollectionNamespacedCustomObjectWithHttpInfo(St * @param namespace The custom resource's namespace (required) * @param plural The custom resource's plural name. For TPRs this would be lowercase plural kind. (required) * @param pretty If 'true', then the output is pretty printed. (optional) + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param gracePeriodSeconds 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. (optional) * @param orphanDependents 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) * @param propagationPolicy 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) * @param dryRun 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) + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param body (optional) * @param _callback The callback to be executed when the API call finishes * @return The request call @@ -942,9 +982,9 @@ public ApiResponse deleteCollectionNamespacedCustomObjectWithHttpInfo(St 401 Unauthorized - */ - public okhttp3.Call deleteCollectionNamespacedCustomObjectAsync(String group, String version, String namespace, String plural, String pretty, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, String dryRun, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + public 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, 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; @@ -2380,6 +2420,221 @@ public okhttp3.Call listClusterCustomObjectAsync(String group, String version, S localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } + /** + * Build call for listCustomObjectForAllNamespaces + * @param group The custom resource's group name (required) + * @param version The custom resource's version (required) + * @param resourcePlural The custom resource's plural name. For TPRs this would be lowercase plural kind. (required) + * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks 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) + * @param _continue 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) + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public 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 { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/apis/{group}/{version}/{resource_plural}" + .replaceAll("\\{" + "group" + "\\}", localVarApiClient.escapeString(group.toString())) + .replaceAll("\\{" + "version" + "\\}", localVarApiClient.escapeString(version.toString())) + .replaceAll("\\{" + "resource_plural" + "\\}", localVarApiClient.escapeString(resourcePlural.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + + if (allowWatchBookmarks != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("allowWatchBookmarks", allowWatchBookmarks)); + } + + if (_continue != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); + } + + if (fieldSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); + } + + if (labelSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); + } + + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + } + + if (resourceVersion != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); + } + + if (resourceVersionMatch != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersionMatch", resourceVersionMatch)); + } + + if (timeoutSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); + } + + if (watch != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + final String[] localVarAccepts = { + "application/json", "application/json;stream=watch" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + 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)"); + } + + // verify the required parameter 'version' is set + if (version == null) { + throw new ApiException("Missing the required parameter 'version' 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)"); + } + + + okhttp3.Call localVarCall = listCustomObjectForAllNamespacesCall(group, version, resourcePlural, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _callback); + return localVarCall; + + } + + /** + * + * 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 resourcePlural The custom resource's plural name. For TPRs this would be lowercase plural kind. (required) + * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks 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) + * @param _continue 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) + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. (optional) + * @return Object + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public Object listCustomObjectForAllNamespaces(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 { + ApiResponse localVarResp = listCustomObjectForAllNamespacesWithHttpInfo(group, version, resourcePlural, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, timeoutSeconds, watch); + return localVarResp.getData(); + } + + /** + * + * 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 resourcePlural The custom resource's plural name. For TPRs this would be lowercase plural kind. (required) + * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks 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) + * @param _continue 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) + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. (optional) + * @return ApiResponse<Object> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public 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); + } + + /** + * (asynchronously) + * 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 resourcePlural The custom resource's plural name. For TPRs this would be lowercase plural kind. (required) + * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks 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) + * @param _continue 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) + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public 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, resourcePlural, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } /** * Build call for listNamespacedCustomObject * @param group The custom resource's group name (required) @@ -2614,6 +2869,7 @@ public okhttp3.Call listNamespacedCustomObjectAsync(String group, String version * @param body The JSON schema of the Resource to patch. (required) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) (optional) * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) * @param _callback Callback for upload/download progress * @return Call to execute @@ -2625,7 +2881,7 @@ public okhttp3.Call listNamespacedCustomObjectAsync(String group, String version 401 Unauthorized - */ - public okhttp3.Call patchClusterCustomObjectCall(String group, String version, String plural, String name, Object body, String dryRun, String fieldManager, Boolean force, final ApiCallback _callback) throws ApiException { + public okhttp3.Call patchClusterCustomObjectCall(String group, String version, String plural, String name, Object body, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; // create path and map variables @@ -2645,6 +2901,10 @@ public okhttp3.Call patchClusterCustomObjectCall(String group, String version, S localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); } + if (fieldValidation != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); + } + if (force != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("force", force)); } @@ -2671,7 +2931,7 @@ public okhttp3.Call patchClusterCustomObjectCall(String group, String version, S } @SuppressWarnings("rawtypes") - private okhttp3.Call patchClusterCustomObjectValidateBeforeCall(String group, String version, String plural, String name, Object body, String dryRun, String fieldManager, Boolean force, final ApiCallback _callback) throws ApiException { + private okhttp3.Call patchClusterCustomObjectValidateBeforeCall(String group, String version, String plural, String name, Object body, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { // verify the required parameter 'group' is set if (group == null) { @@ -2699,7 +2959,7 @@ private okhttp3.Call patchClusterCustomObjectValidateBeforeCall(String group, St } - okhttp3.Call localVarCall = patchClusterCustomObjectCall(group, version, plural, name, body, dryRun, fieldManager, force, _callback); + okhttp3.Call localVarCall = patchClusterCustomObjectCall(group, version, plural, name, body, dryRun, fieldManager, fieldValidation, force, _callback); return localVarCall; } @@ -2714,6 +2974,7 @@ private okhttp3.Call patchClusterCustomObjectValidateBeforeCall(String group, St * @param body The JSON schema of the Resource to patch. (required) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) (optional) * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) * @return Object * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body @@ -2724,8 +2985,8 @@ private okhttp3.Call patchClusterCustomObjectValidateBeforeCall(String group, St 401 Unauthorized - */ - public Object patchClusterCustomObject(String group, String version, String plural, String name, Object body, String dryRun, String fieldManager, Boolean force) throws ApiException { - ApiResponse localVarResp = patchClusterCustomObjectWithHttpInfo(group, version, plural, name, body, dryRun, fieldManager, force); + public Object patchClusterCustomObject(String group, String version, String plural, String name, Object body, String dryRun, String fieldManager, String fieldValidation, Boolean force) throws ApiException { + ApiResponse localVarResp = patchClusterCustomObjectWithHttpInfo(group, version, plural, name, body, dryRun, fieldManager, fieldValidation, force); return localVarResp.getData(); } @@ -2739,6 +3000,7 @@ public Object patchClusterCustomObject(String group, String version, String plur * @param body The JSON schema of the Resource to patch. (required) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) (optional) * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) * @return ApiResponse<Object> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body @@ -2749,8 +3011,8 @@ public Object patchClusterCustomObject(String group, String version, String plur 401 Unauthorized - */ - public ApiResponse patchClusterCustomObjectWithHttpInfo(String group, String version, String plural, String name, Object body, String dryRun, String fieldManager, Boolean force) throws ApiException { - okhttp3.Call localVarCall = patchClusterCustomObjectValidateBeforeCall(group, version, plural, name, body, dryRun, fieldManager, force, null); + public ApiResponse patchClusterCustomObjectWithHttpInfo(String group, String version, String plural, String name, Object body, String dryRun, String fieldManager, String fieldValidation, Boolean force) throws ApiException { + okhttp3.Call localVarCall = patchClusterCustomObjectValidateBeforeCall(group, version, plural, name, body, dryRun, fieldManager, fieldValidation, force, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -2765,6 +3027,7 @@ public ApiResponse patchClusterCustomObjectWithHttpInfo(String group, St * @param body The JSON schema of the Resource to patch. (required) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) (optional) * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) * @param _callback The callback to be executed when the API call finishes * @return The request call @@ -2776,9 +3039,9 @@ public ApiResponse patchClusterCustomObjectWithHttpInfo(String group, St 401 Unauthorized - */ - public okhttp3.Call patchClusterCustomObjectAsync(String group, String version, String plural, String name, Object body, String dryRun, String fieldManager, Boolean force, final ApiCallback _callback) throws ApiException { + public okhttp3.Call patchClusterCustomObjectAsync(String group, String version, String plural, String name, Object body, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = patchClusterCustomObjectValidateBeforeCall(group, version, plural, name, body, dryRun, fieldManager, force, _callback); + okhttp3.Call localVarCall = patchClusterCustomObjectValidateBeforeCall(group, version, plural, name, body, dryRun, fieldManager, fieldValidation, force, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -2792,6 +3055,7 @@ public okhttp3.Call patchClusterCustomObjectAsync(String group, String version, * @param body (required) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) (optional) * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) * @param _callback Callback for upload/download progress * @return Call to execute @@ -2803,7 +3067,7 @@ public okhttp3.Call patchClusterCustomObjectAsync(String group, String version, 401 Unauthorized - */ - public okhttp3.Call patchClusterCustomObjectScaleCall(String group, String version, String plural, String name, Object body, String dryRun, String fieldManager, Boolean force, final ApiCallback _callback) throws ApiException { + public okhttp3.Call patchClusterCustomObjectScaleCall(String group, String version, String plural, String name, Object body, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; // create path and map variables @@ -2823,6 +3087,10 @@ public okhttp3.Call patchClusterCustomObjectScaleCall(String group, String versi localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); } + if (fieldValidation != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); + } + if (force != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("force", force)); } @@ -2849,7 +3117,7 @@ public okhttp3.Call patchClusterCustomObjectScaleCall(String group, String versi } @SuppressWarnings("rawtypes") - private okhttp3.Call patchClusterCustomObjectScaleValidateBeforeCall(String group, String version, String plural, String name, Object body, String dryRun, String fieldManager, Boolean force, final ApiCallback _callback) throws ApiException { + private okhttp3.Call patchClusterCustomObjectScaleValidateBeforeCall(String group, String version, String plural, String name, Object body, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { // verify the required parameter 'group' is set if (group == null) { @@ -2877,7 +3145,7 @@ private okhttp3.Call patchClusterCustomObjectScaleValidateBeforeCall(String grou } - okhttp3.Call localVarCall = patchClusterCustomObjectScaleCall(group, version, plural, name, body, dryRun, fieldManager, force, _callback); + okhttp3.Call localVarCall = patchClusterCustomObjectScaleCall(group, version, plural, name, body, dryRun, fieldManager, fieldValidation, force, _callback); return localVarCall; } @@ -2892,6 +3160,7 @@ private okhttp3.Call patchClusterCustomObjectScaleValidateBeforeCall(String grou * @param body (required) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) (optional) * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) * @return Object * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body @@ -2902,8 +3171,8 @@ private okhttp3.Call patchClusterCustomObjectScaleValidateBeforeCall(String grou 401 Unauthorized - */ - public Object patchClusterCustomObjectScale(String group, String version, String plural, String name, Object body, String dryRun, String fieldManager, Boolean force) throws ApiException { - ApiResponse localVarResp = patchClusterCustomObjectScaleWithHttpInfo(group, version, plural, name, body, dryRun, fieldManager, force); + public Object patchClusterCustomObjectScale(String group, String version, String plural, String name, Object body, String dryRun, String fieldManager, String fieldValidation, Boolean force) throws ApiException { + ApiResponse localVarResp = patchClusterCustomObjectScaleWithHttpInfo(group, version, plural, name, body, dryRun, fieldManager, fieldValidation, force); return localVarResp.getData(); } @@ -2917,6 +3186,7 @@ public Object patchClusterCustomObjectScale(String group, String version, String * @param body (required) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) (optional) * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) * @return ApiResponse<Object> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body @@ -2927,8 +3197,8 @@ public Object patchClusterCustomObjectScale(String group, String version, String 401 Unauthorized - */ - public ApiResponse patchClusterCustomObjectScaleWithHttpInfo(String group, String version, String plural, String name, Object body, String dryRun, String fieldManager, Boolean force) throws ApiException { - okhttp3.Call localVarCall = patchClusterCustomObjectScaleValidateBeforeCall(group, version, plural, name, body, dryRun, fieldManager, force, null); + public ApiResponse patchClusterCustomObjectScaleWithHttpInfo(String group, String version, String plural, String name, Object body, String dryRun, String fieldManager, String fieldValidation, Boolean force) throws ApiException { + okhttp3.Call localVarCall = patchClusterCustomObjectScaleValidateBeforeCall(group, version, plural, name, body, dryRun, fieldManager, fieldValidation, force, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -2943,6 +3213,7 @@ public ApiResponse patchClusterCustomObjectScaleWithHttpInfo(String grou * @param body (required) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) (optional) * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) * @param _callback The callback to be executed when the API call finishes * @return The request call @@ -2954,9 +3225,9 @@ public ApiResponse patchClusterCustomObjectScaleWithHttpInfo(String grou 401 Unauthorized - */ - public okhttp3.Call patchClusterCustomObjectScaleAsync(String group, String version, String plural, String name, Object body, String dryRun, String fieldManager, Boolean force, final ApiCallback _callback) throws ApiException { + public okhttp3.Call patchClusterCustomObjectScaleAsync(String group, String version, String plural, String name, Object body, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = patchClusterCustomObjectScaleValidateBeforeCall(group, version, plural, name, body, dryRun, fieldManager, force, _callback); + okhttp3.Call localVarCall = patchClusterCustomObjectScaleValidateBeforeCall(group, version, plural, name, body, dryRun, fieldManager, fieldValidation, force, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -2970,6 +3241,7 @@ public okhttp3.Call patchClusterCustomObjectScaleAsync(String group, String vers * @param body (required) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) (optional) * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) * @param _callback Callback for upload/download progress * @return Call to execute @@ -2981,7 +3253,7 @@ public okhttp3.Call patchClusterCustomObjectScaleAsync(String group, String vers 401 Unauthorized - */ - public okhttp3.Call patchClusterCustomObjectStatusCall(String group, String version, String plural, String name, Object body, String dryRun, String fieldManager, Boolean force, final ApiCallback _callback) throws ApiException { + public okhttp3.Call patchClusterCustomObjectStatusCall(String group, String version, String plural, String name, Object body, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; // create path and map variables @@ -3001,6 +3273,10 @@ public okhttp3.Call patchClusterCustomObjectStatusCall(String group, String vers localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); } + if (fieldValidation != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); + } + if (force != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("force", force)); } @@ -3027,7 +3303,7 @@ public okhttp3.Call patchClusterCustomObjectStatusCall(String group, String vers } @SuppressWarnings("rawtypes") - private okhttp3.Call patchClusterCustomObjectStatusValidateBeforeCall(String group, String version, String plural, String name, Object body, String dryRun, String fieldManager, Boolean force, final ApiCallback _callback) throws ApiException { + private okhttp3.Call patchClusterCustomObjectStatusValidateBeforeCall(String group, String version, String plural, String name, Object body, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { // verify the required parameter 'group' is set if (group == null) { @@ -3055,7 +3331,7 @@ private okhttp3.Call patchClusterCustomObjectStatusValidateBeforeCall(String gro } - okhttp3.Call localVarCall = patchClusterCustomObjectStatusCall(group, version, plural, name, body, dryRun, fieldManager, force, _callback); + okhttp3.Call localVarCall = patchClusterCustomObjectStatusCall(group, version, plural, name, body, dryRun, fieldManager, fieldValidation, force, _callback); return localVarCall; } @@ -3070,6 +3346,7 @@ private okhttp3.Call patchClusterCustomObjectStatusValidateBeforeCall(String gro * @param body (required) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) (optional) * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) * @return Object * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body @@ -3080,8 +3357,8 @@ private okhttp3.Call patchClusterCustomObjectStatusValidateBeforeCall(String gro 401 Unauthorized - */ - public Object patchClusterCustomObjectStatus(String group, String version, String plural, String name, Object body, String dryRun, String fieldManager, Boolean force) throws ApiException { - ApiResponse localVarResp = patchClusterCustomObjectStatusWithHttpInfo(group, version, plural, name, body, dryRun, fieldManager, force); + public Object patchClusterCustomObjectStatus(String group, String version, String plural, String name, Object body, String dryRun, String fieldManager, String fieldValidation, Boolean force) throws ApiException { + ApiResponse localVarResp = patchClusterCustomObjectStatusWithHttpInfo(group, version, plural, name, body, dryRun, fieldManager, fieldValidation, force); return localVarResp.getData(); } @@ -3095,6 +3372,7 @@ public Object patchClusterCustomObjectStatus(String group, String version, Strin * @param body (required) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) (optional) * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) * @return ApiResponse<Object> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body @@ -3105,8 +3383,8 @@ public Object patchClusterCustomObjectStatus(String group, String version, Strin 401 Unauthorized - */ - public ApiResponse patchClusterCustomObjectStatusWithHttpInfo(String group, String version, String plural, String name, Object body, String dryRun, String fieldManager, Boolean force) throws ApiException { - okhttp3.Call localVarCall = patchClusterCustomObjectStatusValidateBeforeCall(group, version, plural, name, body, dryRun, fieldManager, force, null); + public ApiResponse patchClusterCustomObjectStatusWithHttpInfo(String group, String version, String plural, String name, Object body, String dryRun, String fieldManager, String fieldValidation, Boolean force) throws ApiException { + okhttp3.Call localVarCall = patchClusterCustomObjectStatusValidateBeforeCall(group, version, plural, name, body, dryRun, fieldManager, fieldValidation, force, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -3121,6 +3399,7 @@ public ApiResponse patchClusterCustomObjectStatusWithHttpInfo(String gro * @param body (required) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) (optional) * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) * @param _callback The callback to be executed when the API call finishes * @return The request call @@ -3132,9 +3411,9 @@ public ApiResponse patchClusterCustomObjectStatusWithHttpInfo(String gro 401 Unauthorized - */ - public okhttp3.Call patchClusterCustomObjectStatusAsync(String group, String version, String plural, String name, Object body, String dryRun, String fieldManager, Boolean force, final ApiCallback _callback) throws ApiException { + public okhttp3.Call patchClusterCustomObjectStatusAsync(String group, String version, String plural, String name, Object body, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = patchClusterCustomObjectStatusValidateBeforeCall(group, version, plural, name, body, dryRun, fieldManager, force, _callback); + okhttp3.Call localVarCall = patchClusterCustomObjectStatusValidateBeforeCall(group, version, plural, name, body, dryRun, fieldManager, fieldValidation, force, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -3149,6 +3428,7 @@ public okhttp3.Call patchClusterCustomObjectStatusAsync(String group, String ver * @param body The JSON schema of the Resource to patch. (required) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) (optional) * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) * @param _callback Callback for upload/download progress * @return Call to execute @@ -3160,7 +3440,7 @@ public okhttp3.Call patchClusterCustomObjectStatusAsync(String group, String ver 401 Unauthorized - */ - public okhttp3.Call patchNamespacedCustomObjectCall(String group, String version, String namespace, String plural, String name, Object body, String dryRun, String fieldManager, Boolean force, final ApiCallback _callback) throws ApiException { + public okhttp3.Call patchNamespacedCustomObjectCall(String group, String version, String namespace, String plural, String name, Object body, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; // create path and map variables @@ -3181,6 +3461,10 @@ public okhttp3.Call patchNamespacedCustomObjectCall(String group, String version localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); } + if (fieldValidation != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); + } + if (force != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("force", force)); } @@ -3207,7 +3491,7 @@ public okhttp3.Call patchNamespacedCustomObjectCall(String group, String version } @SuppressWarnings("rawtypes") - private okhttp3.Call patchNamespacedCustomObjectValidateBeforeCall(String group, String version, String namespace, String plural, String name, Object body, String dryRun, String fieldManager, Boolean force, final ApiCallback _callback) throws ApiException { + private okhttp3.Call patchNamespacedCustomObjectValidateBeforeCall(String group, String version, String namespace, String plural, String name, Object body, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { // verify the required parameter 'group' is set if (group == null) { @@ -3240,7 +3524,7 @@ private okhttp3.Call patchNamespacedCustomObjectValidateBeforeCall(String group, } - okhttp3.Call localVarCall = patchNamespacedCustomObjectCall(group, version, namespace, plural, name, body, dryRun, fieldManager, force, _callback); + okhttp3.Call localVarCall = patchNamespacedCustomObjectCall(group, version, namespace, plural, name, body, dryRun, fieldManager, fieldValidation, force, _callback); return localVarCall; } @@ -3256,6 +3540,7 @@ private okhttp3.Call patchNamespacedCustomObjectValidateBeforeCall(String group, * @param body The JSON schema of the Resource to patch. (required) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) (optional) * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) * @return Object * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body @@ -3266,8 +3551,8 @@ private okhttp3.Call patchNamespacedCustomObjectValidateBeforeCall(String group, 401 Unauthorized - */ - public Object patchNamespacedCustomObject(String group, String version, String namespace, String plural, String name, Object body, String dryRun, String fieldManager, Boolean force) throws ApiException { - ApiResponse localVarResp = patchNamespacedCustomObjectWithHttpInfo(group, version, namespace, plural, name, body, dryRun, fieldManager, force); + public Object patchNamespacedCustomObject(String group, String version, String namespace, String plural, String name, Object body, String dryRun, String fieldManager, String fieldValidation, Boolean force) throws ApiException { + ApiResponse localVarResp = patchNamespacedCustomObjectWithHttpInfo(group, version, namespace, plural, name, body, dryRun, fieldManager, fieldValidation, force); return localVarResp.getData(); } @@ -3282,6 +3567,7 @@ public Object patchNamespacedCustomObject(String group, String version, String n * @param body The JSON schema of the Resource to patch. (required) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) (optional) * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) * @return ApiResponse<Object> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body @@ -3292,8 +3578,8 @@ public Object patchNamespacedCustomObject(String group, String version, String n 401 Unauthorized - */ - public ApiResponse patchNamespacedCustomObjectWithHttpInfo(String group, String version, String namespace, String plural, String name, Object body, String dryRun, String fieldManager, Boolean force) throws ApiException { - okhttp3.Call localVarCall = patchNamespacedCustomObjectValidateBeforeCall(group, version, namespace, plural, name, body, dryRun, fieldManager, force, null); + public ApiResponse patchNamespacedCustomObjectWithHttpInfo(String group, String version, String namespace, String plural, String name, Object body, String dryRun, String fieldManager, String fieldValidation, Boolean force) throws ApiException { + okhttp3.Call localVarCall = patchNamespacedCustomObjectValidateBeforeCall(group, version, namespace, plural, name, body, dryRun, fieldManager, fieldValidation, force, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -3309,6 +3595,7 @@ public ApiResponse patchNamespacedCustomObjectWithHttpInfo(String group, * @param body The JSON schema of the Resource to patch. (required) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) (optional) * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) * @param _callback The callback to be executed when the API call finishes * @return The request call @@ -3320,9 +3607,9 @@ public ApiResponse patchNamespacedCustomObjectWithHttpInfo(String group, 401 Unauthorized - */ - public okhttp3.Call patchNamespacedCustomObjectAsync(String group, String version, String namespace, String plural, String name, Object body, String dryRun, String fieldManager, Boolean force, final ApiCallback _callback) throws ApiException { + public okhttp3.Call patchNamespacedCustomObjectAsync(String group, String version, String namespace, String plural, String name, Object body, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = patchNamespacedCustomObjectValidateBeforeCall(group, version, namespace, plural, name, body, dryRun, fieldManager, force, _callback); + okhttp3.Call localVarCall = patchNamespacedCustomObjectValidateBeforeCall(group, version, namespace, plural, name, body, dryRun, fieldManager, fieldValidation, force, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -3337,6 +3624,7 @@ public okhttp3.Call patchNamespacedCustomObjectAsync(String group, String versio * @param body (required) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) (optional) * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) * @param _callback Callback for upload/download progress * @return Call to execute @@ -3348,7 +3636,7 @@ public okhttp3.Call patchNamespacedCustomObjectAsync(String group, String versio 401 Unauthorized - */ - public okhttp3.Call patchNamespacedCustomObjectScaleCall(String group, String version, String namespace, String plural, String name, Object body, String dryRun, String fieldManager, Boolean force, final ApiCallback _callback) throws ApiException { + public okhttp3.Call patchNamespacedCustomObjectScaleCall(String group, String version, String namespace, String plural, String name, Object body, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; // create path and map variables @@ -3369,6 +3657,10 @@ public okhttp3.Call patchNamespacedCustomObjectScaleCall(String group, String ve localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); } + if (fieldValidation != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); + } + if (force != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("force", force)); } @@ -3395,7 +3687,7 @@ public okhttp3.Call patchNamespacedCustomObjectScaleCall(String group, String ve } @SuppressWarnings("rawtypes") - private okhttp3.Call patchNamespacedCustomObjectScaleValidateBeforeCall(String group, String version, String namespace, String plural, String name, Object body, String dryRun, String fieldManager, Boolean force, final ApiCallback _callback) throws ApiException { + private okhttp3.Call patchNamespacedCustomObjectScaleValidateBeforeCall(String group, String version, String namespace, String plural, String name, Object body, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { // verify the required parameter 'group' is set if (group == null) { @@ -3428,7 +3720,7 @@ private okhttp3.Call patchNamespacedCustomObjectScaleValidateBeforeCall(String g } - okhttp3.Call localVarCall = patchNamespacedCustomObjectScaleCall(group, version, namespace, plural, name, body, dryRun, fieldManager, force, _callback); + okhttp3.Call localVarCall = patchNamespacedCustomObjectScaleCall(group, version, namespace, plural, name, body, dryRun, fieldManager, fieldValidation, force, _callback); return localVarCall; } @@ -3444,6 +3736,7 @@ private okhttp3.Call patchNamespacedCustomObjectScaleValidateBeforeCall(String g * @param body (required) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) (optional) * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) * @return Object * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body @@ -3454,8 +3747,8 @@ private okhttp3.Call patchNamespacedCustomObjectScaleValidateBeforeCall(String g 401 Unauthorized - */ - public Object patchNamespacedCustomObjectScale(String group, String version, String namespace, String plural, String name, Object body, String dryRun, String fieldManager, Boolean force) throws ApiException { - ApiResponse localVarResp = patchNamespacedCustomObjectScaleWithHttpInfo(group, version, namespace, plural, name, body, dryRun, fieldManager, force); + public Object patchNamespacedCustomObjectScale(String group, String version, String namespace, String plural, String name, Object body, String dryRun, String fieldManager, String fieldValidation, Boolean force) throws ApiException { + ApiResponse localVarResp = patchNamespacedCustomObjectScaleWithHttpInfo(group, version, namespace, plural, name, body, dryRun, fieldManager, fieldValidation, force); return localVarResp.getData(); } @@ -3470,6 +3763,7 @@ public Object patchNamespacedCustomObjectScale(String group, String version, Str * @param body (required) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) (optional) * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) * @return ApiResponse<Object> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body @@ -3480,8 +3774,8 @@ public Object patchNamespacedCustomObjectScale(String group, String version, Str 401 Unauthorized - */ - public ApiResponse patchNamespacedCustomObjectScaleWithHttpInfo(String group, String version, String namespace, String plural, String name, Object body, String dryRun, String fieldManager, Boolean force) throws ApiException { - okhttp3.Call localVarCall = patchNamespacedCustomObjectScaleValidateBeforeCall(group, version, namespace, plural, name, body, dryRun, fieldManager, force, null); + public ApiResponse patchNamespacedCustomObjectScaleWithHttpInfo(String group, String version, String namespace, String plural, String name, Object body, String dryRun, String fieldManager, String fieldValidation, Boolean force) throws ApiException { + okhttp3.Call localVarCall = patchNamespacedCustomObjectScaleValidateBeforeCall(group, version, namespace, plural, name, body, dryRun, fieldManager, fieldValidation, force, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -3497,6 +3791,7 @@ public ApiResponse patchNamespacedCustomObjectScaleWithHttpInfo(String g * @param body (required) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) (optional) * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) * @param _callback The callback to be executed when the API call finishes * @return The request call @@ -3508,9 +3803,9 @@ public ApiResponse patchNamespacedCustomObjectScaleWithHttpInfo(String g 401 Unauthorized - */ - public okhttp3.Call patchNamespacedCustomObjectScaleAsync(String group, String version, String namespace, String plural, String name, Object body, String dryRun, String fieldManager, Boolean force, final ApiCallback _callback) throws ApiException { + public okhttp3.Call patchNamespacedCustomObjectScaleAsync(String group, String version, String namespace, String plural, String name, Object body, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = patchNamespacedCustomObjectScaleValidateBeforeCall(group, version, namespace, plural, name, body, dryRun, fieldManager, force, _callback); + okhttp3.Call localVarCall = patchNamespacedCustomObjectScaleValidateBeforeCall(group, version, namespace, plural, name, body, dryRun, fieldManager, fieldValidation, force, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -3525,6 +3820,7 @@ public okhttp3.Call patchNamespacedCustomObjectScaleAsync(String group, String v * @param body (required) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) (optional) * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) * @param _callback Callback for upload/download progress * @return Call to execute @@ -3536,7 +3832,7 @@ public okhttp3.Call patchNamespacedCustomObjectScaleAsync(String group, String v 401 Unauthorized - */ - public okhttp3.Call patchNamespacedCustomObjectStatusCall(String group, String version, String namespace, String plural, String name, Object body, String dryRun, String fieldManager, Boolean force, final ApiCallback _callback) throws ApiException { + public okhttp3.Call patchNamespacedCustomObjectStatusCall(String group, String version, String namespace, String plural, String name, Object body, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; // create path and map variables @@ -3557,6 +3853,10 @@ public okhttp3.Call patchNamespacedCustomObjectStatusCall(String group, String v localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); } + if (fieldValidation != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); + } + if (force != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("force", force)); } @@ -3583,7 +3883,7 @@ public okhttp3.Call patchNamespacedCustomObjectStatusCall(String group, String v } @SuppressWarnings("rawtypes") - private okhttp3.Call patchNamespacedCustomObjectStatusValidateBeforeCall(String group, String version, String namespace, String plural, String name, Object body, String dryRun, String fieldManager, Boolean force, final ApiCallback _callback) throws ApiException { + private okhttp3.Call patchNamespacedCustomObjectStatusValidateBeforeCall(String group, String version, String namespace, String plural, String name, Object body, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { // verify the required parameter 'group' is set if (group == null) { @@ -3616,7 +3916,7 @@ private okhttp3.Call patchNamespacedCustomObjectStatusValidateBeforeCall(String } - okhttp3.Call localVarCall = patchNamespacedCustomObjectStatusCall(group, version, namespace, plural, name, body, dryRun, fieldManager, force, _callback); + okhttp3.Call localVarCall = patchNamespacedCustomObjectStatusCall(group, version, namespace, plural, name, body, dryRun, fieldManager, fieldValidation, force, _callback); return localVarCall; } @@ -3632,6 +3932,7 @@ private okhttp3.Call patchNamespacedCustomObjectStatusValidateBeforeCall(String * @param body (required) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) (optional) * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) * @return Object * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body @@ -3642,8 +3943,8 @@ private okhttp3.Call patchNamespacedCustomObjectStatusValidateBeforeCall(String 401 Unauthorized - */ - public Object patchNamespacedCustomObjectStatus(String group, String version, String namespace, String plural, String name, Object body, String dryRun, String fieldManager, Boolean force) throws ApiException { - ApiResponse localVarResp = patchNamespacedCustomObjectStatusWithHttpInfo(group, version, namespace, plural, name, body, dryRun, fieldManager, force); + public Object patchNamespacedCustomObjectStatus(String group, String version, String namespace, String plural, String name, Object body, String dryRun, String fieldManager, String fieldValidation, Boolean force) throws ApiException { + ApiResponse localVarResp = patchNamespacedCustomObjectStatusWithHttpInfo(group, version, namespace, plural, name, body, dryRun, fieldManager, fieldValidation, force); return localVarResp.getData(); } @@ -3658,6 +3959,7 @@ public Object patchNamespacedCustomObjectStatus(String group, String version, St * @param body (required) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) (optional) * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) * @return ApiResponse<Object> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body @@ -3668,8 +3970,8 @@ public Object patchNamespacedCustomObjectStatus(String group, String version, St 401 Unauthorized - */ - public ApiResponse patchNamespacedCustomObjectStatusWithHttpInfo(String group, String version, String namespace, String plural, String name, Object body, String dryRun, String fieldManager, Boolean force) throws ApiException { - okhttp3.Call localVarCall = patchNamespacedCustomObjectStatusValidateBeforeCall(group, version, namespace, plural, name, body, dryRun, fieldManager, force, null); + public ApiResponse patchNamespacedCustomObjectStatusWithHttpInfo(String group, String version, String namespace, String plural, String name, Object body, String dryRun, String fieldManager, String fieldValidation, Boolean force) throws ApiException { + okhttp3.Call localVarCall = patchNamespacedCustomObjectStatusValidateBeforeCall(group, version, namespace, plural, name, body, dryRun, fieldManager, fieldValidation, force, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -3685,6 +3987,7 @@ public ApiResponse patchNamespacedCustomObjectStatusWithHttpInfo(String * @param body (required) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) (optional) * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) * @param _callback The callback to be executed when the API call finishes * @return The request call @@ -3696,9 +3999,9 @@ public ApiResponse patchNamespacedCustomObjectStatusWithHttpInfo(String 401 Unauthorized - */ - public okhttp3.Call patchNamespacedCustomObjectStatusAsync(String group, String version, String namespace, String plural, String name, Object body, String dryRun, String fieldManager, Boolean force, final ApiCallback _callback) throws ApiException { + public okhttp3.Call patchNamespacedCustomObjectStatusAsync(String group, String version, String namespace, String plural, String name, Object body, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = patchNamespacedCustomObjectStatusValidateBeforeCall(group, version, namespace, plural, name, body, dryRun, fieldManager, force, _callback); + okhttp3.Call localVarCall = patchNamespacedCustomObjectStatusValidateBeforeCall(group, version, namespace, plural, name, body, dryRun, fieldManager, fieldValidation, force, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -3712,6 +4015,7 @@ public okhttp3.Call patchNamespacedCustomObjectStatusAsync(String group, String * @param body The JSON schema of the Resource to replace. (required) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) (optional) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -3722,7 +4026,7 @@ public okhttp3.Call patchNamespacedCustomObjectStatusAsync(String group, String 401 Unauthorized - */ - public okhttp3.Call replaceClusterCustomObjectCall(String group, String version, String plural, String name, Object body, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { + public okhttp3.Call replaceClusterCustomObjectCall(String group, String version, String plural, String name, Object body, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; // create path and map variables @@ -3742,6 +4046,10 @@ public okhttp3.Call replaceClusterCustomObjectCall(String group, String version, localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); } + if (fieldValidation != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); + } + Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); @@ -3764,7 +4072,7 @@ public okhttp3.Call replaceClusterCustomObjectCall(String group, String version, } @SuppressWarnings("rawtypes") - private okhttp3.Call replaceClusterCustomObjectValidateBeforeCall(String group, String version, String plural, String name, Object body, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceClusterCustomObjectValidateBeforeCall(String group, String version, String plural, String name, Object body, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { // verify the required parameter 'group' is set if (group == null) { @@ -3792,7 +4100,7 @@ private okhttp3.Call replaceClusterCustomObjectValidateBeforeCall(String group, } - okhttp3.Call localVarCall = replaceClusterCustomObjectCall(group, version, plural, name, body, dryRun, fieldManager, _callback); + okhttp3.Call localVarCall = replaceClusterCustomObjectCall(group, version, plural, name, body, dryRun, fieldManager, fieldValidation, _callback); return localVarCall; } @@ -3807,6 +4115,7 @@ private okhttp3.Call replaceClusterCustomObjectValidateBeforeCall(String group, * @param body The JSON schema of the Resource to replace. (required) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) (optional) * @return Object * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -3816,8 +4125,8 @@ private okhttp3.Call replaceClusterCustomObjectValidateBeforeCall(String group, 401 Unauthorized - */ - public Object replaceClusterCustomObject(String group, String version, String plural, String name, Object body, String dryRun, String fieldManager) throws ApiException { - ApiResponse localVarResp = replaceClusterCustomObjectWithHttpInfo(group, version, plural, name, body, dryRun, fieldManager); + public Object replaceClusterCustomObject(String group, String version, String plural, String name, Object body, String dryRun, String fieldManager, String fieldValidation) throws ApiException { + ApiResponse localVarResp = replaceClusterCustomObjectWithHttpInfo(group, version, plural, name, body, dryRun, fieldManager, fieldValidation); return localVarResp.getData(); } @@ -3831,6 +4140,7 @@ public Object replaceClusterCustomObject(String group, String version, String pl * @param body The JSON schema of the Resource to replace. (required) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) (optional) * @return ApiResponse<Object> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -3840,8 +4150,8 @@ public Object replaceClusterCustomObject(String group, String version, String pl 401 Unauthorized - */ - public ApiResponse replaceClusterCustomObjectWithHttpInfo(String group, String version, String plural, String name, Object body, String dryRun, String fieldManager) throws ApiException { - okhttp3.Call localVarCall = replaceClusterCustomObjectValidateBeforeCall(group, version, plural, name, body, dryRun, fieldManager, null); + public ApiResponse replaceClusterCustomObjectWithHttpInfo(String group, String version, String plural, String name, Object body, String dryRun, String fieldManager, String fieldValidation) throws ApiException { + okhttp3.Call localVarCall = replaceClusterCustomObjectValidateBeforeCall(group, version, plural, name, body, dryRun, fieldManager, fieldValidation, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -3856,6 +4166,7 @@ public ApiResponse replaceClusterCustomObjectWithHttpInfo(String group, * @param body The JSON schema of the Resource to replace. (required) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) (optional) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object @@ -3866,9 +4177,9 @@ public ApiResponse replaceClusterCustomObjectWithHttpInfo(String group, 401 Unauthorized - */ - public okhttp3.Call replaceClusterCustomObjectAsync(String group, String version, String plural, String name, Object body, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { + public okhttp3.Call replaceClusterCustomObjectAsync(String group, String version, String plural, String name, Object body, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = replaceClusterCustomObjectValidateBeforeCall(group, version, plural, name, body, dryRun, fieldManager, _callback); + okhttp3.Call localVarCall = replaceClusterCustomObjectValidateBeforeCall(group, version, plural, name, body, dryRun, fieldManager, fieldValidation, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -3882,6 +4193,7 @@ public okhttp3.Call replaceClusterCustomObjectAsync(String group, String version * @param body (required) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) (optional) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -3893,7 +4205,7 @@ public okhttp3.Call replaceClusterCustomObjectAsync(String group, String version 401 Unauthorized - */ - public okhttp3.Call replaceClusterCustomObjectScaleCall(String group, String version, String plural, String name, Object body, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { + public okhttp3.Call replaceClusterCustomObjectScaleCall(String group, String version, String plural, String name, Object body, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; // create path and map variables @@ -3913,6 +4225,10 @@ public okhttp3.Call replaceClusterCustomObjectScaleCall(String group, String ver localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); } + if (fieldValidation != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); + } + Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); @@ -3935,7 +4251,7 @@ public okhttp3.Call replaceClusterCustomObjectScaleCall(String group, String ver } @SuppressWarnings("rawtypes") - private okhttp3.Call replaceClusterCustomObjectScaleValidateBeforeCall(String group, String version, String plural, String name, Object body, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceClusterCustomObjectScaleValidateBeforeCall(String group, String version, String plural, String name, Object body, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { // verify the required parameter 'group' is set if (group == null) { @@ -3963,7 +4279,7 @@ private okhttp3.Call replaceClusterCustomObjectScaleValidateBeforeCall(String gr } - okhttp3.Call localVarCall = replaceClusterCustomObjectScaleCall(group, version, plural, name, body, dryRun, fieldManager, _callback); + okhttp3.Call localVarCall = replaceClusterCustomObjectScaleCall(group, version, plural, name, body, dryRun, fieldManager, fieldValidation, _callback); return localVarCall; } @@ -3978,6 +4294,7 @@ private okhttp3.Call replaceClusterCustomObjectScaleValidateBeforeCall(String gr * @param body (required) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) (optional) * @return Object * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -3988,8 +4305,8 @@ private okhttp3.Call replaceClusterCustomObjectScaleValidateBeforeCall(String gr 401 Unauthorized - */ - public Object replaceClusterCustomObjectScale(String group, String version, String plural, String name, Object body, String dryRun, String fieldManager) throws ApiException { - ApiResponse localVarResp = replaceClusterCustomObjectScaleWithHttpInfo(group, version, plural, name, body, dryRun, fieldManager); + public Object replaceClusterCustomObjectScale(String group, String version, String plural, String name, Object body, String dryRun, String fieldManager, String fieldValidation) throws ApiException { + ApiResponse localVarResp = replaceClusterCustomObjectScaleWithHttpInfo(group, version, plural, name, body, dryRun, fieldManager, fieldValidation); return localVarResp.getData(); } @@ -4003,6 +4320,7 @@ public Object replaceClusterCustomObjectScale(String group, String version, Stri * @param body (required) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) (optional) * @return ApiResponse<Object> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -4013,8 +4331,8 @@ public Object replaceClusterCustomObjectScale(String group, String version, Stri 401 Unauthorized - */ - public ApiResponse replaceClusterCustomObjectScaleWithHttpInfo(String group, String version, String plural, String name, Object body, String dryRun, String fieldManager) throws ApiException { - okhttp3.Call localVarCall = replaceClusterCustomObjectScaleValidateBeforeCall(group, version, plural, name, body, dryRun, fieldManager, null); + public ApiResponse replaceClusterCustomObjectScaleWithHttpInfo(String group, String version, String plural, String name, Object body, String dryRun, String fieldManager, String fieldValidation) throws ApiException { + okhttp3.Call localVarCall = replaceClusterCustomObjectScaleValidateBeforeCall(group, version, plural, name, body, dryRun, fieldManager, fieldValidation, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -4029,6 +4347,7 @@ public ApiResponse replaceClusterCustomObjectScaleWithHttpInfo(String gr * @param body (required) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) (optional) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object @@ -4040,9 +4359,9 @@ public ApiResponse replaceClusterCustomObjectScaleWithHttpInfo(String gr 401 Unauthorized - */ - public okhttp3.Call replaceClusterCustomObjectScaleAsync(String group, String version, String plural, String name, Object body, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { + public okhttp3.Call replaceClusterCustomObjectScaleAsync(String group, String version, String plural, String name, Object body, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = replaceClusterCustomObjectScaleValidateBeforeCall(group, version, plural, name, body, dryRun, fieldManager, _callback); + okhttp3.Call localVarCall = replaceClusterCustomObjectScaleValidateBeforeCall(group, version, plural, name, body, dryRun, fieldManager, fieldValidation, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -4056,6 +4375,7 @@ public okhttp3.Call replaceClusterCustomObjectScaleAsync(String group, String ve * @param body (required) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) (optional) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -4067,7 +4387,7 @@ public okhttp3.Call replaceClusterCustomObjectScaleAsync(String group, String ve 401 Unauthorized - */ - public okhttp3.Call replaceClusterCustomObjectStatusCall(String group, String version, String plural, String name, Object body, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { + public okhttp3.Call replaceClusterCustomObjectStatusCall(String group, String version, String plural, String name, Object body, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; // create path and map variables @@ -4087,6 +4407,10 @@ public okhttp3.Call replaceClusterCustomObjectStatusCall(String group, String ve localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); } + if (fieldValidation != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); + } + Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); @@ -4109,7 +4433,7 @@ public okhttp3.Call replaceClusterCustomObjectStatusCall(String group, String ve } @SuppressWarnings("rawtypes") - private okhttp3.Call replaceClusterCustomObjectStatusValidateBeforeCall(String group, String version, String plural, String name, Object body, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceClusterCustomObjectStatusValidateBeforeCall(String group, String version, String plural, String name, Object body, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { // verify the required parameter 'group' is set if (group == null) { @@ -4137,7 +4461,7 @@ private okhttp3.Call replaceClusterCustomObjectStatusValidateBeforeCall(String g } - okhttp3.Call localVarCall = replaceClusterCustomObjectStatusCall(group, version, plural, name, body, dryRun, fieldManager, _callback); + okhttp3.Call localVarCall = replaceClusterCustomObjectStatusCall(group, version, plural, name, body, dryRun, fieldManager, fieldValidation, _callback); return localVarCall; } @@ -4152,6 +4476,7 @@ private okhttp3.Call replaceClusterCustomObjectStatusValidateBeforeCall(String g * @param body (required) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) (optional) * @return Object * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -4162,8 +4487,8 @@ private okhttp3.Call replaceClusterCustomObjectStatusValidateBeforeCall(String g 401 Unauthorized - */ - public Object replaceClusterCustomObjectStatus(String group, String version, String plural, String name, Object body, String dryRun, String fieldManager) throws ApiException { - ApiResponse localVarResp = replaceClusterCustomObjectStatusWithHttpInfo(group, version, plural, name, body, dryRun, fieldManager); + public Object replaceClusterCustomObjectStatus(String group, String version, String plural, String name, Object body, String dryRun, String fieldManager, String fieldValidation) throws ApiException { + ApiResponse localVarResp = replaceClusterCustomObjectStatusWithHttpInfo(group, version, plural, name, body, dryRun, fieldManager, fieldValidation); return localVarResp.getData(); } @@ -4177,6 +4502,7 @@ public Object replaceClusterCustomObjectStatus(String group, String version, Str * @param body (required) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) (optional) * @return ApiResponse<Object> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -4187,8 +4513,8 @@ public Object replaceClusterCustomObjectStatus(String group, String version, Str 401 Unauthorized - */ - public ApiResponse replaceClusterCustomObjectStatusWithHttpInfo(String group, String version, String plural, String name, Object body, String dryRun, String fieldManager) throws ApiException { - okhttp3.Call localVarCall = replaceClusterCustomObjectStatusValidateBeforeCall(group, version, plural, name, body, dryRun, fieldManager, null); + public ApiResponse replaceClusterCustomObjectStatusWithHttpInfo(String group, String version, String plural, String name, Object body, String dryRun, String fieldManager, String fieldValidation) throws ApiException { + okhttp3.Call localVarCall = replaceClusterCustomObjectStatusValidateBeforeCall(group, version, plural, name, body, dryRun, fieldManager, fieldValidation, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -4203,6 +4529,7 @@ public ApiResponse replaceClusterCustomObjectStatusWithHttpInfo(String g * @param body (required) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) (optional) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object @@ -4214,9 +4541,9 @@ public ApiResponse replaceClusterCustomObjectStatusWithHttpInfo(String g 401 Unauthorized - */ - public okhttp3.Call replaceClusterCustomObjectStatusAsync(String group, String version, String plural, String name, Object body, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { + public okhttp3.Call replaceClusterCustomObjectStatusAsync(String group, String version, String plural, String name, Object body, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = replaceClusterCustomObjectStatusValidateBeforeCall(group, version, plural, name, body, dryRun, fieldManager, _callback); + okhttp3.Call localVarCall = replaceClusterCustomObjectStatusValidateBeforeCall(group, version, plural, name, body, dryRun, fieldManager, fieldValidation, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -4231,6 +4558,7 @@ public okhttp3.Call replaceClusterCustomObjectStatusAsync(String group, String v * @param body The JSON schema of the Resource to replace. (required) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) (optional) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -4241,7 +4569,7 @@ public okhttp3.Call replaceClusterCustomObjectStatusAsync(String group, String v 401 Unauthorized - */ - public okhttp3.Call replaceNamespacedCustomObjectCall(String group, String version, String namespace, String plural, String name, Object body, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { + public okhttp3.Call replaceNamespacedCustomObjectCall(String group, String version, String namespace, String plural, String name, Object body, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; // create path and map variables @@ -4262,6 +4590,10 @@ public okhttp3.Call replaceNamespacedCustomObjectCall(String group, String versi localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); } + if (fieldValidation != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); + } + Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); @@ -4284,7 +4616,7 @@ public okhttp3.Call replaceNamespacedCustomObjectCall(String group, String versi } @SuppressWarnings("rawtypes") - private okhttp3.Call replaceNamespacedCustomObjectValidateBeforeCall(String group, String version, String namespace, String plural, String name, Object body, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceNamespacedCustomObjectValidateBeforeCall(String group, String version, String namespace, String plural, String name, Object body, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { // verify the required parameter 'group' is set if (group == null) { @@ -4317,7 +4649,7 @@ private okhttp3.Call replaceNamespacedCustomObjectValidateBeforeCall(String grou } - okhttp3.Call localVarCall = replaceNamespacedCustomObjectCall(group, version, namespace, plural, name, body, dryRun, fieldManager, _callback); + okhttp3.Call localVarCall = replaceNamespacedCustomObjectCall(group, version, namespace, plural, name, body, dryRun, fieldManager, fieldValidation, _callback); return localVarCall; } @@ -4333,6 +4665,7 @@ private okhttp3.Call replaceNamespacedCustomObjectValidateBeforeCall(String grou * @param body The JSON schema of the Resource to replace. (required) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) (optional) * @return Object * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -4342,8 +4675,8 @@ private okhttp3.Call replaceNamespacedCustomObjectValidateBeforeCall(String grou 401 Unauthorized - */ - public Object replaceNamespacedCustomObject(String group, String version, String namespace, String plural, String name, Object body, String dryRun, String fieldManager) throws ApiException { - ApiResponse localVarResp = replaceNamespacedCustomObjectWithHttpInfo(group, version, namespace, plural, name, body, dryRun, fieldManager); + public Object replaceNamespacedCustomObject(String group, String version, String namespace, String plural, String name, Object body, String dryRun, String fieldManager, String fieldValidation) throws ApiException { + ApiResponse localVarResp = replaceNamespacedCustomObjectWithHttpInfo(group, version, namespace, plural, name, body, dryRun, fieldManager, fieldValidation); return localVarResp.getData(); } @@ -4358,6 +4691,7 @@ public Object replaceNamespacedCustomObject(String group, String version, String * @param body The JSON schema of the Resource to replace. (required) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) (optional) * @return ApiResponse<Object> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -4367,8 +4701,8 @@ public Object replaceNamespacedCustomObject(String group, String version, String 401 Unauthorized - */ - public ApiResponse replaceNamespacedCustomObjectWithHttpInfo(String group, String version, String namespace, String plural, String name, Object body, String dryRun, String fieldManager) throws ApiException { - okhttp3.Call localVarCall = replaceNamespacedCustomObjectValidateBeforeCall(group, version, namespace, plural, name, body, dryRun, fieldManager, null); + public ApiResponse replaceNamespacedCustomObjectWithHttpInfo(String group, String version, String namespace, String plural, String name, Object body, String dryRun, String fieldManager, String fieldValidation) throws ApiException { + okhttp3.Call localVarCall = replaceNamespacedCustomObjectValidateBeforeCall(group, version, namespace, plural, name, body, dryRun, fieldManager, fieldValidation, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -4384,6 +4718,7 @@ public ApiResponse replaceNamespacedCustomObjectWithHttpInfo(String grou * @param body The JSON schema of the Resource to replace. (required) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) (optional) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object @@ -4394,9 +4729,9 @@ public ApiResponse replaceNamespacedCustomObjectWithHttpInfo(String grou 401 Unauthorized - */ - public okhttp3.Call replaceNamespacedCustomObjectAsync(String group, String version, String namespace, String plural, String name, Object body, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { + public okhttp3.Call replaceNamespacedCustomObjectAsync(String group, String version, String namespace, String plural, String name, Object body, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = replaceNamespacedCustomObjectValidateBeforeCall(group, version, namespace, plural, name, body, dryRun, fieldManager, _callback); + okhttp3.Call localVarCall = replaceNamespacedCustomObjectValidateBeforeCall(group, version, namespace, plural, name, body, dryRun, fieldManager, fieldValidation, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -4411,6 +4746,7 @@ public okhttp3.Call replaceNamespacedCustomObjectAsync(String group, String vers * @param body (required) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) (optional) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -4422,7 +4758,7 @@ public okhttp3.Call replaceNamespacedCustomObjectAsync(String group, String vers 401 Unauthorized - */ - public okhttp3.Call replaceNamespacedCustomObjectScaleCall(String group, String version, String namespace, String plural, String name, Object body, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { + public okhttp3.Call replaceNamespacedCustomObjectScaleCall(String group, String version, String namespace, String plural, String name, Object body, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; // create path and map variables @@ -4443,6 +4779,10 @@ public okhttp3.Call replaceNamespacedCustomObjectScaleCall(String group, String localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); } + if (fieldValidation != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); + } + Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); @@ -4465,7 +4805,7 @@ public okhttp3.Call replaceNamespacedCustomObjectScaleCall(String group, String } @SuppressWarnings("rawtypes") - private okhttp3.Call replaceNamespacedCustomObjectScaleValidateBeforeCall(String group, String version, String namespace, String plural, String name, Object body, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceNamespacedCustomObjectScaleValidateBeforeCall(String group, String version, String namespace, String plural, String name, Object body, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { // verify the required parameter 'group' is set if (group == null) { @@ -4498,7 +4838,7 @@ private okhttp3.Call replaceNamespacedCustomObjectScaleValidateBeforeCall(String } - okhttp3.Call localVarCall = replaceNamespacedCustomObjectScaleCall(group, version, namespace, plural, name, body, dryRun, fieldManager, _callback); + okhttp3.Call localVarCall = replaceNamespacedCustomObjectScaleCall(group, version, namespace, plural, name, body, dryRun, fieldManager, fieldValidation, _callback); return localVarCall; } @@ -4514,6 +4854,7 @@ private okhttp3.Call replaceNamespacedCustomObjectScaleValidateBeforeCall(String * @param body (required) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) (optional) * @return Object * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -4524,8 +4865,8 @@ private okhttp3.Call replaceNamespacedCustomObjectScaleValidateBeforeCall(String 401 Unauthorized - */ - public Object replaceNamespacedCustomObjectScale(String group, String version, String namespace, String plural, String name, Object body, String dryRun, String fieldManager) throws ApiException { - ApiResponse localVarResp = replaceNamespacedCustomObjectScaleWithHttpInfo(group, version, namespace, plural, name, body, dryRun, fieldManager); + public Object replaceNamespacedCustomObjectScale(String group, String version, String namespace, String plural, String name, Object body, String dryRun, String fieldManager, String fieldValidation) throws ApiException { + ApiResponse localVarResp = replaceNamespacedCustomObjectScaleWithHttpInfo(group, version, namespace, plural, name, body, dryRun, fieldManager, fieldValidation); return localVarResp.getData(); } @@ -4540,6 +4881,7 @@ public Object replaceNamespacedCustomObjectScale(String group, String version, S * @param body (required) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) (optional) * @return ApiResponse<Object> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -4550,8 +4892,8 @@ public Object replaceNamespacedCustomObjectScale(String group, String version, S 401 Unauthorized - */ - public ApiResponse replaceNamespacedCustomObjectScaleWithHttpInfo(String group, String version, String namespace, String plural, String name, Object body, String dryRun, String fieldManager) throws ApiException { - okhttp3.Call localVarCall = replaceNamespacedCustomObjectScaleValidateBeforeCall(group, version, namespace, plural, name, body, dryRun, fieldManager, null); + public ApiResponse replaceNamespacedCustomObjectScaleWithHttpInfo(String group, String version, String namespace, String plural, String name, Object body, String dryRun, String fieldManager, String fieldValidation) throws ApiException { + okhttp3.Call localVarCall = replaceNamespacedCustomObjectScaleValidateBeforeCall(group, version, namespace, plural, name, body, dryRun, fieldManager, fieldValidation, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -4567,6 +4909,7 @@ public ApiResponse replaceNamespacedCustomObjectScaleWithHttpInfo(String * @param body (required) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) (optional) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object @@ -4578,9 +4921,9 @@ public ApiResponse replaceNamespacedCustomObjectScaleWithHttpInfo(String 401 Unauthorized - */ - public okhttp3.Call replaceNamespacedCustomObjectScaleAsync(String group, String version, String namespace, String plural, String name, Object body, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { + public okhttp3.Call replaceNamespacedCustomObjectScaleAsync(String group, String version, String namespace, String plural, String name, Object body, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = replaceNamespacedCustomObjectScaleValidateBeforeCall(group, version, namespace, plural, name, body, dryRun, fieldManager, _callback); + okhttp3.Call localVarCall = replaceNamespacedCustomObjectScaleValidateBeforeCall(group, version, namespace, plural, name, body, dryRun, fieldManager, fieldValidation, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -4595,6 +4938,7 @@ public okhttp3.Call replaceNamespacedCustomObjectScaleAsync(String group, String * @param body (required) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) (optional) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -4606,7 +4950,7 @@ public okhttp3.Call replaceNamespacedCustomObjectScaleAsync(String group, String 401 Unauthorized - */ - public okhttp3.Call replaceNamespacedCustomObjectStatusCall(String group, String version, String namespace, String plural, String name, Object body, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { + public okhttp3.Call replaceNamespacedCustomObjectStatusCall(String group, String version, String namespace, String plural, String name, Object body, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; // create path and map variables @@ -4627,6 +4971,10 @@ public okhttp3.Call replaceNamespacedCustomObjectStatusCall(String group, String localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); } + if (fieldValidation != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); + } + Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); @@ -4649,7 +4997,7 @@ public okhttp3.Call replaceNamespacedCustomObjectStatusCall(String group, String } @SuppressWarnings("rawtypes") - private okhttp3.Call replaceNamespacedCustomObjectStatusValidateBeforeCall(String group, String version, String namespace, String plural, String name, Object body, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceNamespacedCustomObjectStatusValidateBeforeCall(String group, String version, String namespace, String plural, String name, Object body, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { // verify the required parameter 'group' is set if (group == null) { @@ -4682,7 +5030,7 @@ private okhttp3.Call replaceNamespacedCustomObjectStatusValidateBeforeCall(Strin } - okhttp3.Call localVarCall = replaceNamespacedCustomObjectStatusCall(group, version, namespace, plural, name, body, dryRun, fieldManager, _callback); + okhttp3.Call localVarCall = replaceNamespacedCustomObjectStatusCall(group, version, namespace, plural, name, body, dryRun, fieldManager, fieldValidation, _callback); return localVarCall; } @@ -4698,6 +5046,7 @@ private okhttp3.Call replaceNamespacedCustomObjectStatusValidateBeforeCall(Strin * @param body (required) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) (optional) * @return Object * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -4708,8 +5057,8 @@ private okhttp3.Call replaceNamespacedCustomObjectStatusValidateBeforeCall(Strin 401 Unauthorized - */ - public Object replaceNamespacedCustomObjectStatus(String group, String version, String namespace, String plural, String name, Object body, String dryRun, String fieldManager) throws ApiException { - ApiResponse localVarResp = replaceNamespacedCustomObjectStatusWithHttpInfo(group, version, namespace, plural, name, body, dryRun, fieldManager); + public Object replaceNamespacedCustomObjectStatus(String group, String version, String namespace, String plural, String name, Object body, String dryRun, String fieldManager, String fieldValidation) throws ApiException { + ApiResponse localVarResp = replaceNamespacedCustomObjectStatusWithHttpInfo(group, version, namespace, plural, name, body, dryRun, fieldManager, fieldValidation); return localVarResp.getData(); } @@ -4724,6 +5073,7 @@ public Object replaceNamespacedCustomObjectStatus(String group, String version, * @param body (required) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) (optional) * @return ApiResponse<Object> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -4734,8 +5084,8 @@ public Object replaceNamespacedCustomObjectStatus(String group, String version, 401 Unauthorized - */ - public ApiResponse replaceNamespacedCustomObjectStatusWithHttpInfo(String group, String version, String namespace, String plural, String name, Object body, String dryRun, String fieldManager) throws ApiException { - okhttp3.Call localVarCall = replaceNamespacedCustomObjectStatusValidateBeforeCall(group, version, namespace, plural, name, body, dryRun, fieldManager, null); + public ApiResponse replaceNamespacedCustomObjectStatusWithHttpInfo(String group, String version, String namespace, String plural, String name, Object body, String dryRun, String fieldManager, String fieldValidation) throws ApiException { + okhttp3.Call localVarCall = replaceNamespacedCustomObjectStatusValidateBeforeCall(group, version, namespace, plural, name, body, dryRun, fieldManager, fieldValidation, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -4751,6 +5101,7 @@ public ApiResponse replaceNamespacedCustomObjectStatusWithHttpInfo(Strin * @param body (required) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) (optional) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object @@ -4762,9 +5113,9 @@ public ApiResponse replaceNamespacedCustomObjectStatusWithHttpInfo(Strin 401 Unauthorized - */ - public okhttp3.Call replaceNamespacedCustomObjectStatusAsync(String group, String version, String namespace, String plural, String name, Object body, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { + public okhttp3.Call replaceNamespacedCustomObjectStatusAsync(String group, String version, String namespace, String plural, String name, Object body, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = replaceNamespacedCustomObjectStatusValidateBeforeCall(group, version, namespace, plural, name, body, dryRun, fieldManager, _callback); + okhttp3.Call localVarCall = replaceNamespacedCustomObjectStatusValidateBeforeCall(group, version, namespace, plural, name, body, dryRun, fieldManager, fieldValidation, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; 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 5d4f013fae..fcfec8a8ef 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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 1963ed05ef..436825cd46 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -62,7 +62,7 @@ public void setApiClient(ApiClient apiClient) { * Build call for createNamespacedEndpointSlice * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -107,7 +107,7 @@ public okhttp3.Call createNamespacedEndpointSliceCall(String namespace, V1Endpoi Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -148,7 +148,7 @@ private okhttp3.Call createNamespacedEndpointSliceValidateBeforeCall(String name * create an EndpointSlice * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -173,7 +173,7 @@ public V1EndpointSlice createNamespacedEndpointSlice(String namespace, V1Endpoin * create an EndpointSlice * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -199,7 +199,7 @@ public ApiResponse createNamespacedEndpointSliceWithHttpInfo(St * create an EndpointSlice * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -225,11 +225,12 @@ public okhttp3.Call createNamespacedEndpointSliceAsync(String namespace, V1Endpo /** * Build call for deleteCollectionNamespacedEndpointSlice * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param _continue 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) * @param dryRun 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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @param orphanDependents 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) @@ -249,7 +250,7 @@ public okhttp3.Call createNamespacedEndpointSliceAsync(String namespace, V1Endpo 401 Unauthorized - */ - public okhttp3.Call deleteCollectionNamespacedEndpointSliceCall(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + public okhttp3.Call deleteCollectionNamespacedEndpointSliceCall(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; // create path and map variables @@ -278,6 +279,10 @@ public okhttp3.Call deleteCollectionNamespacedEndpointSliceCall(String namespace localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); } + if (ignoreStoreReadErrorWithClusterBreakingPotential != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("ignoreStoreReadErrorWithClusterBreakingPotential", ignoreStoreReadErrorWithClusterBreakingPotential)); + } + if (labelSelector != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); } @@ -314,7 +319,7 @@ public okhttp3.Call deleteCollectionNamespacedEndpointSliceCall(String namespace Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -332,7 +337,7 @@ public okhttp3.Call deleteCollectionNamespacedEndpointSliceCall(String namespace } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteCollectionNamespacedEndpointSliceValidateBeforeCall(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionNamespacedEndpointSliceValidateBeforeCall(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { // verify the required parameter 'namespace' is set if (namespace == null) { @@ -340,7 +345,7 @@ private okhttp3.Call deleteCollectionNamespacedEndpointSliceValidateBeforeCall(S } - okhttp3.Call localVarCall = deleteCollectionNamespacedEndpointSliceCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + okhttp3.Call localVarCall = deleteCollectionNamespacedEndpointSliceCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); return localVarCall; } @@ -349,11 +354,12 @@ private okhttp3.Call deleteCollectionNamespacedEndpointSliceValidateBeforeCall(S * * delete collection of EndpointSlice * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param _continue 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) * @param dryRun 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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @param orphanDependents 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) @@ -372,8 +378,8 @@ private okhttp3.Call deleteCollectionNamespacedEndpointSliceValidateBeforeCall(S 401 Unauthorized - */ - public V1Status deleteCollectionNamespacedEndpointSlice(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body) throws ApiException { - ApiResponse localVarResp = deleteCollectionNamespacedEndpointSliceWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); + public V1Status deleteCollectionNamespacedEndpointSlice(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body) throws ApiException { + ApiResponse localVarResp = deleteCollectionNamespacedEndpointSliceWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); return localVarResp.getData(); } @@ -381,11 +387,12 @@ public V1Status deleteCollectionNamespacedEndpointSlice(String namespace, String * * delete collection of EndpointSlice * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param _continue 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) * @param dryRun 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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @param orphanDependents 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) @@ -404,8 +411,8 @@ public V1Status deleteCollectionNamespacedEndpointSlice(String namespace, String 401 Unauthorized - */ - public ApiResponse deleteCollectionNamespacedEndpointSliceWithHttpInfo(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body) throws ApiException { - okhttp3.Call localVarCall = deleteCollectionNamespacedEndpointSliceValidateBeforeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, null); + public ApiResponse deleteCollectionNamespacedEndpointSliceWithHttpInfo(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteCollectionNamespacedEndpointSliceValidateBeforeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -414,11 +421,12 @@ public ApiResponse deleteCollectionNamespacedEndpointSliceWithHttpInfo * (asynchronously) * delete collection of EndpointSlice * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param _continue 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) * @param dryRun 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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @param orphanDependents 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) @@ -438,9 +446,9 @@ public ApiResponse deleteCollectionNamespacedEndpointSliceWithHttpInfo 401 Unauthorized - */ - public okhttp3.Call deleteCollectionNamespacedEndpointSliceAsync(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + public okhttp3.Call deleteCollectionNamespacedEndpointSliceAsync(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = deleteCollectionNamespacedEndpointSliceValidateBeforeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + okhttp3.Call localVarCall = deleteCollectionNamespacedEndpointSliceValidateBeforeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -449,9 +457,10 @@ public okhttp3.Call deleteCollectionNamespacedEndpointSliceAsync(String namespac * Build call for deleteNamespacedEndpointSlice * @param name name of the EndpointSlice (required) * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @param orphanDependents 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) * @param propagationPolicy 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. (optional) * @param body (optional) @@ -466,7 +475,7 @@ public okhttp3.Call deleteCollectionNamespacedEndpointSliceAsync(String namespac 401 Unauthorized - */ - public okhttp3.Call deleteNamespacedEndpointSliceCall(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + public okhttp3.Call deleteNamespacedEndpointSliceCall(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; // create path and map variables @@ -488,6 +497,10 @@ public okhttp3.Call deleteNamespacedEndpointSliceCall(String name, String namesp localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); } + if (ignoreStoreReadErrorWithClusterBreakingPotential != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("ignoreStoreReadErrorWithClusterBreakingPotential", ignoreStoreReadErrorWithClusterBreakingPotential)); + } + if (orphanDependents != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("orphanDependents", orphanDependents)); } @@ -500,7 +513,7 @@ public okhttp3.Call deleteNamespacedEndpointSliceCall(String name, String namesp Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -518,7 +531,7 @@ public okhttp3.Call deleteNamespacedEndpointSliceCall(String name, String namesp } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteNamespacedEndpointSliceValidateBeforeCall(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteNamespacedEndpointSliceValidateBeforeCall(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -531,7 +544,7 @@ private okhttp3.Call deleteNamespacedEndpointSliceValidateBeforeCall(String name } - okhttp3.Call localVarCall = deleteNamespacedEndpointSliceCall(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); + okhttp3.Call localVarCall = deleteNamespacedEndpointSliceCall(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); return localVarCall; } @@ -541,9 +554,10 @@ private okhttp3.Call deleteNamespacedEndpointSliceValidateBeforeCall(String name * delete an EndpointSlice * @param name name of the EndpointSlice (required) * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @param orphanDependents 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) * @param propagationPolicy 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. (optional) * @param body (optional) @@ -557,8 +571,8 @@ private okhttp3.Call deleteNamespacedEndpointSliceValidateBeforeCall(String name 401 Unauthorized - */ - public V1Status deleteNamespacedEndpointSlice(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { - ApiResponse localVarResp = deleteNamespacedEndpointSliceWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body); + public V1Status deleteNamespacedEndpointSlice(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { + ApiResponse localVarResp = deleteNamespacedEndpointSliceWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body); return localVarResp.getData(); } @@ -567,9 +581,10 @@ public V1Status deleteNamespacedEndpointSlice(String name, String namespace, Str * delete an EndpointSlice * @param name name of the EndpointSlice (required) * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @param orphanDependents 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) * @param propagationPolicy 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. (optional) * @param body (optional) @@ -583,8 +598,8 @@ public V1Status deleteNamespacedEndpointSlice(String name, String namespace, Str 401 Unauthorized - */ - public ApiResponse deleteNamespacedEndpointSliceWithHttpInfo(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { - okhttp3.Call localVarCall = deleteNamespacedEndpointSliceValidateBeforeCall(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, null); + public ApiResponse deleteNamespacedEndpointSliceWithHttpInfo(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteNamespacedEndpointSliceValidateBeforeCall(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -594,9 +609,10 @@ public ApiResponse deleteNamespacedEndpointSliceWithHttpInfo(String na * delete an EndpointSlice * @param name name of the EndpointSlice (required) * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @param orphanDependents 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) * @param propagationPolicy 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. (optional) * @param body (optional) @@ -611,9 +627,9 @@ public ApiResponse deleteNamespacedEndpointSliceWithHttpInfo(String na 401 Unauthorized - */ - public okhttp3.Call deleteNamespacedEndpointSliceAsync(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + public okhttp3.Call deleteNamespacedEndpointSliceAsync(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = deleteNamespacedEndpointSliceValidateBeforeCall(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); + okhttp3.Call localVarCall = deleteNamespacedEndpointSliceValidateBeforeCall(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -642,7 +658,7 @@ public okhttp3.Call getAPIResourcesCall(final ApiCallback _callback) throws ApiE Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -730,7 +746,7 @@ public okhttp3.Call getAPIResourcesAsync(final ApiCallback _c * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) @@ -802,7 +818,7 @@ public okhttp3.Call listEndpointSliceForAllNamespacesCall(Boolean allowWatchBook Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch", "application/cbor-seq" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -836,7 +852,7 @@ private okhttp3.Call listEndpointSliceForAllNamespacesValidateBeforeCall(Boolean * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) @@ -864,7 +880,7 @@ public V1EndpointSliceList listEndpointSliceForAllNamespaces(Boolean allowWatchB * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) @@ -893,7 +909,7 @@ public ApiResponse listEndpointSliceForAllNamespacesWithHtt * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) @@ -919,7 +935,7 @@ public okhttp3.Call listEndpointSliceForAllNamespacesAsync(Boolean allowWatchBoo /** * Build call for listNamespacedEndpointSlice * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param allowWatchBookmarks 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. (optional) * @param _continue 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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) @@ -997,7 +1013,7 @@ public okhttp3.Call listNamespacedEndpointSliceCall(String namespace, String pre Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch", "application/cbor-seq" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -1032,7 +1048,7 @@ private okhttp3.Call listNamespacedEndpointSliceValidateBeforeCall(String namesp * * list or watch objects of kind EndpointSlice * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param allowWatchBookmarks 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. (optional) * @param _continue 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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) @@ -1061,7 +1077,7 @@ public V1EndpointSliceList listNamespacedEndpointSlice(String namespace, String * * list or watch objects of kind EndpointSlice * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param allowWatchBookmarks 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. (optional) * @param _continue 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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) @@ -1091,7 +1107,7 @@ public ApiResponse listNamespacedEndpointSliceWithHttpInfo( * (asynchronously) * list or watch objects of kind EndpointSlice * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param allowWatchBookmarks 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. (optional) * @param _continue 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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) @@ -1124,7 +1140,7 @@ public okhttp3.Call listNamespacedEndpointSliceAsync(String namespace, String pr * @param name name of the EndpointSlice (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -1174,7 +1190,7 @@ public okhttp3.Call patchNamespacedEndpointSliceCall(String name, String namespa Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -1221,7 +1237,7 @@ private okhttp3.Call patchNamespacedEndpointSliceValidateBeforeCall(String name, * @param name name of the EndpointSlice (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -1247,7 +1263,7 @@ public V1EndpointSlice patchNamespacedEndpointSlice(String name, String namespac * @param name name of the EndpointSlice (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -1274,7 +1290,7 @@ public ApiResponse patchNamespacedEndpointSliceWithHttpInfo(Str * @param name name of the EndpointSlice (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -1301,7 +1317,7 @@ public okhttp3.Call patchNamespacedEndpointSliceAsync(String name, String namesp * Build call for readNamespacedEndpointSlice * @param name name of the EndpointSlice (required) * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -1330,7 +1346,7 @@ public okhttp3.Call readNamespacedEndpointSliceCall(String name, String namespac Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -1371,7 +1387,7 @@ private okhttp3.Call readNamespacedEndpointSliceValidateBeforeCall(String name, * read the specified EndpointSlice * @param name name of the EndpointSlice (required) * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return V1EndpointSlice * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -1391,7 +1407,7 @@ public V1EndpointSlice readNamespacedEndpointSlice(String name, String namespace * read the specified EndpointSlice * @param name name of the EndpointSlice (required) * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return ApiResponse<V1EndpointSlice> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -1412,7 +1428,7 @@ public ApiResponse readNamespacedEndpointSliceWithHttpInfo(Stri * read the specified EndpointSlice * @param name name of the EndpointSlice (required) * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object @@ -1435,7 +1451,7 @@ public okhttp3.Call readNamespacedEndpointSliceAsync(String name, String namespa * @param name name of the EndpointSlice (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -1480,7 +1496,7 @@ public okhttp3.Call replaceNamespacedEndpointSliceCall(String name, String names Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -1527,7 +1543,7 @@ private okhttp3.Call replaceNamespacedEndpointSliceValidateBeforeCall(String nam * @param name name of the EndpointSlice (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -1552,7 +1568,7 @@ public V1EndpointSlice replaceNamespacedEndpointSlice(String name, String namesp * @param name name of the EndpointSlice (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -1578,7 +1594,7 @@ public ApiResponse replaceNamespacedEndpointSliceWithHttpInfo(S * @param name name of the EndpointSlice (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) 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 33865a32f5..604b2c7535 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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 9d6d151c79..88a2442650 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -62,7 +62,7 @@ public void setApiClient(ApiClient apiClient) { * Build call for createNamespacedEvent * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -107,7 +107,7 @@ public okhttp3.Call createNamespacedEventCall(String namespace, EventsV1Event bo Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -148,7 +148,7 @@ private okhttp3.Call createNamespacedEventValidateBeforeCall(String namespace, E * create an Event * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -173,7 +173,7 @@ public EventsV1Event createNamespacedEvent(String namespace, EventsV1Event body, * create an Event * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -199,7 +199,7 @@ public ApiResponse createNamespacedEventWithHttpInfo(String names * create an Event * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -225,11 +225,12 @@ public okhttp3.Call createNamespacedEventAsync(String namespace, EventsV1Event b /** * Build call for deleteCollectionNamespacedEvent * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param _continue 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) * @param dryRun 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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @param orphanDependents 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) @@ -249,7 +250,7 @@ public okhttp3.Call createNamespacedEventAsync(String namespace, EventsV1Event b 401 Unauthorized - */ - public okhttp3.Call deleteCollectionNamespacedEventCall(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + public okhttp3.Call deleteCollectionNamespacedEventCall(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; // create path and map variables @@ -278,6 +279,10 @@ public okhttp3.Call deleteCollectionNamespacedEventCall(String namespace, String localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); } + if (ignoreStoreReadErrorWithClusterBreakingPotential != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("ignoreStoreReadErrorWithClusterBreakingPotential", ignoreStoreReadErrorWithClusterBreakingPotential)); + } + if (labelSelector != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); } @@ -314,7 +319,7 @@ public okhttp3.Call deleteCollectionNamespacedEventCall(String namespace, String Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -332,7 +337,7 @@ public okhttp3.Call deleteCollectionNamespacedEventCall(String namespace, String } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteCollectionNamespacedEventValidateBeforeCall(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionNamespacedEventValidateBeforeCall(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { // verify the required parameter 'namespace' is set if (namespace == null) { @@ -340,7 +345,7 @@ private okhttp3.Call deleteCollectionNamespacedEventValidateBeforeCall(String na } - okhttp3.Call localVarCall = deleteCollectionNamespacedEventCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + okhttp3.Call localVarCall = deleteCollectionNamespacedEventCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); return localVarCall; } @@ -349,11 +354,12 @@ private okhttp3.Call deleteCollectionNamespacedEventValidateBeforeCall(String na * * delete collection of Event * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param _continue 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) * @param dryRun 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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @param orphanDependents 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) @@ -372,8 +378,8 @@ private okhttp3.Call deleteCollectionNamespacedEventValidateBeforeCall(String na 401 Unauthorized - */ - public V1Status deleteCollectionNamespacedEvent(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body) throws ApiException { - ApiResponse localVarResp = deleteCollectionNamespacedEventWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); + public V1Status deleteCollectionNamespacedEvent(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body) throws ApiException { + ApiResponse localVarResp = deleteCollectionNamespacedEventWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); return localVarResp.getData(); } @@ -381,11 +387,12 @@ public V1Status deleteCollectionNamespacedEvent(String namespace, String pretty, * * delete collection of Event * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param _continue 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) * @param dryRun 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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @param orphanDependents 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) @@ -404,8 +411,8 @@ public V1Status deleteCollectionNamespacedEvent(String namespace, String pretty, 401 Unauthorized - */ - public ApiResponse deleteCollectionNamespacedEventWithHttpInfo(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body) throws ApiException { - okhttp3.Call localVarCall = deleteCollectionNamespacedEventValidateBeforeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, null); + public ApiResponse deleteCollectionNamespacedEventWithHttpInfo(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteCollectionNamespacedEventValidateBeforeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -414,11 +421,12 @@ public ApiResponse deleteCollectionNamespacedEventWithHttpInfo(String * (asynchronously) * delete collection of Event * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param _continue 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) * @param dryRun 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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @param orphanDependents 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) @@ -438,9 +446,9 @@ public ApiResponse deleteCollectionNamespacedEventWithHttpInfo(String 401 Unauthorized - */ - public okhttp3.Call deleteCollectionNamespacedEventAsync(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + public okhttp3.Call deleteCollectionNamespacedEventAsync(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = deleteCollectionNamespacedEventValidateBeforeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + okhttp3.Call localVarCall = deleteCollectionNamespacedEventValidateBeforeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -449,9 +457,10 @@ public okhttp3.Call deleteCollectionNamespacedEventAsync(String namespace, Strin * Build call for deleteNamespacedEvent * @param name name of the Event (required) * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @param orphanDependents 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) * @param propagationPolicy 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. (optional) * @param body (optional) @@ -466,7 +475,7 @@ public okhttp3.Call deleteCollectionNamespacedEventAsync(String namespace, Strin 401 Unauthorized - */ - public okhttp3.Call deleteNamespacedEventCall(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + public okhttp3.Call deleteNamespacedEventCall(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; // create path and map variables @@ -488,6 +497,10 @@ public okhttp3.Call deleteNamespacedEventCall(String name, String namespace, Str localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); } + if (ignoreStoreReadErrorWithClusterBreakingPotential != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("ignoreStoreReadErrorWithClusterBreakingPotential", ignoreStoreReadErrorWithClusterBreakingPotential)); + } + if (orphanDependents != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("orphanDependents", orphanDependents)); } @@ -500,7 +513,7 @@ public okhttp3.Call deleteNamespacedEventCall(String name, String namespace, Str Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -518,7 +531,7 @@ public okhttp3.Call deleteNamespacedEventCall(String name, String namespace, Str } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteNamespacedEventValidateBeforeCall(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteNamespacedEventValidateBeforeCall(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -531,7 +544,7 @@ private okhttp3.Call deleteNamespacedEventValidateBeforeCall(String name, String } - okhttp3.Call localVarCall = deleteNamespacedEventCall(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); + okhttp3.Call localVarCall = deleteNamespacedEventCall(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); return localVarCall; } @@ -541,9 +554,10 @@ private okhttp3.Call deleteNamespacedEventValidateBeforeCall(String name, String * delete an Event * @param name name of the Event (required) * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @param orphanDependents 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) * @param propagationPolicy 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. (optional) * @param body (optional) @@ -557,8 +571,8 @@ private okhttp3.Call deleteNamespacedEventValidateBeforeCall(String name, String 401 Unauthorized - */ - public V1Status deleteNamespacedEvent(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { - ApiResponse localVarResp = deleteNamespacedEventWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body); + public V1Status deleteNamespacedEvent(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { + ApiResponse localVarResp = deleteNamespacedEventWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body); return localVarResp.getData(); } @@ -567,9 +581,10 @@ public V1Status deleteNamespacedEvent(String name, String namespace, String pret * delete an Event * @param name name of the Event (required) * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @param orphanDependents 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) * @param propagationPolicy 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. (optional) * @param body (optional) @@ -583,8 +598,8 @@ public V1Status deleteNamespacedEvent(String name, String namespace, String pret 401 Unauthorized - */ - public ApiResponse deleteNamespacedEventWithHttpInfo(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { - okhttp3.Call localVarCall = deleteNamespacedEventValidateBeforeCall(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, null); + public ApiResponse deleteNamespacedEventWithHttpInfo(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteNamespacedEventValidateBeforeCall(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -594,9 +609,10 @@ public ApiResponse deleteNamespacedEventWithHttpInfo(String name, Stri * delete an Event * @param name name of the Event (required) * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @param orphanDependents 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) * @param propagationPolicy 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. (optional) * @param body (optional) @@ -611,9 +627,9 @@ public ApiResponse deleteNamespacedEventWithHttpInfo(String name, Stri 401 Unauthorized - */ - public okhttp3.Call deleteNamespacedEventAsync(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + public okhttp3.Call deleteNamespacedEventAsync(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = deleteNamespacedEventValidateBeforeCall(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); + okhttp3.Call localVarCall = deleteNamespacedEventValidateBeforeCall(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -642,7 +658,7 @@ public okhttp3.Call getAPIResourcesCall(final ApiCallback _callback) throws ApiE Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -730,7 +746,7 @@ public okhttp3.Call getAPIResourcesAsync(final ApiCallback _c * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) @@ -802,7 +818,7 @@ public okhttp3.Call listEventForAllNamespacesCall(Boolean allowWatchBookmarks, S Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch", "application/cbor-seq" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -836,7 +852,7 @@ private okhttp3.Call listEventForAllNamespacesValidateBeforeCall(Boolean allowWa * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) @@ -864,7 +880,7 @@ public EventsV1EventList listEventForAllNamespaces(Boolean allowWatchBookmarks, * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) @@ -893,7 +909,7 @@ public ApiResponse listEventForAllNamespacesWithHttpInfo(Bool * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) @@ -919,7 +935,7 @@ public okhttp3.Call listEventForAllNamespacesAsync(Boolean allowWatchBookmarks, /** * Build call for listNamespacedEvent * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param allowWatchBookmarks 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. (optional) * @param _continue 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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) @@ -997,7 +1013,7 @@ public okhttp3.Call listNamespacedEventCall(String namespace, String pretty, Boo Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch", "application/cbor-seq" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -1032,7 +1048,7 @@ private okhttp3.Call listNamespacedEventValidateBeforeCall(String namespace, Str * * list or watch objects of kind Event * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param allowWatchBookmarks 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. (optional) * @param _continue 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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) @@ -1061,7 +1077,7 @@ public EventsV1EventList listNamespacedEvent(String namespace, String pretty, Bo * * list or watch objects of kind Event * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param allowWatchBookmarks 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. (optional) * @param _continue 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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) @@ -1091,7 +1107,7 @@ public ApiResponse listNamespacedEventWithHttpInfo(String nam * (asynchronously) * list or watch objects of kind Event * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param allowWatchBookmarks 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. (optional) * @param _continue 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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) @@ -1124,7 +1140,7 @@ public okhttp3.Call listNamespacedEventAsync(String namespace, String pretty, Bo * @param name name of the Event (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -1174,7 +1190,7 @@ public okhttp3.Call patchNamespacedEventCall(String name, String namespace, V1Pa Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -1221,7 +1237,7 @@ private okhttp3.Call patchNamespacedEventValidateBeforeCall(String name, String * @param name name of the Event (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -1247,7 +1263,7 @@ public EventsV1Event patchNamespacedEvent(String name, String namespace, V1Patch * @param name name of the Event (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -1274,7 +1290,7 @@ public ApiResponse patchNamespacedEventWithHttpInfo(String name, * @param name name of the Event (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -1301,7 +1317,7 @@ public okhttp3.Call patchNamespacedEventAsync(String name, String namespace, V1P * Build call for readNamespacedEvent * @param name name of the Event (required) * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -1330,7 +1346,7 @@ public okhttp3.Call readNamespacedEventCall(String name, String namespace, Strin Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -1371,7 +1387,7 @@ private okhttp3.Call readNamespacedEventValidateBeforeCall(String name, String n * read the specified Event * @param name name of the Event (required) * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return EventsV1Event * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -1391,7 +1407,7 @@ public EventsV1Event readNamespacedEvent(String name, String namespace, String p * read the specified Event * @param name name of the Event (required) * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return ApiResponse<EventsV1Event> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -1412,7 +1428,7 @@ public ApiResponse readNamespacedEventWithHttpInfo(String name, S * read the specified Event * @param name name of the Event (required) * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object @@ -1435,7 +1451,7 @@ public okhttp3.Call readNamespacedEventAsync(String name, String namespace, Stri * @param name name of the Event (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -1480,7 +1496,7 @@ public okhttp3.Call replaceNamespacedEventCall(String name, String namespace, Ev Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -1527,7 +1543,7 @@ private okhttp3.Call replaceNamespacedEventValidateBeforeCall(String name, Strin * @param name name of the Event (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -1552,7 +1568,7 @@ public EventsV1Event replaceNamespacedEvent(String name, String namespace, Event * @param name name of the Event (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -1578,7 +1594,7 @@ public ApiResponse replaceNamespacedEventWithHttpInfo(String name * @param name name of the Event (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) 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 5ae1c3b49d..74b5cc7862 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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 new file mode 100644 index 0000000000..05088123af --- /dev/null +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/FlowcontrolApiserverV1Api.java @@ -0,0 +1,3450 @@ +/* +Copyright 2025 The Kubernetes Authors. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at +http://www.apache.org/licenses/LICENSE-2.0 +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ +package io.kubernetes.client.openapi.apis; + +import io.kubernetes.client.openapi.ApiCallback; +import io.kubernetes.client.openapi.ApiClient; +import io.kubernetes.client.openapi.ApiException; +import io.kubernetes.client.openapi.ApiResponse; +import io.kubernetes.client.openapi.Configuration; +import io.kubernetes.client.openapi.Pair; +import io.kubernetes.client.openapi.ProgressRequestBody; +import io.kubernetes.client.openapi.ProgressResponseBody; + +import com.google.gson.reflect.TypeToken; + +import java.io.IOException; + + +import io.kubernetes.client.openapi.models.V1APIResourceList; +import io.kubernetes.client.openapi.models.V1DeleteOptions; +import io.kubernetes.client.openapi.models.V1FlowSchema; +import io.kubernetes.client.openapi.models.V1FlowSchemaList; +import io.kubernetes.client.custom.V1Patch; +import io.kubernetes.client.openapi.models.V1PriorityLevelConfiguration; +import io.kubernetes.client.openapi.models.V1PriorityLevelConfigurationList; +import io.kubernetes.client.openapi.models.V1Status; + +import java.lang.reflect.Type; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +public class FlowcontrolApiserverV1Api { + private ApiClient localVarApiClient; + + public FlowcontrolApiserverV1Api() { + this(Configuration.getDefaultApiClient()); + } + + public FlowcontrolApiserverV1Api(ApiClient apiClient) { + this.localVarApiClient = apiClient; + } + + public ApiClient getApiClient() { + return localVarApiClient; + } + + public void setApiClient(ApiClient apiClient) { + this.localVarApiClient = apiClient; + } + + /** + * Build call for createFlowSchema + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
+ */ + public okhttp3.Call createFlowSchemaCall(V1FlowSchema body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + Object localVarPostBody = body; + + // create path and map variables + String localVarPath = "/apis/flowcontrol.apiserver.k8s.io/v1/flowschemas"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } + + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + + if (fieldValidation != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + final String[] localVarAccepts = { + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call createFlowSchemaValidateBeforeCall(V1FlowSchema body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'body' is set + if (body == null) { + throw new ApiException("Missing the required parameter 'body' when calling createFlowSchema(Async)"); + } + + + okhttp3.Call localVarCall = createFlowSchemaCall(body, pretty, dryRun, fieldManager, fieldValidation, _callback); + return localVarCall; + + } + + /** + * + * create a FlowSchema + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @return V1FlowSchema + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
+ */ + public V1FlowSchema createFlowSchema(V1FlowSchema body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { + ApiResponse localVarResp = createFlowSchemaWithHttpInfo(body, pretty, dryRun, fieldManager, fieldValidation); + return localVarResp.getData(); + } + + /** + * + * create a FlowSchema + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @return ApiResponse<V1FlowSchema> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
+ */ + public ApiResponse createFlowSchemaWithHttpInfo(V1FlowSchema body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { + okhttp3.Call localVarCall = createFlowSchemaValidateBeforeCall(body, pretty, dryRun, fieldManager, fieldValidation, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * create a FlowSchema + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
+ */ + public okhttp3.Call createFlowSchemaAsync(V1FlowSchema body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = createFlowSchemaValidateBeforeCall(body, pretty, dryRun, fieldManager, fieldValidation, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for createPriorityLevelConfiguration + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
+ */ + public okhttp3.Call createPriorityLevelConfigurationCall(V1PriorityLevelConfiguration body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + Object localVarPostBody = body; + + // create path and map variables + String localVarPath = "/apis/flowcontrol.apiserver.k8s.io/v1/prioritylevelconfigurations"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } + + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + + if (fieldValidation != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + final String[] localVarAccepts = { + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call createPriorityLevelConfigurationValidateBeforeCall(V1PriorityLevelConfiguration body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'body' is set + if (body == null) { + throw new ApiException("Missing the required parameter 'body' when calling createPriorityLevelConfiguration(Async)"); + } + + + okhttp3.Call localVarCall = createPriorityLevelConfigurationCall(body, pretty, dryRun, fieldManager, fieldValidation, _callback); + return localVarCall; + + } + + /** + * + * create a PriorityLevelConfiguration + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @return V1PriorityLevelConfiguration + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
+ */ + public V1PriorityLevelConfiguration createPriorityLevelConfiguration(V1PriorityLevelConfiguration body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { + ApiResponse localVarResp = createPriorityLevelConfigurationWithHttpInfo(body, pretty, dryRun, fieldManager, fieldValidation); + return localVarResp.getData(); + } + + /** + * + * create a PriorityLevelConfiguration + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @return ApiResponse<V1PriorityLevelConfiguration> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
+ */ + public ApiResponse createPriorityLevelConfigurationWithHttpInfo(V1PriorityLevelConfiguration body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { + okhttp3.Call localVarCall = createPriorityLevelConfigurationValidateBeforeCall(body, pretty, dryRun, fieldManager, fieldValidation, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * create a PriorityLevelConfiguration + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
+ */ + public okhttp3.Call createPriorityLevelConfigurationAsync(V1PriorityLevelConfiguration body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = createPriorityLevelConfigurationValidateBeforeCall(body, pretty, dryRun, fieldManager, fieldValidation, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for deleteCollectionFlowSchema + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param _continue 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) + * @param dryRun 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) + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param orphanDependents 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) + * @param propagationPolicy 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. (optional) + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + * @param body (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call deleteCollectionFlowSchemaCall(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + Object localVarPostBody = body; + + // create path and map variables + String localVarPath = "/apis/flowcontrol.apiserver.k8s.io/v1/flowschemas"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + + if (_continue != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); + } + + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } + + if (fieldSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); + } + + if (gracePeriodSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); + } + + if (ignoreStoreReadErrorWithClusterBreakingPotential != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("ignoreStoreReadErrorWithClusterBreakingPotential", ignoreStoreReadErrorWithClusterBreakingPotential)); + } + + if (labelSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); + } + + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + } + + if (orphanDependents != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("orphanDependents", orphanDependents)); + } + + if (propagationPolicy != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("propagationPolicy", propagationPolicy)); + } + + if (resourceVersion != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); + } + + if (resourceVersionMatch != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersionMatch", resourceVersionMatch)); + } + + if (sendInitialEvents != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("sendInitialEvents", sendInitialEvents)); + } + + if (timeoutSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + final String[] localVarAccepts = { + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call deleteCollectionFlowSchemaValidateBeforeCall(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + + + okhttp3.Call localVarCall = deleteCollectionFlowSchemaCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + return localVarCall; + + } + + /** + * + * delete collection of FlowSchema + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param _continue 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) + * @param dryRun 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) + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param orphanDependents 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) + * @param propagationPolicy 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. (optional) + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + * @param body (optional) + * @return V1Status + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public V1Status deleteCollectionFlowSchema(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body) throws ApiException { + ApiResponse localVarResp = deleteCollectionFlowSchemaWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); + return localVarResp.getData(); + } + + /** + * + * delete collection of FlowSchema + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param _continue 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) + * @param dryRun 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) + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param orphanDependents 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) + * @param propagationPolicy 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. (optional) + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + * @param body (optional) + * @return ApiResponse<V1Status> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public ApiResponse deleteCollectionFlowSchemaWithHttpInfo(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteCollectionFlowSchemaValidateBeforeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * delete collection of FlowSchema + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param _continue 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) + * @param dryRun 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) + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param orphanDependents 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) + * @param propagationPolicy 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. (optional) + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + * @param body (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call deleteCollectionFlowSchemaAsync(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = deleteCollectionFlowSchemaValidateBeforeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for deleteCollectionPriorityLevelConfiguration + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param _continue 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) + * @param dryRun 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) + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param orphanDependents 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) + * @param propagationPolicy 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. (optional) + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + * @param body (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call deleteCollectionPriorityLevelConfigurationCall(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + Object localVarPostBody = body; + + // create path and map variables + String localVarPath = "/apis/flowcontrol.apiserver.k8s.io/v1/prioritylevelconfigurations"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + + if (_continue != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); + } + + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } + + if (fieldSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); + } + + if (gracePeriodSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); + } + + if (ignoreStoreReadErrorWithClusterBreakingPotential != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("ignoreStoreReadErrorWithClusterBreakingPotential", ignoreStoreReadErrorWithClusterBreakingPotential)); + } + + if (labelSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); + } + + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + } + + if (orphanDependents != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("orphanDependents", orphanDependents)); + } + + if (propagationPolicy != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("propagationPolicy", propagationPolicy)); + } + + if (resourceVersion != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); + } + + if (resourceVersionMatch != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersionMatch", resourceVersionMatch)); + } + + if (sendInitialEvents != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("sendInitialEvents", sendInitialEvents)); + } + + if (timeoutSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + final String[] localVarAccepts = { + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call deleteCollectionPriorityLevelConfigurationValidateBeforeCall(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + + + okhttp3.Call localVarCall = deleteCollectionPriorityLevelConfigurationCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + return localVarCall; + + } + + /** + * + * delete collection of PriorityLevelConfiguration + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param _continue 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) + * @param dryRun 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) + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param orphanDependents 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) + * @param propagationPolicy 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. (optional) + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + * @param body (optional) + * @return V1Status + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public V1Status deleteCollectionPriorityLevelConfiguration(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body) throws ApiException { + ApiResponse localVarResp = deleteCollectionPriorityLevelConfigurationWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); + return localVarResp.getData(); + } + + /** + * + * delete collection of PriorityLevelConfiguration + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param _continue 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) + * @param dryRun 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) + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param orphanDependents 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) + * @param propagationPolicy 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. (optional) + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + * @param body (optional) + * @return ApiResponse<V1Status> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public ApiResponse deleteCollectionPriorityLevelConfigurationWithHttpInfo(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteCollectionPriorityLevelConfigurationValidateBeforeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * delete collection of PriorityLevelConfiguration + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param _continue 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) + * @param dryRun 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) + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param orphanDependents 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) + * @param propagationPolicy 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. (optional) + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + * @param body (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call deleteCollectionPriorityLevelConfigurationAsync(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = deleteCollectionPriorityLevelConfigurationValidateBeforeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for deleteFlowSchema + * @param name name of the FlowSchema (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) + * @param orphanDependents 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) + * @param propagationPolicy 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. (optional) + * @param body (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
+ */ + public okhttp3.Call deleteFlowSchemaCall(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + Object localVarPostBody = body; + + // create path and map variables + String localVarPath = "/apis/flowcontrol.apiserver.k8s.io/v1/flowschemas/{name}" + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } + + if (gracePeriodSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); + } + + if (ignoreStoreReadErrorWithClusterBreakingPotential != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("ignoreStoreReadErrorWithClusterBreakingPotential", ignoreStoreReadErrorWithClusterBreakingPotential)); + } + + if (orphanDependents != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("orphanDependents", orphanDependents)); + } + + if (propagationPolicy != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("propagationPolicy", propagationPolicy)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + final String[] localVarAccepts = { + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call deleteFlowSchemaValidateBeforeCall(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'name' is set + if (name == null) { + throw new ApiException("Missing the required parameter 'name' when calling deleteFlowSchema(Async)"); + } + + + okhttp3.Call localVarCall = deleteFlowSchemaCall(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); + return localVarCall; + + } + + /** + * + * delete a FlowSchema + * @param name name of the FlowSchema (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) + * @param orphanDependents 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) + * @param propagationPolicy 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. (optional) + * @param body (optional) + * @return V1Status + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
+ */ + public V1Status deleteFlowSchema(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { + ApiResponse localVarResp = deleteFlowSchemaWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body); + return localVarResp.getData(); + } + + /** + * + * delete a FlowSchema + * @param name name of the FlowSchema (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) + * @param orphanDependents 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) + * @param propagationPolicy 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. (optional) + * @param body (optional) + * @return ApiResponse<V1Status> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
+ */ + public ApiResponse deleteFlowSchemaWithHttpInfo(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteFlowSchemaValidateBeforeCall(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * delete a FlowSchema + * @param name name of the FlowSchema (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) + * @param orphanDependents 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) + * @param propagationPolicy 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. (optional) + * @param body (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
+ */ + public okhttp3.Call deleteFlowSchemaAsync(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = deleteFlowSchemaValidateBeforeCall(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for deletePriorityLevelConfiguration + * @param name name of the PriorityLevelConfiguration (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) + * @param orphanDependents 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) + * @param propagationPolicy 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. (optional) + * @param body (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
+ */ + public okhttp3.Call deletePriorityLevelConfigurationCall(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + Object localVarPostBody = body; + + // create path and map variables + String localVarPath = "/apis/flowcontrol.apiserver.k8s.io/v1/prioritylevelconfigurations/{name}" + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } + + if (gracePeriodSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); + } + + if (ignoreStoreReadErrorWithClusterBreakingPotential != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("ignoreStoreReadErrorWithClusterBreakingPotential", ignoreStoreReadErrorWithClusterBreakingPotential)); + } + + if (orphanDependents != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("orphanDependents", orphanDependents)); + } + + if (propagationPolicy != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("propagationPolicy", propagationPolicy)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + final String[] localVarAccepts = { + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call deletePriorityLevelConfigurationValidateBeforeCall(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'name' is set + if (name == null) { + throw new ApiException("Missing the required parameter 'name' when calling deletePriorityLevelConfiguration(Async)"); + } + + + okhttp3.Call localVarCall = deletePriorityLevelConfigurationCall(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); + return localVarCall; + + } + + /** + * + * delete a PriorityLevelConfiguration + * @param name name of the PriorityLevelConfiguration (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) + * @param orphanDependents 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) + * @param propagationPolicy 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. (optional) + * @param body (optional) + * @return V1Status + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
+ */ + public V1Status deletePriorityLevelConfiguration(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { + ApiResponse localVarResp = deletePriorityLevelConfigurationWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body); + return localVarResp.getData(); + } + + /** + * + * delete a PriorityLevelConfiguration + * @param name name of the PriorityLevelConfiguration (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) + * @param orphanDependents 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) + * @param propagationPolicy 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. (optional) + * @param body (optional) + * @return ApiResponse<V1Status> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
+ */ + public ApiResponse deletePriorityLevelConfigurationWithHttpInfo(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deletePriorityLevelConfigurationValidateBeforeCall(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * delete a PriorityLevelConfiguration + * @param name name of the PriorityLevelConfiguration (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) + * @param orphanDependents 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) + * @param propagationPolicy 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. (optional) + * @param body (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
+ */ + public okhttp3.Call deletePriorityLevelConfigurationAsync(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = deletePriorityLevelConfigurationValidateBeforeCall(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for getAPIResources + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call getAPIResourcesCall(final ApiCallback _callback) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/apis/flowcontrol.apiserver.k8s.io/v1/"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + final String[] localVarAccepts = { + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call getAPIResourcesValidateBeforeCall(final ApiCallback _callback) throws ApiException { + + + okhttp3.Call localVarCall = getAPIResourcesCall(_callback); + return localVarCall; + + } + + /** + * + * get available resources + * @return V1APIResourceList + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public V1APIResourceList getAPIResources() throws ApiException { + ApiResponse localVarResp = getAPIResourcesWithHttpInfo(); + return localVarResp.getData(); + } + + /** + * + * get available resources + * @return ApiResponse<V1APIResourceList> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public ApiResponse getAPIResourcesWithHttpInfo() throws ApiException { + okhttp3.Call localVarCall = getAPIResourcesValidateBeforeCall(null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * get available resources + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call getAPIResourcesAsync(final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = getAPIResourcesValidateBeforeCall(_callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for listFlowSchema + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param allowWatchBookmarks 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. (optional) + * @param _continue 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) + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call listFlowSchemaCall(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/apis/flowcontrol.apiserver.k8s.io/v1/flowschemas"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + + if (allowWatchBookmarks != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("allowWatchBookmarks", allowWatchBookmarks)); + } + + if (_continue != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); + } + + if (fieldSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); + } + + if (labelSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); + } + + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + } + + if (resourceVersion != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); + } + + if (resourceVersionMatch != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersionMatch", resourceVersionMatch)); + } + + if (sendInitialEvents != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("sendInitialEvents", sendInitialEvents)); + } + + if (timeoutSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); + } + + if (watch != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + final String[] localVarAccepts = { + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch", "application/cbor-seq" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call listFlowSchemaValidateBeforeCall(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + + + okhttp3.Call localVarCall = listFlowSchemaCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + return localVarCall; + + } + + /** + * + * list or watch objects of kind FlowSchema + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param allowWatchBookmarks 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. (optional) + * @param _continue 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) + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + * @return V1FlowSchemaList + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public V1FlowSchemaList listFlowSchema(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch) throws ApiException { + ApiResponse localVarResp = listFlowSchemaWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + return localVarResp.getData(); + } + + /** + * + * list or watch objects of kind FlowSchema + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param allowWatchBookmarks 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. (optional) + * @param _continue 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) + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + * @return ApiResponse<V1FlowSchemaList> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public ApiResponse listFlowSchemaWithHttpInfo(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch) throws ApiException { + okhttp3.Call localVarCall = listFlowSchemaValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * list or watch objects of kind FlowSchema + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param allowWatchBookmarks 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. (optional) + * @param _continue 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) + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call listFlowSchemaAsync(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = listFlowSchemaValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for listPriorityLevelConfiguration + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param allowWatchBookmarks 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. (optional) + * @param _continue 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) + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call listPriorityLevelConfigurationCall(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/apis/flowcontrol.apiserver.k8s.io/v1/prioritylevelconfigurations"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + + if (allowWatchBookmarks != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("allowWatchBookmarks", allowWatchBookmarks)); + } + + if (_continue != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); + } + + if (fieldSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); + } + + if (labelSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); + } + + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + } + + if (resourceVersion != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); + } + + if (resourceVersionMatch != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersionMatch", resourceVersionMatch)); + } + + if (sendInitialEvents != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("sendInitialEvents", sendInitialEvents)); + } + + if (timeoutSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); + } + + if (watch != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + final String[] localVarAccepts = { + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch", "application/cbor-seq" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call listPriorityLevelConfigurationValidateBeforeCall(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + + + okhttp3.Call localVarCall = listPriorityLevelConfigurationCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + return localVarCall; + + } + + /** + * + * list or watch objects of kind PriorityLevelConfiguration + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param allowWatchBookmarks 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. (optional) + * @param _continue 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) + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + * @return V1PriorityLevelConfigurationList + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public V1PriorityLevelConfigurationList listPriorityLevelConfiguration(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch) throws ApiException { + ApiResponse localVarResp = listPriorityLevelConfigurationWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + return localVarResp.getData(); + } + + /** + * + * list or watch objects of kind PriorityLevelConfiguration + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param allowWatchBookmarks 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. (optional) + * @param _continue 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) + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + * @return ApiResponse<V1PriorityLevelConfigurationList> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public ApiResponse listPriorityLevelConfigurationWithHttpInfo(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch) throws ApiException { + okhttp3.Call localVarCall = listPriorityLevelConfigurationValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * list or watch objects of kind PriorityLevelConfiguration + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param allowWatchBookmarks 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. (optional) + * @param _continue 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) + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call listPriorityLevelConfigurationAsync(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = listPriorityLevelConfigurationValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for patchFlowSchema + * @param name name of the FlowSchema (required) + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public okhttp3.Call patchFlowSchemaCall(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + Object localVarPostBody = body; + + // create path and map variables + String localVarPath = "/apis/flowcontrol.apiserver.k8s.io/v1/flowschemas/{name}" + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } + + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + + if (fieldValidation != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); + } + + if (force != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("force", force)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + final String[] localVarAccepts = { + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call patchFlowSchemaValidateBeforeCall(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'name' is set + if (name == null) { + throw new ApiException("Missing the required parameter 'name' when calling patchFlowSchema(Async)"); + } + + // verify the required parameter 'body' is set + if (body == null) { + throw new ApiException("Missing the required parameter 'body' when calling patchFlowSchema(Async)"); + } + + + okhttp3.Call localVarCall = patchFlowSchemaCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); + return localVarCall; + + } + + /** + * + * partially update the specified FlowSchema + * @param name name of the FlowSchema (required) + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) + * @return V1FlowSchema + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public V1FlowSchema patchFlowSchema(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force) throws ApiException { + ApiResponse localVarResp = patchFlowSchemaWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force); + return localVarResp.getData(); + } + + /** + * + * partially update the specified FlowSchema + * @param name name of the FlowSchema (required) + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) + * @return ApiResponse<V1FlowSchema> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public ApiResponse patchFlowSchemaWithHttpInfo(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force) throws ApiException { + okhttp3.Call localVarCall = patchFlowSchemaValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * partially update the specified FlowSchema + * @param name name of the FlowSchema (required) + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public okhttp3.Call patchFlowSchemaAsync(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = patchFlowSchemaValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for patchFlowSchemaStatus + * @param name name of the FlowSchema (required) + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public okhttp3.Call patchFlowSchemaStatusCall(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + Object localVarPostBody = body; + + // create path and map variables + String localVarPath = "/apis/flowcontrol.apiserver.k8s.io/v1/flowschemas/{name}/status" + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } + + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + + if (fieldValidation != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); + } + + if (force != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("force", force)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + final String[] localVarAccepts = { + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call patchFlowSchemaStatusValidateBeforeCall(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'name' is set + if (name == null) { + throw new ApiException("Missing the required parameter 'name' when calling patchFlowSchemaStatus(Async)"); + } + + // verify the required parameter 'body' is set + if (body == null) { + throw new ApiException("Missing the required parameter 'body' when calling patchFlowSchemaStatus(Async)"); + } + + + okhttp3.Call localVarCall = patchFlowSchemaStatusCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); + return localVarCall; + + } + + /** + * + * partially update status of the specified FlowSchema + * @param name name of the FlowSchema (required) + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) + * @return V1FlowSchema + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public V1FlowSchema patchFlowSchemaStatus(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force) throws ApiException { + ApiResponse localVarResp = patchFlowSchemaStatusWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force); + return localVarResp.getData(); + } + + /** + * + * partially update status of the specified FlowSchema + * @param name name of the FlowSchema (required) + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) + * @return ApiResponse<V1FlowSchema> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public ApiResponse patchFlowSchemaStatusWithHttpInfo(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force) throws ApiException { + okhttp3.Call localVarCall = patchFlowSchemaStatusValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * partially update status of the specified FlowSchema + * @param name name of the FlowSchema (required) + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public okhttp3.Call patchFlowSchemaStatusAsync(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = patchFlowSchemaStatusValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for patchPriorityLevelConfiguration + * @param name name of the PriorityLevelConfiguration (required) + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public okhttp3.Call patchPriorityLevelConfigurationCall(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + Object localVarPostBody = body; + + // create path and map variables + String localVarPath = "/apis/flowcontrol.apiserver.k8s.io/v1/prioritylevelconfigurations/{name}" + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } + + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + + if (fieldValidation != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); + } + + if (force != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("force", force)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + final String[] localVarAccepts = { + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call patchPriorityLevelConfigurationValidateBeforeCall(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'name' is set + if (name == null) { + throw new ApiException("Missing the required parameter 'name' when calling patchPriorityLevelConfiguration(Async)"); + } + + // verify the required parameter 'body' is set + if (body == null) { + throw new ApiException("Missing the required parameter 'body' when calling patchPriorityLevelConfiguration(Async)"); + } + + + okhttp3.Call localVarCall = patchPriorityLevelConfigurationCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); + return localVarCall; + + } + + /** + * + * partially update the specified PriorityLevelConfiguration + * @param name name of the PriorityLevelConfiguration (required) + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) + * @return V1PriorityLevelConfiguration + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public V1PriorityLevelConfiguration patchPriorityLevelConfiguration(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force) throws ApiException { + ApiResponse localVarResp = patchPriorityLevelConfigurationWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force); + return localVarResp.getData(); + } + + /** + * + * partially update the specified PriorityLevelConfiguration + * @param name name of the PriorityLevelConfiguration (required) + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) + * @return ApiResponse<V1PriorityLevelConfiguration> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public ApiResponse patchPriorityLevelConfigurationWithHttpInfo(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force) throws ApiException { + okhttp3.Call localVarCall = patchPriorityLevelConfigurationValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * partially update the specified PriorityLevelConfiguration + * @param name name of the PriorityLevelConfiguration (required) + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public okhttp3.Call patchPriorityLevelConfigurationAsync(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = patchPriorityLevelConfigurationValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for patchPriorityLevelConfigurationStatus + * @param name name of the PriorityLevelConfiguration (required) + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public okhttp3.Call patchPriorityLevelConfigurationStatusCall(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + Object localVarPostBody = body; + + // create path and map variables + String localVarPath = "/apis/flowcontrol.apiserver.k8s.io/v1/prioritylevelconfigurations/{name}/status" + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } + + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + + if (fieldValidation != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); + } + + if (force != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("force", force)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + final String[] localVarAccepts = { + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call patchPriorityLevelConfigurationStatusValidateBeforeCall(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'name' is set + if (name == null) { + throw new ApiException("Missing the required parameter 'name' when calling patchPriorityLevelConfigurationStatus(Async)"); + } + + // verify the required parameter 'body' is set + if (body == null) { + throw new ApiException("Missing the required parameter 'body' when calling patchPriorityLevelConfigurationStatus(Async)"); + } + + + okhttp3.Call localVarCall = patchPriorityLevelConfigurationStatusCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); + return localVarCall; + + } + + /** + * + * partially update status of the specified PriorityLevelConfiguration + * @param name name of the PriorityLevelConfiguration (required) + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) + * @return V1PriorityLevelConfiguration + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public V1PriorityLevelConfiguration patchPriorityLevelConfigurationStatus(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force) throws ApiException { + ApiResponse localVarResp = patchPriorityLevelConfigurationStatusWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force); + return localVarResp.getData(); + } + + /** + * + * partially update status of the specified PriorityLevelConfiguration + * @param name name of the PriorityLevelConfiguration (required) + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) + * @return ApiResponse<V1PriorityLevelConfiguration> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public ApiResponse patchPriorityLevelConfigurationStatusWithHttpInfo(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force) throws ApiException { + okhttp3.Call localVarCall = patchPriorityLevelConfigurationStatusValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * partially update status of the specified PriorityLevelConfiguration + * @param name name of the PriorityLevelConfiguration (required) + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public okhttp3.Call patchPriorityLevelConfigurationStatusAsync(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = patchPriorityLevelConfigurationStatusValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for readFlowSchema + * @param name name of the FlowSchema (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call readFlowSchemaCall(String name, String pretty, final ApiCallback _callback) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/apis/flowcontrol.apiserver.k8s.io/v1/flowschemas/{name}" + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + final String[] localVarAccepts = { + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call readFlowSchemaValidateBeforeCall(String name, String pretty, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'name' is set + if (name == null) { + throw new ApiException("Missing the required parameter 'name' when calling readFlowSchema(Async)"); + } + + + okhttp3.Call localVarCall = readFlowSchemaCall(name, pretty, _callback); + return localVarCall; + + } + + /** + * + * read the specified FlowSchema + * @param name name of the FlowSchema (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @return V1FlowSchema + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public V1FlowSchema readFlowSchema(String name, String pretty) throws ApiException { + ApiResponse localVarResp = readFlowSchemaWithHttpInfo(name, pretty); + return localVarResp.getData(); + } + + /** + * + * read the specified FlowSchema + * @param name name of the FlowSchema (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @return ApiResponse<V1FlowSchema> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public ApiResponse readFlowSchemaWithHttpInfo(String name, String pretty) throws ApiException { + okhttp3.Call localVarCall = readFlowSchemaValidateBeforeCall(name, pretty, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * read the specified FlowSchema + * @param name name of the FlowSchema (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call readFlowSchemaAsync(String name, String pretty, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = readFlowSchemaValidateBeforeCall(name, pretty, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for readFlowSchemaStatus + * @param name name of the FlowSchema (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call readFlowSchemaStatusCall(String name, String pretty, final ApiCallback _callback) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/apis/flowcontrol.apiserver.k8s.io/v1/flowschemas/{name}/status" + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + final String[] localVarAccepts = { + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call readFlowSchemaStatusValidateBeforeCall(String name, String pretty, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'name' is set + if (name == null) { + throw new ApiException("Missing the required parameter 'name' when calling readFlowSchemaStatus(Async)"); + } + + + okhttp3.Call localVarCall = readFlowSchemaStatusCall(name, pretty, _callback); + return localVarCall; + + } + + /** + * + * read status of the specified FlowSchema + * @param name name of the FlowSchema (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @return V1FlowSchema + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public V1FlowSchema readFlowSchemaStatus(String name, String pretty) throws ApiException { + ApiResponse localVarResp = readFlowSchemaStatusWithHttpInfo(name, pretty); + return localVarResp.getData(); + } + + /** + * + * read status of the specified FlowSchema + * @param name name of the FlowSchema (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @return ApiResponse<V1FlowSchema> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public ApiResponse readFlowSchemaStatusWithHttpInfo(String name, String pretty) throws ApiException { + okhttp3.Call localVarCall = readFlowSchemaStatusValidateBeforeCall(name, pretty, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * read status of the specified FlowSchema + * @param name name of the FlowSchema (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call readFlowSchemaStatusAsync(String name, String pretty, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = readFlowSchemaStatusValidateBeforeCall(name, pretty, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for readPriorityLevelConfiguration + * @param name name of the PriorityLevelConfiguration (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call readPriorityLevelConfigurationCall(String name, String pretty, final ApiCallback _callback) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/apis/flowcontrol.apiserver.k8s.io/v1/prioritylevelconfigurations/{name}" + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + final String[] localVarAccepts = { + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call readPriorityLevelConfigurationValidateBeforeCall(String name, String pretty, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'name' is set + if (name == null) { + throw new ApiException("Missing the required parameter 'name' when calling readPriorityLevelConfiguration(Async)"); + } + + + okhttp3.Call localVarCall = readPriorityLevelConfigurationCall(name, pretty, _callback); + return localVarCall; + + } + + /** + * + * read the specified PriorityLevelConfiguration + * @param name name of the PriorityLevelConfiguration (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @return V1PriorityLevelConfiguration + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public V1PriorityLevelConfiguration readPriorityLevelConfiguration(String name, String pretty) throws ApiException { + ApiResponse localVarResp = readPriorityLevelConfigurationWithHttpInfo(name, pretty); + return localVarResp.getData(); + } + + /** + * + * read the specified PriorityLevelConfiguration + * @param name name of the PriorityLevelConfiguration (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @return ApiResponse<V1PriorityLevelConfiguration> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public ApiResponse readPriorityLevelConfigurationWithHttpInfo(String name, String pretty) throws ApiException { + okhttp3.Call localVarCall = readPriorityLevelConfigurationValidateBeforeCall(name, pretty, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * read the specified PriorityLevelConfiguration + * @param name name of the PriorityLevelConfiguration (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call readPriorityLevelConfigurationAsync(String name, String pretty, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = readPriorityLevelConfigurationValidateBeforeCall(name, pretty, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for readPriorityLevelConfigurationStatus + * @param name name of the PriorityLevelConfiguration (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call readPriorityLevelConfigurationStatusCall(String name, String pretty, final ApiCallback _callback) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/apis/flowcontrol.apiserver.k8s.io/v1/prioritylevelconfigurations/{name}/status" + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + final String[] localVarAccepts = { + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call readPriorityLevelConfigurationStatusValidateBeforeCall(String name, String pretty, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'name' is set + if (name == null) { + throw new ApiException("Missing the required parameter 'name' when calling readPriorityLevelConfigurationStatus(Async)"); + } + + + okhttp3.Call localVarCall = readPriorityLevelConfigurationStatusCall(name, pretty, _callback); + return localVarCall; + + } + + /** + * + * read status of the specified PriorityLevelConfiguration + * @param name name of the PriorityLevelConfiguration (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @return V1PriorityLevelConfiguration + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public V1PriorityLevelConfiguration readPriorityLevelConfigurationStatus(String name, String pretty) throws ApiException { + ApiResponse localVarResp = readPriorityLevelConfigurationStatusWithHttpInfo(name, pretty); + return localVarResp.getData(); + } + + /** + * + * read status of the specified PriorityLevelConfiguration + * @param name name of the PriorityLevelConfiguration (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @return ApiResponse<V1PriorityLevelConfiguration> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public ApiResponse readPriorityLevelConfigurationStatusWithHttpInfo(String name, String pretty) throws ApiException { + okhttp3.Call localVarCall = readPriorityLevelConfigurationStatusValidateBeforeCall(name, pretty, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * read status of the specified PriorityLevelConfiguration + * @param name name of the PriorityLevelConfiguration (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call readPriorityLevelConfigurationStatusAsync(String name, String pretty, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = readPriorityLevelConfigurationStatusValidateBeforeCall(name, pretty, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for replaceFlowSchema + * @param name name of the FlowSchema (required) + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public okhttp3.Call replaceFlowSchemaCall(String name, V1FlowSchema body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + Object localVarPostBody = body; + + // create path and map variables + String localVarPath = "/apis/flowcontrol.apiserver.k8s.io/v1/flowschemas/{name}" + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } + + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + + if (fieldValidation != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + final String[] localVarAccepts = { + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call replaceFlowSchemaValidateBeforeCall(String name, V1FlowSchema body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'name' is set + if (name == null) { + throw new ApiException("Missing the required parameter 'name' when calling replaceFlowSchema(Async)"); + } + + // verify the required parameter 'body' is set + if (body == null) { + throw new ApiException("Missing the required parameter 'body' when calling replaceFlowSchema(Async)"); + } + + + okhttp3.Call localVarCall = replaceFlowSchemaCall(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); + return localVarCall; + + } + + /** + * + * replace the specified FlowSchema + * @param name name of the FlowSchema (required) + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @return V1FlowSchema + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public V1FlowSchema replaceFlowSchema(String name, V1FlowSchema body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { + ApiResponse localVarResp = replaceFlowSchemaWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation); + return localVarResp.getData(); + } + + /** + * + * replace the specified FlowSchema + * @param name name of the FlowSchema (required) + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @return ApiResponse<V1FlowSchema> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public ApiResponse replaceFlowSchemaWithHttpInfo(String name, V1FlowSchema body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { + okhttp3.Call localVarCall = replaceFlowSchemaValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * replace the specified FlowSchema + * @param name name of the FlowSchema (required) + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public okhttp3.Call replaceFlowSchemaAsync(String name, V1FlowSchema body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = replaceFlowSchemaValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for replaceFlowSchemaStatus + * @param name name of the FlowSchema (required) + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public okhttp3.Call replaceFlowSchemaStatusCall(String name, V1FlowSchema body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + Object localVarPostBody = body; + + // create path and map variables + String localVarPath = "/apis/flowcontrol.apiserver.k8s.io/v1/flowschemas/{name}/status" + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } + + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + + if (fieldValidation != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + final String[] localVarAccepts = { + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call replaceFlowSchemaStatusValidateBeforeCall(String name, V1FlowSchema body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'name' is set + if (name == null) { + throw new ApiException("Missing the required parameter 'name' when calling replaceFlowSchemaStatus(Async)"); + } + + // verify the required parameter 'body' is set + if (body == null) { + throw new ApiException("Missing the required parameter 'body' when calling replaceFlowSchemaStatus(Async)"); + } + + + okhttp3.Call localVarCall = replaceFlowSchemaStatusCall(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); + return localVarCall; + + } + + /** + * + * replace status of the specified FlowSchema + * @param name name of the FlowSchema (required) + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @return V1FlowSchema + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public V1FlowSchema replaceFlowSchemaStatus(String name, V1FlowSchema body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { + ApiResponse localVarResp = replaceFlowSchemaStatusWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation); + return localVarResp.getData(); + } + + /** + * + * replace status of the specified FlowSchema + * @param name name of the FlowSchema (required) + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @return ApiResponse<V1FlowSchema> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public ApiResponse replaceFlowSchemaStatusWithHttpInfo(String name, V1FlowSchema body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { + okhttp3.Call localVarCall = replaceFlowSchemaStatusValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * replace status of the specified FlowSchema + * @param name name of the FlowSchema (required) + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public okhttp3.Call replaceFlowSchemaStatusAsync(String name, V1FlowSchema body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = replaceFlowSchemaStatusValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for replacePriorityLevelConfiguration + * @param name name of the PriorityLevelConfiguration (required) + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public okhttp3.Call replacePriorityLevelConfigurationCall(String name, V1PriorityLevelConfiguration body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + Object localVarPostBody = body; + + // create path and map variables + String localVarPath = "/apis/flowcontrol.apiserver.k8s.io/v1/prioritylevelconfigurations/{name}" + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } + + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + + if (fieldValidation != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + final String[] localVarAccepts = { + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call replacePriorityLevelConfigurationValidateBeforeCall(String name, V1PriorityLevelConfiguration body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'name' is set + if (name == null) { + throw new ApiException("Missing the required parameter 'name' when calling replacePriorityLevelConfiguration(Async)"); + } + + // verify the required parameter 'body' is set + if (body == null) { + throw new ApiException("Missing the required parameter 'body' when calling replacePriorityLevelConfiguration(Async)"); + } + + + okhttp3.Call localVarCall = replacePriorityLevelConfigurationCall(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); + return localVarCall; + + } + + /** + * + * replace the specified PriorityLevelConfiguration + * @param name name of the PriorityLevelConfiguration (required) + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @return V1PriorityLevelConfiguration + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public V1PriorityLevelConfiguration replacePriorityLevelConfiguration(String name, V1PriorityLevelConfiguration body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { + ApiResponse localVarResp = replacePriorityLevelConfigurationWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation); + return localVarResp.getData(); + } + + /** + * + * replace the specified PriorityLevelConfiguration + * @param name name of the PriorityLevelConfiguration (required) + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @return ApiResponse<V1PriorityLevelConfiguration> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public ApiResponse replacePriorityLevelConfigurationWithHttpInfo(String name, V1PriorityLevelConfiguration body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { + okhttp3.Call localVarCall = replacePriorityLevelConfigurationValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * replace the specified PriorityLevelConfiguration + * @param name name of the PriorityLevelConfiguration (required) + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public okhttp3.Call replacePriorityLevelConfigurationAsync(String name, V1PriorityLevelConfiguration body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = replacePriorityLevelConfigurationValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for replacePriorityLevelConfigurationStatus + * @param name name of the PriorityLevelConfiguration (required) + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public okhttp3.Call replacePriorityLevelConfigurationStatusCall(String name, V1PriorityLevelConfiguration body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + Object localVarPostBody = body; + + // create path and map variables + String localVarPath = "/apis/flowcontrol.apiserver.k8s.io/v1/prioritylevelconfigurations/{name}/status" + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } + + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + + if (fieldValidation != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + final String[] localVarAccepts = { + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call replacePriorityLevelConfigurationStatusValidateBeforeCall(String name, V1PriorityLevelConfiguration body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'name' is set + if (name == null) { + throw new ApiException("Missing the required parameter 'name' when calling replacePriorityLevelConfigurationStatus(Async)"); + } + + // verify the required parameter 'body' is set + if (body == null) { + throw new ApiException("Missing the required parameter 'body' when calling replacePriorityLevelConfigurationStatus(Async)"); + } + + + okhttp3.Call localVarCall = replacePriorityLevelConfigurationStatusCall(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); + return localVarCall; + + } + + /** + * + * replace status of the specified PriorityLevelConfiguration + * @param name name of the PriorityLevelConfiguration (required) + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @return V1PriorityLevelConfiguration + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public V1PriorityLevelConfiguration replacePriorityLevelConfigurationStatus(String name, V1PriorityLevelConfiguration body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { + ApiResponse localVarResp = replacePriorityLevelConfigurationStatusWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation); + return localVarResp.getData(); + } + + /** + * + * replace status of the specified PriorityLevelConfiguration + * @param name name of the PriorityLevelConfiguration (required) + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @return ApiResponse<V1PriorityLevelConfiguration> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public ApiResponse replacePriorityLevelConfigurationStatusWithHttpInfo(String name, V1PriorityLevelConfiguration body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { + okhttp3.Call localVarCall = replacePriorityLevelConfigurationStatusValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * replace status of the specified PriorityLevelConfiguration + * @param name name of the PriorityLevelConfiguration (required) + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public okhttp3.Call replacePriorityLevelConfigurationStatusAsync(String name, V1PriorityLevelConfiguration body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = replacePriorityLevelConfigurationStatusValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } +} diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/FlowcontrolApiserverV1beta2Api.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/FlowcontrolApiserverV1beta2Api.java deleted file mode 100644 index 4ab7e710a9..0000000000 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/FlowcontrolApiserverV1beta2Api.java +++ /dev/null @@ -1,3418 +0,0 @@ -/* -Copyright 2023 The Kubernetes Authors. -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at -http://www.apache.org/licenses/LICENSE-2.0 -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ -package io.kubernetes.client.openapi.apis; - -import io.kubernetes.client.openapi.ApiCallback; -import io.kubernetes.client.openapi.ApiClient; -import io.kubernetes.client.openapi.ApiException; -import io.kubernetes.client.openapi.ApiResponse; -import io.kubernetes.client.openapi.Configuration; -import io.kubernetes.client.openapi.Pair; -import io.kubernetes.client.openapi.ProgressRequestBody; -import io.kubernetes.client.openapi.ProgressResponseBody; - -import com.google.gson.reflect.TypeToken; - -import java.io.IOException; - - -import io.kubernetes.client.openapi.models.V1APIResourceList; -import io.kubernetes.client.openapi.models.V1DeleteOptions; -import io.kubernetes.client.custom.V1Patch; -import io.kubernetes.client.openapi.models.V1Status; -import io.kubernetes.client.openapi.models.V1beta2FlowSchema; -import io.kubernetes.client.openapi.models.V1beta2FlowSchemaList; -import io.kubernetes.client.openapi.models.V1beta2PriorityLevelConfiguration; -import io.kubernetes.client.openapi.models.V1beta2PriorityLevelConfigurationList; - -import java.lang.reflect.Type; -import java.util.ArrayList; -import java.util.HashMap; -import java.util.List; -import java.util.Map; - -public class FlowcontrolApiserverV1beta2Api { - private ApiClient localVarApiClient; - - public FlowcontrolApiserverV1beta2Api() { - this(Configuration.getDefaultApiClient()); - } - - public FlowcontrolApiserverV1beta2Api(ApiClient apiClient) { - this.localVarApiClient = apiClient; - } - - public ApiClient getApiClient() { - return localVarApiClient; - } - - public void setApiClient(ApiClient apiClient) { - this.localVarApiClient = apiClient; - } - - /** - * Build call for createFlowSchema - * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) - * @param dryRun 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) - * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - - - -
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
- */ - public okhttp3.Call createFlowSchemaCall(V1beta2FlowSchema body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { - Object localVarPostBody = body; - - // create path and map variables - String localVarPath = "/apis/flowcontrol.apiserver.k8s.io/v1beta2/flowschemas"; - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); - } - - if (dryRun != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); - } - - if (fieldManager != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); - } - - if (fieldValidation != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); - } - - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - "application/json" - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); - - String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call createFlowSchemaValidateBeforeCall(V1beta2FlowSchema body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { - - // verify the required parameter 'body' is set - if (body == null) { - throw new ApiException("Missing the required parameter 'body' when calling createFlowSchema(Async)"); - } - - - okhttp3.Call localVarCall = createFlowSchemaCall(body, pretty, dryRun, fieldManager, fieldValidation, _callback); - return localVarCall; - - } - - /** - * - * create a FlowSchema - * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) - * @param dryRun 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) - * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - * @return V1beta2FlowSchema - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - - -
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
- */ - public V1beta2FlowSchema createFlowSchema(V1beta2FlowSchema body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { - ApiResponse localVarResp = createFlowSchemaWithHttpInfo(body, pretty, dryRun, fieldManager, fieldValidation); - return localVarResp.getData(); - } - - /** - * - * create a FlowSchema - * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) - * @param dryRun 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) - * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - * @return ApiResponse<V1beta2FlowSchema> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - - -
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
- */ - public ApiResponse createFlowSchemaWithHttpInfo(V1beta2FlowSchema body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { - okhttp3.Call localVarCall = createFlowSchemaValidateBeforeCall(body, pretty, dryRun, fieldManager, fieldValidation, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * (asynchronously) - * create a FlowSchema - * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) - * @param dryRun 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) - * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - - - - -
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
- */ - public okhttp3.Call createFlowSchemaAsync(V1beta2FlowSchema body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = createFlowSchemaValidateBeforeCall(body, pretty, dryRun, fieldManager, fieldValidation, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - /** - * Build call for createPriorityLevelConfiguration - * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) - * @param dryRun 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) - * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - - - -
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
- */ - public okhttp3.Call createPriorityLevelConfigurationCall(V1beta2PriorityLevelConfiguration body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { - Object localVarPostBody = body; - - // create path and map variables - String localVarPath = "/apis/flowcontrol.apiserver.k8s.io/v1beta2/prioritylevelconfigurations"; - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); - } - - if (dryRun != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); - } - - if (fieldManager != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); - } - - if (fieldValidation != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); - } - - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - "application/json" - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); - - String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call createPriorityLevelConfigurationValidateBeforeCall(V1beta2PriorityLevelConfiguration body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { - - // verify the required parameter 'body' is set - if (body == null) { - throw new ApiException("Missing the required parameter 'body' when calling createPriorityLevelConfiguration(Async)"); - } - - - okhttp3.Call localVarCall = createPriorityLevelConfigurationCall(body, pretty, dryRun, fieldManager, fieldValidation, _callback); - return localVarCall; - - } - - /** - * - * create a PriorityLevelConfiguration - * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) - * @param dryRun 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) - * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - * @return V1beta2PriorityLevelConfiguration - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - - -
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
- */ - public V1beta2PriorityLevelConfiguration createPriorityLevelConfiguration(V1beta2PriorityLevelConfiguration body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { - ApiResponse localVarResp = createPriorityLevelConfigurationWithHttpInfo(body, pretty, dryRun, fieldManager, fieldValidation); - return localVarResp.getData(); - } - - /** - * - * create a PriorityLevelConfiguration - * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) - * @param dryRun 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) - * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - * @return ApiResponse<V1beta2PriorityLevelConfiguration> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - - -
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
- */ - public ApiResponse createPriorityLevelConfigurationWithHttpInfo(V1beta2PriorityLevelConfiguration body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { - okhttp3.Call localVarCall = createPriorityLevelConfigurationValidateBeforeCall(body, pretty, dryRun, fieldManager, fieldValidation, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * (asynchronously) - * create a PriorityLevelConfiguration - * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) - * @param dryRun 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) - * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - - - - -
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
- */ - public okhttp3.Call createPriorityLevelConfigurationAsync(V1beta2PriorityLevelConfiguration body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = createPriorityLevelConfigurationValidateBeforeCall(body, pretty, dryRun, fieldManager, fieldValidation, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - /** - * Build call for deleteCollectionFlowSchema - * @param pretty If 'true', then the output is pretty printed. (optional) - * @param _continue 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) - * @param dryRun 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) - * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) - * @param gracePeriodSeconds 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. (optional) - * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) - * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) - * @param orphanDependents 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) - * @param propagationPolicy 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. (optional) - * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) - * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) - * @param body (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - -
Status Code Description Response Headers
200 OK -
401 Unauthorized -
- */ - public okhttp3.Call deleteCollectionFlowSchemaCall(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - Object localVarPostBody = body; - - // create path and map variables - String localVarPath = "/apis/flowcontrol.apiserver.k8s.io/v1beta2/flowschemas"; - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); - } - - if (_continue != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); - } - - if (dryRun != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); - } - - if (fieldSelector != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); - } - - if (gracePeriodSeconds != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); - } - - if (labelSelector != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); - } - - if (limit != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); - } - - if (orphanDependents != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("orphanDependents", orphanDependents)); - } - - if (propagationPolicy != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("propagationPolicy", propagationPolicy)); - } - - if (resourceVersion != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); - } - - if (resourceVersionMatch != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersionMatch", resourceVersionMatch)); - } - - if (sendInitialEvents != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("sendInitialEvents", sendInitialEvents)); - } - - if (timeoutSeconds != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); - } - - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - "application/json" - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); - - String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call deleteCollectionFlowSchemaValidateBeforeCall(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - - - okhttp3.Call localVarCall = deleteCollectionFlowSchemaCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); - return localVarCall; - - } - - /** - * - * delete collection of FlowSchema - * @param pretty If 'true', then the output is pretty printed. (optional) - * @param _continue 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) - * @param dryRun 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) - * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) - * @param gracePeriodSeconds 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. (optional) - * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) - * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) - * @param orphanDependents 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) - * @param propagationPolicy 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. (optional) - * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) - * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) - * @param body (optional) - * @return V1Status - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Status Code Description Response Headers
200 OK -
401 Unauthorized -
- */ - public V1Status deleteCollectionFlowSchema(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body) throws ApiException { - ApiResponse localVarResp = deleteCollectionFlowSchemaWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); - return localVarResp.getData(); - } - - /** - * - * delete collection of FlowSchema - * @param pretty If 'true', then the output is pretty printed. (optional) - * @param _continue 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) - * @param dryRun 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) - * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) - * @param gracePeriodSeconds 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. (optional) - * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) - * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) - * @param orphanDependents 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) - * @param propagationPolicy 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. (optional) - * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) - * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) - * @param body (optional) - * @return ApiResponse<V1Status> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Status Code Description Response Headers
200 OK -
401 Unauthorized -
- */ - public ApiResponse deleteCollectionFlowSchemaWithHttpInfo(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body) throws ApiException { - okhttp3.Call localVarCall = deleteCollectionFlowSchemaValidateBeforeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * (asynchronously) - * delete collection of FlowSchema - * @param pretty If 'true', then the output is pretty printed. (optional) - * @param _continue 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) - * @param dryRun 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) - * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) - * @param gracePeriodSeconds 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. (optional) - * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) - * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) - * @param orphanDependents 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) - * @param propagationPolicy 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. (optional) - * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) - * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) - * @param body (optional) - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - - -
Status Code Description Response Headers
200 OK -
401 Unauthorized -
- */ - public okhttp3.Call deleteCollectionFlowSchemaAsync(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = deleteCollectionFlowSchemaValidateBeforeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - /** - * Build call for deleteCollectionPriorityLevelConfiguration - * @param pretty If 'true', then the output is pretty printed. (optional) - * @param _continue 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) - * @param dryRun 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) - * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) - * @param gracePeriodSeconds 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. (optional) - * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) - * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) - * @param orphanDependents 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) - * @param propagationPolicy 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. (optional) - * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) - * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) - * @param body (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - -
Status Code Description Response Headers
200 OK -
401 Unauthorized -
- */ - public okhttp3.Call deleteCollectionPriorityLevelConfigurationCall(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - Object localVarPostBody = body; - - // create path and map variables - String localVarPath = "/apis/flowcontrol.apiserver.k8s.io/v1beta2/prioritylevelconfigurations"; - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); - } - - if (_continue != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); - } - - if (dryRun != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); - } - - if (fieldSelector != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); - } - - if (gracePeriodSeconds != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); - } - - if (labelSelector != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); - } - - if (limit != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); - } - - if (orphanDependents != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("orphanDependents", orphanDependents)); - } - - if (propagationPolicy != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("propagationPolicy", propagationPolicy)); - } - - if (resourceVersion != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); - } - - if (resourceVersionMatch != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersionMatch", resourceVersionMatch)); - } - - if (sendInitialEvents != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("sendInitialEvents", sendInitialEvents)); - } - - if (timeoutSeconds != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); - } - - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - "application/json" - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); - - String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call deleteCollectionPriorityLevelConfigurationValidateBeforeCall(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - - - okhttp3.Call localVarCall = deleteCollectionPriorityLevelConfigurationCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); - return localVarCall; - - } - - /** - * - * delete collection of PriorityLevelConfiguration - * @param pretty If 'true', then the output is pretty printed. (optional) - * @param _continue 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) - * @param dryRun 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) - * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) - * @param gracePeriodSeconds 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. (optional) - * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) - * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) - * @param orphanDependents 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) - * @param propagationPolicy 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. (optional) - * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) - * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) - * @param body (optional) - * @return V1Status - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Status Code Description Response Headers
200 OK -
401 Unauthorized -
- */ - public V1Status deleteCollectionPriorityLevelConfiguration(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body) throws ApiException { - ApiResponse localVarResp = deleteCollectionPriorityLevelConfigurationWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); - return localVarResp.getData(); - } - - /** - * - * delete collection of PriorityLevelConfiguration - * @param pretty If 'true', then the output is pretty printed. (optional) - * @param _continue 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) - * @param dryRun 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) - * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) - * @param gracePeriodSeconds 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. (optional) - * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) - * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) - * @param orphanDependents 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) - * @param propagationPolicy 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. (optional) - * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) - * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) - * @param body (optional) - * @return ApiResponse<V1Status> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Status Code Description Response Headers
200 OK -
401 Unauthorized -
- */ - public ApiResponse deleteCollectionPriorityLevelConfigurationWithHttpInfo(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body) throws ApiException { - okhttp3.Call localVarCall = deleteCollectionPriorityLevelConfigurationValidateBeforeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * (asynchronously) - * delete collection of PriorityLevelConfiguration - * @param pretty If 'true', then the output is pretty printed. (optional) - * @param _continue 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) - * @param dryRun 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) - * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) - * @param gracePeriodSeconds 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. (optional) - * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) - * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) - * @param orphanDependents 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) - * @param propagationPolicy 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. (optional) - * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) - * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) - * @param body (optional) - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - - -
Status Code Description Response Headers
200 OK -
401 Unauthorized -
- */ - public okhttp3.Call deleteCollectionPriorityLevelConfigurationAsync(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = deleteCollectionPriorityLevelConfigurationValidateBeforeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - /** - * Build call for deleteFlowSchema - * @param name name of the FlowSchema (required) - * @param pretty If 'true', then the output is pretty printed. (optional) - * @param dryRun 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) - * @param gracePeriodSeconds 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. (optional) - * @param orphanDependents 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) - * @param propagationPolicy 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. (optional) - * @param body (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - - -
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
- */ - public okhttp3.Call deleteFlowSchemaCall(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - Object localVarPostBody = body; - - // create path and map variables - String localVarPath = "/apis/flowcontrol.apiserver.k8s.io/v1beta2/flowschemas/{name}" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); - } - - if (dryRun != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); - } - - if (gracePeriodSeconds != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); - } - - if (orphanDependents != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("orphanDependents", orphanDependents)); - } - - if (propagationPolicy != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("propagationPolicy", propagationPolicy)); - } - - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - "application/json" - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); - - String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call deleteFlowSchemaValidateBeforeCall(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - - // verify the required parameter 'name' is set - if (name == null) { - throw new ApiException("Missing the required parameter 'name' when calling deleteFlowSchema(Async)"); - } - - - okhttp3.Call localVarCall = deleteFlowSchemaCall(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); - return localVarCall; - - } - - /** - * - * delete a FlowSchema - * @param name name of the FlowSchema (required) - * @param pretty If 'true', then the output is pretty printed. (optional) - * @param dryRun 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) - * @param gracePeriodSeconds 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. (optional) - * @param orphanDependents 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) - * @param propagationPolicy 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. (optional) - * @param body (optional) - * @return V1Status - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - -
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
- */ - public V1Status deleteFlowSchema(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { - ApiResponse localVarResp = deleteFlowSchemaWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body); - return localVarResp.getData(); - } - - /** - * - * delete a FlowSchema - * @param name name of the FlowSchema (required) - * @param pretty If 'true', then the output is pretty printed. (optional) - * @param dryRun 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) - * @param gracePeriodSeconds 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. (optional) - * @param orphanDependents 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) - * @param propagationPolicy 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. (optional) - * @param body (optional) - * @return ApiResponse<V1Status> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - -
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
- */ - public ApiResponse deleteFlowSchemaWithHttpInfo(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { - okhttp3.Call localVarCall = deleteFlowSchemaValidateBeforeCall(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * (asynchronously) - * delete a FlowSchema - * @param name name of the FlowSchema (required) - * @param pretty If 'true', then the output is pretty printed. (optional) - * @param dryRun 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) - * @param gracePeriodSeconds 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. (optional) - * @param orphanDependents 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) - * @param propagationPolicy 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. (optional) - * @param body (optional) - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - - - -
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
- */ - public okhttp3.Call deleteFlowSchemaAsync(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = deleteFlowSchemaValidateBeforeCall(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - /** - * Build call for deletePriorityLevelConfiguration - * @param name name of the PriorityLevelConfiguration (required) - * @param pretty If 'true', then the output is pretty printed. (optional) - * @param dryRun 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) - * @param gracePeriodSeconds 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. (optional) - * @param orphanDependents 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) - * @param propagationPolicy 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. (optional) - * @param body (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - - -
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
- */ - public okhttp3.Call deletePriorityLevelConfigurationCall(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - Object localVarPostBody = body; - - // create path and map variables - String localVarPath = "/apis/flowcontrol.apiserver.k8s.io/v1beta2/prioritylevelconfigurations/{name}" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); - } - - if (dryRun != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); - } - - if (gracePeriodSeconds != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); - } - - if (orphanDependents != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("orphanDependents", orphanDependents)); - } - - if (propagationPolicy != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("propagationPolicy", propagationPolicy)); - } - - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - "application/json" - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); - - String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call deletePriorityLevelConfigurationValidateBeforeCall(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - - // verify the required parameter 'name' is set - if (name == null) { - throw new ApiException("Missing the required parameter 'name' when calling deletePriorityLevelConfiguration(Async)"); - } - - - okhttp3.Call localVarCall = deletePriorityLevelConfigurationCall(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); - return localVarCall; - - } - - /** - * - * delete a PriorityLevelConfiguration - * @param name name of the PriorityLevelConfiguration (required) - * @param pretty If 'true', then the output is pretty printed. (optional) - * @param dryRun 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) - * @param gracePeriodSeconds 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. (optional) - * @param orphanDependents 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) - * @param propagationPolicy 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. (optional) - * @param body (optional) - * @return V1Status - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - -
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
- */ - public V1Status deletePriorityLevelConfiguration(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { - ApiResponse localVarResp = deletePriorityLevelConfigurationWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body); - return localVarResp.getData(); - } - - /** - * - * delete a PriorityLevelConfiguration - * @param name name of the PriorityLevelConfiguration (required) - * @param pretty If 'true', then the output is pretty printed. (optional) - * @param dryRun 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) - * @param gracePeriodSeconds 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. (optional) - * @param orphanDependents 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) - * @param propagationPolicy 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. (optional) - * @param body (optional) - * @return ApiResponse<V1Status> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - -
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
- */ - public ApiResponse deletePriorityLevelConfigurationWithHttpInfo(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { - okhttp3.Call localVarCall = deletePriorityLevelConfigurationValidateBeforeCall(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * (asynchronously) - * delete a PriorityLevelConfiguration - * @param name name of the PriorityLevelConfiguration (required) - * @param pretty If 'true', then the output is pretty printed. (optional) - * @param dryRun 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) - * @param gracePeriodSeconds 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. (optional) - * @param orphanDependents 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) - * @param propagationPolicy 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. (optional) - * @param body (optional) - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - - - -
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
- */ - public okhttp3.Call deletePriorityLevelConfigurationAsync(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = deletePriorityLevelConfigurationValidateBeforeCall(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - /** - * Build call for getAPIResources - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - -
Status Code Description Response Headers
200 OK -
401 Unauthorized -
- */ - public okhttp3.Call getAPIResourcesCall(final ApiCallback _callback) throws ApiException { - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = "/apis/flowcontrol.apiserver.k8s.io/v1beta2/"; - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); - - String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call getAPIResourcesValidateBeforeCall(final ApiCallback _callback) throws ApiException { - - - okhttp3.Call localVarCall = getAPIResourcesCall(_callback); - return localVarCall; - - } - - /** - * - * get available resources - * @return V1APIResourceList - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Status Code Description Response Headers
200 OK -
401 Unauthorized -
- */ - public V1APIResourceList getAPIResources() throws ApiException { - ApiResponse localVarResp = getAPIResourcesWithHttpInfo(); - return localVarResp.getData(); - } - - /** - * - * get available resources - * @return ApiResponse<V1APIResourceList> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Status Code Description Response Headers
200 OK -
401 Unauthorized -
- */ - public ApiResponse getAPIResourcesWithHttpInfo() throws ApiException { - okhttp3.Call localVarCall = getAPIResourcesValidateBeforeCall(null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * (asynchronously) - * get available resources - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - - -
Status Code Description Response Headers
200 OK -
401 Unauthorized -
- */ - public okhttp3.Call getAPIResourcesAsync(final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = getAPIResourcesValidateBeforeCall(_callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - /** - * Build call for listFlowSchema - * @param pretty If 'true', then the output is pretty printed. (optional) - * @param allowWatchBookmarks 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. (optional) - * @param _continue 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) - * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) - * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) - * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) - * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) - * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) - * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - -
Status Code Description Response Headers
200 OK -
401 Unauthorized -
- */ - public okhttp3.Call listFlowSchemaCall(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = "/apis/flowcontrol.apiserver.k8s.io/v1beta2/flowschemas"; - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); - } - - if (allowWatchBookmarks != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("allowWatchBookmarks", allowWatchBookmarks)); - } - - if (_continue != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); - } - - if (fieldSelector != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); - } - - if (labelSelector != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); - } - - if (limit != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); - } - - if (resourceVersion != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); - } - - if (resourceVersionMatch != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersionMatch", resourceVersionMatch)); - } - - if (sendInitialEvents != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("sendInitialEvents", sendInitialEvents)); - } - - if (timeoutSeconds != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); - } - - if (watch != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); - } - - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); - - String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call listFlowSchemaValidateBeforeCall(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { - - - okhttp3.Call localVarCall = listFlowSchemaCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); - return localVarCall; - - } - - /** - * - * list or watch objects of kind FlowSchema - * @param pretty If 'true', then the output is pretty printed. (optional) - * @param allowWatchBookmarks 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. (optional) - * @param _continue 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) - * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) - * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) - * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) - * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) - * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) - * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @return V1beta2FlowSchemaList - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Status Code Description Response Headers
200 OK -
401 Unauthorized -
- */ - public V1beta2FlowSchemaList listFlowSchema(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch) throws ApiException { - ApiResponse localVarResp = listFlowSchemaWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); - return localVarResp.getData(); - } - - /** - * - * list or watch objects of kind FlowSchema - * @param pretty If 'true', then the output is pretty printed. (optional) - * @param allowWatchBookmarks 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. (optional) - * @param _continue 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) - * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) - * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) - * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) - * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) - * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) - * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @return ApiResponse<V1beta2FlowSchemaList> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Status Code Description Response Headers
200 OK -
401 Unauthorized -
- */ - public ApiResponse listFlowSchemaWithHttpInfo(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch) throws ApiException { - okhttp3.Call localVarCall = listFlowSchemaValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * (asynchronously) - * list or watch objects of kind FlowSchema - * @param pretty If 'true', then the output is pretty printed. (optional) - * @param allowWatchBookmarks 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. (optional) - * @param _continue 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) - * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) - * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) - * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) - * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) - * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) - * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - - -
Status Code Description Response Headers
200 OK -
401 Unauthorized -
- */ - public okhttp3.Call listFlowSchemaAsync(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = listFlowSchemaValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - /** - * Build call for listPriorityLevelConfiguration - * @param pretty If 'true', then the output is pretty printed. (optional) - * @param allowWatchBookmarks 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. (optional) - * @param _continue 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) - * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) - * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) - * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) - * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) - * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) - * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - -
Status Code Description Response Headers
200 OK -
401 Unauthorized -
- */ - public okhttp3.Call listPriorityLevelConfigurationCall(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = "/apis/flowcontrol.apiserver.k8s.io/v1beta2/prioritylevelconfigurations"; - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); - } - - if (allowWatchBookmarks != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("allowWatchBookmarks", allowWatchBookmarks)); - } - - if (_continue != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); - } - - if (fieldSelector != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); - } - - if (labelSelector != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); - } - - if (limit != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); - } - - if (resourceVersion != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); - } - - if (resourceVersionMatch != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersionMatch", resourceVersionMatch)); - } - - if (sendInitialEvents != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("sendInitialEvents", sendInitialEvents)); - } - - if (timeoutSeconds != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); - } - - if (watch != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); - } - - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); - - String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call listPriorityLevelConfigurationValidateBeforeCall(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { - - - okhttp3.Call localVarCall = listPriorityLevelConfigurationCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); - return localVarCall; - - } - - /** - * - * list or watch objects of kind PriorityLevelConfiguration - * @param pretty If 'true', then the output is pretty printed. (optional) - * @param allowWatchBookmarks 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. (optional) - * @param _continue 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) - * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) - * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) - * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) - * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) - * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) - * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @return V1beta2PriorityLevelConfigurationList - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Status Code Description Response Headers
200 OK -
401 Unauthorized -
- */ - public V1beta2PriorityLevelConfigurationList listPriorityLevelConfiguration(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch) throws ApiException { - ApiResponse localVarResp = listPriorityLevelConfigurationWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); - return localVarResp.getData(); - } - - /** - * - * list or watch objects of kind PriorityLevelConfiguration - * @param pretty If 'true', then the output is pretty printed. (optional) - * @param allowWatchBookmarks 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. (optional) - * @param _continue 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) - * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) - * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) - * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) - * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) - * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) - * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @return ApiResponse<V1beta2PriorityLevelConfigurationList> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Status Code Description Response Headers
200 OK -
401 Unauthorized -
- */ - public ApiResponse listPriorityLevelConfigurationWithHttpInfo(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch) throws ApiException { - okhttp3.Call localVarCall = listPriorityLevelConfigurationValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * (asynchronously) - * list or watch objects of kind PriorityLevelConfiguration - * @param pretty If 'true', then the output is pretty printed. (optional) - * @param allowWatchBookmarks 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. (optional) - * @param _continue 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) - * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) - * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) - * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) - * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) - * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) - * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - - -
Status Code Description Response Headers
200 OK -
401 Unauthorized -
- */ - public okhttp3.Call listPriorityLevelConfigurationAsync(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = listPriorityLevelConfigurationValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - /** - * Build call for patchFlowSchema - * @param name name of the FlowSchema (required) - * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) - * @param dryRun 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) - * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) - * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - - -
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
- */ - public okhttp3.Call patchFlowSchemaCall(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { - Object localVarPostBody = body; - - // create path and map variables - String localVarPath = "/apis/flowcontrol.apiserver.k8s.io/v1beta2/flowschemas/{name}" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); - } - - if (dryRun != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); - } - - if (fieldManager != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); - } - - if (fieldValidation != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); - } - - if (force != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("force", force)); - } - - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - "application/json" - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); - - String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call patchFlowSchemaValidateBeforeCall(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { - - // verify the required parameter 'name' is set - if (name == null) { - throw new ApiException("Missing the required parameter 'name' when calling patchFlowSchema(Async)"); - } - - // verify the required parameter 'body' is set - if (body == null) { - throw new ApiException("Missing the required parameter 'body' when calling patchFlowSchema(Async)"); - } - - - okhttp3.Call localVarCall = patchFlowSchemaCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); - return localVarCall; - - } - - /** - * - * partially update the specified FlowSchema - * @param name name of the FlowSchema (required) - * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) - * @param dryRun 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) - * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) - * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) - * @return V1beta2FlowSchema - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - -
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
- */ - public V1beta2FlowSchema patchFlowSchema(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force) throws ApiException { - ApiResponse localVarResp = patchFlowSchemaWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force); - return localVarResp.getData(); - } - - /** - * - * partially update the specified FlowSchema - * @param name name of the FlowSchema (required) - * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) - * @param dryRun 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) - * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) - * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) - * @return ApiResponse<V1beta2FlowSchema> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - -
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
- */ - public ApiResponse patchFlowSchemaWithHttpInfo(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force) throws ApiException { - okhttp3.Call localVarCall = patchFlowSchemaValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * (asynchronously) - * partially update the specified FlowSchema - * @param name name of the FlowSchema (required) - * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) - * @param dryRun 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) - * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) - * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - - - -
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
- */ - public okhttp3.Call patchFlowSchemaAsync(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = patchFlowSchemaValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - /** - * Build call for patchFlowSchemaStatus - * @param name name of the FlowSchema (required) - * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) - * @param dryRun 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) - * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) - * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - - -
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
- */ - public okhttp3.Call patchFlowSchemaStatusCall(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { - Object localVarPostBody = body; - - // create path and map variables - String localVarPath = "/apis/flowcontrol.apiserver.k8s.io/v1beta2/flowschemas/{name}/status" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); - } - - if (dryRun != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); - } - - if (fieldManager != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); - } - - if (fieldValidation != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); - } - - if (force != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("force", force)); - } - - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - "application/json" - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); - - String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call patchFlowSchemaStatusValidateBeforeCall(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { - - // verify the required parameter 'name' is set - if (name == null) { - throw new ApiException("Missing the required parameter 'name' when calling patchFlowSchemaStatus(Async)"); - } - - // verify the required parameter 'body' is set - if (body == null) { - throw new ApiException("Missing the required parameter 'body' when calling patchFlowSchemaStatus(Async)"); - } - - - okhttp3.Call localVarCall = patchFlowSchemaStatusCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); - return localVarCall; - - } - - /** - * - * partially update status of the specified FlowSchema - * @param name name of the FlowSchema (required) - * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) - * @param dryRun 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) - * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) - * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) - * @return V1beta2FlowSchema - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - -
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
- */ - public V1beta2FlowSchema patchFlowSchemaStatus(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force) throws ApiException { - ApiResponse localVarResp = patchFlowSchemaStatusWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force); - return localVarResp.getData(); - } - - /** - * - * partially update status of the specified FlowSchema - * @param name name of the FlowSchema (required) - * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) - * @param dryRun 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) - * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) - * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) - * @return ApiResponse<V1beta2FlowSchema> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - -
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
- */ - public ApiResponse patchFlowSchemaStatusWithHttpInfo(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force) throws ApiException { - okhttp3.Call localVarCall = patchFlowSchemaStatusValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * (asynchronously) - * partially update status of the specified FlowSchema - * @param name name of the FlowSchema (required) - * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) - * @param dryRun 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) - * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) - * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - - - -
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
- */ - public okhttp3.Call patchFlowSchemaStatusAsync(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = patchFlowSchemaStatusValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - /** - * Build call for patchPriorityLevelConfiguration - * @param name name of the PriorityLevelConfiguration (required) - * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) - * @param dryRun 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) - * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) - * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - - -
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
- */ - public okhttp3.Call patchPriorityLevelConfigurationCall(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { - Object localVarPostBody = body; - - // create path and map variables - String localVarPath = "/apis/flowcontrol.apiserver.k8s.io/v1beta2/prioritylevelconfigurations/{name}" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); - } - - if (dryRun != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); - } - - if (fieldManager != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); - } - - if (fieldValidation != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); - } - - if (force != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("force", force)); - } - - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - "application/json" - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); - - String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call patchPriorityLevelConfigurationValidateBeforeCall(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { - - // verify the required parameter 'name' is set - if (name == null) { - throw new ApiException("Missing the required parameter 'name' when calling patchPriorityLevelConfiguration(Async)"); - } - - // verify the required parameter 'body' is set - if (body == null) { - throw new ApiException("Missing the required parameter 'body' when calling patchPriorityLevelConfiguration(Async)"); - } - - - okhttp3.Call localVarCall = patchPriorityLevelConfigurationCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); - return localVarCall; - - } - - /** - * - * partially update the specified PriorityLevelConfiguration - * @param name name of the PriorityLevelConfiguration (required) - * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) - * @param dryRun 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) - * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) - * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) - * @return V1beta2PriorityLevelConfiguration - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - -
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
- */ - public V1beta2PriorityLevelConfiguration patchPriorityLevelConfiguration(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force) throws ApiException { - ApiResponse localVarResp = patchPriorityLevelConfigurationWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force); - return localVarResp.getData(); - } - - /** - * - * partially update the specified PriorityLevelConfiguration - * @param name name of the PriorityLevelConfiguration (required) - * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) - * @param dryRun 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) - * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) - * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) - * @return ApiResponse<V1beta2PriorityLevelConfiguration> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - -
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
- */ - public ApiResponse patchPriorityLevelConfigurationWithHttpInfo(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force) throws ApiException { - okhttp3.Call localVarCall = patchPriorityLevelConfigurationValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * (asynchronously) - * partially update the specified PriorityLevelConfiguration - * @param name name of the PriorityLevelConfiguration (required) - * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) - * @param dryRun 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) - * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) - * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - - - -
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
- */ - public okhttp3.Call patchPriorityLevelConfigurationAsync(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = patchPriorityLevelConfigurationValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - /** - * Build call for patchPriorityLevelConfigurationStatus - * @param name name of the PriorityLevelConfiguration (required) - * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) - * @param dryRun 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) - * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) - * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - - -
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
- */ - public okhttp3.Call patchPriorityLevelConfigurationStatusCall(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { - Object localVarPostBody = body; - - // create path and map variables - String localVarPath = "/apis/flowcontrol.apiserver.k8s.io/v1beta2/prioritylevelconfigurations/{name}/status" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); - } - - if (dryRun != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); - } - - if (fieldManager != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); - } - - if (fieldValidation != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); - } - - if (force != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("force", force)); - } - - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - "application/json" - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); - - String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call patchPriorityLevelConfigurationStatusValidateBeforeCall(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { - - // verify the required parameter 'name' is set - if (name == null) { - throw new ApiException("Missing the required parameter 'name' when calling patchPriorityLevelConfigurationStatus(Async)"); - } - - // verify the required parameter 'body' is set - if (body == null) { - throw new ApiException("Missing the required parameter 'body' when calling patchPriorityLevelConfigurationStatus(Async)"); - } - - - okhttp3.Call localVarCall = patchPriorityLevelConfigurationStatusCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); - return localVarCall; - - } - - /** - * - * partially update status of the specified PriorityLevelConfiguration - * @param name name of the PriorityLevelConfiguration (required) - * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) - * @param dryRun 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) - * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) - * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) - * @return V1beta2PriorityLevelConfiguration - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - -
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
- */ - public V1beta2PriorityLevelConfiguration patchPriorityLevelConfigurationStatus(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force) throws ApiException { - ApiResponse localVarResp = patchPriorityLevelConfigurationStatusWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force); - return localVarResp.getData(); - } - - /** - * - * partially update status of the specified PriorityLevelConfiguration - * @param name name of the PriorityLevelConfiguration (required) - * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) - * @param dryRun 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) - * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) - * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) - * @return ApiResponse<V1beta2PriorityLevelConfiguration> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - -
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
- */ - public ApiResponse patchPriorityLevelConfigurationStatusWithHttpInfo(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force) throws ApiException { - okhttp3.Call localVarCall = patchPriorityLevelConfigurationStatusValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * (asynchronously) - * partially update status of the specified PriorityLevelConfiguration - * @param name name of the PriorityLevelConfiguration (required) - * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) - * @param dryRun 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) - * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) - * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - - - -
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
- */ - public okhttp3.Call patchPriorityLevelConfigurationStatusAsync(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = patchPriorityLevelConfigurationStatusValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - /** - * Build call for readFlowSchema - * @param name name of the FlowSchema (required) - * @param pretty If 'true', then the output is pretty printed. (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - -
Status Code Description Response Headers
200 OK -
401 Unauthorized -
- */ - public okhttp3.Call readFlowSchemaCall(String name, String pretty, final ApiCallback _callback) throws ApiException { - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = "/apis/flowcontrol.apiserver.k8s.io/v1beta2/flowschemas/{name}" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); - } - - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); - - String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call readFlowSchemaValidateBeforeCall(String name, String pretty, final ApiCallback _callback) throws ApiException { - - // verify the required parameter 'name' is set - if (name == null) { - throw new ApiException("Missing the required parameter 'name' when calling readFlowSchema(Async)"); - } - - - okhttp3.Call localVarCall = readFlowSchemaCall(name, pretty, _callback); - return localVarCall; - - } - - /** - * - * read the specified FlowSchema - * @param name name of the FlowSchema (required) - * @param pretty If 'true', then the output is pretty printed. (optional) - * @return V1beta2FlowSchema - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Status Code Description Response Headers
200 OK -
401 Unauthorized -
- */ - public V1beta2FlowSchema readFlowSchema(String name, String pretty) throws ApiException { - ApiResponse localVarResp = readFlowSchemaWithHttpInfo(name, pretty); - return localVarResp.getData(); - } - - /** - * - * read the specified FlowSchema - * @param name name of the FlowSchema (required) - * @param pretty If 'true', then the output is pretty printed. (optional) - * @return ApiResponse<V1beta2FlowSchema> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Status Code Description Response Headers
200 OK -
401 Unauthorized -
- */ - public ApiResponse readFlowSchemaWithHttpInfo(String name, String pretty) throws ApiException { - okhttp3.Call localVarCall = readFlowSchemaValidateBeforeCall(name, pretty, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * (asynchronously) - * read the specified FlowSchema - * @param name name of the FlowSchema (required) - * @param pretty If 'true', then the output is pretty printed. (optional) - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - - -
Status Code Description Response Headers
200 OK -
401 Unauthorized -
- */ - public okhttp3.Call readFlowSchemaAsync(String name, String pretty, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = readFlowSchemaValidateBeforeCall(name, pretty, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - /** - * Build call for readFlowSchemaStatus - * @param name name of the FlowSchema (required) - * @param pretty If 'true', then the output is pretty printed. (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - -
Status Code Description Response Headers
200 OK -
401 Unauthorized -
- */ - public okhttp3.Call readFlowSchemaStatusCall(String name, String pretty, final ApiCallback _callback) throws ApiException { - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = "/apis/flowcontrol.apiserver.k8s.io/v1beta2/flowschemas/{name}/status" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); - } - - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); - - String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call readFlowSchemaStatusValidateBeforeCall(String name, String pretty, final ApiCallback _callback) throws ApiException { - - // verify the required parameter 'name' is set - if (name == null) { - throw new ApiException("Missing the required parameter 'name' when calling readFlowSchemaStatus(Async)"); - } - - - okhttp3.Call localVarCall = readFlowSchemaStatusCall(name, pretty, _callback); - return localVarCall; - - } - - /** - * - * read status of the specified FlowSchema - * @param name name of the FlowSchema (required) - * @param pretty If 'true', then the output is pretty printed. (optional) - * @return V1beta2FlowSchema - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Status Code Description Response Headers
200 OK -
401 Unauthorized -
- */ - public V1beta2FlowSchema readFlowSchemaStatus(String name, String pretty) throws ApiException { - ApiResponse localVarResp = readFlowSchemaStatusWithHttpInfo(name, pretty); - return localVarResp.getData(); - } - - /** - * - * read status of the specified FlowSchema - * @param name name of the FlowSchema (required) - * @param pretty If 'true', then the output is pretty printed. (optional) - * @return ApiResponse<V1beta2FlowSchema> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Status Code Description Response Headers
200 OK -
401 Unauthorized -
- */ - public ApiResponse readFlowSchemaStatusWithHttpInfo(String name, String pretty) throws ApiException { - okhttp3.Call localVarCall = readFlowSchemaStatusValidateBeforeCall(name, pretty, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * (asynchronously) - * read status of the specified FlowSchema - * @param name name of the FlowSchema (required) - * @param pretty If 'true', then the output is pretty printed. (optional) - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - - -
Status Code Description Response Headers
200 OK -
401 Unauthorized -
- */ - public okhttp3.Call readFlowSchemaStatusAsync(String name, String pretty, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = readFlowSchemaStatusValidateBeforeCall(name, pretty, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - /** - * Build call for readPriorityLevelConfiguration - * @param name name of the PriorityLevelConfiguration (required) - * @param pretty If 'true', then the output is pretty printed. (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - -
Status Code Description Response Headers
200 OK -
401 Unauthorized -
- */ - public okhttp3.Call readPriorityLevelConfigurationCall(String name, String pretty, final ApiCallback _callback) throws ApiException { - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = "/apis/flowcontrol.apiserver.k8s.io/v1beta2/prioritylevelconfigurations/{name}" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); - } - - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); - - String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call readPriorityLevelConfigurationValidateBeforeCall(String name, String pretty, final ApiCallback _callback) throws ApiException { - - // verify the required parameter 'name' is set - if (name == null) { - throw new ApiException("Missing the required parameter 'name' when calling readPriorityLevelConfiguration(Async)"); - } - - - okhttp3.Call localVarCall = readPriorityLevelConfigurationCall(name, pretty, _callback); - return localVarCall; - - } - - /** - * - * read the specified PriorityLevelConfiguration - * @param name name of the PriorityLevelConfiguration (required) - * @param pretty If 'true', then the output is pretty printed. (optional) - * @return V1beta2PriorityLevelConfiguration - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Status Code Description Response Headers
200 OK -
401 Unauthorized -
- */ - public V1beta2PriorityLevelConfiguration readPriorityLevelConfiguration(String name, String pretty) throws ApiException { - ApiResponse localVarResp = readPriorityLevelConfigurationWithHttpInfo(name, pretty); - return localVarResp.getData(); - } - - /** - * - * read the specified PriorityLevelConfiguration - * @param name name of the PriorityLevelConfiguration (required) - * @param pretty If 'true', then the output is pretty printed. (optional) - * @return ApiResponse<V1beta2PriorityLevelConfiguration> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Status Code Description Response Headers
200 OK -
401 Unauthorized -
- */ - public ApiResponse readPriorityLevelConfigurationWithHttpInfo(String name, String pretty) throws ApiException { - okhttp3.Call localVarCall = readPriorityLevelConfigurationValidateBeforeCall(name, pretty, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * (asynchronously) - * read the specified PriorityLevelConfiguration - * @param name name of the PriorityLevelConfiguration (required) - * @param pretty If 'true', then the output is pretty printed. (optional) - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - - -
Status Code Description Response Headers
200 OK -
401 Unauthorized -
- */ - public okhttp3.Call readPriorityLevelConfigurationAsync(String name, String pretty, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = readPriorityLevelConfigurationValidateBeforeCall(name, pretty, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - /** - * Build call for readPriorityLevelConfigurationStatus - * @param name name of the PriorityLevelConfiguration (required) - * @param pretty If 'true', then the output is pretty printed. (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - -
Status Code Description Response Headers
200 OK -
401 Unauthorized -
- */ - public okhttp3.Call readPriorityLevelConfigurationStatusCall(String name, String pretty, final ApiCallback _callback) throws ApiException { - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = "/apis/flowcontrol.apiserver.k8s.io/v1beta2/prioritylevelconfigurations/{name}/status" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); - } - - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); - - String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call readPriorityLevelConfigurationStatusValidateBeforeCall(String name, String pretty, final ApiCallback _callback) throws ApiException { - - // verify the required parameter 'name' is set - if (name == null) { - throw new ApiException("Missing the required parameter 'name' when calling readPriorityLevelConfigurationStatus(Async)"); - } - - - okhttp3.Call localVarCall = readPriorityLevelConfigurationStatusCall(name, pretty, _callback); - return localVarCall; - - } - - /** - * - * read status of the specified PriorityLevelConfiguration - * @param name name of the PriorityLevelConfiguration (required) - * @param pretty If 'true', then the output is pretty printed. (optional) - * @return V1beta2PriorityLevelConfiguration - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Status Code Description Response Headers
200 OK -
401 Unauthorized -
- */ - public V1beta2PriorityLevelConfiguration readPriorityLevelConfigurationStatus(String name, String pretty) throws ApiException { - ApiResponse localVarResp = readPriorityLevelConfigurationStatusWithHttpInfo(name, pretty); - return localVarResp.getData(); - } - - /** - * - * read status of the specified PriorityLevelConfiguration - * @param name name of the PriorityLevelConfiguration (required) - * @param pretty If 'true', then the output is pretty printed. (optional) - * @return ApiResponse<V1beta2PriorityLevelConfiguration> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Status Code Description Response Headers
200 OK -
401 Unauthorized -
- */ - public ApiResponse readPriorityLevelConfigurationStatusWithHttpInfo(String name, String pretty) throws ApiException { - okhttp3.Call localVarCall = readPriorityLevelConfigurationStatusValidateBeforeCall(name, pretty, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * (asynchronously) - * read status of the specified PriorityLevelConfiguration - * @param name name of the PriorityLevelConfiguration (required) - * @param pretty If 'true', then the output is pretty printed. (optional) - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - - -
Status Code Description Response Headers
200 OK -
401 Unauthorized -
- */ - public okhttp3.Call readPriorityLevelConfigurationStatusAsync(String name, String pretty, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = readPriorityLevelConfigurationStatusValidateBeforeCall(name, pretty, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - /** - * Build call for replaceFlowSchema - * @param name name of the FlowSchema (required) - * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) - * @param dryRun 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) - * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - - -
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
- */ - public okhttp3.Call replaceFlowSchemaCall(String name, V1beta2FlowSchema body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { - Object localVarPostBody = body; - - // create path and map variables - String localVarPath = "/apis/flowcontrol.apiserver.k8s.io/v1beta2/flowschemas/{name}" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); - } - - if (dryRun != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); - } - - if (fieldManager != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); - } - - if (fieldValidation != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); - } - - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - "application/json" - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); - - String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call replaceFlowSchemaValidateBeforeCall(String name, V1beta2FlowSchema body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { - - // verify the required parameter 'name' is set - if (name == null) { - throw new ApiException("Missing the required parameter 'name' when calling replaceFlowSchema(Async)"); - } - - // verify the required parameter 'body' is set - if (body == null) { - throw new ApiException("Missing the required parameter 'body' when calling replaceFlowSchema(Async)"); - } - - - okhttp3.Call localVarCall = replaceFlowSchemaCall(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); - return localVarCall; - - } - - /** - * - * replace the specified FlowSchema - * @param name name of the FlowSchema (required) - * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) - * @param dryRun 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) - * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - * @return V1beta2FlowSchema - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - -
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
- */ - public V1beta2FlowSchema replaceFlowSchema(String name, V1beta2FlowSchema body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { - ApiResponse localVarResp = replaceFlowSchemaWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation); - return localVarResp.getData(); - } - - /** - * - * replace the specified FlowSchema - * @param name name of the FlowSchema (required) - * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) - * @param dryRun 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) - * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - * @return ApiResponse<V1beta2FlowSchema> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - -
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
- */ - public ApiResponse replaceFlowSchemaWithHttpInfo(String name, V1beta2FlowSchema body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { - okhttp3.Call localVarCall = replaceFlowSchemaValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * (asynchronously) - * replace the specified FlowSchema - * @param name name of the FlowSchema (required) - * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) - * @param dryRun 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) - * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - - - -
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
- */ - public okhttp3.Call replaceFlowSchemaAsync(String name, V1beta2FlowSchema body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = replaceFlowSchemaValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - /** - * Build call for replaceFlowSchemaStatus - * @param name name of the FlowSchema (required) - * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) - * @param dryRun 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) - * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - - -
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
- */ - public okhttp3.Call replaceFlowSchemaStatusCall(String name, V1beta2FlowSchema body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { - Object localVarPostBody = body; - - // create path and map variables - String localVarPath = "/apis/flowcontrol.apiserver.k8s.io/v1beta2/flowschemas/{name}/status" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); - } - - if (dryRun != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); - } - - if (fieldManager != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); - } - - if (fieldValidation != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); - } - - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - "application/json" - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); - - String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call replaceFlowSchemaStatusValidateBeforeCall(String name, V1beta2FlowSchema body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { - - // verify the required parameter 'name' is set - if (name == null) { - throw new ApiException("Missing the required parameter 'name' when calling replaceFlowSchemaStatus(Async)"); - } - - // verify the required parameter 'body' is set - if (body == null) { - throw new ApiException("Missing the required parameter 'body' when calling replaceFlowSchemaStatus(Async)"); - } - - - okhttp3.Call localVarCall = replaceFlowSchemaStatusCall(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); - return localVarCall; - - } - - /** - * - * replace status of the specified FlowSchema - * @param name name of the FlowSchema (required) - * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) - * @param dryRun 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) - * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - * @return V1beta2FlowSchema - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - -
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
- */ - public V1beta2FlowSchema replaceFlowSchemaStatus(String name, V1beta2FlowSchema body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { - ApiResponse localVarResp = replaceFlowSchemaStatusWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation); - return localVarResp.getData(); - } - - /** - * - * replace status of the specified FlowSchema - * @param name name of the FlowSchema (required) - * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) - * @param dryRun 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) - * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - * @return ApiResponse<V1beta2FlowSchema> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - -
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
- */ - public ApiResponse replaceFlowSchemaStatusWithHttpInfo(String name, V1beta2FlowSchema body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { - okhttp3.Call localVarCall = replaceFlowSchemaStatusValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * (asynchronously) - * replace status of the specified FlowSchema - * @param name name of the FlowSchema (required) - * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) - * @param dryRun 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) - * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - - - -
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
- */ - public okhttp3.Call replaceFlowSchemaStatusAsync(String name, V1beta2FlowSchema body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = replaceFlowSchemaStatusValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - /** - * Build call for replacePriorityLevelConfiguration - * @param name name of the PriorityLevelConfiguration (required) - * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) - * @param dryRun 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) - * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - - -
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
- */ - public okhttp3.Call replacePriorityLevelConfigurationCall(String name, V1beta2PriorityLevelConfiguration body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { - Object localVarPostBody = body; - - // create path and map variables - String localVarPath = "/apis/flowcontrol.apiserver.k8s.io/v1beta2/prioritylevelconfigurations/{name}" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); - } - - if (dryRun != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); - } - - if (fieldManager != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); - } - - if (fieldValidation != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); - } - - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - "application/json" - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); - - String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call replacePriorityLevelConfigurationValidateBeforeCall(String name, V1beta2PriorityLevelConfiguration body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { - - // verify the required parameter 'name' is set - if (name == null) { - throw new ApiException("Missing the required parameter 'name' when calling replacePriorityLevelConfiguration(Async)"); - } - - // verify the required parameter 'body' is set - if (body == null) { - throw new ApiException("Missing the required parameter 'body' when calling replacePriorityLevelConfiguration(Async)"); - } - - - okhttp3.Call localVarCall = replacePriorityLevelConfigurationCall(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); - return localVarCall; - - } - - /** - * - * replace the specified PriorityLevelConfiguration - * @param name name of the PriorityLevelConfiguration (required) - * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) - * @param dryRun 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) - * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - * @return V1beta2PriorityLevelConfiguration - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - -
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
- */ - public V1beta2PriorityLevelConfiguration replacePriorityLevelConfiguration(String name, V1beta2PriorityLevelConfiguration body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { - ApiResponse localVarResp = replacePriorityLevelConfigurationWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation); - return localVarResp.getData(); - } - - /** - * - * replace the specified PriorityLevelConfiguration - * @param name name of the PriorityLevelConfiguration (required) - * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) - * @param dryRun 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) - * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - * @return ApiResponse<V1beta2PriorityLevelConfiguration> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - -
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
- */ - public ApiResponse replacePriorityLevelConfigurationWithHttpInfo(String name, V1beta2PriorityLevelConfiguration body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { - okhttp3.Call localVarCall = replacePriorityLevelConfigurationValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * (asynchronously) - * replace the specified PriorityLevelConfiguration - * @param name name of the PriorityLevelConfiguration (required) - * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) - * @param dryRun 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) - * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - - - -
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
- */ - public okhttp3.Call replacePriorityLevelConfigurationAsync(String name, V1beta2PriorityLevelConfiguration body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = replacePriorityLevelConfigurationValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - /** - * Build call for replacePriorityLevelConfigurationStatus - * @param name name of the PriorityLevelConfiguration (required) - * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) - * @param dryRun 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) - * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - - -
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
- */ - public okhttp3.Call replacePriorityLevelConfigurationStatusCall(String name, V1beta2PriorityLevelConfiguration body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { - Object localVarPostBody = body; - - // create path and map variables - String localVarPath = "/apis/flowcontrol.apiserver.k8s.io/v1beta2/prioritylevelconfigurations/{name}/status" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); - } - - if (dryRun != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); - } - - if (fieldManager != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); - } - - if (fieldValidation != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); - } - - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - "application/json" - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); - - String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call replacePriorityLevelConfigurationStatusValidateBeforeCall(String name, V1beta2PriorityLevelConfiguration body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { - - // verify the required parameter 'name' is set - if (name == null) { - throw new ApiException("Missing the required parameter 'name' when calling replacePriorityLevelConfigurationStatus(Async)"); - } - - // verify the required parameter 'body' is set - if (body == null) { - throw new ApiException("Missing the required parameter 'body' when calling replacePriorityLevelConfigurationStatus(Async)"); - } - - - okhttp3.Call localVarCall = replacePriorityLevelConfigurationStatusCall(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); - return localVarCall; - - } - - /** - * - * replace status of the specified PriorityLevelConfiguration - * @param name name of the PriorityLevelConfiguration (required) - * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) - * @param dryRun 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) - * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - * @return V1beta2PriorityLevelConfiguration - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - -
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
- */ - public V1beta2PriorityLevelConfiguration replacePriorityLevelConfigurationStatus(String name, V1beta2PriorityLevelConfiguration body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { - ApiResponse localVarResp = replacePriorityLevelConfigurationStatusWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation); - return localVarResp.getData(); - } - - /** - * - * replace status of the specified PriorityLevelConfiguration - * @param name name of the PriorityLevelConfiguration (required) - * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) - * @param dryRun 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) - * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - * @return ApiResponse<V1beta2PriorityLevelConfiguration> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - -
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
- */ - public ApiResponse replacePriorityLevelConfigurationStatusWithHttpInfo(String name, V1beta2PriorityLevelConfiguration body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { - okhttp3.Call localVarCall = replacePriorityLevelConfigurationStatusValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * (asynchronously) - * replace status of the specified PriorityLevelConfiguration - * @param name name of the PriorityLevelConfiguration (required) - * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) - * @param dryRun 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) - * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - - - -
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
- */ - public okhttp3.Call replacePriorityLevelConfigurationStatusAsync(String name, V1beta2PriorityLevelConfiguration body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = replacePriorityLevelConfigurationStatusValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } -} 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 deleted file mode 100644 index 47cf316679..0000000000 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/FlowcontrolApiserverV1beta3Api.java +++ /dev/null @@ -1,3418 +0,0 @@ -/* -Copyright 2023 The Kubernetes Authors. -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at -http://www.apache.org/licenses/LICENSE-2.0 -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ -package io.kubernetes.client.openapi.apis; - -import io.kubernetes.client.openapi.ApiCallback; -import io.kubernetes.client.openapi.ApiClient; -import io.kubernetes.client.openapi.ApiException; -import io.kubernetes.client.openapi.ApiResponse; -import io.kubernetes.client.openapi.Configuration; -import io.kubernetes.client.openapi.Pair; -import io.kubernetes.client.openapi.ProgressRequestBody; -import io.kubernetes.client.openapi.ProgressResponseBody; - -import com.google.gson.reflect.TypeToken; - -import java.io.IOException; - - -import io.kubernetes.client.openapi.models.V1APIResourceList; -import io.kubernetes.client.openapi.models.V1DeleteOptions; -import io.kubernetes.client.custom.V1Patch; -import io.kubernetes.client.openapi.models.V1Status; -import io.kubernetes.client.openapi.models.V1beta3FlowSchema; -import io.kubernetes.client.openapi.models.V1beta3FlowSchemaList; -import io.kubernetes.client.openapi.models.V1beta3PriorityLevelConfiguration; -import io.kubernetes.client.openapi.models.V1beta3PriorityLevelConfigurationList; - -import java.lang.reflect.Type; -import java.util.ArrayList; -import java.util.HashMap; -import java.util.List; -import java.util.Map; - -public class FlowcontrolApiserverV1beta3Api { - private ApiClient localVarApiClient; - - public FlowcontrolApiserverV1beta3Api() { - this(Configuration.getDefaultApiClient()); - } - - public FlowcontrolApiserverV1beta3Api(ApiClient apiClient) { - this.localVarApiClient = apiClient; - } - - public ApiClient getApiClient() { - return localVarApiClient; - } - - public void setApiClient(ApiClient apiClient) { - this.localVarApiClient = apiClient; - } - - /** - * Build call for createFlowSchema - * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) - * @param dryRun 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) - * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - - - -
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
- */ - public okhttp3.Call createFlowSchemaCall(V1beta3FlowSchema body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { - Object localVarPostBody = body; - - // create path and map variables - String localVarPath = "/apis/flowcontrol.apiserver.k8s.io/v1beta3/flowschemas"; - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); - } - - if (dryRun != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); - } - - if (fieldManager != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); - } - - if (fieldValidation != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); - } - - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - "application/json" - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); - - String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call createFlowSchemaValidateBeforeCall(V1beta3FlowSchema body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { - - // verify the required parameter 'body' is set - if (body == null) { - throw new ApiException("Missing the required parameter 'body' when calling createFlowSchema(Async)"); - } - - - okhttp3.Call localVarCall = createFlowSchemaCall(body, pretty, dryRun, fieldManager, fieldValidation, _callback); - return localVarCall; - - } - - /** - * - * create a FlowSchema - * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) - * @param dryRun 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) - * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - * @return V1beta3FlowSchema - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - - -
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
- */ - public V1beta3FlowSchema createFlowSchema(V1beta3FlowSchema body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { - ApiResponse localVarResp = createFlowSchemaWithHttpInfo(body, pretty, dryRun, fieldManager, fieldValidation); - return localVarResp.getData(); - } - - /** - * - * create a FlowSchema - * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) - * @param dryRun 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) - * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - * @return ApiResponse<V1beta3FlowSchema> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - - -
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
- */ - public ApiResponse createFlowSchemaWithHttpInfo(V1beta3FlowSchema body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { - okhttp3.Call localVarCall = createFlowSchemaValidateBeforeCall(body, pretty, dryRun, fieldManager, fieldValidation, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * (asynchronously) - * create a FlowSchema - * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) - * @param dryRun 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) - * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - - - - -
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
- */ - public okhttp3.Call createFlowSchemaAsync(V1beta3FlowSchema body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = createFlowSchemaValidateBeforeCall(body, pretty, dryRun, fieldManager, fieldValidation, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - /** - * Build call for createPriorityLevelConfiguration - * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) - * @param dryRun 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) - * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - - - -
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
- */ - public okhttp3.Call createPriorityLevelConfigurationCall(V1beta3PriorityLevelConfiguration body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { - Object localVarPostBody = body; - - // create path and map variables - String localVarPath = "/apis/flowcontrol.apiserver.k8s.io/v1beta3/prioritylevelconfigurations"; - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); - } - - if (dryRun != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); - } - - if (fieldManager != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); - } - - if (fieldValidation != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); - } - - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - "application/json" - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); - - String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call createPriorityLevelConfigurationValidateBeforeCall(V1beta3PriorityLevelConfiguration body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { - - // verify the required parameter 'body' is set - if (body == null) { - throw new ApiException("Missing the required parameter 'body' when calling createPriorityLevelConfiguration(Async)"); - } - - - okhttp3.Call localVarCall = createPriorityLevelConfigurationCall(body, pretty, dryRun, fieldManager, fieldValidation, _callback); - return localVarCall; - - } - - /** - * - * create a PriorityLevelConfiguration - * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) - * @param dryRun 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) - * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - * @return V1beta3PriorityLevelConfiguration - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - - -
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
- */ - public V1beta3PriorityLevelConfiguration createPriorityLevelConfiguration(V1beta3PriorityLevelConfiguration body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { - ApiResponse localVarResp = createPriorityLevelConfigurationWithHttpInfo(body, pretty, dryRun, fieldManager, fieldValidation); - return localVarResp.getData(); - } - - /** - * - * create a PriorityLevelConfiguration - * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) - * @param dryRun 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) - * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - * @return ApiResponse<V1beta3PriorityLevelConfiguration> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - - -
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
- */ - public ApiResponse createPriorityLevelConfigurationWithHttpInfo(V1beta3PriorityLevelConfiguration body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { - okhttp3.Call localVarCall = createPriorityLevelConfigurationValidateBeforeCall(body, pretty, dryRun, fieldManager, fieldValidation, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * (asynchronously) - * create a PriorityLevelConfiguration - * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) - * @param dryRun 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) - * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - - - - -
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
- */ - public okhttp3.Call createPriorityLevelConfigurationAsync(V1beta3PriorityLevelConfiguration body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = createPriorityLevelConfigurationValidateBeforeCall(body, pretty, dryRun, fieldManager, fieldValidation, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - /** - * Build call for deleteCollectionFlowSchema - * @param pretty If 'true', then the output is pretty printed. (optional) - * @param _continue 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) - * @param dryRun 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) - * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) - * @param gracePeriodSeconds 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. (optional) - * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) - * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) - * @param orphanDependents 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) - * @param propagationPolicy 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. (optional) - * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) - * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) - * @param body (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - -
Status Code Description Response Headers
200 OK -
401 Unauthorized -
- */ - public okhttp3.Call deleteCollectionFlowSchemaCall(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - Object localVarPostBody = body; - - // create path and map variables - String localVarPath = "/apis/flowcontrol.apiserver.k8s.io/v1beta3/flowschemas"; - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); - } - - if (_continue != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); - } - - if (dryRun != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); - } - - if (fieldSelector != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); - } - - if (gracePeriodSeconds != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); - } - - if (labelSelector != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); - } - - if (limit != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); - } - - if (orphanDependents != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("orphanDependents", orphanDependents)); - } - - if (propagationPolicy != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("propagationPolicy", propagationPolicy)); - } - - if (resourceVersion != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); - } - - if (resourceVersionMatch != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersionMatch", resourceVersionMatch)); - } - - if (sendInitialEvents != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("sendInitialEvents", sendInitialEvents)); - } - - if (timeoutSeconds != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); - } - - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - "application/json" - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); - - String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call deleteCollectionFlowSchemaValidateBeforeCall(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - - - okhttp3.Call localVarCall = deleteCollectionFlowSchemaCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); - return localVarCall; - - } - - /** - * - * delete collection of FlowSchema - * @param pretty If 'true', then the output is pretty printed. (optional) - * @param _continue 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) - * @param dryRun 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) - * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) - * @param gracePeriodSeconds 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. (optional) - * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) - * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) - * @param orphanDependents 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) - * @param propagationPolicy 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. (optional) - * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) - * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) - * @param body (optional) - * @return V1Status - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Status Code Description Response Headers
200 OK -
401 Unauthorized -
- */ - public V1Status deleteCollectionFlowSchema(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body) throws ApiException { - ApiResponse localVarResp = deleteCollectionFlowSchemaWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); - return localVarResp.getData(); - } - - /** - * - * delete collection of FlowSchema - * @param pretty If 'true', then the output is pretty printed. (optional) - * @param _continue 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) - * @param dryRun 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) - * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) - * @param gracePeriodSeconds 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. (optional) - * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) - * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) - * @param orphanDependents 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) - * @param propagationPolicy 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. (optional) - * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) - * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) - * @param body (optional) - * @return ApiResponse<V1Status> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Status Code Description Response Headers
200 OK -
401 Unauthorized -
- */ - public ApiResponse deleteCollectionFlowSchemaWithHttpInfo(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body) throws ApiException { - okhttp3.Call localVarCall = deleteCollectionFlowSchemaValidateBeforeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * (asynchronously) - * delete collection of FlowSchema - * @param pretty If 'true', then the output is pretty printed. (optional) - * @param _continue 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) - * @param dryRun 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) - * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) - * @param gracePeriodSeconds 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. (optional) - * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) - * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) - * @param orphanDependents 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) - * @param propagationPolicy 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. (optional) - * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) - * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) - * @param body (optional) - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - - -
Status Code Description Response Headers
200 OK -
401 Unauthorized -
- */ - public okhttp3.Call deleteCollectionFlowSchemaAsync(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = deleteCollectionFlowSchemaValidateBeforeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - /** - * Build call for deleteCollectionPriorityLevelConfiguration - * @param pretty If 'true', then the output is pretty printed. (optional) - * @param _continue 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) - * @param dryRun 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) - * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) - * @param gracePeriodSeconds 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. (optional) - * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) - * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) - * @param orphanDependents 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) - * @param propagationPolicy 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. (optional) - * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) - * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) - * @param body (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - -
Status Code Description Response Headers
200 OK -
401 Unauthorized -
- */ - public okhttp3.Call deleteCollectionPriorityLevelConfigurationCall(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - Object localVarPostBody = body; - - // create path and map variables - String localVarPath = "/apis/flowcontrol.apiserver.k8s.io/v1beta3/prioritylevelconfigurations"; - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); - } - - if (_continue != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); - } - - if (dryRun != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); - } - - if (fieldSelector != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); - } - - if (gracePeriodSeconds != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); - } - - if (labelSelector != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); - } - - if (limit != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); - } - - if (orphanDependents != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("orphanDependents", orphanDependents)); - } - - if (propagationPolicy != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("propagationPolicy", propagationPolicy)); - } - - if (resourceVersion != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); - } - - if (resourceVersionMatch != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersionMatch", resourceVersionMatch)); - } - - if (sendInitialEvents != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("sendInitialEvents", sendInitialEvents)); - } - - if (timeoutSeconds != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); - } - - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - "application/json" - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); - - String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call deleteCollectionPriorityLevelConfigurationValidateBeforeCall(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - - - okhttp3.Call localVarCall = deleteCollectionPriorityLevelConfigurationCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); - return localVarCall; - - } - - /** - * - * delete collection of PriorityLevelConfiguration - * @param pretty If 'true', then the output is pretty printed. (optional) - * @param _continue 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) - * @param dryRun 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) - * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) - * @param gracePeriodSeconds 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. (optional) - * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) - * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) - * @param orphanDependents 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) - * @param propagationPolicy 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. (optional) - * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) - * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) - * @param body (optional) - * @return V1Status - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Status Code Description Response Headers
200 OK -
401 Unauthorized -
- */ - public V1Status deleteCollectionPriorityLevelConfiguration(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body) throws ApiException { - ApiResponse localVarResp = deleteCollectionPriorityLevelConfigurationWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); - return localVarResp.getData(); - } - - /** - * - * delete collection of PriorityLevelConfiguration - * @param pretty If 'true', then the output is pretty printed. (optional) - * @param _continue 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) - * @param dryRun 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) - * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) - * @param gracePeriodSeconds 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. (optional) - * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) - * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) - * @param orphanDependents 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) - * @param propagationPolicy 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. (optional) - * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) - * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) - * @param body (optional) - * @return ApiResponse<V1Status> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Status Code Description Response Headers
200 OK -
401 Unauthorized -
- */ - public ApiResponse deleteCollectionPriorityLevelConfigurationWithHttpInfo(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body) throws ApiException { - okhttp3.Call localVarCall = deleteCollectionPriorityLevelConfigurationValidateBeforeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * (asynchronously) - * delete collection of PriorityLevelConfiguration - * @param pretty If 'true', then the output is pretty printed. (optional) - * @param _continue 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) - * @param dryRun 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) - * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) - * @param gracePeriodSeconds 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. (optional) - * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) - * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) - * @param orphanDependents 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) - * @param propagationPolicy 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. (optional) - * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) - * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) - * @param body (optional) - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - - -
Status Code Description Response Headers
200 OK -
401 Unauthorized -
- */ - public okhttp3.Call deleteCollectionPriorityLevelConfigurationAsync(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = deleteCollectionPriorityLevelConfigurationValidateBeforeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - /** - * Build call for deleteFlowSchema - * @param name name of the FlowSchema (required) - * @param pretty If 'true', then the output is pretty printed. (optional) - * @param dryRun 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) - * @param gracePeriodSeconds 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. (optional) - * @param orphanDependents 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) - * @param propagationPolicy 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. (optional) - * @param body (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - - -
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
- */ - public okhttp3.Call deleteFlowSchemaCall(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - Object localVarPostBody = body; - - // create path and map variables - String localVarPath = "/apis/flowcontrol.apiserver.k8s.io/v1beta3/flowschemas/{name}" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); - } - - if (dryRun != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); - } - - if (gracePeriodSeconds != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); - } - - if (orphanDependents != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("orphanDependents", orphanDependents)); - } - - if (propagationPolicy != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("propagationPolicy", propagationPolicy)); - } - - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - "application/json" - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); - - String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call deleteFlowSchemaValidateBeforeCall(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - - // verify the required parameter 'name' is set - if (name == null) { - throw new ApiException("Missing the required parameter 'name' when calling deleteFlowSchema(Async)"); - } - - - okhttp3.Call localVarCall = deleteFlowSchemaCall(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); - return localVarCall; - - } - - /** - * - * delete a FlowSchema - * @param name name of the FlowSchema (required) - * @param pretty If 'true', then the output is pretty printed. (optional) - * @param dryRun 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) - * @param gracePeriodSeconds 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. (optional) - * @param orphanDependents 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) - * @param propagationPolicy 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. (optional) - * @param body (optional) - * @return V1Status - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - -
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
- */ - public V1Status deleteFlowSchema(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { - ApiResponse localVarResp = deleteFlowSchemaWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body); - return localVarResp.getData(); - } - - /** - * - * delete a FlowSchema - * @param name name of the FlowSchema (required) - * @param pretty If 'true', then the output is pretty printed. (optional) - * @param dryRun 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) - * @param gracePeriodSeconds 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. (optional) - * @param orphanDependents 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) - * @param propagationPolicy 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. (optional) - * @param body (optional) - * @return ApiResponse<V1Status> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - -
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
- */ - public ApiResponse deleteFlowSchemaWithHttpInfo(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { - okhttp3.Call localVarCall = deleteFlowSchemaValidateBeforeCall(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * (asynchronously) - * delete a FlowSchema - * @param name name of the FlowSchema (required) - * @param pretty If 'true', then the output is pretty printed. (optional) - * @param dryRun 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) - * @param gracePeriodSeconds 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. (optional) - * @param orphanDependents 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) - * @param propagationPolicy 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. (optional) - * @param body (optional) - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - - - -
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
- */ - public okhttp3.Call deleteFlowSchemaAsync(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = deleteFlowSchemaValidateBeforeCall(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - /** - * Build call for deletePriorityLevelConfiguration - * @param name name of the PriorityLevelConfiguration (required) - * @param pretty If 'true', then the output is pretty printed. (optional) - * @param dryRun 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) - * @param gracePeriodSeconds 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. (optional) - * @param orphanDependents 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) - * @param propagationPolicy 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. (optional) - * @param body (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - - -
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
- */ - public okhttp3.Call deletePriorityLevelConfigurationCall(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - Object localVarPostBody = body; - - // create path and map variables - String localVarPath = "/apis/flowcontrol.apiserver.k8s.io/v1beta3/prioritylevelconfigurations/{name}" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); - } - - if (dryRun != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); - } - - if (gracePeriodSeconds != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); - } - - if (orphanDependents != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("orphanDependents", orphanDependents)); - } - - if (propagationPolicy != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("propagationPolicy", propagationPolicy)); - } - - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - "application/json" - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); - - String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call deletePriorityLevelConfigurationValidateBeforeCall(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - - // verify the required parameter 'name' is set - if (name == null) { - throw new ApiException("Missing the required parameter 'name' when calling deletePriorityLevelConfiguration(Async)"); - } - - - okhttp3.Call localVarCall = deletePriorityLevelConfigurationCall(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); - return localVarCall; - - } - - /** - * - * delete a PriorityLevelConfiguration - * @param name name of the PriorityLevelConfiguration (required) - * @param pretty If 'true', then the output is pretty printed. (optional) - * @param dryRun 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) - * @param gracePeriodSeconds 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. (optional) - * @param orphanDependents 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) - * @param propagationPolicy 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. (optional) - * @param body (optional) - * @return V1Status - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - -
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
- */ - public V1Status deletePriorityLevelConfiguration(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { - ApiResponse localVarResp = deletePriorityLevelConfigurationWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body); - return localVarResp.getData(); - } - - /** - * - * delete a PriorityLevelConfiguration - * @param name name of the PriorityLevelConfiguration (required) - * @param pretty If 'true', then the output is pretty printed. (optional) - * @param dryRun 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) - * @param gracePeriodSeconds 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. (optional) - * @param orphanDependents 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) - * @param propagationPolicy 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. (optional) - * @param body (optional) - * @return ApiResponse<V1Status> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - -
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
- */ - public ApiResponse deletePriorityLevelConfigurationWithHttpInfo(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { - okhttp3.Call localVarCall = deletePriorityLevelConfigurationValidateBeforeCall(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * (asynchronously) - * delete a PriorityLevelConfiguration - * @param name name of the PriorityLevelConfiguration (required) - * @param pretty If 'true', then the output is pretty printed. (optional) - * @param dryRun 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) - * @param gracePeriodSeconds 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. (optional) - * @param orphanDependents 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) - * @param propagationPolicy 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. (optional) - * @param body (optional) - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - - - -
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
- */ - public okhttp3.Call deletePriorityLevelConfigurationAsync(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = deletePriorityLevelConfigurationValidateBeforeCall(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - /** - * Build call for getAPIResources - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - -
Status Code Description Response Headers
200 OK -
401 Unauthorized -
- */ - public okhttp3.Call getAPIResourcesCall(final ApiCallback _callback) throws ApiException { - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = "/apis/flowcontrol.apiserver.k8s.io/v1beta3/"; - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); - - String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call getAPIResourcesValidateBeforeCall(final ApiCallback _callback) throws ApiException { - - - okhttp3.Call localVarCall = getAPIResourcesCall(_callback); - return localVarCall; - - } - - /** - * - * get available resources - * @return V1APIResourceList - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Status Code Description Response Headers
200 OK -
401 Unauthorized -
- */ - public V1APIResourceList getAPIResources() throws ApiException { - ApiResponse localVarResp = getAPIResourcesWithHttpInfo(); - return localVarResp.getData(); - } - - /** - * - * get available resources - * @return ApiResponse<V1APIResourceList> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Status Code Description Response Headers
200 OK -
401 Unauthorized -
- */ - public ApiResponse getAPIResourcesWithHttpInfo() throws ApiException { - okhttp3.Call localVarCall = getAPIResourcesValidateBeforeCall(null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * (asynchronously) - * get available resources - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - - -
Status Code Description Response Headers
200 OK -
401 Unauthorized -
- */ - public okhttp3.Call getAPIResourcesAsync(final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = getAPIResourcesValidateBeforeCall(_callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - /** - * Build call for listFlowSchema - * @param pretty If 'true', then the output is pretty printed. (optional) - * @param allowWatchBookmarks 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. (optional) - * @param _continue 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) - * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) - * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) - * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) - * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) - * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) - * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - -
Status Code Description Response Headers
200 OK -
401 Unauthorized -
- */ - public okhttp3.Call listFlowSchemaCall(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = "/apis/flowcontrol.apiserver.k8s.io/v1beta3/flowschemas"; - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); - } - - if (allowWatchBookmarks != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("allowWatchBookmarks", allowWatchBookmarks)); - } - - if (_continue != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); - } - - if (fieldSelector != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); - } - - if (labelSelector != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); - } - - if (limit != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); - } - - if (resourceVersion != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); - } - - if (resourceVersionMatch != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersionMatch", resourceVersionMatch)); - } - - if (sendInitialEvents != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("sendInitialEvents", sendInitialEvents)); - } - - if (timeoutSeconds != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); - } - - if (watch != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); - } - - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); - - String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call listFlowSchemaValidateBeforeCall(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { - - - okhttp3.Call localVarCall = listFlowSchemaCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); - return localVarCall; - - } - - /** - * - * list or watch objects of kind FlowSchema - * @param pretty If 'true', then the output is pretty printed. (optional) - * @param allowWatchBookmarks 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. (optional) - * @param _continue 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) - * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) - * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) - * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) - * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) - * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) - * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @return V1beta3FlowSchemaList - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Status Code Description Response Headers
200 OK -
401 Unauthorized -
- */ - public V1beta3FlowSchemaList listFlowSchema(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch) throws ApiException { - ApiResponse localVarResp = listFlowSchemaWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); - return localVarResp.getData(); - } - - /** - * - * list or watch objects of kind FlowSchema - * @param pretty If 'true', then the output is pretty printed. (optional) - * @param allowWatchBookmarks 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. (optional) - * @param _continue 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) - * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) - * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) - * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) - * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) - * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) - * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @return ApiResponse<V1beta3FlowSchemaList> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Status Code Description Response Headers
200 OK -
401 Unauthorized -
- */ - public ApiResponse listFlowSchemaWithHttpInfo(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch) throws ApiException { - okhttp3.Call localVarCall = listFlowSchemaValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * (asynchronously) - * list or watch objects of kind FlowSchema - * @param pretty If 'true', then the output is pretty printed. (optional) - * @param allowWatchBookmarks 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. (optional) - * @param _continue 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) - * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) - * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) - * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) - * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) - * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) - * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - - -
Status Code Description Response Headers
200 OK -
401 Unauthorized -
- */ - public okhttp3.Call listFlowSchemaAsync(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = listFlowSchemaValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - /** - * Build call for listPriorityLevelConfiguration - * @param pretty If 'true', then the output is pretty printed. (optional) - * @param allowWatchBookmarks 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. (optional) - * @param _continue 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) - * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) - * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) - * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) - * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) - * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) - * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - -
Status Code Description Response Headers
200 OK -
401 Unauthorized -
- */ - public okhttp3.Call listPriorityLevelConfigurationCall(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = "/apis/flowcontrol.apiserver.k8s.io/v1beta3/prioritylevelconfigurations"; - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); - } - - if (allowWatchBookmarks != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("allowWatchBookmarks", allowWatchBookmarks)); - } - - if (_continue != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); - } - - if (fieldSelector != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); - } - - if (labelSelector != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); - } - - if (limit != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); - } - - if (resourceVersion != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); - } - - if (resourceVersionMatch != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersionMatch", resourceVersionMatch)); - } - - if (sendInitialEvents != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("sendInitialEvents", sendInitialEvents)); - } - - if (timeoutSeconds != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); - } - - if (watch != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); - } - - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); - - String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call listPriorityLevelConfigurationValidateBeforeCall(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { - - - okhttp3.Call localVarCall = listPriorityLevelConfigurationCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); - return localVarCall; - - } - - /** - * - * list or watch objects of kind PriorityLevelConfiguration - * @param pretty If 'true', then the output is pretty printed. (optional) - * @param allowWatchBookmarks 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. (optional) - * @param _continue 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) - * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) - * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) - * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) - * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) - * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) - * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @return V1beta3PriorityLevelConfigurationList - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Status Code Description Response Headers
200 OK -
401 Unauthorized -
- */ - public V1beta3PriorityLevelConfigurationList listPriorityLevelConfiguration(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch) throws ApiException { - ApiResponse localVarResp = listPriorityLevelConfigurationWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); - return localVarResp.getData(); - } - - /** - * - * list or watch objects of kind PriorityLevelConfiguration - * @param pretty If 'true', then the output is pretty printed. (optional) - * @param allowWatchBookmarks 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. (optional) - * @param _continue 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) - * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) - * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) - * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) - * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) - * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) - * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @return ApiResponse<V1beta3PriorityLevelConfigurationList> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Status Code Description Response Headers
200 OK -
401 Unauthorized -
- */ - public ApiResponse listPriorityLevelConfigurationWithHttpInfo(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch) throws ApiException { - okhttp3.Call localVarCall = listPriorityLevelConfigurationValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * (asynchronously) - * list or watch objects of kind PriorityLevelConfiguration - * @param pretty If 'true', then the output is pretty printed. (optional) - * @param allowWatchBookmarks 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. (optional) - * @param _continue 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) - * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) - * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) - * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) - * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) - * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) - * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - - -
Status Code Description Response Headers
200 OK -
401 Unauthorized -
- */ - public okhttp3.Call listPriorityLevelConfigurationAsync(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = listPriorityLevelConfigurationValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - /** - * Build call for patchFlowSchema - * @param name name of the FlowSchema (required) - * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) - * @param dryRun 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) - * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) - * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - - -
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
- */ - public okhttp3.Call patchFlowSchemaCall(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { - Object localVarPostBody = body; - - // create path and map variables - String localVarPath = "/apis/flowcontrol.apiserver.k8s.io/v1beta3/flowschemas/{name}" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); - } - - if (dryRun != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); - } - - if (fieldManager != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); - } - - if (fieldValidation != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); - } - - if (force != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("force", force)); - } - - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - "application/json" - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); - - String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call patchFlowSchemaValidateBeforeCall(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { - - // verify the required parameter 'name' is set - if (name == null) { - throw new ApiException("Missing the required parameter 'name' when calling patchFlowSchema(Async)"); - } - - // verify the required parameter 'body' is set - if (body == null) { - throw new ApiException("Missing the required parameter 'body' when calling patchFlowSchema(Async)"); - } - - - okhttp3.Call localVarCall = patchFlowSchemaCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); - return localVarCall; - - } - - /** - * - * partially update the specified FlowSchema - * @param name name of the FlowSchema (required) - * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) - * @param dryRun 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) - * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) - * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) - * @return V1beta3FlowSchema - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - -
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
- */ - public V1beta3FlowSchema patchFlowSchema(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force) throws ApiException { - ApiResponse localVarResp = patchFlowSchemaWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force); - return localVarResp.getData(); - } - - /** - * - * partially update the specified FlowSchema - * @param name name of the FlowSchema (required) - * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) - * @param dryRun 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) - * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) - * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) - * @return ApiResponse<V1beta3FlowSchema> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - -
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
- */ - public ApiResponse patchFlowSchemaWithHttpInfo(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force) throws ApiException { - okhttp3.Call localVarCall = patchFlowSchemaValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * (asynchronously) - * partially update the specified FlowSchema - * @param name name of the FlowSchema (required) - * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) - * @param dryRun 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) - * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) - * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - - - -
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
- */ - public okhttp3.Call patchFlowSchemaAsync(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = patchFlowSchemaValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - /** - * Build call for patchFlowSchemaStatus - * @param name name of the FlowSchema (required) - * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) - * @param dryRun 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) - * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) - * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - - -
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
- */ - public okhttp3.Call patchFlowSchemaStatusCall(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { - Object localVarPostBody = body; - - // create path and map variables - String localVarPath = "/apis/flowcontrol.apiserver.k8s.io/v1beta3/flowschemas/{name}/status" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); - } - - if (dryRun != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); - } - - if (fieldManager != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); - } - - if (fieldValidation != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); - } - - if (force != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("force", force)); - } - - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - "application/json" - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); - - String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call patchFlowSchemaStatusValidateBeforeCall(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { - - // verify the required parameter 'name' is set - if (name == null) { - throw new ApiException("Missing the required parameter 'name' when calling patchFlowSchemaStatus(Async)"); - } - - // verify the required parameter 'body' is set - if (body == null) { - throw new ApiException("Missing the required parameter 'body' when calling patchFlowSchemaStatus(Async)"); - } - - - okhttp3.Call localVarCall = patchFlowSchemaStatusCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); - return localVarCall; - - } - - /** - * - * partially update status of the specified FlowSchema - * @param name name of the FlowSchema (required) - * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) - * @param dryRun 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) - * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) - * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) - * @return V1beta3FlowSchema - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - -
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
- */ - public V1beta3FlowSchema patchFlowSchemaStatus(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force) throws ApiException { - ApiResponse localVarResp = patchFlowSchemaStatusWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force); - return localVarResp.getData(); - } - - /** - * - * partially update status of the specified FlowSchema - * @param name name of the FlowSchema (required) - * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) - * @param dryRun 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) - * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) - * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) - * @return ApiResponse<V1beta3FlowSchema> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - -
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
- */ - public ApiResponse patchFlowSchemaStatusWithHttpInfo(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force) throws ApiException { - okhttp3.Call localVarCall = patchFlowSchemaStatusValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * (asynchronously) - * partially update status of the specified FlowSchema - * @param name name of the FlowSchema (required) - * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) - * @param dryRun 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) - * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) - * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - - - -
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
- */ - public okhttp3.Call patchFlowSchemaStatusAsync(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = patchFlowSchemaStatusValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - /** - * Build call for patchPriorityLevelConfiguration - * @param name name of the PriorityLevelConfiguration (required) - * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) - * @param dryRun 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) - * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) - * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - - -
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
- */ - public okhttp3.Call patchPriorityLevelConfigurationCall(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { - Object localVarPostBody = body; - - // create path and map variables - String localVarPath = "/apis/flowcontrol.apiserver.k8s.io/v1beta3/prioritylevelconfigurations/{name}" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); - } - - if (dryRun != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); - } - - if (fieldManager != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); - } - - if (fieldValidation != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); - } - - if (force != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("force", force)); - } - - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - "application/json" - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); - - String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call patchPriorityLevelConfigurationValidateBeforeCall(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { - - // verify the required parameter 'name' is set - if (name == null) { - throw new ApiException("Missing the required parameter 'name' when calling patchPriorityLevelConfiguration(Async)"); - } - - // verify the required parameter 'body' is set - if (body == null) { - throw new ApiException("Missing the required parameter 'body' when calling patchPriorityLevelConfiguration(Async)"); - } - - - okhttp3.Call localVarCall = patchPriorityLevelConfigurationCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); - return localVarCall; - - } - - /** - * - * partially update the specified PriorityLevelConfiguration - * @param name name of the PriorityLevelConfiguration (required) - * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) - * @param dryRun 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) - * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) - * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) - * @return V1beta3PriorityLevelConfiguration - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - -
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
- */ - public V1beta3PriorityLevelConfiguration patchPriorityLevelConfiguration(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force) throws ApiException { - ApiResponse localVarResp = patchPriorityLevelConfigurationWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force); - return localVarResp.getData(); - } - - /** - * - * partially update the specified PriorityLevelConfiguration - * @param name name of the PriorityLevelConfiguration (required) - * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) - * @param dryRun 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) - * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) - * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) - * @return ApiResponse<V1beta3PriorityLevelConfiguration> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - -
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
- */ - public ApiResponse patchPriorityLevelConfigurationWithHttpInfo(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force) throws ApiException { - okhttp3.Call localVarCall = patchPriorityLevelConfigurationValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * (asynchronously) - * partially update the specified PriorityLevelConfiguration - * @param name name of the PriorityLevelConfiguration (required) - * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) - * @param dryRun 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) - * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) - * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - - - -
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
- */ - public okhttp3.Call patchPriorityLevelConfigurationAsync(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = patchPriorityLevelConfigurationValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - /** - * Build call for patchPriorityLevelConfigurationStatus - * @param name name of the PriorityLevelConfiguration (required) - * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) - * @param dryRun 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) - * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) - * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - - -
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
- */ - public okhttp3.Call patchPriorityLevelConfigurationStatusCall(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { - Object localVarPostBody = body; - - // create path and map variables - String localVarPath = "/apis/flowcontrol.apiserver.k8s.io/v1beta3/prioritylevelconfigurations/{name}/status" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); - } - - if (dryRun != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); - } - - if (fieldManager != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); - } - - if (fieldValidation != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); - } - - if (force != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("force", force)); - } - - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - "application/json" - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); - - String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call patchPriorityLevelConfigurationStatusValidateBeforeCall(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { - - // verify the required parameter 'name' is set - if (name == null) { - throw new ApiException("Missing the required parameter 'name' when calling patchPriorityLevelConfigurationStatus(Async)"); - } - - // verify the required parameter 'body' is set - if (body == null) { - throw new ApiException("Missing the required parameter 'body' when calling patchPriorityLevelConfigurationStatus(Async)"); - } - - - okhttp3.Call localVarCall = patchPriorityLevelConfigurationStatusCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); - return localVarCall; - - } - - /** - * - * partially update status of the specified PriorityLevelConfiguration - * @param name name of the PriorityLevelConfiguration (required) - * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) - * @param dryRun 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) - * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) - * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) - * @return V1beta3PriorityLevelConfiguration - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - -
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
- */ - public V1beta3PriorityLevelConfiguration patchPriorityLevelConfigurationStatus(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force) throws ApiException { - ApiResponse localVarResp = patchPriorityLevelConfigurationStatusWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force); - return localVarResp.getData(); - } - - /** - * - * partially update status of the specified PriorityLevelConfiguration - * @param name name of the PriorityLevelConfiguration (required) - * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) - * @param dryRun 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) - * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) - * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) - * @return ApiResponse<V1beta3PriorityLevelConfiguration> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - -
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
- */ - public ApiResponse patchPriorityLevelConfigurationStatusWithHttpInfo(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force) throws ApiException { - okhttp3.Call localVarCall = patchPriorityLevelConfigurationStatusValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * (asynchronously) - * partially update status of the specified PriorityLevelConfiguration - * @param name name of the PriorityLevelConfiguration (required) - * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) - * @param dryRun 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) - * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) - * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - - - -
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
- */ - public okhttp3.Call patchPriorityLevelConfigurationStatusAsync(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = patchPriorityLevelConfigurationStatusValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - /** - * Build call for readFlowSchema - * @param name name of the FlowSchema (required) - * @param pretty If 'true', then the output is pretty printed. (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - -
Status Code Description Response Headers
200 OK -
401 Unauthorized -
- */ - public okhttp3.Call readFlowSchemaCall(String name, String pretty, final ApiCallback _callback) throws ApiException { - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = "/apis/flowcontrol.apiserver.k8s.io/v1beta3/flowschemas/{name}" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); - } - - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); - - String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call readFlowSchemaValidateBeforeCall(String name, String pretty, final ApiCallback _callback) throws ApiException { - - // verify the required parameter 'name' is set - if (name == null) { - throw new ApiException("Missing the required parameter 'name' when calling readFlowSchema(Async)"); - } - - - okhttp3.Call localVarCall = readFlowSchemaCall(name, pretty, _callback); - return localVarCall; - - } - - /** - * - * read the specified FlowSchema - * @param name name of the FlowSchema (required) - * @param pretty If 'true', then the output is pretty printed. (optional) - * @return V1beta3FlowSchema - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Status Code Description Response Headers
200 OK -
401 Unauthorized -
- */ - public V1beta3FlowSchema readFlowSchema(String name, String pretty) throws ApiException { - ApiResponse localVarResp = readFlowSchemaWithHttpInfo(name, pretty); - return localVarResp.getData(); - } - - /** - * - * read the specified FlowSchema - * @param name name of the FlowSchema (required) - * @param pretty If 'true', then the output is pretty printed. (optional) - * @return ApiResponse<V1beta3FlowSchema> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Status Code Description Response Headers
200 OK -
401 Unauthorized -
- */ - public ApiResponse readFlowSchemaWithHttpInfo(String name, String pretty) throws ApiException { - okhttp3.Call localVarCall = readFlowSchemaValidateBeforeCall(name, pretty, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * (asynchronously) - * read the specified FlowSchema - * @param name name of the FlowSchema (required) - * @param pretty If 'true', then the output is pretty printed. (optional) - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - - -
Status Code Description Response Headers
200 OK -
401 Unauthorized -
- */ - public okhttp3.Call readFlowSchemaAsync(String name, String pretty, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = readFlowSchemaValidateBeforeCall(name, pretty, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - /** - * Build call for readFlowSchemaStatus - * @param name name of the FlowSchema (required) - * @param pretty If 'true', then the output is pretty printed. (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - -
Status Code Description Response Headers
200 OK -
401 Unauthorized -
- */ - public okhttp3.Call readFlowSchemaStatusCall(String name, String pretty, final ApiCallback _callback) throws ApiException { - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = "/apis/flowcontrol.apiserver.k8s.io/v1beta3/flowschemas/{name}/status" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); - } - - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); - - String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call readFlowSchemaStatusValidateBeforeCall(String name, String pretty, final ApiCallback _callback) throws ApiException { - - // verify the required parameter 'name' is set - if (name == null) { - throw new ApiException("Missing the required parameter 'name' when calling readFlowSchemaStatus(Async)"); - } - - - okhttp3.Call localVarCall = readFlowSchemaStatusCall(name, pretty, _callback); - return localVarCall; - - } - - /** - * - * read status of the specified FlowSchema - * @param name name of the FlowSchema (required) - * @param pretty If 'true', then the output is pretty printed. (optional) - * @return V1beta3FlowSchema - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Status Code Description Response Headers
200 OK -
401 Unauthorized -
- */ - public V1beta3FlowSchema readFlowSchemaStatus(String name, String pretty) throws ApiException { - ApiResponse localVarResp = readFlowSchemaStatusWithHttpInfo(name, pretty); - return localVarResp.getData(); - } - - /** - * - * read status of the specified FlowSchema - * @param name name of the FlowSchema (required) - * @param pretty If 'true', then the output is pretty printed. (optional) - * @return ApiResponse<V1beta3FlowSchema> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Status Code Description Response Headers
200 OK -
401 Unauthorized -
- */ - public ApiResponse readFlowSchemaStatusWithHttpInfo(String name, String pretty) throws ApiException { - okhttp3.Call localVarCall = readFlowSchemaStatusValidateBeforeCall(name, pretty, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * (asynchronously) - * read status of the specified FlowSchema - * @param name name of the FlowSchema (required) - * @param pretty If 'true', then the output is pretty printed. (optional) - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - - -
Status Code Description Response Headers
200 OK -
401 Unauthorized -
- */ - public okhttp3.Call readFlowSchemaStatusAsync(String name, String pretty, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = readFlowSchemaStatusValidateBeforeCall(name, pretty, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - /** - * Build call for readPriorityLevelConfiguration - * @param name name of the PriorityLevelConfiguration (required) - * @param pretty If 'true', then the output is pretty printed. (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - -
Status Code Description Response Headers
200 OK -
401 Unauthorized -
- */ - public okhttp3.Call readPriorityLevelConfigurationCall(String name, String pretty, final ApiCallback _callback) throws ApiException { - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = "/apis/flowcontrol.apiserver.k8s.io/v1beta3/prioritylevelconfigurations/{name}" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); - } - - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); - - String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call readPriorityLevelConfigurationValidateBeforeCall(String name, String pretty, final ApiCallback _callback) throws ApiException { - - // verify the required parameter 'name' is set - if (name == null) { - throw new ApiException("Missing the required parameter 'name' when calling readPriorityLevelConfiguration(Async)"); - } - - - okhttp3.Call localVarCall = readPriorityLevelConfigurationCall(name, pretty, _callback); - return localVarCall; - - } - - /** - * - * read the specified PriorityLevelConfiguration - * @param name name of the PriorityLevelConfiguration (required) - * @param pretty If 'true', then the output is pretty printed. (optional) - * @return V1beta3PriorityLevelConfiguration - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Status Code Description Response Headers
200 OK -
401 Unauthorized -
- */ - public V1beta3PriorityLevelConfiguration readPriorityLevelConfiguration(String name, String pretty) throws ApiException { - ApiResponse localVarResp = readPriorityLevelConfigurationWithHttpInfo(name, pretty); - return localVarResp.getData(); - } - - /** - * - * read the specified PriorityLevelConfiguration - * @param name name of the PriorityLevelConfiguration (required) - * @param pretty If 'true', then the output is pretty printed. (optional) - * @return ApiResponse<V1beta3PriorityLevelConfiguration> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Status Code Description Response Headers
200 OK -
401 Unauthorized -
- */ - public ApiResponse readPriorityLevelConfigurationWithHttpInfo(String name, String pretty) throws ApiException { - okhttp3.Call localVarCall = readPriorityLevelConfigurationValidateBeforeCall(name, pretty, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * (asynchronously) - * read the specified PriorityLevelConfiguration - * @param name name of the PriorityLevelConfiguration (required) - * @param pretty If 'true', then the output is pretty printed. (optional) - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - - -
Status Code Description Response Headers
200 OK -
401 Unauthorized -
- */ - public okhttp3.Call readPriorityLevelConfigurationAsync(String name, String pretty, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = readPriorityLevelConfigurationValidateBeforeCall(name, pretty, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - /** - * Build call for readPriorityLevelConfigurationStatus - * @param name name of the PriorityLevelConfiguration (required) - * @param pretty If 'true', then the output is pretty printed. (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - -
Status Code Description Response Headers
200 OK -
401 Unauthorized -
- */ - public okhttp3.Call readPriorityLevelConfigurationStatusCall(String name, String pretty, final ApiCallback _callback) throws ApiException { - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = "/apis/flowcontrol.apiserver.k8s.io/v1beta3/prioritylevelconfigurations/{name}/status" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); - } - - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); - - String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call readPriorityLevelConfigurationStatusValidateBeforeCall(String name, String pretty, final ApiCallback _callback) throws ApiException { - - // verify the required parameter 'name' is set - if (name == null) { - throw new ApiException("Missing the required parameter 'name' when calling readPriorityLevelConfigurationStatus(Async)"); - } - - - okhttp3.Call localVarCall = readPriorityLevelConfigurationStatusCall(name, pretty, _callback); - return localVarCall; - - } - - /** - * - * read status of the specified PriorityLevelConfiguration - * @param name name of the PriorityLevelConfiguration (required) - * @param pretty If 'true', then the output is pretty printed. (optional) - * @return V1beta3PriorityLevelConfiguration - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Status Code Description Response Headers
200 OK -
401 Unauthorized -
- */ - public V1beta3PriorityLevelConfiguration readPriorityLevelConfigurationStatus(String name, String pretty) throws ApiException { - ApiResponse localVarResp = readPriorityLevelConfigurationStatusWithHttpInfo(name, pretty); - return localVarResp.getData(); - } - - /** - * - * read status of the specified PriorityLevelConfiguration - * @param name name of the PriorityLevelConfiguration (required) - * @param pretty If 'true', then the output is pretty printed. (optional) - * @return ApiResponse<V1beta3PriorityLevelConfiguration> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Status Code Description Response Headers
200 OK -
401 Unauthorized -
- */ - public ApiResponse readPriorityLevelConfigurationStatusWithHttpInfo(String name, String pretty) throws ApiException { - okhttp3.Call localVarCall = readPriorityLevelConfigurationStatusValidateBeforeCall(name, pretty, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * (asynchronously) - * read status of the specified PriorityLevelConfiguration - * @param name name of the PriorityLevelConfiguration (required) - * @param pretty If 'true', then the output is pretty printed. (optional) - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - - -
Status Code Description Response Headers
200 OK -
401 Unauthorized -
- */ - public okhttp3.Call readPriorityLevelConfigurationStatusAsync(String name, String pretty, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = readPriorityLevelConfigurationStatusValidateBeforeCall(name, pretty, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - /** - * Build call for replaceFlowSchema - * @param name name of the FlowSchema (required) - * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) - * @param dryRun 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) - * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - - -
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
- */ - public okhttp3.Call replaceFlowSchemaCall(String name, V1beta3FlowSchema body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { - Object localVarPostBody = body; - - // create path and map variables - String localVarPath = "/apis/flowcontrol.apiserver.k8s.io/v1beta3/flowschemas/{name}" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); - } - - if (dryRun != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); - } - - if (fieldManager != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); - } - - if (fieldValidation != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); - } - - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - "application/json" - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); - - String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call replaceFlowSchemaValidateBeforeCall(String name, V1beta3FlowSchema body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { - - // verify the required parameter 'name' is set - if (name == null) { - throw new ApiException("Missing the required parameter 'name' when calling replaceFlowSchema(Async)"); - } - - // verify the required parameter 'body' is set - if (body == null) { - throw new ApiException("Missing the required parameter 'body' when calling replaceFlowSchema(Async)"); - } - - - okhttp3.Call localVarCall = replaceFlowSchemaCall(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); - return localVarCall; - - } - - /** - * - * replace the specified FlowSchema - * @param name name of the FlowSchema (required) - * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) - * @param dryRun 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) - * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - * @return V1beta3FlowSchema - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - -
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
- */ - public V1beta3FlowSchema replaceFlowSchema(String name, V1beta3FlowSchema body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { - ApiResponse localVarResp = replaceFlowSchemaWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation); - return localVarResp.getData(); - } - - /** - * - * replace the specified FlowSchema - * @param name name of the FlowSchema (required) - * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) - * @param dryRun 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) - * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - * @return ApiResponse<V1beta3FlowSchema> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - -
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
- */ - public ApiResponse replaceFlowSchemaWithHttpInfo(String name, V1beta3FlowSchema body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { - okhttp3.Call localVarCall = replaceFlowSchemaValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * (asynchronously) - * replace the specified FlowSchema - * @param name name of the FlowSchema (required) - * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) - * @param dryRun 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) - * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - - - -
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
- */ - public okhttp3.Call replaceFlowSchemaAsync(String name, V1beta3FlowSchema body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = replaceFlowSchemaValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - /** - * Build call for replaceFlowSchemaStatus - * @param name name of the FlowSchema (required) - * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) - * @param dryRun 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) - * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - - -
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
- */ - public okhttp3.Call replaceFlowSchemaStatusCall(String name, V1beta3FlowSchema body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { - Object localVarPostBody = body; - - // create path and map variables - String localVarPath = "/apis/flowcontrol.apiserver.k8s.io/v1beta3/flowschemas/{name}/status" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); - } - - if (dryRun != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); - } - - if (fieldManager != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); - } - - if (fieldValidation != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); - } - - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - "application/json" - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); - - String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call replaceFlowSchemaStatusValidateBeforeCall(String name, V1beta3FlowSchema body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { - - // verify the required parameter 'name' is set - if (name == null) { - throw new ApiException("Missing the required parameter 'name' when calling replaceFlowSchemaStatus(Async)"); - } - - // verify the required parameter 'body' is set - if (body == null) { - throw new ApiException("Missing the required parameter 'body' when calling replaceFlowSchemaStatus(Async)"); - } - - - okhttp3.Call localVarCall = replaceFlowSchemaStatusCall(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); - return localVarCall; - - } - - /** - * - * replace status of the specified FlowSchema - * @param name name of the FlowSchema (required) - * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) - * @param dryRun 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) - * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - * @return V1beta3FlowSchema - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - -
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
- */ - public V1beta3FlowSchema replaceFlowSchemaStatus(String name, V1beta3FlowSchema body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { - ApiResponse localVarResp = replaceFlowSchemaStatusWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation); - return localVarResp.getData(); - } - - /** - * - * replace status of the specified FlowSchema - * @param name name of the FlowSchema (required) - * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) - * @param dryRun 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) - * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - * @return ApiResponse<V1beta3FlowSchema> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - -
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
- */ - public ApiResponse replaceFlowSchemaStatusWithHttpInfo(String name, V1beta3FlowSchema body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { - okhttp3.Call localVarCall = replaceFlowSchemaStatusValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * (asynchronously) - * replace status of the specified FlowSchema - * @param name name of the FlowSchema (required) - * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) - * @param dryRun 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) - * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - - - -
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
- */ - public okhttp3.Call replaceFlowSchemaStatusAsync(String name, V1beta3FlowSchema body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = replaceFlowSchemaStatusValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - /** - * Build call for replacePriorityLevelConfiguration - * @param name name of the PriorityLevelConfiguration (required) - * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) - * @param dryRun 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) - * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - - -
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
- */ - public okhttp3.Call replacePriorityLevelConfigurationCall(String name, V1beta3PriorityLevelConfiguration body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { - Object localVarPostBody = body; - - // create path and map variables - String localVarPath = "/apis/flowcontrol.apiserver.k8s.io/v1beta3/prioritylevelconfigurations/{name}" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); - } - - if (dryRun != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); - } - - if (fieldManager != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); - } - - if (fieldValidation != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); - } - - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - "application/json" - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); - - String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call replacePriorityLevelConfigurationValidateBeforeCall(String name, V1beta3PriorityLevelConfiguration body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { - - // verify the required parameter 'name' is set - if (name == null) { - throw new ApiException("Missing the required parameter 'name' when calling replacePriorityLevelConfiguration(Async)"); - } - - // verify the required parameter 'body' is set - if (body == null) { - throw new ApiException("Missing the required parameter 'body' when calling replacePriorityLevelConfiguration(Async)"); - } - - - okhttp3.Call localVarCall = replacePriorityLevelConfigurationCall(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); - return localVarCall; - - } - - /** - * - * replace the specified PriorityLevelConfiguration - * @param name name of the PriorityLevelConfiguration (required) - * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) - * @param dryRun 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) - * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - * @return V1beta3PriorityLevelConfiguration - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - -
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
- */ - public V1beta3PriorityLevelConfiguration replacePriorityLevelConfiguration(String name, V1beta3PriorityLevelConfiguration body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { - ApiResponse localVarResp = replacePriorityLevelConfigurationWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation); - return localVarResp.getData(); - } - - /** - * - * replace the specified PriorityLevelConfiguration - * @param name name of the PriorityLevelConfiguration (required) - * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) - * @param dryRun 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) - * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - * @return ApiResponse<V1beta3PriorityLevelConfiguration> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - -
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
- */ - public ApiResponse replacePriorityLevelConfigurationWithHttpInfo(String name, V1beta3PriorityLevelConfiguration body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { - okhttp3.Call localVarCall = replacePriorityLevelConfigurationValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * (asynchronously) - * replace the specified PriorityLevelConfiguration - * @param name name of the PriorityLevelConfiguration (required) - * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) - * @param dryRun 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) - * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - - - -
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
- */ - public okhttp3.Call replacePriorityLevelConfigurationAsync(String name, V1beta3PriorityLevelConfiguration body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = replacePriorityLevelConfigurationValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - /** - * Build call for replacePriorityLevelConfigurationStatus - * @param name name of the PriorityLevelConfiguration (required) - * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) - * @param dryRun 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) - * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - - -
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
- */ - public okhttp3.Call replacePriorityLevelConfigurationStatusCall(String name, V1beta3PriorityLevelConfiguration body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { - Object localVarPostBody = body; - - // create path and map variables - String localVarPath = "/apis/flowcontrol.apiserver.k8s.io/v1beta3/prioritylevelconfigurations/{name}/status" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); - } - - if (dryRun != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); - } - - if (fieldManager != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); - } - - if (fieldValidation != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); - } - - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - "application/json" - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); - - String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call replacePriorityLevelConfigurationStatusValidateBeforeCall(String name, V1beta3PriorityLevelConfiguration body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { - - // verify the required parameter 'name' is set - if (name == null) { - throw new ApiException("Missing the required parameter 'name' when calling replacePriorityLevelConfigurationStatus(Async)"); - } - - // verify the required parameter 'body' is set - if (body == null) { - throw new ApiException("Missing the required parameter 'body' when calling replacePriorityLevelConfigurationStatus(Async)"); - } - - - okhttp3.Call localVarCall = replacePriorityLevelConfigurationStatusCall(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); - return localVarCall; - - } - - /** - * - * replace status of the specified PriorityLevelConfiguration - * @param name name of the PriorityLevelConfiguration (required) - * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) - * @param dryRun 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) - * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - * @return V1beta3PriorityLevelConfiguration - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - -
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
- */ - public V1beta3PriorityLevelConfiguration replacePriorityLevelConfigurationStatus(String name, V1beta3PriorityLevelConfiguration body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { - ApiResponse localVarResp = replacePriorityLevelConfigurationStatusWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation); - return localVarResp.getData(); - } - - /** - * - * replace status of the specified PriorityLevelConfiguration - * @param name name of the PriorityLevelConfiguration (required) - * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) - * @param dryRun 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) - * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - * @return ApiResponse<V1beta3PriorityLevelConfiguration> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - -
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
- */ - public ApiResponse replacePriorityLevelConfigurationStatusWithHttpInfo(String name, V1beta3PriorityLevelConfiguration body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { - okhttp3.Call localVarCall = replacePriorityLevelConfigurationStatusValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * (asynchronously) - * replace status of the specified PriorityLevelConfiguration - * @param name name of the PriorityLevelConfiguration (required) - * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) - * @param dryRun 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) - * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - - - -
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
- */ - public okhttp3.Call replacePriorityLevelConfigurationStatusAsync(String name, V1beta3PriorityLevelConfiguration body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = replacePriorityLevelConfigurationStatusValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } -} 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 d9187f6f6c..61a5db5a17 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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 00084c702d..01033aa46a 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -61,7 +61,7 @@ public void setApiClient(ApiClient apiClient) { /** * Build call for createStorageVersion * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -105,7 +105,7 @@ public okhttp3.Call createStorageVersionCall(V1alpha1StorageVersion body, String Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -140,7 +140,7 @@ private okhttp3.Call createStorageVersionValidateBeforeCall(V1alpha1StorageVersi * * create a StorageVersion * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -164,7 +164,7 @@ public V1alpha1StorageVersion createStorageVersion(V1alpha1StorageVersion body, * * create a StorageVersion * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -189,7 +189,7 @@ public ApiResponse createStorageVersionWithHttpInfo(V1al * (asynchronously) * create a StorageVersion * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -214,11 +214,12 @@ public okhttp3.Call createStorageVersionAsync(V1alpha1StorageVersion body, Strin } /** * Build call for deleteCollectionStorageVersion - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param _continue 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) * @param dryRun 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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @param orphanDependents 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) @@ -238,7 +239,7 @@ public okhttp3.Call createStorageVersionAsync(V1alpha1StorageVersion body, Strin 401 Unauthorized - */ - public okhttp3.Call deleteCollectionStorageVersionCall(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + public okhttp3.Call deleteCollectionStorageVersionCall(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; // create path and map variables @@ -266,6 +267,10 @@ public okhttp3.Call deleteCollectionStorageVersionCall(String pretty, String _co localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); } + if (ignoreStoreReadErrorWithClusterBreakingPotential != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("ignoreStoreReadErrorWithClusterBreakingPotential", ignoreStoreReadErrorWithClusterBreakingPotential)); + } + if (labelSelector != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); } @@ -302,7 +307,7 @@ public okhttp3.Call deleteCollectionStorageVersionCall(String pretty, String _co Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -320,10 +325,10 @@ public okhttp3.Call deleteCollectionStorageVersionCall(String pretty, String _co } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteCollectionStorageVersionValidateBeforeCall(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionStorageVersionValidateBeforeCall(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = deleteCollectionStorageVersionCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + okhttp3.Call localVarCall = deleteCollectionStorageVersionCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); return localVarCall; } @@ -331,11 +336,12 @@ private okhttp3.Call deleteCollectionStorageVersionValidateBeforeCall(String pre /** * * delete collection of StorageVersion - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param _continue 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) * @param dryRun 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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @param orphanDependents 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) @@ -354,19 +360,20 @@ private okhttp3.Call deleteCollectionStorageVersionValidateBeforeCall(String pre 401 Unauthorized - */ - public V1Status deleteCollectionStorageVersion(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body) throws ApiException { - ApiResponse localVarResp = deleteCollectionStorageVersionWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); + public V1Status deleteCollectionStorageVersion(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body) throws ApiException { + ApiResponse localVarResp = deleteCollectionStorageVersionWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); return localVarResp.getData(); } /** * * delete collection of StorageVersion - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param _continue 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) * @param dryRun 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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @param orphanDependents 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) @@ -385,8 +392,8 @@ public V1Status deleteCollectionStorageVersion(String pretty, String _continue, 401 Unauthorized - */ - public ApiResponse deleteCollectionStorageVersionWithHttpInfo(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body) throws ApiException { - okhttp3.Call localVarCall = deleteCollectionStorageVersionValidateBeforeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, null); + public ApiResponse deleteCollectionStorageVersionWithHttpInfo(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteCollectionStorageVersionValidateBeforeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -394,11 +401,12 @@ public ApiResponse deleteCollectionStorageVersionWithHttpInfo(String p /** * (asynchronously) * delete collection of StorageVersion - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param _continue 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) * @param dryRun 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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @param orphanDependents 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) @@ -418,9 +426,9 @@ public ApiResponse deleteCollectionStorageVersionWithHttpInfo(String p 401 Unauthorized - */ - public okhttp3.Call deleteCollectionStorageVersionAsync(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + public okhttp3.Call deleteCollectionStorageVersionAsync(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = deleteCollectionStorageVersionValidateBeforeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + okhttp3.Call localVarCall = deleteCollectionStorageVersionValidateBeforeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -428,9 +436,10 @@ public okhttp3.Call deleteCollectionStorageVersionAsync(String pretty, String _c /** * Build call for deleteStorageVersion * @param name name of the StorageVersion (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @param orphanDependents 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) * @param propagationPolicy 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. (optional) * @param body (optional) @@ -445,7 +454,7 @@ public okhttp3.Call deleteCollectionStorageVersionAsync(String pretty, String _c 401 Unauthorized - */ - public okhttp3.Call deleteStorageVersionCall(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + public okhttp3.Call deleteStorageVersionCall(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; // create path and map variables @@ -466,6 +475,10 @@ public okhttp3.Call deleteStorageVersionCall(String name, String pretty, String localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); } + if (ignoreStoreReadErrorWithClusterBreakingPotential != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("ignoreStoreReadErrorWithClusterBreakingPotential", ignoreStoreReadErrorWithClusterBreakingPotential)); + } + if (orphanDependents != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("orphanDependents", orphanDependents)); } @@ -478,7 +491,7 @@ public okhttp3.Call deleteStorageVersionCall(String name, String pretty, String Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -496,7 +509,7 @@ public okhttp3.Call deleteStorageVersionCall(String name, String pretty, String } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteStorageVersionValidateBeforeCall(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteStorageVersionValidateBeforeCall(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -504,7 +517,7 @@ private okhttp3.Call deleteStorageVersionValidateBeforeCall(String name, String } - okhttp3.Call localVarCall = deleteStorageVersionCall(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); + okhttp3.Call localVarCall = deleteStorageVersionCall(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); return localVarCall; } @@ -513,9 +526,10 @@ private okhttp3.Call deleteStorageVersionValidateBeforeCall(String name, String * * delete a StorageVersion * @param name name of the StorageVersion (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @param orphanDependents 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) * @param propagationPolicy 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. (optional) * @param body (optional) @@ -529,8 +543,8 @@ private okhttp3.Call deleteStorageVersionValidateBeforeCall(String name, String 401 Unauthorized - */ - public V1Status deleteStorageVersion(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { - ApiResponse localVarResp = deleteStorageVersionWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body); + public V1Status deleteStorageVersion(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { + ApiResponse localVarResp = deleteStorageVersionWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body); return localVarResp.getData(); } @@ -538,9 +552,10 @@ public V1Status deleteStorageVersion(String name, String pretty, String dryRun, * * delete a StorageVersion * @param name name of the StorageVersion (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @param orphanDependents 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) * @param propagationPolicy 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. (optional) * @param body (optional) @@ -554,8 +569,8 @@ public V1Status deleteStorageVersion(String name, String pretty, String dryRun, 401 Unauthorized - */ - public ApiResponse deleteStorageVersionWithHttpInfo(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { - okhttp3.Call localVarCall = deleteStorageVersionValidateBeforeCall(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, null); + public ApiResponse deleteStorageVersionWithHttpInfo(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteStorageVersionValidateBeforeCall(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -564,9 +579,10 @@ public ApiResponse deleteStorageVersionWithHttpInfo(String name, Strin * (asynchronously) * delete a StorageVersion * @param name name of the StorageVersion (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @param orphanDependents 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) * @param propagationPolicy 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. (optional) * @param body (optional) @@ -581,9 +597,9 @@ public ApiResponse deleteStorageVersionWithHttpInfo(String name, Strin 401 Unauthorized - */ - public okhttp3.Call deleteStorageVersionAsync(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + public okhttp3.Call deleteStorageVersionAsync(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = deleteStorageVersionValidateBeforeCall(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); + okhttp3.Call localVarCall = deleteStorageVersionValidateBeforeCall(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -612,7 +628,7 @@ public okhttp3.Call getAPIResourcesCall(final ApiCallback _callback) throws ApiE Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -695,7 +711,7 @@ public okhttp3.Call getAPIResourcesAsync(final ApiCallback _c } /** * Build call for listStorageVersion - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param allowWatchBookmarks 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. (optional) * @param _continue 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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) @@ -772,7 +788,7 @@ public okhttp3.Call listStorageVersionCall(String pretty, Boolean allowWatchBook Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch", "application/cbor-seq" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -801,7 +817,7 @@ private okhttp3.Call listStorageVersionValidateBeforeCall(String pretty, Boolean /** * * list or watch objects of kind StorageVersion - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param allowWatchBookmarks 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. (optional) * @param _continue 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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) @@ -829,7 +845,7 @@ public V1alpha1StorageVersionList listStorageVersion(String pretty, Boolean allo /** * * list or watch objects of kind StorageVersion - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param allowWatchBookmarks 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. (optional) * @param _continue 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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) @@ -858,7 +874,7 @@ public ApiResponse listStorageVersionWithHttpInfo(St /** * (asynchronously) * list or watch objects of kind StorageVersion - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param allowWatchBookmarks 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. (optional) * @param _continue 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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) @@ -890,7 +906,7 @@ public okhttp3.Call listStorageVersionAsync(String pretty, Boolean allowWatchBoo * Build call for patchStorageVersion * @param name name of the StorageVersion (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -939,7 +955,7 @@ public okhttp3.Call patchStorageVersionCall(String name, V1Patch body, String pr Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -980,7 +996,7 @@ private okhttp3.Call patchStorageVersionValidateBeforeCall(String name, V1Patch * partially update the specified StorageVersion * @param name name of the StorageVersion (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -1005,7 +1021,7 @@ public V1alpha1StorageVersion patchStorageVersion(String name, V1Patch body, Str * partially update the specified StorageVersion * @param name name of the StorageVersion (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -1031,7 +1047,7 @@ public ApiResponse patchStorageVersionWithHttpInfo(Strin * partially update the specified StorageVersion * @param name name of the StorageVersion (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -1058,7 +1074,7 @@ public okhttp3.Call patchStorageVersionAsync(String name, V1Patch body, String p * Build call for patchStorageVersionStatus * @param name name of the StorageVersion (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -1107,7 +1123,7 @@ public okhttp3.Call patchStorageVersionStatusCall(String name, V1Patch body, Str Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -1148,7 +1164,7 @@ private okhttp3.Call patchStorageVersionStatusValidateBeforeCall(String name, V1 * partially update status of the specified StorageVersion * @param name name of the StorageVersion (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -1173,7 +1189,7 @@ public V1alpha1StorageVersion patchStorageVersionStatus(String name, V1Patch bod * partially update status of the specified StorageVersion * @param name name of the StorageVersion (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -1199,7 +1215,7 @@ public ApiResponse patchStorageVersionStatusWithHttpInfo * partially update status of the specified StorageVersion * @param name name of the StorageVersion (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -1225,7 +1241,7 @@ public okhttp3.Call patchStorageVersionStatusAsync(String name, V1Patch body, St /** * Build call for readStorageVersion * @param name name of the StorageVersion (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -1253,7 +1269,7 @@ public okhttp3.Call readStorageVersionCall(String name, String pretty, final Api Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -1288,7 +1304,7 @@ private okhttp3.Call readStorageVersionValidateBeforeCall(String name, String pr * * read the specified StorageVersion * @param name name of the StorageVersion (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return V1alpha1StorageVersion * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -1307,7 +1323,7 @@ public V1alpha1StorageVersion readStorageVersion(String name, String pretty) thr * * read the specified StorageVersion * @param name name of the StorageVersion (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return ApiResponse<V1alpha1StorageVersion> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -1327,7 +1343,7 @@ public ApiResponse readStorageVersionWithHttpInfo(String * (asynchronously) * read the specified StorageVersion * @param name name of the StorageVersion (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object @@ -1348,7 +1364,7 @@ public okhttp3.Call readStorageVersionAsync(String name, String pretty, final Ap /** * Build call for readStorageVersionStatus * @param name name of the StorageVersion (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -1376,7 +1392,7 @@ public okhttp3.Call readStorageVersionStatusCall(String name, String pretty, fin Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -1411,7 +1427,7 @@ private okhttp3.Call readStorageVersionStatusValidateBeforeCall(String name, Str * * read status of the specified StorageVersion * @param name name of the StorageVersion (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return V1alpha1StorageVersion * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -1430,7 +1446,7 @@ public V1alpha1StorageVersion readStorageVersionStatus(String name, String prett * * read status of the specified StorageVersion * @param name name of the StorageVersion (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return ApiResponse<V1alpha1StorageVersion> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -1450,7 +1466,7 @@ public ApiResponse readStorageVersionStatusWithHttpInfo( * (asynchronously) * read status of the specified StorageVersion * @param name name of the StorageVersion (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object @@ -1472,7 +1488,7 @@ public okhttp3.Call readStorageVersionStatusAsync(String name, String pretty, fi * Build call for replaceStorageVersion * @param name name of the StorageVersion (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -1516,7 +1532,7 @@ public okhttp3.Call replaceStorageVersionCall(String name, V1alpha1StorageVersio Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -1557,7 +1573,7 @@ private okhttp3.Call replaceStorageVersionValidateBeforeCall(String name, V1alph * replace the specified StorageVersion * @param name name of the StorageVersion (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -1581,7 +1597,7 @@ public V1alpha1StorageVersion replaceStorageVersion(String name, V1alpha1Storage * replace the specified StorageVersion * @param name name of the StorageVersion (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -1606,7 +1622,7 @@ public ApiResponse replaceStorageVersionWithHttpInfo(Str * replace the specified StorageVersion * @param name name of the StorageVersion (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -1632,7 +1648,7 @@ public okhttp3.Call replaceStorageVersionAsync(String name, V1alpha1StorageVersi * Build call for replaceStorageVersionStatus * @param name name of the StorageVersion (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -1676,7 +1692,7 @@ public okhttp3.Call replaceStorageVersionStatusCall(String name, V1alpha1Storage Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -1717,7 +1733,7 @@ private okhttp3.Call replaceStorageVersionStatusValidateBeforeCall(String name, * replace status of the specified StorageVersion * @param name name of the StorageVersion (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -1741,7 +1757,7 @@ public V1alpha1StorageVersion replaceStorageVersionStatus(String name, V1alpha1S * replace status of the specified StorageVersion * @param name name of the StorageVersion (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -1766,7 +1782,7 @@ public ApiResponse replaceStorageVersionStatusWithHttpIn * replace status of the specified StorageVersion * @param name name of the StorageVersion (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) 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 0a502ce4cb..c40057af1e 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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 acb22f3bbb..0bf591cb3f 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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 da3a487bdd..397831f900 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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.V1APIResourceList; import io.kubernetes.client.openapi.models.V1DeleteOptions; +import io.kubernetes.client.openapi.models.V1IPAddress; +import io.kubernetes.client.openapi.models.V1IPAddressList; import io.kubernetes.client.openapi.models.V1Ingress; import io.kubernetes.client.openapi.models.V1IngressClass; import io.kubernetes.client.openapi.models.V1IngressClassList; @@ -35,6 +37,8 @@ import io.kubernetes.client.openapi.models.V1NetworkPolicy; import io.kubernetes.client.openapi.models.V1NetworkPolicyList; import io.kubernetes.client.custom.V1Patch; +import io.kubernetes.client.openapi.models.V1ServiceCIDR; +import io.kubernetes.client.openapi.models.V1ServiceCIDRList; import io.kubernetes.client.openapi.models.V1Status; import java.lang.reflect.Type; @@ -62,10 +66,164 @@ public void setApiClient(ApiClient apiClient) { this.localVarApiClient = apiClient; } + /** + * Build call for createIPAddress + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
+ */ + public okhttp3.Call createIPAddressCall(V1IPAddress body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + Object localVarPostBody = body; + + // create path and map variables + String localVarPath = "/apis/networking.k8s.io/v1/ipaddresses"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } + + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + + if (fieldValidation != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + final String[] localVarAccepts = { + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call createIPAddressValidateBeforeCall(V1IPAddress body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'body' is set + if (body == null) { + throw new ApiException("Missing the required parameter 'body' when calling createIPAddress(Async)"); + } + + + okhttp3.Call localVarCall = createIPAddressCall(body, pretty, dryRun, fieldManager, fieldValidation, _callback); + return localVarCall; + + } + + /** + * + * create an IPAddress + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @return V1IPAddress + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
+ */ + public V1IPAddress createIPAddress(V1IPAddress body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { + ApiResponse localVarResp = createIPAddressWithHttpInfo(body, pretty, dryRun, fieldManager, fieldValidation); + return localVarResp.getData(); + } + + /** + * + * create an IPAddress + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @return ApiResponse<V1IPAddress> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
+ */ + public ApiResponse createIPAddressWithHttpInfo(V1IPAddress body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { + okhttp3.Call localVarCall = createIPAddressValidateBeforeCall(body, pretty, dryRun, fieldManager, fieldValidation, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * create an IPAddress + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
+ */ + public okhttp3.Call createIPAddressAsync(V1IPAddress body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = createIPAddressValidateBeforeCall(body, pretty, dryRun, fieldManager, fieldValidation, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } /** * Build call for createIngressClass * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -109,7 +267,7 @@ public okhttp3.Call createIngressClassCall(V1IngressClass body, String pretty, S Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -144,7 +302,7 @@ private okhttp3.Call createIngressClassValidateBeforeCall(V1IngressClass body, S * * create an IngressClass * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -168,7 +326,7 @@ public V1IngressClass createIngressClass(V1IngressClass body, String pretty, Str * * create an IngressClass * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -193,7 +351,7 @@ public ApiResponse createIngressClassWithHttpInfo(V1IngressClass * (asynchronously) * create an IngressClass * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -220,7 +378,7 @@ public okhttp3.Call createIngressClassAsync(V1IngressClass body, String pretty, * Build call for createNamespacedIngress * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -265,7 +423,7 @@ public okhttp3.Call createNamespacedIngressCall(String namespace, V1Ingress body Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -306,7 +464,7 @@ private okhttp3.Call createNamespacedIngressValidateBeforeCall(String namespace, * create an Ingress * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -331,7 +489,7 @@ public V1Ingress createNamespacedIngress(String namespace, V1Ingress body, Strin * create an Ingress * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -357,7 +515,7 @@ public ApiResponse createNamespacedIngressWithHttpInfo(String namespa * create an Ingress * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -384,7 +542,7 @@ public okhttp3.Call createNamespacedIngressAsync(String namespace, V1Ingress bod * Build call for createNamespacedNetworkPolicy * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -429,7 +587,7 @@ public okhttp3.Call createNamespacedNetworkPolicyCall(String namespace, V1Networ Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -470,7 +628,7 @@ private okhttp3.Call createNamespacedNetworkPolicyValidateBeforeCall(String name * create a NetworkPolicy * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -495,7 +653,7 @@ public V1NetworkPolicy createNamespacedNetworkPolicy(String namespace, V1Network * create a NetworkPolicy * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -521,7 +679,7 @@ public ApiResponse createNamespacedNetworkPolicyWithHttpInfo(St * create a NetworkPolicy * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -545,21 +703,12 @@ public okhttp3.Call createNamespacedNetworkPolicyAsync(String namespace, V1Netwo return localVarCall; } /** - * Build call for deleteCollectionIngressClass - * @param pretty If 'true', then the output is pretty printed. (optional) - * @param _continue 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) + * Build call for createServiceCIDR + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) - * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) - * @param gracePeriodSeconds 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. (optional) - * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) - * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) - * @param orphanDependents 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) - * @param propagationPolicy 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. (optional) - * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) - * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) - * @param body (optional) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -567,14 +716,16 @@ public okhttp3.Call createNamespacedNetworkPolicyAsync(String namespace, V1Netwo + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
*/ - public okhttp3.Call deleteCollectionIngressClassCall(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + public okhttp3.Call createServiceCIDRCall(V1ServiceCIDR body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; // create path and map variables - String localVarPath = "/apis/networking.k8s.io/v1/ingressclasses"; + String localVarPath = "/apis/networking.k8s.io/v1/servicecidrs"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -582,59 +733,23 @@ public okhttp3.Call deleteCollectionIngressClassCall(String pretty, String _cont localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } - if (_continue != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); - } - if (dryRun != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); } - if (fieldSelector != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); - } - - if (gracePeriodSeconds != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); - } - - if (labelSelector != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); - } - - if (limit != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); - } - - if (orphanDependents != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("orphanDependents", orphanDependents)); - } - - if (propagationPolicy != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("propagationPolicy", propagationPolicy)); - } - - if (resourceVersion != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); - } - - if (resourceVersionMatch != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersionMatch", resourceVersionMatch)); - } - - if (sendInitialEvents != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("sendInitialEvents", sendInitialEvents)); + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); } - if (timeoutSeconds != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); + if (fieldValidation != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); } Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -648,98 +763,80 @@ public okhttp3.Call deleteCollectionIngressClassCall(String pretty, String _cont localVarHeaderParams.put("Content-Type", localVarContentType); String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteCollectionIngressClassValidateBeforeCall(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call createServiceCIDRValidateBeforeCall(V1ServiceCIDR body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'body' is set + if (body == null) { + throw new ApiException("Missing the required parameter 'body' when calling createServiceCIDR(Async)"); + } - okhttp3.Call localVarCall = deleteCollectionIngressClassCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + okhttp3.Call localVarCall = createServiceCIDRCall(body, pretty, dryRun, fieldManager, fieldValidation, _callback); return localVarCall; } /** * - * delete collection of IngressClass - * @param pretty If 'true', then the output is pretty printed. (optional) - * @param _continue 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) + * create a ServiceCIDR + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) - * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) - * @param gracePeriodSeconds 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. (optional) - * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) - * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) - * @param orphanDependents 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) - * @param propagationPolicy 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. (optional) - * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) - * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) - * @param body (optional) - * @return V1Status + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @return V1ServiceCIDR * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
*/ - public V1Status deleteCollectionIngressClass(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body) throws ApiException { - ApiResponse localVarResp = deleteCollectionIngressClassWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); + public V1ServiceCIDR createServiceCIDR(V1ServiceCIDR body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { + ApiResponse localVarResp = createServiceCIDRWithHttpInfo(body, pretty, dryRun, fieldManager, fieldValidation); return localVarResp.getData(); } /** * - * delete collection of IngressClass - * @param pretty If 'true', then the output is pretty printed. (optional) - * @param _continue 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) + * create a ServiceCIDR + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) - * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) - * @param gracePeriodSeconds 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. (optional) - * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) - * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) - * @param orphanDependents 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) - * @param propagationPolicy 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. (optional) - * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) - * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) - * @param body (optional) - * @return ApiResponse<V1Status> + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @return ApiResponse<V1ServiceCIDR> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
*/ - public ApiResponse deleteCollectionIngressClassWithHttpInfo(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body) throws ApiException { - okhttp3.Call localVarCall = deleteCollectionIngressClassValidateBeforeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, null); - Type localVarReturnType = new TypeToken(){}.getType(); + public ApiResponse createServiceCIDRWithHttpInfo(V1ServiceCIDR body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { + okhttp3.Call localVarCall = createServiceCIDRValidateBeforeCall(body, pretty, dryRun, fieldManager, fieldValidation, null); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * (asynchronously) - * delete collection of IngressClass - * @param pretty If 'true', then the output is pretty printed. (optional) - * @param _continue 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) + * create a ServiceCIDR + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) - * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) - * @param gracePeriodSeconds 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. (optional) - * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) - * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) - * @param orphanDependents 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) - * @param propagationPolicy 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. (optional) - * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) - * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) - * @param body (optional) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object @@ -747,24 +844,26 @@ public ApiResponse deleteCollectionIngressClassWithHttpInfo(String pre + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
*/ - public okhttp3.Call deleteCollectionIngressClassAsync(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + public okhttp3.Call createServiceCIDRAsync(V1ServiceCIDR body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = deleteCollectionIngressClassValidateBeforeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + okhttp3.Call localVarCall = createServiceCIDRValidateBeforeCall(body, pretty, dryRun, fieldManager, fieldValidation, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** - * Build call for deleteCollectionNamespacedIngress - * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * Build call for deleteCollectionIPAddress + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param _continue 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) * @param dryRun 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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @param orphanDependents 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) @@ -784,12 +883,11 @@ public okhttp3.Call deleteCollectionIngressClassAsync(String pretty, String _con 401 Unauthorized - */ - public okhttp3.Call deleteCollectionNamespacedIngressCall(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + public okhttp3.Call deleteCollectionIPAddressCall(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; // create path and map variables - String localVarPath = "/apis/networking.k8s.io/v1/namespaces/{namespace}/ingresses" - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + String localVarPath = "/apis/networking.k8s.io/v1/ipaddresses"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -813,6 +911,10 @@ public okhttp3.Call deleteCollectionNamespacedIngressCall(String namespace, Stri localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); } + if (ignoreStoreReadErrorWithClusterBreakingPotential != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("ignoreStoreReadErrorWithClusterBreakingPotential", ignoreStoreReadErrorWithClusterBreakingPotential)); + } + if (labelSelector != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); } @@ -849,7 +951,7 @@ public okhttp3.Call deleteCollectionNamespacedIngressCall(String namespace, Stri Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -867,28 +969,23 @@ public okhttp3.Call deleteCollectionNamespacedIngressCall(String namespace, Stri } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteCollectionNamespacedIngressValidateBeforeCall(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - - // verify the required parameter 'namespace' is set - if (namespace == null) { - throw new ApiException("Missing the required parameter 'namespace' when calling deleteCollectionNamespacedIngress(Async)"); - } + private okhttp3.Call deleteCollectionIPAddressValidateBeforeCall(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = deleteCollectionNamespacedIngressCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + okhttp3.Call localVarCall = deleteCollectionIPAddressCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); return localVarCall; } /** * - * delete collection of Ingress - * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * delete collection of IPAddress + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param _continue 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) * @param dryRun 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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @param orphanDependents 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) @@ -907,20 +1004,20 @@ private okhttp3.Call deleteCollectionNamespacedIngressValidateBeforeCall(String 401 Unauthorized - */ - public V1Status deleteCollectionNamespacedIngress(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body) throws ApiException { - ApiResponse localVarResp = deleteCollectionNamespacedIngressWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); + public V1Status deleteCollectionIPAddress(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body) throws ApiException { + ApiResponse localVarResp = deleteCollectionIPAddressWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); return localVarResp.getData(); } /** * - * delete collection of Ingress - * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * delete collection of IPAddress + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param _continue 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) * @param dryRun 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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @param orphanDependents 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) @@ -939,21 +1036,21 @@ public V1Status deleteCollectionNamespacedIngress(String namespace, String prett 401 Unauthorized - */ - public ApiResponse deleteCollectionNamespacedIngressWithHttpInfo(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body) throws ApiException { - okhttp3.Call localVarCall = deleteCollectionNamespacedIngressValidateBeforeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, null); + public ApiResponse deleteCollectionIPAddressWithHttpInfo(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteCollectionIPAddressValidateBeforeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * (asynchronously) - * delete collection of Ingress - * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * delete collection of IPAddress + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param _continue 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) * @param dryRun 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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @param orphanDependents 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) @@ -973,21 +1070,21 @@ public ApiResponse deleteCollectionNamespacedIngressWithHttpInfo(Strin 401 Unauthorized - */ - public okhttp3.Call deleteCollectionNamespacedIngressAsync(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + public okhttp3.Call deleteCollectionIPAddressAsync(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = deleteCollectionNamespacedIngressValidateBeforeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + okhttp3.Call localVarCall = deleteCollectionIPAddressValidateBeforeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** - * Build call for deleteCollectionNamespacedNetworkPolicy - * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * Build call for deleteCollectionIngressClass + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param _continue 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) * @param dryRun 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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @param orphanDependents 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) @@ -1007,12 +1104,11 @@ public okhttp3.Call deleteCollectionNamespacedIngressAsync(String namespace, Str 401 Unauthorized - */ - public okhttp3.Call deleteCollectionNamespacedNetworkPolicyCall(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + public okhttp3.Call deleteCollectionIngressClassCall(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; // create path and map variables - String localVarPath = "/apis/networking.k8s.io/v1/namespaces/{namespace}/networkpolicies" - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + String localVarPath = "/apis/networking.k8s.io/v1/ingressclasses"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -1036,6 +1132,10 @@ public okhttp3.Call deleteCollectionNamespacedNetworkPolicyCall(String namespace localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); } + if (ignoreStoreReadErrorWithClusterBreakingPotential != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("ignoreStoreReadErrorWithClusterBreakingPotential", ignoreStoreReadErrorWithClusterBreakingPotential)); + } + if (labelSelector != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); } @@ -1072,7 +1172,7 @@ public okhttp3.Call deleteCollectionNamespacedNetworkPolicyCall(String namespace Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -1090,28 +1190,23 @@ public okhttp3.Call deleteCollectionNamespacedNetworkPolicyCall(String namespace } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteCollectionNamespacedNetworkPolicyValidateBeforeCall(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - - // verify the required parameter 'namespace' is set - if (namespace == null) { - throw new ApiException("Missing the required parameter 'namespace' when calling deleteCollectionNamespacedNetworkPolicy(Async)"); - } + private okhttp3.Call deleteCollectionIngressClassValidateBeforeCall(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = deleteCollectionNamespacedNetworkPolicyCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + okhttp3.Call localVarCall = deleteCollectionIngressClassCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); return localVarCall; } /** * - * delete collection of NetworkPolicy - * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * delete collection of IngressClass + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param _continue 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) * @param dryRun 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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @param orphanDependents 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) @@ -1130,20 +1225,20 @@ private okhttp3.Call deleteCollectionNamespacedNetworkPolicyValidateBeforeCall(S 401 Unauthorized - */ - public V1Status deleteCollectionNamespacedNetworkPolicy(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body) throws ApiException { - ApiResponse localVarResp = deleteCollectionNamespacedNetworkPolicyWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); + public V1Status deleteCollectionIngressClass(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body) throws ApiException { + ApiResponse localVarResp = deleteCollectionIngressClassWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); return localVarResp.getData(); } /** * - * delete collection of NetworkPolicy - * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * delete collection of IngressClass + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param _continue 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) * @param dryRun 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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @param orphanDependents 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) @@ -1162,21 +1257,21 @@ public V1Status deleteCollectionNamespacedNetworkPolicy(String namespace, String 401 Unauthorized - */ - public ApiResponse deleteCollectionNamespacedNetworkPolicyWithHttpInfo(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body) throws ApiException { - okhttp3.Call localVarCall = deleteCollectionNamespacedNetworkPolicyValidateBeforeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, null); + public ApiResponse deleteCollectionIngressClassWithHttpInfo(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteCollectionIngressClassValidateBeforeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * (asynchronously) - * delete collection of NetworkPolicy - * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * delete collection of IngressClass + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param _continue 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) * @param dryRun 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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @param orphanDependents 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) @@ -1196,21 +1291,30 @@ public ApiResponse deleteCollectionNamespacedNetworkPolicyWithHttpInfo 401 Unauthorized - */ - public okhttp3.Call deleteCollectionNamespacedNetworkPolicyAsync(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + public okhttp3.Call deleteCollectionIngressClassAsync(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = deleteCollectionNamespacedNetworkPolicyValidateBeforeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + okhttp3.Call localVarCall = deleteCollectionIngressClassValidateBeforeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** - * Build call for deleteIngressClass - * @param name name of the IngressClass (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * Build call for deleteCollectionNamespacedIngress + * @param namespace object name and auth scope, such as for teams and projects (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param _continue 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) * @param dryRun 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) + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @param orphanDependents 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) * @param propagationPolicy 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. (optional) + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param body (optional) * @param _callback Callback for upload/download progress * @return Call to execute @@ -1219,16 +1323,15 @@ public okhttp3.Call deleteCollectionNamespacedNetworkPolicyAsync(String namespac -
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ - public okhttp3.Call deleteIngressClassCall(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + public okhttp3.Call deleteCollectionNamespacedIngressCall(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; // create path and map variables - String localVarPath = "/apis/networking.k8s.io/v1/ingressclasses/{name}" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); + String localVarPath = "/apis/networking.k8s.io/v1/namespaces/{namespace}/ingresses" + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -1236,14 +1339,34 @@ public okhttp3.Call deleteIngressClassCall(String name, String pretty, String dr localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } + if (_continue != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); + } + if (dryRun != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); } + if (fieldSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); + } + if (gracePeriodSeconds != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); } + if (ignoreStoreReadErrorWithClusterBreakingPotential != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("ignoreStoreReadErrorWithClusterBreakingPotential", ignoreStoreReadErrorWithClusterBreakingPotential)); + } + + if (labelSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); + } + + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + } + if (orphanDependents != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("orphanDependents", orphanDependents)); } @@ -1252,11 +1375,27 @@ public okhttp3.Call deleteIngressClassCall(String name, String pretty, String dr localVarQueryParams.addAll(localVarApiClient.parameterToPair("propagationPolicy", propagationPolicy)); } + if (resourceVersion != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); + } + + if (resourceVersionMatch != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersionMatch", resourceVersionMatch)); + } + + if (sendInitialEvents != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("sendInitialEvents", sendInitialEvents)); + } + + if (timeoutSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); + } + Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -1274,28 +1413,37 @@ public okhttp3.Call deleteIngressClassCall(String name, String pretty, String dr } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteIngressClassValidateBeforeCall(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionNamespacedIngressValidateBeforeCall(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'name' is set - if (name == null) { - throw new ApiException("Missing the required parameter 'name' when calling deleteIngressClass(Async)"); + // verify the required parameter 'namespace' is set + if (namespace == null) { + throw new ApiException("Missing the required parameter 'namespace' when calling deleteCollectionNamespacedIngress(Async)"); } - okhttp3.Call localVarCall = deleteIngressClassCall(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); + okhttp3.Call localVarCall = deleteCollectionNamespacedIngressCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); return localVarCall; } /** * - * delete an IngressClass - * @param name name of the IngressClass (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * delete collection of Ingress + * @param namespace object name and auth scope, such as for teams and projects (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param _continue 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) * @param dryRun 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) + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @param orphanDependents 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) * @param propagationPolicy 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. (optional) + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param body (optional) * @return V1Status * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body @@ -1303,24 +1451,32 @@ private okhttp3.Call deleteIngressClassValidateBeforeCall(String name, String pr -
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ - public V1Status deleteIngressClass(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { - ApiResponse localVarResp = deleteIngressClassWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body); + public V1Status deleteCollectionNamespacedIngress(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body) throws ApiException { + ApiResponse localVarResp = deleteCollectionNamespacedIngressWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); return localVarResp.getData(); } /** * - * delete an IngressClass - * @param name name of the IngressClass (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * delete collection of Ingress + * @param namespace object name and auth scope, such as for teams and projects (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param _continue 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) * @param dryRun 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) + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @param orphanDependents 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) * @param propagationPolicy 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. (optional) + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param body (optional) * @return ApiResponse<V1Status> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body @@ -1328,25 +1484,33 @@ public V1Status deleteIngressClass(String name, String pretty, String dryRun, In -
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ - public ApiResponse deleteIngressClassWithHttpInfo(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { - okhttp3.Call localVarCall = deleteIngressClassValidateBeforeCall(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, null); + public ApiResponse deleteCollectionNamespacedIngressWithHttpInfo(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteCollectionNamespacedIngressValidateBeforeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * (asynchronously) - * delete an IngressClass - * @param name name of the IngressClass (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * delete collection of Ingress + * @param namespace object name and auth scope, such as for teams and projects (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param _continue 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) * @param dryRun 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) + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @param orphanDependents 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) * @param propagationPolicy 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. (optional) + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param body (optional) * @param _callback The callback to be executed when the API call finishes * @return The request call @@ -1355,26 +1519,33 @@ public ApiResponse deleteIngressClassWithHttpInfo(String name, String -
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ - public okhttp3.Call deleteIngressClassAsync(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + public okhttp3.Call deleteCollectionNamespacedIngressAsync(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = deleteIngressClassValidateBeforeCall(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); + okhttp3.Call localVarCall = deleteCollectionNamespacedIngressValidateBeforeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** - * Build call for deleteNamespacedIngress - * @param name name of the Ingress (required) + * Build call for deleteCollectionNamespacedNetworkPolicy * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param _continue 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) * @param dryRun 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) + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @param orphanDependents 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) * @param propagationPolicy 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. (optional) + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param body (optional) * @param _callback Callback for upload/download progress * @return Call to execute @@ -1383,16 +1554,14 @@ public okhttp3.Call deleteIngressClassAsync(String name, String pretty, String d -
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ - public okhttp3.Call deleteNamespacedIngressCall(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + public okhttp3.Call deleteCollectionNamespacedNetworkPolicyCall(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; // create path and map variables - String localVarPath = "/apis/networking.k8s.io/v1/namespaces/{namespace}/ingresses/{name}" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) + String localVarPath = "/apis/networking.k8s.io/v1/namespaces/{namespace}/networkpolicies" .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); @@ -1401,14 +1570,34 @@ public okhttp3.Call deleteNamespacedIngressCall(String name, String namespace, S localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } + if (_continue != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); + } + if (dryRun != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); } + if (fieldSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); + } + if (gracePeriodSeconds != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); } + if (ignoreStoreReadErrorWithClusterBreakingPotential != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("ignoreStoreReadErrorWithClusterBreakingPotential", ignoreStoreReadErrorWithClusterBreakingPotential)); + } + + if (labelSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); + } + + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + } + if (orphanDependents != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("orphanDependents", orphanDependents)); } @@ -1417,11 +1606,27 @@ public okhttp3.Call deleteNamespacedIngressCall(String name, String namespace, S localVarQueryParams.addAll(localVarApiClient.parameterToPair("propagationPolicy", propagationPolicy)); } + if (resourceVersion != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); + } + + if (resourceVersionMatch != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersionMatch", resourceVersionMatch)); + } + + if (sendInitialEvents != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("sendInitialEvents", sendInitialEvents)); + } + + if (timeoutSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); + } + Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -1439,34 +1644,37 @@ public okhttp3.Call deleteNamespacedIngressCall(String name, String namespace, S } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteNamespacedIngressValidateBeforeCall(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - - // verify the required parameter 'name' is set - if (name == null) { - throw new ApiException("Missing the required parameter 'name' when calling deleteNamespacedIngress(Async)"); - } + private okhttp3.Call deleteCollectionNamespacedNetworkPolicyValidateBeforeCall(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { // verify the required parameter 'namespace' is set if (namespace == null) { - throw new ApiException("Missing the required parameter 'namespace' when calling deleteNamespacedIngress(Async)"); + throw new ApiException("Missing the required parameter 'namespace' when calling deleteCollectionNamespacedNetworkPolicy(Async)"); } - okhttp3.Call localVarCall = deleteNamespacedIngressCall(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); + okhttp3.Call localVarCall = deleteCollectionNamespacedNetworkPolicyCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); return localVarCall; } /** * - * delete an Ingress - * @param name name of the Ingress (required) + * delete collection of NetworkPolicy * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param _continue 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) * @param dryRun 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) + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @param orphanDependents 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) * @param propagationPolicy 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. (optional) + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param body (optional) * @return V1Status * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body @@ -1474,25 +1682,32 @@ private okhttp3.Call deleteNamespacedIngressValidateBeforeCall(String name, Stri -
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ - public V1Status deleteNamespacedIngress(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { - ApiResponse localVarResp = deleteNamespacedIngressWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body); + public V1Status deleteCollectionNamespacedNetworkPolicy(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body) throws ApiException { + ApiResponse localVarResp = deleteCollectionNamespacedNetworkPolicyWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); return localVarResp.getData(); } /** * - * delete an Ingress - * @param name name of the Ingress (required) + * delete collection of NetworkPolicy * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param _continue 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) * @param dryRun 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) + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @param orphanDependents 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) * @param propagationPolicy 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. (optional) + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param body (optional) * @return ApiResponse<V1Status> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body @@ -1500,26 +1715,33 @@ public V1Status deleteNamespacedIngress(String name, String namespace, String pr -
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ - public ApiResponse deleteNamespacedIngressWithHttpInfo(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { - okhttp3.Call localVarCall = deleteNamespacedIngressValidateBeforeCall(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, null); + public ApiResponse deleteCollectionNamespacedNetworkPolicyWithHttpInfo(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteCollectionNamespacedNetworkPolicyValidateBeforeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * (asynchronously) - * delete an Ingress - * @param name name of the Ingress (required) + * delete collection of NetworkPolicy * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param _continue 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) * @param dryRun 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) + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @param orphanDependents 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) * @param propagationPolicy 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. (optional) + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param body (optional) * @param _callback The callback to be executed when the API call finishes * @return The request call @@ -1528,26 +1750,32 @@ public ApiResponse deleteNamespacedIngressWithHttpInfo(String name, St -
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ - public okhttp3.Call deleteNamespacedIngressAsync(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + public okhttp3.Call deleteCollectionNamespacedNetworkPolicyAsync(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = deleteNamespacedIngressValidateBeforeCall(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); + okhttp3.Call localVarCall = deleteCollectionNamespacedNetworkPolicyValidateBeforeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** - * Build call for deleteNamespacedNetworkPolicy - * @param name name of the NetworkPolicy (required) - * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * Build call for deleteCollectionServiceCIDR + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param _continue 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) * @param dryRun 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) + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @param orphanDependents 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) * @param propagationPolicy 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. (optional) + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param body (optional) * @param _callback Callback for upload/download progress * @return Call to execute @@ -1556,17 +1784,14 @@ public okhttp3.Call deleteNamespacedIngressAsync(String name, String namespace, -
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ - public okhttp3.Call deleteNamespacedNetworkPolicyCall(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + public okhttp3.Call deleteCollectionServiceCIDRCall(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; // create path and map variables - String localVarPath = "/apis/networking.k8s.io/v1/namespaces/{namespace}/networkpolicies/{name}" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + String localVarPath = "/apis/networking.k8s.io/v1/servicecidrs"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -1574,27 +1799,63 @@ public okhttp3.Call deleteNamespacedNetworkPolicyCall(String name, String namesp localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } + if (_continue != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); + } + if (dryRun != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); } + if (fieldSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); + } + if (gracePeriodSeconds != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); } - if (orphanDependents != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("orphanDependents", orphanDependents)); + if (ignoreStoreReadErrorWithClusterBreakingPotential != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("ignoreStoreReadErrorWithClusterBreakingPotential", ignoreStoreReadErrorWithClusterBreakingPotential)); } - if (propagationPolicy != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("propagationPolicy", propagationPolicy)); - } + if (labelSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); + } + + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + } + + if (orphanDependents != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("orphanDependents", orphanDependents)); + } + + if (propagationPolicy != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("propagationPolicy", propagationPolicy)); + } + + if (resourceVersion != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); + } + + if (resourceVersionMatch != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersionMatch", resourceVersionMatch)); + } + + if (sendInitialEvents != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("sendInitialEvents", sendInitialEvents)); + } + + if (timeoutSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); + } Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -1612,34 +1873,31 @@ public okhttp3.Call deleteNamespacedNetworkPolicyCall(String name, String namesp } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteNamespacedNetworkPolicyValidateBeforeCall(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - - // verify the required parameter 'name' is set - if (name == null) { - throw new ApiException("Missing the required parameter 'name' when calling deleteNamespacedNetworkPolicy(Async)"); - } - - // verify the required parameter 'namespace' is set - if (namespace == null) { - throw new ApiException("Missing the required parameter 'namespace' when calling deleteNamespacedNetworkPolicy(Async)"); - } + private okhttp3.Call deleteCollectionServiceCIDRValidateBeforeCall(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = deleteNamespacedNetworkPolicyCall(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); + okhttp3.Call localVarCall = deleteCollectionServiceCIDRCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); return localVarCall; } /** * - * delete a NetworkPolicy - * @param name name of the NetworkPolicy (required) - * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * delete collection of ServiceCIDR + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param _continue 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) * @param dryRun 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) + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @param orphanDependents 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) * @param propagationPolicy 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. (optional) + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param body (optional) * @return V1Status * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body @@ -1647,25 +1905,31 @@ private okhttp3.Call deleteNamespacedNetworkPolicyValidateBeforeCall(String name -
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ - public V1Status deleteNamespacedNetworkPolicy(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { - ApiResponse localVarResp = deleteNamespacedNetworkPolicyWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body); + public V1Status deleteCollectionServiceCIDR(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body) throws ApiException { + ApiResponse localVarResp = deleteCollectionServiceCIDRWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); return localVarResp.getData(); } /** * - * delete a NetworkPolicy - * @param name name of the NetworkPolicy (required) - * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * delete collection of ServiceCIDR + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param _continue 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) * @param dryRun 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) + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @param orphanDependents 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) * @param propagationPolicy 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. (optional) + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param body (optional) * @return ApiResponse<V1Status> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body @@ -1673,26 +1937,32 @@ public V1Status deleteNamespacedNetworkPolicy(String name, String namespace, Str -
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ - public ApiResponse deleteNamespacedNetworkPolicyWithHttpInfo(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { - okhttp3.Call localVarCall = deleteNamespacedNetworkPolicyValidateBeforeCall(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, null); + public ApiResponse deleteCollectionServiceCIDRWithHttpInfo(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteCollectionServiceCIDRValidateBeforeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * (asynchronously) - * delete a NetworkPolicy - * @param name name of the NetworkPolicy (required) - * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * delete collection of ServiceCIDR + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param _continue 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) * @param dryRun 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) + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @param orphanDependents 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) * @param propagationPolicy 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. (optional) + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param body (optional) * @param _callback The callback to be executed when the API call finishes * @return The request call @@ -1701,19 +1971,26 @@ public ApiResponse deleteNamespacedNetworkPolicyWithHttpInfo(String na -
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ - public okhttp3.Call deleteNamespacedNetworkPolicyAsync(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + public okhttp3.Call deleteCollectionServiceCIDRAsync(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = deleteNamespacedNetworkPolicyValidateBeforeCall(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); + okhttp3.Call localVarCall = deleteCollectionServiceCIDRValidateBeforeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** - * Build call for getAPIResources + * Build call for deleteIPAddress + * @param name name of the IPAddress (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) + * @param orphanDependents 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) + * @param propagationPolicy 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. (optional) + * @param body (optional) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -1721,22 +1998,48 @@ public okhttp3.Call deleteNamespacedNetworkPolicyAsync(String name, String names +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ - public okhttp3.Call getAPIResourcesCall(final ApiCallback _callback) throws ApiException { - Object localVarPostBody = null; + public okhttp3.Call deleteIPAddressCall(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + Object localVarPostBody = body; // create path and map variables - String localVarPath = "/apis/networking.k8s.io/v1/"; + String localVarPath = "/apis/networking.k8s.io/v1/ipaddresses/{name}" + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } + + if (gracePeriodSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); + } + + if (ignoreStoreReadErrorWithClusterBreakingPotential != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("ignoreStoreReadErrorWithClusterBreakingPotential", ignoreStoreReadErrorWithClusterBreakingPotential)); + } + + if (orphanDependents != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("orphanDependents", orphanDependents)); + } + + if (propagationPolicy != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("propagationPolicy", propagationPolicy)); + } + Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -1744,62 +2047,93 @@ public okhttp3.Call getAPIResourcesCall(final ApiCallback _callback) throws ApiE } final String[] localVarContentTypes = { - + "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") - private okhttp3.Call getAPIResourcesValidateBeforeCall(final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteIPAddressValidateBeforeCall(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'name' is set + if (name == null) { + throw new ApiException("Missing the required parameter 'name' when calling deleteIPAddress(Async)"); + } - okhttp3.Call localVarCall = getAPIResourcesCall(_callback); + + okhttp3.Call localVarCall = deleteIPAddressCall(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); return localVarCall; } /** * - * get available resources - * @return V1APIResourceList + * delete an IPAddress + * @param name name of the IPAddress (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) + * @param orphanDependents 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) + * @param propagationPolicy 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. (optional) + * @param body (optional) + * @return V1Status * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ - public V1APIResourceList getAPIResources() throws ApiException { - ApiResponse localVarResp = getAPIResourcesWithHttpInfo(); + public V1Status deleteIPAddress(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { + ApiResponse localVarResp = deleteIPAddressWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body); return localVarResp.getData(); } /** * - * get available resources - * @return ApiResponse<V1APIResourceList> + * delete an IPAddress + * @param name name of the IPAddress (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) + * @param orphanDependents 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) + * @param propagationPolicy 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. (optional) + * @param body (optional) + * @return ApiResponse<V1Status> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ - public ApiResponse getAPIResourcesWithHttpInfo() throws ApiException { - okhttp3.Call localVarCall = getAPIResourcesValidateBeforeCall(null); - Type localVarReturnType = new TypeToken(){}.getType(); + public ApiResponse deleteIPAddressWithHttpInfo(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteIPAddressValidateBeforeCall(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, null); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * (asynchronously) - * get available resources + * delete an IPAddress + * @param name name of the IPAddress (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) + * @param orphanDependents 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) + * @param propagationPolicy 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. (optional) + * @param body (optional) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object @@ -1807,29 +2141,27 @@ public ApiResponse getAPIResourcesWithHttpInfo() throws ApiEx +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ - public okhttp3.Call getAPIResourcesAsync(final ApiCallback _callback) throws ApiException { + public okhttp3.Call deleteIPAddressAsync(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = getAPIResourcesValidateBeforeCall(_callback); - Type localVarReturnType = new TypeToken(){}.getType(); + okhttp3.Call localVarCall = deleteIPAddressValidateBeforeCall(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** - * Build call for listIngressClass - * @param pretty If 'true', then the output is pretty printed. (optional) - * @param allowWatchBookmarks 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. (optional) - * @param _continue 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) - * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) - * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) - * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) - * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) - * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) - * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + * Build call for deleteIngressClass + * @param name name of the IngressClass (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) + * @param orphanDependents 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) + * @param propagationPolicy 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. (optional) + * @param body (optional) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -1837,14 +2169,16 @@ public okhttp3.Call getAPIResourcesAsync(final ApiCallback _c +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ - public okhttp3.Call listIngressClassCall(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { - Object localVarPostBody = null; + public okhttp3.Call deleteIngressClassCall(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + Object localVarPostBody = body; // create path and map variables - String localVarPath = "/apis/networking.k8s.io/v1/ingressclasses"; + String localVarPath = "/apis/networking.k8s.io/v1/ingressclasses/{name}" + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -1852,51 +2186,31 @@ public okhttp3.Call listIngressClassCall(String pretty, Boolean allowWatchBookma localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } - if (allowWatchBookmarks != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("allowWatchBookmarks", allowWatchBookmarks)); - } - - if (_continue != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); - } - - if (fieldSelector != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); - } - - if (labelSelector != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); - } - - if (limit != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); - } - - if (resourceVersion != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); } - if (resourceVersionMatch != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersionMatch", resourceVersionMatch)); + if (gracePeriodSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); } - if (sendInitialEvents != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("sendInitialEvents", sendInitialEvents)); + if (ignoreStoreReadErrorWithClusterBreakingPotential != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("ignoreStoreReadErrorWithClusterBreakingPotential", ignoreStoreReadErrorWithClusterBreakingPotential)); } - if (timeoutSeconds != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); + if (orphanDependents != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("orphanDependents", orphanDependents)); } - if (watch != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); + if (propagationPolicy != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("propagationPolicy", propagationPolicy)); } Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -1904,95 +2218,93 @@ public okhttp3.Call listIngressClassCall(String pretty, Boolean allowWatchBookma } final String[] localVarContentTypes = { - + "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") - private okhttp3.Call listIngressClassValidateBeforeCall(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteIngressClassValidateBeforeCall(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'name' is set + if (name == null) { + throw new ApiException("Missing the required parameter 'name' when calling deleteIngressClass(Async)"); + } - okhttp3.Call localVarCall = listIngressClassCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + + okhttp3.Call localVarCall = deleteIngressClassCall(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); return localVarCall; } /** * - * list or watch objects of kind IngressClass - * @param pretty If 'true', then the output is pretty printed. (optional) - * @param allowWatchBookmarks 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. (optional) - * @param _continue 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) - * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) - * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) - * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) - * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) - * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) - * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @return V1IngressClassList + * delete an IngressClass + * @param name name of the IngressClass (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) + * @param orphanDependents 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) + * @param propagationPolicy 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. (optional) + * @param body (optional) + * @return V1Status * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ - public V1IngressClassList listIngressClass(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch) throws ApiException { - ApiResponse localVarResp = listIngressClassWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + public V1Status deleteIngressClass(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { + ApiResponse localVarResp = deleteIngressClassWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body); return localVarResp.getData(); } /** * - * list or watch objects of kind IngressClass - * @param pretty If 'true', then the output is pretty printed. (optional) - * @param allowWatchBookmarks 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. (optional) - * @param _continue 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) - * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) - * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) - * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) - * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) - * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) - * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @return ApiResponse<V1IngressClassList> + * delete an IngressClass + * @param name name of the IngressClass (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) + * @param orphanDependents 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) + * @param propagationPolicy 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. (optional) + * @param body (optional) + * @return ApiResponse<V1Status> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ - public ApiResponse listIngressClassWithHttpInfo(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch) throws ApiException { - okhttp3.Call localVarCall = listIngressClassValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, null); - Type localVarReturnType = new TypeToken(){}.getType(); + public ApiResponse deleteIngressClassWithHttpInfo(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteIngressClassValidateBeforeCall(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, null); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * (asynchronously) - * list or watch objects of kind IngressClass - * @param pretty If 'true', then the output is pretty printed. (optional) - * @param allowWatchBookmarks 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. (optional) - * @param _continue 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) - * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) - * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) - * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) - * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) - * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) - * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + * delete an IngressClass + * @param name name of the IngressClass (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) + * @param orphanDependents 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) + * @param propagationPolicy 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. (optional) + * @param body (optional) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object @@ -2000,29 +2312,28 @@ public ApiResponse listIngressClassWithHttpInfo(String prett +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ - public okhttp3.Call listIngressClassAsync(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + public okhttp3.Call deleteIngressClassAsync(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = listIngressClassValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + okhttp3.Call localVarCall = deleteIngressClassValidateBeforeCall(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** - * Build call for listIngressForAllNamespaces - * @param allowWatchBookmarks 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. (optional) - * @param _continue 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) - * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) - * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) - * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) - * @param pretty If 'true', then the output is pretty printed. (optional) - * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) - * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) - * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + * Build call for deleteNamespacedIngress + * @param name name of the Ingress (required) + * @param namespace object name and auth scope, such as for teams and projects (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) + * @param orphanDependents 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) + * @param propagationPolicy 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. (optional) + * @param body (optional) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -2030,66 +2341,230 @@ public okhttp3.Call listIngressClassAsync(String pretty, Boolean allowWatchBookm +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ - public okhttp3.Call listIngressForAllNamespacesCall(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { - Object localVarPostBody = null; + public okhttp3.Call deleteNamespacedIngressCall(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + Object localVarPostBody = body; // create path and map variables - String localVarPath = "/apis/networking.k8s.io/v1/ingresses"; + String localVarPath = "/apis/networking.k8s.io/v1/namespaces/{namespace}/ingresses/{name}" + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (allowWatchBookmarks != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("allowWatchBookmarks", allowWatchBookmarks)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } - if (_continue != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); } - if (fieldSelector != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); + if (gracePeriodSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); } - if (labelSelector != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); + if (ignoreStoreReadErrorWithClusterBreakingPotential != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("ignoreStoreReadErrorWithClusterBreakingPotential", ignoreStoreReadErrorWithClusterBreakingPotential)); } - if (limit != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + if (orphanDependents != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("orphanDependents", orphanDependents)); + } + + if (propagationPolicy != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("propagationPolicy", propagationPolicy)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + final String[] localVarAccepts = { + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call deleteNamespacedIngressValidateBeforeCall(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'name' is set + if (name == null) { + throw new ApiException("Missing the required parameter 'name' when calling deleteNamespacedIngress(Async)"); + } + + // verify the required parameter 'namespace' is set + if (namespace == null) { + throw new ApiException("Missing the required parameter 'namespace' when calling deleteNamespacedIngress(Async)"); } + + okhttp3.Call localVarCall = deleteNamespacedIngressCall(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); + return localVarCall; + + } + + /** + * + * delete an Ingress + * @param name name of the Ingress (required) + * @param namespace object name and auth scope, such as for teams and projects (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) + * @param orphanDependents 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) + * @param propagationPolicy 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. (optional) + * @param body (optional) + * @return V1Status + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
+ */ + public V1Status deleteNamespacedIngress(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { + ApiResponse localVarResp = deleteNamespacedIngressWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body); + return localVarResp.getData(); + } + + /** + * + * delete an Ingress + * @param name name of the Ingress (required) + * @param namespace object name and auth scope, such as for teams and projects (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) + * @param orphanDependents 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) + * @param propagationPolicy 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. (optional) + * @param body (optional) + * @return ApiResponse<V1Status> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
+ */ + public ApiResponse deleteNamespacedIngressWithHttpInfo(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteNamespacedIngressValidateBeforeCall(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * delete an Ingress + * @param name name of the Ingress (required) + * @param namespace object name and auth scope, such as for teams and projects (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) + * @param orphanDependents 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) + * @param propagationPolicy 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. (optional) + * @param body (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
+ */ + public okhttp3.Call deleteNamespacedIngressAsync(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = deleteNamespacedIngressValidateBeforeCall(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for deleteNamespacedNetworkPolicy + * @param name name of the NetworkPolicy (required) + * @param namespace object name and auth scope, such as for teams and projects (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) + * @param orphanDependents 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) + * @param propagationPolicy 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. (optional) + * @param body (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
+ */ + public okhttp3.Call deleteNamespacedNetworkPolicyCall(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + Object localVarPostBody = body; + + // create path and map variables + String localVarPath = "/apis/networking.k8s.io/v1/namespaces/{namespace}/networkpolicies/{name}" + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } - if (resourceVersion != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); } - if (resourceVersionMatch != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersionMatch", resourceVersionMatch)); + if (gracePeriodSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); } - if (sendInitialEvents != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("sendInitialEvents", sendInitialEvents)); + if (ignoreStoreReadErrorWithClusterBreakingPotential != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("ignoreStoreReadErrorWithClusterBreakingPotential", ignoreStoreReadErrorWithClusterBreakingPotential)); } - if (timeoutSeconds != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); + if (orphanDependents != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("orphanDependents", orphanDependents)); } - if (watch != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); + if (propagationPolicy != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("propagationPolicy", propagationPolicy)); } Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -2097,95 +2572,2786 @@ public okhttp3.Call listIngressForAllNamespacesCall(Boolean allowWatchBookmarks, } final String[] localVarContentTypes = { - + "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") - private okhttp3.Call listIngressForAllNamespacesValidateBeforeCall(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteNamespacedNetworkPolicyValidateBeforeCall(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'name' is set + if (name == null) { + throw new ApiException("Missing the required parameter 'name' when calling deleteNamespacedNetworkPolicy(Async)"); + } + + // verify the required parameter 'namespace' is set + if (namespace == null) { + throw new ApiException("Missing the required parameter 'namespace' when calling deleteNamespacedNetworkPolicy(Async)"); + } + + + okhttp3.Call localVarCall = deleteNamespacedNetworkPolicyCall(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); + return localVarCall; + + } + + /** + * + * delete a NetworkPolicy + * @param name name of the NetworkPolicy (required) + * @param namespace object name and auth scope, such as for teams and projects (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) + * @param orphanDependents 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) + * @param propagationPolicy 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. (optional) + * @param body (optional) + * @return V1Status + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
+ */ + public V1Status deleteNamespacedNetworkPolicy(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { + ApiResponse localVarResp = deleteNamespacedNetworkPolicyWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body); + return localVarResp.getData(); + } + + /** + * + * delete a NetworkPolicy + * @param name name of the NetworkPolicy (required) + * @param namespace object name and auth scope, such as for teams and projects (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) + * @param orphanDependents 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) + * @param propagationPolicy 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. (optional) + * @param body (optional) + * @return ApiResponse<V1Status> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
+ */ + public ApiResponse deleteNamespacedNetworkPolicyWithHttpInfo(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteNamespacedNetworkPolicyValidateBeforeCall(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * delete a NetworkPolicy + * @param name name of the NetworkPolicy (required) + * @param namespace object name and auth scope, such as for teams and projects (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) + * @param orphanDependents 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) + * @param propagationPolicy 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. (optional) + * @param body (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
+ */ + public okhttp3.Call deleteNamespacedNetworkPolicyAsync(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = deleteNamespacedNetworkPolicyValidateBeforeCall(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for deleteServiceCIDR + * @param name name of the ServiceCIDR (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) + * @param orphanDependents 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) + * @param propagationPolicy 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. (optional) + * @param body (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
+ */ + public okhttp3.Call deleteServiceCIDRCall(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + Object localVarPostBody = body; + + // create path and map variables + String localVarPath = "/apis/networking.k8s.io/v1/servicecidrs/{name}" + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } + + if (gracePeriodSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); + } + + if (ignoreStoreReadErrorWithClusterBreakingPotential != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("ignoreStoreReadErrorWithClusterBreakingPotential", ignoreStoreReadErrorWithClusterBreakingPotential)); + } + + if (orphanDependents != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("orphanDependents", orphanDependents)); + } + + if (propagationPolicy != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("propagationPolicy", propagationPolicy)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + final String[] localVarAccepts = { + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call deleteServiceCIDRValidateBeforeCall(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'name' is set + if (name == null) { + throw new ApiException("Missing the required parameter 'name' when calling deleteServiceCIDR(Async)"); + } + + + okhttp3.Call localVarCall = deleteServiceCIDRCall(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); + return localVarCall; + + } + + /** + * + * delete a ServiceCIDR + * @param name name of the ServiceCIDR (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) + * @param orphanDependents 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) + * @param propagationPolicy 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. (optional) + * @param body (optional) + * @return V1Status + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
+ */ + public V1Status deleteServiceCIDR(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { + ApiResponse localVarResp = deleteServiceCIDRWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body); + return localVarResp.getData(); + } + + /** + * + * delete a ServiceCIDR + * @param name name of the ServiceCIDR (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) + * @param orphanDependents 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) + * @param propagationPolicy 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. (optional) + * @param body (optional) + * @return ApiResponse<V1Status> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
+ */ + public ApiResponse deleteServiceCIDRWithHttpInfo(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteServiceCIDRValidateBeforeCall(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * delete a ServiceCIDR + * @param name name of the ServiceCIDR (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) + * @param orphanDependents 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) + * @param propagationPolicy 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. (optional) + * @param body (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
+ */ + public okhttp3.Call deleteServiceCIDRAsync(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = deleteServiceCIDRValidateBeforeCall(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for getAPIResources + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call getAPIResourcesCall(final ApiCallback _callback) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/apis/networking.k8s.io/v1/"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + final String[] localVarAccepts = { + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call getAPIResourcesValidateBeforeCall(final ApiCallback _callback) throws ApiException { + + + okhttp3.Call localVarCall = getAPIResourcesCall(_callback); + return localVarCall; + + } + + /** + * + * get available resources + * @return V1APIResourceList + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public V1APIResourceList getAPIResources() throws ApiException { + ApiResponse localVarResp = getAPIResourcesWithHttpInfo(); + return localVarResp.getData(); + } + + /** + * + * get available resources + * @return ApiResponse<V1APIResourceList> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public ApiResponse getAPIResourcesWithHttpInfo() throws ApiException { + okhttp3.Call localVarCall = getAPIResourcesValidateBeforeCall(null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * get available resources + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call getAPIResourcesAsync(final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = getAPIResourcesValidateBeforeCall(_callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for listIPAddress + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param allowWatchBookmarks 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. (optional) + * @param _continue 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) + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call listIPAddressCall(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/apis/networking.k8s.io/v1/ipaddresses"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + + if (allowWatchBookmarks != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("allowWatchBookmarks", allowWatchBookmarks)); + } + + if (_continue != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); + } + + if (fieldSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); + } + + if (labelSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); + } + + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + } + + if (resourceVersion != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); + } + + if (resourceVersionMatch != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersionMatch", resourceVersionMatch)); + } + + if (sendInitialEvents != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("sendInitialEvents", sendInitialEvents)); + } + + if (timeoutSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); + } + + if (watch != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + final String[] localVarAccepts = { + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch", "application/cbor-seq" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call listIPAddressValidateBeforeCall(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + + + okhttp3.Call localVarCall = listIPAddressCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + return localVarCall; + + } + + /** + * + * list or watch objects of kind IPAddress + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param allowWatchBookmarks 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. (optional) + * @param _continue 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) + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + * @return V1IPAddressList + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public V1IPAddressList listIPAddress(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch) throws ApiException { + ApiResponse localVarResp = listIPAddressWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + return localVarResp.getData(); + } + + /** + * + * list or watch objects of kind IPAddress + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param allowWatchBookmarks 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. (optional) + * @param _continue 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) + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + * @return ApiResponse<V1IPAddressList> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public ApiResponse listIPAddressWithHttpInfo(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch) throws ApiException { + okhttp3.Call localVarCall = listIPAddressValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * list or watch objects of kind IPAddress + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param allowWatchBookmarks 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. (optional) + * @param _continue 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) + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call listIPAddressAsync(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = listIPAddressValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for listIngressClass + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param allowWatchBookmarks 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. (optional) + * @param _continue 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) + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call listIngressClassCall(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/apis/networking.k8s.io/v1/ingressclasses"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + + if (allowWatchBookmarks != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("allowWatchBookmarks", allowWatchBookmarks)); + } + + if (_continue != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); + } + + if (fieldSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); + } + + if (labelSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); + } + + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + } + + if (resourceVersion != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); + } + + if (resourceVersionMatch != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersionMatch", resourceVersionMatch)); + } + + if (sendInitialEvents != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("sendInitialEvents", sendInitialEvents)); + } + + if (timeoutSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); + } + + if (watch != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + final String[] localVarAccepts = { + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch", "application/cbor-seq" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call listIngressClassValidateBeforeCall(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + + + okhttp3.Call localVarCall = listIngressClassCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + return localVarCall; + + } + + /** + * + * list or watch objects of kind IngressClass + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param allowWatchBookmarks 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. (optional) + * @param _continue 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) + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + * @return V1IngressClassList + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public V1IngressClassList listIngressClass(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch) throws ApiException { + ApiResponse localVarResp = listIngressClassWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + return localVarResp.getData(); + } + + /** + * + * list or watch objects of kind IngressClass + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param allowWatchBookmarks 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. (optional) + * @param _continue 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) + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + * @return ApiResponse<V1IngressClassList> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public ApiResponse listIngressClassWithHttpInfo(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch) throws ApiException { + okhttp3.Call localVarCall = listIngressClassValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * list or watch objects of kind IngressClass + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param allowWatchBookmarks 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. (optional) + * @param _continue 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) + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call listIngressClassAsync(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = listIngressClassValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for listIngressForAllNamespaces + * @param allowWatchBookmarks 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. (optional) + * @param _continue 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) + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call listIngressForAllNamespacesCall(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/apis/networking.k8s.io/v1/ingresses"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (allowWatchBookmarks != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("allowWatchBookmarks", allowWatchBookmarks)); + } + + if (_continue != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); + } + + if (fieldSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); + } + + if (labelSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); + } + + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + } + + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + + if (resourceVersion != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); + } + + if (resourceVersionMatch != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersionMatch", resourceVersionMatch)); + } + + if (sendInitialEvents != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("sendInitialEvents", sendInitialEvents)); + } + + if (timeoutSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); + } + + if (watch != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + final String[] localVarAccepts = { + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch", "application/cbor-seq" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call listIngressForAllNamespacesValidateBeforeCall(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + + + okhttp3.Call localVarCall = listIngressForAllNamespacesCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + return localVarCall; + + } + + /** + * + * list or watch objects of kind Ingress + * @param allowWatchBookmarks 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. (optional) + * @param _continue 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) + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + * @return V1IngressList + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public V1IngressList listIngressForAllNamespaces(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch) throws ApiException { + ApiResponse localVarResp = listIngressForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + return localVarResp.getData(); + } + + /** + * + * list or watch objects of kind Ingress + * @param allowWatchBookmarks 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. (optional) + * @param _continue 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) + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + * @return ApiResponse<V1IngressList> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public ApiResponse listIngressForAllNamespacesWithHttpInfo(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch) throws ApiException { + okhttp3.Call localVarCall = listIngressForAllNamespacesValidateBeforeCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * list or watch objects of kind Ingress + * @param allowWatchBookmarks 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. (optional) + * @param _continue 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) + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call listIngressForAllNamespacesAsync(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = listIngressForAllNamespacesValidateBeforeCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for listNamespacedIngress + * @param namespace object name and auth scope, such as for teams and projects (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param allowWatchBookmarks 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. (optional) + * @param _continue 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) + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call listNamespacedIngressCall(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/apis/networking.k8s.io/v1/namespaces/{namespace}/ingresses" + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + + if (allowWatchBookmarks != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("allowWatchBookmarks", allowWatchBookmarks)); + } + + if (_continue != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); + } + + if (fieldSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); + } + + if (labelSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); + } + + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + } + + if (resourceVersion != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); + } + + if (resourceVersionMatch != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersionMatch", resourceVersionMatch)); + } + + if (sendInitialEvents != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("sendInitialEvents", sendInitialEvents)); + } + + if (timeoutSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); + } + + if (watch != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + final String[] localVarAccepts = { + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch", "application/cbor-seq" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call listNamespacedIngressValidateBeforeCall(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'namespace' is set + if (namespace == null) { + throw new ApiException("Missing the required parameter 'namespace' when calling listNamespacedIngress(Async)"); + } + + + okhttp3.Call localVarCall = listNamespacedIngressCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + return localVarCall; + + } + + /** + * + * list or watch objects of kind Ingress + * @param namespace object name and auth scope, such as for teams and projects (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param allowWatchBookmarks 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. (optional) + * @param _continue 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) + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + * @return V1IngressList + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public V1IngressList listNamespacedIngress(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch) throws ApiException { + ApiResponse localVarResp = listNamespacedIngressWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + return localVarResp.getData(); + } + + /** + * + * list or watch objects of kind Ingress + * @param namespace object name and auth scope, such as for teams and projects (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param allowWatchBookmarks 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. (optional) + * @param _continue 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) + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + * @return ApiResponse<V1IngressList> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public ApiResponse listNamespacedIngressWithHttpInfo(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch) throws ApiException { + okhttp3.Call localVarCall = listNamespacedIngressValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * list or watch objects of kind Ingress + * @param namespace object name and auth scope, such as for teams and projects (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param allowWatchBookmarks 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. (optional) + * @param _continue 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) + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call listNamespacedIngressAsync(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = listNamespacedIngressValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for listNamespacedNetworkPolicy + * @param namespace object name and auth scope, such as for teams and projects (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param allowWatchBookmarks 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. (optional) + * @param _continue 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) + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call listNamespacedNetworkPolicyCall(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/apis/networking.k8s.io/v1/namespaces/{namespace}/networkpolicies" + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + + if (allowWatchBookmarks != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("allowWatchBookmarks", allowWatchBookmarks)); + } + + if (_continue != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); + } + + if (fieldSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); + } + + if (labelSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); + } + + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + } + + if (resourceVersion != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); + } + + if (resourceVersionMatch != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersionMatch", resourceVersionMatch)); + } + + if (sendInitialEvents != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("sendInitialEvents", sendInitialEvents)); + } + + if (timeoutSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); + } + + if (watch != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + final String[] localVarAccepts = { + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch", "application/cbor-seq" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call listNamespacedNetworkPolicyValidateBeforeCall(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'namespace' is set + if (namespace == null) { + throw new ApiException("Missing the required parameter 'namespace' when calling listNamespacedNetworkPolicy(Async)"); + } + + + okhttp3.Call localVarCall = listNamespacedNetworkPolicyCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + return localVarCall; + + } + + /** + * + * list or watch objects of kind NetworkPolicy + * @param namespace object name and auth scope, such as for teams and projects (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param allowWatchBookmarks 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. (optional) + * @param _continue 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) + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + * @return V1NetworkPolicyList + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public V1NetworkPolicyList listNamespacedNetworkPolicy(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch) throws ApiException { + ApiResponse localVarResp = listNamespacedNetworkPolicyWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + return localVarResp.getData(); + } + + /** + * + * list or watch objects of kind NetworkPolicy + * @param namespace object name and auth scope, such as for teams and projects (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param allowWatchBookmarks 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. (optional) + * @param _continue 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) + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + * @return ApiResponse<V1NetworkPolicyList> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public ApiResponse listNamespacedNetworkPolicyWithHttpInfo(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch) throws ApiException { + okhttp3.Call localVarCall = listNamespacedNetworkPolicyValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * list or watch objects of kind NetworkPolicy + * @param namespace object name and auth scope, such as for teams and projects (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param allowWatchBookmarks 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. (optional) + * @param _continue 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) + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call listNamespacedNetworkPolicyAsync(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = listNamespacedNetworkPolicyValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for listNetworkPolicyForAllNamespaces + * @param allowWatchBookmarks 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. (optional) + * @param _continue 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) + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call listNetworkPolicyForAllNamespacesCall(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/apis/networking.k8s.io/v1/networkpolicies"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (allowWatchBookmarks != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("allowWatchBookmarks", allowWatchBookmarks)); + } + + if (_continue != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); + } + + if (fieldSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); + } + + if (labelSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); + } + + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + } + + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + + if (resourceVersion != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); + } + + if (resourceVersionMatch != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersionMatch", resourceVersionMatch)); + } + + if (sendInitialEvents != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("sendInitialEvents", sendInitialEvents)); + } + + if (timeoutSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); + } + + if (watch != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + final String[] localVarAccepts = { + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch", "application/cbor-seq" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call listNetworkPolicyForAllNamespacesValidateBeforeCall(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + + + okhttp3.Call localVarCall = listNetworkPolicyForAllNamespacesCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + return localVarCall; + + } + + /** + * + * list or watch objects of kind NetworkPolicy + * @param allowWatchBookmarks 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. (optional) + * @param _continue 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) + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + * @return V1NetworkPolicyList + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public V1NetworkPolicyList listNetworkPolicyForAllNamespaces(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch) throws ApiException { + ApiResponse localVarResp = listNetworkPolicyForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + return localVarResp.getData(); + } + + /** + * + * list or watch objects of kind NetworkPolicy + * @param allowWatchBookmarks 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. (optional) + * @param _continue 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) + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + * @return ApiResponse<V1NetworkPolicyList> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public ApiResponse listNetworkPolicyForAllNamespacesWithHttpInfo(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch) throws ApiException { + okhttp3.Call localVarCall = listNetworkPolicyForAllNamespacesValidateBeforeCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * list or watch objects of kind NetworkPolicy + * @param allowWatchBookmarks 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. (optional) + * @param _continue 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) + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call listNetworkPolicyForAllNamespacesAsync(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = listNetworkPolicyForAllNamespacesValidateBeforeCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for listServiceCIDR + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param allowWatchBookmarks 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. (optional) + * @param _continue 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) + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call listServiceCIDRCall(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/apis/networking.k8s.io/v1/servicecidrs"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + + if (allowWatchBookmarks != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("allowWatchBookmarks", allowWatchBookmarks)); + } + + if (_continue != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); + } + + if (fieldSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); + } + + if (labelSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); + } + + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + } + + if (resourceVersion != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); + } + + if (resourceVersionMatch != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersionMatch", resourceVersionMatch)); + } + + if (sendInitialEvents != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("sendInitialEvents", sendInitialEvents)); + } + + if (timeoutSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); + } + + if (watch != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + final String[] localVarAccepts = { + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch", "application/cbor-seq" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call listServiceCIDRValidateBeforeCall(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + + + okhttp3.Call localVarCall = listServiceCIDRCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + return localVarCall; + + } + + /** + * + * list or watch objects of kind ServiceCIDR + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param allowWatchBookmarks 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. (optional) + * @param _continue 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) + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + * @return V1ServiceCIDRList + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public V1ServiceCIDRList listServiceCIDR(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch) throws ApiException { + ApiResponse localVarResp = listServiceCIDRWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + return localVarResp.getData(); + } + + /** + * + * list or watch objects of kind ServiceCIDR + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param allowWatchBookmarks 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. (optional) + * @param _continue 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) + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + * @return ApiResponse<V1ServiceCIDRList> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public ApiResponse listServiceCIDRWithHttpInfo(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch) throws ApiException { + okhttp3.Call localVarCall = listServiceCIDRValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * list or watch objects of kind ServiceCIDR + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param allowWatchBookmarks 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. (optional) + * @param _continue 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) + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call listServiceCIDRAsync(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = listServiceCIDRValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for patchIPAddress + * @param name name of the IPAddress (required) + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public okhttp3.Call patchIPAddressCall(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + Object localVarPostBody = body; + + // create path and map variables + String localVarPath = "/apis/networking.k8s.io/v1/ipaddresses/{name}" + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } + + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + + if (fieldValidation != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); + } + + if (force != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("force", force)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + final String[] localVarAccepts = { + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call patchIPAddressValidateBeforeCall(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'name' is set + if (name == null) { + throw new ApiException("Missing the required parameter 'name' when calling patchIPAddress(Async)"); + } + + // verify the required parameter 'body' is set + if (body == null) { + throw new ApiException("Missing the required parameter 'body' when calling patchIPAddress(Async)"); + } + + + okhttp3.Call localVarCall = patchIPAddressCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); + return localVarCall; + + } + + /** + * + * partially update the specified IPAddress + * @param name name of the IPAddress (required) + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) + * @return V1IPAddress + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public V1IPAddress patchIPAddress(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force) throws ApiException { + ApiResponse localVarResp = patchIPAddressWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force); + return localVarResp.getData(); + } + + /** + * + * partially update the specified IPAddress + * @param name name of the IPAddress (required) + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) + * @return ApiResponse<V1IPAddress> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public ApiResponse patchIPAddressWithHttpInfo(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force) throws ApiException { + okhttp3.Call localVarCall = patchIPAddressValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * partially update the specified IPAddress + * @param name name of the IPAddress (required) + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public okhttp3.Call patchIPAddressAsync(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = patchIPAddressValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for patchIngressClass + * @param name name of the IngressClass (required) + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public okhttp3.Call patchIngressClassCall(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + Object localVarPostBody = body; + + // create path and map variables + String localVarPath = "/apis/networking.k8s.io/v1/ingressclasses/{name}" + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } + + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + + if (fieldValidation != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); + } + + if (force != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("force", force)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + final String[] localVarAccepts = { + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call patchIngressClassValidateBeforeCall(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'name' is set + if (name == null) { + throw new ApiException("Missing the required parameter 'name' when calling patchIngressClass(Async)"); + } + + // verify the required parameter 'body' is set + if (body == null) { + throw new ApiException("Missing the required parameter 'body' when calling patchIngressClass(Async)"); + } + + + okhttp3.Call localVarCall = patchIngressClassCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); + return localVarCall; + + } + + /** + * + * partially update the specified IngressClass + * @param name name of the IngressClass (required) + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) + * @return V1IngressClass + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public V1IngressClass patchIngressClass(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force) throws ApiException { + ApiResponse localVarResp = patchIngressClassWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force); + return localVarResp.getData(); + } + + /** + * + * partially update the specified IngressClass + * @param name name of the IngressClass (required) + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) + * @return ApiResponse<V1IngressClass> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public ApiResponse patchIngressClassWithHttpInfo(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force) throws ApiException { + okhttp3.Call localVarCall = patchIngressClassValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * partially update the specified IngressClass + * @param name name of the IngressClass (required) + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public okhttp3.Call patchIngressClassAsync(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = patchIngressClassValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for patchNamespacedIngress + * @param name name of the Ingress (required) + * @param namespace object name and auth scope, such as for teams and projects (required) + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public okhttp3.Call patchNamespacedIngressCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + Object localVarPostBody = body; + + // create path and map variables + String localVarPath = "/apis/networking.k8s.io/v1/namespaces/{namespace}/ingresses/{name}" + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } + + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + + if (fieldValidation != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); + } + + if (force != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("force", force)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + final String[] localVarAccepts = { + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call patchNamespacedIngressValidateBeforeCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'name' is set + if (name == null) { + throw new ApiException("Missing the required parameter 'name' when calling patchNamespacedIngress(Async)"); + } + + // verify the required parameter 'namespace' is set + if (namespace == null) { + throw new ApiException("Missing the required parameter 'namespace' when calling patchNamespacedIngress(Async)"); + } + + // verify the required parameter 'body' is set + if (body == null) { + throw new ApiException("Missing the required parameter 'body' when calling patchNamespacedIngress(Async)"); + } + + + okhttp3.Call localVarCall = patchNamespacedIngressCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); + return localVarCall; + + } + + /** + * + * partially update the specified Ingress + * @param name name of the Ingress (required) + * @param namespace object name and auth scope, such as for teams and projects (required) + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) + * @return V1Ingress + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public V1Ingress patchNamespacedIngress(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force) throws ApiException { + ApiResponse localVarResp = patchNamespacedIngressWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force); + return localVarResp.getData(); + } + + /** + * + * partially update the specified Ingress + * @param name name of the Ingress (required) + * @param namespace object name and auth scope, such as for teams and projects (required) + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) + * @return ApiResponse<V1Ingress> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public ApiResponse patchNamespacedIngressWithHttpInfo(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force) throws ApiException { + okhttp3.Call localVarCall = patchNamespacedIngressValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * partially update the specified Ingress + * @param name name of the Ingress (required) + * @param namespace object name and auth scope, such as for teams and projects (required) + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public okhttp3.Call patchNamespacedIngressAsync(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = patchNamespacedIngressValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for patchNamespacedIngressStatus + * @param name name of the Ingress (required) + * @param namespace object name and auth scope, such as for teams and projects (required) + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public okhttp3.Call patchNamespacedIngressStatusCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + Object localVarPostBody = body; + + // create path and map variables + String localVarPath = "/apis/networking.k8s.io/v1/namespaces/{namespace}/ingresses/{name}/status" + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } + + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + + if (fieldValidation != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); + } + + if (force != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("force", force)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + final String[] localVarAccepts = { + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call patchNamespacedIngressStatusValidateBeforeCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'name' is set + if (name == null) { + throw new ApiException("Missing the required parameter 'name' when calling patchNamespacedIngressStatus(Async)"); + } + + // verify the required parameter 'namespace' is set + if (namespace == null) { + throw new ApiException("Missing the required parameter 'namespace' when calling patchNamespacedIngressStatus(Async)"); + } + + // verify the required parameter 'body' is set + if (body == null) { + throw new ApiException("Missing the required parameter 'body' when calling patchNamespacedIngressStatus(Async)"); + } + + + okhttp3.Call localVarCall = patchNamespacedIngressStatusCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); + return localVarCall; + + } + + /** + * + * partially update status of the specified Ingress + * @param name name of the Ingress (required) + * @param namespace object name and auth scope, such as for teams and projects (required) + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) + * @return V1Ingress + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public V1Ingress patchNamespacedIngressStatus(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force) throws ApiException { + ApiResponse localVarResp = patchNamespacedIngressStatusWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force); + return localVarResp.getData(); + } + + /** + * + * partially update status of the specified Ingress + * @param name name of the Ingress (required) + * @param namespace object name and auth scope, such as for teams and projects (required) + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) + * @return ApiResponse<V1Ingress> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public ApiResponse patchNamespacedIngressStatusWithHttpInfo(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force) throws ApiException { + okhttp3.Call localVarCall = patchNamespacedIngressStatusValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * partially update status of the specified Ingress + * @param name name of the Ingress (required) + * @param namespace object name and auth scope, such as for teams and projects (required) + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public okhttp3.Call patchNamespacedIngressStatusAsync(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = patchNamespacedIngressStatusValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for patchNamespacedNetworkPolicy + * @param name name of the NetworkPolicy (required) + * @param namespace object name and auth scope, such as for teams and projects (required) + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public okhttp3.Call patchNamespacedNetworkPolicyCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + Object localVarPostBody = body; - okhttp3.Call localVarCall = listIngressForAllNamespacesCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + // create path and map variables + String localVarPath = "/apis/networking.k8s.io/v1/namespaces/{namespace}/networkpolicies/{name}" + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } + + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + + if (fieldValidation != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); + } + + if (force != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("force", force)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + final String[] localVarAccepts = { + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call patchNamespacedNetworkPolicyValidateBeforeCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'name' is set + if (name == null) { + throw new ApiException("Missing the required parameter 'name' when calling patchNamespacedNetworkPolicy(Async)"); + } + + // verify the required parameter 'namespace' is set + if (namespace == null) { + throw new ApiException("Missing the required parameter 'namespace' when calling patchNamespacedNetworkPolicy(Async)"); + } + + // verify the required parameter 'body' is set + if (body == null) { + throw new ApiException("Missing the required parameter 'body' when calling patchNamespacedNetworkPolicy(Async)"); + } + + + okhttp3.Call localVarCall = patchNamespacedNetworkPolicyCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); return localVarCall; } /** * - * list or watch objects of kind Ingress - * @param allowWatchBookmarks 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. (optional) - * @param _continue 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) - * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) - * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) - * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) - * @param pretty If 'true', then the output is pretty printed. (optional) - * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) - * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) - * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @return V1IngressList + * partially update the specified NetworkPolicy + * @param name name of the NetworkPolicy (required) + * @param namespace object name and auth scope, such as for teams and projects (required) + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) + * @return V1NetworkPolicy + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public V1NetworkPolicy patchNamespacedNetworkPolicy(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force) throws ApiException { + ApiResponse localVarResp = patchNamespacedNetworkPolicyWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force); + return localVarResp.getData(); + } + + /** + * + * partially update the specified NetworkPolicy + * @param name name of the NetworkPolicy (required) + * @param namespace object name and auth scope, such as for teams and projects (required) + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) + * @return ApiResponse<V1NetworkPolicy> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public ApiResponse patchNamespacedNetworkPolicyWithHttpInfo(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force) throws ApiException { + okhttp3.Call localVarCall = patchNamespacedNetworkPolicyValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * partially update the specified NetworkPolicy + * @param name name of the NetworkPolicy (required) + * @param namespace object name and auth scope, such as for teams and projects (required) + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public okhttp3.Call patchNamespacedNetworkPolicyAsync(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = patchNamespacedNetworkPolicyValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for patchServiceCIDR + * @param name name of the ServiceCIDR (required) + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public okhttp3.Call patchServiceCIDRCall(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + Object localVarPostBody = body; + + // create path and map variables + String localVarPath = "/apis/networking.k8s.io/v1/servicecidrs/{name}" + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } + + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + + if (fieldValidation != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); + } + + if (force != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("force", force)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + final String[] localVarAccepts = { + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call patchServiceCIDRValidateBeforeCall(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'name' is set + if (name == null) { + throw new ApiException("Missing the required parameter 'name' when calling patchServiceCIDR(Async)"); + } + + // verify the required parameter 'body' is set + if (body == null) { + throw new ApiException("Missing the required parameter 'body' when calling patchServiceCIDR(Async)"); + } + + + okhttp3.Call localVarCall = patchServiceCIDRCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); + return localVarCall; + + } + + /** + * + * partially update the specified ServiceCIDR + * @param name name of the ServiceCIDR (required) + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) + * @return V1ServiceCIDR * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public V1IngressList listIngressForAllNamespaces(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch) throws ApiException { - ApiResponse localVarResp = listIngressForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + public V1ServiceCIDR patchServiceCIDR(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force) throws ApiException { + ApiResponse localVarResp = patchServiceCIDRWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force); return localVarResp.getData(); } /** * - * list or watch objects of kind Ingress - * @param allowWatchBookmarks 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. (optional) - * @param _continue 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) - * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) - * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) - * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) - * @param pretty If 'true', then the output is pretty printed. (optional) - * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) - * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) - * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @return ApiResponse<V1IngressList> + * partially update the specified ServiceCIDR + * @param name name of the ServiceCIDR (required) + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) + * @return ApiResponse<V1ServiceCIDR> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public ApiResponse listIngressForAllNamespacesWithHttpInfo(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch) throws ApiException { - okhttp3.Call localVarCall = listIngressForAllNamespacesValidateBeforeCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, null); - Type localVarReturnType = new TypeToken(){}.getType(); + public ApiResponse patchServiceCIDRWithHttpInfo(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force) throws ApiException { + okhttp3.Call localVarCall = patchServiceCIDRValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, null); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * (asynchronously) - * list or watch objects of kind Ingress - * @param allowWatchBookmarks 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. (optional) - * @param _continue 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) - * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) - * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) - * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) - * @param pretty If 'true', then the output is pretty printed. (optional) - * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) - * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) - * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + * partially update the specified ServiceCIDR + * @param name name of the ServiceCIDR (required) + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object @@ -2193,30 +5359,26 @@ public ApiResponse listIngressForAllNamespacesWithHttpInfo(Boolea +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public okhttp3.Call listIngressForAllNamespacesAsync(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + public okhttp3.Call patchServiceCIDRAsync(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = listIngressForAllNamespacesValidateBeforeCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + okhttp3.Call localVarCall = patchServiceCIDRValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** - * Build call for listNamespacedIngress - * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) - * @param allowWatchBookmarks 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. (optional) - * @param _continue 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) - * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) - * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) - * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) - * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) - * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) - * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + * Build call for patchServiceCIDRStatus + * @param name name of the ServiceCIDR (required) + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -2224,15 +5386,16 @@ public okhttp3.Call listIngressForAllNamespacesAsync(Boolean allowWatchBookmarks +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public okhttp3.Call listNamespacedIngressCall(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { - Object localVarPostBody = null; + public okhttp3.Call patchServiceCIDRStatusCall(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + Object localVarPostBody = body; // create path and map variables - String localVarPath = "/apis/networking.k8s.io/v1/namespaces/{namespace}/ingresses" - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + String localVarPath = "/apis/networking.k8s.io/v1/servicecidrs/{name}/status" + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -2240,51 +5403,27 @@ public okhttp3.Call listNamespacedIngressCall(String namespace, String pretty, B localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } - if (allowWatchBookmarks != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("allowWatchBookmarks", allowWatchBookmarks)); - } - - if (_continue != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); - } - - if (fieldSelector != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); - } - - if (labelSelector != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); - } - - if (limit != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); - } - - if (resourceVersion != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); - } - - if (resourceVersionMatch != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersionMatch", resourceVersionMatch)); + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); } - if (sendInitialEvents != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("sendInitialEvents", sendInitialEvents)); + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); } - if (timeoutSeconds != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); + if (fieldValidation != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); } - if (watch != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); + if (force != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("force", force)); } Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -2292,103 +5431,95 @@ public okhttp3.Call listNamespacedIngressCall(String namespace, String pretty, B } final String[] localVarContentTypes = { - + "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") - private okhttp3.Call listNamespacedIngressValidateBeforeCall(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call patchServiceCIDRStatusValidateBeforeCall(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'namespace' is set - if (namespace == null) { - throw new ApiException("Missing the required parameter 'namespace' when calling listNamespacedIngress(Async)"); + // verify the required parameter 'name' is set + if (name == null) { + throw new ApiException("Missing the required parameter 'name' when calling patchServiceCIDRStatus(Async)"); + } + + // verify the required parameter 'body' is set + if (body == null) { + throw new ApiException("Missing the required parameter 'body' when calling patchServiceCIDRStatus(Async)"); } - okhttp3.Call localVarCall = listNamespacedIngressCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + okhttp3.Call localVarCall = patchServiceCIDRStatusCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); return localVarCall; } /** * - * list or watch objects of kind Ingress - * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) - * @param allowWatchBookmarks 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. (optional) - * @param _continue 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) - * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) - * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) - * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) - * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) - * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) - * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @return V1IngressList + * partially update status of the specified ServiceCIDR + * @param name name of the ServiceCIDR (required) + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) + * @return V1ServiceCIDR * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public V1IngressList listNamespacedIngress(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch) throws ApiException { - ApiResponse localVarResp = listNamespacedIngressWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + public V1ServiceCIDR patchServiceCIDRStatus(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force) throws ApiException { + ApiResponse localVarResp = patchServiceCIDRStatusWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force); return localVarResp.getData(); } /** * - * list or watch objects of kind Ingress - * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) - * @param allowWatchBookmarks 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. (optional) - * @param _continue 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) - * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) - * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) - * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) - * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) - * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) - * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @return ApiResponse<V1IngressList> + * partially update status of the specified ServiceCIDR + * @param name name of the ServiceCIDR (required) + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) + * @return ApiResponse<V1ServiceCIDR> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public ApiResponse listNamespacedIngressWithHttpInfo(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch) throws ApiException { - okhttp3.Call localVarCall = listNamespacedIngressValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, null); - Type localVarReturnType = new TypeToken(){}.getType(); + public ApiResponse patchServiceCIDRStatusWithHttpInfo(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force) throws ApiException { + okhttp3.Call localVarCall = patchServiceCIDRStatusValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, null); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * (asynchronously) - * list or watch objects of kind Ingress - * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) - * @param allowWatchBookmarks 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. (optional) - * @param _continue 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) - * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) - * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) - * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) - * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) - * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) - * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + * partially update status of the specified ServiceCIDR + * @param name name of the ServiceCIDR (required) + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object @@ -2396,30 +5527,21 @@ public ApiResponse listNamespacedIngressWithHttpInfo(String names +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public okhttp3.Call listNamespacedIngressAsync(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + public okhttp3.Call patchServiceCIDRStatusAsync(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = listNamespacedIngressValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + okhttp3.Call localVarCall = patchServiceCIDRStatusValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** - * Build call for listNamespacedNetworkPolicy - * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) - * @param allowWatchBookmarks 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. (optional) - * @param _continue 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) - * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) - * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) - * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) - * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) - * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) - * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + * Build call for readIPAddress + * @param name name of the IPAddress (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -2430,12 +5552,12 @@ public okhttp3.Call listNamespacedIngressAsync(String namespace, String pretty, 401 Unauthorized - */ - public okhttp3.Call listNamespacedNetworkPolicyCall(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + public okhttp3.Call readIPAddressCall(String name, String pretty, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; // create path and map variables - String localVarPath = "/apis/networking.k8s.io/v1/namespaces/{namespace}/networkpolicies" - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + String localVarPath = "/apis/networking.k8s.io/v1/ipaddresses/{name}" + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -2443,51 +5565,11 @@ public okhttp3.Call listNamespacedNetworkPolicyCall(String namespace, String pre localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } - if (allowWatchBookmarks != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("allowWatchBookmarks", allowWatchBookmarks)); - } - - if (_continue != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); - } - - if (fieldSelector != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); - } - - if (labelSelector != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); - } - - if (limit != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); - } - - if (resourceVersion != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); - } - - if (resourceVersionMatch != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersionMatch", resourceVersionMatch)); - } - - if (sendInitialEvents != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("sendInitialEvents", sendInitialEvents)); - } - - if (timeoutSeconds != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); - } - - if (watch != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); - } - Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -2504,36 +5586,26 @@ public okhttp3.Call listNamespacedNetworkPolicyCall(String namespace, String pre return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } - @SuppressWarnings("rawtypes") - private okhttp3.Call listNamespacedNetworkPolicyValidateBeforeCall(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { - - // verify the required parameter 'namespace' is set - if (namespace == null) { - throw new ApiException("Missing the required parameter 'namespace' when calling listNamespacedNetworkPolicy(Async)"); + @SuppressWarnings("rawtypes") + private okhttp3.Call readIPAddressValidateBeforeCall(String name, String pretty, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'name' is set + if (name == null) { + throw new ApiException("Missing the required parameter 'name' when calling readIPAddress(Async)"); } - okhttp3.Call localVarCall = listNamespacedNetworkPolicyCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + okhttp3.Call localVarCall = readIPAddressCall(name, pretty, _callback); return localVarCall; } /** * - * list or watch objects of kind NetworkPolicy - * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) - * @param allowWatchBookmarks 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. (optional) - * @param _continue 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) - * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) - * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) - * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) - * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) - * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) - * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @return V1NetworkPolicyList + * read the specified IPAddress + * @param name name of the IPAddress (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @return V1IPAddress * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -2542,27 +5614,17 @@ private okhttp3.Call listNamespacedNetworkPolicyValidateBeforeCall(String namesp
401 Unauthorized -
*/ - public V1NetworkPolicyList listNamespacedNetworkPolicy(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch) throws ApiException { - ApiResponse localVarResp = listNamespacedNetworkPolicyWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + public V1IPAddress readIPAddress(String name, String pretty) throws ApiException { + ApiResponse localVarResp = readIPAddressWithHttpInfo(name, pretty); return localVarResp.getData(); } /** * - * list or watch objects of kind NetworkPolicy - * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) - * @param allowWatchBookmarks 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. (optional) - * @param _continue 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) - * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) - * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) - * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) - * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) - * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) - * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @return ApiResponse<V1NetworkPolicyList> + * read the specified IPAddress + * @param name name of the IPAddress (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @return ApiResponse<V1IPAddress> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -2571,27 +5633,17 @@ public V1NetworkPolicyList listNamespacedNetworkPolicy(String namespace, String
401 Unauthorized -
*/ - public ApiResponse listNamespacedNetworkPolicyWithHttpInfo(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch) throws ApiException { - okhttp3.Call localVarCall = listNamespacedNetworkPolicyValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, null); - Type localVarReturnType = new TypeToken(){}.getType(); + public ApiResponse readIPAddressWithHttpInfo(String name, String pretty) throws ApiException { + okhttp3.Call localVarCall = readIPAddressValidateBeforeCall(name, pretty, null); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * (asynchronously) - * list or watch objects of kind NetworkPolicy - * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) - * @param allowWatchBookmarks 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. (optional) - * @param _continue 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) - * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) - * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) - * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) - * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) - * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) - * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + * read the specified IPAddress + * @param name name of the IPAddress (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object @@ -2602,26 +5654,17 @@ public ApiResponse listNamespacedNetworkPolicyWithHttpInfo( 401 Unauthorized - */ - public okhttp3.Call listNamespacedNetworkPolicyAsync(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + public okhttp3.Call readIPAddressAsync(String name, String pretty, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = listNamespacedNetworkPolicyValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + okhttp3.Call localVarCall = readIPAddressValidateBeforeCall(name, pretty, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** - * Build call for listNetworkPolicyForAllNamespaces - * @param allowWatchBookmarks 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. (optional) - * @param _continue 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) - * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) - * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) - * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) - * @param pretty If 'true', then the output is pretty printed. (optional) - * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) - * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) - * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + * Build call for readIngressClass + * @param name name of the IngressClass (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -2632,63 +5675,24 @@ public okhttp3.Call listNamespacedNetworkPolicyAsync(String namespace, String pr 401 Unauthorized - */ - public okhttp3.Call listNetworkPolicyForAllNamespacesCall(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + public okhttp3.Call readIngressClassCall(String name, String pretty, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; // create path and map variables - String localVarPath = "/apis/networking.k8s.io/v1/networkpolicies"; + String localVarPath = "/apis/networking.k8s.io/v1/ingressclasses/{name}" + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (allowWatchBookmarks != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("allowWatchBookmarks", allowWatchBookmarks)); - } - - if (_continue != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); - } - - if (fieldSelector != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); - } - - if (labelSelector != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); - } - - if (limit != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); - } - if (pretty != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } - if (resourceVersion != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); - } - - if (resourceVersionMatch != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersionMatch", resourceVersionMatch)); - } - - if (sendInitialEvents != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("sendInitialEvents", sendInitialEvents)); - } - - if (timeoutSeconds != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); - } - - if (watch != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); - } - Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -2706,29 +5710,25 @@ public okhttp3.Call listNetworkPolicyForAllNamespacesCall(Boolean allowWatchBook } @SuppressWarnings("rawtypes") - private okhttp3.Call listNetworkPolicyForAllNamespacesValidateBeforeCall(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readIngressClassValidateBeforeCall(String name, String pretty, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'name' is set + if (name == null) { + throw new ApiException("Missing the required parameter 'name' when calling readIngressClass(Async)"); + } - okhttp3.Call localVarCall = listNetworkPolicyForAllNamespacesCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + okhttp3.Call localVarCall = readIngressClassCall(name, pretty, _callback); return localVarCall; } /** * - * list or watch objects of kind NetworkPolicy - * @param allowWatchBookmarks 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. (optional) - * @param _continue 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) - * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) - * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) - * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) - * @param pretty If 'true', then the output is pretty printed. (optional) - * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) - * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) - * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @return V1NetworkPolicyList + * read the specified IngressClass + * @param name name of the IngressClass (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @return V1IngressClass * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -2737,26 +5737,17 @@ private okhttp3.Call listNetworkPolicyForAllNamespacesValidateBeforeCall(Boolean
401 Unauthorized -
*/ - public V1NetworkPolicyList listNetworkPolicyForAllNamespaces(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch) throws ApiException { - ApiResponse localVarResp = listNetworkPolicyForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + public V1IngressClass readIngressClass(String name, String pretty) throws ApiException { + ApiResponse localVarResp = readIngressClassWithHttpInfo(name, pretty); return localVarResp.getData(); } /** * - * list or watch objects of kind NetworkPolicy - * @param allowWatchBookmarks 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. (optional) - * @param _continue 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) - * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) - * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) - * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) - * @param pretty If 'true', then the output is pretty printed. (optional) - * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) - * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) - * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @return ApiResponse<V1NetworkPolicyList> + * read the specified IngressClass + * @param name name of the IngressClass (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @return ApiResponse<V1IngressClass> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -2765,26 +5756,17 @@ public V1NetworkPolicyList listNetworkPolicyForAllNamespaces(Boolean allowWatchB
401 Unauthorized -
*/ - public ApiResponse listNetworkPolicyForAllNamespacesWithHttpInfo(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch) throws ApiException { - okhttp3.Call localVarCall = listNetworkPolicyForAllNamespacesValidateBeforeCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, null); - Type localVarReturnType = new TypeToken(){}.getType(); + public ApiResponse readIngressClassWithHttpInfo(String name, String pretty) throws ApiException { + okhttp3.Call localVarCall = readIngressClassValidateBeforeCall(name, pretty, null); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * (asynchronously) - * list or watch objects of kind NetworkPolicy - * @param allowWatchBookmarks 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. (optional) - * @param _continue 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) - * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) - * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) - * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) - * @param pretty If 'true', then the output is pretty printed. (optional) - * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) - * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) - * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + * read the specified IngressClass + * @param name name of the IngressClass (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object @@ -2795,22 +5777,18 @@ public ApiResponse listNetworkPolicyForAllNamespacesWithHtt 401 Unauthorized - */ - public okhttp3.Call listNetworkPolicyForAllNamespacesAsync(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + public okhttp3.Call readIngressClassAsync(String name, String pretty, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = listNetworkPolicyForAllNamespacesValidateBeforeCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + okhttp3.Call localVarCall = readIngressClassValidateBeforeCall(name, pretty, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** - * Build call for patchIngressClass - * @param name name of the IngressClass (required) - * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) - * @param dryRun 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) - * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) - * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) + * Build call for readNamespacedIngress + * @param name name of the Ingress (required) + * @param namespace object name and auth scope, such as for teams and projects (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -2818,16 +5796,16 @@ public okhttp3.Call listNetworkPolicyForAllNamespacesAsync(Boolean allowWatchBoo -
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public okhttp3.Call patchIngressClassCall(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { - Object localVarPostBody = body; + public okhttp3.Call readNamespacedIngressCall(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { + Object localVarPostBody = null; // create path and map variables - String localVarPath = "/apis/networking.k8s.io/v1/ingressclasses/{name}" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); + String localVarPath = "/apis/networking.k8s.io/v1/namespaces/{namespace}/ingresses/{name}" + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -2835,27 +5813,11 @@ public okhttp3.Call patchIngressClassCall(String name, V1Patch body, String pret localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } - if (dryRun != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); - } - - if (fieldManager != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); - } - - if (fieldValidation != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); - } - - if (force != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("force", force)); - } - Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -2863,95 +5825,81 @@ public okhttp3.Call patchIngressClassCall(String name, V1Patch body, String pret } final String[] localVarContentTypes = { - "application/json" + }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") - private okhttp3.Call patchIngressClassValidateBeforeCall(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readNamespacedIngressValidateBeforeCall(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { - throw new ApiException("Missing the required parameter 'name' when calling patchIngressClass(Async)"); + throw new ApiException("Missing the required parameter 'name' when calling readNamespacedIngress(Async)"); } - // verify the required parameter 'body' is set - if (body == null) { - throw new ApiException("Missing the required parameter 'body' when calling patchIngressClass(Async)"); + // verify the required parameter 'namespace' is set + if (namespace == null) { + throw new ApiException("Missing the required parameter 'namespace' when calling readNamespacedIngress(Async)"); } - okhttp3.Call localVarCall = patchIngressClassCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); + okhttp3.Call localVarCall = readNamespacedIngressCall(name, namespace, pretty, _callback); return localVarCall; } /** * - * partially update the specified IngressClass - * @param name name of the IngressClass (required) - * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) - * @param dryRun 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) - * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) - * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) - * @return V1IngressClass + * read the specified Ingress + * @param name name of the Ingress (required) + * @param namespace object name and auth scope, such as for teams and projects (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @return V1Ingress * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public V1IngressClass patchIngressClass(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force) throws ApiException { - ApiResponse localVarResp = patchIngressClassWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force); + public V1Ingress readNamespacedIngress(String name, String namespace, String pretty) throws ApiException { + ApiResponse localVarResp = readNamespacedIngressWithHttpInfo(name, namespace, pretty); return localVarResp.getData(); } /** * - * partially update the specified IngressClass - * @param name name of the IngressClass (required) - * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) - * @param dryRun 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) - * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) - * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) - * @return ApiResponse<V1IngressClass> + * read the specified Ingress + * @param name name of the Ingress (required) + * @param namespace object name and auth scope, such as for teams and projects (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @return ApiResponse<V1Ingress> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public ApiResponse patchIngressClassWithHttpInfo(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force) throws ApiException { - okhttp3.Call localVarCall = patchIngressClassValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, null); - Type localVarReturnType = new TypeToken(){}.getType(); + public ApiResponse readNamespacedIngressWithHttpInfo(String name, String namespace, String pretty) throws ApiException { + okhttp3.Call localVarCall = readNamespacedIngressValidateBeforeCall(name, namespace, pretty, null); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * (asynchronously) - * partially update the specified IngressClass - * @param name name of the IngressClass (required) - * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) - * @param dryRun 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) - * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) - * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) + * read the specified Ingress + * @param name name of the Ingress (required) + * @param namespace object name and auth scope, such as for teams and projects (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object @@ -2959,27 +5907,21 @@ public ApiResponse patchIngressClassWithHttpInfo(String name, V1 -
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public okhttp3.Call patchIngressClassAsync(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + public okhttp3.Call readNamespacedIngressAsync(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = patchIngressClassValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + okhttp3.Call localVarCall = readNamespacedIngressValidateBeforeCall(name, namespace, pretty, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** - * Build call for patchNamespacedIngress + * Build call for readNamespacedIngressStatus * @param name name of the Ingress (required) * @param namespace object name and auth scope, such as for teams and projects (required) - * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) - * @param dryRun 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) - * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) - * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -2987,15 +5929,14 @@ public okhttp3.Call patchIngressClassAsync(String name, V1Patch body, String pre -
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public okhttp3.Call patchNamespacedIngressCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { - Object localVarPostBody = body; + public okhttp3.Call readNamespacedIngressStatusCall(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { + Object localVarPostBody = null; // create path and map variables - String localVarPath = "/apis/networking.k8s.io/v1/namespaces/{namespace}/ingresses/{name}" + String localVarPath = "/apis/networking.k8s.io/v1/namespaces/{namespace}/ingresses/{name}/status" .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); @@ -3005,27 +5946,11 @@ public okhttp3.Call patchNamespacedIngressCall(String name, String namespace, V1 localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } - if (dryRun != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); - } - - if (fieldManager != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); - } - - if (fieldValidation != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); - } - - if (force != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("force", force)); - } - Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -3033,103 +5958,81 @@ public okhttp3.Call patchNamespacedIngressCall(String name, String namespace, V1 } final String[] localVarContentTypes = { - "application/json" + }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") - private okhttp3.Call patchNamespacedIngressValidateBeforeCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readNamespacedIngressStatusValidateBeforeCall(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { - throw new ApiException("Missing the required parameter 'name' when calling patchNamespacedIngress(Async)"); + throw new ApiException("Missing the required parameter 'name' when calling readNamespacedIngressStatus(Async)"); } // verify the required parameter 'namespace' is set if (namespace == null) { - throw new ApiException("Missing the required parameter 'namespace' when calling patchNamespacedIngress(Async)"); - } - - // verify the required parameter 'body' is set - if (body == null) { - throw new ApiException("Missing the required parameter 'body' when calling patchNamespacedIngress(Async)"); + throw new ApiException("Missing the required parameter 'namespace' when calling readNamespacedIngressStatus(Async)"); } - okhttp3.Call localVarCall = patchNamespacedIngressCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); + okhttp3.Call localVarCall = readNamespacedIngressStatusCall(name, namespace, pretty, _callback); return localVarCall; } /** * - * partially update the specified Ingress + * read status of the specified Ingress * @param name name of the Ingress (required) * @param namespace object name and auth scope, such as for teams and projects (required) - * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) - * @param dryRun 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) - * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) - * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return V1Ingress * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public V1Ingress patchNamespacedIngress(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force) throws ApiException { - ApiResponse localVarResp = patchNamespacedIngressWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force); + public V1Ingress readNamespacedIngressStatus(String name, String namespace, String pretty) throws ApiException { + ApiResponse localVarResp = readNamespacedIngressStatusWithHttpInfo(name, namespace, pretty); return localVarResp.getData(); } /** * - * partially update the specified Ingress + * read status of the specified Ingress * @param name name of the Ingress (required) * @param namespace object name and auth scope, such as for teams and projects (required) - * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) - * @param dryRun 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) - * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) - * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return ApiResponse<V1Ingress> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public ApiResponse patchNamespacedIngressWithHttpInfo(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force) throws ApiException { - okhttp3.Call localVarCall = patchNamespacedIngressValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, null); + public ApiResponse readNamespacedIngressStatusWithHttpInfo(String name, String namespace, String pretty) throws ApiException { + okhttp3.Call localVarCall = readNamespacedIngressStatusValidateBeforeCall(name, namespace, pretty, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * (asynchronously) - * partially update the specified Ingress + * read status of the specified Ingress * @param name name of the Ingress (required) * @param namespace object name and auth scope, such as for teams and projects (required) - * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) - * @param dryRun 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) - * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) - * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object @@ -3137,27 +6040,21 @@ public ApiResponse patchNamespacedIngressWithHttpInfo(String name, St -
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public okhttp3.Call patchNamespacedIngressAsync(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + public okhttp3.Call readNamespacedIngressStatusAsync(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = patchNamespacedIngressValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); + okhttp3.Call localVarCall = readNamespacedIngressStatusValidateBeforeCall(name, namespace, pretty, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** - * Build call for patchNamespacedIngressStatus - * @param name name of the Ingress (required) + * Build call for readNamespacedNetworkPolicy + * @param name name of the NetworkPolicy (required) * @param namespace object name and auth scope, such as for teams and projects (required) - * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) - * @param dryRun 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) - * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) - * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -3165,15 +6062,14 @@ public okhttp3.Call patchNamespacedIngressAsync(String name, String namespace, V -
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public okhttp3.Call patchNamespacedIngressStatusCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { - Object localVarPostBody = body; + public okhttp3.Call readNamespacedNetworkPolicyCall(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { + Object localVarPostBody = null; // create path and map variables - String localVarPath = "/apis/networking.k8s.io/v1/namespaces/{namespace}/ingresses/{name}/status" + String localVarPath = "/apis/networking.k8s.io/v1/namespaces/{namespace}/networkpolicies/{name}" .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); @@ -3183,27 +6079,11 @@ public okhttp3.Call patchNamespacedIngressStatusCall(String name, String namespa localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } - if (dryRun != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); - } - - if (fieldManager != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); - } - - if (fieldValidation != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); - } - - if (force != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("force", force)); - } - Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -3211,103 +6091,81 @@ public okhttp3.Call patchNamespacedIngressStatusCall(String name, String namespa } final String[] localVarContentTypes = { - "application/json" + }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") - private okhttp3.Call patchNamespacedIngressStatusValidateBeforeCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readNamespacedNetworkPolicyValidateBeforeCall(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { - throw new ApiException("Missing the required parameter 'name' when calling patchNamespacedIngressStatus(Async)"); + throw new ApiException("Missing the required parameter 'name' when calling readNamespacedNetworkPolicy(Async)"); } // verify the required parameter 'namespace' is set if (namespace == null) { - throw new ApiException("Missing the required parameter 'namespace' when calling patchNamespacedIngressStatus(Async)"); - } - - // verify the required parameter 'body' is set - if (body == null) { - throw new ApiException("Missing the required parameter 'body' when calling patchNamespacedIngressStatus(Async)"); + throw new ApiException("Missing the required parameter 'namespace' when calling readNamespacedNetworkPolicy(Async)"); } - okhttp3.Call localVarCall = patchNamespacedIngressStatusCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); + okhttp3.Call localVarCall = readNamespacedNetworkPolicyCall(name, namespace, pretty, _callback); return localVarCall; } /** * - * partially update status of the specified Ingress - * @param name name of the Ingress (required) + * read the specified NetworkPolicy + * @param name name of the NetworkPolicy (required) * @param namespace object name and auth scope, such as for teams and projects (required) - * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) - * @param dryRun 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) - * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) - * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) - * @return V1Ingress + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @return V1NetworkPolicy * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public V1Ingress patchNamespacedIngressStatus(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force) throws ApiException { - ApiResponse localVarResp = patchNamespacedIngressStatusWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force); + public V1NetworkPolicy readNamespacedNetworkPolicy(String name, String namespace, String pretty) throws ApiException { + ApiResponse localVarResp = readNamespacedNetworkPolicyWithHttpInfo(name, namespace, pretty); return localVarResp.getData(); } /** * - * partially update status of the specified Ingress - * @param name name of the Ingress (required) + * read the specified NetworkPolicy + * @param name name of the NetworkPolicy (required) * @param namespace object name and auth scope, such as for teams and projects (required) - * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) - * @param dryRun 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) - * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) - * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) - * @return ApiResponse<V1Ingress> + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @return ApiResponse<V1NetworkPolicy> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public ApiResponse patchNamespacedIngressStatusWithHttpInfo(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force) throws ApiException { - okhttp3.Call localVarCall = patchNamespacedIngressStatusValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, null); - Type localVarReturnType = new TypeToken(){}.getType(); + public ApiResponse readNamespacedNetworkPolicyWithHttpInfo(String name, String namespace, String pretty) throws ApiException { + okhttp3.Call localVarCall = readNamespacedNetworkPolicyValidateBeforeCall(name, namespace, pretty, null); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * (asynchronously) - * partially update status of the specified Ingress - * @param name name of the Ingress (required) + * read the specified NetworkPolicy + * @param name name of the NetworkPolicy (required) * @param namespace object name and auth scope, such as for teams and projects (required) - * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) - * @param dryRun 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) - * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) - * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object @@ -3315,27 +6173,20 @@ public ApiResponse patchNamespacedIngressStatusWithHttpInfo(String na -
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public okhttp3.Call patchNamespacedIngressStatusAsync(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + public okhttp3.Call readNamespacedNetworkPolicyAsync(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = patchNamespacedIngressStatusValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + okhttp3.Call localVarCall = readNamespacedNetworkPolicyValidateBeforeCall(name, namespace, pretty, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** - * Build call for patchNamespacedNetworkPolicy - * @param name name of the NetworkPolicy (required) - * @param namespace object name and auth scope, such as for teams and projects (required) - * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) - * @param dryRun 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) - * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) - * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) + * Build call for readServiceCIDR + * @param name name of the ServiceCIDR (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -3343,17 +6194,15 @@ public okhttp3.Call patchNamespacedIngressStatusAsync(String name, String namesp -
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public okhttp3.Call patchNamespacedNetworkPolicyCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { - Object localVarPostBody = body; + public okhttp3.Call readServiceCIDRCall(String name, String pretty, final ApiCallback _callback) throws ApiException { + Object localVarPostBody = null; // create path and map variables - String localVarPath = "/apis/networking.k8s.io/v1/namespaces/{namespace}/networkpolicies/{name}" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + String localVarPath = "/apis/networking.k8s.io/v1/servicecidrs/{name}" + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -3361,27 +6210,11 @@ public okhttp3.Call patchNamespacedNetworkPolicyCall(String name, String namespa localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } - if (dryRun != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); - } - - if (fieldManager != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); - } - - if (fieldValidation != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); - } - - if (force != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("force", force)); - } - Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -3389,103 +6222,73 @@ public okhttp3.Call patchNamespacedNetworkPolicyCall(String name, String namespa } final String[] localVarContentTypes = { - "application/json" + }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") - private okhttp3.Call patchNamespacedNetworkPolicyValidateBeforeCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readServiceCIDRValidateBeforeCall(String name, String pretty, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { - throw new ApiException("Missing the required parameter 'name' when calling patchNamespacedNetworkPolicy(Async)"); - } - - // verify the required parameter 'namespace' is set - if (namespace == null) { - throw new ApiException("Missing the required parameter 'namespace' when calling patchNamespacedNetworkPolicy(Async)"); - } - - // verify the required parameter 'body' is set - if (body == null) { - throw new ApiException("Missing the required parameter 'body' when calling patchNamespacedNetworkPolicy(Async)"); + throw new ApiException("Missing the required parameter 'name' when calling readServiceCIDR(Async)"); } - okhttp3.Call localVarCall = patchNamespacedNetworkPolicyCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); + okhttp3.Call localVarCall = readServiceCIDRCall(name, pretty, _callback); return localVarCall; } /** * - * partially update the specified NetworkPolicy - * @param name name of the NetworkPolicy (required) - * @param namespace object name and auth scope, such as for teams and projects (required) - * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) - * @param dryRun 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) - * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) - * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) - * @return V1NetworkPolicy + * read the specified ServiceCIDR + * @param name name of the ServiceCIDR (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @return V1ServiceCIDR * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public V1NetworkPolicy patchNamespacedNetworkPolicy(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force) throws ApiException { - ApiResponse localVarResp = patchNamespacedNetworkPolicyWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force); + public V1ServiceCIDR readServiceCIDR(String name, String pretty) throws ApiException { + ApiResponse localVarResp = readServiceCIDRWithHttpInfo(name, pretty); return localVarResp.getData(); } /** * - * partially update the specified NetworkPolicy - * @param name name of the NetworkPolicy (required) - * @param namespace object name and auth scope, such as for teams and projects (required) - * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) - * @param dryRun 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) - * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) - * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) - * @return ApiResponse<V1NetworkPolicy> + * read the specified ServiceCIDR + * @param name name of the ServiceCIDR (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @return ApiResponse<V1ServiceCIDR> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public ApiResponse patchNamespacedNetworkPolicyWithHttpInfo(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force) throws ApiException { - okhttp3.Call localVarCall = patchNamespacedNetworkPolicyValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, null); - Type localVarReturnType = new TypeToken(){}.getType(); + public ApiResponse readServiceCIDRWithHttpInfo(String name, String pretty) throws ApiException { + okhttp3.Call localVarCall = readServiceCIDRValidateBeforeCall(name, pretty, null); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * (asynchronously) - * partially update the specified NetworkPolicy - * @param name name of the NetworkPolicy (required) - * @param namespace object name and auth scope, such as for teams and projects (required) - * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) - * @param dryRun 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) - * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) - * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) + * read the specified ServiceCIDR + * @param name name of the ServiceCIDR (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object @@ -3493,21 +6296,20 @@ public ApiResponse patchNamespacedNetworkPolicyWithHttpInfo(Str -
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public okhttp3.Call patchNamespacedNetworkPolicyAsync(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + public okhttp3.Call readServiceCIDRAsync(String name, String pretty, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = patchNamespacedNetworkPolicyValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + okhttp3.Call localVarCall = readServiceCIDRValidateBeforeCall(name, pretty, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** - * Build call for readIngressClass - * @param name name of the IngressClass (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * Build call for readServiceCIDRStatus + * @param name name of the ServiceCIDR (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -3518,11 +6320,11 @@ public okhttp3.Call patchNamespacedNetworkPolicyAsync(String name, String namesp 401 Unauthorized - */ - public okhttp3.Call readIngressClassCall(String name, String pretty, final ApiCallback _callback) throws ApiException { + public okhttp3.Call readServiceCIDRStatusCall(String name, String pretty, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; // create path and map variables - String localVarPath = "/apis/networking.k8s.io/v1/ingressclasses/{name}" + String localVarPath = "/apis/networking.k8s.io/v1/servicecidrs/{name}/status" .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); @@ -3535,7 +6337,7 @@ public okhttp3.Call readIngressClassCall(String name, String pretty, final ApiCa Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -3553,25 +6355,25 @@ public okhttp3.Call readIngressClassCall(String name, String pretty, final ApiCa } @SuppressWarnings("rawtypes") - private okhttp3.Call readIngressClassValidateBeforeCall(String name, String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readServiceCIDRStatusValidateBeforeCall(String name, String pretty, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { - throw new ApiException("Missing the required parameter 'name' when calling readIngressClass(Async)"); + throw new ApiException("Missing the required parameter 'name' when calling readServiceCIDRStatus(Async)"); } - okhttp3.Call localVarCall = readIngressClassCall(name, pretty, _callback); + okhttp3.Call localVarCall = readServiceCIDRStatusCall(name, pretty, _callback); return localVarCall; } /** * - * read the specified IngressClass - * @param name name of the IngressClass (required) - * @param pretty If 'true', then the output is pretty printed. (optional) - * @return V1IngressClass + * read status of the specified ServiceCIDR + * @param name name of the ServiceCIDR (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @return V1ServiceCIDR * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -3580,17 +6382,17 @@ private okhttp3.Call readIngressClassValidateBeforeCall(String name, String pret
401 Unauthorized -
*/ - public V1IngressClass readIngressClass(String name, String pretty) throws ApiException { - ApiResponse localVarResp = readIngressClassWithHttpInfo(name, pretty); + public V1ServiceCIDR readServiceCIDRStatus(String name, String pretty) throws ApiException { + ApiResponse localVarResp = readServiceCIDRStatusWithHttpInfo(name, pretty); return localVarResp.getData(); } /** * - * read the specified IngressClass - * @param name name of the IngressClass (required) - * @param pretty If 'true', then the output is pretty printed. (optional) - * @return ApiResponse<V1IngressClass> + * read status of the specified ServiceCIDR + * @param name name of the ServiceCIDR (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @return ApiResponse<V1ServiceCIDR> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -3599,17 +6401,17 @@ public V1IngressClass readIngressClass(String name, String pretty) throws ApiExc
401 Unauthorized -
*/ - public ApiResponse readIngressClassWithHttpInfo(String name, String pretty) throws ApiException { - okhttp3.Call localVarCall = readIngressClassValidateBeforeCall(name, pretty, null); - Type localVarReturnType = new TypeToken(){}.getType(); + public ApiResponse readServiceCIDRStatusWithHttpInfo(String name, String pretty) throws ApiException { + okhttp3.Call localVarCall = readServiceCIDRStatusValidateBeforeCall(name, pretty, null); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * (asynchronously) - * read the specified IngressClass - * @param name name of the IngressClass (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * read status of the specified ServiceCIDR + * @param name name of the ServiceCIDR (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object @@ -3620,18 +6422,21 @@ public ApiResponse readIngressClassWithHttpInfo(String name, Str 401 Unauthorized - */ - public okhttp3.Call readIngressClassAsync(String name, String pretty, final ApiCallback _callback) throws ApiException { + public okhttp3.Call readServiceCIDRStatusAsync(String name, String pretty, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = readIngressClassValidateBeforeCall(name, pretty, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + okhttp3.Call localVarCall = readServiceCIDRStatusValidateBeforeCall(name, pretty, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** - * Build call for readNamespacedIngress - * @param name name of the Ingress (required) - * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * Build call for replaceIPAddress + * @param name name of the IPAddress (required) + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -3639,16 +6444,16 @@ public okhttp3.Call readIngressClassAsync(String name, String pretty, final ApiC +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public okhttp3.Call readNamespacedIngressCall(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { - Object localVarPostBody = null; + public okhttp3.Call replaceIPAddressCall(String name, V1IPAddress body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + Object localVarPostBody = body; // create path and map variables - String localVarPath = "/apis/networking.k8s.io/v1/namespaces/{namespace}/ingresses/{name}" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + String localVarPath = "/apis/networking.k8s.io/v1/ipaddresses/{name}" + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -3656,11 +6461,23 @@ public okhttp3.Call readNamespacedIngressCall(String name, String namespace, Str localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } + + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + + if (fieldValidation != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); + } + Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -3668,81 +6485,92 @@ public okhttp3.Call readNamespacedIngressCall(String name, String namespace, Str } final String[] localVarContentTypes = { - + "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") - private okhttp3.Call readNamespacedIngressValidateBeforeCall(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceIPAddressValidateBeforeCall(String name, V1IPAddress body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { - throw new ApiException("Missing the required parameter 'name' when calling readNamespacedIngress(Async)"); + throw new ApiException("Missing the required parameter 'name' when calling replaceIPAddress(Async)"); } - // verify the required parameter 'namespace' is set - if (namespace == null) { - throw new ApiException("Missing the required parameter 'namespace' when calling readNamespacedIngress(Async)"); + // verify the required parameter 'body' is set + if (body == null) { + throw new ApiException("Missing the required parameter 'body' when calling replaceIPAddress(Async)"); } - okhttp3.Call localVarCall = readNamespacedIngressCall(name, namespace, pretty, _callback); + okhttp3.Call localVarCall = replaceIPAddressCall(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); return localVarCall; } /** * - * read the specified Ingress - * @param name name of the Ingress (required) - * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) - * @return V1Ingress + * replace the specified IPAddress + * @param name name of the IPAddress (required) + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @return V1IPAddress * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public V1Ingress readNamespacedIngress(String name, String namespace, String pretty) throws ApiException { - ApiResponse localVarResp = readNamespacedIngressWithHttpInfo(name, namespace, pretty); + public V1IPAddress replaceIPAddress(String name, V1IPAddress body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { + ApiResponse localVarResp = replaceIPAddressWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation); return localVarResp.getData(); } /** * - * read the specified Ingress - * @param name name of the Ingress (required) - * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) - * @return ApiResponse<V1Ingress> + * replace the specified IPAddress + * @param name name of the IPAddress (required) + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @return ApiResponse<V1IPAddress> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public ApiResponse readNamespacedIngressWithHttpInfo(String name, String namespace, String pretty) throws ApiException { - okhttp3.Call localVarCall = readNamespacedIngressValidateBeforeCall(name, namespace, pretty, null); - Type localVarReturnType = new TypeToken(){}.getType(); + public ApiResponse replaceIPAddressWithHttpInfo(String name, V1IPAddress body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { + okhttp3.Call localVarCall = replaceIPAddressValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, null); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * (asynchronously) - * read the specified Ingress - * @param name name of the Ingress (required) - * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * replace the specified IPAddress + * @param name name of the IPAddress (required) + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object @@ -3750,21 +6578,25 @@ public ApiResponse readNamespacedIngressWithHttpInfo(String name, Str +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public okhttp3.Call readNamespacedIngressAsync(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { + public okhttp3.Call replaceIPAddressAsync(String name, V1IPAddress body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = readNamespacedIngressValidateBeforeCall(name, namespace, pretty, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + okhttp3.Call localVarCall = replaceIPAddressValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** - * Build call for readNamespacedIngressStatus - * @param name name of the Ingress (required) - * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * Build call for replaceIngressClass + * @param name name of the IngressClass (required) + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -3772,16 +6604,16 @@ public okhttp3.Call readNamespacedIngressAsync(String name, String namespace, St +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public okhttp3.Call readNamespacedIngressStatusCall(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { - Object localVarPostBody = null; + public okhttp3.Call replaceIngressClassCall(String name, V1IngressClass body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + Object localVarPostBody = body; // create path and map variables - String localVarPath = "/apis/networking.k8s.io/v1/namespaces/{namespace}/ingresses/{name}/status" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + String localVarPath = "/apis/networking.k8s.io/v1/ingressclasses/{name}" + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -3789,11 +6621,23 @@ public okhttp3.Call readNamespacedIngressStatusCall(String name, String namespac localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } + + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + + if (fieldValidation != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); + } + Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -3801,81 +6645,92 @@ public okhttp3.Call readNamespacedIngressStatusCall(String name, String namespac } final String[] localVarContentTypes = { - + "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") - private okhttp3.Call readNamespacedIngressStatusValidateBeforeCall(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceIngressClassValidateBeforeCall(String name, V1IngressClass body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { - throw new ApiException("Missing the required parameter 'name' when calling readNamespacedIngressStatus(Async)"); + throw new ApiException("Missing the required parameter 'name' when calling replaceIngressClass(Async)"); } - // verify the required parameter 'namespace' is set - if (namespace == null) { - throw new ApiException("Missing the required parameter 'namespace' when calling readNamespacedIngressStatus(Async)"); + // verify the required parameter 'body' is set + if (body == null) { + throw new ApiException("Missing the required parameter 'body' when calling replaceIngressClass(Async)"); } - okhttp3.Call localVarCall = readNamespacedIngressStatusCall(name, namespace, pretty, _callback); + okhttp3.Call localVarCall = replaceIngressClassCall(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); return localVarCall; } /** * - * read status of the specified Ingress - * @param name name of the Ingress (required) - * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) - * @return V1Ingress + * replace the specified IngressClass + * @param name name of the IngressClass (required) + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @return V1IngressClass * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public V1Ingress readNamespacedIngressStatus(String name, String namespace, String pretty) throws ApiException { - ApiResponse localVarResp = readNamespacedIngressStatusWithHttpInfo(name, namespace, pretty); + public V1IngressClass replaceIngressClass(String name, V1IngressClass body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { + ApiResponse localVarResp = replaceIngressClassWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation); return localVarResp.getData(); } /** * - * read status of the specified Ingress - * @param name name of the Ingress (required) - * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) - * @return ApiResponse<V1Ingress> + * replace the specified IngressClass + * @param name name of the IngressClass (required) + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @return ApiResponse<V1IngressClass> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public ApiResponse readNamespacedIngressStatusWithHttpInfo(String name, String namespace, String pretty) throws ApiException { - okhttp3.Call localVarCall = readNamespacedIngressStatusValidateBeforeCall(name, namespace, pretty, null); - Type localVarReturnType = new TypeToken(){}.getType(); + public ApiResponse replaceIngressClassWithHttpInfo(String name, V1IngressClass body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { + okhttp3.Call localVarCall = replaceIngressClassValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, null); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * (asynchronously) - * read status of the specified Ingress - * @param name name of the Ingress (required) - * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * replace the specified IngressClass + * @param name name of the IngressClass (required) + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object @@ -3883,21 +6738,26 @@ public ApiResponse readNamespacedIngressStatusWithHttpInfo(String nam +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public okhttp3.Call readNamespacedIngressStatusAsync(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { + public okhttp3.Call replaceIngressClassAsync(String name, V1IngressClass body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = readNamespacedIngressStatusValidateBeforeCall(name, namespace, pretty, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + okhttp3.Call localVarCall = replaceIngressClassValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** - * Build call for readNamespacedNetworkPolicy - * @param name name of the NetworkPolicy (required) + * Build call for replaceNamespacedIngress + * @param name name of the Ingress (required) * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -3905,28 +6765,41 @@ public okhttp3.Call readNamespacedIngressStatusAsync(String name, String namespa +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public okhttp3.Call readNamespacedNetworkPolicyCall(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { - Object localVarPostBody = null; + public okhttp3.Call replaceNamespacedIngressCall(String name, String namespace, V1Ingress body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + Object localVarPostBody = body; // create path and map variables - String localVarPath = "/apis/networking.k8s.io/v1/namespaces/{namespace}/networkpolicies/{name}" + String localVarPath = "/apis/networking.k8s.io/v1/namespaces/{namespace}/ingresses/{name}" .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } + + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + + if (fieldValidation != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); } Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -3934,81 +6807,100 @@ public okhttp3.Call readNamespacedNetworkPolicyCall(String name, String namespac } final String[] localVarContentTypes = { - + "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") - private okhttp3.Call readNamespacedNetworkPolicyValidateBeforeCall(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceNamespacedIngressValidateBeforeCall(String name, String namespace, V1Ingress body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { - throw new ApiException("Missing the required parameter 'name' when calling readNamespacedNetworkPolicy(Async)"); + throw new ApiException("Missing the required parameter 'name' when calling replaceNamespacedIngress(Async)"); } // verify the required parameter 'namespace' is set if (namespace == null) { - throw new ApiException("Missing the required parameter 'namespace' when calling readNamespacedNetworkPolicy(Async)"); + throw new ApiException("Missing the required parameter 'namespace' when calling replaceNamespacedIngress(Async)"); + } + + // verify the required parameter 'body' is set + if (body == null) { + throw new ApiException("Missing the required parameter 'body' when calling replaceNamespacedIngress(Async)"); } - okhttp3.Call localVarCall = readNamespacedNetworkPolicyCall(name, namespace, pretty, _callback); + okhttp3.Call localVarCall = replaceNamespacedIngressCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); return localVarCall; } /** * - * read the specified NetworkPolicy - * @param name name of the NetworkPolicy (required) + * replace the specified Ingress + * @param name name of the Ingress (required) * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) - * @return V1NetworkPolicy + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @return V1Ingress * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public V1NetworkPolicy readNamespacedNetworkPolicy(String name, String namespace, String pretty) throws ApiException { - ApiResponse localVarResp = readNamespacedNetworkPolicyWithHttpInfo(name, namespace, pretty); + public V1Ingress replaceNamespacedIngress(String name, String namespace, V1Ingress body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { + ApiResponse localVarResp = replaceNamespacedIngressWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation); return localVarResp.getData(); } /** * - * read the specified NetworkPolicy - * @param name name of the NetworkPolicy (required) + * replace the specified Ingress + * @param name name of the Ingress (required) * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) - * @return ApiResponse<V1NetworkPolicy> + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @return ApiResponse<V1Ingress> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public ApiResponse readNamespacedNetworkPolicyWithHttpInfo(String name, String namespace, String pretty) throws ApiException { - okhttp3.Call localVarCall = readNamespacedNetworkPolicyValidateBeforeCall(name, namespace, pretty, null); - Type localVarReturnType = new TypeToken(){}.getType(); + public ApiResponse replaceNamespacedIngressWithHttpInfo(String name, String namespace, V1Ingress body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { + okhttp3.Call localVarCall = replaceNamespacedIngressValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, null); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * (asynchronously) - * read the specified NetworkPolicy - * @param name name of the NetworkPolicy (required) + * replace the specified Ingress + * @param name name of the Ingress (required) * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object @@ -4016,21 +6908,23 @@ public ApiResponse readNamespacedNetworkPolicyWithHttpInfo(Stri +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public okhttp3.Call readNamespacedNetworkPolicyAsync(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { + public okhttp3.Call replaceNamespacedIngressAsync(String name, String namespace, V1Ingress body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = readNamespacedNetworkPolicyValidateBeforeCall(name, namespace, pretty, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + okhttp3.Call localVarCall = replaceNamespacedIngressValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** - * Build call for replaceIngressClass - * @param name name of the IngressClass (required) + * Build call for replaceNamespacedIngressStatus + * @param name name of the Ingress (required) + * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -4045,12 +6939,13 @@ public okhttp3.Call readNamespacedNetworkPolicyAsync(String name, String namespa 401 Unauthorized - */ - public okhttp3.Call replaceIngressClassCall(String name, V1IngressClass body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + public okhttp3.Call replaceNamespacedIngressStatusCall(String name, String namespace, V1Ingress body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; // create path and map variables - String localVarPath = "/apis/networking.k8s.io/v1/ingressclasses/{name}" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); + String localVarPath = "/apis/networking.k8s.io/v1/namespaces/{namespace}/ingresses/{name}/status" + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -4074,7 +6969,7 @@ public okhttp3.Call replaceIngressClassCall(String name, V1IngressClass body, St Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -4092,34 +6987,40 @@ public okhttp3.Call replaceIngressClassCall(String name, V1IngressClass body, St } @SuppressWarnings("rawtypes") - private okhttp3.Call replaceIngressClassValidateBeforeCall(String name, V1IngressClass body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceNamespacedIngressStatusValidateBeforeCall(String name, String namespace, V1Ingress body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { - throw new ApiException("Missing the required parameter 'name' when calling replaceIngressClass(Async)"); + throw new ApiException("Missing the required parameter 'name' when calling replaceNamespacedIngressStatus(Async)"); + } + + // verify the required parameter 'namespace' is set + if (namespace == null) { + throw new ApiException("Missing the required parameter 'namespace' when calling replaceNamespacedIngressStatus(Async)"); } // verify the required parameter 'body' is set if (body == null) { - throw new ApiException("Missing the required parameter 'body' when calling replaceIngressClass(Async)"); + throw new ApiException("Missing the required parameter 'body' when calling replaceNamespacedIngressStatus(Async)"); } - okhttp3.Call localVarCall = replaceIngressClassCall(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); + okhttp3.Call localVarCall = replaceNamespacedIngressStatusCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); return localVarCall; } /** * - * replace the specified IngressClass - * @param name name of the IngressClass (required) + * replace status of the specified Ingress + * @param name name of the Ingress (required) + * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - * @return V1IngressClass + * @return V1Ingress * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -4129,21 +7030,22 @@ private okhttp3.Call replaceIngressClassValidateBeforeCall(String name, V1Ingres
401 Unauthorized -
*/ - public V1IngressClass replaceIngressClass(String name, V1IngressClass body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { - ApiResponse localVarResp = replaceIngressClassWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation); + public V1Ingress replaceNamespacedIngressStatus(String name, String namespace, V1Ingress body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { + ApiResponse localVarResp = replaceNamespacedIngressStatusWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation); return localVarResp.getData(); } /** * - * replace the specified IngressClass - * @param name name of the IngressClass (required) + * replace status of the specified Ingress + * @param name name of the Ingress (required) + * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - * @return ApiResponse<V1IngressClass> + * @return ApiResponse<V1Ingress> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -4153,18 +7055,19 @@ public V1IngressClass replaceIngressClass(String name, V1IngressClass body, Stri
401 Unauthorized -
*/ - public ApiResponse replaceIngressClassWithHttpInfo(String name, V1IngressClass body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { - okhttp3.Call localVarCall = replaceIngressClassValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, null); - Type localVarReturnType = new TypeToken(){}.getType(); + public ApiResponse replaceNamespacedIngressStatusWithHttpInfo(String name, String namespace, V1Ingress body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { + okhttp3.Call localVarCall = replaceNamespacedIngressStatusValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, null); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * (asynchronously) - * replace the specified IngressClass - * @param name name of the IngressClass (required) + * replace status of the specified Ingress + * @param name name of the Ingress (required) + * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -4179,19 +7082,19 @@ public ApiResponse replaceIngressClassWithHttpInfo(String name, 401 Unauthorized - */ - public okhttp3.Call replaceIngressClassAsync(String name, V1IngressClass body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + public okhttp3.Call replaceNamespacedIngressStatusAsync(String name, String namespace, V1Ingress body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = replaceIngressClassValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + okhttp3.Call localVarCall = replaceNamespacedIngressStatusValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** - * Build call for replaceNamespacedIngress - * @param name name of the Ingress (required) + * Build call for replaceNamespacedNetworkPolicy + * @param name name of the NetworkPolicy (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -4206,11 +7109,11 @@ public okhttp3.Call replaceIngressClassAsync(String name, V1IngressClass body, S 401 Unauthorized - */ - public okhttp3.Call replaceNamespacedIngressCall(String name, String namespace, V1Ingress body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + public okhttp3.Call replaceNamespacedNetworkPolicyCall(String name, String namespace, V1NetworkPolicy body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; // create path and map variables - String localVarPath = "/apis/networking.k8s.io/v1/namespaces/{namespace}/ingresses/{name}" + String localVarPath = "/apis/networking.k8s.io/v1/namespaces/{namespace}/networkpolicies/{name}" .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); @@ -4236,7 +7139,7 @@ public okhttp3.Call replaceNamespacedIngressCall(String name, String namespace, Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -4254,40 +7157,40 @@ public okhttp3.Call replaceNamespacedIngressCall(String name, String namespace, } @SuppressWarnings("rawtypes") - private okhttp3.Call replaceNamespacedIngressValidateBeforeCall(String name, String namespace, V1Ingress body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceNamespacedNetworkPolicyValidateBeforeCall(String name, String namespace, V1NetworkPolicy body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { - throw new ApiException("Missing the required parameter 'name' when calling replaceNamespacedIngress(Async)"); + throw new ApiException("Missing the required parameter 'name' when calling replaceNamespacedNetworkPolicy(Async)"); } // verify the required parameter 'namespace' is set if (namespace == null) { - throw new ApiException("Missing the required parameter 'namespace' when calling replaceNamespacedIngress(Async)"); + throw new ApiException("Missing the required parameter 'namespace' when calling replaceNamespacedNetworkPolicy(Async)"); } // verify the required parameter 'body' is set if (body == null) { - throw new ApiException("Missing the required parameter 'body' when calling replaceNamespacedIngress(Async)"); + throw new ApiException("Missing the required parameter 'body' when calling replaceNamespacedNetworkPolicy(Async)"); } - okhttp3.Call localVarCall = replaceNamespacedIngressCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); + okhttp3.Call localVarCall = replaceNamespacedNetworkPolicyCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); return localVarCall; } /** * - * replace the specified Ingress - * @param name name of the Ingress (required) + * replace the specified NetworkPolicy + * @param name name of the NetworkPolicy (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - * @return V1Ingress + * @return V1NetworkPolicy * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -4297,22 +7200,22 @@ private okhttp3.Call replaceNamespacedIngressValidateBeforeCall(String name, Str
401 Unauthorized -
*/ - public V1Ingress replaceNamespacedIngress(String name, String namespace, V1Ingress body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { - ApiResponse localVarResp = replaceNamespacedIngressWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation); + public V1NetworkPolicy replaceNamespacedNetworkPolicy(String name, String namespace, V1NetworkPolicy body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { + ApiResponse localVarResp = replaceNamespacedNetworkPolicyWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation); return localVarResp.getData(); } /** * - * replace the specified Ingress - * @param name name of the Ingress (required) + * replace the specified NetworkPolicy + * @param name name of the NetworkPolicy (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - * @return ApiResponse<V1Ingress> + * @return ApiResponse<V1NetworkPolicy> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -4322,19 +7225,19 @@ public V1Ingress replaceNamespacedIngress(String name, String namespace, V1Ingre
401 Unauthorized -
*/ - public ApiResponse replaceNamespacedIngressWithHttpInfo(String name, String namespace, V1Ingress body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { - okhttp3.Call localVarCall = replaceNamespacedIngressValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, null); - Type localVarReturnType = new TypeToken(){}.getType(); + public ApiResponse replaceNamespacedNetworkPolicyWithHttpInfo(String name, String namespace, V1NetworkPolicy body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { + okhttp3.Call localVarCall = replaceNamespacedNetworkPolicyValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, null); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * (asynchronously) - * replace the specified Ingress - * @param name name of the Ingress (required) + * replace the specified NetworkPolicy + * @param name name of the NetworkPolicy (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -4349,19 +7252,18 @@ public ApiResponse replaceNamespacedIngressWithHttpInfo(String name, 401 Unauthorized - */ - public okhttp3.Call replaceNamespacedIngressAsync(String name, String namespace, V1Ingress body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + public okhttp3.Call replaceNamespacedNetworkPolicyAsync(String name, String namespace, V1NetworkPolicy body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = replaceNamespacedIngressValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + okhttp3.Call localVarCall = replaceNamespacedNetworkPolicyValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** - * Build call for replaceNamespacedIngressStatus - * @param name name of the Ingress (required) - * @param namespace object name and auth scope, such as for teams and projects (required) + * Build call for replaceServiceCIDR + * @param name name of the ServiceCIDR (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -4376,13 +7278,12 @@ public okhttp3.Call replaceNamespacedIngressAsync(String name, String namespace, 401 Unauthorized - */ - public okhttp3.Call replaceNamespacedIngressStatusCall(String name, String namespace, V1Ingress body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + public okhttp3.Call replaceServiceCIDRCall(String name, V1ServiceCIDR body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; // create path and map variables - String localVarPath = "/apis/networking.k8s.io/v1/namespaces/{namespace}/ingresses/{name}/status" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + String localVarPath = "/apis/networking.k8s.io/v1/servicecidrs/{name}" + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -4406,7 +7307,7 @@ public okhttp3.Call replaceNamespacedIngressStatusCall(String name, String names Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -4424,40 +7325,34 @@ public okhttp3.Call replaceNamespacedIngressStatusCall(String name, String names } @SuppressWarnings("rawtypes") - private okhttp3.Call replaceNamespacedIngressStatusValidateBeforeCall(String name, String namespace, V1Ingress body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceServiceCIDRValidateBeforeCall(String name, V1ServiceCIDR body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { - throw new ApiException("Missing the required parameter 'name' when calling replaceNamespacedIngressStatus(Async)"); - } - - // verify the required parameter 'namespace' is set - if (namespace == null) { - throw new ApiException("Missing the required parameter 'namespace' when calling replaceNamespacedIngressStatus(Async)"); + throw new ApiException("Missing the required parameter 'name' when calling replaceServiceCIDR(Async)"); } // verify the required parameter 'body' is set if (body == null) { - throw new ApiException("Missing the required parameter 'body' when calling replaceNamespacedIngressStatus(Async)"); + throw new ApiException("Missing the required parameter 'body' when calling replaceServiceCIDR(Async)"); } - okhttp3.Call localVarCall = replaceNamespacedIngressStatusCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); + okhttp3.Call localVarCall = replaceServiceCIDRCall(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); return localVarCall; } /** * - * replace status of the specified Ingress - * @param name name of the Ingress (required) - * @param namespace object name and auth scope, such as for teams and projects (required) + * replace the specified ServiceCIDR + * @param name name of the ServiceCIDR (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - * @return V1Ingress + * @return V1ServiceCIDR * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -4467,22 +7362,21 @@ private okhttp3.Call replaceNamespacedIngressStatusValidateBeforeCall(String nam
401 Unauthorized -
*/ - public V1Ingress replaceNamespacedIngressStatus(String name, String namespace, V1Ingress body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { - ApiResponse localVarResp = replaceNamespacedIngressStatusWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation); + public V1ServiceCIDR replaceServiceCIDR(String name, V1ServiceCIDR body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { + ApiResponse localVarResp = replaceServiceCIDRWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation); return localVarResp.getData(); } /** * - * replace status of the specified Ingress - * @param name name of the Ingress (required) - * @param namespace object name and auth scope, such as for teams and projects (required) + * replace the specified ServiceCIDR + * @param name name of the ServiceCIDR (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - * @return ApiResponse<V1Ingress> + * @return ApiResponse<V1ServiceCIDR> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -4492,19 +7386,18 @@ public V1Ingress replaceNamespacedIngressStatus(String name, String namespace, V
401 Unauthorized -
*/ - public ApiResponse replaceNamespacedIngressStatusWithHttpInfo(String name, String namespace, V1Ingress body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { - okhttp3.Call localVarCall = replaceNamespacedIngressStatusValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, null); - Type localVarReturnType = new TypeToken(){}.getType(); + public ApiResponse replaceServiceCIDRWithHttpInfo(String name, V1ServiceCIDR body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { + okhttp3.Call localVarCall = replaceServiceCIDRValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, null); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * (asynchronously) - * replace status of the specified Ingress - * @param name name of the Ingress (required) - * @param namespace object name and auth scope, such as for teams and projects (required) + * replace the specified ServiceCIDR + * @param name name of the ServiceCIDR (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -4519,19 +7412,18 @@ public ApiResponse replaceNamespacedIngressStatusWithHttpInfo(String 401 Unauthorized - */ - public okhttp3.Call replaceNamespacedIngressStatusAsync(String name, String namespace, V1Ingress body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + public okhttp3.Call replaceServiceCIDRAsync(String name, V1ServiceCIDR body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = replaceNamespacedIngressStatusValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + okhttp3.Call localVarCall = replaceServiceCIDRValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** - * Build call for replaceNamespacedNetworkPolicy - * @param name name of the NetworkPolicy (required) - * @param namespace object name and auth scope, such as for teams and projects (required) + * Build call for replaceServiceCIDRStatus + * @param name name of the ServiceCIDR (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -4546,13 +7438,12 @@ public okhttp3.Call replaceNamespacedIngressStatusAsync(String name, String name 401 Unauthorized - */ - public okhttp3.Call replaceNamespacedNetworkPolicyCall(String name, String namespace, V1NetworkPolicy body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + public okhttp3.Call replaceServiceCIDRStatusCall(String name, V1ServiceCIDR body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; // create path and map variables - String localVarPath = "/apis/networking.k8s.io/v1/namespaces/{namespace}/networkpolicies/{name}" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + String localVarPath = "/apis/networking.k8s.io/v1/servicecidrs/{name}/status" + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -4576,7 +7467,7 @@ public okhttp3.Call replaceNamespacedNetworkPolicyCall(String name, String names Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -4594,40 +7485,34 @@ public okhttp3.Call replaceNamespacedNetworkPolicyCall(String name, String names } @SuppressWarnings("rawtypes") - private okhttp3.Call replaceNamespacedNetworkPolicyValidateBeforeCall(String name, String namespace, V1NetworkPolicy body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceServiceCIDRStatusValidateBeforeCall(String name, V1ServiceCIDR body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { - throw new ApiException("Missing the required parameter 'name' when calling replaceNamespacedNetworkPolicy(Async)"); - } - - // verify the required parameter 'namespace' is set - if (namespace == null) { - throw new ApiException("Missing the required parameter 'namespace' when calling replaceNamespacedNetworkPolicy(Async)"); + throw new ApiException("Missing the required parameter 'name' when calling replaceServiceCIDRStatus(Async)"); } // verify the required parameter 'body' is set if (body == null) { - throw new ApiException("Missing the required parameter 'body' when calling replaceNamespacedNetworkPolicy(Async)"); + throw new ApiException("Missing the required parameter 'body' when calling replaceServiceCIDRStatus(Async)"); } - okhttp3.Call localVarCall = replaceNamespacedNetworkPolicyCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); + okhttp3.Call localVarCall = replaceServiceCIDRStatusCall(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); return localVarCall; } /** * - * replace the specified NetworkPolicy - * @param name name of the NetworkPolicy (required) - * @param namespace object name and auth scope, such as for teams and projects (required) + * replace status of the specified ServiceCIDR + * @param name name of the ServiceCIDR (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - * @return V1NetworkPolicy + * @return V1ServiceCIDR * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -4637,22 +7522,21 @@ private okhttp3.Call replaceNamespacedNetworkPolicyValidateBeforeCall(String nam
401 Unauthorized -
*/ - public V1NetworkPolicy replaceNamespacedNetworkPolicy(String name, String namespace, V1NetworkPolicy body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { - ApiResponse localVarResp = replaceNamespacedNetworkPolicyWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation); + public V1ServiceCIDR replaceServiceCIDRStatus(String name, V1ServiceCIDR body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { + ApiResponse localVarResp = replaceServiceCIDRStatusWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation); return localVarResp.getData(); } /** * - * replace the specified NetworkPolicy - * @param name name of the NetworkPolicy (required) - * @param namespace object name and auth scope, such as for teams and projects (required) + * replace status of the specified ServiceCIDR + * @param name name of the ServiceCIDR (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - * @return ApiResponse<V1NetworkPolicy> + * @return ApiResponse<V1ServiceCIDR> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -4662,19 +7546,18 @@ public V1NetworkPolicy replaceNamespacedNetworkPolicy(String name, String namesp
401 Unauthorized -
*/ - public ApiResponse replaceNamespacedNetworkPolicyWithHttpInfo(String name, String namespace, V1NetworkPolicy body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { - okhttp3.Call localVarCall = replaceNamespacedNetworkPolicyValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, null); - Type localVarReturnType = new TypeToken(){}.getType(); + public ApiResponse replaceServiceCIDRStatusWithHttpInfo(String name, V1ServiceCIDR body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { + okhttp3.Call localVarCall = replaceServiceCIDRStatusValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, null); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * (asynchronously) - * replace the specified NetworkPolicy - * @param name name of the NetworkPolicy (required) - * @param namespace object name and auth scope, such as for teams and projects (required) + * replace status of the specified ServiceCIDR + * @param name name of the ServiceCIDR (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -4689,10 +7572,10 @@ public ApiResponse replaceNamespacedNetworkPolicyWithHttpInfo(S 401 Unauthorized - */ - public okhttp3.Call replaceNamespacedNetworkPolicyAsync(String name, String namespace, V1NetworkPolicy body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + public okhttp3.Call replaceServiceCIDRStatusAsync(String name, V1ServiceCIDR body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = replaceNamespacedNetworkPolicyValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + okhttp3.Call localVarCall = replaceServiceCIDRStatusValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/NetworkingV1alpha1Api.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/NetworkingV1alpha1Api.java deleted file mode 100644 index adaff83f03..0000000000 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/NetworkingV1alpha1Api.java +++ /dev/null @@ -1,2516 +0,0 @@ -/* -Copyright 2023 The Kubernetes Authors. -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at -http://www.apache.org/licenses/LICENSE-2.0 -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ -package io.kubernetes.client.openapi.apis; - -import io.kubernetes.client.openapi.ApiCallback; -import io.kubernetes.client.openapi.ApiClient; -import io.kubernetes.client.openapi.ApiException; -import io.kubernetes.client.openapi.ApiResponse; -import io.kubernetes.client.openapi.Configuration; -import io.kubernetes.client.openapi.Pair; -import io.kubernetes.client.openapi.ProgressRequestBody; -import io.kubernetes.client.openapi.ProgressResponseBody; - -import com.google.gson.reflect.TypeToken; - -import java.io.IOException; - - -import io.kubernetes.client.openapi.models.V1APIResourceList; -import io.kubernetes.client.openapi.models.V1DeleteOptions; -import io.kubernetes.client.custom.V1Patch; -import io.kubernetes.client.openapi.models.V1Status; -import io.kubernetes.client.openapi.models.V1alpha1ClusterCIDR; -import io.kubernetes.client.openapi.models.V1alpha1ClusterCIDRList; -import io.kubernetes.client.openapi.models.V1alpha1IPAddress; -import io.kubernetes.client.openapi.models.V1alpha1IPAddressList; - -import java.lang.reflect.Type; -import java.util.ArrayList; -import java.util.HashMap; -import java.util.List; -import java.util.Map; - -public class NetworkingV1alpha1Api { - private ApiClient localVarApiClient; - - public NetworkingV1alpha1Api() { - this(Configuration.getDefaultApiClient()); - } - - public NetworkingV1alpha1Api(ApiClient apiClient) { - this.localVarApiClient = apiClient; - } - - public ApiClient getApiClient() { - return localVarApiClient; - } - - public void setApiClient(ApiClient apiClient) { - this.localVarApiClient = apiClient; - } - - /** - * Build call for createClusterCIDR - * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) - * @param dryRun 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) - * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - - - -
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
- */ - public okhttp3.Call createClusterCIDRCall(V1alpha1ClusterCIDR body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { - Object localVarPostBody = body; - - // create path and map variables - String localVarPath = "/apis/networking.k8s.io/v1alpha1/clustercidrs"; - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); - } - - if (dryRun != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); - } - - if (fieldManager != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); - } - - if (fieldValidation != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); - } - - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - "application/json" - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); - - String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call createClusterCIDRValidateBeforeCall(V1alpha1ClusterCIDR body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { - - // verify the required parameter 'body' is set - if (body == null) { - throw new ApiException("Missing the required parameter 'body' when calling createClusterCIDR(Async)"); - } - - - okhttp3.Call localVarCall = createClusterCIDRCall(body, pretty, dryRun, fieldManager, fieldValidation, _callback); - return localVarCall; - - } - - /** - * - * create a ClusterCIDR - * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) - * @param dryRun 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) - * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - * @return V1alpha1ClusterCIDR - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - - -
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
- */ - public V1alpha1ClusterCIDR createClusterCIDR(V1alpha1ClusterCIDR body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { - ApiResponse localVarResp = createClusterCIDRWithHttpInfo(body, pretty, dryRun, fieldManager, fieldValidation); - return localVarResp.getData(); - } - - /** - * - * create a ClusterCIDR - * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) - * @param dryRun 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) - * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - * @return ApiResponse<V1alpha1ClusterCIDR> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - - -
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
- */ - public ApiResponse createClusterCIDRWithHttpInfo(V1alpha1ClusterCIDR body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { - okhttp3.Call localVarCall = createClusterCIDRValidateBeforeCall(body, pretty, dryRun, fieldManager, fieldValidation, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * (asynchronously) - * create a ClusterCIDR - * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) - * @param dryRun 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) - * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - - - - -
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
- */ - public okhttp3.Call createClusterCIDRAsync(V1alpha1ClusterCIDR body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = createClusterCIDRValidateBeforeCall(body, pretty, dryRun, fieldManager, fieldValidation, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - /** - * Build call for createIPAddress - * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) - * @param dryRun 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) - * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - - - -
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
- */ - public okhttp3.Call createIPAddressCall(V1alpha1IPAddress body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { - Object localVarPostBody = body; - - // create path and map variables - String localVarPath = "/apis/networking.k8s.io/v1alpha1/ipaddresses"; - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); - } - - if (dryRun != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); - } - - if (fieldManager != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); - } - - if (fieldValidation != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); - } - - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - "application/json" - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); - - String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call createIPAddressValidateBeforeCall(V1alpha1IPAddress body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { - - // verify the required parameter 'body' is set - if (body == null) { - throw new ApiException("Missing the required parameter 'body' when calling createIPAddress(Async)"); - } - - - okhttp3.Call localVarCall = createIPAddressCall(body, pretty, dryRun, fieldManager, fieldValidation, _callback); - return localVarCall; - - } - - /** - * - * create an IPAddress - * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) - * @param dryRun 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) - * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - * @return V1alpha1IPAddress - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - - -
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
- */ - public V1alpha1IPAddress createIPAddress(V1alpha1IPAddress body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { - ApiResponse localVarResp = createIPAddressWithHttpInfo(body, pretty, dryRun, fieldManager, fieldValidation); - return localVarResp.getData(); - } - - /** - * - * create an IPAddress - * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) - * @param dryRun 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) - * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - * @return ApiResponse<V1alpha1IPAddress> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - - -
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
- */ - public ApiResponse createIPAddressWithHttpInfo(V1alpha1IPAddress body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { - okhttp3.Call localVarCall = createIPAddressValidateBeforeCall(body, pretty, dryRun, fieldManager, fieldValidation, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * (asynchronously) - * create an IPAddress - * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) - * @param dryRun 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) - * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - - - - -
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
- */ - public okhttp3.Call createIPAddressAsync(V1alpha1IPAddress body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = createIPAddressValidateBeforeCall(body, pretty, dryRun, fieldManager, fieldValidation, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - /** - * Build call for deleteClusterCIDR - * @param name name of the ClusterCIDR (required) - * @param pretty If 'true', then the output is pretty printed. (optional) - * @param dryRun 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) - * @param gracePeriodSeconds 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. (optional) - * @param orphanDependents 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) - * @param propagationPolicy 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. (optional) - * @param body (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - - -
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
- */ - public okhttp3.Call deleteClusterCIDRCall(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - Object localVarPostBody = body; - - // create path and map variables - String localVarPath = "/apis/networking.k8s.io/v1alpha1/clustercidrs/{name}" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); - } - - if (dryRun != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); - } - - if (gracePeriodSeconds != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); - } - - if (orphanDependents != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("orphanDependents", orphanDependents)); - } - - if (propagationPolicy != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("propagationPolicy", propagationPolicy)); - } - - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - "application/json" - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); - - String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call deleteClusterCIDRValidateBeforeCall(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - - // verify the required parameter 'name' is set - if (name == null) { - throw new ApiException("Missing the required parameter 'name' when calling deleteClusterCIDR(Async)"); - } - - - okhttp3.Call localVarCall = deleteClusterCIDRCall(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); - return localVarCall; - - } - - /** - * - * delete a ClusterCIDR - * @param name name of the ClusterCIDR (required) - * @param pretty If 'true', then the output is pretty printed. (optional) - * @param dryRun 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) - * @param gracePeriodSeconds 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. (optional) - * @param orphanDependents 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) - * @param propagationPolicy 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. (optional) - * @param body (optional) - * @return V1Status - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - -
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
- */ - public V1Status deleteClusterCIDR(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { - ApiResponse localVarResp = deleteClusterCIDRWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body); - return localVarResp.getData(); - } - - /** - * - * delete a ClusterCIDR - * @param name name of the ClusterCIDR (required) - * @param pretty If 'true', then the output is pretty printed. (optional) - * @param dryRun 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) - * @param gracePeriodSeconds 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. (optional) - * @param orphanDependents 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) - * @param propagationPolicy 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. (optional) - * @param body (optional) - * @return ApiResponse<V1Status> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - -
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
- */ - public ApiResponse deleteClusterCIDRWithHttpInfo(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { - okhttp3.Call localVarCall = deleteClusterCIDRValidateBeforeCall(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * (asynchronously) - * delete a ClusterCIDR - * @param name name of the ClusterCIDR (required) - * @param pretty If 'true', then the output is pretty printed. (optional) - * @param dryRun 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) - * @param gracePeriodSeconds 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. (optional) - * @param orphanDependents 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) - * @param propagationPolicy 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. (optional) - * @param body (optional) - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - - - -
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
- */ - public okhttp3.Call deleteClusterCIDRAsync(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = deleteClusterCIDRValidateBeforeCall(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - /** - * Build call for deleteCollectionClusterCIDR - * @param pretty If 'true', then the output is pretty printed. (optional) - * @param _continue 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) - * @param dryRun 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) - * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) - * @param gracePeriodSeconds 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. (optional) - * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) - * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) - * @param orphanDependents 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) - * @param propagationPolicy 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. (optional) - * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) - * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) - * @param body (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - -
Status Code Description Response Headers
200 OK -
401 Unauthorized -
- */ - public okhttp3.Call deleteCollectionClusterCIDRCall(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - Object localVarPostBody = body; - - // create path and map variables - String localVarPath = "/apis/networking.k8s.io/v1alpha1/clustercidrs"; - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); - } - - if (_continue != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); - } - - if (dryRun != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); - } - - if (fieldSelector != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); - } - - if (gracePeriodSeconds != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); - } - - if (labelSelector != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); - } - - if (limit != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); - } - - if (orphanDependents != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("orphanDependents", orphanDependents)); - } - - if (propagationPolicy != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("propagationPolicy", propagationPolicy)); - } - - if (resourceVersion != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); - } - - if (resourceVersionMatch != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersionMatch", resourceVersionMatch)); - } - - if (sendInitialEvents != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("sendInitialEvents", sendInitialEvents)); - } - - if (timeoutSeconds != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); - } - - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - "application/json" - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); - - String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call deleteCollectionClusterCIDRValidateBeforeCall(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - - - okhttp3.Call localVarCall = deleteCollectionClusterCIDRCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); - return localVarCall; - - } - - /** - * - * delete collection of ClusterCIDR - * @param pretty If 'true', then the output is pretty printed. (optional) - * @param _continue 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) - * @param dryRun 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) - * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) - * @param gracePeriodSeconds 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. (optional) - * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) - * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) - * @param orphanDependents 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) - * @param propagationPolicy 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. (optional) - * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) - * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) - * @param body (optional) - * @return V1Status - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Status Code Description Response Headers
200 OK -
401 Unauthorized -
- */ - public V1Status deleteCollectionClusterCIDR(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body) throws ApiException { - ApiResponse localVarResp = deleteCollectionClusterCIDRWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); - return localVarResp.getData(); - } - - /** - * - * delete collection of ClusterCIDR - * @param pretty If 'true', then the output is pretty printed. (optional) - * @param _continue 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) - * @param dryRun 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) - * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) - * @param gracePeriodSeconds 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. (optional) - * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) - * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) - * @param orphanDependents 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) - * @param propagationPolicy 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. (optional) - * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) - * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) - * @param body (optional) - * @return ApiResponse<V1Status> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Status Code Description Response Headers
200 OK -
401 Unauthorized -
- */ - public ApiResponse deleteCollectionClusterCIDRWithHttpInfo(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body) throws ApiException { - okhttp3.Call localVarCall = deleteCollectionClusterCIDRValidateBeforeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * (asynchronously) - * delete collection of ClusterCIDR - * @param pretty If 'true', then the output is pretty printed. (optional) - * @param _continue 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) - * @param dryRun 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) - * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) - * @param gracePeriodSeconds 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. (optional) - * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) - * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) - * @param orphanDependents 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) - * @param propagationPolicy 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. (optional) - * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) - * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) - * @param body (optional) - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - - -
Status Code Description Response Headers
200 OK -
401 Unauthorized -
- */ - public okhttp3.Call deleteCollectionClusterCIDRAsync(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = deleteCollectionClusterCIDRValidateBeforeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - /** - * Build call for deleteCollectionIPAddress - * @param pretty If 'true', then the output is pretty printed. (optional) - * @param _continue 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) - * @param dryRun 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) - * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) - * @param gracePeriodSeconds 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. (optional) - * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) - * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) - * @param orphanDependents 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) - * @param propagationPolicy 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. (optional) - * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) - * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) - * @param body (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - -
Status Code Description Response Headers
200 OK -
401 Unauthorized -
- */ - public okhttp3.Call deleteCollectionIPAddressCall(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - Object localVarPostBody = body; - - // create path and map variables - String localVarPath = "/apis/networking.k8s.io/v1alpha1/ipaddresses"; - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); - } - - if (_continue != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); - } - - if (dryRun != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); - } - - if (fieldSelector != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); - } - - if (gracePeriodSeconds != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); - } - - if (labelSelector != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); - } - - if (limit != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); - } - - if (orphanDependents != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("orphanDependents", orphanDependents)); - } - - if (propagationPolicy != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("propagationPolicy", propagationPolicy)); - } - - if (resourceVersion != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); - } - - if (resourceVersionMatch != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersionMatch", resourceVersionMatch)); - } - - if (sendInitialEvents != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("sendInitialEvents", sendInitialEvents)); - } - - if (timeoutSeconds != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); - } - - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - "application/json" - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); - - String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call deleteCollectionIPAddressValidateBeforeCall(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - - - okhttp3.Call localVarCall = deleteCollectionIPAddressCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); - return localVarCall; - - } - - /** - * - * delete collection of IPAddress - * @param pretty If 'true', then the output is pretty printed. (optional) - * @param _continue 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) - * @param dryRun 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) - * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) - * @param gracePeriodSeconds 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. (optional) - * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) - * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) - * @param orphanDependents 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) - * @param propagationPolicy 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. (optional) - * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) - * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) - * @param body (optional) - * @return V1Status - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Status Code Description Response Headers
200 OK -
401 Unauthorized -
- */ - public V1Status deleteCollectionIPAddress(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body) throws ApiException { - ApiResponse localVarResp = deleteCollectionIPAddressWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); - return localVarResp.getData(); - } - - /** - * - * delete collection of IPAddress - * @param pretty If 'true', then the output is pretty printed. (optional) - * @param _continue 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) - * @param dryRun 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) - * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) - * @param gracePeriodSeconds 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. (optional) - * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) - * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) - * @param orphanDependents 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) - * @param propagationPolicy 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. (optional) - * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) - * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) - * @param body (optional) - * @return ApiResponse<V1Status> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Status Code Description Response Headers
200 OK -
401 Unauthorized -
- */ - public ApiResponse deleteCollectionIPAddressWithHttpInfo(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body) throws ApiException { - okhttp3.Call localVarCall = deleteCollectionIPAddressValidateBeforeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * (asynchronously) - * delete collection of IPAddress - * @param pretty If 'true', then the output is pretty printed. (optional) - * @param _continue 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) - * @param dryRun 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) - * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) - * @param gracePeriodSeconds 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. (optional) - * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) - * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) - * @param orphanDependents 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) - * @param propagationPolicy 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. (optional) - * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) - * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) - * @param body (optional) - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - - -
Status Code Description Response Headers
200 OK -
401 Unauthorized -
- */ - public okhttp3.Call deleteCollectionIPAddressAsync(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = deleteCollectionIPAddressValidateBeforeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - /** - * Build call for deleteIPAddress - * @param name name of the IPAddress (required) - * @param pretty If 'true', then the output is pretty printed. (optional) - * @param dryRun 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) - * @param gracePeriodSeconds 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. (optional) - * @param orphanDependents 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) - * @param propagationPolicy 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. (optional) - * @param body (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - - -
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
- */ - public okhttp3.Call deleteIPAddressCall(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - Object localVarPostBody = body; - - // create path and map variables - String localVarPath = "/apis/networking.k8s.io/v1alpha1/ipaddresses/{name}" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); - } - - if (dryRun != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); - } - - if (gracePeriodSeconds != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); - } - - if (orphanDependents != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("orphanDependents", orphanDependents)); - } - - if (propagationPolicy != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("propagationPolicy", propagationPolicy)); - } - - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - "application/json" - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); - - String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call deleteIPAddressValidateBeforeCall(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - - // verify the required parameter 'name' is set - if (name == null) { - throw new ApiException("Missing the required parameter 'name' when calling deleteIPAddress(Async)"); - } - - - okhttp3.Call localVarCall = deleteIPAddressCall(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); - return localVarCall; - - } - - /** - * - * delete an IPAddress - * @param name name of the IPAddress (required) - * @param pretty If 'true', then the output is pretty printed. (optional) - * @param dryRun 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) - * @param gracePeriodSeconds 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. (optional) - * @param orphanDependents 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) - * @param propagationPolicy 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. (optional) - * @param body (optional) - * @return V1Status - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - -
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
- */ - public V1Status deleteIPAddress(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { - ApiResponse localVarResp = deleteIPAddressWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body); - return localVarResp.getData(); - } - - /** - * - * delete an IPAddress - * @param name name of the IPAddress (required) - * @param pretty If 'true', then the output is pretty printed. (optional) - * @param dryRun 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) - * @param gracePeriodSeconds 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. (optional) - * @param orphanDependents 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) - * @param propagationPolicy 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. (optional) - * @param body (optional) - * @return ApiResponse<V1Status> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - -
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
- */ - public ApiResponse deleteIPAddressWithHttpInfo(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { - okhttp3.Call localVarCall = deleteIPAddressValidateBeforeCall(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * (asynchronously) - * delete an IPAddress - * @param name name of the IPAddress (required) - * @param pretty If 'true', then the output is pretty printed. (optional) - * @param dryRun 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) - * @param gracePeriodSeconds 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. (optional) - * @param orphanDependents 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) - * @param propagationPolicy 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. (optional) - * @param body (optional) - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - - - -
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
- */ - public okhttp3.Call deleteIPAddressAsync(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = deleteIPAddressValidateBeforeCall(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - /** - * Build call for getAPIResources - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - -
Status Code Description Response Headers
200 OK -
401 Unauthorized -
- */ - public okhttp3.Call getAPIResourcesCall(final ApiCallback _callback) throws ApiException { - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = "/apis/networking.k8s.io/v1alpha1/"; - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); - - String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call getAPIResourcesValidateBeforeCall(final ApiCallback _callback) throws ApiException { - - - okhttp3.Call localVarCall = getAPIResourcesCall(_callback); - return localVarCall; - - } - - /** - * - * get available resources - * @return V1APIResourceList - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Status Code Description Response Headers
200 OK -
401 Unauthorized -
- */ - public V1APIResourceList getAPIResources() throws ApiException { - ApiResponse localVarResp = getAPIResourcesWithHttpInfo(); - return localVarResp.getData(); - } - - /** - * - * get available resources - * @return ApiResponse<V1APIResourceList> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Status Code Description Response Headers
200 OK -
401 Unauthorized -
- */ - public ApiResponse getAPIResourcesWithHttpInfo() throws ApiException { - okhttp3.Call localVarCall = getAPIResourcesValidateBeforeCall(null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * (asynchronously) - * get available resources - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - - -
Status Code Description Response Headers
200 OK -
401 Unauthorized -
- */ - public okhttp3.Call getAPIResourcesAsync(final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = getAPIResourcesValidateBeforeCall(_callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - /** - * Build call for listClusterCIDR - * @param pretty If 'true', then the output is pretty printed. (optional) - * @param allowWatchBookmarks 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. (optional) - * @param _continue 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) - * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) - * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) - * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) - * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) - * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) - * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - -
Status Code Description Response Headers
200 OK -
401 Unauthorized -
- */ - public okhttp3.Call listClusterCIDRCall(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = "/apis/networking.k8s.io/v1alpha1/clustercidrs"; - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); - } - - if (allowWatchBookmarks != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("allowWatchBookmarks", allowWatchBookmarks)); - } - - if (_continue != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); - } - - if (fieldSelector != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); - } - - if (labelSelector != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); - } - - if (limit != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); - } - - if (resourceVersion != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); - } - - if (resourceVersionMatch != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersionMatch", resourceVersionMatch)); - } - - if (sendInitialEvents != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("sendInitialEvents", sendInitialEvents)); - } - - if (timeoutSeconds != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); - } - - if (watch != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); - } - - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); - - String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call listClusterCIDRValidateBeforeCall(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { - - - okhttp3.Call localVarCall = listClusterCIDRCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); - return localVarCall; - - } - - /** - * - * list or watch objects of kind ClusterCIDR - * @param pretty If 'true', then the output is pretty printed. (optional) - * @param allowWatchBookmarks 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. (optional) - * @param _continue 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) - * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) - * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) - * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) - * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) - * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) - * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @return V1alpha1ClusterCIDRList - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Status Code Description Response Headers
200 OK -
401 Unauthorized -
- */ - public V1alpha1ClusterCIDRList listClusterCIDR(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch) throws ApiException { - ApiResponse localVarResp = listClusterCIDRWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); - return localVarResp.getData(); - } - - /** - * - * list or watch objects of kind ClusterCIDR - * @param pretty If 'true', then the output is pretty printed. (optional) - * @param allowWatchBookmarks 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. (optional) - * @param _continue 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) - * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) - * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) - * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) - * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) - * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) - * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @return ApiResponse<V1alpha1ClusterCIDRList> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Status Code Description Response Headers
200 OK -
401 Unauthorized -
- */ - public ApiResponse listClusterCIDRWithHttpInfo(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch) throws ApiException { - okhttp3.Call localVarCall = listClusterCIDRValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * (asynchronously) - * list or watch objects of kind ClusterCIDR - * @param pretty If 'true', then the output is pretty printed. (optional) - * @param allowWatchBookmarks 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. (optional) - * @param _continue 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) - * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) - * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) - * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) - * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) - * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) - * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - - -
Status Code Description Response Headers
200 OK -
401 Unauthorized -
- */ - public okhttp3.Call listClusterCIDRAsync(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = listClusterCIDRValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - /** - * Build call for listIPAddress - * @param pretty If 'true', then the output is pretty printed. (optional) - * @param allowWatchBookmarks 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. (optional) - * @param _continue 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) - * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) - * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) - * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) - * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) - * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) - * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - -
Status Code Description Response Headers
200 OK -
401 Unauthorized -
- */ - public okhttp3.Call listIPAddressCall(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = "/apis/networking.k8s.io/v1alpha1/ipaddresses"; - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); - } - - if (allowWatchBookmarks != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("allowWatchBookmarks", allowWatchBookmarks)); - } - - if (_continue != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); - } - - if (fieldSelector != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); - } - - if (labelSelector != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); - } - - if (limit != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); - } - - if (resourceVersion != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); - } - - if (resourceVersionMatch != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersionMatch", resourceVersionMatch)); - } - - if (sendInitialEvents != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("sendInitialEvents", sendInitialEvents)); - } - - if (timeoutSeconds != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); - } - - if (watch != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); - } - - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); - - String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call listIPAddressValidateBeforeCall(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { - - - okhttp3.Call localVarCall = listIPAddressCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); - return localVarCall; - - } - - /** - * - * list or watch objects of kind IPAddress - * @param pretty If 'true', then the output is pretty printed. (optional) - * @param allowWatchBookmarks 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. (optional) - * @param _continue 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) - * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) - * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) - * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) - * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) - * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) - * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @return V1alpha1IPAddressList - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Status Code Description Response Headers
200 OK -
401 Unauthorized -
- */ - public V1alpha1IPAddressList listIPAddress(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch) throws ApiException { - ApiResponse localVarResp = listIPAddressWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); - return localVarResp.getData(); - } - - /** - * - * list or watch objects of kind IPAddress - * @param pretty If 'true', then the output is pretty printed. (optional) - * @param allowWatchBookmarks 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. (optional) - * @param _continue 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) - * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) - * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) - * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) - * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) - * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) - * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @return ApiResponse<V1alpha1IPAddressList> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Status Code Description Response Headers
200 OK -
401 Unauthorized -
- */ - public ApiResponse listIPAddressWithHttpInfo(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch) throws ApiException { - okhttp3.Call localVarCall = listIPAddressValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * (asynchronously) - * list or watch objects of kind IPAddress - * @param pretty If 'true', then the output is pretty printed. (optional) - * @param allowWatchBookmarks 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. (optional) - * @param _continue 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) - * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) - * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) - * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) - * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) - * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) - * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - - -
Status Code Description Response Headers
200 OK -
401 Unauthorized -
- */ - public okhttp3.Call listIPAddressAsync(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = listIPAddressValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - /** - * Build call for patchClusterCIDR - * @param name name of the ClusterCIDR (required) - * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) - * @param dryRun 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) - * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) - * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - - -
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
- */ - public okhttp3.Call patchClusterCIDRCall(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { - Object localVarPostBody = body; - - // create path and map variables - String localVarPath = "/apis/networking.k8s.io/v1alpha1/clustercidrs/{name}" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); - } - - if (dryRun != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); - } - - if (fieldManager != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); - } - - if (fieldValidation != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); - } - - if (force != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("force", force)); - } - - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - "application/json" - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); - - String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call patchClusterCIDRValidateBeforeCall(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { - - // verify the required parameter 'name' is set - if (name == null) { - throw new ApiException("Missing the required parameter 'name' when calling patchClusterCIDR(Async)"); - } - - // verify the required parameter 'body' is set - if (body == null) { - throw new ApiException("Missing the required parameter 'body' when calling patchClusterCIDR(Async)"); - } - - - okhttp3.Call localVarCall = patchClusterCIDRCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); - return localVarCall; - - } - - /** - * - * partially update the specified ClusterCIDR - * @param name name of the ClusterCIDR (required) - * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) - * @param dryRun 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) - * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) - * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) - * @return V1alpha1ClusterCIDR - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - -
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
- */ - public V1alpha1ClusterCIDR patchClusterCIDR(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force) throws ApiException { - ApiResponse localVarResp = patchClusterCIDRWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force); - return localVarResp.getData(); - } - - /** - * - * partially update the specified ClusterCIDR - * @param name name of the ClusterCIDR (required) - * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) - * @param dryRun 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) - * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) - * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) - * @return ApiResponse<V1alpha1ClusterCIDR> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - -
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
- */ - public ApiResponse patchClusterCIDRWithHttpInfo(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force) throws ApiException { - okhttp3.Call localVarCall = patchClusterCIDRValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * (asynchronously) - * partially update the specified ClusterCIDR - * @param name name of the ClusterCIDR (required) - * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) - * @param dryRun 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) - * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) - * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - - - -
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
- */ - public okhttp3.Call patchClusterCIDRAsync(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = patchClusterCIDRValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - /** - * Build call for patchIPAddress - * @param name name of the IPAddress (required) - * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) - * @param dryRun 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) - * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) - * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - - -
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
- */ - public okhttp3.Call patchIPAddressCall(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { - Object localVarPostBody = body; - - // create path and map variables - String localVarPath = "/apis/networking.k8s.io/v1alpha1/ipaddresses/{name}" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); - } - - if (dryRun != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); - } - - if (fieldManager != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); - } - - if (fieldValidation != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); - } - - if (force != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("force", force)); - } - - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - "application/json" - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); - - String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call patchIPAddressValidateBeforeCall(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { - - // verify the required parameter 'name' is set - if (name == null) { - throw new ApiException("Missing the required parameter 'name' when calling patchIPAddress(Async)"); - } - - // verify the required parameter 'body' is set - if (body == null) { - throw new ApiException("Missing the required parameter 'body' when calling patchIPAddress(Async)"); - } - - - okhttp3.Call localVarCall = patchIPAddressCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); - return localVarCall; - - } - - /** - * - * partially update the specified IPAddress - * @param name name of the IPAddress (required) - * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) - * @param dryRun 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) - * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) - * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) - * @return V1alpha1IPAddress - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - -
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
- */ - public V1alpha1IPAddress patchIPAddress(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force) throws ApiException { - ApiResponse localVarResp = patchIPAddressWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force); - return localVarResp.getData(); - } - - /** - * - * partially update the specified IPAddress - * @param name name of the IPAddress (required) - * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) - * @param dryRun 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) - * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) - * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) - * @return ApiResponse<V1alpha1IPAddress> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - -
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
- */ - public ApiResponse patchIPAddressWithHttpInfo(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force) throws ApiException { - okhttp3.Call localVarCall = patchIPAddressValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * (asynchronously) - * partially update the specified IPAddress - * @param name name of the IPAddress (required) - * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) - * @param dryRun 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) - * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) - * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - - - -
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
- */ - public okhttp3.Call patchIPAddressAsync(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = patchIPAddressValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - /** - * Build call for readClusterCIDR - * @param name name of the ClusterCIDR (required) - * @param pretty If 'true', then the output is pretty printed. (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - -
Status Code Description Response Headers
200 OK -
401 Unauthorized -
- */ - public okhttp3.Call readClusterCIDRCall(String name, String pretty, final ApiCallback _callback) throws ApiException { - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = "/apis/networking.k8s.io/v1alpha1/clustercidrs/{name}" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); - } - - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); - - String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call readClusterCIDRValidateBeforeCall(String name, String pretty, final ApiCallback _callback) throws ApiException { - - // verify the required parameter 'name' is set - if (name == null) { - throw new ApiException("Missing the required parameter 'name' when calling readClusterCIDR(Async)"); - } - - - okhttp3.Call localVarCall = readClusterCIDRCall(name, pretty, _callback); - return localVarCall; - - } - - /** - * - * read the specified ClusterCIDR - * @param name name of the ClusterCIDR (required) - * @param pretty If 'true', then the output is pretty printed. (optional) - * @return V1alpha1ClusterCIDR - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Status Code Description Response Headers
200 OK -
401 Unauthorized -
- */ - public V1alpha1ClusterCIDR readClusterCIDR(String name, String pretty) throws ApiException { - ApiResponse localVarResp = readClusterCIDRWithHttpInfo(name, pretty); - return localVarResp.getData(); - } - - /** - * - * read the specified ClusterCIDR - * @param name name of the ClusterCIDR (required) - * @param pretty If 'true', then the output is pretty printed. (optional) - * @return ApiResponse<V1alpha1ClusterCIDR> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Status Code Description Response Headers
200 OK -
401 Unauthorized -
- */ - public ApiResponse readClusterCIDRWithHttpInfo(String name, String pretty) throws ApiException { - okhttp3.Call localVarCall = readClusterCIDRValidateBeforeCall(name, pretty, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * (asynchronously) - * read the specified ClusterCIDR - * @param name name of the ClusterCIDR (required) - * @param pretty If 'true', then the output is pretty printed. (optional) - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - - -
Status Code Description Response Headers
200 OK -
401 Unauthorized -
- */ - public okhttp3.Call readClusterCIDRAsync(String name, String pretty, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = readClusterCIDRValidateBeforeCall(name, pretty, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - /** - * Build call for readIPAddress - * @param name name of the IPAddress (required) - * @param pretty If 'true', then the output is pretty printed. (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - -
Status Code Description Response Headers
200 OK -
401 Unauthorized -
- */ - public okhttp3.Call readIPAddressCall(String name, String pretty, final ApiCallback _callback) throws ApiException { - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = "/apis/networking.k8s.io/v1alpha1/ipaddresses/{name}" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); - } - - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); - - String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call readIPAddressValidateBeforeCall(String name, String pretty, final ApiCallback _callback) throws ApiException { - - // verify the required parameter 'name' is set - if (name == null) { - throw new ApiException("Missing the required parameter 'name' when calling readIPAddress(Async)"); - } - - - okhttp3.Call localVarCall = readIPAddressCall(name, pretty, _callback); - return localVarCall; - - } - - /** - * - * read the specified IPAddress - * @param name name of the IPAddress (required) - * @param pretty If 'true', then the output is pretty printed. (optional) - * @return V1alpha1IPAddress - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Status Code Description Response Headers
200 OK -
401 Unauthorized -
- */ - public V1alpha1IPAddress readIPAddress(String name, String pretty) throws ApiException { - ApiResponse localVarResp = readIPAddressWithHttpInfo(name, pretty); - return localVarResp.getData(); - } - - /** - * - * read the specified IPAddress - * @param name name of the IPAddress (required) - * @param pretty If 'true', then the output is pretty printed. (optional) - * @return ApiResponse<V1alpha1IPAddress> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Status Code Description Response Headers
200 OK -
401 Unauthorized -
- */ - public ApiResponse readIPAddressWithHttpInfo(String name, String pretty) throws ApiException { - okhttp3.Call localVarCall = readIPAddressValidateBeforeCall(name, pretty, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * (asynchronously) - * read the specified IPAddress - * @param name name of the IPAddress (required) - * @param pretty If 'true', then the output is pretty printed. (optional) - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - - -
Status Code Description Response Headers
200 OK -
401 Unauthorized -
- */ - public okhttp3.Call readIPAddressAsync(String name, String pretty, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = readIPAddressValidateBeforeCall(name, pretty, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - /** - * Build call for replaceClusterCIDR - * @param name name of the ClusterCIDR (required) - * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) - * @param dryRun 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) - * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - - -
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
- */ - public okhttp3.Call replaceClusterCIDRCall(String name, V1alpha1ClusterCIDR body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { - Object localVarPostBody = body; - - // create path and map variables - String localVarPath = "/apis/networking.k8s.io/v1alpha1/clustercidrs/{name}" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); - } - - if (dryRun != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); - } - - if (fieldManager != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); - } - - if (fieldValidation != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); - } - - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - "application/json" - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); - - String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call replaceClusterCIDRValidateBeforeCall(String name, V1alpha1ClusterCIDR body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { - - // verify the required parameter 'name' is set - if (name == null) { - throw new ApiException("Missing the required parameter 'name' when calling replaceClusterCIDR(Async)"); - } - - // verify the required parameter 'body' is set - if (body == null) { - throw new ApiException("Missing the required parameter 'body' when calling replaceClusterCIDR(Async)"); - } - - - okhttp3.Call localVarCall = replaceClusterCIDRCall(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); - return localVarCall; - - } - - /** - * - * replace the specified ClusterCIDR - * @param name name of the ClusterCIDR (required) - * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) - * @param dryRun 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) - * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - * @return V1alpha1ClusterCIDR - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - -
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
- */ - public V1alpha1ClusterCIDR replaceClusterCIDR(String name, V1alpha1ClusterCIDR body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { - ApiResponse localVarResp = replaceClusterCIDRWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation); - return localVarResp.getData(); - } - - /** - * - * replace the specified ClusterCIDR - * @param name name of the ClusterCIDR (required) - * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) - * @param dryRun 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) - * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - * @return ApiResponse<V1alpha1ClusterCIDR> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - -
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
- */ - public ApiResponse replaceClusterCIDRWithHttpInfo(String name, V1alpha1ClusterCIDR body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { - okhttp3.Call localVarCall = replaceClusterCIDRValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * (asynchronously) - * replace the specified ClusterCIDR - * @param name name of the ClusterCIDR (required) - * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) - * @param dryRun 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) - * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - - - -
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
- */ - public okhttp3.Call replaceClusterCIDRAsync(String name, V1alpha1ClusterCIDR body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = replaceClusterCIDRValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - /** - * Build call for replaceIPAddress - * @param name name of the IPAddress (required) - * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) - * @param dryRun 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) - * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - - -
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
- */ - public okhttp3.Call replaceIPAddressCall(String name, V1alpha1IPAddress body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { - Object localVarPostBody = body; - - // create path and map variables - String localVarPath = "/apis/networking.k8s.io/v1alpha1/ipaddresses/{name}" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); - } - - if (dryRun != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); - } - - if (fieldManager != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); - } - - if (fieldValidation != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); - } - - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - "application/json" - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); - - String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call replaceIPAddressValidateBeforeCall(String name, V1alpha1IPAddress body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { - - // verify the required parameter 'name' is set - if (name == null) { - throw new ApiException("Missing the required parameter 'name' when calling replaceIPAddress(Async)"); - } - - // verify the required parameter 'body' is set - if (body == null) { - throw new ApiException("Missing the required parameter 'body' when calling replaceIPAddress(Async)"); - } - - - okhttp3.Call localVarCall = replaceIPAddressCall(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); - return localVarCall; - - } - - /** - * - * replace the specified IPAddress - * @param name name of the IPAddress (required) - * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) - * @param dryRun 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) - * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - * @return V1alpha1IPAddress - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - -
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
- */ - public V1alpha1IPAddress replaceIPAddress(String name, V1alpha1IPAddress body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { - ApiResponse localVarResp = replaceIPAddressWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation); - return localVarResp.getData(); - } - - /** - * - * replace the specified IPAddress - * @param name name of the IPAddress (required) - * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) - * @param dryRun 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) - * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - * @return ApiResponse<V1alpha1IPAddress> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - -
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
- */ - public ApiResponse replaceIPAddressWithHttpInfo(String name, V1alpha1IPAddress body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { - okhttp3.Call localVarCall = replaceIPAddressValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * (asynchronously) - * replace the specified IPAddress - * @param name name of the IPAddress (required) - * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) - * @param dryRun 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) - * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - - - -
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
- */ - public okhttp3.Call replaceIPAddressAsync(String name, V1alpha1IPAddress body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = replaceIPAddressValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } -} 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 new file mode 100644 index 0000000000..26a2d8a07a --- /dev/null +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/NetworkingV1beta1Api.java @@ -0,0 +1,2999 @@ +/* +Copyright 2025 The Kubernetes Authors. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at +http://www.apache.org/licenses/LICENSE-2.0 +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ +package io.kubernetes.client.openapi.apis; + +import io.kubernetes.client.openapi.ApiCallback; +import io.kubernetes.client.openapi.ApiClient; +import io.kubernetes.client.openapi.ApiException; +import io.kubernetes.client.openapi.ApiResponse; +import io.kubernetes.client.openapi.Configuration; +import io.kubernetes.client.openapi.Pair; +import io.kubernetes.client.openapi.ProgressRequestBody; +import io.kubernetes.client.openapi.ProgressResponseBody; + +import com.google.gson.reflect.TypeToken; + +import java.io.IOException; + + +import io.kubernetes.client.openapi.models.V1APIResourceList; +import io.kubernetes.client.openapi.models.V1DeleteOptions; +import io.kubernetes.client.custom.V1Patch; +import io.kubernetes.client.openapi.models.V1Status; +import io.kubernetes.client.openapi.models.V1beta1IPAddress; +import io.kubernetes.client.openapi.models.V1beta1IPAddressList; +import io.kubernetes.client.openapi.models.V1beta1ServiceCIDR; +import io.kubernetes.client.openapi.models.V1beta1ServiceCIDRList; + +import java.lang.reflect.Type; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +public class NetworkingV1beta1Api { + private ApiClient localVarApiClient; + + public NetworkingV1beta1Api() { + this(Configuration.getDefaultApiClient()); + } + + public NetworkingV1beta1Api(ApiClient apiClient) { + this.localVarApiClient = apiClient; + } + + public ApiClient getApiClient() { + return localVarApiClient; + } + + public void setApiClient(ApiClient apiClient) { + this.localVarApiClient = apiClient; + } + + /** + * Build call for createIPAddress + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
+ */ + public okhttp3.Call createIPAddressCall(V1beta1IPAddress body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + Object localVarPostBody = body; + + // create path and map variables + String localVarPath = "/apis/networking.k8s.io/v1beta1/ipaddresses"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } + + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + + if (fieldValidation != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + final String[] localVarAccepts = { + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call createIPAddressValidateBeforeCall(V1beta1IPAddress body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'body' is set + if (body == null) { + throw new ApiException("Missing the required parameter 'body' when calling createIPAddress(Async)"); + } + + + okhttp3.Call localVarCall = createIPAddressCall(body, pretty, dryRun, fieldManager, fieldValidation, _callback); + return localVarCall; + + } + + /** + * + * create an IPAddress + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @return V1beta1IPAddress + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
+ */ + public V1beta1IPAddress createIPAddress(V1beta1IPAddress body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { + ApiResponse localVarResp = createIPAddressWithHttpInfo(body, pretty, dryRun, fieldManager, fieldValidation); + return localVarResp.getData(); + } + + /** + * + * create an IPAddress + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @return ApiResponse<V1beta1IPAddress> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
+ */ + public ApiResponse createIPAddressWithHttpInfo(V1beta1IPAddress body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { + okhttp3.Call localVarCall = createIPAddressValidateBeforeCall(body, pretty, dryRun, fieldManager, fieldValidation, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * create an IPAddress + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
+ */ + public okhttp3.Call createIPAddressAsync(V1beta1IPAddress body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = createIPAddressValidateBeforeCall(body, pretty, dryRun, fieldManager, fieldValidation, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for createServiceCIDR + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
+ */ + public okhttp3.Call createServiceCIDRCall(V1beta1ServiceCIDR body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + Object localVarPostBody = body; + + // create path and map variables + String localVarPath = "/apis/networking.k8s.io/v1beta1/servicecidrs"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } + + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + + if (fieldValidation != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + final String[] localVarAccepts = { + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call createServiceCIDRValidateBeforeCall(V1beta1ServiceCIDR body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'body' is set + if (body == null) { + throw new ApiException("Missing the required parameter 'body' when calling createServiceCIDR(Async)"); + } + + + okhttp3.Call localVarCall = createServiceCIDRCall(body, pretty, dryRun, fieldManager, fieldValidation, _callback); + return localVarCall; + + } + + /** + * + * create a ServiceCIDR + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @return V1beta1ServiceCIDR + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
+ */ + public V1beta1ServiceCIDR createServiceCIDR(V1beta1ServiceCIDR body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { + ApiResponse localVarResp = createServiceCIDRWithHttpInfo(body, pretty, dryRun, fieldManager, fieldValidation); + return localVarResp.getData(); + } + + /** + * + * create a ServiceCIDR + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @return ApiResponse<V1beta1ServiceCIDR> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
+ */ + public ApiResponse createServiceCIDRWithHttpInfo(V1beta1ServiceCIDR body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { + okhttp3.Call localVarCall = createServiceCIDRValidateBeforeCall(body, pretty, dryRun, fieldManager, fieldValidation, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * create a ServiceCIDR + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
+ */ + public okhttp3.Call createServiceCIDRAsync(V1beta1ServiceCIDR body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = createServiceCIDRValidateBeforeCall(body, pretty, dryRun, fieldManager, fieldValidation, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for deleteCollectionIPAddress + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param _continue 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) + * @param dryRun 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) + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param orphanDependents 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) + * @param propagationPolicy 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. (optional) + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + * @param body (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call deleteCollectionIPAddressCall(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + Object localVarPostBody = body; + + // create path and map variables + String localVarPath = "/apis/networking.k8s.io/v1beta1/ipaddresses"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + + if (_continue != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); + } + + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } + + if (fieldSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); + } + + if (gracePeriodSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); + } + + if (ignoreStoreReadErrorWithClusterBreakingPotential != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("ignoreStoreReadErrorWithClusterBreakingPotential", ignoreStoreReadErrorWithClusterBreakingPotential)); + } + + if (labelSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); + } + + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + } + + if (orphanDependents != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("orphanDependents", orphanDependents)); + } + + if (propagationPolicy != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("propagationPolicy", propagationPolicy)); + } + + if (resourceVersion != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); + } + + if (resourceVersionMatch != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersionMatch", resourceVersionMatch)); + } + + if (sendInitialEvents != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("sendInitialEvents", sendInitialEvents)); + } + + if (timeoutSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + final String[] localVarAccepts = { + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call deleteCollectionIPAddressValidateBeforeCall(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + + + okhttp3.Call localVarCall = deleteCollectionIPAddressCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + return localVarCall; + + } + + /** + * + * delete collection of IPAddress + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param _continue 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) + * @param dryRun 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) + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param orphanDependents 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) + * @param propagationPolicy 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. (optional) + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + * @param body (optional) + * @return V1Status + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public V1Status deleteCollectionIPAddress(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body) throws ApiException { + ApiResponse localVarResp = deleteCollectionIPAddressWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); + return localVarResp.getData(); + } + + /** + * + * delete collection of IPAddress + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param _continue 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) + * @param dryRun 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) + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param orphanDependents 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) + * @param propagationPolicy 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. (optional) + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + * @param body (optional) + * @return ApiResponse<V1Status> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public ApiResponse deleteCollectionIPAddressWithHttpInfo(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteCollectionIPAddressValidateBeforeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * delete collection of IPAddress + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param _continue 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) + * @param dryRun 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) + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param orphanDependents 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) + * @param propagationPolicy 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. (optional) + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + * @param body (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call deleteCollectionIPAddressAsync(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = deleteCollectionIPAddressValidateBeforeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for deleteCollectionServiceCIDR + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param _continue 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) + * @param dryRun 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) + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param orphanDependents 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) + * @param propagationPolicy 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. (optional) + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + * @param body (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call deleteCollectionServiceCIDRCall(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + Object localVarPostBody = body; + + // create path and map variables + String localVarPath = "/apis/networking.k8s.io/v1beta1/servicecidrs"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + + if (_continue != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); + } + + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } + + if (fieldSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); + } + + if (gracePeriodSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); + } + + if (ignoreStoreReadErrorWithClusterBreakingPotential != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("ignoreStoreReadErrorWithClusterBreakingPotential", ignoreStoreReadErrorWithClusterBreakingPotential)); + } + + if (labelSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); + } + + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + } + + if (orphanDependents != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("orphanDependents", orphanDependents)); + } + + if (propagationPolicy != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("propagationPolicy", propagationPolicy)); + } + + if (resourceVersion != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); + } + + if (resourceVersionMatch != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersionMatch", resourceVersionMatch)); + } + + if (sendInitialEvents != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("sendInitialEvents", sendInitialEvents)); + } + + if (timeoutSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + final String[] localVarAccepts = { + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call deleteCollectionServiceCIDRValidateBeforeCall(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + + + okhttp3.Call localVarCall = deleteCollectionServiceCIDRCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + return localVarCall; + + } + + /** + * + * delete collection of ServiceCIDR + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param _continue 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) + * @param dryRun 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) + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param orphanDependents 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) + * @param propagationPolicy 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. (optional) + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + * @param body (optional) + * @return V1Status + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public V1Status deleteCollectionServiceCIDR(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body) throws ApiException { + ApiResponse localVarResp = deleteCollectionServiceCIDRWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); + return localVarResp.getData(); + } + + /** + * + * delete collection of ServiceCIDR + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param _continue 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) + * @param dryRun 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) + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param orphanDependents 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) + * @param propagationPolicy 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. (optional) + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + * @param body (optional) + * @return ApiResponse<V1Status> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public ApiResponse deleteCollectionServiceCIDRWithHttpInfo(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteCollectionServiceCIDRValidateBeforeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * delete collection of ServiceCIDR + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param _continue 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) + * @param dryRun 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) + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param orphanDependents 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) + * @param propagationPolicy 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. (optional) + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + * @param body (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call deleteCollectionServiceCIDRAsync(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = deleteCollectionServiceCIDRValidateBeforeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for deleteIPAddress + * @param name name of the IPAddress (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) + * @param orphanDependents 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) + * @param propagationPolicy 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. (optional) + * @param body (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
+ */ + public okhttp3.Call deleteIPAddressCall(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + Object localVarPostBody = body; + + // create path and map variables + String localVarPath = "/apis/networking.k8s.io/v1beta1/ipaddresses/{name}" + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } + + if (gracePeriodSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); + } + + if (ignoreStoreReadErrorWithClusterBreakingPotential != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("ignoreStoreReadErrorWithClusterBreakingPotential", ignoreStoreReadErrorWithClusterBreakingPotential)); + } + + if (orphanDependents != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("orphanDependents", orphanDependents)); + } + + if (propagationPolicy != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("propagationPolicy", propagationPolicy)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + final String[] localVarAccepts = { + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call deleteIPAddressValidateBeforeCall(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'name' is set + if (name == null) { + throw new ApiException("Missing the required parameter 'name' when calling deleteIPAddress(Async)"); + } + + + okhttp3.Call localVarCall = deleteIPAddressCall(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); + return localVarCall; + + } + + /** + * + * delete an IPAddress + * @param name name of the IPAddress (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) + * @param orphanDependents 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) + * @param propagationPolicy 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. (optional) + * @param body (optional) + * @return V1Status + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
+ */ + public V1Status deleteIPAddress(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { + ApiResponse localVarResp = deleteIPAddressWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body); + return localVarResp.getData(); + } + + /** + * + * delete an IPAddress + * @param name name of the IPAddress (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) + * @param orphanDependents 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) + * @param propagationPolicy 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. (optional) + * @param body (optional) + * @return ApiResponse<V1Status> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
+ */ + public ApiResponse deleteIPAddressWithHttpInfo(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteIPAddressValidateBeforeCall(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * delete an IPAddress + * @param name name of the IPAddress (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) + * @param orphanDependents 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) + * @param propagationPolicy 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. (optional) + * @param body (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
+ */ + public okhttp3.Call deleteIPAddressAsync(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = deleteIPAddressValidateBeforeCall(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for deleteServiceCIDR + * @param name name of the ServiceCIDR (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) + * @param orphanDependents 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) + * @param propagationPolicy 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. (optional) + * @param body (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
+ */ + public okhttp3.Call deleteServiceCIDRCall(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + Object localVarPostBody = body; + + // create path and map variables + String localVarPath = "/apis/networking.k8s.io/v1beta1/servicecidrs/{name}" + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } + + if (gracePeriodSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); + } + + if (ignoreStoreReadErrorWithClusterBreakingPotential != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("ignoreStoreReadErrorWithClusterBreakingPotential", ignoreStoreReadErrorWithClusterBreakingPotential)); + } + + if (orphanDependents != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("orphanDependents", orphanDependents)); + } + + if (propagationPolicy != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("propagationPolicy", propagationPolicy)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + final String[] localVarAccepts = { + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call deleteServiceCIDRValidateBeforeCall(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'name' is set + if (name == null) { + throw new ApiException("Missing the required parameter 'name' when calling deleteServiceCIDR(Async)"); + } + + + okhttp3.Call localVarCall = deleteServiceCIDRCall(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); + return localVarCall; + + } + + /** + * + * delete a ServiceCIDR + * @param name name of the ServiceCIDR (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) + * @param orphanDependents 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) + * @param propagationPolicy 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. (optional) + * @param body (optional) + * @return V1Status + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
+ */ + public V1Status deleteServiceCIDR(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { + ApiResponse localVarResp = deleteServiceCIDRWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body); + return localVarResp.getData(); + } + + /** + * + * delete a ServiceCIDR + * @param name name of the ServiceCIDR (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) + * @param orphanDependents 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) + * @param propagationPolicy 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. (optional) + * @param body (optional) + * @return ApiResponse<V1Status> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
+ */ + public ApiResponse deleteServiceCIDRWithHttpInfo(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteServiceCIDRValidateBeforeCall(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * delete a ServiceCIDR + * @param name name of the ServiceCIDR (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) + * @param orphanDependents 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) + * @param propagationPolicy 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. (optional) + * @param body (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
+ */ + public okhttp3.Call deleteServiceCIDRAsync(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = deleteServiceCIDRValidateBeforeCall(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for getAPIResources + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call getAPIResourcesCall(final ApiCallback _callback) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/apis/networking.k8s.io/v1beta1/"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + final String[] localVarAccepts = { + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call getAPIResourcesValidateBeforeCall(final ApiCallback _callback) throws ApiException { + + + okhttp3.Call localVarCall = getAPIResourcesCall(_callback); + return localVarCall; + + } + + /** + * + * get available resources + * @return V1APIResourceList + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public V1APIResourceList getAPIResources() throws ApiException { + ApiResponse localVarResp = getAPIResourcesWithHttpInfo(); + return localVarResp.getData(); + } + + /** + * + * get available resources + * @return ApiResponse<V1APIResourceList> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public ApiResponse getAPIResourcesWithHttpInfo() throws ApiException { + okhttp3.Call localVarCall = getAPIResourcesValidateBeforeCall(null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * get available resources + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call getAPIResourcesAsync(final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = getAPIResourcesValidateBeforeCall(_callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for listIPAddress + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param allowWatchBookmarks 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. (optional) + * @param _continue 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) + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call listIPAddressCall(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/apis/networking.k8s.io/v1beta1/ipaddresses"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + + if (allowWatchBookmarks != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("allowWatchBookmarks", allowWatchBookmarks)); + } + + if (_continue != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); + } + + if (fieldSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); + } + + if (labelSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); + } + + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + } + + if (resourceVersion != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); + } + + if (resourceVersionMatch != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersionMatch", resourceVersionMatch)); + } + + if (sendInitialEvents != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("sendInitialEvents", sendInitialEvents)); + } + + if (timeoutSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); + } + + if (watch != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + final String[] localVarAccepts = { + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch", "application/cbor-seq" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call listIPAddressValidateBeforeCall(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + + + okhttp3.Call localVarCall = listIPAddressCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + return localVarCall; + + } + + /** + * + * list or watch objects of kind IPAddress + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param allowWatchBookmarks 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. (optional) + * @param _continue 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) + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + * @return V1beta1IPAddressList + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public V1beta1IPAddressList listIPAddress(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch) throws ApiException { + ApiResponse localVarResp = listIPAddressWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + return localVarResp.getData(); + } + + /** + * + * list or watch objects of kind IPAddress + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param allowWatchBookmarks 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. (optional) + * @param _continue 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) + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + * @return ApiResponse<V1beta1IPAddressList> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public ApiResponse listIPAddressWithHttpInfo(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch) throws ApiException { + okhttp3.Call localVarCall = listIPAddressValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * list or watch objects of kind IPAddress + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param allowWatchBookmarks 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. (optional) + * @param _continue 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) + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call listIPAddressAsync(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = listIPAddressValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for listServiceCIDR + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param allowWatchBookmarks 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. (optional) + * @param _continue 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) + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call listServiceCIDRCall(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/apis/networking.k8s.io/v1beta1/servicecidrs"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + + if (allowWatchBookmarks != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("allowWatchBookmarks", allowWatchBookmarks)); + } + + if (_continue != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); + } + + if (fieldSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); + } + + if (labelSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); + } + + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + } + + if (resourceVersion != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); + } + + if (resourceVersionMatch != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersionMatch", resourceVersionMatch)); + } + + if (sendInitialEvents != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("sendInitialEvents", sendInitialEvents)); + } + + if (timeoutSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); + } + + if (watch != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + final String[] localVarAccepts = { + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch", "application/cbor-seq" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call listServiceCIDRValidateBeforeCall(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + + + okhttp3.Call localVarCall = listServiceCIDRCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + return localVarCall; + + } + + /** + * + * list or watch objects of kind ServiceCIDR + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param allowWatchBookmarks 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. (optional) + * @param _continue 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) + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + * @return V1beta1ServiceCIDRList + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public V1beta1ServiceCIDRList listServiceCIDR(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch) throws ApiException { + ApiResponse localVarResp = listServiceCIDRWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + return localVarResp.getData(); + } + + /** + * + * list or watch objects of kind ServiceCIDR + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param allowWatchBookmarks 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. (optional) + * @param _continue 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) + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + * @return ApiResponse<V1beta1ServiceCIDRList> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public ApiResponse listServiceCIDRWithHttpInfo(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch) throws ApiException { + okhttp3.Call localVarCall = listServiceCIDRValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * list or watch objects of kind ServiceCIDR + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param allowWatchBookmarks 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. (optional) + * @param _continue 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) + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call listServiceCIDRAsync(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = listServiceCIDRValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for patchIPAddress + * @param name name of the IPAddress (required) + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public okhttp3.Call patchIPAddressCall(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + Object localVarPostBody = body; + + // create path and map variables + String localVarPath = "/apis/networking.k8s.io/v1beta1/ipaddresses/{name}" + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } + + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + + if (fieldValidation != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); + } + + if (force != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("force", force)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + final String[] localVarAccepts = { + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call patchIPAddressValidateBeforeCall(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'name' is set + if (name == null) { + throw new ApiException("Missing the required parameter 'name' when calling patchIPAddress(Async)"); + } + + // verify the required parameter 'body' is set + if (body == null) { + throw new ApiException("Missing the required parameter 'body' when calling patchIPAddress(Async)"); + } + + + okhttp3.Call localVarCall = patchIPAddressCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); + return localVarCall; + + } + + /** + * + * partially update the specified IPAddress + * @param name name of the IPAddress (required) + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) + * @return V1beta1IPAddress + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public V1beta1IPAddress patchIPAddress(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force) throws ApiException { + ApiResponse localVarResp = patchIPAddressWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force); + return localVarResp.getData(); + } + + /** + * + * partially update the specified IPAddress + * @param name name of the IPAddress (required) + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) + * @return ApiResponse<V1beta1IPAddress> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public ApiResponse patchIPAddressWithHttpInfo(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force) throws ApiException { + okhttp3.Call localVarCall = patchIPAddressValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * partially update the specified IPAddress + * @param name name of the IPAddress (required) + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public okhttp3.Call patchIPAddressAsync(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = patchIPAddressValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for patchServiceCIDR + * @param name name of the ServiceCIDR (required) + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public okhttp3.Call patchServiceCIDRCall(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + Object localVarPostBody = body; + + // create path and map variables + String localVarPath = "/apis/networking.k8s.io/v1beta1/servicecidrs/{name}" + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } + + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + + if (fieldValidation != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); + } + + if (force != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("force", force)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + final String[] localVarAccepts = { + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call patchServiceCIDRValidateBeforeCall(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'name' is set + if (name == null) { + throw new ApiException("Missing the required parameter 'name' when calling patchServiceCIDR(Async)"); + } + + // verify the required parameter 'body' is set + if (body == null) { + throw new ApiException("Missing the required parameter 'body' when calling patchServiceCIDR(Async)"); + } + + + okhttp3.Call localVarCall = patchServiceCIDRCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); + return localVarCall; + + } + + /** + * + * partially update the specified ServiceCIDR + * @param name name of the ServiceCIDR (required) + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) + * @return V1beta1ServiceCIDR + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public V1beta1ServiceCIDR patchServiceCIDR(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force) throws ApiException { + ApiResponse localVarResp = patchServiceCIDRWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force); + return localVarResp.getData(); + } + + /** + * + * partially update the specified ServiceCIDR + * @param name name of the ServiceCIDR (required) + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) + * @return ApiResponse<V1beta1ServiceCIDR> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public ApiResponse patchServiceCIDRWithHttpInfo(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force) throws ApiException { + okhttp3.Call localVarCall = patchServiceCIDRValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * partially update the specified ServiceCIDR + * @param name name of the ServiceCIDR (required) + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public okhttp3.Call patchServiceCIDRAsync(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = patchServiceCIDRValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for patchServiceCIDRStatus + * @param name name of the ServiceCIDR (required) + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public okhttp3.Call patchServiceCIDRStatusCall(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + Object localVarPostBody = body; + + // create path and map variables + String localVarPath = "/apis/networking.k8s.io/v1beta1/servicecidrs/{name}/status" + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } + + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + + if (fieldValidation != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); + } + + if (force != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("force", force)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + final String[] localVarAccepts = { + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call patchServiceCIDRStatusValidateBeforeCall(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'name' is set + if (name == null) { + throw new ApiException("Missing the required parameter 'name' when calling patchServiceCIDRStatus(Async)"); + } + + // verify the required parameter 'body' is set + if (body == null) { + throw new ApiException("Missing the required parameter 'body' when calling patchServiceCIDRStatus(Async)"); + } + + + okhttp3.Call localVarCall = patchServiceCIDRStatusCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); + return localVarCall; + + } + + /** + * + * partially update status of the specified ServiceCIDR + * @param name name of the ServiceCIDR (required) + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) + * @return V1beta1ServiceCIDR + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public V1beta1ServiceCIDR patchServiceCIDRStatus(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force) throws ApiException { + ApiResponse localVarResp = patchServiceCIDRStatusWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force); + return localVarResp.getData(); + } + + /** + * + * partially update status of the specified ServiceCIDR + * @param name name of the ServiceCIDR (required) + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) + * @return ApiResponse<V1beta1ServiceCIDR> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public ApiResponse patchServiceCIDRStatusWithHttpInfo(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force) throws ApiException { + okhttp3.Call localVarCall = patchServiceCIDRStatusValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * partially update status of the specified ServiceCIDR + * @param name name of the ServiceCIDR (required) + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public okhttp3.Call patchServiceCIDRStatusAsync(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = patchServiceCIDRStatusValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for readIPAddress + * @param name name of the IPAddress (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call readIPAddressCall(String name, String pretty, final ApiCallback _callback) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/apis/networking.k8s.io/v1beta1/ipaddresses/{name}" + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + final String[] localVarAccepts = { + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call readIPAddressValidateBeforeCall(String name, String pretty, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'name' is set + if (name == null) { + throw new ApiException("Missing the required parameter 'name' when calling readIPAddress(Async)"); + } + + + okhttp3.Call localVarCall = readIPAddressCall(name, pretty, _callback); + return localVarCall; + + } + + /** + * + * read the specified IPAddress + * @param name name of the IPAddress (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @return V1beta1IPAddress + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public V1beta1IPAddress readIPAddress(String name, String pretty) throws ApiException { + ApiResponse localVarResp = readIPAddressWithHttpInfo(name, pretty); + return localVarResp.getData(); + } + + /** + * + * read the specified IPAddress + * @param name name of the IPAddress (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @return ApiResponse<V1beta1IPAddress> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public ApiResponse readIPAddressWithHttpInfo(String name, String pretty) throws ApiException { + okhttp3.Call localVarCall = readIPAddressValidateBeforeCall(name, pretty, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * read the specified IPAddress + * @param name name of the IPAddress (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call readIPAddressAsync(String name, String pretty, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = readIPAddressValidateBeforeCall(name, pretty, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for readServiceCIDR + * @param name name of the ServiceCIDR (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call readServiceCIDRCall(String name, String pretty, final ApiCallback _callback) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/apis/networking.k8s.io/v1beta1/servicecidrs/{name}" + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + final String[] localVarAccepts = { + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call readServiceCIDRValidateBeforeCall(String name, String pretty, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'name' is set + if (name == null) { + throw new ApiException("Missing the required parameter 'name' when calling readServiceCIDR(Async)"); + } + + + okhttp3.Call localVarCall = readServiceCIDRCall(name, pretty, _callback); + return localVarCall; + + } + + /** + * + * read the specified ServiceCIDR + * @param name name of the ServiceCIDR (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @return V1beta1ServiceCIDR + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public V1beta1ServiceCIDR readServiceCIDR(String name, String pretty) throws ApiException { + ApiResponse localVarResp = readServiceCIDRWithHttpInfo(name, pretty); + return localVarResp.getData(); + } + + /** + * + * read the specified ServiceCIDR + * @param name name of the ServiceCIDR (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @return ApiResponse<V1beta1ServiceCIDR> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public ApiResponse readServiceCIDRWithHttpInfo(String name, String pretty) throws ApiException { + okhttp3.Call localVarCall = readServiceCIDRValidateBeforeCall(name, pretty, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * read the specified ServiceCIDR + * @param name name of the ServiceCIDR (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call readServiceCIDRAsync(String name, String pretty, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = readServiceCIDRValidateBeforeCall(name, pretty, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for readServiceCIDRStatus + * @param name name of the ServiceCIDR (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call readServiceCIDRStatusCall(String name, String pretty, final ApiCallback _callback) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/apis/networking.k8s.io/v1beta1/servicecidrs/{name}/status" + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + final String[] localVarAccepts = { + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call readServiceCIDRStatusValidateBeforeCall(String name, String pretty, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'name' is set + if (name == null) { + throw new ApiException("Missing the required parameter 'name' when calling readServiceCIDRStatus(Async)"); + } + + + okhttp3.Call localVarCall = readServiceCIDRStatusCall(name, pretty, _callback); + return localVarCall; + + } + + /** + * + * read status of the specified ServiceCIDR + * @param name name of the ServiceCIDR (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @return V1beta1ServiceCIDR + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public V1beta1ServiceCIDR readServiceCIDRStatus(String name, String pretty) throws ApiException { + ApiResponse localVarResp = readServiceCIDRStatusWithHttpInfo(name, pretty); + return localVarResp.getData(); + } + + /** + * + * read status of the specified ServiceCIDR + * @param name name of the ServiceCIDR (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @return ApiResponse<V1beta1ServiceCIDR> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public ApiResponse readServiceCIDRStatusWithHttpInfo(String name, String pretty) throws ApiException { + okhttp3.Call localVarCall = readServiceCIDRStatusValidateBeforeCall(name, pretty, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * read status of the specified ServiceCIDR + * @param name name of the ServiceCIDR (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call readServiceCIDRStatusAsync(String name, String pretty, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = readServiceCIDRStatusValidateBeforeCall(name, pretty, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for replaceIPAddress + * @param name name of the IPAddress (required) + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public okhttp3.Call replaceIPAddressCall(String name, V1beta1IPAddress body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + Object localVarPostBody = body; + + // create path and map variables + String localVarPath = "/apis/networking.k8s.io/v1beta1/ipaddresses/{name}" + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } + + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + + if (fieldValidation != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + final String[] localVarAccepts = { + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call replaceIPAddressValidateBeforeCall(String name, V1beta1IPAddress body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'name' is set + if (name == null) { + throw new ApiException("Missing the required parameter 'name' when calling replaceIPAddress(Async)"); + } + + // verify the required parameter 'body' is set + if (body == null) { + throw new ApiException("Missing the required parameter 'body' when calling replaceIPAddress(Async)"); + } + + + okhttp3.Call localVarCall = replaceIPAddressCall(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); + return localVarCall; + + } + + /** + * + * replace the specified IPAddress + * @param name name of the IPAddress (required) + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @return V1beta1IPAddress + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public V1beta1IPAddress replaceIPAddress(String name, V1beta1IPAddress body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { + ApiResponse localVarResp = replaceIPAddressWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation); + return localVarResp.getData(); + } + + /** + * + * replace the specified IPAddress + * @param name name of the IPAddress (required) + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @return ApiResponse<V1beta1IPAddress> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public ApiResponse replaceIPAddressWithHttpInfo(String name, V1beta1IPAddress body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { + okhttp3.Call localVarCall = replaceIPAddressValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * replace the specified IPAddress + * @param name name of the IPAddress (required) + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public okhttp3.Call replaceIPAddressAsync(String name, V1beta1IPAddress body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = replaceIPAddressValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for replaceServiceCIDR + * @param name name of the ServiceCIDR (required) + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public okhttp3.Call replaceServiceCIDRCall(String name, V1beta1ServiceCIDR body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + Object localVarPostBody = body; + + // create path and map variables + String localVarPath = "/apis/networking.k8s.io/v1beta1/servicecidrs/{name}" + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } + + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + + if (fieldValidation != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + final String[] localVarAccepts = { + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call replaceServiceCIDRValidateBeforeCall(String name, V1beta1ServiceCIDR body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'name' is set + if (name == null) { + throw new ApiException("Missing the required parameter 'name' when calling replaceServiceCIDR(Async)"); + } + + // verify the required parameter 'body' is set + if (body == null) { + throw new ApiException("Missing the required parameter 'body' when calling replaceServiceCIDR(Async)"); + } + + + okhttp3.Call localVarCall = replaceServiceCIDRCall(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); + return localVarCall; + + } + + /** + * + * replace the specified ServiceCIDR + * @param name name of the ServiceCIDR (required) + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @return V1beta1ServiceCIDR + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public V1beta1ServiceCIDR replaceServiceCIDR(String name, V1beta1ServiceCIDR body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { + ApiResponse localVarResp = replaceServiceCIDRWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation); + return localVarResp.getData(); + } + + /** + * + * replace the specified ServiceCIDR + * @param name name of the ServiceCIDR (required) + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @return ApiResponse<V1beta1ServiceCIDR> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public ApiResponse replaceServiceCIDRWithHttpInfo(String name, V1beta1ServiceCIDR body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { + okhttp3.Call localVarCall = replaceServiceCIDRValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * replace the specified ServiceCIDR + * @param name name of the ServiceCIDR (required) + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public okhttp3.Call replaceServiceCIDRAsync(String name, V1beta1ServiceCIDR body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = replaceServiceCIDRValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for replaceServiceCIDRStatus + * @param name name of the ServiceCIDR (required) + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public okhttp3.Call replaceServiceCIDRStatusCall(String name, V1beta1ServiceCIDR body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + Object localVarPostBody = body; + + // create path and map variables + String localVarPath = "/apis/networking.k8s.io/v1beta1/servicecidrs/{name}/status" + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } + + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + + if (fieldValidation != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + final String[] localVarAccepts = { + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call replaceServiceCIDRStatusValidateBeforeCall(String name, V1beta1ServiceCIDR body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'name' is set + if (name == null) { + throw new ApiException("Missing the required parameter 'name' when calling replaceServiceCIDRStatus(Async)"); + } + + // verify the required parameter 'body' is set + if (body == null) { + throw new ApiException("Missing the required parameter 'body' when calling replaceServiceCIDRStatus(Async)"); + } + + + okhttp3.Call localVarCall = replaceServiceCIDRStatusCall(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); + return localVarCall; + + } + + /** + * + * replace status of the specified ServiceCIDR + * @param name name of the ServiceCIDR (required) + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @return V1beta1ServiceCIDR + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public V1beta1ServiceCIDR replaceServiceCIDRStatus(String name, V1beta1ServiceCIDR body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { + ApiResponse localVarResp = replaceServiceCIDRStatusWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation); + return localVarResp.getData(); + } + + /** + * + * replace status of the specified ServiceCIDR + * @param name name of the ServiceCIDR (required) + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @return ApiResponse<V1beta1ServiceCIDR> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public ApiResponse replaceServiceCIDRStatusWithHttpInfo(String name, V1beta1ServiceCIDR body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { + okhttp3.Call localVarCall = replaceServiceCIDRStatusValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * replace status of the specified ServiceCIDR + * @param name name of the ServiceCIDR (required) + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public okhttp3.Call replaceServiceCIDRStatusAsync(String name, V1beta1ServiceCIDR body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = replaceServiceCIDRStatusValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } +} 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 4c5c8c8388..aa8912a1c7 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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 2290e84bd6..3ec1c54cde 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -61,7 +61,7 @@ public void setApiClient(ApiClient apiClient) { /** * Build call for createRuntimeClass * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -105,7 +105,7 @@ public okhttp3.Call createRuntimeClassCall(V1RuntimeClass body, String pretty, S Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -140,7 +140,7 @@ private okhttp3.Call createRuntimeClassValidateBeforeCall(V1RuntimeClass body, S * * create a RuntimeClass * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -164,7 +164,7 @@ public V1RuntimeClass createRuntimeClass(V1RuntimeClass body, String pretty, Str * * create a RuntimeClass * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -189,7 +189,7 @@ public ApiResponse createRuntimeClassWithHttpInfo(V1RuntimeClass * (asynchronously) * create a RuntimeClass * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -214,11 +214,12 @@ public okhttp3.Call createRuntimeClassAsync(V1RuntimeClass body, String pretty, } /** * Build call for deleteCollectionRuntimeClass - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param _continue 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) * @param dryRun 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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @param orphanDependents 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) @@ -238,7 +239,7 @@ public okhttp3.Call createRuntimeClassAsync(V1RuntimeClass body, String pretty, 401 Unauthorized - */ - public okhttp3.Call deleteCollectionRuntimeClassCall(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + public okhttp3.Call deleteCollectionRuntimeClassCall(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; // create path and map variables @@ -266,6 +267,10 @@ public okhttp3.Call deleteCollectionRuntimeClassCall(String pretty, String _cont localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); } + if (ignoreStoreReadErrorWithClusterBreakingPotential != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("ignoreStoreReadErrorWithClusterBreakingPotential", ignoreStoreReadErrorWithClusterBreakingPotential)); + } + if (labelSelector != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); } @@ -302,7 +307,7 @@ public okhttp3.Call deleteCollectionRuntimeClassCall(String pretty, String _cont Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -320,10 +325,10 @@ public okhttp3.Call deleteCollectionRuntimeClassCall(String pretty, String _cont } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteCollectionRuntimeClassValidateBeforeCall(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionRuntimeClassValidateBeforeCall(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = deleteCollectionRuntimeClassCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + okhttp3.Call localVarCall = deleteCollectionRuntimeClassCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); return localVarCall; } @@ -331,11 +336,12 @@ private okhttp3.Call deleteCollectionRuntimeClassValidateBeforeCall(String prett /** * * delete collection of RuntimeClass - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param _continue 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) * @param dryRun 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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @param orphanDependents 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) @@ -354,19 +360,20 @@ private okhttp3.Call deleteCollectionRuntimeClassValidateBeforeCall(String prett 401 Unauthorized - */ - public V1Status deleteCollectionRuntimeClass(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body) throws ApiException { - ApiResponse localVarResp = deleteCollectionRuntimeClassWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); + public V1Status deleteCollectionRuntimeClass(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body) throws ApiException { + ApiResponse localVarResp = deleteCollectionRuntimeClassWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); return localVarResp.getData(); } /** * * delete collection of RuntimeClass - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param _continue 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) * @param dryRun 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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @param orphanDependents 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) @@ -385,8 +392,8 @@ public V1Status deleteCollectionRuntimeClass(String pretty, String _continue, St 401 Unauthorized - */ - public ApiResponse deleteCollectionRuntimeClassWithHttpInfo(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body) throws ApiException { - okhttp3.Call localVarCall = deleteCollectionRuntimeClassValidateBeforeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, null); + public ApiResponse deleteCollectionRuntimeClassWithHttpInfo(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteCollectionRuntimeClassValidateBeforeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -394,11 +401,12 @@ public ApiResponse deleteCollectionRuntimeClassWithHttpInfo(String pre /** * (asynchronously) * delete collection of RuntimeClass - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param _continue 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) * @param dryRun 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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @param orphanDependents 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) @@ -418,9 +426,9 @@ public ApiResponse deleteCollectionRuntimeClassWithHttpInfo(String pre 401 Unauthorized - */ - public okhttp3.Call deleteCollectionRuntimeClassAsync(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + public okhttp3.Call deleteCollectionRuntimeClassAsync(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = deleteCollectionRuntimeClassValidateBeforeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + okhttp3.Call localVarCall = deleteCollectionRuntimeClassValidateBeforeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -428,9 +436,10 @@ public okhttp3.Call deleteCollectionRuntimeClassAsync(String pretty, String _con /** * Build call for deleteRuntimeClass * @param name name of the RuntimeClass (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @param orphanDependents 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) * @param propagationPolicy 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. (optional) * @param body (optional) @@ -445,7 +454,7 @@ public okhttp3.Call deleteCollectionRuntimeClassAsync(String pretty, String _con 401 Unauthorized - */ - public okhttp3.Call deleteRuntimeClassCall(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + public okhttp3.Call deleteRuntimeClassCall(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; // create path and map variables @@ -466,6 +475,10 @@ public okhttp3.Call deleteRuntimeClassCall(String name, String pretty, String dr localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); } + if (ignoreStoreReadErrorWithClusterBreakingPotential != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("ignoreStoreReadErrorWithClusterBreakingPotential", ignoreStoreReadErrorWithClusterBreakingPotential)); + } + if (orphanDependents != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("orphanDependents", orphanDependents)); } @@ -478,7 +491,7 @@ public okhttp3.Call deleteRuntimeClassCall(String name, String pretty, String dr Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -496,7 +509,7 @@ public okhttp3.Call deleteRuntimeClassCall(String name, String pretty, String dr } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteRuntimeClassValidateBeforeCall(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteRuntimeClassValidateBeforeCall(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -504,7 +517,7 @@ private okhttp3.Call deleteRuntimeClassValidateBeforeCall(String name, String pr } - okhttp3.Call localVarCall = deleteRuntimeClassCall(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); + okhttp3.Call localVarCall = deleteRuntimeClassCall(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); return localVarCall; } @@ -513,9 +526,10 @@ private okhttp3.Call deleteRuntimeClassValidateBeforeCall(String name, String pr * * delete a RuntimeClass * @param name name of the RuntimeClass (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @param orphanDependents 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) * @param propagationPolicy 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. (optional) * @param body (optional) @@ -529,8 +543,8 @@ private okhttp3.Call deleteRuntimeClassValidateBeforeCall(String name, String pr 401 Unauthorized - */ - public V1Status deleteRuntimeClass(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { - ApiResponse localVarResp = deleteRuntimeClassWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body); + public V1Status deleteRuntimeClass(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { + ApiResponse localVarResp = deleteRuntimeClassWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body); return localVarResp.getData(); } @@ -538,9 +552,10 @@ public V1Status deleteRuntimeClass(String name, String pretty, String dryRun, In * * delete a RuntimeClass * @param name name of the RuntimeClass (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @param orphanDependents 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) * @param propagationPolicy 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. (optional) * @param body (optional) @@ -554,8 +569,8 @@ public V1Status deleteRuntimeClass(String name, String pretty, String dryRun, In 401 Unauthorized - */ - public ApiResponse deleteRuntimeClassWithHttpInfo(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { - okhttp3.Call localVarCall = deleteRuntimeClassValidateBeforeCall(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, null); + public ApiResponse deleteRuntimeClassWithHttpInfo(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteRuntimeClassValidateBeforeCall(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -564,9 +579,10 @@ public ApiResponse deleteRuntimeClassWithHttpInfo(String name, String * (asynchronously) * delete a RuntimeClass * @param name name of the RuntimeClass (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @param orphanDependents 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) * @param propagationPolicy 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. (optional) * @param body (optional) @@ -581,9 +597,9 @@ public ApiResponse deleteRuntimeClassWithHttpInfo(String name, String 401 Unauthorized - */ - public okhttp3.Call deleteRuntimeClassAsync(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + public okhttp3.Call deleteRuntimeClassAsync(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = deleteRuntimeClassValidateBeforeCall(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); + okhttp3.Call localVarCall = deleteRuntimeClassValidateBeforeCall(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -612,7 +628,7 @@ public okhttp3.Call getAPIResourcesCall(final ApiCallback _callback) throws ApiE Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -695,7 +711,7 @@ public okhttp3.Call getAPIResourcesAsync(final ApiCallback _c } /** * Build call for listRuntimeClass - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param allowWatchBookmarks 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. (optional) * @param _continue 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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) @@ -772,7 +788,7 @@ public okhttp3.Call listRuntimeClassCall(String pretty, Boolean allowWatchBookma Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch", "application/cbor-seq" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -801,7 +817,7 @@ private okhttp3.Call listRuntimeClassValidateBeforeCall(String pretty, Boolean a /** * * list or watch objects of kind RuntimeClass - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param allowWatchBookmarks 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. (optional) * @param _continue 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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) @@ -829,7 +845,7 @@ public V1RuntimeClassList listRuntimeClass(String pretty, Boolean allowWatchBook /** * * list or watch objects of kind RuntimeClass - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param allowWatchBookmarks 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. (optional) * @param _continue 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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) @@ -858,7 +874,7 @@ public ApiResponse listRuntimeClassWithHttpInfo(String prett /** * (asynchronously) * list or watch objects of kind RuntimeClass - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param allowWatchBookmarks 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. (optional) * @param _continue 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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) @@ -890,7 +906,7 @@ public okhttp3.Call listRuntimeClassAsync(String pretty, Boolean allowWatchBookm * Build call for patchRuntimeClass * @param name name of the RuntimeClass (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -939,7 +955,7 @@ public okhttp3.Call patchRuntimeClassCall(String name, V1Patch body, String pret Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -980,7 +996,7 @@ private okhttp3.Call patchRuntimeClassValidateBeforeCall(String name, V1Patch bo * partially update the specified RuntimeClass * @param name name of the RuntimeClass (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -1005,7 +1021,7 @@ public V1RuntimeClass patchRuntimeClass(String name, V1Patch body, String pretty * partially update the specified RuntimeClass * @param name name of the RuntimeClass (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -1031,7 +1047,7 @@ public ApiResponse patchRuntimeClassWithHttpInfo(String name, V1 * partially update the specified RuntimeClass * @param name name of the RuntimeClass (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -1057,7 +1073,7 @@ public okhttp3.Call patchRuntimeClassAsync(String name, V1Patch body, String pre /** * Build call for readRuntimeClass * @param name name of the RuntimeClass (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -1085,7 +1101,7 @@ public okhttp3.Call readRuntimeClassCall(String name, String pretty, final ApiCa Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -1120,7 +1136,7 @@ private okhttp3.Call readRuntimeClassValidateBeforeCall(String name, String pret * * read the specified RuntimeClass * @param name name of the RuntimeClass (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return V1RuntimeClass * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -1139,7 +1155,7 @@ public V1RuntimeClass readRuntimeClass(String name, String pretty) throws ApiExc * * read the specified RuntimeClass * @param name name of the RuntimeClass (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return ApiResponse<V1RuntimeClass> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -1159,7 +1175,7 @@ public ApiResponse readRuntimeClassWithHttpInfo(String name, Str * (asynchronously) * read the specified RuntimeClass * @param name name of the RuntimeClass (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object @@ -1181,7 +1197,7 @@ public okhttp3.Call readRuntimeClassAsync(String name, String pretty, final ApiC * Build call for replaceRuntimeClass * @param name name of the RuntimeClass (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -1225,7 +1241,7 @@ public okhttp3.Call replaceRuntimeClassCall(String name, V1RuntimeClass body, St Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -1266,7 +1282,7 @@ private okhttp3.Call replaceRuntimeClassValidateBeforeCall(String name, V1Runtim * replace the specified RuntimeClass * @param name name of the RuntimeClass (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -1290,7 +1306,7 @@ public V1RuntimeClass replaceRuntimeClass(String name, V1RuntimeClass body, Stri * replace the specified RuntimeClass * @param name name of the RuntimeClass (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -1315,7 +1331,7 @@ public ApiResponse replaceRuntimeClassWithHttpInfo(String name, * replace the specified RuntimeClass * @param name name of the RuntimeClass (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) 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 0a35dea6e3..6ab9168dc9 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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 64a92608fc..d588ca4d72 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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 3e2c1ab33d..5576d8532f 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -62,7 +62,7 @@ public void setApiClient(ApiClient apiClient) { * Build call for createNamespacedPodDisruptionBudget * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -107,7 +107,7 @@ public okhttp3.Call createNamespacedPodDisruptionBudgetCall(String namespace, V1 Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -148,7 +148,7 @@ private okhttp3.Call createNamespacedPodDisruptionBudgetValidateBeforeCall(Strin * create a PodDisruptionBudget * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -173,7 +173,7 @@ public V1PodDisruptionBudget createNamespacedPodDisruptionBudget(String namespac * create a PodDisruptionBudget * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -199,7 +199,7 @@ public ApiResponse createNamespacedPodDisruptionBudgetWit * create a PodDisruptionBudget * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -225,11 +225,12 @@ public okhttp3.Call createNamespacedPodDisruptionBudgetAsync(String namespace, V /** * Build call for deleteCollectionNamespacedPodDisruptionBudget * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param _continue 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) * @param dryRun 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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @param orphanDependents 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) @@ -249,7 +250,7 @@ public okhttp3.Call createNamespacedPodDisruptionBudgetAsync(String namespace, V 401 Unauthorized - */ - public okhttp3.Call deleteCollectionNamespacedPodDisruptionBudgetCall(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + public okhttp3.Call deleteCollectionNamespacedPodDisruptionBudgetCall(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; // create path and map variables @@ -278,6 +279,10 @@ public okhttp3.Call deleteCollectionNamespacedPodDisruptionBudgetCall(String nam localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); } + if (ignoreStoreReadErrorWithClusterBreakingPotential != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("ignoreStoreReadErrorWithClusterBreakingPotential", ignoreStoreReadErrorWithClusterBreakingPotential)); + } + if (labelSelector != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); } @@ -314,7 +319,7 @@ public okhttp3.Call deleteCollectionNamespacedPodDisruptionBudgetCall(String nam Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -332,7 +337,7 @@ public okhttp3.Call deleteCollectionNamespacedPodDisruptionBudgetCall(String nam } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteCollectionNamespacedPodDisruptionBudgetValidateBeforeCall(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionNamespacedPodDisruptionBudgetValidateBeforeCall(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { // verify the required parameter 'namespace' is set if (namespace == null) { @@ -340,7 +345,7 @@ private okhttp3.Call deleteCollectionNamespacedPodDisruptionBudgetValidateBefore } - okhttp3.Call localVarCall = deleteCollectionNamespacedPodDisruptionBudgetCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + okhttp3.Call localVarCall = deleteCollectionNamespacedPodDisruptionBudgetCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); return localVarCall; } @@ -349,11 +354,12 @@ private okhttp3.Call deleteCollectionNamespacedPodDisruptionBudgetValidateBefore * * delete collection of PodDisruptionBudget * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param _continue 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) * @param dryRun 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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @param orphanDependents 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) @@ -372,8 +378,8 @@ private okhttp3.Call deleteCollectionNamespacedPodDisruptionBudgetValidateBefore 401 Unauthorized - */ - public V1Status deleteCollectionNamespacedPodDisruptionBudget(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body) throws ApiException { - ApiResponse localVarResp = deleteCollectionNamespacedPodDisruptionBudgetWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); + public V1Status deleteCollectionNamespacedPodDisruptionBudget(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body) throws ApiException { + ApiResponse localVarResp = deleteCollectionNamespacedPodDisruptionBudgetWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); return localVarResp.getData(); } @@ -381,11 +387,12 @@ public V1Status deleteCollectionNamespacedPodDisruptionBudget(String namespace, * * delete collection of PodDisruptionBudget * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param _continue 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) * @param dryRun 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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @param orphanDependents 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) @@ -404,8 +411,8 @@ public V1Status deleteCollectionNamespacedPodDisruptionBudget(String namespace, 401 Unauthorized - */ - public ApiResponse deleteCollectionNamespacedPodDisruptionBudgetWithHttpInfo(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body) throws ApiException { - okhttp3.Call localVarCall = deleteCollectionNamespacedPodDisruptionBudgetValidateBeforeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, null); + public ApiResponse deleteCollectionNamespacedPodDisruptionBudgetWithHttpInfo(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteCollectionNamespacedPodDisruptionBudgetValidateBeforeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -414,11 +421,12 @@ public ApiResponse deleteCollectionNamespacedPodDisruptionBudgetWithHt * (asynchronously) * delete collection of PodDisruptionBudget * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param _continue 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) * @param dryRun 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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @param orphanDependents 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) @@ -438,9 +446,9 @@ public ApiResponse deleteCollectionNamespacedPodDisruptionBudgetWithHt 401 Unauthorized - */ - public okhttp3.Call deleteCollectionNamespacedPodDisruptionBudgetAsync(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + public okhttp3.Call deleteCollectionNamespacedPodDisruptionBudgetAsync(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = deleteCollectionNamespacedPodDisruptionBudgetValidateBeforeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + okhttp3.Call localVarCall = deleteCollectionNamespacedPodDisruptionBudgetValidateBeforeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -449,9 +457,10 @@ public okhttp3.Call deleteCollectionNamespacedPodDisruptionBudgetAsync(String na * Build call for deleteNamespacedPodDisruptionBudget * @param name name of the PodDisruptionBudget (required) * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @param orphanDependents 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) * @param propagationPolicy 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. (optional) * @param body (optional) @@ -466,7 +475,7 @@ public okhttp3.Call deleteCollectionNamespacedPodDisruptionBudgetAsync(String na 401 Unauthorized - */ - public okhttp3.Call deleteNamespacedPodDisruptionBudgetCall(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + public okhttp3.Call deleteNamespacedPodDisruptionBudgetCall(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; // create path and map variables @@ -488,6 +497,10 @@ public okhttp3.Call deleteNamespacedPodDisruptionBudgetCall(String name, String localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); } + if (ignoreStoreReadErrorWithClusterBreakingPotential != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("ignoreStoreReadErrorWithClusterBreakingPotential", ignoreStoreReadErrorWithClusterBreakingPotential)); + } + if (orphanDependents != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("orphanDependents", orphanDependents)); } @@ -500,7 +513,7 @@ public okhttp3.Call deleteNamespacedPodDisruptionBudgetCall(String name, String Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -518,7 +531,7 @@ public okhttp3.Call deleteNamespacedPodDisruptionBudgetCall(String name, String } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteNamespacedPodDisruptionBudgetValidateBeforeCall(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteNamespacedPodDisruptionBudgetValidateBeforeCall(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -531,7 +544,7 @@ private okhttp3.Call deleteNamespacedPodDisruptionBudgetValidateBeforeCall(Strin } - okhttp3.Call localVarCall = deleteNamespacedPodDisruptionBudgetCall(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); + okhttp3.Call localVarCall = deleteNamespacedPodDisruptionBudgetCall(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); return localVarCall; } @@ -541,9 +554,10 @@ private okhttp3.Call deleteNamespacedPodDisruptionBudgetValidateBeforeCall(Strin * delete a PodDisruptionBudget * @param name name of the PodDisruptionBudget (required) * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @param orphanDependents 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) * @param propagationPolicy 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. (optional) * @param body (optional) @@ -557,8 +571,8 @@ private okhttp3.Call deleteNamespacedPodDisruptionBudgetValidateBeforeCall(Strin 401 Unauthorized - */ - public V1Status deleteNamespacedPodDisruptionBudget(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { - ApiResponse localVarResp = deleteNamespacedPodDisruptionBudgetWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body); + public V1Status deleteNamespacedPodDisruptionBudget(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { + ApiResponse localVarResp = deleteNamespacedPodDisruptionBudgetWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body); return localVarResp.getData(); } @@ -567,9 +581,10 @@ public V1Status deleteNamespacedPodDisruptionBudget(String name, String namespac * delete a PodDisruptionBudget * @param name name of the PodDisruptionBudget (required) * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @param orphanDependents 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) * @param propagationPolicy 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. (optional) * @param body (optional) @@ -583,8 +598,8 @@ public V1Status deleteNamespacedPodDisruptionBudget(String name, String namespac 401 Unauthorized - */ - public ApiResponse deleteNamespacedPodDisruptionBudgetWithHttpInfo(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { - okhttp3.Call localVarCall = deleteNamespacedPodDisruptionBudgetValidateBeforeCall(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, null); + public ApiResponse deleteNamespacedPodDisruptionBudgetWithHttpInfo(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteNamespacedPodDisruptionBudgetValidateBeforeCall(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -594,9 +609,10 @@ public ApiResponse deleteNamespacedPodDisruptionBudgetWithHttpInfo(Str * delete a PodDisruptionBudget * @param name name of the PodDisruptionBudget (required) * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @param orphanDependents 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) * @param propagationPolicy 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. (optional) * @param body (optional) @@ -611,9 +627,9 @@ public ApiResponse deleteNamespacedPodDisruptionBudgetWithHttpInfo(Str 401 Unauthorized - */ - public okhttp3.Call deleteNamespacedPodDisruptionBudgetAsync(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + public okhttp3.Call deleteNamespacedPodDisruptionBudgetAsync(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = deleteNamespacedPodDisruptionBudgetValidateBeforeCall(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); + okhttp3.Call localVarCall = deleteNamespacedPodDisruptionBudgetValidateBeforeCall(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -642,7 +658,7 @@ public okhttp3.Call getAPIResourcesCall(final ApiCallback _callback) throws ApiE Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -726,7 +742,7 @@ public okhttp3.Call getAPIResourcesAsync(final ApiCallback _c /** * Build call for listNamespacedPodDisruptionBudget * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param allowWatchBookmarks 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. (optional) * @param _continue 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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) @@ -804,7 +820,7 @@ public okhttp3.Call listNamespacedPodDisruptionBudgetCall(String namespace, Stri Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch", "application/cbor-seq" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -839,7 +855,7 @@ private okhttp3.Call listNamespacedPodDisruptionBudgetValidateBeforeCall(String * * list or watch objects of kind PodDisruptionBudget * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param allowWatchBookmarks 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. (optional) * @param _continue 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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) @@ -868,7 +884,7 @@ public V1PodDisruptionBudgetList listNamespacedPodDisruptionBudget(String namesp * * list or watch objects of kind PodDisruptionBudget * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param allowWatchBookmarks 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. (optional) * @param _continue 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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) @@ -898,7 +914,7 @@ public ApiResponse listNamespacedPodDisruptionBudgetW * (asynchronously) * list or watch objects of kind PodDisruptionBudget * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param allowWatchBookmarks 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. (optional) * @param _continue 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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) @@ -933,7 +949,7 @@ public okhttp3.Call listNamespacedPodDisruptionBudgetAsync(String namespace, Str * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) @@ -1005,7 +1021,7 @@ public okhttp3.Call listPodDisruptionBudgetForAllNamespacesCall(Boolean allowWat Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch", "application/cbor-seq" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -1039,7 +1055,7 @@ private okhttp3.Call listPodDisruptionBudgetForAllNamespacesValidateBeforeCall(B * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) @@ -1067,7 +1083,7 @@ public V1PodDisruptionBudgetList listPodDisruptionBudgetForAllNamespaces(Boolean * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) @@ -1096,7 +1112,7 @@ public ApiResponse listPodDisruptionBudgetForAllNames * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) @@ -1124,7 +1140,7 @@ public okhttp3.Call listPodDisruptionBudgetForAllNamespacesAsync(Boolean allowWa * @param name name of the PodDisruptionBudget (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -1174,7 +1190,7 @@ public okhttp3.Call patchNamespacedPodDisruptionBudgetCall(String name, String n Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -1221,7 +1237,7 @@ private okhttp3.Call patchNamespacedPodDisruptionBudgetValidateBeforeCall(String * @param name name of the PodDisruptionBudget (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -1247,7 +1263,7 @@ public V1PodDisruptionBudget patchNamespacedPodDisruptionBudget(String name, Str * @param name name of the PodDisruptionBudget (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -1274,7 +1290,7 @@ public ApiResponse patchNamespacedPodDisruptionBudgetWith * @param name name of the PodDisruptionBudget (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -1302,7 +1318,7 @@ public okhttp3.Call patchNamespacedPodDisruptionBudgetAsync(String name, String * @param name name of the PodDisruptionBudget (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -1352,7 +1368,7 @@ public okhttp3.Call patchNamespacedPodDisruptionBudgetStatusCall(String name, St Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -1399,7 +1415,7 @@ private okhttp3.Call patchNamespacedPodDisruptionBudgetStatusValidateBeforeCall( * @param name name of the PodDisruptionBudget (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -1425,7 +1441,7 @@ public V1PodDisruptionBudget patchNamespacedPodDisruptionBudgetStatus(String nam * @param name name of the PodDisruptionBudget (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -1452,7 +1468,7 @@ public ApiResponse patchNamespacedPodDisruptionBudgetStat * @param name name of the PodDisruptionBudget (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -1479,7 +1495,7 @@ public okhttp3.Call patchNamespacedPodDisruptionBudgetStatusAsync(String name, S * Build call for readNamespacedPodDisruptionBudget * @param name name of the PodDisruptionBudget (required) * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -1508,7 +1524,7 @@ public okhttp3.Call readNamespacedPodDisruptionBudgetCall(String name, String na Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -1549,7 +1565,7 @@ private okhttp3.Call readNamespacedPodDisruptionBudgetValidateBeforeCall(String * read the specified PodDisruptionBudget * @param name name of the PodDisruptionBudget (required) * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return V1PodDisruptionBudget * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -1569,7 +1585,7 @@ public V1PodDisruptionBudget readNamespacedPodDisruptionBudget(String name, Stri * read the specified PodDisruptionBudget * @param name name of the PodDisruptionBudget (required) * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return ApiResponse<V1PodDisruptionBudget> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -1590,7 +1606,7 @@ public ApiResponse readNamespacedPodDisruptionBudgetWithH * read the specified PodDisruptionBudget * @param name name of the PodDisruptionBudget (required) * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object @@ -1612,7 +1628,7 @@ public okhttp3.Call readNamespacedPodDisruptionBudgetAsync(String name, String n * Build call for readNamespacedPodDisruptionBudgetStatus * @param name name of the PodDisruptionBudget (required) * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -1641,7 +1657,7 @@ public okhttp3.Call readNamespacedPodDisruptionBudgetStatusCall(String name, Str Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -1682,7 +1698,7 @@ private okhttp3.Call readNamespacedPodDisruptionBudgetStatusValidateBeforeCall(S * read status of the specified PodDisruptionBudget * @param name name of the PodDisruptionBudget (required) * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return V1PodDisruptionBudget * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -1702,7 +1718,7 @@ public V1PodDisruptionBudget readNamespacedPodDisruptionBudgetStatus(String name * read status of the specified PodDisruptionBudget * @param name name of the PodDisruptionBudget (required) * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return ApiResponse<V1PodDisruptionBudget> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -1723,7 +1739,7 @@ public ApiResponse readNamespacedPodDisruptionBudgetStatu * read status of the specified PodDisruptionBudget * @param name name of the PodDisruptionBudget (required) * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object @@ -1746,7 +1762,7 @@ public okhttp3.Call readNamespacedPodDisruptionBudgetStatusAsync(String name, St * @param name name of the PodDisruptionBudget (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -1791,7 +1807,7 @@ public okhttp3.Call replaceNamespacedPodDisruptionBudgetCall(String name, String Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -1838,7 +1854,7 @@ private okhttp3.Call replaceNamespacedPodDisruptionBudgetValidateBeforeCall(Stri * @param name name of the PodDisruptionBudget (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -1863,7 +1879,7 @@ public V1PodDisruptionBudget replaceNamespacedPodDisruptionBudget(String name, S * @param name name of the PodDisruptionBudget (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -1889,7 +1905,7 @@ public ApiResponse replaceNamespacedPodDisruptionBudgetWi * @param name name of the PodDisruptionBudget (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -1916,7 +1932,7 @@ public okhttp3.Call replaceNamespacedPodDisruptionBudgetAsync(String name, Strin * @param name name of the PodDisruptionBudget (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -1961,7 +1977,7 @@ public okhttp3.Call replaceNamespacedPodDisruptionBudgetStatusCall(String name, Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -2008,7 +2024,7 @@ private okhttp3.Call replaceNamespacedPodDisruptionBudgetStatusValidateBeforeCal * @param name name of the PodDisruptionBudget (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -2033,7 +2049,7 @@ public V1PodDisruptionBudget replaceNamespacedPodDisruptionBudgetStatus(String n * @param name name of the PodDisruptionBudget (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -2059,7 +2075,7 @@ public ApiResponse replaceNamespacedPodDisruptionBudgetSt * @param name name of the PodDisruptionBudget (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) 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 3e70d4a5aa..bfca57c9c1 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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 833515101c..b80136b162 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -67,7 +67,7 @@ public void setApiClient(ApiClient apiClient) { /** * Build call for createClusterRole * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -111,7 +111,7 @@ public okhttp3.Call createClusterRoleCall(V1ClusterRole body, String pretty, Str Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -146,7 +146,7 @@ private okhttp3.Call createClusterRoleValidateBeforeCall(V1ClusterRole body, Str * * create a ClusterRole * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -170,7 +170,7 @@ public V1ClusterRole createClusterRole(V1ClusterRole body, String pretty, String * * create a ClusterRole * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -195,7 +195,7 @@ public ApiResponse createClusterRoleWithHttpInfo(V1ClusterRole bo * (asynchronously) * create a ClusterRole * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -221,7 +221,7 @@ public okhttp3.Call createClusterRoleAsync(V1ClusterRole body, String pretty, St /** * Build call for createClusterRoleBinding * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -265,7 +265,7 @@ public okhttp3.Call createClusterRoleBindingCall(V1ClusterRoleBinding body, Stri Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -300,7 +300,7 @@ private okhttp3.Call createClusterRoleBindingValidateBeforeCall(V1ClusterRoleBin * * create a ClusterRoleBinding * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -324,7 +324,7 @@ public V1ClusterRoleBinding createClusterRoleBinding(V1ClusterRoleBinding body, * * create a ClusterRoleBinding * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -349,7 +349,7 @@ public ApiResponse createClusterRoleBindingWithHttpInfo(V1 * (asynchronously) * create a ClusterRoleBinding * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -376,7 +376,7 @@ public okhttp3.Call createClusterRoleBindingAsync(V1ClusterRoleBinding body, Str * Build call for createNamespacedRole * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -421,7 +421,7 @@ public okhttp3.Call createNamespacedRoleCall(String namespace, V1Role body, Stri Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -462,7 +462,7 @@ private okhttp3.Call createNamespacedRoleValidateBeforeCall(String namespace, V1 * create a Role * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -487,7 +487,7 @@ public V1Role createNamespacedRole(String namespace, V1Role body, String pretty, * create a Role * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -513,7 +513,7 @@ public ApiResponse createNamespacedRoleWithHttpInfo(String namespace, V1 * create a Role * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -540,7 +540,7 @@ public okhttp3.Call createNamespacedRoleAsync(String namespace, V1Role body, Str * Build call for createNamespacedRoleBinding * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -585,7 +585,7 @@ public okhttp3.Call createNamespacedRoleBindingCall(String namespace, V1RoleBind Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -626,7 +626,7 @@ private okhttp3.Call createNamespacedRoleBindingValidateBeforeCall(String namesp * create a RoleBinding * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -651,7 +651,7 @@ public V1RoleBinding createNamespacedRoleBinding(String namespace, V1RoleBinding * create a RoleBinding * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -677,7 +677,7 @@ public ApiResponse createNamespacedRoleBindingWithHttpInfo(String * create a RoleBinding * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -703,9 +703,10 @@ public okhttp3.Call createNamespacedRoleBindingAsync(String namespace, V1RoleBin /** * Build call for deleteClusterRole * @param name name of the ClusterRole (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @param orphanDependents 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) * @param propagationPolicy 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. (optional) * @param body (optional) @@ -720,7 +721,7 @@ public okhttp3.Call createNamespacedRoleBindingAsync(String namespace, V1RoleBin 401 Unauthorized - */ - public okhttp3.Call deleteClusterRoleCall(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + public okhttp3.Call deleteClusterRoleCall(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; // create path and map variables @@ -741,6 +742,10 @@ public okhttp3.Call deleteClusterRoleCall(String name, String pretty, String dry localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); } + if (ignoreStoreReadErrorWithClusterBreakingPotential != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("ignoreStoreReadErrorWithClusterBreakingPotential", ignoreStoreReadErrorWithClusterBreakingPotential)); + } + if (orphanDependents != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("orphanDependents", orphanDependents)); } @@ -753,7 +758,7 @@ public okhttp3.Call deleteClusterRoleCall(String name, String pretty, String dry Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -771,7 +776,7 @@ public okhttp3.Call deleteClusterRoleCall(String name, String pretty, String dry } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteClusterRoleValidateBeforeCall(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteClusterRoleValidateBeforeCall(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -779,7 +784,7 @@ private okhttp3.Call deleteClusterRoleValidateBeforeCall(String name, String pre } - okhttp3.Call localVarCall = deleteClusterRoleCall(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); + okhttp3.Call localVarCall = deleteClusterRoleCall(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); return localVarCall; } @@ -788,9 +793,10 @@ private okhttp3.Call deleteClusterRoleValidateBeforeCall(String name, String pre * * delete a ClusterRole * @param name name of the ClusterRole (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @param orphanDependents 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) * @param propagationPolicy 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. (optional) * @param body (optional) @@ -804,8 +810,8 @@ private okhttp3.Call deleteClusterRoleValidateBeforeCall(String name, String pre 401 Unauthorized - */ - public V1Status deleteClusterRole(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { - ApiResponse localVarResp = deleteClusterRoleWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body); + public V1Status deleteClusterRole(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { + ApiResponse localVarResp = deleteClusterRoleWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body); return localVarResp.getData(); } @@ -813,9 +819,10 @@ public V1Status deleteClusterRole(String name, String pretty, String dryRun, Int * * delete a ClusterRole * @param name name of the ClusterRole (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @param orphanDependents 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) * @param propagationPolicy 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. (optional) * @param body (optional) @@ -829,8 +836,8 @@ public V1Status deleteClusterRole(String name, String pretty, String dryRun, Int 401 Unauthorized - */ - public ApiResponse deleteClusterRoleWithHttpInfo(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { - okhttp3.Call localVarCall = deleteClusterRoleValidateBeforeCall(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, null); + public ApiResponse deleteClusterRoleWithHttpInfo(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteClusterRoleValidateBeforeCall(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -839,9 +846,10 @@ public ApiResponse deleteClusterRoleWithHttpInfo(String name, String p * (asynchronously) * delete a ClusterRole * @param name name of the ClusterRole (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @param orphanDependents 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) * @param propagationPolicy 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. (optional) * @param body (optional) @@ -856,9 +864,9 @@ public ApiResponse deleteClusterRoleWithHttpInfo(String name, String p 401 Unauthorized - */ - public okhttp3.Call deleteClusterRoleAsync(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + public okhttp3.Call deleteClusterRoleAsync(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = deleteClusterRoleValidateBeforeCall(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); + okhttp3.Call localVarCall = deleteClusterRoleValidateBeforeCall(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -866,9 +874,10 @@ public okhttp3.Call deleteClusterRoleAsync(String name, String pretty, String dr /** * Build call for deleteClusterRoleBinding * @param name name of the ClusterRoleBinding (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @param orphanDependents 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) * @param propagationPolicy 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. (optional) * @param body (optional) @@ -883,7 +892,7 @@ public okhttp3.Call deleteClusterRoleAsync(String name, String pretty, String dr 401 Unauthorized - */ - public okhttp3.Call deleteClusterRoleBindingCall(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + public okhttp3.Call deleteClusterRoleBindingCall(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; // create path and map variables @@ -904,6 +913,10 @@ public okhttp3.Call deleteClusterRoleBindingCall(String name, String pretty, Str localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); } + if (ignoreStoreReadErrorWithClusterBreakingPotential != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("ignoreStoreReadErrorWithClusterBreakingPotential", ignoreStoreReadErrorWithClusterBreakingPotential)); + } + if (orphanDependents != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("orphanDependents", orphanDependents)); } @@ -916,7 +929,7 @@ public okhttp3.Call deleteClusterRoleBindingCall(String name, String pretty, Str Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -934,7 +947,7 @@ public okhttp3.Call deleteClusterRoleBindingCall(String name, String pretty, Str } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteClusterRoleBindingValidateBeforeCall(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteClusterRoleBindingValidateBeforeCall(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -942,7 +955,7 @@ private okhttp3.Call deleteClusterRoleBindingValidateBeforeCall(String name, Str } - okhttp3.Call localVarCall = deleteClusterRoleBindingCall(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); + okhttp3.Call localVarCall = deleteClusterRoleBindingCall(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); return localVarCall; } @@ -951,9 +964,10 @@ private okhttp3.Call deleteClusterRoleBindingValidateBeforeCall(String name, Str * * delete a ClusterRoleBinding * @param name name of the ClusterRoleBinding (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @param orphanDependents 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) * @param propagationPolicy 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. (optional) * @param body (optional) @@ -967,8 +981,8 @@ private okhttp3.Call deleteClusterRoleBindingValidateBeforeCall(String name, Str 401 Unauthorized - */ - public V1Status deleteClusterRoleBinding(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { - ApiResponse localVarResp = deleteClusterRoleBindingWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body); + public V1Status deleteClusterRoleBinding(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { + ApiResponse localVarResp = deleteClusterRoleBindingWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body); return localVarResp.getData(); } @@ -976,9 +990,10 @@ public V1Status deleteClusterRoleBinding(String name, String pretty, String dryR * * delete a ClusterRoleBinding * @param name name of the ClusterRoleBinding (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @param orphanDependents 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) * @param propagationPolicy 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. (optional) * @param body (optional) @@ -992,8 +1007,8 @@ public V1Status deleteClusterRoleBinding(String name, String pretty, String dryR 401 Unauthorized - */ - public ApiResponse deleteClusterRoleBindingWithHttpInfo(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { - okhttp3.Call localVarCall = deleteClusterRoleBindingValidateBeforeCall(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, null); + public ApiResponse deleteClusterRoleBindingWithHttpInfo(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteClusterRoleBindingValidateBeforeCall(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -1002,9 +1017,10 @@ public ApiResponse deleteClusterRoleBindingWithHttpInfo(String name, S * (asynchronously) * delete a ClusterRoleBinding * @param name name of the ClusterRoleBinding (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @param orphanDependents 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) * @param propagationPolicy 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. (optional) * @param body (optional) @@ -1019,20 +1035,21 @@ public ApiResponse deleteClusterRoleBindingWithHttpInfo(String name, S 401 Unauthorized - */ - public okhttp3.Call deleteClusterRoleBindingAsync(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + public okhttp3.Call deleteClusterRoleBindingAsync(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = deleteClusterRoleBindingValidateBeforeCall(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); + okhttp3.Call localVarCall = deleteClusterRoleBindingValidateBeforeCall(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for deleteCollectionClusterRole - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param _continue 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) * @param dryRun 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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @param orphanDependents 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) @@ -1052,7 +1069,7 @@ public okhttp3.Call deleteClusterRoleBindingAsync(String name, String pretty, St 401 Unauthorized - */ - public okhttp3.Call deleteCollectionClusterRoleCall(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + public okhttp3.Call deleteCollectionClusterRoleCall(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; // create path and map variables @@ -1080,6 +1097,10 @@ public okhttp3.Call deleteCollectionClusterRoleCall(String pretty, String _conti localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); } + if (ignoreStoreReadErrorWithClusterBreakingPotential != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("ignoreStoreReadErrorWithClusterBreakingPotential", ignoreStoreReadErrorWithClusterBreakingPotential)); + } + if (labelSelector != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); } @@ -1116,7 +1137,7 @@ public okhttp3.Call deleteCollectionClusterRoleCall(String pretty, String _conti Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -1134,10 +1155,10 @@ public okhttp3.Call deleteCollectionClusterRoleCall(String pretty, String _conti } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteCollectionClusterRoleValidateBeforeCall(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionClusterRoleValidateBeforeCall(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = deleteCollectionClusterRoleCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + okhttp3.Call localVarCall = deleteCollectionClusterRoleCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); return localVarCall; } @@ -1145,11 +1166,12 @@ private okhttp3.Call deleteCollectionClusterRoleValidateBeforeCall(String pretty /** * * delete collection of ClusterRole - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param _continue 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) * @param dryRun 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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @param orphanDependents 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) @@ -1168,19 +1190,20 @@ private okhttp3.Call deleteCollectionClusterRoleValidateBeforeCall(String pretty 401 Unauthorized - */ - public V1Status deleteCollectionClusterRole(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body) throws ApiException { - ApiResponse localVarResp = deleteCollectionClusterRoleWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); + public V1Status deleteCollectionClusterRole(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body) throws ApiException { + ApiResponse localVarResp = deleteCollectionClusterRoleWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); return localVarResp.getData(); } /** * * delete collection of ClusterRole - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param _continue 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) * @param dryRun 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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @param orphanDependents 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) @@ -1199,8 +1222,8 @@ public V1Status deleteCollectionClusterRole(String pretty, String _continue, Str 401 Unauthorized - */ - public ApiResponse deleteCollectionClusterRoleWithHttpInfo(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body) throws ApiException { - okhttp3.Call localVarCall = deleteCollectionClusterRoleValidateBeforeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, null); + public ApiResponse deleteCollectionClusterRoleWithHttpInfo(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteCollectionClusterRoleValidateBeforeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -1208,11 +1231,12 @@ public ApiResponse deleteCollectionClusterRoleWithHttpInfo(String pret /** * (asynchronously) * delete collection of ClusterRole - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param _continue 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) * @param dryRun 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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @param orphanDependents 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) @@ -1232,20 +1256,21 @@ public ApiResponse deleteCollectionClusterRoleWithHttpInfo(String pret 401 Unauthorized - */ - public okhttp3.Call deleteCollectionClusterRoleAsync(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + public okhttp3.Call deleteCollectionClusterRoleAsync(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = deleteCollectionClusterRoleValidateBeforeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + okhttp3.Call localVarCall = deleteCollectionClusterRoleValidateBeforeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for deleteCollectionClusterRoleBinding - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param _continue 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) * @param dryRun 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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @param orphanDependents 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) @@ -1265,7 +1290,7 @@ public okhttp3.Call deleteCollectionClusterRoleAsync(String pretty, String _cont 401 Unauthorized - */ - public okhttp3.Call deleteCollectionClusterRoleBindingCall(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + public okhttp3.Call deleteCollectionClusterRoleBindingCall(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; // create path and map variables @@ -1293,6 +1318,10 @@ public okhttp3.Call deleteCollectionClusterRoleBindingCall(String pretty, String localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); } + if (ignoreStoreReadErrorWithClusterBreakingPotential != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("ignoreStoreReadErrorWithClusterBreakingPotential", ignoreStoreReadErrorWithClusterBreakingPotential)); + } + if (labelSelector != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); } @@ -1329,7 +1358,7 @@ public okhttp3.Call deleteCollectionClusterRoleBindingCall(String pretty, String Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -1347,10 +1376,10 @@ public okhttp3.Call deleteCollectionClusterRoleBindingCall(String pretty, String } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteCollectionClusterRoleBindingValidateBeforeCall(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionClusterRoleBindingValidateBeforeCall(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = deleteCollectionClusterRoleBindingCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + okhttp3.Call localVarCall = deleteCollectionClusterRoleBindingCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); return localVarCall; } @@ -1358,11 +1387,12 @@ private okhttp3.Call deleteCollectionClusterRoleBindingValidateBeforeCall(String /** * * delete collection of ClusterRoleBinding - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param _continue 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) * @param dryRun 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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @param orphanDependents 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) @@ -1381,19 +1411,20 @@ private okhttp3.Call deleteCollectionClusterRoleBindingValidateBeforeCall(String 401 Unauthorized - */ - public V1Status deleteCollectionClusterRoleBinding(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body) throws ApiException { - ApiResponse localVarResp = deleteCollectionClusterRoleBindingWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); + public V1Status deleteCollectionClusterRoleBinding(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body) throws ApiException { + ApiResponse localVarResp = deleteCollectionClusterRoleBindingWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); return localVarResp.getData(); } /** * * delete collection of ClusterRoleBinding - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param _continue 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) * @param dryRun 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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @param orphanDependents 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) @@ -1412,8 +1443,8 @@ public V1Status deleteCollectionClusterRoleBinding(String pretty, String _contin 401 Unauthorized - */ - public ApiResponse deleteCollectionClusterRoleBindingWithHttpInfo(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body) throws ApiException { - okhttp3.Call localVarCall = deleteCollectionClusterRoleBindingValidateBeforeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, null); + public ApiResponse deleteCollectionClusterRoleBindingWithHttpInfo(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteCollectionClusterRoleBindingValidateBeforeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -1421,11 +1452,12 @@ public ApiResponse deleteCollectionClusterRoleBindingWithHttpInfo(Stri /** * (asynchronously) * delete collection of ClusterRoleBinding - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param _continue 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) * @param dryRun 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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @param orphanDependents 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) @@ -1445,9 +1477,9 @@ public ApiResponse deleteCollectionClusterRoleBindingWithHttpInfo(Stri 401 Unauthorized - */ - public okhttp3.Call deleteCollectionClusterRoleBindingAsync(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + public okhttp3.Call deleteCollectionClusterRoleBindingAsync(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = deleteCollectionClusterRoleBindingValidateBeforeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + okhttp3.Call localVarCall = deleteCollectionClusterRoleBindingValidateBeforeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -1455,11 +1487,12 @@ public okhttp3.Call deleteCollectionClusterRoleBindingAsync(String pretty, Strin /** * Build call for deleteCollectionNamespacedRole * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param _continue 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) * @param dryRun 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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @param orphanDependents 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) @@ -1479,7 +1512,7 @@ public okhttp3.Call deleteCollectionClusterRoleBindingAsync(String pretty, Strin 401 Unauthorized - */ - public okhttp3.Call deleteCollectionNamespacedRoleCall(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + public okhttp3.Call deleteCollectionNamespacedRoleCall(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; // create path and map variables @@ -1508,6 +1541,10 @@ public okhttp3.Call deleteCollectionNamespacedRoleCall(String namespace, String localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); } + if (ignoreStoreReadErrorWithClusterBreakingPotential != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("ignoreStoreReadErrorWithClusterBreakingPotential", ignoreStoreReadErrorWithClusterBreakingPotential)); + } + if (labelSelector != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); } @@ -1544,7 +1581,7 @@ public okhttp3.Call deleteCollectionNamespacedRoleCall(String namespace, String Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -1562,7 +1599,7 @@ public okhttp3.Call deleteCollectionNamespacedRoleCall(String namespace, String } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteCollectionNamespacedRoleValidateBeforeCall(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionNamespacedRoleValidateBeforeCall(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { // verify the required parameter 'namespace' is set if (namespace == null) { @@ -1570,7 +1607,7 @@ private okhttp3.Call deleteCollectionNamespacedRoleValidateBeforeCall(String nam } - okhttp3.Call localVarCall = deleteCollectionNamespacedRoleCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + okhttp3.Call localVarCall = deleteCollectionNamespacedRoleCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); return localVarCall; } @@ -1579,11 +1616,12 @@ private okhttp3.Call deleteCollectionNamespacedRoleValidateBeforeCall(String nam * * delete collection of Role * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param _continue 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) * @param dryRun 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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @param orphanDependents 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) @@ -1602,8 +1640,8 @@ private okhttp3.Call deleteCollectionNamespacedRoleValidateBeforeCall(String nam 401 Unauthorized - */ - public V1Status deleteCollectionNamespacedRole(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body) throws ApiException { - ApiResponse localVarResp = deleteCollectionNamespacedRoleWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); + public V1Status deleteCollectionNamespacedRole(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body) throws ApiException { + ApiResponse localVarResp = deleteCollectionNamespacedRoleWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); return localVarResp.getData(); } @@ -1611,11 +1649,12 @@ public V1Status deleteCollectionNamespacedRole(String namespace, String pretty, * * delete collection of Role * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param _continue 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) * @param dryRun 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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @param orphanDependents 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) @@ -1634,8 +1673,8 @@ public V1Status deleteCollectionNamespacedRole(String namespace, String pretty, 401 Unauthorized - */ - public ApiResponse deleteCollectionNamespacedRoleWithHttpInfo(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body) throws ApiException { - okhttp3.Call localVarCall = deleteCollectionNamespacedRoleValidateBeforeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, null); + public ApiResponse deleteCollectionNamespacedRoleWithHttpInfo(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteCollectionNamespacedRoleValidateBeforeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -1644,11 +1683,12 @@ public ApiResponse deleteCollectionNamespacedRoleWithHttpInfo(String n * (asynchronously) * delete collection of Role * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param _continue 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) * @param dryRun 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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @param orphanDependents 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) @@ -1668,9 +1708,9 @@ public ApiResponse deleteCollectionNamespacedRoleWithHttpInfo(String n 401 Unauthorized - */ - public okhttp3.Call deleteCollectionNamespacedRoleAsync(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + public okhttp3.Call deleteCollectionNamespacedRoleAsync(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = deleteCollectionNamespacedRoleValidateBeforeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + okhttp3.Call localVarCall = deleteCollectionNamespacedRoleValidateBeforeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -1678,11 +1718,12 @@ public okhttp3.Call deleteCollectionNamespacedRoleAsync(String namespace, String /** * Build call for deleteCollectionNamespacedRoleBinding * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param _continue 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) * @param dryRun 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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @param orphanDependents 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) @@ -1702,7 +1743,7 @@ public okhttp3.Call deleteCollectionNamespacedRoleAsync(String namespace, String 401 Unauthorized - */ - public okhttp3.Call deleteCollectionNamespacedRoleBindingCall(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + public okhttp3.Call deleteCollectionNamespacedRoleBindingCall(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; // create path and map variables @@ -1731,6 +1772,10 @@ public okhttp3.Call deleteCollectionNamespacedRoleBindingCall(String namespace, localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); } + if (ignoreStoreReadErrorWithClusterBreakingPotential != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("ignoreStoreReadErrorWithClusterBreakingPotential", ignoreStoreReadErrorWithClusterBreakingPotential)); + } + if (labelSelector != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); } @@ -1767,7 +1812,7 @@ public okhttp3.Call deleteCollectionNamespacedRoleBindingCall(String namespace, Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -1785,7 +1830,7 @@ public okhttp3.Call deleteCollectionNamespacedRoleBindingCall(String namespace, } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteCollectionNamespacedRoleBindingValidateBeforeCall(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionNamespacedRoleBindingValidateBeforeCall(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { // verify the required parameter 'namespace' is set if (namespace == null) { @@ -1793,7 +1838,7 @@ private okhttp3.Call deleteCollectionNamespacedRoleBindingValidateBeforeCall(Str } - okhttp3.Call localVarCall = deleteCollectionNamespacedRoleBindingCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + okhttp3.Call localVarCall = deleteCollectionNamespacedRoleBindingCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); return localVarCall; } @@ -1802,11 +1847,12 @@ private okhttp3.Call deleteCollectionNamespacedRoleBindingValidateBeforeCall(Str * * delete collection of RoleBinding * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param _continue 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) * @param dryRun 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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @param orphanDependents 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) @@ -1825,8 +1871,8 @@ private okhttp3.Call deleteCollectionNamespacedRoleBindingValidateBeforeCall(Str 401 Unauthorized - */ - public V1Status deleteCollectionNamespacedRoleBinding(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body) throws ApiException { - ApiResponse localVarResp = deleteCollectionNamespacedRoleBindingWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); + public V1Status deleteCollectionNamespacedRoleBinding(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body) throws ApiException { + ApiResponse localVarResp = deleteCollectionNamespacedRoleBindingWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); return localVarResp.getData(); } @@ -1834,11 +1880,12 @@ public V1Status deleteCollectionNamespacedRoleBinding(String namespace, String p * * delete collection of RoleBinding * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param _continue 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) * @param dryRun 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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @param orphanDependents 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) @@ -1857,8 +1904,8 @@ public V1Status deleteCollectionNamespacedRoleBinding(String namespace, String p 401 Unauthorized - */ - public ApiResponse deleteCollectionNamespacedRoleBindingWithHttpInfo(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body) throws ApiException { - okhttp3.Call localVarCall = deleteCollectionNamespacedRoleBindingValidateBeforeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, null); + public ApiResponse deleteCollectionNamespacedRoleBindingWithHttpInfo(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteCollectionNamespacedRoleBindingValidateBeforeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -1867,11 +1914,12 @@ public ApiResponse deleteCollectionNamespacedRoleBindingWithHttpInfo(S * (asynchronously) * delete collection of RoleBinding * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param _continue 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) * @param dryRun 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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @param orphanDependents 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) @@ -1891,9 +1939,9 @@ public ApiResponse deleteCollectionNamespacedRoleBindingWithHttpInfo(S 401 Unauthorized - */ - public okhttp3.Call deleteCollectionNamespacedRoleBindingAsync(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + public okhttp3.Call deleteCollectionNamespacedRoleBindingAsync(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = deleteCollectionNamespacedRoleBindingValidateBeforeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + okhttp3.Call localVarCall = deleteCollectionNamespacedRoleBindingValidateBeforeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -1902,9 +1950,10 @@ public okhttp3.Call deleteCollectionNamespacedRoleBindingAsync(String namespace, * Build call for deleteNamespacedRole * @param name name of the Role (required) * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @param orphanDependents 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) * @param propagationPolicy 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. (optional) * @param body (optional) @@ -1919,7 +1968,7 @@ public okhttp3.Call deleteCollectionNamespacedRoleBindingAsync(String namespace, 401 Unauthorized - */ - public okhttp3.Call deleteNamespacedRoleCall(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + public okhttp3.Call deleteNamespacedRoleCall(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; // create path and map variables @@ -1941,6 +1990,10 @@ public okhttp3.Call deleteNamespacedRoleCall(String name, String namespace, Stri localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); } + if (ignoreStoreReadErrorWithClusterBreakingPotential != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("ignoreStoreReadErrorWithClusterBreakingPotential", ignoreStoreReadErrorWithClusterBreakingPotential)); + } + if (orphanDependents != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("orphanDependents", orphanDependents)); } @@ -1953,7 +2006,7 @@ public okhttp3.Call deleteNamespacedRoleCall(String name, String namespace, Stri Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -1971,7 +2024,7 @@ public okhttp3.Call deleteNamespacedRoleCall(String name, String namespace, Stri } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteNamespacedRoleValidateBeforeCall(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteNamespacedRoleValidateBeforeCall(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -1984,7 +2037,7 @@ private okhttp3.Call deleteNamespacedRoleValidateBeforeCall(String name, String } - okhttp3.Call localVarCall = deleteNamespacedRoleCall(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); + okhttp3.Call localVarCall = deleteNamespacedRoleCall(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); return localVarCall; } @@ -1994,9 +2047,10 @@ private okhttp3.Call deleteNamespacedRoleValidateBeforeCall(String name, String * delete a Role * @param name name of the Role (required) * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @param orphanDependents 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) * @param propagationPolicy 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. (optional) * @param body (optional) @@ -2010,8 +2064,8 @@ private okhttp3.Call deleteNamespacedRoleValidateBeforeCall(String name, String 401 Unauthorized - */ - public V1Status deleteNamespacedRole(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { - ApiResponse localVarResp = deleteNamespacedRoleWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body); + public V1Status deleteNamespacedRole(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { + ApiResponse localVarResp = deleteNamespacedRoleWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body); return localVarResp.getData(); } @@ -2020,9 +2074,10 @@ public V1Status deleteNamespacedRole(String name, String namespace, String prett * delete a Role * @param name name of the Role (required) * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @param orphanDependents 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) * @param propagationPolicy 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. (optional) * @param body (optional) @@ -2036,8 +2091,8 @@ public V1Status deleteNamespacedRole(String name, String namespace, String prett 401 Unauthorized - */ - public ApiResponse deleteNamespacedRoleWithHttpInfo(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { - okhttp3.Call localVarCall = deleteNamespacedRoleValidateBeforeCall(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, null); + public ApiResponse deleteNamespacedRoleWithHttpInfo(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteNamespacedRoleValidateBeforeCall(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -2047,9 +2102,10 @@ public ApiResponse deleteNamespacedRoleWithHttpInfo(String name, Strin * delete a Role * @param name name of the Role (required) * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @param orphanDependents 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) * @param propagationPolicy 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. (optional) * @param body (optional) @@ -2064,9 +2120,9 @@ public ApiResponse deleteNamespacedRoleWithHttpInfo(String name, Strin 401 Unauthorized - */ - public okhttp3.Call deleteNamespacedRoleAsync(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + public okhttp3.Call deleteNamespacedRoleAsync(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = deleteNamespacedRoleValidateBeforeCall(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); + okhttp3.Call localVarCall = deleteNamespacedRoleValidateBeforeCall(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -2075,9 +2131,10 @@ public okhttp3.Call deleteNamespacedRoleAsync(String name, String namespace, Str * Build call for deleteNamespacedRoleBinding * @param name name of the RoleBinding (required) * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @param orphanDependents 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) * @param propagationPolicy 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. (optional) * @param body (optional) @@ -2092,7 +2149,7 @@ public okhttp3.Call deleteNamespacedRoleAsync(String name, String namespace, Str 401 Unauthorized - */ - public okhttp3.Call deleteNamespacedRoleBindingCall(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + public okhttp3.Call deleteNamespacedRoleBindingCall(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; // create path and map variables @@ -2114,6 +2171,10 @@ public okhttp3.Call deleteNamespacedRoleBindingCall(String name, String namespac localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); } + if (ignoreStoreReadErrorWithClusterBreakingPotential != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("ignoreStoreReadErrorWithClusterBreakingPotential", ignoreStoreReadErrorWithClusterBreakingPotential)); + } + if (orphanDependents != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("orphanDependents", orphanDependents)); } @@ -2126,7 +2187,7 @@ public okhttp3.Call deleteNamespacedRoleBindingCall(String name, String namespac Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -2144,7 +2205,7 @@ public okhttp3.Call deleteNamespacedRoleBindingCall(String name, String namespac } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteNamespacedRoleBindingValidateBeforeCall(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteNamespacedRoleBindingValidateBeforeCall(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -2157,7 +2218,7 @@ private okhttp3.Call deleteNamespacedRoleBindingValidateBeforeCall(String name, } - okhttp3.Call localVarCall = deleteNamespacedRoleBindingCall(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); + okhttp3.Call localVarCall = deleteNamespacedRoleBindingCall(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); return localVarCall; } @@ -2167,9 +2228,10 @@ private okhttp3.Call deleteNamespacedRoleBindingValidateBeforeCall(String name, * delete a RoleBinding * @param name name of the RoleBinding (required) * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @param orphanDependents 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) * @param propagationPolicy 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. (optional) * @param body (optional) @@ -2183,8 +2245,8 @@ private okhttp3.Call deleteNamespacedRoleBindingValidateBeforeCall(String name, 401 Unauthorized - */ - public V1Status deleteNamespacedRoleBinding(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { - ApiResponse localVarResp = deleteNamespacedRoleBindingWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body); + public V1Status deleteNamespacedRoleBinding(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { + ApiResponse localVarResp = deleteNamespacedRoleBindingWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body); return localVarResp.getData(); } @@ -2193,9 +2255,10 @@ public V1Status deleteNamespacedRoleBinding(String name, String namespace, Strin * delete a RoleBinding * @param name name of the RoleBinding (required) * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @param orphanDependents 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) * @param propagationPolicy 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. (optional) * @param body (optional) @@ -2209,8 +2272,8 @@ public V1Status deleteNamespacedRoleBinding(String name, String namespace, Strin 401 Unauthorized - */ - public ApiResponse deleteNamespacedRoleBindingWithHttpInfo(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { - okhttp3.Call localVarCall = deleteNamespacedRoleBindingValidateBeforeCall(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, null); + public ApiResponse deleteNamespacedRoleBindingWithHttpInfo(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteNamespacedRoleBindingValidateBeforeCall(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -2220,9 +2283,10 @@ public ApiResponse deleteNamespacedRoleBindingWithHttpInfo(String name * delete a RoleBinding * @param name name of the RoleBinding (required) * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @param orphanDependents 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) * @param propagationPolicy 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. (optional) * @param body (optional) @@ -2237,9 +2301,9 @@ public ApiResponse deleteNamespacedRoleBindingWithHttpInfo(String name 401 Unauthorized - */ - public okhttp3.Call deleteNamespacedRoleBindingAsync(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + public okhttp3.Call deleteNamespacedRoleBindingAsync(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = deleteNamespacedRoleBindingValidateBeforeCall(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); + okhttp3.Call localVarCall = deleteNamespacedRoleBindingValidateBeforeCall(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -2268,7 +2332,7 @@ public okhttp3.Call getAPIResourcesCall(final ApiCallback _callback) throws ApiE Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -2351,7 +2415,7 @@ public okhttp3.Call getAPIResourcesAsync(final ApiCallback _c } /** * Build call for listClusterRole - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param allowWatchBookmarks 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. (optional) * @param _continue 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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) @@ -2428,7 +2492,7 @@ public okhttp3.Call listClusterRoleCall(String pretty, Boolean allowWatchBookmar Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch", "application/cbor-seq" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -2457,7 +2521,7 @@ private okhttp3.Call listClusterRoleValidateBeforeCall(String pretty, Boolean al /** * * list or watch objects of kind ClusterRole - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param allowWatchBookmarks 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. (optional) * @param _continue 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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) @@ -2485,7 +2549,7 @@ public V1ClusterRoleList listClusterRole(String pretty, Boolean allowWatchBookma /** * * list or watch objects of kind ClusterRole - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param allowWatchBookmarks 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. (optional) * @param _continue 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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) @@ -2514,7 +2578,7 @@ public ApiResponse listClusterRoleWithHttpInfo(String pretty, /** * (asynchronously) * list or watch objects of kind ClusterRole - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param allowWatchBookmarks 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. (optional) * @param _continue 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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) @@ -2544,7 +2608,7 @@ public okhttp3.Call listClusterRoleAsync(String pretty, Boolean allowWatchBookma } /** * Build call for listClusterRoleBinding - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param allowWatchBookmarks 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. (optional) * @param _continue 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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) @@ -2621,7 +2685,7 @@ public okhttp3.Call listClusterRoleBindingCall(String pretty, Boolean allowWatch Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch", "application/cbor-seq" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -2650,7 +2714,7 @@ private okhttp3.Call listClusterRoleBindingValidateBeforeCall(String pretty, Boo /** * * list or watch objects of kind ClusterRoleBinding - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param allowWatchBookmarks 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. (optional) * @param _continue 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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) @@ -2678,7 +2742,7 @@ public V1ClusterRoleBindingList listClusterRoleBinding(String pretty, Boolean al /** * * list or watch objects of kind ClusterRoleBinding - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param allowWatchBookmarks 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. (optional) * @param _continue 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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) @@ -2707,7 +2771,7 @@ public ApiResponse listClusterRoleBindingWithHttpInfo( /** * (asynchronously) * list or watch objects of kind ClusterRoleBinding - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param allowWatchBookmarks 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. (optional) * @param _continue 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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) @@ -2738,7 +2802,7 @@ public okhttp3.Call listClusterRoleBindingAsync(String pretty, Boolean allowWatc /** * Build call for listNamespacedRole * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param allowWatchBookmarks 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. (optional) * @param _continue 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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) @@ -2816,7 +2880,7 @@ public okhttp3.Call listNamespacedRoleCall(String namespace, String pretty, Bool Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch", "application/cbor-seq" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -2851,7 +2915,7 @@ private okhttp3.Call listNamespacedRoleValidateBeforeCall(String namespace, Stri * * list or watch objects of kind Role * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param allowWatchBookmarks 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. (optional) * @param _continue 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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) @@ -2880,7 +2944,7 @@ public V1RoleList listNamespacedRole(String namespace, String pretty, Boolean al * * list or watch objects of kind Role * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param allowWatchBookmarks 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. (optional) * @param _continue 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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) @@ -2910,7 +2974,7 @@ public ApiResponse listNamespacedRoleWithHttpInfo(String namespace, * (asynchronously) * list or watch objects of kind Role * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param allowWatchBookmarks 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. (optional) * @param _continue 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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) @@ -2941,7 +3005,7 @@ public okhttp3.Call listNamespacedRoleAsync(String namespace, String pretty, Boo /** * Build call for listNamespacedRoleBinding * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param allowWatchBookmarks 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. (optional) * @param _continue 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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) @@ -3019,7 +3083,7 @@ public okhttp3.Call listNamespacedRoleBindingCall(String namespace, String prett Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch", "application/cbor-seq" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -3054,7 +3118,7 @@ private okhttp3.Call listNamespacedRoleBindingValidateBeforeCall(String namespac * * list or watch objects of kind RoleBinding * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param allowWatchBookmarks 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. (optional) * @param _continue 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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) @@ -3083,7 +3147,7 @@ public V1RoleBindingList listNamespacedRoleBinding(String namespace, String pret * * list or watch objects of kind RoleBinding * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param allowWatchBookmarks 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. (optional) * @param _continue 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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) @@ -3113,7 +3177,7 @@ public ApiResponse listNamespacedRoleBindingWithHttpInfo(Stri * (asynchronously) * list or watch objects of kind RoleBinding * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param allowWatchBookmarks 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. (optional) * @param _continue 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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) @@ -3148,7 +3212,7 @@ public okhttp3.Call listNamespacedRoleBindingAsync(String namespace, String pret * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) @@ -3220,7 +3284,7 @@ public okhttp3.Call listRoleBindingForAllNamespacesCall(Boolean allowWatchBookma Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch", "application/cbor-seq" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -3254,7 +3318,7 @@ private okhttp3.Call listRoleBindingForAllNamespacesValidateBeforeCall(Boolean a * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) @@ -3282,7 +3346,7 @@ public V1RoleBindingList listRoleBindingForAllNamespaces(Boolean allowWatchBookm * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) @@ -3311,7 +3375,7 @@ public ApiResponse listRoleBindingForAllNamespacesWithHttpInf * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) @@ -3341,7 +3405,7 @@ public okhttp3.Call listRoleBindingForAllNamespacesAsync(Boolean allowWatchBookm * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) @@ -3413,7 +3477,7 @@ public okhttp3.Call listRoleForAllNamespacesCall(Boolean allowWatchBookmarks, St Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch", "application/cbor-seq" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -3447,7 +3511,7 @@ private okhttp3.Call listRoleForAllNamespacesValidateBeforeCall(Boolean allowWat * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) @@ -3475,7 +3539,7 @@ public V1RoleList listRoleForAllNamespaces(Boolean allowWatchBookmarks, String _ * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) @@ -3504,7 +3568,7 @@ public ApiResponse listRoleForAllNamespacesWithHttpInfo(Boolean allo * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) @@ -3531,7 +3595,7 @@ public okhttp3.Call listRoleForAllNamespacesAsync(Boolean allowWatchBookmarks, S * Build call for patchClusterRole * @param name name of the ClusterRole (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -3580,7 +3644,7 @@ public okhttp3.Call patchClusterRoleCall(String name, V1Patch body, String prett Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -3621,7 +3685,7 @@ private okhttp3.Call patchClusterRoleValidateBeforeCall(String name, V1Patch bod * partially update the specified ClusterRole * @param name name of the ClusterRole (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -3646,7 +3710,7 @@ public V1ClusterRole patchClusterRole(String name, V1Patch body, String pretty, * partially update the specified ClusterRole * @param name name of the ClusterRole (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -3672,7 +3736,7 @@ public ApiResponse patchClusterRoleWithHttpInfo(String name, V1Pa * partially update the specified ClusterRole * @param name name of the ClusterRole (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -3699,7 +3763,7 @@ public okhttp3.Call patchClusterRoleAsync(String name, V1Patch body, String pret * Build call for patchClusterRoleBinding * @param name name of the ClusterRoleBinding (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -3748,7 +3812,7 @@ public okhttp3.Call patchClusterRoleBindingCall(String name, V1Patch body, Strin Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -3789,7 +3853,7 @@ private okhttp3.Call patchClusterRoleBindingValidateBeforeCall(String name, V1Pa * partially update the specified ClusterRoleBinding * @param name name of the ClusterRoleBinding (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -3814,7 +3878,7 @@ public V1ClusterRoleBinding patchClusterRoleBinding(String name, V1Patch body, S * partially update the specified ClusterRoleBinding * @param name name of the ClusterRoleBinding (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -3840,7 +3904,7 @@ public ApiResponse patchClusterRoleBindingWithHttpInfo(Str * partially update the specified ClusterRoleBinding * @param name name of the ClusterRoleBinding (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -3868,7 +3932,7 @@ public okhttp3.Call patchClusterRoleBindingAsync(String name, V1Patch body, Stri * @param name name of the Role (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -3918,7 +3982,7 @@ public okhttp3.Call patchNamespacedRoleCall(String name, String namespace, V1Pat Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -3965,7 +4029,7 @@ private okhttp3.Call patchNamespacedRoleValidateBeforeCall(String name, String n * @param name name of the Role (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -3991,7 +4055,7 @@ public V1Role patchNamespacedRole(String name, String namespace, V1Patch body, S * @param name name of the Role (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -4018,7 +4082,7 @@ public ApiResponse patchNamespacedRoleWithHttpInfo(String name, String n * @param name name of the Role (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -4046,7 +4110,7 @@ public okhttp3.Call patchNamespacedRoleAsync(String name, String namespace, V1Pa * @param name name of the RoleBinding (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -4096,7 +4160,7 @@ public okhttp3.Call patchNamespacedRoleBindingCall(String name, String namespace Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -4143,7 +4207,7 @@ private okhttp3.Call patchNamespacedRoleBindingValidateBeforeCall(String name, S * @param name name of the RoleBinding (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -4169,7 +4233,7 @@ public V1RoleBinding patchNamespacedRoleBinding(String name, String namespace, V * @param name name of the RoleBinding (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -4196,7 +4260,7 @@ public ApiResponse patchNamespacedRoleBindingWithHttpInfo(String * @param name name of the RoleBinding (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -4222,7 +4286,7 @@ public okhttp3.Call patchNamespacedRoleBindingAsync(String name, String namespac /** * Build call for readClusterRole * @param name name of the ClusterRole (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -4250,7 +4314,7 @@ public okhttp3.Call readClusterRoleCall(String name, String pretty, final ApiCal Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -4285,7 +4349,7 @@ private okhttp3.Call readClusterRoleValidateBeforeCall(String name, String prett * * read the specified ClusterRole * @param name name of the ClusterRole (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return V1ClusterRole * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -4304,7 +4368,7 @@ public V1ClusterRole readClusterRole(String name, String pretty) throws ApiExcep * * read the specified ClusterRole * @param name name of the ClusterRole (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return ApiResponse<V1ClusterRole> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -4324,7 +4388,7 @@ public ApiResponse readClusterRoleWithHttpInfo(String name, Strin * (asynchronously) * read the specified ClusterRole * @param name name of the ClusterRole (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object @@ -4345,7 +4409,7 @@ public okhttp3.Call readClusterRoleAsync(String name, String pretty, final ApiCa /** * Build call for readClusterRoleBinding * @param name name of the ClusterRoleBinding (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -4373,7 +4437,7 @@ public okhttp3.Call readClusterRoleBindingCall(String name, String pretty, final Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -4408,7 +4472,7 @@ private okhttp3.Call readClusterRoleBindingValidateBeforeCall(String name, Strin * * read the specified ClusterRoleBinding * @param name name of the ClusterRoleBinding (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return V1ClusterRoleBinding * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -4427,7 +4491,7 @@ public V1ClusterRoleBinding readClusterRoleBinding(String name, String pretty) t * * read the specified ClusterRoleBinding * @param name name of the ClusterRoleBinding (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return ApiResponse<V1ClusterRoleBinding> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -4447,7 +4511,7 @@ public ApiResponse readClusterRoleBindingWithHttpInfo(Stri * (asynchronously) * read the specified ClusterRoleBinding * @param name name of the ClusterRoleBinding (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object @@ -4469,7 +4533,7 @@ public okhttp3.Call readClusterRoleBindingAsync(String name, String pretty, fina * Build call for readNamespacedRole * @param name name of the Role (required) * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -4498,7 +4562,7 @@ public okhttp3.Call readNamespacedRoleCall(String name, String namespace, String Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -4539,7 +4603,7 @@ private okhttp3.Call readNamespacedRoleValidateBeforeCall(String name, String na * read the specified Role * @param name name of the Role (required) * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return V1Role * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -4559,7 +4623,7 @@ public V1Role readNamespacedRole(String name, String namespace, String pretty) t * read the specified Role * @param name name of the Role (required) * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return ApiResponse<V1Role> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -4580,7 +4644,7 @@ public ApiResponse readNamespacedRoleWithHttpInfo(String name, String na * read the specified Role * @param name name of the Role (required) * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object @@ -4602,7 +4666,7 @@ public okhttp3.Call readNamespacedRoleAsync(String name, String namespace, Strin * Build call for readNamespacedRoleBinding * @param name name of the RoleBinding (required) * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -4631,7 +4695,7 @@ public okhttp3.Call readNamespacedRoleBindingCall(String name, String namespace, Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -4672,7 +4736,7 @@ private okhttp3.Call readNamespacedRoleBindingValidateBeforeCall(String name, St * read the specified RoleBinding * @param name name of the RoleBinding (required) * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return V1RoleBinding * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -4692,7 +4756,7 @@ public V1RoleBinding readNamespacedRoleBinding(String name, String namespace, St * read the specified RoleBinding * @param name name of the RoleBinding (required) * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return ApiResponse<V1RoleBinding> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -4713,7 +4777,7 @@ public ApiResponse readNamespacedRoleBindingWithHttpInfo(String n * read the specified RoleBinding * @param name name of the RoleBinding (required) * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object @@ -4735,7 +4799,7 @@ public okhttp3.Call readNamespacedRoleBindingAsync(String name, String namespace * Build call for replaceClusterRole * @param name name of the ClusterRole (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -4779,7 +4843,7 @@ public okhttp3.Call replaceClusterRoleCall(String name, V1ClusterRole body, Stri Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -4820,7 +4884,7 @@ private okhttp3.Call replaceClusterRoleValidateBeforeCall(String name, V1Cluster * replace the specified ClusterRole * @param name name of the ClusterRole (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -4844,7 +4908,7 @@ public V1ClusterRole replaceClusterRole(String name, V1ClusterRole body, String * replace the specified ClusterRole * @param name name of the ClusterRole (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -4869,7 +4933,7 @@ public ApiResponse replaceClusterRoleWithHttpInfo(String name, V1 * replace the specified ClusterRole * @param name name of the ClusterRole (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -4895,7 +4959,7 @@ public okhttp3.Call replaceClusterRoleAsync(String name, V1ClusterRole body, Str * Build call for replaceClusterRoleBinding * @param name name of the ClusterRoleBinding (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -4939,7 +5003,7 @@ public okhttp3.Call replaceClusterRoleBindingCall(String name, V1ClusterRoleBind Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -4980,7 +5044,7 @@ private okhttp3.Call replaceClusterRoleBindingValidateBeforeCall(String name, V1 * replace the specified ClusterRoleBinding * @param name name of the ClusterRoleBinding (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -5004,7 +5068,7 @@ public V1ClusterRoleBinding replaceClusterRoleBinding(String name, V1ClusterRole * replace the specified ClusterRoleBinding * @param name name of the ClusterRoleBinding (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -5029,7 +5093,7 @@ public ApiResponse replaceClusterRoleBindingWithHttpInfo(S * replace the specified ClusterRoleBinding * @param name name of the ClusterRoleBinding (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -5056,7 +5120,7 @@ public okhttp3.Call replaceClusterRoleBindingAsync(String name, V1ClusterRoleBin * @param name name of the Role (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -5101,7 +5165,7 @@ public okhttp3.Call replaceNamespacedRoleCall(String name, String namespace, V1R Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -5148,7 +5212,7 @@ private okhttp3.Call replaceNamespacedRoleValidateBeforeCall(String name, String * @param name name of the Role (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -5173,7 +5237,7 @@ public V1Role replaceNamespacedRole(String name, String namespace, V1Role body, * @param name name of the Role (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -5199,7 +5263,7 @@ public ApiResponse replaceNamespacedRoleWithHttpInfo(String name, String * @param name name of the Role (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -5226,7 +5290,7 @@ public okhttp3.Call replaceNamespacedRoleAsync(String name, String namespace, V1 * @param name name of the RoleBinding (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -5271,7 +5335,7 @@ public okhttp3.Call replaceNamespacedRoleBindingCall(String name, String namespa Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -5318,7 +5382,7 @@ private okhttp3.Call replaceNamespacedRoleBindingValidateBeforeCall(String name, * @param name name of the RoleBinding (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -5343,7 +5407,7 @@ public V1RoleBinding replaceNamespacedRoleBinding(String name, String namespace, * @param name name of the RoleBinding (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -5369,7 +5433,7 @@ public ApiResponse replaceNamespacedRoleBindingWithHttpInfo(Strin * @param name name of the RoleBinding (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) 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 54f0c3f610..1fc04ffdda 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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/ResourceV1alpha2Api.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/ResourceV1alpha2Api.java deleted file mode 100644 index 1323f9c543..0000000000 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/ResourceV1alpha2Api.java +++ /dev/null @@ -1,6619 +0,0 @@ -/* -Copyright 2023 The Kubernetes Authors. -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at -http://www.apache.org/licenses/LICENSE-2.0 -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ -package io.kubernetes.client.openapi.apis; - -import io.kubernetes.client.openapi.ApiCallback; -import io.kubernetes.client.openapi.ApiClient; -import io.kubernetes.client.openapi.ApiException; -import io.kubernetes.client.openapi.ApiResponse; -import io.kubernetes.client.openapi.Configuration; -import io.kubernetes.client.openapi.Pair; -import io.kubernetes.client.openapi.ProgressRequestBody; -import io.kubernetes.client.openapi.ProgressResponseBody; - -import com.google.gson.reflect.TypeToken; - -import java.io.IOException; - - -import io.kubernetes.client.openapi.models.V1APIResourceList; -import io.kubernetes.client.openapi.models.V1DeleteOptions; -import io.kubernetes.client.custom.V1Patch; -import io.kubernetes.client.openapi.models.V1Status; -import io.kubernetes.client.openapi.models.V1alpha2PodSchedulingContext; -import io.kubernetes.client.openapi.models.V1alpha2PodSchedulingContextList; -import io.kubernetes.client.openapi.models.V1alpha2ResourceClaim; -import io.kubernetes.client.openapi.models.V1alpha2ResourceClaimList; -import io.kubernetes.client.openapi.models.V1alpha2ResourceClaimTemplate; -import io.kubernetes.client.openapi.models.V1alpha2ResourceClaimTemplateList; -import io.kubernetes.client.openapi.models.V1alpha2ResourceClass; -import io.kubernetes.client.openapi.models.V1alpha2ResourceClassList; - -import java.lang.reflect.Type; -import java.util.ArrayList; -import java.util.HashMap; -import java.util.List; -import java.util.Map; - -public class ResourceV1alpha2Api { - private ApiClient localVarApiClient; - - public ResourceV1alpha2Api() { - this(Configuration.getDefaultApiClient()); - } - - public ResourceV1alpha2Api(ApiClient apiClient) { - this.localVarApiClient = apiClient; - } - - public ApiClient getApiClient() { - return localVarApiClient; - } - - public void setApiClient(ApiClient apiClient) { - this.localVarApiClient = apiClient; - } - - /** - * Build call for createNamespacedPodSchedulingContext - * @param namespace object name and auth scope, such as for teams and projects (required) - * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) - * @param dryRun 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) - * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - - - -
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
- */ - public okhttp3.Call createNamespacedPodSchedulingContextCall(String namespace, V1alpha2PodSchedulingContext body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { - Object localVarPostBody = body; - - // create path and map variables - String localVarPath = "/apis/resource.k8s.io/v1alpha2/namespaces/{namespace}/podschedulingcontexts" - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); - } - - if (dryRun != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); - } - - if (fieldManager != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); - } - - if (fieldValidation != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); - } - - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - "application/json" - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); - - String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call createNamespacedPodSchedulingContextValidateBeforeCall(String namespace, V1alpha2PodSchedulingContext body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { - - // verify the required parameter 'namespace' is set - if (namespace == null) { - throw new ApiException("Missing the required parameter 'namespace' when calling createNamespacedPodSchedulingContext(Async)"); - } - - // verify the required parameter 'body' is set - if (body == null) { - throw new ApiException("Missing the required parameter 'body' when calling createNamespacedPodSchedulingContext(Async)"); - } - - - okhttp3.Call localVarCall = createNamespacedPodSchedulingContextCall(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); - return localVarCall; - - } - - /** - * - * create a PodSchedulingContext - * @param namespace object name and auth scope, such as for teams and projects (required) - * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) - * @param dryRun 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) - * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - * @return V1alpha2PodSchedulingContext - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - - -
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
- */ - public V1alpha2PodSchedulingContext createNamespacedPodSchedulingContext(String namespace, V1alpha2PodSchedulingContext body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { - ApiResponse localVarResp = createNamespacedPodSchedulingContextWithHttpInfo(namespace, body, pretty, dryRun, fieldManager, fieldValidation); - return localVarResp.getData(); - } - - /** - * - * create a PodSchedulingContext - * @param namespace object name and auth scope, such as for teams and projects (required) - * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) - * @param dryRun 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) - * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - * @return ApiResponse<V1alpha2PodSchedulingContext> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - - -
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
- */ - public ApiResponse createNamespacedPodSchedulingContextWithHttpInfo(String namespace, V1alpha2PodSchedulingContext body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { - okhttp3.Call localVarCall = createNamespacedPodSchedulingContextValidateBeforeCall(namespace, body, pretty, dryRun, fieldManager, fieldValidation, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * (asynchronously) - * create a PodSchedulingContext - * @param namespace object name and auth scope, such as for teams and projects (required) - * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) - * @param dryRun 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) - * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - - - - -
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
- */ - public okhttp3.Call createNamespacedPodSchedulingContextAsync(String namespace, V1alpha2PodSchedulingContext body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = createNamespacedPodSchedulingContextValidateBeforeCall(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - /** - * Build call for createNamespacedResourceClaim - * @param namespace object name and auth scope, such as for teams and projects (required) - * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) - * @param dryRun 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) - * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - - - -
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
- */ - public okhttp3.Call createNamespacedResourceClaimCall(String namespace, V1alpha2ResourceClaim body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { - Object localVarPostBody = body; - - // create path and map variables - String localVarPath = "/apis/resource.k8s.io/v1alpha2/namespaces/{namespace}/resourceclaims" - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); - } - - if (dryRun != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); - } - - if (fieldManager != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); - } - - if (fieldValidation != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); - } - - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - "application/json" - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); - - String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call createNamespacedResourceClaimValidateBeforeCall(String namespace, V1alpha2ResourceClaim body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { - - // verify the required parameter 'namespace' is set - if (namespace == null) { - throw new ApiException("Missing the required parameter 'namespace' when calling createNamespacedResourceClaim(Async)"); - } - - // verify the required parameter 'body' is set - if (body == null) { - throw new ApiException("Missing the required parameter 'body' when calling createNamespacedResourceClaim(Async)"); - } - - - okhttp3.Call localVarCall = createNamespacedResourceClaimCall(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); - return localVarCall; - - } - - /** - * - * create a ResourceClaim - * @param namespace object name and auth scope, such as for teams and projects (required) - * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) - * @param dryRun 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) - * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - * @return V1alpha2ResourceClaim - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - - -
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
- */ - public V1alpha2ResourceClaim createNamespacedResourceClaim(String namespace, V1alpha2ResourceClaim body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { - ApiResponse localVarResp = createNamespacedResourceClaimWithHttpInfo(namespace, body, pretty, dryRun, fieldManager, fieldValidation); - return localVarResp.getData(); - } - - /** - * - * create a ResourceClaim - * @param namespace object name and auth scope, such as for teams and projects (required) - * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) - * @param dryRun 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) - * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - * @return ApiResponse<V1alpha2ResourceClaim> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - - -
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
- */ - public ApiResponse createNamespacedResourceClaimWithHttpInfo(String namespace, V1alpha2ResourceClaim body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { - okhttp3.Call localVarCall = createNamespacedResourceClaimValidateBeforeCall(namespace, body, pretty, dryRun, fieldManager, fieldValidation, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * (asynchronously) - * create a ResourceClaim - * @param namespace object name and auth scope, such as for teams and projects (required) - * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) - * @param dryRun 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) - * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - - - - -
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
- */ - public okhttp3.Call createNamespacedResourceClaimAsync(String namespace, V1alpha2ResourceClaim body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = createNamespacedResourceClaimValidateBeforeCall(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - /** - * Build call for createNamespacedResourceClaimTemplate - * @param namespace object name and auth scope, such as for teams and projects (required) - * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) - * @param dryRun 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) - * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - - - -
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
- */ - public okhttp3.Call createNamespacedResourceClaimTemplateCall(String namespace, V1alpha2ResourceClaimTemplate body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { - Object localVarPostBody = body; - - // create path and map variables - String localVarPath = "/apis/resource.k8s.io/v1alpha2/namespaces/{namespace}/resourceclaimtemplates" - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); - } - - if (dryRun != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); - } - - if (fieldManager != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); - } - - if (fieldValidation != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); - } - - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - "application/json" - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); - - String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call createNamespacedResourceClaimTemplateValidateBeforeCall(String namespace, V1alpha2ResourceClaimTemplate body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { - - // verify the required parameter 'namespace' is set - if (namespace == null) { - throw new ApiException("Missing the required parameter 'namespace' when calling createNamespacedResourceClaimTemplate(Async)"); - } - - // verify the required parameter 'body' is set - if (body == null) { - throw new ApiException("Missing the required parameter 'body' when calling createNamespacedResourceClaimTemplate(Async)"); - } - - - okhttp3.Call localVarCall = createNamespacedResourceClaimTemplateCall(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); - return localVarCall; - - } - - /** - * - * create a ResourceClaimTemplate - * @param namespace object name and auth scope, such as for teams and projects (required) - * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) - * @param dryRun 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) - * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - * @return V1alpha2ResourceClaimTemplate - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - - -
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
- */ - public V1alpha2ResourceClaimTemplate createNamespacedResourceClaimTemplate(String namespace, V1alpha2ResourceClaimTemplate body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { - ApiResponse localVarResp = createNamespacedResourceClaimTemplateWithHttpInfo(namespace, body, pretty, dryRun, fieldManager, fieldValidation); - return localVarResp.getData(); - } - - /** - * - * create a ResourceClaimTemplate - * @param namespace object name and auth scope, such as for teams and projects (required) - * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) - * @param dryRun 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) - * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - * @return ApiResponse<V1alpha2ResourceClaimTemplate> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - - -
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
- */ - public ApiResponse createNamespacedResourceClaimTemplateWithHttpInfo(String namespace, V1alpha2ResourceClaimTemplate body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { - okhttp3.Call localVarCall = createNamespacedResourceClaimTemplateValidateBeforeCall(namespace, body, pretty, dryRun, fieldManager, fieldValidation, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * (asynchronously) - * create a ResourceClaimTemplate - * @param namespace object name and auth scope, such as for teams and projects (required) - * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) - * @param dryRun 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) - * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - - - - -
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
- */ - public okhttp3.Call createNamespacedResourceClaimTemplateAsync(String namespace, V1alpha2ResourceClaimTemplate body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = createNamespacedResourceClaimTemplateValidateBeforeCall(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - /** - * Build call for createResourceClass - * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) - * @param dryRun 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) - * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - - - -
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
- */ - public okhttp3.Call createResourceClassCall(V1alpha2ResourceClass body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { - Object localVarPostBody = body; - - // create path and map variables - String localVarPath = "/apis/resource.k8s.io/v1alpha2/resourceclasses"; - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); - } - - if (dryRun != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); - } - - if (fieldManager != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); - } - - if (fieldValidation != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); - } - - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - "application/json" - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); - - String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call createResourceClassValidateBeforeCall(V1alpha2ResourceClass body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { - - // verify the required parameter 'body' is set - if (body == null) { - throw new ApiException("Missing the required parameter 'body' when calling createResourceClass(Async)"); - } - - - okhttp3.Call localVarCall = createResourceClassCall(body, pretty, dryRun, fieldManager, fieldValidation, _callback); - return localVarCall; - - } - - /** - * - * create a ResourceClass - * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) - * @param dryRun 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) - * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - * @return V1alpha2ResourceClass - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - - -
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
- */ - public V1alpha2ResourceClass createResourceClass(V1alpha2ResourceClass body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { - ApiResponse localVarResp = createResourceClassWithHttpInfo(body, pretty, dryRun, fieldManager, fieldValidation); - return localVarResp.getData(); - } - - /** - * - * create a ResourceClass - * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) - * @param dryRun 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) - * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - * @return ApiResponse<V1alpha2ResourceClass> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - - -
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
- */ - public ApiResponse createResourceClassWithHttpInfo(V1alpha2ResourceClass body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { - okhttp3.Call localVarCall = createResourceClassValidateBeforeCall(body, pretty, dryRun, fieldManager, fieldValidation, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * (asynchronously) - * create a ResourceClass - * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) - * @param dryRun 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) - * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - - - - -
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
- */ - public okhttp3.Call createResourceClassAsync(V1alpha2ResourceClass body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = createResourceClassValidateBeforeCall(body, pretty, dryRun, fieldManager, fieldValidation, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - /** - * Build call for deleteCollectionNamespacedPodSchedulingContext - * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) - * @param _continue 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) - * @param dryRun 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) - * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) - * @param gracePeriodSeconds 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. (optional) - * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) - * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) - * @param orphanDependents 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) - * @param propagationPolicy 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. (optional) - * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) - * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) - * @param body (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - -
Status Code Description Response Headers
200 OK -
401 Unauthorized -
- */ - public okhttp3.Call deleteCollectionNamespacedPodSchedulingContextCall(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - Object localVarPostBody = body; - - // create path and map variables - String localVarPath = "/apis/resource.k8s.io/v1alpha2/namespaces/{namespace}/podschedulingcontexts" - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); - } - - if (_continue != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); - } - - if (dryRun != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); - } - - if (fieldSelector != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); - } - - if (gracePeriodSeconds != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); - } - - if (labelSelector != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); - } - - if (limit != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); - } - - if (orphanDependents != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("orphanDependents", orphanDependents)); - } - - if (propagationPolicy != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("propagationPolicy", propagationPolicy)); - } - - if (resourceVersion != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); - } - - if (resourceVersionMatch != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersionMatch", resourceVersionMatch)); - } - - if (sendInitialEvents != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("sendInitialEvents", sendInitialEvents)); - } - - if (timeoutSeconds != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); - } - - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - "application/json" - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); - - String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call deleteCollectionNamespacedPodSchedulingContextValidateBeforeCall(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - - // verify the required parameter 'namespace' is set - if (namespace == null) { - throw new ApiException("Missing the required parameter 'namespace' when calling deleteCollectionNamespacedPodSchedulingContext(Async)"); - } - - - okhttp3.Call localVarCall = deleteCollectionNamespacedPodSchedulingContextCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); - return localVarCall; - - } - - /** - * - * delete collection of PodSchedulingContext - * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) - * @param _continue 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) - * @param dryRun 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) - * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) - * @param gracePeriodSeconds 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. (optional) - * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) - * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) - * @param orphanDependents 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) - * @param propagationPolicy 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. (optional) - * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) - * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) - * @param body (optional) - * @return V1Status - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Status Code Description Response Headers
200 OK -
401 Unauthorized -
- */ - public V1Status deleteCollectionNamespacedPodSchedulingContext(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body) throws ApiException { - ApiResponse localVarResp = deleteCollectionNamespacedPodSchedulingContextWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); - return localVarResp.getData(); - } - - /** - * - * delete collection of PodSchedulingContext - * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) - * @param _continue 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) - * @param dryRun 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) - * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) - * @param gracePeriodSeconds 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. (optional) - * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) - * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) - * @param orphanDependents 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) - * @param propagationPolicy 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. (optional) - * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) - * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) - * @param body (optional) - * @return ApiResponse<V1Status> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Status Code Description Response Headers
200 OK -
401 Unauthorized -
- */ - public ApiResponse deleteCollectionNamespacedPodSchedulingContextWithHttpInfo(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body) throws ApiException { - okhttp3.Call localVarCall = deleteCollectionNamespacedPodSchedulingContextValidateBeforeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * (asynchronously) - * delete collection of PodSchedulingContext - * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) - * @param _continue 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) - * @param dryRun 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) - * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) - * @param gracePeriodSeconds 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. (optional) - * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) - * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) - * @param orphanDependents 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) - * @param propagationPolicy 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. (optional) - * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) - * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) - * @param body (optional) - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - - -
Status Code Description Response Headers
200 OK -
401 Unauthorized -
- */ - public okhttp3.Call deleteCollectionNamespacedPodSchedulingContextAsync(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = deleteCollectionNamespacedPodSchedulingContextValidateBeforeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - /** - * Build call for deleteCollectionNamespacedResourceClaim - * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) - * @param _continue 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) - * @param dryRun 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) - * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) - * @param gracePeriodSeconds 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. (optional) - * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) - * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) - * @param orphanDependents 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) - * @param propagationPolicy 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. (optional) - * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) - * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) - * @param body (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - -
Status Code Description Response Headers
200 OK -
401 Unauthorized -
- */ - public okhttp3.Call deleteCollectionNamespacedResourceClaimCall(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - Object localVarPostBody = body; - - // create path and map variables - String localVarPath = "/apis/resource.k8s.io/v1alpha2/namespaces/{namespace}/resourceclaims" - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); - } - - if (_continue != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); - } - - if (dryRun != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); - } - - if (fieldSelector != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); - } - - if (gracePeriodSeconds != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); - } - - if (labelSelector != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); - } - - if (limit != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); - } - - if (orphanDependents != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("orphanDependents", orphanDependents)); - } - - if (propagationPolicy != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("propagationPolicy", propagationPolicy)); - } - - if (resourceVersion != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); - } - - if (resourceVersionMatch != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersionMatch", resourceVersionMatch)); - } - - if (sendInitialEvents != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("sendInitialEvents", sendInitialEvents)); - } - - if (timeoutSeconds != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); - } - - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - "application/json" - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); - - String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call deleteCollectionNamespacedResourceClaimValidateBeforeCall(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - - // verify the required parameter 'namespace' is set - if (namespace == null) { - throw new ApiException("Missing the required parameter 'namespace' when calling deleteCollectionNamespacedResourceClaim(Async)"); - } - - - okhttp3.Call localVarCall = deleteCollectionNamespacedResourceClaimCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); - return localVarCall; - - } - - /** - * - * delete collection of ResourceClaim - * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) - * @param _continue 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) - * @param dryRun 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) - * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) - * @param gracePeriodSeconds 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. (optional) - * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) - * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) - * @param orphanDependents 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) - * @param propagationPolicy 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. (optional) - * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) - * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) - * @param body (optional) - * @return V1Status - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Status Code Description Response Headers
200 OK -
401 Unauthorized -
- */ - public V1Status deleteCollectionNamespacedResourceClaim(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body) throws ApiException { - ApiResponse localVarResp = deleteCollectionNamespacedResourceClaimWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); - return localVarResp.getData(); - } - - /** - * - * delete collection of ResourceClaim - * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) - * @param _continue 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) - * @param dryRun 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) - * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) - * @param gracePeriodSeconds 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. (optional) - * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) - * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) - * @param orphanDependents 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) - * @param propagationPolicy 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. (optional) - * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) - * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) - * @param body (optional) - * @return ApiResponse<V1Status> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Status Code Description Response Headers
200 OK -
401 Unauthorized -
- */ - public ApiResponse deleteCollectionNamespacedResourceClaimWithHttpInfo(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body) throws ApiException { - okhttp3.Call localVarCall = deleteCollectionNamespacedResourceClaimValidateBeforeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * (asynchronously) - * delete collection of ResourceClaim - * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) - * @param _continue 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) - * @param dryRun 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) - * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) - * @param gracePeriodSeconds 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. (optional) - * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) - * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) - * @param orphanDependents 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) - * @param propagationPolicy 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. (optional) - * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) - * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) - * @param body (optional) - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - - -
Status Code Description Response Headers
200 OK -
401 Unauthorized -
- */ - public okhttp3.Call deleteCollectionNamespacedResourceClaimAsync(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = deleteCollectionNamespacedResourceClaimValidateBeforeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - /** - * Build call for deleteCollectionNamespacedResourceClaimTemplate - * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) - * @param _continue 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) - * @param dryRun 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) - * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) - * @param gracePeriodSeconds 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. (optional) - * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) - * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) - * @param orphanDependents 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) - * @param propagationPolicy 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. (optional) - * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) - * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) - * @param body (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - -
Status Code Description Response Headers
200 OK -
401 Unauthorized -
- */ - public okhttp3.Call deleteCollectionNamespacedResourceClaimTemplateCall(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - Object localVarPostBody = body; - - // create path and map variables - String localVarPath = "/apis/resource.k8s.io/v1alpha2/namespaces/{namespace}/resourceclaimtemplates" - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); - } - - if (_continue != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); - } - - if (dryRun != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); - } - - if (fieldSelector != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); - } - - if (gracePeriodSeconds != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); - } - - if (labelSelector != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); - } - - if (limit != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); - } - - if (orphanDependents != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("orphanDependents", orphanDependents)); - } - - if (propagationPolicy != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("propagationPolicy", propagationPolicy)); - } - - if (resourceVersion != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); - } - - if (resourceVersionMatch != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersionMatch", resourceVersionMatch)); - } - - if (sendInitialEvents != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("sendInitialEvents", sendInitialEvents)); - } - - if (timeoutSeconds != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); - } - - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - "application/json" - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); - - String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call deleteCollectionNamespacedResourceClaimTemplateValidateBeforeCall(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - - // verify the required parameter 'namespace' is set - if (namespace == null) { - throw new ApiException("Missing the required parameter 'namespace' when calling deleteCollectionNamespacedResourceClaimTemplate(Async)"); - } - - - okhttp3.Call localVarCall = deleteCollectionNamespacedResourceClaimTemplateCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); - return localVarCall; - - } - - /** - * - * delete collection of ResourceClaimTemplate - * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) - * @param _continue 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) - * @param dryRun 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) - * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) - * @param gracePeriodSeconds 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. (optional) - * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) - * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) - * @param orphanDependents 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) - * @param propagationPolicy 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. (optional) - * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) - * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) - * @param body (optional) - * @return V1Status - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Status Code Description Response Headers
200 OK -
401 Unauthorized -
- */ - public V1Status deleteCollectionNamespacedResourceClaimTemplate(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body) throws ApiException { - ApiResponse localVarResp = deleteCollectionNamespacedResourceClaimTemplateWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); - return localVarResp.getData(); - } - - /** - * - * delete collection of ResourceClaimTemplate - * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) - * @param _continue 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) - * @param dryRun 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) - * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) - * @param gracePeriodSeconds 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. (optional) - * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) - * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) - * @param orphanDependents 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) - * @param propagationPolicy 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. (optional) - * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) - * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) - * @param body (optional) - * @return ApiResponse<V1Status> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Status Code Description Response Headers
200 OK -
401 Unauthorized -
- */ - public ApiResponse deleteCollectionNamespacedResourceClaimTemplateWithHttpInfo(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body) throws ApiException { - okhttp3.Call localVarCall = deleteCollectionNamespacedResourceClaimTemplateValidateBeforeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * (asynchronously) - * delete collection of ResourceClaimTemplate - * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) - * @param _continue 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) - * @param dryRun 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) - * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) - * @param gracePeriodSeconds 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. (optional) - * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) - * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) - * @param orphanDependents 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) - * @param propagationPolicy 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. (optional) - * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) - * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) - * @param body (optional) - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - - -
Status Code Description Response Headers
200 OK -
401 Unauthorized -
- */ - public okhttp3.Call deleteCollectionNamespacedResourceClaimTemplateAsync(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = deleteCollectionNamespacedResourceClaimTemplateValidateBeforeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - /** - * Build call for deleteCollectionResourceClass - * @param pretty If 'true', then the output is pretty printed. (optional) - * @param _continue 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) - * @param dryRun 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) - * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) - * @param gracePeriodSeconds 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. (optional) - * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) - * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) - * @param orphanDependents 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) - * @param propagationPolicy 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. (optional) - * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) - * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) - * @param body (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - -
Status Code Description Response Headers
200 OK -
401 Unauthorized -
- */ - public okhttp3.Call deleteCollectionResourceClassCall(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - Object localVarPostBody = body; - - // create path and map variables - String localVarPath = "/apis/resource.k8s.io/v1alpha2/resourceclasses"; - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); - } - - if (_continue != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); - } - - if (dryRun != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); - } - - if (fieldSelector != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); - } - - if (gracePeriodSeconds != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); - } - - if (labelSelector != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); - } - - if (limit != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); - } - - if (orphanDependents != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("orphanDependents", orphanDependents)); - } - - if (propagationPolicy != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("propagationPolicy", propagationPolicy)); - } - - if (resourceVersion != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); - } - - if (resourceVersionMatch != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersionMatch", resourceVersionMatch)); - } - - if (sendInitialEvents != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("sendInitialEvents", sendInitialEvents)); - } - - if (timeoutSeconds != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); - } - - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - "application/json" - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); - - String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call deleteCollectionResourceClassValidateBeforeCall(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - - - okhttp3.Call localVarCall = deleteCollectionResourceClassCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); - return localVarCall; - - } - - /** - * - * delete collection of ResourceClass - * @param pretty If 'true', then the output is pretty printed. (optional) - * @param _continue 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) - * @param dryRun 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) - * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) - * @param gracePeriodSeconds 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. (optional) - * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) - * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) - * @param orphanDependents 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) - * @param propagationPolicy 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. (optional) - * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) - * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) - * @param body (optional) - * @return V1Status - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Status Code Description Response Headers
200 OK -
401 Unauthorized -
- */ - public V1Status deleteCollectionResourceClass(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body) throws ApiException { - ApiResponse localVarResp = deleteCollectionResourceClassWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); - return localVarResp.getData(); - } - - /** - * - * delete collection of ResourceClass - * @param pretty If 'true', then the output is pretty printed. (optional) - * @param _continue 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) - * @param dryRun 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) - * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) - * @param gracePeriodSeconds 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. (optional) - * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) - * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) - * @param orphanDependents 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) - * @param propagationPolicy 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. (optional) - * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) - * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) - * @param body (optional) - * @return ApiResponse<V1Status> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Status Code Description Response Headers
200 OK -
401 Unauthorized -
- */ - public ApiResponse deleteCollectionResourceClassWithHttpInfo(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body) throws ApiException { - okhttp3.Call localVarCall = deleteCollectionResourceClassValidateBeforeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * (asynchronously) - * delete collection of ResourceClass - * @param pretty If 'true', then the output is pretty printed. (optional) - * @param _continue 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) - * @param dryRun 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) - * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) - * @param gracePeriodSeconds 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. (optional) - * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) - * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) - * @param orphanDependents 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) - * @param propagationPolicy 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. (optional) - * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) - * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) - * @param body (optional) - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - - -
Status Code Description Response Headers
200 OK -
401 Unauthorized -
- */ - public okhttp3.Call deleteCollectionResourceClassAsync(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = deleteCollectionResourceClassValidateBeforeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - /** - * Build call for deleteNamespacedPodSchedulingContext - * @param name name of the PodSchedulingContext (required) - * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) - * @param dryRun 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) - * @param gracePeriodSeconds 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. (optional) - * @param orphanDependents 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) - * @param propagationPolicy 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. (optional) - * @param body (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - - -
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
- */ - public okhttp3.Call deleteNamespacedPodSchedulingContextCall(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - Object localVarPostBody = body; - - // create path and map variables - String localVarPath = "/apis/resource.k8s.io/v1alpha2/namespaces/{namespace}/podschedulingcontexts/{name}" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); - } - - if (dryRun != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); - } - - if (gracePeriodSeconds != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); - } - - if (orphanDependents != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("orphanDependents", orphanDependents)); - } - - if (propagationPolicy != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("propagationPolicy", propagationPolicy)); - } - - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - "application/json" - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); - - String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call deleteNamespacedPodSchedulingContextValidateBeforeCall(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - - // verify the required parameter 'name' is set - if (name == null) { - throw new ApiException("Missing the required parameter 'name' when calling deleteNamespacedPodSchedulingContext(Async)"); - } - - // verify the required parameter 'namespace' is set - if (namespace == null) { - throw new ApiException("Missing the required parameter 'namespace' when calling deleteNamespacedPodSchedulingContext(Async)"); - } - - - okhttp3.Call localVarCall = deleteNamespacedPodSchedulingContextCall(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); - return localVarCall; - - } - - /** - * - * delete a PodSchedulingContext - * @param name name of the PodSchedulingContext (required) - * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) - * @param dryRun 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) - * @param gracePeriodSeconds 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. (optional) - * @param orphanDependents 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) - * @param propagationPolicy 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. (optional) - * @param body (optional) - * @return V1alpha2PodSchedulingContext - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - -
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
- */ - public V1alpha2PodSchedulingContext deleteNamespacedPodSchedulingContext(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { - ApiResponse localVarResp = deleteNamespacedPodSchedulingContextWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body); - return localVarResp.getData(); - } - - /** - * - * delete a PodSchedulingContext - * @param name name of the PodSchedulingContext (required) - * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) - * @param dryRun 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) - * @param gracePeriodSeconds 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. (optional) - * @param orphanDependents 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) - * @param propagationPolicy 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. (optional) - * @param body (optional) - * @return ApiResponse<V1alpha2PodSchedulingContext> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - -
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
- */ - public ApiResponse deleteNamespacedPodSchedulingContextWithHttpInfo(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { - okhttp3.Call localVarCall = deleteNamespacedPodSchedulingContextValidateBeforeCall(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * (asynchronously) - * delete a PodSchedulingContext - * @param name name of the PodSchedulingContext (required) - * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) - * @param dryRun 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) - * @param gracePeriodSeconds 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. (optional) - * @param orphanDependents 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) - * @param propagationPolicy 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. (optional) - * @param body (optional) - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - - - -
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
- */ - public okhttp3.Call deleteNamespacedPodSchedulingContextAsync(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = deleteNamespacedPodSchedulingContextValidateBeforeCall(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - /** - * Build call for deleteNamespacedResourceClaim - * @param name name of the ResourceClaim (required) - * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) - * @param dryRun 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) - * @param gracePeriodSeconds 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. (optional) - * @param orphanDependents 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) - * @param propagationPolicy 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. (optional) - * @param body (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - - -
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
- */ - public okhttp3.Call deleteNamespacedResourceClaimCall(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - Object localVarPostBody = body; - - // create path and map variables - String localVarPath = "/apis/resource.k8s.io/v1alpha2/namespaces/{namespace}/resourceclaims/{name}" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); - } - - if (dryRun != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); - } - - if (gracePeriodSeconds != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); - } - - if (orphanDependents != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("orphanDependents", orphanDependents)); - } - - if (propagationPolicy != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("propagationPolicy", propagationPolicy)); - } - - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - "application/json" - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); - - String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call deleteNamespacedResourceClaimValidateBeforeCall(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - - // verify the required parameter 'name' is set - if (name == null) { - throw new ApiException("Missing the required parameter 'name' when calling deleteNamespacedResourceClaim(Async)"); - } - - // verify the required parameter 'namespace' is set - if (namespace == null) { - throw new ApiException("Missing the required parameter 'namespace' when calling deleteNamespacedResourceClaim(Async)"); - } - - - okhttp3.Call localVarCall = deleteNamespacedResourceClaimCall(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); - return localVarCall; - - } - - /** - * - * delete a ResourceClaim - * @param name name of the ResourceClaim (required) - * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) - * @param dryRun 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) - * @param gracePeriodSeconds 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. (optional) - * @param orphanDependents 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) - * @param propagationPolicy 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. (optional) - * @param body (optional) - * @return V1alpha2ResourceClaim - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - -
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
- */ - public V1alpha2ResourceClaim deleteNamespacedResourceClaim(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { - ApiResponse localVarResp = deleteNamespacedResourceClaimWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body); - return localVarResp.getData(); - } - - /** - * - * delete a ResourceClaim - * @param name name of the ResourceClaim (required) - * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) - * @param dryRun 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) - * @param gracePeriodSeconds 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. (optional) - * @param orphanDependents 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) - * @param propagationPolicy 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. (optional) - * @param body (optional) - * @return ApiResponse<V1alpha2ResourceClaim> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - -
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
- */ - public ApiResponse deleteNamespacedResourceClaimWithHttpInfo(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { - okhttp3.Call localVarCall = deleteNamespacedResourceClaimValidateBeforeCall(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * (asynchronously) - * delete a ResourceClaim - * @param name name of the ResourceClaim (required) - * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) - * @param dryRun 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) - * @param gracePeriodSeconds 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. (optional) - * @param orphanDependents 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) - * @param propagationPolicy 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. (optional) - * @param body (optional) - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - - - -
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
- */ - public okhttp3.Call deleteNamespacedResourceClaimAsync(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = deleteNamespacedResourceClaimValidateBeforeCall(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - /** - * Build call for deleteNamespacedResourceClaimTemplate - * @param name name of the ResourceClaimTemplate (required) - * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) - * @param dryRun 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) - * @param gracePeriodSeconds 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. (optional) - * @param orphanDependents 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) - * @param propagationPolicy 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. (optional) - * @param body (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - - -
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
- */ - public okhttp3.Call deleteNamespacedResourceClaimTemplateCall(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - Object localVarPostBody = body; - - // create path and map variables - String localVarPath = "/apis/resource.k8s.io/v1alpha2/namespaces/{namespace}/resourceclaimtemplates/{name}" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); - } - - if (dryRun != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); - } - - if (gracePeriodSeconds != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); - } - - if (orphanDependents != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("orphanDependents", orphanDependents)); - } - - if (propagationPolicy != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("propagationPolicy", propagationPolicy)); - } - - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - "application/json" - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); - - String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call deleteNamespacedResourceClaimTemplateValidateBeforeCall(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - - // verify the required parameter 'name' is set - if (name == null) { - throw new ApiException("Missing the required parameter 'name' when calling deleteNamespacedResourceClaimTemplate(Async)"); - } - - // verify the required parameter 'namespace' is set - if (namespace == null) { - throw new ApiException("Missing the required parameter 'namespace' when calling deleteNamespacedResourceClaimTemplate(Async)"); - } - - - okhttp3.Call localVarCall = deleteNamespacedResourceClaimTemplateCall(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); - return localVarCall; - - } - - /** - * - * delete a ResourceClaimTemplate - * @param name name of the ResourceClaimTemplate (required) - * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) - * @param dryRun 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) - * @param gracePeriodSeconds 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. (optional) - * @param orphanDependents 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) - * @param propagationPolicy 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. (optional) - * @param body (optional) - * @return V1alpha2ResourceClaimTemplate - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - -
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
- */ - public V1alpha2ResourceClaimTemplate deleteNamespacedResourceClaimTemplate(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { - ApiResponse localVarResp = deleteNamespacedResourceClaimTemplateWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body); - return localVarResp.getData(); - } - - /** - * - * delete a ResourceClaimTemplate - * @param name name of the ResourceClaimTemplate (required) - * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) - * @param dryRun 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) - * @param gracePeriodSeconds 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. (optional) - * @param orphanDependents 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) - * @param propagationPolicy 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. (optional) - * @param body (optional) - * @return ApiResponse<V1alpha2ResourceClaimTemplate> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - -
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
- */ - public ApiResponse deleteNamespacedResourceClaimTemplateWithHttpInfo(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { - okhttp3.Call localVarCall = deleteNamespacedResourceClaimTemplateValidateBeforeCall(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * (asynchronously) - * delete a ResourceClaimTemplate - * @param name name of the ResourceClaimTemplate (required) - * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) - * @param dryRun 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) - * @param gracePeriodSeconds 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. (optional) - * @param orphanDependents 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) - * @param propagationPolicy 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. (optional) - * @param body (optional) - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - - - -
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
- */ - public okhttp3.Call deleteNamespacedResourceClaimTemplateAsync(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = deleteNamespacedResourceClaimTemplateValidateBeforeCall(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - /** - * Build call for deleteResourceClass - * @param name name of the ResourceClass (required) - * @param pretty If 'true', then the output is pretty printed. (optional) - * @param dryRun 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) - * @param gracePeriodSeconds 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. (optional) - * @param orphanDependents 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) - * @param propagationPolicy 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. (optional) - * @param body (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - - -
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
- */ - public okhttp3.Call deleteResourceClassCall(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - Object localVarPostBody = body; - - // create path and map variables - String localVarPath = "/apis/resource.k8s.io/v1alpha2/resourceclasses/{name}" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); - } - - if (dryRun != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); - } - - if (gracePeriodSeconds != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); - } - - if (orphanDependents != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("orphanDependents", orphanDependents)); - } - - if (propagationPolicy != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("propagationPolicy", propagationPolicy)); - } - - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - "application/json" - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); - - String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call deleteResourceClassValidateBeforeCall(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - - // verify the required parameter 'name' is set - if (name == null) { - throw new ApiException("Missing the required parameter 'name' when calling deleteResourceClass(Async)"); - } - - - okhttp3.Call localVarCall = deleteResourceClassCall(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); - return localVarCall; - - } - - /** - * - * delete a ResourceClass - * @param name name of the ResourceClass (required) - * @param pretty If 'true', then the output is pretty printed. (optional) - * @param dryRun 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) - * @param gracePeriodSeconds 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. (optional) - * @param orphanDependents 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) - * @param propagationPolicy 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. (optional) - * @param body (optional) - * @return V1alpha2ResourceClass - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - -
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
- */ - public V1alpha2ResourceClass deleteResourceClass(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { - ApiResponse localVarResp = deleteResourceClassWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body); - return localVarResp.getData(); - } - - /** - * - * delete a ResourceClass - * @param name name of the ResourceClass (required) - * @param pretty If 'true', then the output is pretty printed. (optional) - * @param dryRun 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) - * @param gracePeriodSeconds 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. (optional) - * @param orphanDependents 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) - * @param propagationPolicy 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. (optional) - * @param body (optional) - * @return ApiResponse<V1alpha2ResourceClass> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - -
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
- */ - public ApiResponse deleteResourceClassWithHttpInfo(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { - okhttp3.Call localVarCall = deleteResourceClassValidateBeforeCall(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * (asynchronously) - * delete a ResourceClass - * @param name name of the ResourceClass (required) - * @param pretty If 'true', then the output is pretty printed. (optional) - * @param dryRun 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) - * @param gracePeriodSeconds 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. (optional) - * @param orphanDependents 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) - * @param propagationPolicy 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. (optional) - * @param body (optional) - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - - - -
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
- */ - public okhttp3.Call deleteResourceClassAsync(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = deleteResourceClassValidateBeforeCall(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - /** - * Build call for getAPIResources - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - -
Status Code Description Response Headers
200 OK -
401 Unauthorized -
- */ - public okhttp3.Call getAPIResourcesCall(final ApiCallback _callback) throws ApiException { - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = "/apis/resource.k8s.io/v1alpha2/"; - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); - - String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call getAPIResourcesValidateBeforeCall(final ApiCallback _callback) throws ApiException { - - - okhttp3.Call localVarCall = getAPIResourcesCall(_callback); - return localVarCall; - - } - - /** - * - * get available resources - * @return V1APIResourceList - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Status Code Description Response Headers
200 OK -
401 Unauthorized -
- */ - public V1APIResourceList getAPIResources() throws ApiException { - ApiResponse localVarResp = getAPIResourcesWithHttpInfo(); - return localVarResp.getData(); - } - - /** - * - * get available resources - * @return ApiResponse<V1APIResourceList> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Status Code Description Response Headers
200 OK -
401 Unauthorized -
- */ - public ApiResponse getAPIResourcesWithHttpInfo() throws ApiException { - okhttp3.Call localVarCall = getAPIResourcesValidateBeforeCall(null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * (asynchronously) - * get available resources - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - - -
Status Code Description Response Headers
200 OK -
401 Unauthorized -
- */ - public okhttp3.Call getAPIResourcesAsync(final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = getAPIResourcesValidateBeforeCall(_callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - /** - * Build call for listNamespacedPodSchedulingContext - * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) - * @param allowWatchBookmarks 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. (optional) - * @param _continue 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) - * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) - * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) - * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) - * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) - * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) - * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - -
Status Code Description Response Headers
200 OK -
401 Unauthorized -
- */ - public okhttp3.Call listNamespacedPodSchedulingContextCall(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = "/apis/resource.k8s.io/v1alpha2/namespaces/{namespace}/podschedulingcontexts" - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); - } - - if (allowWatchBookmarks != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("allowWatchBookmarks", allowWatchBookmarks)); - } - - if (_continue != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); - } - - if (fieldSelector != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); - } - - if (labelSelector != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); - } - - if (limit != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); - } - - if (resourceVersion != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); - } - - if (resourceVersionMatch != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersionMatch", resourceVersionMatch)); - } - - if (sendInitialEvents != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("sendInitialEvents", sendInitialEvents)); - } - - if (timeoutSeconds != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); - } - - if (watch != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); - } - - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); - - String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call listNamespacedPodSchedulingContextValidateBeforeCall(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { - - // verify the required parameter 'namespace' is set - if (namespace == null) { - throw new ApiException("Missing the required parameter 'namespace' when calling listNamespacedPodSchedulingContext(Async)"); - } - - - okhttp3.Call localVarCall = listNamespacedPodSchedulingContextCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); - return localVarCall; - - } - - /** - * - * list or watch objects of kind PodSchedulingContext - * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) - * @param allowWatchBookmarks 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. (optional) - * @param _continue 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) - * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) - * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) - * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) - * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) - * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) - * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @return V1alpha2PodSchedulingContextList - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Status Code Description Response Headers
200 OK -
401 Unauthorized -
- */ - public V1alpha2PodSchedulingContextList listNamespacedPodSchedulingContext(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch) throws ApiException { - ApiResponse localVarResp = listNamespacedPodSchedulingContextWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); - return localVarResp.getData(); - } - - /** - * - * list or watch objects of kind PodSchedulingContext - * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) - * @param allowWatchBookmarks 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. (optional) - * @param _continue 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) - * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) - * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) - * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) - * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) - * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) - * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @return ApiResponse<V1alpha2PodSchedulingContextList> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Status Code Description Response Headers
200 OK -
401 Unauthorized -
- */ - public ApiResponse listNamespacedPodSchedulingContextWithHttpInfo(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch) throws ApiException { - okhttp3.Call localVarCall = listNamespacedPodSchedulingContextValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * (asynchronously) - * list or watch objects of kind PodSchedulingContext - * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) - * @param allowWatchBookmarks 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. (optional) - * @param _continue 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) - * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) - * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) - * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) - * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) - * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) - * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - - -
Status Code Description Response Headers
200 OK -
401 Unauthorized -
- */ - public okhttp3.Call listNamespacedPodSchedulingContextAsync(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = listNamespacedPodSchedulingContextValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - /** - * Build call for listNamespacedResourceClaim - * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) - * @param allowWatchBookmarks 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. (optional) - * @param _continue 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) - * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) - * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) - * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) - * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) - * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) - * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - -
Status Code Description Response Headers
200 OK -
401 Unauthorized -
- */ - public okhttp3.Call listNamespacedResourceClaimCall(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = "/apis/resource.k8s.io/v1alpha2/namespaces/{namespace}/resourceclaims" - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); - } - - if (allowWatchBookmarks != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("allowWatchBookmarks", allowWatchBookmarks)); - } - - if (_continue != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); - } - - if (fieldSelector != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); - } - - if (labelSelector != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); - } - - if (limit != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); - } - - if (resourceVersion != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); - } - - if (resourceVersionMatch != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersionMatch", resourceVersionMatch)); - } - - if (sendInitialEvents != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("sendInitialEvents", sendInitialEvents)); - } - - if (timeoutSeconds != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); - } - - if (watch != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); - } - - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); - - String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call listNamespacedResourceClaimValidateBeforeCall(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { - - // verify the required parameter 'namespace' is set - if (namespace == null) { - throw new ApiException("Missing the required parameter 'namespace' when calling listNamespacedResourceClaim(Async)"); - } - - - okhttp3.Call localVarCall = listNamespacedResourceClaimCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); - return localVarCall; - - } - - /** - * - * list or watch objects of kind ResourceClaim - * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) - * @param allowWatchBookmarks 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. (optional) - * @param _continue 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) - * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) - * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) - * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) - * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) - * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) - * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @return V1alpha2ResourceClaimList - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Status Code Description Response Headers
200 OK -
401 Unauthorized -
- */ - public V1alpha2ResourceClaimList listNamespacedResourceClaim(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch) throws ApiException { - ApiResponse localVarResp = listNamespacedResourceClaimWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); - return localVarResp.getData(); - } - - /** - * - * list or watch objects of kind ResourceClaim - * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) - * @param allowWatchBookmarks 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. (optional) - * @param _continue 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) - * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) - * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) - * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) - * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) - * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) - * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @return ApiResponse<V1alpha2ResourceClaimList> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Status Code Description Response Headers
200 OK -
401 Unauthorized -
- */ - public ApiResponse listNamespacedResourceClaimWithHttpInfo(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch) throws ApiException { - okhttp3.Call localVarCall = listNamespacedResourceClaimValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * (asynchronously) - * list or watch objects of kind ResourceClaim - * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) - * @param allowWatchBookmarks 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. (optional) - * @param _continue 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) - * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) - * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) - * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) - * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) - * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) - * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - - -
Status Code Description Response Headers
200 OK -
401 Unauthorized -
- */ - public okhttp3.Call listNamespacedResourceClaimAsync(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = listNamespacedResourceClaimValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - /** - * Build call for listNamespacedResourceClaimTemplate - * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) - * @param allowWatchBookmarks 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. (optional) - * @param _continue 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) - * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) - * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) - * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) - * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) - * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) - * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - -
Status Code Description Response Headers
200 OK -
401 Unauthorized -
- */ - public okhttp3.Call listNamespacedResourceClaimTemplateCall(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = "/apis/resource.k8s.io/v1alpha2/namespaces/{namespace}/resourceclaimtemplates" - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); - } - - if (allowWatchBookmarks != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("allowWatchBookmarks", allowWatchBookmarks)); - } - - if (_continue != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); - } - - if (fieldSelector != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); - } - - if (labelSelector != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); - } - - if (limit != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); - } - - if (resourceVersion != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); - } - - if (resourceVersionMatch != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersionMatch", resourceVersionMatch)); - } - - if (sendInitialEvents != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("sendInitialEvents", sendInitialEvents)); - } - - if (timeoutSeconds != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); - } - - if (watch != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); - } - - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); - - String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call listNamespacedResourceClaimTemplateValidateBeforeCall(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { - - // verify the required parameter 'namespace' is set - if (namespace == null) { - throw new ApiException("Missing the required parameter 'namespace' when calling listNamespacedResourceClaimTemplate(Async)"); - } - - - okhttp3.Call localVarCall = listNamespacedResourceClaimTemplateCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); - return localVarCall; - - } - - /** - * - * list or watch objects of kind ResourceClaimTemplate - * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) - * @param allowWatchBookmarks 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. (optional) - * @param _continue 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) - * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) - * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) - * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) - * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) - * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) - * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @return V1alpha2ResourceClaimTemplateList - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Status Code Description Response Headers
200 OK -
401 Unauthorized -
- */ - public V1alpha2ResourceClaimTemplateList listNamespacedResourceClaimTemplate(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch) throws ApiException { - ApiResponse localVarResp = listNamespacedResourceClaimTemplateWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); - return localVarResp.getData(); - } - - /** - * - * list or watch objects of kind ResourceClaimTemplate - * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) - * @param allowWatchBookmarks 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. (optional) - * @param _continue 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) - * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) - * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) - * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) - * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) - * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) - * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @return ApiResponse<V1alpha2ResourceClaimTemplateList> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Status Code Description Response Headers
200 OK -
401 Unauthorized -
- */ - public ApiResponse listNamespacedResourceClaimTemplateWithHttpInfo(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch) throws ApiException { - okhttp3.Call localVarCall = listNamespacedResourceClaimTemplateValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * (asynchronously) - * list or watch objects of kind ResourceClaimTemplate - * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) - * @param allowWatchBookmarks 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. (optional) - * @param _continue 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) - * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) - * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) - * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) - * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) - * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) - * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - - -
Status Code Description Response Headers
200 OK -
401 Unauthorized -
- */ - public okhttp3.Call listNamespacedResourceClaimTemplateAsync(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = listNamespacedResourceClaimTemplateValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - /** - * Build call for listPodSchedulingContextForAllNamespaces - * @param allowWatchBookmarks 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. (optional) - * @param _continue 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) - * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) - * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) - * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) - * @param pretty If 'true', then the output is pretty printed. (optional) - * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) - * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) - * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - -
Status Code Description Response Headers
200 OK -
401 Unauthorized -
- */ - public okhttp3.Call listPodSchedulingContextForAllNamespacesCall(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = "/apis/resource.k8s.io/v1alpha2/podschedulingcontexts"; - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - if (allowWatchBookmarks != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("allowWatchBookmarks", allowWatchBookmarks)); - } - - if (_continue != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); - } - - if (fieldSelector != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); - } - - if (labelSelector != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); - } - - if (limit != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); - } - - if (pretty != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); - } - - if (resourceVersion != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); - } - - if (resourceVersionMatch != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersionMatch", resourceVersionMatch)); - } - - if (sendInitialEvents != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("sendInitialEvents", sendInitialEvents)); - } - - if (timeoutSeconds != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); - } - - if (watch != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); - } - - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); - - String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call listPodSchedulingContextForAllNamespacesValidateBeforeCall(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { - - - okhttp3.Call localVarCall = listPodSchedulingContextForAllNamespacesCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); - return localVarCall; - - } - - /** - * - * list or watch objects of kind PodSchedulingContext - * @param allowWatchBookmarks 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. (optional) - * @param _continue 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) - * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) - * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) - * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) - * @param pretty If 'true', then the output is pretty printed. (optional) - * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) - * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) - * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @return V1alpha2PodSchedulingContextList - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Status Code Description Response Headers
200 OK -
401 Unauthorized -
- */ - public V1alpha2PodSchedulingContextList listPodSchedulingContextForAllNamespaces(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch) throws ApiException { - ApiResponse localVarResp = listPodSchedulingContextForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); - return localVarResp.getData(); - } - - /** - * - * list or watch objects of kind PodSchedulingContext - * @param allowWatchBookmarks 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. (optional) - * @param _continue 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) - * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) - * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) - * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) - * @param pretty If 'true', then the output is pretty printed. (optional) - * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) - * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) - * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @return ApiResponse<V1alpha2PodSchedulingContextList> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Status Code Description Response Headers
200 OK -
401 Unauthorized -
- */ - public ApiResponse listPodSchedulingContextForAllNamespacesWithHttpInfo(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch) throws ApiException { - okhttp3.Call localVarCall = listPodSchedulingContextForAllNamespacesValidateBeforeCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * (asynchronously) - * list or watch objects of kind PodSchedulingContext - * @param allowWatchBookmarks 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. (optional) - * @param _continue 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) - * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) - * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) - * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) - * @param pretty If 'true', then the output is pretty printed. (optional) - * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) - * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) - * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - - -
Status Code Description Response Headers
200 OK -
401 Unauthorized -
- */ - public okhttp3.Call listPodSchedulingContextForAllNamespacesAsync(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = listPodSchedulingContextForAllNamespacesValidateBeforeCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - /** - * Build call for listResourceClaimForAllNamespaces - * @param allowWatchBookmarks 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. (optional) - * @param _continue 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) - * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) - * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) - * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) - * @param pretty If 'true', then the output is pretty printed. (optional) - * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) - * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) - * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - -
Status Code Description Response Headers
200 OK -
401 Unauthorized -
- */ - public okhttp3.Call listResourceClaimForAllNamespacesCall(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = "/apis/resource.k8s.io/v1alpha2/resourceclaims"; - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - if (allowWatchBookmarks != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("allowWatchBookmarks", allowWatchBookmarks)); - } - - if (_continue != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); - } - - if (fieldSelector != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); - } - - if (labelSelector != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); - } - - if (limit != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); - } - - if (pretty != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); - } - - if (resourceVersion != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); - } - - if (resourceVersionMatch != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersionMatch", resourceVersionMatch)); - } - - if (sendInitialEvents != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("sendInitialEvents", sendInitialEvents)); - } - - if (timeoutSeconds != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); - } - - if (watch != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); - } - - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); - - String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call listResourceClaimForAllNamespacesValidateBeforeCall(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { - - - okhttp3.Call localVarCall = listResourceClaimForAllNamespacesCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); - return localVarCall; - - } - - /** - * - * list or watch objects of kind ResourceClaim - * @param allowWatchBookmarks 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. (optional) - * @param _continue 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) - * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) - * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) - * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) - * @param pretty If 'true', then the output is pretty printed. (optional) - * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) - * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) - * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @return V1alpha2ResourceClaimList - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Status Code Description Response Headers
200 OK -
401 Unauthorized -
- */ - public V1alpha2ResourceClaimList listResourceClaimForAllNamespaces(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch) throws ApiException { - ApiResponse localVarResp = listResourceClaimForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); - return localVarResp.getData(); - } - - /** - * - * list or watch objects of kind ResourceClaim - * @param allowWatchBookmarks 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. (optional) - * @param _continue 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) - * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) - * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) - * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) - * @param pretty If 'true', then the output is pretty printed. (optional) - * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) - * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) - * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @return ApiResponse<V1alpha2ResourceClaimList> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Status Code Description Response Headers
200 OK -
401 Unauthorized -
- */ - public ApiResponse listResourceClaimForAllNamespacesWithHttpInfo(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch) throws ApiException { - okhttp3.Call localVarCall = listResourceClaimForAllNamespacesValidateBeforeCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * (asynchronously) - * list or watch objects of kind ResourceClaim - * @param allowWatchBookmarks 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. (optional) - * @param _continue 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) - * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) - * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) - * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) - * @param pretty If 'true', then the output is pretty printed. (optional) - * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) - * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) - * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - - -
Status Code Description Response Headers
200 OK -
401 Unauthorized -
- */ - public okhttp3.Call listResourceClaimForAllNamespacesAsync(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = listResourceClaimForAllNamespacesValidateBeforeCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - /** - * Build call for listResourceClaimTemplateForAllNamespaces - * @param allowWatchBookmarks 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. (optional) - * @param _continue 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) - * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) - * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) - * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) - * @param pretty If 'true', then the output is pretty printed. (optional) - * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) - * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) - * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - -
Status Code Description Response Headers
200 OK -
401 Unauthorized -
- */ - public okhttp3.Call listResourceClaimTemplateForAllNamespacesCall(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = "/apis/resource.k8s.io/v1alpha2/resourceclaimtemplates"; - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - if (allowWatchBookmarks != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("allowWatchBookmarks", allowWatchBookmarks)); - } - - if (_continue != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); - } - - if (fieldSelector != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); - } - - if (labelSelector != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); - } - - if (limit != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); - } - - if (pretty != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); - } - - if (resourceVersion != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); - } - - if (resourceVersionMatch != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersionMatch", resourceVersionMatch)); - } - - if (sendInitialEvents != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("sendInitialEvents", sendInitialEvents)); - } - - if (timeoutSeconds != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); - } - - if (watch != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); - } - - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); - - String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call listResourceClaimTemplateForAllNamespacesValidateBeforeCall(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { - - - okhttp3.Call localVarCall = listResourceClaimTemplateForAllNamespacesCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); - return localVarCall; - - } - - /** - * - * list or watch objects of kind ResourceClaimTemplate - * @param allowWatchBookmarks 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. (optional) - * @param _continue 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) - * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) - * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) - * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) - * @param pretty If 'true', then the output is pretty printed. (optional) - * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) - * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) - * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @return V1alpha2ResourceClaimTemplateList - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Status Code Description Response Headers
200 OK -
401 Unauthorized -
- */ - public V1alpha2ResourceClaimTemplateList listResourceClaimTemplateForAllNamespaces(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch) throws ApiException { - ApiResponse localVarResp = listResourceClaimTemplateForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); - return localVarResp.getData(); - } - - /** - * - * list or watch objects of kind ResourceClaimTemplate - * @param allowWatchBookmarks 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. (optional) - * @param _continue 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) - * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) - * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) - * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) - * @param pretty If 'true', then the output is pretty printed. (optional) - * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) - * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) - * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @return ApiResponse<V1alpha2ResourceClaimTemplateList> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Status Code Description Response Headers
200 OK -
401 Unauthorized -
- */ - public ApiResponse listResourceClaimTemplateForAllNamespacesWithHttpInfo(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch) throws ApiException { - okhttp3.Call localVarCall = listResourceClaimTemplateForAllNamespacesValidateBeforeCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * (asynchronously) - * list or watch objects of kind ResourceClaimTemplate - * @param allowWatchBookmarks 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. (optional) - * @param _continue 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) - * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) - * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) - * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) - * @param pretty If 'true', then the output is pretty printed. (optional) - * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) - * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) - * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - - -
Status Code Description Response Headers
200 OK -
401 Unauthorized -
- */ - public okhttp3.Call listResourceClaimTemplateForAllNamespacesAsync(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = listResourceClaimTemplateForAllNamespacesValidateBeforeCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - /** - * Build call for listResourceClass - * @param pretty If 'true', then the output is pretty printed. (optional) - * @param allowWatchBookmarks 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. (optional) - * @param _continue 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) - * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) - * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) - * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) - * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) - * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) - * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - -
Status Code Description Response Headers
200 OK -
401 Unauthorized -
- */ - public okhttp3.Call listResourceClassCall(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = "/apis/resource.k8s.io/v1alpha2/resourceclasses"; - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); - } - - if (allowWatchBookmarks != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("allowWatchBookmarks", allowWatchBookmarks)); - } - - if (_continue != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); - } - - if (fieldSelector != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); - } - - if (labelSelector != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); - } - - if (limit != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); - } - - if (resourceVersion != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); - } - - if (resourceVersionMatch != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersionMatch", resourceVersionMatch)); - } - - if (sendInitialEvents != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("sendInitialEvents", sendInitialEvents)); - } - - if (timeoutSeconds != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); - } - - if (watch != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); - } - - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); - - String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call listResourceClassValidateBeforeCall(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { - - - okhttp3.Call localVarCall = listResourceClassCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); - return localVarCall; - - } - - /** - * - * list or watch objects of kind ResourceClass - * @param pretty If 'true', then the output is pretty printed. (optional) - * @param allowWatchBookmarks 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. (optional) - * @param _continue 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) - * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) - * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) - * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) - * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) - * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) - * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @return V1alpha2ResourceClassList - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Status Code Description Response Headers
200 OK -
401 Unauthorized -
- */ - public V1alpha2ResourceClassList listResourceClass(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch) throws ApiException { - ApiResponse localVarResp = listResourceClassWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); - return localVarResp.getData(); - } - - /** - * - * list or watch objects of kind ResourceClass - * @param pretty If 'true', then the output is pretty printed. (optional) - * @param allowWatchBookmarks 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. (optional) - * @param _continue 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) - * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) - * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) - * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) - * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) - * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) - * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @return ApiResponse<V1alpha2ResourceClassList> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Status Code Description Response Headers
200 OK -
401 Unauthorized -
- */ - public ApiResponse listResourceClassWithHttpInfo(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch) throws ApiException { - okhttp3.Call localVarCall = listResourceClassValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * (asynchronously) - * list or watch objects of kind ResourceClass - * @param pretty If 'true', then the output is pretty printed. (optional) - * @param allowWatchBookmarks 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. (optional) - * @param _continue 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) - * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) - * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) - * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) - * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) - * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) - * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - - -
Status Code Description Response Headers
200 OK -
401 Unauthorized -
- */ - public okhttp3.Call listResourceClassAsync(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = listResourceClassValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - /** - * Build call for patchNamespacedPodSchedulingContext - * @param name name of the PodSchedulingContext (required) - * @param namespace object name and auth scope, such as for teams and projects (required) - * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) - * @param dryRun 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) - * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) - * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - - -
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
- */ - public okhttp3.Call patchNamespacedPodSchedulingContextCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { - Object localVarPostBody = body; - - // create path and map variables - String localVarPath = "/apis/resource.k8s.io/v1alpha2/namespaces/{namespace}/podschedulingcontexts/{name}" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); - } - - if (dryRun != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); - } - - if (fieldManager != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); - } - - if (fieldValidation != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); - } - - if (force != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("force", force)); - } - - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - "application/json" - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); - - String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call patchNamespacedPodSchedulingContextValidateBeforeCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { - - // verify the required parameter 'name' is set - if (name == null) { - throw new ApiException("Missing the required parameter 'name' when calling patchNamespacedPodSchedulingContext(Async)"); - } - - // verify the required parameter 'namespace' is set - if (namespace == null) { - throw new ApiException("Missing the required parameter 'namespace' when calling patchNamespacedPodSchedulingContext(Async)"); - } - - // verify the required parameter 'body' is set - if (body == null) { - throw new ApiException("Missing the required parameter 'body' when calling patchNamespacedPodSchedulingContext(Async)"); - } - - - okhttp3.Call localVarCall = patchNamespacedPodSchedulingContextCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); - return localVarCall; - - } - - /** - * - * partially update the specified PodSchedulingContext - * @param name name of the PodSchedulingContext (required) - * @param namespace object name and auth scope, such as for teams and projects (required) - * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) - * @param dryRun 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) - * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) - * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) - * @return V1alpha2PodSchedulingContext - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - -
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
- */ - public V1alpha2PodSchedulingContext patchNamespacedPodSchedulingContext(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force) throws ApiException { - ApiResponse localVarResp = patchNamespacedPodSchedulingContextWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force); - return localVarResp.getData(); - } - - /** - * - * partially update the specified PodSchedulingContext - * @param name name of the PodSchedulingContext (required) - * @param namespace object name and auth scope, such as for teams and projects (required) - * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) - * @param dryRun 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) - * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) - * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) - * @return ApiResponse<V1alpha2PodSchedulingContext> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - -
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
- */ - public ApiResponse patchNamespacedPodSchedulingContextWithHttpInfo(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force) throws ApiException { - okhttp3.Call localVarCall = patchNamespacedPodSchedulingContextValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * (asynchronously) - * partially update the specified PodSchedulingContext - * @param name name of the PodSchedulingContext (required) - * @param namespace object name and auth scope, such as for teams and projects (required) - * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) - * @param dryRun 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) - * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) - * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - - - -
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
- */ - public okhttp3.Call patchNamespacedPodSchedulingContextAsync(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = patchNamespacedPodSchedulingContextValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - /** - * Build call for patchNamespacedPodSchedulingContextStatus - * @param name name of the PodSchedulingContext (required) - * @param namespace object name and auth scope, such as for teams and projects (required) - * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) - * @param dryRun 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) - * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) - * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - - -
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
- */ - public okhttp3.Call patchNamespacedPodSchedulingContextStatusCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { - Object localVarPostBody = body; - - // create path and map variables - String localVarPath = "/apis/resource.k8s.io/v1alpha2/namespaces/{namespace}/podschedulingcontexts/{name}/status" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); - } - - if (dryRun != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); - } - - if (fieldManager != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); - } - - if (fieldValidation != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); - } - - if (force != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("force", force)); - } - - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - "application/json" - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); - - String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call patchNamespacedPodSchedulingContextStatusValidateBeforeCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { - - // verify the required parameter 'name' is set - if (name == null) { - throw new ApiException("Missing the required parameter 'name' when calling patchNamespacedPodSchedulingContextStatus(Async)"); - } - - // verify the required parameter 'namespace' is set - if (namespace == null) { - throw new ApiException("Missing the required parameter 'namespace' when calling patchNamespacedPodSchedulingContextStatus(Async)"); - } - - // verify the required parameter 'body' is set - if (body == null) { - throw new ApiException("Missing the required parameter 'body' when calling patchNamespacedPodSchedulingContextStatus(Async)"); - } - - - okhttp3.Call localVarCall = patchNamespacedPodSchedulingContextStatusCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); - return localVarCall; - - } - - /** - * - * partially update status of the specified PodSchedulingContext - * @param name name of the PodSchedulingContext (required) - * @param namespace object name and auth scope, such as for teams and projects (required) - * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) - * @param dryRun 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) - * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) - * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) - * @return V1alpha2PodSchedulingContext - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - -
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
- */ - public V1alpha2PodSchedulingContext patchNamespacedPodSchedulingContextStatus(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force) throws ApiException { - ApiResponse localVarResp = patchNamespacedPodSchedulingContextStatusWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force); - return localVarResp.getData(); - } - - /** - * - * partially update status of the specified PodSchedulingContext - * @param name name of the PodSchedulingContext (required) - * @param namespace object name and auth scope, such as for teams and projects (required) - * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) - * @param dryRun 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) - * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) - * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) - * @return ApiResponse<V1alpha2PodSchedulingContext> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - -
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
- */ - public ApiResponse patchNamespacedPodSchedulingContextStatusWithHttpInfo(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force) throws ApiException { - okhttp3.Call localVarCall = patchNamespacedPodSchedulingContextStatusValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * (asynchronously) - * partially update status of the specified PodSchedulingContext - * @param name name of the PodSchedulingContext (required) - * @param namespace object name and auth scope, such as for teams and projects (required) - * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) - * @param dryRun 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) - * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) - * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - - - -
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
- */ - public okhttp3.Call patchNamespacedPodSchedulingContextStatusAsync(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = patchNamespacedPodSchedulingContextStatusValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - /** - * Build call for patchNamespacedResourceClaim - * @param name name of the ResourceClaim (required) - * @param namespace object name and auth scope, such as for teams and projects (required) - * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) - * @param dryRun 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) - * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) - * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - - -
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
- */ - public okhttp3.Call patchNamespacedResourceClaimCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { - Object localVarPostBody = body; - - // create path and map variables - String localVarPath = "/apis/resource.k8s.io/v1alpha2/namespaces/{namespace}/resourceclaims/{name}" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); - } - - if (dryRun != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); - } - - if (fieldManager != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); - } - - if (fieldValidation != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); - } - - if (force != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("force", force)); - } - - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - "application/json" - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); - - String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call patchNamespacedResourceClaimValidateBeforeCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { - - // verify the required parameter 'name' is set - if (name == null) { - throw new ApiException("Missing the required parameter 'name' when calling patchNamespacedResourceClaim(Async)"); - } - - // verify the required parameter 'namespace' is set - if (namespace == null) { - throw new ApiException("Missing the required parameter 'namespace' when calling patchNamespacedResourceClaim(Async)"); - } - - // verify the required parameter 'body' is set - if (body == null) { - throw new ApiException("Missing the required parameter 'body' when calling patchNamespacedResourceClaim(Async)"); - } - - - okhttp3.Call localVarCall = patchNamespacedResourceClaimCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); - return localVarCall; - - } - - /** - * - * partially update the specified ResourceClaim - * @param name name of the ResourceClaim (required) - * @param namespace object name and auth scope, such as for teams and projects (required) - * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) - * @param dryRun 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) - * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) - * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) - * @return V1alpha2ResourceClaim - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - -
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
- */ - public V1alpha2ResourceClaim patchNamespacedResourceClaim(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force) throws ApiException { - ApiResponse localVarResp = patchNamespacedResourceClaimWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force); - return localVarResp.getData(); - } - - /** - * - * partially update the specified ResourceClaim - * @param name name of the ResourceClaim (required) - * @param namespace object name and auth scope, such as for teams and projects (required) - * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) - * @param dryRun 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) - * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) - * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) - * @return ApiResponse<V1alpha2ResourceClaim> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - -
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
- */ - public ApiResponse patchNamespacedResourceClaimWithHttpInfo(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force) throws ApiException { - okhttp3.Call localVarCall = patchNamespacedResourceClaimValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * (asynchronously) - * partially update the specified ResourceClaim - * @param name name of the ResourceClaim (required) - * @param namespace object name and auth scope, such as for teams and projects (required) - * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) - * @param dryRun 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) - * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) - * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - - - -
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
- */ - public okhttp3.Call patchNamespacedResourceClaimAsync(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = patchNamespacedResourceClaimValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - /** - * Build call for patchNamespacedResourceClaimStatus - * @param name name of the ResourceClaim (required) - * @param namespace object name and auth scope, such as for teams and projects (required) - * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) - * @param dryRun 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) - * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) - * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - - -
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
- */ - public okhttp3.Call patchNamespacedResourceClaimStatusCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { - Object localVarPostBody = body; - - // create path and map variables - String localVarPath = "/apis/resource.k8s.io/v1alpha2/namespaces/{namespace}/resourceclaims/{name}/status" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); - } - - if (dryRun != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); - } - - if (fieldManager != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); - } - - if (fieldValidation != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); - } - - if (force != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("force", force)); - } - - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - "application/json" - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); - - String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call patchNamespacedResourceClaimStatusValidateBeforeCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { - - // verify the required parameter 'name' is set - if (name == null) { - throw new ApiException("Missing the required parameter 'name' when calling patchNamespacedResourceClaimStatus(Async)"); - } - - // verify the required parameter 'namespace' is set - if (namespace == null) { - throw new ApiException("Missing the required parameter 'namespace' when calling patchNamespacedResourceClaimStatus(Async)"); - } - - // verify the required parameter 'body' is set - if (body == null) { - throw new ApiException("Missing the required parameter 'body' when calling patchNamespacedResourceClaimStatus(Async)"); - } - - - okhttp3.Call localVarCall = patchNamespacedResourceClaimStatusCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); - return localVarCall; - - } - - /** - * - * partially update status of the specified ResourceClaim - * @param name name of the ResourceClaim (required) - * @param namespace object name and auth scope, such as for teams and projects (required) - * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) - * @param dryRun 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) - * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) - * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) - * @return V1alpha2ResourceClaim - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - -
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
- */ - public V1alpha2ResourceClaim patchNamespacedResourceClaimStatus(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force) throws ApiException { - ApiResponse localVarResp = patchNamespacedResourceClaimStatusWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force); - return localVarResp.getData(); - } - - /** - * - * partially update status of the specified ResourceClaim - * @param name name of the ResourceClaim (required) - * @param namespace object name and auth scope, such as for teams and projects (required) - * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) - * @param dryRun 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) - * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) - * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) - * @return ApiResponse<V1alpha2ResourceClaim> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - -
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
- */ - public ApiResponse patchNamespacedResourceClaimStatusWithHttpInfo(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force) throws ApiException { - okhttp3.Call localVarCall = patchNamespacedResourceClaimStatusValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * (asynchronously) - * partially update status of the specified ResourceClaim - * @param name name of the ResourceClaim (required) - * @param namespace object name and auth scope, such as for teams and projects (required) - * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) - * @param dryRun 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) - * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) - * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - - - -
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
- */ - public okhttp3.Call patchNamespacedResourceClaimStatusAsync(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = patchNamespacedResourceClaimStatusValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - /** - * Build call for patchNamespacedResourceClaimTemplate - * @param name name of the ResourceClaimTemplate (required) - * @param namespace object name and auth scope, such as for teams and projects (required) - * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) - * @param dryRun 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) - * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) - * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - - -
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
- */ - public okhttp3.Call patchNamespacedResourceClaimTemplateCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { - Object localVarPostBody = body; - - // create path and map variables - String localVarPath = "/apis/resource.k8s.io/v1alpha2/namespaces/{namespace}/resourceclaimtemplates/{name}" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); - } - - if (dryRun != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); - } - - if (fieldManager != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); - } - - if (fieldValidation != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); - } - - if (force != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("force", force)); - } - - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - "application/json" - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); - - String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call patchNamespacedResourceClaimTemplateValidateBeforeCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { - - // verify the required parameter 'name' is set - if (name == null) { - throw new ApiException("Missing the required parameter 'name' when calling patchNamespacedResourceClaimTemplate(Async)"); - } - - // verify the required parameter 'namespace' is set - if (namespace == null) { - throw new ApiException("Missing the required parameter 'namespace' when calling patchNamespacedResourceClaimTemplate(Async)"); - } - - // verify the required parameter 'body' is set - if (body == null) { - throw new ApiException("Missing the required parameter 'body' when calling patchNamespacedResourceClaimTemplate(Async)"); - } - - - okhttp3.Call localVarCall = patchNamespacedResourceClaimTemplateCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); - return localVarCall; - - } - - /** - * - * partially update the specified ResourceClaimTemplate - * @param name name of the ResourceClaimTemplate (required) - * @param namespace object name and auth scope, such as for teams and projects (required) - * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) - * @param dryRun 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) - * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) - * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) - * @return V1alpha2ResourceClaimTemplate - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - -
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
- */ - public V1alpha2ResourceClaimTemplate patchNamespacedResourceClaimTemplate(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force) throws ApiException { - ApiResponse localVarResp = patchNamespacedResourceClaimTemplateWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force); - return localVarResp.getData(); - } - - /** - * - * partially update the specified ResourceClaimTemplate - * @param name name of the ResourceClaimTemplate (required) - * @param namespace object name and auth scope, such as for teams and projects (required) - * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) - * @param dryRun 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) - * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) - * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) - * @return ApiResponse<V1alpha2ResourceClaimTemplate> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - -
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
- */ - public ApiResponse patchNamespacedResourceClaimTemplateWithHttpInfo(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force) throws ApiException { - okhttp3.Call localVarCall = patchNamespacedResourceClaimTemplateValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * (asynchronously) - * partially update the specified ResourceClaimTemplate - * @param name name of the ResourceClaimTemplate (required) - * @param namespace object name and auth scope, such as for teams and projects (required) - * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) - * @param dryRun 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) - * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) - * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - - - -
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
- */ - public okhttp3.Call patchNamespacedResourceClaimTemplateAsync(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = patchNamespacedResourceClaimTemplateValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - /** - * Build call for patchResourceClass - * @param name name of the ResourceClass (required) - * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) - * @param dryRun 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) - * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) - * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - - -
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
- */ - public okhttp3.Call patchResourceClassCall(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { - Object localVarPostBody = body; - - // create path and map variables - String localVarPath = "/apis/resource.k8s.io/v1alpha2/resourceclasses/{name}" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); - } - - if (dryRun != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); - } - - if (fieldManager != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); - } - - if (fieldValidation != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); - } - - if (force != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("force", force)); - } - - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - "application/json" - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); - - String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call patchResourceClassValidateBeforeCall(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { - - // verify the required parameter 'name' is set - if (name == null) { - throw new ApiException("Missing the required parameter 'name' when calling patchResourceClass(Async)"); - } - - // verify the required parameter 'body' is set - if (body == null) { - throw new ApiException("Missing the required parameter 'body' when calling patchResourceClass(Async)"); - } - - - okhttp3.Call localVarCall = patchResourceClassCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); - return localVarCall; - - } - - /** - * - * partially update the specified ResourceClass - * @param name name of the ResourceClass (required) - * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) - * @param dryRun 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) - * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) - * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) - * @return V1alpha2ResourceClass - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - -
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
- */ - public V1alpha2ResourceClass patchResourceClass(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force) throws ApiException { - ApiResponse localVarResp = patchResourceClassWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force); - return localVarResp.getData(); - } - - /** - * - * partially update the specified ResourceClass - * @param name name of the ResourceClass (required) - * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) - * @param dryRun 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) - * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) - * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) - * @return ApiResponse<V1alpha2ResourceClass> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - -
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
- */ - public ApiResponse patchResourceClassWithHttpInfo(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force) throws ApiException { - okhttp3.Call localVarCall = patchResourceClassValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * (asynchronously) - * partially update the specified ResourceClass - * @param name name of the ResourceClass (required) - * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) - * @param dryRun 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) - * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) - * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - - - -
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
- */ - public okhttp3.Call patchResourceClassAsync(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = patchResourceClassValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - /** - * Build call for readNamespacedPodSchedulingContext - * @param name name of the PodSchedulingContext (required) - * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - -
Status Code Description Response Headers
200 OK -
401 Unauthorized -
- */ - public okhttp3.Call readNamespacedPodSchedulingContextCall(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = "/apis/resource.k8s.io/v1alpha2/namespaces/{namespace}/podschedulingcontexts/{name}" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); - } - - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); - - String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call readNamespacedPodSchedulingContextValidateBeforeCall(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { - - // verify the required parameter 'name' is set - if (name == null) { - throw new ApiException("Missing the required parameter 'name' when calling readNamespacedPodSchedulingContext(Async)"); - } - - // verify the required parameter 'namespace' is set - if (namespace == null) { - throw new ApiException("Missing the required parameter 'namespace' when calling readNamespacedPodSchedulingContext(Async)"); - } - - - okhttp3.Call localVarCall = readNamespacedPodSchedulingContextCall(name, namespace, pretty, _callback); - return localVarCall; - - } - - /** - * - * read the specified PodSchedulingContext - * @param name name of the PodSchedulingContext (required) - * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) - * @return V1alpha2PodSchedulingContext - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Status Code Description Response Headers
200 OK -
401 Unauthorized -
- */ - public V1alpha2PodSchedulingContext readNamespacedPodSchedulingContext(String name, String namespace, String pretty) throws ApiException { - ApiResponse localVarResp = readNamespacedPodSchedulingContextWithHttpInfo(name, namespace, pretty); - return localVarResp.getData(); - } - - /** - * - * read the specified PodSchedulingContext - * @param name name of the PodSchedulingContext (required) - * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) - * @return ApiResponse<V1alpha2PodSchedulingContext> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Status Code Description Response Headers
200 OK -
401 Unauthorized -
- */ - public ApiResponse readNamespacedPodSchedulingContextWithHttpInfo(String name, String namespace, String pretty) throws ApiException { - okhttp3.Call localVarCall = readNamespacedPodSchedulingContextValidateBeforeCall(name, namespace, pretty, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * (asynchronously) - * read the specified PodSchedulingContext - * @param name name of the PodSchedulingContext (required) - * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - - -
Status Code Description Response Headers
200 OK -
401 Unauthorized -
- */ - public okhttp3.Call readNamespacedPodSchedulingContextAsync(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = readNamespacedPodSchedulingContextValidateBeforeCall(name, namespace, pretty, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - /** - * Build call for readNamespacedPodSchedulingContextStatus - * @param name name of the PodSchedulingContext (required) - * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - -
Status Code Description Response Headers
200 OK -
401 Unauthorized -
- */ - public okhttp3.Call readNamespacedPodSchedulingContextStatusCall(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = "/apis/resource.k8s.io/v1alpha2/namespaces/{namespace}/podschedulingcontexts/{name}/status" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); - } - - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); - - String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call readNamespacedPodSchedulingContextStatusValidateBeforeCall(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { - - // verify the required parameter 'name' is set - if (name == null) { - throw new ApiException("Missing the required parameter 'name' when calling readNamespacedPodSchedulingContextStatus(Async)"); - } - - // verify the required parameter 'namespace' is set - if (namespace == null) { - throw new ApiException("Missing the required parameter 'namespace' when calling readNamespacedPodSchedulingContextStatus(Async)"); - } - - - okhttp3.Call localVarCall = readNamespacedPodSchedulingContextStatusCall(name, namespace, pretty, _callback); - return localVarCall; - - } - - /** - * - * read status of the specified PodSchedulingContext - * @param name name of the PodSchedulingContext (required) - * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) - * @return V1alpha2PodSchedulingContext - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Status Code Description Response Headers
200 OK -
401 Unauthorized -
- */ - public V1alpha2PodSchedulingContext readNamespacedPodSchedulingContextStatus(String name, String namespace, String pretty) throws ApiException { - ApiResponse localVarResp = readNamespacedPodSchedulingContextStatusWithHttpInfo(name, namespace, pretty); - return localVarResp.getData(); - } - - /** - * - * read status of the specified PodSchedulingContext - * @param name name of the PodSchedulingContext (required) - * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) - * @return ApiResponse<V1alpha2PodSchedulingContext> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Status Code Description Response Headers
200 OK -
401 Unauthorized -
- */ - public ApiResponse readNamespacedPodSchedulingContextStatusWithHttpInfo(String name, String namespace, String pretty) throws ApiException { - okhttp3.Call localVarCall = readNamespacedPodSchedulingContextStatusValidateBeforeCall(name, namespace, pretty, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * (asynchronously) - * read status of the specified PodSchedulingContext - * @param name name of the PodSchedulingContext (required) - * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - - -
Status Code Description Response Headers
200 OK -
401 Unauthorized -
- */ - public okhttp3.Call readNamespacedPodSchedulingContextStatusAsync(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = readNamespacedPodSchedulingContextStatusValidateBeforeCall(name, namespace, pretty, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - /** - * Build call for readNamespacedResourceClaim - * @param name name of the ResourceClaim (required) - * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - -
Status Code Description Response Headers
200 OK -
401 Unauthorized -
- */ - public okhttp3.Call readNamespacedResourceClaimCall(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = "/apis/resource.k8s.io/v1alpha2/namespaces/{namespace}/resourceclaims/{name}" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); - } - - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); - - String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call readNamespacedResourceClaimValidateBeforeCall(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { - - // verify the required parameter 'name' is set - if (name == null) { - throw new ApiException("Missing the required parameter 'name' when calling readNamespacedResourceClaim(Async)"); - } - - // verify the required parameter 'namespace' is set - if (namespace == null) { - throw new ApiException("Missing the required parameter 'namespace' when calling readNamespacedResourceClaim(Async)"); - } - - - okhttp3.Call localVarCall = readNamespacedResourceClaimCall(name, namespace, pretty, _callback); - return localVarCall; - - } - - /** - * - * read the specified ResourceClaim - * @param name name of the ResourceClaim (required) - * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) - * @return V1alpha2ResourceClaim - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Status Code Description Response Headers
200 OK -
401 Unauthorized -
- */ - public V1alpha2ResourceClaim readNamespacedResourceClaim(String name, String namespace, String pretty) throws ApiException { - ApiResponse localVarResp = readNamespacedResourceClaimWithHttpInfo(name, namespace, pretty); - return localVarResp.getData(); - } - - /** - * - * read the specified ResourceClaim - * @param name name of the ResourceClaim (required) - * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) - * @return ApiResponse<V1alpha2ResourceClaim> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Status Code Description Response Headers
200 OK -
401 Unauthorized -
- */ - public ApiResponse readNamespacedResourceClaimWithHttpInfo(String name, String namespace, String pretty) throws ApiException { - okhttp3.Call localVarCall = readNamespacedResourceClaimValidateBeforeCall(name, namespace, pretty, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * (asynchronously) - * read the specified ResourceClaim - * @param name name of the ResourceClaim (required) - * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - - -
Status Code Description Response Headers
200 OK -
401 Unauthorized -
- */ - public okhttp3.Call readNamespacedResourceClaimAsync(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = readNamespacedResourceClaimValidateBeforeCall(name, namespace, pretty, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - /** - * Build call for readNamespacedResourceClaimStatus - * @param name name of the ResourceClaim (required) - * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - -
Status Code Description Response Headers
200 OK -
401 Unauthorized -
- */ - public okhttp3.Call readNamespacedResourceClaimStatusCall(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = "/apis/resource.k8s.io/v1alpha2/namespaces/{namespace}/resourceclaims/{name}/status" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); - } - - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); - - String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call readNamespacedResourceClaimStatusValidateBeforeCall(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { - - // verify the required parameter 'name' is set - if (name == null) { - throw new ApiException("Missing the required parameter 'name' when calling readNamespacedResourceClaimStatus(Async)"); - } - - // verify the required parameter 'namespace' is set - if (namespace == null) { - throw new ApiException("Missing the required parameter 'namespace' when calling readNamespacedResourceClaimStatus(Async)"); - } - - - okhttp3.Call localVarCall = readNamespacedResourceClaimStatusCall(name, namespace, pretty, _callback); - return localVarCall; - - } - - /** - * - * read status of the specified ResourceClaim - * @param name name of the ResourceClaim (required) - * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) - * @return V1alpha2ResourceClaim - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Status Code Description Response Headers
200 OK -
401 Unauthorized -
- */ - public V1alpha2ResourceClaim readNamespacedResourceClaimStatus(String name, String namespace, String pretty) throws ApiException { - ApiResponse localVarResp = readNamespacedResourceClaimStatusWithHttpInfo(name, namespace, pretty); - return localVarResp.getData(); - } - - /** - * - * read status of the specified ResourceClaim - * @param name name of the ResourceClaim (required) - * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) - * @return ApiResponse<V1alpha2ResourceClaim> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Status Code Description Response Headers
200 OK -
401 Unauthorized -
- */ - public ApiResponse readNamespacedResourceClaimStatusWithHttpInfo(String name, String namespace, String pretty) throws ApiException { - okhttp3.Call localVarCall = readNamespacedResourceClaimStatusValidateBeforeCall(name, namespace, pretty, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * (asynchronously) - * read status of the specified ResourceClaim - * @param name name of the ResourceClaim (required) - * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - - -
Status Code Description Response Headers
200 OK -
401 Unauthorized -
- */ - public okhttp3.Call readNamespacedResourceClaimStatusAsync(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = readNamespacedResourceClaimStatusValidateBeforeCall(name, namespace, pretty, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - /** - * Build call for readNamespacedResourceClaimTemplate - * @param name name of the ResourceClaimTemplate (required) - * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - -
Status Code Description Response Headers
200 OK -
401 Unauthorized -
- */ - public okhttp3.Call readNamespacedResourceClaimTemplateCall(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = "/apis/resource.k8s.io/v1alpha2/namespaces/{namespace}/resourceclaimtemplates/{name}" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); - } - - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); - - String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call readNamespacedResourceClaimTemplateValidateBeforeCall(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { - - // verify the required parameter 'name' is set - if (name == null) { - throw new ApiException("Missing the required parameter 'name' when calling readNamespacedResourceClaimTemplate(Async)"); - } - - // verify the required parameter 'namespace' is set - if (namespace == null) { - throw new ApiException("Missing the required parameter 'namespace' when calling readNamespacedResourceClaimTemplate(Async)"); - } - - - okhttp3.Call localVarCall = readNamespacedResourceClaimTemplateCall(name, namespace, pretty, _callback); - return localVarCall; - - } - - /** - * - * read the specified ResourceClaimTemplate - * @param name name of the ResourceClaimTemplate (required) - * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) - * @return V1alpha2ResourceClaimTemplate - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Status Code Description Response Headers
200 OK -
401 Unauthorized -
- */ - public V1alpha2ResourceClaimTemplate readNamespacedResourceClaimTemplate(String name, String namespace, String pretty) throws ApiException { - ApiResponse localVarResp = readNamespacedResourceClaimTemplateWithHttpInfo(name, namespace, pretty); - return localVarResp.getData(); - } - - /** - * - * read the specified ResourceClaimTemplate - * @param name name of the ResourceClaimTemplate (required) - * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) - * @return ApiResponse<V1alpha2ResourceClaimTemplate> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Status Code Description Response Headers
200 OK -
401 Unauthorized -
- */ - public ApiResponse readNamespacedResourceClaimTemplateWithHttpInfo(String name, String namespace, String pretty) throws ApiException { - okhttp3.Call localVarCall = readNamespacedResourceClaimTemplateValidateBeforeCall(name, namespace, pretty, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * (asynchronously) - * read the specified ResourceClaimTemplate - * @param name name of the ResourceClaimTemplate (required) - * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - - -
Status Code Description Response Headers
200 OK -
401 Unauthorized -
- */ - public okhttp3.Call readNamespacedResourceClaimTemplateAsync(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = readNamespacedResourceClaimTemplateValidateBeforeCall(name, namespace, pretty, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - /** - * Build call for readResourceClass - * @param name name of the ResourceClass (required) - * @param pretty If 'true', then the output is pretty printed. (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - -
Status Code Description Response Headers
200 OK -
401 Unauthorized -
- */ - public okhttp3.Call readResourceClassCall(String name, String pretty, final ApiCallback _callback) throws ApiException { - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = "/apis/resource.k8s.io/v1alpha2/resourceclasses/{name}" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); - } - - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); - - String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call readResourceClassValidateBeforeCall(String name, String pretty, final ApiCallback _callback) throws ApiException { - - // verify the required parameter 'name' is set - if (name == null) { - throw new ApiException("Missing the required parameter 'name' when calling readResourceClass(Async)"); - } - - - okhttp3.Call localVarCall = readResourceClassCall(name, pretty, _callback); - return localVarCall; - - } - - /** - * - * read the specified ResourceClass - * @param name name of the ResourceClass (required) - * @param pretty If 'true', then the output is pretty printed. (optional) - * @return V1alpha2ResourceClass - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Status Code Description Response Headers
200 OK -
401 Unauthorized -
- */ - public V1alpha2ResourceClass readResourceClass(String name, String pretty) throws ApiException { - ApiResponse localVarResp = readResourceClassWithHttpInfo(name, pretty); - return localVarResp.getData(); - } - - /** - * - * read the specified ResourceClass - * @param name name of the ResourceClass (required) - * @param pretty If 'true', then the output is pretty printed. (optional) - * @return ApiResponse<V1alpha2ResourceClass> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Status Code Description Response Headers
200 OK -
401 Unauthorized -
- */ - public ApiResponse readResourceClassWithHttpInfo(String name, String pretty) throws ApiException { - okhttp3.Call localVarCall = readResourceClassValidateBeforeCall(name, pretty, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * (asynchronously) - * read the specified ResourceClass - * @param name name of the ResourceClass (required) - * @param pretty If 'true', then the output is pretty printed. (optional) - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - - -
Status Code Description Response Headers
200 OK -
401 Unauthorized -
- */ - public okhttp3.Call readResourceClassAsync(String name, String pretty, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = readResourceClassValidateBeforeCall(name, pretty, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - /** - * Build call for replaceNamespacedPodSchedulingContext - * @param name name of the PodSchedulingContext (required) - * @param namespace object name and auth scope, such as for teams and projects (required) - * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) - * @param dryRun 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) - * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - - -
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
- */ - public okhttp3.Call replaceNamespacedPodSchedulingContextCall(String name, String namespace, V1alpha2PodSchedulingContext body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { - Object localVarPostBody = body; - - // create path and map variables - String localVarPath = "/apis/resource.k8s.io/v1alpha2/namespaces/{namespace}/podschedulingcontexts/{name}" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); - } - - if (dryRun != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); - } - - if (fieldManager != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); - } - - if (fieldValidation != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); - } - - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - "application/json" - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); - - String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call replaceNamespacedPodSchedulingContextValidateBeforeCall(String name, String namespace, V1alpha2PodSchedulingContext body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { - - // verify the required parameter 'name' is set - if (name == null) { - throw new ApiException("Missing the required parameter 'name' when calling replaceNamespacedPodSchedulingContext(Async)"); - } - - // verify the required parameter 'namespace' is set - if (namespace == null) { - throw new ApiException("Missing the required parameter 'namespace' when calling replaceNamespacedPodSchedulingContext(Async)"); - } - - // verify the required parameter 'body' is set - if (body == null) { - throw new ApiException("Missing the required parameter 'body' when calling replaceNamespacedPodSchedulingContext(Async)"); - } - - - okhttp3.Call localVarCall = replaceNamespacedPodSchedulingContextCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); - return localVarCall; - - } - - /** - * - * replace the specified PodSchedulingContext - * @param name name of the PodSchedulingContext (required) - * @param namespace object name and auth scope, such as for teams and projects (required) - * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) - * @param dryRun 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) - * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - * @return V1alpha2PodSchedulingContext - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - -
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
- */ - public V1alpha2PodSchedulingContext replaceNamespacedPodSchedulingContext(String name, String namespace, V1alpha2PodSchedulingContext body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { - ApiResponse localVarResp = replaceNamespacedPodSchedulingContextWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation); - return localVarResp.getData(); - } - - /** - * - * replace the specified PodSchedulingContext - * @param name name of the PodSchedulingContext (required) - * @param namespace object name and auth scope, such as for teams and projects (required) - * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) - * @param dryRun 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) - * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - * @return ApiResponse<V1alpha2PodSchedulingContext> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - -
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
- */ - public ApiResponse replaceNamespacedPodSchedulingContextWithHttpInfo(String name, String namespace, V1alpha2PodSchedulingContext body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { - okhttp3.Call localVarCall = replaceNamespacedPodSchedulingContextValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * (asynchronously) - * replace the specified PodSchedulingContext - * @param name name of the PodSchedulingContext (required) - * @param namespace object name and auth scope, such as for teams and projects (required) - * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) - * @param dryRun 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) - * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - - - -
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
- */ - public okhttp3.Call replaceNamespacedPodSchedulingContextAsync(String name, String namespace, V1alpha2PodSchedulingContext body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = replaceNamespacedPodSchedulingContextValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - /** - * Build call for replaceNamespacedPodSchedulingContextStatus - * @param name name of the PodSchedulingContext (required) - * @param namespace object name and auth scope, such as for teams and projects (required) - * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) - * @param dryRun 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) - * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - - -
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
- */ - public okhttp3.Call replaceNamespacedPodSchedulingContextStatusCall(String name, String namespace, V1alpha2PodSchedulingContext body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { - Object localVarPostBody = body; - - // create path and map variables - String localVarPath = "/apis/resource.k8s.io/v1alpha2/namespaces/{namespace}/podschedulingcontexts/{name}/status" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); - } - - if (dryRun != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); - } - - if (fieldManager != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); - } - - if (fieldValidation != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); - } - - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - "application/json" - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); - - String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call replaceNamespacedPodSchedulingContextStatusValidateBeforeCall(String name, String namespace, V1alpha2PodSchedulingContext body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { - - // verify the required parameter 'name' is set - if (name == null) { - throw new ApiException("Missing the required parameter 'name' when calling replaceNamespacedPodSchedulingContextStatus(Async)"); - } - - // verify the required parameter 'namespace' is set - if (namespace == null) { - throw new ApiException("Missing the required parameter 'namespace' when calling replaceNamespacedPodSchedulingContextStatus(Async)"); - } - - // verify the required parameter 'body' is set - if (body == null) { - throw new ApiException("Missing the required parameter 'body' when calling replaceNamespacedPodSchedulingContextStatus(Async)"); - } - - - okhttp3.Call localVarCall = replaceNamespacedPodSchedulingContextStatusCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); - return localVarCall; - - } - - /** - * - * replace status of the specified PodSchedulingContext - * @param name name of the PodSchedulingContext (required) - * @param namespace object name and auth scope, such as for teams and projects (required) - * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) - * @param dryRun 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) - * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - * @return V1alpha2PodSchedulingContext - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - -
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
- */ - public V1alpha2PodSchedulingContext replaceNamespacedPodSchedulingContextStatus(String name, String namespace, V1alpha2PodSchedulingContext body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { - ApiResponse localVarResp = replaceNamespacedPodSchedulingContextStatusWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation); - return localVarResp.getData(); - } - - /** - * - * replace status of the specified PodSchedulingContext - * @param name name of the PodSchedulingContext (required) - * @param namespace object name and auth scope, such as for teams and projects (required) - * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) - * @param dryRun 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) - * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - * @return ApiResponse<V1alpha2PodSchedulingContext> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - -
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
- */ - public ApiResponse replaceNamespacedPodSchedulingContextStatusWithHttpInfo(String name, String namespace, V1alpha2PodSchedulingContext body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { - okhttp3.Call localVarCall = replaceNamespacedPodSchedulingContextStatusValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * (asynchronously) - * replace status of the specified PodSchedulingContext - * @param name name of the PodSchedulingContext (required) - * @param namespace object name and auth scope, such as for teams and projects (required) - * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) - * @param dryRun 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) - * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - - - -
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
- */ - public okhttp3.Call replaceNamespacedPodSchedulingContextStatusAsync(String name, String namespace, V1alpha2PodSchedulingContext body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = replaceNamespacedPodSchedulingContextStatusValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - /** - * Build call for replaceNamespacedResourceClaim - * @param name name of the ResourceClaim (required) - * @param namespace object name and auth scope, such as for teams and projects (required) - * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) - * @param dryRun 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) - * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - - -
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
- */ - public okhttp3.Call replaceNamespacedResourceClaimCall(String name, String namespace, V1alpha2ResourceClaim body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { - Object localVarPostBody = body; - - // create path and map variables - String localVarPath = "/apis/resource.k8s.io/v1alpha2/namespaces/{namespace}/resourceclaims/{name}" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); - } - - if (dryRun != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); - } - - if (fieldManager != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); - } - - if (fieldValidation != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); - } - - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - "application/json" - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); - - String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call replaceNamespacedResourceClaimValidateBeforeCall(String name, String namespace, V1alpha2ResourceClaim body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { - - // verify the required parameter 'name' is set - if (name == null) { - throw new ApiException("Missing the required parameter 'name' when calling replaceNamespacedResourceClaim(Async)"); - } - - // verify the required parameter 'namespace' is set - if (namespace == null) { - throw new ApiException("Missing the required parameter 'namespace' when calling replaceNamespacedResourceClaim(Async)"); - } - - // verify the required parameter 'body' is set - if (body == null) { - throw new ApiException("Missing the required parameter 'body' when calling replaceNamespacedResourceClaim(Async)"); - } - - - okhttp3.Call localVarCall = replaceNamespacedResourceClaimCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); - return localVarCall; - - } - - /** - * - * replace the specified ResourceClaim - * @param name name of the ResourceClaim (required) - * @param namespace object name and auth scope, such as for teams and projects (required) - * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) - * @param dryRun 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) - * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - * @return V1alpha2ResourceClaim - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - -
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
- */ - public V1alpha2ResourceClaim replaceNamespacedResourceClaim(String name, String namespace, V1alpha2ResourceClaim body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { - ApiResponse localVarResp = replaceNamespacedResourceClaimWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation); - return localVarResp.getData(); - } - - /** - * - * replace the specified ResourceClaim - * @param name name of the ResourceClaim (required) - * @param namespace object name and auth scope, such as for teams and projects (required) - * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) - * @param dryRun 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) - * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - * @return ApiResponse<V1alpha2ResourceClaim> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - -
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
- */ - public ApiResponse replaceNamespacedResourceClaimWithHttpInfo(String name, String namespace, V1alpha2ResourceClaim body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { - okhttp3.Call localVarCall = replaceNamespacedResourceClaimValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * (asynchronously) - * replace the specified ResourceClaim - * @param name name of the ResourceClaim (required) - * @param namespace object name and auth scope, such as for teams and projects (required) - * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) - * @param dryRun 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) - * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - - - -
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
- */ - public okhttp3.Call replaceNamespacedResourceClaimAsync(String name, String namespace, V1alpha2ResourceClaim body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = replaceNamespacedResourceClaimValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - /** - * Build call for replaceNamespacedResourceClaimStatus - * @param name name of the ResourceClaim (required) - * @param namespace object name and auth scope, such as for teams and projects (required) - * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) - * @param dryRun 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) - * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - - -
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
- */ - public okhttp3.Call replaceNamespacedResourceClaimStatusCall(String name, String namespace, V1alpha2ResourceClaim body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { - Object localVarPostBody = body; - - // create path and map variables - String localVarPath = "/apis/resource.k8s.io/v1alpha2/namespaces/{namespace}/resourceclaims/{name}/status" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); - } - - if (dryRun != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); - } - - if (fieldManager != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); - } - - if (fieldValidation != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); - } - - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - "application/json" - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); - - String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call replaceNamespacedResourceClaimStatusValidateBeforeCall(String name, String namespace, V1alpha2ResourceClaim body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { - - // verify the required parameter 'name' is set - if (name == null) { - throw new ApiException("Missing the required parameter 'name' when calling replaceNamespacedResourceClaimStatus(Async)"); - } - - // verify the required parameter 'namespace' is set - if (namespace == null) { - throw new ApiException("Missing the required parameter 'namespace' when calling replaceNamespacedResourceClaimStatus(Async)"); - } - - // verify the required parameter 'body' is set - if (body == null) { - throw new ApiException("Missing the required parameter 'body' when calling replaceNamespacedResourceClaimStatus(Async)"); - } - - - okhttp3.Call localVarCall = replaceNamespacedResourceClaimStatusCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); - return localVarCall; - - } - - /** - * - * replace status of the specified ResourceClaim - * @param name name of the ResourceClaim (required) - * @param namespace object name and auth scope, such as for teams and projects (required) - * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) - * @param dryRun 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) - * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - * @return V1alpha2ResourceClaim - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - -
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
- */ - public V1alpha2ResourceClaim replaceNamespacedResourceClaimStatus(String name, String namespace, V1alpha2ResourceClaim body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { - ApiResponse localVarResp = replaceNamespacedResourceClaimStatusWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation); - return localVarResp.getData(); - } - - /** - * - * replace status of the specified ResourceClaim - * @param name name of the ResourceClaim (required) - * @param namespace object name and auth scope, such as for teams and projects (required) - * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) - * @param dryRun 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) - * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - * @return ApiResponse<V1alpha2ResourceClaim> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - -
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
- */ - public ApiResponse replaceNamespacedResourceClaimStatusWithHttpInfo(String name, String namespace, V1alpha2ResourceClaim body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { - okhttp3.Call localVarCall = replaceNamespacedResourceClaimStatusValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * (asynchronously) - * replace status of the specified ResourceClaim - * @param name name of the ResourceClaim (required) - * @param namespace object name and auth scope, such as for teams and projects (required) - * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) - * @param dryRun 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) - * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - - - -
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
- */ - public okhttp3.Call replaceNamespacedResourceClaimStatusAsync(String name, String namespace, V1alpha2ResourceClaim body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = replaceNamespacedResourceClaimStatusValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - /** - * Build call for replaceNamespacedResourceClaimTemplate - * @param name name of the ResourceClaimTemplate (required) - * @param namespace object name and auth scope, such as for teams and projects (required) - * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) - * @param dryRun 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) - * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - - -
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
- */ - public okhttp3.Call replaceNamespacedResourceClaimTemplateCall(String name, String namespace, V1alpha2ResourceClaimTemplate body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { - Object localVarPostBody = body; - - // create path and map variables - String localVarPath = "/apis/resource.k8s.io/v1alpha2/namespaces/{namespace}/resourceclaimtemplates/{name}" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); - } - - if (dryRun != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); - } - - if (fieldManager != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); - } - - if (fieldValidation != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); - } - - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - "application/json" - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); - - String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call replaceNamespacedResourceClaimTemplateValidateBeforeCall(String name, String namespace, V1alpha2ResourceClaimTemplate body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { - - // verify the required parameter 'name' is set - if (name == null) { - throw new ApiException("Missing the required parameter 'name' when calling replaceNamespacedResourceClaimTemplate(Async)"); - } - - // verify the required parameter 'namespace' is set - if (namespace == null) { - throw new ApiException("Missing the required parameter 'namespace' when calling replaceNamespacedResourceClaimTemplate(Async)"); - } - - // verify the required parameter 'body' is set - if (body == null) { - throw new ApiException("Missing the required parameter 'body' when calling replaceNamespacedResourceClaimTemplate(Async)"); - } - - - okhttp3.Call localVarCall = replaceNamespacedResourceClaimTemplateCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); - return localVarCall; - - } - - /** - * - * replace the specified ResourceClaimTemplate - * @param name name of the ResourceClaimTemplate (required) - * @param namespace object name and auth scope, such as for teams and projects (required) - * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) - * @param dryRun 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) - * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - * @return V1alpha2ResourceClaimTemplate - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - -
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
- */ - public V1alpha2ResourceClaimTemplate replaceNamespacedResourceClaimTemplate(String name, String namespace, V1alpha2ResourceClaimTemplate body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { - ApiResponse localVarResp = replaceNamespacedResourceClaimTemplateWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation); - return localVarResp.getData(); - } - - /** - * - * replace the specified ResourceClaimTemplate - * @param name name of the ResourceClaimTemplate (required) - * @param namespace object name and auth scope, such as for teams and projects (required) - * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) - * @param dryRun 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) - * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - * @return ApiResponse<V1alpha2ResourceClaimTemplate> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - -
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
- */ - public ApiResponse replaceNamespacedResourceClaimTemplateWithHttpInfo(String name, String namespace, V1alpha2ResourceClaimTemplate body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { - okhttp3.Call localVarCall = replaceNamespacedResourceClaimTemplateValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * (asynchronously) - * replace the specified ResourceClaimTemplate - * @param name name of the ResourceClaimTemplate (required) - * @param namespace object name and auth scope, such as for teams and projects (required) - * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) - * @param dryRun 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) - * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - - - -
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
- */ - public okhttp3.Call replaceNamespacedResourceClaimTemplateAsync(String name, String namespace, V1alpha2ResourceClaimTemplate body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = replaceNamespacedResourceClaimTemplateValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - /** - * Build call for replaceResourceClass - * @param name name of the ResourceClass (required) - * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) - * @param dryRun 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) - * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - - -
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
- */ - public okhttp3.Call replaceResourceClassCall(String name, V1alpha2ResourceClass body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { - Object localVarPostBody = body; - - // create path and map variables - String localVarPath = "/apis/resource.k8s.io/v1alpha2/resourceclasses/{name}" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); - } - - if (dryRun != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); - } - - if (fieldManager != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); - } - - if (fieldValidation != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); - } - - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - "application/json" - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); - - String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call replaceResourceClassValidateBeforeCall(String name, V1alpha2ResourceClass body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { - - // verify the required parameter 'name' is set - if (name == null) { - throw new ApiException("Missing the required parameter 'name' when calling replaceResourceClass(Async)"); - } - - // verify the required parameter 'body' is set - if (body == null) { - throw new ApiException("Missing the required parameter 'body' when calling replaceResourceClass(Async)"); - } - - - okhttp3.Call localVarCall = replaceResourceClassCall(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); - return localVarCall; - - } - - /** - * - * replace the specified ResourceClass - * @param name name of the ResourceClass (required) - * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) - * @param dryRun 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) - * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - * @return V1alpha2ResourceClass - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - -
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
- */ - public V1alpha2ResourceClass replaceResourceClass(String name, V1alpha2ResourceClass body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { - ApiResponse localVarResp = replaceResourceClassWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation); - return localVarResp.getData(); - } - - /** - * - * replace the specified ResourceClass - * @param name name of the ResourceClass (required) - * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) - * @param dryRun 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) - * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - * @return ApiResponse<V1alpha2ResourceClass> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - -
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
- */ - public ApiResponse replaceResourceClassWithHttpInfo(String name, V1alpha2ResourceClass body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { - okhttp3.Call localVarCall = replaceResourceClassValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * (asynchronously) - * replace the specified ResourceClass - * @param name name of the ResourceClass (required) - * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) - * @param dryRun 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) - * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - - - -
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
- */ - public okhttp3.Call replaceResourceClassAsync(String name, V1alpha2ResourceClass body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = replaceResourceClassValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } -} 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 new file mode 100644 index 0000000000..9e667610e3 --- /dev/null +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/ResourceV1alpha3Api.java @@ -0,0 +1,7131 @@ +/* +Copyright 2025 The Kubernetes Authors. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at +http://www.apache.org/licenses/LICENSE-2.0 +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ +package io.kubernetes.client.openapi.apis; + +import io.kubernetes.client.openapi.ApiCallback; +import io.kubernetes.client.openapi.ApiClient; +import io.kubernetes.client.openapi.ApiException; +import io.kubernetes.client.openapi.ApiResponse; +import io.kubernetes.client.openapi.Configuration; +import io.kubernetes.client.openapi.Pair; +import io.kubernetes.client.openapi.ProgressRequestBody; +import io.kubernetes.client.openapi.ProgressResponseBody; + +import com.google.gson.reflect.TypeToken; + +import java.io.IOException; + + +import io.kubernetes.client.openapi.models.V1APIResourceList; +import io.kubernetes.client.openapi.models.V1DeleteOptions; +import io.kubernetes.client.custom.V1Patch; +import io.kubernetes.client.openapi.models.V1Status; +import io.kubernetes.client.openapi.models.V1alpha3DeviceClass; +import io.kubernetes.client.openapi.models.V1alpha3DeviceClassList; +import io.kubernetes.client.openapi.models.V1alpha3DeviceTaintRule; +import io.kubernetes.client.openapi.models.V1alpha3DeviceTaintRuleList; +import io.kubernetes.client.openapi.models.V1alpha3ResourceClaim; +import io.kubernetes.client.openapi.models.V1alpha3ResourceClaimList; +import io.kubernetes.client.openapi.models.V1alpha3ResourceClaimTemplate; +import io.kubernetes.client.openapi.models.V1alpha3ResourceClaimTemplateList; +import io.kubernetes.client.openapi.models.V1alpha3ResourceSlice; +import io.kubernetes.client.openapi.models.V1alpha3ResourceSliceList; + +import java.lang.reflect.Type; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +public class ResourceV1alpha3Api { + private ApiClient localVarApiClient; + + public ResourceV1alpha3Api() { + this(Configuration.getDefaultApiClient()); + } + + public ResourceV1alpha3Api(ApiClient apiClient) { + this.localVarApiClient = apiClient; + } + + public ApiClient getApiClient() { + return localVarApiClient; + } + + public void setApiClient(ApiClient apiClient) { + this.localVarApiClient = apiClient; + } + + /** + * Build call for createDeviceClass + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
+ */ + public okhttp3.Call createDeviceClassCall(V1alpha3DeviceClass body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + Object localVarPostBody = body; + + // create path and map variables + String localVarPath = "/apis/resource.k8s.io/v1alpha3/deviceclasses"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } + + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + + if (fieldValidation != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + final String[] localVarAccepts = { + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call createDeviceClassValidateBeforeCall(V1alpha3DeviceClass body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'body' is set + if (body == null) { + throw new ApiException("Missing the required parameter 'body' when calling createDeviceClass(Async)"); + } + + + okhttp3.Call localVarCall = createDeviceClassCall(body, pretty, dryRun, fieldManager, fieldValidation, _callback); + return localVarCall; + + } + + /** + * + * create a DeviceClass + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @return V1alpha3DeviceClass + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
+ */ + public V1alpha3DeviceClass createDeviceClass(V1alpha3DeviceClass body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { + ApiResponse localVarResp = createDeviceClassWithHttpInfo(body, pretty, dryRun, fieldManager, fieldValidation); + return localVarResp.getData(); + } + + /** + * + * create a DeviceClass + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @return ApiResponse<V1alpha3DeviceClass> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
+ */ + public ApiResponse createDeviceClassWithHttpInfo(V1alpha3DeviceClass body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { + okhttp3.Call localVarCall = createDeviceClassValidateBeforeCall(body, pretty, dryRun, fieldManager, fieldValidation, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * create a DeviceClass + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
+ */ + public okhttp3.Call createDeviceClassAsync(V1alpha3DeviceClass body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = createDeviceClassValidateBeforeCall(body, pretty, dryRun, fieldManager, fieldValidation, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for createDeviceTaintRule + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
+ */ + public okhttp3.Call createDeviceTaintRuleCall(V1alpha3DeviceTaintRule body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + Object localVarPostBody = body; + + // create path and map variables + String localVarPath = "/apis/resource.k8s.io/v1alpha3/devicetaintrules"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } + + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + + if (fieldValidation != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + final String[] localVarAccepts = { + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call createDeviceTaintRuleValidateBeforeCall(V1alpha3DeviceTaintRule body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'body' is set + if (body == null) { + throw new ApiException("Missing the required parameter 'body' when calling createDeviceTaintRule(Async)"); + } + + + okhttp3.Call localVarCall = createDeviceTaintRuleCall(body, pretty, dryRun, fieldManager, fieldValidation, _callback); + return localVarCall; + + } + + /** + * + * create a DeviceTaintRule + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @return V1alpha3DeviceTaintRule + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
+ */ + public V1alpha3DeviceTaintRule createDeviceTaintRule(V1alpha3DeviceTaintRule body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { + ApiResponse localVarResp = createDeviceTaintRuleWithHttpInfo(body, pretty, dryRun, fieldManager, fieldValidation); + return localVarResp.getData(); + } + + /** + * + * create a DeviceTaintRule + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @return ApiResponse<V1alpha3DeviceTaintRule> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
+ */ + public ApiResponse createDeviceTaintRuleWithHttpInfo(V1alpha3DeviceTaintRule body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { + okhttp3.Call localVarCall = createDeviceTaintRuleValidateBeforeCall(body, pretty, dryRun, fieldManager, fieldValidation, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * create a DeviceTaintRule + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
+ */ + public okhttp3.Call createDeviceTaintRuleAsync(V1alpha3DeviceTaintRule body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = createDeviceTaintRuleValidateBeforeCall(body, pretty, dryRun, fieldManager, fieldValidation, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for createNamespacedResourceClaim + * @param namespace object name and auth scope, such as for teams and projects (required) + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
+ */ + public okhttp3.Call createNamespacedResourceClaimCall(String namespace, V1alpha3ResourceClaim body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + Object localVarPostBody = body; + + // create path and map variables + String localVarPath = "/apis/resource.k8s.io/v1alpha3/namespaces/{namespace}/resourceclaims" + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } + + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + + if (fieldValidation != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + final String[] localVarAccepts = { + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call createNamespacedResourceClaimValidateBeforeCall(String namespace, V1alpha3ResourceClaim body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'namespace' is set + if (namespace == null) { + throw new ApiException("Missing the required parameter 'namespace' when calling createNamespacedResourceClaim(Async)"); + } + + // verify the required parameter 'body' is set + if (body == null) { + throw new ApiException("Missing the required parameter 'body' when calling createNamespacedResourceClaim(Async)"); + } + + + okhttp3.Call localVarCall = createNamespacedResourceClaimCall(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); + return localVarCall; + + } + + /** + * + * create a ResourceClaim + * @param namespace object name and auth scope, such as for teams and projects (required) + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @return V1alpha3ResourceClaim + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
+ */ + public V1alpha3ResourceClaim createNamespacedResourceClaim(String namespace, V1alpha3ResourceClaim body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { + ApiResponse localVarResp = createNamespacedResourceClaimWithHttpInfo(namespace, body, pretty, dryRun, fieldManager, fieldValidation); + return localVarResp.getData(); + } + + /** + * + * create a ResourceClaim + * @param namespace object name and auth scope, such as for teams and projects (required) + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @return ApiResponse<V1alpha3ResourceClaim> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
+ */ + public ApiResponse createNamespacedResourceClaimWithHttpInfo(String namespace, V1alpha3ResourceClaim body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { + okhttp3.Call localVarCall = createNamespacedResourceClaimValidateBeforeCall(namespace, body, pretty, dryRun, fieldManager, fieldValidation, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * create a ResourceClaim + * @param namespace object name and auth scope, such as for teams and projects (required) + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
+ */ + public okhttp3.Call createNamespacedResourceClaimAsync(String namespace, V1alpha3ResourceClaim body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = createNamespacedResourceClaimValidateBeforeCall(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for createNamespacedResourceClaimTemplate + * @param namespace object name and auth scope, such as for teams and projects (required) + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
+ */ + public okhttp3.Call createNamespacedResourceClaimTemplateCall(String namespace, V1alpha3ResourceClaimTemplate body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + Object localVarPostBody = body; + + // create path and map variables + String localVarPath = "/apis/resource.k8s.io/v1alpha3/namespaces/{namespace}/resourceclaimtemplates" + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } + + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + + if (fieldValidation != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + final String[] localVarAccepts = { + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call createNamespacedResourceClaimTemplateValidateBeforeCall(String namespace, V1alpha3ResourceClaimTemplate body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'namespace' is set + if (namespace == null) { + throw new ApiException("Missing the required parameter 'namespace' when calling createNamespacedResourceClaimTemplate(Async)"); + } + + // verify the required parameter 'body' is set + if (body == null) { + throw new ApiException("Missing the required parameter 'body' when calling createNamespacedResourceClaimTemplate(Async)"); + } + + + okhttp3.Call localVarCall = createNamespacedResourceClaimTemplateCall(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); + return localVarCall; + + } + + /** + * + * create a ResourceClaimTemplate + * @param namespace object name and auth scope, such as for teams and projects (required) + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @return V1alpha3ResourceClaimTemplate + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
+ */ + public V1alpha3ResourceClaimTemplate createNamespacedResourceClaimTemplate(String namespace, V1alpha3ResourceClaimTemplate body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { + ApiResponse localVarResp = createNamespacedResourceClaimTemplateWithHttpInfo(namespace, body, pretty, dryRun, fieldManager, fieldValidation); + return localVarResp.getData(); + } + + /** + * + * create a ResourceClaimTemplate + * @param namespace object name and auth scope, such as for teams and projects (required) + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @return ApiResponse<V1alpha3ResourceClaimTemplate> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
+ */ + public ApiResponse createNamespacedResourceClaimTemplateWithHttpInfo(String namespace, V1alpha3ResourceClaimTemplate body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { + okhttp3.Call localVarCall = createNamespacedResourceClaimTemplateValidateBeforeCall(namespace, body, pretty, dryRun, fieldManager, fieldValidation, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * create a ResourceClaimTemplate + * @param namespace object name and auth scope, such as for teams and projects (required) + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
+ */ + public okhttp3.Call createNamespacedResourceClaimTemplateAsync(String namespace, V1alpha3ResourceClaimTemplate body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = createNamespacedResourceClaimTemplateValidateBeforeCall(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for createResourceSlice + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
+ */ + public okhttp3.Call createResourceSliceCall(V1alpha3ResourceSlice body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + Object localVarPostBody = body; + + // create path and map variables + String localVarPath = "/apis/resource.k8s.io/v1alpha3/resourceslices"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } + + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + + if (fieldValidation != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + final String[] localVarAccepts = { + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call createResourceSliceValidateBeforeCall(V1alpha3ResourceSlice body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'body' is set + if (body == null) { + throw new ApiException("Missing the required parameter 'body' when calling createResourceSlice(Async)"); + } + + + okhttp3.Call localVarCall = createResourceSliceCall(body, pretty, dryRun, fieldManager, fieldValidation, _callback); + return localVarCall; + + } + + /** + * + * create a ResourceSlice + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @return V1alpha3ResourceSlice + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
+ */ + public V1alpha3ResourceSlice createResourceSlice(V1alpha3ResourceSlice body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { + ApiResponse localVarResp = createResourceSliceWithHttpInfo(body, pretty, dryRun, fieldManager, fieldValidation); + return localVarResp.getData(); + } + + /** + * + * create a ResourceSlice + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @return ApiResponse<V1alpha3ResourceSlice> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
+ */ + public ApiResponse createResourceSliceWithHttpInfo(V1alpha3ResourceSlice body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { + okhttp3.Call localVarCall = createResourceSliceValidateBeforeCall(body, pretty, dryRun, fieldManager, fieldValidation, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * create a ResourceSlice + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
+ */ + public okhttp3.Call createResourceSliceAsync(V1alpha3ResourceSlice body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = createResourceSliceValidateBeforeCall(body, pretty, dryRun, fieldManager, fieldValidation, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for deleteCollectionDeviceClass + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param _continue 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) + * @param dryRun 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) + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param orphanDependents 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) + * @param propagationPolicy 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. (optional) + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + * @param body (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call deleteCollectionDeviceClassCall(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + Object localVarPostBody = body; + + // create path and map variables + String localVarPath = "/apis/resource.k8s.io/v1alpha3/deviceclasses"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + + if (_continue != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); + } + + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } + + if (fieldSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); + } + + if (gracePeriodSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); + } + + if (ignoreStoreReadErrorWithClusterBreakingPotential != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("ignoreStoreReadErrorWithClusterBreakingPotential", ignoreStoreReadErrorWithClusterBreakingPotential)); + } + + if (labelSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); + } + + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + } + + if (orphanDependents != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("orphanDependents", orphanDependents)); + } + + if (propagationPolicy != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("propagationPolicy", propagationPolicy)); + } + + if (resourceVersion != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); + } + + if (resourceVersionMatch != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersionMatch", resourceVersionMatch)); + } + + if (sendInitialEvents != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("sendInitialEvents", sendInitialEvents)); + } + + if (timeoutSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + final String[] localVarAccepts = { + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call deleteCollectionDeviceClassValidateBeforeCall(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + + + okhttp3.Call localVarCall = deleteCollectionDeviceClassCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + return localVarCall; + + } + + /** + * + * delete collection of DeviceClass + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param _continue 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) + * @param dryRun 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) + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param orphanDependents 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) + * @param propagationPolicy 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. (optional) + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + * @param body (optional) + * @return V1Status + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public V1Status deleteCollectionDeviceClass(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body) throws ApiException { + ApiResponse localVarResp = deleteCollectionDeviceClassWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); + return localVarResp.getData(); + } + + /** + * + * delete collection of DeviceClass + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param _continue 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) + * @param dryRun 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) + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param orphanDependents 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) + * @param propagationPolicy 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. (optional) + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + * @param body (optional) + * @return ApiResponse<V1Status> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public ApiResponse deleteCollectionDeviceClassWithHttpInfo(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteCollectionDeviceClassValidateBeforeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * delete collection of DeviceClass + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param _continue 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) + * @param dryRun 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) + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param orphanDependents 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) + * @param propagationPolicy 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. (optional) + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + * @param body (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call deleteCollectionDeviceClassAsync(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = deleteCollectionDeviceClassValidateBeforeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for deleteCollectionDeviceTaintRule + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param _continue 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) + * @param dryRun 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) + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param orphanDependents 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) + * @param propagationPolicy 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. (optional) + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + * @param body (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call deleteCollectionDeviceTaintRuleCall(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + Object localVarPostBody = body; + + // create path and map variables + String localVarPath = "/apis/resource.k8s.io/v1alpha3/devicetaintrules"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + + if (_continue != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); + } + + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } + + if (fieldSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); + } + + if (gracePeriodSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); + } + + if (ignoreStoreReadErrorWithClusterBreakingPotential != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("ignoreStoreReadErrorWithClusterBreakingPotential", ignoreStoreReadErrorWithClusterBreakingPotential)); + } + + if (labelSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); + } + + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + } + + if (orphanDependents != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("orphanDependents", orphanDependents)); + } + + if (propagationPolicy != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("propagationPolicy", propagationPolicy)); + } + + if (resourceVersion != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); + } + + if (resourceVersionMatch != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersionMatch", resourceVersionMatch)); + } + + if (sendInitialEvents != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("sendInitialEvents", sendInitialEvents)); + } + + if (timeoutSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + final String[] localVarAccepts = { + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call deleteCollectionDeviceTaintRuleValidateBeforeCall(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + + + okhttp3.Call localVarCall = deleteCollectionDeviceTaintRuleCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + return localVarCall; + + } + + /** + * + * delete collection of DeviceTaintRule + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param _continue 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) + * @param dryRun 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) + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param orphanDependents 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) + * @param propagationPolicy 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. (optional) + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + * @param body (optional) + * @return V1Status + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public V1Status deleteCollectionDeviceTaintRule(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body) throws ApiException { + ApiResponse localVarResp = deleteCollectionDeviceTaintRuleWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); + return localVarResp.getData(); + } + + /** + * + * delete collection of DeviceTaintRule + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param _continue 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) + * @param dryRun 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) + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param orphanDependents 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) + * @param propagationPolicy 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. (optional) + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + * @param body (optional) + * @return ApiResponse<V1Status> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public ApiResponse deleteCollectionDeviceTaintRuleWithHttpInfo(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteCollectionDeviceTaintRuleValidateBeforeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * delete collection of DeviceTaintRule + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param _continue 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) + * @param dryRun 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) + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param orphanDependents 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) + * @param propagationPolicy 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. (optional) + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + * @param body (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call deleteCollectionDeviceTaintRuleAsync(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = deleteCollectionDeviceTaintRuleValidateBeforeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for deleteCollectionNamespacedResourceClaim + * @param namespace object name and auth scope, such as for teams and projects (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param _continue 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) + * @param dryRun 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) + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param orphanDependents 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) + * @param propagationPolicy 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. (optional) + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + * @param body (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call deleteCollectionNamespacedResourceClaimCall(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + Object localVarPostBody = body; + + // create path and map variables + String localVarPath = "/apis/resource.k8s.io/v1alpha3/namespaces/{namespace}/resourceclaims" + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + + if (_continue != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); + } + + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } + + if (fieldSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); + } + + if (gracePeriodSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); + } + + if (ignoreStoreReadErrorWithClusterBreakingPotential != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("ignoreStoreReadErrorWithClusterBreakingPotential", ignoreStoreReadErrorWithClusterBreakingPotential)); + } + + if (labelSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); + } + + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + } + + if (orphanDependents != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("orphanDependents", orphanDependents)); + } + + if (propagationPolicy != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("propagationPolicy", propagationPolicy)); + } + + if (resourceVersion != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); + } + + if (resourceVersionMatch != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersionMatch", resourceVersionMatch)); + } + + if (sendInitialEvents != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("sendInitialEvents", sendInitialEvents)); + } + + if (timeoutSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + final String[] localVarAccepts = { + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call deleteCollectionNamespacedResourceClaimValidateBeforeCall(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'namespace' is set + if (namespace == null) { + throw new ApiException("Missing the required parameter 'namespace' when calling deleteCollectionNamespacedResourceClaim(Async)"); + } + + + okhttp3.Call localVarCall = deleteCollectionNamespacedResourceClaimCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + return localVarCall; + + } + + /** + * + * delete collection of ResourceClaim + * @param namespace object name and auth scope, such as for teams and projects (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param _continue 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) + * @param dryRun 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) + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param orphanDependents 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) + * @param propagationPolicy 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. (optional) + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + * @param body (optional) + * @return V1Status + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public V1Status deleteCollectionNamespacedResourceClaim(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body) throws ApiException { + ApiResponse localVarResp = deleteCollectionNamespacedResourceClaimWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); + return localVarResp.getData(); + } + + /** + * + * delete collection of ResourceClaim + * @param namespace object name and auth scope, such as for teams and projects (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param _continue 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) + * @param dryRun 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) + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param orphanDependents 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) + * @param propagationPolicy 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. (optional) + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + * @param body (optional) + * @return ApiResponse<V1Status> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public ApiResponse deleteCollectionNamespacedResourceClaimWithHttpInfo(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteCollectionNamespacedResourceClaimValidateBeforeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * delete collection of ResourceClaim + * @param namespace object name and auth scope, such as for teams and projects (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param _continue 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) + * @param dryRun 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) + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param orphanDependents 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) + * @param propagationPolicy 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. (optional) + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + * @param body (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call deleteCollectionNamespacedResourceClaimAsync(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = deleteCollectionNamespacedResourceClaimValidateBeforeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for deleteCollectionNamespacedResourceClaimTemplate + * @param namespace object name and auth scope, such as for teams and projects (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param _continue 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) + * @param dryRun 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) + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param orphanDependents 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) + * @param propagationPolicy 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. (optional) + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + * @param body (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call deleteCollectionNamespacedResourceClaimTemplateCall(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + Object localVarPostBody = body; + + // create path and map variables + String localVarPath = "/apis/resource.k8s.io/v1alpha3/namespaces/{namespace}/resourceclaimtemplates" + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + + if (_continue != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); + } + + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } + + if (fieldSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); + } + + if (gracePeriodSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); + } + + if (ignoreStoreReadErrorWithClusterBreakingPotential != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("ignoreStoreReadErrorWithClusterBreakingPotential", ignoreStoreReadErrorWithClusterBreakingPotential)); + } + + if (labelSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); + } + + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + } + + if (orphanDependents != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("orphanDependents", orphanDependents)); + } + + if (propagationPolicy != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("propagationPolicy", propagationPolicy)); + } + + if (resourceVersion != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); + } + + if (resourceVersionMatch != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersionMatch", resourceVersionMatch)); + } + + if (sendInitialEvents != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("sendInitialEvents", sendInitialEvents)); + } + + if (timeoutSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + final String[] localVarAccepts = { + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call deleteCollectionNamespacedResourceClaimTemplateValidateBeforeCall(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'namespace' is set + if (namespace == null) { + throw new ApiException("Missing the required parameter 'namespace' when calling deleteCollectionNamespacedResourceClaimTemplate(Async)"); + } + + + okhttp3.Call localVarCall = deleteCollectionNamespacedResourceClaimTemplateCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + return localVarCall; + + } + + /** + * + * delete collection of ResourceClaimTemplate + * @param namespace object name and auth scope, such as for teams and projects (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param _continue 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) + * @param dryRun 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) + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param orphanDependents 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) + * @param propagationPolicy 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. (optional) + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + * @param body (optional) + * @return V1Status + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public V1Status deleteCollectionNamespacedResourceClaimTemplate(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body) throws ApiException { + ApiResponse localVarResp = deleteCollectionNamespacedResourceClaimTemplateWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); + return localVarResp.getData(); + } + + /** + * + * delete collection of ResourceClaimTemplate + * @param namespace object name and auth scope, such as for teams and projects (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param _continue 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) + * @param dryRun 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) + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param orphanDependents 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) + * @param propagationPolicy 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. (optional) + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + * @param body (optional) + * @return ApiResponse<V1Status> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public ApiResponse deleteCollectionNamespacedResourceClaimTemplateWithHttpInfo(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteCollectionNamespacedResourceClaimTemplateValidateBeforeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * delete collection of ResourceClaimTemplate + * @param namespace object name and auth scope, such as for teams and projects (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param _continue 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) + * @param dryRun 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) + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param orphanDependents 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) + * @param propagationPolicy 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. (optional) + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + * @param body (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call deleteCollectionNamespacedResourceClaimTemplateAsync(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = deleteCollectionNamespacedResourceClaimTemplateValidateBeforeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for deleteCollectionResourceSlice + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param _continue 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) + * @param dryRun 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) + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param orphanDependents 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) + * @param propagationPolicy 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. (optional) + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + * @param body (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call deleteCollectionResourceSliceCall(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + Object localVarPostBody = body; + + // create path and map variables + String localVarPath = "/apis/resource.k8s.io/v1alpha3/resourceslices"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + + if (_continue != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); + } + + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } + + if (fieldSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); + } + + if (gracePeriodSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); + } + + if (ignoreStoreReadErrorWithClusterBreakingPotential != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("ignoreStoreReadErrorWithClusterBreakingPotential", ignoreStoreReadErrorWithClusterBreakingPotential)); + } + + if (labelSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); + } + + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + } + + if (orphanDependents != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("orphanDependents", orphanDependents)); + } + + if (propagationPolicy != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("propagationPolicy", propagationPolicy)); + } + + if (resourceVersion != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); + } + + if (resourceVersionMatch != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersionMatch", resourceVersionMatch)); + } + + if (sendInitialEvents != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("sendInitialEvents", sendInitialEvents)); + } + + if (timeoutSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + final String[] localVarAccepts = { + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call deleteCollectionResourceSliceValidateBeforeCall(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + + + okhttp3.Call localVarCall = deleteCollectionResourceSliceCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + return localVarCall; + + } + + /** + * + * delete collection of ResourceSlice + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param _continue 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) + * @param dryRun 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) + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param orphanDependents 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) + * @param propagationPolicy 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. (optional) + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + * @param body (optional) + * @return V1Status + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public V1Status deleteCollectionResourceSlice(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body) throws ApiException { + ApiResponse localVarResp = deleteCollectionResourceSliceWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); + return localVarResp.getData(); + } + + /** + * + * delete collection of ResourceSlice + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param _continue 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) + * @param dryRun 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) + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param orphanDependents 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) + * @param propagationPolicy 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. (optional) + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + * @param body (optional) + * @return ApiResponse<V1Status> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public ApiResponse deleteCollectionResourceSliceWithHttpInfo(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteCollectionResourceSliceValidateBeforeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * delete collection of ResourceSlice + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param _continue 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) + * @param dryRun 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) + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param orphanDependents 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) + * @param propagationPolicy 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. (optional) + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + * @param body (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call deleteCollectionResourceSliceAsync(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = deleteCollectionResourceSliceValidateBeforeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for deleteDeviceClass + * @param name name of the DeviceClass (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) + * @param orphanDependents 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) + * @param propagationPolicy 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. (optional) + * @param body (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
+ */ + public okhttp3.Call deleteDeviceClassCall(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + Object localVarPostBody = body; + + // create path and map variables + String localVarPath = "/apis/resource.k8s.io/v1alpha3/deviceclasses/{name}" + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } + + if (gracePeriodSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); + } + + if (ignoreStoreReadErrorWithClusterBreakingPotential != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("ignoreStoreReadErrorWithClusterBreakingPotential", ignoreStoreReadErrorWithClusterBreakingPotential)); + } + + if (orphanDependents != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("orphanDependents", orphanDependents)); + } + + if (propagationPolicy != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("propagationPolicy", propagationPolicy)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + final String[] localVarAccepts = { + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call deleteDeviceClassValidateBeforeCall(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'name' is set + if (name == null) { + throw new ApiException("Missing the required parameter 'name' when calling deleteDeviceClass(Async)"); + } + + + okhttp3.Call localVarCall = deleteDeviceClassCall(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); + return localVarCall; + + } + + /** + * + * delete a DeviceClass + * @param name name of the DeviceClass (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) + * @param orphanDependents 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) + * @param propagationPolicy 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. (optional) + * @param body (optional) + * @return V1alpha3DeviceClass + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
+ */ + public V1alpha3DeviceClass deleteDeviceClass(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { + ApiResponse localVarResp = deleteDeviceClassWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body); + return localVarResp.getData(); + } + + /** + * + * delete a DeviceClass + * @param name name of the DeviceClass (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) + * @param orphanDependents 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) + * @param propagationPolicy 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. (optional) + * @param body (optional) + * @return ApiResponse<V1alpha3DeviceClass> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
+ */ + public ApiResponse deleteDeviceClassWithHttpInfo(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteDeviceClassValidateBeforeCall(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * delete a DeviceClass + * @param name name of the DeviceClass (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) + * @param orphanDependents 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) + * @param propagationPolicy 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. (optional) + * @param body (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
+ */ + public okhttp3.Call deleteDeviceClassAsync(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = deleteDeviceClassValidateBeforeCall(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for deleteDeviceTaintRule + * @param name name of the DeviceTaintRule (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) + * @param orphanDependents 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) + * @param propagationPolicy 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. (optional) + * @param body (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
+ */ + public okhttp3.Call deleteDeviceTaintRuleCall(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + Object localVarPostBody = body; + + // create path and map variables + String localVarPath = "/apis/resource.k8s.io/v1alpha3/devicetaintrules/{name}" + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } + + if (gracePeriodSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); + } + + if (ignoreStoreReadErrorWithClusterBreakingPotential != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("ignoreStoreReadErrorWithClusterBreakingPotential", ignoreStoreReadErrorWithClusterBreakingPotential)); + } + + if (orphanDependents != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("orphanDependents", orphanDependents)); + } + + if (propagationPolicy != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("propagationPolicy", propagationPolicy)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + final String[] localVarAccepts = { + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call deleteDeviceTaintRuleValidateBeforeCall(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'name' is set + if (name == null) { + throw new ApiException("Missing the required parameter 'name' when calling deleteDeviceTaintRule(Async)"); + } + + + okhttp3.Call localVarCall = deleteDeviceTaintRuleCall(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); + return localVarCall; + + } + + /** + * + * delete a DeviceTaintRule + * @param name name of the DeviceTaintRule (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) + * @param orphanDependents 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) + * @param propagationPolicy 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. (optional) + * @param body (optional) + * @return V1alpha3DeviceTaintRule + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
+ */ + public V1alpha3DeviceTaintRule deleteDeviceTaintRule(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { + ApiResponse localVarResp = deleteDeviceTaintRuleWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body); + return localVarResp.getData(); + } + + /** + * + * delete a DeviceTaintRule + * @param name name of the DeviceTaintRule (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) + * @param orphanDependents 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) + * @param propagationPolicy 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. (optional) + * @param body (optional) + * @return ApiResponse<V1alpha3DeviceTaintRule> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
+ */ + public ApiResponse deleteDeviceTaintRuleWithHttpInfo(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteDeviceTaintRuleValidateBeforeCall(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * delete a DeviceTaintRule + * @param name name of the DeviceTaintRule (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) + * @param orphanDependents 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) + * @param propagationPolicy 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. (optional) + * @param body (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
+ */ + public okhttp3.Call deleteDeviceTaintRuleAsync(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = deleteDeviceTaintRuleValidateBeforeCall(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for deleteNamespacedResourceClaim + * @param name name of the ResourceClaim (required) + * @param namespace object name and auth scope, such as for teams and projects (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) + * @param orphanDependents 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) + * @param propagationPolicy 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. (optional) + * @param body (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
+ */ + public okhttp3.Call deleteNamespacedResourceClaimCall(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + Object localVarPostBody = body; + + // create path and map variables + String localVarPath = "/apis/resource.k8s.io/v1alpha3/namespaces/{namespace}/resourceclaims/{name}" + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } + + if (gracePeriodSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); + } + + if (ignoreStoreReadErrorWithClusterBreakingPotential != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("ignoreStoreReadErrorWithClusterBreakingPotential", ignoreStoreReadErrorWithClusterBreakingPotential)); + } + + if (orphanDependents != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("orphanDependents", orphanDependents)); + } + + if (propagationPolicy != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("propagationPolicy", propagationPolicy)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + final String[] localVarAccepts = { + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call deleteNamespacedResourceClaimValidateBeforeCall(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'name' is set + if (name == null) { + throw new ApiException("Missing the required parameter 'name' when calling deleteNamespacedResourceClaim(Async)"); + } + + // verify the required parameter 'namespace' is set + if (namespace == null) { + throw new ApiException("Missing the required parameter 'namespace' when calling deleteNamespacedResourceClaim(Async)"); + } + + + okhttp3.Call localVarCall = deleteNamespacedResourceClaimCall(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); + return localVarCall; + + } + + /** + * + * delete a ResourceClaim + * @param name name of the ResourceClaim (required) + * @param namespace object name and auth scope, such as for teams and projects (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) + * @param orphanDependents 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) + * @param propagationPolicy 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. (optional) + * @param body (optional) + * @return V1alpha3ResourceClaim + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
+ */ + public V1alpha3ResourceClaim deleteNamespacedResourceClaim(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { + ApiResponse localVarResp = deleteNamespacedResourceClaimWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body); + return localVarResp.getData(); + } + + /** + * + * delete a ResourceClaim + * @param name name of the ResourceClaim (required) + * @param namespace object name and auth scope, such as for teams and projects (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) + * @param orphanDependents 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) + * @param propagationPolicy 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. (optional) + * @param body (optional) + * @return ApiResponse<V1alpha3ResourceClaim> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
+ */ + public ApiResponse deleteNamespacedResourceClaimWithHttpInfo(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteNamespacedResourceClaimValidateBeforeCall(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * delete a ResourceClaim + * @param name name of the ResourceClaim (required) + * @param namespace object name and auth scope, such as for teams and projects (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) + * @param orphanDependents 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) + * @param propagationPolicy 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. (optional) + * @param body (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
+ */ + public okhttp3.Call deleteNamespacedResourceClaimAsync(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = deleteNamespacedResourceClaimValidateBeforeCall(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for deleteNamespacedResourceClaimTemplate + * @param name name of the ResourceClaimTemplate (required) + * @param namespace object name and auth scope, such as for teams and projects (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) + * @param orphanDependents 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) + * @param propagationPolicy 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. (optional) + * @param body (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
+ */ + public okhttp3.Call deleteNamespacedResourceClaimTemplateCall(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + Object localVarPostBody = body; + + // create path and map variables + String localVarPath = "/apis/resource.k8s.io/v1alpha3/namespaces/{namespace}/resourceclaimtemplates/{name}" + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } + + if (gracePeriodSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); + } + + if (ignoreStoreReadErrorWithClusterBreakingPotential != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("ignoreStoreReadErrorWithClusterBreakingPotential", ignoreStoreReadErrorWithClusterBreakingPotential)); + } + + if (orphanDependents != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("orphanDependents", orphanDependents)); + } + + if (propagationPolicy != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("propagationPolicy", propagationPolicy)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + final String[] localVarAccepts = { + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call deleteNamespacedResourceClaimTemplateValidateBeforeCall(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'name' is set + if (name == null) { + throw new ApiException("Missing the required parameter 'name' when calling deleteNamespacedResourceClaimTemplate(Async)"); + } + + // verify the required parameter 'namespace' is set + if (namespace == null) { + throw new ApiException("Missing the required parameter 'namespace' when calling deleteNamespacedResourceClaimTemplate(Async)"); + } + + + okhttp3.Call localVarCall = deleteNamespacedResourceClaimTemplateCall(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); + return localVarCall; + + } + + /** + * + * delete a ResourceClaimTemplate + * @param name name of the ResourceClaimTemplate (required) + * @param namespace object name and auth scope, such as for teams and projects (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) + * @param orphanDependents 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) + * @param propagationPolicy 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. (optional) + * @param body (optional) + * @return V1alpha3ResourceClaimTemplate + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
+ */ + public V1alpha3ResourceClaimTemplate deleteNamespacedResourceClaimTemplate(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { + ApiResponse localVarResp = deleteNamespacedResourceClaimTemplateWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body); + return localVarResp.getData(); + } + + /** + * + * delete a ResourceClaimTemplate + * @param name name of the ResourceClaimTemplate (required) + * @param namespace object name and auth scope, such as for teams and projects (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) + * @param orphanDependents 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) + * @param propagationPolicy 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. (optional) + * @param body (optional) + * @return ApiResponse<V1alpha3ResourceClaimTemplate> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
+ */ + public ApiResponse deleteNamespacedResourceClaimTemplateWithHttpInfo(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteNamespacedResourceClaimTemplateValidateBeforeCall(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * delete a ResourceClaimTemplate + * @param name name of the ResourceClaimTemplate (required) + * @param namespace object name and auth scope, such as for teams and projects (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) + * @param orphanDependents 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) + * @param propagationPolicy 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. (optional) + * @param body (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
+ */ + public okhttp3.Call deleteNamespacedResourceClaimTemplateAsync(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = deleteNamespacedResourceClaimTemplateValidateBeforeCall(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for deleteResourceSlice + * @param name name of the ResourceSlice (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) + * @param orphanDependents 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) + * @param propagationPolicy 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. (optional) + * @param body (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
+ */ + public okhttp3.Call deleteResourceSliceCall(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + Object localVarPostBody = body; + + // create path and map variables + String localVarPath = "/apis/resource.k8s.io/v1alpha3/resourceslices/{name}" + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } + + if (gracePeriodSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); + } + + if (ignoreStoreReadErrorWithClusterBreakingPotential != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("ignoreStoreReadErrorWithClusterBreakingPotential", ignoreStoreReadErrorWithClusterBreakingPotential)); + } + + if (orphanDependents != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("orphanDependents", orphanDependents)); + } + + if (propagationPolicy != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("propagationPolicy", propagationPolicy)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + final String[] localVarAccepts = { + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call deleteResourceSliceValidateBeforeCall(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'name' is set + if (name == null) { + throw new ApiException("Missing the required parameter 'name' when calling deleteResourceSlice(Async)"); + } + + + okhttp3.Call localVarCall = deleteResourceSliceCall(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); + return localVarCall; + + } + + /** + * + * delete a ResourceSlice + * @param name name of the ResourceSlice (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) + * @param orphanDependents 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) + * @param propagationPolicy 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. (optional) + * @param body (optional) + * @return V1alpha3ResourceSlice + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
+ */ + public V1alpha3ResourceSlice deleteResourceSlice(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { + ApiResponse localVarResp = deleteResourceSliceWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body); + return localVarResp.getData(); + } + + /** + * + * delete a ResourceSlice + * @param name name of the ResourceSlice (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) + * @param orphanDependents 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) + * @param propagationPolicy 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. (optional) + * @param body (optional) + * @return ApiResponse<V1alpha3ResourceSlice> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
+ */ + public ApiResponse deleteResourceSliceWithHttpInfo(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteResourceSliceValidateBeforeCall(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * delete a ResourceSlice + * @param name name of the ResourceSlice (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) + * @param orphanDependents 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) + * @param propagationPolicy 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. (optional) + * @param body (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
+ */ + public okhttp3.Call deleteResourceSliceAsync(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = deleteResourceSliceValidateBeforeCall(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for getAPIResources + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call getAPIResourcesCall(final ApiCallback _callback) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/apis/resource.k8s.io/v1alpha3/"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + final String[] localVarAccepts = { + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call getAPIResourcesValidateBeforeCall(final ApiCallback _callback) throws ApiException { + + + okhttp3.Call localVarCall = getAPIResourcesCall(_callback); + return localVarCall; + + } + + /** + * + * get available resources + * @return V1APIResourceList + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public V1APIResourceList getAPIResources() throws ApiException { + ApiResponse localVarResp = getAPIResourcesWithHttpInfo(); + return localVarResp.getData(); + } + + /** + * + * get available resources + * @return ApiResponse<V1APIResourceList> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public ApiResponse getAPIResourcesWithHttpInfo() throws ApiException { + okhttp3.Call localVarCall = getAPIResourcesValidateBeforeCall(null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * get available resources + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call getAPIResourcesAsync(final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = getAPIResourcesValidateBeforeCall(_callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for listDeviceClass + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param allowWatchBookmarks 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. (optional) + * @param _continue 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) + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call listDeviceClassCall(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/apis/resource.k8s.io/v1alpha3/deviceclasses"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + + if (allowWatchBookmarks != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("allowWatchBookmarks", allowWatchBookmarks)); + } + + if (_continue != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); + } + + if (fieldSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); + } + + if (labelSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); + } + + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + } + + if (resourceVersion != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); + } + + if (resourceVersionMatch != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersionMatch", resourceVersionMatch)); + } + + if (sendInitialEvents != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("sendInitialEvents", sendInitialEvents)); + } + + if (timeoutSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); + } + + if (watch != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + final String[] localVarAccepts = { + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch", "application/cbor-seq" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call listDeviceClassValidateBeforeCall(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + + + okhttp3.Call localVarCall = listDeviceClassCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + return localVarCall; + + } + + /** + * + * list or watch objects of kind DeviceClass + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param allowWatchBookmarks 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. (optional) + * @param _continue 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) + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + * @return V1alpha3DeviceClassList + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public V1alpha3DeviceClassList listDeviceClass(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch) throws ApiException { + ApiResponse localVarResp = listDeviceClassWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + return localVarResp.getData(); + } + + /** + * + * list or watch objects of kind DeviceClass + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param allowWatchBookmarks 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. (optional) + * @param _continue 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) + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + * @return ApiResponse<V1alpha3DeviceClassList> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public ApiResponse listDeviceClassWithHttpInfo(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch) throws ApiException { + okhttp3.Call localVarCall = listDeviceClassValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * list or watch objects of kind DeviceClass + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param allowWatchBookmarks 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. (optional) + * @param _continue 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) + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call listDeviceClassAsync(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = listDeviceClassValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for listDeviceTaintRule + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param allowWatchBookmarks 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. (optional) + * @param _continue 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) + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call listDeviceTaintRuleCall(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/apis/resource.k8s.io/v1alpha3/devicetaintrules"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + + if (allowWatchBookmarks != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("allowWatchBookmarks", allowWatchBookmarks)); + } + + if (_continue != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); + } + + if (fieldSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); + } + + if (labelSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); + } + + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + } + + if (resourceVersion != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); + } + + if (resourceVersionMatch != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersionMatch", resourceVersionMatch)); + } + + if (sendInitialEvents != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("sendInitialEvents", sendInitialEvents)); + } + + if (timeoutSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); + } + + if (watch != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + final String[] localVarAccepts = { + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch", "application/cbor-seq" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call listDeviceTaintRuleValidateBeforeCall(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + + + okhttp3.Call localVarCall = listDeviceTaintRuleCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + return localVarCall; + + } + + /** + * + * list or watch objects of kind DeviceTaintRule + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param allowWatchBookmarks 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. (optional) + * @param _continue 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) + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + * @return V1alpha3DeviceTaintRuleList + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public V1alpha3DeviceTaintRuleList listDeviceTaintRule(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch) throws ApiException { + ApiResponse localVarResp = listDeviceTaintRuleWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + return localVarResp.getData(); + } + + /** + * + * list or watch objects of kind DeviceTaintRule + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param allowWatchBookmarks 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. (optional) + * @param _continue 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) + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + * @return ApiResponse<V1alpha3DeviceTaintRuleList> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public ApiResponse listDeviceTaintRuleWithHttpInfo(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch) throws ApiException { + okhttp3.Call localVarCall = listDeviceTaintRuleValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * list or watch objects of kind DeviceTaintRule + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param allowWatchBookmarks 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. (optional) + * @param _continue 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) + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call listDeviceTaintRuleAsync(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = listDeviceTaintRuleValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for listNamespacedResourceClaim + * @param namespace object name and auth scope, such as for teams and projects (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param allowWatchBookmarks 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. (optional) + * @param _continue 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) + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call listNamespacedResourceClaimCall(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/apis/resource.k8s.io/v1alpha3/namespaces/{namespace}/resourceclaims" + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + + if (allowWatchBookmarks != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("allowWatchBookmarks", allowWatchBookmarks)); + } + + if (_continue != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); + } + + if (fieldSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); + } + + if (labelSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); + } + + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + } + + if (resourceVersion != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); + } + + if (resourceVersionMatch != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersionMatch", resourceVersionMatch)); + } + + if (sendInitialEvents != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("sendInitialEvents", sendInitialEvents)); + } + + if (timeoutSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); + } + + if (watch != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + final String[] localVarAccepts = { + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch", "application/cbor-seq" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call listNamespacedResourceClaimValidateBeforeCall(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'namespace' is set + if (namespace == null) { + throw new ApiException("Missing the required parameter 'namespace' when calling listNamespacedResourceClaim(Async)"); + } + + + okhttp3.Call localVarCall = listNamespacedResourceClaimCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + return localVarCall; + + } + + /** + * + * list or watch objects of kind ResourceClaim + * @param namespace object name and auth scope, such as for teams and projects (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param allowWatchBookmarks 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. (optional) + * @param _continue 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) + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + * @return V1alpha3ResourceClaimList + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public V1alpha3ResourceClaimList listNamespacedResourceClaim(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch) throws ApiException { + ApiResponse localVarResp = listNamespacedResourceClaimWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + return localVarResp.getData(); + } + + /** + * + * list or watch objects of kind ResourceClaim + * @param namespace object name and auth scope, such as for teams and projects (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param allowWatchBookmarks 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. (optional) + * @param _continue 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) + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + * @return ApiResponse<V1alpha3ResourceClaimList> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public ApiResponse listNamespacedResourceClaimWithHttpInfo(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch) throws ApiException { + okhttp3.Call localVarCall = listNamespacedResourceClaimValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * list or watch objects of kind ResourceClaim + * @param namespace object name and auth scope, such as for teams and projects (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param allowWatchBookmarks 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. (optional) + * @param _continue 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) + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call listNamespacedResourceClaimAsync(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = listNamespacedResourceClaimValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for listNamespacedResourceClaimTemplate + * @param namespace object name and auth scope, such as for teams and projects (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param allowWatchBookmarks 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. (optional) + * @param _continue 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) + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call listNamespacedResourceClaimTemplateCall(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/apis/resource.k8s.io/v1alpha3/namespaces/{namespace}/resourceclaimtemplates" + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + + if (allowWatchBookmarks != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("allowWatchBookmarks", allowWatchBookmarks)); + } + + if (_continue != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); + } + + if (fieldSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); + } + + if (labelSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); + } + + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + } + + if (resourceVersion != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); + } + + if (resourceVersionMatch != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersionMatch", resourceVersionMatch)); + } + + if (sendInitialEvents != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("sendInitialEvents", sendInitialEvents)); + } + + if (timeoutSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); + } + + if (watch != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + final String[] localVarAccepts = { + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch", "application/cbor-seq" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call listNamespacedResourceClaimTemplateValidateBeforeCall(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'namespace' is set + if (namespace == null) { + throw new ApiException("Missing the required parameter 'namespace' when calling listNamespacedResourceClaimTemplate(Async)"); + } + + + okhttp3.Call localVarCall = listNamespacedResourceClaimTemplateCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + return localVarCall; + + } + + /** + * + * list or watch objects of kind ResourceClaimTemplate + * @param namespace object name and auth scope, such as for teams and projects (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param allowWatchBookmarks 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. (optional) + * @param _continue 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) + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + * @return V1alpha3ResourceClaimTemplateList + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public V1alpha3ResourceClaimTemplateList listNamespacedResourceClaimTemplate(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch) throws ApiException { + ApiResponse localVarResp = listNamespacedResourceClaimTemplateWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + return localVarResp.getData(); + } + + /** + * + * list or watch objects of kind ResourceClaimTemplate + * @param namespace object name and auth scope, such as for teams and projects (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param allowWatchBookmarks 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. (optional) + * @param _continue 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) + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + * @return ApiResponse<V1alpha3ResourceClaimTemplateList> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public ApiResponse listNamespacedResourceClaimTemplateWithHttpInfo(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch) throws ApiException { + okhttp3.Call localVarCall = listNamespacedResourceClaimTemplateValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * list or watch objects of kind ResourceClaimTemplate + * @param namespace object name and auth scope, such as for teams and projects (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param allowWatchBookmarks 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. (optional) + * @param _continue 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) + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call listNamespacedResourceClaimTemplateAsync(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = listNamespacedResourceClaimTemplateValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for listResourceClaimForAllNamespaces + * @param allowWatchBookmarks 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. (optional) + * @param _continue 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) + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call listResourceClaimForAllNamespacesCall(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/apis/resource.k8s.io/v1alpha3/resourceclaims"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (allowWatchBookmarks != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("allowWatchBookmarks", allowWatchBookmarks)); + } + + if (_continue != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); + } + + if (fieldSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); + } + + if (labelSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); + } + + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + } + + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + + if (resourceVersion != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); + } + + if (resourceVersionMatch != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersionMatch", resourceVersionMatch)); + } + + if (sendInitialEvents != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("sendInitialEvents", sendInitialEvents)); + } + + if (timeoutSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); + } + + if (watch != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + final String[] localVarAccepts = { + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch", "application/cbor-seq" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call listResourceClaimForAllNamespacesValidateBeforeCall(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + + + okhttp3.Call localVarCall = listResourceClaimForAllNamespacesCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + return localVarCall; + + } + + /** + * + * list or watch objects of kind ResourceClaim + * @param allowWatchBookmarks 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. (optional) + * @param _continue 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) + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + * @return V1alpha3ResourceClaimList + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public V1alpha3ResourceClaimList listResourceClaimForAllNamespaces(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch) throws ApiException { + ApiResponse localVarResp = listResourceClaimForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + return localVarResp.getData(); + } + + /** + * + * list or watch objects of kind ResourceClaim + * @param allowWatchBookmarks 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. (optional) + * @param _continue 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) + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + * @return ApiResponse<V1alpha3ResourceClaimList> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public ApiResponse listResourceClaimForAllNamespacesWithHttpInfo(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch) throws ApiException { + okhttp3.Call localVarCall = listResourceClaimForAllNamespacesValidateBeforeCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * list or watch objects of kind ResourceClaim + * @param allowWatchBookmarks 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. (optional) + * @param _continue 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) + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call listResourceClaimForAllNamespacesAsync(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = listResourceClaimForAllNamespacesValidateBeforeCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for listResourceClaimTemplateForAllNamespaces + * @param allowWatchBookmarks 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. (optional) + * @param _continue 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) + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call listResourceClaimTemplateForAllNamespacesCall(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/apis/resource.k8s.io/v1alpha3/resourceclaimtemplates"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (allowWatchBookmarks != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("allowWatchBookmarks", allowWatchBookmarks)); + } + + if (_continue != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); + } + + if (fieldSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); + } + + if (labelSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); + } + + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + } + + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + + if (resourceVersion != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); + } + + if (resourceVersionMatch != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersionMatch", resourceVersionMatch)); + } + + if (sendInitialEvents != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("sendInitialEvents", sendInitialEvents)); + } + + if (timeoutSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); + } + + if (watch != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + final String[] localVarAccepts = { + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch", "application/cbor-seq" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call listResourceClaimTemplateForAllNamespacesValidateBeforeCall(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + + + okhttp3.Call localVarCall = listResourceClaimTemplateForAllNamespacesCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + return localVarCall; + + } + + /** + * + * list or watch objects of kind ResourceClaimTemplate + * @param allowWatchBookmarks 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. (optional) + * @param _continue 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) + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + * @return V1alpha3ResourceClaimTemplateList + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public V1alpha3ResourceClaimTemplateList listResourceClaimTemplateForAllNamespaces(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch) throws ApiException { + ApiResponse localVarResp = listResourceClaimTemplateForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + return localVarResp.getData(); + } + + /** + * + * list or watch objects of kind ResourceClaimTemplate + * @param allowWatchBookmarks 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. (optional) + * @param _continue 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) + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + * @return ApiResponse<V1alpha3ResourceClaimTemplateList> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public ApiResponse listResourceClaimTemplateForAllNamespacesWithHttpInfo(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch) throws ApiException { + okhttp3.Call localVarCall = listResourceClaimTemplateForAllNamespacesValidateBeforeCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * list or watch objects of kind ResourceClaimTemplate + * @param allowWatchBookmarks 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. (optional) + * @param _continue 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) + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call listResourceClaimTemplateForAllNamespacesAsync(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = listResourceClaimTemplateForAllNamespacesValidateBeforeCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for listResourceSlice + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param allowWatchBookmarks 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. (optional) + * @param _continue 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) + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call listResourceSliceCall(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/apis/resource.k8s.io/v1alpha3/resourceslices"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + + if (allowWatchBookmarks != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("allowWatchBookmarks", allowWatchBookmarks)); + } + + if (_continue != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); + } + + if (fieldSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); + } + + if (labelSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); + } + + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + } + + if (resourceVersion != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); + } + + if (resourceVersionMatch != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersionMatch", resourceVersionMatch)); + } + + if (sendInitialEvents != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("sendInitialEvents", sendInitialEvents)); + } + + if (timeoutSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); + } + + if (watch != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + final String[] localVarAccepts = { + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch", "application/cbor-seq" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call listResourceSliceValidateBeforeCall(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + + + okhttp3.Call localVarCall = listResourceSliceCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + return localVarCall; + + } + + /** + * + * list or watch objects of kind ResourceSlice + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param allowWatchBookmarks 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. (optional) + * @param _continue 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) + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + * @return V1alpha3ResourceSliceList + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public V1alpha3ResourceSliceList listResourceSlice(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch) throws ApiException { + ApiResponse localVarResp = listResourceSliceWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + return localVarResp.getData(); + } + + /** + * + * list or watch objects of kind ResourceSlice + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param allowWatchBookmarks 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. (optional) + * @param _continue 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) + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + * @return ApiResponse<V1alpha3ResourceSliceList> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public ApiResponse listResourceSliceWithHttpInfo(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch) throws ApiException { + okhttp3.Call localVarCall = listResourceSliceValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * list or watch objects of kind ResourceSlice + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param allowWatchBookmarks 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. (optional) + * @param _continue 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) + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call listResourceSliceAsync(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = listResourceSliceValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for patchDeviceClass + * @param name name of the DeviceClass (required) + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public okhttp3.Call patchDeviceClassCall(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + Object localVarPostBody = body; + + // create path and map variables + String localVarPath = "/apis/resource.k8s.io/v1alpha3/deviceclasses/{name}" + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } + + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + + if (fieldValidation != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); + } + + if (force != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("force", force)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + final String[] localVarAccepts = { + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call patchDeviceClassValidateBeforeCall(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'name' is set + if (name == null) { + throw new ApiException("Missing the required parameter 'name' when calling patchDeviceClass(Async)"); + } + + // verify the required parameter 'body' is set + if (body == null) { + throw new ApiException("Missing the required parameter 'body' when calling patchDeviceClass(Async)"); + } + + + okhttp3.Call localVarCall = patchDeviceClassCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); + return localVarCall; + + } + + /** + * + * partially update the specified DeviceClass + * @param name name of the DeviceClass (required) + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) + * @return V1alpha3DeviceClass + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public V1alpha3DeviceClass patchDeviceClass(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force) throws ApiException { + ApiResponse localVarResp = patchDeviceClassWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force); + return localVarResp.getData(); + } + + /** + * + * partially update the specified DeviceClass + * @param name name of the DeviceClass (required) + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) + * @return ApiResponse<V1alpha3DeviceClass> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public ApiResponse patchDeviceClassWithHttpInfo(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force) throws ApiException { + okhttp3.Call localVarCall = patchDeviceClassValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * partially update the specified DeviceClass + * @param name name of the DeviceClass (required) + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public okhttp3.Call patchDeviceClassAsync(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = patchDeviceClassValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for patchDeviceTaintRule + * @param name name of the DeviceTaintRule (required) + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public okhttp3.Call patchDeviceTaintRuleCall(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + Object localVarPostBody = body; + + // create path and map variables + String localVarPath = "/apis/resource.k8s.io/v1alpha3/devicetaintrules/{name}" + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } + + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + + if (fieldValidation != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); + } + + if (force != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("force", force)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + final String[] localVarAccepts = { + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call patchDeviceTaintRuleValidateBeforeCall(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'name' is set + if (name == null) { + throw new ApiException("Missing the required parameter 'name' when calling patchDeviceTaintRule(Async)"); + } + + // verify the required parameter 'body' is set + if (body == null) { + throw new ApiException("Missing the required parameter 'body' when calling patchDeviceTaintRule(Async)"); + } + + + okhttp3.Call localVarCall = patchDeviceTaintRuleCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); + return localVarCall; + + } + + /** + * + * partially update the specified DeviceTaintRule + * @param name name of the DeviceTaintRule (required) + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) + * @return V1alpha3DeviceTaintRule + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public V1alpha3DeviceTaintRule patchDeviceTaintRule(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force) throws ApiException { + ApiResponse localVarResp = patchDeviceTaintRuleWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force); + return localVarResp.getData(); + } + + /** + * + * partially update the specified DeviceTaintRule + * @param name name of the DeviceTaintRule (required) + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) + * @return ApiResponse<V1alpha3DeviceTaintRule> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public ApiResponse patchDeviceTaintRuleWithHttpInfo(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force) throws ApiException { + okhttp3.Call localVarCall = patchDeviceTaintRuleValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * partially update the specified DeviceTaintRule + * @param name name of the DeviceTaintRule (required) + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public okhttp3.Call patchDeviceTaintRuleAsync(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = patchDeviceTaintRuleValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for patchNamespacedResourceClaim + * @param name name of the ResourceClaim (required) + * @param namespace object name and auth scope, such as for teams and projects (required) + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public okhttp3.Call patchNamespacedResourceClaimCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + Object localVarPostBody = body; + + // create path and map variables + String localVarPath = "/apis/resource.k8s.io/v1alpha3/namespaces/{namespace}/resourceclaims/{name}" + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } + + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + + if (fieldValidation != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); + } + + if (force != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("force", force)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + final String[] localVarAccepts = { + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call patchNamespacedResourceClaimValidateBeforeCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'name' is set + if (name == null) { + throw new ApiException("Missing the required parameter 'name' when calling patchNamespacedResourceClaim(Async)"); + } + + // verify the required parameter 'namespace' is set + if (namespace == null) { + throw new ApiException("Missing the required parameter 'namespace' when calling patchNamespacedResourceClaim(Async)"); + } + + // verify the required parameter 'body' is set + if (body == null) { + throw new ApiException("Missing the required parameter 'body' when calling patchNamespacedResourceClaim(Async)"); + } + + + okhttp3.Call localVarCall = patchNamespacedResourceClaimCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); + return localVarCall; + + } + + /** + * + * partially update the specified ResourceClaim + * @param name name of the ResourceClaim (required) + * @param namespace object name and auth scope, such as for teams and projects (required) + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) + * @return V1alpha3ResourceClaim + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public V1alpha3ResourceClaim patchNamespacedResourceClaim(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force) throws ApiException { + ApiResponse localVarResp = patchNamespacedResourceClaimWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force); + return localVarResp.getData(); + } + + /** + * + * partially update the specified ResourceClaim + * @param name name of the ResourceClaim (required) + * @param namespace object name and auth scope, such as for teams and projects (required) + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) + * @return ApiResponse<V1alpha3ResourceClaim> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public ApiResponse patchNamespacedResourceClaimWithHttpInfo(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force) throws ApiException { + okhttp3.Call localVarCall = patchNamespacedResourceClaimValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * partially update the specified ResourceClaim + * @param name name of the ResourceClaim (required) + * @param namespace object name and auth scope, such as for teams and projects (required) + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public okhttp3.Call patchNamespacedResourceClaimAsync(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = patchNamespacedResourceClaimValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for patchNamespacedResourceClaimStatus + * @param name name of the ResourceClaim (required) + * @param namespace object name and auth scope, such as for teams and projects (required) + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public okhttp3.Call patchNamespacedResourceClaimStatusCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + Object localVarPostBody = body; + + // create path and map variables + String localVarPath = "/apis/resource.k8s.io/v1alpha3/namespaces/{namespace}/resourceclaims/{name}/status" + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } + + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + + if (fieldValidation != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); + } + + if (force != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("force", force)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + final String[] localVarAccepts = { + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call patchNamespacedResourceClaimStatusValidateBeforeCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'name' is set + if (name == null) { + throw new ApiException("Missing the required parameter 'name' when calling patchNamespacedResourceClaimStatus(Async)"); + } + + // verify the required parameter 'namespace' is set + if (namespace == null) { + throw new ApiException("Missing the required parameter 'namespace' when calling patchNamespacedResourceClaimStatus(Async)"); + } + + // verify the required parameter 'body' is set + if (body == null) { + throw new ApiException("Missing the required parameter 'body' when calling patchNamespacedResourceClaimStatus(Async)"); + } + + + okhttp3.Call localVarCall = patchNamespacedResourceClaimStatusCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); + return localVarCall; + + } + + /** + * + * partially update status of the specified ResourceClaim + * @param name name of the ResourceClaim (required) + * @param namespace object name and auth scope, such as for teams and projects (required) + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) + * @return V1alpha3ResourceClaim + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public V1alpha3ResourceClaim patchNamespacedResourceClaimStatus(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force) throws ApiException { + ApiResponse localVarResp = patchNamespacedResourceClaimStatusWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force); + return localVarResp.getData(); + } + + /** + * + * partially update status of the specified ResourceClaim + * @param name name of the ResourceClaim (required) + * @param namespace object name and auth scope, such as for teams and projects (required) + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) + * @return ApiResponse<V1alpha3ResourceClaim> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public ApiResponse patchNamespacedResourceClaimStatusWithHttpInfo(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force) throws ApiException { + okhttp3.Call localVarCall = patchNamespacedResourceClaimStatusValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * partially update status of the specified ResourceClaim + * @param name name of the ResourceClaim (required) + * @param namespace object name and auth scope, such as for teams and projects (required) + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public okhttp3.Call patchNamespacedResourceClaimStatusAsync(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = patchNamespacedResourceClaimStatusValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for patchNamespacedResourceClaimTemplate + * @param name name of the ResourceClaimTemplate (required) + * @param namespace object name and auth scope, such as for teams and projects (required) + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public okhttp3.Call patchNamespacedResourceClaimTemplateCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + Object localVarPostBody = body; + + // create path and map variables + String localVarPath = "/apis/resource.k8s.io/v1alpha3/namespaces/{namespace}/resourceclaimtemplates/{name}" + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } + + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + + if (fieldValidation != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); + } + + if (force != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("force", force)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + final String[] localVarAccepts = { + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call patchNamespacedResourceClaimTemplateValidateBeforeCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'name' is set + if (name == null) { + throw new ApiException("Missing the required parameter 'name' when calling patchNamespacedResourceClaimTemplate(Async)"); + } + + // verify the required parameter 'namespace' is set + if (namespace == null) { + throw new ApiException("Missing the required parameter 'namespace' when calling patchNamespacedResourceClaimTemplate(Async)"); + } + + // verify the required parameter 'body' is set + if (body == null) { + throw new ApiException("Missing the required parameter 'body' when calling patchNamespacedResourceClaimTemplate(Async)"); + } + + + okhttp3.Call localVarCall = patchNamespacedResourceClaimTemplateCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); + return localVarCall; + + } + + /** + * + * partially update the specified ResourceClaimTemplate + * @param name name of the ResourceClaimTemplate (required) + * @param namespace object name and auth scope, such as for teams and projects (required) + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) + * @return V1alpha3ResourceClaimTemplate + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public V1alpha3ResourceClaimTemplate patchNamespacedResourceClaimTemplate(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force) throws ApiException { + ApiResponse localVarResp = patchNamespacedResourceClaimTemplateWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force); + return localVarResp.getData(); + } + + /** + * + * partially update the specified ResourceClaimTemplate + * @param name name of the ResourceClaimTemplate (required) + * @param namespace object name and auth scope, such as for teams and projects (required) + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) + * @return ApiResponse<V1alpha3ResourceClaimTemplate> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public ApiResponse patchNamespacedResourceClaimTemplateWithHttpInfo(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force) throws ApiException { + okhttp3.Call localVarCall = patchNamespacedResourceClaimTemplateValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * partially update the specified ResourceClaimTemplate + * @param name name of the ResourceClaimTemplate (required) + * @param namespace object name and auth scope, such as for teams and projects (required) + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public okhttp3.Call patchNamespacedResourceClaimTemplateAsync(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = patchNamespacedResourceClaimTemplateValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for patchResourceSlice + * @param name name of the ResourceSlice (required) + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public okhttp3.Call patchResourceSliceCall(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + Object localVarPostBody = body; + + // create path and map variables + String localVarPath = "/apis/resource.k8s.io/v1alpha3/resourceslices/{name}" + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } + + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + + if (fieldValidation != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); + } + + if (force != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("force", force)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + final String[] localVarAccepts = { + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call patchResourceSliceValidateBeforeCall(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'name' is set + if (name == null) { + throw new ApiException("Missing the required parameter 'name' when calling patchResourceSlice(Async)"); + } + + // verify the required parameter 'body' is set + if (body == null) { + throw new ApiException("Missing the required parameter 'body' when calling patchResourceSlice(Async)"); + } + + + okhttp3.Call localVarCall = patchResourceSliceCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); + return localVarCall; + + } + + /** + * + * partially update the specified ResourceSlice + * @param name name of the ResourceSlice (required) + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) + * @return V1alpha3ResourceSlice + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public V1alpha3ResourceSlice patchResourceSlice(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force) throws ApiException { + ApiResponse localVarResp = patchResourceSliceWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force); + return localVarResp.getData(); + } + + /** + * + * partially update the specified ResourceSlice + * @param name name of the ResourceSlice (required) + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) + * @return ApiResponse<V1alpha3ResourceSlice> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public ApiResponse patchResourceSliceWithHttpInfo(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force) throws ApiException { + okhttp3.Call localVarCall = patchResourceSliceValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * partially update the specified ResourceSlice + * @param name name of the ResourceSlice (required) + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public okhttp3.Call patchResourceSliceAsync(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = patchResourceSliceValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for readDeviceClass + * @param name name of the DeviceClass (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call readDeviceClassCall(String name, String pretty, final ApiCallback _callback) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/apis/resource.k8s.io/v1alpha3/deviceclasses/{name}" + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + final String[] localVarAccepts = { + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call readDeviceClassValidateBeforeCall(String name, String pretty, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'name' is set + if (name == null) { + throw new ApiException("Missing the required parameter 'name' when calling readDeviceClass(Async)"); + } + + + okhttp3.Call localVarCall = readDeviceClassCall(name, pretty, _callback); + return localVarCall; + + } + + /** + * + * read the specified DeviceClass + * @param name name of the DeviceClass (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @return V1alpha3DeviceClass + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public V1alpha3DeviceClass readDeviceClass(String name, String pretty) throws ApiException { + ApiResponse localVarResp = readDeviceClassWithHttpInfo(name, pretty); + return localVarResp.getData(); + } + + /** + * + * read the specified DeviceClass + * @param name name of the DeviceClass (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @return ApiResponse<V1alpha3DeviceClass> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public ApiResponse readDeviceClassWithHttpInfo(String name, String pretty) throws ApiException { + okhttp3.Call localVarCall = readDeviceClassValidateBeforeCall(name, pretty, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * read the specified DeviceClass + * @param name name of the DeviceClass (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call readDeviceClassAsync(String name, String pretty, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = readDeviceClassValidateBeforeCall(name, pretty, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for readDeviceTaintRule + * @param name name of the DeviceTaintRule (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call readDeviceTaintRuleCall(String name, String pretty, final ApiCallback _callback) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/apis/resource.k8s.io/v1alpha3/devicetaintrules/{name}" + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + final String[] localVarAccepts = { + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call readDeviceTaintRuleValidateBeforeCall(String name, String pretty, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'name' is set + if (name == null) { + throw new ApiException("Missing the required parameter 'name' when calling readDeviceTaintRule(Async)"); + } + + + okhttp3.Call localVarCall = readDeviceTaintRuleCall(name, pretty, _callback); + return localVarCall; + + } + + /** + * + * read the specified DeviceTaintRule + * @param name name of the DeviceTaintRule (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @return V1alpha3DeviceTaintRule + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public V1alpha3DeviceTaintRule readDeviceTaintRule(String name, String pretty) throws ApiException { + ApiResponse localVarResp = readDeviceTaintRuleWithHttpInfo(name, pretty); + return localVarResp.getData(); + } + + /** + * + * read the specified DeviceTaintRule + * @param name name of the DeviceTaintRule (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @return ApiResponse<V1alpha3DeviceTaintRule> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public ApiResponse readDeviceTaintRuleWithHttpInfo(String name, String pretty) throws ApiException { + okhttp3.Call localVarCall = readDeviceTaintRuleValidateBeforeCall(name, pretty, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * read the specified DeviceTaintRule + * @param name name of the DeviceTaintRule (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call readDeviceTaintRuleAsync(String name, String pretty, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = readDeviceTaintRuleValidateBeforeCall(name, pretty, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for readNamespacedResourceClaim + * @param name name of the ResourceClaim (required) + * @param namespace object name and auth scope, such as for teams and projects (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call readNamespacedResourceClaimCall(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/apis/resource.k8s.io/v1alpha3/namespaces/{namespace}/resourceclaims/{name}" + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + final String[] localVarAccepts = { + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call readNamespacedResourceClaimValidateBeforeCall(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'name' is set + if (name == null) { + throw new ApiException("Missing the required parameter 'name' when calling readNamespacedResourceClaim(Async)"); + } + + // verify the required parameter 'namespace' is set + if (namespace == null) { + throw new ApiException("Missing the required parameter 'namespace' when calling readNamespacedResourceClaim(Async)"); + } + + + okhttp3.Call localVarCall = readNamespacedResourceClaimCall(name, namespace, pretty, _callback); + return localVarCall; + + } + + /** + * + * read the specified ResourceClaim + * @param name name of the ResourceClaim (required) + * @param namespace object name and auth scope, such as for teams and projects (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @return V1alpha3ResourceClaim + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public V1alpha3ResourceClaim readNamespacedResourceClaim(String name, String namespace, String pretty) throws ApiException { + ApiResponse localVarResp = readNamespacedResourceClaimWithHttpInfo(name, namespace, pretty); + return localVarResp.getData(); + } + + /** + * + * read the specified ResourceClaim + * @param name name of the ResourceClaim (required) + * @param namespace object name and auth scope, such as for teams and projects (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @return ApiResponse<V1alpha3ResourceClaim> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public ApiResponse readNamespacedResourceClaimWithHttpInfo(String name, String namespace, String pretty) throws ApiException { + okhttp3.Call localVarCall = readNamespacedResourceClaimValidateBeforeCall(name, namespace, pretty, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * read the specified ResourceClaim + * @param name name of the ResourceClaim (required) + * @param namespace object name and auth scope, such as for teams and projects (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call readNamespacedResourceClaimAsync(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = readNamespacedResourceClaimValidateBeforeCall(name, namespace, pretty, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for readNamespacedResourceClaimStatus + * @param name name of the ResourceClaim (required) + * @param namespace object name and auth scope, such as for teams and projects (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call readNamespacedResourceClaimStatusCall(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/apis/resource.k8s.io/v1alpha3/namespaces/{namespace}/resourceclaims/{name}/status" + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + final String[] localVarAccepts = { + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call readNamespacedResourceClaimStatusValidateBeforeCall(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'name' is set + if (name == null) { + throw new ApiException("Missing the required parameter 'name' when calling readNamespacedResourceClaimStatus(Async)"); + } + + // verify the required parameter 'namespace' is set + if (namespace == null) { + throw new ApiException("Missing the required parameter 'namespace' when calling readNamespacedResourceClaimStatus(Async)"); + } + + + okhttp3.Call localVarCall = readNamespacedResourceClaimStatusCall(name, namespace, pretty, _callback); + return localVarCall; + + } + + /** + * + * read status of the specified ResourceClaim + * @param name name of the ResourceClaim (required) + * @param namespace object name and auth scope, such as for teams and projects (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @return V1alpha3ResourceClaim + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public V1alpha3ResourceClaim readNamespacedResourceClaimStatus(String name, String namespace, String pretty) throws ApiException { + ApiResponse localVarResp = readNamespacedResourceClaimStatusWithHttpInfo(name, namespace, pretty); + return localVarResp.getData(); + } + + /** + * + * read status of the specified ResourceClaim + * @param name name of the ResourceClaim (required) + * @param namespace object name and auth scope, such as for teams and projects (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @return ApiResponse<V1alpha3ResourceClaim> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public ApiResponse readNamespacedResourceClaimStatusWithHttpInfo(String name, String namespace, String pretty) throws ApiException { + okhttp3.Call localVarCall = readNamespacedResourceClaimStatusValidateBeforeCall(name, namespace, pretty, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * read status of the specified ResourceClaim + * @param name name of the ResourceClaim (required) + * @param namespace object name and auth scope, such as for teams and projects (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call readNamespacedResourceClaimStatusAsync(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = readNamespacedResourceClaimStatusValidateBeforeCall(name, namespace, pretty, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for readNamespacedResourceClaimTemplate + * @param name name of the ResourceClaimTemplate (required) + * @param namespace object name and auth scope, such as for teams and projects (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call readNamespacedResourceClaimTemplateCall(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/apis/resource.k8s.io/v1alpha3/namespaces/{namespace}/resourceclaimtemplates/{name}" + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + final String[] localVarAccepts = { + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call readNamespacedResourceClaimTemplateValidateBeforeCall(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'name' is set + if (name == null) { + throw new ApiException("Missing the required parameter 'name' when calling readNamespacedResourceClaimTemplate(Async)"); + } + + // verify the required parameter 'namespace' is set + if (namespace == null) { + throw new ApiException("Missing the required parameter 'namespace' when calling readNamespacedResourceClaimTemplate(Async)"); + } + + + okhttp3.Call localVarCall = readNamespacedResourceClaimTemplateCall(name, namespace, pretty, _callback); + return localVarCall; + + } + + /** + * + * read the specified ResourceClaimTemplate + * @param name name of the ResourceClaimTemplate (required) + * @param namespace object name and auth scope, such as for teams and projects (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @return V1alpha3ResourceClaimTemplate + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public V1alpha3ResourceClaimTemplate readNamespacedResourceClaimTemplate(String name, String namespace, String pretty) throws ApiException { + ApiResponse localVarResp = readNamespacedResourceClaimTemplateWithHttpInfo(name, namespace, pretty); + return localVarResp.getData(); + } + + /** + * + * read the specified ResourceClaimTemplate + * @param name name of the ResourceClaimTemplate (required) + * @param namespace object name and auth scope, such as for teams and projects (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @return ApiResponse<V1alpha3ResourceClaimTemplate> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public ApiResponse readNamespacedResourceClaimTemplateWithHttpInfo(String name, String namespace, String pretty) throws ApiException { + okhttp3.Call localVarCall = readNamespacedResourceClaimTemplateValidateBeforeCall(name, namespace, pretty, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * read the specified ResourceClaimTemplate + * @param name name of the ResourceClaimTemplate (required) + * @param namespace object name and auth scope, such as for teams and projects (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call readNamespacedResourceClaimTemplateAsync(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = readNamespacedResourceClaimTemplateValidateBeforeCall(name, namespace, pretty, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for readResourceSlice + * @param name name of the ResourceSlice (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call readResourceSliceCall(String name, String pretty, final ApiCallback _callback) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/apis/resource.k8s.io/v1alpha3/resourceslices/{name}" + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + final String[] localVarAccepts = { + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call readResourceSliceValidateBeforeCall(String name, String pretty, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'name' is set + if (name == null) { + throw new ApiException("Missing the required parameter 'name' when calling readResourceSlice(Async)"); + } + + + okhttp3.Call localVarCall = readResourceSliceCall(name, pretty, _callback); + return localVarCall; + + } + + /** + * + * read the specified ResourceSlice + * @param name name of the ResourceSlice (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @return V1alpha3ResourceSlice + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public V1alpha3ResourceSlice readResourceSlice(String name, String pretty) throws ApiException { + ApiResponse localVarResp = readResourceSliceWithHttpInfo(name, pretty); + return localVarResp.getData(); + } + + /** + * + * read the specified ResourceSlice + * @param name name of the ResourceSlice (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @return ApiResponse<V1alpha3ResourceSlice> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public ApiResponse readResourceSliceWithHttpInfo(String name, String pretty) throws ApiException { + okhttp3.Call localVarCall = readResourceSliceValidateBeforeCall(name, pretty, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * read the specified ResourceSlice + * @param name name of the ResourceSlice (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call readResourceSliceAsync(String name, String pretty, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = readResourceSliceValidateBeforeCall(name, pretty, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for replaceDeviceClass + * @param name name of the DeviceClass (required) + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public okhttp3.Call replaceDeviceClassCall(String name, V1alpha3DeviceClass body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + Object localVarPostBody = body; + + // create path and map variables + String localVarPath = "/apis/resource.k8s.io/v1alpha3/deviceclasses/{name}" + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } + + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + + if (fieldValidation != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + final String[] localVarAccepts = { + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call replaceDeviceClassValidateBeforeCall(String name, V1alpha3DeviceClass body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'name' is set + if (name == null) { + throw new ApiException("Missing the required parameter 'name' when calling replaceDeviceClass(Async)"); + } + + // verify the required parameter 'body' is set + if (body == null) { + throw new ApiException("Missing the required parameter 'body' when calling replaceDeviceClass(Async)"); + } + + + okhttp3.Call localVarCall = replaceDeviceClassCall(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); + return localVarCall; + + } + + /** + * + * replace the specified DeviceClass + * @param name name of the DeviceClass (required) + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @return V1alpha3DeviceClass + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public V1alpha3DeviceClass replaceDeviceClass(String name, V1alpha3DeviceClass body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { + ApiResponse localVarResp = replaceDeviceClassWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation); + return localVarResp.getData(); + } + + /** + * + * replace the specified DeviceClass + * @param name name of the DeviceClass (required) + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @return ApiResponse<V1alpha3DeviceClass> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public ApiResponse replaceDeviceClassWithHttpInfo(String name, V1alpha3DeviceClass body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { + okhttp3.Call localVarCall = replaceDeviceClassValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * replace the specified DeviceClass + * @param name name of the DeviceClass (required) + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public okhttp3.Call replaceDeviceClassAsync(String name, V1alpha3DeviceClass body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = replaceDeviceClassValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for replaceDeviceTaintRule + * @param name name of the DeviceTaintRule (required) + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public okhttp3.Call replaceDeviceTaintRuleCall(String name, V1alpha3DeviceTaintRule body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + Object localVarPostBody = body; + + // create path and map variables + String localVarPath = "/apis/resource.k8s.io/v1alpha3/devicetaintrules/{name}" + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } + + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + + if (fieldValidation != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + final String[] localVarAccepts = { + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call replaceDeviceTaintRuleValidateBeforeCall(String name, V1alpha3DeviceTaintRule body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'name' is set + if (name == null) { + throw new ApiException("Missing the required parameter 'name' when calling replaceDeviceTaintRule(Async)"); + } + + // verify the required parameter 'body' is set + if (body == null) { + throw new ApiException("Missing the required parameter 'body' when calling replaceDeviceTaintRule(Async)"); + } + + + okhttp3.Call localVarCall = replaceDeviceTaintRuleCall(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); + return localVarCall; + + } + + /** + * + * replace the specified DeviceTaintRule + * @param name name of the DeviceTaintRule (required) + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @return V1alpha3DeviceTaintRule + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public V1alpha3DeviceTaintRule replaceDeviceTaintRule(String name, V1alpha3DeviceTaintRule body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { + ApiResponse localVarResp = replaceDeviceTaintRuleWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation); + return localVarResp.getData(); + } + + /** + * + * replace the specified DeviceTaintRule + * @param name name of the DeviceTaintRule (required) + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @return ApiResponse<V1alpha3DeviceTaintRule> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public ApiResponse replaceDeviceTaintRuleWithHttpInfo(String name, V1alpha3DeviceTaintRule body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { + okhttp3.Call localVarCall = replaceDeviceTaintRuleValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * replace the specified DeviceTaintRule + * @param name name of the DeviceTaintRule (required) + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public okhttp3.Call replaceDeviceTaintRuleAsync(String name, V1alpha3DeviceTaintRule body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = replaceDeviceTaintRuleValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for replaceNamespacedResourceClaim + * @param name name of the ResourceClaim (required) + * @param namespace object name and auth scope, such as for teams and projects (required) + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public okhttp3.Call replaceNamespacedResourceClaimCall(String name, String namespace, V1alpha3ResourceClaim body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + Object localVarPostBody = body; + + // create path and map variables + String localVarPath = "/apis/resource.k8s.io/v1alpha3/namespaces/{namespace}/resourceclaims/{name}" + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } + + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + + if (fieldValidation != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + final String[] localVarAccepts = { + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call replaceNamespacedResourceClaimValidateBeforeCall(String name, String namespace, V1alpha3ResourceClaim body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'name' is set + if (name == null) { + throw new ApiException("Missing the required parameter 'name' when calling replaceNamespacedResourceClaim(Async)"); + } + + // verify the required parameter 'namespace' is set + if (namespace == null) { + throw new ApiException("Missing the required parameter 'namespace' when calling replaceNamespacedResourceClaim(Async)"); + } + + // verify the required parameter 'body' is set + if (body == null) { + throw new ApiException("Missing the required parameter 'body' when calling replaceNamespacedResourceClaim(Async)"); + } + + + okhttp3.Call localVarCall = replaceNamespacedResourceClaimCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); + return localVarCall; + + } + + /** + * + * replace the specified ResourceClaim + * @param name name of the ResourceClaim (required) + * @param namespace object name and auth scope, such as for teams and projects (required) + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @return V1alpha3ResourceClaim + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public V1alpha3ResourceClaim replaceNamespacedResourceClaim(String name, String namespace, V1alpha3ResourceClaim body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { + ApiResponse localVarResp = replaceNamespacedResourceClaimWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation); + return localVarResp.getData(); + } + + /** + * + * replace the specified ResourceClaim + * @param name name of the ResourceClaim (required) + * @param namespace object name and auth scope, such as for teams and projects (required) + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @return ApiResponse<V1alpha3ResourceClaim> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public ApiResponse replaceNamespacedResourceClaimWithHttpInfo(String name, String namespace, V1alpha3ResourceClaim body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { + okhttp3.Call localVarCall = replaceNamespacedResourceClaimValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * replace the specified ResourceClaim + * @param name name of the ResourceClaim (required) + * @param namespace object name and auth scope, such as for teams and projects (required) + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public okhttp3.Call replaceNamespacedResourceClaimAsync(String name, String namespace, V1alpha3ResourceClaim body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = replaceNamespacedResourceClaimValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for replaceNamespacedResourceClaimStatus + * @param name name of the ResourceClaim (required) + * @param namespace object name and auth scope, such as for teams and projects (required) + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public okhttp3.Call replaceNamespacedResourceClaimStatusCall(String name, String namespace, V1alpha3ResourceClaim body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + Object localVarPostBody = body; + + // create path and map variables + String localVarPath = "/apis/resource.k8s.io/v1alpha3/namespaces/{namespace}/resourceclaims/{name}/status" + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } + + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + + if (fieldValidation != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + final String[] localVarAccepts = { + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call replaceNamespacedResourceClaimStatusValidateBeforeCall(String name, String namespace, V1alpha3ResourceClaim body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'name' is set + if (name == null) { + throw new ApiException("Missing the required parameter 'name' when calling replaceNamespacedResourceClaimStatus(Async)"); + } + + // verify the required parameter 'namespace' is set + if (namespace == null) { + throw new ApiException("Missing the required parameter 'namespace' when calling replaceNamespacedResourceClaimStatus(Async)"); + } + + // verify the required parameter 'body' is set + if (body == null) { + throw new ApiException("Missing the required parameter 'body' when calling replaceNamespacedResourceClaimStatus(Async)"); + } + + + okhttp3.Call localVarCall = replaceNamespacedResourceClaimStatusCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); + return localVarCall; + + } + + /** + * + * replace status of the specified ResourceClaim + * @param name name of the ResourceClaim (required) + * @param namespace object name and auth scope, such as for teams and projects (required) + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @return V1alpha3ResourceClaim + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public V1alpha3ResourceClaim replaceNamespacedResourceClaimStatus(String name, String namespace, V1alpha3ResourceClaim body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { + ApiResponse localVarResp = replaceNamespacedResourceClaimStatusWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation); + return localVarResp.getData(); + } + + /** + * + * replace status of the specified ResourceClaim + * @param name name of the ResourceClaim (required) + * @param namespace object name and auth scope, such as for teams and projects (required) + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @return ApiResponse<V1alpha3ResourceClaim> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public ApiResponse replaceNamespacedResourceClaimStatusWithHttpInfo(String name, String namespace, V1alpha3ResourceClaim body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { + okhttp3.Call localVarCall = replaceNamespacedResourceClaimStatusValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * replace status of the specified ResourceClaim + * @param name name of the ResourceClaim (required) + * @param namespace object name and auth scope, such as for teams and projects (required) + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public okhttp3.Call replaceNamespacedResourceClaimStatusAsync(String name, String namespace, V1alpha3ResourceClaim body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = replaceNamespacedResourceClaimStatusValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for replaceNamespacedResourceClaimTemplate + * @param name name of the ResourceClaimTemplate (required) + * @param namespace object name and auth scope, such as for teams and projects (required) + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public okhttp3.Call replaceNamespacedResourceClaimTemplateCall(String name, String namespace, V1alpha3ResourceClaimTemplate body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + Object localVarPostBody = body; + + // create path and map variables + String localVarPath = "/apis/resource.k8s.io/v1alpha3/namespaces/{namespace}/resourceclaimtemplates/{name}" + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } + + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + + if (fieldValidation != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + final String[] localVarAccepts = { + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call replaceNamespacedResourceClaimTemplateValidateBeforeCall(String name, String namespace, V1alpha3ResourceClaimTemplate body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'name' is set + if (name == null) { + throw new ApiException("Missing the required parameter 'name' when calling replaceNamespacedResourceClaimTemplate(Async)"); + } + + // verify the required parameter 'namespace' is set + if (namespace == null) { + throw new ApiException("Missing the required parameter 'namespace' when calling replaceNamespacedResourceClaimTemplate(Async)"); + } + + // verify the required parameter 'body' is set + if (body == null) { + throw new ApiException("Missing the required parameter 'body' when calling replaceNamespacedResourceClaimTemplate(Async)"); + } + + + okhttp3.Call localVarCall = replaceNamespacedResourceClaimTemplateCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); + return localVarCall; + + } + + /** + * + * replace the specified ResourceClaimTemplate + * @param name name of the ResourceClaimTemplate (required) + * @param namespace object name and auth scope, such as for teams and projects (required) + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @return V1alpha3ResourceClaimTemplate + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public V1alpha3ResourceClaimTemplate replaceNamespacedResourceClaimTemplate(String name, String namespace, V1alpha3ResourceClaimTemplate body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { + ApiResponse localVarResp = replaceNamespacedResourceClaimTemplateWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation); + return localVarResp.getData(); + } + + /** + * + * replace the specified ResourceClaimTemplate + * @param name name of the ResourceClaimTemplate (required) + * @param namespace object name and auth scope, such as for teams and projects (required) + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @return ApiResponse<V1alpha3ResourceClaimTemplate> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public ApiResponse replaceNamespacedResourceClaimTemplateWithHttpInfo(String name, String namespace, V1alpha3ResourceClaimTemplate body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { + okhttp3.Call localVarCall = replaceNamespacedResourceClaimTemplateValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * replace the specified ResourceClaimTemplate + * @param name name of the ResourceClaimTemplate (required) + * @param namespace object name and auth scope, such as for teams and projects (required) + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public okhttp3.Call replaceNamespacedResourceClaimTemplateAsync(String name, String namespace, V1alpha3ResourceClaimTemplate body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = replaceNamespacedResourceClaimTemplateValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for replaceResourceSlice + * @param name name of the ResourceSlice (required) + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public okhttp3.Call replaceResourceSliceCall(String name, V1alpha3ResourceSlice body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + Object localVarPostBody = body; + + // create path and map variables + String localVarPath = "/apis/resource.k8s.io/v1alpha3/resourceslices/{name}" + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } + + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + + if (fieldValidation != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + final String[] localVarAccepts = { + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call replaceResourceSliceValidateBeforeCall(String name, V1alpha3ResourceSlice body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'name' is set + if (name == null) { + throw new ApiException("Missing the required parameter 'name' when calling replaceResourceSlice(Async)"); + } + + // verify the required parameter 'body' is set + if (body == null) { + throw new ApiException("Missing the required parameter 'body' when calling replaceResourceSlice(Async)"); + } + + + okhttp3.Call localVarCall = replaceResourceSliceCall(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); + return localVarCall; + + } + + /** + * + * replace the specified ResourceSlice + * @param name name of the ResourceSlice (required) + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @return V1alpha3ResourceSlice + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public V1alpha3ResourceSlice replaceResourceSlice(String name, V1alpha3ResourceSlice body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { + ApiResponse localVarResp = replaceResourceSliceWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation); + return localVarResp.getData(); + } + + /** + * + * replace the specified ResourceSlice + * @param name name of the ResourceSlice (required) + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @return ApiResponse<V1alpha3ResourceSlice> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public ApiResponse replaceResourceSliceWithHttpInfo(String name, V1alpha3ResourceSlice body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { + okhttp3.Call localVarCall = replaceResourceSliceValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * replace the specified ResourceSlice + * @param name name of the ResourceSlice (required) + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public okhttp3.Call replaceResourceSliceAsync(String name, V1alpha3ResourceSlice body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = replaceResourceSliceValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } +} diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/ResourceV1beta1Api.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/ResourceV1beta1Api.java new file mode 100644 index 0000000000..74396fa8cc --- /dev/null +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/ResourceV1beta1Api.java @@ -0,0 +1,5939 @@ +/* +Copyright 2025 The Kubernetes Authors. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at +http://www.apache.org/licenses/LICENSE-2.0 +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ +package io.kubernetes.client.openapi.apis; + +import io.kubernetes.client.openapi.ApiCallback; +import io.kubernetes.client.openapi.ApiClient; +import io.kubernetes.client.openapi.ApiException; +import io.kubernetes.client.openapi.ApiResponse; +import io.kubernetes.client.openapi.Configuration; +import io.kubernetes.client.openapi.Pair; +import io.kubernetes.client.openapi.ProgressRequestBody; +import io.kubernetes.client.openapi.ProgressResponseBody; + +import com.google.gson.reflect.TypeToken; + +import java.io.IOException; + + +import io.kubernetes.client.openapi.models.V1APIResourceList; +import io.kubernetes.client.openapi.models.V1DeleteOptions; +import io.kubernetes.client.custom.V1Patch; +import io.kubernetes.client.openapi.models.V1Status; +import io.kubernetes.client.openapi.models.V1beta1DeviceClass; +import io.kubernetes.client.openapi.models.V1beta1DeviceClassList; +import io.kubernetes.client.openapi.models.V1beta1ResourceClaim; +import io.kubernetes.client.openapi.models.V1beta1ResourceClaimList; +import io.kubernetes.client.openapi.models.V1beta1ResourceClaimTemplate; +import io.kubernetes.client.openapi.models.V1beta1ResourceClaimTemplateList; +import io.kubernetes.client.openapi.models.V1beta1ResourceSlice; +import io.kubernetes.client.openapi.models.V1beta1ResourceSliceList; + +import java.lang.reflect.Type; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +public class ResourceV1beta1Api { + private ApiClient localVarApiClient; + + public ResourceV1beta1Api() { + this(Configuration.getDefaultApiClient()); + } + + public ResourceV1beta1Api(ApiClient apiClient) { + this.localVarApiClient = apiClient; + } + + public ApiClient getApiClient() { + return localVarApiClient; + } + + public void setApiClient(ApiClient apiClient) { + this.localVarApiClient = apiClient; + } + + /** + * Build call for createDeviceClass + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
+ */ + public okhttp3.Call createDeviceClassCall(V1beta1DeviceClass body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + Object localVarPostBody = body; + + // create path and map variables + String localVarPath = "/apis/resource.k8s.io/v1beta1/deviceclasses"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } + + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + + if (fieldValidation != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + final String[] localVarAccepts = { + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call createDeviceClassValidateBeforeCall(V1beta1DeviceClass body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'body' is set + if (body == null) { + throw new ApiException("Missing the required parameter 'body' when calling createDeviceClass(Async)"); + } + + + okhttp3.Call localVarCall = createDeviceClassCall(body, pretty, dryRun, fieldManager, fieldValidation, _callback); + return localVarCall; + + } + + /** + * + * create a DeviceClass + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @return V1beta1DeviceClass + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
+ */ + public V1beta1DeviceClass createDeviceClass(V1beta1DeviceClass body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { + ApiResponse localVarResp = createDeviceClassWithHttpInfo(body, pretty, dryRun, fieldManager, fieldValidation); + return localVarResp.getData(); + } + + /** + * + * create a DeviceClass + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @return ApiResponse<V1beta1DeviceClass> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
+ */ + public ApiResponse createDeviceClassWithHttpInfo(V1beta1DeviceClass body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { + okhttp3.Call localVarCall = createDeviceClassValidateBeforeCall(body, pretty, dryRun, fieldManager, fieldValidation, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * create a DeviceClass + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
+ */ + public okhttp3.Call createDeviceClassAsync(V1beta1DeviceClass body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = createDeviceClassValidateBeforeCall(body, pretty, dryRun, fieldManager, fieldValidation, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for createNamespacedResourceClaim + * @param namespace object name and auth scope, such as for teams and projects (required) + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
+ */ + public okhttp3.Call createNamespacedResourceClaimCall(String namespace, V1beta1ResourceClaim body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + Object localVarPostBody = body; + + // create path and map variables + String localVarPath = "/apis/resource.k8s.io/v1beta1/namespaces/{namespace}/resourceclaims" + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } + + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + + if (fieldValidation != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + final String[] localVarAccepts = { + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call createNamespacedResourceClaimValidateBeforeCall(String namespace, V1beta1ResourceClaim body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'namespace' is set + if (namespace == null) { + throw new ApiException("Missing the required parameter 'namespace' when calling createNamespacedResourceClaim(Async)"); + } + + // verify the required parameter 'body' is set + if (body == null) { + throw new ApiException("Missing the required parameter 'body' when calling createNamespacedResourceClaim(Async)"); + } + + + okhttp3.Call localVarCall = createNamespacedResourceClaimCall(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); + return localVarCall; + + } + + /** + * + * create a ResourceClaim + * @param namespace object name and auth scope, such as for teams and projects (required) + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @return V1beta1ResourceClaim + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
+ */ + public V1beta1ResourceClaim createNamespacedResourceClaim(String namespace, V1beta1ResourceClaim body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { + ApiResponse localVarResp = createNamespacedResourceClaimWithHttpInfo(namespace, body, pretty, dryRun, fieldManager, fieldValidation); + return localVarResp.getData(); + } + + /** + * + * create a ResourceClaim + * @param namespace object name and auth scope, such as for teams and projects (required) + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @return ApiResponse<V1beta1ResourceClaim> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
+ */ + public ApiResponse createNamespacedResourceClaimWithHttpInfo(String namespace, V1beta1ResourceClaim body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { + okhttp3.Call localVarCall = createNamespacedResourceClaimValidateBeforeCall(namespace, body, pretty, dryRun, fieldManager, fieldValidation, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * create a ResourceClaim + * @param namespace object name and auth scope, such as for teams and projects (required) + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
+ */ + public okhttp3.Call createNamespacedResourceClaimAsync(String namespace, V1beta1ResourceClaim body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = createNamespacedResourceClaimValidateBeforeCall(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for createNamespacedResourceClaimTemplate + * @param namespace object name and auth scope, such as for teams and projects (required) + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
+ */ + public okhttp3.Call createNamespacedResourceClaimTemplateCall(String namespace, V1beta1ResourceClaimTemplate body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + Object localVarPostBody = body; + + // create path and map variables + String localVarPath = "/apis/resource.k8s.io/v1beta1/namespaces/{namespace}/resourceclaimtemplates" + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } + + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + + if (fieldValidation != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + final String[] localVarAccepts = { + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call createNamespacedResourceClaimTemplateValidateBeforeCall(String namespace, V1beta1ResourceClaimTemplate body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'namespace' is set + if (namespace == null) { + throw new ApiException("Missing the required parameter 'namespace' when calling createNamespacedResourceClaimTemplate(Async)"); + } + + // verify the required parameter 'body' is set + if (body == null) { + throw new ApiException("Missing the required parameter 'body' when calling createNamespacedResourceClaimTemplate(Async)"); + } + + + okhttp3.Call localVarCall = createNamespacedResourceClaimTemplateCall(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); + return localVarCall; + + } + + /** + * + * create a ResourceClaimTemplate + * @param namespace object name and auth scope, such as for teams and projects (required) + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @return V1beta1ResourceClaimTemplate + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
+ */ + public V1beta1ResourceClaimTemplate createNamespacedResourceClaimTemplate(String namespace, V1beta1ResourceClaimTemplate body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { + ApiResponse localVarResp = createNamespacedResourceClaimTemplateWithHttpInfo(namespace, body, pretty, dryRun, fieldManager, fieldValidation); + return localVarResp.getData(); + } + + /** + * + * create a ResourceClaimTemplate + * @param namespace object name and auth scope, such as for teams and projects (required) + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @return ApiResponse<V1beta1ResourceClaimTemplate> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
+ */ + public ApiResponse createNamespacedResourceClaimTemplateWithHttpInfo(String namespace, V1beta1ResourceClaimTemplate body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { + okhttp3.Call localVarCall = createNamespacedResourceClaimTemplateValidateBeforeCall(namespace, body, pretty, dryRun, fieldManager, fieldValidation, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * create a ResourceClaimTemplate + * @param namespace object name and auth scope, such as for teams and projects (required) + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
+ */ + public okhttp3.Call createNamespacedResourceClaimTemplateAsync(String namespace, V1beta1ResourceClaimTemplate body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = createNamespacedResourceClaimTemplateValidateBeforeCall(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for createResourceSlice + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
+ */ + public okhttp3.Call createResourceSliceCall(V1beta1ResourceSlice body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + Object localVarPostBody = body; + + // create path and map variables + String localVarPath = "/apis/resource.k8s.io/v1beta1/resourceslices"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } + + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + + if (fieldValidation != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + final String[] localVarAccepts = { + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call createResourceSliceValidateBeforeCall(V1beta1ResourceSlice body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'body' is set + if (body == null) { + throw new ApiException("Missing the required parameter 'body' when calling createResourceSlice(Async)"); + } + + + okhttp3.Call localVarCall = createResourceSliceCall(body, pretty, dryRun, fieldManager, fieldValidation, _callback); + return localVarCall; + + } + + /** + * + * create a ResourceSlice + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @return V1beta1ResourceSlice + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
+ */ + public V1beta1ResourceSlice createResourceSlice(V1beta1ResourceSlice body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { + ApiResponse localVarResp = createResourceSliceWithHttpInfo(body, pretty, dryRun, fieldManager, fieldValidation); + return localVarResp.getData(); + } + + /** + * + * create a ResourceSlice + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @return ApiResponse<V1beta1ResourceSlice> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
+ */ + public ApiResponse createResourceSliceWithHttpInfo(V1beta1ResourceSlice body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { + okhttp3.Call localVarCall = createResourceSliceValidateBeforeCall(body, pretty, dryRun, fieldManager, fieldValidation, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * create a ResourceSlice + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
+ */ + public okhttp3.Call createResourceSliceAsync(V1beta1ResourceSlice body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = createResourceSliceValidateBeforeCall(body, pretty, dryRun, fieldManager, fieldValidation, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for deleteCollectionDeviceClass + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param _continue 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) + * @param dryRun 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) + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param orphanDependents 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) + * @param propagationPolicy 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. (optional) + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + * @param body (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call deleteCollectionDeviceClassCall(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + Object localVarPostBody = body; + + // create path and map variables + String localVarPath = "/apis/resource.k8s.io/v1beta1/deviceclasses"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + + if (_continue != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); + } + + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } + + if (fieldSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); + } + + if (gracePeriodSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); + } + + if (ignoreStoreReadErrorWithClusterBreakingPotential != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("ignoreStoreReadErrorWithClusterBreakingPotential", ignoreStoreReadErrorWithClusterBreakingPotential)); + } + + if (labelSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); + } + + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + } + + if (orphanDependents != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("orphanDependents", orphanDependents)); + } + + if (propagationPolicy != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("propagationPolicy", propagationPolicy)); + } + + if (resourceVersion != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); + } + + if (resourceVersionMatch != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersionMatch", resourceVersionMatch)); + } + + if (sendInitialEvents != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("sendInitialEvents", sendInitialEvents)); + } + + if (timeoutSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + final String[] localVarAccepts = { + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call deleteCollectionDeviceClassValidateBeforeCall(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + + + okhttp3.Call localVarCall = deleteCollectionDeviceClassCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + return localVarCall; + + } + + /** + * + * delete collection of DeviceClass + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param _continue 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) + * @param dryRun 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) + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param orphanDependents 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) + * @param propagationPolicy 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. (optional) + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + * @param body (optional) + * @return V1Status + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public V1Status deleteCollectionDeviceClass(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body) throws ApiException { + ApiResponse localVarResp = deleteCollectionDeviceClassWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); + return localVarResp.getData(); + } + + /** + * + * delete collection of DeviceClass + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param _continue 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) + * @param dryRun 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) + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param orphanDependents 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) + * @param propagationPolicy 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. (optional) + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + * @param body (optional) + * @return ApiResponse<V1Status> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public ApiResponse deleteCollectionDeviceClassWithHttpInfo(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteCollectionDeviceClassValidateBeforeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * delete collection of DeviceClass + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param _continue 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) + * @param dryRun 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) + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param orphanDependents 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) + * @param propagationPolicy 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. (optional) + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + * @param body (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call deleteCollectionDeviceClassAsync(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = deleteCollectionDeviceClassValidateBeforeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for deleteCollectionNamespacedResourceClaim + * @param namespace object name and auth scope, such as for teams and projects (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param _continue 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) + * @param dryRun 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) + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param orphanDependents 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) + * @param propagationPolicy 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. (optional) + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + * @param body (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call deleteCollectionNamespacedResourceClaimCall(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + Object localVarPostBody = body; + + // create path and map variables + String localVarPath = "/apis/resource.k8s.io/v1beta1/namespaces/{namespace}/resourceclaims" + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + + if (_continue != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); + } + + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } + + if (fieldSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); + } + + if (gracePeriodSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); + } + + if (ignoreStoreReadErrorWithClusterBreakingPotential != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("ignoreStoreReadErrorWithClusterBreakingPotential", ignoreStoreReadErrorWithClusterBreakingPotential)); + } + + if (labelSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); + } + + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + } + + if (orphanDependents != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("orphanDependents", orphanDependents)); + } + + if (propagationPolicy != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("propagationPolicy", propagationPolicy)); + } + + if (resourceVersion != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); + } + + if (resourceVersionMatch != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersionMatch", resourceVersionMatch)); + } + + if (sendInitialEvents != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("sendInitialEvents", sendInitialEvents)); + } + + if (timeoutSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + final String[] localVarAccepts = { + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call deleteCollectionNamespacedResourceClaimValidateBeforeCall(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'namespace' is set + if (namespace == null) { + throw new ApiException("Missing the required parameter 'namespace' when calling deleteCollectionNamespacedResourceClaim(Async)"); + } + + + okhttp3.Call localVarCall = deleteCollectionNamespacedResourceClaimCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + return localVarCall; + + } + + /** + * + * delete collection of ResourceClaim + * @param namespace object name and auth scope, such as for teams and projects (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param _continue 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) + * @param dryRun 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) + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param orphanDependents 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) + * @param propagationPolicy 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. (optional) + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + * @param body (optional) + * @return V1Status + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public V1Status deleteCollectionNamespacedResourceClaim(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body) throws ApiException { + ApiResponse localVarResp = deleteCollectionNamespacedResourceClaimWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); + return localVarResp.getData(); + } + + /** + * + * delete collection of ResourceClaim + * @param namespace object name and auth scope, such as for teams and projects (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param _continue 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) + * @param dryRun 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) + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param orphanDependents 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) + * @param propagationPolicy 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. (optional) + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + * @param body (optional) + * @return ApiResponse<V1Status> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public ApiResponse deleteCollectionNamespacedResourceClaimWithHttpInfo(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteCollectionNamespacedResourceClaimValidateBeforeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * delete collection of ResourceClaim + * @param namespace object name and auth scope, such as for teams and projects (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param _continue 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) + * @param dryRun 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) + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param orphanDependents 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) + * @param propagationPolicy 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. (optional) + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + * @param body (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call deleteCollectionNamespacedResourceClaimAsync(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = deleteCollectionNamespacedResourceClaimValidateBeforeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for deleteCollectionNamespacedResourceClaimTemplate + * @param namespace object name and auth scope, such as for teams and projects (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param _continue 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) + * @param dryRun 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) + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param orphanDependents 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) + * @param propagationPolicy 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. (optional) + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + * @param body (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call deleteCollectionNamespacedResourceClaimTemplateCall(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + Object localVarPostBody = body; + + // create path and map variables + String localVarPath = "/apis/resource.k8s.io/v1beta1/namespaces/{namespace}/resourceclaimtemplates" + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + + if (_continue != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); + } + + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } + + if (fieldSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); + } + + if (gracePeriodSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); + } + + if (ignoreStoreReadErrorWithClusterBreakingPotential != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("ignoreStoreReadErrorWithClusterBreakingPotential", ignoreStoreReadErrorWithClusterBreakingPotential)); + } + + if (labelSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); + } + + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + } + + if (orphanDependents != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("orphanDependents", orphanDependents)); + } + + if (propagationPolicy != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("propagationPolicy", propagationPolicy)); + } + + if (resourceVersion != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); + } + + if (resourceVersionMatch != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersionMatch", resourceVersionMatch)); + } + + if (sendInitialEvents != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("sendInitialEvents", sendInitialEvents)); + } + + if (timeoutSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + final String[] localVarAccepts = { + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call deleteCollectionNamespacedResourceClaimTemplateValidateBeforeCall(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'namespace' is set + if (namespace == null) { + throw new ApiException("Missing the required parameter 'namespace' when calling deleteCollectionNamespacedResourceClaimTemplate(Async)"); + } + + + okhttp3.Call localVarCall = deleteCollectionNamespacedResourceClaimTemplateCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + return localVarCall; + + } + + /** + * + * delete collection of ResourceClaimTemplate + * @param namespace object name and auth scope, such as for teams and projects (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param _continue 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) + * @param dryRun 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) + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param orphanDependents 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) + * @param propagationPolicy 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. (optional) + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + * @param body (optional) + * @return V1Status + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public V1Status deleteCollectionNamespacedResourceClaimTemplate(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body) throws ApiException { + ApiResponse localVarResp = deleteCollectionNamespacedResourceClaimTemplateWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); + return localVarResp.getData(); + } + + /** + * + * delete collection of ResourceClaimTemplate + * @param namespace object name and auth scope, such as for teams and projects (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param _continue 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) + * @param dryRun 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) + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param orphanDependents 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) + * @param propagationPolicy 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. (optional) + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + * @param body (optional) + * @return ApiResponse<V1Status> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public ApiResponse deleteCollectionNamespacedResourceClaimTemplateWithHttpInfo(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteCollectionNamespacedResourceClaimTemplateValidateBeforeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * delete collection of ResourceClaimTemplate + * @param namespace object name and auth scope, such as for teams and projects (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param _continue 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) + * @param dryRun 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) + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param orphanDependents 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) + * @param propagationPolicy 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. (optional) + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + * @param body (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call deleteCollectionNamespacedResourceClaimTemplateAsync(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = deleteCollectionNamespacedResourceClaimTemplateValidateBeforeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for deleteCollectionResourceSlice + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param _continue 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) + * @param dryRun 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) + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param orphanDependents 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) + * @param propagationPolicy 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. (optional) + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + * @param body (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call deleteCollectionResourceSliceCall(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + Object localVarPostBody = body; + + // create path and map variables + String localVarPath = "/apis/resource.k8s.io/v1beta1/resourceslices"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + + if (_continue != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); + } + + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } + + if (fieldSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); + } + + if (gracePeriodSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); + } + + if (ignoreStoreReadErrorWithClusterBreakingPotential != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("ignoreStoreReadErrorWithClusterBreakingPotential", ignoreStoreReadErrorWithClusterBreakingPotential)); + } + + if (labelSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); + } + + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + } + + if (orphanDependents != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("orphanDependents", orphanDependents)); + } + + if (propagationPolicy != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("propagationPolicy", propagationPolicy)); + } + + if (resourceVersion != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); + } + + if (resourceVersionMatch != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersionMatch", resourceVersionMatch)); + } + + if (sendInitialEvents != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("sendInitialEvents", sendInitialEvents)); + } + + if (timeoutSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + final String[] localVarAccepts = { + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call deleteCollectionResourceSliceValidateBeforeCall(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + + + okhttp3.Call localVarCall = deleteCollectionResourceSliceCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + return localVarCall; + + } + + /** + * + * delete collection of ResourceSlice + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param _continue 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) + * @param dryRun 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) + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param orphanDependents 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) + * @param propagationPolicy 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. (optional) + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + * @param body (optional) + * @return V1Status + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public V1Status deleteCollectionResourceSlice(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body) throws ApiException { + ApiResponse localVarResp = deleteCollectionResourceSliceWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); + return localVarResp.getData(); + } + + /** + * + * delete collection of ResourceSlice + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param _continue 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) + * @param dryRun 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) + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param orphanDependents 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) + * @param propagationPolicy 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. (optional) + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + * @param body (optional) + * @return ApiResponse<V1Status> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public ApiResponse deleteCollectionResourceSliceWithHttpInfo(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteCollectionResourceSliceValidateBeforeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * delete collection of ResourceSlice + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param _continue 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) + * @param dryRun 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) + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param orphanDependents 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) + * @param propagationPolicy 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. (optional) + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + * @param body (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call deleteCollectionResourceSliceAsync(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = deleteCollectionResourceSliceValidateBeforeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for deleteDeviceClass + * @param name name of the DeviceClass (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) + * @param orphanDependents 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) + * @param propagationPolicy 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. (optional) + * @param body (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
+ */ + public okhttp3.Call deleteDeviceClassCall(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + Object localVarPostBody = body; + + // create path and map variables + String localVarPath = "/apis/resource.k8s.io/v1beta1/deviceclasses/{name}" + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } + + if (gracePeriodSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); + } + + if (ignoreStoreReadErrorWithClusterBreakingPotential != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("ignoreStoreReadErrorWithClusterBreakingPotential", ignoreStoreReadErrorWithClusterBreakingPotential)); + } + + if (orphanDependents != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("orphanDependents", orphanDependents)); + } + + if (propagationPolicy != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("propagationPolicy", propagationPolicy)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + final String[] localVarAccepts = { + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call deleteDeviceClassValidateBeforeCall(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'name' is set + if (name == null) { + throw new ApiException("Missing the required parameter 'name' when calling deleteDeviceClass(Async)"); + } + + + okhttp3.Call localVarCall = deleteDeviceClassCall(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); + return localVarCall; + + } + + /** + * + * delete a DeviceClass + * @param name name of the DeviceClass (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) + * @param orphanDependents 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) + * @param propagationPolicy 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. (optional) + * @param body (optional) + * @return V1beta1DeviceClass + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
+ */ + public V1beta1DeviceClass deleteDeviceClass(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { + ApiResponse localVarResp = deleteDeviceClassWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body); + return localVarResp.getData(); + } + + /** + * + * delete a DeviceClass + * @param name name of the DeviceClass (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) + * @param orphanDependents 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) + * @param propagationPolicy 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. (optional) + * @param body (optional) + * @return ApiResponse<V1beta1DeviceClass> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
+ */ + public ApiResponse deleteDeviceClassWithHttpInfo(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteDeviceClassValidateBeforeCall(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * delete a DeviceClass + * @param name name of the DeviceClass (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) + * @param orphanDependents 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) + * @param propagationPolicy 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. (optional) + * @param body (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
+ */ + public okhttp3.Call deleteDeviceClassAsync(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = deleteDeviceClassValidateBeforeCall(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for deleteNamespacedResourceClaim + * @param name name of the ResourceClaim (required) + * @param namespace object name and auth scope, such as for teams and projects (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) + * @param orphanDependents 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) + * @param propagationPolicy 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. (optional) + * @param body (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
+ */ + public okhttp3.Call deleteNamespacedResourceClaimCall(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + Object localVarPostBody = body; + + // create path and map variables + String localVarPath = "/apis/resource.k8s.io/v1beta1/namespaces/{namespace}/resourceclaims/{name}" + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } + + if (gracePeriodSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); + } + + if (ignoreStoreReadErrorWithClusterBreakingPotential != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("ignoreStoreReadErrorWithClusterBreakingPotential", ignoreStoreReadErrorWithClusterBreakingPotential)); + } + + if (orphanDependents != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("orphanDependents", orphanDependents)); + } + + if (propagationPolicy != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("propagationPolicy", propagationPolicy)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + final String[] localVarAccepts = { + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call deleteNamespacedResourceClaimValidateBeforeCall(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'name' is set + if (name == null) { + throw new ApiException("Missing the required parameter 'name' when calling deleteNamespacedResourceClaim(Async)"); + } + + // verify the required parameter 'namespace' is set + if (namespace == null) { + throw new ApiException("Missing the required parameter 'namespace' when calling deleteNamespacedResourceClaim(Async)"); + } + + + okhttp3.Call localVarCall = deleteNamespacedResourceClaimCall(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); + return localVarCall; + + } + + /** + * + * delete a ResourceClaim + * @param name name of the ResourceClaim (required) + * @param namespace object name and auth scope, such as for teams and projects (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) + * @param orphanDependents 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) + * @param propagationPolicy 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. (optional) + * @param body (optional) + * @return V1beta1ResourceClaim + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
+ */ + public V1beta1ResourceClaim deleteNamespacedResourceClaim(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { + ApiResponse localVarResp = deleteNamespacedResourceClaimWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body); + return localVarResp.getData(); + } + + /** + * + * delete a ResourceClaim + * @param name name of the ResourceClaim (required) + * @param namespace object name and auth scope, such as for teams and projects (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) + * @param orphanDependents 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) + * @param propagationPolicy 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. (optional) + * @param body (optional) + * @return ApiResponse<V1beta1ResourceClaim> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
+ */ + public ApiResponse deleteNamespacedResourceClaimWithHttpInfo(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteNamespacedResourceClaimValidateBeforeCall(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * delete a ResourceClaim + * @param name name of the ResourceClaim (required) + * @param namespace object name and auth scope, such as for teams and projects (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) + * @param orphanDependents 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) + * @param propagationPolicy 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. (optional) + * @param body (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
+ */ + public okhttp3.Call deleteNamespacedResourceClaimAsync(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = deleteNamespacedResourceClaimValidateBeforeCall(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for deleteNamespacedResourceClaimTemplate + * @param name name of the ResourceClaimTemplate (required) + * @param namespace object name and auth scope, such as for teams and projects (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) + * @param orphanDependents 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) + * @param propagationPolicy 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. (optional) + * @param body (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
+ */ + public okhttp3.Call deleteNamespacedResourceClaimTemplateCall(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + Object localVarPostBody = body; + + // create path and map variables + String localVarPath = "/apis/resource.k8s.io/v1beta1/namespaces/{namespace}/resourceclaimtemplates/{name}" + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } + + if (gracePeriodSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); + } + + if (ignoreStoreReadErrorWithClusterBreakingPotential != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("ignoreStoreReadErrorWithClusterBreakingPotential", ignoreStoreReadErrorWithClusterBreakingPotential)); + } + + if (orphanDependents != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("orphanDependents", orphanDependents)); + } + + if (propagationPolicy != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("propagationPolicy", propagationPolicy)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + final String[] localVarAccepts = { + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call deleteNamespacedResourceClaimTemplateValidateBeforeCall(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'name' is set + if (name == null) { + throw new ApiException("Missing the required parameter 'name' when calling deleteNamespacedResourceClaimTemplate(Async)"); + } + + // verify the required parameter 'namespace' is set + if (namespace == null) { + throw new ApiException("Missing the required parameter 'namespace' when calling deleteNamespacedResourceClaimTemplate(Async)"); + } + + + okhttp3.Call localVarCall = deleteNamespacedResourceClaimTemplateCall(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); + return localVarCall; + + } + + /** + * + * delete a ResourceClaimTemplate + * @param name name of the ResourceClaimTemplate (required) + * @param namespace object name and auth scope, such as for teams and projects (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) + * @param orphanDependents 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) + * @param propagationPolicy 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. (optional) + * @param body (optional) + * @return V1beta1ResourceClaimTemplate + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
+ */ + public V1beta1ResourceClaimTemplate deleteNamespacedResourceClaimTemplate(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { + ApiResponse localVarResp = deleteNamespacedResourceClaimTemplateWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body); + return localVarResp.getData(); + } + + /** + * + * delete a ResourceClaimTemplate + * @param name name of the ResourceClaimTemplate (required) + * @param namespace object name and auth scope, such as for teams and projects (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) + * @param orphanDependents 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) + * @param propagationPolicy 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. (optional) + * @param body (optional) + * @return ApiResponse<V1beta1ResourceClaimTemplate> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
+ */ + public ApiResponse deleteNamespacedResourceClaimTemplateWithHttpInfo(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteNamespacedResourceClaimTemplateValidateBeforeCall(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * delete a ResourceClaimTemplate + * @param name name of the ResourceClaimTemplate (required) + * @param namespace object name and auth scope, such as for teams and projects (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) + * @param orphanDependents 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) + * @param propagationPolicy 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. (optional) + * @param body (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
+ */ + public okhttp3.Call deleteNamespacedResourceClaimTemplateAsync(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = deleteNamespacedResourceClaimTemplateValidateBeforeCall(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for deleteResourceSlice + * @param name name of the ResourceSlice (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) + * @param orphanDependents 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) + * @param propagationPolicy 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. (optional) + * @param body (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
+ */ + public okhttp3.Call deleteResourceSliceCall(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + Object localVarPostBody = body; + + // create path and map variables + String localVarPath = "/apis/resource.k8s.io/v1beta1/resourceslices/{name}" + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } + + if (gracePeriodSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); + } + + if (ignoreStoreReadErrorWithClusterBreakingPotential != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("ignoreStoreReadErrorWithClusterBreakingPotential", ignoreStoreReadErrorWithClusterBreakingPotential)); + } + + if (orphanDependents != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("orphanDependents", orphanDependents)); + } + + if (propagationPolicy != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("propagationPolicy", propagationPolicy)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + final String[] localVarAccepts = { + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call deleteResourceSliceValidateBeforeCall(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'name' is set + if (name == null) { + throw new ApiException("Missing the required parameter 'name' when calling deleteResourceSlice(Async)"); + } + + + okhttp3.Call localVarCall = deleteResourceSliceCall(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); + return localVarCall; + + } + + /** + * + * delete a ResourceSlice + * @param name name of the ResourceSlice (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) + * @param orphanDependents 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) + * @param propagationPolicy 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. (optional) + * @param body (optional) + * @return V1beta1ResourceSlice + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
+ */ + public V1beta1ResourceSlice deleteResourceSlice(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { + ApiResponse localVarResp = deleteResourceSliceWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body); + return localVarResp.getData(); + } + + /** + * + * delete a ResourceSlice + * @param name name of the ResourceSlice (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) + * @param orphanDependents 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) + * @param propagationPolicy 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. (optional) + * @param body (optional) + * @return ApiResponse<V1beta1ResourceSlice> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
+ */ + public ApiResponse deleteResourceSliceWithHttpInfo(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteResourceSliceValidateBeforeCall(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * delete a ResourceSlice + * @param name name of the ResourceSlice (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) + * @param orphanDependents 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) + * @param propagationPolicy 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. (optional) + * @param body (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
+ */ + public okhttp3.Call deleteResourceSliceAsync(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = deleteResourceSliceValidateBeforeCall(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for getAPIResources + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call getAPIResourcesCall(final ApiCallback _callback) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/apis/resource.k8s.io/v1beta1/"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + final String[] localVarAccepts = { + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call getAPIResourcesValidateBeforeCall(final ApiCallback _callback) throws ApiException { + + + okhttp3.Call localVarCall = getAPIResourcesCall(_callback); + return localVarCall; + + } + + /** + * + * get available resources + * @return V1APIResourceList + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public V1APIResourceList getAPIResources() throws ApiException { + ApiResponse localVarResp = getAPIResourcesWithHttpInfo(); + return localVarResp.getData(); + } + + /** + * + * get available resources + * @return ApiResponse<V1APIResourceList> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public ApiResponse getAPIResourcesWithHttpInfo() throws ApiException { + okhttp3.Call localVarCall = getAPIResourcesValidateBeforeCall(null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * get available resources + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call getAPIResourcesAsync(final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = getAPIResourcesValidateBeforeCall(_callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for listDeviceClass + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param allowWatchBookmarks 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. (optional) + * @param _continue 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) + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call listDeviceClassCall(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/apis/resource.k8s.io/v1beta1/deviceclasses"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + + if (allowWatchBookmarks != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("allowWatchBookmarks", allowWatchBookmarks)); + } + + if (_continue != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); + } + + if (fieldSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); + } + + if (labelSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); + } + + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + } + + if (resourceVersion != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); + } + + if (resourceVersionMatch != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersionMatch", resourceVersionMatch)); + } + + if (sendInitialEvents != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("sendInitialEvents", sendInitialEvents)); + } + + if (timeoutSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); + } + + if (watch != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + final String[] localVarAccepts = { + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch", "application/cbor-seq" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call listDeviceClassValidateBeforeCall(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + + + okhttp3.Call localVarCall = listDeviceClassCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + return localVarCall; + + } + + /** + * + * list or watch objects of kind DeviceClass + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param allowWatchBookmarks 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. (optional) + * @param _continue 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) + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + * @return V1beta1DeviceClassList + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public V1beta1DeviceClassList listDeviceClass(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch) throws ApiException { + ApiResponse localVarResp = listDeviceClassWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + return localVarResp.getData(); + } + + /** + * + * list or watch objects of kind DeviceClass + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param allowWatchBookmarks 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. (optional) + * @param _continue 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) + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + * @return ApiResponse<V1beta1DeviceClassList> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public ApiResponse listDeviceClassWithHttpInfo(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch) throws ApiException { + okhttp3.Call localVarCall = listDeviceClassValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * list or watch objects of kind DeviceClass + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param allowWatchBookmarks 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. (optional) + * @param _continue 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) + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call listDeviceClassAsync(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = listDeviceClassValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for listNamespacedResourceClaim + * @param namespace object name and auth scope, such as for teams and projects (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param allowWatchBookmarks 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. (optional) + * @param _continue 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) + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call listNamespacedResourceClaimCall(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/apis/resource.k8s.io/v1beta1/namespaces/{namespace}/resourceclaims" + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + + if (allowWatchBookmarks != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("allowWatchBookmarks", allowWatchBookmarks)); + } + + if (_continue != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); + } + + if (fieldSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); + } + + if (labelSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); + } + + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + } + + if (resourceVersion != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); + } + + if (resourceVersionMatch != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersionMatch", resourceVersionMatch)); + } + + if (sendInitialEvents != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("sendInitialEvents", sendInitialEvents)); + } + + if (timeoutSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); + } + + if (watch != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + final String[] localVarAccepts = { + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch", "application/cbor-seq" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call listNamespacedResourceClaimValidateBeforeCall(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'namespace' is set + if (namespace == null) { + throw new ApiException("Missing the required parameter 'namespace' when calling listNamespacedResourceClaim(Async)"); + } + + + okhttp3.Call localVarCall = listNamespacedResourceClaimCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + return localVarCall; + + } + + /** + * + * list or watch objects of kind ResourceClaim + * @param namespace object name and auth scope, such as for teams and projects (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param allowWatchBookmarks 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. (optional) + * @param _continue 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) + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + * @return V1beta1ResourceClaimList + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public V1beta1ResourceClaimList listNamespacedResourceClaim(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch) throws ApiException { + ApiResponse localVarResp = listNamespacedResourceClaimWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + return localVarResp.getData(); + } + + /** + * + * list or watch objects of kind ResourceClaim + * @param namespace object name and auth scope, such as for teams and projects (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param allowWatchBookmarks 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. (optional) + * @param _continue 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) + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + * @return ApiResponse<V1beta1ResourceClaimList> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public ApiResponse listNamespacedResourceClaimWithHttpInfo(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch) throws ApiException { + okhttp3.Call localVarCall = listNamespacedResourceClaimValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * list or watch objects of kind ResourceClaim + * @param namespace object name and auth scope, such as for teams and projects (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param allowWatchBookmarks 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. (optional) + * @param _continue 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) + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call listNamespacedResourceClaimAsync(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = listNamespacedResourceClaimValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for listNamespacedResourceClaimTemplate + * @param namespace object name and auth scope, such as for teams and projects (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param allowWatchBookmarks 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. (optional) + * @param _continue 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) + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call listNamespacedResourceClaimTemplateCall(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/apis/resource.k8s.io/v1beta1/namespaces/{namespace}/resourceclaimtemplates" + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + + if (allowWatchBookmarks != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("allowWatchBookmarks", allowWatchBookmarks)); + } + + if (_continue != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); + } + + if (fieldSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); + } + + if (labelSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); + } + + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + } + + if (resourceVersion != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); + } + + if (resourceVersionMatch != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersionMatch", resourceVersionMatch)); + } + + if (sendInitialEvents != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("sendInitialEvents", sendInitialEvents)); + } + + if (timeoutSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); + } + + if (watch != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + final String[] localVarAccepts = { + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch", "application/cbor-seq" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call listNamespacedResourceClaimTemplateValidateBeforeCall(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'namespace' is set + if (namespace == null) { + throw new ApiException("Missing the required parameter 'namespace' when calling listNamespacedResourceClaimTemplate(Async)"); + } + + + okhttp3.Call localVarCall = listNamespacedResourceClaimTemplateCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + return localVarCall; + + } + + /** + * + * list or watch objects of kind ResourceClaimTemplate + * @param namespace object name and auth scope, such as for teams and projects (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param allowWatchBookmarks 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. (optional) + * @param _continue 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) + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + * @return V1beta1ResourceClaimTemplateList + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public V1beta1ResourceClaimTemplateList listNamespacedResourceClaimTemplate(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch) throws ApiException { + ApiResponse localVarResp = listNamespacedResourceClaimTemplateWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + return localVarResp.getData(); + } + + /** + * + * list or watch objects of kind ResourceClaimTemplate + * @param namespace object name and auth scope, such as for teams and projects (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param allowWatchBookmarks 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. (optional) + * @param _continue 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) + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + * @return ApiResponse<V1beta1ResourceClaimTemplateList> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public ApiResponse listNamespacedResourceClaimTemplateWithHttpInfo(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch) throws ApiException { + okhttp3.Call localVarCall = listNamespacedResourceClaimTemplateValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * list or watch objects of kind ResourceClaimTemplate + * @param namespace object name and auth scope, such as for teams and projects (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param allowWatchBookmarks 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. (optional) + * @param _continue 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) + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call listNamespacedResourceClaimTemplateAsync(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = listNamespacedResourceClaimTemplateValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for listResourceClaimForAllNamespaces + * @param allowWatchBookmarks 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. (optional) + * @param _continue 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) + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call listResourceClaimForAllNamespacesCall(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/apis/resource.k8s.io/v1beta1/resourceclaims"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (allowWatchBookmarks != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("allowWatchBookmarks", allowWatchBookmarks)); + } + + if (_continue != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); + } + + if (fieldSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); + } + + if (labelSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); + } + + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + } + + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + + if (resourceVersion != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); + } + + if (resourceVersionMatch != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersionMatch", resourceVersionMatch)); + } + + if (sendInitialEvents != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("sendInitialEvents", sendInitialEvents)); + } + + if (timeoutSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); + } + + if (watch != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + final String[] localVarAccepts = { + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch", "application/cbor-seq" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call listResourceClaimForAllNamespacesValidateBeforeCall(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + + + okhttp3.Call localVarCall = listResourceClaimForAllNamespacesCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + return localVarCall; + + } + + /** + * + * list or watch objects of kind ResourceClaim + * @param allowWatchBookmarks 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. (optional) + * @param _continue 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) + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + * @return V1beta1ResourceClaimList + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public V1beta1ResourceClaimList listResourceClaimForAllNamespaces(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch) throws ApiException { + ApiResponse localVarResp = listResourceClaimForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + return localVarResp.getData(); + } + + /** + * + * list or watch objects of kind ResourceClaim + * @param allowWatchBookmarks 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. (optional) + * @param _continue 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) + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + * @return ApiResponse<V1beta1ResourceClaimList> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public ApiResponse listResourceClaimForAllNamespacesWithHttpInfo(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch) throws ApiException { + okhttp3.Call localVarCall = listResourceClaimForAllNamespacesValidateBeforeCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * list or watch objects of kind ResourceClaim + * @param allowWatchBookmarks 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. (optional) + * @param _continue 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) + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call listResourceClaimForAllNamespacesAsync(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = listResourceClaimForAllNamespacesValidateBeforeCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for listResourceClaimTemplateForAllNamespaces + * @param allowWatchBookmarks 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. (optional) + * @param _continue 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) + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call listResourceClaimTemplateForAllNamespacesCall(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/apis/resource.k8s.io/v1beta1/resourceclaimtemplates"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (allowWatchBookmarks != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("allowWatchBookmarks", allowWatchBookmarks)); + } + + if (_continue != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); + } + + if (fieldSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); + } + + if (labelSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); + } + + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + } + + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + + if (resourceVersion != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); + } + + if (resourceVersionMatch != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersionMatch", resourceVersionMatch)); + } + + if (sendInitialEvents != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("sendInitialEvents", sendInitialEvents)); + } + + if (timeoutSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); + } + + if (watch != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + final String[] localVarAccepts = { + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch", "application/cbor-seq" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call listResourceClaimTemplateForAllNamespacesValidateBeforeCall(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + + + okhttp3.Call localVarCall = listResourceClaimTemplateForAllNamespacesCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + return localVarCall; + + } + + /** + * + * list or watch objects of kind ResourceClaimTemplate + * @param allowWatchBookmarks 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. (optional) + * @param _continue 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) + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + * @return V1beta1ResourceClaimTemplateList + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public V1beta1ResourceClaimTemplateList listResourceClaimTemplateForAllNamespaces(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch) throws ApiException { + ApiResponse localVarResp = listResourceClaimTemplateForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + return localVarResp.getData(); + } + + /** + * + * list or watch objects of kind ResourceClaimTemplate + * @param allowWatchBookmarks 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. (optional) + * @param _continue 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) + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + * @return ApiResponse<V1beta1ResourceClaimTemplateList> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public ApiResponse listResourceClaimTemplateForAllNamespacesWithHttpInfo(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch) throws ApiException { + okhttp3.Call localVarCall = listResourceClaimTemplateForAllNamespacesValidateBeforeCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * list or watch objects of kind ResourceClaimTemplate + * @param allowWatchBookmarks 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. (optional) + * @param _continue 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) + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call listResourceClaimTemplateForAllNamespacesAsync(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = listResourceClaimTemplateForAllNamespacesValidateBeforeCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for listResourceSlice + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param allowWatchBookmarks 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. (optional) + * @param _continue 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) + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call listResourceSliceCall(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/apis/resource.k8s.io/v1beta1/resourceslices"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + + if (allowWatchBookmarks != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("allowWatchBookmarks", allowWatchBookmarks)); + } + + if (_continue != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); + } + + if (fieldSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); + } + + if (labelSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); + } + + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + } + + if (resourceVersion != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); + } + + if (resourceVersionMatch != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersionMatch", resourceVersionMatch)); + } + + if (sendInitialEvents != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("sendInitialEvents", sendInitialEvents)); + } + + if (timeoutSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); + } + + if (watch != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + final String[] localVarAccepts = { + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch", "application/cbor-seq" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call listResourceSliceValidateBeforeCall(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + + + okhttp3.Call localVarCall = listResourceSliceCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + return localVarCall; + + } + + /** + * + * list or watch objects of kind ResourceSlice + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param allowWatchBookmarks 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. (optional) + * @param _continue 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) + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + * @return V1beta1ResourceSliceList + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public V1beta1ResourceSliceList listResourceSlice(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch) throws ApiException { + ApiResponse localVarResp = listResourceSliceWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + return localVarResp.getData(); + } + + /** + * + * list or watch objects of kind ResourceSlice + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param allowWatchBookmarks 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. (optional) + * @param _continue 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) + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + * @return ApiResponse<V1beta1ResourceSliceList> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public ApiResponse listResourceSliceWithHttpInfo(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch) throws ApiException { + okhttp3.Call localVarCall = listResourceSliceValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * list or watch objects of kind ResourceSlice + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param allowWatchBookmarks 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. (optional) + * @param _continue 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) + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call listResourceSliceAsync(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = listResourceSliceValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for patchDeviceClass + * @param name name of the DeviceClass (required) + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public okhttp3.Call patchDeviceClassCall(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + Object localVarPostBody = body; + + // create path and map variables + String localVarPath = "/apis/resource.k8s.io/v1beta1/deviceclasses/{name}" + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } + + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + + if (fieldValidation != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); + } + + if (force != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("force", force)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + final String[] localVarAccepts = { + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call patchDeviceClassValidateBeforeCall(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'name' is set + if (name == null) { + throw new ApiException("Missing the required parameter 'name' when calling patchDeviceClass(Async)"); + } + + // verify the required parameter 'body' is set + if (body == null) { + throw new ApiException("Missing the required parameter 'body' when calling patchDeviceClass(Async)"); + } + + + okhttp3.Call localVarCall = patchDeviceClassCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); + return localVarCall; + + } + + /** + * + * partially update the specified DeviceClass + * @param name name of the DeviceClass (required) + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) + * @return V1beta1DeviceClass + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public V1beta1DeviceClass patchDeviceClass(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force) throws ApiException { + ApiResponse localVarResp = patchDeviceClassWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force); + return localVarResp.getData(); + } + + /** + * + * partially update the specified DeviceClass + * @param name name of the DeviceClass (required) + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) + * @return ApiResponse<V1beta1DeviceClass> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public ApiResponse patchDeviceClassWithHttpInfo(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force) throws ApiException { + okhttp3.Call localVarCall = patchDeviceClassValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * partially update the specified DeviceClass + * @param name name of the DeviceClass (required) + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public okhttp3.Call patchDeviceClassAsync(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = patchDeviceClassValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for patchNamespacedResourceClaim + * @param name name of the ResourceClaim (required) + * @param namespace object name and auth scope, such as for teams and projects (required) + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public okhttp3.Call patchNamespacedResourceClaimCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + Object localVarPostBody = body; + + // create path and map variables + String localVarPath = "/apis/resource.k8s.io/v1beta1/namespaces/{namespace}/resourceclaims/{name}" + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } + + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + + if (fieldValidation != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); + } + + if (force != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("force", force)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + final String[] localVarAccepts = { + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call patchNamespacedResourceClaimValidateBeforeCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'name' is set + if (name == null) { + throw new ApiException("Missing the required parameter 'name' when calling patchNamespacedResourceClaim(Async)"); + } + + // verify the required parameter 'namespace' is set + if (namespace == null) { + throw new ApiException("Missing the required parameter 'namespace' when calling patchNamespacedResourceClaim(Async)"); + } + + // verify the required parameter 'body' is set + if (body == null) { + throw new ApiException("Missing the required parameter 'body' when calling patchNamespacedResourceClaim(Async)"); + } + + + okhttp3.Call localVarCall = patchNamespacedResourceClaimCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); + return localVarCall; + + } + + /** + * + * partially update the specified ResourceClaim + * @param name name of the ResourceClaim (required) + * @param namespace object name and auth scope, such as for teams and projects (required) + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) + * @return V1beta1ResourceClaim + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public V1beta1ResourceClaim patchNamespacedResourceClaim(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force) throws ApiException { + ApiResponse localVarResp = patchNamespacedResourceClaimWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force); + return localVarResp.getData(); + } + + /** + * + * partially update the specified ResourceClaim + * @param name name of the ResourceClaim (required) + * @param namespace object name and auth scope, such as for teams and projects (required) + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) + * @return ApiResponse<V1beta1ResourceClaim> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public ApiResponse patchNamespacedResourceClaimWithHttpInfo(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force) throws ApiException { + okhttp3.Call localVarCall = patchNamespacedResourceClaimValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * partially update the specified ResourceClaim + * @param name name of the ResourceClaim (required) + * @param namespace object name and auth scope, such as for teams and projects (required) + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public okhttp3.Call patchNamespacedResourceClaimAsync(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = patchNamespacedResourceClaimValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for patchNamespacedResourceClaimStatus + * @param name name of the ResourceClaim (required) + * @param namespace object name and auth scope, such as for teams and projects (required) + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public okhttp3.Call patchNamespacedResourceClaimStatusCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + Object localVarPostBody = body; + + // create path and map variables + String localVarPath = "/apis/resource.k8s.io/v1beta1/namespaces/{namespace}/resourceclaims/{name}/status" + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } + + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + + if (fieldValidation != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); + } + + if (force != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("force", force)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + final String[] localVarAccepts = { + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call patchNamespacedResourceClaimStatusValidateBeforeCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'name' is set + if (name == null) { + throw new ApiException("Missing the required parameter 'name' when calling patchNamespacedResourceClaimStatus(Async)"); + } + + // verify the required parameter 'namespace' is set + if (namespace == null) { + throw new ApiException("Missing the required parameter 'namespace' when calling patchNamespacedResourceClaimStatus(Async)"); + } + + // verify the required parameter 'body' is set + if (body == null) { + throw new ApiException("Missing the required parameter 'body' when calling patchNamespacedResourceClaimStatus(Async)"); + } + + + okhttp3.Call localVarCall = patchNamespacedResourceClaimStatusCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); + return localVarCall; + + } + + /** + * + * partially update status of the specified ResourceClaim + * @param name name of the ResourceClaim (required) + * @param namespace object name and auth scope, such as for teams and projects (required) + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) + * @return V1beta1ResourceClaim + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public V1beta1ResourceClaim patchNamespacedResourceClaimStatus(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force) throws ApiException { + ApiResponse localVarResp = patchNamespacedResourceClaimStatusWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force); + return localVarResp.getData(); + } + + /** + * + * partially update status of the specified ResourceClaim + * @param name name of the ResourceClaim (required) + * @param namespace object name and auth scope, such as for teams and projects (required) + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) + * @return ApiResponse<V1beta1ResourceClaim> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public ApiResponse patchNamespacedResourceClaimStatusWithHttpInfo(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force) throws ApiException { + okhttp3.Call localVarCall = patchNamespacedResourceClaimStatusValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * partially update status of the specified ResourceClaim + * @param name name of the ResourceClaim (required) + * @param namespace object name and auth scope, such as for teams and projects (required) + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public okhttp3.Call patchNamespacedResourceClaimStatusAsync(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = patchNamespacedResourceClaimStatusValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for patchNamespacedResourceClaimTemplate + * @param name name of the ResourceClaimTemplate (required) + * @param namespace object name and auth scope, such as for teams and projects (required) + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public okhttp3.Call patchNamespacedResourceClaimTemplateCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + Object localVarPostBody = body; + + // create path and map variables + String localVarPath = "/apis/resource.k8s.io/v1beta1/namespaces/{namespace}/resourceclaimtemplates/{name}" + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } + + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + + if (fieldValidation != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); + } + + if (force != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("force", force)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + final String[] localVarAccepts = { + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call patchNamespacedResourceClaimTemplateValidateBeforeCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'name' is set + if (name == null) { + throw new ApiException("Missing the required parameter 'name' when calling patchNamespacedResourceClaimTemplate(Async)"); + } + + // verify the required parameter 'namespace' is set + if (namespace == null) { + throw new ApiException("Missing the required parameter 'namespace' when calling patchNamespacedResourceClaimTemplate(Async)"); + } + + // verify the required parameter 'body' is set + if (body == null) { + throw new ApiException("Missing the required parameter 'body' when calling patchNamespacedResourceClaimTemplate(Async)"); + } + + + okhttp3.Call localVarCall = patchNamespacedResourceClaimTemplateCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); + return localVarCall; + + } + + /** + * + * partially update the specified ResourceClaimTemplate + * @param name name of the ResourceClaimTemplate (required) + * @param namespace object name and auth scope, such as for teams and projects (required) + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) + * @return V1beta1ResourceClaimTemplate + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public V1beta1ResourceClaimTemplate patchNamespacedResourceClaimTemplate(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force) throws ApiException { + ApiResponse localVarResp = patchNamespacedResourceClaimTemplateWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force); + return localVarResp.getData(); + } + + /** + * + * partially update the specified ResourceClaimTemplate + * @param name name of the ResourceClaimTemplate (required) + * @param namespace object name and auth scope, such as for teams and projects (required) + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) + * @return ApiResponse<V1beta1ResourceClaimTemplate> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public ApiResponse patchNamespacedResourceClaimTemplateWithHttpInfo(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force) throws ApiException { + okhttp3.Call localVarCall = patchNamespacedResourceClaimTemplateValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * partially update the specified ResourceClaimTemplate + * @param name name of the ResourceClaimTemplate (required) + * @param namespace object name and auth scope, such as for teams and projects (required) + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public okhttp3.Call patchNamespacedResourceClaimTemplateAsync(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = patchNamespacedResourceClaimTemplateValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for patchResourceSlice + * @param name name of the ResourceSlice (required) + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public okhttp3.Call patchResourceSliceCall(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + Object localVarPostBody = body; + + // create path and map variables + String localVarPath = "/apis/resource.k8s.io/v1beta1/resourceslices/{name}" + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } + + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + + if (fieldValidation != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); + } + + if (force != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("force", force)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + final String[] localVarAccepts = { + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call patchResourceSliceValidateBeforeCall(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'name' is set + if (name == null) { + throw new ApiException("Missing the required parameter 'name' when calling patchResourceSlice(Async)"); + } + + // verify the required parameter 'body' is set + if (body == null) { + throw new ApiException("Missing the required parameter 'body' when calling patchResourceSlice(Async)"); + } + + + okhttp3.Call localVarCall = patchResourceSliceCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); + return localVarCall; + + } + + /** + * + * partially update the specified ResourceSlice + * @param name name of the ResourceSlice (required) + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) + * @return V1beta1ResourceSlice + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public V1beta1ResourceSlice patchResourceSlice(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force) throws ApiException { + ApiResponse localVarResp = patchResourceSliceWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force); + return localVarResp.getData(); + } + + /** + * + * partially update the specified ResourceSlice + * @param name name of the ResourceSlice (required) + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) + * @return ApiResponse<V1beta1ResourceSlice> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public ApiResponse patchResourceSliceWithHttpInfo(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force) throws ApiException { + okhttp3.Call localVarCall = patchResourceSliceValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * partially update the specified ResourceSlice + * @param name name of the ResourceSlice (required) + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public okhttp3.Call patchResourceSliceAsync(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = patchResourceSliceValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for readDeviceClass + * @param name name of the DeviceClass (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call readDeviceClassCall(String name, String pretty, final ApiCallback _callback) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/apis/resource.k8s.io/v1beta1/deviceclasses/{name}" + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + final String[] localVarAccepts = { + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call readDeviceClassValidateBeforeCall(String name, String pretty, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'name' is set + if (name == null) { + throw new ApiException("Missing the required parameter 'name' when calling readDeviceClass(Async)"); + } + + + okhttp3.Call localVarCall = readDeviceClassCall(name, pretty, _callback); + return localVarCall; + + } + + /** + * + * read the specified DeviceClass + * @param name name of the DeviceClass (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @return V1beta1DeviceClass + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public V1beta1DeviceClass readDeviceClass(String name, String pretty) throws ApiException { + ApiResponse localVarResp = readDeviceClassWithHttpInfo(name, pretty); + return localVarResp.getData(); + } + + /** + * + * read the specified DeviceClass + * @param name name of the DeviceClass (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @return ApiResponse<V1beta1DeviceClass> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public ApiResponse readDeviceClassWithHttpInfo(String name, String pretty) throws ApiException { + okhttp3.Call localVarCall = readDeviceClassValidateBeforeCall(name, pretty, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * read the specified DeviceClass + * @param name name of the DeviceClass (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call readDeviceClassAsync(String name, String pretty, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = readDeviceClassValidateBeforeCall(name, pretty, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for readNamespacedResourceClaim + * @param name name of the ResourceClaim (required) + * @param namespace object name and auth scope, such as for teams and projects (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call readNamespacedResourceClaimCall(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/apis/resource.k8s.io/v1beta1/namespaces/{namespace}/resourceclaims/{name}" + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + final String[] localVarAccepts = { + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call readNamespacedResourceClaimValidateBeforeCall(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'name' is set + if (name == null) { + throw new ApiException("Missing the required parameter 'name' when calling readNamespacedResourceClaim(Async)"); + } + + // verify the required parameter 'namespace' is set + if (namespace == null) { + throw new ApiException("Missing the required parameter 'namespace' when calling readNamespacedResourceClaim(Async)"); + } + + + okhttp3.Call localVarCall = readNamespacedResourceClaimCall(name, namespace, pretty, _callback); + return localVarCall; + + } + + /** + * + * read the specified ResourceClaim + * @param name name of the ResourceClaim (required) + * @param namespace object name and auth scope, such as for teams and projects (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @return V1beta1ResourceClaim + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public V1beta1ResourceClaim readNamespacedResourceClaim(String name, String namespace, String pretty) throws ApiException { + ApiResponse localVarResp = readNamespacedResourceClaimWithHttpInfo(name, namespace, pretty); + return localVarResp.getData(); + } + + /** + * + * read the specified ResourceClaim + * @param name name of the ResourceClaim (required) + * @param namespace object name and auth scope, such as for teams and projects (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @return ApiResponse<V1beta1ResourceClaim> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public ApiResponse readNamespacedResourceClaimWithHttpInfo(String name, String namespace, String pretty) throws ApiException { + okhttp3.Call localVarCall = readNamespacedResourceClaimValidateBeforeCall(name, namespace, pretty, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * read the specified ResourceClaim + * @param name name of the ResourceClaim (required) + * @param namespace object name and auth scope, such as for teams and projects (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call readNamespacedResourceClaimAsync(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = readNamespacedResourceClaimValidateBeforeCall(name, namespace, pretty, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for readNamespacedResourceClaimStatus + * @param name name of the ResourceClaim (required) + * @param namespace object name and auth scope, such as for teams and projects (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call readNamespacedResourceClaimStatusCall(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/apis/resource.k8s.io/v1beta1/namespaces/{namespace}/resourceclaims/{name}/status" + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + final String[] localVarAccepts = { + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call readNamespacedResourceClaimStatusValidateBeforeCall(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'name' is set + if (name == null) { + throw new ApiException("Missing the required parameter 'name' when calling readNamespacedResourceClaimStatus(Async)"); + } + + // verify the required parameter 'namespace' is set + if (namespace == null) { + throw new ApiException("Missing the required parameter 'namespace' when calling readNamespacedResourceClaimStatus(Async)"); + } + + + okhttp3.Call localVarCall = readNamespacedResourceClaimStatusCall(name, namespace, pretty, _callback); + return localVarCall; + + } + + /** + * + * read status of the specified ResourceClaim + * @param name name of the ResourceClaim (required) + * @param namespace object name and auth scope, such as for teams and projects (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @return V1beta1ResourceClaim + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public V1beta1ResourceClaim readNamespacedResourceClaimStatus(String name, String namespace, String pretty) throws ApiException { + ApiResponse localVarResp = readNamespacedResourceClaimStatusWithHttpInfo(name, namespace, pretty); + return localVarResp.getData(); + } + + /** + * + * read status of the specified ResourceClaim + * @param name name of the ResourceClaim (required) + * @param namespace object name and auth scope, such as for teams and projects (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @return ApiResponse<V1beta1ResourceClaim> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public ApiResponse readNamespacedResourceClaimStatusWithHttpInfo(String name, String namespace, String pretty) throws ApiException { + okhttp3.Call localVarCall = readNamespacedResourceClaimStatusValidateBeforeCall(name, namespace, pretty, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * read status of the specified ResourceClaim + * @param name name of the ResourceClaim (required) + * @param namespace object name and auth scope, such as for teams and projects (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call readNamespacedResourceClaimStatusAsync(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = readNamespacedResourceClaimStatusValidateBeforeCall(name, namespace, pretty, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for readNamespacedResourceClaimTemplate + * @param name name of the ResourceClaimTemplate (required) + * @param namespace object name and auth scope, such as for teams and projects (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call readNamespacedResourceClaimTemplateCall(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/apis/resource.k8s.io/v1beta1/namespaces/{namespace}/resourceclaimtemplates/{name}" + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + final String[] localVarAccepts = { + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call readNamespacedResourceClaimTemplateValidateBeforeCall(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'name' is set + if (name == null) { + throw new ApiException("Missing the required parameter 'name' when calling readNamespacedResourceClaimTemplate(Async)"); + } + + // verify the required parameter 'namespace' is set + if (namespace == null) { + throw new ApiException("Missing the required parameter 'namespace' when calling readNamespacedResourceClaimTemplate(Async)"); + } + + + okhttp3.Call localVarCall = readNamespacedResourceClaimTemplateCall(name, namespace, pretty, _callback); + return localVarCall; + + } + + /** + * + * read the specified ResourceClaimTemplate + * @param name name of the ResourceClaimTemplate (required) + * @param namespace object name and auth scope, such as for teams and projects (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @return V1beta1ResourceClaimTemplate + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public V1beta1ResourceClaimTemplate readNamespacedResourceClaimTemplate(String name, String namespace, String pretty) throws ApiException { + ApiResponse localVarResp = readNamespacedResourceClaimTemplateWithHttpInfo(name, namespace, pretty); + return localVarResp.getData(); + } + + /** + * + * read the specified ResourceClaimTemplate + * @param name name of the ResourceClaimTemplate (required) + * @param namespace object name and auth scope, such as for teams and projects (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @return ApiResponse<V1beta1ResourceClaimTemplate> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public ApiResponse readNamespacedResourceClaimTemplateWithHttpInfo(String name, String namespace, String pretty) throws ApiException { + okhttp3.Call localVarCall = readNamespacedResourceClaimTemplateValidateBeforeCall(name, namespace, pretty, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * read the specified ResourceClaimTemplate + * @param name name of the ResourceClaimTemplate (required) + * @param namespace object name and auth scope, such as for teams and projects (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call readNamespacedResourceClaimTemplateAsync(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = readNamespacedResourceClaimTemplateValidateBeforeCall(name, namespace, pretty, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for readResourceSlice + * @param name name of the ResourceSlice (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call readResourceSliceCall(String name, String pretty, final ApiCallback _callback) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/apis/resource.k8s.io/v1beta1/resourceslices/{name}" + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + final String[] localVarAccepts = { + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call readResourceSliceValidateBeforeCall(String name, String pretty, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'name' is set + if (name == null) { + throw new ApiException("Missing the required parameter 'name' when calling readResourceSlice(Async)"); + } + + + okhttp3.Call localVarCall = readResourceSliceCall(name, pretty, _callback); + return localVarCall; + + } + + /** + * + * read the specified ResourceSlice + * @param name name of the ResourceSlice (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @return V1beta1ResourceSlice + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public V1beta1ResourceSlice readResourceSlice(String name, String pretty) throws ApiException { + ApiResponse localVarResp = readResourceSliceWithHttpInfo(name, pretty); + return localVarResp.getData(); + } + + /** + * + * read the specified ResourceSlice + * @param name name of the ResourceSlice (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @return ApiResponse<V1beta1ResourceSlice> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public ApiResponse readResourceSliceWithHttpInfo(String name, String pretty) throws ApiException { + okhttp3.Call localVarCall = readResourceSliceValidateBeforeCall(name, pretty, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * read the specified ResourceSlice + * @param name name of the ResourceSlice (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call readResourceSliceAsync(String name, String pretty, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = readResourceSliceValidateBeforeCall(name, pretty, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for replaceDeviceClass + * @param name name of the DeviceClass (required) + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public okhttp3.Call replaceDeviceClassCall(String name, V1beta1DeviceClass body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + Object localVarPostBody = body; + + // create path and map variables + String localVarPath = "/apis/resource.k8s.io/v1beta1/deviceclasses/{name}" + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } + + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + + if (fieldValidation != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + final String[] localVarAccepts = { + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call replaceDeviceClassValidateBeforeCall(String name, V1beta1DeviceClass body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'name' is set + if (name == null) { + throw new ApiException("Missing the required parameter 'name' when calling replaceDeviceClass(Async)"); + } + + // verify the required parameter 'body' is set + if (body == null) { + throw new ApiException("Missing the required parameter 'body' when calling replaceDeviceClass(Async)"); + } + + + okhttp3.Call localVarCall = replaceDeviceClassCall(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); + return localVarCall; + + } + + /** + * + * replace the specified DeviceClass + * @param name name of the DeviceClass (required) + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @return V1beta1DeviceClass + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public V1beta1DeviceClass replaceDeviceClass(String name, V1beta1DeviceClass body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { + ApiResponse localVarResp = replaceDeviceClassWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation); + return localVarResp.getData(); + } + + /** + * + * replace the specified DeviceClass + * @param name name of the DeviceClass (required) + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @return ApiResponse<V1beta1DeviceClass> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public ApiResponse replaceDeviceClassWithHttpInfo(String name, V1beta1DeviceClass body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { + okhttp3.Call localVarCall = replaceDeviceClassValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * replace the specified DeviceClass + * @param name name of the DeviceClass (required) + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public okhttp3.Call replaceDeviceClassAsync(String name, V1beta1DeviceClass body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = replaceDeviceClassValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for replaceNamespacedResourceClaim + * @param name name of the ResourceClaim (required) + * @param namespace object name and auth scope, such as for teams and projects (required) + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public okhttp3.Call replaceNamespacedResourceClaimCall(String name, String namespace, V1beta1ResourceClaim body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + Object localVarPostBody = body; + + // create path and map variables + String localVarPath = "/apis/resource.k8s.io/v1beta1/namespaces/{namespace}/resourceclaims/{name}" + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } + + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + + if (fieldValidation != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + final String[] localVarAccepts = { + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call replaceNamespacedResourceClaimValidateBeforeCall(String name, String namespace, V1beta1ResourceClaim body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'name' is set + if (name == null) { + throw new ApiException("Missing the required parameter 'name' when calling replaceNamespacedResourceClaim(Async)"); + } + + // verify the required parameter 'namespace' is set + if (namespace == null) { + throw new ApiException("Missing the required parameter 'namespace' when calling replaceNamespacedResourceClaim(Async)"); + } + + // verify the required parameter 'body' is set + if (body == null) { + throw new ApiException("Missing the required parameter 'body' when calling replaceNamespacedResourceClaim(Async)"); + } + + + okhttp3.Call localVarCall = replaceNamespacedResourceClaimCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); + return localVarCall; + + } + + /** + * + * replace the specified ResourceClaim + * @param name name of the ResourceClaim (required) + * @param namespace object name and auth scope, such as for teams and projects (required) + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @return V1beta1ResourceClaim + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public V1beta1ResourceClaim replaceNamespacedResourceClaim(String name, String namespace, V1beta1ResourceClaim body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { + ApiResponse localVarResp = replaceNamespacedResourceClaimWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation); + return localVarResp.getData(); + } + + /** + * + * replace the specified ResourceClaim + * @param name name of the ResourceClaim (required) + * @param namespace object name and auth scope, such as for teams and projects (required) + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @return ApiResponse<V1beta1ResourceClaim> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public ApiResponse replaceNamespacedResourceClaimWithHttpInfo(String name, String namespace, V1beta1ResourceClaim body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { + okhttp3.Call localVarCall = replaceNamespacedResourceClaimValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * replace the specified ResourceClaim + * @param name name of the ResourceClaim (required) + * @param namespace object name and auth scope, such as for teams and projects (required) + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public okhttp3.Call replaceNamespacedResourceClaimAsync(String name, String namespace, V1beta1ResourceClaim body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = replaceNamespacedResourceClaimValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for replaceNamespacedResourceClaimStatus + * @param name name of the ResourceClaim (required) + * @param namespace object name and auth scope, such as for teams and projects (required) + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public okhttp3.Call replaceNamespacedResourceClaimStatusCall(String name, String namespace, V1beta1ResourceClaim body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + Object localVarPostBody = body; + + // create path and map variables + String localVarPath = "/apis/resource.k8s.io/v1beta1/namespaces/{namespace}/resourceclaims/{name}/status" + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } + + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + + if (fieldValidation != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + final String[] localVarAccepts = { + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call replaceNamespacedResourceClaimStatusValidateBeforeCall(String name, String namespace, V1beta1ResourceClaim body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'name' is set + if (name == null) { + throw new ApiException("Missing the required parameter 'name' when calling replaceNamespacedResourceClaimStatus(Async)"); + } + + // verify the required parameter 'namespace' is set + if (namespace == null) { + throw new ApiException("Missing the required parameter 'namespace' when calling replaceNamespacedResourceClaimStatus(Async)"); + } + + // verify the required parameter 'body' is set + if (body == null) { + throw new ApiException("Missing the required parameter 'body' when calling replaceNamespacedResourceClaimStatus(Async)"); + } + + + okhttp3.Call localVarCall = replaceNamespacedResourceClaimStatusCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); + return localVarCall; + + } + + /** + * + * replace status of the specified ResourceClaim + * @param name name of the ResourceClaim (required) + * @param namespace object name and auth scope, such as for teams and projects (required) + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @return V1beta1ResourceClaim + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public V1beta1ResourceClaim replaceNamespacedResourceClaimStatus(String name, String namespace, V1beta1ResourceClaim body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { + ApiResponse localVarResp = replaceNamespacedResourceClaimStatusWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation); + return localVarResp.getData(); + } + + /** + * + * replace status of the specified ResourceClaim + * @param name name of the ResourceClaim (required) + * @param namespace object name and auth scope, such as for teams and projects (required) + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @return ApiResponse<V1beta1ResourceClaim> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public ApiResponse replaceNamespacedResourceClaimStatusWithHttpInfo(String name, String namespace, V1beta1ResourceClaim body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { + okhttp3.Call localVarCall = replaceNamespacedResourceClaimStatusValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * replace status of the specified ResourceClaim + * @param name name of the ResourceClaim (required) + * @param namespace object name and auth scope, such as for teams and projects (required) + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public okhttp3.Call replaceNamespacedResourceClaimStatusAsync(String name, String namespace, V1beta1ResourceClaim body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = replaceNamespacedResourceClaimStatusValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for replaceNamespacedResourceClaimTemplate + * @param name name of the ResourceClaimTemplate (required) + * @param namespace object name and auth scope, such as for teams and projects (required) + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public okhttp3.Call replaceNamespacedResourceClaimTemplateCall(String name, String namespace, V1beta1ResourceClaimTemplate body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + Object localVarPostBody = body; + + // create path and map variables + String localVarPath = "/apis/resource.k8s.io/v1beta1/namespaces/{namespace}/resourceclaimtemplates/{name}" + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } + + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + + if (fieldValidation != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + final String[] localVarAccepts = { + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call replaceNamespacedResourceClaimTemplateValidateBeforeCall(String name, String namespace, V1beta1ResourceClaimTemplate body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'name' is set + if (name == null) { + throw new ApiException("Missing the required parameter 'name' when calling replaceNamespacedResourceClaimTemplate(Async)"); + } + + // verify the required parameter 'namespace' is set + if (namespace == null) { + throw new ApiException("Missing the required parameter 'namespace' when calling replaceNamespacedResourceClaimTemplate(Async)"); + } + + // verify the required parameter 'body' is set + if (body == null) { + throw new ApiException("Missing the required parameter 'body' when calling replaceNamespacedResourceClaimTemplate(Async)"); + } + + + okhttp3.Call localVarCall = replaceNamespacedResourceClaimTemplateCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); + return localVarCall; + + } + + /** + * + * replace the specified ResourceClaimTemplate + * @param name name of the ResourceClaimTemplate (required) + * @param namespace object name and auth scope, such as for teams and projects (required) + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @return V1beta1ResourceClaimTemplate + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public V1beta1ResourceClaimTemplate replaceNamespacedResourceClaimTemplate(String name, String namespace, V1beta1ResourceClaimTemplate body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { + ApiResponse localVarResp = replaceNamespacedResourceClaimTemplateWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation); + return localVarResp.getData(); + } + + /** + * + * replace the specified ResourceClaimTemplate + * @param name name of the ResourceClaimTemplate (required) + * @param namespace object name and auth scope, such as for teams and projects (required) + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @return ApiResponse<V1beta1ResourceClaimTemplate> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public ApiResponse replaceNamespacedResourceClaimTemplateWithHttpInfo(String name, String namespace, V1beta1ResourceClaimTemplate body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { + okhttp3.Call localVarCall = replaceNamespacedResourceClaimTemplateValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * replace the specified ResourceClaimTemplate + * @param name name of the ResourceClaimTemplate (required) + * @param namespace object name and auth scope, such as for teams and projects (required) + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public okhttp3.Call replaceNamespacedResourceClaimTemplateAsync(String name, String namespace, V1beta1ResourceClaimTemplate body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = replaceNamespacedResourceClaimTemplateValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for replaceResourceSlice + * @param name name of the ResourceSlice (required) + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public okhttp3.Call replaceResourceSliceCall(String name, V1beta1ResourceSlice body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + Object localVarPostBody = body; + + // create path and map variables + String localVarPath = "/apis/resource.k8s.io/v1beta1/resourceslices/{name}" + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } + + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + + if (fieldValidation != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + final String[] localVarAccepts = { + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call replaceResourceSliceValidateBeforeCall(String name, V1beta1ResourceSlice body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'name' is set + if (name == null) { + throw new ApiException("Missing the required parameter 'name' when calling replaceResourceSlice(Async)"); + } + + // verify the required parameter 'body' is set + if (body == null) { + throw new ApiException("Missing the required parameter 'body' when calling replaceResourceSlice(Async)"); + } + + + okhttp3.Call localVarCall = replaceResourceSliceCall(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); + return localVarCall; + + } + + /** + * + * replace the specified ResourceSlice + * @param name name of the ResourceSlice (required) + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @return V1beta1ResourceSlice + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public V1beta1ResourceSlice replaceResourceSlice(String name, V1beta1ResourceSlice body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { + ApiResponse localVarResp = replaceResourceSliceWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation); + return localVarResp.getData(); + } + + /** + * + * replace the specified ResourceSlice + * @param name name of the ResourceSlice (required) + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @return ApiResponse<V1beta1ResourceSlice> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public ApiResponse replaceResourceSliceWithHttpInfo(String name, V1beta1ResourceSlice body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { + okhttp3.Call localVarCall = replaceResourceSliceValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * replace the specified ResourceSlice + * @param name name of the ResourceSlice (required) + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public okhttp3.Call replaceResourceSliceAsync(String name, V1beta1ResourceSlice body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = replaceResourceSliceValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } +} diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/ResourceV1beta2Api.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/ResourceV1beta2Api.java new file mode 100644 index 0000000000..a232f48a5d --- /dev/null +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/ResourceV1beta2Api.java @@ -0,0 +1,5939 @@ +/* +Copyright 2025 The Kubernetes Authors. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at +http://www.apache.org/licenses/LICENSE-2.0 +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ +package io.kubernetes.client.openapi.apis; + +import io.kubernetes.client.openapi.ApiCallback; +import io.kubernetes.client.openapi.ApiClient; +import io.kubernetes.client.openapi.ApiException; +import io.kubernetes.client.openapi.ApiResponse; +import io.kubernetes.client.openapi.Configuration; +import io.kubernetes.client.openapi.Pair; +import io.kubernetes.client.openapi.ProgressRequestBody; +import io.kubernetes.client.openapi.ProgressResponseBody; + +import com.google.gson.reflect.TypeToken; + +import java.io.IOException; + + +import io.kubernetes.client.openapi.models.V1APIResourceList; +import io.kubernetes.client.openapi.models.V1DeleteOptions; +import io.kubernetes.client.custom.V1Patch; +import io.kubernetes.client.openapi.models.V1Status; +import io.kubernetes.client.openapi.models.V1beta2DeviceClass; +import io.kubernetes.client.openapi.models.V1beta2DeviceClassList; +import io.kubernetes.client.openapi.models.V1beta2ResourceClaim; +import io.kubernetes.client.openapi.models.V1beta2ResourceClaimList; +import io.kubernetes.client.openapi.models.V1beta2ResourceClaimTemplate; +import io.kubernetes.client.openapi.models.V1beta2ResourceClaimTemplateList; +import io.kubernetes.client.openapi.models.V1beta2ResourceSlice; +import io.kubernetes.client.openapi.models.V1beta2ResourceSliceList; + +import java.lang.reflect.Type; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +public class ResourceV1beta2Api { + private ApiClient localVarApiClient; + + public ResourceV1beta2Api() { + this(Configuration.getDefaultApiClient()); + } + + public ResourceV1beta2Api(ApiClient apiClient) { + this.localVarApiClient = apiClient; + } + + public ApiClient getApiClient() { + return localVarApiClient; + } + + public void setApiClient(ApiClient apiClient) { + this.localVarApiClient = apiClient; + } + + /** + * Build call for createDeviceClass + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
+ */ + public okhttp3.Call createDeviceClassCall(V1beta2DeviceClass body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + Object localVarPostBody = body; + + // create path and map variables + String localVarPath = "/apis/resource.k8s.io/v1beta2/deviceclasses"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } + + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + + if (fieldValidation != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + final String[] localVarAccepts = { + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call createDeviceClassValidateBeforeCall(V1beta2DeviceClass body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'body' is set + if (body == null) { + throw new ApiException("Missing the required parameter 'body' when calling createDeviceClass(Async)"); + } + + + okhttp3.Call localVarCall = createDeviceClassCall(body, pretty, dryRun, fieldManager, fieldValidation, _callback); + return localVarCall; + + } + + /** + * + * create a DeviceClass + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @return V1beta2DeviceClass + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
+ */ + public V1beta2DeviceClass createDeviceClass(V1beta2DeviceClass body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { + ApiResponse localVarResp = createDeviceClassWithHttpInfo(body, pretty, dryRun, fieldManager, fieldValidation); + return localVarResp.getData(); + } + + /** + * + * create a DeviceClass + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @return ApiResponse<V1beta2DeviceClass> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
+ */ + public ApiResponse createDeviceClassWithHttpInfo(V1beta2DeviceClass body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { + okhttp3.Call localVarCall = createDeviceClassValidateBeforeCall(body, pretty, dryRun, fieldManager, fieldValidation, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * create a DeviceClass + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
+ */ + public okhttp3.Call createDeviceClassAsync(V1beta2DeviceClass body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = createDeviceClassValidateBeforeCall(body, pretty, dryRun, fieldManager, fieldValidation, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for createNamespacedResourceClaim + * @param namespace object name and auth scope, such as for teams and projects (required) + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
+ */ + public okhttp3.Call createNamespacedResourceClaimCall(String namespace, V1beta2ResourceClaim body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + Object localVarPostBody = body; + + // create path and map variables + String localVarPath = "/apis/resource.k8s.io/v1beta2/namespaces/{namespace}/resourceclaims" + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } + + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + + if (fieldValidation != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + final String[] localVarAccepts = { + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call createNamespacedResourceClaimValidateBeforeCall(String namespace, V1beta2ResourceClaim body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'namespace' is set + if (namespace == null) { + throw new ApiException("Missing the required parameter 'namespace' when calling createNamespacedResourceClaim(Async)"); + } + + // verify the required parameter 'body' is set + if (body == null) { + throw new ApiException("Missing the required parameter 'body' when calling createNamespacedResourceClaim(Async)"); + } + + + okhttp3.Call localVarCall = createNamespacedResourceClaimCall(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); + return localVarCall; + + } + + /** + * + * create a ResourceClaim + * @param namespace object name and auth scope, such as for teams and projects (required) + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @return V1beta2ResourceClaim + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
+ */ + public V1beta2ResourceClaim createNamespacedResourceClaim(String namespace, V1beta2ResourceClaim body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { + ApiResponse localVarResp = createNamespacedResourceClaimWithHttpInfo(namespace, body, pretty, dryRun, fieldManager, fieldValidation); + return localVarResp.getData(); + } + + /** + * + * create a ResourceClaim + * @param namespace object name and auth scope, such as for teams and projects (required) + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @return ApiResponse<V1beta2ResourceClaim> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
+ */ + public ApiResponse createNamespacedResourceClaimWithHttpInfo(String namespace, V1beta2ResourceClaim body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { + okhttp3.Call localVarCall = createNamespacedResourceClaimValidateBeforeCall(namespace, body, pretty, dryRun, fieldManager, fieldValidation, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * create a ResourceClaim + * @param namespace object name and auth scope, such as for teams and projects (required) + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
+ */ + public okhttp3.Call createNamespacedResourceClaimAsync(String namespace, V1beta2ResourceClaim body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = createNamespacedResourceClaimValidateBeforeCall(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for createNamespacedResourceClaimTemplate + * @param namespace object name and auth scope, such as for teams and projects (required) + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
+ */ + public okhttp3.Call createNamespacedResourceClaimTemplateCall(String namespace, V1beta2ResourceClaimTemplate body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + Object localVarPostBody = body; + + // create path and map variables + String localVarPath = "/apis/resource.k8s.io/v1beta2/namespaces/{namespace}/resourceclaimtemplates" + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } + + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + + if (fieldValidation != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + final String[] localVarAccepts = { + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call createNamespacedResourceClaimTemplateValidateBeforeCall(String namespace, V1beta2ResourceClaimTemplate body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'namespace' is set + if (namespace == null) { + throw new ApiException("Missing the required parameter 'namespace' when calling createNamespacedResourceClaimTemplate(Async)"); + } + + // verify the required parameter 'body' is set + if (body == null) { + throw new ApiException("Missing the required parameter 'body' when calling createNamespacedResourceClaimTemplate(Async)"); + } + + + okhttp3.Call localVarCall = createNamespacedResourceClaimTemplateCall(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); + return localVarCall; + + } + + /** + * + * create a ResourceClaimTemplate + * @param namespace object name and auth scope, such as for teams and projects (required) + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @return V1beta2ResourceClaimTemplate + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
+ */ + public V1beta2ResourceClaimTemplate createNamespacedResourceClaimTemplate(String namespace, V1beta2ResourceClaimTemplate body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { + ApiResponse localVarResp = createNamespacedResourceClaimTemplateWithHttpInfo(namespace, body, pretty, dryRun, fieldManager, fieldValidation); + return localVarResp.getData(); + } + + /** + * + * create a ResourceClaimTemplate + * @param namespace object name and auth scope, such as for teams and projects (required) + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @return ApiResponse<V1beta2ResourceClaimTemplate> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
+ */ + public ApiResponse createNamespacedResourceClaimTemplateWithHttpInfo(String namespace, V1beta2ResourceClaimTemplate body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { + okhttp3.Call localVarCall = createNamespacedResourceClaimTemplateValidateBeforeCall(namespace, body, pretty, dryRun, fieldManager, fieldValidation, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * create a ResourceClaimTemplate + * @param namespace object name and auth scope, such as for teams and projects (required) + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
+ */ + public okhttp3.Call createNamespacedResourceClaimTemplateAsync(String namespace, V1beta2ResourceClaimTemplate body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = createNamespacedResourceClaimTemplateValidateBeforeCall(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for createResourceSlice + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
+ */ + public okhttp3.Call createResourceSliceCall(V1beta2ResourceSlice body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + Object localVarPostBody = body; + + // create path and map variables + String localVarPath = "/apis/resource.k8s.io/v1beta2/resourceslices"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } + + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + + if (fieldValidation != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + final String[] localVarAccepts = { + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call createResourceSliceValidateBeforeCall(V1beta2ResourceSlice body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'body' is set + if (body == null) { + throw new ApiException("Missing the required parameter 'body' when calling createResourceSlice(Async)"); + } + + + okhttp3.Call localVarCall = createResourceSliceCall(body, pretty, dryRun, fieldManager, fieldValidation, _callback); + return localVarCall; + + } + + /** + * + * create a ResourceSlice + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @return V1beta2ResourceSlice + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
+ */ + public V1beta2ResourceSlice createResourceSlice(V1beta2ResourceSlice body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { + ApiResponse localVarResp = createResourceSliceWithHttpInfo(body, pretty, dryRun, fieldManager, fieldValidation); + return localVarResp.getData(); + } + + /** + * + * create a ResourceSlice + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @return ApiResponse<V1beta2ResourceSlice> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
+ */ + public ApiResponse createResourceSliceWithHttpInfo(V1beta2ResourceSlice body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { + okhttp3.Call localVarCall = createResourceSliceValidateBeforeCall(body, pretty, dryRun, fieldManager, fieldValidation, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * create a ResourceSlice + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
+ */ + public okhttp3.Call createResourceSliceAsync(V1beta2ResourceSlice body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = createResourceSliceValidateBeforeCall(body, pretty, dryRun, fieldManager, fieldValidation, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for deleteCollectionDeviceClass + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param _continue 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) + * @param dryRun 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) + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param orphanDependents 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) + * @param propagationPolicy 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. (optional) + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + * @param body (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call deleteCollectionDeviceClassCall(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + Object localVarPostBody = body; + + // create path and map variables + String localVarPath = "/apis/resource.k8s.io/v1beta2/deviceclasses"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + + if (_continue != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); + } + + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } + + if (fieldSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); + } + + if (gracePeriodSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); + } + + if (ignoreStoreReadErrorWithClusterBreakingPotential != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("ignoreStoreReadErrorWithClusterBreakingPotential", ignoreStoreReadErrorWithClusterBreakingPotential)); + } + + if (labelSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); + } + + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + } + + if (orphanDependents != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("orphanDependents", orphanDependents)); + } + + if (propagationPolicy != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("propagationPolicy", propagationPolicy)); + } + + if (resourceVersion != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); + } + + if (resourceVersionMatch != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersionMatch", resourceVersionMatch)); + } + + if (sendInitialEvents != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("sendInitialEvents", sendInitialEvents)); + } + + if (timeoutSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + final String[] localVarAccepts = { + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call deleteCollectionDeviceClassValidateBeforeCall(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + + + okhttp3.Call localVarCall = deleteCollectionDeviceClassCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + return localVarCall; + + } + + /** + * + * delete collection of DeviceClass + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param _continue 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) + * @param dryRun 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) + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param orphanDependents 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) + * @param propagationPolicy 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. (optional) + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + * @param body (optional) + * @return V1Status + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public V1Status deleteCollectionDeviceClass(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body) throws ApiException { + ApiResponse localVarResp = deleteCollectionDeviceClassWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); + return localVarResp.getData(); + } + + /** + * + * delete collection of DeviceClass + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param _continue 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) + * @param dryRun 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) + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param orphanDependents 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) + * @param propagationPolicy 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. (optional) + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + * @param body (optional) + * @return ApiResponse<V1Status> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public ApiResponse deleteCollectionDeviceClassWithHttpInfo(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteCollectionDeviceClassValidateBeforeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * delete collection of DeviceClass + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param _continue 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) + * @param dryRun 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) + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param orphanDependents 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) + * @param propagationPolicy 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. (optional) + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + * @param body (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call deleteCollectionDeviceClassAsync(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = deleteCollectionDeviceClassValidateBeforeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for deleteCollectionNamespacedResourceClaim + * @param namespace object name and auth scope, such as for teams and projects (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param _continue 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) + * @param dryRun 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) + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param orphanDependents 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) + * @param propagationPolicy 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. (optional) + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + * @param body (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call deleteCollectionNamespacedResourceClaimCall(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + Object localVarPostBody = body; + + // create path and map variables + String localVarPath = "/apis/resource.k8s.io/v1beta2/namespaces/{namespace}/resourceclaims" + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + + if (_continue != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); + } + + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } + + if (fieldSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); + } + + if (gracePeriodSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); + } + + if (ignoreStoreReadErrorWithClusterBreakingPotential != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("ignoreStoreReadErrorWithClusterBreakingPotential", ignoreStoreReadErrorWithClusterBreakingPotential)); + } + + if (labelSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); + } + + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + } + + if (orphanDependents != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("orphanDependents", orphanDependents)); + } + + if (propagationPolicy != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("propagationPolicy", propagationPolicy)); + } + + if (resourceVersion != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); + } + + if (resourceVersionMatch != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersionMatch", resourceVersionMatch)); + } + + if (sendInitialEvents != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("sendInitialEvents", sendInitialEvents)); + } + + if (timeoutSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + final String[] localVarAccepts = { + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call deleteCollectionNamespacedResourceClaimValidateBeforeCall(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'namespace' is set + if (namespace == null) { + throw new ApiException("Missing the required parameter 'namespace' when calling deleteCollectionNamespacedResourceClaim(Async)"); + } + + + okhttp3.Call localVarCall = deleteCollectionNamespacedResourceClaimCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + return localVarCall; + + } + + /** + * + * delete collection of ResourceClaim + * @param namespace object name and auth scope, such as for teams and projects (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param _continue 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) + * @param dryRun 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) + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param orphanDependents 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) + * @param propagationPolicy 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. (optional) + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + * @param body (optional) + * @return V1Status + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public V1Status deleteCollectionNamespacedResourceClaim(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body) throws ApiException { + ApiResponse localVarResp = deleteCollectionNamespacedResourceClaimWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); + return localVarResp.getData(); + } + + /** + * + * delete collection of ResourceClaim + * @param namespace object name and auth scope, such as for teams and projects (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param _continue 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) + * @param dryRun 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) + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param orphanDependents 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) + * @param propagationPolicy 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. (optional) + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + * @param body (optional) + * @return ApiResponse<V1Status> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public ApiResponse deleteCollectionNamespacedResourceClaimWithHttpInfo(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteCollectionNamespacedResourceClaimValidateBeforeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * delete collection of ResourceClaim + * @param namespace object name and auth scope, such as for teams and projects (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param _continue 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) + * @param dryRun 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) + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param orphanDependents 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) + * @param propagationPolicy 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. (optional) + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + * @param body (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call deleteCollectionNamespacedResourceClaimAsync(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = deleteCollectionNamespacedResourceClaimValidateBeforeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for deleteCollectionNamespacedResourceClaimTemplate + * @param namespace object name and auth scope, such as for teams and projects (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param _continue 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) + * @param dryRun 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) + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param orphanDependents 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) + * @param propagationPolicy 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. (optional) + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + * @param body (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call deleteCollectionNamespacedResourceClaimTemplateCall(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + Object localVarPostBody = body; + + // create path and map variables + String localVarPath = "/apis/resource.k8s.io/v1beta2/namespaces/{namespace}/resourceclaimtemplates" + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + + if (_continue != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); + } + + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } + + if (fieldSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); + } + + if (gracePeriodSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); + } + + if (ignoreStoreReadErrorWithClusterBreakingPotential != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("ignoreStoreReadErrorWithClusterBreakingPotential", ignoreStoreReadErrorWithClusterBreakingPotential)); + } + + if (labelSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); + } + + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + } + + if (orphanDependents != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("orphanDependents", orphanDependents)); + } + + if (propagationPolicy != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("propagationPolicy", propagationPolicy)); + } + + if (resourceVersion != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); + } + + if (resourceVersionMatch != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersionMatch", resourceVersionMatch)); + } + + if (sendInitialEvents != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("sendInitialEvents", sendInitialEvents)); + } + + if (timeoutSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + final String[] localVarAccepts = { + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call deleteCollectionNamespacedResourceClaimTemplateValidateBeforeCall(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'namespace' is set + if (namespace == null) { + throw new ApiException("Missing the required parameter 'namespace' when calling deleteCollectionNamespacedResourceClaimTemplate(Async)"); + } + + + okhttp3.Call localVarCall = deleteCollectionNamespacedResourceClaimTemplateCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + return localVarCall; + + } + + /** + * + * delete collection of ResourceClaimTemplate + * @param namespace object name and auth scope, such as for teams and projects (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param _continue 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) + * @param dryRun 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) + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param orphanDependents 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) + * @param propagationPolicy 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. (optional) + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + * @param body (optional) + * @return V1Status + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public V1Status deleteCollectionNamespacedResourceClaimTemplate(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body) throws ApiException { + ApiResponse localVarResp = deleteCollectionNamespacedResourceClaimTemplateWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); + return localVarResp.getData(); + } + + /** + * + * delete collection of ResourceClaimTemplate + * @param namespace object name and auth scope, such as for teams and projects (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param _continue 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) + * @param dryRun 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) + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param orphanDependents 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) + * @param propagationPolicy 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. (optional) + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + * @param body (optional) + * @return ApiResponse<V1Status> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public ApiResponse deleteCollectionNamespacedResourceClaimTemplateWithHttpInfo(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteCollectionNamespacedResourceClaimTemplateValidateBeforeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * delete collection of ResourceClaimTemplate + * @param namespace object name and auth scope, such as for teams and projects (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param _continue 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) + * @param dryRun 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) + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param orphanDependents 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) + * @param propagationPolicy 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. (optional) + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + * @param body (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call deleteCollectionNamespacedResourceClaimTemplateAsync(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = deleteCollectionNamespacedResourceClaimTemplateValidateBeforeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for deleteCollectionResourceSlice + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param _continue 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) + * @param dryRun 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) + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param orphanDependents 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) + * @param propagationPolicy 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. (optional) + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + * @param body (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call deleteCollectionResourceSliceCall(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + Object localVarPostBody = body; + + // create path and map variables + String localVarPath = "/apis/resource.k8s.io/v1beta2/resourceslices"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + + if (_continue != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); + } + + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } + + if (fieldSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); + } + + if (gracePeriodSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); + } + + if (ignoreStoreReadErrorWithClusterBreakingPotential != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("ignoreStoreReadErrorWithClusterBreakingPotential", ignoreStoreReadErrorWithClusterBreakingPotential)); + } + + if (labelSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); + } + + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + } + + if (orphanDependents != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("orphanDependents", orphanDependents)); + } + + if (propagationPolicy != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("propagationPolicy", propagationPolicy)); + } + + if (resourceVersion != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); + } + + if (resourceVersionMatch != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersionMatch", resourceVersionMatch)); + } + + if (sendInitialEvents != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("sendInitialEvents", sendInitialEvents)); + } + + if (timeoutSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + final String[] localVarAccepts = { + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call deleteCollectionResourceSliceValidateBeforeCall(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + + + okhttp3.Call localVarCall = deleteCollectionResourceSliceCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + return localVarCall; + + } + + /** + * + * delete collection of ResourceSlice + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param _continue 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) + * @param dryRun 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) + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param orphanDependents 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) + * @param propagationPolicy 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. (optional) + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + * @param body (optional) + * @return V1Status + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public V1Status deleteCollectionResourceSlice(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body) throws ApiException { + ApiResponse localVarResp = deleteCollectionResourceSliceWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); + return localVarResp.getData(); + } + + /** + * + * delete collection of ResourceSlice + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param _continue 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) + * @param dryRun 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) + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param orphanDependents 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) + * @param propagationPolicy 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. (optional) + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + * @param body (optional) + * @return ApiResponse<V1Status> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public ApiResponse deleteCollectionResourceSliceWithHttpInfo(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteCollectionResourceSliceValidateBeforeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * delete collection of ResourceSlice + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param _continue 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) + * @param dryRun 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) + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param orphanDependents 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) + * @param propagationPolicy 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. (optional) + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + * @param body (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call deleteCollectionResourceSliceAsync(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = deleteCollectionResourceSliceValidateBeforeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for deleteDeviceClass + * @param name name of the DeviceClass (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) + * @param orphanDependents 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) + * @param propagationPolicy 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. (optional) + * @param body (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
+ */ + public okhttp3.Call deleteDeviceClassCall(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + Object localVarPostBody = body; + + // create path and map variables + String localVarPath = "/apis/resource.k8s.io/v1beta2/deviceclasses/{name}" + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } + + if (gracePeriodSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); + } + + if (ignoreStoreReadErrorWithClusterBreakingPotential != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("ignoreStoreReadErrorWithClusterBreakingPotential", ignoreStoreReadErrorWithClusterBreakingPotential)); + } + + if (orphanDependents != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("orphanDependents", orphanDependents)); + } + + if (propagationPolicy != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("propagationPolicy", propagationPolicy)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + final String[] localVarAccepts = { + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call deleteDeviceClassValidateBeforeCall(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'name' is set + if (name == null) { + throw new ApiException("Missing the required parameter 'name' when calling deleteDeviceClass(Async)"); + } + + + okhttp3.Call localVarCall = deleteDeviceClassCall(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); + return localVarCall; + + } + + /** + * + * delete a DeviceClass + * @param name name of the DeviceClass (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) + * @param orphanDependents 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) + * @param propagationPolicy 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. (optional) + * @param body (optional) + * @return V1beta2DeviceClass + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
+ */ + public V1beta2DeviceClass deleteDeviceClass(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { + ApiResponse localVarResp = deleteDeviceClassWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body); + return localVarResp.getData(); + } + + /** + * + * delete a DeviceClass + * @param name name of the DeviceClass (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) + * @param orphanDependents 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) + * @param propagationPolicy 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. (optional) + * @param body (optional) + * @return ApiResponse<V1beta2DeviceClass> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
+ */ + public ApiResponse deleteDeviceClassWithHttpInfo(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteDeviceClassValidateBeforeCall(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * delete a DeviceClass + * @param name name of the DeviceClass (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) + * @param orphanDependents 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) + * @param propagationPolicy 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. (optional) + * @param body (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
+ */ + public okhttp3.Call deleteDeviceClassAsync(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = deleteDeviceClassValidateBeforeCall(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for deleteNamespacedResourceClaim + * @param name name of the ResourceClaim (required) + * @param namespace object name and auth scope, such as for teams and projects (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) + * @param orphanDependents 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) + * @param propagationPolicy 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. (optional) + * @param body (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
+ */ + public okhttp3.Call deleteNamespacedResourceClaimCall(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + Object localVarPostBody = body; + + // create path and map variables + String localVarPath = "/apis/resource.k8s.io/v1beta2/namespaces/{namespace}/resourceclaims/{name}" + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } + + if (gracePeriodSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); + } + + if (ignoreStoreReadErrorWithClusterBreakingPotential != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("ignoreStoreReadErrorWithClusterBreakingPotential", ignoreStoreReadErrorWithClusterBreakingPotential)); + } + + if (orphanDependents != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("orphanDependents", orphanDependents)); + } + + if (propagationPolicy != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("propagationPolicy", propagationPolicy)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + final String[] localVarAccepts = { + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call deleteNamespacedResourceClaimValidateBeforeCall(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'name' is set + if (name == null) { + throw new ApiException("Missing the required parameter 'name' when calling deleteNamespacedResourceClaim(Async)"); + } + + // verify the required parameter 'namespace' is set + if (namespace == null) { + throw new ApiException("Missing the required parameter 'namespace' when calling deleteNamespacedResourceClaim(Async)"); + } + + + okhttp3.Call localVarCall = deleteNamespacedResourceClaimCall(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); + return localVarCall; + + } + + /** + * + * delete a ResourceClaim + * @param name name of the ResourceClaim (required) + * @param namespace object name and auth scope, such as for teams and projects (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) + * @param orphanDependents 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) + * @param propagationPolicy 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. (optional) + * @param body (optional) + * @return V1beta2ResourceClaim + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
+ */ + public V1beta2ResourceClaim deleteNamespacedResourceClaim(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { + ApiResponse localVarResp = deleteNamespacedResourceClaimWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body); + return localVarResp.getData(); + } + + /** + * + * delete a ResourceClaim + * @param name name of the ResourceClaim (required) + * @param namespace object name and auth scope, such as for teams and projects (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) + * @param orphanDependents 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) + * @param propagationPolicy 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. (optional) + * @param body (optional) + * @return ApiResponse<V1beta2ResourceClaim> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
+ */ + public ApiResponse deleteNamespacedResourceClaimWithHttpInfo(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteNamespacedResourceClaimValidateBeforeCall(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * delete a ResourceClaim + * @param name name of the ResourceClaim (required) + * @param namespace object name and auth scope, such as for teams and projects (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) + * @param orphanDependents 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) + * @param propagationPolicy 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. (optional) + * @param body (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
+ */ + public okhttp3.Call deleteNamespacedResourceClaimAsync(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = deleteNamespacedResourceClaimValidateBeforeCall(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for deleteNamespacedResourceClaimTemplate + * @param name name of the ResourceClaimTemplate (required) + * @param namespace object name and auth scope, such as for teams and projects (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) + * @param orphanDependents 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) + * @param propagationPolicy 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. (optional) + * @param body (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
+ */ + public okhttp3.Call deleteNamespacedResourceClaimTemplateCall(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + Object localVarPostBody = body; + + // create path and map variables + String localVarPath = "/apis/resource.k8s.io/v1beta2/namespaces/{namespace}/resourceclaimtemplates/{name}" + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } + + if (gracePeriodSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); + } + + if (ignoreStoreReadErrorWithClusterBreakingPotential != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("ignoreStoreReadErrorWithClusterBreakingPotential", ignoreStoreReadErrorWithClusterBreakingPotential)); + } + + if (orphanDependents != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("orphanDependents", orphanDependents)); + } + + if (propagationPolicy != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("propagationPolicy", propagationPolicy)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + final String[] localVarAccepts = { + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call deleteNamespacedResourceClaimTemplateValidateBeforeCall(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'name' is set + if (name == null) { + throw new ApiException("Missing the required parameter 'name' when calling deleteNamespacedResourceClaimTemplate(Async)"); + } + + // verify the required parameter 'namespace' is set + if (namespace == null) { + throw new ApiException("Missing the required parameter 'namespace' when calling deleteNamespacedResourceClaimTemplate(Async)"); + } + + + okhttp3.Call localVarCall = deleteNamespacedResourceClaimTemplateCall(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); + return localVarCall; + + } + + /** + * + * delete a ResourceClaimTemplate + * @param name name of the ResourceClaimTemplate (required) + * @param namespace object name and auth scope, such as for teams and projects (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) + * @param orphanDependents 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) + * @param propagationPolicy 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. (optional) + * @param body (optional) + * @return V1beta2ResourceClaimTemplate + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
+ */ + public V1beta2ResourceClaimTemplate deleteNamespacedResourceClaimTemplate(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { + ApiResponse localVarResp = deleteNamespacedResourceClaimTemplateWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body); + return localVarResp.getData(); + } + + /** + * + * delete a ResourceClaimTemplate + * @param name name of the ResourceClaimTemplate (required) + * @param namespace object name and auth scope, such as for teams and projects (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) + * @param orphanDependents 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) + * @param propagationPolicy 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. (optional) + * @param body (optional) + * @return ApiResponse<V1beta2ResourceClaimTemplate> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
+ */ + public ApiResponse deleteNamespacedResourceClaimTemplateWithHttpInfo(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteNamespacedResourceClaimTemplateValidateBeforeCall(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * delete a ResourceClaimTemplate + * @param name name of the ResourceClaimTemplate (required) + * @param namespace object name and auth scope, such as for teams and projects (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) + * @param orphanDependents 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) + * @param propagationPolicy 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. (optional) + * @param body (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
+ */ + public okhttp3.Call deleteNamespacedResourceClaimTemplateAsync(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = deleteNamespacedResourceClaimTemplateValidateBeforeCall(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for deleteResourceSlice + * @param name name of the ResourceSlice (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) + * @param orphanDependents 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) + * @param propagationPolicy 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. (optional) + * @param body (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
+ */ + public okhttp3.Call deleteResourceSliceCall(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + Object localVarPostBody = body; + + // create path and map variables + String localVarPath = "/apis/resource.k8s.io/v1beta2/resourceslices/{name}" + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } + + if (gracePeriodSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); + } + + if (ignoreStoreReadErrorWithClusterBreakingPotential != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("ignoreStoreReadErrorWithClusterBreakingPotential", ignoreStoreReadErrorWithClusterBreakingPotential)); + } + + if (orphanDependents != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("orphanDependents", orphanDependents)); + } + + if (propagationPolicy != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("propagationPolicy", propagationPolicy)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + final String[] localVarAccepts = { + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call deleteResourceSliceValidateBeforeCall(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'name' is set + if (name == null) { + throw new ApiException("Missing the required parameter 'name' when calling deleteResourceSlice(Async)"); + } + + + okhttp3.Call localVarCall = deleteResourceSliceCall(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); + return localVarCall; + + } + + /** + * + * delete a ResourceSlice + * @param name name of the ResourceSlice (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) + * @param orphanDependents 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) + * @param propagationPolicy 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. (optional) + * @param body (optional) + * @return V1beta2ResourceSlice + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
+ */ + public V1beta2ResourceSlice deleteResourceSlice(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { + ApiResponse localVarResp = deleteResourceSliceWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body); + return localVarResp.getData(); + } + + /** + * + * delete a ResourceSlice + * @param name name of the ResourceSlice (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) + * @param orphanDependents 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) + * @param propagationPolicy 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. (optional) + * @param body (optional) + * @return ApiResponse<V1beta2ResourceSlice> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
+ */ + public ApiResponse deleteResourceSliceWithHttpInfo(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteResourceSliceValidateBeforeCall(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * delete a ResourceSlice + * @param name name of the ResourceSlice (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) + * @param orphanDependents 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) + * @param propagationPolicy 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. (optional) + * @param body (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
+ */ + public okhttp3.Call deleteResourceSliceAsync(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = deleteResourceSliceValidateBeforeCall(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for getAPIResources + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call getAPIResourcesCall(final ApiCallback _callback) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/apis/resource.k8s.io/v1beta2/"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + final String[] localVarAccepts = { + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call getAPIResourcesValidateBeforeCall(final ApiCallback _callback) throws ApiException { + + + okhttp3.Call localVarCall = getAPIResourcesCall(_callback); + return localVarCall; + + } + + /** + * + * get available resources + * @return V1APIResourceList + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public V1APIResourceList getAPIResources() throws ApiException { + ApiResponse localVarResp = getAPIResourcesWithHttpInfo(); + return localVarResp.getData(); + } + + /** + * + * get available resources + * @return ApiResponse<V1APIResourceList> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public ApiResponse getAPIResourcesWithHttpInfo() throws ApiException { + okhttp3.Call localVarCall = getAPIResourcesValidateBeforeCall(null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * get available resources + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call getAPIResourcesAsync(final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = getAPIResourcesValidateBeforeCall(_callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for listDeviceClass + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param allowWatchBookmarks 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. (optional) + * @param _continue 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) + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call listDeviceClassCall(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/apis/resource.k8s.io/v1beta2/deviceclasses"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + + if (allowWatchBookmarks != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("allowWatchBookmarks", allowWatchBookmarks)); + } + + if (_continue != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); + } + + if (fieldSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); + } + + if (labelSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); + } + + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + } + + if (resourceVersion != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); + } + + if (resourceVersionMatch != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersionMatch", resourceVersionMatch)); + } + + if (sendInitialEvents != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("sendInitialEvents", sendInitialEvents)); + } + + if (timeoutSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); + } + + if (watch != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + final String[] localVarAccepts = { + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch", "application/cbor-seq" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call listDeviceClassValidateBeforeCall(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + + + okhttp3.Call localVarCall = listDeviceClassCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + return localVarCall; + + } + + /** + * + * list or watch objects of kind DeviceClass + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param allowWatchBookmarks 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. (optional) + * @param _continue 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) + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + * @return V1beta2DeviceClassList + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public V1beta2DeviceClassList listDeviceClass(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch) throws ApiException { + ApiResponse localVarResp = listDeviceClassWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + return localVarResp.getData(); + } + + /** + * + * list or watch objects of kind DeviceClass + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param allowWatchBookmarks 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. (optional) + * @param _continue 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) + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + * @return ApiResponse<V1beta2DeviceClassList> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public ApiResponse listDeviceClassWithHttpInfo(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch) throws ApiException { + okhttp3.Call localVarCall = listDeviceClassValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * list or watch objects of kind DeviceClass + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param allowWatchBookmarks 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. (optional) + * @param _continue 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) + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call listDeviceClassAsync(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = listDeviceClassValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for listNamespacedResourceClaim + * @param namespace object name and auth scope, such as for teams and projects (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param allowWatchBookmarks 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. (optional) + * @param _continue 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) + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call listNamespacedResourceClaimCall(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/apis/resource.k8s.io/v1beta2/namespaces/{namespace}/resourceclaims" + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + + if (allowWatchBookmarks != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("allowWatchBookmarks", allowWatchBookmarks)); + } + + if (_continue != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); + } + + if (fieldSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); + } + + if (labelSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); + } + + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + } + + if (resourceVersion != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); + } + + if (resourceVersionMatch != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersionMatch", resourceVersionMatch)); + } + + if (sendInitialEvents != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("sendInitialEvents", sendInitialEvents)); + } + + if (timeoutSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); + } + + if (watch != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + final String[] localVarAccepts = { + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch", "application/cbor-seq" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call listNamespacedResourceClaimValidateBeforeCall(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'namespace' is set + if (namespace == null) { + throw new ApiException("Missing the required parameter 'namespace' when calling listNamespacedResourceClaim(Async)"); + } + + + okhttp3.Call localVarCall = listNamespacedResourceClaimCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + return localVarCall; + + } + + /** + * + * list or watch objects of kind ResourceClaim + * @param namespace object name and auth scope, such as for teams and projects (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param allowWatchBookmarks 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. (optional) + * @param _continue 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) + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + * @return V1beta2ResourceClaimList + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public V1beta2ResourceClaimList listNamespacedResourceClaim(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch) throws ApiException { + ApiResponse localVarResp = listNamespacedResourceClaimWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + return localVarResp.getData(); + } + + /** + * + * list or watch objects of kind ResourceClaim + * @param namespace object name and auth scope, such as for teams and projects (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param allowWatchBookmarks 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. (optional) + * @param _continue 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) + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + * @return ApiResponse<V1beta2ResourceClaimList> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public ApiResponse listNamespacedResourceClaimWithHttpInfo(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch) throws ApiException { + okhttp3.Call localVarCall = listNamespacedResourceClaimValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * list or watch objects of kind ResourceClaim + * @param namespace object name and auth scope, such as for teams and projects (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param allowWatchBookmarks 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. (optional) + * @param _continue 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) + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call listNamespacedResourceClaimAsync(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = listNamespacedResourceClaimValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for listNamespacedResourceClaimTemplate + * @param namespace object name and auth scope, such as for teams and projects (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param allowWatchBookmarks 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. (optional) + * @param _continue 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) + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call listNamespacedResourceClaimTemplateCall(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/apis/resource.k8s.io/v1beta2/namespaces/{namespace}/resourceclaimtemplates" + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + + if (allowWatchBookmarks != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("allowWatchBookmarks", allowWatchBookmarks)); + } + + if (_continue != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); + } + + if (fieldSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); + } + + if (labelSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); + } + + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + } + + if (resourceVersion != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); + } + + if (resourceVersionMatch != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersionMatch", resourceVersionMatch)); + } + + if (sendInitialEvents != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("sendInitialEvents", sendInitialEvents)); + } + + if (timeoutSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); + } + + if (watch != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + final String[] localVarAccepts = { + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch", "application/cbor-seq" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call listNamespacedResourceClaimTemplateValidateBeforeCall(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'namespace' is set + if (namespace == null) { + throw new ApiException("Missing the required parameter 'namespace' when calling listNamespacedResourceClaimTemplate(Async)"); + } + + + okhttp3.Call localVarCall = listNamespacedResourceClaimTemplateCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + return localVarCall; + + } + + /** + * + * list or watch objects of kind ResourceClaimTemplate + * @param namespace object name and auth scope, such as for teams and projects (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param allowWatchBookmarks 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. (optional) + * @param _continue 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) + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + * @return V1beta2ResourceClaimTemplateList + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public V1beta2ResourceClaimTemplateList listNamespacedResourceClaimTemplate(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch) throws ApiException { + ApiResponse localVarResp = listNamespacedResourceClaimTemplateWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + return localVarResp.getData(); + } + + /** + * + * list or watch objects of kind ResourceClaimTemplate + * @param namespace object name and auth scope, such as for teams and projects (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param allowWatchBookmarks 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. (optional) + * @param _continue 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) + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + * @return ApiResponse<V1beta2ResourceClaimTemplateList> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public ApiResponse listNamespacedResourceClaimTemplateWithHttpInfo(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch) throws ApiException { + okhttp3.Call localVarCall = listNamespacedResourceClaimTemplateValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * list or watch objects of kind ResourceClaimTemplate + * @param namespace object name and auth scope, such as for teams and projects (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param allowWatchBookmarks 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. (optional) + * @param _continue 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) + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call listNamespacedResourceClaimTemplateAsync(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = listNamespacedResourceClaimTemplateValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for listResourceClaimForAllNamespaces + * @param allowWatchBookmarks 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. (optional) + * @param _continue 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) + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call listResourceClaimForAllNamespacesCall(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/apis/resource.k8s.io/v1beta2/resourceclaims"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (allowWatchBookmarks != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("allowWatchBookmarks", allowWatchBookmarks)); + } + + if (_continue != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); + } + + if (fieldSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); + } + + if (labelSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); + } + + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + } + + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + + if (resourceVersion != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); + } + + if (resourceVersionMatch != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersionMatch", resourceVersionMatch)); + } + + if (sendInitialEvents != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("sendInitialEvents", sendInitialEvents)); + } + + if (timeoutSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); + } + + if (watch != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + final String[] localVarAccepts = { + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch", "application/cbor-seq" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call listResourceClaimForAllNamespacesValidateBeforeCall(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + + + okhttp3.Call localVarCall = listResourceClaimForAllNamespacesCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + return localVarCall; + + } + + /** + * + * list or watch objects of kind ResourceClaim + * @param allowWatchBookmarks 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. (optional) + * @param _continue 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) + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + * @return V1beta2ResourceClaimList + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public V1beta2ResourceClaimList listResourceClaimForAllNamespaces(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch) throws ApiException { + ApiResponse localVarResp = listResourceClaimForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + return localVarResp.getData(); + } + + /** + * + * list or watch objects of kind ResourceClaim + * @param allowWatchBookmarks 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. (optional) + * @param _continue 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) + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + * @return ApiResponse<V1beta2ResourceClaimList> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public ApiResponse listResourceClaimForAllNamespacesWithHttpInfo(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch) throws ApiException { + okhttp3.Call localVarCall = listResourceClaimForAllNamespacesValidateBeforeCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * list or watch objects of kind ResourceClaim + * @param allowWatchBookmarks 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. (optional) + * @param _continue 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) + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call listResourceClaimForAllNamespacesAsync(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = listResourceClaimForAllNamespacesValidateBeforeCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for listResourceClaimTemplateForAllNamespaces + * @param allowWatchBookmarks 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. (optional) + * @param _continue 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) + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call listResourceClaimTemplateForAllNamespacesCall(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/apis/resource.k8s.io/v1beta2/resourceclaimtemplates"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (allowWatchBookmarks != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("allowWatchBookmarks", allowWatchBookmarks)); + } + + if (_continue != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); + } + + if (fieldSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); + } + + if (labelSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); + } + + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + } + + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + + if (resourceVersion != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); + } + + if (resourceVersionMatch != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersionMatch", resourceVersionMatch)); + } + + if (sendInitialEvents != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("sendInitialEvents", sendInitialEvents)); + } + + if (timeoutSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); + } + + if (watch != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + final String[] localVarAccepts = { + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch", "application/cbor-seq" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call listResourceClaimTemplateForAllNamespacesValidateBeforeCall(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + + + okhttp3.Call localVarCall = listResourceClaimTemplateForAllNamespacesCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + return localVarCall; + + } + + /** + * + * list or watch objects of kind ResourceClaimTemplate + * @param allowWatchBookmarks 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. (optional) + * @param _continue 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) + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + * @return V1beta2ResourceClaimTemplateList + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public V1beta2ResourceClaimTemplateList listResourceClaimTemplateForAllNamespaces(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch) throws ApiException { + ApiResponse localVarResp = listResourceClaimTemplateForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + return localVarResp.getData(); + } + + /** + * + * list or watch objects of kind ResourceClaimTemplate + * @param allowWatchBookmarks 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. (optional) + * @param _continue 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) + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + * @return ApiResponse<V1beta2ResourceClaimTemplateList> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public ApiResponse listResourceClaimTemplateForAllNamespacesWithHttpInfo(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch) throws ApiException { + okhttp3.Call localVarCall = listResourceClaimTemplateForAllNamespacesValidateBeforeCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * list or watch objects of kind ResourceClaimTemplate + * @param allowWatchBookmarks 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. (optional) + * @param _continue 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) + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call listResourceClaimTemplateForAllNamespacesAsync(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = listResourceClaimTemplateForAllNamespacesValidateBeforeCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for listResourceSlice + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param allowWatchBookmarks 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. (optional) + * @param _continue 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) + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call listResourceSliceCall(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/apis/resource.k8s.io/v1beta2/resourceslices"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + + if (allowWatchBookmarks != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("allowWatchBookmarks", allowWatchBookmarks)); + } + + if (_continue != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); + } + + if (fieldSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); + } + + if (labelSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); + } + + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + } + + if (resourceVersion != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); + } + + if (resourceVersionMatch != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersionMatch", resourceVersionMatch)); + } + + if (sendInitialEvents != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("sendInitialEvents", sendInitialEvents)); + } + + if (timeoutSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); + } + + if (watch != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + final String[] localVarAccepts = { + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch", "application/cbor-seq" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call listResourceSliceValidateBeforeCall(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + + + okhttp3.Call localVarCall = listResourceSliceCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + return localVarCall; + + } + + /** + * + * list or watch objects of kind ResourceSlice + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param allowWatchBookmarks 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. (optional) + * @param _continue 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) + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + * @return V1beta2ResourceSliceList + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public V1beta2ResourceSliceList listResourceSlice(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch) throws ApiException { + ApiResponse localVarResp = listResourceSliceWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + return localVarResp.getData(); + } + + /** + * + * list or watch objects of kind ResourceSlice + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param allowWatchBookmarks 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. (optional) + * @param _continue 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) + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + * @return ApiResponse<V1beta2ResourceSliceList> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public ApiResponse listResourceSliceWithHttpInfo(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch) throws ApiException { + okhttp3.Call localVarCall = listResourceSliceValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * list or watch objects of kind ResourceSlice + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param allowWatchBookmarks 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. (optional) + * @param _continue 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) + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call listResourceSliceAsync(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = listResourceSliceValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for patchDeviceClass + * @param name name of the DeviceClass (required) + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public okhttp3.Call patchDeviceClassCall(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + Object localVarPostBody = body; + + // create path and map variables + String localVarPath = "/apis/resource.k8s.io/v1beta2/deviceclasses/{name}" + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } + + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + + if (fieldValidation != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); + } + + if (force != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("force", force)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + final String[] localVarAccepts = { + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call patchDeviceClassValidateBeforeCall(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'name' is set + if (name == null) { + throw new ApiException("Missing the required parameter 'name' when calling patchDeviceClass(Async)"); + } + + // verify the required parameter 'body' is set + if (body == null) { + throw new ApiException("Missing the required parameter 'body' when calling patchDeviceClass(Async)"); + } + + + okhttp3.Call localVarCall = patchDeviceClassCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); + return localVarCall; + + } + + /** + * + * partially update the specified DeviceClass + * @param name name of the DeviceClass (required) + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) + * @return V1beta2DeviceClass + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public V1beta2DeviceClass patchDeviceClass(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force) throws ApiException { + ApiResponse localVarResp = patchDeviceClassWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force); + return localVarResp.getData(); + } + + /** + * + * partially update the specified DeviceClass + * @param name name of the DeviceClass (required) + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) + * @return ApiResponse<V1beta2DeviceClass> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public ApiResponse patchDeviceClassWithHttpInfo(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force) throws ApiException { + okhttp3.Call localVarCall = patchDeviceClassValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * partially update the specified DeviceClass + * @param name name of the DeviceClass (required) + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public okhttp3.Call patchDeviceClassAsync(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = patchDeviceClassValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for patchNamespacedResourceClaim + * @param name name of the ResourceClaim (required) + * @param namespace object name and auth scope, such as for teams and projects (required) + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public okhttp3.Call patchNamespacedResourceClaimCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + Object localVarPostBody = body; + + // create path and map variables + String localVarPath = "/apis/resource.k8s.io/v1beta2/namespaces/{namespace}/resourceclaims/{name}" + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } + + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + + if (fieldValidation != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); + } + + if (force != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("force", force)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + final String[] localVarAccepts = { + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call patchNamespacedResourceClaimValidateBeforeCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'name' is set + if (name == null) { + throw new ApiException("Missing the required parameter 'name' when calling patchNamespacedResourceClaim(Async)"); + } + + // verify the required parameter 'namespace' is set + if (namespace == null) { + throw new ApiException("Missing the required parameter 'namespace' when calling patchNamespacedResourceClaim(Async)"); + } + + // verify the required parameter 'body' is set + if (body == null) { + throw new ApiException("Missing the required parameter 'body' when calling patchNamespacedResourceClaim(Async)"); + } + + + okhttp3.Call localVarCall = patchNamespacedResourceClaimCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); + return localVarCall; + + } + + /** + * + * partially update the specified ResourceClaim + * @param name name of the ResourceClaim (required) + * @param namespace object name and auth scope, such as for teams and projects (required) + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) + * @return V1beta2ResourceClaim + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public V1beta2ResourceClaim patchNamespacedResourceClaim(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force) throws ApiException { + ApiResponse localVarResp = patchNamespacedResourceClaimWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force); + return localVarResp.getData(); + } + + /** + * + * partially update the specified ResourceClaim + * @param name name of the ResourceClaim (required) + * @param namespace object name and auth scope, such as for teams and projects (required) + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) + * @return ApiResponse<V1beta2ResourceClaim> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public ApiResponse patchNamespacedResourceClaimWithHttpInfo(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force) throws ApiException { + okhttp3.Call localVarCall = patchNamespacedResourceClaimValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * partially update the specified ResourceClaim + * @param name name of the ResourceClaim (required) + * @param namespace object name and auth scope, such as for teams and projects (required) + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public okhttp3.Call patchNamespacedResourceClaimAsync(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = patchNamespacedResourceClaimValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for patchNamespacedResourceClaimStatus + * @param name name of the ResourceClaim (required) + * @param namespace object name and auth scope, such as for teams and projects (required) + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public okhttp3.Call patchNamespacedResourceClaimStatusCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + Object localVarPostBody = body; + + // create path and map variables + String localVarPath = "/apis/resource.k8s.io/v1beta2/namespaces/{namespace}/resourceclaims/{name}/status" + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } + + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + + if (fieldValidation != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); + } + + if (force != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("force", force)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + final String[] localVarAccepts = { + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call patchNamespacedResourceClaimStatusValidateBeforeCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'name' is set + if (name == null) { + throw new ApiException("Missing the required parameter 'name' when calling patchNamespacedResourceClaimStatus(Async)"); + } + + // verify the required parameter 'namespace' is set + if (namespace == null) { + throw new ApiException("Missing the required parameter 'namespace' when calling patchNamespacedResourceClaimStatus(Async)"); + } + + // verify the required parameter 'body' is set + if (body == null) { + throw new ApiException("Missing the required parameter 'body' when calling patchNamespacedResourceClaimStatus(Async)"); + } + + + okhttp3.Call localVarCall = patchNamespacedResourceClaimStatusCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); + return localVarCall; + + } + + /** + * + * partially update status of the specified ResourceClaim + * @param name name of the ResourceClaim (required) + * @param namespace object name and auth scope, such as for teams and projects (required) + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) + * @return V1beta2ResourceClaim + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public V1beta2ResourceClaim patchNamespacedResourceClaimStatus(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force) throws ApiException { + ApiResponse localVarResp = patchNamespacedResourceClaimStatusWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force); + return localVarResp.getData(); + } + + /** + * + * partially update status of the specified ResourceClaim + * @param name name of the ResourceClaim (required) + * @param namespace object name and auth scope, such as for teams and projects (required) + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) + * @return ApiResponse<V1beta2ResourceClaim> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public ApiResponse patchNamespacedResourceClaimStatusWithHttpInfo(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force) throws ApiException { + okhttp3.Call localVarCall = patchNamespacedResourceClaimStatusValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * partially update status of the specified ResourceClaim + * @param name name of the ResourceClaim (required) + * @param namespace object name and auth scope, such as for teams and projects (required) + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public okhttp3.Call patchNamespacedResourceClaimStatusAsync(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = patchNamespacedResourceClaimStatusValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for patchNamespacedResourceClaimTemplate + * @param name name of the ResourceClaimTemplate (required) + * @param namespace object name and auth scope, such as for teams and projects (required) + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public okhttp3.Call patchNamespacedResourceClaimTemplateCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + Object localVarPostBody = body; + + // create path and map variables + String localVarPath = "/apis/resource.k8s.io/v1beta2/namespaces/{namespace}/resourceclaimtemplates/{name}" + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } + + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + + if (fieldValidation != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); + } + + if (force != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("force", force)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + final String[] localVarAccepts = { + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call patchNamespacedResourceClaimTemplateValidateBeforeCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'name' is set + if (name == null) { + throw new ApiException("Missing the required parameter 'name' when calling patchNamespacedResourceClaimTemplate(Async)"); + } + + // verify the required parameter 'namespace' is set + if (namespace == null) { + throw new ApiException("Missing the required parameter 'namespace' when calling patchNamespacedResourceClaimTemplate(Async)"); + } + + // verify the required parameter 'body' is set + if (body == null) { + throw new ApiException("Missing the required parameter 'body' when calling patchNamespacedResourceClaimTemplate(Async)"); + } + + + okhttp3.Call localVarCall = patchNamespacedResourceClaimTemplateCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); + return localVarCall; + + } + + /** + * + * partially update the specified ResourceClaimTemplate + * @param name name of the ResourceClaimTemplate (required) + * @param namespace object name and auth scope, such as for teams and projects (required) + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) + * @return V1beta2ResourceClaimTemplate + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public V1beta2ResourceClaimTemplate patchNamespacedResourceClaimTemplate(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force) throws ApiException { + ApiResponse localVarResp = patchNamespacedResourceClaimTemplateWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force); + return localVarResp.getData(); + } + + /** + * + * partially update the specified ResourceClaimTemplate + * @param name name of the ResourceClaimTemplate (required) + * @param namespace object name and auth scope, such as for teams and projects (required) + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) + * @return ApiResponse<V1beta2ResourceClaimTemplate> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public ApiResponse patchNamespacedResourceClaimTemplateWithHttpInfo(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force) throws ApiException { + okhttp3.Call localVarCall = patchNamespacedResourceClaimTemplateValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * partially update the specified ResourceClaimTemplate + * @param name name of the ResourceClaimTemplate (required) + * @param namespace object name and auth scope, such as for teams and projects (required) + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public okhttp3.Call patchNamespacedResourceClaimTemplateAsync(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = patchNamespacedResourceClaimTemplateValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for patchResourceSlice + * @param name name of the ResourceSlice (required) + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public okhttp3.Call patchResourceSliceCall(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + Object localVarPostBody = body; + + // create path and map variables + String localVarPath = "/apis/resource.k8s.io/v1beta2/resourceslices/{name}" + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } + + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + + if (fieldValidation != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); + } + + if (force != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("force", force)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + final String[] localVarAccepts = { + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call patchResourceSliceValidateBeforeCall(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'name' is set + if (name == null) { + throw new ApiException("Missing the required parameter 'name' when calling patchResourceSlice(Async)"); + } + + // verify the required parameter 'body' is set + if (body == null) { + throw new ApiException("Missing the required parameter 'body' when calling patchResourceSlice(Async)"); + } + + + okhttp3.Call localVarCall = patchResourceSliceCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); + return localVarCall; + + } + + /** + * + * partially update the specified ResourceSlice + * @param name name of the ResourceSlice (required) + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) + * @return V1beta2ResourceSlice + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public V1beta2ResourceSlice patchResourceSlice(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force) throws ApiException { + ApiResponse localVarResp = patchResourceSliceWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force); + return localVarResp.getData(); + } + + /** + * + * partially update the specified ResourceSlice + * @param name name of the ResourceSlice (required) + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) + * @return ApiResponse<V1beta2ResourceSlice> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public ApiResponse patchResourceSliceWithHttpInfo(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force) throws ApiException { + okhttp3.Call localVarCall = patchResourceSliceValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * partially update the specified ResourceSlice + * @param name name of the ResourceSlice (required) + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public okhttp3.Call patchResourceSliceAsync(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = patchResourceSliceValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for readDeviceClass + * @param name name of the DeviceClass (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call readDeviceClassCall(String name, String pretty, final ApiCallback _callback) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/apis/resource.k8s.io/v1beta2/deviceclasses/{name}" + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + final String[] localVarAccepts = { + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call readDeviceClassValidateBeforeCall(String name, String pretty, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'name' is set + if (name == null) { + throw new ApiException("Missing the required parameter 'name' when calling readDeviceClass(Async)"); + } + + + okhttp3.Call localVarCall = readDeviceClassCall(name, pretty, _callback); + return localVarCall; + + } + + /** + * + * read the specified DeviceClass + * @param name name of the DeviceClass (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @return V1beta2DeviceClass + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public V1beta2DeviceClass readDeviceClass(String name, String pretty) throws ApiException { + ApiResponse localVarResp = readDeviceClassWithHttpInfo(name, pretty); + return localVarResp.getData(); + } + + /** + * + * read the specified DeviceClass + * @param name name of the DeviceClass (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @return ApiResponse<V1beta2DeviceClass> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public ApiResponse readDeviceClassWithHttpInfo(String name, String pretty) throws ApiException { + okhttp3.Call localVarCall = readDeviceClassValidateBeforeCall(name, pretty, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * read the specified DeviceClass + * @param name name of the DeviceClass (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call readDeviceClassAsync(String name, String pretty, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = readDeviceClassValidateBeforeCall(name, pretty, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for readNamespacedResourceClaim + * @param name name of the ResourceClaim (required) + * @param namespace object name and auth scope, such as for teams and projects (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call readNamespacedResourceClaimCall(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/apis/resource.k8s.io/v1beta2/namespaces/{namespace}/resourceclaims/{name}" + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + final String[] localVarAccepts = { + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call readNamespacedResourceClaimValidateBeforeCall(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'name' is set + if (name == null) { + throw new ApiException("Missing the required parameter 'name' when calling readNamespacedResourceClaim(Async)"); + } + + // verify the required parameter 'namespace' is set + if (namespace == null) { + throw new ApiException("Missing the required parameter 'namespace' when calling readNamespacedResourceClaim(Async)"); + } + + + okhttp3.Call localVarCall = readNamespacedResourceClaimCall(name, namespace, pretty, _callback); + return localVarCall; + + } + + /** + * + * read the specified ResourceClaim + * @param name name of the ResourceClaim (required) + * @param namespace object name and auth scope, such as for teams and projects (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @return V1beta2ResourceClaim + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public V1beta2ResourceClaim readNamespacedResourceClaim(String name, String namespace, String pretty) throws ApiException { + ApiResponse localVarResp = readNamespacedResourceClaimWithHttpInfo(name, namespace, pretty); + return localVarResp.getData(); + } + + /** + * + * read the specified ResourceClaim + * @param name name of the ResourceClaim (required) + * @param namespace object name and auth scope, such as for teams and projects (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @return ApiResponse<V1beta2ResourceClaim> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public ApiResponse readNamespacedResourceClaimWithHttpInfo(String name, String namespace, String pretty) throws ApiException { + okhttp3.Call localVarCall = readNamespacedResourceClaimValidateBeforeCall(name, namespace, pretty, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * read the specified ResourceClaim + * @param name name of the ResourceClaim (required) + * @param namespace object name and auth scope, such as for teams and projects (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call readNamespacedResourceClaimAsync(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = readNamespacedResourceClaimValidateBeforeCall(name, namespace, pretty, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for readNamespacedResourceClaimStatus + * @param name name of the ResourceClaim (required) + * @param namespace object name and auth scope, such as for teams and projects (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call readNamespacedResourceClaimStatusCall(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/apis/resource.k8s.io/v1beta2/namespaces/{namespace}/resourceclaims/{name}/status" + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + final String[] localVarAccepts = { + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call readNamespacedResourceClaimStatusValidateBeforeCall(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'name' is set + if (name == null) { + throw new ApiException("Missing the required parameter 'name' when calling readNamespacedResourceClaimStatus(Async)"); + } + + // verify the required parameter 'namespace' is set + if (namespace == null) { + throw new ApiException("Missing the required parameter 'namespace' when calling readNamespacedResourceClaimStatus(Async)"); + } + + + okhttp3.Call localVarCall = readNamespacedResourceClaimStatusCall(name, namespace, pretty, _callback); + return localVarCall; + + } + + /** + * + * read status of the specified ResourceClaim + * @param name name of the ResourceClaim (required) + * @param namespace object name and auth scope, such as for teams and projects (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @return V1beta2ResourceClaim + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public V1beta2ResourceClaim readNamespacedResourceClaimStatus(String name, String namespace, String pretty) throws ApiException { + ApiResponse localVarResp = readNamespacedResourceClaimStatusWithHttpInfo(name, namespace, pretty); + return localVarResp.getData(); + } + + /** + * + * read status of the specified ResourceClaim + * @param name name of the ResourceClaim (required) + * @param namespace object name and auth scope, such as for teams and projects (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @return ApiResponse<V1beta2ResourceClaim> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public ApiResponse readNamespacedResourceClaimStatusWithHttpInfo(String name, String namespace, String pretty) throws ApiException { + okhttp3.Call localVarCall = readNamespacedResourceClaimStatusValidateBeforeCall(name, namespace, pretty, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * read status of the specified ResourceClaim + * @param name name of the ResourceClaim (required) + * @param namespace object name and auth scope, such as for teams and projects (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call readNamespacedResourceClaimStatusAsync(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = readNamespacedResourceClaimStatusValidateBeforeCall(name, namespace, pretty, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for readNamespacedResourceClaimTemplate + * @param name name of the ResourceClaimTemplate (required) + * @param namespace object name and auth scope, such as for teams and projects (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call readNamespacedResourceClaimTemplateCall(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/apis/resource.k8s.io/v1beta2/namespaces/{namespace}/resourceclaimtemplates/{name}" + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + final String[] localVarAccepts = { + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call readNamespacedResourceClaimTemplateValidateBeforeCall(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'name' is set + if (name == null) { + throw new ApiException("Missing the required parameter 'name' when calling readNamespacedResourceClaimTemplate(Async)"); + } + + // verify the required parameter 'namespace' is set + if (namespace == null) { + throw new ApiException("Missing the required parameter 'namespace' when calling readNamespacedResourceClaimTemplate(Async)"); + } + + + okhttp3.Call localVarCall = readNamespacedResourceClaimTemplateCall(name, namespace, pretty, _callback); + return localVarCall; + + } + + /** + * + * read the specified ResourceClaimTemplate + * @param name name of the ResourceClaimTemplate (required) + * @param namespace object name and auth scope, such as for teams and projects (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @return V1beta2ResourceClaimTemplate + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public V1beta2ResourceClaimTemplate readNamespacedResourceClaimTemplate(String name, String namespace, String pretty) throws ApiException { + ApiResponse localVarResp = readNamespacedResourceClaimTemplateWithHttpInfo(name, namespace, pretty); + return localVarResp.getData(); + } + + /** + * + * read the specified ResourceClaimTemplate + * @param name name of the ResourceClaimTemplate (required) + * @param namespace object name and auth scope, such as for teams and projects (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @return ApiResponse<V1beta2ResourceClaimTemplate> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public ApiResponse readNamespacedResourceClaimTemplateWithHttpInfo(String name, String namespace, String pretty) throws ApiException { + okhttp3.Call localVarCall = readNamespacedResourceClaimTemplateValidateBeforeCall(name, namespace, pretty, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * read the specified ResourceClaimTemplate + * @param name name of the ResourceClaimTemplate (required) + * @param namespace object name and auth scope, such as for teams and projects (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call readNamespacedResourceClaimTemplateAsync(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = readNamespacedResourceClaimTemplateValidateBeforeCall(name, namespace, pretty, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for readResourceSlice + * @param name name of the ResourceSlice (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call readResourceSliceCall(String name, String pretty, final ApiCallback _callback) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/apis/resource.k8s.io/v1beta2/resourceslices/{name}" + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + final String[] localVarAccepts = { + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call readResourceSliceValidateBeforeCall(String name, String pretty, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'name' is set + if (name == null) { + throw new ApiException("Missing the required parameter 'name' when calling readResourceSlice(Async)"); + } + + + okhttp3.Call localVarCall = readResourceSliceCall(name, pretty, _callback); + return localVarCall; + + } + + /** + * + * read the specified ResourceSlice + * @param name name of the ResourceSlice (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @return V1beta2ResourceSlice + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public V1beta2ResourceSlice readResourceSlice(String name, String pretty) throws ApiException { + ApiResponse localVarResp = readResourceSliceWithHttpInfo(name, pretty); + return localVarResp.getData(); + } + + /** + * + * read the specified ResourceSlice + * @param name name of the ResourceSlice (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @return ApiResponse<V1beta2ResourceSlice> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public ApiResponse readResourceSliceWithHttpInfo(String name, String pretty) throws ApiException { + okhttp3.Call localVarCall = readResourceSliceValidateBeforeCall(name, pretty, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * read the specified ResourceSlice + * @param name name of the ResourceSlice (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call readResourceSliceAsync(String name, String pretty, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = readResourceSliceValidateBeforeCall(name, pretty, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for replaceDeviceClass + * @param name name of the DeviceClass (required) + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public okhttp3.Call replaceDeviceClassCall(String name, V1beta2DeviceClass body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + Object localVarPostBody = body; + + // create path and map variables + String localVarPath = "/apis/resource.k8s.io/v1beta2/deviceclasses/{name}" + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } + + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + + if (fieldValidation != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + final String[] localVarAccepts = { + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call replaceDeviceClassValidateBeforeCall(String name, V1beta2DeviceClass body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'name' is set + if (name == null) { + throw new ApiException("Missing the required parameter 'name' when calling replaceDeviceClass(Async)"); + } + + // verify the required parameter 'body' is set + if (body == null) { + throw new ApiException("Missing the required parameter 'body' when calling replaceDeviceClass(Async)"); + } + + + okhttp3.Call localVarCall = replaceDeviceClassCall(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); + return localVarCall; + + } + + /** + * + * replace the specified DeviceClass + * @param name name of the DeviceClass (required) + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @return V1beta2DeviceClass + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public V1beta2DeviceClass replaceDeviceClass(String name, V1beta2DeviceClass body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { + ApiResponse localVarResp = replaceDeviceClassWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation); + return localVarResp.getData(); + } + + /** + * + * replace the specified DeviceClass + * @param name name of the DeviceClass (required) + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @return ApiResponse<V1beta2DeviceClass> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public ApiResponse replaceDeviceClassWithHttpInfo(String name, V1beta2DeviceClass body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { + okhttp3.Call localVarCall = replaceDeviceClassValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * replace the specified DeviceClass + * @param name name of the DeviceClass (required) + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public okhttp3.Call replaceDeviceClassAsync(String name, V1beta2DeviceClass body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = replaceDeviceClassValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for replaceNamespacedResourceClaim + * @param name name of the ResourceClaim (required) + * @param namespace object name and auth scope, such as for teams and projects (required) + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public okhttp3.Call replaceNamespacedResourceClaimCall(String name, String namespace, V1beta2ResourceClaim body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + Object localVarPostBody = body; + + // create path and map variables + String localVarPath = "/apis/resource.k8s.io/v1beta2/namespaces/{namespace}/resourceclaims/{name}" + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } + + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + + if (fieldValidation != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + final String[] localVarAccepts = { + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call replaceNamespacedResourceClaimValidateBeforeCall(String name, String namespace, V1beta2ResourceClaim body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'name' is set + if (name == null) { + throw new ApiException("Missing the required parameter 'name' when calling replaceNamespacedResourceClaim(Async)"); + } + + // verify the required parameter 'namespace' is set + if (namespace == null) { + throw new ApiException("Missing the required parameter 'namespace' when calling replaceNamespacedResourceClaim(Async)"); + } + + // verify the required parameter 'body' is set + if (body == null) { + throw new ApiException("Missing the required parameter 'body' when calling replaceNamespacedResourceClaim(Async)"); + } + + + okhttp3.Call localVarCall = replaceNamespacedResourceClaimCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); + return localVarCall; + + } + + /** + * + * replace the specified ResourceClaim + * @param name name of the ResourceClaim (required) + * @param namespace object name and auth scope, such as for teams and projects (required) + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @return V1beta2ResourceClaim + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public V1beta2ResourceClaim replaceNamespacedResourceClaim(String name, String namespace, V1beta2ResourceClaim body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { + ApiResponse localVarResp = replaceNamespacedResourceClaimWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation); + return localVarResp.getData(); + } + + /** + * + * replace the specified ResourceClaim + * @param name name of the ResourceClaim (required) + * @param namespace object name and auth scope, such as for teams and projects (required) + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @return ApiResponse<V1beta2ResourceClaim> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public ApiResponse replaceNamespacedResourceClaimWithHttpInfo(String name, String namespace, V1beta2ResourceClaim body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { + okhttp3.Call localVarCall = replaceNamespacedResourceClaimValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * replace the specified ResourceClaim + * @param name name of the ResourceClaim (required) + * @param namespace object name and auth scope, such as for teams and projects (required) + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public okhttp3.Call replaceNamespacedResourceClaimAsync(String name, String namespace, V1beta2ResourceClaim body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = replaceNamespacedResourceClaimValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for replaceNamespacedResourceClaimStatus + * @param name name of the ResourceClaim (required) + * @param namespace object name and auth scope, such as for teams and projects (required) + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public okhttp3.Call replaceNamespacedResourceClaimStatusCall(String name, String namespace, V1beta2ResourceClaim body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + Object localVarPostBody = body; + + // create path and map variables + String localVarPath = "/apis/resource.k8s.io/v1beta2/namespaces/{namespace}/resourceclaims/{name}/status" + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } + + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + + if (fieldValidation != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + final String[] localVarAccepts = { + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call replaceNamespacedResourceClaimStatusValidateBeforeCall(String name, String namespace, V1beta2ResourceClaim body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'name' is set + if (name == null) { + throw new ApiException("Missing the required parameter 'name' when calling replaceNamespacedResourceClaimStatus(Async)"); + } + + // verify the required parameter 'namespace' is set + if (namespace == null) { + throw new ApiException("Missing the required parameter 'namespace' when calling replaceNamespacedResourceClaimStatus(Async)"); + } + + // verify the required parameter 'body' is set + if (body == null) { + throw new ApiException("Missing the required parameter 'body' when calling replaceNamespacedResourceClaimStatus(Async)"); + } + + + okhttp3.Call localVarCall = replaceNamespacedResourceClaimStatusCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); + return localVarCall; + + } + + /** + * + * replace status of the specified ResourceClaim + * @param name name of the ResourceClaim (required) + * @param namespace object name and auth scope, such as for teams and projects (required) + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @return V1beta2ResourceClaim + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public V1beta2ResourceClaim replaceNamespacedResourceClaimStatus(String name, String namespace, V1beta2ResourceClaim body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { + ApiResponse localVarResp = replaceNamespacedResourceClaimStatusWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation); + return localVarResp.getData(); + } + + /** + * + * replace status of the specified ResourceClaim + * @param name name of the ResourceClaim (required) + * @param namespace object name and auth scope, such as for teams and projects (required) + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @return ApiResponse<V1beta2ResourceClaim> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public ApiResponse replaceNamespacedResourceClaimStatusWithHttpInfo(String name, String namespace, V1beta2ResourceClaim body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { + okhttp3.Call localVarCall = replaceNamespacedResourceClaimStatusValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * replace status of the specified ResourceClaim + * @param name name of the ResourceClaim (required) + * @param namespace object name and auth scope, such as for teams and projects (required) + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public okhttp3.Call replaceNamespacedResourceClaimStatusAsync(String name, String namespace, V1beta2ResourceClaim body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = replaceNamespacedResourceClaimStatusValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for replaceNamespacedResourceClaimTemplate + * @param name name of the ResourceClaimTemplate (required) + * @param namespace object name and auth scope, such as for teams and projects (required) + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public okhttp3.Call replaceNamespacedResourceClaimTemplateCall(String name, String namespace, V1beta2ResourceClaimTemplate body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + Object localVarPostBody = body; + + // create path and map variables + String localVarPath = "/apis/resource.k8s.io/v1beta2/namespaces/{namespace}/resourceclaimtemplates/{name}" + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } + + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + + if (fieldValidation != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + final String[] localVarAccepts = { + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call replaceNamespacedResourceClaimTemplateValidateBeforeCall(String name, String namespace, V1beta2ResourceClaimTemplate body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'name' is set + if (name == null) { + throw new ApiException("Missing the required parameter 'name' when calling replaceNamespacedResourceClaimTemplate(Async)"); + } + + // verify the required parameter 'namespace' is set + if (namespace == null) { + throw new ApiException("Missing the required parameter 'namespace' when calling replaceNamespacedResourceClaimTemplate(Async)"); + } + + // verify the required parameter 'body' is set + if (body == null) { + throw new ApiException("Missing the required parameter 'body' when calling replaceNamespacedResourceClaimTemplate(Async)"); + } + + + okhttp3.Call localVarCall = replaceNamespacedResourceClaimTemplateCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); + return localVarCall; + + } + + /** + * + * replace the specified ResourceClaimTemplate + * @param name name of the ResourceClaimTemplate (required) + * @param namespace object name and auth scope, such as for teams and projects (required) + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @return V1beta2ResourceClaimTemplate + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public V1beta2ResourceClaimTemplate replaceNamespacedResourceClaimTemplate(String name, String namespace, V1beta2ResourceClaimTemplate body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { + ApiResponse localVarResp = replaceNamespacedResourceClaimTemplateWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation); + return localVarResp.getData(); + } + + /** + * + * replace the specified ResourceClaimTemplate + * @param name name of the ResourceClaimTemplate (required) + * @param namespace object name and auth scope, such as for teams and projects (required) + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @return ApiResponse<V1beta2ResourceClaimTemplate> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public ApiResponse replaceNamespacedResourceClaimTemplateWithHttpInfo(String name, String namespace, V1beta2ResourceClaimTemplate body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { + okhttp3.Call localVarCall = replaceNamespacedResourceClaimTemplateValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * replace the specified ResourceClaimTemplate + * @param name name of the ResourceClaimTemplate (required) + * @param namespace object name and auth scope, such as for teams and projects (required) + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public okhttp3.Call replaceNamespacedResourceClaimTemplateAsync(String name, String namespace, V1beta2ResourceClaimTemplate body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = replaceNamespacedResourceClaimTemplateValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for replaceResourceSlice + * @param name name of the ResourceSlice (required) + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public okhttp3.Call replaceResourceSliceCall(String name, V1beta2ResourceSlice body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + Object localVarPostBody = body; + + // create path and map variables + String localVarPath = "/apis/resource.k8s.io/v1beta2/resourceslices/{name}" + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } + + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + + if (fieldValidation != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + final String[] localVarAccepts = { + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call replaceResourceSliceValidateBeforeCall(String name, V1beta2ResourceSlice body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'name' is set + if (name == null) { + throw new ApiException("Missing the required parameter 'name' when calling replaceResourceSlice(Async)"); + } + + // verify the required parameter 'body' is set + if (body == null) { + throw new ApiException("Missing the required parameter 'body' when calling replaceResourceSlice(Async)"); + } + + + okhttp3.Call localVarCall = replaceResourceSliceCall(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); + return localVarCall; + + } + + /** + * + * replace the specified ResourceSlice + * @param name name of the ResourceSlice (required) + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @return V1beta2ResourceSlice + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public V1beta2ResourceSlice replaceResourceSlice(String name, V1beta2ResourceSlice body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { + ApiResponse localVarResp = replaceResourceSliceWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation); + return localVarResp.getData(); + } + + /** + * + * replace the specified ResourceSlice + * @param name name of the ResourceSlice (required) + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @return ApiResponse<V1beta2ResourceSlice> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public ApiResponse replaceResourceSliceWithHttpInfo(String name, V1beta2ResourceSlice body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { + okhttp3.Call localVarCall = replaceResourceSliceValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * replace the specified ResourceSlice + * @param name name of the ResourceSlice (required) + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public okhttp3.Call replaceResourceSliceAsync(String name, V1beta2ResourceSlice body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = replaceResourceSliceValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } +} 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 8bdedcf52b..59dd659992 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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 7547c089b3..fcd8384ecc 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -61,7 +61,7 @@ public void setApiClient(ApiClient apiClient) { /** * Build call for createPriorityClass * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -105,7 +105,7 @@ public okhttp3.Call createPriorityClassCall(V1PriorityClass body, String pretty, Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -140,7 +140,7 @@ private okhttp3.Call createPriorityClassValidateBeforeCall(V1PriorityClass body, * * create a PriorityClass * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -164,7 +164,7 @@ public V1PriorityClass createPriorityClass(V1PriorityClass body, String pretty, * * create a PriorityClass * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -189,7 +189,7 @@ public ApiResponse createPriorityClassWithHttpInfo(V1PriorityCl * (asynchronously) * create a PriorityClass * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -214,11 +214,12 @@ public okhttp3.Call createPriorityClassAsync(V1PriorityClass body, String pretty } /** * Build call for deleteCollectionPriorityClass - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param _continue 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) * @param dryRun 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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @param orphanDependents 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) @@ -238,7 +239,7 @@ public okhttp3.Call createPriorityClassAsync(V1PriorityClass body, String pretty 401 Unauthorized - */ - public okhttp3.Call deleteCollectionPriorityClassCall(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + public okhttp3.Call deleteCollectionPriorityClassCall(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; // create path and map variables @@ -266,6 +267,10 @@ public okhttp3.Call deleteCollectionPriorityClassCall(String pretty, String _con localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); } + if (ignoreStoreReadErrorWithClusterBreakingPotential != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("ignoreStoreReadErrorWithClusterBreakingPotential", ignoreStoreReadErrorWithClusterBreakingPotential)); + } + if (labelSelector != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); } @@ -302,7 +307,7 @@ public okhttp3.Call deleteCollectionPriorityClassCall(String pretty, String _con Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -320,10 +325,10 @@ public okhttp3.Call deleteCollectionPriorityClassCall(String pretty, String _con } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteCollectionPriorityClassValidateBeforeCall(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionPriorityClassValidateBeforeCall(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = deleteCollectionPriorityClassCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + okhttp3.Call localVarCall = deleteCollectionPriorityClassCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); return localVarCall; } @@ -331,11 +336,12 @@ private okhttp3.Call deleteCollectionPriorityClassValidateBeforeCall(String pret /** * * delete collection of PriorityClass - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param _continue 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) * @param dryRun 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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @param orphanDependents 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) @@ -354,19 +360,20 @@ private okhttp3.Call deleteCollectionPriorityClassValidateBeforeCall(String pret 401 Unauthorized - */ - public V1Status deleteCollectionPriorityClass(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body) throws ApiException { - ApiResponse localVarResp = deleteCollectionPriorityClassWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); + public V1Status deleteCollectionPriorityClass(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body) throws ApiException { + ApiResponse localVarResp = deleteCollectionPriorityClassWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); return localVarResp.getData(); } /** * * delete collection of PriorityClass - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param _continue 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) * @param dryRun 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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @param orphanDependents 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) @@ -385,8 +392,8 @@ public V1Status deleteCollectionPriorityClass(String pretty, String _continue, S 401 Unauthorized - */ - public ApiResponse deleteCollectionPriorityClassWithHttpInfo(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body) throws ApiException { - okhttp3.Call localVarCall = deleteCollectionPriorityClassValidateBeforeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, null); + public ApiResponse deleteCollectionPriorityClassWithHttpInfo(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteCollectionPriorityClassValidateBeforeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -394,11 +401,12 @@ public ApiResponse deleteCollectionPriorityClassWithHttpInfo(String pr /** * (asynchronously) * delete collection of PriorityClass - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param _continue 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) * @param dryRun 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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @param orphanDependents 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) @@ -418,9 +426,9 @@ public ApiResponse deleteCollectionPriorityClassWithHttpInfo(String pr 401 Unauthorized - */ - public okhttp3.Call deleteCollectionPriorityClassAsync(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + public okhttp3.Call deleteCollectionPriorityClassAsync(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = deleteCollectionPriorityClassValidateBeforeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + okhttp3.Call localVarCall = deleteCollectionPriorityClassValidateBeforeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -428,9 +436,10 @@ public okhttp3.Call deleteCollectionPriorityClassAsync(String pretty, String _co /** * Build call for deletePriorityClass * @param name name of the PriorityClass (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @param orphanDependents 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) * @param propagationPolicy 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. (optional) * @param body (optional) @@ -445,7 +454,7 @@ public okhttp3.Call deleteCollectionPriorityClassAsync(String pretty, String _co 401 Unauthorized - */ - public okhttp3.Call deletePriorityClassCall(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + public okhttp3.Call deletePriorityClassCall(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; // create path and map variables @@ -466,6 +475,10 @@ public okhttp3.Call deletePriorityClassCall(String name, String pretty, String d localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); } + if (ignoreStoreReadErrorWithClusterBreakingPotential != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("ignoreStoreReadErrorWithClusterBreakingPotential", ignoreStoreReadErrorWithClusterBreakingPotential)); + } + if (orphanDependents != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("orphanDependents", orphanDependents)); } @@ -478,7 +491,7 @@ public okhttp3.Call deletePriorityClassCall(String name, String pretty, String d Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -496,7 +509,7 @@ public okhttp3.Call deletePriorityClassCall(String name, String pretty, String d } @SuppressWarnings("rawtypes") - private okhttp3.Call deletePriorityClassValidateBeforeCall(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deletePriorityClassValidateBeforeCall(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -504,7 +517,7 @@ private okhttp3.Call deletePriorityClassValidateBeforeCall(String name, String p } - okhttp3.Call localVarCall = deletePriorityClassCall(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); + okhttp3.Call localVarCall = deletePriorityClassCall(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); return localVarCall; } @@ -513,9 +526,10 @@ private okhttp3.Call deletePriorityClassValidateBeforeCall(String name, String p * * delete a PriorityClass * @param name name of the PriorityClass (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @param orphanDependents 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) * @param propagationPolicy 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. (optional) * @param body (optional) @@ -529,8 +543,8 @@ private okhttp3.Call deletePriorityClassValidateBeforeCall(String name, String p 401 Unauthorized - */ - public V1Status deletePriorityClass(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { - ApiResponse localVarResp = deletePriorityClassWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body); + public V1Status deletePriorityClass(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { + ApiResponse localVarResp = deletePriorityClassWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body); return localVarResp.getData(); } @@ -538,9 +552,10 @@ public V1Status deletePriorityClass(String name, String pretty, String dryRun, I * * delete a PriorityClass * @param name name of the PriorityClass (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @param orphanDependents 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) * @param propagationPolicy 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. (optional) * @param body (optional) @@ -554,8 +569,8 @@ public V1Status deletePriorityClass(String name, String pretty, String dryRun, I 401 Unauthorized - */ - public ApiResponse deletePriorityClassWithHttpInfo(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { - okhttp3.Call localVarCall = deletePriorityClassValidateBeforeCall(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, null); + public ApiResponse deletePriorityClassWithHttpInfo(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deletePriorityClassValidateBeforeCall(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -564,9 +579,10 @@ public ApiResponse deletePriorityClassWithHttpInfo(String name, String * (asynchronously) * delete a PriorityClass * @param name name of the PriorityClass (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @param orphanDependents 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) * @param propagationPolicy 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. (optional) * @param body (optional) @@ -581,9 +597,9 @@ public ApiResponse deletePriorityClassWithHttpInfo(String name, String 401 Unauthorized - */ - public okhttp3.Call deletePriorityClassAsync(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + public okhttp3.Call deletePriorityClassAsync(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = deletePriorityClassValidateBeforeCall(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); + okhttp3.Call localVarCall = deletePriorityClassValidateBeforeCall(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -612,7 +628,7 @@ public okhttp3.Call getAPIResourcesCall(final ApiCallback _callback) throws ApiE Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -695,7 +711,7 @@ public okhttp3.Call getAPIResourcesAsync(final ApiCallback _c } /** * Build call for listPriorityClass - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param allowWatchBookmarks 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. (optional) * @param _continue 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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) @@ -772,7 +788,7 @@ public okhttp3.Call listPriorityClassCall(String pretty, Boolean allowWatchBookm Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch", "application/cbor-seq" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -801,7 +817,7 @@ private okhttp3.Call listPriorityClassValidateBeforeCall(String pretty, Boolean /** * * list or watch objects of kind PriorityClass - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param allowWatchBookmarks 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. (optional) * @param _continue 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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) @@ -829,7 +845,7 @@ public V1PriorityClassList listPriorityClass(String pretty, Boolean allowWatchBo /** * * list or watch objects of kind PriorityClass - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param allowWatchBookmarks 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. (optional) * @param _continue 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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) @@ -858,7 +874,7 @@ public ApiResponse listPriorityClassWithHttpInfo(String pre /** * (asynchronously) * list or watch objects of kind PriorityClass - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param allowWatchBookmarks 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. (optional) * @param _continue 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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) @@ -890,7 +906,7 @@ public okhttp3.Call listPriorityClassAsync(String pretty, Boolean allowWatchBook * Build call for patchPriorityClass * @param name name of the PriorityClass (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -939,7 +955,7 @@ public okhttp3.Call patchPriorityClassCall(String name, V1Patch body, String pre Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -980,7 +996,7 @@ private okhttp3.Call patchPriorityClassValidateBeforeCall(String name, V1Patch b * partially update the specified PriorityClass * @param name name of the PriorityClass (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -1005,7 +1021,7 @@ public V1PriorityClass patchPriorityClass(String name, V1Patch body, String pret * partially update the specified PriorityClass * @param name name of the PriorityClass (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -1031,7 +1047,7 @@ public ApiResponse patchPriorityClassWithHttpInfo(String name, * partially update the specified PriorityClass * @param name name of the PriorityClass (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -1057,7 +1073,7 @@ public okhttp3.Call patchPriorityClassAsync(String name, V1Patch body, String pr /** * Build call for readPriorityClass * @param name name of the PriorityClass (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -1085,7 +1101,7 @@ public okhttp3.Call readPriorityClassCall(String name, String pretty, final ApiC Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -1120,7 +1136,7 @@ private okhttp3.Call readPriorityClassValidateBeforeCall(String name, String pre * * read the specified PriorityClass * @param name name of the PriorityClass (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return V1PriorityClass * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -1139,7 +1155,7 @@ public V1PriorityClass readPriorityClass(String name, String pretty) throws ApiE * * read the specified PriorityClass * @param name name of the PriorityClass (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return ApiResponse<V1PriorityClass> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -1159,7 +1175,7 @@ public ApiResponse readPriorityClassWithHttpInfo(String name, S * (asynchronously) * read the specified PriorityClass * @param name name of the PriorityClass (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object @@ -1181,7 +1197,7 @@ public okhttp3.Call readPriorityClassAsync(String name, String pretty, final Api * Build call for replacePriorityClass * @param name name of the PriorityClass (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -1225,7 +1241,7 @@ public okhttp3.Call replacePriorityClassCall(String name, V1PriorityClass body, Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -1266,7 +1282,7 @@ private okhttp3.Call replacePriorityClassValidateBeforeCall(String name, V1Prior * replace the specified PriorityClass * @param name name of the PriorityClass (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -1290,7 +1306,7 @@ public V1PriorityClass replacePriorityClass(String name, V1PriorityClass body, S * replace the specified PriorityClass * @param name name of the PriorityClass (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -1315,7 +1331,7 @@ public ApiResponse replacePriorityClassWithHttpInfo(String name * replace the specified PriorityClass * @param name name of the PriorityClass (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) 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 eeed1ef529..b2a578e2a5 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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 c9dd673660..ef66281167 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -69,7 +69,7 @@ public void setApiClient(ApiClient apiClient) { /** * Build call for createCSIDriver * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -113,7 +113,7 @@ public okhttp3.Call createCSIDriverCall(V1CSIDriver body, String pretty, String Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -148,7 +148,7 @@ private okhttp3.Call createCSIDriverValidateBeforeCall(V1CSIDriver body, String * * create a CSIDriver * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -172,7 +172,7 @@ public V1CSIDriver createCSIDriver(V1CSIDriver body, String pretty, String dryRu * * create a CSIDriver * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -197,7 +197,7 @@ public ApiResponse createCSIDriverWithHttpInfo(V1CSIDriver body, St * (asynchronously) * create a CSIDriver * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -223,7 +223,7 @@ public okhttp3.Call createCSIDriverAsync(V1CSIDriver body, String pretty, String /** * Build call for createCSINode * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -267,7 +267,7 @@ public okhttp3.Call createCSINodeCall(V1CSINode body, String pretty, String dryR Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -302,7 +302,7 @@ private okhttp3.Call createCSINodeValidateBeforeCall(V1CSINode body, String pret * * create a CSINode * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -326,7 +326,7 @@ public V1CSINode createCSINode(V1CSINode body, String pretty, String dryRun, Str * * create a CSINode * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -351,7 +351,7 @@ public ApiResponse createCSINodeWithHttpInfo(V1CSINode body, String p * (asynchronously) * create a CSINode * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -378,7 +378,7 @@ public okhttp3.Call createCSINodeAsync(V1CSINode body, String pretty, String dry * Build call for createNamespacedCSIStorageCapacity * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -423,7 +423,7 @@ public okhttp3.Call createNamespacedCSIStorageCapacityCall(String namespace, V1C Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -464,7 +464,7 @@ private okhttp3.Call createNamespacedCSIStorageCapacityValidateBeforeCall(String * create a CSIStorageCapacity * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -489,7 +489,7 @@ public V1CSIStorageCapacity createNamespacedCSIStorageCapacity(String namespace, * create a CSIStorageCapacity * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -515,7 +515,7 @@ public ApiResponse createNamespacedCSIStorageCapacityWithH * create a CSIStorageCapacity * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -541,7 +541,7 @@ public okhttp3.Call createNamespacedCSIStorageCapacityAsync(String namespace, V1 /** * Build call for createStorageClass * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -585,7 +585,7 @@ public okhttp3.Call createStorageClassCall(V1StorageClass body, String pretty, S Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -620,7 +620,7 @@ private okhttp3.Call createStorageClassValidateBeforeCall(V1StorageClass body, S * * create a StorageClass * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -644,7 +644,7 @@ public V1StorageClass createStorageClass(V1StorageClass body, String pretty, Str * * create a StorageClass * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -669,7 +669,7 @@ public ApiResponse createStorageClassWithHttpInfo(V1StorageClass * (asynchronously) * create a StorageClass * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -695,7 +695,7 @@ public okhttp3.Call createStorageClassAsync(V1StorageClass body, String pretty, /** * Build call for createVolumeAttachment * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -739,7 +739,7 @@ public okhttp3.Call createVolumeAttachmentCall(V1VolumeAttachment body, String p Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -774,7 +774,7 @@ private okhttp3.Call createVolumeAttachmentValidateBeforeCall(V1VolumeAttachment * * create a VolumeAttachment * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -798,7 +798,7 @@ public V1VolumeAttachment createVolumeAttachment(V1VolumeAttachment body, String * * create a VolumeAttachment * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -823,7 +823,7 @@ public ApiResponse createVolumeAttachmentWithHttpInfo(V1Volu * (asynchronously) * create a VolumeAttachment * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -849,9 +849,10 @@ public okhttp3.Call createVolumeAttachmentAsync(V1VolumeAttachment body, String /** * Build call for deleteCSIDriver * @param name name of the CSIDriver (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @param orphanDependents 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) * @param propagationPolicy 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. (optional) * @param body (optional) @@ -866,7 +867,7 @@ public okhttp3.Call createVolumeAttachmentAsync(V1VolumeAttachment body, String 401 Unauthorized - */ - public okhttp3.Call deleteCSIDriverCall(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + public okhttp3.Call deleteCSIDriverCall(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; // create path and map variables @@ -887,6 +888,10 @@ public okhttp3.Call deleteCSIDriverCall(String name, String pretty, String dryRu localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); } + if (ignoreStoreReadErrorWithClusterBreakingPotential != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("ignoreStoreReadErrorWithClusterBreakingPotential", ignoreStoreReadErrorWithClusterBreakingPotential)); + } + if (orphanDependents != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("orphanDependents", orphanDependents)); } @@ -899,7 +904,7 @@ public okhttp3.Call deleteCSIDriverCall(String name, String pretty, String dryRu Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -917,7 +922,7 @@ public okhttp3.Call deleteCSIDriverCall(String name, String pretty, String dryRu } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteCSIDriverValidateBeforeCall(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCSIDriverValidateBeforeCall(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -925,7 +930,7 @@ private okhttp3.Call deleteCSIDriverValidateBeforeCall(String name, String prett } - okhttp3.Call localVarCall = deleteCSIDriverCall(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); + okhttp3.Call localVarCall = deleteCSIDriverCall(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); return localVarCall; } @@ -934,9 +939,10 @@ private okhttp3.Call deleteCSIDriverValidateBeforeCall(String name, String prett * * delete a CSIDriver * @param name name of the CSIDriver (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @param orphanDependents 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) * @param propagationPolicy 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. (optional) * @param body (optional) @@ -950,8 +956,8 @@ private okhttp3.Call deleteCSIDriverValidateBeforeCall(String name, String prett 401 Unauthorized - */ - public V1CSIDriver deleteCSIDriver(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { - ApiResponse localVarResp = deleteCSIDriverWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body); + public V1CSIDriver deleteCSIDriver(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { + ApiResponse localVarResp = deleteCSIDriverWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body); return localVarResp.getData(); } @@ -959,9 +965,10 @@ public V1CSIDriver deleteCSIDriver(String name, String pretty, String dryRun, In * * delete a CSIDriver * @param name name of the CSIDriver (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @param orphanDependents 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) * @param propagationPolicy 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. (optional) * @param body (optional) @@ -975,8 +982,8 @@ public V1CSIDriver deleteCSIDriver(String name, String pretty, String dryRun, In 401 Unauthorized - */ - public ApiResponse deleteCSIDriverWithHttpInfo(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { - okhttp3.Call localVarCall = deleteCSIDriverValidateBeforeCall(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, null); + public ApiResponse deleteCSIDriverWithHttpInfo(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteCSIDriverValidateBeforeCall(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -985,9 +992,10 @@ public ApiResponse deleteCSIDriverWithHttpInfo(String name, String * (asynchronously) * delete a CSIDriver * @param name name of the CSIDriver (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @param orphanDependents 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) * @param propagationPolicy 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. (optional) * @param body (optional) @@ -1002,9 +1010,9 @@ public ApiResponse deleteCSIDriverWithHttpInfo(String name, String 401 Unauthorized - */ - public okhttp3.Call deleteCSIDriverAsync(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + public okhttp3.Call deleteCSIDriverAsync(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = deleteCSIDriverValidateBeforeCall(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); + okhttp3.Call localVarCall = deleteCSIDriverValidateBeforeCall(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -1012,9 +1020,10 @@ public okhttp3.Call deleteCSIDriverAsync(String name, String pretty, String dryR /** * Build call for deleteCSINode * @param name name of the CSINode (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @param orphanDependents 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) * @param propagationPolicy 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. (optional) * @param body (optional) @@ -1029,7 +1038,7 @@ public okhttp3.Call deleteCSIDriverAsync(String name, String pretty, String dryR 401 Unauthorized - */ - public okhttp3.Call deleteCSINodeCall(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + public okhttp3.Call deleteCSINodeCall(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; // create path and map variables @@ -1050,6 +1059,10 @@ public okhttp3.Call deleteCSINodeCall(String name, String pretty, String dryRun, localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); } + if (ignoreStoreReadErrorWithClusterBreakingPotential != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("ignoreStoreReadErrorWithClusterBreakingPotential", ignoreStoreReadErrorWithClusterBreakingPotential)); + } + if (orphanDependents != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("orphanDependents", orphanDependents)); } @@ -1062,7 +1075,7 @@ public okhttp3.Call deleteCSINodeCall(String name, String pretty, String dryRun, Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -1080,7 +1093,7 @@ public okhttp3.Call deleteCSINodeCall(String name, String pretty, String dryRun, } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteCSINodeValidateBeforeCall(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCSINodeValidateBeforeCall(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -1088,7 +1101,7 @@ private okhttp3.Call deleteCSINodeValidateBeforeCall(String name, String pretty, } - okhttp3.Call localVarCall = deleteCSINodeCall(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); + okhttp3.Call localVarCall = deleteCSINodeCall(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); return localVarCall; } @@ -1097,9 +1110,10 @@ private okhttp3.Call deleteCSINodeValidateBeforeCall(String name, String pretty, * * delete a CSINode * @param name name of the CSINode (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @param orphanDependents 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) * @param propagationPolicy 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. (optional) * @param body (optional) @@ -1113,8 +1127,8 @@ private okhttp3.Call deleteCSINodeValidateBeforeCall(String name, String pretty, 401 Unauthorized - */ - public V1CSINode deleteCSINode(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { - ApiResponse localVarResp = deleteCSINodeWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body); + public V1CSINode deleteCSINode(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { + ApiResponse localVarResp = deleteCSINodeWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body); return localVarResp.getData(); } @@ -1122,9 +1136,10 @@ public V1CSINode deleteCSINode(String name, String pretty, String dryRun, Intege * * delete a CSINode * @param name name of the CSINode (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @param orphanDependents 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) * @param propagationPolicy 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. (optional) * @param body (optional) @@ -1138,8 +1153,8 @@ public V1CSINode deleteCSINode(String name, String pretty, String dryRun, Intege 401 Unauthorized - */ - public ApiResponse deleteCSINodeWithHttpInfo(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { - okhttp3.Call localVarCall = deleteCSINodeValidateBeforeCall(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, null); + public ApiResponse deleteCSINodeWithHttpInfo(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteCSINodeValidateBeforeCall(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -1148,9 +1163,10 @@ public ApiResponse deleteCSINodeWithHttpInfo(String name, String pret * (asynchronously) * delete a CSINode * @param name name of the CSINode (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @param orphanDependents 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) * @param propagationPolicy 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. (optional) * @param body (optional) @@ -1165,20 +1181,21 @@ public ApiResponse deleteCSINodeWithHttpInfo(String name, String pret 401 Unauthorized - */ - public okhttp3.Call deleteCSINodeAsync(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + public okhttp3.Call deleteCSINodeAsync(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = deleteCSINodeValidateBeforeCall(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); + okhttp3.Call localVarCall = deleteCSINodeValidateBeforeCall(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for deleteCollectionCSIDriver - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param _continue 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) * @param dryRun 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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @param orphanDependents 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) @@ -1198,7 +1215,7 @@ public okhttp3.Call deleteCSINodeAsync(String name, String pretty, String dryRun 401 Unauthorized - */ - public okhttp3.Call deleteCollectionCSIDriverCall(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + public okhttp3.Call deleteCollectionCSIDriverCall(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; // create path and map variables @@ -1226,6 +1243,10 @@ public okhttp3.Call deleteCollectionCSIDriverCall(String pretty, String _continu localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); } + if (ignoreStoreReadErrorWithClusterBreakingPotential != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("ignoreStoreReadErrorWithClusterBreakingPotential", ignoreStoreReadErrorWithClusterBreakingPotential)); + } + if (labelSelector != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); } @@ -1262,7 +1283,7 @@ public okhttp3.Call deleteCollectionCSIDriverCall(String pretty, String _continu Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -1280,10 +1301,10 @@ public okhttp3.Call deleteCollectionCSIDriverCall(String pretty, String _continu } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteCollectionCSIDriverValidateBeforeCall(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionCSIDriverValidateBeforeCall(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = deleteCollectionCSIDriverCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + okhttp3.Call localVarCall = deleteCollectionCSIDriverCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); return localVarCall; } @@ -1291,11 +1312,12 @@ private okhttp3.Call deleteCollectionCSIDriverValidateBeforeCall(String pretty, /** * * delete collection of CSIDriver - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param _continue 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) * @param dryRun 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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @param orphanDependents 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) @@ -1314,19 +1336,20 @@ private okhttp3.Call deleteCollectionCSIDriverValidateBeforeCall(String pretty, 401 Unauthorized - */ - public V1Status deleteCollectionCSIDriver(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body) throws ApiException { - ApiResponse localVarResp = deleteCollectionCSIDriverWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); + public V1Status deleteCollectionCSIDriver(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body) throws ApiException { + ApiResponse localVarResp = deleteCollectionCSIDriverWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); return localVarResp.getData(); } /** * * delete collection of CSIDriver - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param _continue 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) * @param dryRun 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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @param orphanDependents 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) @@ -1345,8 +1368,8 @@ public V1Status deleteCollectionCSIDriver(String pretty, String _continue, Strin 401 Unauthorized - */ - public ApiResponse deleteCollectionCSIDriverWithHttpInfo(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body) throws ApiException { - okhttp3.Call localVarCall = deleteCollectionCSIDriverValidateBeforeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, null); + public ApiResponse deleteCollectionCSIDriverWithHttpInfo(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteCollectionCSIDriverValidateBeforeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -1354,11 +1377,12 @@ public ApiResponse deleteCollectionCSIDriverWithHttpInfo(String pretty /** * (asynchronously) * delete collection of CSIDriver - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param _continue 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) * @param dryRun 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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @param orphanDependents 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) @@ -1378,20 +1402,21 @@ public ApiResponse deleteCollectionCSIDriverWithHttpInfo(String pretty 401 Unauthorized - */ - public okhttp3.Call deleteCollectionCSIDriverAsync(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + public okhttp3.Call deleteCollectionCSIDriverAsync(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = deleteCollectionCSIDriverValidateBeforeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + okhttp3.Call localVarCall = deleteCollectionCSIDriverValidateBeforeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for deleteCollectionCSINode - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param _continue 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) * @param dryRun 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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @param orphanDependents 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) @@ -1411,7 +1436,7 @@ public okhttp3.Call deleteCollectionCSIDriverAsync(String pretty, String _contin 401 Unauthorized - */ - public okhttp3.Call deleteCollectionCSINodeCall(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + public okhttp3.Call deleteCollectionCSINodeCall(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; // create path and map variables @@ -1439,6 +1464,10 @@ public okhttp3.Call deleteCollectionCSINodeCall(String pretty, String _continue, localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); } + if (ignoreStoreReadErrorWithClusterBreakingPotential != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("ignoreStoreReadErrorWithClusterBreakingPotential", ignoreStoreReadErrorWithClusterBreakingPotential)); + } + if (labelSelector != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); } @@ -1475,7 +1504,7 @@ public okhttp3.Call deleteCollectionCSINodeCall(String pretty, String _continue, Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -1493,10 +1522,10 @@ public okhttp3.Call deleteCollectionCSINodeCall(String pretty, String _continue, } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteCollectionCSINodeValidateBeforeCall(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionCSINodeValidateBeforeCall(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = deleteCollectionCSINodeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + okhttp3.Call localVarCall = deleteCollectionCSINodeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); return localVarCall; } @@ -1504,11 +1533,12 @@ private okhttp3.Call deleteCollectionCSINodeValidateBeforeCall(String pretty, St /** * * delete collection of CSINode - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param _continue 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) * @param dryRun 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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @param orphanDependents 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) @@ -1527,19 +1557,20 @@ private okhttp3.Call deleteCollectionCSINodeValidateBeforeCall(String pretty, St 401 Unauthorized - */ - public V1Status deleteCollectionCSINode(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body) throws ApiException { - ApiResponse localVarResp = deleteCollectionCSINodeWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); + public V1Status deleteCollectionCSINode(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body) throws ApiException { + ApiResponse localVarResp = deleteCollectionCSINodeWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); return localVarResp.getData(); } /** * * delete collection of CSINode - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param _continue 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) * @param dryRun 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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @param orphanDependents 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) @@ -1558,8 +1589,8 @@ public V1Status deleteCollectionCSINode(String pretty, String _continue, String 401 Unauthorized - */ - public ApiResponse deleteCollectionCSINodeWithHttpInfo(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body) throws ApiException { - okhttp3.Call localVarCall = deleteCollectionCSINodeValidateBeforeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, null); + public ApiResponse deleteCollectionCSINodeWithHttpInfo(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteCollectionCSINodeValidateBeforeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -1567,11 +1598,12 @@ public ApiResponse deleteCollectionCSINodeWithHttpInfo(String pretty, /** * (asynchronously) * delete collection of CSINode - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param _continue 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) * @param dryRun 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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @param orphanDependents 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) @@ -1591,9 +1623,9 @@ public ApiResponse deleteCollectionCSINodeWithHttpInfo(String pretty, 401 Unauthorized - */ - public okhttp3.Call deleteCollectionCSINodeAsync(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + public okhttp3.Call deleteCollectionCSINodeAsync(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = deleteCollectionCSINodeValidateBeforeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + okhttp3.Call localVarCall = deleteCollectionCSINodeValidateBeforeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -1601,11 +1633,12 @@ public okhttp3.Call deleteCollectionCSINodeAsync(String pretty, String _continue /** * Build call for deleteCollectionNamespacedCSIStorageCapacity * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param _continue 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) * @param dryRun 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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @param orphanDependents 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) @@ -1625,7 +1658,7 @@ public okhttp3.Call deleteCollectionCSINodeAsync(String pretty, String _continue 401 Unauthorized - */ - public okhttp3.Call deleteCollectionNamespacedCSIStorageCapacityCall(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + public okhttp3.Call deleteCollectionNamespacedCSIStorageCapacityCall(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; // create path and map variables @@ -1654,6 +1687,10 @@ public okhttp3.Call deleteCollectionNamespacedCSIStorageCapacityCall(String name localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); } + if (ignoreStoreReadErrorWithClusterBreakingPotential != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("ignoreStoreReadErrorWithClusterBreakingPotential", ignoreStoreReadErrorWithClusterBreakingPotential)); + } + if (labelSelector != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); } @@ -1690,7 +1727,7 @@ public okhttp3.Call deleteCollectionNamespacedCSIStorageCapacityCall(String name Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -1708,7 +1745,7 @@ public okhttp3.Call deleteCollectionNamespacedCSIStorageCapacityCall(String name } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteCollectionNamespacedCSIStorageCapacityValidateBeforeCall(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionNamespacedCSIStorageCapacityValidateBeforeCall(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { // verify the required parameter 'namespace' is set if (namespace == null) { @@ -1716,7 +1753,7 @@ private okhttp3.Call deleteCollectionNamespacedCSIStorageCapacityValidateBeforeC } - okhttp3.Call localVarCall = deleteCollectionNamespacedCSIStorageCapacityCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + okhttp3.Call localVarCall = deleteCollectionNamespacedCSIStorageCapacityCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); return localVarCall; } @@ -1725,11 +1762,12 @@ private okhttp3.Call deleteCollectionNamespacedCSIStorageCapacityValidateBeforeC * * delete collection of CSIStorageCapacity * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param _continue 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) * @param dryRun 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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @param orphanDependents 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) @@ -1748,8 +1786,8 @@ private okhttp3.Call deleteCollectionNamespacedCSIStorageCapacityValidateBeforeC 401 Unauthorized - */ - public V1Status deleteCollectionNamespacedCSIStorageCapacity(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body) throws ApiException { - ApiResponse localVarResp = deleteCollectionNamespacedCSIStorageCapacityWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); + public V1Status deleteCollectionNamespacedCSIStorageCapacity(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body) throws ApiException { + ApiResponse localVarResp = deleteCollectionNamespacedCSIStorageCapacityWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); return localVarResp.getData(); } @@ -1757,11 +1795,12 @@ public V1Status deleteCollectionNamespacedCSIStorageCapacity(String namespace, S * * delete collection of CSIStorageCapacity * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param _continue 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) * @param dryRun 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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @param orphanDependents 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) @@ -1780,8 +1819,8 @@ public V1Status deleteCollectionNamespacedCSIStorageCapacity(String namespace, S 401 Unauthorized - */ - public ApiResponse deleteCollectionNamespacedCSIStorageCapacityWithHttpInfo(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body) throws ApiException { - okhttp3.Call localVarCall = deleteCollectionNamespacedCSIStorageCapacityValidateBeforeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, null); + public ApiResponse deleteCollectionNamespacedCSIStorageCapacityWithHttpInfo(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteCollectionNamespacedCSIStorageCapacityValidateBeforeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -1790,11 +1829,12 @@ public ApiResponse deleteCollectionNamespacedCSIStorageCapacityWithHtt * (asynchronously) * delete collection of CSIStorageCapacity * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param _continue 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) * @param dryRun 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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @param orphanDependents 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) @@ -1814,20 +1854,21 @@ public ApiResponse deleteCollectionNamespacedCSIStorageCapacityWithHtt 401 Unauthorized - */ - public okhttp3.Call deleteCollectionNamespacedCSIStorageCapacityAsync(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + public okhttp3.Call deleteCollectionNamespacedCSIStorageCapacityAsync(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = deleteCollectionNamespacedCSIStorageCapacityValidateBeforeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + okhttp3.Call localVarCall = deleteCollectionNamespacedCSIStorageCapacityValidateBeforeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for deleteCollectionStorageClass - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param _continue 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) * @param dryRun 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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @param orphanDependents 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) @@ -1847,7 +1888,7 @@ public okhttp3.Call deleteCollectionNamespacedCSIStorageCapacityAsync(String nam 401 Unauthorized - */ - public okhttp3.Call deleteCollectionStorageClassCall(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + public okhttp3.Call deleteCollectionStorageClassCall(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; // create path and map variables @@ -1875,6 +1916,10 @@ public okhttp3.Call deleteCollectionStorageClassCall(String pretty, String _cont localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); } + if (ignoreStoreReadErrorWithClusterBreakingPotential != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("ignoreStoreReadErrorWithClusterBreakingPotential", ignoreStoreReadErrorWithClusterBreakingPotential)); + } + if (labelSelector != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); } @@ -1911,7 +1956,7 @@ public okhttp3.Call deleteCollectionStorageClassCall(String pretty, String _cont Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -1929,10 +1974,10 @@ public okhttp3.Call deleteCollectionStorageClassCall(String pretty, String _cont } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteCollectionStorageClassValidateBeforeCall(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionStorageClassValidateBeforeCall(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = deleteCollectionStorageClassCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + okhttp3.Call localVarCall = deleteCollectionStorageClassCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); return localVarCall; } @@ -1940,11 +1985,12 @@ private okhttp3.Call deleteCollectionStorageClassValidateBeforeCall(String prett /** * * delete collection of StorageClass - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param _continue 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) * @param dryRun 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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @param orphanDependents 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) @@ -1963,19 +2009,20 @@ private okhttp3.Call deleteCollectionStorageClassValidateBeforeCall(String prett 401 Unauthorized - */ - public V1Status deleteCollectionStorageClass(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body) throws ApiException { - ApiResponse localVarResp = deleteCollectionStorageClassWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); + public V1Status deleteCollectionStorageClass(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body) throws ApiException { + ApiResponse localVarResp = deleteCollectionStorageClassWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); return localVarResp.getData(); } /** * * delete collection of StorageClass - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param _continue 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) * @param dryRun 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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @param orphanDependents 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) @@ -1994,8 +2041,8 @@ public V1Status deleteCollectionStorageClass(String pretty, String _continue, St 401 Unauthorized - */ - public ApiResponse deleteCollectionStorageClassWithHttpInfo(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body) throws ApiException { - okhttp3.Call localVarCall = deleteCollectionStorageClassValidateBeforeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, null); + public ApiResponse deleteCollectionStorageClassWithHttpInfo(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteCollectionStorageClassValidateBeforeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -2003,11 +2050,12 @@ public ApiResponse deleteCollectionStorageClassWithHttpInfo(String pre /** * (asynchronously) * delete collection of StorageClass - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param _continue 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) * @param dryRun 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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @param orphanDependents 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) @@ -2027,20 +2075,21 @@ public ApiResponse deleteCollectionStorageClassWithHttpInfo(String pre 401 Unauthorized - */ - public okhttp3.Call deleteCollectionStorageClassAsync(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + public okhttp3.Call deleteCollectionStorageClassAsync(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = deleteCollectionStorageClassValidateBeforeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + okhttp3.Call localVarCall = deleteCollectionStorageClassValidateBeforeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for deleteCollectionVolumeAttachment - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param _continue 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) * @param dryRun 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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @param orphanDependents 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) @@ -2060,7 +2109,7 @@ public okhttp3.Call deleteCollectionStorageClassAsync(String pretty, String _con 401 Unauthorized - */ - public okhttp3.Call deleteCollectionVolumeAttachmentCall(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + public okhttp3.Call deleteCollectionVolumeAttachmentCall(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; // create path and map variables @@ -2088,6 +2137,10 @@ public okhttp3.Call deleteCollectionVolumeAttachmentCall(String pretty, String _ localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); } + if (ignoreStoreReadErrorWithClusterBreakingPotential != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("ignoreStoreReadErrorWithClusterBreakingPotential", ignoreStoreReadErrorWithClusterBreakingPotential)); + } + if (labelSelector != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); } @@ -2124,7 +2177,7 @@ public okhttp3.Call deleteCollectionVolumeAttachmentCall(String pretty, String _ Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -2142,10 +2195,10 @@ public okhttp3.Call deleteCollectionVolumeAttachmentCall(String pretty, String _ } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteCollectionVolumeAttachmentValidateBeforeCall(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionVolumeAttachmentValidateBeforeCall(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = deleteCollectionVolumeAttachmentCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + okhttp3.Call localVarCall = deleteCollectionVolumeAttachmentCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); return localVarCall; } @@ -2153,11 +2206,12 @@ private okhttp3.Call deleteCollectionVolumeAttachmentValidateBeforeCall(String p /** * * delete collection of VolumeAttachment - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param _continue 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) * @param dryRun 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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @param orphanDependents 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) @@ -2176,19 +2230,20 @@ private okhttp3.Call deleteCollectionVolumeAttachmentValidateBeforeCall(String p 401 Unauthorized - */ - public V1Status deleteCollectionVolumeAttachment(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body) throws ApiException { - ApiResponse localVarResp = deleteCollectionVolumeAttachmentWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); + public V1Status deleteCollectionVolumeAttachment(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body) throws ApiException { + ApiResponse localVarResp = deleteCollectionVolumeAttachmentWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); return localVarResp.getData(); } /** * * delete collection of VolumeAttachment - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param _continue 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) * @param dryRun 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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @param orphanDependents 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) @@ -2207,8 +2262,8 @@ public V1Status deleteCollectionVolumeAttachment(String pretty, String _continue 401 Unauthorized - */ - public ApiResponse deleteCollectionVolumeAttachmentWithHttpInfo(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body) throws ApiException { - okhttp3.Call localVarCall = deleteCollectionVolumeAttachmentValidateBeforeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, null); + public ApiResponse deleteCollectionVolumeAttachmentWithHttpInfo(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteCollectionVolumeAttachmentValidateBeforeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -2216,11 +2271,12 @@ public ApiResponse deleteCollectionVolumeAttachmentWithHttpInfo(String /** * (asynchronously) * delete collection of VolumeAttachment - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param _continue 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) * @param dryRun 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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @param orphanDependents 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) @@ -2240,9 +2296,9 @@ public ApiResponse deleteCollectionVolumeAttachmentWithHttpInfo(String 401 Unauthorized - */ - public okhttp3.Call deleteCollectionVolumeAttachmentAsync(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + public okhttp3.Call deleteCollectionVolumeAttachmentAsync(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = deleteCollectionVolumeAttachmentValidateBeforeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + okhttp3.Call localVarCall = deleteCollectionVolumeAttachmentValidateBeforeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -2251,9 +2307,10 @@ public okhttp3.Call deleteCollectionVolumeAttachmentAsync(String pretty, String * Build call for deleteNamespacedCSIStorageCapacity * @param name name of the CSIStorageCapacity (required) * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @param orphanDependents 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) * @param propagationPolicy 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. (optional) * @param body (optional) @@ -2268,7 +2325,7 @@ public okhttp3.Call deleteCollectionVolumeAttachmentAsync(String pretty, String 401 Unauthorized - */ - public okhttp3.Call deleteNamespacedCSIStorageCapacityCall(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + public okhttp3.Call deleteNamespacedCSIStorageCapacityCall(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; // create path and map variables @@ -2290,6 +2347,10 @@ public okhttp3.Call deleteNamespacedCSIStorageCapacityCall(String name, String n localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); } + if (ignoreStoreReadErrorWithClusterBreakingPotential != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("ignoreStoreReadErrorWithClusterBreakingPotential", ignoreStoreReadErrorWithClusterBreakingPotential)); + } + if (orphanDependents != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("orphanDependents", orphanDependents)); } @@ -2302,7 +2363,7 @@ public okhttp3.Call deleteNamespacedCSIStorageCapacityCall(String name, String n Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -2320,7 +2381,7 @@ public okhttp3.Call deleteNamespacedCSIStorageCapacityCall(String name, String n } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteNamespacedCSIStorageCapacityValidateBeforeCall(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteNamespacedCSIStorageCapacityValidateBeforeCall(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -2333,7 +2394,7 @@ private okhttp3.Call deleteNamespacedCSIStorageCapacityValidateBeforeCall(String } - okhttp3.Call localVarCall = deleteNamespacedCSIStorageCapacityCall(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); + okhttp3.Call localVarCall = deleteNamespacedCSIStorageCapacityCall(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); return localVarCall; } @@ -2343,9 +2404,10 @@ private okhttp3.Call deleteNamespacedCSIStorageCapacityValidateBeforeCall(String * delete a CSIStorageCapacity * @param name name of the CSIStorageCapacity (required) * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @param orphanDependents 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) * @param propagationPolicy 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. (optional) * @param body (optional) @@ -2359,8 +2421,8 @@ private okhttp3.Call deleteNamespacedCSIStorageCapacityValidateBeforeCall(String 401 Unauthorized - */ - public V1Status deleteNamespacedCSIStorageCapacity(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { - ApiResponse localVarResp = deleteNamespacedCSIStorageCapacityWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body); + public V1Status deleteNamespacedCSIStorageCapacity(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { + ApiResponse localVarResp = deleteNamespacedCSIStorageCapacityWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body); return localVarResp.getData(); } @@ -2369,9 +2431,10 @@ public V1Status deleteNamespacedCSIStorageCapacity(String name, String namespace * delete a CSIStorageCapacity * @param name name of the CSIStorageCapacity (required) * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @param orphanDependents 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) * @param propagationPolicy 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. (optional) * @param body (optional) @@ -2385,8 +2448,8 @@ public V1Status deleteNamespacedCSIStorageCapacity(String name, String namespace 401 Unauthorized - */ - public ApiResponse deleteNamespacedCSIStorageCapacityWithHttpInfo(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { - okhttp3.Call localVarCall = deleteNamespacedCSIStorageCapacityValidateBeforeCall(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, null); + public ApiResponse deleteNamespacedCSIStorageCapacityWithHttpInfo(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteNamespacedCSIStorageCapacityValidateBeforeCall(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -2396,9 +2459,10 @@ public ApiResponse deleteNamespacedCSIStorageCapacityWithHttpInfo(Stri * delete a CSIStorageCapacity * @param name name of the CSIStorageCapacity (required) * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @param orphanDependents 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) * @param propagationPolicy 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. (optional) * @param body (optional) @@ -2413,9 +2477,9 @@ public ApiResponse deleteNamespacedCSIStorageCapacityWithHttpInfo(Stri 401 Unauthorized - */ - public okhttp3.Call deleteNamespacedCSIStorageCapacityAsync(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + public okhttp3.Call deleteNamespacedCSIStorageCapacityAsync(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = deleteNamespacedCSIStorageCapacityValidateBeforeCall(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); + okhttp3.Call localVarCall = deleteNamespacedCSIStorageCapacityValidateBeforeCall(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -2423,9 +2487,10 @@ public okhttp3.Call deleteNamespacedCSIStorageCapacityAsync(String name, String /** * Build call for deleteStorageClass * @param name name of the StorageClass (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @param orphanDependents 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) * @param propagationPolicy 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. (optional) * @param body (optional) @@ -2440,7 +2505,7 @@ public okhttp3.Call deleteNamespacedCSIStorageCapacityAsync(String name, String 401 Unauthorized - */ - public okhttp3.Call deleteStorageClassCall(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + public okhttp3.Call deleteStorageClassCall(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; // create path and map variables @@ -2461,6 +2526,10 @@ public okhttp3.Call deleteStorageClassCall(String name, String pretty, String dr localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); } + if (ignoreStoreReadErrorWithClusterBreakingPotential != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("ignoreStoreReadErrorWithClusterBreakingPotential", ignoreStoreReadErrorWithClusterBreakingPotential)); + } + if (orphanDependents != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("orphanDependents", orphanDependents)); } @@ -2473,7 +2542,7 @@ public okhttp3.Call deleteStorageClassCall(String name, String pretty, String dr Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -2491,7 +2560,7 @@ public okhttp3.Call deleteStorageClassCall(String name, String pretty, String dr } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteStorageClassValidateBeforeCall(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteStorageClassValidateBeforeCall(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -2499,7 +2568,7 @@ private okhttp3.Call deleteStorageClassValidateBeforeCall(String name, String pr } - okhttp3.Call localVarCall = deleteStorageClassCall(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); + okhttp3.Call localVarCall = deleteStorageClassCall(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); return localVarCall; } @@ -2508,9 +2577,10 @@ private okhttp3.Call deleteStorageClassValidateBeforeCall(String name, String pr * * delete a StorageClass * @param name name of the StorageClass (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @param orphanDependents 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) * @param propagationPolicy 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. (optional) * @param body (optional) @@ -2524,8 +2594,8 @@ private okhttp3.Call deleteStorageClassValidateBeforeCall(String name, String pr 401 Unauthorized - */ - public V1StorageClass deleteStorageClass(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { - ApiResponse localVarResp = deleteStorageClassWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body); + public V1StorageClass deleteStorageClass(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { + ApiResponse localVarResp = deleteStorageClassWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body); return localVarResp.getData(); } @@ -2533,9 +2603,10 @@ public V1StorageClass deleteStorageClass(String name, String pretty, String dryR * * delete a StorageClass * @param name name of the StorageClass (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @param orphanDependents 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) * @param propagationPolicy 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. (optional) * @param body (optional) @@ -2549,8 +2620,8 @@ public V1StorageClass deleteStorageClass(String name, String pretty, String dryR 401 Unauthorized - */ - public ApiResponse deleteStorageClassWithHttpInfo(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { - okhttp3.Call localVarCall = deleteStorageClassValidateBeforeCall(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, null); + public ApiResponse deleteStorageClassWithHttpInfo(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteStorageClassValidateBeforeCall(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -2559,9 +2630,10 @@ public ApiResponse deleteStorageClassWithHttpInfo(String name, S * (asynchronously) * delete a StorageClass * @param name name of the StorageClass (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @param orphanDependents 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) * @param propagationPolicy 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. (optional) * @param body (optional) @@ -2576,9 +2648,9 @@ public ApiResponse deleteStorageClassWithHttpInfo(String name, S 401 Unauthorized - */ - public okhttp3.Call deleteStorageClassAsync(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + public okhttp3.Call deleteStorageClassAsync(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = deleteStorageClassValidateBeforeCall(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); + okhttp3.Call localVarCall = deleteStorageClassValidateBeforeCall(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -2586,9 +2658,10 @@ public okhttp3.Call deleteStorageClassAsync(String name, String pretty, String d /** * Build call for deleteVolumeAttachment * @param name name of the VolumeAttachment (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @param orphanDependents 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) * @param propagationPolicy 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. (optional) * @param body (optional) @@ -2603,7 +2676,7 @@ public okhttp3.Call deleteStorageClassAsync(String name, String pretty, String d 401 Unauthorized - */ - public okhttp3.Call deleteVolumeAttachmentCall(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + public okhttp3.Call deleteVolumeAttachmentCall(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; // create path and map variables @@ -2624,6 +2697,10 @@ public okhttp3.Call deleteVolumeAttachmentCall(String name, String pretty, Strin localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); } + if (ignoreStoreReadErrorWithClusterBreakingPotential != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("ignoreStoreReadErrorWithClusterBreakingPotential", ignoreStoreReadErrorWithClusterBreakingPotential)); + } + if (orphanDependents != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("orphanDependents", orphanDependents)); } @@ -2636,7 +2713,7 @@ public okhttp3.Call deleteVolumeAttachmentCall(String name, String pretty, Strin Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -2654,7 +2731,7 @@ public okhttp3.Call deleteVolumeAttachmentCall(String name, String pretty, Strin } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteVolumeAttachmentValidateBeforeCall(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteVolumeAttachmentValidateBeforeCall(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -2662,7 +2739,7 @@ private okhttp3.Call deleteVolumeAttachmentValidateBeforeCall(String name, Strin } - okhttp3.Call localVarCall = deleteVolumeAttachmentCall(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); + okhttp3.Call localVarCall = deleteVolumeAttachmentCall(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); return localVarCall; } @@ -2671,9 +2748,10 @@ private okhttp3.Call deleteVolumeAttachmentValidateBeforeCall(String name, Strin * * delete a VolumeAttachment * @param name name of the VolumeAttachment (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @param orphanDependents 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) * @param propagationPolicy 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. (optional) * @param body (optional) @@ -2687,8 +2765,8 @@ private okhttp3.Call deleteVolumeAttachmentValidateBeforeCall(String name, Strin 401 Unauthorized - */ - public V1VolumeAttachment deleteVolumeAttachment(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { - ApiResponse localVarResp = deleteVolumeAttachmentWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body); + public V1VolumeAttachment deleteVolumeAttachment(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { + ApiResponse localVarResp = deleteVolumeAttachmentWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body); return localVarResp.getData(); } @@ -2696,9 +2774,10 @@ public V1VolumeAttachment deleteVolumeAttachment(String name, String pretty, Str * * delete a VolumeAttachment * @param name name of the VolumeAttachment (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @param orphanDependents 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) * @param propagationPolicy 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. (optional) * @param body (optional) @@ -2712,8 +2791,8 @@ public V1VolumeAttachment deleteVolumeAttachment(String name, String pretty, Str 401 Unauthorized - */ - public ApiResponse deleteVolumeAttachmentWithHttpInfo(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { - okhttp3.Call localVarCall = deleteVolumeAttachmentValidateBeforeCall(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, null); + public ApiResponse deleteVolumeAttachmentWithHttpInfo(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteVolumeAttachmentValidateBeforeCall(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -2722,9 +2801,10 @@ public ApiResponse deleteVolumeAttachmentWithHttpInfo(String * (asynchronously) * delete a VolumeAttachment * @param name name of the VolumeAttachment (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) * @param orphanDependents 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) * @param propagationPolicy 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. (optional) * @param body (optional) @@ -2739,9 +2819,9 @@ public ApiResponse deleteVolumeAttachmentWithHttpInfo(String 401 Unauthorized - */ - public okhttp3.Call deleteVolumeAttachmentAsync(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + public okhttp3.Call deleteVolumeAttachmentAsync(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = deleteVolumeAttachmentValidateBeforeCall(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); + okhttp3.Call localVarCall = deleteVolumeAttachmentValidateBeforeCall(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -2770,7 +2850,7 @@ public okhttp3.Call getAPIResourcesCall(final ApiCallback _callback) throws ApiE Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -2853,7 +2933,7 @@ public okhttp3.Call getAPIResourcesAsync(final ApiCallback _c } /** * Build call for listCSIDriver - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param allowWatchBookmarks 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. (optional) * @param _continue 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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) @@ -2930,7 +3010,7 @@ public okhttp3.Call listCSIDriverCall(String pretty, Boolean allowWatchBookmarks Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch", "application/cbor-seq" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -2959,7 +3039,7 @@ private okhttp3.Call listCSIDriverValidateBeforeCall(String pretty, Boolean allo /** * * list or watch objects of kind CSIDriver - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param allowWatchBookmarks 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. (optional) * @param _continue 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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) @@ -2987,7 +3067,7 @@ public V1CSIDriverList listCSIDriver(String pretty, Boolean allowWatchBookmarks, /** * * list or watch objects of kind CSIDriver - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param allowWatchBookmarks 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. (optional) * @param _continue 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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) @@ -3016,7 +3096,7 @@ public ApiResponse listCSIDriverWithHttpInfo(String pretty, Boo /** * (asynchronously) * list or watch objects of kind CSIDriver - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param allowWatchBookmarks 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. (optional) * @param _continue 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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) @@ -3046,7 +3126,7 @@ public okhttp3.Call listCSIDriverAsync(String pretty, Boolean allowWatchBookmark } /** * Build call for listCSINode - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param allowWatchBookmarks 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. (optional) * @param _continue 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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) @@ -3123,7 +3203,7 @@ public okhttp3.Call listCSINodeCall(String pretty, Boolean allowWatchBookmarks, Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch", "application/cbor-seq" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -3152,7 +3232,7 @@ private okhttp3.Call listCSINodeValidateBeforeCall(String pretty, Boolean allowW /** * * list or watch objects of kind CSINode - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param allowWatchBookmarks 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. (optional) * @param _continue 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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) @@ -3180,7 +3260,7 @@ public V1CSINodeList listCSINode(String pretty, Boolean allowWatchBookmarks, Str /** * * list or watch objects of kind CSINode - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param allowWatchBookmarks 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. (optional) * @param _continue 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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) @@ -3209,7 +3289,7 @@ public ApiResponse listCSINodeWithHttpInfo(String pretty, Boolean /** * (asynchronously) * list or watch objects of kind CSINode - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param allowWatchBookmarks 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. (optional) * @param _continue 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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) @@ -3244,7 +3324,7 @@ public okhttp3.Call listCSINodeAsync(String pretty, Boolean allowWatchBookmarks, * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) @@ -3316,7 +3396,7 @@ public okhttp3.Call listCSIStorageCapacityForAllNamespacesCall(Boolean allowWatc Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch", "application/cbor-seq" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -3350,7 +3430,7 @@ private okhttp3.Call listCSIStorageCapacityForAllNamespacesValidateBeforeCall(Bo * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) @@ -3378,7 +3458,7 @@ public V1CSIStorageCapacityList listCSIStorageCapacityForAllNamespaces(Boolean a * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) @@ -3407,7 +3487,7 @@ public ApiResponse listCSIStorageCapacityForAllNamespa * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) @@ -3433,7 +3513,7 @@ public okhttp3.Call listCSIStorageCapacityForAllNamespacesAsync(Boolean allowWat /** * Build call for listNamespacedCSIStorageCapacity * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param allowWatchBookmarks 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. (optional) * @param _continue 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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) @@ -3511,7 +3591,7 @@ public okhttp3.Call listNamespacedCSIStorageCapacityCall(String namespace, Strin Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch", "application/cbor-seq" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -3546,7 +3626,7 @@ private okhttp3.Call listNamespacedCSIStorageCapacityValidateBeforeCall(String n * * list or watch objects of kind CSIStorageCapacity * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param allowWatchBookmarks 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. (optional) * @param _continue 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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) @@ -3575,7 +3655,7 @@ public V1CSIStorageCapacityList listNamespacedCSIStorageCapacity(String namespac * * list or watch objects of kind CSIStorageCapacity * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param allowWatchBookmarks 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. (optional) * @param _continue 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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) @@ -3605,7 +3685,7 @@ public ApiResponse listNamespacedCSIStorageCapacityWit * (asynchronously) * list or watch objects of kind CSIStorageCapacity * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param allowWatchBookmarks 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. (optional) * @param _continue 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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) @@ -3635,7 +3715,7 @@ public okhttp3.Call listNamespacedCSIStorageCapacityAsync(String namespace, Stri } /** * Build call for listStorageClass - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param allowWatchBookmarks 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. (optional) * @param _continue 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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) @@ -3712,7 +3792,7 @@ public okhttp3.Call listStorageClassCall(String pretty, Boolean allowWatchBookma Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch", "application/cbor-seq" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -3741,7 +3821,7 @@ private okhttp3.Call listStorageClassValidateBeforeCall(String pretty, Boolean a /** * * list or watch objects of kind StorageClass - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param allowWatchBookmarks 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. (optional) * @param _continue 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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) @@ -3769,7 +3849,7 @@ public V1StorageClassList listStorageClass(String pretty, Boolean allowWatchBook /** * * list or watch objects of kind StorageClass - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param allowWatchBookmarks 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. (optional) * @param _continue 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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) @@ -3798,7 +3878,7 @@ public ApiResponse listStorageClassWithHttpInfo(String prett /** * (asynchronously) * list or watch objects of kind StorageClass - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param allowWatchBookmarks 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. (optional) * @param _continue 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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) @@ -3828,7 +3908,7 @@ public okhttp3.Call listStorageClassAsync(String pretty, Boolean allowWatchBookm } /** * Build call for listVolumeAttachment - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param allowWatchBookmarks 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. (optional) * @param _continue 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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) @@ -3905,7 +3985,7 @@ public okhttp3.Call listVolumeAttachmentCall(String pretty, Boolean allowWatchBo Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch", "application/cbor-seq" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -3934,7 +4014,7 @@ private okhttp3.Call listVolumeAttachmentValidateBeforeCall(String pretty, Boole /** * * list or watch objects of kind VolumeAttachment - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param allowWatchBookmarks 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. (optional) * @param _continue 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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) @@ -3962,7 +4042,7 @@ public V1VolumeAttachmentList listVolumeAttachment(String pretty, Boolean allowW /** * * list or watch objects of kind VolumeAttachment - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param allowWatchBookmarks 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. (optional) * @param _continue 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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) @@ -3991,7 +4071,7 @@ public ApiResponse listVolumeAttachmentWithHttpInfo(Stri /** * (asynchronously) * list or watch objects of kind VolumeAttachment - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param allowWatchBookmarks 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. (optional) * @param _continue 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) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) @@ -4023,7 +4103,7 @@ public okhttp3.Call listVolumeAttachmentAsync(String pretty, Boolean allowWatchB * Build call for patchCSIDriver * @param name name of the CSIDriver (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -4072,7 +4152,7 @@ public okhttp3.Call patchCSIDriverCall(String name, V1Patch body, String pretty, Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -4113,7 +4193,7 @@ private okhttp3.Call patchCSIDriverValidateBeforeCall(String name, V1Patch body, * partially update the specified CSIDriver * @param name name of the CSIDriver (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -4138,7 +4218,7 @@ public V1CSIDriver patchCSIDriver(String name, V1Patch body, String pretty, Stri * partially update the specified CSIDriver * @param name name of the CSIDriver (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -4164,7 +4244,7 @@ public ApiResponse patchCSIDriverWithHttpInfo(String name, V1Patch * partially update the specified CSIDriver * @param name name of the CSIDriver (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -4191,7 +4271,7 @@ public okhttp3.Call patchCSIDriverAsync(String name, V1Patch body, String pretty * Build call for patchCSINode * @param name name of the CSINode (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -4240,7 +4320,7 @@ public okhttp3.Call patchCSINodeCall(String name, V1Patch body, String pretty, S Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -4281,7 +4361,7 @@ private okhttp3.Call patchCSINodeValidateBeforeCall(String name, V1Patch body, S * partially update the specified CSINode * @param name name of the CSINode (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -4306,7 +4386,7 @@ public V1CSINode patchCSINode(String name, V1Patch body, String pretty, String d * partially update the specified CSINode * @param name name of the CSINode (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -4332,7 +4412,7 @@ public ApiResponse patchCSINodeWithHttpInfo(String name, V1Patch body * partially update the specified CSINode * @param name name of the CSINode (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -4360,7 +4440,7 @@ public okhttp3.Call patchCSINodeAsync(String name, V1Patch body, String pretty, * @param name name of the CSIStorageCapacity (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -4410,7 +4490,7 @@ public okhttp3.Call patchNamespacedCSIStorageCapacityCall(String name, String na Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -4457,7 +4537,7 @@ private okhttp3.Call patchNamespacedCSIStorageCapacityValidateBeforeCall(String * @param name name of the CSIStorageCapacity (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -4483,7 +4563,7 @@ public V1CSIStorageCapacity patchNamespacedCSIStorageCapacity(String name, Strin * @param name name of the CSIStorageCapacity (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -4510,7 +4590,7 @@ public ApiResponse patchNamespacedCSIStorageCapacityWithHt * @param name name of the CSIStorageCapacity (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -4537,7 +4617,7 @@ public okhttp3.Call patchNamespacedCSIStorageCapacityAsync(String name, String n * Build call for patchStorageClass * @param name name of the StorageClass (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -4586,7 +4666,7 @@ public okhttp3.Call patchStorageClassCall(String name, V1Patch body, String pret Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -4627,7 +4707,7 @@ private okhttp3.Call patchStorageClassValidateBeforeCall(String name, V1Patch bo * partially update the specified StorageClass * @param name name of the StorageClass (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -4652,7 +4732,7 @@ public V1StorageClass patchStorageClass(String name, V1Patch body, String pretty * partially update the specified StorageClass * @param name name of the StorageClass (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -4678,7 +4758,7 @@ public ApiResponse patchStorageClassWithHttpInfo(String name, V1 * partially update the specified StorageClass * @param name name of the StorageClass (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -4705,7 +4785,7 @@ public okhttp3.Call patchStorageClassAsync(String name, V1Patch body, String pre * Build call for patchVolumeAttachment * @param name name of the VolumeAttachment (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -4754,7 +4834,7 @@ public okhttp3.Call patchVolumeAttachmentCall(String name, V1Patch body, String Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -4795,7 +4875,7 @@ private okhttp3.Call patchVolumeAttachmentValidateBeforeCall(String name, V1Patc * partially update the specified VolumeAttachment * @param name name of the VolumeAttachment (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -4820,7 +4900,7 @@ public V1VolumeAttachment patchVolumeAttachment(String name, V1Patch body, Strin * partially update the specified VolumeAttachment * @param name name of the VolumeAttachment (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -4846,7 +4926,7 @@ public ApiResponse patchVolumeAttachmentWithHttpInfo(String * partially update the specified VolumeAttachment * @param name name of the VolumeAttachment (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -4873,7 +4953,7 @@ public okhttp3.Call patchVolumeAttachmentAsync(String name, V1Patch body, String * Build call for patchVolumeAttachmentStatus * @param name name of the VolumeAttachment (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -4922,7 +5002,7 @@ public okhttp3.Call patchVolumeAttachmentStatusCall(String name, V1Patch body, S Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -4963,7 +5043,7 @@ private okhttp3.Call patchVolumeAttachmentStatusValidateBeforeCall(String name, * partially update status of the specified VolumeAttachment * @param name name of the VolumeAttachment (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -4988,7 +5068,7 @@ public V1VolumeAttachment patchVolumeAttachmentStatus(String name, V1Patch body, * partially update status of the specified VolumeAttachment * @param name name of the VolumeAttachment (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -5014,7 +5094,7 @@ public ApiResponse patchVolumeAttachmentStatusWithHttpInfo(S * partially update status of the specified VolumeAttachment * @param name name of the VolumeAttachment (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -5040,7 +5120,7 @@ public okhttp3.Call patchVolumeAttachmentStatusAsync(String name, V1Patch body, /** * Build call for readCSIDriver * @param name name of the CSIDriver (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -5068,7 +5148,7 @@ public okhttp3.Call readCSIDriverCall(String name, String pretty, final ApiCallb Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -5103,7 +5183,7 @@ private okhttp3.Call readCSIDriverValidateBeforeCall(String name, String pretty, * * read the specified CSIDriver * @param name name of the CSIDriver (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return V1CSIDriver * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -5122,7 +5202,7 @@ public V1CSIDriver readCSIDriver(String name, String pretty) throws ApiException * * read the specified CSIDriver * @param name name of the CSIDriver (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return ApiResponse<V1CSIDriver> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -5142,7 +5222,7 @@ public ApiResponse readCSIDriverWithHttpInfo(String name, String pr * (asynchronously) * read the specified CSIDriver * @param name name of the CSIDriver (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object @@ -5163,7 +5243,7 @@ public okhttp3.Call readCSIDriverAsync(String name, String pretty, final ApiCall /** * Build call for readCSINode * @param name name of the CSINode (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -5191,7 +5271,7 @@ public okhttp3.Call readCSINodeCall(String name, String pretty, final ApiCallbac Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -5226,7 +5306,7 @@ private okhttp3.Call readCSINodeValidateBeforeCall(String name, String pretty, f * * read the specified CSINode * @param name name of the CSINode (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return V1CSINode * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -5245,7 +5325,7 @@ public V1CSINode readCSINode(String name, String pretty) throws ApiException { * * read the specified CSINode * @param name name of the CSINode (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return ApiResponse<V1CSINode> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -5265,7 +5345,7 @@ public ApiResponse readCSINodeWithHttpInfo(String name, String pretty * (asynchronously) * read the specified CSINode * @param name name of the CSINode (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object @@ -5287,7 +5367,7 @@ public okhttp3.Call readCSINodeAsync(String name, String pretty, final ApiCallba * Build call for readNamespacedCSIStorageCapacity * @param name name of the CSIStorageCapacity (required) * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -5316,7 +5396,7 @@ public okhttp3.Call readNamespacedCSIStorageCapacityCall(String name, String nam Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -5357,7 +5437,7 @@ private okhttp3.Call readNamespacedCSIStorageCapacityValidateBeforeCall(String n * read the specified CSIStorageCapacity * @param name name of the CSIStorageCapacity (required) * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return V1CSIStorageCapacity * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -5377,7 +5457,7 @@ public V1CSIStorageCapacity readNamespacedCSIStorageCapacity(String name, String * read the specified CSIStorageCapacity * @param name name of the CSIStorageCapacity (required) * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return ApiResponse<V1CSIStorageCapacity> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -5398,7 +5478,7 @@ public ApiResponse readNamespacedCSIStorageCapacityWithHtt * read the specified CSIStorageCapacity * @param name name of the CSIStorageCapacity (required) * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object @@ -5419,7 +5499,7 @@ public okhttp3.Call readNamespacedCSIStorageCapacityAsync(String name, String na /** * Build call for readStorageClass * @param name name of the StorageClass (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -5447,7 +5527,7 @@ public okhttp3.Call readStorageClassCall(String name, String pretty, final ApiCa Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -5482,7 +5562,7 @@ private okhttp3.Call readStorageClassValidateBeforeCall(String name, String pret * * read the specified StorageClass * @param name name of the StorageClass (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return V1StorageClass * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -5501,7 +5581,7 @@ public V1StorageClass readStorageClass(String name, String pretty) throws ApiExc * * read the specified StorageClass * @param name name of the StorageClass (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return ApiResponse<V1StorageClass> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -5521,7 +5601,7 @@ public ApiResponse readStorageClassWithHttpInfo(String name, Str * (asynchronously) * read the specified StorageClass * @param name name of the StorageClass (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object @@ -5542,7 +5622,7 @@ public okhttp3.Call readStorageClassAsync(String name, String pretty, final ApiC /** * Build call for readVolumeAttachment * @param name name of the VolumeAttachment (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -5570,7 +5650,7 @@ public okhttp3.Call readVolumeAttachmentCall(String name, String pretty, final A Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -5605,7 +5685,7 @@ private okhttp3.Call readVolumeAttachmentValidateBeforeCall(String name, String * * read the specified VolumeAttachment * @param name name of the VolumeAttachment (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return V1VolumeAttachment * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -5624,7 +5704,7 @@ public V1VolumeAttachment readVolumeAttachment(String name, String pretty) throw * * read the specified VolumeAttachment * @param name name of the VolumeAttachment (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return ApiResponse<V1VolumeAttachment> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -5644,7 +5724,7 @@ public ApiResponse readVolumeAttachmentWithHttpInfo(String n * (asynchronously) * read the specified VolumeAttachment * @param name name of the VolumeAttachment (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object @@ -5665,7 +5745,7 @@ public okhttp3.Call readVolumeAttachmentAsync(String name, String pretty, final /** * Build call for readVolumeAttachmentStatus * @param name name of the VolumeAttachment (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -5693,7 +5773,7 @@ public okhttp3.Call readVolumeAttachmentStatusCall(String name, String pretty, f Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -5728,7 +5808,7 @@ private okhttp3.Call readVolumeAttachmentStatusValidateBeforeCall(String name, S * * read status of the specified VolumeAttachment * @param name name of the VolumeAttachment (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return V1VolumeAttachment * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -5747,7 +5827,7 @@ public V1VolumeAttachment readVolumeAttachmentStatus(String name, String pretty) * * read status of the specified VolumeAttachment * @param name name of the VolumeAttachment (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return ApiResponse<V1VolumeAttachment> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -5767,7 +5847,7 @@ public ApiResponse readVolumeAttachmentStatusWithHttpInfo(St * (asynchronously) * read status of the specified VolumeAttachment * @param name name of the VolumeAttachment (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object @@ -5789,7 +5869,7 @@ public okhttp3.Call readVolumeAttachmentStatusAsync(String name, String pretty, * Build call for replaceCSIDriver * @param name name of the CSIDriver (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -5833,7 +5913,7 @@ public okhttp3.Call replaceCSIDriverCall(String name, V1CSIDriver body, String p Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -5874,7 +5954,7 @@ private okhttp3.Call replaceCSIDriverValidateBeforeCall(String name, V1CSIDriver * replace the specified CSIDriver * @param name name of the CSIDriver (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -5898,7 +5978,7 @@ public V1CSIDriver replaceCSIDriver(String name, V1CSIDriver body, String pretty * replace the specified CSIDriver * @param name name of the CSIDriver (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -5923,7 +6003,7 @@ public ApiResponse replaceCSIDriverWithHttpInfo(String name, V1CSID * replace the specified CSIDriver * @param name name of the CSIDriver (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -5949,7 +6029,7 @@ public okhttp3.Call replaceCSIDriverAsync(String name, V1CSIDriver body, String * Build call for replaceCSINode * @param name name of the CSINode (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -5993,7 +6073,7 @@ public okhttp3.Call replaceCSINodeCall(String name, V1CSINode body, String prett Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -6034,7 +6114,7 @@ private okhttp3.Call replaceCSINodeValidateBeforeCall(String name, V1CSINode bod * replace the specified CSINode * @param name name of the CSINode (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -6058,7 +6138,7 @@ public V1CSINode replaceCSINode(String name, V1CSINode body, String pretty, Stri * replace the specified CSINode * @param name name of the CSINode (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -6083,7 +6163,7 @@ public ApiResponse replaceCSINodeWithHttpInfo(String name, V1CSINode * replace the specified CSINode * @param name name of the CSINode (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -6110,7 +6190,7 @@ public okhttp3.Call replaceCSINodeAsync(String name, V1CSINode body, String pret * @param name name of the CSIStorageCapacity (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -6155,7 +6235,7 @@ public okhttp3.Call replaceNamespacedCSIStorageCapacityCall(String name, String Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -6202,7 +6282,7 @@ private okhttp3.Call replaceNamespacedCSIStorageCapacityValidateBeforeCall(Strin * @param name name of the CSIStorageCapacity (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -6227,7 +6307,7 @@ public V1CSIStorageCapacity replaceNamespacedCSIStorageCapacity(String name, Str * @param name name of the CSIStorageCapacity (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -6253,7 +6333,7 @@ public ApiResponse replaceNamespacedCSIStorageCapacityWith * @param name name of the CSIStorageCapacity (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -6279,7 +6359,7 @@ public okhttp3.Call replaceNamespacedCSIStorageCapacityAsync(String name, String * Build call for replaceStorageClass * @param name name of the StorageClass (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -6323,7 +6403,7 @@ public okhttp3.Call replaceStorageClassCall(String name, V1StorageClass body, St Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -6364,7 +6444,7 @@ private okhttp3.Call replaceStorageClassValidateBeforeCall(String name, V1Storag * replace the specified StorageClass * @param name name of the StorageClass (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -6388,7 +6468,7 @@ public V1StorageClass replaceStorageClass(String name, V1StorageClass body, Stri * replace the specified StorageClass * @param name name of the StorageClass (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -6413,7 +6493,7 @@ public ApiResponse replaceStorageClassWithHttpInfo(String name, * replace the specified StorageClass * @param name name of the StorageClass (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -6439,7 +6519,7 @@ public okhttp3.Call replaceStorageClassAsync(String name, V1StorageClass body, S * Build call for replaceVolumeAttachment * @param name name of the VolumeAttachment (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -6483,7 +6563,7 @@ public okhttp3.Call replaceVolumeAttachmentCall(String name, V1VolumeAttachment Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -6524,7 +6604,7 @@ private okhttp3.Call replaceVolumeAttachmentValidateBeforeCall(String name, V1Vo * replace the specified VolumeAttachment * @param name name of the VolumeAttachment (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -6548,7 +6628,7 @@ public V1VolumeAttachment replaceVolumeAttachment(String name, V1VolumeAttachmen * replace the specified VolumeAttachment * @param name name of the VolumeAttachment (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -6573,7 +6653,7 @@ public ApiResponse replaceVolumeAttachmentWithHttpInfo(Strin * replace the specified VolumeAttachment * @param name name of the VolumeAttachment (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -6599,7 +6679,7 @@ public okhttp3.Call replaceVolumeAttachmentAsync(String name, V1VolumeAttachment * Build call for replaceVolumeAttachmentStatus * @param name name of the VolumeAttachment (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -6643,7 +6723,7 @@ public okhttp3.Call replaceVolumeAttachmentStatusCall(String name, V1VolumeAttac Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -6684,7 +6764,7 @@ private okhttp3.Call replaceVolumeAttachmentStatusValidateBeforeCall(String name * replace status of the specified VolumeAttachment * @param name name of the VolumeAttachment (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -6708,7 +6788,7 @@ public V1VolumeAttachment replaceVolumeAttachmentStatus(String name, V1VolumeAtt * replace status of the specified VolumeAttachment * @param name name of the VolumeAttachment (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) @@ -6733,7 +6813,7 @@ public ApiResponse replaceVolumeAttachmentStatusWithHttpInfo * replace status of the specified VolumeAttachment * @param name name of the VolumeAttachment (required) * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun 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) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) 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 new file mode 100644 index 0000000000..a934cfb445 --- /dev/null +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/StorageV1alpha1Api.java @@ -0,0 +1,1356 @@ +/* +Copyright 2025 The Kubernetes Authors. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at +http://www.apache.org/licenses/LICENSE-2.0 +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ +package io.kubernetes.client.openapi.apis; + +import io.kubernetes.client.openapi.ApiCallback; +import io.kubernetes.client.openapi.ApiClient; +import io.kubernetes.client.openapi.ApiException; +import io.kubernetes.client.openapi.ApiResponse; +import io.kubernetes.client.openapi.Configuration; +import io.kubernetes.client.openapi.Pair; +import io.kubernetes.client.openapi.ProgressRequestBody; +import io.kubernetes.client.openapi.ProgressResponseBody; + +import com.google.gson.reflect.TypeToken; + +import java.io.IOException; + + +import io.kubernetes.client.openapi.models.V1APIResourceList; +import io.kubernetes.client.openapi.models.V1DeleteOptions; +import io.kubernetes.client.custom.V1Patch; +import io.kubernetes.client.openapi.models.V1Status; +import io.kubernetes.client.openapi.models.V1alpha1VolumeAttributesClass; +import io.kubernetes.client.openapi.models.V1alpha1VolumeAttributesClassList; + +import java.lang.reflect.Type; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +public class StorageV1alpha1Api { + private ApiClient localVarApiClient; + + public StorageV1alpha1Api() { + this(Configuration.getDefaultApiClient()); + } + + public StorageV1alpha1Api(ApiClient apiClient) { + this.localVarApiClient = apiClient; + } + + public ApiClient getApiClient() { + return localVarApiClient; + } + + public void setApiClient(ApiClient apiClient) { + this.localVarApiClient = apiClient; + } + + /** + * Build call for createVolumeAttributesClass + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
+ */ + public okhttp3.Call createVolumeAttributesClassCall(V1alpha1VolumeAttributesClass body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + Object localVarPostBody = body; + + // create path and map variables + String localVarPath = "/apis/storage.k8s.io/v1alpha1/volumeattributesclasses"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } + + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + + if (fieldValidation != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + final String[] localVarAccepts = { + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call createVolumeAttributesClassValidateBeforeCall(V1alpha1VolumeAttributesClass body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'body' is set + if (body == null) { + throw new ApiException("Missing the required parameter 'body' when calling createVolumeAttributesClass(Async)"); + } + + + okhttp3.Call localVarCall = createVolumeAttributesClassCall(body, pretty, dryRun, fieldManager, fieldValidation, _callback); + return localVarCall; + + } + + /** + * + * create a VolumeAttributesClass + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @return V1alpha1VolumeAttributesClass + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
+ */ + public V1alpha1VolumeAttributesClass createVolumeAttributesClass(V1alpha1VolumeAttributesClass body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { + ApiResponse localVarResp = createVolumeAttributesClassWithHttpInfo(body, pretty, dryRun, fieldManager, fieldValidation); + return localVarResp.getData(); + } + + /** + * + * create a VolumeAttributesClass + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @return ApiResponse<V1alpha1VolumeAttributesClass> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
+ */ + public ApiResponse createVolumeAttributesClassWithHttpInfo(V1alpha1VolumeAttributesClass body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { + okhttp3.Call localVarCall = createVolumeAttributesClassValidateBeforeCall(body, pretty, dryRun, fieldManager, fieldValidation, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * create a VolumeAttributesClass + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
+ */ + public okhttp3.Call createVolumeAttributesClassAsync(V1alpha1VolumeAttributesClass body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = createVolumeAttributesClassValidateBeforeCall(body, pretty, dryRun, fieldManager, fieldValidation, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for deleteCollectionVolumeAttributesClass + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param _continue 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) + * @param dryRun 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) + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param orphanDependents 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) + * @param propagationPolicy 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. (optional) + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + * @param body (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call deleteCollectionVolumeAttributesClassCall(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + Object localVarPostBody = body; + + // create path and map variables + String localVarPath = "/apis/storage.k8s.io/v1alpha1/volumeattributesclasses"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + + if (_continue != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); + } + + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } + + if (fieldSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); + } + + if (gracePeriodSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); + } + + if (ignoreStoreReadErrorWithClusterBreakingPotential != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("ignoreStoreReadErrorWithClusterBreakingPotential", ignoreStoreReadErrorWithClusterBreakingPotential)); + } + + if (labelSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); + } + + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + } + + if (orphanDependents != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("orphanDependents", orphanDependents)); + } + + if (propagationPolicy != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("propagationPolicy", propagationPolicy)); + } + + if (resourceVersion != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); + } + + if (resourceVersionMatch != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersionMatch", resourceVersionMatch)); + } + + if (sendInitialEvents != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("sendInitialEvents", sendInitialEvents)); + } + + if (timeoutSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + final String[] localVarAccepts = { + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call deleteCollectionVolumeAttributesClassValidateBeforeCall(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + + + okhttp3.Call localVarCall = deleteCollectionVolumeAttributesClassCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + return localVarCall; + + } + + /** + * + * delete collection of VolumeAttributesClass + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param _continue 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) + * @param dryRun 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) + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param orphanDependents 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) + * @param propagationPolicy 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. (optional) + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + * @param body (optional) + * @return V1Status + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public V1Status deleteCollectionVolumeAttributesClass(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body) throws ApiException { + ApiResponse localVarResp = deleteCollectionVolumeAttributesClassWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); + return localVarResp.getData(); + } + + /** + * + * delete collection of VolumeAttributesClass + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param _continue 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) + * @param dryRun 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) + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param orphanDependents 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) + * @param propagationPolicy 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. (optional) + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + * @param body (optional) + * @return ApiResponse<V1Status> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public ApiResponse deleteCollectionVolumeAttributesClassWithHttpInfo(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteCollectionVolumeAttributesClassValidateBeforeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * delete collection of VolumeAttributesClass + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param _continue 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) + * @param dryRun 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) + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param orphanDependents 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) + * @param propagationPolicy 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. (optional) + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + * @param body (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call deleteCollectionVolumeAttributesClassAsync(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = deleteCollectionVolumeAttributesClassValidateBeforeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for deleteVolumeAttributesClass + * @param name name of the VolumeAttributesClass (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) + * @param orphanDependents 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) + * @param propagationPolicy 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. (optional) + * @param body (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
+ */ + public okhttp3.Call deleteVolumeAttributesClassCall(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + Object localVarPostBody = body; + + // create path and map variables + String localVarPath = "/apis/storage.k8s.io/v1alpha1/volumeattributesclasses/{name}" + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } + + if (gracePeriodSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); + } + + if (ignoreStoreReadErrorWithClusterBreakingPotential != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("ignoreStoreReadErrorWithClusterBreakingPotential", ignoreStoreReadErrorWithClusterBreakingPotential)); + } + + if (orphanDependents != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("orphanDependents", orphanDependents)); + } + + if (propagationPolicy != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("propagationPolicy", propagationPolicy)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + final String[] localVarAccepts = { + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call deleteVolumeAttributesClassValidateBeforeCall(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'name' is set + if (name == null) { + throw new ApiException("Missing the required parameter 'name' when calling deleteVolumeAttributesClass(Async)"); + } + + + okhttp3.Call localVarCall = deleteVolumeAttributesClassCall(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); + return localVarCall; + + } + + /** + * + * delete a VolumeAttributesClass + * @param name name of the VolumeAttributesClass (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) + * @param orphanDependents 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) + * @param propagationPolicy 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. (optional) + * @param body (optional) + * @return V1alpha1VolumeAttributesClass + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
+ */ + public V1alpha1VolumeAttributesClass deleteVolumeAttributesClass(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { + ApiResponse localVarResp = deleteVolumeAttributesClassWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body); + return localVarResp.getData(); + } + + /** + * + * delete a VolumeAttributesClass + * @param name name of the VolumeAttributesClass (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) + * @param orphanDependents 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) + * @param propagationPolicy 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. (optional) + * @param body (optional) + * @return ApiResponse<V1alpha1VolumeAttributesClass> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
+ */ + public ApiResponse deleteVolumeAttributesClassWithHttpInfo(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteVolumeAttributesClassValidateBeforeCall(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * delete a VolumeAttributesClass + * @param name name of the VolumeAttributesClass (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) + * @param orphanDependents 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) + * @param propagationPolicy 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. (optional) + * @param body (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
+ */ + public okhttp3.Call deleteVolumeAttributesClassAsync(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = deleteVolumeAttributesClassValidateBeforeCall(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for getAPIResources + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call getAPIResourcesCall(final ApiCallback _callback) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/apis/storage.k8s.io/v1alpha1/"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + final String[] localVarAccepts = { + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call getAPIResourcesValidateBeforeCall(final ApiCallback _callback) throws ApiException { + + + okhttp3.Call localVarCall = getAPIResourcesCall(_callback); + return localVarCall; + + } + + /** + * + * get available resources + * @return V1APIResourceList + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public V1APIResourceList getAPIResources() throws ApiException { + ApiResponse localVarResp = getAPIResourcesWithHttpInfo(); + return localVarResp.getData(); + } + + /** + * + * get available resources + * @return ApiResponse<V1APIResourceList> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public ApiResponse getAPIResourcesWithHttpInfo() throws ApiException { + okhttp3.Call localVarCall = getAPIResourcesValidateBeforeCall(null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * get available resources + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call getAPIResourcesAsync(final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = getAPIResourcesValidateBeforeCall(_callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for listVolumeAttributesClass + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param allowWatchBookmarks 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. (optional) + * @param _continue 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) + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call listVolumeAttributesClassCall(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/apis/storage.k8s.io/v1alpha1/volumeattributesclasses"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + + if (allowWatchBookmarks != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("allowWatchBookmarks", allowWatchBookmarks)); + } + + if (_continue != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); + } + + if (fieldSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); + } + + if (labelSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); + } + + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + } + + if (resourceVersion != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); + } + + if (resourceVersionMatch != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersionMatch", resourceVersionMatch)); + } + + if (sendInitialEvents != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("sendInitialEvents", sendInitialEvents)); + } + + if (timeoutSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); + } + + if (watch != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + final String[] localVarAccepts = { + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch", "application/cbor-seq" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call listVolumeAttributesClassValidateBeforeCall(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + + + okhttp3.Call localVarCall = listVolumeAttributesClassCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + return localVarCall; + + } + + /** + * + * list or watch objects of kind VolumeAttributesClass + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param allowWatchBookmarks 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. (optional) + * @param _continue 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) + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + * @return V1alpha1VolumeAttributesClassList + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public V1alpha1VolumeAttributesClassList listVolumeAttributesClass(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch) throws ApiException { + ApiResponse localVarResp = listVolumeAttributesClassWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + return localVarResp.getData(); + } + + /** + * + * list or watch objects of kind VolumeAttributesClass + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param allowWatchBookmarks 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. (optional) + * @param _continue 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) + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + * @return ApiResponse<V1alpha1VolumeAttributesClassList> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public ApiResponse listVolumeAttributesClassWithHttpInfo(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch) throws ApiException { + okhttp3.Call localVarCall = listVolumeAttributesClassValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * list or watch objects of kind VolumeAttributesClass + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param allowWatchBookmarks 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. (optional) + * @param _continue 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) + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call listVolumeAttributesClassAsync(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = listVolumeAttributesClassValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for patchVolumeAttributesClass + * @param name name of the VolumeAttributesClass (required) + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public okhttp3.Call patchVolumeAttributesClassCall(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + Object localVarPostBody = body; + + // create path and map variables + String localVarPath = "/apis/storage.k8s.io/v1alpha1/volumeattributesclasses/{name}" + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } + + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + + if (fieldValidation != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); + } + + if (force != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("force", force)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + final String[] localVarAccepts = { + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call patchVolumeAttributesClassValidateBeforeCall(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'name' is set + if (name == null) { + throw new ApiException("Missing the required parameter 'name' when calling patchVolumeAttributesClass(Async)"); + } + + // verify the required parameter 'body' is set + if (body == null) { + throw new ApiException("Missing the required parameter 'body' when calling patchVolumeAttributesClass(Async)"); + } + + + okhttp3.Call localVarCall = patchVolumeAttributesClassCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); + return localVarCall; + + } + + /** + * + * partially update the specified VolumeAttributesClass + * @param name name of the VolumeAttributesClass (required) + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) + * @return V1alpha1VolumeAttributesClass + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public V1alpha1VolumeAttributesClass patchVolumeAttributesClass(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force) throws ApiException { + ApiResponse localVarResp = patchVolumeAttributesClassWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force); + return localVarResp.getData(); + } + + /** + * + * partially update the specified VolumeAttributesClass + * @param name name of the VolumeAttributesClass (required) + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) + * @return ApiResponse<V1alpha1VolumeAttributesClass> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public ApiResponse patchVolumeAttributesClassWithHttpInfo(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force) throws ApiException { + okhttp3.Call localVarCall = patchVolumeAttributesClassValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * partially update the specified VolumeAttributesClass + * @param name name of the VolumeAttributesClass (required) + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public okhttp3.Call patchVolumeAttributesClassAsync(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = patchVolumeAttributesClassValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for readVolumeAttributesClass + * @param name name of the VolumeAttributesClass (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call readVolumeAttributesClassCall(String name, String pretty, final ApiCallback _callback) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/apis/storage.k8s.io/v1alpha1/volumeattributesclasses/{name}" + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + final String[] localVarAccepts = { + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call readVolumeAttributesClassValidateBeforeCall(String name, String pretty, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'name' is set + if (name == null) { + throw new ApiException("Missing the required parameter 'name' when calling readVolumeAttributesClass(Async)"); + } + + + okhttp3.Call localVarCall = readVolumeAttributesClassCall(name, pretty, _callback); + return localVarCall; + + } + + /** + * + * read the specified VolumeAttributesClass + * @param name name of the VolumeAttributesClass (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @return V1alpha1VolumeAttributesClass + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public V1alpha1VolumeAttributesClass readVolumeAttributesClass(String name, String pretty) throws ApiException { + ApiResponse localVarResp = readVolumeAttributesClassWithHttpInfo(name, pretty); + return localVarResp.getData(); + } + + /** + * + * read the specified VolumeAttributesClass + * @param name name of the VolumeAttributesClass (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @return ApiResponse<V1alpha1VolumeAttributesClass> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public ApiResponse readVolumeAttributesClassWithHttpInfo(String name, String pretty) throws ApiException { + okhttp3.Call localVarCall = readVolumeAttributesClassValidateBeforeCall(name, pretty, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * read the specified VolumeAttributesClass + * @param name name of the VolumeAttributesClass (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call readVolumeAttributesClassAsync(String name, String pretty, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = readVolumeAttributesClassValidateBeforeCall(name, pretty, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for replaceVolumeAttributesClass + * @param name name of the VolumeAttributesClass (required) + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public okhttp3.Call replaceVolumeAttributesClassCall(String name, V1alpha1VolumeAttributesClass body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + Object localVarPostBody = body; + + // create path and map variables + String localVarPath = "/apis/storage.k8s.io/v1alpha1/volumeattributesclasses/{name}" + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } + + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + + if (fieldValidation != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + final String[] localVarAccepts = { + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call replaceVolumeAttributesClassValidateBeforeCall(String name, V1alpha1VolumeAttributesClass body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'name' is set + if (name == null) { + throw new ApiException("Missing the required parameter 'name' when calling replaceVolumeAttributesClass(Async)"); + } + + // verify the required parameter 'body' is set + if (body == null) { + throw new ApiException("Missing the required parameter 'body' when calling replaceVolumeAttributesClass(Async)"); + } + + + okhttp3.Call localVarCall = replaceVolumeAttributesClassCall(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); + return localVarCall; + + } + + /** + * + * replace the specified VolumeAttributesClass + * @param name name of the VolumeAttributesClass (required) + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @return V1alpha1VolumeAttributesClass + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public V1alpha1VolumeAttributesClass replaceVolumeAttributesClass(String name, V1alpha1VolumeAttributesClass body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { + ApiResponse localVarResp = replaceVolumeAttributesClassWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation); + return localVarResp.getData(); + } + + /** + * + * replace the specified VolumeAttributesClass + * @param name name of the VolumeAttributesClass (required) + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @return ApiResponse<V1alpha1VolumeAttributesClass> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public ApiResponse replaceVolumeAttributesClassWithHttpInfo(String name, V1alpha1VolumeAttributesClass body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { + okhttp3.Call localVarCall = replaceVolumeAttributesClassValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * replace the specified VolumeAttributesClass + * @param name name of the VolumeAttributesClass (required) + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public okhttp3.Call replaceVolumeAttributesClassAsync(String name, V1alpha1VolumeAttributesClass body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = replaceVolumeAttributesClassValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } +} 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 new file mode 100644 index 0000000000..4d89fe27b6 --- /dev/null +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/StorageV1beta1Api.java @@ -0,0 +1,1356 @@ +/* +Copyright 2025 The Kubernetes Authors. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at +http://www.apache.org/licenses/LICENSE-2.0 +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ +package io.kubernetes.client.openapi.apis; + +import io.kubernetes.client.openapi.ApiCallback; +import io.kubernetes.client.openapi.ApiClient; +import io.kubernetes.client.openapi.ApiException; +import io.kubernetes.client.openapi.ApiResponse; +import io.kubernetes.client.openapi.Configuration; +import io.kubernetes.client.openapi.Pair; +import io.kubernetes.client.openapi.ProgressRequestBody; +import io.kubernetes.client.openapi.ProgressResponseBody; + +import com.google.gson.reflect.TypeToken; + +import java.io.IOException; + + +import io.kubernetes.client.openapi.models.V1APIResourceList; +import io.kubernetes.client.openapi.models.V1DeleteOptions; +import io.kubernetes.client.custom.V1Patch; +import io.kubernetes.client.openapi.models.V1Status; +import io.kubernetes.client.openapi.models.V1beta1VolumeAttributesClass; +import io.kubernetes.client.openapi.models.V1beta1VolumeAttributesClassList; + +import java.lang.reflect.Type; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +public class StorageV1beta1Api { + private ApiClient localVarApiClient; + + public StorageV1beta1Api() { + this(Configuration.getDefaultApiClient()); + } + + public StorageV1beta1Api(ApiClient apiClient) { + this.localVarApiClient = apiClient; + } + + public ApiClient getApiClient() { + return localVarApiClient; + } + + public void setApiClient(ApiClient apiClient) { + this.localVarApiClient = apiClient; + } + + /** + * Build call for createVolumeAttributesClass + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
+ */ + public okhttp3.Call createVolumeAttributesClassCall(V1beta1VolumeAttributesClass body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + Object localVarPostBody = body; + + // create path and map variables + String localVarPath = "/apis/storage.k8s.io/v1beta1/volumeattributesclasses"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } + + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + + if (fieldValidation != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + final String[] localVarAccepts = { + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call createVolumeAttributesClassValidateBeforeCall(V1beta1VolumeAttributesClass body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'body' is set + if (body == null) { + throw new ApiException("Missing the required parameter 'body' when calling createVolumeAttributesClass(Async)"); + } + + + okhttp3.Call localVarCall = createVolumeAttributesClassCall(body, pretty, dryRun, fieldManager, fieldValidation, _callback); + return localVarCall; + + } + + /** + * + * create a VolumeAttributesClass + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @return V1beta1VolumeAttributesClass + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
+ */ + public V1beta1VolumeAttributesClass createVolumeAttributesClass(V1beta1VolumeAttributesClass body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { + ApiResponse localVarResp = createVolumeAttributesClassWithHttpInfo(body, pretty, dryRun, fieldManager, fieldValidation); + return localVarResp.getData(); + } + + /** + * + * create a VolumeAttributesClass + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @return ApiResponse<V1beta1VolumeAttributesClass> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
+ */ + public ApiResponse createVolumeAttributesClassWithHttpInfo(V1beta1VolumeAttributesClass body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { + okhttp3.Call localVarCall = createVolumeAttributesClassValidateBeforeCall(body, pretty, dryRun, fieldManager, fieldValidation, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * create a VolumeAttributesClass + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
+ */ + public okhttp3.Call createVolumeAttributesClassAsync(V1beta1VolumeAttributesClass body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = createVolumeAttributesClassValidateBeforeCall(body, pretty, dryRun, fieldManager, fieldValidation, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for deleteCollectionVolumeAttributesClass + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param _continue 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) + * @param dryRun 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) + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param orphanDependents 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) + * @param propagationPolicy 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. (optional) + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + * @param body (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call deleteCollectionVolumeAttributesClassCall(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + Object localVarPostBody = body; + + // create path and map variables + String localVarPath = "/apis/storage.k8s.io/v1beta1/volumeattributesclasses"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + + if (_continue != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); + } + + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } + + if (fieldSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); + } + + if (gracePeriodSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); + } + + if (ignoreStoreReadErrorWithClusterBreakingPotential != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("ignoreStoreReadErrorWithClusterBreakingPotential", ignoreStoreReadErrorWithClusterBreakingPotential)); + } + + if (labelSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); + } + + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + } + + if (orphanDependents != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("orphanDependents", orphanDependents)); + } + + if (propagationPolicy != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("propagationPolicy", propagationPolicy)); + } + + if (resourceVersion != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); + } + + if (resourceVersionMatch != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersionMatch", resourceVersionMatch)); + } + + if (sendInitialEvents != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("sendInitialEvents", sendInitialEvents)); + } + + if (timeoutSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + final String[] localVarAccepts = { + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call deleteCollectionVolumeAttributesClassValidateBeforeCall(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + + + okhttp3.Call localVarCall = deleteCollectionVolumeAttributesClassCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + return localVarCall; + + } + + /** + * + * delete collection of VolumeAttributesClass + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param _continue 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) + * @param dryRun 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) + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param orphanDependents 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) + * @param propagationPolicy 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. (optional) + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + * @param body (optional) + * @return V1Status + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public V1Status deleteCollectionVolumeAttributesClass(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body) throws ApiException { + ApiResponse localVarResp = deleteCollectionVolumeAttributesClassWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); + return localVarResp.getData(); + } + + /** + * + * delete collection of VolumeAttributesClass + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param _continue 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) + * @param dryRun 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) + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param orphanDependents 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) + * @param propagationPolicy 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. (optional) + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + * @param body (optional) + * @return ApiResponse<V1Status> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public ApiResponse deleteCollectionVolumeAttributesClassWithHttpInfo(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteCollectionVolumeAttributesClassValidateBeforeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * delete collection of VolumeAttributesClass + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param _continue 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) + * @param dryRun 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) + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param orphanDependents 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) + * @param propagationPolicy 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. (optional) + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + * @param body (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call deleteCollectionVolumeAttributesClassAsync(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = deleteCollectionVolumeAttributesClassValidateBeforeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for deleteVolumeAttributesClass + * @param name name of the VolumeAttributesClass (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) + * @param orphanDependents 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) + * @param propagationPolicy 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. (optional) + * @param body (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
+ */ + public okhttp3.Call deleteVolumeAttributesClassCall(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + Object localVarPostBody = body; + + // create path and map variables + String localVarPath = "/apis/storage.k8s.io/v1beta1/volumeattributesclasses/{name}" + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } + + if (gracePeriodSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); + } + + if (ignoreStoreReadErrorWithClusterBreakingPotential != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("ignoreStoreReadErrorWithClusterBreakingPotential", ignoreStoreReadErrorWithClusterBreakingPotential)); + } + + if (orphanDependents != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("orphanDependents", orphanDependents)); + } + + if (propagationPolicy != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("propagationPolicy", propagationPolicy)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + final String[] localVarAccepts = { + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call deleteVolumeAttributesClassValidateBeforeCall(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'name' is set + if (name == null) { + throw new ApiException("Missing the required parameter 'name' when calling deleteVolumeAttributesClass(Async)"); + } + + + okhttp3.Call localVarCall = deleteVolumeAttributesClassCall(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); + return localVarCall; + + } + + /** + * + * delete a VolumeAttributesClass + * @param name name of the VolumeAttributesClass (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) + * @param orphanDependents 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) + * @param propagationPolicy 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. (optional) + * @param body (optional) + * @return V1beta1VolumeAttributesClass + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
+ */ + public V1beta1VolumeAttributesClass deleteVolumeAttributesClass(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { + ApiResponse localVarResp = deleteVolumeAttributesClassWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body); + return localVarResp.getData(); + } + + /** + * + * delete a VolumeAttributesClass + * @param name name of the VolumeAttributesClass (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) + * @param orphanDependents 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) + * @param propagationPolicy 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. (optional) + * @param body (optional) + * @return ApiResponse<V1beta1VolumeAttributesClass> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
+ */ + public ApiResponse deleteVolumeAttributesClassWithHttpInfo(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteVolumeAttributesClassValidateBeforeCall(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * delete a VolumeAttributesClass + * @param name name of the VolumeAttributesClass (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) + * @param orphanDependents 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) + * @param propagationPolicy 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. (optional) + * @param body (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
+ */ + public okhttp3.Call deleteVolumeAttributesClassAsync(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = deleteVolumeAttributesClassValidateBeforeCall(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for getAPIResources + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call getAPIResourcesCall(final ApiCallback _callback) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/apis/storage.k8s.io/v1beta1/"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + final String[] localVarAccepts = { + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call getAPIResourcesValidateBeforeCall(final ApiCallback _callback) throws ApiException { + + + okhttp3.Call localVarCall = getAPIResourcesCall(_callback); + return localVarCall; + + } + + /** + * + * get available resources + * @return V1APIResourceList + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public V1APIResourceList getAPIResources() throws ApiException { + ApiResponse localVarResp = getAPIResourcesWithHttpInfo(); + return localVarResp.getData(); + } + + /** + * + * get available resources + * @return ApiResponse<V1APIResourceList> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public ApiResponse getAPIResourcesWithHttpInfo() throws ApiException { + okhttp3.Call localVarCall = getAPIResourcesValidateBeforeCall(null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * get available resources + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call getAPIResourcesAsync(final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = getAPIResourcesValidateBeforeCall(_callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for listVolumeAttributesClass + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param allowWatchBookmarks 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. (optional) + * @param _continue 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) + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call listVolumeAttributesClassCall(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/apis/storage.k8s.io/v1beta1/volumeattributesclasses"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + + if (allowWatchBookmarks != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("allowWatchBookmarks", allowWatchBookmarks)); + } + + if (_continue != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); + } + + if (fieldSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); + } + + if (labelSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); + } + + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + } + + if (resourceVersion != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); + } + + if (resourceVersionMatch != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersionMatch", resourceVersionMatch)); + } + + if (sendInitialEvents != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("sendInitialEvents", sendInitialEvents)); + } + + if (timeoutSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); + } + + if (watch != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + final String[] localVarAccepts = { + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch", "application/cbor-seq" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call listVolumeAttributesClassValidateBeforeCall(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + + + okhttp3.Call localVarCall = listVolumeAttributesClassCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + return localVarCall; + + } + + /** + * + * list or watch objects of kind VolumeAttributesClass + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param allowWatchBookmarks 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. (optional) + * @param _continue 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) + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + * @return V1beta1VolumeAttributesClassList + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public V1beta1VolumeAttributesClassList listVolumeAttributesClass(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch) throws ApiException { + ApiResponse localVarResp = listVolumeAttributesClassWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + return localVarResp.getData(); + } + + /** + * + * list or watch objects of kind VolumeAttributesClass + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param allowWatchBookmarks 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. (optional) + * @param _continue 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) + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + * @return ApiResponse<V1beta1VolumeAttributesClassList> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public ApiResponse listVolumeAttributesClassWithHttpInfo(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch) throws ApiException { + okhttp3.Call localVarCall = listVolumeAttributesClassValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * list or watch objects of kind VolumeAttributesClass + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param allowWatchBookmarks 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. (optional) + * @param _continue 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) + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call listVolumeAttributesClassAsync(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = listVolumeAttributesClassValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for patchVolumeAttributesClass + * @param name name of the VolumeAttributesClass (required) + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public okhttp3.Call patchVolumeAttributesClassCall(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + Object localVarPostBody = body; + + // create path and map variables + String localVarPath = "/apis/storage.k8s.io/v1beta1/volumeattributesclasses/{name}" + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } + + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + + if (fieldValidation != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); + } + + if (force != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("force", force)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + final String[] localVarAccepts = { + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call patchVolumeAttributesClassValidateBeforeCall(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'name' is set + if (name == null) { + throw new ApiException("Missing the required parameter 'name' when calling patchVolumeAttributesClass(Async)"); + } + + // verify the required parameter 'body' is set + if (body == null) { + throw new ApiException("Missing the required parameter 'body' when calling patchVolumeAttributesClass(Async)"); + } + + + okhttp3.Call localVarCall = patchVolumeAttributesClassCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); + return localVarCall; + + } + + /** + * + * partially update the specified VolumeAttributesClass + * @param name name of the VolumeAttributesClass (required) + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) + * @return V1beta1VolumeAttributesClass + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public V1beta1VolumeAttributesClass patchVolumeAttributesClass(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force) throws ApiException { + ApiResponse localVarResp = patchVolumeAttributesClassWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force); + return localVarResp.getData(); + } + + /** + * + * partially update the specified VolumeAttributesClass + * @param name name of the VolumeAttributesClass (required) + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) + * @return ApiResponse<V1beta1VolumeAttributesClass> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public ApiResponse patchVolumeAttributesClassWithHttpInfo(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force) throws ApiException { + okhttp3.Call localVarCall = patchVolumeAttributesClassValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * partially update the specified VolumeAttributesClass + * @param name name of the VolumeAttributesClass (required) + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public okhttp3.Call patchVolumeAttributesClassAsync(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = patchVolumeAttributesClassValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for readVolumeAttributesClass + * @param name name of the VolumeAttributesClass (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call readVolumeAttributesClassCall(String name, String pretty, final ApiCallback _callback) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/apis/storage.k8s.io/v1beta1/volumeattributesclasses/{name}" + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + final String[] localVarAccepts = { + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call readVolumeAttributesClassValidateBeforeCall(String name, String pretty, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'name' is set + if (name == null) { + throw new ApiException("Missing the required parameter 'name' when calling readVolumeAttributesClass(Async)"); + } + + + okhttp3.Call localVarCall = readVolumeAttributesClassCall(name, pretty, _callback); + return localVarCall; + + } + + /** + * + * read the specified VolumeAttributesClass + * @param name name of the VolumeAttributesClass (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @return V1beta1VolumeAttributesClass + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public V1beta1VolumeAttributesClass readVolumeAttributesClass(String name, String pretty) throws ApiException { + ApiResponse localVarResp = readVolumeAttributesClassWithHttpInfo(name, pretty); + return localVarResp.getData(); + } + + /** + * + * read the specified VolumeAttributesClass + * @param name name of the VolumeAttributesClass (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @return ApiResponse<V1beta1VolumeAttributesClass> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public ApiResponse readVolumeAttributesClassWithHttpInfo(String name, String pretty) throws ApiException { + okhttp3.Call localVarCall = readVolumeAttributesClassValidateBeforeCall(name, pretty, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * read the specified VolumeAttributesClass + * @param name name of the VolumeAttributesClass (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call readVolumeAttributesClassAsync(String name, String pretty, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = readVolumeAttributesClassValidateBeforeCall(name, pretty, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for replaceVolumeAttributesClass + * @param name name of the VolumeAttributesClass (required) + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public okhttp3.Call replaceVolumeAttributesClassCall(String name, V1beta1VolumeAttributesClass body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + Object localVarPostBody = body; + + // create path and map variables + String localVarPath = "/apis/storage.k8s.io/v1beta1/volumeattributesclasses/{name}" + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } + + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + + if (fieldValidation != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + final String[] localVarAccepts = { + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call replaceVolumeAttributesClassValidateBeforeCall(String name, V1beta1VolumeAttributesClass body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'name' is set + if (name == null) { + throw new ApiException("Missing the required parameter 'name' when calling replaceVolumeAttributesClass(Async)"); + } + + // verify the required parameter 'body' is set + if (body == null) { + throw new ApiException("Missing the required parameter 'body' when calling replaceVolumeAttributesClass(Async)"); + } + + + okhttp3.Call localVarCall = replaceVolumeAttributesClassCall(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); + return localVarCall; + + } + + /** + * + * replace the specified VolumeAttributesClass + * @param name name of the VolumeAttributesClass (required) + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @return V1beta1VolumeAttributesClass + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public V1beta1VolumeAttributesClass replaceVolumeAttributesClass(String name, V1beta1VolumeAttributesClass body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { + ApiResponse localVarResp = replaceVolumeAttributesClassWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation); + return localVarResp.getData(); + } + + /** + * + * replace the specified VolumeAttributesClass + * @param name name of the VolumeAttributesClass (required) + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @return ApiResponse<V1beta1VolumeAttributesClass> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public ApiResponse replaceVolumeAttributesClassWithHttpInfo(String name, V1beta1VolumeAttributesClass body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { + okhttp3.Call localVarCall = replaceVolumeAttributesClassValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * replace the specified VolumeAttributesClass + * @param name name of the VolumeAttributesClass (required) + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public okhttp3.Call replaceVolumeAttributesClassAsync(String name, V1beta1VolumeAttributesClass body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = replaceVolumeAttributesClassValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } +} 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 new file mode 100644 index 0000000000..6f640f8885 --- /dev/null +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/StoragemigrationApi.java @@ -0,0 +1,161 @@ +/* +Copyright 2025 The Kubernetes Authors. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at +http://www.apache.org/licenses/LICENSE-2.0 +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ +package io.kubernetes.client.openapi.apis; + +import io.kubernetes.client.openapi.ApiCallback; +import io.kubernetes.client.openapi.ApiClient; +import io.kubernetes.client.openapi.ApiException; +import io.kubernetes.client.openapi.ApiResponse; +import io.kubernetes.client.openapi.Configuration; +import io.kubernetes.client.openapi.Pair; +import io.kubernetes.client.openapi.ProgressRequestBody; +import io.kubernetes.client.openapi.ProgressResponseBody; + +import com.google.gson.reflect.TypeToken; + +import java.io.IOException; + + +import io.kubernetes.client.openapi.models.V1APIGroup; + +import java.lang.reflect.Type; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +public class StoragemigrationApi { + private ApiClient localVarApiClient; + + public StoragemigrationApi() { + this(Configuration.getDefaultApiClient()); + } + + public StoragemigrationApi(ApiClient apiClient) { + this.localVarApiClient = apiClient; + } + + public ApiClient getApiClient() { + return localVarApiClient; + } + + public void setApiClient(ApiClient apiClient) { + this.localVarApiClient = apiClient; + } + + /** + * Build call for getAPIGroup + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call getAPIGroupCall(final ApiCallback _callback) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/apis/storagemigration.k8s.io/"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + final String[] localVarAccepts = { + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call getAPIGroupValidateBeforeCall(final ApiCallback _callback) throws ApiException { + + + okhttp3.Call localVarCall = getAPIGroupCall(_callback); + return localVarCall; + + } + + /** + * + * get information of a group + * @return V1APIGroup + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public V1APIGroup getAPIGroup() throws ApiException { + ApiResponse localVarResp = getAPIGroupWithHttpInfo(); + return localVarResp.getData(); + } + + /** + * + * get information of a group + * @return ApiResponse<V1APIGroup> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public ApiResponse getAPIGroupWithHttpInfo() throws ApiException { + okhttp3.Call localVarCall = getAPIGroupValidateBeforeCall(null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * get information of a group + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call getAPIGroupAsync(final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = getAPIGroupValidateBeforeCall(_callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } +} 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 new file mode 100644 index 0000000000..5ffa7704ba --- /dev/null +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/StoragemigrationV1alpha1Api.java @@ -0,0 +1,1807 @@ +/* +Copyright 2025 The Kubernetes Authors. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at +http://www.apache.org/licenses/LICENSE-2.0 +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ +package io.kubernetes.client.openapi.apis; + +import io.kubernetes.client.openapi.ApiCallback; +import io.kubernetes.client.openapi.ApiClient; +import io.kubernetes.client.openapi.ApiException; +import io.kubernetes.client.openapi.ApiResponse; +import io.kubernetes.client.openapi.Configuration; +import io.kubernetes.client.openapi.Pair; +import io.kubernetes.client.openapi.ProgressRequestBody; +import io.kubernetes.client.openapi.ProgressResponseBody; + +import com.google.gson.reflect.TypeToken; + +import java.io.IOException; + + +import io.kubernetes.client.openapi.models.V1APIResourceList; +import io.kubernetes.client.openapi.models.V1DeleteOptions; +import io.kubernetes.client.custom.V1Patch; +import io.kubernetes.client.openapi.models.V1Status; +import io.kubernetes.client.openapi.models.V1alpha1StorageVersionMigration; +import io.kubernetes.client.openapi.models.V1alpha1StorageVersionMigrationList; + +import java.lang.reflect.Type; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +public class StoragemigrationV1alpha1Api { + private ApiClient localVarApiClient; + + public StoragemigrationV1alpha1Api() { + this(Configuration.getDefaultApiClient()); + } + + public StoragemigrationV1alpha1Api(ApiClient apiClient) { + this.localVarApiClient = apiClient; + } + + public ApiClient getApiClient() { + return localVarApiClient; + } + + public void setApiClient(ApiClient apiClient) { + this.localVarApiClient = apiClient; + } + + /** + * Build call for createStorageVersionMigration + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
+ */ + public okhttp3.Call createStorageVersionMigrationCall(V1alpha1StorageVersionMigration body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + Object localVarPostBody = body; + + // create path and map variables + String localVarPath = "/apis/storagemigration.k8s.io/v1alpha1/storageversionmigrations"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } + + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + + if (fieldValidation != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + final String[] localVarAccepts = { + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call createStorageVersionMigrationValidateBeforeCall(V1alpha1StorageVersionMigration body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'body' is set + if (body == null) { + throw new ApiException("Missing the required parameter 'body' when calling createStorageVersionMigration(Async)"); + } + + + okhttp3.Call localVarCall = createStorageVersionMigrationCall(body, pretty, dryRun, fieldManager, fieldValidation, _callback); + return localVarCall; + + } + + /** + * + * create a StorageVersionMigration + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @return V1alpha1StorageVersionMigration + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
+ */ + public V1alpha1StorageVersionMigration createStorageVersionMigration(V1alpha1StorageVersionMigration body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { + ApiResponse localVarResp = createStorageVersionMigrationWithHttpInfo(body, pretty, dryRun, fieldManager, fieldValidation); + return localVarResp.getData(); + } + + /** + * + * create a StorageVersionMigration + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @return ApiResponse<V1alpha1StorageVersionMigration> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
+ */ + public ApiResponse createStorageVersionMigrationWithHttpInfo(V1alpha1StorageVersionMigration body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { + okhttp3.Call localVarCall = createStorageVersionMigrationValidateBeforeCall(body, pretty, dryRun, fieldManager, fieldValidation, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * create a StorageVersionMigration + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
+ */ + public okhttp3.Call createStorageVersionMigrationAsync(V1alpha1StorageVersionMigration body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = createStorageVersionMigrationValidateBeforeCall(body, pretty, dryRun, fieldManager, fieldValidation, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for deleteCollectionStorageVersionMigration + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param _continue 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) + * @param dryRun 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) + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param orphanDependents 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) + * @param propagationPolicy 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. (optional) + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + * @param body (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call deleteCollectionStorageVersionMigrationCall(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + Object localVarPostBody = body; + + // create path and map variables + String localVarPath = "/apis/storagemigration.k8s.io/v1alpha1/storageversionmigrations"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + + if (_continue != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); + } + + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } + + if (fieldSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); + } + + if (gracePeriodSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); + } + + if (ignoreStoreReadErrorWithClusterBreakingPotential != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("ignoreStoreReadErrorWithClusterBreakingPotential", ignoreStoreReadErrorWithClusterBreakingPotential)); + } + + if (labelSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); + } + + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + } + + if (orphanDependents != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("orphanDependents", orphanDependents)); + } + + if (propagationPolicy != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("propagationPolicy", propagationPolicy)); + } + + if (resourceVersion != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); + } + + if (resourceVersionMatch != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersionMatch", resourceVersionMatch)); + } + + if (sendInitialEvents != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("sendInitialEvents", sendInitialEvents)); + } + + if (timeoutSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + final String[] localVarAccepts = { + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call deleteCollectionStorageVersionMigrationValidateBeforeCall(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + + + okhttp3.Call localVarCall = deleteCollectionStorageVersionMigrationCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + return localVarCall; + + } + + /** + * + * delete collection of StorageVersionMigration + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param _continue 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) + * @param dryRun 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) + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param orphanDependents 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) + * @param propagationPolicy 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. (optional) + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + * @param body (optional) + * @return V1Status + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public V1Status deleteCollectionStorageVersionMigration(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body) throws ApiException { + ApiResponse localVarResp = deleteCollectionStorageVersionMigrationWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); + return localVarResp.getData(); + } + + /** + * + * delete collection of StorageVersionMigration + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param _continue 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) + * @param dryRun 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) + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param orphanDependents 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) + * @param propagationPolicy 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. (optional) + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + * @param body (optional) + * @return ApiResponse<V1Status> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public ApiResponse deleteCollectionStorageVersionMigrationWithHttpInfo(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteCollectionStorageVersionMigrationValidateBeforeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * delete collection of StorageVersionMigration + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param _continue 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) + * @param dryRun 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) + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param orphanDependents 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) + * @param propagationPolicy 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. (optional) + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + * @param body (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call deleteCollectionStorageVersionMigrationAsync(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = deleteCollectionStorageVersionMigrationValidateBeforeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for deleteStorageVersionMigration + * @param name name of the StorageVersionMigration (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) + * @param orphanDependents 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) + * @param propagationPolicy 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. (optional) + * @param body (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
+ */ + public okhttp3.Call deleteStorageVersionMigrationCall(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + Object localVarPostBody = body; + + // create path and map variables + String localVarPath = "/apis/storagemigration.k8s.io/v1alpha1/storageversionmigrations/{name}" + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } + + if (gracePeriodSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); + } + + if (ignoreStoreReadErrorWithClusterBreakingPotential != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("ignoreStoreReadErrorWithClusterBreakingPotential", ignoreStoreReadErrorWithClusterBreakingPotential)); + } + + if (orphanDependents != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("orphanDependents", orphanDependents)); + } + + if (propagationPolicy != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("propagationPolicy", propagationPolicy)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + final String[] localVarAccepts = { + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call deleteStorageVersionMigrationValidateBeforeCall(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'name' is set + if (name == null) { + throw new ApiException("Missing the required parameter 'name' when calling deleteStorageVersionMigration(Async)"); + } + + + okhttp3.Call localVarCall = deleteStorageVersionMigrationCall(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); + return localVarCall; + + } + + /** + * + * delete a StorageVersionMigration + * @param name name of the StorageVersionMigration (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) + * @param orphanDependents 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) + * @param propagationPolicy 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. (optional) + * @param body (optional) + * @return V1Status + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
+ */ + public V1Status deleteStorageVersionMigration(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { + ApiResponse localVarResp = deleteStorageVersionMigrationWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body); + return localVarResp.getData(); + } + + /** + * + * delete a StorageVersionMigration + * @param name name of the StorageVersionMigration (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) + * @param orphanDependents 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) + * @param propagationPolicy 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. (optional) + * @param body (optional) + * @return ApiResponse<V1Status> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
+ */ + public ApiResponse deleteStorageVersionMigrationWithHttpInfo(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteStorageVersionMigrationValidateBeforeCall(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * delete a StorageVersionMigration + * @param name name of the StorageVersionMigration (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param gracePeriodSeconds 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. (optional) + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) + * @param orphanDependents 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) + * @param propagationPolicy 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. (optional) + * @param body (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
+ */ + public okhttp3.Call deleteStorageVersionMigrationAsync(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = deleteStorageVersionMigrationValidateBeforeCall(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for getAPIResources + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call getAPIResourcesCall(final ApiCallback _callback) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/apis/storagemigration.k8s.io/v1alpha1/"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + final String[] localVarAccepts = { + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call getAPIResourcesValidateBeforeCall(final ApiCallback _callback) throws ApiException { + + + okhttp3.Call localVarCall = getAPIResourcesCall(_callback); + return localVarCall; + + } + + /** + * + * get available resources + * @return V1APIResourceList + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public V1APIResourceList getAPIResources() throws ApiException { + ApiResponse localVarResp = getAPIResourcesWithHttpInfo(); + return localVarResp.getData(); + } + + /** + * + * get available resources + * @return ApiResponse<V1APIResourceList> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public ApiResponse getAPIResourcesWithHttpInfo() throws ApiException { + okhttp3.Call localVarCall = getAPIResourcesValidateBeforeCall(null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * get available resources + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call getAPIResourcesAsync(final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = getAPIResourcesValidateBeforeCall(_callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for listStorageVersionMigration + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param allowWatchBookmarks 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. (optional) + * @param _continue 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) + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call listStorageVersionMigrationCall(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/apis/storagemigration.k8s.io/v1alpha1/storageversionmigrations"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + + if (allowWatchBookmarks != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("allowWatchBookmarks", allowWatchBookmarks)); + } + + if (_continue != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); + } + + if (fieldSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); + } + + if (labelSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); + } + + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + } + + if (resourceVersion != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); + } + + if (resourceVersionMatch != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersionMatch", resourceVersionMatch)); + } + + if (sendInitialEvents != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("sendInitialEvents", sendInitialEvents)); + } + + if (timeoutSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); + } + + if (watch != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + final String[] localVarAccepts = { + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch", "application/cbor-seq" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call listStorageVersionMigrationValidateBeforeCall(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + + + okhttp3.Call localVarCall = listStorageVersionMigrationCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + return localVarCall; + + } + + /** + * + * list or watch objects of kind StorageVersionMigration + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param allowWatchBookmarks 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. (optional) + * @param _continue 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) + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + * @return V1alpha1StorageVersionMigrationList + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public V1alpha1StorageVersionMigrationList listStorageVersionMigration(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch) throws ApiException { + ApiResponse localVarResp = listStorageVersionMigrationWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + return localVarResp.getData(); + } + + /** + * + * list or watch objects of kind StorageVersionMigration + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param allowWatchBookmarks 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. (optional) + * @param _continue 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) + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + * @return ApiResponse<V1alpha1StorageVersionMigrationList> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public ApiResponse listStorageVersionMigrationWithHttpInfo(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch) throws ApiException { + okhttp3.Call localVarCall = listStorageVersionMigrationValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * list or watch objects of kind StorageVersionMigration + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param allowWatchBookmarks 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. (optional) + * @param _continue 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) + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call listStorageVersionMigrationAsync(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = listStorageVersionMigrationValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for patchStorageVersionMigration + * @param name name of the StorageVersionMigration (required) + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public okhttp3.Call patchStorageVersionMigrationCall(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + Object localVarPostBody = body; + + // create path and map variables + String localVarPath = "/apis/storagemigration.k8s.io/v1alpha1/storageversionmigrations/{name}" + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } + + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + + if (fieldValidation != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); + } + + if (force != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("force", force)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + final String[] localVarAccepts = { + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call patchStorageVersionMigrationValidateBeforeCall(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'name' is set + if (name == null) { + throw new ApiException("Missing the required parameter 'name' when calling patchStorageVersionMigration(Async)"); + } + + // verify the required parameter 'body' is set + if (body == null) { + throw new ApiException("Missing the required parameter 'body' when calling patchStorageVersionMigration(Async)"); + } + + + okhttp3.Call localVarCall = patchStorageVersionMigrationCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); + return localVarCall; + + } + + /** + * + * partially update the specified StorageVersionMigration + * @param name name of the StorageVersionMigration (required) + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) + * @return V1alpha1StorageVersionMigration + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public V1alpha1StorageVersionMigration patchStorageVersionMigration(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force) throws ApiException { + ApiResponse localVarResp = patchStorageVersionMigrationWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force); + return localVarResp.getData(); + } + + /** + * + * partially update the specified StorageVersionMigration + * @param name name of the StorageVersionMigration (required) + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) + * @return ApiResponse<V1alpha1StorageVersionMigration> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public ApiResponse patchStorageVersionMigrationWithHttpInfo(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force) throws ApiException { + okhttp3.Call localVarCall = patchStorageVersionMigrationValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * partially update the specified StorageVersionMigration + * @param name name of the StorageVersionMigration (required) + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public okhttp3.Call patchStorageVersionMigrationAsync(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = patchStorageVersionMigrationValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for patchStorageVersionMigrationStatus + * @param name name of the StorageVersionMigration (required) + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public okhttp3.Call patchStorageVersionMigrationStatusCall(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + Object localVarPostBody = body; + + // create path and map variables + String localVarPath = "/apis/storagemigration.k8s.io/v1alpha1/storageversionmigrations/{name}/status" + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } + + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + + if (fieldValidation != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); + } + + if (force != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("force", force)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + final String[] localVarAccepts = { + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call patchStorageVersionMigrationStatusValidateBeforeCall(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'name' is set + if (name == null) { + throw new ApiException("Missing the required parameter 'name' when calling patchStorageVersionMigrationStatus(Async)"); + } + + // verify the required parameter 'body' is set + if (body == null) { + throw new ApiException("Missing the required parameter 'body' when calling patchStorageVersionMigrationStatus(Async)"); + } + + + okhttp3.Call localVarCall = patchStorageVersionMigrationStatusCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); + return localVarCall; + + } + + /** + * + * partially update status of the specified StorageVersionMigration + * @param name name of the StorageVersionMigration (required) + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) + * @return V1alpha1StorageVersionMigration + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public V1alpha1StorageVersionMigration patchStorageVersionMigrationStatus(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force) throws ApiException { + ApiResponse localVarResp = patchStorageVersionMigrationStatusWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force); + return localVarResp.getData(); + } + + /** + * + * partially update status of the specified StorageVersionMigration + * @param name name of the StorageVersionMigration (required) + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) + * @return ApiResponse<V1alpha1StorageVersionMigration> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public ApiResponse patchStorageVersionMigrationStatusWithHttpInfo(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force) throws ApiException { + okhttp3.Call localVarCall = patchStorageVersionMigrationStatusValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * partially update status of the specified StorageVersionMigration + * @param name name of the StorageVersionMigration (required) + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public okhttp3.Call patchStorageVersionMigrationStatusAsync(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = patchStorageVersionMigrationStatusValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for readStorageVersionMigration + * @param name name of the StorageVersionMigration (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call readStorageVersionMigrationCall(String name, String pretty, final ApiCallback _callback) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/apis/storagemigration.k8s.io/v1alpha1/storageversionmigrations/{name}" + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + final String[] localVarAccepts = { + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call readStorageVersionMigrationValidateBeforeCall(String name, String pretty, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'name' is set + if (name == null) { + throw new ApiException("Missing the required parameter 'name' when calling readStorageVersionMigration(Async)"); + } + + + okhttp3.Call localVarCall = readStorageVersionMigrationCall(name, pretty, _callback); + return localVarCall; + + } + + /** + * + * read the specified StorageVersionMigration + * @param name name of the StorageVersionMigration (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @return V1alpha1StorageVersionMigration + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public V1alpha1StorageVersionMigration readStorageVersionMigration(String name, String pretty) throws ApiException { + ApiResponse localVarResp = readStorageVersionMigrationWithHttpInfo(name, pretty); + return localVarResp.getData(); + } + + /** + * + * read the specified StorageVersionMigration + * @param name name of the StorageVersionMigration (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @return ApiResponse<V1alpha1StorageVersionMigration> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public ApiResponse readStorageVersionMigrationWithHttpInfo(String name, String pretty) throws ApiException { + okhttp3.Call localVarCall = readStorageVersionMigrationValidateBeforeCall(name, pretty, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * read the specified StorageVersionMigration + * @param name name of the StorageVersionMigration (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call readStorageVersionMigrationAsync(String name, String pretty, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = readStorageVersionMigrationValidateBeforeCall(name, pretty, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for readStorageVersionMigrationStatus + * @param name name of the StorageVersionMigration (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call readStorageVersionMigrationStatusCall(String name, String pretty, final ApiCallback _callback) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/apis/storagemigration.k8s.io/v1alpha1/storageversionmigrations/{name}/status" + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + final String[] localVarAccepts = { + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call readStorageVersionMigrationStatusValidateBeforeCall(String name, String pretty, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'name' is set + if (name == null) { + throw new ApiException("Missing the required parameter 'name' when calling readStorageVersionMigrationStatus(Async)"); + } + + + okhttp3.Call localVarCall = readStorageVersionMigrationStatusCall(name, pretty, _callback); + return localVarCall; + + } + + /** + * + * read status of the specified StorageVersionMigration + * @param name name of the StorageVersionMigration (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @return V1alpha1StorageVersionMigration + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public V1alpha1StorageVersionMigration readStorageVersionMigrationStatus(String name, String pretty) throws ApiException { + ApiResponse localVarResp = readStorageVersionMigrationStatusWithHttpInfo(name, pretty); + return localVarResp.getData(); + } + + /** + * + * read status of the specified StorageVersionMigration + * @param name name of the StorageVersionMigration (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @return ApiResponse<V1alpha1StorageVersionMigration> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public ApiResponse readStorageVersionMigrationStatusWithHttpInfo(String name, String pretty) throws ApiException { + okhttp3.Call localVarCall = readStorageVersionMigrationStatusValidateBeforeCall(name, pretty, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * read status of the specified StorageVersionMigration + * @param name name of the StorageVersionMigration (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call readStorageVersionMigrationStatusAsync(String name, String pretty, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = readStorageVersionMigrationStatusValidateBeforeCall(name, pretty, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for replaceStorageVersionMigration + * @param name name of the StorageVersionMigration (required) + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public okhttp3.Call replaceStorageVersionMigrationCall(String name, V1alpha1StorageVersionMigration body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + Object localVarPostBody = body; + + // create path and map variables + String localVarPath = "/apis/storagemigration.k8s.io/v1alpha1/storageversionmigrations/{name}" + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } + + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + + if (fieldValidation != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + final String[] localVarAccepts = { + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call replaceStorageVersionMigrationValidateBeforeCall(String name, V1alpha1StorageVersionMigration body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'name' is set + if (name == null) { + throw new ApiException("Missing the required parameter 'name' when calling replaceStorageVersionMigration(Async)"); + } + + // verify the required parameter 'body' is set + if (body == null) { + throw new ApiException("Missing the required parameter 'body' when calling replaceStorageVersionMigration(Async)"); + } + + + okhttp3.Call localVarCall = replaceStorageVersionMigrationCall(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); + return localVarCall; + + } + + /** + * + * replace the specified StorageVersionMigration + * @param name name of the StorageVersionMigration (required) + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @return V1alpha1StorageVersionMigration + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public V1alpha1StorageVersionMigration replaceStorageVersionMigration(String name, V1alpha1StorageVersionMigration body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { + ApiResponse localVarResp = replaceStorageVersionMigrationWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation); + return localVarResp.getData(); + } + + /** + * + * replace the specified StorageVersionMigration + * @param name name of the StorageVersionMigration (required) + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @return ApiResponse<V1alpha1StorageVersionMigration> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public ApiResponse replaceStorageVersionMigrationWithHttpInfo(String name, V1alpha1StorageVersionMigration body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { + okhttp3.Call localVarCall = replaceStorageVersionMigrationValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * replace the specified StorageVersionMigration + * @param name name of the StorageVersionMigration (required) + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public okhttp3.Call replaceStorageVersionMigrationAsync(String name, V1alpha1StorageVersionMigration body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = replaceStorageVersionMigrationValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for replaceStorageVersionMigrationStatus + * @param name name of the StorageVersionMigration (required) + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public okhttp3.Call replaceStorageVersionMigrationStatusCall(String name, V1alpha1StorageVersionMigration body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + Object localVarPostBody = body; + + // create path and map variables + String localVarPath = "/apis/storagemigration.k8s.io/v1alpha1/storageversionmigrations/{name}/status" + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } + + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + + if (fieldValidation != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + final String[] localVarAccepts = { + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call replaceStorageVersionMigrationStatusValidateBeforeCall(String name, V1alpha1StorageVersionMigration body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'name' is set + if (name == null) { + throw new ApiException("Missing the required parameter 'name' when calling replaceStorageVersionMigrationStatus(Async)"); + } + + // verify the required parameter 'body' is set + if (body == null) { + throw new ApiException("Missing the required parameter 'body' when calling replaceStorageVersionMigrationStatus(Async)"); + } + + + okhttp3.Call localVarCall = replaceStorageVersionMigrationStatusCall(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); + return localVarCall; + + } + + /** + * + * replace status of the specified StorageVersionMigration + * @param name name of the StorageVersionMigration (required) + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @return V1alpha1StorageVersionMigration + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public V1alpha1StorageVersionMigration replaceStorageVersionMigrationStatus(String name, V1alpha1StorageVersionMigration body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { + ApiResponse localVarResp = replaceStorageVersionMigrationStatusWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation); + return localVarResp.getData(); + } + + /** + * + * replace status of the specified StorageVersionMigration + * @param name name of the StorageVersionMigration (required) + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @return ApiResponse<V1alpha1StorageVersionMigration> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public ApiResponse replaceStorageVersionMigrationStatusWithHttpInfo(String name, V1alpha1StorageVersionMigration body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { + okhttp3.Call localVarCall = replaceStorageVersionMigrationStatusValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * replace status of the specified StorageVersionMigration + * @param name name of the StorageVersionMigration (required) + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun 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) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public okhttp3.Call replaceStorageVersionMigrationStatusAsync(String name, V1alpha1StorageVersionMigration body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = replaceStorageVersionMigrationStatusValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } +} 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 c2d669bcb7..70a49886d3 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -105,7 +105,7 @@ private okhttp3.Call getCodeValidateBeforeCall(final ApiCallback _callback) thro /** * - * get the code version + * get the version information for this server * @return VersionInfo * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -122,7 +122,7 @@ public VersionInfo getCode() throws ApiException { /** * - * get the code version + * get the version information for this server * @return ApiResponse<VersionInfo> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -140,7 +140,7 @@ public ApiResponse getCodeWithHttpInfo() throws ApiException { /** * (asynchronously) - * get the code version + * get the version information for this server * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object 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 8c478f526b..e6f4f6eed2 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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 8486355235..717218b345 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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 @@ import java.util.Map; import java.util.List; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") public class ApiKeyAuth implements Authentication { private final String location; private final String paramName; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/auth/Authentication.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/auth/Authentication.java index 4081493466..ae4f07ae97 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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 6245494e60..c456477538 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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 79a3f6ae77..5671bf0203 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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 @@ import java.util.Map; import java.util.List; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") public class HttpBearerAuth implements Authentication { private final String scheme; private String bearerToken; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/AdmissionregistrationV1ServiceReference.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/AdmissionregistrationV1ServiceReference.java index fc7fea0ab1..8cefd2898a 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -27,7 +27,7 @@ * ServiceReference holds a reference to Service.legacy.k8s.io */ @ApiModel(description = "ServiceReference holds a reference to Service.legacy.k8s.io") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") public class AdmissionregistrationV1ServiceReference { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/AdmissionregistrationV1WebhookClientConfig.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/AdmissionregistrationV1WebhookClientConfig.java index 5bdac79ff7..91ceb0b99d 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -28,7 +28,7 @@ * WebhookClientConfig contains the information to make a TLS connection with the webhook */ @ApiModel(description = "WebhookClientConfig contains the information to make a TLS connection with the webhook") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") public class AdmissionregistrationV1WebhookClientConfig { public static final String SERIALIZED_NAME_CA_BUNDLE = "caBundle"; @SerializedName(SERIALIZED_NAME_CA_BUNDLE) 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 ccf598cf5f..99c77c7593 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -27,7 +27,7 @@ * ServiceReference holds a reference to Service.legacy.k8s.io */ @ApiModel(description = "ServiceReference holds a reference to Service.legacy.k8s.io") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") public class ApiextensionsV1ServiceReference { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/ApiextensionsV1WebhookClientConfig.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/ApiextensionsV1WebhookClientConfig.java index 40b736b1e7..b25d692845 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -28,7 +28,7 @@ * WebhookClientConfig contains the information to make a TLS connection with the webhook. */ @ApiModel(description = "WebhookClientConfig contains the information to make a TLS connection with the webhook.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") public class ApiextensionsV1WebhookClientConfig { public static final String SERIALIZED_NAME_CA_BUNDLE = "caBundle"; @SerializedName(SERIALIZED_NAME_CA_BUNDLE) 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 c8ba6cde84..539cf36241 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -27,7 +27,7 @@ * ServiceReference holds a reference to Service.legacy.k8s.io */ @ApiModel(description = "ServiceReference holds a reference to Service.legacy.k8s.io") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") public class ApiregistrationV1ServiceReference { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) 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 aba30eb3af..821068048f 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -30,7 +30,7 @@ * TokenRequest requests a token for a given service account. */ @ApiModel(description = "TokenRequest requests a token for a given service account.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") public class AuthenticationV1TokenRequest implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) 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 a90445f3e6..a4502cf5ed 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,10 +24,10 @@ import java.io.IOException; /** - * EndpointPort is a tuple that describes a single port. + * EndpointPort is a tuple that describes a single port. Deprecated: This API is deprecated in v1.33+. */ -@ApiModel(description = "EndpointPort is a tuple that describes a single port.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") +@ApiModel(description = "EndpointPort is a tuple that describes a single port. Deprecated: This API is deprecated in v1.33+.") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") public class CoreV1EndpointPort { public static final String SERIALIZED_NAME_APP_PROTOCOL = "appProtocol"; @SerializedName(SERIALIZED_NAME_APP_PROTOCOL) @@ -53,11 +53,11 @@ public CoreV1EndpointPort appProtocol(String appProtocol) { } /** - * 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 over cleartext as described in https://www.rfc-editor.org/rfc/rfc7540 * '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. + * 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. * @return appProtocol **/ @javax.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 over cleartext as described in https://www.rfc-editor.org/rfc/rfc7540 * '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.") + @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; 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 a33f420aae..b7f0b997a3 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -32,7 +32,7 @@ * 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. */ @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.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") public class CoreV1Event implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_ACTION = "action"; @SerializedName(SERIALIZED_NAME_ACTION) 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 8059372c40..7ac4118d16 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -31,7 +31,7 @@ * EventList is a list of events. */ @ApiModel(description = "EventList is a list of events.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") public class CoreV1EventList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) 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 de2b311df2..691d1bbeb9 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -28,7 +28,7 @@ * EventSeries contain information on series of events, i.e. thing that was/is happening continuously for some time. */ @ApiModel(description = "EventSeries contain information on series of events, i.e. thing that was/is happening continuously for some time.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") public class CoreV1EventSeries { public static final String SERIALIZED_NAME_COUNT = "count"; @SerializedName(SERIALIZED_NAME_COUNT) 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 f8b27d1fd7..e79a6d14f9 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -27,7 +27,7 @@ * EndpointPort represents a Port used by an EndpointSlice */ @ApiModel(description = "EndpointPort represents a Port used by an EndpointSlice") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") public class DiscoveryV1EndpointPort { public static final String SERIALIZED_NAME_APP_PROTOCOL = "appProtocol"; @SerializedName(SERIALIZED_NAME_APP_PROTOCOL) @@ -53,11 +53,11 @@ public DiscoveryV1EndpointPort appProtocol(String appProtocol) { } /** - * 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 over cleartext as described in https://www.rfc-editor.org/rfc/rfc7540 * '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. + * 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. * @return appProtocol **/ @javax.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 over cleartext as described in https://www.rfc-editor.org/rfc/rfc7540 * '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.") + @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; @@ -76,11 +76,11 @@ public DiscoveryV1EndpointPort name(String name) { } /** - * name represents the name of this port. All ports in an EndpointSlice must have a unique name. If the EndpointSlice is dervied 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. + * 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. * @return name **/ @javax.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 dervied 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.") + @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; @@ -99,11 +99,11 @@ public DiscoveryV1EndpointPort port(Integer port) { } /** - * 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. + * port represents the port number of the endpoint. If the EndpointSlice is derived from a Kubernetes service, this must be set to the service's target port. EndpointSlices used for other purposes may have a nil port. * @return port **/ @javax.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.") + @ApiModelProperty(value = "port represents the port number of the endpoint. If the EndpointSlice is derived from a Kubernetes service, this must be set to the service's target port. EndpointSlices used for other purposes may have a nil port.") public Integer getPort() { return port; 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 4424f9b545..d3bdaa2e44 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -32,7 +32,7 @@ * 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. */ @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.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") public class EventsV1Event implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_ACTION = "action"; @SerializedName(SERIALIZED_NAME_ACTION) 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 008d8d9aa7..253b0457df 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -31,7 +31,7 @@ * EventList is a list of Event objects. */ @ApiModel(description = "EventList is a list of Event objects.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") public class EventsV1EventList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) 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 d0c0c8f5d0..79699710e4 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -28,7 +28,7 @@ * 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. */ @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.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") public class EventsV1EventSeries { public static final String SERIALIZED_NAME_COUNT = "count"; @SerializedName(SERIALIZED_NAME_COUNT) 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 new file mode 100644 index 0000000000..db1c2b5b95 --- /dev/null +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/FlowcontrolV1Subject.java @@ -0,0 +1,187 @@ +/* +Copyright 2025 The Kubernetes Authors. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at +http://www.apache.org/licenses/LICENSE-2.0 +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ +package io.kubernetes.client.openapi.models; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +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; + +/** + * 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. + */ +@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.") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +public class FlowcontrolV1Subject { + public static final String SERIALIZED_NAME_GROUP = "group"; + @SerializedName(SERIALIZED_NAME_GROUP) + private V1GroupSubject group; + + public static final String SERIALIZED_NAME_KIND = "kind"; + @SerializedName(SERIALIZED_NAME_KIND) + private String kind; + + public static final String SERIALIZED_NAME_SERVICE_ACCOUNT = "serviceAccount"; + @SerializedName(SERIALIZED_NAME_SERVICE_ACCOUNT) + private V1ServiceAccountSubject serviceAccount; + + public static final String SERIALIZED_NAME_USER = "user"; + @SerializedName(SERIALIZED_NAME_USER) + private V1UserSubject user; + + + public FlowcontrolV1Subject group(V1GroupSubject group) { + + this.group = group; + return this; + } + + /** + * Get group + * @return group + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public V1GroupSubject getGroup() { + return group; + } + + + public void setGroup(V1GroupSubject group) { + this.group = group; + } + + + public FlowcontrolV1Subject kind(String kind) { + + this.kind = kind; + return this; + } + + /** + * `kind` indicates which one of the other fields is non-empty. Required + * @return kind + **/ + @ApiModelProperty(required = true, value = "`kind` indicates which one of the other fields is non-empty. Required") + + public String getKind() { + return kind; + } + + + public void setKind(String kind) { + this.kind = kind; + } + + + public FlowcontrolV1Subject serviceAccount(V1ServiceAccountSubject serviceAccount) { + + this.serviceAccount = serviceAccount; + return this; + } + + /** + * Get serviceAccount + * @return serviceAccount + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public V1ServiceAccountSubject getServiceAccount() { + return serviceAccount; + } + + + public void setServiceAccount(V1ServiceAccountSubject serviceAccount) { + this.serviceAccount = serviceAccount; + } + + + public FlowcontrolV1Subject user(V1UserSubject user) { + + this.user = user; + return this; + } + + /** + * Get user + * @return user + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public V1UserSubject getUser() { + return user; + } + + + public void setUser(V1UserSubject user) { + this.user = user; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + FlowcontrolV1Subject flowcontrolV1Subject = (FlowcontrolV1Subject) o; + return Objects.equals(this.group, flowcontrolV1Subject.group) && + Objects.equals(this.kind, flowcontrolV1Subject.kind) && + Objects.equals(this.serviceAccount, flowcontrolV1Subject.serviceAccount) && + Objects.equals(this.user, flowcontrolV1Subject.user); + } + + @Override + public int hashCode() { + return Objects.hash(group, kind, serviceAccount, user); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class FlowcontrolV1Subject {\n"); + sb.append(" group: ").append(toIndentedString(group)).append("\n"); + sb.append(" kind: ").append(toIndentedString(kind)).append("\n"); + sb.append(" serviceAccount: ").append(toIndentedString(serviceAccount)).append("\n"); + sb.append(" user: ").append(toIndentedString(user)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} 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 new file mode 100644 index 0000000000..279e8393be --- /dev/null +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/RbacV1Subject.java @@ -0,0 +1,183 @@ +/* +Copyright 2025 The Kubernetes Authors. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at +http://www.apache.org/licenses/LICENSE-2.0 +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ +package io.kubernetes.client.openapi.models; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +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; + +/** + * 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. + */ +@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.") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +public class RbacV1Subject { + public static final String SERIALIZED_NAME_API_GROUP = "apiGroup"; + @SerializedName(SERIALIZED_NAME_API_GROUP) + private String apiGroup; + + public static final String SERIALIZED_NAME_KIND = "kind"; + @SerializedName(SERIALIZED_NAME_KIND) + private String kind; + + public static final String SERIALIZED_NAME_NAME = "name"; + @SerializedName(SERIALIZED_NAME_NAME) + private String name; + + public static final String SERIALIZED_NAME_NAMESPACE = "namespace"; + @SerializedName(SERIALIZED_NAME_NAMESPACE) + private String namespace; + + + public RbacV1Subject apiGroup(String apiGroup) { + + this.apiGroup = apiGroup; + return this; + } + + /** + * 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. + * @return apiGroup + **/ + @javax.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; + } + + + public void setApiGroup(String apiGroup) { + this.apiGroup = apiGroup; + } + + + public RbacV1Subject kind(String kind) { + + this.kind = kind; + return this; + } + + /** + * 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. + * @return kind + **/ + @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; + } + + + public void setKind(String kind) { + this.kind = kind; + } + + + public RbacV1Subject name(String name) { + + this.name = name; + return this; + } + + /** + * Name of the object being referenced. + * @return name + **/ + @ApiModelProperty(required = true, value = "Name of the object being referenced.") + + public String getName() { + return name; + } + + + public void setName(String name) { + this.name = name; + } + + + public RbacV1Subject namespace(String namespace) { + + this.namespace = namespace; + return this; + } + + /** + * 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. + * @return namespace + **/ + @javax.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; + } + + + public void setNamespace(String namespace) { + this.namespace = namespace; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + RbacV1Subject rbacV1Subject = (RbacV1Subject) o; + return Objects.equals(this.apiGroup, rbacV1Subject.apiGroup) && + Objects.equals(this.kind, rbacV1Subject.kind) && + Objects.equals(this.name, rbacV1Subject.name) && + Objects.equals(this.namespace, rbacV1Subject.namespace); + } + + @Override + public int hashCode() { + return Objects.hash(apiGroup, kind, name, namespace); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class RbacV1Subject {\n"); + sb.append(" apiGroup: ").append(toIndentedString(apiGroup)).append("\n"); + sb.append(" kind: ").append(toIndentedString(kind)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" namespace: ").append(toIndentedString(namespace)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} 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 c1a74c24a5..710f9cdcad 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -27,7 +27,7 @@ * TokenRequest contains parameters of a service account token. */ @ApiModel(description = "TokenRequest contains parameters of a service account token.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") public class StorageV1TokenRequest { public static final String SERIALIZED_NAME_AUDIENCE = "audience"; @SerializedName(SERIALIZED_NAME_AUDIENCE) 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 c43232d1d7..8db0df6dd3 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -31,7 +31,7 @@ * APIGroup contains the name, the supported versions, and the preferred version of a group. */ @ApiModel(description = "APIGroup contains the name, the supported versions, and the preferred version of a group.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") public class V1APIGroup { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) 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 ddf380bd1c..1d0076257b 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -30,7 +30,7 @@ * APIGroupList is a list of APIGroup, to allow clients to discover the API at /apis. */ @ApiModel(description = "APIGroupList is a list of APIGroup, to allow clients to discover the API at /apis.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") public class V1APIGroupList { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) 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 f696e1e689..60e390d4c8 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -29,7 +29,7 @@ * APIResource specifies the name of a resource and whether it is namespaced. */ @ApiModel(description = "APIResource specifies the name of a resource and whether it is namespaced.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") public class V1APIResource { public static final String SERIALIZED_NAME_CATEGORIES = "categories"; @SerializedName(SERIALIZED_NAME_CATEGORIES) 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 653971d4a0..1886c9278a 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -30,7 +30,7 @@ * 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. */ @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.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") public class V1APIResourceList { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) 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 bf192cefab..a44fd76161 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -30,7 +30,7 @@ * APIService represents a server for a particular GroupVersion. Name must be \"version.group\". */ @ApiModel(description = "APIService represents a server for a particular GroupVersion. Name must be \"version.group\".") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") public class V1APIService implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) 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 4615faf53c..f770bed276 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -28,7 +28,7 @@ * APIServiceCondition describes the state of an APIService at a particular point */ @ApiModel(description = "APIServiceCondition describes the state of an APIService at a particular point") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") public class V1APIServiceCondition { public static final String SERIALIZED_NAME_LAST_TRANSITION_TIME = "lastTransitionTime"; @SerializedName(SERIALIZED_NAME_LAST_TRANSITION_TIME) 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 3e83cb254c..f373e17adf 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -31,7 +31,7 @@ * APIServiceList is a list of APIService objects. */ @ApiModel(description = "APIServiceList is a list of APIService objects.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") public class V1APIServiceList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) 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 f2f03ebb76..0e5a5bbadd 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -28,7 +28,7 @@ * APIServiceSpec contains information for locating and communicating with a server. Only https is supported, though you are able to disable certificate verification. */ @ApiModel(description = "APIServiceSpec contains information for locating and communicating with a server. Only https is supported, though you are able to disable certificate verification.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") public class V1APIServiceSpec { public static final String SERIALIZED_NAME_CA_BUNDLE = "caBundle"; @SerializedName(SERIALIZED_NAME_CA_BUNDLE) @@ -112,10 +112,10 @@ public V1APIServiceSpec groupPriorityMinimum(Integer groupPriorityMinimum) { } /** - * GroupPriorityMininum 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 GroupPriorityMininum 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 + * 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 * @return groupPriorityMinimum **/ - @ApiModelProperty(required = true, value = "GroupPriorityMininum 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 GroupPriorityMininum 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") + @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; 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 41893aac58..7fcb45e184 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -30,7 +30,7 @@ * APIServiceStatus contains derived information about an API server */ @ApiModel(description = "APIServiceStatus contains derived information about an API server") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") public class V1APIServiceStatus { public static final String SERIALIZED_NAME_CONDITIONS = "conditions"; @SerializedName(SERIALIZED_NAME_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 ab009ed0f3..b41fb57b2e 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -30,7 +30,7 @@ * 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. */ @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.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") public class V1APIVersions { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) 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 74d2aab968..4be2179f1f 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -27,7 +27,7 @@ * Represents a Persistent Disk resource in AWS. An AWS EBS disk must exist before mounting to a container. The disk must also be in the same AWS zone as the kubelet. An AWS EBS disk can only be mounted as read/write once. AWS EBS volumes support ownership management and SELinux relabeling. */ @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.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") public class V1AWSElasticBlockStoreVolumeSource { public static final String SERIALIZED_NAME_FS_TYPE = "fsType"; @SerializedName(SERIALIZED_NAME_FS_TYPE) 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 ed846f0032..dd1551cbb3 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -30,7 +30,7 @@ * Affinity is a group of affinity scheduling rules. */ @ApiModel(description = "Affinity is a group of affinity scheduling rules.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") public class V1Affinity { public static final String SERIALIZED_NAME_NODE_AFFINITY = "nodeAffinity"; @SerializedName(SERIALIZED_NAME_NODE_AFFINITY) 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 e6a8d9090e..0cac4e7a98 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -30,7 +30,7 @@ * AggregationRule describes how to locate ClusterRoles to aggregate into the ClusterRole */ @ApiModel(description = "AggregationRule describes how to locate ClusterRoles to aggregate into the ClusterRole") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") public class V1AggregationRule { public static final String SERIALIZED_NAME_CLUSTER_ROLE_SELECTORS = "clusterRoleSelectors"; @SerializedName(SERIALIZED_NAME_CLUSTER_ROLE_SELECTORS) 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 new file mode 100644 index 0000000000..540cdaca2d --- /dev/null +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1AppArmorProfile.java @@ -0,0 +1,126 @@ +/* +Copyright 2025 The Kubernetes Authors. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at +http://www.apache.org/licenses/LICENSE-2.0 +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ +package io.kubernetes.client.openapi.models; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +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; + +/** + * AppArmorProfile defines a pod or container's AppArmor settings. + */ +@ApiModel(description = "AppArmorProfile defines a pod or container's AppArmor settings.") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +public class V1AppArmorProfile { + public static final String SERIALIZED_NAME_LOCALHOST_PROFILE = "localhostProfile"; + @SerializedName(SERIALIZED_NAME_LOCALHOST_PROFILE) + private String localhostProfile; + + public static final String SERIALIZED_NAME_TYPE = "type"; + @SerializedName(SERIALIZED_NAME_TYPE) + private String type; + + + public V1AppArmorProfile localhostProfile(String localhostProfile) { + + this.localhostProfile = localhostProfile; + return this; + } + + /** + * 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\". + * @return localhostProfile + **/ + @javax.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; + } + + + public void setLocalhostProfile(String localhostProfile) { + this.localhostProfile = localhostProfile; + } + + + public V1AppArmorProfile type(String type) { + + this.type = type; + return this; + } + + /** + * 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. + * @return type + **/ + @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; + } + + + public void setType(String type) { + this.type = type; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V1AppArmorProfile v1AppArmorProfile = (V1AppArmorProfile) o; + return Objects.equals(this.localhostProfile, v1AppArmorProfile.localhostProfile) && + Objects.equals(this.type, v1AppArmorProfile.type); + } + + @Override + public int hashCode() { + return Objects.hash(localhostProfile, type); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class V1AppArmorProfile {\n"); + sb.append(" localhostProfile: ").append(toIndentedString(localhostProfile)).append("\n"); + sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} 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 7130b0643f..eca399a668 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -27,7 +27,7 @@ * AttachedVolume describes a volume attached to a node */ @ApiModel(description = "AttachedVolume describes a volume attached to a node") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") public class V1AttachedVolume { public static final String SERIALIZED_NAME_DEVICE_PATH = "devicePath"; @SerializedName(SERIALIZED_NAME_DEVICE_PATH) 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 new file mode 100644 index 0000000000..7f3b2818e8 --- /dev/null +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1AuditAnnotation.java @@ -0,0 +1,125 @@ +/* +Copyright 2025 The Kubernetes Authors. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at +http://www.apache.org/licenses/LICENSE-2.0 +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ +package io.kubernetes.client.openapi.models; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +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; + +/** + * AuditAnnotation describes how to produce an audit annotation for an API request. + */ +@ApiModel(description = "AuditAnnotation describes how to produce an audit annotation for an API request.") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +public class V1AuditAnnotation { + public static final String SERIALIZED_NAME_KEY = "key"; + @SerializedName(SERIALIZED_NAME_KEY) + private String key; + + public static final String SERIALIZED_NAME_VALUE_EXPRESSION = "valueExpression"; + @SerializedName(SERIALIZED_NAME_VALUE_EXPRESSION) + private String valueExpression; + + + public V1AuditAnnotation key(String key) { + + this.key = key; + return this; + } + + /** + * 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. + * @return key + **/ + @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; + } + + + public void setKey(String key) { + this.key = key; + } + + + public V1AuditAnnotation valueExpression(String valueExpression) { + + this.valueExpression = valueExpression; + return this; + } + + /** + * 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. + * @return valueExpression + **/ + @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; + } + + + public void setValueExpression(String valueExpression) { + this.valueExpression = valueExpression; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V1AuditAnnotation v1AuditAnnotation = (V1AuditAnnotation) o; + return Objects.equals(this.key, v1AuditAnnotation.key) && + Objects.equals(this.valueExpression, v1AuditAnnotation.valueExpression); + } + + @Override + public int hashCode() { + return Objects.hash(key, valueExpression); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class V1AuditAnnotation {\n"); + sb.append(" key: ").append(toIndentedString(key)).append("\n"); + sb.append(" valueExpression: ").append(toIndentedString(valueExpression)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} 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 1780c3032b..e20a3ec041 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -27,7 +27,7 @@ * AzureDisk represents an Azure Data Disk mount on the host and bind mount to the pod. */ @ApiModel(description = "AzureDisk represents an Azure Data Disk mount on the host and bind mount to the pod.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") public class V1AzureDiskVolumeSource { public static final String SERIALIZED_NAME_CACHING_MODE = "cachingMode"; @SerializedName(SERIALIZED_NAME_CACHING_MODE) 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 6fee031cd3..46d042ea56 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -27,7 +27,7 @@ * AzureFile represents an Azure File Service mount on the host and bind mount to the pod. */ @ApiModel(description = "AzureFile represents an Azure File Service mount on the host and bind mount to the pod.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") public class V1AzureFilePersistentVolumeSource { public static final String SERIALIZED_NAME_READ_ONLY = "readOnly"; @SerializedName(SERIALIZED_NAME_READ_ONLY) 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 5999aa88cf..a340a2f6ee 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -27,7 +27,7 @@ * AzureFile represents an Azure File Service mount on the host and bind mount to the pod. */ @ApiModel(description = "AzureFile represents an Azure File Service mount on the host and bind mount to the pod.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") public class V1AzureFileVolumeSource { public static final String SERIALIZED_NAME_READ_ONLY = "readOnly"; @SerializedName(SERIALIZED_NAME_READ_ONLY) 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 07b3a7fcaf..678d1abb5d 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -26,10 +26,10 @@ import java.io.IOException; /** - * 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. + * Binding ties one object to another; for example, a pod is bound to a node by a scheduler. */ -@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.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") +@ApiModel(description = "Binding ties one object to another; for example, a pod is bound to a node by a scheduler.") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") public class V1Binding implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) 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 917259989d..60e6a27213 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -27,7 +27,7 @@ * BoundObjectReference is a reference to an object that a token is bound to. */ @ApiModel(description = "BoundObjectReference is a reference to an object that a token is bound to.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") public class V1BoundObjectReference { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) 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 0e8983a64f..998d19202c 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -29,7 +29,7 @@ * 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. */ @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.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") public class V1CSIDriver implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) 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 3f09cf1dc9..5595fb6eb9 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -31,7 +31,7 @@ * CSIDriverList is a collection of CSIDriver objects. */ @ApiModel(description = "CSIDriverList is a collection of CSIDriver objects.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") public class V1CSIDriverList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) 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 235919c122..3605e3d0db 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -30,7 +30,7 @@ * CSIDriverSpec is the specification of a CSIDriver. */ @ApiModel(description = "CSIDriverSpec is the specification of a CSIDriver.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") public class V1CSIDriverSpec { public static final String SERIALIZED_NAME_ATTACH_REQUIRED = "attachRequired"; @SerializedName(SERIALIZED_NAME_ATTACH_REQUIRED) @@ -40,6 +40,10 @@ public class V1CSIDriverSpec { @SerializedName(SERIALIZED_NAME_FS_GROUP_POLICY) private String fsGroupPolicy; + public static final String SERIALIZED_NAME_NODE_ALLOCATABLE_UPDATE_PERIOD_SECONDS = "nodeAllocatableUpdatePeriodSeconds"; + @SerializedName(SERIALIZED_NAME_NODE_ALLOCATABLE_UPDATE_PERIOD_SECONDS) + private Long nodeAllocatableUpdatePeriodSeconds; + public static final String SERIALIZED_NAME_POD_INFO_ON_MOUNT = "podInfoOnMount"; @SerializedName(SERIALIZED_NAME_POD_INFO_ON_MOUNT) private Boolean podInfoOnMount; @@ -95,11 +99,11 @@ public V1CSIDriverSpec fsGroupPolicy(String fsGroupPolicy) { } /** - * 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 is immutable. 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. + * 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. * @return fsGroupPolicy **/ @javax.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 is immutable. 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.") + @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; @@ -111,6 +115,29 @@ public void setFsGroupPolicy(String fsGroupPolicy) { } + public V1CSIDriverSpec nodeAllocatableUpdatePeriodSeconds(Long nodeAllocatableUpdatePeriodSeconds) { + + this.nodeAllocatableUpdatePeriodSeconds = nodeAllocatableUpdatePeriodSeconds; + return this; + } + + /** + * nodeAllocatableUpdatePeriodSeconds specifies the interval between periodic updates of the CSINode allocatable capacity for this driver. When set, both periodic updates and updates triggered by capacity-related failures are enabled. If not set, no updates occur (neither periodic nor upon detecting capacity-related failures), and the allocatable.count remains static. The minimum allowed value for this field is 10 seconds. This is an alpha feature and requires the MutableCSINodeAllocatableCount feature gate to be enabled. This field is mutable. + * @return nodeAllocatableUpdatePeriodSeconds + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "nodeAllocatableUpdatePeriodSeconds specifies the interval between periodic updates of the CSINode allocatable capacity for this driver. When set, both periodic updates and updates triggered by capacity-related failures are enabled. If not set, no updates occur (neither periodic nor upon detecting capacity-related failures), and the allocatable.count remains static. The minimum allowed value for this field is 10 seconds. This is an alpha feature and requires the MutableCSINodeAllocatableCount feature gate to be enabled. This field is mutable.") + + public Long getNodeAllocatableUpdatePeriodSeconds() { + return nodeAllocatableUpdatePeriodSeconds; + } + + + public void setNodeAllocatableUpdatePeriodSeconds(Long nodeAllocatableUpdatePeriodSeconds) { + this.nodeAllocatableUpdatePeriodSeconds = nodeAllocatableUpdatePeriodSeconds; + } + + public V1CSIDriverSpec podInfoOnMount(Boolean podInfoOnMount) { this.podInfoOnMount = podInfoOnMount; @@ -118,11 +145,11 @@ public V1CSIDriverSpec podInfoOnMount(Boolean podInfoOnMount) { } /** - * 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 VolumeConext 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 is immutable. + * 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. * @return podInfoOnMount **/ @javax.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 VolumeConext 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 is immutable.") + @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; @@ -276,6 +303,7 @@ public boolean equals(java.lang.Object o) { V1CSIDriverSpec v1CSIDriverSpec = (V1CSIDriverSpec) o; return Objects.equals(this.attachRequired, v1CSIDriverSpec.attachRequired) && Objects.equals(this.fsGroupPolicy, v1CSIDriverSpec.fsGroupPolicy) && + Objects.equals(this.nodeAllocatableUpdatePeriodSeconds, v1CSIDriverSpec.nodeAllocatableUpdatePeriodSeconds) && Objects.equals(this.podInfoOnMount, v1CSIDriverSpec.podInfoOnMount) && Objects.equals(this.requiresRepublish, v1CSIDriverSpec.requiresRepublish) && Objects.equals(this.seLinuxMount, v1CSIDriverSpec.seLinuxMount) && @@ -286,7 +314,7 @@ public boolean equals(java.lang.Object o) { @Override public int hashCode() { - return Objects.hash(attachRequired, fsGroupPolicy, podInfoOnMount, requiresRepublish, seLinuxMount, storageCapacity, tokenRequests, volumeLifecycleModes); + return Objects.hash(attachRequired, fsGroupPolicy, nodeAllocatableUpdatePeriodSeconds, podInfoOnMount, requiresRepublish, seLinuxMount, storageCapacity, tokenRequests, volumeLifecycleModes); } @@ -296,6 +324,7 @@ public String toString() { sb.append("class V1CSIDriverSpec {\n"); sb.append(" attachRequired: ").append(toIndentedString(attachRequired)).append("\n"); sb.append(" fsGroupPolicy: ").append(toIndentedString(fsGroupPolicy)).append("\n"); + sb.append(" nodeAllocatableUpdatePeriodSeconds: ").append(toIndentedString(nodeAllocatableUpdatePeriodSeconds)).append("\n"); sb.append(" podInfoOnMount: ").append(toIndentedString(podInfoOnMount)).append("\n"); sb.append(" requiresRepublish: ").append(toIndentedString(requiresRepublish)).append("\n"); sb.append(" seLinuxMount: ").append(toIndentedString(seLinuxMount)).append("\n"); 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 29109284d9..c1277cda79 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -29,7 +29,7 @@ * 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. */ @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.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") public class V1CSINode implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) 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 ef43d000b5..4001bb0477 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -30,7 +30,7 @@ * CSINodeDriver holds information about the specification of one CSI driver installed on a node */ @ApiModel(description = "CSINodeDriver holds information about the specification of one CSI driver installed on a node") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") public class V1CSINodeDriver { public static final String SERIALIZED_NAME_ALLOCATABLE = "allocatable"; @SerializedName(SERIALIZED_NAME_ALLOCATABLE) 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 55b59ea8b8..36997b3773 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -31,7 +31,7 @@ * CSINodeList is a collection of CSINode objects. */ @ApiModel(description = "CSINodeList is a collection of CSINode objects.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") public class V1CSINodeList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) 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 31704bbc27..485d401236 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -30,7 +30,7 @@ * CSINodeSpec holds information about the specification of all CSI drivers installed on a node */ @ApiModel(description = "CSINodeSpec holds information about the specification of all CSI drivers installed on a node") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") public class V1CSINodeSpec { public static final String SERIALIZED_NAME_DRIVERS = "drivers"; @SerializedName(SERIALIZED_NAME_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 8e57e5031d..2321c4ca8f 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,10 +28,10 @@ import java.util.Map; /** - * Represents storage that is managed by an external CSI volume driver (Beta feature) + * Represents storage that is managed by an external CSI volume driver */ -@ApiModel(description = "Represents storage that is managed by an external CSI volume driver (Beta feature)") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") +@ApiModel(description = "Represents storage that is managed by an external CSI volume driver") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") public class V1CSIPersistentVolumeSource { public static final String SERIALIZED_NAME_CONTROLLER_EXPAND_SECRET_REF = "controllerExpandSecretRef"; @SerializedName(SERIALIZED_NAME_CONTROLLER_EXPAND_SECRET_REF) 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 bbe02c992e..af1f1394f4 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -30,7 +30,7 @@ * 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. */ @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.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") public class V1CSIStorageCapacity implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) 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 955757c4f4..f3364ee255 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -31,7 +31,7 @@ * CSIStorageCapacityList is a collection of CSIStorageCapacity objects. */ @ApiModel(description = "CSIStorageCapacityList is a collection of CSIStorageCapacity objects.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") public class V1CSIStorageCapacityList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) 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 da205e73dd..1b91c24c78 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -31,7 +31,7 @@ * Represents a source location of a volume to mount, managed by an external CSI driver */ @ApiModel(description = "Represents a source location of a volume to mount, managed by an external CSI driver") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") public class V1CSIVolumeSource { public static final String SERIALIZED_NAME_DRIVER = "driver"; @SerializedName(SERIALIZED_NAME_DRIVER) 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 75b71f8575..19ecda8b11 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -29,7 +29,7 @@ * Adds and removes POSIX capabilities from running containers. */ @ApiModel(description = "Adds and removes POSIX capabilities from running containers.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") public class V1Capabilities { public static final String SERIALIZED_NAME_ADD = "add"; @SerializedName(SERIALIZED_NAME_ADD) 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 a9252663d7..c8b4f2dc29 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -30,7 +30,7 @@ * Represents a Ceph Filesystem mount that lasts the lifetime of a pod Cephfs volumes do not support ownership management or SELinux relabeling. */ @ApiModel(description = "Represents a Ceph Filesystem mount that lasts the lifetime of a pod Cephfs volumes do not support ownership management or SELinux relabeling.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") public class V1CephFSPersistentVolumeSource { public static final String SERIALIZED_NAME_MONITORS = "monitors"; @SerializedName(SERIALIZED_NAME_MONITORS) 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 a3b880e7a9..d150771f7b 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -30,7 +30,7 @@ * Represents a Ceph Filesystem mount that lasts the lifetime of a pod Cephfs volumes do not support ownership management or SELinux relabeling. */ @ApiModel(description = "Represents a Ceph Filesystem mount that lasts the lifetime of a pod Cephfs volumes do not support ownership management or SELinux relabeling.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") public class V1CephFSVolumeSource { public static final String SERIALIZED_NAME_MONITORS = "monitors"; @SerializedName(SERIALIZED_NAME_MONITORS) 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 349ce3fefc..fcb1c4025e 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -30,7 +30,7 @@ * 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. */ @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.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") public class V1CertificateSigningRequest implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) 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 34eaeba92e..3e34282dd5 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -28,7 +28,7 @@ * CertificateSigningRequestCondition describes a condition of a CertificateSigningRequest object */ @ApiModel(description = "CertificateSigningRequestCondition describes a condition of a CertificateSigningRequest object") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") public class V1CertificateSigningRequestCondition { public static final String SERIALIZED_NAME_LAST_TRANSITION_TIME = "lastTransitionTime"; @SerializedName(SERIALIZED_NAME_LAST_TRANSITION_TIME) 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 b3c393b490..a8747bcae6 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -31,7 +31,7 @@ * CertificateSigningRequestList is a collection of CertificateSigningRequest objects */ @ApiModel(description = "CertificateSigningRequestList is a collection of CertificateSigningRequest objects") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") public class V1CertificateSigningRequestList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) 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 95032a4dde..50c948335c 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -31,7 +31,7 @@ * CertificateSigningRequestSpec contains the certificate request. */ @ApiModel(description = "CertificateSigningRequestSpec contains the certificate request.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") public class V1CertificateSigningRequestSpec { public static final String SERIALIZED_NAME_EXPIRATION_SECONDS = "expirationSeconds"; @SerializedName(SERIALIZED_NAME_EXPIRATION_SECONDS) 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 30c9036963..c3e90c56e9 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -30,7 +30,7 @@ * CertificateSigningRequestStatus contains conditions used to indicate approved/denied/failed status of the request, and the issued certificate. */ @ApiModel(description = "CertificateSigningRequestStatus contains conditions used to indicate approved/denied/failed status of the request, and the issued certificate.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") public class V1CertificateSigningRequestStatus { public static final String SERIALIZED_NAME_CERTIFICATE = "certificate"; @SerializedName(SERIALIZED_NAME_CERTIFICATE) 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 e41a91bc2c..eb991a2150 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -28,7 +28,7 @@ * Represents a 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. */ @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.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") public class V1CinderPersistentVolumeSource { public static final String SERIALIZED_NAME_FS_TYPE = "fsType"; @SerializedName(SERIALIZED_NAME_FS_TYPE) 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 be825ce93d..b5f63e1573 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -28,7 +28,7 @@ * Represents a 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. */ @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.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") public class V1CinderVolumeSource { public static final String SERIALIZED_NAME_FS_TYPE = "fsType"; @SerializedName(SERIALIZED_NAME_FS_TYPE) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ClaimSource.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ClaimSource.java deleted file mode 100644 index 9c5b50c5fc..0000000000 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ClaimSource.java +++ /dev/null @@ -1,127 +0,0 @@ -/* -Copyright 2023 The Kubernetes Authors. -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at -http://www.apache.org/licenses/LICENSE-2.0 -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ -package io.kubernetes.client.openapi.models; - -import java.util.Objects; -import java.util.Arrays; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -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; - -/** - * ClaimSource describes a reference to a ResourceClaim. Exactly one of these fields should be set. Consumers of this type must treat an empty object as if it has an unknown value. - */ -@ApiModel(description = "ClaimSource describes a reference to a ResourceClaim. Exactly one of these fields should be set. Consumers of this type must treat an empty object as if it has an unknown value.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") -public class V1ClaimSource { - public static final String SERIALIZED_NAME_RESOURCE_CLAIM_NAME = "resourceClaimName"; - @SerializedName(SERIALIZED_NAME_RESOURCE_CLAIM_NAME) - private String resourceClaimName; - - public static final String SERIALIZED_NAME_RESOURCE_CLAIM_TEMPLATE_NAME = "resourceClaimTemplateName"; - @SerializedName(SERIALIZED_NAME_RESOURCE_CLAIM_TEMPLATE_NAME) - private String resourceClaimTemplateName; - - - public V1ClaimSource resourceClaimName(String resourceClaimName) { - - this.resourceClaimName = resourceClaimName; - return this; - } - - /** - * ResourceClaimName is the name of a ResourceClaim object in the same namespace as this pod. - * @return resourceClaimName - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "ResourceClaimName is the name of a ResourceClaim object in the same namespace as this pod.") - - public String getResourceClaimName() { - return resourceClaimName; - } - - - public void setResourceClaimName(String resourceClaimName) { - this.resourceClaimName = resourceClaimName; - } - - - public V1ClaimSource resourceClaimTemplateName(String resourceClaimTemplateName) { - - this.resourceClaimTemplateName = resourceClaimTemplateName; - return this; - } - - /** - * 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. - * @return resourceClaimTemplateName - **/ - @javax.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.") - - public String getResourceClaimTemplateName() { - return resourceClaimTemplateName; - } - - - public void setResourceClaimTemplateName(String resourceClaimTemplateName) { - this.resourceClaimTemplateName = resourceClaimTemplateName; - } - - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1ClaimSource v1ClaimSource = (V1ClaimSource) o; - return Objects.equals(this.resourceClaimName, v1ClaimSource.resourceClaimName) && - Objects.equals(this.resourceClaimTemplateName, v1ClaimSource.resourceClaimTemplateName); - } - - @Override - public int hashCode() { - return Objects.hash(resourceClaimName, resourceClaimTemplateName); - } - - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class V1ClaimSource {\n"); - sb.append(" resourceClaimName: ").append(toIndentedString(resourceClaimName)).append("\n"); - sb.append(" resourceClaimTemplateName: ").append(toIndentedString(resourceClaimTemplateName)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(java.lang.Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - -} 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 4a78bc42b0..77e6e15f7d 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -27,7 +27,7 @@ * ClientIPConfig represents the configurations of Client IP based session affinity. */ @ApiModel(description = "ClientIPConfig represents the configurations of Client IP based session affinity.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") public class V1ClientIPConfig { public static final String SERIALIZED_NAME_TIMEOUT_SECONDS = "timeoutSeconds"; @SerializedName(SERIALIZED_NAME_TIMEOUT_SECONDS) 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 d838732e2c..48b86c29b4 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -32,7 +32,7 @@ * ClusterRole is a cluster level, logical grouping of PolicyRules that can be referenced as a unit by a RoleBinding or ClusterRoleBinding. */ @ApiModel(description = "ClusterRole is a cluster level, logical grouping of PolicyRules that can be referenced as a unit by a RoleBinding or ClusterRoleBinding.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") public class V1ClusterRole implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_AGGREGATION_RULE = "aggregationRule"; @SerializedName(SERIALIZED_NAME_AGGREGATION_RULE) 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 df51b731c4..17661fa419 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,9 +19,9 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.openapi.models.RbacV1Subject; import io.kubernetes.client.openapi.models.V1ObjectMeta; import io.kubernetes.client.openapi.models.V1RoleRef; -import io.kubernetes.client.openapi.models.V1Subject; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.io.IOException; @@ -32,7 +32,7 @@ * ClusterRoleBinding references a ClusterRole, but not contain it. It can reference a ClusterRole in the global namespace, and adds who information via Subject. */ @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.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") public class V1ClusterRoleBinding implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) @@ -52,7 +52,7 @@ public class V1ClusterRoleBinding implements io.kubernetes.client.common.Kuberne public static final String SERIALIZED_NAME_SUBJECTS = "subjects"; @SerializedName(SERIALIZED_NAME_SUBJECTS) - private List subjects = null; + private List subjects = null; public V1ClusterRoleBinding apiVersion(String apiVersion) { @@ -146,13 +146,13 @@ public void setRoleRef(V1RoleRef roleRef) { } - public V1ClusterRoleBinding subjects(List subjects) { + public V1ClusterRoleBinding subjects(List subjects) { this.subjects = subjects; return this; } - public V1ClusterRoleBinding addSubjectsItem(V1Subject subjectsItem) { + public V1ClusterRoleBinding addSubjectsItem(RbacV1Subject subjectsItem) { if (this.subjects == null) { this.subjects = new ArrayList<>(); } @@ -167,12 +167,12 @@ public V1ClusterRoleBinding addSubjectsItem(V1Subject subjectsItem) { @javax.annotation.Nullable @ApiModelProperty(value = "Subjects holds references to the objects the role applies to.") - public List getSubjects() { + public List getSubjects() { return subjects; } - public void setSubjects(List subjects) { + public void setSubjects(List subjects) { this.subjects = 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 c09a50b5b1..02b11d3bde 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -31,7 +31,7 @@ * ClusterRoleBindingList is a collection of ClusterRoleBindings */ @ApiModel(description = "ClusterRoleBindingList is a collection of ClusterRoleBindings") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") public class V1ClusterRoleBindingList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) 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 ebba85c580..d2fd11bffd 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -31,7 +31,7 @@ * ClusterRoleList is a collection of ClusterRoles */ @ApiModel(description = "ClusterRoleList is a collection of ClusterRoles") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") public class V1ClusterRoleList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) 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 new file mode 100644 index 0000000000..5cc1782e12 --- /dev/null +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ClusterTrustBundleProjection.java @@ -0,0 +1,214 @@ +/* +Copyright 2025 The Kubernetes Authors. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at +http://www.apache.org/licenses/LICENSE-2.0 +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ +package io.kubernetes.client.openapi.models; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +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; + +/** + * ClusterTrustBundleProjection describes how to select a set of ClusterTrustBundle objects and project their contents into the pod filesystem. + */ +@ApiModel(description = "ClusterTrustBundleProjection describes how to select a set of ClusterTrustBundle objects and project their contents into the pod filesystem.") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +public class V1ClusterTrustBundleProjection { + public static final String SERIALIZED_NAME_LABEL_SELECTOR = "labelSelector"; + @SerializedName(SERIALIZED_NAME_LABEL_SELECTOR) + private V1LabelSelector labelSelector; + + public static final String SERIALIZED_NAME_NAME = "name"; + @SerializedName(SERIALIZED_NAME_NAME) + private String name; + + public static final String SERIALIZED_NAME_OPTIONAL = "optional"; + @SerializedName(SERIALIZED_NAME_OPTIONAL) + private Boolean optional; + + public static final String SERIALIZED_NAME_PATH = "path"; + @SerializedName(SERIALIZED_NAME_PATH) + private String path; + + public static final String SERIALIZED_NAME_SIGNER_NAME = "signerName"; + @SerializedName(SERIALIZED_NAME_SIGNER_NAME) + private String signerName; + + + public V1ClusterTrustBundleProjection labelSelector(V1LabelSelector labelSelector) { + + this.labelSelector = labelSelector; + return this; + } + + /** + * Get labelSelector + * @return labelSelector + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public V1LabelSelector getLabelSelector() { + return labelSelector; + } + + + public void setLabelSelector(V1LabelSelector labelSelector) { + this.labelSelector = labelSelector; + } + + + public V1ClusterTrustBundleProjection name(String name) { + + this.name = name; + return this; + } + + /** + * Select a single ClusterTrustBundle by object name. Mutually-exclusive with signerName and labelSelector. + * @return name + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "Select a single ClusterTrustBundle by object name. Mutually-exclusive with signerName and labelSelector.") + + public String getName() { + return name; + } + + + public void setName(String name) { + this.name = name; + } + + + public V1ClusterTrustBundleProjection optional(Boolean optional) { + + this.optional = optional; + return this; + } + + /** + * 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. + * @return optional + **/ + @javax.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; + } + + + public void setOptional(Boolean optional) { + this.optional = optional; + } + + + public V1ClusterTrustBundleProjection path(String path) { + + this.path = path; + return this; + } + + /** + * Relative path from the volume root to write the bundle. + * @return path + **/ + @ApiModelProperty(required = true, value = "Relative path from the volume root to write the bundle.") + + public String getPath() { + return path; + } + + + public void setPath(String path) { + this.path = path; + } + + + public V1ClusterTrustBundleProjection signerName(String signerName) { + + this.signerName = signerName; + return this; + } + + /** + * Select all ClusterTrustBundles that match this signer name. Mutually-exclusive with name. The contents of all selected ClusterTrustBundles will be unified and deduplicated. + * @return signerName + **/ + @javax.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; + } + + + public void setSignerName(String signerName) { + this.signerName = signerName; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V1ClusterTrustBundleProjection v1ClusterTrustBundleProjection = (V1ClusterTrustBundleProjection) o; + return Objects.equals(this.labelSelector, v1ClusterTrustBundleProjection.labelSelector) && + Objects.equals(this.name, v1ClusterTrustBundleProjection.name) && + Objects.equals(this.optional, v1ClusterTrustBundleProjection.optional) && + Objects.equals(this.path, v1ClusterTrustBundleProjection.path) && + Objects.equals(this.signerName, v1ClusterTrustBundleProjection.signerName); + } + + @Override + public int hashCode() { + return Objects.hash(labelSelector, name, optional, path, signerName); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class V1ClusterTrustBundleProjection {\n"); + sb.append(" labelSelector: ").append(toIndentedString(labelSelector)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" optional: ").append(toIndentedString(optional)).append("\n"); + sb.append(" path: ").append(toIndentedString(path)).append("\n"); + sb.append(" signerName: ").append(toIndentedString(signerName)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} 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 989e95419a..c09d24cd4f 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -27,7 +27,7 @@ * Information about the condition of a component. */ @ApiModel(description = "Information about the condition of a component.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") public class V1ComponentCondition { public static final String SERIALIZED_NAME_ERROR = "error"; @SerializedName(SERIALIZED_NAME_ERROR) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ComponentStatus.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ComponentStatus.java index 5287862af4..6651a492fc 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -31,7 +31,7 @@ * ComponentStatus (and ComponentStatusList) holds the cluster validation info. Deprecated: This API is deprecated in v1.19+ */ @ApiModel(description = "ComponentStatus (and ComponentStatusList) holds the cluster validation info. Deprecated: This API is deprecated in v1.19+") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") public class V1ComponentStatus implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) 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 5053405c51..060cbd3d79 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -31,7 +31,7 @@ * Status of all the conditions for the component as a list of ComponentStatus objects. Deprecated: This API is deprecated in v1.19+ */ @ApiModel(description = "Status of all the conditions for the component as a list of ComponentStatus objects. Deprecated: This API is deprecated in v1.19+") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") public class V1ComponentStatusList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) 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 96eb043e11..8a8bd94fc7 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -28,7 +28,7 @@ * Condition contains details for one aspect of the current state of this API Resource. */ @ApiModel(description = "Condition contains details for one aspect of the current state of this API Resource.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") public class V1Condition { public static final String SERIALIZED_NAME_LAST_TRANSITION_TIME = "lastTransitionTime"; @SerializedName(SERIALIZED_NAME_LAST_TRANSITION_TIME) 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 bb96f9d75b..19d29a4e55 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -31,7 +31,7 @@ * ConfigMap holds configuration data for pods to consume. */ @ApiModel(description = "ConfigMap holds configuration data for pods to consume.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") public class V1ConfigMap implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) 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 31bd3ab18b..f515d83cf7 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -27,7 +27,7 @@ * ConfigMapEnvSource selects a ConfigMap to populate the environment variables with. The contents of the target ConfigMap's Data field will represent the key-value pairs as environment variables. */ @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.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") public class V1ConfigMapEnvSource { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) @@ -45,11 +45,11 @@ public V1ConfigMapEnvSource name(String name) { } /** - * Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * 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 * @return name **/ @javax.annotation.Nullable - @ApiModelProperty(value = "Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names") + @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/V1ConfigMapKeySelector.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapKeySelector.java index 5fe7763cff..a7b0ebb6f9 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -27,7 +27,7 @@ * Selects a key from a ConfigMap. */ @ApiModel(description = "Selects a key from a ConfigMap.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") public class V1ConfigMapKeySelector { public static final String SERIALIZED_NAME_KEY = "key"; @SerializedName(SERIALIZED_NAME_KEY) @@ -71,11 +71,11 @@ public V1ConfigMapKeySelector name(String name) { } /** - * Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * 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 * @return name **/ @javax.annotation.Nullable - @ApiModelProperty(value = "Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names") + @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/V1ConfigMapList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapList.java index b74ec8139b..7565e03c3e 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -31,7 +31,7 @@ * ConfigMapList is a resource containing a list of ConfigMap objects. */ @ApiModel(description = "ConfigMapList is a resource containing a list of ConfigMap objects.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") public class V1ConfigMapList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) 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 25a1a0b5d0..6779856339 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -27,7 +27,7 @@ * 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 */ @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") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") public class V1ConfigMapNodeConfigSource { public static final String SERIALIZED_NAME_KUBELET_CONFIG_KEY = "kubeletConfigKey"; @SerializedName(SERIALIZED_NAME_KUBELET_CONFIG_KEY) 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 5296bfc44e..33cef14c6c 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -30,7 +30,7 @@ * Adapts a ConfigMap into a projected volume. The contents of the target ConfigMap's Data field will be presented in a projected volume as files using the keys in the Data field as the file names, unless the items element is populated with specific mappings of keys to paths. Note that this is identical to a configmap volume source without the default mode. */ @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.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") public class V1ConfigMapProjection { public static final String SERIALIZED_NAME_ITEMS = "items"; @SerializedName(SERIALIZED_NAME_ITEMS) @@ -83,11 +83,11 @@ public V1ConfigMapProjection name(String name) { } /** - * Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * 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 * @return name **/ @javax.annotation.Nullable - @ApiModelProperty(value = "Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names") + @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/V1ConfigMapVolumeSource.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapVolumeSource.java index 1fb19ce484..dc1d58794a 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -30,7 +30,7 @@ * Adapts a ConfigMap into a volume. The contents of the target ConfigMap's Data field will be presented in a volume as files using the keys in the Data field as the file names, unless the items element is populated with specific mappings of keys to paths. ConfigMap volumes support ownership management and SELinux relabeling. */ @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.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") public class V1ConfigMapVolumeSource { public static final String SERIALIZED_NAME_DEFAULT_MODE = "defaultMode"; @SerializedName(SERIALIZED_NAME_DEFAULT_MODE) @@ -110,11 +110,11 @@ public V1ConfigMapVolumeSource name(String name) { } /** - * Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * 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 * @return name **/ @javax.annotation.Nullable - @ApiModelProperty(value = "Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names") + @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/V1Container.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Container.java index a5c23dca8f..bf5f0f7d30 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -39,7 +39,7 @@ * A single application container that you want to run within a pod. */ @ApiModel(description = "A single application container that you want to run within a pod.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") public class V1Container { public static final String SERIALIZED_NAME_ARGS = "args"; @SerializedName(SERIALIZED_NAME_ARGS) 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 feebac88f3..429acec17c 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -29,7 +29,7 @@ * Describe a container image */ @ApiModel(description = "Describe a container image") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") public class V1ContainerImage { public static final String SERIALIZED_NAME_NAMES = "names"; @SerializedName(SERIALIZED_NAME_NAMES) 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 d93bdd31d3..741afbb9b5 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -27,7 +27,7 @@ * ContainerPort represents a network port in a single container. */ @ApiModel(description = "ContainerPort represents a network port in a single container.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") public class V1ContainerPort { public static final String SERIALIZED_NAME_CONTAINER_PORT = "containerPort"; @SerializedName(SERIALIZED_NAME_CONTAINER_PORT) 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 3ddffa6695..f14a3c4baf 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -27,7 +27,7 @@ * ContainerResizePolicy represents resource resize policy for the container. */ @ApiModel(description = "ContainerResizePolicy represents resource resize policy for the container.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") public class V1ContainerResizePolicy { public static final String SERIALIZED_NAME_RESOURCE_NAME = "resourceName"; @SerializedName(SERIALIZED_NAME_RESOURCE_NAME) 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 fce803ffb8..8851a6442f 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -30,7 +30,7 @@ * 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. */ @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.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") public class V1ContainerState { public static final String SERIALIZED_NAME_RUNNING = "running"; @SerializedName(SERIALIZED_NAME_RUNNING) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ContainerStateRunning.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ContainerStateRunning.java index b8d847dc97..560cb5db6d 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -28,7 +28,7 @@ * ContainerStateRunning is a running state of a container. */ @ApiModel(description = "ContainerStateRunning is a running state of a container.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") public class V1ContainerStateRunning { public static final String SERIALIZED_NAME_STARTED_AT = "startedAt"; @SerializedName(SERIALIZED_NAME_STARTED_AT) 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 4f09d47fb1..7b767bd831 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -28,7 +28,7 @@ * ContainerStateTerminated is a terminated state of a container. */ @ApiModel(description = "ContainerStateTerminated is a terminated state of a container.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") public class V1ContainerStateTerminated { public static final String SERIALIZED_NAME_CONTAINER_I_D = "containerID"; @SerializedName(SERIALIZED_NAME_CONTAINER_I_D) 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 1737589cc2..6f960a7deb 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -27,7 +27,7 @@ * ContainerStateWaiting is a waiting state of a container. */ @ApiModel(description = "ContainerStateWaiting is a waiting state of a container.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") public class V1ContainerStateWaiting { public static final String SERIALIZED_NAME_MESSAGE = "message"; @SerializedName(SERIALIZED_NAME_MESSAGE) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ContainerStatus.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ContainerStatus.java index 6e7ee95d81..7dc4cde91a 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,10 +21,14 @@ import com.google.gson.stream.JsonWriter; import io.kubernetes.client.custom.Quantity; import io.kubernetes.client.openapi.models.V1ContainerState; +import io.kubernetes.client.openapi.models.V1ContainerUser; 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.HashMap; import java.util.List; import java.util.Map; @@ -33,12 +37,16 @@ * ContainerStatus contains details for the current status of this container. */ @ApiModel(description = "ContainerStatus contains details for the current status of this container.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") public class V1ContainerStatus { public static final String SERIALIZED_NAME_ALLOCATED_RESOURCES = "allocatedResources"; @SerializedName(SERIALIZED_NAME_ALLOCATED_RESOURCES) private Map allocatedResources = null; + public static final String SERIALIZED_NAME_ALLOCATED_RESOURCES_STATUS = "allocatedResourcesStatus"; + @SerializedName(SERIALIZED_NAME_ALLOCATED_RESOURCES_STATUS) + private List allocatedResourcesStatus = null; + public static final String SERIALIZED_NAME_CONTAINER_I_D = "containerID"; @SerializedName(SERIALIZED_NAME_CONTAINER_I_D) private String containerID; @@ -79,6 +87,18 @@ public class V1ContainerStatus { @SerializedName(SERIALIZED_NAME_STATE) private V1ContainerState state; + public static final String SERIALIZED_NAME_STOP_SIGNAL = "stopSignal"; + @SerializedName(SERIALIZED_NAME_STOP_SIGNAL) + private String stopSignal; + + public static final String SERIALIZED_NAME_USER = "user"; + @SerializedName(SERIALIZED_NAME_USER) + private V1ContainerUser user; + + public static final String SERIALIZED_NAME_VOLUME_MOUNTS = "volumeMounts"; + @SerializedName(SERIALIZED_NAME_VOLUME_MOUNTS) + private List volumeMounts = null; + public V1ContainerStatus allocatedResources(Map allocatedResources) { @@ -111,6 +131,37 @@ public void setAllocatedResources(Map allocatedResources) { } + public V1ContainerStatus allocatedResourcesStatus(List allocatedResourcesStatus) { + + this.allocatedResourcesStatus = allocatedResourcesStatus; + return this; + } + + public V1ContainerStatus addAllocatedResourcesStatusItem(V1ResourceStatus allocatedResourcesStatusItem) { + if (this.allocatedResourcesStatus == null) { + this.allocatedResourcesStatus = new ArrayList<>(); + } + this.allocatedResourcesStatus.add(allocatedResourcesStatusItem); + return this; + } + + /** + * AllocatedResourcesStatus represents the status of various resources allocated for this Pod. + * @return allocatedResourcesStatus + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "AllocatedResourcesStatus represents the status of various resources allocated for this Pod.") + + public List getAllocatedResourcesStatus() { + return allocatedResourcesStatus; + } + + + public void setAllocatedResourcesStatus(List allocatedResourcesStatus) { + this.allocatedResourcesStatus = allocatedResourcesStatus; + } + + public V1ContainerStatus containerID(String containerID) { this.containerID = containerID; @@ -336,6 +387,83 @@ public void setState(V1ContainerState state) { } + public V1ContainerStatus stopSignal(String stopSignal) { + + this.stopSignal = stopSignal; + return this; + } + + /** + * StopSignal reports the effective stop signal for this container + * @return stopSignal + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "StopSignal reports the effective stop signal for this container") + + public String getStopSignal() { + return stopSignal; + } + + + public void setStopSignal(String stopSignal) { + this.stopSignal = stopSignal; + } + + + public V1ContainerStatus user(V1ContainerUser user) { + + this.user = user; + return this; + } + + /** + * Get user + * @return user + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public V1ContainerUser getUser() { + return user; + } + + + public void setUser(V1ContainerUser user) { + this.user = user; + } + + + public V1ContainerStatus volumeMounts(List volumeMounts) { + + this.volumeMounts = volumeMounts; + return this; + } + + public V1ContainerStatus addVolumeMountsItem(V1VolumeMountStatus volumeMountsItem) { + if (this.volumeMounts == null) { + this.volumeMounts = new ArrayList<>(); + } + this.volumeMounts.add(volumeMountsItem); + return this; + } + + /** + * Status of volume mounts. + * @return volumeMounts + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "Status of volume mounts.") + + public List getVolumeMounts() { + return volumeMounts; + } + + + public void setVolumeMounts(List volumeMounts) { + this.volumeMounts = volumeMounts; + } + + @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -346,6 +474,7 @@ public boolean equals(java.lang.Object o) { } V1ContainerStatus v1ContainerStatus = (V1ContainerStatus) o; return Objects.equals(this.allocatedResources, v1ContainerStatus.allocatedResources) && + Objects.equals(this.allocatedResourcesStatus, v1ContainerStatus.allocatedResourcesStatus) && Objects.equals(this.containerID, v1ContainerStatus.containerID) && Objects.equals(this.image, v1ContainerStatus.image) && Objects.equals(this.imageID, v1ContainerStatus.imageID) && @@ -355,12 +484,15 @@ public boolean equals(java.lang.Object o) { Objects.equals(this.resources, v1ContainerStatus.resources) && Objects.equals(this.restartCount, v1ContainerStatus.restartCount) && Objects.equals(this.started, v1ContainerStatus.started) && - Objects.equals(this.state, v1ContainerStatus.state); + Objects.equals(this.state, v1ContainerStatus.state) && + Objects.equals(this.stopSignal, v1ContainerStatus.stopSignal) && + Objects.equals(this.user, v1ContainerStatus.user) && + Objects.equals(this.volumeMounts, v1ContainerStatus.volumeMounts); } @Override public int hashCode() { - return Objects.hash(allocatedResources, containerID, image, imageID, lastState, name, ready, resources, restartCount, started, state); + return Objects.hash(allocatedResources, allocatedResourcesStatus, containerID, image, imageID, lastState, name, ready, resources, restartCount, started, state, stopSignal, user, volumeMounts); } @@ -369,6 +501,7 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1ContainerStatus {\n"); sb.append(" allocatedResources: ").append(toIndentedString(allocatedResources)).append("\n"); + sb.append(" allocatedResourcesStatus: ").append(toIndentedString(allocatedResourcesStatus)).append("\n"); sb.append(" containerID: ").append(toIndentedString(containerID)).append("\n"); sb.append(" image: ").append(toIndentedString(image)).append("\n"); sb.append(" imageID: ").append(toIndentedString(imageID)).append("\n"); @@ -379,6 +512,9 @@ public String toString() { sb.append(" restartCount: ").append(toIndentedString(restartCount)).append("\n"); sb.append(" started: ").append(toIndentedString(started)).append("\n"); sb.append(" state: ").append(toIndentedString(state)).append("\n"); + sb.append(" stopSignal: ").append(toIndentedString(stopSignal)).append("\n"); + sb.append(" user: ").append(toIndentedString(user)).append("\n"); + sb.append(" volumeMounts: ").append(toIndentedString(volumeMounts)).append("\n"); sb.append("}"); return sb.toString(); } 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 new file mode 100644 index 0000000000..31cffd9bd6 --- /dev/null +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ContainerUser.java @@ -0,0 +1,99 @@ +/* +Copyright 2025 The Kubernetes Authors. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at +http://www.apache.org/licenses/LICENSE-2.0 +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ +package io.kubernetes.client.openapi.models; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +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; + +/** + * ContainerUser represents user identity information + */ +@ApiModel(description = "ContainerUser represents user identity information") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +public class V1ContainerUser { + public static final String SERIALIZED_NAME_LINUX = "linux"; + @SerializedName(SERIALIZED_NAME_LINUX) + private V1LinuxContainerUser linux; + + + public V1ContainerUser linux(V1LinuxContainerUser linux) { + + this.linux = linux; + return this; + } + + /** + * Get linux + * @return linux + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public V1LinuxContainerUser getLinux() { + return linux; + } + + + public void setLinux(V1LinuxContainerUser linux) { + this.linux = linux; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V1ContainerUser v1ContainerUser = (V1ContainerUser) o; + return Objects.equals(this.linux, v1ContainerUser.linux); + } + + @Override + public int hashCode() { + return Objects.hash(linux); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class V1ContainerUser {\n"); + sb.append(" linux: ").append(toIndentedString(linux)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} 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 809e13d138..265906e036 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -28,7 +28,7 @@ * 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. */ @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.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") public class V1ControllerRevision implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) 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 d5cf5d9820..fd4085cbde 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -31,7 +31,7 @@ * ControllerRevisionList is a resource containing a list of ControllerRevision objects. */ @ApiModel(description = "ControllerRevisionList is a resource containing a list of ControllerRevision objects.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") public class V1ControllerRevisionList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) 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 2d34dce261..e581e42938 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -30,7 +30,7 @@ * CronJob represents the configuration of a single cron job. */ @ApiModel(description = "CronJob represents the configuration of a single cron job.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") public class V1CronJob implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) 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 aeae7358bc..e596942569 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -31,7 +31,7 @@ * CronJobList is a collection of cron jobs. */ @ApiModel(description = "CronJobList is a collection of cron jobs.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") public class V1CronJobList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) 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 e05eac9b0e..6eba1c9a46 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -28,7 +28,7 @@ * CronJobSpec describes how the job execution will look like and when it will actually run. */ @ApiModel(description = "CronJobSpec describes how the job execution will look like and when it will actually run.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") public class V1CronJobSpec { public static final String SERIALIZED_NAME_CONCURRENCY_POLICY = "concurrencyPolicy"; @SerializedName(SERIALIZED_NAME_CONCURRENCY_POLICY) 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 faa0af805a..619e9d479a 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -31,7 +31,7 @@ * CronJobStatus represents the current state of a cron job. */ @ApiModel(description = "CronJobStatus represents the current state of a cron job.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") public class V1CronJobStatus { public static final String SERIALIZED_NAME_ACTIVE = "active"; @SerializedName(SERIALIZED_NAME_ACTIVE) 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 f7fe39556b..964df7d51a 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -27,7 +27,7 @@ * CrossVersionObjectReference contains enough information to let you identify the referred resource. */ @ApiModel(description = "CrossVersionObjectReference contains enough information to let you identify the referred resource.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") public class V1CrossVersionObjectReference { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) 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 6f41f1d593..01d3a99722 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -27,7 +27,7 @@ * CustomResourceColumnDefinition specifies a column for server side printing. */ @ApiModel(description = "CustomResourceColumnDefinition specifies a column for server side printing.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") public class V1CustomResourceColumnDefinition { public static final String SERIALIZED_NAME_DESCRIPTION = "description"; @SerializedName(SERIALIZED_NAME_DESCRIPTION) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceConversion.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceConversion.java index 616113942b..92cbb64c96 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -28,7 +28,7 @@ * CustomResourceConversion describes how to convert different versions of a CR. */ @ApiModel(description = "CustomResourceConversion describes how to convert different versions of a CR.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") public class V1CustomResourceConversion { public static final String SERIALIZED_NAME_STRATEGY = "strategy"; @SerializedName(SERIALIZED_NAME_STRATEGY) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinition.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinition.java index 172932d676..de6ced53f2 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -30,7 +30,7 @@ * CustomResourceDefinition represents a resource that should be exposed on the API server. Its name MUST be in the format <.spec.name>.<.spec.group>. */ @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>.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") public class V1CustomResourceDefinition implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) 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 00237e8e1a..e80cc44991 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -28,7 +28,7 @@ * CustomResourceDefinitionCondition contains details for the current condition of this pod. */ @ApiModel(description = "CustomResourceDefinitionCondition contains details for the current condition of this pod.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") public class V1CustomResourceDefinitionCondition { public static final String SERIALIZED_NAME_LAST_TRANSITION_TIME = "lastTransitionTime"; @SerializedName(SERIALIZED_NAME_LAST_TRANSITION_TIME) 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 8b2d3f206e..7f5f435dbf 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -31,7 +31,7 @@ * CustomResourceDefinitionList is a list of CustomResourceDefinition objects. */ @ApiModel(description = "CustomResourceDefinitionList is a list of CustomResourceDefinition objects.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") public class V1CustomResourceDefinitionList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) 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 1cdb683897..059ca67293 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -29,7 +29,7 @@ * CustomResourceDefinitionNames indicates the names to serve this CustomResourceDefinition */ @ApiModel(description = "CustomResourceDefinitionNames indicates the names to serve this CustomResourceDefinition") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") public class V1CustomResourceDefinitionNames { public static final String SERIALIZED_NAME_CATEGORIES = "categories"; @SerializedName(SERIALIZED_NAME_CATEGORIES) 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 77a5576dc8..fa93c6ad0c 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -32,7 +32,7 @@ * CustomResourceDefinitionSpec describes how a user wants their resource to appear */ @ApiModel(description = "CustomResourceDefinitionSpec describes how a user wants their resource to appear") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") public class V1CustomResourceDefinitionSpec { public static final String SERIALIZED_NAME_CONVERSION = "conversion"; @SerializedName(SERIALIZED_NAME_CONVERSION) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionStatus.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionStatus.java index 53d729323b..4480360573 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -31,7 +31,7 @@ * CustomResourceDefinitionStatus indicates the state of the CustomResourceDefinition */ @ApiModel(description = "CustomResourceDefinitionStatus indicates the state of the CustomResourceDefinition") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") public class V1CustomResourceDefinitionStatus { public static final String SERIALIZED_NAME_ACCEPTED_NAMES = "acceptedNames"; @SerializedName(SERIALIZED_NAME_ACCEPTED_NAMES) 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 4f7efd2ed3..fed67a57dd 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,7 @@ import io.kubernetes.client.openapi.models.V1CustomResourceColumnDefinition; 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; @@ -32,7 +33,7 @@ * CustomResourceDefinitionVersion describes a version for CRD. */ @ApiModel(description = "CustomResourceDefinitionVersion describes a version for CRD.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") public class V1CustomResourceDefinitionVersion { public static final String SERIALIZED_NAME_ADDITIONAL_PRINTER_COLUMNS = "additionalPrinterColumns"; @SerializedName(SERIALIZED_NAME_ADDITIONAL_PRINTER_COLUMNS) @@ -54,6 +55,10 @@ public class V1CustomResourceDefinitionVersion { @SerializedName(SERIALIZED_NAME_SCHEMA) private V1CustomResourceValidation schema; + public static final String SERIALIZED_NAME_SELECTABLE_FIELDS = "selectableFields"; + @SerializedName(SERIALIZED_NAME_SELECTABLE_FIELDS) + private List selectableFields = null; + public static final String SERIALIZED_NAME_SERVED = "served"; @SerializedName(SERIALIZED_NAME_SERVED) private Boolean served; @@ -189,6 +194,37 @@ public void setSchema(V1CustomResourceValidation schema) { } + public V1CustomResourceDefinitionVersion selectableFields(List selectableFields) { + + this.selectableFields = selectableFields; + return this; + } + + public V1CustomResourceDefinitionVersion addSelectableFieldsItem(V1SelectableField selectableFieldsItem) { + if (this.selectableFields == null) { + this.selectableFields = new ArrayList<>(); + } + this.selectableFields.add(selectableFieldsItem); + return this; + } + + /** + * 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 + * @return selectableFields + **/ + @javax.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; + } + + + public void setSelectableFields(List selectableFields) { + this.selectableFields = selectableFields; + } + + public V1CustomResourceDefinitionVersion served(Boolean served) { this.served = served; @@ -270,6 +306,7 @@ public boolean equals(java.lang.Object o) { Objects.equals(this.deprecationWarning, v1CustomResourceDefinitionVersion.deprecationWarning) && Objects.equals(this.name, v1CustomResourceDefinitionVersion.name) && Objects.equals(this.schema, v1CustomResourceDefinitionVersion.schema) && + Objects.equals(this.selectableFields, v1CustomResourceDefinitionVersion.selectableFields) && Objects.equals(this.served, v1CustomResourceDefinitionVersion.served) && Objects.equals(this.storage, v1CustomResourceDefinitionVersion.storage) && Objects.equals(this.subresources, v1CustomResourceDefinitionVersion.subresources); @@ -277,7 +314,7 @@ public boolean equals(java.lang.Object o) { @Override public int hashCode() { - return Objects.hash(additionalPrinterColumns, deprecated, deprecationWarning, name, schema, served, storage, subresources); + return Objects.hash(additionalPrinterColumns, deprecated, deprecationWarning, name, schema, selectableFields, served, storage, subresources); } @@ -290,6 +327,7 @@ public String toString() { sb.append(" deprecationWarning: ").append(toIndentedString(deprecationWarning)).append("\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); sb.append(" schema: ").append(toIndentedString(schema)).append("\n"); + sb.append(" selectableFields: ").append(toIndentedString(selectableFields)).append("\n"); sb.append(" served: ").append(toIndentedString(served)).append("\n"); sb.append(" storage: ").append(toIndentedString(storage)).append("\n"); sb.append(" subresources: ").append(toIndentedString(subresources)).append("\n"); 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 7ecdaf34cc..f968b75839 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -27,7 +27,7 @@ * CustomResourceSubresourceScale defines how to serve the scale subresource for CustomResources. */ @ApiModel(description = "CustomResourceSubresourceScale defines how to serve the scale subresource for CustomResources.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") public class V1CustomResourceSubresourceScale { public static final String SERIALIZED_NAME_LABEL_SELECTOR_PATH = "labelSelectorPath"; @SerializedName(SERIALIZED_NAME_LABEL_SELECTOR_PATH) 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 de5eab9f2e..19351ccc3f 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -28,7 +28,7 @@ * CustomResourceSubresources defines the status and scale subresources for CustomResources. */ @ApiModel(description = "CustomResourceSubresources defines the status and scale subresources for CustomResources.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") public class V1CustomResourceSubresources { public static final String SERIALIZED_NAME_SCALE = "scale"; @SerializedName(SERIALIZED_NAME_SCALE) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceValidation.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceValidation.java index 7550f4c849..079acb9ea8 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -28,7 +28,7 @@ * CustomResourceValidation is a list of validation methods for CustomResources. */ @ApiModel(description = "CustomResourceValidation is a list of validation methods for CustomResources.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") 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) 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 ff8717d8dc..d92b3b9497 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -27,7 +27,7 @@ * DaemonEndpoint contains information about a single Daemon endpoint. */ @ApiModel(description = "DaemonEndpoint contains information about a single Daemon endpoint.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") public class V1DaemonEndpoint { public static final String SERIALIZED_NAME_PORT = "Port"; @SerializedName(SERIALIZED_NAME_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 a7ae091a4c..39abfe06a3 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -30,7 +30,7 @@ * DaemonSet represents the configuration of a daemon set. */ @ApiModel(description = "DaemonSet represents the configuration of a daemon set.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") public class V1DaemonSet implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) 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 8e603ff783..d8e82346b5 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -28,7 +28,7 @@ * DaemonSetCondition describes the state of a DaemonSet at a certain point. */ @ApiModel(description = "DaemonSetCondition describes the state of a DaemonSet at a certain point.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") public class V1DaemonSetCondition { public static final String SERIALIZED_NAME_LAST_TRANSITION_TIME = "lastTransitionTime"; @SerializedName(SERIALIZED_NAME_LAST_TRANSITION_TIME) 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 c836aebcf1..2bb2539746 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -31,7 +31,7 @@ * DaemonSetList is a collection of daemon sets. */ @ApiModel(description = "DaemonSetList is a collection of daemon sets.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") public class V1DaemonSetList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) 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 232ac7a044..c3c2fa36e2 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -30,7 +30,7 @@ * DaemonSetSpec is the specification of a daemon set. */ @ApiModel(description = "DaemonSetSpec is the specification of a daemon set.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") public class V1DaemonSetSpec { public static final String SERIALIZED_NAME_MIN_READY_SECONDS = "minReadySeconds"; @SerializedName(SERIALIZED_NAME_MIN_READY_SECONDS) 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 7218a57748..b16559aa18 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -30,7 +30,7 @@ * DaemonSetStatus represents the current status of a daemon set. */ @ApiModel(description = "DaemonSetStatus represents the current status of a daemon set.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") public class V1DaemonSetStatus { public static final String SERIALIZED_NAME_COLLISION_COUNT = "collisionCount"; @SerializedName(SERIALIZED_NAME_COLLISION_COUNT) 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 495f0654e5..ffd7f86564 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -28,7 +28,7 @@ * DaemonSetUpdateStrategy is a struct used to control the update strategy for a DaemonSet. */ @ApiModel(description = "DaemonSetUpdateStrategy is a struct used to control the update strategy for a DaemonSet.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") public class V1DaemonSetUpdateStrategy { public static final String SERIALIZED_NAME_ROLLING_UPDATE = "rollingUpdate"; @SerializedName(SERIALIZED_NAME_ROLLING_UPDATE) 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 dd6110195e..dd27d782d3 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -30,7 +30,7 @@ * DeleteOptions may be provided when deleting an API object. */ @ApiModel(description = "DeleteOptions may be provided when deleting an API object.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") public class V1DeleteOptions { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) @@ -44,6 +44,10 @@ public class V1DeleteOptions { @SerializedName(SERIALIZED_NAME_GRACE_PERIOD_SECONDS) private Long gracePeriodSeconds; + public static final String SERIALIZED_NAME_IGNORE_STORE_READ_ERROR_WITH_CLUSTER_BREAKING_POTENTIAL = "ignoreStoreReadErrorWithClusterBreakingPotential"; + @SerializedName(SERIALIZED_NAME_IGNORE_STORE_READ_ERROR_WITH_CLUSTER_BREAKING_POTENTIAL) + private Boolean ignoreStoreReadErrorWithClusterBreakingPotential; + public static final String SERIALIZED_NAME_KIND = "kind"; @SerializedName(SERIALIZED_NAME_KIND) private String kind; @@ -138,6 +142,29 @@ public void setGracePeriodSeconds(Long gracePeriodSeconds) { } + public V1DeleteOptions ignoreStoreReadErrorWithClusterBreakingPotential(Boolean ignoreStoreReadErrorWithClusterBreakingPotential) { + + this.ignoreStoreReadErrorWithClusterBreakingPotential = ignoreStoreReadErrorWithClusterBreakingPotential; + return this; + } + + /** + * if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it + * @return ignoreStoreReadErrorWithClusterBreakingPotential + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it") + + public Boolean getIgnoreStoreReadErrorWithClusterBreakingPotential() { + return ignoreStoreReadErrorWithClusterBreakingPotential; + } + + + public void setIgnoreStoreReadErrorWithClusterBreakingPotential(Boolean ignoreStoreReadErrorWithClusterBreakingPotential) { + this.ignoreStoreReadErrorWithClusterBreakingPotential = ignoreStoreReadErrorWithClusterBreakingPotential; + } + + public V1DeleteOptions kind(String kind) { this.kind = kind; @@ -242,6 +269,7 @@ public boolean equals(java.lang.Object o) { return Objects.equals(this.apiVersion, v1DeleteOptions.apiVersion) && Objects.equals(this.dryRun, v1DeleteOptions.dryRun) && Objects.equals(this.gracePeriodSeconds, v1DeleteOptions.gracePeriodSeconds) && + Objects.equals(this.ignoreStoreReadErrorWithClusterBreakingPotential, v1DeleteOptions.ignoreStoreReadErrorWithClusterBreakingPotential) && Objects.equals(this.kind, v1DeleteOptions.kind) && Objects.equals(this.orphanDependents, v1DeleteOptions.orphanDependents) && Objects.equals(this.preconditions, v1DeleteOptions.preconditions) && @@ -250,7 +278,7 @@ public boolean equals(java.lang.Object o) { @Override public int hashCode() { - return Objects.hash(apiVersion, dryRun, gracePeriodSeconds, kind, orphanDependents, preconditions, propagationPolicy); + return Objects.hash(apiVersion, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, kind, orphanDependents, preconditions, propagationPolicy); } @@ -261,6 +289,7 @@ public String toString() { sb.append(" apiVersion: ").append(toIndentedString(apiVersion)).append("\n"); sb.append(" dryRun: ").append(toIndentedString(dryRun)).append("\n"); sb.append(" gracePeriodSeconds: ").append(toIndentedString(gracePeriodSeconds)).append("\n"); + sb.append(" ignoreStoreReadErrorWithClusterBreakingPotential: ").append(toIndentedString(ignoreStoreReadErrorWithClusterBreakingPotential)).append("\n"); sb.append(" kind: ").append(toIndentedString(kind)).append("\n"); sb.append(" orphanDependents: ").append(toIndentedString(orphanDependents)).append("\n"); sb.append(" preconditions: ").append(toIndentedString(preconditions)).append("\n"); 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 5ae0a9ba0a..a121d5f31e 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -30,7 +30,7 @@ * Deployment enables declarative updates for Pods and ReplicaSets. */ @ApiModel(description = "Deployment enables declarative updates for Pods and ReplicaSets.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") public class V1Deployment implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) 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 e67297f202..8a882d790f 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -28,7 +28,7 @@ * DeploymentCondition describes the state of a deployment at a certain point. */ @ApiModel(description = "DeploymentCondition describes the state of a deployment at a certain point.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") public class V1DeploymentCondition { public static final String SERIALIZED_NAME_LAST_TRANSITION_TIME = "lastTransitionTime"; @SerializedName(SERIALIZED_NAME_LAST_TRANSITION_TIME) 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 68e0943a5e..d5217e0823 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -31,7 +31,7 @@ * DeploymentList is a list of Deployments. */ @ApiModel(description = "DeploymentList is a list of Deployments.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") public class V1DeploymentList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) 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 e545ce8e15..375dfdbe8c 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -30,7 +30,7 @@ * DeploymentSpec is the specification of the desired behavior of the Deployment. */ @ApiModel(description = "DeploymentSpec is the specification of the desired behavior of the Deployment.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") public class V1DeploymentSpec { public static final String SERIALIZED_NAME_MIN_READY_SECONDS = "minReadySeconds"; @SerializedName(SERIALIZED_NAME_MIN_READY_SECONDS) 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 7144164e1c..6184a6b120 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -30,7 +30,7 @@ * DeploymentStatus is the most recently observed status of the Deployment. */ @ApiModel(description = "DeploymentStatus is the most recently observed status of the Deployment.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") public class V1DeploymentStatus { public static final String SERIALIZED_NAME_AVAILABLE_REPLICAS = "availableReplicas"; @SerializedName(SERIALIZED_NAME_AVAILABLE_REPLICAS) @@ -56,6 +56,10 @@ public class V1DeploymentStatus { @SerializedName(SERIALIZED_NAME_REPLICAS) private Integer replicas; + public static final String SERIALIZED_NAME_TERMINATING_REPLICAS = "terminatingReplicas"; + @SerializedName(SERIALIZED_NAME_TERMINATING_REPLICAS) + private Integer terminatingReplicas; + public static final String SERIALIZED_NAME_UNAVAILABLE_REPLICAS = "unavailableReplicas"; @SerializedName(SERIALIZED_NAME_UNAVAILABLE_REPLICAS) private Integer unavailableReplicas; @@ -72,11 +76,11 @@ public V1DeploymentStatus availableReplicas(Integer availableReplicas) { } /** - * Total number of available pods (ready for at least minReadySeconds) targeted by this deployment. + * Total number of available non-terminating pods (ready for at least minReadySeconds) targeted by this deployment. * @return availableReplicas **/ @javax.annotation.Nullable - @ApiModelProperty(value = "Total number of available pods (ready for at least minReadySeconds) targeted by this deployment.") + @ApiModelProperty(value = "Total number of available non-terminating pods (ready for at least minReadySeconds) targeted by this deployment.") public Integer getAvailableReplicas() { return availableReplicas; @@ -172,11 +176,11 @@ public V1DeploymentStatus readyReplicas(Integer readyReplicas) { } /** - * readyReplicas is the number of pods targeted by this Deployment with a Ready Condition. + * Total number of non-terminating pods targeted by this Deployment with a Ready Condition. * @return readyReplicas **/ @javax.annotation.Nullable - @ApiModelProperty(value = "readyReplicas is the number of pods targeted by this Deployment with a Ready Condition.") + @ApiModelProperty(value = "Total number of non-terminating pods targeted by this Deployment with a Ready Condition.") public Integer getReadyReplicas() { return readyReplicas; @@ -195,11 +199,11 @@ public V1DeploymentStatus replicas(Integer replicas) { } /** - * Total number of non-terminated pods targeted by this deployment (their labels match the selector). + * Total number of non-terminating pods targeted by this deployment (their labels match the selector). * @return replicas **/ @javax.annotation.Nullable - @ApiModelProperty(value = "Total number of non-terminated pods targeted by this deployment (their labels match the selector).") + @ApiModelProperty(value = "Total number of non-terminating pods targeted by this deployment (their labels match the selector).") public Integer getReplicas() { return replicas; @@ -211,6 +215,29 @@ public void setReplicas(Integer replicas) { } + public V1DeploymentStatus terminatingReplicas(Integer terminatingReplicas) { + + this.terminatingReplicas = terminatingReplicas; + return this; + } + + /** + * Total number of terminating pods targeted by this deployment. Terminating pods have a non-null .metadata.deletionTimestamp and have not yet reached the Failed or Succeeded .status.phase. This is an alpha field. Enable DeploymentReplicaSetTerminatingReplicas to be able to use this field. + * @return terminatingReplicas + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "Total number of terminating pods targeted by this deployment. Terminating pods have a non-null .metadata.deletionTimestamp and have not yet reached the Failed or Succeeded .status.phase. This is an alpha field. Enable DeploymentReplicaSetTerminatingReplicas to be able to use this field.") + + public Integer getTerminatingReplicas() { + return terminatingReplicas; + } + + + public void setTerminatingReplicas(Integer terminatingReplicas) { + this.terminatingReplicas = terminatingReplicas; + } + + public V1DeploymentStatus unavailableReplicas(Integer unavailableReplicas) { this.unavailableReplicas = unavailableReplicas; @@ -241,11 +268,11 @@ public V1DeploymentStatus updatedReplicas(Integer updatedReplicas) { } /** - * Total number of non-terminated pods targeted by this deployment that have the desired template spec. + * Total number of non-terminating pods targeted by this deployment that have the desired template spec. * @return updatedReplicas **/ @javax.annotation.Nullable - @ApiModelProperty(value = "Total number of non-terminated pods targeted by this deployment that have the desired template spec.") + @ApiModelProperty(value = "Total number of non-terminating pods targeted by this deployment that have the desired template spec.") public Integer getUpdatedReplicas() { return updatedReplicas; @@ -272,13 +299,14 @@ public boolean equals(java.lang.Object o) { Objects.equals(this.observedGeneration, v1DeploymentStatus.observedGeneration) && Objects.equals(this.readyReplicas, v1DeploymentStatus.readyReplicas) && Objects.equals(this.replicas, v1DeploymentStatus.replicas) && + Objects.equals(this.terminatingReplicas, v1DeploymentStatus.terminatingReplicas) && Objects.equals(this.unavailableReplicas, v1DeploymentStatus.unavailableReplicas) && Objects.equals(this.updatedReplicas, v1DeploymentStatus.updatedReplicas); } @Override public int hashCode() { - return Objects.hash(availableReplicas, collisionCount, conditions, observedGeneration, readyReplicas, replicas, unavailableReplicas, updatedReplicas); + return Objects.hash(availableReplicas, collisionCount, conditions, observedGeneration, readyReplicas, replicas, terminatingReplicas, unavailableReplicas, updatedReplicas); } @@ -292,6 +320,7 @@ public String toString() { sb.append(" observedGeneration: ").append(toIndentedString(observedGeneration)).append("\n"); sb.append(" readyReplicas: ").append(toIndentedString(readyReplicas)).append("\n"); sb.append(" replicas: ").append(toIndentedString(replicas)).append("\n"); + sb.append(" terminatingReplicas: ").append(toIndentedString(terminatingReplicas)).append("\n"); sb.append(" unavailableReplicas: ").append(toIndentedString(unavailableReplicas)).append("\n"); sb.append(" updatedReplicas: ").append(toIndentedString(updatedReplicas)).append("\n"); sb.append("}"); 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 0e9d8856c0..c51bad4901 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -28,7 +28,7 @@ * DeploymentStrategy describes how to replace existing pods with new ones. */ @ApiModel(description = "DeploymentStrategy describes how to replace existing pods with new ones.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") public class V1DeploymentStrategy { public static final String SERIALIZED_NAME_ROLLING_UPDATE = "rollingUpdate"; @SerializedName(SERIALIZED_NAME_ROLLING_UPDATE) 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 5db995a0ab..082a7ec253 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -30,7 +30,7 @@ * Represents downward API info for projecting into a projected volume. Note that this is identical to a downwardAPI volume source without the default mode. */ @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.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") public class V1DownwardAPIProjection { public static final String SERIALIZED_NAME_ITEMS = "items"; @SerializedName(SERIALIZED_NAME_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 860065cccc..6cebce2613 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -29,7 +29,7 @@ * DownwardAPIVolumeFile represents information to create the file containing the pod field */ @ApiModel(description = "DownwardAPIVolumeFile represents information to create the file containing the pod field") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") public class V1DownwardAPIVolumeFile { public static final String SERIALIZED_NAME_FIELD_REF = "fieldRef"; @SerializedName(SERIALIZED_NAME_FIELD_REF) 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 36e8942dbf..d7b676a705 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -30,7 +30,7 @@ * DownwardAPIVolumeSource represents a volume containing downward API info. Downward API volumes support ownership management and SELinux relabeling. */ @ApiModel(description = "DownwardAPIVolumeSource represents a volume containing downward API info. Downward API volumes support ownership management and SELinux relabeling.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") public class V1DownwardAPIVolumeSource { public static final String SERIALIZED_NAME_DEFAULT_MODE = "defaultMode"; @SerializedName(SERIALIZED_NAME_DEFAULT_MODE) 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 bfc8955c3e..e663a4fbb1 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -28,7 +28,7 @@ * Represents an empty directory for a pod. Empty directory volumes support ownership management and SELinux relabeling. */ @ApiModel(description = "Represents an empty directory for a pod. Empty directory volumes support ownership management and SELinux relabeling.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") public class V1EmptyDirVolumeSource { public static final String SERIALIZED_NAME_MEDIUM = "medium"; @SerializedName(SERIALIZED_NAME_MEDIUM) 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 667d05add6..15b3db09a6 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -34,7 +34,7 @@ * Endpoint represents a single logical \"backend\" implementing a service. */ @ApiModel(description = "Endpoint represents a single logical \"backend\" implementing a service.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") public class V1Endpoint { public static final String SERIALIZED_NAME_ADDRESSES = "addresses"; @SerializedName(SERIALIZED_NAME_ADDRESSES) @@ -81,10 +81,10 @@ public V1Endpoint addAddressesItem(String addressesItem) { } /** - * 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 + * addresses of this endpoint. For EndpointSlices of addressType \"IPv4\" or \"IPv6\", the values are IP addresses in canonical form. The syntax and semantics of other addressType values are not defined. This must contain at least one address but no more than 100. EndpointSlices generated by the EndpointSlice controller will always have exactly 1 address. No semantics are defined for additional addresses beyond the first, and kube-proxy does not look at them. * @return addresses **/ - @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") + @ApiModelProperty(required = true, value = "addresses of this endpoint. For EndpointSlices of addressType \"IPv4\" or \"IPv6\", the values are IP addresses in canonical form. The syntax and semantics of other addressType values are not defined. This must contain at least one address but no more than 100. EndpointSlices generated by the EndpointSlice controller will always have exactly 1 address. No semantics are defined for additional addresses beyond the first, and kube-proxy does not look at them.") public List getAddresses() { return addresses; 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 39f2ecd33a..1f01bfcc84 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -25,10 +25,10 @@ import java.io.IOException; /** - * EndpointAddress is a tuple that describes single IP address. + * EndpointAddress is a tuple that describes single IP address. Deprecated: This API is deprecated in v1.33+. */ -@ApiModel(description = "EndpointAddress is a tuple that describes single IP address.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") +@ApiModel(description = "EndpointAddress is a tuple that describes single IP address. Deprecated: This API is deprecated in v1.33+.") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") public class V1EndpointAddress { public static final String SERIALIZED_NAME_HOSTNAME = "hostname"; @SerializedName(SERIALIZED_NAME_HOSTNAME) 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 9b40e20a13..9d5575492d 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -27,7 +27,7 @@ * EndpointConditions represents the current condition of an endpoint. */ @ApiModel(description = "EndpointConditions represents the current condition of an endpoint.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") public class V1EndpointConditions { public static final String SERIALIZED_NAME_READY = "ready"; @SerializedName(SERIALIZED_NAME_READY) @@ -49,11 +49,11 @@ public V1EndpointConditions ready(Boolean ready) { } /** - * 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. + * ready indicates that this endpoint is ready to receive traffic, according to whatever system is managing the endpoint. A nil value should be interpreted as \"true\". In general, an endpoint should be marked ready if it is serving and not terminating, though this can be overridden in some cases, such as when the associated Service has set the publishNotReadyAddresses flag. * @return ready **/ @javax.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.") + @ApiModelProperty(value = "ready indicates that this endpoint is ready to receive traffic, according to whatever system is managing the endpoint. A nil value should be interpreted as \"true\". In general, an endpoint should be marked ready if it is serving and not terminating, though this can be overridden in some cases, such as when the associated Service has set the publishNotReadyAddresses flag.") public Boolean getReady() { return ready; @@ -72,11 +72,11 @@ public V1EndpointConditions serving(Boolean serving) { } /** - * 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. + * serving indicates that this endpoint is able to receive traffic, according to whatever system is managing the endpoint. For endpoints backed by pods, the EndpointSlice controller will mark the endpoint as serving if the pod's Ready condition is True. A nil value should be interpreted as \"true\". * @return serving **/ @javax.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.") + @ApiModelProperty(value = "serving indicates that this endpoint is able to receive traffic, according to whatever system is managing the endpoint. For endpoints backed by pods, the EndpointSlice controller will mark the endpoint as serving if the pod's Ready condition is True. A nil value should be interpreted as \"true\".") public Boolean getServing() { return serving; @@ -95,11 +95,11 @@ public V1EndpointConditions terminating(Boolean terminating) { } /** - * 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. + * terminating indicates that this endpoint is terminating. A nil value should be interpreted as \"false\". * @return terminating **/ @javax.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.") + @ApiModelProperty(value = "terminating indicates that this endpoint is terminating. A nil value should be interpreted as \"false\".") 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 21770f88e8..d33f540818 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,7 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.openapi.models.V1ForNode; import io.kubernetes.client.openapi.models.V1ForZone; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; @@ -30,13 +31,48 @@ * EndpointHints provides hints describing how an endpoint should be consumed. */ @ApiModel(description = "EndpointHints provides hints describing how an endpoint should be consumed.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") public class V1EndpointHints { + public static final String SERIALIZED_NAME_FOR_NODES = "forNodes"; + @SerializedName(SERIALIZED_NAME_FOR_NODES) + private List forNodes = null; + public static final String SERIALIZED_NAME_FOR_ZONES = "forZones"; @SerializedName(SERIALIZED_NAME_FOR_ZONES) private List forZones = null; + public V1EndpointHints forNodes(List forNodes) { + + this.forNodes = forNodes; + return this; + } + + public V1EndpointHints addForNodesItem(V1ForNode forNodesItem) { + if (this.forNodes == null) { + this.forNodes = new ArrayList<>(); + } + this.forNodes.add(forNodesItem); + return this; + } + + /** + * forNodes indicates the node(s) this endpoint should be consumed by when using topology aware routing. May contain a maximum of 8 entries. This is an Alpha feature and is only used when the PreferSameTrafficDistribution feature gate is enabled. + * @return forNodes + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "forNodes indicates the node(s) this endpoint should be consumed by when using topology aware routing. May contain a maximum of 8 entries. This is an Alpha feature and is only used when the PreferSameTrafficDistribution feature gate is enabled.") + + public List getForNodes() { + return forNodes; + } + + + public void setForNodes(List forNodes) { + this.forNodes = forNodes; + } + + public V1EndpointHints forZones(List forZones) { this.forZones = forZones; @@ -52,11 +88,11 @@ public V1EndpointHints addForZonesItem(V1ForZone forZonesItem) { } /** - * forZones indicates the zone(s) this endpoint should be consumed by to enable topology aware routing. + * forZones indicates the zone(s) this endpoint should be consumed by when using topology aware routing. May contain a maximum of 8 entries. * @return forZones **/ @javax.annotation.Nullable - @ApiModelProperty(value = "forZones indicates the zone(s) this endpoint should be consumed by to enable topology aware routing.") + @ApiModelProperty(value = "forZones indicates the zone(s) this endpoint should be consumed by when using topology aware routing. May contain a maximum of 8 entries.") public List getForZones() { return forZones; @@ -77,12 +113,13 @@ public boolean equals(java.lang.Object o) { return false; } V1EndpointHints v1EndpointHints = (V1EndpointHints) o; - return Objects.equals(this.forZones, v1EndpointHints.forZones); + return Objects.equals(this.forNodes, v1EndpointHints.forNodes) && + Objects.equals(this.forZones, v1EndpointHints.forZones); } @Override public int hashCode() { - return Objects.hash(forZones); + return Objects.hash(forNodes, forZones); } @@ -90,6 +127,7 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1EndpointHints {\n"); + sb.append(" forNodes: ").append(toIndentedString(forNodes)).append("\n"); sb.append(" forZones: ").append(toIndentedString(forZones)).append("\n"); sb.append("}"); return sb.toString(); 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 d185af77f3..b4f49caa9b 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -29,10 +29,10 @@ import java.util.List; /** - * 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. + * EndpointSlice represents a set of service endpoints. Most EndpointSlices are created by the EndpointSlice controller to represent the Pods selected by Service objects. For a given service there may be multiple EndpointSlice objects which must be joined to produce the full set of endpoints; you can find all of the slices for a given service by listing EndpointSlices in the service's namespace whose `kubernetes.io/service-name` label contains the service's name. */ -@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.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") +@ApiModel(description = "EndpointSlice represents a set of service endpoints. Most EndpointSlices are created by the EndpointSlice controller to represent the Pods selected by Service objects. For a given service there may be multiple EndpointSlice objects which must be joined to produce the full set of endpoints; you can find all of the slices for a given service by listing EndpointSlices in the service's namespace whose `kubernetes.io/service-name` label contains the service's name.") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") public class V1EndpointSlice implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_ADDRESS_TYPE = "addressType"; @SerializedName(SERIALIZED_NAME_ADDRESS_TYPE) @@ -66,10 +66,10 @@ public V1EndpointSlice addressType(String addressType) { } /** - * 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. + * 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. (Deprecated) The EndpointSlice controller only generates, and kube-proxy only processes, slices of addressType \"IPv4\" and \"IPv6\". No semantics are defined for the \"FQDN\" type. * @return addressType **/ - @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.") + @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. (Deprecated) The EndpointSlice controller only generates, and kube-proxy only processes, slices of addressType \"IPv4\" and \"IPv6\". No semantics are defined for the \"FQDN\" type.") public String getAddressType() { return addressType; @@ -192,11 +192,11 @@ public V1EndpointSlice addPortsItem(DiscoveryV1EndpointPort portsItem) { } /** - * 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. + * ports specifies the list of network ports exposed by each endpoint in this slice. Each port must have a unique name. Each slice may include a maximum of 100 ports. Services always have at least 1 port, so EndpointSlices generated by the EndpointSlice controller will likewise always have at least 1 port. EndpointSlices used for other purposes may have an empty ports list. * @return ports **/ @javax.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.") + @ApiModelProperty(value = "ports specifies the list of network ports exposed by each endpoint in this slice. Each port must have a unique name. Each slice may include a maximum of 100 ports. Services always have at least 1 port, so EndpointSlices generated by the EndpointSlice controller will likewise always have at least 1 port. EndpointSlices used for other purposes may have an empty ports list.") 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 9e02626e12..13c3e45595 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -31,7 +31,7 @@ * EndpointSliceList represents a list of endpoint slices */ @ApiModel(description = "EndpointSliceList represents a list of endpoint slices") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") public class V1EndpointSliceList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) 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 3d75e50d0f..70c0edfa4d 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,10 +28,10 @@ import java.util.List; /** - * 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 ] + * 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 ] Deprecated: This API is deprecated in v1.33+. */ -@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 ]") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") +@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 ] Deprecated: This API is deprecated in v1.33+.") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") public class V1EndpointSubset { public static final String SERIALIZED_NAME_ADDRESSES = "addresses"; @SerializedName(SERIALIZED_NAME_ADDRESSES) 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 80afbed124..d83ee981a8 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,10 +28,10 @@ import java.util.List; /** - * 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}] }, ] + * 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}] }, ] Endpoints is a legacy API and does not contain information about all Service features. Use discoveryv1.EndpointSlice for complete information about Service endpoints. Deprecated: This API is deprecated in v1.33+. Use discoveryv1.EndpointSlice. */ -@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}] }, ]") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") +@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}] }, ] Endpoints is a legacy API and does not contain information about all Service features. Use discoveryv1.EndpointSlice for complete information about Service endpoints. Deprecated: This API is deprecated in v1.33+. Use discoveryv1.EndpointSlice.") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") public class V1Endpoints implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) 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 4a6c6eab2b..52aa633d48 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,10 +28,10 @@ import java.util.List; /** - * EndpointsList is a list of endpoints. + * EndpointsList is a list of endpoints. Deprecated: This API is deprecated in v1.33+. */ -@ApiModel(description = "EndpointsList is a list of endpoints.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") +@ApiModel(description = "EndpointsList is a list of endpoints. Deprecated: This API is deprecated in v1.33+.") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") public class V1EndpointsList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) 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 68a5715da8..c57e322f40 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -26,10 +26,10 @@ import java.io.IOException; /** - * EnvFromSource represents the source of a set of ConfigMaps + * EnvFromSource represents the source of a set of ConfigMaps or Secrets */ -@ApiModel(description = "EnvFromSource represents the source of a set of ConfigMaps") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") +@ApiModel(description = "EnvFromSource represents the source of a set of ConfigMaps or Secrets") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") public class V1EnvFromSource { public static final String SERIALIZED_NAME_CONFIG_MAP_REF = "configMapRef"; @SerializedName(SERIALIZED_NAME_CONFIG_MAP_REF) @@ -74,11 +74,11 @@ public V1EnvFromSource prefix(String prefix) { } /** - * An optional identifier to prepend to each key in the ConfigMap. Must be a C_IDENTIFIER. + * Optional text to prepend to the name of each environment variable. Must be a C_IDENTIFIER. * @return prefix **/ @javax.annotation.Nullable - @ApiModelProperty(value = "An optional identifier to prepend to each key in the ConfigMap. Must be a C_IDENTIFIER.") + @ApiModelProperty(value = "Optional text to prepend to the name of each environment variable. Must be a C_IDENTIFIER.") public String getPrefix() { return prefix; 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 5a16a978b7..d375d3f941 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -28,7 +28,7 @@ * EnvVar represents an environment variable present in a Container. */ @ApiModel(description = "EnvVar represents an environment variable present in a Container.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") public class V1EnvVar { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1EnvVarSource.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1EnvVarSource.java index 3a5dd5c59a..3400dca55d 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -31,7 +31,7 @@ * EnvVarSource represents a source for the value of an EnvVar. */ @ApiModel(description = "EnvVarSource represents a source for the value of an EnvVar.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") public class V1EnvVarSource { public static final String SERIALIZED_NAME_CONFIG_MAP_KEY_REF = "configMapKeyRef"; @SerializedName(SERIALIZED_NAME_CONFIG_MAP_KEY_REF) 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 84045d833a..8b35291e05 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -39,7 +39,7 @@ * 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. */ @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.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") public class V1EphemeralContainer { public static final String SERIALIZED_NAME_ARGS = "args"; @SerializedName(SERIALIZED_NAME_ARGS) 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 87ab1546f5..f6be464c1b 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -28,7 +28,7 @@ * Represents an ephemeral volume that is handled by a normal storage driver. */ @ApiModel(description = "Represents an ephemeral volume that is handled by a normal storage driver.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") public class V1EphemeralVolumeSource { public static final String SERIALIZED_NAME_VOLUME_CLAIM_TEMPLATE = "volumeClaimTemplate"; @SerializedName(SERIALIZED_NAME_VOLUME_CLAIM_TEMPLATE) 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 9aa196c27a..8a063401c1 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -27,7 +27,7 @@ * EventSource contains information for an event. */ @ApiModel(description = "EventSource contains information for an event.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") public class V1EventSource { public static final String SERIALIZED_NAME_COMPONENT = "component"; @SerializedName(SERIALIZED_NAME_COMPONENT) 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 4453085f7c..7670c2bcb1 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -29,7 +29,7 @@ * 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. */ @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.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") public class V1Eviction implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) 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 3d3f5c8c17..c09c517179 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -29,7 +29,7 @@ * ExecAction describes a \"run in container\" action. */ @ApiModel(description = "ExecAction describes a \"run in container\" action.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") public class V1ExecAction { public static final String SERIALIZED_NAME_COMMAND = "command"; @SerializedName(SERIALIZED_NAME_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 new file mode 100644 index 0000000000..7275912c9c --- /dev/null +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ExemptPriorityLevelConfiguration.java @@ -0,0 +1,127 @@ +/* +Copyright 2025 The Kubernetes Authors. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at +http://www.apache.org/licenses/LICENSE-2.0 +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ +package io.kubernetes.client.openapi.models; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +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; + +/** + * 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`. + */ +@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`.") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +public class V1ExemptPriorityLevelConfiguration { + public static final String SERIALIZED_NAME_LENDABLE_PERCENT = "lendablePercent"; + @SerializedName(SERIALIZED_NAME_LENDABLE_PERCENT) + private Integer lendablePercent; + + public static final String SERIALIZED_NAME_NOMINAL_CONCURRENCY_SHARES = "nominalConcurrencyShares"; + @SerializedName(SERIALIZED_NAME_NOMINAL_CONCURRENCY_SHARES) + private Integer nominalConcurrencyShares; + + + public V1ExemptPriorityLevelConfiguration lendablePercent(Integer lendablePercent) { + + this.lendablePercent = lendablePercent; + return this; + } + + /** + * `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 ) + * @return lendablePercent + **/ + @javax.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; + } + + + public void setLendablePercent(Integer lendablePercent) { + this.lendablePercent = lendablePercent; + } + + + public V1ExemptPriorityLevelConfiguration nominalConcurrencyShares(Integer nominalConcurrencyShares) { + + this.nominalConcurrencyShares = nominalConcurrencyShares; + return this; + } + + /** + * `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. + * @return nominalConcurrencyShares + **/ + @javax.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; + } + + + public void setNominalConcurrencyShares(Integer nominalConcurrencyShares) { + this.nominalConcurrencyShares = nominalConcurrencyShares; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V1ExemptPriorityLevelConfiguration v1ExemptPriorityLevelConfiguration = (V1ExemptPriorityLevelConfiguration) o; + return Objects.equals(this.lendablePercent, v1ExemptPriorityLevelConfiguration.lendablePercent) && + Objects.equals(this.nominalConcurrencyShares, v1ExemptPriorityLevelConfiguration.nominalConcurrencyShares); + } + + @Override + public int hashCode() { + return Objects.hash(lendablePercent, nominalConcurrencyShares); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class V1ExemptPriorityLevelConfiguration {\n"); + sb.append(" lendablePercent: ").append(toIndentedString(lendablePercent)).append("\n"); + sb.append(" nominalConcurrencyShares: ").append(toIndentedString(nominalConcurrencyShares)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} 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 new file mode 100644 index 0000000000..6a594f2b77 --- /dev/null +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ExpressionWarning.java @@ -0,0 +1,125 @@ +/* +Copyright 2025 The Kubernetes Authors. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at +http://www.apache.org/licenses/LICENSE-2.0 +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ +package io.kubernetes.client.openapi.models; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +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; + +/** + * ExpressionWarning is a warning information that targets a specific expression. + */ +@ApiModel(description = "ExpressionWarning is a warning information that targets a specific expression.") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +public class V1ExpressionWarning { + public static final String SERIALIZED_NAME_FIELD_REF = "fieldRef"; + @SerializedName(SERIALIZED_NAME_FIELD_REF) + private String fieldRef; + + public static final String SERIALIZED_NAME_WARNING = "warning"; + @SerializedName(SERIALIZED_NAME_WARNING) + private String warning; + + + public V1ExpressionWarning fieldRef(String fieldRef) { + + this.fieldRef = fieldRef; + return this; + } + + /** + * 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\" + * @return fieldRef + **/ + @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; + } + + + public void setFieldRef(String fieldRef) { + this.fieldRef = fieldRef; + } + + + public V1ExpressionWarning warning(String warning) { + + this.warning = warning; + return this; + } + + /** + * 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. + * @return warning + **/ + @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; + } + + + public void setWarning(String warning) { + this.warning = warning; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V1ExpressionWarning v1ExpressionWarning = (V1ExpressionWarning) o; + return Objects.equals(this.fieldRef, v1ExpressionWarning.fieldRef) && + Objects.equals(this.warning, v1ExpressionWarning.warning); + } + + @Override + public int hashCode() { + return Objects.hash(fieldRef, warning); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class V1ExpressionWarning {\n"); + sb.append(" fieldRef: ").append(toIndentedString(fieldRef)).append("\n"); + sb.append(" warning: ").append(toIndentedString(warning)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} 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 589ffbb15d..928ddd65e9 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -27,7 +27,7 @@ * ExternalDocumentation allows referencing an external resource for extended documentation. */ @ApiModel(description = "ExternalDocumentation allows referencing an external resource for extended documentation.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") public class V1ExternalDocumentation { public static final String SERIALIZED_NAME_DESCRIPTION = "description"; @SerializedName(SERIALIZED_NAME_DESCRIPTION) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1FCVolumeSource.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1FCVolumeSource.java index 79ff3a7fad..ff1b5423c2 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -29,7 +29,7 @@ * Represents a Fibre Channel volume. Fibre Channel volumes can only be mounted as read/write once. Fibre Channel volumes support ownership management and SELinux relabeling. */ @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.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") public class V1FCVolumeSource { public static final String SERIALIZED_NAME_FS_TYPE = "fsType"; @SerializedName(SERIALIZED_NAME_FS_TYPE) 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 new file mode 100644 index 0000000000..b03812aebf --- /dev/null +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1FieldSelectorAttributes.java @@ -0,0 +1,138 @@ +/* +Copyright 2025 The Kubernetes Authors. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at +http://www.apache.org/licenses/LICENSE-2.0 +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ +package io.kubernetes.client.openapi.models; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +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.List; + +/** + * 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. + */ +@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.") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +public class V1FieldSelectorAttributes { + public static final String SERIALIZED_NAME_RAW_SELECTOR = "rawSelector"; + @SerializedName(SERIALIZED_NAME_RAW_SELECTOR) + private String rawSelector; + + public static final String SERIALIZED_NAME_REQUIREMENTS = "requirements"; + @SerializedName(SERIALIZED_NAME_REQUIREMENTS) + private List requirements = null; + + + public V1FieldSelectorAttributes rawSelector(String rawSelector) { + + this.rawSelector = rawSelector; + return this; + } + + /** + * 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. + * @return rawSelector + **/ + @javax.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; + } + + + public void setRawSelector(String rawSelector) { + this.rawSelector = rawSelector; + } + + + public V1FieldSelectorAttributes requirements(List requirements) { + + this.requirements = requirements; + return this; + } + + public V1FieldSelectorAttributes addRequirementsItem(V1FieldSelectorRequirement requirementsItem) { + if (this.requirements == null) { + this.requirements = new ArrayList<>(); + } + this.requirements.add(requirementsItem); + return this; + } + + /** + * 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. + * @return requirements + **/ + @javax.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; + } + + + public void setRequirements(List requirements) { + this.requirements = requirements; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V1FieldSelectorAttributes v1FieldSelectorAttributes = (V1FieldSelectorAttributes) o; + return Objects.equals(this.rawSelector, v1FieldSelectorAttributes.rawSelector) && + Objects.equals(this.requirements, v1FieldSelectorAttributes.requirements); + } + + @Override + public int hashCode() { + return Objects.hash(rawSelector, requirements); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class V1FieldSelectorAttributes {\n"); + sb.append(" rawSelector: ").append(toIndentedString(rawSelector)).append("\n"); + sb.append(" requirements: ").append(toIndentedString(requirements)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} 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 new file mode 100644 index 0000000000..b3f47fe6b6 --- /dev/null +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1FieldSelectorRequirement.java @@ -0,0 +1,164 @@ +/* +Copyright 2025 The Kubernetes Authors. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at +http://www.apache.org/licenses/LICENSE-2.0 +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ +package io.kubernetes.client.openapi.models; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +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.List; + +/** + * FieldSelectorRequirement is a selector that contains values, a key, and an operator that relates the key and values. + */ +@ApiModel(description = "FieldSelectorRequirement is a selector that contains values, a key, and an operator that relates the key and values.") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +public class V1FieldSelectorRequirement { + public static final String SERIALIZED_NAME_KEY = "key"; + @SerializedName(SERIALIZED_NAME_KEY) + private String key; + + public static final String SERIALIZED_NAME_OPERATOR = "operator"; + @SerializedName(SERIALIZED_NAME_OPERATOR) + private String operator; + + public static final String SERIALIZED_NAME_VALUES = "values"; + @SerializedName(SERIALIZED_NAME_VALUES) + private List values = null; + + + public V1FieldSelectorRequirement key(String key) { + + this.key = key; + return this; + } + + /** + * key is the field selector key that the requirement applies to. + * @return key + **/ + @ApiModelProperty(required = true, value = "key is the field selector key that the requirement applies to.") + + public String getKey() { + return key; + } + + + public void setKey(String key) { + this.key = key; + } + + + public V1FieldSelectorRequirement operator(String operator) { + + this.operator = operator; + return this; + } + + /** + * 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. + * @return operator + **/ + @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; + } + + + public void setOperator(String operator) { + this.operator = operator; + } + + + public V1FieldSelectorRequirement values(List values) { + + this.values = values; + return this; + } + + public V1FieldSelectorRequirement addValuesItem(String valuesItem) { + if (this.values == null) { + this.values = new ArrayList<>(); + } + this.values.add(valuesItem); + return this; + } + + /** + * 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. + * @return values + **/ + @javax.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; + } + + + public void setValues(List values) { + this.values = values; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V1FieldSelectorRequirement v1FieldSelectorRequirement = (V1FieldSelectorRequirement) o; + return Objects.equals(this.key, v1FieldSelectorRequirement.key) && + Objects.equals(this.operator, v1FieldSelectorRequirement.operator) && + Objects.equals(this.values, v1FieldSelectorRequirement.values); + } + + @Override + public int hashCode() { + return Objects.hash(key, operator, values); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class V1FieldSelectorRequirement {\n"); + sb.append(" key: ").append(toIndentedString(key)).append("\n"); + sb.append(" operator: ").append(toIndentedString(operator)).append("\n"); + sb.append(" values: ").append(toIndentedString(values)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} 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 001af9fd64..bb46bad15c 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -31,7 +31,7 @@ * FlexPersistentVolumeSource represents a generic persistent volume resource that is provisioned/attached using an exec based plugin. */ @ApiModel(description = "FlexPersistentVolumeSource represents a generic persistent volume resource that is provisioned/attached using an exec based plugin.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") public class V1FlexPersistentVolumeSource { public static final String SERIALIZED_NAME_DRIVER = "driver"; @SerializedName(SERIALIZED_NAME_DRIVER) 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 2637558b06..a0fdef72da 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -31,7 +31,7 @@ * FlexVolume represents a generic volume resource that is provisioned/attached using an exec based plugin. */ @ApiModel(description = "FlexVolume represents a generic volume resource that is provisioned/attached using an exec based plugin.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") public class V1FlexVolumeSource { public static final String SERIALIZED_NAME_DRIVER = "driver"; @SerializedName(SERIALIZED_NAME_DRIVER) 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 32ff156ad8..12f7815d2a 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -27,7 +27,7 @@ * Represents a Flocker volume mounted by the Flocker agent. One and only one of datasetName and datasetUUID should be set. Flocker volumes do not support ownership management or SELinux relabeling. */ @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.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") public class V1FlockerVolumeSource { public static final String SERIALIZED_NAME_DATASET_NAME = "datasetName"; @SerializedName(SERIALIZED_NAME_DATASET_NAME) 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 new file mode 100644 index 0000000000..fdcf7e30e7 --- /dev/null +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1FlowDistinguisherMethod.java @@ -0,0 +1,97 @@ +/* +Copyright 2025 The Kubernetes Authors. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at +http://www.apache.org/licenses/LICENSE-2.0 +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ +package io.kubernetes.client.openapi.models; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +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; + +/** + * FlowDistinguisherMethod specifies the method of a flow distinguisher. + */ +@ApiModel(description = "FlowDistinguisherMethod specifies the method of a flow distinguisher.") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +public class V1FlowDistinguisherMethod { + public static final String SERIALIZED_NAME_TYPE = "type"; + @SerializedName(SERIALIZED_NAME_TYPE) + private String type; + + + public V1FlowDistinguisherMethod type(String type) { + + this.type = type; + return this; + } + + /** + * `type` is the type of flow distinguisher method The supported types are \"ByUser\" and \"ByNamespace\". Required. + * @return type + **/ + @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; + } + + + public void setType(String type) { + this.type = type; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V1FlowDistinguisherMethod v1FlowDistinguisherMethod = (V1FlowDistinguisherMethod) o; + return Objects.equals(this.type, v1FlowDistinguisherMethod.type); + } + + @Override + public int hashCode() { + return Objects.hash(type); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class V1FlowDistinguisherMethod {\n"); + sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} 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 new file mode 100644 index 0000000000..7bce94e809 --- /dev/null +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1FlowSchema.java @@ -0,0 +1,217 @@ +/* +Copyright 2025 The Kubernetes Authors. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at +http://www.apache.org/licenses/LICENSE-2.0 +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ +package io.kubernetes.client.openapi.models; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +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; + +/** + * 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\". + */ +@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\".") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +public class V1FlowSchema implements io.kubernetes.client.common.KubernetesObject { + public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; + @SerializedName(SERIALIZED_NAME_API_VERSION) + private String apiVersion; + + public static final String SERIALIZED_NAME_KIND = "kind"; + @SerializedName(SERIALIZED_NAME_KIND) + private String kind; + + public static final String SERIALIZED_NAME_METADATA = "metadata"; + @SerializedName(SERIALIZED_NAME_METADATA) + private V1ObjectMeta metadata; + + public static final String SERIALIZED_NAME_SPEC = "spec"; + @SerializedName(SERIALIZED_NAME_SPEC) + private V1FlowSchemaSpec spec; + + public static final String SERIALIZED_NAME_STATUS = "status"; + @SerializedName(SERIALIZED_NAME_STATUS) + private V1FlowSchemaStatus status; + + + public V1FlowSchema apiVersion(String apiVersion) { + + this.apiVersion = apiVersion; + return this; + } + + /** + * 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 + * @return apiVersion + **/ + @javax.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; + } + + + public void setApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + } + + + public V1FlowSchema kind(String kind) { + + this.kind = kind; + return this; + } + + /** + * 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 + * @return kind + **/ + @javax.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; + } + + + public void setKind(String kind) { + this.kind = kind; + } + + + public V1FlowSchema metadata(V1ObjectMeta metadata) { + + this.metadata = metadata; + return this; + } + + /** + * Get metadata + * @return metadata + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public V1ObjectMeta getMetadata() { + return metadata; + } + + + public void setMetadata(V1ObjectMeta metadata) { + this.metadata = metadata; + } + + + public V1FlowSchema spec(V1FlowSchemaSpec spec) { + + this.spec = spec; + return this; + } + + /** + * Get spec + * @return spec + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public V1FlowSchemaSpec getSpec() { + return spec; + } + + + public void setSpec(V1FlowSchemaSpec spec) { + this.spec = spec; + } + + + public V1FlowSchema status(V1FlowSchemaStatus status) { + + this.status = status; + return this; + } + + /** + * Get status + * @return status + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public V1FlowSchemaStatus getStatus() { + return status; + } + + + public void setStatus(V1FlowSchemaStatus status) { + this.status = status; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V1FlowSchema v1FlowSchema = (V1FlowSchema) o; + return Objects.equals(this.apiVersion, v1FlowSchema.apiVersion) && + Objects.equals(this.kind, v1FlowSchema.kind) && + Objects.equals(this.metadata, v1FlowSchema.metadata) && + Objects.equals(this.spec, v1FlowSchema.spec) && + Objects.equals(this.status, v1FlowSchema.status); + } + + @Override + public int hashCode() { + return Objects.hash(apiVersion, kind, metadata, spec, status); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class V1FlowSchema {\n"); + sb.append(" apiVersion: ").append(toIndentedString(apiVersion)).append("\n"); + sb.append(" kind: ").append(toIndentedString(kind)).append("\n"); + sb.append(" metadata: ").append(toIndentedString(metadata)).append("\n"); + sb.append(" spec: ").append(toIndentedString(spec)).append("\n"); + sb.append(" status: ").append(toIndentedString(status)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} 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 new file mode 100644 index 0000000000..078f07cbcb --- /dev/null +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1FlowSchemaCondition.java @@ -0,0 +1,215 @@ +/* +Copyright 2025 The Kubernetes Authors. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at +http://www.apache.org/licenses/LICENSE-2.0 +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ +package io.kubernetes.client.openapi.models; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +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; + +/** + * FlowSchemaCondition describes conditions for a FlowSchema. + */ +@ApiModel(description = "FlowSchemaCondition describes conditions for a FlowSchema.") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +public class V1FlowSchemaCondition { + public static final String SERIALIZED_NAME_LAST_TRANSITION_TIME = "lastTransitionTime"; + @SerializedName(SERIALIZED_NAME_LAST_TRANSITION_TIME) + private OffsetDateTime lastTransitionTime; + + public static final String SERIALIZED_NAME_MESSAGE = "message"; + @SerializedName(SERIALIZED_NAME_MESSAGE) + private String message; + + public static final String SERIALIZED_NAME_REASON = "reason"; + @SerializedName(SERIALIZED_NAME_REASON) + private String reason; + + public static final String SERIALIZED_NAME_STATUS = "status"; + @SerializedName(SERIALIZED_NAME_STATUS) + private String status; + + public static final String SERIALIZED_NAME_TYPE = "type"; + @SerializedName(SERIALIZED_NAME_TYPE) + private String type; + + + public V1FlowSchemaCondition lastTransitionTime(OffsetDateTime lastTransitionTime) { + + this.lastTransitionTime = lastTransitionTime; + return this; + } + + /** + * `lastTransitionTime` is the last time the condition transitioned from one status to another. + * @return lastTransitionTime + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "`lastTransitionTime` is the last time the condition transitioned from one status to another.") + + public OffsetDateTime getLastTransitionTime() { + return lastTransitionTime; + } + + + public void setLastTransitionTime(OffsetDateTime lastTransitionTime) { + this.lastTransitionTime = lastTransitionTime; + } + + + public V1FlowSchemaCondition message(String message) { + + this.message = message; + return this; + } + + /** + * `message` is a human-readable message indicating details about last transition. + * @return message + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "`message` is a human-readable message indicating details about last transition.") + + public String getMessage() { + return message; + } + + + public void setMessage(String message) { + this.message = message; + } + + + public V1FlowSchemaCondition reason(String reason) { + + this.reason = reason; + return this; + } + + /** + * `reason` is a unique, one-word, CamelCase reason for the condition's last transition. + * @return reason + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "`reason` is a unique, one-word, CamelCase reason for the condition's last transition.") + + public String getReason() { + return reason; + } + + + public void setReason(String reason) { + this.reason = reason; + } + + + public V1FlowSchemaCondition status(String status) { + + this.status = status; + return this; + } + + /** + * `status` is the status of the condition. Can be True, False, Unknown. Required. + * @return status + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "`status` is the status of the condition. Can be True, False, Unknown. Required.") + + public String getStatus() { + return status; + } + + + public void setStatus(String status) { + this.status = status; + } + + + public V1FlowSchemaCondition type(String type) { + + this.type = type; + return this; + } + + /** + * `type` is the type of the condition. Required. + * @return type + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "`type` is the type of the condition. Required.") + + public String getType() { + return type; + } + + + public void setType(String type) { + this.type = type; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V1FlowSchemaCondition v1FlowSchemaCondition = (V1FlowSchemaCondition) o; + return Objects.equals(this.lastTransitionTime, v1FlowSchemaCondition.lastTransitionTime) && + Objects.equals(this.message, v1FlowSchemaCondition.message) && + Objects.equals(this.reason, v1FlowSchemaCondition.reason) && + Objects.equals(this.status, v1FlowSchemaCondition.status) && + Objects.equals(this.type, v1FlowSchemaCondition.type); + } + + @Override + public int hashCode() { + return Objects.hash(lastTransitionTime, message, reason, status, type); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class V1FlowSchemaCondition {\n"); + sb.append(" lastTransitionTime: ").append(toIndentedString(lastTransitionTime)).append("\n"); + sb.append(" message: ").append(toIndentedString(message)).append("\n"); + sb.append(" reason: ").append(toIndentedString(reason)).append("\n"); + sb.append(" status: ").append(toIndentedString(status)).append("\n"); + sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} 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 new file mode 100644 index 0000000000..a81fcf7705 --- /dev/null +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1FlowSchemaList.java @@ -0,0 +1,193 @@ +/* +Copyright 2025 The Kubernetes Authors. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at +http://www.apache.org/licenses/LICENSE-2.0 +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ +package io.kubernetes.client.openapi.models; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +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.List; + +/** + * FlowSchemaList is a list of FlowSchema objects. + */ +@ApiModel(description = "FlowSchemaList is a list of FlowSchema objects.") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +public class V1FlowSchemaList implements io.kubernetes.client.common.KubernetesListObject { + public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; + @SerializedName(SERIALIZED_NAME_API_VERSION) + private String apiVersion; + + public static final String SERIALIZED_NAME_ITEMS = "items"; + @SerializedName(SERIALIZED_NAME_ITEMS) + private List items = new ArrayList<>(); + + public static final String SERIALIZED_NAME_KIND = "kind"; + @SerializedName(SERIALIZED_NAME_KIND) + private String kind; + + public static final String SERIALIZED_NAME_METADATA = "metadata"; + @SerializedName(SERIALIZED_NAME_METADATA) + private V1ListMeta metadata; + + + public V1FlowSchemaList apiVersion(String apiVersion) { + + this.apiVersion = apiVersion; + return this; + } + + /** + * 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 + * @return apiVersion + **/ + @javax.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; + } + + + public void setApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + } + + + public V1FlowSchemaList items(List items) { + + this.items = items; + return this; + } + + public V1FlowSchemaList addItemsItem(V1FlowSchema itemsItem) { + this.items.add(itemsItem); + return this; + } + + /** + * `items` is a list of FlowSchemas. + * @return items + **/ + @ApiModelProperty(required = true, value = "`items` is a list of FlowSchemas.") + + public List getItems() { + return items; + } + + + public void setItems(List items) { + this.items = items; + } + + + public V1FlowSchemaList kind(String kind) { + + this.kind = kind; + return this; + } + + /** + * 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 + * @return kind + **/ + @javax.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; + } + + + public void setKind(String kind) { + this.kind = kind; + } + + + public V1FlowSchemaList metadata(V1ListMeta metadata) { + + this.metadata = metadata; + return this; + } + + /** + * Get metadata + * @return metadata + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public V1ListMeta getMetadata() { + return metadata; + } + + + public void setMetadata(V1ListMeta metadata) { + this.metadata = metadata; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V1FlowSchemaList v1FlowSchemaList = (V1FlowSchemaList) o; + return Objects.equals(this.apiVersion, v1FlowSchemaList.apiVersion) && + Objects.equals(this.items, v1FlowSchemaList.items) && + Objects.equals(this.kind, v1FlowSchemaList.kind) && + Objects.equals(this.metadata, v1FlowSchemaList.metadata); + } + + @Override + public int hashCode() { + return Objects.hash(apiVersion, items, kind, metadata); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class V1FlowSchemaList {\n"); + sb.append(" apiVersion: ").append(toIndentedString(apiVersion)).append("\n"); + sb.append(" items: ").append(toIndentedString(items)).append("\n"); + sb.append(" kind: ").append(toIndentedString(kind)).append("\n"); + sb.append(" metadata: ").append(toIndentedString(metadata)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} 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 new file mode 100644 index 0000000000..5dbe5b3f48 --- /dev/null +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1FlowSchemaSpec.java @@ -0,0 +1,197 @@ +/* +Copyright 2025 The Kubernetes Authors. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at +http://www.apache.org/licenses/LICENSE-2.0 +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ +package io.kubernetes.client.openapi.models; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +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.List; + +/** + * FlowSchemaSpec describes how the FlowSchema's specification looks like. + */ +@ApiModel(description = "FlowSchemaSpec describes how the FlowSchema's specification looks like.") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +public class V1FlowSchemaSpec { + public static final String SERIALIZED_NAME_DISTINGUISHER_METHOD = "distinguisherMethod"; + @SerializedName(SERIALIZED_NAME_DISTINGUISHER_METHOD) + private V1FlowDistinguisherMethod distinguisherMethod; + + public static final String SERIALIZED_NAME_MATCHING_PRECEDENCE = "matchingPrecedence"; + @SerializedName(SERIALIZED_NAME_MATCHING_PRECEDENCE) + private Integer matchingPrecedence; + + public static final String SERIALIZED_NAME_PRIORITY_LEVEL_CONFIGURATION = "priorityLevelConfiguration"; + @SerializedName(SERIALIZED_NAME_PRIORITY_LEVEL_CONFIGURATION) + private V1PriorityLevelConfigurationReference priorityLevelConfiguration; + + public static final String SERIALIZED_NAME_RULES = "rules"; + @SerializedName(SERIALIZED_NAME_RULES) + private List rules = null; + + + public V1FlowSchemaSpec distinguisherMethod(V1FlowDistinguisherMethod distinguisherMethod) { + + this.distinguisherMethod = distinguisherMethod; + return this; + } + + /** + * Get distinguisherMethod + * @return distinguisherMethod + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public V1FlowDistinguisherMethod getDistinguisherMethod() { + return distinguisherMethod; + } + + + public void setDistinguisherMethod(V1FlowDistinguisherMethod distinguisherMethod) { + this.distinguisherMethod = distinguisherMethod; + } + + + public V1FlowSchemaSpec matchingPrecedence(Integer matchingPrecedence) { + + this.matchingPrecedence = matchingPrecedence; + return this; + } + + /** + * `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. + * @return matchingPrecedence + **/ + @javax.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; + } + + + public void setMatchingPrecedence(Integer matchingPrecedence) { + this.matchingPrecedence = matchingPrecedence; + } + + + public V1FlowSchemaSpec priorityLevelConfiguration(V1PriorityLevelConfigurationReference priorityLevelConfiguration) { + + this.priorityLevelConfiguration = priorityLevelConfiguration; + return this; + } + + /** + * Get priorityLevelConfiguration + * @return priorityLevelConfiguration + **/ + @ApiModelProperty(required = true, value = "") + + public V1PriorityLevelConfigurationReference getPriorityLevelConfiguration() { + return priorityLevelConfiguration; + } + + + public void setPriorityLevelConfiguration(V1PriorityLevelConfigurationReference priorityLevelConfiguration) { + this.priorityLevelConfiguration = priorityLevelConfiguration; + } + + + public V1FlowSchemaSpec rules(List rules) { + + this.rules = rules; + return this; + } + + public V1FlowSchemaSpec addRulesItem(V1PolicyRulesWithSubjects rulesItem) { + if (this.rules == null) { + this.rules = new ArrayList<>(); + } + this.rules.add(rulesItem); + return this; + } + + /** + * `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. + * @return rules + **/ + @javax.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; + } + + + public void setRules(List rules) { + this.rules = rules; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V1FlowSchemaSpec v1FlowSchemaSpec = (V1FlowSchemaSpec) o; + return Objects.equals(this.distinguisherMethod, v1FlowSchemaSpec.distinguisherMethod) && + Objects.equals(this.matchingPrecedence, v1FlowSchemaSpec.matchingPrecedence) && + Objects.equals(this.priorityLevelConfiguration, v1FlowSchemaSpec.priorityLevelConfiguration) && + Objects.equals(this.rules, v1FlowSchemaSpec.rules); + } + + @Override + public int hashCode() { + return Objects.hash(distinguisherMethod, matchingPrecedence, priorityLevelConfiguration, rules); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class V1FlowSchemaSpec {\n"); + sb.append(" distinguisherMethod: ").append(toIndentedString(distinguisherMethod)).append("\n"); + sb.append(" matchingPrecedence: ").append(toIndentedString(matchingPrecedence)).append("\n"); + sb.append(" priorityLevelConfiguration: ").append(toIndentedString(priorityLevelConfiguration)).append("\n"); + sb.append(" rules: ").append(toIndentedString(rules)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} 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 new file mode 100644 index 0000000000..e9a1cd508e --- /dev/null +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1FlowSchemaStatus.java @@ -0,0 +1,109 @@ +/* +Copyright 2025 The Kubernetes Authors. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at +http://www.apache.org/licenses/LICENSE-2.0 +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ +package io.kubernetes.client.openapi.models; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +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.List; + +/** + * FlowSchemaStatus represents the current state of a FlowSchema. + */ +@ApiModel(description = "FlowSchemaStatus represents the current state of a FlowSchema.") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +public class V1FlowSchemaStatus { + public static final String SERIALIZED_NAME_CONDITIONS = "conditions"; + @SerializedName(SERIALIZED_NAME_CONDITIONS) + private List conditions = null; + + + public V1FlowSchemaStatus conditions(List conditions) { + + this.conditions = conditions; + return this; + } + + public V1FlowSchemaStatus addConditionsItem(V1FlowSchemaCondition conditionsItem) { + if (this.conditions == null) { + this.conditions = new ArrayList<>(); + } + this.conditions.add(conditionsItem); + return this; + } + + /** + * `conditions` is a list of the current states of FlowSchema. + * @return conditions + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "`conditions` is a list of the current states of FlowSchema.") + + public List getConditions() { + return conditions; + } + + + public void setConditions(List conditions) { + this.conditions = conditions; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V1FlowSchemaStatus v1FlowSchemaStatus = (V1FlowSchemaStatus) o; + return Objects.equals(this.conditions, v1FlowSchemaStatus.conditions); + } + + @Override + public int hashCode() { + return Objects.hash(conditions); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class V1FlowSchemaStatus {\n"); + sb.append(" conditions: ").append(toIndentedString(conditions)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ForNode.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ForNode.java new file mode 100644 index 0000000000..b76aa3eda2 --- /dev/null +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ForNode.java @@ -0,0 +1,97 @@ +/* +Copyright 2025 The Kubernetes Authors. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at +http://www.apache.org/licenses/LICENSE-2.0 +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ +package io.kubernetes.client.openapi.models; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +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; + +/** + * ForNode provides information about which nodes should consume this endpoint. + */ +@ApiModel(description = "ForNode provides information about which nodes should consume this endpoint.") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +public class V1ForNode { + public static final String SERIALIZED_NAME_NAME = "name"; + @SerializedName(SERIALIZED_NAME_NAME) + private String name; + + + public V1ForNode name(String name) { + + this.name = name; + return this; + } + + /** + * name represents the name of the node. + * @return name + **/ + @ApiModelProperty(required = true, value = "name represents the name of the node.") + + public String getName() { + return name; + } + + + public void setName(String name) { + this.name = name; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V1ForNode v1ForNode = (V1ForNode) o; + return Objects.equals(this.name, v1ForNode.name); + } + + @Override + public int hashCode() { + return Objects.hash(name); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class V1ForNode {\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} 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 4faa0ab754..0c8ec8c73b 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -27,7 +27,7 @@ * ForZone provides information about which zones should consume this endpoint. */ @ApiModel(description = "ForZone provides information about which zones should consume this endpoint.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") public class V1ForZone { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_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 ad0bbe361b..a0fa93945a 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -27,7 +27,7 @@ * Represents a Persistent Disk resource in 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. */ @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.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") public class V1GCEPersistentDiskVolumeSource { public static final String SERIALIZED_NAME_FS_TYPE = "fsType"; @SerializedName(SERIALIZED_NAME_FS_TYPE) 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 64b10f227c..3823ac46b7 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,9 +24,10 @@ import java.io.IOException; /** - * V1GRPCAction + * GRPCAction specifies an action involving a GRPC service. */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") +@ApiModel(description = "GRPCAction specifies an action involving a GRPC service.") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") public class V1GRPCAction { public static final String SERIALIZED_NAME_PORT = "port"; @SerializedName(SERIALIZED_NAME_PORT) 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 19fb9f283d..2d508a6ee5 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -27,7 +27,7 @@ * Represents a 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. */ @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.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") public class V1GitRepoVolumeSource { public static final String SERIALIZED_NAME_DIRECTORY = "directory"; @SerializedName(SERIALIZED_NAME_DIRECTORY) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1GlusterfsPersistentVolumeSource.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1GlusterfsPersistentVolumeSource.java index 5528909399..dca8d5a2e4 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -27,7 +27,7 @@ * Represents a Glusterfs mount that lasts the lifetime of a pod. Glusterfs volumes do not support ownership management or SELinux relabeling. */ @ApiModel(description = "Represents a Glusterfs mount that lasts the lifetime of a pod. Glusterfs volumes do not support ownership management or SELinux relabeling.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") public class V1GlusterfsPersistentVolumeSource { public static final String SERIALIZED_NAME_ENDPOINTS = "endpoints"; @SerializedName(SERIALIZED_NAME_ENDPOINTS) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1GlusterfsVolumeSource.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1GlusterfsVolumeSource.java index c66dcc7ba6..8c5bc1e686 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -27,7 +27,7 @@ * Represents a Glusterfs mount that lasts the lifetime of a pod. Glusterfs volumes do not support ownership management or SELinux relabeling. */ @ApiModel(description = "Represents a Glusterfs mount that lasts the lifetime of a pod. Glusterfs volumes do not support ownership management or SELinux relabeling.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") public class V1GlusterfsVolumeSource { public static final String SERIALIZED_NAME_ENDPOINTS = "endpoints"; @SerializedName(SERIALIZED_NAME_ENDPOINTS) 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 new file mode 100644 index 0000000000..7b5294608e --- /dev/null +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1GroupSubject.java @@ -0,0 +1,97 @@ +/* +Copyright 2025 The Kubernetes Authors. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at +http://www.apache.org/licenses/LICENSE-2.0 +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ +package io.kubernetes.client.openapi.models; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +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; + +/** + * GroupSubject holds detailed information for group-kind subject. + */ +@ApiModel(description = "GroupSubject holds detailed information for group-kind subject.") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +public class V1GroupSubject { + public static final String SERIALIZED_NAME_NAME = "name"; + @SerializedName(SERIALIZED_NAME_NAME) + private String name; + + + public V1GroupSubject name(String name) { + + this.name = name; + return this; + } + + /** + * 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. + * @return name + **/ + @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; + } + + + public void setName(String name) { + this.name = name; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V1GroupSubject v1GroupSubject = (V1GroupSubject) o; + return Objects.equals(this.name, v1GroupSubject.name); + } + + @Override + public int hashCode() { + return Objects.hash(name); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class V1GroupSubject {\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} 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 a790d03636..227f245d98 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -27,7 +27,7 @@ * GroupVersion contains the \"group/version\" and \"version\" string of a version. It is made a struct to keep extensibility. */ @ApiModel(description = "GroupVersion contains the \"group/version\" and \"version\" string of a version. It is made a struct to keep extensibility.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") public class V1GroupVersionForDiscovery { public static final String SERIALIZED_NAME_GROUP_VERSION = "groupVersion"; @SerializedName(SERIALIZED_NAME_GROUP_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 a6bd08494e..035ec4dc11 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -31,7 +31,7 @@ * HTTPGetAction describes an action based on HTTP Get requests. */ @ApiModel(description = "HTTPGetAction describes an action based on HTTP Get requests.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") public class V1HTTPGetAction { public static final String SERIALIZED_NAME_HOST = "host"; @SerializedName(SERIALIZED_NAME_HOST) 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 8e6d180172..cae0d46aba 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -27,7 +27,7 @@ * HTTPHeader describes a custom header to be used in HTTP probes */ @ApiModel(description = "HTTPHeader describes a custom header to be used in HTTP probes") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") public class V1HTTPHeader { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1HTTPIngressPath.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1HTTPIngressPath.java index c296b06ab1..4811d81c5a 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -28,7 +28,7 @@ * HTTPIngressPath associates a path with a backend. Incoming urls matching the path are forwarded to the backend. */ @ApiModel(description = "HTTPIngressPath associates a path with a backend. Incoming urls matching the path are forwarded to the backend.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") public class V1HTTPIngressPath { public static final String SERIALIZED_NAME_BACKEND = "backend"; @SerializedName(SERIALIZED_NAME_BACKEND) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1HTTPIngressRuleValue.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1HTTPIngressRuleValue.java index 5f80eb0cc3..cb85f61396 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -30,7 +30,7 @@ * 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 '#'. */ @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 '#'.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") public class V1HTTPIngressRuleValue { public static final String SERIALIZED_NAME_PATHS = "paths"; @SerializedName(SERIALIZED_NAME_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 e06a4ab032..aaca646f1e 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -30,7 +30,7 @@ * configuration of a horizontal pod autoscaler. */ @ApiModel(description = "configuration of a horizontal pod autoscaler.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") public class V1HorizontalPodAutoscaler implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) 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 c208a6c13c..12960bd193 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -31,7 +31,7 @@ * list of horizontal pod autoscaler objects. */ @ApiModel(description = "list of horizontal pod autoscaler objects.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") public class V1HorizontalPodAutoscalerList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) 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 5df833ca2e..f8c435ecb3 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -28,7 +28,7 @@ * specification of a horizontal pod autoscaler. */ @ApiModel(description = "specification of a horizontal pod autoscaler.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") public class V1HorizontalPodAutoscalerSpec { public static final String SERIALIZED_NAME_MAX_REPLICAS = "maxReplicas"; @SerializedName(SERIALIZED_NAME_MAX_REPLICAS) 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 3502ce7008..472d4721a5 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -28,7 +28,7 @@ * current status of a horizontal pod autoscaler */ @ApiModel(description = "current status of a horizontal pod autoscaler") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") 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) 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 76aa005af1..176d3be0b2 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -29,7 +29,7 @@ * HostAlias holds the mapping between IP and hostnames that will be injected as an entry in the pod's hosts file. */ @ApiModel(description = "HostAlias holds the mapping between IP and hostnames that will be injected as an entry in the pod's hosts file.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") public class V1HostAlias { public static final String SERIALIZED_NAME_HOSTNAMES = "hostnames"; @SerializedName(SERIALIZED_NAME_HOSTNAMES) @@ -81,8 +81,7 @@ public V1HostAlias ip(String ip) { * IP address of the host file entry. * @return ip **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "IP address of the host file entry.") + @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 2c54c87876..91da32a9d4 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -27,7 +27,7 @@ * HostIP represents a single IP address allocated to the host. */ @ApiModel(description = "HostIP represents a single IP address allocated to the host.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") public class V1HostIP { public static final String SERIALIZED_NAME_IP = "ip"; @SerializedName(SERIALIZED_NAME_IP) @@ -44,8 +44,7 @@ public V1HostIP ip(String ip) { * IP is the IP address assigned to the host * @return ip **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "IP is the IP address assigned to the host") + @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 8b3cf4dc57..a3a66f18a4 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -27,7 +27,7 @@ * Represents a host path mapped into a pod. Host path volumes do not support ownership management or SELinux relabeling. */ @ApiModel(description = "Represents a host path mapped into a pod. Host path volumes do not support ownership management or SELinux relabeling.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") public class V1HostPathVolumeSource { public static final String SERIALIZED_NAME_PATH = "path"; @SerializedName(SERIALIZED_NAME_PATH) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1IPAddress.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1IPAddress.java new file mode 100644 index 0000000000..4eb1b9bb0a --- /dev/null +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1IPAddress.java @@ -0,0 +1,187 @@ +/* +Copyright 2025 The Kubernetes Authors. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at +http://www.apache.org/licenses/LICENSE-2.0 +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ +package io.kubernetes.client.openapi.models; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.openapi.models.V1IPAddressSpec; +import io.kubernetes.client.openapi.models.V1ObjectMeta; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; + +/** + * 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 + */ +@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") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +public class V1IPAddress implements io.kubernetes.client.common.KubernetesObject { + public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; + @SerializedName(SERIALIZED_NAME_API_VERSION) + private String apiVersion; + + public static final String SERIALIZED_NAME_KIND = "kind"; + @SerializedName(SERIALIZED_NAME_KIND) + private String kind; + + public static final String SERIALIZED_NAME_METADATA = "metadata"; + @SerializedName(SERIALIZED_NAME_METADATA) + private V1ObjectMeta metadata; + + public static final String SERIALIZED_NAME_SPEC = "spec"; + @SerializedName(SERIALIZED_NAME_SPEC) + private V1IPAddressSpec spec; + + + public V1IPAddress apiVersion(String apiVersion) { + + this.apiVersion = apiVersion; + return this; + } + + /** + * 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 + * @return apiVersion + **/ + @javax.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; + } + + + public void setApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + } + + + public V1IPAddress kind(String kind) { + + this.kind = kind; + return this; + } + + /** + * 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 + * @return kind + **/ + @javax.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; + } + + + public void setKind(String kind) { + this.kind = kind; + } + + + public V1IPAddress metadata(V1ObjectMeta metadata) { + + this.metadata = metadata; + return this; + } + + /** + * Get metadata + * @return metadata + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public V1ObjectMeta getMetadata() { + return metadata; + } + + + public void setMetadata(V1ObjectMeta metadata) { + this.metadata = metadata; + } + + + public V1IPAddress spec(V1IPAddressSpec spec) { + + this.spec = spec; + return this; + } + + /** + * Get spec + * @return spec + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public V1IPAddressSpec getSpec() { + return spec; + } + + + public void setSpec(V1IPAddressSpec spec) { + this.spec = spec; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V1IPAddress v1IPAddress = (V1IPAddress) o; + return Objects.equals(this.apiVersion, v1IPAddress.apiVersion) && + Objects.equals(this.kind, v1IPAddress.kind) && + Objects.equals(this.metadata, v1IPAddress.metadata) && + Objects.equals(this.spec, v1IPAddress.spec); + } + + @Override + public int hashCode() { + return Objects.hash(apiVersion, kind, metadata, spec); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class V1IPAddress {\n"); + sb.append(" apiVersion: ").append(toIndentedString(apiVersion)).append("\n"); + sb.append(" kind: ").append(toIndentedString(kind)).append("\n"); + sb.append(" metadata: ").append(toIndentedString(metadata)).append("\n"); + sb.append(" spec: ").append(toIndentedString(spec)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1IPAddressList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1IPAddressList.java new file mode 100644 index 0000000000..0b5dbb025e --- /dev/null +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1IPAddressList.java @@ -0,0 +1,193 @@ +/* +Copyright 2025 The Kubernetes Authors. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at +http://www.apache.org/licenses/LICENSE-2.0 +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ +package io.kubernetes.client.openapi.models; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.openapi.models.V1IPAddress; +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.List; + +/** + * IPAddressList contains a list of IPAddress. + */ +@ApiModel(description = "IPAddressList contains a list of IPAddress.") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +public class V1IPAddressList implements io.kubernetes.client.common.KubernetesListObject { + public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; + @SerializedName(SERIALIZED_NAME_API_VERSION) + private String apiVersion; + + public static final String SERIALIZED_NAME_ITEMS = "items"; + @SerializedName(SERIALIZED_NAME_ITEMS) + private List items = new ArrayList<>(); + + public static final String SERIALIZED_NAME_KIND = "kind"; + @SerializedName(SERIALIZED_NAME_KIND) + private String kind; + + public static final String SERIALIZED_NAME_METADATA = "metadata"; + @SerializedName(SERIALIZED_NAME_METADATA) + private V1ListMeta metadata; + + + public V1IPAddressList apiVersion(String apiVersion) { + + this.apiVersion = apiVersion; + return this; + } + + /** + * 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 + * @return apiVersion + **/ + @javax.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; + } + + + public void setApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + } + + + public V1IPAddressList items(List items) { + + this.items = items; + return this; + } + + public V1IPAddressList addItemsItem(V1IPAddress itemsItem) { + this.items.add(itemsItem); + return this; + } + + /** + * items is the list of IPAddresses. + * @return items + **/ + @ApiModelProperty(required = true, value = "items is the list of IPAddresses.") + + public List getItems() { + return items; + } + + + public void setItems(List items) { + this.items = items; + } + + + public V1IPAddressList kind(String kind) { + + this.kind = kind; + return this; + } + + /** + * 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 + * @return kind + **/ + @javax.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; + } + + + public void setKind(String kind) { + this.kind = kind; + } + + + public V1IPAddressList metadata(V1ListMeta metadata) { + + this.metadata = metadata; + return this; + } + + /** + * Get metadata + * @return metadata + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public V1ListMeta getMetadata() { + return metadata; + } + + + public void setMetadata(V1ListMeta metadata) { + this.metadata = metadata; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V1IPAddressList v1IPAddressList = (V1IPAddressList) o; + return Objects.equals(this.apiVersion, v1IPAddressList.apiVersion) && + Objects.equals(this.items, v1IPAddressList.items) && + Objects.equals(this.kind, v1IPAddressList.kind) && + Objects.equals(this.metadata, v1IPAddressList.metadata); + } + + @Override + public int hashCode() { + return Objects.hash(apiVersion, items, kind, metadata); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class V1IPAddressList {\n"); + sb.append(" apiVersion: ").append(toIndentedString(apiVersion)).append("\n"); + sb.append(" items: ").append(toIndentedString(items)).append("\n"); + sb.append(" kind: ").append(toIndentedString(kind)).append("\n"); + sb.append(" metadata: ").append(toIndentedString(metadata)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1IPAddressSpec.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1IPAddressSpec.java new file mode 100644 index 0000000000..61ded363e3 --- /dev/null +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1IPAddressSpec.java @@ -0,0 +1,98 @@ +/* +Copyright 2025 The Kubernetes Authors. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at +http://www.apache.org/licenses/LICENSE-2.0 +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ +package io.kubernetes.client.openapi.models; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.openapi.models.V1ParentReference; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; + +/** + * IPAddressSpec describe the attributes in an IP Address. + */ +@ApiModel(description = "IPAddressSpec describe the attributes in an IP Address.") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +public class V1IPAddressSpec { + public static final String SERIALIZED_NAME_PARENT_REF = "parentRef"; + @SerializedName(SERIALIZED_NAME_PARENT_REF) + private V1ParentReference parentRef; + + + public V1IPAddressSpec parentRef(V1ParentReference parentRef) { + + this.parentRef = parentRef; + return this; + } + + /** + * Get parentRef + * @return parentRef + **/ + @ApiModelProperty(required = true, value = "") + + public V1ParentReference getParentRef() { + return parentRef; + } + + + public void setParentRef(V1ParentReference parentRef) { + this.parentRef = parentRef; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V1IPAddressSpec v1IPAddressSpec = (V1IPAddressSpec) o; + return Objects.equals(this.parentRef, v1IPAddressSpec.parentRef); + } + + @Override + public int hashCode() { + return Objects.hash(parentRef); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class V1IPAddressSpec {\n"); + sb.append(" parentRef: ").append(toIndentedString(parentRef)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} 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 5ebed7df6d..2964a36235 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -29,7 +29,7 @@ * 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. */ @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.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") public class V1IPBlock { public static final String SERIALIZED_NAME_CIDR = "cidr"; @SerializedName(SERIALIZED_NAME_CIDR) 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 687703a9fa..c927815250 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -30,7 +30,7 @@ * ISCSIPersistentVolumeSource represents an ISCSI disk. ISCSI volumes can only be mounted as read/write once. ISCSI volumes support ownership management and SELinux relabeling. */ @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.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") public class V1ISCSIPersistentVolumeSource { public static final String SERIALIZED_NAME_CHAP_AUTH_DISCOVERY = "chapAuthDiscovery"; @SerializedName(SERIALIZED_NAME_CHAP_AUTH_DISCOVERY) 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 7910e96a1d..54a0ac1ea1 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -30,7 +30,7 @@ * Represents an ISCSI disk. ISCSI volumes can only be mounted as read/write once. ISCSI volumes support ownership management and SELinux relabeling. */ @ApiModel(description = "Represents an ISCSI disk. ISCSI volumes can only be mounted as read/write once. ISCSI volumes support ownership management and SELinux relabeling.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") public class V1ISCSIVolumeSource { public static final String SERIALIZED_NAME_CHAP_AUTH_DISCOVERY = "chapAuthDiscovery"; @SerializedName(SERIALIZED_NAME_CHAP_AUTH_DISCOVERY) 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 new file mode 100644 index 0000000000..78e55b9aff --- /dev/null +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ImageVolumeSource.java @@ -0,0 +1,127 @@ +/* +Copyright 2025 The Kubernetes Authors. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at +http://www.apache.org/licenses/LICENSE-2.0 +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ +package io.kubernetes.client.openapi.models; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +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; + +/** + * ImageVolumeSource represents a image volume resource. + */ +@ApiModel(description = "ImageVolumeSource represents a image volume resource.") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +public class V1ImageVolumeSource { + public static final String SERIALIZED_NAME_PULL_POLICY = "pullPolicy"; + @SerializedName(SERIALIZED_NAME_PULL_POLICY) + private String pullPolicy; + + public static final String SERIALIZED_NAME_REFERENCE = "reference"; + @SerializedName(SERIALIZED_NAME_REFERENCE) + private String reference; + + + public V1ImageVolumeSource pullPolicy(String pullPolicy) { + + this.pullPolicy = pullPolicy; + return this; + } + + /** + * 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. + * @return pullPolicy + **/ + @javax.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; + } + + + public void setPullPolicy(String pullPolicy) { + this.pullPolicy = pullPolicy; + } + + + public V1ImageVolumeSource reference(String reference) { + + this.reference = reference; + return this; + } + + /** + * 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. + * @return reference + **/ + @javax.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; + } + + + public void setReference(String reference) { + this.reference = reference; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V1ImageVolumeSource v1ImageVolumeSource = (V1ImageVolumeSource) o; + return Objects.equals(this.pullPolicy, v1ImageVolumeSource.pullPolicy) && + Objects.equals(this.reference, v1ImageVolumeSource.reference); + } + + @Override + public int hashCode() { + return Objects.hash(pullPolicy, reference); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class V1ImageVolumeSource {\n"); + sb.append(" pullPolicy: ").append(toIndentedString(pullPolicy)).append("\n"); + sb.append(" reference: ").append(toIndentedString(reference)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} 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 d2eb987606..f2e2fbc51a 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -30,7 +30,7 @@ * 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. */ @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.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") public class V1Ingress implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) 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 2bae8d3d33..df1b6c5bae 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -29,7 +29,7 @@ * IngressBackend describes all endpoints for a given service and port. */ @ApiModel(description = "IngressBackend describes all endpoints for a given service and port.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") public class V1IngressBackend { public static final String SERIALIZED_NAME_RESOURCE = "resource"; @SerializedName(SERIALIZED_NAME_RESOURCE) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1IngressClass.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1IngressClass.java index e33faa0caa..4fd4867241 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -29,7 +29,7 @@ * IngressClass represents the class of the Ingress, referenced by the Ingress Spec. The `ingressclass.kubernetes.io/is-default-class` annotation can be used to indicate that an IngressClass should be considered default. When a single IngressClass resource has this annotation set to true, new Ingress resources without a class specified will be assigned this default class. */ @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.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") public class V1IngressClass implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) 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 80ce3e0f9c..8afd3c0965 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -31,7 +31,7 @@ * IngressClassList is a collection of IngressClasses. */ @ApiModel(description = "IngressClassList is a collection of IngressClasses.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") public class V1IngressClassList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) 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 31f914f585..5bbf09801a 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -27,7 +27,7 @@ * IngressClassParametersReference identifies an API object. This can be used to specify a cluster or namespace-scoped resource. */ @ApiModel(description = "IngressClassParametersReference identifies an API object. This can be used to specify a cluster or namespace-scoped resource.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") public class V1IngressClassParametersReference { public static final String SERIALIZED_NAME_API_GROUP = "apiGroup"; @SerializedName(SERIALIZED_NAME_API_GROUP) 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 9ad90c3fe7..de9e9ca3a8 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -28,7 +28,7 @@ * IngressClassSpec provides information about the class of an Ingress. */ @ApiModel(description = "IngressClassSpec provides information about the class of an Ingress.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") public class V1IngressClassSpec { public static final String SERIALIZED_NAME_CONTROLLER = "controller"; @SerializedName(SERIALIZED_NAME_CONTROLLER) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1IngressList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1IngressList.java index 7a336835f7..390d9a3e66 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -31,7 +31,7 @@ * IngressList is a collection of Ingress. */ @ApiModel(description = "IngressList is a collection of Ingress.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") public class V1IngressList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) 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 e0db4734b4..c4a8305c0f 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -30,7 +30,7 @@ * IngressLoadBalancerIngress represents the status of a load-balancer ingress point. */ @ApiModel(description = "IngressLoadBalancerIngress represents the status of a load-balancer ingress point.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") public class V1IngressLoadBalancerIngress { public static final String SERIALIZED_NAME_HOSTNAME = "hostname"; @SerializedName(SERIALIZED_NAME_HOSTNAME) 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 1fd26f1916..380583e46c 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -30,7 +30,7 @@ * IngressLoadBalancerStatus represents the status of a load-balancer. */ @ApiModel(description = "IngressLoadBalancerStatus represents the status of a load-balancer.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") public class V1IngressLoadBalancerStatus { public static final String SERIALIZED_NAME_INGRESS = "ingress"; @SerializedName(SERIALIZED_NAME_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 c99cfc2599..c86cd76275 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -27,7 +27,7 @@ * IngressPortStatus represents the error condition of a service port */ @ApiModel(description = "IngressPortStatus represents the error condition of a service port") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") public class V1IngressPortStatus { public static final String SERIALIZED_NAME_ERROR = "error"; @SerializedName(SERIALIZED_NAME_ERROR) 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 c5fb3acab3..f0b52ea87f 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -28,7 +28,7 @@ * 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. */ @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.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") public class V1IngressRule { public static final String SERIALIZED_NAME_HOST = "host"; @SerializedName(SERIALIZED_NAME_HOST) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1IngressServiceBackend.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1IngressServiceBackend.java index 38e8603a4a..7d7d0d0f33 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -28,7 +28,7 @@ * IngressServiceBackend references a Kubernetes Service as a Backend. */ @ApiModel(description = "IngressServiceBackend references a Kubernetes Service as a Backend.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") public class V1IngressServiceBackend { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1IngressSpec.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1IngressSpec.java index 23f65dd89f..4dadeca355 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -32,7 +32,7 @@ * IngressSpec describes the Ingress the user wishes to exist. */ @ApiModel(description = "IngressSpec describes the Ingress the user wishes to exist.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") public class V1IngressSpec { public static final String SERIALIZED_NAME_DEFAULT_BACKEND = "defaultBackend"; @SerializedName(SERIALIZED_NAME_DEFAULT_BACKEND) 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 4a8b84e885..1b2e2a1750 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -28,7 +28,7 @@ * IngressStatus describe the current state of the Ingress. */ @ApiModel(description = "IngressStatus describe the current state of the Ingress.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") public class V1IngressStatus { public static final String SERIALIZED_NAME_LOAD_BALANCER = "loadBalancer"; @SerializedName(SERIALIZED_NAME_LOAD_BALANCER) 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 49035fb36d..90179ee3d5 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -29,7 +29,7 @@ * IngressTLS describes the transport layer security associated with an ingress. */ @ApiModel(description = "IngressTLS describes the transport layer security associated with an ingress.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") public class V1IngressTLS { public static final String SERIALIZED_NAME_HOSTS = "hosts"; @SerializedName(SERIALIZED_NAME_HOSTS) 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 7a97a98396..b80d07f9bb 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -33,7 +33,7 @@ * JSONSchemaProps is a JSON-Schema following Specification Draft 4 (http://json-schema.org/). */ @ApiModel(description = "JSONSchemaProps is a JSON-Schema following Specification Draft 4 (http://json-schema.org/).") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") public class V1JSONSchemaProps { public static final String SERIALIZED_NAME_$_REF = "$ref"; @SerializedName(SERIALIZED_NAME_$_REF) @@ -604,11 +604,11 @@ public V1JSONSchemaProps format(String format) { } /** - * 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. + * 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. * @return format **/ @javax.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.") + @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; @@ -1296,11 +1296,11 @@ public V1JSONSchemaProps addXKubernetesValidationsItem(V1ValidationRule xKuberne } /** - * x-kubernetes-validations describes a list of validation rules written in the CEL expression language. This field is an alpha-level. Using this field requires the feature gate `CustomResourceValidationExpressions` to be enabled. + * x-kubernetes-validations describes a list of validation rules written in the CEL expression language. * @return xKubernetesValidations **/ @javax.annotation.Nullable - @ApiModelProperty(value = "x-kubernetes-validations describes a list of validation rules written in the CEL expression language. This field is an alpha-level. Using this field requires the feature gate `CustomResourceValidationExpressions` to be enabled.") + @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 8bf5634cca..79a4612883 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -30,7 +30,7 @@ * Job represents the configuration of a single job. */ @ApiModel(description = "Job represents the configuration of a single job.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") public class V1Job implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) 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 385fa747be..6e62ac6cc8 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -28,7 +28,7 @@ * JobCondition describes current state of a job. */ @ApiModel(description = "JobCondition describes current state of a job.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") public class V1JobCondition { public static final String SERIALIZED_NAME_LAST_PROBE_TIME = "lastProbeTime"; @SerializedName(SERIALIZED_NAME_LAST_PROBE_TIME) 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 9874a65a2f..aa4efdbbef 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -31,7 +31,7 @@ * JobList is a collection of jobs. */ @ApiModel(description = "JobList is a collection of jobs.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") public class V1JobList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) 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 7dce8a5215..b9f8450774 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,7 @@ import io.kubernetes.client.openapi.models.V1LabelSelector; 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; @@ -30,7 +31,7 @@ * JobSpec describes how the job execution will look like. */ @ApiModel(description = "JobSpec describes how the job execution will look like.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") public class V1JobSpec { public static final String SERIALIZED_NAME_ACTIVE_DEADLINE_SECONDS = "activeDeadlineSeconds"; @SerializedName(SERIALIZED_NAME_ACTIVE_DEADLINE_SECONDS) @@ -52,6 +53,10 @@ public class V1JobSpec { @SerializedName(SERIALIZED_NAME_COMPLETIONS) private Integer completions; + public static final String SERIALIZED_NAME_MANAGED_BY = "managedBy"; + @SerializedName(SERIALIZED_NAME_MANAGED_BY) + private String managedBy; + public static final String SERIALIZED_NAME_MANUAL_SELECTOR = "manualSelector"; @SerializedName(SERIALIZED_NAME_MANUAL_SELECTOR) private Boolean manualSelector; @@ -76,6 +81,10 @@ public class V1JobSpec { @SerializedName(SERIALIZED_NAME_SELECTOR) private V1LabelSelector selector; + public static final String SERIALIZED_NAME_SUCCESS_POLICY = "successPolicy"; + @SerializedName(SERIALIZED_NAME_SUCCESS_POLICY) + private V1SuccessPolicy successPolicy; + public static final String SERIALIZED_NAME_SUSPEND = "suspend"; @SerializedName(SERIALIZED_NAME_SUSPEND) private Boolean suspend; @@ -142,11 +151,11 @@ public V1JobSpec backoffLimitPerIndex(Integer backoffLimitPerIndex) { } /** - * 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 alpha-level. It can be used when the `JobBackoffLimitPerIndex` feature gate is enabled (disabled by default). + * 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. * @return backoffLimitPerIndex **/ @javax.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 alpha-level. It can be used when the `JobBackoffLimitPerIndex` feature gate is enabled (disabled by default).") + @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.") public Integer getBackoffLimitPerIndex() { return backoffLimitPerIndex; @@ -204,6 +213,29 @@ public void setCompletions(Integer completions) { } + public V1JobSpec managedBy(String managedBy) { + + this.managedBy = managedBy; + return this; + } + + /** + * 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 beta-level. The job controller accepts setting the field when the feature gate JobManagedBy is enabled (enabled by default). + * @return managedBy + **/ + @javax.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 beta-level. The job controller accepts setting the field when the feature gate JobManagedBy is enabled (enabled by default).") + + public String getManagedBy() { + return managedBy; + } + + + public void setManagedBy(String managedBy) { + this.managedBy = managedBy; + } + + public V1JobSpec manualSelector(Boolean manualSelector) { this.manualSelector = manualSelector; @@ -234,11 +266,11 @@ public V1JobSpec maxFailedIndexes(Integer maxFailedIndexes) { } /** - * 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 alpha-level. It can be used when the `JobBackoffLimitPerIndex` feature gate is enabled (disabled by default). + * 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. * @return maxFailedIndexes **/ @javax.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 alpha-level. It can be used when the `JobBackoffLimitPerIndex` feature gate is enabled (disabled by default).") + @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.") public Integer getMaxFailedIndexes() { return maxFailedIndexes; @@ -303,11 +335,11 @@ public V1JobSpec podReplacementPolicy(String podReplacementPolicy) { } /** - * 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 alpha field. Enable JobPodReplacementPolicy to be able to use this field. + * 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. * @return podReplacementPolicy **/ @javax.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 alpha field. Enable JobPodReplacementPolicy to be able to use this field.") + @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; @@ -342,6 +374,29 @@ public void setSelector(V1LabelSelector selector) { } + public V1JobSpec successPolicy(V1SuccessPolicy successPolicy) { + + this.successPolicy = successPolicy; + return this; + } + + /** + * Get successPolicy + * @return successPolicy + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public V1SuccessPolicy getSuccessPolicy() { + return successPolicy; + } + + + public void setSuccessPolicy(V1SuccessPolicy successPolicy) { + this.successPolicy = successPolicy; + } + + public V1JobSpec suspend(Boolean suspend) { this.suspend = suspend; @@ -424,12 +479,14 @@ public boolean equals(java.lang.Object o) { Objects.equals(this.backoffLimitPerIndex, v1JobSpec.backoffLimitPerIndex) && Objects.equals(this.completionMode, v1JobSpec.completionMode) && Objects.equals(this.completions, v1JobSpec.completions) && + Objects.equals(this.managedBy, v1JobSpec.managedBy) && Objects.equals(this.manualSelector, v1JobSpec.manualSelector) && Objects.equals(this.maxFailedIndexes, v1JobSpec.maxFailedIndexes) && Objects.equals(this.parallelism, v1JobSpec.parallelism) && Objects.equals(this.podFailurePolicy, v1JobSpec.podFailurePolicy) && Objects.equals(this.podReplacementPolicy, v1JobSpec.podReplacementPolicy) && Objects.equals(this.selector, v1JobSpec.selector) && + Objects.equals(this.successPolicy, v1JobSpec.successPolicy) && Objects.equals(this.suspend, v1JobSpec.suspend) && Objects.equals(this.template, v1JobSpec.template) && Objects.equals(this.ttlSecondsAfterFinished, v1JobSpec.ttlSecondsAfterFinished); @@ -437,7 +494,7 @@ public boolean equals(java.lang.Object o) { @Override public int hashCode() { - return Objects.hash(activeDeadlineSeconds, backoffLimit, backoffLimitPerIndex, completionMode, completions, manualSelector, maxFailedIndexes, parallelism, podFailurePolicy, podReplacementPolicy, selector, suspend, template, ttlSecondsAfterFinished); + return Objects.hash(activeDeadlineSeconds, backoffLimit, backoffLimitPerIndex, completionMode, completions, managedBy, manualSelector, maxFailedIndexes, parallelism, podFailurePolicy, podReplacementPolicy, selector, successPolicy, suspend, template, ttlSecondsAfterFinished); } @@ -450,12 +507,14 @@ public String toString() { sb.append(" backoffLimitPerIndex: ").append(toIndentedString(backoffLimitPerIndex)).append("\n"); sb.append(" completionMode: ").append(toIndentedString(completionMode)).append("\n"); sb.append(" completions: ").append(toIndentedString(completions)).append("\n"); + sb.append(" managedBy: ").append(toIndentedString(managedBy)).append("\n"); sb.append(" manualSelector: ").append(toIndentedString(manualSelector)).append("\n"); sb.append(" maxFailedIndexes: ").append(toIndentedString(maxFailedIndexes)).append("\n"); sb.append(" parallelism: ").append(toIndentedString(parallelism)).append("\n"); sb.append(" podFailurePolicy: ").append(toIndentedString(podFailurePolicy)).append("\n"); sb.append(" podReplacementPolicy: ").append(toIndentedString(podReplacementPolicy)).append("\n"); sb.append(" selector: ").append(toIndentedString(selector)).append("\n"); + sb.append(" successPolicy: ").append(toIndentedString(successPolicy)).append("\n"); sb.append(" suspend: ").append(toIndentedString(suspend)).append("\n"); sb.append(" template: ").append(toIndentedString(template)).append("\n"); sb.append(" ttlSecondsAfterFinished: ").append(toIndentedString(ttlSecondsAfterFinished)).append("\n"); 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 665d49dced..7e1deb5871 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -32,7 +32,7 @@ * JobStatus represents the current state of a Job. */ @ApiModel(description = "JobStatus represents the current state of a Job.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") public class V1JobStatus { public static final String SERIALIZED_NAME_ACTIVE = "active"; @SerializedName(SERIALIZED_NAME_ACTIVE) @@ -86,11 +86,11 @@ public V1JobStatus active(Integer active) { } /** - * The number of pending and running pods. + * The number of pending and running pods which are not terminating (without a deletionTimestamp). The value is zero for finished jobs. * @return active **/ @javax.annotation.Nullable - @ApiModelProperty(value = "The number of pending and running pods.") + @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; @@ -132,11 +132,11 @@ public V1JobStatus completionTime(OffsetDateTime completionTime) { } /** - * 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 only set when the job finishes successfully. + * 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. * @return completionTime **/ @javax.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 only set when the job finishes successfully.") + @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; @@ -163,11 +163,11 @@ public V1JobStatus addConditionsItem(V1JobCondition conditionsItem) { } /** - * 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. More info: https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/ + * 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/ * @return conditions **/ @javax.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. More info: https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/") + @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; @@ -186,11 +186,11 @@ public V1JobStatus failed(Integer failed) { } /** - * The number of pods which reached phase Failed. + * The number of pods which reached phase Failed. The value increases monotonically. * @return failed **/ @javax.annotation.Nullable - @ApiModelProperty(value = "The number of pods which reached phase Failed.") + @ApiModelProperty(value = "The number of pods which reached phase Failed. The value increases monotonically.") public Integer getFailed() { return failed; @@ -209,11 +209,11 @@ public V1JobStatus failedIndexes(String failedIndexes) { } /** - * FailedIndexes holds the failed indexes when backoffLimitPerIndex=true. 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\". This field is alpha-level. It can be used when the `JobBackoffLimitPerIndex` feature gate is enabled (disabled by default). + * 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. * @return failedIndexes **/ @javax.annotation.Nullable - @ApiModelProperty(value = "FailedIndexes holds the failed indexes when backoffLimitPerIndex=true. 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\". This field is alpha-level. It can be used when the `JobBackoffLimitPerIndex` feature gate is enabled (disabled by default).") + @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.") public String getFailedIndexes() { return failedIndexes; @@ -232,11 +232,11 @@ public V1JobStatus ready(Integer ready) { } /** - * The number of pods which have a Ready condition. This field is beta-level. The job controller populates the field when the feature gate JobReadyPods is enabled (enabled by default). + * The number of active pods which have a Ready condition and are not terminating (without a deletionTimestamp). * @return ready **/ @javax.annotation.Nullable - @ApiModelProperty(value = "The number of pods which have a Ready condition. This field is beta-level. The job controller populates the field when the feature gate JobReadyPods is enabled (enabled by default).") + @ApiModelProperty(value = "The number of active pods which have a Ready condition and are not terminating (without a deletionTimestamp).") public Integer getReady() { return ready; @@ -255,11 +255,11 @@ public V1JobStatus startTime(OffsetDateTime startTime) { } /** - * 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. + * 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. * @return startTime **/ @javax.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.") + @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; @@ -278,11 +278,11 @@ public V1JobStatus succeeded(Integer succeeded) { } /** - * The number of pods which reached phase Succeeded. + * 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. * @return succeeded **/ @javax.annotation.Nullable - @ApiModelProperty(value = "The number of pods which reached phase Succeeded.") + @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; @@ -301,11 +301,11 @@ public V1JobStatus terminating(Integer terminating) { } /** - * The number of pods which are terminating (in phase Pending or Running and have a deletionTimestamp). This field is alpha-level. The job controller populates the field when the feature gate JobPodReplacementPolicy is enabled (disabled by default). + * 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). * @return terminating **/ @javax.annotation.Nullable - @ApiModelProperty(value = "The number of pods which are terminating (in phase Pending or Running and have a deletionTimestamp). This field is alpha-level. The job controller populates the field when the feature gate JobPodReplacementPolicy is enabled (disabled by default).") + @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; 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 b2a628983d..4448643f81 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -29,7 +29,7 @@ * JobTemplateSpec describes the data a Job should have when created from a template */ @ApiModel(description = "JobTemplateSpec describes the data a Job should have when created from a template") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") public class V1JobTemplateSpec { public static final String SERIALIZED_NAME_METADATA = "metadata"; @SerializedName(SERIALIZED_NAME_METADATA) 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 ff312e0734..92e6185547 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -27,7 +27,7 @@ * Maps a string key to a path within a volume. */ @ApiModel(description = "Maps a string key to a path within a volume.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") public class V1KeyToPath { public static final String SERIALIZED_NAME_KEY = "key"; @SerializedName(SERIALIZED_NAME_KEY) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1LabelSelector.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1LabelSelector.java index 8d86fa951d..76821086ac 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -32,7 +32,7 @@ * 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. */ @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.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") public class V1LabelSelector { public static final String SERIALIZED_NAME_MATCH_EXPRESSIONS = "matchExpressions"; @SerializedName(SERIALIZED_NAME_MATCH_EXPRESSIONS) 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 new file mode 100644 index 0000000000..ed38108c75 --- /dev/null +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1LabelSelectorAttributes.java @@ -0,0 +1,138 @@ +/* +Copyright 2025 The Kubernetes Authors. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at +http://www.apache.org/licenses/LICENSE-2.0 +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ +package io.kubernetes.client.openapi.models; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +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.List; + +/** + * 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. + */ +@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.") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +public class V1LabelSelectorAttributes { + public static final String SERIALIZED_NAME_RAW_SELECTOR = "rawSelector"; + @SerializedName(SERIALIZED_NAME_RAW_SELECTOR) + private String rawSelector; + + public static final String SERIALIZED_NAME_REQUIREMENTS = "requirements"; + @SerializedName(SERIALIZED_NAME_REQUIREMENTS) + private List requirements = null; + + + public V1LabelSelectorAttributes rawSelector(String rawSelector) { + + this.rawSelector = rawSelector; + return this; + } + + /** + * 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. + * @return rawSelector + **/ + @javax.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; + } + + + public void setRawSelector(String rawSelector) { + this.rawSelector = rawSelector; + } + + + public V1LabelSelectorAttributes requirements(List requirements) { + + this.requirements = requirements; + return this; + } + + public V1LabelSelectorAttributes addRequirementsItem(V1LabelSelectorRequirement requirementsItem) { + if (this.requirements == null) { + this.requirements = new ArrayList<>(); + } + this.requirements.add(requirementsItem); + return this; + } + + /** + * 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. + * @return requirements + **/ + @javax.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; + } + + + public void setRequirements(List requirements) { + this.requirements = requirements; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V1LabelSelectorAttributes v1LabelSelectorAttributes = (V1LabelSelectorAttributes) o; + return Objects.equals(this.rawSelector, v1LabelSelectorAttributes.rawSelector) && + Objects.equals(this.requirements, v1LabelSelectorAttributes.requirements); + } + + @Override + public int hashCode() { + return Objects.hash(rawSelector, requirements); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class V1LabelSelectorAttributes {\n"); + sb.append(" rawSelector: ").append(toIndentedString(rawSelector)).append("\n"); + sb.append(" requirements: ").append(toIndentedString(requirements)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} 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 63b59385f2..cc54f84a8d 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -29,7 +29,7 @@ * A label selector requirement is a selector that contains values, a key, and an operator that relates the key and values. */ @ApiModel(description = "A label selector requirement is a selector that contains values, a key, and an operator that relates the key and values.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") public class V1LabelSelectorRequirement { public static final String SERIALIZED_NAME_KEY = "key"; @SerializedName(SERIALIZED_NAME_KEY) 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 2faebcb63e..ad5130f5b1 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -29,7 +29,7 @@ * Lease defines a lease concept. */ @ApiModel(description = "Lease defines a lease concept.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") public class V1Lease implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) 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 6f8a4edbd5..2c64a26bb5 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -31,7 +31,7 @@ * LeaseList is a list of Lease objects. */ @ApiModel(description = "LeaseList is a list of Lease objects.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") public class V1LeaseList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) 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 3edf6e728b..58b10d7995 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -28,7 +28,7 @@ * LeaseSpec is a specification of a Lease. */ @ApiModel(description = "LeaseSpec is a specification of a Lease.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") public class V1LeaseSpec { public static final String SERIALIZED_NAME_ACQUIRE_TIME = "acquireTime"; @SerializedName(SERIALIZED_NAME_ACQUIRE_TIME) @@ -46,10 +46,18 @@ public class V1LeaseSpec { @SerializedName(SERIALIZED_NAME_LEASE_TRANSITIONS) private Integer leaseTransitions; + public static final String SERIALIZED_NAME_PREFERRED_HOLDER = "preferredHolder"; + @SerializedName(SERIALIZED_NAME_PREFERRED_HOLDER) + private String preferredHolder; + public static final String SERIALIZED_NAME_RENEW_TIME = "renewTime"; @SerializedName(SERIALIZED_NAME_RENEW_TIME) private OffsetDateTime renewTime; + public static final String SERIALIZED_NAME_STRATEGY = "strategy"; + @SerializedName(SERIALIZED_NAME_STRATEGY) + private String strategy; + public V1LeaseSpec acquireTime(OffsetDateTime acquireTime) { @@ -81,11 +89,11 @@ public V1LeaseSpec holderIdentity(String holderIdentity) { } /** - * holderIdentity contains the identity of the holder of a current lease. + * 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. * @return holderIdentity **/ @javax.annotation.Nullable - @ApiModelProperty(value = "holderIdentity contains the identity of the holder of a current lease.") + @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; @@ -104,11 +112,11 @@ public V1LeaseSpec leaseDurationSeconds(Integer leaseDurationSeconds) { } /** - * leaseDurationSeconds is a duration that candidates for a lease need to wait to force acquire it. This is measure against time of last observed renewTime. + * 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. * @return leaseDurationSeconds **/ @javax.annotation.Nullable - @ApiModelProperty(value = "leaseDurationSeconds is a duration that candidates for a lease need to wait to force acquire it. This is measure against time of last observed renewTime.") + @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; @@ -143,6 +151,29 @@ public void setLeaseTransitions(Integer leaseTransitions) { } + public V1LeaseSpec preferredHolder(String preferredHolder) { + + this.preferredHolder = preferredHolder; + return this; + } + + /** + * 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. + * @return preferredHolder + **/ + @javax.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; + } + + + public void setPreferredHolder(String preferredHolder) { + this.preferredHolder = preferredHolder; + } + + public V1LeaseSpec renewTime(OffsetDateTime renewTime) { this.renewTime = renewTime; @@ -166,6 +197,29 @@ public void setRenewTime(OffsetDateTime renewTime) { } + public V1LeaseSpec strategy(String strategy) { + + this.strategy = strategy; + return this; + } + + /** + * 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. + * @return strategy + **/ + @javax.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; + } + + + public void setStrategy(String strategy) { + this.strategy = strategy; + } + + @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -179,12 +233,14 @@ public boolean equals(java.lang.Object o) { Objects.equals(this.holderIdentity, v1LeaseSpec.holderIdentity) && Objects.equals(this.leaseDurationSeconds, v1LeaseSpec.leaseDurationSeconds) && Objects.equals(this.leaseTransitions, v1LeaseSpec.leaseTransitions) && - Objects.equals(this.renewTime, v1LeaseSpec.renewTime); + Objects.equals(this.preferredHolder, v1LeaseSpec.preferredHolder) && + Objects.equals(this.renewTime, v1LeaseSpec.renewTime) && + Objects.equals(this.strategy, v1LeaseSpec.strategy); } @Override public int hashCode() { - return Objects.hash(acquireTime, holderIdentity, leaseDurationSeconds, leaseTransitions, renewTime); + return Objects.hash(acquireTime, holderIdentity, leaseDurationSeconds, leaseTransitions, preferredHolder, renewTime, strategy); } @@ -196,7 +252,9 @@ public String toString() { sb.append(" holderIdentity: ").append(toIndentedString(holderIdentity)).append("\n"); sb.append(" leaseDurationSeconds: ").append(toIndentedString(leaseDurationSeconds)).append("\n"); sb.append(" leaseTransitions: ").append(toIndentedString(leaseTransitions)).append("\n"); + sb.append(" preferredHolder: ").append(toIndentedString(preferredHolder)).append("\n"); sb.append(" renewTime: ").append(toIndentedString(renewTime)).append("\n"); + sb.append(" strategy: ").append(toIndentedString(strategy)).append("\n"); sb.append("}"); return sb.toString(); } 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 1586a04de3..8e2156b70a 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -28,7 +28,7 @@ * Lifecycle describes actions that the management system should take in response to container lifecycle events. For the PostStart and PreStop lifecycle handlers, management of the container blocks until the action is complete, unless the container process fails, in which case the handler is aborted. */ @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.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") public class V1Lifecycle { public static final String SERIALIZED_NAME_POST_START = "postStart"; @SerializedName(SERIALIZED_NAME_POST_START) @@ -38,6 +38,10 @@ public class V1Lifecycle { @SerializedName(SERIALIZED_NAME_PRE_STOP) private V1LifecycleHandler preStop; + public static final String SERIALIZED_NAME_STOP_SIGNAL = "stopSignal"; + @SerializedName(SERIALIZED_NAME_STOP_SIGNAL) + private String stopSignal; + public V1Lifecycle postStart(V1LifecycleHandler postStart) { @@ -85,6 +89,29 @@ public void setPreStop(V1LifecycleHandler preStop) { } + public V1Lifecycle stopSignal(String stopSignal) { + + this.stopSignal = stopSignal; + return this; + } + + /** + * StopSignal defines which signal will be sent to a container when it is being stopped. If not specified, the default is defined by the container runtime in use. StopSignal can only be set for Pods with a non-empty .spec.os.name + * @return stopSignal + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "StopSignal defines which signal will be sent to a container when it is being stopped. If not specified, the default is defined by the container runtime in use. StopSignal can only be set for Pods with a non-empty .spec.os.name") + + public String getStopSignal() { + return stopSignal; + } + + + public void setStopSignal(String stopSignal) { + this.stopSignal = stopSignal; + } + + @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -95,12 +122,13 @@ public boolean equals(java.lang.Object o) { } V1Lifecycle v1Lifecycle = (V1Lifecycle) o; return Objects.equals(this.postStart, v1Lifecycle.postStart) && - Objects.equals(this.preStop, v1Lifecycle.preStop); + Objects.equals(this.preStop, v1Lifecycle.preStop) && + Objects.equals(this.stopSignal, v1Lifecycle.stopSignal); } @Override public int hashCode() { - return Objects.hash(postStart, preStop); + return Objects.hash(postStart, preStop, stopSignal); } @@ -110,6 +138,7 @@ public String toString() { sb.append("class V1Lifecycle {\n"); sb.append(" postStart: ").append(toIndentedString(postStart)).append("\n"); sb.append(" preStop: ").append(toIndentedString(preStop)).append("\n"); + sb.append(" stopSignal: ").append(toIndentedString(stopSignal)).append("\n"); sb.append("}"); return sb.toString(); } 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 d75d68c64a..dfb135b383 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,7 @@ import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1ExecAction; 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; @@ -30,7 +31,7 @@ * 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. */ @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.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") public class V1LifecycleHandler { public static final String SERIALIZED_NAME_EXEC = "exec"; @SerializedName(SERIALIZED_NAME_EXEC) @@ -40,6 +41,10 @@ public class V1LifecycleHandler { @SerializedName(SERIALIZED_NAME_HTTP_GET) private V1HTTPGetAction httpGet; + public static final String SERIALIZED_NAME_SLEEP = "sleep"; + @SerializedName(SERIALIZED_NAME_SLEEP) + private V1SleepAction sleep; + public static final String SERIALIZED_NAME_TCP_SOCKET = "tcpSocket"; @SerializedName(SERIALIZED_NAME_TCP_SOCKET) private V1TCPSocketAction tcpSocket; @@ -91,6 +96,29 @@ public void setHttpGet(V1HTTPGetAction httpGet) { } + public V1LifecycleHandler sleep(V1SleepAction sleep) { + + this.sleep = sleep; + return this; + } + + /** + * Get sleep + * @return sleep + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public V1SleepAction getSleep() { + return sleep; + } + + + public void setSleep(V1SleepAction sleep) { + this.sleep = sleep; + } + + public V1LifecycleHandler tcpSocket(V1TCPSocketAction tcpSocket) { this.tcpSocket = tcpSocket; @@ -125,12 +153,13 @@ public boolean equals(java.lang.Object o) { V1LifecycleHandler v1LifecycleHandler = (V1LifecycleHandler) o; return Objects.equals(this.exec, v1LifecycleHandler.exec) && Objects.equals(this.httpGet, v1LifecycleHandler.httpGet) && + Objects.equals(this.sleep, v1LifecycleHandler.sleep) && Objects.equals(this.tcpSocket, v1LifecycleHandler.tcpSocket); } @Override public int hashCode() { - return Objects.hash(exec, httpGet, tcpSocket); + return Objects.hash(exec, httpGet, sleep, tcpSocket); } @@ -140,6 +169,7 @@ public String toString() { sb.append("class V1LifecycleHandler {\n"); sb.append(" exec: ").append(toIndentedString(exec)).append("\n"); sb.append(" httpGet: ").append(toIndentedString(httpGet)).append("\n"); + sb.append(" sleep: ").append(toIndentedString(sleep)).append("\n"); sb.append(" tcpSocket: ").append(toIndentedString(tcpSocket)).append("\n"); sb.append("}"); return sb.toString(); 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 0701d70388..17e5fa748b 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -29,7 +29,7 @@ * LimitRange sets resource usage limits for each kind of resource in a Namespace. */ @ApiModel(description = "LimitRange sets resource usage limits for each kind of resource in a Namespace.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") public class V1LimitRange implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) 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 5279648a14..b812d8c51c 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -31,7 +31,7 @@ * LimitRangeItem defines a min/max usage limit for any resource that matches on kind. */ @ApiModel(description = "LimitRangeItem defines a min/max usage limit for any resource that matches on kind.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") public class V1LimitRangeItem { public static final String SERIALIZED_NAME_DEFAULT = "default"; @SerializedName(SERIALIZED_NAME_DEFAULT) 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 8337c621cb..f4f57147d5 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -31,7 +31,7 @@ * LimitRangeList is a list of LimitRange items. */ @ApiModel(description = "LimitRangeList is a list of LimitRange items.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") public class V1LimitRangeList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) 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 0a9eb8c891..c8b9cd2325 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -30,7 +30,7 @@ * LimitRangeSpec defines a min/max usage limit for resources that match on kind. */ @ApiModel(description = "LimitRangeSpec defines a min/max usage limit for resources that match on kind.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") public class V1LimitRangeSpec { public static final String SERIALIZED_NAME_LIMITS = "limits"; @SerializedName(SERIALIZED_NAME_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 new file mode 100644 index 0000000000..287f6a3284 --- /dev/null +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1LimitResponse.java @@ -0,0 +1,127 @@ +/* +Copyright 2025 The Kubernetes Authors. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at +http://www.apache.org/licenses/LICENSE-2.0 +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ +package io.kubernetes.client.openapi.models; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +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; + +/** + * LimitResponse defines how to handle requests that can not be executed right now. + */ +@ApiModel(description = "LimitResponse defines how to handle requests that can not be executed right now.") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +public class V1LimitResponse { + public static final String SERIALIZED_NAME_QUEUING = "queuing"; + @SerializedName(SERIALIZED_NAME_QUEUING) + private V1QueuingConfiguration queuing; + + public static final String SERIALIZED_NAME_TYPE = "type"; + @SerializedName(SERIALIZED_NAME_TYPE) + private String type; + + + public V1LimitResponse queuing(V1QueuingConfiguration queuing) { + + this.queuing = queuing; + return this; + } + + /** + * Get queuing + * @return queuing + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public V1QueuingConfiguration getQueuing() { + return queuing; + } + + + public void setQueuing(V1QueuingConfiguration queuing) { + this.queuing = queuing; + } + + + public V1LimitResponse type(String type) { + + this.type = type; + return this; + } + + /** + * `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. + * @return type + **/ + @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; + } + + + public void setType(String type) { + this.type = type; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V1LimitResponse v1LimitResponse = (V1LimitResponse) o; + return Objects.equals(this.queuing, v1LimitResponse.queuing) && + Objects.equals(this.type, v1LimitResponse.type); + } + + @Override + public int hashCode() { + return Objects.hash(queuing, type); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class V1LimitResponse {\n"); + sb.append(" queuing: ").append(toIndentedString(queuing)).append("\n"); + sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} 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 new file mode 100644 index 0000000000..9c07dcd8e4 --- /dev/null +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1LimitedPriorityLevelConfiguration.java @@ -0,0 +1,186 @@ +/* +Copyright 2025 The Kubernetes Authors. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at +http://www.apache.org/licenses/LICENSE-2.0 +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ +package io.kubernetes.client.openapi.models; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +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; + +/** + * 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? + */ +@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?") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +public class V1LimitedPriorityLevelConfiguration { + public static final String SERIALIZED_NAME_BORROWING_LIMIT_PERCENT = "borrowingLimitPercent"; + @SerializedName(SERIALIZED_NAME_BORROWING_LIMIT_PERCENT) + private Integer borrowingLimitPercent; + + public static final String SERIALIZED_NAME_LENDABLE_PERCENT = "lendablePercent"; + @SerializedName(SERIALIZED_NAME_LENDABLE_PERCENT) + private Integer lendablePercent; + + public static final String SERIALIZED_NAME_LIMIT_RESPONSE = "limitResponse"; + @SerializedName(SERIALIZED_NAME_LIMIT_RESPONSE) + private V1LimitResponse limitResponse; + + public static final String SERIALIZED_NAME_NOMINAL_CONCURRENCY_SHARES = "nominalConcurrencyShares"; + @SerializedName(SERIALIZED_NAME_NOMINAL_CONCURRENCY_SHARES) + private Integer nominalConcurrencyShares; + + + public V1LimitedPriorityLevelConfiguration borrowingLimitPercent(Integer borrowingLimitPercent) { + + this.borrowingLimitPercent = borrowingLimitPercent; + return this; + } + + /** + * `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. + * @return borrowingLimitPercent + **/ + @javax.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; + } + + + public void setBorrowingLimitPercent(Integer borrowingLimitPercent) { + this.borrowingLimitPercent = borrowingLimitPercent; + } + + + public V1LimitedPriorityLevelConfiguration lendablePercent(Integer lendablePercent) { + + this.lendablePercent = lendablePercent; + return this; + } + + /** + * `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 ) + * @return lendablePercent + **/ + @javax.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; + } + + + public void setLendablePercent(Integer lendablePercent) { + this.lendablePercent = lendablePercent; + } + + + public V1LimitedPriorityLevelConfiguration limitResponse(V1LimitResponse limitResponse) { + + this.limitResponse = limitResponse; + return this; + } + + /** + * Get limitResponse + * @return limitResponse + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public V1LimitResponse getLimitResponse() { + return limitResponse; + } + + + public void setLimitResponse(V1LimitResponse limitResponse) { + this.limitResponse = limitResponse; + } + + + public V1LimitedPriorityLevelConfiguration nominalConcurrencyShares(Integer nominalConcurrencyShares) { + + this.nominalConcurrencyShares = nominalConcurrencyShares; + return this; + } + + /** + * `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) + * @return nominalConcurrencyShares + **/ + @javax.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; + } + + + public void setNominalConcurrencyShares(Integer nominalConcurrencyShares) { + this.nominalConcurrencyShares = nominalConcurrencyShares; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V1LimitedPriorityLevelConfiguration v1LimitedPriorityLevelConfiguration = (V1LimitedPriorityLevelConfiguration) o; + return Objects.equals(this.borrowingLimitPercent, v1LimitedPriorityLevelConfiguration.borrowingLimitPercent) && + Objects.equals(this.lendablePercent, v1LimitedPriorityLevelConfiguration.lendablePercent) && + Objects.equals(this.limitResponse, v1LimitedPriorityLevelConfiguration.limitResponse) && + Objects.equals(this.nominalConcurrencyShares, v1LimitedPriorityLevelConfiguration.nominalConcurrencyShares); + } + + @Override + public int hashCode() { + return Objects.hash(borrowingLimitPercent, lendablePercent, limitResponse, nominalConcurrencyShares); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class V1LimitedPriorityLevelConfiguration {\n"); + sb.append(" borrowingLimitPercent: ").append(toIndentedString(borrowingLimitPercent)).append("\n"); + sb.append(" lendablePercent: ").append(toIndentedString(lendablePercent)).append("\n"); + sb.append(" limitResponse: ").append(toIndentedString(limitResponse)).append("\n"); + sb.append(" nominalConcurrencyShares: ").append(toIndentedString(nominalConcurrencyShares)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} 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 new file mode 100644 index 0000000000..d5d6650f66 --- /dev/null +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1LinuxContainerUser.java @@ -0,0 +1,164 @@ +/* +Copyright 2025 The Kubernetes Authors. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at +http://www.apache.org/licenses/LICENSE-2.0 +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ +package io.kubernetes.client.openapi.models; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +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.List; + +/** + * LinuxContainerUser represents user identity information in Linux containers + */ +@ApiModel(description = "LinuxContainerUser represents user identity information in Linux containers") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +public class V1LinuxContainerUser { + public static final String SERIALIZED_NAME_GID = "gid"; + @SerializedName(SERIALIZED_NAME_GID) + private Long gid; + + public static final String SERIALIZED_NAME_SUPPLEMENTAL_GROUPS = "supplementalGroups"; + @SerializedName(SERIALIZED_NAME_SUPPLEMENTAL_GROUPS) + private List supplementalGroups = null; + + public static final String SERIALIZED_NAME_UID = "uid"; + @SerializedName(SERIALIZED_NAME_UID) + private Long uid; + + + public V1LinuxContainerUser gid(Long gid) { + + this.gid = gid; + return this; + } + + /** + * GID is the primary gid initially attached to the first process in the container + * @return gid + **/ + @ApiModelProperty(required = true, value = "GID is the primary gid initially attached to the first process in the container") + + public Long getGid() { + return gid; + } + + + public void setGid(Long gid) { + this.gid = gid; + } + + + public V1LinuxContainerUser supplementalGroups(List supplementalGroups) { + + this.supplementalGroups = supplementalGroups; + return this; + } + + public V1LinuxContainerUser addSupplementalGroupsItem(Long supplementalGroupsItem) { + if (this.supplementalGroups == null) { + this.supplementalGroups = new ArrayList<>(); + } + this.supplementalGroups.add(supplementalGroupsItem); + return this; + } + + /** + * SupplementalGroups are the supplemental groups initially attached to the first process in the container + * @return supplementalGroups + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "SupplementalGroups are the supplemental groups initially attached to the first process in the container") + + public List getSupplementalGroups() { + return supplementalGroups; + } + + + public void setSupplementalGroups(List supplementalGroups) { + this.supplementalGroups = supplementalGroups; + } + + + public V1LinuxContainerUser uid(Long uid) { + + this.uid = uid; + return this; + } + + /** + * UID is the primary uid initially attached to the first process in the container + * @return uid + **/ + @ApiModelProperty(required = true, value = "UID is the primary uid initially attached to the first process in the container") + + public Long getUid() { + return uid; + } + + + public void setUid(Long uid) { + this.uid = uid; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V1LinuxContainerUser v1LinuxContainerUser = (V1LinuxContainerUser) o; + return Objects.equals(this.gid, v1LinuxContainerUser.gid) && + Objects.equals(this.supplementalGroups, v1LinuxContainerUser.supplementalGroups) && + Objects.equals(this.uid, v1LinuxContainerUser.uid); + } + + @Override + public int hashCode() { + return Objects.hash(gid, supplementalGroups, uid); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class V1LinuxContainerUser {\n"); + sb.append(" gid: ").append(toIndentedString(gid)).append("\n"); + sb.append(" supplementalGroups: ").append(toIndentedString(supplementalGroups)).append("\n"); + sb.append(" uid: ").append(toIndentedString(uid)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} 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 8852716c20..8a7f6741cb 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -27,7 +27,7 @@ * ListMeta describes metadata that synthetic resources must have, including lists and various status objects. A resource may have only one of {ObjectMeta, ListMeta}. */ @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}.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") public class V1ListMeta { public static final String SERIALIZED_NAME_CONTINUE = "continue"; @SerializedName(SERIALIZED_NAME_CONTINUE) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1LoadBalancerIngress.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1LoadBalancerIngress.java index 11afba5ad8..521b7c98b2 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -30,7 +30,7 @@ * LoadBalancerIngress represents the status of a load-balancer ingress point: traffic intended for the service should be sent to an ingress point. */ @ApiModel(description = "LoadBalancerIngress represents the status of a load-balancer ingress point: traffic intended for the service should be sent to an ingress point.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") public class V1LoadBalancerIngress { public static final String SERIALIZED_NAME_HOSTNAME = "hostname"; @SerializedName(SERIALIZED_NAME_HOSTNAME) @@ -40,6 +40,10 @@ public class V1LoadBalancerIngress { @SerializedName(SERIALIZED_NAME_IP) private String ip; + public static final String SERIALIZED_NAME_IP_MODE = "ipMode"; + @SerializedName(SERIALIZED_NAME_IP_MODE) + private String ipMode; + public static final String SERIALIZED_NAME_PORTS = "ports"; @SerializedName(SERIALIZED_NAME_PORTS) private List ports = null; @@ -91,6 +95,29 @@ public void setIp(String ip) { } + public V1LoadBalancerIngress ipMode(String ipMode) { + + this.ipMode = ipMode; + return this; + } + + /** + * 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. + * @return ipMode + **/ + @javax.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; + } + + + public void setIpMode(String ipMode) { + this.ipMode = ipMode; + } + + public V1LoadBalancerIngress ports(List ports) { this.ports = ports; @@ -133,12 +160,13 @@ public boolean equals(java.lang.Object o) { V1LoadBalancerIngress v1LoadBalancerIngress = (V1LoadBalancerIngress) o; return Objects.equals(this.hostname, v1LoadBalancerIngress.hostname) && Objects.equals(this.ip, v1LoadBalancerIngress.ip) && + Objects.equals(this.ipMode, v1LoadBalancerIngress.ipMode) && Objects.equals(this.ports, v1LoadBalancerIngress.ports); } @Override public int hashCode() { - return Objects.hash(hostname, ip, ports); + return Objects.hash(hostname, ip, ipMode, ports); } @@ -148,6 +176,7 @@ public String toString() { sb.append("class V1LoadBalancerIngress {\n"); sb.append(" hostname: ").append(toIndentedString(hostname)).append("\n"); sb.append(" ip: ").append(toIndentedString(ip)).append("\n"); + sb.append(" ipMode: ").append(toIndentedString(ipMode)).append("\n"); sb.append(" ports: ").append(toIndentedString(ports)).append("\n"); sb.append("}"); return sb.toString(); 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 a2934fecf6..f95e71cf43 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -30,7 +30,7 @@ * LoadBalancerStatus represents the status of a load-balancer. */ @ApiModel(description = "LoadBalancerStatus represents the status of a load-balancer.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") public class V1LoadBalancerStatus { public static final String SERIALIZED_NAME_INGRESS = "ingress"; @SerializedName(SERIALIZED_NAME_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 83e58a94f6..3c981ae010 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -27,7 +27,7 @@ * LocalObjectReference contains enough information to let you locate the referenced object inside the same namespace. */ @ApiModel(description = "LocalObjectReference contains enough information to let you locate the referenced object inside the same namespace.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") public class V1LocalObjectReference { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) @@ -41,11 +41,11 @@ public V1LocalObjectReference name(String name) { } /** - * Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * 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 * @return name **/ @javax.annotation.Nullable - @ApiModelProperty(value = "Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names") + @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 1471f08322..829c32baea 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -30,7 +30,7 @@ * 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. */ @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.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") public class V1LocalSubjectAccessReview implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) 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 50440a363b..b1e46b0293 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,10 +24,10 @@ import java.io.IOException; /** - * Local represents directly-attached storage with node affinity (Beta feature) + * Local represents directly-attached storage with node affinity */ -@ApiModel(description = "Local represents directly-attached storage with node affinity (Beta feature)") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") +@ApiModel(description = "Local represents directly-attached storage with node affinity") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") public class V1LocalVolumeSource { public static final String SERIALIZED_NAME_FS_TYPE = "fsType"; @SerializedName(SERIALIZED_NAME_FS_TYPE) 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 946d0d712b..1e059992be 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -28,7 +28,7 @@ * ManagedFieldsEntry is a workflow-id, a FieldSet and the group version of the resource that the fieldset applies to. */ @ApiModel(description = "ManagedFieldsEntry is a workflow-id, a FieldSet and the group version of the resource that the fieldset applies to.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") public class V1ManagedFieldsEntry { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) 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 d855099a97..b68dd0f595 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -27,7 +27,7 @@ * MatchCondition represents a condition which must by fulfilled for a request to be sent to a webhook. */ @ApiModel(description = "MatchCondition represents a condition which must by fulfilled for a request to be sent to a webhook.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") public class V1MatchCondition { public static final String SERIALIZED_NAME_EXPRESSION = "expression"; @SerializedName(SERIALIZED_NAME_EXPRESSION) 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 new file mode 100644 index 0000000000..122c3e9274 --- /dev/null +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1MatchResources.java @@ -0,0 +1,234 @@ +/* +Copyright 2025 The Kubernetes Authors. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at +http://www.apache.org/licenses/LICENSE-2.0 +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ +package io.kubernetes.client.openapi.models; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +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.List; + +/** + * 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) + */ +@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)") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +public class V1MatchResources { + public static final String SERIALIZED_NAME_EXCLUDE_RESOURCE_RULES = "excludeResourceRules"; + @SerializedName(SERIALIZED_NAME_EXCLUDE_RESOURCE_RULES) + private List excludeResourceRules = null; + + public static final String SERIALIZED_NAME_MATCH_POLICY = "matchPolicy"; + @SerializedName(SERIALIZED_NAME_MATCH_POLICY) + private String matchPolicy; + + public static final String SERIALIZED_NAME_NAMESPACE_SELECTOR = "namespaceSelector"; + @SerializedName(SERIALIZED_NAME_NAMESPACE_SELECTOR) + private V1LabelSelector namespaceSelector; + + public static final String SERIALIZED_NAME_OBJECT_SELECTOR = "objectSelector"; + @SerializedName(SERIALIZED_NAME_OBJECT_SELECTOR) + private V1LabelSelector objectSelector; + + public static final String SERIALIZED_NAME_RESOURCE_RULES = "resourceRules"; + @SerializedName(SERIALIZED_NAME_RESOURCE_RULES) + private List resourceRules = null; + + + public V1MatchResources excludeResourceRules(List excludeResourceRules) { + + this.excludeResourceRules = excludeResourceRules; + return this; + } + + public V1MatchResources addExcludeResourceRulesItem(V1NamedRuleWithOperations excludeResourceRulesItem) { + if (this.excludeResourceRules == null) { + this.excludeResourceRules = new ArrayList<>(); + } + this.excludeResourceRules.add(excludeResourceRulesItem); + return this; + } + + /** + * 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) + * @return excludeResourceRules + **/ + @javax.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; + } + + + public void setExcludeResourceRules(List excludeResourceRules) { + this.excludeResourceRules = excludeResourceRules; + } + + + public V1MatchResources matchPolicy(String matchPolicy) { + + this.matchPolicy = matchPolicy; + return this; + } + + /** + * 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\" + * @return matchPolicy + **/ + @javax.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; + } + + + public void setMatchPolicy(String matchPolicy) { + this.matchPolicy = matchPolicy; + } + + + public V1MatchResources namespaceSelector(V1LabelSelector namespaceSelector) { + + this.namespaceSelector = namespaceSelector; + return this; + } + + /** + * Get namespaceSelector + * @return namespaceSelector + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public V1LabelSelector getNamespaceSelector() { + return namespaceSelector; + } + + + public void setNamespaceSelector(V1LabelSelector namespaceSelector) { + this.namespaceSelector = namespaceSelector; + } + + + public V1MatchResources objectSelector(V1LabelSelector objectSelector) { + + this.objectSelector = objectSelector; + return this; + } + + /** + * Get objectSelector + * @return objectSelector + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public V1LabelSelector getObjectSelector() { + return objectSelector; + } + + + public void setObjectSelector(V1LabelSelector objectSelector) { + this.objectSelector = objectSelector; + } + + + public V1MatchResources resourceRules(List resourceRules) { + + this.resourceRules = resourceRules; + return this; + } + + public V1MatchResources addResourceRulesItem(V1NamedRuleWithOperations resourceRulesItem) { + if (this.resourceRules == null) { + this.resourceRules = new ArrayList<>(); + } + this.resourceRules.add(resourceRulesItem); + return this; + } + + /** + * ResourceRules describes what operations on what resources/subresources the ValidatingAdmissionPolicy matches. The policy cares about an operation if it matches _any_ Rule. + * @return resourceRules + **/ + @javax.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; + } + + + public void setResourceRules(List resourceRules) { + this.resourceRules = resourceRules; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V1MatchResources v1MatchResources = (V1MatchResources) o; + return Objects.equals(this.excludeResourceRules, v1MatchResources.excludeResourceRules) && + Objects.equals(this.matchPolicy, v1MatchResources.matchPolicy) && + Objects.equals(this.namespaceSelector, v1MatchResources.namespaceSelector) && + Objects.equals(this.objectSelector, v1MatchResources.objectSelector) && + Objects.equals(this.resourceRules, v1MatchResources.resourceRules); + } + + @Override + public int hashCode() { + return Objects.hash(excludeResourceRules, matchPolicy, namespaceSelector, objectSelector, resourceRules); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class V1MatchResources {\n"); + sb.append(" excludeResourceRules: ").append(toIndentedString(excludeResourceRules)).append("\n"); + sb.append(" matchPolicy: ").append(toIndentedString(matchPolicy)).append("\n"); + sb.append(" namespaceSelector: ").append(toIndentedString(namespaceSelector)).append("\n"); + sb.append(" objectSelector: ").append(toIndentedString(objectSelector)).append("\n"); + sb.append(" resourceRules: ").append(toIndentedString(resourceRules)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} 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 new file mode 100644 index 0000000000..c136698ad4 --- /dev/null +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ModifyVolumeStatus.java @@ -0,0 +1,126 @@ +/* +Copyright 2025 The Kubernetes Authors. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at +http://www.apache.org/licenses/LICENSE-2.0 +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ +package io.kubernetes.client.openapi.models; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +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; + +/** + * ModifyVolumeStatus represents the status object of ControllerModifyVolume operation + */ +@ApiModel(description = "ModifyVolumeStatus represents the status object of ControllerModifyVolume operation") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +public class V1ModifyVolumeStatus { + public static final String SERIALIZED_NAME_STATUS = "status"; + @SerializedName(SERIALIZED_NAME_STATUS) + private String status; + + public static final String SERIALIZED_NAME_TARGET_VOLUME_ATTRIBUTES_CLASS_NAME = "targetVolumeAttributesClassName"; + @SerializedName(SERIALIZED_NAME_TARGET_VOLUME_ATTRIBUTES_CLASS_NAME) + private String targetVolumeAttributesClassName; + + + public V1ModifyVolumeStatus status(String status) { + + this.status = status; + return this; + } + + /** + * 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. + * @return status + **/ + @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; + } + + + public void setStatus(String status) { + this.status = status; + } + + + public V1ModifyVolumeStatus targetVolumeAttributesClassName(String targetVolumeAttributesClassName) { + + this.targetVolumeAttributesClassName = targetVolumeAttributesClassName; + return this; + } + + /** + * targetVolumeAttributesClassName is the name of the VolumeAttributesClass the PVC currently being reconciled + * @return targetVolumeAttributesClassName + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "targetVolumeAttributesClassName is the name of the VolumeAttributesClass the PVC currently being reconciled") + + public String getTargetVolumeAttributesClassName() { + return targetVolumeAttributesClassName; + } + + + public void setTargetVolumeAttributesClassName(String targetVolumeAttributesClassName) { + this.targetVolumeAttributesClassName = targetVolumeAttributesClassName; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V1ModifyVolumeStatus v1ModifyVolumeStatus = (V1ModifyVolumeStatus) o; + return Objects.equals(this.status, v1ModifyVolumeStatus.status) && + Objects.equals(this.targetVolumeAttributesClassName, v1ModifyVolumeStatus.targetVolumeAttributesClassName); + } + + @Override + public int hashCode() { + return Objects.hash(status, targetVolumeAttributesClassName); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class V1ModifyVolumeStatus {\n"); + sb.append(" status: ").append(toIndentedString(status)).append("\n"); + sb.append(" targetVolumeAttributesClassName: ").append(toIndentedString(targetVolumeAttributesClassName)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} 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 2c54a2d00c..5933b7a03e 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -33,7 +33,7 @@ * MutatingWebhook describes an admission webhook and the resources and operations it applies to. */ @ApiModel(description = "MutatingWebhook describes an admission webhook and the resources and operations it applies to.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") public class V1MutatingWebhook { public static final String SERIALIZED_NAME_ADMISSION_REVIEW_VERSIONS = "admissionReviewVersions"; @SerializedName(SERIALIZED_NAME_ADMISSION_REVIEW_VERSIONS) @@ -171,11 +171,11 @@ public V1MutatingWebhook addMatchConditionsItem(V1MatchCondition matchConditions } /** - * 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 This is a beta feature and managed by the AdmissionWebhookMatchConditions feature gate. + * 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 * @return matchConditions **/ @javax.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 This is a beta feature and managed by the AdmissionWebhookMatchConditions feature gate.") + @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; 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 f9db9116a9..b48cec5418 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -31,7 +31,7 @@ * MutatingWebhookConfiguration describes the configuration of and admission webhook that accept or reject and may change the object. */ @ApiModel(description = "MutatingWebhookConfiguration describes the configuration of and admission webhook that accept or reject and may change the object.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") public class V1MutatingWebhookConfiguration implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) 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 6762a25d02..4a0712a9d0 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -31,7 +31,7 @@ * MutatingWebhookConfigurationList is a list of MutatingWebhookConfiguration. */ @ApiModel(description = "MutatingWebhookConfigurationList is a list of MutatingWebhookConfiguration.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") public class V1MutatingWebhookConfigurationList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) 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 0709d5a4d9..5440115f1d 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -27,7 +27,7 @@ * Represents an NFS mount that lasts the lifetime of a pod. NFS volumes do not support ownership management or SELinux relabeling. */ @ApiModel(description = "Represents an NFS mount that lasts the lifetime of a pod. NFS volumes do not support ownership management or SELinux relabeling.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") public class V1NFSVolumeSource { public static final String SERIALIZED_NAME_PATH = "path"; @SerializedName(SERIALIZED_NAME_PATH) 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 new file mode 100644 index 0000000000..fc743a3b79 --- /dev/null +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NamedRuleWithOperations.java @@ -0,0 +1,285 @@ +/* +Copyright 2025 The Kubernetes Authors. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at +http://www.apache.org/licenses/LICENSE-2.0 +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ +package io.kubernetes.client.openapi.models; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +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.List; + +/** + * NamedRuleWithOperations is a tuple of Operations and Resources with ResourceNames. + */ +@ApiModel(description = "NamedRuleWithOperations is a tuple of Operations and Resources with ResourceNames.") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +public class V1NamedRuleWithOperations { + public static final String SERIALIZED_NAME_API_GROUPS = "apiGroups"; + @SerializedName(SERIALIZED_NAME_API_GROUPS) + private List apiGroups = null; + + public static final String SERIALIZED_NAME_API_VERSIONS = "apiVersions"; + @SerializedName(SERIALIZED_NAME_API_VERSIONS) + private List apiVersions = null; + + public static final String SERIALIZED_NAME_OPERATIONS = "operations"; + @SerializedName(SERIALIZED_NAME_OPERATIONS) + private List operations = null; + + public static final String SERIALIZED_NAME_RESOURCE_NAMES = "resourceNames"; + @SerializedName(SERIALIZED_NAME_RESOURCE_NAMES) + private List resourceNames = null; + + public static final String SERIALIZED_NAME_RESOURCES = "resources"; + @SerializedName(SERIALIZED_NAME_RESOURCES) + private List resources = null; + + public static final String SERIALIZED_NAME_SCOPE = "scope"; + @SerializedName(SERIALIZED_NAME_SCOPE) + private String scope; + + + public V1NamedRuleWithOperations apiGroups(List apiGroups) { + + this.apiGroups = apiGroups; + return this; + } + + public V1NamedRuleWithOperations addApiGroupsItem(String apiGroupsItem) { + if (this.apiGroups == null) { + this.apiGroups = new ArrayList<>(); + } + this.apiGroups.add(apiGroupsItem); + return this; + } + + /** + * APIGroups is the API groups the resources belong to. '*' is all groups. If '*' is present, the length of the slice must be one. Required. + * @return apiGroups + **/ + @javax.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; + } + + + public void setApiGroups(List apiGroups) { + this.apiGroups = apiGroups; + } + + + public V1NamedRuleWithOperations apiVersions(List apiVersions) { + + this.apiVersions = apiVersions; + return this; + } + + public V1NamedRuleWithOperations addApiVersionsItem(String apiVersionsItem) { + if (this.apiVersions == null) { + this.apiVersions = new ArrayList<>(); + } + this.apiVersions.add(apiVersionsItem); + return this; + } + + /** + * APIVersions is the API versions the resources belong to. '*' is all versions. If '*' is present, the length of the slice must be one. Required. + * @return apiVersions + **/ + @javax.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; + } + + + public void setApiVersions(List apiVersions) { + this.apiVersions = apiVersions; + } + + + public V1NamedRuleWithOperations operations(List operations) { + + this.operations = operations; + return this; + } + + public V1NamedRuleWithOperations addOperationsItem(String operationsItem) { + if (this.operations == null) { + this.operations = new ArrayList<>(); + } + this.operations.add(operationsItem); + return this; + } + + /** + * 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. + * @return operations + **/ + @javax.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; + } + + + public void setOperations(List operations) { + this.operations = operations; + } + + + public V1NamedRuleWithOperations resourceNames(List resourceNames) { + + this.resourceNames = resourceNames; + return this; + } + + public V1NamedRuleWithOperations addResourceNamesItem(String resourceNamesItem) { + if (this.resourceNames == null) { + this.resourceNames = new ArrayList<>(); + } + this.resourceNames.add(resourceNamesItem); + return this; + } + + /** + * ResourceNames is an optional white list of names that the rule applies to. An empty set means that everything is allowed. + * @return resourceNames + **/ + @javax.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; + } + + + public void setResourceNames(List resourceNames) { + this.resourceNames = resourceNames; + } + + + public V1NamedRuleWithOperations resources(List resources) { + + this.resources = resources; + return this; + } + + public V1NamedRuleWithOperations addResourcesItem(String resourcesItem) { + if (this.resources == null) { + this.resources = new ArrayList<>(); + } + this.resources.add(resourcesItem); + return this; + } + + /** + * 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. + * @return resources + **/ + @javax.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; + } + + + public void setResources(List resources) { + this.resources = resources; + } + + + public V1NamedRuleWithOperations scope(String scope) { + + this.scope = scope; + return this; + } + + /** + * 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 \"*\". + * @return scope + **/ + @javax.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; + } + + + public void setScope(String scope) { + this.scope = scope; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V1NamedRuleWithOperations v1NamedRuleWithOperations = (V1NamedRuleWithOperations) o; + return Objects.equals(this.apiGroups, v1NamedRuleWithOperations.apiGroups) && + Objects.equals(this.apiVersions, v1NamedRuleWithOperations.apiVersions) && + Objects.equals(this.operations, v1NamedRuleWithOperations.operations) && + Objects.equals(this.resourceNames, v1NamedRuleWithOperations.resourceNames) && + Objects.equals(this.resources, v1NamedRuleWithOperations.resources) && + Objects.equals(this.scope, v1NamedRuleWithOperations.scope); + } + + @Override + public int hashCode() { + return Objects.hash(apiGroups, apiVersions, operations, resourceNames, resources, scope); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class V1NamedRuleWithOperations {\n"); + sb.append(" apiGroups: ").append(toIndentedString(apiGroups)).append("\n"); + sb.append(" apiVersions: ").append(toIndentedString(apiVersions)).append("\n"); + sb.append(" operations: ").append(toIndentedString(operations)).append("\n"); + sb.append(" resourceNames: ").append(toIndentedString(resourceNames)).append("\n"); + sb.append(" resources: ").append(toIndentedString(resources)).append("\n"); + sb.append(" scope: ").append(toIndentedString(scope)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} 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 ed0ce19fd5..0978990a20 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -30,7 +30,7 @@ * Namespace provides a scope for Names. Use of multiple namespaces is optional. */ @ApiModel(description = "Namespace provides a scope for Names. Use of multiple namespaces is optional.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") public class V1Namespace implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) 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 610b9262b6..eda6bf6736 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -28,7 +28,7 @@ * NamespaceCondition contains details about state of namespace. */ @ApiModel(description = "NamespaceCondition contains details about state of namespace.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") public class V1NamespaceCondition { public static final String SERIALIZED_NAME_LAST_TRANSITION_TIME = "lastTransitionTime"; @SerializedName(SERIALIZED_NAME_LAST_TRANSITION_TIME) @@ -58,11 +58,11 @@ public V1NamespaceCondition lastTransitionTime(OffsetDateTime lastTransitionTime } /** - * 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. + * Last time the condition transitioned from one status to another. * @return lastTransitionTime **/ @javax.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.") + @ApiModelProperty(value = "Last time the condition transitioned from one status to another.") public OffsetDateTime getLastTransitionTime() { return lastTransitionTime; @@ -81,11 +81,11 @@ public V1NamespaceCondition message(String message) { } /** - * Get message + * Human-readable message indicating details about last transition. * @return message **/ @javax.annotation.Nullable - @ApiModelProperty(value = "") + @ApiModelProperty(value = "Human-readable message indicating details about last transition.") public String getMessage() { return message; @@ -104,11 +104,11 @@ public V1NamespaceCondition reason(String reason) { } /** - * Get reason + * Unique, one-word, CamelCase reason for the condition's last transition. * @return reason **/ @javax.annotation.Nullable - @ApiModelProperty(value = "") + @ApiModelProperty(value = "Unique, one-word, CamelCase reason for the condition's last transition.") public String getReason() { return reason; 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 c859d7e8e0..f07cab4ee7 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -31,7 +31,7 @@ * NamespaceList is a list of Namespaces. */ @ApiModel(description = "NamespaceList is a list of Namespaces.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") public class V1NamespaceList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) 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 6eaaa1adb3..17c818d2f5 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -29,7 +29,7 @@ * NamespaceSpec describes the attributes on a Namespace. */ @ApiModel(description = "NamespaceSpec describes the attributes on a Namespace.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") public class V1NamespaceSpec { public static final String SERIALIZED_NAME_FINALIZERS = "finalizers"; @SerializedName(SERIALIZED_NAME_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 6f0a9dc024..ca093d0364 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -30,7 +30,7 @@ * NamespaceStatus is information about the current status of a Namespace. */ @ApiModel(description = "NamespaceStatus is information about the current status of a Namespace.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") public class V1NamespaceStatus { public static final String SERIALIZED_NAME_CONDITIONS = "conditions"; @SerializedName(SERIALIZED_NAME_CONDITIONS) 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 e9776a4e92..a5af0b3b0b 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -29,7 +29,7 @@ * NetworkPolicy describes what network traffic is allowed for a set of Pods */ @ApiModel(description = "NetworkPolicy describes what network traffic is allowed for a set of Pods") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") public class V1NetworkPolicy implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) 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 cdc1eaf414..cb6cf894fa 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -31,7 +31,7 @@ * 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 */ @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") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") public class V1NetworkPolicyEgressRule { public static final String SERIALIZED_NAME_PORTS = "ports"; @SerializedName(SERIALIZED_NAME_PORTS) 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 71b083e478..cc0d581c58 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -31,7 +31,7 @@ * 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. */ @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.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") public class V1NetworkPolicyIngressRule { public static final String SERIALIZED_NAME_FROM = "from"; @SerializedName(SERIALIZED_NAME_FROM) 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 22b1988004..e8ac9ec7f0 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -31,7 +31,7 @@ * NetworkPolicyList is a list of NetworkPolicy objects. */ @ApiModel(description = "NetworkPolicyList is a list of NetworkPolicy objects.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") public class V1NetworkPolicyList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) 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 c5d846c73e..fc72b06849 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -29,7 +29,7 @@ * NetworkPolicyPeer describes a peer to allow traffic to/from. Only certain combinations of fields are allowed */ @ApiModel(description = "NetworkPolicyPeer describes a peer to allow traffic to/from. Only certain combinations of fields are allowed") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") public class V1NetworkPolicyPeer { public static final String SERIALIZED_NAME_IP_BLOCK = "ipBlock"; @SerializedName(SERIALIZED_NAME_IP_BLOCK) 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 a65797b6d2..4e8a9342cc 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -28,7 +28,7 @@ * NetworkPolicyPort describes a port to allow traffic on */ @ApiModel(description = "NetworkPolicyPort describes a port to allow traffic on") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") public class V1NetworkPolicyPort { public static final String SERIALIZED_NAME_END_PORT = "endPort"; @SerializedName(SERIALIZED_NAME_END_PORT) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicySpec.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicySpec.java index c1ebe4076d..e8905876a5 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -32,7 +32,7 @@ * NetworkPolicySpec provides the specification of a NetworkPolicy */ @ApiModel(description = "NetworkPolicySpec provides the specification of a NetworkPolicy") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") public class V1NetworkPolicySpec { public static final String SERIALIZED_NAME_EGRESS = "egress"; @SerializedName(SERIALIZED_NAME_EGRESS) 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 d1e4fe7e83..5b208f4256 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -30,7 +30,7 @@ * Node is a worker node in Kubernetes. Each node will have a unique identifier in the cache (i.e. in etcd). */ @ApiModel(description = "Node is a worker node in Kubernetes. Each node will have a unique identifier in the cache (i.e. in etcd).") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") public class V1Node implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) 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 fdc403c8ef..741917ea1e 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -27,7 +27,7 @@ * NodeAddress contains information for the node's address. */ @ApiModel(description = "NodeAddress contains information for the node's address.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") public class V1NodeAddress { public static final String SERIALIZED_NAME_ADDRESS = "address"; @SerializedName(SERIALIZED_NAME_ADDRESS) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NodeAffinity.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NodeAffinity.java index ac9d39c8f2..d2412c6e6b 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -31,7 +31,7 @@ * Node affinity is a group of node affinity scheduling rules. */ @ApiModel(description = "Node affinity is a group of node affinity scheduling rules.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") 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) 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 a93b389cad..b19919e422 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -28,7 +28,7 @@ * NodeCondition contains condition information for a node. */ @ApiModel(description = "NodeCondition contains condition information for a node.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") public class V1NodeCondition { public static final String SERIALIZED_NAME_LAST_HEARTBEAT_TIME = "lastHeartbeatTime"; @SerializedName(SERIALIZED_NAME_LAST_HEARTBEAT_TIME) 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 c37dc9eadc..4e4e404338 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -28,7 +28,7 @@ * NodeConfigSource specifies a source of node configuration. Exactly one subfield (excluding metadata) must be non-nil. This API is deprecated since 1.22 */ @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") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") public class V1NodeConfigSource { public static final String SERIALIZED_NAME_CONFIG_MAP = "configMap"; @SerializedName(SERIALIZED_NAME_CONFIG_MAP) 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 5aadd18792..00a8dc4d05 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -28,7 +28,7 @@ * NodeConfigStatus describes the status of the config assigned by Node.Spec.ConfigSource. */ @ApiModel(description = "NodeConfigStatus describes the status of the config assigned by Node.Spec.ConfigSource.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") public class V1NodeConfigStatus { public static final String SERIALIZED_NAME_ACTIVE = "active"; @SerializedName(SERIALIZED_NAME_ACTIVE) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NodeDaemonEndpoints.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NodeDaemonEndpoints.java index dc6ddcb4fd..1082a0370a 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -28,7 +28,7 @@ * NodeDaemonEndpoints lists ports opened by daemons running on the Node. */ @ApiModel(description = "NodeDaemonEndpoints lists ports opened by daemons running on the Node.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") public class V1NodeDaemonEndpoints { public static final String SERIALIZED_NAME_KUBELET_ENDPOINT = "kubeletEndpoint"; @SerializedName(SERIALIZED_NAME_KUBELET_ENDPOINT) 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 new file mode 100644 index 0000000000..4b2b35bf6b --- /dev/null +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NodeFeatures.java @@ -0,0 +1,98 @@ +/* +Copyright 2025 The Kubernetes Authors. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at +http://www.apache.org/licenses/LICENSE-2.0 +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ +package io.kubernetes.client.openapi.models; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +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; + +/** + * 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. + */ +@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.") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +public class V1NodeFeatures { + public static final String SERIALIZED_NAME_SUPPLEMENTAL_GROUPS_POLICY = "supplementalGroupsPolicy"; + @SerializedName(SERIALIZED_NAME_SUPPLEMENTAL_GROUPS_POLICY) + private Boolean supplementalGroupsPolicy; + + + public V1NodeFeatures supplementalGroupsPolicy(Boolean supplementalGroupsPolicy) { + + this.supplementalGroupsPolicy = supplementalGroupsPolicy; + return this; + } + + /** + * SupplementalGroupsPolicy is set to true if the runtime supports SupplementalGroupsPolicy and ContainerUser. + * @return supplementalGroupsPolicy + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "SupplementalGroupsPolicy is set to true if the runtime supports SupplementalGroupsPolicy and ContainerUser.") + + public Boolean getSupplementalGroupsPolicy() { + return supplementalGroupsPolicy; + } + + + public void setSupplementalGroupsPolicy(Boolean supplementalGroupsPolicy) { + this.supplementalGroupsPolicy = supplementalGroupsPolicy; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V1NodeFeatures v1NodeFeatures = (V1NodeFeatures) o; + return Objects.equals(this.supplementalGroupsPolicy, v1NodeFeatures.supplementalGroupsPolicy); + } + + @Override + public int hashCode() { + return Objects.hash(supplementalGroupsPolicy); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class V1NodeFeatures {\n"); + sb.append(" supplementalGroupsPolicy: ").append(toIndentedString(supplementalGroupsPolicy)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} 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 6598b7bdd7..60fe19c552 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -31,7 +31,7 @@ * NodeList is the whole list of all Nodes which have been registered with master. */ @ApiModel(description = "NodeList is the whole list of all Nodes which have been registered with master.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") public class V1NodeList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) 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 new file mode 100644 index 0000000000..28513a36cc --- /dev/null +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NodeRuntimeHandler.java @@ -0,0 +1,128 @@ +/* +Copyright 2025 The Kubernetes Authors. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at +http://www.apache.org/licenses/LICENSE-2.0 +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ +package io.kubernetes.client.openapi.models; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +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; + +/** + * NodeRuntimeHandler is a set of runtime handler information. + */ +@ApiModel(description = "NodeRuntimeHandler is a set of runtime handler information.") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +public class V1NodeRuntimeHandler { + public static final String SERIALIZED_NAME_FEATURES = "features"; + @SerializedName(SERIALIZED_NAME_FEATURES) + private V1NodeRuntimeHandlerFeatures features; + + public static final String SERIALIZED_NAME_NAME = "name"; + @SerializedName(SERIALIZED_NAME_NAME) + private String name; + + + public V1NodeRuntimeHandler features(V1NodeRuntimeHandlerFeatures features) { + + this.features = features; + return this; + } + + /** + * Get features + * @return features + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public V1NodeRuntimeHandlerFeatures getFeatures() { + return features; + } + + + public void setFeatures(V1NodeRuntimeHandlerFeatures features) { + this.features = features; + } + + + public V1NodeRuntimeHandler name(String name) { + + this.name = name; + return this; + } + + /** + * Runtime handler name. Empty for the default runtime handler. + * @return name + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "Runtime handler name. Empty for the default runtime handler.") + + public String getName() { + return name; + } + + + public void setName(String name) { + this.name = name; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V1NodeRuntimeHandler v1NodeRuntimeHandler = (V1NodeRuntimeHandler) o; + return Objects.equals(this.features, v1NodeRuntimeHandler.features) && + Objects.equals(this.name, v1NodeRuntimeHandler.name); + } + + @Override + public int hashCode() { + return Objects.hash(features, name); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class V1NodeRuntimeHandler {\n"); + sb.append(" features: ").append(toIndentedString(features)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} 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 new file mode 100644 index 0000000000..a48f58f531 --- /dev/null +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NodeRuntimeHandlerFeatures.java @@ -0,0 +1,127 @@ +/* +Copyright 2025 The Kubernetes Authors. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at +http://www.apache.org/licenses/LICENSE-2.0 +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ +package io.kubernetes.client.openapi.models; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +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; + +/** + * NodeRuntimeHandlerFeatures is a set of features implemented by the runtime handler. + */ +@ApiModel(description = "NodeRuntimeHandlerFeatures is a set of features implemented by the runtime handler.") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +public class V1NodeRuntimeHandlerFeatures { + public static final String SERIALIZED_NAME_RECURSIVE_READ_ONLY_MOUNTS = "recursiveReadOnlyMounts"; + @SerializedName(SERIALIZED_NAME_RECURSIVE_READ_ONLY_MOUNTS) + private Boolean recursiveReadOnlyMounts; + + public static final String SERIALIZED_NAME_USER_NAMESPACES = "userNamespaces"; + @SerializedName(SERIALIZED_NAME_USER_NAMESPACES) + private Boolean userNamespaces; + + + public V1NodeRuntimeHandlerFeatures recursiveReadOnlyMounts(Boolean recursiveReadOnlyMounts) { + + this.recursiveReadOnlyMounts = recursiveReadOnlyMounts; + return this; + } + + /** + * RecursiveReadOnlyMounts is set to true if the runtime handler supports RecursiveReadOnlyMounts. + * @return recursiveReadOnlyMounts + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "RecursiveReadOnlyMounts is set to true if the runtime handler supports RecursiveReadOnlyMounts.") + + public Boolean getRecursiveReadOnlyMounts() { + return recursiveReadOnlyMounts; + } + + + public void setRecursiveReadOnlyMounts(Boolean recursiveReadOnlyMounts) { + this.recursiveReadOnlyMounts = recursiveReadOnlyMounts; + } + + + public V1NodeRuntimeHandlerFeatures userNamespaces(Boolean userNamespaces) { + + this.userNamespaces = userNamespaces; + return this; + } + + /** + * UserNamespaces is set to true if the runtime handler supports UserNamespaces, including for volumes. + * @return userNamespaces + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "UserNamespaces is set to true if the runtime handler supports UserNamespaces, including for volumes.") + + public Boolean getUserNamespaces() { + return userNamespaces; + } + + + public void setUserNamespaces(Boolean userNamespaces) { + this.userNamespaces = userNamespaces; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V1NodeRuntimeHandlerFeatures v1NodeRuntimeHandlerFeatures = (V1NodeRuntimeHandlerFeatures) o; + return Objects.equals(this.recursiveReadOnlyMounts, v1NodeRuntimeHandlerFeatures.recursiveReadOnlyMounts) && + Objects.equals(this.userNamespaces, v1NodeRuntimeHandlerFeatures.userNamespaces); + } + + @Override + public int hashCode() { + return Objects.hash(recursiveReadOnlyMounts, userNamespaces); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class V1NodeRuntimeHandlerFeatures {\n"); + sb.append(" recursiveReadOnlyMounts: ").append(toIndentedString(recursiveReadOnlyMounts)).append("\n"); + sb.append(" userNamespaces: ").append(toIndentedString(userNamespaces)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} 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 595de86c4a..66be17d664 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -30,7 +30,7 @@ * 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. */ @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.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") public class V1NodeSelector { public static final String SERIALIZED_NAME_NODE_SELECTOR_TERMS = "nodeSelectorTerms"; @SerializedName(SERIALIZED_NAME_NODE_SELECTOR_TERMS) 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 43a08e16da..fbaaeee883 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -29,7 +29,7 @@ * A node selector requirement is a selector that contains values, a key, and an operator that relates the key and values. */ @ApiModel(description = "A node selector requirement is a selector that contains values, a key, and an operator that relates the key and values.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") public class V1NodeSelectorRequirement { public static final String SERIALIZED_NAME_KEY = "key"; @SerializedName(SERIALIZED_NAME_KEY) 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 bf61a0d390..d01284dbf0 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -30,7 +30,7 @@ * 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. */ @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.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") public class V1NodeSelectorTerm { public static final String SERIALIZED_NAME_MATCH_EXPRESSIONS = "matchExpressions"; @SerializedName(SERIALIZED_NAME_MATCH_EXPRESSIONS) 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 b9cda295f3..37e1b83e62 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -31,7 +31,7 @@ * NodeSpec describes the attributes that a node is created with. */ @ApiModel(description = "NodeSpec describes the attributes that a node is created with.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") public class V1NodeSpec { public static final String SERIALIZED_NAME_CONFIG_SOURCE = "configSource"; @SerializedName(SERIALIZED_NAME_CONFIG_SOURCE) 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 50f2926099..82442c629e 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -26,6 +26,8 @@ import io.kubernetes.client.openapi.models.V1NodeCondition; import io.kubernetes.client.openapi.models.V1NodeConfigStatus; import io.kubernetes.client.openapi.models.V1NodeDaemonEndpoints; +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; @@ -39,7 +41,7 @@ * NodeStatus is information about the current status of a node. */ @ApiModel(description = "NodeStatus is information about the current status of a node.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") public class V1NodeStatus { public static final String SERIALIZED_NAME_ADDRESSES = "addresses"; @SerializedName(SERIALIZED_NAME_ADDRESSES) @@ -65,6 +67,10 @@ public class V1NodeStatus { @SerializedName(SERIALIZED_NAME_DAEMON_ENDPOINTS) private V1NodeDaemonEndpoints daemonEndpoints; + public static final String SERIALIZED_NAME_FEATURES = "features"; + @SerializedName(SERIALIZED_NAME_FEATURES) + private V1NodeFeatures features; + public static final String SERIALIZED_NAME_IMAGES = "images"; @SerializedName(SERIALIZED_NAME_IMAGES) private List images = null; @@ -77,6 +83,10 @@ public class V1NodeStatus { @SerializedName(SERIALIZED_NAME_PHASE) private String phase; + public static final String SERIALIZED_NAME_RUNTIME_HANDLERS = "runtimeHandlers"; + @SerializedName(SERIALIZED_NAME_RUNTIME_HANDLERS) + private List runtimeHandlers = null; + public static final String SERIALIZED_NAME_VOLUMES_ATTACHED = "volumesAttached"; @SerializedName(SERIALIZED_NAME_VOLUMES_ATTACHED) private List volumesAttached = null; @@ -101,11 +111,11 @@ public V1NodeStatus addAddressesItem(V1NodeAddress addressesItem) { } /** - * 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). + * List of addresses reachable to the node. Queried from cloud provider, if available. More info: https://kubernetes.io/docs/reference/node/node-status/#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). * @return addresses **/ @javax.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).") + @ApiModelProperty(value = "List of addresses reachable to the node. Queried from cloud provider, if available. More info: https://kubernetes.io/docs/reference/node/node-status/#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; @@ -163,11 +173,11 @@ public V1NodeStatus putCapacityItem(String key, Quantity capacityItem) { } /** - * Capacity represents the total resources of a node. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#capacity + * Capacity represents the total resources of a node. More info: https://kubernetes.io/docs/reference/node/node-status/#capacity * @return capacity **/ @javax.annotation.Nullable - @ApiModelProperty(value = "Capacity represents the total resources of a node. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#capacity") + @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; @@ -194,11 +204,11 @@ public V1NodeStatus addConditionsItem(V1NodeCondition conditionsItem) { } /** - * Conditions is an array of current observed node conditions. More info: https://kubernetes.io/docs/concepts/nodes/node/#condition + * Conditions is an array of current observed node conditions. More info: https://kubernetes.io/docs/reference/node/node-status/#condition * @return conditions **/ @javax.annotation.Nullable - @ApiModelProperty(value = "Conditions is an array of current observed node conditions. More info: https://kubernetes.io/docs/concepts/nodes/node/#condition") + @ApiModelProperty(value = "Conditions is an array of current observed node conditions. More info: https://kubernetes.io/docs/reference/node/node-status/#condition") public List getConditions() { return conditions; @@ -256,6 +266,29 @@ public void setDaemonEndpoints(V1NodeDaemonEndpoints daemonEndpoints) { } + public V1NodeStatus features(V1NodeFeatures features) { + + this.features = features; + return this; + } + + /** + * Get features + * @return features + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public V1NodeFeatures getFeatures() { + return features; + } + + + public void setFeatures(V1NodeFeatures features) { + this.features = features; + } + + public V1NodeStatus images(List images) { this.images = images; @@ -333,6 +366,37 @@ public void setPhase(String phase) { } + public V1NodeStatus runtimeHandlers(List runtimeHandlers) { + + this.runtimeHandlers = runtimeHandlers; + return this; + } + + public V1NodeStatus addRuntimeHandlersItem(V1NodeRuntimeHandler runtimeHandlersItem) { + if (this.runtimeHandlers == null) { + this.runtimeHandlers = new ArrayList<>(); + } + this.runtimeHandlers.add(runtimeHandlersItem); + return this; + } + + /** + * The available runtime handlers. + * @return runtimeHandlers + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "The available runtime handlers.") + + public List getRuntimeHandlers() { + return runtimeHandlers; + } + + + public void setRuntimeHandlers(List runtimeHandlers) { + this.runtimeHandlers = runtimeHandlers; + } + + public V1NodeStatus volumesAttached(List volumesAttached) { this.volumesAttached = volumesAttached; @@ -410,16 +474,18 @@ public boolean equals(java.lang.Object o) { Objects.equals(this.conditions, v1NodeStatus.conditions) && Objects.equals(this.config, v1NodeStatus.config) && Objects.equals(this.daemonEndpoints, v1NodeStatus.daemonEndpoints) && + Objects.equals(this.features, v1NodeStatus.features) && Objects.equals(this.images, v1NodeStatus.images) && Objects.equals(this.nodeInfo, v1NodeStatus.nodeInfo) && Objects.equals(this.phase, v1NodeStatus.phase) && + Objects.equals(this.runtimeHandlers, v1NodeStatus.runtimeHandlers) && Objects.equals(this.volumesAttached, v1NodeStatus.volumesAttached) && Objects.equals(this.volumesInUse, v1NodeStatus.volumesInUse); } @Override public int hashCode() { - return Objects.hash(addresses, allocatable, capacity, conditions, config, daemonEndpoints, images, nodeInfo, phase, volumesAttached, volumesInUse); + return Objects.hash(addresses, allocatable, capacity, conditions, config, daemonEndpoints, features, images, nodeInfo, phase, runtimeHandlers, volumesAttached, volumesInUse); } @@ -433,9 +499,11 @@ public String toString() { sb.append(" conditions: ").append(toIndentedString(conditions)).append("\n"); sb.append(" config: ").append(toIndentedString(config)).append("\n"); sb.append(" daemonEndpoints: ").append(toIndentedString(daemonEndpoints)).append("\n"); + sb.append(" features: ").append(toIndentedString(features)).append("\n"); sb.append(" images: ").append(toIndentedString(images)).append("\n"); sb.append(" nodeInfo: ").append(toIndentedString(nodeInfo)).append("\n"); sb.append(" phase: ").append(toIndentedString(phase)).append("\n"); + sb.append(" runtimeHandlers: ").append(toIndentedString(runtimeHandlers)).append("\n"); sb.append(" volumesAttached: ").append(toIndentedString(volumesAttached)).append("\n"); sb.append(" volumesInUse: ").append(toIndentedString(volumesInUse)).append("\n"); sb.append("}"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NodeSwapStatus.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NodeSwapStatus.java new file mode 100644 index 0000000000..0224778519 --- /dev/null +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NodeSwapStatus.java @@ -0,0 +1,98 @@ +/* +Copyright 2025 The Kubernetes Authors. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at +http://www.apache.org/licenses/LICENSE-2.0 +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ +package io.kubernetes.client.openapi.models; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +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; + +/** + * NodeSwapStatus represents swap memory information. + */ +@ApiModel(description = "NodeSwapStatus represents swap memory information.") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +public class V1NodeSwapStatus { + public static final String SERIALIZED_NAME_CAPACITY = "capacity"; + @SerializedName(SERIALIZED_NAME_CAPACITY) + private Long capacity; + + + public V1NodeSwapStatus capacity(Long capacity) { + + this.capacity = capacity; + return this; + } + + /** + * Total amount of swap memory in bytes. + * @return capacity + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "Total amount of swap memory in bytes.") + + public Long getCapacity() { + return capacity; + } + + + public void setCapacity(Long capacity) { + this.capacity = capacity; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V1NodeSwapStatus v1NodeSwapStatus = (V1NodeSwapStatus) o; + return Objects.equals(this.capacity, v1NodeSwapStatus.capacity); + } + + @Override + public int hashCode() { + return Objects.hash(capacity); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class V1NodeSwapStatus {\n"); + sb.append(" capacity: ").append(toIndentedString(capacity)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} 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 b9b4c5b9a4..89fee1e190 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,7 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.openapi.models.V1NodeSwapStatus; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.io.IOException; @@ -27,7 +28,7 @@ * NodeSystemInfo is a set of ids/uuids to uniquely identify the node. */ @ApiModel(description = "NodeSystemInfo is a set of ids/uuids to uniquely identify the node.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") public class V1NodeSystemInfo { public static final String SERIALIZED_NAME_ARCHITECTURE = "architecture"; @SerializedName(SERIALIZED_NAME_ARCHITECTURE) @@ -65,6 +66,10 @@ public class V1NodeSystemInfo { @SerializedName(SERIALIZED_NAME_OS_IMAGE) private String osImage; + public static final String SERIALIZED_NAME_SWAP = "swap"; + @SerializedName(SERIALIZED_NAME_SWAP) + private V1NodeSwapStatus swap; + public static final String SERIALIZED_NAME_SYSTEM_U_U_I_D = "systemUUID"; @SerializedName(SERIALIZED_NAME_SYSTEM_U_U_I_D) private String systemUUID; @@ -165,10 +170,10 @@ public V1NodeSystemInfo kubeProxyVersion(String kubeProxyVersion) { } /** - * KubeProxy Version reported by the node. + * Deprecated: KubeProxy Version reported by the node. * @return kubeProxyVersion **/ - @ApiModelProperty(required = true, value = "KubeProxy Version reported by the node.") + @ApiModelProperty(required = true, value = "Deprecated: KubeProxy Version reported by the node.") public String getKubeProxyVersion() { return kubeProxyVersion; @@ -268,6 +273,29 @@ public void setOsImage(String osImage) { } + public V1NodeSystemInfo swap(V1NodeSwapStatus swap) { + + this.swap = swap; + return this; + } + + /** + * Get swap + * @return swap + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public V1NodeSwapStatus getSwap() { + return swap; + } + + + public void setSwap(V1NodeSwapStatus swap) { + this.swap = swap; + } + + public V1NodeSystemInfo systemUUID(String systemUUID) { this.systemUUID = systemUUID; @@ -308,12 +336,13 @@ public boolean equals(java.lang.Object o) { Objects.equals(this.machineID, v1NodeSystemInfo.machineID) && Objects.equals(this.operatingSystem, v1NodeSystemInfo.operatingSystem) && Objects.equals(this.osImage, v1NodeSystemInfo.osImage) && + Objects.equals(this.swap, v1NodeSystemInfo.swap) && Objects.equals(this.systemUUID, v1NodeSystemInfo.systemUUID); } @Override public int hashCode() { - return Objects.hash(architecture, bootID, containerRuntimeVersion, kernelVersion, kubeProxyVersion, kubeletVersion, machineID, operatingSystem, osImage, systemUUID); + return Objects.hash(architecture, bootID, containerRuntimeVersion, kernelVersion, kubeProxyVersion, kubeletVersion, machineID, operatingSystem, osImage, swap, systemUUID); } @@ -330,6 +359,7 @@ public String toString() { sb.append(" machineID: ").append(toIndentedString(machineID)).append("\n"); sb.append(" operatingSystem: ").append(toIndentedString(operatingSystem)).append("\n"); sb.append(" osImage: ").append(toIndentedString(osImage)).append("\n"); + sb.append(" swap: ").append(toIndentedString(swap)).append("\n"); sb.append(" systemUUID: ").append(toIndentedString(systemUUID)).append("\n"); sb.append("}"); return sb.toString(); 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 855c4a440e..58a66252f5 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -27,7 +27,7 @@ * NonResourceAttributes includes the authorization attributes available for non-resource requests to the Authorizer interface */ @ApiModel(description = "NonResourceAttributes includes the authorization attributes available for non-resource requests to the Authorizer interface") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") public class V1NonResourceAttributes { public static final String SERIALIZED_NAME_PATH = "path"; @SerializedName(SERIALIZED_NAME_PATH) 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 new file mode 100644 index 0000000000..a8dbca9369 --- /dev/null +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NonResourcePolicyRule.java @@ -0,0 +1,137 @@ +/* +Copyright 2025 The Kubernetes Authors. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at +http://www.apache.org/licenses/LICENSE-2.0 +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ +package io.kubernetes.client.openapi.models; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +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.List; + +/** + * 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. + */ +@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.") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +public class V1NonResourcePolicyRule { + public static final String SERIALIZED_NAME_NON_RESOURCE_U_R_LS = "nonResourceURLs"; + @SerializedName(SERIALIZED_NAME_NON_RESOURCE_U_R_LS) + private List nonResourceURLs = new ArrayList<>(); + + public static final String SERIALIZED_NAME_VERBS = "verbs"; + @SerializedName(SERIALIZED_NAME_VERBS) + private List verbs = new ArrayList<>(); + + + public V1NonResourcePolicyRule nonResourceURLs(List nonResourceURLs) { + + this.nonResourceURLs = nonResourceURLs; + return this; + } + + public V1NonResourcePolicyRule addNonResourceURLsItem(String nonResourceURLsItem) { + this.nonResourceURLs.add(nonResourceURLsItem); + return this; + } + + /** + * `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. + * @return nonResourceURLs + **/ + @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; + } + + + public void setNonResourceURLs(List nonResourceURLs) { + this.nonResourceURLs = nonResourceURLs; + } + + + public V1NonResourcePolicyRule verbs(List verbs) { + + this.verbs = verbs; + return this; + } + + public V1NonResourcePolicyRule addVerbsItem(String verbsItem) { + this.verbs.add(verbsItem); + return this; + } + + /** + * `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. + * @return verbs + **/ + @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; + } + + + public void setVerbs(List verbs) { + this.verbs = verbs; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V1NonResourcePolicyRule v1NonResourcePolicyRule = (V1NonResourcePolicyRule) o; + return Objects.equals(this.nonResourceURLs, v1NonResourcePolicyRule.nonResourceURLs) && + Objects.equals(this.verbs, v1NonResourcePolicyRule.verbs); + } + + @Override + public int hashCode() { + return Objects.hash(nonResourceURLs, verbs); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class V1NonResourcePolicyRule {\n"); + sb.append(" nonResourceURLs: ").append(toIndentedString(nonResourceURLs)).append("\n"); + sb.append(" verbs: ").append(toIndentedString(verbs)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} 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 f64c33c891..7f3426b4af 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -29,7 +29,7 @@ * NonResourceRule holds information that describes a rule for the non-resource */ @ApiModel(description = "NonResourceRule holds information that describes a rule for the non-resource") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") public class V1NonResourceRule { public static final String SERIALIZED_NAME_NON_RESOURCE_U_R_LS = "nonResourceURLs"; @SerializedName(SERIALIZED_NAME_NON_RESOURCE_U_R_LS) 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 fbfa3acc72..a4ec4b8f3d 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -27,7 +27,7 @@ * ObjectFieldSelector selects an APIVersioned field of an object. */ @ApiModel(description = "ObjectFieldSelector selects an APIVersioned field of an object.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") public class V1ObjectFieldSelector { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) 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 0a0c2ff3a8..4968835970 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -34,7 +34,7 @@ * ObjectMeta is metadata that all persisted resources must have, which includes all objects users must create. */ @ApiModel(description = "ObjectMeta is metadata that all persisted resources must have, which includes all objects users must create.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") public class V1ObjectMeta { public static final String SERIALIZED_NAME_ANNOTATIONS = "annotations"; @SerializedName(SERIALIZED_NAME_ANNOTATIONS) 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 e6354e76b9..a3ae0c19e3 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -27,7 +27,7 @@ * ObjectReference contains enough information to let you inspect or modify the referred object. */ @ApiModel(description = "ObjectReference contains enough information to let you inspect or modify the referred object.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") public class V1ObjectReference { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) 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 612737e824..b7b6d529ac 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -31,7 +31,7 @@ * Overhead structure represents the resource overhead associated with running a pod. */ @ApiModel(description = "Overhead structure represents the resource overhead associated with running a pod.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") public class V1Overhead { public static final String SERIALIZED_NAME_POD_FIXED = "podFixed"; @SerializedName(SERIALIZED_NAME_POD_FIXED) 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 627f87aed1..cfd11990aa 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -27,7 +27,7 @@ * OwnerReference contains enough information to let you identify an owning object. An owning object must be in the same namespace as the dependent, or be cluster-scoped, so there is no namespace field. */ @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.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") public class V1OwnerReference { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) 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 new file mode 100644 index 0000000000..d36d656ab4 --- /dev/null +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ParamKind.java @@ -0,0 +1,127 @@ +/* +Copyright 2025 The Kubernetes Authors. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at +http://www.apache.org/licenses/LICENSE-2.0 +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ +package io.kubernetes.client.openapi.models; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +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; + +/** + * ParamKind is a tuple of Group Kind and Version. + */ +@ApiModel(description = "ParamKind is a tuple of Group Kind and Version.") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +public class V1ParamKind { + public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; + @SerializedName(SERIALIZED_NAME_API_VERSION) + private String apiVersion; + + public static final String SERIALIZED_NAME_KIND = "kind"; + @SerializedName(SERIALIZED_NAME_KIND) + private String kind; + + + public V1ParamKind apiVersion(String apiVersion) { + + this.apiVersion = apiVersion; + return this; + } + + /** + * APIVersion is the API group version the resources belong to. In format of \"group/version\". Required. + * @return apiVersion + **/ + @javax.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; + } + + + public void setApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + } + + + public V1ParamKind kind(String kind) { + + this.kind = kind; + return this; + } + + /** + * Kind is the API kind the resources belong to. Required. + * @return kind + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "Kind is the API kind the resources belong to. Required.") + + public String getKind() { + return kind; + } + + + public void setKind(String kind) { + this.kind = kind; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V1ParamKind v1ParamKind = (V1ParamKind) o; + return Objects.equals(this.apiVersion, v1ParamKind.apiVersion) && + Objects.equals(this.kind, v1ParamKind.kind); + } + + @Override + public int hashCode() { + return Objects.hash(apiVersion, kind); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class V1ParamKind {\n"); + sb.append(" apiVersion: ").append(toIndentedString(apiVersion)).append("\n"); + sb.append(" kind: ").append(toIndentedString(kind)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} 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 new file mode 100644 index 0000000000..97613e0d31 --- /dev/null +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ParamRef.java @@ -0,0 +1,186 @@ +/* +Copyright 2025 The Kubernetes Authors. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at +http://www.apache.org/licenses/LICENSE-2.0 +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ +package io.kubernetes.client.openapi.models; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +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; + +/** + * ParamRef describes how to locate the params to be used as input to expressions of rules applied by a policy binding. + */ +@ApiModel(description = "ParamRef describes how to locate the params to be used as input to expressions of rules applied by a policy binding.") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +public class V1ParamRef { + public static final String SERIALIZED_NAME_NAME = "name"; + @SerializedName(SERIALIZED_NAME_NAME) + private String name; + + public static final String SERIALIZED_NAME_NAMESPACE = "namespace"; + @SerializedName(SERIALIZED_NAME_NAMESPACE) + private String namespace; + + public static final String SERIALIZED_NAME_PARAMETER_NOT_FOUND_ACTION = "parameterNotFoundAction"; + @SerializedName(SERIALIZED_NAME_PARAMETER_NOT_FOUND_ACTION) + private String parameterNotFoundAction; + + public static final String SERIALIZED_NAME_SELECTOR = "selector"; + @SerializedName(SERIALIZED_NAME_SELECTOR) + private V1LabelSelector selector; + + + public V1ParamRef name(String name) { + + this.name = name; + return this; + } + + /** + * 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. + * @return name + **/ + @javax.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; + } + + + public void setName(String name) { + this.name = name; + } + + + public V1ParamRef namespace(String namespace) { + + this.namespace = namespace; + return this; + } + + /** + * 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. + * @return namespace + **/ + @javax.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; + } + + + public void setNamespace(String namespace) { + this.namespace = namespace; + } + + + public V1ParamRef parameterNotFoundAction(String parameterNotFoundAction) { + + this.parameterNotFoundAction = parameterNotFoundAction; + return this; + } + + /** + * `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 + * @return parameterNotFoundAction + **/ + @javax.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; + } + + + public void setParameterNotFoundAction(String parameterNotFoundAction) { + this.parameterNotFoundAction = parameterNotFoundAction; + } + + + public V1ParamRef selector(V1LabelSelector selector) { + + this.selector = selector; + return this; + } + + /** + * Get selector + * @return selector + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public V1LabelSelector getSelector() { + return selector; + } + + + public void setSelector(V1LabelSelector selector) { + this.selector = selector; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V1ParamRef v1ParamRef = (V1ParamRef) o; + return Objects.equals(this.name, v1ParamRef.name) && + Objects.equals(this.namespace, v1ParamRef.namespace) && + Objects.equals(this.parameterNotFoundAction, v1ParamRef.parameterNotFoundAction) && + Objects.equals(this.selector, v1ParamRef.selector); + } + + @Override + public int hashCode() { + return Objects.hash(name, namespace, parameterNotFoundAction, selector); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class V1ParamRef {\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" namespace: ").append(toIndentedString(namespace)).append("\n"); + sb.append(" parameterNotFoundAction: ").append(toIndentedString(parameterNotFoundAction)).append("\n"); + sb.append(" selector: ").append(toIndentedString(selector)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ParentReference.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ParentReference.java new file mode 100644 index 0000000000..d7049088bf --- /dev/null +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ParentReference.java @@ -0,0 +1,183 @@ +/* +Copyright 2025 The Kubernetes Authors. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at +http://www.apache.org/licenses/LICENSE-2.0 +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ +package io.kubernetes.client.openapi.models; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +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; + +/** + * ParentReference describes a reference to a parent object. + */ +@ApiModel(description = "ParentReference describes a reference to a parent object.") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +public class V1ParentReference { + public static final String SERIALIZED_NAME_GROUP = "group"; + @SerializedName(SERIALIZED_NAME_GROUP) + private String group; + + public static final String SERIALIZED_NAME_NAME = "name"; + @SerializedName(SERIALIZED_NAME_NAME) + private String name; + + public static final String SERIALIZED_NAME_NAMESPACE = "namespace"; + @SerializedName(SERIALIZED_NAME_NAMESPACE) + private String namespace; + + public static final String SERIALIZED_NAME_RESOURCE = "resource"; + @SerializedName(SERIALIZED_NAME_RESOURCE) + private String resource; + + + public V1ParentReference group(String group) { + + this.group = group; + return this; + } + + /** + * Group is the group of the object being referenced. + * @return group + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "Group is the group of the object being referenced.") + + public String getGroup() { + return group; + } + + + public void setGroup(String group) { + this.group = group; + } + + + public V1ParentReference name(String name) { + + this.name = name; + return this; + } + + /** + * Name is the name of the object being referenced. + * @return name + **/ + @ApiModelProperty(required = true, value = "Name is the name of the object being referenced.") + + public String getName() { + return name; + } + + + public void setName(String name) { + this.name = name; + } + + + public V1ParentReference namespace(String namespace) { + + this.namespace = namespace; + return this; + } + + /** + * Namespace is the namespace of the object being referenced. + * @return namespace + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "Namespace is the namespace of the object being referenced.") + + public String getNamespace() { + return namespace; + } + + + public void setNamespace(String namespace) { + this.namespace = namespace; + } + + + public V1ParentReference resource(String resource) { + + this.resource = resource; + return this; + } + + /** + * Resource is the resource of the object being referenced. + * @return resource + **/ + @ApiModelProperty(required = true, value = "Resource is the resource of the object being referenced.") + + public String getResource() { + return resource; + } + + + public void setResource(String resource) { + this.resource = resource; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V1ParentReference v1ParentReference = (V1ParentReference) o; + return Objects.equals(this.group, v1ParentReference.group) && + Objects.equals(this.name, v1ParentReference.name) && + Objects.equals(this.namespace, v1ParentReference.namespace) && + Objects.equals(this.resource, v1ParentReference.resource); + } + + @Override + public int hashCode() { + return Objects.hash(group, name, namespace, resource); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class V1ParentReference {\n"); + sb.append(" group: ").append(toIndentedString(group)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" namespace: ").append(toIndentedString(namespace)).append("\n"); + sb.append(" resource: ").append(toIndentedString(resource)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} 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 742df2ab26..18797b2e5a 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -30,7 +30,7 @@ * 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 */ @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") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") public class V1PersistentVolume implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) 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 4b64b83a34..ac85436849 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -30,7 +30,7 @@ * PersistentVolumeClaim is a user's request for and claim to a persistent volume */ @ApiModel(description = "PersistentVolumeClaim is a user's request for and claim to a persistent volume") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") public class V1PersistentVolumeClaim implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) 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 69b134a946..545db1969b 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -28,7 +28,7 @@ * PersistentVolumeClaimCondition contains details about state of pvc */ @ApiModel(description = "PersistentVolumeClaimCondition contains details about state of pvc") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") public class V1PersistentVolumeClaimCondition { public static final String SERIALIZED_NAME_LAST_PROBE_TIME = "lastProbeTime"; @SerializedName(SERIALIZED_NAME_LAST_PROBE_TIME) @@ -131,11 +131,11 @@ public V1PersistentVolumeClaimCondition reason(String reason) { } /** - * reason is a unique, this should be a short, machine understandable string that gives the reason for condition's last transition. If it reports \"ResizeStarted\" that means the underlying persistent volume is being resized. + * 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. * @return reason **/ @javax.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 \"ResizeStarted\" that means the underlying persistent volume is being resized.") + @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; @@ -154,10 +154,10 @@ public V1PersistentVolumeClaimCondition status(String status) { } /** - * Get status + * Status is the status of the condition. Can be True, False, Unknown. More info: https://kubernetes.io/docs/reference/kubernetes-api/config-and-storage-resources/persistent-volume-claim-v1/#:~:text=state%20of%20pvc-,conditions.status,-(string)%2C%20required * @return status **/ - @ApiModelProperty(required = true, value = "") + @ApiModelProperty(required = true, value = "Status is the status of the condition. Can be True, False, Unknown. More info: https://kubernetes.io/docs/reference/kubernetes-api/config-and-storage-resources/persistent-volume-claim-v1/#:~:text=state%20of%20pvc-,conditions.status,-(string)%2C%20required") public String getStatus() { return status; @@ -176,10 +176,10 @@ public V1PersistentVolumeClaimCondition type(String type) { } /** - * Get type + * Type is the type of the condition. More info: https://kubernetes.io/docs/reference/kubernetes-api/config-and-storage-resources/persistent-volume-claim-v1/#:~:text=set%20to%20%27ResizeStarted%27.-,PersistentVolumeClaimCondition,-contains%20details%20about * @return type **/ - @ApiModelProperty(required = true, value = "") + @ApiModelProperty(required = true, value = "Type is the type of the condition. More info: https://kubernetes.io/docs/reference/kubernetes-api/config-and-storage-resources/persistent-volume-claim-v1/#:~:text=set%20to%20%27ResizeStarted%27.-,PersistentVolumeClaimCondition,-contains%20details%20about") 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 9f7696457a..1fe0f21eb5 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -31,7 +31,7 @@ * PersistentVolumeClaimList is a list of PersistentVolumeClaim items. */ @ApiModel(description = "PersistentVolumeClaimList is a list of PersistentVolumeClaim items.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") public class V1PersistentVolumeClaimList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) 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 cae4884788..00717fc890 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,9 +20,9 @@ import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1LabelSelector; -import io.kubernetes.client.openapi.models.V1ResourceRequirements; 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; @@ -33,7 +33,7 @@ * PersistentVolumeClaimSpec describes the common attributes of storage devices and allows a Source for provider-specific attributes */ @ApiModel(description = "PersistentVolumeClaimSpec describes the common attributes of storage devices and allows a Source for provider-specific attributes") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") public class V1PersistentVolumeClaimSpec { public static final String SERIALIZED_NAME_ACCESS_MODES = "accessModes"; @SerializedName(SERIALIZED_NAME_ACCESS_MODES) @@ -49,7 +49,7 @@ public class V1PersistentVolumeClaimSpec { public static final String SERIALIZED_NAME_RESOURCES = "resources"; @SerializedName(SERIALIZED_NAME_RESOURCES) - private V1ResourceRequirements resources; + private V1VolumeResourceRequirements resources; public static final String SERIALIZED_NAME_SELECTOR = "selector"; @SerializedName(SERIALIZED_NAME_SELECTOR) @@ -59,6 +59,10 @@ public class V1PersistentVolumeClaimSpec { @SerializedName(SERIALIZED_NAME_STORAGE_CLASS_NAME) private String storageClassName; + public static final String SERIALIZED_NAME_VOLUME_ATTRIBUTES_CLASS_NAME = "volumeAttributesClassName"; + @SerializedName(SERIALIZED_NAME_VOLUME_ATTRIBUTES_CLASS_NAME) + private String volumeAttributesClassName; + public static final String SERIALIZED_NAME_VOLUME_MODE = "volumeMode"; @SerializedName(SERIALIZED_NAME_VOLUME_MODE) private String volumeMode; @@ -145,7 +149,7 @@ public void setDataSourceRef(V1TypedObjectReference dataSourceRef) { } - public V1PersistentVolumeClaimSpec resources(V1ResourceRequirements resources) { + public V1PersistentVolumeClaimSpec resources(V1VolumeResourceRequirements resources) { this.resources = resources; return this; @@ -158,12 +162,12 @@ public V1PersistentVolumeClaimSpec resources(V1ResourceRequirements resources) { @javax.annotation.Nullable @ApiModelProperty(value = "") - public V1ResourceRequirements getResources() { + public V1VolumeResourceRequirements getResources() { return resources; } - public void setResources(V1ResourceRequirements resources) { + public void setResources(V1VolumeResourceRequirements resources) { this.resources = resources; } @@ -214,6 +218,29 @@ public void setStorageClassName(String storageClassName) { } + public V1PersistentVolumeClaimSpec volumeAttributesClassName(String volumeAttributesClassName) { + + this.volumeAttributesClassName = volumeAttributesClassName; + return this; + } + + /** + * 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). + * @return volumeAttributesClassName + **/ + @javax.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; + } + + + public void setVolumeAttributesClassName(String volumeAttributesClassName) { + this.volumeAttributesClassName = volumeAttributesClassName; + } + + public V1PersistentVolumeClaimSpec volumeMode(String volumeMode) { this.volumeMode = volumeMode; @@ -275,13 +302,14 @@ public boolean equals(java.lang.Object o) { Objects.equals(this.resources, v1PersistentVolumeClaimSpec.resources) && Objects.equals(this.selector, v1PersistentVolumeClaimSpec.selector) && Objects.equals(this.storageClassName, v1PersistentVolumeClaimSpec.storageClassName) && + Objects.equals(this.volumeAttributesClassName, v1PersistentVolumeClaimSpec.volumeAttributesClassName) && Objects.equals(this.volumeMode, v1PersistentVolumeClaimSpec.volumeMode) && Objects.equals(this.volumeName, v1PersistentVolumeClaimSpec.volumeName); } @Override public int hashCode() { - return Objects.hash(accessModes, dataSource, dataSourceRef, resources, selector, storageClassName, volumeMode, volumeName); + return Objects.hash(accessModes, dataSource, dataSourceRef, resources, selector, storageClassName, volumeAttributesClassName, volumeMode, volumeName); } @@ -295,6 +323,7 @@ public String toString() { sb.append(" resources: ").append(toIndentedString(resources)).append("\n"); sb.append(" selector: ").append(toIndentedString(selector)).append("\n"); sb.append(" storageClassName: ").append(toIndentedString(storageClassName)).append("\n"); + sb.append(" volumeAttributesClassName: ").append(toIndentedString(volumeAttributesClassName)).append("\n"); sb.append(" volumeMode: ").append(toIndentedString(volumeMode)).append("\n"); sb.append(" volumeName: ").append(toIndentedString(volumeName)).append("\n"); sb.append("}"); 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 3b97a1ca4e..bf742eaf09 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,7 @@ import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; 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; @@ -33,7 +34,7 @@ * PersistentVolumeClaimStatus is the current status of a persistent volume claim. */ @ApiModel(description = "PersistentVolumeClaimStatus is the current status of a persistent volume claim.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") public class V1PersistentVolumeClaimStatus { public static final String SERIALIZED_NAME_ACCESS_MODES = "accessModes"; @SerializedName(SERIALIZED_NAME_ACCESS_MODES) @@ -55,6 +56,14 @@ public class V1PersistentVolumeClaimStatus { @SerializedName(SERIALIZED_NAME_CONDITIONS) private List conditions = null; + public static final String SERIALIZED_NAME_CURRENT_VOLUME_ATTRIBUTES_CLASS_NAME = "currentVolumeAttributesClassName"; + @SerializedName(SERIALIZED_NAME_CURRENT_VOLUME_ATTRIBUTES_CLASS_NAME) + private String currentVolumeAttributesClassName; + + public static final String SERIALIZED_NAME_MODIFY_VOLUME_STATUS = "modifyVolumeStatus"; + @SerializedName(SERIALIZED_NAME_MODIFY_VOLUME_STATUS) + private V1ModifyVolumeStatus modifyVolumeStatus; + public static final String SERIALIZED_NAME_PHASE = "phase"; @SerializedName(SERIALIZED_NAME_PHASE) private String phase; @@ -199,11 +208,11 @@ public V1PersistentVolumeClaimStatus addConditionsItem(V1PersistentVolumeClaimCo } /** - * conditions is the current Condition of persistent volume claim. If underlying persistent volume is being resized then the Condition will be set to 'ResizeStarted'. + * conditions is the current Condition of persistent volume claim. If underlying persistent volume is being resized then the Condition will be set to 'Resizing'. * @return conditions **/ @javax.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 'ResizeStarted'.") + @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; @@ -215,6 +224,52 @@ public void setConditions(List conditions) { } + public V1PersistentVolumeClaimStatus currentVolumeAttributesClassName(String currentVolumeAttributesClassName) { + + this.currentVolumeAttributesClassName = currentVolumeAttributesClassName; + return this; + } + + /** + * 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). + * @return currentVolumeAttributesClassName + **/ + @javax.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; + } + + + public void setCurrentVolumeAttributesClassName(String currentVolumeAttributesClassName) { + this.currentVolumeAttributesClassName = currentVolumeAttributesClassName; + } + + + public V1PersistentVolumeClaimStatus modifyVolumeStatus(V1ModifyVolumeStatus modifyVolumeStatus) { + + this.modifyVolumeStatus = modifyVolumeStatus; + return this; + } + + /** + * Get modifyVolumeStatus + * @return modifyVolumeStatus + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public V1ModifyVolumeStatus getModifyVolumeStatus() { + return modifyVolumeStatus; + } + + + public void setModifyVolumeStatus(V1ModifyVolumeStatus modifyVolumeStatus) { + this.modifyVolumeStatus = modifyVolumeStatus; + } + + public V1PersistentVolumeClaimStatus phase(String phase) { this.phase = phase; @@ -252,12 +307,14 @@ public boolean equals(java.lang.Object o) { Objects.equals(this.allocatedResources, v1PersistentVolumeClaimStatus.allocatedResources) && Objects.equals(this.capacity, v1PersistentVolumeClaimStatus.capacity) && Objects.equals(this.conditions, v1PersistentVolumeClaimStatus.conditions) && + Objects.equals(this.currentVolumeAttributesClassName, v1PersistentVolumeClaimStatus.currentVolumeAttributesClassName) && + Objects.equals(this.modifyVolumeStatus, v1PersistentVolumeClaimStatus.modifyVolumeStatus) && Objects.equals(this.phase, v1PersistentVolumeClaimStatus.phase); } @Override public int hashCode() { - return Objects.hash(accessModes, allocatedResourceStatuses, allocatedResources, capacity, conditions, phase); + return Objects.hash(accessModes, allocatedResourceStatuses, allocatedResources, capacity, conditions, currentVolumeAttributesClassName, modifyVolumeStatus, phase); } @@ -270,6 +327,8 @@ public String toString() { sb.append(" allocatedResources: ").append(toIndentedString(allocatedResources)).append("\n"); sb.append(" capacity: ").append(toIndentedString(capacity)).append("\n"); sb.append(" conditions: ").append(toIndentedString(conditions)).append("\n"); + sb.append(" currentVolumeAttributesClassName: ").append(toIndentedString(currentVolumeAttributesClassName)).append("\n"); + sb.append(" modifyVolumeStatus: ").append(toIndentedString(modifyVolumeStatus)).append("\n"); sb.append(" phase: ").append(toIndentedString(phase)).append("\n"); sb.append("}"); return sb.toString(); 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 5f13b01f7e..75a3e51b67 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -29,7 +29,7 @@ * PersistentVolumeClaimTemplate is used to produce PersistentVolumeClaim objects as part of an EphemeralVolumeSource. */ @ApiModel(description = "PersistentVolumeClaimTemplate is used to produce PersistentVolumeClaim objects as part of an EphemeralVolumeSource.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") public class V1PersistentVolumeClaimTemplate { public static final String SERIALIZED_NAME_METADATA = "metadata"; @SerializedName(SERIALIZED_NAME_METADATA) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimVolumeSource.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimVolumeSource.java index 26fe835a38..0dea2fee27 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -27,7 +27,7 @@ * 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). */ @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).") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") public class V1PersistentVolumeClaimVolumeSource { public static final String SERIALIZED_NAME_CLAIM_NAME = "claimName"; @SerializedName(SERIALIZED_NAME_CLAIM_NAME) 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 b0e22413e1..9f3e0dca6d 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -31,7 +31,7 @@ * PersistentVolumeList is a list of PersistentVolume items. */ @ApiModel(description = "PersistentVolumeList is a list of PersistentVolume items.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") public class V1PersistentVolumeList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) 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 aa5975b9fc..1241343aa7 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -56,7 +56,7 @@ * PersistentVolumeSpec is the specification of a persistent volume. */ @ApiModel(description = "PersistentVolumeSpec is the specification of a persistent volume.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") public class V1PersistentVolumeSpec { public static final String SERIALIZED_NAME_ACCESS_MODES = "accessModes"; @SerializedName(SERIALIZED_NAME_ACCESS_MODES) @@ -170,6 +170,10 @@ public class V1PersistentVolumeSpec { @SerializedName(SERIALIZED_NAME_STORAGEOS) private V1StorageOSPersistentVolumeSource storageos; + public static final String SERIALIZED_NAME_VOLUME_ATTRIBUTES_CLASS_NAME = "volumeAttributesClassName"; + @SerializedName(SERIALIZED_NAME_VOLUME_ATTRIBUTES_CLASS_NAME) + private String volumeAttributesClassName; + public static final String SERIALIZED_NAME_VOLUME_MODE = "volumeMode"; @SerializedName(SERIALIZED_NAME_VOLUME_MODE) private String volumeMode; @@ -847,6 +851,29 @@ public void setStorageos(V1StorageOSPersistentVolumeSource storageos) { } + public V1PersistentVolumeSpec volumeAttributesClassName(String volumeAttributesClassName) { + + this.volumeAttributesClassName = volumeAttributesClassName; + return this; + } + + /** + * 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). + * @return volumeAttributesClassName + **/ + @javax.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; + } + + + public void setVolumeAttributesClassName(String volumeAttributesClassName) { + this.volumeAttributesClassName = volumeAttributesClassName; + } + + public V1PersistentVolumeSpec volumeMode(String volumeMode) { this.volumeMode = volumeMode; @@ -930,13 +957,14 @@ public boolean equals(java.lang.Object o) { Objects.equals(this.scaleIO, v1PersistentVolumeSpec.scaleIO) && Objects.equals(this.storageClassName, v1PersistentVolumeSpec.storageClassName) && Objects.equals(this.storageos, v1PersistentVolumeSpec.storageos) && + Objects.equals(this.volumeAttributesClassName, v1PersistentVolumeSpec.volumeAttributesClassName) && Objects.equals(this.volumeMode, v1PersistentVolumeSpec.volumeMode) && Objects.equals(this.vsphereVolume, v1PersistentVolumeSpec.vsphereVolume); } @Override public int hashCode() { - return Objects.hash(accessModes, awsElasticBlockStore, azureDisk, azureFile, capacity, cephfs, cinder, claimRef, csi, fc, flexVolume, flocker, gcePersistentDisk, glusterfs, hostPath, iscsi, local, mountOptions, nfs, nodeAffinity, persistentVolumeReclaimPolicy, photonPersistentDisk, portworxVolume, quobyte, rbd, scaleIO, storageClassName, storageos, volumeMode, vsphereVolume); + return Objects.hash(accessModes, awsElasticBlockStore, azureDisk, azureFile, capacity, cephfs, cinder, claimRef, csi, fc, flexVolume, flocker, gcePersistentDisk, glusterfs, hostPath, iscsi, local, mountOptions, nfs, nodeAffinity, persistentVolumeReclaimPolicy, photonPersistentDisk, portworxVolume, quobyte, rbd, scaleIO, storageClassName, storageos, volumeAttributesClassName, volumeMode, vsphereVolume); } @@ -972,6 +1000,7 @@ public String toString() { sb.append(" scaleIO: ").append(toIndentedString(scaleIO)).append("\n"); sb.append(" storageClassName: ").append(toIndentedString(storageClassName)).append("\n"); sb.append(" storageos: ").append(toIndentedString(storageos)).append("\n"); + sb.append(" volumeAttributesClassName: ").append(toIndentedString(volumeAttributesClassName)).append("\n"); sb.append(" volumeMode: ").append(toIndentedString(volumeMode)).append("\n"); sb.append(" vsphereVolume: ").append(toIndentedString(vsphereVolume)).append("\n"); sb.append("}"); 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 8f9d3f78af..387756ca58 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -28,7 +28,7 @@ * PersistentVolumeStatus is the current status of a persistent volume. */ @ApiModel(description = "PersistentVolumeStatus is the current status of a persistent volume.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") public class V1PersistentVolumeStatus { public static final String SERIALIZED_NAME_LAST_PHASE_TRANSITION_TIME = "lastPhaseTransitionTime"; @SerializedName(SERIALIZED_NAME_LAST_PHASE_TRANSITION_TIME) @@ -54,11 +54,11 @@ public V1PersistentVolumeStatus lastPhaseTransitionTime(OffsetDateTime lastPhase } /** - * lastPhaseTransitionTime is the time the phase transitioned from one to another and automatically resets to current time everytime a volume phase transitions. This is an alpha field and requires enabling PersistentVolumeLastPhaseTransitionTime feature. + * lastPhaseTransitionTime is the time the phase transitioned from one to another and automatically resets to current time everytime a volume phase transitions. * @return lastPhaseTransitionTime **/ @javax.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. This is an alpha field and requires enabling PersistentVolumeLastPhaseTransitionTime feature.") + @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; 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 9880e4d31d..a62b40fd13 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -27,7 +27,7 @@ * Represents a Photon Controller persistent disk resource. */ @ApiModel(description = "Represents a Photon Controller persistent disk resource.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") public class V1PhotonPersistentDiskVolumeSource { public static final String SERIALIZED_NAME_FS_TYPE = "fsType"; @SerializedName(SERIALIZED_NAME_FS_TYPE) 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 68e32dd78e..0c2ddf4a65 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -30,7 +30,7 @@ * Pod is a collection of containers that can run on a host. This resource is created by clients and scheduled onto hosts. */ @ApiModel(description = "Pod is a collection of containers that can run on a host. This resource is created by clients and scheduled onto hosts.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") public class V1Pod implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) 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 ec06a32181..6b3db9f346 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -31,7 +31,7 @@ * Pod affinity is a group of inter pod affinity scheduling rules. */ @ApiModel(description = "Pod affinity is a group of inter pod affinity scheduling rules.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") 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) 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 b86823dafc..312d448ba4 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -30,12 +30,20 @@ * 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 */ @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") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") public class V1PodAffinityTerm { public static final String SERIALIZED_NAME_LABEL_SELECTOR = "labelSelector"; @SerializedName(SERIALIZED_NAME_LABEL_SELECTOR) private V1LabelSelector labelSelector; + public static final String SERIALIZED_NAME_MATCH_LABEL_KEYS = "matchLabelKeys"; + @SerializedName(SERIALIZED_NAME_MATCH_LABEL_KEYS) + private List matchLabelKeys = null; + + public static final String SERIALIZED_NAME_MISMATCH_LABEL_KEYS = "mismatchLabelKeys"; + @SerializedName(SERIALIZED_NAME_MISMATCH_LABEL_KEYS) + private List mismatchLabelKeys = null; + public static final String SERIALIZED_NAME_NAMESPACE_SELECTOR = "namespaceSelector"; @SerializedName(SERIALIZED_NAME_NAMESPACE_SELECTOR) private V1LabelSelector namespaceSelector; @@ -72,6 +80,68 @@ public void setLabelSelector(V1LabelSelector labelSelector) { } + public V1PodAffinityTerm matchLabelKeys(List matchLabelKeys) { + + this.matchLabelKeys = matchLabelKeys; + return this; + } + + public V1PodAffinityTerm addMatchLabelKeysItem(String matchLabelKeysItem) { + if (this.matchLabelKeys == null) { + this.matchLabelKeys = new ArrayList<>(); + } + this.matchLabelKeys.add(matchLabelKeysItem); + return this; + } + + /** + * 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. + * @return matchLabelKeys + **/ + @javax.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.") + + public List getMatchLabelKeys() { + return matchLabelKeys; + } + + + public void setMatchLabelKeys(List matchLabelKeys) { + this.matchLabelKeys = matchLabelKeys; + } + + + public V1PodAffinityTerm mismatchLabelKeys(List mismatchLabelKeys) { + + this.mismatchLabelKeys = mismatchLabelKeys; + return this; + } + + public V1PodAffinityTerm addMismatchLabelKeysItem(String mismatchLabelKeysItem) { + if (this.mismatchLabelKeys == null) { + this.mismatchLabelKeys = new ArrayList<>(); + } + this.mismatchLabelKeys.add(mismatchLabelKeysItem); + return this; + } + + /** + * 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. + * @return mismatchLabelKeys + **/ + @javax.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.") + + public List getMismatchLabelKeys() { + return mismatchLabelKeys; + } + + + public void setMismatchLabelKeys(List mismatchLabelKeys) { + this.mismatchLabelKeys = mismatchLabelKeys; + } + + public V1PodAffinityTerm namespaceSelector(V1LabelSelector namespaceSelector) { this.namespaceSelector = namespaceSelector; @@ -158,6 +228,8 @@ public boolean equals(java.lang.Object o) { } V1PodAffinityTerm v1PodAffinityTerm = (V1PodAffinityTerm) o; return Objects.equals(this.labelSelector, v1PodAffinityTerm.labelSelector) && + Objects.equals(this.matchLabelKeys, v1PodAffinityTerm.matchLabelKeys) && + Objects.equals(this.mismatchLabelKeys, v1PodAffinityTerm.mismatchLabelKeys) && Objects.equals(this.namespaceSelector, v1PodAffinityTerm.namespaceSelector) && Objects.equals(this.namespaces, v1PodAffinityTerm.namespaces) && Objects.equals(this.topologyKey, v1PodAffinityTerm.topologyKey); @@ -165,7 +237,7 @@ public boolean equals(java.lang.Object o) { @Override public int hashCode() { - return Objects.hash(labelSelector, namespaceSelector, namespaces, topologyKey); + return Objects.hash(labelSelector, matchLabelKeys, mismatchLabelKeys, namespaceSelector, namespaces, topologyKey); } @@ -174,6 +246,8 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1PodAffinityTerm {\n"); sb.append(" labelSelector: ").append(toIndentedString(labelSelector)).append("\n"); + sb.append(" matchLabelKeys: ").append(toIndentedString(matchLabelKeys)).append("\n"); + sb.append(" mismatchLabelKeys: ").append(toIndentedString(mismatchLabelKeys)).append("\n"); sb.append(" namespaceSelector: ").append(toIndentedString(namespaceSelector)).append("\n"); sb.append(" namespaces: ").append(toIndentedString(namespaces)).append("\n"); sb.append(" topologyKey: ").append(toIndentedString(topologyKey)).append("\n"); 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 05c9f21796..fe5fbd8f1f 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -31,7 +31,7 @@ * Pod anti affinity is a group of inter pod anti affinity scheduling rules. */ @ApiModel(description = "Pod anti affinity is a group of inter pod anti affinity scheduling rules.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") 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) 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 b6e63a45f3..de2648f538 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -28,7 +28,7 @@ * PodCondition contains details for the current condition of this pod. */ @ApiModel(description = "PodCondition contains details for the current condition of this pod.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") public class V1PodCondition { public static final String SERIALIZED_NAME_LAST_PROBE_TIME = "lastProbeTime"; @SerializedName(SERIALIZED_NAME_LAST_PROBE_TIME) @@ -42,6 +42,10 @@ public class V1PodCondition { @SerializedName(SERIALIZED_NAME_MESSAGE) private String message; + public static final String SERIALIZED_NAME_OBSERVED_GENERATION = "observedGeneration"; + @SerializedName(SERIALIZED_NAME_OBSERVED_GENERATION) + private Long observedGeneration; + public static final String SERIALIZED_NAME_REASON = "reason"; @SerializedName(SERIALIZED_NAME_REASON) private String reason; @@ -124,6 +128,29 @@ public void setMessage(String message) { } + public V1PodCondition observedGeneration(Long observedGeneration) { + + this.observedGeneration = observedGeneration; + return this; + } + + /** + * If set, this represents the .metadata.generation that the pod condition was set based upon. This is an alpha field. Enable PodObservedGenerationTracking to be able to use this field. + * @return observedGeneration + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "If set, this represents the .metadata.generation that the pod condition was set based upon. This is an alpha field. Enable PodObservedGenerationTracking to be able to use this field.") + + public Long getObservedGeneration() { + return observedGeneration; + } + + + public void setObservedGeneration(Long observedGeneration) { + this.observedGeneration = observedGeneration; + } + + public V1PodCondition reason(String reason) { this.reason = reason; @@ -203,6 +230,7 @@ public boolean equals(java.lang.Object o) { return Objects.equals(this.lastProbeTime, v1PodCondition.lastProbeTime) && Objects.equals(this.lastTransitionTime, v1PodCondition.lastTransitionTime) && Objects.equals(this.message, v1PodCondition.message) && + Objects.equals(this.observedGeneration, v1PodCondition.observedGeneration) && Objects.equals(this.reason, v1PodCondition.reason) && Objects.equals(this.status, v1PodCondition.status) && Objects.equals(this.type, v1PodCondition.type); @@ -210,7 +238,7 @@ public boolean equals(java.lang.Object o) { @Override public int hashCode() { - return Objects.hash(lastProbeTime, lastTransitionTime, message, reason, status, type); + return Objects.hash(lastProbeTime, lastTransitionTime, message, observedGeneration, reason, status, type); } @@ -221,6 +249,7 @@ public String toString() { sb.append(" lastProbeTime: ").append(toIndentedString(lastProbeTime)).append("\n"); sb.append(" lastTransitionTime: ").append(toIndentedString(lastTransitionTime)).append("\n"); sb.append(" message: ").append(toIndentedString(message)).append("\n"); + sb.append(" observedGeneration: ").append(toIndentedString(observedGeneration)).append("\n"); sb.append(" reason: ").append(toIndentedString(reason)).append("\n"); sb.append(" status: ").append(toIndentedString(status)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); 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 bc865fca18..b8bd45d063 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -30,7 +30,7 @@ * PodDNSConfig defines the DNS parameters of a pod in addition to those generated from DNSPolicy. */ @ApiModel(description = "PodDNSConfig defines the DNS parameters of a pod in addition to those generated from DNSPolicy.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") public class V1PodDNSConfig { public static final String SERIALIZED_NAME_NAMESERVERS = "nameservers"; @SerializedName(SERIALIZED_NAME_NAMESERVERS) 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 9f06453648..db52d5527f 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -27,7 +27,7 @@ * PodDNSConfigOption defines DNS resolver options of a pod. */ @ApiModel(description = "PodDNSConfigOption defines DNS resolver options of a pod.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") public class V1PodDNSConfigOption { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) @@ -45,11 +45,11 @@ public V1PodDNSConfigOption name(String name) { } /** - * Required. + * Name is this DNS resolver option's name. Required. * @return name **/ @javax.annotation.Nullable - @ApiModelProperty(value = "Required.") + @ApiModelProperty(value = "Name is this DNS resolver option's name. Required.") public String getName() { return name; @@ -68,11 +68,11 @@ public V1PodDNSConfigOption value(String value) { } /** - * Get value + * Value is this DNS resolver option's value. * @return value **/ @javax.annotation.Nullable - @ApiModelProperty(value = "") + @ApiModelProperty(value = "Value is this DNS resolver option's 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 dffb363fdf..5a65fec810 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -30,7 +30,7 @@ * PodDisruptionBudget is an object to define the max disruption that can be caused to a collection of pods */ @ApiModel(description = "PodDisruptionBudget is an object to define the max disruption that can be caused to a collection of pods") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") public class V1PodDisruptionBudget implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) 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 d10c5a6c89..3c894c66b0 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -31,7 +31,7 @@ * PodDisruptionBudgetList is a collection of PodDisruptionBudgets. */ @ApiModel(description = "PodDisruptionBudgetList is a collection of PodDisruptionBudgets.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") public class V1PodDisruptionBudgetList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) 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 df1aaeef01..24be70ef0c 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -29,7 +29,7 @@ * PodDisruptionBudgetSpec is a description of a PodDisruptionBudget. */ @ApiModel(description = "PodDisruptionBudgetSpec is a description of a PodDisruptionBudget.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") public class V1PodDisruptionBudgetSpec { public static final String SERIALIZED_NAME_MAX_UNAVAILABLE = "maxUnavailable"; @SerializedName(SERIALIZED_NAME_MAX_UNAVAILABLE) @@ -124,11 +124,11 @@ public V1PodDisruptionBudgetSpec unhealthyPodEvictionPolicy(String unhealthyPodE } /** - * 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). + * 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. * @return unhealthyPodEvictionPolicy **/ @javax.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).") + @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.") 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 ecc5287beb..035008fd3e 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -33,7 +33,7 @@ * PodDisruptionBudgetStatus represents information about the status of a PodDisruptionBudget. Status may trail the actual state of a system. */ @ApiModel(description = "PodDisruptionBudgetStatus represents information about the status of a PodDisruptionBudget. Status may trail the actual state of a system.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") public class V1PodDisruptionBudgetStatus { public static final String SERIALIZED_NAME_CONDITIONS = "conditions"; @SerializedName(SERIALIZED_NAME_CONDITIONS) 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 b7a33e31f5..a9c4c5f653 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -30,7 +30,7 @@ * PodFailurePolicy describes how failed pods influence the backoffLimit. */ @ApiModel(description = "PodFailurePolicy describes how failed pods influence the backoffLimit.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") public class V1PodFailurePolicy { public static final String SERIALIZED_NAME_RULES = "rules"; @SerializedName(SERIALIZED_NAME_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 9e095cb718..2815132450 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -29,7 +29,7 @@ * 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. */ @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.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") public class V1PodFailurePolicyOnExitCodesRequirement { public static final String SERIALIZED_NAME_CONTAINER_NAME = "containerName"; @SerializedName(SERIALIZED_NAME_CONTAINER_NAME) 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 003e4e4440..d1bfb18a85 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -27,7 +27,7 @@ * PodFailurePolicyOnPodConditionsPattern describes a pattern for matching an actual pod condition type. */ @ApiModel(description = "PodFailurePolicyOnPodConditionsPattern describes a pattern for matching an actual pod condition type.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") public class V1PodFailurePolicyOnPodConditionsPattern { public static final String SERIALIZED_NAME_STATUS = "status"; @SerializedName(SERIALIZED_NAME_STATUS) 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 79b6e3198e..c7d3cbfa52 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -31,7 +31,7 @@ * 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. */ @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.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") public class V1PodFailurePolicyRule { public static final String SERIALIZED_NAME_ACTION = "action"; @SerializedName(SERIALIZED_NAME_ACTION) @@ -53,10 +53,10 @@ public V1PodFailurePolicyRule action(String action) { } /** - * 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 alpha-level. It can be used when the `JobBackoffLimitPerIndex` feature gate is enabled (disabled 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. + * 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. - 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. * @return action **/ - @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 alpha-level. It can be used when the `JobBackoffLimitPerIndex` feature gate is enabled (disabled 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.") + @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. - 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; 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 b5e6b439c5..24f9aaa50b 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -27,7 +27,7 @@ * PodIP represents a single IP address allocated to the pod. */ @ApiModel(description = "PodIP represents a single IP address allocated to the pod.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") public class V1PodIP { public static final String SERIALIZED_NAME_IP = "ip"; @SerializedName(SERIALIZED_NAME_IP) @@ -44,8 +44,7 @@ public V1PodIP ip(String ip) { * IP is the IP address assigned to the pod * @return ip **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "IP is the IP address assigned to the pod") + @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 990f7cebec..5efecc8bcf 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -31,7 +31,7 @@ * PodList is a list of Pods. */ @ApiModel(description = "PodList is a list of Pods.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") public class V1PodList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) 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 c6b6d47677..020485dd16 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -27,7 +27,7 @@ * PodOS defines the OS parameters of a pod. */ @ApiModel(description = "PodOS defines the OS parameters of a pod.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") public class V1PodOS { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_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 32d38f7d5e..ada0d32c72 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -27,7 +27,7 @@ * PodReadinessGate contains the reference to a pod condition */ @ApiModel(description = "PodReadinessGate contains the reference to a pod condition") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") public class V1PodReadinessGate { public static final String SERIALIZED_NAME_CONDITION_TYPE = "conditionType"; @SerializedName(SERIALIZED_NAME_CONDITION_TYPE) 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 7d9f57d607..f523040182 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,24 +19,27 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.kubernetes.client.openapi.models.V1ClaimSource; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.io.IOException; /** - * PodResourceClaim references exactly one ResourceClaim through a ClaimSource. 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. + * 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. */ -@ApiModel(description = "PodResourceClaim references exactly one ResourceClaim through a ClaimSource. 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.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") +@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.") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") public class V1PodResourceClaim { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) private String name; - public static final String SERIALIZED_NAME_SOURCE = "source"; - @SerializedName(SERIALIZED_NAME_SOURCE) - private V1ClaimSource source; + public static final String SERIALIZED_NAME_RESOURCE_CLAIM_NAME = "resourceClaimName"; + @SerializedName(SERIALIZED_NAME_RESOURCE_CLAIM_NAME) + private String resourceClaimName; + + public static final String SERIALIZED_NAME_RESOURCE_CLAIM_TEMPLATE_NAME = "resourceClaimTemplateName"; + @SerializedName(SERIALIZED_NAME_RESOURCE_CLAIM_TEMPLATE_NAME) + private String resourceClaimTemplateName; public V1PodResourceClaim name(String name) { @@ -61,26 +64,49 @@ public void setName(String name) { } - public V1PodResourceClaim source(V1ClaimSource source) { + public V1PodResourceClaim resourceClaimName(String resourceClaimName) { + + this.resourceClaimName = resourceClaimName; + return this; + } + + /** + * ResourceClaimName is the name of a ResourceClaim object in the same namespace as this pod. Exactly one of ResourceClaimName and ResourceClaimTemplateName must be set. + * @return resourceClaimName + **/ + @javax.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; + } + + + public void setResourceClaimName(String resourceClaimName) { + this.resourceClaimName = resourceClaimName; + } + + + public V1PodResourceClaim resourceClaimTemplateName(String resourceClaimTemplateName) { - this.source = source; + this.resourceClaimTemplateName = resourceClaimTemplateName; return this; } /** - * Get source - * @return source + * 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. + * @return resourceClaimTemplateName **/ @javax.annotation.Nullable - @ApiModelProperty(value = "") + @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 V1ClaimSource getSource() { - return source; + public String getResourceClaimTemplateName() { + return resourceClaimTemplateName; } - public void setSource(V1ClaimSource source) { - this.source = source; + public void setResourceClaimTemplateName(String resourceClaimTemplateName) { + this.resourceClaimTemplateName = resourceClaimTemplateName; } @@ -94,12 +120,13 @@ public boolean equals(java.lang.Object o) { } V1PodResourceClaim v1PodResourceClaim = (V1PodResourceClaim) o; return Objects.equals(this.name, v1PodResourceClaim.name) && - Objects.equals(this.source, v1PodResourceClaim.source); + Objects.equals(this.resourceClaimName, v1PodResourceClaim.resourceClaimName) && + Objects.equals(this.resourceClaimTemplateName, v1PodResourceClaim.resourceClaimTemplateName); } @Override public int hashCode() { - return Objects.hash(name, source); + return Objects.hash(name, resourceClaimName, resourceClaimTemplateName); } @@ -108,7 +135,8 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1PodResourceClaim {\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); - sb.append(" source: ").append(toIndentedString(source)).append("\n"); + sb.append(" resourceClaimName: ").append(toIndentedString(resourceClaimName)).append("\n"); + sb.append(" resourceClaimTemplateName: ").append(toIndentedString(resourceClaimTemplateName)).append("\n"); sb.append("}"); return sb.toString(); } 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 eff05fee66..3cb98f10ec 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -27,7 +27,7 @@ * PodResourceClaimStatus is stored in the PodStatus for each PodResourceClaim which references a ResourceClaimTemplate. It stores the generated name for the corresponding ResourceClaim. */ @ApiModel(description = "PodResourceClaimStatus is stored in the PodStatus for each PodResourceClaim which references a ResourceClaimTemplate. It stores the generated name for the corresponding ResourceClaim.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") public class V1PodResourceClaimStatus { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) @@ -67,11 +67,11 @@ public V1PodResourceClaimStatus resourceClaimName(String resourceClaimName) { } /** - * ResourceClaimName is the name of the ResourceClaim that was generated for the Pod in the namespace of the Pod. It this is unset, then generating a ResourceClaim was not necessary. The pod.spec.resourceClaims entry can be ignored in this case. + * 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. * @return resourceClaimName **/ @javax.annotation.Nullable - @ApiModelProperty(value = "ResourceClaimName is the name of the ResourceClaim that was generated for the Pod in the namespace of the Pod. It this is unset, then generating a ResourceClaim was not necessary. The pod.spec.resourceClaims entry can be ignored in this case.") + @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 cc56182bf8..561138ad6f 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -27,7 +27,7 @@ * PodSchedulingGate is associated to a Pod to guard its scheduling. */ @ApiModel(description = "PodSchedulingGate is associated to a Pod to guard its scheduling.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") public class V1PodSchedulingGate { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_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 d13b2433cb..ddb52886a2 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,7 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.openapi.models.V1AppArmorProfile; import io.kubernetes.client.openapi.models.V1SELinuxOptions; import io.kubernetes.client.openapi.models.V1SeccompProfile; import io.kubernetes.client.openapi.models.V1Sysctl; @@ -33,8 +34,12 @@ * 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. */ @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.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") public class V1PodSecurityContext { + public static final String SERIALIZED_NAME_APP_ARMOR_PROFILE = "appArmorProfile"; + @SerializedName(SERIALIZED_NAME_APP_ARMOR_PROFILE) + private V1AppArmorProfile appArmorProfile; + public static final String SERIALIZED_NAME_FS_GROUP = "fsGroup"; @SerializedName(SERIALIZED_NAME_FS_GROUP) private Long fsGroup; @@ -55,6 +60,10 @@ public class V1PodSecurityContext { @SerializedName(SERIALIZED_NAME_RUN_AS_USER) private Long runAsUser; + public static final String SERIALIZED_NAME_SE_LINUX_CHANGE_POLICY = "seLinuxChangePolicy"; + @SerializedName(SERIALIZED_NAME_SE_LINUX_CHANGE_POLICY) + private String seLinuxChangePolicy; + public static final String SERIALIZED_NAME_SE_LINUX_OPTIONS = "seLinuxOptions"; @SerializedName(SERIALIZED_NAME_SE_LINUX_OPTIONS) private V1SELinuxOptions seLinuxOptions; @@ -67,6 +76,10 @@ public class V1PodSecurityContext { @SerializedName(SERIALIZED_NAME_SUPPLEMENTAL_GROUPS) private List supplementalGroups = null; + public static final String SERIALIZED_NAME_SUPPLEMENTAL_GROUPS_POLICY = "supplementalGroupsPolicy"; + @SerializedName(SERIALIZED_NAME_SUPPLEMENTAL_GROUPS_POLICY) + private String supplementalGroupsPolicy; + public static final String SERIALIZED_NAME_SYSCTLS = "sysctls"; @SerializedName(SERIALIZED_NAME_SYSCTLS) private List sysctls = null; @@ -76,6 +89,29 @@ public class V1PodSecurityContext { private V1WindowsSecurityContextOptions windowsOptions; + public V1PodSecurityContext appArmorProfile(V1AppArmorProfile appArmorProfile) { + + this.appArmorProfile = appArmorProfile; + return this; + } + + /** + * Get appArmorProfile + * @return appArmorProfile + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public V1AppArmorProfile getAppArmorProfile() { + return appArmorProfile; + } + + + public void setAppArmorProfile(V1AppArmorProfile appArmorProfile) { + this.appArmorProfile = appArmorProfile; + } + + public V1PodSecurityContext fsGroup(Long fsGroup) { this.fsGroup = fsGroup; @@ -191,6 +227,29 @@ public void setRunAsUser(Long runAsUser) { } + public V1PodSecurityContext seLinuxChangePolicy(String seLinuxChangePolicy) { + + this.seLinuxChangePolicy = seLinuxChangePolicy; + return this; + } + + /** + * seLinuxChangePolicy defines how the container's SELinux label is applied to all volumes used by the Pod. It has no effect on nodes that do not support SELinux or to volumes does not support SELinux. Valid values are \"MountOption\" and \"Recursive\". \"Recursive\" means relabeling of all files on all Pod volumes by the container runtime. This may be slow for large volumes, but allows mixing privileged and unprivileged Pods sharing the same volume on the same node. \"MountOption\" mounts all eligible Pod volumes with `-o context` mount option. This requires all Pods that share the same volume to use the same SELinux label. It is not possible to share the same volume among privileged and unprivileged Pods. Eligible volumes are in-tree FibreChannel and iSCSI volumes, and all CSI volumes whose CSI driver announces SELinux support by setting spec.seLinuxMount: true in their CSIDriver instance. Other volumes are always re-labelled recursively. \"MountOption\" value is allowed only when SELinuxMount feature gate is enabled. If not specified and SELinuxMount feature gate is enabled, \"MountOption\" is used. If not specified and SELinuxMount feature gate is disabled, \"MountOption\" is used for ReadWriteOncePod volumes and \"Recursive\" for all other volumes. This field affects only Pods that have SELinux label set, either in PodSecurityContext or in SecurityContext of all containers. All Pods that use the same volume should use the same seLinuxChangePolicy, otherwise some pods can get stuck in ContainerCreating state. Note that this field cannot be set when spec.os.name is windows. + * @return seLinuxChangePolicy + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "seLinuxChangePolicy defines how the container's SELinux label is applied to all volumes used by the Pod. It has no effect on nodes that do not support SELinux or to volumes does not support SELinux. Valid values are \"MountOption\" and \"Recursive\". \"Recursive\" means relabeling of all files on all Pod volumes by the container runtime. This may be slow for large volumes, but allows mixing privileged and unprivileged Pods sharing the same volume on the same node. \"MountOption\" mounts all eligible Pod volumes with `-o context` mount option. This requires all Pods that share the same volume to use the same SELinux label. It is not possible to share the same volume among privileged and unprivileged Pods. Eligible volumes are in-tree FibreChannel and iSCSI volumes, and all CSI volumes whose CSI driver announces SELinux support by setting spec.seLinuxMount: true in their CSIDriver instance. Other volumes are always re-labelled recursively. \"MountOption\" value is allowed only when SELinuxMount feature gate is enabled. If not specified and SELinuxMount feature gate is enabled, \"MountOption\" is used. If not specified and SELinuxMount feature gate is disabled, \"MountOption\" is used for ReadWriteOncePod volumes and \"Recursive\" for all other volumes. This field affects only Pods that have SELinux label set, either in PodSecurityContext or in SecurityContext of all containers. All Pods that use the same volume should use the same seLinuxChangePolicy, otherwise some pods can get stuck in ContainerCreating state. Note that this field cannot be set when spec.os.name is windows.") + + public String getSeLinuxChangePolicy() { + return seLinuxChangePolicy; + } + + + public void setSeLinuxChangePolicy(String seLinuxChangePolicy) { + this.seLinuxChangePolicy = seLinuxChangePolicy; + } + + public V1PodSecurityContext seLinuxOptions(V1SELinuxOptions seLinuxOptions) { this.seLinuxOptions = seLinuxOptions; @@ -252,11 +311,11 @@ public V1PodSecurityContext addSupplementalGroupsItem(Long supplementalGroupsIte } /** - * A list of groups applied to the first process run in each container, in addition to the container's primary GID, the fsGroup (if specified), and group memberships defined in the container image for the uid of the container process. If unspecified, no additional groups are added to any container. Note that group memberships defined in the container image for the uid of the container process are still effective, even if they are not included in this list. Note that this field cannot be set when spec.os.name is windows. + * 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. * @return supplementalGroups **/ @javax.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, the fsGroup (if specified), and group memberships defined in the container image for the uid of the container process. If unspecified, no additional groups are added to any container. Note that group memberships defined in the container image for the uid of the container process are still effective, even if they are not included in this list. Note that this field cannot be set when spec.os.name is windows.") + @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; @@ -268,6 +327,29 @@ public void setSupplementalGroups(List supplementalGroups) { } + public V1PodSecurityContext supplementalGroupsPolicy(String supplementalGroupsPolicy) { + + this.supplementalGroupsPolicy = supplementalGroupsPolicy; + return this; + } + + /** + * 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. + * @return supplementalGroupsPolicy + **/ + @javax.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; + } + + + public void setSupplementalGroupsPolicy(String supplementalGroupsPolicy) { + this.supplementalGroupsPolicy = supplementalGroupsPolicy; + } + + public V1PodSecurityContext sysctls(List sysctls) { this.sysctls = sysctls; @@ -331,21 +413,24 @@ public boolean equals(java.lang.Object o) { return false; } V1PodSecurityContext v1PodSecurityContext = (V1PodSecurityContext) o; - return Objects.equals(this.fsGroup, v1PodSecurityContext.fsGroup) && + return Objects.equals(this.appArmorProfile, v1PodSecurityContext.appArmorProfile) && + Objects.equals(this.fsGroup, v1PodSecurityContext.fsGroup) && Objects.equals(this.fsGroupChangePolicy, v1PodSecurityContext.fsGroupChangePolicy) && Objects.equals(this.runAsGroup, v1PodSecurityContext.runAsGroup) && Objects.equals(this.runAsNonRoot, v1PodSecurityContext.runAsNonRoot) && Objects.equals(this.runAsUser, v1PodSecurityContext.runAsUser) && + Objects.equals(this.seLinuxChangePolicy, v1PodSecurityContext.seLinuxChangePolicy) && Objects.equals(this.seLinuxOptions, v1PodSecurityContext.seLinuxOptions) && Objects.equals(this.seccompProfile, v1PodSecurityContext.seccompProfile) && Objects.equals(this.supplementalGroups, v1PodSecurityContext.supplementalGroups) && + Objects.equals(this.supplementalGroupsPolicy, v1PodSecurityContext.supplementalGroupsPolicy) && Objects.equals(this.sysctls, v1PodSecurityContext.sysctls) && Objects.equals(this.windowsOptions, v1PodSecurityContext.windowsOptions); } @Override public int hashCode() { - return Objects.hash(fsGroup, fsGroupChangePolicy, runAsGroup, runAsNonRoot, runAsUser, seLinuxOptions, seccompProfile, supplementalGroups, sysctls, windowsOptions); + return Objects.hash(appArmorProfile, fsGroup, fsGroupChangePolicy, runAsGroup, runAsNonRoot, runAsUser, seLinuxChangePolicy, seLinuxOptions, seccompProfile, supplementalGroups, supplementalGroupsPolicy, sysctls, windowsOptions); } @@ -353,14 +438,17 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1PodSecurityContext {\n"); + sb.append(" appArmorProfile: ").append(toIndentedString(appArmorProfile)).append("\n"); sb.append(" fsGroup: ").append(toIndentedString(fsGroup)).append("\n"); sb.append(" fsGroupChangePolicy: ").append(toIndentedString(fsGroupChangePolicy)).append("\n"); sb.append(" runAsGroup: ").append(toIndentedString(runAsGroup)).append("\n"); sb.append(" runAsNonRoot: ").append(toIndentedString(runAsNonRoot)).append("\n"); sb.append(" runAsUser: ").append(toIndentedString(runAsUser)).append("\n"); + sb.append(" seLinuxChangePolicy: ").append(toIndentedString(seLinuxChangePolicy)).append("\n"); sb.append(" seLinuxOptions: ").append(toIndentedString(seLinuxOptions)).append("\n"); sb.append(" seccompProfile: ").append(toIndentedString(seccompProfile)).append("\n"); sb.append(" supplementalGroups: ").append(toIndentedString(supplementalGroups)).append("\n"); + sb.append(" supplementalGroupsPolicy: ").append(toIndentedString(supplementalGroupsPolicy)).append("\n"); sb.append(" sysctls: ").append(toIndentedString(sysctls)).append("\n"); sb.append(" windowsOptions: ").append(toIndentedString(windowsOptions)).append("\n"); sb.append("}"); 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 98cf773c3c..bf703dbd0f 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -31,6 +31,7 @@ import io.kubernetes.client.openapi.models.V1PodResourceClaim; import io.kubernetes.client.openapi.models.V1PodSchedulingGate; import io.kubernetes.client.openapi.models.V1PodSecurityContext; +import io.kubernetes.client.openapi.models.V1ResourceRequirements; import io.kubernetes.client.openapi.models.V1Toleration; import io.kubernetes.client.openapi.models.V1TopologySpreadConstraint; import io.kubernetes.client.openapi.models.V1Volume; @@ -46,7 +47,7 @@ * PodSpec is a description of a pod. */ @ApiModel(description = "PodSpec is a description of a pod.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") public class V1PodSpec { public static final String SERIALIZED_NAME_ACTIVE_DEADLINE_SECONDS = "activeDeadlineSeconds"; @SerializedName(SERIALIZED_NAME_ACTIVE_DEADLINE_SECONDS) @@ -148,6 +149,10 @@ public class V1PodSpec { @SerializedName(SERIALIZED_NAME_RESOURCE_CLAIMS) private List resourceClaims = null; + public static final String SERIALIZED_NAME_RESOURCES = "resources"; + @SerializedName(SERIALIZED_NAME_RESOURCES) + private V1ResourceRequirements resources; + public static final String SERIALIZED_NAME_RESTART_POLICY = "restartPolicy"; @SerializedName(SERIALIZED_NAME_RESTART_POLICY) private String restartPolicy; @@ -416,11 +421,11 @@ public V1PodSpec addHostAliasesItem(V1HostAlias hostAliasesItem) { } /** - * HostAliases is an optional list of hosts and IPs that will be injected into the pod's hosts file if specified. This is only valid for non-hostNetwork pods. + * HostAliases is an optional list of hosts and IPs that will be injected into the pod's hosts file if specified. * @return hostAliases **/ @javax.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. This is only valid for non-hostNetwork pods.") + @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; @@ -593,11 +598,11 @@ public V1PodSpec addInitContainersItem(V1Container initContainersItem) { } /** - * 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/ + * 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 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/ * @return initContainers **/ @javax.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/") + @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 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; @@ -616,11 +621,11 @@ public V1PodSpec nodeName(String nodeName) { } /** - * NodeName is a request to schedule this pod onto a specific node. If it is non-empty, the scheduler simply schedules this pod onto that node, assuming that it fits resource requirements. + * 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 * @return nodeName **/ @javax.annotation.Nullable - @ApiModelProperty(value = "NodeName is a request to schedule this pod onto a specific node. If it is non-empty, the scheduler simply schedules this pod onto that node, assuming that it fits resource requirements.") + @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; @@ -848,6 +853,29 @@ public void setResourceClaims(List resourceClaims) { } + public V1PodSpec resources(V1ResourceRequirements resources) { + + this.resources = resources; + return this; + } + + /** + * Get resources + * @return resources + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public V1ResourceRequirements getResources() { + return resources; + } + + + public void setResources(V1ResourceRequirements resources) { + this.resources = resources; + } + + public V1PodSpec restartPolicy(String restartPolicy) { this.restartPolicy = restartPolicy; @@ -932,11 +960,11 @@ public V1PodSpec addSchedulingGatesItem(V1PodSchedulingGate schedulingGatesItem) } /** - * 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. This is a beta feature enabled by the PodSchedulingReadiness feature gate. + * 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. * @return schedulingGates **/ @javax.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. This is a beta feature enabled by the PodSchedulingReadiness feature gate.") + @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; @@ -978,11 +1006,11 @@ public V1PodSpec serviceAccount(String serviceAccount) { } /** - * DeprecatedServiceAccount is a depreciated alias for ServiceAccountName. Deprecated: Use serviceAccountName instead. + * DeprecatedServiceAccount is a deprecated alias for ServiceAccountName. Deprecated: Use serviceAccountName instead. * @return serviceAccount **/ @javax.annotation.Nullable - @ApiModelProperty(value = "DeprecatedServiceAccount is a depreciated alias for ServiceAccountName. Deprecated: Use serviceAccountName instead.") + @ApiModelProperty(value = "DeprecatedServiceAccount is a deprecated alias for ServiceAccountName. Deprecated: Use serviceAccountName instead.") public String getServiceAccount() { return serviceAccount; @@ -1024,11 +1052,11 @@ public V1PodSpec setHostnameAsFQDN(Boolean setHostnameAsFQDN) { } /** - * 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. + * 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. * @return setHostnameAsFQDN **/ @javax.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.") + @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; @@ -1236,6 +1264,7 @@ public boolean equals(java.lang.Object o) { Objects.equals(this.priorityClassName, v1PodSpec.priorityClassName) && Objects.equals(this.readinessGates, v1PodSpec.readinessGates) && Objects.equals(this.resourceClaims, v1PodSpec.resourceClaims) && + Objects.equals(this.resources, v1PodSpec.resources) && Objects.equals(this.restartPolicy, v1PodSpec.restartPolicy) && Objects.equals(this.runtimeClassName, v1PodSpec.runtimeClassName) && Objects.equals(this.schedulerName, v1PodSpec.schedulerName) && @@ -1254,7 +1283,7 @@ public boolean equals(java.lang.Object o) { @Override public int hashCode() { - return Objects.hash(activeDeadlineSeconds, affinity, automountServiceAccountToken, containers, dnsConfig, dnsPolicy, enableServiceLinks, ephemeralContainers, hostAliases, hostIPC, hostNetwork, hostPID, hostUsers, hostname, imagePullSecrets, initContainers, nodeName, nodeSelector, os, overhead, preemptionPolicy, priority, priorityClassName, readinessGates, resourceClaims, restartPolicy, runtimeClassName, schedulerName, schedulingGates, securityContext, serviceAccount, serviceAccountName, setHostnameAsFQDN, shareProcessNamespace, subdomain, terminationGracePeriodSeconds, tolerations, topologySpreadConstraints, volumes); + return Objects.hash(activeDeadlineSeconds, affinity, automountServiceAccountToken, containers, dnsConfig, dnsPolicy, enableServiceLinks, ephemeralContainers, hostAliases, hostIPC, hostNetwork, hostPID, hostUsers, hostname, imagePullSecrets, initContainers, nodeName, nodeSelector, os, overhead, preemptionPolicy, priority, priorityClassName, readinessGates, resourceClaims, resources, restartPolicy, runtimeClassName, schedulerName, schedulingGates, securityContext, serviceAccount, serviceAccountName, setHostnameAsFQDN, shareProcessNamespace, subdomain, terminationGracePeriodSeconds, tolerations, topologySpreadConstraints, volumes); } @@ -1287,6 +1316,7 @@ public String toString() { sb.append(" priorityClassName: ").append(toIndentedString(priorityClassName)).append("\n"); sb.append(" readinessGates: ").append(toIndentedString(readinessGates)).append("\n"); sb.append(" resourceClaims: ").append(toIndentedString(resourceClaims)).append("\n"); + sb.append(" resources: ").append(toIndentedString(resources)).append("\n"); sb.append(" restartPolicy: ").append(toIndentedString(restartPolicy)).append("\n"); sb.append(" runtimeClassName: ").append(toIndentedString(runtimeClassName)).append("\n"); sb.append(" schedulerName: ").append(toIndentedString(schedulerName)).append("\n"); 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 6ea0025a95..e4e3a551b0 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -35,7 +35,7 @@ * PodStatus represents information about the status of a pod. Status may trail the actual state of a system, especially if the node that hosts the pod cannot contact the control plane. */ @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.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") public class V1PodStatus { public static final String SERIALIZED_NAME_CONDITIONS = "conditions"; @SerializedName(SERIALIZED_NAME_CONDITIONS) @@ -69,6 +69,10 @@ public class V1PodStatus { @SerializedName(SERIALIZED_NAME_NOMINATED_NODE_NAME) private String nominatedNodeName; + public static final String SERIALIZED_NAME_OBSERVED_GENERATION = "observedGeneration"; + @SerializedName(SERIALIZED_NAME_OBSERVED_GENERATION) + private Long observedGeneration; + public static final String SERIALIZED_NAME_PHASE = "phase"; @SerializedName(SERIALIZED_NAME_PHASE) private String phase; @@ -148,11 +152,11 @@ public V1PodStatus addContainerStatusesItem(V1ContainerStatus containerStatusesI } /** - * 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 + * Statuses of containers in this pod. Each container in the pod should have at most one status in this list, and all statuses should be for containers in the pod. However this is not enforced. If a status for a non-existent container is present in the list, or the list has duplicate names, the behavior of various Kubernetes components is not defined and those statuses might be ignored. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-and-container-status * @return containerStatuses **/ @javax.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") + @ApiModelProperty(value = "Statuses of containers in this pod. Each container in the pod should have at most one status in this list, and all statuses should be for containers in the pod. However this is not enforced. If a status for a non-existent container is present in the list, or the list has duplicate names, the behavior of various Kubernetes components is not defined and those statuses might be ignored. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-and-container-status") public List getContainerStatuses() { return containerStatuses; @@ -179,11 +183,11 @@ public V1PodStatus addEphemeralContainerStatusesItem(V1ContainerStatus ephemeral } /** - * Status for any ephemeral containers that have run in this pod. + * Statuses for any ephemeral containers that have run in this pod. Each ephemeral container in the pod should have at most one status in this list, and all statuses should be for containers in the pod. However this is not enforced. If a status for a non-existent container is present in the list, or the list has duplicate names, the behavior of various Kubernetes components is not defined and those statuses might be ignored. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-and-container-status * @return ephemeralContainerStatuses **/ @javax.annotation.Nullable - @ApiModelProperty(value = "Status for any ephemeral containers that have run in this pod.") + @ApiModelProperty(value = "Statuses for any ephemeral containers that have run in this pod. Each ephemeral container in the pod should have at most one status in this list, and all statuses should be for containers in the pod. However this is not enforced. If a status for a non-existent container is present in the list, or the list has duplicate names, the behavior of various Kubernetes components is not defined and those statuses might be ignored. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-and-container-status") public List getEphemeralContainerStatuses() { return ephemeralContainerStatuses; @@ -264,11 +268,11 @@ public V1PodStatus addInitContainerStatusesItem(V1ContainerStatus initContainerS } /** - * 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 + * Statuses of init containers in this pod. The most recent successful non-restartable init container will have ready = true, the most recently started container will have startTime set. Each init container in the pod should have at most one status in this list, and all statuses should be for containers in the pod. However this is not enforced. If a status for a non-existent container is present in the list, or the list has duplicate names, the behavior of various Kubernetes components is not defined and those statuses might be ignored. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#pod-and-container-status * @return initContainerStatuses **/ @javax.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") + @ApiModelProperty(value = "Statuses of init containers in this pod. The most recent successful non-restartable init container will have ready = true, the most recently started container will have startTime set. Each init container in the pod should have at most one status in this list, and all statuses should be for containers in the pod. However this is not enforced. If a status for a non-existent container is present in the list, or the list has duplicate names, the behavior of various Kubernetes components is not defined and those statuses might be ignored. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#pod-and-container-status") public List getInitContainerStatuses() { return initContainerStatuses; @@ -326,6 +330,29 @@ public void setNominatedNodeName(String nominatedNodeName) { } + public V1PodStatus observedGeneration(Long observedGeneration) { + + this.observedGeneration = observedGeneration; + return this; + } + + /** + * If set, this represents the .metadata.generation that the pod status was set based upon. This is an alpha field. Enable PodObservedGenerationTracking to be able to use this field. + * @return observedGeneration + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "If set, this represents the .metadata.generation that the pod status was set based upon. This is an alpha field. Enable PodObservedGenerationTracking to be able to use this field.") + + public Long getObservedGeneration() { + return observedGeneration; + } + + + public void setObservedGeneration(Long observedGeneration) { + this.observedGeneration = observedGeneration; + } + + public V1PodStatus phase(String phase) { this.phase = phase; @@ -456,11 +483,11 @@ public V1PodStatus resize(String resize) { } /** - * 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\" + * 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\" Deprecated: Resize status is moved to two pod conditions PodResizePending and PodResizeInProgress. PodResizePending will track states where the spec has been resized, but the Kubelet has not yet allocated the resources. PodResizeInProgress will track in-progress resizes, and should be present whenever allocated resources != acknowledged resources. * @return resize **/ @javax.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\"") + @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\" Deprecated: Resize status is moved to two pod conditions PodResizePending and PodResizeInProgress. PodResizePending will track states where the spec has been resized, but the Kubelet has not yet allocated the resources. PodResizeInProgress will track in-progress resizes, and should be present whenever allocated resources != acknowledged resources.") public String getResize() { return resize; @@ -543,6 +570,7 @@ public boolean equals(java.lang.Object o) { Objects.equals(this.initContainerStatuses, v1PodStatus.initContainerStatuses) && Objects.equals(this.message, v1PodStatus.message) && Objects.equals(this.nominatedNodeName, v1PodStatus.nominatedNodeName) && + Objects.equals(this.observedGeneration, v1PodStatus.observedGeneration) && Objects.equals(this.phase, v1PodStatus.phase) && Objects.equals(this.podIP, v1PodStatus.podIP) && Objects.equals(this.podIPs, v1PodStatus.podIPs) && @@ -555,7 +583,7 @@ public boolean equals(java.lang.Object o) { @Override public int hashCode() { - return Objects.hash(conditions, containerStatuses, ephemeralContainerStatuses, hostIP, hostIPs, initContainerStatuses, message, nominatedNodeName, phase, podIP, podIPs, qosClass, reason, resize, resourceClaimStatuses, startTime); + return Objects.hash(conditions, containerStatuses, ephemeralContainerStatuses, hostIP, hostIPs, initContainerStatuses, message, nominatedNodeName, observedGeneration, phase, podIP, podIPs, qosClass, reason, resize, resourceClaimStatuses, startTime); } @@ -571,6 +599,7 @@ public String toString() { sb.append(" initContainerStatuses: ").append(toIndentedString(initContainerStatuses)).append("\n"); sb.append(" message: ").append(toIndentedString(message)).append("\n"); sb.append(" nominatedNodeName: ").append(toIndentedString(nominatedNodeName)).append("\n"); + sb.append(" observedGeneration: ").append(toIndentedString(observedGeneration)).append("\n"); sb.append(" phase: ").append(toIndentedString(phase)).append("\n"); sb.append(" podIP: ").append(toIndentedString(podIP)).append("\n"); sb.append(" podIPs: ").append(toIndentedString(podIPs)).append("\n"); 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 5e65bd99e4..eec6ddd3c1 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -29,7 +29,7 @@ * PodTemplate describes a template for creating copies of a predefined pod. */ @ApiModel(description = "PodTemplate describes a template for creating copies of a predefined pod.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") public class V1PodTemplate implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) 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 ff1c42a505..37ec351116 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -31,7 +31,7 @@ * PodTemplateList is a list of PodTemplates. */ @ApiModel(description = "PodTemplateList is a list of PodTemplates.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") public class V1PodTemplateList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) 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 4f63bfc2db..ca4f01e1a8 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -29,7 +29,7 @@ * PodTemplateSpec describes the data a pod should have when created from a template */ @ApiModel(description = "PodTemplateSpec describes the data a pod should have when created from a template") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") public class V1PodTemplateSpec { public static final String SERIALIZED_NAME_METADATA = "metadata"; @SerializedName(SERIALIZED_NAME_METADATA) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PolicyRule.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PolicyRule.java index e78704222b..e19d1239dd 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -29,7 +29,7 @@ * 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. */ @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.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") public class V1PolicyRule { public static final String SERIALIZED_NAME_API_GROUPS = "apiGroups"; @SerializedName(SERIALIZED_NAME_API_GROUPS) 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 new file mode 100644 index 0000000000..71c67cbe18 --- /dev/null +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PolicyRulesWithSubjects.java @@ -0,0 +1,181 @@ +/* +Copyright 2025 The Kubernetes Authors. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at +http://www.apache.org/licenses/LICENSE-2.0 +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ +package io.kubernetes.client.openapi.models; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +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.List; + +/** + * 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. + */ +@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.") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +public class V1PolicyRulesWithSubjects { + public static final String SERIALIZED_NAME_NON_RESOURCE_RULES = "nonResourceRules"; + @SerializedName(SERIALIZED_NAME_NON_RESOURCE_RULES) + private List nonResourceRules = null; + + public static final String SERIALIZED_NAME_RESOURCE_RULES = "resourceRules"; + @SerializedName(SERIALIZED_NAME_RESOURCE_RULES) + private List resourceRules = null; + + public static final String SERIALIZED_NAME_SUBJECTS = "subjects"; + @SerializedName(SERIALIZED_NAME_SUBJECTS) + private List subjects = new ArrayList<>(); + + + public V1PolicyRulesWithSubjects nonResourceRules(List nonResourceRules) { + + this.nonResourceRules = nonResourceRules; + return this; + } + + public V1PolicyRulesWithSubjects addNonResourceRulesItem(V1NonResourcePolicyRule nonResourceRulesItem) { + if (this.nonResourceRules == null) { + this.nonResourceRules = new ArrayList<>(); + } + this.nonResourceRules.add(nonResourceRulesItem); + return this; + } + + /** + * `nonResourceRules` is a list of NonResourcePolicyRules that identify matching requests according to their verb and the target non-resource URL. + * @return nonResourceRules + **/ + @javax.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; + } + + + public void setNonResourceRules(List nonResourceRules) { + this.nonResourceRules = nonResourceRules; + } + + + public V1PolicyRulesWithSubjects resourceRules(List resourceRules) { + + this.resourceRules = resourceRules; + return this; + } + + public V1PolicyRulesWithSubjects addResourceRulesItem(V1ResourcePolicyRule resourceRulesItem) { + if (this.resourceRules == null) { + this.resourceRules = new ArrayList<>(); + } + this.resourceRules.add(resourceRulesItem); + return this; + } + + /** + * `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. + * @return resourceRules + **/ + @javax.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; + } + + + public void setResourceRules(List resourceRules) { + this.resourceRules = resourceRules; + } + + + public V1PolicyRulesWithSubjects subjects(List subjects) { + + this.subjects = subjects; + return this; + } + + public V1PolicyRulesWithSubjects addSubjectsItem(FlowcontrolV1Subject subjectsItem) { + this.subjects.add(subjectsItem); + return this; + } + + /** + * 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. + * @return subjects + **/ + @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; + } + + + public void setSubjects(List subjects) { + this.subjects = subjects; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V1PolicyRulesWithSubjects v1PolicyRulesWithSubjects = (V1PolicyRulesWithSubjects) o; + return Objects.equals(this.nonResourceRules, v1PolicyRulesWithSubjects.nonResourceRules) && + Objects.equals(this.resourceRules, v1PolicyRulesWithSubjects.resourceRules) && + Objects.equals(this.subjects, v1PolicyRulesWithSubjects.subjects); + } + + @Override + public int hashCode() { + return Objects.hash(nonResourceRules, resourceRules, subjects); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class V1PolicyRulesWithSubjects {\n"); + sb.append(" nonResourceRules: ").append(toIndentedString(nonResourceRules)).append("\n"); + sb.append(" resourceRules: ").append(toIndentedString(resourceRules)).append("\n"); + sb.append(" subjects: ").append(toIndentedString(subjects)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} 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 1cc865a10a..c53b7c3636 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,9 +24,10 @@ import java.io.IOException; /** - * V1PortStatus + * PortStatus represents the error condition of a service port */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") +@ApiModel(description = "PortStatus represents the error condition of a service port") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") public class V1PortStatus { public static final String SERIALIZED_NAME_ERROR = "error"; @SerializedName(SERIALIZED_NAME_ERROR) 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 044613c3e1..4c608f61cf 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -27,7 +27,7 @@ * PortworxVolumeSource represents a Portworx volume resource. */ @ApiModel(description = "PortworxVolumeSource represents a Portworx volume resource.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") public class V1PortworxVolumeSource { public static final String SERIALIZED_NAME_FS_TYPE = "fsType"; @SerializedName(SERIALIZED_NAME_FS_TYPE) 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 9193df86d3..10dbed2455 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -27,7 +27,7 @@ * Preconditions must be fulfilled before an operation (update, delete, etc.) is carried out. */ @ApiModel(description = "Preconditions must be fulfilled before an operation (update, delete, etc.) is carried out.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") public class V1Preconditions { public static final String SERIALIZED_NAME_RESOURCE_VERSION = "resourceVersion"; @SerializedName(SERIALIZED_NAME_RESOURCE_VERSION) 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 5a94f03c3e..52ebb529ef 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -28,7 +28,7 @@ * 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). */ @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).") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") public class V1PreferredSchedulingTerm { public static final String SERIALIZED_NAME_PREFERENCE = "preference"; @SerializedName(SERIALIZED_NAME_PREFERENCE) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PriorityClass.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PriorityClass.java index 7911af8d3f..3c58d2f766 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -28,7 +28,7 @@ * PriorityClass defines mapping from a priority class name to the priority integer value. The value can be any valid integer. */ @ApiModel(description = "PriorityClass defines mapping from a priority class name to the priority integer value. The value can be any valid integer.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") public class V1PriorityClass implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) 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 762c423244..d546179b82 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -31,7 +31,7 @@ * PriorityClassList is a collection of priority classes. */ @ApiModel(description = "PriorityClassList is a collection of priority classes.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") public class V1PriorityClassList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) 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 new file mode 100644 index 0000000000..d6ee16cb95 --- /dev/null +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PriorityLevelConfiguration.java @@ -0,0 +1,217 @@ +/* +Copyright 2025 The Kubernetes Authors. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at +http://www.apache.org/licenses/LICENSE-2.0 +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ +package io.kubernetes.client.openapi.models; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +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; + +/** + * PriorityLevelConfiguration represents the configuration of a priority level. + */ +@ApiModel(description = "PriorityLevelConfiguration represents the configuration of a priority level.") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +public class V1PriorityLevelConfiguration implements io.kubernetes.client.common.KubernetesObject { + public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; + @SerializedName(SERIALIZED_NAME_API_VERSION) + private String apiVersion; + + public static final String SERIALIZED_NAME_KIND = "kind"; + @SerializedName(SERIALIZED_NAME_KIND) + private String kind; + + public static final String SERIALIZED_NAME_METADATA = "metadata"; + @SerializedName(SERIALIZED_NAME_METADATA) + private V1ObjectMeta metadata; + + public static final String SERIALIZED_NAME_SPEC = "spec"; + @SerializedName(SERIALIZED_NAME_SPEC) + private V1PriorityLevelConfigurationSpec spec; + + public static final String SERIALIZED_NAME_STATUS = "status"; + @SerializedName(SERIALIZED_NAME_STATUS) + private V1PriorityLevelConfigurationStatus status; + + + public V1PriorityLevelConfiguration apiVersion(String apiVersion) { + + this.apiVersion = apiVersion; + return this; + } + + /** + * 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 + * @return apiVersion + **/ + @javax.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; + } + + + public void setApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + } + + + public V1PriorityLevelConfiguration kind(String kind) { + + this.kind = kind; + return this; + } + + /** + * 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 + * @return kind + **/ + @javax.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; + } + + + public void setKind(String kind) { + this.kind = kind; + } + + + public V1PriorityLevelConfiguration metadata(V1ObjectMeta metadata) { + + this.metadata = metadata; + return this; + } + + /** + * Get metadata + * @return metadata + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public V1ObjectMeta getMetadata() { + return metadata; + } + + + public void setMetadata(V1ObjectMeta metadata) { + this.metadata = metadata; + } + + + public V1PriorityLevelConfiguration spec(V1PriorityLevelConfigurationSpec spec) { + + this.spec = spec; + return this; + } + + /** + * Get spec + * @return spec + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public V1PriorityLevelConfigurationSpec getSpec() { + return spec; + } + + + public void setSpec(V1PriorityLevelConfigurationSpec spec) { + this.spec = spec; + } + + + public V1PriorityLevelConfiguration status(V1PriorityLevelConfigurationStatus status) { + + this.status = status; + return this; + } + + /** + * Get status + * @return status + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public V1PriorityLevelConfigurationStatus getStatus() { + return status; + } + + + public void setStatus(V1PriorityLevelConfigurationStatus status) { + this.status = status; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V1PriorityLevelConfiguration v1PriorityLevelConfiguration = (V1PriorityLevelConfiguration) o; + return Objects.equals(this.apiVersion, v1PriorityLevelConfiguration.apiVersion) && + Objects.equals(this.kind, v1PriorityLevelConfiguration.kind) && + Objects.equals(this.metadata, v1PriorityLevelConfiguration.metadata) && + Objects.equals(this.spec, v1PriorityLevelConfiguration.spec) && + Objects.equals(this.status, v1PriorityLevelConfiguration.status); + } + + @Override + public int hashCode() { + return Objects.hash(apiVersion, kind, metadata, spec, status); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class V1PriorityLevelConfiguration {\n"); + sb.append(" apiVersion: ").append(toIndentedString(apiVersion)).append("\n"); + sb.append(" kind: ").append(toIndentedString(kind)).append("\n"); + sb.append(" metadata: ").append(toIndentedString(metadata)).append("\n"); + sb.append(" spec: ").append(toIndentedString(spec)).append("\n"); + sb.append(" status: ").append(toIndentedString(status)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} 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 new file mode 100644 index 0000000000..f0ea809c8f --- /dev/null +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PriorityLevelConfigurationCondition.java @@ -0,0 +1,215 @@ +/* +Copyright 2025 The Kubernetes Authors. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at +http://www.apache.org/licenses/LICENSE-2.0 +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ +package io.kubernetes.client.openapi.models; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +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; + +/** + * PriorityLevelConfigurationCondition defines the condition of priority level. + */ +@ApiModel(description = "PriorityLevelConfigurationCondition defines the condition of priority level.") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +public class V1PriorityLevelConfigurationCondition { + public static final String SERIALIZED_NAME_LAST_TRANSITION_TIME = "lastTransitionTime"; + @SerializedName(SERIALIZED_NAME_LAST_TRANSITION_TIME) + private OffsetDateTime lastTransitionTime; + + public static final String SERIALIZED_NAME_MESSAGE = "message"; + @SerializedName(SERIALIZED_NAME_MESSAGE) + private String message; + + public static final String SERIALIZED_NAME_REASON = "reason"; + @SerializedName(SERIALIZED_NAME_REASON) + private String reason; + + public static final String SERIALIZED_NAME_STATUS = "status"; + @SerializedName(SERIALIZED_NAME_STATUS) + private String status; + + public static final String SERIALIZED_NAME_TYPE = "type"; + @SerializedName(SERIALIZED_NAME_TYPE) + private String type; + + + public V1PriorityLevelConfigurationCondition lastTransitionTime(OffsetDateTime lastTransitionTime) { + + this.lastTransitionTime = lastTransitionTime; + return this; + } + + /** + * `lastTransitionTime` is the last time the condition transitioned from one status to another. + * @return lastTransitionTime + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "`lastTransitionTime` is the last time the condition transitioned from one status to another.") + + public OffsetDateTime getLastTransitionTime() { + return lastTransitionTime; + } + + + public void setLastTransitionTime(OffsetDateTime lastTransitionTime) { + this.lastTransitionTime = lastTransitionTime; + } + + + public V1PriorityLevelConfigurationCondition message(String message) { + + this.message = message; + return this; + } + + /** + * `message` is a human-readable message indicating details about last transition. + * @return message + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "`message` is a human-readable message indicating details about last transition.") + + public String getMessage() { + return message; + } + + + public void setMessage(String message) { + this.message = message; + } + + + public V1PriorityLevelConfigurationCondition reason(String reason) { + + this.reason = reason; + return this; + } + + /** + * `reason` is a unique, one-word, CamelCase reason for the condition's last transition. + * @return reason + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "`reason` is a unique, one-word, CamelCase reason for the condition's last transition.") + + public String getReason() { + return reason; + } + + + public void setReason(String reason) { + this.reason = reason; + } + + + public V1PriorityLevelConfigurationCondition status(String status) { + + this.status = status; + return this; + } + + /** + * `status` is the status of the condition. Can be True, False, Unknown. Required. + * @return status + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "`status` is the status of the condition. Can be True, False, Unknown. Required.") + + public String getStatus() { + return status; + } + + + public void setStatus(String status) { + this.status = status; + } + + + public V1PriorityLevelConfigurationCondition type(String type) { + + this.type = type; + return this; + } + + /** + * `type` is the type of the condition. Required. + * @return type + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "`type` is the type of the condition. Required.") + + public String getType() { + return type; + } + + + public void setType(String type) { + this.type = type; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V1PriorityLevelConfigurationCondition v1PriorityLevelConfigurationCondition = (V1PriorityLevelConfigurationCondition) o; + return Objects.equals(this.lastTransitionTime, v1PriorityLevelConfigurationCondition.lastTransitionTime) && + Objects.equals(this.message, v1PriorityLevelConfigurationCondition.message) && + Objects.equals(this.reason, v1PriorityLevelConfigurationCondition.reason) && + Objects.equals(this.status, v1PriorityLevelConfigurationCondition.status) && + Objects.equals(this.type, v1PriorityLevelConfigurationCondition.type); + } + + @Override + public int hashCode() { + return Objects.hash(lastTransitionTime, message, reason, status, type); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class V1PriorityLevelConfigurationCondition {\n"); + sb.append(" lastTransitionTime: ").append(toIndentedString(lastTransitionTime)).append("\n"); + sb.append(" message: ").append(toIndentedString(message)).append("\n"); + sb.append(" reason: ").append(toIndentedString(reason)).append("\n"); + sb.append(" status: ").append(toIndentedString(status)).append("\n"); + sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} 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 new file mode 100644 index 0000000000..c866561e65 --- /dev/null +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PriorityLevelConfigurationList.java @@ -0,0 +1,193 @@ +/* +Copyright 2025 The Kubernetes Authors. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at +http://www.apache.org/licenses/LICENSE-2.0 +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ +package io.kubernetes.client.openapi.models; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +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.List; + +/** + * PriorityLevelConfigurationList is a list of PriorityLevelConfiguration objects. + */ +@ApiModel(description = "PriorityLevelConfigurationList is a list of PriorityLevelConfiguration objects.") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +public class V1PriorityLevelConfigurationList implements io.kubernetes.client.common.KubernetesListObject { + public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; + @SerializedName(SERIALIZED_NAME_API_VERSION) + private String apiVersion; + + public static final String SERIALIZED_NAME_ITEMS = "items"; + @SerializedName(SERIALIZED_NAME_ITEMS) + private List items = new ArrayList<>(); + + public static final String SERIALIZED_NAME_KIND = "kind"; + @SerializedName(SERIALIZED_NAME_KIND) + private String kind; + + public static final String SERIALIZED_NAME_METADATA = "metadata"; + @SerializedName(SERIALIZED_NAME_METADATA) + private V1ListMeta metadata; + + + public V1PriorityLevelConfigurationList apiVersion(String apiVersion) { + + this.apiVersion = apiVersion; + return this; + } + + /** + * 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 + * @return apiVersion + **/ + @javax.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; + } + + + public void setApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + } + + + public V1PriorityLevelConfigurationList items(List items) { + + this.items = items; + return this; + } + + public V1PriorityLevelConfigurationList addItemsItem(V1PriorityLevelConfiguration itemsItem) { + this.items.add(itemsItem); + return this; + } + + /** + * `items` is a list of request-priorities. + * @return items + **/ + @ApiModelProperty(required = true, value = "`items` is a list of request-priorities.") + + public List getItems() { + return items; + } + + + public void setItems(List items) { + this.items = items; + } + + + public V1PriorityLevelConfigurationList kind(String kind) { + + this.kind = kind; + return this; + } + + /** + * 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 + * @return kind + **/ + @javax.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; + } + + + public void setKind(String kind) { + this.kind = kind; + } + + + public V1PriorityLevelConfigurationList metadata(V1ListMeta metadata) { + + this.metadata = metadata; + return this; + } + + /** + * Get metadata + * @return metadata + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public V1ListMeta getMetadata() { + return metadata; + } + + + public void setMetadata(V1ListMeta metadata) { + this.metadata = metadata; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V1PriorityLevelConfigurationList v1PriorityLevelConfigurationList = (V1PriorityLevelConfigurationList) o; + return Objects.equals(this.apiVersion, v1PriorityLevelConfigurationList.apiVersion) && + Objects.equals(this.items, v1PriorityLevelConfigurationList.items) && + Objects.equals(this.kind, v1PriorityLevelConfigurationList.kind) && + Objects.equals(this.metadata, v1PriorityLevelConfigurationList.metadata); + } + + @Override + public int hashCode() { + return Objects.hash(apiVersion, items, kind, metadata); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class V1PriorityLevelConfigurationList {\n"); + sb.append(" apiVersion: ").append(toIndentedString(apiVersion)).append("\n"); + sb.append(" items: ").append(toIndentedString(items)).append("\n"); + sb.append(" kind: ").append(toIndentedString(kind)).append("\n"); + sb.append(" metadata: ").append(toIndentedString(metadata)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} 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 new file mode 100644 index 0000000000..02e3565f83 --- /dev/null +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PriorityLevelConfigurationReference.java @@ -0,0 +1,97 @@ +/* +Copyright 2025 The Kubernetes Authors. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at +http://www.apache.org/licenses/LICENSE-2.0 +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ +package io.kubernetes.client.openapi.models; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +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; + +/** + * PriorityLevelConfigurationReference contains information that points to the \"request-priority\" being used. + */ +@ApiModel(description = "PriorityLevelConfigurationReference contains information that points to the \"request-priority\" being used.") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +public class V1PriorityLevelConfigurationReference { + public static final String SERIALIZED_NAME_NAME = "name"; + @SerializedName(SERIALIZED_NAME_NAME) + private String name; + + + public V1PriorityLevelConfigurationReference name(String name) { + + this.name = name; + return this; + } + + /** + * `name` is the name of the priority level configuration being referenced Required. + * @return name + **/ + @ApiModelProperty(required = true, value = "`name` is the name of the priority level configuration being referenced Required.") + + public String getName() { + return name; + } + + + public void setName(String name) { + this.name = name; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V1PriorityLevelConfigurationReference v1PriorityLevelConfigurationReference = (V1PriorityLevelConfigurationReference) o; + return Objects.equals(this.name, v1PriorityLevelConfigurationReference.name); + } + + @Override + public int hashCode() { + return Objects.hash(name); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class V1PriorityLevelConfigurationReference {\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} 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 new file mode 100644 index 0000000000..e18b6eb282 --- /dev/null +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PriorityLevelConfigurationSpec.java @@ -0,0 +1,157 @@ +/* +Copyright 2025 The Kubernetes Authors. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at +http://www.apache.org/licenses/LICENSE-2.0 +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ +package io.kubernetes.client.openapi.models; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +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; + +/** + * PriorityLevelConfigurationSpec specifies the configuration of a priority level. + */ +@ApiModel(description = "PriorityLevelConfigurationSpec specifies the configuration of a priority level.") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +public class V1PriorityLevelConfigurationSpec { + public static final String SERIALIZED_NAME_EXEMPT = "exempt"; + @SerializedName(SERIALIZED_NAME_EXEMPT) + private V1ExemptPriorityLevelConfiguration exempt; + + public static final String SERIALIZED_NAME_LIMITED = "limited"; + @SerializedName(SERIALIZED_NAME_LIMITED) + private V1LimitedPriorityLevelConfiguration limited; + + public static final String SERIALIZED_NAME_TYPE = "type"; + @SerializedName(SERIALIZED_NAME_TYPE) + private String type; + + + public V1PriorityLevelConfigurationSpec exempt(V1ExemptPriorityLevelConfiguration exempt) { + + this.exempt = exempt; + return this; + } + + /** + * Get exempt + * @return exempt + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public V1ExemptPriorityLevelConfiguration getExempt() { + return exempt; + } + + + public void setExempt(V1ExemptPriorityLevelConfiguration exempt) { + this.exempt = exempt; + } + + + public V1PriorityLevelConfigurationSpec limited(V1LimitedPriorityLevelConfiguration limited) { + + this.limited = limited; + return this; + } + + /** + * Get limited + * @return limited + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public V1LimitedPriorityLevelConfiguration getLimited() { + return limited; + } + + + public void setLimited(V1LimitedPriorityLevelConfiguration limited) { + this.limited = limited; + } + + + public V1PriorityLevelConfigurationSpec type(String type) { + + this.type = type; + return this; + } + + /** + * `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. + * @return type + **/ + @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; + } + + + public void setType(String type) { + this.type = type; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V1PriorityLevelConfigurationSpec v1PriorityLevelConfigurationSpec = (V1PriorityLevelConfigurationSpec) o; + return Objects.equals(this.exempt, v1PriorityLevelConfigurationSpec.exempt) && + Objects.equals(this.limited, v1PriorityLevelConfigurationSpec.limited) && + Objects.equals(this.type, v1PriorityLevelConfigurationSpec.type); + } + + @Override + public int hashCode() { + return Objects.hash(exempt, limited, type); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class V1PriorityLevelConfigurationSpec {\n"); + sb.append(" exempt: ").append(toIndentedString(exempt)).append("\n"); + sb.append(" limited: ").append(toIndentedString(limited)).append("\n"); + sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} 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 new file mode 100644 index 0000000000..e0105d8b2e --- /dev/null +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PriorityLevelConfigurationStatus.java @@ -0,0 +1,109 @@ +/* +Copyright 2025 The Kubernetes Authors. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at +http://www.apache.org/licenses/LICENSE-2.0 +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ +package io.kubernetes.client.openapi.models; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +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.List; + +/** + * PriorityLevelConfigurationStatus represents the current state of a \"request-priority\". + */ +@ApiModel(description = "PriorityLevelConfigurationStatus represents the current state of a \"request-priority\".") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +public class V1PriorityLevelConfigurationStatus { + public static final String SERIALIZED_NAME_CONDITIONS = "conditions"; + @SerializedName(SERIALIZED_NAME_CONDITIONS) + private List conditions = null; + + + public V1PriorityLevelConfigurationStatus conditions(List conditions) { + + this.conditions = conditions; + return this; + } + + public V1PriorityLevelConfigurationStatus addConditionsItem(V1PriorityLevelConfigurationCondition conditionsItem) { + if (this.conditions == null) { + this.conditions = new ArrayList<>(); + } + this.conditions.add(conditionsItem); + return this; + } + + /** + * `conditions` is the current state of \"request-priority\". + * @return conditions + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "`conditions` is the current state of \"request-priority\".") + + public List getConditions() { + return conditions; + } + + + public void setConditions(List conditions) { + this.conditions = conditions; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V1PriorityLevelConfigurationStatus v1PriorityLevelConfigurationStatus = (V1PriorityLevelConfigurationStatus) o; + return Objects.equals(this.conditions, v1PriorityLevelConfigurationStatus.conditions); + } + + @Override + public int hashCode() { + return Objects.hash(conditions); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class V1PriorityLevelConfigurationStatus {\n"); + sb.append(" conditions: ").append(toIndentedString(conditions)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} 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 26c8328923..deaf0a0863 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -31,7 +31,7 @@ * Probe describes a health check to be performed against a container to determine whether it is alive or ready to receive traffic. */ @ApiModel(description = "Probe describes a health check to be performed against a container to determine whether it is alive or ready to receive traffic.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") public class V1Probe { public static final String SERIALIZED_NAME_EXEC = "exec"; @SerializedName(SERIALIZED_NAME_EXEC) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ProjectedVolumeSource.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ProjectedVolumeSource.java index 9a840fdf04..1839122840 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -30,7 +30,7 @@ * Represents a projected volume source */ @ApiModel(description = "Represents a projected volume source") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") public class V1ProjectedVolumeSource { public static final String SERIALIZED_NAME_DEFAULT_MODE = "defaultMode"; @SerializedName(SERIALIZED_NAME_DEFAULT_MODE) @@ -79,11 +79,11 @@ public V1ProjectedVolumeSource addSourcesItem(V1VolumeProjection sourcesItem) { } /** - * sources is the list of volume projections + * sources is the list of volume projections. Each entry in this list handles one source. * @return sources **/ @javax.annotation.Nullable - @ApiModelProperty(value = "sources is the list of volume projections") + @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 new file mode 100644 index 0000000000..433fa10fd3 --- /dev/null +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1QueuingConfiguration.java @@ -0,0 +1,156 @@ +/* +Copyright 2025 The Kubernetes Authors. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at +http://www.apache.org/licenses/LICENSE-2.0 +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ +package io.kubernetes.client.openapi.models; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +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; + +/** + * QueuingConfiguration holds the configuration parameters for queuing + */ +@ApiModel(description = "QueuingConfiguration holds the configuration parameters for queuing") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +public class V1QueuingConfiguration { + public static final String SERIALIZED_NAME_HAND_SIZE = "handSize"; + @SerializedName(SERIALIZED_NAME_HAND_SIZE) + private Integer handSize; + + public static final String SERIALIZED_NAME_QUEUE_LENGTH_LIMIT = "queueLengthLimit"; + @SerializedName(SERIALIZED_NAME_QUEUE_LENGTH_LIMIT) + private Integer queueLengthLimit; + + public static final String SERIALIZED_NAME_QUEUES = "queues"; + @SerializedName(SERIALIZED_NAME_QUEUES) + private Integer queues; + + + public V1QueuingConfiguration handSize(Integer handSize) { + + this.handSize = handSize; + return this; + } + + /** + * `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. + * @return handSize + **/ + @javax.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; + } + + + public void setHandSize(Integer handSize) { + this.handSize = handSize; + } + + + public V1QueuingConfiguration queueLengthLimit(Integer queueLengthLimit) { + + this.queueLengthLimit = queueLengthLimit; + return this; + } + + /** + * `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. + * @return queueLengthLimit + **/ + @javax.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; + } + + + public void setQueueLengthLimit(Integer queueLengthLimit) { + this.queueLengthLimit = queueLengthLimit; + } + + + public V1QueuingConfiguration queues(Integer queues) { + + this.queues = queues; + return this; + } + + /** + * `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. + * @return queues + **/ + @javax.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; + } + + + public void setQueues(Integer queues) { + this.queues = queues; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V1QueuingConfiguration v1QueuingConfiguration = (V1QueuingConfiguration) o; + return Objects.equals(this.handSize, v1QueuingConfiguration.handSize) && + Objects.equals(this.queueLengthLimit, v1QueuingConfiguration.queueLengthLimit) && + Objects.equals(this.queues, v1QueuingConfiguration.queues); + } + + @Override + public int hashCode() { + return Objects.hash(handSize, queueLengthLimit, queues); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class V1QueuingConfiguration {\n"); + sb.append(" handSize: ").append(toIndentedString(handSize)).append("\n"); + sb.append(" queueLengthLimit: ").append(toIndentedString(queueLengthLimit)).append("\n"); + sb.append(" queues: ").append(toIndentedString(queues)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} 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 31515ef01b..0c4e25f343 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -27,7 +27,7 @@ * Represents a Quobyte mount that lasts the lifetime of a pod. Quobyte volumes do not support ownership management or SELinux relabeling. */ @ApiModel(description = "Represents a Quobyte mount that lasts the lifetime of a pod. Quobyte volumes do not support ownership management or SELinux relabeling.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") public class V1QuobyteVolumeSource { public static final String SERIALIZED_NAME_GROUP = "group"; @SerializedName(SERIALIZED_NAME_GROUP) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1RBDPersistentVolumeSource.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1RBDPersistentVolumeSource.java index 37952259e6..e453bad831 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -30,7 +30,7 @@ * Represents a Rados Block Device mount that lasts the lifetime of a pod. RBD volumes support ownership management and SELinux relabeling. */ @ApiModel(description = "Represents a Rados Block Device mount that lasts the lifetime of a pod. RBD volumes support ownership management and SELinux relabeling.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") public class V1RBDPersistentVolumeSource { public static final String SERIALIZED_NAME_FS_TYPE = "fsType"; @SerializedName(SERIALIZED_NAME_FS_TYPE) 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 e5d22019b3..ebc87fb616 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -30,7 +30,7 @@ * Represents a Rados Block Device mount that lasts the lifetime of a pod. RBD volumes support ownership management and SELinux relabeling. */ @ApiModel(description = "Represents a Rados Block Device mount that lasts the lifetime of a pod. RBD volumes support ownership management and SELinux relabeling.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") public class V1RBDVolumeSource { public static final String SERIALIZED_NAME_FS_TYPE = "fsType"; @SerializedName(SERIALIZED_NAME_FS_TYPE) 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 6481f3071c..3a10069abe 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -30,7 +30,7 @@ * ReplicaSet ensures that a specified number of pod replicas are running at any given time. */ @ApiModel(description = "ReplicaSet ensures that a specified number of pod replicas are running at any given time.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") public class V1ReplicaSet implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) 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 94cdd91a22..1e7b052845 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -28,7 +28,7 @@ * ReplicaSetCondition describes the state of a replica set at a certain point. */ @ApiModel(description = "ReplicaSetCondition describes the state of a replica set at a certain point.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") public class V1ReplicaSetCondition { public static final String SERIALIZED_NAME_LAST_TRANSITION_TIME = "lastTransitionTime"; @SerializedName(SERIALIZED_NAME_LAST_TRANSITION_TIME) 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 0d7662888c..fa1bd69872 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -31,7 +31,7 @@ * ReplicaSetList is a collection of ReplicaSets. */ @ApiModel(description = "ReplicaSetList is a collection of ReplicaSets.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") public class V1ReplicaSetList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) @@ -85,10 +85,10 @@ public V1ReplicaSetList addItemsItem(V1ReplicaSet itemsItem) { } /** - * List of ReplicaSets. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller + * List of ReplicaSets. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicaset * @return items **/ - @ApiModelProperty(required = true, value = "List of ReplicaSets. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller") + @ApiModelProperty(required = true, value = "List of ReplicaSets. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicaset") public List getItems() { return items; 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 6e8321ed19..528fe2997d 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -29,7 +29,7 @@ * ReplicaSetSpec is the specification of a ReplicaSet. */ @ApiModel(description = "ReplicaSetSpec is the specification of a ReplicaSet.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") public class V1ReplicaSetSpec { public static final String SERIALIZED_NAME_MIN_READY_SECONDS = "minReadySeconds"; @SerializedName(SERIALIZED_NAME_MIN_READY_SECONDS) @@ -78,11 +78,11 @@ public V1ReplicaSetSpec replicas(Integer replicas) { } /** - * 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 + * Replicas is the number of desired pods. This is a pointer to distinguish between explicit zero and unspecified. Defaults to 1. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicaset * @return replicas **/ @javax.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") + @ApiModelProperty(value = "Replicas is the number of desired pods. This is a pointer to distinguish between explicit zero and unspecified. Defaults to 1. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicaset") public Integer getReplicas() { return replicas; 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 92e5e7c268..e60a57683b 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -30,7 +30,7 @@ * ReplicaSetStatus represents the current status of a ReplicaSet. */ @ApiModel(description = "ReplicaSetStatus represents the current status of a ReplicaSet.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") public class V1ReplicaSetStatus { public static final String SERIALIZED_NAME_AVAILABLE_REPLICAS = "availableReplicas"; @SerializedName(SERIALIZED_NAME_AVAILABLE_REPLICAS) @@ -56,6 +56,10 @@ public class V1ReplicaSetStatus { @SerializedName(SERIALIZED_NAME_REPLICAS) private Integer replicas; + public static final String SERIALIZED_NAME_TERMINATING_REPLICAS = "terminatingReplicas"; + @SerializedName(SERIALIZED_NAME_TERMINATING_REPLICAS) + private Integer terminatingReplicas; + public V1ReplicaSetStatus availableReplicas(Integer availableReplicas) { @@ -64,11 +68,11 @@ public V1ReplicaSetStatus availableReplicas(Integer availableReplicas) { } /** - * The number of available replicas (ready for at least minReadySeconds) for this replica set. + * The number of available non-terminating pods (ready for at least minReadySeconds) for this replica set. * @return availableReplicas **/ @javax.annotation.Nullable - @ApiModelProperty(value = "The number of available replicas (ready for at least minReadySeconds) for this replica set.") + @ApiModelProperty(value = "The number of available non-terminating pods (ready for at least minReadySeconds) for this replica set.") public Integer getAvailableReplicas() { return availableReplicas; @@ -118,11 +122,11 @@ public V1ReplicaSetStatus fullyLabeledReplicas(Integer fullyLabeledReplicas) { } /** - * The number of pods that have labels matching the labels of the pod template of the replicaset. + * The number of non-terminating pods that have labels matching the labels of the pod template of the replicaset. * @return fullyLabeledReplicas **/ @javax.annotation.Nullable - @ApiModelProperty(value = "The number of pods that have labels matching the labels of the pod template of the replicaset.") + @ApiModelProperty(value = "The number of non-terminating pods that have labels matching the labels of the pod template of the replicaset.") public Integer getFullyLabeledReplicas() { return fullyLabeledReplicas; @@ -164,11 +168,11 @@ public V1ReplicaSetStatus readyReplicas(Integer readyReplicas) { } /** - * readyReplicas is the number of pods targeted by this ReplicaSet with a Ready Condition. + * The number of non-terminating pods targeted by this ReplicaSet with a Ready Condition. * @return readyReplicas **/ @javax.annotation.Nullable - @ApiModelProperty(value = "readyReplicas is the number of pods targeted by this ReplicaSet with a Ready Condition.") + @ApiModelProperty(value = "The number of non-terminating pods targeted by this ReplicaSet with a Ready Condition.") public Integer getReadyReplicas() { return readyReplicas; @@ -187,10 +191,10 @@ public V1ReplicaSetStatus replicas(Integer replicas) { } /** - * Replicas is the most recently observed number of replicas. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller/#what-is-a-replicationcontroller + * Replicas is the most recently observed number of non-terminating pods. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicaset * @return replicas **/ - @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") + @ApiModelProperty(required = true, value = "Replicas is the most recently observed number of non-terminating pods. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicaset") public Integer getReplicas() { return replicas; @@ -202,6 +206,29 @@ public void setReplicas(Integer replicas) { } + public V1ReplicaSetStatus terminatingReplicas(Integer terminatingReplicas) { + + this.terminatingReplicas = terminatingReplicas; + return this; + } + + /** + * The number of terminating pods for this replica set. Terminating pods have a non-null .metadata.deletionTimestamp and have not yet reached the Failed or Succeeded .status.phase. This is an alpha field. Enable DeploymentReplicaSetTerminatingReplicas to be able to use this field. + * @return terminatingReplicas + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "The number of terminating pods for this replica set. Terminating pods have a non-null .metadata.deletionTimestamp and have not yet reached the Failed or Succeeded .status.phase. This is an alpha field. Enable DeploymentReplicaSetTerminatingReplicas to be able to use this field.") + + public Integer getTerminatingReplicas() { + return terminatingReplicas; + } + + + public void setTerminatingReplicas(Integer terminatingReplicas) { + this.terminatingReplicas = terminatingReplicas; + } + + @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -216,12 +243,13 @@ public boolean equals(java.lang.Object o) { Objects.equals(this.fullyLabeledReplicas, v1ReplicaSetStatus.fullyLabeledReplicas) && Objects.equals(this.observedGeneration, v1ReplicaSetStatus.observedGeneration) && Objects.equals(this.readyReplicas, v1ReplicaSetStatus.readyReplicas) && - Objects.equals(this.replicas, v1ReplicaSetStatus.replicas); + Objects.equals(this.replicas, v1ReplicaSetStatus.replicas) && + Objects.equals(this.terminatingReplicas, v1ReplicaSetStatus.terminatingReplicas); } @Override public int hashCode() { - return Objects.hash(availableReplicas, conditions, fullyLabeledReplicas, observedGeneration, readyReplicas, replicas); + return Objects.hash(availableReplicas, conditions, fullyLabeledReplicas, observedGeneration, readyReplicas, replicas, terminatingReplicas); } @@ -235,6 +263,7 @@ public String toString() { sb.append(" observedGeneration: ").append(toIndentedString(observedGeneration)).append("\n"); sb.append(" readyReplicas: ").append(toIndentedString(readyReplicas)).append("\n"); sb.append(" replicas: ").append(toIndentedString(replicas)).append("\n"); + sb.append(" terminatingReplicas: ").append(toIndentedString(terminatingReplicas)).append("\n"); sb.append("}"); return sb.toString(); } 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 0c67e5224c..af82d566ea 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -30,7 +30,7 @@ * ReplicationController represents the configuration of a replication controller. */ @ApiModel(description = "ReplicationController represents the configuration of a replication controller.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") public class V1ReplicationController implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) 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 84c6428e1a..24f466a523 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -28,7 +28,7 @@ * ReplicationControllerCondition describes the state of a replication controller at a certain point. */ @ApiModel(description = "ReplicationControllerCondition describes the state of a replication controller at a certain point.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") public class V1ReplicationControllerCondition { public static final String SERIALIZED_NAME_LAST_TRANSITION_TIME = "lastTransitionTime"; @SerializedName(SERIALIZED_NAME_LAST_TRANSITION_TIME) 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 be9944129c..89fd4b9d09 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -31,7 +31,7 @@ * ReplicationControllerList is a collection of replication controllers. */ @ApiModel(description = "ReplicationControllerList is a collection of replication controllers.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") public class V1ReplicationControllerList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) 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 ff552fdb09..4c88353785 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -31,7 +31,7 @@ * ReplicationControllerSpec is the specification of a replication controller. */ @ApiModel(description = "ReplicationControllerSpec is the specification of a replication controller.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") public class V1ReplicationControllerSpec { public static final String SERIALIZED_NAME_MIN_READY_SECONDS = "minReadySeconds"; @SerializedName(SERIALIZED_NAME_MIN_READY_SECONDS) 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 abf84541c1..b7bbf3bfa6 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -30,7 +30,7 @@ * ReplicationControllerStatus represents the current status of a replication controller. */ @ApiModel(description = "ReplicationControllerStatus represents the current status of a replication controller.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") public class V1ReplicationControllerStatus { public static final String SERIALIZED_NAME_AVAILABLE_REPLICAS = "availableReplicas"; @SerializedName(SERIALIZED_NAME_AVAILABLE_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 08f1d99bc4..d80bc18700 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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.annotations.SerializedName; import com.google.gson.stream.JsonReader; 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; @@ -27,12 +29,20 @@ * ResourceAttributes includes the authorization attributes available for resource requests to the Authorizer interface */ @ApiModel(description = "ResourceAttributes includes the authorization attributes available for resource requests to the Authorizer interface") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") public class V1ResourceAttributes { + public static final String SERIALIZED_NAME_FIELD_SELECTOR = "fieldSelector"; + @SerializedName(SERIALIZED_NAME_FIELD_SELECTOR) + private V1FieldSelectorAttributes fieldSelector; + public static final String SERIALIZED_NAME_GROUP = "group"; @SerializedName(SERIALIZED_NAME_GROUP) private String group; + public static final String SERIALIZED_NAME_LABEL_SELECTOR = "labelSelector"; + @SerializedName(SERIALIZED_NAME_LABEL_SELECTOR) + private V1LabelSelectorAttributes labelSelector; + public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) private String name; @@ -58,6 +68,29 @@ public class V1ResourceAttributes { private String version; + public V1ResourceAttributes fieldSelector(V1FieldSelectorAttributes fieldSelector) { + + this.fieldSelector = fieldSelector; + return this; + } + + /** + * Get fieldSelector + * @return fieldSelector + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public V1FieldSelectorAttributes getFieldSelector() { + return fieldSelector; + } + + + public void setFieldSelector(V1FieldSelectorAttributes fieldSelector) { + this.fieldSelector = fieldSelector; + } + + public V1ResourceAttributes group(String group) { this.group = group; @@ -81,6 +114,29 @@ public void setGroup(String group) { } + public V1ResourceAttributes labelSelector(V1LabelSelectorAttributes labelSelector) { + + this.labelSelector = labelSelector; + return this; + } + + /** + * Get labelSelector + * @return labelSelector + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public V1LabelSelectorAttributes getLabelSelector() { + return labelSelector; + } + + + public void setLabelSelector(V1LabelSelectorAttributes labelSelector) { + this.labelSelector = labelSelector; + } + + public V1ResourceAttributes name(String name) { this.name = name; @@ -228,7 +284,9 @@ public boolean equals(java.lang.Object o) { return false; } V1ResourceAttributes v1ResourceAttributes = (V1ResourceAttributes) o; - return Objects.equals(this.group, v1ResourceAttributes.group) && + return Objects.equals(this.fieldSelector, v1ResourceAttributes.fieldSelector) && + Objects.equals(this.group, v1ResourceAttributes.group) && + Objects.equals(this.labelSelector, v1ResourceAttributes.labelSelector) && Objects.equals(this.name, v1ResourceAttributes.name) && Objects.equals(this.namespace, v1ResourceAttributes.namespace) && Objects.equals(this.resource, v1ResourceAttributes.resource) && @@ -239,7 +297,7 @@ public boolean equals(java.lang.Object o) { @Override public int hashCode() { - return Objects.hash(group, name, namespace, resource, subresource, verb, version); + return Objects.hash(fieldSelector, group, labelSelector, name, namespace, resource, subresource, verb, version); } @@ -247,7 +305,9 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1ResourceAttributes {\n"); + sb.append(" fieldSelector: ").append(toIndentedString(fieldSelector)).append("\n"); sb.append(" group: ").append(toIndentedString(group)).append("\n"); + sb.append(" labelSelector: ").append(toIndentedString(labelSelector)).append("\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); sb.append(" namespace: ").append(toIndentedString(namespace)).append("\n"); sb.append(" resource: ").append(toIndentedString(resource)).append("\n"); 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 5ee509157d..86de0a5637 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -27,12 +27,16 @@ * ResourceClaim references one entry in PodSpec.ResourceClaims. */ @ApiModel(description = "ResourceClaim references one entry in PodSpec.ResourceClaims.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") public class V1ResourceClaim { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) private String name; + public static final String SERIALIZED_NAME_REQUEST = "request"; + @SerializedName(SERIALIZED_NAME_REQUEST) + private String request; + public V1ResourceClaim name(String name) { @@ -56,6 +60,29 @@ public void setName(String name) { } + public V1ResourceClaim request(String request) { + + this.request = request; + return this; + } + + /** + * 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. + * @return request + **/ + @javax.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; + } + + + public void setRequest(String request) { + this.request = request; + } + + @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -65,12 +92,13 @@ public boolean equals(java.lang.Object o) { return false; } V1ResourceClaim v1ResourceClaim = (V1ResourceClaim) o; - return Objects.equals(this.name, v1ResourceClaim.name); + return Objects.equals(this.name, v1ResourceClaim.name) && + Objects.equals(this.request, v1ResourceClaim.request); } @Override public int hashCode() { - return Objects.hash(name); + return Objects.hash(name, request); } @@ -79,6 +107,7 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1ResourceClaim {\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" request: ").append(toIndentedString(request)).append("\n"); sb.append("}"); return sb.toString(); } 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 1999d8d22c..74aae72615 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -28,7 +28,7 @@ * ResourceFieldSelector represents container resources (cpu, memory) and their output format */ @ApiModel(description = "ResourceFieldSelector represents container resources (cpu, memory) and their output format") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") public class V1ResourceFieldSelector { public static final String SERIALIZED_NAME_CONTAINER_NAME = "containerName"; @SerializedName(SERIALIZED_NAME_CONTAINER_NAME) 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 new file mode 100644 index 0000000000..1f28692ede --- /dev/null +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourceHealth.java @@ -0,0 +1,126 @@ +/* +Copyright 2025 The Kubernetes Authors. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at +http://www.apache.org/licenses/LICENSE-2.0 +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ +package io.kubernetes.client.openapi.models; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +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; + +/** + * 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. + */ +@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.") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +public class V1ResourceHealth { + public static final String SERIALIZED_NAME_HEALTH = "health"; + @SerializedName(SERIALIZED_NAME_HEALTH) + private String health; + + public static final String SERIALIZED_NAME_RESOURCE_I_D = "resourceID"; + @SerializedName(SERIALIZED_NAME_RESOURCE_I_D) + private String resourceID; + + + public V1ResourceHealth health(String health) { + + this.health = health; + return this; + } + + /** + * 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. + * @return health + **/ + @javax.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; + } + + + public void setHealth(String health) { + this.health = health; + } + + + public V1ResourceHealth resourceID(String resourceID) { + + this.resourceID = resourceID; + return this; + } + + /** + * ResourceID is the unique identifier of the resource. See the ResourceID type for more information. + * @return resourceID + **/ + @ApiModelProperty(required = true, value = "ResourceID is the unique identifier of the resource. See the ResourceID type for more information.") + + public String getResourceID() { + return resourceID; + } + + + public void setResourceID(String resourceID) { + this.resourceID = resourceID; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V1ResourceHealth v1ResourceHealth = (V1ResourceHealth) o; + return Objects.equals(this.health, v1ResourceHealth.health) && + Objects.equals(this.resourceID, v1ResourceHealth.resourceID); + } + + @Override + public int hashCode() { + return Objects.hash(health, resourceID); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class V1ResourceHealth {\n"); + sb.append(" health: ").append(toIndentedString(health)).append("\n"); + sb.append(" resourceID: ").append(toIndentedString(resourceID)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} 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 new file mode 100644 index 0000000000..3bc49ad7fa --- /dev/null +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourcePolicyRule.java @@ -0,0 +1,236 @@ +/* +Copyright 2025 The Kubernetes Authors. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at +http://www.apache.org/licenses/LICENSE-2.0 +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ +package io.kubernetes.client.openapi.models; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +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.List; + +/** + * 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. + */ +@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.") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +public class V1ResourcePolicyRule { + public static final String SERIALIZED_NAME_API_GROUPS = "apiGroups"; + @SerializedName(SERIALIZED_NAME_API_GROUPS) + private List apiGroups = new ArrayList<>(); + + public static final String SERIALIZED_NAME_CLUSTER_SCOPE = "clusterScope"; + @SerializedName(SERIALIZED_NAME_CLUSTER_SCOPE) + private Boolean clusterScope; + + public static final String SERIALIZED_NAME_NAMESPACES = "namespaces"; + @SerializedName(SERIALIZED_NAME_NAMESPACES) + private List namespaces = null; + + public static final String SERIALIZED_NAME_RESOURCES = "resources"; + @SerializedName(SERIALIZED_NAME_RESOURCES) + private List resources = new ArrayList<>(); + + public static final String SERIALIZED_NAME_VERBS = "verbs"; + @SerializedName(SERIALIZED_NAME_VERBS) + private List verbs = new ArrayList<>(); + + + public V1ResourcePolicyRule apiGroups(List apiGroups) { + + this.apiGroups = apiGroups; + return this; + } + + public V1ResourcePolicyRule addApiGroupsItem(String apiGroupsItem) { + this.apiGroups.add(apiGroupsItem); + return this; + } + + /** + * `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. + * @return apiGroups + **/ + @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; + } + + + public void setApiGroups(List apiGroups) { + this.apiGroups = apiGroups; + } + + + public V1ResourcePolicyRule clusterScope(Boolean clusterScope) { + + this.clusterScope = clusterScope; + return this; + } + + /** + * `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. + * @return clusterScope + **/ + @javax.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; + } + + + public void setClusterScope(Boolean clusterScope) { + this.clusterScope = clusterScope; + } + + + public V1ResourcePolicyRule namespaces(List namespaces) { + + this.namespaces = namespaces; + return this; + } + + public V1ResourcePolicyRule addNamespacesItem(String namespacesItem) { + if (this.namespaces == null) { + this.namespaces = new ArrayList<>(); + } + this.namespaces.add(namespacesItem); + return this; + } + + /** + * `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. + * @return namespaces + **/ + @javax.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; + } + + + public void setNamespaces(List namespaces) { + this.namespaces = namespaces; + } + + + public V1ResourcePolicyRule resources(List resources) { + + this.resources = resources; + return this; + } + + public V1ResourcePolicyRule addResourcesItem(String resourcesItem) { + this.resources.add(resourcesItem); + return this; + } + + /** + * `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. + * @return resources + **/ + @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; + } + + + public void setResources(List resources) { + this.resources = resources; + } + + + public V1ResourcePolicyRule verbs(List verbs) { + + this.verbs = verbs; + return this; + } + + public V1ResourcePolicyRule addVerbsItem(String verbsItem) { + this.verbs.add(verbsItem); + return this; + } + + /** + * `verbs` is a list of matching verbs and may not be empty. \"*\" matches all verbs and, if present, must be the only entry. Required. + * @return verbs + **/ + @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; + } + + + public void setVerbs(List verbs) { + this.verbs = verbs; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V1ResourcePolicyRule v1ResourcePolicyRule = (V1ResourcePolicyRule) o; + return Objects.equals(this.apiGroups, v1ResourcePolicyRule.apiGroups) && + Objects.equals(this.clusterScope, v1ResourcePolicyRule.clusterScope) && + Objects.equals(this.namespaces, v1ResourcePolicyRule.namespaces) && + Objects.equals(this.resources, v1ResourcePolicyRule.resources) && + Objects.equals(this.verbs, v1ResourcePolicyRule.verbs); + } + + @Override + public int hashCode() { + return Objects.hash(apiGroups, clusterScope, namespaces, resources, verbs); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class V1ResourcePolicyRule {\n"); + sb.append(" apiGroups: ").append(toIndentedString(apiGroups)).append("\n"); + sb.append(" clusterScope: ").append(toIndentedString(clusterScope)).append("\n"); + sb.append(" namespaces: ").append(toIndentedString(namespaces)).append("\n"); + sb.append(" resources: ").append(toIndentedString(resources)).append("\n"); + sb.append(" verbs: ").append(toIndentedString(verbs)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} 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 50299aa2e0..234120809c 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -30,7 +30,7 @@ * ResourceQuota sets aggregate quota restrictions enforced per namespace */ @ApiModel(description = "ResourceQuota sets aggregate quota restrictions enforced per namespace") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") public class V1ResourceQuota implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) 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 e97142f713..d4e20c3f25 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -31,7 +31,7 @@ * ResourceQuotaList is a list of ResourceQuota items. */ @ApiModel(description = "ResourceQuotaList is a list of ResourceQuota items.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") public class V1ResourceQuotaList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) 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 f3c869a421..0f8cb1b063 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -33,7 +33,7 @@ * ResourceQuotaSpec defines the desired hard limits to enforce for Quota. */ @ApiModel(description = "ResourceQuotaSpec defines the desired hard limits to enforce for Quota.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") public class V1ResourceQuotaSpec { public static final String SERIALIZED_NAME_HARD = "hard"; @SerializedName(SERIALIZED_NAME_HARD) 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 4e5203acc3..944f8a4469 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -31,7 +31,7 @@ * ResourceQuotaStatus defines the enforced hard limits and observed use. */ @ApiModel(description = "ResourceQuotaStatus defines the enforced hard limits and observed use.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") public class V1ResourceQuotaStatus { public static final String SERIALIZED_NAME_HARD = "hard"; @SerializedName(SERIALIZED_NAME_HARD) 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 5116a481ad..63450472ae 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -33,7 +33,7 @@ * ResourceRequirements describes the compute resource requirements. */ @ApiModel(description = "ResourceRequirements describes the compute resource requirements.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") public class V1ResourceRequirements { public static final String SERIALIZED_NAME_CLAIMS = "claims"; @SerializedName(SERIALIZED_NAME_CLAIMS) 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 ceff0a0792..532fce8333 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -29,7 +29,7 @@ * 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. */ @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.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") public class V1ResourceRule { public static final String SERIALIZED_NAME_API_GROUPS = "apiGroups"; @SerializedName(SERIALIZED_NAME_API_GROUPS) 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 new file mode 100644 index 0000000000..73551e5d5e --- /dev/null +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourceStatus.java @@ -0,0 +1,137 @@ +/* +Copyright 2025 The Kubernetes Authors. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at +http://www.apache.org/licenses/LICENSE-2.0 +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ +package io.kubernetes.client.openapi.models; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +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.List; + +/** + * ResourceStatus represents the status of a single resource allocated to a Pod. + */ +@ApiModel(description = "ResourceStatus represents the status of a single resource allocated to a Pod.") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +public class V1ResourceStatus { + public static final String SERIALIZED_NAME_NAME = "name"; + @SerializedName(SERIALIZED_NAME_NAME) + private String name; + + public static final String SERIALIZED_NAME_RESOURCES = "resources"; + @SerializedName(SERIALIZED_NAME_RESOURCES) + private List resources = null; + + + public V1ResourceStatus name(String name) { + + this.name = name; + return this; + } + + /** + * Name of the resource. Must be unique within the pod and in case of non-DRA resource, match one of the resources from the pod spec. For DRA resources, the value must be \"claim:<claim_name>/<request>\". When this status is reported about a container, the \"claim_name\" and \"request\" must match one of the claims of this container. + * @return name + **/ + @ApiModelProperty(required = true, value = "Name of the resource. Must be unique within the pod and in case of non-DRA resource, match one of the resources from the pod spec. For DRA resources, the value must be \"claim:/\". When this status is reported about a container, the \"claim_name\" and \"request\" must match one of the claims of this container.") + + public String getName() { + return name; + } + + + public void setName(String name) { + this.name = name; + } + + + public V1ResourceStatus resources(List resources) { + + this.resources = resources; + return this; + } + + public V1ResourceStatus addResourcesItem(V1ResourceHealth resourcesItem) { + if (this.resources == null) { + this.resources = new ArrayList<>(); + } + this.resources.add(resourcesItem); + return this; + } + + /** + * List of unique resources health. Each element in the list contains an unique resource ID and its health. At a minimum, for the lifetime of a Pod, resource ID must uniquely identify the resource allocated to the Pod on the Node. If other Pod on the same Node reports the status with the same resource ID, it must be the same resource they share. See ResourceID type definition for a specific format it has in various use cases. + * @return resources + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "List of unique resources health. Each element in the list contains an unique resource ID and its health. At a minimum, for the lifetime of a Pod, resource ID must uniquely identify the resource allocated to the Pod on the Node. If other Pod on the same Node reports the status with the same resource ID, it must be the same resource they share. See ResourceID type definition for a specific format it has in various use cases.") + + public List getResources() { + return resources; + } + + + public void setResources(List resources) { + this.resources = resources; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V1ResourceStatus v1ResourceStatus = (V1ResourceStatus) o; + return Objects.equals(this.name, v1ResourceStatus.name) && + Objects.equals(this.resources, v1ResourceStatus.resources); + } + + @Override + public int hashCode() { + return Objects.hash(name, resources); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class V1ResourceStatus {\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" resources: ").append(toIndentedString(resources)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} 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 0340ddf7d7..e4ebeb32c1 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -31,7 +31,7 @@ * Role is a namespaced, logical grouping of PolicyRules that can be referenced as a unit by a RoleBinding. */ @ApiModel(description = "Role is a namespaced, logical grouping of PolicyRules that can be referenced as a unit by a RoleBinding.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") public class V1Role implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) 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 2b84ef0c29..86afa9516d 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,9 +19,9 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.openapi.models.RbacV1Subject; import io.kubernetes.client.openapi.models.V1ObjectMeta; import io.kubernetes.client.openapi.models.V1RoleRef; -import io.kubernetes.client.openapi.models.V1Subject; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.io.IOException; @@ -32,7 +32,7 @@ * RoleBinding references a role, but does not contain it. It can reference a Role in the same namespace or a ClusterRole in the global namespace. It adds who information via Subjects and namespace information by which namespace it exists in. RoleBindings in a given namespace only have effect in that namespace. */ @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.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") public class V1RoleBinding implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) @@ -52,7 +52,7 @@ public class V1RoleBinding implements io.kubernetes.client.common.KubernetesObje public static final String SERIALIZED_NAME_SUBJECTS = "subjects"; @SerializedName(SERIALIZED_NAME_SUBJECTS) - private List subjects = null; + private List subjects = null; public V1RoleBinding apiVersion(String apiVersion) { @@ -146,13 +146,13 @@ public void setRoleRef(V1RoleRef roleRef) { } - public V1RoleBinding subjects(List subjects) { + public V1RoleBinding subjects(List subjects) { this.subjects = subjects; return this; } - public V1RoleBinding addSubjectsItem(V1Subject subjectsItem) { + public V1RoleBinding addSubjectsItem(RbacV1Subject subjectsItem) { if (this.subjects == null) { this.subjects = new ArrayList<>(); } @@ -167,12 +167,12 @@ public V1RoleBinding addSubjectsItem(V1Subject subjectsItem) { @javax.annotation.Nullable @ApiModelProperty(value = "Subjects holds references to the objects the role applies to.") - public List getSubjects() { + public List getSubjects() { return subjects; } - public void setSubjects(List subjects) { + public void setSubjects(List subjects) { this.subjects = 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 7e48cbf779..cdb61114c5 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -31,7 +31,7 @@ * RoleBindingList is a collection of RoleBindings */ @ApiModel(description = "RoleBindingList is a collection of RoleBindings") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") public class V1RoleBindingList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) 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 174b6bfba8..8e84f055ab 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -31,7 +31,7 @@ * RoleList is a collection of Roles */ @ApiModel(description = "RoleList is a collection of Roles") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") public class V1RoleList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) 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 a87c4d9264..d005c23b27 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -27,7 +27,7 @@ * RoleRef contains information that points to the role being used */ @ApiModel(description = "RoleRef contains information that points to the role being used") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") public class V1RoleRef { public static final String SERIALIZED_NAME_API_GROUP = "apiGroup"; @SerializedName(SERIALIZED_NAME_API_GROUP) 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 410e19559c..7b3e7acd54 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -28,7 +28,7 @@ * Spec to control the desired behavior of daemon set rolling update. */ @ApiModel(description = "Spec to control the desired behavior of daemon set rolling update.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") public class V1RollingUpdateDaemonSet { public static final String SERIALIZED_NAME_MAX_SURGE = "maxSurge"; @SerializedName(SERIALIZED_NAME_MAX_SURGE) 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 68d196ce04..b1ce3bce7e 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -28,7 +28,7 @@ * Spec to control the desired behavior of rolling update. */ @ApiModel(description = "Spec to control the desired behavior of rolling update.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") public class V1RollingUpdateDeployment { public static final String SERIALIZED_NAME_MAX_SURGE = "maxSurge"; @SerializedName(SERIALIZED_NAME_MAX_SURGE) 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 6760ee2412..62f45404f9 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -28,7 +28,7 @@ * RollingUpdateStatefulSetStrategy is used to communicate parameter for RollingUpdateStatefulSetStrategyType. */ @ApiModel(description = "RollingUpdateStatefulSetStrategy is used to communicate parameter for RollingUpdateStatefulSetStrategyType.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") public class V1RollingUpdateStatefulSetStrategy { public static final String SERIALIZED_NAME_MAX_UNAVAILABLE = "maxUnavailable"; @SerializedName(SERIALIZED_NAME_MAX_UNAVAILABLE) 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 3c5c6ef910..c87e56f071 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -29,7 +29,7 @@ * RuleWithOperations is a tuple of Operations and Resources. It is recommended to make sure that all the tuple expansions are valid. */ @ApiModel(description = "RuleWithOperations is a tuple of Operations and Resources. It is recommended to make sure that all the tuple expansions are valid.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") public class V1RuleWithOperations { public static final String SERIALIZED_NAME_API_GROUPS = "apiGroups"; @SerializedName(SERIALIZED_NAME_API_GROUPS) 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 386e721f6c..c92c8418f4 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -30,7 +30,7 @@ * 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/ */ @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/") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") public class V1RuntimeClass implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) 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 682599d9cb..cf277a05fa 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -31,7 +31,7 @@ * RuntimeClassList is a list of RuntimeClass objects. */ @ApiModel(description = "RuntimeClassList is a list of RuntimeClass objects.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") public class V1RuntimeClassList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) 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 ee7a976eb9..05dcb73b4b 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -27,7 +27,7 @@ * SELinuxOptions are the labels to be applied to the container */ @ApiModel(description = "SELinuxOptions are the labels to be applied to the container") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") public class V1SELinuxOptions { public static final String SERIALIZED_NAME_LEVEL = "level"; @SerializedName(SERIALIZED_NAME_LEVEL) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Scale.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Scale.java index 6e6f3309d6..4a490f16e8 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -30,7 +30,7 @@ * Scale represents a scaling request for a resource. */ @ApiModel(description = "Scale represents a scaling request for a resource.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") public class V1Scale implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) 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 b0d004ba2b..ea08277518 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -28,7 +28,7 @@ * ScaleIOPersistentVolumeSource represents a persistent ScaleIO volume */ @ApiModel(description = "ScaleIOPersistentVolumeSource represents a persistent ScaleIO volume") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") public class V1ScaleIOPersistentVolumeSource { public static final String SERIALIZED_NAME_FS_TYPE = "fsType"; @SerializedName(SERIALIZED_NAME_FS_TYPE) 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 f4c8a46a3e..933e2c4a4f 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -28,7 +28,7 @@ * ScaleIOVolumeSource represents a persistent ScaleIO volume */ @ApiModel(description = "ScaleIOVolumeSource represents a persistent ScaleIO volume") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") public class V1ScaleIOVolumeSource { public static final String SERIALIZED_NAME_FS_TYPE = "fsType"; @SerializedName(SERIALIZED_NAME_FS_TYPE) 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 877368bfaa..f938cf0b5a 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -27,7 +27,7 @@ * ScaleSpec describes the attributes of a scale subresource. */ @ApiModel(description = "ScaleSpec describes the attributes of a scale subresource.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") public class V1ScaleSpec { public static final String SERIALIZED_NAME_REPLICAS = "replicas"; @SerializedName(SERIALIZED_NAME_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 8b0f454574..5af8000426 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -27,7 +27,7 @@ * ScaleStatus represents the current status of a scale subresource. */ @ApiModel(description = "ScaleStatus represents the current status of a scale subresource.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") public class V1ScaleStatus { public static final String SERIALIZED_NAME_REPLICAS = "replicas"; @SerializedName(SERIALIZED_NAME_REPLICAS) 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 161a5ac4b8..d709fc133e 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -32,7 +32,7 @@ * Scheduling specifies the scheduling constraints for nodes supporting a RuntimeClass. */ @ApiModel(description = "Scheduling specifies the scheduling constraints for nodes supporting a RuntimeClass.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") public class V1Scheduling { public static final String SERIALIZED_NAME_NODE_SELECTOR = "nodeSelector"; @SerializedName(SERIALIZED_NAME_NODE_SELECTOR) 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 7ab365ee63..6886035241 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -30,7 +30,7 @@ * A scope selector represents the AND of the selectors represented by the scoped-resource selector requirements. */ @ApiModel(description = "A scope selector represents the AND of the selectors represented by the scoped-resource selector requirements.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") public class V1ScopeSelector { public static final String SERIALIZED_NAME_MATCH_EXPRESSIONS = "matchExpressions"; @SerializedName(SERIALIZED_NAME_MATCH_EXPRESSIONS) 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 81144136af..99f2c183a7 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -29,7 +29,7 @@ * A scoped-resource selector requirement is a selector that contains values, a scope name, and an operator that relates the scope name and values. */ @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.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") public class V1ScopedResourceSelectorRequirement { public static final String SERIALIZED_NAME_OPERATOR = "operator"; @SerializedName(SERIALIZED_NAME_OPERATOR) 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 38dd12a299..e0f2cef4d9 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -27,7 +27,7 @@ * SeccompProfile defines a pod/container's seccomp profile settings. Only one profile source may be set. */ @ApiModel(description = "SeccompProfile defines a pod/container's seccomp profile settings. Only one profile source may be set.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") public class V1SeccompProfile { public static final String SERIALIZED_NAME_LOCALHOST_PROFILE = "localhostProfile"; @SerializedName(SERIALIZED_NAME_LOCALHOST_PROFILE) 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 e311bf7a8c..46d9268d18 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,7 @@ 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; @@ -31,7 +32,7 @@ * Secret holds secret data of a certain type. The total bytes of the values in the Data field must be less than MaxSecretSize bytes. */ @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.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") public class V1Secret implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) @@ -249,7 +250,7 @@ public boolean equals(java.lang.Object o) { } V1Secret v1Secret = (V1Secret) o; return Objects.equals(this.apiVersion, v1Secret.apiVersion) && - Objects.equals(this.data, v1Secret.data) && + MapUtils.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 870d6249bd..37054d286a 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -27,7 +27,7 @@ * 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. */ @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.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") public class V1SecretEnvSource { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) @@ -45,11 +45,11 @@ public V1SecretEnvSource name(String name) { } /** - * Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * 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 * @return name **/ @javax.annotation.Nullable - @ApiModelProperty(value = "Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names") + @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/V1SecretKeySelector.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SecretKeySelector.java index 8cdf5b60a0..e292460b33 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -27,7 +27,7 @@ * SecretKeySelector selects a key of a Secret. */ @ApiModel(description = "SecretKeySelector selects a key of a Secret.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") public class V1SecretKeySelector { public static final String SERIALIZED_NAME_KEY = "key"; @SerializedName(SERIALIZED_NAME_KEY) @@ -71,11 +71,11 @@ public V1SecretKeySelector name(String name) { } /** - * Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * 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 * @return name **/ @javax.annotation.Nullable - @ApiModelProperty(value = "Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names") + @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/V1SecretList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SecretList.java index 9d5d226b0e..0192e31618 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -31,7 +31,7 @@ * SecretList is a list of Secret. */ @ApiModel(description = "SecretList is a list of Secret.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") public class V1SecretList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) 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 00940bb26e..717bddd52c 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -30,7 +30,7 @@ * Adapts a 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. */ @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.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") public class V1SecretProjection { public static final String SERIALIZED_NAME_ITEMS = "items"; @SerializedName(SERIALIZED_NAME_ITEMS) @@ -83,11 +83,11 @@ public V1SecretProjection name(String name) { } /** - * Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * 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 * @return name **/ @javax.annotation.Nullable - @ApiModelProperty(value = "Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names") + @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/V1SecretReference.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SecretReference.java index 7c7e1b3b02..62caebc4cf 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -27,7 +27,7 @@ * SecretReference represents a Secret Reference. It has enough information to retrieve secret in any namespace */ @ApiModel(description = "SecretReference represents a Secret Reference. It has enough information to retrieve secret in any namespace") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") public class V1SecretReference { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SecretVolumeSource.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SecretVolumeSource.java index 027391f902..2d8bac2d73 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -30,7 +30,7 @@ * Adapts a 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. */ @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.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") public class V1SecretVolumeSource { public static final String SERIALIZED_NAME_DEFAULT_MODE = "defaultMode"; @SerializedName(SERIALIZED_NAME_DEFAULT_MODE) 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 0d93f295ae..8da0a89180 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,7 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.openapi.models.V1AppArmorProfile; import io.kubernetes.client.openapi.models.V1Capabilities; import io.kubernetes.client.openapi.models.V1SELinuxOptions; import io.kubernetes.client.openapi.models.V1SeccompProfile; @@ -31,12 +32,16 @@ * 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. */ @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.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") public class V1SecurityContext { public static final String SERIALIZED_NAME_ALLOW_PRIVILEGE_ESCALATION = "allowPrivilegeEscalation"; @SerializedName(SERIALIZED_NAME_ALLOW_PRIVILEGE_ESCALATION) private Boolean allowPrivilegeEscalation; + public static final String SERIALIZED_NAME_APP_ARMOR_PROFILE = "appArmorProfile"; + @SerializedName(SERIALIZED_NAME_APP_ARMOR_PROFILE) + private V1AppArmorProfile appArmorProfile; + public static final String SERIALIZED_NAME_CAPABILITIES = "capabilities"; @SerializedName(SERIALIZED_NAME_CAPABILITIES) private V1Capabilities capabilities; @@ -101,6 +106,29 @@ public void setAllowPrivilegeEscalation(Boolean allowPrivilegeEscalation) { } + public V1SecurityContext appArmorProfile(V1AppArmorProfile appArmorProfile) { + + this.appArmorProfile = appArmorProfile; + return this; + } + + /** + * Get appArmorProfile + * @return appArmorProfile + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public V1AppArmorProfile getAppArmorProfile() { + return appArmorProfile; + } + + + public void setAppArmorProfile(V1AppArmorProfile appArmorProfile) { + this.appArmorProfile = appArmorProfile; + } + + public V1SecurityContext capabilities(V1Capabilities capabilities) { this.capabilities = capabilities; @@ -154,11 +182,11 @@ public V1SecurityContext procMount(String procMount) { } /** - * procMount denotes the type of proc mount to use for the containers. The default is DefaultProcMount 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. + * 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. * @return procMount **/ @javax.annotation.Nullable - @ApiModelProperty(value = "procMount denotes the type of proc mount to use for the containers. The default is DefaultProcMount 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.") + @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; @@ -341,6 +369,7 @@ public boolean equals(java.lang.Object o) { } V1SecurityContext v1SecurityContext = (V1SecurityContext) o; return Objects.equals(this.allowPrivilegeEscalation, v1SecurityContext.allowPrivilegeEscalation) && + Objects.equals(this.appArmorProfile, v1SecurityContext.appArmorProfile) && Objects.equals(this.capabilities, v1SecurityContext.capabilities) && Objects.equals(this.privileged, v1SecurityContext.privileged) && Objects.equals(this.procMount, v1SecurityContext.procMount) && @@ -355,7 +384,7 @@ public boolean equals(java.lang.Object o) { @Override public int hashCode() { - return Objects.hash(allowPrivilegeEscalation, capabilities, privileged, procMount, readOnlyRootFilesystem, runAsGroup, runAsNonRoot, runAsUser, seLinuxOptions, seccompProfile, windowsOptions); + return Objects.hash(allowPrivilegeEscalation, appArmorProfile, capabilities, privileged, procMount, readOnlyRootFilesystem, runAsGroup, runAsNonRoot, runAsUser, seLinuxOptions, seccompProfile, windowsOptions); } @@ -364,6 +393,7 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1SecurityContext {\n"); sb.append(" allowPrivilegeEscalation: ").append(toIndentedString(allowPrivilegeEscalation)).append("\n"); + sb.append(" appArmorProfile: ").append(toIndentedString(appArmorProfile)).append("\n"); sb.append(" capabilities: ").append(toIndentedString(capabilities)).append("\n"); sb.append(" privileged: ").append(toIndentedString(privileged)).append("\n"); sb.append(" procMount: ").append(toIndentedString(procMount)).append("\n"); 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 new file mode 100644 index 0000000000..a9e025698c --- /dev/null +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SelectableField.java @@ -0,0 +1,97 @@ +/* +Copyright 2025 The Kubernetes Authors. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at +http://www.apache.org/licenses/LICENSE-2.0 +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ +package io.kubernetes.client.openapi.models; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +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; + +/** + * SelectableField specifies the JSON path of a field that may be used with field selectors. + */ +@ApiModel(description = "SelectableField specifies the JSON path of a field that may be used with field selectors.") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +public class V1SelectableField { + public static final String SERIALIZED_NAME_JSON_PATH = "jsonPath"; + @SerializedName(SERIALIZED_NAME_JSON_PATH) + private String jsonPath; + + + public V1SelectableField jsonPath(String jsonPath) { + + this.jsonPath = jsonPath; + return this; + } + + /** + * 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. + * @return jsonPath + **/ + @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; + } + + + public void setJsonPath(String jsonPath) { + this.jsonPath = jsonPath; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V1SelectableField v1SelectableField = (V1SelectableField) o; + return Objects.equals(this.jsonPath, v1SelectableField.jsonPath); + } + + @Override + public int hashCode() { + return Objects.hash(jsonPath); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class V1SelectableField {\n"); + sb.append(" jsonPath: ").append(toIndentedString(jsonPath)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} 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 7d97bfee53..606ff80eb9 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -30,7 +30,7 @@ * 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 */ @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") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") public class V1SelfSubjectAccessReview implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) 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 43d5fd70fc..737516678f 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -29,7 +29,7 @@ * SelfSubjectAccessReviewSpec is a description of the access request. Exactly one of ResourceAuthorizationAttributes and NonResourceAuthorizationAttributes must be set */ @ApiModel(description = "SelfSubjectAccessReviewSpec is a description of the access request. Exactly one of ResourceAuthorizationAttributes and NonResourceAuthorizationAttributes must be set") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") public class V1SelfSubjectAccessReviewSpec { public static final String SERIALIZED_NAME_NON_RESOURCE_ATTRIBUTES = "nonResourceAttributes"; @SerializedName(SERIALIZED_NAME_NON_RESOURCE_ATTRIBUTES) 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 2606dbf387..700aeb988c 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -29,7 +29,7 @@ * 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. */ @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.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") public class V1SelfSubjectReview implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) 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 836e7dde2d..57bb8a9f47 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -28,7 +28,7 @@ * SelfSubjectReviewStatus is filled by the kube-apiserver and sent back to a user. */ @ApiModel(description = "SelfSubjectReviewStatus is filled by the kube-apiserver and sent back to a user.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") public class V1SelfSubjectReviewStatus { public static final String SERIALIZED_NAME_USER_INFO = "userInfo"; @SerializedName(SERIALIZED_NAME_USER_INFO) 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 61e4d6ffdf..a9f1970259 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -30,7 +30,7 @@ * 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. */ @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.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") public class V1SelfSubjectRulesReview implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) 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 4a28aca446..8940178ab2 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -27,7 +27,7 @@ * SelfSubjectRulesReviewSpec defines the specification for SelfSubjectRulesReview. */ @ApiModel(description = "SelfSubjectRulesReviewSpec defines the specification for SelfSubjectRulesReview.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") public class V1SelfSubjectRulesReviewSpec { public static final String SERIALIZED_NAME_NAMESPACE = "namespace"; @SerializedName(SERIALIZED_NAME_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 5653b00fe4..517734df8b 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -27,7 +27,7 @@ * ServerAddressByClientCIDR helps the client to determine the server address that they should use, depending on the clientCIDR that they match. */ @ApiModel(description = "ServerAddressByClientCIDR helps the client to determine the server address that they should use, depending on the clientCIDR that they match.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") public class V1ServerAddressByClientCIDR { public static final String SERIALIZED_NAME_CLIENT_C_I_D_R = "clientCIDR"; @SerializedName(SERIALIZED_NAME_CLIENT_C_I_D_R) 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 8890936892..61f28701b4 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -30,7 +30,7 @@ * 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. */ @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.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") public class V1Service implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) 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 5908c2460b..dd81f7fcd1 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -32,7 +32,7 @@ * 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 */ @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") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") public class V1ServiceAccount implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) @@ -197,11 +197,11 @@ public V1ServiceAccount addSecretsItem(V1ObjectReference secretsItem) { } /** - * 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 + * 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\". The \"kubernetes.io/enforce-mountable-secrets\" annotation is deprecated since v1.32. Prefer separate namespaces to isolate access to mounted secrets. 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 * @return secrets **/ @javax.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") + @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\". The \"kubernetes.io/enforce-mountable-secrets\" annotation is deprecated since v1.32. Prefer separate namespaces to isolate access to mounted secrets. 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 19b288ed82..079425c55e 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -31,7 +31,7 @@ * ServiceAccountList is a list of ServiceAccount objects */ @ApiModel(description = "ServiceAccountList is a list of ServiceAccount objects") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") public class V1ServiceAccountList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) 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 new file mode 100644 index 0000000000..463f6db110 --- /dev/null +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ServiceAccountSubject.java @@ -0,0 +1,125 @@ +/* +Copyright 2025 The Kubernetes Authors. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at +http://www.apache.org/licenses/LICENSE-2.0 +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ +package io.kubernetes.client.openapi.models; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +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; + +/** + * ServiceAccountSubject holds detailed information for service-account-kind subject. + */ +@ApiModel(description = "ServiceAccountSubject holds detailed information for service-account-kind subject.") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +public class V1ServiceAccountSubject { + public static final String SERIALIZED_NAME_NAME = "name"; + @SerializedName(SERIALIZED_NAME_NAME) + private String name; + + public static final String SERIALIZED_NAME_NAMESPACE = "namespace"; + @SerializedName(SERIALIZED_NAME_NAMESPACE) + private String namespace; + + + public V1ServiceAccountSubject name(String name) { + + this.name = name; + return this; + } + + /** + * `name` is the name of matching ServiceAccount objects, or \"*\" to match regardless of name. Required. + * @return name + **/ + @ApiModelProperty(required = true, value = "`name` is the name of matching ServiceAccount objects, or \"*\" to match regardless of name. Required.") + + public String getName() { + return name; + } + + + public void setName(String name) { + this.name = name; + } + + + public V1ServiceAccountSubject namespace(String namespace) { + + this.namespace = namespace; + return this; + } + + /** + * `namespace` is the namespace of matching ServiceAccount objects. Required. + * @return namespace + **/ + @ApiModelProperty(required = true, value = "`namespace` is the namespace of matching ServiceAccount objects. Required.") + + public String getNamespace() { + return namespace; + } + + + public void setNamespace(String namespace) { + this.namespace = namespace; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V1ServiceAccountSubject v1ServiceAccountSubject = (V1ServiceAccountSubject) o; + return Objects.equals(this.name, v1ServiceAccountSubject.name) && + Objects.equals(this.namespace, v1ServiceAccountSubject.namespace); + } + + @Override + public int hashCode() { + return Objects.hash(name, namespace); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class V1ServiceAccountSubject {\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" namespace: ").append(toIndentedString(namespace)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} 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 67f827be4e..7c878b11dc 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -27,7 +27,7 @@ * ServiceAccountTokenProjection represents a projected service account token volume. This projection can be used to insert a service account token into the pods runtime filesystem for use against APIs (Kubernetes API Server or otherwise). */ @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).") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") public class V1ServiceAccountTokenProjection { public static final String SERIALIZED_NAME_AUDIENCE = "audience"; @SerializedName(SERIALIZED_NAME_AUDIENCE) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ServiceBackendPort.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ServiceBackendPort.java index fbf754cddf..d030a73532 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -27,7 +27,7 @@ * ServiceBackendPort is the service port being referenced. */ @ApiModel(description = "ServiceBackendPort is the service port being referenced.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") public class V1ServiceBackendPort { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ServiceCIDR.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ServiceCIDR.java new file mode 100644 index 0000000000..5a7ebd23d2 --- /dev/null +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ServiceCIDR.java @@ -0,0 +1,217 @@ +/* +Copyright 2025 The Kubernetes Authors. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at +http://www.apache.org/licenses/LICENSE-2.0 +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ +package io.kubernetes.client.openapi.models; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.openapi.models.V1ObjectMeta; +import io.kubernetes.client.openapi.models.V1ServiceCIDRSpec; +import io.kubernetes.client.openapi.models.V1ServiceCIDRStatus; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; + +/** + * 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. + */ +@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.") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +public class V1ServiceCIDR implements io.kubernetes.client.common.KubernetesObject { + public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; + @SerializedName(SERIALIZED_NAME_API_VERSION) + private String apiVersion; + + public static final String SERIALIZED_NAME_KIND = "kind"; + @SerializedName(SERIALIZED_NAME_KIND) + private String kind; + + public static final String SERIALIZED_NAME_METADATA = "metadata"; + @SerializedName(SERIALIZED_NAME_METADATA) + private V1ObjectMeta metadata; + + public static final String SERIALIZED_NAME_SPEC = "spec"; + @SerializedName(SERIALIZED_NAME_SPEC) + private V1ServiceCIDRSpec spec; + + public static final String SERIALIZED_NAME_STATUS = "status"; + @SerializedName(SERIALIZED_NAME_STATUS) + private V1ServiceCIDRStatus status; + + + public V1ServiceCIDR apiVersion(String apiVersion) { + + this.apiVersion = apiVersion; + return this; + } + + /** + * 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 + * @return apiVersion + **/ + @javax.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; + } + + + public void setApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + } + + + public V1ServiceCIDR kind(String kind) { + + this.kind = kind; + return this; + } + + /** + * 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 + * @return kind + **/ + @javax.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; + } + + + public void setKind(String kind) { + this.kind = kind; + } + + + public V1ServiceCIDR metadata(V1ObjectMeta metadata) { + + this.metadata = metadata; + return this; + } + + /** + * Get metadata + * @return metadata + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public V1ObjectMeta getMetadata() { + return metadata; + } + + + public void setMetadata(V1ObjectMeta metadata) { + this.metadata = metadata; + } + + + public V1ServiceCIDR spec(V1ServiceCIDRSpec spec) { + + this.spec = spec; + return this; + } + + /** + * Get spec + * @return spec + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public V1ServiceCIDRSpec getSpec() { + return spec; + } + + + public void setSpec(V1ServiceCIDRSpec spec) { + this.spec = spec; + } + + + public V1ServiceCIDR status(V1ServiceCIDRStatus status) { + + this.status = status; + return this; + } + + /** + * Get status + * @return status + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public V1ServiceCIDRStatus getStatus() { + return status; + } + + + public void setStatus(V1ServiceCIDRStatus status) { + this.status = status; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V1ServiceCIDR v1ServiceCIDR = (V1ServiceCIDR) o; + return Objects.equals(this.apiVersion, v1ServiceCIDR.apiVersion) && + Objects.equals(this.kind, v1ServiceCIDR.kind) && + Objects.equals(this.metadata, v1ServiceCIDR.metadata) && + Objects.equals(this.spec, v1ServiceCIDR.spec) && + Objects.equals(this.status, v1ServiceCIDR.status); + } + + @Override + public int hashCode() { + return Objects.hash(apiVersion, kind, metadata, spec, status); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class V1ServiceCIDR {\n"); + sb.append(" apiVersion: ").append(toIndentedString(apiVersion)).append("\n"); + sb.append(" kind: ").append(toIndentedString(kind)).append("\n"); + sb.append(" metadata: ").append(toIndentedString(metadata)).append("\n"); + sb.append(" spec: ").append(toIndentedString(spec)).append("\n"); + sb.append(" status: ").append(toIndentedString(status)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ServiceCIDRList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ServiceCIDRList.java new file mode 100644 index 0000000000..8f296600cc --- /dev/null +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ServiceCIDRList.java @@ -0,0 +1,193 @@ +/* +Copyright 2025 The Kubernetes Authors. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at +http://www.apache.org/licenses/LICENSE-2.0 +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ +package io.kubernetes.client.openapi.models; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.openapi.models.V1ListMeta; +import io.kubernetes.client.openapi.models.V1ServiceCIDR; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; + +/** + * ServiceCIDRList contains a list of ServiceCIDR objects. + */ +@ApiModel(description = "ServiceCIDRList contains a list of ServiceCIDR objects.") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +public class V1ServiceCIDRList implements io.kubernetes.client.common.KubernetesListObject { + public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; + @SerializedName(SERIALIZED_NAME_API_VERSION) + private String apiVersion; + + public static final String SERIALIZED_NAME_ITEMS = "items"; + @SerializedName(SERIALIZED_NAME_ITEMS) + private List items = new ArrayList<>(); + + public static final String SERIALIZED_NAME_KIND = "kind"; + @SerializedName(SERIALIZED_NAME_KIND) + private String kind; + + public static final String SERIALIZED_NAME_METADATA = "metadata"; + @SerializedName(SERIALIZED_NAME_METADATA) + private V1ListMeta metadata; + + + public V1ServiceCIDRList apiVersion(String apiVersion) { + + this.apiVersion = apiVersion; + return this; + } + + /** + * 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 + * @return apiVersion + **/ + @javax.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; + } + + + public void setApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + } + + + public V1ServiceCIDRList items(List items) { + + this.items = items; + return this; + } + + public V1ServiceCIDRList addItemsItem(V1ServiceCIDR itemsItem) { + this.items.add(itemsItem); + return this; + } + + /** + * items is the list of ServiceCIDRs. + * @return items + **/ + @ApiModelProperty(required = true, value = "items is the list of ServiceCIDRs.") + + public List getItems() { + return items; + } + + + public void setItems(List items) { + this.items = items; + } + + + public V1ServiceCIDRList kind(String kind) { + + this.kind = kind; + return this; + } + + /** + * 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 + * @return kind + **/ + @javax.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; + } + + + public void setKind(String kind) { + this.kind = kind; + } + + + public V1ServiceCIDRList metadata(V1ListMeta metadata) { + + this.metadata = metadata; + return this; + } + + /** + * Get metadata + * @return metadata + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public V1ListMeta getMetadata() { + return metadata; + } + + + public void setMetadata(V1ListMeta metadata) { + this.metadata = metadata; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V1ServiceCIDRList v1ServiceCIDRList = (V1ServiceCIDRList) o; + return Objects.equals(this.apiVersion, v1ServiceCIDRList.apiVersion) && + Objects.equals(this.items, v1ServiceCIDRList.items) && + Objects.equals(this.kind, v1ServiceCIDRList.kind) && + Objects.equals(this.metadata, v1ServiceCIDRList.metadata); + } + + @Override + public int hashCode() { + return Objects.hash(apiVersion, items, kind, metadata); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class V1ServiceCIDRList {\n"); + sb.append(" apiVersion: ").append(toIndentedString(apiVersion)).append("\n"); + sb.append(" items: ").append(toIndentedString(items)).append("\n"); + sb.append(" kind: ").append(toIndentedString(kind)).append("\n"); + sb.append(" metadata: ").append(toIndentedString(metadata)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ServiceCIDRSpec.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ServiceCIDRSpec.java new file mode 100644 index 0000000000..7cdc54a870 --- /dev/null +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ServiceCIDRSpec.java @@ -0,0 +1,108 @@ +/* +Copyright 2025 The Kubernetes Authors. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at +http://www.apache.org/licenses/LICENSE-2.0 +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ +package io.kubernetes.client.openapi.models; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +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.List; + +/** + * ServiceCIDRSpec define the CIDRs the user wants to use for allocating ClusterIPs for Services. + */ +@ApiModel(description = "ServiceCIDRSpec define the CIDRs the user wants to use for allocating ClusterIPs for Services.") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +public class V1ServiceCIDRSpec { + public static final String SERIALIZED_NAME_CIDRS = "cidrs"; + @SerializedName(SERIALIZED_NAME_CIDRS) + private List cidrs = null; + + + public V1ServiceCIDRSpec cidrs(List cidrs) { + + this.cidrs = cidrs; + return this; + } + + public V1ServiceCIDRSpec addCidrsItem(String cidrsItem) { + if (this.cidrs == null) { + this.cidrs = new ArrayList<>(); + } + this.cidrs.add(cidrsItem); + return this; + } + + /** + * 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. + * @return cidrs + **/ + @javax.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; + } + + + public void setCidrs(List cidrs) { + this.cidrs = cidrs; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V1ServiceCIDRSpec v1ServiceCIDRSpec = (V1ServiceCIDRSpec) o; + return Objects.equals(this.cidrs, v1ServiceCIDRSpec.cidrs); + } + + @Override + public int hashCode() { + return Objects.hash(cidrs); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class V1ServiceCIDRSpec {\n"); + sb.append(" cidrs: ").append(toIndentedString(cidrs)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ServiceCIDRStatus.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ServiceCIDRStatus.java new file mode 100644 index 0000000000..753c108fc2 --- /dev/null +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ServiceCIDRStatus.java @@ -0,0 +1,109 @@ +/* +Copyright 2025 The Kubernetes Authors. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at +http://www.apache.org/licenses/LICENSE-2.0 +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ +package io.kubernetes.client.openapi.models; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +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.List; + +/** + * ServiceCIDRStatus describes the current state of the ServiceCIDR. + */ +@ApiModel(description = "ServiceCIDRStatus describes the current state of the ServiceCIDR.") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +public class V1ServiceCIDRStatus { + public static final String SERIALIZED_NAME_CONDITIONS = "conditions"; + @SerializedName(SERIALIZED_NAME_CONDITIONS) + private List conditions = null; + + + public V1ServiceCIDRStatus conditions(List conditions) { + + this.conditions = conditions; + return this; + } + + public V1ServiceCIDRStatus addConditionsItem(V1Condition conditionsItem) { + if (this.conditions == null) { + this.conditions = new ArrayList<>(); + } + this.conditions.add(conditionsItem); + return this; + } + + /** + * conditions holds an array of metav1.Condition that describe the state of the ServiceCIDR. Current service state + * @return conditions + **/ + @javax.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; + } + + + public void setConditions(List conditions) { + this.conditions = conditions; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V1ServiceCIDRStatus v1ServiceCIDRStatus = (V1ServiceCIDRStatus) o; + return Objects.equals(this.conditions, v1ServiceCIDRStatus.conditions); + } + + @Override + public int hashCode() { + return Objects.hash(conditions); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class V1ServiceCIDRStatus {\n"); + sb.append(" conditions: ").append(toIndentedString(conditions)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} 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 c596d9a07a..782e1b8c8e 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -31,7 +31,7 @@ * ServiceList holds a list of services. */ @ApiModel(description = "ServiceList holds a list of services.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") public class V1ServiceList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) 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 870f4a6989..f3d785273b 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -28,7 +28,7 @@ * ServicePort contains information on service's port. */ @ApiModel(description = "ServicePort contains information on service's port.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") public class V1ServicePort { public static final String SERIALIZED_NAME_APP_PROTOCOL = "appProtocol"; @SerializedName(SERIALIZED_NAME_APP_PROTOCOL) @@ -62,11 +62,11 @@ public V1ServicePort appProtocol(String appProtocol) { } /** - * 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 over cleartext as described in https://www.rfc-editor.org/rfc/rfc7540 * '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. + * 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. * @return appProtocol **/ @javax.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 over cleartext as described in https://www.rfc-editor.org/rfc/rfc7540 * '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.") + @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; 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 b747044474..da4485a62f 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -33,7 +33,7 @@ * ServiceSpec describes the attributes that a user creates on a service. */ @ApiModel(description = "ServiceSpec describes the attributes that a user creates on a service.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") public class V1ServiceSpec { public static final String SERIALIZED_NAME_ALLOCATE_LOAD_BALANCER_NODE_PORTS = "allocateLoadBalancerNodePorts"; @SerializedName(SERIALIZED_NAME_ALLOCATE_LOAD_BALANCER_NODE_PORTS) @@ -107,6 +107,10 @@ public class V1ServiceSpec { @SerializedName(SERIALIZED_NAME_SESSION_AFFINITY_CONFIG) private V1SessionAffinityConfig sessionAffinityConfig; + public static final String SERIALIZED_NAME_TRAFFIC_DISTRIBUTION = "trafficDistribution"; + @SerializedName(SERIALIZED_NAME_TRAFFIC_DISTRIBUTION) + private String trafficDistribution; + public static final String SERIALIZED_NAME_TYPE = "type"; @SerializedName(SERIALIZED_NAME_TYPE) private String type; @@ -574,6 +578,29 @@ public void setSessionAffinityConfig(V1SessionAffinityConfig sessionAffinityConf } + public V1ServiceSpec trafficDistribution(String trafficDistribution) { + + this.trafficDistribution = trafficDistribution; + return this; + } + + /** + * 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 in the same zone. + * @return trafficDistribution + **/ + @javax.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 in the same zone.") + + public String getTrafficDistribution() { + return trafficDistribution; + } + + + public void setTrafficDistribution(String trafficDistribution) { + this.trafficDistribution = trafficDistribution; + } + + public V1ServiceSpec type(String type) { this.type = type; @@ -624,12 +651,13 @@ public boolean equals(java.lang.Object o) { Objects.equals(this.selector, v1ServiceSpec.selector) && Objects.equals(this.sessionAffinity, v1ServiceSpec.sessionAffinity) && Objects.equals(this.sessionAffinityConfig, v1ServiceSpec.sessionAffinityConfig) && + Objects.equals(this.trafficDistribution, v1ServiceSpec.trafficDistribution) && Objects.equals(this.type, v1ServiceSpec.type); } @Override public int hashCode() { - return Objects.hash(allocateLoadBalancerNodePorts, clusterIP, clusterIPs, externalIPs, externalName, externalTrafficPolicy, healthCheckNodePort, internalTrafficPolicy, ipFamilies, ipFamilyPolicy, loadBalancerClass, loadBalancerIP, loadBalancerSourceRanges, ports, publishNotReadyAddresses, selector, sessionAffinity, sessionAffinityConfig, type); + return Objects.hash(allocateLoadBalancerNodePorts, clusterIP, clusterIPs, externalIPs, externalName, externalTrafficPolicy, healthCheckNodePort, internalTrafficPolicy, ipFamilies, ipFamilyPolicy, loadBalancerClass, loadBalancerIP, loadBalancerSourceRanges, ports, publishNotReadyAddresses, selector, sessionAffinity, sessionAffinityConfig, trafficDistribution, type); } @@ -655,6 +683,7 @@ public String toString() { sb.append(" selector: ").append(toIndentedString(selector)).append("\n"); sb.append(" sessionAffinity: ").append(toIndentedString(sessionAffinity)).append("\n"); sb.append(" sessionAffinityConfig: ").append(toIndentedString(sessionAffinityConfig)).append("\n"); + sb.append(" trafficDistribution: ").append(toIndentedString(trafficDistribution)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); sb.append("}"); return sb.toString(); 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 cfec25e274..92def7e3ec 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -31,7 +31,7 @@ * ServiceStatus represents the current status of a service. */ @ApiModel(description = "ServiceStatus represents the current status of a service.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") public class V1ServiceStatus { public static final String SERIALIZED_NAME_CONDITIONS = "conditions"; @SerializedName(SERIALIZED_NAME_CONDITIONS) 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 fe19988196..7bf6e7aeb6 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -28,7 +28,7 @@ * SessionAffinityConfig represents the configurations of session affinity. */ @ApiModel(description = "SessionAffinityConfig represents the configurations of session affinity.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") public class V1SessionAffinityConfig { public static final String SERIALIZED_NAME_CLIENT_I_P = "clientIP"; @SerializedName(SERIALIZED_NAME_CLIENT_I_P) 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 new file mode 100644 index 0000000000..0204bc4123 --- /dev/null +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SleepAction.java @@ -0,0 +1,97 @@ +/* +Copyright 2025 The Kubernetes Authors. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at +http://www.apache.org/licenses/LICENSE-2.0 +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ +package io.kubernetes.client.openapi.models; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +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; + +/** + * SleepAction describes a \"sleep\" action. + */ +@ApiModel(description = "SleepAction describes a \"sleep\" action.") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +public class V1SleepAction { + public static final String SERIALIZED_NAME_SECONDS = "seconds"; + @SerializedName(SERIALIZED_NAME_SECONDS) + private Long seconds; + + + public V1SleepAction seconds(Long seconds) { + + this.seconds = seconds; + return this; + } + + /** + * Seconds is the number of seconds to sleep. + * @return seconds + **/ + @ApiModelProperty(required = true, value = "Seconds is the number of seconds to sleep.") + + public Long getSeconds() { + return seconds; + } + + + public void setSeconds(Long seconds) { + this.seconds = seconds; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V1SleepAction v1SleepAction = (V1SleepAction) o; + return Objects.equals(this.seconds, v1SleepAction.seconds); + } + + @Override + public int hashCode() { + return Objects.hash(seconds); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class V1SleepAction {\n"); + sb.append(" seconds: ").append(toIndentedString(seconds)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} 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 ae0c12500b..c437969d8a 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -30,7 +30,7 @@ * 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. */ @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.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") public class V1StatefulSet implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) 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 6a95cf68fe..19fe80ff24 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -28,7 +28,7 @@ * StatefulSetCondition describes the state of a statefulset at a certain point. */ @ApiModel(description = "StatefulSetCondition describes the state of a statefulset at a certain point.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") public class V1StatefulSetCondition { public static final String SERIALIZED_NAME_LAST_TRANSITION_TIME = "lastTransitionTime"; @SerializedName(SERIALIZED_NAME_LAST_TRANSITION_TIME) 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 5a441a9ab3..eddd0f0c45 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -31,7 +31,7 @@ * StatefulSetList is a collection of StatefulSets. */ @ApiModel(description = "StatefulSetList is a collection of StatefulSets.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") public class V1StatefulSetList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) 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 16ff338dd9..db4c9ccf26 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -27,7 +27,7 @@ * StatefulSetOrdinals describes the policy used for replica ordinal assignment in this StatefulSet. */ @ApiModel(description = "StatefulSetOrdinals describes the policy used for replica ordinal assignment in this StatefulSet.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") public class V1StatefulSetOrdinals { public static final String SERIALIZED_NAME_START = "start"; @SerializedName(SERIALIZED_NAME_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 93e0f7fcc7..acf402fa65 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -27,7 +27,7 @@ * StatefulSetPersistentVolumeClaimRetentionPolicy describes the policy used for PVCs created from the StatefulSet VolumeClaimTemplates. */ @ApiModel(description = "StatefulSetPersistentVolumeClaimRetentionPolicy describes the policy used for PVCs created from the StatefulSet VolumeClaimTemplates.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") public class V1StatefulSetPersistentVolumeClaimRetentionPolicy { public static final String SERIALIZED_NAME_WHEN_DELETED = "whenDeleted"; @SerializedName(SERIALIZED_NAME_WHEN_DELETED) 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 773e5b8268..9c2209ed87 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -35,7 +35,7 @@ * A StatefulSetSpec is the specification of a StatefulSet. */ @ApiModel(description = "A StatefulSetSpec is the specification of a StatefulSet.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") public class V1StatefulSetSpec { public static final String SERIALIZED_NAME_MIN_READY_SECONDS = "minReadySeconds"; @SerializedName(SERIALIZED_NAME_MIN_READY_SECONDS) @@ -252,7 +252,8 @@ public V1StatefulSetSpec serviceName(String serviceName) { * 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. * @return serviceName **/ - @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.") + @javax.annotation.Nullable + @ApiModelProperty(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; 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 03d1c0fe35..7e25439cae 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -30,7 +30,7 @@ * StatefulSetStatus represents the current state of a StatefulSet. */ @ApiModel(description = "StatefulSetStatus represents the current state of a StatefulSet.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") public class V1StatefulSetStatus { public static final String SERIALIZED_NAME_AVAILABLE_REPLICAS = "availableReplicas"; @SerializedName(SERIALIZED_NAME_AVAILABLE_REPLICAS) 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 2aa226fc72..d128472ed8 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -28,7 +28,7 @@ * 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. */ @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.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") public class V1StatefulSetUpdateStrategy { public static final String SERIALIZED_NAME_ROLLING_UPDATE = "rollingUpdate"; @SerializedName(SERIALIZED_NAME_ROLLING_UPDATE) 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 83bc94eed7..0105ef7ba2 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -29,7 +29,7 @@ * Status is a return value for calls that don't return other objects. */ @ApiModel(description = "Status is a return value for calls that don't return other objects.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") public class V1Status { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) 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 f8b9a4dc7d..cd807e2d64 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -27,7 +27,7 @@ * StatusCause provides more information about an api.Status failure, including cases when multiple errors are encountered. */ @ApiModel(description = "StatusCause provides more information about an api.Status failure, including cases when multiple errors are encountered.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") public class V1StatusCause { public static final String SERIALIZED_NAME_FIELD = "field"; @SerializedName(SERIALIZED_NAME_FIELD) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1StatusDetails.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1StatusDetails.java index 46244a9980..c6fe32430b 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -30,7 +30,7 @@ * StatusDetails is a set of additional properties that MAY be set by the server to provide additional information about a response. The Reason field of a Status object defines what attributes will be set. Clients must ignore fields that do not match the defined type of each attribute, and should assume that any attribute may be empty, invalid, or under defined. */ @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.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") public class V1StatusDetails { public static final String SERIALIZED_NAME_CAUSES = "causes"; @SerializedName(SERIALIZED_NAME_CAUSES) 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 bc569e4646..1e5c828983 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -33,7 +33,7 @@ * 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. */ @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.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") 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) 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 b3e6d9003d..d1d50fb87d 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -31,7 +31,7 @@ * StorageClassList is a collection of storage classes. */ @ApiModel(description = "StorageClassList is a collection of storage classes.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") public class V1StorageClassList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) 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 2a51f2e3e3..37228bfb33 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -28,7 +28,7 @@ * Represents a StorageOS persistent volume resource. */ @ApiModel(description = "Represents a StorageOS persistent volume resource.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") public class V1StorageOSPersistentVolumeSource { public static final String SERIALIZED_NAME_FS_TYPE = "fsType"; @SerializedName(SERIALIZED_NAME_FS_TYPE) 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 4a690c98b6..78fd47b348 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -28,7 +28,7 @@ * Represents a StorageOS persistent volume resource. */ @ApiModel(description = "Represents a StorageOS persistent volume resource.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") public class V1StorageOSVolumeSource { public static final String SERIALIZED_NAME_FS_TYPE = "fsType"; @SerializedName(SERIALIZED_NAME_FS_TYPE) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Subject.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Subject.java deleted file mode 100644 index a34b02567a..0000000000 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Subject.java +++ /dev/null @@ -1,183 +0,0 @@ -/* -Copyright 2023 The Kubernetes Authors. -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at -http://www.apache.org/licenses/LICENSE-2.0 -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ -package io.kubernetes.client.openapi.models; - -import java.util.Objects; -import java.util.Arrays; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -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; - -/** - * 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. - */ -@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.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") -public class V1Subject { - public static final String SERIALIZED_NAME_API_GROUP = "apiGroup"; - @SerializedName(SERIALIZED_NAME_API_GROUP) - private String apiGroup; - - public static final String SERIALIZED_NAME_KIND = "kind"; - @SerializedName(SERIALIZED_NAME_KIND) - private String kind; - - public static final String SERIALIZED_NAME_NAME = "name"; - @SerializedName(SERIALIZED_NAME_NAME) - private String name; - - public static final String SERIALIZED_NAME_NAMESPACE = "namespace"; - @SerializedName(SERIALIZED_NAME_NAMESPACE) - private String namespace; - - - public V1Subject apiGroup(String apiGroup) { - - this.apiGroup = apiGroup; - return this; - } - - /** - * 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. - * @return apiGroup - **/ - @javax.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; - } - - - public void setApiGroup(String apiGroup) { - this.apiGroup = apiGroup; - } - - - public V1Subject kind(String kind) { - - this.kind = kind; - return this; - } - - /** - * 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. - * @return kind - **/ - @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; - } - - - public void setKind(String kind) { - this.kind = kind; - } - - - public V1Subject name(String name) { - - this.name = name; - return this; - } - - /** - * Name of the object being referenced. - * @return name - **/ - @ApiModelProperty(required = true, value = "Name of the object being referenced.") - - public String getName() { - return name; - } - - - public void setName(String name) { - this.name = name; - } - - - public V1Subject namespace(String namespace) { - - this.namespace = namespace; - return this; - } - - /** - * 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. - * @return namespace - **/ - @javax.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; - } - - - public void setNamespace(String namespace) { - this.namespace = namespace; - } - - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1Subject v1Subject = (V1Subject) o; - return Objects.equals(this.apiGroup, v1Subject.apiGroup) && - Objects.equals(this.kind, v1Subject.kind) && - Objects.equals(this.name, v1Subject.name) && - Objects.equals(this.namespace, v1Subject.namespace); - } - - @Override - public int hashCode() { - return Objects.hash(apiGroup, kind, name, namespace); - } - - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class V1Subject {\n"); - sb.append(" apiGroup: ").append(toIndentedString(apiGroup)).append("\n"); - sb.append(" kind: ").append(toIndentedString(kind)).append("\n"); - sb.append(" name: ").append(toIndentedString(name)).append("\n"); - sb.append(" namespace: ").append(toIndentedString(namespace)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(java.lang.Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - -} 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 110f86ec6b..25cb8e0257 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -30,7 +30,7 @@ * SubjectAccessReview checks whether or not a user or group can perform an action. */ @ApiModel(description = "SubjectAccessReview checks whether or not a user or group can perform an action.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") public class V1SubjectAccessReview implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) 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 7b8d65b9b6..0af6ff92e6 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -33,7 +33,7 @@ * SubjectAccessReviewSpec is a description of the access request. Exactly one of ResourceAuthorizationAttributes and NonResourceAuthorizationAttributes must be set */ @ApiModel(description = "SubjectAccessReviewSpec is a description of the access request. Exactly one of ResourceAuthorizationAttributes and NonResourceAuthorizationAttributes must be set") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") public class V1SubjectAccessReviewSpec { public static final String SERIALIZED_NAME_EXTRA = "extra"; @SerializedName(SERIALIZED_NAME_EXTRA) 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 f6ec607f4f..82a97514a5 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -27,7 +27,7 @@ * SubjectAccessReviewStatus */ @ApiModel(description = "SubjectAccessReviewStatus") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") public class V1SubjectAccessReviewStatus { public static final String SERIALIZED_NAME_ALLOWED = "allowed"; @SerializedName(SERIALIZED_NAME_ALLOWED) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SubjectRulesReviewStatus.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SubjectRulesReviewStatus.java index 5b11b99e5e..367759fe89 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -31,7 +31,7 @@ * 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. */ @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.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") public class V1SubjectRulesReviewStatus { public static final String SERIALIZED_NAME_EVALUATION_ERROR = "evaluationError"; @SerializedName(SERIALIZED_NAME_EVALUATION_ERROR) 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 new file mode 100644 index 0000000000..d38fd9e5e9 --- /dev/null +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SuccessPolicy.java @@ -0,0 +1,105 @@ +/* +Copyright 2025 The Kubernetes Authors. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at +http://www.apache.org/licenses/LICENSE-2.0 +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ +package io.kubernetes.client.openapi.models; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +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.List; + +/** + * SuccessPolicy describes when a Job can be declared as succeeded based on the success of some indexes. + */ +@ApiModel(description = "SuccessPolicy describes when a Job can be declared as succeeded based on the success of some indexes.") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +public class V1SuccessPolicy { + public static final String SERIALIZED_NAME_RULES = "rules"; + @SerializedName(SERIALIZED_NAME_RULES) + private List rules = new ArrayList<>(); + + + public V1SuccessPolicy rules(List rules) { + + this.rules = rules; + return this; + } + + public V1SuccessPolicy addRulesItem(V1SuccessPolicyRule rulesItem) { + this.rules.add(rulesItem); + return this; + } + + /** + * 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. + * @return rules + **/ + @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; + } + + + public void setRules(List rules) { + this.rules = rules; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V1SuccessPolicy v1SuccessPolicy = (V1SuccessPolicy) o; + return Objects.equals(this.rules, v1SuccessPolicy.rules); + } + + @Override + public int hashCode() { + return Objects.hash(rules); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class V1SuccessPolicy {\n"); + sb.append(" rules: ").append(toIndentedString(rules)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} 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 new file mode 100644 index 0000000000..8060b25e4b --- /dev/null +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SuccessPolicyRule.java @@ -0,0 +1,127 @@ +/* +Copyright 2025 The Kubernetes Authors. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at +http://www.apache.org/licenses/LICENSE-2.0 +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ +package io.kubernetes.client.openapi.models; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +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; + +/** + * SuccessPolicyRule describes rule for declaring a Job as succeeded. Each rule must have at least one of the \"succeededIndexes\" or \"succeededCount\" specified. + */ +@ApiModel(description = "SuccessPolicyRule describes rule for declaring a Job as succeeded. Each rule must have at least one of the \"succeededIndexes\" or \"succeededCount\" specified.") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +public class V1SuccessPolicyRule { + public static final String SERIALIZED_NAME_SUCCEEDED_COUNT = "succeededCount"; + @SerializedName(SERIALIZED_NAME_SUCCEEDED_COUNT) + private Integer succeededCount; + + public static final String SERIALIZED_NAME_SUCCEEDED_INDEXES = "succeededIndexes"; + @SerializedName(SERIALIZED_NAME_SUCCEEDED_INDEXES) + private String succeededIndexes; + + + public V1SuccessPolicyRule succeededCount(Integer succeededCount) { + + this.succeededCount = succeededCount; + return this; + } + + /** + * 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. + * @return succeededCount + **/ + @javax.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; + } + + + public void setSucceededCount(Integer succeededCount) { + this.succeededCount = succeededCount; + } + + + public V1SuccessPolicyRule succeededIndexes(String succeededIndexes) { + + this.succeededIndexes = succeededIndexes; + return this; + } + + /** + * 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. + * @return succeededIndexes + **/ + @javax.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; + } + + + public void setSucceededIndexes(String succeededIndexes) { + this.succeededIndexes = succeededIndexes; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V1SuccessPolicyRule v1SuccessPolicyRule = (V1SuccessPolicyRule) o; + return Objects.equals(this.succeededCount, v1SuccessPolicyRule.succeededCount) && + Objects.equals(this.succeededIndexes, v1SuccessPolicyRule.succeededIndexes); + } + + @Override + public int hashCode() { + return Objects.hash(succeededCount, succeededIndexes); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class V1SuccessPolicyRule {\n"); + sb.append(" succeededCount: ").append(toIndentedString(succeededCount)).append("\n"); + sb.append(" succeededIndexes: ").append(toIndentedString(succeededIndexes)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} 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 e833082a0a..3dbf60caf1 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -27,7 +27,7 @@ * Sysctl defines a kernel parameter to be set */ @ApiModel(description = "Sysctl defines a kernel parameter to be set") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") public class V1Sysctl { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1TCPSocketAction.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1TCPSocketAction.java index 95b2f15e4e..ccdfcf1ebd 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -28,7 +28,7 @@ * TCPSocketAction describes an action based on opening a socket */ @ApiModel(description = "TCPSocketAction describes an action based on opening a socket") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") public class V1TCPSocketAction { public static final String SERIALIZED_NAME_HOST = "host"; @SerializedName(SERIALIZED_NAME_HOST) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Taint.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Taint.java index 20b304d8e3..ff619ae659 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -28,7 +28,7 @@ * The node this Taint is attached to has the \"effect\" on any pod that does not tolerate the Taint. */ @ApiModel(description = "The node this Taint is attached to has the \"effect\" on any pod that does not tolerate the Taint.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") public class V1Taint { public static final String SERIALIZED_NAME_EFFECT = "effect"; @SerializedName(SERIALIZED_NAME_EFFECT) 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 75844b3a7e..ccb2cc1d17 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -30,7 +30,7 @@ * TokenRequestSpec contains client provided parameters of a token request. */ @ApiModel(description = "TokenRequestSpec contains client provided parameters of a token request.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") public class V1TokenRequestSpec { public static final String SERIALIZED_NAME_AUDIENCES = "audiences"; @SerializedName(SERIALIZED_NAME_AUDIENCES) 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 a7f2195015..fbd0e46741 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -28,7 +28,7 @@ * TokenRequestStatus is the result of a token request. */ @ApiModel(description = "TokenRequestStatus is the result of a token request.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") public class V1TokenRequestStatus { public static final String SERIALIZED_NAME_EXPIRATION_TIMESTAMP = "expirationTimestamp"; @SerializedName(SERIALIZED_NAME_EXPIRATION_TIMESTAMP) 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 73f8d9f008..b95e830baf 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -30,7 +30,7 @@ * 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. */ @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.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") public class V1TokenReview implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) 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 385d6cc694..5eb7de396d 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -29,7 +29,7 @@ * TokenReviewSpec is a description of the token authentication request. */ @ApiModel(description = "TokenReviewSpec is a description of the token authentication request.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") public class V1TokenReviewSpec { public static final String SERIALIZED_NAME_AUDIENCES = "audiences"; @SerializedName(SERIALIZED_NAME_AUDIENCES) 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 2546e61b1a..91565c1d2a 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -30,7 +30,7 @@ * TokenReviewStatus is the result of the token authentication request. */ @ApiModel(description = "TokenReviewStatus is the result of the token authentication request.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") public class V1TokenReviewStatus { public static final String SERIALIZED_NAME_AUDIENCES = "audiences"; @SerializedName(SERIALIZED_NAME_AUDIENCES) 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 06c7faff1c..9ebd8f5b8f 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -27,7 +27,7 @@ * The pod this Toleration is attached to tolerates any taint that matches the triple <key,value,effect> using the matching operator <operator>. */ @ApiModel(description = "The pod this Toleration is attached to tolerates any taint that matches the triple using the matching operator .") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") public class V1Toleration { public static final String SERIALIZED_NAME_EFFECT = "effect"; @SerializedName(SERIALIZED_NAME_EFFECT) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1TopologySelectorLabelRequirement.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1TopologySelectorLabelRequirement.java index 354ddd80a9..8c5b93cd0c 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -29,7 +29,7 @@ * A topology selector requirement is a selector that matches given label. This is an alpha feature and may change in the future. */ @ApiModel(description = "A topology selector requirement is a selector that matches given label. This is an alpha feature and may change in the future.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") public class V1TopologySelectorLabelRequirement { public static final String SERIALIZED_NAME_KEY = "key"; @SerializedName(SERIALIZED_NAME_KEY) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1TopologySelectorTerm.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1TopologySelectorTerm.java index 483efc1e3d..29ad65ea9e 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -30,7 +30,7 @@ * 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. */ @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.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") public class V1TopologySelectorTerm { public static final String SERIALIZED_NAME_MATCH_LABEL_EXPRESSIONS = "matchLabelExpressions"; @SerializedName(SERIALIZED_NAME_MATCH_LABEL_EXPRESSIONS) 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 cf1bcc7f39..d198fa36e4 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -30,7 +30,7 @@ * TopologySpreadConstraint specifies how to spread matching pods among the given topology. */ @ApiModel(description = "TopologySpreadConstraint specifies how to spread matching pods among the given topology.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") public class V1TopologySpreadConstraint { public static final String SERIALIZED_NAME_LABEL_SELECTOR = "labelSelector"; @SerializedName(SERIALIZED_NAME_LABEL_SELECTOR) @@ -148,11 +148,11 @@ public V1TopologySpreadConstraint minDomains(Integer minDomains) { } /** - * 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. This is a beta field and requires the MinDomainsInPodTopologySpread feature gate to be enabled (enabled by default). + * 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. * @return minDomains **/ @javax.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. This is a beta field and requires the MinDomainsInPodTopologySpread feature gate to be enabled (enabled by default).") + @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; @@ -171,11 +171,11 @@ public V1TopologySpreadConstraint nodeAffinityPolicy(String nodeAffinityPolicy) } /** - * 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. + * 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. * @return nodeAffinityPolicy **/ @javax.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.") + @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.") public String getNodeAffinityPolicy() { return nodeAffinityPolicy; @@ -194,11 +194,11 @@ public V1TopologySpreadConstraint nodeTaintsPolicy(String nodeTaintsPolicy) { } /** - * 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. + * 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. * @return nodeTaintsPolicy **/ @javax.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.") + @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.") public String getNodeTaintsPolicy() { return nodeTaintsPolicy; 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 new file mode 100644 index 0000000000..9c240f2114 --- /dev/null +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1TypeChecking.java @@ -0,0 +1,109 @@ +/* +Copyright 2025 The Kubernetes Authors. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at +http://www.apache.org/licenses/LICENSE-2.0 +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ +package io.kubernetes.client.openapi.models; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +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.List; + +/** + * TypeChecking contains results of type checking the expressions in the ValidatingAdmissionPolicy + */ +@ApiModel(description = "TypeChecking contains results of type checking the expressions in the ValidatingAdmissionPolicy") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +public class V1TypeChecking { + public static final String SERIALIZED_NAME_EXPRESSION_WARNINGS = "expressionWarnings"; + @SerializedName(SERIALIZED_NAME_EXPRESSION_WARNINGS) + private List expressionWarnings = null; + + + public V1TypeChecking expressionWarnings(List expressionWarnings) { + + this.expressionWarnings = expressionWarnings; + return this; + } + + public V1TypeChecking addExpressionWarningsItem(V1ExpressionWarning expressionWarningsItem) { + if (this.expressionWarnings == null) { + this.expressionWarnings = new ArrayList<>(); + } + this.expressionWarnings.add(expressionWarningsItem); + return this; + } + + /** + * The type checking warnings for each expression. + * @return expressionWarnings + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "The type checking warnings for each expression.") + + public List getExpressionWarnings() { + return expressionWarnings; + } + + + public void setExpressionWarnings(List expressionWarnings) { + this.expressionWarnings = expressionWarnings; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V1TypeChecking v1TypeChecking = (V1TypeChecking) o; + return Objects.equals(this.expressionWarnings, v1TypeChecking.expressionWarnings); + } + + @Override + public int hashCode() { + return Objects.hash(expressionWarnings); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class V1TypeChecking {\n"); + sb.append(" expressionWarnings: ").append(toIndentedString(expressionWarnings)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} 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 59ea880d92..cc792a14ee 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -27,7 +27,7 @@ * TypedLocalObjectReference contains enough information to let you locate the typed referenced object inside the same namespace. */ @ApiModel(description = "TypedLocalObjectReference contains enough information to let you locate the typed referenced object inside the same namespace.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") public class V1TypedLocalObjectReference { public static final String SERIALIZED_NAME_API_GROUP = "apiGroup"; @SerializedName(SERIALIZED_NAME_API_GROUP) 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 af67c0dd54..c82dd89526 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,9 +24,10 @@ import java.io.IOException; /** - * V1TypedObjectReference + * TypedObjectReference contains enough information to let you locate the typed referenced object */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") +@ApiModel(description = "TypedObjectReference contains enough information to let you locate the typed referenced object") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") public class V1TypedObjectReference { public static final String SERIALIZED_NAME_API_GROUP = "apiGroup"; @SerializedName(SERIALIZED_NAME_API_GROUP) 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 c7c44be5c2..15f3a50a3e 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -29,7 +29,7 @@ * UncountedTerminatedPods holds UIDs of Pods that have terminated but haven't been accounted in Job status counters. */ @ApiModel(description = "UncountedTerminatedPods holds UIDs of Pods that have terminated but haven't been accounted in Job status counters.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") public class V1UncountedTerminatedPods { public static final String SERIALIZED_NAME_FAILED = "failed"; @SerializedName(SERIALIZED_NAME_FAILED) 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 7f6d2b1767..06d40b43a0 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -31,7 +31,7 @@ * UserInfo holds the information about the user needed to implement the user.Info interface. */ @ApiModel(description = "UserInfo holds the information about the user needed to implement the user.Info interface.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") public class V1UserInfo { public static final String SERIALIZED_NAME_EXTRA = "extra"; @SerializedName(SERIALIZED_NAME_EXTRA) 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 new file mode 100644 index 0000000000..70e5cec577 --- /dev/null +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1UserSubject.java @@ -0,0 +1,97 @@ +/* +Copyright 2025 The Kubernetes Authors. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at +http://www.apache.org/licenses/LICENSE-2.0 +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ +package io.kubernetes.client.openapi.models; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +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; + +/** + * UserSubject holds detailed information for user-kind subject. + */ +@ApiModel(description = "UserSubject holds detailed information for user-kind subject.") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +public class V1UserSubject { + public static final String SERIALIZED_NAME_NAME = "name"; + @SerializedName(SERIALIZED_NAME_NAME) + private String name; + + + public V1UserSubject name(String name) { + + this.name = name; + return this; + } + + /** + * `name` is the username that matches, or \"*\" to match all usernames. Required. + * @return name + **/ + @ApiModelProperty(required = true, value = "`name` is the username that matches, or \"*\" to match all usernames. Required.") + + public String getName() { + return name; + } + + + public void setName(String name) { + this.name = name; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V1UserSubject v1UserSubject = (V1UserSubject) o; + return Objects.equals(this.name, v1UserSubject.name); + } + + @Override + public int hashCode() { + return Objects.hash(name); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class V1UserSubject {\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} 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 new file mode 100644 index 0000000000..866f8d6a1b --- /dev/null +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingAdmissionPolicy.java @@ -0,0 +1,217 @@ +/* +Copyright 2025 The Kubernetes Authors. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at +http://www.apache.org/licenses/LICENSE-2.0 +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ +package io.kubernetes.client.openapi.models; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +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; + +/** + * ValidatingAdmissionPolicy describes the definition of an admission validation policy that accepts or rejects an object without changing it. + */ +@ApiModel(description = "ValidatingAdmissionPolicy describes the definition of an admission validation policy that accepts or rejects an object without changing it.") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +public class V1ValidatingAdmissionPolicy implements io.kubernetes.client.common.KubernetesObject { + public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; + @SerializedName(SERIALIZED_NAME_API_VERSION) + private String apiVersion; + + public static final String SERIALIZED_NAME_KIND = "kind"; + @SerializedName(SERIALIZED_NAME_KIND) + private String kind; + + public static final String SERIALIZED_NAME_METADATA = "metadata"; + @SerializedName(SERIALIZED_NAME_METADATA) + private V1ObjectMeta metadata; + + public static final String SERIALIZED_NAME_SPEC = "spec"; + @SerializedName(SERIALIZED_NAME_SPEC) + private V1ValidatingAdmissionPolicySpec spec; + + public static final String SERIALIZED_NAME_STATUS = "status"; + @SerializedName(SERIALIZED_NAME_STATUS) + private V1ValidatingAdmissionPolicyStatus status; + + + public V1ValidatingAdmissionPolicy apiVersion(String apiVersion) { + + this.apiVersion = apiVersion; + return this; + } + + /** + * 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 + * @return apiVersion + **/ + @javax.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; + } + + + public void setApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + } + + + public V1ValidatingAdmissionPolicy kind(String kind) { + + this.kind = kind; + return this; + } + + /** + * 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 + * @return kind + **/ + @javax.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; + } + + + public void setKind(String kind) { + this.kind = kind; + } + + + public V1ValidatingAdmissionPolicy metadata(V1ObjectMeta metadata) { + + this.metadata = metadata; + return this; + } + + /** + * Get metadata + * @return metadata + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public V1ObjectMeta getMetadata() { + return metadata; + } + + + public void setMetadata(V1ObjectMeta metadata) { + this.metadata = metadata; + } + + + public V1ValidatingAdmissionPolicy spec(V1ValidatingAdmissionPolicySpec spec) { + + this.spec = spec; + return this; + } + + /** + * Get spec + * @return spec + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public V1ValidatingAdmissionPolicySpec getSpec() { + return spec; + } + + + public void setSpec(V1ValidatingAdmissionPolicySpec spec) { + this.spec = spec; + } + + + public V1ValidatingAdmissionPolicy status(V1ValidatingAdmissionPolicyStatus status) { + + this.status = status; + return this; + } + + /** + * Get status + * @return status + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public V1ValidatingAdmissionPolicyStatus getStatus() { + return status; + } + + + public void setStatus(V1ValidatingAdmissionPolicyStatus status) { + this.status = status; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V1ValidatingAdmissionPolicy v1ValidatingAdmissionPolicy = (V1ValidatingAdmissionPolicy) o; + return Objects.equals(this.apiVersion, v1ValidatingAdmissionPolicy.apiVersion) && + Objects.equals(this.kind, v1ValidatingAdmissionPolicy.kind) && + Objects.equals(this.metadata, v1ValidatingAdmissionPolicy.metadata) && + Objects.equals(this.spec, v1ValidatingAdmissionPolicy.spec) && + Objects.equals(this.status, v1ValidatingAdmissionPolicy.status); + } + + @Override + public int hashCode() { + return Objects.hash(apiVersion, kind, metadata, spec, status); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class V1ValidatingAdmissionPolicy {\n"); + sb.append(" apiVersion: ").append(toIndentedString(apiVersion)).append("\n"); + sb.append(" kind: ").append(toIndentedString(kind)).append("\n"); + sb.append(" metadata: ").append(toIndentedString(metadata)).append("\n"); + sb.append(" spec: ").append(toIndentedString(spec)).append("\n"); + sb.append(" status: ").append(toIndentedString(status)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} 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 new file mode 100644 index 0000000000..19a4c04dc2 --- /dev/null +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingAdmissionPolicyBinding.java @@ -0,0 +1,187 @@ +/* +Copyright 2025 The Kubernetes Authors. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at +http://www.apache.org/licenses/LICENSE-2.0 +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ +package io.kubernetes.client.openapi.models; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +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; + +/** + * 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. + */ +@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.") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +public class V1ValidatingAdmissionPolicyBinding implements io.kubernetes.client.common.KubernetesObject { + public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; + @SerializedName(SERIALIZED_NAME_API_VERSION) + private String apiVersion; + + public static final String SERIALIZED_NAME_KIND = "kind"; + @SerializedName(SERIALIZED_NAME_KIND) + private String kind; + + public static final String SERIALIZED_NAME_METADATA = "metadata"; + @SerializedName(SERIALIZED_NAME_METADATA) + private V1ObjectMeta metadata; + + public static final String SERIALIZED_NAME_SPEC = "spec"; + @SerializedName(SERIALIZED_NAME_SPEC) + private V1ValidatingAdmissionPolicyBindingSpec spec; + + + public V1ValidatingAdmissionPolicyBinding apiVersion(String apiVersion) { + + this.apiVersion = apiVersion; + return this; + } + + /** + * 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 + * @return apiVersion + **/ + @javax.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; + } + + + public void setApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + } + + + public V1ValidatingAdmissionPolicyBinding kind(String kind) { + + this.kind = kind; + return this; + } + + /** + * 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 + * @return kind + **/ + @javax.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; + } + + + public void setKind(String kind) { + this.kind = kind; + } + + + public V1ValidatingAdmissionPolicyBinding metadata(V1ObjectMeta metadata) { + + this.metadata = metadata; + return this; + } + + /** + * Get metadata + * @return metadata + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public V1ObjectMeta getMetadata() { + return metadata; + } + + + public void setMetadata(V1ObjectMeta metadata) { + this.metadata = metadata; + } + + + public V1ValidatingAdmissionPolicyBinding spec(V1ValidatingAdmissionPolicyBindingSpec spec) { + + this.spec = spec; + return this; + } + + /** + * Get spec + * @return spec + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public V1ValidatingAdmissionPolicyBindingSpec getSpec() { + return spec; + } + + + public void setSpec(V1ValidatingAdmissionPolicyBindingSpec spec) { + this.spec = spec; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V1ValidatingAdmissionPolicyBinding v1ValidatingAdmissionPolicyBinding = (V1ValidatingAdmissionPolicyBinding) o; + return Objects.equals(this.apiVersion, v1ValidatingAdmissionPolicyBinding.apiVersion) && + Objects.equals(this.kind, v1ValidatingAdmissionPolicyBinding.kind) && + Objects.equals(this.metadata, v1ValidatingAdmissionPolicyBinding.metadata) && + Objects.equals(this.spec, v1ValidatingAdmissionPolicyBinding.spec); + } + + @Override + public int hashCode() { + return Objects.hash(apiVersion, kind, metadata, spec); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class V1ValidatingAdmissionPolicyBinding {\n"); + sb.append(" apiVersion: ").append(toIndentedString(apiVersion)).append("\n"); + sb.append(" kind: ").append(toIndentedString(kind)).append("\n"); + sb.append(" metadata: ").append(toIndentedString(metadata)).append("\n"); + sb.append(" spec: ").append(toIndentedString(spec)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} 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 new file mode 100644 index 0000000000..b277828d35 --- /dev/null +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingAdmissionPolicyBindingList.java @@ -0,0 +1,193 @@ +/* +Copyright 2025 The Kubernetes Authors. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at +http://www.apache.org/licenses/LICENSE-2.0 +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ +package io.kubernetes.client.openapi.models; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +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.List; + +/** + * ValidatingAdmissionPolicyBindingList is a list of ValidatingAdmissionPolicyBinding. + */ +@ApiModel(description = "ValidatingAdmissionPolicyBindingList is a list of ValidatingAdmissionPolicyBinding.") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +public class V1ValidatingAdmissionPolicyBindingList implements io.kubernetes.client.common.KubernetesListObject { + public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; + @SerializedName(SERIALIZED_NAME_API_VERSION) + private String apiVersion; + + public static final String SERIALIZED_NAME_ITEMS = "items"; + @SerializedName(SERIALIZED_NAME_ITEMS) + private List items = new ArrayList<>(); + + public static final String SERIALIZED_NAME_KIND = "kind"; + @SerializedName(SERIALIZED_NAME_KIND) + private String kind; + + public static final String SERIALIZED_NAME_METADATA = "metadata"; + @SerializedName(SERIALIZED_NAME_METADATA) + private V1ListMeta metadata; + + + public V1ValidatingAdmissionPolicyBindingList apiVersion(String apiVersion) { + + this.apiVersion = apiVersion; + return this; + } + + /** + * 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 + * @return apiVersion + **/ + @javax.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; + } + + + public void setApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + } + + + public V1ValidatingAdmissionPolicyBindingList items(List items) { + + this.items = items; + return this; + } + + public V1ValidatingAdmissionPolicyBindingList addItemsItem(V1ValidatingAdmissionPolicyBinding itemsItem) { + this.items.add(itemsItem); + return this; + } + + /** + * List of PolicyBinding. + * @return items + **/ + @ApiModelProperty(required = true, value = "List of PolicyBinding.") + + public List getItems() { + return items; + } + + + public void setItems(List items) { + this.items = items; + } + + + public V1ValidatingAdmissionPolicyBindingList kind(String kind) { + + this.kind = kind; + return this; + } + + /** + * 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 + * @return kind + **/ + @javax.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; + } + + + public void setKind(String kind) { + this.kind = kind; + } + + + public V1ValidatingAdmissionPolicyBindingList metadata(V1ListMeta metadata) { + + this.metadata = metadata; + return this; + } + + /** + * Get metadata + * @return metadata + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public V1ListMeta getMetadata() { + return metadata; + } + + + public void setMetadata(V1ListMeta metadata) { + this.metadata = metadata; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V1ValidatingAdmissionPolicyBindingList v1ValidatingAdmissionPolicyBindingList = (V1ValidatingAdmissionPolicyBindingList) o; + return Objects.equals(this.apiVersion, v1ValidatingAdmissionPolicyBindingList.apiVersion) && + Objects.equals(this.items, v1ValidatingAdmissionPolicyBindingList.items) && + Objects.equals(this.kind, v1ValidatingAdmissionPolicyBindingList.kind) && + Objects.equals(this.metadata, v1ValidatingAdmissionPolicyBindingList.metadata); + } + + @Override + public int hashCode() { + return Objects.hash(apiVersion, items, kind, metadata); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class V1ValidatingAdmissionPolicyBindingList {\n"); + sb.append(" apiVersion: ").append(toIndentedString(apiVersion)).append("\n"); + sb.append(" items: ").append(toIndentedString(items)).append("\n"); + sb.append(" kind: ").append(toIndentedString(kind)).append("\n"); + sb.append(" metadata: ").append(toIndentedString(metadata)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} 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 new file mode 100644 index 0000000000..cdd7c851da --- /dev/null +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingAdmissionPolicyBindingSpec.java @@ -0,0 +1,197 @@ +/* +Copyright 2025 The Kubernetes Authors. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at +http://www.apache.org/licenses/LICENSE-2.0 +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ +package io.kubernetes.client.openapi.models; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +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.List; + +/** + * ValidatingAdmissionPolicyBindingSpec is the specification of the ValidatingAdmissionPolicyBinding. + */ +@ApiModel(description = "ValidatingAdmissionPolicyBindingSpec is the specification of the ValidatingAdmissionPolicyBinding.") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +public class V1ValidatingAdmissionPolicyBindingSpec { + public static final String SERIALIZED_NAME_MATCH_RESOURCES = "matchResources"; + @SerializedName(SERIALIZED_NAME_MATCH_RESOURCES) + private V1MatchResources matchResources; + + public static final String SERIALIZED_NAME_PARAM_REF = "paramRef"; + @SerializedName(SERIALIZED_NAME_PARAM_REF) + private V1ParamRef paramRef; + + public static final String SERIALIZED_NAME_POLICY_NAME = "policyName"; + @SerializedName(SERIALIZED_NAME_POLICY_NAME) + private String policyName; + + public static final String SERIALIZED_NAME_VALIDATION_ACTIONS = "validationActions"; + @SerializedName(SERIALIZED_NAME_VALIDATION_ACTIONS) + private List validationActions = null; + + + public V1ValidatingAdmissionPolicyBindingSpec matchResources(V1MatchResources matchResources) { + + this.matchResources = matchResources; + return this; + } + + /** + * Get matchResources + * @return matchResources + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public V1MatchResources getMatchResources() { + return matchResources; + } + + + public void setMatchResources(V1MatchResources matchResources) { + this.matchResources = matchResources; + } + + + public V1ValidatingAdmissionPolicyBindingSpec paramRef(V1ParamRef paramRef) { + + this.paramRef = paramRef; + return this; + } + + /** + * Get paramRef + * @return paramRef + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public V1ParamRef getParamRef() { + return paramRef; + } + + + public void setParamRef(V1ParamRef paramRef) { + this.paramRef = paramRef; + } + + + public V1ValidatingAdmissionPolicyBindingSpec policyName(String policyName) { + + this.policyName = policyName; + return this; + } + + /** + * 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. + * @return policyName + **/ + @javax.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; + } + + + public void setPolicyName(String policyName) { + this.policyName = policyName; + } + + + public V1ValidatingAdmissionPolicyBindingSpec validationActions(List validationActions) { + + this.validationActions = validationActions; + return this; + } + + public V1ValidatingAdmissionPolicyBindingSpec addValidationActionsItem(String validationActionsItem) { + if (this.validationActions == null) { + this.validationActions = new ArrayList<>(); + } + this.validationActions.add(validationActionsItem); + return this; + } + + /** + * 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. + * @return validationActions + **/ + @javax.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; + } + + + public void setValidationActions(List validationActions) { + this.validationActions = validationActions; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V1ValidatingAdmissionPolicyBindingSpec v1ValidatingAdmissionPolicyBindingSpec = (V1ValidatingAdmissionPolicyBindingSpec) o; + return Objects.equals(this.matchResources, v1ValidatingAdmissionPolicyBindingSpec.matchResources) && + Objects.equals(this.paramRef, v1ValidatingAdmissionPolicyBindingSpec.paramRef) && + Objects.equals(this.policyName, v1ValidatingAdmissionPolicyBindingSpec.policyName) && + Objects.equals(this.validationActions, v1ValidatingAdmissionPolicyBindingSpec.validationActions); + } + + @Override + public int hashCode() { + return Objects.hash(matchResources, paramRef, policyName, validationActions); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class V1ValidatingAdmissionPolicyBindingSpec {\n"); + sb.append(" matchResources: ").append(toIndentedString(matchResources)).append("\n"); + sb.append(" paramRef: ").append(toIndentedString(paramRef)).append("\n"); + sb.append(" policyName: ").append(toIndentedString(policyName)).append("\n"); + sb.append(" validationActions: ").append(toIndentedString(validationActions)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} 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 new file mode 100644 index 0000000000..8f036e0eff --- /dev/null +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingAdmissionPolicyList.java @@ -0,0 +1,193 @@ +/* +Copyright 2025 The Kubernetes Authors. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at +http://www.apache.org/licenses/LICENSE-2.0 +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ +package io.kubernetes.client.openapi.models; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +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.List; + +/** + * ValidatingAdmissionPolicyList is a list of ValidatingAdmissionPolicy. + */ +@ApiModel(description = "ValidatingAdmissionPolicyList is a list of ValidatingAdmissionPolicy.") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +public class V1ValidatingAdmissionPolicyList implements io.kubernetes.client.common.KubernetesListObject { + public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; + @SerializedName(SERIALIZED_NAME_API_VERSION) + private String apiVersion; + + public static final String SERIALIZED_NAME_ITEMS = "items"; + @SerializedName(SERIALIZED_NAME_ITEMS) + private List items = new ArrayList<>(); + + public static final String SERIALIZED_NAME_KIND = "kind"; + @SerializedName(SERIALIZED_NAME_KIND) + private String kind; + + public static final String SERIALIZED_NAME_METADATA = "metadata"; + @SerializedName(SERIALIZED_NAME_METADATA) + private V1ListMeta metadata; + + + public V1ValidatingAdmissionPolicyList apiVersion(String apiVersion) { + + this.apiVersion = apiVersion; + return this; + } + + /** + * 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 + * @return apiVersion + **/ + @javax.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; + } + + + public void setApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + } + + + public V1ValidatingAdmissionPolicyList items(List items) { + + this.items = items; + return this; + } + + public V1ValidatingAdmissionPolicyList addItemsItem(V1ValidatingAdmissionPolicy itemsItem) { + this.items.add(itemsItem); + return this; + } + + /** + * List of ValidatingAdmissionPolicy. + * @return items + **/ + @ApiModelProperty(required = true, value = "List of ValidatingAdmissionPolicy.") + + public List getItems() { + return items; + } + + + public void setItems(List items) { + this.items = items; + } + + + public V1ValidatingAdmissionPolicyList kind(String kind) { + + this.kind = kind; + return this; + } + + /** + * 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 + * @return kind + **/ + @javax.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; + } + + + public void setKind(String kind) { + this.kind = kind; + } + + + public V1ValidatingAdmissionPolicyList metadata(V1ListMeta metadata) { + + this.metadata = metadata; + return this; + } + + /** + * Get metadata + * @return metadata + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public V1ListMeta getMetadata() { + return metadata; + } + + + public void setMetadata(V1ListMeta metadata) { + this.metadata = metadata; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V1ValidatingAdmissionPolicyList v1ValidatingAdmissionPolicyList = (V1ValidatingAdmissionPolicyList) o; + return Objects.equals(this.apiVersion, v1ValidatingAdmissionPolicyList.apiVersion) && + Objects.equals(this.items, v1ValidatingAdmissionPolicyList.items) && + Objects.equals(this.kind, v1ValidatingAdmissionPolicyList.kind) && + Objects.equals(this.metadata, v1ValidatingAdmissionPolicyList.metadata); + } + + @Override + public int hashCode() { + return Objects.hash(apiVersion, items, kind, metadata); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class V1ValidatingAdmissionPolicyList {\n"); + sb.append(" apiVersion: ").append(toIndentedString(apiVersion)).append("\n"); + sb.append(" items: ").append(toIndentedString(items)).append("\n"); + sb.append(" kind: ").append(toIndentedString(kind)).append("\n"); + sb.append(" metadata: ").append(toIndentedString(metadata)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} 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 new file mode 100644 index 0000000000..e4e78bd220 --- /dev/null +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingAdmissionPolicySpec.java @@ -0,0 +1,312 @@ +/* +Copyright 2025 The Kubernetes Authors. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at +http://www.apache.org/licenses/LICENSE-2.0 +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ +package io.kubernetes.client.openapi.models; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.openapi.models.V1AuditAnnotation; +import io.kubernetes.client.openapi.models.V1MatchCondition; +import io.kubernetes.client.openapi.models.V1MatchResources; +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.List; + +/** + * ValidatingAdmissionPolicySpec is the specification of the desired behavior of the AdmissionPolicy. + */ +@ApiModel(description = "ValidatingAdmissionPolicySpec is the specification of the desired behavior of the AdmissionPolicy.") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +public class V1ValidatingAdmissionPolicySpec { + public static final String SERIALIZED_NAME_AUDIT_ANNOTATIONS = "auditAnnotations"; + @SerializedName(SERIALIZED_NAME_AUDIT_ANNOTATIONS) + private List auditAnnotations = null; + + public static final String SERIALIZED_NAME_FAILURE_POLICY = "failurePolicy"; + @SerializedName(SERIALIZED_NAME_FAILURE_POLICY) + private String failurePolicy; + + public static final String SERIALIZED_NAME_MATCH_CONDITIONS = "matchConditions"; + @SerializedName(SERIALIZED_NAME_MATCH_CONDITIONS) + private List matchConditions = null; + + public static final String SERIALIZED_NAME_MATCH_CONSTRAINTS = "matchConstraints"; + @SerializedName(SERIALIZED_NAME_MATCH_CONSTRAINTS) + private V1MatchResources matchConstraints; + + public static final String SERIALIZED_NAME_PARAM_KIND = "paramKind"; + @SerializedName(SERIALIZED_NAME_PARAM_KIND) + private V1ParamKind paramKind; + + public static final String SERIALIZED_NAME_VALIDATIONS = "validations"; + @SerializedName(SERIALIZED_NAME_VALIDATIONS) + private List validations = null; + + public static final String SERIALIZED_NAME_VARIABLES = "variables"; + @SerializedName(SERIALIZED_NAME_VARIABLES) + private List variables = null; + + + public V1ValidatingAdmissionPolicySpec auditAnnotations(List auditAnnotations) { + + this.auditAnnotations = auditAnnotations; + return this; + } + + public V1ValidatingAdmissionPolicySpec addAuditAnnotationsItem(V1AuditAnnotation auditAnnotationsItem) { + if (this.auditAnnotations == null) { + this.auditAnnotations = new ArrayList<>(); + } + this.auditAnnotations.add(auditAnnotationsItem); + return this; + } + + /** + * 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. + * @return auditAnnotations + **/ + @javax.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; + } + + + public void setAuditAnnotations(List auditAnnotations) { + this.auditAnnotations = auditAnnotations; + } + + + public V1ValidatingAdmissionPolicySpec failurePolicy(String failurePolicy) { + + this.failurePolicy = failurePolicy; + return this; + } + + /** + * 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. + * @return failurePolicy + **/ + @javax.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; + } + + + public void setFailurePolicy(String failurePolicy) { + this.failurePolicy = failurePolicy; + } + + + public V1ValidatingAdmissionPolicySpec matchConditions(List matchConditions) { + + this.matchConditions = matchConditions; + return this; + } + + public V1ValidatingAdmissionPolicySpec addMatchConditionsItem(V1MatchCondition matchConditionsItem) { + if (this.matchConditions == null) { + this.matchConditions = new ArrayList<>(); + } + this.matchConditions.add(matchConditionsItem); + return this; + } + + /** + * 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 + * @return matchConditions + **/ + @javax.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; + } + + + public void setMatchConditions(List matchConditions) { + this.matchConditions = matchConditions; + } + + + public V1ValidatingAdmissionPolicySpec matchConstraints(V1MatchResources matchConstraints) { + + this.matchConstraints = matchConstraints; + return this; + } + + /** + * Get matchConstraints + * @return matchConstraints + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public V1MatchResources getMatchConstraints() { + return matchConstraints; + } + + + public void setMatchConstraints(V1MatchResources matchConstraints) { + this.matchConstraints = matchConstraints; + } + + + public V1ValidatingAdmissionPolicySpec paramKind(V1ParamKind paramKind) { + + this.paramKind = paramKind; + return this; + } + + /** + * Get paramKind + * @return paramKind + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public V1ParamKind getParamKind() { + return paramKind; + } + + + public void setParamKind(V1ParamKind paramKind) { + this.paramKind = paramKind; + } + + + public V1ValidatingAdmissionPolicySpec validations(List validations) { + + this.validations = validations; + return this; + } + + public V1ValidatingAdmissionPolicySpec addValidationsItem(V1Validation validationsItem) { + if (this.validations == null) { + this.validations = new ArrayList<>(); + } + this.validations.add(validationsItem); + return this; + } + + /** + * 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. + * @return validations + **/ + @javax.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; + } + + + public void setValidations(List validations) { + this.validations = validations; + } + + + public V1ValidatingAdmissionPolicySpec variables(List variables) { + + this.variables = variables; + return this; + } + + public V1ValidatingAdmissionPolicySpec addVariablesItem(V1Variable variablesItem) { + if (this.variables == null) { + this.variables = new ArrayList<>(); + } + this.variables.add(variablesItem); + return this; + } + + /** + * 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. + * @return variables + **/ + @javax.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; + } + + + public void setVariables(List variables) { + this.variables = variables; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V1ValidatingAdmissionPolicySpec v1ValidatingAdmissionPolicySpec = (V1ValidatingAdmissionPolicySpec) o; + return Objects.equals(this.auditAnnotations, v1ValidatingAdmissionPolicySpec.auditAnnotations) && + Objects.equals(this.failurePolicy, v1ValidatingAdmissionPolicySpec.failurePolicy) && + Objects.equals(this.matchConditions, v1ValidatingAdmissionPolicySpec.matchConditions) && + Objects.equals(this.matchConstraints, v1ValidatingAdmissionPolicySpec.matchConstraints) && + Objects.equals(this.paramKind, v1ValidatingAdmissionPolicySpec.paramKind) && + Objects.equals(this.validations, v1ValidatingAdmissionPolicySpec.validations) && + Objects.equals(this.variables, v1ValidatingAdmissionPolicySpec.variables); + } + + @Override + public int hashCode() { + return Objects.hash(auditAnnotations, failurePolicy, matchConditions, matchConstraints, paramKind, validations, variables); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class V1ValidatingAdmissionPolicySpec {\n"); + sb.append(" auditAnnotations: ").append(toIndentedString(auditAnnotations)).append("\n"); + sb.append(" failurePolicy: ").append(toIndentedString(failurePolicy)).append("\n"); + sb.append(" matchConditions: ").append(toIndentedString(matchConditions)).append("\n"); + sb.append(" matchConstraints: ").append(toIndentedString(matchConstraints)).append("\n"); + sb.append(" paramKind: ").append(toIndentedString(paramKind)).append("\n"); + sb.append(" validations: ").append(toIndentedString(validations)).append("\n"); + sb.append(" variables: ").append(toIndentedString(variables)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} 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 new file mode 100644 index 0000000000..eaa530bfbd --- /dev/null +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingAdmissionPolicyStatus.java @@ -0,0 +1,168 @@ +/* +Copyright 2025 The Kubernetes Authors. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at +http://www.apache.org/licenses/LICENSE-2.0 +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ +package io.kubernetes.client.openapi.models; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +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.List; + +/** + * ValidatingAdmissionPolicyStatus represents the status of an admission validation policy. + */ +@ApiModel(description = "ValidatingAdmissionPolicyStatus represents the status of an admission validation policy.") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +public class V1ValidatingAdmissionPolicyStatus { + public static final String SERIALIZED_NAME_CONDITIONS = "conditions"; + @SerializedName(SERIALIZED_NAME_CONDITIONS) + private List conditions = null; + + public static final String SERIALIZED_NAME_OBSERVED_GENERATION = "observedGeneration"; + @SerializedName(SERIALIZED_NAME_OBSERVED_GENERATION) + private Long observedGeneration; + + public static final String SERIALIZED_NAME_TYPE_CHECKING = "typeChecking"; + @SerializedName(SERIALIZED_NAME_TYPE_CHECKING) + private V1TypeChecking typeChecking; + + + public V1ValidatingAdmissionPolicyStatus conditions(List conditions) { + + this.conditions = conditions; + return this; + } + + public V1ValidatingAdmissionPolicyStatus addConditionsItem(V1Condition conditionsItem) { + if (this.conditions == null) { + this.conditions = new ArrayList<>(); + } + this.conditions.add(conditionsItem); + return this; + } + + /** + * The conditions represent the latest available observations of a policy's current state. + * @return conditions + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "The conditions represent the latest available observations of a policy's current state.") + + public List getConditions() { + return conditions; + } + + + public void setConditions(List conditions) { + this.conditions = conditions; + } + + + public V1ValidatingAdmissionPolicyStatus observedGeneration(Long observedGeneration) { + + this.observedGeneration = observedGeneration; + return this; + } + + /** + * The generation observed by the controller. + * @return observedGeneration + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "The generation observed by the controller.") + + public Long getObservedGeneration() { + return observedGeneration; + } + + + public void setObservedGeneration(Long observedGeneration) { + this.observedGeneration = observedGeneration; + } + + + public V1ValidatingAdmissionPolicyStatus typeChecking(V1TypeChecking typeChecking) { + + this.typeChecking = typeChecking; + return this; + } + + /** + * Get typeChecking + * @return typeChecking + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public V1TypeChecking getTypeChecking() { + return typeChecking; + } + + + public void setTypeChecking(V1TypeChecking typeChecking) { + this.typeChecking = typeChecking; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V1ValidatingAdmissionPolicyStatus v1ValidatingAdmissionPolicyStatus = (V1ValidatingAdmissionPolicyStatus) o; + return Objects.equals(this.conditions, v1ValidatingAdmissionPolicyStatus.conditions) && + Objects.equals(this.observedGeneration, v1ValidatingAdmissionPolicyStatus.observedGeneration) && + Objects.equals(this.typeChecking, v1ValidatingAdmissionPolicyStatus.typeChecking); + } + + @Override + public int hashCode() { + return Objects.hash(conditions, observedGeneration, typeChecking); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class V1ValidatingAdmissionPolicyStatus {\n"); + sb.append(" conditions: ").append(toIndentedString(conditions)).append("\n"); + sb.append(" observedGeneration: ").append(toIndentedString(observedGeneration)).append("\n"); + sb.append(" typeChecking: ").append(toIndentedString(typeChecking)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} 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 6c79248abf..4531e0293d 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -33,7 +33,7 @@ * ValidatingWebhook describes an admission webhook and the resources and operations it applies to. */ @ApiModel(description = "ValidatingWebhook describes an admission webhook and the resources and operations it applies to.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") public class V1ValidatingWebhook { public static final String SERIALIZED_NAME_ADMISSION_REVIEW_VERSIONS = "admissionReviewVersions"; @SerializedName(SERIALIZED_NAME_ADMISSION_REVIEW_VERSIONS) @@ -167,11 +167,11 @@ public V1ValidatingWebhook addMatchConditionsItem(V1MatchCondition matchConditio } /** - * 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 This is a beta feature and managed by the AdmissionWebhookMatchConditions feature gate. + * 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 * @return matchConditions **/ @javax.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 This is a beta feature and managed by the AdmissionWebhookMatchConditions feature gate.") + @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; 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 0323e1f37e..0eaa86e92b 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -31,7 +31,7 @@ * ValidatingWebhookConfiguration describes the configuration of and admission webhook that accept or reject and object without changing it. */ @ApiModel(description = "ValidatingWebhookConfiguration describes the configuration of and admission webhook that accept or reject and object without changing it.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") public class V1ValidatingWebhookConfiguration implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) 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 072d5e29f1..7c23e88748 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -31,7 +31,7 @@ * ValidatingWebhookConfigurationList is a list of ValidatingWebhookConfiguration. */ @ApiModel(description = "ValidatingWebhookConfigurationList is a list of ValidatingWebhookConfiguration.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") public class V1ValidatingWebhookConfigurationList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) 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 new file mode 100644 index 0000000000..d2b1a0c440 --- /dev/null +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Validation.java @@ -0,0 +1,184 @@ +/* +Copyright 2025 The Kubernetes Authors. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at +http://www.apache.org/licenses/LICENSE-2.0 +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ +package io.kubernetes.client.openapi.models; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +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; + +/** + * Validation specifies the CEL expression which is used to apply the validation. + */ +@ApiModel(description = "Validation specifies the CEL expression which is used to apply the validation.") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +public class V1Validation { + public static final String SERIALIZED_NAME_EXPRESSION = "expression"; + @SerializedName(SERIALIZED_NAME_EXPRESSION) + private String expression; + + public static final String SERIALIZED_NAME_MESSAGE = "message"; + @SerializedName(SERIALIZED_NAME_MESSAGE) + private String message; + + public static final String SERIALIZED_NAME_MESSAGE_EXPRESSION = "messageExpression"; + @SerializedName(SERIALIZED_NAME_MESSAGE_EXPRESSION) + private String messageExpression; + + public static final String SERIALIZED_NAME_REASON = "reason"; + @SerializedName(SERIALIZED_NAME_REASON) + private String reason; + + + public V1Validation expression(String expression) { + + this.expression = expression; + return this; + } + + /** + * 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. + * @return expression + **/ + @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; + } + + + public void setExpression(String expression) { + this.expression = expression; + } + + + public V1Validation message(String message) { + + this.message = message; + return this; + } + + /** + * 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}\". + * @return message + **/ + @javax.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; + } + + + public void setMessage(String message) { + this.message = message; + } + + + public V1Validation messageExpression(String messageExpression) { + + this.messageExpression = messageExpression; + return this; + } + + /** + * 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)+\")\" + * @return messageExpression + **/ + @javax.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; + } + + + public void setMessageExpression(String messageExpression) { + this.messageExpression = messageExpression; + } + + + public V1Validation reason(String reason) { + + this.reason = reason; + return this; + } + + /** + * 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. + * @return reason + **/ + @javax.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; + } + + + public void setReason(String reason) { + this.reason = reason; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V1Validation v1Validation = (V1Validation) o; + return Objects.equals(this.expression, v1Validation.expression) && + Objects.equals(this.message, v1Validation.message) && + Objects.equals(this.messageExpression, v1Validation.messageExpression) && + Objects.equals(this.reason, v1Validation.reason); + } + + @Override + public int hashCode() { + return Objects.hash(expression, message, messageExpression, reason); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class V1Validation {\n"); + sb.append(" expression: ").append(toIndentedString(expression)).append("\n"); + sb.append(" message: ").append(toIndentedString(message)).append("\n"); + sb.append(" messageExpression: ").append(toIndentedString(messageExpression)).append("\n"); + sb.append(" reason: ").append(toIndentedString(reason)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} 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 e059d0a96b..7f3301144b 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -27,7 +27,7 @@ * ValidationRule describes a validation rule written in the CEL expression language. */ @ApiModel(description = "ValidationRule describes a validation rule written in the CEL expression language.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") public class V1ValidationRule { public static final String SERIALIZED_NAME_FIELD_PATH = "fieldPath"; @SerializedName(SERIALIZED_NAME_FIELD_PATH) @@ -41,6 +41,10 @@ public class V1ValidationRule { @SerializedName(SERIALIZED_NAME_MESSAGE_EXPRESSION) private String messageExpression; + public static final String SERIALIZED_NAME_OPTIONAL_OLD_SELF = "optionalOldSelf"; + @SerializedName(SERIALIZED_NAME_OPTIONAL_OLD_SELF) + private Boolean optionalOldSelf; + public static final String SERIALIZED_NAME_REASON = "reason"; @SerializedName(SERIALIZED_NAME_REASON) private String reason; @@ -119,6 +123,29 @@ public void setMessageExpression(String messageExpression) { } + public V1ValidationRule optionalOldSelf(Boolean optionalOldSelf) { + + this.optionalOldSelf = optionalOldSelf; + return this; + } + + /** + * 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`. + * @return optionalOldSelf + **/ + @javax.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; + } + + + public void setOptionalOldSelf(Boolean optionalOldSelf) { + this.optionalOldSelf = optionalOldSelf; + } + + public V1ValidationRule reason(String reason) { this.reason = reason; @@ -149,10 +176,10 @@ public V1ValidationRule rule(String rule) { } /** - * 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. + * 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. * @return rule **/ - @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.") + @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; @@ -176,13 +203,14 @@ public boolean equals(java.lang.Object o) { return Objects.equals(this.fieldPath, v1ValidationRule.fieldPath) && Objects.equals(this.message, v1ValidationRule.message) && Objects.equals(this.messageExpression, v1ValidationRule.messageExpression) && + Objects.equals(this.optionalOldSelf, v1ValidationRule.optionalOldSelf) && Objects.equals(this.reason, v1ValidationRule.reason) && Objects.equals(this.rule, v1ValidationRule.rule); } @Override public int hashCode() { - return Objects.hash(fieldPath, message, messageExpression, reason, rule); + return Objects.hash(fieldPath, message, messageExpression, optionalOldSelf, reason, rule); } @@ -193,6 +221,7 @@ public String toString() { sb.append(" fieldPath: ").append(toIndentedString(fieldPath)).append("\n"); sb.append(" message: ").append(toIndentedString(message)).append("\n"); sb.append(" messageExpression: ").append(toIndentedString(messageExpression)).append("\n"); + sb.append(" optionalOldSelf: ").append(toIndentedString(optionalOldSelf)).append("\n"); sb.append(" reason: ").append(toIndentedString(reason)).append("\n"); sb.append(" rule: ").append(toIndentedString(rule)).append("\n"); sb.append("}"); 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 new file mode 100644 index 0000000000..f02f9bedce --- /dev/null +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Variable.java @@ -0,0 +1,125 @@ +/* +Copyright 2025 The Kubernetes Authors. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at +http://www.apache.org/licenses/LICENSE-2.0 +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ +package io.kubernetes.client.openapi.models; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +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; + +/** + * Variable is the definition of a variable that is used for composition. A variable is defined as a named expression. + */ +@ApiModel(description = "Variable is the definition of a variable that is used for composition. A variable is defined as a named expression.") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +public class V1Variable { + public static final String SERIALIZED_NAME_EXPRESSION = "expression"; + @SerializedName(SERIALIZED_NAME_EXPRESSION) + private String expression; + + public static final String SERIALIZED_NAME_NAME = "name"; + @SerializedName(SERIALIZED_NAME_NAME) + private String name; + + + public V1Variable expression(String expression) { + + this.expression = expression; + return this; + } + + /** + * 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. + * @return expression + **/ + @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; + } + + + public void setExpression(String expression) { + this.expression = expression; + } + + + public V1Variable name(String name) { + + this.name = name; + return this; + } + + /** + * 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` + * @return name + **/ + @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; + } + + + public void setName(String name) { + this.name = name; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V1Variable v1Variable = (V1Variable) o; + return Objects.equals(this.expression, v1Variable.expression) && + Objects.equals(this.name, v1Variable.name); + } + + @Override + public int hashCode() { + return Objects.hash(expression, name); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class V1Variable {\n"); + sb.append(" expression: ").append(toIndentedString(expression)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} 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 4f7f7f9210..120e3c5d1e 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -37,6 +37,7 @@ import io.kubernetes.client.openapi.models.V1GlusterfsVolumeSource; import io.kubernetes.client.openapi.models.V1HostPathVolumeSource; import io.kubernetes.client.openapi.models.V1ISCSIVolumeSource; +import io.kubernetes.client.openapi.models.V1ImageVolumeSource; import io.kubernetes.client.openapi.models.V1NFSVolumeSource; import io.kubernetes.client.openapi.models.V1PersistentVolumeClaimVolumeSource; import io.kubernetes.client.openapi.models.V1PhotonPersistentDiskVolumeSource; @@ -56,7 +57,7 @@ * Volume represents a named volume in a pod that may be accessed by any container in the pod. */ @ApiModel(description = "Volume represents a named volume in a pod that may be accessed by any container in the pod.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") public class V1Volume { public static final String SERIALIZED_NAME_AWS_ELASTIC_BLOCK_STORE = "awsElasticBlockStore"; @SerializedName(SERIALIZED_NAME_AWS_ELASTIC_BLOCK_STORE) @@ -126,6 +127,10 @@ public class V1Volume { @SerializedName(SERIALIZED_NAME_HOST_PATH) private V1HostPathVolumeSource hostPath; + public static final String SERIALIZED_NAME_IMAGE = "image"; + @SerializedName(SERIALIZED_NAME_IMAGE) + private V1ImageVolumeSource image; + public static final String SERIALIZED_NAME_ISCSI = "iscsi"; @SerializedName(SERIALIZED_NAME_ISCSI) private V1ISCSIVolumeSource iscsi; @@ -570,6 +575,29 @@ public void setHostPath(V1HostPathVolumeSource hostPath) { } + public V1Volume image(V1ImageVolumeSource image) { + + this.image = image; + return this; + } + + /** + * Get image + * @return image + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public V1ImageVolumeSource getImage() { + return image; + } + + + public void setImage(V1ImageVolumeSource image) { + this.image = image; + } + + public V1Volume iscsi(V1ISCSIVolumeSource iscsi) { this.iscsi = iscsi; @@ -894,6 +922,7 @@ public boolean equals(java.lang.Object o) { Objects.equals(this.gitRepo, v1Volume.gitRepo) && Objects.equals(this.glusterfs, v1Volume.glusterfs) && Objects.equals(this.hostPath, v1Volume.hostPath) && + Objects.equals(this.image, v1Volume.image) && Objects.equals(this.iscsi, v1Volume.iscsi) && Objects.equals(this.name, v1Volume.name) && Objects.equals(this.nfs, v1Volume.nfs) && @@ -911,7 +940,7 @@ public boolean equals(java.lang.Object o) { @Override public int hashCode() { - return Objects.hash(awsElasticBlockStore, azureDisk, azureFile, cephfs, cinder, configMap, csi, downwardAPI, emptyDir, ephemeral, fc, flexVolume, flocker, gcePersistentDisk, gitRepo, glusterfs, hostPath, iscsi, name, nfs, persistentVolumeClaim, photonPersistentDisk, portworxVolume, projected, quobyte, rbd, scaleIO, secret, storageos, vsphereVolume); + return Objects.hash(awsElasticBlockStore, azureDisk, azureFile, cephfs, cinder, configMap, csi, downwardAPI, emptyDir, ephemeral, fc, flexVolume, flocker, gcePersistentDisk, gitRepo, glusterfs, hostPath, image, iscsi, name, nfs, persistentVolumeClaim, photonPersistentDisk, portworxVolume, projected, quobyte, rbd, scaleIO, secret, storageos, vsphereVolume); } @@ -936,6 +965,7 @@ public String toString() { sb.append(" gitRepo: ").append(toIndentedString(gitRepo)).append("\n"); sb.append(" glusterfs: ").append(toIndentedString(glusterfs)).append("\n"); sb.append(" hostPath: ").append(toIndentedString(hostPath)).append("\n"); + sb.append(" image: ").append(toIndentedString(image)).append("\n"); sb.append(" iscsi: ").append(toIndentedString(iscsi)).append("\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); sb.append(" nfs: ").append(toIndentedString(nfs)).append("\n"); 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 3a7d08c47f..85211e5ecb 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -30,7 +30,7 @@ * VolumeAttachment captures the intent to attach or detach the specified volume to/from the specified node. VolumeAttachment objects are non-namespaced. */ @ApiModel(description = "VolumeAttachment captures the intent to attach or detach the specified volume to/from the specified node. VolumeAttachment objects are non-namespaced.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") public class V1VolumeAttachment implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) 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 eb3d89f31f..9dc88dc012 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -31,7 +31,7 @@ * VolumeAttachmentList is a collection of VolumeAttachment objects. */ @ApiModel(description = "VolumeAttachmentList is a collection of VolumeAttachment objects.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") public class V1VolumeAttachmentList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) 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 98b7dfd021..87c2774710 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -25,10 +25,10 @@ import java.io.IOException; /** - * 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. + * VolumeAttachmentSource represents a volume that should be attached. Right now only PersistentVolumes can be attached via external attacher, in the future we may allow also inline volumes in pods. Exactly one member can be set. */ -@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.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") +@ApiModel(description = "VolumeAttachmentSource represents a volume that should be attached. Right now only PersistentVolumes can be attached via external attacher, in the future we may allow also inline volumes in pods. Exactly one member can be set.") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") public class V1VolumeAttachmentSource { public static final String SERIALIZED_NAME_INLINE_VOLUME_SPEC = "inlineVolumeSpec"; @SerializedName(SERIALIZED_NAME_INLINE_VOLUME_SPEC) 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 31a4da0554..b2cd66ebc0 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -28,7 +28,7 @@ * VolumeAttachmentSpec is the specification of a VolumeAttachment request. */ @ApiModel(description = "VolumeAttachmentSpec is the specification of a VolumeAttachment request.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") public class V1VolumeAttachmentSpec { public static final String SERIALIZED_NAME_ATTACHER = "attacher"; @SerializedName(SERIALIZED_NAME_ATTACHER) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttachmentStatus.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttachmentStatus.java index 71d7343f9d..ab263cca80 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -31,7 +31,7 @@ * VolumeAttachmentStatus is the status of a VolumeAttachment request. */ @ApiModel(description = "VolumeAttachmentStatus is the status of a VolumeAttachment request.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") public class V1VolumeAttachmentStatus { public static final String SERIALIZED_NAME_ATTACH_ERROR = "attachError"; @SerializedName(SERIALIZED_NAME_ATTACH_ERROR) 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 54df2108c7..82a0329487 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -27,7 +27,7 @@ * volumeDevice describes a mapping of a raw block device within a container. */ @ApiModel(description = "volumeDevice describes a mapping of a raw block device within a container.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") public class V1VolumeDevice { public static final String SERIALIZED_NAME_DEVICE_PATH = "devicePath"; @SerializedName(SERIALIZED_NAME_DEVICE_PATH) 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 03dc8c7527..afdd5bc0fa 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,8 +28,12 @@ * VolumeError captures an error encountered during a volume operation. */ @ApiModel(description = "VolumeError captures an error encountered during a volume operation.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") public class V1VolumeError { + public static final String SERIALIZED_NAME_ERROR_CODE = "errorCode"; + @SerializedName(SERIALIZED_NAME_ERROR_CODE) + private Integer errorCode; + public static final String SERIALIZED_NAME_MESSAGE = "message"; @SerializedName(SERIALIZED_NAME_MESSAGE) private String message; @@ -39,6 +43,29 @@ public class V1VolumeError { private OffsetDateTime time; + public V1VolumeError errorCode(Integer errorCode) { + + this.errorCode = errorCode; + return this; + } + + /** + * errorCode is a numeric gRPC code representing the error encountered during Attach or Detach operations. This is an optional, alpha field that requires the MutableCSINodeAllocatableCount feature gate being enabled to be set. + * @return errorCode + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "errorCode is a numeric gRPC code representing the error encountered during Attach or Detach operations. This is an optional, alpha field that requires the MutableCSINodeAllocatableCount feature gate being enabled to be set.") + + public Integer getErrorCode() { + return errorCode; + } + + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public V1VolumeError message(String message) { this.message = message; @@ -94,13 +121,14 @@ public boolean equals(java.lang.Object o) { return false; } V1VolumeError v1VolumeError = (V1VolumeError) o; - return Objects.equals(this.message, v1VolumeError.message) && + return Objects.equals(this.errorCode, v1VolumeError.errorCode) && + Objects.equals(this.message, v1VolumeError.message) && Objects.equals(this.time, v1VolumeError.time); } @Override public int hashCode() { - return Objects.hash(message, time); + return Objects.hash(errorCode, message, time); } @@ -108,6 +136,7 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1VolumeError {\n"); + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); sb.append(" message: ").append(toIndentedString(message)).append("\n"); sb.append(" time: ").append(toIndentedString(time)).append("\n"); sb.append("}"); 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 035cc0df0b..e6c80e90ca 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -27,7 +27,7 @@ * VolumeMount describes a mounting of a Volume within a container. */ @ApiModel(description = "VolumeMount describes a mounting of a Volume within a container.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") public class V1VolumeMount { public static final String SERIALIZED_NAME_MOUNT_PATH = "mountPath"; @SerializedName(SERIALIZED_NAME_MOUNT_PATH) @@ -45,6 +45,10 @@ public class V1VolumeMount { @SerializedName(SERIALIZED_NAME_READ_ONLY) private Boolean readOnly; + public static final String SERIALIZED_NAME_RECURSIVE_READ_ONLY = "recursiveReadOnly"; + @SerializedName(SERIALIZED_NAME_RECURSIVE_READ_ONLY) + private String recursiveReadOnly; + public static final String SERIALIZED_NAME_SUB_PATH = "subPath"; @SerializedName(SERIALIZED_NAME_SUB_PATH) private String subPath; @@ -83,11 +87,11 @@ public V1VolumeMount mountPropagation(String mountPropagation) { } /** - * 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. + * 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). * @return mountPropagation **/ @javax.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.") + @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; @@ -144,6 +148,29 @@ public void setReadOnly(Boolean readOnly) { } + public V1VolumeMount recursiveReadOnly(String recursiveReadOnly) { + + this.recursiveReadOnly = recursiveReadOnly; + return this; + } + + /** + * 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. + * @return recursiveReadOnly + **/ + @javax.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; + } + + + public void setRecursiveReadOnly(String recursiveReadOnly) { + this.recursiveReadOnly = recursiveReadOnly; + } + + public V1VolumeMount subPath(String subPath) { this.subPath = subPath; @@ -203,13 +230,14 @@ public boolean equals(java.lang.Object o) { Objects.equals(this.mountPropagation, v1VolumeMount.mountPropagation) && Objects.equals(this.name, v1VolumeMount.name) && Objects.equals(this.readOnly, v1VolumeMount.readOnly) && + Objects.equals(this.recursiveReadOnly, v1VolumeMount.recursiveReadOnly) && Objects.equals(this.subPath, v1VolumeMount.subPath) && Objects.equals(this.subPathExpr, v1VolumeMount.subPathExpr); } @Override public int hashCode() { - return Objects.hash(mountPath, mountPropagation, name, readOnly, subPath, subPathExpr); + return Objects.hash(mountPath, mountPropagation, name, readOnly, recursiveReadOnly, subPath, subPathExpr); } @@ -221,6 +249,7 @@ public String toString() { sb.append(" mountPropagation: ").append(toIndentedString(mountPropagation)).append("\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); sb.append(" readOnly: ").append(toIndentedString(readOnly)).append("\n"); + sb.append(" recursiveReadOnly: ").append(toIndentedString(recursiveReadOnly)).append("\n"); sb.append(" subPath: ").append(toIndentedString(subPath)).append("\n"); sb.append(" subPathExpr: ").append(toIndentedString(subPathExpr)).append("\n"); sb.append("}"); 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 new file mode 100644 index 0000000000..bdeb875cca --- /dev/null +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1VolumeMountStatus.java @@ -0,0 +1,183 @@ +/* +Copyright 2025 The Kubernetes Authors. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at +http://www.apache.org/licenses/LICENSE-2.0 +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ +package io.kubernetes.client.openapi.models; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +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; + +/** + * VolumeMountStatus shows status of volume mounts. + */ +@ApiModel(description = "VolumeMountStatus shows status of volume mounts.") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +public class V1VolumeMountStatus { + public static final String SERIALIZED_NAME_MOUNT_PATH = "mountPath"; + @SerializedName(SERIALIZED_NAME_MOUNT_PATH) + private String mountPath; + + public static final String SERIALIZED_NAME_NAME = "name"; + @SerializedName(SERIALIZED_NAME_NAME) + private String name; + + public static final String SERIALIZED_NAME_READ_ONLY = "readOnly"; + @SerializedName(SERIALIZED_NAME_READ_ONLY) + private Boolean readOnly; + + public static final String SERIALIZED_NAME_RECURSIVE_READ_ONLY = "recursiveReadOnly"; + @SerializedName(SERIALIZED_NAME_RECURSIVE_READ_ONLY) + private String recursiveReadOnly; + + + public V1VolumeMountStatus mountPath(String mountPath) { + + this.mountPath = mountPath; + return this; + } + + /** + * MountPath corresponds to the original VolumeMount. + * @return mountPath + **/ + @ApiModelProperty(required = true, value = "MountPath corresponds to the original VolumeMount.") + + public String getMountPath() { + return mountPath; + } + + + public void setMountPath(String mountPath) { + this.mountPath = mountPath; + } + + + public V1VolumeMountStatus name(String name) { + + this.name = name; + return this; + } + + /** + * Name corresponds to the name of the original VolumeMount. + * @return name + **/ + @ApiModelProperty(required = true, value = "Name corresponds to the name of the original VolumeMount.") + + public String getName() { + return name; + } + + + public void setName(String name) { + this.name = name; + } + + + public V1VolumeMountStatus readOnly(Boolean readOnly) { + + this.readOnly = readOnly; + return this; + } + + /** + * ReadOnly corresponds to the original VolumeMount. + * @return readOnly + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "ReadOnly corresponds to the original VolumeMount.") + + public Boolean getReadOnly() { + return readOnly; + } + + + public void setReadOnly(Boolean readOnly) { + this.readOnly = readOnly; + } + + + public V1VolumeMountStatus recursiveReadOnly(String recursiveReadOnly) { + + this.recursiveReadOnly = recursiveReadOnly; + return this; + } + + /** + * 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. + * @return recursiveReadOnly + **/ + @javax.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; + } + + + public void setRecursiveReadOnly(String recursiveReadOnly) { + this.recursiveReadOnly = recursiveReadOnly; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V1VolumeMountStatus v1VolumeMountStatus = (V1VolumeMountStatus) o; + return Objects.equals(this.mountPath, v1VolumeMountStatus.mountPath) && + Objects.equals(this.name, v1VolumeMountStatus.name) && + Objects.equals(this.readOnly, v1VolumeMountStatus.readOnly) && + Objects.equals(this.recursiveReadOnly, v1VolumeMountStatus.recursiveReadOnly); + } + + @Override + public int hashCode() { + return Objects.hash(mountPath, name, readOnly, recursiveReadOnly); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class V1VolumeMountStatus {\n"); + sb.append(" mountPath: ").append(toIndentedString(mountPath)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" readOnly: ").append(toIndentedString(readOnly)).append("\n"); + sb.append(" recursiveReadOnly: ").append(toIndentedString(recursiveReadOnly)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} 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 2bfc38e728..af44f24343 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -28,7 +28,7 @@ * VolumeNodeAffinity defines constraints that limit what nodes this volume can be accessed from. */ @ApiModel(description = "VolumeNodeAffinity defines constraints that limit what nodes this volume can be accessed from.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") public class V1VolumeNodeAffinity { public static final String SERIALIZED_NAME_REQUIRED = "required"; @SerializedName(SERIALIZED_NAME_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 cb24dd798f..2d181c9c38 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -27,7 +27,7 @@ * VolumeNodeResources is a set of resource limits for scheduling of volumes. */ @ApiModel(description = "VolumeNodeResources is a set of resource limits for scheduling of volumes.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") public class V1VolumeNodeResources { public static final String SERIALIZED_NAME_COUNT = "count"; @SerializedName(SERIALIZED_NAME_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 1e2162f710..ec87b8091d 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,7 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.openapi.models.V1ClusterTrustBundleProjection; import io.kubernetes.client.openapi.models.V1ConfigMapProjection; import io.kubernetes.client.openapi.models.V1DownwardAPIProjection; import io.kubernetes.client.openapi.models.V1SecretProjection; @@ -28,11 +29,15 @@ import java.io.IOException; /** - * Projection that may be projected along with other supported volume types + * Projection that may be projected along with other supported volume types. Exactly one of these fields must be set. */ -@ApiModel(description = "Projection that may be projected along with other supported volume types") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") +@ApiModel(description = "Projection that may be projected along with other supported volume types. Exactly one of these fields must be set.") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") public class V1VolumeProjection { + public static final String SERIALIZED_NAME_CLUSTER_TRUST_BUNDLE = "clusterTrustBundle"; + @SerializedName(SERIALIZED_NAME_CLUSTER_TRUST_BUNDLE) + private V1ClusterTrustBundleProjection clusterTrustBundle; + public static final String SERIALIZED_NAME_CONFIG_MAP = "configMap"; @SerializedName(SERIALIZED_NAME_CONFIG_MAP) private V1ConfigMapProjection configMap; @@ -50,6 +55,29 @@ public class V1VolumeProjection { private V1ServiceAccountTokenProjection serviceAccountToken; + public V1VolumeProjection clusterTrustBundle(V1ClusterTrustBundleProjection clusterTrustBundle) { + + this.clusterTrustBundle = clusterTrustBundle; + return this; + } + + /** + * Get clusterTrustBundle + * @return clusterTrustBundle + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public V1ClusterTrustBundleProjection getClusterTrustBundle() { + return clusterTrustBundle; + } + + + public void setClusterTrustBundle(V1ClusterTrustBundleProjection clusterTrustBundle) { + this.clusterTrustBundle = clusterTrustBundle; + } + + public V1VolumeProjection configMap(V1ConfigMapProjection configMap) { this.configMap = configMap; @@ -151,7 +179,8 @@ public boolean equals(java.lang.Object o) { return false; } V1VolumeProjection v1VolumeProjection = (V1VolumeProjection) o; - return Objects.equals(this.configMap, v1VolumeProjection.configMap) && + return Objects.equals(this.clusterTrustBundle, v1VolumeProjection.clusterTrustBundle) && + Objects.equals(this.configMap, v1VolumeProjection.configMap) && Objects.equals(this.downwardAPI, v1VolumeProjection.downwardAPI) && Objects.equals(this.secret, v1VolumeProjection.secret) && Objects.equals(this.serviceAccountToken, v1VolumeProjection.serviceAccountToken); @@ -159,7 +188,7 @@ public boolean equals(java.lang.Object o) { @Override public int hashCode() { - return Objects.hash(configMap, downwardAPI, secret, serviceAccountToken); + return Objects.hash(clusterTrustBundle, configMap, downwardAPI, secret, serviceAccountToken); } @@ -167,6 +196,7 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1VolumeProjection {\n"); + sb.append(" clusterTrustBundle: ").append(toIndentedString(clusterTrustBundle)).append("\n"); sb.append(" configMap: ").append(toIndentedString(configMap)).append("\n"); sb.append(" downwardAPI: ").append(toIndentedString(downwardAPI)).append("\n"); sb.append(" secret: ").append(toIndentedString(secret)).append("\n"); 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 new file mode 100644 index 0000000000..cf0d95147b --- /dev/null +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1VolumeResourceRequirements.java @@ -0,0 +1,147 @@ +/* +Copyright 2025 The Kubernetes Authors. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at +http://www.apache.org/licenses/LICENSE-2.0 +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ +package io.kubernetes.client.openapi.models; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +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.HashMap; +import java.util.List; +import java.util.Map; + +/** + * VolumeResourceRequirements describes the storage resource requirements for a volume. + */ +@ApiModel(description = "VolumeResourceRequirements describes the storage resource requirements for a volume.") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +public class V1VolumeResourceRequirements { + public static final String SERIALIZED_NAME_LIMITS = "limits"; + @SerializedName(SERIALIZED_NAME_LIMITS) + private Map limits = null; + + public static final String SERIALIZED_NAME_REQUESTS = "requests"; + @SerializedName(SERIALIZED_NAME_REQUESTS) + private Map requests = null; + + + public V1VolumeResourceRequirements limits(Map limits) { + + this.limits = limits; + return this; + } + + public V1VolumeResourceRequirements putLimitsItem(String key, Quantity limitsItem) { + if (this.limits == null) { + this.limits = new HashMap<>(); + } + this.limits.put(key, limitsItem); + return this; + } + + /** + * Limits describes the maximum amount of compute resources allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/ + * @return limits + **/ + @javax.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; + } + + + public void setLimits(Map limits) { + this.limits = limits; + } + + + public V1VolumeResourceRequirements requests(Map requests) { + + this.requests = requests; + return this; + } + + public V1VolumeResourceRequirements putRequestsItem(String key, Quantity requestsItem) { + if (this.requests == null) { + this.requests = new HashMap<>(); + } + this.requests.put(key, requestsItem); + return this; + } + + /** + * 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/ + * @return requests + **/ + @javax.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; + } + + + public void setRequests(Map requests) { + this.requests = requests; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V1VolumeResourceRequirements v1VolumeResourceRequirements = (V1VolumeResourceRequirements) o; + return Objects.equals(this.limits, v1VolumeResourceRequirements.limits) && + Objects.equals(this.requests, v1VolumeResourceRequirements.requests); + } + + @Override + public int hashCode() { + return Objects.hash(limits, requests); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class V1VolumeResourceRequirements {\n"); + sb.append(" limits: ").append(toIndentedString(limits)).append("\n"); + sb.append(" requests: ").append(toIndentedString(requests)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} 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 daaac3ea0c..3cdf59d331 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -27,7 +27,7 @@ * Represents a vSphere volume resource. */ @ApiModel(description = "Represents a vSphere volume resource.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") public class V1VsphereVirtualDiskVolumeSource { public static final String SERIALIZED_NAME_FS_TYPE = "fsType"; @SerializedName(SERIALIZED_NAME_FS_TYPE) 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 093254d4fd..9f08172185 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -27,7 +27,7 @@ * Event represents a single event to a watched resource. */ @ApiModel(description = "Event represents a single event to a watched resource.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") public class V1WatchEvent { public static final String SERIALIZED_NAME_OBJECT = "object"; @SerializedName(SERIALIZED_NAME_OBJECT) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1WebhookConversion.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1WebhookConversion.java index 78f0dad7ea..4d3d6d6ac8 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -30,7 +30,7 @@ * WebhookConversion describes how to call a conversion webhook */ @ApiModel(description = "WebhookConversion describes how to call a conversion webhook") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") public class V1WebhookConversion { public static final String SERIALIZED_NAME_CLIENT_CONFIG = "clientConfig"; @SerializedName(SERIALIZED_NAME_CLIENT_CONFIG) 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 ea57333441..060592af95 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -28,7 +28,7 @@ * The weights of all of the matched WeightedPodAffinityTerm fields are added per-node to find the most preferred node(s) */ @ApiModel(description = "The weights of all of the matched WeightedPodAffinityTerm fields are added per-node to find the most preferred node(s)") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") public class V1WeightedPodAffinityTerm { public static final String SERIALIZED_NAME_POD_AFFINITY_TERM = "podAffinityTerm"; @SerializedName(SERIALIZED_NAME_POD_AFFINITY_TERM) 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 66adaaac81..ce07028a2b 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -27,7 +27,7 @@ * WindowsSecurityContextOptions contain Windows-specific options and credentials. */ @ApiModel(description = "WindowsSecurityContextOptions contain Windows-specific options and credentials.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") public class V1WindowsSecurityContextOptions { public static final String SERIALIZED_NAME_GMSA_CREDENTIAL_SPEC = "gmsaCredentialSpec"; @SerializedName(SERIALIZED_NAME_GMSA_CREDENTIAL_SPEC) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ApplyConfiguration.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ApplyConfiguration.java new file mode 100644 index 0000000000..1080a508ee --- /dev/null +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ApplyConfiguration.java @@ -0,0 +1,98 @@ +/* +Copyright 2025 The Kubernetes Authors. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at +http://www.apache.org/licenses/LICENSE-2.0 +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ +package io.kubernetes.client.openapi.models; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +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; + +/** + * ApplyConfiguration defines the desired configuration values of an object. + */ +@ApiModel(description = "ApplyConfiguration defines the desired configuration values of an object.") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +public class V1alpha1ApplyConfiguration { + public static final String SERIALIZED_NAME_EXPRESSION = "expression"; + @SerializedName(SERIALIZED_NAME_EXPRESSION) + private String expression; + + + public V1alpha1ApplyConfiguration expression(String expression) { + + this.expression = expression; + return this; + } + + /** + * expression will be evaluated by CEL to create an apply configuration. ref: https://github.com/google/cel-spec Apply configurations are declared in CEL using object initialization. For example, this CEL expression returns an apply configuration to set a single field: Object{ spec: Object.spec{ serviceAccountName: \"example\" } } Apply configurations may not modify atomic structs, maps or arrays due to the risk of accidental deletion of values not included in the apply configuration. CEL expressions have access to the object types needed to create apply configurations: - 'Object' - CEL type of the resource object. - 'Object.<fieldName>' - CEL type of object field (such as 'Object.spec') - 'Object.<fieldName1>.<fieldName2>...<fieldNameN>` - CEL type of nested field (such as 'Object.spec.containers') CEL expressions have access to the contents of the API request, 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. Required. + * @return expression + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "expression will be evaluated by CEL to create an apply configuration. ref: https://github.com/google/cel-spec Apply configurations are declared in CEL using object initialization. For example, this CEL expression returns an apply configuration to set a single field: Object{ spec: Object.spec{ serviceAccountName: \"example\" } } Apply configurations may not modify atomic structs, maps or arrays due to the risk of accidental deletion of values not included in the apply configuration. CEL expressions have access to the object types needed to create apply configurations: - 'Object' - CEL type of the resource object. - 'Object.' - CEL type of object field (such as 'Object.spec') - 'Object.....` - CEL type of nested field (such as 'Object.spec.containers') CEL expressions have access to the contents of the API request, 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. Required.") + + public String getExpression() { + return expression; + } + + + public void setExpression(String expression) { + this.expression = expression; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V1alpha1ApplyConfiguration v1alpha1ApplyConfiguration = (V1alpha1ApplyConfiguration) o; + return Objects.equals(this.expression, v1alpha1ApplyConfiguration.expression); + } + + @Override + public int hashCode() { + return Objects.hash(expression); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class V1alpha1ApplyConfiguration {\n"); + sb.append(" expression: ").append(toIndentedString(expression)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} 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 deleted file mode 100644 index a2671461bf..0000000000 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1AuditAnnotation.java +++ /dev/null @@ -1,125 +0,0 @@ -/* -Copyright 2023 The Kubernetes Authors. -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at -http://www.apache.org/licenses/LICENSE-2.0 -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ -package io.kubernetes.client.openapi.models; - -import java.util.Objects; -import java.util.Arrays; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -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; - -/** - * AuditAnnotation describes how to produce an audit annotation for an API request. - */ -@ApiModel(description = "AuditAnnotation describes how to produce an audit annotation for an API request.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") -public class V1alpha1AuditAnnotation { - public static final String SERIALIZED_NAME_KEY = "key"; - @SerializedName(SERIALIZED_NAME_KEY) - private String key; - - public static final String SERIALIZED_NAME_VALUE_EXPRESSION = "valueExpression"; - @SerializedName(SERIALIZED_NAME_VALUE_EXPRESSION) - private String valueExpression; - - - public V1alpha1AuditAnnotation key(String key) { - - this.key = key; - return this; - } - - /** - * 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. - * @return key - **/ - @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; - } - - - public void setKey(String key) { - this.key = key; - } - - - public V1alpha1AuditAnnotation valueExpression(String valueExpression) { - - this.valueExpression = valueExpression; - return this; - } - - /** - * 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. - * @return valueExpression - **/ - @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; - } - - - public void setValueExpression(String valueExpression) { - this.valueExpression = valueExpression; - } - - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1alpha1AuditAnnotation v1alpha1AuditAnnotation = (V1alpha1AuditAnnotation) o; - return Objects.equals(this.key, v1alpha1AuditAnnotation.key) && - Objects.equals(this.valueExpression, v1alpha1AuditAnnotation.valueExpression); - } - - @Override - public int hashCode() { - return Objects.hash(key, valueExpression); - } - - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class V1alpha1AuditAnnotation {\n"); - sb.append(" key: ").append(toIndentedString(key)).append("\n"); - sb.append(" valueExpression: ").append(toIndentedString(valueExpression)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(java.lang.Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - -} diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ClusterCIDR.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ClusterCIDR.java deleted file mode 100644 index a9196cfa37..0000000000 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ClusterCIDR.java +++ /dev/null @@ -1,187 +0,0 @@ -/* -Copyright 2023 The Kubernetes Authors. -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at -http://www.apache.org/licenses/LICENSE-2.0 -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ -package io.kubernetes.client.openapi.models; - -import java.util.Objects; -import java.util.Arrays; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.kubernetes.client.openapi.models.V1ObjectMeta; -import io.kubernetes.client.openapi.models.V1alpha1ClusterCIDRSpec; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import java.io.IOException; - -/** - * ClusterCIDR represents a single configuration for per-Node Pod CIDR allocations when the MultiCIDRRangeAllocator is enabled (see the config for kube-controller-manager). A cluster may have any number of ClusterCIDR resources, all of which will be considered when allocating a CIDR for a Node. A ClusterCIDR is eligible to be used for a given Node when the node selector matches the node in question and has free CIDRs to allocate. In case of multiple matching ClusterCIDR resources, the allocator will attempt to break ties using internal heuristics, but any ClusterCIDR whose node selector matches the Node may be used. - */ -@ApiModel(description = "ClusterCIDR represents a single configuration for per-Node Pod CIDR allocations when the MultiCIDRRangeAllocator is enabled (see the config for kube-controller-manager). A cluster may have any number of ClusterCIDR resources, all of which will be considered when allocating a CIDR for a Node. A ClusterCIDR is eligible to be used for a given Node when the node selector matches the node in question and has free CIDRs to allocate. In case of multiple matching ClusterCIDR resources, the allocator will attempt to break ties using internal heuristics, but any ClusterCIDR whose node selector matches the Node may be used.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") -public class V1alpha1ClusterCIDR implements io.kubernetes.client.common.KubernetesObject { - public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; - @SerializedName(SERIALIZED_NAME_API_VERSION) - private String apiVersion; - - public static final String SERIALIZED_NAME_KIND = "kind"; - @SerializedName(SERIALIZED_NAME_KIND) - private String kind; - - public static final String SERIALIZED_NAME_METADATA = "metadata"; - @SerializedName(SERIALIZED_NAME_METADATA) - private V1ObjectMeta metadata; - - public static final String SERIALIZED_NAME_SPEC = "spec"; - @SerializedName(SERIALIZED_NAME_SPEC) - private V1alpha1ClusterCIDRSpec spec; - - - public V1alpha1ClusterCIDR apiVersion(String apiVersion) { - - this.apiVersion = apiVersion; - return this; - } - - /** - * 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 - * @return apiVersion - **/ - @javax.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; - } - - - public void setApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - } - - - public V1alpha1ClusterCIDR kind(String kind) { - - this.kind = kind; - return this; - } - - /** - * 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 - * @return kind - **/ - @javax.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; - } - - - public void setKind(String kind) { - this.kind = kind; - } - - - public V1alpha1ClusterCIDR metadata(V1ObjectMeta metadata) { - - this.metadata = metadata; - return this; - } - - /** - * Get metadata - * @return metadata - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public V1ObjectMeta getMetadata() { - return metadata; - } - - - public void setMetadata(V1ObjectMeta metadata) { - this.metadata = metadata; - } - - - public V1alpha1ClusterCIDR spec(V1alpha1ClusterCIDRSpec spec) { - - this.spec = spec; - return this; - } - - /** - * Get spec - * @return spec - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public V1alpha1ClusterCIDRSpec getSpec() { - return spec; - } - - - public void setSpec(V1alpha1ClusterCIDRSpec spec) { - this.spec = spec; - } - - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1alpha1ClusterCIDR v1alpha1ClusterCIDR = (V1alpha1ClusterCIDR) o; - return Objects.equals(this.apiVersion, v1alpha1ClusterCIDR.apiVersion) && - Objects.equals(this.kind, v1alpha1ClusterCIDR.kind) && - Objects.equals(this.metadata, v1alpha1ClusterCIDR.metadata) && - Objects.equals(this.spec, v1alpha1ClusterCIDR.spec); - } - - @Override - public int hashCode() { - return Objects.hash(apiVersion, kind, metadata, spec); - } - - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class V1alpha1ClusterCIDR {\n"); - sb.append(" apiVersion: ").append(toIndentedString(apiVersion)).append("\n"); - sb.append(" kind: ").append(toIndentedString(kind)).append("\n"); - sb.append(" metadata: ").append(toIndentedString(metadata)).append("\n"); - sb.append(" spec: ").append(toIndentedString(spec)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(java.lang.Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - -} diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ClusterCIDRList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ClusterCIDRList.java deleted file mode 100644 index fe1cf3526d..0000000000 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ClusterCIDRList.java +++ /dev/null @@ -1,193 +0,0 @@ -/* -Copyright 2023 The Kubernetes Authors. -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at -http://www.apache.org/licenses/LICENSE-2.0 -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ -package io.kubernetes.client.openapi.models; - -import java.util.Objects; -import java.util.Arrays; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.kubernetes.client.openapi.models.V1ListMeta; -import io.kubernetes.client.openapi.models.V1alpha1ClusterCIDR; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import java.io.IOException; -import java.util.ArrayList; -import java.util.List; - -/** - * ClusterCIDRList contains a list of ClusterCIDR. - */ -@ApiModel(description = "ClusterCIDRList contains a list of ClusterCIDR.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") -public class V1alpha1ClusterCIDRList implements io.kubernetes.client.common.KubernetesListObject { - public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; - @SerializedName(SERIALIZED_NAME_API_VERSION) - private String apiVersion; - - public static final String SERIALIZED_NAME_ITEMS = "items"; - @SerializedName(SERIALIZED_NAME_ITEMS) - private List items = new ArrayList<>(); - - public static final String SERIALIZED_NAME_KIND = "kind"; - @SerializedName(SERIALIZED_NAME_KIND) - private String kind; - - public static final String SERIALIZED_NAME_METADATA = "metadata"; - @SerializedName(SERIALIZED_NAME_METADATA) - private V1ListMeta metadata; - - - public V1alpha1ClusterCIDRList apiVersion(String apiVersion) { - - this.apiVersion = apiVersion; - return this; - } - - /** - * 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 - * @return apiVersion - **/ - @javax.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; - } - - - public void setApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - } - - - public V1alpha1ClusterCIDRList items(List items) { - - this.items = items; - return this; - } - - public V1alpha1ClusterCIDRList addItemsItem(V1alpha1ClusterCIDR itemsItem) { - this.items.add(itemsItem); - return this; - } - - /** - * items is the list of ClusterCIDRs. - * @return items - **/ - @ApiModelProperty(required = true, value = "items is the list of ClusterCIDRs.") - - public List getItems() { - return items; - } - - - public void setItems(List items) { - this.items = items; - } - - - public V1alpha1ClusterCIDRList kind(String kind) { - - this.kind = kind; - return this; - } - - /** - * 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 - * @return kind - **/ - @javax.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; - } - - - public void setKind(String kind) { - this.kind = kind; - } - - - public V1alpha1ClusterCIDRList metadata(V1ListMeta metadata) { - - this.metadata = metadata; - return this; - } - - /** - * Get metadata - * @return metadata - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public V1ListMeta getMetadata() { - return metadata; - } - - - public void setMetadata(V1ListMeta metadata) { - this.metadata = metadata; - } - - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1alpha1ClusterCIDRList v1alpha1ClusterCIDRList = (V1alpha1ClusterCIDRList) o; - return Objects.equals(this.apiVersion, v1alpha1ClusterCIDRList.apiVersion) && - Objects.equals(this.items, v1alpha1ClusterCIDRList.items) && - Objects.equals(this.kind, v1alpha1ClusterCIDRList.kind) && - Objects.equals(this.metadata, v1alpha1ClusterCIDRList.metadata); - } - - @Override - public int hashCode() { - return Objects.hash(apiVersion, items, kind, metadata); - } - - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class V1alpha1ClusterCIDRList {\n"); - sb.append(" apiVersion: ").append(toIndentedString(apiVersion)).append("\n"); - sb.append(" items: ").append(toIndentedString(items)).append("\n"); - sb.append(" kind: ").append(toIndentedString(kind)).append("\n"); - sb.append(" metadata: ").append(toIndentedString(metadata)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(java.lang.Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - -} diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ClusterCIDRSpec.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ClusterCIDRSpec.java deleted file mode 100644 index 8b06348da0..0000000000 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ClusterCIDRSpec.java +++ /dev/null @@ -1,185 +0,0 @@ -/* -Copyright 2023 The Kubernetes Authors. -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at -http://www.apache.org/licenses/LICENSE-2.0 -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ -package io.kubernetes.client.openapi.models; - -import java.util.Objects; -import java.util.Arrays; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -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; - -/** - * ClusterCIDRSpec defines the desired state of ClusterCIDR. - */ -@ApiModel(description = "ClusterCIDRSpec defines the desired state of ClusterCIDR.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") -public class V1alpha1ClusterCIDRSpec { - public static final String SERIALIZED_NAME_IPV4 = "ipv4"; - @SerializedName(SERIALIZED_NAME_IPV4) - private String ipv4; - - public static final String SERIALIZED_NAME_IPV6 = "ipv6"; - @SerializedName(SERIALIZED_NAME_IPV6) - private String ipv6; - - public static final String SERIALIZED_NAME_NODE_SELECTOR = "nodeSelector"; - @SerializedName(SERIALIZED_NAME_NODE_SELECTOR) - private V1NodeSelector nodeSelector; - - public static final String SERIALIZED_NAME_PER_NODE_HOST_BITS = "perNodeHostBits"; - @SerializedName(SERIALIZED_NAME_PER_NODE_HOST_BITS) - private Integer perNodeHostBits; - - - public V1alpha1ClusterCIDRSpec ipv4(String ipv4) { - - this.ipv4 = ipv4; - return this; - } - - /** - * ipv4 defines an IPv4 IP block in CIDR notation(e.g. \"10.0.0.0/8\"). At least one of ipv4 and ipv6 must be specified. This field is immutable. - * @return ipv4 - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "ipv4 defines an IPv4 IP block in CIDR notation(e.g. \"10.0.0.0/8\"). At least one of ipv4 and ipv6 must be specified. This field is immutable.") - - public String getIpv4() { - return ipv4; - } - - - public void setIpv4(String ipv4) { - this.ipv4 = ipv4; - } - - - public V1alpha1ClusterCIDRSpec ipv6(String ipv6) { - - this.ipv6 = ipv6; - return this; - } - - /** - * ipv6 defines an IPv6 IP block in CIDR notation(e.g. \"2001:db8::/64\"). At least one of ipv4 and ipv6 must be specified. This field is immutable. - * @return ipv6 - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "ipv6 defines an IPv6 IP block in CIDR notation(e.g. \"2001:db8::/64\"). At least one of ipv4 and ipv6 must be specified. This field is immutable.") - - public String getIpv6() { - return ipv6; - } - - - public void setIpv6(String ipv6) { - this.ipv6 = ipv6; - } - - - public V1alpha1ClusterCIDRSpec nodeSelector(V1NodeSelector nodeSelector) { - - this.nodeSelector = nodeSelector; - return this; - } - - /** - * Get nodeSelector - * @return nodeSelector - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public V1NodeSelector getNodeSelector() { - return nodeSelector; - } - - - public void setNodeSelector(V1NodeSelector nodeSelector) { - this.nodeSelector = nodeSelector; - } - - - public V1alpha1ClusterCIDRSpec perNodeHostBits(Integer perNodeHostBits) { - - this.perNodeHostBits = perNodeHostBits; - return this; - } - - /** - * perNodeHostBits defines the number of host bits to be configured per node. A subnet mask determines how much of the address is used for network bits and host bits. For example an IPv4 address of 192.168.0.0/24, splits the address into 24 bits for the network portion and 8 bits for the host portion. To allocate 256 IPs, set this field to 8 (a /24 mask for IPv4 or a /120 for IPv6). Minimum value is 4 (16 IPs). This field is immutable. - * @return perNodeHostBits - **/ - @ApiModelProperty(required = true, value = "perNodeHostBits defines the number of host bits to be configured per node. A subnet mask determines how much of the address is used for network bits and host bits. For example an IPv4 address of 192.168.0.0/24, splits the address into 24 bits for the network portion and 8 bits for the host portion. To allocate 256 IPs, set this field to 8 (a /24 mask for IPv4 or a /120 for IPv6). Minimum value is 4 (16 IPs). This field is immutable.") - - public Integer getPerNodeHostBits() { - return perNodeHostBits; - } - - - public void setPerNodeHostBits(Integer perNodeHostBits) { - this.perNodeHostBits = perNodeHostBits; - } - - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1alpha1ClusterCIDRSpec v1alpha1ClusterCIDRSpec = (V1alpha1ClusterCIDRSpec) o; - return Objects.equals(this.ipv4, v1alpha1ClusterCIDRSpec.ipv4) && - Objects.equals(this.ipv6, v1alpha1ClusterCIDRSpec.ipv6) && - Objects.equals(this.nodeSelector, v1alpha1ClusterCIDRSpec.nodeSelector) && - Objects.equals(this.perNodeHostBits, v1alpha1ClusterCIDRSpec.perNodeHostBits); - } - - @Override - public int hashCode() { - return Objects.hash(ipv4, ipv6, nodeSelector, perNodeHostBits); - } - - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class V1alpha1ClusterCIDRSpec {\n"); - sb.append(" ipv4: ").append(toIndentedString(ipv4)).append("\n"); - sb.append(" ipv6: ").append(toIndentedString(ipv6)).append("\n"); - sb.append(" nodeSelector: ").append(toIndentedString(nodeSelector)).append("\n"); - sb.append(" perNodeHostBits: ").append(toIndentedString(perNodeHostBits)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(java.lang.Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - -} 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 12e5b86239..f5a87f5041 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -29,7 +29,7 @@ * 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. */ @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.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") public class V1alpha1ClusterTrustBundle implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) 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 6b8e39aae2..9ba53654a6 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -31,7 +31,7 @@ * ClusterTrustBundleList is a collection of ClusterTrustBundle objects */ @ApiModel(description = "ClusterTrustBundleList is a collection of ClusterTrustBundle objects") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") public class V1alpha1ClusterTrustBundleList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) 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 ac8752e622..563954289d 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -27,7 +27,7 @@ * ClusterTrustBundleSpec contains the signer and trust anchors. */ @ApiModel(description = "ClusterTrustBundleSpec contains the signer and trust anchors.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") public class V1alpha1ClusterTrustBundleSpec { public static final String SERIALIZED_NAME_SIGNER_NAME = "signerName"; @SerializedName(SERIALIZED_NAME_SIGNER_NAME) 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 deleted file mode 100644 index 5c2a3e042d..0000000000 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ExpressionWarning.java +++ /dev/null @@ -1,125 +0,0 @@ -/* -Copyright 2023 The Kubernetes Authors. -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at -http://www.apache.org/licenses/LICENSE-2.0 -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ -package io.kubernetes.client.openapi.models; - -import java.util.Objects; -import java.util.Arrays; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -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; - -/** - * ExpressionWarning is a warning information that targets a specific expression. - */ -@ApiModel(description = "ExpressionWarning is a warning information that targets a specific expression.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") -public class V1alpha1ExpressionWarning { - public static final String SERIALIZED_NAME_FIELD_REF = "fieldRef"; - @SerializedName(SERIALIZED_NAME_FIELD_REF) - private String fieldRef; - - public static final String SERIALIZED_NAME_WARNING = "warning"; - @SerializedName(SERIALIZED_NAME_WARNING) - private String warning; - - - public V1alpha1ExpressionWarning fieldRef(String fieldRef) { - - this.fieldRef = fieldRef; - return this; - } - - /** - * 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\" - * @return fieldRef - **/ - @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; - } - - - public void setFieldRef(String fieldRef) { - this.fieldRef = fieldRef; - } - - - public V1alpha1ExpressionWarning warning(String warning) { - - this.warning = warning; - return this; - } - - /** - * 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. - * @return warning - **/ - @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; - } - - - public void setWarning(String warning) { - this.warning = warning; - } - - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1alpha1ExpressionWarning v1alpha1ExpressionWarning = (V1alpha1ExpressionWarning) o; - return Objects.equals(this.fieldRef, v1alpha1ExpressionWarning.fieldRef) && - Objects.equals(this.warning, v1alpha1ExpressionWarning.warning); - } - - @Override - public int hashCode() { - return Objects.hash(fieldRef, warning); - } - - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class V1alpha1ExpressionWarning {\n"); - sb.append(" fieldRef: ").append(toIndentedString(fieldRef)).append("\n"); - sb.append(" warning: ").append(toIndentedString(warning)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(java.lang.Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - -} 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 new file mode 100644 index 0000000000..8498536d62 --- /dev/null +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1GroupVersionResource.java @@ -0,0 +1,156 @@ +/* +Copyright 2025 The Kubernetes Authors. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at +http://www.apache.org/licenses/LICENSE-2.0 +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ +package io.kubernetes.client.openapi.models; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +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; + +/** + * The names of the group, the version, and the resource. + */ +@ApiModel(description = "The names of the group, the version, and the resource.") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +public class V1alpha1GroupVersionResource { + public static final String SERIALIZED_NAME_GROUP = "group"; + @SerializedName(SERIALIZED_NAME_GROUP) + private String group; + + public static final String SERIALIZED_NAME_RESOURCE = "resource"; + @SerializedName(SERIALIZED_NAME_RESOURCE) + private String resource; + + public static final String SERIALIZED_NAME_VERSION = "version"; + @SerializedName(SERIALIZED_NAME_VERSION) + private String version; + + + public V1alpha1GroupVersionResource group(String group) { + + this.group = group; + return this; + } + + /** + * The name of the group. + * @return group + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "The name of the group.") + + public String getGroup() { + return group; + } + + + public void setGroup(String group) { + this.group = group; + } + + + public V1alpha1GroupVersionResource resource(String resource) { + + this.resource = resource; + return this; + } + + /** + * The name of the resource. + * @return resource + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "The name of the resource.") + + public String getResource() { + return resource; + } + + + public void setResource(String resource) { + this.resource = resource; + } + + + public V1alpha1GroupVersionResource version(String version) { + + this.version = version; + return this; + } + + /** + * The name of the version. + * @return version + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "The name of the version.") + + public String getVersion() { + return version; + } + + + public void setVersion(String version) { + this.version = version; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V1alpha1GroupVersionResource v1alpha1GroupVersionResource = (V1alpha1GroupVersionResource) o; + return Objects.equals(this.group, v1alpha1GroupVersionResource.group) && + Objects.equals(this.resource, v1alpha1GroupVersionResource.resource) && + Objects.equals(this.version, v1alpha1GroupVersionResource.version); + } + + @Override + public int hashCode() { + return Objects.hash(group, resource, version); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class V1alpha1GroupVersionResource {\n"); + sb.append(" group: ").append(toIndentedString(group)).append("\n"); + sb.append(" resource: ").append(toIndentedString(resource)).append("\n"); + sb.append(" version: ").append(toIndentedString(version)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1IPAddress.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1IPAddress.java deleted file mode 100644 index ebcb3653b0..0000000000 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1IPAddress.java +++ /dev/null @@ -1,187 +0,0 @@ -/* -Copyright 2023 The Kubernetes Authors. -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at -http://www.apache.org/licenses/LICENSE-2.0 -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ -package io.kubernetes.client.openapi.models; - -import java.util.Objects; -import java.util.Arrays; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.kubernetes.client.openapi.models.V1ObjectMeta; -import io.kubernetes.client.openapi.models.V1alpha1IPAddressSpec; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import java.io.IOException; - -/** - * 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 - */ -@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") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") -public class V1alpha1IPAddress implements io.kubernetes.client.common.KubernetesObject { - public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; - @SerializedName(SERIALIZED_NAME_API_VERSION) - private String apiVersion; - - public static final String SERIALIZED_NAME_KIND = "kind"; - @SerializedName(SERIALIZED_NAME_KIND) - private String kind; - - public static final String SERIALIZED_NAME_METADATA = "metadata"; - @SerializedName(SERIALIZED_NAME_METADATA) - private V1ObjectMeta metadata; - - public static final String SERIALIZED_NAME_SPEC = "spec"; - @SerializedName(SERIALIZED_NAME_SPEC) - private V1alpha1IPAddressSpec spec; - - - public V1alpha1IPAddress apiVersion(String apiVersion) { - - this.apiVersion = apiVersion; - return this; - } - - /** - * 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 - * @return apiVersion - **/ - @javax.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; - } - - - public void setApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - } - - - public V1alpha1IPAddress kind(String kind) { - - this.kind = kind; - return this; - } - - /** - * 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 - * @return kind - **/ - @javax.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; - } - - - public void setKind(String kind) { - this.kind = kind; - } - - - public V1alpha1IPAddress metadata(V1ObjectMeta metadata) { - - this.metadata = metadata; - return this; - } - - /** - * Get metadata - * @return metadata - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public V1ObjectMeta getMetadata() { - return metadata; - } - - - public void setMetadata(V1ObjectMeta metadata) { - this.metadata = metadata; - } - - - public V1alpha1IPAddress spec(V1alpha1IPAddressSpec spec) { - - this.spec = spec; - return this; - } - - /** - * Get spec - * @return spec - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public V1alpha1IPAddressSpec getSpec() { - return spec; - } - - - public void setSpec(V1alpha1IPAddressSpec spec) { - this.spec = spec; - } - - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1alpha1IPAddress v1alpha1IPAddress = (V1alpha1IPAddress) o; - return Objects.equals(this.apiVersion, v1alpha1IPAddress.apiVersion) && - Objects.equals(this.kind, v1alpha1IPAddress.kind) && - Objects.equals(this.metadata, v1alpha1IPAddress.metadata) && - Objects.equals(this.spec, v1alpha1IPAddress.spec); - } - - @Override - public int hashCode() { - return Objects.hash(apiVersion, kind, metadata, spec); - } - - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class V1alpha1IPAddress {\n"); - sb.append(" apiVersion: ").append(toIndentedString(apiVersion)).append("\n"); - sb.append(" kind: ").append(toIndentedString(kind)).append("\n"); - sb.append(" metadata: ").append(toIndentedString(metadata)).append("\n"); - sb.append(" spec: ").append(toIndentedString(spec)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(java.lang.Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - -} diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1IPAddressList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1IPAddressList.java deleted file mode 100644 index ae90623a60..0000000000 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1IPAddressList.java +++ /dev/null @@ -1,193 +0,0 @@ -/* -Copyright 2023 The Kubernetes Authors. -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at -http://www.apache.org/licenses/LICENSE-2.0 -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ -package io.kubernetes.client.openapi.models; - -import java.util.Objects; -import java.util.Arrays; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.kubernetes.client.openapi.models.V1ListMeta; -import io.kubernetes.client.openapi.models.V1alpha1IPAddress; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import java.io.IOException; -import java.util.ArrayList; -import java.util.List; - -/** - * IPAddressList contains a list of IPAddress. - */ -@ApiModel(description = "IPAddressList contains a list of IPAddress.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") -public class V1alpha1IPAddressList implements io.kubernetes.client.common.KubernetesListObject { - public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; - @SerializedName(SERIALIZED_NAME_API_VERSION) - private String apiVersion; - - public static final String SERIALIZED_NAME_ITEMS = "items"; - @SerializedName(SERIALIZED_NAME_ITEMS) - private List items = new ArrayList<>(); - - public static final String SERIALIZED_NAME_KIND = "kind"; - @SerializedName(SERIALIZED_NAME_KIND) - private String kind; - - public static final String SERIALIZED_NAME_METADATA = "metadata"; - @SerializedName(SERIALIZED_NAME_METADATA) - private V1ListMeta metadata; - - - public V1alpha1IPAddressList apiVersion(String apiVersion) { - - this.apiVersion = apiVersion; - return this; - } - - /** - * 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 - * @return apiVersion - **/ - @javax.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; - } - - - public void setApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - } - - - public V1alpha1IPAddressList items(List items) { - - this.items = items; - return this; - } - - public V1alpha1IPAddressList addItemsItem(V1alpha1IPAddress itemsItem) { - this.items.add(itemsItem); - return this; - } - - /** - * items is the list of IPAddresses. - * @return items - **/ - @ApiModelProperty(required = true, value = "items is the list of IPAddresses.") - - public List getItems() { - return items; - } - - - public void setItems(List items) { - this.items = items; - } - - - public V1alpha1IPAddressList kind(String kind) { - - this.kind = kind; - return this; - } - - /** - * 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 - * @return kind - **/ - @javax.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; - } - - - public void setKind(String kind) { - this.kind = kind; - } - - - public V1alpha1IPAddressList metadata(V1ListMeta metadata) { - - this.metadata = metadata; - return this; - } - - /** - * Get metadata - * @return metadata - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public V1ListMeta getMetadata() { - return metadata; - } - - - public void setMetadata(V1ListMeta metadata) { - this.metadata = metadata; - } - - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1alpha1IPAddressList v1alpha1IPAddressList = (V1alpha1IPAddressList) o; - return Objects.equals(this.apiVersion, v1alpha1IPAddressList.apiVersion) && - Objects.equals(this.items, v1alpha1IPAddressList.items) && - Objects.equals(this.kind, v1alpha1IPAddressList.kind) && - Objects.equals(this.metadata, v1alpha1IPAddressList.metadata); - } - - @Override - public int hashCode() { - return Objects.hash(apiVersion, items, kind, metadata); - } - - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class V1alpha1IPAddressList {\n"); - sb.append(" apiVersion: ").append(toIndentedString(apiVersion)).append("\n"); - sb.append(" items: ").append(toIndentedString(items)).append("\n"); - sb.append(" kind: ").append(toIndentedString(kind)).append("\n"); - sb.append(" metadata: ").append(toIndentedString(metadata)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(java.lang.Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - -} diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1IPAddressSpec.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1IPAddressSpec.java deleted file mode 100644 index b0c422e273..0000000000 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1IPAddressSpec.java +++ /dev/null @@ -1,99 +0,0 @@ -/* -Copyright 2023 The Kubernetes Authors. -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at -http://www.apache.org/licenses/LICENSE-2.0 -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ -package io.kubernetes.client.openapi.models; - -import java.util.Objects; -import java.util.Arrays; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.kubernetes.client.openapi.models.V1alpha1ParentReference; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import java.io.IOException; - -/** - * IPAddressSpec describe the attributes in an IP Address. - */ -@ApiModel(description = "IPAddressSpec describe the attributes in an IP Address.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") -public class V1alpha1IPAddressSpec { - public static final String SERIALIZED_NAME_PARENT_REF = "parentRef"; - @SerializedName(SERIALIZED_NAME_PARENT_REF) - private V1alpha1ParentReference parentRef; - - - public V1alpha1IPAddressSpec parentRef(V1alpha1ParentReference parentRef) { - - this.parentRef = parentRef; - return this; - } - - /** - * Get parentRef - * @return parentRef - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public V1alpha1ParentReference getParentRef() { - return parentRef; - } - - - public void setParentRef(V1alpha1ParentReference parentRef) { - this.parentRef = parentRef; - } - - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1alpha1IPAddressSpec v1alpha1IPAddressSpec = (V1alpha1IPAddressSpec) o; - return Objects.equals(this.parentRef, v1alpha1IPAddressSpec.parentRef); - } - - @Override - public int hashCode() { - return Objects.hash(parentRef); - } - - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class V1alpha1IPAddressSpec {\n"); - sb.append(" parentRef: ").append(toIndentedString(parentRef)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(java.lang.Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - -} diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1JSONPatch.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1JSONPatch.java new file mode 100644 index 0000000000..799da6e3c5 --- /dev/null +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1JSONPatch.java @@ -0,0 +1,98 @@ +/* +Copyright 2025 The Kubernetes Authors. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at +http://www.apache.org/licenses/LICENSE-2.0 +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ +package io.kubernetes.client.openapi.models; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +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; + +/** + * JSONPatch defines a JSON Patch. + */ +@ApiModel(description = "JSONPatch defines a JSON Patch.") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +public class V1alpha1JSONPatch { + public static final String SERIALIZED_NAME_EXPRESSION = "expression"; + @SerializedName(SERIALIZED_NAME_EXPRESSION) + private String expression; + + + public V1alpha1JSONPatch expression(String expression) { + + this.expression = expression; + return this; + } + + /** + * expression will be evaluated by CEL to create a [JSON patch](https://jsonpatch.com/). ref: https://github.com/google/cel-spec expression must return an array of JSONPatch values. For example, this CEL expression returns a JSON patch to conditionally modify a value: [ JSONPatch{op: \"test\", path: \"/spec/example\", value: \"Red\"}, JSONPatch{op: \"replace\", path: \"/spec/example\", value: \"Green\"} ] To define an object for the patch value, use Object types. For example: [ JSONPatch{ op: \"add\", path: \"/spec/selector\", value: Object.spec.selector{matchLabels: {\"environment\": \"test\"}} } ] To use strings containing '/' and '~' as JSONPatch path keys, use \"jsonpatch.escapeKey\". For example: [ JSONPatch{ op: \"add\", path: \"/metadata/labels/\" + jsonpatch.escapeKey(\"example.com/environment\"), value: \"test\" }, ] CEL expressions have access to the types needed to create JSON patches and objects: - 'JSONPatch' - CEL type of JSON Patch operations. JSONPatch has the fields 'op', 'from', 'path' and 'value'. See [JSON patch](https://jsonpatch.com/) for more details. The 'value' field may be set to any of: string, integer, array, map or object. If set, the 'path' and 'from' fields must be set to a [JSON pointer](https://datatracker.ietf.org/doc/html/rfc6901/) string, where the 'jsonpatch.escapeKey()' CEL function may be used to escape path keys containing '/' and '~'. - 'Object' - CEL type of the resource object. - 'Object.<fieldName>' - CEL type of object field (such as 'Object.spec') - 'Object.<fieldName1>.<fieldName2>...<fieldNameN>` - CEL type of nested field (such as 'Object.spec.containers') CEL expressions have access to the contents of the API request, 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. CEL expressions have access to [Kubernetes CEL function libraries](https://kubernetes.io/docs/reference/using-api/cel/#cel-options-language-features-and-libraries) as well as: - 'jsonpatch.escapeKey' - Performs JSONPatch key escaping. '~' and '/' are escaped as '~0' and `~1' respectively). Only property names of the form `[a-zA-Z_.-/][a-zA-Z0-9_.-/]*` are accessible. Required. + * @return expression + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "expression will be evaluated by CEL to create a [JSON patch](https://jsonpatch.com/). ref: https://github.com/google/cel-spec expression must return an array of JSONPatch values. For example, this CEL expression returns a JSON patch to conditionally modify a value: [ JSONPatch{op: \"test\", path: \"/spec/example\", value: \"Red\"}, JSONPatch{op: \"replace\", path: \"/spec/example\", value: \"Green\"} ] To define an object for the patch value, use Object types. For example: [ JSONPatch{ op: \"add\", path: \"/spec/selector\", value: Object.spec.selector{matchLabels: {\"environment\": \"test\"}} } ] To use strings containing '/' and '~' as JSONPatch path keys, use \"jsonpatch.escapeKey\". For example: [ JSONPatch{ op: \"add\", path: \"/metadata/labels/\" + jsonpatch.escapeKey(\"example.com/environment\"), value: \"test\" }, ] CEL expressions have access to the types needed to create JSON patches and objects: - 'JSONPatch' - CEL type of JSON Patch operations. JSONPatch has the fields 'op', 'from', 'path' and 'value'. See [JSON patch](https://jsonpatch.com/) for more details. The 'value' field may be set to any of: string, integer, array, map or object. If set, the 'path' and 'from' fields must be set to a [JSON pointer](https://datatracker.ietf.org/doc/html/rfc6901/) string, where the 'jsonpatch.escapeKey()' CEL function may be used to escape path keys containing '/' and '~'. - 'Object' - CEL type of the resource object. - 'Object.' - CEL type of object field (such as 'Object.spec') - 'Object.....` - CEL type of nested field (such as 'Object.spec.containers') CEL expressions have access to the contents of the API request, 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. CEL expressions have access to [Kubernetes CEL function libraries](https://kubernetes.io/docs/reference/using-api/cel/#cel-options-language-features-and-libraries) as well as: - 'jsonpatch.escapeKey' - Performs JSONPatch key escaping. '~' and '/' are escaped as '~0' and `~1' respectively). Only property names of the form `[a-zA-Z_.-/][a-zA-Z0-9_.-/]*` are accessible. Required.") + + public String getExpression() { + return expression; + } + + + public void setExpression(String expression) { + this.expression = expression; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V1alpha1JSONPatch v1alpha1JSONPatch = (V1alpha1JSONPatch) o; + return Objects.equals(this.expression, v1alpha1JSONPatch.expression); + } + + @Override + public int hashCode() { + return Objects.hash(expression); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class V1alpha1JSONPatch {\n"); + sb.append(" expression: ").append(toIndentedString(expression)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} 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 c4cec9dc86..d0c5de9d22 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -26,7 +26,7 @@ /** * V1alpha1MatchCondition */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") public class V1alpha1MatchCondition { public static final String SERIALIZED_NAME_EXPRESSION = "expression"; @SerializedName(SERIALIZED_NAME_EXPRESSION) 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 c986531bb1..7b73ec152c 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -31,7 +31,7 @@ * 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) */ @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)") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") public class V1alpha1MatchResources { public static final String SERIALIZED_NAME_EXCLUDE_RESOURCE_RULES = "excludeResourceRules"; @SerializedName(SERIALIZED_NAME_EXCLUDE_RESOURCE_RULES) @@ -69,11 +69,11 @@ public V1alpha1MatchResources addExcludeResourceRulesItem(V1alpha1NamedRuleWithO } /** - * 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) + * ExcludeResourceRules describes what operations on what resources/subresources the policy should not care about. The exclude rules take precedence over include rules (if a resource matches both, it is excluded) * @return excludeResourceRules **/ @javax.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)") + @ApiModelProperty(value = "ExcludeResourceRules describes what operations on what resources/subresources the policy 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; @@ -92,11 +92,11 @@ public V1alpha1MatchResources matchPolicy(String matchPolicy) { } /** - * 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\" + * 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\"]`, the admission policy does not consider requests to apps/v1beta1 or extensions/v1beta1 API groups. - 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\"]`, the admission policy **does** consider requests made to apps/v1beta1 or extensions/v1beta1 API groups. The API server translates the request to a matched resource API if necessary. Defaults to \"Equivalent\" * @return matchPolicy **/ @javax.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\"") + @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\"]`, the admission policy does not consider requests to apps/v1beta1 or extensions/v1beta1 API groups. - 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\"]`, the admission policy **does** consider requests made to apps/v1beta1 or extensions/v1beta1 API groups. The API server translates the request to a matched resource API if necessary. Defaults to \"Equivalent\"") public String getMatchPolicy() { return matchPolicy; @@ -169,11 +169,11 @@ public V1alpha1MatchResources addResourceRulesItem(V1alpha1NamedRuleWithOperatio } /** - * ResourceRules describes what operations on what resources/subresources the ValidatingAdmissionPolicy matches. The policy cares about an operation if it matches _any_ Rule. + * ResourceRules describes what operations on what resources/subresources the admission policy matches. The policy cares about an operation if it matches _any_ Rule. * @return resourceRules **/ @javax.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.") + @ApiModelProperty(value = "ResourceRules describes what operations on what resources/subresources the admission policy 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 new file mode 100644 index 0000000000..d4bf44d498 --- /dev/null +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MigrationCondition.java @@ -0,0 +1,213 @@ +/* +Copyright 2025 The Kubernetes Authors. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at +http://www.apache.org/licenses/LICENSE-2.0 +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ +package io.kubernetes.client.openapi.models; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +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; + +/** + * Describes the state of a migration at a certain point. + */ +@ApiModel(description = "Describes the state of a migration at a certain point.") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +public class V1alpha1MigrationCondition { + public static final String SERIALIZED_NAME_LAST_UPDATE_TIME = "lastUpdateTime"; + @SerializedName(SERIALIZED_NAME_LAST_UPDATE_TIME) + private OffsetDateTime lastUpdateTime; + + public static final String SERIALIZED_NAME_MESSAGE = "message"; + @SerializedName(SERIALIZED_NAME_MESSAGE) + private String message; + + public static final String SERIALIZED_NAME_REASON = "reason"; + @SerializedName(SERIALIZED_NAME_REASON) + private String reason; + + public static final String SERIALIZED_NAME_STATUS = "status"; + @SerializedName(SERIALIZED_NAME_STATUS) + private String status; + + public static final String SERIALIZED_NAME_TYPE = "type"; + @SerializedName(SERIALIZED_NAME_TYPE) + private String type; + + + public V1alpha1MigrationCondition lastUpdateTime(OffsetDateTime lastUpdateTime) { + + this.lastUpdateTime = lastUpdateTime; + return this; + } + + /** + * The last time this condition was updated. + * @return lastUpdateTime + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "The last time this condition was updated.") + + public OffsetDateTime getLastUpdateTime() { + return lastUpdateTime; + } + + + public void setLastUpdateTime(OffsetDateTime lastUpdateTime) { + this.lastUpdateTime = lastUpdateTime; + } + + + public V1alpha1MigrationCondition message(String message) { + + this.message = message; + return this; + } + + /** + * A human readable message indicating details about the transition. + * @return message + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "A human readable message indicating details about the transition.") + + public String getMessage() { + return message; + } + + + public void setMessage(String message) { + this.message = message; + } + + + public V1alpha1MigrationCondition reason(String reason) { + + this.reason = reason; + return this; + } + + /** + * The reason for the condition's last transition. + * @return reason + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "The reason for the condition's last transition.") + + public String getReason() { + return reason; + } + + + public void setReason(String reason) { + this.reason = reason; + } + + + public V1alpha1MigrationCondition status(String status) { + + this.status = status; + return this; + } + + /** + * Status of the condition, one of True, False, Unknown. + * @return status + **/ + @ApiModelProperty(required = true, value = "Status of the condition, one of True, False, Unknown.") + + public String getStatus() { + return status; + } + + + public void setStatus(String status) { + this.status = status; + } + + + public V1alpha1MigrationCondition type(String type) { + + this.type = type; + return this; + } + + /** + * Type of the condition. + * @return type + **/ + @ApiModelProperty(required = true, value = "Type of the condition.") + + public String getType() { + return type; + } + + + public void setType(String type) { + this.type = type; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V1alpha1MigrationCondition v1alpha1MigrationCondition = (V1alpha1MigrationCondition) o; + return Objects.equals(this.lastUpdateTime, v1alpha1MigrationCondition.lastUpdateTime) && + Objects.equals(this.message, v1alpha1MigrationCondition.message) && + Objects.equals(this.reason, v1alpha1MigrationCondition.reason) && + Objects.equals(this.status, v1alpha1MigrationCondition.status) && + Objects.equals(this.type, v1alpha1MigrationCondition.type); + } + + @Override + public int hashCode() { + return Objects.hash(lastUpdateTime, message, reason, status, type); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class V1alpha1MigrationCondition {\n"); + sb.append(" lastUpdateTime: ").append(toIndentedString(lastUpdateTime)).append("\n"); + sb.append(" message: ").append(toIndentedString(message)).append("\n"); + sb.append(" reason: ").append(toIndentedString(reason)).append("\n"); + sb.append(" status: ").append(toIndentedString(status)).append("\n"); + sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MutatingAdmissionPolicy.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MutatingAdmissionPolicy.java new file mode 100644 index 0000000000..b11cbd2d17 --- /dev/null +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MutatingAdmissionPolicy.java @@ -0,0 +1,187 @@ +/* +Copyright 2025 The Kubernetes Authors. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at +http://www.apache.org/licenses/LICENSE-2.0 +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ +package io.kubernetes.client.openapi.models; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.openapi.models.V1ObjectMeta; +import io.kubernetes.client.openapi.models.V1alpha1MutatingAdmissionPolicySpec; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; + +/** + * MutatingAdmissionPolicy describes the definition of an admission mutation policy that mutates the object coming into admission chain. + */ +@ApiModel(description = "MutatingAdmissionPolicy describes the definition of an admission mutation policy that mutates the object coming into admission chain.") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +public class V1alpha1MutatingAdmissionPolicy implements io.kubernetes.client.common.KubernetesObject { + public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; + @SerializedName(SERIALIZED_NAME_API_VERSION) + private String apiVersion; + + public static final String SERIALIZED_NAME_KIND = "kind"; + @SerializedName(SERIALIZED_NAME_KIND) + private String kind; + + public static final String SERIALIZED_NAME_METADATA = "metadata"; + @SerializedName(SERIALIZED_NAME_METADATA) + private V1ObjectMeta metadata; + + public static final String SERIALIZED_NAME_SPEC = "spec"; + @SerializedName(SERIALIZED_NAME_SPEC) + private V1alpha1MutatingAdmissionPolicySpec spec; + + + public V1alpha1MutatingAdmissionPolicy apiVersion(String apiVersion) { + + this.apiVersion = apiVersion; + return this; + } + + /** + * 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 + * @return apiVersion + **/ + @javax.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; + } + + + public void setApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + } + + + public V1alpha1MutatingAdmissionPolicy kind(String kind) { + + this.kind = kind; + return this; + } + + /** + * 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 + * @return kind + **/ + @javax.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; + } + + + public void setKind(String kind) { + this.kind = kind; + } + + + public V1alpha1MutatingAdmissionPolicy metadata(V1ObjectMeta metadata) { + + this.metadata = metadata; + return this; + } + + /** + * Get metadata + * @return metadata + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public V1ObjectMeta getMetadata() { + return metadata; + } + + + public void setMetadata(V1ObjectMeta metadata) { + this.metadata = metadata; + } + + + public V1alpha1MutatingAdmissionPolicy spec(V1alpha1MutatingAdmissionPolicySpec spec) { + + this.spec = spec; + return this; + } + + /** + * Get spec + * @return spec + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public V1alpha1MutatingAdmissionPolicySpec getSpec() { + return spec; + } + + + public void setSpec(V1alpha1MutatingAdmissionPolicySpec spec) { + this.spec = spec; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V1alpha1MutatingAdmissionPolicy v1alpha1MutatingAdmissionPolicy = (V1alpha1MutatingAdmissionPolicy) o; + return Objects.equals(this.apiVersion, v1alpha1MutatingAdmissionPolicy.apiVersion) && + Objects.equals(this.kind, v1alpha1MutatingAdmissionPolicy.kind) && + Objects.equals(this.metadata, v1alpha1MutatingAdmissionPolicy.metadata) && + Objects.equals(this.spec, v1alpha1MutatingAdmissionPolicy.spec); + } + + @Override + public int hashCode() { + return Objects.hash(apiVersion, kind, metadata, spec); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class V1alpha1MutatingAdmissionPolicy {\n"); + sb.append(" apiVersion: ").append(toIndentedString(apiVersion)).append("\n"); + sb.append(" kind: ").append(toIndentedString(kind)).append("\n"); + sb.append(" metadata: ").append(toIndentedString(metadata)).append("\n"); + sb.append(" spec: ").append(toIndentedString(spec)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MutatingAdmissionPolicyBinding.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MutatingAdmissionPolicyBinding.java new file mode 100644 index 0000000000..ecd839da8d --- /dev/null +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MutatingAdmissionPolicyBinding.java @@ -0,0 +1,187 @@ +/* +Copyright 2025 The Kubernetes Authors. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at +http://www.apache.org/licenses/LICENSE-2.0 +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ +package io.kubernetes.client.openapi.models; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.openapi.models.V1ObjectMeta; +import io.kubernetes.client.openapi.models.V1alpha1MutatingAdmissionPolicyBindingSpec; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; + +/** + * MutatingAdmissionPolicyBinding binds the MutatingAdmissionPolicy with parametrized resources. MutatingAdmissionPolicyBinding and the optional parameter resource 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. Each evaluation is constrained by a [runtime cost budget](https://kubernetes.io/docs/reference/using-api/cel/#runtime-cost-budget). Adding/removing policies, bindings, or params can not affect whether a given (policy, binding, param) combination is within its own CEL budget. + */ +@ApiModel(description = "MutatingAdmissionPolicyBinding binds the MutatingAdmissionPolicy with parametrized resources. MutatingAdmissionPolicyBinding and the optional parameter resource 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. Each evaluation is constrained by a [runtime cost budget](https://kubernetes.io/docs/reference/using-api/cel/#runtime-cost-budget). Adding/removing policies, bindings, or params can not affect whether a given (policy, binding, param) combination is within its own CEL budget.") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +public class V1alpha1MutatingAdmissionPolicyBinding implements io.kubernetes.client.common.KubernetesObject { + public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; + @SerializedName(SERIALIZED_NAME_API_VERSION) + private String apiVersion; + + public static final String SERIALIZED_NAME_KIND = "kind"; + @SerializedName(SERIALIZED_NAME_KIND) + private String kind; + + public static final String SERIALIZED_NAME_METADATA = "metadata"; + @SerializedName(SERIALIZED_NAME_METADATA) + private V1ObjectMeta metadata; + + public static final String SERIALIZED_NAME_SPEC = "spec"; + @SerializedName(SERIALIZED_NAME_SPEC) + private V1alpha1MutatingAdmissionPolicyBindingSpec spec; + + + public V1alpha1MutatingAdmissionPolicyBinding apiVersion(String apiVersion) { + + this.apiVersion = apiVersion; + return this; + } + + /** + * 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 + * @return apiVersion + **/ + @javax.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; + } + + + public void setApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + } + + + public V1alpha1MutatingAdmissionPolicyBinding kind(String kind) { + + this.kind = kind; + return this; + } + + /** + * 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 + * @return kind + **/ + @javax.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; + } + + + public void setKind(String kind) { + this.kind = kind; + } + + + public V1alpha1MutatingAdmissionPolicyBinding metadata(V1ObjectMeta metadata) { + + this.metadata = metadata; + return this; + } + + /** + * Get metadata + * @return metadata + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public V1ObjectMeta getMetadata() { + return metadata; + } + + + public void setMetadata(V1ObjectMeta metadata) { + this.metadata = metadata; + } + + + public V1alpha1MutatingAdmissionPolicyBinding spec(V1alpha1MutatingAdmissionPolicyBindingSpec spec) { + + this.spec = spec; + return this; + } + + /** + * Get spec + * @return spec + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public V1alpha1MutatingAdmissionPolicyBindingSpec getSpec() { + return spec; + } + + + public void setSpec(V1alpha1MutatingAdmissionPolicyBindingSpec spec) { + this.spec = spec; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V1alpha1MutatingAdmissionPolicyBinding v1alpha1MutatingAdmissionPolicyBinding = (V1alpha1MutatingAdmissionPolicyBinding) o; + return Objects.equals(this.apiVersion, v1alpha1MutatingAdmissionPolicyBinding.apiVersion) && + Objects.equals(this.kind, v1alpha1MutatingAdmissionPolicyBinding.kind) && + Objects.equals(this.metadata, v1alpha1MutatingAdmissionPolicyBinding.metadata) && + Objects.equals(this.spec, v1alpha1MutatingAdmissionPolicyBinding.spec); + } + + @Override + public int hashCode() { + return Objects.hash(apiVersion, kind, metadata, spec); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class V1alpha1MutatingAdmissionPolicyBinding {\n"); + sb.append(" apiVersion: ").append(toIndentedString(apiVersion)).append("\n"); + sb.append(" kind: ").append(toIndentedString(kind)).append("\n"); + sb.append(" metadata: ").append(toIndentedString(metadata)).append("\n"); + sb.append(" spec: ").append(toIndentedString(spec)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MutatingAdmissionPolicyBindingList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MutatingAdmissionPolicyBindingList.java new file mode 100644 index 0000000000..43102998e0 --- /dev/null +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MutatingAdmissionPolicyBindingList.java @@ -0,0 +1,193 @@ +/* +Copyright 2025 The Kubernetes Authors. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at +http://www.apache.org/licenses/LICENSE-2.0 +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ +package io.kubernetes.client.openapi.models; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.openapi.models.V1ListMeta; +import io.kubernetes.client.openapi.models.V1alpha1MutatingAdmissionPolicyBinding; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; + +/** + * MutatingAdmissionPolicyBindingList is a list of MutatingAdmissionPolicyBinding. + */ +@ApiModel(description = "MutatingAdmissionPolicyBindingList is a list of MutatingAdmissionPolicyBinding.") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +public class V1alpha1MutatingAdmissionPolicyBindingList implements io.kubernetes.client.common.KubernetesListObject { + public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; + @SerializedName(SERIALIZED_NAME_API_VERSION) + private String apiVersion; + + public static final String SERIALIZED_NAME_ITEMS = "items"; + @SerializedName(SERIALIZED_NAME_ITEMS) + private List items = new ArrayList<>(); + + public static final String SERIALIZED_NAME_KIND = "kind"; + @SerializedName(SERIALIZED_NAME_KIND) + private String kind; + + public static final String SERIALIZED_NAME_METADATA = "metadata"; + @SerializedName(SERIALIZED_NAME_METADATA) + private V1ListMeta metadata; + + + public V1alpha1MutatingAdmissionPolicyBindingList apiVersion(String apiVersion) { + + this.apiVersion = apiVersion; + return this; + } + + /** + * 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 + * @return apiVersion + **/ + @javax.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; + } + + + public void setApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + } + + + public V1alpha1MutatingAdmissionPolicyBindingList items(List items) { + + this.items = items; + return this; + } + + public V1alpha1MutatingAdmissionPolicyBindingList addItemsItem(V1alpha1MutatingAdmissionPolicyBinding itemsItem) { + this.items.add(itemsItem); + return this; + } + + /** + * List of PolicyBinding. + * @return items + **/ + @ApiModelProperty(required = true, value = "List of PolicyBinding.") + + public List getItems() { + return items; + } + + + public void setItems(List items) { + this.items = items; + } + + + public V1alpha1MutatingAdmissionPolicyBindingList kind(String kind) { + + this.kind = kind; + return this; + } + + /** + * 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 + * @return kind + **/ + @javax.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; + } + + + public void setKind(String kind) { + this.kind = kind; + } + + + public V1alpha1MutatingAdmissionPolicyBindingList metadata(V1ListMeta metadata) { + + this.metadata = metadata; + return this; + } + + /** + * Get metadata + * @return metadata + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public V1ListMeta getMetadata() { + return metadata; + } + + + public void setMetadata(V1ListMeta metadata) { + this.metadata = metadata; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V1alpha1MutatingAdmissionPolicyBindingList v1alpha1MutatingAdmissionPolicyBindingList = (V1alpha1MutatingAdmissionPolicyBindingList) o; + return Objects.equals(this.apiVersion, v1alpha1MutatingAdmissionPolicyBindingList.apiVersion) && + Objects.equals(this.items, v1alpha1MutatingAdmissionPolicyBindingList.items) && + Objects.equals(this.kind, v1alpha1MutatingAdmissionPolicyBindingList.kind) && + Objects.equals(this.metadata, v1alpha1MutatingAdmissionPolicyBindingList.metadata); + } + + @Override + public int hashCode() { + return Objects.hash(apiVersion, items, kind, metadata); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class V1alpha1MutatingAdmissionPolicyBindingList {\n"); + sb.append(" apiVersion: ").append(toIndentedString(apiVersion)).append("\n"); + sb.append(" items: ").append(toIndentedString(items)).append("\n"); + sb.append(" kind: ").append(toIndentedString(kind)).append("\n"); + sb.append(" metadata: ").append(toIndentedString(metadata)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MutatingAdmissionPolicyBindingSpec.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MutatingAdmissionPolicyBindingSpec.java new file mode 100644 index 0000000000..eb7ff8faaa --- /dev/null +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MutatingAdmissionPolicyBindingSpec.java @@ -0,0 +1,158 @@ +/* +Copyright 2025 The Kubernetes Authors. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at +http://www.apache.org/licenses/LICENSE-2.0 +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ +package io.kubernetes.client.openapi.models; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +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; + +/** + * MutatingAdmissionPolicyBindingSpec is the specification of the MutatingAdmissionPolicyBinding. + */ +@ApiModel(description = "MutatingAdmissionPolicyBindingSpec is the specification of the MutatingAdmissionPolicyBinding.") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +public class V1alpha1MutatingAdmissionPolicyBindingSpec { + public static final String SERIALIZED_NAME_MATCH_RESOURCES = "matchResources"; + @SerializedName(SERIALIZED_NAME_MATCH_RESOURCES) + private V1alpha1MatchResources matchResources; + + public static final String SERIALIZED_NAME_PARAM_REF = "paramRef"; + @SerializedName(SERIALIZED_NAME_PARAM_REF) + private V1alpha1ParamRef paramRef; + + public static final String SERIALIZED_NAME_POLICY_NAME = "policyName"; + @SerializedName(SERIALIZED_NAME_POLICY_NAME) + private String policyName; + + + public V1alpha1MutatingAdmissionPolicyBindingSpec matchResources(V1alpha1MatchResources matchResources) { + + this.matchResources = matchResources; + return this; + } + + /** + * Get matchResources + * @return matchResources + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public V1alpha1MatchResources getMatchResources() { + return matchResources; + } + + + public void setMatchResources(V1alpha1MatchResources matchResources) { + this.matchResources = matchResources; + } + + + public V1alpha1MutatingAdmissionPolicyBindingSpec paramRef(V1alpha1ParamRef paramRef) { + + this.paramRef = paramRef; + return this; + } + + /** + * Get paramRef + * @return paramRef + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public V1alpha1ParamRef getParamRef() { + return paramRef; + } + + + public void setParamRef(V1alpha1ParamRef paramRef) { + this.paramRef = paramRef; + } + + + public V1alpha1MutatingAdmissionPolicyBindingSpec policyName(String policyName) { + + this.policyName = policyName; + return this; + } + + /** + * policyName references a MutatingAdmissionPolicy name which the MutatingAdmissionPolicyBinding binds to. If the referenced resource does not exist, this binding is considered invalid and will be ignored Required. + * @return policyName + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "policyName references a MutatingAdmissionPolicy name which the MutatingAdmissionPolicyBinding binds to. If the referenced resource does not exist, this binding is considered invalid and will be ignored Required.") + + public String getPolicyName() { + return policyName; + } + + + public void setPolicyName(String policyName) { + this.policyName = policyName; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V1alpha1MutatingAdmissionPolicyBindingSpec v1alpha1MutatingAdmissionPolicyBindingSpec = (V1alpha1MutatingAdmissionPolicyBindingSpec) o; + return Objects.equals(this.matchResources, v1alpha1MutatingAdmissionPolicyBindingSpec.matchResources) && + Objects.equals(this.paramRef, v1alpha1MutatingAdmissionPolicyBindingSpec.paramRef) && + Objects.equals(this.policyName, v1alpha1MutatingAdmissionPolicyBindingSpec.policyName); + } + + @Override + public int hashCode() { + return Objects.hash(matchResources, paramRef, policyName); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class V1alpha1MutatingAdmissionPolicyBindingSpec {\n"); + sb.append(" matchResources: ").append(toIndentedString(matchResources)).append("\n"); + sb.append(" paramRef: ").append(toIndentedString(paramRef)).append("\n"); + sb.append(" policyName: ").append(toIndentedString(policyName)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MutatingAdmissionPolicyList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MutatingAdmissionPolicyList.java new file mode 100644 index 0000000000..c0848e24fc --- /dev/null +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MutatingAdmissionPolicyList.java @@ -0,0 +1,193 @@ +/* +Copyright 2025 The Kubernetes Authors. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at +http://www.apache.org/licenses/LICENSE-2.0 +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ +package io.kubernetes.client.openapi.models; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.openapi.models.V1ListMeta; +import io.kubernetes.client.openapi.models.V1alpha1MutatingAdmissionPolicy; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; + +/** + * MutatingAdmissionPolicyList is a list of MutatingAdmissionPolicy. + */ +@ApiModel(description = "MutatingAdmissionPolicyList is a list of MutatingAdmissionPolicy.") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +public class V1alpha1MutatingAdmissionPolicyList implements io.kubernetes.client.common.KubernetesListObject { + public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; + @SerializedName(SERIALIZED_NAME_API_VERSION) + private String apiVersion; + + public static final String SERIALIZED_NAME_ITEMS = "items"; + @SerializedName(SERIALIZED_NAME_ITEMS) + private List items = new ArrayList<>(); + + public static final String SERIALIZED_NAME_KIND = "kind"; + @SerializedName(SERIALIZED_NAME_KIND) + private String kind; + + public static final String SERIALIZED_NAME_METADATA = "metadata"; + @SerializedName(SERIALIZED_NAME_METADATA) + private V1ListMeta metadata; + + + public V1alpha1MutatingAdmissionPolicyList apiVersion(String apiVersion) { + + this.apiVersion = apiVersion; + return this; + } + + /** + * 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 + * @return apiVersion + **/ + @javax.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; + } + + + public void setApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + } + + + public V1alpha1MutatingAdmissionPolicyList items(List items) { + + this.items = items; + return this; + } + + public V1alpha1MutatingAdmissionPolicyList addItemsItem(V1alpha1MutatingAdmissionPolicy itemsItem) { + this.items.add(itemsItem); + return this; + } + + /** + * List of ValidatingAdmissionPolicy. + * @return items + **/ + @ApiModelProperty(required = true, value = "List of ValidatingAdmissionPolicy.") + + public List getItems() { + return items; + } + + + public void setItems(List items) { + this.items = items; + } + + + public V1alpha1MutatingAdmissionPolicyList kind(String kind) { + + this.kind = kind; + return this; + } + + /** + * 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 + * @return kind + **/ + @javax.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; + } + + + public void setKind(String kind) { + this.kind = kind; + } + + + public V1alpha1MutatingAdmissionPolicyList metadata(V1ListMeta metadata) { + + this.metadata = metadata; + return this; + } + + /** + * Get metadata + * @return metadata + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public V1ListMeta getMetadata() { + return metadata; + } + + + public void setMetadata(V1ListMeta metadata) { + this.metadata = metadata; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V1alpha1MutatingAdmissionPolicyList v1alpha1MutatingAdmissionPolicyList = (V1alpha1MutatingAdmissionPolicyList) o; + return Objects.equals(this.apiVersion, v1alpha1MutatingAdmissionPolicyList.apiVersion) && + Objects.equals(this.items, v1alpha1MutatingAdmissionPolicyList.items) && + Objects.equals(this.kind, v1alpha1MutatingAdmissionPolicyList.kind) && + Objects.equals(this.metadata, v1alpha1MutatingAdmissionPolicyList.metadata); + } + + @Override + public int hashCode() { + return Objects.hash(apiVersion, items, kind, metadata); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class V1alpha1MutatingAdmissionPolicyList {\n"); + sb.append(" apiVersion: ").append(toIndentedString(apiVersion)).append("\n"); + sb.append(" items: ").append(toIndentedString(items)).append("\n"); + sb.append(" kind: ").append(toIndentedString(kind)).append("\n"); + sb.append(" metadata: ").append(toIndentedString(metadata)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MutatingAdmissionPolicySpec.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MutatingAdmissionPolicySpec.java new file mode 100644 index 0000000000..7cb49556d5 --- /dev/null +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MutatingAdmissionPolicySpec.java @@ -0,0 +1,303 @@ +/* +Copyright 2025 The Kubernetes Authors. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at +http://www.apache.org/licenses/LICENSE-2.0 +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ +package io.kubernetes.client.openapi.models; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.openapi.models.V1alpha1MatchCondition; +import io.kubernetes.client.openapi.models.V1alpha1MatchResources; +import io.kubernetes.client.openapi.models.V1alpha1Mutation; +import io.kubernetes.client.openapi.models.V1alpha1ParamKind; +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.List; + +/** + * MutatingAdmissionPolicySpec is the specification of the desired behavior of the admission policy. + */ +@ApiModel(description = "MutatingAdmissionPolicySpec is the specification of the desired behavior of the admission policy.") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +public class V1alpha1MutatingAdmissionPolicySpec { + public static final String SERIALIZED_NAME_FAILURE_POLICY = "failurePolicy"; + @SerializedName(SERIALIZED_NAME_FAILURE_POLICY) + private String failurePolicy; + + public static final String SERIALIZED_NAME_MATCH_CONDITIONS = "matchConditions"; + @SerializedName(SERIALIZED_NAME_MATCH_CONDITIONS) + private List matchConditions = null; + + public static final String SERIALIZED_NAME_MATCH_CONSTRAINTS = "matchConstraints"; + @SerializedName(SERIALIZED_NAME_MATCH_CONSTRAINTS) + private V1alpha1MatchResources matchConstraints; + + public static final String SERIALIZED_NAME_MUTATIONS = "mutations"; + @SerializedName(SERIALIZED_NAME_MUTATIONS) + private List mutations = null; + + public static final String SERIALIZED_NAME_PARAM_KIND = "paramKind"; + @SerializedName(SERIALIZED_NAME_PARAM_KIND) + private V1alpha1ParamKind paramKind; + + public static final String SERIALIZED_NAME_REINVOCATION_POLICY = "reinvocationPolicy"; + @SerializedName(SERIALIZED_NAME_REINVOCATION_POLICY) + private String reinvocationPolicy; + + public static final String SERIALIZED_NAME_VARIABLES = "variables"; + @SerializedName(SERIALIZED_NAME_VARIABLES) + private List variables = null; + + + public V1alpha1MutatingAdmissionPolicySpec failurePolicy(String failurePolicy) { + + this.failurePolicy = failurePolicy; + return this; + } + + /** + * 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 paramKind refers to a non-existent Kind. A binding is invalid if paramRef.name refers to a non-existent resource. failurePolicy does not define how validations that evaluate to false are handled. Allowed values are Ignore or Fail. Defaults to Fail. + * @return failurePolicy + **/ + @javax.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 paramKind refers to a non-existent Kind. A binding is invalid if paramRef.name refers to a non-existent resource. failurePolicy does not define how validations that evaluate to false are handled. Allowed values are Ignore or Fail. Defaults to Fail.") + + public String getFailurePolicy() { + return failurePolicy; + } + + + public void setFailurePolicy(String failurePolicy) { + this.failurePolicy = failurePolicy; + } + + + public V1alpha1MutatingAdmissionPolicySpec matchConditions(List matchConditions) { + + this.matchConditions = matchConditions; + return this; + } + + public V1alpha1MutatingAdmissionPolicySpec addMatchConditionsItem(V1alpha1MatchCondition matchConditionsItem) { + if (this.matchConditions == null) { + this.matchConditions = new ArrayList<>(); + } + this.matchConditions.add(matchConditionsItem); + return this; + } + + /** + * 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 matchConstraints. 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 + * @return matchConditions + **/ + @javax.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 matchConstraints. 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; + } + + + public void setMatchConditions(List matchConditions) { + this.matchConditions = matchConditions; + } + + + public V1alpha1MutatingAdmissionPolicySpec matchConstraints(V1alpha1MatchResources matchConstraints) { + + this.matchConstraints = matchConstraints; + return this; + } + + /** + * Get matchConstraints + * @return matchConstraints + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public V1alpha1MatchResources getMatchConstraints() { + return matchConstraints; + } + + + public void setMatchConstraints(V1alpha1MatchResources matchConstraints) { + this.matchConstraints = matchConstraints; + } + + + public V1alpha1MutatingAdmissionPolicySpec mutations(List mutations) { + + this.mutations = mutations; + return this; + } + + public V1alpha1MutatingAdmissionPolicySpec addMutationsItem(V1alpha1Mutation mutationsItem) { + if (this.mutations == null) { + this.mutations = new ArrayList<>(); + } + this.mutations.add(mutationsItem); + return this; + } + + /** + * mutations contain operations to perform on matching objects. mutations may not be empty; a minimum of one mutation is required. mutations are evaluated in order, and are reinvoked according to the reinvocationPolicy. The mutations of a policy are invoked for each binding of this policy and reinvocation of mutations occurs on a per binding basis. + * @return mutations + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "mutations contain operations to perform on matching objects. mutations may not be empty; a minimum of one mutation is required. mutations are evaluated in order, and are reinvoked according to the reinvocationPolicy. The mutations of a policy are invoked for each binding of this policy and reinvocation of mutations occurs on a per binding basis.") + + public List getMutations() { + return mutations; + } + + + public void setMutations(List mutations) { + this.mutations = mutations; + } + + + public V1alpha1MutatingAdmissionPolicySpec paramKind(V1alpha1ParamKind paramKind) { + + this.paramKind = paramKind; + return this; + } + + /** + * Get paramKind + * @return paramKind + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public V1alpha1ParamKind getParamKind() { + return paramKind; + } + + + public void setParamKind(V1alpha1ParamKind paramKind) { + this.paramKind = paramKind; + } + + + public V1alpha1MutatingAdmissionPolicySpec reinvocationPolicy(String reinvocationPolicy) { + + this.reinvocationPolicy = reinvocationPolicy; + return this; + } + + /** + * reinvocationPolicy indicates whether mutations may be called multiple times per MutatingAdmissionPolicyBinding as part of a single admission evaluation. Allowed values are \"Never\" and \"IfNeeded\". Never: These mutations will not be called more than once per binding in a single admission evaluation. IfNeeded: These mutations may be invoked more than once per binding for a single admission request and there is no guarantee of order with respect to other admission plugins, admission webhooks, bindings of this policy and admission policies. Mutations are only reinvoked when mutations change the object after this mutation is invoked. Required. + * @return reinvocationPolicy + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "reinvocationPolicy indicates whether mutations may be called multiple times per MutatingAdmissionPolicyBinding as part of a single admission evaluation. Allowed values are \"Never\" and \"IfNeeded\". Never: These mutations will not be called more than once per binding in a single admission evaluation. IfNeeded: These mutations may be invoked more than once per binding for a single admission request and there is no guarantee of order with respect to other admission plugins, admission webhooks, bindings of this policy and admission policies. Mutations are only reinvoked when mutations change the object after this mutation is invoked. Required.") + + public String getReinvocationPolicy() { + return reinvocationPolicy; + } + + + public void setReinvocationPolicy(String reinvocationPolicy) { + this.reinvocationPolicy = reinvocationPolicy; + } + + + public V1alpha1MutatingAdmissionPolicySpec variables(List variables) { + + this.variables = variables; + return this; + } + + public V1alpha1MutatingAdmissionPolicySpec addVariablesItem(V1alpha1Variable variablesItem) { + if (this.variables == null) { + this.variables = new ArrayList<>(); + } + this.variables.add(variablesItem); + return this; + } + + /** + * 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. + * @return variables + **/ + @javax.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; + } + + + public void setVariables(List variables) { + this.variables = variables; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V1alpha1MutatingAdmissionPolicySpec v1alpha1MutatingAdmissionPolicySpec = (V1alpha1MutatingAdmissionPolicySpec) o; + return Objects.equals(this.failurePolicy, v1alpha1MutatingAdmissionPolicySpec.failurePolicy) && + Objects.equals(this.matchConditions, v1alpha1MutatingAdmissionPolicySpec.matchConditions) && + Objects.equals(this.matchConstraints, v1alpha1MutatingAdmissionPolicySpec.matchConstraints) && + Objects.equals(this.mutations, v1alpha1MutatingAdmissionPolicySpec.mutations) && + Objects.equals(this.paramKind, v1alpha1MutatingAdmissionPolicySpec.paramKind) && + Objects.equals(this.reinvocationPolicy, v1alpha1MutatingAdmissionPolicySpec.reinvocationPolicy) && + Objects.equals(this.variables, v1alpha1MutatingAdmissionPolicySpec.variables); + } + + @Override + public int hashCode() { + return Objects.hash(failurePolicy, matchConditions, matchConstraints, mutations, paramKind, reinvocationPolicy, variables); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class V1alpha1MutatingAdmissionPolicySpec {\n"); + sb.append(" failurePolicy: ").append(toIndentedString(failurePolicy)).append("\n"); + sb.append(" matchConditions: ").append(toIndentedString(matchConditions)).append("\n"); + sb.append(" matchConstraints: ").append(toIndentedString(matchConstraints)).append("\n"); + sb.append(" mutations: ").append(toIndentedString(mutations)).append("\n"); + sb.append(" paramKind: ").append(toIndentedString(paramKind)).append("\n"); + sb.append(" reinvocationPolicy: ").append(toIndentedString(reinvocationPolicy)).append("\n"); + sb.append(" variables: ").append(toIndentedString(variables)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1Mutation.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1Mutation.java new file mode 100644 index 0000000000..1493428578 --- /dev/null +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1Mutation.java @@ -0,0 +1,157 @@ +/* +Copyright 2025 The Kubernetes Authors. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at +http://www.apache.org/licenses/LICENSE-2.0 +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ +package io.kubernetes.client.openapi.models; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.openapi.models.V1alpha1ApplyConfiguration; +import io.kubernetes.client.openapi.models.V1alpha1JSONPatch; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; + +/** + * Mutation specifies the CEL expression which is used to apply the Mutation. + */ +@ApiModel(description = "Mutation specifies the CEL expression which is used to apply the Mutation.") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +public class V1alpha1Mutation { + public static final String SERIALIZED_NAME_APPLY_CONFIGURATION = "applyConfiguration"; + @SerializedName(SERIALIZED_NAME_APPLY_CONFIGURATION) + private V1alpha1ApplyConfiguration applyConfiguration; + + public static final String SERIALIZED_NAME_JSON_PATCH = "jsonPatch"; + @SerializedName(SERIALIZED_NAME_JSON_PATCH) + private V1alpha1JSONPatch jsonPatch; + + public static final String SERIALIZED_NAME_PATCH_TYPE = "patchType"; + @SerializedName(SERIALIZED_NAME_PATCH_TYPE) + private String patchType; + + + public V1alpha1Mutation applyConfiguration(V1alpha1ApplyConfiguration applyConfiguration) { + + this.applyConfiguration = applyConfiguration; + return this; + } + + /** + * Get applyConfiguration + * @return applyConfiguration + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public V1alpha1ApplyConfiguration getApplyConfiguration() { + return applyConfiguration; + } + + + public void setApplyConfiguration(V1alpha1ApplyConfiguration applyConfiguration) { + this.applyConfiguration = applyConfiguration; + } + + + public V1alpha1Mutation jsonPatch(V1alpha1JSONPatch jsonPatch) { + + this.jsonPatch = jsonPatch; + return this; + } + + /** + * Get jsonPatch + * @return jsonPatch + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public V1alpha1JSONPatch getJsonPatch() { + return jsonPatch; + } + + + public void setJsonPatch(V1alpha1JSONPatch jsonPatch) { + this.jsonPatch = jsonPatch; + } + + + public V1alpha1Mutation patchType(String patchType) { + + this.patchType = patchType; + return this; + } + + /** + * patchType indicates the patch strategy used. Allowed values are \"ApplyConfiguration\" and \"JSONPatch\". Required. + * @return patchType + **/ + @ApiModelProperty(required = true, value = "patchType indicates the patch strategy used. Allowed values are \"ApplyConfiguration\" and \"JSONPatch\". Required.") + + public String getPatchType() { + return patchType; + } + + + public void setPatchType(String patchType) { + this.patchType = patchType; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V1alpha1Mutation v1alpha1Mutation = (V1alpha1Mutation) o; + return Objects.equals(this.applyConfiguration, v1alpha1Mutation.applyConfiguration) && + Objects.equals(this.jsonPatch, v1alpha1Mutation.jsonPatch) && + Objects.equals(this.patchType, v1alpha1Mutation.patchType); + } + + @Override + public int hashCode() { + return Objects.hash(applyConfiguration, jsonPatch, patchType); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class V1alpha1Mutation {\n"); + sb.append(" applyConfiguration: ").append(toIndentedString(applyConfiguration)).append("\n"); + sb.append(" jsonPatch: ").append(toIndentedString(jsonPatch)).append("\n"); + sb.append(" patchType: ").append(toIndentedString(patchType)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} 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 27d4f9bab7..cbfc96c7a5 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -29,7 +29,7 @@ * NamedRuleWithOperations is a tuple of Operations and Resources with ResourceNames. */ @ApiModel(description = "NamedRuleWithOperations is a tuple of Operations and Resources with ResourceNames.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") public class V1alpha1NamedRuleWithOperations { public static final String SERIALIZED_NAME_API_GROUPS = "apiGroups"; @SerializedName(SERIALIZED_NAME_API_GROUPS) 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 3aaa3d9f4e..a7555fc16d 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -27,7 +27,7 @@ * ParamKind is a tuple of Group Kind and Version. */ @ApiModel(description = "ParamKind is a tuple of Group Kind and Version.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") public class V1alpha1ParamKind { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) 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 c3b7dd84f2..82c610da0b 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -28,7 +28,7 @@ * ParamRef describes how to locate the params to be used as input to expressions of rules applied by a policy binding. */ @ApiModel(description = "ParamRef describes how to locate the params to be used as input to expressions of rules applied by a policy binding.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") public class V1alpha1ParamRef { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ParentReference.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ParentReference.java deleted file mode 100644 index a42624cb73..0000000000 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ParentReference.java +++ /dev/null @@ -1,214 +0,0 @@ -/* -Copyright 2023 The Kubernetes Authors. -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at -http://www.apache.org/licenses/LICENSE-2.0 -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ -package io.kubernetes.client.openapi.models; - -import java.util.Objects; -import java.util.Arrays; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -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; - -/** - * ParentReference describes a reference to a parent object. - */ -@ApiModel(description = "ParentReference describes a reference to a parent object.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") -public class V1alpha1ParentReference { - public static final String SERIALIZED_NAME_GROUP = "group"; - @SerializedName(SERIALIZED_NAME_GROUP) - private String group; - - public static final String SERIALIZED_NAME_NAME = "name"; - @SerializedName(SERIALIZED_NAME_NAME) - private String name; - - public static final String SERIALIZED_NAME_NAMESPACE = "namespace"; - @SerializedName(SERIALIZED_NAME_NAMESPACE) - private String namespace; - - public static final String SERIALIZED_NAME_RESOURCE = "resource"; - @SerializedName(SERIALIZED_NAME_RESOURCE) - private String resource; - - public static final String SERIALIZED_NAME_UID = "uid"; - @SerializedName(SERIALIZED_NAME_UID) - private String uid; - - - public V1alpha1ParentReference group(String group) { - - this.group = group; - return this; - } - - /** - * Group is the group of the object being referenced. - * @return group - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "Group is the group of the object being referenced.") - - public String getGroup() { - return group; - } - - - public void setGroup(String group) { - this.group = group; - } - - - public V1alpha1ParentReference name(String name) { - - this.name = name; - return this; - } - - /** - * Name is the name of the object being referenced. - * @return name - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "Name is the name of the object being referenced.") - - public String getName() { - return name; - } - - - public void setName(String name) { - this.name = name; - } - - - public V1alpha1ParentReference namespace(String namespace) { - - this.namespace = namespace; - return this; - } - - /** - * Namespace is the namespace of the object being referenced. - * @return namespace - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "Namespace is the namespace of the object being referenced.") - - public String getNamespace() { - return namespace; - } - - - public void setNamespace(String namespace) { - this.namespace = namespace; - } - - - public V1alpha1ParentReference resource(String resource) { - - this.resource = resource; - return this; - } - - /** - * Resource is the resource of the object being referenced. - * @return resource - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "Resource is the resource of the object being referenced.") - - public String getResource() { - return resource; - } - - - public void setResource(String resource) { - this.resource = resource; - } - - - public V1alpha1ParentReference uid(String uid) { - - this.uid = uid; - return this; - } - - /** - * UID is the uid of the object being referenced. - * @return uid - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "UID is the uid of the object being referenced.") - - public String getUid() { - return uid; - } - - - public void setUid(String uid) { - this.uid = uid; - } - - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1alpha1ParentReference v1alpha1ParentReference = (V1alpha1ParentReference) o; - return Objects.equals(this.group, v1alpha1ParentReference.group) && - Objects.equals(this.name, v1alpha1ParentReference.name) && - Objects.equals(this.namespace, v1alpha1ParentReference.namespace) && - Objects.equals(this.resource, v1alpha1ParentReference.resource) && - Objects.equals(this.uid, v1alpha1ParentReference.uid); - } - - @Override - public int hashCode() { - return Objects.hash(group, name, namespace, resource, uid); - } - - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class V1alpha1ParentReference {\n"); - sb.append(" group: ").append(toIndentedString(group)).append("\n"); - sb.append(" name: ").append(toIndentedString(name)).append("\n"); - sb.append(" namespace: ").append(toIndentedString(namespace)).append("\n"); - sb.append(" resource: ").append(toIndentedString(resource)).append("\n"); - sb.append(" uid: ").append(toIndentedString(uid)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(java.lang.Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - -} 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 deleted file mode 100644 index 90b96f92fc..0000000000 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1SelfSubjectReview.java +++ /dev/null @@ -1,187 +0,0 @@ -/* -Copyright 2023 The Kubernetes Authors. -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at -http://www.apache.org/licenses/LICENSE-2.0 -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ -package io.kubernetes.client.openapi.models; - -import java.util.Objects; -import java.util.Arrays; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -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; - -/** - * 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. - */ -@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.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") -public class V1alpha1SelfSubjectReview implements io.kubernetes.client.common.KubernetesObject { - public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; - @SerializedName(SERIALIZED_NAME_API_VERSION) - private String apiVersion; - - public static final String SERIALIZED_NAME_KIND = "kind"; - @SerializedName(SERIALIZED_NAME_KIND) - private String kind; - - public static final String SERIALIZED_NAME_METADATA = "metadata"; - @SerializedName(SERIALIZED_NAME_METADATA) - private V1ObjectMeta metadata; - - public static final String SERIALIZED_NAME_STATUS = "status"; - @SerializedName(SERIALIZED_NAME_STATUS) - private V1alpha1SelfSubjectReviewStatus status; - - - public V1alpha1SelfSubjectReview apiVersion(String apiVersion) { - - this.apiVersion = apiVersion; - return this; - } - - /** - * 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 - * @return apiVersion - **/ - @javax.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; - } - - - public void setApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - } - - - public V1alpha1SelfSubjectReview kind(String kind) { - - this.kind = kind; - return this; - } - - /** - * 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 - * @return kind - **/ - @javax.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; - } - - - public void setKind(String kind) { - this.kind = kind; - } - - - public V1alpha1SelfSubjectReview metadata(V1ObjectMeta metadata) { - - this.metadata = metadata; - return this; - } - - /** - * Get metadata - * @return metadata - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public V1ObjectMeta getMetadata() { - return metadata; - } - - - public void setMetadata(V1ObjectMeta metadata) { - this.metadata = metadata; - } - - - public V1alpha1SelfSubjectReview status(V1alpha1SelfSubjectReviewStatus status) { - - this.status = status; - return this; - } - - /** - * Get status - * @return status - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public V1alpha1SelfSubjectReviewStatus getStatus() { - return status; - } - - - public void setStatus(V1alpha1SelfSubjectReviewStatus status) { - this.status = status; - } - - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1alpha1SelfSubjectReview v1alpha1SelfSubjectReview = (V1alpha1SelfSubjectReview) o; - return Objects.equals(this.apiVersion, v1alpha1SelfSubjectReview.apiVersion) && - Objects.equals(this.kind, v1alpha1SelfSubjectReview.kind) && - Objects.equals(this.metadata, v1alpha1SelfSubjectReview.metadata) && - Objects.equals(this.status, v1alpha1SelfSubjectReview.status); - } - - @Override - public int hashCode() { - return Objects.hash(apiVersion, kind, metadata, status); - } - - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class V1alpha1SelfSubjectReview {\n"); - sb.append(" apiVersion: ").append(toIndentedString(apiVersion)).append("\n"); - sb.append(" kind: ").append(toIndentedString(kind)).append("\n"); - sb.append(" metadata: ").append(toIndentedString(metadata)).append("\n"); - sb.append(" status: ").append(toIndentedString(status)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(java.lang.Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - -} 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 deleted file mode 100644 index 11405dc17c..0000000000 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1SelfSubjectReviewStatus.java +++ /dev/null @@ -1,99 +0,0 @@ -/* -Copyright 2023 The Kubernetes Authors. -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at -http://www.apache.org/licenses/LICENSE-2.0 -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ -package io.kubernetes.client.openapi.models; - -import java.util.Objects; -import java.util.Arrays; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -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; - -/** - * SelfSubjectReviewStatus is filled by the kube-apiserver and sent back to a user. - */ -@ApiModel(description = "SelfSubjectReviewStatus is filled by the kube-apiserver and sent back to a user.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") -public class V1alpha1SelfSubjectReviewStatus { - public static final String SERIALIZED_NAME_USER_INFO = "userInfo"; - @SerializedName(SERIALIZED_NAME_USER_INFO) - private V1UserInfo userInfo; - - - public V1alpha1SelfSubjectReviewStatus userInfo(V1UserInfo userInfo) { - - this.userInfo = userInfo; - return this; - } - - /** - * Get userInfo - * @return userInfo - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public V1UserInfo getUserInfo() { - return userInfo; - } - - - public void setUserInfo(V1UserInfo userInfo) { - this.userInfo = userInfo; - } - - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1alpha1SelfSubjectReviewStatus v1alpha1SelfSubjectReviewStatus = (V1alpha1SelfSubjectReviewStatus) o; - return Objects.equals(this.userInfo, v1alpha1SelfSubjectReviewStatus.userInfo); - } - - @Override - public int hashCode() { - return Objects.hash(userInfo); - } - - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class V1alpha1SelfSubjectReviewStatus {\n"); - sb.append(" userInfo: ").append(toIndentedString(userInfo)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(java.lang.Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - -} 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 d1c19c18a6..e2fb13d70f 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -29,7 +29,7 @@ * An API server instance reports the version it can decode and the version it encodes objects to when persisting objects in the backend. */ @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.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") public class V1alpha1ServerStorageVersion { public static final String SERIALIZED_NAME_API_SERVER_I_D = "apiServerID"; @SerializedName(SERIALIZED_NAME_API_SERVER_I_D) 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 149ac41278..4ff0e3c197 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -29,7 +29,7 @@ * Storage version of a specific resource. */ @ApiModel(description = "Storage version of a specific resource.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") public class V1alpha1StorageVersion implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) 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 b2aa4e9bd9..f71d226583 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -28,7 +28,7 @@ * Describes the state of the storageVersion at a certain point. */ @ApiModel(description = "Describes the state of the storageVersion at a certain point.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") public class V1alpha1StorageVersionCondition { public static final String SERIALIZED_NAME_LAST_TRANSITION_TIME = "lastTransitionTime"; @SerializedName(SERIALIZED_NAME_LAST_TRANSITION_TIME) @@ -88,8 +88,7 @@ public V1alpha1StorageVersionCondition message(String message) { * A human readable message indicating details about the transition. * @return message **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "A human readable message indicating details about the transition.") + @ApiModelProperty(required = true, value = "A human readable message indicating details about the transition.") public String getMessage() { return message; 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 5647908426..be4911e63c 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -31,7 +31,7 @@ * A list of StorageVersions. */ @ApiModel(description = "A list of StorageVersions.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") public class V1alpha1StorageVersionList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) 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 new file mode 100644 index 0000000000..7dc89a5709 --- /dev/null +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionMigration.java @@ -0,0 +1,217 @@ +/* +Copyright 2025 The Kubernetes Authors. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at +http://www.apache.org/licenses/LICENSE-2.0 +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ +package io.kubernetes.client.openapi.models; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +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; + +/** + * StorageVersionMigration represents a migration of stored data to the latest storage version. + */ +@ApiModel(description = "StorageVersionMigration represents a migration of stored data to the latest storage version.") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +public class V1alpha1StorageVersionMigration implements io.kubernetes.client.common.KubernetesObject { + public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; + @SerializedName(SERIALIZED_NAME_API_VERSION) + private String apiVersion; + + public static final String SERIALIZED_NAME_KIND = "kind"; + @SerializedName(SERIALIZED_NAME_KIND) + private String kind; + + public static final String SERIALIZED_NAME_METADATA = "metadata"; + @SerializedName(SERIALIZED_NAME_METADATA) + private V1ObjectMeta metadata; + + public static final String SERIALIZED_NAME_SPEC = "spec"; + @SerializedName(SERIALIZED_NAME_SPEC) + private V1alpha1StorageVersionMigrationSpec spec; + + public static final String SERIALIZED_NAME_STATUS = "status"; + @SerializedName(SERIALIZED_NAME_STATUS) + private V1alpha1StorageVersionMigrationStatus status; + + + public V1alpha1StorageVersionMigration apiVersion(String apiVersion) { + + this.apiVersion = apiVersion; + return this; + } + + /** + * 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 + * @return apiVersion + **/ + @javax.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; + } + + + public void setApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + } + + + public V1alpha1StorageVersionMigration kind(String kind) { + + this.kind = kind; + return this; + } + + /** + * 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 + * @return kind + **/ + @javax.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; + } + + + public void setKind(String kind) { + this.kind = kind; + } + + + public V1alpha1StorageVersionMigration metadata(V1ObjectMeta metadata) { + + this.metadata = metadata; + return this; + } + + /** + * Get metadata + * @return metadata + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public V1ObjectMeta getMetadata() { + return metadata; + } + + + public void setMetadata(V1ObjectMeta metadata) { + this.metadata = metadata; + } + + + public V1alpha1StorageVersionMigration spec(V1alpha1StorageVersionMigrationSpec spec) { + + this.spec = spec; + return this; + } + + /** + * Get spec + * @return spec + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public V1alpha1StorageVersionMigrationSpec getSpec() { + return spec; + } + + + public void setSpec(V1alpha1StorageVersionMigrationSpec spec) { + this.spec = spec; + } + + + public V1alpha1StorageVersionMigration status(V1alpha1StorageVersionMigrationStatus status) { + + this.status = status; + return this; + } + + /** + * Get status + * @return status + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public V1alpha1StorageVersionMigrationStatus getStatus() { + return status; + } + + + public void setStatus(V1alpha1StorageVersionMigrationStatus status) { + this.status = status; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V1alpha1StorageVersionMigration v1alpha1StorageVersionMigration = (V1alpha1StorageVersionMigration) o; + return Objects.equals(this.apiVersion, v1alpha1StorageVersionMigration.apiVersion) && + Objects.equals(this.kind, v1alpha1StorageVersionMigration.kind) && + Objects.equals(this.metadata, v1alpha1StorageVersionMigration.metadata) && + Objects.equals(this.spec, v1alpha1StorageVersionMigration.spec) && + Objects.equals(this.status, v1alpha1StorageVersionMigration.status); + } + + @Override + public int hashCode() { + return Objects.hash(apiVersion, kind, metadata, spec, status); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class V1alpha1StorageVersionMigration {\n"); + sb.append(" apiVersion: ").append(toIndentedString(apiVersion)).append("\n"); + sb.append(" kind: ").append(toIndentedString(kind)).append("\n"); + sb.append(" metadata: ").append(toIndentedString(metadata)).append("\n"); + sb.append(" spec: ").append(toIndentedString(spec)).append("\n"); + sb.append(" status: ").append(toIndentedString(status)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} 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 new file mode 100644 index 0000000000..672528864b --- /dev/null +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionMigrationList.java @@ -0,0 +1,193 @@ +/* +Copyright 2025 The Kubernetes Authors. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at +http://www.apache.org/licenses/LICENSE-2.0 +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ +package io.kubernetes.client.openapi.models; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +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.List; + +/** + * StorageVersionMigrationList is a collection of storage version migrations. + */ +@ApiModel(description = "StorageVersionMigrationList is a collection of storage version migrations.") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +public class V1alpha1StorageVersionMigrationList implements io.kubernetes.client.common.KubernetesListObject { + public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; + @SerializedName(SERIALIZED_NAME_API_VERSION) + private String apiVersion; + + public static final String SERIALIZED_NAME_ITEMS = "items"; + @SerializedName(SERIALIZED_NAME_ITEMS) + private List items = new ArrayList<>(); + + public static final String SERIALIZED_NAME_KIND = "kind"; + @SerializedName(SERIALIZED_NAME_KIND) + private String kind; + + public static final String SERIALIZED_NAME_METADATA = "metadata"; + @SerializedName(SERIALIZED_NAME_METADATA) + private V1ListMeta metadata; + + + public V1alpha1StorageVersionMigrationList apiVersion(String apiVersion) { + + this.apiVersion = apiVersion; + return this; + } + + /** + * 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 + * @return apiVersion + **/ + @javax.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; + } + + + public void setApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + } + + + public V1alpha1StorageVersionMigrationList items(List items) { + + this.items = items; + return this; + } + + public V1alpha1StorageVersionMigrationList addItemsItem(V1alpha1StorageVersionMigration itemsItem) { + this.items.add(itemsItem); + return this; + } + + /** + * Items is the list of StorageVersionMigration + * @return items + **/ + @ApiModelProperty(required = true, value = "Items is the list of StorageVersionMigration") + + public List getItems() { + return items; + } + + + public void setItems(List items) { + this.items = items; + } + + + public V1alpha1StorageVersionMigrationList kind(String kind) { + + this.kind = kind; + return this; + } + + /** + * 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 + * @return kind + **/ + @javax.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; + } + + + public void setKind(String kind) { + this.kind = kind; + } + + + public V1alpha1StorageVersionMigrationList metadata(V1ListMeta metadata) { + + this.metadata = metadata; + return this; + } + + /** + * Get metadata + * @return metadata + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public V1ListMeta getMetadata() { + return metadata; + } + + + public void setMetadata(V1ListMeta metadata) { + this.metadata = metadata; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V1alpha1StorageVersionMigrationList v1alpha1StorageVersionMigrationList = (V1alpha1StorageVersionMigrationList) o; + return Objects.equals(this.apiVersion, v1alpha1StorageVersionMigrationList.apiVersion) && + Objects.equals(this.items, v1alpha1StorageVersionMigrationList.items) && + Objects.equals(this.kind, v1alpha1StorageVersionMigrationList.kind) && + Objects.equals(this.metadata, v1alpha1StorageVersionMigrationList.metadata); + } + + @Override + public int hashCode() { + return Objects.hash(apiVersion, items, kind, metadata); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class V1alpha1StorageVersionMigrationList {\n"); + sb.append(" apiVersion: ").append(toIndentedString(apiVersion)).append("\n"); + sb.append(" items: ").append(toIndentedString(items)).append("\n"); + sb.append(" kind: ").append(toIndentedString(kind)).append("\n"); + sb.append(" metadata: ").append(toIndentedString(metadata)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} 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 new file mode 100644 index 0000000000..8fb82ae6f0 --- /dev/null +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionMigrationSpec.java @@ -0,0 +1,127 @@ +/* +Copyright 2025 The Kubernetes Authors. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at +http://www.apache.org/licenses/LICENSE-2.0 +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ +package io.kubernetes.client.openapi.models; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +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; + +/** + * Spec of the storage version migration. + */ +@ApiModel(description = "Spec of the storage version migration.") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +public class V1alpha1StorageVersionMigrationSpec { + public static final String SERIALIZED_NAME_CONTINUE_TOKEN = "continueToken"; + @SerializedName(SERIALIZED_NAME_CONTINUE_TOKEN) + private String continueToken; + + public static final String SERIALIZED_NAME_RESOURCE = "resource"; + @SerializedName(SERIALIZED_NAME_RESOURCE) + private V1alpha1GroupVersionResource resource; + + + public V1alpha1StorageVersionMigrationSpec continueToken(String continueToken) { + + this.continueToken = continueToken; + return this; + } + + /** + * 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. + * @return continueToken + **/ + @javax.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; + } + + + public void setContinueToken(String continueToken) { + this.continueToken = continueToken; + } + + + public V1alpha1StorageVersionMigrationSpec resource(V1alpha1GroupVersionResource resource) { + + this.resource = resource; + return this; + } + + /** + * Get resource + * @return resource + **/ + @ApiModelProperty(required = true, value = "") + + public V1alpha1GroupVersionResource getResource() { + return resource; + } + + + public void setResource(V1alpha1GroupVersionResource resource) { + this.resource = resource; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V1alpha1StorageVersionMigrationSpec v1alpha1StorageVersionMigrationSpec = (V1alpha1StorageVersionMigrationSpec) o; + return Objects.equals(this.continueToken, v1alpha1StorageVersionMigrationSpec.continueToken) && + Objects.equals(this.resource, v1alpha1StorageVersionMigrationSpec.resource); + } + + @Override + public int hashCode() { + return Objects.hash(continueToken, resource); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class V1alpha1StorageVersionMigrationSpec {\n"); + sb.append(" continueToken: ").append(toIndentedString(continueToken)).append("\n"); + sb.append(" resource: ").append(toIndentedString(resource)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} 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 new file mode 100644 index 0000000000..33c428eb4c --- /dev/null +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionMigrationStatus.java @@ -0,0 +1,138 @@ +/* +Copyright 2025 The Kubernetes Authors. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at +http://www.apache.org/licenses/LICENSE-2.0 +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ +package io.kubernetes.client.openapi.models; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +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.List; + +/** + * Status of the storage version migration. + */ +@ApiModel(description = "Status of the storage version migration.") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +public class V1alpha1StorageVersionMigrationStatus { + public static final String SERIALIZED_NAME_CONDITIONS = "conditions"; + @SerializedName(SERIALIZED_NAME_CONDITIONS) + private List conditions = null; + + public static final String SERIALIZED_NAME_RESOURCE_VERSION = "resourceVersion"; + @SerializedName(SERIALIZED_NAME_RESOURCE_VERSION) + private String resourceVersion; + + + public V1alpha1StorageVersionMigrationStatus conditions(List conditions) { + + this.conditions = conditions; + return this; + } + + public V1alpha1StorageVersionMigrationStatus addConditionsItem(V1alpha1MigrationCondition conditionsItem) { + if (this.conditions == null) { + this.conditions = new ArrayList<>(); + } + this.conditions.add(conditionsItem); + return this; + } + + /** + * The latest available observations of the migration's current state. + * @return conditions + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "The latest available observations of the migration's current state.") + + public List getConditions() { + return conditions; + } + + + public void setConditions(List conditions) { + this.conditions = conditions; + } + + + public V1alpha1StorageVersionMigrationStatus resourceVersion(String resourceVersion) { + + this.resourceVersion = resourceVersion; + return this; + } + + /** + * 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. + * @return resourceVersion + **/ + @javax.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; + } + + + public void setResourceVersion(String resourceVersion) { + this.resourceVersion = resourceVersion; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V1alpha1StorageVersionMigrationStatus v1alpha1StorageVersionMigrationStatus = (V1alpha1StorageVersionMigrationStatus) o; + return Objects.equals(this.conditions, v1alpha1StorageVersionMigrationStatus.conditions) && + Objects.equals(this.resourceVersion, v1alpha1StorageVersionMigrationStatus.resourceVersion); + } + + @Override + public int hashCode() { + return Objects.hash(conditions, resourceVersion); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class V1alpha1StorageVersionMigrationStatus {\n"); + sb.append(" conditions: ").append(toIndentedString(conditions)).append("\n"); + sb.append(" resourceVersion: ").append(toIndentedString(resourceVersion)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} 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 d214843d16..9e15b1e941 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -31,7 +31,7 @@ * API server instances report the versions they can decode and the version they encode objects to when persisting objects in the backend. */ @ApiModel(description = "API server instances report the versions they can decode and the version they encode objects to when persisting objects in the backend.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") public class V1alpha1StorageVersionStatus { public static final String SERIALIZED_NAME_COMMON_ENCODING_VERSION = "commonEncodingVersion"; @SerializedName(SERIALIZED_NAME_COMMON_ENCODING_VERSION) 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 deleted file mode 100644 index 456ea6a0bb..0000000000 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1TypeChecking.java +++ /dev/null @@ -1,109 +0,0 @@ -/* -Copyright 2023 The Kubernetes Authors. -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at -http://www.apache.org/licenses/LICENSE-2.0 -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ -package io.kubernetes.client.openapi.models; - -import java.util.Objects; -import java.util.Arrays; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -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.List; - -/** - * TypeChecking contains results of type checking the expressions in the ValidatingAdmissionPolicy - */ -@ApiModel(description = "TypeChecking contains results of type checking the expressions in the ValidatingAdmissionPolicy") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") -public class V1alpha1TypeChecking { - public static final String SERIALIZED_NAME_EXPRESSION_WARNINGS = "expressionWarnings"; - @SerializedName(SERIALIZED_NAME_EXPRESSION_WARNINGS) - private List expressionWarnings = null; - - - public V1alpha1TypeChecking expressionWarnings(List expressionWarnings) { - - this.expressionWarnings = expressionWarnings; - return this; - } - - public V1alpha1TypeChecking addExpressionWarningsItem(V1alpha1ExpressionWarning expressionWarningsItem) { - if (this.expressionWarnings == null) { - this.expressionWarnings = new ArrayList<>(); - } - this.expressionWarnings.add(expressionWarningsItem); - return this; - } - - /** - * The type checking warnings for each expression. - * @return expressionWarnings - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "The type checking warnings for each expression.") - - public List getExpressionWarnings() { - return expressionWarnings; - } - - - public void setExpressionWarnings(List expressionWarnings) { - this.expressionWarnings = expressionWarnings; - } - - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1alpha1TypeChecking v1alpha1TypeChecking = (V1alpha1TypeChecking) o; - return Objects.equals(this.expressionWarnings, v1alpha1TypeChecking.expressionWarnings); - } - - @Override - public int hashCode() { - return Objects.hash(expressionWarnings); - } - - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class V1alpha1TypeChecking {\n"); - sb.append(" expressionWarnings: ").append(toIndentedString(expressionWarnings)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(java.lang.Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - -} 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 deleted file mode 100644 index ec186cea0b..0000000000 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ValidatingAdmissionPolicy.java +++ /dev/null @@ -1,217 +0,0 @@ -/* -Copyright 2023 The Kubernetes Authors. -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at -http://www.apache.org/licenses/LICENSE-2.0 -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ -package io.kubernetes.client.openapi.models; - -import java.util.Objects; -import java.util.Arrays; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -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; - -/** - * ValidatingAdmissionPolicy describes the definition of an admission validation policy that accepts or rejects an object without changing it. - */ -@ApiModel(description = "ValidatingAdmissionPolicy describes the definition of an admission validation policy that accepts or rejects an object without changing it.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") -public class V1alpha1ValidatingAdmissionPolicy implements io.kubernetes.client.common.KubernetesObject { - public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; - @SerializedName(SERIALIZED_NAME_API_VERSION) - private String apiVersion; - - public static final String SERIALIZED_NAME_KIND = "kind"; - @SerializedName(SERIALIZED_NAME_KIND) - private String kind; - - public static final String SERIALIZED_NAME_METADATA = "metadata"; - @SerializedName(SERIALIZED_NAME_METADATA) - private V1ObjectMeta metadata; - - public static final String SERIALIZED_NAME_SPEC = "spec"; - @SerializedName(SERIALIZED_NAME_SPEC) - private V1alpha1ValidatingAdmissionPolicySpec spec; - - public static final String SERIALIZED_NAME_STATUS = "status"; - @SerializedName(SERIALIZED_NAME_STATUS) - private V1alpha1ValidatingAdmissionPolicyStatus status; - - - public V1alpha1ValidatingAdmissionPolicy apiVersion(String apiVersion) { - - this.apiVersion = apiVersion; - return this; - } - - /** - * 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 - * @return apiVersion - **/ - @javax.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; - } - - - public void setApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - } - - - public V1alpha1ValidatingAdmissionPolicy kind(String kind) { - - this.kind = kind; - return this; - } - - /** - * 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 - * @return kind - **/ - @javax.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; - } - - - public void setKind(String kind) { - this.kind = kind; - } - - - public V1alpha1ValidatingAdmissionPolicy metadata(V1ObjectMeta metadata) { - - this.metadata = metadata; - return this; - } - - /** - * Get metadata - * @return metadata - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public V1ObjectMeta getMetadata() { - return metadata; - } - - - public void setMetadata(V1ObjectMeta metadata) { - this.metadata = metadata; - } - - - public V1alpha1ValidatingAdmissionPolicy spec(V1alpha1ValidatingAdmissionPolicySpec spec) { - - this.spec = spec; - return this; - } - - /** - * Get spec - * @return spec - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public V1alpha1ValidatingAdmissionPolicySpec getSpec() { - return spec; - } - - - public void setSpec(V1alpha1ValidatingAdmissionPolicySpec spec) { - this.spec = spec; - } - - - public V1alpha1ValidatingAdmissionPolicy status(V1alpha1ValidatingAdmissionPolicyStatus status) { - - this.status = status; - return this; - } - - /** - * Get status - * @return status - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public V1alpha1ValidatingAdmissionPolicyStatus getStatus() { - return status; - } - - - public void setStatus(V1alpha1ValidatingAdmissionPolicyStatus status) { - this.status = status; - } - - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1alpha1ValidatingAdmissionPolicy v1alpha1ValidatingAdmissionPolicy = (V1alpha1ValidatingAdmissionPolicy) o; - return Objects.equals(this.apiVersion, v1alpha1ValidatingAdmissionPolicy.apiVersion) && - Objects.equals(this.kind, v1alpha1ValidatingAdmissionPolicy.kind) && - Objects.equals(this.metadata, v1alpha1ValidatingAdmissionPolicy.metadata) && - Objects.equals(this.spec, v1alpha1ValidatingAdmissionPolicy.spec) && - Objects.equals(this.status, v1alpha1ValidatingAdmissionPolicy.status); - } - - @Override - public int hashCode() { - return Objects.hash(apiVersion, kind, metadata, spec, status); - } - - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class V1alpha1ValidatingAdmissionPolicy {\n"); - sb.append(" apiVersion: ").append(toIndentedString(apiVersion)).append("\n"); - sb.append(" kind: ").append(toIndentedString(kind)).append("\n"); - sb.append(" metadata: ").append(toIndentedString(metadata)).append("\n"); - sb.append(" spec: ").append(toIndentedString(spec)).append("\n"); - sb.append(" status: ").append(toIndentedString(status)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(java.lang.Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - -} 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 deleted file mode 100644 index ae05d3102a..0000000000 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ValidatingAdmissionPolicyBinding.java +++ /dev/null @@ -1,187 +0,0 @@ -/* -Copyright 2023 The Kubernetes Authors. -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at -http://www.apache.org/licenses/LICENSE-2.0 -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ -package io.kubernetes.client.openapi.models; - -import java.util.Objects; -import java.util.Arrays; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -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; - -/** - * 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. - */ -@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.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") -public class V1alpha1ValidatingAdmissionPolicyBinding implements io.kubernetes.client.common.KubernetesObject { - public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; - @SerializedName(SERIALIZED_NAME_API_VERSION) - private String apiVersion; - - public static final String SERIALIZED_NAME_KIND = "kind"; - @SerializedName(SERIALIZED_NAME_KIND) - private String kind; - - public static final String SERIALIZED_NAME_METADATA = "metadata"; - @SerializedName(SERIALIZED_NAME_METADATA) - private V1ObjectMeta metadata; - - public static final String SERIALIZED_NAME_SPEC = "spec"; - @SerializedName(SERIALIZED_NAME_SPEC) - private V1alpha1ValidatingAdmissionPolicyBindingSpec spec; - - - public V1alpha1ValidatingAdmissionPolicyBinding apiVersion(String apiVersion) { - - this.apiVersion = apiVersion; - return this; - } - - /** - * 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 - * @return apiVersion - **/ - @javax.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; - } - - - public void setApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - } - - - public V1alpha1ValidatingAdmissionPolicyBinding kind(String kind) { - - this.kind = kind; - return this; - } - - /** - * 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 - * @return kind - **/ - @javax.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; - } - - - public void setKind(String kind) { - this.kind = kind; - } - - - public V1alpha1ValidatingAdmissionPolicyBinding metadata(V1ObjectMeta metadata) { - - this.metadata = metadata; - return this; - } - - /** - * Get metadata - * @return metadata - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public V1ObjectMeta getMetadata() { - return metadata; - } - - - public void setMetadata(V1ObjectMeta metadata) { - this.metadata = metadata; - } - - - public V1alpha1ValidatingAdmissionPolicyBinding spec(V1alpha1ValidatingAdmissionPolicyBindingSpec spec) { - - this.spec = spec; - return this; - } - - /** - * Get spec - * @return spec - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public V1alpha1ValidatingAdmissionPolicyBindingSpec getSpec() { - return spec; - } - - - public void setSpec(V1alpha1ValidatingAdmissionPolicyBindingSpec spec) { - this.spec = spec; - } - - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1alpha1ValidatingAdmissionPolicyBinding v1alpha1ValidatingAdmissionPolicyBinding = (V1alpha1ValidatingAdmissionPolicyBinding) o; - return Objects.equals(this.apiVersion, v1alpha1ValidatingAdmissionPolicyBinding.apiVersion) && - Objects.equals(this.kind, v1alpha1ValidatingAdmissionPolicyBinding.kind) && - Objects.equals(this.metadata, v1alpha1ValidatingAdmissionPolicyBinding.metadata) && - Objects.equals(this.spec, v1alpha1ValidatingAdmissionPolicyBinding.spec); - } - - @Override - public int hashCode() { - return Objects.hash(apiVersion, kind, metadata, spec); - } - - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class V1alpha1ValidatingAdmissionPolicyBinding {\n"); - sb.append(" apiVersion: ").append(toIndentedString(apiVersion)).append("\n"); - sb.append(" kind: ").append(toIndentedString(kind)).append("\n"); - sb.append(" metadata: ").append(toIndentedString(metadata)).append("\n"); - sb.append(" spec: ").append(toIndentedString(spec)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(java.lang.Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - -} 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 deleted file mode 100644 index 84075b7ff2..0000000000 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ValidatingAdmissionPolicyBindingList.java +++ /dev/null @@ -1,197 +0,0 @@ -/* -Copyright 2023 The Kubernetes Authors. -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at -http://www.apache.org/licenses/LICENSE-2.0 -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ -package io.kubernetes.client.openapi.models; - -import java.util.Objects; -import java.util.Arrays; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -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.List; - -/** - * ValidatingAdmissionPolicyBindingList is a list of ValidatingAdmissionPolicyBinding. - */ -@ApiModel(description = "ValidatingAdmissionPolicyBindingList is a list of ValidatingAdmissionPolicyBinding.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") -public class V1alpha1ValidatingAdmissionPolicyBindingList implements io.kubernetes.client.common.KubernetesListObject { - public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; - @SerializedName(SERIALIZED_NAME_API_VERSION) - private String apiVersion; - - public static final String SERIALIZED_NAME_ITEMS = "items"; - @SerializedName(SERIALIZED_NAME_ITEMS) - private List items = null; - - public static final String SERIALIZED_NAME_KIND = "kind"; - @SerializedName(SERIALIZED_NAME_KIND) - private String kind; - - public static final String SERIALIZED_NAME_METADATA = "metadata"; - @SerializedName(SERIALIZED_NAME_METADATA) - private V1ListMeta metadata; - - - public V1alpha1ValidatingAdmissionPolicyBindingList apiVersion(String apiVersion) { - - this.apiVersion = apiVersion; - return this; - } - - /** - * 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 - * @return apiVersion - **/ - @javax.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; - } - - - public void setApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - } - - - public V1alpha1ValidatingAdmissionPolicyBindingList items(List items) { - - this.items = items; - return this; - } - - public V1alpha1ValidatingAdmissionPolicyBindingList addItemsItem(V1alpha1ValidatingAdmissionPolicyBinding itemsItem) { - if (this.items == null) { - this.items = new ArrayList<>(); - } - this.items.add(itemsItem); - return this; - } - - /** - * List of PolicyBinding. - * @return items - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "List of PolicyBinding.") - - public List getItems() { - return items; - } - - - public void setItems(List items) { - this.items = items; - } - - - public V1alpha1ValidatingAdmissionPolicyBindingList kind(String kind) { - - this.kind = kind; - return this; - } - - /** - * 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 - * @return kind - **/ - @javax.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; - } - - - public void setKind(String kind) { - this.kind = kind; - } - - - public V1alpha1ValidatingAdmissionPolicyBindingList metadata(V1ListMeta metadata) { - - this.metadata = metadata; - return this; - } - - /** - * Get metadata - * @return metadata - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public V1ListMeta getMetadata() { - return metadata; - } - - - public void setMetadata(V1ListMeta metadata) { - this.metadata = metadata; - } - - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1alpha1ValidatingAdmissionPolicyBindingList v1alpha1ValidatingAdmissionPolicyBindingList = (V1alpha1ValidatingAdmissionPolicyBindingList) o; - return Objects.equals(this.apiVersion, v1alpha1ValidatingAdmissionPolicyBindingList.apiVersion) && - Objects.equals(this.items, v1alpha1ValidatingAdmissionPolicyBindingList.items) && - Objects.equals(this.kind, v1alpha1ValidatingAdmissionPolicyBindingList.kind) && - Objects.equals(this.metadata, v1alpha1ValidatingAdmissionPolicyBindingList.metadata); - } - - @Override - public int hashCode() { - return Objects.hash(apiVersion, items, kind, metadata); - } - - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class V1alpha1ValidatingAdmissionPolicyBindingList {\n"); - sb.append(" apiVersion: ").append(toIndentedString(apiVersion)).append("\n"); - sb.append(" items: ").append(toIndentedString(items)).append("\n"); - sb.append(" kind: ").append(toIndentedString(kind)).append("\n"); - sb.append(" metadata: ").append(toIndentedString(metadata)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(java.lang.Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - -} 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 deleted file mode 100644 index a47ca1f6c5..0000000000 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ValidatingAdmissionPolicyBindingSpec.java +++ /dev/null @@ -1,197 +0,0 @@ -/* -Copyright 2023 The Kubernetes Authors. -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at -http://www.apache.org/licenses/LICENSE-2.0 -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ -package io.kubernetes.client.openapi.models; - -import java.util.Objects; -import java.util.Arrays; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -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.List; - -/** - * ValidatingAdmissionPolicyBindingSpec is the specification of the ValidatingAdmissionPolicyBinding. - */ -@ApiModel(description = "ValidatingAdmissionPolicyBindingSpec is the specification of the ValidatingAdmissionPolicyBinding.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") -public class V1alpha1ValidatingAdmissionPolicyBindingSpec { - public static final String SERIALIZED_NAME_MATCH_RESOURCES = "matchResources"; - @SerializedName(SERIALIZED_NAME_MATCH_RESOURCES) - private V1alpha1MatchResources matchResources; - - public static final String SERIALIZED_NAME_PARAM_REF = "paramRef"; - @SerializedName(SERIALIZED_NAME_PARAM_REF) - private V1alpha1ParamRef paramRef; - - public static final String SERIALIZED_NAME_POLICY_NAME = "policyName"; - @SerializedName(SERIALIZED_NAME_POLICY_NAME) - private String policyName; - - public static final String SERIALIZED_NAME_VALIDATION_ACTIONS = "validationActions"; - @SerializedName(SERIALIZED_NAME_VALIDATION_ACTIONS) - private List validationActions = null; - - - public V1alpha1ValidatingAdmissionPolicyBindingSpec matchResources(V1alpha1MatchResources matchResources) { - - this.matchResources = matchResources; - return this; - } - - /** - * Get matchResources - * @return matchResources - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public V1alpha1MatchResources getMatchResources() { - return matchResources; - } - - - public void setMatchResources(V1alpha1MatchResources matchResources) { - this.matchResources = matchResources; - } - - - public V1alpha1ValidatingAdmissionPolicyBindingSpec paramRef(V1alpha1ParamRef paramRef) { - - this.paramRef = paramRef; - return this; - } - - /** - * Get paramRef - * @return paramRef - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public V1alpha1ParamRef getParamRef() { - return paramRef; - } - - - public void setParamRef(V1alpha1ParamRef paramRef) { - this.paramRef = paramRef; - } - - - public V1alpha1ValidatingAdmissionPolicyBindingSpec policyName(String policyName) { - - this.policyName = policyName; - return this; - } - - /** - * 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. - * @return policyName - **/ - @javax.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; - } - - - public void setPolicyName(String policyName) { - this.policyName = policyName; - } - - - public V1alpha1ValidatingAdmissionPolicyBindingSpec validationActions(List validationActions) { - - this.validationActions = validationActions; - return this; - } - - public V1alpha1ValidatingAdmissionPolicyBindingSpec addValidationActionsItem(String validationActionsItem) { - if (this.validationActions == null) { - this.validationActions = new ArrayList<>(); - } - this.validationActions.add(validationActionsItem); - return this; - } - - /** - * 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. - * @return validationActions - **/ - @javax.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; - } - - - public void setValidationActions(List validationActions) { - this.validationActions = validationActions; - } - - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1alpha1ValidatingAdmissionPolicyBindingSpec v1alpha1ValidatingAdmissionPolicyBindingSpec = (V1alpha1ValidatingAdmissionPolicyBindingSpec) o; - return Objects.equals(this.matchResources, v1alpha1ValidatingAdmissionPolicyBindingSpec.matchResources) && - Objects.equals(this.paramRef, v1alpha1ValidatingAdmissionPolicyBindingSpec.paramRef) && - Objects.equals(this.policyName, v1alpha1ValidatingAdmissionPolicyBindingSpec.policyName) && - Objects.equals(this.validationActions, v1alpha1ValidatingAdmissionPolicyBindingSpec.validationActions); - } - - @Override - public int hashCode() { - return Objects.hash(matchResources, paramRef, policyName, validationActions); - } - - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class V1alpha1ValidatingAdmissionPolicyBindingSpec {\n"); - sb.append(" matchResources: ").append(toIndentedString(matchResources)).append("\n"); - sb.append(" paramRef: ").append(toIndentedString(paramRef)).append("\n"); - sb.append(" policyName: ").append(toIndentedString(policyName)).append("\n"); - sb.append(" validationActions: ").append(toIndentedString(validationActions)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(java.lang.Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - -} 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 deleted file mode 100644 index 67b4ccf040..0000000000 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ValidatingAdmissionPolicyList.java +++ /dev/null @@ -1,197 +0,0 @@ -/* -Copyright 2023 The Kubernetes Authors. -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at -http://www.apache.org/licenses/LICENSE-2.0 -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ -package io.kubernetes.client.openapi.models; - -import java.util.Objects; -import java.util.Arrays; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -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.List; - -/** - * ValidatingAdmissionPolicyList is a list of ValidatingAdmissionPolicy. - */ -@ApiModel(description = "ValidatingAdmissionPolicyList is a list of ValidatingAdmissionPolicy.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") -public class V1alpha1ValidatingAdmissionPolicyList implements io.kubernetes.client.common.KubernetesListObject { - public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; - @SerializedName(SERIALIZED_NAME_API_VERSION) - private String apiVersion; - - public static final String SERIALIZED_NAME_ITEMS = "items"; - @SerializedName(SERIALIZED_NAME_ITEMS) - private List items = null; - - public static final String SERIALIZED_NAME_KIND = "kind"; - @SerializedName(SERIALIZED_NAME_KIND) - private String kind; - - public static final String SERIALIZED_NAME_METADATA = "metadata"; - @SerializedName(SERIALIZED_NAME_METADATA) - private V1ListMeta metadata; - - - public V1alpha1ValidatingAdmissionPolicyList apiVersion(String apiVersion) { - - this.apiVersion = apiVersion; - return this; - } - - /** - * 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 - * @return apiVersion - **/ - @javax.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; - } - - - public void setApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - } - - - public V1alpha1ValidatingAdmissionPolicyList items(List items) { - - this.items = items; - return this; - } - - public V1alpha1ValidatingAdmissionPolicyList addItemsItem(V1alpha1ValidatingAdmissionPolicy itemsItem) { - if (this.items == null) { - this.items = new ArrayList<>(); - } - this.items.add(itemsItem); - return this; - } - - /** - * List of ValidatingAdmissionPolicy. - * @return items - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "List of ValidatingAdmissionPolicy.") - - public List getItems() { - return items; - } - - - public void setItems(List items) { - this.items = items; - } - - - public V1alpha1ValidatingAdmissionPolicyList kind(String kind) { - - this.kind = kind; - return this; - } - - /** - * 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 - * @return kind - **/ - @javax.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; - } - - - public void setKind(String kind) { - this.kind = kind; - } - - - public V1alpha1ValidatingAdmissionPolicyList metadata(V1ListMeta metadata) { - - this.metadata = metadata; - return this; - } - - /** - * Get metadata - * @return metadata - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public V1ListMeta getMetadata() { - return metadata; - } - - - public void setMetadata(V1ListMeta metadata) { - this.metadata = metadata; - } - - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1alpha1ValidatingAdmissionPolicyList v1alpha1ValidatingAdmissionPolicyList = (V1alpha1ValidatingAdmissionPolicyList) o; - return Objects.equals(this.apiVersion, v1alpha1ValidatingAdmissionPolicyList.apiVersion) && - Objects.equals(this.items, v1alpha1ValidatingAdmissionPolicyList.items) && - Objects.equals(this.kind, v1alpha1ValidatingAdmissionPolicyList.kind) && - Objects.equals(this.metadata, v1alpha1ValidatingAdmissionPolicyList.metadata); - } - - @Override - public int hashCode() { - return Objects.hash(apiVersion, items, kind, metadata); - } - - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class V1alpha1ValidatingAdmissionPolicyList {\n"); - sb.append(" apiVersion: ").append(toIndentedString(apiVersion)).append("\n"); - sb.append(" items: ").append(toIndentedString(items)).append("\n"); - sb.append(" kind: ").append(toIndentedString(kind)).append("\n"); - sb.append(" metadata: ").append(toIndentedString(metadata)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(java.lang.Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - -} 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 deleted file mode 100644 index 62fc2aab0b..0000000000 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ValidatingAdmissionPolicySpec.java +++ /dev/null @@ -1,312 +0,0 @@ -/* -Copyright 2023 The Kubernetes Authors. -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at -http://www.apache.org/licenses/LICENSE-2.0 -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ -package io.kubernetes.client.openapi.models; - -import java.util.Objects; -import java.util.Arrays; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.kubernetes.client.openapi.models.V1alpha1AuditAnnotation; -import io.kubernetes.client.openapi.models.V1alpha1MatchCondition; -import io.kubernetes.client.openapi.models.V1alpha1MatchResources; -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.List; - -/** - * ValidatingAdmissionPolicySpec is the specification of the desired behavior of the AdmissionPolicy. - */ -@ApiModel(description = "ValidatingAdmissionPolicySpec is the specification of the desired behavior of the AdmissionPolicy.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") -public class V1alpha1ValidatingAdmissionPolicySpec { - public static final String SERIALIZED_NAME_AUDIT_ANNOTATIONS = "auditAnnotations"; - @SerializedName(SERIALIZED_NAME_AUDIT_ANNOTATIONS) - private List auditAnnotations = null; - - public static final String SERIALIZED_NAME_FAILURE_POLICY = "failurePolicy"; - @SerializedName(SERIALIZED_NAME_FAILURE_POLICY) - private String failurePolicy; - - public static final String SERIALIZED_NAME_MATCH_CONDITIONS = "matchConditions"; - @SerializedName(SERIALIZED_NAME_MATCH_CONDITIONS) - private List matchConditions = null; - - public static final String SERIALIZED_NAME_MATCH_CONSTRAINTS = "matchConstraints"; - @SerializedName(SERIALIZED_NAME_MATCH_CONSTRAINTS) - private V1alpha1MatchResources matchConstraints; - - public static final String SERIALIZED_NAME_PARAM_KIND = "paramKind"; - @SerializedName(SERIALIZED_NAME_PARAM_KIND) - private V1alpha1ParamKind paramKind; - - public static final String SERIALIZED_NAME_VALIDATIONS = "validations"; - @SerializedName(SERIALIZED_NAME_VALIDATIONS) - private List validations = null; - - public static final String SERIALIZED_NAME_VARIABLES = "variables"; - @SerializedName(SERIALIZED_NAME_VARIABLES) - private List variables = null; - - - public V1alpha1ValidatingAdmissionPolicySpec auditAnnotations(List auditAnnotations) { - - this.auditAnnotations = auditAnnotations; - return this; - } - - public V1alpha1ValidatingAdmissionPolicySpec addAuditAnnotationsItem(V1alpha1AuditAnnotation auditAnnotationsItem) { - if (this.auditAnnotations == null) { - this.auditAnnotations = new ArrayList<>(); - } - this.auditAnnotations.add(auditAnnotationsItem); - return this; - } - - /** - * 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. - * @return auditAnnotations - **/ - @javax.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; - } - - - public void setAuditAnnotations(List auditAnnotations) { - this.auditAnnotations = auditAnnotations; - } - - - public V1alpha1ValidatingAdmissionPolicySpec failurePolicy(String failurePolicy) { - - this.failurePolicy = failurePolicy; - return this; - } - - /** - * 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. - * @return failurePolicy - **/ - @javax.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; - } - - - public void setFailurePolicy(String failurePolicy) { - this.failurePolicy = failurePolicy; - } - - - public V1alpha1ValidatingAdmissionPolicySpec matchConditions(List matchConditions) { - - this.matchConditions = matchConditions; - return this; - } - - public V1alpha1ValidatingAdmissionPolicySpec addMatchConditionsItem(V1alpha1MatchCondition matchConditionsItem) { - if (this.matchConditions == null) { - this.matchConditions = new ArrayList<>(); - } - this.matchConditions.add(matchConditionsItem); - return this; - } - - /** - * 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 - * @return matchConditions - **/ - @javax.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; - } - - - public void setMatchConditions(List matchConditions) { - this.matchConditions = matchConditions; - } - - - public V1alpha1ValidatingAdmissionPolicySpec matchConstraints(V1alpha1MatchResources matchConstraints) { - - this.matchConstraints = matchConstraints; - return this; - } - - /** - * Get matchConstraints - * @return matchConstraints - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public V1alpha1MatchResources getMatchConstraints() { - return matchConstraints; - } - - - public void setMatchConstraints(V1alpha1MatchResources matchConstraints) { - this.matchConstraints = matchConstraints; - } - - - public V1alpha1ValidatingAdmissionPolicySpec paramKind(V1alpha1ParamKind paramKind) { - - this.paramKind = paramKind; - return this; - } - - /** - * Get paramKind - * @return paramKind - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public V1alpha1ParamKind getParamKind() { - return paramKind; - } - - - public void setParamKind(V1alpha1ParamKind paramKind) { - this.paramKind = paramKind; - } - - - public V1alpha1ValidatingAdmissionPolicySpec validations(List validations) { - - this.validations = validations; - return this; - } - - public V1alpha1ValidatingAdmissionPolicySpec addValidationsItem(V1alpha1Validation validationsItem) { - if (this.validations == null) { - this.validations = new ArrayList<>(); - } - this.validations.add(validationsItem); - return this; - } - - /** - * 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. - * @return validations - **/ - @javax.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; - } - - - public void setValidations(List validations) { - this.validations = validations; - } - - - public V1alpha1ValidatingAdmissionPolicySpec variables(List variables) { - - this.variables = variables; - return this; - } - - public V1alpha1ValidatingAdmissionPolicySpec addVariablesItem(V1alpha1Variable variablesItem) { - if (this.variables == null) { - this.variables = new ArrayList<>(); - } - this.variables.add(variablesItem); - return this; - } - - /** - * 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. - * @return variables - **/ - @javax.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; - } - - - public void setVariables(List variables) { - this.variables = variables; - } - - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1alpha1ValidatingAdmissionPolicySpec v1alpha1ValidatingAdmissionPolicySpec = (V1alpha1ValidatingAdmissionPolicySpec) o; - return Objects.equals(this.auditAnnotations, v1alpha1ValidatingAdmissionPolicySpec.auditAnnotations) && - Objects.equals(this.failurePolicy, v1alpha1ValidatingAdmissionPolicySpec.failurePolicy) && - Objects.equals(this.matchConditions, v1alpha1ValidatingAdmissionPolicySpec.matchConditions) && - Objects.equals(this.matchConstraints, v1alpha1ValidatingAdmissionPolicySpec.matchConstraints) && - Objects.equals(this.paramKind, v1alpha1ValidatingAdmissionPolicySpec.paramKind) && - Objects.equals(this.validations, v1alpha1ValidatingAdmissionPolicySpec.validations) && - Objects.equals(this.variables, v1alpha1ValidatingAdmissionPolicySpec.variables); - } - - @Override - public int hashCode() { - return Objects.hash(auditAnnotations, failurePolicy, matchConditions, matchConstraints, paramKind, validations, variables); - } - - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class V1alpha1ValidatingAdmissionPolicySpec {\n"); - sb.append(" auditAnnotations: ").append(toIndentedString(auditAnnotations)).append("\n"); - sb.append(" failurePolicy: ").append(toIndentedString(failurePolicy)).append("\n"); - sb.append(" matchConditions: ").append(toIndentedString(matchConditions)).append("\n"); - sb.append(" matchConstraints: ").append(toIndentedString(matchConstraints)).append("\n"); - sb.append(" paramKind: ").append(toIndentedString(paramKind)).append("\n"); - sb.append(" validations: ").append(toIndentedString(validations)).append("\n"); - sb.append(" variables: ").append(toIndentedString(variables)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(java.lang.Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - -} 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 deleted file mode 100644 index fad0aa0f78..0000000000 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ValidatingAdmissionPolicyStatus.java +++ /dev/null @@ -1,168 +0,0 @@ -/* -Copyright 2023 The Kubernetes Authors. -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at -http://www.apache.org/licenses/LICENSE-2.0 -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ -package io.kubernetes.client.openapi.models; - -import java.util.Objects; -import java.util.Arrays; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -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.List; - -/** - * ValidatingAdmissionPolicyStatus represents the status of a ValidatingAdmissionPolicy. - */ -@ApiModel(description = "ValidatingAdmissionPolicyStatus represents the status of a ValidatingAdmissionPolicy.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") -public class V1alpha1ValidatingAdmissionPolicyStatus { - public static final String SERIALIZED_NAME_CONDITIONS = "conditions"; - @SerializedName(SERIALIZED_NAME_CONDITIONS) - private List conditions = null; - - public static final String SERIALIZED_NAME_OBSERVED_GENERATION = "observedGeneration"; - @SerializedName(SERIALIZED_NAME_OBSERVED_GENERATION) - private Long observedGeneration; - - public static final String SERIALIZED_NAME_TYPE_CHECKING = "typeChecking"; - @SerializedName(SERIALIZED_NAME_TYPE_CHECKING) - private V1alpha1TypeChecking typeChecking; - - - public V1alpha1ValidatingAdmissionPolicyStatus conditions(List conditions) { - - this.conditions = conditions; - return this; - } - - public V1alpha1ValidatingAdmissionPolicyStatus addConditionsItem(V1Condition conditionsItem) { - if (this.conditions == null) { - this.conditions = new ArrayList<>(); - } - this.conditions.add(conditionsItem); - return this; - } - - /** - * The conditions represent the latest available observations of a policy's current state. - * @return conditions - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "The conditions represent the latest available observations of a policy's current state.") - - public List getConditions() { - return conditions; - } - - - public void setConditions(List conditions) { - this.conditions = conditions; - } - - - public V1alpha1ValidatingAdmissionPolicyStatus observedGeneration(Long observedGeneration) { - - this.observedGeneration = observedGeneration; - return this; - } - - /** - * The generation observed by the controller. - * @return observedGeneration - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "The generation observed by the controller.") - - public Long getObservedGeneration() { - return observedGeneration; - } - - - public void setObservedGeneration(Long observedGeneration) { - this.observedGeneration = observedGeneration; - } - - - public V1alpha1ValidatingAdmissionPolicyStatus typeChecking(V1alpha1TypeChecking typeChecking) { - - this.typeChecking = typeChecking; - return this; - } - - /** - * Get typeChecking - * @return typeChecking - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public V1alpha1TypeChecking getTypeChecking() { - return typeChecking; - } - - - public void setTypeChecking(V1alpha1TypeChecking typeChecking) { - this.typeChecking = typeChecking; - } - - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1alpha1ValidatingAdmissionPolicyStatus v1alpha1ValidatingAdmissionPolicyStatus = (V1alpha1ValidatingAdmissionPolicyStatus) o; - return Objects.equals(this.conditions, v1alpha1ValidatingAdmissionPolicyStatus.conditions) && - Objects.equals(this.observedGeneration, v1alpha1ValidatingAdmissionPolicyStatus.observedGeneration) && - Objects.equals(this.typeChecking, v1alpha1ValidatingAdmissionPolicyStatus.typeChecking); - } - - @Override - public int hashCode() { - return Objects.hash(conditions, observedGeneration, typeChecking); - } - - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class V1alpha1ValidatingAdmissionPolicyStatus {\n"); - sb.append(" conditions: ").append(toIndentedString(conditions)).append("\n"); - sb.append(" observedGeneration: ").append(toIndentedString(observedGeneration)).append("\n"); - sb.append(" typeChecking: ").append(toIndentedString(typeChecking)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(java.lang.Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - -} 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 deleted file mode 100644 index 41d0c8cea6..0000000000 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1Validation.java +++ /dev/null @@ -1,184 +0,0 @@ -/* -Copyright 2023 The Kubernetes Authors. -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at -http://www.apache.org/licenses/LICENSE-2.0 -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ -package io.kubernetes.client.openapi.models; - -import java.util.Objects; -import java.util.Arrays; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -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; - -/** - * Validation specifies the CEL expression which is used to apply the validation. - */ -@ApiModel(description = "Validation specifies the CEL expression which is used to apply the validation.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") -public class V1alpha1Validation { - public static final String SERIALIZED_NAME_EXPRESSION = "expression"; - @SerializedName(SERIALIZED_NAME_EXPRESSION) - private String expression; - - public static final String SERIALIZED_NAME_MESSAGE = "message"; - @SerializedName(SERIALIZED_NAME_MESSAGE) - private String message; - - public static final String SERIALIZED_NAME_MESSAGE_EXPRESSION = "messageExpression"; - @SerializedName(SERIALIZED_NAME_MESSAGE_EXPRESSION) - private String messageExpression; - - public static final String SERIALIZED_NAME_REASON = "reason"; - @SerializedName(SERIALIZED_NAME_REASON) - private String reason; - - - public V1alpha1Validation expression(String expression) { - - this.expression = expression; - return this; - } - - /** - * 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. - * @return expression - **/ - @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; - } - - - public void setExpression(String expression) { - this.expression = expression; - } - - - public V1alpha1Validation message(String message) { - - this.message = message; - return this; - } - - /** - * 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}\". - * @return message - **/ - @javax.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; - } - - - public void setMessage(String message) { - this.message = message; - } - - - public V1alpha1Validation messageExpression(String messageExpression) { - - this.messageExpression = messageExpression; - return this; - } - - /** - * 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)+\")\" - * @return messageExpression - **/ - @javax.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; - } - - - public void setMessageExpression(String messageExpression) { - this.messageExpression = messageExpression; - } - - - public V1alpha1Validation reason(String reason) { - - this.reason = reason; - return this; - } - - /** - * 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. - * @return reason - **/ - @javax.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; - } - - - public void setReason(String reason) { - this.reason = reason; - } - - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1alpha1Validation v1alpha1Validation = (V1alpha1Validation) o; - return Objects.equals(this.expression, v1alpha1Validation.expression) && - Objects.equals(this.message, v1alpha1Validation.message) && - Objects.equals(this.messageExpression, v1alpha1Validation.messageExpression) && - Objects.equals(this.reason, v1alpha1Validation.reason); - } - - @Override - public int hashCode() { - return Objects.hash(expression, message, messageExpression, reason); - } - - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class V1alpha1Validation {\n"); - sb.append(" expression: ").append(toIndentedString(expression)).append("\n"); - sb.append(" message: ").append(toIndentedString(message)).append("\n"); - sb.append(" messageExpression: ").append(toIndentedString(messageExpression)).append("\n"); - sb.append(" reason: ").append(toIndentedString(reason)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(java.lang.Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - -} 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 6fe99eec93..defc2363ba 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 2023 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -27,7 +27,7 @@ * Variable is the definition of a variable that is used for composition. */ @ApiModel(description = "Variable is the definition of a variable that is used for composition.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") public class V1alpha1Variable { public static final String SERIALIZED_NAME_EXPRESSION = "expression"; @SerializedName(SERIALIZED_NAME_EXPRESSION) 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 new file mode 100644 index 0000000000..bd953e4476 --- /dev/null +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1VolumeAttributesClass.java @@ -0,0 +1,225 @@ +/* +Copyright 2025 The Kubernetes Authors. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at +http://www.apache.org/licenses/LICENSE-2.0 +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ +package io.kubernetes.client.openapi.models; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +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.HashMap; +import java.util.List; +import java.util.Map; + +/** + * 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. + */ +@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.") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +public class V1alpha1VolumeAttributesClass implements io.kubernetes.client.common.KubernetesObject { + public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; + @SerializedName(SERIALIZED_NAME_API_VERSION) + private String apiVersion; + + public static final String SERIALIZED_NAME_DRIVER_NAME = "driverName"; + @SerializedName(SERIALIZED_NAME_DRIVER_NAME) + private String driverName; + + public static final String SERIALIZED_NAME_KIND = "kind"; + @SerializedName(SERIALIZED_NAME_KIND) + private String kind; + + public static final String SERIALIZED_NAME_METADATA = "metadata"; + @SerializedName(SERIALIZED_NAME_METADATA) + private V1ObjectMeta metadata; + + public static final String SERIALIZED_NAME_PARAMETERS = "parameters"; + @SerializedName(SERIALIZED_NAME_PARAMETERS) + private Map parameters = null; + + + public V1alpha1VolumeAttributesClass apiVersion(String apiVersion) { + + this.apiVersion = apiVersion; + return this; + } + + /** + * 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 + * @return apiVersion + **/ + @javax.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; + } + + + public void setApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + } + + + public V1alpha1VolumeAttributesClass driverName(String driverName) { + + this.driverName = driverName; + return this; + } + + /** + * Name of the CSI driver This field is immutable. + * @return driverName + **/ + @ApiModelProperty(required = true, value = "Name of the CSI driver This field is immutable.") + + public String getDriverName() { + return driverName; + } + + + public void setDriverName(String driverName) { + this.driverName = driverName; + } + + + public V1alpha1VolumeAttributesClass kind(String kind) { + + this.kind = kind; + return this; + } + + /** + * 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 + * @return kind + **/ + @javax.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; + } + + + public void setKind(String kind) { + this.kind = kind; + } + + + public V1alpha1VolumeAttributesClass metadata(V1ObjectMeta metadata) { + + this.metadata = metadata; + return this; + } + + /** + * Get metadata + * @return metadata + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public V1ObjectMeta getMetadata() { + return metadata; + } + + + public void setMetadata(V1ObjectMeta metadata) { + this.metadata = metadata; + } + + + public V1alpha1VolumeAttributesClass parameters(Map parameters) { + + this.parameters = parameters; + return this; + } + + public V1alpha1VolumeAttributesClass putParametersItem(String key, String parametersItem) { + if (this.parameters == null) { + this.parameters = new HashMap<>(); + } + this.parameters.put(key, parametersItem); + return this; + } + + /** + * 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. + * @return parameters + **/ + @javax.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; + } + + + public void setParameters(Map parameters) { + this.parameters = parameters; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V1alpha1VolumeAttributesClass v1alpha1VolumeAttributesClass = (V1alpha1VolumeAttributesClass) o; + return Objects.equals(this.apiVersion, v1alpha1VolumeAttributesClass.apiVersion) && + Objects.equals(this.driverName, v1alpha1VolumeAttributesClass.driverName) && + Objects.equals(this.kind, v1alpha1VolumeAttributesClass.kind) && + Objects.equals(this.metadata, v1alpha1VolumeAttributesClass.metadata) && + Objects.equals(this.parameters, v1alpha1VolumeAttributesClass.parameters); + } + + @Override + public int hashCode() { + return Objects.hash(apiVersion, driverName, kind, metadata, parameters); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class V1alpha1VolumeAttributesClass {\n"); + sb.append(" apiVersion: ").append(toIndentedString(apiVersion)).append("\n"); + sb.append(" driverName: ").append(toIndentedString(driverName)).append("\n"); + sb.append(" kind: ").append(toIndentedString(kind)).append("\n"); + sb.append(" metadata: ").append(toIndentedString(metadata)).append("\n"); + sb.append(" parameters: ").append(toIndentedString(parameters)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} 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 new file mode 100644 index 0000000000..1682f84e0a --- /dev/null +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1VolumeAttributesClassList.java @@ -0,0 +1,193 @@ +/* +Copyright 2025 The Kubernetes Authors. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at +http://www.apache.org/licenses/LICENSE-2.0 +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ +package io.kubernetes.client.openapi.models; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +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.List; + +/** + * VolumeAttributesClassList is a collection of VolumeAttributesClass objects. + */ +@ApiModel(description = "VolumeAttributesClassList is a collection of VolumeAttributesClass objects.") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +public class V1alpha1VolumeAttributesClassList implements io.kubernetes.client.common.KubernetesListObject { + public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; + @SerializedName(SERIALIZED_NAME_API_VERSION) + private String apiVersion; + + public static final String SERIALIZED_NAME_ITEMS = "items"; + @SerializedName(SERIALIZED_NAME_ITEMS) + private List items = new ArrayList<>(); + + public static final String SERIALIZED_NAME_KIND = "kind"; + @SerializedName(SERIALIZED_NAME_KIND) + private String kind; + + public static final String SERIALIZED_NAME_METADATA = "metadata"; + @SerializedName(SERIALIZED_NAME_METADATA) + private V1ListMeta metadata; + + + public V1alpha1VolumeAttributesClassList apiVersion(String apiVersion) { + + this.apiVersion = apiVersion; + return this; + } + + /** + * 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 + * @return apiVersion + **/ + @javax.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; + } + + + public void setApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + } + + + public V1alpha1VolumeAttributesClassList items(List items) { + + this.items = items; + return this; + } + + public V1alpha1VolumeAttributesClassList addItemsItem(V1alpha1VolumeAttributesClass itemsItem) { + this.items.add(itemsItem); + return this; + } + + /** + * items is the list of VolumeAttributesClass objects. + * @return items + **/ + @ApiModelProperty(required = true, value = "items is the list of VolumeAttributesClass objects.") + + public List getItems() { + return items; + } + + + public void setItems(List items) { + this.items = items; + } + + + public V1alpha1VolumeAttributesClassList kind(String kind) { + + this.kind = kind; + return this; + } + + /** + * 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 + * @return kind + **/ + @javax.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; + } + + + public void setKind(String kind) { + this.kind = kind; + } + + + public V1alpha1VolumeAttributesClassList metadata(V1ListMeta metadata) { + + this.metadata = metadata; + return this; + } + + /** + * Get metadata + * @return metadata + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public V1ListMeta getMetadata() { + return metadata; + } + + + public void setMetadata(V1ListMeta metadata) { + this.metadata = metadata; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V1alpha1VolumeAttributesClassList v1alpha1VolumeAttributesClassList = (V1alpha1VolumeAttributesClassList) o; + return Objects.equals(this.apiVersion, v1alpha1VolumeAttributesClassList.apiVersion) && + Objects.equals(this.items, v1alpha1VolumeAttributesClassList.items) && + Objects.equals(this.kind, v1alpha1VolumeAttributesClassList.kind) && + Objects.equals(this.metadata, v1alpha1VolumeAttributesClassList.metadata); + } + + @Override + public int hashCode() { + return Objects.hash(apiVersion, items, kind, metadata); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class V1alpha1VolumeAttributesClassList {\n"); + sb.append(" apiVersion: ").append(toIndentedString(apiVersion)).append("\n"); + sb.append(" items: ").append(toIndentedString(items)).append("\n"); + sb.append(" kind: ").append(toIndentedString(kind)).append("\n"); + sb.append(" metadata: ").append(toIndentedString(metadata)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha2AllocationResult.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha2AllocationResult.java deleted file mode 100644 index 3f54f9ce50..0000000000 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha2AllocationResult.java +++ /dev/null @@ -1,168 +0,0 @@ -/* -Copyright 2023 The Kubernetes Authors. -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at -http://www.apache.org/licenses/LICENSE-2.0 -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ -package io.kubernetes.client.openapi.models; - -import java.util.Objects; -import java.util.Arrays; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.kubernetes.client.openapi.models.V1NodeSelector; -import io.kubernetes.client.openapi.models.V1alpha2ResourceHandle; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import java.io.IOException; -import java.util.ArrayList; -import java.util.List; - -/** - * AllocationResult contains attributes of an allocated resource. - */ -@ApiModel(description = "AllocationResult contains attributes of an allocated resource.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") -public class V1alpha2AllocationResult { - public static final String SERIALIZED_NAME_AVAILABLE_ON_NODES = "availableOnNodes"; - @SerializedName(SERIALIZED_NAME_AVAILABLE_ON_NODES) - private V1NodeSelector availableOnNodes; - - public static final String SERIALIZED_NAME_RESOURCE_HANDLES = "resourceHandles"; - @SerializedName(SERIALIZED_NAME_RESOURCE_HANDLES) - private List resourceHandles = null; - - public static final String SERIALIZED_NAME_SHAREABLE = "shareable"; - @SerializedName(SERIALIZED_NAME_SHAREABLE) - private Boolean shareable; - - - public V1alpha2AllocationResult availableOnNodes(V1NodeSelector availableOnNodes) { - - this.availableOnNodes = availableOnNodes; - return this; - } - - /** - * Get availableOnNodes - * @return availableOnNodes - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public V1NodeSelector getAvailableOnNodes() { - return availableOnNodes; - } - - - public void setAvailableOnNodes(V1NodeSelector availableOnNodes) { - this.availableOnNodes = availableOnNodes; - } - - - public V1alpha2AllocationResult resourceHandles(List resourceHandles) { - - this.resourceHandles = resourceHandles; - return this; - } - - public V1alpha2AllocationResult addResourceHandlesItem(V1alpha2ResourceHandle resourceHandlesItem) { - if (this.resourceHandles == null) { - this.resourceHandles = new ArrayList<>(); - } - this.resourceHandles.add(resourceHandlesItem); - return this; - } - - /** - * ResourceHandles contain the state associated with an allocation that should be maintained throughout the lifetime of a claim. Each ResourceHandle contains data that should be passed to a specific kubelet plugin once it lands on a node. This data is returned by the driver after a successful allocation and is opaque to Kubernetes. Driver documentation may explain to users how to interpret this data if needed. Setting this field is optional. It has a maximum size of 32 entries. If null (or empty), it is assumed this allocation will be processed by a single kubelet plugin with no ResourceHandle data attached. The name of the kubelet plugin invoked will match the DriverName set in the ResourceClaimStatus this AllocationResult is embedded in. - * @return resourceHandles - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "ResourceHandles contain the state associated with an allocation that should be maintained throughout the lifetime of a claim. Each ResourceHandle contains data that should be passed to a specific kubelet plugin once it lands on a node. This data is returned by the driver after a successful allocation and is opaque to Kubernetes. Driver documentation may explain to users how to interpret this data if needed. Setting this field is optional. It has a maximum size of 32 entries. If null (or empty), it is assumed this allocation will be processed by a single kubelet plugin with no ResourceHandle data attached. The name of the kubelet plugin invoked will match the DriverName set in the ResourceClaimStatus this AllocationResult is embedded in.") - - public List getResourceHandles() { - return resourceHandles; - } - - - public void setResourceHandles(List resourceHandles) { - this.resourceHandles = resourceHandles; - } - - - public V1alpha2AllocationResult shareable(Boolean shareable) { - - this.shareable = shareable; - return this; - } - - /** - * Shareable determines whether the resource supports more than one consumer at a time. - * @return shareable - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "Shareable determines whether the resource supports more than one consumer at a time.") - - public Boolean getShareable() { - return shareable; - } - - - public void setShareable(Boolean shareable) { - this.shareable = shareable; - } - - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1alpha2AllocationResult v1alpha2AllocationResult = (V1alpha2AllocationResult) o; - return Objects.equals(this.availableOnNodes, v1alpha2AllocationResult.availableOnNodes) && - Objects.equals(this.resourceHandles, v1alpha2AllocationResult.resourceHandles) && - Objects.equals(this.shareable, v1alpha2AllocationResult.shareable); - } - - @Override - public int hashCode() { - return Objects.hash(availableOnNodes, resourceHandles, shareable); - } - - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class V1alpha2AllocationResult {\n"); - sb.append(" availableOnNodes: ").append(toIndentedString(availableOnNodes)).append("\n"); - sb.append(" resourceHandles: ").append(toIndentedString(resourceHandles)).append("\n"); - sb.append(" shareable: ").append(toIndentedString(shareable)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(java.lang.Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - -} diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha2LeaseCandidate.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha2LeaseCandidate.java new file mode 100644 index 0000000000..501387172a --- /dev/null +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha2LeaseCandidate.java @@ -0,0 +1,187 @@ +/* +Copyright 2025 The Kubernetes Authors. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at +http://www.apache.org/licenses/LICENSE-2.0 +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ +package io.kubernetes.client.openapi.models; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.openapi.models.V1ObjectMeta; +import io.kubernetes.client.openapi.models.V1alpha2LeaseCandidateSpec; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; + +/** + * 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. + */ +@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.") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +public class V1alpha2LeaseCandidate implements io.kubernetes.client.common.KubernetesObject { + public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; + @SerializedName(SERIALIZED_NAME_API_VERSION) + private String apiVersion; + + public static final String SERIALIZED_NAME_KIND = "kind"; + @SerializedName(SERIALIZED_NAME_KIND) + private String kind; + + public static final String SERIALIZED_NAME_METADATA = "metadata"; + @SerializedName(SERIALIZED_NAME_METADATA) + private V1ObjectMeta metadata; + + public static final String SERIALIZED_NAME_SPEC = "spec"; + @SerializedName(SERIALIZED_NAME_SPEC) + private V1alpha2LeaseCandidateSpec spec; + + + public V1alpha2LeaseCandidate apiVersion(String apiVersion) { + + this.apiVersion = apiVersion; + return this; + } + + /** + * 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 + * @return apiVersion + **/ + @javax.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; + } + + + public void setApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + } + + + public V1alpha2LeaseCandidate kind(String kind) { + + this.kind = kind; + return this; + } + + /** + * 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 + * @return kind + **/ + @javax.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; + } + + + public void setKind(String kind) { + this.kind = kind; + } + + + public V1alpha2LeaseCandidate metadata(V1ObjectMeta metadata) { + + this.metadata = metadata; + return this; + } + + /** + * Get metadata + * @return metadata + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public V1ObjectMeta getMetadata() { + return metadata; + } + + + public void setMetadata(V1ObjectMeta metadata) { + this.metadata = metadata; + } + + + public V1alpha2LeaseCandidate spec(V1alpha2LeaseCandidateSpec spec) { + + this.spec = spec; + return this; + } + + /** + * Get spec + * @return spec + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public V1alpha2LeaseCandidateSpec getSpec() { + return spec; + } + + + public void setSpec(V1alpha2LeaseCandidateSpec spec) { + this.spec = spec; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V1alpha2LeaseCandidate v1alpha2LeaseCandidate = (V1alpha2LeaseCandidate) o; + return Objects.equals(this.apiVersion, v1alpha2LeaseCandidate.apiVersion) && + Objects.equals(this.kind, v1alpha2LeaseCandidate.kind) && + Objects.equals(this.metadata, v1alpha2LeaseCandidate.metadata) && + Objects.equals(this.spec, v1alpha2LeaseCandidate.spec); + } + + @Override + public int hashCode() { + return Objects.hash(apiVersion, kind, metadata, spec); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class V1alpha2LeaseCandidate {\n"); + sb.append(" apiVersion: ").append(toIndentedString(apiVersion)).append("\n"); + sb.append(" kind: ").append(toIndentedString(kind)).append("\n"); + sb.append(" metadata: ").append(toIndentedString(metadata)).append("\n"); + sb.append(" spec: ").append(toIndentedString(spec)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha2LeaseCandidateList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha2LeaseCandidateList.java new file mode 100644 index 0000000000..365e6922f8 --- /dev/null +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha2LeaseCandidateList.java @@ -0,0 +1,193 @@ +/* +Copyright 2025 The Kubernetes Authors. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at +http://www.apache.org/licenses/LICENSE-2.0 +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ +package io.kubernetes.client.openapi.models; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.openapi.models.V1ListMeta; +import io.kubernetes.client.openapi.models.V1alpha2LeaseCandidate; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; + +/** + * LeaseCandidateList is a list of Lease objects. + */ +@ApiModel(description = "LeaseCandidateList is a list of Lease objects.") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +public class V1alpha2LeaseCandidateList implements io.kubernetes.client.common.KubernetesListObject { + public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; + @SerializedName(SERIALIZED_NAME_API_VERSION) + private String apiVersion; + + public static final String SERIALIZED_NAME_ITEMS = "items"; + @SerializedName(SERIALIZED_NAME_ITEMS) + private List items = new ArrayList<>(); + + public static final String SERIALIZED_NAME_KIND = "kind"; + @SerializedName(SERIALIZED_NAME_KIND) + private String kind; + + public static final String SERIALIZED_NAME_METADATA = "metadata"; + @SerializedName(SERIALIZED_NAME_METADATA) + private V1ListMeta metadata; + + + public V1alpha2LeaseCandidateList apiVersion(String apiVersion) { + + this.apiVersion = apiVersion; + return this; + } + + /** + * 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 + * @return apiVersion + **/ + @javax.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; + } + + + public void setApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + } + + + public V1alpha2LeaseCandidateList items(List items) { + + this.items = items; + return this; + } + + public V1alpha2LeaseCandidateList addItemsItem(V1alpha2LeaseCandidate itemsItem) { + this.items.add(itemsItem); + return this; + } + + /** + * items is a list of schema objects. + * @return items + **/ + @ApiModelProperty(required = true, value = "items is a list of schema objects.") + + public List getItems() { + return items; + } + + + public void setItems(List items) { + this.items = items; + } + + + public V1alpha2LeaseCandidateList kind(String kind) { + + this.kind = kind; + return this; + } + + /** + * 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 + * @return kind + **/ + @javax.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; + } + + + public void setKind(String kind) { + this.kind = kind; + } + + + public V1alpha2LeaseCandidateList metadata(V1ListMeta metadata) { + + this.metadata = metadata; + return this; + } + + /** + * Get metadata + * @return metadata + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public V1ListMeta getMetadata() { + return metadata; + } + + + public void setMetadata(V1ListMeta metadata) { + this.metadata = metadata; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V1alpha2LeaseCandidateList v1alpha2LeaseCandidateList = (V1alpha2LeaseCandidateList) o; + return Objects.equals(this.apiVersion, v1alpha2LeaseCandidateList.apiVersion) && + Objects.equals(this.items, v1alpha2LeaseCandidateList.items) && + Objects.equals(this.kind, v1alpha2LeaseCandidateList.kind) && + Objects.equals(this.metadata, v1alpha2LeaseCandidateList.metadata); + } + + @Override + public int hashCode() { + return Objects.hash(apiVersion, items, kind, metadata); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class V1alpha2LeaseCandidateList {\n"); + sb.append(" apiVersion: ").append(toIndentedString(apiVersion)).append("\n"); + sb.append(" items: ").append(toIndentedString(items)).append("\n"); + sb.append(" kind: ").append(toIndentedString(kind)).append("\n"); + sb.append(" metadata: ").append(toIndentedString(metadata)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha2LeaseCandidateSpec.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha2LeaseCandidateSpec.java new file mode 100644 index 0000000000..8914ab85b6 --- /dev/null +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha2LeaseCandidateSpec.java @@ -0,0 +1,241 @@ +/* +Copyright 2025 The Kubernetes Authors. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at +http://www.apache.org/licenses/LICENSE-2.0 +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ +package io.kubernetes.client.openapi.models; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +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; + +/** + * LeaseCandidateSpec is a specification of a Lease. + */ +@ApiModel(description = "LeaseCandidateSpec is a specification of a Lease.") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +public class V1alpha2LeaseCandidateSpec { + public static final String SERIALIZED_NAME_BINARY_VERSION = "binaryVersion"; + @SerializedName(SERIALIZED_NAME_BINARY_VERSION) + private String binaryVersion; + + public static final String SERIALIZED_NAME_EMULATION_VERSION = "emulationVersion"; + @SerializedName(SERIALIZED_NAME_EMULATION_VERSION) + private String emulationVersion; + + public static final String SERIALIZED_NAME_LEASE_NAME = "leaseName"; + @SerializedName(SERIALIZED_NAME_LEASE_NAME) + private String leaseName; + + public static final String SERIALIZED_NAME_PING_TIME = "pingTime"; + @SerializedName(SERIALIZED_NAME_PING_TIME) + private OffsetDateTime pingTime; + + public static final String SERIALIZED_NAME_RENEW_TIME = "renewTime"; + @SerializedName(SERIALIZED_NAME_RENEW_TIME) + private OffsetDateTime renewTime; + + public static final String SERIALIZED_NAME_STRATEGY = "strategy"; + @SerializedName(SERIALIZED_NAME_STRATEGY) + private String strategy; + + + public V1alpha2LeaseCandidateSpec binaryVersion(String binaryVersion) { + + this.binaryVersion = binaryVersion; + return this; + } + + /** + * BinaryVersion is the binary version. It must be in a semver format without leading `v`. This field is required. + * @return binaryVersion + **/ + @ApiModelProperty(required = true, value = "BinaryVersion is the binary version. It must be in a semver format without leading `v`. This field is required.") + + public String getBinaryVersion() { + return binaryVersion; + } + + + public void setBinaryVersion(String binaryVersion) { + this.binaryVersion = binaryVersion; + } + + + public V1alpha2LeaseCandidateSpec emulationVersion(String emulationVersion) { + + this.emulationVersion = emulationVersion; + return this; + } + + /** + * 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\" + * @return emulationVersion + **/ + @javax.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; + } + + + public void setEmulationVersion(String emulationVersion) { + this.emulationVersion = emulationVersion; + } + + + public V1alpha2LeaseCandidateSpec leaseName(String leaseName) { + + this.leaseName = leaseName; + return this; + } + + /** + * LeaseName is the name of the lease for which this candidate is contending. This field is immutable. + * @return leaseName + **/ + @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; + } + + + public void setLeaseName(String leaseName) { + this.leaseName = leaseName; + } + + + public V1alpha2LeaseCandidateSpec pingTime(OffsetDateTime pingTime) { + + this.pingTime = pingTime; + return this; + } + + /** + * 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. + * @return pingTime + **/ + @javax.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; + } + + + public void setPingTime(OffsetDateTime pingTime) { + this.pingTime = pingTime; + } + + + public V1alpha2LeaseCandidateSpec renewTime(OffsetDateTime renewTime) { + + this.renewTime = renewTime; + return this; + } + + /** + * 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. + * @return renewTime + **/ + @javax.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; + } + + + public void setRenewTime(OffsetDateTime renewTime) { + this.renewTime = renewTime; + } + + + public V1alpha2LeaseCandidateSpec strategy(String strategy) { + + this.strategy = strategy; + return this; + } + + /** + * Strategy is the strategy that coordinated leader election will use for picking the leader. If multiple candidates for the same Lease return different strategies, the strategy provided by the candidate with the latest BinaryVersion will be used. If there is still conflict, this is a user error and coordinated leader election will not operate the Lease until resolved. + * @return strategy + **/ + @ApiModelProperty(required = true, value = "Strategy is the strategy that coordinated leader election will use for picking the leader. If multiple candidates for the same Lease return different strategies, the strategy provided by the candidate with the latest BinaryVersion will be used. If there is still conflict, this is a user error and coordinated leader election will not operate the Lease until resolved.") + + public String getStrategy() { + return strategy; + } + + + public void setStrategy(String strategy) { + this.strategy = strategy; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V1alpha2LeaseCandidateSpec v1alpha2LeaseCandidateSpec = (V1alpha2LeaseCandidateSpec) o; + return Objects.equals(this.binaryVersion, v1alpha2LeaseCandidateSpec.binaryVersion) && + Objects.equals(this.emulationVersion, v1alpha2LeaseCandidateSpec.emulationVersion) && + Objects.equals(this.leaseName, v1alpha2LeaseCandidateSpec.leaseName) && + Objects.equals(this.pingTime, v1alpha2LeaseCandidateSpec.pingTime) && + Objects.equals(this.renewTime, v1alpha2LeaseCandidateSpec.renewTime) && + Objects.equals(this.strategy, v1alpha2LeaseCandidateSpec.strategy); + } + + @Override + public int hashCode() { + return Objects.hash(binaryVersion, emulationVersion, leaseName, pingTime, renewTime, strategy); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class V1alpha2LeaseCandidateSpec {\n"); + sb.append(" binaryVersion: ").append(toIndentedString(binaryVersion)).append("\n"); + sb.append(" emulationVersion: ").append(toIndentedString(emulationVersion)).append("\n"); + sb.append(" leaseName: ").append(toIndentedString(leaseName)).append("\n"); + sb.append(" pingTime: ").append(toIndentedString(pingTime)).append("\n"); + sb.append(" renewTime: ").append(toIndentedString(renewTime)).append("\n"); + sb.append(" strategy: ").append(toIndentedString(strategy)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha2PodSchedulingContext.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha2PodSchedulingContext.java deleted file mode 100644 index cb92e38f38..0000000000 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha2PodSchedulingContext.java +++ /dev/null @@ -1,216 +0,0 @@ -/* -Copyright 2023 The Kubernetes Authors. -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at -http://www.apache.org/licenses/LICENSE-2.0 -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ -package io.kubernetes.client.openapi.models; - -import java.util.Objects; -import java.util.Arrays; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.kubernetes.client.openapi.models.V1ObjectMeta; -import io.kubernetes.client.openapi.models.V1alpha2PodSchedulingContextSpec; -import io.kubernetes.client.openapi.models.V1alpha2PodSchedulingContextStatus; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import java.io.IOException; - -/** - * 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 DynamicResourceAllocation feature gate. - */ -@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 DynamicResourceAllocation feature gate.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") -public class V1alpha2PodSchedulingContext implements io.kubernetes.client.common.KubernetesObject { - public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; - @SerializedName(SERIALIZED_NAME_API_VERSION) - private String apiVersion; - - public static final String SERIALIZED_NAME_KIND = "kind"; - @SerializedName(SERIALIZED_NAME_KIND) - private String kind; - - public static final String SERIALIZED_NAME_METADATA = "metadata"; - @SerializedName(SERIALIZED_NAME_METADATA) - private V1ObjectMeta metadata; - - public static final String SERIALIZED_NAME_SPEC = "spec"; - @SerializedName(SERIALIZED_NAME_SPEC) - private V1alpha2PodSchedulingContextSpec spec; - - public static final String SERIALIZED_NAME_STATUS = "status"; - @SerializedName(SERIALIZED_NAME_STATUS) - private V1alpha2PodSchedulingContextStatus status; - - - public V1alpha2PodSchedulingContext apiVersion(String apiVersion) { - - this.apiVersion = apiVersion; - return this; - } - - /** - * 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 - * @return apiVersion - **/ - @javax.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; - } - - - public void setApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - } - - - public V1alpha2PodSchedulingContext kind(String kind) { - - this.kind = kind; - return this; - } - - /** - * 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 - * @return kind - **/ - @javax.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; - } - - - public void setKind(String kind) { - this.kind = kind; - } - - - public V1alpha2PodSchedulingContext metadata(V1ObjectMeta metadata) { - - this.metadata = metadata; - return this; - } - - /** - * Get metadata - * @return metadata - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public V1ObjectMeta getMetadata() { - return metadata; - } - - - public void setMetadata(V1ObjectMeta metadata) { - this.metadata = metadata; - } - - - public V1alpha2PodSchedulingContext spec(V1alpha2PodSchedulingContextSpec spec) { - - this.spec = spec; - return this; - } - - /** - * Get spec - * @return spec - **/ - @ApiModelProperty(required = true, value = "") - - public V1alpha2PodSchedulingContextSpec getSpec() { - return spec; - } - - - public void setSpec(V1alpha2PodSchedulingContextSpec spec) { - this.spec = spec; - } - - - public V1alpha2PodSchedulingContext status(V1alpha2PodSchedulingContextStatus status) { - - this.status = status; - return this; - } - - /** - * Get status - * @return status - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public V1alpha2PodSchedulingContextStatus getStatus() { - return status; - } - - - public void setStatus(V1alpha2PodSchedulingContextStatus status) { - this.status = status; - } - - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1alpha2PodSchedulingContext v1alpha2PodSchedulingContext = (V1alpha2PodSchedulingContext) o; - return Objects.equals(this.apiVersion, v1alpha2PodSchedulingContext.apiVersion) && - Objects.equals(this.kind, v1alpha2PodSchedulingContext.kind) && - Objects.equals(this.metadata, v1alpha2PodSchedulingContext.metadata) && - Objects.equals(this.spec, v1alpha2PodSchedulingContext.spec) && - Objects.equals(this.status, v1alpha2PodSchedulingContext.status); - } - - @Override - public int hashCode() { - return Objects.hash(apiVersion, kind, metadata, spec, status); - } - - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class V1alpha2PodSchedulingContext {\n"); - sb.append(" apiVersion: ").append(toIndentedString(apiVersion)).append("\n"); - sb.append(" kind: ").append(toIndentedString(kind)).append("\n"); - sb.append(" metadata: ").append(toIndentedString(metadata)).append("\n"); - sb.append(" spec: ").append(toIndentedString(spec)).append("\n"); - sb.append(" status: ").append(toIndentedString(status)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(java.lang.Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - -} diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha2PodSchedulingContextList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha2PodSchedulingContextList.java deleted file mode 100644 index abb8aaa93e..0000000000 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha2PodSchedulingContextList.java +++ /dev/null @@ -1,193 +0,0 @@ -/* -Copyright 2023 The Kubernetes Authors. -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at -http://www.apache.org/licenses/LICENSE-2.0 -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ -package io.kubernetes.client.openapi.models; - -import java.util.Objects; -import java.util.Arrays; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.kubernetes.client.openapi.models.V1ListMeta; -import io.kubernetes.client.openapi.models.V1alpha2PodSchedulingContext; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import java.io.IOException; -import java.util.ArrayList; -import java.util.List; - -/** - * PodSchedulingContextList is a collection of Pod scheduling objects. - */ -@ApiModel(description = "PodSchedulingContextList is a collection of Pod scheduling objects.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") -public class V1alpha2PodSchedulingContextList implements io.kubernetes.client.common.KubernetesListObject { - public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; - @SerializedName(SERIALIZED_NAME_API_VERSION) - private String apiVersion; - - public static final String SERIALIZED_NAME_ITEMS = "items"; - @SerializedName(SERIALIZED_NAME_ITEMS) - private List items = new ArrayList<>(); - - public static final String SERIALIZED_NAME_KIND = "kind"; - @SerializedName(SERIALIZED_NAME_KIND) - private String kind; - - public static final String SERIALIZED_NAME_METADATA = "metadata"; - @SerializedName(SERIALIZED_NAME_METADATA) - private V1ListMeta metadata; - - - public V1alpha2PodSchedulingContextList apiVersion(String apiVersion) { - - this.apiVersion = apiVersion; - return this; - } - - /** - * 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 - * @return apiVersion - **/ - @javax.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; - } - - - public void setApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - } - - - public V1alpha2PodSchedulingContextList items(List items) { - - this.items = items; - return this; - } - - public V1alpha2PodSchedulingContextList addItemsItem(V1alpha2PodSchedulingContext itemsItem) { - this.items.add(itemsItem); - return this; - } - - /** - * Items is the list of PodSchedulingContext objects. - * @return items - **/ - @ApiModelProperty(required = true, value = "Items is the list of PodSchedulingContext objects.") - - public List getItems() { - return items; - } - - - public void setItems(List items) { - this.items = items; - } - - - public V1alpha2PodSchedulingContextList kind(String kind) { - - this.kind = kind; - return this; - } - - /** - * 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 - * @return kind - **/ - @javax.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; - } - - - public void setKind(String kind) { - this.kind = kind; - } - - - public V1alpha2PodSchedulingContextList metadata(V1ListMeta metadata) { - - this.metadata = metadata; - return this; - } - - /** - * Get metadata - * @return metadata - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public V1ListMeta getMetadata() { - return metadata; - } - - - public void setMetadata(V1ListMeta metadata) { - this.metadata = metadata; - } - - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1alpha2PodSchedulingContextList v1alpha2PodSchedulingContextList = (V1alpha2PodSchedulingContextList) o; - return Objects.equals(this.apiVersion, v1alpha2PodSchedulingContextList.apiVersion) && - Objects.equals(this.items, v1alpha2PodSchedulingContextList.items) && - Objects.equals(this.kind, v1alpha2PodSchedulingContextList.kind) && - Objects.equals(this.metadata, v1alpha2PodSchedulingContextList.metadata); - } - - @Override - public int hashCode() { - return Objects.hash(apiVersion, items, kind, metadata); - } - - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class V1alpha2PodSchedulingContextList {\n"); - sb.append(" apiVersion: ").append(toIndentedString(apiVersion)).append("\n"); - sb.append(" items: ").append(toIndentedString(items)).append("\n"); - sb.append(" kind: ").append(toIndentedString(kind)).append("\n"); - sb.append(" metadata: ").append(toIndentedString(metadata)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(java.lang.Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - -} diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha2PodSchedulingContextSpec.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha2PodSchedulingContextSpec.java deleted file mode 100644 index 01d2ec60cc..0000000000 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha2PodSchedulingContextSpec.java +++ /dev/null @@ -1,137 +0,0 @@ -/* -Copyright 2023 The Kubernetes Authors. -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at -http://www.apache.org/licenses/LICENSE-2.0 -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ -package io.kubernetes.client.openapi.models; - -import java.util.Objects; -import java.util.Arrays; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -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.List; - -/** - * PodSchedulingContextSpec describes where resources for the Pod are needed. - */ -@ApiModel(description = "PodSchedulingContextSpec describes where resources for the Pod are needed.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") -public class V1alpha2PodSchedulingContextSpec { - public static final String SERIALIZED_NAME_POTENTIAL_NODES = "potentialNodes"; - @SerializedName(SERIALIZED_NAME_POTENTIAL_NODES) - private List potentialNodes = null; - - public static final String SERIALIZED_NAME_SELECTED_NODE = "selectedNode"; - @SerializedName(SERIALIZED_NAME_SELECTED_NODE) - private String selectedNode; - - - public V1alpha2PodSchedulingContextSpec potentialNodes(List potentialNodes) { - - this.potentialNodes = potentialNodes; - return this; - } - - public V1alpha2PodSchedulingContextSpec addPotentialNodesItem(String potentialNodesItem) { - if (this.potentialNodes == null) { - this.potentialNodes = new ArrayList<>(); - } - this.potentialNodes.add(potentialNodesItem); - return this; - } - - /** - * 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. - * @return potentialNodes - **/ - @javax.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; - } - - - public void setPotentialNodes(List potentialNodes) { - this.potentialNodes = potentialNodes; - } - - - public V1alpha2PodSchedulingContextSpec selectedNode(String selectedNode) { - - this.selectedNode = selectedNode; - return this; - } - - /** - * SelectedNode is the node for which allocation of ResourceClaims that are referenced by the Pod and that use \"WaitForFirstConsumer\" allocation is to be attempted. - * @return selectedNode - **/ - @javax.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; - } - - - public void setSelectedNode(String selectedNode) { - this.selectedNode = selectedNode; - } - - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1alpha2PodSchedulingContextSpec v1alpha2PodSchedulingContextSpec = (V1alpha2PodSchedulingContextSpec) o; - return Objects.equals(this.potentialNodes, v1alpha2PodSchedulingContextSpec.potentialNodes) && - Objects.equals(this.selectedNode, v1alpha2PodSchedulingContextSpec.selectedNode); - } - - @Override - public int hashCode() { - return Objects.hash(potentialNodes, selectedNode); - } - - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class V1alpha2PodSchedulingContextSpec {\n"); - sb.append(" potentialNodes: ").append(toIndentedString(potentialNodes)).append("\n"); - sb.append(" selectedNode: ").append(toIndentedString(selectedNode)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(java.lang.Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - -} diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha2PodSchedulingContextStatus.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha2PodSchedulingContextStatus.java deleted file mode 100644 index d9b1a6cb9f..0000000000 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha2PodSchedulingContextStatus.java +++ /dev/null @@ -1,109 +0,0 @@ -/* -Copyright 2023 The Kubernetes Authors. -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at -http://www.apache.org/licenses/LICENSE-2.0 -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ -package io.kubernetes.client.openapi.models; - -import java.util.Objects; -import java.util.Arrays; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.kubernetes.client.openapi.models.V1alpha2ResourceClaimSchedulingStatus; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import java.io.IOException; -import java.util.ArrayList; -import java.util.List; - -/** - * PodSchedulingContextStatus describes where resources for the Pod can be allocated. - */ -@ApiModel(description = "PodSchedulingContextStatus describes where resources for the Pod can be allocated.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") -public class V1alpha2PodSchedulingContextStatus { - public static final String SERIALIZED_NAME_RESOURCE_CLAIMS = "resourceClaims"; - @SerializedName(SERIALIZED_NAME_RESOURCE_CLAIMS) - private List resourceClaims = null; - - - public V1alpha2PodSchedulingContextStatus resourceClaims(List resourceClaims) { - - this.resourceClaims = resourceClaims; - return this; - } - - public V1alpha2PodSchedulingContextStatus addResourceClaimsItem(V1alpha2ResourceClaimSchedulingStatus resourceClaimsItem) { - if (this.resourceClaims == null) { - this.resourceClaims = new ArrayList<>(); - } - this.resourceClaims.add(resourceClaimsItem); - return this; - } - - /** - * ResourceClaims describes resource availability for each pod.spec.resourceClaim entry where the corresponding ResourceClaim uses \"WaitForFirstConsumer\" allocation mode. - * @return resourceClaims - **/ - @javax.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; - } - - - public void setResourceClaims(List resourceClaims) { - this.resourceClaims = resourceClaims; - } - - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1alpha2PodSchedulingContextStatus v1alpha2PodSchedulingContextStatus = (V1alpha2PodSchedulingContextStatus) o; - return Objects.equals(this.resourceClaims, v1alpha2PodSchedulingContextStatus.resourceClaims); - } - - @Override - public int hashCode() { - return Objects.hash(resourceClaims); - } - - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class V1alpha2PodSchedulingContextStatus {\n"); - sb.append(" resourceClaims: ").append(toIndentedString(resourceClaims)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(java.lang.Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - -} diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha2ResourceClaim.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha2ResourceClaim.java deleted file mode 100644 index d5cf530b70..0000000000 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha2ResourceClaim.java +++ /dev/null @@ -1,216 +0,0 @@ -/* -Copyright 2023 The Kubernetes Authors. -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at -http://www.apache.org/licenses/LICENSE-2.0 -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ -package io.kubernetes.client.openapi.models; - -import java.util.Objects; -import java.util.Arrays; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.kubernetes.client.openapi.models.V1ObjectMeta; -import io.kubernetes.client.openapi.models.V1alpha2ResourceClaimSpec; -import io.kubernetes.client.openapi.models.V1alpha2ResourceClaimStatus; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import java.io.IOException; - -/** - * ResourceClaim describes which resources are needed by a resource consumer. Its status tracks whether the resource has been allocated and what the resulting attributes are. This is an alpha type and requires enabling the DynamicResourceAllocation feature gate. - */ -@ApiModel(description = "ResourceClaim describes which resources are needed by a resource consumer. Its status tracks whether the resource has been allocated and what the resulting attributes are. This is an alpha type and requires enabling the DynamicResourceAllocation feature gate.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") -public class V1alpha2ResourceClaim implements io.kubernetes.client.common.KubernetesObject { - public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; - @SerializedName(SERIALIZED_NAME_API_VERSION) - private String apiVersion; - - public static final String SERIALIZED_NAME_KIND = "kind"; - @SerializedName(SERIALIZED_NAME_KIND) - private String kind; - - public static final String SERIALIZED_NAME_METADATA = "metadata"; - @SerializedName(SERIALIZED_NAME_METADATA) - private V1ObjectMeta metadata; - - public static final String SERIALIZED_NAME_SPEC = "spec"; - @SerializedName(SERIALIZED_NAME_SPEC) - private V1alpha2ResourceClaimSpec spec; - - public static final String SERIALIZED_NAME_STATUS = "status"; - @SerializedName(SERIALIZED_NAME_STATUS) - private V1alpha2ResourceClaimStatus status; - - - public V1alpha2ResourceClaim apiVersion(String apiVersion) { - - this.apiVersion = apiVersion; - return this; - } - - /** - * 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 - * @return apiVersion - **/ - @javax.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; - } - - - public void setApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - } - - - public V1alpha2ResourceClaim kind(String kind) { - - this.kind = kind; - return this; - } - - /** - * 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 - * @return kind - **/ - @javax.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; - } - - - public void setKind(String kind) { - this.kind = kind; - } - - - public V1alpha2ResourceClaim metadata(V1ObjectMeta metadata) { - - this.metadata = metadata; - return this; - } - - /** - * Get metadata - * @return metadata - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public V1ObjectMeta getMetadata() { - return metadata; - } - - - public void setMetadata(V1ObjectMeta metadata) { - this.metadata = metadata; - } - - - public V1alpha2ResourceClaim spec(V1alpha2ResourceClaimSpec spec) { - - this.spec = spec; - return this; - } - - /** - * Get spec - * @return spec - **/ - @ApiModelProperty(required = true, value = "") - - public V1alpha2ResourceClaimSpec getSpec() { - return spec; - } - - - public void setSpec(V1alpha2ResourceClaimSpec spec) { - this.spec = spec; - } - - - public V1alpha2ResourceClaim status(V1alpha2ResourceClaimStatus status) { - - this.status = status; - return this; - } - - /** - * Get status - * @return status - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public V1alpha2ResourceClaimStatus getStatus() { - return status; - } - - - public void setStatus(V1alpha2ResourceClaimStatus status) { - this.status = status; - } - - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1alpha2ResourceClaim v1alpha2ResourceClaim = (V1alpha2ResourceClaim) o; - return Objects.equals(this.apiVersion, v1alpha2ResourceClaim.apiVersion) && - Objects.equals(this.kind, v1alpha2ResourceClaim.kind) && - Objects.equals(this.metadata, v1alpha2ResourceClaim.metadata) && - Objects.equals(this.spec, v1alpha2ResourceClaim.spec) && - Objects.equals(this.status, v1alpha2ResourceClaim.status); - } - - @Override - public int hashCode() { - return Objects.hash(apiVersion, kind, metadata, spec, status); - } - - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class V1alpha2ResourceClaim {\n"); - sb.append(" apiVersion: ").append(toIndentedString(apiVersion)).append("\n"); - sb.append(" kind: ").append(toIndentedString(kind)).append("\n"); - sb.append(" metadata: ").append(toIndentedString(metadata)).append("\n"); - sb.append(" spec: ").append(toIndentedString(spec)).append("\n"); - sb.append(" status: ").append(toIndentedString(status)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(java.lang.Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - -} diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha2ResourceClaimConsumerReference.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha2ResourceClaimConsumerReference.java deleted file mode 100644 index 03b0d1a037..0000000000 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha2ResourceClaimConsumerReference.java +++ /dev/null @@ -1,182 +0,0 @@ -/* -Copyright 2023 The Kubernetes Authors. -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at -http://www.apache.org/licenses/LICENSE-2.0 -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ -package io.kubernetes.client.openapi.models; - -import java.util.Objects; -import java.util.Arrays; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -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; - -/** - * 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. - */ -@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.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") -public class V1alpha2ResourceClaimConsumerReference { - public static final String SERIALIZED_NAME_API_GROUP = "apiGroup"; - @SerializedName(SERIALIZED_NAME_API_GROUP) - private String apiGroup; - - public static final String SERIALIZED_NAME_NAME = "name"; - @SerializedName(SERIALIZED_NAME_NAME) - private String name; - - public static final String SERIALIZED_NAME_RESOURCE = "resource"; - @SerializedName(SERIALIZED_NAME_RESOURCE) - private String resource; - - public static final String SERIALIZED_NAME_UID = "uid"; - @SerializedName(SERIALIZED_NAME_UID) - private String uid; - - - public V1alpha2ResourceClaimConsumerReference apiGroup(String apiGroup) { - - this.apiGroup = apiGroup; - return this; - } - - /** - * 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. - * @return apiGroup - **/ - @javax.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; - } - - - public void setApiGroup(String apiGroup) { - this.apiGroup = apiGroup; - } - - - public V1alpha2ResourceClaimConsumerReference name(String name) { - - this.name = name; - return this; - } - - /** - * Name is the name of resource being referenced. - * @return name - **/ - @ApiModelProperty(required = true, value = "Name is the name of resource being referenced.") - - public String getName() { - return name; - } - - - public void setName(String name) { - this.name = name; - } - - - public V1alpha2ResourceClaimConsumerReference resource(String resource) { - - this.resource = resource; - return this; - } - - /** - * Resource is the type of resource being referenced, for example \"pods\". - * @return resource - **/ - @ApiModelProperty(required = true, value = "Resource is the type of resource being referenced, for example \"pods\".") - - public String getResource() { - return resource; - } - - - public void setResource(String resource) { - this.resource = resource; - } - - - public V1alpha2ResourceClaimConsumerReference uid(String uid) { - - this.uid = uid; - return this; - } - - /** - * UID identifies exactly one incarnation of the resource. - * @return uid - **/ - @ApiModelProperty(required = true, value = "UID identifies exactly one incarnation of the resource.") - - public String getUid() { - return uid; - } - - - public void setUid(String uid) { - this.uid = uid; - } - - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1alpha2ResourceClaimConsumerReference v1alpha2ResourceClaimConsumerReference = (V1alpha2ResourceClaimConsumerReference) o; - return Objects.equals(this.apiGroup, v1alpha2ResourceClaimConsumerReference.apiGroup) && - Objects.equals(this.name, v1alpha2ResourceClaimConsumerReference.name) && - Objects.equals(this.resource, v1alpha2ResourceClaimConsumerReference.resource) && - Objects.equals(this.uid, v1alpha2ResourceClaimConsumerReference.uid); - } - - @Override - public int hashCode() { - return Objects.hash(apiGroup, name, resource, uid); - } - - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class V1alpha2ResourceClaimConsumerReference {\n"); - sb.append(" apiGroup: ").append(toIndentedString(apiGroup)).append("\n"); - sb.append(" name: ").append(toIndentedString(name)).append("\n"); - sb.append(" resource: ").append(toIndentedString(resource)).append("\n"); - sb.append(" uid: ").append(toIndentedString(uid)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(java.lang.Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - -} diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha2ResourceClaimList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha2ResourceClaimList.java deleted file mode 100644 index b7ecd11192..0000000000 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha2ResourceClaimList.java +++ /dev/null @@ -1,193 +0,0 @@ -/* -Copyright 2023 The Kubernetes Authors. -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at -http://www.apache.org/licenses/LICENSE-2.0 -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ -package io.kubernetes.client.openapi.models; - -import java.util.Objects; -import java.util.Arrays; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.kubernetes.client.openapi.models.V1ListMeta; -import io.kubernetes.client.openapi.models.V1alpha2ResourceClaim; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import java.io.IOException; -import java.util.ArrayList; -import java.util.List; - -/** - * ResourceClaimList is a collection of claims. - */ -@ApiModel(description = "ResourceClaimList is a collection of claims.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") -public class V1alpha2ResourceClaimList implements io.kubernetes.client.common.KubernetesListObject { - public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; - @SerializedName(SERIALIZED_NAME_API_VERSION) - private String apiVersion; - - public static final String SERIALIZED_NAME_ITEMS = "items"; - @SerializedName(SERIALIZED_NAME_ITEMS) - private List items = new ArrayList<>(); - - public static final String SERIALIZED_NAME_KIND = "kind"; - @SerializedName(SERIALIZED_NAME_KIND) - private String kind; - - public static final String SERIALIZED_NAME_METADATA = "metadata"; - @SerializedName(SERIALIZED_NAME_METADATA) - private V1ListMeta metadata; - - - public V1alpha2ResourceClaimList apiVersion(String apiVersion) { - - this.apiVersion = apiVersion; - return this; - } - - /** - * 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 - * @return apiVersion - **/ - @javax.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; - } - - - public void setApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - } - - - public V1alpha2ResourceClaimList items(List items) { - - this.items = items; - return this; - } - - public V1alpha2ResourceClaimList addItemsItem(V1alpha2ResourceClaim itemsItem) { - this.items.add(itemsItem); - return this; - } - - /** - * Items is the list of resource claims. - * @return items - **/ - @ApiModelProperty(required = true, value = "Items is the list of resource claims.") - - public List getItems() { - return items; - } - - - public void setItems(List items) { - this.items = items; - } - - - public V1alpha2ResourceClaimList kind(String kind) { - - this.kind = kind; - return this; - } - - /** - * 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 - * @return kind - **/ - @javax.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; - } - - - public void setKind(String kind) { - this.kind = kind; - } - - - public V1alpha2ResourceClaimList metadata(V1ListMeta metadata) { - - this.metadata = metadata; - return this; - } - - /** - * Get metadata - * @return metadata - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public V1ListMeta getMetadata() { - return metadata; - } - - - public void setMetadata(V1ListMeta metadata) { - this.metadata = metadata; - } - - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1alpha2ResourceClaimList v1alpha2ResourceClaimList = (V1alpha2ResourceClaimList) o; - return Objects.equals(this.apiVersion, v1alpha2ResourceClaimList.apiVersion) && - Objects.equals(this.items, v1alpha2ResourceClaimList.items) && - Objects.equals(this.kind, v1alpha2ResourceClaimList.kind) && - Objects.equals(this.metadata, v1alpha2ResourceClaimList.metadata); - } - - @Override - public int hashCode() { - return Objects.hash(apiVersion, items, kind, metadata); - } - - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class V1alpha2ResourceClaimList {\n"); - sb.append(" apiVersion: ").append(toIndentedString(apiVersion)).append("\n"); - sb.append(" items: ").append(toIndentedString(items)).append("\n"); - sb.append(" kind: ").append(toIndentedString(kind)).append("\n"); - sb.append(" metadata: ").append(toIndentedString(metadata)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(java.lang.Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - -} diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha2ResourceClaimParametersReference.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha2ResourceClaimParametersReference.java deleted file mode 100644 index 556086472c..0000000000 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha2ResourceClaimParametersReference.java +++ /dev/null @@ -1,154 +0,0 @@ -/* -Copyright 2023 The Kubernetes Authors. -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at -http://www.apache.org/licenses/LICENSE-2.0 -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ -package io.kubernetes.client.openapi.models; - -import java.util.Objects; -import java.util.Arrays; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -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; - -/** - * ResourceClaimParametersReference contains enough information to let you locate the parameters for a ResourceClaim. The object must be in the same namespace as the ResourceClaim. - */ -@ApiModel(description = "ResourceClaimParametersReference contains enough information to let you locate the parameters for a ResourceClaim. The object must be in the same namespace as the ResourceClaim.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") -public class V1alpha2ResourceClaimParametersReference { - public static final String SERIALIZED_NAME_API_GROUP = "apiGroup"; - @SerializedName(SERIALIZED_NAME_API_GROUP) - private String apiGroup; - - public static final String SERIALIZED_NAME_KIND = "kind"; - @SerializedName(SERIALIZED_NAME_KIND) - private String kind; - - public static final String SERIALIZED_NAME_NAME = "name"; - @SerializedName(SERIALIZED_NAME_NAME) - private String name; - - - public V1alpha2ResourceClaimParametersReference apiGroup(String apiGroup) { - - this.apiGroup = apiGroup; - return this; - } - - /** - * 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. - * @return apiGroup - **/ - @javax.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; - } - - - public void setApiGroup(String apiGroup) { - this.apiGroup = apiGroup; - } - - - public V1alpha2ResourceClaimParametersReference kind(String kind) { - - this.kind = kind; - return this; - } - - /** - * Kind is the type of resource being referenced. This is the same value as in the parameter object's metadata, for example \"ConfigMap\". - * @return kind - **/ - @ApiModelProperty(required = true, value = "Kind is the type of resource being referenced. This is the same value as in the parameter object's metadata, for example \"ConfigMap\".") - - public String getKind() { - return kind; - } - - - public void setKind(String kind) { - this.kind = kind; - } - - - public V1alpha2ResourceClaimParametersReference name(String name) { - - this.name = name; - return this; - } - - /** - * Name is the name of resource being referenced. - * @return name - **/ - @ApiModelProperty(required = true, value = "Name is the name of resource being referenced.") - - public String getName() { - return name; - } - - - public void setName(String name) { - this.name = name; - } - - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1alpha2ResourceClaimParametersReference v1alpha2ResourceClaimParametersReference = (V1alpha2ResourceClaimParametersReference) o; - return Objects.equals(this.apiGroup, v1alpha2ResourceClaimParametersReference.apiGroup) && - Objects.equals(this.kind, v1alpha2ResourceClaimParametersReference.kind) && - Objects.equals(this.name, v1alpha2ResourceClaimParametersReference.name); - } - - @Override - public int hashCode() { - return Objects.hash(apiGroup, kind, name); - } - - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class V1alpha2ResourceClaimParametersReference {\n"); - sb.append(" apiGroup: ").append(toIndentedString(apiGroup)).append("\n"); - sb.append(" kind: ").append(toIndentedString(kind)).append("\n"); - sb.append(" name: ").append(toIndentedString(name)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(java.lang.Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - -} diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha2ResourceClaimSchedulingStatus.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha2ResourceClaimSchedulingStatus.java deleted file mode 100644 index 323683b369..0000000000 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha2ResourceClaimSchedulingStatus.java +++ /dev/null @@ -1,137 +0,0 @@ -/* -Copyright 2023 The Kubernetes Authors. -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at -http://www.apache.org/licenses/LICENSE-2.0 -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ -package io.kubernetes.client.openapi.models; - -import java.util.Objects; -import java.util.Arrays; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -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.List; - -/** - * ResourceClaimSchedulingStatus contains information about one particular ResourceClaim with \"WaitForFirstConsumer\" allocation mode. - */ -@ApiModel(description = "ResourceClaimSchedulingStatus contains information about one particular ResourceClaim with \"WaitForFirstConsumer\" allocation mode.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") -public class V1alpha2ResourceClaimSchedulingStatus { - public static final String SERIALIZED_NAME_NAME = "name"; - @SerializedName(SERIALIZED_NAME_NAME) - private String name; - - public static final String SERIALIZED_NAME_UNSUITABLE_NODES = "unsuitableNodes"; - @SerializedName(SERIALIZED_NAME_UNSUITABLE_NODES) - private List unsuitableNodes = null; - - - public V1alpha2ResourceClaimSchedulingStatus name(String name) { - - this.name = name; - return this; - } - - /** - * Name matches the pod.spec.resourceClaims[*].Name field. - * @return name - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "Name matches the pod.spec.resourceClaims[*].Name field.") - - public String getName() { - return name; - } - - - public void setName(String name) { - this.name = name; - } - - - public V1alpha2ResourceClaimSchedulingStatus unsuitableNodes(List unsuitableNodes) { - - this.unsuitableNodes = unsuitableNodes; - return this; - } - - public V1alpha2ResourceClaimSchedulingStatus addUnsuitableNodesItem(String unsuitableNodesItem) { - if (this.unsuitableNodes == null) { - this.unsuitableNodes = new ArrayList<>(); - } - this.unsuitableNodes.add(unsuitableNodesItem); - return this; - } - - /** - * 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. - * @return unsuitableNodes - **/ - @javax.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; - } - - - public void setUnsuitableNodes(List unsuitableNodes) { - this.unsuitableNodes = unsuitableNodes; - } - - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1alpha2ResourceClaimSchedulingStatus v1alpha2ResourceClaimSchedulingStatus = (V1alpha2ResourceClaimSchedulingStatus) o; - return Objects.equals(this.name, v1alpha2ResourceClaimSchedulingStatus.name) && - Objects.equals(this.unsuitableNodes, v1alpha2ResourceClaimSchedulingStatus.unsuitableNodes); - } - - @Override - public int hashCode() { - return Objects.hash(name, unsuitableNodes); - } - - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class V1alpha2ResourceClaimSchedulingStatus {\n"); - sb.append(" name: ").append(toIndentedString(name)).append("\n"); - sb.append(" unsuitableNodes: ").append(toIndentedString(unsuitableNodes)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(java.lang.Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - -} diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha2ResourceClaimSpec.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha2ResourceClaimSpec.java deleted file mode 100644 index d9d44c26bb..0000000000 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha2ResourceClaimSpec.java +++ /dev/null @@ -1,156 +0,0 @@ -/* -Copyright 2023 The Kubernetes Authors. -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at -http://www.apache.org/licenses/LICENSE-2.0 -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ -package io.kubernetes.client.openapi.models; - -import java.util.Objects; -import java.util.Arrays; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.kubernetes.client.openapi.models.V1alpha2ResourceClaimParametersReference; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import java.io.IOException; - -/** - * ResourceClaimSpec defines how a resource is to be allocated. - */ -@ApiModel(description = "ResourceClaimSpec defines how a resource is to be allocated.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") -public class V1alpha2ResourceClaimSpec { - public static final String SERIALIZED_NAME_ALLOCATION_MODE = "allocationMode"; - @SerializedName(SERIALIZED_NAME_ALLOCATION_MODE) - private String allocationMode; - - public static final String SERIALIZED_NAME_PARAMETERS_REF = "parametersRef"; - @SerializedName(SERIALIZED_NAME_PARAMETERS_REF) - private V1alpha2ResourceClaimParametersReference parametersRef; - - public static final String SERIALIZED_NAME_RESOURCE_CLASS_NAME = "resourceClassName"; - @SerializedName(SERIALIZED_NAME_RESOURCE_CLASS_NAME) - private String resourceClassName; - - - public V1alpha2ResourceClaimSpec allocationMode(String allocationMode) { - - this.allocationMode = allocationMode; - return this; - } - - /** - * Allocation can start immediately or when a Pod wants to use the resource. \"WaitForFirstConsumer\" is the default. - * @return allocationMode - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "Allocation can start immediately or when a Pod wants to use the resource. \"WaitForFirstConsumer\" is the default.") - - public String getAllocationMode() { - return allocationMode; - } - - - public void setAllocationMode(String allocationMode) { - this.allocationMode = allocationMode; - } - - - public V1alpha2ResourceClaimSpec parametersRef(V1alpha2ResourceClaimParametersReference parametersRef) { - - this.parametersRef = parametersRef; - return this; - } - - /** - * Get parametersRef - * @return parametersRef - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public V1alpha2ResourceClaimParametersReference getParametersRef() { - return parametersRef; - } - - - public void setParametersRef(V1alpha2ResourceClaimParametersReference parametersRef) { - this.parametersRef = parametersRef; - } - - - public V1alpha2ResourceClaimSpec resourceClassName(String resourceClassName) { - - this.resourceClassName = resourceClassName; - return this; - } - - /** - * ResourceClassName references the driver and additional parameters via the name of a ResourceClass that was created as part of the driver deployment. - * @return resourceClassName - **/ - @ApiModelProperty(required = true, value = "ResourceClassName references the driver and additional parameters via the name of a ResourceClass that was created as part of the driver deployment.") - - public String getResourceClassName() { - return resourceClassName; - } - - - public void setResourceClassName(String resourceClassName) { - this.resourceClassName = resourceClassName; - } - - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1alpha2ResourceClaimSpec v1alpha2ResourceClaimSpec = (V1alpha2ResourceClaimSpec) o; - return Objects.equals(this.allocationMode, v1alpha2ResourceClaimSpec.allocationMode) && - Objects.equals(this.parametersRef, v1alpha2ResourceClaimSpec.parametersRef) && - Objects.equals(this.resourceClassName, v1alpha2ResourceClaimSpec.resourceClassName); - } - - @Override - public int hashCode() { - return Objects.hash(allocationMode, parametersRef, resourceClassName); - } - - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class V1alpha2ResourceClaimSpec {\n"); - sb.append(" allocationMode: ").append(toIndentedString(allocationMode)).append("\n"); - sb.append(" parametersRef: ").append(toIndentedString(parametersRef)).append("\n"); - sb.append(" resourceClassName: ").append(toIndentedString(resourceClassName)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(java.lang.Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - -} diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha2ResourceClaimStatus.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha2ResourceClaimStatus.java deleted file mode 100644 index cc6db3b203..0000000000 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha2ResourceClaimStatus.java +++ /dev/null @@ -1,197 +0,0 @@ -/* -Copyright 2023 The Kubernetes Authors. -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at -http://www.apache.org/licenses/LICENSE-2.0 -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ -package io.kubernetes.client.openapi.models; - -import java.util.Objects; -import java.util.Arrays; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.kubernetes.client.openapi.models.V1alpha2AllocationResult; -import io.kubernetes.client.openapi.models.V1alpha2ResourceClaimConsumerReference; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import java.io.IOException; -import java.util.ArrayList; -import java.util.List; - -/** - * ResourceClaimStatus tracks whether the resource has been allocated and what the resulting attributes are. - */ -@ApiModel(description = "ResourceClaimStatus tracks whether the resource has been allocated and what the resulting attributes are.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") -public class V1alpha2ResourceClaimStatus { - public static final String SERIALIZED_NAME_ALLOCATION = "allocation"; - @SerializedName(SERIALIZED_NAME_ALLOCATION) - private V1alpha2AllocationResult allocation; - - public static final String SERIALIZED_NAME_DEALLOCATION_REQUESTED = "deallocationRequested"; - @SerializedName(SERIALIZED_NAME_DEALLOCATION_REQUESTED) - private Boolean deallocationRequested; - - public static final String SERIALIZED_NAME_DRIVER_NAME = "driverName"; - @SerializedName(SERIALIZED_NAME_DRIVER_NAME) - private String driverName; - - public static final String SERIALIZED_NAME_RESERVED_FOR = "reservedFor"; - @SerializedName(SERIALIZED_NAME_RESERVED_FOR) - private List reservedFor = null; - - - public V1alpha2ResourceClaimStatus allocation(V1alpha2AllocationResult allocation) { - - this.allocation = allocation; - return this; - } - - /** - * Get allocation - * @return allocation - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public V1alpha2AllocationResult getAllocation() { - return allocation; - } - - - public void setAllocation(V1alpha2AllocationResult allocation) { - this.allocation = allocation; - } - - - public V1alpha2ResourceClaimStatus deallocationRequested(Boolean deallocationRequested) { - - this.deallocationRequested = deallocationRequested; - return this; - } - - /** - * DeallocationRequested indicates that a ResourceClaim is to be deallocated. The driver then must deallocate this claim and reset the field together with clearing the Allocation field. While DeallocationRequested is set, no new consumers may be added to ReservedFor. - * @return deallocationRequested - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "DeallocationRequested indicates that a ResourceClaim is to be deallocated. The driver then must deallocate this claim and reset the field together with clearing the Allocation field. While DeallocationRequested is set, no new consumers may be added to ReservedFor.") - - public Boolean getDeallocationRequested() { - return deallocationRequested; - } - - - public void setDeallocationRequested(Boolean deallocationRequested) { - this.deallocationRequested = deallocationRequested; - } - - - public V1alpha2ResourceClaimStatus driverName(String driverName) { - - this.driverName = driverName; - return this; - } - - /** - * DriverName is a copy of the driver name from the ResourceClass at the time when allocation started. - * @return driverName - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "DriverName is a copy of the driver name from the ResourceClass at the time when allocation started.") - - public String getDriverName() { - return driverName; - } - - - public void setDriverName(String driverName) { - this.driverName = driverName; - } - - - public V1alpha2ResourceClaimStatus reservedFor(List reservedFor) { - - this.reservedFor = reservedFor; - return this; - } - - public V1alpha2ResourceClaimStatus addReservedForItem(V1alpha2ResourceClaimConsumerReference reservedForItem) { - if (this.reservedFor == null) { - this.reservedFor = new ArrayList<>(); - } - this.reservedFor.add(reservedForItem); - return this; - } - - /** - * 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. There can be at most 32 such reservations. This may get increased in the future, but not reduced. - * @return reservedFor - **/ - @javax.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. There can be at most 32 such reservations. This may get increased in the future, but not reduced.") - - public List getReservedFor() { - return reservedFor; - } - - - public void setReservedFor(List reservedFor) { - this.reservedFor = reservedFor; - } - - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1alpha2ResourceClaimStatus v1alpha2ResourceClaimStatus = (V1alpha2ResourceClaimStatus) o; - return Objects.equals(this.allocation, v1alpha2ResourceClaimStatus.allocation) && - Objects.equals(this.deallocationRequested, v1alpha2ResourceClaimStatus.deallocationRequested) && - Objects.equals(this.driverName, v1alpha2ResourceClaimStatus.driverName) && - Objects.equals(this.reservedFor, v1alpha2ResourceClaimStatus.reservedFor); - } - - @Override - public int hashCode() { - return Objects.hash(allocation, deallocationRequested, driverName, reservedFor); - } - - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class V1alpha2ResourceClaimStatus {\n"); - sb.append(" allocation: ").append(toIndentedString(allocation)).append("\n"); - sb.append(" deallocationRequested: ").append(toIndentedString(deallocationRequested)).append("\n"); - sb.append(" driverName: ").append(toIndentedString(driverName)).append("\n"); - sb.append(" reservedFor: ").append(toIndentedString(reservedFor)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(java.lang.Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - -} diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha2ResourceClaimTemplate.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha2ResourceClaimTemplate.java deleted file mode 100644 index 4cddc66c03..0000000000 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha2ResourceClaimTemplate.java +++ /dev/null @@ -1,186 +0,0 @@ -/* -Copyright 2023 The Kubernetes Authors. -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at -http://www.apache.org/licenses/LICENSE-2.0 -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ -package io.kubernetes.client.openapi.models; - -import java.util.Objects; -import java.util.Arrays; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.kubernetes.client.openapi.models.V1ObjectMeta; -import io.kubernetes.client.openapi.models.V1alpha2ResourceClaimTemplateSpec; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import java.io.IOException; - -/** - * ResourceClaimTemplate is used to produce ResourceClaim objects. - */ -@ApiModel(description = "ResourceClaimTemplate is used to produce ResourceClaim objects.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") -public class V1alpha2ResourceClaimTemplate implements io.kubernetes.client.common.KubernetesObject { - public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; - @SerializedName(SERIALIZED_NAME_API_VERSION) - private String apiVersion; - - public static final String SERIALIZED_NAME_KIND = "kind"; - @SerializedName(SERIALIZED_NAME_KIND) - private String kind; - - public static final String SERIALIZED_NAME_METADATA = "metadata"; - @SerializedName(SERIALIZED_NAME_METADATA) - private V1ObjectMeta metadata; - - public static final String SERIALIZED_NAME_SPEC = "spec"; - @SerializedName(SERIALIZED_NAME_SPEC) - private V1alpha2ResourceClaimTemplateSpec spec; - - - public V1alpha2ResourceClaimTemplate apiVersion(String apiVersion) { - - this.apiVersion = apiVersion; - return this; - } - - /** - * 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 - * @return apiVersion - **/ - @javax.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; - } - - - public void setApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - } - - - public V1alpha2ResourceClaimTemplate kind(String kind) { - - this.kind = kind; - return this; - } - - /** - * 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 - * @return kind - **/ - @javax.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; - } - - - public void setKind(String kind) { - this.kind = kind; - } - - - public V1alpha2ResourceClaimTemplate metadata(V1ObjectMeta metadata) { - - this.metadata = metadata; - return this; - } - - /** - * Get metadata - * @return metadata - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public V1ObjectMeta getMetadata() { - return metadata; - } - - - public void setMetadata(V1ObjectMeta metadata) { - this.metadata = metadata; - } - - - public V1alpha2ResourceClaimTemplate spec(V1alpha2ResourceClaimTemplateSpec spec) { - - this.spec = spec; - return this; - } - - /** - * Get spec - * @return spec - **/ - @ApiModelProperty(required = true, value = "") - - public V1alpha2ResourceClaimTemplateSpec getSpec() { - return spec; - } - - - public void setSpec(V1alpha2ResourceClaimTemplateSpec spec) { - this.spec = spec; - } - - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1alpha2ResourceClaimTemplate v1alpha2ResourceClaimTemplate = (V1alpha2ResourceClaimTemplate) o; - return Objects.equals(this.apiVersion, v1alpha2ResourceClaimTemplate.apiVersion) && - Objects.equals(this.kind, v1alpha2ResourceClaimTemplate.kind) && - Objects.equals(this.metadata, v1alpha2ResourceClaimTemplate.metadata) && - Objects.equals(this.spec, v1alpha2ResourceClaimTemplate.spec); - } - - @Override - public int hashCode() { - return Objects.hash(apiVersion, kind, metadata, spec); - } - - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class V1alpha2ResourceClaimTemplate {\n"); - sb.append(" apiVersion: ").append(toIndentedString(apiVersion)).append("\n"); - sb.append(" kind: ").append(toIndentedString(kind)).append("\n"); - sb.append(" metadata: ").append(toIndentedString(metadata)).append("\n"); - sb.append(" spec: ").append(toIndentedString(spec)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(java.lang.Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - -} diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha2ResourceClaimTemplateList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha2ResourceClaimTemplateList.java deleted file mode 100644 index 01a7fd5410..0000000000 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha2ResourceClaimTemplateList.java +++ /dev/null @@ -1,193 +0,0 @@ -/* -Copyright 2023 The Kubernetes Authors. -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at -http://www.apache.org/licenses/LICENSE-2.0 -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ -package io.kubernetes.client.openapi.models; - -import java.util.Objects; -import java.util.Arrays; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.kubernetes.client.openapi.models.V1ListMeta; -import io.kubernetes.client.openapi.models.V1alpha2ResourceClaimTemplate; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import java.io.IOException; -import java.util.ArrayList; -import java.util.List; - -/** - * ResourceClaimTemplateList is a collection of claim templates. - */ -@ApiModel(description = "ResourceClaimTemplateList is a collection of claim templates.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") -public class V1alpha2ResourceClaimTemplateList implements io.kubernetes.client.common.KubernetesListObject { - public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; - @SerializedName(SERIALIZED_NAME_API_VERSION) - private String apiVersion; - - public static final String SERIALIZED_NAME_ITEMS = "items"; - @SerializedName(SERIALIZED_NAME_ITEMS) - private List items = new ArrayList<>(); - - public static final String SERIALIZED_NAME_KIND = "kind"; - @SerializedName(SERIALIZED_NAME_KIND) - private String kind; - - public static final String SERIALIZED_NAME_METADATA = "metadata"; - @SerializedName(SERIALIZED_NAME_METADATA) - private V1ListMeta metadata; - - - public V1alpha2ResourceClaimTemplateList apiVersion(String apiVersion) { - - this.apiVersion = apiVersion; - return this; - } - - /** - * 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 - * @return apiVersion - **/ - @javax.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; - } - - - public void setApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - } - - - public V1alpha2ResourceClaimTemplateList items(List items) { - - this.items = items; - return this; - } - - public V1alpha2ResourceClaimTemplateList addItemsItem(V1alpha2ResourceClaimTemplate itemsItem) { - this.items.add(itemsItem); - return this; - } - - /** - * Items is the list of resource claim templates. - * @return items - **/ - @ApiModelProperty(required = true, value = "Items is the list of resource claim templates.") - - public List getItems() { - return items; - } - - - public void setItems(List items) { - this.items = items; - } - - - public V1alpha2ResourceClaimTemplateList kind(String kind) { - - this.kind = kind; - return this; - } - - /** - * 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 - * @return kind - **/ - @javax.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; - } - - - public void setKind(String kind) { - this.kind = kind; - } - - - public V1alpha2ResourceClaimTemplateList metadata(V1ListMeta metadata) { - - this.metadata = metadata; - return this; - } - - /** - * Get metadata - * @return metadata - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public V1ListMeta getMetadata() { - return metadata; - } - - - public void setMetadata(V1ListMeta metadata) { - this.metadata = metadata; - } - - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1alpha2ResourceClaimTemplateList v1alpha2ResourceClaimTemplateList = (V1alpha2ResourceClaimTemplateList) o; - return Objects.equals(this.apiVersion, v1alpha2ResourceClaimTemplateList.apiVersion) && - Objects.equals(this.items, v1alpha2ResourceClaimTemplateList.items) && - Objects.equals(this.kind, v1alpha2ResourceClaimTemplateList.kind) && - Objects.equals(this.metadata, v1alpha2ResourceClaimTemplateList.metadata); - } - - @Override - public int hashCode() { - return Objects.hash(apiVersion, items, kind, metadata); - } - - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class V1alpha2ResourceClaimTemplateList {\n"); - sb.append(" apiVersion: ").append(toIndentedString(apiVersion)).append("\n"); - sb.append(" items: ").append(toIndentedString(items)).append("\n"); - sb.append(" kind: ").append(toIndentedString(kind)).append("\n"); - sb.append(" metadata: ").append(toIndentedString(metadata)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(java.lang.Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - -} diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha2ResourceClaimTemplateSpec.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha2ResourceClaimTemplateSpec.java deleted file mode 100644 index 677288e111..0000000000 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha2ResourceClaimTemplateSpec.java +++ /dev/null @@ -1,128 +0,0 @@ -/* -Copyright 2023 The Kubernetes Authors. -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at -http://www.apache.org/licenses/LICENSE-2.0 -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ -package io.kubernetes.client.openapi.models; - -import java.util.Objects; -import java.util.Arrays; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.kubernetes.client.openapi.models.V1ObjectMeta; -import io.kubernetes.client.openapi.models.V1alpha2ResourceClaimSpec; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import java.io.IOException; - -/** - * ResourceClaimTemplateSpec contains the metadata and fields for a ResourceClaim. - */ -@ApiModel(description = "ResourceClaimTemplateSpec contains the metadata and fields for a ResourceClaim.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") -public class V1alpha2ResourceClaimTemplateSpec { - public static final String SERIALIZED_NAME_METADATA = "metadata"; - @SerializedName(SERIALIZED_NAME_METADATA) - private V1ObjectMeta metadata; - - public static final String SERIALIZED_NAME_SPEC = "spec"; - @SerializedName(SERIALIZED_NAME_SPEC) - private V1alpha2ResourceClaimSpec spec; - - - public V1alpha2ResourceClaimTemplateSpec metadata(V1ObjectMeta metadata) { - - this.metadata = metadata; - return this; - } - - /** - * Get metadata - * @return metadata - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public V1ObjectMeta getMetadata() { - return metadata; - } - - - public void setMetadata(V1ObjectMeta metadata) { - this.metadata = metadata; - } - - - public V1alpha2ResourceClaimTemplateSpec spec(V1alpha2ResourceClaimSpec spec) { - - this.spec = spec; - return this; - } - - /** - * Get spec - * @return spec - **/ - @ApiModelProperty(required = true, value = "") - - public V1alpha2ResourceClaimSpec getSpec() { - return spec; - } - - - public void setSpec(V1alpha2ResourceClaimSpec spec) { - this.spec = spec; - } - - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1alpha2ResourceClaimTemplateSpec v1alpha2ResourceClaimTemplateSpec = (V1alpha2ResourceClaimTemplateSpec) o; - return Objects.equals(this.metadata, v1alpha2ResourceClaimTemplateSpec.metadata) && - Objects.equals(this.spec, v1alpha2ResourceClaimTemplateSpec.spec); - } - - @Override - public int hashCode() { - return Objects.hash(metadata, spec); - } - - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class V1alpha2ResourceClaimTemplateSpec {\n"); - sb.append(" metadata: ").append(toIndentedString(metadata)).append("\n"); - sb.append(" spec: ").append(toIndentedString(spec)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(java.lang.Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - -} diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha2ResourceClass.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha2ResourceClass.java deleted file mode 100644 index 3a218c0e9a..0000000000 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha2ResourceClass.java +++ /dev/null @@ -1,245 +0,0 @@ -/* -Copyright 2023 The Kubernetes Authors. -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at -http://www.apache.org/licenses/LICENSE-2.0 -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ -package io.kubernetes.client.openapi.models; - -import java.util.Objects; -import java.util.Arrays; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.kubernetes.client.openapi.models.V1NodeSelector; -import io.kubernetes.client.openapi.models.V1ObjectMeta; -import io.kubernetes.client.openapi.models.V1alpha2ResourceClassParametersReference; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import java.io.IOException; - -/** - * ResourceClass is used by administrators to influence how resources are allocated. This is an alpha type and requires enabling the DynamicResourceAllocation feature gate. - */ -@ApiModel(description = "ResourceClass is used by administrators to influence how resources are allocated. This is an alpha type and requires enabling the DynamicResourceAllocation feature gate.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") -public class V1alpha2ResourceClass implements io.kubernetes.client.common.KubernetesObject { - public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; - @SerializedName(SERIALIZED_NAME_API_VERSION) - private String apiVersion; - - public static final String SERIALIZED_NAME_DRIVER_NAME = "driverName"; - @SerializedName(SERIALIZED_NAME_DRIVER_NAME) - private String driverName; - - public static final String SERIALIZED_NAME_KIND = "kind"; - @SerializedName(SERIALIZED_NAME_KIND) - private String kind; - - public static final String SERIALIZED_NAME_METADATA = "metadata"; - @SerializedName(SERIALIZED_NAME_METADATA) - private V1ObjectMeta metadata; - - public static final String SERIALIZED_NAME_PARAMETERS_REF = "parametersRef"; - @SerializedName(SERIALIZED_NAME_PARAMETERS_REF) - private V1alpha2ResourceClassParametersReference parametersRef; - - public static final String SERIALIZED_NAME_SUITABLE_NODES = "suitableNodes"; - @SerializedName(SERIALIZED_NAME_SUITABLE_NODES) - private V1NodeSelector suitableNodes; - - - public V1alpha2ResourceClass apiVersion(String apiVersion) { - - this.apiVersion = apiVersion; - return this; - } - - /** - * 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 - * @return apiVersion - **/ - @javax.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; - } - - - public void setApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - } - - - public V1alpha2ResourceClass driverName(String driverName) { - - this.driverName = driverName; - return this; - } - - /** - * DriverName defines the name of the dynamic resource driver that is used for allocation of a ResourceClaim that uses this class. Resource drivers have a unique name in forward domain order (acme.example.com). - * @return driverName - **/ - @ApiModelProperty(required = true, value = "DriverName defines the name of the dynamic resource driver that is used for allocation of a ResourceClaim that uses this class. Resource drivers have a unique name in forward domain order (acme.example.com).") - - public String getDriverName() { - return driverName; - } - - - public void setDriverName(String driverName) { - this.driverName = driverName; - } - - - public V1alpha2ResourceClass kind(String kind) { - - this.kind = kind; - return this; - } - - /** - * 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 - * @return kind - **/ - @javax.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; - } - - - public void setKind(String kind) { - this.kind = kind; - } - - - public V1alpha2ResourceClass metadata(V1ObjectMeta metadata) { - - this.metadata = metadata; - return this; - } - - /** - * Get metadata - * @return metadata - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public V1ObjectMeta getMetadata() { - return metadata; - } - - - public void setMetadata(V1ObjectMeta metadata) { - this.metadata = metadata; - } - - - public V1alpha2ResourceClass parametersRef(V1alpha2ResourceClassParametersReference parametersRef) { - - this.parametersRef = parametersRef; - return this; - } - - /** - * Get parametersRef - * @return parametersRef - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public V1alpha2ResourceClassParametersReference getParametersRef() { - return parametersRef; - } - - - public void setParametersRef(V1alpha2ResourceClassParametersReference parametersRef) { - this.parametersRef = parametersRef; - } - - - public V1alpha2ResourceClass suitableNodes(V1NodeSelector suitableNodes) { - - this.suitableNodes = suitableNodes; - return this; - } - - /** - * Get suitableNodes - * @return suitableNodes - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public V1NodeSelector getSuitableNodes() { - return suitableNodes; - } - - - public void setSuitableNodes(V1NodeSelector suitableNodes) { - this.suitableNodes = suitableNodes; - } - - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1alpha2ResourceClass v1alpha2ResourceClass = (V1alpha2ResourceClass) o; - return Objects.equals(this.apiVersion, v1alpha2ResourceClass.apiVersion) && - Objects.equals(this.driverName, v1alpha2ResourceClass.driverName) && - Objects.equals(this.kind, v1alpha2ResourceClass.kind) && - Objects.equals(this.metadata, v1alpha2ResourceClass.metadata) && - Objects.equals(this.parametersRef, v1alpha2ResourceClass.parametersRef) && - Objects.equals(this.suitableNodes, v1alpha2ResourceClass.suitableNodes); - } - - @Override - public int hashCode() { - return Objects.hash(apiVersion, driverName, kind, metadata, parametersRef, suitableNodes); - } - - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class V1alpha2ResourceClass {\n"); - sb.append(" apiVersion: ").append(toIndentedString(apiVersion)).append("\n"); - sb.append(" driverName: ").append(toIndentedString(driverName)).append("\n"); - sb.append(" kind: ").append(toIndentedString(kind)).append("\n"); - sb.append(" metadata: ").append(toIndentedString(metadata)).append("\n"); - sb.append(" parametersRef: ").append(toIndentedString(parametersRef)).append("\n"); - sb.append(" suitableNodes: ").append(toIndentedString(suitableNodes)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(java.lang.Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - -} diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha2ResourceClassList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha2ResourceClassList.java deleted file mode 100644 index 4bae57e6a7..0000000000 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha2ResourceClassList.java +++ /dev/null @@ -1,193 +0,0 @@ -/* -Copyright 2023 The Kubernetes Authors. -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at -http://www.apache.org/licenses/LICENSE-2.0 -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ -package io.kubernetes.client.openapi.models; - -import java.util.Objects; -import java.util.Arrays; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.kubernetes.client.openapi.models.V1ListMeta; -import io.kubernetes.client.openapi.models.V1alpha2ResourceClass; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import java.io.IOException; -import java.util.ArrayList; -import java.util.List; - -/** - * ResourceClassList is a collection of classes. - */ -@ApiModel(description = "ResourceClassList is a collection of classes.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") -public class V1alpha2ResourceClassList implements io.kubernetes.client.common.KubernetesListObject { - public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; - @SerializedName(SERIALIZED_NAME_API_VERSION) - private String apiVersion; - - public static final String SERIALIZED_NAME_ITEMS = "items"; - @SerializedName(SERIALIZED_NAME_ITEMS) - private List items = new ArrayList<>(); - - public static final String SERIALIZED_NAME_KIND = "kind"; - @SerializedName(SERIALIZED_NAME_KIND) - private String kind; - - public static final String SERIALIZED_NAME_METADATA = "metadata"; - @SerializedName(SERIALIZED_NAME_METADATA) - private V1ListMeta metadata; - - - public V1alpha2ResourceClassList apiVersion(String apiVersion) { - - this.apiVersion = apiVersion; - return this; - } - - /** - * 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 - * @return apiVersion - **/ - @javax.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; - } - - - public void setApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - } - - - public V1alpha2ResourceClassList items(List items) { - - this.items = items; - return this; - } - - public V1alpha2ResourceClassList addItemsItem(V1alpha2ResourceClass itemsItem) { - this.items.add(itemsItem); - return this; - } - - /** - * Items is the list of resource classes. - * @return items - **/ - @ApiModelProperty(required = true, value = "Items is the list of resource classes.") - - public List getItems() { - return items; - } - - - public void setItems(List items) { - this.items = items; - } - - - public V1alpha2ResourceClassList kind(String kind) { - - this.kind = kind; - return this; - } - - /** - * 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 - * @return kind - **/ - @javax.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; - } - - - public void setKind(String kind) { - this.kind = kind; - } - - - public V1alpha2ResourceClassList metadata(V1ListMeta metadata) { - - this.metadata = metadata; - return this; - } - - /** - * Get metadata - * @return metadata - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public V1ListMeta getMetadata() { - return metadata; - } - - - public void setMetadata(V1ListMeta metadata) { - this.metadata = metadata; - } - - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1alpha2ResourceClassList v1alpha2ResourceClassList = (V1alpha2ResourceClassList) o; - return Objects.equals(this.apiVersion, v1alpha2ResourceClassList.apiVersion) && - Objects.equals(this.items, v1alpha2ResourceClassList.items) && - Objects.equals(this.kind, v1alpha2ResourceClassList.kind) && - Objects.equals(this.metadata, v1alpha2ResourceClassList.metadata); - } - - @Override - public int hashCode() { - return Objects.hash(apiVersion, items, kind, metadata); - } - - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class V1alpha2ResourceClassList {\n"); - sb.append(" apiVersion: ").append(toIndentedString(apiVersion)).append("\n"); - sb.append(" items: ").append(toIndentedString(items)).append("\n"); - sb.append(" kind: ").append(toIndentedString(kind)).append("\n"); - sb.append(" metadata: ").append(toIndentedString(metadata)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(java.lang.Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - -} diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha2ResourceClassParametersReference.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha2ResourceClassParametersReference.java deleted file mode 100644 index 52b324c6c3..0000000000 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha2ResourceClassParametersReference.java +++ /dev/null @@ -1,183 +0,0 @@ -/* -Copyright 2023 The Kubernetes Authors. -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at -http://www.apache.org/licenses/LICENSE-2.0 -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ -package io.kubernetes.client.openapi.models; - -import java.util.Objects; -import java.util.Arrays; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -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; - -/** - * ResourceClassParametersReference contains enough information to let you locate the parameters for a ResourceClass. - */ -@ApiModel(description = "ResourceClassParametersReference contains enough information to let you locate the parameters for a ResourceClass.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") -public class V1alpha2ResourceClassParametersReference { - public static final String SERIALIZED_NAME_API_GROUP = "apiGroup"; - @SerializedName(SERIALIZED_NAME_API_GROUP) - private String apiGroup; - - public static final String SERIALIZED_NAME_KIND = "kind"; - @SerializedName(SERIALIZED_NAME_KIND) - private String kind; - - public static final String SERIALIZED_NAME_NAME = "name"; - @SerializedName(SERIALIZED_NAME_NAME) - private String name; - - public static final String SERIALIZED_NAME_NAMESPACE = "namespace"; - @SerializedName(SERIALIZED_NAME_NAMESPACE) - private String namespace; - - - public V1alpha2ResourceClassParametersReference apiGroup(String apiGroup) { - - this.apiGroup = apiGroup; - return this; - } - - /** - * 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. - * @return apiGroup - **/ - @javax.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; - } - - - public void setApiGroup(String apiGroup) { - this.apiGroup = apiGroup; - } - - - public V1alpha2ResourceClassParametersReference kind(String kind) { - - this.kind = kind; - return this; - } - - /** - * Kind is the type of resource being referenced. This is the same value as in the parameter object's metadata. - * @return kind - **/ - @ApiModelProperty(required = true, value = "Kind is the type of resource being referenced. This is the same value as in the parameter object's metadata.") - - public String getKind() { - return kind; - } - - - public void setKind(String kind) { - this.kind = kind; - } - - - public V1alpha2ResourceClassParametersReference name(String name) { - - this.name = name; - return this; - } - - /** - * Name is the name of resource being referenced. - * @return name - **/ - @ApiModelProperty(required = true, value = "Name is the name of resource being referenced.") - - public String getName() { - return name; - } - - - public void setName(String name) { - this.name = name; - } - - - public V1alpha2ResourceClassParametersReference namespace(String namespace) { - - this.namespace = namespace; - return this; - } - - /** - * Namespace that contains the referenced resource. Must be empty for cluster-scoped resources and non-empty for namespaced resources. - * @return namespace - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "Namespace that contains the referenced resource. Must be empty for cluster-scoped resources and non-empty for namespaced resources.") - - public String getNamespace() { - return namespace; - } - - - public void setNamespace(String namespace) { - this.namespace = namespace; - } - - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1alpha2ResourceClassParametersReference v1alpha2ResourceClassParametersReference = (V1alpha2ResourceClassParametersReference) o; - return Objects.equals(this.apiGroup, v1alpha2ResourceClassParametersReference.apiGroup) && - Objects.equals(this.kind, v1alpha2ResourceClassParametersReference.kind) && - Objects.equals(this.name, v1alpha2ResourceClassParametersReference.name) && - Objects.equals(this.namespace, v1alpha2ResourceClassParametersReference.namespace); - } - - @Override - public int hashCode() { - return Objects.hash(apiGroup, kind, name, namespace); - } - - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class V1alpha2ResourceClassParametersReference {\n"); - sb.append(" apiGroup: ").append(toIndentedString(apiGroup)).append("\n"); - sb.append(" kind: ").append(toIndentedString(kind)).append("\n"); - sb.append(" name: ").append(toIndentedString(name)).append("\n"); - sb.append(" namespace: ").append(toIndentedString(namespace)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(java.lang.Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - -} diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha2ResourceHandle.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha2ResourceHandle.java deleted file mode 100644 index e4c68808c5..0000000000 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha2ResourceHandle.java +++ /dev/null @@ -1,127 +0,0 @@ -/* -Copyright 2023 The Kubernetes Authors. -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at -http://www.apache.org/licenses/LICENSE-2.0 -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ -package io.kubernetes.client.openapi.models; - -import java.util.Objects; -import java.util.Arrays; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -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; - -/** - * ResourceHandle holds opaque resource data for processing by a specific kubelet plugin. - */ -@ApiModel(description = "ResourceHandle holds opaque resource data for processing by a specific kubelet plugin.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-01T19:05:21.333462Z[Etc/UTC]") -public class V1alpha2ResourceHandle { - public static final String SERIALIZED_NAME_DATA = "data"; - @SerializedName(SERIALIZED_NAME_DATA) - private String data; - - public static final String SERIALIZED_NAME_DRIVER_NAME = "driverName"; - @SerializedName(SERIALIZED_NAME_DRIVER_NAME) - private String driverName; - - - public V1alpha2ResourceHandle data(String data) { - - this.data = data; - return this; - } - - /** - * Data contains the opaque data associated with this ResourceHandle. It is set by the controller component of the resource driver whose name matches the DriverName set in the ResourceClaimStatus this ResourceHandle is embedded in. It is set at allocation time and is intended for processing by the kubelet plugin whose name matches the DriverName set in this ResourceHandle. The maximum size of this field is 16KiB. This may get increased in the future, but not reduced. - * @return data - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "Data contains the opaque data associated with this ResourceHandle. It is set by the controller component of the resource driver whose name matches the DriverName set in the ResourceClaimStatus this ResourceHandle is embedded in. It is set at allocation time and is intended for processing by the kubelet plugin whose name matches the DriverName set in this ResourceHandle. The maximum size of this field is 16KiB. This may get increased in the future, but not reduced.") - - public String getData() { - return data; - } - - - public void setData(String data) { - this.data = data; - } - - - public V1alpha2ResourceHandle driverName(String driverName) { - - this.driverName = driverName; - return this; - } - - /** - * DriverName specifies the name of the resource driver whose kubelet plugin should be invoked to process this ResourceHandle's data once it lands on a node. This may differ from the DriverName set in ResourceClaimStatus this ResourceHandle is embedded in. - * @return driverName - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "DriverName specifies the name of the resource driver whose kubelet plugin should be invoked to process this ResourceHandle's data once it lands on a node. This may differ from the DriverName set in ResourceClaimStatus this ResourceHandle is embedded in.") - - public String getDriverName() { - return driverName; - } - - - public void setDriverName(String driverName) { - this.driverName = driverName; - } - - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1alpha2ResourceHandle v1alpha2ResourceHandle = (V1alpha2ResourceHandle) o; - return Objects.equals(this.data, v1alpha2ResourceHandle.data) && - Objects.equals(this.driverName, v1alpha2ResourceHandle.driverName); - } - - @Override - public int hashCode() { - return Objects.hash(data, driverName); - } - - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class V1alpha2ResourceHandle {\n"); - sb.append(" data: ").append(toIndentedString(data)).append("\n"); - sb.append(" driverName: ").append(toIndentedString(driverName)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(java.lang.Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - -} diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3AllocatedDeviceStatus.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3AllocatedDeviceStatus.java new file mode 100644 index 0000000000..1cd7404dc5 --- /dev/null +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3AllocatedDeviceStatus.java @@ -0,0 +1,252 @@ +/* +Copyright 2025 The Kubernetes Authors. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at +http://www.apache.org/licenses/LICENSE-2.0 +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ +package io.kubernetes.client.openapi.models; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.openapi.models.V1Condition; +import io.kubernetes.client.openapi.models.V1alpha3NetworkDeviceData; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; + +/** + * AllocatedDeviceStatus contains the status of an allocated device, if the driver chooses to report it. This may include driver-specific information. + */ +@ApiModel(description = "AllocatedDeviceStatus contains the status of an allocated device, if the driver chooses to report it. This may include driver-specific information.") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +public class V1alpha3AllocatedDeviceStatus { + public static final String SERIALIZED_NAME_CONDITIONS = "conditions"; + @SerializedName(SERIALIZED_NAME_CONDITIONS) + private List conditions = null; + + public static final String SERIALIZED_NAME_DATA = "data"; + @SerializedName(SERIALIZED_NAME_DATA) + private Object data; + + public static final String SERIALIZED_NAME_DEVICE = "device"; + @SerializedName(SERIALIZED_NAME_DEVICE) + private String device; + + public static final String SERIALIZED_NAME_DRIVER = "driver"; + @SerializedName(SERIALIZED_NAME_DRIVER) + private String driver; + + public static final String SERIALIZED_NAME_NETWORK_DATA = "networkData"; + @SerializedName(SERIALIZED_NAME_NETWORK_DATA) + private V1alpha3NetworkDeviceData networkData; + + public static final String SERIALIZED_NAME_POOL = "pool"; + @SerializedName(SERIALIZED_NAME_POOL) + private String pool; + + + public V1alpha3AllocatedDeviceStatus conditions(List conditions) { + + this.conditions = conditions; + return this; + } + + public V1alpha3AllocatedDeviceStatus addConditionsItem(V1Condition conditionsItem) { + if (this.conditions == null) { + this.conditions = new ArrayList<>(); + } + this.conditions.add(conditionsItem); + return this; + } + + /** + * Conditions contains the latest observation of the device's state. If the device has been configured according to the class and claim config references, the `Ready` condition should be True. Must not contain more than 8 entries. + * @return conditions + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "Conditions contains the latest observation of the device's state. If the device has been configured according to the class and claim config references, the `Ready` condition should be True. Must not contain more than 8 entries.") + + public List getConditions() { + return conditions; + } + + + public void setConditions(List conditions) { + this.conditions = conditions; + } + + + public V1alpha3AllocatedDeviceStatus data(Object data) { + + this.data = data; + return this; + } + + /** + * Data contains arbitrary driver-specific data. The length of the raw data must be smaller or equal to 10 Ki. + * @return data + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "Data contains arbitrary driver-specific data. The length of the raw data must be smaller or equal to 10 Ki.") + + public Object getData() { + return data; + } + + + public void setData(Object data) { + this.data = data; + } + + + public V1alpha3AllocatedDeviceStatus device(String device) { + + this.device = device; + return this; + } + + /** + * Device references one device instance via its name in the driver's resource pool. It must be a DNS label. + * @return device + **/ + @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; + } + + + public void setDevice(String device) { + this.device = device; + } + + + public V1alpha3AllocatedDeviceStatus driver(String driver) { + + this.driver = driver; + return this; + } + + /** + * 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. + * @return driver + **/ + @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; + } + + + public void setDriver(String driver) { + this.driver = driver; + } + + + public V1alpha3AllocatedDeviceStatus networkData(V1alpha3NetworkDeviceData networkData) { + + this.networkData = networkData; + return this; + } + + /** + * Get networkData + * @return networkData + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public V1alpha3NetworkDeviceData getNetworkData() { + return networkData; + } + + + public void setNetworkData(V1alpha3NetworkDeviceData networkData) { + this.networkData = networkData; + } + + + public V1alpha3AllocatedDeviceStatus pool(String pool) { + + this.pool = pool; + return this; + } + + /** + * This name together with the driver name and the device name field identify which device was allocated (`<driver name>/<pool name>/<device name>`). Must not be longer than 253 characters and may contain one or more DNS sub-domains separated by slashes. + * @return pool + **/ + @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; + } + + + public void setPool(String pool) { + this.pool = pool; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V1alpha3AllocatedDeviceStatus v1alpha3AllocatedDeviceStatus = (V1alpha3AllocatedDeviceStatus) o; + return Objects.equals(this.conditions, v1alpha3AllocatedDeviceStatus.conditions) && + Objects.equals(this.data, v1alpha3AllocatedDeviceStatus.data) && + Objects.equals(this.device, v1alpha3AllocatedDeviceStatus.device) && + Objects.equals(this.driver, v1alpha3AllocatedDeviceStatus.driver) && + Objects.equals(this.networkData, v1alpha3AllocatedDeviceStatus.networkData) && + Objects.equals(this.pool, v1alpha3AllocatedDeviceStatus.pool); + } + + @Override + public int hashCode() { + return Objects.hash(conditions, data, device, driver, networkData, pool); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class V1alpha3AllocatedDeviceStatus {\n"); + sb.append(" conditions: ").append(toIndentedString(conditions)).append("\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" device: ").append(toIndentedString(device)).append("\n"); + sb.append(" driver: ").append(toIndentedString(driver)).append("\n"); + sb.append(" networkData: ").append(toIndentedString(networkData)).append("\n"); + sb.append(" pool: ").append(toIndentedString(pool)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} 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 new file mode 100644 index 0000000000..8b477c2dd1 --- /dev/null +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3AllocationResult.java @@ -0,0 +1,129 @@ +/* +Copyright 2025 The Kubernetes Authors. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at +http://www.apache.org/licenses/LICENSE-2.0 +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ +package io.kubernetes.client.openapi.models; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +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; + +/** + * AllocationResult contains attributes of an allocated resource. + */ +@ApiModel(description = "AllocationResult contains attributes of an allocated resource.") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +public class V1alpha3AllocationResult { + public static final String SERIALIZED_NAME_DEVICES = "devices"; + @SerializedName(SERIALIZED_NAME_DEVICES) + private V1alpha3DeviceAllocationResult devices; + + public static final String SERIALIZED_NAME_NODE_SELECTOR = "nodeSelector"; + @SerializedName(SERIALIZED_NAME_NODE_SELECTOR) + private V1NodeSelector nodeSelector; + + + public V1alpha3AllocationResult devices(V1alpha3DeviceAllocationResult devices) { + + this.devices = devices; + return this; + } + + /** + * Get devices + * @return devices + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public V1alpha3DeviceAllocationResult getDevices() { + return devices; + } + + + public void setDevices(V1alpha3DeviceAllocationResult devices) { + this.devices = devices; + } + + + public V1alpha3AllocationResult nodeSelector(V1NodeSelector nodeSelector) { + + this.nodeSelector = nodeSelector; + return this; + } + + /** + * Get nodeSelector + * @return nodeSelector + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public V1NodeSelector getNodeSelector() { + return nodeSelector; + } + + + public void setNodeSelector(V1NodeSelector nodeSelector) { + this.nodeSelector = nodeSelector; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V1alpha3AllocationResult v1alpha3AllocationResult = (V1alpha3AllocationResult) o; + return Objects.equals(this.devices, v1alpha3AllocationResult.devices) && + Objects.equals(this.nodeSelector, v1alpha3AllocationResult.nodeSelector); + } + + @Override + public int hashCode() { + return Objects.hash(devices, nodeSelector); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class V1alpha3AllocationResult {\n"); + sb.append(" devices: ").append(toIndentedString(devices)).append("\n"); + sb.append(" nodeSelector: ").append(toIndentedString(nodeSelector)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} 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 new file mode 100644 index 0000000000..fde51be9cf --- /dev/null +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3BasicDevice.java @@ -0,0 +1,313 @@ +/* +Copyright 2025 The Kubernetes Authors. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at +http://www.apache.org/licenses/LICENSE-2.0 +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ +package io.kubernetes.client.openapi.models; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.custom.Quantity; +import io.kubernetes.client.openapi.models.V1NodeSelector; +import io.kubernetes.client.openapi.models.V1alpha3DeviceAttribute; +import io.kubernetes.client.openapi.models.V1alpha3DeviceCounterConsumption; +import io.kubernetes.client.openapi.models.V1alpha3DeviceTaint; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +/** + * BasicDevice defines one device instance. + */ +@ApiModel(description = "BasicDevice defines one device instance.") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +public class V1alpha3BasicDevice { + public static final String SERIALIZED_NAME_ALL_NODES = "allNodes"; + @SerializedName(SERIALIZED_NAME_ALL_NODES) + private Boolean allNodes; + + public static final String SERIALIZED_NAME_ATTRIBUTES = "attributes"; + @SerializedName(SERIALIZED_NAME_ATTRIBUTES) + private Map attributes = null; + + public static final String SERIALIZED_NAME_CAPACITY = "capacity"; + @SerializedName(SERIALIZED_NAME_CAPACITY) + private Map capacity = null; + + public static final String SERIALIZED_NAME_CONSUMES_COUNTERS = "consumesCounters"; + @SerializedName(SERIALIZED_NAME_CONSUMES_COUNTERS) + private List consumesCounters = null; + + public static final String SERIALIZED_NAME_NODE_NAME = "nodeName"; + @SerializedName(SERIALIZED_NAME_NODE_NAME) + private String nodeName; + + public static final String SERIALIZED_NAME_NODE_SELECTOR = "nodeSelector"; + @SerializedName(SERIALIZED_NAME_NODE_SELECTOR) + private V1NodeSelector nodeSelector; + + public static final String SERIALIZED_NAME_TAINTS = "taints"; + @SerializedName(SERIALIZED_NAME_TAINTS) + private List taints = null; + + + public V1alpha3BasicDevice allNodes(Boolean allNodes) { + + this.allNodes = allNodes; + return this; + } + + /** + * AllNodes indicates that all nodes have access to the device. Must only be set if Spec.PerDeviceNodeSelection is set to true. At most one of NodeName, NodeSelector and AllNodes can be set. + * @return allNodes + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "AllNodes indicates that all nodes have access to the device. Must only be set if Spec.PerDeviceNodeSelection is set to true. At most one of NodeName, NodeSelector and AllNodes can be set.") + + public Boolean getAllNodes() { + return allNodes; + } + + + public void setAllNodes(Boolean allNodes) { + this.allNodes = allNodes; + } + + + public V1alpha3BasicDevice attributes(Map attributes) { + + this.attributes = attributes; + return this; + } + + public V1alpha3BasicDevice putAttributesItem(String key, V1alpha3DeviceAttribute attributesItem) { + if (this.attributes == null) { + this.attributes = new HashMap<>(); + } + this.attributes.put(key, attributesItem); + return this; + } + + /** + * 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. + * @return attributes + **/ + @javax.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; + } + + + public void setAttributes(Map attributes) { + this.attributes = attributes; + } + + + public V1alpha3BasicDevice capacity(Map capacity) { + + this.capacity = capacity; + return this; + } + + public V1alpha3BasicDevice putCapacityItem(String key, Quantity capacityItem) { + if (this.capacity == null) { + this.capacity = new HashMap<>(); + } + this.capacity.put(key, capacityItem); + return this; + } + + /** + * 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. + * @return capacity + **/ + @javax.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; + } + + + public void setCapacity(Map capacity) { + this.capacity = capacity; + } + + + public V1alpha3BasicDevice consumesCounters(List consumesCounters) { + + this.consumesCounters = consumesCounters; + return this; + } + + public V1alpha3BasicDevice addConsumesCountersItem(V1alpha3DeviceCounterConsumption consumesCountersItem) { + if (this.consumesCounters == null) { + this.consumesCounters = new ArrayList<>(); + } + this.consumesCounters.add(consumesCountersItem); + return this; + } + + /** + * ConsumesCounters defines a list of references to sharedCounters and the set of counters that the device will consume from those counter sets. There can only be a single entry per counterSet. The total number of device counter consumption entries must be <= 32. In addition, the total number in the entire ResourceSlice must be <= 1024 (for example, 64 devices with 16 counters each). + * @return consumesCounters + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "ConsumesCounters defines a list of references to sharedCounters and the set of counters that the device will consume from those counter sets. There can only be a single entry per counterSet. The total number of device counter consumption entries must be <= 32. In addition, the total number in the entire ResourceSlice must be <= 1024 (for example, 64 devices with 16 counters each).") + + public List getConsumesCounters() { + return consumesCounters; + } + + + public void setConsumesCounters(List consumesCounters) { + this.consumesCounters = consumesCounters; + } + + + public V1alpha3BasicDevice nodeName(String nodeName) { + + this.nodeName = nodeName; + return this; + } + + /** + * NodeName identifies the node where the device is available. Must only be set if Spec.PerDeviceNodeSelection is set to true. At most one of NodeName, NodeSelector and AllNodes can be set. + * @return nodeName + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "NodeName identifies the node where the device is available. Must only be set if Spec.PerDeviceNodeSelection is set to true. At most one of NodeName, NodeSelector and AllNodes can be set.") + + public String getNodeName() { + return nodeName; + } + + + public void setNodeName(String nodeName) { + this.nodeName = nodeName; + } + + + public V1alpha3BasicDevice nodeSelector(V1NodeSelector nodeSelector) { + + this.nodeSelector = nodeSelector; + return this; + } + + /** + * Get nodeSelector + * @return nodeSelector + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public V1NodeSelector getNodeSelector() { + return nodeSelector; + } + + + public void setNodeSelector(V1NodeSelector nodeSelector) { + this.nodeSelector = nodeSelector; + } + + + public V1alpha3BasicDevice taints(List taints) { + + this.taints = taints; + return this; + } + + public V1alpha3BasicDevice addTaintsItem(V1alpha3DeviceTaint taintsItem) { + if (this.taints == null) { + this.taints = new ArrayList<>(); + } + this.taints.add(taintsItem); + return this; + } + + /** + * If specified, these are the driver-defined taints. The maximum number of taints is 4. This is an alpha field and requires enabling the DRADeviceTaints feature gate. + * @return taints + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "If specified, these are the driver-defined taints. The maximum number of taints is 4. This is an alpha field and requires enabling the DRADeviceTaints feature gate.") + + public List getTaints() { + return taints; + } + + + public void setTaints(List taints) { + this.taints = taints; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V1alpha3BasicDevice v1alpha3BasicDevice = (V1alpha3BasicDevice) o; + return Objects.equals(this.allNodes, v1alpha3BasicDevice.allNodes) && + Objects.equals(this.attributes, v1alpha3BasicDevice.attributes) && + Objects.equals(this.capacity, v1alpha3BasicDevice.capacity) && + Objects.equals(this.consumesCounters, v1alpha3BasicDevice.consumesCounters) && + Objects.equals(this.nodeName, v1alpha3BasicDevice.nodeName) && + Objects.equals(this.nodeSelector, v1alpha3BasicDevice.nodeSelector) && + Objects.equals(this.taints, v1alpha3BasicDevice.taints); + } + + @Override + public int hashCode() { + return Objects.hash(allNodes, attributes, capacity, consumesCounters, nodeName, nodeSelector, taints); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class V1alpha3BasicDevice {\n"); + sb.append(" allNodes: ").append(toIndentedString(allNodes)).append("\n"); + sb.append(" attributes: ").append(toIndentedString(attributes)).append("\n"); + sb.append(" capacity: ").append(toIndentedString(capacity)).append("\n"); + sb.append(" consumesCounters: ").append(toIndentedString(consumesCounters)).append("\n"); + sb.append(" nodeName: ").append(toIndentedString(nodeName)).append("\n"); + sb.append(" nodeSelector: ").append(toIndentedString(nodeSelector)).append("\n"); + sb.append(" taints: ").append(toIndentedString(taints)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} 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 new file mode 100644 index 0000000000..7c139ac040 --- /dev/null +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3CELDeviceSelector.java @@ -0,0 +1,97 @@ +/* +Copyright 2025 The Kubernetes Authors. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at +http://www.apache.org/licenses/LICENSE-2.0 +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ +package io.kubernetes.client.openapi.models; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +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; + +/** + * CELDeviceSelector contains a CEL expression for selecting a device. + */ +@ApiModel(description = "CELDeviceSelector contains a CEL expression for selecting a device.") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +public class V1alpha3CELDeviceSelector { + public static final String SERIALIZED_NAME_EXPRESSION = "expression"; + @SerializedName(SERIALIZED_NAME_EXPRESSION) + private String expression; + + + public V1alpha3CELDeviceSelector expression(String expression) { + + this.expression = expression; + return this; + } + + /** + * 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) The length of the expression must be smaller or equal to 10 Ki. The cost of evaluating it is also limited based on the estimated number of logical steps. + * @return expression + **/ + @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) The length of the expression must be smaller or equal to 10 Ki. The cost of evaluating it is also limited based on the estimated number of logical steps.") + + public String getExpression() { + return expression; + } + + + public void setExpression(String expression) { + this.expression = expression; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V1alpha3CELDeviceSelector v1alpha3CELDeviceSelector = (V1alpha3CELDeviceSelector) o; + return Objects.equals(this.expression, v1alpha3CELDeviceSelector.expression); + } + + @Override + public int hashCode() { + return Objects.hash(expression); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class V1alpha3CELDeviceSelector {\n"); + sb.append(" expression: ").append(toIndentedString(expression)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3Counter.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3Counter.java new file mode 100644 index 0000000000..7dbc5d5307 --- /dev/null +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3Counter.java @@ -0,0 +1,98 @@ +/* +Copyright 2025 The Kubernetes Authors. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at +http://www.apache.org/licenses/LICENSE-2.0 +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ +package io.kubernetes.client.openapi.models; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +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; + +/** + * Counter describes a quantity associated with a device. + */ +@ApiModel(description = "Counter describes a quantity associated with a device.") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +public class V1alpha3Counter { + public static final String SERIALIZED_NAME_VALUE = "value"; + @SerializedName(SERIALIZED_NAME_VALUE) + private Quantity value; + + + public V1alpha3Counter value(Quantity value) { + + this.value = value; + return this; + } + + /** + * 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: ``` <quantity> ::= <signedNumber><suffix> (Note that <suffix> may be empty, from the \"\" case in <decimalSI>.) <digit> ::= 0 | 1 | ... | 9 <digits> ::= <digit> | <digit><digits> <number> ::= <digits> | <digits>.<digits> | <digits>. | .<digits> <sign> ::= \"+\" | \"-\" <signedNumber> ::= <number> | <sign><number> <suffix> ::= <binarySI> | <decimalExponent> | <decimalSI> <binarySI> ::= Ki | Mi | Gi | Ti | Pi | Ei (International System of units; See: http://physics.nist.gov/cuu/Units/binary.html) <decimalSI> ::= m | \"\" | k | M | G | T | P | E (Note that 1024 = 1Ki but 1000 = 1k; I didn't choose the capitalization.) <decimalExponent> ::= \"e\" <signedNumber> | \"E\" <signedNumber> ``` 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. + * @return value + **/ + @ApiModelProperty(required = true, 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; + } + + + public void setValue(Quantity value) { + this.value = value; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V1alpha3Counter v1alpha3Counter = (V1alpha3Counter) o; + return Objects.equals(this.value, v1alpha3Counter.value); + } + + @Override + public int hashCode() { + return Objects.hash(value); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class V1alpha3Counter {\n"); + sb.append(" value: ").append(toIndentedString(value)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3CounterSet.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3CounterSet.java new file mode 100644 index 0000000000..22aaf0f2b6 --- /dev/null +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3CounterSet.java @@ -0,0 +1,134 @@ +/* +Copyright 2025 The Kubernetes Authors. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at +http://www.apache.org/licenses/LICENSE-2.0 +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ +package io.kubernetes.client.openapi.models; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.openapi.models.V1alpha3Counter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +/** + * CounterSet defines a named set of counters that are available to be used by devices defined in the ResourceSlice. The counters are not allocatable by themselves, but can be referenced by devices. When a device is allocated, the portion of counters it uses will no longer be available for use by other devices. + */ +@ApiModel(description = "CounterSet defines a named set of counters that are available to be used by devices defined in the ResourceSlice. The counters are not allocatable by themselves, but can be referenced by devices. When a device is allocated, the portion of counters it uses will no longer be available for use by other devices.") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +public class V1alpha3CounterSet { + public static final String SERIALIZED_NAME_COUNTERS = "counters"; + @SerializedName(SERIALIZED_NAME_COUNTERS) + private Map counters = new HashMap<>(); + + public static final String SERIALIZED_NAME_NAME = "name"; + @SerializedName(SERIALIZED_NAME_NAME) + private String name; + + + public V1alpha3CounterSet counters(Map counters) { + + this.counters = counters; + return this; + } + + public V1alpha3CounterSet putCountersItem(String key, V1alpha3Counter countersItem) { + this.counters.put(key, countersItem); + return this; + } + + /** + * Counters defines the counters that will be consumed by the device. The name of each counter must be unique in that set and must be a DNS label. To ensure this uniqueness, capacities defined by the vendor must be listed without the driver name as domain prefix in their name. All others must be listed with their domain prefix. The maximum number of counters is 32. + * @return counters + **/ + @ApiModelProperty(required = true, value = "Counters defines the counters that will be consumed by the device. The name of each counter must be unique in that set and must be a DNS label. To ensure this uniqueness, capacities defined by the vendor must be listed without the driver name as domain prefix in their name. All others must be listed with their domain prefix. The maximum number of counters is 32.") + + public Map getCounters() { + return counters; + } + + + public void setCounters(Map counters) { + this.counters = counters; + } + + + public V1alpha3CounterSet name(String name) { + + this.name = name; + return this; + } + + /** + * CounterSet is the name of the set from which the counters defined will be consumed. + * @return name + **/ + @ApiModelProperty(required = true, value = "CounterSet is the name of the set from which the counters defined will be consumed.") + + public String getName() { + return name; + } + + + public void setName(String name) { + this.name = name; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V1alpha3CounterSet v1alpha3CounterSet = (V1alpha3CounterSet) o; + return Objects.equals(this.counters, v1alpha3CounterSet.counters) && + Objects.equals(this.name, v1alpha3CounterSet.name); + } + + @Override + public int hashCode() { + return Objects.hash(counters, name); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class V1alpha3CounterSet {\n"); + sb.append(" counters: ").append(toIndentedString(counters)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} 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 new file mode 100644 index 0000000000..9015f508b2 --- /dev/null +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3Device.java @@ -0,0 +1,127 @@ +/* +Copyright 2025 The Kubernetes Authors. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at +http://www.apache.org/licenses/LICENSE-2.0 +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ +package io.kubernetes.client.openapi.models; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +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; + +/** + * Device represents one individual hardware instance that can be selected based on its attributes. Besides the name, exactly one field must be set. + */ +@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.") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +public class V1alpha3Device { + public static final String SERIALIZED_NAME_BASIC = "basic"; + @SerializedName(SERIALIZED_NAME_BASIC) + private V1alpha3BasicDevice basic; + + public static final String SERIALIZED_NAME_NAME = "name"; + @SerializedName(SERIALIZED_NAME_NAME) + private String name; + + + public V1alpha3Device basic(V1alpha3BasicDevice basic) { + + this.basic = basic; + return this; + } + + /** + * Get basic + * @return basic + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public V1alpha3BasicDevice getBasic() { + return basic; + } + + + public void setBasic(V1alpha3BasicDevice basic) { + this.basic = basic; + } + + + public V1alpha3Device name(String name) { + + this.name = name; + return this; + } + + /** + * Name is unique identifier among all devices managed by the driver in the pool. It must be a DNS label. + * @return name + **/ + @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; + } + + + public void setName(String name) { + this.name = name; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V1alpha3Device v1alpha3Device = (V1alpha3Device) o; + return Objects.equals(this.basic, v1alpha3Device.basic) && + Objects.equals(this.name, v1alpha3Device.name); + } + + @Override + public int hashCode() { + return Objects.hash(basic, name); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class V1alpha3Device {\n"); + sb.append(" basic: ").append(toIndentedString(basic)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} 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 new file mode 100644 index 0000000000..8875bfc9e9 --- /dev/null +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceAllocationConfiguration.java @@ -0,0 +1,166 @@ +/* +Copyright 2025 The Kubernetes Authors. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at +http://www.apache.org/licenses/LICENSE-2.0 +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ +package io.kubernetes.client.openapi.models; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +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.List; + +/** + * DeviceAllocationConfiguration gets embedded in an AllocationResult. + */ +@ApiModel(description = "DeviceAllocationConfiguration gets embedded in an AllocationResult.") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +public class V1alpha3DeviceAllocationConfiguration { + public static final String SERIALIZED_NAME_OPAQUE = "opaque"; + @SerializedName(SERIALIZED_NAME_OPAQUE) + private V1alpha3OpaqueDeviceConfiguration opaque; + + public static final String SERIALIZED_NAME_REQUESTS = "requests"; + @SerializedName(SERIALIZED_NAME_REQUESTS) + private List requests = null; + + public static final String SERIALIZED_NAME_SOURCE = "source"; + @SerializedName(SERIALIZED_NAME_SOURCE) + private String source; + + + public V1alpha3DeviceAllocationConfiguration opaque(V1alpha3OpaqueDeviceConfiguration opaque) { + + this.opaque = opaque; + return this; + } + + /** + * Get opaque + * @return opaque + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public V1alpha3OpaqueDeviceConfiguration getOpaque() { + return opaque; + } + + + public void setOpaque(V1alpha3OpaqueDeviceConfiguration opaque) { + this.opaque = opaque; + } + + + public V1alpha3DeviceAllocationConfiguration requests(List requests) { + + this.requests = requests; + return this; + } + + public V1alpha3DeviceAllocationConfiguration addRequestsItem(String requestsItem) { + if (this.requests == null) { + this.requests = new ArrayList<>(); + } + this.requests.add(requestsItem); + return this; + } + + /** + * Requests lists the names of requests where the configuration applies. If empty, its applies to all requests. References to subrequests must include the name of the main request and may include the subrequest using the format <main request>[/<subrequest>]. If just the main request is given, the configuration applies to all subrequests. + * @return requests + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "Requests lists the names of requests where the configuration applies. If empty, its applies to all requests. References to subrequests must include the name of the main request and may include the subrequest using the format
[/]. If just the main request is given, the configuration applies to all subrequests.") + + public List getRequests() { + return requests; + } + + + public void setRequests(List requests) { + this.requests = requests; + } + + + public V1alpha3DeviceAllocationConfiguration source(String source) { + + this.source = source; + return this; + } + + /** + * 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. + * @return source + **/ + @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; + } + + + public void setSource(String source) { + this.source = source; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V1alpha3DeviceAllocationConfiguration v1alpha3DeviceAllocationConfiguration = (V1alpha3DeviceAllocationConfiguration) o; + return Objects.equals(this.opaque, v1alpha3DeviceAllocationConfiguration.opaque) && + Objects.equals(this.requests, v1alpha3DeviceAllocationConfiguration.requests) && + Objects.equals(this.source, v1alpha3DeviceAllocationConfiguration.source); + } + + @Override + public int hashCode() { + return Objects.hash(opaque, requests, source); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class V1alpha3DeviceAllocationConfiguration {\n"); + sb.append(" opaque: ").append(toIndentedString(opaque)).append("\n"); + sb.append(" requests: ").append(toIndentedString(requests)).append("\n"); + sb.append(" source: ").append(toIndentedString(source)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} 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 new file mode 100644 index 0000000000..aec8006874 --- /dev/null +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceAllocationResult.java @@ -0,0 +1,147 @@ +/* +Copyright 2025 The Kubernetes Authors. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at +http://www.apache.org/licenses/LICENSE-2.0 +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ +package io.kubernetes.client.openapi.models; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +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.List; + +/** + * DeviceAllocationResult is the result of allocating devices. + */ +@ApiModel(description = "DeviceAllocationResult is the result of allocating devices.") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +public class V1alpha3DeviceAllocationResult { + public static final String SERIALIZED_NAME_CONFIG = "config"; + @SerializedName(SERIALIZED_NAME_CONFIG) + private List config = null; + + public static final String SERIALIZED_NAME_RESULTS = "results"; + @SerializedName(SERIALIZED_NAME_RESULTS) + private List results = null; + + + public V1alpha3DeviceAllocationResult config(List config) { + + this.config = config; + return this; + } + + public V1alpha3DeviceAllocationResult addConfigItem(V1alpha3DeviceAllocationConfiguration configItem) { + if (this.config == null) { + this.config = new ArrayList<>(); + } + this.config.add(configItem); + return this; + } + + /** + * 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. + * @return config + **/ + @javax.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; + } + + + public void setConfig(List config) { + this.config = config; + } + + + public V1alpha3DeviceAllocationResult results(List results) { + + this.results = results; + return this; + } + + public V1alpha3DeviceAllocationResult addResultsItem(V1alpha3DeviceRequestAllocationResult resultsItem) { + if (this.results == null) { + this.results = new ArrayList<>(); + } + this.results.add(resultsItem); + return this; + } + + /** + * Results lists all allocated devices. + * @return results + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "Results lists all allocated devices.") + + public List getResults() { + return results; + } + + + public void setResults(List results) { + this.results = results; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V1alpha3DeviceAllocationResult v1alpha3DeviceAllocationResult = (V1alpha3DeviceAllocationResult) o; + return Objects.equals(this.config, v1alpha3DeviceAllocationResult.config) && + Objects.equals(this.results, v1alpha3DeviceAllocationResult.results); + } + + @Override + public int hashCode() { + return Objects.hash(config, results); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class V1alpha3DeviceAllocationResult {\n"); + sb.append(" config: ").append(toIndentedString(config)).append("\n"); + sb.append(" results: ").append(toIndentedString(results)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} 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 new file mode 100644 index 0000000000..5e9a87b73b --- /dev/null +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceAttribute.java @@ -0,0 +1,185 @@ +/* +Copyright 2025 The Kubernetes Authors. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at +http://www.apache.org/licenses/LICENSE-2.0 +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ +package io.kubernetes.client.openapi.models; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +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; + +/** + * DeviceAttribute must have exactly one field set. + */ +@ApiModel(description = "DeviceAttribute must have exactly one field set.") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +public class V1alpha3DeviceAttribute { + public static final String SERIALIZED_NAME_BOOL = "bool"; + @SerializedName(SERIALIZED_NAME_BOOL) + private Boolean bool; + + public static final String SERIALIZED_NAME_INT = "int"; + @SerializedName(SERIALIZED_NAME_INT) + private Long _int; + + public static final String SERIALIZED_NAME_STRING = "string"; + @SerializedName(SERIALIZED_NAME_STRING) + private String string; + + public static final String SERIALIZED_NAME_VERSION = "version"; + @SerializedName(SERIALIZED_NAME_VERSION) + private String version; + + + public V1alpha3DeviceAttribute bool(Boolean bool) { + + this.bool = bool; + return this; + } + + /** + * BoolValue is a true/false value. + * @return bool + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "BoolValue is a true/false value.") + + public Boolean getBool() { + return bool; + } + + + public void setBool(Boolean bool) { + this.bool = bool; + } + + + public V1alpha3DeviceAttribute _int(Long _int) { + + this._int = _int; + return this; + } + + /** + * IntValue is a number. + * @return _int + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "IntValue is a number.") + + public Long getInt() { + return _int; + } + + + public void setInt(Long _int) { + this._int = _int; + } + + + public V1alpha3DeviceAttribute string(String string) { + + this.string = string; + return this; + } + + /** + * StringValue is a string. Must not be longer than 64 characters. + * @return string + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "StringValue is a string. Must not be longer than 64 characters.") + + public String getString() { + return string; + } + + + public void setString(String string) { + this.string = string; + } + + + public V1alpha3DeviceAttribute version(String version) { + + this.version = version; + return this; + } + + /** + * VersionValue is a semantic version according to semver.org spec 2.0.0. Must not be longer than 64 characters. + * @return version + **/ + @javax.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; + } + + + public void setVersion(String version) { + this.version = version; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V1alpha3DeviceAttribute v1alpha3DeviceAttribute = (V1alpha3DeviceAttribute) o; + return Objects.equals(this.bool, v1alpha3DeviceAttribute.bool) && + Objects.equals(this._int, v1alpha3DeviceAttribute._int) && + Objects.equals(this.string, v1alpha3DeviceAttribute.string) && + Objects.equals(this.version, v1alpha3DeviceAttribute.version); + } + + @Override + public int hashCode() { + return Objects.hash(bool, _int, string, version); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class V1alpha3DeviceAttribute {\n"); + sb.append(" bool: ").append(toIndentedString(bool)).append("\n"); + sb.append(" _int: ").append(toIndentedString(_int)).append("\n"); + sb.append(" string: ").append(toIndentedString(string)).append("\n"); + sb.append(" version: ").append(toIndentedString(version)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} 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 new file mode 100644 index 0000000000..c6e877e042 --- /dev/null +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceClaim.java @@ -0,0 +1,185 @@ +/* +Copyright 2025 The Kubernetes Authors. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at +http://www.apache.org/licenses/LICENSE-2.0 +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ +package io.kubernetes.client.openapi.models; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +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.List; + +/** + * DeviceClaim defines how to request devices with a ResourceClaim. + */ +@ApiModel(description = "DeviceClaim defines how to request devices with a ResourceClaim.") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +public class V1alpha3DeviceClaim { + public static final String SERIALIZED_NAME_CONFIG = "config"; + @SerializedName(SERIALIZED_NAME_CONFIG) + private List config = null; + + public static final String SERIALIZED_NAME_CONSTRAINTS = "constraints"; + @SerializedName(SERIALIZED_NAME_CONSTRAINTS) + private List constraints = null; + + public static final String SERIALIZED_NAME_REQUESTS = "requests"; + @SerializedName(SERIALIZED_NAME_REQUESTS) + private List requests = null; + + + public V1alpha3DeviceClaim config(List config) { + + this.config = config; + return this; + } + + public V1alpha3DeviceClaim addConfigItem(V1alpha3DeviceClaimConfiguration configItem) { + if (this.config == null) { + this.config = new ArrayList<>(); + } + this.config.add(configItem); + return this; + } + + /** + * This field holds configuration for multiple potential drivers which could satisfy requests in this claim. It is ignored while allocating the claim. + * @return config + **/ + @javax.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; + } + + + public void setConfig(List config) { + this.config = config; + } + + + public V1alpha3DeviceClaim constraints(List constraints) { + + this.constraints = constraints; + return this; + } + + public V1alpha3DeviceClaim addConstraintsItem(V1alpha3DeviceConstraint constraintsItem) { + if (this.constraints == null) { + this.constraints = new ArrayList<>(); + } + this.constraints.add(constraintsItem); + return this; + } + + /** + * These constraints must be satisfied by the set of devices that get allocated for the claim. + * @return constraints + **/ + @javax.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; + } + + + public void setConstraints(List constraints) { + this.constraints = constraints; + } + + + public V1alpha3DeviceClaim requests(List requests) { + + this.requests = requests; + return this; + } + + public V1alpha3DeviceClaim addRequestsItem(V1alpha3DeviceRequest requestsItem) { + if (this.requests == null) { + this.requests = new ArrayList<>(); + } + this.requests.add(requestsItem); + return this; + } + + /** + * Requests represent individual requests for distinct devices which must all be satisfied. If empty, nothing needs to be allocated. + * @return requests + **/ + @javax.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; + } + + + public void setRequests(List requests) { + this.requests = requests; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V1alpha3DeviceClaim v1alpha3DeviceClaim = (V1alpha3DeviceClaim) o; + return Objects.equals(this.config, v1alpha3DeviceClaim.config) && + Objects.equals(this.constraints, v1alpha3DeviceClaim.constraints) && + Objects.equals(this.requests, v1alpha3DeviceClaim.requests); + } + + @Override + public int hashCode() { + return Objects.hash(config, constraints, requests); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class V1alpha3DeviceClaim {\n"); + sb.append(" config: ").append(toIndentedString(config)).append("\n"); + sb.append(" constraints: ").append(toIndentedString(constraints)).append("\n"); + sb.append(" requests: ").append(toIndentedString(requests)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} 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 new file mode 100644 index 0000000000..382854c681 --- /dev/null +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceClaimConfiguration.java @@ -0,0 +1,138 @@ +/* +Copyright 2025 The Kubernetes Authors. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at +http://www.apache.org/licenses/LICENSE-2.0 +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ +package io.kubernetes.client.openapi.models; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +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.List; + +/** + * DeviceClaimConfiguration is used for configuration parameters in DeviceClaim. + */ +@ApiModel(description = "DeviceClaimConfiguration is used for configuration parameters in DeviceClaim.") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +public class V1alpha3DeviceClaimConfiguration { + public static final String SERIALIZED_NAME_OPAQUE = "opaque"; + @SerializedName(SERIALIZED_NAME_OPAQUE) + private V1alpha3OpaqueDeviceConfiguration opaque; + + public static final String SERIALIZED_NAME_REQUESTS = "requests"; + @SerializedName(SERIALIZED_NAME_REQUESTS) + private List requests = null; + + + public V1alpha3DeviceClaimConfiguration opaque(V1alpha3OpaqueDeviceConfiguration opaque) { + + this.opaque = opaque; + return this; + } + + /** + * Get opaque + * @return opaque + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public V1alpha3OpaqueDeviceConfiguration getOpaque() { + return opaque; + } + + + public void setOpaque(V1alpha3OpaqueDeviceConfiguration opaque) { + this.opaque = opaque; + } + + + public V1alpha3DeviceClaimConfiguration requests(List requests) { + + this.requests = requests; + return this; + } + + public V1alpha3DeviceClaimConfiguration addRequestsItem(String requestsItem) { + if (this.requests == null) { + this.requests = new ArrayList<>(); + } + this.requests.add(requestsItem); + return this; + } + + /** + * Requests lists the names of requests where the configuration applies. If empty, it applies to all requests. References to subrequests must include the name of the main request and may include the subrequest using the format <main request>[/<subrequest>]. If just the main request is given, the configuration applies to all subrequests. + * @return requests + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "Requests lists the names of requests where the configuration applies. If empty, it applies to all requests. References to subrequests must include the name of the main request and may include the subrequest using the format
[/]. If just the main request is given, the configuration applies to all subrequests.") + + public List getRequests() { + return requests; + } + + + public void setRequests(List requests) { + this.requests = requests; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V1alpha3DeviceClaimConfiguration v1alpha3DeviceClaimConfiguration = (V1alpha3DeviceClaimConfiguration) o; + return Objects.equals(this.opaque, v1alpha3DeviceClaimConfiguration.opaque) && + Objects.equals(this.requests, v1alpha3DeviceClaimConfiguration.requests); + } + + @Override + public int hashCode() { + return Objects.hash(opaque, requests); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class V1alpha3DeviceClaimConfiguration {\n"); + sb.append(" opaque: ").append(toIndentedString(opaque)).append("\n"); + sb.append(" requests: ").append(toIndentedString(requests)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} 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 new file mode 100644 index 0000000000..df5132e021 --- /dev/null +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceClass.java @@ -0,0 +1,186 @@ +/* +Copyright 2025 The Kubernetes Authors. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at +http://www.apache.org/licenses/LICENSE-2.0 +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ +package io.kubernetes.client.openapi.models; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +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; + +/** + * 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. + */ +@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.") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +public class V1alpha3DeviceClass implements io.kubernetes.client.common.KubernetesObject { + public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; + @SerializedName(SERIALIZED_NAME_API_VERSION) + private String apiVersion; + + public static final String SERIALIZED_NAME_KIND = "kind"; + @SerializedName(SERIALIZED_NAME_KIND) + private String kind; + + public static final String SERIALIZED_NAME_METADATA = "metadata"; + @SerializedName(SERIALIZED_NAME_METADATA) + private V1ObjectMeta metadata; + + public static final String SERIALIZED_NAME_SPEC = "spec"; + @SerializedName(SERIALIZED_NAME_SPEC) + private V1alpha3DeviceClassSpec spec; + + + public V1alpha3DeviceClass apiVersion(String apiVersion) { + + this.apiVersion = apiVersion; + return this; + } + + /** + * 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 + * @return apiVersion + **/ + @javax.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; + } + + + public void setApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + } + + + public V1alpha3DeviceClass kind(String kind) { + + this.kind = kind; + return this; + } + + /** + * 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 + * @return kind + **/ + @javax.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; + } + + + public void setKind(String kind) { + this.kind = kind; + } + + + public V1alpha3DeviceClass metadata(V1ObjectMeta metadata) { + + this.metadata = metadata; + return this; + } + + /** + * Get metadata + * @return metadata + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public V1ObjectMeta getMetadata() { + return metadata; + } + + + public void setMetadata(V1ObjectMeta metadata) { + this.metadata = metadata; + } + + + public V1alpha3DeviceClass spec(V1alpha3DeviceClassSpec spec) { + + this.spec = spec; + return this; + } + + /** + * Get spec + * @return spec + **/ + @ApiModelProperty(required = true, value = "") + + public V1alpha3DeviceClassSpec getSpec() { + return spec; + } + + + public void setSpec(V1alpha3DeviceClassSpec spec) { + this.spec = spec; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V1alpha3DeviceClass v1alpha3DeviceClass = (V1alpha3DeviceClass) o; + return Objects.equals(this.apiVersion, v1alpha3DeviceClass.apiVersion) && + Objects.equals(this.kind, v1alpha3DeviceClass.kind) && + Objects.equals(this.metadata, v1alpha3DeviceClass.metadata) && + Objects.equals(this.spec, v1alpha3DeviceClass.spec); + } + + @Override + public int hashCode() { + return Objects.hash(apiVersion, kind, metadata, spec); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class V1alpha3DeviceClass {\n"); + sb.append(" apiVersion: ").append(toIndentedString(apiVersion)).append("\n"); + sb.append(" kind: ").append(toIndentedString(kind)).append("\n"); + sb.append(" metadata: ").append(toIndentedString(metadata)).append("\n"); + sb.append(" spec: ").append(toIndentedString(spec)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} 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 new file mode 100644 index 0000000000..14f41c13b3 --- /dev/null +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceClassConfiguration.java @@ -0,0 +1,99 @@ +/* +Copyright 2025 The Kubernetes Authors. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at +http://www.apache.org/licenses/LICENSE-2.0 +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ +package io.kubernetes.client.openapi.models; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +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; + +/** + * DeviceClassConfiguration is used in DeviceClass. + */ +@ApiModel(description = "DeviceClassConfiguration is used in DeviceClass.") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +public class V1alpha3DeviceClassConfiguration { + public static final String SERIALIZED_NAME_OPAQUE = "opaque"; + @SerializedName(SERIALIZED_NAME_OPAQUE) + private V1alpha3OpaqueDeviceConfiguration opaque; + + + public V1alpha3DeviceClassConfiguration opaque(V1alpha3OpaqueDeviceConfiguration opaque) { + + this.opaque = opaque; + return this; + } + + /** + * Get opaque + * @return opaque + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public V1alpha3OpaqueDeviceConfiguration getOpaque() { + return opaque; + } + + + public void setOpaque(V1alpha3OpaqueDeviceConfiguration opaque) { + this.opaque = opaque; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V1alpha3DeviceClassConfiguration v1alpha3DeviceClassConfiguration = (V1alpha3DeviceClassConfiguration) o; + return Objects.equals(this.opaque, v1alpha3DeviceClassConfiguration.opaque); + } + + @Override + public int hashCode() { + return Objects.hash(opaque); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class V1alpha3DeviceClassConfiguration {\n"); + sb.append(" opaque: ").append(toIndentedString(opaque)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} 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 new file mode 100644 index 0000000000..bfc3793638 --- /dev/null +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceClassList.java @@ -0,0 +1,193 @@ +/* +Copyright 2025 The Kubernetes Authors. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at +http://www.apache.org/licenses/LICENSE-2.0 +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ +package io.kubernetes.client.openapi.models; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +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.List; + +/** + * DeviceClassList is a collection of classes. + */ +@ApiModel(description = "DeviceClassList is a collection of classes.") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +public class V1alpha3DeviceClassList implements io.kubernetes.client.common.KubernetesListObject { + public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; + @SerializedName(SERIALIZED_NAME_API_VERSION) + private String apiVersion; + + public static final String SERIALIZED_NAME_ITEMS = "items"; + @SerializedName(SERIALIZED_NAME_ITEMS) + private List items = new ArrayList<>(); + + public static final String SERIALIZED_NAME_KIND = "kind"; + @SerializedName(SERIALIZED_NAME_KIND) + private String kind; + + public static final String SERIALIZED_NAME_METADATA = "metadata"; + @SerializedName(SERIALIZED_NAME_METADATA) + private V1ListMeta metadata; + + + public V1alpha3DeviceClassList apiVersion(String apiVersion) { + + this.apiVersion = apiVersion; + return this; + } + + /** + * 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 + * @return apiVersion + **/ + @javax.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; + } + + + public void setApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + } + + + public V1alpha3DeviceClassList items(List items) { + + this.items = items; + return this; + } + + public V1alpha3DeviceClassList addItemsItem(V1alpha3DeviceClass itemsItem) { + this.items.add(itemsItem); + return this; + } + + /** + * Items is the list of resource classes. + * @return items + **/ + @ApiModelProperty(required = true, value = "Items is the list of resource classes.") + + public List getItems() { + return items; + } + + + public void setItems(List items) { + this.items = items; + } + + + public V1alpha3DeviceClassList kind(String kind) { + + this.kind = kind; + return this; + } + + /** + * 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 + * @return kind + **/ + @javax.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; + } + + + public void setKind(String kind) { + this.kind = kind; + } + + + public V1alpha3DeviceClassList metadata(V1ListMeta metadata) { + + this.metadata = metadata; + return this; + } + + /** + * Get metadata + * @return metadata + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public V1ListMeta getMetadata() { + return metadata; + } + + + public void setMetadata(V1ListMeta metadata) { + this.metadata = metadata; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V1alpha3DeviceClassList v1alpha3DeviceClassList = (V1alpha3DeviceClassList) o; + return Objects.equals(this.apiVersion, v1alpha3DeviceClassList.apiVersion) && + Objects.equals(this.items, v1alpha3DeviceClassList.items) && + Objects.equals(this.kind, v1alpha3DeviceClassList.kind) && + Objects.equals(this.metadata, v1alpha3DeviceClassList.metadata); + } + + @Override + public int hashCode() { + return Objects.hash(apiVersion, items, kind, metadata); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class V1alpha3DeviceClassList {\n"); + sb.append(" apiVersion: ").append(toIndentedString(apiVersion)).append("\n"); + sb.append(" items: ").append(toIndentedString(items)).append("\n"); + sb.append(" kind: ").append(toIndentedString(kind)).append("\n"); + sb.append(" metadata: ").append(toIndentedString(metadata)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} 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 new file mode 100644 index 0000000000..225981ab81 --- /dev/null +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceClassSpec.java @@ -0,0 +1,147 @@ +/* +Copyright 2025 The Kubernetes Authors. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at +http://www.apache.org/licenses/LICENSE-2.0 +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ +package io.kubernetes.client.openapi.models; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +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.List; + +/** + * DeviceClassSpec is used in a [DeviceClass] to define what can be allocated and how to configure it. + */ +@ApiModel(description = "DeviceClassSpec is used in a [DeviceClass] to define what can be allocated and how to configure it.") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +public class V1alpha3DeviceClassSpec { + public static final String SERIALIZED_NAME_CONFIG = "config"; + @SerializedName(SERIALIZED_NAME_CONFIG) + private List config = null; + + public static final String SERIALIZED_NAME_SELECTORS = "selectors"; + @SerializedName(SERIALIZED_NAME_SELECTORS) + private List selectors = null; + + + public V1alpha3DeviceClassSpec config(List config) { + + this.config = config; + return this; + } + + public V1alpha3DeviceClassSpec addConfigItem(V1alpha3DeviceClassConfiguration configItem) { + if (this.config == null) { + this.config = new ArrayList<>(); + } + this.config.add(configItem); + return this; + } + + /** + * 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. + * @return config + **/ + @javax.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; + } + + + public void setConfig(List config) { + this.config = config; + } + + + public V1alpha3DeviceClassSpec selectors(List selectors) { + + this.selectors = selectors; + return this; + } + + public V1alpha3DeviceClassSpec addSelectorsItem(V1alpha3DeviceSelector selectorsItem) { + if (this.selectors == null) { + this.selectors = new ArrayList<>(); + } + this.selectors.add(selectorsItem); + return this; + } + + /** + * Each selector must be satisfied by a device which is claimed via this class. + * @return selectors + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "Each selector must be satisfied by a device which is claimed via this class.") + + public List getSelectors() { + return selectors; + } + + + public void setSelectors(List selectors) { + this.selectors = selectors; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V1alpha3DeviceClassSpec v1alpha3DeviceClassSpec = (V1alpha3DeviceClassSpec) o; + return Objects.equals(this.config, v1alpha3DeviceClassSpec.config) && + Objects.equals(this.selectors, v1alpha3DeviceClassSpec.selectors); + } + + @Override + public int hashCode() { + return Objects.hash(config, selectors); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class V1alpha3DeviceClassSpec {\n"); + sb.append(" config: ").append(toIndentedString(config)).append("\n"); + sb.append(" selectors: ").append(toIndentedString(selectors)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} 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 new file mode 100644 index 0000000000..a032c5f33e --- /dev/null +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceConstraint.java @@ -0,0 +1,137 @@ +/* +Copyright 2025 The Kubernetes Authors. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at +http://www.apache.org/licenses/LICENSE-2.0 +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ +package io.kubernetes.client.openapi.models; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +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.List; + +/** + * DeviceConstraint must have exactly one field set besides Requests. + */ +@ApiModel(description = "DeviceConstraint must have exactly one field set besides Requests.") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +public class V1alpha3DeviceConstraint { + public static final String SERIALIZED_NAME_MATCH_ATTRIBUTE = "matchAttribute"; + @SerializedName(SERIALIZED_NAME_MATCH_ATTRIBUTE) + private String matchAttribute; + + public static final String SERIALIZED_NAME_REQUESTS = "requests"; + @SerializedName(SERIALIZED_NAME_REQUESTS) + private List requests = null; + + + public V1alpha3DeviceConstraint matchAttribute(String matchAttribute) { + + this.matchAttribute = matchAttribute; + return this; + } + + /** + * 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. + * @return matchAttribute + **/ + @javax.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; + } + + + public void setMatchAttribute(String matchAttribute) { + this.matchAttribute = matchAttribute; + } + + + public V1alpha3DeviceConstraint requests(List requests) { + + this.requests = requests; + return this; + } + + public V1alpha3DeviceConstraint addRequestsItem(String requestsItem) { + if (this.requests == null) { + this.requests = new ArrayList<>(); + } + this.requests.add(requestsItem); + return this; + } + + /** + * 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. References to subrequests must include the name of the main request and may include the subrequest using the format <main request>[/<subrequest>]. If just the main request is given, the constraint applies to all subrequests. + * @return requests + **/ + @javax.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. References to subrequests must include the name of the main request and may include the subrequest using the format
[/]. If just the main request is given, the constraint applies to all subrequests.") + + public List getRequests() { + return requests; + } + + + public void setRequests(List requests) { + this.requests = requests; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V1alpha3DeviceConstraint v1alpha3DeviceConstraint = (V1alpha3DeviceConstraint) o; + return Objects.equals(this.matchAttribute, v1alpha3DeviceConstraint.matchAttribute) && + Objects.equals(this.requests, v1alpha3DeviceConstraint.requests); + } + + @Override + public int hashCode() { + return Objects.hash(matchAttribute, requests); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class V1alpha3DeviceConstraint {\n"); + sb.append(" matchAttribute: ").append(toIndentedString(matchAttribute)).append("\n"); + sb.append(" requests: ").append(toIndentedString(requests)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceCounterConsumption.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceCounterConsumption.java new file mode 100644 index 0000000000..e6afb9cd37 --- /dev/null +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceCounterConsumption.java @@ -0,0 +1,134 @@ +/* +Copyright 2025 The Kubernetes Authors. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at +http://www.apache.org/licenses/LICENSE-2.0 +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ +package io.kubernetes.client.openapi.models; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.openapi.models.V1alpha3Counter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +/** + * DeviceCounterConsumption defines a set of counters that a device will consume from a CounterSet. + */ +@ApiModel(description = "DeviceCounterConsumption defines a set of counters that a device will consume from a CounterSet.") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +public class V1alpha3DeviceCounterConsumption { + public static final String SERIALIZED_NAME_COUNTER_SET = "counterSet"; + @SerializedName(SERIALIZED_NAME_COUNTER_SET) + private String counterSet; + + public static final String SERIALIZED_NAME_COUNTERS = "counters"; + @SerializedName(SERIALIZED_NAME_COUNTERS) + private Map counters = new HashMap<>(); + + + public V1alpha3DeviceCounterConsumption counterSet(String counterSet) { + + this.counterSet = counterSet; + return this; + } + + /** + * CounterSet defines the set from which the counters defined will be consumed. + * @return counterSet + **/ + @ApiModelProperty(required = true, value = "CounterSet defines the set from which the counters defined will be consumed.") + + public String getCounterSet() { + return counterSet; + } + + + public void setCounterSet(String counterSet) { + this.counterSet = counterSet; + } + + + public V1alpha3DeviceCounterConsumption counters(Map counters) { + + this.counters = counters; + return this; + } + + public V1alpha3DeviceCounterConsumption putCountersItem(String key, V1alpha3Counter countersItem) { + this.counters.put(key, countersItem); + return this; + } + + /** + * Counters defines the Counter that will be consumed by the device. The maximum number counters in a device is 32. In addition, the maximum number of all counters in all devices is 1024 (for example, 64 devices with 16 counters each). + * @return counters + **/ + @ApiModelProperty(required = true, value = "Counters defines the Counter that will be consumed by the device. The maximum number counters in a device is 32. In addition, the maximum number of all counters in all devices is 1024 (for example, 64 devices with 16 counters each).") + + public Map getCounters() { + return counters; + } + + + public void setCounters(Map counters) { + this.counters = counters; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V1alpha3DeviceCounterConsumption v1alpha3DeviceCounterConsumption = (V1alpha3DeviceCounterConsumption) o; + return Objects.equals(this.counterSet, v1alpha3DeviceCounterConsumption.counterSet) && + Objects.equals(this.counters, v1alpha3DeviceCounterConsumption.counters); + } + + @Override + public int hashCode() { + return Objects.hash(counterSet, counters); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class V1alpha3DeviceCounterConsumption {\n"); + sb.append(" counterSet: ").append(toIndentedString(counterSet)).append("\n"); + sb.append(" counters: ").append(toIndentedString(counters)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} 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 new file mode 100644 index 0000000000..b9676ff162 --- /dev/null +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceRequest.java @@ -0,0 +1,329 @@ +/* +Copyright 2025 The Kubernetes Authors. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at +http://www.apache.org/licenses/LICENSE-2.0 +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ +package io.kubernetes.client.openapi.models; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.openapi.models.V1alpha3DeviceSelector; +import io.kubernetes.client.openapi.models.V1alpha3DeviceSubRequest; +import io.kubernetes.client.openapi.models.V1alpha3DeviceToleration; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; + +/** + * 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. + */ +@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.") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +public class V1alpha3DeviceRequest { + public static final String SERIALIZED_NAME_ADMIN_ACCESS = "adminAccess"; + @SerializedName(SERIALIZED_NAME_ADMIN_ACCESS) + private Boolean adminAccess; + + public static final String SERIALIZED_NAME_ALLOCATION_MODE = "allocationMode"; + @SerializedName(SERIALIZED_NAME_ALLOCATION_MODE) + private String allocationMode; + + public static final String SERIALIZED_NAME_COUNT = "count"; + @SerializedName(SERIALIZED_NAME_COUNT) + private Long count; + + public static final String SERIALIZED_NAME_DEVICE_CLASS_NAME = "deviceClassName"; + @SerializedName(SERIALIZED_NAME_DEVICE_CLASS_NAME) + private String deviceClassName; + + public static final String SERIALIZED_NAME_FIRST_AVAILABLE = "firstAvailable"; + @SerializedName(SERIALIZED_NAME_FIRST_AVAILABLE) + private List firstAvailable = null; + + public static final String SERIALIZED_NAME_NAME = "name"; + @SerializedName(SERIALIZED_NAME_NAME) + private String name; + + public static final String SERIALIZED_NAME_SELECTORS = "selectors"; + @SerializedName(SERIALIZED_NAME_SELECTORS) + private List selectors = null; + + public static final String SERIALIZED_NAME_TOLERATIONS = "tolerations"; + @SerializedName(SERIALIZED_NAME_TOLERATIONS) + private List tolerations = null; + + + public V1alpha3DeviceRequest adminAccess(Boolean adminAccess) { + + this.adminAccess = adminAccess; + return this; + } + + /** + * 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. This field can only be set when deviceClassName is set and no subrequests are specified in the firstAvailable list. This is an alpha field and requires enabling the DRAAdminAccess feature gate. Admin access is disabled if this field is unset or set to false, otherwise it is enabled. + * @return adminAccess + **/ + @javax.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. This field can only be set when deviceClassName is set and no subrequests are specified in the firstAvailable list. This is an alpha field and requires enabling the DRAAdminAccess feature gate. Admin access is disabled if this field is unset or set to false, otherwise it is enabled.") + + public Boolean getAdminAccess() { + return adminAccess; + } + + + public void setAdminAccess(Boolean adminAccess) { + this.adminAccess = adminAccess; + } + + + public V1alpha3DeviceRequest allocationMode(String allocationMode) { + + this.allocationMode = allocationMode; + return this; + } + + /** + * 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. At least one device must exist on the node for the allocation to succeed. Allocation will fail if some devices are already allocated, unless adminAccess is requested. If AllocationMode 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. This field can only be set when deviceClassName is set and no subrequests are specified in the firstAvailable list. More modes may get added in the future. Clients must refuse to handle requests with unknown modes. + * @return allocationMode + **/ + @javax.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. At least one device must exist on the node for the allocation to succeed. Allocation will fail if some devices are already allocated, unless adminAccess is requested. If AllocationMode 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. This field can only be set when deviceClassName is set and no subrequests are specified in the firstAvailable list. More modes may get added in the future. Clients must refuse to handle requests with unknown modes.") + + public String getAllocationMode() { + return allocationMode; + } + + + public void setAllocationMode(String allocationMode) { + this.allocationMode = allocationMode; + } + + + public V1alpha3DeviceRequest count(Long count) { + + this.count = count; + return this; + } + + /** + * 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. This field can only be set when deviceClassName is set and no subrequests are specified in the firstAvailable list. + * @return count + **/ + @javax.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. This field can only be set when deviceClassName is set and no subrequests are specified in the firstAvailable list.") + + public Long getCount() { + return count; + } + + + public void setCount(Long count) { + this.count = count; + } + + + public V1alpha3DeviceRequest deviceClassName(String deviceClassName) { + + this.deviceClassName = deviceClassName; + return this; + } + + /** + * DeviceClassName references a specific DeviceClass, which can define additional configuration and selectors to be inherited by this request. A class is required if no subrequests are specified in the firstAvailable list and no class can be set if subrequests are specified in the firstAvailable list. 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. + * @return deviceClassName + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "DeviceClassName references a specific DeviceClass, which can define additional configuration and selectors to be inherited by this request. A class is required if no subrequests are specified in the firstAvailable list and no class can be set if subrequests are specified in the firstAvailable list. 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; + } + + + public void setDeviceClassName(String deviceClassName) { + this.deviceClassName = deviceClassName; + } + + + public V1alpha3DeviceRequest firstAvailable(List firstAvailable) { + + this.firstAvailable = firstAvailable; + return this; + } + + public V1alpha3DeviceRequest addFirstAvailableItem(V1alpha3DeviceSubRequest firstAvailableItem) { + if (this.firstAvailable == null) { + this.firstAvailable = new ArrayList<>(); + } + this.firstAvailable.add(firstAvailableItem); + return this; + } + + /** + * FirstAvailable contains subrequests, of which exactly one will be satisfied by the scheduler to satisfy this request. It tries to satisfy them in the order in which they are listed here. So if there are two entries in the list, the scheduler will only check the second one if it determines that the first one cannot be used. This field may only be set in the entries of DeviceClaim.Requests. DRA does not yet implement scoring, so the scheduler will select the first set of devices that satisfies all the requests in the claim. And if the requirements can be satisfied on more than one node, other scheduling features will determine which node is chosen. This means that the set of devices allocated to a claim might not be the optimal set available to the cluster. Scoring will be implemented later. + * @return firstAvailable + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "FirstAvailable contains subrequests, of which exactly one will be satisfied by the scheduler to satisfy this request. It tries to satisfy them in the order in which they are listed here. So if there are two entries in the list, the scheduler will only check the second one if it determines that the first one cannot be used. This field may only be set in the entries of DeviceClaim.Requests. DRA does not yet implement scoring, so the scheduler will select the first set of devices that satisfies all the requests in the claim. And if the requirements can be satisfied on more than one node, other scheduling features will determine which node is chosen. This means that the set of devices allocated to a claim might not be the optimal set available to the cluster. Scoring will be implemented later.") + + public List getFirstAvailable() { + return firstAvailable; + } + + + public void setFirstAvailable(List firstAvailable) { + this.firstAvailable = firstAvailable; + } + + + public V1alpha3DeviceRequest name(String name) { + + this.name = name; + return this; + } + + /** + * 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. + * @return name + **/ + @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; + } + + + public void setName(String name) { + this.name = name; + } + + + public V1alpha3DeviceRequest selectors(List selectors) { + + this.selectors = selectors; + return this; + } + + public V1alpha3DeviceRequest addSelectorsItem(V1alpha3DeviceSelector selectorsItem) { + if (this.selectors == null) { + this.selectors = new ArrayList<>(); + } + this.selectors.add(selectorsItem); + return this; + } + + /** + * 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. This field can only be set when deviceClassName is set and no subrequests are specified in the firstAvailable list. + * @return selectors + **/ + @javax.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. This field can only be set when deviceClassName is set and no subrequests are specified in the firstAvailable list.") + + public List getSelectors() { + return selectors; + } + + + public void setSelectors(List selectors) { + this.selectors = selectors; + } + + + public V1alpha3DeviceRequest tolerations(List tolerations) { + + this.tolerations = tolerations; + return this; + } + + public V1alpha3DeviceRequest addTolerationsItem(V1alpha3DeviceToleration tolerationsItem) { + if (this.tolerations == null) { + this.tolerations = new ArrayList<>(); + } + this.tolerations.add(tolerationsItem); + return this; + } + + /** + * If specified, the request's tolerations. Tolerations for NoSchedule are required to allocate a device which has a taint with that effect. The same applies to NoExecute. In addition, should any of the allocated devices get tainted with NoExecute after allocation and that effect is not tolerated, then all pods consuming the ResourceClaim get deleted to evict them. The scheduler will not let new pods reserve the claim while it has these tainted devices. Once all pods are evicted, the claim will get deallocated. The maximum number of tolerations is 16. This field can only be set when deviceClassName is set and no subrequests are specified in the firstAvailable list. This is an alpha field and requires enabling the DRADeviceTaints feature gate. + * @return tolerations + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "If specified, the request's tolerations. Tolerations for NoSchedule are required to allocate a device which has a taint with that effect. The same applies to NoExecute. In addition, should any of the allocated devices get tainted with NoExecute after allocation and that effect is not tolerated, then all pods consuming the ResourceClaim get deleted to evict them. The scheduler will not let new pods reserve the claim while it has these tainted devices. Once all pods are evicted, the claim will get deallocated. The maximum number of tolerations is 16. This field can only be set when deviceClassName is set and no subrequests are specified in the firstAvailable list. This is an alpha field and requires enabling the DRADeviceTaints feature gate.") + + public List getTolerations() { + return tolerations; + } + + + public void setTolerations(List tolerations) { + this.tolerations = tolerations; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V1alpha3DeviceRequest v1alpha3DeviceRequest = (V1alpha3DeviceRequest) o; + return Objects.equals(this.adminAccess, v1alpha3DeviceRequest.adminAccess) && + Objects.equals(this.allocationMode, v1alpha3DeviceRequest.allocationMode) && + Objects.equals(this.count, v1alpha3DeviceRequest.count) && + Objects.equals(this.deviceClassName, v1alpha3DeviceRequest.deviceClassName) && + Objects.equals(this.firstAvailable, v1alpha3DeviceRequest.firstAvailable) && + Objects.equals(this.name, v1alpha3DeviceRequest.name) && + Objects.equals(this.selectors, v1alpha3DeviceRequest.selectors) && + Objects.equals(this.tolerations, v1alpha3DeviceRequest.tolerations); + } + + @Override + public int hashCode() { + return Objects.hash(adminAccess, allocationMode, count, deviceClassName, firstAvailable, name, selectors, tolerations); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class V1alpha3DeviceRequest {\n"); + sb.append(" adminAccess: ").append(toIndentedString(adminAccess)).append("\n"); + sb.append(" allocationMode: ").append(toIndentedString(allocationMode)).append("\n"); + sb.append(" count: ").append(toIndentedString(count)).append("\n"); + sb.append(" deviceClassName: ").append(toIndentedString(deviceClassName)).append("\n"); + sb.append(" firstAvailable: ").append(toIndentedString(firstAvailable)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" selectors: ").append(toIndentedString(selectors)).append("\n"); + sb.append(" tolerations: ").append(toIndentedString(tolerations)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} 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 new file mode 100644 index 0000000000..60b53348b5 --- /dev/null +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceRequestAllocationResult.java @@ -0,0 +1,250 @@ +/* +Copyright 2025 The Kubernetes Authors. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at +http://www.apache.org/licenses/LICENSE-2.0 +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ +package io.kubernetes.client.openapi.models; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.openapi.models.V1alpha3DeviceToleration; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; + +/** + * DeviceRequestAllocationResult contains the allocation result for one request. + */ +@ApiModel(description = "DeviceRequestAllocationResult contains the allocation result for one request.") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +public class V1alpha3DeviceRequestAllocationResult { + public static final String SERIALIZED_NAME_ADMIN_ACCESS = "adminAccess"; + @SerializedName(SERIALIZED_NAME_ADMIN_ACCESS) + private Boolean adminAccess; + + public static final String SERIALIZED_NAME_DEVICE = "device"; + @SerializedName(SERIALIZED_NAME_DEVICE) + private String device; + + public static final String SERIALIZED_NAME_DRIVER = "driver"; + @SerializedName(SERIALIZED_NAME_DRIVER) + private String driver; + + public static final String SERIALIZED_NAME_POOL = "pool"; + @SerializedName(SERIALIZED_NAME_POOL) + private String pool; + + public static final String SERIALIZED_NAME_REQUEST = "request"; + @SerializedName(SERIALIZED_NAME_REQUEST) + private String request; + + public static final String SERIALIZED_NAME_TOLERATIONS = "tolerations"; + @SerializedName(SERIALIZED_NAME_TOLERATIONS) + private List tolerations = null; + + + public V1alpha3DeviceRequestAllocationResult adminAccess(Boolean adminAccess) { + + this.adminAccess = adminAccess; + return this; + } + + /** + * AdminAccess indicates that this device was allocated for administrative access. See the corresponding request field for a definition of mode. This is an alpha field and requires enabling the DRAAdminAccess feature gate. Admin access is disabled if this field is unset or set to false, otherwise it is enabled. + * @return adminAccess + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "AdminAccess indicates that this device was allocated for administrative access. See the corresponding request field for a definition of mode. This is an alpha field and requires enabling the DRAAdminAccess feature gate. Admin access is disabled if this field is unset or set to false, otherwise it is enabled.") + + public Boolean getAdminAccess() { + return adminAccess; + } + + + public void setAdminAccess(Boolean adminAccess) { + this.adminAccess = adminAccess; + } + + + public V1alpha3DeviceRequestAllocationResult device(String device) { + + this.device = device; + return this; + } + + /** + * Device references one device instance via its name in the driver's resource pool. It must be a DNS label. + * @return device + **/ + @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; + } + + + public void setDevice(String device) { + this.device = device; + } + + + public V1alpha3DeviceRequestAllocationResult driver(String driver) { + + this.driver = driver; + return this; + } + + /** + * 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. + * @return driver + **/ + @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; + } + + + public void setDriver(String driver) { + this.driver = driver; + } + + + public V1alpha3DeviceRequestAllocationResult pool(String pool) { + + this.pool = pool; + return this; + } + + /** + * This name together with the driver name and the device name field identify which device was allocated (`<driver name>/<pool name>/<device name>`). Must not be longer than 253 characters and may contain one or more DNS sub-domains separated by slashes. + * @return pool + **/ + @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; + } + + + public void setPool(String pool) { + this.pool = pool; + } + + + public V1alpha3DeviceRequestAllocationResult request(String request) { + + this.request = request; + return this; + } + + /** + * Request is the name of the request in the claim which caused this device to be allocated. If it references a subrequest in the firstAvailable list on a DeviceRequest, this field must include both the name of the main request and the subrequest using the format <main request>/<subrequest>. Multiple devices may have been allocated per request. + * @return request + **/ + @ApiModelProperty(required = true, value = "Request is the name of the request in the claim which caused this device to be allocated. If it references a subrequest in the firstAvailable list on a DeviceRequest, this field must include both the name of the main request and the subrequest using the format
/. Multiple devices may have been allocated per request.") + + public String getRequest() { + return request; + } + + + public void setRequest(String request) { + this.request = request; + } + + + public V1alpha3DeviceRequestAllocationResult tolerations(List tolerations) { + + this.tolerations = tolerations; + return this; + } + + public V1alpha3DeviceRequestAllocationResult addTolerationsItem(V1alpha3DeviceToleration tolerationsItem) { + if (this.tolerations == null) { + this.tolerations = new ArrayList<>(); + } + this.tolerations.add(tolerationsItem); + return this; + } + + /** + * A copy of all tolerations specified in the request at the time when the device got allocated. The maximum number of tolerations is 16. This is an alpha field and requires enabling the DRADeviceTaints feature gate. + * @return tolerations + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "A copy of all tolerations specified in the request at the time when the device got allocated. The maximum number of tolerations is 16. This is an alpha field and requires enabling the DRADeviceTaints feature gate.") + + public List getTolerations() { + return tolerations; + } + + + public void setTolerations(List tolerations) { + this.tolerations = tolerations; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V1alpha3DeviceRequestAllocationResult v1alpha3DeviceRequestAllocationResult = (V1alpha3DeviceRequestAllocationResult) o; + return Objects.equals(this.adminAccess, v1alpha3DeviceRequestAllocationResult.adminAccess) && + Objects.equals(this.device, v1alpha3DeviceRequestAllocationResult.device) && + Objects.equals(this.driver, v1alpha3DeviceRequestAllocationResult.driver) && + Objects.equals(this.pool, v1alpha3DeviceRequestAllocationResult.pool) && + Objects.equals(this.request, v1alpha3DeviceRequestAllocationResult.request) && + Objects.equals(this.tolerations, v1alpha3DeviceRequestAllocationResult.tolerations); + } + + @Override + public int hashCode() { + return Objects.hash(adminAccess, device, driver, pool, request, tolerations); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class V1alpha3DeviceRequestAllocationResult {\n"); + sb.append(" adminAccess: ").append(toIndentedString(adminAccess)).append("\n"); + sb.append(" device: ").append(toIndentedString(device)).append("\n"); + sb.append(" driver: ").append(toIndentedString(driver)).append("\n"); + sb.append(" pool: ").append(toIndentedString(pool)).append("\n"); + sb.append(" request: ").append(toIndentedString(request)).append("\n"); + sb.append(" tolerations: ").append(toIndentedString(tolerations)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} 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 new file mode 100644 index 0000000000..e1a9b2eb9e --- /dev/null +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceSelector.java @@ -0,0 +1,99 @@ +/* +Copyright 2025 The Kubernetes Authors. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at +http://www.apache.org/licenses/LICENSE-2.0 +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ +package io.kubernetes.client.openapi.models; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +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; + +/** + * DeviceSelector must have exactly one field set. + */ +@ApiModel(description = "DeviceSelector must have exactly one field set.") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +public class V1alpha3DeviceSelector { + public static final String SERIALIZED_NAME_CEL = "cel"; + @SerializedName(SERIALIZED_NAME_CEL) + private V1alpha3CELDeviceSelector cel; + + + public V1alpha3DeviceSelector cel(V1alpha3CELDeviceSelector cel) { + + this.cel = cel; + return this; + } + + /** + * Get cel + * @return cel + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public V1alpha3CELDeviceSelector getCel() { + return cel; + } + + + public void setCel(V1alpha3CELDeviceSelector cel) { + this.cel = cel; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V1alpha3DeviceSelector v1alpha3DeviceSelector = (V1alpha3DeviceSelector) o; + return Objects.equals(this.cel, v1alpha3DeviceSelector.cel); + } + + @Override + public int hashCode() { + return Objects.hash(cel); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class V1alpha3DeviceSelector {\n"); + sb.append(" cel: ").append(toIndentedString(cel)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceSubRequest.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceSubRequest.java new file mode 100644 index 0000000000..da16e59099 --- /dev/null +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceSubRequest.java @@ -0,0 +1,261 @@ +/* +Copyright 2025 The Kubernetes Authors. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at +http://www.apache.org/licenses/LICENSE-2.0 +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ +package io.kubernetes.client.openapi.models; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.openapi.models.V1alpha3DeviceSelector; +import io.kubernetes.client.openapi.models.V1alpha3DeviceToleration; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; + +/** + * DeviceSubRequest describes a request for device provided in the claim.spec.devices.requests[].firstAvailable array. Each is typically a request for a single resource like a device, but can also ask for several identical devices. DeviceSubRequest is similar to Request, but doesn't expose the AdminAccess or FirstAvailable fields, as those can only be set on the top-level request. AdminAccess is not supported for requests with a prioritized list, and recursive FirstAvailable fields are not supported. + */ +@ApiModel(description = "DeviceSubRequest describes a request for device provided in the claim.spec.devices.requests[].firstAvailable array. Each is typically a request for a single resource like a device, but can also ask for several identical devices. DeviceSubRequest is similar to Request, but doesn't expose the AdminAccess or FirstAvailable fields, as those can only be set on the top-level request. AdminAccess is not supported for requests with a prioritized list, and recursive FirstAvailable fields are not supported.") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +public class V1alpha3DeviceSubRequest { + public static final String SERIALIZED_NAME_ALLOCATION_MODE = "allocationMode"; + @SerializedName(SERIALIZED_NAME_ALLOCATION_MODE) + private String allocationMode; + + public static final String SERIALIZED_NAME_COUNT = "count"; + @SerializedName(SERIALIZED_NAME_COUNT) + private Long count; + + public static final String SERIALIZED_NAME_DEVICE_CLASS_NAME = "deviceClassName"; + @SerializedName(SERIALIZED_NAME_DEVICE_CLASS_NAME) + private String deviceClassName; + + public static final String SERIALIZED_NAME_NAME = "name"; + @SerializedName(SERIALIZED_NAME_NAME) + private String name; + + public static final String SERIALIZED_NAME_SELECTORS = "selectors"; + @SerializedName(SERIALIZED_NAME_SELECTORS) + private List selectors = null; + + public static final String SERIALIZED_NAME_TOLERATIONS = "tolerations"; + @SerializedName(SERIALIZED_NAME_TOLERATIONS) + private List tolerations = null; + + + public V1alpha3DeviceSubRequest allocationMode(String allocationMode) { + + this.allocationMode = allocationMode; + return this; + } + + /** + * 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 AllocationMode 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. + * @return allocationMode + **/ + @javax.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 AllocationMode 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; + } + + + public void setAllocationMode(String allocationMode) { + this.allocationMode = allocationMode; + } + + + public V1alpha3DeviceSubRequest count(Long count) { + + this.count = count; + return this; + } + + /** + * 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. + * @return count + **/ + @javax.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; + } + + + public void setCount(Long count) { + this.count = count; + } + + + public V1alpha3DeviceSubRequest deviceClassName(String deviceClassName) { + + this.deviceClassName = deviceClassName; + return this; + } + + /** + * DeviceClassName references a specific DeviceClass, which can define additional configuration and selectors to be inherited by this subrequest. 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. + * @return deviceClassName + **/ + @ApiModelProperty(required = true, value = "DeviceClassName references a specific DeviceClass, which can define additional configuration and selectors to be inherited by this subrequest. 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; + } + + + public void setDeviceClassName(String deviceClassName) { + this.deviceClassName = deviceClassName; + } + + + public V1alpha3DeviceSubRequest name(String name) { + + this.name = name; + return this; + } + + /** + * Name can be used to reference this subrequest in the list of constraints or the list of configurations for the claim. References must use the format <main request>/<subrequest>. Must be a DNS label. + * @return name + **/ + @ApiModelProperty(required = true, value = "Name can be used to reference this subrequest in the list of constraints or the list of configurations for the claim. References must use the format
/. Must be a DNS label.") + + public String getName() { + return name; + } + + + public void setName(String name) { + this.name = name; + } + + + public V1alpha3DeviceSubRequest selectors(List selectors) { + + this.selectors = selectors; + return this; + } + + public V1alpha3DeviceSubRequest addSelectorsItem(V1alpha3DeviceSelector selectorsItem) { + if (this.selectors == null) { + this.selectors = new ArrayList<>(); + } + this.selectors.add(selectorsItem); + return this; + } + + /** + * 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. + * @return selectors + **/ + @javax.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; + } + + + public void setSelectors(List selectors) { + this.selectors = selectors; + } + + + public V1alpha3DeviceSubRequest tolerations(List tolerations) { + + this.tolerations = tolerations; + return this; + } + + public V1alpha3DeviceSubRequest addTolerationsItem(V1alpha3DeviceToleration tolerationsItem) { + if (this.tolerations == null) { + this.tolerations = new ArrayList<>(); + } + this.tolerations.add(tolerationsItem); + return this; + } + + /** + * If specified, the request's tolerations. Tolerations for NoSchedule are required to allocate a device which has a taint with that effect. The same applies to NoExecute. In addition, should any of the allocated devices get tainted with NoExecute after allocation and that effect is not tolerated, then all pods consuming the ResourceClaim get deleted to evict them. The scheduler will not let new pods reserve the claim while it has these tainted devices. Once all pods are evicted, the claim will get deallocated. The maximum number of tolerations is 16. This is an alpha field and requires enabling the DRADeviceTaints feature gate. + * @return tolerations + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "If specified, the request's tolerations. Tolerations for NoSchedule are required to allocate a device which has a taint with that effect. The same applies to NoExecute. In addition, should any of the allocated devices get tainted with NoExecute after allocation and that effect is not tolerated, then all pods consuming the ResourceClaim get deleted to evict them. The scheduler will not let new pods reserve the claim while it has these tainted devices. Once all pods are evicted, the claim will get deallocated. The maximum number of tolerations is 16. This is an alpha field and requires enabling the DRADeviceTaints feature gate.") + + public List getTolerations() { + return tolerations; + } + + + public void setTolerations(List tolerations) { + this.tolerations = tolerations; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V1alpha3DeviceSubRequest v1alpha3DeviceSubRequest = (V1alpha3DeviceSubRequest) o; + return Objects.equals(this.allocationMode, v1alpha3DeviceSubRequest.allocationMode) && + Objects.equals(this.count, v1alpha3DeviceSubRequest.count) && + Objects.equals(this.deviceClassName, v1alpha3DeviceSubRequest.deviceClassName) && + Objects.equals(this.name, v1alpha3DeviceSubRequest.name) && + Objects.equals(this.selectors, v1alpha3DeviceSubRequest.selectors) && + Objects.equals(this.tolerations, v1alpha3DeviceSubRequest.tolerations); + } + + @Override + public int hashCode() { + return Objects.hash(allocationMode, count, deviceClassName, name, selectors, tolerations); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class V1alpha3DeviceSubRequest {\n"); + sb.append(" allocationMode: ").append(toIndentedString(allocationMode)).append("\n"); + sb.append(" count: ").append(toIndentedString(count)).append("\n"); + sb.append(" deviceClassName: ").append(toIndentedString(deviceClassName)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" selectors: ").append(toIndentedString(selectors)).append("\n"); + sb.append(" tolerations: ").append(toIndentedString(tolerations)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceTaint.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceTaint.java new file mode 100644 index 0000000000..5553694514 --- /dev/null +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceTaint.java @@ -0,0 +1,184 @@ +/* +Copyright 2025 The Kubernetes Authors. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at +http://www.apache.org/licenses/LICENSE-2.0 +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ +package io.kubernetes.client.openapi.models; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +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; + +/** + * The device this taint is attached to has the \"effect\" on any claim which does not tolerate the taint and, through the claim, to pods using the claim. + */ +@ApiModel(description = "The device this taint is attached to has the \"effect\" on any claim which does not tolerate the taint and, through the claim, to pods using the claim.") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +public class V1alpha3DeviceTaint { + public static final String SERIALIZED_NAME_EFFECT = "effect"; + @SerializedName(SERIALIZED_NAME_EFFECT) + private String effect; + + public static final String SERIALIZED_NAME_KEY = "key"; + @SerializedName(SERIALIZED_NAME_KEY) + private String key; + + public static final String SERIALIZED_NAME_TIME_ADDED = "timeAdded"; + @SerializedName(SERIALIZED_NAME_TIME_ADDED) + private OffsetDateTime timeAdded; + + public static final String SERIALIZED_NAME_VALUE = "value"; + @SerializedName(SERIALIZED_NAME_VALUE) + private String value; + + + public V1alpha3DeviceTaint effect(String effect) { + + this.effect = effect; + return this; + } + + /** + * The effect of the taint on claims that do not tolerate the taint and through such claims on the pods using them. Valid effects are NoSchedule and NoExecute. PreferNoSchedule as used for nodes is not valid here. + * @return effect + **/ + @ApiModelProperty(required = true, value = "The effect of the taint on claims that do not tolerate the taint and through such claims on the pods using them. Valid effects are NoSchedule and NoExecute. PreferNoSchedule as used for nodes is not valid here.") + + public String getEffect() { + return effect; + } + + + public void setEffect(String effect) { + this.effect = effect; + } + + + public V1alpha3DeviceTaint key(String key) { + + this.key = key; + return this; + } + + /** + * The taint key to be applied to a device. Must be a label name. + * @return key + **/ + @ApiModelProperty(required = true, value = "The taint key to be applied to a device. Must be a label name.") + + public String getKey() { + return key; + } + + + public void setKey(String key) { + this.key = key; + } + + + public V1alpha3DeviceTaint timeAdded(OffsetDateTime timeAdded) { + + this.timeAdded = timeAdded; + return this; + } + + /** + * TimeAdded represents the time at which the taint was added. Added automatically during create or update if not set. + * @return timeAdded + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "TimeAdded represents the time at which the taint was added. Added automatically during create or update if not set.") + + public OffsetDateTime getTimeAdded() { + return timeAdded; + } + + + public void setTimeAdded(OffsetDateTime timeAdded) { + this.timeAdded = timeAdded; + } + + + public V1alpha3DeviceTaint value(String value) { + + this.value = value; + return this; + } + + /** + * The taint value corresponding to the taint key. Must be a label value. + * @return value + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "The taint value corresponding to the taint key. Must be a label value.") + + public String getValue() { + return value; + } + + + public void setValue(String value) { + this.value = value; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V1alpha3DeviceTaint v1alpha3DeviceTaint = (V1alpha3DeviceTaint) o; + return Objects.equals(this.effect, v1alpha3DeviceTaint.effect) && + Objects.equals(this.key, v1alpha3DeviceTaint.key) && + Objects.equals(this.timeAdded, v1alpha3DeviceTaint.timeAdded) && + Objects.equals(this.value, v1alpha3DeviceTaint.value); + } + + @Override + public int hashCode() { + return Objects.hash(effect, key, timeAdded, value); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class V1alpha3DeviceTaint {\n"); + sb.append(" effect: ").append(toIndentedString(effect)).append("\n"); + sb.append(" key: ").append(toIndentedString(key)).append("\n"); + sb.append(" timeAdded: ").append(toIndentedString(timeAdded)).append("\n"); + sb.append(" value: ").append(toIndentedString(value)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceTaintRule.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceTaintRule.java new file mode 100644 index 0000000000..00d8fac62d --- /dev/null +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceTaintRule.java @@ -0,0 +1,186 @@ +/* +Copyright 2025 The Kubernetes Authors. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at +http://www.apache.org/licenses/LICENSE-2.0 +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ +package io.kubernetes.client.openapi.models; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.openapi.models.V1ObjectMeta; +import io.kubernetes.client.openapi.models.V1alpha3DeviceTaintRuleSpec; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; + +/** + * DeviceTaintRule adds one taint to all devices which match the selector. This has the same effect as if the taint was specified directly in the ResourceSlice by the DRA driver. + */ +@ApiModel(description = "DeviceTaintRule adds one taint to all devices which match the selector. This has the same effect as if the taint was specified directly in the ResourceSlice by the DRA driver.") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +public class V1alpha3DeviceTaintRule implements io.kubernetes.client.common.KubernetesObject { + public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; + @SerializedName(SERIALIZED_NAME_API_VERSION) + private String apiVersion; + + public static final String SERIALIZED_NAME_KIND = "kind"; + @SerializedName(SERIALIZED_NAME_KIND) + private String kind; + + public static final String SERIALIZED_NAME_METADATA = "metadata"; + @SerializedName(SERIALIZED_NAME_METADATA) + private V1ObjectMeta metadata; + + public static final String SERIALIZED_NAME_SPEC = "spec"; + @SerializedName(SERIALIZED_NAME_SPEC) + private V1alpha3DeviceTaintRuleSpec spec; + + + public V1alpha3DeviceTaintRule apiVersion(String apiVersion) { + + this.apiVersion = apiVersion; + return this; + } + + /** + * 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 + * @return apiVersion + **/ + @javax.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; + } + + + public void setApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + } + + + public V1alpha3DeviceTaintRule kind(String kind) { + + this.kind = kind; + return this; + } + + /** + * 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 + * @return kind + **/ + @javax.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; + } + + + public void setKind(String kind) { + this.kind = kind; + } + + + public V1alpha3DeviceTaintRule metadata(V1ObjectMeta metadata) { + + this.metadata = metadata; + return this; + } + + /** + * Get metadata + * @return metadata + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public V1ObjectMeta getMetadata() { + return metadata; + } + + + public void setMetadata(V1ObjectMeta metadata) { + this.metadata = metadata; + } + + + public V1alpha3DeviceTaintRule spec(V1alpha3DeviceTaintRuleSpec spec) { + + this.spec = spec; + return this; + } + + /** + * Get spec + * @return spec + **/ + @ApiModelProperty(required = true, value = "") + + public V1alpha3DeviceTaintRuleSpec getSpec() { + return spec; + } + + + public void setSpec(V1alpha3DeviceTaintRuleSpec spec) { + this.spec = spec; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V1alpha3DeviceTaintRule v1alpha3DeviceTaintRule = (V1alpha3DeviceTaintRule) o; + return Objects.equals(this.apiVersion, v1alpha3DeviceTaintRule.apiVersion) && + Objects.equals(this.kind, v1alpha3DeviceTaintRule.kind) && + Objects.equals(this.metadata, v1alpha3DeviceTaintRule.metadata) && + Objects.equals(this.spec, v1alpha3DeviceTaintRule.spec); + } + + @Override + public int hashCode() { + return Objects.hash(apiVersion, kind, metadata, spec); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class V1alpha3DeviceTaintRule {\n"); + sb.append(" apiVersion: ").append(toIndentedString(apiVersion)).append("\n"); + sb.append(" kind: ").append(toIndentedString(kind)).append("\n"); + sb.append(" metadata: ").append(toIndentedString(metadata)).append("\n"); + sb.append(" spec: ").append(toIndentedString(spec)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceTaintRuleList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceTaintRuleList.java new file mode 100644 index 0000000000..fd8fbb31f9 --- /dev/null +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceTaintRuleList.java @@ -0,0 +1,193 @@ +/* +Copyright 2025 The Kubernetes Authors. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at +http://www.apache.org/licenses/LICENSE-2.0 +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ +package io.kubernetes.client.openapi.models; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.openapi.models.V1ListMeta; +import io.kubernetes.client.openapi.models.V1alpha3DeviceTaintRule; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; + +/** + * DeviceTaintRuleList is a collection of DeviceTaintRules. + */ +@ApiModel(description = "DeviceTaintRuleList is a collection of DeviceTaintRules.") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +public class V1alpha3DeviceTaintRuleList implements io.kubernetes.client.common.KubernetesListObject { + public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; + @SerializedName(SERIALIZED_NAME_API_VERSION) + private String apiVersion; + + public static final String SERIALIZED_NAME_ITEMS = "items"; + @SerializedName(SERIALIZED_NAME_ITEMS) + private List items = new ArrayList<>(); + + public static final String SERIALIZED_NAME_KIND = "kind"; + @SerializedName(SERIALIZED_NAME_KIND) + private String kind; + + public static final String SERIALIZED_NAME_METADATA = "metadata"; + @SerializedName(SERIALIZED_NAME_METADATA) + private V1ListMeta metadata; + + + public V1alpha3DeviceTaintRuleList apiVersion(String apiVersion) { + + this.apiVersion = apiVersion; + return this; + } + + /** + * 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 + * @return apiVersion + **/ + @javax.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; + } + + + public void setApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + } + + + public V1alpha3DeviceTaintRuleList items(List items) { + + this.items = items; + return this; + } + + public V1alpha3DeviceTaintRuleList addItemsItem(V1alpha3DeviceTaintRule itemsItem) { + this.items.add(itemsItem); + return this; + } + + /** + * Items is the list of DeviceTaintRules. + * @return items + **/ + @ApiModelProperty(required = true, value = "Items is the list of DeviceTaintRules.") + + public List getItems() { + return items; + } + + + public void setItems(List items) { + this.items = items; + } + + + public V1alpha3DeviceTaintRuleList kind(String kind) { + + this.kind = kind; + return this; + } + + /** + * 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 + * @return kind + **/ + @javax.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; + } + + + public void setKind(String kind) { + this.kind = kind; + } + + + public V1alpha3DeviceTaintRuleList metadata(V1ListMeta metadata) { + + this.metadata = metadata; + return this; + } + + /** + * Get metadata + * @return metadata + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public V1ListMeta getMetadata() { + return metadata; + } + + + public void setMetadata(V1ListMeta metadata) { + this.metadata = metadata; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V1alpha3DeviceTaintRuleList v1alpha3DeviceTaintRuleList = (V1alpha3DeviceTaintRuleList) o; + return Objects.equals(this.apiVersion, v1alpha3DeviceTaintRuleList.apiVersion) && + Objects.equals(this.items, v1alpha3DeviceTaintRuleList.items) && + Objects.equals(this.kind, v1alpha3DeviceTaintRuleList.kind) && + Objects.equals(this.metadata, v1alpha3DeviceTaintRuleList.metadata); + } + + @Override + public int hashCode() { + return Objects.hash(apiVersion, items, kind, metadata); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class V1alpha3DeviceTaintRuleList {\n"); + sb.append(" apiVersion: ").append(toIndentedString(apiVersion)).append("\n"); + sb.append(" items: ").append(toIndentedString(items)).append("\n"); + sb.append(" kind: ").append(toIndentedString(kind)).append("\n"); + sb.append(" metadata: ").append(toIndentedString(metadata)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceTaintRuleSpec.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceTaintRuleSpec.java new file mode 100644 index 0000000000..6967a1056c --- /dev/null +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceTaintRuleSpec.java @@ -0,0 +1,128 @@ +/* +Copyright 2025 The Kubernetes Authors. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at +http://www.apache.org/licenses/LICENSE-2.0 +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ +package io.kubernetes.client.openapi.models; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.openapi.models.V1alpha3DeviceTaint; +import io.kubernetes.client.openapi.models.V1alpha3DeviceTaintSelector; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; + +/** + * DeviceTaintRuleSpec specifies the selector and one taint. + */ +@ApiModel(description = "DeviceTaintRuleSpec specifies the selector and one taint.") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +public class V1alpha3DeviceTaintRuleSpec { + public static final String SERIALIZED_NAME_DEVICE_SELECTOR = "deviceSelector"; + @SerializedName(SERIALIZED_NAME_DEVICE_SELECTOR) + private V1alpha3DeviceTaintSelector deviceSelector; + + public static final String SERIALIZED_NAME_TAINT = "taint"; + @SerializedName(SERIALIZED_NAME_TAINT) + private V1alpha3DeviceTaint taint; + + + public V1alpha3DeviceTaintRuleSpec deviceSelector(V1alpha3DeviceTaintSelector deviceSelector) { + + this.deviceSelector = deviceSelector; + return this; + } + + /** + * Get deviceSelector + * @return deviceSelector + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public V1alpha3DeviceTaintSelector getDeviceSelector() { + return deviceSelector; + } + + + public void setDeviceSelector(V1alpha3DeviceTaintSelector deviceSelector) { + this.deviceSelector = deviceSelector; + } + + + public V1alpha3DeviceTaintRuleSpec taint(V1alpha3DeviceTaint taint) { + + this.taint = taint; + return this; + } + + /** + * Get taint + * @return taint + **/ + @ApiModelProperty(required = true, value = "") + + public V1alpha3DeviceTaint getTaint() { + return taint; + } + + + public void setTaint(V1alpha3DeviceTaint taint) { + this.taint = taint; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V1alpha3DeviceTaintRuleSpec v1alpha3DeviceTaintRuleSpec = (V1alpha3DeviceTaintRuleSpec) o; + return Objects.equals(this.deviceSelector, v1alpha3DeviceTaintRuleSpec.deviceSelector) && + Objects.equals(this.taint, v1alpha3DeviceTaintRuleSpec.taint); + } + + @Override + public int hashCode() { + return Objects.hash(deviceSelector, taint); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class V1alpha3DeviceTaintRuleSpec {\n"); + sb.append(" deviceSelector: ").append(toIndentedString(deviceSelector)).append("\n"); + sb.append(" taint: ").append(toIndentedString(taint)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceTaintSelector.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceTaintSelector.java new file mode 100644 index 0000000000..33b6b9b12a --- /dev/null +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceTaintSelector.java @@ -0,0 +1,225 @@ +/* +Copyright 2025 The Kubernetes Authors. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at +http://www.apache.org/licenses/LICENSE-2.0 +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ +package io.kubernetes.client.openapi.models; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +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.List; + +/** + * DeviceTaintSelector defines which device(s) a DeviceTaintRule applies to. The empty selector matches all devices. Without a selector, no devices are matched. + */ +@ApiModel(description = "DeviceTaintSelector defines which device(s) a DeviceTaintRule applies to. The empty selector matches all devices. Without a selector, no devices are matched.") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +public class V1alpha3DeviceTaintSelector { + public static final String SERIALIZED_NAME_DEVICE = "device"; + @SerializedName(SERIALIZED_NAME_DEVICE) + private String device; + + public static final String SERIALIZED_NAME_DEVICE_CLASS_NAME = "deviceClassName"; + @SerializedName(SERIALIZED_NAME_DEVICE_CLASS_NAME) + private String deviceClassName; + + public static final String SERIALIZED_NAME_DRIVER = "driver"; + @SerializedName(SERIALIZED_NAME_DRIVER) + private String driver; + + public static final String SERIALIZED_NAME_POOL = "pool"; + @SerializedName(SERIALIZED_NAME_POOL) + private String pool; + + public static final String SERIALIZED_NAME_SELECTORS = "selectors"; + @SerializedName(SERIALIZED_NAME_SELECTORS) + private List selectors = null; + + + public V1alpha3DeviceTaintSelector device(String device) { + + this.device = device; + return this; + } + + /** + * If device is set, only devices with that name are selected. This field corresponds to slice.spec.devices[].name. Setting also driver and pool may be required to avoid ambiguity, but is not required. + * @return device + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "If device is set, only devices with that name are selected. This field corresponds to slice.spec.devices[].name. Setting also driver and pool may be required to avoid ambiguity, but is not required.") + + public String getDevice() { + return device; + } + + + public void setDevice(String device) { + this.device = device; + } + + + public V1alpha3DeviceTaintSelector deviceClassName(String deviceClassName) { + + this.deviceClassName = deviceClassName; + return this; + } + + /** + * If DeviceClassName is set, the selectors defined there must be satisfied by a device to be selected. This field corresponds to class.metadata.name. + * @return deviceClassName + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "If DeviceClassName is set, the selectors defined there must be satisfied by a device to be selected. This field corresponds to class.metadata.name.") + + public String getDeviceClassName() { + return deviceClassName; + } + + + public void setDeviceClassName(String deviceClassName) { + this.deviceClassName = deviceClassName; + } + + + public V1alpha3DeviceTaintSelector driver(String driver) { + + this.driver = driver; + return this; + } + + /** + * If driver is set, only devices from that driver are selected. This fields corresponds to slice.spec.driver. + * @return driver + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "If driver is set, only devices from that driver are selected. This fields corresponds to slice.spec.driver.") + + public String getDriver() { + return driver; + } + + + public void setDriver(String driver) { + this.driver = driver; + } + + + public V1alpha3DeviceTaintSelector pool(String pool) { + + this.pool = pool; + return this; + } + + /** + * If pool is set, only devices in that pool are selected. Also setting the driver name may be useful to avoid ambiguity when different drivers use the same pool name, but this is not required because selecting pools from different drivers may also be useful, for example when drivers with node-local devices use the node name as their pool name. + * @return pool + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "If pool is set, only devices in that pool are selected. Also setting the driver name may be useful to avoid ambiguity when different drivers use the same pool name, but this is not required because selecting pools from different drivers may also be useful, for example when drivers with node-local devices use the node name as their pool name.") + + public String getPool() { + return pool; + } + + + public void setPool(String pool) { + this.pool = pool; + } + + + public V1alpha3DeviceTaintSelector selectors(List selectors) { + + this.selectors = selectors; + return this; + } + + public V1alpha3DeviceTaintSelector addSelectorsItem(V1alpha3DeviceSelector selectorsItem) { + if (this.selectors == null) { + this.selectors = new ArrayList<>(); + } + this.selectors.add(selectorsItem); + return this; + } + + /** + * Selectors contains the same selection criteria as a ResourceClaim. Currently, CEL expressions are supported. All of these selectors must be satisfied. + * @return selectors + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "Selectors contains the same selection criteria as a ResourceClaim. Currently, CEL expressions are supported. All of these selectors must be satisfied.") + + public List getSelectors() { + return selectors; + } + + + public void setSelectors(List selectors) { + this.selectors = selectors; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V1alpha3DeviceTaintSelector v1alpha3DeviceTaintSelector = (V1alpha3DeviceTaintSelector) o; + return Objects.equals(this.device, v1alpha3DeviceTaintSelector.device) && + Objects.equals(this.deviceClassName, v1alpha3DeviceTaintSelector.deviceClassName) && + Objects.equals(this.driver, v1alpha3DeviceTaintSelector.driver) && + Objects.equals(this.pool, v1alpha3DeviceTaintSelector.pool) && + Objects.equals(this.selectors, v1alpha3DeviceTaintSelector.selectors); + } + + @Override + public int hashCode() { + return Objects.hash(device, deviceClassName, driver, pool, selectors); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class V1alpha3DeviceTaintSelector {\n"); + sb.append(" device: ").append(toIndentedString(device)).append("\n"); + sb.append(" deviceClassName: ").append(toIndentedString(deviceClassName)).append("\n"); + sb.append(" driver: ").append(toIndentedString(driver)).append("\n"); + sb.append(" pool: ").append(toIndentedString(pool)).append("\n"); + sb.append(" selectors: ").append(toIndentedString(selectors)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceToleration.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceToleration.java new file mode 100644 index 0000000000..d1e2b501d0 --- /dev/null +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceToleration.java @@ -0,0 +1,214 @@ +/* +Copyright 2025 The Kubernetes Authors. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at +http://www.apache.org/licenses/LICENSE-2.0 +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ +package io.kubernetes.client.openapi.models; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +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; + +/** + * The ResourceClaim this DeviceToleration is attached to tolerates any taint that matches the triple <key,value,effect> using the matching operator <operator>. + */ +@ApiModel(description = "The ResourceClaim this DeviceToleration is attached to tolerates any taint that matches the triple using the matching operator .") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +public class V1alpha3DeviceToleration { + public static final String SERIALIZED_NAME_EFFECT = "effect"; + @SerializedName(SERIALIZED_NAME_EFFECT) + private String effect; + + public static final String SERIALIZED_NAME_KEY = "key"; + @SerializedName(SERIALIZED_NAME_KEY) + private String key; + + public static final String SERIALIZED_NAME_OPERATOR = "operator"; + @SerializedName(SERIALIZED_NAME_OPERATOR) + private String operator; + + public static final String SERIALIZED_NAME_TOLERATION_SECONDS = "tolerationSeconds"; + @SerializedName(SERIALIZED_NAME_TOLERATION_SECONDS) + private Long tolerationSeconds; + + public static final String SERIALIZED_NAME_VALUE = "value"; + @SerializedName(SERIALIZED_NAME_VALUE) + private String value; + + + public V1alpha3DeviceToleration effect(String effect) { + + this.effect = effect; + return this; + } + + /** + * Effect indicates the taint effect to match. Empty means match all taint effects. When specified, allowed values are NoSchedule and NoExecute. + * @return effect + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "Effect indicates the taint effect to match. Empty means match all taint effects. When specified, allowed values are NoSchedule and NoExecute.") + + public String getEffect() { + return effect; + } + + + public void setEffect(String effect) { + this.effect = effect; + } + + + public V1alpha3DeviceToleration key(String key) { + + this.key = key; + return this; + } + + /** + * 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. Must be a label name. + * @return key + **/ + @javax.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. Must be a label name.") + + public String getKey() { + return key; + } + + + public void setKey(String key) { + this.key = key; + } + + + public V1alpha3DeviceToleration operator(String operator) { + + this.operator = operator; + return this; + } + + /** + * 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 ResourceClaim can tolerate all taints of a particular category. + * @return operator + **/ + @javax.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 ResourceClaim can tolerate all taints of a particular category.") + + public String getOperator() { + return operator; + } + + + public void setOperator(String operator) { + this.operator = operator; + } + + + public V1alpha3DeviceToleration tolerationSeconds(Long tolerationSeconds) { + + this.tolerationSeconds = tolerationSeconds; + return this; + } + + /** + * 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. If larger than zero, the time when the pod needs to be evicted is calculated as <time when taint was adedd> + <toleration seconds>. + * @return tolerationSeconds + **/ + @javax.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. If larger than zero, the time when the pod needs to be evicted is calculated as